window.thumbnails = {};
															thumbnails[777055] = clik.newPhoto({"id":777055,"src":"BY_macaw_thumb.jpg","galleries_id":60221,"server_id":15,"link":"photo_777055.html","width":130,"caption":"En-Route magazine illustrated article","height":195});
															thumbnails[777059] = clik.newPhoto({"id":777059,"src":"Blaauwberg_thumb.jpg","galleries_id":60221,"server_id":15,"link":"photo_777059.html","width":130,"caption":"Blaauwberg Municipality tourism guide","height":135});
															thumbnails[777061] = clik.newPhoto({"id":777061,"src":"Butterfly_web_thumb.jpg","galleries_id":60221,"server_id":15,"link":"photo_777061.html","width":130,"caption":"ABC News website publication","height":146});
															thumbnails[777063] = clik.newPhoto({"id":777063,"src":"Portfolio_03_thumb.jpg","galleries_id":60221,"server_id":15,"link":"photo_777063.html","width":130,"caption":"Globetrotter Guide to Peru, 24 images.","height":175});
															thumbnails[777069] = clik.newPhoto({"id":777069,"src":"Footprint_thumb.jpg","galleries_id":60221,"server_id":15,"link":"photo_777069.html","width":130,"caption":"Engen press release","height":37});
															thumbnails[777071] = clik.newPhoto({"id":777071,"src":"howstuffworks01_thumb.jpg","galleries_id":60221,"server_id":15,"link":"photo_777071.html","width":130,"caption":"Howstuffworks.com website publications","height":64});
															thumbnails[777072] = clik.newPhoto({"id":777072,"src":"Portfolio_01_thumb.jpg","galleries_id":60221,"server_id":15,"link":"photo_777072.html","width":130,"caption":"Amateur Photographer magazine portfolio","height":197});
															thumbnails[777075] = clik.newPhoto({"id":777075,"src":"Portfolio_02_thumb.jpg","galleries_id":60221,"server_id":15,"link":"photo_777075.html","width":130,"caption":"Qorikancha visitor ticket image","height":95});
															thumbnails[777078] = clik.newPhoto({"id":777078,"src":"Portfolio_06a_thumb.jpg","galleries_id":60221,"server_id":15,"link":"photo_777078.html","width":130,"caption":"Bushcall magazine photo competition winners","height":201});
															thumbnails[777080] = clik.newPhoto({"id":777080,"src":"Portfolio_07a_thumb.jpg","galleries_id":60221,"server_id":15,"link":"photo_777080.html","width":130,"caption":"Via magazine portfolio & article 01","height":87});
															thumbnails[777084] = clik.newPhoto({"id":777084,"src":"Portfolio_07b_thumb.jpg","galleries_id":60221,"server_id":15,"link":"photo_777084.html","width":130,"caption":"Via magazine portfolio & article 02","height":83});
															thumbnails[777085] = clik.newPhoto({"id":777085,"src":"Portfolio_07c_thumb.jpg","galleries_id":60221,"server_id":15,"link":"photo_777085.html","width":130,"caption":"Via magazine portfolio & article 03","height":85});
															thumbnails[777086] = clik.newPhoto({"id":777086,"src":"Portfolio_09_thumb.jpg","galleries_id":60221,"server_id":15,"link":"photo_777086.html","width":130,"caption":"Amateur Photographer magazine technique illustrated article","height":92});
															thumbnails[777089] = clik.newPhoto({"id":777089,"src":"Portfolio_12_thumb.jpg","galleries_id":60221,"server_id":15,"link":"photo_777089.html","width":130,"caption":"Old Glory illustrated article.","height":93});
															thumbnails[789406] = clik.newPhoto({"id":789406,"src":"Archaeological__reconstruction1_thumb.jpg","galleries_id":60234,"server_id":15,"link":"photo_789406.html","width":130,"caption":"Archaeological reconstruction","height":87});
															thumbnails[789407] = clik.newPhoto({"id":789407,"src":"Bird_research_thumb.jpg","galleries_id":60234,"server_id":15,"link":"photo_789407.html","width":130,"caption":"Bird research","height":195});
															thumbnails[789408] = clik.newPhoto({"id":789408,"src":"Brazil_nut_research_thumb.jpg","galleries_id":60234,"server_id":15,"link":"photo_789408.html","width":130,"caption":"Brazil nut research","height":195});
															thumbnails[789409] = clik.newPhoto({"id":789409,"src":"Biogarden__composting_demo_thumb.JPG","galleries_id":60234,"server_id":15,"link":"photo_789409.html","width":130,"caption":"Biogarden composting workshop","height":87});
															thumbnails[789416] = clik.newPhoto({"id":789416,"src":"Burning_alien_invaders_thumb.jpg","galleries_id":60234,"server_id":15,"link":"photo_789416.html","width":130,"caption":"Burning alien invasive plants","height":87});
															thumbnails[789417] = clik.newPhoto({"id":789417,"src":"Clearing_alien_invasive_plants_thumb.jpg","galleries_id":60234,"server_id":15,"link":"photo_789417.html","width":130,"caption":"Clearing alien invasive plants","height":87});
															thumbnails[789418] = clik.newPhoto({"id":789418,"src":"Clearing_oil_spill_thumb.jpg","galleries_id":60234,"server_id":15,"link":"photo_789418.html","width":130,"caption":"Clearing oil spill","height":193});
															thumbnails[789419] = clik.newPhoto({"id":789419,"src":"Clearing_water_hyacinth_thumb.jpg","galleries_id":60234,"server_id":15,"link":"photo_789419.html","width":130,"caption":"Clearing water hyacinth","height":83});
															thumbnails[789420] = clik.newPhoto({"id":789420,"src":"Herpetology_project_thumb.jpg","galleries_id":60234,"server_id":15,"link":"photo_789420.html","width":130,"caption":"Herpetology project","height":195});
															thumbnails[789421] = clik.newPhoto({"id":789421,"src":"Copper_mine_pollution_thumb.jpg","galleries_id":60234,"server_id":15,"link":"photo_789421.html","width":130,"caption":"Copper mine pollution","height":87});
															thumbnails[789422] = clik.newPhoto({"id":789422,"src":"Environmental_workshop_thumb.JPG","galleries_id":60234,"server_id":15,"link":"photo_789422.html","width":130,"caption":"Environmental workshop","height":87});
															thumbnails[789424] = clik.newPhoto({"id":789424,"src":"Rock_art_study_thumb.jpg","galleries_id":60234,"server_id":15,"link":"photo_789424.html","width":130,"caption":"Rock art study","height":87});
															thumbnails[7293147] = clik.newPhoto({"id":7293147,"src":"Fire_thumb.jpg","galleries_id":60234,"server_id":15,"link":"photo_7293147.html","width":130,"caption":"Fire","height":195});
															thumbnails[7293149] = clik.newPhoto({"id":7293149,"src":"Gold_mining_Amazon_thumb.jpg","galleries_id":60234,"server_id":15,"link":"photo_7293149.html","width":130,"caption":"Gold mining, Amazon","height":195});
															thumbnails[7293152] = clik.newPhoto({"id":7293152,"src":"Macaw_monitoring_thumb.JPG","galleries_id":60234,"server_id":15,"link":"photo_7293152.html","width":130,"caption":"Macaw monitoring project","height":87});
															thumbnails[7293690] = clik.newPhoto({"id":7293690,"src":"Baboon1_thumb.jpg","galleries_id":60231,"server_id":15,"link":"photo_7293690.html","width":130,"caption":"Baboon, Western Cape, South Africa","height":195});
															thumbnails[7293691] = clik.newPhoto({"id":7293691,"src":"Cape_dwarf_chameleon_thumb.jpg","galleries_id":60231,"server_id":15,"link":"photo_7293691.html","width":130,"caption":"Cape dwarf chameleon, West Coast, South Africa","height":195});
															thumbnails[7293695] = clik.newPhoto({"id":7293695,"src":"Cape_francolins_thumb.jpg","galleries_id":60231,"server_id":15,"link":"photo_7293695.html","width":130,"caption":"Cape francolins, Milnerton, South Africa","height":195});
															thumbnails[7293696] = clik.newPhoto({"id":7293696,"src":"Dassies_thumb.jpg","galleries_id":60231,"server_id":15,"link":"photo_7293696.html","width":130,"caption":"Rock hyrax or ''dassie'' father & son, West Coast, South Africa","height":87});
															thumbnails[7293697] = clik.newPhoto({"id":7293697,"src":"Everlastings_thumb.jpg","galleries_id":60231,"server_id":15,"link":"photo_7293697.html","width":130,"caption":"Everlastings, Cape Point Nature Reserve, South Africa","height":59});
															thumbnails[7293698] = clik.newPhoto({"id":7293698,"src":"Green_erica_thumb.jpg","galleries_id":60231,"server_id":15,"link":"photo_7293698.html","width":130,"caption":"Green erica, Western Cape, South Africa","height":195});
															thumbnails[7293699] = clik.newPhoto({"id":7293699,"src":"Grysbok_thumb.jpg","galleries_id":60231,"server_id":15,"link":"photo_7293699.html","width":130,"caption":"Grysbok, Western Cape, South Africa","height":195});
															thumbnails[7293700] = clik.newPhoto({"id":7293700,"src":"Hummingbird_hawk_moth_thumb.jpg","galleries_id":60231,"server_id":15,"link":"photo_7293700.html","width":130,"caption":"Hummingbird hawk moth feeding, Western Cape, South Africa","height":87});
															thumbnails[7293710] = clik.newPhoto({"id":7293710,"src":"Ochna_gamostigmata_thumb.JPG","galleries_id":60231,"server_id":15,"link":"photo_7293710.html","width":130,"caption":"Ochna gamostigmata fruit receptacles looking like a small rodent, South Africa","height":195});
															thumbnails[7293711] = clik.newPhoto({"id":7293711,"src":"Ostrich_mother_thumb.jpg","galleries_id":60231,"server_id":15,"link":"photo_7293711.html","width":130,"caption":"Ostrich mother & chick, Western Cape, South Africa","height":195});
															thumbnails[7293714] = clik.newPhoto({"id":7293714,"src":"Penguin_couple_thumb.jpg","galleries_id":60231,"server_id":15,"link":"photo_7293714.html","width":130,"caption":"Penguin couple, Boulders Beach, Cape Town, South Africa","height":83});
															thumbnails[7293715] = clik.newPhoto({"id":7293715,"src":"Pincushions_thumb.jpg","galleries_id":60231,"server_id":15,"link":"photo_7293715.html","width":130,"caption":"Pincushions, Western Cape, South Africa","height":195});
															thumbnails[7293716] = clik.newPhoto({"id":7293716,"src":"Sacred_ibis_sunset_thumb.JPG","galleries_id":60231,"server_id":15,"link":"photo_7293716.html","width":130,"caption":"Sacred ibis sunset, Milnerton, South Africa","height":87});
															thumbnails[7293717] = clik.newPhoto({"id":7293717,"src":"Walker_Bay_sunset1_thumb.jpg","galleries_id":60231,"server_id":15,"link":"photo_7293717.html","width":130,"caption":"Walker Bay sunset, Overberg, South Africa","height":86});
															thumbnails[7293718] = clik.newPhoto({"id":7293718,"src":"Whale_breaching_thumb.jpg","galleries_id":60231,"server_id":15,"link":"photo_7293718.html","width":130,"caption":"Whale breaching, Walker Bay, South Africa","height":87});
															thumbnails[7293720] = clik.newPhoto({"id":7293720,"src":"Bougainvillea_thumb.JPG","galleries_id":60231,"server_id":15,"link":"photo_7293720.html","width":130,"caption":"Bougainvillea, Cape Town, South Africa","height":87});
															thumbnails[7295269] = clik.newPhoto({"id":7295269,"src":"Portfolio_13_thumb.jpg","galleries_id":60221,"server_id":15,"link":"photo_7295269.html","width":130,"caption":"The Human Past (Thames & Hudson 2005): Illustration of chapter on South American civilisations in Peru and Bolivia, 7 images (01)","height":173});
															thumbnails[7295270] = clik.newPhoto({"id":7295270,"src":"Portfolio_14_thumb.jpg","galleries_id":60221,"server_id":15,"link":"photo_7295270.html","width":130,"caption":"The Human Past (Thames & Hudson 2005): Illustration of chapter on South American civilisations in Peru and Bolivia, 7 images (02)","height":176});
															thumbnails[7295277] = clik.newPhoto({"id":7295277,"src":"Portfolio_14b_thumb.jpg","galleries_id":60221,"server_id":15,"link":"photo_7295277.html","width":130,"caption":"The Human Past (Thames & Hudson 2005): Illustration of chapter on South American civilisations in Peru and Bolivia, 7 images (03)","height":173});
															thumbnails[7295283] = clik.newPhoto({"id":7295283,"src":"Portfolio_15_thumb.jpg","galleries_id":60221,"server_id":15,"link":"photo_7295283.html","width":130,"caption":"Getaway Gallery (01)","height":56});
															thumbnails[7295287] = clik.newPhoto({"id":7295287,"src":"PS054_thumb.jpg","galleries_id":60221,"server_id":15,"link":"photo_7295287.html","width":130,"caption":"Getaway Gallery (02)","height":180});
															thumbnails[7295406] = clik.newPhoto({"id":7295406,"src":"PS071_thumb.jpg","galleries_id":60221,"server_id":15,"link":"photo_7295406.html","width":130,"caption":"Brochure images & text for Embassy of Peru, South Africa","height":184});
															thumbnails[7295411] = clik.newPhoto({"id":7295411,"src":"SAAF_thumb.jpg","galleries_id":60221,"server_id":15,"link":"photo_7295411.html","width":130,"caption":"Illustrated article, AirForces Monthly Magazine","height":195});
															thumbnails[7295465] = clik.newPhoto({"id":7295465,"src":"Shackleton_thumb.jpg","galleries_id":60221,"server_id":15,"link":"photo_7295465.html","width":130,"caption":"Aviation News 4-page illustrated article","height":87});
															thumbnails[7295577] = clik.newPhoto({"id":7295577,"src":"Boat_at_sunset_thumb.jpg","galleries_id":60233,"server_id":15,"link":"photo_7295577.html","width":130,"caption":"Boat at sunset, Madre de Dios, Peru","height":87});
															thumbnails[7295578] = clik.newPhoto({"id":7295578,"src":"Early_morning_Rio_Patuyacu_thumb.jpg","galleries_id":60233,"server_id":15,"link":"photo_7295578.html","width":130,"caption":"Dawn, Patuyacu River, Peruvian Amazon","height":87});
															thumbnails[7295585] = clik.newPhoto({"id":7295585,"src":"Market_boats_thumb.jpg","galleries_id":60233,"server_id":15,"link":"photo_7295585.html","width":130,"caption":"Market boats arriving at Puerto Maldonado, Peruvian Amazon","height":87});
															thumbnails[7295610] = clik.newPhoto({"id":7295610,"src":"12-angled_stone_thumb.jpg","galleries_id":60233,"server_id":15,"link":"photo_7295610.html","width":130,"caption":"Cusco's Inca twelve-angled stone through a Colonial doorway","height":195});
															thumbnails[7295612] = clik.newPhoto({"id":7295612,"src":"Alpaca_thumb.jpg","galleries_id":60233,"server_id":15,"link":"photo_7295612.html","width":130,"caption":"Alpaca, Cusco, Peru","height":87});
															thumbnails[7295618] = clik.newPhoto({"id":7295618,"src":"Chinchero_girl_thumb.jpg","galleries_id":60233,"server_id":15,"link":"photo_7295618.html","width":130,"caption":"Local Cusco girl at market studying a ruda seed (ruda is used to attract good sales)","height":87});
															thumbnails[7295619] = clik.newPhoto({"id":7295619,"src":"Chinchero_view_thumb.jpg","galleries_id":60233,"server_id":15,"link":"photo_7295619.html","width":130,"caption":"Chinchero view, Cusco, Peru","height":87});
															thumbnails[7295626] = clik.newPhoto({"id":7295626,"src":"Chullo__camera_selective_thumb.jpg","galleries_id":60233,"server_id":15,"link":"photo_7295626.html","width":130,"caption":"Traditional photographer, Cusco, Peru","height":195});
															thumbnails[7295628] = clik.newPhoto({"id":7295628,"src":"Chuncho_thumb.jpg","galleries_id":60233,"server_id":15,"link":"photo_7295628.html","width":130,"caption":"Masked chuncho dancer, Cusco, Peru","height":195});
															thumbnails[7295630] = clik.newPhoto({"id":7295630,"src":"Church__Wall_thumb.jpg","galleries_id":60233,"server_id":15,"link":"photo_7295630.html","width":130,"caption":"Colonial church atop Inca wall, Cusco, Peru","height":86});
															thumbnails[7295633] = clik.newPhoto({"id":7295633,"src":"Girl_spinning_thumb.jpg","galleries_id":60233,"server_id":15,"link":"photo_7295633.html","width":130,"caption":"Traditional dancer in motion, Cusco, Peru","height":93});
															thumbnails[7295655] = clik.newPhoto({"id":7295655,"src":"Hands_weaving_thumb.jpg","galleries_id":60233,"server_id":15,"link":"photo_7295655.html","width":130,"caption":"Weaving hands, Cusco, Peru","height":87});
															thumbnails[7295656] = clik.newPhoto({"id":7295656,"src":"Inti_Raymi_thumb.jpg","galleries_id":60233,"server_id":15,"link":"photo_7295656.html","width":130,"caption":"Inca at Inti Raymi ceremony, Cusco, Peru","height":195});
															thumbnails[7295657] = clik.newPhoto({"id":7295657,"src":"La_Plaza_at_night_thumb.jpg","galleries_id":60233,"server_id":15,"link":"photo_7295657.html","width":130,"caption":"Plaza de Armas, Cusco, at night","height":87});
															thumbnails[7295659] = clik.newPhoto({"id":7295659,"src":"Machu_Picchu_thumb.jpg","galleries_id":60233,"server_id":15,"link":"photo_7295659.html","width":130,"caption":"Machu Picchu, Cusco, Peru","height":87});
															thumbnails[7295661] = clik.newPhoto({"id":7295661,"src":"Pikillacta_thumb.jpg","galleries_id":60233,"server_id":15,"link":"photo_7295661.html","width":130,"caption":"Pikillacta pre-Inca site, Cusco, Peru","height":87});
															thumbnails[7295663] = clik.newPhoto({"id":7295663,"src":"Procuradores_at_night_thumb.jpg","galleries_id":60233,"server_id":15,"link":"photo_7295663.html","width":130,"caption":"Cusco street at night, Peru","height":195});
															thumbnails[7295664] = clik.newPhoto({"id":7295664,"src":"Qena_player_thumb.jpg","galleries_id":60233,"server_id":15,"link":"photo_7295664.html","width":130,"caption":"Pincullo player, Cusco, Peru","height":195});
															thumbnails[7295666] = clik.newPhoto({"id":7295666,"src":"Qorikancha_thumb.jpg","galleries_id":60233,"server_id":15,"link":"photo_7295666.html","width":130,"caption":"Qorikancha, the Inca Temple of the Sun interior, Cusco, Peru","height":195});
															thumbnails[7295667] = clik.newPhoto({"id":7295667,"src":"Sacred_Valley_thumb.jpg","galleries_id":60233,"server_id":15,"link":"photo_7295667.html","width":130,"caption":"Sacred Valley of the Incas, Cusco, Peru","height":195});
															thumbnails[7295669] = clik.newPhoto({"id":7295669,"src":"Sacsayhuaman_walls_thumb.jpg","galleries_id":60233,"server_id":15,"link":"photo_7295669.html","width":130,"caption":"Sacsayhuaman walls above Cusco, Peru","height":87});
															thumbnails[7295670] = clik.newPhoto({"id":7295670,"src":"Salt-Mine_thumb.JPG","galleries_id":60233,"server_id":15,"link":"photo_7295670.html","width":130,"caption":"Prehistoric salt mine still in operation, Maras, Peru","height":87});
															thumbnails[7295678] = clik.newPhoto({"id":7295678,"src":"Virgen_del_Carmen_thumb.JPG","galleries_id":60233,"server_id":15,"link":"photo_7295678.html","width":130,"caption":"Masked Aucca Chileno dancer during the Virgen del Carmen parades, Cusco, Peru","height":195});
															thumbnails[7295684] = clik.newPhoto({"id":7295684,"src":"Cape_Minstrels_thumb.jpg","galleries_id":60233,"server_id":15,"link":"photo_7295684.html","width":130,"caption":"Cape Minstrels at the New Year's parade, Cape Town, South Africa","height":94});
															thumbnails[7295685] = clik.newPhoto({"id":7295685,"src":"On_horseback_in_dunes_thumb.jpg","galleries_id":60233,"server_id":15,"link":"photo_7295685.html","width":130,"caption":"On horseback in dunes, Overberg, Western Cape, South Africa","height":195});
															thumbnails[7295686] = clik.newPhoto({"id":7295686,"src":"Paramotor_at_dusk_thumb.jpg","galleries_id":60233,"server_id":15,"link":"photo_7295686.html","width":130,"caption":"Paramotor at dusk, Table View, Cape Town, South Africa","height":130});
															thumbnails[7295687] = clik.newPhoto({"id":7295687,"src":"Refreshing_thumb.jpg","galleries_id":60233,"server_id":15,"link":"photo_7295687.html","width":130,"caption":"Refreshing swim in the sea, Clifton Beach, Cape Town, South Africa","height":195});
															thumbnails[7295688] = clik.newPhoto({"id":7295688,"src":"Tiwanaku_thumb.jpg","galleries_id":60233,"server_id":15,"link":"photo_7295688.html","width":130,"caption":"Tour group with guide at Tiwanaku, Bolivian Altiplano","height":102});
															thumbnails[7295691] = clik.newPhoto({"id":7295691,"src":"El_Caminito_thumb.JPG","galleries_id":60233,"server_id":15,"link":"photo_7295691.html","width":130,"caption":"El Caminito details, La Boca, Buenos Aires, Argentina","height":87});
															thumbnails[7295695] = clik.newPhoto({"id":7295695,"src":"Samba_in_the-street_thumb.JPG","galleries_id":60233,"server_id":15,"link":"photo_7295695.html","width":130,"caption":"Samba in the street, San Telmo, Buenos Aires, Argentina","height":87});
															thumbnails[7295697] = clik.newPhoto({"id":7295697,"src":"Tango_thumb.jpg","galleries_id":60233,"server_id":15,"link":"photo_7295697.html","width":130,"caption":"Tango, Buenos Aires, Argentina","height":195});
															thumbnails[7293665] = clik.newPhoto({"id":7293665,"src":"Amazon_sunrise1_thumb.jpg","galleries_id":60231,"server_id":15,"link":"photo_7293665.html","width":130,"caption":"Amazon sunrise, Madre de Dios, Peru","height":195});
															thumbnails[7293706] = clik.newPhoto({"id":7293706,"src":"Moonrise_on_the_Tambopata_thumb.jpg","galleries_id":60231,"server_id":15,"link":"photo_7293706.html","width":130,"caption":"Moonrise on the Tambopata River, Peru","height":195});
															thumbnails[7293670] = clik.newPhoto({"id":7293670,"src":"Red_lips_with_a_bite_thumb.JPG","galleries_id":60231,"server_id":15,"link":"photo_7293670.html","width":130,"caption":"Red lips with a bite, Manu Biosphere Reserve, Cusco, Peru","height":87});
															thumbnails[7293682] = clik.newPhoto({"id":7293682,"src":"Leafcutter_ant1_thumb.jpg","galleries_id":60231,"server_id":15,"link":"photo_7293682.html","width":130,"caption":"Leafcutter ant at work, Tambopata, Peru","height":87});
															thumbnails[7293680] = clik.newPhoto({"id":7293680,"src":"Convict_hairstreaks_mating1_thumb.jpg","galleries_id":60231,"server_id":15,"link":"photo_7293680.html","width":130,"caption":"Convict hairstreaks mating, Tambopata, Peru","height":88});
															thumbnails[7293666] = clik.newPhoto({"id":7293666,"src":"Barred_leaf_frog_thumb.jpg","galleries_id":60231,"server_id":15,"link":"photo_7293666.html","width":130,"caption":"Barred leaf frog, Tambopata, Peru","height":195});
															thumbnails[7293675] = clik.newPhoto({"id":7293675,"src":"Tree_boa_thumb.jpg","galleries_id":60231,"server_id":15,"link":"photo_7293675.html","width":130,"caption":"Tree boa, Peruvian Amazon","height":87});
															thumbnails[7293681] = clik.newPhoto({"id":7293681,"src":"Enyalioides_palpebralis1_thumb.jpg","galleries_id":60231,"server_id":15,"link":"photo_7293681.html","width":130,"caption":"Tree lizard, Peruvian Amazon","height":195});
															thumbnails[7293672] = clik.newPhoto({"id":7293672,"src":"Slate-coloured_hawk_thumb.jpg","galleries_id":60231,"server_id":15,"link":"photo_7293672.html","width":130,"caption":"Slate-coloured hawk, Tambopata, Peru","height":87});
															thumbnails[7293673] = clik.newPhoto({"id":7293673,"src":"Squirrel_monkey_with_berry_thumb.JPG","galleries_id":60231,"server_id":15,"link":"photo_7293673.html","width":130,"caption":"Squirrel monkey dining, Manu Biosphere Reserve, Cusco, Peru","height":195});
															thumbnails[7293679] = clik.newPhoto({"id":7293679,"src":"Buttress_roots1_thumb.jpg","galleries_id":60231,"server_id":15,"link":"photo_7293679.html","width":130,"caption":"Buttress roots, Peruvian Amazon","height":87});
															thumbnails[7293684] = clik.newPhoto({"id":7293684,"src":"Andes2_thumb.JPG","galleries_id":60231,"server_id":15,"link":"photo_7293684.html","width":130,"caption":"Andes mountain range, Cusco, Peru","height":87});
															thumbnails[7293703] = clik.newPhoto({"id":7293703,"src":"Iguazu_panorama_thumb.jpg","galleries_id":60231,"server_id":15,"link":"photo_7293703.html","width":130,"caption":"Iguazu panorama, Argentina","height":33});
															thumbnails[7293685] = clik.newPhoto({"id":7293685,"src":"Bosetti_waterfall1_thumb.JPG","galleries_id":60231,"server_id":15,"link":"photo_7293685.html","width":130,"caption":"Bosetti waterfall, Iguazu, Argentina","height":87});
															thumbnails[7293687] = clik.newPhoto({"id":7293687,"src":"Toco_toucan1_thumb.jpg","galleries_id":60231,"server_id":15,"link":"photo_7293687.html","width":130,"caption":"Toco toucan, Iguazu, Argentina","height":87});
															thumbnails[7293719] = clik.newPhoto({"id":7293719,"src":"Tree_silhouette_thumb.jpg","galleries_id":60231,"server_id":15,"link":"photo_7293719.html","width":130,"caption":"Tree silhouette, Nottingham, England","height":88});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[60231] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Nature","link":"gallery_60231.html","maxRecords":0.0,"photoIDs":[7293690.0,7293691.0,7293695.0,7293696.0,7293697.0,7293698.0,7293699.0,7293700.0,7293710.0,7293711.0,7293714.0,7293715.0,7293716.0,7293717.0,7293718.0,7293720.0,7293665.0,7293706.0,7293670.0,7293682.0,7293680.0,7293666.0,7293675.0,7293681.0,7293672.0,7293673.0,7293679.0,7293684.0,7293703.0,7293685.0,7293687.0,7293719.0],"skipIndex":0,"section_code":"gallery","featured_images":"7293719,7293718,7293716,7293715,7293714,7293711,7293706,7293703,7293700,7293698,7293691,7293690,7293687,7293684,7293681,7293680,7293679,7293675,7293673,7293672,7293670,7293666,7293665","id":60231,"singleSection":false});				  						galleries[60234] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Projects & Environment","link":"gallery_60234.html","maxRecords":0.0,"photoIDs":[789406.0,789407.0,789408.0,789409.0,789416.0,789417.0,789418.0,789419.0,789420.0,789421.0,789422.0,789424.0,7293147.0,7293149.0,7293152.0],"skipIndex":0,"section_code":"gallery","featured_images":"7293152,7293149,7293147,789424,789422,789421,789420,789419,789418,789417","id":60234,"singleSection":false});				  						galleries[60233] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Travel","link":"gallery_60233.html","maxRecords":0.0,"photoIDs":[7295577.0,7295578.0,7295585.0,7295610.0,7295612.0,7295618.0,7295619.0,7295626.0,7295628.0,7295630.0,7295633.0,7295655.0,7295656.0,7295657.0,7295659.0,7295661.0,7295663.0,7295664.0,7295666.0,7295667.0,7295669.0,7295670.0,7295678.0,7295684.0,7295685.0,7295686.0,7295687.0,7295688.0,7295691.0,7295695.0,7295697.0],"skipIndex":0,"section_code":"gallery","featured_images":"7295686,7295684,7295669,7295659,7295657,7295656,7295633,7295630,7295626,7295618,7295612,7295585,7295578,7295577","id":60233,"singleSection":false});				  						galleries[60221] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Tearsheets","link":"gallery_60221.html","maxRecords":0.0,"photoIDs":[777055.0,777059.0,777061.0,777063.0,777069.0,777071.0,777072.0,777075.0,777078.0,777080.0,777084.0,777085.0,777086.0,777089.0,7295269.0,7295270.0,7295277.0,7295283.0,7295287.0,7295406.0,7295411.0,7295465.0],"skipIndex":0,"section_code":"gallery","featured_images":"7295465,7295283,7295277,7295270,7295269,777086,777085,777084,777080,777075,777072,777063,777061","id":60221,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7295697,7295686,7295684,7295670,7295669,7295664,7295659,7295657,7295656,7295633,7295630,7295626,7295618,7295612,7295610,7295585,7295578,7295577,7293719,7293718,7293716,7293715,7293714,7293711,7293706,7293703,7293700,7293698,7293691,7293690,7293687,7293684,7293681,7293680,7293679,7293675,7293673,7293672,7293670,7293666,7293665,777086,777085,777084,777075,777072,777063';
imageSets[2] = '7295686,7295684,7295669,7295659,7295657,7295656,7295633,7295630,7295626,7295618,7295612,7295585,7295578,7295577,7295465,7295283,7295277,7295270,7295269,7293719,7293718,7293716,7293715,7293714,7293711,7293706,7293703,7293700,7293698,7293691,7293690,7293687,7293684,7293681,7293680,7293679,7293675,7293673,7293672,7293670,7293666,7293665,777086,777085,777084,777080,777075,777072,777063,777061';
imageSets[3] = '7295697,7295695,7295691,7295688,7295687,7295686,7295685,7295684,7295678,7295670,7295669,7295667,7295666,7295664,7295663,7295661,7295659,7295657,7295656,7295655,7295633,7295630,7295628,7295626,7295619,7295618,7295612,7295610,7295585,7295578,7295577,7295465,7295411,7295406,7295287,7295283,7295277,7295270,7295269,7293720,7293719,7293718,7293717,7293716,7293715,7293714,7293711,7293710,7293706,7293703';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/mikelangford/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/mikelangford/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/mikelangford/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/mikelangford/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/mikelangford/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/mikelangford/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/mikelangford/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/mikelangford/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/mikelangford/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/mikelangford/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/mikelangford/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/mikelangford/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/mikelangford/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/mikelangford/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/mikelangford/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/mikelangford/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/mikelangford/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/mikelangford/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/mikelangford/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/mikelangford/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/mikelangford/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/mikelangford/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/mikelangford/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/mikelangford/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = backgrounds && backgrounds[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Michael Langford 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> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
			temp += '<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({					href: thumbnails[imageID].fnGalleryLink(gallery_id),					title: galleries[gallery_id].title				});
			}
		}
	}
}

/***************************************************************************
* 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;
	}
}

			

