window.thumbnails = {};
															thumbnails[67389] = clik.newPhoto({"id":67389,"src":"Moor Crichel_thumb.jpg","galleries_id":6540,"server_id":18,"link":"photo_67389.html","width":130,"caption":"Moor Crichel","height":87});
															thumbnails[68022] = clik.newPhoto({"id":68022,"src":"Bluebell GW 180405_thumb.jpg","galleries_id":6539,"server_id":18,"link":"photo_68022.html","width":130,"caption":"A Bluebell in Garston Wood","height":195});
															thumbnails[77182] = clik.newPhoto({"id":77182,"src":"North from Golden Cap 02 250604_thumb.jpg","galleries_id":6540,"server_id":18,"link":"photo_77182.html","width":130,"caption":"Looking north from Golden Cap.","height":87});
															thumbnails[848147] = clik.newPhoto({"id":848147,"src":"Dancing Ledge looking west 06 260207_thumb.jpg","galleries_id":6540,"server_id":18,"link":"photo_848147.html","width":130,"caption":"Looking west along Dancing Ledge","height":199});
															thumbnails[848149] = clik.newPhoto({"id":848149,"src":"Cranborne Close 150404_thumb.jpg","galleries_id":6540,"server_id":18,"link":"photo_848149.html","width":130,"caption":"Cranborne Close","height":57});
															thumbnails[1157202] = clik.newPhoto({"id":1157202,"src":"Bee Orchid 02 400_thumb.jpg","galleries_id":6541,"server_id":18,"link":"photo_1157202.html","width":130,"caption":"Bee Orchid","height":188});
															thumbnails[1157203] = clik.newPhoto({"id":1157203,"src":"Bee Orchid 400_thumb.jpg","galleries_id":6541,"server_id":18,"link":"photo_1157203.html","width":130,"caption":"Bee Orchid","height":89});
															thumbnails[1157227] = clik.newPhoto({"id":1157227,"src":"Common Spotted Orchid 400_thumb.jpg","galleries_id":6541,"server_id":18,"link":"photo_1157227.html","width":130,"caption":"Common Spotted Orchid","height":190});
															thumbnails[1157228] = clik.newPhoto({"id":1157228,"src":"Common Spotted Orchids 01 400_thumb.jpg","galleries_id":6541,"server_id":18,"link":"photo_1157228.html","width":130,"caption":"Common Spotted Orchids","height":89});
															thumbnails[1157230] = clik.newPhoto({"id":1157230,"src":"Common Spotted Orchids 400_thumb.jpg","galleries_id":6541,"server_id":18,"link":"photo_1157230.html","width":130,"caption":"Common Spotted Orchids","height":89});
															thumbnails[1157232] = clik.newPhoto({"id":1157232,"src":"Common Twayblade 400_thumb.jpg","galleries_id":6541,"server_id":18,"link":"photo_1157232.html","width":130,"caption":"Common Twayblade","height":190});
															thumbnails[1157252] = clik.newPhoto({"id":1157252,"src":"Early Marsh Orchid 400_thumb.jpg","galleries_id":6541,"server_id":18,"link":"photo_1157252.html","width":130,"caption":"Early Marsh Orchid","height":189});
															thumbnails[1157253] = clik.newPhoto({"id":1157253,"src":"Early Purple Orchid 01 400_thumb.jpg","galleries_id":6541,"server_id":18,"link":"photo_1157253.html","width":130,"caption":"Early Purple Orchid","height":188});
															thumbnails[1157254] = clik.newPhoto({"id":1157254,"src":"Early Purple Orchid 400_thumb.jpg","galleries_id":6541,"server_id":18,"link":"photo_1157254.html","width":130,"caption":"Early Purple Orchid","height":189});
															thumbnails[1157255] = clik.newPhoto({"id":1157255,"src":"Early Spider Orchid 400_thumb.jpg","galleries_id":6541,"server_id":18,"link":"photo_1157255.html","width":130,"caption":"Early Spider Orchid","height":188});
															thumbnails[1157257] = clik.newPhoto({"id":1157257,"src":"Fragrant Orchid 01 400_thumb.jpg","galleries_id":6541,"server_id":18,"link":"photo_1157257.html","width":130,"caption":"Fragrant Orchid","height":89});
															thumbnails[1157260] = clik.newPhoto({"id":1157260,"src":"Fragrant Orchid 02 400_thumb.jpg","galleries_id":6541,"server_id":18,"link":"photo_1157260.html","width":130,"caption":"Fragrant Orchid","height":89});
															thumbnails[1157262] = clik.newPhoto({"id":1157262,"src":"Fragrant Orchid 400_thumb.jpg","galleries_id":6541,"server_id":18,"link":"photo_1157262.html","width":130,"caption":"Fragrant Orchid","height":189});
															thumbnails[1157263] = clik.newPhoto({"id":1157263,"src":"Frog Orchid 01 400_thumb.jpg","galleries_id":6541,"server_id":18,"link":"photo_1157263.html","width":130,"caption":"Frog Orchid","height":89});
															thumbnails[1157265] = clik.newPhoto({"id":1157265,"src":"Frog Orchid 400_thumb.jpg","galleries_id":6541,"server_id":18,"link":"photo_1157265.html","width":130,"caption":"Frog Orchid","height":190});
															thumbnails[1157266] = clik.newPhoto({"id":1157266,"src":"Greater Butterfly Orchid 01 400_thumb.jpg","galleries_id":6541,"server_id":18,"link":"photo_1157266.html","width":130,"caption":"Greater Butterfly Orchid","height":89});
															thumbnails[1157267] = clik.newPhoto({"id":1157267,"src":"Greater Butterfly Orchid 400_thumb.jpg","galleries_id":6541,"server_id":18,"link":"photo_1157267.html","width":130,"caption":"Greater Butterfly Orchid","height":189});
															thumbnails[1157274] = clik.newPhoto({"id":1157274,"src":"Green Winged Orchid 01 400_thumb.jpg","galleries_id":6541,"server_id":18,"link":"photo_1157274.html","width":130,"caption":"Green Winged Orchid","height":89});
															thumbnails[1157275] = clik.newPhoto({"id":1157275,"src":"Green Winged Orchid 02 400_thumb.jpg","galleries_id":6541,"server_id":18,"link":"photo_1157275.html","width":130,"caption":"Green Winged Orchids","height":89});
															thumbnails[1157276] = clik.newPhoto({"id":1157276,"src":"Green Winged Orchid 400_thumb.jpg","galleries_id":6541,"server_id":18,"link":"photo_1157276.html","width":130,"caption":"Green Winged Orchids ","height":89});
															thumbnails[1157278] = clik.newPhoto({"id":1157278,"src":"Heath Spotted Orchid 400_thumb.jpg","galleries_id":6541,"server_id":18,"link":"photo_1157278.html","width":130,"caption":"Heath Spotted Orchid","height":188});
															thumbnails[1157280] = clik.newPhoto({"id":1157280,"src":"Pyramidal Orchid 400_thumb.jpg","galleries_id":6541,"server_id":18,"link":"photo_1157280.html","width":130,"caption":"Pyramidal Orchid","height":89});
															thumbnails[1157281] = clik.newPhoto({"id":1157281,"src":"Southern Marsh Orchid 400_thumb.jpg","galleries_id":6541,"server_id":18,"link":"photo_1157281.html","width":130,"caption":"Southern Marsh Orchid","height":190});
															thumbnails[1987265] = clik.newPhoto({"id":1987265,"src":"Comma GW 03 280706_thumb.jpg","galleries_id":6542,"server_id":18,"link":"photo_1987265.html","width":130,"caption":"A Comma at Garston. ","height":188});
															thumbnails[1987301] = clik.newPhoto({"id":1987301,"src":"Green veined whites nr Harley Gap 03 150806_thumb.jpg","galleries_id":6542,"server_id":18,"link":"photo_1987301.html","width":130,"caption":"Green Veined White butterflies.","height":87});
															thumbnails[1987327] = clik.newPhoto({"id":1987327,"src":"Sand Lizard HH 02B 070807_thumb.jpg","galleries_id":6542,"server_id":18,"link":"photo_1987327.html","width":130,"caption":"Female Sand Lizard","height":193});
															thumbnails[1987336] = clik.newPhoto({"id":1987336,"src":"Sika stag Arne 04 231106 A_thumb.jpg","galleries_id":6542,"server_id":18,"link":"photo_1987336.html","width":130,"caption":"Sika Stag","height":195});
															thumbnails[1987369] = clik.newPhoto({"id":1987369,"src":"Wood Anemones Woodlands 150404_thumb.jpg","galleries_id":6539,"server_id":18,"link":"photo_1987369.html","width":130,"caption":"Wood Anemones","height":195});
															thumbnails[1987377] = clik.newPhoto({"id":1987377,"src":"Cowslips Gussage 06 040506_thumb.jpg","galleries_id":6539,"server_id":18,"link":"photo_1987377.html","width":130,"caption":"Cowslips","height":87});
															thumbnails[1987379] = clik.newPhoto({"id":1987379,"src":"Durdle Door west 02 110706_thumb.jpg","galleries_id":6540,"server_id":18,"link":"photo_1987379.html","width":130,"caption":"Durdle Door","height":85});
															thumbnails[1987397] = clik.newPhoto({"id":1987397,"src":"Poplar trees by the River Allen at Wimborne St_thumb. Giles 01 301007.jpg","galleries_id":6540,"server_id":18,"link":"photo_1987397.html","width":130,"caption":"Poplars by the River Allen.","height":195});
															thumbnails[1987409] = clik.newPhoto({"id":1987409,"src":"White Mill and Bridge 120308_thumb.jpg","galleries_id":6540,"server_id":18,"link":"photo_1987409.html","width":130,"caption":"White Mill Bridge and mill.","height":85});
															thumbnails[1987417] = clik.newPhoto({"id":1987417,"src":"Holt Heath 150107_thumb.jpg","galleries_id":6540,"server_id":18,"link":"photo_1987417.html","width":130,"caption":"Holt Heath","height":87});
															thumbnails[1987438] = clik.newPhoto({"id":1987438,"src":"Win Green 05 270208_thumb.jpg","galleries_id":6540,"server_id":18,"link":"photo_1987438.html","width":130,"caption":"Win Green Hill","height":87});
															thumbnails[1987458] = clik.newPhoto({"id":1987458,"src":"Weymouth 06 060306_thumb.jpg","galleries_id":6540,"server_id":18,"link":"photo_1987458.html","width":130,"caption":"Weymouth","height":87});
															thumbnails[1987469] = clik.newPhoto({"id":1987469,"src":"Spinnaker Tower Portsmouth 01 171007_thumb.jpg","galleries_id":6540,"server_id":18,"link":"photo_1987469.html","width":130,"caption":"The Spinnaker Tower","height":195});
															thumbnails[3029865] = clik.newPhoto({"id":3029865,"src":"BN GW 020608 WS_thumb.jpg","galleries_id":6541,"server_id":18,"link":"photo_3029865.html","width":130,"caption":"Birds Nest Orchid","height":87});
															thumbnails[3029871] = clik.newPhoto({"id":3029871,"src":"Kimmeridge Clavel Tower 04 120105 WS_thumb.jpg","galleries_id":202918,"server_id":18,"link":"photo_3029871.html","width":130,"caption":"Clavell Tower","height":87});
															thumbnails[3029878] = clik.newPhoto({"id":3029878,"src":"Knowlton 031106 panorama WS_thumb.jpg","galleries_id":202918,"server_id":18,"link":"photo_3029878.html","width":130,"caption":"Knowlton church","height":57});
															thumbnails[3029882] = clik.newPhoto({"id":3029882,"src":"Lyme Regis 15 221008 WS_thumb.jpg","galleries_id":6540,"server_id":18,"link":"photo_3029882.html","width":130,"caption":"Lyme Regis","height":85});
															thumbnails[3029888] = clik.newPhoto({"id":3029888,"src":"NE from church tower 120508 WS_thumb.jpg","galleries_id":6540,"server_id":18,"link":"photo_3029888.html","width":130,"caption":"Cranborne","height":84});
															thumbnails[3070615] = clik.newPhoto({"id":3070615,"src":"BR BO 03 160608a_thumb.jpg","galleries_id":6541,"server_id":18,"link":"photo_3070615.html","width":130,"caption":"Bee Orchid","height":194});
															thumbnails[3070618] = clik.newPhoto({"id":3070618,"src":"Early Marsh Orchid ssp_thumb.jpg","galleries_id":6541,"server_id":18,"link":"photo_3070618.html","width":130,"caption":"Early Marsh orchid","height":84});
															thumbnails[3328353] = clik.newPhoto({"id":3328353,"src":"Bluebells GW 280408a_thumb.jpg","galleries_id":6539,"server_id":18,"link":"photo_3328353.html","width":130,"caption":"Bluebells","height":87});
															thumbnails[3328357] = clik.newPhoto({"id":3328357,"src":"Bog Asphodel 02 HH 010708Aa_thumb.jpg","galleries_id":6539,"server_id":18,"link":"photo_3328357.html","width":130,"caption":"Bog Asphodel","height":92});
															thumbnails[3328393] = clik.newPhoto({"id":3328393,"src":"Cuckoo flower Horton 120408a_thumb.jpg","galleries_id":6539,"server_id":18,"link":"photo_3328393.html","width":130,"caption":"Cuckoo Flower","height":87});
															thumbnails[3328397] = clik.newPhoto({"id":3328397,"src":"Gentian Autumn Sovell 03 150808a_thumb.jpg","galleries_id":6539,"server_id":18,"link":"photo_3328397.html","width":130,"caption":"Autumn Gentian","height":87});
															thumbnails[3328400] = clik.newPhoto({"id":3328400,"src":"Marsh Marigold 3X 300308 Aa_thumb.jpg","galleries_id":6539,"server_id":18,"link":"photo_3328400.html","width":130,"caption":"Marsh Marigold","height":182});
															thumbnails[3328437] = clik.newPhoto({"id":3328437,"src":"Teasel 01 Sovell 230708a_thumb.jpg","galleries_id":6539,"server_id":18,"link":"photo_3328437.html","width":130,"caption":"Teasel","height":195});
															thumbnails[3328443] = clik.newPhoto({"id":3328443,"src":"Water Crow foot W St G 070508a_thumb.jpg","galleries_id":6539,"server_id":18,"link":"photo_3328443.html","width":130,"caption":"Water-crowfoot","height":195});
															thumbnails[3328446] = clik.newPhoto({"id":3328446,"src":"Wood Anemone GW 01 290308a_thumb.jpg","galleries_id":6539,"server_id":18,"link":"photo_3328446.html","width":130,"caption":"Wood Anemone","height":195});
															thumbnails[3328483] = clik.newPhoto({"id":3328483,"src":"Avon Heath 03 120908 AAa_thumb.jpg","galleries_id":6541,"server_id":18,"link":"photo_3328483.html","width":130,"caption":"Autumn Ladies' Tresses","height":183});
															thumbnails[3328485] = clik.newPhoto({"id":3328485,"src":"GW 08 070508a_thumb.jpg","galleries_id":6541,"server_id":18,"link":"photo_3328485.html","width":130,"caption":"Early Purple Orchid","height":86});
															thumbnails[3328497] = clik.newPhoto({"id":3328497,"src":"030105 05 Aa_thumb.jpg","galleries_id":202918,"server_id":18,"link":"photo_3328497.html","width":130,"caption":"Horton Tower","height":196});
															thumbnails[3328524] = clik.newPhoto({"id":3328524,"src":"Abbey 03 220507a_thumb.jpg","galleries_id":202918,"server_id":18,"link":"photo_3328524.html","width":130,"caption":"Sherborne Abbey","height":87});
															thumbnails[3328537] = clik.newPhoto({"id":3328537,"src":"Cranborne Manor south face 01 130607 Aa_thumb.jpg","galleries_id":202918,"server_id":18,"link":"photo_3328537.html","width":130,"caption":"Cranborne Manor","height":86});
															thumbnails[3328548] = clik.newPhoto({"id":3328548,"src":"Kingston Lacy 270906a_thumb.jpg","galleries_id":202918,"server_id":18,"link":"photo_3328548.html","width":130,"caption":"Kingston Lacey ","height":87});
															thumbnails[3328558] = clik.newPhoto({"id":3328558,"src":"Forde Abbey 01 120505_thumb.jpg","galleries_id":202918,"server_id":18,"link":"photo_3328558.html","width":130,"caption":"Forde Abbey","height":87});
															thumbnails[3328561] = clik.newPhoto({"id":3328561,"src":"New castle 01 220507a_thumb.jpg","galleries_id":202918,"server_id":18,"link":"photo_3328561.html","width":130,"caption":"Sherborne Castle","height":87});
															thumbnails[3328566] = clik.newPhoto({"id":3328566,"src":"Sandford Orcas Manor 03 190904a_thumb.jpg","galleries_id":202918,"server_id":18,"link":"photo_3328566.html","width":130,"caption":"Sandford Orcas Manor","height":87});
															thumbnails[3328570] = clik.newPhoto({"id":3328570,"src":"White Mill 02 120308a_thumb.jpg","galleries_id":202918,"server_id":18,"link":"photo_3328570.html","width":130,"caption":"White Mill","height":87});
															thumbnails[3328574] = clik.newPhoto({"id":3328574,"src":"Wimborne Minster 01 070207a_thumb.jpg","galleries_id":202918,"server_id":18,"link":"photo_3328574.html","width":130,"caption":"Wimborne Minster","height":86});
															thumbnails[3393605] = clik.newPhoto({"id":3393605,"src":"Poppies Knowlton 03 090606 PR Aa_thumb.jpg","galleries_id":207231,"server_id":18,"link":"photo_3393605.html","width":130,"caption":"Poppies","height":92});
															thumbnails[3393606] = clik.newPhoto({"id":3393606,"src":"Pyramidal MD 04 270606 Aa_thumb.jpg","galleries_id":207231,"server_id":18,"link":"photo_3393606.html","width":130,"caption":"Pyramidal orchid","height":92});
															thumbnails[3393620] = clik.newPhoto({"id":3393620,"src":"Water lillies Semley 090804 PR Aa_thumb.jpg","galleries_id":207231,"server_id":18,"link":"photo_3393620.html","width":130,"caption":"Water Lillies","height":92});
															thumbnails[3393627] = clik.newPhoto({"id":3393627,"src":"Wood Anemones Woodlands 150404 Aa_thumb.jpg","galleries_id":207231,"server_id":18,"link":"photo_3393627.html","width":130,"caption":"Wood Anemones","height":92});
															thumbnails[3587832] = clik.newPhoto({"id":3587832,"src":"SE_from_Portland_Bill_190304_P_thumb.jpg","galleries_id":6540,"server_id":18,"link":"photo_3587832.html","width":130,"caption":"SE from Portland Bill.","height":195});
															thumbnails[4247414] = clik.newPhoto({"id":4247414,"src":"Four_Spotted_Chaser_HH_14_020609_thumb.jpg","galleries_id":6542,"server_id":18,"link":"photo_4247414.html","width":130,"caption":"A Four Spotted Chaser","height":195});
															thumbnails[4861879] = clik.newPhoto({"id":4861879,"src":"Mallow_Monmouth_Beach_Lyme_100609_thumb.jpg","galleries_id":6539,"server_id":18,"link":"photo_4861879.html","width":130,"caption":"Mallow","height":195});
															thumbnails[4861881] = clik.newPhoto({"id":4861881,"src":"Poppies_Cranborne_02_240609_thumb.jpg","galleries_id":6539,"server_id":18,"link":"photo_4861881.html","width":130,"caption":"Poppies","height":87});
															thumbnails[4861883] = clik.newPhoto({"id":4861883,"src":"Primrose_GW_01_030409A_thumb.jpg","galleries_id":6539,"server_id":18,"link":"photo_4861883.html","width":130,"caption":"Primroses","height":87});
															thumbnails[6266551] = clik.newPhoto({"id":6266551,"src":"Common_Blue_Corfe_Mullen_04_180510a_thumb.jpg","galleries_id":6542,"server_id":18,"link":"photo_6266551.html","width":130,"caption":"Common Blue","height":87});
															thumbnails[6266627] = clik.newPhoto({"id":6266627,"src":"Great_Spotted_Woodpecker_3X_181209a_thumb.jpg","galleries_id":348337,"server_id":18,"link":"photo_6266627.html","width":130,"caption":"Great Spotted Woodpecker","height":185});
															thumbnails[6266634] = clik.newPhoto({"id":6266634,"src":"Red_Kite_Martin_Down_220509a_thumb.jpg","galleries_id":348337,"server_id":18,"link":"photo_6266634.html","width":130,"caption":"Red Kite","height":86});
															thumbnails[6266644] = clik.newPhoto({"id":6266644,"src":"Red_Legged_Partridge_Remedy_Oak_05_050610a_thumb.jpg","galleries_id":348337,"server_id":18,"link":"photo_6266644.html","width":130,"caption":"Red-legged Partridge","height":87});
															thumbnails[6266654] = clik.newPhoto({"id":6266654,"src":"Siskin_04_Ringwood_270210a_thumb.jpg","galleries_id":348337,"server_id":18,"link":"photo_6266654.html","width":130,"caption":"Siskin","height":194});
															thumbnails[6266659] = clik.newPhoto({"id":6266659,"src":"Yellow_Hammer_MD_230610a_thumb.jpg","galleries_id":348337,"server_id":18,"link":"photo_6266659.html","width":130,"caption":"Yellow Hammer","height":86});
															thumbnails[6266671] = clik.newPhoto({"id":6266671,"src":"Lacock_Abbey_040510a_thumb.jpg","galleries_id":202918,"server_id":18,"link":"photo_6266671.html","width":130,"caption":"Lacock Abbey","height":86});
															thumbnails[6266678] = clik.newPhoto({"id":6266678,"src":"Lulworth_Cove_03_041007a_thumb.jpg","galleries_id":6540,"server_id":18,"link":"photo_6266678.html","width":130,"caption":"Lulworth Cove","height":87});
															thumbnails[6266690] = clik.newPhoto({"id":6266690,"src":"Snowdrop_Ringwood_01_100310a_thumb.jpg","galleries_id":6539,"server_id":18,"link":"photo_6266690.html","width":130,"caption":"Snowdrops","height":195});
															thumbnails[6527448] = clik.newPhoto({"id":6527448,"src":"Wasp_Spider_QC_01_110810a_thumb.jpg","galleries_id":6542,"server_id":18,"link":"photo_6527448.html","width":130,"caption":"Wasp Spider","height":86});
															thumbnails[7591887] = clik.newPhoto({"id":7591887,"src":"Grass_Snake_Sovell_210311A_thumb.jpg","galleries_id":6542,"server_id":18,"link":"photo_7591887.html","width":130,"caption":"A Grass Snake at Sovell Down","height":87});
															thumbnails[7591890] = clik.newPhoto({"id":7591890,"src":"White_deer_GW_02_170111a_thumb.jpg","galleries_id":6542,"server_id":18,"link":"photo_7591890.html","width":130,"caption":"Fallow Deer at garston Wood","height":194});
															thumbnails[7591892] = clik.newPhoto({"id":7591892,"src":"Ashmore_pond_241010_thumb.jpg","galleries_id":6540,"server_id":18,"link":"photo_7591892.html","width":130,"caption":"Ashmore village pond","height":87});
															thumbnails[7591898] = clik.newPhoto({"id":7591898,"src":"Studland_03_180610a_thumb.jpg","galleries_id":6540,"server_id":18,"link":"photo_7591898.html","width":130,"caption":"Little Sea, Studland","height":87});
															thumbnails[7591907] = clik.newPhoto({"id":7591907,"src":"Egret_Little_Brockington_09_210311A_thumb.jpg","galleries_id":348337,"server_id":18,"link":"photo_7591907.html","width":130,"caption":"A Little Egret, Brockington","height":193});
															thumbnails[7591944] = clik.newPhoto({"id":7591944,"src":"Silver_Washed_Fritillary_GW_04_190710_thumb.jpg","galleries_id":6542,"server_id":18,"link":"photo_7591944.html","width":130,"caption":"Silver-washed Fritillaries mating, Garston Wood","height":87});
															thumbnails[8103653] = clik.newPhoto({"id":8103653,"src":"Large_Skipper_QC_01_130611a_thumb.jpg","galleries_id":6542,"server_id":18,"link":"photo_8103653.html","width":130,"caption":"Large Skipper","height":194});
															thumbnails[8103654] = clik.newPhoto({"id":8103654,"src":"Pyramidal_and_Meadow_Brown_Motisfont_260611a_thumb.jpg","galleries_id":6541,"server_id":18,"link":"photo_8103654.html","width":130,"caption":"Pyramidal Orchid and a Meadow Brown","height":195});
															thumbnails[8103657] = clik.newPhoto({"id":8103657,"src":"CS_GW_04_230511Aa_thumb.jpg","galleries_id":6541,"server_id":18,"link":"photo_8103657.html","width":130,"caption":"Common Spotted Orchid","height":194});
															thumbnails[8103661] = clik.newPhoto({"id":8103661,"src":"Yellow_Archangel_GW_200411a_thumb.jpg","galleries_id":6539,"server_id":18,"link":"photo_8103661.html","width":130,"caption":"Yellow Archangel","height":194});
															thumbnails[8306966] = clik.newPhoto({"id":8306966,"src":"Emperor_best_HH_01_090811ASa_thumb.jpg","galleries_id":6542,"server_id":18,"link":"photo_8306966.html","width":130,"caption":"Emperor Dragonfly","height":193});
															thumbnails[8310276] = clik.newPhoto({"id":8310276,"src":"EP_GW_01_010509AA_thumb.jpg","galleries_id":207231,"server_id":18,"link":"photo_8310276.html","width":130,"caption":"An Early Purple Orchid amongst the Bluebells","height":194});
															thumbnails[8310283] = clik.newPhoto({"id":8310283,"src":"Cranborne_Manor_04_080611_Sharpened_thumb.jpg","galleries_id":207231,"server_id":18,"link":"photo_8310283.html","width":130,"caption":"Wid flower patch","height":87});
															thumbnails[8356733] = clik.newPhoto({"id":8356733,"src":"Cranborne_Manor_04_080611_Sharpened_0599A1EE-1E4F-37DC-71BCEED3407CD845_thumb.jpg","galleries_id":6539,"server_id":18,"link":"photo_8356733.html","width":130,"caption":"Wild flower patch","height":87});
															thumbnails[8963925] = clik.newPhoto({"id":8963925,"src":"Sparrowhawk_47_garden_02_051211AS_thumb.jpg","galleries_id":348337,"server_id":18,"link":"photo_8963925.html","width":130,"caption":"Sparrowhawk","height":195});
															thumbnails[8963938] = clik.newPhoto({"id":8963938,"src":"Sunset_08_2704111_thumb.jpg","galleries_id":6540,"server_id":18,"link":"photo_8963938.html","width":130,"caption":"Sunset, Morte Point","height":195});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[207231] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Altered images","link":"gallery_207231.html","maxRecords":0.0,"photoIDs":[3393605.0,3393606.0,3393620.0,3393627.0,8310276.0,8310283.0],"skipIndex":0,"section_code":"gallery","featured_images":"8310283,8310276,3393627,3393620,3393606,3393605","id":207231,"singleSection":false});				  						galleries[6542] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Animals and insects","link":"gallery_6542.html","maxRecords":0.0,"photoIDs":[1987265.0,1987301.0,1987327.0,1987336.0,4247414.0,6266551.0,6527448.0,7591887.0,7591890.0,7591944.0,8103653.0,8306966.0],"skipIndex":0,"section_code":"gallery","featured_images":"8306966,8103653,7591944,7591890,7591887,6527448,6266551,4247414,1987336,1987327","id":6542,"singleSection":false});				  						galleries[348337] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Birds","link":"gallery_348337.html","maxRecords":0.0,"photoIDs":[6266627.0,6266634.0,6266644.0,6266654.0,6266659.0,7591907.0,8963925.0],"skipIndex":0,"section_code":"gallery","featured_images":"8963925,7591907,6266659,6266654,6266644,6266634,6266627","id":348337,"singleSection":false});				  						galleries[202918] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Buildings","link":"gallery_202918.html","maxRecords":0.0,"photoIDs":[3029871.0,3029878.0,3328497.0,3328524.0,3328537.0,3328548.0,3328558.0,3328561.0,3328566.0,3328570.0,3328574.0,6266671.0],"skipIndex":0,"section_code":"gallery","featured_images":"6266671,3328574,3328570,3328566,3328561,3328558,3328548,3328537,3328524,3328497","id":202918,"singleSection":false});				  						galleries[6540] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Landscapes and seascapes","link":"gallery_6540.html","maxRecords":0.0,"photoIDs":[67389.0,77182.0,848147.0,848149.0,1987379.0,1987397.0,1987409.0,1987417.0,1987438.0,1987458.0,1987469.0,3029882.0,3029888.0,3587832.0,6266678.0,7591892.0,7591898.0,8963938.0],"skipIndex":0,"section_code":"gallery","featured_images":"8963938,7591898,7591892,6266678,3587832,3029888,3029882,1987469,1987458,1987438","id":6540,"singleSection":false});				  						galleries[6541] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Some English Orchids","link":"gallery_6541.html","maxRecords":0.0,"photoIDs":[1157202.0,1157203.0,1157227.0,1157228.0,1157230.0,1157232.0,1157252.0,1157253.0,1157254.0,1157255.0,1157257.0,1157260.0,1157262.0,1157263.0,1157265.0,1157266.0,1157267.0,1157274.0,1157275.0,1157276.0,1157278.0,1157280.0,1157281.0,3029865.0,3070615.0,3070618.0,3328483.0,3328485.0,8103654.0,8103657.0],"skipIndex":0,"section_code":"gallery","featured_images":"8103657,8103654,3328485,3328483,3070618,3070615,3029865,1157281,1157280,1157278","id":6541,"singleSection":false});				  						galleries[6539] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wild flowers","link":"gallery_6539.html","maxRecords":0.0,"photoIDs":[68022.0,1987369.0,1987377.0,3328353.0,3328357.0,3328393.0,3328397.0,3328400.0,3328437.0,3328443.0,3328446.0,4861879.0,4861881.0,4861883.0,6266690.0,8103661.0,8356733.0],"skipIndex":0,"section_code":"gallery","featured_images":"8356733,8103661,6266690,4861883,4861881,4861879,3328446,3328443,3328437,3328400","id":6539,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8963938,8963925,8356733,8310283,8310276,8306966,8103661,8103657,8103654,8103653,7591944,7591907,7591898,7591892,7591890,7591887,6527448,6266690,6266678,6266671,6266659,6266654,6266644,6266634,6266627,6266551,4861883,4861881,4861879,4247414,3587832,3393627,3393620,3393606,3393605,3328574,3328570,3328566,3328561,3328558,3328548,3328537,3328524,3328497,3328485,3328483,3328446,3328443,3328437,3328400';
imageSets[3] = '8963938,8963925,8356733,8310283,8310276,8306966,8103661,8103657,8103654,8103653,7591944,7591907,7591898,7591892,7591890,7591887,6527448,6266690,6266678,6266671,6266659,6266654,6266644,6266634,6266627,6266551,4861883,4861881,4861879,4247414,3587832,3393627,3393620,3393606,3393605,3328574,3328570,3328566,3328561,3328558,3328548,3328537,3328524,3328497,3328485,3328483,3328446,3328443,3328437,3328400';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/Samturtle/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/Samturtle/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/Samturtle/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/Samturtle/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/Samturtle/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/Samturtle/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/Samturtle/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/Samturtle/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/Samturtle/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/Samturtle/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/Samturtle/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/Samturtle/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/Samturtle/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/Samturtle/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/Samturtle/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/Samturtle/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/Samturtle/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/Samturtle/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/Samturtle/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/Samturtle/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/Samturtle/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/Samturtle/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/Samturtle/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/Samturtle/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/Samturtle/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/Samturtle/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/Samturtle/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 = 'Sam Turtle 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>';
	}
				
				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>Order this print:</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.item_price !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						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;
	}
}

			

