window.thumbnails = {};
															thumbnails[7909787] = clik.newPhoto({"id":7909787,"src":"Rivets_thumb.jpg","galleries_id":200964,"server_id":1,"link":"photo_7909787.html","width":130,"caption":"Trent Bridge underside","height":87});
															thumbnails[4603473] = clik.newPhoto({"id":4603473,"src":"Wild--garlic_thumb.jpg","galleries_id":243420,"server_id":1,"link":"photo_4603473.html","width":130,"caption":"Wild Garlic","height":95});
															thumbnails[6474474] = clik.newPhoto({"id":6474474,"src":"Lily_thumb.jpg","galleries_id":243420,"server_id":1,"link":"photo_6474474.html","width":130,"caption":"Garden Lily","height":87});
															thumbnails[7928400] = clik.newPhoto({"id":7928400,"src":"Goldfinch-on-feeder_thumb.jpg","galleries_id":427256,"server_id":1,"link":"photo_7928400.html","width":87,"caption":"Goldfinch","height":130});
															thumbnails[3693849] = clik.newPhoto({"id":3693849,"src":"Mandarin-Duck_thumb.jpg","galleries_id":182892,"server_id":1,"link":"photo_3693849.html","width":130,"caption":"Mandarin Duck(Aix galericulata)","height":87});
															thumbnails[8095401] = clik.newPhoto({"id":8095401,"src":"Teide_thumb.jpg","galleries_id":428127,"server_id":1,"link":"photo_8095401.html","width":130,"caption":"Mount Teide Tenerife","height":87});
															thumbnails[7991859] = clik.newPhoto({"id":7991859,"src":"Robin-on-Branch_thumb.jpg","galleries_id":427256,"server_id":1,"link":"photo_7991859.html","width":87,"caption":"Robin","height":130});
															thumbnails[7950549] = clik.newPhoto({"id":7950549,"src":"Majorca-Pine-Walk_thumb.jpg","galleries_id":428127,"server_id":1,"link":"photo_7950549.html","width":130,"caption":"Puerto Pollenca Majorca","height":87});
															thumbnails[3825029] = clik.newPhoto({"id":3825029,"src":"Bluebell-wood_thumb.jpg","galleries_id":243420,"server_id":1,"link":"photo_3825029.html","width":130,"caption":"Bluebell wood Staunton Harold Reservoir","height":95});
															thumbnails[2988180] = clik.newPhoto({"id":2988180,"src":"Nottingham-Market-Square_thumb.jpg","galleries_id":182891,"server_id":1,"link":"photo_2988180.html","width":130,"caption":"The Market Square and Council House","height":87});
															thumbnails[3269731] = clik.newPhoto({"id":3269731,"src":"Alstonfield_thumb_FA2D3B1D-1EC9-D45B-1CC72633BA453B7A.jpg","galleries_id":231258,"server_id":1,"link":"photo_3269731.html","width":130,"caption":"Alstonfield Village Debyshire","height":87});
															thumbnails[7950107] = clik.newPhoto({"id":7950107,"src":"Sparrowhawk_thumb.jpg","galleries_id":427256,"server_id":1,"link":"photo_7950107.html","width":87,"caption":"Sparrowhawk","height":130});
															thumbnails[3800296] = clik.newPhoto({"id":3800296,"src":"Watendlath-R1_thumb.jpg","galleries_id":187901,"server_id":1,"link":"photo_3800296.html","width":130,"caption":"Watendlath Bridge  -  Lake district","height":87});
															thumbnails[5013725] = clik.newPhoto({"id":5013725,"src":"Attenborough-Sunset_thumb.jpg","galleries_id":182891,"server_id":1,"link":"photo_5013725.html","width":130,"caption":"Sunset over Attenborugh Reserve","height":87});
															thumbnails[7986969] = clik.newPhoto({"id":7986969,"src":"Collared-dove_thumb.jpg","galleries_id":427256,"server_id":1,"link":"photo_7986969.html","width":130,"caption":"Collared Dove","height":87});
															thumbnails[7928366] = clik.newPhoto({"id":7928366,"src":"Greenfinch-on-Feeder_thumb.jpg","galleries_id":427256,"server_id":1,"link":"photo_7928366.html","width":87,"caption":"Greenfinch","height":130});
															thumbnails[3800325] = clik.newPhoto({"id":3800325,"src":"Ashness-Bridge_thumb.jpg","galleries_id":187901,"server_id":1,"link":"photo_3800325.html","width":130,"caption":"Ashness Bridge Lake district","height":95});
															thumbnails[4615290] = clik.newPhoto({"id":4615290,"src":"Hover-Fly_thumb.jpg","galleries_id":182892,"server_id":1,"link":"photo_4615290.html","width":130,"caption":"Hoverfly  (Syrphidae) on purple cosmos flower","height":87});
															thumbnails[4165742] = clik.newPhoto({"id":4165742,"src":"Lathkill-dale_thumb.jpg","galleries_id":231258,"server_id":1,"link":"photo_4165742.html","width":130,"caption":"Lathkill Dale Derbyshire ","height":87});
															thumbnails[7949871] = clik.newPhoto({"id":7949871,"src":"Thrush_thumb.jpg","galleries_id":427256,"server_id":1,"link":"photo_7949871.html","width":130,"caption":"Song Thrush","height":87});
															thumbnails[4009455] = clik.newPhoto({"id":4009455,"src":"approaching-bewdley-with-border_thumb.jpg","galleries_id":200964,"server_id":1,"link":"photo_4009455.html","width":130,"caption":"Approaching Bewdley Severn Valley Railway","height":87});
															thumbnails[3115142] = clik.newPhoto({"id":3115142,"src":"Dock-tarn-1_thumb.jpg","galleries_id":187901,"server_id":1,"link":"photo_3115142.html","width":130,"caption":"Dock Tarn - Lake District","height":95});
															thumbnails[5658883] = clik.newPhoto({"id":5658883,"src":"Red-Crested-Pochard_thumb.jpg","galleries_id":182892,"server_id":1,"link":"photo_5658883.html","width":130,"caption":"Red Crested Pochard  ( Netta Rufina)","height":87});
															thumbnails[7928377] = clik.newPhoto({"id":7928377,"src":"Woodpigeon_thumb.jpg","galleries_id":427256,"server_id":1,"link":"photo_7928377.html","width":130,"caption":"Woodpigeon","height":87});
															thumbnails[6480049] = clik.newPhoto({"id":6480049,"src":"Gunnerside-1_thumb.jpg","galleries_id":231258,"server_id":1,"link":"photo_6480049.html","width":130,"caption":"Gunnerside in the Yorkshire  Dales","height":87});
															thumbnails[3591936] = clik.newPhoto({"id":3591936,"src":"Black-Headed-Gull_thumb.jpg","galleries_id":182892,"server_id":1,"link":"photo_3591936.html","width":130,"caption":"Black Headed Gull(Larus Ridibundus)","height":87});
															thumbnails[3388377] = clik.newPhoto({"id":3388377,"src":"Bedruthan-Steps_thumb.jpg","galleries_id":187416,"server_id":1,"link":"photo_3388377.html","width":130,"caption":"Bedruthan Steps North Cornwall","height":87});
															thumbnails[3046494] = clik.newPhoto({"id":3046494,"src":"Whitby-Harbour-from-Abbey-Steps_thumb.jpg","galleries_id":187416,"server_id":1,"link":"photo_3046494.html","width":130,"caption":"Whitby Harbour from Abbey Steps","height":87});
															thumbnails[2988159] = clik.newPhoto({"id":2988159,"src":"Canalside_thumb.jpg","galleries_id":182891,"server_id":1,"link":"photo_2988159.html","width":130,"caption":"Nottingham  Beeston Canal in the City","height":87});
															thumbnails[3054819] = clik.newPhoto({"id":3054819,"src":"skiddaw-view_thumb.jpg","galleries_id":187901,"server_id":1,"link":"photo_3054819.html","width":130,"caption":"Skiddaw from near Bassenthwaite Lake","height":95});
															thumbnails[8554100] = clik.newPhoto({"id":8554100,"src":"Swaledale-barn-sepia_thumb.jpg","galleries_id":231258,"server_id":1,"link":"photo_8554100.html","width":130,"caption":"Yorkshire hay Barn","height":87});
															thumbnails[4405628] = clik.newPhoto({"id":4405628,"src":"Belper-weir_thumb.jpg","galleries_id":231258,"server_id":1,"link":"photo_4405628.html","width":130,"caption":"The weir at Belper","height":87});
															thumbnails[5762530] = clik.newPhoto({"id":5762530,"src":"Nottingham-University-Gardens_thumb.jpg","galleries_id":182891,"server_id":1,"link":"photo_5762530.html","width":130,"caption":"Nottingham University Millenium Gardens","height":87});
															thumbnails[9168224] = clik.newPhoto({"id":9168224,"src":"Arbor-Low_1_thumb.jpg","galleries_id":231258,"server_id":1,"link":"photo_9168224.html","width":130,"caption":"Arbor Low","height":87});
															thumbnails[8012256] = clik.newPhoto({"id":8012256,"src":"Carrion-Crow1_thumb.jpg","galleries_id":427256,"server_id":1,"link":"photo_8012256.html","width":130,"caption":"Carrion Crow","height":87});
															thumbnails[5459430] = clik.newPhoto({"id":5459430,"src":"Newark-Castle_thumb.jpg","galleries_id":182891,"server_id":1,"link":"photo_5459430.html","width":130,"caption":"Newark Castle from River Trent","height":87});
															thumbnails[4040503] = clik.newPhoto({"id":4040503,"src":"celandines_thumb.jpg","galleries_id":243420,"server_id":1,"link":"photo_4040503.html","width":130,"caption":"Wild  Lesser Celandines Ranunculus ficaria","height":87});
															thumbnails[4583387] = clik.newPhoto({"id":4583387,"src":"Southwell_Garden_view_thumb.jpg","galleries_id":182891,"server_id":1,"link":"photo_4583387.html","width":130,"caption":"Southwell Minster Grounds ","height":87});
															thumbnails[4682314] = clik.newPhoto({"id":4682314,"src":"skiddaw-view-2_thumb.jpg","galleries_id":187901,"server_id":1,"link":"photo_4682314.html","width":130,"caption":"Skiddaw from Bassenthwaite","height":87});
															thumbnails[4781757] = clik.newPhoto({"id":4781757,"src":"Ruddy-shelduck_thumb.jpg","galleries_id":182892,"server_id":1,"link":"photo_4781757.html","width":130,"caption":"Ruddy Shelduck at Attenborough","height":85});
															thumbnails[9168281] = clik.newPhoto({"id":9168281,"src":"Alport-Heights_1_thumb.jpg","galleries_id":231258,"server_id":1,"link":"photo_9168281.html","width":130,"caption":"Alport Height","height":87});
															thumbnails[4098308] = clik.newPhoto({"id":4098308,"src":"Beside-the-Lake-R1_thumb.jpg","galleries_id":187901,"server_id":1,"link":"photo_4098308.html","width":130,"caption":"Beside the Lake ","height":87});
															thumbnails[4785156] = clik.newPhoto({"id":4785156,"src":"Laycock-sandy-lane_thumb.jpg","galleries_id":187416,"server_id":1,"link":"photo_4785156.html","width":130,"caption":"Laycock Village  - Sandy Lane","height":87});
															thumbnails[5652472] = clik.newPhoto({"id":5652472,"src":"Goldeneye_thumb.jpg","galleries_id":182892,"server_id":1,"link":"photo_5652472.html","width":130,"caption":"Goldeneye Bucephala clangula","height":87});
															thumbnails[3782136] = clik.newPhoto({"id":3782136,"src":"Laycock-2_thumb.jpg","galleries_id":187416,"server_id":1,"link":"photo_3782136.html","width":130,"caption":"Laycock Village and churchyard","height":87});
															thumbnails[3388391] = clik.newPhoto({"id":3388391,"src":"Padstow-Harbour-1_thumb.jpg","galleries_id":187416,"server_id":1,"link":"photo_3388391.html","width":130,"caption":"Padstow Harbour Cornwall","height":87});
															thumbnails[8417860] = clik.newPhoto({"id":8417860,"src":"Black-Swan_thumb.jpg","galleries_id":182892,"server_id":1,"link":"photo_8417860.html","width":130,"caption":"Black Swan","height":87});
															thumbnails[8260062] = clik.newPhoto({"id":8260062,"src":"Wensleydale-Rlwy-0703_thumb.jpg","galleries_id":200964,"server_id":1,"link":"photo_8260062.html","width":130,"caption":"Wensleydale railway","height":87});
															thumbnails[7903230] = clik.newPhoto({"id":7903230,"src":"Painters-Palette_thumb.jpg","galleries_id":243420,"server_id":1,"link":"photo_7903230.html","width":130,"caption":"Painter's palette","height":87});
															thumbnails[5813013] = clik.newPhoto({"id":5813013,"src":"Donington-on-Bain_thumb.jpg","galleries_id":231258,"server_id":1,"link":"photo_5813013.html","width":130,"caption":"Donington on Bain Water Mill","height":87});
															thumbnails[4109398] = clik.newPhoto({"id":4109398,"src":"Warkworth-Castle_thumb.jpg","galleries_id":200964,"server_id":1,"link":"photo_4109398.html","width":130,"caption":"Warkworth Castle Northumberland","height":87});
															thumbnails[2987876] = clik.newPhoto({"id":2987876,"src":"A-Nottingham-Tram_thumb.jpg","galleries_id":182891,"server_id":1,"link":"photo_2987876.html","width":130,"caption":"A Nottingham Tram leaving Market Square","height":87});
															thumbnails[8342906] = clik.newPhoto({"id":8342906,"src":"St-Johann-Church_thumb.jpg","galleries_id":200964,"server_id":1,"link":"photo_8342906.html","width":130,"caption":"St Johann Church Tyrol Austria","height":87});
															thumbnails[3054747] = clik.newPhoto({"id":3054747,"src":"Southwold--Beach-Huts_thumb.jpg","galleries_id":187416,"server_id":1,"link":"photo_3054747.html","width":130,"caption":"Traditional beach huts at Southwold<br>\r\n<br>\r\n","height":87});
															thumbnails[3328229] = clik.newPhoto({"id":3328229,"src":"Derwent-water-winter_thumb.jpg","galleries_id":187901,"server_id":1,"link":"photo_3328229.html","width":130,"caption":"Derwent Water looking towards Skiddaw","height":95});
															thumbnails[7878638] = clik.newPhoto({"id":7878638,"src":"Nr-Colston-Bassett_thumb.jpg","galleries_id":231258,"server_id":1,"link":"photo_7878638.html","width":130,"caption":"Colston bassett Hall","height":87});
															thumbnails[7773168] = clik.newPhoto({"id":7773168,"src":"Granby-4-2_thumb.jpg","galleries_id":231258,"server_id":1,"link":"photo_7773168.html","width":130,"caption":"Granby Village","height":87});
															thumbnails[4670874] = clik.newPhoto({"id":4670874,"src":"Southwold-huts-and-pier_thumb.jpg","galleries_id":187416,"server_id":1,"link":"photo_4670874.html","width":130,"caption":"Southwold pier and beach huts","height":87});
															thumbnails[7853136] = clik.newPhoto({"id":7853136,"src":"Harston--3_thumb.jpg","galleries_id":231258,"server_id":1,"link":"photo_7853136.html","width":130,"caption":"Harston - The Old Post office","height":87});
															thumbnails[5696731] = clik.newPhoto({"id":5696731,"src":"Southwold-huts-and-pier-BW_E89ABDB4-1EC9-D45B-1C4B37E8E90DDE49_thumb.jpg","galleries_id":187416,"server_id":1,"link":"photo_5696731.html","width":130,"caption":"Southwold huts and pier - monochrome","height":87});
															thumbnails[8768727] = clik.newPhoto({"id":8768727,"src":"Fulbeck-Lincolnshire_thumb.jpg","galleries_id":231258,"server_id":1,"link":"photo_8768727.html","width":130,"caption":"Fulbeck Lincolnshire","height":87});
															thumbnails[8436488] = clik.newPhoto({"id":8436488,"src":"Canada-geese-chick_thumb.jpg","galleries_id":182892,"server_id":1,"link":"photo_8436488.html","width":130,"caption":"Canada Goose gosling","height":87});
															thumbnails[6069158] = clik.newPhoto({"id":6069158,"src":"Colonnie-San-Pedro_thumb.jpg","galleries_id":428127,"server_id":1,"link":"photo_6069158.html","width":130,"caption":"Colonie de San Pedro","height":87});
															thumbnails[6069186] = clik.newPhoto({"id":6069186,"src":"White-Boat---Majorca_thumb.jpg","galleries_id":428127,"server_id":1,"link":"photo_6069186.html","width":130,"caption":"White yacht on a blue sea","height":87});
															thumbnails[7909711] = clik.newPhoto({"id":7909711,"src":"Rufford-Park-Chimneys_thumb.jpg","galleries_id":200964,"server_id":1,"link":"photo_7909711.html","width":130,"caption":"Chimney Stacks Rufford Park","height":87});
															thumbnails[5288470] = clik.newPhoto({"id":5288470,"src":"Knipton-Church_thumb.jpg","galleries_id":231258,"server_id":1,"link":"photo_5288470.html","width":130,"caption":"Knipton Church Vale of Belvoir","height":87});
															thumbnails[4890084] = clik.newPhoto({"id":4890084,"src":"Samos-Boat_thumb.jpg","galleries_id":428127,"server_id":1,"link":"photo_4890084.html","width":130,"caption":"Ready for sea -  Kokkari Samos","height":87});
															thumbnails[4566503] = clik.newPhoto({"id":4566503,"src":"Gunnerside-View_thumb.jpg","galleries_id":187901,"server_id":1,"link":"photo_4566503.html","width":130,"caption":"Slei Gill - Arkengarthdale Yorkshire","height":87});
															thumbnails[6371747] = clik.newPhoto({"id":6371747,"src":"Spurn-Point-24_thumb.jpg","galleries_id":187416,"server_id":1,"link":"photo_6371747.html","width":130,"caption":"Spurn sea defences","height":87});
															thumbnails[8715885] = clik.newPhoto({"id":8715885,"src":"Tree-trunk--Pattern_thumb.jpg","galleries_id":200964,"server_id":1,"link":"photo_8715885.html","width":130,"caption":"Patterns in wood","height":87});
															thumbnails[5897608] = clik.newPhoto({"id":5897608,"src":"Spurn-Point-20_thumb.jpg","galleries_id":187416,"server_id":1,"link":"photo_5897608.html","width":87,"caption":"Spurn Point - Lighthouse","height":130});
															thumbnails[4597692] = clik.newPhoto({"id":4597692,"src":"Gunnerside_thumb.jpg","galleries_id":187901,"server_id":1,"link":"photo_4597692.html","width":130,"caption":"Gunnerside View Yorkshire Dales","height":87});
															thumbnails[3356196] = clik.newPhoto({"id":3356196,"src":"Staithes-View_thumb.jpg","galleries_id":187416,"server_id":1,"link":"photo_3356196.html","width":87,"caption":"Staithes Village View","height":130});
															thumbnails[7581191] = clik.newPhoto({"id":7581191,"src":"Wilford-Bridge-2_thumb.jpg","galleries_id":182891,"server_id":1,"link":"photo_7581191.html","width":130,"caption":"Wilford Bridge","height":87});
															thumbnails[4039802] = clik.newPhoto({"id":4039802,"src":"Flag-Iris_thumb.jpg","galleries_id":243420,"server_id":1,"link":"photo_4039802.html","width":87,"caption":"Wild Yellow Flag Iris (Iris Pseudacorus)","height":130});
															thumbnails[2987797] = clik.newPhoto({"id":2987797,"src":"The-Embankment_thumb.jpg","galleries_id":182891,"server_id":1,"link":"photo_2987797.html","width":130,"caption":"The Embankment and Trent Bridge in Autumn","height":87});
															thumbnails[3046281] = clik.newPhoto({"id":3046281,"src":"The-Raven_thumb.jpg","galleries_id":187416,"server_id":1,"link":"photo_3046281.html","width":87,"caption":"The Raven in Bath","height":130});
															thumbnails[8975565] = clik.newPhoto({"id":8975565,"src":"Nodding-Donkey_thumb.jpg","galleries_id":200964,"server_id":1,"link":"photo_8975565.html","width":130,"caption":"Nodding Donkey","height":87});
															thumbnails[8814669] = clik.newPhoto({"id":8814669,"src":"clouded-funnel-cap_thumb.jpg","galleries_id":243420,"server_id":1,"link":"photo_8814669.html","width":130,"caption":"Clouded Funnel cap","height":126});
															thumbnails[8783029] = clik.newPhoto({"id":8783029,"src":"Fly-agaric_thumb.jpg","galleries_id":243420,"server_id":1,"link":"photo_8783029.html","width":87,"caption":"Fly agaric mushroom","height":130});
															thumbnails[4299016] = clik.newPhoto({"id":4299016,"src":"lech_thumb.jpg","galleries_id":187901,"server_id":1,"link":"photo_4299016.html","width":130,"caption":"Lech Arlberg Region Austria","height":87});
															thumbnails[3296205] = clik.newPhoto({"id":3296205,"src":"Wollaton-Park-Deer_thumb.jpg","galleries_id":182892,"server_id":1,"link":"photo_3296205.html","width":130,"caption":"Wollaton Park deer","height":87});
															thumbnails[8783084] = clik.newPhoto({"id":8783084,"src":"Parasol-Mushroom_thumb.jpg","galleries_id":243420,"server_id":1,"link":"photo_8783084.html","width":87,"caption":"Parasol Mushroom","height":130});
															thumbnails[8473634] = clik.newPhoto({"id":8473634,"src":"Dryads_Saddle_thumb.jpg","galleries_id":243420,"server_id":1,"link":"photo_8473634.html","width":130,"caption":"Dryad's Saddle Fungus","height":87});
															thumbnails[8222977] = clik.newPhoto({"id":8222977,"src":"Wilder-Kaiser-2_thumb.jpg","galleries_id":187901,"server_id":1,"link":"photo_8222977.html","width":130,"caption":"Alpine View St Johann in Tyrol","height":87});
															thumbnails[8224638] = clik.newPhoto({"id":8224638,"src":"Wilder-Kaiser_thumb.jpg","galleries_id":187901,"server_id":1,"link":"photo_8224638.html","width":130,"caption":"Wilder Kaiser Mountains","height":87});
															thumbnails[8222978] = clik.newPhoto({"id":8222978,"src":"Wilder-kaiser-3_thumb.jpg","galleries_id":187901,"server_id":1,"link":"photo_8222978.html","width":130,"caption":"Mountain Storm","height":87});
															thumbnails[6512225] = clik.newPhoto({"id":6512225,"src":"Fallow-Deer-Pair_thumb.jpg","galleries_id":182892,"server_id":1,"link":"photo_6512225.html","width":130,"caption":"Fallow Deer Wollaton park","height":87});
															thumbnails[4298999] = clik.newPhoto({"id":4298999,"src":"Verwall-See_thumb.jpg","galleries_id":187901,"server_id":1,"link":"photo_4298999.html","width":130,"caption":"Verwall See - Austria","height":87});
															thumbnails[2988138] = clik.newPhoto({"id":2988138,"src":"Park-Steps_thumb.jpg","galleries_id":182891,"server_id":1,"link":"photo_2988138.html","width":130,"caption":"The Park Steps from the Castle","height":87});
															thumbnails[3054776] = clik.newPhoto({"id":3054776,"src":"The-lake-at-Seefeld-_thumb.jpg","galleries_id":187901,"server_id":1,"link":"photo_3054776.html","width":130,"caption":"The lake at Seefeld in the Austrian Tyrol<br>\r\n<br>\r\n","height":87});
															thumbnails[5139982] = clik.newPhoto({"id":5139982,"src":"Falkirk_wheel_and_centre_BW_thumb.jpg","galleries_id":200964,"server_id":1,"link":"photo_5139982.html","width":130,"caption":"Falkirk Wheel and Centre","height":95});
															thumbnails[6408862] = clik.newPhoto({"id":6408862,"src":"Cormorant-on-Rock1_thumb.jpg","galleries_id":182892,"server_id":1,"link":"photo_6408862.html","width":87,"caption":"Cormorant on Rock","height":130});
															thumbnails[4302324] = clik.newPhoto({"id":4302324,"src":"Lindau-from-Bodensee_thumb.jpg","galleries_id":187901,"server_id":1,"link":"photo_4302324.html","width":130,"caption":"Lindau from Bodensee","height":87});
															thumbnails[4302177] = clik.newPhoto({"id":4302177,"src":"Konstanzer-Hutte_thumb.jpg","galleries_id":187901,"server_id":1,"link":"photo_4302177.html","width":130,"caption":"Konstanzer Hutte Arlberg","height":87});
															thumbnails[3035199] = clik.newPhoto({"id":3035199,"src":"Peregrine-Falcon_thumb.jpg","galleries_id":182892,"server_id":1,"link":"photo_3035199.html","width":95,"caption":"Peregrine Falcon - (Falco - Peregrinus)","height":130});
															thumbnails[3002269] = clik.newPhoto({"id":3002269,"src":"lace-market-1_thumb.jpg","galleries_id":182891,"server_id":1,"link":"photo_3002269.html","width":130,"caption":"Broadway - Nottingham Lace Market","height":87});
															thumbnails[3035193] = clik.newPhoto({"id":3035193,"src":"Crowned-Crane_thumb.jpg","galleries_id":182892,"server_id":1,"link":"photo_3035193.html","width":95,"caption":"Crowned Crane - (Balerica regulorum)","height":130});
															thumbnails[2988219] = clik.newPhoto({"id":2988219,"src":"Camelia-House_thumb.jpg","galleries_id":182891,"server_id":1,"link":"photo_2988219.html","width":130,"caption":"Camellia House - Wollaton Park","height":87});
															thumbnails[8353967] = clik.newPhoto({"id":8353967,"src":"Wollaton-Hall-Rear_thumb.jpg","galleries_id":182891,"server_id":1,"link":"photo_8353967.html","width":130,"caption":"Wollaton Hall from Gardens","height":87});
															thumbnails[7853156] = clik.newPhoto({"id":7853156,"src":"Trent-View_thumb.jpg","galleries_id":182891,"server_id":1,"link":"photo_7853156.html","width":130,"caption":"Trent View","height":87});
															thumbnails[3035703] = clik.newPhoto({"id":3035703,"src":"penguin-at-berlin-zoo_thumb.jpg","galleries_id":182892,"server_id":1,"link":"photo_3035703.html","width":95,"caption":"Humboldt Penguins at Berlin Zoo","height":130});
															thumbnails[3167697] = clik.newPhoto({"id":3167697,"src":"Colwick-Park_thumb.jpg","galleries_id":182891,"server_id":1,"link":"photo_3167697.html","width":130,"caption":"Colwick Park Lake Nottingham","height":87});
															thumbnails[7816828] = clik.newPhoto({"id":7816828,"src":"Kneeton-Church_thumb.jpg","galleries_id":182891,"server_id":1,"link":"photo_7816828.html","width":130,"caption":"Kneeton Church","height":87});
															thumbnails[3408140] = clik.newPhoto({"id":3408140,"src":"Halloughton-Church_thumb.jpg","galleries_id":182891,"server_id":1,"link":"photo_3408140.html","width":130,"caption":"Halloughton Church near Southwell","height":87});
															thumbnails[6210399] = clik.newPhoto({"id":6210399,"src":"Maplebech-Church_thumb.jpg","galleries_id":182891,"server_id":1,"link":"photo_6210399.html","width":130,"caption":"Church of St Radegund Maplebeck","height":87});
															thumbnails[7908244] = clik.newPhoto({"id":7908244,"src":"Harlow-Carr_thumb.jpg","galleries_id":231258,"server_id":1,"link":"photo_7908244.html","width":130,"caption":"Harlow Carr Harrogate","height":87});
															thumbnails[3035212] = clik.newPhoto({"id":3035212,"src":"tufted-duck_thumb.jpg","galleries_id":182892,"server_id":1,"link":"photo_3035212.html","width":95,"caption":"Tufted Duck - (Athya Fuligula)","height":130});
															thumbnails[3400136] = clik.newPhoto({"id":3400136,"src":"Oxton-Ford_thumb.jpg","galleries_id":182891,"server_id":1,"link":"photo_3400136.html","width":130,"caption":"The Ford at Oxton Nottinghamshire","height":87});
															thumbnails[5371332] = clik.newPhoto({"id":5371332,"src":"Oil-Patch-Warrior_thumb.jpg","galleries_id":200964,"server_id":1,"link":"photo_5371332.html","width":95,"caption":"Oil Patch Warrior Dukes Wood","height":130});
															thumbnails[3042219] = clik.newPhoto({"id":3042219,"src":"Gonalston-The-forge_thumb.jpg","galleries_id":182891,"server_id":1,"link":"photo_3042219.html","width":130,"caption":"Gonalston - The Old Forge<br>\r\nNottinghamshire<br>\r\n ","height":87});
															thumbnails[5294175] = clik.newPhoto({"id":5294175,"src":"Gonalston-Church_thumb.jpg","galleries_id":182891,"server_id":1,"link":"photo_5294175.html","width":130,"caption":"Church of St Lawrence Gonalston","height":87});
															thumbnails[8503491] = clik.newPhoto({"id":8503491,"src":"Eagle-Owl_thumb.jpg","galleries_id":182892,"server_id":1,"link":"photo_8503491.html","width":130,"caption":"Eagle Owl","height":130});
															thumbnails[7908225] = clik.newPhoto({"id":7908225,"src":"Redmile-Church-1_thumb.jpg","galleries_id":231258,"server_id":1,"link":"photo_7908225.html","width":87,"caption":"St Peter's Redmile","height":130});
															thumbnails[3356190] = clik.newPhoto({"id":3356190,"src":"The-path-to-the-woods_thumb.jpg","galleries_id":182891,"server_id":1,"link":"photo_3356190.html","width":130,"caption":"Path to the woods clumber park","height":87});
															thumbnails[3167671] = clik.newPhoto({"id":3167671,"src":"clumber-park-autumn_thumb.jpg","galleries_id":182891,"server_id":1,"link":"photo_3167671.html","width":130,"caption":"Clumber Park  Woods Autumn view","height":87});
															thumbnails[4109734] = clik.newPhoto({"id":4109734,"src":"southwell-minster-R1_thumb.jpg","galleries_id":182891,"server_id":1,"link":"photo_4109734.html","width":87,"caption":"Southwell Minster ","height":130});
															thumbnails[4325823] = clik.newPhoto({"id":4325823,"src":"Newark-Market-Place_thumb.jpg","galleries_id":182891,"server_id":1,"link":"photo_4325823.html","width":87,"caption":"Newark Market Place","height":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[182891] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Nottinghamshire","link":"gallery_182891.html","maxRecords":0.0,"photoIDs":[2988180.0,5013725.0,2988159.0,5762530.0,5459430.0,4583387.0,2987876.0,7581191.0,2987797.0,2988138.0,3002269.0,2988219.0,8353967.0,7853156.0,3167697.0,7816828.0,3408140.0,6210399.0,3400136.0,3042219.0,5294175.0,3356190.0,3167671.0,4109734.0,4325823.0],"skipIndex":0,"section_code":"gallery","featured_images":"8353967,6210399,2988180","id":182891,"singleSection":false});				  						galleries[231258] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"The Shires","link":"gallery_231258.html","maxRecords":0.0,"photoIDs":[3269731.0,4165742.0,6480049.0,8554100.0,4405628.0,9168224.0,9168281.0,5813013.0,7878638.0,7773168.0,7853136.0,8768727.0,5288470.0,7908244.0,7908225.0],"skipIndex":0,"section_code":"gallery","featured_images":"9168281,9168224,8768727,8554100,7908244,7908225,7853136,7773168,3269731","id":231258,"singleSection":false});				  						galleries[182892] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wildlife","link":"gallery_182892.html","maxRecords":0.0,"photoIDs":[3693849.0,4615290.0,5658883.0,3591936.0,4781757.0,5652472.0,8417860.0,8436488.0,3296205.0,6512225.0,6408862.0,3035199.0,3035193.0,3035703.0,3035212.0,8503491.0],"skipIndex":0,"section_code":"gallery","featured_images":3296205.0,"id":182892,"singleSection":false});				  						galleries[187416] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Towns and Coasts","link":"gallery_187416.html","maxRecords":0.0,"photoIDs":[3388377.0,3046494.0,4785156.0,3782136.0,3388391.0,3054747.0,4670874.0,5696731.0,6371747.0,5897608.0,3356196.0,3046281.0],"skipIndex":0,"section_code":"gallery","featured_images":"3388391,3046494","id":187416,"singleSection":false});				  						galleries[427256] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Garden Birds","link":"gallery_427256.html","maxRecords":0.0,"photoIDs":[7928400.0,7991859.0,7950107.0,7986969.0,7928366.0,7949871.0,7928377.0,8012256.0],"skipIndex":0,"section_code":"gallery","featured_images":"8012256,7991859,7986969,7949871,7928400,7928377,7928366","id":427256,"singleSection":false});				  						galleries[428127] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Islands","link":"gallery_428127.html","maxRecords":0.0,"photoIDs":[8095401.0,7950549.0,6069158.0,6069186.0,4890084.0],"skipIndex":0,"section_code":"gallery","featured_images":7950549.0,"id":428127,"singleSection":false});				  						galleries[187901] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Lakes and Mountains","link":"gallery_187901.html","maxRecords":0.0,"photoIDs":[3800296.0,3800325.0,3115142.0,3054819.0,4682314.0,4098308.0,3328229.0,4566503.0,4597692.0,4299016.0,8222977.0,8224638.0,8222978.0,4298999.0,3054776.0,4302324.0,4302177.0],"skipIndex":0,"section_code":"gallery","featured_images":"8224638,8222978,8222977,4298999,3800296","id":187901,"singleSection":false});				  						galleries[243420] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Flowers, Plants and Fungi","link":"gallery_243420.html","maxRecords":0.0,"photoIDs":[4603473.0,6474474.0,3825029.0,4040503.0,7903230.0,4039802.0,8814669.0,8783029.0,8783084.0,8473634.0],"skipIndex":0,"section_code":"gallery","featured_images":"8814669,8783084,8783029,8473634,7903230,6474474","id":243420,"singleSection":false});				  						galleries[200964] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Miscellaneous","link":"gallery_200964.html","maxRecords":0.0,"photoIDs":[7909787.0,4009455.0,8260062.0,4109398.0,8342906.0,7909711.0,8715885.0,8975565.0,5139982.0,5371332.0],"skipIndex":0,"section_code":"gallery","featured_images":"8975565,8715885,8342906,8260062,7909787,7909711","id":200964,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7928400,7991859,7950549,3825029,2988180,3800296,7928366,3800325,4009455,6480049,3046494,8554100,4405628,4682314,4040503,4098308,3782136,3388391,8342906,8260062,7903230,5813013,4109398,3328229,3054747,7773168,4670874,5696731,8768727,8715885,7909711,6371747,6069186,6069158,5288470,4890084,4566503,5897608,4597692,3356196,7581191,4039802,3046281,8814669,8783029,4299016,3296205,8783084,8222977,8224638,8222978,5139982,4298999,3054776,4302177,3002269,2988219,8353967,7853156,3167697,7816828,6210399,3400136,3042219,3356190,3167671,4109734,4325823';
imageSets[2] = '7909787,6474474,7928400,7991859,7950549,3269731,2988180,3800296,7986969,7928366,7949871,7928377,3046494,8554100,9168224,8012256,9168281,3388391,8342906,8260062,7903230,7773168,7853136,8768727,8715885,7909711,8975565,8814669,8783029,3296205,8783084,8473634,8222977,8224638,8222978,4298999,8353967,6210399,7908244,7908225';
imageSets[3] = '9168281,9168224,8975565,8814669,8783084,8783029,8768727,8715885,8554100,8503491,8473634,8436488,8417860,8353967,8342906,8260062,8224638,8222978,8222977,8095401,8012256,7991859,7986969,7950549,7950107,7949871,7928400,7928377,7928366,7909787,7909711,7908244,7908225,7903230,7878638,7853156,7853136,7816828,7773168,7581191,6512225,6480049,6474474,6408862,6371747,6210399,6069186,6069158,5897608,5813013';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/davidhunt/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/davidhunt/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/davidhunt/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/davidhunt/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/davidhunt/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/davidhunt/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/davidhunt/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/davidhunt/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/davidhunt/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/davidhunt/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/davidhunt/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/davidhunt/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/davidhunt/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/davidhunt/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/davidhunt/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/davidhunt/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/davidhunt/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/davidhunt/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/davidhunt/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/davidhunt/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/davidhunt/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/davidhunt/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/davidhunt/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/davidhunt/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/davidhunt/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/davidhunt/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/davidhunt/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = (backgrounds || photos || {})[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'David Hunt Photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
		 									temp += '<select class="paymentlink" name="payment_options_id" onchange="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
		else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
											temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="DAVIDHUNT">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

