window.thumbnails = {};
															thumbnails[6483922] = clik.newPhoto({"id":6483922,"src":"Boomerang-S75-5498050810_thumb.jpg","galleries_id":355818,"server_id":15,"link":"photo_6483922.html","width":130,"caption":"Boomerang","height":88});
															thumbnails[6483924] = clik.newPhoto({"id":6483924,"src":"Sirena-U4-5654050810_thumb.jpg","galleries_id":355818,"server_id":15,"link":"photo_6483924.html","width":130,"caption":"Sirena","height":87});
															thumbnails[6483927] = clik.newPhoto({"id":6483927,"src":"BMW_Oracle_-_The_Needles-5938050810_thumb.jpg","galleries_id":355818,"server_id":15,"link":"photo_6483927.html","width":130,"caption":"BMW Oracle","height":81});
															thumbnails[6483931] = clik.newPhoto({"id":6483931,"src":"Team_Origin_-_St_Catherines-5819050810_thumb.jpg","galleries_id":355818,"server_id":15,"link":"photo_6483931.html","width":130,"caption":"Jaguar Team Origin","height":180});
															thumbnails[6477955] = clik.newPhoto({"id":6477955,"src":"Heavens_Opened-4591040810_thumb.jpg","galleries_id":355818,"server_id":15,"link":"photo_6477955.html","width":130,"caption":"The Heavens Open","height":180});
															thumbnails[6477963] = clik.newPhoto({"id":6477963,"src":"Italia-4911040810_thumb.jpg","galleries_id":355818,"server_id":15,"link":"photo_6477963.html","width":130,"caption":"Italia","height":82});
															thumbnails[6477975] = clik.newPhoto({"id":6477975,"src":"Groupama-4146030810_thumb.jpg","galleries_id":355818,"server_id":15,"link":"photo_6477975.html","width":130,"caption":"Groupama","height":173});
															thumbnails[6477984] = clik.newPhoto({"id":6477984,"src":"GAES-GBR222-_St_CatherinesQueen_Mary_II-3577030810_thumb.jpg","galleries_id":355818,"server_id":15,"link":"photo_6477984.html","width":130,"caption":"GAES - Aviva","height":172});
															thumbnails[6463892] = clik.newPhoto({"id":6463892,"src":"Bellerophon_of_Wight-GBR8336-1825020810_thumb.jpg","galleries_id":355818,"server_id":15,"link":"photo_6463892.html","width":130,"caption":"Bellerophon of Wight-GBR8336","height":190});
															thumbnails[6463896] = clik.newPhoto({"id":6463896,"src":"The_Solent-2422020810_thumb.jpg","galleries_id":355818,"server_id":15,"link":"photo_6463896.html","width":130,"caption":"A Busy Solent","height":56});
															thumbnails[6463899] = clik.newPhoto({"id":6463899,"src":"With_Alacrity-GBR8338-1813020810_thumb.jpg","galleries_id":355818,"server_id":15,"link":"photo_6463899.html","width":130,"caption":"With Alacrity-GBR8338","height":182});
															thumbnails[6463906] = clik.newPhoto({"id":6463906,"src":"Pindar-2345020810_thumb.jpg","galleries_id":355818,"server_id":15,"link":"photo_6463906.html","width":130,"caption":"Team Pindar","height":87});
															thumbnails[6456196] = clik.newPhoto({"id":6456196,"src":"V26-Danny-0513010810_thumb.jpg","galleries_id":355818,"server_id":15,"link":"photo_6456196.html","width":130,"caption":"Danny","height":195});
															thumbnails[6456200] = clik.newPhoto({"id":6456200,"src":"Victory-Class-0684010810_thumb.jpg","galleries_id":355818,"server_id":15,"link":"photo_6456200.html","width":130,"caption":"Victory Class yacht","height":177});
															thumbnails[6456212] = clik.newPhoto({"id":6456212,"src":"SpiritOfIsis-GBR8654R-1145010810_thumb.jpg","galleries_id":355818,"server_id":15,"link":"photo_6456212.html","width":130,"caption":"Spirit Of Isis - GBR8654R","height":176});
															thumbnails[6456219] = clik.newPhoto({"id":6456219,"src":"GBR578-Discovery-0380010810_thumb.jpg","galleries_id":355818,"server_id":15,"link":"photo_6456219.html","width":130,"caption":"GBR578 - Discovery","height":196});
															thumbnails[3689924] = clik.newPhoto({"id":3689924,"src":"Buzzard_-_94261602091_thumb.jpg","galleries_id":225072,"server_id":15,"link":"photo_3689924.html","width":130,"caption":"Buzzard","height":87});
															thumbnails[3690085] = clik.newPhoto({"id":3690085,"src":"Hare_-_79860302091_thumb.jpg","galleries_id":225075,"server_id":15,"link":"photo_3690085.html","width":130,"caption":"Brown Hares","height":86});
															thumbnails[3690162] = clik.newPhoto({"id":3690162,"src":"Frog_-_0946220708_filtered_thumb.jpg","galleries_id":225082,"server_id":15,"link":"photo_3690162.html","width":130,"caption":"Frog","height":87});
															thumbnails[3690168] = clik.newPhoto({"id":3690168,"src":"Carisbrooke_Castle_-_018290305071_thumb.jpg","galleries_id":225060,"server_id":15,"link":"photo_3690168.html","width":130,"caption":"Doorway into the past","height":173});
															thumbnails[3690302] = clik.newPhoto({"id":3690302,"src":"Grey_Heron_-_74300411071_thumb.jpg","galleries_id":225071,"server_id":15,"link":"photo_3690302.html","width":130,"caption":"Grey Heron","height":176});
															thumbnails[3690308] = clik.newPhoto({"id":3690308,"src":"Humpback_Whale_-_212302041_thumb.jpg","galleries_id":225087,"server_id":15,"link":"photo_3690308.html","width":130,"caption":"Humpback Whale","height":87});
															thumbnails[3690569] = clik.newPhoto({"id":3690569,"src":"Zena_-_07890303091_thumb.jpg","galleries_id":225074,"server_id":15,"link":"photo_3690569.html","width":130,"caption":"Zena","height":87});
															thumbnails[3691783] = clik.newPhoto({"id":3691783,"src":"Deb_Hayward_-_71612604072604071_thumb.jpg","galleries_id":225059,"server_id":15,"link":"photo_3691783.html","width":130,"caption":"The Look","height":195});
															thumbnails[3692699] = clik.newPhoto({"id":3692699,"src":"Willow_Warbler_-_15681708081_thumb.jpg","galleries_id":313726,"server_id":15,"link":"photo_3692699.html","width":130,"caption":"Willow Warbler","height":93});
															thumbnails[3692712] = clik.newPhoto({"id":3692712,"src":"Kestrel_-_76880202091_thumb.jpg","galleries_id":225076,"server_id":15,"link":"photo_3692712.html","width":130,"caption":"Kestrel","height":93});
															thumbnails[3694177] = clik.newPhoto({"id":3694177,"src":"Robin_-_04141505081_thumb.jpg","galleries_id":313721,"server_id":15,"link":"photo_3694177.html","width":130,"caption":"Robin","height":160});
															thumbnails[3695579] = clik.newPhoto({"id":3695579,"src":"Fox_-_54252211081_thumb.jpg","galleries_id":225068,"server_id":15,"link":"photo_3695579.html","width":130,"caption":"Fox","height":195});
															thumbnails[3706121] = clik.newPhoto({"id":3706121,"src":"Little_Fairy_-_81160805071_thumb.jpg","galleries_id":225059,"server_id":15,"link":"photo_3706121.html","width":130,"caption":"Little Fairy","height":87});
															thumbnails[3709865] = clik.newPhoto({"id":3709865,"src":"Hare_-_9497160209_thumb.jpg","galleries_id":225075,"server_id":15,"link":"photo_3709865.html","width":130,"caption":"Brown Hare","height":87});
															thumbnails[3709870] = clik.newPhoto({"id":3709870,"src":"Hare_-_7975030209_thumb.jpg","galleries_id":225075,"server_id":15,"link":"photo_3709870.html","width":130,"caption":"Brown Hares","height":92});
															thumbnails[3709874] = clik.newPhoto({"id":3709874,"src":"Hare_-_2185170208_thumb.jpg","galleries_id":225075,"server_id":15,"link":"photo_3709874.html","width":130,"caption":"Brown Hares","height":89});
															thumbnails[3709879] = clik.newPhoto({"id":3709879,"src":"Fox_-_5155201108_thumb.jpg","galleries_id":225068,"server_id":15,"link":"photo_3709879.html","width":130,"caption":"Fox","height":87});
															thumbnails[3709882] = clik.newPhoto({"id":3709882,"src":"Fox_-_5341221108_thumb.jpg","galleries_id":225068,"server_id":15,"link":"photo_3709882.html","width":130,"caption":"Fox","height":195});
															thumbnails[3709885] = clik.newPhoto({"id":3709885,"src":"Fox_-_5498221108_thumb.jpg","galleries_id":225068,"server_id":15,"link":"photo_3709885.html","width":130,"caption":"Fox","height":195});
															thumbnails[3709886] = clik.newPhoto({"id":3709886,"src":"Fox_-_5131201108_thumb.jpg","galleries_id":225068,"server_id":15,"link":"photo_3709886.html","width":130,"caption":"Fox","height":181});
															thumbnails[3709888] = clik.newPhoto({"id":3709888,"src":"Fox_-_5535221108_thumb.jpg","galleries_id":225068,"server_id":15,"link":"photo_3709888.html","width":130,"caption":"Fox","height":87});
															thumbnails[3712138] = clik.newPhoto({"id":3712138,"src":"Frosted_Teasel_-_05276100109_thumb.jpg","galleries_id":225083,"server_id":15,"link":"photo_3712138.html","width":130,"caption":"Frosted Teasel","height":173});
															thumbnails[3712598] = clik.newPhoto({"id":3712598,"src":"Barbed_Wire_Rain_Drop_-_3222270908_filtered_thumb.jpg","galleries_id":226867,"server_id":15,"link":"photo_3712598.html","width":130,"caption":"Rain Drops on Barbed Wire","height":92});
															thumbnails[3712608] = clik.newPhoto({"id":3712608,"src":"Czar_-1054130808_thumb.jpg","galleries_id":225074,"server_id":15,"link":"photo_3712608.html","width":130,"caption":"Czar","height":160});
															thumbnails[3712624] = clik.newPhoto({"id":3712624,"src":"Red_Tailed_Hawk_9689210607_thumb.jpg","galleries_id":225074,"server_id":15,"link":"photo_3712624.html","width":130,"caption":"Red Tailed Hawk","height":165});
															thumbnails[3712674] = clik.newPhoto({"id":3712674,"src":"Golden_Eagle_-_9715210607_thumb.jpg","galleries_id":225074,"server_id":15,"link":"photo_3712674.html","width":130,"caption":"Golden Eagle","height":93});
															thumbnails[3712688] = clik.newPhoto({"id":3712688,"src":"Lugger_Falcon_-_0793110707_thumb.jpg","galleries_id":225074,"server_id":15,"link":"photo_3712688.html","width":130,"caption":"Saker Falcon","height":177});
															thumbnails[3712693] = clik.newPhoto({"id":3712693,"src":"Lugger_Falcon_-_9727210607_thumb.jpg","galleries_id":225074,"server_id":15,"link":"photo_3712693.html","width":130,"caption":"Lugger Falcon","height":170});
															thumbnails[3712705] = clik.newPhoto({"id":3712705,"src":"Garden_Spider_-_27775270904_filtered_thumb.jpg","galleries_id":225082,"server_id":15,"link":"photo_3712705.html","width":130,"caption":"Garden Spider","height":168});
															thumbnails[3713729] = clik.newPhoto({"id":3713729,"src":"Crab_Spider_-_3008030907_thumb.jpg","galleries_id":225082,"server_id":15,"link":"photo_3713729.html","width":130,"caption":"Crab Spider","height":87});
															thumbnails[3713736] = clik.newPhoto({"id":3713736,"src":"Widgeon_-_6403090109_thumb.jpg","galleries_id":225070,"server_id":15,"link":"photo_3713736.html","width":130,"caption":"Widgeon","height":161});
															thumbnails[3713740] = clik.newPhoto({"id":3713740,"src":"Little_Grebe_-_2593170208_thumb.jpg","galleries_id":226949,"server_id":15,"link":"photo_3713740.html","width":130,"caption":"Little Grebe","height":87});
															thumbnails[3713759] = clik.newPhoto({"id":3713759,"src":"Red_Arrows_-_2835210908_thumb.jpg","galleries_id":225084,"server_id":15,"link":"photo_3713759.html","width":130,"caption":"Red Arrows","height":170});
															thumbnails[3743170] = clik.newPhoto({"id":3743170,"src":"Snowy_Owl_-_004110707_thumb.jpg","galleries_id":225074,"server_id":15,"link":"photo_3743170.html","width":130,"caption":"Snowy Owl","height":136});
															thumbnails[3743199] = clik.newPhoto({"id":3743199,"src":"Blue_Tit_-_1173080208_thumb.jpg","galleries_id":313724,"server_id":15,"link":"photo_3743199.html","width":130,"caption":"Blue Tit","height":160});
															thumbnails[3748028] = clik.newPhoto({"id":3748028,"src":"Buzzard_-_9453160209_thumb.jpg","galleries_id":225072,"server_id":15,"link":"photo_3748028.html","width":130,"caption":"Buzzard","height":149});
															thumbnails[3748042] = clik.newPhoto({"id":3748042,"src":"Buzzard_-_9420160209_thumb.jpg","galleries_id":225072,"server_id":15,"link":"photo_3748042.html","width":130,"caption":"Buzzard","height":92});
															thumbnails[3748044] = clik.newPhoto({"id":3748044,"src":"Buzzard_-_9425160209_thumb.jpg","galleries_id":225072,"server_id":15,"link":"photo_3748044.html","width":130,"caption":"Buzzard","height":82});
															thumbnails[3748046] = clik.newPhoto({"id":3748046,"src":"Buzzard_-_9451160209_thumb.jpg","galleries_id":225072,"server_id":15,"link":"photo_3748046.html","width":130,"caption":"Buzzard","height":91});
															thumbnails[3748051] = clik.newPhoto({"id":3748051,"src":"Buzzard_-_8988150209_thumb.jpg","galleries_id":225072,"server_id":15,"link":"photo_3748051.html","width":130,"caption":"Buzzard","height":85});
															thumbnails[3748056] = clik.newPhoto({"id":3748056,"src":"Buzzard_-_9446160209_thumb.jpg","galleries_id":225072,"server_id":15,"link":"photo_3748056.html","width":130,"caption":"Buzzard","height":87});
															thumbnails[3748058] = clik.newPhoto({"id":3748058,"src":"Stonechat_-_9469160209_thumb.jpg","galleries_id":313721,"server_id":15,"link":"photo_3748058.html","width":130,"caption":"Stonechat","height":94});
															thumbnails[3748060] = clik.newPhoto({"id":3748060,"src":"Chaffinch_-_0474150508_thumb.jpg","galleries_id":313727,"server_id":15,"link":"photo_3748060.html","width":130,"caption":"Chaffinch","height":87});
															thumbnails[3748066] = clik.newPhoto({"id":3748066,"src":"Robin_-_6557100109_thumb.jpg","galleries_id":313721,"server_id":15,"link":"photo_3748066.html","width":130,"caption":"Robin","height":159});
															thumbnails[3748074] = clik.newPhoto({"id":3748074,"src":"Widgeon_-_6155090109_thumb.jpg","galleries_id":225070,"server_id":15,"link":"photo_3748074.html","width":130,"caption":"Widgeon","height":90});
															thumbnails[3748075] = clik.newPhoto({"id":3748075,"src":"Kingfisher_-_1038040309_thumb.jpg","galleries_id":225421,"server_id":15,"link":"photo_3748075.html","width":130,"caption":"Kingfisher","height":159});
															thumbnails[3749187] = clik.newPhoto({"id":3749187,"src":"Long_Eared_Owl_-_1736210808_thumb.jpg","galleries_id":225067,"server_id":15,"link":"photo_3749187.html","width":130,"caption":"Long Eared Owl","height":161});
															thumbnails[3749189] = clik.newPhoto({"id":3749189,"src":"Long_Eared_Owl_-_1691210808_thumb.jpg","galleries_id":225067,"server_id":15,"link":"photo_3749189.html","width":130,"caption":"Long Eared Owl","height":87});
															thumbnails[3749196] = clik.newPhoto({"id":3749196,"src":"Long_Eared_Owl_-_1781210808_thumb.jpg","galleries_id":225067,"server_id":15,"link":"photo_3749196.html","width":130,"caption":"Long Eared Owl","height":87});
															thumbnails[3749197] = clik.newPhoto({"id":3749197,"src":"Long_Eared_Owl_-_1788210808_thumb.jpg","galleries_id":225067,"server_id":15,"link":"photo_3749197.html","width":130,"caption":"Long Eared Owl","height":89});
															thumbnails[3749198] = clik.newPhoto({"id":3749198,"src":"Long_Eared_Owl_-_1759210808_thumb.jpg","galleries_id":225067,"server_id":15,"link":"photo_3749198.html","width":130,"caption":"Long Eared Owl","height":92});
															thumbnails[3749199] = clik.newPhoto({"id":3749199,"src":"Long_Eared_Owl_-_1675210808_thumb.jpg","galleries_id":225067,"server_id":15,"link":"photo_3749199.html","width":130,"caption":"Long Eared Owl","height":89});
															thumbnails[3749200] = clik.newPhoto({"id":3749200,"src":"Long_Eared_Owl_-_1667210808_thumb.jpg","galleries_id":225067,"server_id":15,"link":"photo_3749200.html","width":130,"caption":"Long Eared Owl","height":92});
															thumbnails[3923102] = clik.newPhoto({"id":3923102,"src":"Stonechat_-_9855060509_filtered_thumb.jpg","galleries_id":313721,"server_id":15,"link":"photo_3923102.html","width":130,"caption":"Stonechat","height":93});
															thumbnails[3977001] = clik.newPhoto({"id":3977001,"src":"Fox_-_5534221108_thumb.jpg","galleries_id":225068,"server_id":15,"link":"photo_3977001.html","width":130,"caption":"Fox","height":87});
															thumbnails[3977003] = clik.newPhoto({"id":3977003,"src":"Fox_-_5127201108_thumb.jpg","galleries_id":225068,"server_id":15,"link":"photo_3977003.html","width":130,"caption":"Fox","height":195});
															thumbnails[3977006] = clik.newPhoto({"id":3977006,"src":"Grey_Heron-71880411071_thumb.jpg","galleries_id":225071,"server_id":15,"link":"photo_3977006.html","width":130,"caption":"Grey Heron","height":89});
															thumbnails[3977008] = clik.newPhoto({"id":3977008,"src":"Little_Egret_-_8022041107041107_thumb.jpg","galleries_id":225405,"server_id":15,"link":"photo_3977008.html","width":130,"caption":"Little Egret","height":135});
															thumbnails[3977010] = clik.newPhoto({"id":3977010,"src":"Little_Egret_-_81770402090402091_thumb.jpg","galleries_id":225405,"server_id":15,"link":"photo_3977010.html","width":130,"caption":"Little Egret","height":87});
															thumbnails[3977012] = clik.newPhoto({"id":3977012,"src":"Kingfisher_-_3774080907_thumb.jpg","galleries_id":225421,"server_id":15,"link":"photo_3977012.html","width":130,"caption":"Kingfisher","height":98});
															thumbnails[3977498] = clik.newPhoto({"id":3977498,"src":"Short_Eared_Owl_-_55572903091_thumb.jpg","galleries_id":225062,"server_id":15,"link":"photo_3977498.html","width":130,"caption":"Short Eared Owl","height":88});
															thumbnails[3977506] = clik.newPhoto({"id":3977506,"src":"Hare_-_79820302091_thumb.jpg","galleries_id":225075,"server_id":15,"link":"photo_3977506.html","width":130,"caption":"Hares","height":89});
															thumbnails[4016516] = clik.newPhoto({"id":4016516,"src":"Grey_Heron_-_0761120509_thumb.jpg","galleries_id":225071,"server_id":15,"link":"photo_4016516.html","width":130,"caption":"Grey Heron","height":195});
															thumbnails[4017319] = clik.newPhoto({"id":4017319,"src":"Grey_Heron_-_0287110509_thumb.jpg","galleries_id":225071,"server_id":15,"link":"photo_4017319.html","width":130,"caption":"Grey Heron","height":87});
															thumbnails[4144936] = clik.newPhoto({"id":4144936,"src":"Frosted_Catkins_-_4243260205_filtered_thumb.jpg","galleries_id":225083,"server_id":15,"link":"photo_4144936.html","width":130,"caption":"Frost on the Willow","height":87});
															thumbnails[4144940] = clik.newPhoto({"id":4144940,"src":"Frosted_Conkers_-3356031204_filtered_thumb.jpg","galleries_id":225083,"server_id":15,"link":"photo_4144940.html","width":130,"caption":"Frosty Conkers","height":87});
															thumbnails[4144946] = clik.newPhoto({"id":4144946,"src":"Dandelion_Seeds_-_0255230508_thumb.jpg","galleries_id":225083,"server_id":15,"link":"photo_4144946.html","width":130,"caption":"Dandelion Head","height":93});
															thumbnails[4225483] = clik.newPhoto({"id":4225483,"src":"Ladybird_-_5400040709-2_filtered_thumb.jpg","galleries_id":225082,"server_id":15,"link":"photo_4225483.html","width":130,"caption":"Ladybird","height":93});
															thumbnails[4592489] = clik.newPhoto({"id":4592489,"src":"Hare-1330240809_filtered_thumb.jpg","galleries_id":225075,"server_id":15,"link":"photo_4592489.html","width":130,"caption":"Brown Hare","height":95});
															thumbnails[4592491] = clik.newPhoto({"id":4592491,"src":"Hare-1347240809_filtered_thumb.jpg","galleries_id":225075,"server_id":15,"link":"photo_4592491.html","width":130,"caption":"Brown Hare","height":171});
															thumbnails[4592493] = clik.newPhoto({"id":4592493,"src":"Hare-1352240809_filtered_thumb.jpg","galleries_id":225075,"server_id":15,"link":"photo_4592493.html","width":130,"caption":"Brown Hare","height":92});
															thumbnails[4592496] = clik.newPhoto({"id":4592496,"src":"Little_Egret-1367250809_filtered_thumb.jpg","galleries_id":225405,"server_id":15,"link":"photo_4592496.html","width":130,"caption":"Little Egret","height":93});
															thumbnails[4597092] = clik.newPhoto({"id":4597092,"src":"Kestrel-1521270809_thumb.jpg","galleries_id":225076,"server_id":15,"link":"photo_4597092.html","width":130,"caption":"Kestrel","height":93});
															thumbnails[4597400] = clik.newPhoto({"id":4597400,"src":"Red_Arrows-0235070809_thumb.jpg","galleries_id":225084,"server_id":15,"link":"photo_4597400.html","width":130,"caption":"Red Arrows","height":78});
															thumbnails[4597472] = clik.newPhoto({"id":4597472,"src":"Pacey-6657270709_thumb.jpg","galleries_id":225084,"server_id":15,"link":"photo_4597472.html","width":130,"caption":"Surfing","height":86});
															thumbnails[4597908] = clik.newPhoto({"id":4597908,"src":"Black_Headed-Gull-1507270809_thumb.jpg","galleries_id":266103,"server_id":15,"link":"photo_4597908.html","width":130,"caption":"Black Headed-Gull","height":87});
															thumbnails[4654132] = clik.newPhoto({"id":4654132,"src":"KiteSurfing-0237040909_thumb.jpg","galleries_id":225084,"server_id":15,"link":"photo_4654132.html","width":130,"caption":"Kite Surfing","height":94});
															thumbnails[4743996] = clik.newPhoto({"id":4743996,"src":"Barn_Owl-4866270609_thumb.jpg","galleries_id":225066,"server_id":15,"link":"photo_4743996.html","width":130,"caption":"Barn Owl","height":89});
															thumbnails[5131113] = clik.newPhoto({"id":5131113,"src":"Kestrel-1859071109_thumb.jpg","galleries_id":225076,"server_id":15,"link":"photo_5131113.html","width":130,"caption":"Kestrel","height":165});
															thumbnails[5131145] = clik.newPhoto({"id":5131145,"src":"Kestrel-1838071109_thumb.jpg","galleries_id":225076,"server_id":15,"link":"photo_5131145.html","width":130,"caption":"Kestrel","height":168});
															thumbnails[5131181] = clik.newPhoto({"id":5131181,"src":"Buzzard-1658021109_thumb.jpg","galleries_id":225072,"server_id":15,"link":"photo_5131181.html","width":130,"caption":"Buzzard","height":85});
															thumbnails[5131250] = clik.newPhoto({"id":5131250,"src":"Harvest-0524300909_thumb.jpg","galleries_id":225077,"server_id":15,"link":"photo_5131250.html","width":130,"caption":"Harvest Time","height":87});
															thumbnails[5447737] = clik.newPhoto({"id":5447737,"src":"Hares-5804010210_thumb.jpg","galleries_id":225075,"server_id":15,"link":"photo_5447737.html","width":130,"caption":"Hare","height":87});
															thumbnails[5448108] = clik.newPhoto({"id":5448108,"src":"Hares-5818010210_8B1DC248-1D09-001F-99DAE85678FC1E98_thumb.jpg","galleries_id":225075,"server_id":15,"link":"photo_5448108.html","width":130,"caption":"Hare","height":80});
															thumbnails[5448109] = clik.newPhoto({"id":5448109,"src":"Hares-5640310110_W_thumb.jpg","galleries_id":225075,"server_id":15,"link":"photo_5448109.html","width":130,"caption":"Hares","height":79});
															thumbnails[5448112] = clik.newPhoto({"id":5448112,"src":"Hares-5637310110_thumb.jpg","galleries_id":225075,"server_id":15,"link":"photo_5448112.html","width":130,"caption":"Hares","height":47});
															thumbnails[5453765] = clik.newPhoto({"id":5453765,"src":"Hares-5850010210_W_thumb.jpg","galleries_id":225075,"server_id":15,"link":"photo_5453765.html","width":130,"caption":"Hare","height":87});
															thumbnails[5453767] = clik.newPhoto({"id":5453767,"src":"Hares-5951010210_thumb.jpg","galleries_id":225075,"server_id":15,"link":"photo_5453767.html","width":130,"caption":"Hare","height":174});
															thumbnails[5455899] = clik.newPhoto({"id":5455899,"src":"Hare-5901010210_thumb.jpg","galleries_id":225075,"server_id":15,"link":"photo_5455899.html","width":130,"caption":"Hare","height":195});
															thumbnails[5455919] = clik.newPhoto({"id":5455919,"src":"Hares-5865010210_thumb.jpg","galleries_id":225075,"server_id":15,"link":"photo_5455919.html","width":130,"caption":"Hare","height":86});
															thumbnails[5456055] = clik.newPhoto({"id":5456055,"src":"Hare-5853010210_thumb.jpg","galleries_id":225075,"server_id":15,"link":"photo_5456055.html","width":130,"caption":"Hare","height":178});
															thumbnails[5534412] = clik.newPhoto({"id":5534412,"src":"Raven-6308200210_thumb.jpg","galleries_id":313676,"server_id":15,"link":"photo_5534412.html","width":130,"caption":"Raven","height":172});
															thumbnails[5534418] = clik.newPhoto({"id":5534418,"src":"Raven-6270200210_thumb.jpg","galleries_id":313676,"server_id":15,"link":"photo_5534418.html","width":130,"caption":"Raven","height":179});
															thumbnails[5534423] = clik.newPhoto({"id":5534423,"src":"Raven-6300200210_thumb.jpg","galleries_id":313676,"server_id":15,"link":"photo_5534423.html","width":130,"caption":"Raven","height":75});
															thumbnails[5534435] = clik.newPhoto({"id":5534435,"src":"Raven-6293200210_thumb.jpg","galleries_id":313676,"server_id":15,"link":"photo_5534435.html","width":130,"caption":"Raven","height":82});
															thumbnails[6025654] = clik.newPhoto({"id":6025654,"src":"Great_Spotted_Woodpecker-22170510_W_thumb.jpg","galleries_id":313721,"server_id":15,"link":"photo_6025654.html","width":130,"caption":"Great Spotted Woodpecker","height":186});
															thumbnails[6448548] = clik.newPhoto({"id":6448548,"src":"Red_Bull-0170310710_thumb.jpg","galleries_id":355818,"server_id":15,"link":"photo_6448548.html","width":130,"caption":"Red Bull racing in the Extreme 40's","height":87});
															thumbnails[6448554] = clik.newPhoto({"id":6448554,"src":"Red_Bull-0091310710_thumb.jpg","galleries_id":355818,"server_id":15,"link":"photo_6448554.html","width":130,"caption":"Red Bull","height":179});
															thumbnails[6448559] = clik.newPhoto({"id":6448559,"src":"Wild_Wally-Diamond-9696310710_thumb.jpg","galleries_id":355818,"server_id":15,"link":"photo_6448559.html","width":130,"caption":"Wild Wally and Diamond collide","height":87});
															thumbnails[6448564] = clik.newPhoto({"id":6448564,"src":"SpongeBob-9577310710_thumb.jpg","galleries_id":355818,"server_id":15,"link":"photo_6448564.html","width":130,"caption":"Sponge Bob","height":196});
															thumbnails[6478255] = clik.newPhoto({"id":6478255,"src":"Al_Reed-6010060210_thumb.jpg","galleries_id":225084,"server_id":15,"link":"photo_6478255.html","width":130,"caption":"Al Reed","height":84});
															thumbnails[6478258] = clik.newPhoto({"id":6478258,"src":"Barreled_thumb.jpg","galleries_id":225084,"server_id":15,"link":"photo_6478258.html","width":130,"caption":"Barreled at the bay","height":67});
															thumbnails[3689389] = clik.newPhoto({"id":3689389,"src":"Long_Eared_Owl_-_17732108081_thumb.jpg","galleries_id":225067,"server_id":15,"link":"photo_3689389.html","width":130,"caption":"Long Eared Owl","height":87});
															thumbnails[3690304] = clik.newPhoto({"id":3690304,"src":"Freshwater_Bay_-_71011801091_thumb.jpg","galleries_id":225077,"server_id":15,"link":"photo_3690304.html","width":130,"caption":"The West Swell","height":195});
															thumbnails[3695561] = clik.newPhoto({"id":3695561,"src":"Red_Squirrel_-_1022405071_thumb.jpg","galleries_id":225069,"server_id":15,"link":"photo_3695561.html","width":130,"caption":"Red Squirrel","height":87});
															thumbnails[3746071] = clik.newPhoto({"id":3746071,"src":"Short_Eared_Owl_-_5861290309_thumb.jpg","galleries_id":225062,"server_id":15,"link":"photo_3746071.html","width":130,"caption":"Short Eared Owl","height":195});
															thumbnails[3749160] = clik.newPhoto({"id":3749160,"src":"West_Burton_Falls_-_9877110508_thumb.jpg","galleries_id":225080,"server_id":15,"link":"photo_3749160.html","width":130,"caption":"West Burton Falls","height":87});
															thumbnails[4128950] = clik.newPhoto({"id":4128950,"src":"Round_the_Island_-_4041200609_thumb.jpg","galleries_id":225084,"server_id":15,"link":"photo_4128950.html","width":130,"caption":"Round The Island 2009","height":63});
															thumbnails[3743071] = clik.newPhoto({"id":3743071,"src":"Soustons_Lac_-080507_thumb.jpg","galleries_id":225080,"server_id":15,"link":"photo_3743071.html","width":130,"caption":"Soustons Lac","height":66});
															thumbnails[3746073] = clik.newPhoto({"id":3746073,"src":"Short_Eared_Owl_-_5763290309_thumb.jpg","galleries_id":225062,"server_id":15,"link":"photo_3746073.html","width":130,"caption":"Short Eared Owl","height":195});
															thumbnails[3749159] = clik.newPhoto({"id":3749159,"src":"Totland_Pier_-_3293170309_thumb.jpg","galleries_id":225077,"server_id":15,"link":"photo_3749159.html","width":130,"caption":"Totland Pier","height":195});
															thumbnails[4429910] = clik.newPhoto({"id":4429910,"src":"Cowes_Week_2009-7836020809_thumb.jpg","galleries_id":225084,"server_id":15,"link":"photo_4429910.html","width":130,"caption":"Cowes Week 2009","height":173});
															thumbnails[4551726] = clik.newPhoto({"id":4551726,"src":"Red_Squirrel_-_0293270209_thumb.jpg","galleries_id":225069,"server_id":15,"link":"photo_4551726.html","width":130,"caption":"Red Squirrel","height":87});
															thumbnails[3690567] = clik.newPhoto({"id":3690567,"src":"West_Burton_Falls_-_98941105081_thumb.jpg","galleries_id":225080,"server_id":15,"link":"photo_3690567.html","width":130,"caption":"West Burton Falls","height":87});
															thumbnails[3695567] = clik.newPhoto({"id":3695567,"src":"Short_Eared_Owl-5898290309_thumb.jpg","galleries_id":225062,"server_id":15,"link":"photo_3695567.html","width":130,"caption":"Short Eared Owl","height":152});
															thumbnails[3748174] = clik.newPhoto({"id":3748174,"src":"Mottistone_Bluebells_-_9649010508_thumb.jpg","galleries_id":225077,"server_id":15,"link":"photo_3748174.html","width":130,"caption":"Bluebells at Mottistone","height":195});
															thumbnails[4552309] = clik.newPhoto({"id":4552309,"src":"Red_Squirrel_-_8260200507_thumb.jpg","galleries_id":225069,"server_id":15,"link":"photo_4552309.html","width":130,"caption":"Red Squirrel","height":92});
															thumbnails[5131119] = clik.newPhoto({"id":5131119,"src":"Kestrel-1447311009_thumb.jpg","galleries_id":225076,"server_id":15,"link":"photo_5131119.html","width":130,"caption":"Kestrel","height":83});
															thumbnails[3744614] = clik.newPhoto({"id":3744614,"src":"Bluith_Wells_-_1539250906_thumb.jpg","galleries_id":225080,"server_id":15,"link":"photo_3744614.html","width":130,"caption":"Bluith Wells","height":68});
															thumbnails[3746109] = clik.newPhoto({"id":3746109,"src":"Short_Eared_Owl_-_3456180309_thumb.jpg","galleries_id":225062,"server_id":15,"link":"photo_3746109.html","width":130,"caption":"Short Eared Owl","height":160});
															thumbnails[3748129] = clik.newPhoto({"id":3748129,"src":"Totland_Pier_-_3275170309_thumb.jpg","galleries_id":225077,"server_id":15,"link":"photo_3748129.html","width":130,"caption":"Sunset at Totland","height":195});
															thumbnails[3972638] = clik.newPhoto({"id":3972638,"src":"Red_Squirrel_-_6218090109090109_thumb.jpg","galleries_id":225069,"server_id":15,"link":"photo_3972638.html","width":130,"caption":"Red Squirrel","height":87});
															thumbnails[5131135] = clik.newPhoto({"id":5131135,"src":"Kestrel-1832071109_thumb.jpg","galleries_id":225076,"server_id":15,"link":"photo_5131135.html","width":130,"caption":"Kestrel","height":82});
															thumbnails[3690313] = clik.newPhoto({"id":3690313,"src":"Red_Squirrel_-_22761303091_thumb.jpg","galleries_id":225069,"server_id":15,"link":"photo_3690313.html","width":130,"caption":"Red Squirrel","height":170});
															thumbnails[3692723] = clik.newPhoto({"id":3692723,"src":"The_Needles_-_48612603091_thumb.jpg","galleries_id":225077,"server_id":15,"link":"photo_3692723.html","width":130,"caption":"The Needles","height":87});
															thumbnails[3749162] = clik.newPhoto({"id":3749162,"src":"West_Burton_Falls_-_9863110508_thumb.jpg","galleries_id":225080,"server_id":15,"link":"photo_3749162.html","width":130,"caption":"West Burton Falls","height":87});
															thumbnails[3694102] = clik.newPhoto({"id":3694102,"src":"Fox_-_53322211081_thumb.jpg","galleries_id":225068,"server_id":15,"link":"photo_3694102.html","width":130,"caption":"Fox","height":172});
															thumbnails[3742058] = clik.newPhoto({"id":3742058,"src":"Short_Eared_Owl_-_6494300309_thumb.jpg","galleries_id":225062,"server_id":15,"link":"photo_3742058.html","width":130,"caption":"Short Eared Owl","height":87});
															thumbnails[3748123] = clik.newPhoto({"id":3748123,"src":"Brook_Bay_-_4997270309_thumb.jpg","galleries_id":225077,"server_id":15,"link":"photo_3748123.html","width":130,"caption":"Brook Bay","height":87});
															thumbnails[3749161] = clik.newPhoto({"id":3749161,"src":"West_Burton_Falls_-_9892110508_thumb.jpg","galleries_id":225080,"server_id":15,"link":"photo_3749161.html","width":130,"caption":"West Burton Falls","height":87});
															thumbnails[4551733] = clik.newPhoto({"id":4551733,"src":"Red_Squirrel-2064100309_thumb.jpg","galleries_id":225069,"server_id":15,"link":"photo_4551733.html","width":130,"caption":"Red Squirrel","height":168});
															thumbnails[3743014] = clik.newPhoto({"id":3743014,"src":"Short_Eared_Owl_-_5643290309_thumb.jpg","galleries_id":225062,"server_id":15,"link":"photo_3743014.html","width":130,"caption":"Short Eared Owl","height":90});
															thumbnails[3748124] = clik.newPhoto({"id":3748124,"src":"Brook_Sunrise_-_6609010409_thumb.jpg","galleries_id":225077,"server_id":15,"link":"photo_3748124.html","width":130,"caption":"Sunrise at Brook","height":87});
															thumbnails[3749164] = clik.newPhoto({"id":3749164,"src":"Pendragon_Castle_-_0071130508_thumb.jpg","galleries_id":225080,"server_id":15,"link":"photo_3749164.html","width":130,"caption":"Pendragon Castle","height":87});
															thumbnails[3805570] = clik.newPhoto({"id":3805570,"src":"Barn_Owl_-_9122280409_filtered_thumb.jpg","galleries_id":225066,"server_id":15,"link":"photo_3805570.html","width":130,"caption":"Barn Owl","height":92});
															thumbnails[3972658] = clik.newPhoto({"id":3972658,"src":"Short_Eared_Owl_-_4668220309220309_thumb.jpg","galleries_id":225062,"server_id":15,"link":"photo_3972658.html","width":130,"caption":"Short Eared Owl","height":161});
															thumbnails[4551725] = clik.newPhoto({"id":4551725,"src":"Red_Squirrel-7025310709_thumb.jpg","galleries_id":225069,"server_id":15,"link":"photo_4551725.html","width":130,"caption":"Red Squirrel","height":180});
															thumbnails[3743040] = clik.newPhoto({"id":3743040,"src":"Short_Eared_Owl_-_7610140409_thumb.jpg","galleries_id":225062,"server_id":15,"link":"photo_3743040.html","width":130,"caption":"Short Eared Owl","height":87});
															thumbnails[3748127] = clik.newPhoto({"id":3748127,"src":"Freshwater_Bay_-_0597220108_thumb.jpg","galleries_id":225077,"server_id":15,"link":"photo_3748127.html","width":130,"caption":"Dawn at the Bay","height":85});
															thumbnails[3749168] = clik.newPhoto({"id":3749168,"src":"Yorkshire_-_04208140508_thumb.jpg","galleries_id":225080,"server_id":15,"link":"photo_3749168.html","width":130,"caption":"Old Stone Barn","height":98});
															thumbnails[3844289] = clik.newPhoto({"id":3844289,"src":"Barn_Owl_-_9566010509_filtered_thumb.jpg","galleries_id":225066,"server_id":15,"link":"photo_3844289.html","width":130,"caption":"Barn Owl","height":90});
															thumbnails[3972659] = clik.newPhoto({"id":3972659,"src":"Short_Eared_Owl_-_6500300309300309_thumb.jpg","galleries_id":225062,"server_id":15,"link":"photo_3972659.html","width":130,"caption":"Short Eared Owl","height":165});
															thumbnails[4551731] = clik.newPhoto({"id":4551731,"src":"Red_Squirrel-7023310709_thumb.jpg","galleries_id":225069,"server_id":15,"link":"photo_4551731.html","width":130,"caption":"Red Squirrel","height":167});
															thumbnails[3691849] = clik.newPhoto({"id":3691849,"src":"Short_Eared_Owl_-_53362903091_thumb.jpg","galleries_id":225062,"server_id":15,"link":"photo_3691849.html","width":130,"caption":"Short Eared Owl","height":88});
															thumbnails[3743250] = clik.newPhoto({"id":3743250,"src":"Waterfall_-_2453290704_thumb.jpg","galleries_id":225080,"server_id":15,"link":"photo_3743250.html","width":130,"caption":"Waterfall","height":195});
															thumbnails[3844294] = clik.newPhoto({"id":3844294,"src":"Barn_Owl_-_8084220409_filtered_thumb.jpg","galleries_id":225066,"server_id":15,"link":"photo_3844294.html","width":130,"caption":"Barn Owl","height":162});
															thumbnails[3844297] = clik.newPhoto({"id":3844297,"src":"Barn_Owl_-_8136240409_filtered_thumb.jpg","galleries_id":225066,"server_id":15,"link":"photo_3844297.html","width":130,"caption":"Barn Owl","height":156});
															thumbnails[3742061] = clik.newPhoto({"id":3742061,"src":"Short_Eared_Owl_-_5828290309_thumb.jpg","galleries_id":225062,"server_id":15,"link":"photo_3742061.html","width":130,"caption":"Short Eared Owl","height":87});
															thumbnails[3746111] = clik.newPhoto({"id":3746111,"src":"Short_Eared_Owl_-_3153170309_thumb.jpg","galleries_id":225062,"server_id":15,"link":"photo_3746111.html","width":130,"caption":"Short Eared Owl","height":99});
															thumbnails[3844299] = clik.newPhoto({"id":3844299,"src":"Barn_Owl_-_9103280409_filtered_thumb.jpg","galleries_id":225066,"server_id":15,"link":"photo_3844299.html","width":130,"caption":"Barn Owl","height":161});
															thumbnails[3746113] = clik.newPhoto({"id":3746113,"src":"Short_Eared_Owl_-_4528210309_thumb.jpg","galleries_id":225062,"server_id":15,"link":"photo_3746113.html","width":130,"caption":"Short Eared Owl","height":92});
															thumbnails[3746119] = clik.newPhoto({"id":3746119,"src":"Short_Eared_Owl_-_5507290309_thumb.jpg","galleries_id":225062,"server_id":15,"link":"photo_3746119.html","width":130,"caption":"Short Eared Owl","height":91});
															thumbnails[3844302] = clik.newPhoto({"id":3844302,"src":"Barn_Owl_-_9037270409_thumb.jpg","galleries_id":225066,"server_id":15,"link":"photo_3844302.html","width":130,"caption":"Barn Owl","height":163});
															thumbnails[3849048] = clik.newPhoto({"id":3849048,"src":"Barn_Owl_-_9549010509_filtered_thumb.jpg","galleries_id":225066,"server_id":15,"link":"photo_3849048.html","width":130,"caption":"Barn Owl","height":89});
															thumbnails[3757924] = clik.newPhoto({"id":3757924,"src":"Short_Eared_Owl_-_7914200409_thumb.jpg","galleries_id":225062,"server_id":15,"link":"photo_3757924.html","width":130,"caption":"Short Eared Owl","height":92});
															thumbnails[3849050] = clik.newPhoto({"id":3849050,"src":"Barn_Owl_-_9040270409_thumb.jpg","galleries_id":225066,"server_id":15,"link":"photo_3849050.html","width":130,"caption":"Barn Owl","height":97});
															thumbnails[3757909] = clik.newPhoto({"id":3757909,"src":"Short_Eared_Owl_-_7849200409_thumb.jpg","galleries_id":225062,"server_id":15,"link":"photo_3757909.html","width":130,"caption":"Short Eared Owl","height":195});
															thumbnails[3849058] = clik.newPhoto({"id":3849058,"src":"Barn_Owl_-_9400290409_thumb.jpg","galleries_id":225066,"server_id":15,"link":"photo_3849058.html","width":130,"caption":"Barn Owl","height":95});
															thumbnails[3972634] = clik.newPhoto({"id":3972634,"src":"Barn_Owl_-_9497300409300409_thumb.jpg","galleries_id":225066,"server_id":15,"link":"photo_3972634.html","width":130,"caption":"Barn Owl","height":91});
															thumbnails[3757922] = clik.newPhoto({"id":3757922,"src":"Short_Eared_Owl_-_7883200409_thumb.jpg","galleries_id":225062,"server_id":15,"link":"photo_3757922.html","width":130,"caption":"Short Eared Owl","height":167});
															thumbnails[3849069] = clik.newPhoto({"id":3849069,"src":"Barn_Owl_-_9561010509_filtered_thumb.jpg","galleries_id":225066,"server_id":15,"link":"photo_3849069.html","width":130,"caption":"Barn Owl","height":90});
															thumbnails[3922983] = clik.newPhoto({"id":3922983,"src":"Barn_Owl_-9449300409_thumb.jpg","galleries_id":225066,"server_id":15,"link":"photo_3922983.html","width":130,"caption":"Barn Owl","height":93});
															thumbnails[3972735] = clik.newPhoto({"id":3972735,"src":"Short_Eared_Owl_-_5683290309290309_thumb.jpg","galleries_id":225062,"server_id":15,"link":"photo_3972735.html","width":130,"caption":"Short Eared Owl","height":165});
															thumbnails[3976987] = clik.newPhoto({"id":3976987,"src":"Barn_Owl-94593004091_thumb.jpg","galleries_id":225066,"server_id":15,"link":"photo_3976987.html","width":130,"caption":"Barn Owl","height":91});
															thumbnails[3972630] = clik.newPhoto({"id":3972630,"src":"Barn_Owl_-_9455300409300409_thumb.jpg","galleries_id":225066,"server_id":15,"link":"photo_3972630.html","width":130,"caption":"Barn Owl","height":165});
															thumbnails[3972636] = clik.newPhoto({"id":3972636,"src":"Long_Eared_Owl_-_1677210808210808_thumb.jpg","galleries_id":225067,"server_id":15,"link":"photo_3972636.html","width":130,"caption":"Long Eared Owl","height":121});
															thumbnails[3976990] = clik.newPhoto({"id":3976990,"src":"Barn_Owl_-0105091_thumb.jpg","galleries_id":225066,"server_id":15,"link":"photo_3976990.html","width":130,"caption":"Barn Owl","height":90});
															thumbnails[3689369] = clik.newPhoto({"id":3689369,"src":"Barn_Owl-944425020612_thumb.jpg","galleries_id":225066,"server_id":15,"link":"photo_3689369.html","width":130,"caption":"Barn Owl","height":169});
															thumbnails[4015633] = clik.newPhoto({"id":4015633,"src":"Barn_Owl_-_2569030609-2_filtered_thumb.jpg","galleries_id":225066,"server_id":15,"link":"photo_4015633.html","width":130,"caption":"Barn Owl","height":87});
															thumbnails[4015635] = clik.newPhoto({"id":4015635,"src":"Barn_Owl_-_2596030609_filtered_thumb.jpg","galleries_id":225066,"server_id":15,"link":"photo_4015635.html","width":130,"caption":"Barn Owl","height":87});
															thumbnails[4015647] = clik.newPhoto({"id":4015647,"src":"Barn_Owl_-_2602030609_thumb.jpg","galleries_id":225066,"server_id":15,"link":"photo_4015647.html","width":130,"caption":"Barn Owl","height":87});
															thumbnails[4021640] = clik.newPhoto({"id":4021640,"src":"Barn_Owl_-_2655050609_filtered_thumb.jpg","galleries_id":225066,"server_id":15,"link":"photo_4021640.html","width":130,"caption":"Barn Owl","height":92});
															thumbnails[4174916] = clik.newPhoto({"id":4174916,"src":"Barn_Owl_-_4762260609_filtered_thumb.jpg","galleries_id":225066,"server_id":15,"link":"photo_4174916.html","width":130,"caption":"Barn Owl","height":92});
															thumbnails[4174961] = clik.newPhoto({"id":4174961,"src":"Barn_Owl_-_4604230609_filtered_thumb.jpg","galleries_id":225066,"server_id":15,"link":"photo_4174961.html","width":130,"caption":"Barn Owl","height":90});
															thumbnails[4177885] = clik.newPhoto({"id":4177885,"src":"Barn_Owl_-_4835270609_thumb.jpg","galleries_id":225066,"server_id":15,"link":"photo_4177885.html","width":130,"caption":"Barn Owl","height":166});
															thumbnails[4177886] = clik.newPhoto({"id":4177886,"src":"Barn_Owl_-_4868270609_filtered_thumb.jpg","galleries_id":225066,"server_id":15,"link":"photo_4177886.html","width":130,"caption":"Barn Owl","height":88});
															thumbnails[4225487] = clik.newPhoto({"id":4225487,"src":"Barn_Owl_-_5375020709_thumb.jpg","galleries_id":225066,"server_id":15,"link":"photo_4225487.html","width":130,"caption":"Barn Owl","height":91});
															thumbnails[4225489] = clik.newPhoto({"id":4225489,"src":"Barn_Owl_-_5376020709_thumb.jpg","galleries_id":225066,"server_id":15,"link":"photo_4225489.html","width":130,"caption":"Barn Owl","height":93});
															thumbnails[4125993] = clik.newPhoto({"id":4125993,"src":"Barn_Owl_-_4481200609_thumb.jpg","galleries_id":225066,"server_id":15,"link":"photo_4125993.html","width":130,"caption":"Barn Owl","height":156});
															thumbnails[4147707] = clik.newPhoto({"id":4147707,"src":"Barn_Owl_-_4252200609_filtered_thumb.jpg","galleries_id":225066,"server_id":15,"link":"photo_4147707.html","width":130,"caption":"Barn Owl","height":164});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[225066] = clik.newGallery({"parentGallery":225568,"usePopups":false,"title":"Barn Owls","link":"gallery_225066.html","maxRecords":0.0,"photoIDs":[4743996.0,3805570.0,3844289.0,3844294.0,3844297.0,3844299.0,3844302.0,3849048.0,3849050.0,3849058.0,3972634.0,3849069.0,3922983.0,3976987.0,3972630.0,3976990.0,3689369.0,4015633.0,4015635.0,4015647.0,4021640.0,4174916.0,4174961.0,4177885.0,4177886.0,4225487.0,4225489.0,4125993.0,4147707.0],"skipIndex":0,"section_code":"gallery","featured_images":"4125993,3689369","id":225066,"singleSection":false});				  						galleries[225072] = clik.newGallery({"parentGallery":225568,"usePopups":false,"title":"Buzzards","link":"gallery_225072.html","maxRecords":0.0,"photoIDs":[3689924.0,3748028.0,3748042.0,3748044.0,3748046.0,3748051.0,3748056.0,5131181.0],"skipIndex":0,"section_code":"gallery","featured_images":3748028.0,"id":225072,"singleSection":false});				  						galleries[313721] = clik.newGallery({"parentGallery":225569,"usePopups":false,"title":"Chats & Flycatchers","link":"gallery_313721.html","maxRecords":0.0,"photoIDs":[3694177.0,3748058.0,3748066.0,3923102.0,6025654.0],"skipIndex":0,"section_code":"gallery","featured_images":"6025654,3694177","id":313721,"singleSection":false});				  						galleries[313676] = clik.newGallery({"parentGallery":225569,"usePopups":false,"title":"Crows & Jays","link":"gallery_313676.html","maxRecords":0.0,"photoIDs":[5534412.0,5534418.0,5534423.0,5534435.0],"skipIndex":0,"section_code":"gallery","featured_images":5534418.0,"id":313676,"singleSection":false});				  						galleries[225070] = clik.newGallery({"parentGallery":225570,"usePopups":false,"title":"Ducks","link":"gallery_225070.html","maxRecords":0.0,"photoIDs":[3713736.0,3748074.0],"skipIndex":0,"section_code":"gallery","featured_images":3713736.0,"id":225070,"singleSection":false});				  						galleries[313727] = clik.newGallery({"parentGallery":225569,"usePopups":false,"title":"Finches & Relatives","link":"gallery_313727.html","maxRecords":0.0,"photoIDs":[3748060.0],"skipIndex":0,"section_code":"gallery","featured_images":3748060.0,"id":313727,"singleSection":false});				  						galleries[225068] = clik.newGallery({"parentGallery":224973,"usePopups":false,"title":"Foxes","link":"gallery_225068.html","maxRecords":0.0,"photoIDs":[3695579.0,3709879.0,3709882.0,3709885.0,3709886.0,3709888.0,3977001.0,3977003.0,3694102.0],"skipIndex":0,"section_code":"gallery","featured_images":"3695579,3694102","id":225068,"singleSection":false});				  						galleries[226949] = clik.newGallery({"parentGallery":225570,"usePopups":false,"title":"Grebes","link":"gallery_226949.html","maxRecords":0.0,"photoIDs":[3713740.0],"skipIndex":0,"section_code":"gallery","featured_images":3713740.0,"id":226949,"singleSection":false});				  						galleries[266103] = clik.newGallery({"parentGallery":225570,"usePopups":false,"title":"Gulls","link":"gallery_266103.html","maxRecords":0.0,"photoIDs":[4597908.0],"skipIndex":0,"section_code":"gallery","featured_images":4597908.0,"id":266103,"singleSection":false});				  						galleries[225075] = clik.newGallery({"parentGallery":224973,"usePopups":false,"title":"Hares","link":"gallery_225075.html","maxRecords":0.0,"photoIDs":[3690085.0,3709865.0,3709870.0,3709874.0,3977506.0,4592489.0,4592491.0,4592493.0,5447737.0,5448108.0,5448109.0,5448112.0,5453765.0,5453767.0,5455899.0,5455919.0,5456055.0],"skipIndex":0,"section_code":"gallery","featured_images":5456055.0,"id":225075,"singleSection":false});				  						galleries[225071] = clik.newGallery({"parentGallery":225570,"usePopups":false,"title":"Heron","link":"gallery_225071.html","maxRecords":0.0,"photoIDs":[3690302.0,3977006.0,4016516.0,4017319.0],"skipIndex":0,"section_code":"gallery","featured_images":"4016516,3690302","id":225071,"singleSection":false});				  						galleries[225077] = clik.newGallery({"parentGallery":224974,"usePopups":false,"title":"Isle of Wight","link":"gallery_225077.html","maxRecords":0.0,"photoIDs":[5131250.0,3690304.0,3749159.0,3748174.0,3748129.0,3692723.0,3748123.0,3748124.0,3748127.0],"skipIndex":0,"section_code":"gallery","featured_images":3690304.0,"id":225077,"singleSection":false});				  						galleries[225076] = clik.newGallery({"parentGallery":225568,"usePopups":false,"title":"Kestrels","link":"gallery_225076.html","maxRecords":0.0,"photoIDs":[3692712.0,4597092.0,5131113.0,5131145.0,5131119.0,5131135.0],"skipIndex":0,"section_code":"gallery","featured_images":5131113.0,"id":225076,"singleSection":false});				  						galleries[225421] = clik.newGallery({"parentGallery":225570,"usePopups":false,"title":"Kingfishers","link":"gallery_225421.html","maxRecords":0.0,"photoIDs":[3748075.0,3977012.0],"skipIndex":0,"section_code":"gallery","featured_images":"3977012,3748075","id":225421,"singleSection":false});				  						galleries[225405] = clik.newGallery({"parentGallery":225570,"usePopups":false,"title":"Little Egret","link":"gallery_225405.html","maxRecords":0.0,"photoIDs":[3977008.0,3977010.0,4592496.0],"skipIndex":0,"section_code":"gallery","featured_images":3977008.0,"id":225405,"singleSection":false});				  						galleries[225067] = clik.newGallery({"parentGallery":225568,"usePopups":false,"title":"Long Eared Owls","link":"gallery_225067.html","maxRecords":0.0,"photoIDs":[3749187.0,3749189.0,3749196.0,3749197.0,3749198.0,3749199.0,3749200.0,3689389.0,3972636.0],"skipIndex":0,"section_code":"gallery","featured_images":3749187.0,"id":225067,"singleSection":false});				  						galleries[225087] = clik.newGallery({"parentGallery":224973,"usePopups":false,"title":"Marine Mammals","link":"gallery_225087.html","maxRecords":0.0,"photoIDs":[3690308.0],"skipIndex":0,"section_code":"gallery","featured_images":3690308.0,"id":225087,"singleSection":false});				  						galleries[225083] = clik.newGallery({"parentGallery":225061,"usePopups":false,"title":"Plants & Flowers","link":"gallery_225083.html","maxRecords":0.0,"photoIDs":[3712138.0,4144936.0,4144940.0,4144946.0],"skipIndex":0,"section_code":"gallery","featured_images":3712138.0,"id":225083,"singleSection":false});				  						galleries[225069] = clik.newGallery({"parentGallery":224973,"usePopups":false,"title":"Red Squirrels","link":"gallery_225069.html","maxRecords":0.0,"photoIDs":[3695561.0,4551726.0,4552309.0,3972638.0,3690313.0,4551733.0,4551725.0,4551731.0],"skipIndex":0,"section_code":"gallery","featured_images":3690313.0,"id":225069,"singleSection":false});				  						galleries[225080] = clik.newGallery({"parentGallery":224974,"usePopups":false,"title":"Rest of the World","link":"gallery_225080.html","maxRecords":0.0,"photoIDs":[3749160.0,3743071.0,3690567.0,3744614.0,3749162.0,3749161.0,3749164.0,3749168.0,3743250.0],"skipIndex":0,"section_code":"gallery","featured_images":3743250.0,"id":225080,"singleSection":false});				  						galleries[225062] = clik.newGallery({"parentGallery":225568,"usePopups":false,"title":"Short Eared Owls","link":"gallery_225062.html","maxRecords":0.0,"photoIDs":[3977498.0,3746071.0,3746073.0,3695567.0,3746109.0,3742058.0,3743014.0,3972658.0,3743040.0,3972659.0,3691849.0,3742061.0,3746111.0,3746113.0,3746119.0,3757924.0,3757909.0,3757922.0,3972735.0],"skipIndex":0,"section_code":"gallery","featured_images":"3746109,3746071","id":225062,"singleSection":false});				  						galleries[226867] = clik.newGallery({"parentGallery":225061,"usePopups":false,"title":"Textures & Patterns","link":"gallery_226867.html","maxRecords":0.0,"photoIDs":[3712598.0],"skipIndex":0,"section_code":"gallery","featured_images":3712598.0,"id":226867,"singleSection":false});				  						galleries[313724] = clik.newGallery({"parentGallery":225569,"usePopups":false,"title":"Tits","link":"gallery_313724.html","maxRecords":0.0,"photoIDs":[3743199.0],"skipIndex":0,"section_code":"gallery","featured_images":3743199.0,"id":313724,"singleSection":false});				  						galleries[313726] = clik.newGallery({"parentGallery":225569,"usePopups":false,"title":"Warblers","link":"gallery_313726.html","maxRecords":0.0,"photoIDs":[3692699.0],"skipIndex":0,"section_code":"gallery","featured_images":3692699.0,"id":313726,"singleSection":false});				  						galleries[224973] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Mammals","link":"gallery_224973.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"5456055,3695579,3694102,3690313","id":224973,"singleSection":false});				  						galleries[225568] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Birds of Prey","link":"gallery_225568.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"5131113,4125993,3749187,3748028,3746109,3746071,3689369","id":225568,"singleSection":false});				  						galleries[225569] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Birds","link":"gallery_225569.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"6025654,5534418,3743199,3694177","id":225569,"singleSection":false});				  						galleries[225570] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Water Birds","link":"gallery_225570.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"4597908,4016516,3977008,3713736,3690302","id":225570,"singleSection":false});				  						galleries[224974] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Landscapes","link":"gallery_224974.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"3743250,3690304","id":224974,"singleSection":false});				  						galleries[225082] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Insects, Spiders & Amphibians","link":"gallery_225082.html","maxRecords":0.0,"photoIDs":[3690162.0,3712705.0,3713729.0,4225483.0],"skipIndex":0,"section_code":"gallery","featured_images":3712705.0,"id":225082,"singleSection":false});				  						galleries[225074] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Zoo's & Parks","link":"gallery_225074.html","maxRecords":0.0,"photoIDs":[3690569.0,3712608.0,3712624.0,3712674.0,3712688.0,3712693.0,3743170.0],"skipIndex":0,"section_code":"gallery","featured_images":"3712624,3712608","id":225074,"singleSection":false});				  						galleries[225061] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Flowers, Plants & Patterns in Nature","link":"gallery_225061.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":3712138.0,"id":225061,"singleSection":false});				  						galleries[225060] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Black & White","link":"gallery_225060.html","maxRecords":0.0,"photoIDs":[3690168.0],"skipIndex":0,"section_code":"gallery","featured_images":3690168.0,"id":225060,"singleSection":false});				  						galleries[225059] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"People & Portraits","link":"gallery_225059.html","maxRecords":0.0,"photoIDs":[3691783.0,3706121.0],"skipIndex":0,"section_code":"gallery","featured_images":3691783.0,"id":225059,"singleSection":false});				  						galleries[225084] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Sports & Events","link":"gallery_225084.html","maxRecords":0.0,"photoIDs":[3713759.0,4597400.0,4597472.0,4654132.0,6478255.0,6478258.0,4128950.0,4429910.0],"skipIndex":0,"section_code":"gallery","featured_images":"4429910,3713759","id":225084,"singleSection":false});				  						galleries[355818] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Cowes Week 2010","link":"gallery_355818.html","maxRecords":0.0,"photoIDs":[6483922.0,6483924.0,6483927.0,6483931.0,6477955.0,6477963.0,6477975.0,6477984.0,6463892.0,6463896.0,6463899.0,6463906.0,6456196.0,6456200.0,6456212.0,6456219.0,6448548.0,6448554.0,6448559.0,6448564.0],"skipIndex":0,"section_code":"gallery","featured_images":"6463899,6456212,6448554","id":355818,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '6025654,5456055,5453765,5448112,5448108,5447737,5131119,5131113,4743996,4597908,4592493,4551725,4225489,4225487,4225483,4177886,4177885,4174961,4174916,4147707,4125993,4021640,4017319,4016516,4015647,4015635,4015633,3977506,3977498,3977012,3977010,3977008,3977006,3977003,3977001,3976990,3976987,3972659,3972658,3972638,3972636,3972634,3972630,3923102,3922983,3844302,3844297,3844289,3805570,3749200,3749197,3749196,3749189,3749187,3748074,3748028,3746119,3746109,3746071,3743170,3743040,3742061,3742058,3712705,3712674,3712624,3695561,3694177,3694102,3692699,3691849,3690569,3690313,3690302,3690162,3690085,3689389,3689369';
imageSets[2] = '6463899,6456212,6448554,6025654,5534418,5456055,5131113,4597908,4429910,4125993,4016516,3977008,3749187,3748028,3746109,3746071,3743250,3743199,3713759,3713736,3712705,3712624,3712608,3712138,3695579,3694177,3694102,3691783,3690313,3690304,3690302,3689369';
imageSets[3] = '6483931,6483927,6483924,6483922,6478258,6478255,6477984,6477975,6477963,6477955,6463906,6463899,6463896,6463892,6456219,6456212,6456200,6456196,6448564,6448559,6448554,6448548,6025654,5534435,5534423,5534418,5534412,5456055,5455919,5455899,5453767,5453765,5448112,5448109,5448108,5447737,5131250,5131181,5131145,5131135,5131119,5131113,4743996,4654132,4597908,4597472,4597400,4597092,4592496,4592493';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/paulblackley/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/paulblackley/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/paulblackley/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/paulblackley/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/paulblackley/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/paulblackley/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/paulblackley/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/paulblackley/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/paulblackley/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/paulblackley/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/paulblackley/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/paulblackley/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/paulblackley/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/paulblackley/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/paulblackley/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/paulblackley/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/paulblackley/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/paulblackley/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/paulblackley/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/paulblackley/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/paulblackley/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/paulblackley/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/paulblackley/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 && backgrounds[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 = 'Paul Blackley 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.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="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		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" 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="paul14269@yahoo.co.uk">';
					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="paul14269@yahoo.co.uk">';
				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({					href: thumbnails[imageID].fnGalleryLink(gallery_id),					title: galleries[gallery_id].title				});
			}
		}
	}
}

/***************************************************************************
* 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;
	}
}

			

