window.thumbnails = {};
															thumbnails[2530392] = clik.newPhoto({"id":2530392,"src":"Urban-Decay_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Urban Decay","height":130});
															thumbnails[761884] = clik.newPhoto({"id":761884,"src":"Urban Sunlight rev2_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Bath","height":130});
															thumbnails[779317] = clik.newPhoto({"id":779317,"src":"lrg_147468_1164357427[1]_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Bath","height":130});
															thumbnails[855272] = clik.newPhoto({"id":855272,"src":"lrg_147468_1174829022[1]_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Urban Decay","height":130});
															thumbnails[855271] = clik.newPhoto({"id":855271,"src":"EPSON085_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Urban Decay","height":130});
															thumbnails[861794] = clik.newPhoto({"id":861794,"src":"Iron Duke_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Urban Decay","height":130});
															thumbnails[1343922] = clik.newPhoto({"id":1343922,"src":"Urban Decay_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Urban Decay","height":130});
															thumbnails[1343936] = clik.newPhoto({"id":1343936,"src":"1319106534_aff210e2be[1]_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Urban Decay","height":130});
															thumbnails[1359835] = clik.newPhoto({"id":1359835,"src":"EPSON156a_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Urban Decay","height":130});
															thumbnails[5931993] = clik.newPhoto({"id":5931993,"src":"4391077326_2b1799eb16_b_thumb.jpg","galleries_id":297895,"server_id":18,"link":"photo_5931993.html","width":130,"caption":"Havana - Cuba","height":105});
															thumbnails[8099069] = clik.newPhoto({"id":8099069,"src":"Cuba-car6_thumb.jpg","galleries_id":297895,"server_id":18,"link":"photo_8099069.html","width":130,"caption":"Havana - Caba","height":107});
															thumbnails[8099073] = clik.newPhoto({"id":8099073,"src":"Cuba-Car8_thumb.jpg","galleries_id":297895,"server_id":18,"link":"photo_8099073.html","width":130,"caption":"Havana - Caba","height":107});
															thumbnails[8099086] = clik.newPhoto({"id":8099086,"src":"Wood_thumb.jpg","galleries_id":297895,"server_id":18,"link":"photo_8099086.html","width":130,"caption":"Havana - Caba","height":107});
															thumbnails[8099090] = clik.newPhoto({"id":8099090,"src":"Books_thumb.jpg","galleries_id":297895,"server_id":18,"link":"photo_8099090.html","width":130,"caption":"Havana - Cuba","height":107});
															thumbnails[5296819] = clik.newPhoto({"id":5296819,"src":"Cuba-Car_thumb.jpg","galleries_id":297895,"server_id":18,"link":"photo_5296819.html","width":130,"caption":"Havana - Caba","height":104});
															thumbnails[7588704] = clik.newPhoto({"id":7588704,"src":"Faded-Grandeur12_thumb.jpg","galleries_id":297895,"server_id":18,"link":"photo_7588704.html","width":130,"caption":"Cuba","height":105});
															thumbnails[7588725] = clik.newPhoto({"id":7588725,"src":"Faded-Grandeur10_thumb.jpg","galleries_id":297895,"server_id":18,"link":"photo_7588725.html","width":130,"caption":"Cuba","height":107});
															thumbnails[7588740] = clik.newPhoto({"id":7588740,"src":"Cuba-Life_thumb.jpg","galleries_id":297895,"server_id":18,"link":"photo_7588740.html","width":130,"caption":"Cuba","height":107});
															thumbnails[7588743] = clik.newPhoto({"id":7588743,"src":"Faded-Grandure_thumb.jpg","galleries_id":297895,"server_id":18,"link":"photo_7588743.html","width":130,"caption":"Cuba","height":105});
															thumbnails[7588746] = clik.newPhoto({"id":7588746,"src":"Cuba-Life1_thumb.jpg","galleries_id":297895,"server_id":18,"link":"photo_7588746.html","width":130,"caption":"Cuba","height":105});
															thumbnails[7588750] = clik.newPhoto({"id":7588750,"src":"Faded-Grandeur11_thumb.jpg","galleries_id":297895,"server_id":18,"link":"photo_7588750.html","width":130,"caption":"Cuba","height":107});
															thumbnails[7588753] = clik.newPhoto({"id":7588753,"src":"Galeria-De-Martires_thumb.jpg","galleries_id":297895,"server_id":18,"link":"photo_7588753.html","width":130,"caption":"Cuba","height":107});
															thumbnails[7588756] = clik.newPhoto({"id":7588756,"src":"Havana-Car1_thumb.jpg","galleries_id":297895,"server_id":18,"link":"photo_7588756.html","width":130,"caption":"Cuba","height":107});
															thumbnails[7588758] = clik.newPhoto({"id":7588758,"src":"Talking-Heads_thumb.jpg","galleries_id":297895,"server_id":18,"link":"photo_7588758.html","width":130,"caption":"Havana - Caba","height":107});
															thumbnails[7588789] = clik.newPhoto({"id":7588789,"src":"The-Game_thumb.jpg","galleries_id":297895,"server_id":18,"link":"photo_7588789.html","width":130,"caption":"Havana - Caba","height":107});
															thumbnails[7593790] = clik.newPhoto({"id":7593790,"src":"Cuba-Life5_thumb.jpg","galleries_id":297895,"server_id":18,"link":"photo_7593790.html","width":130,"caption":"Cuba","height":105});
															thumbnails[7593794] = clik.newPhoto({"id":7593794,"src":"Talking-Heads2_thumb.jpg","galleries_id":297895,"server_id":18,"link":"photo_7593794.html","width":130,"caption":"Cuba","height":107});
															thumbnails[7593798] = clik.newPhoto({"id":7593798,"src":"Cuba-Car9_thumb.jpg","galleries_id":297895,"server_id":18,"link":"photo_7593798.html","width":130,"caption":"Cuba","height":107});
															thumbnails[2681836] = clik.newPhoto({"id":2681836,"src":"Cameroon-Market4_thumb.jpg","galleries_id":60037,"server_id":18,"link":"photo_2681836.html","width":130,"caption":"Cameroon","height":130});
															thumbnails[2681977] = clik.newPhoto({"id":2681977,"src":"Cameroon-Market5_thumb.jpg","galleries_id":60037,"server_id":18,"link":"photo_2681977.html","width":130,"caption":"Cameroon","height":107});
															thumbnails[1267723] = clik.newPhoto({"id":1267723,"src":"EPSON052a_thumb.jpg","galleries_id":60004,"server_id":18,"link":"photo_1267723.html","width":130,"caption":"Moullie Point","height":93});
															thumbnails[2765680] = clik.newPhoto({"id":2765680,"src":"Waiting-For-The-Sea_thumb.jpg","galleries_id":60037,"server_id":18,"link":"photo_2765680.html","width":130,"caption":"Zanzibar","height":130});
															thumbnails[2766869] = clik.newPhoto({"id":2766869,"src":"2122222688_8b432e7e0b_o[1]_thumb.jpg","galleries_id":60037,"server_id":18,"link":"photo_2766869.html","width":130,"caption":"Zanzibar","height":130});
															thumbnails[779372] = clik.newPhoto({"id":779372,"src":"9 September_thumb.jpg","galleries_id":60004,"server_id":18,"link":"photo_779372.html","width":130,"caption":"Lions Head Rock","height":130});
															thumbnails[828053] = clik.newPhoto({"id":828053,"src":"lrg_147468_1160454839[1]1_thumb.jpg","galleries_id":60004,"server_id":18,"link":"photo_828053.html","width":130,"caption":"Cape Town","height":102});
															thumbnails[907540] = clik.newPhoto({"id":907540,"src":"Shrimps_thumb.jpg","galleries_id":60037,"server_id":18,"link":"photo_907540.html","width":130,"caption":"Tunisia","height":93});
															thumbnails[774901] = clik.newPhoto({"id":774901,"src":"Misty Mountains_thumb.jpg","galleries_id":60004,"server_id":18,"link":"photo_774901.html","width":130,"caption":"Misty Mountains","height":93});
															thumbnails[7588717] = clik.newPhoto({"id":7588717,"src":"Faded-Grandeur9_thumb.jpg","galleries_id":297895,"server_id":18,"link":"photo_7588717.html","width":105,"caption":"Cuba","height":130});
															thumbnails[5296811] = clik.newPhoto({"id":5296811,"src":"Old-Lady-Havana_thumb.jpg","galleries_id":297895,"server_id":18,"link":"photo_5296811.html","width":130,"caption":"Havana - Cuba","height":130});
															thumbnails[761905] = clik.newPhoto({"id":761905,"src":"lrg_147468_1166948257[1]_thumb.jpg","galleries_id":60037,"server_id":18,"link":"photo_761905.html","width":130,"caption":"Two Brothers","height":194});
															thumbnails[5296814] = clik.newPhoto({"id":5296814,"src":"Dapper_thumb.jpg","galleries_id":297895,"server_id":18,"link":"photo_5296814.html","width":130,"caption":"Havana - Cuba","height":130});
															thumbnails[8103676] = clik.newPhoto({"id":8103676,"src":"5393779339_ac54448d98_o_thumb.jpg","galleries_id":297895,"server_id":18,"link":"photo_8103676.html","width":130,"caption":"Havana - Caba","height":130});
															thumbnails[5296822] = clik.newPhoto({"id":5296822,"src":"Musician-Cuba_thumb.jpg","galleries_id":297895,"server_id":18,"link":"photo_5296822.html","width":130,"caption":"Havana - Cuba","height":130});
															thumbnails[5931977] = clik.newPhoto({"id":5931977,"src":"4390352513_ccf9ee0468_b_thumb.jpg","galleries_id":297895,"server_id":18,"link":"photo_5931977.html","width":130,"caption":"Havana - Cuba","height":130});
															thumbnails[9092872] = clik.newPhoto({"id":9092872,"src":"The-Game1_1_thumb.jpg","galleries_id":479847,"server_id":35,"link":"photo_9092872.html","width":105,"caption":"The Beautiful Game","height":130});
															thumbnails[9011686] = clik.newPhoto({"id":9011686,"src":"Siama_C6F44D48-24E8-5EC4-4F1BB4365CAD635D_thumb.jpg","galleries_id":65953,"server_id":18,"link":"photo_9011686.html","width":130,"caption":"Siam","height":98});
															thumbnails[848748] = clik.newPhoto({"id":848748,"src":"Sossusvlei Morn4_thumb.jpg","galleries_id":161810,"server_id":18,"link":"photo_848748.html","width":130,"caption":"Sossusvlei","height":88});
															thumbnails[9092873] = clik.newPhoto({"id":9092873,"src":"The-Game2_1_thumb.jpg","galleries_id":479847,"server_id":35,"link":"photo_9092873.html","width":130,"caption":"The Beautiful Game","height":105});
															thumbnails[9011687] = clik.newPhoto({"id":9011687,"src":"Siam20_C6F4ABEC-24E8-5EC4-4FF89FFC03814688_thumb.jpg","galleries_id":65953,"server_id":18,"link":"photo_9011687.html","width":106,"caption":"Siam","height":130});
															thumbnails[1554259] = clik.newPhoto({"id":1554259,"src":"Gabon Market_thumb.jpg","galleries_id":60037,"server_id":18,"link":"photo_1554259.html","width":130,"caption":"Gabon","height":130});
															thumbnails[1554268] = clik.newPhoto({"id":1554268,"src":"Gabon Market 2_thumb.jpg","galleries_id":60037,"server_id":18,"link":"photo_1554268.html","width":130,"caption":"Gabon","height":130});
															thumbnails[1680773] = clik.newPhoto({"id":1680773,"src":"EPSON038a_thumb.jpg","galleries_id":60037,"server_id":18,"link":"photo_1680773.html","width":130,"caption":"Gabon","height":130});
															thumbnails[1680780] = clik.newPhoto({"id":1680780,"src":"EPSON039a_thumb.jpg","galleries_id":60037,"server_id":18,"link":"photo_1680780.html","width":130,"caption":"Gabon","height":130});
															thumbnails[9092874] = clik.newPhoto({"id":9092874,"src":"The-Game3_1_thumb.jpg","galleries_id":479847,"server_id":35,"link":"photo_9092874.html","width":130,"caption":"The Beautiful Game","height":105});
															thumbnails[9011688] = clik.newPhoto({"id":9011688,"src":"Siam19_C6F50D6C-24E8-5EC4-4FA99CFDA38E901D_thumb.jpg","galleries_id":65953,"server_id":18,"link":"photo_9011688.html","width":105,"caption":"Siam","height":130});
															thumbnails[848029] = clik.newPhoto({"id":848029,"src":"Sossosvlei Morn3_thumb.jpg","galleries_id":161810,"server_id":18,"link":"photo_848029.html","width":130,"caption":"Sossusvlei","height":88});
															thumbnails[774342] = clik.newPhoto({"id":774342,"src":"6 June1_thumb.jpg","galleries_id":161810,"server_id":18,"link":"photo_774342.html","width":130,"caption":"Sossusvlei","height":130});
															thumbnails[774333] = clik.newPhoto({"id":774333,"src":"Reaching Up_thumb.jpg","galleries_id":161810,"server_id":18,"link":"photo_774333.html","width":130,"caption":"Sossusvlei","height":130});
															thumbnails[9092875] = clik.newPhoto({"id":9092875,"src":"The-Game4_1_thumb.jpg","galleries_id":479847,"server_id":35,"link":"photo_9092875.html","width":130,"caption":"The Beautiful Game","height":106});
															thumbnails[9011689] = clik.newPhoto({"id":9011689,"src":"Siam17_C6F58601-24E8-5EC4-4FA82A0D797E2B57_thumb.jpg","galleries_id":65953,"server_id":18,"link":"photo_9011689.html","width":130,"caption":"Siam","height":106});
															thumbnails[9011690] = clik.newPhoto({"id":9011690,"src":"Siam3_C6F61CA5-24E8-5EC4-4FB03FB5FBC07C8B_thumb.jpg","galleries_id":65953,"server_id":18,"link":"photo_9011690.html","width":130,"caption":"Siam","height":98});
															thumbnails[779353] = clik.newPhoto({"id":779353,"src":"Brayden Calm_thumb.jpg","galleries_id":60004,"server_id":18,"link":"photo_779353.html","width":130,"caption":"Breydon - Calm","height":102});
															thumbnails[9011705] = clik.newPhoto({"id":9011705,"src":"Siam14_C799FA3B-24E8-5EC4-4FAF3C463B428FD6_thumb.jpg","galleries_id":65953,"server_id":18,"link":"photo_9011705.html","width":130,"caption":"Siam","height":98});
															thumbnails[9011706] = clik.newPhoto({"id":9011706,"src":"Siam11a_C79AC061-24E8-5EC4-4F7FE44F72673DE5_thumb.jpg","galleries_id":65953,"server_id":18,"link":"photo_9011706.html","width":98,"caption":"Siam","height":130});
															thumbnails[9011965] = clik.newPhoto({"id":9011965,"src":"Street-Life_C8A1DA09-24E8-5EC4-4F41848424F196C0_thumb.jpg","galleries_id":65953,"server_id":18,"link":"photo_9011965.html","width":130,"caption":"Street Life","height":98});
															thumbnails[9012003] = clik.newPhoto({"id":9012003,"src":"Street-life2_C8AD27AC-24E8-5EC4-4F970045275FF3DC_thumb.jpg","galleries_id":65953,"server_id":18,"link":"photo_9012003.html","width":130,"caption":"Street Life","height":106});
															thumbnails[1491171] = clik.newPhoto({"id":1491171,"src":"EPSON015aa_thumb.jpg","galleries_id":60037,"server_id":18,"link":"photo_1491171.html","width":130,"caption":"Zanzibar","height":130});
															thumbnails[1160811] = clik.newPhoto({"id":1160811,"src":"EPSON129a_thumb.jpg","galleries_id":161810,"server_id":18,"link":"photo_1160811.html","width":130,"caption":"Spitkoppe","height":89});
															thumbnails[1469394] = clik.newPhoto({"id":1469394,"src":"Nitakula V2_thumb.jpg","galleries_id":60037,"server_id":18,"link":"photo_1469394.html","width":130,"caption":"Zanzibar","height":130});
															thumbnails[1469391] = clik.newPhoto({"id":1469391,"src":"Nitakula_thumb.jpg","galleries_id":60037,"server_id":18,"link":"photo_1469391.html","width":130,"caption":"Zanzibar","height":130});
															thumbnails[1448727] = clik.newPhoto({"id":1448727,"src":"EPSON006a_thumb.jpg","galleries_id":60037,"server_id":18,"link":"photo_1448727.html","width":130,"caption":"Bwana","height":130});
															thumbnails[1448731] = clik.newPhoto({"id":1448731,"src":"EPSON007a_thumb.jpg","galleries_id":60037,"server_id":18,"link":"photo_1448731.html","width":130,"caption":"Hakuna Matata","height":130});
															thumbnails[1448723] = clik.newPhoto({"id":1448723,"src":"_-8_thumb.jpg","galleries_id":60037,"server_id":18,"link":"photo_1448723.html","width":130,"caption":"Jambo","height":130});
															thumbnails[1680769] = clik.newPhoto({"id":1680769,"src":"EPSON002a_thumb.jpg","galleries_id":60037,"server_id":18,"link":"photo_1680769.html","width":130,"caption":"Zanzibar","height":130});
															thumbnails[1491169] = clik.newPhoto({"id":1491169,"src":"EPSON002b_thumb.jpg","galleries_id":60037,"server_id":18,"link":"photo_1491169.html","width":130,"caption":"Zanzibar","height":130});
															thumbnails[1486294] = clik.newPhoto({"id":1486294,"src":"Schools Out_thumb.jpg","galleries_id":60037,"server_id":18,"link":"photo_1486294.html","width":130,"caption":"Zanzibar","height":130});
															thumbnails[9012015] = clik.newPhoto({"id":9012015,"src":"Street-Life3_C8B07299-24E8-5EC4-4F0E9989E692D471_thumb.jpg","galleries_id":65953,"server_id":18,"link":"photo_9012015.html","width":130,"caption":"Street Life","height":106});
															thumbnails[9012016] = clik.newPhoto({"id":9012016,"src":"Tuk-Tuk_C8BADCE5-24E8-5EC4-4F8080B99B251509_thumb.jpg","galleries_id":65953,"server_id":18,"link":"photo_9012016.html","width":130,"caption":"Tuk-Tuk","height":105});
															thumbnails[761385] = clik.newPhoto({"id":761385,"src":"Dubai Boat Loader_thumb.jpg","galleries_id":60037,"server_id":18,"link":"photo_761385.html","width":130,"caption":"Boat Loader, Dubai Creek","height":130});
															thumbnails[834481] = clik.newPhoto({"id":834481,"src":"Dubai Boat Loader Rev1_thumb.jpg","galleries_id":60037,"server_id":18,"link":"photo_834481.html","width":130,"caption":"Boat Loader Dubai Creek","height":130});
															thumbnails[774347] = clik.newPhoto({"id":774347,"src":"3878461868_cc0e966997_b1_thumb.jpg","galleries_id":60037,"server_id":18,"link":"photo_774347.html","width":130,"caption":"The Artisan","height":130});
															thumbnails[1292587] = clik.newPhoto({"id":1292587,"src":"3877113329_9a4a8296f5_b1_thumb.jpg","galleries_id":60037,"server_id":18,"link":"photo_1292587.html","width":130,"caption":"Abidjan","height":130});
															thumbnails[1267883] = clik.newPhoto({"id":1267883,"src":"3876840599_a7be5c415e_b1_thumb.jpg","galleries_id":60037,"server_id":18,"link":"photo_1267883.html","width":130,"caption":"Abidjan","height":130});
															thumbnails[1292581] = clik.newPhoto({"id":1292581,"src":"EPSON047a_thumb.jpg","galleries_id":60037,"server_id":18,"link":"photo_1292581.html","width":130,"caption":"Cape Town","height":93});
															thumbnails[1293155] = clik.newPhoto({"id":1293155,"src":"EPSON142_thumb.jpg","galleries_id":60037,"server_id":18,"link":"photo_1293155.html","width":130,"caption":"Cape Town","height":100});
															thumbnails[782372] = clik.newPhoto({"id":782372,"src":"Boat Builder_thumb.jpg","galleries_id":60037,"server_id":18,"link":"photo_782372.html","width":130,"caption":"Boat Builder","height":130});
															thumbnails[868725] = clik.newPhoto({"id":868725,"src":"Mauritania Fish Market Ghosts_thumb.jpg","galleries_id":60037,"server_id":18,"link":"photo_868725.html","width":130,"caption":"Fish Market","height":130});
															thumbnails[1441312] = clik.newPhoto({"id":1441312,"src":"1469524092_2717e39363_o[1]_thumb.jpg","galleries_id":60037,"server_id":18,"link":"photo_1441312.html","width":130,"caption":"","height":130});
															thumbnails[761891] = clik.newPhoto({"id":761891,"src":"Mauritania Gathering On Beach_thumb.jpg","galleries_id":60037,"server_id":18,"link":"photo_761891.html","width":130,"caption":"Waiting","height":130});
															thumbnails[761406] = clik.newPhoto({"id":761406,"src":"Mauritania Beach Man_thumb.jpg","galleries_id":60037,"server_id":18,"link":"photo_761406.html","width":130,"caption":"Retired","height":130});
															thumbnails[761403] = clik.newPhoto({"id":761403,"src":"Mauritania Man On Beach_thumb.jpg","galleries_id":60037,"server_id":18,"link":"photo_761403.html","width":130,"caption":"Retired","height":130});
															thumbnails[761405] = clik.newPhoto({"id":761405,"src":"Police Squad 2_thumb.jpg","galleries_id":60037,"server_id":18,"link":"photo_761405.html","width":130,"caption":"Police Squad","height":130});
															thumbnails[761389] = clik.newPhoto({"id":761389,"src":"Mauritainia Cool Dude_thumb.jpg","galleries_id":60037,"server_id":18,"link":"photo_761389.html","width":130,"caption":"Cool Dude","height":130});
															thumbnails[781415] = clik.newPhoto({"id":781415,"src":"The Deal_thumb.jpg","galleries_id":60037,"server_id":18,"link":"photo_781415.html","width":130,"caption":"The Deal","height":130});
															thumbnails[2540891] = clik.newPhoto({"id":2540891,"src":"Luderitz_thumb.jpg","galleries_id":161810,"server_id":18,"link":"photo_2540891.html","width":130,"caption":"Kolmanskop","height":106});
															thumbnails[2525993] = clik.newPhoto({"id":2525993,"src":"ludaritzb_thumb.jpg","galleries_id":161810,"server_id":18,"link":"photo_2525993.html","width":114,"caption":"Kolmanskop","height":130});
															thumbnails[2525994] = clik.newPhoto({"id":2525994,"src":"Luderitzf_thumb.jpg","galleries_id":161810,"server_id":18,"link":"photo_2525994.html","width":114,"caption":"Kolmanskop","height":130});
															thumbnails[2525995] = clik.newPhoto({"id":2525995,"src":"3786062823_db45baa82d_b1_thumb.jpg","galleries_id":161810,"server_id":18,"link":"photo_2525995.html","width":130,"caption":"Kolmanskop","height":130});
															thumbnails[2525999] = clik.newPhoto({"id":2525999,"src":"Luderitzi_thumb.jpg","galleries_id":161810,"server_id":18,"link":"photo_2525999.html","width":130,"caption":"Kolmanskop","height":130});
															thumbnails[2526002] = clik.newPhoto({"id":2526002,"src":"3581291686_3e6a18d608_b1_thumb.jpg","galleries_id":161810,"server_id":18,"link":"photo_2526002.html","width":130,"caption":"Kolmanskop","height":130});
															thumbnails[2526008] = clik.newPhoto({"id":2526008,"src":"3704323539_9eca55cf76_b1_thumb.jpg","galleries_id":161810,"server_id":18,"link":"photo_2526008.html","width":130,"caption":"Kolmanskop","height":130});
															thumbnails[2526014] = clik.newPhoto({"id":2526014,"src":"3578861397_984ac82649_b1_thumb.jpg","galleries_id":161810,"server_id":18,"link":"photo_2526014.html","width":130,"caption":"Kolmanskop","height":130});
															thumbnails[2526065] = clik.newPhoto({"id":2526065,"src":"3752833874_8a9344b457_b1_thumb.jpg","galleries_id":161810,"server_id":18,"link":"photo_2526065.html","width":130,"caption":"Kolmanskop","height":98});
															thumbnails[2526066] = clik.newPhoto({"id":2526066,"src":"3580295233_9be195e5b7_b1_thumb.jpg","galleries_id":161810,"server_id":18,"link":"photo_2526066.html","width":130,"caption":"Kolmanskop","height":130});
															thumbnails[2526153] = clik.newPhoto({"id":2526153,"src":"3582659574_d96f922389_b1_thumb.jpg","galleries_id":161810,"server_id":18,"link":"photo_2526153.html","width":130,"caption":"Kolmanskop","height":130});
															thumbnails[2526156] = clik.newPhoto({"id":2526156,"src":"Luderitz1_thumb.jpg","galleries_id":161810,"server_id":18,"link":"photo_2526156.html","width":107,"caption":"Kolmanskop","height":130});
															thumbnails[2540427] = clik.newPhoto({"id":2540427,"src":"Luderitzy_thumb.jpg","galleries_id":161810,"server_id":18,"link":"photo_2540427.html","width":105,"caption":"Kolmanskop","height":130});
															thumbnails[2540519] = clik.newPhoto({"id":2540519,"src":"3578949809_dc34081302_b1_thumb.jpg","galleries_id":161810,"server_id":18,"link":"photo_2540519.html","width":130,"caption":"Kolmanskop","height":130});
															thumbnails[1343938] = clik.newPhoto({"id":1343938,"src":"3581105042_a1ac93f350_b1_thumb.jpg","galleries_id":161810,"server_id":18,"link":"photo_1343938.html","width":130,"caption":"Namibia","height":130});
															thumbnails[2526157] = clik.newPhoto({"id":2526157,"src":"Luderitz4_thumb.jpg","galleries_id":161810,"server_id":18,"link":"photo_2526157.html","width":130,"caption":"Luderitz","height":107});
															thumbnails[2526158] = clik.newPhoto({"id":2526158,"src":"B&W-Windows_thumb.jpg","galleries_id":161810,"server_id":18,"link":"photo_2526158.html","width":130,"caption":"Luderitz","height":114});
															thumbnails[2526160] = clik.newPhoto({"id":2526160,"src":"Quiver1_thumb.jpg","galleries_id":161810,"server_id":18,"link":"photo_2526160.html","width":114,"caption":"Quiver","height":130});
															thumbnails[2526161] = clik.newPhoto({"id":2526161,"src":"Quiver2_thumb.jpg","galleries_id":161810,"server_id":18,"link":"photo_2526161.html","width":114,"caption":"Quiver","height":130});
															thumbnails[2526162] = clik.newPhoto({"id":2526162,"src":"Quiver3_thumb.jpg","galleries_id":161810,"server_id":18,"link":"photo_2526162.html","width":114,"caption":"Quiver","height":130});
															thumbnails[1160796] = clik.newPhoto({"id":1160796,"src":"EPSON126a_thumb.jpg","galleries_id":161810,"server_id":18,"link":"photo_1160796.html","width":130,"caption":"The Run Into Sossosvlei","height":130});
															thumbnails[1359862] = clik.newPhoto({"id":1359862,"src":"EPSON121a_thumb.jpg","galleries_id":161810,"server_id":18,"link":"photo_1359862.html","width":130,"caption":"Sossusvlei","height":130});
															thumbnails[1162034] = clik.newPhoto({"id":1162034,"src":"EPSON132b_thumb.jpg","galleries_id":161810,"server_id":18,"link":"photo_1162034.html","width":130,"caption":"Sossosvlei","height":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[297895] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Cuba","link":"gallery_297895.html","maxRecords":0.0,"photoIDs":[5931993.0,8099069.0,8099073.0,8099086.0,8099090.0,5296819.0,7588704.0,7588725.0,7588740.0,7588743.0,7588746.0,7588750.0,7588753.0,7588756.0,7588758.0,7588789.0,7593790.0,7593794.0,7593798.0,7588717.0,5296811.0,5296814.0,8103676.0,5296822.0,5931977.0],"skipIndex":0,"section_code":"gallery","featured_images":"5296814,5296811","id":297895,"singleSection":false});				  						galleries[479847] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"The Beautiful Game","link":"gallery_479847.html","maxRecords":0.0,"photoIDs":[9092872.0,9092873.0,9092874.0,9092875.0],"skipIndex":0,"section_code":"gallery","featured_images":"9092875,9092874,9092873,9092872","id":479847,"singleSection":false});				  						galleries[161810] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Namibia","link":"gallery_161810.html","maxRecords":0.0,"photoIDs":[848748.0,848029.0,774342.0,774333.0,1160811.0,2540891.0,2525993.0,2525994.0,2525995.0,2525999.0,2526002.0,2526008.0,2526014.0,2526065.0,2526066.0,2526153.0,2526156.0,2540427.0,2540519.0,1343938.0,2526157.0,2526158.0,2526160.0,2526161.0,2526162.0,1160796.0,1359862.0,1162034.0],"skipIndex":0,"section_code":"gallery","featured_images":"2540891,2540519,2540427,2526162,2526160,2526158,2526157,2526066,2526065,2526008,2525999,2525995,2525994,2525993","id":161810,"singleSection":false});				  						galleries[65953] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Asia","link":"gallery_65953.html","maxRecords":0.0,"photoIDs":[9011686.0,9011687.0,9011688.0,9011689.0,9011690.0,9011705.0,9011706.0,9011965.0,9012003.0,9012015.0,9012016.0],"skipIndex":0,"section_code":"gallery","featured_images":"9012016,9012015,9012003,9011965,9011706,9011705,9011690,9011689,9011688,9011687","id":65953,"singleSection":false});				  						galleries[60037] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"People","link":"gallery_60037.html","maxRecords":0.0,"photoIDs":[2681836.0,2681977.0,2765680.0,2766869.0,907540.0,761905.0,1554259.0,1554268.0,1680773.0,1680780.0,1491171.0,1469394.0,1469391.0,1448727.0,1448731.0,1448723.0,1680769.0,1491169.0,1486294.0,761385.0,834481.0,774347.0,1292587.0,1267883.0,1292581.0,1293155.0,782372.0,868725.0,1441312.0,761891.0,761406.0,761403.0,761405.0,761389.0,781415.0],"skipIndex":0,"section_code":"gallery","featured_images":"2765680,2681836,761389","id":60037,"singleSection":false});				  						galleries[60004] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Observations","link":"gallery_60004.html","maxRecords":0.0,"photoIDs":[1267723.0,779372.0,828053.0,774901.0,779353.0],"skipIndex":0,"section_code":"gallery","featured_images":"1267723,828053,779372,779353,774901","id":60004,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '2765680,2530392,5296811,855271,761389,2540891,2525993,2525994,2525995,2525999,2526008,2526014,2526065,2540427,2526158,2526160,2526162,1160796';
imageSets[2] = '2765680,2681836,2530392,5296811,5296814,761389,2540891,2525993,2525994,2525995,2525999,2526008,2526065,2526066,2540427,2540519,2526158,2526157,2526160,2526162';
imageSets[3] = '9092875,9092874,9092873,9092872,9012016,9012015,9012003,9011965,9011706,9011705,9011690,9011689,9011688,9011687,9011686,8103676,8099090,8099086,8099073,8099069,7593798,7593794,7593790,7588789,7588758,7588756,7588753,7588750,7588746,7588743,7588740,7588725,7588717,7588704,5931993,5931977,5296822,5296819,5296814,5296811,2766869,2765680,2681977,2681836,2540891,2540519,2540427,2530392,2526162,2526161';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/DanielM/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/DanielM/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/DanielM/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/DanielM/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/DanielM/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/DanielM/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/DanielM/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/DanielM/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/DanielM/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/DanielM/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/DanielM/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/DanielM/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/DanielM/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/DanielM/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/DanielM/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/DanielM/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/DanielM/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/DanielM/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/DanielM/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/DanielM/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/DanielM/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/DanielM/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/DanielM/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/DanielM/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/DanielM/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/DanielM/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/DanielM/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 = 'Daniel: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
		else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="om3_ti@yahoo.co.uk">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="om3_ti@yahoo.co.uk">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

