window.thumbnails = {};
															thumbnails[775819] = clik.newPhoto({"id":775819,"src":"me-deer2_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Filming Red Deer UK","height":87});
															thumbnails[777859] = clik.newPhoto({"id":777859,"src":"doug-for-web_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":121});
															thumbnails[1077133] = clik.newPhoto({"id":1077133,"src":"rhino-and-me_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Working with Rhinos on an orphaned camp in Zimbabwe","height":152});
															thumbnails[1077150] = clik.newPhoto({"id":1077150,"src":"gill-and-rhino_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"My wife Gillian working with Rhinos","height":102});
															thumbnails[1077155] = clik.newPhoto({"id":1077155,"src":"me-and-impala_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"An Impala we befriended at the camp","height":88});
															thumbnails[1077160] = clik.newPhoto({"id":1077160,"src":"ele-with-ali_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"A baby elephant reared at the camp playing with the 3 legged camp German Shepherd","height":81});
															thumbnails[1797336] = clik.newPhoto({"id":1797336,"src":"verevet_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Vervet monkey invading the lodge","height":87});
															thumbnails[1797639] = clik.newPhoto({"id":1797639,"src":"washing_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Woman washing fish - Lake Kariba","height":87});
															thumbnails[1797642] = clik.newPhoto({"id":1797642,"src":"fish-woman_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"The staple diet in the region - fish from Lake Kariba","height":87});
															thumbnails[1797645] = clik.newPhoto({"id":1797645,"src":"rep-hut_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"A womans'work is never done - repairing mud huts.","height":87});
															thumbnails[1797658] = clik.newPhoto({"id":1797658,"src":"kids_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"No game boys and I-pods here! Children play the old fashioned way.","height":87});
															thumbnails[1797662] = clik.newPhoto({"id":1797662,"src":"rastus_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Rastus the camp baby elephant about to swing a chair around and get into even more trouble!","height":87});
															thumbnails[1797666] = clik.newPhoto({"id":1797666,"src":"hotel-vic_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Hotel Victoria, Victoria Falls","height":87});
															thumbnails[775821] = clik.newPhoto({"id":775821,"src":"scott_thumb.jpg","galleries_id":60096,"server_id":18,"link":"photo_775821.html","width":130,"caption":"Alongside the Beeb","height":112});
															thumbnails[775824] = clik.newPhoto({"id":775824,"src":"honey_thumb.jpg","galleries_id":60096,"server_id":18,"link":"photo_775824.html","width":130,"caption":"Honey - star of BBC Big Cat week","height":104});
															thumbnails[775836] = clik.newPhoto({"id":775836,"src":"honey-head_thumb.jpg","galleries_id":60096,"server_id":18,"link":"photo_775836.html","width":130,"caption":"Honey","height":98});
															thumbnails[775843] = clik.newPhoto({"id":775843,"src":"me-roof_thumb.jpg","galleries_id":60096,"server_id":18,"link":"photo_775843.html","width":130,"caption":"There is always something to film!","height":86});
															thumbnails[775851] = clik.newPhoto({"id":775851,"src":"pointing_thumb.jpg","galleries_id":60096,"server_id":18,"link":"photo_775851.html","width":130,"caption":"Our guide and freind Douglas showing the path of the coming Wildebeest migration.","height":86});
															thumbnails[775858] = clik.newPhoto({"id":775858,"src":"cheetah-kiss_thumb.jpg","galleries_id":60096,"server_id":18,"link":"photo_775858.html","width":130,"caption":"Honey with her cubs. One was not to survive.","height":98});
															thumbnails[783053] = clik.newPhoto({"id":783053,"src":"samburu-serena_thumb.jpg","galleries_id":60096,"server_id":18,"link":"photo_783053.html","width":130,"caption":"The lodge at Samburu","height":88});
															thumbnails[784554] = clik.newPhoto({"id":784554,"src":"c_thumb.jpg","galleries_id":60096,"server_id":18,"link":"photo_784554.html","width":130,"caption":"CHEETAH STALKING","height":173});
															thumbnails[784556] = clik.newPhoto({"id":784556,"src":"d_thumb.jpg","galleries_id":60096,"server_id":18,"link":"photo_784556.html","width":130,"caption":"LEOPARD","height":97});
															thumbnails[785843] = clik.newPhoto({"id":785843,"src":"lion-test_thumb.jpg","galleries_id":60096,"server_id":18,"link":"photo_785843.html","width":130,"caption":"LION WITH WILDBEEST PREY","height":98});
															thumbnails[1077158] = clik.newPhoto({"id":1077158,"src":"young-bulls_thumb.jpg","galleries_id":60096,"server_id":18,"link":"photo_1077158.html","width":130,"caption":"Young elephant bulls playing at who is dominant","height":90});
															thumbnails[1088398] = clik.newPhoto({"id":1088398,"src":"buffalo_thumb.jpg","galleries_id":60096,"server_id":18,"link":"photo_1088398.html","width":130,"caption":"Water Buffalo","height":169});
															thumbnails[1088401] = clik.newPhoto({"id":1088401,"src":"rhino-head_thumb.jpg","galleries_id":60096,"server_id":18,"link":"photo_1088401.html","width":130,"caption":"Black Rhino","height":98});
															thumbnails[1640614] = clik.newPhoto({"id":1640614,"src":"alongside-beeb-2_thumb.jpg","galleries_id":60096,"server_id":18,"link":"photo_1640614.html","width":130,"caption":"Alongside the Beeb 2","height":92});
															thumbnails[1640618] = clik.newPhoto({"id":1640618,"src":"dik-dik_thumb.jpg","galleries_id":60096,"server_id":18,"link":"photo_1640618.html","width":130,"caption":"Dik-Dik","height":114});
															thumbnails[1640619] = clik.newPhoto({"id":1640619,"src":"film-from-air_thumb.jpg","galleries_id":60096,"server_id":18,"link":"photo_1640619.html","width":130,"caption":"Preparing to film the wildebeest migration from the air","height":86});
															thumbnails[1640621] = clik.newPhoto({"id":1640621,"src":"geranuk_thumb.jpg","galleries_id":60096,"server_id":18,"link":"photo_1640621.html","width":130,"caption":"Impala","height":86});
															thumbnails[1651388] = clik.newPhoto({"id":1651388,"src":"wildebeest-jumping_thumb.jpg","galleries_id":60096,"server_id":18,"link":"photo_1651388.html","width":130,"caption":"Wildebeest jumping the migration queue","height":87});
															thumbnails[1651390] = clik.newPhoto({"id":1651390,"src":"monkey_thumb.jpg","galleries_id":60096,"server_id":18,"link":"photo_1651390.html","width":130,"caption":"Vervet monkey","height":195});
															thumbnails[1797338] = clik.newPhoto({"id":1797338,"src":"mara-lodge_thumb.jpg","galleries_id":60096,"server_id":18,"link":"photo_1797338.html","width":130,"caption":"Mara Serena lodge - not exactly roughing it!","height":96});
															thumbnails[1797341] = clik.newPhoto({"id":1797341,"src":"mara-lodge-2_thumb.jpg","galleries_id":60096,"server_id":18,"link":"photo_1797341.html","width":130,"caption":"Lodge on Massai Mara","height":87});
															thumbnails[2278608] = clik.newPhoto({"id":2278608,"src":"web-cheetagh_thumb.jpg","galleries_id":60096,"server_id":18,"link":"photo_2278608.html","width":130,"caption":"Female Cheetah at Nairobi National Park","height":104});
															thumbnails[2278740] = clik.newPhoto({"id":2278740,"src":"web-genet_thumb.jpg","galleries_id":60096,"server_id":18,"link":"photo_2278740.html","width":130,"caption":"A Genet that wandered into the camp one night","height":87});
															thumbnails[2278742] = clik.newPhoto({"id":2278742,"src":"sweetwater-camp_thumb.jpg","galleries_id":60096,"server_id":18,"link":"photo_2278742.html","width":130,"caption":"Sweetwater camp","height":87});
															thumbnails[2278744] = clik.newPhoto({"id":2278744,"src":"starling_thumb.jpg","galleries_id":60096,"server_id":18,"link":"photo_2278744.html","width":130,"caption":"Starling","height":87});
															thumbnails[2278745] = clik.newPhoto({"id":2278745,"src":"rhino_thumb.jpg","galleries_id":60096,"server_id":18,"link":"photo_2278745.html","width":130,"caption":"Black Rhino","height":87});
															thumbnails[2278748] = clik.newPhoto({"id":2278748,"src":"grevys_thumb.jpg","galleries_id":60096,"server_id":18,"link":"photo_2278748.html","width":130,"caption":"Grevy's Zebra. (Note the ear shape and lack of stripes on the belly compared to the common zebra)","height":87});
															thumbnails[2278752] = clik.newPhoto({"id":2278752,"src":"giraffe_thumb.jpg","galleries_id":60096,"server_id":18,"link":"photo_2278752.html","width":130,"caption":"Giraffe at Samburu - note the different pattern to the Massai giraffe","height":87});
															thumbnails[2278753] = clik.newPhoto({"id":2278753,"src":"didk-dik_thumb.jpg","galleries_id":60096,"server_id":18,"link":"photo_2278753.html","width":130,"caption":"Dik Dik","height":87});
															thumbnails[2278760] = clik.newPhoto({"id":2278760,"src":"babboon_thumb.jpg","galleries_id":60096,"server_id":18,"link":"photo_2278760.html","width":130,"caption":"Olive Baboon","height":87});
															thumbnails[2278764] = clik.newPhoto({"id":2278764,"src":"chimp-3_thumb.jpg","galleries_id":60096,"server_id":18,"link":"photo_2278764.html","width":130,"caption":"Tess one of the rescued chimps at the Ol Pejerot\/Jane Goodall institute reserve, Sweetwater","height":87});
															thumbnails[783056] = clik.newPhoto({"id":783056,"src":"1 jpeg sparrowhawk_thumb.jpg","galleries_id":64470,"server_id":18,"link":"photo_783056.html","width":130,"caption":"Sparrowhawk","height":117});
															thumbnails[783060] = clik.newPhoto({"id":783060,"src":"5 jpeg sparrowhawk_thumb.jpg","galleries_id":64470,"server_id":18,"link":"photo_783060.html","width":130,"caption":"Sparrowhawk with prey","height":109});
															thumbnails[783065] = clik.newPhoto({"id":783065,"src":"badger_thumb.jpg","galleries_id":68503,"server_id":18,"link":"photo_783065.html","width":130,"caption":"Badger out foraging, still from infra red video footage.","height":104});
															thumbnails[787288] = clik.newPhoto({"id":787288,"src":"w3_thumb.jpg","galleries_id":68503,"server_id":18,"link":"photo_787288.html","width":130,"caption":"Young Male Fox","height":105});
															thumbnails[1036448] = clik.newPhoto({"id":1036448,"src":"badger 2 for web_thumb.jpg","galleries_id":68503,"server_id":18,"link":"photo_1036448.html","width":130,"caption":"Male Boar. Still from infra red video. (Note the missing right ear!)","height":104});
															thumbnails[1085722] = clik.newPhoto({"id":1085722,"src":"fox2_thumb.jpg","galleries_id":68503,"server_id":18,"link":"photo_1085722.html","width":130,"caption":"Fox at earth 1","height":101});
															thumbnails[1085726] = clik.newPhoto({"id":1085726,"src":"fox11_thumb.jpg","galleries_id":68503,"server_id":18,"link":"photo_1085726.html","width":130,"caption":"fox at earth 2","height":157});
															thumbnails[1085809] = clik.newPhoto({"id":1085809,"src":"ink-caps-2_thumb.jpg","galleries_id":77255,"server_id":18,"link":"photo_1085809.html","width":130,"caption":"Shaggy Ink cap 1","height":179});
															thumbnails[1085814] = clik.newPhoto({"id":1085814,"src":"ink-caps_thumb.jpg","galleries_id":77255,"server_id":18,"link":"photo_1085814.html","width":130,"caption":"Shaggy Ink caps 2","height":155});
															thumbnails[1085817] = clik.newPhoto({"id":1085817,"src":"golden-pholiota_thumb.jpg","galleries_id":77255,"server_id":18,"link":"photo_1085817.html","width":130,"caption":"Golden Pholiota","height":91});
															thumbnails[1085838] = clik.newPhoto({"id":1085838,"src":"fungus2_thumb.jpg","galleries_id":77255,"server_id":18,"link":"photo_1085838.html","width":130,"caption":"","height":100});
															thumbnails[1085891] = clik.newPhoto({"id":1085891,"src":"fern_thumb.jpg","galleries_id":77255,"server_id":18,"link":"photo_1085891.html","width":130,"caption":"Fern growing from old tree stump","height":98});
															thumbnails[1085893] = clik.newPhoto({"id":1085893,"src":"bracket-fungus-1_thumb.jpg","galleries_id":77255,"server_id":18,"link":"photo_1085893.html","width":130,"caption":"Bracket Fungi Oyster Mushroom","height":109});
															thumbnails[1085913] = clik.newPhoto({"id":1085913,"src":"fungus_thumb.jpg","galleries_id":77255,"server_id":18,"link":"photo_1085913.html","width":130,"caption":"","height":89});
															thumbnails[1085971] = clik.newPhoto({"id":1085971,"src":"wasp_thumb.jpg","galleries_id":80115,"server_id":18,"link":"photo_1085971.html","width":130,"caption":"Wasp building nest. (Achieved by chewing wood in pulp)","height":110});
															thumbnails[1085974] = clik.newPhoto({"id":1085974,"src":"owl-moth_thumb.jpg","galleries_id":80115,"server_id":18,"link":"photo_1085974.html","width":130,"caption":"Owl Moth","height":101});
															thumbnails[1085977] = clik.newPhoto({"id":1085977,"src":"damsels_thumb.jpg","galleries_id":80115,"server_id":18,"link":"photo_1085977.html","width":130,"caption":"Dansel flies copulating","height":163});
															thumbnails[1085980] = clik.newPhoto({"id":1085980,"src":"cricket_thumb.jpg","galleries_id":80115,"server_id":18,"link":"photo_1085980.html","width":130,"caption":"Cricket","height":95});
															thumbnails[1088389] = clik.newPhoto({"id":1088389,"src":"bee_thumb.jpg","galleries_id":80115,"server_id":18,"link":"photo_1088389.html","width":130,"caption":"Worker honey bee","height":157});
															thumbnails[1088392] = clik.newPhoto({"id":1088392,"src":"cinnabar_thumb.jpg","galleries_id":80115,"server_id":18,"link":"photo_1088392.html","width":130,"caption":"Caterpillar of the Cinnabar moth feeding on Ragwort","height":97});
															thumbnails[1088403] = clik.newPhoto({"id":1088403,"src":"cherry-picker_thumb.jpg","galleries_id":64470,"server_id":18,"link":"photo_1088403.html","width":130,"caption":"View from cherry picker used to assist in placing Kestrel box for nesting","height":102});
															thumbnails[1090973] = clik.newPhoto({"id":1090973,"src":"web-1_thumb.jpg","galleries_id":80115,"server_id":18,"link":"photo_1090973.html","width":130,"caption":"","height":152});
															thumbnails[1090975] = clik.newPhoto({"id":1090975,"src":"web-2_thumb.jpg","galleries_id":80115,"server_id":18,"link":"photo_1090975.html","width":130,"caption":"","height":93});
															thumbnails[1090977] = clik.newPhoto({"id":1090977,"src":"web-3_thumb.jpg","galleries_id":80115,"server_id":18,"link":"photo_1090977.html","width":130,"caption":"","height":104});
															thumbnails[1090978] = clik.newPhoto({"id":1090978,"src":"web-4_thumb.jpg","galleries_id":80115,"server_id":18,"link":"photo_1090978.html","width":130,"caption":"","height":106});
															thumbnails[1090980] = clik.newPhoto({"id":1090980,"src":"web-5_thumb.jpg","galleries_id":68503,"server_id":18,"link":"photo_1090980.html","width":130,"caption":"Badgers out foraging","height":97});
															thumbnails[1090983] = clik.newPhoto({"id":1090983,"src":"ott_thumb.jpg","galleries_id":68503,"server_id":18,"link":"photo_1090983.html","width":130,"caption":"Dog Otter","height":107});
															thumbnails[1123831] = clik.newPhoto({"id":1123831,"src":"1_thumb.jpg","galleries_id":80115,"server_id":18,"link":"photo_1123831.html","width":130,"caption":"","height":103});
															thumbnails[1123832] = clik.newPhoto({"id":1123832,"src":"2_thumb.jpg","galleries_id":80115,"server_id":18,"link":"photo_1123832.html","width":130,"caption":"","height":93});
															thumbnails[1123833] = clik.newPhoto({"id":1123833,"src":"3_thumb.jpg","galleries_id":80115,"server_id":18,"link":"photo_1123833.html","width":130,"caption":"","height":146});
															thumbnails[1123836] = clik.newPhoto({"id":1123836,"src":"5_thumb.jpg","galleries_id":80115,"server_id":18,"link":"photo_1123836.html","width":130,"caption":"","height":168});
															thumbnails[1123862] = clik.newPhoto({"id":1123862,"src":"a6_thumb.jpg","galleries_id":80115,"server_id":18,"link":"photo_1123862.html","width":130,"caption":"","height":163});
															thumbnails[1123863] = clik.newPhoto({"id":1123863,"src":"b2_thumb.jpg","galleries_id":80115,"server_id":18,"link":"photo_1123863.html","width":130,"caption":"","height":148});
															thumbnails[1123866] = clik.newPhoto({"id":1123866,"src":"c1_thumb.jpg","galleries_id":80115,"server_id":18,"link":"photo_1123866.html","width":130,"caption":"","height":83});
															thumbnails[1123868] = clik.newPhoto({"id":1123868,"src":"taton-park-054_thumb.jpg","galleries_id":68503,"server_id":18,"link":"photo_1123868.html","width":130,"caption":"","height":87});
															thumbnails[1123870] = clik.newPhoto({"id":1123870,"src":"taton-park-078_thumb.jpg","galleries_id":68503,"server_id":18,"link":"photo_1123870.html","width":130,"caption":"","height":87});
															thumbnails[1123872] = clik.newPhoto({"id":1123872,"src":"taton-park-092_thumb.jpg","galleries_id":68503,"server_id":18,"link":"photo_1123872.html","width":130,"caption":"","height":87});
															thumbnails[1123875] = clik.newPhoto({"id":1123875,"src":"6_thumb.jpg","galleries_id":77255,"server_id":18,"link":"photo_1123875.html","width":130,"caption":"","height":212});
															thumbnails[1636564] = clik.newPhoto({"id":1636564,"src":"jay_thumb.jpg","galleries_id":64470,"server_id":18,"link":"photo_1636564.html","width":130,"caption":"Jay","height":104});
															thumbnails[1636570] = clik.newPhoto({"id":1636570,"src":"gswp_thumb.jpg","galleries_id":64470,"server_id":18,"link":"photo_1636570.html","width":130,"caption":"Great Spotted Woodpecker","height":104});
															thumbnails[1636606] = clik.newPhoto({"id":1636606,"src":"f6-fixed_thumb.jpg","galleries_id":68503,"server_id":18,"link":"photo_1636606.html","width":130,"caption":"Two from the same Fox family","height":130});
															thumbnails[1636609] = clik.newPhoto({"id":1636609,"src":"fox-fixed_thumb.jpg","galleries_id":68503,"server_id":18,"link":"photo_1636609.html","width":130,"caption":"Adult Dog Fox","height":104});
															thumbnails[1645352] = clik.newPhoto({"id":1645352,"src":"swan-sillo_thumb.jpg","galleries_id":64470,"server_id":18,"link":"photo_1645352.html","width":130,"caption":"Mute Swan","height":82});
															thumbnails[1645359] = clik.newPhoto({"id":1645359,"src":"swan_thumb.jpg","galleries_id":64470,"server_id":18,"link":"photo_1645359.html","width":130,"caption":"Mute Swan 2","height":140});
															thumbnails[1645363] = clik.newPhoto({"id":1645363,"src":"puffin_thumb.jpg","galleries_id":64470,"server_id":18,"link":"photo_1645363.html","width":130,"caption":"Puffin","height":141});
															thumbnails[1645365] = clik.newPhoto({"id":1645365,"src":"kite-2_thumb.jpg","galleries_id":64470,"server_id":18,"link":"photo_1645365.html","width":130,"caption":"Red Kite","height":104});
															thumbnails[1645367] = clik.newPhoto({"id":1645367,"src":"kite-3_thumb.jpg","galleries_id":64470,"server_id":18,"link":"photo_1645367.html","width":130,"caption":"Red Kite 2","height":96});
															thumbnails[1645370] = clik.newPhoto({"id":1645370,"src":"egret_thumb.jpg","galleries_id":64470,"server_id":18,"link":"photo_1645370.html","width":130,"caption":"Egret","height":163});
															thumbnails[1645392] = clik.newPhoto({"id":1645392,"src":"avocet_thumb.jpg","galleries_id":64470,"server_id":18,"link":"photo_1645392.html","width":130,"caption":"Avocet","height":96});
															thumbnails[1645395] = clik.newPhoto({"id":1645395,"src":"arctic-tern_thumb.jpg","galleries_id":64470,"server_id":18,"link":"photo_1645395.html","width":130,"caption":"Arctic Tern","height":79});
															thumbnails[1645401] = clik.newPhoto({"id":1645401,"src":"shellx3_thumb.jpg","galleries_id":64470,"server_id":18,"link":"photo_1645401.html","width":130,"caption":"Shell Duck","height":73});
															thumbnails[1645408] = clik.newPhoto({"id":1645408,"src":"red-kites-midwales-1001_thumb.jpg","galleries_id":64470,"server_id":18,"link":"photo_1645408.html","width":130,"caption":"Red Kite","height":104});
															thumbnails[1645413] = clik.newPhoto({"id":1645413,"src":"otter_thumb.jpg","galleries_id":68503,"server_id":18,"link":"photo_1645413.html","width":130,"caption":"Otter ","height":163});
															thumbnails[1645415] = clik.newPhoto({"id":1645415,"src":"otter-2_thumb.jpg","galleries_id":68503,"server_id":18,"link":"photo_1645415.html","width":130,"caption":"Otter","height":104});
															thumbnails[1651368] = clik.newPhoto({"id":1651368,"src":"fox-2_thumb.jpg","galleries_id":68503,"server_id":18,"link":"photo_1651368.html","width":130,"caption":"Red Fox","height":87});
															thumbnails[1651379] = clik.newPhoto({"id":1651379,"src":"fox-head_thumb.jpg","galleries_id":68503,"server_id":18,"link":"photo_1651379.html","width":130,"caption":"Red Fox 2","height":87});
															thumbnails[1651380] = clik.newPhoto({"id":1651380,"src":"badgers2-554_thumb.jpg","galleries_id":68503,"server_id":18,"link":"photo_1651380.html","width":130,"caption":"Badgers foraging on a summer evening","height":87});
															thumbnails[1651382] = clik.newPhoto({"id":1651382,"src":"badgers-305_thumb.jpg","galleries_id":68503,"server_id":18,"link":"photo_1651382.html","width":130,"caption":"Spotted!","height":87});
															thumbnails[1651383] = clik.newPhoto({"id":1651383,"src":"baby-squirrel_thumb.jpg","galleries_id":68503,"server_id":18,"link":"photo_1651383.html","width":130,"caption":"Red Squirrel","height":87});
															thumbnails[1651391] = clik.newPhoto({"id":1651391,"src":"spider-014_thumb.jpg","galleries_id":77255,"server_id":18,"link":"photo_1651391.html","width":130,"caption":"Resident of the flora and fauna","height":195});
															thumbnails[1839533] = clik.newPhoto({"id":1839533,"src":"1-kf_thumb.jpg","galleries_id":64470,"server_id":18,"link":"photo_1839533.html","width":130,"caption":"Kingfisher","height":195});
															thumbnails[1839543] = clik.newPhoto({"id":1839543,"src":"sw21_thumb.jpg","galleries_id":64470,"server_id":18,"link":"photo_1839543.html","width":130,"caption":"Sedge Warbler","height":130});
															thumbnails[1860272] = clik.newPhoto({"id":1860272,"src":"kestrel-frame_thumb.jpg","galleries_id":64470,"server_id":18,"link":"photo_1860272.html","width":130,"caption":"Kestrel amongst the industry","height":104});
															thumbnails[4599365] = clik.newPhoto({"id":4599365,"src":"full-lens-web_thumb.jpg","galleries_id":266209,"server_id":18,"link":"photo_4599365.html","width":130,"caption":"Stealth Gear being trilled on a recent trip to Scotland.","height":87});
															thumbnails[4599373] = clik.newPhoto({"id":4599373,"src":"jacket-kneeling-1-web_thumb.jpg","galleries_id":266209,"server_id":18,"link":"photo_4599373.html","width":130,"caption":"With the Stealth Gear kneeling in the wet is a breeze!","height":97});
															thumbnails[4599385] = clik.newPhoto({"id":4599385,"src":"jacket-hood-up-1-web_thumb.jpg","galleries_id":266209,"server_id":18,"link":"photo_4599385.html","width":130,"caption":"Keeping out the wind and rain is no problem with this clothing.","height":106});
															thumbnails[4599395] = clik.newPhoto({"id":4599395,"src":"ws-1-web_thumb.jpg","galleries_id":266209,"server_id":18,"link":"photo_4599395.html","width":130,"caption":"The Stealth Gear waistcoat. Top quality like all the garments.","height":117});
															thumbnails[4641687] = clik.newPhoto({"id":4641687,"src":"ospey_thumb.jpg","galleries_id":266209,"server_id":18,"link":"photo_4641687.html","width":130,"caption":"Osprey","height":111});
															thumbnails[4641690] = clik.newPhoto({"id":4641690,"src":"ospey1_thumb.jpg","galleries_id":64470,"server_id":18,"link":"photo_4641690.html","width":130,"caption":"Osprey","height":111});
															thumbnails[2775175] = clik.newPhoto({"id":2775175,"src":"wd1_thumb.jpg","galleries_id":173878,"server_id":18,"link":"photo_2775175.html","width":130,"caption":"African wild dog, Okonjima","height":104});
															thumbnails[2775194] = clik.newPhoto({"id":2775194,"src":"rich3_thumb.jpg","galleries_id":173878,"server_id":18,"link":"photo_2775194.html","width":130,"caption":"Richard zu Bentheim using telemetry to track rehabilitating cheetahs at Okonjima","height":150});
															thumbnails[2775201] = clik.newPhoto({"id":2775201,"src":"cheet4_thumb.jpg","galleries_id":173878,"server_id":18,"link":"photo_2775201.html","width":130,"caption":"It's behind you!","height":104});
															thumbnails[2775205] = clik.newPhoto({"id":2775205,"src":"6_1_thumb.jpg","galleries_id":173878,"server_id":18,"link":"photo_2775205.html","width":130,"caption":"Richard finds his cheetah","height":104});
															thumbnails[2775215] = clik.newPhoto({"id":2775215,"src":"1_1_thumb.jpg","galleries_id":173878,"server_id":18,"link":"photo_2775215.html","width":130,"caption":"Tracking on foot","height":100});
															thumbnails[2775455] = clik.newPhoto({"id":2775455,"src":"t_thumb.jpg","galleries_id":173878,"server_id":18,"link":"photo_2775455.html","width":130,"caption":"Collared cheetah in rehabilitation at Okonjima","height":98});
															thumbnails[2775458] = clik.newPhoto({"id":2775458,"src":"a11_thumb.jpg","galleries_id":173878,"server_id":18,"link":"photo_2775458.html","width":130,"caption":"Camping at Sesriem","height":98});
															thumbnails[2775460] = clik.newPhoto({"id":2775460,"src":"c_1_thumb.jpg","galleries_id":173878,"server_id":18,"link":"photo_2775460.html","width":130,"caption":"Trans Kalahari highway","height":98});
															thumbnails[2775462] = clik.newPhoto({"id":2775462,"src":"h_thumb.jpg","galleries_id":173878,"server_id":18,"link":"photo_2775462.html","width":130,"caption":"The infamous dune 45","height":98});
															thumbnails[2775463] = clik.newPhoto({"id":2775463,"src":"l_thumb.jpg","galleries_id":173878,"server_id":18,"link":"photo_2775463.html","width":130,"caption":"Jackal hunting injured cape fur seals on the shoreline","height":98});
															thumbnails[2775465] = clik.newPhoto({"id":2775465,"src":"p_thumb.jpg","galleries_id":173878,"server_id":18,"link":"photo_2775465.html","width":130,"caption":"Cape fur seals basking","height":98});
															thumbnails[2775467] = clik.newPhoto({"id":2775467,"src":"a7_thumb.jpg","galleries_id":173878,"server_id":18,"link":"photo_2775467.html","width":130,"caption":"Zebra at waterhole Etosha","height":98});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[80115] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Insects","link":"section87701_80115.html","maxRecords":0.0,"photoIDs":[1085971.0,1085974.0,1085977.0,1085980.0,1088389.0,1088392.0,1090973.0,1090975.0,1090977.0,1090978.0,1123831.0,1123832.0,1123833.0,1123836.0,1123862.0,1123863.0,1123866.0],"skipIndex":0,"section_code":"section87701","featured_images":"1123866,1123863,1123862,1123836,1123833,1123832,1123831,1090978,1090977,1090975","id":80115,"singleSection":false});				  						galleries[60096] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Kenyas' Massai Mara ","link":"gallery.html","maxRecords":0.0,"photoIDs":[775821.0,775824.0,775836.0,775843.0,775851.0,775858.0,783053.0,784554.0,784556.0,785843.0,1077158.0,1088398.0,1088401.0,1640614.0,1640618.0,1640619.0,1640621.0,1651388.0,1651390.0,1797338.0,1797341.0,2278608.0,2278740.0,2278742.0,2278744.0,2278745.0,2278748.0,2278752.0,2278753.0,2278760.0,2278764.0],"skipIndex":0,"section_code":"gallery","featured_images":"2278764,2278760,2278753,2278752,2278748,2278745,2278744,2278742,2278740,2278608","id":60096,"singleSection":true});				  						galleries[68503] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Mammals","link":"section87701_68503.html","maxRecords":0.0,"photoIDs":[783065.0,787288.0,1036448.0,1085722.0,1085726.0,1090980.0,1090983.0,1123868.0,1123870.0,1123872.0,1636606.0,1636609.0,1645413.0,1645415.0,1651368.0,1651379.0,1651380.0,1651382.0,1651383.0],"skipIndex":0,"section_code":"section87701","featured_images":"1651383,1651382,1651380,1651379,1651368,1645415,1645413,1636609,1636606,1123872","id":68503,"singleSection":false});				  						galleries[64470] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"birds","link":"section87701_64470.html","maxRecords":0.0,"photoIDs":[783056.0,783060.0,1088403.0,1636564.0,1636570.0,1645352.0,1645359.0,1645363.0,1645365.0,1645367.0,1645370.0,1645392.0,1645395.0,1645401.0,1645408.0,1839533.0,1839543.0,1860272.0,4641690.0],"skipIndex":0,"section_code":"section87701","featured_images":"4641690,1860272,1839543,1839533,1645408,1645401,1645395,1645392,1645370,1645367","id":64470,"singleSection":false});				  						galleries[77255] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Flora and fauna","link":"section87701_77255.html","maxRecords":0.0,"photoIDs":[1085809.0,1085814.0,1085817.0,1085838.0,1085891.0,1085893.0,1085913.0,1123875.0,1651391.0],"skipIndex":0,"section_code":"section87701","featured_images":"1651391,1123875,1085913,1085893,1085891,1085838,1085817,1085814,1085809","id":77255,"singleSection":false});				  						galleries[173878] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Namibia","link":"section217014.html","maxRecords":0.0,"photoIDs":[2775175.0,2775194.0,2775201.0,2775205.0,2775215.0,2775455.0,2775458.0,2775460.0,2775462.0,2775463.0,2775465.0,2775467.0],"skipIndex":0,"section_code":"section217014","featured_images":"2775467,2775465,2775463,2775462,2775460,2775458,2775455,2775215,2775205,2775201","id":173878,"singleSection":true});				  						galleries[266209] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Stealth Gear Images","link":"section87701_266209.html","maxRecords":0.0,"photoIDs":[4599365.0,4599373.0,4599385.0,4599395.0,4641687.0],"skipIndex":0,"section_code":"section87701","featured_images":"4641687,4599395,4599385,4599373,4599365","id":266209,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '775819';
imageSets[3] = '4641690,4641687,4599395,4599385,4599373,4599365,2775467,2775465,2775463,2775462,2775460,2775458,2775455,2775215,2775205,2775201,2775194,2775175,2278764,2278760,2278753,2278752,2278748,2278745,2278744,2278742,2278740,2278608,1860272,1839543,1839533,1797666,1797662,1797658,1797645,1797642,1797639,1797341,1797338,1797336,1651391,1651390,1651388,1651383,1651382,1651380,1651379,1651368,1645415,1645413';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/chazt/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/chazt/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/chazt/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/chazt/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/chazt/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/chazt/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/chazt/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/chazt/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/chazt/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/chazt/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/chazt/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/chazt/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/chazt/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/chazt/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/chazt/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/chazt/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/chazt/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/chazt/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/chazt/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/chazt/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/chazt/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/chazt/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/chazt/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/chazt/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/chazt/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/chazt/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/chazt/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 = 'edwardcharlesphotography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="imagesofec@aol.com">';
					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="imagesofec@aol.com">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

