window.thumbnails = {};
															thumbnails[9038241] = clik.newPhoto({"id":9038241,"src":"Jay_111127_0503_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":190});
															thumbnails[9038659] = clik.newPhoto({"id":9038659,"src":"Nuthatch_111224_0141_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":190});
															thumbnails[9038658] = clik.newPhoto({"id":9038658,"src":"Blackbird_111230_0143_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":89});
															thumbnails[9038673] = clik.newPhoto({"id":9038673,"src":"Crossbill_111127_0096_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":89});
															thumbnails[9038236] = clik.newPhoto({"id":9038236,"src":"Goldfinch_111127_0671_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":89});
															thumbnails[7865219] = clik.newPhoto({"id":7865219,"src":"110521_Kingfisher-942_thumb.jpg","galleries_id":424433,"server_id":18,"link":"photo_7865219.html","width":130,"caption":"Common Kingfisher","height":190});
															thumbnails[7865887] = clik.newPhoto({"id":7865887,"src":"GSW_13_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7865887.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":190});
															thumbnails[7870152] = clik.newPhoto({"id":7870152,"src":"110521_Kingfisher-644_thumb.jpg","galleries_id":424433,"server_id":18,"link":"photo_7870152.html","width":130,"caption":"Common Kingfisher","height":190});
															thumbnails[8836854] = clik.newPhoto({"id":8836854,"src":"Crossbill_111127_0203_9ACF85A0-1EC9-DFB6-09A1824A4FE62216_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_8836854.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":190});
															thumbnails[7870157] = clik.newPhoto({"id":7870157,"src":"110521_Kingfisher-762_thumb.jpg","galleries_id":424433,"server_id":18,"link":"photo_7870157.html","width":130,"caption":"Common Kingfisher","height":190});
															thumbnails[7784875] = clik.newPhoto({"id":7784875,"src":"Great_Spotted_Woodpecker_110416-1211_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7784875.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":190});
															thumbnails[7870158] = clik.newPhoto({"id":7870158,"src":"110521_Kingfisher-844_thumb.jpg","galleries_id":424433,"server_id":18,"link":"photo_7870158.html","width":130,"caption":"Common Kingfisher","height":89});
															thumbnails[8893015] = clik.newPhoto({"id":8893015,"src":"Treecreeper_111210_0293_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_8893015.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":190});
															thumbnails[8893085] = clik.newPhoto({"id":8893085,"src":"Crossbill_111210_0243_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_8893085.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":190});
															thumbnails[7866000] = clik.newPhoto({"id":7866000,"src":"Wren1_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7866000.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":89});
															thumbnails[7870154] = clik.newPhoto({"id":7870154,"src":"110521_Kingfisher-324_thumb.jpg","galleries_id":424433,"server_id":18,"link":"photo_7870154.html","width":130,"caption":"Common Kingfisher","height":89});
															thumbnails[8893134] = clik.newPhoto({"id":8893134,"src":"Goldfinch_111203_0024_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_8893134.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":89});
															thumbnails[7784973] = clik.newPhoto({"id":7784973,"src":"Nuthatch_110416-296_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7784973.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":190});
															thumbnails[7870151] = clik.newPhoto({"id":7870151,"src":"110521_Kingfisher-580_thumb.jpg","galleries_id":424433,"server_id":18,"link":"photo_7870151.html","width":130,"caption":"Common Kingfisher","height":89});
															thumbnails[7784981] = clik.newPhoto({"id":7784981,"src":"Blue_Tit_110326-140_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7784981.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":190});
															thumbnails[7865220] = clik.newPhoto({"id":7865220,"src":"110521_Kingfisher-336_thumb.jpg","galleries_id":424433,"server_id":18,"link":"photo_7865220.html","width":130,"caption":"Common Kingfisher","height":89});
															thumbnails[7865994] = clik.newPhoto({"id":7865994,"src":"Nuty22_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7865994.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":89});
															thumbnails[7865221] = clik.newPhoto({"id":7865221,"src":"110521_Kingfisher-689_thumb.jpg","galleries_id":424433,"server_id":18,"link":"photo_7865221.html","width":130,"caption":"Common Kingfisher","height":89});
															thumbnails[7987642] = clik.newPhoto({"id":7987642,"src":"Barn_Owl_13_thumb.jpg","galleries_id":429460,"server_id":18,"link":"photo_7987642.html","width":130,"caption":"Barn Owl","height":89});
															thumbnails[7987645] = clik.newPhoto({"id":7987645,"src":"Barn_Owl_16_thumb.jpg","galleries_id":429460,"server_id":18,"link":"photo_7987645.html","width":130,"caption":"Barn Owl","height":89});
															thumbnails[7780916] = clik.newPhoto({"id":7780916,"src":"110326-226_Nuthatch1_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7780916.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":89});
															thumbnails[7987419] = clik.newPhoto({"id":7987419,"src":"Barn_Owl_1_thumb.jpg","galleries_id":429460,"server_id":18,"link":"photo_7987419.html","width":130,"caption":"Barn Owl","height":89});
															thumbnails[8836818] = clik.newPhoto({"id":8836818,"src":"Crossbill_111119_0267_9A761FBE-1EC9-DFB6-09D1344DDBA11F8C_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_8836818.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":89});
															thumbnails[7865911] = clik.newPhoto({"id":7865911,"src":"LTT4_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7865911.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":89});
															thumbnails[7987424] = clik.newPhoto({"id":7987424,"src":"Barn_Owl_2_thumb.jpg","galleries_id":429460,"server_id":18,"link":"photo_7987424.html","width":130,"caption":"Barn Owl","height":89});
															thumbnails[7865983] = clik.newPhoto({"id":7865983,"src":"Nuty16_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7865983.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":89});
															thumbnails[7987427] = clik.newPhoto({"id":7987427,"src":"Barn_Owl_3_thumb.jpg","galleries_id":429460,"server_id":18,"link":"photo_7987427.html","width":130,"caption":"Barn Owl","height":89});
															thumbnails[7865993] = clik.newPhoto({"id":7865993,"src":"Nuty20_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7865993.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":89});
															thumbnails[7987429] = clik.newPhoto({"id":7987429,"src":"Barn_Owl_4_thumb.jpg","galleries_id":429460,"server_id":18,"link":"photo_7987429.html","width":130,"caption":"Barn Owl","height":190});
															thumbnails[7865967] = clik.newPhoto({"id":7865967,"src":"Marsh_Tit_7_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7865967.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":89});
															thumbnails[7987430] = clik.newPhoto({"id":7987430,"src":"Barn_Owl_5_thumb.jpg","galleries_id":429460,"server_id":18,"link":"photo_7987430.html","width":130,"caption":"Barn Owl","height":190});
															thumbnails[7987452] = clik.newPhoto({"id":7987452,"src":"Barn_Owl_6_thumb.jpg","galleries_id":429460,"server_id":18,"link":"photo_7987452.html","width":130,"caption":"Barn Owl","height":190});
															thumbnails[7987490] = clik.newPhoto({"id":7987490,"src":"Barn_Owl_7_thumb.jpg","galleries_id":429460,"server_id":18,"link":"photo_7987490.html","width":130,"caption":"Barn Owl","height":190});
															thumbnails[7865981] = clik.newPhoto({"id":7865981,"src":"Nuty14_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7865981.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":89});
															thumbnails[7987529] = clik.newPhoto({"id":7987529,"src":"Barn_Owl_8_thumb.jpg","galleries_id":429460,"server_id":18,"link":"photo_7987529.html","width":130,"caption":"Barn Owl","height":190});
															thumbnails[7784863] = clik.newPhoto({"id":7784863,"src":"Great_Spotted_Woodpecker_110326-149_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7784863.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":190});
															thumbnails[7987542] = clik.newPhoto({"id":7987542,"src":"Barn_Owl_9_thumb.jpg","galleries_id":429460,"server_id":18,"link":"photo_7987542.html","width":130,"caption":"Barn Owl","height":190});
															thumbnails[7865886] = clik.newPhoto({"id":7865886,"src":"GSW_12_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7865886.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":190});
															thumbnails[7865909] = clik.newPhoto({"id":7865909,"src":"LTT1_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7865909.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":89});
															thumbnails[7865912] = clik.newPhoto({"id":7865912,"src":"LTT6_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7865912.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":89});
															thumbnails[7987629] = clik.newPhoto({"id":7987629,"src":"Barn_Owl_10_thumb.jpg","galleries_id":429460,"server_id":18,"link":"photo_7987629.html","width":130,"caption":"Barn Owl","height":190});
															thumbnails[7987640] = clik.newPhoto({"id":7987640,"src":"Barn_Owl_11_thumb.jpg","galleries_id":429460,"server_id":18,"link":"photo_7987640.html","width":130,"caption":"Barn Owl","height":190});
															thumbnails[7987641] = clik.newPhoto({"id":7987641,"src":"Barn_Owl_12_thumb.jpg","galleries_id":429460,"server_id":18,"link":"photo_7987641.html","width":130,"caption":"Barn Owl","height":89});
															thumbnails[7865968] = clik.newPhoto({"id":7865968,"src":"Nuty_1_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7865968.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":89});
															thumbnails[7987644] = clik.newPhoto({"id":7987644,"src":"Barn_Owl_15_thumb.jpg","galleries_id":429460,"server_id":18,"link":"photo_7987644.html","width":130,"caption":"Barn Owl","height":89});
															thumbnails[7866007] = clik.newPhoto({"id":7866007,"src":"Wren7_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7866007.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":190});
															thumbnails[7865813] = clik.newPhoto({"id":7865813,"src":"Brambling_1_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7865813.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":89});
															thumbnails[7987648] = clik.newPhoto({"id":7987648,"src":"Barn_Owl_17_thumb.jpg","galleries_id":429460,"server_id":18,"link":"photo_7987648.html","width":130,"caption":"Barn Owl","height":190});
															thumbnails[7865821] = clik.newPhoto({"id":7865821,"src":"Coal_Tit_1_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7865821.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":89});
															thumbnails[7987649] = clik.newPhoto({"id":7987649,"src":"Barn_Owl_19_thumb.jpg","galleries_id":429460,"server_id":18,"link":"photo_7987649.html","width":130,"caption":"Barn Owl","height":89});
															thumbnails[7865890] = clik.newPhoto({"id":7865890,"src":"GSW16_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7865890.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":190});
															thumbnails[7987650] = clik.newPhoto({"id":7987650,"src":"Barn_Owl_20_thumb.jpg","galleries_id":429460,"server_id":18,"link":"photo_7987650.html","width":130,"caption":"Barn Owl","height":89});
															thumbnails[7987651] = clik.newPhoto({"id":7987651,"src":"Barn_Owl_21_thumb.jpg","galleries_id":429460,"server_id":18,"link":"photo_7987651.html","width":130,"caption":"Barn Owl","height":190});
															thumbnails[7865969] = clik.newPhoto({"id":7865969,"src":"Nuty2_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7865969.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":89});
															thumbnails[7784873] = clik.newPhoto({"id":7784873,"src":"Great_Spotted_Woodpecker_110326-126_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7784873.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":190});
															thumbnails[7865843] = clik.newPhoto({"id":7865843,"src":"Goldfinch_1_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7865843.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":89});
															thumbnails[7865978] = clik.newPhoto({"id":7865978,"src":"Nuty13_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7865978.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":89});
															thumbnails[7865810] = clik.newPhoto({"id":7865810,"src":"Blue_Tit_2_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7865810.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":89});
															thumbnails[7784897] = clik.newPhoto({"id":7784897,"src":"Nuthatch_110416-289_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7784897.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":190});
															thumbnails[7865889] = clik.newPhoto({"id":7865889,"src":"GSW15_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7865889.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":190});
															thumbnails[7865913] = clik.newPhoto({"id":7865913,"src":"LTT8_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7865913.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":89});
															thumbnails[7865979] = clik.newPhoto({"id":7865979,"src":"Nuty11_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7865979.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":89});
															thumbnails[7865910] = clik.newPhoto({"id":7865910,"src":"LTT2_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7865910.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":89});
															thumbnails[7865991] = clik.newPhoto({"id":7865991,"src":"Nuty19_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7865991.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":89});
															thumbnails[7865972] = clik.newPhoto({"id":7865972,"src":"Nuty6_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7865972.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":89});
															thumbnails[7865888] = clik.newPhoto({"id":7865888,"src":"GSW14_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7865888.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":190});
															thumbnails[7865965] = clik.newPhoto({"id":7865965,"src":"Marsh_Tit_6_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7865965.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":89});
															thumbnails[7866003] = clik.newPhoto({"id":7866003,"src":"Wren2_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7866003.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":190});
															thumbnails[7865970] = clik.newPhoto({"id":7865970,"src":"Nuty3_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7865970.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":89});
															thumbnails[7865884] = clik.newPhoto({"id":7865884,"src":"GSW_11_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7865884.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":190});
															thumbnails[7865985] = clik.newPhoto({"id":7865985,"src":"Nuty17_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7865985.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":89});
															thumbnails[7865976] = clik.newPhoto({"id":7865976,"src":"Nuty10_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7865976.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":89});
															thumbnails[7865974] = clik.newPhoto({"id":7865974,"src":"Nuty8_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7865974.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":89});
															thumbnails[7865975] = clik.newPhoto({"id":7865975,"src":"Nuty9_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7865975.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":89});
															thumbnails[7865944] = clik.newPhoto({"id":7865944,"src":"Marsh_Tit_2_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7865944.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":190});
															thumbnails[7865988] = clik.newPhoto({"id":7865988,"src":"Nuty18_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7865988.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":190});
															thumbnails[7865847] = clik.newPhoto({"id":7865847,"src":"GSW_1_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7865847.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":190});
															thumbnails[7865851] = clik.newPhoto({"id":7865851,"src":"GSW_6_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7865851.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":190});
															thumbnails[7865853] = clik.newPhoto({"id":7865853,"src":"GSW_7_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7865853.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":190});
															thumbnails[7865819] = clik.newPhoto({"id":7865819,"src":"Chaffinch_1_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7865819.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":190});
															thumbnails[7865811] = clik.newPhoto({"id":7865811,"src":"Blue_Tit_3_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7865811.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":190});
															thumbnails[7865817] = clik.newPhoto({"id":7865817,"src":"Brambling_110326-053_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7865817.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":190});
															thumbnails[7866004] = clik.newPhoto({"id":7866004,"src":"Wren3_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7866004.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":190});
															thumbnails[7865815] = clik.newPhoto({"id":7865815,"src":"Brambling_2_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7865815.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":190});
															thumbnails[7865839] = clik.newPhoto({"id":7865839,"src":"Coal_Tit_2_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7865839.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":190});
															thumbnails[7865854] = clik.newPhoto({"id":7865854,"src":"GSW_8_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7865854.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":190});
															thumbnails[7865807] = clik.newPhoto({"id":7865807,"src":"Blue_tit_1_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7865807.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":190});
															thumbnails[7865973] = clik.newPhoto({"id":7865973,"src":"nuty7_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7865973.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":190});
															thumbnails[7865848] = clik.newPhoto({"id":7865848,"src":"GSW_2_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7865848.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":190});
															thumbnails[7865916] = clik.newPhoto({"id":7865916,"src":"Marsh_Tit_1_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7865916.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":190});
															thumbnails[7865997] = clik.newPhoto({"id":7865997,"src":"Wren_5_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7865997.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":190});
															thumbnails[7865850] = clik.newPhoto({"id":7865850,"src":"GSW_3_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7865850.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":190});
															thumbnails[7866008] = clik.newPhoto({"id":7866008,"src":"Wren9_thumb.jpg","galleries_id":420363,"server_id":18,"link":"photo_7866008.html","width":130,"caption":"<big>Woodland Bird Photography Workshop<\/big>","height":190});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[420363] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Woodland Birds Photography","link":"gallery_420363.html","maxRecords":0.0,"photoIDs":[7865887.0,8836854.0,7784875.0,8893015.0,8893085.0,7866000.0,8893134.0,7784973.0,7784981.0,7865994.0,7780916.0,8836818.0,7865911.0,7865983.0,7865993.0,7865967.0,7865981.0,7784863.0,7865886.0,7865909.0,7865912.0,7865968.0,7866007.0,7865813.0,7865821.0,7865890.0,7865969.0,7784873.0,7865843.0,7865978.0,7865810.0,7784897.0,7865889.0,7865913.0,7865979.0,7865910.0,7865991.0,7865972.0,7865888.0,7865965.0,7866003.0,7865970.0,7865884.0,7865985.0,7865976.0,7865974.0,7865975.0,7865944.0,7865988.0,7865847.0,7865851.0,7865853.0,7865819.0,7865811.0,7865817.0,7866004.0,7865815.0,7865839.0,7865854.0,7865807.0,7865973.0,7865848.0,7865916.0,7865997.0,7865850.0,7866008.0],"skipIndex":0,"section_code":"gallery","featured_images":"7865993,7865981","id":420363,"singleSection":false});				  						galleries[424433] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Kingfisher","link":"gallery_424433.html","maxRecords":0.0,"photoIDs":[7865219.0,7870152.0,7870157.0,7870158.0,7870154.0,7870151.0,7865220.0,7865221.0],"skipIndex":0,"section_code":"gallery","featured_images":7865221.0,"id":424433,"singleSection":false});				  						galleries[429460] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Barn Owl","link":"gallery_429460.html","maxRecords":0.0,"photoIDs":[7987642.0,7987645.0,7987419.0,7987424.0,7987427.0,7987429.0,7987430.0,7987452.0,7987490.0,7987529.0,7987542.0,7987629.0,7987640.0,7987641.0,7987644.0,7987648.0,7987649.0,7987650.0,7987651.0],"skipIndex":0,"section_code":"gallery","featured_images":7987642.0,"id":429460,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8836854,7865887,9038241,8893085,8893015,7784875,8893134,7866000,9038659,9038673,9038658,8836818,7865911,7865993,7865981,7865821,7865944,7865973';
imageSets[2] = '7987642,7865221,7865993,7865981';
imageSets[3] = '7866000,7865994,7865983,7865967,7865912,7865909,7865886,7865968,7866007,7865890,7865969,7865843,7865978,7865889,7865913,7865979,7865910,7865991,7865972,7865888,7865965,7866003,7865970,7865884,7865985,7865976,7865974,7865975,7865988,7865847,7865851,7865853,7865819,7865817,7866004,7865839,7865854,7865848,7865916,7865997,7865850,7866008';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/djwimages/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/djwimages/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/djwimages/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/djwimages/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/djwimages/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/djwimages/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/djwimages/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/djwimages/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/djwimages/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/djwimages/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/djwimages/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/djwimages/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/djwimages/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/djwimages/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/djwimages/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/djwimages/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/djwimages/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/djwimages/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/djwimages/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/djwimages/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/djwimages/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/djwimages/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/djwimages/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/djwimages/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/djwimages/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/djwimages/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/djwimages/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 = 'Photography by David Whistlecraft: ' + 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><p><b>Please select your payment option from the list below:</b></p></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="david.whistlecraft@btinternet.com">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="david.whistlecraft@btinternet.com">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

