window.thumbnails = {};
															thumbnails[7361718] = clik.newPhoto({"id":7361718,"src":"WEB-07_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":87});
															thumbnails[7361781] = clik.newPhoto({"id":7361781,"src":"WEB-061_thumb.jpg","galleries_id":156838,"server_id":5,"link":"photo_7361781.html","width":130,"caption":"","height":87});
															thumbnails[7361791] = clik.newPhoto({"id":7361791,"src":"01_thumb.jpg","galleries_id":156838,"server_id":5,"link":"photo_7361791.html","width":130,"caption":"","height":87});
															thumbnails[7361794] = clik.newPhoto({"id":7361794,"src":"02_thumb.jpg","galleries_id":156838,"server_id":5,"link":"photo_7361794.html","width":130,"caption":"","height":87});
															thumbnails[7361795] = clik.newPhoto({"id":7361795,"src":"03_thumb.jpg","galleries_id":156838,"server_id":5,"link":"photo_7361795.html","width":130,"caption":"","height":87});
															thumbnails[7361811] = clik.newPhoto({"id":7361811,"src":"04_thumb.jpg","galleries_id":194880,"server_id":5,"link":"photo_7361811.html","width":130,"caption":"","height":87});
															thumbnails[7361812] = clik.newPhoto({"id":7361812,"src":"05_thumb.jpg","galleries_id":156838,"server_id":5,"link":"photo_7361812.html","width":130,"caption":"","height":87});
															thumbnails[7361818] = clik.newPhoto({"id":7361818,"src":"06_thumb.jpg","galleries_id":156838,"server_id":5,"link":"photo_7361818.html","width":130,"caption":"","height":87});
															thumbnails[7361821] = clik.newPhoto({"id":7361821,"src":"07_thumb.jpg","galleries_id":156838,"server_id":5,"link":"photo_7361821.html","width":130,"caption":"","height":87});
															thumbnails[7361822] = clik.newPhoto({"id":7361822,"src":"09_thumb.jpg","galleries_id":156838,"server_id":5,"link":"photo_7361822.html","width":130,"caption":"","height":87});
															thumbnails[7361823] = clik.newPhoto({"id":7361823,"src":"08_thumb.jpg","galleries_id":156838,"server_id":5,"link":"photo_7361823.html","width":130,"caption":"","height":87});
															thumbnails[7361825] = clik.newPhoto({"id":7361825,"src":"10_thumb.jpg","galleries_id":156820,"server_id":5,"link":"photo_7361825.html","width":130,"caption":"","height":86});
															thumbnails[7361827] = clik.newPhoto({"id":7361827,"src":"11_thumb.jpg","galleries_id":163895,"server_id":5,"link":"photo_7361827.html","width":130,"caption":"","height":87});
															thumbnails[7361830] = clik.newPhoto({"id":7361830,"src":"12_thumb.jpg","galleries_id":156838,"server_id":5,"link":"photo_7361830.html","width":130,"caption":"","height":87});
															thumbnails[7361833] = clik.newPhoto({"id":7361833,"src":"13_thumb.jpg","galleries_id":156823,"server_id":5,"link":"photo_7361833.html","width":130,"caption":"","height":87});
															thumbnails[7361836] = clik.newPhoto({"id":7361836,"src":"14_thumb.jpg","galleries_id":163895,"server_id":5,"link":"photo_7361836.html","width":130,"caption":"","height":87});
															thumbnails[7361838] = clik.newPhoto({"id":7361838,"src":"15_thumb.jpg","galleries_id":194880,"server_id":5,"link":"photo_7361838.html","width":130,"caption":"","height":87});
															thumbnails[7361849] = clik.newPhoto({"id":7361849,"src":"16_thumb.jpg","galleries_id":156823,"server_id":5,"link":"photo_7361849.html","width":130,"caption":"","height":88});
															thumbnails[7365324] = clik.newPhoto({"id":7365324,"src":"25_thumb.jpg","galleries_id":156827,"server_id":5,"link":"photo_7365324.html","width":130,"caption":"","height":87});
															thumbnails[7365326] = clik.newPhoto({"id":7365326,"src":"17_thumb.jpg","galleries_id":156827,"server_id":5,"link":"photo_7365326.html","width":130,"caption":"","height":87});
															thumbnails[7365327] = clik.newPhoto({"id":7365327,"src":"18_thumb.jpg","galleries_id":156827,"server_id":5,"link":"photo_7365327.html","width":130,"caption":"Reha Erdem\/Film Director","height":87});
															thumbnails[7365329] = clik.newPhoto({"id":7365329,"src":"30_thumb.jpg","galleries_id":156838,"server_id":5,"link":"photo_7365329.html","width":130,"caption":"","height":87});
															thumbnails[7365330] = clik.newPhoto({"id":7365330,"src":"23_thumb.jpg","galleries_id":156838,"server_id":5,"link":"photo_7365330.html","width":130,"caption":"","height":86});
															thumbnails[7365331] = clik.newPhoto({"id":7365331,"src":"19_thumb.jpg","galleries_id":157086,"server_id":5,"link":"photo_7365331.html","width":130,"caption":"","height":87});
															thumbnails[7365332] = clik.newPhoto({"id":7365332,"src":"20_thumb.jpg","galleries_id":157086,"server_id":5,"link":"photo_7365332.html","width":130,"caption":"","height":87});
															thumbnails[7365333] = clik.newPhoto({"id":7365333,"src":"28_thumb.jpg","galleries_id":156838,"server_id":5,"link":"photo_7365333.html","width":130,"caption":"","height":87});
															thumbnails[7365334] = clik.newPhoto({"id":7365334,"src":"29_thumb.jpg","galleries_id":156838,"server_id":5,"link":"photo_7365334.html","width":130,"caption":"","height":87});
															thumbnails[7365337] = clik.newPhoto({"id":7365337,"src":"BATERSE_thumb.jpg","galleries_id":156834,"server_id":5,"link":"photo_7365337.html","width":130,"caption":"","height":87});
															thumbnails[7365341] = clik.newPhoto({"id":7365341,"src":"AH_thumb.jpg","galleries_id":156827,"server_id":5,"link":"photo_7365341.html","width":130,"caption":"Hasan Senyuksel\/Ara Guler","height":87});
															thumbnails[7365343] = clik.newPhoto({"id":7365343,"src":"24_thumb.jpg","galleries_id":194880,"server_id":5,"link":"photo_7365343.html","width":130,"caption":"","height":87});
															thumbnails[7365346] = clik.newPhoto({"id":7365346,"src":"26_thumb.jpg","galleries_id":156828,"server_id":5,"link":"photo_7365346.html","width":130,"caption":"Kelly Holmes\/Br Athlete","height":87});
															thumbnails[7444083] = clik.newPhoto({"id":7444083,"src":"MURAL-1_thumb.jpg","galleries_id":201854,"server_id":5,"link":"photo_7444083.html","width":130,"caption":"","height":87});
															thumbnails[7444084] = clik.newPhoto({"id":7444084,"src":"MURAL-2_thumb.jpg","galleries_id":201854,"server_id":5,"link":"photo_7444084.html","width":130,"caption":"","height":87});
															thumbnails[7444087] = clik.newPhoto({"id":7444087,"src":"MURAL-3_thumb.jpg","galleries_id":201854,"server_id":5,"link":"photo_7444087.html","width":130,"caption":"","height":87});
															thumbnails[7444089] = clik.newPhoto({"id":7444089,"src":"MURAL-4_thumb.jpg","galleries_id":201854,"server_id":5,"link":"photo_7444089.html","width":130,"caption":"","height":87});
															thumbnails[7444090] = clik.newPhoto({"id":7444090,"src":"IRISH-1_thumb.jpg","galleries_id":201854,"server_id":5,"link":"photo_7444090.html","width":130,"caption":"","height":87});
															thumbnails[7444094] = clik.newPhoto({"id":7444094,"src":"IRISH-2_thumb.jpg","galleries_id":201854,"server_id":5,"link":"photo_7444094.html","width":130,"caption":"","height":87});
															thumbnails[7444660] = clik.newPhoto({"id":7444660,"src":"WEB-SEMAH_thumb.jpg","galleries_id":194880,"server_id":5,"link":"photo_7444660.html","width":130,"caption":"","height":87});
															thumbnails[7444670] = clik.newPhoto({"id":7444670,"src":"WEB-FEM_thumb.jpg","galleries_id":194880,"server_id":5,"link":"photo_7444670.html","width":130,"caption":"","height":87});
															thumbnails[7444680] = clik.newPhoto({"id":7444680,"src":"WEB-ROMAN_thumb.jpg","galleries_id":157089,"server_id":5,"link":"photo_7444680.html","width":130,"caption":"","height":88});
															thumbnails[7444688] = clik.newPhoto({"id":7444688,"src":"ALI-OZ_thumb.jpg","galleries_id":156828,"server_id":5,"link":"photo_7444688.html","width":130,"caption":"Ali Oz \/ Photojournalist","height":87});
															thumbnails[7444698] = clik.newPhoto({"id":7444698,"src":"SELIM-GUNES_thumb.jpg","galleries_id":156828,"server_id":5,"link":"photo_7444698.html","width":130,"caption":"Selim Gunes\/Film Dir-Photographer","height":87});
															thumbnails[7444721] = clik.newPhoto({"id":7444721,"src":"RUC_thumb.jpg","galleries_id":156820,"server_id":5,"link":"photo_7444721.html","width":130,"caption":"","height":85});
															thumbnails[7444729] = clik.newPhoto({"id":7444729,"src":"FIRE_thumb.jpg","galleries_id":156820,"server_id":5,"link":"photo_7444729.html","width":130,"caption":"Shankill Road","height":87});
															thumbnails[7444731] = clik.newPhoto({"id":7444731,"src":"POWER-ST_thumb.jpg","galleries_id":156834,"server_id":5,"link":"photo_7444731.html","width":130,"caption":"","height":87});
															thumbnails[7447613] = clik.newPhoto({"id":7447613,"src":"DEDE-1_thumb.jpg","galleries_id":163895,"server_id":5,"link":"photo_7447613.html","width":130,"caption":"","height":87});
															thumbnails[7447614] = clik.newPhoto({"id":7447614,"src":"DEDE-2_thumb.jpg","galleries_id":163895,"server_id":5,"link":"photo_7447614.html","width":130,"caption":"","height":87});
															thumbnails[7448889] = clik.newPhoto({"id":7448889,"src":"REIS-2_thumb.jpg","galleries_id":163894,"server_id":5,"link":"photo_7448889.html","width":130,"caption":"Reis Celik\/Film Dir","height":87});
															thumbnails[7448893] = clik.newPhoto({"id":7448893,"src":"MUSA-1_thumb.jpg","galleries_id":156827,"server_id":5,"link":"photo_7448893.html","width":130,"caption":"","height":87});
															thumbnails[7448899] = clik.newPhoto({"id":7448899,"src":"AHMET-TELLI_thumb.jpg","galleries_id":156827,"server_id":5,"link":"photo_7448899.html","width":130,"caption":"","height":87});
															thumbnails[7448904] = clik.newPhoto({"id":7448904,"src":"AILE-2_thumb.jpg","galleries_id":194880,"server_id":5,"link":"photo_7448904.html","width":130,"caption":"","height":87});
															thumbnails[7448909] = clik.newPhoto({"id":7448909,"src":"ALEVI-1_thumb.jpg","galleries_id":194880,"server_id":5,"link":"photo_7448909.html","width":130,"caption":"","height":87});
															thumbnails[7448914] = clik.newPhoto({"id":7448914,"src":"PROTEST_thumb.jpg","galleries_id":156838,"server_id":5,"link":"photo_7448914.html","width":130,"caption":"","height":87});
															thumbnails[7453364] = clik.newPhoto({"id":7453364,"src":"SUNNET-COCUK_thumb.jpg","galleries_id":156824,"server_id":5,"link":"photo_7453364.html","width":130,"caption":"","height":181});
															thumbnails[7453370] = clik.newPhoto({"id":7453370,"src":"HAN-1_thumb.jpg","galleries_id":156826,"server_id":5,"link":"photo_7453370.html","width":130,"caption":"","height":88});
															thumbnails[7453374] = clik.newPhoto({"id":7453374,"src":"HANIM-1_thumb.jpg","galleries_id":163894,"server_id":5,"link":"photo_7453374.html","width":130,"caption":"","height":182});
															thumbnails[7453377] = clik.newPhoto({"id":7453377,"src":"HANIM-2_thumb.jpg","galleries_id":163894,"server_id":5,"link":"photo_7453377.html","width":130,"caption":"","height":194});
															thumbnails[7459393] = clik.newPhoto({"id":7459393,"src":"FILISTIN-1_thumb.jpg","galleries_id":194880,"server_id":5,"link":"photo_7459393.html","width":130,"caption":"","height":87});
															thumbnails[7459442] = clik.newPhoto({"id":7459442,"src":"FILISTIN-2_thumb.jpg","galleries_id":194880,"server_id":5,"link":"photo_7459442.html","width":130,"caption":"","height":87});
															thumbnails[7459451] = clik.newPhoto({"id":7459451,"src":"FILISTIN-5_thumb.jpg","galleries_id":194880,"server_id":5,"link":"photo_7459451.html","width":130,"caption":"","height":87});
															thumbnails[7459454] = clik.newPhoto({"id":7459454,"src":"FILISTINE-4_thumb.jpg","galleries_id":194880,"server_id":5,"link":"photo_7459454.html","width":130,"caption":"","height":87});
															thumbnails[7459666] = clik.newPhoto({"id":7459666,"src":"AT1_thumb.jpg","galleries_id":157089,"server_id":5,"link":"photo_7459666.html","width":130,"caption":"","height":88});
															thumbnails[7459675] = clik.newPhoto({"id":7459675,"src":"BALIKCI-1_thumb.jpg","galleries_id":156838,"server_id":5,"link":"photo_7459675.html","width":130,"caption":"","height":87});
															thumbnails[7459700] = clik.newPhoto({"id":7459700,"src":"BABA-OGUL-ROMAN_thumb.jpg","galleries_id":156824,"server_id":5,"link":"photo_7459700.html","width":130,"caption":"","height":91});
															thumbnails[7459736] = clik.newPhoto({"id":7459736,"src":"DEMO-1_thumb.jpg","galleries_id":156838,"server_id":5,"link":"photo_7459736.html","width":130,"caption":"","height":87});
															thumbnails[7459744] = clik.newPhoto({"id":7459744,"src":"ASURE_thumb.jpg","galleries_id":194880,"server_id":5,"link":"photo_7459744.html","width":130,"caption":"","height":87});
															thumbnails[7480269] = clik.newPhoto({"id":7480269,"src":"KEMAL-WEB_thumb.jpg","galleries_id":156828,"server_id":5,"link":"photo_7480269.html","width":130,"caption":"CHP Lider Kemal Kilicdaroglu","height":87});
															thumbnails[7480550] = clik.newPhoto({"id":7480550,"src":"NUKLEER-BACA_thumb.jpg","galleries_id":156834,"server_id":5,"link":"photo_7480550.html","width":130,"caption":"","height":87});
															thumbnails[7637676] = clik.newPhoto({"id":7637676,"src":"VEDAT-TURKALI-1_thumb.jpg","galleries_id":156828,"server_id":5,"link":"photo_7637676.html","width":130,"caption":"Vedat Turkali","height":87});
															thumbnails[7637701] = clik.newPhoto({"id":7637701,"src":"_DSC1563_thumb.jpg","galleries_id":156838,"server_id":5,"link":"photo_7637701.html","width":130,"caption":"Disappeared People","height":87});
															thumbnails[7637728] = clik.newPhoto({"id":7637728,"src":"WEB-2_thumb.jpg","galleries_id":194880,"server_id":5,"link":"photo_7637728.html","width":130,"caption":"","height":87});
															thumbnails[7637745] = clik.newPhoto({"id":7637745,"src":"UFUK_thumb.jpg","galleries_id":156830,"server_id":5,"link":"photo_7637745.html","width":130,"caption":"Ufuk Uyanik\/Cartoon","height":87});
															thumbnails[7884734] = clik.newPhoto({"id":7884734,"src":"web-1_thumb.jpg","galleries_id":194880,"server_id":5,"link":"photo_7884734.html","width":130,"caption":"","height":87});
															thumbnails[7884743] = clik.newPhoto({"id":7884743,"src":"_DSC7484_1_thumb.jpg","galleries_id":163895,"server_id":5,"link":"photo_7884743.html","width":130,"caption":"","height":87});
															thumbnails[2474615] = clik.newPhoto({"id":2474615,"src":"GANYAN-1_thumb.jpg","galleries_id":163894,"server_id":5,"link":"photo_2474615.html","width":130,"caption":"John McCririck \/ Racing tipster and TV presenter","height":194});
															thumbnails[7611016] = clik.newPhoto({"id":7611016,"src":"VEHBI-1_thumb.jpg","galleries_id":157094,"server_id":5,"link":"photo_7611016.html","width":130,"caption":"","height":87});
															thumbnails[2567520] = clik.newPhoto({"id":2567520,"src":"milenyum_mektup_thumb.gif","galleries_id":163890,"server_id":5,"link":"photo_2567520.html","width":130,"caption":"","height":183});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[163890] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"artist's cv","link":"section206230.html","maxRecords":0.0,"photoIDs":[2567520.0],"skipIndex":0,"section_code":"section206230","featured_images":2567520.0,"id":163890,"singleSection":true});				  						galleries[159160] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"print price","link":"section201693.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"section201693","featured_images":"","id":159160,"singleSection":true});				  						galleries[157094] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"vehbi koca","link":"section199502.html","maxRecords":0.0,"photoIDs":[7611016.0],"skipIndex":0,"section_code":"section199502","featured_images":7611016.0,"id":157094,"singleSection":true});				  						galleries[156827] = clik.newGallery({"parentGallery":156821,"usePopups":true,"title":"artists","link":"section199193_156827.html","maxRecords":0.0,"photoIDs":[7365324.0,7365326.0,7365327.0,7365341.0,7448893.0,7448899.0],"skipIndex":0,"section_code":"section199193","featured_images":"7448899,7448893,7365341,7365327,7365326,7365324","id":156827,"singleSection":false});				  						galleries[156830] = clik.newGallery({"parentGallery":156821,"usePopups":true,"title":"turkish artists UK","link":"section199193_156830.html","maxRecords":0.0,"photoIDs":[7637745.0],"skipIndex":0,"section_code":"section199193","featured_images":7637745.0,"id":156830,"singleSection":false});				  						galleries[156828] = clik.newGallery({"parentGallery":156821,"usePopups":true,"title":"mixed portrait 1","link":"section199193_156828.html","maxRecords":0.0,"photoIDs":[7365346.0,7444688.0,7444698.0,7480269.0,7637676.0],"skipIndex":0,"section_code":"section199193","featured_images":"7637676,7480269,7444698,7444688,7365346","id":156828,"singleSection":false});				  						galleries[163894] = clik.newGallery({"parentGallery":156821,"usePopups":true,"title":"mixed portrait 2","link":"section199193_163894.html","maxRecords":0.0,"photoIDs":[7448889.0,7453374.0,7453377.0,2474615.0],"skipIndex":0,"section_code":"section199193","featured_images":"7453377,7453374,7448889,2474615","id":163894,"singleSection":false});				  						galleries[163895] = clik.newGallery({"parentGallery":156821,"usePopups":true,"title":"mixed portrait 3","link":"section199193_163895.html","maxRecords":0.0,"photoIDs":[7361827.0,7361836.0,7447613.0,7447614.0,7884743.0],"skipIndex":0,"section_code":"section199193","featured_images":"7884743,7447614,7447613,7361836,7361827","id":163895,"singleSection":false});				  						galleries[156821] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"portrait","link":"section199193_156821.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"section199193","featured_images":"7884743,7637745,7637676,7480269,7453377,7453374,7448899,7448893,7448889,7447614","id":156821,"singleSection":false});				  						galleries[156820] = clik.newGallery({"parentGallery":156819,"usePopups":true,"title":"Writing on the wall","link":"section199193_156820.html","maxRecords":0.0,"photoIDs":[7361825.0,7444721.0,7444729.0],"skipIndex":0,"section_code":"section199193","featured_images":"7444729,7444721,7361825","id":156820,"singleSection":false});				  						galleries[156819] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"documentary","link":"section199193_156819.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"section199193","featured_images":"7459700,7453370,7453364,7444729,7444721,7365332,7365331,7361849,7361833,7361825","id":156819,"singleSection":false});				  						galleries[156823] = clik.newGallery({"parentGallery":156819,"usePopups":true,"title":"kirkpinar \/ turkish gladiators","link":"section199193_156823.html","maxRecords":0.0,"photoIDs":[7361833.0,7361849.0],"skipIndex":0,"section_code":"section199193","featured_images":"7361849,7361833","id":156823,"singleSection":false});				  						galleries[156824] = clik.newGallery({"parentGallery":156819,"usePopups":true,"title":"romans","link":"section199193_156824.html","maxRecords":0.0,"photoIDs":[7453364.0,7459700.0],"skipIndex":0,"section_code":"section199193","featured_images":"7459700,7453364","id":156824,"singleSection":false});				  						galleries[156834] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"urban","link":"section199193_156834.html","maxRecords":0.0,"photoIDs":[7365337.0,7444731.0,7480550.0],"skipIndex":0,"section_code":"section199193","featured_images":"7480550,7444731,7365337","id":156834,"singleSection":false});				  						galleries[157089] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"b&w \/ fine art","link":"section199193_157089.html","maxRecords":0.0,"photoIDs":[7444680.0,7459666.0],"skipIndex":0,"section_code":"section199193","featured_images":"7459666,7444680","id":157089,"singleSection":false});				  						galleries[156838] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"colour mixed 1","link":"section199193_156838.html","maxRecords":0.0,"photoIDs":[7361781.0,7361791.0,7361794.0,7361795.0,7361812.0,7361818.0,7361821.0,7361822.0,7361823.0,7361830.0,7365329.0,7365330.0,7365333.0,7365334.0,7448914.0,7459675.0,7459736.0,7637701.0],"skipIndex":0,"section_code":"section199193","featured_images":"7637701,7459736,7459675,7448914,7365334,7365333,7365330,7365329,7361830,7361823","id":156838,"singleSection":false});				  						galleries[194880] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"colour mixed 2","link":"section199193_194880.html","maxRecords":0.0,"photoIDs":[7361811.0,7361838.0,7365343.0,7444660.0,7444670.0,7448904.0,7448909.0,7459393.0,7459442.0,7459451.0,7459454.0,7459744.0,7637728.0,7884734.0],"skipIndex":0,"section_code":"section199193","featured_images":"7884734,7637728,7459744,7459454,7459451,7459442,7459393,7448909,7448904,7444670","id":194880,"singleSection":false});				  						galleries[156826] = clik.newGallery({"parentGallery":156819,"usePopups":true,"title":"sinop'un hani","link":"section199193_156826.html","maxRecords":0.0,"photoIDs":[7453370.0],"skipIndex":0,"section_code":"section199193","featured_images":7453370.0,"id":156826,"singleSection":false});				  						galleries[201854] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Writing on the Wall \/ Murals","link":"section199193_201854.html","maxRecords":0.0,"photoIDs":[7444083.0,7444084.0,7444087.0,7444089.0,7444090.0,7444094.0],"skipIndex":0,"section_code":"section199193","featured_images":"7444094,7444090,7444089,7444087,7444084,7444083","id":201854,"singleSection":false});				  						galleries[157086] = clik.newGallery({"parentGallery":156819,"usePopups":true,"title":"his-tanbul","link":"section199193_157086.html","maxRecords":0.0,"photoIDs":[7365331.0,7365332.0],"skipIndex":0,"section_code":"section199193","featured_images":"7365332,7365331","id":157086,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[122988] = '7365346,7365343,7365341,7365337,7365334,7365333,7365332,7365331,7365330,7365324,7361818,7361812';
imageSets[1] = '7884743,7637701,7637676,7480550,7480269,7459736,7459675,7459666,7459454,7459451,7459393,7448914,7448909,7448904,7448899,7448893,7447613,7444731,7444680,7444670,7444660,7365346,7365343,7365341,7365337,7365334,7365333,7365332,7365331,7365330,7365324,7361838,7361833,7361830,7361827,7361825,7361823,7361822,7361821,7361818,7361812,7361811,7361794,7361791,7361718';
imageSets[2] = '7611016';
imageSets[3] = '7884743,7884734,7637745,7637728,7637701,7637676,7611016,7480550,7480269,7459744,7459736,7459700,7459675,7459666,7459454,7459451,7459442,7459393,7453377,7453374,7453370,7453364,7448914,7448909,7448904,7448899,7448893,7448889,7447614,7447613,7444731,7444729,7444721,7444698,7444688,7444680,7444670,7444660,7444094,7444090,7444089,7444087,7444084,7444083,7365346,7365343,7365341,7365337,7365334,7365333';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/kocavehbi/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/kocavehbi/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/kocavehbi/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/kocavehbi/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/kocavehbi/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/kocavehbi/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/kocavehbi/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/kocavehbi/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/kocavehbi/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/kocavehbi/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/kocavehbi/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/kocavehbi/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/kocavehbi/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/kocavehbi/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/kocavehbi/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/kocavehbi/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/kocavehbi/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/kocavehbi/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/kocavehbi/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/kocavehbi/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/kocavehbi/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/kocavehbi/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/kocavehbi/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/kocavehbi/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/kocavehbi/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 += 'section199193.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 && 'section199193' != '') {
					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 = 'vehbikoca.com: ' + 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="KOCAVEHBI">';
			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({					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;
	}
}

			

