window.thumbnails = {};
															thumbnails[195984] = clik.newPhoto({"id":195984,"src":"CIMG0163_thumb.JPG","galleries_id":17862,"server_id":1,"link":"photo_195984.html","width":130,"caption":"","height":98});
															thumbnails[195985] = clik.newPhoto({"id":195985,"src":"CIMG01621_thumb.JPG","galleries_id":17862,"server_id":1,"link":"photo_195985.html","width":130,"caption":"","height":98});
															thumbnails[195988] = clik.newPhoto({"id":195988,"src":"CIMG0175_thumb.JPG","galleries_id":17862,"server_id":1,"link":"photo_195988.html","width":130,"caption":"The Arch of truimph","height":98});
															thumbnails[195989] = clik.newPhoto({"id":195989,"src":"CIMG0193_thumb.JPG","galleries_id":17862,"server_id":1,"link":"photo_195989.html","width":130,"caption":"","height":98});
															thumbnails[195991] = clik.newPhoto({"id":195991,"src":"CIMG0206_thumb.JPG","galleries_id":17862,"server_id":1,"link":"photo_195991.html","width":130,"caption":"","height":98});
															thumbnails[195992] = clik.newPhoto({"id":195992,"src":"CIMG0209_thumb.JPG","galleries_id":17862,"server_id":1,"link":"photo_195992.html","width":130,"caption":"","height":103});
															thumbnails[195993] = clik.newPhoto({"id":195993,"src":"CIMG0220_thumb.JPG","galleries_id":17862,"server_id":1,"link":"photo_195993.html","width":130,"caption":"","height":173});
															thumbnails[196397] = clik.newPhoto({"id":196397,"src":"DSC_0072_thumb.JPG","galleries_id":17904,"server_id":1,"link":"photo_196397.html","width":130,"caption":"","height":196});
															thumbnails[196405] = clik.newPhoto({"id":196405,"src":"DSC_0154_thumb.JPG","galleries_id":17904,"server_id":1,"link":"photo_196405.html","width":130,"caption":"","height":196});
															thumbnails[196458] = clik.newPhoto({"id":196458,"src":"DSC_0088_thumb.JPG","galleries_id":17904,"server_id":1,"link":"photo_196458.html","width":130,"caption":"","height":196});
															thumbnails[196461] = clik.newPhoto({"id":196461,"src":"DSC_0096_thumb.JPG","galleries_id":17904,"server_id":1,"link":"photo_196461.html","width":130,"caption":"","height":86});
															thumbnails[196463] = clik.newPhoto({"id":196463,"src":"DSC_0099_thumb.JPG","galleries_id":17904,"server_id":1,"link":"photo_196463.html","width":130,"caption":"","height":196});
															thumbnails[196464] = clik.newPhoto({"id":196464,"src":"DSC_0141_thumb.JPG","galleries_id":17904,"server_id":1,"link":"photo_196464.html","width":130,"caption":"","height":86});
															thumbnails[196465] = clik.newPhoto({"id":196465,"src":"DSC_0198_thumb.JPG","galleries_id":17904,"server_id":1,"link":"photo_196465.html","width":130,"caption":"","height":196});
															thumbnails[196466] = clik.newPhoto({"id":196466,"src":"DSC_0216_thumb.JPG","galleries_id":17904,"server_id":1,"link":"photo_196466.html","width":130,"caption":"","height":196});
															thumbnails[196468] = clik.newPhoto({"id":196468,"src":"DSC_0222_thumb.JPG","galleries_id":17904,"server_id":1,"link":"photo_196468.html","width":130,"caption":"","height":196});
															thumbnails[196469] = clik.newPhoto({"id":196469,"src":"DSC_0199_thumb.JPG","galleries_id":17904,"server_id":1,"link":"photo_196469.html","width":130,"caption":"","height":86});
															thumbnails[196511] = clik.newPhoto({"id":196511,"src":"cubaa_thumb.jpg","galleries_id":17915,"server_id":1,"link":"photo_196511.html","width":130,"caption":"","height":86});
															thumbnails[196512] = clik.newPhoto({"id":196512,"src":"DSC_0047_edited_thumb.JPG","galleries_id":17915,"server_id":1,"link":"photo_196512.html","width":130,"caption":"","height":86});
															thumbnails[196515] = clik.newPhoto({"id":196515,"src":"DSC_0271_thumb.JPG","galleries_id":17915,"server_id":1,"link":"photo_196515.html","width":130,"caption":"","height":196});
															thumbnails[196518] = clik.newPhoto({"id":196518,"src":"DSC_0027_thumb.JPG","galleries_id":17915,"server_id":1,"link":"photo_196518.html","width":130,"caption":"","height":196});
															thumbnails[196523] = clik.newPhoto({"id":196523,"src":"DSC_0046_edited_thumb.JPG","galleries_id":17915,"server_id":1,"link":"photo_196523.html","width":130,"caption":"","height":196});
															thumbnails[196531] = clik.newPhoto({"id":196531,"src":"DSC_0129_thumb.JPG","galleries_id":17915,"server_id":1,"link":"photo_196531.html","width":130,"caption":"","height":86});
															thumbnails[196548] = clik.newPhoto({"id":196548,"src":"DSC_0114_thumb.JPG","galleries_id":17915,"server_id":1,"link":"photo_196548.html","width":130,"caption":"","height":86});
															thumbnails[196556] = clik.newPhoto({"id":196556,"src":"DSC_0135_thumb.JPG","galleries_id":17916,"server_id":1,"link":"photo_196556.html","width":130,"caption":"","height":196});
															thumbnails[196562] = clik.newPhoto({"id":196562,"src":"DSC_0142_thumb.JPG","galleries_id":17916,"server_id":1,"link":"photo_196562.html","width":130,"caption":"","height":86});
															thumbnails[196564] = clik.newPhoto({"id":196564,"src":"DSC_0156_thumb.JPG","galleries_id":17916,"server_id":1,"link":"photo_196564.html","width":130,"caption":"","height":86});
															thumbnails[196567] = clik.newPhoto({"id":196567,"src":"DSC_0253_thumb.JPG","galleries_id":17916,"server_id":1,"link":"photo_196567.html","width":130,"caption":"","height":196});
															thumbnails[196571] = clik.newPhoto({"id":196571,"src":"DSC_0256_thumb.JPG","galleries_id":17916,"server_id":1,"link":"photo_196571.html","width":130,"caption":"","height":86});
															thumbnails[196573] = clik.newPhoto({"id":196573,"src":"DSC_0281_thumb.JPG","galleries_id":17916,"server_id":1,"link":"photo_196573.html","width":130,"caption":"","height":86});
															thumbnails[196595] = clik.newPhoto({"id":196595,"src":"DSC_0320_thumb.JPG","galleries_id":17921,"server_id":1,"link":"photo_196595.html","width":130,"caption":"","height":86});
															thumbnails[196597] = clik.newPhoto({"id":196597,"src":"DSC_0010_thumb.JPG","galleries_id":17921,"server_id":1,"link":"photo_196597.html","width":130,"caption":"","height":196});
															thumbnails[196598] = clik.newPhoto({"id":196598,"src":"DSC_0013_thumb.JPG","galleries_id":17921,"server_id":1,"link":"photo_196598.html","width":130,"caption":"","height":86});
															thumbnails[196602] = clik.newPhoto({"id":196602,"src":"DSC_0036_thumb.JPG","galleries_id":17921,"server_id":1,"link":"photo_196602.html","width":130,"caption":"","height":86});
															thumbnails[196604] = clik.newPhoto({"id":196604,"src":"IMG_2857_thumb.JPG","galleries_id":17923,"server_id":1,"link":"photo_196604.html","width":130,"caption":"","height":173});
															thumbnails[196609] = clik.newPhoto({"id":196609,"src":"IMG_2887_thumb.JPG","galleries_id":17923,"server_id":1,"link":"photo_196609.html","width":130,"caption":"","height":98});
															thumbnails[196977] = clik.newPhoto({"id":196977,"src":"DSC_0134_thumb.JPG","galleries_id":17915,"server_id":1,"link":"photo_196977.html","width":130,"caption":"","height":196});
															thumbnails[197033] = clik.newPhoto({"id":197033,"src":"DSC_0057_thumb.JPG","galleries_id":17974,"server_id":1,"link":"photo_197033.html","width":130,"caption":"","height":196});
															thumbnails[197038] = clik.newPhoto({"id":197038,"src":"DSC_0087_thumb.JPG","galleries_id":17974,"server_id":1,"link":"photo_197038.html","width":130,"caption":"","height":196});
															thumbnails[197041] = clik.newPhoto({"id":197041,"src":"DSC_0101_thumb.JPG","galleries_id":17974,"server_id":1,"link":"photo_197041.html","width":130,"caption":"","height":196});
															thumbnails[197044] = clik.newPhoto({"id":197044,"src":"DSC_0327_thumb.JPG","galleries_id":17974,"server_id":1,"link":"photo_197044.html","width":130,"caption":"","height":196});
															thumbnails[197048] = clik.newPhoto({"id":197048,"src":"DSC_0512_thumb.JPG","galleries_id":17974,"server_id":1,"link":"photo_197048.html","width":130,"caption":"","height":196});
															thumbnails[197053] = clik.newPhoto({"id":197053,"src":"DSC_0051_thumb.JPG","galleries_id":17974,"server_id":1,"link":"photo_197053.html","width":130,"caption":"","height":86});
															thumbnails[197054] = clik.newPhoto({"id":197054,"src":"DSC_0047_thumb.JPG","galleries_id":17974,"server_id":1,"link":"photo_197054.html","width":130,"caption":"","height":86});
															thumbnails[197066] = clik.newPhoto({"id":197066,"src":"DSC_00131_thumb.JPG","galleries_id":17975,"server_id":1,"link":"photo_197066.html","width":130,"caption":"","height":196});
															thumbnails[197071] = clik.newPhoto({"id":197071,"src":"Picture 091_thumb.jpg","galleries_id":17975,"server_id":1,"link":"photo_197071.html","width":130,"caption":"","height":98});
															thumbnails[197076] = clik.newPhoto({"id":197076,"src":"DSC_0039_thumb.JPG","galleries_id":17975,"server_id":1,"link":"photo_197076.html","width":130,"caption":"","height":184});
															thumbnails[197079] = clik.newPhoto({"id":197079,"src":"DSC_0055_thumb.JPG","galleries_id":17975,"server_id":1,"link":"photo_197079.html","width":130,"caption":"","height":86});
															thumbnails[197090] = clik.newPhoto({"id":197090,"src":"DSC_0106_thumb.JPG","galleries_id":17975,"server_id":1,"link":"photo_197090.html","width":130,"caption":"","height":86});
															thumbnails[197116] = clik.newPhoto({"id":197116,"src":"324_2498_2_r1_thumb.jpg","galleries_id":17978,"server_id":1,"link":"photo_197116.html","width":130,"caption":"","height":173});
															thumbnails[197119] = clik.newPhoto({"id":197119,"src":"May17174_thumb.JPGm.jpg","galleries_id":17978,"server_id":1,"link":"photo_197119.html","width":130,"caption":"","height":179});
															thumbnails[197132] = clik.newPhoto({"id":197132,"src":"DSC_0345_thumb.JPG","galleries_id":17916,"server_id":1,"link":"photo_197132.html","width":130,"caption":"","height":86});
															thumbnails[197133] = clik.newPhoto({"id":197133,"src":"DSC_0119_thumb.JPG","galleries_id":17978,"server_id":1,"link":"photo_197133.html","width":130,"caption":"","height":86});
															thumbnails[197134] = clik.newPhoto({"id":197134,"src":"TurboYouth_thumb.JPG","galleries_id":17978,"server_id":1,"link":"photo_197134.html","width":130,"caption":"","height":86});
															thumbnails[197135] = clik.newPhoto({"id":197135,"src":"Blue Queen_thumb.JPG","galleries_id":17975,"server_id":1,"link":"photo_197135.html","width":130,"caption":"","height":196});
															thumbnails[197138] = clik.newPhoto({"id":197138,"src":"DSC_0191_thumb.JPG","galleries_id":17975,"server_id":1,"link":"photo_197138.html","width":130,"caption":"","height":196});
															thumbnails[197405] = clik.newPhoto({"id":197405,"src":"CIMG0074_thumb.JPG","galleries_id":17923,"server_id":1,"link":"photo_197405.html","width":130,"caption":"","height":173});
															thumbnails[197620] = clik.newPhoto({"id":197620,"src":"DSC_0211_thumb.JPG","galleries_id":17904,"server_id":1,"link":"photo_197620.html","width":130,"caption":"","height":196});
															thumbnails[198394] = clik.newPhoto({"id":198394,"src":"CIMG0034_thumb.JPG","galleries_id":17923,"server_id":1,"link":"photo_198394.html","width":130,"caption":"","height":98});
															thumbnails[198395] = clik.newPhoto({"id":198395,"src":"CIMG0061_thumb.JPG","galleries_id":17923,"server_id":1,"link":"photo_198395.html","width":130,"caption":"","height":173});
															thumbnails[198408] = clik.newPhoto({"id":198408,"src":"Nepal Children_thumb.jpg","galleries_id":17923,"server_id":1,"link":"photo_198408.html","width":130,"caption":"","height":121});
															thumbnails[198439] = clik.newPhoto({"id":198439,"src":"nepal girl_thumb.jpg","galleries_id":17923,"server_id":1,"link":"photo_198439.html","width":130,"caption":"","height":108});
															thumbnails[198445] = clik.newPhoto({"id":198445,"src":"DSC_0151_thumb.JPG","galleries_id":17916,"server_id":1,"link":"photo_198445.html","width":130,"caption":"","height":196});
															thumbnails[198454] = clik.newPhoto({"id":198454,"src":"DSC_0427_thumb.JPG","galleries_id":17916,"server_id":1,"link":"photo_198454.html","width":130,"caption":"","height":86});
															thumbnails[198459] = clik.newPhoto({"id":198459,"src":"DSC_0220_thumb.JPG","galleries_id":17916,"server_id":1,"link":"photo_198459.html","width":130,"caption":"","height":86});
															thumbnails[198463] = clik.newPhoto({"id":198463,"src":"DSC_0185_thumb.JPG","galleries_id":17916,"server_id":1,"link":"photo_198463.html","width":130,"caption":"","height":86});
															thumbnails[198476] = clik.newPhoto({"id":198476,"src":"long street Cape_thumb.JPG","galleries_id":17916,"server_id":1,"link":"photo_198476.html","width":130,"caption":"","height":196});
															thumbnails[198481] = clik.newPhoto({"id":198481,"src":"DSC_0270_edited_thumb.JPG","galleries_id":17915,"server_id":1,"link":"photo_198481.html","width":130,"caption":"","height":196});
															thumbnails[198484] = clik.newPhoto({"id":198484,"src":"DSC_0127_thumb.JPG","galleries_id":17915,"server_id":1,"link":"photo_198484.html","width":130,"caption":"","height":86});
															thumbnails[198487] = clik.newPhoto({"id":198487,"src":"DSC_0124_thumb.JPG","galleries_id":17915,"server_id":1,"link":"photo_198487.html","width":130,"caption":"","height":86});
															thumbnails[198489] = clik.newPhoto({"id":198489,"src":"DSC_0125_edited_thumb.JPG","galleries_id":17915,"server_id":1,"link":"photo_198489.html","width":130,"caption":"","height":196});
															thumbnails[198490] = clik.newPhoto({"id":198490,"src":"DSC_0178_edited_thumb.JPG","galleries_id":17915,"server_id":1,"link":"photo_198490.html","width":130,"caption":"","height":86});
															thumbnails[198494] = clik.newPhoto({"id":198494,"src":"DSC_0054_edited_thumb.JPG","galleries_id":17915,"server_id":1,"link":"photo_198494.html","width":130,"caption":"","height":139});
															thumbnails[198502] = clik.newPhoto({"id":198502,"src":"DSC_0277_edited_thumb.JPG","galleries_id":17915,"server_id":1,"link":"photo_198502.html","width":130,"caption":"","height":86});
															thumbnails[198503] = clik.newPhoto({"id":198503,"src":"DSC_01341_thumb.JPG","galleries_id":17904,"server_id":1,"link":"photo_198503.html","width":130,"caption":"","height":107});
															thumbnails[198511] = clik.newPhoto({"id":198511,"src":"DSC_0145_thumb.JPG","galleries_id":17978,"server_id":1,"link":"photo_198511.html","width":130,"caption":"","height":196});
															thumbnails[198520] = clik.newPhoto({"id":198520,"src":"DSC_0179_thumb.JPG","galleries_id":17978,"server_id":1,"link":"photo_198520.html","width":130,"caption":"","height":196});
															thumbnails[198521] = clik.newPhoto({"id":198521,"src":"DSC_0196_thumb.JPG","galleries_id":17978,"server_id":1,"link":"photo_198521.html","width":130,"caption":"","height":86});
															thumbnails[198525] = clik.newPhoto({"id":198525,"src":"DSC_0193_thumb.JPG","galleries_id":17978,"server_id":1,"link":"photo_198525.html","width":130,"caption":"","height":196});
															thumbnails[198528] = clik.newPhoto({"id":198528,"src":"DSC_0309_thumb.JPG","galleries_id":17921,"server_id":1,"link":"photo_198528.html","width":130,"caption":"","height":106});
															thumbnails[204419] = clik.newPhoto({"id":204419,"src":"DSC_03451_thumb.JPG","galleries_id":18621,"server_id":1,"link":"photo_204419.html","width":130,"caption":"","height":86});
															thumbnails[204420] = clik.newPhoto({"id":204420,"src":"DSC_0368_thumb.JPG","galleries_id":18621,"server_id":1,"link":"photo_204420.html","width":130,"caption":"","height":86});
															thumbnails[204421] = clik.newPhoto({"id":204421,"src":"DSC_0393_thumb.JPG","galleries_id":18621,"server_id":1,"link":"photo_204421.html","width":130,"caption":"","height":86});
															thumbnails[204423] = clik.newPhoto({"id":204423,"src":"DSC_0346_thumb.JPG","galleries_id":18621,"server_id":1,"link":"photo_204423.html","width":130,"caption":"","height":86});
															thumbnails[204426] = clik.newPhoto({"id":204426,"src":"DSC_0647_thumb.JPG","galleries_id":18621,"server_id":1,"link":"photo_204426.html","width":130,"caption":"","height":86});
															thumbnails[204428] = clik.newPhoto({"id":204428,"src":"DSC_0656_thumb.JPG","galleries_id":18621,"server_id":1,"link":"photo_204428.html","width":130,"caption":"","height":86});
															thumbnails[204430] = clik.newPhoto({"id":204430,"src":"DSC_0644_thumb.JPG","galleries_id":18621,"server_id":1,"link":"photo_204430.html","width":130,"caption":"","height":86});
															thumbnails[204432] = clik.newPhoto({"id":204432,"src":"DSC_0416_thumb.JPG","galleries_id":18621,"server_id":1,"link":"photo_204432.html","width":130,"caption":"","height":86});
															thumbnails[204434] = clik.newPhoto({"id":204434,"src":"DSC_0642_thumb.JPG","galleries_id":18621,"server_id":1,"link":"photo_204434.html","width":130,"caption":"","height":196});
															thumbnails[204439] = clik.newPhoto({"id":204439,"src":"DSC_0488_thumb.JPG","galleries_id":18621,"server_id":1,"link":"photo_204439.html","width":130,"caption":"","height":86});
															thumbnails[204444] = clik.newPhoto({"id":204444,"src":"DSC_0521_thumb.JPG","galleries_id":18621,"server_id":1,"link":"photo_204444.html","width":130,"caption":"","height":86});
															thumbnails[253675] = clik.newPhoto({"id":253675,"src":"DSC_0007_thumb.JPG","galleries_id":22897,"server_id":1,"link":"photo_253675.html","width":130,"caption":"","height":195});
															thumbnails[253676] = clik.newPhoto({"id":253676,"src":"DSC_0162_thumb.JPG","galleries_id":22897,"server_id":1,"link":"photo_253676.html","width":130,"caption":"","height":98});
															thumbnails[253677] = clik.newPhoto({"id":253677,"src":"DSC_0529_thumb.JPG","galleries_id":22897,"server_id":1,"link":"photo_253677.html","width":130,"caption":"","height":86});
															thumbnails[253688] = clik.newPhoto({"id":253688,"src":"DSC_0804_thumb.JPG","galleries_id":22897,"server_id":1,"link":"photo_253688.html","width":130,"caption":"","height":196});
															thumbnails[253689] = clik.newPhoto({"id":253689,"src":"DSC_0620_thumb.JPG","galleries_id":22897,"server_id":1,"link":"photo_253689.html","width":130,"caption":"","height":86});
															thumbnails[258920] = clik.newPhoto({"id":258920,"src":"DSC_0144_thumb.JPG","galleries_id":22897,"server_id":1,"link":"photo_258920.html","width":130,"caption":"","height":195});
															thumbnails[258929] = clik.newPhoto({"id":258929,"src":"DSC_0509_thumb.JPG","galleries_id":22897,"server_id":1,"link":"photo_258929.html","width":130,"caption":"","height":86});
															thumbnails[258930] = clik.newPhoto({"id":258930,"src":"DSC_0847-1_thumb.JPG","galleries_id":22897,"server_id":1,"link":"photo_258930.html","width":130,"caption":"","height":196});
															thumbnails[258931] = clik.newPhoto({"id":258931,"src":"DSC03193_thumb.JPG","galleries_id":22897,"server_id":1,"link":"photo_258931.html","width":130,"caption":"","height":173});
															thumbnails[258934] = clik.newPhoto({"id":258934,"src":"DSC_01791_thumb.JPG","galleries_id":22897,"server_id":1,"link":"photo_258934.html","width":130,"caption":"","height":196});
															thumbnails[258939] = clik.newPhoto({"id":258939,"src":"DSC_0425_thumb.JPG","galleries_id":22897,"server_id":1,"link":"photo_258939.html","width":130,"caption":"","height":86});
															thumbnails[260460] = clik.newPhoto({"id":260460,"src":"DSC_00751_thumb.JPG","galleries_id":17975,"server_id":1,"link":"photo_260460.html","width":130,"caption":"","height":195});
															thumbnails[360955] = clik.newPhoto({"id":360955,"src":"flower3_thumb.jpg","galleries_id":17975,"server_id":1,"link":"photo_360955.html","width":130,"caption":"","height":196});
															thumbnails[686845] = clik.newPhoto({"id":686845,"src":"Dakhla (44)_thumb.JPG","galleries_id":18621,"server_id":1,"link":"photo_686845.html","width":130,"caption":"","height":98});
															thumbnails[686846] = clik.newPhoto({"id":686846,"src":"Dakhla (123)_thumb.JPG","galleries_id":18621,"server_id":1,"link":"photo_686846.html","width":130,"caption":"","height":173});
															thumbnails[686859] = clik.newPhoto({"id":686859,"src":"Dakhla (95)_thumb.JPG","galleries_id":18621,"server_id":1,"link":"photo_686859.html","width":130,"caption":"","height":98});
															thumbnails[686908] = clik.newPhoto({"id":686908,"src":"Dakhla (107)_thumb.JPG","galleries_id":18621,"server_id":1,"link":"photo_686908.html","width":130,"caption":"","height":173});
															thumbnails[5367123] = clik.newPhoto({"id":5367123,"src":"DSC_0034_thumb.JPG","galleries_id":159544,"server_id":1,"link":"photo_5367123.html","width":130,"caption":"","height":86});
															thumbnails[5367129] = clik.newPhoto({"id":5367129,"src":"DSC04097_2C2A6080-1D09-001F-9930A1E5AE0776E3_thumb.JPG","galleries_id":159544,"server_id":1,"link":"photo_5367129.html","width":130,"caption":"","height":98});
															thumbnails[5367132] = clik.newPhoto({"id":5367132,"src":"DSC04490_thumb.JPG","galleries_id":159544,"server_id":1,"link":"photo_5367132.html","width":130,"caption":"","height":173});
															thumbnails[5367134] = clik.newPhoto({"id":5367134,"src":"DSC04568_thumb.JPG","galleries_id":159544,"server_id":1,"link":"photo_5367134.html","width":130,"caption":"","height":173});
															thumbnails[5367136] = clik.newPhoto({"id":5367136,"src":"DSC04573_thumb.JPG","galleries_id":159544,"server_id":1,"link":"photo_5367136.html","width":130,"caption":"","height":173});
															thumbnails[5367139] = clik.newPhoto({"id":5367139,"src":"DSC_0009_thumb.JPG","galleries_id":159544,"server_id":1,"link":"photo_5367139.html","width":130,"caption":"","height":86});
															thumbnails[5367141] = clik.newPhoto({"id":5367141,"src":"DSC_0018_thumb.JPG","galleries_id":159544,"server_id":1,"link":"photo_5367141.html","width":130,"caption":"","height":86});
															thumbnails[5367142] = clik.newPhoto({"id":5367142,"src":"DSC_0023_thumb.JPG","galleries_id":159544,"server_id":1,"link":"photo_5367142.html","width":130,"caption":"","height":86});
															thumbnails[5367143] = clik.newPhoto({"id":5367143,"src":"DSC_00251_thumb.JPG","galleries_id":159544,"server_id":1,"link":"photo_5367143.html","width":130,"caption":"","height":87});
															thumbnails[5367152] = clik.newPhoto({"id":5367152,"src":"DSC_00341_thumb.JPG","galleries_id":159544,"server_id":1,"link":"photo_5367152.html","width":130,"caption":"","height":86});
															thumbnails[5367157] = clik.newPhoto({"id":5367157,"src":"DSC_0053_thumb.JPG","galleries_id":159544,"server_id":1,"link":"photo_5367157.html","width":130,"caption":"","height":196});
															thumbnails[5367161] = clik.newPhoto({"id":5367161,"src":"DSC_0066_thumb.JPG","galleries_id":159544,"server_id":1,"link":"photo_5367161.html","width":130,"caption":"","height":196});
															thumbnails[5367166] = clik.newPhoto({"id":5367166,"src":"DSC_0073_thumb.JPG","galleries_id":159544,"server_id":1,"link":"photo_5367166.html","width":130,"caption":"","height":86});
															thumbnails[5367170] = clik.newPhoto({"id":5367170,"src":"DSC_0077_thumb.JPG","galleries_id":159544,"server_id":1,"link":"photo_5367170.html","width":130,"caption":"","height":86});
															thumbnails[5367171] = clik.newPhoto({"id":5367171,"src":"DSC_0078_thumb.JPG","galleries_id":159544,"server_id":1,"link":"photo_5367171.html","width":130,"caption":"","height":86});
															thumbnails[5367174] = clik.newPhoto({"id":5367174,"src":"DSC_0085_thumb.JPG","galleries_id":159544,"server_id":1,"link":"photo_5367174.html","width":130,"caption":"","height":86});
															thumbnails[5367175] = clik.newPhoto({"id":5367175,"src":"DSC_0087_2C35FEDD-1D09-001F-9916B80C8FFBEAD2_thumb.JPG","galleries_id":159544,"server_id":1,"link":"photo_5367175.html","width":130,"caption":"","height":86});
															thumbnails[5367179] = clik.newPhoto({"id":5367179,"src":"DSC_0110_thumb.JPG","galleries_id":159544,"server_id":1,"link":"photo_5367179.html","width":130,"caption":"","height":86});
															thumbnails[5367181] = clik.newPhoto({"id":5367181,"src":"DSC_0117_thumb.JPG","galleries_id":159544,"server_id":1,"link":"photo_5367181.html","width":130,"caption":"","height":86});
															thumbnails[5367187] = clik.newPhoto({"id":5367187,"src":"DSC_0125_thumb.JPG","galleries_id":159544,"server_id":1,"link":"photo_5367187.html","width":130,"caption":"","height":196});
															thumbnails[5367189] = clik.newPhoto({"id":5367189,"src":"DSC_0127_2C3919AA-1D09-001F-99BE98A4C238396D_thumb.JPG","galleries_id":159544,"server_id":1,"link":"photo_5367189.html","width":130,"caption":"","height":86});
															thumbnails[5367191] = clik.newPhoto({"id":5367191,"src":"DSC_0139_thumb.JPG","galleries_id":159544,"server_id":1,"link":"photo_5367191.html","width":130,"caption":"","height":86});
															thumbnails[5367194] = clik.newPhoto({"id":5367194,"src":"DSC_00713_thumb.JPG","galleries_id":159544,"server_id":1,"link":"photo_5367194.html","width":130,"caption":"","height":86});
															thumbnails[5367195] = clik.newPhoto({"id":5367195,"src":"DSC_0184_thumb.JPG","galleries_id":159544,"server_id":1,"link":"photo_5367195.html","width":130,"caption":"","height":86});
															thumbnails[5367199] = clik.newPhoto({"id":5367199,"src":"DSC_0058_thumb.JPG","galleries_id":159544,"server_id":1,"link":"photo_5367199.html","width":130,"caption":"","height":86});
															thumbnails[5367201] = clik.newPhoto({"id":5367201,"src":"DSC_0071_thumb.JPG","galleries_id":159544,"server_id":1,"link":"photo_5367201.html","width":130,"caption":"","height":86});
															thumbnails[5367237] = clik.newPhoto({"id":5367237,"src":"DSC04591_thumb.JPG","galleries_id":159544,"server_id":1,"link":"photo_5367237.html","width":130,"caption":"","height":173});
															thumbnails[5367239] = clik.newPhoto({"id":5367239,"src":"DSC04629_thumb.JPG","galleries_id":159544,"server_id":1,"link":"photo_5367239.html","width":130,"caption":"","height":173});
															thumbnails[5367257] = clik.newPhoto({"id":5367257,"src":"DSCN0501_thumb.JPG","galleries_id":159544,"server_id":1,"link":"photo_5367257.html","width":130,"caption":"","height":98});
															thumbnails[5367259] = clik.newPhoto({"id":5367259,"src":"DSCN0519_thumb.JPG","galleries_id":159544,"server_id":1,"link":"photo_5367259.html","width":130,"caption":"","height":173});
															thumbnails[5367261] = clik.newPhoto({"id":5367261,"src":"DSCN0522_thumb.JPG","galleries_id":159544,"server_id":1,"link":"photo_5367261.html","width":130,"caption":"","height":173});
															thumbnails[5367262] = clik.newPhoto({"id":5367262,"src":"DSCN0537_thumb.JPG","galleries_id":159544,"server_id":1,"link":"photo_5367262.html","width":130,"caption":"","height":173});
															thumbnails[5367264] = clik.newPhoto({"id":5367264,"src":"DSCN0528_thumb.JPG","galleries_id":159544,"server_id":1,"link":"photo_5367264.html","width":130,"caption":"","height":173});
															thumbnails[5367265] = clik.newPhoto({"id":5367265,"src":"DSCN0530_thumb.JPG","galleries_id":159544,"server_id":1,"link":"photo_5367265.html","width":130,"caption":"","height":173});
															thumbnails[5367633] = clik.newPhoto({"id":5367633,"src":"DSC_0080_thumb.jpg","galleries_id":302534,"server_id":1,"link":"photo_5367633.html","width":130,"caption":"","height":196});
															thumbnails[5367639] = clik.newPhoto({"id":5367639,"src":"DSCN0162_thumb.JPG","galleries_id":302534,"server_id":1,"link":"photo_5367639.html","width":130,"caption":"","height":96});
															thumbnails[5367640] = clik.newPhoto({"id":5367640,"src":"DSCN0342_thumb.JPG","galleries_id":302534,"server_id":1,"link":"photo_5367640.html","width":130,"caption":"","height":173});
															thumbnails[5367644] = clik.newPhoto({"id":5367644,"src":"IMG_0918_thumb.jpg","galleries_id":302534,"server_id":1,"link":"photo_5367644.html","width":130,"caption":"","height":173});
															thumbnails[5367646] = clik.newPhoto({"id":5367646,"src":"IMG_0962_thumb.jpg","galleries_id":302534,"server_id":1,"link":"photo_5367646.html","width":130,"caption":"","height":173});
															thumbnails[5367649] = clik.newPhoto({"id":5367649,"src":"IMG_0966_thumb.JPG","galleries_id":302534,"server_id":1,"link":"photo_5367649.html","width":130,"caption":"","height":98});
															thumbnails[5367652] = clik.newPhoto({"id":5367652,"src":"Moni_and_Tomas_thumb.jpg","galleries_id":302534,"server_id":1,"link":"photo_5367652.html","width":130,"caption":"","height":173});
															thumbnails[5367665] = clik.newPhoto({"id":5367665,"src":"DSCN0204_thumb.jpg","galleries_id":302534,"server_id":1,"link":"photo_5367665.html","width":130,"caption":"Mooji","height":98});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[159544] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"BOLIVIA AND PERU","link":"gallery_159544.html","maxRecords":0.0,"photoIDs":[5367123.0,5367129.0,5367132.0,5367134.0,5367136.0,5367139.0,5367141.0,5367142.0,5367143.0,5367152.0,5367157.0,5367161.0,5367166.0,5367170.0,5367171.0,5367174.0,5367175.0,5367179.0,5367181.0,5367187.0,5367189.0,5367191.0,5367194.0,5367195.0,5367199.0,5367201.0,5367237.0,5367239.0,5367257.0,5367259.0,5367261.0,5367262.0,5367264.0,5367265.0],"skipIndex":0,"section_code":"gallery","featured_images":"5367265,5367264,5367262,5367261,5367259,5367257,5367239,5367237,5367201,5367199","id":159544,"singleSection":false});				  						galleries[17915] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Cuba","link":"gallery_17915.html","maxRecords":0.0,"photoIDs":[196511.0,196512.0,196515.0,196518.0,196523.0,196531.0,196548.0,196977.0,198481.0,198484.0,198487.0,198489.0,198490.0,198494.0,198502.0],"skipIndex":0,"section_code":"gallery","featured_images":"198502,198494,198490,198489,198487,198484,198481,196977,196548,196531","id":17915,"singleSection":false});				  						galleries[17923] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"India and Nepal ","link":"gallery_17923.html","maxRecords":0.0,"photoIDs":[196604.0,196609.0,197405.0,198394.0,198395.0,198408.0,198439.0],"skipIndex":0,"section_code":"gallery","featured_images":"198439,198408,198395,198394,197405,196609,196604","id":17923,"singleSection":false});				  						galleries[17974] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Kite Rush","link":"gallery_17974.html","maxRecords":0.0,"photoIDs":[197033.0,197038.0,197041.0,197044.0,197048.0,197053.0,197054.0],"skipIndex":0,"section_code":"gallery","featured_images":"197054,197053,197048,197044,197041,197038,197033","id":17974,"singleSection":false});				  						galleries[22897] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Los Roques","link":"gallery_22897.html","maxRecords":0.0,"photoIDs":[253675.0,253676.0,253677.0,253688.0,253689.0,258920.0,258929.0,258930.0,258931.0,258934.0,258939.0],"skipIndex":0,"section_code":"gallery","featured_images":"258939,258934,258931,258930,258929,258920,253689,253688,253677,253676","id":22897,"singleSection":false});				  						galleries[18621] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Morroco","link":"gallery_18621.html","maxRecords":0.0,"photoIDs":[204419.0,204420.0,204421.0,204423.0,204426.0,204428.0,204430.0,204432.0,204434.0,204439.0,204444.0,686845.0,686846.0,686859.0,686908.0],"skipIndex":0,"section_code":"gallery","featured_images":"686908,686859,686846,686845,204444,204439,204434,204432,204430,204428","id":18621,"singleSection":false});				  						galleries[17921] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Nature","link":"gallery_17921.html","maxRecords":0.0,"photoIDs":[196595.0,196597.0,196598.0,196602.0,198528.0],"skipIndex":0,"section_code":"gallery","featured_images":"198528,196602,196598,196597,196595","id":17921,"singleSection":false});				  						galleries[17904] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"New York","link":"gallery_17904.html","maxRecords":0.0,"photoIDs":[196397.0,196405.0,196458.0,196461.0,196463.0,196464.0,196465.0,196466.0,196468.0,196469.0,197620.0,198503.0],"skipIndex":0,"section_code":"gallery","featured_images":"198503,197620,196469,196468,196466,196465,196464,196463,196461,196458","id":17904,"singleSection":false});				  						galleries[302534] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"SATSANG","link":"gallery_302534.html","maxRecords":0.0,"photoIDs":[5367633.0,5367639.0,5367640.0,5367644.0,5367646.0,5367649.0,5367652.0,5367665.0],"skipIndex":0,"section_code":"gallery","featured_images":"5367665,5367652,5367649,5367646,5367644,5367640,5367639,5367633","id":302534,"singleSection":false});				  						galleries[17916] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"South Africa","link":"gallery_17916.html","maxRecords":0.0,"photoIDs":[196556.0,196562.0,196564.0,196567.0,196571.0,196573.0,197132.0,198445.0,198454.0,198459.0,198463.0,198476.0],"skipIndex":0,"section_code":"gallery","featured_images":"198476,198463,198459,198454,198445,197132,196573,196571,196567,196564","id":17916,"singleSection":false});				  						galleries[17975] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Special People","link":"gallery_17975.html","maxRecords":0.0,"photoIDs":[197066.0,197071.0,197076.0,197079.0,197090.0,197135.0,197138.0,260460.0,360955.0],"skipIndex":0,"section_code":"gallery","featured_images":"360955,260460,197138,197135,197090,197079,197076,197071,197066","id":17975,"singleSection":false});				  						galleries[17978] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Various","link":"gallery_17978.html","maxRecords":0.0,"photoIDs":[197116.0,197119.0,197133.0,197134.0,198511.0,198520.0,198521.0,198525.0],"skipIndex":0,"section_code":"gallery","featured_images":"198525,198521,198520,198511,197134,197133,197119,197116","id":17978,"singleSection":false});				  						galleries[17862] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Paris","link":"gallery_17862.html","maxRecords":0.0,"photoIDs":[195984.0,195985.0,195988.0,195989.0,195991.0,195992.0,195993.0],"skipIndex":0,"section_code":"gallery","featured_images":"195993,195992,195991,195989,195988,195985,195984","id":17862,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '360955';
imageSets[3] = '5367139';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/marcoscortes/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/marcoscortes/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/marcoscortes/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/marcoscortes/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/marcoscortes/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/marcoscortes/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/marcoscortes/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/marcoscortes/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/marcoscortes/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/marcoscortes/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/marcoscortes/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/marcoscortes/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/marcoscortes/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/marcoscortes/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/marcoscortes/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/marcoscortes/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/marcoscortes/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/marcoscortes/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/marcoscortes/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/marcoscortes/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/marcoscortes/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/marcoscortes/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/marcoscortes/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/marcoscortes/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = backgrounds && backgrounds[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += '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 = 'Marcos Cortes: ' + 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> &euro;' + (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 += '<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({					href: thumbnails[imageID].fnGalleryLink(gallery_id),					title: galleries[gallery_id].title				});
			}
		}
	}
}

/***************************************************************************
* 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;
	}
}

			

