window.thumbnails = {};
															thumbnails[9017254] = clik.newPhoto({"id":9017254,"src":"3_meters_deep_3_thumb.jpg","galleries_id":475247,"server_id":5,"link":"photo_9017254.html","width":130,"caption":"","height":130});
															thumbnails[6407553] = clik.newPhoto({"id":6407553,"src":"convolvulus_thumb.jpg","galleries_id":354057,"server_id":5,"link":"photo_6407553.html","width":130,"caption":"Convolvulus, shot with diffuser screen on location for exhibition at Elixir.","height":130});
															thumbnails[6197814] = clik.newPhoto({"id":6197814,"src":"marseille-web_thumb.jpg","galleries_id":345974,"server_id":5,"link":"photo_6197814.html","width":130,"caption":"","height":130});
															thumbnails[6197815] = clik.newPhoto({"id":6197815,"src":"marseille-2-web_thumb.jpg","galleries_id":345974,"server_id":5,"link":"photo_6197815.html","width":130,"caption":"","height":130});
															thumbnails[5844774] = clik.newPhoto({"id":5844774,"src":"straight_thumb.jpg","galleries_id":299251,"server_id":5,"link":"photo_5844774.html","width":130,"caption":"'toxic beauty'","height":130});
															thumbnails[6381317] = clik.newPhoto({"id":6381317,"src":"sinai-1_thumb.jpg","galleries_id":299199,"server_id":5,"link":"photo_6381317.html","width":124,"caption":"","height":124});
															thumbnails[5330063] = clik.newPhoto({"id":5330063,"src":"Posterdahab3_thumb.jpg","galleries_id":299199,"server_id":5,"link":"photo_5330063.html","width":130,"caption":"View from top of Mount Sinai","height":130});
															thumbnails[6381326] = clik.newPhoto({"id":6381326,"src":"IMG_0260_thumb.jpg","galleries_id":299199,"server_id":5,"link":"photo_6381326.html","width":130,"caption":"Mount Sinai","height":130});
															thumbnails[6381328] = clik.newPhoto({"id":6381328,"src":"IMG_0198_thumb.jpg","galleries_id":299199,"server_id":5,"link":"photo_6381328.html","width":130,"caption":"Sunrise on mount Sinai","height":130});
															thumbnails[5350989] = clik.newPhoto({"id":5350989,"src":"DSC_0270_1805BFEF-2219-B5B5-4C89E880599B5FA6_thumb.jpg","galleries_id":301314,"server_id":5,"link":"photo_5350989.html","width":130,"caption":"","height":130});
															thumbnails[5354208] = clik.newPhoto({"id":5354208,"src":"DSC_0074_thumb.jpg","galleries_id":299197,"server_id":5,"link":"photo_5354208.html","width":130,"caption":"'Femininity'","height":130});
															thumbnails[5346187] = clik.newPhoto({"id":5346187,"src":"DSC_0157_thumb.jpg","galleries_id":300935,"server_id":5,"link":"photo_5346187.html","width":130,"caption":"Kiki","height":130});
															thumbnails[5346188] = clik.newPhoto({"id":5346188,"src":"DSC_0084_thumb.jpg","galleries_id":300935,"server_id":5,"link":"photo_5346188.html","width":130,"caption":"Kiki","height":130});
															thumbnails[5346189] = clik.newPhoto({"id":5346189,"src":"kiki-2_thumb.jpg","galleries_id":300935,"server_id":5,"link":"photo_5346189.html","width":130,"caption":"Kiki","height":130});
															thumbnails[5346191] = clik.newPhoto({"id":5346191,"src":"kiki-3_thumb.jpg","galleries_id":300935,"server_id":5,"link":"photo_5346191.html","width":130,"caption":"Kiki","height":130});
															thumbnails[5346192] = clik.newPhoto({"id":5346192,"src":"kiki_thumb.jpg","galleries_id":300935,"server_id":5,"link":"photo_5346192.html","width":130,"caption":"Kiki","height":130});
															thumbnails[5317032] = clik.newPhoto({"id":5317032,"src":"guilty_pleasure-5_thumb.jpg","galleries_id":299197,"server_id":5,"link":"photo_5317032.html","width":130,"caption":"'Sleep'","height":130});
															thumbnails[5317068] = clik.newPhoto({"id":5317068,"src":"PIAF-1_thumb.jpg","galleries_id":299284,"server_id":5,"link":"photo_5317068.html","width":130,"caption":"","height":130});
															thumbnails[5317072] = clik.newPhoto({"id":5317072,"src":"PIAF-5_thumb.jpg","galleries_id":299284,"server_id":5,"link":"photo_5317072.html","width":130,"caption":"","height":130});
															thumbnails[5317076] = clik.newPhoto({"id":5317076,"src":"PIAF-6_thumb.jpg","galleries_id":299284,"server_id":5,"link":"photo_5317076.html","width":130,"caption":"","height":130});
															thumbnails[5317216] = clik.newPhoto({"id":5317216,"src":"PIAF-4_thumb.jpg","galleries_id":299284,"server_id":5,"link":"photo_5317216.html","width":130,"caption":"","height":130});
															thumbnails[5326006] = clik.newPhoto({"id":5326006,"src":"rice-f-21_thumb.jpg","galleries_id":299191,"server_id":5,"link":"photo_5326006.html","width":130,"caption":"","height":130});
															thumbnails[5330036] = clik.newPhoto({"id":5330036,"src":"camel_thumb.jpg","galleries_id":299199,"server_id":5,"link":"photo_5330036.html","width":130,"caption":"Ras Abu Galum","height":130});
															thumbnails[5330038] = clik.newPhoto({"id":5330038,"src":"IMG_0206_thumb.jpg","galleries_id":299199,"server_id":5,"link":"photo_5330038.html","width":130,"caption":"","height":130});
															thumbnails[5330048] = clik.newPhoto({"id":5330048,"src":"IMG_0309_thumb.jpg","galleries_id":299199,"server_id":5,"link":"photo_5330048.html","width":130,"caption":"","height":130});
															thumbnails[5330052] = clik.newPhoto({"id":5330052,"src":"IMG_0323_thumb.jpg","galleries_id":299199,"server_id":5,"link":"photo_5330052.html","width":130,"caption":"","height":130});
															thumbnails[5330055] = clik.newPhoto({"id":5330055,"src":"IMG_0342_thumb.jpg","galleries_id":299199,"server_id":5,"link":"photo_5330055.html","width":130,"caption":"","height":130});
															thumbnails[5333593] = clik.newPhoto({"id":5333593,"src":"naomi-1_thumb.jpg","galleries_id":299251,"server_id":5,"link":"photo_5333593.html","width":130,"caption":"'Escapism'","height":130});
															thumbnails[5333601] = clik.newPhoto({"id":5333601,"src":"naomi-2-1_thumb.jpg","galleries_id":299251,"server_id":5,"link":"photo_5333601.html","width":130,"caption":"'Escapism'","height":130});
															thumbnails[5339918] = clik.newPhoto({"id":5339918,"src":"DSC_0284_thumb.jpg","galleries_id":300660,"server_id":5,"link":"photo_5339918.html","width":130,"caption":"","height":130});
															thumbnails[5339921] = clik.newPhoto({"id":5339921,"src":"DSC_0289_thumb.jpg","galleries_id":300660,"server_id":5,"link":"photo_5339921.html","width":130,"caption":"","height":130});
															thumbnails[5339927] = clik.newPhoto({"id":5339927,"src":"DSC_0295-retouch_copy_thumb.jpg","galleries_id":300660,"server_id":5,"link":"photo_5339927.html","width":130,"caption":"","height":130});
															thumbnails[5339932] = clik.newPhoto({"id":5339932,"src":"DSC_0297_thumb.jpg","galleries_id":300660,"server_id":5,"link":"photo_5339932.html","width":130,"caption":"","height":130});
															thumbnails[5339933] = clik.newPhoto({"id":5339933,"src":"DSC_0299_thumb.jpg","galleries_id":300660,"server_id":5,"link":"photo_5339933.html","width":130,"caption":"","height":130});
															thumbnails[6407650] = clik.newPhoto({"id":6407650,"src":"emily-1_thumb.jpg","galleries_id":347911,"server_id":5,"link":"photo_6407650.html","width":130,"caption":"","height":130});
															thumbnails[6407660] = clik.newPhoto({"id":6407660,"src":"emily2_thumb.jpg","galleries_id":347911,"server_id":5,"link":"photo_6407660.html","width":130,"caption":"","height":130});
															thumbnails[6407662] = clik.newPhoto({"id":6407662,"src":"emily3_thumb.jpg","galleries_id":347911,"server_id":5,"link":"photo_6407662.html","width":130,"caption":"","height":130});
															thumbnails[6407665] = clik.newPhoto({"id":6407665,"src":"emily4_thumb.jpg","galleries_id":347911,"server_id":5,"link":"photo_6407665.html","width":130,"caption":"","height":130});
															thumbnails[6407668] = clik.newPhoto({"id":6407668,"src":"emily5_thumb.jpg","galleries_id":347911,"server_id":5,"link":"photo_6407668.html","width":130,"caption":"","height":130});
															thumbnails[7148011] = clik.newPhoto({"id":7148011,"src":"callalily_thumb.jpg","galleries_id":299730,"server_id":5,"link":"photo_7148011.html","width":130,"caption":"","height":130});
															thumbnails[7148013] = clik.newPhoto({"id":7148013,"src":"Dcherry_blossom-blue_thumb.jpg","galleries_id":299730,"server_id":5,"link":"photo_7148013.html","width":130,"caption":"","height":130});
															thumbnails[7219953] = clik.newPhoto({"id":7219953,"src":"Hongkong-3_thumb.jpg","galleries_id":352981,"server_id":5,"link":"photo_7219953.html","width":130,"caption":"","height":130});
															thumbnails[7219955] = clik.newPhoto({"id":7219955,"src":"hongkong-4_thumb.jpg","galleries_id":352981,"server_id":5,"link":"photo_7219955.html","width":130,"caption":"","height":130});
															thumbnails[7219959] = clik.newPhoto({"id":7219959,"src":"Hongkong1-_web_thumb.jpg","galleries_id":352981,"server_id":5,"link":"photo_7219959.html","width":130,"caption":"","height":130});
															thumbnails[7219961] = clik.newPhoto({"id":7219961,"src":"Honkgkong-2_thumb.jpg","galleries_id":352981,"server_id":5,"link":"photo_7219961.html","width":130,"caption":"","height":130});
															thumbnails[7142010] = clik.newPhoto({"id":7142010,"src":"winter_thumb.jpg","galleries_id":354057,"server_id":5,"link":"photo_7142010.html","width":130,"caption":"","height":130});
															thumbnails[7220017] = clik.newPhoto({"id":7220017,"src":"cherry_blossom._pink_thumb.jpg","galleries_id":299730,"server_id":5,"link":"photo_7220017.html","width":130,"caption":"","height":130});
															thumbnails[7879110] = clik.newPhoto({"id":7879110,"src":"pascale-3-web_thumb.jpg","galleries_id":425228,"server_id":5,"link":"photo_7879110.html","width":130,"caption":"","height":130});
															thumbnails[6256885] = clik.newPhoto({"id":6256885,"src":"emily-2_thumb.jpg","galleries_id":347911,"server_id":5,"link":"photo_6256885.html","width":130,"caption":"","height":130});
															thumbnails[6197810] = clik.newPhoto({"id":6197810,"src":"swan-web_thumb.jpg","galleries_id":345974,"server_id":5,"link":"photo_6197810.html","width":130,"caption":"","height":130});
															thumbnails[5350952] = clik.newPhoto({"id":5350952,"src":"DSC_0016_thumb.jpg","galleries_id":301314,"server_id":5,"link":"photo_5350952.html","width":130,"caption":"","height":130});
															thumbnails[5315751] = clik.newPhoto({"id":5315751,"src":"hong-kong_thumb.jpg","galleries_id":352981,"server_id":5,"link":"photo_5315751.html","width":130,"caption":"Hong Kong, start of my travel into China, mainland.","height":130});
															thumbnails[5317025] = clik.newPhoto({"id":5317025,"src":"guilty_pleasure-1_thumb.jpg","galleries_id":299197,"server_id":5,"link":"photo_5317025.html","width":130,"caption":"'Corsett\/restrain'","height":130});
															thumbnails[5317882] = clik.newPhoto({"id":5317882,"src":"image-21_thumb.jpg","galleries_id":299198,"server_id":5,"link":"photo_5317882.html","width":130,"caption":"","height":130});
															thumbnails[5326249] = clik.newPhoto({"id":5326249,"src":"jesus_thumb.jpg","galleries_id":299732,"server_id":5,"link":"photo_5326249.html","width":130,"caption":"","height":130});
															thumbnails[5339892] = clik.newPhoto({"id":5339892,"src":"DSC_0036_thumb.jpg","galleries_id":299290,"server_id":5,"link":"photo_5339892.html","width":130,"caption":"","height":130});
															thumbnails[6112505] = clik.newPhoto({"id":6112505,"src":"painting-1_thumb.jpg","galleries_id":299730,"server_id":5,"link":"photo_6112505.html","width":130,"caption":"HONGKONG, urban landscape","height":130});
															thumbnails[7302936] = clik.newPhoto({"id":7302936,"src":"web1web12_thumb.jpg","galleries_id":395029,"server_id":5,"link":"photo_7302936.html","width":130,"caption":"","height":130});
															thumbnails[6256903] = clik.newPhoto({"id":6256903,"src":"emily-6_thumb.jpg","galleries_id":347911,"server_id":5,"link":"photo_6256903.html","width":130,"caption":"","height":130});
															thumbnails[7879117] = clik.newPhoto({"id":7879117,"src":"pascale-7-web_thumb.jpg","galleries_id":425228,"server_id":5,"link":"photo_7879117.html","width":130,"caption":"","height":130});
															thumbnails[7302924] = clik.newPhoto({"id":7302924,"src":"bandweb_thumb.jpg","galleries_id":395029,"server_id":5,"link":"photo_7302924.html","width":130,"caption":"","height":130});
															thumbnails[6407613] = clik.newPhoto({"id":6407613,"src":"yellowflower_thumb.jpg","galleries_id":354057,"server_id":5,"link":"photo_6407613.html","width":130,"caption":"Iris","height":130});
															thumbnails[6197811] = clik.newPhoto({"id":6197811,"src":"poppyfield-web_thumb.jpg","galleries_id":345974,"server_id":5,"link":"photo_6197811.html","width":130,"caption":"","height":130});
															thumbnails[5350960] = clik.newPhoto({"id":5350960,"src":"DSC_0043_thumb.jpg","galleries_id":301314,"server_id":5,"link":"photo_5350960.html","width":130,"caption":"","height":130});
															thumbnails[5315816] = clik.newPhoto({"id":5315816,"src":"Ricefield-1_thumb.jpg","galleries_id":299191,"server_id":5,"link":"photo_5315816.html","width":130,"caption":"Planting season of rice in Yunnan Province","height":130});
															thumbnails[5317029] = clik.newPhoto({"id":5317029,"src":"guilty_pleasure-3_thumb.jpg","galleries_id":299197,"server_id":5,"link":"photo_5317029.html","width":130,"caption":"'Porn'","height":130});
															thumbnails[5317069] = clik.newPhoto({"id":5317069,"src":"PIAF-2_thumb.jpg","galleries_id":299284,"server_id":5,"link":"photo_5317069.html","width":130,"caption":"","height":130});
															thumbnails[5317883] = clik.newPhoto({"id":5317883,"src":"image-41_thumb.jpg","galleries_id":299198,"server_id":5,"link":"photo_5317883.html","width":130,"caption":"","height":130});
															thumbnails[5325989] = clik.newPhoto({"id":5325989,"src":"rice-f-1_thumb.jpg","galleries_id":299191,"server_id":5,"link":"photo_5325989.html","width":130,"caption":"Rice fields in Yunnan, Spring 2008","height":130});
															thumbnails[5326245] = clik.newPhoto({"id":5326245,"src":"J_thumb.jpg","galleries_id":299732,"server_id":5,"link":"photo_5326245.html","width":130,"caption":"","height":130});
															thumbnails[5339851] = clik.newPhoto({"id":5339851,"src":"DSC_0009_thumb.jpg","galleries_id":299290,"server_id":5,"link":"photo_5339851.html","width":130,"caption":"","height":130});
															thumbnails[6112513] = clik.newPhoto({"id":6112513,"src":"painting-2_thumb.jpg","galleries_id":299730,"server_id":5,"link":"photo_6112513.html","width":130,"caption":"HONGKONG, urban landscape","height":130});
															thumbnails[5350976] = clik.newPhoto({"id":5350976,"src":"DSC_0075_thumb.jpg","galleries_id":301314,"server_id":5,"link":"photo_5350976.html","width":130,"caption":"","height":130});
															thumbnails[7302926] = clik.newPhoto({"id":7302926,"src":"drumsweb_thumb.jpg","galleries_id":395029,"server_id":5,"link":"photo_7302926.html","width":130,"caption":"","height":130});
															thumbnails[6256897] = clik.newPhoto({"id":6256897,"src":"emily-4_thumb.jpg","galleries_id":347911,"server_id":5,"link":"photo_6256897.html","width":130,"caption":"","height":130});
															thumbnails[6197813] = clik.newPhoto({"id":6197813,"src":"poppyfield-2-web_thumb.jpg","galleries_id":345974,"server_id":5,"link":"photo_6197813.html","width":130,"caption":"","height":130});
															thumbnails[5326243] = clik.newPhoto({"id":5326243,"src":"rice-f-17_thumb.jpg","galleries_id":299191,"server_id":5,"link":"photo_5326243.html","width":130,"caption":"Ricefield in Yunnan Province, Spring 2008","height":130});
															thumbnails[5326255] = clik.newPhoto({"id":5326255,"src":"mary_thumb.jpg","galleries_id":299732,"server_id":5,"link":"photo_5326255.html","width":130,"caption":"","height":130});
															thumbnails[5335874] = clik.newPhoto({"id":5335874,"src":"DSC_0046_thumb.jpg","galleries_id":299290,"server_id":5,"link":"photo_5335874.html","width":130,"caption":"","height":130});
															thumbnails[5350968] = clik.newPhoto({"id":5350968,"src":"DSC_0061_thumb.jpg","galleries_id":301314,"server_id":5,"link":"photo_5350968.html","width":130,"caption":"","height":130});
															thumbnails[6112523] = clik.newPhoto({"id":6112523,"src":"painting-3_thumb.jpg","galleries_id":299730,"server_id":5,"link":"photo_6112523.html","width":130,"caption":"Hongkong, powerstation","height":130});
															thumbnails[6407618] = clik.newPhoto({"id":6407618,"src":"cowparsley_thumb.jpg","galleries_id":354057,"server_id":5,"link":"photo_6407618.html","width":130,"caption":"","height":130});
															thumbnails[7302949] = clik.newPhoto({"id":7302949,"src":"sol_2web_thumb.jpg","galleries_id":395029,"server_id":5,"link":"photo_7302949.html","width":130,"caption":"","height":130});
															thumbnails[6407620] = clik.newPhoto({"id":6407620,"src":"convolvulus2_thumb.jpg","galleries_id":354057,"server_id":5,"link":"photo_6407620.html","width":130,"caption":"","height":130});
															thumbnails[7302928] = clik.newPhoto({"id":7302928,"src":"francesca_1web_thumb.jpg","galleries_id":395029,"server_id":5,"link":"photo_7302928.html","width":130,"caption":"","height":130});
															thumbnails[6256906] = clik.newPhoto({"id":6256906,"src":"emily-3_thumb.jpg","galleries_id":347911,"server_id":5,"link":"photo_6256906.html","width":130,"caption":"","height":130});
															thumbnails[5339837] = clik.newPhoto({"id":5339837,"src":"herne_hill-18_thumb.jpg","galleries_id":299290,"server_id":5,"link":"photo_5339837.html","width":130,"caption":"","height":130});
															thumbnails[5350984] = clik.newPhoto({"id":5350984,"src":"DSC_0348_thumb.jpg","galleries_id":301314,"server_id":5,"link":"photo_5350984.html","width":130,"caption":"","height":130});
															thumbnails[5315768] = clik.newPhoto({"id":5315768,"src":"village_faces-6_thumb.jpg","galleries_id":299191,"server_id":5,"link":"photo_5315768.html","width":130,"caption":"Yunnan, market","height":130});
															thumbnails[5317039] = clik.newPhoto({"id":5317039,"src":"guilty_pleasure-8_thumb.jpg","galleries_id":299197,"server_id":5,"link":"photo_5317039.html","width":130,"caption":"'Femininity'","height":130});
															thumbnails[5317890] = clik.newPhoto({"id":5317890,"src":"image-7_thumb.jpg","galleries_id":299198,"server_id":5,"link":"photo_5317890.html","width":130,"caption":"","height":130});
															thumbnails[5325994] = clik.newPhoto({"id":5325994,"src":"rice-f-7_thumb.jpg","galleries_id":299191,"server_id":5,"link":"photo_5325994.html","width":130,"caption":"Rice fields in Yunnan, Spring 2008","height":130});
															thumbnails[6112529] = clik.newPhoto({"id":6112529,"src":"painting-4_thumb.jpg","galleries_id":299730,"server_id":5,"link":"photo_6112529.html","width":130,"caption":"village faces, yunnan province","height":130});
															thumbnails[5351002] = clik.newPhoto({"id":5351002,"src":"DSC_0064_thumb.jpg","galleries_id":301314,"server_id":5,"link":"photo_5351002.html","width":130,"caption":"","height":130});
															thumbnails[7302930] = clik.newPhoto({"id":7302930,"src":"sam_lee_1web_thumb.jpg","galleries_id":395029,"server_id":5,"link":"photo_7302930.html","width":130,"caption":"","height":130});
															thumbnails[6256910] = clik.newPhoto({"id":6256910,"src":"emily_-5_thumb.jpg","galleries_id":347911,"server_id":5,"link":"photo_6256910.html","width":130,"caption":"","height":130});
															thumbnails[6112395] = clik.newPhoto({"id":6112395,"src":"isolation_thumb.jpg","galleries_id":299251,"server_id":5,"link":"photo_6112395.html","width":130,"caption":"'social isolation'","height":130});
															thumbnails[5350997] = clik.newPhoto({"id":5350997,"src":"DSC_0261_thumb.jpg","galleries_id":301314,"server_id":5,"link":"photo_5350997.html","width":130,"caption":"","height":130});
															thumbnails[5317034] = clik.newPhoto({"id":5317034,"src":"guilty_pleasure-7_thumb.jpg","galleries_id":299197,"server_id":5,"link":"photo_5317034.html","width":130,"caption":"","height":130});
															thumbnails[5317892] = clik.newPhoto({"id":5317892,"src":"image-29_thumb.jpg","galleries_id":299198,"server_id":5,"link":"photo_5317892.html","width":130,"caption":"","height":130});
															thumbnails[5326002] = clik.newPhoto({"id":5326002,"src":"rice-f-20_thumb.jpg","galleries_id":299191,"server_id":5,"link":"photo_5326002.html","width":130,"caption":"Rice fields in Yunnan, Spring 2008","height":130});
															thumbnails[5326258] = clik.newPhoto({"id":5326258,"src":"paul_thumb.jpg","galleries_id":299732,"server_id":5,"link":"photo_5326258.html","width":130,"caption":"","height":130});
															thumbnails[5335906] = clik.newPhoto({"id":5335906,"src":"DSC_0292_thumb.jpg","galleries_id":299290,"server_id":5,"link":"photo_5335906.html","width":130,"caption":"","height":130});
															thumbnails[6112533] = clik.newPhoto({"id":6112533,"src":"painting-5_thumb.jpg","galleries_id":299730,"server_id":5,"link":"photo_6112533.html","width":130,"caption":"village faces, Yunnan province","height":130});
															thumbnails[6407615] = clik.newPhoto({"id":6407615,"src":"FloraFauna_thumb.jpg","galleries_id":354057,"server_id":5,"link":"photo_6407615.html","width":130,"caption":"","height":130});
															thumbnails[7302944] = clik.newPhoto({"id":7302944,"src":"ifiddle_thumb.jpg","galleries_id":395029,"server_id":5,"link":"photo_7302944.html","width":130,"caption":"","height":130});
															thumbnails[6407631] = clik.newPhoto({"id":6407631,"src":"sweetpea_thumb.jpg","galleries_id":354057,"server_id":5,"link":"photo_6407631.html","width":130,"caption":"sweetpea","height":130});
															thumbnails[7879132] = clik.newPhoto({"id":7879132,"src":"pascale-18-web_thumb.jpg","galleries_id":425228,"server_id":5,"link":"photo_7879132.html","width":130,"caption":"","height":130});
															thumbnails[7302934] = clik.newPhoto({"id":7302934,"src":"sam_lee_3web_thumb.jpg","galleries_id":395029,"server_id":5,"link":"photo_7302934.html","width":130,"caption":"","height":130});
															thumbnails[5351005] = clik.newPhoto({"id":5351005,"src":"DSC_0290_thumb.jpg","galleries_id":301314,"server_id":5,"link":"photo_5351005.html","width":130,"caption":"","height":130});
															thumbnails[5315789] = clik.newPhoto({"id":5315789,"src":"Village_faces-14_thumb.jpg","galleries_id":299191,"server_id":5,"link":"photo_5315789.html","width":130,"caption":"'Village Faces', Yunnan","height":130});
															thumbnails[5317040] = clik.newPhoto({"id":5317040,"src":"guilty_pleasure6_thumb.jpg","galleries_id":299197,"server_id":5,"link":"photo_5317040.html","width":130,"caption":"'Vanity'","height":130});
															thumbnails[5326272] = clik.newPhoto({"id":5326272,"src":"PIAF-2006_thumb.jpg","galleries_id":299732,"server_id":5,"link":"photo_5326272.html","width":130,"caption":"","height":130});
															thumbnails[5335879] = clik.newPhoto({"id":5335879,"src":"DSC_0052_thumb.jpg","galleries_id":299290,"server_id":5,"link":"photo_5335879.html","width":130,"caption":"","height":130});
															thumbnails[6197689] = clik.newPhoto({"id":6197689,"src":"tattoo-2-web_thumb.jpg","galleries_id":345943,"server_id":5,"link":"photo_6197689.html","width":130,"caption":"","height":130});
															thumbnails[5317902] = clik.newPhoto({"id":5317902,"src":"image-132_thumb.jpg","galleries_id":299198,"server_id":5,"link":"photo_5317902.html","width":130,"caption":"","height":130});
															thumbnails[6407623] = clik.newPhoto({"id":6407623,"src":"bramble_thumb.jpg","galleries_id":354057,"server_id":5,"link":"photo_6407623.html","width":130,"caption":"","height":130});
															thumbnails[7302947] = clik.newPhoto({"id":7302947,"src":"sam_lee_1web1_thumb.jpg","galleries_id":395029,"server_id":5,"link":"photo_7302947.html","width":130,"caption":"","height":130});
															thumbnails[7302935] = clik.newPhoto({"id":7302935,"src":"sam_lee_2web_thumb.jpg","galleries_id":395029,"server_id":5,"link":"photo_7302935.html","width":130,"caption":"","height":130});
															thumbnails[6407626] = clik.newPhoto({"id":6407626,"src":"clouds2_thumb.jpg","galleries_id":354057,"server_id":5,"link":"photo_6407626.html","width":130,"caption":"","height":130});
															thumbnails[5351008] = clik.newPhoto({"id":5351008,"src":"DSC_0337_thumb.jpg","galleries_id":301314,"server_id":5,"link":"photo_5351008.html","width":130,"caption":"","height":130});
															thumbnails[5315796] = clik.newPhoto({"id":5315796,"src":"Village_faces-1_thumb.jpg","galleries_id":299191,"server_id":5,"link":"photo_5315796.html","width":130,"caption":"'Village Faces', Yunnan Province","height":130});
															thumbnails[5335890] = clik.newPhoto({"id":5335890,"src":"DSC_0187_thumb.jpg","galleries_id":299290,"server_id":5,"link":"photo_5335890.html","width":130,"caption":"","height":130});
															thumbnails[6197704] = clik.newPhoto({"id":6197704,"src":"tattoo-5-web_thumb.jpg","galleries_id":345943,"server_id":5,"link":"photo_6197704.html","width":130,"caption":"Tattoo Convention","height":130});
															thumbnails[5464129] = clik.newPhoto({"id":5464129,"src":"sarahC-3-web_thumb.jpg","galleries_id":299251,"server_id":5,"link":"photo_5464129.html","width":130,"caption":"'CONTEMPLATION'","height":130});
															thumbnails[5315803] = clik.newPhoto({"id":5315803,"src":"Village_faces-3_thumb.jpg","galleries_id":299191,"server_id":5,"link":"photo_5315803.html","width":130,"caption":"'Village Faces', Yunnan Province","height":130});
															thumbnails[5335898] = clik.newPhoto({"id":5335898,"src":"retouch-2_thumb.jpg","galleries_id":299290,"server_id":5,"link":"photo_5335898.html","width":130,"caption":"","height":130});
															thumbnails[6197713] = clik.newPhoto({"id":6197713,"src":"tattoo-7-web_thumb.jpg","galleries_id":345943,"server_id":5,"link":"photo_6197713.html","width":130,"caption":"Tattoo Convention","height":130});
															thumbnails[7879156] = clik.newPhoto({"id":7879156,"src":"pascale-21-web_thumb.jpg","galleries_id":425228,"server_id":5,"link":"photo_7879156.html","width":130,"caption":"","height":130});
															thumbnails[6407629] = clik.newPhoto({"id":6407629,"src":"knotweed_thumb.jpg","galleries_id":354057,"server_id":5,"link":"photo_6407629.html","width":130,"caption":"knotweed","height":130});
															thumbnails[5317904] = clik.newPhoto({"id":5317904,"src":"image-26_thumb.jpg","galleries_id":299198,"server_id":5,"link":"photo_5317904.html","width":130,"caption":"","height":130});
															thumbnails[5335893] = clik.newPhoto({"id":5335893,"src":"DSC_0197_thumb.jpg","galleries_id":299290,"server_id":5,"link":"photo_5335893.html","width":130,"caption":"","height":130});
															thumbnails[6197717] = clik.newPhoto({"id":6197717,"src":"tattoo-9-web_thumb.jpg","galleries_id":345943,"server_id":5,"link":"photo_6197717.html","width":130,"caption":"Tattoo Convention","height":130});
															thumbnails[7879164] = clik.newPhoto({"id":7879164,"src":"pascale-22-web_thumb.jpg","galleries_id":425228,"server_id":5,"link":"photo_7879164.html","width":130,"caption":"","height":130});
															thumbnails[5317910] = clik.newPhoto({"id":5317910,"src":"image-72_thumb.jpg","galleries_id":299198,"server_id":5,"link":"photo_5317910.html","width":130,"caption":"","height":130});
															thumbnails[5335911] = clik.newPhoto({"id":5335911,"src":"DSC_0270_thumb.jpg","galleries_id":299290,"server_id":5,"link":"photo_5335911.html","width":130,"caption":"","height":130});
															thumbnails[6197718] = clik.newPhoto({"id":6197718,"src":"tattoo-6-web_thumb.jpg","galleries_id":345943,"server_id":5,"link":"photo_6197718.html","width":130,"caption":"Tattoo Convention","height":130});
															thumbnails[7879167] = clik.newPhoto({"id":7879167,"src":"pascale-9-web_thumb.jpg","galleries_id":425228,"server_id":5,"link":"photo_7879167.html","width":130,"caption":"","height":130});
															thumbnails[5317915] = clik.newPhoto({"id":5317915,"src":"image-70_thumb.jpg","galleries_id":299198,"server_id":5,"link":"photo_5317915.html","width":130,"caption":"","height":130});
															thumbnails[7879169] = clik.newPhoto({"id":7879169,"src":"pascale-13-web_thumb.jpg","galleries_id":425228,"server_id":5,"link":"photo_7879169.html","width":130,"caption":"","height":130});
															thumbnails[5317918] = clik.newPhoto({"id":5317918,"src":"image-68_thumb.jpg","galleries_id":299198,"server_id":5,"link":"photo_5317918.html","width":130,"caption":"","height":130});
															thumbnails[5317919] = clik.newPhoto({"id":5317919,"src":"image-63_thumb.jpg","galleries_id":299198,"server_id":5,"link":"photo_5317919.html","width":130,"caption":"","height":130});
															thumbnails[7879201] = clik.newPhoto({"id":7879201,"src":"pascale-16-web_thumb.jpg","galleries_id":425228,"server_id":5,"link":"photo_7879201.html","width":130,"caption":"","height":130});
															thumbnails[7879374] = clik.newPhoto({"id":7879374,"src":"rachelle-1-web_thumb.jpg","galleries_id":425228,"server_id":5,"link":"photo_7879374.html","width":130,"caption":"","height":130});
															thumbnails[7879384] = clik.newPhoto({"id":7879384,"src":"rachelle-4-web_thumb.jpg","galleries_id":425228,"server_id":5,"link":"photo_7879384.html","width":130,"caption":"","height":130});
															thumbnails[7879406] = clik.newPhoto({"id":7879406,"src":"rachelle-6-web_thumb.jpg","galleries_id":425228,"server_id":5,"link":"photo_7879406.html","width":130,"caption":"","height":130});
															thumbnails[7879412] = clik.newPhoto({"id":7879412,"src":"rachelle-8-web_thumb.jpg","galleries_id":425228,"server_id":5,"link":"photo_7879412.html","width":130,"caption":"","height":130});
															thumbnails[7879415] = clik.newPhoto({"id":7879415,"src":"rachelle-9-web_thumb.jpg","galleries_id":425228,"server_id":5,"link":"photo_7879415.html","width":130,"caption":"","height":130});
															thumbnails[7879422] = clik.newPhoto({"id":7879422,"src":"rachelle-13-web_thumb.jpg","galleries_id":425228,"server_id":5,"link":"photo_7879422.html","width":130,"caption":"","height":130});
															thumbnails[7879427] = clik.newPhoto({"id":7879427,"src":"rachelle-14-web_thumb.jpg","galleries_id":425228,"server_id":5,"link":"photo_7879427.html","width":130,"caption":"","height":130});
															thumbnails[7879429] = clik.newPhoto({"id":7879429,"src":"rachelle-11-web_thumb.jpg","galleries_id":425228,"server_id":5,"link":"photo_7879429.html","width":130,"caption":"","height":130});
															thumbnails[8750658] = clik.newPhoto({"id":8750658,"src":"jack_10-web_thumb.jpg","galleries_id":425228,"server_id":5,"link":"photo_8750658.html","width":130,"caption":"","height":130});
															thumbnails[7879433] = clik.newPhoto({"id":7879433,"src":"rachelle-12-web_thumb.jpg","galleries_id":425228,"server_id":5,"link":"photo_7879433.html","width":130,"caption":"","height":130});
															thumbnails[8750660] = clik.newPhoto({"id":8750660,"src":"JACK_1-web_thumb.jpg","galleries_id":425228,"server_id":5,"link":"photo_8750660.html","width":130,"caption":"medicine student","height":130});
															thumbnails[7879438] = clik.newPhoto({"id":7879438,"src":"rachelle-16-web_thumb.jpg","galleries_id":425228,"server_id":5,"link":"photo_7879438.html","width":130,"caption":"","height":130});
															thumbnails[7879442] = clik.newPhoto({"id":7879442,"src":"rachelle-17-web_thumb.jpg","galleries_id":425228,"server_id":5,"link":"photo_7879442.html","width":130,"caption":"","height":130});
															thumbnails[8750661] = clik.newPhoto({"id":8750661,"src":"Jack_2_web_thumb.jpg","galleries_id":425228,"server_id":5,"link":"photo_8750661.html","width":130,"caption":"","height":130});
															thumbnails[7879457] = clik.newPhoto({"id":7879457,"src":"rachelle-19-web_thumb.jpg","galleries_id":425228,"server_id":5,"link":"photo_7879457.html","width":130,"caption":"","height":130});
															thumbnails[8750662] = clik.newPhoto({"id":8750662,"src":"Jack_3_web_thumb.jpg","galleries_id":425228,"server_id":5,"link":"photo_8750662.html","width":130,"caption":"","height":130});
															thumbnails[8750707] = clik.newPhoto({"id":8750707,"src":"Jack_4-web_thumb.jpg","galleries_id":425228,"server_id":5,"link":"photo_8750707.html","width":130,"caption":"","height":130});
															thumbnails[8750712] = clik.newPhoto({"id":8750712,"src":"Jack_5-web_thumb.jpg","galleries_id":425228,"server_id":5,"link":"photo_8750712.html","width":130,"caption":"","height":130});
															thumbnails[8750716] = clik.newPhoto({"id":8750716,"src":"Jack_6_web_thumb.jpg","galleries_id":425228,"server_id":5,"link":"photo_8750716.html","width":130,"caption":"","height":130});
															thumbnails[8750719] = clik.newPhoto({"id":8750719,"src":"Jack_7-web_thumb.jpg","galleries_id":425228,"server_id":5,"link":"photo_8750719.html","width":130,"caption":"inspired by roman paintings","height":130});
															thumbnails[8750720] = clik.newPhoto({"id":8750720,"src":"Jack_08-web_thumb.jpg","galleries_id":425228,"server_id":5,"link":"photo_8750720.html","width":130,"caption":"","height":130});
															thumbnails[8750721] = clik.newPhoto({"id":8750721,"src":"jack-9-web_thumb.jpg","galleries_id":425228,"server_id":5,"link":"photo_8750721.html","width":130,"caption":"","height":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[299290] = clik.newGallery({"parentGallery":299289,"usePopups":false,"title":"Band Photography","link":"gallery_299290.html","maxRecords":0.0,"photoIDs":[5339892.0,5339851.0,5335874.0,5339837.0,5335906.0,5335879.0,5335890.0,5335898.0,5335893.0,5335911.0],"skipIndex":0,"section_code":"gallery","featured_images":"5339892,5339851,5339837,5335911,5335906,5335898,5335893,5335890,5335879,5335874","id":299290,"singleSection":false});				  						galleries[299289] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Club and promotional Photography","link":"gallery_299289.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"7302949,7302947,7302944,7302936,7302935,7302934,7302930,7302928,7302926,7302924","id":299289,"singleSection":false});				  						galleries[301314] = clik.newGallery({"parentGallery":300933,"usePopups":false,"title":"Daisy & Clem","link":"gallery_301314.html","maxRecords":0.0,"photoIDs":[5350989.0,5350952.0,5350960.0,5350976.0,5350968.0,5350984.0,5351002.0,5350997.0,5351005.0,5351008.0],"skipIndex":0,"section_code":"gallery","featured_images":"5351008,5351005,5351002,5350997,5350989,5350984,5350976,5350968,5350960,5350952","id":301314,"singleSection":false});				  						galleries[300660] = clik.newGallery({"parentGallery":299289,"usePopups":false,"title":"Dangerous Dolly","link":"gallery_300660.html","maxRecords":0.0,"photoIDs":[5339918.0,5339921.0,5339927.0,5339932.0,5339933.0],"skipIndex":0,"section_code":"gallery","featured_images":"5339933,5339932,5339927,5339921,5339918","id":300660,"singleSection":false});				  						galleries[354057] = clik.newGallery({"parentGallery":299289,"usePopups":false,"title":"Flora&Fauna","link":"gallery_354057.html","maxRecords":0.0,"photoIDs":[6407553.0,7142010.0,6407613.0,6407618.0,6407620.0,6407615.0,6407631.0,6407623.0,6407626.0,6407629.0],"skipIndex":0,"section_code":"gallery","featured_images":"7142010,6407631,6407629,6407626,6407623,6407620,6407618,6407615,6407613,6407553","id":354057,"singleSection":false});				  						galleries[345974] = clik.newGallery({"parentGallery":299288,"usePopups":false,"title":"France,Provence","link":"gallery_345974.html","maxRecords":0.0,"photoIDs":[6197814.0,6197815.0,6197810.0,6197811.0,6197813.0],"skipIndex":0,"section_code":"gallery","featured_images":"6197815,6197814,6197813,6197811,6197810","id":345974,"singleSection":false});				  						galleries[352981] = clik.newGallery({"parentGallery":299288,"usePopups":false,"title":"HongKong","link":"gallery_352981.html","maxRecords":0.0,"photoIDs":[7219953.0,7219955.0,7219959.0,7219961.0,5315751.0],"skipIndex":0,"section_code":"gallery","featured_images":"7219961,7219959,7219955,7219953,5315751","id":352981,"singleSection":false});				  						galleries[300935] = clik.newGallery({"parentGallery":300933,"usePopups":false,"title":"KIKI","link":"gallery_300935.html","maxRecords":0.0,"photoIDs":[5346187.0,5346188.0,5346189.0,5346191.0,5346192.0],"skipIndex":0,"section_code":"gallery","featured_images":"5346192,5346191,5346189,5346188,5346187","id":300935,"singleSection":false});				  						galleries[300933] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Modelling Photography","link":"gallery_300933.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"8750721,8750720,8750719,8750716,8750712,8750707,8750662,8750661,8750660,8750658","id":300933,"singleSection":false});				  						galleries[299730] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"PAINTINGS","link":"gallery_299730.html","maxRecords":0.0,"photoIDs":[7148011.0,7148013.0,7220017.0,6112505.0,6112513.0,6112523.0,6112529.0,6112533.0],"skipIndex":0,"section_code":"gallery","featured_images":"7220017,7148013,7148011,6112533,6112529,6112523,6112513,6112505","id":299730,"singleSection":false});				  						galleries[347911] = clik.newGallery({"parentGallery":300933,"usePopups":false,"title":"Portraiture","link":"gallery_347911.html","maxRecords":0.0,"photoIDs":[6407650.0,6407660.0,6407662.0,6407665.0,6407668.0,6256885.0,6256903.0,6256897.0,6256906.0,6256910.0],"skipIndex":0,"section_code":"gallery","featured_images":"6407668,6407665,6407662,6407660,6407650,6256910,6256906,6256903,6256897,6256885","id":347911,"singleSection":false});				  						galleries[395029] = clik.newGallery({"parentGallery":299289,"usePopups":false,"title":"SAM LEE","link":"gallery_395029.html","maxRecords":0.0,"photoIDs":[7302936.0,7302924.0,7302926.0,7302949.0,7302928.0,7302930.0,7302944.0,7302934.0,7302947.0,7302935.0],"skipIndex":0,"section_code":"gallery","featured_images":"7302949,7302947,7302944,7302936,7302935,7302934,7302930,7302928,7302926,7302924","id":395029,"singleSection":false});				  						galleries[345943] = clik.newGallery({"parentGallery":299289,"usePopups":false,"title":"Tattoo Convention","link":"gallery_345943.html","maxRecords":0.0,"photoIDs":[6197689.0,6197704.0,6197713.0,6197717.0,6197718.0],"skipIndex":0,"section_code":"gallery","featured_images":"6197718,6197717,6197713,6197704,6197689","id":345943,"singleSection":false});				  						galleries[299288] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Travel","link":"gallery_299288.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"9017254,7219961,7219959,7219955,7219953,6381328,6381326,6381317,6197815,6197814","id":299288,"singleSection":false});				  						galleries[425228] = clik.newGallery({"parentGallery":300933,"usePopups":false,"title":"most recent Studio Photography","link":"gallery_425228.html","maxRecords":0.0,"photoIDs":[7879110.0,7879117.0,7879132.0,7879156.0,7879164.0,7879167.0,7879169.0,7879201.0,7879374.0,7879384.0,7879406.0,7879412.0,7879415.0,7879422.0,7879427.0,7879429.0,8750658.0,7879433.0,8750660.0,7879438.0,7879442.0,8750661.0,7879457.0,8750662.0,8750707.0,8750712.0,8750716.0,8750719.0,8750720.0,8750721.0],"skipIndex":0,"section_code":"gallery","featured_images":"8750721,8750720,8750719,8750716,8750712,8750707,8750662,8750661,8750660,8750658","id":425228,"singleSection":false});				  						galleries[475247] = clik.newGallery({"parentGallery":299288,"usePopups":false,"title":"Underwater photography","link":"gallery_475247.html","maxRecords":0.0,"photoIDs":[9017254.0],"skipIndex":0,"section_code":"gallery","featured_images":9017254.0,"id":475247,"singleSection":false});				  						galleries[299191] = clik.newGallery({"parentGallery":299288,"usePopups":false,"title":"China","link":"gallery_299191.html","maxRecords":0.0,"photoIDs":[5326006.0,5315816.0,5325989.0,5326243.0,5315768.0,5325994.0,5326002.0,5315789.0,5315796.0,5315803.0],"skipIndex":0,"section_code":"gallery","featured_images":"5326243,5326006,5326002,5325994,5325989,5315816,5315803,5315796,5315789,5315768","id":299191,"singleSection":false});				  						galleries[299199] = clik.newGallery({"parentGallery":299288,"usePopups":false,"title":"Egypt","link":"gallery_299199.html","maxRecords":0.0,"photoIDs":[6381317.0,5330063.0,6381326.0,6381328.0,5330036.0,5330038.0,5330048.0,5330052.0,5330055.0],"skipIndex":0,"section_code":"gallery","featured_images":"6381328,6381326,6381317,5330063,5330055,5330052,5330048,5330038,5330036","id":299199,"singleSection":false});				  						galleries[299198] = clik.newGallery({"parentGallery":300933,"usePopups":false,"title":"HKHtv","link":"gallery_299198.html","maxRecords":0.0,"photoIDs":[5317882.0,5317883.0,5317890.0,5317892.0,5317902.0,5317904.0,5317910.0,5317915.0,5317918.0,5317919.0],"skipIndex":0,"section_code":"gallery","featured_images":"5317919,5317918,5317915,5317910,5317904,5317902,5317892,5317890,5317883,5317882","id":299198,"singleSection":false});				  						galleries[299192] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"P.I.A.F.","link":"gallery_299192.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"6112395,5844774,5464129,5354208,5333601,5333593,5326272,5326258,5326255,5326249","id":299192,"singleSection":false});				  						galleries[299732] = clik.newGallery({"parentGallery":299192,"usePopups":false,"title":"P.I.A.F. 2006","link":"gallery_299732.html","maxRecords":0.0,"photoIDs":[5326249.0,5326245.0,5326255.0,5326258.0,5326272.0],"skipIndex":0,"section_code":"gallery","featured_images":"5326272,5326258,5326255,5326249,5326245","id":299732,"singleSection":false});				  						galleries[299284] = clik.newGallery({"parentGallery":299192,"usePopups":false,"title":"P.I.A.F. 2007","link":"gallery_299284.html","maxRecords":0.0,"photoIDs":[5317068.0,5317072.0,5317076.0,5317216.0,5317069.0],"skipIndex":0,"section_code":"gallery","featured_images":"5317216,5317076,5317072,5317069,5317068","id":299284,"singleSection":false});				  						galleries[299197] = clik.newGallery({"parentGallery":299192,"usePopups":false,"title":"P.I.A.F. 2008","link":"gallery_299197.html","maxRecords":0.0,"photoIDs":[5354208.0,5317032.0,5317025.0,5317029.0,5317039.0,5317034.0,5317040.0],"skipIndex":0,"section_code":"gallery","featured_images":"5354208,5317040,5317039,5317034,5317032,5317029,5317025","id":299197,"singleSection":false});				  						galleries[299251] = clik.newGallery({"parentGallery":299192,"usePopups":false,"title":"P.I.A.F. 2009\/2010","link":"gallery_299251.html","maxRecords":0.0,"photoIDs":[5844774.0,5333593.0,5333601.0,6112395.0,5464129.0],"skipIndex":0,"section_code":"gallery","featured_images":"6112395,5844774,5464129,5333601,5333593","id":299251,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '5354208,5350989,5346192,5346191,5346189,5346188,5346187,5339933,5339932,5339927,5339921,5339918,5333601,5333593,5330063,5330052,5330048,5339892,5339851,5335874,5335879,5335890,5335898,5335893';
imageSets[3] = '5317076,5317069,5317902,5317910,5317915,5317918';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/Fleckenstein/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/Fleckenstein/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/Fleckenstein/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/Fleckenstein/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/Fleckenstein/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/Fleckenstein/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/Fleckenstein/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/Fleckenstein/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/Fleckenstein/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/Fleckenstein/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/Fleckenstein/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/Fleckenstein/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/Fleckenstein/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/Fleckenstein/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/Fleckenstein/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/Fleckenstein/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/Fleckenstein/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/Fleckenstein/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/Fleckenstein/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/Fleckenstein/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/Fleckenstein/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/Fleckenstein/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/Fleckenstein/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/Fleckenstein/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/Fleckenstein/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/Fleckenstein/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/Fleckenstein/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 = 'Fleckenstein: ' + 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> ' + (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 += '<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;
	}
}

			

