window.thumbnails = {};
															thumbnails[7897951] = clik.newPhoto({"id":7897951,"src":"sbb7_s_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Staff Benda Bilili","height":86});
															thumbnails[5985231] = clik.newPhoto({"id":5985231,"src":"clik_pic__dolphin_jump_thumb.jpg","galleries_id":337271,"server_id":32,"link":"photo_5985231.html","width":130,"caption":"Bocas Del Toro, Panama","height":86});
															thumbnails[5985232] = clik.newPhoto({"id":5985232,"src":"clik_pic__frog_velvia_thumb.jpg","galleries_id":337271,"server_id":32,"link":"photo_5985232.html","width":130,"caption":"Isla Bastimentos, Panama","height":86});
															thumbnails[5985233] = clik.newPhoto({"id":5985233,"src":"clik_pic__geckoe_1_thumb.jpg","galleries_id":337271,"server_id":32,"link":"photo_5985233.html","width":130,"caption":"Andasibe National Park, Madagascar","height":86});
															thumbnails[5985244] = clik.newPhoto({"id":5985244,"src":"clik_pic__turtle1_thumb.jpg","galleries_id":337271,"server_id":32,"link":"photo_5985244.html","width":130,"caption":"Pedasi, Panama","height":86});
															thumbnails[5985246] = clik.newPhoto({"id":5985246,"src":"clik_pic_bamboo_thumb.jpg","galleries_id":337271,"server_id":32,"link":"photo_5985246.html","width":130,"caption":"Ranomafana, Madagascar","height":86});
															thumbnails[5991175] = clik.newPhoto({"id":5991175,"src":"clik_pic_akala_11g_thumb.jpg","galleries_id":337555,"server_id":32,"link":"photo_5991175.html","width":130,"caption":"Akala, London","height":86});
															thumbnails[5991177] = clik.newPhoto({"id":5991177,"src":"clik_pic_Akala_final_print_thumb.jpg","galleries_id":337555,"server_id":32,"link":"photo_5991177.html","width":130,"caption":"Akala, London","height":86});
															thumbnails[5991182] = clik.newPhoto({"id":5991182,"src":"clik_pic_akala_print_2_thumb.jpg","galleries_id":337555,"server_id":32,"link":"photo_5991182.html","width":130,"caption":"Akala, London","height":86});
															thumbnails[5991186] = clik.newPhoto({"id":5991186,"src":"clik_pic_sp_5_thumb.jpg","galleries_id":337555,"server_id":32,"link":"photo_5991186.html","width":130,"caption":"Soil & ","height":86});
															thumbnails[5991190] = clik.newPhoto({"id":5991190,"src":"clik_pic_sp4_thumb.jpg","galleries_id":337555,"server_id":32,"link":"photo_5991190.html","width":130,"caption":"Soil & ","height":86});
															thumbnails[6024763] = clik.newPhoto({"id":6024763,"src":"clik_6_puffin_1_s_thumb.jpg","galleries_id":337271,"server_id":32,"link":"photo_6024763.html","width":86,"caption":"Farne Islands, England","height":130});
															thumbnails[6024779] = clik.newPhoto({"id":6024779,"src":"puffin_closeup_s_thumb.jpg","galleries_id":337271,"server_id":32,"link":"photo_6024779.html","width":130,"caption":"Skomer, Wales","height":86});
															thumbnails[6029907] = clik.newPhoto({"id":6029907,"src":"clik_pic_baby_dolphin_and_mother_thumb.jpg","galleries_id":337271,"server_id":32,"link":"photo_6029907.html","width":130,"caption":"Inverness, Scotland","height":130});
															thumbnails[6039176] = clik.newPhoto({"id":6039176,"src":"clik_pic_frog_copy_provia_thumb.jpg","galleries_id":337271,"server_id":32,"link":"photo_6039176.html","width":130,"caption":"Isla Bastimentos, Panama","height":86});
															thumbnails[6039179] = clik.newPhoto({"id":6039179,"src":"clik_pic_russian_concert_008_thumb.jpg","galleries_id":337555,"server_id":32,"link":"photo_6039179.html","width":130,"caption":"Russian Winter Festival, London","height":86});
															thumbnails[6041670] = clik.newPhoto({"id":6041670,"src":"clik_lovefoxxx_16__thumb.jpg","galleries_id":337555,"server_id":32,"link":"photo_6041670.html","width":86,"caption":"CSS, London","height":130});
															thumbnails[6041672] = clik.newPhoto({"id":6041672,"src":"clik__lovefoxxx_2_s__thumb.jpg","galleries_id":337555,"server_id":32,"link":"photo_6041672.html","width":130,"caption":"CSS, London","height":130});
															thumbnails[6041677] = clik.newPhoto({"id":6041677,"src":"cclik__hameleon_thumb.jpg","galleries_id":337271,"server_id":32,"link":"photo_6041677.html","width":86,"caption":"Madagascar","height":130});
															thumbnails[6041680] = clik.newPhoto({"id":6041680,"src":"clik__breach_beginning_3_copy_thumb.jpg","galleries_id":337271,"server_id":32,"link":"photo_6041680.html","width":85,"caption":"Ile Sainte Marie, Madagascar","height":130});
															thumbnails[6041681] = clik.newPhoto({"id":6041681,"src":"clik__tasier_1_s_thumb.jpg","galleries_id":337271,"server_id":32,"link":"photo_6041681.html","width":130,"caption":"Tangkoko, Indonesia","height":86});
															thumbnails[6041682] = clik.newPhoto({"id":6041682,"src":"clik__tarsier_2_s_thumb.jpg","galleries_id":337271,"server_id":32,"link":"photo_6041682.html","width":86,"caption":"Tangkoko, Indonesia","height":130});
															thumbnails[7796377] = clik.newPhoto({"id":7796377,"src":"spinning_kids_s_thumb.jpg","galleries_id":337020,"server_id":32,"link":"photo_7796377.html","width":130,"caption":"Harar, Ethiopia","height":86});
															thumbnails[7796378] = clik.newPhoto({"id":7796378,"src":"wall_women_2_s_thumb.jpg","galleries_id":337020,"server_id":32,"link":"photo_7796378.html","width":130,"caption":"Harar, Ethiopia","height":86});
															thumbnails[7796379] = clik.newPhoto({"id":7796379,"src":"slum_kids_adj_in_raw_agfa_RSX_s_thumb.jpg","galleries_id":337020,"server_id":32,"link":"photo_7796379.html","width":130,"caption":"Dire Dawa, Ethiopia","height":86});
															thumbnails[7796381] = clik.newPhoto({"id":7796381,"src":"slum_kid_adj_agfa_s_thumb.jpg","galleries_id":337020,"server_id":32,"link":"photo_7796381.html","width":130,"caption":"Dire Dawa, Ethiopia","height":86});
															thumbnails[7796387] = clik.newPhoto({"id":7796387,"src":"new_puffin_best_s_thumb.jpg","galleries_id":337271,"server_id":32,"link":"photo_7796387.html","width":130,"caption":"Farne Islands, UK","height":130});
															thumbnails[7796389] = clik.newPhoto({"id":7796389,"src":"turtle_1_s_thumb.jpg","galleries_id":337271,"server_id":32,"link":"photo_7796389.html","width":130,"caption":"Derawan, Indonesia","height":86});
															thumbnails[7796394] = clik.newPhoto({"id":7796394,"src":"rhino_side_s_thumb.jpg","galleries_id":337271,"server_id":32,"link":"photo_7796394.html","width":130,"caption":"Chitwan, Nepal","height":86});
															thumbnails[7796397] = clik.newPhoto({"id":7796397,"src":"rhino_grass_s_thumb.jpg","galleries_id":337271,"server_id":32,"link":"photo_7796397.html","width":130,"caption":"Chitwan, Nepal","height":86});
															thumbnails[7796431] = clik.newPhoto({"id":7796431,"src":"train_hdr_1_s_thumb.jpg","galleries_id":337020,"server_id":32,"link":"photo_7796431.html","width":130,"caption":"Septemvri, Bulgaria","height":86});
															thumbnails[7796434] = clik.newPhoto({"id":7796434,"src":"yellow_wall_women_s_thumb.jpg","galleries_id":337020,"server_id":32,"link":"photo_7796434.html","width":130,"caption":"","height":86});
															thumbnails[7796436] = clik.newPhoto({"id":7796436,"src":"harar_hdr_s_copy_thumb.jpg","galleries_id":337020,"server_id":32,"link":"photo_7796436.html","width":130,"caption":"Harar, Ethiopia","height":86});
															thumbnails[7796437] = clik.newPhoto({"id":7796437,"src":"wall_women_goat_s_2_thumb.jpg","galleries_id":337020,"server_id":32,"link":"photo_7796437.html","width":130,"caption":"Harar, Ethiopia","height":86});
															thumbnails[7796441] = clik.newPhoto({"id":7796441,"src":"hyena_man_1_s_thumb.jpg","galleries_id":337020,"server_id":32,"link":"photo_7796441.html","width":130,"caption":"Harar, Ethiopia","height":86});
															thumbnails[7897950] = clik.newPhoto({"id":7897950,"src":"sbb9_s_thumb.jpg","galleries_id":337555,"server_id":32,"link":"photo_7897950.html","width":130,"caption":"","height":86});
															thumbnails[7897952] = clik.newPhoto({"id":7897952,"src":"sbb_3_S_thumb.jpg","galleries_id":337555,"server_id":32,"link":"photo_7897952.html","width":130,"caption":"","height":86});
															thumbnails[5979652] = clik.newPhoto({"id":5979652,"src":"clik_pic_train_hdr_thumb.jpg","galleries_id":337020,"server_id":32,"link":"photo_5979652.html","width":130,"caption":"Bosnia & Hercegovina","height":86});
															thumbnails[5979653] = clik.newPhoto({"id":5979653,"src":"clik_pic_Turkey_cap_5_thumb.jpg","galleries_id":337020,"server_id":32,"link":"photo_5979653.html","width":130,"caption":"Capadocia, Turkey","height":86});
															thumbnails[5985177] = clik.newPhoto({"id":5985177,"src":"clik_pic__Protest2_thumb.jpg","galleries_id":337263,"server_id":32,"link":"photo_5985177.html","width":130,"caption":"London, England","height":86});
															thumbnails[5985206] = clik.newPhoto({"id":5985206,"src":"clik_pic__antigua_reflection_thumb.jpg","galleries_id":337020,"server_id":32,"link":"photo_5985206.html","width":130,"caption":"Antigua, Guatemala","height":86});
															thumbnails[5985234] = clik.newPhoto({"id":5985234,"src":"clik_pic__graffiti_men_print_thumb.jpg","galleries_id":337021,"server_id":32,"link":"photo_5985234.html","width":130,"caption":"Bogota, Colombia","height":86});
															thumbnails[6029912] = clik.newPhoto({"id":6029912,"src":"clik_pic_havana_skyline_fuji_sensia__thumb.jpg","galleries_id":337088,"server_id":32,"link":"photo_6029912.html","width":130,"caption":"Havana, Cuba","height":86});
															thumbnails[6029909] = clik.newPhoto({"id":6029909,"src":"clik_pic_bearded_dude_velvia_50_thumb.jpg","galleries_id":337088,"server_id":32,"link":"photo_6029909.html","width":86,"caption":"Havana, Cuba","height":130});
															thumbnails[5979636] = clik.newPhoto({"id":5979636,"src":"clik_pic__car_blur_kodak_pushed_2_thumb.jpg","galleries_id":337088,"server_id":32,"link":"photo_5979636.html","width":130,"caption":"Havana, Cuba","height":86});
															thumbnails[5985097] = clik.newPhoto({"id":5985097,"src":"clik_pic_madagascar_boys_comp_thumb.jpg","galleries_id":337020,"server_id":32,"link":"photo_5985097.html","width":130,"caption":"Ambavalao, Madagascar","height":86});
															thumbnails[5985169] = clik.newPhoto({"id":5985169,"src":"clik_pic_Scandrett_dcmag_thumb.jpg","galleries_id":337263,"server_id":32,"link":"photo_5985169.html","width":130,"caption":"Bogota, Colombia","height":86});
															thumbnails[6015192] = clik.newPhoto({"id":6015192,"src":"3_clik_allende_thumb.jpg","galleries_id":337021,"server_id":32,"link":"photo_6015192.html","width":130,"caption":"Valparaiso, Chile","height":86});
															thumbnails[6013758] = clik.newPhoto({"id":6013758,"src":"clik_pic_bob_thumb.jpg","galleries_id":337021,"server_id":32,"link":"photo_6013758.html","width":86,"caption":"Bogota, Colombia","height":130});
															thumbnails[5985926] = clik.newPhoto({"id":5985926,"src":"clik_pic_Matt_Scandrett_G20_thumb.jpg","galleries_id":337263,"server_id":32,"link":"photo_5985926.html","width":130,"caption":"London, England","height":86});
															thumbnails[6039966] = clik.newPhoto({"id":6039966,"src":"clik_cuba_parked_cars__2_thumb.jpg","galleries_id":337088,"server_id":32,"link":"photo_6039966.html","width":130,"caption":"Havana, Cuba","height":86});
															thumbnails[6041249] = clik.newPhoto({"id":6041249,"src":"clik_ronald_freddy_thumb.jpg","galleries_id":337021,"server_id":32,"link":"photo_6041249.html","width":109,"caption":"Bogota, Colombia","height":130});
															thumbnails[5985239] = clik.newPhoto({"id":5985239,"src":"clik_pic__madagascar_print_thumb.jpg","galleries_id":337020,"server_id":32,"link":"photo_5985239.html","width":130,"caption":"Antsirable, Madagascar","height":86});
															thumbnails[5985237] = clik.newPhoto({"id":5985237,"src":"clik_pic__Madagascar_little_girl_thumb.jpg","galleries_id":337020,"server_id":32,"link":"photo_5985237.html","width":130,"caption":"Andasibe, Madagascar","height":86});
															thumbnails[6013751] = clik.newPhoto({"id":6013751,"src":"cli_pic_cuba_capitilito_hdr_FINAL_thumb.jpg","galleries_id":337088,"server_id":32,"link":"photo_6013751.html","width":86,"caption":"Havana, Cuba","height":130});
															thumbnails[6039024] = clik.newPhoto({"id":6039024,"src":"clik_pic_praha_beijing12_thumb.jpg","galleries_id":337021,"server_id":32,"link":"photo_6039024.html","width":86,"caption":"Prague, Czech Republic","height":130});
															thumbnails[6074384] = clik.newPhoto({"id":6074384,"src":"clik_pik_loas_boys_colour_thumb.jpg","galleries_id":337020,"server_id":32,"link":"photo_6074384.html","width":130,"caption":"Vientiane, Laos","height":130});
															thumbnails[6092044] = clik.newPhoto({"id":6092044,"src":"clik_pic_Argentina_Che_s_thumb.jpg","galleries_id":337021,"server_id":32,"link":"photo_6092044.html","width":86,"caption":"Buenos Aires, Argentina","height":130});
															thumbnails[5988129] = clik.newPhoto({"id":5988129,"src":"clik_pic_malecon_hdr_thumb.jpg","galleries_id":337088,"server_id":32,"link":"photo_5988129.html","width":130,"caption":"Havana, Cuba","height":86});
															thumbnails[6013762] = clik.newPhoto({"id":6013762,"src":"clik_pic_crap_thumb.jpg","galleries_id":337021,"server_id":32,"link":"photo_6013762.html","width":130,"caption":"Zagreb, Croatia","height":86});
															thumbnails[6029914] = clik.newPhoto({"id":6029914,"src":"clik_pic_malecon_jumping_ilf_del_32001_thumb.jpg","galleries_id":337088,"server_id":32,"link":"photo_6029914.html","width":130,"caption":"Havana, Cuba","height":86});
															thumbnails[6014056] = clik.newPhoto({"id":6014056,"src":"1_clik_guate_dog_thumb.jpg","galleries_id":337020,"server_id":32,"link":"photo_6014056.html","width":86,"caption":"Antigua, Guatemla","height":130});
															thumbnails[6013754] = clik.newPhoto({"id":6013754,"src":"clic_pic_boxer_cropped_colour_film_yellow_for_comp_thumb.jpg","galleries_id":337088,"server_id":32,"link":"photo_6013754.html","width":130,"caption":"Havana, Cuba","height":130});
															thumbnails[6014075] = clik.newPhoto({"id":6014075,"src":"1_clik_tibet_dumplings_thumb.jpg","galleries_id":337020,"server_id":32,"link":"photo_6014075.html","width":86,"caption":"Lhasa, Tibet","height":130});
															thumbnails[5979654] = clik.newPhoto({"id":5979654,"src":"clik_pic_madagascar_landscape_2_thumb.jpg","galleries_id":337020,"server_id":32,"link":"photo_5979654.html","width":130,"caption":"Ambavalao, Madagascar","height":86});
															thumbnails[6029910] = clik.newPhoto({"id":6029910,"src":"clik_pic_boxer_1_thumb.jpg","galleries_id":337088,"server_id":32,"link":"photo_6029910.html","width":86,"caption":"Havana, Cuba","height":130});
															thumbnails[6031212] = clik.newPhoto({"id":6031212,"src":"clik_pic_brazil_-_fight_for_your_rights_thumb.jpg","galleries_id":337021,"server_id":32,"link":"photo_6031212.html","width":130,"caption":"Salvador, Brazil","height":86});
															thumbnails[6039025] = clik.newPhoto({"id":6039025,"src":"clik_pic_resister_much_m_1_thumb.jpg","galleries_id":337021,"server_id":32,"link":"photo_6039025.html","width":130,"caption":"Lille, France","height":86});
															thumbnails[5979656] = clik.newPhoto({"id":5979656,"src":"clik_pic_Turkey_1_2007_098_thumb.jpg","galleries_id":337020,"server_id":32,"link":"photo_5979656.html","width":130,"caption":"Uchisar, Turkey","height":86});
															thumbnails[6015197] = clik.newPhoto({"id":6015197,"src":"3_clik_argentina_mendoza_thumb.jpg","galleries_id":337021,"server_id":32,"link":"photo_6015197.html","width":130,"caption":"Mendoza, Argentina","height":86});
															thumbnails[6039937] = clik.newPhoto({"id":6039937,"src":"clik_cuba_boxer_resting_1_1600__thumb.jpg","galleries_id":337088,"server_id":32,"link":"photo_6039937.html","width":86,"caption":"Havana, Cuba","height":130});
															thumbnails[5979655] = clik.newPhoto({"id":5979655,"src":"clik_pic_new_tikal__hdr_thumb.jpg","galleries_id":337020,"server_id":32,"link":"photo_5979655.html","width":130,"caption":"Tikal, Guatemala","height":86});
															thumbnails[6029908] = clik.newPhoto({"id":6029908,"src":"clik_pic_basebakk_boy_thumb.jpg","galleries_id":337088,"server_id":32,"link":"photo_6029908.html","width":86,"caption":"Havana, Cuba","height":130});
															thumbnails[6013756] = clik.newPhoto({"id":6013756,"src":"clik_pic_baseball_yoot_gaf_500_warm_not_sharpened1_thumb.jpg","galleries_id":337088,"server_id":32,"link":"photo_6013756.html","width":86,"caption":"Havana, Cuba","height":130});
															thumbnails[6039183] = clik.newPhoto({"id":6039183,"src":"clik_pic_praha_ipod_thumb.jpg","galleries_id":337021,"server_id":32,"link":"photo_6039183.html","width":86,"caption":"Prague, Czech Republic","height":130});
															thumbnails[5979638] = clik.newPhoto({"id":5979638,"src":"clik_pic_ciudad_habana_fuji_velvia_50_thumb.jpg","galleries_id":337088,"server_id":32,"link":"photo_5979638.html","width":130,"caption":"Havana, Cuba","height":86});
															thumbnails[5986371] = clik.newPhoto({"id":5986371,"src":"clik_pic__favela_b-w_thumb.jpg","galleries_id":337020,"server_id":32,"link":"photo_5986371.html","width":130,"caption":"Salvador, Brazil","height":86});
															thumbnails[6021360] = clik.newPhoto({"id":6021360,"src":"4_clik_old_dude_cienfuego_thumb.jpg","galleries_id":337088,"server_id":32,"link":"photo_6021360.html","width":130,"caption":"Cienfuegos, Cuba","height":130});
															thumbnails[5986384] = clik.newPhoto({"id":5986384,"src":"clik_pic_valparaiso_3_thumb.jpg","galleries_id":337020,"server_id":32,"link":"photo_5986384.html","width":130,"caption":"Valparaiso, Chile","height":86});
															thumbnails[6021343] = clik.newPhoto({"id":6021343,"src":"4_clik_cuba_thumbs_up_thumb.jpg","galleries_id":337088,"server_id":32,"link":"photo_6021343.html","width":130,"caption":"Havana, Cuba","height":130});
															thumbnails[6039186] = clik.newPhoto({"id":6039186,"src":"clik_pic_Tibet_lhasa1_WM_thumb.jpg","galleries_id":337020,"server_id":32,"link":"photo_6039186.html","width":130,"caption":"Lhasa, Tibet","height":86});
															thumbnails[5985243] = clik.newPhoto({"id":5985243,"src":"clik_pic__tibet_palace_thumb.jpg","galleries_id":337020,"server_id":32,"link":"photo_5985243.html","width":130,"caption":"Lhasa, Tibet","height":86});
															thumbnails[6013688] = clik.newPhoto({"id":6013688,"src":"clik_pic_Matt_Scandrett12_thumb.jpg","galleries_id":337088,"server_id":32,"link":"photo_6013688.html","width":86,"caption":"Trinidad, Cuba","height":130});
															thumbnails[6039961] = clik.newPhoto({"id":6039961,"src":"clik_cuba_first_old_dude_1600_thumb.jpg","galleries_id":337088,"server_id":32,"link":"photo_6039961.html","width":86,"caption":"Havana, Cuba","height":130});
															thumbnails[5979635] = clik.newPhoto({"id":5979635,"src":"clik_pic__baseball_boys1_thumb.jpg","galleries_id":337088,"server_id":32,"link":"photo_5979635.html","width":130,"caption":"Havana, Cuba","height":86});
															thumbnails[5985235] = clik.newPhoto({"id":5985235,"src":"clik_pic__lhasa_blur_thumb.jpg","galleries_id":337020,"server_id":32,"link":"photo_5985235.html","width":130,"caption":"Lhasa, Tibet","height":86});
															thumbnails[5985211] = clik.newPhoto({"id":5985211,"src":"clik_pic__Beijing_Hutong_thumb.jpg","galleries_id":337020,"server_id":32,"link":"photo_5985211.html","width":130,"caption":"Beijing, China","height":86});
															thumbnails[5985207] = clik.newPhoto({"id":5985207,"src":"clik_pic__aos_buddhas_WM_thumb.jpg","galleries_id":337020,"server_id":32,"link":"photo_5985207.html","width":130,"caption":"Vientiane, Laos","height":86});
															thumbnails[6039938] = clik.newPhoto({"id":6039938,"src":"clik_cuba_cars_thumb.jpg","galleries_id":337088,"server_id":32,"link":"photo_6039938.html","width":130,"caption":"Havana, Cuba","height":86});
															thumbnails[5985101] = clik.newPhoto({"id":5985101,"src":"clik_pic_comp_nam_3_thumb.jpg","galleries_id":337020,"server_id":32,"link":"photo_5985101.html","width":130,"caption":"Hanoi, Viet Nam","height":86});
															thumbnails[6029911] = clik.newPhoto({"id":6029911,"src":"clik_pic_che__flag_lomo_-_kodak_film_thumb.jpg","galleries_id":337088,"server_id":32,"link":"photo_6029911.html","width":86,"caption":"Havana, Cuba","height":130});
															thumbnails[5985100] = clik.newPhoto({"id":5985100,"src":"clik_pic_comp_panama_thumb.jpg","galleries_id":337020,"server_id":32,"link":"photo_5985100.html","width":130,"caption":"Bocas de Toro, Panama","height":86});
															thumbnails[6039958] = clik.newPhoto({"id":6039958,"src":"clik_cuba_draft_beer_2_thumb.jpg","galleries_id":337088,"server_id":32,"link":"photo_6039958.html","width":130,"caption":"Havana, Cuba","height":86});
															thumbnails[6014071] = clik.newPhoto({"id":6014071,"src":"1_clik_red_hat_man_thumb.jpg","galleries_id":337020,"server_id":32,"link":"photo_6014071.html","width":86,"caption":"Tela, Honduras","height":130});
															thumbnails[6014078] = clik.newPhoto({"id":6014078,"src":"1_clik_tibet_walk_thumb.jpg","galleries_id":337020,"server_id":32,"link":"photo_6014078.html","width":86,"caption":"Lhasa, Tibet","height":130});
															thumbnails[6039182] = clik.newPhoto({"id":6039182,"src":"clik_pic_praha_charles_bridge_2_thumb.jpg","galleries_id":337020,"server_id":32,"link":"photo_6039182.html","width":81,"caption":"Prague, Czech Republic","height":130});
															thumbnails[6014080] = clik.newPhoto({"id":6014080,"src":"1_clik_Turkey_1_2007_198_copy_thumb.jpg","galleries_id":337020,"server_id":32,"link":"photo_6014080.html","width":86,"caption":"Pamukkale, Turkey","height":130});
															thumbnails[6014717] = clik.newPhoto({"id":6014717,"src":"2_clik_dont_forget_2_thumb.jpg","galleries_id":337020,"server_id":32,"link":"photo_6014717.html","width":130,"caption":"Mostar, Bosnia & Herzegovina","height":86});
															thumbnails[6014718] = clik.newPhoto({"id":6014718,"src":"2_clik_gypsy_seller_thumb.jpg","galleries_id":337020,"server_id":32,"link":"photo_6014718.html","width":86,"caption":"Mostar, Bosnia & Herzegovina","height":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[337088] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"cuba","link":"gallery_337088.html","maxRecords":0.0,"photoIDs":[6029912.0,6029909.0,5979636.0,6039966.0,6013751.0,5988129.0,6029914.0,6013754.0,6029910.0,6039937.0,6029908.0,6013756.0,5979638.0,6021360.0,6021343.0,6013688.0,6039961.0,5979635.0,6039938.0,6029911.0,6039958.0],"skipIndex":0,"section_code":"gallery","featured_images":"6039966,6029912,5988129,5979636","id":337088,"singleSection":false});				  						galleries[337020] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"on the road","link":"gallery_337020.html","maxRecords":0.0,"photoIDs":[7796377.0,7796378.0,7796379.0,7796381.0,7796431.0,7796434.0,7796436.0,7796437.0,7796441.0,5979652.0,5979653.0,5985206.0,5985097.0,5985239.0,5985237.0,6074384.0,6014056.0,6014075.0,5979654.0,5979656.0,5979655.0,5986371.0,5986384.0,6039186.0,5985243.0,5985235.0,5985211.0,5985207.0,5985101.0,5985100.0,6014071.0,6014078.0,6039182.0,6014080.0,6014717.0,6014718.0],"skipIndex":0,"section_code":"gallery","featured_images":"5985239,5985237,5985206,5985097,5979652","id":337020,"singleSection":false});				  						galleries[337271] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"wildlife","link":"gallery_337271.html","maxRecords":0.0,"photoIDs":[5985231.0,5985232.0,5985233.0,5985244.0,5985246.0,6024763.0,6024779.0,6029907.0,6039176.0,6041677.0,6041680.0,6041681.0,6041682.0,7796387.0,7796389.0,7796394.0,7796397.0],"skipIndex":0,"section_code":"gallery","featured_images":"6041681,6039176,6024779","id":337271,"singleSection":false});				  						galleries[337021] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Street Art","link":"gallery_337021.html","maxRecords":0.0,"photoIDs":[5985234.0,6015192.0,6013758.0,6041249.0,6039024.0,6092044.0,6013762.0,6031212.0,6039025.0,6015197.0,6039183.0],"skipIndex":0,"section_code":"gallery","featured_images":"6015192,5985234","id":337021,"singleSection":false});				  						galleries[337555] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"music","link":"gallery_337555.html","maxRecords":0.0,"photoIDs":[5991175.0,5991177.0,5991182.0,5991186.0,5991190.0,6039179.0,6041670.0,6041672.0,7897950.0,7897952.0],"skipIndex":0,"section_code":"gallery","featured_images":5991182.0,"id":337555,"singleSection":false});				  						galleries[337263] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"award winners","link":"gallery_337263.html","maxRecords":0.0,"photoIDs":[5985177.0,5985169.0,5985926.0],"skipIndex":0,"section_code":"gallery","featured_images":"5985177,5985169","id":337263,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '6039966,6029914,6029912,6013754,5985239,5979636';
imageSets[2] = '6041681,6039966,6039176,6029912,6024779,6015192,5991182,5988129,5985239,5985237,5985234,5985206,5985177,5985169,5985097,5979652,5979636';
imageSets[3] = '6092044,6074384,6039024,6029911,6029910,6029909,6029908,6029907,5985246,5985244,5985243,5985239,5985237,5985235,5985234,5985233,5985232,5985231,5985211,5985207,5985206,5985177,5985169,5985101,5985100,5985097,5979656,5979655,5979654,5979652,5979638,5979636,5979635';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/puravidauk/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/puravidauk/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/puravidauk/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/puravidauk/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/puravidauk/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/puravidauk/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/puravidauk/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/puravidauk/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/puravidauk/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/puravidauk/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/puravidauk/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/puravidauk/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/puravidauk/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/puravidauk/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/puravidauk/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/puravidauk/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/puravidauk/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/puravidauk/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/puravidauk/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/puravidauk/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/puravidauk/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/puravidauk/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/puravidauk/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/puravidauk/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 = 'Matt Scandrett 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="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		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">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="PURAVIDAUK">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			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;
	}
}

			

