window.thumbnails = {};
															thumbnails[2089733] = clik.newPhoto({"id":2089733,"src":"colourful_boat_thumb.jpg","galleries_id":138432,"server_id":32,"link":"photo_2089733.html","width":130,"caption":"colourful boat","height":184});
															thumbnails[2092670] = clik.newPhoto({"id":2092670,"src":"skala_beach_FA362FF8-1EC9-D45B-1CB1C428AB4FC1AD_thumb.jpg","galleries_id":139141,"server_id":32,"link":"photo_2092670.html","width":130,"caption":"skala beach","height":184});
															thumbnails[2095703] = clik.newPhoto({"id":2095703,"src":"broom_in_flower_FC7983C0-1EC9-D45B-1CC83F13489C3DC5_thumb.jpg","galleries_id":139142,"server_id":32,"link":"photo_2095703.html","width":130,"caption":"broom in flower","height":184});
															thumbnails[2095803] = clik.newPhoto({"id":2095803,"src":"koutavos_bay_F13A489F-1EC9-DFB6-095DD060CE22618F_thumb.jpg","galleries_id":139144,"server_id":32,"link":"photo_2095803.html","width":130,"caption":"koutavos bay","height":92});
															thumbnails[2099232] = clik.newPhoto({"id":2099232,"src":"snow_on_mount_ainos_F26AC4C1-1EC9-DFB6-095346661EA177FB_thumb.jpg","galleries_id":139507,"server_id":32,"link":"photo_2099232.html","width":130,"caption":"snow on mount ainos","height":184});
															thumbnails[9066771] = clik.newPhoto({"id":9066771,"src":"kaminia_rocks_2_thumb.jpg","galleries_id":285784,"server_id":32,"link":"photo_9066771.html","width":130,"caption":"kaminia rocks 2","height":184});
															thumbnails[2089789] = clik.newPhoto({"id":2089789,"src":"red_boat_F8BDFE61-1EC9-D45B-1C3508DE1AF7A048_thumb.jpg","galleries_id":138432,"server_id":32,"link":"photo_2089789.html","width":130,"caption":"red boat","height":184});
															thumbnails[2095729] = clik.newPhoto({"id":2095729,"src":"grazing_lamb_thumb.jpg","galleries_id":139142,"server_id":32,"link":"photo_2095729.html","width":130,"caption":"grazing lamb","height":184});
															thumbnails[2099238] = clik.newPhoto({"id":2099238,"src":"snowy_peaks_F283214F-1EC9-DFB6-09B530996B580228_thumb.jpg","galleries_id":139507,"server_id":32,"link":"photo_2099238.html","width":130,"caption":"snowy peaks","height":184});
															thumbnails[5655682] = clik.newPhoto({"id":5655682,"src":"secluded_bay_FA3C85BB-1EC9-D45B-1C9CA227B9B0D6CD_thumb.jpg","galleries_id":139141,"server_id":32,"link":"photo_5655682.html","width":130,"caption":"secluded bay","height":184});
															thumbnails[8888350] = clik.newPhoto({"id":8888350,"src":"paraskevi_beach_thumb.jpg","galleries_id":139144,"server_id":32,"link":"photo_8888350.html","width":130,"caption":"paraskevi beach","height":92});
															thumbnails[9066786] = clik.newPhoto({"id":9066786,"src":"katelios_jetty_3_thumb.jpg","galleries_id":285784,"server_id":32,"link":"photo_9066786.html","width":130,"caption":"katelios jetty 3","height":184});
															thumbnails[2089817] = clik.newPhoto({"id":2089817,"src":"propeller_F8C27119-1EC9-D45B-1C5F30C08AA4DFC9_thumb.jpg","galleries_id":138432,"server_id":32,"link":"photo_2089817.html","width":130,"caption":"propeller","height":184});
															thumbnails[2092685] = clik.newPhoto({"id":2092685,"src":"poros_rocks_FA4141FA-1EC9-D45B-1CECA6A8C2BBD4EC_thumb.jpg","galleries_id":139141,"server_id":32,"link":"photo_2092685.html","width":130,"caption":"poros rocks","height":184});
															thumbnails[2095735] = clik.newPhoto({"id":2095735,"src":"grazing_sheep_FC830268-1EC9-D45B-1CEF956BD7BCC857_thumb.jpg","galleries_id":139142,"server_id":32,"link":"photo_2095735.html","width":130,"caption":"grazing sheep","height":184});
															thumbnails[2095822] = clik.newPhoto({"id":2095822,"src":"tranquil_dawn_F143D1A9-1EC9-DFB6-090745D7B65EC8FA_thumb.jpg","galleries_id":139144,"server_id":32,"link":"photo_2095822.html","width":130,"caption":"tranquil dawn","height":92});
															thumbnails[2099234] = clik.newPhoto({"id":2099234,"src":"snowy_rocks_F2778EB8-1EC9-DFB6-09BD3089B43C8B05_thumb.jpg","galleries_id":139507,"server_id":32,"link":"photo_2099234.html","width":130,"caption":"snowy rocks","height":184});
															thumbnails[5078875] = clik.newPhoto({"id":5078875,"src":"old_caique_BW_thumb.jpg","galleries_id":286572,"server_id":32,"link":"photo_5078875.html","width":130,"caption":"old caique","height":184});
															thumbnails[9066789] = clik.newPhoto({"id":9066789,"src":"myrtos_stones_thumb.jpg","galleries_id":285784,"server_id":32,"link":"photo_9066789.html","width":130,"caption":"myrtos stones","height":184});
															thumbnails[2092700] = clik.newPhoto({"id":2092700,"src":"myrtos_bay_FA46E3FA-1EC9-D45B-1C16DC57C8D37A60_thumb.jpg","galleries_id":139141,"server_id":32,"link":"photo_2092700.html","width":130,"caption":"myrtos bay","height":184});
															thumbnails[2095748] = clik.newPhoto({"id":2095748,"src":"katelios_village_thumb.jpg","galleries_id":139142,"server_id":32,"link":"photo_2095748.html","width":130,"caption":"katelios village","height":184});
															thumbnails[2095832] = clik.newPhoto({"id":2095832,"src":"golden_boat_F14B9F62-1EC9-DFB6-09319BD0915BFED5_thumb.jpg","galleries_id":139144,"server_id":32,"link":"photo_2095832.html","width":130,"caption":"golden boat","height":92});
															thumbnails[2099233] = clik.newPhoto({"id":2099233,"src":"snowy_tree_F271B76B-1EC9-DFB6-0940B07446F345FF_thumb.jpg","galleries_id":139507,"server_id":32,"link":"photo_2099233.html","width":130,"caption":"snowy tree","height":92});
															thumbnails[5078884] = clik.newPhoto({"id":5078884,"src":"storm_at_koroni_BW_thumb.jpg","galleries_id":286572,"server_id":32,"link":"photo_5078884.html","width":130,"caption":"storm at koroni","height":184});
															thumbnails[5655676] = clik.newPhoto({"id":5655676,"src":"sunrise_at_katelios_F8C6CA78-1EC9-D45B-1C8491EED56E9E54_thumb.jpg","galleries_id":138432,"server_id":32,"link":"photo_5655676.html","width":130,"caption":"sunrise at katelios","height":184});
															thumbnails[9066802] = clik.newPhoto({"id":9066802,"src":"old_wooden_door_2_thumb.jpg","galleries_id":285784,"server_id":32,"link":"photo_9066802.html","width":130,"caption":"old wooden door 2","height":184});
															thumbnails[2090318] = clik.newPhoto({"id":2090318,"src":"assos_doorway_F8CACA43-1EC9-D45B-1CE25B68B684B2F5_thumb.jpg","galleries_id":138432,"server_id":32,"link":"photo_2090318.html","width":130,"caption":"assos doorway","height":184});
															thumbnails[2092714] = clik.newPhoto({"id":2092714,"src":"lagadi_beach_FA4C0B6E-1EC9-D45B-1C0D4088D6B25ECF_thumb.jpg","galleries_id":139141,"server_id":32,"link":"photo_2092714.html","width":130,"caption":"lagadi beach","height":184});
															thumbnails[2095753] = clik.newPhoto({"id":2095753,"src":"ano_katelios_FC8C215E-1EC9-D45B-1CB53C4AA9DCFA8C_thumb.jpg","galleries_id":139142,"server_id":32,"link":"photo_2095753.html","width":130,"caption":"ano katelios","height":184});
															thumbnails[2099237] = clik.newPhoto({"id":2099237,"src":"snowy_tree_2_F27D6A6A-1EC9-DFB6-09DE922FCAB6BAC1_thumb.jpg","galleries_id":139507,"server_id":32,"link":"photo_2099237.html","width":130,"caption":"snowy tree 2","height":92});
															thumbnails[8888367] = clik.newPhoto({"id":8888367,"src":"kaminia_sunset_2_thumb.jpg","galleries_id":139144,"server_id":32,"link":"photo_8888367.html","width":130,"caption":"kaminia sunset 2","height":92});
															thumbnails[9066809] = clik.newPhoto({"id":9066809,"src":"skala_pines_4_thumb.jpg","galleries_id":285784,"server_id":32,"link":"photo_9066809.html","width":130,"caption":"skala pines 4","height":184});
															thumbnails[2090327] = clik.newPhoto({"id":2090327,"src":"old_shutter_F8CF003B-1EC9-D45B-1CEEF37F79BEAED1_thumb.jpg","galleries_id":138432,"server_id":32,"link":"photo_2090327.html","width":130,"caption":"old shutter","height":184});
															thumbnails[2092719] = clik.newPhoto({"id":2092719,"src":"kaminia_rocks_FA5118A8-1EC9-D45B-1CB8B992D174E226_thumb.jpg","galleries_id":139141,"server_id":32,"link":"photo_2092719.html","width":130,"caption":"kaminia rocks","height":184});
															thumbnails[2095755] = clik.newPhoto({"id":2095755,"src":"bougainvillia_FC90B970-1EC9-D45B-1C7CC29B931A1A6B_thumb.jpg","galleries_id":139142,"server_id":32,"link":"photo_2095755.html","width":130,"caption":"bougainvillia","height":184});
															thumbnails[2095861] = clik.newPhoto({"id":2095861,"src":"stormy_dawn_F152B399-1EC9-DFB6-09CD1EE4AFB6C6BC_thumb.jpg","galleries_id":139144,"server_id":32,"link":"photo_2095861.html","width":130,"caption":"stormy dawn","height":92});
															thumbnails[8889425] = clik.newPhoto({"id":8889425,"src":"snowy_tree_3_thumb.jpg","galleries_id":139507,"server_id":32,"link":"photo_8889425.html","width":130,"caption":"snowy tree 3","height":92});
															thumbnails[9066812] = clik.newPhoto({"id":9066812,"src":"sunset_at_lourdas_beach_thumb.jpg","galleries_id":285784,"server_id":32,"link":"photo_9066812.html","width":130,"caption":"sunset at lourdas beach","height":184});
															thumbnails[2090368] = clik.newPhoto({"id":2090368,"src":"rusty_jug_F8D33253-1EC9-D45B-1CF6572B9B471DAF_thumb.jpg","galleries_id":138432,"server_id":32,"link":"photo_2090368.html","width":130,"caption":"rusty jug","height":184});
															thumbnails[2092738] = clik.newPhoto({"id":2092738,"src":"agia_sophia_boat_FA556FDE-1EC9-D45B-1C56DC3A9301A2FE_thumb.jpg","galleries_id":139141,"server_id":32,"link":"photo_2092738.html","width":130,"caption":"agia sophia boat","height":184});
															thumbnails[2095759] = clik.newPhoto({"id":2095759,"src":"sisia_thumb.jpg","galleries_id":139142,"server_id":32,"link":"photo_2095759.html","width":130,"caption":"sisia","height":184});
															thumbnails[5079282] = clik.newPhoto({"id":5079282,"src":"skala_rocks_BW_thumb.jpg","galleries_id":286572,"server_id":32,"link":"photo_5079282.html","width":130,"caption":"skala rocks","height":184});
															thumbnails[8888368] = clik.newPhoto({"id":8888368,"src":"valerianos_sunset_thumb.jpg","galleries_id":139144,"server_id":32,"link":"photo_8888368.html","width":130,"caption":"valerianos sunset","height":92});
															thumbnails[2092745] = clik.newPhoto({"id":2092745,"src":"old_jetty_FA5A1677-1EC9-D45B-1CA3436BF5DB8224_thumb.jpg","galleries_id":139141,"server_id":32,"link":"photo_2092745.html","width":130,"caption":"old jetty","height":184});
															thumbnails[2095766] = clik.newPhoto({"id":2095766,"src":"wintery_koroni_FC96FFFE-1EC9-D45B-1C21D11C7148987D_thumb.jpg","galleries_id":139142,"server_id":32,"link":"photo_2095766.html","width":130,"caption":"wintery koroni","height":184});
															thumbnails[2095874] = clik.newPhoto({"id":2095874,"src":"koroni_beach_2_F15EA0FC-1EC9-DFB6-09D4EC1714E5399A_thumb.jpg","galleries_id":139144,"server_id":32,"link":"photo_2095874.html","width":130,"caption":"koroni beach 2","height":92});
															thumbnails[5064227] = clik.newPhoto({"id":5064227,"src":"burgundy_doors_and_cat_thumb.jpg","galleries_id":138432,"server_id":32,"link":"photo_5064227.html","width":130,"caption":"burgundy doors","height":184});
															thumbnails[5079332] = clik.newPhoto({"id":5079332,"src":"skala_rocks_3BW_thumb.jpg","galleries_id":286572,"server_id":32,"link":"photo_5079332.html","width":130,"caption":"skala rocks 3","height":184});
															thumbnails[2092747] = clik.newPhoto({"id":2092747,"src":"assos_peninsula_FA5E5BBF-1EC9-D45B-1C555CC2B4845512_thumb.jpg","galleries_id":139141,"server_id":32,"link":"photo_2092747.html","width":130,"caption":"assos peninsula","height":184});
															thumbnails[2095773] = clik.newPhoto({"id":2095773,"src":"koroni_stones_FC9B83D9-1EC9-D45B-1CFA7A029382A68A_thumb.jpg","galleries_id":139142,"server_id":32,"link":"photo_2095773.html","width":130,"caption":"koroni stones","height":184});
															thumbnails[2095877] = clik.newPhoto({"id":2095877,"src":"big_seas_F0772188-1EC9-DFB6-09B7EA1825FBC781_thumb.jpg","galleries_id":139144,"server_id":32,"link":"photo_2095877.html","width":130,"caption":"big seas","height":92});
															thumbnails[5064235] = clik.newPhoto({"id":5064235,"src":"table_17_thumb.jpg","galleries_id":138432,"server_id":32,"link":"photo_5064235.html","width":130,"caption":"table 17","height":184});
															thumbnails[2092826] = clik.newPhoto({"id":2092826,"src":"koroni_beach_FA63F8C9-1EC9-D45B-1CBC92AA4ED3618D_thumb.jpg","galleries_id":139141,"server_id":32,"link":"photo_2092826.html","width":130,"caption":"koroni beach","height":184});
															thumbnails[2095899] = clik.newPhoto({"id":2095899,"src":"katelios_valley_F167C35E-1EC9-DFB6-097508E9DBF5E087_thumb.jpg","galleries_id":139144,"server_id":32,"link":"photo_2095899.html","width":130,"caption":"katelios valley","height":92});
															thumbnails[3512151] = clik.newPhoto({"id":3512151,"src":"fishing_float_thumb.jpg","galleries_id":139142,"server_id":32,"link":"photo_3512151.html","width":130,"caption":"fishing float","height":184});
															thumbnails[5110484] = clik.newPhoto({"id":5110484,"src":"ithaka_view_BW_thumb.jpg","galleries_id":286572,"server_id":32,"link":"photo_5110484.html","width":130,"caption":"ithaka view","height":184});
															thumbnails[7147966] = clik.newPhoto({"id":7147966,"src":"agia_efimia_thumb.jpg","galleries_id":138432,"server_id":32,"link":"photo_7147966.html","width":130,"caption":"agia efimia","height":184});
															thumbnails[2092830] = clik.newPhoto({"id":2092830,"src":"turquoise_sea_FA68AD77-1EC9-D45B-1C7ED7AF8F5FA646_thumb.jpg","galleries_id":139141,"server_id":32,"link":"photo_2092830.html","width":130,"caption":"turquoise sea","height":184});
															thumbnails[2095901] = clik.newPhoto({"id":2095901,"src":"church_on_the_hill_thumb.jpg","galleries_id":139144,"server_id":32,"link":"photo_2095901.html","width":130,"caption":"church on the hill","height":92});
															thumbnails[5110506] = clik.newPhoto({"id":5110506,"src":"ithaka_view_2BW_thumb.jpg","galleries_id":286572,"server_id":32,"link":"photo_5110506.html","width":130,"caption":"ithaka view 2","height":184});
															thumbnails[5655685] = clik.newPhoto({"id":5655685,"src":"agia_efimia_4_thumb.jpg","galleries_id":139142,"server_id":32,"link":"photo_5655685.html","width":130,"caption":"agia efimia 4","height":184});
															thumbnails[7147975] = clik.newPhoto({"id":7147975,"src":"paint_job_2_thumb.jpg","galleries_id":138432,"server_id":32,"link":"photo_7147975.html","width":130,"caption":"paint job 2","height":184});
															thumbnails[2092831] = clik.newPhoto({"id":2092831,"src":"turquoise_sea_2_FA6DD82D-1EC9-D45B-1C714C20AF8DE1A2_thumb.jpg","galleries_id":139141,"server_id":32,"link":"photo_2092831.html","width":130,"caption":"turquoise sea 2","height":184});
															thumbnails[2095905] = clik.newPhoto({"id":2095905,"src":"swan_lake_F173E4C2-1EC9-DFB6-09AD4A8CF0676FE9_thumb.jpg","galleries_id":139144,"server_id":32,"link":"photo_2095905.html","width":130,"caption":"swan lake","height":92});
															thumbnails[3512187] = clik.newPhoto({"id":3512187,"src":"lourdas_beach_2_FCA2FBBB-1EC9-D45B-1C398EEFDD237785_thumb.jpg","galleries_id":139142,"server_id":32,"link":"photo_3512187.html","width":130,"caption":"lourdas beach 2","height":184});
															thumbnails[5110534] = clik.newPhoto({"id":5110534,"src":"katelios_fishermen_BW_thumb.jpg","galleries_id":286572,"server_id":32,"link":"photo_5110534.html","width":130,"caption":"katelios fishermen","height":184});
															thumbnails[7147993] = clik.newPhoto({"id":7147993,"src":"poppies_2_thumb.jpg","galleries_id":138432,"server_id":32,"link":"photo_7147993.html","width":130,"caption":"poppies 2","height":184});
															thumbnails[2095629] = clik.newPhoto({"id":2095629,"src":"kaminia_beach_2_FA72BE24-1EC9-D45B-1C771CF805C28845_thumb.jpg","galleries_id":139141,"server_id":32,"link":"photo_2095629.html","width":130,"caption":"kaminia beach 2","height":184});
															thumbnails[3512225] = clik.newPhoto({"id":3512225,"src":"koroni_sunset_FCA7388A-1EC9-D45B-1C9951F5665D444A_thumb.jpg","galleries_id":139142,"server_id":32,"link":"photo_3512225.html","width":130,"caption":"koroni sunset","height":184});
															thumbnails[5110546] = clik.newPhoto({"id":5110546,"src":"kaminia_beach_BW__thumb.jpg","galleries_id":286572,"server_id":32,"link":"photo_5110546.html","width":130,"caption":"kaminia beach","height":184});
															thumbnails[2095675] = clik.newPhoto({"id":2095675,"src":"kaminia_beach_3_FA777F01-1EC9-D45B-1CC7BDCF0923875D_thumb.jpg","galleries_id":139141,"server_id":32,"link":"photo_2095675.html","width":130,"caption":"kaminia beach 3","height":184});
															thumbnails[3512235] = clik.newPhoto({"id":3512235,"src":"old_citroen_1_FCAB830D-1EC9-D45B-1C2694AD3BD9C295_thumb.jpg","galleries_id":139142,"server_id":32,"link":"photo_3512235.html","width":130,"caption":"old citroen 1","height":184});
															thumbnails[2095684] = clik.newPhoto({"id":2095684,"src":"kaminia_beach_4_FA7D8DB0-1EC9-D45B-1C096F31DC72AB55_thumb.jpg","galleries_id":139141,"server_id":32,"link":"photo_2095684.html","width":130,"caption":"kaminia beach 4","height":184});
															thumbnails[3512250] = clik.newPhoto({"id":3512250,"src":"old_citroen_2_FCAFE30A-1EC9-D45B-1CC5914F1AB57908_thumb.jpg","galleries_id":139142,"server_id":32,"link":"photo_3512250.html","width":130,"caption":"old citroen 2","height":184});
															thumbnails[5110562] = clik.newPhoto({"id":5110562,"src":"old_wooden_door_BW_thumb.jpg","galleries_id":286572,"server_id":32,"link":"photo_5110562.html","width":130,"caption":"old wooden door","height":184});
															thumbnails[5064245] = clik.newPhoto({"id":5064245,"src":"sunrise_caique_thumb.jpg","galleries_id":139142,"server_id":32,"link":"photo_5064245.html","width":130,"caption":"sunrise caique","height":184});
															thumbnails[5064252] = clik.newPhoto({"id":5064252,"src":"calm_katelios_evening_thumb.jpg","galleries_id":139142,"server_id":32,"link":"photo_5064252.html","width":130,"caption":"calm katelios evening","height":184});
															thumbnails[5064266] = clik.newPhoto({"id":5064266,"src":"agia_efimia_6_thumb.jpg","galleries_id":139142,"server_id":32,"link":"photo_5064266.html","width":130,"caption":"agia efimia 6","height":184});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[138432] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gallery 1","link":"gallery_138432.html","maxRecords":0.0,"photoIDs":[2089733.0,2089789.0,2089817.0,5655676.0,2090318.0,2090327.0,2090368.0,5064227.0,5064235.0,7147966.0,7147975.0,7147993.0],"skipIndex":0,"section_code":"gallery","featured_images":"7147993,7147975,7147966,5655676,5064235,5064227,2090368,2090327,2090318,2089817","id":138432,"singleSection":false});				  						galleries[139141] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gallery 2","link":"gallery_139141.html","maxRecords":0.0,"photoIDs":[2092670.0,5655682.0,2092685.0,2092700.0,2092714.0,2092719.0,2092738.0,2092745.0,2092747.0,2092826.0,2092830.0,2092831.0,2095629.0,2095675.0,2095684.0],"skipIndex":0,"section_code":"gallery","featured_images":"5655682,2095684,2095675,2095629,2092831,2092830,2092826,2092747,2092745,2092738","id":139141,"singleSection":false});				  						galleries[139142] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gallery 3","link":"gallery_139142.html","maxRecords":0.0,"photoIDs":[2095703.0,2095729.0,2095735.0,2095748.0,2095753.0,2095755.0,2095759.0,2095766.0,2095773.0,3512151.0,5655685.0,3512187.0,3512225.0,3512235.0,3512250.0,5064245.0,5064252.0,5064266.0],"skipIndex":0,"section_code":"gallery","featured_images":"5655685,5064266,5064252,5064245,3512250,3512235,3512225,3512187,3512151,2095773","id":139142,"singleSection":false});				  						galleries[139144] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gallery 4","link":"gallery_139144.html","maxRecords":0.0,"photoIDs":[2095803.0,8888350.0,2095822.0,2095832.0,8888367.0,2095861.0,8888368.0,2095874.0,2095877.0,2095899.0,2095901.0,2095905.0],"skipIndex":0,"section_code":"gallery","featured_images":"8888368,8888367,8888350,2095905,2095901,2095899,2095877,2095874,2095861,2095832","id":139144,"singleSection":false});				  						galleries[139507] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gallery 5","link":"gallery_139507.html","maxRecords":0.0,"photoIDs":[2099232.0,2099238.0,2099234.0,2099233.0,2099237.0,8889425.0],"skipIndex":0,"section_code":"gallery","featured_images":"8889425,2099238,2099237,2099234,2099233,2099232","id":139507,"singleSection":false});				  						galleries[286572] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"B\/W Gallery","link":"gallery_286572.html","maxRecords":0.0,"photoIDs":[5078875.0,5078884.0,5079282.0,5079332.0,5110484.0,5110506.0,5110534.0,5110546.0,5110562.0],"skipIndex":0,"section_code":"gallery","featured_images":"5110562,5110546,5110534,5110506,5110484,5079332,5079282,5078884,5078875","id":286572,"singleSection":false});				  						galleries[285784] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"New Work","link":"gallery_285784.html","maxRecords":0.0,"photoIDs":[9066771.0,9066786.0,9066789.0,9066802.0,9066809.0,9066812.0],"skipIndex":0,"section_code":"gallery","featured_images":"9066812,9066809,9066802,9066789,9066786,9066771","id":285784,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '9066771,9066786,9066789,9066802,9066809,9066812';
imageSets[3] = '9066812,9066809,9066802,9066789,9066786,9066771,8889425,8888368,8888367,8888350,7147993,7147975,7147966,5655685,5655682,5655676,5110562,5110546,5110534,5110506,5110484,5079332,5079282,5078884,5078875,5064266,5064252,5064245,5064235,5064227,3512250,3512235,3512225,3512187,3512151,2099238,2099237,2099234,2099233,2099232,2095905,2095901,2095899,2095877,2095874,2095861,2095832,2095822,2095803,2095773';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/DWEVANS/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/DWEVANS/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/DWEVANS/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/DWEVANS/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/DWEVANS/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/DWEVANS/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/DWEVANS/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/DWEVANS/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/DWEVANS/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/DWEVANS/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/DWEVANS/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/DWEVANS/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/DWEVANS/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/DWEVANS/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/DWEVANS/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/DWEVANS/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/DWEVANS/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/DWEVANS/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/DWEVANS/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/DWEVANS/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/DWEVANS/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/DWEVANS/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/DWEVANS/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/DWEVANS/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/DWEVANS/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/DWEVANS/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/DWEVANS/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = (backgrounds || photos || {})[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'DAVID EVANS 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="suda633@otenet.gr">';
					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="suda633@otenet.gr">';
				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;
	}
}

			

