window.thumbnails = {};
															thumbnails[3446161] = clik.newPhoto({"id":3446161,"src":"TreeFrog31_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Peacock Tree Frog","height":199});
															thumbnails[8445014] = clik.newPhoto({"id":8445014,"src":"DSC_2127_thumb.jpg","galleries_id":74627,"server_id":38,"link":"photo_8445014.html","width":130,"caption":"Common Lizard","height":87});
															thumbnails[8445039] = clik.newPhoto({"id":8445039,"src":"DSC_2123_thumb.jpg","galleries_id":74627,"server_id":38,"link":"photo_8445039.html","width":130,"caption":"Southern Hawker ","height":87});
															thumbnails[1877690] = clik.newPhoto({"id":1877690,"src":"DSC_4628 (Medium)_thumb.JPG","galleries_id":45354,"server_id":1,"link":"photo_1877690.html","width":130,"caption":"Female Plumed Basilisk (Basiliscus plumifrons)","height":87});
															thumbnails[642094] = clik.newPhoto({"id":642094,"src":"Portrait of Spike2_thumb.jpg","galleries_id":45344,"server_id":1,"link":"photo_642094.html","width":130,"caption":"Portrait of Spike - Male lion of the Whipsnade pride","height":87});
															thumbnails[642447] = clik.newPhoto({"id":642447,"src":"Hover-fly Syrphus ribesii (Medium)_thumb.jpg","galleries_id":45355,"server_id":1,"link":"photo_642447.html","width":130,"caption":"Hover-fly Syrphus ribesii. ","height":145});
															thumbnails[642449] = clik.newPhoto({"id":642449,"src":"Indy_thumb.jpg","galleries_id":45344,"server_id":1,"link":"photo_642449.html","width":130,"caption":"'INDY' Bengal Tiger Photo taken at the Wildlife Heritage Foundation.<br>\r\n ","height":87});
															thumbnails[642450] = clik.newPhoto({"id":642450,"src":"Nias_thumb.jpg","galleries_id":45344,"server_id":1,"link":"photo_642450.html","width":130,"caption":"'NIAS' Sumatran Tiger photo taken at the Wildlife Heritage Foundation","height":87});
															thumbnails[642451] = clik.newPhoto({"id":642451,"src":"Sika Deer2_thumb.JPG","galleries_id":45354,"server_id":1,"link":"photo_642451.html","width":130,"caption":"Sika Deer taken at Arne in Dorset","height":87});
															thumbnails[642452] = clik.newPhoto({"id":642452,"src":"Spike & Mash_thumb.JPG","galleries_id":45344,"server_id":1,"link":"photo_642452.html","width":130,"caption":"Spike & Mashaka Lila - Whipsnade zoo pride","height":87});
															thumbnails[642453] = clik.newPhoto({"id":642453,"src":"Mother with cub_thumb.jpg","galleries_id":45344,"server_id":1,"link":"photo_642453.html","width":130,"caption":"Mother & cub - members of the Whipsnade pride","height":93});
															thumbnails[655867] = clik.newPhoto({"id":655867,"src":"Cubs_thumb.jpg","galleries_id":45344,"server_id":1,"link":"photo_655867.html","width":130,"caption":"Cubs from the Whipsnade pride taken on the 16th December 06. ","height":87});
															thumbnails[658230] = clik.newPhoto({"id":658230,"src":"Bee Orchid_thumb.jpg","galleries_id":45352,"server_id":1,"link":"photo_658230.html","width":130,"caption":"Bee Orchid (Ophrys apifera) Taken at the Durlston Country Park in Dorset. This was my first attempt at using a reversing ring with a 50mm nikon lens. ","height":89});
															thumbnails[658352] = clik.newPhoto({"id":658352,"src":"I love you dad_thumb.jpg","galleries_id":45344,"server_id":1,"link":"photo_658352.html","width":130,"caption":"'I love you Dad' <br>\r\nSpike with one of his cubs.","height":97});
															thumbnails[668000] = clik.newPhoto({"id":668000,"src":"Sampson_thumb.jpg","galleries_id":45356,"server_id":1,"link":"photo_668000.html","width":130,"caption":"Sampson - British short-haired red tabby approx 11 years old when this photo was taken. His best friend was Maddy the Golden Retriever","height":77});
															thumbnails[668024] = clik.newPhoto({"id":668024,"src":"Maddy_thumb.jpg","galleries_id":45356,"server_id":1,"link":"photo_668024.html","width":130,"caption":"Maddy - Golden Retriever. Pedigree name Pinewell Fechlin Dancer. This photo was taken June 05. She sadly died April 06 at the age of 12 after 8 months of being blind due to a tumour on the optic nerve.","height":89});
															thumbnails[674488] = clik.newPhoto({"id":674488,"src":"Amur Leopard_thumb.jpg","galleries_id":45344,"server_id":1,"link":"photo_674488.html","width":130,"caption":"Amur Leopard","height":87});
															thumbnails[683346] = clik.newPhoto({"id":683346,"src":"Mad Maddy 2_thumb.jpg","galleries_id":45356,"server_id":1,"link":"photo_683346.html","width":130,"caption":"Mad Maddy - Taken with a Nikon 50mm prime lens","height":165});
															thumbnails[683360] = clik.newPhoto({"id":683360,"src":"Maddy Sun_thumb.jpg","galleries_id":45356,"server_id":1,"link":"photo_683360.html","width":130,"caption":"Maddy seeking it out as the sun goes down","height":89});
															thumbnails[683361] = clik.newPhoto({"id":683361,"src":"Porcellain Fungus (Oudemansiella mucida)_thumb.jpg","galleries_id":45352,"server_id":1,"link":"photo_683361.html","width":130,"caption":"Porcellain Fungus (Oudemansiella mucida) Taken in the New Forest with photographic tips from Heather Angel. For a day out with Heather see the Wild Arena website in the links menu.","height":89});
															thumbnails[683615] = clik.newPhoto({"id":683615,"src":"Male Common Blue Damselfly (Enallagma Cyathigerum)_thumb.jpg","galleries_id":45355,"server_id":1,"link":"photo_683615.html","width":130,"caption":"Male Common Blue Damselfly (Enallagma cyathigerum) Taken at Rickmansworth aquadrome Hertfordshire ","height":89});
															thumbnails[683628] = clik.newPhoto({"id":683628,"src":"Common Blue damselflies Pair Mating_thumb.jpg","galleries_id":45355,"server_id":1,"link":"photo_683628.html","width":130,"caption":"Common Blue Damselflies mating. Taken at Rickmansworth aquadrome Hertfordshire ","height":89});
															thumbnails[683642] = clik.newPhoto({"id":683642,"src":"Male Common Darter dragonfly (Sympetrum striolatum)_thumb.jpg","galleries_id":45355,"server_id":1,"link":"photo_683642.html","width":130,"caption":"Male Common Darter (Sympetrum striolatum) taken by the river Colne, Rickmansworth, Hertfordshire ","height":89});
															thumbnails[683648] = clik.newPhoto({"id":683648,"src":"Common Darters mating_thumb.jpg","galleries_id":45355,"server_id":1,"link":"photo_683648.html","width":130,"caption":"Common Darter dragonflies mating by the river Colne, Rickmansworth, Hertfordshire","height":83});
															thumbnails[683666] = clik.newPhoto({"id":683666,"src":"Male Keeled Skimmer (Orthetrum coerulescens)_thumb.jpg","galleries_id":45355,"server_id":1,"link":"photo_683666.html","width":130,"caption":"Male Keeled Skimmer (Orthetrum coerulescens) taken at Arne RSPB reserve in Dorset","height":90});
															thumbnails[683699] = clik.newPhoto({"id":683699,"src":"Rooting bonnet-cap (Mycena galericulata)_thumb.jpg","galleries_id":45352,"server_id":1,"link":"photo_683699.html","width":130,"caption":"Rooting Bonnet-cap (Mycena galericulata) Taken on the Ashridge Estate, Hertfordshire","height":89});
															thumbnails[717124] = clik.newPhoto({"id":717124,"src":"Hippo2_thumb.jpg","galleries_id":45354,"server_id":1,"link":"photo_717124.html","width":130,"caption":"Lola comes to say hello","height":96});
															thumbnails[717125] = clik.newPhoto({"id":717125,"src":"Hippo3_thumb.jpg","galleries_id":45354,"server_id":1,"link":"photo_717125.html","width":130,"caption":"Open wide! ","height":98});
															thumbnails[720924] = clik.newPhoto({"id":720924,"src":"Maddy 'Old Sea Dog'_thumb.jpg","galleries_id":45356,"server_id":1,"link":"photo_720924.html","width":130,"caption":"Maddy old sea dog","height":82});
															thumbnails[720954] = clik.newPhoto({"id":720954,"src":"Porcelain Fungus_thumb.jpg","galleries_id":45352,"server_id":1,"link":"photo_720954.html","width":130,"caption":"Porcelain fungus from below","height":87});
															thumbnails[749530] = clik.newPhoto({"id":749530,"src":"rhino (Large)_thumb.jpg","galleries_id":45354,"server_id":1,"link":"photo_749530.html","width":130,"caption":"White Rhino ","height":87});
															thumbnails[804609] = clik.newPhoto({"id":804609,"src":"Giraffe Calf_thumb.JPG","galleries_id":45354,"server_id":1,"link":"photo_804609.html","width":130,"caption":"Giraffe calf born at Whipsnade zoo autumn 2006","height":87});
															thumbnails[804692] = clik.newPhoto({"id":804692,"src":"Ready for take off_thumb.jpg","galleries_id":62355,"server_id":1,"link":"photo_804692.html","width":130,"caption":"Mute Swan - Ready for take off","height":96});
															thumbnails[804801] = clik.newPhoto({"id":804801,"src":"Tiger scratch_thumb.jpg","galleries_id":45344,"server_id":1,"link":"photo_804801.html","width":130,"caption":"Scratch my chin. I promise I won't bite.","height":87});
															thumbnails[806572] = clik.newPhoto({"id":806572,"src":"Male Lion London_thumb.jpg","galleries_id":45344,"server_id":1,"link":"photo_806572.html","width":130,"caption":"Lion of the London Zoo pride","height":87});
															thumbnails[937215] = clik.newPhoto({"id":937215,"src":"DSC_65010006_thumb.JPG","galleries_id":62355,"server_id":1,"link":"photo_937215.html","width":130,"caption":"Red Kite. Flying over my garden in Hertfordshire.","height":80});
															thumbnails[937216] = clik.newPhoto({"id":937216,"src":"DSC_67180005_thumb.JPG","galleries_id":45344,"server_id":1,"link":"photo_937216.html","width":130,"caption":"New Cheetah at Whipsnade. ","height":87});
															thumbnails[950907] = clik.newPhoto({"id":950907,"src":"parrots_thumb.jpg","galleries_id":62355,"server_id":1,"link":"photo_950907.html","width":130,"caption":"On of my first photos taken with the Nikon 18-200 VR lens. I am very pleased with the performance of this lens.","height":91});
															thumbnails[959432] = clik.newPhoto({"id":959432,"src":"Bosham, West Sussex_thumb.jpg","galleries_id":72423,"server_id":1,"link":"photo_959432.html","width":130,"caption":"Bosham, West Sussex.","height":195});
															thumbnails[989097] = clik.newPhoto({"id":989097,"src":"Big Mouth_thumb.jpg","galleries_id":45344,"server_id":1,"link":"photo_989097.html","width":130,"caption":"Big Mouth. Lion's yawn captured with the Nikon 18-200 vr lens. ","height":92});
															thumbnails[991707] = clik.newPhoto({"id":991707,"src":"Malawi Meow_thumb.jpg","galleries_id":45344,"server_id":1,"link":"photo_991707.html","width":130,"caption":"Cerval named Malawi. Came when his name was called spitting and cussing on occasion but loving the meat on offer.","height":111});
															thumbnails[991718] = clik.newPhoto({"id":991718,"src":"Pepo Looking Up_thumb.jpg","galleries_id":45344,"server_id":1,"link":"photo_991718.html","width":130,"caption":"Cheetah named Pepo. He was a real cutie posing for the camera","height":87});
															thumbnails[991720] = clik.newPhoto({"id":991720,"src":"Pepo Posing_thumb.jpg","galleries_id":45344,"server_id":1,"link":"photo_991720.html","width":130,"caption":"Pepo the posing Cheetah","height":87});
															thumbnails[997143] = clik.newPhoto({"id":997143,"src":"Sleeping Swan_thumb.jpg","galleries_id":62355,"server_id":1,"link":"photo_997143.html","width":130,"caption":"Swan sleeping. If you want to see lots of Mute Swans and their cygnets. Take a trip to Abbotsbury Swanery in Dorset","height":87});
															thumbnails[997144] = clik.newPhoto({"id":997144,"src":"Squabbling Swans_thumb.jpg","galleries_id":62355,"server_id":1,"link":"photo_997144.html","width":130,"caption":"Squabbling Swans taken at Abbotsbury Swannery, Dorset.","height":79});
															thumbnails[997146] = clik.newPhoto({"id":997146,"src":"Squirrel Close_thumb.jpg","galleries_id":45354,"server_id":1,"link":"photo_997146.html","width":130,"caption":"Cheeky Squirrel ","height":86});
															thumbnails[998594] = clik.newPhoto({"id":998594,"src":"Purple Salify side on_thumb.jpg","galleries_id":45352,"server_id":1,"link":"photo_998594.html","width":130,"caption":"Purple Salsify (Tragopogon porrifolius) Also known as Oyster Plant as the root is noted for tasting of oysters.","height":195});
															thumbnails[998626] = clik.newPhoto({"id":998626,"src":"Purple Salsify close (Tragopogon porrifolius)_thumb.jpg","galleries_id":45352,"server_id":1,"link":"photo_998626.html","width":130,"caption":"A close shot of Salsify. I think the yellow pollen is almost neon like.","height":107});
															thumbnails[1008632] = clik.newPhoto({"id":1008632,"src":"Running Bunny_thumb.jpg","galleries_id":45354,"server_id":1,"link":"photo_1008632.html","width":130,"caption":"Running Bunny - My attempt to create the aesthetic effects of blur. See Chris Weston's Wildlife through a Nikon lens. ","height":83});
															thumbnails[1035789] = clik.newPhoto({"id":1035789,"src":"Grevy's Zebra_thumb.jpg","galleries_id":45354,"server_id":1,"link":"photo_1035789.html","width":130,"caption":"Grevy's Zebra. This photo makes me laugh every time I see it","height":101});
															thumbnails[1040999] = clik.newPhoto({"id":1040999,"src":"Brahminy Kite_thumb.jpg","galleries_id":62355,"server_id":1,"link":"photo_1040999.html","width":130,"caption":"Brahminy Kite eating food from his talons on the wing","height":82});
															thumbnails[1165680] = clik.newPhoto({"id":1165680,"src":"Baboon looking up_thumb.JPG","galleries_id":45354,"server_id":1,"link":"photo_1165680.html","width":130,"caption":"Baboon taken by the water hole at Treetops in Kenya","height":160});
															thumbnails[1165695] = clik.newPhoto({"id":1165695,"src":"Bushbuck6_thumb.JPG","galleries_id":45354,"server_id":1,"link":"photo_1165695.html","width":130,"caption":"Young Bushbuck taken by the water hole at Treetops in Kenya","height":108});
															thumbnails[1165701] = clik.newPhoto({"id":1165701,"src":"Baby ele ears_thumb.jpg","galleries_id":45354,"server_id":1,"link":"photo_1165701.html","width":130,"caption":"Baby elephant taken at Samburu Kenya","height":87});
															thumbnails[1166472] = clik.newPhoto({"id":1166472,"src":"DSC_0164 (Large)_thumb.JPG","galleries_id":45354,"server_id":1,"link":"photo_1166472.html","width":130,"caption":"Spotted Hyaenas taken at Lake Nakuru, Kenya","height":76});
															thumbnails[1166475] = clik.newPhoto({"id":1166475,"src":"DSC_0335 (Large)_thumb.JPG","galleries_id":45344,"server_id":1,"link":"photo_1166475.html","width":130,"caption":"Cheetah taken in the Masai Mara","height":78});
															thumbnails[1166476] = clik.newPhoto({"id":1166476,"src":"DSC_0343 (Large)_thumb.JPG","galleries_id":45344,"server_id":1,"link":"photo_1166476.html","width":130,"caption":"Cheetah looks out for prey. Taken in the Masai Mara. ","height":188});
															thumbnails[1166481] = clik.newPhoto({"id":1166481,"src":"DSC_0419 (Large)_thumb.JPG","galleries_id":45344,"server_id":1,"link":"photo_1166481.html","width":130,"caption":"Lioness yawn. Taken in the Masai Mara","height":146});
															thumbnails[1166484] = clik.newPhoto({"id":1166484,"src":"DSC_9959 (Large)_thumb.JPG","galleries_id":45344,"server_id":1,"link":"photo_1166484.html","width":130,"caption":"Leopard. Taken in Samburu, Kenya","height":154});
															thumbnails[1166488] = clik.newPhoto({"id":1166488,"src":"DSC_0565 (Large)_thumb.JPG","galleries_id":45354,"server_id":1,"link":"photo_1166488.html","width":130,"caption":"Masai Giraffe taken in the Masai Mara","height":93});
															thumbnails[1166489] = clik.newPhoto({"id":1166489,"src":"Male Impala shadow_thumb.JPG","galleries_id":45354,"server_id":1,"link":"photo_1166489.html","width":130,"caption":"Male Impala taken early morning in Samburu","height":103});
															thumbnails[1166493] = clik.newPhoto({"id":1166493,"src":"Vervet Monkey_thumb.JPG","galleries_id":45354,"server_id":1,"link":"photo_1166493.html","width":130,"caption":"Vervet Monkey in Samburu, Kenya","height":167});
															thumbnails[1377306] = clik.newPhoto({"id":1377306,"src":"DSC_0956 (Medium)_thumb.JPG","galleries_id":45354,"server_id":1,"link":"photo_1377306.html","width":130,"caption":"Red Deer ","height":87});
															thumbnails[1408742] = clik.newPhoto({"id":1408742,"src":"Baby Otter_thumb.JPG","galleries_id":45354,"server_id":1,"link":"photo_1408742.html","width":130,"caption":"Baby Asian-short clawed Otter. Taken at Paradise Wildlife Park","height":147});
															thumbnails[1408767] = clik.newPhoto({"id":1408767,"src":"Meerkat_thumb.JPG","galleries_id":45354,"server_id":1,"link":"photo_1408767.html","width":130,"caption":"Meerkat - Taken at Paradise Wildlife Park ","height":87});
															thumbnails[1408769] = clik.newPhoto({"id":1408769,"src":"Lemur mirror_thumb.JPG","galleries_id":45354,"server_id":1,"link":"photo_1408769.html","width":130,"caption":"Ring-tailed Lemur","height":87});
															thumbnails[1408776] = clik.newPhoto({"id":1408776,"src":"Otter saying cheese_thumb.JPG","galleries_id":45354,"server_id":1,"link":"photo_1408776.html","width":130,"caption":"Otter smiling for the camera while eating","height":87});
															thumbnails[1408778] = clik.newPhoto({"id":1408778,"src":"Otter showing food_thumb.JPG","galleries_id":45354,"server_id":1,"link":"photo_1408778.html","width":130,"caption":"This Otter decided to show us what tasty morsal he was eating.","height":87});
															thumbnails[1410455] = clik.newPhoto({"id":1410455,"src":"Sunset Wales_thumb.JPG","galleries_id":72423,"server_id":1,"link":"photo_1410455.html","width":130,"caption":"Sunset - Taken near Dylife, Powys, Wales","height":87});
															thumbnails[1410506] = clik.newPhoto({"id":1410506,"src":"Abergynowyn_thumb.JPG","galleries_id":72423,"server_id":1,"link":"photo_1410506.html","width":130,"caption":"View over Abergynolwyn, Gwynedd, Wales ","height":87});
															thumbnails[1410520] = clik.newPhoto({"id":1410520,"src":"Lake Llyn Clewedog 2_thumb.JPG","galleries_id":72423,"server_id":1,"link":"photo_1410520.html","width":130,"caption":"View over Lake Llyn Clewedog, Powys, Wales","height":87});
															thumbnails[1434332] = clik.newPhoto({"id":1434332,"src":"Lemur_thumb.JPG","galleries_id":45354,"server_id":1,"link":"photo_1434332.html","width":130,"caption":"Ring-tailed Lemur - Taken at Whipsnade Zoo. Well worth a visit as you can go 'IN' with the Lemurs.","height":85});
															thumbnails[1435891] = clik.newPhoto({"id":1435891,"src":"Meerkat close_thumb.JPG","galleries_id":45354,"server_id":1,"link":"photo_1435891.html","width":130,"caption":"Meerkat (Suricata suricatta) - Member of the mongoose family.","height":87});
															thumbnails[1435919] = clik.newPhoto({"id":1435919,"src":"Ring-tailed Lemur eating bamboo_thumb.JPG","galleries_id":45354,"server_id":1,"link":"photo_1435919.html","width":130,"caption":"Ring-tailed Lemur eating bamboo","height":87});
															thumbnails[1479816] = clik.newPhoto({"id":1479816,"src":"Barking Sika Stag_thumb.JPG","galleries_id":45354,"server_id":1,"link":"photo_1479816.html","width":130,"caption":"Barking Sika Stag - Taken at Arne RSPB reserve Dorset 14th Oct 07","height":78});
															thumbnails[1479830] = clik.newPhoto({"id":1479830,"src":"Female Sika Deer close_thumb.JPG","galleries_id":45354,"server_id":1,"link":"photo_1479830.html","width":130,"caption":"Female Sika Deer taken at Arne RSPB reserve Dorset. ","height":87});
															thumbnails[1479840] = clik.newPhoto({"id":1479840,"src":"Female Sika Deer_thumb.JPG","galleries_id":45354,"server_id":1,"link":"photo_1479840.html","width":130,"caption":"Female Sika Deer (Cervus nippon) taken at Arne RSPB reserve in Dorset.","height":87});
															thumbnails[1592866] = clik.newPhoto({"id":1592866,"src":"Christchurch Bay_thumb.JPG","galleries_id":72423,"server_id":1,"link":"photo_1592866.html","width":130,"caption":"Christchurch Bay","height":87});
															thumbnails[1592894] = clik.newPhoto({"id":1592894,"src":"Grey Squirrel_thumb.JPG","galleries_id":45354,"server_id":1,"link":"photo_1592894.html","width":130,"caption":"Grey Squirrel - Taken at Arne RSPB reserve in Dorset","height":87});
															thumbnails[1592895] = clik.newPhoto({"id":1592895,"src":"Old Barns Langton Matravers_thumb.JPG","galleries_id":72423,"server_id":1,"link":"photo_1592895.html","width":130,"caption":"Old Barns - Langton Matravers Dorset","height":87});
															thumbnails[1592900] = clik.newPhoto({"id":1592900,"src":"Sika family_thumb.JPG","galleries_id":45354,"server_id":1,"link":"photo_1592900.html","width":130,"caption":"A family of Sika Deer - Taken at Arne RSPB reserve in Dorset","height":87});
															thumbnails[1592902] = clik.newPhoto({"id":1592902,"src":"Sunset over Mudeford_thumb.JPG","galleries_id":72423,"server_id":1,"link":"photo_1592902.html","width":130,"caption":"Sunset over Mudeford","height":87});
															thumbnails[1592906] = clik.newPhoto({"id":1592906,"src":"View of Corfe Castle in the rain_thumb.JPG","galleries_id":72423,"server_id":1,"link":"photo_1592906.html","width":130,"caption":"View of Corfe Castle in the rain taken from the Langton Matravers road ","height":87});
															thumbnails[1592908] = clik.newPhoto({"id":1592908,"src":"Windsurfer off Kimmeridge bay_thumb.JPG","galleries_id":72423,"server_id":1,"link":"photo_1592908.html","width":130,"caption":"Windsurfer off Kimmeridge Bay","height":87});
															thumbnails[1709186] = clik.newPhoto({"id":1709186,"src":"misty trees_thumb.JPG","galleries_id":72423,"server_id":1,"link":"photo_1709186.html","width":130,"caption":"Trees in the mist. Taken from Bison Hill in Bedfordshire looking towards Ivanhoe Beacon","height":87});
															thumbnails[2129249] = clik.newPhoto({"id":2129249,"src":"Spider1_thumb.JPG","galleries_id":45355,"server_id":1,"link":"photo_2129249.html","width":130,"caption":"Money Spider (Linyphia hortensis) in the bluebells","height":87});
															thumbnails[2129255] = clik.newPhoto({"id":2129255,"src":"Cairn with bluebells_thumb.JPG","galleries_id":72423,"server_id":1,"link":"photo_2129255.html","width":130,"caption":"Bluebells with cairn","height":87});
															thumbnails[2129259] = clik.newPhoto({"id":2129259,"src":"Bee orchid Durlston_thumb.JPG","galleries_id":45352,"server_id":1,"link":"photo_2129259.html","width":130,"caption":"Bee Orchid","height":89});
															thumbnails[2129282] = clik.newPhoto({"id":2129282,"src":"Sarratt in the snow_thumb.JPG","galleries_id":72423,"server_id":1,"link":"photo_2129282.html","width":130,"caption":"Sarratt in the snow","height":87});
															thumbnails[2129309] = clik.newPhoto({"id":2129309,"src":"Cheetah whippy_thumb.JPG","galleries_id":45344,"server_id":1,"link":"photo_2129309.html","width":130,"caption":"My old favourite the Cheetah.","height":80});
															thumbnails[2253221] = clik.newPhoto({"id":2253221,"src":"Eagle Owl_thumb.JPG","galleries_id":62355,"server_id":1,"link":"photo_2253221.html","width":130,"caption":"Eagle Owl (Bubo bubo) in flight","height":74});
															thumbnails[2536033] = clik.newPhoto({"id":2536033,"src":"Dinner has arrived_thumb.JPG","galleries_id":62355,"server_id":1,"link":"photo_2536033.html","width":130,"caption":"Dinner has arrived","height":87});
															thumbnails[2536038] = clik.newPhoto({"id":2536038,"src":"In burrow with flowers_thumb.JPG","galleries_id":62355,"server_id":1,"link":"photo_2536038.html","width":130,"caption":"Puffin in burrow","height":87});
															thumbnails[2536042] = clik.newPhoto({"id":2536042,"src":"Manx Shearwater_thumb.JPG","galleries_id":62355,"server_id":1,"link":"photo_2536042.html","width":130,"caption":"Manx Shearwater","height":87});
															thumbnails[2536055] = clik.newPhoto({"id":2536055,"src":"Martin Haven_thumb.JPG","galleries_id":72423,"server_id":1,"link":"photo_2536055.html","width":130,"caption":"Martin Haven, Pembrokeshire","height":87});
															thumbnails[2536066] = clik.newPhoto({"id":2536066,"src":"Puffin fly with fish_thumb.JPG","galleries_id":62355,"server_id":1,"link":"photo_2536066.html","width":130,"caption":"Puffin flying with sand eels","height":77});
															thumbnails[2536076] = clik.newPhoto({"id":2536076,"src":"Where's dinner_thumb.JPG","galleries_id":62355,"server_id":1,"link":"photo_2536076.html","width":130,"caption":"Where's dinner?","height":81});
															thumbnails[2536083] = clik.newPhoto({"id":2536083,"src":"Flying_thumb.JPG","galleries_id":62355,"server_id":1,"link":"photo_2536083.html","width":130,"caption":"Puffin flying","height":83});
															thumbnails[2536108] = clik.newPhoto({"id":2536108,"src":"Portrait of puffin_thumb.JPG","galleries_id":62355,"server_id":1,"link":"photo_2536108.html","width":130,"caption":"Puffin (Fratercula arctica) on Skomer","height":87});
															thumbnails[2717272] = clik.newPhoto({"id":2717272,"src":"Blue_thumb.JPG","galleries_id":45355,"server_id":1,"link":"photo_2717272.html","width":130,"caption":"Common blue butterfly (Polyommatus icarus) on Birdsfoot Trefoil (Lotus corniculatus)","height":83});
															thumbnails[2901217] = clik.newPhoto({"id":2901217,"src":"DSC_1268 (Large)_thumb.JPG","galleries_id":62355,"server_id":1,"link":"photo_2901217.html","width":129,"caption":"Robin (Erithacus rubecula) ","height":86});
															thumbnails[2901262] = clik.newPhoto({"id":2901262,"src":"Lions looking at glider_thumb.JPG","galleries_id":45344,"server_id":1,"link":"photo_2901262.html","width":129,"caption":"Is it a bird? The Whipsnade Pride look up ","height":86});
															thumbnails[2901266] = clik.newPhoto({"id":2901266,"src":"Lion look_thumb.JPG","galleries_id":45344,"server_id":1,"link":"photo_2901266.html","width":129,"caption":"One of the Whipsnade Pride","height":86});
															thumbnails[3021126] = clik.newPhoto({"id":3021126,"src":"Superb Starling with grape_thumb.JPG","galleries_id":62355,"server_id":1,"link":"photo_3021126.html","width":130,"caption":"","height":79});
															thumbnails[3063654] = clik.newPhoto({"id":3063654,"src":"Wildcat (3)_thumb.JPG","galleries_id":193759,"server_id":1,"link":"photo_3063654.html","width":130,"caption":"Wildcat (Felis silvestris) ","height":87});
															thumbnails[3063708] = clik.newPhoto({"id":3063708,"src":"Polecat_thumb.JPG","galleries_id":193759,"server_id":1,"link":"photo_3063708.html","width":130,"caption":"Polecat (Mustela putorius) ","height":83});
															thumbnails[3063728] = clik.newPhoto({"id":3063728,"src":"Mink_thumb.JPG","galleries_id":193759,"server_id":1,"link":"photo_3063728.html","width":130,"caption":"Mink (Mustela lutreola)","height":88});
															thumbnails[3063753] = clik.newPhoto({"id":3063753,"src":"Fox_thumb.JPG","galleries_id":193759,"server_id":1,"link":"photo_3063753.html","width":130,"caption":"Fox (Vulpes vulpes)","height":87});
															thumbnails[3064741] = clik.newPhoto({"id":3064741,"src":"weasel4 (Large)_thumb.JPG","galleries_id":193759,"server_id":1,"link":"photo_3064741.html","width":130,"caption":"Weasel (Mustela nivalis) ","height":86});
															thumbnails[3067876] = clik.newPhoto({"id":3067876,"src":"Fox (1)_thumb.JPG","galleries_id":193759,"server_id":1,"link":"photo_3067876.html","width":130,"caption":"Fox ","height":88});
															thumbnails[3067880] = clik.newPhoto({"id":3067880,"src":"Little Owl_thumb.JPG","galleries_id":193759,"server_id":1,"link":"photo_3067880.html","width":130,"caption":"Little Owl (Athene noctua)","height":89});
															thumbnails[3067884] = clik.newPhoto({"id":3067884,"src":"Wildcat (2)_thumb.JPG","galleries_id":193759,"server_id":1,"link":"photo_3067884.html","width":130,"caption":"Not so wildcat","height":87});
															thumbnails[3155422] = clik.newPhoto({"id":3155422,"src":"Grey seal pup_thumb.jpg","galleries_id":45354,"server_id":1,"link":"photo_3155422.html","width":130,"caption":"Baby Grey Seal - Taken at Donna Nook Lincolnshire","height":86});
															thumbnails[3164095] = clik.newPhoto({"id":3164095,"src":"Beauty and the beast_thumb.jpg","galleries_id":45354,"server_id":1,"link":"photo_3164095.html","width":130,"caption":"Beauty & the beast","height":83});
															thumbnails[3164096] = clik.newPhoto({"id":3164096,"src":"Pals_thumb.jpg","galleries_id":45354,"server_id":1,"link":"photo_3164096.html","width":130,"caption":"Pals - 2 young Grey Seals playing in the surf stopped and posed for photos","height":93});
															thumbnails[3164159] = clik.newPhoto({"id":3164159,"src":"Playing_thumb.jpg","galleries_id":45354,"server_id":1,"link":"photo_3164159.html","width":130,"caption":"Grey Seals playing in the surf","height":86});
															thumbnails[3164164] = clik.newPhoto({"id":3164164,"src":"Hello_thumb.jpg","galleries_id":45354,"server_id":1,"link":"photo_3164164.html","width":130,"caption":"Hello! Grey Seal Pup","height":91});
															thumbnails[3164184] = clik.newPhoto({"id":3164184,"src":"Sanderling_thumb.jpg","galleries_id":62355,"server_id":1,"link":"photo_3164184.html","width":130,"caption":"Sanderling (Calidris alba) ","height":89});
															thumbnails[3164186] = clik.newPhoto({"id":3164186,"src":"catch me if you can_thumb.jpg","galleries_id":45354,"server_id":1,"link":"photo_3164186.html","width":130,"caption":"Catch me if you can - The bull seal chases the cow","height":86});
															thumbnails[3164187] = clik.newPhoto({"id":3164187,"src":"Wave_thumb.jpg","galleries_id":45354,"server_id":1,"link":"photo_3164187.html","width":130,"caption":"Grey Seal in the surf","height":84});
															thumbnails[3164190] = clik.newPhoto({"id":3164190,"src":"on back_thumb.jpg","galleries_id":45354,"server_id":1,"link":"photo_3164190.html","width":130,"caption":"This is the life ","height":94});
															thumbnails[3446164] = clik.newPhoto({"id":3446164,"src":"Gekko_thumb.jpg","galleries_id":257313,"server_id":1,"link":"photo_3446164.html","width":130,"caption":"Gargoyle Gecko (Rhacodactylus auriculatus)<br>\r\n<br>\r\n","height":86});
															thumbnails[3446165] = clik.newPhoto({"id":3446165,"src":"Tree Frog_thumb.jpg","galleries_id":257313,"server_id":1,"link":"photo_3446165.html","width":130,"caption":"American Green Tree Frog (Hyla cinerea)<br>\r\n<br>\r\n","height":87});
															thumbnails[3446166] = clik.newPhoto({"id":3446166,"src":"Tree Frog2_thumb.jpg","galleries_id":257313,"server_id":1,"link":"photo_3446166.html","width":130,"caption":"Vietnamese Blue Flying Frog<br>\r\n<br>\r\n","height":85});
															thumbnails[3446167] = clik.newPhoto({"id":3446167,"src":"TreeFrog5_thumb.jpg","galleries_id":257313,"server_id":1,"link":"photo_3446167.html","width":130,"caption":"Peacock Tree Frog ","height":89});
															thumbnails[3449411] = clik.newPhoto({"id":3449411,"src":"Mantis_thumb.jpg","galleries_id":257313,"server_id":1,"link":"photo_3449411.html","width":130,"caption":"Mantis","height":85});
															thumbnails[4383136] = clik.newPhoto({"id":4383136,"src":"Wolf_howl_thumb.jpg","galleries_id":45354,"server_id":1,"link":"photo_4383136.html","width":130,"caption":"Wolf Howl","height":87});
															thumbnails[4383241] = clik.newPhoto({"id":4383241,"src":"DSC_4397NEF_Large_thumb.jpg","galleries_id":298545,"server_id":1,"link":"photo_4383241.html","width":130,"caption":"","height":91});
															thumbnails[4383243] = clik.newPhoto({"id":4383243,"src":"DSC_4447NEF_Large_thumb.jpg","galleries_id":298545,"server_id":1,"link":"photo_4383243.html","width":130,"caption":"","height":86});
															thumbnails[4383244] = clik.newPhoto({"id":4383244,"src":"DSC_4507NEF_Large_thumb.jpg","galleries_id":298545,"server_id":1,"link":"photo_4383244.html","width":130,"caption":"","height":87});
															thumbnails[4383245] = clik.newPhoto({"id":4383245,"src":"DSC_4520NEF_Large_thumb.jpg","galleries_id":298545,"server_id":1,"link":"photo_4383245.html","width":130,"caption":"","height":83});
															thumbnails[4383248] = clik.newPhoto({"id":4383248,"src":"DSC_4646NEF_Large_thumb.jpg","galleries_id":298545,"server_id":1,"link":"photo_4383248.html","width":130,"caption":"","height":83});
															thumbnails[4383252] = clik.newPhoto({"id":4383252,"src":"DSC_4665NEF_Large_thumb.jpg","galleries_id":298545,"server_id":1,"link":"photo_4383252.html","width":130,"caption":"","height":85});
															thumbnails[4383275] = clik.newPhoto({"id":4383275,"src":"DSC_4696_Large_thumb.jpg","galleries_id":298545,"server_id":1,"link":"photo_4383275.html","width":130,"caption":"","height":87});
															thumbnails[4383281] = clik.newPhoto({"id":4383281,"src":"DSC_4419NEF_Large_thumb.jpg","galleries_id":298545,"server_id":1,"link":"photo_4383281.html","width":130,"caption":"","height":92});
															thumbnails[5306916] = clik.newPhoto({"id":5306916,"src":"Woodpecker_thumb.jpg","galleries_id":62355,"server_id":1,"link":"photo_5306916.html","width":130,"caption":"Great Spotted Woodpecker","height":88});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[298545] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Anglian Wolf Society","link":"gallery_298545.html","maxRecords":0.0,"photoIDs":[4383241.0,4383243.0,4383244.0,4383245.0,4383248.0,4383252.0,4383275.0,4383281.0],"skipIndex":0,"section_code":"gallery","featured_images":4383244.0,"id":298545,"singleSection":false});				  						galleries[45344] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Big Cats","link":"gallery_45344.html","maxRecords":0.0,"photoIDs":[642094.0,642449.0,642450.0,642452.0,642453.0,655867.0,658352.0,674488.0,804801.0,806572.0,937216.0,989097.0,991707.0,991718.0,991720.0,1166475.0,1166476.0,1166481.0,1166484.0,2129309.0,2901262.0,2901266.0],"skipIndex":0,"section_code":"gallery","featured_images":642453.0,"id":45344,"singleSection":false});				  						galleries[62355] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Birds","link":"gallery_62355.html","maxRecords":0.0,"photoIDs":[804692.0,937215.0,950907.0,997143.0,997144.0,1040999.0,2253221.0,2536033.0,2536038.0,2536042.0,2536066.0,2536076.0,2536083.0,2536108.0,2901217.0,3021126.0,3164184.0,5306916.0],"skipIndex":0,"section_code":"gallery","featured_images":"5306916,3164184,3021126,2901217,2536108,2536083,2536076,2536066,2536042,2536038","id":62355,"singleSection":false});				  						galleries[193759] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"British Wildlife Centre","link":"gallery_193759.html","maxRecords":0.0,"photoIDs":[3063654.0,3063708.0,3063728.0,3063753.0,3064741.0,3067876.0,3067880.0,3067884.0],"skipIndex":0,"section_code":"gallery","featured_images":3063753.0,"id":193759,"singleSection":false});				  						galleries[45354] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Fauna","link":"gallery_45354.html","maxRecords":0.0,"photoIDs":[1877690.0,642451.0,717124.0,717125.0,749530.0,804609.0,997146.0,1008632.0,1035789.0,1165680.0,1165695.0,1165701.0,1166472.0,1166488.0,1166489.0,1166493.0,1377306.0,1408742.0,1408767.0,1408769.0,1408776.0,1408778.0,1434332.0,1435891.0,1435919.0,1479816.0,1479830.0,1479840.0,1592894.0,1592900.0,3155422.0,3164095.0,3164096.0,3164159.0,3164164.0,3164186.0,3164187.0,3164190.0,4383136.0],"skipIndex":0,"section_code":"gallery","featured_images":642451.0,"id":45354,"singleSection":false});				  						galleries[45352] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Flora","link":"gallery_45352.html","maxRecords":0.0,"photoIDs":[658230.0,683361.0,683699.0,720954.0,998594.0,998626.0,2129259.0],"skipIndex":0,"section_code":"gallery","featured_images":"2129259,998626,998594,720954,683699,683361,658230","id":45352,"singleSection":false});				  						galleries[45355] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Insects","link":"gallery_45355.html","maxRecords":0.0,"photoIDs":[642447.0,683615.0,683628.0,683642.0,683648.0,683666.0,2129249.0,2717272.0],"skipIndex":0,"section_code":"gallery","featured_images":683642.0,"id":45355,"singleSection":false});				  						galleries[72423] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Landscapes","link":"gallery_72423.html","maxRecords":0.0,"photoIDs":[959432.0,1410455.0,1410506.0,1410520.0,1592866.0,1592895.0,1592902.0,1592906.0,1592908.0,1709186.0,2129255.0,2129282.0,2536055.0],"skipIndex":0,"section_code":"gallery","featured_images":"2536055,2129282,2129255,1709186,1592908,1592906,1592902,1592895,1592866,1410520","id":72423,"singleSection":false});				  						galleries[45356] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Maddy & Sampson","link":"gallery_45356.html","maxRecords":0.0,"photoIDs":[668000.0,668024.0,683346.0,683360.0,720924.0],"skipIndex":0,"section_code":"gallery","featured_images":"720924,683360,683346,668024,668000","id":45356,"singleSection":false});				  						galleries[74627] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"New Photos","link":"section105916.html","maxRecords":0.0,"photoIDs":[8445014.0,8445039.0],"skipIndex":0,"section_code":"section105916","featured_images":"8445039,8445014","id":74627,"singleSection":true});				  						galleries[257313] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wild Arena Macro Experience","link":"gallery_257313.html","maxRecords":0.0,"photoIDs":[3446164.0,3446165.0,3446166.0,3446167.0,3449411.0],"skipIndex":0,"section_code":"gallery","featured_images":"3449411,3446167,3446166,3446165,3446164","id":257313,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '3446161';
imageSets[2] = '4383244,3063753,683642,642453,642451';
imageSets[3] = '8445039,8445014,5306916,4383281,4383275,4383252,4383248,4383245,4383244,4383243,4383241,4383136,3449411,3446167,3446166,3446165,3446164,3446161,3164190,3164187,3164186,3164184,3164164,3164159,3164096,3164095,3155422,3067884,3067880,3067876,3064741,3063753,3063728,3063708,3063654,3021126,2901266,2901262,2901217,2717272,2536108,2536083,2536076,2536066,2536055,2536042,2536038,2536033,2253221,2129309';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/paulineworrall/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/paulineworrall/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/paulineworrall/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/paulineworrall/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/paulineworrall/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/paulineworrall/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/paulineworrall/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/paulineworrall/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/paulineworrall/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/paulineworrall/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/paulineworrall/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/paulineworrall/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/paulineworrall/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/paulineworrall/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/paulineworrall/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/paulineworrall/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/paulineworrall/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/paulineworrall/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/paulineworrall/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/paulineworrall/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/paulineworrall/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/paulineworrall/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/paulineworrall/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = backgrounds && backgrounds[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'section105916.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 && 'section105916' != '') {
					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 = 'Pauline Worrall Photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

