function thumbnail(g,e,b,f,d,a,c){this.id=g;this.galleries_id=e;this.caption=b;this.src=getServerPath(c)+"/"+f;this.width=d;this.height=a}function gallery(e,c,d,b,a){this.id=e;this.featured_images=c;this.title=d;this.section_code=b;this.photoIDs=a}var thumbnails=new Object();thumbnails[586849]=new thumbnail(586849,"","Joe Wainwright","Joe-Wainwright_thumb.jpg",130,88,18);thumbnails[3089201]=new thumbnail(3089201,"","Castle and Topiary","Chirk-Castle-and-Topiary-Av1_thumb.jpg",130,87,18);thumbnails[3089203]=new thumbnail(3089203,"","Snowdrops","Chirk-Snowdrops1_thumb.jpg",130,78,18);thumbnails[3089217]=new thumbnail(3089217,"","Gardens and Pampas Grass","Gardens-and-Pampas-Grass-at-Chirk-Castle1_thumb.jpg",130,87,18);thumbnails[3089218]=new thumbnail(3089218,"","Horses by Gate","Chirk-Horses-by-Gate1_thumb.jpg",130,90,18);thumbnails[3089220]=new thumbnail(3089220,"","Statue and Autumn Foliage","Statue-and-Autumn-Foliage1_thumb.jpg",130,93,18);thumbnails[3535049]=new thumbnail(3535049,"","Sidmouth Beach and Parasol","Sidmouth-Beach-and-Parasol_thumb.jpg",130,96,18);thumbnails[3089226]=new thumbnail(3089226,"","February","Chirk-February1_thumb.jpg",130,195,18);thumbnails[3089233]=new thumbnail(3089233,"","Statue Rising","Chirk-Castle-Statue-Rising1_thumb.jpg",130,196,18);thumbnails[3089237]=new thumbnail(3089237,"","African Hut and Border","Chirk-Hut-and-Border_thumb.jpg",130,195,18);thumbnails[268096]=new thumbnail(268096,"23387","Abbotsbury Swannery","Abbotsbury-Swannery_thumb.jpg",130,95,18);thumbnails[268101]=new thumbnail(268101,"23387","Lake District Autumn Beech ","Lake-District-Beech_thumb.jpg",130,87,18);thumbnails[270105]=new thumbnail(270105,"23387","Cheshire, September Hillside and Cows","Cheshire-September-Hillside-and-Cows_thumb.jpg",130,91,18);thumbnails[270118]=new thumbnail(270118,"23387","Sunset near Burwardsley","Sunset-near-Burwardsley_thumb.jpg",130,78,18);thumbnails[272317]=new thumbnail(272317,"23387","Cheshire Plain from Raw Head","Cheshire-Plain-from-Raw-Head_thumb.jpg",130,87,18);thumbnails[586448]=new thumbnail(586448,"23387","Cheshire Oaks and Peckforton Hills","Oak-and-Peckforton-Hills-at_thumb.jpg",130,86,18);thumbnails[586554]=new thumbnail(586554,"23387","Road to Beeston Castle, mid Winter","Road-to-Beeston-Castle-mid-Winter_thumb.jpg",130,84,18);thumbnails[714439]=new thumbnail(714439,"23387","May Foliage","May-Foliage_thumb.jpg",130,97,18);thumbnails[727179]=new thumbnail(727179,"23387","March of the Sheep near Peckforton Castle","March-of-the-Sheep-near-Peckforton-Castle_thumb.jpg",130,83,18);thumbnails[979972]=new thumbnail(979972,"23387","English Bluebells and New Foliage","Bluebells-and-New-Foliage_thumb.jpg",130,87,18);thumbnails[992999]=new thumbnail(992999,"23387","Bluebell Wood","Bluebell-Wood_thumb.jpg",130,63,18);thumbnails[1521671]=new thumbnail(1521671,"23387","Derwent Water and Ripples","Derwentwater-and-Ripples_thumb.jpg",130,82,18);thumbnails[1521735]=new thumbnail(1521735,"23387","Windermere and Misty Yacht","Windermere-Misty-Yacht_thumb.jpg",130,72,18);thumbnails[1545066]=new thumbnail(1545066,"23387","Ullswater at Dusk","Ullswater-at-Dusk_thumb.jpg",130,87,18);thumbnails[1545075]=new thumbnail(1545075,"23387","Tarn Hows and Ash Tree","Tarn-Hows-and-Ash-Tree_thumb.jpg",130,88,18);thumbnails[1573710]=new thumbnail(1573710,"23387","Daffodils at Fell Foot Park","Daffodils-at-Fell-Foot_thumb.jpg",130,91,18);thumbnails[1672687]=new thumbnail(1672687,"23387","Cheshire Plain - Sunset","Cheshire-Plain-Sunset_thumb.jpg",130,87,18);thumbnails[1672696]=new thumbnail(1672696,"23387","Durdle Door and Beach","Durdle-Door-and-Beach_thumb.jpg",130,90,18);thumbnails[3045990]=new thumbnail(3045990,"23387","Ullswater Field","Ullswater-Field_thumb.jpg",130,87,18);thumbnails[3046113]=new thumbnail(3046113,"23387","Peckforton Hills at Dusk","Peckforton-Hills-at-Dusk-in1_thumb.jpg",130,85,18);thumbnails[3046120]=new thumbnail(3046120,"23387","Couple and Dog on Beach","Couple-and-Dog-on-Beach_thumb.jpg",130,77,18);thumbnails[3046125]=new thumbnail(3046125,"23387","Derwentwater Canoes","Derwentwater-Canoes_thumb.jpg",130,87,18);thumbnails[3046136]=new thumbnail(3046136,"23387","Lake District Gateway","Lake-District-Scene-and-Gateway_thumb.jpg",130,91,18);thumbnails[3046193]=new thumbnail(3046193,"23387","Cumbria Field and Sheep","Cumbria-Field-and-Sheep_thumb.jpg",130,84,18);thumbnails[749030]=new thumbnail(749030,"23387","View from Pheasant Inn, Burwardsley, Cheshire","View-from-Pheasant-Inn-Burwardsley-Cheshire_thumb.jpg",130,149,18);thumbnails[1521832]=new thumbnail(1521832,"23387","Lake District Autumn","Lake-District-Autumn_thumb.jpg",130,130,18);thumbnails[727185]=new thumbnail(727185,"23387","Fields and Buttercups","Fields-and-Buttercups_thumb.jpg",130,130,18);thumbnails[3046147]=new thumbnail(3046147,"23387","Burwardsley Sunset","Burwardsley-Sunset_thumb.jpg",130,165,18);thumbnails[3045992]=new thumbnail(3045992,"23387","Waterfall and Ferns","Waterfall-and-Ferns_thumb.jpg",130,195,18);thumbnails[3042499]=new thumbnail(3042499,"23387","View over the Onny Valley, Shropshire","View-across-Onny-Valley_thumb.jpg",130,198,18);thumbnails[262188]=new thumbnail(262188,"23387","White Horse and Blossom","White-Horse-and-Blossom_thumb.jpg",130,199,18);thumbnails[265361]=new thumbnail(265361,"23387","Shropshire Union Canal, Cheshire","Shropshire-Union-Canal-Shropshire_thumb.jpg",130,201,18);thumbnails[266778]=new thumbnail(266778,"23387","Footpath on the Long Mynd","Footpath-on-the-Long-Mynd_thumb.jpg",130,203,18);thumbnails[727183]=new thumbnail(727183,"23387","Delamere Forest Pines","Delamere-Forest-Pines_thumb.jpg",130,195,18);thumbnails[266805]=new thumbnail(266805,"23387","September in a Cheshire Field","September-in-a-Cheshire-Field_thumb.jpg",130,198,18);thumbnails[264992]=new thumbnail(264992,"23387","Lone Tree","Lone-Tree_thumb.jpg",130,201,18);thumbnails[649329]=new thumbnail(649329,"23387","Horse with Fringe","Horse-with-Fringe_thumb.jpg",130,193,18);thumbnails[631472]=new thumbnail(631472,"23387","Country Lane in Spring","Cheshire-Lane-in-Spring_thumb.jpg",130,176,18);thumbnails[1528792]=new thumbnail(1528792,"23387","Raw Head and the Cheshire Plain","Raw-Head-and-Cheshire-Plain_thumb.jpg",130,179,18);thumbnails[748722]=new thumbnail(748722,"23387","Hay Bale and Trees","Hay-Bale-and-Trees_thumb.jpg",130,202,18);thumbnails[756078]=new thumbnail(756078,"23387","Birches","Birches_thumb.jpg",130,201,18);thumbnails[262112]=new thumbnail(262112,"23456","Clovelly in Festive Mood","Clovelly-in-Festive-Mood_thumb.jpg",130,85,18);thumbnails[265225]=new thumbnail(265225,"23456","Thatched Cottage at Burton","Thatched-Cottage-at-Burton_thumb.jpg",130,84,18);thumbnails[265294]=new thumbnail(265294,"23456","La Corbiere Lighthouse","Corbiere-Lighthouse_thumb.jpg",130,90,18);thumbnails[265313]=new thumbnail(265313,"23456","Black and White Cheshire Cottage","Black-and-White-Cheshire-Cottage_thumb.jpg",130,81,18);thumbnails[342255]=new thumbnail(342255,"23456","Malpas - St. Oswald's Church and Cottages","Malpas-St-Oswald's-Church-and-Cottages_thumb.jpg",130,87,18);thumbnails[358302]=new thumbnail(358302,"23456","Marton Church in Snow","Marton-Church-in-the-Snow_thumb.jpg",130,92,18);thumbnails[570974]=new thumbnail(570974,"23456","Ludlow Castle above River Teme","Ludlow-Castle-above-River-Teme_thumb.jpg",130,87,18);thumbnails[586924]=new thumbnail(586924,"23456","Dawlish - Beach Huts","Dawlish-Beach-Huts_thumb.jpg",130,56,18);thumbnails[600317]=new thumbnail(600317,"23456","Blackpool - Beach at Dusk","Blackpool-Beach-at-Dusk_thumb.jpg",130,79,18);thumbnails[604139]=new thumbnail(604139,"23456","Teignmouth Parasol","Teignmouth-Parasol_thumb.jpg",130,87,18);thumbnails[634739]=new thumbnail(634739,"23456","Clovelly Harbour and Boats","Clovelly-Harbour-and-Boats_thumb.jpg",130,84,18);thumbnails[1521791]=new thumbnail(1521791,"23456","Bowness Sunset","Bowness-Sunset_thumb.jpg",130,101,18);thumbnails[1560135]=new thumbnail(1560135,"23456","Llandudno Carousel","Llandudno-Carousel_thumb.jpg",130,84,18);thumbnails[1560501]=new thumbnail(1560501,"23456","White Lion Inn","White-Lion-Inn_thumb.jpg",130,85,18);thumbnails[1585963]=new thumbnail(1585963,"23456","Ludlow - Feathers Hotel Detail","Ludlow-Feathers-Hotel-Detail_thumb.jpg",130,84,18);thumbnails[3048880]=new thumbnail(3048880,"23456","Conwy Castle Bridges","Conwy-Castle-Bridges_thumb.jpg",130,87,18);thumbnails[3048887]=new thumbnail(3048887,"23456","Day out with Thomas the Tank Engine","Llangollen-Day-Out-with-Thomas-The-Tank-Engine_thumb.jpg",130,146,18);thumbnails[701759]=new thumbnail(701759,"23456","Dawlish Boats","Dawlish-Boats_thumb.jpg",130,195,18);thumbnails[262219]=new thumbnail(262219,"23456","The Cobb, Lyme Regis","Lyme-Regis-The-Cobb_thumb.jpg",130,202,18);thumbnails[3048894]=new thumbnail(3048894,"23456","Road Sign and Daffodils","Marbury-Road-Sign-and-Daffo_thumb.jpg",130,195,18);thumbnails[1585978]=new thumbnail(1585978,"23456","Near Sawrey - Tower Bank Arms","Near-Sawrey-Tower-Bank-Arms_thumb.jpg",130,214,18);thumbnails[1672705]=new thumbnail(1672705,"23456","Ambleside Evening","Ambleside-Evening_thumb.jpg",130,179,18);thumbnails[1588079]=new thumbnail(1588079,"23456","Marbury Church and Mere","Marbury-Church-and-Mere_thumb.jpg",130,203,18);thumbnails[1573675]=new thumbnail(1573675,"23456","Cheshire - Thatched Cottage and Beech Tree","Cheshire-Thatched-Cottage-and-Beech-Tree_thumb.jpg",130,202,18);thumbnails[3526750]=new thumbnail(3526750,"23456","Grasmere, the Lane to Dove Cottage","Grasmere-Lane-to-Dove-Cotta_thumb.jpg",130,195,18);thumbnails[1605808]=new thumbnail(1605808,"23456","Cockington, Cottage and Trees","Cockington-Cottage-and-Tree_thumb.jpg",130,196,18);thumbnails[1592107]=new thumbnail(1592107,"23456","Llansilin Church","Llansilin-Church_thumb.jpg",130,201,18);thumbnails[262075]=new thumbnail(262075,"23458","Canal and Gardens, Erddig Hall","Canal-Gardens-Erddig-Hall_thumb.jpg",130,86,18);thumbnails[269158]=new thumbnail(269158,"23458","Lavender Farm","Lavender-Farm_thumb.jpg",130,91,18);thumbnails[358324]=new thumbnail(358324,"23458","Palm House, Bicton Park","Bicton-Park-Palm-House_thumb.jpg",130,85,18);thumbnails[600270]=new thumbnail(600270,"23458","Powis Castle Terraces","Powis-Castle-Terraces_thumb.jpg",130,69,18);thumbnails[600271]=new thumbnail(600271,"23458","Gardens at Montacute House","Gardens-at-Montacute-House_thumb.jpg",130,84,18);thumbnails[606309]=new thumbnail(606309,"23458","Urn at Killerton House","Urn-at-Killerton-House_thumb.jpg",130,87,18);thumbnails[714818]=new thumbnail(714818,"23458","Compton Acres","Compton-Acres_thumb.jpg",130,100,18);thumbnails[728157]=new thumbnail(728157,"23458","Dalemain, Autumn Garden","Dalemain-Autumn-Garden_thumb.jpg",130,87,18);thumbnails[735111]=new thumbnail(735111,"23458","Killerton House and Borders","Killerton-House-and-Borders_thumb.jpg",130,83,18);thumbnails[738985]=new thumbnail(738985,"23458","Bodnant Gardens - Canal Terrace and Pin Mill","Bodnant-Gardens-Canal-Terrace-and-Pin-Mill_thumb.jpg",130,87,18);thumbnails[767246]=new thumbnail(767246,"23458","Mapperton Gardens","Mapperton-Gardens_thumb.jpg",130,87,18);thumbnails[767336]=new thumbnail(767336,"23458","Erddig Hall Victorian Parterre","Erddig-Hall-Victorian-Parterre_thumb.jpg",130,89,18);thumbnails[1534859]=new thumbnail(1534859,"23458","Barn and Phlox at Barrington Court","Barn-and-Phlox-at-Barrington-Court_thumb.jpg",130,87,18);thumbnails[1573698]=new thumbnail(1573698,"23458","Gardens and Pampas Grass at Chirk Castle","Gardens-and-Pampas-Grass-at-Chirk-Castle_thumb.jpg",130,87,18);thumbnails[1592643]=new thumbnail(1592643,"23458","Gardens at Sherborne Castle","Sherborne-Castle-Gardens_thumb.jpg",130,108,18);thumbnails[1672729]=new thumbnail(1672729,"23458","Tapeley Park House and Gardens","Tapeley-Park-House-and-Gardens_thumb.jpg",130,85,18);thumbnails[1955071]=new thumbnail(1955071,"23458","Lily Pond and Statue","Lily-Pond-and-Statue_thumb.jpg",130,87,18);thumbnails[2603502]=new thumbnail(2603502,"23458","Tumbling Roses","Tumbling-Roses_thumb.jpg",130,87,18);thumbnails[3067259]=new thumbnail(3067259,"23458","Powis Castle from Lower Garden","Powis-Castle-from-Lower-Garden_thumb.jpg",130,87,18);thumbnails[3067270]=new thumbnail(3067270,"23458","Cheshire Cottage","Cheshire-Cottage_thumb.jpg",130,87,18);thumbnails[3067271]=new thumbnail(3067271,"23458","Athelhampton Gardens","Athelhampton-Gardens_thumb.jpg",130,87,18);thumbnails[3067273]=new thumbnail(3067273,"23458","Herbaceous Border","Bicton-Park-Herbaceous-Border_thumb.jpg",130,87,18);thumbnails[3067599]=new thumbnail(3067599,"23458","Statue and Autumn Foliage","Statue-and-Autumn-Foliage_thumb.jpg",130,93,18);thumbnails[3067606]=new thumbnail(3067606,"23458","Urn and Lavender","Hestercombe-Urn-and-Lavende_thumb.jpg",130,87,18);thumbnails[3067609]=new thumbnail(3067609,"23458","Hestercombe Gardens Fountain","Hestercombe-Fountain_thumb.jpg",130,87,18);thumbnails[3089186]=new thumbnail(3089186,"23458","Two Statues","Chirk-Castle-Two-Statues1_thumb.jpg",130,87,18);thumbnails[3089200]=new thumbnail(3089200,"23458","Garden and Castle","Chirk-Garden-and-Castle2_thumb.jpg",130,89,18);thumbnails[356245]=new thumbnail(356245,"23458","Border at Montacute House","Border-at-Montacute-House_thumb.jpg",130,102,18);thumbnails[3067600]=new thumbnail(3067600,"23458","View towards Castle.","View-Towards-C_thumb.jpg",130,109,18);thumbnails[3067535]=new thumbnail(3067535,"23458","Phlox Border","Phlox-Border_thumb.jpg",130,119,18);thumbnails[1683698]=new thumbnail(1683698,"23458","Chirk Castle - Gardens and Statue","Chirk-Castle-Gardens-and-Statue_thumb.jpg",130,130,18);thumbnails[749044]=new thumbnail(749044,"23458","Tapeley Park Kitchen Garden","Tapeley-Park-Kitchen-Garden_thumb.jpg",130,158,18);thumbnails[265213]=new thumbnail(265213,"23458","Autumn at Hill Top","Autumn-at-Hill-Top_thumb.jpg",130,201,18);thumbnails[3089250]=new thumbnail(3089250,"23458","Statue Detail","Statue-Detail_thumb.jpg",130,195,18);thumbnails[269172]=new thumbnail(269172,"23458","Border at Arlington Court","Border-at-Arlington-Court_thumb.jpg",130,187,18);thumbnails[649301]=new thumbnail(649301,"23458","Chirk Castle - Shadows and Roses","Chirk-Castle-Shadows-and-Roses_thumb.jpg",130,198,18);thumbnails[752916]=new thumbnail(752916,"23458","Bodnant Gardens Waterfall","Bodnant-Gardens-Waterfall_thumb.jpg",130,206,18);thumbnails[1954985]=new thumbnail(1954985,"23458","Alliums in Walled Garden","Alliums-in-Walled-Garden_thumb.jpg",130,195,18);thumbnails[2601432]=new thumbnail(2601432,"23458","Perseus Slaying the Gorgon","Perseus-Slaying-the-Gorgon_thumb.jpg",130,195,18);thumbnails[714824]=new thumbnail(714824,"23458","Biddulph Grange Tulips","Biddulph-Grange-Tulips_thumb.jpg",130,204,18);thumbnails[728264]=new thumbnail(728264,"23458","Compton Castle, Rose Garden","Compton-Castle-Rose-Garden_thumb.jpg",130,195,18);thumbnails[3067254]=new thumbnail(3067254,"23458","Tulips","Tulips_thumb.jpg",130,195,18);thumbnails[3067616]=new thumbnail(3067616,"23458","Hill Top Border","Hill-Top-Summer-Border_thumb.jpg",130,197,18);thumbnails[3067627]=new thumbnail(3067627,"23458","Powis Castle Across Lawn","Powis-Castle-across-Lawn_thumb.jpg",130,195,18);thumbnails[3067630]=new thumbnail(3067630,"23458","Narcissi","Narcissi_thumb.jpg",130,195,18);thumbnails[265199]=new thumbnail(265199,"189607","Allium Flower, Detail","Allium-Detail_thumb.jpg",130,86,18);thumbnails[265201]=new thumbnail(265201,"189607","Autumn Leaf","Autumn-Leaf_thumb.jpg",130,92,18);thumbnails[571606]=new thumbnail(571606,"189607","June Roses","June-Roses_thumb.jpg",130,84,18);thumbnails[606389]=new thumbnail(606389,"189607","Flower and Bee","Flower-and-Bee_thumb.jpg",130,87,18);thumbnails[733210]=new thumbnail(733210,"189607","Alliums in early Summer","Alliums-in-Early-Summer_thumb.jpg",130,87,18);thumbnails[733212]=new thumbnail(733212,"189607","Autumn Leaves","Autumn-Leaves_thumb.jpg",130,102,18);thumbnails[767232]=new thumbnail(767232,"189607","Agapanthus","Agapanthus_thumb.jpg",130,87,18);thumbnails[993008]=new thumbnail(993008,"189607","Hosta Leaf and Raindrops","Hosta-Leaf-and-Raindrops_thumb.jpg",130,90,18);thumbnails[2603494]=new thumbnail(2603494,"189607","Tulips after the Rain","Tulips-After-Rain_thumb.jpg",130,87,18);thumbnails[3067261]=new thumbnail(3067261,"189607","Allium Seed Head","Allium-Seed-Head_thumb.jpg",130,87,18);thumbnails[3067265]=new thumbnail(3067265,"189607","Daffodils","Daffodils_thumb.jpg",130,87,18);thumbnails[3067272]=new thumbnail(3067272,"189607","Heleniums","Heleniums_thumb.jpg",130,87,18);thumbnails[3526427]=new thumbnail(3526427,"189607","The Golden Leaves of Autumn","Golded-Leaves-of-Autumn_thumb.jpg",130,87,18);thumbnails[3067690]=new thumbnail(3067690,"189607","Mecanopsis Poppies","Mecanopsis_thumb.jpg",130,92,18);thumbnails[269137]=new thumbnail(269137,"189607","Loosestrife and Roses in a Cottage Garden","Loosestrife-and-Roses-in-a-Cottage-Garden_thumb.jpg",130,199,18);thumbnails[1592521]=new thumbnail(1592521,"189607","White-Roses","White-Roses_thumb.jpg",130,197,18);thumbnails[3067255]=new thumbnail(3067255,"189607","Roses and Red Wall","Roses-and-Red-Wall_thumb.jpg",130,201,18);thumbnails[277531]=new thumbnail(277531,"189607","Violas after Rain","Violas-after-Rain_thumb.jpg",130,276,18);thumbnails[265344]=new thumbnail(265344,"23495","Montacute House","Montacute-House_thumb.jpg",130,95,18);thumbnails[280190]=new thumbnail(280190,"23495","Kingston Lacy","Kingston-Lacy_thumb.jpg",130,86,18);thumbnails[586586]=new thumbnail(586586,"23495","Hardy's Cottage","Hardy's-Cottage_thumb.jpg",130,87,18);thumbnails[727188]=new thumbnail(727188,"23495","Compton Castle","Compton-Castle_thumb.jpg",130,90,18);thumbnails[738972]=new thumbnail(738972,"23495","Athelhampton House","Athelhampton-House-and-Lawn_thumb.jpg",130,85,18);thumbnails[752909]=new thumbnail(752909,"23495","Penrhyn Castle","Penrhyn-Castle_thumb.jpg",130,80,18);thumbnails[1532264]=new thumbnail(1532264,"23495","Sherborne Castle","Sherborne-Castle_thumb.jpg",130,87,18);thumbnails[1532265]=new thumbnail(1532265,"23495","Conwy Castle Battlements","Conwy-Castle-Battlements_thumb.jpg",130,87,18);thumbnails[1532482]=new thumbnail(1532482,"23495","Chirk Castle and Yew Topiary","Chirk-Castle-and-Yew-Topiary_thumb.jpg",130,73,18);thumbnails[1534842]=new thumbnail(1534842,"23495","Beaumaris Castle","Beaumaris-Castle_thumb.jpg",130,87,18);thumbnails[1545027]=new thumbnail(1545027,"23495","Saltram House, view across Lawns","Saltram-House-View-across-Lawns_thumb.jpg",130,81,18);thumbnails[1546911]=new thumbnail(1546911,"23495","The Menai Bridge, Anglesey","The-Menai-Bridge-Anglesey_thumb.jpg",130,74,18);thumbnails[2603492]=new thumbnail(2603492,"23495","Knightshayes Court Before the Rain","Knightshayes-Court-Before-Rain_thumb.jpg",130,93,18);thumbnails[3077757]=new thumbnail(3077757,"23495","Barrington Court","Barrington-Court_thumb.jpg",130,80,18);thumbnails[3077763]=new thumbnail(3077763,"23495","Criccieth Castle and Beach","Criccieth-Castle-and-Beach_thumb.jpg",130,87,18);thumbnails[3077767]=new thumbnail(3077767,"23495","Hutton in the Forest","Hutton-in-the-Forest_thumb.jpg",130,95,18);thumbnails[3526393]=new thumbnail(3526393,"23495","Montacute House in Heavy Cloud","Montacute-House-and-Heavy-Cloud_thumb.jpg",130,91,18);thumbnails[727186]=new thumbnail(727186,"23495","Dalemain in Spring","Dalemain-in-Spring_thumb.jpg",130,115,18);thumbnails[1667830]=new thumbnail(1667830,"23495","Beatrix Potter's House - Detail","Hilltop-Doorway-Detail_thumb.jpg",130,118,18);thumbnails[2601024]=new thumbnail(2601024,"23495","Juggler","Juggler_thumb.jpg",130,202,18);thumbnails[1534851]=new thumbnail(1534851,"23495","Rug Chapel and Roses","Rug-Chapel-and-Roses_thumb.jpg",130,195,18);thumbnails[2601409]=new thumbnail(2601409,"23495","Powis Castle and Daffodils","Powis-Castle-and-Daffodils_thumb.jpg",130,190,18);thumbnails[265328]=new thumbnail(265328,"23495","Stonehenge and Sky","Stonehenge-and-Sky_thumb.jpg",130,194,18);thumbnails[358288]=new thumbnail(358288,"23495","Buildwas Abbey, Shropshire","Buildwas-Abbey_thumb.jpg",130,200,18);thumbnails[768913]=new thumbnail(768913,"23495","Wroxeter, Section of Roman Wall","Wroxeter-Wall_thumb.jpg",130,173,18);thumbnails[752905]=new thumbnail(752905,"23495","Penrhyn Castle - Detail","Penrhyn-Castle-Detail_thumb.jpg",130,205,18);thumbnails[1667805]=new thumbnail(1667805,"23495","St.Petroc's Church, near Dartmouth Castle","St_thumb.Petrocs-Church-near-Dartmouth-Castle.jpg",130,200,18);thumbnails[1545016]=new thumbnail(1545016,"23495","Wroxeter and Sky","Wroxeter-and-Sky_thumb.jpg",130,201,18);thumbnails[3077600]=new thumbnail(3077600,"23495","Montacute House, Detail","Montacute-House-DetailBW_thumb.jpg",130,195,18);thumbnails[1667811]=new thumbnail(1667811,"23495","St. Bega's Church, near Bassenthwaite Lake","St-Bega's-Church-near-Bassenthwaite-Lake_thumb.jpg",130,195,18);thumbnails[1954960]=new thumbnail(1954960,"23495","Knightshayes Court Steps","Knightshayes-Court-Steps_thumb.jpg",130,196,18);thumbnails[1624124]=new thumbnail(1624124,"23495","Exeter Cathedral Facade","Exeter-Cathedral-Facade_thumb.jpg",130,219,18);thumbnails[3077696]=new thumbnail(3077696,"23495","Erddig - Steps and Vintage Car","Erddig-Steps-and-Vintage-Car_thumb.jpg",130,195,18);thumbnails[3077700]=new thumbnail(3077700,"23495","Penrhyn Castle Battlements","Penrhyn-Castle-Battlements_thumb.jpg",130,212,18);thumbnails[726923]=new thumbnail(726923,"106568","Chester, view towards the Eastgate","Chester-View-Towards-the-Eastgate_thumb.jpg",130,87,18);thumbnails[1555222]=new thumbnail(1555222,"106568","Boot Inn (Detail), Eastgate Street","Chester-Boot-Inn-Detail_thumb.jpg",130,99,18);thumbnails[1560146]=new thumbnail(1560146,"106568","Chester - the River Dee and Weir","Chester-River-Dee-and-Weir_thumb.jpg",130,87,18);thumbnails[1560150]=new thumbnail(1560150,"106568","River Dee from the Old Dee Bridge","Chester-River-Dee-from-Old-Dee-Bridge_thumb.jpg",130,87,18);thumbnails[1573669]=new thumbnail(1573669,"106568","Grosvenor Park in Winter","Grosvenor-Park-in-Winter_thumb.jpg",130,90,18);thumbnails[1677452]=new thumbnail(1677452,"106568","Boating on the River Dee in Chester","Boating-on-the-River-Dee-Chester_thumb.jpg",130,63,18);thumbnails[3084756]=new thumbnail(3084756,"106568","Bluebell Inn, Detail","Chester-Bluebell-Inn-Detail_thumb.jpg",130,89,18);thumbnails[1560179]=new thumbnail(1560179,"106568","The Rows at Chester City Cross","The-Rows-at-Chester-City-Cross_thumb.jpg",130,89,18);thumbnails[3084751]=new thumbnail(3084751,"106568","The Cross, Sign Posts","Chester-The-Cross-Sign-Posts_thumb.jpg",130,140,18);thumbnails[1677440]=new thumbnail(1677440,"106568","Chester - Eastgate Street near the Cross, Detail","Chester-Eastgate-Street-Near-the-Cross-Detail_thumb.jpg",130,135,18);thumbnails[265305]=new thumbnail(265305,"106568","The Groves and River Dee, Chester","The-Groves-and-River-Dee-Chester_thumb.jpg",130,194,18);thumbnails[726937]=new thumbnail(726937,"106568","Chester, St. Michael's Arcade","Chester-St-Michaels-Arcade_thumb.jpg",130,195,18);thumbnails[727283]=new thumbnail(727283,"106568","Chester Eastgate and Clock","Chester-Eastgate-and-Clock_thumb.jpg",130,195,18);thumbnails[727284]=new thumbnail(727284,"106568","Buildings at The Cross","Buildings-at-the-Cross_thumb.jpg",130,195,18);thumbnails[1677457]=new thumbnail(1677457,"106568","Chester - The Three Old Arches","Chester-The-Three-Old-Arches_thumb.jpg",130,161,18);thumbnails[1677463]=new thumbnail(1677463,"106568","Chester- Ye Olde Boot Inn","Chester-Ye-Olde-Boot-Inn_thumb.jpg",130,199,18);thumbnails[1560155]=new thumbnail(1560155,"106568","The Groves in Summer, from Suspension Bridge","The-Groves-in-Summer-from-Suspension-Bridge_thumb.jpg",130,195,18);thumbnails[1555029]=new thumbnail(1555029,"106568","Jubilee Clock","Jubillee-Clock_thumb.jpg",130,195,18);thumbnails[3084760]=new thumbnail(3084760,"106568","Chester Cathedral and Gardens","Chester-Cathedral-and-Gardens_thumb.jpg",130,202,18);thumbnails[1561624]=new thumbnail(1561624,"106568","House in Upper Bridge Street","House-in-Upper-Bridge-Street_thumb.jpg",130,336,18);thumbnails[262160]=new thumbnail(262160,"23493","Cholmondeley Castle, Temple Garden in Spring","Cholmondeley-Castle-Spring_thumb.jpg",130,88,18);thumbnails[265161]=new thumbnail(265161,"23493","Mid-winter at Little Moreton Hall ","Mid-Winter-at_little-Moreton-Hall_thumb.jpg",130,85,18);thumbnails[265257]=new thumbnail(265257,"23493","Tatton Park, Japanese Garden Detail","Japanese-Garden-Detail_thumb.jpg",130,85,18);thumbnails[266813]=new thumbnail(266813,"23493","Gardens at Cholmondeley Castle","Gardens-at-Cholmondeley-Castle_thumb.jpg",130,84,18);thumbnails[266824]=new thumbnail(266824,"23493","Beeston Castle","Beeston-Castle_thumb.jpg",130,86,18);thumbnails[272313]=new thumbnail(272313,"23493","Italian Garden, Tatton Park","Italian-Garden-Tatton-Park_thumb.jpg",130,87,18);thumbnails[632681]=new thumbnail(632681,"23493","Peckforton Castle","Peckforton-Castle_thumb.jpg",130,85,18);thumbnails[737655]=new thumbnail(737655,"23493","Gawsworth Hall","Gawsworth-Hall_thumb.jpg",130,84,18);thumbnails[1545011]=new thumbnail(1545011,"23493","Tatton Park Mansion on a Winter Evening","Tatton-Park-Mansion-on-a-Winter-Evening_thumb.jpg",130,84,18);thumbnails[1545033]=new thumbnail(1545033,"23493","Dunham Massey Gatehouse and Moat","Dunham-Massey-Gatehouse-and-Moat_thumb.jpg",130,84,18);thumbnails[1588084]=new thumbnail(1588084,"23493","Styal Village - Terrace","Styal-Village-Terrace_thumb.jpg",130,84,18);thumbnails[1683732]=new thumbnail(1683732,"23493","Dunham Massey Orangery","Dunham-Massey-Orangery_thumb.jpg",130,92,18);thumbnails[1683736]=new thumbnail(1683736,"23493","Dunham Massey - Front of the House","Dunham-Massey-Front-of-the-House_thumb.jpg",130,98,18);thumbnails[265244]=new thumbnail(265244,"23493","Herbaceous Border, Arley Hall and Gardens","Herbaceous-Borders-Arley-Hall-and-Gardens_thumb.jpg",130,125,18);thumbnails[265281]=new thumbnail(265281,"23493","Arley Hall and Gardens, Tudor Barn","Arley-Hall-and-Gardens-Tudor-Barn_thumb.jpg",130,195,18);thumbnails[631449]=new thumbnail(631449,"23493","Little Moreton Hall, Ducks and Snow","Little-Moreton-Hall-Ducks-and-Snow_thumb.jpg",130,201,18);thumbnails[600356]=new thumbnail(600356,"23493","Tatton Park Japanese Garden and Lake","Tatton-Park-Japanese-Garden-and-Lake_thumb.jpg",130,195,18);thumbnails[749274]=new thumbnail(749274,"23493","Tatton Park Italian Garden Detail","Tatton-Park-Italian-Garden-Detail_thumb.jpg",130,205,18);thumbnails[1573664]=new thumbnail(1573664,"23493","Bridgemere Gardens - Daffodils and Tulips","Bridgemere-Gardens-Daffodils-and-Tulips_thumb.jpg",130,172,18);thumbnails[1588088]=new thumbnail(1588088,"23493","Styal Village - Spring Garden","Styal-Village-Spring-Garden_thumb.jpg",130,198,18);thumbnails[3048897]=new thumbnail(3048897,"189618","Sky and Hillside","Sky-and-Hillside_thumb.jpg",130,87,18);thumbnails[3048901]=new thumbnail(3048901,"189618","View Along Beach","View-Along-Beach_thumb.jpg",130,90,18);thumbnails[3415403]=new thumbnail(3415403,"189618","Gateway and Preacher","Portmeirion-Gateway-and-Pre_thumb.jpg",130,87,18);thumbnails[3415409]=new thumbnail(3415409,"189618","Obeservatory and Beach","Portmeirion-Observatory-and-Beach_thumb.jpg",130,87,18);thumbnails[3415413]=new thumbnail(3415413,"189618","Pantheon on Hillside","Portmeirion-Pantheon-on-Hil_thumb.jpg",130,84,18);thumbnails[3415416]=new thumbnail(3415416,"189618","Houses on Hill","Portmeirion-Houses-on-Hills_thumb.jpg",130,87,18);thumbnails[3415419]=new thumbnail(3415419,"189618","Preacher","Portmeirion-Preacher_thumb.jpg",130,121,18);thumbnails[3415397]=new thumbnail(3415397,"189618","Pantheon on Hillside","Pantheon-on-Hillside_thumb.jpg",130,188,18);thumbnails[3415401]=new thumbnail(3415401,"189618","Portmeirion Gateway","Portmeirion-Gateway_thumb.jpg",130,195,18);thumbnails[3415421]=new thumbnail(3415421,"189618","Statue of Hercules","Portmeirion-Hercules-Statue_thumb.jpg",130,195,18);var galleries=new Object();galleries[23387]=new gallery(23387,"3042499,748722,266805,262188","Countryside","gallery",[268096,268101,270105,270118,272317,586448,586554,714439,727179,979972,992999,1521671,1521735,1545066,1545075,1573710,1672687,1672696,3045990,3046113,3046120,3046125,3046136,3046193,749030,1521832,727185,3046147,3045992,3042499,262188,265361,266778,727183,266805,264992,649329,631472,1528792,748722,756078]);galleries[23456]=new gallery(23456,"1605808,1588079,701759,262219","Places","gallery",[262112,265225,265294,265313,342255,358302,570974,586924,600317,604139,634739,1521791,1560135,1560501,1585963,3048880,3048887,701759,262219,3048894,1585978,1672705,1588079,1573675,3526750,1605808,1592107]);galleries[23458]=new gallery(23458,"3089250,649301,269172,265213","Gardens ","gallery",[262075,269158,358324,600270,600271,606309,714818,728157,735111,738985,767246,767336,1534859,1573698,1592643,1672729,1955071,2603502,3067259,3067270,3067271,3067273,3067599,3067606,3067609,3089186,3089200,356245,3067600,3067535,1683698,749044,265213,3089250,269172,649301,752916,1954985,2601432,714824,728264,3067254,3067616,3067627,3067630]);galleries[189607]=new gallery(189607,"3067255,1592521,269137","Flowers and Plants","gallery",[265199,265201,571606,606389,733210,733212,767232,993008,2603494,3067261,3067265,3067272,3526427,3067690,269137,1592521,3067255,277531]);galleries[23495]=new gallery(23495,"2601409,1667811,358288,265328","Built Heritage","gallery",[265344,280190,586586,727188,738972,752909,1532264,1532265,1532482,1534842,1545027,1546911,2603492,3077757,3077763,3077767,3526393,727186,1667830,2601024,1534851,2601409,265328,358288,768913,752905,1667805,1545016,3077600,1667811,1954960,1624124,3077696,3077700]);galleries[106568]=new gallery(106568,"1677463,1560155,727283,726937","Chester","gallery",[726923,1555222,1560146,1560150,1573669,1677452,3084756,1560179,3084751,1677440,265305,726937,727283,727284,1677457,1677463,1560155,1555029,3084760,1561624]);galleries[23493]=new gallery(23493,"1588088,631449,600356,265281","Cheshire","gallery",[262160,265161,265257,266813,266824,272313,632681,737655,1545011,1545033,1588084,1683732,1683736,265244,265281,631449,600356,749274,1573664,1588088]);galleries[189618]=new gallery(189618,"3415397","Feature Gallery","gallery",[3048897,3048901,3415403,3415409,3415413,3415416,3415419,3415397,3415401,3415421]);var imageSets=new Object();imageSets[1]="3415421,3077700,3077600,3042499,2601409,701759,269172";imageSets[2]="3415397,3089250,3067255,3042499,2601409,1677463,1667811,1605808,1592521,1588088,1588079,1560155,748722,727283,726937,701759,649301,631449,600356,358288,269172,269137,266805,265328,265281,265213,262219,262188";imageSets[3]="3535049,3526750,3526427,3526393,3415421,3415419,3415416,3415413,3415409,3415403,3415401,3415397,3089250,3089237,3089233,3089226,3089220,3089218,3089217,3089203,3089201,3089200,3089186,3084760,3084756,3084751,3077767,3077763,3077757,3077700,3077696,3077600,3067690,3067630,3067627,3067616,3067609,3067606,3067600,3067599,3067535,3067273,3067272,3067271,3067270,3067265,3067261,3067259,3067255,3067254";function randomListVal(a){arrayVals=a.split(",");if(arrayVals.length){pos=Math.round(Math.random()*(arrayVals.length-1));val=arrayVals[pos]}else{val=0}return val}function getServerPath(a){var b=-1;switch(a){case 21:b="http://www6.clikpic.com/Joewainwright/images";break}switch(a){case 1:b="http://www1.clikpic.com/Joewainwright/images";break}switch(a){case 2:b="http://admin.clikpic.com/Joewainwright/images";break}switch(a){case 24:b="http://tpc15/clikpic/Joewainwright/images";break}switch(a){case 4:b="http://www.clikchurch.com/Joewainwright/images";break}switch(a){case 5:b="http://www2.clikpic.com/Joewainwright/images";break}switch(a){case 22:b="http://tpc5/clikpic/Joewainwright/images";break}switch(a){case 23:b="http://tpc10/clikpic/Joewainwright/images";break}switch(a){case 25:b="http://tpc16/clikpic/Joewainwright/images";break}switch(a){case 15:b="http://www3.clikpic.com/Joewainwright/images";break}switch(a){case 18:b="http://www4.clikpic.com/Joewainwright/images";break}switch(a){case 19:b="http://www5.clikpic.com/Joewainwright/images";break}switch(a){case 31:b="http://www7.clikpic.com/Joewainwright/images";break}switch(a){case 32:b="http://admin2.clikpic.com/Joewainwright/images";break}switch(a){case 33:b="http://www8.clikpic.com/Joewainwright/images";break}switch(a){case 34:b="http://www9.clikpic.com/Joewainwright/images";break}switch(a){case 35:b="http://admin3.clikpic.com/Joewainwright/images";break}switch(a){case 37:b="http://admin4.clikpic.com/Joewainwright/images";break}return b}function showHomeImage(a){imageID=randomListVal("");if(!basic){a.src=photos[imageID].src;a.width=photos[imageID].width;a.height=photos[imageID].height}else{newImage=new Image(photos[imageID].width,photos[imageID].height);newImage.src=photos[imageID].src;document.images[a.name]=newImage}}function showHomeImageInline(){html="";imageID=randomListVal(imageSets[1]);if("gallery"!=""){if(backgrounds[imageID].galleries_id!=""){html+='<a href="'+backgrounds[imageID].section_code+"_"+backgrounds[imageID].galleries_id+'.html">'}else{html+='<a href="gallery.html">'}}html+='<img src="'+backgrounds[imageID].src+'" width="'+backgrounds[imageID].width+'" height="'+backgrounds[imageID].height+'" class="mainhomepageimage photo" id="mainSample" name="mainSample" alt="'+escape(backgrounds[imageID].caption)+'" border="0">';if("gallery"!=""){html+="</a>"}$("#homepageimage").html(html)}function getNextId(b,d,a){var c=getArrayPos(d,b);if(a){if(c==0){nextImgPos=d.length-1}else{nextImgPos=c-1}}else{if(c==d.length-1){nextImgPos=0}else{nextImgPos=c+1}}nextImg=d[nextImgPos];return nextImg}function next(d,b){var c=d.value;var a=galleries[photos[c].galleries_id].photoIDs;nextImg=getNextId(c,a);if(nextImg!=-1){updateImage(nextImg,d,b)}}function updateImage(f,e,b){if(!basic){document.getElementById("imagePhoto").innerHTML='<img class="mainphoto photo" src="'+photos[f].src+' " id="mainPic" name="mainPic" width="'+photos[f].width+'" height="'+photos[f].height+'" alt="'+photos[f].caption+'">';e.value=photos[f].id;$("#imageTitle").html(photos[f].caption);document.title="Beauty of Britain: "+photos[f].caption;if(photos[f].caption==""){document.getElementById("imageTitle").style.display="none"}else{document.getElementById("imageTitle").style.display="block"}var a=fnGetImageDetails(f);if(a==""){document.getElementById("imageDetails").style.display="none";var c=document.getElementById("infoWrap");var d=document.getElementById("photoInfo");if(photos[f].caption==""){if(c!=null){c.className="empty"}if(d!=null){d.className="empty"}}else{if(c!=null){c.className="noinfo"}if(d!=null){d.className="noinfo"}}}else{document.getElementById("imageDetails").style.display="block";var c=document.getElementById("infoWrap");if(c!=null){c.className="normal"}var d=document.getElementById("photoInfo");if(d!=null){d.className="normal"}}document.getElementById("imageDetails").innerHTML=a;toggleAddToCartConfirm()}else{window.location="photo_"+photos[f].id+".html"}}function toggleAddToCartConfirm(){if($("#paymentConfirm").size()){$("#paymentConfirm").hide();$("#paymentAddButton").unbind().click(function(){form=document.getElementById("paymentForm");option_id=0;if(form.item_option.value){option_id=form.item_option.value}if(addItemToBasket(form.item_number.value,photos,form.site.value,parseInt(form.quantity.value,10),option_id)){if($.browser.msie){$("#paymentConfirm").text("Item added to cart").show()}else{$("#paymentConfirm").text("Item added to cart").fadeIn()}}else{$("#paymentConfirm").text("Item not added - check cookies are enabled in your browser.").fadeIn()}})}}function fnGetImageDetails(b){var a="";if(photos[b].description!=""){a=a+'<p id="imageDescription">'+photos[b].description+"</p>"}if(photos[b].photo_ref!=""){a=a+'<p class="imageinfo" id="imageRef"><strong>Ref: </strong>'+photos[b].photo_ref+"</p>"}if(photos[b].takendate!=""){a=a+'<p class="imageinfo" id="imageDate"><strong>Date: </strong>'+photos[b].takendate+"</p>"}if(photos[b].location!=""){a=a+'<p class="imageinfo" id="imageLocation"><strong>Location: </strong>'+photos[b].location+"</p>"}if(photos[b].photographer!=""){a=a+'<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>'+photos[b].photographer+"</p>"}a=a+fnGetPaymentInfo(photos[b]);if(a!=""){a=a+'<div class="spacer"></div>'}return a}function fnGetPaymentInfo(c){var b="";if(c.item_price!==""){b=b+"<p>Buy now using PayPal:</p>";b=b+'<p class="imageinfo" id="imagePrice"><strong>'+c.purchase_instruction+"</strong> 				&pound;"+(c.item_price).toFixed(2)+"</p>";var e=c.purchase_instruction;var d=(c.item_price).toFixed(2);var a=0}else{if(c.payment_groups_id!==""){b=b+"<p>Buy this print online:</p>";b=b+'<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';b=b+'<select class="paymentlink" name="payment_options_id" onchange="updateItemValues(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';b=b+getPaymentOptions(c.payment_groups_id);b=b+"</select>";b=b+"</form>";var a=paymentGroups[c.payment_groups_id].options[0];if(paymentOptions[a]){var e=paymentOptions[a].payment_option;var d=paymentOptions[a].price}}else{}}if(c.item_price!==""||c.payment_groups_id!==""){b=b+'<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';b=b+'<input type="hidden" name="item_name" value="'+e+'">';ref="";if(c.photo_ref!=""){ref=c.photo_ref+" - "+c.caption}else{ref=c.id+" - "+c.caption}price=d;b=b+'<input type="hidden" name="cmd" value="_cart">';b=b+'<input type="hidden" name="business" value="beautyofbritain@aol.com">';b=b+'<input type="hidden" name="currency_code" value="GBP">';b=b+'<input type="hidden" name="add" value="1">';b=b+'<input type="hidden" name="amount" value="'+d+'">';b=b+'<input type="hidden" name="item_number" value="'+ref+'">';b=b+'<input type="Submit" value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';">';b=b+"</form>";b=b+'<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';b=b+'<input type="hidden" name="cmd" value="_cart">';b=b+'<input type="hidden" name="business" value="beautyofbritain@aol.com">';b=b+'<input type="hidden" name="display" value="1">';b=b+'<input type="Submit" value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';">';b=b+"</form>";b=b+'<div class="clearing">&nbsp;</div>'}return b}function previous(d,b){var c=d.value;var a=galleries[photos[c].galleries_id].photoIDs;nextImg=getNextId(c,a,1);if(nextImg!=-1){updateImage(nextImg,d,b)}}function showGalleryImage(c,b){imageID=randomListVal(galleries[c].featured_images);if(imageID!=0){b.src=thumbnails[imageID].src;b.width=thumbnails[imageID].width;b.height=thumbnails[imageID].height;if(b.width<130){var f=$("img#gallery"+c);f.parents(".thumbWrap").width(b.width);var a=f.siblings("h3").size()==1?f.siblings("h3"):f.parent(".thumbWrap").siblings("h3");var g=parseInt(a.css("padding-left"))+parseInt(a.css("padding-right"));var d=parseInt(a.css("border-left-width"))+parseInt(a.css("border-right-width"));var e=parseInt(f.parents(".thumbWrap").css("border-left-width"))+parseInt(f.parents(".thumbWrap").css("border-right-width"));a.width(f.outerWidth(true)-g-d+e)}}}function showGalleries(a){if(!basic){temp="";for(i=0;i<galleries.length;i++){if(galleries[i].id!=a){if(temp!=""){temp=temp+" | "}temp=temp+'<a href="gallery_'+galleries[i].id+'.html">'+galleries[i].title+"</a>"}}document.all.galleryLinks.innerHTML="Other galleries: "+temp}}function resizePhotoInfo(n){var b=$.extend({centre:false},n||{});var d=3;$("div#photoPanelOuter").height("auto");$("div#infoWrap").width(200);$("div#photoDetail").css("width","auto");var h=$("div#maincolContent").width();var j=$("div#photoWrap").outerWidth(true);var m=$("div#infoWrap").outerWidth(true);var k=$("div#photoWrap").outerHeight();var f=$("div#infoWrap").outerHeight();var c=$("div#infoWrap").hasClass("empty");floatDrop=0;var g=j;if(!c){if(h<(j+m)){floatDrop=1}if(!floatDrop){var a=$("div#infoWrap").innerWidth();$("div#infoWrap").width(a+(h-j-m-d));m=$("div#infoWrap").outerWidth(true);g=j+m;if(k>f){var e=$("div#photoPanelOuter").height();$("div#photoPanelOuter").height(e+(k-f));var f=$("div#infoWrap").outerHeight()}}else{var l=$("div#photoWrap").outerWidth();$("div#infoWrap").width(l)}}if(b.centre){$("div#photoDetail").width(g);$("div#photoDetail").css("margin-left","auto");$("div#photoDetail").css("margin-right","auto")}else{$("div#photoDetail").css("margin-left","0");$("div#photoDetail").css("margin-right","0")}}function getArrayPos(c,b){for(var a=0;a<c.length;a++){if(c[a]==b){return a}}return -1}function changeBgImg(a,e){var c=randomListVal(imageSets[e]);var d=backgrounds[c].src;var b=$(a);if(b.size()>0){if(/\bimg$/.test(a)){b.attr({src:d})}else{b.css({"background-image":'url("'+d+'")'})}}};