window.thumbnails = {};
															thumbnails[4983002] = clik.newPhoto({"id":4983002,"src":"bfws_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":194});
															thumbnails[7268042] = clik.newPhoto({"id":7268042,"src":"manifest171210_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Manifestation 171210 @ Barbican","height":195});
															thumbnails[7268045] = clik.newPhoto({"id":7268045,"src":"manifest171210_cu_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Manifestation 171210 @ Barbican LATES","height":87});
															thumbnails[9008941] = clik.newPhoto({"id":9008941,"src":"SOV_invite_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"SocietyOfVandals - Strange Factories","height":184});
															thumbnails[5844230] = clik.newPhoto({"id":5844230,"src":"pv_02_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":194});
															thumbnails[5844231] = clik.newPhoto({"id":5844231,"src":"pv_03_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":87});
															thumbnails[5844248] = clik.newPhoto({"id":5844248,"src":"pv_15_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":98});
															thumbnails[5844251] = clik.newPhoto({"id":5844251,"src":"pv_08_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":194});
															thumbnails[5844260] = clik.newPhoto({"id":5844260,"src":"pv_11_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":194});
															thumbnails[5844261] = clik.newPhoto({"id":5844261,"src":"pv_13_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":87});
															thumbnails[5881786] = clik.newPhoto({"id":5881786,"src":"she_dreamt_she_was_a_camera_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":173});
															thumbnails[5881792] = clik.newPhoto({"id":5881792,"src":"book_title_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":98});
															thumbnails[5882688] = clik.newPhoto({"id":5882688,"src":"she_dreamt_book_selfpage_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":98});
															thumbnails[5882735] = clik.newPhoto({"id":5882735,"src":"she_dreamt_book_page_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":98});
															thumbnails[5882739] = clik.newPhoto({"id":5882739,"src":"she_dreamt_book_page1_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":98});
															thumbnails[5882740] = clik.newPhoto({"id":5882740,"src":"she_dreamt_book_page2_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":98});
															thumbnails[4982376] = clik.newPhoto({"id":4982376,"src":"thebeginning_800_thumb.jpg","galleries_id":282991,"server_id":18,"link":"photo_4982376.html","width":130,"caption":"the beginning","height":258});
															thumbnails[5026940] = clik.newPhoto({"id":5026940,"src":"thebeginning_detail01_800_thumb.jpg","galleries_id":282991,"server_id":18,"link":"photo_5026940.html","width":130,"caption":"the beginning - detail","height":165});
															thumbnails[5026955] = clik.newPhoto({"id":5026955,"src":"thebeginning_detail03_800_thumb.jpg","galleries_id":282991,"server_id":18,"link":"photo_5026955.html","width":130,"caption":"the beginning- details","height":98});
															thumbnails[7268155] = clik.newPhoto({"id":7268155,"src":"TheBeginningOfTheEnd600_med_thumb.jpg","galleries_id":282991,"server_id":18,"link":"photo_7268155.html","width":130,"caption":"The Beginning of The End","height":129});
															thumbnails[4982381] = clik.newPhoto({"id":4982381,"src":"thebeginningof_800_thumb.jpg","galleries_id":282991,"server_id":18,"link":"photo_4982381.html","width":130,"caption":"the beginning of","height":257});
															thumbnails[4982389] = clik.newPhoto({"id":4982389,"src":"theEnd_800_thumb.jpg","galleries_id":282991,"server_id":18,"link":"photo_4982389.html","width":130,"caption":"the end","height":261});
															thumbnails[4982515] = clik.newPhoto({"id":4982515,"src":"thebeginningof_detail01_800_thumb.jpg","galleries_id":282991,"server_id":18,"link":"photo_4982515.html","width":130,"caption":"the beginning of - details","height":78});
															thumbnails[4982517] = clik.newPhoto({"id":4982517,"src":"thebeginningof_detail02_800_thumb.jpg","galleries_id":282991,"server_id":18,"link":"photo_4982517.html","width":130,"caption":"the beginning of - details","height":204});
															thumbnails[4982519] = clik.newPhoto({"id":4982519,"src":"thebeginningof_detail04_800_thumb.jpg","galleries_id":282991,"server_id":18,"link":"photo_4982519.html","width":130,"caption":"the beginning of - details","height":272});
															thumbnails[4982533] = clik.newPhoto({"id":4982533,"src":"theEnd_detail01_800_thumb.jpg","galleries_id":282991,"server_id":18,"link":"photo_4982533.html","width":130,"caption":"the end - details","height":90});
															thumbnails[4982531] = clik.newPhoto({"id":4982531,"src":"theEnd_detail02_800_thumb.jpg","galleries_id":282991,"server_id":18,"link":"photo_4982531.html","width":130,"caption":"the end - details","height":481});
															thumbnails[4982529] = clik.newPhoto({"id":4982529,"src":"theEnd_detail03_800_thumb.jpg","galleries_id":282991,"server_id":18,"link":"photo_4982529.html","width":130,"caption":"the end - details","height":118});
															thumbnails[4982530] = clik.newPhoto({"id":4982530,"src":"theEnd_detail04_800_thumb.jpg","galleries_id":282991,"server_id":18,"link":"photo_4982530.html","width":130,"caption":"the end - details","height":174});
															thumbnails[4982534] = clik.newPhoto({"id":4982534,"src":"theEnd_detail05_800_thumb.jpg","galleries_id":282991,"server_id":18,"link":"photo_4982534.html","width":130,"caption":"the end - details","height":162});
															thumbnails[7267240] = clik.newPhoto({"id":7267240,"src":"burn_800_thumb.jpg","galleries_id":282992,"server_id":18,"link":"photo_7267240.html","width":130,"caption":"Burn","height":187});
															thumbnails[7183424] = clik.newPhoto({"id":7183424,"src":"fragments_H800_thumb.jpg","galleries_id":282992,"server_id":18,"link":"photo_7183424.html","width":130,"caption":"fragments","height":158});
															thumbnails[7267249] = clik.newPhoto({"id":7267249,"src":"Ionie_Michael_thumb.jpg","galleries_id":282992,"server_id":18,"link":"photo_7267249.html","width":130,"caption":"Ionie and Michael","height":173});
															thumbnails[4982540] = clik.newPhoto({"id":4982540,"src":"negativethought_800_thumb.jpg","galleries_id":282992,"server_id":18,"link":"photo_4982540.html","width":130,"caption":"negative thoughts","height":92});
															thumbnails[4982542] = clik.newPhoto({"id":4982542,"src":"leaf_800_thumb.jpg","galleries_id":282992,"server_id":18,"link":"photo_4982542.html","width":130,"caption":"leaf","height":194});
															thumbnails[5027301] = clik.newPhoto({"id":5027301,"src":"lily_700_thumb.jpg","galleries_id":282992,"server_id":18,"link":"photo_5027301.html","width":130,"caption":"lily","height":183});
															thumbnails[5027299] = clik.newPhoto({"id":5027299,"src":"distortedbacon_800_thumb.jpg","galleries_id":282992,"server_id":18,"link":"photo_5027299.html","width":130,"caption":"distorted bacon","height":179});
															thumbnails[4982547] = clik.newPhoto({"id":4982547,"src":"attached_800_thumb.jpg","galleries_id":282992,"server_id":18,"link":"photo_4982547.html","width":130,"caption":"attached","height":101});
															thumbnails[4982549] = clik.newPhoto({"id":4982549,"src":"ambition_800_thumb.jpg","galleries_id":282992,"server_id":18,"link":"photo_4982549.html","width":130,"caption":"ambition","height":185});
															thumbnails[4982552] = clik.newPhoto({"id":4982552,"src":"feotus_800_thumb.jpg","galleries_id":282992,"server_id":18,"link":"photo_4982552.html","width":130,"caption":"Foetus","height":189});
															thumbnails[4982603] = clik.newPhoto({"id":4982603,"src":"original_800_thumb.jpg","galleries_id":282992,"server_id":18,"link":"photo_4982603.html","width":130,"caption":"original content","height":92});
															thumbnails[4982543] = clik.newPhoto({"id":4982543,"src":"faces_800_thumb.jpg","galleries_id":282992,"server_id":18,"link":"photo_4982543.html","width":130,"caption":"faces","height":98});
															thumbnails[4982545] = clik.newPhoto({"id":4982545,"src":"lines_800_thumb.jpg","galleries_id":282992,"server_id":18,"link":"photo_4982545.html","width":130,"caption":"lines","height":184});
															thumbnails[4982682] = clik.newPhoto({"id":4982682,"src":"vj_800_thumb.jpg","galleries_id":282992,"server_id":18,"link":"photo_4982682.html","width":130,"caption":"the vj","height":92});
															thumbnails[4982689] = clik.newPhoto({"id":4982689,"src":"freefromhim_800_thumb.jpg","galleries_id":282993,"server_id":18,"link":"photo_4982689.html","width":130,"caption":"free from you","height":74});
															thumbnails[5026585] = clik.newPhoto({"id":5026585,"src":"freefromhim_detail01_800_thumb.jpg","galleries_id":282993,"server_id":18,"link":"photo_5026585.html","width":130,"caption":"free from you - detail","height":154});
															thumbnails[5026604] = clik.newPhoto({"id":5026604,"src":"freefromhim_detail02_800_thumb.jpg","galleries_id":282993,"server_id":18,"link":"photo_5026604.html","width":130,"caption":"free from you - detail","height":115});
															thumbnails[5026606] = clik.newPhoto({"id":5026606,"src":"freefromhim_detail03_800_thumb.jpg","galleries_id":282993,"server_id":18,"link":"photo_5026606.html","width":130,"caption":"free from you - detail","height":121});
															thumbnails[4982696] = clik.newPhoto({"id":4982696,"src":"blackrain_800_thumb.jpg","galleries_id":282993,"server_id":18,"link":"photo_4982696.html","width":130,"caption":"black rain","height":104});
															thumbnails[4982691] = clik.newPhoto({"id":4982691,"src":"fountain_800_thumb.jpg","galleries_id":282993,"server_id":18,"link":"photo_4982691.html","width":130,"caption":"fountain","height":179});
															thumbnails[4982700] = clik.newPhoto({"id":4982700,"src":"openup_800_thumb.jpg","galleries_id":282993,"server_id":18,"link":"photo_4982700.html","width":130,"caption":"open up","height":181});
															thumbnails[4982704] = clik.newPhoto({"id":4982704,"src":"slhh_800_thumb.jpg","galleries_id":282993,"server_id":18,"link":"photo_4982704.html","width":130,"caption":"stumpy lost her heart","height":204});
															thumbnails[4982707] = clik.newPhoto({"id":4982707,"src":"Springtime09_800_thumb.jpg","galleries_id":282993,"server_id":18,"link":"photo_4982707.html","width":130,"caption":"springtime09","height":66});
															thumbnails[4982709] = clik.newPhoto({"id":4982709,"src":"ridofit_800_thumb.jpg","galleries_id":282993,"server_id":18,"link":"photo_4982709.html","width":130,"caption":"springtime09 - rid of it","height":132});
															thumbnails[4982713] = clik.newPhoto({"id":4982713,"src":"ridofhim_800_thumb.jpg","galleries_id":282993,"server_id":18,"link":"photo_4982713.html","width":130,"caption":"springtime09 - rid of him","height":129});
															thumbnails[5881831] = clik.newPhoto({"id":5881831,"src":"self_thumb.jpg","galleries_id":332260,"server_id":18,"link":"photo_5881831.html","width":130,"caption":"by this person","height":239});
															thumbnails[5881847] = clik.newPhoto({"id":5881847,"src":"p2_thumb.jpg","galleries_id":332260,"server_id":18,"link":"photo_5881847.html","width":130,"caption":"photo1","height":231});
															thumbnails[5881854] = clik.newPhoto({"id":5881854,"src":"p3_thumb.jpg","galleries_id":332260,"server_id":18,"link":"photo_5881854.html","width":130,"caption":"photo2","height":235});
															thumbnails[5881864] = clik.newPhoto({"id":5881864,"src":"p4_thumb.jpg","galleries_id":332260,"server_id":18,"link":"photo_5881864.html","width":130,"caption":"photo3","height":223});
															thumbnails[5881913] = clik.newPhoto({"id":5881913,"src":"p5_thumb.jpg","galleries_id":332260,"server_id":18,"link":"photo_5881913.html","width":130,"caption":"photo4","height":217});
															thumbnails[5881915] = clik.newPhoto({"id":5881915,"src":"p6_thumb.jpg","galleries_id":332260,"server_id":18,"link":"photo_5881915.html","width":130,"caption":"photo5","height":224});
															thumbnails[5881920] = clik.newPhoto({"id":5881920,"src":"p7_thumb.jpg","galleries_id":332260,"server_id":18,"link":"photo_5881920.html","width":130,"caption":"photo6","height":215});
															thumbnails[5881922] = clik.newPhoto({"id":5881922,"src":"p8_thumb.jpg","galleries_id":332260,"server_id":18,"link":"photo_5881922.html","width":130,"caption":"photo7","height":218});
															thumbnails[5881925] = clik.newPhoto({"id":5881925,"src":"p9_thumb.jpg","galleries_id":332260,"server_id":18,"link":"photo_5881925.html","width":130,"caption":"photo8","height":224});
															thumbnails[5881928] = clik.newPhoto({"id":5881928,"src":"p10_thumb.jpg","galleries_id":332260,"server_id":18,"link":"photo_5881928.html","width":130,"caption":"photo9","height":220});
															thumbnails[5881932] = clik.newPhoto({"id":5881932,"src":"p11_thumb.jpg","galleries_id":332260,"server_id":18,"link":"photo_5881932.html","width":130,"caption":"photo10","height":216});
															thumbnails[5881933] = clik.newPhoto({"id":5881933,"src":"p12_thumb.jpg","galleries_id":332260,"server_id":18,"link":"photo_5881933.html","width":130,"caption":"photo11","height":222});
															thumbnails[5881936] = clik.newPhoto({"id":5881936,"src":"p13_thumb.jpg","galleries_id":332260,"server_id":18,"link":"photo_5881936.html","width":130,"caption":"photo12","height":234});
															thumbnails[5881937] = clik.newPhoto({"id":5881937,"src":"p14_thumb.jpg","galleries_id":332260,"server_id":18,"link":"photo_5881937.html","width":130,"caption":"photo13","height":217});
															thumbnails[5881940] = clik.newPhoto({"id":5881940,"src":"p15_thumb.jpg","galleries_id":332260,"server_id":18,"link":"photo_5881940.html","width":130,"caption":"photo14","height":242});
															thumbnails[5881943] = clik.newPhoto({"id":5881943,"src":"p16_thumb.jpg","galleries_id":332260,"server_id":18,"link":"photo_5881943.html","width":130,"caption":"photo15","height":210});
															thumbnails[5881944] = clik.newPhoto({"id":5881944,"src":"p17_thumb.jpg","galleries_id":332260,"server_id":18,"link":"photo_5881944.html","width":130,"caption":"photo16","height":224});
															thumbnails[5881946] = clik.newPhoto({"id":5881946,"src":"p18_thumb.jpg","galleries_id":332260,"server_id":18,"link":"photo_5881946.html","width":130,"caption":"photo17","height":211});
															thumbnails[5881983] = clik.newPhoto({"id":5881983,"src":"p19_thumb.jpg","galleries_id":332260,"server_id":18,"link":"photo_5881983.html","width":130,"caption":"photo18","height":235});
															thumbnails[5881986] = clik.newPhoto({"id":5881986,"src":"p20_thumb.jpg","galleries_id":332260,"server_id":18,"link":"photo_5881986.html","width":130,"caption":"photo19","height":224});
															thumbnails[5881988] = clik.newPhoto({"id":5881988,"src":"p21_thumb.jpg","galleries_id":332260,"server_id":18,"link":"photo_5881988.html","width":130,"caption":"photo20","height":220});
															thumbnails[5881989] = clik.newPhoto({"id":5881989,"src":"p22_thumb.jpg","galleries_id":332260,"server_id":18,"link":"photo_5881989.html","width":130,"caption":"photo21","height":226});
															thumbnails[5881991] = clik.newPhoto({"id":5881991,"src":"p23_thumb.jpg","galleries_id":332260,"server_id":18,"link":"photo_5881991.html","width":130,"caption":"photo22","height":235});
															thumbnails[7267208] = clik.newPhoto({"id":7267208,"src":"TINHWR_thumb.jpg","galleries_id":393100,"server_id":18,"link":"photo_7267208.html","width":130,"caption":"This is not how we run","height":168});
															thumbnails[7267211] = clik.newPhoto({"id":7267211,"src":"TINHWR_d1_thumb.jpg","galleries_id":393100,"server_id":18,"link":"photo_7267211.html","width":130,"caption":"this is not how we run - detail ","height":87});
															thumbnails[7267214] = clik.newPhoto({"id":7267214,"src":"tinhwr_d3_thumb.jpg","galleries_id":393100,"server_id":18,"link":"photo_7267214.html","width":130,"caption":"this is not how we run - detail","height":195});
															thumbnails[7267215] = clik.newPhoto({"id":7267215,"src":"TINHWR_d2_thumb.jpg","galleries_id":393100,"server_id":18,"link":"photo_7267215.html","width":130,"caption":"","height":87});
															thumbnails[7267216] = clik.newPhoto({"id":7267216,"src":"tinhwr_d5_thumb.jpg","galleries_id":393100,"server_id":18,"link":"photo_7267216.html","width":130,"caption":"this is not how we run - detail","height":87});
															thumbnails[7267218] = clik.newPhoto({"id":7267218,"src":"tinhwr_d6_thumb.jpg","galleries_id":393100,"server_id":18,"link":"photo_7267218.html","width":130,"caption":"this is not how we run - detail","height":87});
															thumbnails[7267219] = clik.newPhoto({"id":7267219,"src":"tinhwr_d7_thumb.jpg","galleries_id":393100,"server_id":18,"link":"photo_7267219.html","width":130,"caption":"this is not how we run - detail","height":87});
															thumbnails[7267220] = clik.newPhoto({"id":7267220,"src":"tinhwr_bettinafung_studio_thumb.jpg","galleries_id":393100,"server_id":18,"link":"photo_7267220.html","width":130,"caption":"this is not how we run - in the studio","height":173});
															thumbnails[7267221] = clik.newPhoto({"id":7267221,"src":"bettinafung_working_thumb.jpg","galleries_id":393100,"server_id":18,"link":"photo_7267221.html","width":130,"caption":"this is not how we run - in the process","height":194});
															thumbnails[7796448] = clik.newPhoto({"id":7796448,"src":"thekiss_thumb.jpg","galleries_id":421141,"server_id":18,"link":"photo_7796448.html","width":130,"caption":"The Kiss","height":177});
															thumbnails[7796450] = clik.newPhoto({"id":7796450,"src":"burst_thumb.jpg","galleries_id":421141,"server_id":18,"link":"photo_7796450.html","width":130,"caption":"Burst","height":172});
															thumbnails[7796452] = clik.newPhoto({"id":7796452,"src":"circuits_thumb.jpg","galleries_id":421141,"server_id":18,"link":"photo_7796452.html","width":130,"caption":"Circuits","height":170});
															thumbnails[7796454] = clik.newPhoto({"id":7796454,"src":"masks_thumb.jpg","galleries_id":421141,"server_id":18,"link":"photo_7796454.html","width":130,"caption":"Masks","height":169});
															thumbnails[7796456] = clik.newPhoto({"id":7796456,"src":"face4eyes_thumb.jpg","galleries_id":421141,"server_id":18,"link":"photo_7796456.html","width":130,"caption":"Face4Eyes","height":170});
															thumbnails[7796458] = clik.newPhoto({"id":7796458,"src":"lungs_thumb.jpg","galleries_id":421141,"server_id":18,"link":"photo_7796458.html","width":130,"caption":"Lungs","height":169});
															thumbnails[7796459] = clik.newPhoto({"id":7796459,"src":"kissofdeath_thumb.jpg","galleries_id":421141,"server_id":18,"link":"photo_7796459.html","width":130,"caption":"Your kiss of death gives me a lease of life","height":188});
															thumbnails[7267248] = clik.newPhoto({"id":7267248,"src":"theheartofthematter_thumb.jpg","galleries_id":282995,"server_id":18,"link":"photo_7267248.html","width":130,"caption":"The heart of the matter is nothing","height":147});
															thumbnails[7267247] = clik.newPhoto({"id":7267247,"src":"koi_thumb.jpg","galleries_id":282995,"server_id":18,"link":"photo_7267247.html","width":130,"caption":"Koi","height":124});
															thumbnails[7267242] = clik.newPhoto({"id":7267242,"src":"shes_gone_thumb.jpg","galleries_id":282995,"server_id":18,"link":"photo_7267242.html","width":130,"caption":"she's gone","height":157});
															thumbnails[4981935] = clik.newPhoto({"id":4981935,"src":"praying_800_thumb.jpg","galleries_id":282995,"server_id":18,"link":"photo_4981935.html","width":130,"caption":"praying","height":193});
															thumbnails[4981936] = clik.newPhoto({"id":4981936,"src":"handsonher_800_thumb.jpg","galleries_id":282995,"server_id":18,"link":"photo_4981936.html","width":130,"caption":"hands on her","height":192});
															thumbnails[4981937] = clik.newPhoto({"id":4981937,"src":"handsonher_detail02_800_thumb.jpg","galleries_id":282995,"server_id":18,"link":"photo_4981937.html","width":130,"caption":"hands on her - detail","height":194});
															thumbnails[4981938] = clik.newPhoto({"id":4981938,"src":"handsonher_detail01_800_thumb.jpg","galleries_id":282995,"server_id":18,"link":"photo_4981938.html","width":130,"caption":"hands on her - detail","height":194});
															thumbnails[4981939] = clik.newPhoto({"id":4981939,"src":"angel_800_thumb.jpg","galleries_id":282995,"server_id":18,"link":"photo_4981939.html","width":130,"caption":"angel","height":98});
															thumbnails[4981924] = clik.newPhoto({"id":4981924,"src":"underground_800_thumb.jpg","galleries_id":282995,"server_id":18,"link":"photo_4981924.html","width":130,"caption":"underground","height":92});
															thumbnails[4981994] = clik.newPhoto({"id":4981994,"src":"sleep_work_800_thumb.jpg","galleries_id":282995,"server_id":18,"link":"photo_4981994.html","width":130,"caption":"and round and round and round we go..","height":91});
															thumbnails[4981922] = clik.newPhoto({"id":4981922,"src":"iheartwork_800_thumb.jpg","galleries_id":282995,"server_id":18,"link":"photo_4981922.html","width":130,"caption":"i heart work","height":93});
															thumbnails[4982834] = clik.newPhoto({"id":4982834,"src":"Lil_red_ridinghood_p1_800_thumb.jpg","galleries_id":283044,"server_id":18,"link":"photo_4982834.html","width":130,"caption":"little red riding hood excerpt","height":179});
															thumbnails[5198221] = clik.newPhoto({"id":5198221,"src":"Lil_red_ridinghood_p2_800_thumb.jpg","galleries_id":283044,"server_id":18,"link":"photo_5198221.html","width":130,"caption":"little red riding hood excerpt","height":179});
															thumbnails[4982848] = clik.newPhoto({"id":4982848,"src":"Vomit_cover_800_thumb.jpg","galleries_id":283044,"server_id":18,"link":"photo_4982848.html","width":130,"caption":"vomit book cover","height":188});
															thumbnails[4982854] = clik.newPhoto({"id":4982854,"src":"Vomit_pages_800_thumb.jpg","galleries_id":283044,"server_id":18,"link":"photo_4982854.html","width":130,"caption":"2 pages from vomit book","height":92});
															thumbnails[7267659] = clik.newPhoto({"id":7267659,"src":"cockno7_mansworld_thumb.jpg","galleries_id":393102,"server_id":18,"link":"photo_7267659.html","width":130,"caption":"This is a man's world","height":168});
															thumbnails[7267661] = clik.newPhoto({"id":7267661,"src":"cockno7_mansworld2_thumb.jpg","galleries_id":393102,"server_id":18,"link":"photo_7267661.html","width":130,"caption":"This is a man's world v2","height":174});
															thumbnails[7267662] = clik.newPhoto({"id":7267662,"src":"cockno7_candirugirls_thumb.jpg","galleries_id":393102,"server_id":18,"link":"photo_7267662.html","width":130,"caption":"The candiru is through screaming girls","height":169});
															thumbnails[7267663] = clik.newPhoto({"id":7267663,"src":"cockno7_shark_thumb.jpg","galleries_id":393102,"server_id":18,"link":"photo_7267663.html","width":130,"caption":"Sharks and sting lights burst behind his eyes","height":173});
															thumbnails[7267668] = clik.newPhoto({"id":7267668,"src":"cockno7_eel_thumb.jpg","galleries_id":393102,"server_id":18,"link":"photo_7267668.html","width":130,"caption":"Swimming pool small eel like fish penis escape and pierce the body they are going to die...","height":187});
															thumbnails[7267675] = clik.newPhoto({"id":7267675,"src":"cockno7_sup2_thumb.jpg","galleries_id":393102,"server_id":18,"link":"photo_7267675.html","width":130,"caption":"Gobledee-goble-dee-COCK - SENSE NONSENSE ","height":180});
															thumbnails[7267676] = clik.newPhoto({"id":7267676,"src":"cockno7_sup3_thumb.jpg","galleries_id":393102,"server_id":18,"link":"photo_7267676.html","width":130,"caption":"Gobledee-goble-dee-COCK - SENSE NONSENSE","height":176});
															thumbnails[7267681] = clik.newPhoto({"id":7267681,"src":"cockno7_sup4_thumb.jpg","galleries_id":393102,"server_id":18,"link":"photo_7267681.html","width":130,"caption":"Gobledee-goble-dee-COCK - SENSE NONSENSE","height":174});
															thumbnails[7267683] = clik.newPhoto({"id":7267683,"src":"cockno7_sup5_thumb.jpg","galleries_id":393102,"server_id":18,"link":"photo_7267683.html","width":130,"caption":"Gobledee-goble-dee-COCK - SENSE NONSENSE","height":173});
															thumbnails[7267685] = clik.newPhoto({"id":7267685,"src":"cockno7_sup6_thumb.jpg","galleries_id":393102,"server_id":18,"link":"photo_7267685.html","width":130,"caption":"Gobledee-goble-dee-COCK - SENSE NONSENSE","height":162});
															thumbnails[7267687] = clik.newPhoto({"id":7267687,"src":"cockno7_sup7_thumb.jpg","galleries_id":393102,"server_id":18,"link":"photo_7267687.html","width":130,"caption":"Gobledee-goble-dee-COCK - SENSE NONSENSE","height":171});
															thumbnails[7267701] = clik.newPhoto({"id":7267701,"src":"Manifestation171210_Barbican_thumb.jpg","galleries_id":393102,"server_id":18,"link":"photo_7267701.html","width":130,"caption":"Manifestation 171210","height":128});
															thumbnails[7267702] = clik.newPhoto({"id":7267702,"src":"cockno7_auto1_thumb.jpg","galleries_id":393102,"server_id":18,"link":"photo_7267702.html","width":130,"caption":"Auto draw","height":179});
															thumbnails[7267707] = clik.newPhoto({"id":7267707,"src":"cockno7_auto2_thumb.jpg","galleries_id":393102,"server_id":18,"link":"photo_7267707.html","width":130,"caption":"Autodraw 2","height":95});
															thumbnails[7267708] = clik.newPhoto({"id":7267708,"src":"cockno7_auto4_thumb.jpg","galleries_id":393102,"server_id":18,"link":"photo_7267708.html","width":130,"caption":"Autodraw 3","height":152});
															thumbnails[8746077] = clik.newPhoto({"id":8746077,"src":"cover_thumb.jpg","galleries_id":393102,"server_id":18,"link":"photo_8746077.html","width":130,"caption":"Issue 3 - Cover1","height":184});
															thumbnails[8746078] = clik.newPhoto({"id":8746078,"src":"cover2_thumb.jpg","galleries_id":393102,"server_id":18,"link":"photo_8746078.html","width":130,"caption":"Issue 3 Cover 2","height":184});
															thumbnails[8746076] = clik.newPhoto({"id":8746076,"src":"fleshandbones_bfung_thumb.jpg","galleries_id":393102,"server_id":18,"link":"photo_8746076.html","width":130,"caption":"Flesh and Bones","height":92});
															thumbnails[8746079] = clik.newPhoto({"id":8746079,"src":"cardXIII_bfung_thumb.jpg","galleries_id":393102,"server_id":18,"link":"photo_8746079.html","width":130,"caption":"Card XIII","height":184});
															thumbnails[8746081] = clik.newPhoto({"id":8746081,"src":"meoldman_bfung_thumb.jpg","galleries_id":393102,"server_id":18,"link":"photo_8746081.html","width":130,"caption":"Me old man","height":184});
															thumbnails[4982870] = clik.newPhoto({"id":4982870,"src":"zebra_400_thumb.jpg","galleries_id":283046,"server_id":18,"link":"photo_4982870.html","width":130,"caption":"we saw zebras - mother & daughter","height":124});
															thumbnails[4982900] = clik.newPhoto({"id":4982900,"src":"another-london1_400_thumb.jpg","galleries_id":283046,"server_id":18,"link":"photo_4982900.html","width":130,"caption":"another london 1","height":96});
															thumbnails[4982889] = clik.newPhoto({"id":4982889,"src":"another-london2_400_thumb.jpg","galleries_id":283046,"server_id":18,"link":"photo_4982889.html","width":130,"caption":"another london 2","height":95});
															thumbnails[4982882] = clik.newPhoto({"id":4982882,"src":"another-london3_400_thumb.jpg","galleries_id":283046,"server_id":18,"link":"photo_4982882.html","width":130,"caption":"another london 3","height":103});
															thumbnails[4982913] = clik.newPhoto({"id":4982913,"src":"fairy1_800_thumb.jpg","galleries_id":283046,"server_id":18,"link":"photo_4982913.html","width":130,"caption":"fairytale storyboard 1<br>\r\n","height":179});
															thumbnails[4982925] = clik.newPhoto({"id":4982925,"src":"fairy4_800_thumb.jpg","galleries_id":283046,"server_id":18,"link":"photo_4982925.html","width":130,"caption":"fairytale storyboard 2","height":179});
															thumbnails[7613563] = clik.newPhoto({"id":7613563,"src":"mrpunch2_1_thumb.jpg","galleries_id":412961,"server_id":18,"link":"photo_7613563.html","width":130,"caption":"Strange Factories - Emma","height":186});
															thumbnails[7613555] = clik.newPhoto({"id":7613555,"src":"fields_thumb.jpg","galleries_id":412961,"server_id":18,"link":"photo_7613555.html","width":130,"caption":"Strange Factories - Fields","height":91});
															thumbnails[7613559] = clik.newPhoto({"id":7613559,"src":"leaves_thumb.jpg","galleries_id":412961,"server_id":18,"link":"photo_7613559.html","width":130,"caption":"Strange Factories - Leaves","height":185});
															thumbnails[7613561] = clik.newPhoto({"id":7613561,"src":"tower_thumb.jpg","galleries_id":412961,"server_id":18,"link":"photo_7613561.html","width":130,"caption":"Strange Factories - The Tower","height":185});
															thumbnails[7613623] = clik.newPhoto({"id":7613623,"src":"mrpunchtower_thumb.jpg","galleries_id":412961,"server_id":18,"link":"photo_7613623.html","width":130,"caption":"Strange Factories - Punch","height":187});
															thumbnails[8745695] = clik.newPhoto({"id":8745695,"src":"SF_STORYBOARD_scene1-6_02_thumb.jpg","galleries_id":412961,"server_id":18,"link":"photo_8745695.html","width":130,"caption":"Strange Factories Storyboard Excerpt","height":190});
															thumbnails[8745697] = clik.newPhoto({"id":8745697,"src":"SF_STORYBOARD_scene1-6_03_thumb.jpg","galleries_id":412961,"server_id":18,"link":"photo_8745697.html","width":130,"caption":"Strange Factories Storyboard Excerpt","height":190});
															thumbnails[8745699] = clik.newPhoto({"id":8745699,"src":"SF_STORYBOARD_scene1-6_04_thumb.jpg","galleries_id":412961,"server_id":18,"link":"photo_8745699.html","width":130,"caption":"Strange Factories Storyboard Excerpt","height":190});
															thumbnails[8745707] = clik.newPhoto({"id":8745707,"src":"SF_STORYBOARD_scene1-6_05_thumb.jpg","galleries_id":412961,"server_id":18,"link":"photo_8745707.html","width":130,"caption":"Strange Factories Storyboard Excerpt","height":190});
															thumbnails[8745710] = clik.newPhoto({"id":8745710,"src":"SF_STORYBOARD_scene1-6_06_thumb.jpg","galleries_id":412961,"server_id":18,"link":"photo_8745710.html","width":130,"caption":"Strange Factories Storyboard Excerpt","height":190});
															thumbnails[8745715] = clik.newPhoto({"id":8745715,"src":"SF_STORYBOARD_scene1-6_07_thumb.jpg","galleries_id":412961,"server_id":18,"link":"photo_8745715.html","width":130,"caption":"Strange Factories Storyboard Excerpt","height":190});
															thumbnails[8745717] = clik.newPhoto({"id":8745717,"src":"SF_STORYBOARD_scene1-6_08_thumb.jpg","galleries_id":412961,"server_id":18,"link":"photo_8745717.html","width":130,"caption":"Strange Factories Storyboard Excerpt","height":190});
															thumbnails[8745725] = clik.newPhoto({"id":8745725,"src":"SF_STORYBOARD_scene1-6_09_thumb.jpg","galleries_id":412961,"server_id":18,"link":"photo_8745725.html","width":130,"caption":"Strange Factories Storyboard Excerpt","height":190});
															thumbnails[8745735] = clik.newPhoto({"id":8745735,"src":"SF_STORYBOARD_scene1-6_10_thumb.jpg","galleries_id":412961,"server_id":18,"link":"photo_8745735.html","width":130,"caption":"Strange Factories Storyboard Excerpt","height":190});
															thumbnails[8745742] = clik.newPhoto({"id":8745742,"src":"SF_STORYBOARD_scene1-6_11_thumb.jpg","galleries_id":412961,"server_id":18,"link":"photo_8745742.html","width":130,"caption":"Strange Factories Storyboard Excerpt","height":190});
															thumbnails[8745744] = clik.newPhoto({"id":8745744,"src":"SF_STORYBOARD_scene1-6_12_thumb.jpg","galleries_id":412961,"server_id":18,"link":"photo_8745744.html","width":130,"caption":"Strange Factories Storyboard Excerpt","height":190});
															thumbnails[8745752] = clik.newPhoto({"id":8745752,"src":"SF_STORYBOARD_scene1-6_13_thumb.jpg","galleries_id":412961,"server_id":18,"link":"photo_8745752.html","width":130,"caption":"Strange Factories Storyboard Excerpt","height":190});
															thumbnails[9108330] = clik.newPhoto({"id":9108330,"src":"SOV_p1_1_thumb.jpg","galleries_id":412961,"server_id":18,"link":"photo_9108330.html","width":130,"caption":"Society of Vandals booklet Artwork 1","height":169});
															thumbnails[9108332] = clik.newPhoto({"id":9108332,"src":"SOV_p2_1_thumb.jpg","galleries_id":412961,"server_id":35,"link":"photo_9108332.html","width":130,"caption":"Society of Vandals Booklet Artwork 2","height":177});
															thumbnails[9108334] = clik.newPhoto({"id":9108334,"src":"SOV_p3_1_thumb.jpg","galleries_id":412961,"server_id":35,"link":"photo_9108334.html","width":130,"caption":"Society of Vandals Booklet Artwork 3","height":184});
															thumbnails[9108335] = clik.newPhoto({"id":9108335,"src":"SOV_p4_1_thumb.jpg","galleries_id":412961,"server_id":35,"link":"photo_9108335.html","width":130,"caption":"Society of Vandals Booklet Artwork 4","height":184});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[283044] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Comic Gallery","link":"section467347_283044.html","maxRecords":0.0,"photoIDs":[4982834.0,5198221.0,4982848.0,4982854.0],"skipIndex":0,"section_code":"section467347","featured_images":4982834.0,"id":283044,"singleSection":false});				  						galleries[283046] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Film Artwork","link":"section339440_283046.html","maxRecords":0.0,"photoIDs":[4982870.0,4982900.0,4982889.0,4982882.0,4982913.0,4982925.0],"skipIndex":0,"section_code":"section339440","featured_images":4982870.0,"id":283046,"singleSection":false});				  						galleries[412961] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Strange Factories","link":"section339440_412961.html","maxRecords":0.0,"photoIDs":[7613563.0,7613555.0,7613559.0,7613561.0,7613623.0,8745695.0,8745697.0,8745699.0,8745707.0,8745710.0,8745715.0,8745717.0,8745725.0,8745735.0,8745742.0,8745744.0,8745752.0,9108330.0,9108332.0,9108334.0,9108335.0],"skipIndex":0,"section_code":"section339440","featured_images":7613563.0,"id":412961,"singleSection":false});				  						galleries[393102] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Cock No. 7 Gallery","link":"section467347_393102.html","maxRecords":0.0,"photoIDs":[7267659.0,7267661.0,7267662.0,7267663.0,7267668.0,7267675.0,7267676.0,7267681.0,7267683.0,7267685.0,7267687.0,7267701.0,7267702.0,7267707.0,7267708.0,8746077.0,8746078.0,8746076.0,8746079.0,8746081.0],"skipIndex":0,"section_code":"section467347","featured_images":7267659.0,"id":393102,"singleSection":false});				  						galleries[421141] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Between the gaps of reason","link":"gallery_421141.html","maxRecords":0.0,"photoIDs":[7796448.0,7796450.0,7796452.0,7796454.0,7796456.0,7796458.0,7796459.0],"skipIndex":0,"section_code":"gallery","featured_images":7796448.0,"id":421141,"singleSection":false});				  						galleries[393100] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"This is not how we run","link":"gallery_393100.html","maxRecords":0.0,"photoIDs":[7267208.0,7267211.0,7267214.0,7267215.0,7267216.0,7267218.0,7267219.0,7267220.0,7267221.0],"skipIndex":0,"section_code":"gallery","featured_images":7267208.0,"id":393100,"singleSection":false});				  						galleries[332260] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"she dreamt she was a camera","link":"gallery_332260.html","maxRecords":0.0,"photoIDs":[5881831.0,5881847.0,5881854.0,5881864.0,5881913.0,5881915.0,5881920.0,5881922.0,5881925.0,5881928.0,5881932.0,5881933.0,5881936.0,5881937.0,5881940.0,5881943.0,5881944.0,5881946.0,5881983.0,5881986.0,5881988.0,5881989.0,5881991.0],"skipIndex":0,"section_code":"gallery","featured_images":5881943.0,"id":332260,"singleSection":false});				  						galleries[282993] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"heartaches = more drawings","link":"gallery_282993.html","maxRecords":0.0,"photoIDs":[4982689.0,5026585.0,5026604.0,5026606.0,4982696.0,4982691.0,4982700.0,4982704.0,4982707.0,4982709.0,4982713.0],"skipIndex":0,"section_code":"gallery","featured_images":4982704.0,"id":282993,"singleSection":false});				  						galleries[282991] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"the beginning and the beginning of the end","link":"gallery_282991.html","maxRecords":0.0,"photoIDs":[4982376.0,5026940.0,5026955.0,7268155.0,4982381.0,4982389.0,4982515.0,4982517.0,4982519.0,4982533.0,4982531.0,4982529.0,4982530.0,4982534.0],"skipIndex":0,"section_code":"gallery","featured_images":5026940.0,"id":282991,"singleSection":false});				  						galleries[282992] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"fine lines","link":"gallery_282992.html","maxRecords":0.0,"photoIDs":[7267240.0,7183424.0,7267249.0,4982540.0,4982542.0,5027301.0,5027299.0,4982547.0,4982549.0,4982552.0,4982603.0,4982543.0,4982545.0,4982682.0],"skipIndex":0,"section_code":"gallery","featured_images":7183424.0,"id":282992,"singleSection":false});				  						galleries[282995] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"misfits\/b-sides","link":"section467216.html","maxRecords":0.0,"photoIDs":[7267248.0,7267247.0,7267242.0,4981935.0,4981936.0,4981937.0,4981938.0,4981939.0,4981924.0,4981994.0,4981922.0],"skipIndex":0,"section_code":"section467216","featured_images":"7267248,4981924","id":282995,"singleSection":true});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7613563,7267240,7183424,4982700,4982704,5881988,7267208,7267663,7796448,7796452';
imageSets[2] = '4982834,4982870,7613563,5026940,7183424,4982704,5881943,7267208,7267659,7267248,4981924,7796448';
imageSets[3] = '9108335,9108334,9108332,9108330,9008941,8746081,8746079,8746078,8746077,8746076,8745752,8745744,8745742,8745735,8745725,8745717,8745715,8745710,8745707,8745699,8745697,8745695,7796459,7796458,7796456,7796454,7796452,7796450,7796448,7613623,7613563,7613561,7613559,7613555,7268155,7268045,7268042,7267708,7267707,7267702,7267701,7267687,7267685,7267683,7267681,7267676,7267675,7267668,7267663,7267662';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/anitteb/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/anitteb/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/anitteb/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/anitteb/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/anitteb/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/anitteb/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/anitteb/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/anitteb/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/anitteb/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/anitteb/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/anitteb/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/anitteb/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/anitteb/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/anitteb/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/anitteb/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/anitteb/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/anitteb/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/anitteb/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/anitteb/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/anitteb/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/anitteb/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/anitteb/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/anitteb/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/anitteb/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/anitteb/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/anitteb/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/anitteb/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 = 'Bettina FUNG WAN SHAN : ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> AU$' + (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="">';
					temp += '<input type="hidden" name="currency_code" value="AUD">';
					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="">';
				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;
	}
}

			

