window.thumbnails = {};
															thumbnails[8583938] = clik.newPhoto({"id":8583938,"src":"Bio_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":191});
															thumbnails[8597349] = clik.newPhoto({"id":8597349,"src":"IA_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":85});
															thumbnails[8990453] = clik.newPhoto({"id":8990453,"src":"BathPano_thumb.jpg","galleries_id":332966,"server_id":18,"link":"photo_8990453.html","width":130,"caption":"Bath Landscape","height":36});
															thumbnails[7930030] = clik.newPhoto({"id":7930030,"src":"Roe-DeerBuck_thumb.jpg","galleries_id":69593,"server_id":18,"link":"photo_7930030.html","width":130,"caption":"Roe Deer","height":187});
															thumbnails[2868601] = clik.newPhoto({"id":2868601,"src":"_IB_0014_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_2868601.html","width":129,"caption":"Leopard with kill","height":194});
															thumbnails[2873525] = clik.newPhoto({"id":2873525,"src":"_IB_0246_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_2873525.html","width":130,"caption":"Cheetah","height":194});
															thumbnails[2882922] = clik.newPhoto({"id":2882922,"src":"Leopard-Rock_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_2882922.html","width":130,"caption":"Leopard at Sunset","height":194});
															thumbnails[2882911] = clik.newPhoto({"id":2882911,"src":"Marsh-Pride-Cub_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_2882911.html","width":129,"caption":"Marsh Pride Lion Cub","height":180});
															thumbnails[2888981] = clik.newPhoto({"id":2888981,"src":"Marsh-Pride-Group_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_2888981.html","width":129,"caption":"Marsh pride","height":99});
															thumbnails[2889076] = clik.newPhoto({"id":2889076,"src":"_IB_0018a1_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_2889076.html","width":129,"caption":"Female Lion Hunting","height":86});
															thumbnails[1317979] = clik.newPhoto({"id":1317979,"src":"Brown-Bear_thumb.jpg","galleries_id":69686,"server_id":18,"link":"photo_1317979.html","width":130,"caption":"Brown Bear","height":195});
															thumbnails[1317987] = clik.newPhoto({"id":1317987,"src":"Rufus-Hummingbird_thumb.jpg","galleries_id":69686,"server_id":18,"link":"photo_1317987.html","width":130,"caption":"Rufus Humming Bird","height":168});
															thumbnails[1318011] = clik.newPhoto({"id":1318011,"src":"Brownbear2_thumb.jpg","galleries_id":69686,"server_id":18,"link":"photo_1318011.html","width":130,"caption":"Brown Bear","height":87});
															thumbnails[1318022] = clik.newPhoto({"id":1318022,"src":"Brownbear3_thumb.jpg","galleries_id":69686,"server_id":18,"link":"photo_1318022.html","width":130,"caption":"Brown Bear","height":195});
															thumbnails[1360294] = clik.newPhoto({"id":1360294,"src":"_IB_2341_thumb.jpg","galleries_id":69686,"server_id":18,"link":"photo_1360294.html","width":130,"caption":"Brown Bear","height":186});
															thumbnails[1590341] = clik.newPhoto({"id":1590341,"src":"Mobula_thumb.jpg","galleries_id":69520,"server_id":18,"link":"photo_1590341.html","width":130,"caption":"Mobula","height":105});
															thumbnails[2016904] = clik.newPhoto({"id":2016904,"src":"Humpback-Final_thumb.jpg","galleries_id":69520,"server_id":18,"link":"photo_2016904.html","width":130,"caption":"Humpback Whale","height":180});
															thumbnails[2016927] = clik.newPhoto({"id":2016927,"src":"Dolphin-Final_thumb.jpg","galleries_id":69520,"server_id":18,"link":"photo_2016927.html","width":130,"caption":"Common Dolphin","height":87});
															thumbnails[2019200] = clik.newPhoto({"id":2019200,"src":"Blow Final_thumb.jpg","galleries_id":153657,"server_id":18,"link":"photo_2019200.html","width":130,"caption":"Blue Whale","height":181});
															thumbnails[2019234] = clik.newPhoto({"id":2019234,"src":"Dolphin Speed Final_thumb.jpg","galleries_id":69520,"server_id":18,"link":"photo_2019234.html","width":130,"caption":"Bottlenose Dolphin","height":101});
															thumbnails[2019237] = clik.newPhoto({"id":2019237,"src":"Island_thumb.jpg","galleries_id":332966,"server_id":18,"link":"photo_2019237.html","width":130,"caption":"Sea of Cortez","height":69});
															thumbnails[2019319] = clik.newPhoto({"id":2019319,"src":"Pelican_thumb.jpg","galleries_id":69520,"server_id":18,"link":"photo_2019319.html","width":130,"caption":"Brown Pelican","height":86});
															thumbnails[2020028] = clik.newPhoto({"id":2020028,"src":"Fluke Final_thumb.jpg","galleries_id":69520,"server_id":18,"link":"photo_2020028.html","width":130,"caption":"Blue Whale","height":175});
															thumbnails[2020040] = clik.newPhoto({"id":2020040,"src":"Blue Whale_thumb.jpg","galleries_id":69520,"server_id":18,"link":"photo_2020040.html","width":130,"caption":"Blue Whale","height":81});
															thumbnails[2051640] = clik.newPhoto({"id":2051640,"src":"117_thumb.jpg","galleries_id":69520,"server_id":18,"link":"photo_2051640.html","width":130,"caption":"Common Dolphin","height":92});
															thumbnails[2051642] = clik.newPhoto({"id":2051642,"src":"118_thumb.jpg","galleries_id":69520,"server_id":18,"link":"photo_2051642.html","width":130,"caption":"Humpback Whale","height":182});
															thumbnails[2667295] = clik.newPhoto({"id":2667295,"src":"Roe-Buck_thumb.jpg","galleries_id":69593,"server_id":18,"link":"photo_2667295.html","width":130,"caption":"Roe Deer Buck","height":187});
															thumbnails[2667341] = clik.newPhoto({"id":2667341,"src":"Brown-Hare_thumb.jpg","galleries_id":69593,"server_id":18,"link":"photo_2667341.html","width":130,"caption":"Brown Hare","height":181});
															thumbnails[2868579] = clik.newPhoto({"id":2868579,"src":"_IB_0011_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_2868579.html","width":129,"caption":"Female Leopard","height":194});
															thumbnails[2868591] = clik.newPhoto({"id":2868591,"src":"_IB_0012_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_2868591.html","width":129,"caption":"","height":194});
															thumbnails[2868593] = clik.newPhoto({"id":2868593,"src":"_IB_0013_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_2868593.html","width":129,"caption":"","height":88});
															thumbnails[2868605] = clik.newPhoto({"id":2868605,"src":"_IB_0019_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_2868605.html","width":129,"caption":"Lion Family","height":86});
															thumbnails[2868609] = clik.newPhoto({"id":2868609,"src":"_IB_0021_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_2868609.html","width":129,"caption":"Male Lion","height":195});
															thumbnails[2868612] = clik.newPhoto({"id":2868612,"src":"_IB_0027_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_2868612.html","width":129,"caption":"Topi","height":195});
															thumbnails[2868613] = clik.newPhoto({"id":2868613,"src":"_IB_0028_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_2868613.html","width":130,"caption":"Cheetah and Cub","height":195});
															thumbnails[2868624] = clik.newPhoto({"id":2868624,"src":"_IB_0022_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_2868624.html","width":129,"caption":"Lion with Cub","height":194});
															thumbnails[2868628] = clik.newPhoto({"id":2868628,"src":"_IB_003_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_2868628.html","width":129,"caption":"Adult Serval Cat","height":86});
															thumbnails[2868629] = clik.newPhoto({"id":2868629,"src":"_IB_004_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_2868629.html","width":129,"caption":"Male Lions","height":86});
															thumbnails[2868640] = clik.newPhoto({"id":2868640,"src":"_IB_008_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_2868640.html","width":129,"caption":"Lion and Cub","height":86});
															thumbnails[2868641] = clik.newPhoto({"id":2868641,"src":"_IB_0091_thumb.jpg","galleries_id":153657,"server_id":18,"link":"photo_2868641.html","width":129,"caption":"Male Lion in Flehmen","height":194});
															thumbnails[2868645] = clik.newPhoto({"id":2868645,"src":"_IB_0010_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_2868645.html","width":129,"caption":"","height":194});
															thumbnails[2868655] = clik.newPhoto({"id":2868655,"src":"_IB_0030_thumb.jpg","galleries_id":332966,"server_id":18,"link":"photo_2868655.html","width":129,"caption":"Masai Mara Sunset","height":35});
															thumbnails[2868902] = clik.newPhoto({"id":2868902,"src":"_IB_0018a_thumb.jpg","galleries_id":153657,"server_id":18,"link":"photo_2868902.html","width":129,"caption":"Female Lion Hunting","height":86});
															thumbnails[2868904] = clik.newPhoto({"id":2868904,"src":"_IB_0019a_thumb.jpg","galleries_id":153657,"server_id":18,"link":"photo_2868904.html","width":130,"caption":"Mature Male Lion","height":195});
															thumbnails[2868908] = clik.newPhoto({"id":2868908,"src":"_IB_0340_thumb.jpg","galleries_id":153657,"server_id":18,"link":"photo_2868908.html","width":130,"caption":"Running Lion Cub","height":115});
															thumbnails[2869176] = clik.newPhoto({"id":2869176,"src":"IPB_0801_thumb.jpg","galleries_id":153657,"server_id":18,"link":"photo_2869176.html","width":130,"caption":"Griffon Vulture","height":195});
															thumbnails[2869184] = clik.newPhoto({"id":2869184,"src":"Lion-2_thumb.jpg","galleries_id":153657,"server_id":18,"link":"photo_2869184.html","width":130,"caption":"Young Lion","height":194});
															thumbnails[2882891] = clik.newPhoto({"id":2882891,"src":"Blue-Whale-4_thumb.jpg","galleries_id":69520,"server_id":18,"link":"photo_2882891.html","width":129,"caption":"Blue Whale","height":86});
															thumbnails[2882894] = clik.newPhoto({"id":2882894,"src":"Blue-Whale-Dorsal_thumb.jpg","galleries_id":69520,"server_id":18,"link":"photo_2882894.html","width":129,"caption":"Blue Whale","height":86});
															thumbnails[2882902] = clik.newPhoto({"id":2882902,"src":"Breaching-Humpback_thumb.jpg","galleries_id":69520,"server_id":18,"link":"photo_2882902.html","width":129,"caption":"Humpback Whale","height":194});
															thumbnails[2882905] = clik.newPhoto({"id":2882905,"src":"Common-Dolphin_thumb.jpg","galleries_id":69520,"server_id":18,"link":"photo_2882905.html","width":129,"caption":"Common Dophin","height":90});
															thumbnails[2882906] = clik.newPhoto({"id":2882906,"src":"Common-Dolphin-Refection_thumb.jpg","galleries_id":69520,"server_id":18,"link":"photo_2882906.html","width":130,"caption":"Common Dolphin","height":86});
															thumbnails[2882907] = clik.newPhoto({"id":2882907,"src":"Common-Dolphins_thumb.jpg","galleries_id":69520,"server_id":18,"link":"photo_2882907.html","width":129,"caption":"Common Dolphin","height":89});
															thumbnails[2882909] = clik.newPhoto({"id":2882909,"src":"Desert-Sunset_thumb.jpg","galleries_id":69520,"server_id":18,"link":"photo_2882909.html","width":130,"caption":"Desert Sunset","height":194});
															thumbnails[2882910] = clik.newPhoto({"id":2882910,"src":"Humpback-Fluke_thumb.jpg","galleries_id":69520,"server_id":18,"link":"photo_2882910.html","width":130,"caption":"Humpback Whale","height":86});
															thumbnails[2886295] = clik.newPhoto({"id":2886295,"src":"_Running-Cub_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_2886295.html","width":129,"caption":"Running Lion Cub","height":86});
															thumbnails[2886300] = clik.newPhoto({"id":2886300,"src":"Baby-Elephant_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_2886300.html","width":130,"caption":"Young Elephant","height":86});
															thumbnails[2886335] = clik.newPhoto({"id":2886335,"src":"Cheetah-cubs_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_2886335.html","width":129,"caption":"Cheetah Cubs","height":86});
															thumbnails[2886360] = clik.newPhoto({"id":2886360,"src":"Impala_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_2886360.html","width":130,"caption":"Topi","height":195});
															thumbnails[2886366] = clik.newPhoto({"id":2886366,"src":"Jackal-Cub_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_2886366.html","width":130,"caption":"Jackal Cub","height":194});
															thumbnails[2886369] = clik.newPhoto({"id":2886369,"src":"Lion-Cubs_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_2886369.html","width":129,"caption":"Lion Cubs","height":86});
															thumbnails[2886376] = clik.newPhoto({"id":2886376,"src":"Male-Lion-BW_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_2886376.html","width":130,"caption":"Male Lion","height":195});
															thumbnails[2886396] = clik.newPhoto({"id":2886396,"src":"_IB_005_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_2886396.html","width":130,"caption":"Serval Kittens","height":76});
															thumbnails[2886408] = clik.newPhoto({"id":2886408,"src":"_IB_006_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_2886408.html","width":129,"caption":"Jackal Cub","height":194});
															thumbnails[2886418] = clik.newPhoto({"id":2886418,"src":"Lion-Log2_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_2886418.html","width":129,"caption":"Female Lion","height":88});
															thumbnails[2887392] = clik.newPhoto({"id":2887392,"src":"Giraffe_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_2887392.html","width":130,"caption":"Giraffe","height":195});
															thumbnails[2887396] = clik.newPhoto({"id":2887396,"src":"Lion-in-Grass_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_2887396.html","width":130,"caption":"Male Lion in grass","height":195});
															thumbnails[2887398] = clik.newPhoto({"id":2887398,"src":"Hippo_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_2887398.html","width":130,"caption":"Hippo","height":194});
															thumbnails[2889181] = clik.newPhoto({"id":2889181,"src":"Oar-Fish_thumb.jpg","galleries_id":69520,"server_id":18,"link":"photo_2889181.html","width":129,"caption":"Rare Oar Fish","height":90});
															thumbnails[2911853] = clik.newPhoto({"id":2911853,"src":"Leopard-portrait_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_2911853.html","width":130,"caption":"Female Leopard","height":195});
															thumbnails[2918073] = clik.newPhoto({"id":2918073,"src":"Cheetah-Kill_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_2918073.html","width":130,"caption":"Cheetah Kill","height":86});
															thumbnails[2918133] = clik.newPhoto({"id":2918133,"src":"Cheetah-Scent_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_2918133.html","width":130,"caption":"Cheetah Scent Marking","height":194});
															thumbnails[2918143] = clik.newPhoto({"id":2918143,"src":"Lions-2_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_2918143.html","width":130,"caption":"Two Male Lions","height":86});
															thumbnails[2918153] = clik.newPhoto({"id":2918153,"src":"Hippo-tussle_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_2918153.html","width":130,"caption":"Hippos","height":86});
															thumbnails[4985404] = clik.newPhoto({"id":4985404,"src":"Cheetah-Kill1_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_4985404.html","width":130,"caption":"Cheetah Kill","height":202});
															thumbnails[4985419] = clik.newPhoto({"id":4985419,"src":"Kenya-landscape2-RTP_thumb.jpg","galleries_id":332966,"server_id":18,"link":"photo_4985419.html","width":130,"caption":"Masai Mara landscape","height":65});
															thumbnails[4985432] = clik.newPhoto({"id":4985432,"src":"Lion-Face1_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_4985432.html","width":130,"caption":"Female Lion ","height":174});
															thumbnails[4985471] = clik.newPhoto({"id":4985471,"src":"Lion-in-Rain_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_4985471.html","width":130,"caption":"Lioness in Rain","height":177});
															thumbnails[4985476] = clik.newPhoto({"id":4985476,"src":"-Panga-Corrected_thumb.jpg","galleries_id":69520,"server_id":18,"link":"photo_4985476.html","width":130,"caption":"Blue Whale","height":91});
															thumbnails[4985482] = clik.newPhoto({"id":4985482,"src":"Panga-Fluke_thumb.jpg","galleries_id":69520,"server_id":18,"link":"photo_4985482.html","width":130,"caption":"Blue Whale Fluke","height":87});
															thumbnails[4985499] = clik.newPhoto({"id":4985499,"src":"Sage-Grass-Bear_thumb.jpg","galleries_id":69686,"server_id":18,"link":"photo_4985499.html","width":130,"caption":"Female Grizzly Bear","height":196});
															thumbnails[4985519] = clik.newPhoto({"id":4985519,"src":"Southern-Humpback_thumb.jpg","galleries_id":283219,"server_id":18,"link":"photo_4985519.html","width":130,"caption":"Southern Humpback Whale","height":190});
															thumbnails[4985525] = clik.newPhoto({"id":4985525,"src":"Starfish_thumb.jpg","galleries_id":283219,"server_id":18,"link":"photo_4985525.html","width":130,"caption":"Blue Starfish","height":98});
															thumbnails[4985530] = clik.newPhoto({"id":4985530,"src":"Tonga-beach_thumb.jpg","galleries_id":283219,"server_id":18,"link":"photo_4985530.html","width":130,"caption":"Beach in Tonga","height":178});
															thumbnails[4985537] = clik.newPhoto({"id":4985537,"src":"Whale-Fluke_thumb.jpg","galleries_id":69520,"server_id":18,"link":"photo_4985537.html","width":130,"caption":"Whale diving","height":87});
															thumbnails[4985548] = clik.newPhoto({"id":4985548,"src":"X-Canyon-1_thumb.jpg","galleries_id":283222,"server_id":18,"link":"photo_4985548.html","width":130,"caption":"Canyon X Arizona","height":202});
															thumbnails[4985552] = clik.newPhoto({"id":4985552,"src":"X-Canyon-2_thumb.jpg","galleries_id":283222,"server_id":18,"link":"photo_4985552.html","width":130,"caption":"Canyon X Arizona","height":197});
															thumbnails[5019785] = clik.newPhoto({"id":5019785,"src":"Fucia_thumb.jpg","galleries_id":153657,"server_id":18,"link":"photo_5019785.html","width":130,"caption":"Fucia Flower","height":188});
															thumbnails[5036645] = clik.newPhoto({"id":5036645,"src":"Spores-1_thumb.jpg","galleries_id":285122,"server_id":18,"link":"photo_5036645.html","width":130,"caption":"Underground Spores","height":174});
															thumbnails[5036653] = clik.newPhoto({"id":5036653,"src":"Spores-2_thumb.jpg","galleries_id":285122,"server_id":18,"link":"photo_5036653.html","width":130,"caption":"Underground Spores","height":197});
															thumbnails[5036663] = clik.newPhoto({"id":5036663,"src":"Spores-3_thumb.jpg","galleries_id":285122,"server_id":18,"link":"photo_5036663.html","width":130,"caption":"Underground spores","height":83});
															thumbnails[5036684] = clik.newPhoto({"id":5036684,"src":"Bath-1_thumb.jpg","galleries_id":399315,"server_id":18,"link":"photo_5036684.html","width":130,"caption":"Bath","height":66});
															thumbnails[5037649] = clik.newPhoto({"id":5037649,"src":"Flora-2_thumb.jpg","galleries_id":332968,"server_id":18,"link":"photo_5037649.html","width":130,"caption":"Fucia Flower","height":169});
															thumbnails[5074758] = clik.newPhoto({"id":5074758,"src":"ground-bill_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_5074758.html","width":130,"caption":"Groundbill","height":195});
															thumbnails[5074770] = clik.newPhoto({"id":5074770,"src":"Wasp-tongue_thumb.jpg","galleries_id":69593,"server_id":18,"link":"photo_5074770.html","width":130,"caption":"Wasp Tongue","height":127});
															thumbnails[5898035] = clik.newPhoto({"id":5898035,"src":"Cottonwood-Reflections_thumb.jpg","galleries_id":332966,"server_id":18,"link":"photo_5898035.html","width":130,"caption":"Cottonwood Reflections Arizona","height":48});
															thumbnails[5898053] = clik.newPhoto({"id":5898053,"src":"Fort_thumb.jpg","galleries_id":332966,"server_id":18,"link":"photo_5898053.html","width":130,"caption":"","height":56});
															thumbnails[5898055] = clik.newPhoto({"id":5898055,"src":"Leopard-landscape_thumb.jpg","galleries_id":332966,"server_id":18,"link":"photo_5898055.html","width":130,"caption":"","height":59});
															thumbnails[5898060] = clik.newPhoto({"id":5898060,"src":"Navajo-Point_thumb.jpg","galleries_id":332966,"server_id":18,"link":"photo_5898060.html","width":130,"caption":"Grand Canyon Arizona","height":37});
															thumbnails[5898067] = clik.newPhoto({"id":5898067,"src":"Autumn-Leaf_thumb.jpg","galleries_id":332968,"server_id":18,"link":"photo_5898067.html","width":130,"caption":"Autumn Leaf","height":144});
															thumbnails[5898085] = clik.newPhoto({"id":5898085,"src":"Swirling-Leaf_thumb.jpg","galleries_id":332968,"server_id":18,"link":"photo_5898085.html","width":130,"caption":"Swirling Leaf","height":178});
															thumbnails[6776730] = clik.newPhoto({"id":6776730,"src":"Bear-on-Log_thumb.jpg","galleries_id":69686,"server_id":18,"link":"photo_6776730.html","width":130,"caption":"Spirit Bear","height":191});
															thumbnails[6864243] = clik.newPhoto({"id":6864243,"src":"Spirit-Bear-Lyingl_thumb.jpg","galleries_id":69686,"server_id":18,"link":"photo_6864243.html","width":130,"caption":"Spirit Bear","height":95});
															thumbnails[6864649] = clik.newPhoto({"id":6864649,"src":"Wasp-Nest_thumb.jpg","galleries_id":69593,"server_id":18,"link":"photo_6864649.html","width":130,"caption":"Wasp Nest","height":127});
															thumbnails[6864691] = clik.newPhoto({"id":6864691,"src":"Tofino-Sunset_thumb.jpg","galleries_id":69686,"server_id":18,"link":"photo_6864691.html","width":130,"caption":"Vancouver Island Sunset","height":72});
															thumbnails[6889387] = clik.newPhoto({"id":6889387,"src":"CoastalMountains_thumb.jpg","galleries_id":69686,"server_id":18,"link":"photo_6889387.html","width":130,"caption":"Sunset Great Bear Rain Forest","height":65});
															thumbnails[6889444] = clik.newPhoto({"id":6889444,"src":"Sanddollar_thumb.jpg","galleries_id":69686,"server_id":18,"link":"photo_6889444.html","width":130,"caption":"Oil on Sand Dollar","height":186});
															thumbnails[7333515] = clik.newPhoto({"id":7333515,"src":"Abbey_thumb.jpg","galleries_id":399315,"server_id":18,"link":"photo_7333515.html","width":130,"caption":"Bath Abbey","height":126});
															thumbnails[7376056] = clik.newPhoto({"id":7376056,"src":"Abbey-Rain-Merge_thumb.jpg","galleries_id":399315,"server_id":18,"link":"photo_7376056.html","width":130,"caption":"Bath Abbey","height":130});
															thumbnails[7376059] = clik.newPhoto({"id":7376059,"src":"_MG_3739_thumb.jpg","galleries_id":399315,"server_id":18,"link":"photo_7376059.html","width":130,"caption":"Bath Abbey","height":198});
															thumbnails[7443252] = clik.newPhoto({"id":7443252,"src":"Lisbon1_thumb.jpg","galleries_id":399315,"server_id":18,"link":"photo_7443252.html","width":130,"caption":"Lisbon","height":92});
															thumbnails[7443266] = clik.newPhoto({"id":7443266,"src":"Lisbon2_thumb.jpg","galleries_id":399315,"server_id":18,"link":"photo_7443266.html","width":130,"caption":"Lisbon","height":176});
															thumbnails[7443278] = clik.newPhoto({"id":7443278,"src":"Lisbon3_thumb.jpg","galleries_id":399315,"server_id":18,"link":"photo_7443278.html","width":130,"caption":"Lisbon","height":98});
															thumbnails[7443286] = clik.newPhoto({"id":7443286,"src":"Lisbon4_thumb.jpg","galleries_id":399315,"server_id":18,"link":"photo_7443286.html","width":130,"caption":" Lisbon","height":195});
															thumbnails[7930113] = clik.newPhoto({"id":7930113,"src":"SteamTrain_thumb.jpg","galleries_id":332966,"server_id":18,"link":"photo_7930113.html","width":130,"caption":"Steam Train Somerset","height":43});
															thumbnails[7930128] = clik.newPhoto({"id":7930128,"src":"Exmoor-Pony_thumb.jpg","galleries_id":69593,"server_id":18,"link":"photo_7930128.html","width":130,"caption":"Exmoor Pony","height":108});
															thumbnails[8108631] = clik.newPhoto({"id":8108631,"src":"_IB_0886_thumb.jpg","galleries_id":69686,"server_id":18,"link":"photo_8108631.html","width":130,"caption":"Breaching Orca","height":85});
															thumbnails[8484748] = clik.newPhoto({"id":8484748,"src":"Surfers_thumb.jpg","galleries_id":69686,"server_id":18,"link":"photo_8484748.html","width":130,"caption":"Surfers","height":84});
															thumbnails[8556760] = clik.newPhoto({"id":8556760,"src":"River-Moss_thumb.jpg","galleries_id":332966,"server_id":18,"link":"photo_8556760.html","width":130,"caption":"Autumn in North Devon","height":140});
															thumbnails[8556889] = clik.newPhoto({"id":8556889,"src":"Lynmouth-Dawn_thumb.jpg","galleries_id":332966,"server_id":18,"link":"photo_8556889.html","width":130,"caption":"Lynton at Dawn","height":195});
															thumbnails[8596797] = clik.newPhoto({"id":8596797,"src":"River-Avon_thumb.jpg","galleries_id":399315,"server_id":18,"link":"photo_8596797.html","width":130,"caption":"River Avon Bath","height":210});
															thumbnails[8597296] = clik.newPhoto({"id":8597296,"src":"Elephant-Calf_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_8597296.html","width":130,"caption":"Young Elephant Kenya","height":96});
															thumbnails[8597300] = clik.newPhoto({"id":8597300,"src":"Masai_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_8597300.html","width":130,"caption":"Masai by river","height":181});
															thumbnails[8597301] = clik.newPhoto({"id":8597301,"src":"MonumentBW_thumb.jpg","galleries_id":399315,"server_id":18,"link":"photo_8597301.html","width":130,"caption":"Lisbon","height":125});
															thumbnails[9041916] = clik.newPhoto({"id":9041916,"src":"MaleLion_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_9041916.html","width":130,"caption":"Male Lion","height":224});
															thumbnails[914269] = clik.newPhoto({"id":914269,"src":"Osprey1_thumb.jpg","galleries_id":69631,"server_id":18,"link":"photo_914269.html","width":130,"caption":"Caribbean Osprey","height":89});
															thumbnails[1207459] = clik.newPhoto({"id":1207459,"src":"_IB_2850_thumb.jpg","galleries_id":69593,"server_id":18,"link":"photo_1207459.html","width":130,"caption":"Roe Deer","height":100});
															thumbnails[4624669] = clik.newPhoto({"id":4624669,"src":"Eagle-Owl_thumb.jpg","galleries_id":153657,"server_id":18,"link":"photo_4624669.html","width":130,"caption":"Owl","height":127});
															thumbnails[6775320] = clik.newPhoto({"id":6775320,"src":"Spitit-Bear-small_thumb.jpg","galleries_id":69686,"server_id":18,"link":"photo_6775320.html","width":130,"caption":"Spirit Bear ","height":194});
															thumbnails[911812] = clik.newPhoto({"id":911812,"src":"EPV03771_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_911812.html","width":130,"caption":"Leopard","height":179});
															thumbnails[914206] = clik.newPhoto({"id":914206,"src":"IMG_8468_thumb.jpg","galleries_id":69520,"server_id":18,"link":"photo_914206.html","width":130,"caption":"Humpback Whale","height":92});
															thumbnails[914261] = clik.newPhoto({"id":914261,"src":"Osprey2_thumb.jpg","galleries_id":69631,"server_id":18,"link":"photo_914261.html","width":130,"caption":"Caribbean Osprey","height":192});
															thumbnails[915898] = clik.newPhoto({"id":915898,"src":"IPB_5211_thumb.jpg","galleries_id":69593,"server_id":18,"link":"photo_915898.html","width":130,"caption":"Pheasant","height":168});
															thumbnails[915474] = clik.newPhoto({"id":915474,"src":"IPB_5262_thumb.jpg","galleries_id":69631,"server_id":18,"link":"photo_915474.html","width":130,"caption":"Spotted Dolphin","height":95});
															thumbnails[915475] = clik.newPhoto({"id":915475,"src":"Squirrel_thumb.jpg","galleries_id":69593,"server_id":18,"link":"photo_915475.html","width":130,"caption":"Grey Squirrel","height":153});
															thumbnails[917030] = clik.newPhoto({"id":917030,"src":"EPV0356_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_917030.html","width":130,"caption":"Leopard","height":180});
															thumbnails[911814] = clik.newPhoto({"id":911814,"src":"EPV07851_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_911814.html","width":130,"caption":"Hippotamus","height":97});
															thumbnails[914290] = clik.newPhoto({"id":914290,"src":"IPB_5266_thumb.jpg","galleries_id":69631,"server_id":18,"link":"photo_914290.html","width":130,"caption":"Antillean Crested Hummingbird","height":183});
															thumbnails[915472] = clik.newPhoto({"id":915472,"src":"IPB_5252_thumb.jpg","galleries_id":69593,"server_id":18,"link":"photo_915472.html","width":130,"caption":"Young rabbit","height":195});
															thumbnails[915873] = clik.newPhoto({"id":915873,"src":"IPB_2507_thumb.jpg","galleries_id":69520,"server_id":18,"link":"photo_915873.html","width":130,"caption":"Pilot Whale","height":92});
															thumbnails[914167] = clik.newPhoto({"id":914167,"src":"EPV0170_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_914167.html","width":130,"caption":"Leopard","height":68});
															thumbnails[915473] = clik.newPhoto({"id":915473,"src":"IPB_5259_thumb.jpg","galleries_id":69593,"server_id":18,"link":"photo_915473.html","width":130,"caption":"Roe Deer","height":182});
															thumbnails[914265] = clik.newPhoto({"id":914265,"src":"HB_thumb.jpg","galleries_id":69631,"server_id":18,"link":"photo_914265.html","width":130,"caption":"Antillean Crested Hummingbird","height":92});
															thumbnails[915080] = clik.newPhoto({"id":915080,"src":"EPV0593_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_915080.html","width":130,"caption":"Olive Baboon","height":195});
															thumbnails[914185] = clik.newPhoto({"id":914185,"src":"EPV0231_thumb.jpg","galleries_id":69631,"server_id":18,"link":"photo_914185.html","width":130,"caption":"Caribbean Osprey","height":183});
															thumbnails[914215] = clik.newPhoto({"id":914215,"src":"CRW_7320_thumb.jpg","galleries_id":69593,"server_id":18,"link":"photo_914215.html","width":130,"caption":"Pheasant","height":195});
															thumbnails[915082] = clik.newPhoto({"id":915082,"src":"EPV0744_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_915082.html","width":130,"caption":"Male Lion","height":181});
															thumbnails[915070] = clik.newPhoto({"id":915070,"src":"EPV0026_thumb.jpg","galleries_id":69686,"server_id":18,"link":"photo_915070.html","width":130,"caption":"Bald Headed Eagle","height":195});
															thumbnails[915866] = clik.newPhoto({"id":915866,"src":"EPV0051_thumb.jpg","galleries_id":69631,"server_id":18,"link":"photo_915866.html","width":130,"caption":"Brown Pelican","height":175});
															thumbnails[915870] = clik.newPhoto({"id":915870,"src":"EPV0226_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_915870.html","width":130,"caption":"Grey Crowned Crane","height":197});
															thumbnails[915073] = clik.newPhoto({"id":915073,"src":"EPV0061_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_915073.html","width":130,"caption":"Rock Agama","height":194});
															thumbnails[915074] = clik.newPhoto({"id":915074,"src":"EPV0074_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_915074.html","width":130,"caption":"Giraffe Reticulata","height":187});
															thumbnails[915469] = clik.newPhoto({"id":915469,"src":"EPV0159_thumb.jpg","galleries_id":69631,"server_id":18,"link":"photo_915469.html","width":130,"caption":"","height":195});
															thumbnails[915907] = clik.newPhoto({"id":915907,"src":"IPB_5271_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_915907.html","width":130,"caption":"Griffon Vulture","height":175});
															thumbnails[918288] = clik.newPhoto({"id":918288,"src":"IPB_52111_thumb.jpg","galleries_id":69686,"server_id":18,"link":"photo_918288.html","width":130,"caption":"Lunge Feeding","height":92});
															thumbnails[915076] = clik.newPhoto({"id":915076,"src":"EPV0107b_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_915076.html","width":130,"caption":"Samburu Elephants","height":195});
															thumbnails[914283] = clik.newPhoto({"id":914283,"src":"EPV0299_thumb.jpg","galleries_id":69631,"server_id":18,"link":"photo_914283.html","width":130,"caption":"Caribbean Osprey","height":93});
															thumbnails[915077] = clik.newPhoto({"id":915077,"src":"EPV0235_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_915077.html","width":130,"caption":"Baby Elephant","height":178});
															thumbnails[924573] = clik.newPhoto({"id":924573,"src":"_IB_9466_thumb.jpg","galleries_id":69593,"server_id":18,"link":"photo_924573.html","width":130,"caption":"Robin","height":187});
															thumbnails[924726] = clik.newPhoto({"id":924726,"src":"EPV0145_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_924726.html","width":130,"caption":"Leopard with Kill","height":195});
															thumbnails[928356] = clik.newPhoto({"id":928356,"src":"IPB_5263_thumb.jpg","galleries_id":69631,"server_id":18,"link":"photo_928356.html","width":130,"caption":"Sperm Whale","height":183});
															thumbnails[924723] = clik.newPhoto({"id":924723,"src":"EPV0103_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_924723.html","width":130,"caption":"Samburu Elephants","height":87});
															thumbnails[1056075] = clik.newPhoto({"id":1056075,"src":"EPV0376_1_thumb.jpg","galleries_id":69593,"server_id":18,"link":"photo_1056075.html","width":130,"caption":"Red Kite","height":186});
															thumbnails[924717] = clik.newPhoto({"id":924717,"src":"_IB_7384_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_924717.html","width":130,"caption":"","height":208});
															thumbnails[1056086] = clik.newPhoto({"id":1056086,"src":"Robin_thumb.jpg","galleries_id":153657,"server_id":18,"link":"photo_1056086.html","width":130,"caption":"Robin","height":195});
															thumbnails[914171] = clik.newPhoto({"id":914171,"src":"CRW_9373_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_914171.html","width":130,"caption":"White-throated Bee-eater ","height":184});
															thumbnails[928358] = clik.newPhoto({"id":928358,"src":"EPV0590_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_928358.html","width":130,"caption":"Crocodile","height":93});
															thumbnails[1360378] = clik.newPhoto({"id":1360378,"src":"EPV0349_thumb.jpg","galleries_id":69527,"server_id":18,"link":"photo_1360378.html","width":130,"caption":"Elephants","height":195});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[332968] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Abstract Images","link":"gallery_332968.html","maxRecords":0.0,"photoIDs":[5037649.0,5898067.0,5898085.0],"skipIndex":0,"section_code":"gallery","featured_images":"5898085,5898067,5037649","id":332968,"singleSection":false});				  						galleries[283222] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Arizona","link":"gallery_283222.html","maxRecords":0.0,"photoIDs":[4985548.0,4985552.0],"skipIndex":0,"section_code":"gallery","featured_images":"4985552,4985548","id":283222,"singleSection":false});				  						galleries[69686] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Canada","link":"gallery_69686.html","maxRecords":0.0,"photoIDs":[1317979.0,1317987.0,1318011.0,1318022.0,1360294.0,4985499.0,6776730.0,6864243.0,6864691.0,6889387.0,6889444.0,8108631.0,8484748.0,6775320.0,915070.0,918288.0],"skipIndex":0,"section_code":"gallery","featured_images":6864243.0,"id":69686,"singleSection":false});				  						galleries[69631] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Caribbean","link":"gallery_69631.html","maxRecords":0.0,"photoIDs":[914269.0,914261.0,915474.0,914290.0,914265.0,914185.0,915866.0,915469.0,914283.0,928356.0],"skipIndex":0,"section_code":"gallery","featured_images":914265.0,"id":69631,"singleSection":false});				  						galleries[399315] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Cities","link":"gallery_399315.html","maxRecords":0.0,"photoIDs":[5036684.0,7333515.0,7376056.0,7376059.0,7443252.0,7443266.0,7443278.0,7443286.0,8596797.0,8597301.0],"skipIndex":0,"section_code":"gallery","featured_images":"8597301,8596797,7443286,7443278,7443266,7443252,7376059,7376056,7333515,5036684","id":399315,"singleSection":false});				  						galleries[69527] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Kenya","link":"gallery_69527.html","maxRecords":0.0,"photoIDs":[2868601.0,2873525.0,2882922.0,2882911.0,2888981.0,2889076.0,2868579.0,2868591.0,2868593.0,2868605.0,2868609.0,2868612.0,2868613.0,2868624.0,2868628.0,2868629.0,2868640.0,2868645.0,2886295.0,2886300.0,2886335.0,2886360.0,2886366.0,2886369.0,2886376.0,2886396.0,2886408.0,2886418.0,2887392.0,2887396.0,2887398.0,2911853.0,2918073.0,2918133.0,2918143.0,2918153.0,4985404.0,4985432.0,4985471.0,5074758.0,8597296.0,8597300.0,9041916.0,911812.0,917030.0,911814.0,914167.0,915080.0,915082.0,915870.0,915073.0,915074.0,915907.0,915076.0,915077.0,924726.0,924723.0,924717.0,914171.0,928358.0,1360378.0],"skipIndex":0,"section_code":"gallery","featured_images":2868579.0,"id":69527,"singleSection":false});				  						galleries[332966] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Landscapes","link":"gallery_332966.html","maxRecords":0.0,"photoIDs":[8990453.0,2019237.0,2868655.0,4985419.0,5898035.0,5898053.0,5898055.0,5898060.0,7930113.0,8556760.0,8556889.0],"skipIndex":0,"section_code":"gallery","featured_images":"8990453,8556889,8556760,7930113,5898060,5898055,5898053,5898035,4985419,2868655","id":332966,"singleSection":false});				  						galleries[69520] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Mexico","link":"gallery_69520.html","maxRecords":0.0,"photoIDs":[1590341.0,2016904.0,2016927.0,2019234.0,2019319.0,2020028.0,2020040.0,2051640.0,2051642.0,2882891.0,2882894.0,2882902.0,2882905.0,2882906.0,2882907.0,2882909.0,2882910.0,2889181.0,4985476.0,4985482.0,4985537.0,914206.0,915873.0],"skipIndex":0,"section_code":"gallery","featured_images":"4985537,4985482,4985476,2889181,2882910,2882909,2882907,2882906,2882905,2882902","id":69520,"singleSection":false});				  						galleries[283219] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Tonga","link":"gallery_283219.html","maxRecords":0.0,"photoIDs":[4985519.0,4985525.0,4985530.0],"skipIndex":0,"section_code":"gallery","featured_images":"4985530,4985525,4985519","id":283219,"singleSection":false});				  						galleries[285122] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Underground Life","link":"gallery_285122.html","maxRecords":0.0,"photoIDs":[5036645.0,5036653.0,5036663.0],"skipIndex":0,"section_code":"gallery","featured_images":"5036663,5036653,5036645","id":285122,"singleSection":false});				  						galleries[69593] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"United Kingdom","link":"gallery_69593.html","maxRecords":0.0,"photoIDs":[7930030.0,2667295.0,2667341.0,5074770.0,6864649.0,7930128.0,1207459.0,915898.0,915475.0,915472.0,915473.0,914215.0,924573.0,1056075.0],"skipIndex":0,"section_code":"gallery","featured_images":914215.0,"id":69593,"singleSection":false});				  						galleries[153657] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Fine Art Images","link":"gallery_153657.html","maxRecords":0.0,"photoIDs":[2019200.0,2868641.0,2868902.0,2868904.0,2868908.0,2869176.0,2869184.0,5019785.0,4624669.0,1056086.0],"skipIndex":0,"section_code":"gallery","featured_images":"5019785,4624669,2869184,2869176,2868908,2868904,2868902,2868641,2019200,1056086","id":153657,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '4985432';
imageSets[2] = '6864243,2868579,914265,914215';
imageSets[3] = '6864243,2918153,2918133,2889181,2888981,2887398,2887396,2887392,2886396,2886376,2886369,2886366,2886335,2886300,2882922,2882910,2882909,2882906,2882905,2882894';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/iainbrownlee/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/iainbrownlee/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/iainbrownlee/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/iainbrownlee/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/iainbrownlee/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/iainbrownlee/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/iainbrownlee/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/iainbrownlee/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/iainbrownlee/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/iainbrownlee/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/iainbrownlee/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/iainbrownlee/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/iainbrownlee/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/iainbrownlee/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/iainbrownlee/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/iainbrownlee/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/iainbrownlee/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/iainbrownlee/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/iainbrownlee/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/iainbrownlee/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/iainbrownlee/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/iainbrownlee/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/iainbrownlee/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/iainbrownlee/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/iainbrownlee/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/iainbrownlee/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/iainbrownlee/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 = 'Iain Brownlee      Wildlife Images: ' + 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> ' + (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 += '<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;
	}
}

			

