window.thumbnails = {};
															thumbnails[3952490] = clik.newPhoto({"id":3952490,"src":"Angela-Ramsay-Forfar_thumb.jpg","galleries_id":239477,"server_id":18,"link":"photo_3952490.html","width":130,"caption":"BA009_001","height":195});
															thumbnails[3952499] = clik.newPhoto({"id":3952499,"src":"BA-Pic002_thumb.jpg","galleries_id":239477,"server_id":18,"link":"photo_3952499.html","width":130,"caption":"BA009_002","height":87});
															thumbnails[3952502] = clik.newPhoto({"id":3952502,"src":"BA-Pic003_thumb.jpg","galleries_id":239477,"server_id":18,"link":"photo_3952502.html","width":130,"caption":"BA009_003","height":194});
															thumbnails[3952506] = clik.newPhoto({"id":3952506,"src":"BA-Pic004_thumb.jpg","galleries_id":239477,"server_id":18,"link":"photo_3952506.html","width":130,"caption":"BA009_004","height":194});
															thumbnails[3952507] = clik.newPhoto({"id":3952507,"src":"BA-Pic005_thumb.jpg","galleries_id":239477,"server_id":18,"link":"photo_3952507.html","width":130,"caption":"BA009_005","height":194});
															thumbnails[3952512] = clik.newPhoto({"id":3952512,"src":"BA-Pic006_thumb.jpg","galleries_id":239477,"server_id":18,"link":"photo_3952512.html","width":130,"caption":"BA009_006","height":194});
															thumbnails[3952517] = clik.newPhoto({"id":3952517,"src":"BA-Pic007_thumb.jpg","galleries_id":239477,"server_id":18,"link":"photo_3952517.html","width":130,"caption":"BA009_007","height":194});
															thumbnails[3952521] = clik.newPhoto({"id":3952521,"src":"BA-Pic008_thumb.jpg","galleries_id":239477,"server_id":18,"link":"photo_3952521.html","width":130,"caption":"BA009_008","height":196});
															thumbnails[3952523] = clik.newPhoto({"id":3952523,"src":"BA-Pic009_thumb.jpg","galleries_id":239477,"server_id":18,"link":"photo_3952523.html","width":130,"caption":"BA009_009","height":92});
															thumbnails[3952524] = clik.newPhoto({"id":3952524,"src":"BA-Pic010_thumb.jpg","galleries_id":239477,"server_id":18,"link":"photo_3952524.html","width":130,"caption":"BA009_010","height":105});
															thumbnails[3952526] = clik.newPhoto({"id":3952526,"src":"BA-Pic011_thumb.jpg","galleries_id":239477,"server_id":18,"link":"photo_3952526.html","width":130,"caption":"BA009_011","height":194});
															thumbnails[3952528] = clik.newPhoto({"id":3952528,"src":"BA-Pic012_thumb.jpg","galleries_id":239477,"server_id":18,"link":"photo_3952528.html","width":130,"caption":"BA009_012","height":92});
															thumbnails[3952529] = clik.newPhoto({"id":3952529,"src":"BA-Pic013_thumb.jpg","galleries_id":239477,"server_id":18,"link":"photo_3952529.html","width":130,"caption":"BA009_013","height":184});
															thumbnails[3952530] = clik.newPhoto({"id":3952530,"src":"BA-Pic014_thumb.jpg","galleries_id":239477,"server_id":18,"link":"photo_3952530.html","width":130,"caption":"BA009_014","height":215});
															thumbnails[3952531] = clik.newPhoto({"id":3952531,"src":"BA-Pic015_thumb.jpg","galleries_id":239477,"server_id":18,"link":"photo_3952531.html","width":130,"caption":"BA009_015","height":180});
															thumbnails[3952532] = clik.newPhoto({"id":3952532,"src":"BA-Pic016_thumb.jpg","galleries_id":239477,"server_id":18,"link":"photo_3952532.html","width":130,"caption":"BA009_016","height":92});
															thumbnails[3984636] = clik.newPhoto({"id":3984636,"src":"BF09_001_thumb.jpg","galleries_id":241069,"server_id":18,"link":"photo_3984636.html","width":130,"caption":"BF09_001","height":184});
															thumbnails[3984645] = clik.newPhoto({"id":3984645,"src":"BF09_002_thumb.jpg","galleries_id":241069,"server_id":18,"link":"photo_3984645.html","width":130,"caption":"BF09_002","height":166});
															thumbnails[3984646] = clik.newPhoto({"id":3984646,"src":"BF09_003_thumb.jpg","galleries_id":241069,"server_id":18,"link":"photo_3984646.html","width":130,"caption":"BF09_003","height":87});
															thumbnails[3984655] = clik.newPhoto({"id":3984655,"src":"BF09_004_thumb.jpg","galleries_id":241069,"server_id":18,"link":"photo_3984655.html","width":130,"caption":"BF09_004","height":194});
															thumbnails[3984657] = clik.newPhoto({"id":3984657,"src":"BF09_005_thumb.jpg","galleries_id":241069,"server_id":18,"link":"photo_3984657.html","width":130,"caption":"BF09_005","height":92});
															thumbnails[3984676] = clik.newPhoto({"id":3984676,"src":"BF09_006_thumb.jpg","galleries_id":241069,"server_id":18,"link":"photo_3984676.html","width":130,"caption":"BF09_006","height":184});
															thumbnails[3984679] = clik.newPhoto({"id":3984679,"src":"BF09_007_thumb.jpg","galleries_id":241069,"server_id":18,"link":"photo_3984679.html","width":130,"caption":"BF09_007","height":172});
															thumbnails[3984725] = clik.newPhoto({"id":3984725,"src":"BF09_008_thumb.jpg","galleries_id":241069,"server_id":18,"link":"photo_3984725.html","width":130,"caption":"BF09_008","height":194});
															thumbnails[3984735] = clik.newPhoto({"id":3984735,"src":"BF09_009_thumb.jpg","galleries_id":241069,"server_id":18,"link":"photo_3984735.html","width":130,"caption":"BF09_009","height":87});
															thumbnails[3984736] = clik.newPhoto({"id":3984736,"src":"BF09_010_thumb.jpg","galleries_id":241069,"server_id":18,"link":"photo_3984736.html","width":130,"caption":"BF09_010","height":92});
															thumbnails[3984737] = clik.newPhoto({"id":3984737,"src":"BF09_011_thumb.jpg","galleries_id":241069,"server_id":18,"link":"photo_3984737.html","width":130,"caption":"BF09_011","height":184});
															thumbnails[3984743] = clik.newPhoto({"id":3984743,"src":"BF09_012_thumb.jpg","galleries_id":241069,"server_id":18,"link":"photo_3984743.html","width":130,"caption":"BF09_012","height":149});
															thumbnails[3984745] = clik.newPhoto({"id":3984745,"src":"BF09_013_thumb.jpg","galleries_id":241069,"server_id":18,"link":"photo_3984745.html","width":130,"caption":"BF09_013","height":92});
															thumbnails[3984747] = clik.newPhoto({"id":3984747,"src":"BF09_014_thumb.jpg","galleries_id":241069,"server_id":18,"link":"photo_3984747.html","width":130,"caption":"BF09_014","height":83});
															thumbnails[3984750] = clik.newPhoto({"id":3984750,"src":"BF09_015_thumb.jpg","galleries_id":241069,"server_id":18,"link":"photo_3984750.html","width":130,"caption":"BF09_015","height":184});
															thumbnails[3984751] = clik.newPhoto({"id":3984751,"src":"BF09_016_thumb.jpg","galleries_id":241069,"server_id":18,"link":"photo_3984751.html","width":130,"caption":"BF09_016","height":168});
															thumbnails[4043517] = clik.newPhoto({"id":4043517,"src":"MK09_001_thumb.jpg","galleries_id":243553,"server_id":18,"link":"photo_4043517.html","width":130,"caption":"MK09_001","height":186});
															thumbnails[4043524] = clik.newPhoto({"id":4043524,"src":"MK09_002_thumb.jpg","galleries_id":243553,"server_id":18,"link":"photo_4043524.html","width":130,"caption":"MK09_002","height":194});
															thumbnails[4043528] = clik.newPhoto({"id":4043528,"src":"MK09_003_thumb.jpg","galleries_id":243553,"server_id":18,"link":"photo_4043528.html","width":130,"caption":"MK09_003","height":87});
															thumbnails[4043530] = clik.newPhoto({"id":4043530,"src":"MK09_004_thumb.jpg","galleries_id":243553,"server_id":18,"link":"photo_4043530.html","width":130,"caption":"MK09_004","height":87});
															thumbnails[4043534] = clik.newPhoto({"id":4043534,"src":"MK09_005_thumb.jpg","galleries_id":243553,"server_id":18,"link":"photo_4043534.html","width":130,"caption":"MK09_005","height":96});
															thumbnails[4043536] = clik.newPhoto({"id":4043536,"src":"MK09_006_thumb.jpg","galleries_id":243553,"server_id":18,"link":"photo_4043536.html","width":130,"caption":"MK09_006","height":87});
															thumbnails[4043554] = clik.newPhoto({"id":4043554,"src":"MK09_007_thumb.jpg","galleries_id":243553,"server_id":18,"link":"photo_4043554.html","width":130,"caption":"MK09_007","height":199});
															thumbnails[4043575] = clik.newPhoto({"id":4043575,"src":"MK09_008_thumb.jpg","galleries_id":243553,"server_id":18,"link":"photo_4043575.html","width":130,"caption":"MK09_008","height":92});
															thumbnails[4043579] = clik.newPhoto({"id":4043579,"src":"MK09_009_thumb.jpg","galleries_id":243553,"server_id":18,"link":"photo_4043579.html","width":130,"caption":"MK09_009","height":184});
															thumbnails[4043584] = clik.newPhoto({"id":4043584,"src":"MK09_010_thumb.jpg","galleries_id":243553,"server_id":18,"link":"photo_4043584.html","width":130,"caption":"MK09_010","height":92});
															thumbnails[4043589] = clik.newPhoto({"id":4043589,"src":"MK09_011_thumb.jpg","galleries_id":243553,"server_id":18,"link":"photo_4043589.html","width":130,"caption":"MK09_011","height":184});
															thumbnails[4043592] = clik.newPhoto({"id":4043592,"src":"MK09_012_thumb.jpg","galleries_id":243553,"server_id":18,"link":"photo_4043592.html","width":130,"caption":"MK09_012","height":194});
															thumbnails[4043616] = clik.newPhoto({"id":4043616,"src":"MK09_014_thumb.jpg","galleries_id":243553,"server_id":18,"link":"photo_4043616.html","width":130,"caption":"MK09_013","height":87});
															thumbnails[4043620] = clik.newPhoto({"id":4043620,"src":"MK09_015_thumb.jpg","galleries_id":243553,"server_id":18,"link":"photo_4043620.html","width":130,"caption":"MK09_014","height":184});
															thumbnails[4043623] = clik.newPhoto({"id":4043623,"src":"MK09_016_thumb.jpg","galleries_id":243553,"server_id":18,"link":"photo_4043623.html","width":130,"caption":"MK09_015","height":92});
															thumbnails[4044477] = clik.newPhoto({"id":4044477,"src":"MK09_013_thumb.jpg","galleries_id":243553,"server_id":18,"link":"photo_4044477.html","width":130,"caption":"MK09_016","height":87});
															thumbnails[4224960] = clik.newPhoto({"id":4224960,"src":"BF09_017_thumb.jpg","galleries_id":241069,"server_id":18,"link":"photo_4224960.html","width":130,"caption":"BF09_017","height":195});
															thumbnails[4224968] = clik.newPhoto({"id":4224968,"src":"BF09_018_thumb.jpg","galleries_id":241069,"server_id":18,"link":"photo_4224968.html","width":130,"caption":"BF09_018","height":212});
															thumbnails[4225032] = clik.newPhoto({"id":4225032,"src":"KM09_001_thumb.jpg","galleries_id":250578,"server_id":18,"link":"photo_4225032.html","width":130,"caption":"KM09_001","height":87});
															thumbnails[4225040] = clik.newPhoto({"id":4225040,"src":"KM09_002_thumb.jpg","galleries_id":250578,"server_id":18,"link":"photo_4225040.html","width":130,"caption":"KM09_002","height":89});
															thumbnails[4225043] = clik.newPhoto({"id":4225043,"src":"KM09_003_thumb.jpg","galleries_id":250578,"server_id":18,"link":"photo_4225043.html","width":130,"caption":"KM09_003","height":184});
															thumbnails[4225048] = clik.newPhoto({"id":4225048,"src":"KM09_004_thumb.jpg","galleries_id":250578,"server_id":18,"link":"photo_4225048.html","width":130,"caption":"KM09_004","height":185});
															thumbnails[4225056] = clik.newPhoto({"id":4225056,"src":"KM09_005_thumb.jpg","galleries_id":250578,"server_id":18,"link":"photo_4225056.html","width":130,"caption":"KM09_005","height":194});
															thumbnails[4225060] = clik.newPhoto({"id":4225060,"src":"KM09_006_thumb.jpg","galleries_id":250578,"server_id":18,"link":"photo_4225060.html","width":130,"caption":"KM09_006","height":181});
															thumbnails[4225063] = clik.newPhoto({"id":4225063,"src":"KM09_007_thumb.jpg","galleries_id":250578,"server_id":18,"link":"photo_4225063.html","width":130,"caption":"KM09_007","height":194});
															thumbnails[4225066] = clik.newPhoto({"id":4225066,"src":"KM09_008_thumb.jpg","galleries_id":250578,"server_id":18,"link":"photo_4225066.html","width":130,"caption":"KM09_008","height":100});
															thumbnails[4225076] = clik.newPhoto({"id":4225076,"src":"KM09_009_thumb.jpg","galleries_id":250578,"server_id":18,"link":"photo_4225076.html","width":130,"caption":"KM09_009","height":196});
															thumbnails[4225080] = clik.newPhoto({"id":4225080,"src":"KM09_010_thumb.jpg","galleries_id":250578,"server_id":18,"link":"photo_4225080.html","width":130,"caption":"KM09_010","height":190});
															thumbnails[4225083] = clik.newPhoto({"id":4225083,"src":"KM09_011_thumb.jpg","galleries_id":250578,"server_id":18,"link":"photo_4225083.html","width":130,"caption":"KM09_011","height":202});
															thumbnails[4225087] = clik.newPhoto({"id":4225087,"src":"KM09_012_thumb.jpg","galleries_id":250578,"server_id":18,"link":"photo_4225087.html","width":130,"caption":"KM09_012","height":208});
															thumbnails[4225090] = clik.newPhoto({"id":4225090,"src":"KM09_013_thumb.jpg","galleries_id":250578,"server_id":18,"link":"photo_4225090.html","width":130,"caption":"KM09_013","height":92});
															thumbnails[4225096] = clik.newPhoto({"id":4225096,"src":"KM09_014_thumb.jpg","galleries_id":250578,"server_id":18,"link":"photo_4225096.html","width":130,"caption":"KM09_014","height":184});
															thumbnails[4225100] = clik.newPhoto({"id":4225100,"src":"KM09_015_thumb.jpg","galleries_id":250578,"server_id":18,"link":"photo_4225100.html","width":130,"caption":"KM09_015","height":87});
															thumbnails[4225108] = clik.newPhoto({"id":4225108,"src":"KM09_016_thumb.jpg","galleries_id":250578,"server_id":18,"link":"photo_4225108.html","width":130,"caption":"KM09_016","height":191});
															thumbnails[4225113] = clik.newPhoto({"id":4225113,"src":"KM09_017_thumb.jpg","galleries_id":250578,"server_id":18,"link":"photo_4225113.html","width":130,"caption":"KM09_017","height":208});
															thumbnails[4225117] = clik.newPhoto({"id":4225117,"src":"KM09_018_thumb.jpg","galleries_id":250578,"server_id":18,"link":"photo_4225117.html","width":130,"caption":"KM09_018","height":212});
															thumbnails[4225120] = clik.newPhoto({"id":4225120,"src":"KM09_019_thumb.jpg","galleries_id":250578,"server_id":18,"link":"photo_4225120.html","width":130,"caption":"KM09_019","height":87});
															thumbnails[4225123] = clik.newPhoto({"id":4225123,"src":"KM09_020_thumb.jpg","galleries_id":250578,"server_id":18,"link":"photo_4225123.html","width":130,"caption":"KM09_020","height":209});
															thumbnails[4225128] = clik.newPhoto({"id":4225128,"src":"KM09_021_thumb.jpg","galleries_id":250578,"server_id":18,"link":"photo_4225128.html","width":130,"caption":"KM09_021","height":197});
															thumbnails[4225131] = clik.newPhoto({"id":4225131,"src":"KM09_022_thumb.jpg","galleries_id":250578,"server_id":18,"link":"photo_4225131.html","width":130,"caption":"KM09_022","height":208});
															thumbnails[4225136] = clik.newPhoto({"id":4225136,"src":"KM09_023_thumb.jpg","galleries_id":250578,"server_id":18,"link":"photo_4225136.html","width":130,"caption":"KM09_023","height":226});
															thumbnails[4225139] = clik.newPhoto({"id":4225139,"src":"KM09_024_thumb.jpg","galleries_id":250578,"server_id":18,"link":"photo_4225139.html","width":130,"caption":"KM09_024","height":183});
															thumbnails[4225142] = clik.newPhoto({"id":4225142,"src":"KM09_025_thumb.jpg","galleries_id":250578,"server_id":18,"link":"photo_4225142.html","width":130,"caption":"KM09_025","height":194});
															thumbnails[4424755] = clik.newPhoto({"id":4424755,"src":"FLK_001_thumb.jpg","galleries_id":259024,"server_id":18,"link":"photo_4424755.html","width":130,"caption":"FLK_001","height":184});
															thumbnails[4480197] = clik.newPhoto({"id":4480197,"src":"PER09_001_thumb.jpg","galleries_id":261275,"server_id":18,"link":"photo_4480197.html","width":130,"caption":"PER09_001","height":184});
															thumbnails[4480202] = clik.newPhoto({"id":4480202,"src":"PER09_002_thumb.jpg","galleries_id":261275,"server_id":18,"link":"photo_4480202.html","width":130,"caption":"PER09_002","height":86});
															thumbnails[4480205] = clik.newPhoto({"id":4480205,"src":"PER09_003_thumb.jpg","galleries_id":261275,"server_id":18,"link":"photo_4480205.html","width":130,"caption":"PER09_003","height":208});
															thumbnails[4480214] = clik.newPhoto({"id":4480214,"src":"PER09_004_thumb.jpg","galleries_id":261275,"server_id":18,"link":"photo_4480214.html","width":130,"caption":"PER09_004","height":94});
															thumbnails[4480219] = clik.newPhoto({"id":4480219,"src":"PER09_005_thumb.jpg","galleries_id":261275,"server_id":18,"link":"photo_4480219.html","width":130,"caption":"PER09_005","height":184});
															thumbnails[4480222] = clik.newPhoto({"id":4480222,"src":"PER09_006_thumb.jpg","galleries_id":261275,"server_id":18,"link":"photo_4480222.html","width":130,"caption":"PER09_006","height":87});
															thumbnails[4480226] = clik.newPhoto({"id":4480226,"src":"PER09_007_thumb.jpg","galleries_id":261275,"server_id":18,"link":"photo_4480226.html","width":130,"caption":"PER09_007","height":186});
															thumbnails[4480227] = clik.newPhoto({"id":4480227,"src":"PER09_008_thumb.jpg","galleries_id":261275,"server_id":18,"link":"photo_4480227.html","width":130,"caption":"PER09_008","height":184});
															thumbnails[4480240] = clik.newPhoto({"id":4480240,"src":"PER09_009_thumb.jpg","galleries_id":261275,"server_id":18,"link":"photo_4480240.html","width":130,"caption":"PER09_009","height":184});
															thumbnails[4480241] = clik.newPhoto({"id":4480241,"src":"PER09_010_thumb.jpg","galleries_id":261275,"server_id":18,"link":"photo_4480241.html","width":130,"caption":"PER09_010","height":203});
															thumbnails[4480244] = clik.newPhoto({"id":4480244,"src":"PER09_011_thumb.jpg","galleries_id":261275,"server_id":18,"link":"photo_4480244.html","width":130,"caption":"PER09_011","height":186});
															thumbnails[4480246] = clik.newPhoto({"id":4480246,"src":"PER09_012_thumb.jpg","galleries_id":261275,"server_id":18,"link":"photo_4480246.html","width":130,"caption":"PER09_012","height":208});
															thumbnails[4480288] = clik.newPhoto({"id":4480288,"src":"PER09_013_thumb.jpg","galleries_id":261275,"server_id":18,"link":"photo_4480288.html","width":130,"caption":"PER09_013","height":184});
															thumbnails[4480366] = clik.newPhoto({"id":4480366,"src":"PER09_014_thumb.jpg","galleries_id":261275,"server_id":18,"link":"photo_4480366.html","width":130,"caption":"PER09_014","height":198});
															thumbnails[4480367] = clik.newPhoto({"id":4480367,"src":"PER09_015_thumb.jpg","galleries_id":261275,"server_id":18,"link":"photo_4480367.html","width":130,"caption":"PER09_015","height":183});
															thumbnails[4480368] = clik.newPhoto({"id":4480368,"src":"PER09_016_thumb.jpg","galleries_id":261275,"server_id":18,"link":"photo_4480368.html","width":130,"caption":"PER09_016","height":194});
															thumbnails[4480391] = clik.newPhoto({"id":4480391,"src":"PER09_017_thumb.jpg","galleries_id":261275,"server_id":18,"link":"photo_4480391.html","width":130,"caption":"PER09_017","height":92});
															thumbnails[4480398] = clik.newPhoto({"id":4480398,"src":"PER09_018_thumb.jpg","galleries_id":261275,"server_id":18,"link":"photo_4480398.html","width":130,"caption":"PER09_018","height":184});
															thumbnails[4480400] = clik.newPhoto({"id":4480400,"src":"PER09_019_thumb.jpg","galleries_id":261275,"server_id":18,"link":"photo_4480400.html","width":130,"caption":"PER09_019","height":184});
															thumbnails[4480403] = clik.newPhoto({"id":4480403,"src":"PER09_020_thumb.jpg","galleries_id":261275,"server_id":18,"link":"photo_4480403.html","width":130,"caption":"PER09_020","height":97});
															thumbnails[4480405] = clik.newPhoto({"id":4480405,"src":"PER09_021_thumb.jpg","galleries_id":261275,"server_id":18,"link":"photo_4480405.html","width":130,"caption":"PER09_021","height":194});
															thumbnails[4714578] = clik.newPhoto({"id":4714578,"src":"Pit09_001_thumb.jpg","galleries_id":270942,"server_id":18,"link":"photo_4714578.html","width":130,"caption":"Pit09_001","height":196});
															thumbnails[4714579] = clik.newPhoto({"id":4714579,"src":"Pit09_002_thumb.jpg","galleries_id":270942,"server_id":18,"link":"photo_4714579.html","width":130,"caption":"Pit09_002","height":191});
															thumbnails[4714621] = clik.newPhoto({"id":4714621,"src":"Pit09_003_thumb.jpg","galleries_id":270942,"server_id":18,"link":"photo_4714621.html","width":130,"caption":"Pit09_003","height":197});
															thumbnails[4714624] = clik.newPhoto({"id":4714624,"src":"Pit09_004_thumb.jpg","galleries_id":270942,"server_id":18,"link":"photo_4714624.html","width":130,"caption":"Pit09_004","height":189});
															thumbnails[4714626] = clik.newPhoto({"id":4714626,"src":"Pit09_005_thumb.jpg","galleries_id":270942,"server_id":18,"link":"photo_4714626.html","width":130,"caption":"Pit09_005","height":94});
															thumbnails[4730686] = clik.newPhoto({"id":4730686,"src":"Pit09_006_thumb.jpg","galleries_id":270942,"server_id":18,"link":"photo_4730686.html","width":130,"caption":"Pit09_006","height":187});
															thumbnails[4730701] = clik.newPhoto({"id":4730701,"src":"Pit09_007_thumb.jpg","galleries_id":270942,"server_id":18,"link":"photo_4730701.html","width":130,"caption":"Pit09_007","height":89});
															thumbnails[4730704] = clik.newPhoto({"id":4730704,"src":"Pit09_008_thumb.jpg","galleries_id":270942,"server_id":18,"link":"photo_4730704.html","width":130,"caption":"Pit09_008","height":191});
															thumbnails[4730708] = clik.newPhoto({"id":4730708,"src":"Pit09_009_thumb.jpg","galleries_id":270942,"server_id":18,"link":"photo_4730708.html","width":130,"caption":"Pit09_009","height":89});
															thumbnails[4813520] = clik.newPhoto({"id":4813520,"src":"Pit09_010_thumb.jpg","galleries_id":270942,"server_id":18,"link":"photo_4813520.html","width":130,"caption":"Pit09_010","height":199});
															thumbnails[4813522] = clik.newPhoto({"id":4813522,"src":"Pit09_011_thumb.jpg","galleries_id":270942,"server_id":18,"link":"photo_4813522.html","width":130,"caption":"Pit09_011","height":208});
															thumbnails[4813525] = clik.newPhoto({"id":4813525,"src":"Pit09_012_thumb.jpg","galleries_id":270942,"server_id":18,"link":"photo_4813525.html","width":130,"caption":"Pit09_012","height":199});
															thumbnails[4813557] = clik.newPhoto({"id":4813557,"src":"Pit09_013_thumb.jpg","galleries_id":270942,"server_id":18,"link":"photo_4813557.html","width":130,"caption":"Pit09_013","height":183});
															thumbnails[4813559] = clik.newPhoto({"id":4813559,"src":"Pit09_014_thumb.jpg","galleries_id":270942,"server_id":18,"link":"photo_4813559.html","width":130,"caption":"Pit09_014","height":88});
															thumbnails[4813561] = clik.newPhoto({"id":4813561,"src":"Pit09_015_thumb.jpg","galleries_id":270942,"server_id":18,"link":"photo_4813561.html","width":130,"caption":"Pit09_015","height":204});
															thumbnails[4813563] = clik.newPhoto({"id":4813563,"src":"Pit09_016_thumb.jpg","galleries_id":270942,"server_id":18,"link":"photo_4813563.html","width":130,"caption":"Pit09_016","height":193});
															thumbnails[4813565] = clik.newPhoto({"id":4813565,"src":"Pit09_017_thumb.jpg","galleries_id":270942,"server_id":18,"link":"photo_4813565.html","width":130,"caption":"Pit09_017","height":211});
															thumbnails[4855059] = clik.newPhoto({"id":4855059,"src":"Pit09_018_thumb.jpg","galleries_id":270942,"server_id":18,"link":"photo_4855059.html","width":130,"caption":"PIT09_018","height":201});
															thumbnails[4855061] = clik.newPhoto({"id":4855061,"src":"Pit09_019_thumb.jpg","galleries_id":270942,"server_id":18,"link":"photo_4855061.html","width":130,"caption":"PIT09_019","height":182});
															thumbnails[4855062] = clik.newPhoto({"id":4855062,"src":"Pit09_020_thumb.jpg","galleries_id":270942,"server_id":18,"link":"photo_4855062.html","width":130,"caption":"PIT09_020","height":190});
															thumbnails[4861399] = clik.newPhoto({"id":4861399,"src":"Pit09_032_thumb.jpg","galleries_id":270942,"server_id":18,"link":"photo_4861399.html","width":130,"caption":"PIT09_032","height":204});
															thumbnails[4866280] = clik.newPhoto({"id":4866280,"src":"Pit09_037_thumb.jpg","galleries_id":270942,"server_id":18,"link":"photo_4866280.html","width":130,"caption":"PIT09_037","height":188});
															thumbnails[4866284] = clik.newPhoto({"id":4866284,"src":"Pit09_038_thumb.jpg","galleries_id":270942,"server_id":18,"link":"photo_4866284.html","width":130,"caption":"PIT09_038","height":183});
															thumbnails[4866286] = clik.newPhoto({"id":4866286,"src":"Pit09_039_thumb.jpg","galleries_id":270942,"server_id":18,"link":"photo_4866286.html","width":130,"caption":"PIT09_039","height":186});
															thumbnails[4866288] = clik.newPhoto({"id":4866288,"src":"Pit09_040_thumb.jpg","galleries_id":270942,"server_id":18,"link":"photo_4866288.html","width":130,"caption":"PIT09_040","height":194});
															thumbnails[4866291] = clik.newPhoto({"id":4866291,"src":"Pit09_041_thumb.jpg","galleries_id":270942,"server_id":18,"link":"photo_4866291.html","width":130,"caption":"PIT09_041","height":198});
															thumbnails[4866294] = clik.newPhoto({"id":4866294,"src":"Pit09_042_thumb.jpg","galleries_id":270942,"server_id":18,"link":"photo_4866294.html","width":130,"caption":"PIT09_042","height":87});
															thumbnails[5558422] = clik.newPhoto({"id":5558422,"src":"FLK_002_thumb.jpg","galleries_id":259024,"server_id":18,"link":"photo_5558422.html","width":130,"caption":"FLK_002","height":214});
															thumbnails[5558424] = clik.newPhoto({"id":5558424,"src":"FLK_003_thumb.jpg","galleries_id":259024,"server_id":18,"link":"photo_5558424.html","width":130,"caption":"FLK003","height":203});
															thumbnails[6397357] = clik.newPhoto({"id":6397357,"src":"TH10_003_thumb.jpg","galleries_id":353556,"server_id":18,"link":"photo_6397357.html","width":130,"caption":"TH10_003","height":187});
															thumbnails[6397358] = clik.newPhoto({"id":6397358,"src":"TH10_004_thumb.jpg","galleries_id":353556,"server_id":18,"link":"photo_6397358.html","width":130,"caption":"TH10_004","height":182});
															thumbnails[6397359] = clik.newPhoto({"id":6397359,"src":"TH10_005_thumb.jpg","galleries_id":353556,"server_id":18,"link":"photo_6397359.html","width":130,"caption":"TH10_005","height":89});
															thumbnails[6397361] = clik.newPhoto({"id":6397361,"src":"TH10_006_thumb.jpg","galleries_id":353556,"server_id":18,"link":"photo_6397361.html","width":130,"caption":"TH10_006","height":208});
															thumbnails[6397362] = clik.newPhoto({"id":6397362,"src":"TH10_007_thumb.jpg","galleries_id":353556,"server_id":18,"link":"photo_6397362.html","width":130,"caption":"TH10_007","height":209});
															thumbnails[6397363] = clik.newPhoto({"id":6397363,"src":"TH10_008_thumb.jpg","galleries_id":353556,"server_id":18,"link":"photo_6397363.html","width":130,"caption":"TH10_008","height":94});
															thumbnails[6397366] = clik.newPhoto({"id":6397366,"src":"TH10_009_thumb.jpg","galleries_id":353556,"server_id":18,"link":"photo_6397366.html","width":130,"caption":"TH10_009","height":194});
															thumbnails[6397368] = clik.newPhoto({"id":6397368,"src":"TH10_010_thumb.jpg","galleries_id":353556,"server_id":18,"link":"photo_6397368.html","width":130,"caption":"TH10_010","height":97});
															thumbnails[6397370] = clik.newPhoto({"id":6397370,"src":"TH10_011_thumb.jpg","galleries_id":353556,"server_id":18,"link":"photo_6397370.html","width":130,"caption":"TH10_011","height":201});
															thumbnails[6397372] = clik.newPhoto({"id":6397372,"src":"TH10_012_thumb.jpg","galleries_id":353556,"server_id":18,"link":"photo_6397372.html","width":130,"caption":"TH10_012","height":90});
															thumbnails[6397373] = clik.newPhoto({"id":6397373,"src":"TH10_013_thumb.jpg","galleries_id":353556,"server_id":18,"link":"photo_6397373.html","width":130,"caption":"TH10_013","height":192});
															thumbnails[6397376] = clik.newPhoto({"id":6397376,"src":"TH10_014_thumb.jpg","galleries_id":353556,"server_id":18,"link":"photo_6397376.html","width":130,"caption":"TH10_014","height":89});
															thumbnails[6397380] = clik.newPhoto({"id":6397380,"src":"TH10_015_thumb.jpg","galleries_id":353556,"server_id":18,"link":"photo_6397380.html","width":130,"caption":"TH10_015","height":201});
															thumbnails[6397382] = clik.newPhoto({"id":6397382,"src":"TH10_016_thumb.jpg","galleries_id":353556,"server_id":18,"link":"photo_6397382.html","width":130,"caption":"TH10_016","height":201});
															thumbnails[6397384] = clik.newPhoto({"id":6397384,"src":"TH10_017_thumb.jpg","galleries_id":353556,"server_id":18,"link":"photo_6397384.html","width":130,"caption":"TH10_017","height":191});
															thumbnails[6434061] = clik.newPhoto({"id":6434061,"src":"STA10_001_thumb.jpg","galleries_id":355114,"server_id":18,"link":"photo_6434061.html","width":130,"caption":"STA10_001","height":194});
															thumbnails[6434062] = clik.newPhoto({"id":6434062,"src":"STA10_002_thumb.jpg","galleries_id":355114,"server_id":18,"link":"photo_6434062.html","width":130,"caption":"STA10_002","height":194});
															thumbnails[6434063] = clik.newPhoto({"id":6434063,"src":"STA10_003_thumb.jpg","galleries_id":355114,"server_id":18,"link":"photo_6434063.html","width":130,"caption":"STA10_003","height":198});
															thumbnails[6434065] = clik.newPhoto({"id":6434065,"src":"STA10_004_thumb.jpg","galleries_id":355114,"server_id":18,"link":"photo_6434065.html","width":130,"caption":"STA10_004","height":209});
															thumbnails[6434066] = clik.newPhoto({"id":6434066,"src":"STA10_005_thumb.jpg","galleries_id":355114,"server_id":18,"link":"photo_6434066.html","width":130,"caption":"STA10_005","height":209});
															thumbnails[6434068] = clik.newPhoto({"id":6434068,"src":"STA10_006_thumb.jpg","galleries_id":355114,"server_id":18,"link":"photo_6434068.html","width":130,"caption":"STA10_006","height":212});
															thumbnails[6434070] = clik.newPhoto({"id":6434070,"src":"STA10_007_thumb.jpg","galleries_id":355114,"server_id":18,"link":"photo_6434070.html","width":130,"caption":"STA10_007","height":202});
															thumbnails[6434073] = clik.newPhoto({"id":6434073,"src":"STA10_008_thumb.jpg","galleries_id":355114,"server_id":18,"link":"photo_6434073.html","width":130,"caption":"STA10_008","height":201});
															thumbnails[6434074] = clik.newPhoto({"id":6434074,"src":"STA10_009_thumb.jpg","galleries_id":355114,"server_id":18,"link":"photo_6434074.html","width":130,"caption":"STA10_009","height":192});
															thumbnails[6434076] = clik.newPhoto({"id":6434076,"src":"STA10_010_thumb.jpg","galleries_id":355114,"server_id":18,"link":"photo_6434076.html","width":130,"caption":"STA10_010","height":188});
															thumbnails[6434082] = clik.newPhoto({"id":6434082,"src":"STA10_011_thumb.jpg","galleries_id":355114,"server_id":18,"link":"photo_6434082.html","width":130,"caption":"STA10_011","height":205});
															thumbnails[6434084] = clik.newPhoto({"id":6434084,"src":"STA10_012_thumb.jpg","galleries_id":355114,"server_id":18,"link":"photo_6434084.html","width":130,"caption":"STA10_012","height":204});
															thumbnails[6434086] = clik.newPhoto({"id":6434086,"src":"STA10_013_thumb.jpg","galleries_id":355114,"server_id":18,"link":"photo_6434086.html","width":130,"caption":"STA10_013","height":191});
															thumbnails[6434089] = clik.newPhoto({"id":6434089,"src":"STA10_014_thumb.jpg","galleries_id":355114,"server_id":18,"link":"photo_6434089.html","width":130,"caption":"STA10_014","height":198});
															thumbnails[6434092] = clik.newPhoto({"id":6434092,"src":"STA10_015_thumb.jpg","galleries_id":355114,"server_id":18,"link":"photo_6434092.html","width":130,"caption":"STA10_015","height":198});
															thumbnails[6434095] = clik.newPhoto({"id":6434095,"src":"STA10_016_thumb.jpg","galleries_id":355114,"server_id":18,"link":"photo_6434095.html","width":130,"caption":"STA10_016","height":202});
															thumbnails[6434097] = clik.newPhoto({"id":6434097,"src":"STA10_017_thumb.jpg","galleries_id":355114,"server_id":18,"link":"photo_6434097.html","width":130,"caption":"STA10_017","height":201});
															thumbnails[6434115] = clik.newPhoto({"id":6434115,"src":"STA10_018_thumb.jpg","galleries_id":355114,"server_id":18,"link":"photo_6434115.html","width":130,"caption":"STA10_018","height":212});
															thumbnails[6434118] = clik.newPhoto({"id":6434118,"src":"STA10_019_thumb.jpg","galleries_id":355114,"server_id":18,"link":"photo_6434118.html","width":130,"caption":"STA10_019","height":192});
															thumbnails[6434120] = clik.newPhoto({"id":6434120,"src":"STA10_020_thumb.jpg","galleries_id":355114,"server_id":18,"link":"photo_6434120.html","width":130,"caption":"STA10_020","height":207});
															thumbnails[6434123] = clik.newPhoto({"id":6434123,"src":"STA10_021_thumb.jpg","galleries_id":355114,"server_id":18,"link":"photo_6434123.html","width":130,"caption":"STA10_021","height":198});
															thumbnails[6434124] = clik.newPhoto({"id":6434124,"src":"STA10_022_thumb.jpg","galleries_id":355114,"server_id":18,"link":"photo_6434124.html","width":130,"caption":"STA_022","height":198});
															thumbnails[6434126] = clik.newPhoto({"id":6434126,"src":"STA10_023_thumb.jpg","galleries_id":355114,"server_id":18,"link":"photo_6434126.html","width":130,"caption":"STA10_023","height":100});
															thumbnails[6434127] = clik.newPhoto({"id":6434127,"src":"STA10_024_thumb.jpg","galleries_id":355114,"server_id":18,"link":"photo_6434127.html","width":130,"caption":"STA10_024","height":200});
															thumbnails[6434129] = clik.newPhoto({"id":6434129,"src":"STA10_025_thumb.jpg","galleries_id":355114,"server_id":18,"link":"photo_6434129.html","width":130,"caption":"STA10_025","height":193});
															thumbnails[6434616] = clik.newPhoto({"id":6434616,"src":"LEH10_001_thumb.jpg","galleries_id":355135,"server_id":18,"link":"photo_6434616.html","width":130,"caption":"LEH10_001","height":184});
															thumbnails[6434617] = clik.newPhoto({"id":6434617,"src":"LEH10_002_thumb.jpg","galleries_id":355135,"server_id":18,"link":"photo_6434617.html","width":130,"caption":"LEH10_002","height":202});
															thumbnails[6434619] = clik.newPhoto({"id":6434619,"src":"LEH10_003_thumb.jpg","galleries_id":355135,"server_id":18,"link":"photo_6434619.html","width":130,"caption":"LEH10_003","height":202});
															thumbnails[6434620] = clik.newPhoto({"id":6434620,"src":"LEH10_004_thumb.jpg","galleries_id":355135,"server_id":18,"link":"photo_6434620.html","width":130,"caption":"LEH10_004","height":186});
															thumbnails[6434622] = clik.newPhoto({"id":6434622,"src":"LEH10_005_thumb.jpg","galleries_id":355135,"server_id":18,"link":"photo_6434622.html","width":130,"caption":"LEH10_005","height":85});
															thumbnails[6434623] = clik.newPhoto({"id":6434623,"src":"LEH10_006_thumb.jpg","galleries_id":355135,"server_id":18,"link":"photo_6434623.html","width":130,"caption":"LEH10_006","height":198});
															thumbnails[6434624] = clik.newPhoto({"id":6434624,"src":"LEH10_007_thumb.jpg","galleries_id":355135,"server_id":18,"link":"photo_6434624.html","width":130,"caption":"LEH10_007","height":194});
															thumbnails[6434625] = clik.newPhoto({"id":6434625,"src":"LEH10_008_thumb.jpg","galleries_id":355135,"server_id":18,"link":"photo_6434625.html","width":130,"caption":"LEH10_008","height":194});
															thumbnails[6434626] = clik.newPhoto({"id":6434626,"src":"LEH10_009_thumb.jpg","galleries_id":355135,"server_id":18,"link":"photo_6434626.html","width":130,"caption":"LEH10_009","height":194});
															thumbnails[6434628] = clik.newPhoto({"id":6434628,"src":"LEH10_010_thumb.jpg","galleries_id":355135,"server_id":18,"link":"photo_6434628.html","width":130,"caption":"LEH10_010","height":206});
															thumbnails[6434629] = clik.newPhoto({"id":6434629,"src":"LEH10_011_thumb.jpg","galleries_id":355135,"server_id":18,"link":"photo_6434629.html","width":130,"caption":"LEH10_011","height":186});
															thumbnails[6434631] = clik.newPhoto({"id":6434631,"src":"LEH10_012_thumb.jpg","galleries_id":355135,"server_id":18,"link":"photo_6434631.html","width":130,"caption":"LEH10_012","height":96});
															thumbnails[6434632] = clik.newPhoto({"id":6434632,"src":"LEH10_013_thumb.jpg","galleries_id":355135,"server_id":18,"link":"photo_6434632.html","width":130,"caption":"LEH10_013","height":196});
															thumbnails[6434633] = clik.newPhoto({"id":6434633,"src":"LEH10_014_thumb.jpg","galleries_id":355135,"server_id":18,"link":"photo_6434633.html","width":130,"caption":"LEH10_014","height":205});
															thumbnails[6434636] = clik.newPhoto({"id":6434636,"src":"LEH10_015_thumb.jpg","galleries_id":355135,"server_id":18,"link":"photo_6434636.html","width":130,"caption":"LEH10_015","height":202});
															thumbnails[6434637] = clik.newPhoto({"id":6434637,"src":"LEH10_016_thumb.jpg","galleries_id":355135,"server_id":18,"link":"photo_6434637.html","width":130,"caption":"LEH10_016","height":196});
															thumbnails[6434639] = clik.newPhoto({"id":6434639,"src":"LEH10_017_thumb.jpg","galleries_id":355135,"server_id":18,"link":"photo_6434639.html","width":130,"caption":"LEH10_017","height":186});
															thumbnails[6434641] = clik.newPhoto({"id":6434641,"src":"LEH10_018_thumb.jpg","galleries_id":355135,"server_id":18,"link":"photo_6434641.html","width":130,"caption":"LEH10_018","height":198});
															thumbnails[6434643] = clik.newPhoto({"id":6434643,"src":"LEH10_019_thumb.jpg","galleries_id":355135,"server_id":18,"link":"photo_6434643.html","width":130,"caption":"LEH10_019","height":198});
															thumbnails[6434644] = clik.newPhoto({"id":6434644,"src":"LEH10_020_thumb.jpg","galleries_id":355135,"server_id":18,"link":"photo_6434644.html","width":130,"caption":"LEH10_020","height":199});
															thumbnails[6434645] = clik.newPhoto({"id":6434645,"src":"LEH10_021_thumb.jpg","galleries_id":355135,"server_id":18,"link":"photo_6434645.html","width":130,"caption":"LEH10_021","height":213});
															thumbnails[6434647] = clik.newPhoto({"id":6434647,"src":"LEH10_022_thumb.jpg","galleries_id":355135,"server_id":18,"link":"photo_6434647.html","width":130,"caption":"LEH10_022","height":194});
															thumbnails[6434649] = clik.newPhoto({"id":6434649,"src":"LEH10_023_thumb.jpg","galleries_id":355135,"server_id":18,"link":"photo_6434649.html","width":130,"caption":"LEH10_023","height":195});
															thumbnails[6434650] = clik.newPhoto({"id":6434650,"src":"LEH10_024_thumb.jpg","galleries_id":355135,"server_id":18,"link":"photo_6434650.html","width":130,"caption":"LEH10_024","height":194});
															thumbnails[6434652] = clik.newPhoto({"id":6434652,"src":"LEH10_025_thumb.jpg","galleries_id":355135,"server_id":18,"link":"photo_6434652.html","width":130,"caption":"LEH10_025","height":192});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[259024] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"ARCHIVE (Flickr)","link":"gallery_259024.html","maxRecords":0.0,"photoIDs":[4424755.0,5558422.0,5558424.0],"skipIndex":0,"section_code":"gallery","featured_images":4424755.0,"id":259024,"singleSection":false});				  						galleries[241069] = clik.newGallery({"parentGallery":44649,"usePopups":false,"title":"Blackford 2009","link":"gallery_241069.html","maxRecords":0.0,"photoIDs":[3984636.0,3984645.0,3984646.0,3984655.0,3984657.0,3984676.0,3984679.0,3984725.0,3984735.0,3984736.0,3984737.0,3984743.0,3984745.0,3984747.0,3984750.0,3984751.0,4224960.0,4224968.0],"skipIndex":0,"section_code":"gallery","featured_images":4224960.0,"id":241069,"singleSection":false});				  						galleries[239477] = clik.newGallery({"parentGallery":44649,"usePopups":false,"title":"Blair Atholl 2009","link":"gallery_239477.html","maxRecords":0.0,"photoIDs":[3952490.0,3952499.0,3952502.0,3952506.0,3952507.0,3952512.0,3952517.0,3952521.0,3952523.0,3952524.0,3952526.0,3952528.0,3952529.0,3952530.0,3952531.0,3952532.0],"skipIndex":0,"section_code":"gallery","featured_images":"3952532,3952531,3952530,3952529,3952528,3952526,3952524,3952523,3952521,3952517","id":239477,"singleSection":false});				  						galleries[259704] = clik.newGallery({"parentGallery":44649,"usePopups":false,"title":"Bridge of Allan 2009","link":"gallery_259704.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":259704,"singleSection":false});				  						galleries[44649] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Highland Games","link":"gallery_44649.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"4225128,4225108,4225090,4225080,4225060,4224960,4043589,4043524","id":44649,"singleSection":false});				  						galleries[250578] = clik.newGallery({"parentGallery":44649,"usePopups":false,"title":"Kenmore 2009","link":"gallery_250578.html","maxRecords":0.0,"photoIDs":[4225032.0,4225040.0,4225043.0,4225048.0,4225056.0,4225060.0,4225063.0,4225066.0,4225076.0,4225080.0,4225083.0,4225087.0,4225090.0,4225096.0,4225100.0,4225108.0,4225113.0,4225117.0,4225120.0,4225123.0,4225128.0,4225131.0,4225136.0,4225139.0,4225142.0],"skipIndex":0,"section_code":"gallery","featured_images":"4225128,4225108,4225090,4225080,4225060","id":250578,"singleSection":false});				  						galleries[355135] = clik.newGallery({"parentGallery":44649,"usePopups":false,"title":"Lochearnhead Games 2010","link":"gallery_355135.html","maxRecords":0.0,"photoIDs":[6434616.0,6434617.0,6434619.0,6434620.0,6434622.0,6434623.0,6434624.0,6434625.0,6434626.0,6434628.0,6434629.0,6434631.0,6434632.0,6434633.0,6434636.0,6434637.0,6434639.0,6434641.0,6434643.0,6434644.0,6434645.0,6434647.0,6434649.0,6434650.0,6434652.0],"skipIndex":0,"section_code":"gallery","featured_images":"6434652,6434650,6434649,6434647,6434645,6434644,6434643,6434641,6434639,6434637","id":355135,"singleSection":false});				  						galleries[243553] = clik.newGallery({"parentGallery":44649,"usePopups":false,"title":"Markinch Games 2009","link":"gallery_243553.html","maxRecords":0.0,"photoIDs":[4043517.0,4043524.0,4043528.0,4043530.0,4043534.0,4043536.0,4043554.0,4043575.0,4043579.0,4043584.0,4043589.0,4043592.0,4043616.0,4043620.0,4043623.0,4044477.0],"skipIndex":0,"section_code":"gallery","featured_images":"4043589,4043524","id":243553,"singleSection":false});				  						galleries[261275] = clik.newGallery({"parentGallery":44649,"usePopups":false,"title":"Perth 2009","link":"gallery_261275.html","maxRecords":0.0,"photoIDs":[4480197.0,4480202.0,4480205.0,4480214.0,4480219.0,4480222.0,4480226.0,4480227.0,4480240.0,4480241.0,4480244.0,4480246.0,4480288.0,4480366.0,4480367.0,4480368.0,4480391.0,4480398.0,4480400.0,4480403.0,4480405.0],"skipIndex":0,"section_code":"gallery","featured_images":"4480405,4480403,4480400,4480398,4480391,4480368,4480367,4480366,4480288,4480246","id":261275,"singleSection":false});				  						galleries[270942] = clik.newGallery({"parentGallery":44649,"usePopups":false,"title":"Pitlochry 2009","link":"gallery_270942.html","maxRecords":0.0,"photoIDs":[4714578.0,4714579.0,4714621.0,4714624.0,4714626.0,4730686.0,4730701.0,4730704.0,4730708.0,4813520.0,4813522.0,4813525.0,4813557.0,4813559.0,4813561.0,4813563.0,4813565.0,4855059.0,4855061.0,4855062.0,4861399.0,4866280.0,4866284.0,4866286.0,4866288.0,4866291.0,4866294.0],"skipIndex":0,"section_code":"gallery","featured_images":"4866294,4866291,4866288,4866286,4866284,4866280,4861399,4855062,4855061,4855059","id":270942,"singleSection":false});				  						galleries[355114] = clik.newGallery({"parentGallery":44649,"usePopups":false,"title":"St Andrews Games 2010","link":"gallery_355114.html","maxRecords":0.0,"photoIDs":[6434061.0,6434062.0,6434063.0,6434065.0,6434066.0,6434068.0,6434070.0,6434073.0,6434074.0,6434076.0,6434082.0,6434084.0,6434086.0,6434089.0,6434092.0,6434095.0,6434097.0,6434115.0,6434118.0,6434120.0,6434123.0,6434124.0,6434126.0,6434127.0,6434129.0],"skipIndex":0,"section_code":"gallery","featured_images":"6434129,6434127,6434126,6434124,6434123,6434120,6434118,6434115,6434097,6434095","id":355114,"singleSection":false});				  						galleries[353556] = clik.newGallery({"parentGallery":44649,"usePopups":false,"title":"Thornton 2010","link":"gallery_353556.html","maxRecords":0.0,"photoIDs":[6397357.0,6397358.0,6397359.0,6397361.0,6397362.0,6397363.0,6397366.0,6397368.0,6397370.0,6397372.0,6397373.0,6397376.0,6397380.0,6397382.0,6397384.0],"skipIndex":0,"section_code":"gallery","featured_images":"6397384,6397382,6397380,6397376,6397373,6397372,6397370,6397368,6397366,6397363","id":353556,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '6434652,6434650,6434649,6434647,6434645,6434644,6434643,6434641,6434639,6434637,6434636,6434633,6434632,6434631,6434629,6434628,6434626,6434625,6434624,6434623,6434622,6434620,6434619,6434617,6434616,6434129,6434127,6434126,6434124,6434123,6434120,6434118,6434115,6434097,6434095,6434092,6434089,6434086,6434084,6434082,6434076,6434074,6434073,6434070,6434068,6434066,6434065,6434063,6434062,6434061';
imageSets[2] = '4424755,4225128,4225108,4225090,4225080,4225060,4224960,4043589,4043524';
imageSets[3] = '4424755';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/johnmullin/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/johnmullin/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/johnmullin/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/johnmullin/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/johnmullin/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/johnmullin/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/johnmullin/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/johnmullin/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/johnmullin/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/johnmullin/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/johnmullin/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/johnmullin/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/johnmullin/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/johnmullin/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/johnmullin/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/johnmullin/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/johnmullin/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/johnmullin/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/johnmullin/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/johnmullin/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/johnmullin/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/johnmullin/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/johnmullin/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/johnmullin/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/johnmullin/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = backgrounds && backgrounds[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'John Mullin 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>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
		 									temp += '<select class="paymentlink" name="payment_options_id" onchange="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
											temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="JOHNMULLIN">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			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;
	}
}

			

