window.thumbnails = {};
															thumbnails[1763188] = clik.newPhoto({"id":1763188,"src":"Honeybee_thumb.jpg","galleries_id":117532,"server_id":1,"link":"photo_1763188.html","width":130,"caption":"Honey Bee","height":133});
															thumbnails[1754573] = clik.newPhoto({"id":1754573,"src":"TheTraveller1_thumb.jpg","galleries_id":117234,"server_id":1,"link":"photo_1754573.html","width":130,"caption":"The Traveller 1","height":201});
															thumbnails[7146931] = clik.newPhoto({"id":7146931,"src":"peacock_A8D8660E-1EC9-D45B-1C5586A6BA3771A1_thumb.jpg","galleries_id":386277,"server_id":1,"link":"photo_7146931.html","width":130,"caption":"Peacock","height":189});
															thumbnails[8471326] = clik.newPhoto({"id":8471326,"src":"migration1copy_thumb.jpg","galleries_id":438558,"server_id":1,"link":"photo_8471326.html","width":130,"caption":"","height":296});
															thumbnails[8928948] = clik.newPhoto({"id":8928948,"src":"Lion_thumb.JPG","galleries_id":469660,"server_id":1,"link":"photo_8928948.html","width":130,"caption":"Lion","height":134});
															thumbnails[1754568] = clik.newPhoto({"id":1754568,"src":"TheShellCollector_thumb.jpg","galleries_id":117234,"server_id":1,"link":"photo_1754568.html","width":130,"caption":"The Shell Collector","height":188});
															thumbnails[3999397] = clik.newPhoto({"id":3999397,"src":"Rookery_thumb.jpg","galleries_id":386277,"server_id":1,"link":"photo_3999397.html","width":130,"caption":"Rookery","height":190});
															thumbnails[8471328] = clik.newPhoto({"id":8471328,"src":"migration2copy_thumb.jpg","galleries_id":438558,"server_id":1,"link":"photo_8471328.html","width":130,"caption":"","height":297});
															thumbnails[8928810] = clik.newPhoto({"id":8928810,"src":"Deer_F79FB470-1EC9-D45B-1C887063FD6D1C75_thumb.JPG","galleries_id":469660,"server_id":1,"link":"photo_8928810.html","width":130,"caption":"Deer","height":134});
															thumbnails[1754575] = clik.newPhoto({"id":1754575,"src":"TheTraveller2_thumb.jpg","galleries_id":117234,"server_id":1,"link":"photo_1754575.html","width":130,"caption":"The Traveller 2","height":185});
															thumbnails[7146948] = clik.newPhoto({"id":7146948,"src":"Raven_thumb.jpg","galleries_id":386277,"server_id":1,"link":"photo_7146948.html","width":130,"caption":"Raven","height":191});
															thumbnails[8471335] = clik.newPhoto({"id":8471335,"src":"migration3copy_thumb.jpg","galleries_id":438558,"server_id":1,"link":"photo_8471335.html","width":130,"caption":"","height":286});
															thumbnails[8928879] = clik.newPhoto({"id":8928879,"src":"Horse_thumb.JPG","galleries_id":469660,"server_id":1,"link":"photo_8928879.html","width":130,"caption":"Horse","height":133});
															thumbnails[1754432] = clik.newPhoto({"id":1754432,"src":"TheJourney_thumb.jpg","galleries_id":117234,"server_id":1,"link":"photo_1754432.html","width":130,"caption":"The Journey","height":77});
															thumbnails[4089131] = clik.newPhoto({"id":4089131,"src":"Moon-Rising_thumb.jpg","galleries_id":386277,"server_id":1,"link":"photo_4089131.html","width":130,"caption":"Moon Rising","height":218});
															thumbnails[8471342] = clik.newPhoto({"id":8471342,"src":"migration4copy_thumb.jpg","galleries_id":438558,"server_id":1,"link":"photo_8471342.html","width":130,"caption":"","height":287});
															thumbnails[8928956] = clik.newPhoto({"id":8928956,"src":"stag_thumb.JPG","galleries_id":469660,"server_id":1,"link":"photo_8928956.html","width":130,"caption":"Stag","height":132});
															thumbnails[4089104] = clik.newPhoto({"id":4089104,"src":"Snowgeese_thumb.jpg","galleries_id":117234,"server_id":1,"link":"photo_4089104.html","width":130,"caption":"Snowgeese","height":92});
															thumbnails[4089115] = clik.newPhoto({"id":4089115,"src":"Summer-Evening_thumb.jpg","galleries_id":386277,"server_id":1,"link":"photo_4089115.html","width":130,"caption":"Summer Evening","height":216});
															thumbnails[8471351] = clik.newPhoto({"id":8471351,"src":"migration5copy_thumb.jpg","galleries_id":438558,"server_id":1,"link":"photo_8471351.html","width":130,"caption":"","height":287});
															thumbnails[8928809] = clik.newPhoto({"id":8928809,"src":"Antelope_thumb.JPG","galleries_id":469660,"server_id":1,"link":"photo_8928809.html","width":130,"caption":"Antelope","height":132});
															thumbnails[1754527] = clik.newPhoto({"id":1754527,"src":"Calypso_thumb.jpg","galleries_id":117234,"server_id":1,"link":"photo_1754527.html","width":130,"caption":"Calypso","height":83});
															thumbnails[2865710] = clik.newPhoto({"id":2865710,"src":"Swift-as-a-Hare1_thumb.jpg","galleries_id":386277,"server_id":1,"link":"photo_2865710.html","width":130,"caption":"Swift as a Hare","height":193});
															thumbnails[8471352] = clik.newPhoto({"id":8471352,"src":"migration6copy_thumb.jpg","galleries_id":438558,"server_id":1,"link":"photo_8471352.html","width":130,"caption":"","height":284});
															thumbnails[8928952] = clik.newPhoto({"id":8928952,"src":"Lioness_thumb.JPG","galleries_id":469660,"server_id":1,"link":"photo_8928952.html","width":130,"caption":"Lioness","height":132});
															thumbnails[1754516] = clik.newPhoto({"id":1754516,"src":"Buddha_thumb.jpg","galleries_id":117234,"server_id":1,"link":"photo_1754516.html","width":130,"caption":"Buddha","height":157});
															thumbnails[5119653] = clik.newPhoto({"id":5119653,"src":"protected1_thumb.jpg","galleries_id":386277,"server_id":1,"link":"photo_5119653.html","width":130,"caption":"Protected","height":112});
															thumbnails[8471353] = clik.newPhoto({"id":8471353,"src":"migration7copy_thumb.jpg","galleries_id":438558,"server_id":1,"link":"photo_8471353.html","width":130,"caption":"","height":285});
															thumbnails[8928967] = clik.newPhoto({"id":8928967,"src":"Found_Objects_I_thumb.JPG","galleries_id":469660,"server_id":1,"link":"photo_8928967.html","width":130,"caption":"Found Objects 1","height":173});
															thumbnails[1754428] = clik.newPhoto({"id":1754428,"src":"Persephone_thumb.jpg","galleries_id":117234,"server_id":1,"link":"photo_1754428.html","width":130,"caption":"Persephone","height":155});
															thumbnails[2625092] = clik.newPhoto({"id":2625092,"src":"Two-for-Joy_thumb.jpg","galleries_id":386277,"server_id":1,"link":"photo_2625092.html","width":130,"caption":"Two for Joy","height":116});
															thumbnails[8470724] = clik.newPhoto({"id":8470724,"src":"migration_thumb.jpg","galleries_id":438558,"server_id":1,"link":"photo_8470724.html","width":130,"caption":"","height":37});
															thumbnails[8928972] = clik.newPhoto({"id":8928972,"src":"Found_Objects_II_thumb.JPG","galleries_id":469660,"server_id":1,"link":"photo_8928972.html","width":130,"caption":"Found Objects II","height":164});
															thumbnails[1754532] = clik.newPhoto({"id":1754532,"src":"Dreamer_thumb.jpg","galleries_id":117234,"server_id":1,"link":"photo_1754532.html","width":130,"caption":"The Dreamer","height":170});
															thumbnails[7255151] = clik.newPhoto({"id":7255151,"src":"The-Return_5210C8FB-24E8-5EC4-4FAB4E16F8173110_thumb.jpg","galleries_id":386277,"server_id":1,"link":"photo_7255151.html","width":130,"caption":"The Return","height":120});
															thumbnails[8470725] = clik.newPhoto({"id":8470725,"src":"collection2_thumb.jpg","galleries_id":438558,"server_id":1,"link":"photo_8470725.html","width":130,"caption":"","height":50});
															thumbnails[8928975] = clik.newPhoto({"id":8928975,"src":"Found_Objects_III_thumb.JPG","galleries_id":469660,"server_id":1,"link":"photo_8928975.html","width":130,"caption":"Found Objects III","height":168});
															thumbnails[1753931] = clik.newPhoto({"id":1753931,"src":"FallenAngel2_thumb.jpg","galleries_id":117529,"server_id":1,"link":"photo_1753931.html","width":130,"caption":"Fallen Angel II","height":172});
															thumbnails[1754322] = clik.newPhoto({"id":1754322,"src":"TheSkulker_thumb.jpg","galleries_id":117533,"server_id":1,"link":"photo_1754322.html","width":130,"caption":"The Skulker","height":90});
															thumbnails[1754547] = clik.newPhoto({"id":1754547,"src":"Fragments_thumb.jpg","galleries_id":117234,"server_id":1,"link":"photo_1754547.html","width":130,"caption":"Fragments","height":188});
															thumbnails[7255137] = clik.newPhoto({"id":7255137,"src":"The_Meeting_Place_thumb.jpg","galleries_id":386277,"server_id":1,"link":"photo_7255137.html","width":130,"caption":"The Meeting Place","height":169});
															thumbnails[8928977] = clik.newPhoto({"id":8928977,"src":"Hack_Silver_thumb.JPG","galleries_id":469660,"server_id":1,"link":"photo_8928977.html","width":130,"caption":"Hack Silver","height":205});
															thumbnails[1754515] = clik.newPhoto({"id":1754515,"src":"Apsara2_thumb.jpg","galleries_id":117234,"server_id":1,"link":"photo_1754515.html","width":130,"caption":"Apsara 2","height":266});
															thumbnails[7255158] = clik.newPhoto({"id":7255158,"src":"Window_Fisher_Hall_thumb.jpg","galleries_id":386277,"server_id":1,"link":"photo_7255158.html","width":130,"caption":"Window, Fisher Hall","height":204});
															thumbnails[8929091] = clik.newPhoto({"id":8929091,"src":"Hiding_the_Hoard_thumb.JPG","galleries_id":469660,"server_id":1,"link":"photo_8929091.html","width":130,"caption":"Hiding the Hoard","height":178});
															thumbnails[1754659] = clik.newPhoto({"id":1754659,"src":"Windhorse_thumb.jpg","galleries_id":117234,"server_id":1,"link":"photo_1754659.html","width":130,"caption":"Windhorse","height":229});
															thumbnails[7146945] = clik.newPhoto({"id":7146945,"src":"Pollarded_Limes_thumb.jpg","galleries_id":386277,"server_id":1,"link":"photo_7146945.html","width":130,"caption":"Pollarded Limes","height":184});
															thumbnails[8928987] = clik.newPhoto({"id":8928987,"src":"Viking_Traders_thumb.JPG","galleries_id":469660,"server_id":1,"link":"photo_8928987.html","width":130,"caption":"Viking Traders","height":203});
															thumbnails[1754553] = clik.newPhoto({"id":1754553,"src":"Happiness_thumb.jpg","galleries_id":117234,"server_id":1,"link":"photo_1754553.html","width":130,"caption":"Happiness","height":186});
															thumbnails[7146835] = clik.newPhoto({"id":7146835,"src":"Curlew_thumb.jpg","galleries_id":386277,"server_id":1,"link":"photo_7146835.html","width":130,"caption":"Curlew","height":191});
															thumbnails[8928652] = clik.newPhoto({"id":8928652,"src":"A_Treasury_of_Coins_thumb.JPG","galleries_id":469660,"server_id":1,"link":"photo_8928652.html","width":130,"caption":"A Treasury of Coins","height":127});
															thumbnails[1754513] = clik.newPhoto({"id":1754513,"src":"Apsara1_thumb.jpg","galleries_id":117234,"server_id":1,"link":"photo_1754513.html","width":130,"caption":"Apsara 1","height":191});
															thumbnails[7146809] = clik.newPhoto({"id":7146809,"src":"barn-owl_thumb.jpg","galleries_id":386277,"server_id":1,"link":"photo_7146809.html","width":130,"caption":"Barn Owl","height":131});
															thumbnails[8928717] = clik.newPhoto({"id":8928717,"src":"Burying_the_Treasure_thumb.JPG","galleries_id":469660,"server_id":1,"link":"photo_8928717.html","width":130,"caption":"Burying the Teasure","height":116});
															thumbnails[1754560] = clik.newPhoto({"id":1754560,"src":"Nightfall_thumb.jpg","galleries_id":117234,"server_id":1,"link":"photo_1754560.html","width":130,"caption":"Nightfall","height":173});
															thumbnails[5940251] = clik.newPhoto({"id":5940251,"src":"Lunaria_thumb.jpg","galleries_id":386277,"server_id":1,"link":"photo_5940251.html","width":130,"caption":"The Woodcat","height":185});
															thumbnails[8929120] = clik.newPhoto({"id":8929120,"src":"Trace_thumb.jpg","galleries_id":469660,"server_id":1,"link":"photo_8929120.html","width":130,"caption":"Trace","height":119});
															thumbnails[1754416] = clik.newPhoto({"id":1754416,"src":"FirstSun_thumb.jpg","galleries_id":117234,"server_id":1,"link":"photo_1754416.html","width":130,"caption":"First Sun","height":183});
															thumbnails[7146796] = clik.newPhoto({"id":7146796,"src":"a_flight_of_swallows_thumb.jpg","galleries_id":386277,"server_id":1,"link":"photo_7146796.html","width":130,"caption":"A Flight of Swallows","height":98});
															thumbnails[8928963] = clik.newPhoto({"id":8928963,"src":"Beneath_the_Surface2_thumb.jpg","galleries_id":469660,"server_id":1,"link":"photo_8928963.html","width":130,"caption":"Beneath the Surface","height":89});
															thumbnails[3999403] = clik.newPhoto({"id":3999403,"src":"Dragonfly_thumb.jpg","galleries_id":117234,"server_id":1,"link":"photo_3999403.html","width":130,"caption":"The Way","height":185});
															thumbnails[7146671] = clik.newPhoto({"id":7146671,"src":"upstream_thumb.jpg","galleries_id":386277,"server_id":1,"link":"photo_7146671.html","width":130,"caption":"Upstream","height":82});
															thumbnails[8928759] = clik.newPhoto({"id":8928759,"src":"Conserving_the_Hoard_thumb.JPG","galleries_id":469660,"server_id":1,"link":"photo_8928759.html","width":130,"caption":"Conserving the Hoard","height":173});
															thumbnails[2441343] = clik.newPhoto({"id":2441343,"src":"Almost-home_thumb.jpg","galleries_id":117234,"server_id":1,"link":"photo_2441343.html","width":130,"caption":"Almost Home","height":166});
															thumbnails[2441384] = clik.newPhoto({"id":2441384,"src":"the-ones-that-got-away_thumb.jpg","galleries_id":386277,"server_id":1,"link":"photo_2441384.html","width":130,"caption":"The Ones That Got Away","height":112});
															thumbnails[8929109] = clik.newPhoto({"id":8929109,"src":"fragments_of_the_past_thumb.JPG","galleries_id":469660,"server_id":1,"link":"photo_8929109.html","width":130,"caption":"Fragments of the Past","height":131});
															thumbnails[1754657] = clik.newPhoto({"id":1754657,"src":"Whalesong_thumb.jpg","galleries_id":117234,"server_id":1,"link":"photo_1754657.html","width":130,"caption":"Whalesong","height":203});
															thumbnails[7146840] = clik.newPhoto({"id":7146840,"src":"Equus_thumb.jpg","galleries_id":386277,"server_id":1,"link":"photo_7146840.html","width":130,"caption":"Equus","height":98});
															thumbnails[8928708] = clik.newPhoto({"id":8928708,"src":"Trade_Routes_thumb.JPG","galleries_id":469660,"server_id":1,"link":"photo_8928708.html","width":130,"caption":"Trade Routes","height":307});
															thumbnails[1753900] = clik.newPhoto({"id":1753900,"src":"CrowTree_thumb.jpg","galleries_id":117529,"server_id":1,"link":"photo_1753900.html","width":130,"caption":"Crow Tree","height":166});
															thumbnails[1754646] = clik.newPhoto({"id":1754646,"src":"Turtle1_thumb.jpg","galleries_id":117234,"server_id":1,"link":"photo_1754646.html","width":130,"caption":"Turtle 1","height":133});
															thumbnails[1771008] = clik.newPhoto({"id":1771008,"src":"friskylegs_thumb.jpg","galleries_id":117533,"server_id":1,"link":"photo_1771008.html","width":130,"caption":"Frisky Legs","height":91});
															thumbnails[7146803] = clik.newPhoto({"id":7146803,"src":"Autumn_Field_thumb.jpg","galleries_id":386277,"server_id":1,"link":"photo_7146803.html","width":130,"caption":"Autumn Field","height":93});
															thumbnails[7255142] = clik.newPhoto({"id":7255142,"src":"The_Pond_thumb.jpg","galleries_id":386277,"server_id":1,"link":"photo_7255142.html","width":130,"caption":"The Pond","height":82});
															thumbnails[8928676] = clik.newPhoto({"id":8928676,"src":"Hidden_in_the_Vale_thumb.JPG","galleries_id":469660,"server_id":1,"link":"photo_8928676.html","width":130,"caption":"Hidden in the Vale","height":306});
															thumbnails[1754653] = clik.newPhoto({"id":1754653,"src":"Turtle2_thumb.jpg","galleries_id":117234,"server_id":1,"link":"photo_1754653.html","width":130,"caption":"Turtle 2","height":157});
															thumbnails[8928779] = clik.newPhoto({"id":8928779,"src":"Mapping_the_Seas_thumb.JPG","galleries_id":469660,"server_id":1,"link":"photo_8928779.html","width":130,"caption":"Mapping the Seas","height":724});
															thumbnails[1754535] = clik.newPhoto({"id":1754535,"src":"ElCamino_thumb.jpg","galleries_id":117234,"server_id":1,"link":"photo_1754535.html","width":130,"caption":"El Camino","height":390});
															thumbnails[7146847] = clik.newPhoto({"id":7146847,"src":"Hebrides_thumb.jpg","galleries_id":386277,"server_id":1,"link":"photo_7146847.html","width":130,"caption":"Hebrides","height":101});
															thumbnails[6182110] = clik.newPhoto({"id":6182110,"src":"Jackdaw_thumb.jpg","galleries_id":386277,"server_id":1,"link":"photo_6182110.html","width":130,"caption":"Jackdaw","height":127});
															thumbnails[7255279] = clik.newPhoto({"id":7255279,"src":"West_Coast_View_thumb.jpg","galleries_id":386277,"server_id":1,"link":"photo_7255279.html","width":130,"caption":"","height":79});
															thumbnails[2441351] = clik.newPhoto({"id":2441351,"src":"SeaFever_thumb.jpg","galleries_id":386277,"server_id":1,"link":"photo_2441351.html","width":130,"caption":"Sea Fever","height":180});
															thumbnails[1754435] = clik.newPhoto({"id":1754435,"src":"ThePageantofSummer_thumb.jpg","galleries_id":386277,"server_id":1,"link":"photo_1754435.html","width":130,"caption":"The Pageant of Summer","height":158});
															thumbnails[2441364] = clik.newPhoto({"id":2441364,"src":"The-Cry-of-Gulls_thumb.jpg","galleries_id":386277,"server_id":1,"link":"photo_2441364.html","width":130,"caption":"The Cry of Gulls","height":201});
															thumbnails[2625096] = clik.newPhoto({"id":2625096,"src":"The-Visitor_thumb.jpg","galleries_id":386277,"server_id":1,"link":"photo_2625096.html","width":130,"caption":"The Visitor","height":89});
															thumbnails[1754481] = clik.newPhoto({"id":1754481,"src":"RacingtheWind2_thumb.jpg","galleries_id":386277,"server_id":1,"link":"photo_1754481.html","width":130,"caption":"Racing the Wind II","height":82});
															thumbnails[1753890] = clik.newPhoto({"id":1753890,"src":"Carmargue_thumb.jpg","galleries_id":117529,"server_id":1,"link":"photo_1753890.html","width":130,"caption":"Camargue","height":179});
															thumbnails[1754489] = clik.newPhoto({"id":1754489,"src":"Stubblestags_thumb.jpg","galleries_id":386277,"server_id":1,"link":"photo_1754489.html","width":130,"caption":"Stubble Stags","height":81});
															thumbnails[1771013] = clik.newPhoto({"id":1771013,"src":"furzecat_thumb.jpg","galleries_id":117533,"server_id":1,"link":"photo_1771013.html","width":130,"caption":"Furze Cat","height":94});
															thumbnails[7146951] = clik.newPhoto({"id":7146951,"src":"Summer_Song_thumb.jpg","galleries_id":386277,"server_id":1,"link":"photo_7146951.html","width":130,"caption":"Summer Song","height":42});
															thumbnails[7255126] = clik.newPhoto({"id":7255126,"src":"The-Ascent_thumb.jpg","galleries_id":386277,"server_id":1,"link":"photo_7255126.html","width":130,"caption":"The Ascent","height":268});
															thumbnails[1754160] = clik.newPhoto({"id":1754160,"src":"Skyrack_thumb.jpg","galleries_id":117529,"server_id":1,"link":"photo_1754160.html","width":130,"caption":"Sky Rack","height":137});
															thumbnails[1771020] = clik.newPhoto({"id":1771020,"src":"ringthehills_thumb.jpg","galleries_id":117533,"server_id":1,"link":"photo_1771020.html","width":130,"caption":"Ring the Hills","height":94});
															thumbnails[1754167] = clik.newPhoto({"id":1754167,"src":"The Messenger_thumb.JPG","galleries_id":117529,"server_id":1,"link":"photo_1754167.html","width":130,"caption":"The Messenger","height":129});
															thumbnails[1771018] = clik.newPhoto({"id":1771018,"src":"hugtheground_thumb.jpg","galleries_id":117533,"server_id":1,"link":"photo_1771018.html","width":130,"caption":"Hug the Ground","height":93});
															thumbnails[1754289] = clik.newPhoto({"id":1754289,"src":"TreeOfLife_thumb.jpg","galleries_id":117529,"server_id":1,"link":"photo_1754289.html","width":130,"caption":"The Tree of Life","height":132});
															thumbnails[1771019] = clik.newPhoto({"id":1771019,"src":"racethewind_thumb.jpg","galleries_id":117533,"server_id":1,"link":"photo_1771019.html","width":130,"caption":"Race the Wind","height":93});
															thumbnails[1754044] = clik.newPhoto({"id":1754044,"src":"oldappletree_thumb.jpg","galleries_id":117529,"server_id":1,"link":"photo_1754044.html","width":130,"caption":"The Old Apple Tree","height":109});
															thumbnails[1771017] = clik.newPhoto({"id":1771017,"src":"glanceaside_thumb.jpg","galleries_id":117533,"server_id":1,"link":"photo_1771017.html","width":130,"caption":"The Glance Aside","height":175});
															thumbnails[1754106] = clik.newPhoto({"id":1754106,"src":"sabdh_thumb.jpg","galleries_id":117529,"server_id":1,"link":"photo_1754106.html","width":130,"caption":"Sadbh","height":109});
															thumbnails[1771022] = clik.newPhoto({"id":1771022,"src":"sitterstill_thumb.jpg","galleries_id":117533,"server_id":1,"link":"photo_1771022.html","width":130,"caption":"The Sitter Still","height":179});
															thumbnails[1754233] = clik.newPhoto({"id":1754233,"src":"Toad_thumb.jpg","galleries_id":117529,"server_id":1,"link":"photo_1754233.html","width":130,"caption":"Toad","height":106});
															thumbnails[1771023] = clik.newPhoto({"id":1771023,"src":"stagsofthestubble_thumb.jpg","galleries_id":117533,"server_id":1,"link":"photo_1771023.html","width":130,"caption":"Stags of the Stubble","height":178});
															thumbnails[1754202] = clik.newPhoto({"id":1754202,"src":"TheHunter_thumb.jpg","galleries_id":117529,"server_id":1,"link":"photo_1754202.html","width":130,"caption":"The Hunter","height":126});
															thumbnails[1771024] = clik.newPhoto({"id":1771024,"src":"thelurker_thumb.jpg","galleries_id":117533,"server_id":1,"link":"photo_1771024.html","width":130,"caption":"The Lurker","height":175});
															thumbnails[1754050] = clik.newPhoto({"id":1754050,"src":"Peacock_thumb.jpg","galleries_id":117529,"server_id":1,"link":"photo_1754050.html","width":130,"caption":"Peacock","height":127});
															thumbnails[1754441] = clik.newPhoto({"id":1754441,"src":"TheSecret_thumb.jpg","galleries_id":117532,"server_id":1,"link":"photo_1754441.html","width":130,"caption":"The Secret","height":159});
															thumbnails[1771007] = clik.newPhoto({"id":1771007,"src":"earthsitter_thumb.jpg","galleries_id":117533,"server_id":1,"link":"photo_1771007.html","width":130,"caption":"The Earth Sitter","height":185});
															thumbnails[1753909] = clik.newPhoto({"id":1753909,"src":"Eiderduck_thumb.jpg","galleries_id":117529,"server_id":1,"link":"photo_1753909.html","width":130,"caption":"Eider Duck","height":127});
															thumbnails[1754323] = clik.newPhoto({"id":1754323,"src":"TheSuddenStart_thumb.jpg","galleries_id":117533,"server_id":1,"link":"photo_1754323.html","width":130,"caption":"The Sudden Start","height":176});
															thumbnails[1754594] = clik.newPhoto({"id":1754594,"src":"Timeandspace_thumb.jpg","galleries_id":117532,"server_id":1,"link":"photo_1754594.html","width":130,"caption":"Time & Space","height":182});
															thumbnails[1753966] = clik.newPhoto({"id":1753966,"src":"moonshadows_thumb.jpg","galleries_id":117529,"server_id":1,"link":"photo_1753966.html","width":130,"caption":"Moon Shadows","height":98});
															thumbnails[1754470] = clik.newPhoto({"id":1754470,"src":"racingthewind_thumb.jpg","galleries_id":117532,"server_id":1,"link":"photo_1754470.html","width":130,"caption":"Racing the Wind","height":82});
															thumbnails[1754103] = clik.newPhoto({"id":1754103,"src":"RavensInSnowdonia_thumb.jpg","galleries_id":117529,"server_id":1,"link":"photo_1754103.html","width":130,"caption":"Ravens in Snowdonia","height":75});
															thumbnails[1754108] = clik.newPhoto({"id":1754108,"src":"SeaDog_thumb.jpg","galleries_id":117529,"server_id":1,"link":"photo_1754108.html","width":130,"caption":"Sea Dog","height":85});
															thumbnails[1754027] = clik.newPhoto({"id":1754027,"src":"Nishikigoi_thumb.jpg","galleries_id":117529,"server_id":1,"link":"photo_1754027.html","width":130,"caption":"Nishikigoi","height":289});
															thumbnails[1753880] = clik.newPhoto({"id":1753880,"src":"BrimhamThorn_thumb.jpg","galleries_id":117529,"server_id":1,"link":"photo_1753880.html","width":130,"caption":"Brimham Thorn","height":214});
															thumbnails[1753946] = clik.newPhoto({"id":1753946,"src":"Ghost_thumb.jpg","galleries_id":117529,"server_id":1,"link":"photo_1753946.html","width":130,"caption":"Ghost","height":233});
															thumbnails[1753921] = clik.newPhoto({"id":1753921,"src":"Epona_thumb.jpg","galleries_id":117529,"server_id":1,"link":"photo_1753921.html","width":130,"caption":"Epona","height":41});
															thumbnails[1753957] = clik.newPhoto({"id":1753957,"src":"HighlandWinter_thumb.jpg","galleries_id":117529,"server_id":1,"link":"photo_1753957.html","width":130,"caption":"Highland Winter","height":61});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[438558] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Drawing on the Past","link":"gallery_438558.html","maxRecords":0.0,"photoIDs":[8471326.0,8471328.0,8471335.0,8471342.0,8471351.0,8471352.0,8471353.0,8470724.0,8470725.0],"skipIndex":0,"section_code":"gallery","featured_images":"8471353,8471352,8471351,8471342,8471335,8471328,8471326,8470725,8470724","id":438558,"singleSection":false});				  						galleries[386277] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Home","link":"gallery_386277.html","maxRecords":0.0,"photoIDs":[7146931.0,3999397.0,7146948.0,4089131.0,4089115.0,2865710.0,5119653.0,2625092.0,7255151.0,7255137.0,7255158.0,7146945.0,7146835.0,7146809.0,5940251.0,7146796.0,7146671.0,2441384.0,7146840.0,7146803.0,7255142.0,7146847.0,6182110.0,7255279.0,2441351.0,1754435.0,2441364.0,2625096.0,1754481.0,1754489.0,7146951.0,7255126.0],"skipIndex":0,"section_code":"gallery","featured_images":"7255279,7255158,7255151,7255142,7255137,7255126,7146951,7146948,7146945,7146931","id":386277,"singleSection":false});				  						galleries[469660] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Vale of York Viking Hoard","link":"gallery_469660.html","maxRecords":0.0,"photoIDs":[8928948.0,8928810.0,8928879.0,8928956.0,8928809.0,8928952.0,8928967.0,8928972.0,8928975.0,8928977.0,8929091.0,8928987.0,8928652.0,8928717.0,8929120.0,8928963.0,8928759.0,8929109.0,8928708.0,8928676.0,8928779.0],"skipIndex":0,"section_code":"gallery","featured_images":"8929120,8929109,8929091,8928987,8928977,8928975,8928972,8928967,8928963,8928956","id":469660,"singleSection":false});				  						galleries[117234] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Journeys","link":"gallery_117234.html","maxRecords":0.0,"photoIDs":[1754573.0,1754568.0,1754575.0,1754432.0,4089104.0,1754527.0,1754516.0,1754428.0,1754532.0,1754547.0,1754515.0,1754659.0,1754553.0,1754513.0,1754560.0,1754416.0,3999403.0,2441343.0,1754657.0,1754646.0,1754653.0,1754535.0],"skipIndex":0,"section_code":"gallery","featured_images":"4089104,3999403,2441343,1754659,1754657,1754653,1754646,1754575,1754573,1754568","id":117234,"singleSection":false});				  						galleries[117529] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Prints 1998 - 2004","link":"gallery_117529.html","maxRecords":0.0,"photoIDs":[1753931.0,1753900.0,1753890.0,1754160.0,1754167.0,1754289.0,1754044.0,1754106.0,1754233.0,1754202.0,1754050.0,1753909.0,1753966.0,1754103.0,1754108.0,1754027.0,1753880.0,1753946.0,1753921.0,1753957.0],"skipIndex":0,"section_code":"gallery","featured_images":"1754289,1754233,1754202,1754167,1754160,1754108,1754106,1754103,1754050,1754044","id":117529,"singleSection":false});				  						galleries[117533] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"The Hares","link":"gallery_117533.html","maxRecords":0.0,"photoIDs":[1754322.0,1771008.0,1771013.0,1771020.0,1771018.0,1771019.0,1771017.0,1771022.0,1771023.0,1771024.0,1771007.0,1754323.0],"skipIndex":0,"section_code":"gallery","featured_images":"1771024,1771023,1771022,1771020,1771019,1771018,1771017,1771013,1771008,1771007","id":117533,"singleSection":false});				  						galleries[117532] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Out of Print","link":"gallery_117532.html","maxRecords":0.0,"photoIDs":[1763188.0,1754441.0,1754594.0,1754470.0],"skipIndex":0,"section_code":"gallery","featured_images":"1763188,1754594,1754470,1754441","id":117532,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8928810,4089104,2625092,1754322,2441384,1771008,2625096,1754167,1754202,1753909,1753957';
imageSets[3] = '8929120,8929109,8929091,8928987,8928977,8928975,8928972,8928967,8928963,8928956,8928952,8928948,8928879,8928810,8928809,8928779,8928759,8928717,8928708,8928676,8928652,8471353,8471352,8471351,8471342,8471335,8471328,8471326,8470725,8470724,7255279,7255158,7255151,7255142,7255137,7255126,7146951,7146948,7146945,7146931,7146847,7146840,7146835,7146809,7146803,7146796,7146671,6182110,5940251,5119653';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/hesterc/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/hesterc/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/hesterc/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/hesterc/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/hesterc/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/hesterc/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/hesterc/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/hesterc/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/hesterc/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/hesterc/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/hesterc/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/hesterc/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/hesterc/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/hesterc/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/hesterc/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/hesterc/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/hesterc/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/hesterc/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/hesterc/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/hesterc/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/hesterc/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/hesterc/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/hesterc/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/hesterc/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/hesterc/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/hesterc/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/hesterc/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 = 'Hester Cox - Printmaker: ' + 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> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
			temp += '<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;
	}
}

			

