window.thumbnails = {};
															thumbnails[4178157] = clik.newPhoto({"id":4178157,"src":"About_Me_Squirrel1_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":87,"caption":"","height":130});
															thumbnails[5433217] = clik.newPhoto({"id":5433217,"src":"Morning_Glory_LE_Framed_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Morning Glory (framed example)","height":104});
															thumbnails[5913025] = clik.newPhoto({"id":5913025,"src":"Wood_Frame_Ivory_Mount_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":93});
															thumbnails[5913026] = clik.newPhoto({"id":5913026,"src":"Black_Frame_White_Mount_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":93});
															thumbnails[5913181] = clik.newPhoto({"id":5913181,"src":"Limited_Edition_Frame1_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":93});
															thumbnails[8182409] = clik.newPhoto({"id":8182409,"src":"Red_Squirrel_Snow_on_Nose_for_hide_page_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":160,"caption":"","height":114});
															thumbnails[8587326] = clik.newPhoto({"id":8587326,"src":"Squirrel_with_Walnut_thumb.JPG","galleries_id":"","server_id":15,"link":"#","width":160,"caption":"","height":114});
															thumbnails[8630495] = clik.newPhoto({"id":8630495,"src":"Hide_thumb.JPG","galleries_id":"","server_id":15,"link":"#","width":160,"caption":"","height":114});
															thumbnails[8839766] = clik.newPhoto({"id":8839766,"src":"Hide_for_website_C53381E6-1EC9-DFB6-098B3FF12AEA5368_thumb.JPG","galleries_id":"","server_id":15,"link":"#","width":160,"caption":"Hide with Squirrel","height":114});
															thumbnails[3532348] = clik.newPhoto({"id":3532348,"src":"Hen_Grouse_in_Frost_thumb.jpg","galleries_id":216069,"server_id":15,"link":"photo_3532348.html","width":114,"caption":"Hen Grouse in Frost","height":160});
															thumbnails[3532350] = clik.newPhoto({"id":3532350,"src":"Golden_Plover_in_Habitat_thumb.jpg","galleries_id":216069,"server_id":15,"link":"photo_3532350.html","width":130,"caption":"Golden Plover in Grassland Habitat","height":93});
															thumbnails[3602377] = clik.newPhoto({"id":3602377,"src":"Brown_Hare_Portrait_thumb.jpg","galleries_id":216070,"server_id":15,"link":"photo_3602377.html","width":114,"caption":"Brown Hare Portrait","height":160});
															thumbnails[3602533] = clik.newPhoto({"id":3602533,"src":"Dipper_thumb.jpg","galleries_id":436862,"server_id":15,"link":"photo_3602533.html","width":130,"caption":"Dipper","height":93});
															thumbnails[3696050] = clik.newPhoto({"id":3696050,"src":"Meadow_Pipit_thumb.jpg","galleries_id":216069,"server_id":15,"link":"photo_3696050.html","width":93,"caption":"Meadow Pipit","height":130});
															thumbnails[3737626] = clik.newPhoto({"id":3737626,"src":"Black_Grouse_Lekking_thumb.JPG","galleries_id":216069,"server_id":15,"link":"photo_3737626.html","width":160,"caption":"Black Grouse","height":114});
															thumbnails[3757705] = clik.newPhoto({"id":3757705,"src":"Redshank_on_Post_thumb.jpg","galleries_id":216069,"server_id":15,"link":"photo_3757705.html","width":130,"caption":"Redshank on Post","height":93});
															thumbnails[3762139] = clik.newPhoto({"id":3762139,"src":"Black_Grouse_Lekking_1_thumb.jpg","galleries_id":216069,"server_id":15,"link":"photo_3762139.html","width":160,"caption":"Black Grouse Lekking","height":114});
															thumbnails[3941139] = clik.newPhoto({"id":3941139,"src":"Barn_Owl_Hunting_thumb.jpg","galleries_id":436862,"server_id":15,"link":"photo_3941139.html","width":130,"caption":"Barn Owl Hunting","height":93});
															thumbnails[3941205] = clik.newPhoto({"id":3941205,"src":"Buzzard_in_Rain_thumb.jpg","galleries_id":436862,"server_id":15,"link":"photo_3941205.html","width":130,"caption":"Buzzard in Rain","height":93});
															thumbnails[3944473] = clik.newPhoto({"id":3944473,"src":"Wheatear_1_thumb.jpg","galleries_id":216069,"server_id":15,"link":"photo_3944473.html","width":130,"caption":"Wheatear","height":93});
															thumbnails[3944477] = clik.newPhoto({"id":3944477,"src":"Wheatear_2_thumb.jpg","galleries_id":216069,"server_id":15,"link":"photo_3944477.html","width":130,"caption":"Wheatear","height":93});
															thumbnails[3999597] = clik.newPhoto({"id":3999597,"src":"Skylark_on_Wall_thumb.jpg","galleries_id":216069,"server_id":15,"link":"photo_3999597.html","width":87,"caption":"Skylark","height":130});
															thumbnails[3999646] = clik.newPhoto({"id":3999646,"src":"Baby_Rabbit_2_thumb.jpg","galleries_id":216070,"server_id":15,"link":"photo_3999646.html","width":114,"caption":"Baby Rabbit","height":160});
															thumbnails[4170110] = clik.newPhoto({"id":4170110,"src":"Puffin_thumb.jpg","galleries_id":224308,"server_id":15,"link":"photo_4170110.html","width":160,"caption":"Puffin","height":114});
															thumbnails[4177797] = clik.newPhoto({"id":4177797,"src":"Dipper_2_thumb.jpg","galleries_id":436862,"server_id":15,"link":"photo_4177797.html","width":130,"caption":"Dipper","height":93});
															thumbnails[4305757] = clik.newPhoto({"id":4305757,"src":"Curlew_in_Flight_thumb.jpg","galleries_id":216069,"server_id":15,"link":"photo_4305757.html","width":130,"caption":"Curlew in Flight","height":93});
															thumbnails[4305759] = clik.newPhoto({"id":4305759,"src":"Curlew_thumb.jpg","galleries_id":216069,"server_id":15,"link":"photo_4305759.html","width":130,"caption":"Curlew","height":93});
															thumbnails[4341948] = clik.newPhoto({"id":4341948,"src":"Lapwing_in_Evening_Light_thumb.JPG","galleries_id":216069,"server_id":15,"link":"photo_4341948.html","width":114,"caption":"Lapwing in Evening Light","height":160});
															thumbnails[4393585] = clik.newPhoto({"id":4393585,"src":"Lapwing_in_Rain_thumb.jpg","galleries_id":216069,"server_id":15,"link":"photo_4393585.html","width":130,"caption":"Lapwing in Rain","height":93});
															thumbnails[4890929] = clik.newPhoto({"id":4890929,"src":"Cock_Red_Grouse_on_Wall_thumb.jpg","galleries_id":216069,"server_id":15,"link":"photo_4890929.html","width":114,"caption":"Cock Red Grouse on Wall","height":160});
															thumbnails[5192117] = clik.newPhoto({"id":5192117,"src":"Highland_Stag_thumb.jpg","galleries_id":216070,"server_id":15,"link":"photo_5192117.html","width":114,"caption":"Highland Stag","height":160});
															thumbnails[5215735] = clik.newPhoto({"id":5215735,"src":"Autumn_Red_thumb.jpg","galleries_id":261975,"server_id":15,"link":"photo_5215735.html","width":160,"caption":"Autumn Red","height":114});
															thumbnails[5328699] = clik.newPhoto({"id":5328699,"src":"Red_Squirrel_Snow_on_Nose_thumb.jpg","galleries_id":216070,"server_id":15,"link":"photo_5328699.html","width":160,"caption":"Snowy Nose Red Squirrel","height":114});
															thumbnails[5328715] = clik.newPhoto({"id":5328715,"src":"Robin_in_Snow_thumb.jpg","galleries_id":436862,"server_id":15,"link":"photo_5328715.html","width":130,"caption":"Robin in Snow","height":87});
															thumbnails[5416096] = clik.newPhoto({"id":5416096,"src":"Ta_Daaa1_thumb.JPG","galleries_id":261975,"server_id":15,"link":"photo_5416096.html","width":114,"caption":"Ta Daaa!!","height":160});
															thumbnails[5723952] = clik.newPhoto({"id":5723952,"src":"Little_Owl_thumb.jpg","galleries_id":436862,"server_id":15,"link":"photo_5723952.html","width":92,"caption":"Little Owl on Field Barn","height":130});
															thumbnails[5877591] = clik.newPhoto({"id":5877591,"src":"Dog_Otter_thumb.jpg","galleries_id":216070,"server_id":15,"link":"photo_5877591.html","width":160,"caption":"Dog Otter","height":114});
															thumbnails[5877668] = clik.newPhoto({"id":5877668,"src":"First_Light_Call_thumb.jpg","galleries_id":261975,"server_id":15,"link":"photo_5877668.html","width":160,"caption":"First Light Call","height":114});
															thumbnails[5939877] = clik.newPhoto({"id":5939877,"src":"Summer_Hare_thumb.jpg","galleries_id":261975,"server_id":15,"link":"photo_5939877.html","width":160,"caption":"Summer Hare","height":114});
															thumbnails[5939900] = clik.newPhoto({"id":5939900,"src":"Greyhen_thumb.jpg","galleries_id":216069,"server_id":15,"link":"photo_5939900.html","width":160,"caption":"Greyhen (Black Grouse female)","height":114});
															thumbnails[6258835] = clik.newPhoto({"id":6258835,"src":"Snipe_thumb.jpg","galleries_id":216069,"server_id":15,"link":"photo_6258835.html","width":93,"caption":"Snipe on Wall","height":130});
															thumbnails[6258859] = clik.newPhoto({"id":6258859,"src":"Moorland_Jewel_thumb.jpg","galleries_id":216069,"server_id":15,"link":"photo_6258859.html","width":93,"caption":"Golden Plover","height":130});
															thumbnails[6258885] = clik.newPhoto({"id":6258885,"src":"Kites_in_Rainbow_thumb.jpg","galleries_id":261975,"server_id":15,"link":"photo_6258885.html","width":114,"caption":"Kites in Rainbow","height":160});
															thumbnails[6259073] = clik.newPhoto({"id":6259073,"src":"Yorkshire_Dales_Penguin_thumb.jpg","galleries_id":261975,"server_id":15,"link":"photo_6259073.html","width":114,"caption":"Yorkshire Dales 'Penguin'","height":160});
															thumbnails[6259256] = clik.newPhoto({"id":6259256,"src":"Highbrow_Grouse_thumb.jpg","galleries_id":261975,"server_id":15,"link":"photo_6259256.html","width":114,"caption":"Highbrow Grouse","height":160});
															thumbnails[8215209] = clik.newPhoto({"id":8215209,"src":"Puffin_717F3D5B-1EC9-D45B-1CD83CDA5C3857D5_thumb.JPG","galleries_id":224308,"server_id":15,"link":"photo_8215209.html","width":114,"caption":"Puffin Portrait","height":160});
															thumbnails[8215214] = clik.newPhoto({"id":8215214,"src":"Puffin_with_Sandeels_thumb.JPG","galleries_id":224308,"server_id":15,"link":"photo_8215214.html","width":114,"caption":"Puffin with Sandeels","height":160});
															thumbnails[8215219] = clik.newPhoto({"id":8215219,"src":"Puffin_Preening_thumb.JPG","galleries_id":224308,"server_id":15,"link":"photo_8215219.html","width":114,"caption":"Puffin Preening","height":160});
															thumbnails[8215224] = clik.newPhoto({"id":8215224,"src":"Razorbill_thumb.JPG","galleries_id":224308,"server_id":15,"link":"photo_8215224.html","width":114,"caption":"Razorbill","height":160});
															thumbnails[8559595] = clik.newPhoto({"id":8559595,"src":"Kingfisher_Landscape_thumb.JPG","galleries_id":436862,"server_id":15,"link":"photo_8559595.html","width":160,"caption":"Male Kingfisher","height":114});
															thumbnails[8630896] = clik.newPhoto({"id":8630896,"src":"Kingfisher_2_thumb.JPG","galleries_id":436862,"server_id":15,"link":"photo_8630896.html","width":114,"caption":"Male Kingfisher","height":160});
															thumbnails[8630898] = clik.newPhoto({"id":8630898,"src":"Kingfisher_3_thumb.JPG","galleries_id":436862,"server_id":15,"link":"photo_8630898.html","width":160,"caption":"Male Kingfisher","height":113});
															thumbnails[8631279] = clik.newPhoto({"id":8631279,"src":"Stoat_in_Heather_thumb.JPG","galleries_id":216070,"server_id":15,"link":"photo_8631279.html","width":114,"caption":"Stoat in Heather","height":160});
															thumbnails[8637055] = clik.newPhoto({"id":8637055,"src":"Misty_Stag_thumb.JPG","galleries_id":261975,"server_id":15,"link":"photo_8637055.html","width":160,"caption":"Misty Stag","height":114});
															thumbnails[4494895] = clik.newPhoto({"id":4494895,"src":"Morning_Glory_thumb.jpg","galleries_id":261975,"server_id":15,"link":"photo_4494895.html","width":160,"caption":"Morning Glory","height":114});
															thumbnails[8077545] = clik.newPhoto({"id":8077545,"src":"Waxwing_thumb.JPG","galleries_id":436862,"server_id":15,"link":"photo_8077545.html","width":114,"caption":"Waxwing with Rowan Berry","height":160});
															thumbnails[8197945] = clik.newPhoto({"id":8197945,"src":"Puffin_in_Sea_Campion1_thumb.JPG","galleries_id":261975,"server_id":15,"link":"photo_8197945.html","width":160,"caption":"Puffin in Sea Campion","height":114});
															thumbnails[8238135] = clik.newPhoto({"id":8238135,"src":"Stoat_thumb.JPG","galleries_id":216070,"server_id":15,"link":"photo_8238135.html","width":160,"caption":"Stoat","height":114});
															thumbnails[8267641] = clik.newPhoto({"id":8267641,"src":"Hen_Grouse_at_Last_Light_thumb.JPG","galleries_id":216069,"server_id":15,"link":"photo_8267641.html","width":114,"caption":"Hen Grouse at Last Light","height":160});
															thumbnails[8830726] = clik.newPhoto({"id":8830726,"src":"Christmas_Card_Pack12_thumb.jpg","galleries_id":456193,"server_id":15,"link":"photo_8830726.html","width":160,"caption":"Christmas Card 10 Pack","height":106});
															thumbnails[4697655] = clik.newPhoto({"id":4697655,"src":"Cock_Red_Grouse_in_Flowering_Heather_thumb.jpg","galleries_id":216069,"server_id":15,"link":"photo_4697655.html","width":160,"caption":"Cock Red Grouse in Flowering Heather","height":107});
															thumbnails[8077632] = clik.newPhoto({"id":8077632,"src":"Tawny_Owl_thumb.JPG","galleries_id":436862,"server_id":15,"link":"photo_8077632.html","width":114,"caption":"Tawny Owl in Elm Tree","height":160});
															thumbnails[8077674] = clik.newPhoto({"id":8077674,"src":"Pale_Tan_Rabbits_thumb.JPG","galleries_id":216070,"server_id":15,"link":"photo_8077674.html","width":160,"caption":"Pale Tan Wild Rabbits","height":114});
															thumbnails[8267753] = clik.newPhoto({"id":8267753,"src":"Cock_Grouse_in_Heather_thumb.JPG","galleries_id":216069,"server_id":15,"link":"photo_8267753.html","width":114,"caption":"Cock Grouse in Flowering Heather","height":160});
															thumbnails[8350831] = clik.newPhoto({"id":8350831,"src":"Grouse_Heather_thumb.JPG","galleries_id":216069,"server_id":15,"link":"photo_8350831.html","width":114,"caption":"Cock Grouse in Early Light","height":160});
															thumbnails[8830878] = clik.newPhoto({"id":8830878,"src":"Wild_Dales_Card_Range_thumb.jpg","galleries_id":456193,"server_id":15,"link":"photo_8830878.html","width":160,"caption":"Greetings Cards Packs","height":104});
															thumbnails[8267661] = clik.newPhoto({"id":8267661,"src":"Grouse_Silhouette_thumb.JPG","galleries_id":216069,"server_id":15,"link":"photo_8267661.html","width":160,"caption":"Red Grouse Silhouette","height":114});
															thumbnails[5416118] = clik.newPhoto({"id":5416118,"src":"Red_Squirrel_Classic_thumb.JPG","galleries_id":216070,"server_id":15,"link":"photo_5416118.html","width":114,"caption":"Red Squirrel in Snow, Classic Pose","height":160});
															thumbnails[5110968] = clik.newPhoto({"id":5110968,"src":"Stag_Roaring_thumb.jpg","galleries_id":216070,"server_id":15,"link":"photo_5110968.html","width":160,"caption":"Stag Roaring","height":114});
															thumbnails[3532353] = clik.newPhoto({"id":3532353,"src":"Red_Squirrel_Climbing_Tree_thumb.jpg","galleries_id":216070,"server_id":15,"link":"photo_3532353.html","width":114,"caption":"Red Squirrel climbing tree","height":160});
															thumbnails[5110945] = clik.newPhoto({"id":5110945,"src":"Goldfinch_thumb.jpg","galleries_id":436862,"server_id":15,"link":"photo_5110945.html","width":104,"caption":"Goldfinch","height":130});
															thumbnails[5111499] = clik.newPhoto({"id":5111499,"src":"Red_Kite_2_thumb.jpg","galleries_id":436862,"server_id":15,"link":"photo_5111499.html","width":130,"caption":"Red Kite","height":93});
															thumbnails[5723985] = clik.newPhoto({"id":5723985,"src":"Pheasant_Portrait_thumb.jpg","galleries_id":436862,"server_id":15,"link":"photo_5723985.html","width":93,"caption":"Cock Pheasant Portrait","height":130});
															thumbnails[8350822] = clik.newPhoto({"id":8350822,"src":"Grouse_Silhouette_00B5DE0C-1E4F-37DC-7194FAA99EC6C010_thumb.JPG","galleries_id":216069,"server_id":15,"link":"photo_8350822.html","width":160,"caption":"Red Grouse Silhouette 2","height":114});
															thumbnails[8650448] = clik.newPhoto({"id":8650448,"src":"1._Red_Kite_thumb.JPG","galleries_id":456193,"server_id":15,"link":"photo_8650448.html","width":160,"caption":"Red Kite","height":114});
															thumbnails[6258626] = clik.newPhoto({"id":6258626,"src":"Buzzard_Hovering_11_thumb.jpg","galleries_id":436862,"server_id":15,"link":"photo_6258626.html","width":130,"caption":"Buzzard Hovering","height":87});
															thumbnails[6258799] = clik.newPhoto({"id":6258799,"src":"Young_Otter_thumb.jpg","galleries_id":216070,"server_id":15,"link":"photo_6258799.html","width":160,"caption":"Young Otter","height":107});
															thumbnails[8350843] = clik.newPhoto({"id":8350843,"src":"Grouse_Heather_2_thumb.JPG","galleries_id":216069,"server_id":15,"link":"photo_8350843.html","width":114,"caption":"Grouse on Gold","height":160});
															thumbnails[4143449] = clik.newPhoto({"id":4143449,"src":"Heron_in_Flight1_thumb.jpg","galleries_id":436862,"server_id":15,"link":"photo_4143449.html","width":130,"caption":"Heron in Flight","height":93});
															thumbnails[4483097] = clik.newPhoto({"id":4483097,"src":"Red_Squirrel_Portrait_thumb.jpg","galleries_id":216070,"server_id":15,"link":"photo_4483097.html","width":160,"caption":"Red Squirrel Portrait","height":114});
															thumbnails[6258630] = clik.newPhoto({"id":6258630,"src":"Buzzard_Hovering_21_thumb.jpg","galleries_id":436862,"server_id":15,"link":"photo_6258630.html","width":130,"caption":"Buzzard Hovering","height":93});
															thumbnails[6258805] = clik.newPhoto({"id":6258805,"src":"Young_Otter_2_thumb.jpg","galleries_id":216070,"server_id":15,"link":"photo_6258805.html","width":160,"caption":"Otter Pup Crying","height":114});
															thumbnails[3532213] = clik.newPhoto({"id":3532213,"src":"Grey_Partridges_in_Snow_thumb.jpg","galleries_id":436862,"server_id":15,"link":"photo_3532213.html","width":130,"caption":"Grey Partridge in Snow","height":93});
															thumbnails[3976928] = clik.newPhoto({"id":3976928,"src":"Barn_Owl_on_Post_thumb.jpg","galleries_id":436862,"server_id":15,"link":"photo_3976928.html","width":130,"caption":"Barn Owl on Post","height":93});
															thumbnails[5215637] = clik.newPhoto({"id":5215637,"src":"Baby_Rabbit_Family_thumb.jpg","galleries_id":216070,"server_id":15,"link":"photo_5215637.html","width":160,"caption":"Baby Rabbit Family","height":114});
															thumbnails[4341939] = clik.newPhoto({"id":4341939,"src":"Common_Buzzard_thumb.jpg","galleries_id":436862,"server_id":15,"link":"photo_4341939.html","width":93,"caption":"Common Buzzard","height":130});
															thumbnails[5877569] = clik.newPhoto({"id":5877569,"src":"Morning_Hare_thumb.jpg","galleries_id":216070,"server_id":15,"link":"photo_5877569.html","width":114,"caption":"Morning Hare","height":160});
															thumbnails[5877561] = clik.newPhoto({"id":5877561,"src":"Backlit_Hare_thumb.jpg","galleries_id":216070,"server_id":15,"link":"photo_5877561.html","width":107,"caption":"Hare in Sunlight","height":160});
															thumbnails[3532164] = clik.newPhoto({"id":3532164,"src":"Red_Legged_Partridge_on_Frosty_Wall1_thumb.jpg","galleries_id":436862,"server_id":15,"link":"photo_3532164.html","width":93,"caption":"Red Legged Partridge on Frosty Wall","height":130});
															thumbnails[4178795] = clik.newPhoto({"id":4178795,"src":"Siskin_thumb.jpg","galleries_id":436862,"server_id":15,"link":"photo_4178795.html","width":93,"caption":"Siskin","height":130});
															thumbnails[5111500] = clik.newPhoto({"id":5111500,"src":"Red_Kite_thumb.jpg","galleries_id":436862,"server_id":15,"link":"photo_5111500.html","width":130,"caption":"Red Kite","height":93});
															thumbnails[5121962] = clik.newPhoto({"id":5121962,"src":"Grey_Seal_with_Pup_thumb.jpg","galleries_id":224308,"server_id":15,"link":"photo_5121962.html","width":160,"caption":"Grey Seal with Pup","height":107});
															thumbnails[5877556] = clik.newPhoto({"id":5877556,"src":"Lamb_Bleating_thumb.jpg","galleries_id":216070,"server_id":15,"link":"photo_5877556.html","width":160,"caption":"Lamb Bleating","height":107});
															thumbnails[8650462] = clik.newPhoto({"id":8650462,"src":"2._Red_Squirrel_Portrait_thumb.JPG","galleries_id":456193,"server_id":15,"link":"photo_8650462.html","width":160,"caption":"Red Squirrel Portrait","height":114});
															thumbnails[4143309] = clik.newPhoto({"id":4143309,"src":"Lamb_in_Grass_thumb.jpg","galleries_id":216070,"server_id":15,"link":"photo_4143309.html","width":160,"caption":"Lamb in Grass","height":114});
															thumbnails[5122069] = clik.newPhoto({"id":5122069,"src":"Grey_Seal_with_Pup_2_thumb.jpg","galleries_id":224308,"server_id":15,"link":"photo_5122069.html","width":160,"caption":"Grey Seal with Pup","height":107});
															thumbnails[8650466] = clik.newPhoto({"id":8650466,"src":"3._Red_Grouse_in_Flowering_Heather_thumb.JPG","galleries_id":456193,"server_id":15,"link":"photo_8650466.html","width":160,"caption":"Red Grouse in Flowering Heather","height":113});
															thumbnails[8650469] = clik.newPhoto({"id":8650469,"src":"4._Brown_Hare_Portrait_thumb.JPG","galleries_id":456193,"server_id":15,"link":"photo_8650469.html","width":113,"caption":"Brown Hare Portrait","height":160});
															thumbnails[8650473] = clik.newPhoto({"id":8650473,"src":"5._Curlew_in_Flight_thumb.JPG","galleries_id":456193,"server_id":15,"link":"photo_8650473.html","width":160,"caption":"Curlew in Flight","height":107});
															thumbnails[8650485] = clik.newPhoto({"id":8650485,"src":"6._Black_Grouse_thumb.JPG","galleries_id":456193,"server_id":15,"link":"photo_8650485.html","width":160,"caption":"Black Grouse","height":114});
															thumbnails[8650487] = clik.newPhoto({"id":8650487,"src":"7._Spring_Lamb_thumb.JPG","galleries_id":456193,"server_id":15,"link":"photo_8650487.html","width":160,"caption":"Spring Lamb","height":114});
															thumbnails[8650490] = clik.newPhoto({"id":8650490,"src":"8._Young_Rabbits_thumb.JPG","galleries_id":456193,"server_id":15,"link":"photo_8650490.html","width":160,"caption":"Young Rabbits","height":114});
															thumbnails[8650491] = clik.newPhoto({"id":8650491,"src":"9._Lapwing_thumb.JPG","galleries_id":456193,"server_id":15,"link":"photo_8650491.html","width":160,"caption":"Lapwing","height":114});
															thumbnails[8650493] = clik.newPhoto({"id":8650493,"src":"10._Little_Owl_on_Field_Barn_thumb.JPG","galleries_id":456193,"server_id":15,"link":"photo_8650493.html","width":114,"caption":"Little Owl on Field Barn","height":160});
															thumbnails[8650494] = clik.newPhoto({"id":8650494,"src":"11._Baby_Rabbit_Washing_thumb.JPG","galleries_id":456193,"server_id":15,"link":"photo_8650494.html","width":109,"caption":"Baby Rabbit Washing","height":160});
															thumbnails[8650497] = clik.newPhoto({"id":8650497,"src":"12._Robin_in_Snow_thumb.JPG","galleries_id":456193,"server_id":15,"link":"photo_8650497.html","width":160,"caption":"Robin in Snow","height":114});
															thumbnails[8650500] = clik.newPhoto({"id":8650500,"src":"13._Red_Grouse_on_Stone_Wall_thumb.JPG","galleries_id":456193,"server_id":15,"link":"photo_8650500.html","width":114,"caption":"Red Grouse on Dry Stone Wall","height":160});
															thumbnails[8650502] = clik.newPhoto({"id":8650502,"src":"14._Hare_in_Sunlight_thumb.JPG","galleries_id":456193,"server_id":15,"link":"photo_8650502.html","width":114,"caption":"Hare in Sunlight","height":160});
															thumbnails[8650506] = clik.newPhoto({"id":8650506,"src":"15._Red_Squirrel_in_Snowy_Tree_thumb.JPG","galleries_id":456193,"server_id":15,"link":"photo_8650506.html","width":160,"caption":"Red Squirrel in Snowy Tree","height":114});
															thumbnails[8650511] = clik.newPhoto({"id":8650511,"src":"16._Lamb_Bleating_thumb.JPG","galleries_id":456193,"server_id":15,"link":"photo_8650511.html","width":160,"caption":"Lamb Bleating","height":114});
															thumbnails[8650514] = clik.newPhoto({"id":8650514,"src":"17._Red_Squirrel_in_Snow_thumb.JPG","galleries_id":456193,"server_id":15,"link":"photo_8650514.html","width":114,"caption":"Red Squirrel in Snow","height":160});
															thumbnails[8650516] = clik.newPhoto({"id":8650516,"src":"18._Hen_Red_Grouse_in_Snow_thumb.JPG","galleries_id":456193,"server_id":15,"link":"photo_8650516.html","width":113,"caption":"Hen Red Grouse in Snow","height":160});
															thumbnails[8650518] = clik.newPhoto({"id":8650518,"src":"19._Waxwing_thumb.JPG","galleries_id":456193,"server_id":15,"link":"photo_8650518.html","width":114,"caption":"Waxwing","height":160});
															thumbnails[8650523] = clik.newPhoto({"id":8650523,"src":"20._Kingfisher_thumb.JPG","galleries_id":456193,"server_id":15,"link":"photo_8650523.html","width":160,"caption":"Kingfisher","height":113});
															thumbnails[8650527] = clik.newPhoto({"id":8650527,"src":"21._Stoat_in_Heather_thumb.JPG","galleries_id":456193,"server_id":15,"link":"photo_8650527.html","width":113,"caption":"Stoat in Heather","height":160});
															thumbnails[8650530] = clik.newPhoto({"id":8650530,"src":"22._Tawny_Owl_thumb.JPG","galleries_id":456193,"server_id":15,"link":"photo_8650530.html","width":113,"caption":"Tawny Owl","height":160});
															thumbnails[8650532] = clik.newPhoto({"id":8650532,"src":"23._Wild_Golden_Rabbits_thumb.JPG","galleries_id":456193,"server_id":15,"link":"photo_8650532.html","width":160,"caption":"Wild Golden Rabbits","height":113});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[261975] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Limited Editions","link":"gallery_261975.html","maxRecords":0.0,"photoIDs":[5215735.0,5416096.0,5877668.0,5939877.0,6258885.0,6259073.0,6259256.0,8637055.0,4494895.0,8197945.0],"skipIndex":0,"section_code":"gallery","featured_images":"5939877,5877668,5416096,4494895","id":261975,"singleSection":false});				  						galleries[216070] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Mammals","link":"gallery_216070.html","maxRecords":0.0,"photoIDs":[3602377.0,3999646.0,5192117.0,5328699.0,5877591.0,8631279.0,8238135.0,8077674.0,5416118.0,5110968.0,3532353.0,6258799.0,4483097.0,6258805.0,5215637.0,5877569.0,5877561.0,5877556.0,4143309.0],"skipIndex":0,"section_code":"gallery","featured_images":"8631279,8238135,8077674,6258805,6258799,5877591,5877569,5877561,5877556,5416118","id":216070,"singleSection":false});				  						galleries[436862] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Lowland Birds","link":"gallery_436862.html","maxRecords":0.0,"photoIDs":[3602533.0,3941139.0,3941205.0,4177797.0,5328715.0,5723952.0,8559595.0,8630896.0,8630898.0,8077545.0,8077632.0,5110945.0,5111499.0,5723985.0,6258626.0,4143449.0,6258630.0,3532213.0,3976928.0,4341939.0,3532164.0,4178795.0,5111500.0],"skipIndex":0,"section_code":"gallery","featured_images":"8630898,8630896,8559595,8077632,8077545,6258630,6258626,5723985,5723952,5328715","id":436862,"singleSection":false});				  						galleries[216069] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Upland Birds","link":"gallery_216069.html","maxRecords":0.0,"photoIDs":[3532348.0,3532350.0,3696050.0,3737626.0,3757705.0,3762139.0,3944473.0,3944477.0,3999597.0,4305757.0,4305759.0,4341948.0,4393585.0,4890929.0,5939900.0,6258835.0,6258859.0,8267641.0,4697655.0,8267753.0,8350831.0,8267661.0,8350822.0,8350843.0],"skipIndex":0,"section_code":"gallery","featured_images":"8350843,8350831,8350822,8267753,8267661,8267641,6258859,6258835,5939900,4890929","id":216069,"singleSection":false});				  						galleries[224308] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Coastal","link":"gallery_224308.html","maxRecords":0.0,"photoIDs":[4170110.0,8215209.0,8215214.0,8215219.0,8215224.0,5121962.0,5122069.0],"skipIndex":0,"section_code":"gallery","featured_images":"8215224,8215219,8215214,8215209,5122069,5121962,4170110","id":224308,"singleSection":false});				  						galleries[456193] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Greetings Cards","link":"gallery_456193.html","maxRecords":0.0,"photoIDs":[8830726.0,8830878.0,8650448.0,8650462.0,8650466.0,8650469.0,8650473.0,8650485.0,8650487.0,8650490.0,8650491.0,8650493.0,8650494.0,8650497.0,8650500.0,8650502.0,8650506.0,8650511.0,8650514.0,8650516.0,8650518.0,8650523.0,8650527.0,8650530.0,8650532.0],"skipIndex":0,"section_code":"gallery","featured_images":8830726,"id":456193,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8637055,8559595,5939877,5877668,5328699,4494895,5111500';
imageSets[2] = '5939877,5877668,5416096,4494895';
imageSets[3] = '8650532';
imageSets[245743] = '8830878,8650448,8650462,8650466,8650469,8650473,8650485,8650487,8650490,8650491,8650493,8650494,8650497,8650500,8650502,8650506,8650511,8650514,8650516,8650518,8650523,8650527,8650530,8650532';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/smphillpotts/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/smphillpotts/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/smphillpotts/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/smphillpotts/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/smphillpotts/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/smphillpotts/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/smphillpotts/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/smphillpotts/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/smphillpotts/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/smphillpotts/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/smphillpotts/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/smphillpotts/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/smphillpotts/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/smphillpotts/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/smphillpotts/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/smphillpotts/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/smphillpotts/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/smphillpotts/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/smphillpotts/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/smphillpotts/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/smphillpotts/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/smphillpotts/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/smphillpotts/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/smphillpotts/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/smphillpotts/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/smphillpotts/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/smphillpotts/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 = 'Wild Dales Photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
		 									temp += '<select class="paymentlink" name="payment_options_id" onchange="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
		else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
											temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="SMPHILLPOTTS">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

