window.thumbnails = {};
															thumbnails[4830543] = clik.newPhoto({"id":4830543,"src":"3503751711_49c4327f2a_o_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Berlin Lake Grunewald Estelle Vincent Photography","height":120});
															thumbnails[5764414] = clik.newPhoto({"id":5764414,"src":"Untitled-54_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":129});
															thumbnails[6030157] = clik.newPhoto({"id":6030157,"src":"Untitled-19_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":128});
															thumbnails[7682902] = clik.newPhoto({"id":7682902,"src":"Untitled-1_C3A7BD80-1EC9-DFB6-09DEC0ABF6205D14_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":100,"caption":"","height":53});
															thumbnails[8004924] = clik.newPhoto({"id":8004924,"src":"lep_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":100,"caption":"","height":100});
															thumbnails[9037594] = clik.newPhoto({"id":9037594,"src":"Tiles_Broken2_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":100,"caption":"","height":100});
															thumbnails[9053342] = clik.newPhoto({"id":9053342,"src":"Untitled-1_A57DBFF3-24E8-5EC4-4F2762303F4D697D_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":100,"caption":"","height":44});
															thumbnails[6448103] = clik.newPhoto({"id":6448103,"src":"Untitled-1_2A698875-1D09-001F-9940EABF3F77C8DD_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":195});
															thumbnails[6294730] = clik.newPhoto({"id":6294730,"src":"Perpendical_Patriarch1_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"The Perpendicular Patriarch - Streetsigns Spring 2010","height":177});
															thumbnails[7785630] = clik.newPhoto({"id":7785630,"src":"flip_800x600_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":100,"caption":"","height":74});
															thumbnails[9038398] = clik.newPhoto({"id":9038398,"src":"6258059902_dc1883d313_m_thumb.jpg","galleries_id":476290,"server_id":18,"link":"photo_9038398.html","width":71,"caption":"2010 - Girls Look And See with Alford House Youth Club","height":100});
															thumbnails[6294863] = clik.newPhoto({"id":6294863,"src":"James_and_the_dragline_silk11_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"James my next door neighbour - Streetsigns May 2009","height":187});
															thumbnails[7198213] = clik.newPhoto({"id":7198213,"src":"estelle-signs31_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":100,"caption":"","height":66});
															thumbnails[8306159] = clik.newPhoto({"id":8306159,"src":"http___www1.gold_640x480_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":68,"caption":"","height":100});
															thumbnails[6294868] = clik.newPhoto({"id":6294868,"src":"James_and_the_dragline_silk21_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"James my next door neighbour - Streetsigns May 2009 page 2","height":187});
															thumbnails[7199130] = clik.newPhoto({"id":7199130,"src":"sslost2_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":100,"caption":"","height":70});
															thumbnails[9038418] = clik.newPhoto({"id":9038418,"src":"4109163050_9c185dc904_thumb.jpg","galleries_id":476290,"server_id":18,"link":"photo_9038418.html","width":72,"caption":"","height":100});
															thumbnails[7199108] = clik.newPhoto({"id":7199108,"src":"ssberlin_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":100,"caption":"","height":70});
															thumbnails[7199129] = clik.newPhoto({"id":7199129,"src":"ssnunhead1_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":100,"caption":"","height":70});
															thumbnails[9038420] = clik.newPhoto({"id":9038420,"src":"4174227452_5cd12d9b39_thumb.jpg","galleries_id":476290,"server_id":18,"link":"photo_9038420.html","width":100,"caption":"","height":71});
															thumbnails[6294899] = clik.newPhoto({"id":6294899,"src":"wedding_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":107});
															thumbnails[9038421] = clik.newPhoto({"id":9038421,"src":"4173534629_fa6305da6f_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":100,"caption":"","height":67});
															thumbnails[9038430] = clik.newPhoto({"id":9038430,"src":"5470539961_7ae78fe225_thumb.jpg","galleries_id":476290,"server_id":18,"link":"photo_9038430.html","width":99,"caption":"","height":100});
															thumbnails[9038432] = clik.newPhoto({"id":9038432,"src":"5471125638_1c8da03c1a_thumb.jpg","galleries_id":476290,"server_id":18,"link":"photo_9038432.html","width":99,"caption":"","height":100});
															thumbnails[9038435] = clik.newPhoto({"id":9038435,"src":"6276729114_1d1f2c8253_thumb.jpg","galleries_id":476290,"server_id":18,"link":"photo_9038435.html","width":100,"caption":"","height":71});
															thumbnails[9038436] = clik.newPhoto({"id":9038436,"src":"6276726052_47b4492edb_thumb.jpg","galleries_id":476290,"server_id":18,"link":"photo_9038436.html","width":100,"caption":"","height":71});
															thumbnails[9038434] = clik.newPhoto({"id":9038434,"src":"5957794413_47248d29d0_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":100,"caption":"","height":66});
															thumbnails[9038437] = clik.newPhoto({"id":9038437,"src":"5958354974_f12500f390_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":66,"caption":"","height":100});
															thumbnails[9038438] = clik.newPhoto({"id":9038438,"src":"5958356168_cfb529c1f0_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":100,"caption":"","height":66});
															thumbnails[9038443] = clik.newPhoto({"id":9038443,"src":"5957793387_78e6da7ac5_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":100,"caption":"","height":66});
															thumbnails[9038439] = clik.newPhoto({"id":9038439,"src":"5958356452_65f99873e0_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":100,"caption":"","height":66});
															thumbnails[9038440] = clik.newPhoto({"id":9038440,"src":"5266031207_bef7587b2e_thumb.jpg","galleries_id":476290,"server_id":18,"link":"photo_9038440.html","width":100,"caption":"","height":77});
															thumbnails[9038441] = clik.newPhoto({"id":9038441,"src":"6140104284_50907c3f9f_thumb.jpg","galleries_id":476290,"server_id":18,"link":"photo_9038441.html","width":100,"caption":"","height":73});
															thumbnails[9038442] = clik.newPhoto({"id":9038442,"src":"6133246290_dd75a4d8ca_thumb.jpg","galleries_id":476290,"server_id":18,"link":"photo_9038442.html","width":78,"caption":"","height":100});
															thumbnails[9037549] = clik.newPhoto({"id":9037549,"src":"Found_Grosvenor_Toilets_thumb.jpg","galleries_id":284692,"server_id":18,"link":"photo_9037549.html","width":100,"caption":"","height":100});
															thumbnails[9037551] = clik.newPhoto({"id":9037551,"src":"Tiles_Broken_thumb.jpg","galleries_id":476017,"server_id":18,"link":"photo_9037551.html","width":100,"caption":"","height":100});
															thumbnails[9037611] = clik.newPhoto({"id":9037611,"src":"Tiles_Broken3_thumb.jpg","galleries_id":476017,"server_id":18,"link":"photo_9037611.html","width":100,"caption":"","height":100});
															thumbnails[4811920] = clik.newPhoto({"id":4811920,"src":"EstelleVincentNunhead_thumb.jpg","galleries_id":275899,"server_id":18,"link":"photo_4811920.html","width":130,"caption":"nunhead_cemetery_southwark_london","height":130});
															thumbnails[5706386] = clik.newPhoto({"id":5706386,"src":"Estelle_Vincent_Berlin_Exhibition_20102_thumb.jpg","galleries_id":323280,"server_id":18,"link":"photo_5706386.html","width":130,"caption":"Berlin Lake Grunewald Estelle Vincent Photography","height":130});
															thumbnails[6448067] = clik.newPhoto({"id":6448067,"src":"Beirut_Damascus_Road_Estelle_Vincent1_thumb.jpg","galleries_id":355772,"server_id":18,"link":"photo_6448067.html","width":130,"caption":"","height":130});
															thumbnails[7101100] = clik.newPhoto({"id":7101100,"src":"Beirut_Cultural_Centre_to_be_completed_2013_-_former_Green_Line_thumb.jpg","galleries_id":344454,"server_id":18,"link":"photo_7101100.html","width":130,"caption":"","height":130});
															thumbnails[7284336] = clik.newPhoto({"id":7284336,"src":"LEP-Zoom-In-Revolution_thumb.jpg","galleries_id":284692,"server_id":18,"link":"photo_7284336.html","width":100,"caption":"","height":97});
															thumbnails[8931492] = clik.newPhoto({"id":8931492,"src":"Untitled-4_thumb_297CD48C-24E8-5EC4-4F3F9330B1D25211.jpg","galleries_id":284692,"server_id":18,"link":"photo_8931492.html","width":100,"caption":"","height":80});
															thumbnails[5706387] = clik.newPhoto({"id":5706387,"src":"Estelle_Vincent_Berlin_Exhibition_20103_thumb.jpg","galleries_id":323280,"server_id":18,"link":"photo_5706387.html","width":130,"caption":"","height":130});
															thumbnails[6448069] = clik.newPhoto({"id":6448069,"src":"Beirut_Damascus_Road_Estelle_Vincent2_thumb.jpg","galleries_id":355772,"server_id":18,"link":"photo_6448069.html","width":130,"caption":"","height":130});
															thumbnails[7101138] = clik.newPhoto({"id":7101138,"src":"The_Murr_Tower_-_former_Green_Line1_thumb.jpg","galleries_id":344454,"server_id":18,"link":"photo_7101138.html","width":130,"caption":"","height":130});
															thumbnails[7198189] = clik.newPhoto({"id":7198189,"src":"Found_Camden_Camera_Man_thumb.jpg","galleries_id":284692,"server_id":18,"link":"photo_7198189.html","width":100,"caption":"","height":91});
															thumbnails[7198237] = clik.newPhoto({"id":7198237,"src":"Herne_Hill_July_20081_thumb.jpg","galleries_id":284692,"server_id":18,"link":"photo_7198237.html","width":64,"caption":"","height":100});
															thumbnails[5706397] = clik.newPhoto({"id":5706397,"src":"Estelle_Vincent_Berlin_Exhibition_20104_thumb.jpg","galleries_id":323280,"server_id":18,"link":"photo_5706397.html","width":130,"caption":"Berlin Lake Grunewald Estelle Vincent Photography","height":130});
															thumbnails[5820030] = clik.newPhoto({"id":5820030,"src":"pinhole_thumb.jpg","galleries_id":284692,"server_id":18,"link":"photo_5820030.html","width":130,"caption":"pinhole solarisation","height":91});
															thumbnails[6448071] = clik.newPhoto({"id":6448071,"src":"Beirut_Damascus_Road_Estelle_Vincent3_thumb.jpg","galleries_id":355772,"server_id":18,"link":"photo_6448071.html","width":130,"caption":"","height":130});
															thumbnails[7101167] = clik.newPhoto({"id":7101167,"src":"The_Mohammed_Al_Amine_Mosque_Commonly_referred_to_as_the_Hariri_Mosque_-_Rue_Emir_Bechir_-_Downtown_Beirut_thumb.jpg","galleries_id":344454,"server_id":18,"link":"photo_7101167.html","width":130,"caption":"","height":130});
															thumbnails[6448073] = clik.newPhoto({"id":6448073,"src":"Beirut_Damascus_Road_Estelle_Vincent4_thumb.jpg","galleries_id":355772,"server_id":18,"link":"photo_6448073.html","width":130,"caption":"","height":130});
															thumbnails[7101172] = clik.newPhoto({"id":7101172,"src":"The_Maronite_Cathedral_of_St._George_-_Rue_Emir_Bechir_-_Downtown_Beirut_thumb.jpg","galleries_id":344454,"server_id":18,"link":"photo_7101172.html","width":130,"caption":"","height":130});
															thumbnails[7198221] = clik.newPhoto({"id":7198221,"src":"estelle-signs32_thumb.jpg","galleries_id":284692,"server_id":18,"link":"photo_7198221.html","width":100,"caption":"","height":66});
															thumbnails[5228491] = clik.newPhoto({"id":5228491,"src":"Picture1_thumb.jpg","galleries_id":284692,"server_id":18,"link":"photo_5228491.html","width":130,"caption":"Lost_found_darkroom_Estelle_Vincent_Photography","height":136});
															thumbnails[5480438] = clik.newPhoto({"id":5480438,"src":"13_Desktop_Resolution_thumb.jpg","galleries_id":275899,"server_id":18,"link":"photo_5480438.html","width":130,"caption":"nunhead_cemetery_southwark_london","height":130});
															thumbnails[5706398] = clik.newPhoto({"id":5706398,"src":"Estelle_Vincent_Berlin_Exhibition_20105_thumb.jpg","galleries_id":323280,"server_id":18,"link":"photo_5706398.html","width":130,"caption":"Berlin Lake Grunewald Estelle Vincent Photography","height":130});
															thumbnails[6448075] = clik.newPhoto({"id":6448075,"src":"Beirut_Damascus_Road_Estelle_Vincent5_thumb.jpg","galleries_id":355772,"server_id":18,"link":"photo_6448075.html","width":130,"caption":"","height":130});
															thumbnails[7101146] = clik.newPhoto({"id":7101146,"src":"SOLIDEREs_Martyrs_Square_-_Downtown_Beirut_thumb.jpg","galleries_id":344454,"server_id":18,"link":"photo_7101146.html","width":130,"caption":"","height":130});
															thumbnails[4830456] = clik.newPhoto({"id":4830456,"src":"lko_800x600_thumb.jpg","galleries_id":275899,"server_id":18,"link":"photo_4830456.html","width":130,"caption":"nunhead_cemetery_southwark_london","height":130});
															thumbnails[5026565] = clik.newPhoto({"id":5026565,"src":"Untitled-1_thumb.jpg","galleries_id":284692,"server_id":18,"link":"photo_5026565.html","width":130,"caption":"Lost found london uk estelle vincent photography","height":195});
															thumbnails[7101150] = clik.newPhoto({"id":7101150,"src":"Hamra_district_thumb.jpg","galleries_id":344454,"server_id":18,"link":"photo_7101150.html","width":130,"caption":"","height":131});
															thumbnails[4830499] = clik.newPhoto({"id":4830499,"src":"Web1_4_800x600_thumb.jpg","galleries_id":275899,"server_id":18,"link":"photo_4830499.html","width":130,"caption":"nunhead_cemetery_southwark_london","height":130});
															thumbnails[5228401] = clik.newPhoto({"id":5228401,"src":"Picture2_thumb.jpg","galleries_id":284692,"server_id":18,"link":"photo_5228401.html","width":130,"caption":"Lost_found_darkroom_Estelle_Vincent_Photography","height":166});
															thumbnails[7101143] = clik.newPhoto({"id":7101143,"src":"New_building_in_front_of_the_war_torn_Holiday_Inn_-_former_Green_Line_thumb.jpg","galleries_id":344454,"server_id":18,"link":"photo_7101143.html","width":130,"caption":"","height":130});
															thumbnails[7101126] = clik.newPhoto({"id":7101126,"src":"Reclaim_the_Sea_campaign__-_Ashrafieh_thumb.jpg","galleries_id":344454,"server_id":18,"link":"photo_7101126.html","width":130,"caption":"","height":130});
															thumbnails[7198196] = clik.newPhoto({"id":7198196,"src":"estelle-signs2_thumb.jpg","galleries_id":284692,"server_id":18,"link":"photo_7198196.html","width":100,"caption":"","height":65});
															thumbnails[7101130] = clik.newPhoto({"id":7101130,"src":"Bashir_Gemayel_-_Geitawi_East_Beirut_thumb.jpg","galleries_id":344454,"server_id":18,"link":"photo_7101130.html","width":130,"caption":"","height":130});
															thumbnails[7198218] = clik.newPhoto({"id":7198218,"src":"Found_Camden_Radio_Lady1_thumb.jpg","galleries_id":284692,"server_id":18,"link":"photo_7198218.html","width":100,"caption":"","height":71});
															thumbnails[4820530] = clik.newPhoto({"id":4820530,"src":"Texrachlarge_thumb.jpg","galleries_id":275381,"server_id":18,"link":"photo_4820530.html","width":130,"caption":"","height":90});
															thumbnails[7101133] = clik.newPhoto({"id":7101133,"src":"Alternative_political_leaders_posters_-_Ashrafieh_thumb.jpg","galleries_id":344454,"server_id":18,"link":"photo_7101133.html","width":130,"caption":"","height":130});
															thumbnails[7198201] = clik.newPhoto({"id":7198201,"src":"juh_thumb.jpg","galleries_id":284692,"server_id":18,"link":"photo_7198201.html","width":71,"caption":"","height":100});
															thumbnails[5480522] = clik.newPhoto({"id":5480522,"src":"16_Desktop_Resolution12_thumb.jpg","galleries_id":275899,"server_id":18,"link":"photo_5480522.html","width":130,"caption":"nunhead_cemetery_southwark_london","height":130});
															thumbnails[7101157] = clik.newPhoto({"id":7101157,"src":"Disused_Shop_Front_-_Ashrafieh_thumb.jpg","galleries_id":344454,"server_id":18,"link":"photo_7101157.html","width":130,"caption":"","height":130});
															thumbnails[7198233] = clik.newPhoto({"id":7198233,"src":"142_thumb.jpg","galleries_id":284692,"server_id":18,"link":"photo_7198233.html","width":100,"caption":"","height":70});
															thumbnails[4830501] = clik.newPhoto({"id":4830501,"src":"Web1_3_800x60012_thumb.jpg","galleries_id":275899,"server_id":18,"link":"photo_4830501.html","width":130,"caption":"nunhead_cemetery_southwark_london","height":130});
															thumbnails[7101121] = clik.newPhoto({"id":7101121,"src":"We_buy_old_appartments_we_pay_big_commission_-_streets_of_Ashrafieh1_thumb.jpg","galleries_id":344454,"server_id":18,"link":"photo_7101121.html","width":130,"caption":"","height":133});
															thumbnails[4830496] = clik.newPhoto({"id":4830496,"src":"Web1_800x600_thumb.jpg","galleries_id":275899,"server_id":18,"link":"photo_4830496.html","width":130,"caption":"nunhead_cemetery_southwark_london","height":130});
															thumbnails[7101162] = clik.newPhoto({"id":7101162,"src":"Geitawi_-__Ashrafieh_4_thumb.jpg","galleries_id":344454,"server_id":18,"link":"photo_7101162.html","width":130,"caption":"","height":130});
															thumbnails[4830459] = clik.newPhoto({"id":4830459,"src":"ji_800x6001_thumb.jpg","galleries_id":275899,"server_id":18,"link":"photo_4830459.html","width":130,"caption":"nunhead_cemetery_southwark_london","height":130});
															thumbnails[7101165] = clik.newPhoto({"id":7101165,"src":"Geitawi_-__Ashrafieh_2_thumb.jpg","galleries_id":344454,"server_id":18,"link":"photo_7101165.html","width":130,"caption":"","height":130});
															thumbnails[4830447] = clik.newPhoto({"id":4830447,"src":"jih_thumb.jpg","galleries_id":275899,"server_id":18,"link":"photo_4830447.html","width":130,"caption":"nunhead_cemetery_southwark_london","height":130});
															thumbnails[4830453] = clik.newPhoto({"id":4830453,"src":"koj_800x600_thumb.jpg","galleries_id":275899,"server_id":18,"link":"photo_4830453.html","width":130,"caption":"nunhead_cemetery_southwark_london","height":130});
															thumbnails[7101548] = clik.newPhoto({"id":7101548,"src":"The_Grand_Theatre_affectionally_referred_to_as_The_Egg_Old_Cinema_-_Dowtown_Beirut1_thumb.jpg","galleries_id":344454,"server_id":18,"link":"photo_7101548.html","width":130,"caption":"","height":130});
															thumbnails[4820532] = clik.newPhoto({"id":4820532,"src":"texjolarge_thumb.jpg","galleries_id":275381,"server_id":18,"link":"photo_4820532.html","width":130,"caption":"","height":90});
															thumbnails[4820539] = clik.newPhoto({"id":4820539,"src":"rachel2large_thumb.jpg","galleries_id":275381,"server_id":18,"link":"photo_4820539.html","width":130,"caption":"","height":90});
															thumbnails[4830146] = clik.newPhoto({"id":4830146,"src":"textcarolarge2_thumb.jpg","galleries_id":275381,"server_id":18,"link":"photo_4830146.html","width":130,"caption":"","height":89});
															thumbnails[4820538] = clik.newPhoto({"id":4820538,"src":"rachelcdlarge_thumb.jpg","galleries_id":275381,"server_id":18,"link":"photo_4820538.html","width":130,"caption":"","height":90});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[476017] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"In Progress","link":"section330916_476017.html","maxRecords":0.0,"photoIDs":[9037551.0,9037611.0],"skipIndex":0,"section_code":"section330916","featured_images":"9037611,9037551","id":476017,"singleSection":false});				  						galleries[476290] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Participants' work","link":"section579708.html","maxRecords":0.0,"photoIDs":[9038398.0,9038418.0,9038420.0,9038430.0,9038432.0,9038435.0,9038436.0,9038440.0,9038441.0,9038442.0],"skipIndex":0,"section_code":"section579708","featured_images":"9038442,9038441,9038440,9038436,9038435,9038432,9038430,9038420,9038418,9038398","id":476290,"singleSection":true});				  						galleries[344454] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"the reconstruction of beirut","link":"section330916_344454.html","maxRecords":0.0,"photoIDs":[7101100.0,7101138.0,7101167.0,7101172.0,7101146.0,7101150.0,7101143.0,7101126.0,7101130.0,7101133.0,7101157.0,7101121.0,7101162.0,7101165.0,7101548.0],"skipIndex":0,"section_code":"section330916","featured_images":"7101548,7101172,7101167,7101165,7101162,7101157,7101150,7101146,7101143,7101138","id":344454,"singleSection":false});				  						galleries[275381] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"elles","link":"section330916_275381.html","maxRecords":0.0,"photoIDs":[4820530.0,4820532.0,4820539.0,4830146.0,4820538.0],"skipIndex":0,"section_code":"section330916","featured_images":"4830146,4820539,4820538,4820532,4820530","id":275381,"singleSection":false});				  						galleries[275899] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"nunhead","link":"section330916_275899.html","maxRecords":0.0,"photoIDs":[4811920.0,5480438.0,4830456.0,4830499.0,5480522.0,4830501.0,4830496.0,4830459.0,4830447.0,4830453.0],"skipIndex":0,"section_code":"section330916","featured_images":"5480522,5480438,4830501,4830499,4830496,4830459,4830456,4830453,4830447,4811920","id":275899,"singleSection":false});				  						galleries[355772] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"borders","link":"section330916_355772.html","maxRecords":0.0,"photoIDs":[6448067.0,6448069.0,6448071.0,6448073.0,6448075.0],"skipIndex":0,"section_code":"section330916","featured_images":"6448075,6448073,6448071,6448069,6448067","id":355772,"singleSection":false});				  						galleries[323280] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"berlin wanders","link":"section330916_323280.html","maxRecords":0.0,"photoIDs":[5706386.0,5706387.0,5706397.0,5706398.0],"skipIndex":0,"section_code":"section330916","featured_images":"5706398,5706397,5706387,5706386","id":323280,"singleSection":false});				  						galleries[284692] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"lost and found","link":"section330916_284692.html","maxRecords":0.0,"photoIDs":[9037549.0,7284336.0,8931492.0,7198189.0,7198237.0,5820030.0,7198221.0,5228491.0,5026565.0,5228401.0,7198196.0,7198218.0,7198201.0,7198233.0],"skipIndex":0,"section_code":"section330916","featured_images":"9037549,8931492,7284336,7198237,7198233,7198221,7198218,7198201,7198196,7198189","id":284692,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[232704] = '4820530,4820532,4820539,4830146';
imageSets[1] = '7682902,5764414';
imageSets[2] = '8004924,6294730,7199130,7199129,7199108,6294899';
imageSets[3] = '6294730,6294899,4830456,4830499,4820530,4830501,4830496,4830459,4830447,4830453,4820532,4820539,4830146,4820538';
imageSets[232758] = '4811920,5480438,4830456,4830499,5480522,4830501,4830496,4830459,4830447,4830453';
imageSets[238071] = '7101100,7101138,7101167,7101172,7101146,7101150,7101143,7101126,7101130,7101133,7101157,7101121,7101162,7101165';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/estellelatcho/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/estellelatcho/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/estellelatcho/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/estellelatcho/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/estellelatcho/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/estellelatcho/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/estellelatcho/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/estellelatcho/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/estellelatcho/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/estellelatcho/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/estellelatcho/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/estellelatcho/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/estellelatcho/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/estellelatcho/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/estellelatcho/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/estellelatcho/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/estellelatcho/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/estellelatcho/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/estellelatcho/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/estellelatcho/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/estellelatcho/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/estellelatcho/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/estellelatcho/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/estellelatcho/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/estellelatcho/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/estellelatcho/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/estellelatcho/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = (backgrounds || photos || {})[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'section579708.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 && 'section579708' != '') {
					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 = 'Estelle Vincent Photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="estellevincent@hotmail.com">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="estellevincent@hotmail.com">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

