window.thumbnails = {};
															thumbnails[1767707] = clik.newPhoto({"id":1767707,"src":"Red Kite 1_thumb.jpg","galleries_id":118810,"server_id":1,"link":"photo_1767707.html","width":130,"caption":"The most beautiful bird in the UK ? ","height":92});
															thumbnails[1767737] = clik.newPhoto({"id":1767737,"src":"Red Kite 2_thumb.jpg","galleries_id":118810,"server_id":1,"link":"photo_1767737.html","width":130,"caption":"Red Kite twisting its tail feathers through 90 degrees enables quick tight turns which helps in chasing its prey.","height":92});
															thumbnails[1767844] = clik.newPhoto({"id":1767844,"src":"Red Kite on feeding on the wing1_thumb.jpg","galleries_id":118810,"server_id":1,"link":"photo_1767844.html","width":130,"caption":"Will pluck their prey from the ground and feed on the wing","height":91});
															thumbnails[1767849] = clik.newPhoto({"id":1767849,"src":"Puffin_thumb.jpg","galleries_id":118814,"server_id":1,"link":"photo_1767849.html","width":130,"caption":"Puffins are so comical and colourful","height":93});
															thumbnails[1767850] = clik.newPhoto({"id":1767850,"src":"Puffin face_thumb.jpg","galleries_id":118814,"server_id":1,"link":"photo_1767850.html","width":130,"caption":"This little bird only breeds on islands protected from rats which eats the eggs.","height":93});
															thumbnails[1767853] = clik.newPhoto({"id":1767853,"src":"Puffin takeoff_thumb.jpg","galleries_id":118814,"server_id":1,"link":"photo_1767853.html","width":130,"caption":"Having such small slender wings means a long run and leap off the edge of a cliff for takeoff","height":93});
															thumbnails[1767856] = clik.newPhoto({"id":1767856,"src":"Snack time Puffin 1_thumb.jpg","galleries_id":119077,"server_id":1,"link":"photo_1767856.html","width":130,"caption":"Skomer puffin","height":183});
															thumbnails[1767859] = clik.newPhoto({"id":1767859,"src":"Something fishy Puffin_thumb.jpg","galleries_id":118814,"server_id":1,"link":"photo_1767859.html","width":130,"caption":"How do they arrange their meal like this?","height":93});
															thumbnails[1768917] = clik.newPhoto({"id":1768917,"src":"Osprey 3_thumb.jpg","galleries_id":390692,"server_id":1,"link":"photo_1768917.html","width":130,"caption":"Osprey","height":184});
															thumbnails[1768919] = clik.newPhoto({"id":1768919,"src":"Osprey 4_thumb.jpg","galleries_id":390692,"server_id":1,"link":"photo_1768919.html","width":130,"caption":"Osprey after spotting this bird spent another two weeks at the same site hoping to see him again but with no luck.","height":184});
															thumbnails[1768930] = clik.newPhoto({"id":1768930,"src":"Common Dolphin & calf_thumb.jpg","galleries_id":118915,"server_id":1,"link":"photo_1768930.html","width":130,"caption":"COMMON DOLPHIN WITH CALF","height":92});
															thumbnails[1768931] = clik.newPhoto({"id":1768931,"src":"Common Dolphin & Calf 2_thumb.jpg","galleries_id":118915,"server_id":1,"link":"photo_1768931.html","width":130,"caption":"COMMON DOLPHIN WITH CALF PART OF A MUCH LARGE POD","height":92});
															thumbnails[1771604] = clik.newPhoto({"id":1771604,"src":"Carreg Cennen castle in the snow_thumb.jpg","galleries_id":119067,"server_id":1,"link":"photo_1771604.html","width":130,"caption":"As I fought my way through blizzards, snow drifts, howling wind this scene opened up in front of me.Ok the weather conditions were not quite that bad but it sounds more dramatic !","height":87});
															thumbnails[1771607] = clik.newPhoto({"id":1771607,"src":"Clem,Emry's & friend sheepshearing_thumb.jpg","galleries_id":169478,"server_id":1,"link":"photo_1771607.html","width":130,"caption":"This is a scene I hope will never disappear!  ","height":91});
															thumbnails[1771610] = clik.newPhoto({"id":1771610,"src":"Mountain horses_thumb.jpg","galleries_id":119067,"server_id":1,"link":"photo_1771610.html","width":130,"caption":"Wild and free.","height":93});
															thumbnails[1771612] = clik.newPhoto({"id":1771612,"src":"Ramsey Stag_thumb.jpg","galleries_id":119067,"server_id":1,"link":"photo_1771612.html","width":130,"caption":"Red Deer stag Ramsey Island ","height":92});
															thumbnails[1771629] = clik.newPhoto({"id":1771629,"src":"Carreg Cennen castle at night_thumb.jpg","galleries_id":119070,"server_id":1,"link":"photo_1771629.html","width":130,"caption":"This castle looks just as dramatic when the floodlights are turned on as it does in daylight<br>\r\nCan recommend a visit. ","height":92});
															thumbnails[1771730] = clik.newPhoto({"id":1771730,"src":"Dawn over the Teife_thumb.jpg","galleries_id":119070,"server_id":1,"link":"photo_1771730.html","width":130,"caption":"While hoping to photograph otters one summers morning the sunrise was beautiful.Never saw any otters though!!!","height":92});
															thumbnails[1771740] = clik.newPhoto({"id":1771740,"src":"Wharley Point towards the Gower_thumb.jpg","galleries_id":119070,"server_id":1,"link":"photo_1771740.html","width":130,"caption":"Wharley point looking towards the Gower on a very cold January day.","height":195});
															thumbnails[1772067] = clik.newPhoto({"id":1772067,"src":"Gillimots 1_thumb.jpg","galleries_id":119077,"server_id":1,"link":"photo_1772067.html","width":130,"caption":"Gillimots as featured by Iolo Williams on his Welsh Safari","height":87});
															thumbnails[2272169] = clik.newPhoto({"id":2272169,"src":"Fox Cubs playing_thumb.jpg","galleries_id":258184,"server_id":1,"link":"photo_2272169.html","width":130,"caption":"Fox cubs playing","height":83});
															thumbnails[2272175] = clik.newPhoto({"id":2272175,"src":"Round them up, yeeehhaaaa!_thumb.JPG","galleries_id":169478,"server_id":1,"link":"photo_2272175.html","width":130,"caption":"If you get the chance to go to Sheepdog trails, then take it and go, its a battle of minds between Sheperd, dog & sheep.","height":87});
															thumbnails[2398140] = clik.newPhoto({"id":2398140,"src":"Perigrine 1_thumb.jpg","galleries_id":390692,"server_id":1,"link":"photo_2398140.html","width":130,"caption":"Young perigrine","height":91});
															thumbnails[2398141] = clik.newPhoto({"id":2398141,"src":"Perigrine 2_thumb.jpg","galleries_id":390692,"server_id":1,"link":"photo_2398141.html","width":130,"caption":"Perigrine","height":91});
															thumbnails[2398143] = clik.newPhoto({"id":2398143,"src":"Perigrine 3_thumb.jpg","galleries_id":390692,"server_id":1,"link":"photo_2398143.html","width":130,"caption":"Perigrine enjoying its kill","height":87});
															thumbnails[2476532] = clik.newPhoto({"id":2476532,"src":"Badger 4_thumb.jpg","galleries_id":119067,"server_id":1,"link":"photo_2476532.html","width":130,"caption":"Badger evening stroll","height":91});
															thumbnails[2684453] = clik.newPhoto({"id":2684453,"src":"Emry's shearing_thumb.jpg","galleries_id":169478,"server_id":1,"link":"photo_2684453.html","width":130,"caption":"","height":91});
															thumbnails[2684454] = clik.newPhoto({"id":2684454,"src":"Ploughing seagulls_thumb.jpg","galleries_id":169478,"server_id":1,"link":"photo_2684454.html","width":130,"caption":"","height":91});
															thumbnails[2684456] = clik.newPhoto({"id":2684456,"src":"Sheep drove_thumb.jpg","galleries_id":169478,"server_id":1,"link":"photo_2684456.html","width":130,"caption":"","height":87});
															thumbnails[3388662] = clik.newPhoto({"id":3388662,"src":"Badger 2_thumb.jpg","galleries_id":119067,"server_id":1,"link":"photo_3388662.html","width":130,"caption":"Badger","height":92});
															thumbnails[3388668] = clik.newPhoto({"id":3388668,"src":"Buzzy_thumb.jpg","galleries_id":390692,"server_id":1,"link":"photo_3388668.html","width":130,"caption":"Buzzard on post","height":91});
															thumbnails[3388678] = clik.newPhoto({"id":3388678,"src":"Heron in flight 1_thumb.jpg","galleries_id":119077,"server_id":1,"link":"photo_3388678.html","width":130,"caption":"Heron in flight","height":91});
															thumbnails[3388689] = clik.newPhoto({"id":3388689,"src":"Pheasent_thumb.jpg","galleries_id":119077,"server_id":1,"link":"photo_3388689.html","width":130,"caption":"Pheasent","height":91});
															thumbnails[3388691] = clik.newPhoto({"id":3388691,"src":"Raven_thumb.jpg","galleries_id":119077,"server_id":1,"link":"photo_3388691.html","width":130,"caption":"Raven","height":91});
															thumbnails[3436029] = clik.newPhoto({"id":3436029,"src":"Carreg Cennen Castle towards Carmarthenshire Fans_thumb.jpg","galleries_id":119070,"server_id":1,"link":"photo_3436029.html","width":130,"caption":"Cerreg Cennen castle towards the Carmarthenshire Fans","height":87});
															thumbnails[3436031] = clik.newPhoto({"id":3436031,"src":"CC3_thumb.jpg","galleries_id":119070,"server_id":1,"link":"photo_3436031.html","width":130,"caption":"Cerreg Cennen Castle snowbound","height":87});
															thumbnails[4983129] = clik.newPhoto({"id":4983129,"src":"Heavenly_4_thumb.jpg","galleries_id":283067,"server_id":1,"link":"photo_4983129.html","width":130,"caption":"Prince Charles meeting the people on the steps of Heavenly, Llandeilo.","height":92});
															thumbnails[4993404] = clik.newPhoto({"id":4993404,"src":"_GBA9983_9033_thumb.jpg","galleries_id":283067,"server_id":1,"link":"photo_4993404.html","width":130,"caption":"Three Cocks Rally, with Hay on Wye & Hays Buff in background, working from helecopter","height":87});
															thumbnails[4993486] = clik.newPhoto({"id":4993486,"src":"_GBA0202_9250_thumb.jpg","galleries_id":283067,"server_id":1,"link":"photo_4993486.html","width":130,"caption":"Steam up at Three Cocks Rally","height":87});
															thumbnails[4993524] = clik.newPhoto({"id":4993524,"src":"_GBA4825_3907_thumb.jpg","galleries_id":283067,"server_id":1,"link":"photo_4993524.html","width":130,"caption":"Shane Williams, Trap fun run. ","height":87});
															thumbnails[4993537] = clik.newPhoto({"id":4993537,"src":"_GBA4844_3926_thumb.jpg","galleries_id":283067,"server_id":1,"link":"photo_4993537.html","width":130,"caption":"Shane Williams meeting some of the girls organizing Trap fun run","height":87});
															thumbnails[4993564] = clik.newPhoto({"id":4993564,"src":"Warlock_thumb.jpg","galleries_id":283067,"server_id":1,"link":"photo_4993564.html","width":130,"caption":"Warlock, private commission.","height":184});
															thumbnails[4993622] = clik.newPhoto({"id":4993622,"src":"Longhorns_1_thumb.jpg","galleries_id":119067,"server_id":1,"link":"photo_4993622.html","width":130,"caption":"Dinefwr Longhorns","height":92});
															thumbnails[4993627] = clik.newPhoto({"id":4993627,"src":"Trotting_1_thumb.jpg","galleries_id":169478,"server_id":1,"link":"photo_4993627.html","width":130,"caption":"Trotting, Beulah Show","height":92});
															thumbnails[4999617] = clik.newPhoto({"id":4999617,"src":"_GBA1777_0891_thumb.jpg","galleries_id":119070,"server_id":1,"link":"photo_4999617.html","width":130,"caption":"Autumn in Dinefwr Park, Llandeilo","height":87});
															thumbnails[4999618] = clik.newPhoto({"id":4999618,"src":"_GBA1831_0945_thumb.jpg","galleries_id":169478,"server_id":1,"link":"photo_4999618.html","width":130,"caption":"Sheep auction, Southam flock.","height":87});
															thumbnails[5393120] = clik.newPhoto({"id":5393120,"src":"_GBA4845_4004_thumb.jpg","galleries_id":119067,"server_id":1,"link":"photo_5393120.html","width":130,"caption":"Winter feed","height":92});
															thumbnails[5393146] = clik.newPhoto({"id":5393146,"src":"Carreg_Cennen_in_the_mist_thumb.jpg","galleries_id":119070,"server_id":1,"link":"photo_5393146.html","width":130,"caption":"Carreg Cennen in the mist","height":92});
															thumbnails[5393153] = clik.newPhoto({"id":5393153,"src":"Spotted_Woodpecker_thumb.jpg","galleries_id":119077,"server_id":1,"link":"photo_5393153.html","width":130,"caption":"Spotted Woodpecker","height":92});
															thumbnails[5837286] = clik.newPhoto({"id":5837286,"src":"Anglesea_Red_Squirrel_thumb.jpg","galleries_id":119067,"server_id":1,"link":"photo_5837286.html","width":130,"caption":"Welsh Red Squirrel","height":92});
															thumbnails[5837296] = clik.newPhoto({"id":5837296,"src":"Red_Kite_perched_thumb.jpg","galleries_id":118810,"server_id":1,"link":"photo_5837296.html","width":130,"caption":"Red Kite perched","height":184});
															thumbnails[5837310] = clik.newPhoto({"id":5837310,"src":"Fan_Foel_Red_Kite_thumb.jpg","galleries_id":118810,"server_id":1,"link":"photo_5837310.html","width":130,"caption":"Fan Foel Red Kite","height":92});
															thumbnails[6520707] = clik.newPhoto({"id":6520707,"src":"_GBA1177_1394_thumb.jpg","galleries_id":283067,"server_id":1,"link":"photo_6520707.html","width":130,"caption":"Barley Festival, Cardigan","height":92});
															thumbnails[6520710] = clik.newPhoto({"id":6520710,"src":"_GBA5158_thumb.jpg","galleries_id":119077,"server_id":1,"link":"photo_6520710.html","width":130,"caption":"Woodpeckers","height":92});
															thumbnails[6520717] = clik.newPhoto({"id":6520717,"src":"_GBA9449_thumb.jpg","galleries_id":119067,"server_id":1,"link":"photo_6520717.html","width":130,"caption":"Red Squirrels","height":92});
															thumbnails[6520718] = clik.newPhoto({"id":6520718,"src":"Hedgelaying_2010_668CE8E2-24E8-5EC4-4F76AFD564B0817B_thumb.jpg","galleries_id":169478,"server_id":1,"link":"photo_6520718.html","width":130,"caption":"Hedgelaying","height":92});
															thumbnails[6520721] = clik.newPhoto({"id":6520721,"src":"Puffin_No1_thumb.jpg","galleries_id":118814,"server_id":1,"link":"photo_6520721.html","width":130,"caption":"Puffin 2010","height":92});
															thumbnails[6520724] = clik.newPhoto({"id":6520724,"src":"Puffin_takeoff_1_thumb.jpg","galleries_id":118814,"server_id":1,"link":"photo_6520724.html","width":130,"caption":"Puffin take off !!!","height":92});
															thumbnails[6935027] = clik.newPhoto({"id":6935027,"src":"_GBA3551_copy_thumb.JPG","galleries_id":119067,"server_id":1,"link":"photo_6935027.html","width":130,"caption":"Sika rut","height":92});
															thumbnails[6935051] = clik.newPhoto({"id":6935051,"src":"_GBA3574_copy_thumb.jpg","galleries_id":119067,"server_id":1,"link":"photo_6935051.html","width":130,"caption":"Sika rutting","height":92});
															thumbnails[7068104] = clik.newPhoto({"id":7068104,"src":"_GBA1797_thumb.jpg","galleries_id":119067,"server_id":1,"link":"photo_7068104.html","width":130,"caption":"Summers day in The Brecons","height":92});
															thumbnails[7069094] = clik.newPhoto({"id":7069094,"src":"Froggy_thumb.jpg","galleries_id":119067,"server_id":1,"link":"photo_7069094.html","width":130,"caption":"Mr Toad","height":92});
															thumbnails[7230947] = clik.newPhoto({"id":7230947,"src":"Baby_Puffin_thumb.jpg","galleries_id":118814,"server_id":1,"link":"photo_7230947.html","width":130,"caption":"Young puffin","height":92});
															thumbnails[7230950] = clik.newPhoto({"id":7230950,"src":"Buzzard_Rabbit_thumb.jpg","galleries_id":390692,"server_id":1,"link":"photo_7230950.html","width":130,"caption":"Buzzard taking a rabbit","height":92});
															thumbnails[7230951] = clik.newPhoto({"id":7230951,"src":"Razorbill_thumb.jpg","galleries_id":119077,"server_id":1,"link":"photo_7230951.html","width":130,"caption":"Razorbill landing on Skomer","height":92});
															thumbnails[7230955] = clik.newPhoto({"id":7230955,"src":"Robin_in_snow_2_thumb.jpg","galleries_id":119077,"server_id":1,"link":"photo_7230955.html","width":130,"caption":"Winter Robin in snow","height":92});
															thumbnails[7230957] = clik.newPhoto({"id":7230957,"src":"Wren_thumb.jpg","galleries_id":119077,"server_id":1,"link":"photo_7230957.html","width":130,"caption":"Wren","height":92});
															thumbnails[7233835] = clik.newPhoto({"id":7233835,"src":"_GBA0751_0024_thumb.jpg","galleries_id":119067,"server_id":1,"link":"photo_7233835.html","width":130,"caption":"Butterfly","height":92});
															thumbnails[7233848] = clik.newPhoto({"id":7233848,"src":"_GBA2781_3271_thumb.JPG","galleries_id":119067,"server_id":1,"link":"photo_7233848.html","width":130,"caption":"Bull","height":87});
															thumbnails[7233855] = clik.newPhoto({"id":7233855,"src":"_GBA3429_thumb.jpg","galleries_id":119077,"server_id":1,"link":"photo_7233855.html","width":130,"caption":"Dunnock","height":92});
															thumbnails[7233860] = clik.newPhoto({"id":7233860,"src":"_GBA3855_thumb.jpg","galleries_id":119070,"server_id":1,"link":"photo_7233860.html","width":130,"caption":"A Welsh winter","height":87});
															thumbnails[7233861] = clik.newPhoto({"id":7233861,"src":"_GBA3893_thumb.jpg","galleries_id":119070,"server_id":1,"link":"photo_7233861.html","width":130,"caption":"Christmas 2010","height":184});
															thumbnails[7233865] = clik.newPhoto({"id":7233865,"src":"_GBA3951_thumb.jpg","galleries_id":119070,"server_id":1,"link":"photo_7233865.html","width":130,"caption":"Carreg Cennen 2010","height":92});
															thumbnails[7233874] = clik.newPhoto({"id":7233874,"src":"_GBA5055_4214_thumb.jpg","galleries_id":119077,"server_id":1,"link":"photo_7233874.html","width":130,"caption":" Nuthatch","height":92});
															thumbnails[7233879] = clik.newPhoto({"id":7233879,"src":"_GBA5918_5269_thumb.jpg","galleries_id":119077,"server_id":1,"link":"photo_7233879.html","width":130,"caption":"Long Tailed Tits","height":92});
															thumbnails[7233880] = clik.newPhoto({"id":7233880,"src":"_GBA5998_5304_thumb.jpg","galleries_id":119070,"server_id":1,"link":"photo_7233880.html","width":130,"caption":"National Botanic Gardens","height":87});
															thumbnails[7233883] = clik.newPhoto({"id":7233883,"src":"_GBA6144_thumb.JPG","galleries_id":119077,"server_id":1,"link":"photo_7233883.html","width":130,"caption":"Kingfishers","height":92});
															thumbnails[7233884] = clik.newPhoto({"id":7233884,"src":"_GBA7174_thumb.JPG","galleries_id":119077,"server_id":1,"link":"photo_7233884.html","width":130,"caption":"Puffin","height":87});
															thumbnails[7233886] = clik.newPhoto({"id":7233886,"src":"_GBA8300_thumb.JPG","galleries_id":119077,"server_id":1,"link":"photo_7233886.html","width":130,"caption":"Kishfisher fishing !!!!!","height":92});
															thumbnails[7233888] = clik.newPhoto({"id":7233888,"src":"BADGER_1_thumb.jpg","galleries_id":119067,"server_id":1,"link":"photo_7233888.html","width":130,"caption":"Badgers","height":91});
															thumbnails[7233890] = clik.newPhoto({"id":7233890,"src":"Cuckoo_1_thumb.jpg","galleries_id":119077,"server_id":1,"link":"photo_7233890.html","width":130,"caption":"Cuckoo","height":92});
															thumbnails[7233921] = clik.newPhoto({"id":7233921,"src":"Usk_Reservoir_thumb.jpg","galleries_id":119070,"server_id":1,"link":"photo_7233921.html","width":130,"caption":"Usk towards Carmarthenshire Fans","height":92});
															thumbnails[7233938] = clik.newPhoto({"id":7233938,"src":"Owls_5_thumb.jpg","galleries_id":119077,"server_id":1,"link":"photo_7233938.html","width":130,"caption":"Barn owl feeding young","height":91});
															thumbnails[7233943] = clik.newPhoto({"id":7233943,"src":"IMG_6205_thumb.jpg","galleries_id":119077,"server_id":1,"link":"photo_7233943.html","width":130,"caption":"Choughs","height":92});
															thumbnails[7233946] = clik.newPhoto({"id":7233946,"src":"Newton_rainbow_thumb.jpg","galleries_id":119070,"server_id":1,"link":"photo_7233946.html","width":130,"caption":"Newton House rainbow","height":87});
															thumbnails[7233992] = clik.newPhoto({"id":7233992,"src":"_GBA1797_2E02A7B4-24E8-5EC4-4F1F02A6C1503E6B_thumb.jpg","galleries_id":119070,"server_id":1,"link":"photo_7233992.html","width":130,"caption":"Summers day in the Brecons","height":92});
															thumbnails[7244928] = clik.newPhoto({"id":7244928,"src":"_GBA4108_thumb.jpg","galleries_id":169478,"server_id":1,"link":"photo_7244928.html","width":130,"caption":"New Year hunt 2011","height":92});
															thumbnails[7345088] = clik.newPhoto({"id":7345088,"src":"_GBA4295_thumb.jpg","galleries_id":169478,"server_id":1,"link":"photo_7345088.html","width":130,"caption":"A Grand Day Out  !!!","height":92});
															thumbnails[7437043] = clik.newPhoto({"id":7437043,"src":"Hazel_thumb.jpg","galleries_id":283067,"server_id":1,"link":"photo_7437043.html","width":130,"caption":"Hazel Thomas & Dai Jones with friend","height":91});
															thumbnails[7475336] = clik.newPhoto({"id":7475336,"src":"_GBA4872_thumb.jpg","galleries_id":283067,"server_id":1,"link":"photo_7475336.html","width":130,"caption":"Iolo Williams St Davids Day 2011 Dinefwr Park","height":92});
															thumbnails[7476953] = clik.newPhoto({"id":7476953,"src":"_GBA5196_copy_thumb.jpg","galleries_id":473454,"server_id":1,"link":"photo_7476953.html","width":130,"caption":"Otter Cub","height":92});
															thumbnails[7486313] = clik.newPhoto({"id":7486313,"src":"Towy_Otter_Cub_thumb.jpg","galleries_id":473454,"server_id":1,"link":"photo_7486313.html","width":130,"caption":"Towy Otter Cub","height":92});
															thumbnails[7487996] = clik.newPhoto({"id":7487996,"src":"Frog_copy_thumb.jpg","galleries_id":119067,"server_id":1,"link":"photo_7487996.html","width":130,"caption":"Froggy","height":92});
															thumbnails[7489787] = clik.newPhoto({"id":7489787,"src":"Llandeilo_Hunt_20111_thumb.jpg","galleries_id":169478,"server_id":1,"link":"photo_7489787.html","width":130,"caption":"A Welsh Hunt","height":92});
															thumbnails[7489818] = clik.newPhoto({"id":7489818,"src":"Long_Tailed_Tit_thumb.jpg","galleries_id":119077,"server_id":1,"link":"photo_7489818.html","width":130,"caption":"Long Tailed Tit","height":92});
															thumbnails[7589632] = clik.newPhoto({"id":7589632,"src":"_GBA63111_thumb.jpg","galleries_id":119067,"server_id":1,"link":"photo_7589632.html","width":130,"caption":"Hare","height":92});
															thumbnails[7589635] = clik.newPhoto({"id":7589635,"src":"Hare_21_thumb.jpg","galleries_id":119067,"server_id":1,"link":"photo_7589635.html","width":130,"caption":"Running Hare","height":184});
															thumbnails[7589814] = clik.newPhoto({"id":7589814,"src":"R_Squirrel_thumb.jpg","galleries_id":119067,"server_id":1,"link":"photo_7589814.html","width":130,"caption":"Anglesey Red Squirrel spring 2011","height":92});
															thumbnails[7592642] = clik.newPhoto({"id":7592642,"src":"Towy_Valley_thumb.jpg","galleries_id":119070,"server_id":1,"link":"photo_7592642.html","width":130,"caption":"Towy valley with Carmarthenshire Fans beyond","height":87});
															thumbnails[7594412] = clik.newPhoto({"id":7594412,"src":"_GBA6046_thumb.jpg","galleries_id":258184,"server_id":1,"link":"photo_7594412.html","width":130,"caption":"Evening on the heath","height":92});
															thumbnails[7684763] = clik.newPhoto({"id":7684763,"src":"Brown_Hare_1_copy_thumb.jpg","galleries_id":119067,"server_id":1,"link":"photo_7684763.html","width":130,"caption":"Welsh mountain hare","height":92});
															thumbnails[7749439] = clik.newPhoto({"id":7749439,"src":"Mountain_fire_thumb.jpg","galleries_id":283067,"server_id":1,"link":"photo_7749439.html","width":130,"caption":"Brecon Beacons mountain fire","height":92});
															thumbnails[7857078] = clik.newPhoto({"id":7857078,"src":"_GBA7448_copy1_thumb.JPG","galleries_id":169478,"server_id":1,"link":"photo_7857078.html","width":130,"caption":"Heart of Wales Line","height":92});
															thumbnails[7857081] = clik.newPhoto({"id":7857081,"src":"_GBA7687_copy_thumb.JPG","galleries_id":258184,"server_id":1,"link":"photo_7857081.html","width":130,"caption":"","height":92});
															thumbnails[7857083] = clik.newPhoto({"id":7857083,"src":"_GBA7695_copy1_thumb.JPG","galleries_id":258184,"server_id":1,"link":"photo_7857083.html","width":130,"caption":"","height":92});
															thumbnails[7857084] = clik.newPhoto({"id":7857084,"src":"_GBA7774_copy_thumb.JPG","galleries_id":258184,"server_id":1,"link":"photo_7857084.html","width":130,"caption":"","height":92});
															thumbnails[8573435] = clik.newPhoto({"id":8573435,"src":"DGBA8541_D8611FA1-1E4F-37DC-71B23D69D65B8411_thumb.jpg","galleries_id":283067,"server_id":1,"link":"photo_8573435.html","width":130,"caption":"Matt Ryan, Glanusk","height":92});
															thumbnails[8711117] = clik.newPhoto({"id":8711117,"src":"Mud_wrestling_thumb.jpg","galleries_id":459429,"server_id":1,"link":"photo_8711117.html","width":130,"caption":"","height":92});
															thumbnails[8711120] = clik.newPhoto({"id":8711120,"src":"Moonrise_thumb.jpg","galleries_id":119070,"server_id":1,"link":"photo_8711120.html","width":130,"caption":"Moonrise","height":92});
															thumbnails[8711124] = clik.newPhoto({"id":8711124,"src":"DGBA1073_thumb.jpg","galleries_id":473454,"server_id":1,"link":"photo_8711124.html","width":130,"caption":"Otter cubs","height":86});
															thumbnails[8711131] = clik.newPhoto({"id":8711131,"src":"_GBA9567_thumb.jpg","galleries_id":119067,"server_id":1,"link":"photo_8711131.html","width":130,"caption":"Red Squirrel in the spring, note no ear tufts","height":92});
															thumbnails[8711143] = clik.newPhoto({"id":8711143,"src":"_GBA9121_thumb.jpg","galleries_id":119067,"server_id":1,"link":"photo_8711143.html","width":130,"caption":"Red Squirrel in afternoon sun","height":92});
															thumbnails[8711195] = clik.newPhoto({"id":8711195,"src":"_GBA8862_8645_thumb.JPG","galleries_id":119067,"server_id":1,"link":"photo_8711195.html","width":130,"caption":"Photograph for the European Squirrel Initiative 2011 Christmas cards","height":130});
															thumbnails[8989613] = clik.newPhoto({"id":8989613,"src":"_GBA3302_2266_thumb.jpg","galleries_id":119077,"server_id":1,"link":"photo_8989613.html","width":130,"caption":"Raven chicks","height":87});
															thumbnails[8989621] = clik.newPhoto({"id":8989621,"src":"_GBA4757_thumb.jpg","galleries_id":390692,"server_id":1,"link":"photo_8989621.html","width":130,"caption":"Red Kites @ Black mountain feeding station","height":92});
															thumbnails[8989627] = clik.newPhoto({"id":8989627,"src":"_GBA4758_thumb.jpg","galleries_id":390692,"server_id":1,"link":"photo_8989627.html","width":130,"caption":"Red Kite trio","height":92});
															thumbnails[8989633] = clik.newPhoto({"id":8989633,"src":"_GBA4857_thumb.jpg","galleries_id":390692,"server_id":1,"link":"photo_8989633.html","width":130,"caption":"Red Kite","height":184});
															thumbnails[8989642] = clik.newPhoto({"id":8989642,"src":"_GBA5003_thumb.jpg","galleries_id":473454,"server_id":1,"link":"photo_8989642.html","width":130,"caption":"","height":92});
															thumbnails[8989644] = clik.newPhoto({"id":8989644,"src":"_GBA5235_thumb.jpg","galleries_id":473454,"server_id":1,"link":"photo_8989644.html","width":130,"caption":"","height":92});
															thumbnails[8989647] = clik.newPhoto({"id":8989647,"src":"DGBA0893_thumb.jpg","galleries_id":473454,"server_id":1,"link":"photo_8989647.html","width":130,"caption":"","height":87});
															thumbnails[8989650] = clik.newPhoto({"id":8989650,"src":"DGBA1034_thumb.jpg","galleries_id":473454,"server_id":1,"link":"photo_8989650.html","width":130,"caption":"","height":87});
															thumbnails[8989652] = clik.newPhoto({"id":8989652,"src":"DGBA1183_thumb.jpg","galleries_id":473454,"server_id":1,"link":"photo_8989652.html","width":130,"caption":"","height":87});
															thumbnails[8989656] = clik.newPhoto({"id":8989656,"src":"DGBA1527_thumb.jpg","galleries_id":473454,"server_id":1,"link":"photo_8989656.html","width":130,"caption":"","height":87});
															thumbnails[8989657] = clik.newPhoto({"id":8989657,"src":"DGBA1584_thumb.jpg","galleries_id":473454,"server_id":1,"link":"photo_8989657.html","width":130,"caption":"","height":87});
															thumbnails[8989660] = clik.newPhoto({"id":8989660,"src":"DGBA1613_thumb.jpg","galleries_id":473454,"server_id":1,"link":"photo_8989660.html","width":130,"caption":"","height":87});
															thumbnails[8989663] = clik.newPhoto({"id":8989663,"src":"_GBA7909_thumb.jpg","galleries_id":118915,"server_id":1,"link":"photo_8989663.html","width":130,"caption":"","height":91});
															thumbnails[8989699] = clik.newPhoto({"id":8989699,"src":"DGBA9868_thumb.jpg","galleries_id":119067,"server_id":1,"link":"photo_8989699.html","width":130,"caption":"Hedgehog","height":87});
															thumbnails[9057591] = clik.newPhoto({"id":9057591,"src":"_GBA2988_thumb.jpg","galleries_id":119070,"server_id":1,"link":"photo_9057591.html","width":130,"caption":"Mwnt Giant","height":92});
															thumbnails[9057598] = clik.newPhoto({"id":9057598,"src":"_GBA7319_thumb.jpg","galleries_id":169478,"server_id":1,"link":"photo_9057598.html","width":130,"caption":"Brecon Beacons warden fighting mountain fire","height":92});
															thumbnails[9057632] = clik.newPhoto({"id":9057632,"src":"DSCF0076_thumb.jpg","galleries_id":119067,"server_id":1,"link":"photo_9057632.html","width":130,"caption":"Donkey","height":175});
															thumbnails[9057638] = clik.newPhoto({"id":9057638,"src":"Bluebells_thumb.JPG","galleries_id":119070,"server_id":1,"link":"photo_9057638.html","width":130,"caption":"Bluebell wood","height":87});
															thumbnails[9133223] = clik.newPhoto({"id":9133223,"src":"DGBA3024_1_thumb.JPG","galleries_id":119067,"server_id":1,"link":"photo_9133223.html","width":130,"caption":"Hare wrestling !!","height":92});
															thumbnails[9133261] = clik.newPhoto({"id":9133261,"src":"DGBA2941_1_thumb.JPG","galleries_id":119077,"server_id":1,"link":"photo_9133261.html","width":130,"caption":"Dartford Warbler","height":92});
															thumbnails[1768854] = clik.newPhoto({"id":1768854,"src":"Bottlenose with canoe 1_thumb.jpg","galleries_id":118915,"server_id":1,"link":"photo_1768854.html","width":130,"caption":"Had to include these two images of a dolphin with canoe as more than likely it is of complete innocents but a big concern to the well being of these dolphins is being harrassed by boats large and small.","height":92});
															thumbnails[1768867] = clik.newPhoto({"id":1768867,"src":"Bottlenose with canoe 2_thumb.jpg","galleries_id":118915,"server_id":1,"link":"photo_1768867.html","width":130,"caption":"The dolphins will be driven away from their feeding grounds by canoes, a much larger danger is motorboats and jet skis who can and do hit the dolphins.","height":92});
															thumbnails[1768876] = clik.newPhoto({"id":1768876,"src":"Jump for joy, Bottlenose 1_thumb.jpg","galleries_id":118915,"server_id":1,"link":"photo_1768876.html","width":130,"caption":"","height":92});
															thumbnails[1768881] = clik.newPhoto({"id":1768881,"src":"Jump for joy, Bottlenose 2_thumb.jpg","galleries_id":118915,"server_id":1,"link":"photo_1768881.html","width":130,"caption":"","height":92});
															thumbnails[1768888] = clik.newPhoto({"id":1768888,"src":"Jump for joy, Bottlenose 3_thumb.jpg","galleries_id":118915,"server_id":1,"link":"photo_1768888.html","width":130,"caption":"How can you beat a sight like this?","height":92});
															thumbnails[1952784] = clik.newPhoto({"id":1952784,"src":"Copy of Broad Haven 1_thumb.jpg","galleries_id":382670,"server_id":1,"link":"photo_1952784.html","width":130,"caption":"Wave from hell, Church Rock.","height":92});
															thumbnails[4993633] = clik.newPhoto({"id":4993633,"src":"New_Year_Hunt_thumb.jpg","galleries_id":382670,"server_id":1,"link":"photo_4993633.html","width":130,"caption":"New Years Hunt","height":91});
															thumbnails[7068055] = clik.newPhoto({"id":7068055,"src":"_GBA0296_9352_thumb.JPG","galleries_id":382670,"server_id":1,"link":"photo_7068055.html","width":130,"caption":"Peacock Butteryfly","height":92});
															thumbnails[7068127] = clik.newPhoto({"id":7068127,"src":"_GBA5158_5A6ECDB6-1EC9-D45B-1CC0E3F11830836E_thumb.jpg","galleries_id":382670,"server_id":1,"link":"photo_7068127.html","width":130,"caption":"Woodpeckers","height":92});
															thumbnails[7068135] = clik.newPhoto({"id":7068135,"src":"Anglesea_Red_Squirrel_5A707E06-1EC9-D45B-1CA4BE5744426B44_thumb.jpg","galleries_id":382670,"server_id":1,"link":"photo_7068135.html","width":130,"caption":"Red Squirrel","height":92});
															thumbnails[7068149] = clik.newPhoto({"id":7068149,"src":"Barn_Owls_thumb.jpg","galleries_id":382670,"server_id":1,"link":"photo_7068149.html","width":130,"caption":"Baby Barn Owls","height":92});
															thumbnails[7069057] = clik.newPhoto({"id":7069057,"src":"c4_5B5BA207-1EC9-D45B-1CAEFFB52BEE6C73_thumb.jpg","galleries_id":382670,"server_id":1,"link":"photo_7069057.html","width":130,"caption":"Fox Cub","height":92});
															thumbnails[7069064] = clik.newPhoto({"id":7069064,"src":"Carreg_Cennen_thumb.jpg","galleries_id":382670,"server_id":1,"link":"photo_7069064.html","width":130,"caption":"Carreg Cennen Castle in snow","height":92});
															thumbnails[7069069] = clik.newPhoto({"id":7069069,"src":"Carreg_Cennen_in_the_mist_5B5D5A97-1EC9-D45B-1CF02CAB576F7F77_thumb.jpg","galleries_id":382670,"server_id":1,"link":"photo_7069069.html","width":130,"caption":"Carreg Cennen Castle in mist","height":92});
															thumbnails[7069076] = clik.newPhoto({"id":7069076,"src":"Dragonfly_5B5DECAB-1EC9-D45B-1C7A72274DB298C4_thumb.jpg","galleries_id":382670,"server_id":1,"link":"photo_7069076.html","width":130,"caption":"Dragonfly ","height":91});
															thumbnails[7069082] = clik.newPhoto({"id":7069082,"src":"Fallow_deer_rut_thumb.JPG","galleries_id":382670,"server_id":1,"link":"photo_7069082.html","width":130,"caption":"Fallow deer rut","height":92});
															thumbnails[7069087] = clik.newPhoto({"id":7069087,"src":"Fan_Foel_Red_Kite_5B5F87D0-1EC9-D45B-1C5FA2FFA707404C_thumb.jpg","galleries_id":382670,"server_id":1,"link":"photo_7069087.html","width":130,"caption":"Fan Foel Red Kite","height":92});
															thumbnails[7069089] = clik.newPhoto({"id":7069089,"src":"Fox_Cubs_playing_2_thumb.jpg","galleries_id":382670,"server_id":1,"link":"photo_7069089.html","width":130,"caption":"Fox Cubs playing","height":92});
															thumbnails[7069096] = clik.newPhoto({"id":7069096,"src":"Kestrel_female_5_thumb.jpg","galleries_id":382670,"server_id":1,"link":"photo_7069096.html","width":130,"caption":"Female Kestrel, Stealth","height":92});
															thumbnails[7069098] = clik.newPhoto({"id":7069098,"src":"King_fishers_1_5B62E065-1EC9-D45B-1C4A1DFAB358A094_thumb.jpg","galleries_id":382670,"server_id":1,"link":"photo_7069098.html","width":130,"caption":"Kingfishers","height":92});
															thumbnails[7069102] = clik.newPhoto({"id":7069102,"src":"Longhorns_1_5B63A974-1EC9-D45B-1C6B1EB643DE3EFE_thumb.jpg","galleries_id":382670,"server_id":1,"link":"photo_7069102.html","width":130,"caption":"Dinefwr White Park cattle","height":92});
															thumbnails[7069106] = clik.newPhoto({"id":7069106,"src":"Puffin_No1_5B654312-1EC9-D45B-1CACB9C5B85AF018_thumb.jpg","galleries_id":382670,"server_id":1,"link":"photo_7069106.html","width":130,"caption":"Skomer puffin","height":92});
															thumbnails[7069109] = clik.newPhoto({"id":7069109,"src":"Ramsey_stag_thumb.jpg","galleries_id":382670,"server_id":1,"link":"photo_7069109.html","width":130,"caption":"Ramsey Red Deer stag","height":92});
															thumbnails[7069110] = clik.newPhoto({"id":7069110,"src":"Red_Squirrels_at_play_thumb.jpg","galleries_id":382670,"server_id":1,"link":"photo_7069110.html","width":130,"caption":"Red Squirrels playing","height":92});
															thumbnails[7069112] = clik.newPhoto({"id":7069112,"src":"Sheep_drove_thumb.jpg","galleries_id":382670,"server_id":1,"link":"photo_7069112.html","width":130,"caption":"Welsh sheep drove","height":93});
															thumbnails[7069113] = clik.newPhoto({"id":7069113,"src":"Wharley_Point_towards_the_Gower_thumb.jpg","galleries_id":382670,"server_id":1,"link":"photo_7069113.html","width":130,"caption":"Wharley point towards Worms Head","height":184});
															thumbnails[7215446] = clik.newPhoto({"id":7215446,"src":"_GBA3913_copy_thumb.jpg","galleries_id":382670,"server_id":1,"link":"photo_7215446.html","width":130,"caption":"2010\/11 WINTER DAY ","height":92});
															thumbnails[7489791] = clik.newPhoto({"id":7489791,"src":"Frog_copy1_thumb.jpg","galleries_id":382670,"server_id":1,"link":"photo_7489791.html","width":130,"caption":"Froggy","height":92});
															thumbnails[7489792] = clik.newPhoto({"id":7489792,"src":"Towy_Otter_Cub1_thumb.jpg","galleries_id":382670,"server_id":1,"link":"photo_7489792.html","width":130,"caption":"Towy Otter Cub","height":92});
															thumbnails[7489853] = clik.newPhoto({"id":7489853,"src":"_GBA5998_5304_8ABB27DE-24E8-5EC4-4FEFC9740906F043_thumb.jpg","galleries_id":382670,"server_id":1,"link":"photo_7489853.html","width":130,"caption":"National Botanic Gardens","height":87});
															thumbnails[7506112] = clik.newPhoto({"id":7506112,"src":"_GBA55241_thumb.JPG","galleries_id":382670,"server_id":1,"link":"photo_7506112.html","width":130,"caption":"The Master","height":92});
															thumbnails[7589601] = clik.newPhoto({"id":7589601,"src":"Hare_thumb.jpg","galleries_id":382670,"server_id":1,"link":"photo_7589601.html","width":130,"caption":"Brown Hare","height":92});
															thumbnails[7645454] = clik.newPhoto({"id":7645454,"src":"Welsh_Hare_thumb.jpg","galleries_id":382670,"server_id":1,"link":"photo_7645454.html","width":130,"caption":"Welsh Hare","height":92});
															thumbnails[7684779] = clik.newPhoto({"id":7684779,"src":"Carreg_Cennen_sunrise1_thumb.jpg","galleries_id":382670,"server_id":1,"link":"photo_7684779.html","width":130,"caption":"Cerreg Cennen castle sunrise","height":92});
															thumbnails[7831498] = clik.newPhoto({"id":7831498,"src":"_Cub_with_Dad_copy_thumb.jpg","galleries_id":382670,"server_id":1,"link":"photo_7831498.html","width":130,"caption":"Me and Dad","height":92});
															thumbnails[7831501] = clik.newPhoto({"id":7831501,"src":"_GBA7448_copy_thumb.JPG","galleries_id":382670,"server_id":1,"link":"photo_7831501.html","width":130,"caption":"Heart of Wales line","height":92});
															thumbnails[7857080] = clik.newPhoto({"id":7857080,"src":"_GBA7563_copy_thumb.jpg","galleries_id":382670,"server_id":1,"link":"photo_7857080.html","width":130,"caption":"Hungrey Cub !!!!","height":92});
															thumbnails[7857105] = clik.newPhoto({"id":7857105,"src":"_GBA7649_copy_thumb.JPG","galleries_id":382670,"server_id":1,"link":"photo_7857105.html","width":130,"caption":"Leisure Time","height":92});
															thumbnails[8550900] = clik.newPhoto({"id":8550900,"src":"DGBA1167_copy_thumb.jpg","galleries_id":382670,"server_id":1,"link":"photo_8550900.html","width":130,"caption":"Otter cubs 'MONSTERS'","height":92});
															thumbnails[9057539] = clik.newPhoto({"id":9057539,"src":"_GBA2820_thumb.JPG","galleries_id":382670,"server_id":1,"link":"photo_9057539.html","width":130,"caption":"Red Kite flying free","height":92});
															thumbnails[9057547] = clik.newPhoto({"id":9057547,"src":"Mountain_horses_1_thumb.jpg","galleries_id":382670,"server_id":1,"link":"photo_9057547.html","width":130,"caption":"Mountain horses","height":92});
															thumbnails[7071246] = clik.newPhoto({"id":7071246,"src":"_GBA1879_thumb.JPG","galleries_id":382915,"server_id":1,"link":"photo_7071246.html","width":130,"caption":"My exhibition stand","height":92});
															thumbnails[7140000] = clik.newPhoto({"id":7140000,"src":"SNAP_2010_048_thumb.jpg","galleries_id":382915,"server_id":1,"link":"photo_7140000.html","width":130,"caption":"Giving speech at Biodiversity Photographic Awards","height":87});
															thumbnails[7230171] = clik.newPhoto({"id":7230171,"src":"_GBA3986_copy_thumb.jpg","galleries_id":382915,"server_id":1,"link":"photo_7230171.html","width":130,"caption":"Out working in all conditions, but worth every minute","height":92});
															thumbnails[7476948] = clik.newPhoto({"id":7476948,"src":"092_copy_thumb.JPG","galleries_id":382915,"server_id":1,"link":"photo_7476948.html","width":130,"caption":"David Bailey with Iolo Williams","height":92});
															thumbnails[8496628] = clik.newPhoto({"id":8496628,"src":"Sandy_feed_1_copy_thumb.jpg","galleries_id":382915,"server_id":1,"link":"photo_8496628.html","width":130,"caption":"Feeding Sandy a wild fox","height":92});
															thumbnails[8989709] = clik.newPhoto({"id":8989709,"src":"DGBA2645_thumb.jpg","galleries_id":358683,"server_id":1,"link":"photo_8989709.html","width":130,"caption":"","height":87});
															thumbnails[8989713] = clik.newPhoto({"id":8989713,"src":"DGBA2652_thumb.jpg","galleries_id":358683,"server_id":1,"link":"photo_8989713.html","width":130,"caption":"","height":87});
															thumbnails[8989717] = clik.newPhoto({"id":8989717,"src":"DGBA2660_thumb.jpg","galleries_id":358683,"server_id":1,"link":"photo_8989717.html","width":130,"caption":"","height":87});
															thumbnails[8989723] = clik.newPhoto({"id":8989723,"src":"DGBA2663_thumb.jpg","galleries_id":358683,"server_id":1,"link":"photo_8989723.html","width":130,"caption":"","height":87});
															thumbnails[8969477] = clik.newPhoto({"id":8969477,"src":"DGBA2397_A669EDBD-24E8-5EC4-4F1159A66296464C_thumb.jpg","galleries_id":358683,"server_id":1,"link":"photo_8969477.html","width":130,"caption":"DGBA2397","height":87});
															thumbnails[8969479] = clik.newPhoto({"id":8969479,"src":"DGBA2402_A66A8466-24E8-5EC4-4F2C74CD4DC13E3F_thumb.jpg","galleries_id":358683,"server_id":1,"link":"photo_8969479.html","width":130,"caption":"DGBA2402","height":87});
															thumbnails[8969480] = clik.newPhoto({"id":8969480,"src":"DGBA2404_A66B1BB7-24E8-5EC4-4FE711D050E66879_thumb.jpg","galleries_id":358683,"server_id":1,"link":"photo_8969480.html","width":130,"caption":"DGBA2404","height":87});
															thumbnails[8969484] = clik.newPhoto({"id":8969484,"src":"DGBA2419_A6701ED4-24E8-5EC4-4F76DAAF141C90A7_thumb.jpg","galleries_id":358683,"server_id":1,"link":"photo_8969484.html","width":130,"caption":"DGBA2419","height":87});
															thumbnails[8969485] = clik.newPhoto({"id":8969485,"src":"DGBA2464_A670A3B7-24E8-5EC4-4FF3297C205BFE39_thumb.jpg","galleries_id":358683,"server_id":1,"link":"photo_8969485.html","width":130,"caption":"DGBA2464","height":87});
															thumbnails[8969486] = clik.newPhoto({"id":8969486,"src":"DGBA2473_A6711BD6-24E8-5EC4-4F298043DABFAA75_thumb.jpg","galleries_id":358683,"server_id":1,"link":"photo_8969486.html","width":130,"caption":"DGBA2473","height":87});
															thumbnails[8969488] = clik.newPhoto({"id":8969488,"src":"DGBA2498_A6769721-24E8-5EC4-4FDEC2BB5670E97E_thumb.jpg","galleries_id":358683,"server_id":1,"link":"photo_8969488.html","width":130,"caption":"DGBA2498","height":87});
															thumbnails[8969491] = clik.newPhoto({"id":8969491,"src":"DGBA2541_A67737A1-24E8-5EC4-4FB128F3021FA1ED_thumb.jpg","galleries_id":358683,"server_id":1,"link":"photo_8969491.html","width":130,"caption":"DGBA2541","height":87});
															thumbnails[8969492] = clik.newPhoto({"id":8969492,"src":"DGBA2543_A677CB24-24E8-5EC4-4F43D84413FD37DD_thumb.jpg","galleries_id":358683,"server_id":1,"link":"photo_8969492.html","width":130,"caption":"DGBA2543","height":87});
															thumbnails[8969495] = clik.newPhoto({"id":8969495,"src":"DGBA2545_A67B3D1B-24E8-5EC4-4FA75E3C70EF3E9C_thumb.jpg","galleries_id":358683,"server_id":1,"link":"photo_8969495.html","width":130,"caption":"DGBA2545","height":87});
															thumbnails[8969496] = clik.newPhoto({"id":8969496,"src":"DGBA2549_A67BDD84-24E8-5EC4-4F5B19CC31B89BFA_thumb.jpg","galleries_id":358683,"server_id":1,"link":"photo_8969496.html","width":130,"caption":"DGBA2549","height":87});
															thumbnails[8969497] = clik.newPhoto({"id":8969497,"src":"DGBA2595_A67CDC4D-24E8-5EC4-4F571524DC54A863_thumb.jpg","galleries_id":358683,"server_id":1,"link":"photo_8969497.html","width":130,"caption":"DGBA2595","height":87});
															thumbnails[8969499] = clik.newPhoto({"id":8969499,"src":"DGBA2598_A68017DA-24E8-5EC4-4FFFABA82BFE7082_thumb.jpg","galleries_id":358683,"server_id":1,"link":"photo_8969499.html","width":130,"caption":"DGBA2598","height":87});
															thumbnails[8969500] = clik.newPhoto({"id":8969500,"src":"DGBA2600_A680A34E-24E8-5EC4-4FFD47DF6FF7686E_thumb.jpg","galleries_id":358683,"server_id":1,"link":"photo_8969500.html","width":130,"caption":"DGBA2600","height":87});
															thumbnails[8969501] = clik.newPhoto({"id":8969501,"src":"DGBA2604_A681685D-24E8-5EC4-4FAC256AD92CD065_thumb.jpg","galleries_id":358683,"server_id":1,"link":"photo_8969501.html","width":130,"caption":"DGBA2604","height":87});
															thumbnails[8969503] = clik.newPhoto({"id":8969503,"src":"DGBA2610_A683AFAA-24E8-5EC4-4FCBC633EA150F3B_thumb.jpg","galleries_id":358683,"server_id":1,"link":"photo_8969503.html","width":130,"caption":"DGBA2610","height":87});
															thumbnails[9101909] = clik.newPhoto({"id":9101909,"src":"Baby_Barn_Owls_1_thumb.jpg","galleries_id":480337,"server_id":1,"link":"photo_9101909.html","width":130,"caption":"Baby Barn owls","height":186});
															thumbnails[9101917] = clik.newPhoto({"id":9101917,"src":"Big_Red_Tractor_1_thumb.jpg","galleries_id":480337,"server_id":1,"link":"photo_9101917.html","width":130,"caption":"Big red tractor","height":186});
															thumbnails[9101920] = clik.newPhoto({"id":9101920,"src":"Blackbird_with_Blue_tit_1_thumb.jpg","galleries_id":480337,"server_id":1,"link":"photo_9101920.html","width":130,"caption":"Blackbird with Blue tit","height":186});
															thumbnails[9101921] = clik.newPhoto({"id":9101921,"src":"Bluebell_Wood_1_thumb.jpg","galleries_id":480337,"server_id":1,"link":"photo_9101921.html","width":130,"caption":"Bluebell wood","height":186});
															thumbnails[9101922] = clik.newPhoto({"id":9101922,"src":"Bottlenose_Dolphins_1_thumb.jpg","galleries_id":480337,"server_id":1,"link":"photo_9101922.html","width":130,"caption":"Bottlenose dolphins","height":186});
															thumbnails[9101925] = clik.newPhoto({"id":9101925,"src":"Buzzard_1_thumb.jpg","galleries_id":480337,"server_id":1,"link":"photo_9101925.html","width":130,"caption":"Buzzard","height":186});
															thumbnails[9101928] = clik.newPhoto({"id":9101928,"src":"C_C_in_mist_1_thumb.jpg","galleries_id":480337,"server_id":1,"link":"photo_9101928.html","width":130,"caption":"Cerreg Cennen in mist","height":186});
															thumbnails[9101930] = clik.newPhoto({"id":9101930,"src":"C_C_in_snow_1_thumb.jpg","galleries_id":480337,"server_id":1,"link":"photo_9101930.html","width":130,"caption":"Cerreg Cennen in snow","height":186});
															thumbnails[9101932] = clik.newPhoto({"id":9101932,"src":"C_C_sunrise_1_thumb.jpg","galleries_id":480337,"server_id":1,"link":"photo_9101932.html","width":130,"caption":"Cerreg Cennen sunrise","height":186});
															thumbnails[9101935] = clik.newPhoto({"id":9101935,"src":"Donkey_1_thumb.jpg","galleries_id":480337,"server_id":1,"link":"photo_9101935.html","width":130,"caption":"Donkey","height":91});
															thumbnails[9101937] = clik.newPhoto({"id":9101937,"src":"Duckling_1_thumb.jpg","galleries_id":480337,"server_id":1,"link":"photo_9101937.html","width":130,"caption":"Duckling","height":186});
															thumbnails[9101939] = clik.newPhoto({"id":9101939,"src":"Evening_on_the_heath_1_thumb.jpg","galleries_id":480337,"server_id":1,"link":"photo_9101939.html","width":130,"caption":"Evening on the heath","height":186});
															thumbnails[9101940] = clik.newPhoto({"id":9101940,"src":"Fan_Foel_Red_Kite_1_thumb.jpg","galleries_id":480337,"server_id":1,"link":"photo_9101940.html","width":130,"caption":"Fan Foel Red kite","height":186});
															thumbnails[9101941] = clik.newPhoto({"id":9101941,"src":"Fox_cubs_playing_mouse_1_thumb.jpg","galleries_id":480337,"server_id":1,"link":"photo_9101941.html","width":130,"caption":"Fox cubs playing mouse","height":186});
															thumbnails[9101944] = clik.newPhoto({"id":9101944,"src":"Fox_Cubs_playing_1_thumb.jpg","galleries_id":480337,"server_id":1,"link":"photo_9101944.html","width":130,"caption":"Fox cubs playing","height":186});
															thumbnails[9101945] = clik.newPhoto({"id":9101945,"src":"Frog_1_thumb.jpg","galleries_id":480337,"server_id":1,"link":"photo_9101945.html","width":130,"caption":"Frog","height":186});
															thumbnails[9101952] = clik.newPhoto({"id":9101952,"src":"Green_Woodpeckers_1_thumb.jpg","galleries_id":480337,"server_id":1,"link":"photo_9101952.html","width":130,"caption":"Green woodpeckers","height":91});
															thumbnails[9101958] = clik.newPhoto({"id":9101958,"src":"Hare_1_thumb.jpg","galleries_id":480337,"server_id":1,"link":"photo_9101958.html","width":130,"caption":"Hare","height":91});
															thumbnails[9101960] = clik.newPhoto({"id":9101960,"src":"Hedgehog_1_thumb.jpg","galleries_id":480337,"server_id":1,"link":"photo_9101960.html","width":130,"caption":"Hedgehog","height":186});
															thumbnails[9101963] = clik.newPhoto({"id":9101963,"src":"Hounds_1_thumb.jpg","galleries_id":480337,"server_id":1,"link":"photo_9101963.html","width":130,"caption":"Hounds","height":186});
															thumbnails[9101966] = clik.newPhoto({"id":9101966,"src":"January_Sea_1_thumb.jpg","galleries_id":480337,"server_id":1,"link":"photo_9101966.html","width":130,"caption":"January sea","height":91});
															thumbnails[9101968] = clik.newPhoto({"id":9101968,"src":"Kingfisher_1_thumb.jpg","galleries_id":480337,"server_id":1,"link":"photo_9101968.html","width":130,"caption":"Kingfisher","height":186});
															thumbnails[9101970] = clik.newPhoto({"id":9101970,"src":"Kingfishers_1_thumb.jpg","galleries_id":480337,"server_id":1,"link":"photo_9101970.html","width":130,"caption":"Kingfishers","height":186});
															thumbnails[9101975] = clik.newPhoto({"id":9101975,"src":"Lambs_1_thumb.jpg","galleries_id":480337,"server_id":1,"link":"photo_9101975.html","width":130,"caption":"Lambs","height":186});
															thumbnails[9101978] = clik.newPhoto({"id":9101978,"src":"Long_Tailed_Tit_1_thumb.jpg","galleries_id":480337,"server_id":1,"link":"photo_9101978.html","width":130,"caption":"Long tailed tit","height":186});
															thumbnails[9101979] = clik.newPhoto({"id":9101979,"src":"Ludlow_Ducks_1_thumb.jpg","galleries_id":480337,"server_id":1,"link":"photo_9101979.html","width":130,"caption":"Ludlow ducks","height":186});
															thumbnails[9101982] = clik.newPhoto({"id":9101982,"src":"Monsters_1_thumb.jpg","galleries_id":480337,"server_id":1,"link":"photo_9101982.html","width":130,"caption":"Monsters","height":186});
															thumbnails[9101985] = clik.newPhoto({"id":9101985,"src":"Mountain_Ponies_1_thumb.jpg","galleries_id":480337,"server_id":1,"link":"photo_9101985.html","width":130,"caption":"Mountain ponies","height":186});
															thumbnails[9101988] = clik.newPhoto({"id":9101988,"src":"Mwnt_Giant_1_thumb.jpg","galleries_id":480337,"server_id":1,"link":"photo_9101988.html","width":130,"caption":"Mwnt Giant","height":186});
															thumbnails[9101990] = clik.newPhoto({"id":9101990,"src":"New_Years_Day_Hunt_1_thumb.jpg","galleries_id":480337,"server_id":1,"link":"photo_9101990.html","width":130,"caption":"News Years day hunt","height":186});
															thumbnails[9101991] = clik.newPhoto({"id":9101991,"src":"Old_Tractors_1_thumb.jpg","galleries_id":480337,"server_id":1,"link":"photo_9101991.html","width":130,"caption":"Old tractors","height":186});
															thumbnails[9101995] = clik.newPhoto({"id":9101995,"src":"Open_wide_1_thumb.jpg","galleries_id":480337,"server_id":1,"link":"photo_9101995.html","width":130,"caption":"Open wide","height":186});
															thumbnails[9101998] = clik.newPhoto({"id":9101998,"src":"Pheasant_1_thumb.jpg","galleries_id":480337,"server_id":1,"link":"photo_9101998.html","width":130,"caption":"Pheasant","height":186});
															thumbnails[9102003] = clik.newPhoto({"id":9102003,"src":"Piggy_1_thumb.jpg","galleries_id":480337,"server_id":1,"link":"photo_9102003.html","width":130,"caption":"Piggy","height":186});
															thumbnails[9102008] = clik.newPhoto({"id":9102008,"src":"Raven_Chicks_1_thumb.jpg","galleries_id":480337,"server_id":1,"link":"photo_9102008.html","width":130,"caption":"Raven chicks","height":186});
															thumbnails[9102010] = clik.newPhoto({"id":9102010,"src":"Red_Kite_in_flight_1_thumb.jpg","galleries_id":480337,"server_id":1,"link":"photo_9102010.html","width":130,"caption":"Red Kite in flight","height":186});
															thumbnails[9102014] = clik.newPhoto({"id":9102014,"src":"Red_Kite_perched_1_thumb.jpg","galleries_id":480337,"server_id":1,"link":"photo_9102014.html","width":130,"caption":"Red Kite perched","height":91});
															thumbnails[9102016] = clik.newPhoto({"id":9102016,"src":"Red_Squirrel_1_thumb.jpg","galleries_id":480337,"server_id":1,"link":"photo_9102016.html","width":130,"caption":"Red Squirrel","height":91});
															thumbnails[9102019] = clik.newPhoto({"id":9102019,"src":"Scary_Cat_1_thumb.jpg","galleries_id":480337,"server_id":1,"link":"photo_9102019.html","width":130,"caption":"Scary cat","height":91});
															thumbnails[9102022] = clik.newPhoto({"id":9102022,"src":"Skomer_Puffin_1_thumb.jpg","galleries_id":480337,"server_id":1,"link":"photo_9102022.html","width":130,"caption":"Skomer Puffin","height":186});
															thumbnails[9102027] = clik.newPhoto({"id":9102027,"src":"Spotted_Woodpecker_1_thumb.jpg","galleries_id":480337,"server_id":1,"link":"photo_9102027.html","width":130,"caption":"Spotted Woodpecker","height":186});
															thumbnails[9102028] = clik.newPhoto({"id":9102028,"src":"The_Towy_Valley_1_thumb.jpg","galleries_id":480337,"server_id":1,"link":"photo_9102028.html","width":130,"caption":"The Towy valley","height":186});
															thumbnails[9102031] = clik.newPhoto({"id":9102031,"src":"Toad_1_thumb.jpg","galleries_id":480337,"server_id":1,"link":"photo_9102031.html","width":130,"caption":"Toad","height":186});
															thumbnails[9102033] = clik.newPhoto({"id":9102033,"src":"Trio_of_Otters_1_thumb.jpg","galleries_id":480337,"server_id":1,"link":"photo_9102033.html","width":130,"caption":"Trio of Otters","height":186});
															thumbnails[9102036] = clik.newPhoto({"id":9102036,"src":"Wave_from_Hell_1_thumb.jpg","galleries_id":480337,"server_id":1,"link":"photo_9102036.html","width":130,"caption":"Wave from Hell","height":186});
															thumbnails[9102039] = clik.newPhoto({"id":9102039,"src":"Welsh_Mountain_Ponies_1_thumb.jpg","galleries_id":480337,"server_id":1,"link":"photo_9102039.html","width":130,"caption":"Welsh mountain ponies","height":186});
															thumbnails[9102044] = clik.newPhoto({"id":9102044,"src":"Welsh_Sheep_Drove_1_thumb.jpg","galleries_id":480337,"server_id":1,"link":"photo_9102044.html","width":130,"caption":"Welsh Sheep Drove","height":186});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[118915] = clik.newGallery({"parentGallery":"","usePopups":false,"title":" Dolphins","link":"gallery_118915.html","maxRecords":0.0,"photoIDs":[1768930.0,1768931.0,8989663.0,1768854.0,1768867.0,1768876.0,1768881.0,1768888.0],"skipIndex":0,"section_code":"gallery","featured_images":1768888.0,"id":118915,"singleSection":false});				  						galleries[119067] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Animals","link":"gallery_119067.html","maxRecords":0.0,"photoIDs":[1771604.0,1771610.0,1771612.0,2476532.0,3388662.0,4993622.0,5393120.0,5837286.0,6520717.0,6935027.0,6935051.0,7068104.0,7069094.0,7233835.0,7233848.0,7233888.0,7487996.0,7589632.0,7589635.0,7589814.0,7684763.0,8711131.0,8711143.0,8711195.0,8989699.0,9057632.0,9133223.0],"skipIndex":0,"section_code":"gallery","featured_images":"9133223,9057632,8989699,8711195,8711143,8711131,7684763,7589814,7589635,7589632","id":119067,"singleSection":false});				  						galleries[119077] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Birds misc","link":"gallery_119077.html","maxRecords":0.0,"photoIDs":[1767856.0,1772067.0,3388678.0,3388689.0,3388691.0,5393153.0,6520710.0,7230951.0,7230955.0,7230957.0,7233855.0,7233874.0,7233879.0,7233883.0,7233884.0,7233886.0,7233890.0,7233938.0,7233943.0,7489818.0,8989613.0,9133261.0],"skipIndex":0,"section_code":"gallery","featured_images":"9133261,8989613,7489818,7233943,7233938,7233890,7233886,7233884,7233883,7233879","id":119077,"singleSection":false});				  						galleries[390692] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Birds of prey","link":"gallery_390692.html","maxRecords":0.0,"photoIDs":[1768917.0,1768919.0,2398140.0,2398141.0,2398143.0,3388668.0,7230950.0,8989621.0,8989627.0,8989633.0],"skipIndex":0,"section_code":"gallery","featured_images":"3388668,2398140,1768917","id":390692,"singleSection":false});				  						galleries[382915] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Book a talk for your organisation","link":"section464067.html","maxRecords":0.0,"photoIDs":[7071246.0,7140000.0,7230171.0,7476948.0,8496628.0],"skipIndex":0,"section_code":"section464067","featured_images":"8496628,7476948,7230171,7140000,7071246","id":382915,"singleSection":true});				  						galleries[283067] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Commisions newspapers, magazines, private.","link":"gallery_283067.html","maxRecords":0.0,"photoIDs":[4983129.0,4993404.0,4993486.0,4993524.0,4993537.0,4993564.0,6520707.0,7437043.0,7475336.0,7749439.0,8573435.0],"skipIndex":0,"section_code":"gallery","featured_images":7475336.0,"id":283067,"singleSection":false});				  						galleries[258184] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Foxes","link":"gallery_258184.html","maxRecords":0.0,"photoIDs":[2272169.0,7594412.0,7857081.0,7857083.0,7857084.0],"skipIndex":0,"section_code":"gallery","featured_images":7594412.0,"id":258184,"singleSection":false});				  						galleries[480337] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Greeting cards ","link":"section585303.html","maxRecords":0.0,"photoIDs":[9101909.0,9101917.0,9101920.0,9101921.0,9101922.0,9101925.0,9101928.0,9101930.0,9101932.0,9101935.0,9101937.0,9101939.0,9101940.0,9101941.0,9101944.0,9101945.0,9101952.0,9101958.0,9101960.0,9101963.0,9101966.0,9101968.0,9101970.0,9101975.0,9101978.0,9101979.0,9101982.0,9101985.0,9101988.0,9101990.0,9101991.0,9101995.0,9101998.0,9102003.0,9102008.0,9102010.0,9102014.0,9102016.0,9102019.0,9102022.0,9102027.0,9102028.0,9102031.0,9102033.0,9102036.0,9102039.0,9102044.0],"skipIndex":0,"section_code":"section585303","featured_images":9101941.0,"id":480337,"singleSection":true});				  						galleries[358683] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Hunt 2012","link":"section573548.html","maxRecords":0.0,"photoIDs":[8989709.0,8989713.0,8989717.0,8989723.0,8969477.0,8969479.0,8969480.0,8969484.0,8969485.0,8969486.0,8969488.0,8969491.0,8969492.0,8969495.0,8969496.0,8969497.0,8969499.0,8969500.0,8969501.0,8969503.0],"skipIndex":0,"section_code":"section573548","featured_images":8969488.0,"id":358683,"singleSection":true});				  						galleries[473454] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Otters","link":"gallery_473454.html","maxRecords":0.0,"photoIDs":[7476953.0,7486313.0,8711124.0,8989642.0,8989644.0,8989647.0,8989650.0,8989652.0,8989656.0,8989657.0,8989660.0],"skipIndex":0,"section_code":"gallery","featured_images":"8989660,7476953","id":473454,"singleSection":false});				  						galleries[118814] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Puffins","link":"gallery_118814.html","maxRecords":0.0,"photoIDs":[1767849.0,1767850.0,1767853.0,1767859.0,6520721.0,6520724.0,7230947.0],"skipIndex":0,"section_code":"gallery","featured_images":1767859.0,"id":118814,"singleSection":false});				  						galleries[459429] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"QUIZ","link":"gallery_459429.html","maxRecords":0.0,"photoIDs":[8711117.0],"skipIndex":0,"section_code":"gallery","featured_images":8711117.0,"id":459429,"singleSection":false});				  						galleries[118810] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Red Kites","link":"gallery_118810.html","maxRecords":0.0,"photoIDs":[1767707.0,1767737.0,1767844.0,5837296.0,5837310.0],"skipIndex":0,"section_code":"gallery","featured_images":1767707.0,"id":118810,"singleSection":false});				  						galleries[119070] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Sea & Landscapes","link":"gallery_119070.html","maxRecords":0.0,"photoIDs":[1771629.0,1771730.0,1771740.0,3436029.0,3436031.0,4999617.0,5393146.0,7233860.0,7233861.0,7233865.0,7233880.0,7233921.0,7233946.0,7233992.0,7592642.0,8711120.0,9057591.0,9057638.0],"skipIndex":0,"section_code":"gallery","featured_images":1771740.0,"id":119070,"singleSection":false});				  						galleries[382670] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"SHOP","link":"section455318.html","maxRecords":0.0,"photoIDs":[1952784.0,4993633.0,7068055.0,7068127.0,7068135.0,7068149.0,7069057.0,7069064.0,7069069.0,7069076.0,7069082.0,7069087.0,7069089.0,7069096.0,7069098.0,7069102.0,7069106.0,7069109.0,7069110.0,7069112.0,7069113.0,7215446.0,7489791.0,7489792.0,7489853.0,7506112.0,7589601.0,7645454.0,7684779.0,7831498.0,7831501.0,7857080.0,7857105.0,8550900.0,9057539.0,9057547.0],"skipIndex":0,"section_code":"section455318","featured_images":"9057547,9057539,8550900,7857105,7857080,7831501,7831498,7684779,7645454,7589601","id":382670,"singleSection":true});				  						galleries[169478] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Working Life","link":"gallery_169478.html","maxRecords":0.0,"photoIDs":[1771607.0,2272175.0,2684453.0,2684454.0,2684456.0,4993627.0,4999618.0,6520718.0,7244928.0,7345088.0,7489787.0,7857078.0,9057598.0],"skipIndex":0,"section_code":"gallery","featured_images":7244928.0,"id":169478,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '9133223,8573435,8550900,8496628,7831498,7069098,7068149';
imageSets[2] = '9101941,8989660,7594412,7476953,7475336,7244928,3388668,2398140,1771740,1768917,1767859,1767707,1768888,8969488';
imageSets[3] = '6935051,6935027';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/davidbailey/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/davidbailey/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/davidbailey/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/davidbailey/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/davidbailey/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/davidbailey/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/davidbailey/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/davidbailey/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/davidbailey/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/davidbailey/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/davidbailey/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/davidbailey/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/davidbailey/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/davidbailey/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/davidbailey/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/davidbailey/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/davidbailey/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/davidbailey/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/davidbailey/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/davidbailey/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/davidbailey/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/davidbailey/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/davidbailey/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/davidbailey/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/davidbailey/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/davidbailey/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/davidbailey/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 = 'David Bailey Photography Wales: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
		 									temp += '<select class="paymentlink" name="payment_options_id" onchange="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
		else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
											temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="DAVIDBAILEY">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

