window.thumbnails = {};
															thumbnails[8404960] = clik.newPhoto({"id":8404960,"src":"Hoverfly_4_thumb.jpg","galleries_id":280048,"server_id":18,"link":"photo_8404960.html","width":130,"caption":"","height":96});
															thumbnails[8404963] = clik.newPhoto({"id":8404963,"src":"Hoverfly_5_thumb.jpg","galleries_id":280048,"server_id":18,"link":"photo_8404963.html","width":130,"caption":"","height":100});
															thumbnails[7229835] = clik.newPhoto({"id":7229835,"src":"Tay-Bridge-Sunrise_thumb.jpg","galleries_id":279947,"server_id":18,"link":"photo_7229835.html","width":130,"caption":"Tay Rail Bridge Sunrise","height":84});
															thumbnails[7229837] = clik.newPhoto({"id":7229837,"src":"Tay-Bridge-Sunrise-2_thumb.jpg","galleries_id":279947,"server_id":18,"link":"photo_7229837.html","width":130,"caption":"","height":86});
															thumbnails[7229839] = clik.newPhoto({"id":7229839,"src":"Tay-Bridge-Sunrise-3_thumb.jpg","galleries_id":279947,"server_id":18,"link":"photo_7229839.html","width":86,"caption":"","height":130});
															thumbnails[7227181] = clik.newPhoto({"id":7227181,"src":"Ben-Ledi_thumb.jpg","galleries_id":279947,"server_id":18,"link":"photo_7227181.html","width":130,"caption":"Ben Ledi at Dawn","height":86});
															thumbnails[7227185] = clik.newPhoto({"id":7227185,"src":"Ben-Lomond-dawn_thumb.jpg","galleries_id":279947,"server_id":18,"link":"photo_7227185.html","width":130,"caption":"Ben Lomond at dawn","height":84});
															thumbnails[5808065] = clik.newPhoto({"id":5808065,"src":"Lochlaggan_thumb.jpg","galleries_id":279457,"server_id":18,"link":"photo_5808065.html","width":87,"caption":"Loch Laggan Reflections 1","height":130});
															thumbnails[5808069] = clik.newPhoto({"id":5808069,"src":"Reflections_thumb.jpg","galleries_id":279457,"server_id":18,"link":"photo_5808069.html","width":130,"caption":"Mountain Refections","height":86});
															thumbnails[5808175] = clik.newPhoto({"id":5808175,"src":"View-to-the-Grey-Corries_thumb.jpg","galleries_id":279457,"server_id":18,"link":"photo_5808175.html","width":130,"caption":"View to The Grey Corries","height":86});
															thumbnails[5794659] = clik.newPhoto({"id":5794659,"src":"Isle-of-Rum-Sunset_thumb.jpg","galleries_id":280047,"server_id":18,"link":"photo_5794659.html","width":130,"caption":"Isle of Rum Sunset 1","height":86});
															thumbnails[5794661] = clik.newPhoto({"id":5794661,"src":"Isle-of-Rum-Sunset-2_thumb.jpg","galleries_id":279457,"server_id":18,"link":"photo_5794661.html","width":130,"caption":"Isle of Rum Sunset 2","height":86});
															thumbnails[5650533] = clik.newPhoto({"id":5650533,"src":"Glen-Isla-with-Redlatches-Cottage-2_thumb.jpg","galleries_id":279457,"server_id":18,"link":"photo_5650533.html","width":130,"caption":"Glen Isla with Redlatches Cottage in the foreground","height":86});
															thumbnails[5612547] = clik.newPhoto({"id":5612547,"src":"The-Earn-Valley_thumb.jpg","galleries_id":279457,"server_id":18,"link":"photo_5612547.html","width":130,"caption":"The Earn Valley","height":86});
															thumbnails[5612605] = clik.newPhoto({"id":5612605,"src":"The-One-Tree-mono_thumb.jpg","galleries_id":279457,"server_id":18,"link":"photo_5612605.html","width":86,"caption":"A Lone tree (mono)","height":130});
															thumbnails[5535522] = clik.newPhoto({"id":5535522,"src":"pates-hill-1_thumb.jpg","galleries_id":280047,"server_id":18,"link":"photo_5535522.html","width":97,"caption":"Sunset across Pates Hill Windfarm","height":130});
															thumbnails[5535526] = clik.newPhoto({"id":5535526,"src":"pates-hill-2_thumb.jpg","galleries_id":280047,"server_id":18,"link":"photo_5535526.html","width":102,"caption":"Sunset across Pates Hill Windfarm","height":130});
															thumbnails[5535527] = clik.newPhoto({"id":5535527,"src":"Pates-hill-3_thumb.jpg","galleries_id":280047,"server_id":18,"link":"photo_5535527.html","width":130,"caption":"Sunset across Pates Hill Windfarm","height":87});
															thumbnails[5535528] = clik.newPhoto({"id":5535528,"src":"Pates-hill-4_thumb.jpg","galleries_id":280047,"server_id":18,"link":"photo_5535528.html","width":130,"caption":"Sunset across Pates Hill Windfarm","height":87});
															thumbnails[5535654] = clik.newPhoto({"id":5535654,"src":"Phalanaeopsis_thumb.jpg","galleries_id":280062,"server_id":18,"link":"photo_5535654.html","width":130,"caption":"","height":87});
															thumbnails[5363091] = clik.newPhoto({"id":5363091,"src":"Winter-Dawn-3_thumb.jpg","galleries_id":279947,"server_id":18,"link":"photo_5363091.html","width":130,"caption":"Sunrise in the Carse of Gowrie","height":87});
															thumbnails[4916941] = clik.newPhoto({"id":4916941,"src":"Invergowrie-bay-2_thumb.jpg","galleries_id":284353,"server_id":18,"link":"photo_4916941.html","width":130,"caption":"Invergowrie Bay","height":65});
															thumbnails[4914171] = clik.newPhoto({"id":4914171,"src":"DSCN20671_thumb.JPG","galleries_id":279458,"server_id":18,"link":"photo_4914171.html","width":130,"caption":"Common Blue Butterfly","height":98});
															thumbnails[4914260] = clik.newPhoto({"id":4914260,"src":"4-spot-caser-imm-male-02new1_thumb.jpg","galleries_id":280048,"server_id":18,"link":"photo_4914260.html","width":130,"caption":"4 Spot Chaser Dragonfly","height":173});
															thumbnails[4916838] = clik.newPhoto({"id":4916838,"src":"20090912-skye-at-dusk_thumb.jpg","galleries_id":284353,"server_id":18,"link":"photo_4916838.html","width":130,"caption":"Skye Panorama","height":50});
															thumbnails[4916839] = clik.newPhoto({"id":4916839,"src":"B-Ferry-3_thumb.jpg","galleries_id":279947,"server_id":18,"link":"photo_4916839.html","width":130,"caption":"Broughty Ferry Sunrise","height":87});
															thumbnails[4916865] = clik.newPhoto({"id":4916865,"src":"B-Ferry-sunrise_thumb.jpg","galleries_id":279947,"server_id":18,"link":"photo_4916865.html","width":130,"caption":"Broughty Ferry Sunrise","height":87});
															thumbnails[4916888] = clik.newPhoto({"id":4916888,"src":"Eileandonan_thumb.jpg","galleries_id":280047,"server_id":18,"link":"photo_4916888.html","width":130,"caption":"Eilean Donan Castle.","height":86});
															thumbnails[4916919] = clik.newPhoto({"id":4916919,"src":"Eileandonan2_thumb.jpg","galleries_id":279457,"server_id":18,"link":"photo_4916919.html","width":130,"caption":"Eilean Donan Castle.","height":87});
															thumbnails[4917035] = clik.newPhoto({"id":4917035,"src":"Kingoodie-2_thumb.jpg","galleries_id":280047,"server_id":18,"link":"photo_4917035.html","width":130,"caption":"Sunset over Kingoodie Bay","height":87});
															thumbnails[4917101] = clik.newPhoto({"id":4917101,"src":"Kingoodie-3_thumb.jpg","galleries_id":280047,"server_id":18,"link":"photo_4917101.html","width":130,"caption":"Sunset over Kingoodie Bay.","height":87});
															thumbnails[4917113] = clik.newPhoto({"id":4917113,"src":"loch-Lomond-3_thumb.jpg","galleries_id":284353,"server_id":18,"link":"photo_4917113.html","width":130,"caption":"Loch Lomond Panorama","height":36});
															thumbnails[4917121] = clik.newPhoto({"id":4917121,"src":"Orchid_thumb.jpg","galleries_id":280062,"server_id":18,"link":"photo_4917121.html","width":130,"caption":"Miltonia Orchid","height":87});
															thumbnails[4917126] = clik.newPhoto({"id":4917126,"src":"Plockton-View_thumb.jpg","galleries_id":279457,"server_id":18,"link":"photo_4917126.html","width":130,"caption":"View from Plockton","height":85});
															thumbnails[4920988] = clik.newPhoto({"id":4920988,"src":"Plockton-View2_thumb.jpg","galleries_id":279457,"server_id":18,"link":"photo_4920988.html","width":130,"caption":"View to Loch Kishorn. Taken from Plockton","height":87});
															thumbnails[4920989] = clik.newPhoto({"id":4920989,"src":"reekie-Linn_thumb.jpg","galleries_id":279457,"server_id":18,"link":"photo_4920989.html","width":130,"caption":"Reekie Linn, Angus.","height":85});
															thumbnails[4920993] = clik.newPhoto({"id":4920993,"src":"skyeatnight_thumb.jpg","galleries_id":280047,"server_id":18,"link":"photo_4920993.html","width":130,"caption":"Skye at Dusk","height":87});
															thumbnails[4920995] = clik.newPhoto({"id":4920995,"src":"skyeatnight2_thumb.jpg","galleries_id":280047,"server_id":18,"link":"photo_4920995.html","width":130,"caption":"Skye at Dusk 2","height":87});
															thumbnails[4920998] = clik.newPhoto({"id":4920998,"src":"Village-of-Plockton-2_thumb.jpg","galleries_id":279457,"server_id":18,"link":"photo_4920998.html","width":130,"caption":"Village of Plockton","height":87});
															thumbnails[4921090] = clik.newPhoto({"id":4921090,"src":"Painted-Lady_thumb.jpg","galleries_id":279458,"server_id":18,"link":"photo_4921090.html","width":130,"caption":"Painted Lady Butterfly feeding on Marjoram.","height":87});
															thumbnails[4921092] = clik.newPhoto({"id":4921092,"src":"Painted-lady-2_thumb.jpg","galleries_id":279458,"server_id":18,"link":"photo_4921092.html","width":130,"caption":"Painted Lady Butterfly 2","height":87});
															thumbnails[4921094] = clik.newPhoto({"id":4921094,"src":"Speckledwood_thumb.jpg","galleries_id":279458,"server_id":18,"link":"photo_4921094.html","width":130,"caption":"Speckled Wood Butterfly","height":87});
															thumbnails[4921095] = clik.newPhoto({"id":4921095,"src":"Highland-Darter_thumb.jpg","galleries_id":280048,"server_id":18,"link":"photo_4921095.html","width":130,"caption":"Highland Darter Dragonfly. Female ","height":87});
															thumbnails[4921097] = clik.newPhoto({"id":4921097,"src":"Black-Darter-Male-02_thumb.jpg","galleries_id":280048,"server_id":18,"link":"photo_4921097.html","width":130,"caption":"Black Darter Dragonfly. Male","height":95});
															thumbnails[4921098] = clik.newPhoto({"id":4921098,"src":"Hoverfly_thumb.jpg","galleries_id":280062,"server_id":18,"link":"photo_4921098.html","width":130,"caption":"Hoverfly on Thistle","height":87});
															thumbnails[4923914] = clik.newPhoto({"id":4923914,"src":"Red-Rose_thumb.jpg","galleries_id":280062,"server_id":18,"link":"photo_4923914.html","width":130,"caption":"Red Rose","height":87});
															thumbnails[4923915] = clik.newPhoto({"id":4923915,"src":"Red-Rose-2_thumb.jpg","galleries_id":280062,"server_id":18,"link":"photo_4923915.html","width":130,"caption":"Red Rose","height":130});
															thumbnails[5024027] = clik.newPhoto({"id":5024027,"src":"Falls_of_Avich123_thumb.JPG","galleries_id":279457,"server_id":18,"link":"photo_5024027.html","width":130,"caption":"Falls of Avich","height":87});
															thumbnails[5024030] = clik.newPhoto({"id":5024030,"src":"Falls_of_Avich_31_thumb.JPG","galleries_id":279457,"server_id":18,"link":"photo_5024030.html","width":130,"caption":"Falls of Avich 2","height":87});
															thumbnails[5024036] = clik.newPhoto({"id":5024036,"src":"Sunset_from_the_Law_110909_0812_thumb.JPG","galleries_id":280047,"server_id":18,"link":"photo_5024036.html","width":130,"caption":"Sunset from the Law, Dundee","height":62});
															thumbnails[5024039] = clik.newPhoto({"id":5024039,"src":"Thistle_thumb.jpg","galleries_id":280062,"server_id":18,"link":"photo_5024039.html","width":87,"caption":"Thistle","height":130});
															thumbnails[5029648] = clik.newPhoto({"id":5029648,"src":"Blaven-at-dusk-from-Loch-Slapin_thumb.jpg","galleries_id":279457,"server_id":18,"link":"photo_5029648.html","width":130,"caption":"Blaven from Loch Slapin","height":88});
															thumbnails[5030456] = clik.newPhoto({"id":5030456,"src":"-Phalaenopsis-2_thumb.JPG","galleries_id":280062,"server_id":18,"link":"photo_5030456.html","width":130,"caption":"Phalaenopsis close up","height":130});
															thumbnails[5030469] = clik.newPhoto({"id":5030469,"src":"Black-Watch-memorial_thumb.JPG","galleries_id":279457,"server_id":18,"link":"photo_5030469.html","width":130,"caption":"A Lone Scottish Soldier watches over Dundee. The Black Watch Memorial, Powrie Brae, Angus.","height":87});
															thumbnails[5030472] = clik.newPhoto({"id":5030472,"src":"Black-Watch-memorial-2_thumb.JPG","galleries_id":279457,"server_id":18,"link":"photo_5030472.html","width":87,"caption":"A Lone Scottish Soldier watches over Dundee. The Black Watch Memorial, Powrie Brae, Angus.","height":130});
															thumbnails[5030535] = clik.newPhoto({"id":5030535,"src":"Loch-Shandra_thumb.JPG","galleries_id":279457,"server_id":18,"link":"photo_5030535.html","width":130,"caption":"Loch Shandra, Glen Markie, Angus.","height":87});
															thumbnails[5030549] = clik.newPhoto({"id":5030549,"src":"Miltonia-Flower_thumb.jpg","galleries_id":280062,"server_id":18,"link":"photo_5030549.html","width":130,"caption":"Miltonia Orchid close up","height":130});
															thumbnails[5030555] = clik.newPhoto({"id":5030555,"src":"Phalaenopsis_thumb.JPG","galleries_id":280062,"server_id":18,"link":"photo_5030555.html","width":130,"caption":"Phalaenopsis Flower","height":87});
															thumbnails[5030854] = clik.newPhoto({"id":5030854,"src":"Red-Admiral-on-Sedum_thumb.JPG","galleries_id":279458,"server_id":18,"link":"photo_5030854.html","width":130,"caption":"Red Admiral feeding on Sedum spectabile","height":87});
															thumbnails[5030906] = clik.newPhoto({"id":5030906,"src":"Red-Admiral-on-Sedum-2_thumb.JPG","galleries_id":279458,"server_id":18,"link":"photo_5030906.html","width":130,"caption":"Red Admiral Butterfly feeding on Sedum spectabile","height":87});
															thumbnails[5091688] = clik.newPhoto({"id":5091688,"src":"20090225_Sgorr-Dhearg_035_thumb.jpg","galleries_id":279457,"server_id":18,"link":"photo_5091688.html","width":87,"caption":"Sgorr Dhearg from Loch Leven","height":130});
															thumbnails[5091692] = clik.newPhoto({"id":5091692,"src":"20090225-Sgorr-Dhearg_thumb.jpg","galleries_id":279457,"server_id":18,"link":"photo_5091692.html","width":130,"caption":"Sgorr Dhearg from Loch Leven","height":87});
															thumbnails[5105067] = clik.newPhoto({"id":5105067,"src":"DSCN2595new_thumb.jpg","galleries_id":279458,"server_id":18,"link":"photo_5105067.html","width":130,"caption":"Green Hairstreak","height":87});
															thumbnails[5641344] = clik.newPhoto({"id":5641344,"src":"Crocus-5_thumb.jpg","galleries_id":280062,"server_id":18,"link":"photo_5641344.html","width":130,"caption":"Crocus macro 1","height":130});
															thumbnails[5641352] = clik.newPhoto({"id":5641352,"src":"Crocus-6_thumb.jpg","galleries_id":280062,"server_id":18,"link":"photo_5641352.html","width":130,"caption":"Crocus ","height":86});
															thumbnails[5794726] = clik.newPhoto({"id":5794726,"src":"Loch-Freuchie_thumb.jpg","galleries_id":279457,"server_id":18,"link":"photo_5794726.html","width":130,"caption":"Loch Freuchie, Perthshire","height":86});
															thumbnails[5794727] = clik.newPhoto({"id":5794727,"src":"Loch-Freuchie-2_thumb.jpg","galleries_id":279457,"server_id":18,"link":"photo_5794727.html","width":86,"caption":"Loch Freuchie 2, Perthshire","height":130});
															thumbnails[5794733] = clik.newPhoto({"id":5794733,"src":"Loch-Freuchie-3_thumb.jpg","galleries_id":279457,"server_id":18,"link":"photo_5794733.html","width":130,"caption":"Loch Freuchie 3, Perthshire","height":86});
															thumbnails[5794736] = clik.newPhoto({"id":5794736,"src":"Loch-Morar_thumb.jpg","galleries_id":279457,"server_id":18,"link":"photo_5794736.html","width":130,"caption":"Loch Morar, Highland","height":85});
															thumbnails[5794738] = clik.newPhoto({"id":5794738,"src":"Loch-Morar-2_thumb.jpg","galleries_id":279457,"server_id":18,"link":"photo_5794738.html","width":130,"caption":"Loch Morar, Highland","height":86});
															thumbnails[5808056] = clik.newPhoto({"id":5808056,"src":"Glenfinnan_thumb.jpg","galleries_id":279457,"server_id":18,"link":"photo_5808056.html","width":130,"caption":"Glenfinnan Monument","height":85});
															thumbnails[7131232] = clik.newPhoto({"id":7131232,"src":"LOMOND_thumb.jpg","galleries_id":279457,"server_id":18,"link":"photo_7131232.html","width":130,"caption":"","height":86});
															thumbnails[7468216] = clik.newPhoto({"id":7468216,"src":"08122010-winter-tree-2_thumb.jpg","galleries_id":279947,"server_id":18,"link":"photo_7468216.html","width":73,"caption":"Winter Sunrise","height":130});
															thumbnails[7468237] = clik.newPhoto({"id":7468237,"src":"Loch_thumb.jpg","galleries_id":280047,"server_id":18,"link":"photo_7468237.html","width":130,"caption":"Loch Lochy","height":110});
															thumbnails[7846967] = clik.newPhoto({"id":7846967,"src":"_DSC0233_thumb.jpg","galleries_id":279457,"server_id":18,"link":"photo_7846967.html","width":86,"caption":"Reflections in the Mist","height":130});
															thumbnails[7846996] = clik.newPhoto({"id":7846996,"src":"_DSC0248_thumb.jpg","galleries_id":279457,"server_id":18,"link":"photo_7846996.html","width":130,"caption":"Cottage on Loch Laggan","height":86});
															thumbnails[7847001] = clik.newPhoto({"id":7847001,"src":"_CSC0967_thumb.jpg","galleries_id":454942,"server_id":18,"link":"photo_7847001.html","width":130,"caption":"Toads","height":86});
															thumbnails[7847009] = clik.newPhoto({"id":7847009,"src":"_DSC0225_thumb.jpg","galleries_id":279457,"server_id":18,"link":"photo_7847009.html","width":86,"caption":"Reflected Sapling","height":130});
															thumbnails[8687081] = clik.newPhoto({"id":8687081,"src":"Rum-wall-art-1_thumb.jpg","galleries_id":302771,"server_id":18,"link":"photo_8687081.html","width":130,"caption":"Wall Art canvas of Rum","height":111});
															thumbnails[8690561] = clik.newPhoto({"id":8690561,"src":"_DSC0466_thumb.jpg","galleries_id":302771,"server_id":18,"link":"photo_8690561.html","width":130,"caption":"Balmossie Sunrise","height":86});
															thumbnails[8690565] = clik.newPhoto({"id":8690565,"src":"_DSC0541_thumb.jpg","galleries_id":302771,"server_id":18,"link":"photo_8690565.html","width":104,"caption":"Great spotted Woodpecker","height":130});
															thumbnails[8690568] = clik.newPhoto({"id":8690568,"src":"_DSC0580_thumb.jpg","galleries_id":302771,"server_id":18,"link":"photo_8690568.html","width":104,"caption":"Great spotted Woodpecker","height":130});
															thumbnails[8690569] = clik.newPhoto({"id":8690569,"src":"_DSC0589_thumb.jpg","galleries_id":302771,"server_id":18,"link":"photo_8690569.html","width":93,"caption":"Great spotted Woodpecker","height":130});
															thumbnails[8880138] = clik.newPhoto({"id":8880138,"src":"_DSC0227_thumb.jpg","galleries_id":302771,"server_id":18,"link":"photo_8880138.html","width":130,"caption":"Tay Road Bridge","height":86});
															thumbnails[8880163] = clik.newPhoto({"id":8880163,"src":"_DSC0213_thumb.jpg","galleries_id":302771,"server_id":18,"link":"photo_8880163.html","width":130,"caption":"Tay Road Bidge Sunrise","height":86});
															thumbnails[8898133] = clik.newPhoto({"id":8898133,"src":"_DSC0085_thumb.jpg","galleries_id":302771,"server_id":18,"link":"photo_8898133.html","width":130,"caption":"Black Watch Memorial","height":86});
															thumbnails[8604808] = clik.newPhoto({"id":8604808,"src":"Robin-web_thumb.jpg","galleries_id":302771,"server_id":18,"link":"photo_8604808.html","width":99,"caption":"","height":130});
															thumbnails[8604809] = clik.newPhoto({"id":8604809,"src":"Robin-3-web_thumb.jpg","galleries_id":302771,"server_id":18,"link":"photo_8604809.html","width":130,"caption":"","height":104});
															thumbnails[8604810] = clik.newPhoto({"id":8604810,"src":"Tay-sunrise-2-web_thumb.jpg","galleries_id":302771,"server_id":18,"link":"photo_8604810.html","width":130,"caption":"Tay road bridge at sunrise","height":55});
															thumbnails[8604811] = clik.newPhoto({"id":8604811,"src":"BFerry-sunrise-web_thumb.jpg","galleries_id":302771,"server_id":18,"link":"photo_8604811.html","width":130,"caption":"","height":86});
															thumbnails[5060092] = clik.newPhoto({"id":5060092,"src":"2b-Merlin-young-1---4-days-old_thumb.jpg","galleries_id":285924,"server_id":18,"link":"photo_5060092.html","width":130,"caption":"chicks with white down, grey beginning to show, egg tooth, age 1-4 days","height":92});
															thumbnails[5053443] = clik.newPhoto({"id":5053443,"src":"merlin-5-7-days_thumb.jpg","galleries_id":285924,"server_id":18,"link":"photo_5053443.html","width":130,"caption":"Egg tooth still visible. Grey Down. Feather Pins growing. Age 5 - 7 days.","height":98});
															thumbnails[5059640] = clik.newPhoto({"id":5059640,"src":"5a-Merlin-Young-12-15-days-old_thumb.jpg","galleries_id":285924,"server_id":18,"link":"photo_5059640.html","width":130,"caption":"Chicks have feathers emerging from pin, <20mm growth, grey down, no egg tooth, age 12-15 days old","height":93});
															thumbnails[5053446] = clik.newPhoto({"id":5053446,"src":"merlin-15-17-days-2_thumb.jpg","galleries_id":285924,"server_id":18,"link":"photo_5053446.html","width":130,"caption":"Feather length on P1 >50mm, grey down in some areas. Age 17-18 days","height":98});
															thumbnails[5053448] = clik.newPhoto({"id":5053448,"src":"merlin-15-17-days-3_thumb.jpg","galleries_id":285924,"server_id":18,"link":"photo_5053448.html","width":130,"caption":"Feather length on P1 >50mm, grey down in some areas. Age 17-18 days","height":98});
															thumbnails[5059649] = clik.newPhoto({"id":5059649,"src":"7a-Merlin-Young-17-20--days-old-2_thumb.jpg","galleries_id":285924,"server_id":18,"link":"photo_5059649.html","width":130,"caption":"Chicks have little down remaining. Feather P1 >50mm in length. Age 18-20 days old","height":85});
															thumbnails[5059656] = clik.newPhoto({"id":5059656,"src":"8a-Merlin-Young-fledged-28-30-days-old_thumb.jpg","galleries_id":285924,"server_id":18,"link":"photo_5059656.html","width":130,"caption":"Fledged chick aged 28-30 days old. Flying around site.","height":82});
															thumbnails[5059659] = clik.newPhoto({"id":5059659,"src":"9c-Fledged-Merlin_thumb.jpg","galleries_id":285924,"server_id":18,"link":"photo_5059659.html","width":130,"caption":"Fledged male merlin","height":93});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[302771] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"New","link":"gallery_302771.html","maxRecords":0.0,"photoIDs":[8687081.0,8690561.0,8690565.0,8690568.0,8690569.0,8880138.0,8880163.0,8898133.0,8604808.0,8604809.0,8604810.0,8604811.0],"skipIndex":0,"section_code":"gallery","featured_images":"8898133,8880163,8880138,8690569,8690568,8690565,8690561,8687081,8604811,8604810","id":302771,"singleSection":false});				  						galleries[279457] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Landscapes","link":"gallery_279457.html","maxRecords":0.0,"photoIDs":[5808065.0,5808069.0,5808175.0,5794661.0,5650533.0,5612547.0,5612605.0,4916919.0,4917126.0,4920988.0,4920989.0,4920998.0,5024027.0,5024030.0,5029648.0,5030469.0,5030472.0,5030535.0,5091688.0,5091692.0,5794726.0,5794727.0,5794733.0,5794736.0,5794738.0,5808056.0,7131232.0,7846967.0,7846996.0,7847009.0],"skipIndex":0,"section_code":"gallery","featured_images":"5030535,5030472,5030469,5029648,5024030,5024027,4920998,4920989,4920988,4917126,4916919","id":279457,"singleSection":false});				  						galleries[279947] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Sunrise","link":"gallery_279947.html","maxRecords":0.0,"photoIDs":[7229835.0,7229837.0,7229839.0,7227181.0,7227185.0,5363091.0,4916839.0,4916865.0,7468216.0],"skipIndex":0,"section_code":"gallery","featured_images":"4916865,4916839","id":279947,"singleSection":false});				  						galleries[280047] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Sunset","link":"gallery_280047.html","maxRecords":0.0,"photoIDs":[5794659.0,5535522.0,5535526.0,5535527.0,5535528.0,4916888.0,4917035.0,4917101.0,4920993.0,4920995.0,5024036.0,7468237.0],"skipIndex":0,"section_code":"gallery","featured_images":"4920995,4920993,4917101,4917035,4916888","id":280047,"singleSection":false});				  						galleries[280062] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Flowers","link":"gallery_280062.html","maxRecords":0.0,"photoIDs":[5535654.0,4917121.0,4921098.0,4923914.0,4923915.0,5024039.0,5030456.0,5030549.0,5030555.0,5641344.0,5641352.0],"skipIndex":0,"section_code":"gallery","featured_images":"5030555,5030549,5030456,5024039,4923915,4923914,4921098,4917121","id":280062,"singleSection":false});				  						galleries[279458] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Butterfly","link":"gallery_279458.html","maxRecords":0.0,"photoIDs":[4914171.0,4921090.0,4921092.0,4921094.0,5030854.0,5030906.0,5105067.0],"skipIndex":0,"section_code":"gallery","featured_images":"5030906,5030854,4921094,4921092,4921090,4914171","id":279458,"singleSection":false});				  						galleries[280048] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Insects","link":"gallery_280048.html","maxRecords":0.0,"photoIDs":[8404960.0,8404963.0,4914260.0,4921095.0,4921097.0],"skipIndex":0,"section_code":"gallery","featured_images":"4921097,4921095,4914260","id":280048,"singleSection":false});				  						galleries[281624] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Birds ","link":"gallery_281624.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":5059649.0,"id":281624,"singleSection":false});				  						galleries[284353] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Panoramics","link":"gallery_284353.html","maxRecords":0.0,"photoIDs":[4916941.0,4916838.0,4917113.0],"skipIndex":0,"section_code":"gallery","featured_images":"4917113,4916941,4916838","id":284353,"singleSection":false});				  						galleries[285924] = clik.newGallery({"parentGallery":281624,"usePopups":false,"title":"Merlin Ageing","link":"gallery_285924.html","maxRecords":0.0,"photoIDs":[5060092.0,5053443.0,5059640.0,5053446.0,5053448.0,5059649.0,5059656.0,5059659.0],"skipIndex":0,"section_code":"gallery","featured_images":5059649.0,"id":285924,"singleSection":false});				  						galleries[454942] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Amphibian","link":"gallery_454942.html","maxRecords":0.0,"photoIDs":[7847001.0],"skipIndex":0,"section_code":"gallery","featured_images":7847001.0,"id":454942,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '5091692,5091688,5030535,5030472,5030469,5030456,5029648,5024039,5024036,5024030,5024027,4923915,4923914,4920998,4920995,4920993,4920989,4920988,4917126,4917121,4917101,4917035,4916941,4916919,4916888,4916865,4916839,4916838';
imageSets[2] = '5030906,5030854,5030555,5030549,5030535,5030472,5030469,5030456,5029648,5024039,5024030,5024027,4923915,4923914,4921098,4921097,4921095,4921094,4921092,4921090,4920998,4920995,4920993,4920989,4920988,4917126,4917121,4917113,4917101,4917035,4916941,4916919,4916888,4916865,4916839,4916838,4914260,4914171,5059649';
imageSets[3] = '5030906,5030854,5030555,5030549,4921098,4921097,4921095,4921094,4921092,4921090,5060092';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/dwhitton/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/dwhitton/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/dwhitton/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/dwhitton/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/dwhitton/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/dwhitton/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/dwhitton/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/dwhitton/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/dwhitton/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/dwhitton/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/dwhitton/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/dwhitton/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/dwhitton/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/dwhitton/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/dwhitton/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/dwhitton/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/dwhitton/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/dwhitton/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/dwhitton/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/dwhitton/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/dwhitton/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/dwhitton/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/dwhitton/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/dwhitton/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/dwhitton/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/dwhitton/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/dwhitton/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 = 'D Whitton Lansdscape Photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="dw2505.home@blueyonder.co.uk">';
					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="dw2505.home@blueyonder.co.uk">';
				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;
	}
}

			

