window.thumbnails = {};
															thumbnails[1783699] = clik.newPhoto({"id":1783699,"src":"05FRA0385_thumb.jpg","galleries_id":73702,"server_id":1,"link":"photo_1783699.html","width":130,"caption":"","height":87});
															thumbnails[1783700] = clik.newPhoto({"id":1783700,"src":"07HOL01062_thumb.jpg","galleries_id":73702,"server_id":1,"link":"photo_1783700.html","width":130,"caption":"","height":87});
															thumbnails[1783701] = clik.newPhoto({"id":1783701,"src":"07HOL01063_thumb.jpg","galleries_id":73702,"server_id":1,"link":"photo_1783701.html","width":130,"caption":"","height":87});
															thumbnails[5976213] = clik.newPhoto({"id":5976213,"src":"09CRIC13016_thumb.jpg","galleries_id":336963,"server_id":1,"link":"photo_5976213.html","width":130,"caption":"","height":87});
															thumbnails[5976216] = clik.newPhoto({"id":5976216,"src":"09CRIC13026_thumb.jpg","galleries_id":336963,"server_id":1,"link":"photo_5976216.html","width":130,"caption":"","height":87});
															thumbnails[5976219] = clik.newPhoto({"id":5976219,"src":"09CRIC13027_thumb.jpg","galleries_id":336963,"server_id":1,"link":"photo_5976219.html","width":130,"caption":"","height":87});
															thumbnails[5976229] = clik.newPhoto({"id":5976229,"src":"09CRIC16029_thumb.jpg","galleries_id":336963,"server_id":1,"link":"photo_5976229.html","width":130,"caption":"","height":87});
															thumbnails[5976232] = clik.newPhoto({"id":5976232,"src":"09CRIC20023_thumb.jpg","galleries_id":336963,"server_id":1,"link":"photo_5976232.html","width":130,"caption":"","height":87});
															thumbnails[5976234] = clik.newPhoto({"id":5976234,"src":"09CRIC21054_thumb.jpg","galleries_id":336963,"server_id":1,"link":"photo_5976234.html","width":130,"caption":"","height":87});
															thumbnails[5976237] = clik.newPhoto({"id":5976237,"src":"09CRIC21065_thumb.jpg","galleries_id":336963,"server_id":1,"link":"photo_5976237.html","width":130,"caption":"","height":87});
															thumbnails[5976240] = clik.newPhoto({"id":5976240,"src":"09CRIC22033_thumb.jpg","galleries_id":336963,"server_id":1,"link":"photo_5976240.html","width":130,"caption":"","height":87});
															thumbnails[5976242] = clik.newPhoto({"id":5976242,"src":"09CRIC22041_copy_thumb.jpg","galleries_id":336963,"server_id":1,"link":"photo_5976242.html","width":130,"caption":"","height":87});
															thumbnails[5976245] = clik.newPhoto({"id":5976245,"src":"09CRIC22047_thumb.jpg","galleries_id":336963,"server_id":1,"link":"photo_5976245.html","width":130,"caption":"","height":87});
															thumbnails[5976247] = clik.newPhoto({"id":5976247,"src":"09CRIC22068_thumb.jpg","galleries_id":336963,"server_id":1,"link":"photo_5976247.html","width":87,"caption":"","height":130});
															thumbnails[5976249] = clik.newPhoto({"id":5976249,"src":"09CRIC22070_thumb.jpg","galleries_id":336963,"server_id":1,"link":"photo_5976249.html","width":87,"caption":"","height":130});
															thumbnails[5976253] = clik.newPhoto({"id":5976253,"src":"09CRIC22072_thumb.jpg","galleries_id":336963,"server_id":1,"link":"photo_5976253.html","width":130,"caption":"","height":87});
															thumbnails[5976257] = clik.newPhoto({"id":5976257,"src":"09CRIC30118_thumb.jpg","galleries_id":336963,"server_id":1,"link":"photo_5976257.html","width":130,"caption":"","height":87});
															thumbnails[1497424] = clik.newPhoto({"id":1497424,"src":"04CRI00221_thumb.jpg","galleries_id":73807,"server_id":1,"link":"photo_1497424.html","width":130,"caption":"","height":87});
															thumbnails[1497659] = clik.newPhoto({"id":1497659,"src":"05TRI00091_thumb.jpg","galleries_id":73702,"server_id":1,"link":"photo_1497659.html","width":130,"caption":"","height":87});
															thumbnails[1497663] = clik.newPhoto({"id":1497663,"src":"06HOC05831_thumb.jpg","galleries_id":73808,"server_id":1,"link":"photo_1497663.html","width":130,"caption":"","height":87});
															thumbnails[1497683] = clik.newPhoto({"id":1497683,"src":"06SAI01161_thumb.jpg","galleries_id":73810,"server_id":1,"link":"photo_1497683.html","width":130,"caption":"","height":87});
															thumbnails[2486075] = clik.newPhoto({"id":2486075,"src":"08SAIL02B 0311_thumb.jpg","galleries_id":73810,"server_id":1,"link":"photo_2486075.html","width":130,"caption":"08SAIL02B 031","height":87});
															thumbnails[2982517] = clik.newPhoto({"id":2982517,"src":"08SAIL12033_thumb.jpg","galleries_id":73810,"server_id":1,"link":"photo_2982517.html","width":130,"caption":"08SAIL12033","height":87});
															thumbnails[4480945] = clik.newPhoto({"id":4480945,"src":"09SAIL06311_thumb.jpg","galleries_id":73810,"server_id":1,"link":"photo_4480945.html","width":130,"caption":"09SAIL06311","height":87});
															thumbnails[1646684] = clik.newPhoto({"id":1646684,"src":"07CRI05021_thumb.jpg","galleries_id":73807,"server_id":1,"link":"photo_1646684.html","width":130,"caption":"","height":87});
															thumbnails[1497425] = clik.newPhoto({"id":1497425,"src":"05CRI00121_thumb.jpg","galleries_id":73807,"server_id":1,"link":"photo_1497425.html","width":130,"caption":"","height":93});
															thumbnails[1497660] = clik.newPhoto({"id":1497660,"src":"07CYC01 060001_thumb.jpg","galleries_id":73702,"server_id":1,"link":"photo_1497660.html","width":130,"caption":"","height":87});
															thumbnails[1497665] = clik.newPhoto({"id":1497665,"src":"06HOC06381_thumb.jpg","galleries_id":73808,"server_id":1,"link":"photo_1497665.html","width":130,"caption":"","height":87});
															thumbnails[1497685] = clik.newPhoto({"id":1497685,"src":"06SAI01391_thumb.jpg","galleries_id":73810,"server_id":1,"link":"photo_1497685.html","width":130,"caption":"","height":87});
															thumbnails[2486076] = clik.newPhoto({"id":2486076,"src":"08SAIL04063_thumb.jpg","galleries_id":73810,"server_id":1,"link":"photo_2486076.html","width":130,"caption":"08SAIL04063","height":87});
															thumbnails[2982518] = clik.newPhoto({"id":2982518,"src":"08SAIL12081_thumb.jpg","galleries_id":73810,"server_id":1,"link":"photo_2982518.html","width":130,"caption":"08SAIL12081","height":87});
															thumbnails[4480946] = clik.newPhoto({"id":4480946,"src":"09SAIL07150_thumb.jpg","galleries_id":73810,"server_id":1,"link":"photo_4480946.html","width":130,"caption":"09SAIL07150","height":87});
															thumbnails[1646697] = clik.newPhoto({"id":1646697,"src":"07HOC06005_thumb.jpg","galleries_id":73808,"server_id":1,"link":"photo_1646697.html","width":130,"caption":"","height":87});
															thumbnails[1497427] = clik.newPhoto({"id":1497427,"src":"06CRI00531_thumb.jpg","galleries_id":73807,"server_id":1,"link":"photo_1497427.html","width":130,"caption":"","height":87});
															thumbnails[1497661] = clik.newPhoto({"id":1497661,"src":"07CYC01 062 copy0011_thumb.jpg","galleries_id":73702,"server_id":1,"link":"photo_1497661.html","width":130,"caption":"","height":52});
															thumbnails[1497667] = clik.newPhoto({"id":1497667,"src":"06HOC07631_thumb.jpg","galleries_id":73808,"server_id":1,"link":"photo_1497667.html","width":130,"caption":"","height":87});
															thumbnails[1497686] = clik.newPhoto({"id":1497686,"src":"06SAI03671_thumb.jpg","galleries_id":73810,"server_id":1,"link":"photo_1497686.html","width":130,"caption":"","height":87});
															thumbnails[2486077] = clik.newPhoto({"id":2486077,"src":"08SAIL04130_thumb.jpg","galleries_id":73810,"server_id":1,"link":"photo_2486077.html","width":130,"caption":"08SAIL04130","height":87});
															thumbnails[2982519] = clik.newPhoto({"id":2982519,"src":"08SAIL12088_thumb.jpg","galleries_id":73810,"server_id":1,"link":"photo_2982519.html","width":130,"caption":"08SAIL12088","height":87});
															thumbnails[4480947] = clik.newPhoto({"id":4480947,"src":"09SAIL07169_thumb.jpg","galleries_id":73810,"server_id":1,"link":"photo_4480947.html","width":130,"caption":"09SAIL07169","height":87});
															thumbnails[1646699] = clik.newPhoto({"id":1646699,"src":"07HOC06112_thumb.jpg","galleries_id":73808,"server_id":1,"link":"photo_1646699.html","width":130,"caption":"","height":87});
															thumbnails[1506890] = clik.newPhoto({"id":1506890,"src":"05TRI0072_thumb.jpg","galleries_id":73702,"server_id":1,"link":"photo_1506890.html","width":130,"caption":"","height":87});
															thumbnails[1646688] = clik.newPhoto({"id":1646688,"src":"07CRI05062_thumb.jpg","galleries_id":73807,"server_id":1,"link":"photo_1646688.html","width":130,"caption":"","height":87});
															thumbnails[1497446] = clik.newPhoto({"id":1497446,"src":"06CRI00701_thumb.jpg","galleries_id":73807,"server_id":1,"link":"photo_1497446.html","width":130,"caption":"","height":87});
															thumbnails[1497669] = clik.newPhoto({"id":1497669,"src":"07HOC020531_thumb.jpg","galleries_id":73808,"server_id":1,"link":"photo_1497669.html","width":130,"caption":"","height":87});
															thumbnails[1497688] = clik.newPhoto({"id":1497688,"src":"07SAI010604_thumb.jpg","galleries_id":73810,"server_id":1,"link":"photo_1497688.html","width":130,"caption":"","height":87});
															thumbnails[2486078] = clik.newPhoto({"id":2486078,"src":"08SAIL04185_thumb.jpg","galleries_id":73810,"server_id":1,"link":"photo_2486078.html","width":130,"caption":"08SAIL04185","height":87});
															thumbnails[4480948] = clik.newPhoto({"id":4480948,"src":"09SAIL07239_thumb.jpg","galleries_id":73810,"server_id":1,"link":"photo_4480948.html","width":130,"caption":"09SAIL07239","height":87});
															thumbnails[5042810] = clik.newPhoto({"id":5042810,"src":"09HOC42029_thumb.jpg","galleries_id":336856,"server_id":1,"link":"photo_5042810.html","width":130,"caption":"09HOC42029","height":87});
															thumbnails[1646690] = clik.newPhoto({"id":1646690,"src":"07CRI05091_thumb.jpg","galleries_id":73807,"server_id":1,"link":"photo_1646690.html","width":130,"caption":"","height":87});
															thumbnails[1646700] = clik.newPhoto({"id":1646700,"src":"07HOC09021_thumb.jpg","galleries_id":73808,"server_id":1,"link":"photo_1646700.html","width":130,"caption":"","height":87});
															thumbnails[1506887] = clik.newPhoto({"id":1506887,"src":"05TEN0055_thumb.jpg","galleries_id":73702,"server_id":1,"link":"photo_1506887.html","width":130,"caption":"","height":87});
															thumbnails[1497471] = clik.newPhoto({"id":1497471,"src":"06CRI00851_thumb.jpg","galleries_id":73807,"server_id":1,"link":"photo_1497471.html","width":130,"caption":"","height":87});
															thumbnails[1497672] = clik.newPhoto({"id":1497672,"src":"07HOC020671_thumb.jpg","galleries_id":73808,"server_id":1,"link":"photo_1497672.html","width":130,"caption":"","height":87});
															thumbnails[1497690] = clik.newPhoto({"id":1497690,"src":"07SAI020722_thumb.jpg","galleries_id":73810,"server_id":1,"link":"photo_1497690.html","width":130,"caption":"","height":87});
															thumbnails[2486079] = clik.newPhoto({"id":2486079,"src":"08SAIL04188_thumb.jpg","galleries_id":73810,"server_id":1,"link":"photo_2486079.html","width":130,"caption":"08SAIL04188","height":87});
															thumbnails[2982521] = clik.newPhoto({"id":2982521,"src":"08SAIL12106_thumb.jpg","galleries_id":73810,"server_id":1,"link":"photo_2982521.html","width":130,"caption":"08SAIL12106","height":87});
															thumbnails[3557101] = clik.newPhoto({"id":3557101,"src":"09HOC19019_thumb.jpg","galleries_id":240628,"server_id":1,"link":"photo_3557101.html","width":130,"caption":"09HOC19019","height":87});
															thumbnails[4480949] = clik.newPhoto({"id":4480949,"src":"09SAIL08265_thumb.jpg","galleries_id":73810,"server_id":1,"link":"photo_4480949.html","width":130,"caption":"09SAIL08265","height":87});
															thumbnails[4957449] = clik.newPhoto({"id":4957449,"src":"09HOC39022_thumb.jpg","galleries_id":336856,"server_id":1,"link":"photo_4957449.html","width":130,"caption":"09HOC39022","height":87});
															thumbnails[5042811] = clik.newPhoto({"id":5042811,"src":"09HOC42052_BB58A60D-1D09-001F-9952A366F908ADC6_thumb.jpg","galleries_id":336856,"server_id":1,"link":"photo_5042811.html","width":130,"caption":"09HOC42052","height":87});
															thumbnails[1506901] = clik.newPhoto({"id":1506901,"src":"05TRI0093_thumb.jpg","galleries_id":73702,"server_id":1,"link":"photo_1506901.html","width":87,"caption":"","height":130});
															thumbnails[1497662] = clik.newPhoto({"id":1497662,"src":"05TRI01011_thumb.jpg","galleries_id":73702,"server_id":1,"link":"photo_1497662.html","width":87,"caption":"","height":130});
															thumbnails[1497475] = clik.newPhoto({"id":1497475,"src":"06CRI00871_thumb.jpg","galleries_id":73807,"server_id":1,"link":"photo_1497475.html","width":130,"caption":"","height":87});
															thumbnails[1497674] = clik.newPhoto({"id":1497674,"src":"07HOC020721_thumb.jpg","galleries_id":73808,"server_id":1,"link":"photo_1497674.html","width":130,"caption":"","height":87});
															thumbnails[1497692] = clik.newPhoto({"id":1497692,"src":"07SAIL070232_thumb.jpg","galleries_id":73810,"server_id":1,"link":"photo_1497692.html","width":130,"caption":"","height":87});
															thumbnails[1506966] = clik.newPhoto({"id":1506966,"src":"05TEN0006001_thumb.jpg","galleries_id":73702,"server_id":1,"link":"photo_1506966.html","width":87,"caption":"","height":130});
															thumbnails[2982522] = clik.newPhoto({"id":2982522,"src":"08SAIL13004_thumb.jpg","galleries_id":73810,"server_id":1,"link":"photo_2982522.html","width":130,"caption":"08SAIL13004","height":87});
															thumbnails[3466685] = clik.newPhoto({"id":3466685,"src":"09HOC15101_thumb.jpg","galleries_id":240628,"server_id":1,"link":"photo_3466685.html","width":130,"caption":"09HOC15101","height":87});
															thumbnails[4480950] = clik.newPhoto({"id":4480950,"src":"09SAIL08269_thumb.jpg","galleries_id":73810,"server_id":1,"link":"photo_4480950.html","width":130,"caption":"09SAIL08269","height":87});
															thumbnails[5568358] = clik.newPhoto({"id":5568358,"src":"09HOC53031_thumb.jpg","galleries_id":336856,"server_id":1,"link":"photo_5568358.html","width":130,"caption":"09HOC53031","height":87});
															thumbnails[5568400] = clik.newPhoto({"id":5568400,"src":"09HOC54023_thumb.jpg","galleries_id":336856,"server_id":1,"link":"photo_5568400.html","width":130,"caption":"09HOC54023","height":87});
															thumbnails[1646702] = clik.newPhoto({"id":1646702,"src":"07HOC09058_thumb.jpg","galleries_id":73808,"server_id":1,"link":"photo_1646702.html","width":130,"caption":"","height":87});
															thumbnails[1506975] = clik.newPhoto({"id":1506975,"src":"07CYC01 039001_thumb.jpg","galleries_id":73702,"server_id":1,"link":"photo_1506975.html","width":87,"caption":"","height":130});
															thumbnails[1497676] = clik.newPhoto({"id":1497676,"src":"07HOC060421_thumb.jpg","galleries_id":73808,"server_id":1,"link":"photo_1497676.html","width":130,"caption":"","height":87});
															thumbnails[1497693] = clik.newPhoto({"id":1497693,"src":"07SAIL070492_thumb.jpg","galleries_id":73810,"server_id":1,"link":"photo_1497693.html","width":130,"caption":"","height":87});
															thumbnails[2486081] = clik.newPhoto({"id":2486081,"src":"08SAIL12082_thumb.jpg","galleries_id":73810,"server_id":1,"link":"photo_2486081.html","width":130,"caption":"08SAIL12082","height":87});
															thumbnails[2982523] = clik.newPhoto({"id":2982523,"src":"08SAIL13256_thumb.jpg","galleries_id":73810,"server_id":1,"link":"photo_2982523.html","width":130,"caption":"08SAIL13256","height":87});
															thumbnails[3316193] = clik.newPhoto({"id":3316193,"src":"08HOC41063_thumb.jpg","galleries_id":240628,"server_id":1,"link":"photo_3316193.html","width":130,"caption":"08HOC41063","height":87});
															thumbnails[3557169] = clik.newPhoto({"id":3557169,"src":"09HOC22036_thumb.jpg","galleries_id":240628,"server_id":1,"link":"photo_3557169.html","width":130,"caption":"09HOC22036","height":87});
															thumbnails[4480951] = clik.newPhoto({"id":4480951,"src":"09SAIL09056_thumb.jpg","galleries_id":73810,"server_id":1,"link":"photo_4480951.html","width":130,"caption":"09SAIL09056","height":87});
															thumbnails[5568401] = clik.newPhoto({"id":5568401,"src":"09HOC54024_thumb.jpg","galleries_id":336856,"server_id":1,"link":"photo_5568401.html","width":130,"caption":"09HOC54024","height":87});
															thumbnails[1646703] = clik.newPhoto({"id":1646703,"src":"07HOC09065_thumb.jpg","galleries_id":73808,"server_id":1,"link":"photo_1646703.html","width":130,"caption":"","height":87});
															thumbnails[1497479] = clik.newPhoto({"id":1497479,"src":"06CRI01221_thumb.jpg","galleries_id":73807,"server_id":1,"link":"photo_1497479.html","width":130,"caption":"","height":87});
															thumbnails[1497695] = clik.newPhoto({"id":1497695,"src":"07SAIL071222_thumb.jpg","galleries_id":73810,"server_id":1,"link":"photo_1497695.html","width":130,"caption":"","height":87});
															thumbnails[2982524] = clik.newPhoto({"id":2982524,"src":"08SAIL14068_thumb.jpg","galleries_id":73810,"server_id":1,"link":"photo_2982524.html","width":130,"caption":"08SAIL14068","height":87});
															thumbnails[4480952] = clik.newPhoto({"id":4480952,"src":"09SAIL09137_thumb.jpg","galleries_id":73810,"server_id":1,"link":"photo_4480952.html","width":130,"caption":"09SAIL09137","height":87});
															thumbnails[5568402] = clik.newPhoto({"id":5568402,"src":"09HOC54027_thumb.jpg","galleries_id":336856,"server_id":1,"link":"photo_5568402.html","width":130,"caption":"09HOC54027","height":87});
															thumbnails[1497480] = clik.newPhoto({"id":1497480,"src":"06CRI01361_thumb.jpg","galleries_id":73807,"server_id":1,"link":"photo_1497480.html","width":130,"caption":"","height":87});
															thumbnails[1497679] = clik.newPhoto({"id":1497679,"src":"07HOC070231_thumb.jpg","galleries_id":73808,"server_id":1,"link":"photo_1497679.html","width":130,"caption":"","height":87});
															thumbnails[1497697] = clik.newPhoto({"id":1497697,"src":"07SAIL071612_thumb.jpg","galleries_id":73810,"server_id":1,"link":"photo_1497697.html","width":130,"caption":"","height":87});
															thumbnails[1955679] = clik.newPhoto({"id":1955679,"src":"08HOC10062_thumb.jpg","galleries_id":73808,"server_id":1,"link":"photo_1955679.html","width":130,"caption":"08HOC10062","height":87});
															thumbnails[2979071] = clik.newPhoto({"id":2979071,"src":"08HOC25002_thumb.jpg","galleries_id":240628,"server_id":1,"link":"photo_2979071.html","width":130,"caption":"08HOC25002","height":87});
															thumbnails[2982525] = clik.newPhoto({"id":2982525,"src":"08SAIL14204_thumb.jpg","galleries_id":73810,"server_id":1,"link":"photo_2982525.html","width":130,"caption":"08SAIL14204","height":87});
															thumbnails[3360421] = clik.newPhoto({"id":3360421,"src":"09HOC05042_thumb.jpg","galleries_id":240628,"server_id":1,"link":"photo_3360421.html","width":130,"caption":"09HOC05042","height":87});
															thumbnails[3389020] = clik.newPhoto({"id":3389020,"src":"09HOC07045_thumb.jpg","galleries_id":240628,"server_id":1,"link":"photo_3389020.html","width":130,"caption":"09HOC07045","height":87});
															thumbnails[3465909] = clik.newPhoto({"id":3465909,"src":"09HOC14049_thumb.jpg","galleries_id":240628,"server_id":1,"link":"photo_3465909.html","width":130,"caption":"09HOC14049","height":87});
															thumbnails[3557171] = clik.newPhoto({"id":3557171,"src":"09HOC22043_thumb.jpg","galleries_id":240628,"server_id":1,"link":"photo_3557171.html","width":130,"caption":"09HOC22043","height":87});
															thumbnails[4480953] = clik.newPhoto({"id":4480953,"src":"09SAIL09223_thumb.jpg","galleries_id":73810,"server_id":1,"link":"photo_4480953.html","width":130,"caption":"09SAIL09223","height":87});
															thumbnails[1646706] = clik.newPhoto({"id":1646706,"src":"07HOC11075_thumb.jpg","galleries_id":73808,"server_id":1,"link":"photo_1646706.html","width":130,"caption":"","height":87});
															thumbnails[1497482] = clik.newPhoto({"id":1497482,"src":"06CRI01681_thumb.jpg","galleries_id":73807,"server_id":1,"link":"photo_1497482.html","width":130,"caption":"","height":87});
															thumbnails[1497680] = clik.newPhoto({"id":1497680,"src":"07HOC120221_thumb.jpg","galleries_id":73808,"server_id":1,"link":"photo_1497680.html","width":130,"caption":"","height":87});
															thumbnails[1497699] = clik.newPhoto({"id":1497699,"src":"07SAIL100232_thumb.jpg","galleries_id":73810,"server_id":1,"link":"photo_1497699.html","width":130,"caption":"","height":87});
															thumbnails[2982526] = clik.newPhoto({"id":2982526,"src":"08SAIL14208_thumb.jpg","galleries_id":73810,"server_id":1,"link":"photo_2982526.html","width":130,"caption":"08SAIL14208","height":87});
															thumbnails[3465910] = clik.newPhoto({"id":3465910,"src":"09HOC14051_thumb.jpg","galleries_id":240628,"server_id":1,"link":"photo_3465910.html","width":130,"caption":"09HOC14051","height":87});
															thumbnails[5568363] = clik.newPhoto({"id":5568363,"src":"09HOC53046_thumb.jpg","galleries_id":336856,"server_id":1,"link":"photo_5568363.html","width":130,"caption":"09HOC53046","height":87});
															thumbnails[5568601] = clik.newPhoto({"id":5568601,"src":"09HOC60001_thumb.jpg","galleries_id":336856,"server_id":1,"link":"photo_5568601.html","width":130,"caption":"09HOC60001","height":87});
															thumbnails[1497700] = clik.newPhoto({"id":1497700,"src":"07SAIL121652_thumb.jpg","galleries_id":73810,"server_id":1,"link":"photo_1497700.html","width":130,"caption":"","height":87});
															thumbnails[1498191] = clik.newPhoto({"id":1498191,"src":"07HOC10001_thumb.jpg","galleries_id":73808,"server_id":1,"link":"photo_1498191.html","width":130,"caption":"","height":87});
															thumbnails[3068190] = clik.newPhoto({"id":3068190,"src":"08HOC31038_thumb.jpg","galleries_id":240628,"server_id":1,"link":"photo_3068190.html","width":130,"caption":"08HOC31038","height":87});
															thumbnails[5042816] = clik.newPhoto({"id":5042816,"src":"09HOC42093_thumb.jpg","galleries_id":336856,"server_id":1,"link":"photo_5042816.html","width":130,"caption":"09HOC42093","height":87});
															thumbnails[5568364] = clik.newPhoto({"id":5568364,"src":"09HOC53054_thumb.jpg","galleries_id":336856,"server_id":1,"link":"photo_5568364.html","width":130,"caption":"09HOC53054","height":87});
															thumbnails[5568573] = clik.newPhoto({"id":5568573,"src":"09HOC59032_thumb.jpg","galleries_id":336856,"server_id":1,"link":"photo_5568573.html","width":130,"caption":"09HOC59032","height":87});
															thumbnails[1646708] = clik.newPhoto({"id":1646708,"src":"07HOC19027_thumb.jpg","galleries_id":73808,"server_id":1,"link":"photo_1646708.html","width":130,"caption":"","height":87});
															thumbnails[1497486] = clik.newPhoto({"id":1497486,"src":"06CRI01812_thumb.jpg","galleries_id":73807,"server_id":1,"link":"photo_1497486.html","width":130,"caption":"","height":87});
															thumbnails[1497703] = clik.newPhoto({"id":1497703,"src":"07SAIL170092_thumb.jpg","galleries_id":73810,"server_id":1,"link":"photo_1497703.html","width":130,"caption":"","height":87});
															thumbnails[1498210] = clik.newPhoto({"id":1498210,"src":"07HOC15053_thumb.jpg","galleries_id":73808,"server_id":1,"link":"photo_1498210.html","width":130,"caption":"","height":87});
															thumbnails[2930942] = clik.newPhoto({"id":2930942,"src":"08HOC16010_thumb.jpg","galleries_id":240628,"server_id":1,"link":"photo_2930942.html","width":130,"caption":"08HOC16010","height":87});
															thumbnails[2979074] = clik.newPhoto({"id":2979074,"src":"08HOC25017_thumb.jpg","galleries_id":240628,"server_id":1,"link":"photo_2979074.html","width":130,"caption":"08HOC25017","height":87});
															thumbnails[3360424] = clik.newPhoto({"id":3360424,"src":"09HOC05058_thumb.jpg","galleries_id":240628,"server_id":1,"link":"photo_3360424.html","width":130,"caption":"09HOC05058","height":87});
															thumbnails[3389023] = clik.newPhoto({"id":3389023,"src":"09HOC07059_thumb.jpg","galleries_id":240628,"server_id":1,"link":"photo_3389023.html","width":130,"caption":"09HOC07059","height":87});
															thumbnails[5415907] = clik.newPhoto({"id":5415907,"src":"09HOC51022_thumb.jpg","galleries_id":336856,"server_id":1,"link":"photo_5415907.html","width":130,"caption":"09HOC51022","height":87});
															thumbnails[1646709] = clik.newPhoto({"id":1646709,"src":"07HOC19039_thumb.jpg","galleries_id":73808,"server_id":1,"link":"photo_1646709.html","width":130,"caption":"","height":87});
															thumbnails[1497487] = clik.newPhoto({"id":1497487,"src":"06CRI02321_thumb.jpg","galleries_id":73807,"server_id":1,"link":"photo_1497487.html","width":130,"caption":"","height":87});
															thumbnails[1497705] = clik.newPhoto({"id":1497705,"src":"07SAIL170152_thumb.jpg","galleries_id":73810,"server_id":1,"link":"photo_1497705.html","width":130,"caption":"","height":87});
															thumbnails[2930943] = clik.newPhoto({"id":2930943,"src":"08HOC16013_thumb.jpg","galleries_id":240628,"server_id":1,"link":"photo_2930943.html","width":130,"caption":"08HOC16013","height":87});
															thumbnails[3329989] = clik.newPhoto({"id":3329989,"src":"09HOC01029_thumb.jpg","galleries_id":240628,"server_id":1,"link":"photo_3329989.html","width":130,"caption":"09HOC01029","height":87});
															thumbnails[1646710] = clik.newPhoto({"id":1646710,"src":"HOC02017_thumb.jpg","galleries_id":73808,"server_id":1,"link":"photo_1646710.html","width":130,"caption":"","height":87});
															thumbnails[1497708] = clik.newPhoto({"id":1497708,"src":"07SAIL220122_thumb.jpg","galleries_id":73810,"server_id":1,"link":"photo_1497708.html","width":130,"caption":"","height":87});
															thumbnails[2930944] = clik.newPhoto({"id":2930944,"src":"08HOC16015_thumb.jpg","galleries_id":240628,"server_id":1,"link":"photo_2930944.html","width":130,"caption":"08HOC16015","height":87});
															thumbnails[3465913] = clik.newPhoto({"id":3465913,"src":"09HOC14068_thumb.jpg","galleries_id":240628,"server_id":1,"link":"photo_3465913.html","width":130,"caption":"09HOC14068","height":87});
															thumbnails[3557176] = clik.newPhoto({"id":3557176,"src":"09HOC22074_thumb.jpg","galleries_id":240628,"server_id":1,"link":"photo_3557176.html","width":130,"caption":"09HOC22074","height":87});
															thumbnails[1646711] = clik.newPhoto({"id":1646711,"src":"HOC02027_thumb.jpg","galleries_id":73808,"server_id":1,"link":"photo_1646711.html","width":130,"caption":"","height":87});
															thumbnails[1498221] = clik.newPhoto({"id":1498221,"src":"06SAI0152_thumb.jpg","galleries_id":73810,"server_id":1,"link":"photo_1498221.html","width":130,"caption":"","height":87});
															thumbnails[1498224] = clik.newPhoto({"id":1498224,"src":"06SAI03672_thumb.jpg","galleries_id":73810,"server_id":1,"link":"photo_1498224.html","width":130,"caption":"","height":87});
															thumbnails[1497529] = clik.newPhoto({"id":1497529,"src":"06CRI02461_thumb.jpg","galleries_id":73807,"server_id":1,"link":"photo_1497529.html","width":130,"caption":"","height":87});
															thumbnails[1955685] = clik.newPhoto({"id":1955685,"src":"08HOC10089_thumb.jpg","galleries_id":73808,"server_id":1,"link":"photo_1955685.html","width":130,"caption":"08HOC10089","height":87});
															thumbnails[5568369] = clik.newPhoto({"id":5568369,"src":"09HOC53071_thumb.jpg","galleries_id":336856,"server_id":1,"link":"photo_5568369.html","width":130,"caption":"09HOC53071","height":87});
															thumbnails[1497712] = clik.newPhoto({"id":1497712,"src":"06SAI00731_thumb.jpg","galleries_id":73810,"server_id":1,"link":"photo_1497712.html","width":87,"caption":"","height":130});
															thumbnails[2930946] = clik.newPhoto({"id":2930946,"src":"08HOC16022_thumb.jpg","galleries_id":240628,"server_id":1,"link":"photo_2930946.html","width":87,"caption":"08HOC16022","height":130});
															thumbnails[3557112] = clik.newPhoto({"id":3557112,"src":"09HOC19051_thumb.jpg","galleries_id":240628,"server_id":1,"link":"photo_3557112.html","width":130,"caption":"09HOC19051","height":87});
															thumbnails[1646713] = clik.newPhoto({"id":1646713,"src":"HOC02047_thumb.jpg","galleries_id":73808,"server_id":1,"link":"photo_1646713.html","width":130,"caption":"","height":87});
															thumbnails[1497714] = clik.newPhoto({"id":1497714,"src":"07SAIL100121_thumb.jpg","galleries_id":73810,"server_id":1,"link":"photo_1497714.html","width":87,"caption":"","height":130});
															thumbnails[3360428] = clik.newPhoto({"id":3360428,"src":"09HOC06032_thumb.jpg","galleries_id":240628,"server_id":1,"link":"photo_3360428.html","width":130,"caption":"09HOC06032","height":87});
															thumbnails[4957461] = clik.newPhoto({"id":4957461,"src":"09HOC40005_thumb.jpg","galleries_id":336856,"server_id":1,"link":"photo_4957461.html","width":130,"caption":"09HOC40005","height":87});
															thumbnails[1646704] = clik.newPhoto({"id":1646704,"src":"07HOC10006_thumb.jpg","galleries_id":73808,"server_id":1,"link":"photo_1646704.html","width":130,"caption":"","height":87});
															thumbnails[2486080] = clik.newPhoto({"id":2486080,"src":"08SAIL12019_thumb.jpg","galleries_id":73810,"server_id":1,"link":"photo_2486080.html","width":87,"caption":"08SAIL12019","height":130});
															thumbnails[2930948] = clik.newPhoto({"id":2930948,"src":"08HOC21002_thumb.jpg","galleries_id":240628,"server_id":1,"link":"photo_2930948.html","width":130,"caption":"08HOC21002","height":87});
															thumbnails[2979080] = clik.newPhoto({"id":2979080,"src":"08HOC25057_thumb.jpg","galleries_id":240628,"server_id":1,"link":"photo_2979080.html","width":130,"caption":"08HOC25057","height":87});
															thumbnails[2486082] = clik.newPhoto({"id":2486082,"src":"08SAIL12096_thumb.jpg","galleries_id":73810,"server_id":1,"link":"photo_2486082.html","width":87,"caption":"08SAIL12096","height":130});
															thumbnails[3068198] = clik.newPhoto({"id":3068198,"src":"08HOC32021_thumb.jpg","galleries_id":240628,"server_id":1,"link":"photo_3068198.html","width":130,"caption":"08HOC32021","height":87});
															thumbnails[1497584] = clik.newPhoto({"id":1497584,"src":"06CRI00681_thumb.jpg","galleries_id":73807,"server_id":1,"link":"photo_1497584.html","width":87,"caption":"","height":130});
															thumbnails[3429077] = clik.newPhoto({"id":3429077,"src":"09HOC10073_thumb.jpg","galleries_id":240628,"server_id":1,"link":"photo_3429077.html","width":130,"caption":"09HOC10073","height":87});
															thumbnails[5568443] = clik.newPhoto({"id":5568443,"src":"09HOC55044_thumb.jpg","galleries_id":336856,"server_id":1,"link":"photo_5568443.html","width":130,"caption":"09HOC55044","height":87});
															thumbnails[5568654] = clik.newPhoto({"id":5568654,"src":"09HOC61043_thumb.jpg","galleries_id":336856,"server_id":1,"link":"photo_5568654.html","width":130,"caption":"09HOC61043","height":87});
															thumbnails[1497656] = clik.newPhoto({"id":1497656,"src":"06CRI00991_thumb.jpg","galleries_id":73807,"server_id":1,"link":"photo_1497656.html","width":87,"caption":"","height":130});
															thumbnails[3465918] = clik.newPhoto({"id":3465918,"src":"09HOC15105_thumb.jpg","galleries_id":240628,"server_id":1,"link":"photo_3465918.html","width":130,"caption":"09HOC15105","height":87});
															thumbnails[5568655] = clik.newPhoto({"id":5568655,"src":"09HOC61044_thumb.jpg","galleries_id":336856,"server_id":1,"link":"photo_5568655.html","width":130,"caption":"09HOC61044","height":87});
															thumbnails[1497643] = clik.newPhoto({"id":1497643,"src":"06CRI00741_thumb.jpg","galleries_id":73807,"server_id":1,"link":"photo_1497643.html","width":87,"caption":"","height":130});
															thumbnails[3360433] = clik.newPhoto({"id":3360433,"src":"09HOC06059_thumb.jpg","galleries_id":240628,"server_id":1,"link":"photo_3360433.html","width":130,"caption":"09HOC06059","height":87});
															thumbnails[3465919] = clik.newPhoto({"id":3465919,"src":"09HOC15111_thumb.jpg","galleries_id":240628,"server_id":1,"link":"photo_3465919.html","width":130,"caption":"09HOC15111","height":87});
															thumbnails[5611126] = clik.newPhoto({"id":5611126,"src":"09HOC63058_thumb.jpg","galleries_id":336856,"server_id":1,"link":"photo_5611126.html","width":130,"caption":"09HOC63058","height":87});
															thumbnails[1497622] = clik.newPhoto({"id":1497622,"src":"06CRI00711_thumb.jpg","galleries_id":73807,"server_id":1,"link":"photo_1497622.html","width":87,"caption":"","height":130});
															thumbnails[2277342] = clik.newPhoto({"id":2277342,"src":"08CRIC03040_thumb.jpg","galleries_id":73807,"server_id":1,"link":"photo_2277342.html","width":87,"caption":"08CRIC03040","height":130});
															thumbnails[2979083] = clik.newPhoto({"id":2979083,"src":"08HOC25065_thumb.jpg","galleries_id":240628,"server_id":1,"link":"photo_2979083.html","width":130,"caption":"08HOC25065","height":87});
															thumbnails[3465920] = clik.newPhoto({"id":3465920,"src":"09HOC15121_thumb.jpg","galleries_id":240628,"server_id":1,"link":"photo_3465920.html","width":130,"caption":"09HOC15121","height":87});
															thumbnails[3486372] = clik.newPhoto({"id":3486372,"src":"09HOC17015_thumb.jpg","galleries_id":240628,"server_id":1,"link":"photo_3486372.html","width":130,"caption":"09HOC17015","height":87});
															thumbnails[2930954] = clik.newPhoto({"id":2930954,"src":"08HOC21085_thumb.jpg","galleries_id":240628,"server_id":1,"link":"photo_2930954.html","width":130,"caption":"08HOC21085","height":87});
															thumbnails[2979084] = clik.newPhoto({"id":2979084,"src":"08HOC25067_thumb.jpg","galleries_id":240628,"server_id":1,"link":"photo_2979084.html","width":130,"caption":"08HOC25067","height":87});
															thumbnails[3465921] = clik.newPhoto({"id":3465921,"src":"09HOC15126_thumb.jpg","galleries_id":240628,"server_id":1,"link":"photo_3465921.html","width":130,"caption":"09HOC15126","height":87});
															thumbnails[5415919] = clik.newPhoto({"id":5415919,"src":"09HOC51042_thumb.jpg","galleries_id":336856,"server_id":1,"link":"photo_5415919.html","width":130,"caption":"09HOC51042","height":87});
															thumbnails[5611128] = clik.newPhoto({"id":5611128,"src":"09HOC63060_thumb.jpg","galleries_id":336856,"server_id":1,"link":"photo_5611128.html","width":130,"caption":"09HOC63060","height":87});
															thumbnails[3001695] = clik.newPhoto({"id":3001695,"src":"08HOC28077_thumb.jpg","galleries_id":240628,"server_id":1,"link":"photo_3001695.html","width":130,"caption":"08HOC28077","height":87});
															thumbnails[3465922] = clik.newPhoto({"id":3465922,"src":"09HOC15135_thumb.jpg","galleries_id":240628,"server_id":1,"link":"photo_3465922.html","width":130,"caption":"09HOC15135","height":87});
															thumbnails[2277345] = clik.newPhoto({"id":2277345,"src":"08CRIC03057_thumb.jpg","galleries_id":73807,"server_id":1,"link":"photo_2277345.html","width":130,"caption":"08CRIC03057","height":87});
															thumbnails[3465923] = clik.newPhoto({"id":3465923,"src":"09HOC15138_thumb.jpg","galleries_id":240628,"server_id":1,"link":"photo_3465923.html","width":130,"caption":"09HOC15138","height":87});
															thumbnails[5568588] = clik.newPhoto({"id":5568588,"src":"09HOC59063_thumb.jpg","galleries_id":336856,"server_id":1,"link":"photo_5568588.html","width":130,"caption":"09HOC59063","height":87});
															thumbnails[3486376] = clik.newPhoto({"id":3486376,"src":"09HOC17033_thumb.jpg","galleries_id":240628,"server_id":1,"link":"photo_3486376.html","width":130,"caption":"09HOC17033","height":87});
															thumbnails[3389039] = clik.newPhoto({"id":3389039,"src":"09HOC08080_thumb.jpg","galleries_id":240628,"server_id":1,"link":"photo_3389039.html","width":130,"caption":"09HOC08080","height":87});
															thumbnails[3465928] = clik.newPhoto({"id":3465928,"src":"09HOC15156_thumb.jpg","galleries_id":240628,"server_id":1,"link":"photo_3465928.html","width":130,"caption":"09HOC15156","height":87});
															thumbnails[3486380] = clik.newPhoto({"id":3486380,"src":"09HOC17070_thumb.jpg","galleries_id":240628,"server_id":1,"link":"photo_3486380.html","width":130,"caption":"09HOC17070","height":87});
															thumbnails[2930965] = clik.newPhoto({"id":2930965,"src":"08HOC22054_thumb.jpg","galleries_id":240628,"server_id":1,"link":"photo_2930965.html","width":130,"caption":"08HOC22054","height":87});
															thumbnails[3150131] = clik.newPhoto({"id":3150131,"src":"08HOC38065_thumb.jpg","galleries_id":240628,"server_id":1,"link":"photo_3150131.html","width":130,"caption":"08HOC38065","height":87});
															thumbnails[2930967] = clik.newPhoto({"id":2930967,"src":"08HOC22071_thumb.jpg","galleries_id":240628,"server_id":1,"link":"photo_2930967.html","width":130,"caption":"08HOC22071","height":87});
															thumbnails[3150142] = clik.newPhoto({"id":3150142,"src":"08HOC38089_thumb.jpg","galleries_id":240628,"server_id":1,"link":"photo_3150142.html","width":130,"caption":"08HOC38089","height":87});
															thumbnails[2277458] = clik.newPhoto({"id":2277458,"src":"08CRIC06102_thumb.jpg","galleries_id":73807,"server_id":1,"link":"photo_2277458.html","width":130,"caption":"08CRIC06102","height":87});
															thumbnails[2277461] = clik.newPhoto({"id":2277461,"src":"08CRIC06108_thumb.jpg","galleries_id":73807,"server_id":1,"link":"photo_2277461.html","width":130,"caption":"08CRIC06108","height":87});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[336963] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Cricket 2009","link":"gallery_336963.html","maxRecords":0.0,"photoIDs":[5976213.0,5976216.0,5976219.0,5976229.0,5976232.0,5976234.0,5976237.0,5976240.0,5976242.0,5976245.0,5976247.0,5976249.0,5976253.0,5976257.0],"skipIndex":0,"section_code":"gallery","featured_images":"5976257,5976253,5976249,5976247,5976245,5976242,5976240,5976237,5976234,5976232","id":336963,"singleSection":false});				  						galleries[73807] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Cricket 2008","link":"gallery_73807.html","maxRecords":0.0,"photoIDs":[1497424.0,1646684.0,1497425.0,1497427.0,1646688.0,1497446.0,1646690.0,1497471.0,1497475.0,1497479.0,1497480.0,1497482.0,1497486.0,1497487.0,1497529.0,1497584.0,1497656.0,1497643.0,1497622.0,2277342.0,2277345.0,2277458.0,2277461.0],"skipIndex":0,"section_code":"gallery","featured_images":"2277461,2277345,1646688,1497479","id":73807,"singleSection":false});				  						galleries[336856] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Hockey - 2009\/10","link":"gallery_336856.html","maxRecords":0.0,"photoIDs":[5042810.0,4957449.0,5042811.0,5568358.0,5568400.0,5568401.0,5568402.0,5568363.0,5568601.0,5042816.0,5568364.0,5568573.0,5415907.0,5568369.0,4957461.0,5568443.0,5568654.0,5568655.0,5611126.0,5415919.0,5611128.0,5568588.0],"skipIndex":0,"section_code":"gallery","featured_images":"5042816,4957461","id":336856,"singleSection":false});				  						galleries[240628] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Hockey - 2008\/9","link":"gallery_240628.html","maxRecords":0.0,"photoIDs":[3557101.0,3466685.0,3316193.0,3557169.0,2979071.0,3360421.0,3389020.0,3465909.0,3557171.0,3465910.0,3068190.0,2930942.0,2979074.0,3360424.0,3389023.0,2930943.0,3329989.0,2930944.0,3465913.0,3557176.0,2930946.0,3557112.0,3360428.0,2930948.0,2979080.0,3068198.0,3429077.0,3465918.0,3360433.0,3465919.0,2979083.0,3465920.0,3486372.0,2930954.0,2979084.0,3465921.0,3001695.0,3465922.0,3465923.0,3486376.0,3389039.0,3465928.0,3486380.0,2930965.0,3150131.0,2930967.0,3150142.0],"skipIndex":0,"section_code":"gallery","featured_images":"3557176,3557112,3486372,3466685,3465918,3389023,3360424,3001695,2930954,2930948,2930943","id":240628,"singleSection":false});				  						galleries[73808] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Hockey - 2007\/8","link":"gallery_73808.html","maxRecords":0.0,"photoIDs":[1497663.0,1497665.0,1646697.0,1497667.0,1646699.0,1497669.0,1646700.0,1497672.0,1497674.0,1646702.0,1497676.0,1646703.0,1497679.0,1955679.0,1646706.0,1497680.0,1498191.0,1646708.0,1498210.0,1646709.0,1646710.0,1646711.0,1955685.0,1646713.0,1646704.0],"skipIndex":0,"section_code":"gallery","featured_images":"1646713,1646710,1646708,1646704,1646703,1646702,1646699,1646697,1497672","id":73808,"singleSection":false});				  						galleries[73810] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Sailing","link":"gallery_73810.html","maxRecords":0.0,"photoIDs":[1497683.0,2486075.0,2982517.0,4480945.0,1497685.0,2486076.0,2982518.0,4480946.0,1497686.0,2486077.0,2982519.0,4480947.0,1497688.0,2486078.0,4480948.0,1497690.0,2486079.0,2982521.0,4480949.0,1497692.0,2982522.0,4480950.0,1497693.0,2486081.0,2982523.0,4480951.0,1497695.0,2982524.0,4480952.0,1497697.0,2982525.0,4480953.0,1497699.0,2982526.0,1497700.0,1497703.0,1497705.0,1497708.0,1498221.0,1498224.0,1497712.0,1497714.0,2486080.0,2486082.0],"skipIndex":0,"section_code":"gallery","featured_images":"4480953,4480952,4480951,4480948,2486077,1497703","id":73810,"singleSection":false});				  						galleries[73702] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Other Sport","link":"gallery_73702.html","maxRecords":0.0,"photoIDs":[1783699.0,1783700.0,1783701.0,1497659.0,1497660.0,1497661.0,1506890.0,1506887.0,1506901.0,1497662.0,1506966.0,1506975.0],"skipIndex":0,"section_code":"gallery","featured_images":1497660.0,"id":73702,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '5976257,5976242,5976229,1783701,1783699,4480945,2486075,1497683,1497663,4480946,2982518,1497425,4480947,1497667,1497427,4480949,3557101,2982521,4480950,3466685,1497692,2486081,2982524,1497697,1497480,1497699,1955685,1497529,3360428,5568443,3429077,2979084,2277345,3486376,2277461';
imageSets[2] = '1497660,1646697,2486077,1646699,1646688,4480948,1497672,3466685,1646702,4480951,1646703,4480952,1497479,4480953,5042816,1646708,3389023,3360424,1497703,2930943,1646710,3557176,3557112,1646713,4957461,1646704,2930948,3465918,3486372,2930954,3001695,2277345,2277461';
imageSets[3] = '5976257,5976253,5976249,5976247,5976245,5976242,5976240,5976237,5976234,5976232,5976229,5976219,5976216,5976213,5611128,5611126,5568655,5568654,5568601,5568588,5568573,5568443,5568402,5568401,5568400,5568369,5568364,5568363,5568358,5415919,5415907,5042816,5042811,5042810,4957461,4957449,4480953,4480952,4480951,4480950,4480949,4480948,4480947,4480946,4480945,3557176,3557171,3557169,3557112,3557101';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/clareturnbull/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/clareturnbull/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/clareturnbull/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/clareturnbull/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/clareturnbull/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/clareturnbull/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/clareturnbull/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/clareturnbull/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/clareturnbull/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/clareturnbull/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/clareturnbull/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/clareturnbull/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/clareturnbull/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/clareturnbull/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/clareturnbull/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/clareturnbull/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/clareturnbull/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/clareturnbull/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/clareturnbull/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/clareturnbull/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/clareturnbull/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/clareturnbull/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/clareturnbull/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/clareturnbull/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/clareturnbull/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/clareturnbull/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/clareturnbull/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 = 'Clare Turnbull Photographer: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '' || 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({					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;
	}
}

			

