window.thumbnails = {};
															thumbnails[3094653] = clik.newPhoto({"id":3094653,"src":"remarkable_birds[1]1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":103,"caption":"","height":130});
															thumbnails[4367930] = clik.newPhoto({"id":4367930,"src":"lee_surama12_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":110,"caption":"","height":130});
															thumbnails[5739662] = clik.newPhoto({"id":5739662,"src":"web_ng1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":89,"caption":"","height":130});
															thumbnails[1207037] = clik.newPhoto({"id":1207037,"src":"Scarlet_Ibis_thumb_6112D0A2-1EC9-D45B-1C9FD42174653953.jpg","galleries_id":80510,"server_id":1,"link":"photo_1207037.html","width":180,"caption":"Scarlet Ibis","height":120});
															thumbnails[1207088] = clik.newPhoto({"id":1207088,"src":"new_spider_monkey3_8_thumb.jpg","galleries_id":319451,"server_id":1,"link":"photo_1207088.html","width":180,"caption":"GEOFFROY'S SPIDER MONKEY","height":120});
															thumbnails[1231940] = clik.newPhoto({"id":1231940,"src":"MORELETS_CROCODILE2_thumb.jpg","galleries_id":80513,"server_id":1,"link":"photo_1231940.html","width":180,"caption":"Morelet's crocodile","height":119});
															thumbnails[1801612] = clik.newPhoto({"id":1801612,"src":"Cuban_Tody_thumb.jpg","galleries_id":80513,"server_id":1,"link":"photo_1801612.html","width":180,"caption":"Cuban Tody","height":120});
															thumbnails[1807163] = clik.newPhoto({"id":1807163,"src":"CUBAN_GROUND_IGUANA_thumb.jpg","galleries_id":319451,"server_id":1,"link":"photo_1807163.html","width":180,"caption":"CUBAN IGUANA","height":119});
															thumbnails[1807194] = clik.newPhoto({"id":1807194,"src":"hummer28bit_thumb.jpg","galleries_id":80513,"server_id":1,"link":"photo_1807194.html","width":121,"caption":"Bee hummingbird","height":180});
															thumbnails[1807196] = clik.newPhoto({"id":1807196,"src":"Bee_hummingbird_thumb.jpg","galleries_id":80513,"server_id":1,"link":"photo_1807196.html","width":180,"caption":"Bee hummingbird","height":123});
															thumbnails[2095727] = clik.newPhoto({"id":2095727,"src":"SOROA_WATERFALL_Cuba_thumb.jpg","galleries_id":80513,"server_id":1,"link":"photo_2095727.html","width":180,"caption":"Soroa waterfall","height":120});
															thumbnails[3011179] = clik.newPhoto({"id":3011179,"src":"Lotus__bee_thumb.jpg","galleries_id":80510,"server_id":1,"link":"photo_3011179.html","width":180,"caption":"LOTUS & HONEYBEE","height":122});
															thumbnails[3011181] = clik.newPhoto({"id":3011181,"src":"yellowfrog8_A04D6C97-1EC9-DFB6-09812FCB895F78EF_thumb.jpg","galleries_id":80510,"server_id":1,"link":"photo_3011181.html","width":180,"caption":"YELLOW BANDED POISON DART FROG","height":120});
															thumbnails[3220908] = clik.newPhoto({"id":3220908,"src":"GUIANAN_COCK-OF-THE-ROCK_thumb.jpg","galleries_id":80510,"server_id":1,"link":"photo_3220908.html","width":180,"caption":"GUIANAN COCK OF THE ROCK","height":127});
															thumbnails[3462028] = clik.newPhoto({"id":3462028,"src":"Potaro_river_Guyana_thumb.jpg","galleries_id":80510,"server_id":1,"link":"photo_3462028.html","width":120,"caption":"Potaro river","height":180});
															thumbnails[3685346] = clik.newPhoto({"id":3685346,"src":"burro_burro_river_thumb.jpg","galleries_id":80510,"server_id":1,"link":"photo_3685346.html","width":120,"caption":"Burro-Burro river","height":180});
															thumbnails[3685349] = clik.newPhoto({"id":3685349,"src":"Macaws_surama_thumb.jpg","galleries_id":80510,"server_id":1,"link":"photo_3685349.html","width":180,"caption":"Red & Green Macaws","height":121});
															thumbnails[3685351] = clik.newPhoto({"id":3685351,"src":"Kapok_tree_copy_thumb.jpg","galleries_id":80510,"server_id":1,"link":"photo_3685351.html","width":180,"caption":"Silk Cotton tree ","height":118});
															thumbnails[3685356] = clik.newPhoto({"id":3685356,"src":"caterpillar_guyana8_thumb.jpg","galleries_id":80510,"server_id":1,"link":"photo_3685356.html","width":180,"caption":"Caterpillar","height":120});
															thumbnails[3685357] = clik.newPhoto({"id":3685357,"src":"rain_on_leaf8_thumb.jpg","galleries_id":80510,"server_id":1,"link":"photo_3685357.html","width":180,"caption":"Rainforest leaf","height":120});
															thumbnails[4056952] = clik.newPhoto({"id":4056952,"src":"black_spider_monkey8_thumb.jpg","galleries_id":319451,"server_id":1,"link":"photo_4056952.html","width":120,"caption":"Guianan black spider monkey","height":180});
															thumbnails[4056978] = clik.newPhoto({"id":4056978,"src":"Mealy_amazon_parrots_thumb.jpg","galleries_id":80510,"server_id":1,"link":"photo_4056978.html","width":180,"caption":"Mealy parrots","height":122});
															thumbnails[4405365] = clik.newPhoto({"id":4405365,"src":"orchard_spider_8_A06C7846-1EC9-DFB6-09B3B43775A58A98_thumb.jpg","galleries_id":80510,"server_id":1,"link":"photo_4405365.html","width":180,"caption":"ORCHARD SPIDER","height":120});
															thumbnails[4405433] = clik.newPhoto({"id":4405433,"src":"Cane_Toad_619B59BF-1EC9-D45B-1C3CDB08FDF2A48A_thumb.jpg","galleries_id":80510,"server_id":1,"link":"photo_4405433.html","width":180,"caption":"CANE TOAD","height":138});
															thumbnails[4405445] = clik.newPhoto({"id":4405445,"src":"Harpy_Eagle_flight_thumb.jpg","galleries_id":80510,"server_id":1,"link":"photo_4405445.html","width":180,"caption":"HARPY EAGLE","height":112});
															thumbnails[4496769] = clik.newPhoto({"id":4496769,"src":"Kapok_tree2_thumb.jpg","galleries_id":80510,"server_id":1,"link":"photo_4496769.html","width":180,"caption":"TROPICAL RAINFOREST","height":120});
															thumbnails[5541144] = clik.newPhoto({"id":5541144,"src":"bee_eater12_thumb_9F3580C6-1EC9-DFB6-09C9BD653A6D936A.jpg","galleries_id":80514,"server_id":1,"link":"photo_5541144.html","width":180,"caption":"Chestnut headed Bee-eater","height":117});
															thumbnails[5551701] = clik.newPhoto({"id":5551701,"src":"Flying_lizard_displaying_thumb.jpg","galleries_id":80514,"server_id":1,"link":"photo_5551701.html","width":119,"caption":"Flying lizard","height":180});
															thumbnails[5556265] = clik.newPhoto({"id":5556265,"src":"SAMBAR_thumb.jpg","galleries_id":319451,"server_id":1,"link":"photo_5556265.html","width":180,"caption":"Sambar","height":120});
															thumbnails[5556268] = clik.newPhoto({"id":5556268,"src":"two_otter_thumb.jpg","galleries_id":319451,"server_id":1,"link":"photo_5556268.html","width":180,"caption":"Giant otter","height":121});
															thumbnails[5593606] = clik.newPhoto({"id":5593606,"src":"Butterflies_flight_copy_copy_5D850C2C-1EC9-D45B-1CA629E61C209E29_thumb.jpg","galleries_id":80514,"server_id":1,"link":"photo_5593606.html","width":180,"caption":"Tropical Butterflies","height":129});
															thumbnails[5593607] = clik.newPhoto({"id":5593607,"src":"cave_krabi1_thumb.jpg","galleries_id":80514,"server_id":1,"link":"photo_5593607.html","width":180,"caption":"Krabi cave","height":119});
															thumbnails[5657681] = clik.newPhoto({"id":5657681,"src":"ginger_flower1_641315D8-24E8-5EC4-4F706FE7B66982E4_thumb.jpg","galleries_id":80514,"server_id":1,"link":"photo_5657681.html","width":180,"caption":"Wild Torch Ginger","height":120});
															thumbnails[5657685] = clik.newPhoto({"id":5657685,"src":"Dusky-gilled_mudkipper_5DA43258-1EC9-D45B-1CF53CD4B259AF95_thumb.jpg","galleries_id":80514,"server_id":1,"link":"photo_5657685.html","width":180,"caption":"Dusky-gilled mudskipper","height":119});
															thumbnails[5678635] = clik.newPhoto({"id":5678635,"src":"ko_ra_beach_thumb.jpg","galleries_id":80514,"server_id":1,"link":"photo_5678635.html","width":120,"caption":"Ko Ra beach","height":180});
															thumbnails[5678642] = clik.newPhoto({"id":5678642,"src":"Lowland_rainforest_thumb.jpg","galleries_id":80514,"server_id":1,"link":"photo_5678642.html","width":180,"caption":"Khao Nor Chuchi Wildlife Sanctuary","height":120});
															thumbnails[5678644] = clik.newPhoto({"id":5678644,"src":"jumping_spider_64294028-24E8-5EC4-4F722C816AFD94CB_thumb.jpg","galleries_id":80514,"server_id":1,"link":"photo_5678644.html","width":180,"caption":"Jumping spider","height":127});
															thumbnails[5678646] = clik.newPhoto({"id":5678646,"src":"rainforest_tree_thailand_thumb.jpg","galleries_id":80514,"server_id":1,"link":"photo_5678646.html","width":180,"caption":"Tropical rainforest","height":120});
															thumbnails[5684677] = clik.newPhoto({"id":5684677,"src":"orchids_dop_thumb.jpg","galleries_id":80514,"server_id":1,"link":"photo_5684677.html","width":120,"caption":"FUNNEL LIP ORCHID","height":180});
															thumbnails[5748704] = clik.newPhoto({"id":5748704,"src":"Sri_phang_nga_river_Thailand_5F9A17BB-1EC9-D45B-1C66799BED4FB4A6_thumb.jpg","galleries_id":80514,"server_id":1,"link":"photo_5748704.html","width":128,"caption":"Tropical rainforest","height":180});
															thumbnails[8314840] = clik.newPhoto({"id":8314840,"src":"winter_landscape_thumb.jpg","galleries_id":80515,"server_id":1,"link":"photo_8314840.html","width":180,"caption":"Mid winter","height":120});
															thumbnails[8327165] = clik.newPhoto({"id":8327165,"src":"Bumblebee_thumb.jpg","galleries_id":80515,"server_id":1,"link":"photo_8327165.html","width":180,"caption":"Bumblebee","height":120});
															thumbnails[8940954] = clik.newPhoto({"id":8940954,"src":"short_eared_owl_new8b_thumb_AD6612D0-1EC9-D45B-1C248C6644550A5D.jpg","galleries_id":80515,"server_id":1,"link":"photo_8940954.html","width":180,"caption":"Short-eared Owl","height":117});
															thumbnails[8953146] = clik.newPhoto({"id":8953146,"src":"Bumblebee_flower_thumb.jpg","galleries_id":80515,"server_id":1,"link":"photo_8953146.html","width":180,"caption":"Bumblebee","height":120});
															thumbnails[8953147] = clik.newPhoto({"id":8953147,"src":"birdwing_butterfly_thumb.jpg","galleries_id":80514,"server_id":1,"link":"photo_8953147.html","width":180,"caption":"Birdwing butterfly","height":116});
															thumbnails[8953148] = clik.newPhoto({"id":8953148,"src":"burroburroboat_thumb.jpg","galleries_id":80510,"server_id":1,"link":"photo_8953148.html","width":180,"caption":"Burro burro river","height":120});
															thumbnails[8953158] = clik.newPhoto({"id":8953158,"src":"cuba_crab8sh_thumb.jpg","galleries_id":80513,"server_id":1,"link":"photo_8953158.html","width":180,"caption":"CUBAN RED LAND CRAB","height":124});
															thumbnails[8953160] = clik.newPhoto({"id":8953160,"src":"longhorn_beetle_1_thumb.jpg","galleries_id":80515,"server_id":1,"link":"photo_8953160.html","width":180,"caption":"Longhorn Beetle","height":120});
															thumbnails[8953165] = clik.newPhoto({"id":8953165,"src":"DEMARESTS_HUTIA_thumb.jpg","galleries_id":80513,"server_id":1,"link":"photo_8953165.html","width":120,"caption":"DEMAREST'S HUTIA","height":180});
															thumbnails[9012451] = clik.newPhoto({"id":9012451,"src":"Kaieteur_thumb.jpg","galleries_id":80510,"server_id":1,"link":"photo_9012451.html","width":127,"caption":"Kaieteur Falls","height":180});
															thumbnails[5657683] = clik.newPhoto({"id":5657683,"src":"rainforest_tree_6439BCF0-24E8-5EC4-4FF89F9F6C0DFA4C_thumb.jpg","galleries_id":80514,"server_id":1,"link":"photo_5657683.html","width":120,"caption":"Tropical rainforest","height":180});
															thumbnails[1231921] = clik.newPhoto({"id":1231921,"src":"IBISES_AND_EGRETS_thumb.jpg","galleries_id":80510,"server_id":1,"link":"photo_1231921.html","width":180,"caption":"Scarlet Ibis & Egrets","height":113});
															thumbnails[1842720] = clik.newPhoto({"id":1842720,"src":"SCARLET_MACAWS_in_flight_Belize_thumb.jpg","galleries_id":80513,"server_id":1,"link":"photo_1842720.html","width":180,"caption":"Scarlet macaws","height":117});
															thumbnails[3011178] = clik.newPhoto({"id":3011178,"src":"Gold_poison_dart_frog_thumb.jpg","galleries_id":80510,"server_id":1,"link":"photo_3011178.html","width":180,"caption":"GOLDEN POISON-DART FROG","height":120});
															thumbnails[3685344] = clik.newPhoto({"id":3685344,"src":"Harpy_Eagle_thumb.jpg","galleries_id":80510,"server_id":1,"link":"photo_3685344.html","width":120,"caption":"Harpy Eagle","height":180});
															thumbnails[4056973] = clik.newPhoto({"id":4056973,"src":"Kaieteur_Falls_thumb.jpg","galleries_id":80510,"server_id":1,"link":"photo_4056973.html","width":180,"caption":"Kaieteur Falls","height":122});
															thumbnails[5041104] = clik.newPhoto({"id":5041104,"src":"Guyana_rainforest_thumb.jpg","galleries_id":80510,"server_id":1,"link":"photo_5041104.html","width":142,"caption":"PRIMARY RAINFOREST","height":180});
															thumbnails[5402889] = clik.newPhoto({"id":5402889,"src":"Gurneys_Pitta_thumb.jpg","galleries_id":319451,"server_id":1,"link":"photo_5402889.html","width":180,"caption":"Gurney's Pitta","height":132});
															thumbnails[5485157] = clik.newPhoto({"id":5485157,"src":"Dusky_langur_5DB7F92B-1EC9-D45B-1C2FE513EEF7410B_thumb.jpg","galleries_id":80514,"server_id":1,"link":"photo_5485157.html","width":119,"caption":"Dusky Langur","height":180});
															thumbnails[5713356] = clik.newPhoto({"id":5713356,"src":"Painted_lady_thumb.jpg","galleries_id":80515,"server_id":1,"link":"photo_5713356.html","width":180,"caption":"Painted Lady butterfly","height":138});
															thumbnails[6298665] = clik.newPhoto({"id":6298665,"src":"Emperor_Dragonfly_thumb.jpg","galleries_id":80515,"server_id":1,"link":"photo_6298665.html","width":180,"caption":"EMPEROR DRAGONFLY ","height":131});
															thumbnails[8953168] = clik.newPhoto({"id":8953168,"src":"RED-LORED_PARROTS2_thumb.jpg","galleries_id":80513,"server_id":1,"link":"photo_8953168.html","width":180,"caption":"Red-lored Parrot","height":120});
															thumbnails[8953171] = clik.newPhoto({"id":8953171,"src":"tarentula_forest_thumb.jpg","galleries_id":80513,"server_id":1,"link":"photo_8953171.html","width":180,"caption":"Cockscomb rainforest","height":120});
															thumbnails[5473416] = clik.newPhoto({"id":5473416,"src":"Great_Hornbill_5DBF3F0A-1EC9-D45B-1C815F23580EBB47_thumb.jpg","galleries_id":80514,"server_id":1,"link":"photo_5473416.html","width":180,"caption":"Great Hornbill","height":137});
															thumbnails[5521133] = clik.newPhoto({"id":5521133,"src":"LD_watermark31_thumb.png","galleries_id":80514,"server_id":1,"link":"photo_5521133.html","width":180,"caption":"Krabi rainforest","height":120});
															thumbnails[5521139] = clik.newPhoto({"id":5521139,"src":"long_tailed_macaque_sunset_5FA1647E-1EC9-DFB6-09E6CF8797A6B5DA_thumb.jpg","galleries_id":80514,"server_id":1,"link":"photo_5521139.html","width":180,"caption":"Crab-eating Macaque","height":116});
															thumbnails[5588083] = clik.newPhoto({"id":5588083,"src":"Garden_fence_lizard_thumb.jpg","galleries_id":80514,"server_id":1,"link":"photo_5588083.html","width":123,"caption":"Garden Lizard","height":180});
															thumbnails[1207080] = clik.newPhoto({"id":1207080,"src":"BLACK_HOWLER_MONKEY_thumb.jpg","galleries_id":319451,"server_id":1,"link":"photo_1207080.html","width":118,"caption":"Black Howler","height":180});
															thumbnails[4056982] = clik.newPhoto({"id":4056982,"src":"wild_garlic3_thumb.jpg","galleries_id":80515,"server_id":1,"link":"photo_4056982.html","width":180,"caption":"WILD GARLIC","height":115});
															thumbnails[6738928] = clik.newPhoto({"id":6738928,"src":"bluebells4_thumb.jpg","galleries_id":80515,"server_id":1,"link":"photo_6738928.html","width":180,"caption":"BLUEBELL WOODLAND","height":134});
															thumbnails[1209347] = clik.newPhoto({"id":1209347,"src":"hotlips1_A0463AA9-1EC9-DFB6-09B506F4799B7F55_thumb.jpg","galleries_id":80513,"server_id":1,"link":"photo_1209347.html","width":180,"caption":"Hotlips","height":120});
															thumbnails[5041131] = clik.newPhoto({"id":5041131,"src":"bee_fly_thumb.jpg","galleries_id":80515,"server_id":1,"link":"photo_5041131.html","width":180,"caption":"BEE-FLY","height":129});
															thumbnails[1209246] = clik.newPhoto({"id":1209246,"src":"Feather1b_A074CCE0-1EC9-DFB6-09CE3643D6278FB9_thumb.jpg","galleries_id":80510,"server_id":1,"link":"photo_1209246.html","width":120,"caption":"Rainforest feather","height":180});
															thumbnails[1209230] = clik.newPhoto({"id":1209230,"src":"Anaconda1bII_thumb.jpg","galleries_id":80510,"server_id":1,"link":"photo_1209230.html","width":180,"caption":"GREEN ANACONDA","height":123});
															thumbnails[1209240] = clik.newPhoto({"id":1209240,"src":"Black_caiman2b_thumb.jpg","galleries_id":80510,"server_id":1,"link":"photo_1209240.html","width":180,"caption":"Black Caiman","height":125});
															thumbnails[1207104] = clik.newPhoto({"id":1207104,"src":"PARASOL_MUSHROOM_thumb.jpg","galleries_id":80515,"server_id":1,"link":"photo_1207104.html","width":120,"caption":"PARASOL MUSHROOM","height":180});
															thumbnails[1209284] = clik.newPhoto({"id":1209284,"src":"PIPE_VINE_or_DUTCHMANS_PIPE_thumb.jpg","galleries_id":80510,"server_id":1,"link":"photo_1209284.html","width":180,"caption":"Dutchman's Pipe","height":120});
															thumbnails[1209355] = clik.newPhoto({"id":1209355,"src":"BRILLIANT_HUMMINGBIRD_thumb.jpg","galleries_id":80510,"server_id":1,"link":"photo_1209355.html","width":122,"caption":"VIOLET-FRONTED BRILLIANT HUMMINGBIRD","height":180});
															thumbnails[1231928] = clik.newPhoto({"id":1231928,"src":"sloth4_A08BC78A-1EC9-DFB6-09E2347770F0807C_thumb.jpg","galleries_id":80510,"server_id":1,"link":"photo_1231928.html","width":180,"caption":"Three-toed sloth","height":120});
															thumbnails[2429298] = clik.newPhoto({"id":2429298,"src":"Common_frog_copy_thumb.jpg","galleries_id":80515,"server_id":1,"link":"photo_2429298.html","width":180,"caption":"COMMON FROG","height":120});
															thumbnails[2604187] = clik.newPhoto({"id":2604187,"src":"bumblebee_bramble_thumb.jpg","galleries_id":80515,"server_id":1,"link":"photo_2604187.html","width":180,"caption":"BUMBLEBEE","height":120});
															thumbnails[8954684] = clik.newPhoto({"id":8954684,"src":"spider_monkey_food2_thumb.jpg","galleries_id":80513,"server_id":1,"link":"photo_8954684.html","width":120,"caption":"Spider Monkey","height":180});
															thumbnails[1207008] = clik.newPhoto({"id":1207008,"src":"ROSEMARY_BEETLE_thumb.jpg","galleries_id":80515,"server_id":1,"link":"photo_1207008.html","width":180,"caption":"ROSEMARY BEETLE","height":123});
															thumbnails[1207014] = clik.newPhoto({"id":1207014,"src":"HONEY_BEE_thumb.jpg","galleries_id":80515,"server_id":1,"link":"photo_1207014.html","width":120,"caption":"HONEYBEE","height":180});
															thumbnails[1207090] = clik.newPhoto({"id":1207090,"src":"MAGNIFICENT_FRIGATE_BIRD_thumb.jpg","galleries_id":80513,"server_id":1,"link":"photo_1207090.html","width":180,"caption":"FRIGATE BIRDS","height":120});
															thumbnails[1209229] = clik.newPhoto({"id":1209229,"src":"RED_HOWLERS_CALLING_thumb.jpg","galleries_id":80510,"server_id":1,"link":"photo_1209229.html","width":180,"caption":"RED HOWLERS","height":120});
															thumbnails[1231915] = clik.newPhoto({"id":1231915,"src":"OCELLATED_TURKEY2_thumb.jpg","galleries_id":80513,"server_id":1,"link":"photo_1231915.html","width":180,"caption":"OCELLATED TURKEY","height":120});
															thumbnails[1807159] = clik.newPhoto({"id":1807159,"src":"cuba_croc8bit_thumb.jpg","galleries_id":319451,"server_id":1,"link":"photo_1807159.html","width":180,"caption":"Cuban crocodile","height":120});
															thumbnails[5507413] = clik.newPhoto({"id":5507413,"src":"great_hornbill_flight8_64455928-24E8-5EC4-4F74EAE878E35CB3_thumb.jpg","galleries_id":80514,"server_id":1,"link":"photo_5507413.html","width":180,"caption":"Great Hornbill","height":116});
															thumbnails[9012424] = clik.newPhoto({"id":9012424,"src":"Garden_lizard_feeding_thumb.jpg","galleries_id":80514,"server_id":1,"link":"photo_9012424.html","width":122,"caption":"Garden lizard","height":180});
															thumbnails[1207003] = clik.newPhoto({"id":1207003,"src":"Albino_blackbird_thumb.jpg","galleries_id":80515,"server_id":1,"link":"photo_1207003.html","width":180,"caption":"ALBINO BLACKBIRD","height":120});
															thumbnails[1207009] = clik.newPhoto({"id":1207009,"src":"CRAB_SPIDER_thumb.jpg","galleries_id":80515,"server_id":1,"link":"photo_1207009.html","width":180,"caption":"CRAB SPIDER","height":122});
															thumbnails[1207011] = clik.newPhoto({"id":1207011,"src":"MEADOW_GRASSHOPPER_thumb.jpg","galleries_id":80515,"server_id":1,"link":"photo_1207011.html","width":122,"caption":"MEADOW GRASSHOPPER","height":180});
															thumbnails[1207076] = clik.newPhoto({"id":1207076,"src":"CRESTED_GUAN_thumb.jpg","galleries_id":80513,"server_id":1,"link":"photo_1207076.html","width":180,"caption":"Crested Guan","height":120});
															thumbnails[1207081] = clik.newPhoto({"id":1207081,"src":"Cockscomb_basin_Belize_copy_thumb.jpg","galleries_id":80513,"server_id":1,"link":"photo_1207081.html","width":180,"caption":"COCKSCOMB BASIN","height":120});
															thumbnails[1207084] = clik.newPhoto({"id":1207084,"src":"howler_howling_thumb.jpg","galleries_id":319451,"server_id":1,"link":"photo_1207084.html","width":180,"caption":"Black Howler monkey","height":120});
															thumbnails[1207089] = clik.newPhoto({"id":1207089,"src":"RED-LORED_PARROTS_thumb.jpg","galleries_id":80513,"server_id":1,"link":"photo_1207089.html","width":180,"caption":"Red-lored Parrot","height":120});
															thumbnails[1209263] = clik.newPhoto({"id":1209263,"src":"Groove_billed_Toucanet1b_thumb.jpg","galleries_id":80510,"server_id":1,"link":"photo_1209263.html","width":180,"caption":"Groove-billed Toucanet","height":120});
															thumbnails[1227814] = clik.newPhoto({"id":1227814,"src":"BLACK_CAIMAN_CLOSE-UP_thumb.jpg","galleries_id":80510,"server_id":1,"link":"photo_1227814.html","width":180,"caption":"Black caiman","height":120});
															thumbnails[1227822] = clik.newPhoto({"id":1227822,"src":"CARIBBEAN_FLAMINGO_FLOCK_thumb.jpg","galleries_id":80510,"server_id":1,"link":"photo_1227822.html","width":180,"caption":"Caribbean flamingos","height":120});
															thumbnails[1227829] = clik.newPhoto({"id":1227829,"src":"Guyana_river2b_thumb.jpg","galleries_id":80510,"server_id":1,"link":"photo_1227829.html","width":180,"caption":"ESSEQUIBO RIVER","height":118});
															thumbnails[2021741] = clik.newPhoto({"id":2021741,"src":"scarlet_macaw2_thumb.jpg","galleries_id":80510,"server_id":1,"link":"photo_2021741.html","width":180,"caption":"Red & Green macaws","height":120});
															thumbnails[2604247] = clik.newPhoto({"id":2604247,"src":"otters2_thumb.jpg","galleries_id":80515,"server_id":1,"link":"photo_2604247.html","width":180,"caption":"EUROPEAN OTTER","height":120});
															thumbnails[1207052] = clik.newPhoto({"id":1207052,"src":"black_shouldered_kite-04_thumb_AD10CD0F-1EC9-D45B-1CA38759C659A11A.jpg","galleries_id":80514,"server_id":1,"link":"photo_1207052.html","width":180,"caption":"BLACK-SHOULDERED KITE","height":116});
															thumbnails[1207054] = clik.newPhoto({"id":1207054,"src":"Nilgai_thumb.jpg","galleries_id":80514,"server_id":1,"link":"photo_1207054.html","width":120,"caption":"Nilgai","height":180});
															thumbnails[1207055] = clik.newPhoto({"id":1207055,"src":"bushchat_A02B7514-1EC9-DFB6-0942B2D699CECFF7_thumb.jpg","galleries_id":80514,"server_id":1,"link":"photo_1207055.html","width":120,"caption":"COMMON STONECHAT","height":180});
															thumbnails[1207056] = clik.newPhoto({"id":1207056,"src":"GREAT_EGRETS_thumb.jpg","galleries_id":80514,"server_id":1,"link":"photo_1207056.html","width":120,"caption":"GREAT EGRET","height":180});
															thumbnails[1207057] = clik.newPhoto({"id":1207057,"src":"COMMON_COOT_FLOCK_thumb.jpg","galleries_id":80514,"server_id":1,"link":"photo_1207057.html","width":180,"caption":"Coot flock ","height":120});
															thumbnails[1207058] = clik.newPhoto({"id":1207058,"src":"drying_wings_thumb.jpg","galleries_id":80514,"server_id":1,"link":"photo_1207058.html","width":180,"caption":"Asian Darter","height":120});
															thumbnails[1207063] = clik.newPhoto({"id":1207063,"src":"LDA000150C_AD727812-1EC9-D45B-1C4AC75A6A8BEE70_thumb.jpg","galleries_id":319451,"server_id":1,"link":"photo_1207063.html","width":180,"caption":"Asian Elephants at dusk","height":120});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[80514] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Asia","link":"gallery_80514.html","maxRecords":0.0,"photoIDs":[5541144.0,5551701.0,5593606.0,5593607.0,5657681.0,5657685.0,5678635.0,5678642.0,5678644.0,5678646.0,5684677.0,5748704.0,8953147.0,5657683.0,5485157.0,5473416.0,5521133.0,5521139.0,5588083.0,5507413.0,9012424.0,1207052.0,1207054.0,1207055.0,1207056.0,1207057.0,1207058.0],"skipIndex":0,"section_code":"gallery","featured_images":5473416.0,"id":80514,"singleSection":false});				  						galleries[80513] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Central America","link":"gallery_80513.html","maxRecords":0.0,"photoIDs":[1231940.0,1801612.0,1807194.0,1807196.0,2095727.0,8953158.0,8953165.0,1842720.0,8953168.0,8953171.0,1209347.0,8954684.0,1207090.0,1231915.0,1207076.0,1207081.0,1207089.0],"skipIndex":0,"section_code":"gallery","featured_images":1801612.0,"id":80513,"singleSection":false});				  						galleries[80510] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"South America","link":"gallery_80510.html","maxRecords":0.0,"photoIDs":[1207037.0,3011179.0,3011181.0,3220908.0,3462028.0,3685346.0,3685349.0,3685351.0,3685356.0,3685357.0,4056978.0,4405365.0,4405433.0,4405445.0,4496769.0,8953148.0,9012451.0,1231921.0,3011178.0,3685344.0,4056973.0,5041104.0,1209246.0,1209230.0,1209240.0,1209284.0,1209355.0,1231928.0,1209229.0,1209263.0,1227814.0,1227822.0,1227829.0,2021741.0],"skipIndex":0,"section_code":"gallery","featured_images":4056973.0,"id":80510,"singleSection":false});				  						galleries[80515] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"UK","link":"gallery_80515.html","maxRecords":0.0,"photoIDs":[8314840.0,8327165.0,8940954.0,8953146.0,8953160.0,5713356.0,6298665.0,4056982.0,6738928.0,5041131.0,1207104.0,2429298.0,2604187.0,1207008.0,1207014.0,1207003.0,1207009.0,1207011.0,2604247.0],"skipIndex":0,"section_code":"gallery","featured_images":1207008.0,"id":80515,"singleSection":false});				  						galleries[319451] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Endangered species","link":"gallery_319451.html","maxRecords":0.0,"photoIDs":[1207088.0,1807163.0,4056952.0,5556265.0,5556268.0,5402889.0,1207080.0,1807159.0,1207084.0,1207063.0],"skipIndex":0,"section_code":"gallery","featured_images":5556265.0,"id":319451,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8940954,8327165,1801612,1207037,6298665,5485157,5473416';
imageSets[2] = '5556265,1801612,4056973,5473416,1207008';
imageSets[3] = '5485157,5473416,5521139';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/leedalton7/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/leedalton7/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/leedalton7/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/leedalton7/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/leedalton7/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/leedalton7/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/leedalton7/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/leedalton7/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/leedalton7/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/leedalton7/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/leedalton7/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/leedalton7/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/leedalton7/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/leedalton7/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/leedalton7/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/leedalton7/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/leedalton7/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/leedalton7/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/leedalton7/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/leedalton7/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/leedalton7/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/leedalton7/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/leedalton7/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/leedalton7/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/leedalton7/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/leedalton7/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/leedalton7/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 = 'Lee Dalton Photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="leedalton7@yahoo.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="leedalton7@yahoo.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;
	}
}

			

