window.thumbnails = {};
															thumbnails[635049] = clik.newPhoto({"id":635049,"src":"KitechickYellowTag_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":77});
															thumbnails[635052] = clik.newPhoto({"id":635052,"src":"Kitechick1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":76});
															thumbnails[635290] = clik.newPhoto({"id":635290,"src":"KiteinTree1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":179});
															thumbnails[635515] = clik.newPhoto({"id":635515,"src":"Buzzard_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Common Buzzard <em> Buteo buteo <\/em>","height":183});
															thumbnails[635867] = clik.newPhoto({"id":635867,"src":"KitewithStick_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Flying with a large twig","height":84});
															thumbnails[635946] = clik.newPhoto({"id":635946,"src":"KiteFeathers_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Wing and tail feathers kindly left in my garden courtesy of moulting kites.","height":147});
															thumbnails[636392] = clik.newPhoto({"id":636392,"src":"Calling 21_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Calling","height":88});
															thumbnails[636394] = clik.newPhoto({"id":636394,"src":"Calling_1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Calling","height":184});
															thumbnails[636425] = clik.newPhoto({"id":636425,"src":"Bookends_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Bookends 2","height":92});
															thumbnails[637092] = clik.newPhoto({"id":637092,"src":"Three Chicks_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":91});
															thumbnails[696250] = clik.newPhoto({"id":696250,"src":"Ringing a chick_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"A Red Kite chick taken from the nest to be ringed and wing-tagged. ","height":116});
															thumbnails[717004] = clik.newPhoto({"id":717004,"src":"Moult_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":145});
															thumbnails[717040] = clik.newPhoto({"id":717040,"src":"Young Moult_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":155});
															thumbnails[717232] = clik.newPhoto({"id":717232,"src":"Magpie attack_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":129});
															thumbnails[717244] = clik.newPhoto({"id":717244,"src":"Magpie attack3_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":139});
															thumbnails[717353] = clik.newPhoto({"id":717353,"src":"KitesandTractor_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":97});
															thumbnails[717355] = clik.newPhoto({"id":717355,"src":"Body feathers_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":84});
															thumbnails[717359] = clik.newPhoto({"id":717359,"src":"Picking up worms 1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":188});
															thumbnails[719744] = clik.newPhoto({"id":719744,"src":"Chick_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":101});
															thumbnails[733997] = clik.newPhoto({"id":733997,"src":"Studley Green Garden Store Small Icon_thumb1.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":85});
															thumbnails[735273] = clik.newPhoto({"id":735273,"src":"CCB Logo Small_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":54});
															thumbnails[789771] = clik.newPhoto({"id":789771,"src":"Aston-Rowant-NNRWeb_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":97});
															thumbnails[819883] = clik.newPhoto({"id":819883,"src":"Camera Installation_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Andy Freeman installs the camera","height":160});
															thumbnails[820219] = clik.newPhoto({"id":820219,"src":"Exhibition Stand Web_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":72});
															thumbnails[822895] = clik.newPhoto({"id":822895,"src":"car sticker_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":128});
															thumbnails[857121] = clik.newPhoto({"id":857121,"src":"Wing tags_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Wing tags seen in flight","height":83});
															thumbnails[857129] = clik.newPhoto({"id":857129,"src":"WebSmall_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":162});
															thumbnails[857149] = clik.newPhoto({"id":857149,"src":"Near Tree_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":82});
															thumbnails[857429] = clik.newPhoto({"id":857429,"src":"In trees_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":91});
															thumbnails[857437] = clik.newPhoto({"id":857437,"src":"Attacking 2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[857518] = clik.newPhoto({"id":857518,"src":"Chasing Kites_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":103});
															thumbnails[915137] = clik.newPhoto({"id":915137,"src":"IMG_2582Web_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":86});
															thumbnails[935077] = clik.newPhoto({"id":935077,"src":"redkiteslogo2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":29});
															thumbnails[953288] = clik.newPhoto({"id":953288,"src":"IMG_8186Web_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":85});
															thumbnails[969942] = clik.newPhoto({"id":969942,"src":"rat3_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":114});
															thumbnails[1479230] = clik.newPhoto({"id":1479230,"src":"Buzzards_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":84});
															thumbnails[1896956] = clik.newPhoto({"id":1896956,"src":"Chilterns_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":87});
															thumbnails[1897071] = clik.newPhoto({"id":1897071,"src":"IMG_1812Web_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":177});
															thumbnails[1897927] = clik.newPhoto({"id":1897927,"src":"RK FOR WEB ONLY 2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":167});
															thumbnails[1898162] = clik.newPhoto({"id":1898162,"src":"IMG_8679Web_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":87});
															thumbnails[1898266] = clik.newPhoto({"id":1898266,"src":"Calling31_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":168});
															thumbnails[1898272] = clik.newPhoto({"id":1898272,"src":"Calling4_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":197});
															thumbnails[1898400] = clik.newPhoto({"id":1898400,"src":"Swooping for food1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":67});
															thumbnails[1898487] = clik.newPhoto({"id":1898487,"src":"Watch out!_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":85});
															thumbnails[1959965] = clik.newPhoto({"id":1959965,"src":"IMG_1363Web_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":92});
															thumbnails[1959988] = clik.newPhoto({"id":1959988,"src":"IMG_1412Web_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":93});
															thumbnails[1959990] = clik.newPhoto({"id":1959990,"src":"Kite with stick_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":91});
															thumbnails[2013790] = clik.newPhoto({"id":2013790,"src":"Ruby Ale_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":174});
															thumbnails[2013798] = clik.newPhoto({"id":2013798,"src":"Pump clips Web_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[2216113] = clik.newPhoto({"id":2216113,"src":"Chicks in nest_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Nestwatch - 3 chicks","height":83});
															thumbnails[2346226] = clik.newPhoto({"id":2346226,"src":"IMG_3011CagesWeb_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":82});
															thumbnails[2704862] = clik.newPhoto({"id":2704862,"src":"IMG_3256 copy_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":191});
															thumbnails[2882016] = clik.newPhoto({"id":2882016,"src":"exterior2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":129,"caption":"© Fox Country Inn","height":86});
															thumbnails[3133654] = clik.newPhoto({"id":3133654,"src":"IMG_2960Web_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"A wing-tagged chick released in Aberdeen","height":201});
															thumbnails[3133707] = clik.newPhoto({"id":3133707,"src":"IMG_2995Web_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"A young kite showing the dull grey eye colour.","height":98});
															thumbnails[3642210] = clik.newPhoto({"id":3642210,"src":"Black_Kite_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":84});
															thumbnails[3642212] = clik.newPhoto({"id":3642212,"src":"Black_Kite_Web1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Black kite","height":130});
															thumbnails[3642213] = clik.newPhoto({"id":3642213,"src":"Black_kite_Web2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":87});
															thumbnails[3642253] = clik.newPhoto({"id":3642253,"src":"IMG_8353Web_1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Red Kite","height":87});
															thumbnails[4478658] = clik.newPhoto({"id":4478658,"src":"IMG_4762WebSmall_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"A 2009 Chilterns kite just tagged.","height":89});
															thumbnails[4478666] = clik.newPhoto({"id":4478666,"src":"IMG_4761WebSmall_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":94});
															thumbnails[4478786] = clik.newPhoto({"id":4478786,"src":"IMG_4611Web_copy_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":80});
															thumbnails[5329807] = clik.newPhoto({"id":5329807,"src":"IMG_4741Web_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":195});
															thumbnails[5700580] = clik.newPhoto({"id":5700580,"src":"IMG_5285website_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":120,"caption":"","height":194});
															thumbnails[5700581] = clik.newPhoto({"id":5700581,"src":"IMG_5296Website_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":120,"caption":"","height":185});
															thumbnails[635545] = clik.newPhoto({"id":635545,"src":"PaleBuzzard_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Pale Common Buzzard","height":191});
															thumbnails[632897] = clik.newPhoto({"id":632897,"src":"Goldfinch in Snow_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Goldfinch ","height":162});
															thumbnails[632899] = clik.newPhoto({"id":632899,"src":"Marsh tit calling_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Marsh tit calling","height":146});
															thumbnails[632903] = clik.newPhoto({"id":632903,"src":"Pheasant Portrait_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Common Pheasant - Male","height":84});
															thumbnails[636128] = clik.newPhoto({"id":636128,"src":"Gull with Fish 2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Gull with fish 2","height":156});
															thumbnails[635977] = clik.newPhoto({"id":635977,"src":"Gull with Fish_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Gull with Fish","height":75});
															thumbnails[632884] = clik.newPhoto({"id":632884,"src":"IMG_3029Web_thumb.jpg","galleries_id":48303,"server_id":1,"link":"photo_632884.html","width":130,"caption":"Male Fallow Deer","height":90});
															thumbnails[632888] = clik.newPhoto({"id":632888,"src":"Roe2_thumb.jpg","galleries_id":48303,"server_id":1,"link":"photo_632888.html","width":130,"caption":"Roe Deer - Female","height":85});
															thumbnails[632889] = clik.newPhoto({"id":632889,"src":"Roe3_thumb.jpg","galleries_id":48303,"server_id":1,"link":"photo_632889.html","width":130,"caption":"Roe Deer - Female","height":162});
															thumbnails[632891] = clik.newPhoto({"id":632891,"src":"Roe 5_thumb.jpg","galleries_id":48303,"server_id":1,"link":"photo_632891.html","width":130,"caption":"Roe Deer - Male","height":172});
															thumbnails[632892] = clik.newPhoto({"id":632892,"src":"Young Muntjac Male_thumb.jpg","galleries_id":48303,"server_id":1,"link":"photo_632892.html","width":130,"caption":"Young Male Muntjac","height":94});
															thumbnails[636099] = clik.newPhoto({"id":636099,"src":"Two month old muntjac_thumb.jpg","galleries_id":48303,"server_id":1,"link":"photo_636099.html","width":130,"caption":"2 month old Muntjac","height":91});
															thumbnails[636101] = clik.newPhoto({"id":636101,"src":"Roe deer_thumb.jpg","galleries_id":48303,"server_id":1,"link":"photo_636101.html","width":130,"caption":"Roe Deer Feeding","height":87});
															thumbnails[636117] = clik.newPhoto({"id":636117,"src":"New Born muntjac_thumb.jpg","galleries_id":48303,"server_id":1,"link":"photo_636117.html","width":130,"caption":"New Born Muntjac","height":88});
															thumbnails[753478] = clik.newPhoto({"id":753478,"src":"Female Muntjac in Snow_thumb.jpg","galleries_id":48303,"server_id":1,"link":"photo_753478.html","width":130,"caption":"Female Muntjac ","height":85});
															thumbnails[753487] = clik.newPhoto({"id":753487,"src":"Muntjac in Snow3_thumb.jpg","galleries_id":48303,"server_id":1,"link":"photo_753487.html","width":130,"caption":"Female Muntjac ","height":84});
															thumbnails[774119] = clik.newPhoto({"id":774119,"src":"Male Adult Muntjac_thumb.jpg","galleries_id":48303,"server_id":1,"link":"photo_774119.html","width":130,"caption":"Male Adult Muntjac","height":79});
															thumbnails[4023950] = clik.newPhoto({"id":4023950,"src":"IMG_4611Web_copy1_thumb.jpg","galleries_id":164801,"server_id":1,"link":"photo_4023950.html","width":130,"caption":"Young chick 2009","height":80});
															thumbnails[4024026] = clik.newPhoto({"id":4024026,"src":"Kite_perching_web1_thumb.jpg","galleries_id":78604,"server_id":1,"link":"photo_4024026.html","width":130,"caption":"P11. Enjoying the sun","height":203});
															thumbnails[4172893] = clik.newPhoto({"id":4172893,"src":"IMG_4903Web_thumb.jpg","galleries_id":164801,"server_id":1,"link":"photo_4172893.html","width":130,"caption":"c. Young kite in holding pen ","height":87});
															thumbnails[5329768] = clik.newPhoto({"id":5329768,"src":"IMG_5184Web_thumb.jpg","galleries_id":78604,"server_id":1,"link":"photo_5329768.html","width":130,"caption":"11a. During the christmas 2009 snowfall","height":174});
															thumbnails[5330094] = clik.newPhoto({"id":5330094,"src":"IMG_4694Web_thumb.jpg","galleries_id":164801,"server_id":1,"link":"photo_5330094.html","width":130,"caption":"1a. Red Kite destined for Aberdeen","height":87});
															thumbnails[7887800] = clik.newPhoto({"id":7887800,"src":"IMG_7252Web_thumb.jpg","galleries_id":69369,"server_id":1,"link":"photo_7887800.html","width":120,"caption":"F4a","height":78});
															thumbnails[1057770] = clik.newPhoto({"id":1057770,"src":"IMG_8801Web_thumb.jpg","galleries_id":78604,"server_id":1,"link":"photo_1057770.html","width":130,"caption":"12. Perching (2)","height":173});
															thumbnails[2588173] = clik.newPhoto({"id":2588173,"src":"IMG_2828Web3_thumb.jpg","galleries_id":164801,"server_id":1,"link":"photo_2588173.html","width":130,"caption":"1. Young kite","height":176});
															thumbnails[2049525] = clik.newPhoto({"id":2049525,"src":"IMG_2060PrintPortraitWeb2_thumb.jpg","galleries_id":78604,"server_id":1,"link":"photo_2049525.html","width":130,"caption":"13. Close up","height":177});
															thumbnails[632865] = clik.newPhoto({"id":632865,"src":"KiteDiving_thumb.jpg","galleries_id":69369,"server_id":1,"link":"photo_632865.html","width":130,"caption":"1. Swooping","height":176});
															thumbnails[2049536] = clik.newPhoto({"id":2049536,"src":"IMG_2001Web_thumb.jpg","galleries_id":78604,"server_id":1,"link":"photo_2049536.html","width":130,"caption":"15. The Snow Kite","height":151});
															thumbnails[2362846] = clik.newPhoto({"id":2362846,"src":"IMG_2883Web_thumb.jpg","galleries_id":164801,"server_id":1,"link":"photo_2362846.html","width":130,"caption":"2. Young Kite in Holding Pen","height":84});
															thumbnails[633457] = clik.newPhoto({"id":633457,"src":"KiteFlying1_thumb.jpg","galleries_id":69369,"server_id":1,"link":"photo_633457.html","width":130,"caption":"F3.  Adult","height":149});
															thumbnails[2588175] = clik.newPhoto({"id":2588175,"src":"IMG_2986Web_thumb.jpg","galleries_id":164801,"server_id":1,"link":"photo_2588175.html","width":130,"caption":"3. Young kite","height":85});
															thumbnails[911511] = clik.newPhoto({"id":911511,"src":"IMG_7593Web_thumb.jpg","galleries_id":69369,"server_id":1,"link":"photo_911511.html","width":130,"caption":"F4.  2nd CY Kite","height":144});
															thumbnails[2362848] = clik.newPhoto({"id":2362848,"src":"IMG_2885Web_thumb.jpg","galleries_id":164801,"server_id":1,"link":"photo_2362848.html","width":130,"caption":"4. Young kite in holding pen","height":86});
															thumbnails[1100857] = clik.newPhoto({"id":1100857,"src":"IMG_8469Web_thumb.jpg","galleries_id":69369,"server_id":1,"link":"photo_1100857.html","width":130,"caption":"F5a.  In flight ","height":80});
															thumbnails[917037] = clik.newPhoto({"id":917037,"src":"In flight 3_thumb.jpg","galleries_id":69369,"server_id":1,"link":"photo_917037.html","width":130,"caption":"F5b.  In flight","height":97});
															thumbnails[917036] = clik.newPhoto({"id":917036,"src":"In flight 2_thumb.jpg","galleries_id":69369,"server_id":1,"link":"photo_917036.html","width":130,"caption":"F5c.  In flight","height":85});
															thumbnails[2313431] = clik.newPhoto({"id":2313431,"src":"IMG_2740Web1_thumb.jpg","galleries_id":164801,"server_id":1,"link":"photo_2313431.html","width":130,"caption":"5. Kite chicks in holding pen","height":85});
															thumbnails[955826] = clik.newPhoto({"id":955826,"src":"IMG_8353Web_thumb.jpg","galleries_id":69369,"server_id":1,"link":"photo_955826.html","width":130,"caption":"F5d.  In flight","height":87});
															thumbnails[955823] = clik.newPhoto({"id":955823,"src":"IMG_8343Web_thumb.jpg","galleries_id":69369,"server_id":1,"link":"photo_955823.html","width":130,"caption":"F5e.  In flight","height":87});
															thumbnails[912195] = clik.newPhoto({"id":912195,"src":"IMG_7565Web_thumb.jpg","galleries_id":69369,"server_id":1,"link":"photo_912195.html","width":130,"caption":"F5f.  In flight","height":92});
															thumbnails[857118] = clik.newPhoto({"id":857118,"src":"Chasing_thumb.jpg","galleries_id":69369,"server_id":1,"link":"photo_857118.html","width":130,"caption":"6. Chasing (1)","height":80});
															thumbnails[2103792] = clik.newPhoto({"id":2103792,"src":"IMG_2288Web_thumb.jpg","galleries_id":78604,"server_id":1,"link":"photo_2103792.html","width":130,"caption":"18. Camouflage","height":96});
															thumbnails[857124] = clik.newPhoto({"id":857124,"src":"Chasing2_thumb.jpg","galleries_id":69369,"server_id":1,"link":"photo_857124.html","width":130,"caption":"7. Chasing (2)","height":87});
															thumbnails[1101178] = clik.newPhoto({"id":1101178,"src":"IMG_8593Web_thumb.jpg","galleries_id":78604,"server_id":1,"link":"photo_1101178.html","width":130,"caption":"23. Perching at dusk","height":88});
															thumbnails[2049528] = clik.newPhoto({"id":2049528,"src":"IMG_1998web_thumb.jpg","galleries_id":78604,"server_id":1,"link":"photo_2049528.html","width":130,"caption":"27. The snow kite","height":88});
															thumbnails[1042683] = clik.newPhoto({"id":1042683,"src":"IMG_8598Web_thumb.jpg","galleries_id":78604,"server_id":1,"link":"photo_1042683.html","width":130,"caption":"24. Perching at dusk (2)","height":91});
															thumbnails[2054137] = clik.newPhoto({"id":2054137,"src":"IMG_2136WEB_thumb.jpg","galleries_id":78604,"server_id":1,"link":"photo_2054137.html","width":130,"caption":"28. A 2005 Chilterns kite","height":88});
															thumbnails[635166] = clik.newPhoto({"id":635166,"src":"KiteChickGateshead1_thumb.jpg","galleries_id":164801,"server_id":1,"link":"photo_635166.html","width":130,"caption":"Young Chick","height":93});
															thumbnails[878044] = clik.newPhoto({"id":878044,"src":"Diving_thumb.jpg","galleries_id":69369,"server_id":1,"link":"photo_878044.html","width":130,"caption":"8. Swooping","height":88});
															thumbnails[1268595] = clik.newPhoto({"id":1268595,"src":"IMG_8942Web_thumb.jpg","galleries_id":69369,"server_id":1,"link":"photo_1268595.html","width":130,"caption":"9. Feeding","height":80});
															thumbnails[857136] = clik.newPhoto({"id":857136,"src":"Ringed Kite_thumb.jpg","galleries_id":69369,"server_id":1,"link":"photo_857136.html","width":130,"caption":"10. A ringed kite","height":92});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[78605] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Red Kites","link":"gallery_78605.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"1057770,917037,633457,632865","id":78605,"singleSection":false});				  						galleries[69369] = clik.newGallery({"parentGallery":78605,"usePopups":true,"title":"Red Kites in flight","link":"gallery_69369.html","maxRecords":0.0,"photoIDs":[7887800.0,632865.0,633457.0,911511.0,1100857.0,917037.0,917036.0,955826.0,955823.0,912195.0,857118.0,857124.0,878044.0,1268595.0,857136.0],"skipIndex":0,"section_code":"gallery","featured_images":"917037,633457,632865","id":69369,"singleSection":false});				  						galleries[78604] = clik.newGallery({"parentGallery":78605,"usePopups":true,"title":"Red Kites Perching","link":"gallery_78604.html","maxRecords":0.0,"photoIDs":[4024026.0,5329768.0,1057770.0,2049525.0,2049536.0,2103792.0,1101178.0,2049528.0,1042683.0,2054137.0],"skipIndex":0,"section_code":"gallery","featured_images":1057770.0,"id":78604,"singleSection":false});				  						galleries[164801] = clik.newGallery({"parentGallery":78605,"usePopups":true,"title":"Young Red Kites","link":"gallery_164801.html","maxRecords":0.0,"photoIDs":[4023950.0,4172893.0,5330094.0,2588173.0,2362846.0,2588175.0,2362848.0,2313431.0,635166.0],"skipIndex":0,"section_code":"gallery","featured_images":"5330094,4172893,4023950,2588175,2588173,2362848,2362846,2313431,635166","id":164801,"singleSection":false});				  						galleries[48303] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Deer","link":"gallery_48303.html","maxRecords":0.0,"photoIDs":[632884.0,632888.0,632889.0,632891.0,632892.0,636099.0,636101.0,636117.0,753478.0,753487.0,774119.0],"skipIndex":0,"section_code":"gallery","featured_images":"774119,753487,753478,636117,636101,636099,632892,632891,632889,632888","id":48303,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '5330094,5329768,4172893,1057770,2588173,2362846,2588175,2362848,917037,2313431,2054137,878044';
imageSets[2] = '1057770,632865,633457,635977,917037';
imageSets[3] = '5330094';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/helen/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/helen/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/helen/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/helen/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/helen/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/helen/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/helen/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/helen/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/helen/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/helen/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/helen/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/helen/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/helen/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/helen/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/helen/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/helen/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/helen/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/helen/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/helen/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/helen/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/helen/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/helen/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/helen/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/helen/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 += '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 = ': ' + 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;
	}
}

			

