window.thumbnails = {};
															thumbnails[7521] = clik.newPhoto({"id":7521,"src":"olmstead point_thumb.jpg","galleries_id":25012,"server_id":15,"link":"photo_7521.html","width":130,"caption":"Olmstead Point, Yosemite national park, California","height":83});
															thumbnails[7676] = clik.newPhoto({"id":7676,"src":"st michaels mount_thumb.jpg","galleries_id":1133,"server_id":15,"link":"photo_7676.html","width":130,"caption":"St Michael's Mount, Cornwell","height":201});
															thumbnails[7677] = clik.newPhoto({"id":7677,"src":"monkey boys_thumb.jpg","galleries_id":1151,"server_id":15,"link":"photo_7677.html","width":130,"caption":"Monkey Boys, Hampi India","height":85});
															thumbnails[595845] = clik.newPhoto({"id":595845,"src":"priest ura kidane meret1_thumb.jpg","galleries_id":45532,"server_id":15,"link":"photo_595845.html","width":130,"caption":"Priest, Ura Kidane Meret monastry","height":194});
															thumbnails[6352318] = clik.newPhoto({"id":6352318,"src":"uluru_sunrise_red_sky_thumb.jpg","galleries_id":351876,"server_id":15,"link":"photo_6352318.html","width":130,"caption":"Uluru at Sunrise","height":87});
															thumbnails[6990063] = clik.newPhoto({"id":6990063,"src":"s_the_sun_rises1_thumb.jpg","galleries_id":378787,"server_id":15,"link":"photo_6990063.html","width":130,"caption":"Sun Rise","height":87});
															thumbnails[8480541] = clik.newPhoto({"id":8480541,"src":"Potala_dark_clouds_thumb.jpg","galleries_id":278674,"server_id":15,"link":"photo_8480541.html","width":160,"caption":"Potala Palace","height":107});
															thumbnails[8688025] = clik.newPhoto({"id":8688025,"src":"Shefield_park_house_thumb.jpg","galleries_id":458483,"server_id":15,"link":"photo_8688025.html","width":160,"caption":"Shefield Park","height":107});
															thumbnails[7522] = clik.newPhoto({"id":7522,"src":"rainbow vernal falls_thumb.jpg","galleries_id":25012,"server_id":15,"link":"photo_7522.html","width":130,"caption":"Vernal falls, Yosemite, California","height":85});
															thumbnails[9933] = clik.newPhoto({"id":9933,"src":"Virupaksha temple and rocks_thumb.jpg","galleries_id":1151,"server_id":15,"link":"photo_9933.html","width":130,"caption":"Virupaksha temple, Hampi, India","height":85});
															thumbnails[595846] = clik.newPhoto({"id":595846,"src":"Simien mts boy1_thumb.jpg","galleries_id":45532,"server_id":15,"link":"photo_595846.html","width":130,"caption":"Young boy, Simien Mountains","height":194});
															thumbnails[5374700] = clik.newPhoto({"id":5374700,"src":"Greenwich_vista_thumb.jpg","galleries_id":1133,"server_id":15,"link":"photo_5374700.html","width":130,"caption":"Greenwich","height":87});
															thumbnails[6352319] = clik.newPhoto({"id":6352319,"src":"uluru_sunrise_thumb.jpg","galleries_id":351876,"server_id":15,"link":"photo_6352319.html","width":130,"caption":"Red desert and Uluru in distance","height":90});
															thumbnails[6990025] = clik.newPhoto({"id":6990025,"src":"s_barrow_mump_tree_tower_thumb.jpg","galleries_id":378787,"server_id":15,"link":"photo_6990025.html","width":130,"caption":"Barrow Mump","height":87});
															thumbnails[8480563] = clik.newPhoto({"id":8480563,"src":"jokhang_roof_incense_smoke_thumb.jpg","galleries_id":278674,"server_id":15,"link":"photo_8480563.html","width":160,"caption":"Jokhang Temple through the incense smoke","height":107});
															thumbnails[8688027] = clik.newPhoto({"id":8688027,"src":"Autumn_trees_blue_skies_thumb.jpg","galleries_id":458483,"server_id":15,"link":"photo_8688027.html","width":160,"caption":"Autumn trees","height":107});
															thumbnails[5374777] = clik.newPhoto({"id":5374777,"src":"Mitten_in_cloud_and_snow_thumb.jpg","galleries_id":25012,"server_id":15,"link":"photo_5374777.html","width":130,"caption":"Monument Valley. Mitten","height":84});
															thumbnails[84472] = clik.newPhoto({"id":84472,"src":"Angkor walkway and monk_thumb.jpg","galleries_id":1151,"server_id":15,"link":"photo_84472.html","width":130,"caption":"Monk, Angkor walkway, Cambodia","height":197});
															thumbnails[282740] = clik.newPhoto({"id":282740,"src":"monument valley snow_thumb.jpg","galleries_id":25012,"server_id":15,"link":"photo_282740.html","width":130,"caption":"Monument valley Arizona","height":85});
															thumbnails[595847] = clik.newPhoto({"id":595847,"src":"goat herder1_thumb.jpg","galleries_id":45532,"server_id":15,"link":"photo_595847.html","width":130,"caption":"Goat Herder, road to Gonder","height":194});
															thumbnails[5374793] = clik.newPhoto({"id":5374793,"src":"Peckham_Rye_in_snow_thumb.jpg","galleries_id":1133,"server_id":15,"link":"photo_5374793.html","width":130,"caption":"Peckham Rye Winter","height":87});
															thumbnails[6352339] = clik.newPhoto({"id":6352339,"src":"clouds_and_rock_marks_thumb.jpg","galleries_id":351876,"server_id":15,"link":"photo_6352339.html","width":130,"caption":"Markings on face of Uluru","height":87});
															thumbnails[6990075] = clik.newPhoto({"id":6990075,"src":"s_Burrow_Mump_sunset_thumb.jpg","galleries_id":378787,"server_id":15,"link":"photo_6990075.html","width":130,"caption":"Barrow Mump sunset","height":87});
															thumbnails[8480565] = clik.newPhoto({"id":8480565,"src":"monk_thumb.jpg","galleries_id":278674,"server_id":15,"link":"photo_8480565.html","width":160,"caption":"Monk","height":107});
															thumbnails[8688028] = clik.newPhoto({"id":8688028,"src":"Autumn_trees_reflection_2_thumb.jpg","galleries_id":458483,"server_id":15,"link":"photo_8688028.html","width":160,"caption":"Reflection","height":240});
															thumbnails[1629964] = clik.newPhoto({"id":1629964,"src":"karo woman in doorway_thumb.jpg","galleries_id":45532,"server_id":15,"link":"photo_1629964.html","width":130,"caption":"Karo woman, Omo valley","height":194});
															thumbnails[84478] = clik.newPhoto({"id":84478,"src":"Angkor_sunrise_and_lilly_thumb.jpg","galleries_id":1151,"server_id":15,"link":"photo_84478.html","width":130,"caption":"Angkor Wat, Cambodia","height":85});
															thumbnails[282802] = clik.newPhoto({"id":282802,"src":"Winchelsea_thumb.jpg","galleries_id":1133,"server_id":15,"link":"photo_282802.html","width":130,"caption":"Winchelsea beach, East Sussex","height":173});
															thumbnails[380827] = clik.newPhoto({"id":380827,"src":"totem pole mist_thumb.jpg","galleries_id":25012,"server_id":15,"link":"photo_380827.html","width":130,"caption":"Totem Pole, Monument Valley, Utah","height":84});
															thumbnails[595844] = clik.newPhoto({"id":595844,"src":"market girl_thumb.jpg","galleries_id":45532,"server_id":15,"link":"photo_595844.html","width":130,"caption":"Market girl, Lalibela","height":194});
															thumbnails[6352350] = clik.newPhoto({"id":6352350,"src":"uluru_sunrise_and_trees_thumb.jpg","galleries_id":351876,"server_id":15,"link":"photo_6352350.html","width":130,"caption":"Uluru in morning the  light","height":87});
															thumbnails[6990090] = clik.newPhoto({"id":6990090,"src":"s_sun_rise_over_tor_thumb.jpg","galleries_id":378787,"server_id":15,"link":"photo_6990090.html","width":130,"caption":"Glastonbury Tor sunrise","height":87});
															thumbnails[8480571] = clik.newPhoto({"id":8480571,"src":"jokhang_monk_foreground_thumb.jpg","galleries_id":278674,"server_id":15,"link":"photo_8480571.html","width":160,"caption":"Jokhang Temple and Barkhor Square","height":107});
															thumbnails[8688031] = clik.newPhoto({"id":8688031,"src":"Autumn_trees_reflection_thumb.jpg","galleries_id":458483,"server_id":15,"link":"photo_8688031.html","width":160,"caption":"Autumn trees reflection","height":240});
															thumbnails[1629980] = clik.newPhoto({"id":1629980,"src":"Tsemy men with umbrella_thumb.jpg","galleries_id":45532,"server_id":15,"link":"photo_1629980.html","width":130,"caption":"Tsemy men with umbrella,Key Afar","height":87});
															thumbnails[1629911] = clik.newPhoto({"id":1629911,"src":"karo woman and baby_thumb.jpg","galleries_id":45532,"server_id":15,"link":"photo_1629911.html","width":130,"caption":"Karo woman with child, Omo valley","height":87});
															thumbnails[1630019] = clik.newPhoto({"id":1630019,"src":"face paint_thumb.jpg","galleries_id":45532,"server_id":15,"link":"photo_1630019.html","width":130,"caption":"Hamer man having his face painted","height":87});
															thumbnails[1630022] = clik.newPhoto({"id":1630022,"src":"hamer woman face paint_thumb.jpg","galleries_id":45532,"server_id":15,"link":"photo_1630022.html","width":130,"caption":"Hamer woman","height":87});
															thumbnails[1630024] = clik.newPhoto({"id":1630024,"src":"mursi woman leather headress_thumb.jpg","galleries_id":45532,"server_id":15,"link":"photo_1630024.html","width":130,"caption":"Mursi woman with traditional head dress","height":87});
															thumbnails[1630464] = clik.newPhoto({"id":1630464,"src":"misty prurbek dawn_thumb.jpg","galleries_id":1133,"server_id":15,"link":"photo_1630464.html","width":130,"caption":"Misty dawn over the Isle of Purbeck","height":84});
															thumbnails[282738] = clik.newPhoto({"id":282738,"src":"krysuvik seltun steam vents_thumb.jpg","galleries_id":1151,"server_id":15,"link":"photo_282738.html","width":130,"caption":"Steam vents Iceland","height":84});
															thumbnails[344134] = clik.newPhoto({"id":344134,"src":"saguaro cactus_thumb.jpg","galleries_id":25012,"server_id":15,"link":"photo_344134.html","width":130,"caption":"Saguaro cactus Arizona","height":85});
															thumbnails[1629916] = clik.newPhoto({"id":1629916,"src":"mursi woman lip plate_thumb.jpg","galleries_id":45532,"server_id":15,"link":"photo_1629916.html","width":130,"caption":"Mursi woman, Omo valley","height":194});
															thumbnails[5374727] = clik.newPhoto({"id":5374727,"src":"old_boat_on_city_mill_river_340FDE4D-2219-B5B5-4C25EC2D55883CA1_thumb.jpg","galleries_id":1133,"server_id":15,"link":"photo_5374727.html","width":130,"caption":"City Mill River Stratford","height":87});
															thumbnails[6352390] = clik.newPhoto({"id":6352390,"src":"olgas_sunset_thumb.jpg","galleries_id":351876,"server_id":15,"link":"photo_6352390.html","width":130,"caption":"The Olgas at sunset","height":87});
															thumbnails[6990098] = clik.newPhoto({"id":6990098,"src":"s_river_brue_morning_mist_thumb.jpg","galleries_id":378787,"server_id":15,"link":"photo_6990098.html","width":130,"caption":"River Brue morning mist","height":87});
															thumbnails[8480574] = clik.newPhoto({"id":8480574,"src":"jokhang_old_woman_praying_thumb.jpg","galleries_id":278674,"server_id":15,"link":"photo_8480574.html","width":160,"caption":"Pilgrim praying Jokhang Temple","height":240});
															thumbnails[8688032] = clik.newPhoto({"id":8688032,"src":"maple_leaf_2_thumb.jpg","galleries_id":458483,"server_id":15,"link":"photo_8688032.html","width":160,"caption":"Maple Leaf","height":107});
															thumbnails[7526] = clik.newPhoto({"id":7526,"src":"san quirico d'orcia basillica mist_thumb.jpg","galleries_id":1151,"server_id":15,"link":"photo_7526.html","width":130,"caption":"San Quirico d'Orcia in the mist, Italy","height":199});
															thumbnails[7524] = clik.newPhoto({"id":7524,"src":"san quirico d'orcia basillica dawn mist_thumb.jpg","galleries_id":1151,"server_id":15,"link":"photo_7524.html","width":130,"caption":"San Quirico d'Orcia dawn, Italy","height":85});
															thumbnails[6690316] = clik.newPhoto({"id":6690316,"src":"olgas_pink_dawn_thumb.jpg","galleries_id":351876,"server_id":15,"link":"photo_6690316.html","width":130,"caption":"The Olgas dawn","height":87});
															thumbnails[282739] = clik.newPhoto({"id":282739,"src":"lost world_thumb.jpg","galleries_id":1151,"server_id":15,"link":"photo_282739.html","width":130,"caption":"Lost World, Tikal, Guatemala","height":82});
															thumbnails[380824] = clik.newPhoto({"id":380824,"src":"antelope canyon_thumb.jpg","galleries_id":25012,"server_id":15,"link":"photo_380824.html","width":130,"caption":"Antelope Canyon, Page, Arizona","height":198});
															thumbnails[1629958] = clik.newPhoto({"id":1629958,"src":"dorze boy_thumb.jpg","galleries_id":45532,"server_id":15,"link":"photo_1629958.html","width":130,"caption":"Dorze boy","height":194});
															thumbnails[4886344] = clik.newPhoto({"id":4886344,"src":"carreg_cennan_from_the_south_thumb.jpg","galleries_id":1133,"server_id":15,"link":"photo_4886344.html","width":130,"caption":"Carreg Cennan castle Wales","height":87});
															thumbnails[6352391] = clik.newPhoto({"id":6352391,"src":"olgas_gorge_walls_thumb.jpg","galleries_id":351876,"server_id":15,"link":"photo_6352391.html","width":130,"caption":"The Olgas gorge walls","height":87});
															thumbnails[6990103] = clik.newPhoto({"id":6990103,"src":"s_faintly_through_the_morning_mist_thumb.jpg","galleries_id":378787,"server_id":15,"link":"photo_6990103.html","width":130,"caption":"The Tor through the morning mists","height":87});
															thumbnails[8480600] = clik.newPhoto({"id":8480600,"src":"dharma_wheel_thumb.jpg","galleries_id":278674,"server_id":15,"link":"photo_8480600.html","width":160,"caption":"Dharma Wheel","height":107});
															thumbnails[8688036] = clik.newPhoto({"id":8688036,"src":"maple_leaf_thumb.jpg","galleries_id":458483,"server_id":15,"link":"photo_8688036.html","width":160,"caption":"Maple Leaf 2","height":107});
															thumbnails[1630002] = clik.newPhoto({"id":1630002,"src":"Banna lady_thumb.jpg","galleries_id":45532,"server_id":15,"link":"photo_1630002.html","width":130,"caption":"Banna woman","height":194});
															thumbnails[1630003] = clik.newPhoto({"id":1630003,"src":"erbore boy_thumb.jpg","galleries_id":45532,"server_id":15,"link":"photo_1630003.html","width":130,"caption":"Erbore boy","height":194});
															thumbnails[1630004] = clik.newPhoto({"id":1630004,"src":"horned mursi woman and child_thumb.jpg","galleries_id":45532,"server_id":15,"link":"photo_1630004.html","width":130,"caption":"Mursi woman and child","height":194});
															thumbnails[600502] = clik.newPhoto({"id":600502,"src":"yellow nun_thumb.jpg","galleries_id":45532,"server_id":15,"link":"photo_600502.html","width":130,"caption":"Nun, Lalibela","height":87});
															thumbnails[7520] = clik.newPhoto({"id":7520,"src":"dali elephant and big ben_thumb.jpg","galleries_id":1133,"server_id":15,"link":"photo_7520.html","width":130,"caption":"Dali's Elephant, London South Bank","height":199});
															thumbnails[380823] = clik.newPhoto({"id":380823,"src":"Yavapai point_thumb.jpg","galleries_id":25012,"server_id":15,"link":"photo_380823.html","width":130,"caption":"Yavapai point, Grand Canyon, Arizona","height":201});
															thumbnails[592151] = clik.newPhoto({"id":592151,"src":"Simien kids_thumb.jpg","galleries_id":45532,"server_id":15,"link":"photo_592151.html","width":130,"caption":"Children of the Simien mountains","height":89});
															thumbnails[6990109] = clik.newPhoto({"id":6990109,"src":"s_levels_mist_r_brue_reeds_gate_thumb.jpg","galleries_id":378787,"server_id":15,"link":"photo_6990109.html","width":130,"caption":"Mists around the river Brue near Meare","height":87});
															thumbnails[8480601] = clik.newPhoto({"id":8480601,"src":"Sera_monks_thumb.jpg","galleries_id":278674,"server_id":15,"link":"photo_8480601.html","width":160,"caption":"Sera Monks","height":107});
															thumbnails[8691691] = clik.newPhoto({"id":8691691,"src":"ornamental_grass_thumb.jpg","galleries_id":458483,"server_id":15,"link":"photo_8691691.html","width":160,"caption":"Ornamental grass","height":107});
															thumbnails[592150] = clik.newPhoto({"id":592150,"src":"farmer_thumb.jpg","galleries_id":45532,"server_id":15,"link":"photo_592150.html","width":130,"caption":"Farmer, Debark","height":87});
															thumbnails[1629975] = clik.newPhoto({"id":1629975,"src":"stilt boys_thumb.jpg","galleries_id":45532,"server_id":15,"link":"photo_1629975.html","width":130,"caption":"Stilt boys, Tsemy tribe","height":87});
															thumbnails[1630469] = clik.newPhoto({"id":1630469,"src":"sunlight and gorse_thumb.jpg","galleries_id":1133,"server_id":15,"link":"photo_1630469.html","width":130,"caption":"Corfe Castle","height":87});
															thumbnails[592154] = clik.newPhoto({"id":592154,"src":"priest in shadow_thumb.jpg","galleries_id":45532,"server_id":15,"link":"photo_592154.html","width":130,"caption":"Priest, Lalibela","height":87});
															thumbnails[5374779] = clik.newPhoto({"id":5374779,"src":"light_past_the_tree_thumb.jpg","galleries_id":1133,"server_id":15,"link":"photo_5374779.html","width":130,"caption":"Tree. Peckham Rye","height":196});
															thumbnails[6352393] = clik.newPhoto({"id":6352393,"src":"walpa_gorge_thumb.jpg","galleries_id":351876,"server_id":15,"link":"photo_6352393.html","width":130,"caption":"Walpa Gorge","height":194});
															thumbnails[6990117] = clik.newPhoto({"id":6990117,"src":"s_levels_evening_sky_thumb.jpg","galleries_id":378787,"server_id":15,"link":"photo_6990117.html","width":130,"caption":"Evening sky over the Levels","height":87});
															thumbnails[8641797] = clik.newPhoto({"id":8641797,"src":"prayer_flags_on_pole_thumb.jpg","galleries_id":278674,"server_id":15,"link":"photo_8641797.html","width":160,"caption":"Prayer Flags","height":107});
															thumbnails[595906] = clik.newPhoto({"id":595906,"src":"Rannerdale_thumb.jpg","galleries_id":1133,"server_id":15,"link":"photo_595906.html","width":130,"caption":"Rannerdale, Lake district","height":90});
															thumbnails[5374872] = clik.newPhoto({"id":5374872,"src":"laughing_hamer_girls_thumb.jpg","galleries_id":45532,"server_id":15,"link":"photo_5374872.html","width":130,"caption":"Hamer girls","height":194});
															thumbnails[5374874] = clik.newPhoto({"id":5374874,"src":"coffee_ceremony_thumb.jpg","galleries_id":45532,"server_id":15,"link":"photo_5374874.html","width":130,"caption":"Coffee ceremony","height":194});
															thumbnails[6352395] = clik.newPhoto({"id":6352395,"src":"uluru_sunrise_red_sky_portrait_thumb.jpg","galleries_id":351876,"server_id":15,"link":"photo_6352395.html","width":130,"caption":"Uluru pink clouds at sunrise","height":194});
															thumbnails[6990121] = clik.newPhoto({"id":6990121,"src":"s_levels_mist_thistles_r_brue_thumb.jpg","galleries_id":378787,"server_id":15,"link":"photo_6990121.html","width":130,"caption":"River Brue","height":87});
															thumbnails[8641802] = clik.newPhoto({"id":8641802,"src":"samye_chorten_thumb.jpg","galleries_id":278674,"server_id":15,"link":"photo_8641802.html","width":160,"caption":"Chorten Samye monastery","height":107});
															thumbnails[8688009] = clik.newPhoto({"id":8688009,"src":"Gutter_Tor_thumb.jpg","galleries_id":1133,"server_id":15,"link":"photo_8688009.html","width":160,"caption":"Dartmoor","height":107});
															thumbnails[5374877] = clik.newPhoto({"id":5374877,"src":"bull_jump_thumb.jpg","galleries_id":45532,"server_id":15,"link":"photo_5374877.html","width":130,"caption":"Jumping of the bulls ceremony Hamer lands","height":92});
															thumbnails[6690332] = clik.newPhoto({"id":6690332,"src":"black_breasted_buzzard__thumb.jpg","galleries_id":351876,"server_id":15,"link":"photo_6690332.html","width":130,"caption":"Black Breasted Buzzard","height":195});
															thumbnails[6352397] = clik.newPhoto({"id":6352397,"src":"bush_sunset_thumb.jpg","galleries_id":351876,"server_id":15,"link":"photo_6352397.html","width":130,"caption":"Sunset over the bush","height":87});
															thumbnails[6990123] = clik.newPhoto({"id":6990123,"src":"s_moorlynch_church_sunset_thumb.jpg","galleries_id":378787,"server_id":15,"link":"photo_6990123.html","width":130,"caption":"Moorlynch church","height":87});
															thumbnails[8641837] = clik.newPhoto({"id":8641837,"src":"tower_and_prayer_flags_thumb.jpg","galleries_id":278674,"server_id":15,"link":"photo_8641837.html","width":160,"caption":"Yumbulagang","height":107});
															thumbnails[6352398] = clik.newPhoto({"id":6352398,"src":"kings_canyon_lost_city_and_gum_thumb.jpg","galleries_id":351876,"server_id":15,"link":"photo_6352398.html","width":130,"caption":"Ghost Gum Kings Canyon","height":87});
															thumbnails[8687991] = clik.newPhoto({"id":8687991,"src":"namsto_skull_thumb.jpg","galleries_id":278674,"server_id":15,"link":"photo_8687991.html","width":160,"caption":"Namsto Lake","height":107});
															thumbnails[8687993] = clik.newPhoto({"id":8687993,"src":"3_chortens_reting_thumb.jpg","galleries_id":278674,"server_id":15,"link":"photo_8687993.html","width":160,"caption":"3 Chortens Reting monastery","height":107});
															thumbnails[8687996] = clik.newPhoto({"id":8687996,"src":"2_chortens_reting_thumb.jpg","galleries_id":278674,"server_id":15,"link":"photo_8687996.html","width":160,"caption":"2 Chortens Reting monastery","height":239});
															thumbnails[8687997] = clik.newPhoto({"id":8687997,"src":"nomad_woman_and_child_thumb.jpg","galleries_id":278674,"server_id":15,"link":"photo_8687997.html","width":160,"caption":"Nomad woman and child","height":107});
															thumbnails[7678] = clik.newPhoto({"id":7678,"src":"girl on the beach_thumb.jpg","galleries_id":351876,"server_id":15,"link":"photo_7678.html","width":130,"caption":"Fraser Island","height":199});
															thumbnails[8688000] = clik.newPhoto({"id":8688000,"src":"man_takes_photo_thumb.jpg","galleries_id":278674,"server_id":15,"link":"photo_8688000.html","width":160,"caption":"Man takes photo","height":107});
															thumbnails[6377659] = clik.newPhoto({"id":6377659,"src":"sugar_cane_thumb.jpg","galleries_id":351876,"server_id":15,"link":"photo_6377659.html","width":130,"caption":"Sugar Cane field Queensland","height":87});
															thumbnails[8688003] = clik.newPhoto({"id":8688003,"src":"Ganden_climbing_steps_thumb.jpg","galleries_id":278674,"server_id":15,"link":"photo_8688003.html","width":160,"caption":"Ganden monastery","height":239});
															thumbnails[6377668] = clik.newPhoto({"id":6377668,"src":"cape_trib_beach_thumb.jpg","galleries_id":351876,"server_id":15,"link":"photo_6377668.html","width":130,"caption":"Beach at Cape Tribulation","height":87});
															thumbnails[6707856] = clik.newPhoto({"id":6707856,"src":"sydney_opera_house_thumb.jpg","galleries_id":351876,"server_id":15,"link":"photo_6707856.html","width":130,"caption":"Sydney Opera House","height":87});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[458483] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Autumn Colour","link":"gallery_458483.html","maxRecords":0.0,"photoIDs":[8688025.0,8688027.0,8688028.0,8688031.0,8688032.0,8688036.0,8691691.0],"skipIndex":0,"section_code":"gallery","featured_images":8688036.0,"id":458483,"singleSection":false});				  						galleries[278674] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Tibet","link":"gallery_278674.html","maxRecords":0.0,"photoIDs":[8480541.0,8480563.0,8480565.0,8480571.0,8480574.0,8480600.0,8480601.0,8641797.0,8641802.0,8641837.0,8687991.0,8687993.0,8687996.0,8687997.0,8688000.0,8688003.0],"skipIndex":0,"section_code":"gallery","featured_images":8480541.0,"id":278674,"singleSection":false});				  						galleries[378787] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Somerset Levels","link":"gallery_378787.html","maxRecords":0.0,"photoIDs":[6990063.0,6990025.0,6990075.0,6990090.0,6990098.0,6990103.0,6990109.0,6990117.0,6990121.0,6990123.0],"skipIndex":0,"section_code":"gallery","featured_images":6990063.0,"id":378787,"singleSection":false});				  						galleries[351876] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Australia","link":"gallery_351876.html","maxRecords":0.0,"photoIDs":[6352318.0,6352319.0,6352339.0,6352350.0,6352390.0,6690316.0,6352391.0,6352393.0,6352395.0,6690332.0,6352397.0,6352398.0,7678.0,6377659.0,6377668.0,6707856.0],"skipIndex":0,"section_code":"gallery","featured_images":6352350.0,"id":351876,"singleSection":false});				  						galleries[45532] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Faces of Ethiopia","link":"gallery_45532.html","maxRecords":0.0,"photoIDs":[595845.0,595846.0,595847.0,1629964.0,595844.0,1629980.0,1629911.0,1630019.0,1630022.0,1630024.0,1629916.0,1629958.0,1630002.0,1630003.0,1630004.0,600502.0,592151.0,592150.0,1629975.0,592154.0,5374872.0,5374874.0,5374877.0],"skipIndex":0,"section_code":"gallery","featured_images":592154.0,"id":45532,"singleSection":false});				  						galleries[1151] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Around The World","link":"gallery_1151.html","maxRecords":0.0,"photoIDs":[7677.0,9933.0,84472.0,84478.0,282738.0,7526.0,7524.0,282739.0],"skipIndex":0,"section_code":"gallery","featured_images":"84478,7677","id":1151,"singleSection":false});				  						galleries[25012] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"America","link":"gallery_25012.html","maxRecords":0.0,"photoIDs":[7521.0,7522.0,5374777.0,282740.0,380827.0,344134.0,380824.0,380823.0],"skipIndex":0,"section_code":"gallery","featured_images":7521.0,"id":25012,"singleSection":false});				  						galleries[1133] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Britain","link":"gallery_1133.html","maxRecords":0.0,"photoIDs":[7676.0,5374700.0,5374793.0,282802.0,1630464.0,5374727.0,4886344.0,7520.0,1630469.0,5374779.0,595906.0,8688009.0],"skipIndex":0,"section_code":"gallery","featured_images":"5374727,1630469","id":1133,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8480541,6990063,8688031,6352350,84478,8480600,8688009,8641802';
imageSets[2] = '8480541,6990063,7677,7521,6352350,84478,5374727,8688036,1630469,592154';
imageSets[3] = '282740,380827,1630464,344134,6690316,6990103,282739';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/chrislewington/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/chrislewington/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/chrislewington/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/chrislewington/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/chrislewington/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/chrislewington/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/chrislewington/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/chrislewington/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/chrislewington/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/chrislewington/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/chrislewington/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/chrislewington/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/chrislewington/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/chrislewington/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/chrislewington/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/chrislewington/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/chrislewington/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/chrislewington/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/chrislewington/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/chrislewington/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/chrislewington/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/chrislewington/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/chrislewington/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/chrislewington/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/chrislewington/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 = 'Chris Lewington 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>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp += '<p>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 += '<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="clewingt@brit.croydon.sch.uk">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="clewingt@brit.croydon.sch.uk">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

