window.thumbnails = {};
															thumbnails[8984083] = clik.newPhoto({"id":8984083,"src":"DSC_0034_AB3528E8-1EC9-DFB6-0924F5625C227FAA_thumb.jpeg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":194});
															thumbnails[5198768] = clik.newPhoto({"id":5198768,"src":"DSC_0011_2_thumb.jpeg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":188});
															thumbnails[5198770] = clik.newPhoto({"id":5198770,"src":"DSC_0001_2_thumb.jpeg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":185});
															thumbnails[450519] = clik.newPhoto({"id":450519,"src":"IMG_10_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":173});
															thumbnails[8181107] = clik.newPhoto({"id":8181107,"src":"DSC_0009_4EB5D01A-1E4F-37DC-7133969C9FBDEE44_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":172});
															thumbnails[3053790] = clik.newPhoto({"id":3053790,"src":"IMG_3723_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":193});
															thumbnails[8181158] = clik.newPhoto({"id":8181158,"src":"DSC_0019_4EB97DD5-1E4F-37DC-7148E9DDEEFC5C5E_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":161});
															thumbnails[8181146] = clik.newPhoto({"id":8181146,"src":"DSC_0018_4EB93F30-1E4F-37DC-7189A8438E5021FF_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":164});
															thumbnails[3794056] = clik.newPhoto({"id":3794056,"src":"IMG_3783_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":203});
															thumbnails[8181174] = clik.newPhoto({"id":8181174,"src":"DSC_0013_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":165});
															thumbnails[9125354] = clik.newPhoto({"id":9125354,"src":"i_am_at_a_masquerade_1_thumb.jpg","galleries_id":371405,"server_id":1,"link":"photo_9125354.html","width":101,"caption":"","height":135});
															thumbnails[3060734] = clik.newPhoto({"id":3060734,"src":"IMG_3758_thumb.jpg","galleries_id":371405,"server_id":1,"link":"photo_3060734.html","width":130,"caption":"","height":139});
															thumbnails[3791846] = clik.newPhoto({"id":3791846,"src":"passingfleetingvanishing1_thumb.jpg","galleries_id":413938,"server_id":1,"link":"photo_3791846.html","width":130,"caption":"","height":96});
															thumbnails[6832606] = clik.newPhoto({"id":6832606,"src":"Cos_Ahmet_The_Flower_Portrait_Altered_State_thumb.jpg","galleries_id":371061,"server_id":1,"link":"photo_6832606.html","width":130,"caption":"","height":135});
															thumbnails[6832614] = clik.newPhoto({"id":6832614,"src":"Open_after_B.H._Wipflinger_thumb.jpg","galleries_id":371074,"server_id":1,"link":"photo_6832614.html","width":130,"caption":"","height":197});
															thumbnails[6832619] = clik.newPhoto({"id":6832619,"src":"DSC_0052_thumb.jpeg","galleries_id":371062,"server_id":1,"link":"photo_6832619.html","width":130,"caption":"","height":194});
															thumbnails[6832627] = clik.newPhoto({"id":6832627,"src":"Under_Erasure_III123456_thumb.jpg","galleries_id":371066,"server_id":1,"link":"photo_6832627.html","width":130,"caption":"","height":174});
															thumbnails[6832630] = clik.newPhoto({"id":6832630,"src":"DSC_0081_2_thumb.jpg","galleries_id":371269,"server_id":1,"link":"photo_6832630.html","width":130,"caption":"","height":195});
															thumbnails[6832632] = clik.newPhoto({"id":6832632,"src":"DSC_0102_thumb.jpg","galleries_id":326790,"server_id":1,"link":"photo_6832632.html","width":130,"caption":"","height":194});
															thumbnails[6836886] = clik.newPhoto({"id":6836886,"src":"Emerge_I_thumb.jpg","galleries_id":371271,"server_id":1,"link":"photo_6836886.html","width":130,"caption":"","height":130});
															thumbnails[6862360] = clik.newPhoto({"id":6862360,"src":"SAP_cos-ahmet_Homo-graft_2010_thumb.jpg","galleries_id":371063,"server_id":1,"link":"photo_6862360.html","width":130,"caption":"","height":176});
															thumbnails[8975624] = clik.newPhoto({"id":8975624,"src":"Cos_Ahmet_Creation_FAA5C0F8-24E8-5EC4-4F56ABF9C991D2DF_thumb.jpg","galleries_id":435073,"server_id":1,"link":"photo_8975624.html","width":130,"caption":"","height":165});
															thumbnails[450512] = clik.newPhoto({"id":450512,"src":"IMG_5_thumb.jpg","galleries_id":413938,"server_id":1,"link":"photo_450512.html","width":130,"caption":"","height":153});
															thumbnails[3060729] = clik.newPhoto({"id":3060729,"src":"IMG_3751_thumb.jpg","galleries_id":371405,"server_id":1,"link":"photo_3060729.html","width":130,"caption":"","height":152});
															thumbnails[5769941] = clik.newPhoto({"id":5769941,"src":"DSC_0019_thumb.jpg","galleries_id":326790,"server_id":1,"link":"photo_5769941.html","width":130,"caption":"","height":152});
															thumbnails[6832611] = clik.newPhoto({"id":6832611,"src":"DSC_0021_thumb.jpg","galleries_id":371074,"server_id":1,"link":"photo_6832611.html","width":130,"caption":"","height":174});
															thumbnails[6832616] = clik.newPhoto({"id":6832616,"src":"DSC_0040_thumb.jpg","galleries_id":371063,"server_id":1,"link":"photo_6832616.html","width":130,"caption":"","height":177});
															thumbnails[6832622] = clik.newPhoto({"id":6832622,"src":"DSC_00543_thumb.jpeg","galleries_id":371062,"server_id":1,"link":"photo_6832622.html","width":130,"caption":"","height":194});
															thumbnails[6832629] = clik.newPhoto({"id":6832629,"src":"Under_Erasure_I123456_thumb.jpg","galleries_id":371066,"server_id":1,"link":"photo_6832629.html","width":130,"caption":"","height":173});
															thumbnails[6836888] = clik.newPhoto({"id":6836888,"src":"Emerge_II_thumb.jpg","galleries_id":371271,"server_id":1,"link":"photo_6836888.html","width":130,"caption":"","height":130});
															thumbnails[6862343] = clik.newPhoto({"id":6862343,"src":"DSC_0009_thumb.jpg","galleries_id":371269,"server_id":1,"link":"photo_6862343.html","width":130,"caption":"","height":187});
															thumbnails[7866041] = clik.newPhoto({"id":7866041,"src":"Cos_Ahmet_Duality_2_thumb.jpg","galleries_id":435073,"server_id":1,"link":"photo_7866041.html","width":106,"caption":"","height":135});
															thumbnails[3065941] = clik.newPhoto({"id":3065941,"src":"IMG_3756_thumb.jpg","galleries_id":371405,"server_id":1,"link":"photo_3065941.html","width":130,"caption":"","height":161});
															thumbnails[3791836] = clik.newPhoto({"id":3791836,"src":"black_sheep_II_thumb.jpg","galleries_id":413938,"server_id":1,"link":"photo_3791836.html","width":130,"caption":"","height":173});
															thumbnails[5198786] = clik.newPhoto({"id":5198786,"src":"Cos_Ahmet_Re-Creation_3_thumb.jpg","galleries_id":435073,"server_id":1,"link":"photo_5198786.html","width":103,"caption":"","height":135});
															thumbnails[5769936] = clik.newPhoto({"id":5769936,"src":"DSC_0070_thumb.jpeg","galleries_id":326790,"server_id":1,"link":"photo_5769936.html","width":130,"caption":"","height":128});
															thumbnails[6832612] = clik.newPhoto({"id":6832612,"src":"DSC_0023_thumb.jpg","galleries_id":371074,"server_id":1,"link":"photo_6832612.html","width":130,"caption":"","height":103});
															thumbnails[6832613] = clik.newPhoto({"id":6832613,"src":"DSC_0030_2_thumb.jpeg","galleries_id":371063,"server_id":1,"link":"photo_6832613.html","width":130,"caption":"","height":184});
															thumbnails[6832625] = clik.newPhoto({"id":6832625,"src":"Under_Erasure_II123_thumb.jpg","galleries_id":371066,"server_id":1,"link":"photo_6832625.html","width":130,"caption":"","height":175});
															thumbnails[7281466] = clik.newPhoto({"id":7281466,"src":"DSC_0007_thumb.jpeg","galleries_id":371269,"server_id":1,"link":"photo_7281466.html","width":130,"caption":"","height":184});
															thumbnails[3065939] = clik.newPhoto({"id":3065939,"src":"IMG_3750_thumb.jpg","galleries_id":371405,"server_id":1,"link":"photo_3065939.html","width":130,"caption":"","height":221});
															thumbnails[5561575] = clik.newPhoto({"id":5561575,"src":"second_skin_thumb.jpg","galleries_id":435073,"server_id":1,"link":"photo_5561575.html","width":130,"caption":"","height":132});
															thumbnails[5769901] = clik.newPhoto({"id":5769901,"src":"DSC_0003_thumb.jpg","galleries_id":326790,"server_id":1,"link":"photo_5769901.html","width":130,"caption":"","height":119});
															thumbnails[6832609] = clik.newPhoto({"id":6832609,"src":"DSC_0016_thumb.jpg","galleries_id":371063,"server_id":1,"link":"photo_6832609.html","width":130,"caption":"","height":191});
															thumbnails[6832617] = clik.newPhoto({"id":6832617,"src":"DSC_0041_thumb.jpg","galleries_id":371074,"server_id":1,"link":"photo_6832617.html","width":130,"caption":"","height":87});
															thumbnails[6832621] = clik.newPhoto({"id":6832621,"src":"DSC_0053_thumb.jpeg","galleries_id":371062,"server_id":1,"link":"photo_6832621.html","width":130,"caption":"","height":194});
															thumbnails[6836873] = clik.newPhoto({"id":6836873,"src":"DSC_0009_8629CD2F-1E4F-37DC-714DE7DDBD10D624_thumb.jpg","galleries_id":371269,"server_id":1,"link":"photo_6836873.html","width":130,"caption":"","height":176});
															thumbnails[6872799] = clik.newPhoto({"id":6872799,"src":"IMG_01_thumb.JPG","galleries_id":413938,"server_id":1,"link":"photo_6872799.html","width":130,"caption":"","height":173});
															thumbnails[3060749] = clik.newPhoto({"id":3060749,"src":"IMG_3740_thumb.jpg","galleries_id":371405,"server_id":1,"link":"photo_3060749.html","width":130,"caption":"","height":204});
															thumbnails[3812624] = clik.newPhoto({"id":3812624,"src":"IMG_10_FF17E1E0-24E8-5EC4-4FD13F0ED187D110_thumb.jpg","galleries_id":413938,"server_id":1,"link":"photo_3812624.html","width":130,"caption":"","height":173});
															thumbnails[8134727] = clik.newPhoto({"id":8134727,"src":"Cos_Ahmet__Woven_Threads___Linked_Diptych_IV_2_of_21_thumb.jpg","galleries_id":435073,"server_id":1,"link":"photo_8134727.html","width":130,"caption":"","height":89});
															thumbnails[3793889] = clik.newPhoto({"id":3793889,"src":"untitled06_thumb.jpg","galleries_id":413938,"server_id":1,"link":"photo_3793889.html","width":130,"caption":"","height":175});
															thumbnails[4028658] = clik.newPhoto({"id":4028658,"src":"Linked_III2of2_2007_thumb.jpg","galleries_id":435073,"server_id":1,"link":"photo_4028658.html","width":130,"caption":"","height":130});
															thumbnails[5769899] = clik.newPhoto({"id":5769899,"src":"DSC_0006_thumb.JPG","galleries_id":326790,"server_id":1,"link":"photo_5769899.html","width":130,"caption":"","height":135});
															thumbnails[6976173] = clik.newPhoto({"id":6976173,"src":"voices_thumb.jpg","galleries_id":371405,"server_id":1,"link":"photo_6976173.html","width":130,"caption":"","height":201});
															thumbnails[3065872] = clik.newPhoto({"id":3065872,"src":"IMG_3741_thumb.jpg","galleries_id":371405,"server_id":1,"link":"photo_3065872.html","width":130,"caption":"","height":205});
															thumbnails[4028655] = clik.newPhoto({"id":4028655,"src":"Linked_III1of2_thumb.jpg","galleries_id":435073,"server_id":1,"link":"photo_4028655.html","width":130,"caption":"","height":132});
															thumbnails[6872794] = clik.newPhoto({"id":6872794,"src":"DSC_0139_95255CC7-24E8-5EC4-4FB868D3FF1469BE_thumb.jpg","galleries_id":413938,"server_id":1,"link":"photo_6872794.html","width":130,"caption":"","height":173});
															thumbnails[8173371] = clik.newPhoto({"id":8173371,"src":"DSC_0008_thumb.JPG","galleries_id":326790,"server_id":1,"link":"photo_8173371.html","width":130,"caption":"","height":137});
															thumbnails[450520] = clik.newPhoto({"id":450520,"src":"IMG_11_thumb.jpg","galleries_id":413938,"server_id":1,"link":"photo_450520.html","width":130,"caption":"","height":207});
															thumbnails[3794046] = clik.newPhoto({"id":3794046,"src":"IMG_3744_2_thumb.jpg","galleries_id":371405,"server_id":1,"link":"photo_3794046.html","width":130,"caption":"","height":198});
															thumbnails[8134723] = clik.newPhoto({"id":8134723,"src":"Cos_Ahmet__Woven_Threads___Linked_Diptych_III_1_of_21_thumb.jpg","galleries_id":435073,"server_id":1,"link":"photo_8134723.html","width":130,"caption":"","height":91});
															thumbnails[3037623] = clik.newPhoto({"id":3037623,"src":"IMG_3723_FB1F8ACF-1E4F-37DC-7128F6B6AAC79B30_thumb.jpg","galleries_id":371405,"server_id":1,"link":"photo_3037623.html","width":130,"caption":"","height":199});
															thumbnails[3791858] = clik.newPhoto({"id":3791858,"src":"IMG_untitledmono2_thumb.jpg","galleries_id":413938,"server_id":1,"link":"photo_3791858.html","width":130,"caption":"","height":187});
															thumbnails[5561578] = clik.newPhoto({"id":5561578,"src":"DSC_0095_thumb.jpg","galleries_id":435073,"server_id":1,"link":"photo_5561578.html","width":130,"caption":"","height":128});
															thumbnails[3053680] = clik.newPhoto({"id":3053680,"src":"IMG_3784_thumb.jpg","galleries_id":371405,"server_id":1,"link":"photo_3053680.html","width":130,"caption":"","height":196});
															thumbnails[7691189] = clik.newPhoto({"id":7691189,"src":"IMG_2143_thumb.jpg","galleries_id":413938,"server_id":1,"link":"photo_7691189.html","width":130,"caption":"","height":180});
															thumbnails[7869863] = clik.newPhoto({"id":7869863,"src":"DSC_0095_3C4199BF-24E8-5EC4-4F9FBEFE28736B1B_thumb.JPG","galleries_id":435073,"server_id":1,"link":"photo_7869863.html","width":130,"caption":"","height":124});
															thumbnails[3060745] = clik.newPhoto({"id":3060745,"src":"IMG_3720_thumb.jpeg","galleries_id":371405,"server_id":1,"link":"photo_3060745.html","width":130,"caption":"","height":164});
															thumbnails[3791859] = clik.newPhoto({"id":3791859,"src":"IMG_2147_thumb.jpg","galleries_id":413938,"server_id":1,"link":"photo_3791859.html","width":130,"caption":"","height":171});
															thumbnails[5561582] = clik.newPhoto({"id":5561582,"src":"IMG_4939_thumb.jpeg","galleries_id":435073,"server_id":1,"link":"photo_5561582.html","width":130,"caption":"","height":144});
															thumbnails[451279] = clik.newPhoto({"id":451279,"src":"IMG_mono2_thumb.jpg","galleries_id":413938,"server_id":1,"link":"photo_451279.html","width":130,"caption":"","height":177});
															thumbnails[3060743] = clik.newPhoto({"id":3060743,"src":"IMG_3718_thumb.jpg","galleries_id":371405,"server_id":1,"link":"photo_3060743.html","width":130,"caption":"","height":80});
															thumbnails[7866073] = clik.newPhoto({"id":7866073,"src":"DSC_0092_thumb.jpg","galleries_id":435073,"server_id":1,"link":"photo_7866073.html","width":130,"caption":"","height":142});
															thumbnails[1368483] = clik.newPhoto({"id":1368483,"src":"IMG_mono31_thumb.jpg","galleries_id":413938,"server_id":1,"link":"photo_1368483.html","width":130,"caption":"","height":178});
															thumbnails[8173416] = clik.newPhoto({"id":8173416,"src":"DSC_0026_thumb.jpg","galleries_id":371405,"server_id":1,"link":"photo_8173416.html","width":130,"caption":"","height":169});
															thumbnails[6976087] = clik.newPhoto({"id":6976087,"src":"IMG_3015_thumb.jpg","galleries_id":413938,"server_id":1,"link":"photo_6976087.html","width":130,"caption":"","height":174});
															thumbnails[8173415] = clik.newPhoto({"id":8173415,"src":"DSC_0027_thumb.jpg","galleries_id":371405,"server_id":1,"link":"photo_8173415.html","width":130,"caption":"","height":169});
															thumbnails[1388158] = clik.newPhoto({"id":1388158,"src":"Untitled V dress_thumb.jpg","galleries_id":413938,"server_id":1,"link":"photo_1388158.html","width":130,"caption":"","height":175});
															thumbnails[8173413] = clik.newPhoto({"id":8173413,"src":"DSC_0025_thumb.jpg","galleries_id":371405,"server_id":1,"link":"photo_8173413.html","width":130,"caption":"","height":169});
															thumbnails[452901] = clik.newPhoto({"id":452901,"src":"IMG_2125_thumb.jpg","galleries_id":413938,"server_id":1,"link":"photo_452901.html","width":130,"caption":"","height":163});
															thumbnails[8815773] = clik.newPhoto({"id":8815773,"src":"_DSC0027_thumb.JPG","galleries_id":464099,"server_id":1,"link":"photo_8815773.html","width":130,"caption":"","height":99});
															thumbnails[9103057] = clik.newPhoto({"id":9103057,"src":"_DSC0092_1_thumb.JPG","galleries_id":480392,"server_id":1,"link":"photo_9103057.html","width":135,"caption":"","height":87});
															thumbnails[9132749] = clik.newPhoto({"id":9132749,"src":"cos-ahmet-untitled-day_1-_28_drawing_days_1_thumb.JPG","galleries_id":435284,"server_id":1,"link":"photo_9132749.html","width":96,"caption":"","height":135});
															thumbnails[8815777] = clik.newPhoto({"id":8815777,"src":"_DSC0026_thumb.JPG","galleries_id":464099,"server_id":1,"link":"photo_8815777.html","width":130,"caption":"","height":91});
															thumbnails[9103045] = clik.newPhoto({"id":9103045,"src":"DSC_27_thumb.jpg","galleries_id":480392,"server_id":1,"link":"photo_9103045.html","width":135,"caption":"","height":94});
															thumbnails[9132750] = clik.newPhoto({"id":9132750,"src":"cos-ahmet-untitled-day_2-_28_drawing_days_1_thumb.JPG","galleries_id":435284,"server_id":1,"link":"photo_9132750.html","width":95,"caption":"","height":135});
															thumbnails[8815747] = clik.newPhoto({"id":8815747,"src":"_DSC0029_thumb.JPG","galleries_id":464099,"server_id":1,"link":"photo_8815747.html","width":130,"caption":"","height":87});
															thumbnails[9103049] = clik.newPhoto({"id":9103049,"src":"DSC_97_thumb.jpg","galleries_id":480392,"server_id":1,"link":"photo_9103049.html","width":135,"caption":"","height":93});
															thumbnails[9132751] = clik.newPhoto({"id":9132751,"src":"Day_3_Carrier_DC432111_1_thumb.jpg","galleries_id":435284,"server_id":1,"link":"photo_9132751.html","width":135,"caption":"","height":115});
															thumbnails[8190916] = clik.newPhoto({"id":8190916,"src":"DSC_0089_thumb.jpg","galleries_id":480392,"server_id":1,"link":"photo_8190916.html","width":130,"caption":"","height":81});
															thumbnails[8815781] = clik.newPhoto({"id":8815781,"src":"_DSC0025_thumb.JPG","galleries_id":464099,"server_id":1,"link":"photo_8815781.html","width":130,"caption":"","height":87});
															thumbnails[9132753] = clik.newPhoto({"id":9132753,"src":"Day_4_Untitled_DC432111_1_thumb.jpg","galleries_id":435284,"server_id":1,"link":"photo_9132753.html","width":102,"caption":"","height":135});
															thumbnails[8173390] = clik.newPhoto({"id":8173390,"src":"DSC_96_thumb.jpg","galleries_id":480392,"server_id":1,"link":"photo_8173390.html","width":123,"caption":"","height":135});
															thumbnails[8815961] = clik.newPhoto({"id":8815961,"src":"_DSC0013_thumb.jpg","galleries_id":464099,"server_id":1,"link":"photo_8815961.html","width":130,"caption":"","height":104});
															thumbnails[9132754] = clik.newPhoto({"id":9132754,"src":"day_5_cos_ahmet_1_thumb.jpeg","galleries_id":435284,"server_id":1,"link":"photo_9132754.html","width":135,"caption":"","height":128});
															thumbnails[8815871] = clik.newPhoto({"id":8815871,"src":"_DSC0030_thumb.JPG","galleries_id":464099,"server_id":1,"link":"photo_8815871.html","width":130,"caption":"","height":92});
															thumbnails[9132755] = clik.newPhoto({"id":9132755,"src":"Day_6_cos_ahmet_1_thumb.jpeg","galleries_id":435284,"server_id":1,"link":"photo_9132755.html","width":99,"caption":"","height":135});
															thumbnails[9172109] = clik.newPhoto({"id":9172109,"src":"DSC_9_thumb.JPG","galleries_id":480392,"server_id":1,"link":"photo_9172109.html","width":128,"caption":"","height":135});
															thumbnails[8816020] = clik.newPhoto({"id":8816020,"src":"_DSC0002_thumb.jpg","galleries_id":464099,"server_id":1,"link":"photo_8816020.html","width":130,"caption":"","height":88});
															thumbnails[9132756] = clik.newPhoto({"id":9132756,"src":"Day_7_cos_ahmet_carrying_figures_1_thumb.jpg","galleries_id":435284,"server_id":1,"link":"photo_9132756.html","width":114,"caption":"","height":135});
															thumbnails[9172102] = clik.newPhoto({"id":9172102,"src":"DSC_7_thumb.JPG","galleries_id":480392,"server_id":1,"link":"photo_9172102.html","width":128,"caption":"","height":135});
															thumbnails[5769896] = clik.newPhoto({"id":5769896,"src":"DSC_0091_thumb.JPG","galleries_id":480392,"server_id":1,"link":"photo_5769896.html","width":130,"caption":"","height":82});
															thumbnails[8815857] = clik.newPhoto({"id":8815857,"src":"_DSC0016_thumb.jpg","galleries_id":464099,"server_id":1,"link":"photo_8815857.html","width":130,"caption":"","height":86});
															thumbnails[9132757] = clik.newPhoto({"id":9132757,"src":"Day_8_c_ahmet_spaces_in_between_1_thumb.jpg","galleries_id":435284,"server_id":1,"link":"photo_9132757.html","width":103,"caption":"","height":135});
															thumbnails[8181354] = clik.newPhoto({"id":8181354,"src":"DSC_0032_thumb.JPG","galleries_id":435284,"server_id":1,"link":"photo_8181354.html","width":130,"caption":"","height":91});
															thumbnails[8816022] = clik.newPhoto({"id":8816022,"src":"_DSC0005_thumb.jpg","galleries_id":464099,"server_id":1,"link":"photo_8816022.html","width":130,"caption":"","height":88});
															thumbnails[8181220] = clik.newPhoto({"id":8181220,"src":"DSC_0015cos_thumb.jpg","galleries_id":435284,"server_id":1,"link":"photo_8181220.html","width":130,"caption":"","height":92});
															thumbnails[8815892] = clik.newPhoto({"id":8815892,"src":"_DSC0048_thumb.jpg","galleries_id":464099,"server_id":1,"link":"photo_8815892.html","width":130,"caption":"","height":87});
															thumbnails[8181219] = clik.newPhoto({"id":8181219,"src":"DSC_0017_thumb.jpg","galleries_id":435284,"server_id":1,"link":"photo_8181219.html","width":130,"caption":"","height":92});
															thumbnails[8815874] = clik.newPhoto({"id":8815874,"src":"DSC_0002_F3E351C3-1EC9-DFB6-0982306398F4B9E4_thumb.JPG","galleries_id":464099,"server_id":1,"link":"photo_8815874.html","width":130,"caption":"","height":91});
															thumbnails[8181221] = clik.newPhoto({"id":8181221,"src":"DSC_0020_thumb.jpg","galleries_id":435284,"server_id":1,"link":"photo_8181221.html","width":130,"caption":"","height":92});
															thumbnails[8793812] = clik.newPhoto({"id":8793812,"src":"_DSC0043_thumb.jpeg","galleries_id":464099,"server_id":1,"link":"photo_8793812.html","width":130,"caption":"","height":97});
															thumbnails[8815891] = clik.newPhoto({"id":8815891,"src":"_DSC0007_thumb.jpg","galleries_id":464099,"server_id":1,"link":"photo_8815891.html","width":130,"caption":"","height":171});
															thumbnails[9154414] = clik.newPhoto({"id":9154414,"src":"Day_9_cos-ahmet_1_thumb.jpg","galleries_id":435284,"server_id":1,"link":"photo_9154414.html","width":135,"caption":"","height":90});
															thumbnails[8815861] = clik.newPhoto({"id":8815861,"src":"_DSC0019_thumb.jpg","galleries_id":464099,"server_id":1,"link":"photo_8815861.html","width":130,"caption":"","height":171});
															thumbnails[9135811] = clik.newPhoto({"id":9135811,"src":"day13-cos-ahmet_1_thumb.jpg","galleries_id":435284,"server_id":1,"link":"photo_9135811.html","width":90,"caption":"","height":135});
															thumbnails[8815830] = clik.newPhoto({"id":8815830,"src":"_DSC0015_thumb.jpg","galleries_id":464099,"server_id":1,"link":"photo_8815830.html","width":130,"caption":"","height":171});
															thumbnails[9140526] = clik.newPhoto({"id":9140526,"src":"day14cos-ahmet_1_thumb.jpg","galleries_id":435284,"server_id":1,"link":"photo_9140526.html","width":98,"caption":"","height":135});
															thumbnails[8816004] = clik.newPhoto({"id":8816004,"src":"_DSC0037_thumb.jpg","galleries_id":464099,"server_id":1,"link":"photo_8816004.html","width":130,"caption":"","height":166});
															thumbnails[9140524] = clik.newPhoto({"id":9140524,"src":"day15cos-ahmet_1_thumb.jpeg","galleries_id":435284,"server_id":1,"link":"photo_9140524.html","width":135,"caption":"","height":109});
															thumbnails[5524272] = clik.newPhoto({"id":5524272,"src":"DSC_01301_thumb.jpg","galleries_id":464099,"server_id":1,"link":"photo_5524272.html","width":130,"caption":"","height":158});
															thumbnails[9140525] = clik.newPhoto({"id":9140525,"src":"day16cos-ahmet_1_thumb.jpeg","galleries_id":435284,"server_id":1,"link":"photo_9140525.html","width":135,"caption":"","height":104});
															thumbnails[8191090] = clik.newPhoto({"id":8191090,"src":"_CSC0031_1_thumb.jpg","galleries_id":464099,"server_id":1,"link":"photo_8191090.html","width":84,"caption":"","height":135});
															thumbnails[9154388] = clik.newPhoto({"id":9154388,"src":"Day17cos-ahmet_1_thumb.JPG","galleries_id":435284,"server_id":1,"link":"photo_9154388.html","width":135,"caption":"","height":87});
															thumbnails[9092146] = clik.newPhoto({"id":9092146,"src":"SAP_cos-ahmet_Homo-graft_2012_thumb.jpg","galleries_id":464099,"server_id":1,"link":"photo_9092146.html","width":100,"caption":"","height":135});
															thumbnails[9154389] = clik.newPhoto({"id":9154389,"src":"Day18cos-ahmet_1_thumb.jpeg","galleries_id":435284,"server_id":1,"link":"photo_9154389.html","width":135,"caption":"","height":95});
															thumbnails[8133211] = clik.newPhoto({"id":8133211,"src":"DSC_0018_thumb.jpg","galleries_id":464099,"server_id":1,"link":"photo_8133211.html","width":130,"caption":"","height":133});
															thumbnails[9154390] = clik.newPhoto({"id":9154390,"src":"Day19cos-ahmet_1_thumb.jpg","galleries_id":435284,"server_id":1,"link":"photo_9154390.html","width":101,"caption":"","height":135});
															thumbnails[9154391] = clik.newPhoto({"id":9154391,"src":"Day20-cos-ahmet_1_thumb.jpeg","galleries_id":435284,"server_id":1,"link":"photo_9154391.html","width":88,"caption":"","height":135});
															thumbnails[9154392] = clik.newPhoto({"id":9154392,"src":"Day21cos-ahmet_1_thumb.jpeg","galleries_id":435284,"server_id":1,"link":"photo_9154392.html","width":90,"caption":"","height":135});
															thumbnails[9154393] = clik.newPhoto({"id":9154393,"src":"Day22-cos-ahmet_1_thumb.jpeg","galleries_id":435284,"server_id":1,"link":"photo_9154393.html","width":109,"caption":"","height":135});
															thumbnails[9154394] = clik.newPhoto({"id":9154394,"src":"Day23cos-ahmet_1_thumb.jpg","galleries_id":435284,"server_id":1,"link":"photo_9154394.html","width":98,"caption":"","height":135});
															thumbnails[9154395] = clik.newPhoto({"id":9154395,"src":"Day24ca_1_thumb.JPG","galleries_id":435284,"server_id":1,"link":"photo_9154395.html","width":109,"caption":"","height":135});
															thumbnails[9154396] = clik.newPhoto({"id":9154396,"src":"Day25ca_1_thumb.JPG","galleries_id":435284,"server_id":1,"link":"photo_9154396.html","width":106,"caption":"","height":135});
															thumbnails[9154397] = clik.newPhoto({"id":9154397,"src":"Day26ca_1_thumb.jpg","galleries_id":435284,"server_id":1,"link":"photo_9154397.html","width":107,"caption":"","height":135});
															thumbnails[9154398] = clik.newPhoto({"id":9154398,"src":"Day28cos-ahmet_1_thumb.JPG","galleries_id":435284,"server_id":1,"link":"photo_9154398.html","width":135,"caption":"","height":93});
															thumbnails[9103081] = clik.newPhoto({"id":9103081,"src":"IMG_3859_thumb.jpg","galleries_id":480394,"server_id":1,"link":"photo_9103081.html","width":135,"caption":"","height":101});
															thumbnails[9103100] = clik.newPhoto({"id":9103100,"src":"IMG_3792_thumb.jpg","galleries_id":480394,"server_id":1,"link":"photo_9103100.html","width":135,"caption":"","height":97});
															thumbnails[9103084] = clik.newPhoto({"id":9103084,"src":"IMG_38592_thumb.jpg","galleries_id":480394,"server_id":1,"link":"photo_9103084.html","width":135,"caption":"","height":101});
															thumbnails[9103085] = clik.newPhoto({"id":9103085,"src":"IMG_3897_thumb.jpeg","galleries_id":480394,"server_id":1,"link":"photo_9103085.html","width":103,"caption":"","height":135});
															thumbnails[9103088] = clik.newPhoto({"id":9103088,"src":"IMG_3845_thumb.jpg","galleries_id":480394,"server_id":1,"link":"photo_9103088.html","width":135,"caption":"","height":81});
															thumbnails[9103087] = clik.newPhoto({"id":9103087,"src":"IMG_3853_thumb.jpg","galleries_id":480394,"server_id":1,"link":"photo_9103087.html","width":135,"caption":"","height":101});
															thumbnails[9103091] = clik.newPhoto({"id":9103091,"src":"IMG_3841_thumb.jpg","galleries_id":480394,"server_id":1,"link":"photo_9103091.html","width":100,"caption":"","height":135});
															thumbnails[9103090] = clik.newPhoto({"id":9103090,"src":"IMG_3816_thumb.jpeg","galleries_id":480394,"server_id":1,"link":"photo_9103090.html","width":119,"caption":"","height":135});
															thumbnails[9103101] = clik.newPhoto({"id":9103101,"src":"IMG_3888_thumb.jpg","galleries_id":480394,"server_id":1,"link":"photo_9103101.html","width":135,"caption":"","height":89});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[435284] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"28 Drawings Later ","link":"section561743_435284.html","maxRecords":0.0,"photoIDs":[9132749.0,9132750.0,9132751.0,9132753.0,9132754.0,9132755.0,9132756.0,9132757.0,8181354.0,8181220.0,8181219.0,8181221.0,9154414.0,9135811.0,9140526.0,9140524.0,9140525.0,9154388.0,9154389.0,9154390.0,9154391.0,9154392.0,9154393.0,9154394.0,9154395.0,9154396.0,9154397.0,9154398.0],"skipIndex":0,"section_code":"section561743","featured_images":9154398.0,"id":435284,"singleSection":false});				  						galleries[326790] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Altered State","link":"section441814_326790.html","maxRecords":0.0,"photoIDs":[6832632.0,5769941.0,5769936.0,5769901.0,5769899.0,8173371.0],"skipIndex":0,"section_code":"section441814","featured_images":6832632.0,"id":326790,"singleSection":false});				  						galleries[371269] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Self \/ Seeing ","link":"section441814_371269.html","maxRecords":0.0,"photoIDs":[6832630.0,6862343.0,7281466.0,6836873.0],"skipIndex":0,"section_code":"section441814","featured_images":7281466.0,"id":371269,"singleSection":false});				  						galleries[464099] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Self Seeing Exhibition","link":"section561743_464099.html","maxRecords":0.0,"photoIDs":[8815773.0,8815777.0,8815747.0,8815781.0,8815961.0,8815871.0,8816020.0,8815857.0,8816022.0,8815892.0,8815874.0,8793812.0,8815891.0,8815861.0,8815830.0,8816004.0,5524272.0,8191090.0,9092146.0,8133211.0],"skipIndex":0,"section_code":"section561743","featured_images":8793812.0,"id":464099,"singleSection":false});				  						galleries[480392] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Altered State: Leytonstone Art Trail","link":"section561743_480392.html","maxRecords":0.0,"photoIDs":[9103057.0,9103045.0,9103049.0,8190916.0,8173390.0,9172109.0,9172102.0,5769896.0],"skipIndex":0,"section_code":"section561743","featured_images":9172109.0,"id":480392,"singleSection":false});				  						galleries[371063] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Meta-figure","link":"section441814_371063.html","maxRecords":0.0,"photoIDs":[6862360.0,6832616.0,6832613.0,6832609.0],"skipIndex":0,"section_code":"section441814","featured_images":6862360.0,"id":371063,"singleSection":false});				  							galleries[480394] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"My Shadow Sits & waits For Me","link":"section571096.html#galleries_id=480394","maxRecords":0.0,"photoIDs":[9103081.0,9103100.0,9103084.0,9103085.0,9103088.0,9103087.0,9103091.0,9103090.0,9103101.0],"skipIndex":true,"section_code":"section571096","featured_images":9103100.0,"id":480394,"singleSection":true});				  						galleries[371061] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"The Flower Portrait (Altered State)","link":"section441814_371061.html","maxRecords":0.0,"photoIDs":[6832606.0],"skipIndex":0,"section_code":"section441814","featured_images":6832606.0,"id":371061,"singleSection":false});				  						galleries[371074] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Torsos","link":"section441814_371074.html","maxRecords":0.0,"photoIDs":[6832614.0,6832611.0,6832612.0,6832617.0],"skipIndex":0,"section_code":"section441814","featured_images":6832614.0,"id":371074,"singleSection":false});				  						galleries[371062] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"The Arrangement of Knowledge ","link":"section441814_371062.html","maxRecords":0.0,"photoIDs":[6832619.0,6832622.0,6832621.0],"skipIndex":0,"section_code":"section441814","featured_images":6832622.0,"id":371062,"singleSection":false});				  						galleries[371066] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Under Erasure","link":"section441814_371066.html","maxRecords":0.0,"photoIDs":[6832627.0,6832629.0,6832625.0],"skipIndex":0,"section_code":"section441814","featured_images":6832627.0,"id":371066,"singleSection":false});				  						galleries[371271] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Emerge","link":"section441814_371271.html","maxRecords":0.0,"photoIDs":[6836886.0,6836888.0],"skipIndex":0,"section_code":"section441814","featured_images":6836886.0,"id":371271,"singleSection":false});				  						galleries[371405] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"my shadow sits and waits for me","link":"section441814_371405.html","maxRecords":0.0,"photoIDs":[9125354.0,3060734.0,3060729.0,3065941.0,3065939.0,3060749.0,6976173.0,3065872.0,3794046.0,3037623.0,3053680.0,3060745.0,3060743.0,8173416.0,8173415.0,8173413.0],"skipIndex":0,"section_code":"section441814","featured_images":3065941.0,"id":371405,"singleSection":false});				  						galleries[435073] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Bodylogues","link":"section441814_435073.html","maxRecords":0.0,"photoIDs":[8975624.0,7866041.0,5198786.0,5561575.0,8134727.0,4028658.0,4028655.0,8134723.0,5561578.0,7869863.0,5561582.0,7866073.0],"skipIndex":0,"section_code":"section441814","featured_images":5561578.0,"id":435073,"singleSection":false});				  						galleries[413938] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Ships in the Night","link":"section441814_413938.html","maxRecords":0.0,"photoIDs":[3791846.0,450512.0,3791836.0,6872799.0,3812624.0,3793889.0,6872794.0,450520.0,3791858.0,7691189.0,3791859.0,451279.0,1368483.0,6976087.0,1388158.0,452901.0],"skipIndex":0,"section_code":"section441814","featured_images":3791846.0,"id":413938,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8975624';
imageSets[2] = '6862360,6836886,6832632,6832627,6832614,6832606,3791846,9103100,6832622,7281466,3065941,9172109,5561578,8793812,8181174,9154398';
imageSets[3] = '6862343,7281466';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/citizencos/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/citizencos/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/citizencos/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/citizencos/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/citizencos/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/citizencos/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/citizencos/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/citizencos/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/citizencos/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/citizencos/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/citizencos/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/citizencos/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/citizencos/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/citizencos/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/citizencos/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/citizencos/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/citizencos/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/citizencos/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/citizencos/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/citizencos/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/citizencos/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/citizencos/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/citizencos/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/citizencos/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/citizencos/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/citizencos/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/citizencos/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 += 'section441814.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 && 'section441814' != '') {
					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 = 'Cos Ahmet: ' + 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>Medium </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Image </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="citizencos@yahoo.co.uk">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="citizencos@yahoo.co.uk">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

