window.thumbnails = {};
															thumbnails[9057497] = clik.newPhoto({"id":9057497,"src":"IMG_0026_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":97});
															thumbnails[9057503] = clik.newPhoto({"id":9057503,"src":"PoastcardofGlencoe1_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":89});
															thumbnails[89181] = clik.newPhoto({"id":89181,"src":"Archer_001 (1)_thumb.jpg","galleries_id":200084,"server_id":18,"link":"photo_89181.html","width":130,"caption":"","height":83});
															thumbnails[95942] = clik.newPhoto({"id":95942,"src":"McArthur_054 bw_thumb.jpg","galleries_id":180093,"server_id":18,"link":"photo_95942.html","width":130,"caption":"","height":87});
															thumbnails[412675] = clik.newPhoto({"id":412675,"src":"701_thumb.jpg","galleries_id":200083,"server_id":18,"link":"photo_412675.html","width":130,"caption":"","height":87});
															thumbnails[1255858] = clik.newPhoto({"id":1255858,"src":"Di00066_thumb.jpg","galleries_id":200084,"server_id":18,"link":"photo_1255858.html","width":98,"caption":"","height":130});
															thumbnails[1665816] = clik.newPhoto({"id":1665816,"src":"Coe 5_thumb.jpg","galleries_id":8433,"server_id":18,"link":"photo_1665816.html","width":130,"caption":"Glencoe","height":89});
															thumbnails[1665817] = clik.newPhoto({"id":1665817,"src":"Plockton Mist_thumb.jpg","galleries_id":8433,"server_id":18,"link":"photo_1665817.html","width":130,"caption":"Plockton Harbour","height":91});
															thumbnails[1665833] = clik.newPhoto({"id":1665833,"src":"Elgol Squall 2a Sized_thumb.jpg","galleries_id":8433,"server_id":18,"link":"photo_1665833.html","width":130,"caption":"The Cullin from Elgol","height":90});
															thumbnails[2112482] = clik.newPhoto({"id":2112482,"src":"Cobbler 5_thumb.jpg","galleries_id":8433,"server_id":18,"link":"photo_2112482.html","width":90,"caption":"The Cobbler","height":130});
															thumbnails[2112485] = clik.newPhoto({"id":2112485,"src":"Ben Lui1_thumb.jpg","galleries_id":8433,"server_id":18,"link":"photo_2112485.html","width":130,"caption":"Ben Lui","height":94});
															thumbnails[2112487] = clik.newPhoto({"id":2112487,"src":"Lagangarbh_thumb.jpg","galleries_id":8433,"server_id":18,"link":"photo_2112487.html","width":130,"caption":"Glencoe","height":90});
															thumbnails[2372881] = clik.newPhoto({"id":2372881,"src":"Web016_thumb.jpg","galleries_id":200084,"server_id":18,"link":"photo_2372881.html","width":130,"caption":"","height":89});
															thumbnails[2372887] = clik.newPhoto({"id":2372887,"src":"Web014_thumb.jpg","galleries_id":200085,"server_id":18,"link":"photo_2372887.html","width":130,"caption":"","height":88});
															thumbnails[2372890] = clik.newPhoto({"id":2372890,"src":"Web012_thumb.jpg","galleries_id":200083,"server_id":18,"link":"photo_2372890.html","width":130,"caption":"","height":87});
															thumbnails[2372893] = clik.newPhoto({"id":2372893,"src":"Web010_thumb.jpg","galleries_id":200083,"server_id":18,"link":"photo_2372893.html","width":130,"caption":"","height":86});
															thumbnails[2372896] = clik.newPhoto({"id":2372896,"src":"Web009_thumb.jpg","galleries_id":200083,"server_id":18,"link":"photo_2372896.html","width":105,"caption":"","height":130});
															thumbnails[2372898] = clik.newPhoto({"id":2372898,"src":"Web008_thumb.jpg","galleries_id":200084,"server_id":18,"link":"photo_2372898.html","width":130,"caption":"","height":87});
															thumbnails[2372903] = clik.newPhoto({"id":2372903,"src":"Web007_thumb.jpg","galleries_id":200083,"server_id":18,"link":"photo_2372903.html","width":130,"caption":"","height":92});
															thumbnails[2372908] = clik.newPhoto({"id":2372908,"src":"Web0011_thumb.jpg","galleries_id":180093,"server_id":18,"link":"photo_2372908.html","width":90,"caption":"","height":130});
															thumbnails[2372909] = clik.newPhoto({"id":2372909,"src":"Web002_thumb.jpg","galleries_id":200084,"server_id":18,"link":"photo_2372909.html","width":130,"caption":"","height":91});
															thumbnails[2372912] = clik.newPhoto({"id":2372912,"src":"Web005_thumb.jpg","galleries_id":200084,"server_id":18,"link":"photo_2372912.html","width":86,"caption":"","height":130});
															thumbnails[2372913] = clik.newPhoto({"id":2372913,"src":"Web003_thumb.jpg","galleries_id":200085,"server_id":18,"link":"photo_2372913.html","width":130,"caption":"","height":61});
															thumbnails[2372915] = clik.newPhoto({"id":2372915,"src":"Web004_thumb.jpg","galleries_id":200083,"server_id":18,"link":"photo_2372915.html","width":85,"caption":"","height":130});
															thumbnails[2372925] = clik.newPhoto({"id":2372925,"src":"Web006_thumb.jpg","galleries_id":180093,"server_id":18,"link":"photo_2372925.html","width":130,"caption":"","height":87});
															thumbnails[2372929] = clik.newPhoto({"id":2372929,"src":"Web0194_thumb.jpg","galleries_id":200083,"server_id":18,"link":"photo_2372929.html","width":87,"caption":"","height":130});
															thumbnails[2907620] = clik.newPhoto({"id":2907620,"src":"Bar0001_thumb.jpg","galleries_id":112377,"server_id":18,"link":"photo_2907620.html","width":130,"caption":"","height":97});
															thumbnails[2907625] = clik.newPhoto({"id":2907625,"src":"Bar0002_thumb.jpg","galleries_id":112377,"server_id":18,"link":"photo_2907625.html","width":130,"caption":"","height":97});
															thumbnails[2907629] = clik.newPhoto({"id":2907629,"src":"Bar0003_thumb.jpg","galleries_id":112377,"server_id":18,"link":"photo_2907629.html","width":130,"caption":"","height":97});
															thumbnails[2907632] = clik.newPhoto({"id":2907632,"src":"Bar0004_thumb.jpg","galleries_id":112377,"server_id":18,"link":"photo_2907632.html","width":130,"caption":"","height":97});
															thumbnails[2907636] = clik.newPhoto({"id":2907636,"src":"Top001_thumb.jpg","galleries_id":200085,"server_id":18,"link":"photo_2907636.html","width":130,"caption":"","height":75});
															thumbnails[2907638] = clik.newPhoto({"id":2907638,"src":"Top012_thumb.jpg","galleries_id":112377,"server_id":18,"link":"photo_2907638.html","width":130,"caption":"","height":85});
															thumbnails[2907641] = clik.newPhoto({"id":2907641,"src":"Top014_thumb.jpg","galleries_id":180093,"server_id":18,"link":"photo_2907641.html","width":88,"caption":"","height":130});
															thumbnails[2907643] = clik.newPhoto({"id":2907643,"src":"Top016_thumb.jpg","galleries_id":180093,"server_id":18,"link":"photo_2907643.html","width":86,"caption":"","height":130});
															thumbnails[2907645] = clik.newPhoto({"id":2907645,"src":"Top018_thumb.jpg","galleries_id":180093,"server_id":18,"link":"photo_2907645.html","width":86,"caption":"","height":130});
															thumbnails[2907648] = clik.newPhoto({"id":2907648,"src":"Top020_thumb.jpg","galleries_id":180093,"server_id":18,"link":"photo_2907648.html","width":86,"caption":"","height":130});
															thumbnails[2907652] = clik.newPhoto({"id":2907652,"src":"Top013_thumb.jpg","galleries_id":180093,"server_id":18,"link":"photo_2907652.html","width":130,"caption":"","height":86});
															thumbnails[2907676] = clik.newPhoto({"id":2907676,"src":"WhiteMc031_thumb.jpg","galleries_id":180093,"server_id":18,"link":"photo_2907676.html","width":130,"caption":"","height":84});
															thumbnails[2907681] = clik.newPhoto({"id":2907681,"src":"Couple 20_thumb.jpg","galleries_id":180093,"server_id":18,"link":"photo_2907681.html","width":130,"caption":"","height":97});
															thumbnails[2959597] = clik.newPhoto({"id":2959597,"src":"DSCF0058_thumb.jpg","galleries_id":8433,"server_id":18,"link":"photo_2959597.html","width":130,"caption":"STAC POLLAIDH","height":100});
															thumbnails[2959605] = clik.newPhoto({"id":2959605,"src":"IMG_0072_thumb.jpg","galleries_id":8433,"server_id":18,"link":"photo_2959605.html","width":89,"caption":"SLIOCH","height":130});
															thumbnails[2959607] = clik.newPhoto({"id":2959607,"src":"Torridon 1_thumb.jpg","galleries_id":8433,"server_id":18,"link":"photo_2959607.html","width":130,"caption":"TORRIDON","height":86});
															thumbnails[2959628] = clik.newPhoto({"id":2959628,"src":"Acquaviva0_thumb.5-15.jpg","galleries_id":8433,"server_id":18,"link":"photo_2959628.html","width":93,"caption":"GLENCOE","height":130});
															thumbnails[2961875] = clik.newPhoto({"id":2961875,"src":"Thom004_thumb.jpg","galleries_id":112377,"server_id":18,"link":"photo_2961875.html","width":130,"caption":"","height":98});
															thumbnails[2961878] = clik.newPhoto({"id":2961878,"src":"Thom010_thumb.jpg","galleries_id":112377,"server_id":18,"link":"photo_2961878.html","width":130,"caption":"","height":98});
															thumbnails[2962116] = clik.newPhoto({"id":2962116,"src":"WhiteMc204_thumb.jpg","galleries_id":200085,"server_id":18,"link":"photo_2962116.html","width":89,"caption":"","height":130});
															thumbnails[3075996] = clik.newPhoto({"id":3075996,"src":"Bar112_thumb.jpg","galleries_id":200084,"server_id":18,"link":"photo_3075996.html","width":94,"caption":"","height":130});
															thumbnails[3076134] = clik.newPhoto({"id":3076134,"src":"Bar078_thumb.jpg","galleries_id":200084,"server_id":18,"link":"photo_3076134.html","width":87,"caption":"","height":130});
															thumbnails[3477699] = clik.newPhoto({"id":3477699,"src":"IMG_0991 BW_thumb.jpg","galleries_id":180093,"server_id":18,"link":"photo_3477699.html","width":111,"caption":"","height":130});
															thumbnails[4371173] = clik.newPhoto({"id":4371173,"src":"0005_thumb.jpg","galleries_id":200083,"server_id":18,"link":"photo_4371173.html","width":91,"caption":"","height":130});
															thumbnails[4371208] = clik.newPhoto({"id":4371208,"src":"0074_thumb.jpg","galleries_id":200084,"server_id":18,"link":"photo_4371208.html","width":130,"caption":"","height":118});
															thumbnails[4371215] = clik.newPhoto({"id":4371215,"src":"0076_thumb.jpg","galleries_id":200083,"server_id":18,"link":"photo_4371215.html","width":130,"caption":"","height":99});
															thumbnails[4372811] = clik.newPhoto({"id":4372811,"src":"0089_thumb.jpg","galleries_id":256854,"server_id":18,"link":"photo_4372811.html","width":116,"caption":"","height":130});
															thumbnails[4372813] = clik.newPhoto({"id":4372813,"src":"0093_thumb.jpg","galleries_id":200084,"server_id":18,"link":"photo_4372813.html","width":130,"caption":"","height":87});
															thumbnails[4372814] = clik.newPhoto({"id":4372814,"src":"0106_thumb.jpg","galleries_id":180093,"server_id":18,"link":"photo_4372814.html","width":93,"caption":"","height":130});
															thumbnails[4372815] = clik.newPhoto({"id":4372815,"src":"0119_thumb.jpg","galleries_id":200084,"server_id":18,"link":"photo_4372815.html","width":130,"caption":"","height":87});
															thumbnails[4372818] = clik.newPhoto({"id":4372818,"src":"0143_thumb.jpg","galleries_id":256854,"server_id":18,"link":"photo_4372818.html","width":130,"caption":"","height":107});
															thumbnails[4372821] = clik.newPhoto({"id":4372821,"src":"0161_thumb.jpg","galleries_id":200083,"server_id":18,"link":"photo_4372821.html","width":130,"caption":"","height":87});
															thumbnails[4372825] = clik.newPhoto({"id":4372825,"src":"0206_thumb.jpg","galleries_id":200083,"server_id":18,"link":"photo_4372825.html","width":130,"caption":"","height":108});
															thumbnails[4372827] = clik.newPhoto({"id":4372827,"src":"0215_thumb.jpg","galleries_id":256854,"server_id":18,"link":"photo_4372827.html","width":87,"caption":"","height":130});
															thumbnails[4372833] = clik.newPhoto({"id":4372833,"src":"IMG_0321_thumb.jpg","galleries_id":200084,"server_id":18,"link":"photo_4372833.html","width":130,"caption":"","height":87});
															thumbnails[4372850] = clik.newPhoto({"id":4372850,"src":"0014_thumb.jpg","galleries_id":256854,"server_id":18,"link":"photo_4372850.html","width":89,"caption":"","height":130});
															thumbnails[4372852] = clik.newPhoto({"id":4372852,"src":"0118_thumb.jpg","galleries_id":200085,"server_id":18,"link":"photo_4372852.html","width":130,"caption":"","height":87});
															thumbnails[4372854] = clik.newPhoto({"id":4372854,"src":"0131_thumb.jpg","galleries_id":256854,"server_id":18,"link":"photo_4372854.html","width":87,"caption":"","height":130});
															thumbnails[4421782] = clik.newPhoto({"id":4421782,"src":"IMG_0046_thumb.jpg","galleries_id":258927,"server_id":18,"link":"photo_4421782.html","width":130,"caption":"","height":51});
															thumbnails[4421788] = clik.newPhoto({"id":4421788,"src":"IMG_0096-2_thumb.jpg","galleries_id":258927,"server_id":18,"link":"photo_4421788.html","width":88,"caption":"","height":130});
															thumbnails[4421816] = clik.newPhoto({"id":4421816,"src":"IMG_03451_thumb.jpg","galleries_id":258927,"server_id":18,"link":"photo_4421816.html","width":86,"caption":"","height":130});
															thumbnails[4421823] = clik.newPhoto({"id":4421823,"src":"IMG_04411_thumb.jpg","galleries_id":258927,"server_id":18,"link":"photo_4421823.html","width":88,"caption":"","height":130});
															thumbnails[4421826] = clik.newPhoto({"id":4421826,"src":"Tree_thumb.jpg","galleries_id":258927,"server_id":18,"link":"photo_4421826.html","width":88,"caption":"","height":130});
															thumbnails[4421837] = clik.newPhoto({"id":4421837,"src":"P5181526_thumb.jpg","galleries_id":258927,"server_id":18,"link":"photo_4421837.html","width":130,"caption":"","height":99});
															thumbnails[4421843] = clik.newPhoto({"id":4421843,"src":"IMG_0337_thumb.jpg","galleries_id":258927,"server_id":18,"link":"photo_4421843.html","width":88,"caption":"","height":130});
															thumbnails[4975296] = clik.newPhoto({"id":4975296,"src":"P5181560_thumb.jpg","galleries_id":256854,"server_id":18,"link":"photo_4975296.html","width":130,"caption":"","height":100});
															thumbnails[4975335] = clik.newPhoto({"id":4975335,"src":"00741_thumb.jpg","galleries_id":180093,"server_id":18,"link":"photo_4975335.html","width":130,"caption":"","height":129});
															thumbnails[4975344] = clik.newPhoto({"id":4975344,"src":"0139_thumb.jpg","galleries_id":180093,"server_id":18,"link":"photo_4975344.html","width":130,"caption":"","height":85});
															thumbnails[4975358] = clik.newPhoto({"id":4975358,"src":"0166_thumb.jpg","galleries_id":180093,"server_id":18,"link":"photo_4975358.html","width":93,"caption":"","height":130});
															thumbnails[5424344] = clik.newPhoto({"id":5424344,"src":"0173_thumb.jpg","galleries_id":200084,"server_id":18,"link":"photo_5424344.html","width":130,"caption":"","height":87});
															thumbnails[5424346] = clik.newPhoto({"id":5424346,"src":"BIRZ0110_thumb.jpg","galleries_id":256854,"server_id":18,"link":"photo_5424346.html","width":87,"caption":"","height":130});
															thumbnails[5424355] = clik.newPhoto({"id":5424355,"src":"OSul155_thumb.jpg","galleries_id":200085,"server_id":18,"link":"photo_5424355.html","width":130,"caption":"","height":105});
															thumbnails[5424359] = clik.newPhoto({"id":5424359,"src":"OSul237_thumb.jpg","galleries_id":256854,"server_id":18,"link":"photo_5424359.html","width":130,"caption":"","height":84});
															thumbnails[5424360] = clik.newPhoto({"id":5424360,"src":"Page_10_thumb.jpg","galleries_id":112377,"server_id":18,"link":"photo_5424360.html","width":130,"caption":"","height":130});
															thumbnails[5424361] = clik.newPhoto({"id":5424361,"src":"Page_15_thumb.jpg","galleries_id":112377,"server_id":18,"link":"photo_5424361.html","width":130,"caption":"","height":130});
															thumbnails[5424366] = clik.newPhoto({"id":5424366,"src":"Page8_thumb.jpg","galleries_id":112377,"server_id":18,"link":"photo_5424366.html","width":130,"caption":"","height":98});
															thumbnails[5424436] = clik.newPhoto({"id":5424436,"src":"IMG_0124_thumb.jpg","galleries_id":200084,"server_id":18,"link":"photo_5424436.html","width":87,"caption":"","height":130});
															thumbnails[5508330] = clik.newPhoto({"id":5508330,"src":"Br0057_thumb.jpg","galleries_id":256854,"server_id":18,"link":"photo_5508330.html","width":130,"caption":"","height":87});
															thumbnails[6339409] = clik.newPhoto({"id":6339409,"src":"Ferrebee00892_thumb.jpg","galleries_id":351316,"server_id":18,"link":"photo_6339409.html","width":130,"caption":"","height":87});
															thumbnails[6339421] = clik.newPhoto({"id":6339421,"src":"Hutton0361_thumb.jpg","galleries_id":351316,"server_id":18,"link":"photo_6339421.html","width":130,"caption":"","height":87});
															thumbnails[6339430] = clik.newPhoto({"id":6339430,"src":"Hutton2011_thumb.jpg","galleries_id":351316,"server_id":18,"link":"photo_6339430.html","width":98,"caption":"","height":130});
															thumbnails[6339431] = clik.newPhoto({"id":6339431,"src":"IMG_0011_thumb.jpg","galleries_id":351316,"server_id":18,"link":"photo_6339431.html","width":87,"caption":"","height":130});
															thumbnails[6339435] = clik.newPhoto({"id":6339435,"src":"IMG_0072_D0637547-1D09-001F-99927D5ACD4F7730_thumb.jpg","galleries_id":351316,"server_id":18,"link":"photo_6339435.html","width":130,"caption":"","height":87});
															thumbnails[6339436] = clik.newPhoto({"id":6339436,"src":"IMG_0090_thumb.jpg","galleries_id":351316,"server_id":18,"link":"photo_6339436.html","width":130,"caption":"","height":86});
															thumbnails[6339440] = clik.newPhoto({"id":6339440,"src":"IMG_0176_thumb.jpg","galleries_id":351316,"server_id":18,"link":"photo_6339440.html","width":130,"caption":"","height":87});
															thumbnails[6339445] = clik.newPhoto({"id":6339445,"src":"IMG_0190_thumb.jpg","galleries_id":351316,"server_id":18,"link":"photo_6339445.html","width":130,"caption":"","height":87});
															thumbnails[6339450] = clik.newPhoto({"id":6339450,"src":"Langton028_thumb.jpg","galleries_id":351316,"server_id":18,"link":"photo_6339450.html","width":87,"caption":"","height":130});
															thumbnails[6339452] = clik.newPhoto({"id":6339452,"src":"Langton041_thumb.jpg","galleries_id":351316,"server_id":18,"link":"photo_6339452.html","width":130,"caption":"","height":99});
															thumbnails[6763557] = clik.newPhoto({"id":6763557,"src":"Dunc0096_thumb.jpg","galleries_id":351316,"server_id":18,"link":"photo_6763557.html","width":87,"caption":"","height":130});
															thumbnails[6763558] = clik.newPhoto({"id":6763558,"src":"Dunc0242_thumb.jpg","galleries_id":351316,"server_id":18,"link":"photo_6763558.html","width":130,"caption":"","height":112});
															thumbnails[6763559] = clik.newPhoto({"id":6763559,"src":"Dunc0346_thumb.jpg","galleries_id":351316,"server_id":18,"link":"photo_6763559.html","width":130,"caption":"","height":87});
															thumbnails[6763560] = clik.newPhoto({"id":6763560,"src":"Dunc0353_thumb.jpg","galleries_id":351316,"server_id":18,"link":"photo_6763560.html","width":130,"caption":"","height":87});
															thumbnails[6763561] = clik.newPhoto({"id":6763561,"src":"Garcia0053_thumb.jpg","galleries_id":351316,"server_id":18,"link":"photo_6763561.html","width":130,"caption":"","height":87});
															thumbnails[6763563] = clik.newPhoto({"id":6763563,"src":"Garcia0080_thumb.jpg","galleries_id":351316,"server_id":18,"link":"photo_6763563.html","width":130,"caption":"","height":92});
															thumbnails[6763565] = clik.newPhoto({"id":6763565,"src":"Garcia0129_thumb.jpg","galleries_id":351316,"server_id":18,"link":"photo_6763565.html","width":101,"caption":"","height":130});
															thumbnails[6896729] = clik.newPhoto({"id":6896729,"src":"Dslr002A4_thumb.jpg","galleries_id":258927,"server_id":18,"link":"photo_6896729.html","width":92,"caption":"","height":130});
															thumbnails[6896750] = clik.newPhoto({"id":6896750,"src":"Dslr003A4_thumb.jpg","galleries_id":258927,"server_id":18,"link":"photo_6896750.html","width":92,"caption":"","height":130});
															thumbnails[6896751] = clik.newPhoto({"id":6896751,"src":"Dslr005A4_thumb.jpg","galleries_id":258927,"server_id":18,"link":"photo_6896751.html","width":130,"caption":"","height":92});
															thumbnails[6896753] = clik.newPhoto({"id":6896753,"src":"DslrIMG_0070ssss_thumb.jpg","galleries_id":8433,"server_id":18,"link":"photo_6896753.html","width":87,"caption":"","height":130});
															thumbnails[6896801] = clik.newPhoto({"id":6896801,"src":"DslrCu0191_thumb.jpg","galleries_id":351316,"server_id":18,"link":"photo_6896801.html","width":130,"caption":"","height":87});
															thumbnails[6896827] = clik.newPhoto({"id":6896827,"src":"DslrIMG_0038-2_thumb.jpg","galleries_id":351316,"server_id":18,"link":"photo_6896827.html","width":130,"caption":"","height":89});
															thumbnails[6896828] = clik.newPhoto({"id":6896828,"src":"DslrIMG_0169_thumb.jpg","galleries_id":351316,"server_id":18,"link":"photo_6896828.html","width":102,"caption":"","height":130});
															thumbnails[6896829] = clik.newPhoto({"id":6896829,"src":"DslrIMG_0305_thumb.jpg","galleries_id":351316,"server_id":18,"link":"photo_6896829.html","width":130,"caption":"","height":87});
															thumbnails[6896840] = clik.newPhoto({"id":6896840,"src":"Lath0057_thumb.jpg","galleries_id":351316,"server_id":18,"link":"photo_6896840.html","width":127,"caption":"","height":130});
															thumbnails[6896841] = clik.newPhoto({"id":6896841,"src":"Lath0077_thumb.jpg","galleries_id":351316,"server_id":18,"link":"photo_6896841.html","width":87,"caption":"","height":130});
															thumbnails[6896843] = clik.newPhoto({"id":6896843,"src":"Lath0104_thumb.jpg","galleries_id":351316,"server_id":18,"link":"photo_6896843.html","width":130,"caption":"","height":87});
															thumbnails[6896845] = clik.newPhoto({"id":6896845,"src":"Lath0122_thumb.jpg","galleries_id":351316,"server_id":18,"link":"photo_6896845.html","width":130,"caption":"","height":87});
															thumbnails[6896846] = clik.newPhoto({"id":6896846,"src":"Lath0200_thumb.jpg","galleries_id":351316,"server_id":18,"link":"photo_6896846.html","width":130,"caption":"","height":94});
															thumbnails[7813287] = clik.newPhoto({"id":7813287,"src":"0011_thumb.jpg","galleries_id":421796,"server_id":18,"link":"photo_7813287.html","width":130,"caption":"","height":91});
															thumbnails[7813288] = clik.newPhoto({"id":7813288,"src":"0071_thumb.jpg","galleries_id":421796,"server_id":18,"link":"photo_7813288.html","width":116,"caption":"","height":130});
															thumbnails[7813291] = clik.newPhoto({"id":7813291,"src":"0165_thumb.jpg","galleries_id":421796,"server_id":18,"link":"photo_7813291.html","width":87,"caption":"","height":130});
															thumbnails[7813293] = clik.newPhoto({"id":7813293,"src":"0212_thumb.jpg","galleries_id":421796,"server_id":18,"link":"photo_7813293.html","width":130,"caption":"","height":85});
															thumbnails[7813297] = clik.newPhoto({"id":7813297,"src":"0235_thumb.jpg","galleries_id":421796,"server_id":18,"link":"photo_7813297.html","width":109,"caption":"","height":130});
															thumbnails[7813299] = clik.newPhoto({"id":7813299,"src":"GD0139_thumb.jpg","galleries_id":421796,"server_id":18,"link":"photo_7813299.html","width":130,"caption":"","height":92});
															thumbnails[7813301] = clik.newPhoto({"id":7813301,"src":"GD0152_thumb.jpg","galleries_id":421796,"server_id":18,"link":"photo_7813301.html","width":130,"caption":"","height":87});
															thumbnails[7813303] = clik.newPhoto({"id":7813303,"src":"GD0179_thumb.jpg","galleries_id":421796,"server_id":18,"link":"photo_7813303.html","width":130,"caption":"","height":87});
															thumbnails[7813312] = clik.newPhoto({"id":7813312,"src":"GD0249_thumb.jpg","galleries_id":421796,"server_id":18,"link":"photo_7813312.html","width":130,"caption":"","height":71});
															thumbnails[7813319] = clik.newPhoto({"id":7813319,"src":"Page0011_thumb.jpg","galleries_id":421796,"server_id":18,"link":"photo_7813319.html","width":130,"caption":"","height":130});
															thumbnails[7813324] = clik.newPhoto({"id":7813324,"src":"Page0017_thumb.jpg","galleries_id":421796,"server_id":18,"link":"photo_7813324.html","width":130,"caption":"","height":130});
															thumbnails[7813333] = clik.newPhoto({"id":7813333,"src":"Page0020_thumb.jpg","galleries_id":421796,"server_id":18,"link":"photo_7813333.html","width":130,"caption":"","height":130});
															thumbnails[7813335] = clik.newPhoto({"id":7813335,"src":"Ral0054_thumb.jpg","galleries_id":421796,"server_id":18,"link":"photo_7813335.html","width":130,"caption":"","height":107});
															thumbnails[7813338] = clik.newPhoto({"id":7813338,"src":"Ral0116_thumb.jpg","galleries_id":421796,"server_id":18,"link":"photo_7813338.html","width":109,"caption":"","height":130});
															thumbnails[7813339] = clik.newPhoto({"id":7813339,"src":"Ral0140_thumb.jpg","galleries_id":421796,"server_id":18,"link":"photo_7813339.html","width":87,"caption":"","height":130});
															thumbnails[7813340] = clik.newPhoto({"id":7813340,"src":"Ral0267_thumb.jpg","galleries_id":421796,"server_id":18,"link":"photo_7813340.html","width":116,"caption":"","height":130});
															thumbnails[7813348] = clik.newPhoto({"id":7813348,"src":"Ral0263_thumb.jpg","galleries_id":421796,"server_id":18,"link":"photo_7813348.html","width":130,"caption":"","height":97});
															thumbnails[8177896] = clik.newPhoto({"id":8177896,"src":"GoArd0075_thumb.jpg","galleries_id":421796,"server_id":18,"link":"photo_8177896.html","width":130,"caption":"","height":87});
															thumbnails[8177899] = clik.newPhoto({"id":8177899,"src":"GoArd0137_thumb.jpg","galleries_id":421796,"server_id":18,"link":"photo_8177899.html","width":87,"caption":"","height":130});
															thumbnails[8177903] = clik.newPhoto({"id":8177903,"src":"GoArd0167_thumb.jpg","galleries_id":421796,"server_id":18,"link":"photo_8177903.html","width":130,"caption":"","height":87});
															thumbnails[8177904] = clik.newPhoto({"id":8177904,"src":"GoArd0239_thumb.jpg","galleries_id":421796,"server_id":18,"link":"photo_8177904.html","width":93,"caption":"","height":130});
															thumbnails[8177908] = clik.newPhoto({"id":8177908,"src":"GoArd0284_thumb.jpg","galleries_id":421796,"server_id":18,"link":"photo_8177908.html","width":130,"caption":"","height":90});
															thumbnails[8177938] = clik.newPhoto({"id":8177938,"src":"IMG_0086_thumb.jpg","galleries_id":421796,"server_id":18,"link":"photo_8177938.html","width":130,"caption":"","height":85});
															thumbnails[8177943] = clik.newPhoto({"id":8177943,"src":"IMG_0145_thumb.jpg","galleries_id":421796,"server_id":18,"link":"photo_8177943.html","width":91,"caption":"","height":130});
															thumbnails[8177951] = clik.newPhoto({"id":8177951,"src":"King0016_thumb.jpg","galleries_id":421796,"server_id":18,"link":"photo_8177951.html","width":109,"caption":"","height":130});
															thumbnails[8177955] = clik.newPhoto({"id":8177955,"src":"King0047_thumb.jpg","galleries_id":421796,"server_id":18,"link":"photo_8177955.html","width":87,"caption":"","height":130});
															thumbnails[8177960] = clik.newPhoto({"id":8177960,"src":"King0220_thumb.jpg","galleries_id":421796,"server_id":18,"link":"photo_8177960.html","width":130,"caption":"","height":65});
															thumbnails[8407970] = clik.newPhoto({"id":8407970,"src":"Usor0003_thumb.jpg","galleries_id":421796,"server_id":18,"link":"photo_8407970.html","width":122,"caption":"","height":130});
															thumbnails[8407972] = clik.newPhoto({"id":8407972,"src":"Usor0106_thumb.jpg","galleries_id":421796,"server_id":18,"link":"photo_8407972.html","width":130,"caption":"","height":90});
															thumbnails[8407979] = clik.newPhoto({"id":8407979,"src":"Usor0115_thumb.jpg","galleries_id":421796,"server_id":18,"link":"photo_8407979.html","width":88,"caption":"","height":130});
															thumbnails[8407980] = clik.newPhoto({"id":8407980,"src":"Usor0268_thumb.jpg","galleries_id":421796,"server_id":18,"link":"photo_8407980.html","width":130,"caption":"","height":85});
															thumbnails[8407982] = clik.newPhoto({"id":8407982,"src":"Usor0330_thumb.jpg","galleries_id":421796,"server_id":18,"link":"photo_8407982.html","width":87,"caption":"","height":130});
															thumbnails[8407984] = clik.newPhoto({"id":8407984,"src":"Usor0354_thumb.jpg","galleries_id":421796,"server_id":18,"link":"photo_8407984.html","width":130,"caption":"","height":98});
															thumbnails[8408011] = clik.newPhoto({"id":8408011,"src":"Usor0363_thumb.jpg","galleries_id":421796,"server_id":18,"link":"photo_8408011.html","width":87,"caption":"","height":130});
															thumbnails[8408040] = clik.newPhoto({"id":8408040,"src":"Usor0463_thumb.jpg","galleries_id":421796,"server_id":18,"link":"photo_8408040.html","width":122,"caption":"","height":130});
															thumbnails[8710465] = clik.newPhoto({"id":8710465,"src":"0001_thumb.jpg","galleries_id":421796,"server_id":18,"link":"photo_8710465.html","width":88,"caption":"","height":130});
															thumbnails[8710466] = clik.newPhoto({"id":8710466,"src":"0001-2_thumb.jpg","galleries_id":180093,"server_id":18,"link":"photo_8710466.html","width":130,"caption":"","height":75});
															thumbnails[8710468] = clik.newPhoto({"id":8710468,"src":"0001-3_thumb.jpg","galleries_id":421796,"server_id":18,"link":"photo_8710468.html","width":116,"caption":"","height":130});
															thumbnails[8710480] = clik.newPhoto({"id":8710480,"src":"0002_thumb.jpg","galleries_id":421796,"server_id":18,"link":"photo_8710480.html","width":130,"caption":"","height":87});
															thumbnails[8710490] = clik.newPhoto({"id":8710490,"src":"0002-2_thumb.jpg","galleries_id":421796,"server_id":18,"link":"photo_8710490.html","width":130,"caption":"","height":87});
															thumbnails[8710493] = clik.newPhoto({"id":8710493,"src":"0002-3_thumb.jpg","galleries_id":421796,"server_id":18,"link":"photo_8710493.html","width":130,"caption":"","height":87});
															thumbnails[8710515] = clik.newPhoto({"id":8710515,"src":"0003_thumb.jpg","galleries_id":180093,"server_id":18,"link":"photo_8710515.html","width":99,"caption":"","height":130});
															thumbnails[8710517] = clik.newPhoto({"id":8710517,"src":"0003-2_thumb.jpg","galleries_id":421796,"server_id":18,"link":"photo_8710517.html","width":95,"caption":"","height":130});
															thumbnails[8710521] = clik.newPhoto({"id":8710521,"src":"0003-3_thumb.jpg","galleries_id":421796,"server_id":18,"link":"photo_8710521.html","width":120,"caption":"","height":130});
															thumbnails[8710525] = clik.newPhoto({"id":8710525,"src":"0004_thumb.jpg","galleries_id":421796,"server_id":18,"link":"photo_8710525.html","width":130,"caption":"","height":113});
															thumbnails[8710539] = clik.newPhoto({"id":8710539,"src":"0004-3_thumb.jpg","galleries_id":421796,"server_id":18,"link":"photo_8710539.html","width":90,"caption":"","height":130});
															thumbnails[8710542] = clik.newPhoto({"id":8710542,"src":"0005_2261EF5B-24E8-5EC4-4F6E3F0B3E1A552E_thumb.jpg","galleries_id":200085,"server_id":18,"link":"photo_8710542.html","width":130,"caption":"","height":87});
															thumbnails[8710557] = clik.newPhoto({"id":8710557,"src":"0007_thumb.jpg","galleries_id":180093,"server_id":18,"link":"photo_8710557.html","width":87,"caption":"","height":130});
															thumbnails[8710561] = clik.newPhoto({"id":8710561,"src":"0006-2_thumb.jpg","galleries_id":421796,"server_id":18,"link":"photo_8710561.html","width":102,"caption":"","height":130});
															thumbnails[8710564] = clik.newPhoto({"id":8710564,"src":"0005-2_thumb.jpg","galleries_id":421796,"server_id":18,"link":"photo_8710564.html","width":130,"caption":"","height":90});
															thumbnails[8710570] = clik.newPhoto({"id":8710570,"src":"0008_thumb.jpg","galleries_id":200085,"server_id":18,"link":"photo_8710570.html","width":130,"caption":"","height":89});
															thumbnails[8710574] = clik.newPhoto({"id":8710574,"src":"0009_thumb.jpg","galleries_id":200085,"server_id":18,"link":"photo_8710574.html","width":130,"caption":"","height":112});
															thumbnails[8710588] = clik.newPhoto({"id":8710588,"src":"0010_thumb.jpg","galleries_id":256854,"server_id":18,"link":"photo_8710588.html","width":122,"caption":"","height":130});
															thumbnails[8798878] = clik.newPhoto({"id":8798878,"src":"KelvinHair0016_thumb.jpg","galleries_id":463204,"server_id":18,"link":"photo_8798878.html","width":130,"caption":"","height":96});
															thumbnails[8798879] = clik.newPhoto({"id":8798879,"src":"KelvinHair0024_thumb.jpg","galleries_id":463204,"server_id":18,"link":"photo_8798879.html","width":130,"caption":"","height":87});
															thumbnails[8798880] = clik.newPhoto({"id":8798880,"src":"KelvinHair0033_thumb.jpg","galleries_id":463204,"server_id":18,"link":"photo_8798880.html","width":83,"caption":"","height":130});
															thumbnails[8798898] = clik.newPhoto({"id":8798898,"src":"KelvinHair0006_thumb.jpg","galleries_id":463204,"server_id":18,"link":"photo_8798898.html","width":130,"caption":"","height":33});
															thumbnails[8798908] = clik.newPhoto({"id":8798908,"src":"KelvinHair0063_thumb.jpg","galleries_id":463204,"server_id":18,"link":"photo_8798908.html","width":87,"caption":"","height":130});
															thumbnails[8798956] = clik.newPhoto({"id":8798956,"src":"KelvinHair0057_thumb.jpg","galleries_id":463204,"server_id":18,"link":"photo_8798956.html","width":124,"caption":"","height":130});
															thumbnails[8798959] = clik.newPhoto({"id":8798959,"src":"Montage_1_thumb.jpg","galleries_id":463204,"server_id":18,"link":"photo_8798959.html","width":130,"caption":"","height":114});
															thumbnails[8798967] = clik.newPhoto({"id":8798967,"src":"KelvinHair0071_thumb.jpg","galleries_id":463204,"server_id":18,"link":"photo_8798967.html","width":87,"caption":"","height":130});
															thumbnails[8799043] = clik.newPhoto({"id":8799043,"src":"IMG_0021_thumb.jpg","galleries_id":463221,"server_id":18,"link":"photo_8799043.html","width":130,"caption":"","height":107});
															thumbnails[8799079] = clik.newPhoto({"id":8799079,"src":"IMG_0039_thumb.jpg","galleries_id":463221,"server_id":18,"link":"photo_8799079.html","width":130,"caption":"","height":111});
															thumbnails[8799082] = clik.newPhoto({"id":8799082,"src":"IMG_0050_thumb.jpg","galleries_id":463221,"server_id":18,"link":"photo_8799082.html","width":129,"caption":"","height":130});
															thumbnails[8799083] = clik.newPhoto({"id":8799083,"src":"IMG_0065_thumb.jpg","galleries_id":463221,"server_id":18,"link":"photo_8799083.html","width":130,"caption":"","height":63});
															thumbnails[8799088] = clik.newPhoto({"id":8799088,"src":"IMG_0067_thumb.jpg","galleries_id":463221,"server_id":18,"link":"photo_8799088.html","width":130,"caption":"","height":122});
															thumbnails[8799090] = clik.newPhoto({"id":8799090,"src":"IMG_0086_2CDE8B6B-1E4F-37DC-7154344203157D0D_thumb.jpg","galleries_id":463221,"server_id":18,"link":"photo_8799090.html","width":130,"caption":"","height":87});
															thumbnails[8799107] = clik.newPhoto({"id":8799107,"src":"IMG_0088_thumb.jpg","galleries_id":463221,"server_id":18,"link":"photo_8799107.html","width":130,"caption":"","height":102});
															thumbnails[9059991] = clik.newPhoto({"id":9059991,"src":"IMG_0026_015F9D44-1EC9-DFB6-090A2A566807E0D8_thumb.jpg","galleries_id":477479,"server_id":18,"link":"photo_9059991.html","width":130,"caption":"","height":97});
															thumbnails[9060024] = clik.newPhoto({"id":9060024,"src":"P4210094_thumb.jpg","galleries_id":477479,"server_id":18,"link":"photo_9060024.html","width":130,"caption":"","height":114});
															thumbnails[1665737] = clik.newPhoto({"id":1665737,"src":"Comp 1 a_thumb.jpg","galleries_id":112377,"server_id":18,"link":"photo_1665737.html","width":130,"caption":"","height":115});
															thumbnails[4371199] = clik.newPhoto({"id":4371199,"src":"0039_thumb.jpg","galleries_id":256854,"server_id":18,"link":"photo_4371199.html","width":128,"caption":"","height":130});
															thumbnails[8710593] = clik.newPhoto({"id":8710593,"src":"0007-2_thumb.jpg","galleries_id":421796,"server_id":18,"link":"photo_8710593.html","width":87,"caption":"","height":130});
															thumbnails[8799048] = clik.newPhoto({"id":8799048,"src":"IMG_0033_thumb.jpg","galleries_id":463221,"server_id":18,"link":"photo_8799048.html","width":116,"caption":"","height":130});
															thumbnails[1665750] = clik.newPhoto({"id":1665750,"src":"McAndrew 2_thumb.jpg","galleries_id":112377,"server_id":18,"link":"photo_1665750.html","width":130,"caption":"","height":87});
															thumbnails[4371201] = clik.newPhoto({"id":4371201,"src":"0040_thumb.jpg","galleries_id":256854,"server_id":18,"link":"photo_4371201.html","width":130,"caption":"","height":113});
															thumbnails[1665754] = clik.newPhoto({"id":1665754,"src":"McAndrew 3_thumb.jpg","galleries_id":112377,"server_id":18,"link":"photo_1665754.html","width":130,"caption":"","height":87});
															thumbnails[661078] = clik.newPhoto({"id":661078,"src":"Rannoch 2_thumb.jpg","galleries_id":8433,"server_id":18,"link":"photo_661078.html","width":130,"caption":"Rannoch Moor","height":84});
															thumbnails[1665745] = clik.newPhoto({"id":1665745,"src":"McAndrew 1_thumb.jpg","galleries_id":112377,"server_id":18,"link":"photo_1665745.html","width":130,"caption":"","height":87});
															thumbnails[9057393] = clik.newPhoto({"id":9057393,"src":"0010-2_thumb_D4EC432C-1EC9-D45B-1C0054D607BF1ADF.jpg","galleries_id":477479,"server_id":18,"link":"photo_9057393.html","width":93,"caption":"","height":130});
															thumbnails[393753] = clik.newPhoto({"id":393753,"src":"Ben Lawers soft1_thumb.jpg","galleries_id":8433,"server_id":18,"link":"photo_393753.html","width":130,"caption":"Ben Lawers","height":87});
															thumbnails[9057403] = clik.newPhoto({"id":9057403,"src":"0018-2_thumb.jpg","galleries_id":477479,"server_id":18,"link":"photo_9057403.html","width":93,"caption":"","height":130});
															thumbnails[661071] = clik.newPhoto({"id":661071,"src":"Rainbow 1_thumb.jpg","galleries_id":8433,"server_id":18,"link":"photo_661071.html","width":130,"caption":"Isle Of Skye","height":86});
															thumbnails[9057413] = clik.newPhoto({"id":9057413,"src":"0019-2_thumb.jpg","galleries_id":477479,"server_id":18,"link":"photo_9057413.html","width":93,"caption":"","height":130});
															thumbnails[393738] = clik.newPhoto({"id":393738,"src":"Ben Lom Close_thumb.jpg","galleries_id":8433,"server_id":18,"link":"photo_393738.html","width":130,"caption":"Ben Lomond","height":84});
															thumbnails[9057416] = clik.newPhoto({"id":9057416,"src":"0166_D51F7085-1EC9-D45B-1CAC9686FD1722CD_thumb.jpg","galleries_id":477479,"server_id":18,"link":"photo_9057416.html","width":130,"caption":"","height":91});
															thumbnails[661074] = clik.newPhoto({"id":661074,"src":"Black Rock 1_thumb.jpg","galleries_id":8433,"server_id":18,"link":"photo_661074.html","width":130,"caption":"Black Rock Cottage","height":87});
															thumbnails[9057423] = clik.newPhoto({"id":9057423,"src":"Ice0145_thumb.jpg","galleries_id":477479,"server_id":18,"link":"photo_9057423.html","width":87,"caption":"","height":130});
															thumbnails[9057432] = clik.newPhoto({"id":9057432,"src":"IMG_0005_thumb.jpg","galleries_id":477479,"server_id":18,"link":"photo_9057432.html","width":130,"caption":"","height":86});
															thumbnails[9057518] = clik.newPhoto({"id":9057518,"src":"IMG_0270_thumb.jpg","galleries_id":477479,"server_id":18,"link":"photo_9057518.html","width":98,"caption":"","height":130});
															thumbnails[393769] = clik.newPhoto({"id":393769,"src":"Dol 5_thumb.jpg","galleries_id":8433,"server_id":18,"link":"photo_393769.html","width":130,"caption":"Dolomites","height":80});
															thumbnails[9057537] = clik.newPhoto({"id":9057537,"src":"PoastcardofGlencoe11_thumb.jpg","galleries_id":477479,"server_id":18,"link":"photo_9057537.html","width":130,"caption":"","height":89});
															thumbnails[661080] = clik.newPhoto({"id":661080,"src":"Isles 1_thumb.jpg","galleries_id":8433,"server_id":18,"link":"photo_661080.html","width":130,"caption":"Pap of Glencoe","height":84});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[477479] = clik.newGallery({"parentGallery":463199,"usePopups":false,"title":"Freelance and Commissions","link":"gallery_477479.html","maxRecords":0.0,"photoIDs":[9059991.0,9060024.0,9057393.0,9057403.0,9057413.0,9057416.0,9057423.0,9057432.0,9057518.0,9057537.0],"skipIndex":0,"section_code":"gallery","featured_images":"9060024,9059991,9057537,9057518,9057432,9057423,9057416,9057413,9057403,9057393","id":477479,"singleSection":false});				  						galleries[463204] = clik.newGallery({"parentGallery":463199,"usePopups":false,"title":"Kelvin Hair","link":"gallery_463204.html","maxRecords":0.0,"photoIDs":[8798878.0,8798879.0,8798880.0,8798898.0,8798908.0,8798956.0,8798959.0,8798967.0],"skipIndex":0,"section_code":"gallery","featured_images":"8798959,8798908,8798879,8798878","id":463204,"singleSection":false});				  						galleries[463221] = clik.newGallery({"parentGallery":463199,"usePopups":false,"title":"Riderz","link":"gallery_463221.html","maxRecords":0.0,"photoIDs":[8799043.0,8799079.0,8799082.0,8799083.0,8799088.0,8799090.0,8799107.0,8799048.0],"skipIndex":0,"section_code":"gallery","featured_images":"8799107,8799090,8799079,8799043","id":463221,"singleSection":false});				  						galleries[421796] = clik.newGallery({"parentGallery":8441,"usePopups":false,"title":2011.0,"link":"gallery_421796.html","maxRecords":0.0,"photoIDs":[7813287.0,7813288.0,7813291.0,7813293.0,7813297.0,7813299.0,7813301.0,7813303.0,7813312.0,7813319.0,7813324.0,7813333.0,7813335.0,7813338.0,7813339.0,7813340.0,7813348.0,8177896.0,8177899.0,8177903.0,8177904.0,8177908.0,8177938.0,8177943.0,8177951.0,8177955.0,8177960.0,8407970.0,8407972.0,8407979.0,8407980.0,8407982.0,8407984.0,8408011.0,8408040.0,8710465.0,8710468.0,8710480.0,8710490.0,8710493.0,8710517.0,8710521.0,8710525.0,8710539.0,8710561.0,8710564.0,8710593.0],"skipIndex":0,"section_code":"gallery","featured_images":"8710593,8710564,8710521,8710465,8407984,8407980,7813324,7813312,7813293","id":421796,"singleSection":false});				  						galleries[8441] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Weddings","link":"gallery_8441.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"8710593,8710564,8710542,8710521,8710515,8710465,8407984,8407980,7813324,7813312,7813293,6896841,6339409,4372821,4372818,4371215,4371201,4371199,2907681,2907676,2907645,2907636,2372896,1665737","id":8441,"singleSection":false});				  						galleries[380068] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Landscapes","link":"gallery_380068.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"6896753,4421837,4421823,4421816,2112485,1665817,1665816,661080,661078","id":380068,"singleSection":false});				  						galleries[351316] = clik.newGallery({"parentGallery":8441,"usePopups":false,"title":2010.0,"link":"gallery_351316.html","maxRecords":0.0,"photoIDs":[6339409.0,6339421.0,6339430.0,6339431.0,6339435.0,6339436.0,6339440.0,6339445.0,6339450.0,6339452.0,6763557.0,6763558.0,6763559.0,6763560.0,6763561.0,6763563.0,6763565.0,6896801.0,6896827.0,6896828.0,6896829.0,6896840.0,6896841.0,6896843.0,6896845.0,6896846.0],"skipIndex":0,"section_code":"gallery","featured_images":"6896841,6339409","id":351316,"singleSection":false});				  						galleries[463199] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Commercial and Press","link":"gallery_463199.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"8799107,8799090,8799079,8799043,8798959,8798908,8798879,8798878","id":463199,"singleSection":false});				  						galleries[256854] = clik.newGallery({"parentGallery":8441,"usePopups":false,"title":"Contemporary","link":"gallery_256854.html","maxRecords":0.0,"photoIDs":[4372811.0,4372818.0,4372827.0,4372850.0,4372854.0,4975296.0,5424346.0,5424359.0,5508330.0,8710588.0,4371199.0,4371201.0],"skipIndex":0,"section_code":"gallery","featured_images":"4372818,4371201,4371199","id":256854,"singleSection":false});				  						galleries[180093] = clik.newGallery({"parentGallery":8441,"usePopups":false,"title":"Black and White","link":"gallery_180093.html","maxRecords":0.0,"photoIDs":[95942.0,2372908.0,2372925.0,2907641.0,2907643.0,2907645.0,2907648.0,2907652.0,2907676.0,2907681.0,3477699.0,4372814.0,4975335.0,4975344.0,4975358.0,8710466.0,8710515.0,8710557.0],"skipIndex":0,"section_code":"gallery","featured_images":"8710515,2907681,2907676,2907645","id":180093,"singleSection":false});				  						galleries[200083] = clik.newGallery({"parentGallery":8441,"usePopups":false,"title":"Formal","link":"gallery_200083.html","maxRecords":0.0,"photoIDs":[412675.0,2372890.0,2372893.0,2372896.0,2372903.0,2372915.0,2372929.0,4371173.0,4371215.0,4372821.0,4372825.0],"skipIndex":0,"section_code":"gallery","featured_images":"4372821,4371215,2372896","id":200083,"singleSection":false});				  						galleries[8433] = clik.newGallery({"parentGallery":380068,"usePopups":false,"title":"Mountain Light","link":"gallery_8433.html","maxRecords":0.0,"photoIDs":[1665816.0,1665817.0,1665833.0,2112482.0,2112485.0,2112487.0,2959597.0,2959605.0,2959607.0,2959628.0,6896753.0,661078.0,393753.0,661071.0,393738.0,661074.0,393769.0,661080.0],"skipIndex":0,"section_code":"gallery","featured_images":"6896753,2112485,1665817,1665816,661080,661078","id":8433,"singleSection":false});				  						galleries[258927] = clik.newGallery({"parentGallery":380068,"usePopups":false,"title":"Argyll","link":"gallery_258927.html","maxRecords":0.0,"photoIDs":[4421782.0,4421788.0,4421816.0,4421823.0,4421826.0,4421837.0,4421843.0,6896729.0,6896750.0,6896751.0],"skipIndex":0,"section_code":"gallery","featured_images":"4421837,4421823,4421816","id":258927,"singleSection":false});				  						galleries[200084] = clik.newGallery({"parentGallery":8441,"usePopups":false,"title":"Candid ","link":"gallery_200084.html","maxRecords":0.0,"photoIDs":[89181.0,1255858.0,2372881.0,2372898.0,2372909.0,2372912.0,3075996.0,3076134.0,4371208.0,4372813.0,4372815.0,4372833.0,5424344.0,5424436.0],"skipIndex":0,"section_code":"gallery","featured_images":"5424436,5424344,4372833,4372815,4372813,4371208,3076134,3075996,2372912,2372909","id":200084,"singleSection":false});				  						galleries[200085] = clik.newGallery({"parentGallery":8441,"usePopups":false,"title":"A Bit of Fun","link":"gallery_200085.html","maxRecords":0.0,"photoIDs":[2372887.0,2372913.0,2907636.0,2962116.0,4372852.0,5424355.0,8710542.0,8710570.0,8710574.0],"skipIndex":0,"section_code":"gallery","featured_images":"8710542,2907636","id":200085,"singleSection":false});				  						galleries[112377] = clik.newGallery({"parentGallery":8441,"usePopups":false,"title":"Albums","link":"gallery_112377.html","maxRecords":0.0,"photoIDs":[2907620.0,2907625.0,2907629.0,2907632.0,2907638.0,2961875.0,2961878.0,5424360.0,5424361.0,5424366.0,1665737.0,1665750.0,1665754.0,1665745.0],"skipIndex":0,"section_code":"gallery","featured_images":1665737.0,"id":112377,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8710588,8710574,8710570,8710564,8710561,8710557,8710539,8710525,8710521,8710515,8710493,8710490,8710480,8710466,8710465,8408040,8407979,8407972,8177960,8177951,8177943,8177908,7813324,7813312,7813293,6896846,6896845,6896841,6896753,6896751,6896750,6896729,6763563,6763561,6763560,6763557,6339445,6339440,6339421,6339409,5508330,5424346,5424344,4975358,4975344,4975335,4975296,4421823,4372833,4372827,4372821,4372818,4372815,4372814,4372811,4371215,3076134,3075996,2907681,2907676,2907645,2907625,2372896,2112482,1665833,1255858,8710593,4371199,1665737,4371201';
imageSets[2] = '8799107,8799090,8799079,8799043,8798959,8798908,8798879,8798878,8710564,8710542,8710521,8710515,8710465,8407984,8407980,7813324,7813312,7813293,6896841,6896753,6339409,4421837,4421823,4421816,4372821,4372818,4371215,2907681,2907676,2907645,2907636,2372896,2112485,1665817,1665816,8710593,4371199,1665737,4371201,661078,661080';
imageSets[3] = '9060024,9059991,9057537,9057518,9057503,9057497,9057432,9057423,9057416,9057413,9057403,9057393,8799107,8799090,8799088,8799083,8799082,8799079,8799048,8799043,8798967,8798959,8798956,8798908,8798898,8798880,8798879,8798878,8710593,8710588,8710574,8710570,8710564,8710561,8710557,8710542,8710539,8710525,8710521,8710517,8710515,8710493,8710490,8710480,8710468,8710466,8710465,8408040,8408011,8407984';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/yarrumtalks/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/yarrumtalks/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/yarrumtalks/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/yarrumtalks/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/yarrumtalks/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/yarrumtalks/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/yarrumtalks/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/yarrumtalks/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/yarrumtalks/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/yarrumtalks/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/yarrumtalks/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/yarrumtalks/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/yarrumtalks/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/yarrumtalks/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/yarrumtalks/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/yarrumtalks/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/yarrumtalks/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/yarrumtalks/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/yarrumtalks/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/yarrumtalks/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/yarrumtalks/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/yarrumtalks/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/yarrumtalks/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/yarrumtalks/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/yarrumtalks/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/yarrumtalks/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/yarrumtalks/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 = 'Scotscape Photography: ' + 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> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="scott.murray@virgin.net">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="scott.murray@virgin.net">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

