window.thumbnails = {};
															thumbnails[5241334] = clik.newPhoto({"id":5241334,"src":"Scotland_Holiday_2009_021_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":98});
															thumbnails[6035406] = clik.newPhoto({"id":6035406,"src":"Cup_Final_26-5-10_4563_thumb.JPG","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Cup Final 26-5-10","height":87});
															thumbnails[6055223] = clik.newPhoto({"id":6055223,"src":"IMG_0015_4807_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Beeslack League Winners Season 2009-2010","height":87});
															thumbnails[6055257] = clik.newPhoto({"id":6055257,"src":"Team_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Ayr 2010","height":73});
															thumbnails[6055259] = clik.newPhoto({"id":6055259,"src":"Cup_Final_9-4-10_2454_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Beeslack Cup Winners","height":94});
															thumbnails[6055278] = clik.newPhoto({"id":6055278,"src":"IMG_0027_4819_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":87});
															thumbnails[6055522] = clik.newPhoto({"id":6055522,"src":"Cup_Final_26-5-10_4498_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":87});
															thumbnails[6055524] = clik.newPhoto({"id":6055524,"src":"Cup_Final_26-5-10_4535_E998A232-1D09-001F-9946F698D52AD9EE_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":87});
															thumbnails[6055526] = clik.newPhoto({"id":6055526,"src":"Cup_Final_26-5-10_4579_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":195});
															thumbnails[6055527] = clik.newPhoto({"id":6055527,"src":"Cup_Final_26-5-10_4582_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":87});
															thumbnails[6109215] = clik.newPhoto({"id":6109215,"src":"Team_Pic_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":90});
															thumbnails[4643001] = clik.newPhoto({"id":4643001,"src":"Capability_2008_with_strapline_black1_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Capability 2008 with strapline black","height":117});
															thumbnails[7183654] = clik.newPhoto({"id":7183654,"src":"1508_Edinburgh_Castle_Winter_880_x_297_thumb.jpg","galleries_id":264614,"server_id":18,"link":"photo_7183654.html","width":130,"caption":"C1508 Edinburgh Castle Winter ","height":44});
															thumbnails[7164600] = clik.newPhoto({"id":7164600,"src":"1506_Penicuik_House_Stables_880_x_297_thumb.jpg","galleries_id":264632,"server_id":18,"link":"photo_7164600.html","width":130,"caption":"1506 Penicuik House Stables 880 x 297","height":44});
															thumbnails[7623023] = clik.newPhoto({"id":7623023,"src":"Commando_Memorial_Sepia_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_7623023.html","width":130,"caption":"1050 Commando Memorial Sepia","height":44});
															thumbnails[4326861] = clik.newPhoto({"id":4326861,"src":"1001_Gladhouse_Reservoir_1200_x_297_thumb.jpg","galleries_id":264631,"server_id":18,"link":"photo_4326861.html","width":130,"caption":"1001 Gladhouse Reservoir 1200 x 297","height":32});
															thumbnails[4326865] = clik.newPhoto({"id":4326865,"src":"1024_The_Shore_3_1200_x_297_thumb.jpg","galleries_id":264645,"server_id":18,"link":"photo_4326865.html","width":130,"caption":"1024 The Shore 3 1200 x 297","height":32});
															thumbnails[4326874] = clik.newPhoto({"id":4326874,"src":"1084_Glencorse_Reservoir_880_x_297_thumb.jpg","galleries_id":264632,"server_id":18,"link":"photo_4326874.html","width":130,"caption":"1084 Glencorse Reservoir 880 x 297","height":44});
															thumbnails[4326877] = clik.newPhoto({"id":4326877,"src":"1141_Edinburgh_from_Braids_1200_x_297_thumb.jpg","galleries_id":264645,"server_id":18,"link":"photo_4326877.html","width":130,"caption":"1141 Edinburgh from Braids 1200 x 297","height":32});
															thumbnails[4326943] = clik.newPhoto({"id":4326943,"src":"1165_18th_St_Andrews_2_880_x_297_thumb.jpg","galleries_id":264648,"server_id":18,"link":"photo_4326943.html","width":130,"caption":"1165 18th St Andrews 2 880 x 297","height":44});
															thumbnails[4328075] = clik.newPhoto({"id":4328075,"src":"1186_Dirleton_Castle_880_x_297_thumb.jpg","galleries_id":264644,"server_id":18,"link":"photo_4328075.html","width":130,"caption":"1186 Dirleton Castle 880x297","height":44});
															thumbnails[4328078] = clik.newPhoto({"id":4328078,"src":"1193_Seton_Collegiate_Church_880_x_297_thumb.jpg","galleries_id":264644,"server_id":18,"link":"photo_4328078.html","width":130,"caption":"1193 Seton Collegiate Church 880x297","height":44});
															thumbnails[4328104] = clik.newPhoto({"id":4328104,"src":"1210_Glenarm_Harbour_880_x_297_thumb.jpg","galleries_id":264655,"server_id":18,"link":"photo_4328104.html","width":130,"caption":"1210 Glenarm Harbour 880x297","height":44});
															thumbnails[4328106] = clik.newPhoto({"id":4328106,"src":"1212_Forth_Bridge__North_Queensferry_880_x_297_thumb.jpg","galleries_id":264647,"server_id":18,"link":"photo_4328106.html","width":130,"caption":"1212 Forth Bridge North Queensferry 880x297","height":44});
															thumbnails[4328107] = clik.newPhoto({"id":4328107,"src":"1215_Tolquhan_Castle_1200_x_297_thumb.jpg","galleries_id":264686,"server_id":18,"link":"photo_4328107.html","width":130,"caption":"1215 Tolquhan Castle 1200 x 297","height":32});
															thumbnails[4328108] = clik.newPhoto({"id":4328108,"src":"1219_Borthwick_castle_3_880_x_297_thumb.jpg","galleries_id":264632,"server_id":18,"link":"photo_4328108.html","width":130,"caption":"1219 Borthwick castle 3 880 x 297","height":44});
															thumbnails[4328112] = clik.newPhoto({"id":4328112,"src":"1236_Forth_Road_Bridge_2_Blue_880_x_297_thumb.jpg","galleries_id":264647,"server_id":18,"link":"photo_4328112.html","width":130,"caption":"1236 Forth Road Bridge 2 Blue 880 x 297","height":44});
															thumbnails[4328116] = clik.newPhoto({"id":4328116,"src":"1241_Princes_Street_at_Night_1200_x_297_thumb.jpg","galleries_id":264645,"server_id":18,"link":"photo_4328116.html","width":130,"caption":"1241 Princes Street at Night 1200x297","height":32});
															thumbnails[4328119] = clik.newPhoto({"id":4328119,"src":"1242_Rosslyn_Castle_880_x_297_thumb.jpg","galleries_id":264632,"server_id":18,"link":"photo_4328119.html","width":130,"caption":"1242 Rosslyn Castle 880 x 297","height":44});
															thumbnails[4328120] = clik.newPhoto({"id":4328120,"src":"1243_Craignethan_Castle_880_x_297_thumb.jpg","galleries_id":264652,"server_id":18,"link":"photo_4328120.html","width":130,"caption":"1243 Craignethan Castle 880 x 297","height":44});
															thumbnails[4328123] = clik.newPhoto({"id":4328123,"src":"1258_Edinburgh_from_Inverleith_Park_880_x_297_thumb.jpg","galleries_id":264647,"server_id":18,"link":"photo_4328123.html","width":130,"caption":"1258 Edinburgh from Inverleith Park 880 x 297","height":44});
															thumbnails[4328126] = clik.newPhoto({"id":4328126,"src":"1263_Tantallon_Castle_Blue_tint_880_x_297_thumb.jpg","galleries_id":264644,"server_id":18,"link":"photo_4328126.html","width":130,"caption":"1263 Tantallon Castle Blue tint 880x297","height":44});
															thumbnails[4328127] = clik.newPhoto({"id":4328127,"src":"1264_Lanark_Loch_880_x_297_thumb.jpg","galleries_id":264652,"server_id":18,"link":"photo_4328127.html","width":130,"caption":"1264 Lanark Loch 880 x 297","height":44});
															thumbnails[4349713] = clik.newPhoto({"id":4349713,"src":"1066_Ardvreck_Castle_1200_x_297_thumb.jpg","galleries_id":264650,"server_id":18,"link":"photo_4349713.html","width":130,"caption":"1066 Ardvreck Castle 1200 x 297","height":32});
															thumbnails[5090651] = clik.newPhoto({"id":5090651,"src":"1019_Port_Seton_Harbour_880_x_297_thumb.jpg","galleries_id":264644,"server_id":18,"link":"photo_5090651.html","width":130,"caption":"1019 Port Seton Harbour 2 880 x 297","height":44});
															thumbnails[5091036] = clik.newPhoto({"id":5091036,"src":"1487_Scone_Palace_from_the_Air_880_x_29712_thumb.jpg","galleries_id":264656,"server_id":18,"link":"photo_5091036.html","width":130,"caption":"1487 Scone Palace 880 x 297","height":44});
															thumbnails[5096951] = clik.newPhoto({"id":5096951,"src":"1488_Traprain_Law_880_x_297_thumb.jpg","galleries_id":264644,"server_id":18,"link":"photo_5096951.html","width":130,"caption":"1488 Traprain Law 880 x 297","height":44});
															thumbnails[5276103] = clik.newPhoto({"id":5276103,"src":"Loch_Carron_4ft12_thumb.jpg","galleries_id":264614,"server_id":18,"link":"photo_5276103.html","width":130,"caption":"C1431 Loch Carron Canvas","height":49});
															thumbnails[5276109] = clik.newPhoto({"id":5276109,"src":"Port_Seton_Harbour1_thumb.jpg","galleries_id":264614,"server_id":18,"link":"photo_5276109.html","width":130,"caption":"C1019 Port Seton Harbour Canvas","height":49});
															thumbnails[5276139] = clik.newPhoto({"id":5276139,"src":"Ullapool1_thumb.jpg","galleries_id":264614,"server_id":18,"link":"photo_5276139.html","width":130,"caption":"C1450 Ullapool Harbour Canvas","height":49});
															thumbnails[7183839] = clik.newPhoto({"id":7183839,"src":"1507_Edinburgh_Castle_Winter_880_x_297_thumb.jpg","galleries_id":264647,"server_id":18,"link":"photo_7183839.html","width":130,"caption":"1507 Edinburgh Castle Winter 880 x 297","height":44});
															thumbnails[4562791] = clik.newPhoto({"id":4562791,"src":"5001_Heart_of_Midlothian_Canvas12_thumb.jpg","galleries_id":264614,"server_id":18,"link":"photo_4562791.html","width":130,"caption":"5001 Heart of Midlothian Canvas","height":43});
															thumbnails[4326869] = clik.newPhoto({"id":4326869,"src":"1060_Dean_Bridge_880_x_297_thumb.jpg","galleries_id":264647,"server_id":18,"link":"photo_4326869.html","width":130,"caption":"1060 Dean Bridge 880 x 297","height":44});
															thumbnails[4326871] = clik.newPhoto({"id":4326871,"src":"1078_Skye_Bridge_Lighthouse_Dusk_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4326871.html","width":130,"caption":"1078 Skye Bridge Lighthouse Dusk 880 x 297","height":44});
															thumbnails[4350483] = clik.newPhoto({"id":4350483,"src":"1270_Threave_Castle_880_x_297_thumb.jpg","galleries_id":264642,"server_id":18,"link":"photo_4350483.html","width":130,"caption":"1270 Threave Castle 880 x 297","height":44});
															thumbnails[4358874] = clik.newPhoto({"id":4358874,"src":"1417_Culross_2_880_x_297_thumb.jpg","galleries_id":264648,"server_id":18,"link":"photo_4358874.html","width":130,"caption":"1417 Culross 2 880 x 297","height":44});
															thumbnails[4358880] = clik.newPhoto({"id":4358880,"src":"1405_Edzell_Castle_880_x_2971_thumb.jpg","galleries_id":264633,"server_id":18,"link":"photo_4358880.html","width":130,"caption":"1405 Edzell Castle 880 x 297","height":44});
															thumbnails[4366385] = clik.newPhoto({"id":4366385,"src":"1411_Broughty_Castle_1_880_x_2971_thumb.jpg","galleries_id":264633,"server_id":18,"link":"photo_4366385.html","width":130,"caption":"1411 Broughty Castle 1 880 x 297","height":44});
															thumbnails[4366398] = clik.newPhoto({"id":4366398,"src":"1400_Brodie_Castle_HDR_880_x_2971_thumb.jpg","galleries_id":264653,"server_id":18,"link":"photo_4366398.html","width":130,"caption":"1400 Brodie Castle HDR 880 x 297","height":44});
															thumbnails[4366451] = clik.newPhoto({"id":4366451,"src":"1390_Spynie_Palace_3_HDR_880_x_297_thumb.jpg","galleries_id":264653,"server_id":18,"link":"photo_4366451.html","width":130,"caption":"1390 Spynie Palace 3 HDR 880 x 297","height":44});
															thumbnails[4366519] = clik.newPhoto({"id":4366519,"src":"1380_Balvenie_Castle_4_HDR_880_x_2971_thumb.jpg","galleries_id":264653,"server_id":18,"link":"photo_4366519.html","width":130,"caption":"1380 Balvenie Castle 4 HDR 880 x 297","height":44});
															thumbnails[4367573] = clik.newPhoto({"id":4367573,"src":"1378_Balvenie_Castle_2_HDR_880_x_297_thumb.jpg","galleries_id":264653,"server_id":18,"link":"photo_4367573.html","width":130,"caption":"1378 Balvenie Castle 2 HDR 880 x 297","height":44});
															thumbnails[4367744] = clik.newPhoto({"id":4367744,"src":"1351_Castle_Stuart_HDR_Blue_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4367744.html","width":130,"caption":"1351 Castle Stuart HDR Blue 880 x 297","height":44});
															thumbnails[4373215] = clik.newPhoto({"id":4373215,"src":"1320_Duddingston_Golf_Course_10_880_x_297_HDR_thumb.jpg","galleries_id":264647,"server_id":18,"link":"photo_4373215.html","width":130,"caption":"1320 Duddingston Golf Course 10 880 x 297 HDR","height":44});
															thumbnails[4373226] = clik.newPhoto({"id":4373226,"src":"1319_Duddingston_Golf_Course_880_x_297_HDR_thumb.jpg","galleries_id":264647,"server_id":18,"link":"photo_4373226.html","width":130,"caption":"1319 Duddingston Golf Course 880 x 297 HDR","height":44});
															thumbnails[4373278] = clik.newPhoto({"id":4373278,"src":"1311_Balvaird_castle_HDR_880_x_297_thumb.jpg","galleries_id":264656,"server_id":18,"link":"photo_4373278.html","width":130,"caption":"1311 Balvaird castle HDR 880 x 297","height":44});
															thumbnails[4374716] = clik.newPhoto({"id":4374716,"src":"1287_Dollar_Glen_from_Castle_Campbell_HDR_880_x_2971_thumb.jpg","galleries_id":264641,"server_id":18,"link":"photo_4374716.html","width":130,"caption":"1287 Dollar Glen  Castle Campbell ","height":44});
															thumbnails[4375607] = clik.newPhoto({"id":4375607,"src":"1281_Lennoxlove_House_HDR__880_x_2971_thumb.jpg","galleries_id":264644,"server_id":18,"link":"photo_4375607.html","width":130,"caption":"1281 Lennoxlove House HDR  880 x 297","height":44});
															thumbnails[4378207] = clik.newPhoto({"id":4378207,"src":"1266_Morton_Castle_Castle_880_x_297_thumb.jpg","galleries_id":264642,"server_id":18,"link":"photo_4378207.html","width":130,"caption":"1266 Morton Castle Castle 880 x 297","height":44});
															thumbnails[4378989] = clik.newPhoto({"id":4378989,"src":"1180_Smailholm_Tower_297_x_880_thumb.jpg","galleries_id":264660,"server_id":18,"link":"photo_4378989.html","width":130,"caption":"1180 Smailholm Tower 297 x 880","height":385});
															thumbnails[4379042] = clik.newPhoto({"id":4379042,"src":"1034_Ring_of_Brogar_297_x_880_thumb.jpg","galleries_id":264660,"server_id":18,"link":"photo_4379042.html","width":130,"caption":"1034 Ring of Brodgar 297 x 880","height":385});
															thumbnails[4379045] = clik.newPhoto({"id":4379045,"src":"Skye_Lighthouse_Panorama_3_thumb.jpg","galleries_id":264661,"server_id":18,"link":"photo_4379045.html","width":130,"caption":"1035 Skye Bridge Lighthouse 297 x 1200","height":525});
															thumbnails[4381454] = clik.newPhoto({"id":4381454,"src":"1036_Loch_Creran_880_x_297_thumb.jpg","galleries_id":264637,"server_id":18,"link":"photo_4381454.html","width":130,"caption":"1036 Loch Creran 880 x 297","height":42});
															thumbnails[4381625] = clik.newPhoto({"id":4381625,"src":"1081_Abbotsford_House_panorama_thumb.jpg","galleries_id":264639,"server_id":18,"link":"photo_4381625.html","width":130,"caption":"1081 Abbotsford House panorama","height":44});
															thumbnails[4381665] = clik.newPhoto({"id":4381665,"src":"1419_Dunfermline_Abbey_1_880_x_297_thumb.jpg","galleries_id":264648,"server_id":18,"link":"photo_4381665.html","width":130,"caption":"1419 Dunfermline Abbey 1 880 x 297","height":44});
															thumbnails[4381692] = clik.newPhoto({"id":4381692,"src":"1064_Little_gruinard_Beach_View_Panorama_thumb.jpg","galleries_id":264650,"server_id":18,"link":"photo_4381692.html","width":130,"caption":"1064 Little gruinard Beach View Panorama","height":32});
															thumbnails[4381769] = clik.newPhoto({"id":4381769,"src":"1090_North_Berwick_from_Law_6_sepia_1200_x_297_thumb.jpg","galleries_id":264643,"server_id":18,"link":"photo_4381769.html","width":130,"caption":"1090 North Berwick from Law 6 sepia 1200 x 297","height":32});
															thumbnails[4381862] = clik.newPhoto({"id":4381862,"src":"1013_Inverleith_Park_from_the_North_1200_x_29712_thumb.jpg","galleries_id":264645,"server_id":18,"link":"photo_4381862.html","width":130,"caption":"1013 Inverleith Park from the North 1200 x 297","height":32});
															thumbnails[4381869] = clik.newPhoto({"id":4381869,"src":"1014_Inverleith_Pond_from_the_South_1200_x_297_thumb.jpg","galleries_id":264645,"server_id":18,"link":"photo_4381869.html","width":130,"caption":"1014 Inverleith Pond from the South 1200 x 297","height":32});
															thumbnails[4384784] = clik.newPhoto({"id":4384784,"src":"1105_Carrickfergus_Castle_1200_x_297_thumb.jpg","galleries_id":264654,"server_id":18,"link":"photo_4384784.html","width":130,"caption":"1105 Carrickfergus Castle 1200 x 297","height":32});
															thumbnails[4384889] = clik.newPhoto({"id":4384889,"src":"1265_Caerlaverock_Castle_880_x_297_thumb.jpg","galleries_id":264642,"server_id":18,"link":"photo_4384889.html","width":130,"caption":"1265 Caerlaverock Castle 880 x 297","height":44});
															thumbnails[4384926] = clik.newPhoto({"id":4384926,"src":"1293_Huntingtower_Castle_HDR_880_x_297_thumb.jpg","galleries_id":264656,"server_id":18,"link":"photo_4384926.html","width":130,"caption":"1293 Huntingtower Castle HDR 880 x 297","height":44});
															thumbnails[4384949] = clik.newPhoto({"id":4384949,"src":"1228_Old_Stirling_Bridge_2_880_x_297_thumb.jpg","galleries_id":264657,"server_id":18,"link":"photo_4384949.html","width":130,"caption":"1228 Old Stirling Bridge 2 880 x 297","height":44});
															thumbnails[4384966] = clik.newPhoto({"id":4384966,"src":"1229_Great_Hall_Stirling_Castle_880_x_297_thumb.jpg","galleries_id":264657,"server_id":18,"link":"photo_4384966.html","width":130,"caption":"1229 Great Hall Stirling Castle 880 x 297","height":44});
															thumbnails[4384983] = clik.newPhoto({"id":4384983,"src":"1198_Hailes_Castle_3_880_x_2971_thumb.jpg","galleries_id":264644,"server_id":18,"link":"photo_4384983.html","width":130,"caption":"1198 Hailes Castle 3 880 x 297","height":44});
															thumbnails[4385038] = clik.newPhoto({"id":4385038,"src":"1176_Niddrie_Castle_880_x_297_thumb.jpg","galleries_id":264659,"server_id":18,"link":"photo_4385038.html","width":130,"caption":"1176 Niddry Castle 880 x 297","height":44});
															thumbnails[4385067] = clik.newPhoto({"id":4385067,"src":"1053_Dunrobin_Castle_Gardens_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4385067.html","width":130,"caption":"1053 Dunrobin Castle Gardens 880 x 297","height":44});
															thumbnails[4385100] = clik.newPhoto({"id":4385100,"src":"1088_Edinburgh_Castle_at_Night_colour_thumb.jpg","galleries_id":264645,"server_id":18,"link":"photo_4385100.html","width":130,"caption":"1088 Edinburgh Castle at Night colour","height":32});
															thumbnails[4385245] = clik.newPhoto({"id":4385245,"src":"1043_Ardmaddy_Castle_Gardens_880_x_297_thumb.jpg","galleries_id":264637,"server_id":18,"link":"photo_4385245.html","width":130,"caption":"1043 Ardmaddy Castle Gardens 880 x 297","height":44});
															thumbnails[4385328] = clik.newPhoto({"id":4385328,"src":"1044_Atlantic_Bridge_Panorama_1200_x_297_thumb.jpg","galleries_id":264634,"server_id":18,"link":"photo_4385328.html","width":130,"caption":"1044 Atlantic Bridge Panorama 1200 x 297","height":32});
															thumbnails[4385419] = clik.newPhoto({"id":4385419,"src":"1045_Ballachulish_Bridge_1200_x_297_thumb.jpg","galleries_id":264650,"server_id":18,"link":"photo_4385419.html","width":130,"caption":"1045 Ballachulish Bridge 1200 x 297","height":32});
															thumbnails[4400425] = clik.newPhoto({"id":4400425,"src":"1006_Forth_Bridges_sepia_1200_x_297_thumb.jpg","galleries_id":264645,"server_id":18,"link":"photo_4400425.html","width":130,"caption":"1006 Forth Bridges sepia 1200 x 297","height":32});
															thumbnails[4413110] = clik.newPhoto({"id":4413110,"src":"1184_Lauriston_Castle_1_880_x_2971_thumb.jpg","galleries_id":264647,"server_id":18,"link":"photo_4413110.html","width":130,"caption":"1184 Lauriston Castle 1 880 x 297","height":44});
															thumbnails[4413115] = clik.newPhoto({"id":4413115,"src":"1183_Forth_Bridge_Blue_Sky_880_x_297_thumb.jpg","galleries_id":264647,"server_id":18,"link":"photo_4413115.html","width":130,"caption":"1183 Forth Bridge Blue Sky 880 x 297","height":44});
															thumbnails[4413177] = clik.newPhoto({"id":4413177,"src":"1238_Kellie_Castle_880_x_2971_thumb.jpg","galleries_id":264648,"server_id":18,"link":"photo_4413177.html","width":130,"caption":"1238 Kellie Castle 880 x 297","height":44});
															thumbnails[4413198] = clik.newPhoto({"id":4413198,"src":"1247_Drum_Castle_880_x_2971_thumb.jpg","galleries_id":264649,"server_id":18,"link":"photo_4413198.html","width":130,"caption":"1247 Drum Castle 880 x 297","height":44});
															thumbnails[4413216] = clik.newPhoto({"id":4413216,"src":"1154_Dunottar_Castle_2_a_880_x_297_thumb.jpg","galleries_id":264649,"server_id":18,"link":"photo_4413216.html","width":130,"caption":"1154 Dunottar Castle 2 a 880 x 297","height":44});
															thumbnails[4413226] = clik.newPhoto({"id":4413226,"src":"1156_Castle_Fraser_880_x_297_thumb.jpg","galleries_id":264649,"server_id":18,"link":"photo_4413226.html","width":130,"caption":"1156 Castle Fraser 880 x 297","height":44});
															thumbnails[4413243] = clik.newPhoto({"id":4413243,"src":"1225_Linlithgow_Palace_1_880_x_29712_thumb.jpg","galleries_id":264659,"server_id":18,"link":"photo_4413243.html","width":130,"caption":"1225 Linlithgow Palace 1 880 x 297","height":44});
															thumbnails[4413308] = clik.newPhoto({"id":4413308,"src":"Inspiration_from_Hoy_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4413308.html","width":130,"caption":"1073 Inspiration from Hoy 880 x 297","height":44});
															thumbnails[4413342] = clik.newPhoto({"id":4413342,"src":"1031_Gullane_Bents_880_x_297_thumb.jpg","galleries_id":264660,"server_id":18,"link":"photo_4413342.html","width":130,"caption":"1031 Gullane Bents 880 x 297","height":385});
															thumbnails[4418128] = clik.newPhoto({"id":4418128,"src":"1202_Mellerstain_House_duo_tone_1200_x_297_thumb.jpg","galleries_id":264640,"server_id":18,"link":"photo_4418128.html","width":130,"caption":"1202 Mellerstain House duo tone 1200 x 297","height":32});
															thumbnails[4418220] = clik.newPhoto({"id":4418220,"src":"1160_Falkland_Palace_1_880_x_297_thumb.jpg","galleries_id":264648,"server_id":18,"link":"photo_4418220.html","width":130,"caption":"1160 Falkland Palace 1 880 x 297","height":44});
															thumbnails[4473407] = clik.newPhoto({"id":4473407,"src":"1095_North_Berwick_Harbour_1_1200_x_297_thumb.jpg","galleries_id":264643,"server_id":18,"link":"photo_4473407.html","width":130,"caption":"1095 North Berwick Harbour 1 1200 x 297","height":32});
															thumbnails[4478552] = clik.newPhoto({"id":4478552,"src":"1423_Sunset_over_Mallaig_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4478552.html","width":130,"caption":"1423 Sunset over Mallaig 880 x 297","height":44});
															thumbnails[4485037] = clik.newPhoto({"id":4485037,"src":"1168_Pentlands_from_Uttershill_thumb.jpg","galleries_id":264632,"server_id":18,"link":"photo_4485037.html","width":130,"caption":"1168 Pentlands from Uttershill","height":44});
															thumbnails[4485058] = clik.newPhoto({"id":4485058,"src":"1425_Stac_Pollaidh_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4485058.html","width":130,"caption":"1426 Stac Pollaidh 880 x 297","height":44});
															thumbnails[4485095] = clik.newPhoto({"id":4485095,"src":"1427_Plockton_3_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4485095.html","width":130,"caption":"1427 Plockton 3 880 x 297","height":44});
															thumbnails[4485525] = clik.newPhoto({"id":4485525,"src":"1428_Culzean_castle_3_880_x_297_thumb.jpg","galleries_id":264638,"server_id":18,"link":"photo_4485525.html","width":130,"caption":"1428 Culzean castle 3 880 x 297","height":44});
															thumbnails[4486650] = clik.newPhoto({"id":4486650,"src":"1431_Loch_Carron_1_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4486650.html","width":130,"caption":"1431 Loch Carron 1 880 x 297","height":44});
															thumbnails[4490887] = clik.newPhoto({"id":4490887,"src":"1432_Ardvreck_Castle_1_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4490887.html","width":130,"caption":"1432 Ardvreck Castle 1 880 x 297","height":44});
															thumbnails[4491946] = clik.newPhoto({"id":4491946,"src":"1435_Gairloch_1_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4491946.html","width":130,"caption":"1435 Gairloch 1 880 x 297","height":44});
															thumbnails[4499372] = clik.newPhoto({"id":4499372,"src":"1437_Plockton_2_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4499372.html","width":130,"caption":"1437 Plockton 2 880 x 297","height":44});
															thumbnails[4502283] = clik.newPhoto({"id":4502283,"src":"1440_Kylesku_Bridge_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4502283.html","width":130,"caption":"1440 Kylesku Bridge 880 x 297","height":44});
															thumbnails[4509863] = clik.newPhoto({"id":4509863,"src":"1441_Shieldaig_3_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4509863.html","width":130,"caption":"1441 Shieldaig 3 880 x 297","height":44});
															thumbnails[4517756] = clik.newPhoto({"id":4517756,"src":"Buachaille_Etive_Mor_thumb.jpg","galleries_id":264637,"server_id":18,"link":"photo_4517756.html","width":130,"caption":"1442 Buachaille Etive Mor 880 x 297","height":44});
															thumbnails[4517795] = clik.newPhoto({"id":4517795,"src":"1442_Ferry_from_Mallaig_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4517795.html","width":130,"caption":"1442 Ferry from Mallaig 880 x 297","height":44});
															thumbnails[4518594] = clik.newPhoto({"id":4518594,"src":"1444_View_to_Raasay_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4518594.html","width":130,"caption":"1444 View to Raasay 880 x 297","height":44});
															thumbnails[4518725] = clik.newPhoto({"id":4518725,"src":"1445_Applecross_Bay_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4518725.html","width":130,"caption":"1445 Applecross Bay 880 x 297","height":44});
															thumbnails[4518886] = clik.newPhoto({"id":4518886,"src":"1446_Loch_Torridon_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4518886.html","width":130,"caption":"1446 Loch Torridon 880 x 297","height":44});
															thumbnails[4519001] = clik.newPhoto({"id":4519001,"src":"1447_Loch_Bad_an_Sgalaig_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4519001.html","width":130,"caption":"1447 Loch Bad an Sgalaig 880 x 297","height":44});
															thumbnails[4519368] = clik.newPhoto({"id":4519368,"src":"1448_Gruinard_Bay_1_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4519368.html","width":130,"caption":"1448 Gruinard Bay 1 880 x 297","height":44});
															thumbnails[4519603] = clik.newPhoto({"id":4519603,"src":"1449_Ullapool_1_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4519603.html","width":130,"caption":"1449 Ullapool 1 880 x 297","height":44});
															thumbnails[4522334] = clik.newPhoto({"id":4522334,"src":"1450_Sunset_over_Ullapool_Watercolour_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4522334.html","width":130,"caption":"1450 Sunset over Ullapool Watercolour 880 x 297","height":44});
															thumbnails[4532411] = clik.newPhoto({"id":4532411,"src":"1451_Applecross_River_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4532411.html","width":130,"caption":"1451 Applecross River 880 x 297","height":44});
															thumbnails[4532582] = clik.newPhoto({"id":4532582,"src":"1452_Little_Gruinard_Bay_2_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4532582.html","width":130,"caption":"1452 Little Gruinard Bay 2 880 x 297","height":44});
															thumbnails[4532648] = clik.newPhoto({"id":4532648,"src":"1453_Beinn_Resipol_1_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4532648.html","width":130,"caption":"1453 Beinn Resipol 1 880 x 297","height":44});
															thumbnails[4538288] = clik.newPhoto({"id":4538288,"src":"1456_Kilchurn_Castle_1_880_x_297_thumb.jpg","galleries_id":264637,"server_id":18,"link":"photo_4538288.html","width":130,"caption":"1456 Kilchurn Castle 1 880 x 297","height":44});
															thumbnails[4538345] = clik.newPhoto({"id":4538345,"src":"1457_Loch_Sunart_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4538345.html","width":130,"caption":"1457 Loch Sunart 880 x 297","height":44});
															thumbnails[4538640] = clik.newPhoto({"id":4538640,"src":"Sunset_over_Iona_tone_mapped_thumb.jpg","galleries_id":264699,"server_id":18,"link":"photo_4538640.html","width":130,"caption":"Sunset over Iona tone mapped","height":91});
															thumbnails[4540156] = clik.newPhoto({"id":4540156,"src":"1459_Brodick_Castle_880_x_2971_thumb.jpg","galleries_id":264638,"server_id":18,"link":"photo_4540156.html","width":130,"caption":"1459 Brodick Castle 880 x 297","height":44});
															thumbnails[4548420] = clik.newPhoto({"id":4548420,"src":"1460_Cuaig_Beach_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4548420.html","width":130,"caption":"1460 Cuaig Beach 880 x 297","height":44});
															thumbnails[4548439] = clik.newPhoto({"id":4548439,"src":"1461_Loch_Sunart_2_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4548439.html","width":130,"caption":"1461 Loch Sunart 2 880 x 297","height":44});
															thumbnails[4548886] = clik.newPhoto({"id":4548886,"src":"Newhaven_Harbour_thumb.jpg","galleries_id":264645,"server_id":18,"link":"photo_4548886.html","width":130,"caption":"1030 Newhaven Harbour 1200 x 297","height":32});
															thumbnails[4559734] = clik.newPhoto({"id":4559734,"src":"Cushendun_thumb.jpg","galleries_id":264654,"server_id":18,"link":"photo_4559734.html","width":130,"caption":"1131 Cushendun 1200 x 297","height":32});
															thumbnails[4561695] = clik.newPhoto({"id":4561695,"src":"1473_Preston_Mills_3_880_x_297_thumb.jpg","galleries_id":264644,"server_id":18,"link":"photo_4561695.html","width":130,"caption":"1473 Preston Mills 3 880 x 297","height":44});
															thumbnails[4562820] = clik.newPhoto({"id":4562820,"src":"1006_Forth_Bridges_sepia_1200_x_2971_thumb.jpg","galleries_id":264614,"server_id":18,"link":"photo_4562820.html","width":130,"caption":"C1006 Forth Bridges Sepia Canvas ","height":32});
															thumbnails[4562825] = clik.newPhoto({"id":4562825,"src":"Edinburgh_Castle_at_Night_thumb.jpg","galleries_id":264614,"server_id":18,"link":"photo_4562825.html","width":130,"caption":"C1088 Edinburgh Castle at Night Canvas","height":38});
															thumbnails[4569167] = clik.newPhoto({"id":4569167,"src":"1474_Glenogle_Colonies_1_880_x_297_thumb.jpg","galleries_id":264647,"server_id":18,"link":"photo_4569167.html","width":130,"caption":"1474 Glenogle Colonies 1 880 x 297","height":44});
															thumbnails[4569365] = clik.newPhoto({"id":4569365,"src":"1222_Seton_Collegiate_Church_2_880_x_297_thumb.jpg","galleries_id":264644,"server_id":18,"link":"photo_4569365.html","width":130,"caption":"1222 Seton Collegiate Church 2 880 x 297","height":44});
															thumbnails[4569459] = clik.newPhoto({"id":4569459,"src":"1137_Tynecastle_Stadium_880_x_297_thumb.jpg","galleries_id":264647,"server_id":18,"link":"photo_4569459.html","width":130,"caption":"1137 Tynecastle Stadium 880 x 297","height":44});
															thumbnails[4609753] = clik.newPhoto({"id":4609753,"src":"1142_Edinburgh_Skyline_from_Calton_Hill_1200_x_2971_thumb.jpg","galleries_id":264645,"server_id":18,"link":"photo_4609753.html","width":130,"caption":"1142 Edinburgh Skyline from Calton Hill 1200 x 297","height":32});
															thumbnails[4610806] = clik.newPhoto({"id":4610806,"src":"1007_Forth_Bridge_Vertical_Blue_297_x_1200_thumb.jpg","galleries_id":264661,"server_id":18,"link":"photo_4610806.html","width":130,"caption":"1007 Forth Bridge Vertical Blue 297 x 1200","height":525});
															thumbnails[4613141] = clik.newPhoto({"id":4613141,"src":"1476_Culzean_Castle_2_880_x_297_thumb.jpg","galleries_id":264638,"server_id":18,"link":"photo_4613141.html","width":130,"caption":"1476 Culzean Castle 2 880 x 297","height":44});
															thumbnails[4660400] = clik.newPhoto({"id":4660400,"src":"Celtic_Park_481_thumb.jpg","galleries_id":264614,"server_id":18,"link":"photo_4660400.html","width":130,"caption":"5004 Celtic Park Panorama Canvas","height":43});
															thumbnails[4796897] = clik.newPhoto({"id":4796897,"src":"1032_Dunstaffnage_Castle_880_x_297_thumb.jpg","galleries_id":264637,"server_id":18,"link":"photo_4796897.html","width":130,"caption":"1032 Dunstaffnage Castle 880 x 297","height":42});
															thumbnails[4968198] = clik.newPhoto({"id":4968198,"src":"1478_Aberdour_Castle_1_880_x_297_thumb.jpg","galleries_id":264648,"server_id":18,"link":"photo_4968198.html","width":130,"caption":"1478 Aberdour Castle 1 880 x 297","height":44});
															thumbnails[5180195] = clik.newPhoto({"id":5180195,"src":"5235_Stirling_Castle_Cool_Blue_thumb.jpg","galleries_id":264614,"server_id":18,"link":"photo_5180195.html","width":130,"caption":"C1235 Stirling Castle Cool Blue Canvas","height":49});
															thumbnails[6731535] = clik.newPhoto({"id":6731535,"src":"1494_Anstruther_880_x_297_thumb.jpg","galleries_id":264648,"server_id":18,"link":"photo_6731535.html","width":130,"caption":"1494 Anstruther 880 x 297","height":44});
															thumbnails[6876766] = clik.newPhoto({"id":6876766,"src":"1503_The_Shore_Edinburgh_880_x_297_thumb.jpg","galleries_id":264647,"server_id":18,"link":"photo_6876766.html","width":130,"caption":"1503 The Shore Edinburgh 880 x 297","height":44});
															thumbnails[4381626] = clik.newPhoto({"id":4381626,"src":"1082_Abbotsford_House_front_thumb.jpg","galleries_id":264639,"server_id":18,"link":"photo_4381626.html","width":130,"caption":"1082 Abbotsford House front","height":44});
															thumbnails[4518541] = clik.newPhoto({"id":4518541,"src":"1443_Skye_Bridge_from_Kyleakin_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4518541.html","width":130,"caption":"1443 Skye Bridge from Kyleakin 880 x 297","height":44});
															thumbnails[4366485] = clik.newPhoto({"id":4366485,"src":"1397_Castle_Moil_HDR_880_x_2971_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4366485.html","width":130,"caption":"1397 Castle Moil HDR 880 x 297","height":44});
															thumbnails[4381630] = clik.newPhoto({"id":4381630,"src":"Abbotsford_House_from_main_gate_thumb.jpg","galleries_id":264639,"server_id":18,"link":"photo_4381630.html","width":130,"caption":"1085 Abbotsford House from main gate","height":44});
															thumbnails[4486562] = clik.newPhoto({"id":4486562,"src":"1430_Isleornsay_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4486562.html","width":130,"caption":"1430 Isleornsay 880 x 297","height":44});
															thumbnails[4366486] = clik.newPhoto({"id":4366486,"src":"1398_Castle_Moil_2_HDR_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4366486.html","width":130,"caption":"1398 Castle Moil 2 HDR 880 x 297","height":44});
															thumbnails[4326867] = clik.newPhoto({"id":4326867,"src":"1033_Skara_Brae_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4326867.html","width":130,"caption":"1033 Skara Brae 880 x 297","height":44});
															thumbnails[4326880] = clik.newPhoto({"id":4326880,"src":"1145_Ackergill_Tower_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4326880.html","width":130,"caption":"1145 Ackergill Tower 880 x 297","height":44});
															thumbnails[4337774] = clik.newPhoto({"id":4337774,"src":"1277_Newhailes_House_880_x_297_thumb.jpg","galleries_id":264644,"server_id":18,"link":"photo_4337774.html","width":130,"caption":"1277 Newhailes House 880x297","height":44});
															thumbnails[4337838] = clik.newPhoto({"id":4337838,"src":"1290_Burleigh_Castle_HDR_880_x_297_thumb.jpg","galleries_id":264656,"server_id":18,"link":"photo_4337838.html","width":130,"caption":"1290 Burleigh Castle HDR 880 x 297","height":44});
															thumbnails[4358881] = clik.newPhoto({"id":4358881,"src":"1406_Edzell_Castle_2_880_x_297_thumb.jpg","galleries_id":264633,"server_id":18,"link":"photo_4358881.html","width":130,"caption":"1406 Edzell Castle 2 880 x 297","height":44});
															thumbnails[4366386] = clik.newPhoto({"id":4366386,"src":"1412_Broughty_Castle_2_880_x_297_thumb.jpg","galleries_id":264633,"server_id":18,"link":"photo_4366386.html","width":130,"caption":"1412 Broughty Castle 2 880 x 297","height":44});
															thumbnails[4366399] = clik.newPhoto({"id":4366399,"src":"1401_Auchindoun_Castle_HDR_880_x_2971_thumb.jpg","galleries_id":264653,"server_id":18,"link":"photo_4366399.html","width":130,"caption":"1401 Auchindoun Castle HDR 880 x 297","height":44});
															thumbnails[4366452] = clik.newPhoto({"id":4366452,"src":"1391_Spynie_Palace_4_HDR_880_x_297_thumb.jpg","galleries_id":264653,"server_id":18,"link":"photo_4366452.html","width":130,"caption":"1391 Spynie Palace 4 HDR 880 x 297","height":44});
															thumbnails[4366520] = clik.newPhoto({"id":4366520,"src":"1381_Blair_Castle_HDR_880_x_297_thumb.jpg","galleries_id":264656,"server_id":18,"link":"photo_4366520.html","width":130,"caption":"1381 Blair Castle HDR 880 x 297","height":44});
															thumbnails[4367745] = clik.newPhoto({"id":4367745,"src":"1352_Castle_Stuart_2_HDR__880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4367745.html","width":130,"caption":"1352 Castle Stuart 2 HDR  880 x 297","height":44});
															thumbnails[4373216] = clik.newPhoto({"id":4373216,"src":"1321_Duddingston_Golf_Course_8_HDR_880_x_297_thumb.jpg","galleries_id":264647,"server_id":18,"link":"photo_4373216.html","width":130,"caption":"1321 Duddingston Golf Course 8 HDR 880 x 297","height":44});
															thumbnails[4373279] = clik.newPhoto({"id":4373279,"src":"1312_Balvaird_Castle_2_HDR_880_x_297_thumb.jpg","galleries_id":264656,"server_id":18,"link":"photo_4373279.html","width":130,"caption":"1312 Balvaird Castle 2 HDR 880 x 297","height":44});
															thumbnails[4374717] = clik.newPhoto({"id":4374717,"src":"1288_Castle_Campbell_3__HDR_880_x_297_thumb.jpg","galleries_id":264641,"server_id":18,"link":"photo_4374717.html","width":130,"caption":"1288 Castle Campbell 3  HDR 880 x 297","height":44});
															thumbnails[4375608] = clik.newPhoto({"id":4375608,"src":"1282_Lennoxlove_House_2_HDR_880_x_297_thumb.jpg","galleries_id":264644,"server_id":18,"link":"photo_4375608.html","width":130,"caption":"1282 Lennoxlove House 2 HDR 880 x 297","height":44});
															thumbnails[4378208] = clik.newPhoto({"id":4378208,"src":"1268_Morton_Castle_3_880_x_2971_thumb.jpg","galleries_id":264642,"server_id":18,"link":"photo_4378208.html","width":130,"caption":"1268 Morton Castle 3 880 x 297","height":44});
															thumbnails[4378990] = clik.newPhoto({"id":4378990,"src":"1189_Dirleton_Castle_4_880_x_297_thumb.jpg","galleries_id":264660,"server_id":18,"link":"photo_4378990.html","width":130,"caption":"1189 Dirleton Castle 4 880 x 297","height":385});
															thumbnails[4381455] = clik.newPhoto({"id":4381455,"src":"1037_Loch_Creran_2_915_x_297_thumb.jpg","galleries_id":264637,"server_id":18,"link":"photo_4381455.html","width":130,"caption":"1037 Loch Creran 2 880 x 297","height":42});
															thumbnails[4381666] = clik.newPhoto({"id":4381666,"src":"1420_Dunfermline_Abbey_2_880_x_297_thumb.jpg","galleries_id":264648,"server_id":18,"link":"photo_4381666.html","width":130,"caption":"1420 Dunfermline Abbey 2 880 x 297","height":44});
															thumbnails[4381693] = clik.newPhoto({"id":4381693,"src":"1102_Little_Gruinard_beach_1200_x_297_thumb.jpg","galleries_id":264650,"server_id":18,"link":"photo_4381693.html","width":130,"caption":"1102 Little Gruinard beach 1200 x 297","height":32});
															thumbnails[4381770] = clik.newPhoto({"id":4381770,"src":"1110_North_Berwick_with_Bass_Rock__The_Law_1200x297_thumb.jpg","galleries_id":264643,"server_id":18,"link":"photo_4381770.html","width":130,"caption":"1110 North Berwick with Bass Rock 1200x297","height":32});
															thumbnails[4381870] = clik.newPhoto({"id":4381870,"src":"1015_Inverleith_Pond_from_the_West_Gate_1200_x1_thumb.jpg","galleries_id":264645,"server_id":18,"link":"photo_4381870.html","width":130,"caption":"1015 Inverleith Pond from the West Gate 1200 x","height":32});
															thumbnails[4384785] = clik.newPhoto({"id":4384785,"src":"1106_Carrickfergus_Harbour_1200_x_297_thumb.jpg","galleries_id":264654,"server_id":18,"link":"photo_4384785.html","width":130,"caption":"1106 Carrickfergus Harbour 1200 x 297","height":32});
															thumbnails[4384890] = clik.newPhoto({"id":4384890,"src":"1269_Caerlaverock_Castle_880_x_297_thumb.jpg","galleries_id":264642,"server_id":18,"link":"photo_4384890.html","width":130,"caption":"1269 Caerlaverock Castle 880 x 297","height":44});
															thumbnails[4384927] = clik.newPhoto({"id":4384927,"src":"1294_Huntingtower_Castle_2_HDR_880_x_2971_thumb.jpg","galleries_id":264656,"server_id":18,"link":"photo_4384927.html","width":130,"caption":"1294 Huntingtower Castle 2 HDR 880 x 297","height":44});
															thumbnails[4384950] = clik.newPhoto({"id":4384950,"src":"1230_Stirling_Castle_1_880_x_297_thumb.jpg","galleries_id":264657,"server_id":18,"link":"photo_4384950.html","width":130,"caption":"1230 Stirling Castle 1 880 x 297","height":44});
															thumbnails[4384984] = clik.newPhoto({"id":4384984,"src":"1199_Hailes_Castle_5_880_x_2971_thumb.jpg","galleries_id":264644,"server_id":18,"link":"photo_4384984.html","width":130,"caption":"1199 Hailes Castle 5 880 x 297","height":44});
															thumbnails[4385039] = clik.newPhoto({"id":4385039,"src":"1177_Niddrie_Castle_Golf_Course_880_x_297_thumb.jpg","galleries_id":264659,"server_id":18,"link":"photo_4385039.html","width":130,"caption":"1177 Niddry Castle Golf Course 880 x 297","height":44});
															thumbnails[4385101] = clik.newPhoto({"id":4385101,"src":"1142_Edinburgh_Skyline_from_Calton_Hill_1200_x_297_thumb.jpg","galleries_id":264645,"server_id":18,"link":"photo_4385101.html","width":130,"caption":"1142 Edinburgh Skyline from Calton Hill 1200 x 297","height":32});
															thumbnails[4385246] = clik.newPhoto({"id":4385246,"src":"1065_Lynn_of_Lorne_880_x_297_thumb.jpg","galleries_id":264637,"server_id":18,"link":"photo_4385246.html","width":130,"caption":"1065 Lynn of Lorne 880 x 297","height":44});
															thumbnails[4385329] = clik.newPhoto({"id":4385329,"src":"1057_Inveraray_Harbour_1_1200_x_297_thumb.jpg","galleries_id":264634,"server_id":18,"link":"photo_4385329.html","width":130,"caption":"1057 Inveraray Harbour 1 1200 x 297","height":32});
															thumbnails[4385420] = clik.newPhoto({"id":4385420,"src":"1061_Loch_Ewe_from_Inverewe_1200_x_297_thumb.jpg","galleries_id":264650,"server_id":18,"link":"photo_4385420.html","width":130,"caption":"1061 Loch Ewe from Inverewe 1200 x 297","height":32});
															thumbnails[4413111] = clik.newPhoto({"id":4413111,"src":"1209_Lauriston_Castle_Gardens_880_x_297_thumb.jpg","galleries_id":264647,"server_id":18,"link":"photo_4413111.html","width":130,"caption":"1209 Lauriston Castle Gardens 880 x 297","height":44});
															thumbnails[4413116] = clik.newPhoto({"id":4413116,"src":"1212_Forth_Bridge__North_Queensferry_880_x_2971_thumb.jpg","galleries_id":264647,"server_id":18,"link":"photo_4413116.html","width":130,"caption":"1212 Forth Bridge & North Queensferry 880 x 297","height":44});
															thumbnails[4413178] = clik.newPhoto({"id":4413178,"src":"1239_Kellie_Castle_2_880_x_297_thumb.jpg","galleries_id":264648,"server_id":18,"link":"photo_4413178.html","width":130,"caption":"1239 Kellie Castle 2 880 x 297","height":44});
															thumbnails[4413199] = clik.newPhoto({"id":4413199,"src":"1248_Drum_Castle_BW_880_x_297_thumb.jpg","galleries_id":264649,"server_id":18,"link":"photo_4413199.html","width":130,"caption":"1248 Drum Castle B&W 880 x 297","height":44});
															thumbnails[4413217] = clik.newPhoto({"id":4413217,"src":"1260_Dunottar_Castle_Blue_880_x_297_thumb.jpg","galleries_id":264649,"server_id":18,"link":"photo_4413217.html","width":130,"caption":"1260 Dunottar Castle Blue 880 x 297","height":44});
															thumbnails[4413227] = clik.newPhoto({"id":4413227,"src":"1157_Fyvie_Castle_BW_880_x_297_thumb.jpg","galleries_id":264649,"server_id":18,"link":"photo_4413227.html","width":130,"caption":"1157 Fyvie Castle B&W 880 x 297","height":44});
															thumbnails[4413244] = clik.newPhoto({"id":4413244,"src":"1231_Blackness_Castle_880_x_2971_thumb.jpg","galleries_id":264659,"server_id":18,"link":"photo_4413244.html","width":130,"caption":"1231 Blackness Castle 880 x 297","height":44});
															thumbnails[4418129] = clik.newPhoto({"id":4418129,"src":"1203_Mellerstain_House_Sepia_1200_x_297_thumb.jpg","galleries_id":264640,"server_id":18,"link":"photo_4418129.html","width":130,"caption":"1203 Mellerstain House Sepia 1200 x 297","height":32});
															thumbnails[4418221] = clik.newPhoto({"id":4418221,"src":"1162_Falkland_Palace_3_Watercolour_880_x_297_thumb.jpg","galleries_id":264648,"server_id":18,"link":"photo_4418221.html","width":130,"caption":"1162 Falkland Palace 3 Watercolour 880 x 297","height":44});
															thumbnails[4485038] = clik.newPhoto({"id":4485038,"src":"1169_Penicuik_from_Uttershill_2_880_x_297_thumb.jpg","galleries_id":264632,"server_id":18,"link":"photo_4485038.html","width":130,"caption":"1169 Penicuik from Uttershill 2 880 x 297","height":44});
															thumbnails[4490888] = clik.newPhoto({"id":4490888,"src":"1433_Ardvreck_Castle_2_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4490888.html","width":130,"caption":"1433 Ardvreck Castle 2 880 x 297","height":44});
															thumbnails[4491947] = clik.newPhoto({"id":4491947,"src":"1436_Gairloch_2_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4491947.html","width":130,"caption":"1436 Gairloch 2 880 x 297","height":44});
															thumbnails[4499373] = clik.newPhoto({"id":4499373,"src":"1438_Plockton_1_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4499373.html","width":130,"caption":"1438 Plockton 1 880 x 297","height":44});
															thumbnails[4559735] = clik.newPhoto({"id":4559735,"src":"Giants_Causeway_2_thumb.jpg","galleries_id":264655,"server_id":18,"link":"photo_4559735.html","width":130,"caption":"1113 Giants Causeway 3  880 x 297","height":44});
															thumbnails[4569168] = clik.newPhoto({"id":4569168,"src":"1475_Glenogle_Colonies_2_880_x_297_thumb.jpg","galleries_id":264647,"server_id":18,"link":"photo_4569168.html","width":130,"caption":"1475 Glenogle Colonies 2 880 x 297","height":44});
															thumbnails[4569366] = clik.newPhoto({"id":4569366,"src":"1227_Old_Stirling_Bridge_880_x_297_thumb.jpg","galleries_id":264657,"server_id":18,"link":"photo_4569366.html","width":130,"caption":"1227 Old Stirling Bridge 880 x 297","height":44});
															thumbnails[4610807] = clik.newPhoto({"id":4610807,"src":"1009_Forth_Road_Bridge_Deep_Blue_1200_x_297_thumb.jpg","galleries_id":264645,"server_id":18,"link":"photo_4610807.html","width":130,"caption":"1009 Forth Road Bridge Deep Blue 1200 x 297","height":32});
															thumbnails[4968199] = clik.newPhoto({"id":4968199,"src":"1479_Aberdour_Castle_2_880_x_297_thumb.jpg","galleries_id":264648,"server_id":18,"link":"photo_4968199.html","width":130,"caption":"1479 Aberdour Castle 2 880 x 297","height":44});
															thumbnails[5180196] = clik.newPhoto({"id":5180196,"src":"5241_Princes_Street_at_Night_thumb.jpg","galleries_id":264614,"server_id":18,"link":"photo_5180196.html","width":130,"caption":"C1241 Princes Street at Night Canvas","height":38});
															thumbnails[6731536] = clik.newPhoto({"id":6731536,"src":"1495_Anstruther_2_880_x_297_thumb.jpg","galleries_id":264648,"server_id":18,"link":"photo_6731536.html","width":130,"caption":"1495 Anstruther 2 880 x 297","height":44});
															thumbnails[6876767] = clik.newPhoto({"id":6876767,"src":"1504_The_Shore_Edinburgh_880_x_297_thumb.jpg","galleries_id":264647,"server_id":18,"link":"photo_6876767.html","width":130,"caption":"1504 The Shore Edinburgh 880 x 297","height":44});
															thumbnails[4375865] = clik.newPhoto({"id":4375865,"src":"1039_Castle_of_Mey_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4375865.html","width":130,"caption":"1039 Castle of Mey 880 x 297","height":44});
															thumbnails[4367653] = clik.newPhoto({"id":4367653,"src":"1360_Castle_of_Old_Wick_HDR_880_x_2971_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4367653.html","width":130,"caption":"1360 Castle of Old Wick 880 x 297","height":44});
															thumbnails[4796898] = clik.newPhoto({"id":4796898,"src":"1039_Castle_of_Mey_880_x_2971_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4796898.html","width":130,"caption":"1039 Castle of Mey 880 x 297","height":44});
															thumbnails[4385068] = clik.newPhoto({"id":4385068,"src":"1206_Dunrobin_Castle_2_880_x_2971_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4385068.html","width":130,"caption":"1206 Dunrobin Castle 2 880 x 297","height":44});
															thumbnails[4375866] = clik.newPhoto({"id":4375866,"src":"1218_Castle_of_Mey_2_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4375866.html","width":130,"caption":"1218 Castle of Mey 2 880 x 297","height":44});
															thumbnails[4367654] = clik.newPhoto({"id":4367654,"src":"1361_Castle_of_Old_Wick_HDR_BW_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4367654.html","width":130,"caption":"1361 Castle of Old Wick HDR B&W 880 x 297","height":44});
															thumbnails[4328073] = clik.newPhoto({"id":4328073,"src":"1182_Floors_Castle_Courtyard_880_x_297_thumb.jpg","galleries_id":264639,"server_id":18,"link":"photo_4328073.html","width":130,"caption":"1182 Floors Castle Courtyard 880 x 297","height":44});
															thumbnails[4337775] = clik.newPhoto({"id":4337775,"src":"1278_Craigmillar_Castle_880_x_297_thumb.jpg","galleries_id":264647,"server_id":18,"link":"photo_4337775.html","width":130,"caption":"1278 Craigmillar Castle 880 x 297","height":44});
															thumbnails[4337839] = clik.newPhoto({"id":4337839,"src":"1292_Elcho_Castle_HDR_880_x_297_thumb.jpg","galleries_id":264656,"server_id":18,"link":"photo_4337839.html","width":130,"caption":"1292 Elcho Castle HDR 880 x 297","height":44});
															thumbnails[4358882] = clik.newPhoto({"id":4358882,"src":"1407_Edzell_Castle_3_880_x_297_thumb.jpg","galleries_id":264633,"server_id":18,"link":"photo_4358882.html","width":130,"caption":"1407 Edzell Castle 3 880 x 297","height":44});
															thumbnails[4366387] = clik.newPhoto({"id":4366387,"src":"1413_Broughty_Castle_3_880_x_297_thumb.jpg","galleries_id":264633,"server_id":18,"link":"photo_4366387.html","width":130,"caption":"1413 Broughty Castle 3 880 x 297","height":44});
															thumbnails[4366400] = clik.newPhoto({"id":4366400,"src":"1402_Huntly_Castle_HDR_880_x_2971_thumb.jpg","galleries_id":264653,"server_id":18,"link":"photo_4366400.html","width":130,"caption":"1402 Huntly Castle HDR 880 x 297","height":44});
															thumbnails[4366453] = clik.newPhoto({"id":4366453,"src":"1392_Duffus_Castle_HDR_880_x_297_thumb.jpg","galleries_id":264653,"server_id":18,"link":"photo_4366453.html","width":130,"caption":"1392 Duffus Castle HDR 880 x 297","height":44});
															thumbnails[4366487] = clik.newPhoto({"id":4366487,"src":"1399_Castle_Moil_3_HDR_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4366487.html","width":130,"caption":"1399 Castle Moil 3 HDR 880 x 297","height":44});
															thumbnails[4366521] = clik.newPhoto({"id":4366521,"src":"1382_Blair_Castle_2_HDR_880_x_297_thumb.jpg","galleries_id":264656,"server_id":18,"link":"photo_4366521.html","width":130,"caption":"1382 Blair Castle 2 HDR 880 x 297","height":44});
															thumbnails[4367655] = clik.newPhoto({"id":4367655,"src":"1363_Castle_Menzies_2_HDR_880_x_2971_thumb.jpg","galleries_id":264656,"server_id":18,"link":"photo_4367655.html","width":130,"caption":"1363 Castle Menzies 2 HDR 880 x 297","height":44});
															thumbnails[4373217] = clik.newPhoto({"id":4373217,"src":"1322_Duddingston_Golf_Course_Temple_HDR_880_x_297_thumb.jpg","galleries_id":264647,"server_id":18,"link":"photo_4373217.html","width":130,"caption":"1322 Duddingston Golf Course Temple HDR 880 x 297","height":44});
															thumbnails[4373280] = clik.newPhoto({"id":4373280,"src":"1313_Balvaird_Castle_3_HDR_880_x_2971_thumb.jpg","galleries_id":264656,"server_id":18,"link":"photo_4373280.html","width":130,"caption":"1313 Balvaird Castle 3 HDR 880 x 297","height":44});
															thumbnails[4375609] = clik.newPhoto({"id":4375609,"src":"1283_Lennoxlove_House_3_HDR_880_x_2971_thumb.jpg","galleries_id":264644,"server_id":18,"link":"photo_4375609.html","width":130,"caption":"1283 Lennoxlove House 3 HDR 880 x 297","height":44});
															thumbnails[4375867] = clik.newPhoto({"id":4375867,"src":"1285_Castle_of_Mey_HDR_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4375867.html","width":130,"caption":"1285 Castle of Mey HDR 880 x 297","height":44});
															thumbnails[4378209] = clik.newPhoto({"id":4378209,"src":"1271_Morton_Castle_4_880_x_297_thumb.jpg","galleries_id":264642,"server_id":18,"link":"photo_4378209.html","width":130,"caption":"1271 Morton Castle 4 880 x 297","height":44});
															thumbnails[4378991] = clik.newPhoto({"id":4378991,"src":"1204_Lauriston_Castle_Gardens_2_297_x_880_thumb.jpg","galleries_id":264660,"server_id":18,"link":"photo_4378991.html","width":130,"caption":"1204 Lauriston Castle Gardens 2 297 x 880","height":385});
															thumbnails[4381627] = clik.newPhoto({"id":4381627,"src":"1083_Neidpeth_Castle_1_thumb.jpg","galleries_id":264639,"server_id":18,"link":"photo_4381627.html","width":130,"caption":"1083 Neidpeth Castle 1","height":42});
															thumbnails[4381668] = clik.newPhoto({"id":4381668,"src":"1421_Dunfermline_Abbey_3_880_x_29712_thumb.jpg","galleries_id":264648,"server_id":18,"link":"photo_4381668.html","width":130,"caption":"1421 Dunfermline Abbey 3 880 x 297","height":44});
															thumbnails[4381871] = clik.newPhoto({"id":4381871,"src":"1017_Inverleith_Pond_Water_Foreground_1200_x_297_thumb.jpg","galleries_id":264643,"server_id":18,"link":"photo_4381871.html","width":130,"caption":"1017 Inverleith Pond Water Foreground 1200 x 297","height":32});
															thumbnails[4384786] = clik.newPhoto({"id":4384786,"src":"1109_Giants_Causeway_2_1200_x_297_thumb.jpg","galleries_id":264654,"server_id":18,"link":"photo_4384786.html","width":130,"caption":"1109 Giants Causeway 2 1200 x 297","height":32});
															thumbnails[4384891] = clik.newPhoto({"id":4384891,"src":"1272_Caerlaverock_Castle_2_880_x_297_thumb.jpg","galleries_id":264642,"server_id":18,"link":"photo_4384891.html","width":130,"caption":"1272 Caerlaverock Castle 2 880 x 297","height":44});
															thumbnails[4384928] = clik.newPhoto({"id":4384928,"src":"1295_Huntingtower_Castle_3_HDR_880_x_297_thumb.jpg","galleries_id":264656,"server_id":18,"link":"photo_4384928.html","width":130,"caption":"1295 Huntingtower Castle 3 HDR 880 x 297","height":44});
															thumbnails[4384951] = clik.newPhoto({"id":4384951,"src":"1233_Stirling_Castle_880_x_297_thumb.jpg","galleries_id":264657,"server_id":18,"link":"photo_4384951.html","width":130,"caption":"1233 Stirling Castle 880 x 297","height":44});
															thumbnails[4384985] = clik.newPhoto({"id":4384985,"src":"1221_Hailes_Castle_4_880_x_2971_thumb.jpg","galleries_id":264644,"server_id":18,"link":"photo_4384985.html","width":130,"caption":"1221 Hailes Castle 4 880 x 297","height":44});
															thumbnails[4385040] = clik.newPhoto({"id":4385040,"src":"1178_Niddrie_Castle_Golf_Course_2_880_x_297_thumb.jpg","galleries_id":264659,"server_id":18,"link":"photo_4385040.html","width":130,"caption":"1178 Niddry Castle Golf Course 2 880 x 297","height":44});
															thumbnails[4385102] = clik.newPhoto({"id":4385102,"src":"1148_Edinburgh_Castle__Gardens_1200_x_297_thumb.jpg","galleries_id":264645,"server_id":18,"link":"photo_4385102.html","width":130,"caption":"1148 Edinburgh Castle & Gardens 1200 x 297","height":32});
															thumbnails[4385247] = clik.newPhoto({"id":4385247,"src":"1205_Dunstaffnage_Castle_4_880_x_297_thumb.jpg","galleries_id":264637,"server_id":18,"link":"photo_4385247.html","width":130,"caption":"1205 Dunstaffnage Castle 4 880 x 297","height":44});
															thumbnails[4385330] = clik.newPhoto({"id":4385330,"src":"1072_Oban_from_McCaig_Tower_1200_x_297_thumb.jpg","galleries_id":264634,"server_id":18,"link":"photo_4385330.html","width":130,"caption":"1072 Oban from McCaig Tower 1200 x 297","height":32});
															thumbnails[4385421] = clik.newPhoto({"id":4385421,"src":"1074_Plockton_1200_x_297_thumb.jpg","galleries_id":264650,"server_id":18,"link":"photo_4385421.html","width":130,"caption":"1074 Plockton 1200 x 297","height":32});
															thumbnails[4413179] = clik.newPhoto({"id":4413179,"src":"1240_Kellie_Castle_Blue_880_x_297_thumb.jpg","galleries_id":264648,"server_id":18,"link":"photo_4413179.html","width":130,"caption":"1240 Kellie Castle Blue 880 x 297","height":44});
															thumbnails[4413200] = clik.newPhoto({"id":4413200,"src":"1249_Drum_Castle_Cool_Blue_880_x_297_thumb.jpg","galleries_id":264649,"server_id":18,"link":"photo_4413200.html","width":130,"caption":"1249 Drum Castle Cool Blue 880 x 297","height":44});
															thumbnails[4413228] = clik.newPhoto({"id":4413228,"src":"1159_Haddo_House_Gardens_880_x_297_thumb.jpg","galleries_id":264649,"server_id":18,"link":"photo_4413228.html","width":130,"caption":"1159 Haddo House Gardens 880 x 297","height":44});
															thumbnails[4413245] = clik.newPhoto({"id":4413245,"src":"1232_Linlithgow_Palace__St_Michaels_Church_880_x_2971_thumb.jpg","galleries_id":264659,"server_id":18,"link":"photo_4413245.html","width":130,"caption":"1232 Linlithgow Palace 880 x 297","height":44});
															thumbnails[4418222] = clik.newPhoto({"id":4418222,"src":"1197_Ravenscraig_Castle_880_x_2971_thumb.jpg","galleries_id":264648,"server_id":18,"link":"photo_4418222.html","width":130,"caption":"1197 Ravenscraig Castle 880 x 297","height":44});
															thumbnails[4569367] = clik.newPhoto({"id":4569367,"src":"1261_New_Lanark_Mills_880_x_297_thumb.jpg","galleries_id":264652,"server_id":18,"link":"photo_4569367.html","width":130,"caption":"1261 New Lanark Mills 880 x 297","height":44});
															thumbnails[4610808] = clik.newPhoto({"id":4610808,"src":"1013_Inverleith_Park_from_the_North_1200_x_297_thumb.jpg","galleries_id":264645,"server_id":18,"link":"photo_4610808.html","width":130,"caption":"1013 Inverleith Park from the North 1200 x 297","height":32});
															thumbnails[4796899] = clik.newPhoto({"id":4796899,"src":"1048_Dumbarton_Castle_880_x_297_thumb.jpg","galleries_id":266657,"server_id":18,"link":"photo_4796899.html","width":130,"caption":"1048 Dumbarton Castle 880 x 297","height":44});
															thumbnails[4968200] = clik.newPhoto({"id":4968200,"src":"1480_Aberdour_Castle_3_880_x_297_thumb.jpg","galleries_id":264648,"server_id":18,"link":"photo_4968200.html","width":130,"caption":"1480 Aberdour Castle 3 880 x 297","height":44});
															thumbnails[5180197] = clik.newPhoto({"id":5180197,"src":"5274_Princes_Street_from_Edinburgh_Castle_thumb.jpg","galleries_id":264614,"server_id":18,"link":"photo_5180197.html","width":130,"caption":"C1274 Princes Street from Edinburgh Castle Canvas","height":33});
															thumbnails[6731537] = clik.newPhoto({"id":6731537,"src":"1496_Anstruther_3_880_x_297_thumb.jpg","galleries_id":264648,"server_id":18,"link":"photo_6731537.html","width":130,"caption":"1496 Anstruther 3 880 x 297","height":44});
															thumbnails[6876768] = clik.newPhoto({"id":6876768,"src":"1505_The_Shore_880_x_297_thumb.jpg","galleries_id":264647,"server_id":18,"link":"photo_6876768.html","width":130,"caption":"1505 The Shore 880 x 297","height":44});
															thumbnails[4328072] = clik.newPhoto({"id":4328072,"src":"1181_Smailholm_Tower_2_880_x_297_thumb.jpg","galleries_id":264639,"server_id":18,"link":"photo_4328072.html","width":130,"caption":"1181 Smailholm Tower 2 880x297","height":44});
															thumbnails[4660349] = clik.newPhoto({"id":4660349,"src":"1207_Millennium_View_2_880_x_297_thumb.jpg","galleries_id":264639,"server_id":18,"link":"photo_4660349.html","width":130,"caption":"1207 Millennium View panorama 2 880 x 297","height":44});
															thumbnails[4326945] = clik.newPhoto({"id":4326945,"src":"1174_Kelso_Abbey_880_x_297_thumb.jpg","galleries_id":264639,"server_id":18,"link":"photo_4326945.html","width":130,"caption":"1174 Kelso Abbey 880 x 297","height":44});
															thumbnails[4549576] = clik.newPhoto({"id":4549576,"src":"1463_Dryburgh_Abbey_1_880_x_297_thumb.jpg","galleries_id":264639,"server_id":18,"link":"photo_4549576.html","width":130,"caption":"1463 Dryburgh Abbey 1 880 x 297","height":44});
															thumbnails[4549577] = clik.newPhoto({"id":4549577,"src":"1464_Dryburgh_Abbey_2_880_x_297_thumb.jpg","galleries_id":264639,"server_id":18,"link":"photo_4549577.html","width":130,"caption":"1464 Dryburgh Abbey 2 880 x 297","height":44});
															thumbnails[4549579] = clik.newPhoto({"id":4549579,"src":"1466_Dryburgh_Abbey_4_880_x_297_thumb.jpg","galleries_id":264639,"server_id":18,"link":"photo_4549579.html","width":130,"caption":"1466 Dryburgh Abbey 4 880 x 297","height":44});
															thumbnails[4385103] = clik.newPhoto({"id":4385103,"src":"1259_Edinburgh_from_Calton_Hill_880_x_2971_thumb.jpg","galleries_id":264647,"server_id":18,"link":"photo_4385103.html","width":130,"caption":"1259 Edinburgh Skyline 880 x 297","height":44});
															thumbnails[4358883] = clik.newPhoto({"id":4358883,"src":"1408_Edzell_Castle_4_880_x_297_thumb.jpg","galleries_id":264633,"server_id":18,"link":"photo_4358883.html","width":130,"caption":"1408 Edzell Castle 4 880 x 297","height":44});
															thumbnails[4366388] = clik.newPhoto({"id":4366388,"src":"1414_Broughty_Castle_4_880_x_297_thumb.jpg","galleries_id":264633,"server_id":18,"link":"photo_4366388.html","width":130,"caption":"1414 Broughty Castle 4 880 x 297","height":44});
															thumbnails[4366401] = clik.newPhoto({"id":4366401,"src":"1403_Huntly_Castle_3_HDR_880_x_297_thumb.jpg","galleries_id":264653,"server_id":18,"link":"photo_4366401.html","width":130,"caption":"1403 Huntly Castle 3 HDR 880 x 297","height":44});
															thumbnails[4366454] = clik.newPhoto({"id":4366454,"src":"1393_Duffus_Castle_2_HDR_880_x_297_thumb.jpg","galleries_id":264653,"server_id":18,"link":"photo_4366454.html","width":130,"caption":"1393 Duffus Castle 2 HDR 880 x 297","height":44});
															thumbnails[4366522] = clik.newPhoto({"id":4366522,"src":"1383_Blair_Castle_3_HDR_880_x_2971_thumb.jpg","galleries_id":264656,"server_id":18,"link":"photo_4366522.html","width":130,"caption":"1383 Blair Castle 3 HDR 880 x 297","height":44});
															thumbnails[4367519] = clik.newPhoto({"id":4367519,"src":"1377_Balvenie_Castle_HDR_880_x_297_thumb.jpg","galleries_id":264653,"server_id":18,"link":"photo_4367519.html","width":130,"caption":"1377 Balvenie Castle HDR 880 x 297","height":44});
															thumbnails[4367656] = clik.newPhoto({"id":4367656,"src":"1364_Castle_Menzies_4_HDR_880_x_2971_thumb.jpg","galleries_id":264656,"server_id":18,"link":"photo_4367656.html","width":130,"caption":"1364 Castle Menzies 4 HDR 880 x 297","height":44});
															thumbnails[4367747] = clik.newPhoto({"id":4367747,"src":"1353_Castle_Stuart_2_HDR_BW__880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4367747.html","width":130,"caption":"1353 Castle Stuart 2 HDR B&W  880 x 297","height":44});
															thumbnails[4373218] = clik.newPhoto({"id":4373218,"src":"1324_Duddingston_Golf_Course_28_HDR_880_x_297_thumb.jpg","galleries_id":264647,"server_id":18,"link":"photo_4373218.html","width":130,"caption":"1324 Duddingston Golf Course 28 HDR 880 x 297","height":44});
															thumbnails[4373281] = clik.newPhoto({"id":4373281,"src":"1314_Balvaird_Castle_3_BW_HDR_880_x_297_thumb.jpg","galleries_id":264656,"server_id":18,"link":"photo_4373281.html","width":130,"caption":"1314 Balvaird Castle 3 B&W HDR 880 x 297","height":44});
															thumbnails[4374719] = clik.newPhoto({"id":4374719,"src":"1289_Castle_Campbell_4_HDR_880_x_2971_thumb.jpg","galleries_id":264641,"server_id":18,"link":"photo_4374719.html","width":130,"caption":"1289 Castle Campbell 4 HDR 880 x 297","height":44});
															thumbnails[4375610] = clik.newPhoto({"id":4375610,"src":"1284_Lennoxlove_House_4_HDR_880_x_297_thumb.jpg","galleries_id":264644,"server_id":18,"link":"photo_4375610.html","width":130,"caption":"1284 Lennoxlove House 4 HDR 880 x 297","height":44});
															thumbnails[4378210] = clik.newPhoto({"id":4378210,"src":"Morton_Castle_2_880_x_297_thumb.jpg","galleries_id":264642,"server_id":18,"link":"photo_4378210.html","width":130,"caption":"1267 Morton Castle 2 880 x 297","height":44});
															thumbnails[4378992] = clik.newPhoto({"id":4378992,"src":"1208_Hibernian_Vertical_297_x_880_thumb.jpg","galleries_id":264660,"server_id":18,"link":"photo_4378992.html","width":130,"caption":"1208 Hibernian Vertical 297 x 880","height":385});
															thumbnails[4381628] = clik.newPhoto({"id":4381628,"src":"1086_Melrose_Abbey_2_bw_thumb.jpg","galleries_id":264639,"server_id":18,"link":"photo_4381628.html","width":130,"caption":"1086 Melrose Abbey 2 b&w","height":44});
															thumbnails[4384892] = clik.newPhoto({"id":4384892,"src":"1273_Caerlaverock_Castle_3_Night_Blue_880_x_2971_thumb.jpg","galleries_id":264642,"server_id":18,"link":"photo_4384892.html","width":130,"caption":"1273 Caerlaverock Castle 3 Night Blue 880 x 297","height":44});
															thumbnails[4384952] = clik.newPhoto({"id":4384952,"src":"1234_Stirling_Castle_BW_880_x_297_thumb.jpg","galleries_id":264657,"server_id":18,"link":"photo_4384952.html","width":130,"caption":"1234 Stirling Castle B&W 880 x 297","height":44});
															thumbnails[4385041] = clik.newPhoto({"id":4385041,"src":"1179_Niddrie_Castle_Golf_Course_2_880_x_2971_thumb.jpg","galleries_id":264659,"server_id":18,"link":"photo_4385041.html","width":130,"caption":"1179 Niddry Castle Golf Course 2 880 x 297","height":44});
															thumbnails[4385248] = clik.newPhoto({"id":4385248,"src":"1253_Dunstaffnage_Castle_880_x_297_thumb.jpg","galleries_id":264637,"server_id":18,"link":"photo_4385248.html","width":130,"caption":"1253 Dunstaffnage Castle 880 x 297","height":44});
															thumbnails[4385331] = clik.newPhoto({"id":4385331,"src":"1117_Lynn_of_Lorne_2_1200_x_297_thumb.jpg","galleries_id":264634,"server_id":18,"link":"photo_4385331.html","width":130,"caption":"1117 Lynn of Lorne 2 1200 x 297","height":32});
															thumbnails[4385422] = clik.newPhoto({"id":4385422,"src":"1076_Sheildag_1_1200_x_297_thumb.jpg","galleries_id":264650,"server_id":18,"link":"photo_4385422.html","width":130,"caption":"1076 Sheildag 1 1200 x 297","height":32});
															thumbnails[4413180] = clik.newPhoto({"id":4413180,"src":"1256_Kellie_Castle_4_880_x_297_thumb.jpg","galleries_id":264648,"server_id":18,"link":"photo_4413180.html","width":130,"caption":"1256 Kellie Castle 4 880 x 297","height":44});
															thumbnails[4413229] = clik.newPhoto({"id":4413229,"src":"1172_Colgarff_Castle_880_x_297_thumb.jpg","galleries_id":264649,"server_id":18,"link":"photo_4413229.html","width":130,"caption":"1172 Colgarff Castle 880 x 297","height":44});
															thumbnails[4418223] = clik.newPhoto({"id":4418223,"src":"1257_St_Andrews_Castle_880_x_2971_thumb.jpg","galleries_id":264648,"server_id":18,"link":"photo_4418223.html","width":130,"caption":"1257 St Andrews Castle 880 x 297","height":44});
															thumbnails[4559813] = clik.newPhoto({"id":4559813,"src":"1469_Loch_na_Keal_1_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4559813.html","width":130,"caption":"1469 Loch na Keal 1 880 x 297","height":44});
															thumbnails[4569368] = clik.newPhoto({"id":4569368,"src":"1273_Princes_Street_from_Edinburgh_Castle_1200_x_297_thumb.jpg","galleries_id":264645,"server_id":18,"link":"photo_4569368.html","width":130,"caption":"1273 Princes Street from Castle 1200 x 297","height":32});
															thumbnails[4610809] = clik.newPhoto({"id":4610809,"src":"1023_The_Shore_3_1200_x_297_thumb.jpg","galleries_id":264645,"server_id":18,"link":"photo_4610809.html","width":130,"caption":"1023 The Shore 3 1200 x 297","height":32});
															thumbnails[4796900] = clik.newPhoto({"id":4796900,"src":"1068_Melvich_Estuary_880_x_2971_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4796900.html","width":130,"caption":"1068 Melvich Estuary 880 x 297","height":44});
															thumbnails[4968201] = clik.newPhoto({"id":4968201,"src":"1481_Aberdour_Castle_4_880_x_297_thumb.jpg","galleries_id":264648,"server_id":18,"link":"photo_4968201.html","width":130,"caption":"1481 Aberdour Castle 4 880 x 297","height":44});
															thumbnails[5500745] = clik.newPhoto({"id":5500745,"src":"1489_Hermitage_Castle_5_thumb.jpg","galleries_id":264639,"server_id":18,"link":"photo_5500745.html","width":130,"caption":"1489 Hermitage Castle 5","height":44});
															thumbnails[6731538] = clik.newPhoto({"id":6731538,"src":"1497_Kellie_Castle_880_x_297_thumb.jpg","galleries_id":264648,"server_id":18,"link":"photo_6731538.html","width":130,"caption":"1497 Kellie Castle 880 x 297","height":44});
															thumbnails[4539345] = clik.newPhoto({"id":4539345,"src":"1458_Fionnphort_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4539345.html","width":130,"caption":"1458 Fionnphort 880 x 297","height":44});
															thumbnails[5500746] = clik.newPhoto({"id":5500746,"src":"1490_Hermitage_Castle_1_thumb.jpg","galleries_id":264639,"server_id":18,"link":"photo_5500746.html","width":130,"caption":"1490 Hermitage Castle 1","height":44});
															thumbnails[4500017] = clik.newPhoto({"id":4500017,"src":"1439_Fidden_Beach_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4500017.html","width":130,"caption":"1439 Fidden Beach 880 x 297","height":44});
															thumbnails[5500747] = clik.newPhoto({"id":5500747,"src":"1491_Hermitage_Castle_3_thumb.jpg","galleries_id":264639,"server_id":18,"link":"photo_5500747.html","width":130,"caption":"1491 Hermitage Castle 3","height":44});
															thumbnails[4491361] = clik.newPhoto({"id":4491361,"src":"1434_Aros_Castle_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4491361.html","width":130,"caption":"1434 Aros Castle 880 x 297","height":44});
															thumbnails[5500748] = clik.newPhoto({"id":5500748,"src":"1492_Hermitage_Castle_4_thumb.jpg","galleries_id":264639,"server_id":18,"link":"photo_5500748.html","width":130,"caption":"1492 Hermitage Castle 4","height":44});
															thumbnails[4485581] = clik.newPhoto({"id":4485581,"src":"1429_Duart_Castle_1_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4485581.html","width":130,"caption":"1429 Duart Castle 1 880 x 297","height":44});
															thumbnails[5500749] = clik.newPhoto({"id":5500749,"src":"1493_Hermitage_Castle_6_thumb.jpg","galleries_id":264639,"server_id":18,"link":"photo_5500749.html","width":130,"caption":"1493 Hermitage Castle 6","height":44});
															thumbnails[4484964] = clik.newPhoto({"id":4484964,"src":"1425_Tobermory_1_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4484964.html","width":130,"caption":"1425 Tobermory 1 880 x 297","height":44});
															thumbnails[4484602] = clik.newPhoto({"id":4484602,"src":"1424_Tobermory_2_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4484602.html","width":130,"caption":"1424 Tobermory 2 880 x 297","height":44});
															thumbnails[4559814] = clik.newPhoto({"id":4559814,"src":"1470_Loch_na_Keal_2_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4559814.html","width":130,"caption":"1470 Loch na Keal 2 880 x 297","height":44});
															thumbnails[4337777] = clik.newPhoto({"id":4337777,"src":"1280_Threave_Castle_HDR_880_x_297_thumb.jpg","galleries_id":264642,"server_id":18,"link":"photo_4337777.html","width":130,"caption":"1280 Threave Castle HDR 880x297","height":44});
															thumbnails[4358884] = clik.newPhoto({"id":4358884,"src":"1409_Edzell_Castle_5_880_x_2971_thumb.jpg","galleries_id":264633,"server_id":18,"link":"photo_4358884.html","width":130,"caption":"1409 Edzell Castle 5 880 x 297","height":44});
															thumbnails[4366389] = clik.newPhoto({"id":4366389,"src":"1415_Broughty_Castle_5_880_x_297_thumb.jpg","galleries_id":264633,"server_id":18,"link":"photo_4366389.html","width":130,"caption":"1415 Broughty Castle 5 880 x 297","height":44});
															thumbnails[4366402] = clik.newPhoto({"id":4366402,"src":"1410_Edzell_Castle_6_880_x_297_thumb.jpg","galleries_id":264633,"server_id":18,"link":"photo_4366402.html","width":130,"caption":"1410 Edzell Castle 6 880 x 297","height":44});
															thumbnails[4366455] = clik.newPhoto({"id":4366455,"src":"1394_Duffus_Castle_3_HDR_880_x_297_thumb.jpg","galleries_id":264653,"server_id":18,"link":"photo_4366455.html","width":130,"caption":"1394 Duffus Castle 3 HDR 880 x 297","height":44});
															thumbnails[4366523] = clik.newPhoto({"id":4366523,"src":"1384_Blair_Castle_4_HDR_880_x_297_thumb.jpg","galleries_id":264656,"server_id":18,"link":"photo_4366523.html","width":130,"caption":"1384 Blair Castle 4 HDR 880 x 297","height":44});
															thumbnails[4367520] = clik.newPhoto({"id":4367520,"src":"1379_Balvenie_Castle_3_HDR_880_x_297_thumb.jpg","galleries_id":264653,"server_id":18,"link":"photo_4367520.html","width":130,"caption":"1379 Balvenie Castle 3 HDR 880 x 297","height":44});
															thumbnails[4367657] = clik.newPhoto({"id":4367657,"src":"1365_Castle_Menzies_5_HDR_880_x_297_thumb.jpg","galleries_id":264656,"server_id":18,"link":"photo_4367657.html","width":130,"caption":"1365 Castle Menzies 5 HDR 880 x 297","height":44});
															thumbnails[4367748] = clik.newPhoto({"id":4367748,"src":"1354_Castle_Stuart_2_HDR_Sepia_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4367748.html","width":130,"caption":"1354 Castle Stuart 2 HDR Sepia 880 x 297","height":44});
															thumbnails[4373219] = clik.newPhoto({"id":4373219,"src":"1325_Duddingston_Golf_Course_29_HDR_880_x_297_thumb.jpg","galleries_id":264647,"server_id":18,"link":"photo_4373219.html","width":130,"caption":"1325 Duddingston Golf Course 29 HDR 880 x 297","height":44});
															thumbnails[4373282] = clik.newPhoto({"id":4373282,"src":"1315_Balvaird_Castle_3_Blue_HDR_880_x_297_thumb.jpg","galleries_id":264656,"server_id":18,"link":"photo_4373282.html","width":130,"caption":"1315 Balvaird Castle 3 Blue HDR 880 x 297","height":44});
															thumbnails[4374720] = clik.newPhoto({"id":4374720,"src":"1298_Castle_Campbell_3_BW__HDR_880_x_297_thumb.jpg","galleries_id":264641,"server_id":18,"link":"photo_4374720.html","width":130,"caption":"1298 Castle Campbell 3 B&W  HDR 880 x 297","height":44});
															thumbnails[4378993] = clik.newPhoto({"id":4378993,"src":"1211_Borthwick_Castle_Vertical_297_x_880_thumb.jpg","galleries_id":264660,"server_id":18,"link":"photo_4378993.html","width":130,"caption":"1211 Borthwick Castle Vertical 297 x 880","height":385});
															thumbnails[4381629] = clik.newPhoto({"id":4381629,"src":"1125_Stobo_castle_2_880_x_297_thumb.jpg","galleries_id":264639,"server_id":18,"link":"photo_4381629.html","width":130,"caption":"1125 Stobo castle 2 880 x 297","height":44});
															thumbnails[4384893] = clik.newPhoto({"id":4384893,"src":"1279_Caerlaverock_Castle_HDR_880_x_2971_thumb.jpg","galleries_id":264642,"server_id":18,"link":"photo_4384893.html","width":130,"caption":"1279 Caerlaverock Castle HDR 880 x 297","height":44});
															thumbnails[4384953] = clik.newPhoto({"id":4384953,"src":"1235_Stirling_Castle_Cool_Blue1_thumb.jpg","galleries_id":264657,"server_id":18,"link":"photo_4384953.html","width":130,"caption":"1235 Stirling Castle Cool Blue","height":44});
															thumbnails[4385104] = clik.newPhoto({"id":4385104,"src":"1274_Princes_Street_from_Edinburgh_Castle_1200_x_29712_thumb.jpg","galleries_id":264645,"server_id":18,"link":"photo_4385104.html","width":130,"caption":"1274 Princes Street 1200 x 297","height":32});
															thumbnails[4385332] = clik.newPhoto({"id":4385332,"src":"1121_Castle_Stalker_3_1200_x_297_thumb.jpg","galleries_id":264634,"server_id":18,"link":"photo_4385332.html","width":130,"caption":"1121 Castle Stalker 3 1200 x 297","height":32});
															thumbnails[4385423] = clik.newPhoto({"id":4385423,"src":"1115_Loch_Maree_Wester_Ross_1200_x_297_thumb.jpg","galleries_id":264650,"server_id":18,"link":"photo_4385423.html","width":130,"caption":"1115 Loch Maree Wester Ross 1200 x 297","height":32});
															thumbnails[4413230] = clik.newPhoto({"id":4413230,"src":"1252_Crathes_Castle_Cool_Blue_880_x_297_thumb.jpg","galleries_id":264649,"server_id":18,"link":"photo_4413230.html","width":130,"caption":"1252 Crathes Castle Cool Blue 880 x 297","height":44});
															thumbnails[4418224] = clik.newPhoto({"id":4418224,"src":"St_Fillans_cave_880_x_297_thumb.jpg","galleries_id":264648,"server_id":18,"link":"photo_4418224.html","width":130,"caption":"1167 St Fillan's Cave 880 x 297","height":44});
															thumbnails[4532668] = clik.newPhoto({"id":4532668,"src":"1455_Castle_Tioram_BW_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4532668.html","width":130,"caption":"1455 Castle Tioram B&W 880 x 297","height":44});
															thumbnails[4569369] = clik.newPhoto({"id":4569369,"src":"1290_Burleigh_Castle_HDR_880_x_2971_thumb.jpg","galleries_id":264656,"server_id":18,"link":"photo_4569369.html","width":130,"caption":"1290 Burleigh Castle HDR 880 x 297","height":44});
															thumbnails[4610810] = clik.newPhoto({"id":4610810,"src":"1055_Hampden_from_Royal_Box_880_x_297_thumb.jpg","galleries_id":266657,"server_id":18,"link":"photo_4610810.html","width":130,"caption":"1055 Hampden from Royal Box 880 x 297","height":44});
															thumbnails[4796901] = clik.newPhoto({"id":4796901,"src":"1070_Neptunes_Staircase_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4796901.html","width":130,"caption":"1070 Neptunes Staircase 880 x 297","height":44});
															thumbnails[4968202] = clik.newPhoto({"id":4968202,"src":"1482_Aberdour_Castle_6_880_x_297_thumb.jpg","galleries_id":264648,"server_id":18,"link":"photo_4968202.html","width":130,"caption":"1482 Aberdour Castle 6 880 x 297","height":44});
															thumbnails[6731539] = clik.newPhoto({"id":6731539,"src":"1498_Leith_880_x_297_thumb.jpg","galleries_id":264647,"server_id":18,"link":"photo_6731539.html","width":130,"caption":"1498 Leith 880 x 297","height":44});
															thumbnails[4532667] = clik.newPhoto({"id":4532667,"src":"1454_Castle_Tioram_2_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4532667.html","width":130,"caption":"1454 Castle Tioram 2 880 x 297","height":44});
															thumbnails[4548466] = clik.newPhoto({"id":4548466,"src":"1462_Castle_Tioram_2_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4548466.html","width":130,"caption":"1462 Castle Tioram 2 880 x 297","height":44});
															thumbnails[4366456] = clik.newPhoto({"id":4366456,"src":"1395_Duffus_Castle_4_HDR_880_x_297_thumb.jpg","galleries_id":264653,"server_id":18,"link":"photo_4366456.html","width":130,"caption":"1395 Duffus Castle 4 HDR 880 x 297","height":44});
															thumbnails[4366524] = clik.newPhoto({"id":4366524,"src":"1385_Kilravock_Castle_HDR_880_x_297_thumb.jpg","galleries_id":264653,"server_id":18,"link":"photo_4366524.html","width":130,"caption":"1385 Kilravock Castle HDR 880 x 297","height":44});
															thumbnails[4367749] = clik.newPhoto({"id":4367749,"src":"1355_Castle_Stuart_2_HDR_Blue_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4367749.html","width":130,"caption":"1355 Castle Stuart 2 HDR Blue 880 x 297","height":44});
															thumbnails[4373220] = clik.newPhoto({"id":4373220,"src":"1326_Duddingston_Golf_Course_16th_HDR_880_x_297_thumb.jpg","galleries_id":264647,"server_id":18,"link":"photo_4373220.html","width":130,"caption":"1326 Duddingston Golf Course 16th HDR 880 x 297","height":44});
															thumbnails[4373283] = clik.newPhoto({"id":4373283,"src":"1316_Balvaird_Castle_3_Sepia_HDR_880_x_297_thumb.jpg","galleries_id":264656,"server_id":18,"link":"photo_4373283.html","width":130,"caption":"1316 Balvaird Castle 3 Sepia HDR 880 x 297","height":44});
															thumbnails[4374721] = clik.newPhoto({"id":4374721,"src":"1299_Castle_Campbell_3_Blue_HDR_880_x_297_thumb.jpg","galleries_id":264641,"server_id":18,"link":"photo_4374721.html","width":130,"caption":"1299 Castle Campbell 3 Blue HDR 880 x 297","height":44});
															thumbnails[4378994] = clik.newPhoto({"id":4378994,"src":"1213_Forth_Bridge__North_Queensferry_2_880_x_297_thumb.jpg","galleries_id":264660,"server_id":18,"link":"photo_4378994.html","width":130,"caption":"1213 Forth Bridge & North Queensferry 2 880 x 297","height":385});
															thumbnails[4385333] = clik.newPhoto({"id":4385333,"src":"1124_Oban_Harbour_3_1200_x_297_thumb.jpg","galleries_id":264634,"server_id":18,"link":"photo_4385333.html","width":130,"caption":"1124 Oban Harbour 3 1200 x 297","height":32});
															thumbnails[4560203] = clik.newPhoto({"id":4560203,"src":"1471_Thirlestane_Castle_1_880_x_297_thumb.jpg","galleries_id":264639,"server_id":18,"link":"photo_4560203.html","width":130,"caption":"1471 Thirlestane Castle 1 880 x 297","height":44});
															thumbnails[4796902] = clik.newPhoto({"id":4796902,"src":"1075_Rest__Be_Thankful_880_x_297_thumb.jpg","galleries_id":264637,"server_id":18,"link":"photo_4796902.html","width":130,"caption":"1075 Rest & Be Thankful 880 x 297","height":44});
															thumbnails[4968203] = clik.newPhoto({"id":4968203,"src":"1483_Aberdour_Castle_7_880_x_297_thumb.jpg","galleries_id":264648,"server_id":18,"link":"photo_4968203.html","width":130,"caption":"1483 Aberdour Castle 7 880 x 297","height":44});
															thumbnails[4560204] = clik.newPhoto({"id":4560204,"src":"1472_Thirlestane_Castle_2_880_x_297_thumb.jpg","galleries_id":264639,"server_id":18,"link":"photo_4560204.html","width":130,"caption":"1472 Thirlestane Castle 2 880 x 297","height":44});
															thumbnails[4549578] = clik.newPhoto({"id":4549578,"src":"1465_Dryburgh_Abbey_3_880_x_297_thumb.jpg","galleries_id":264639,"server_id":18,"link":"photo_4549578.html","width":130,"caption":"1465 Dryburgh Abbey 3 880 x 297","height":44});
															thumbnails[4366457] = clik.newPhoto({"id":4366457,"src":"1396_Duffus_Castle_5_HDR_880_x_2971_thumb.jpg","galleries_id":264653,"server_id":18,"link":"photo_4366457.html","width":130,"caption":"1396 Duffus Castle 5 HDR 880 x 297","height":44});
															thumbnails[4366525] = clik.newPhoto({"id":4366525,"src":"1386_Kilravock_Castle_2_HDR_880_x_297_thumb.jpg","galleries_id":264653,"server_id":18,"link":"photo_4366525.html","width":130,"caption":"1386 Kilravock Castle HDR 880 x 297","height":44});
															thumbnails[4373284] = clik.newPhoto({"id":4373284,"src":"1317_Balvaird_Castle_4_880_x_2971_thumb.jpg","galleries_id":264656,"server_id":18,"link":"photo_4373284.html","width":130,"caption":"1317 Balvaird Castle 4 880 x 297","height":44});
															thumbnails[4374722] = clik.newPhoto({"id":4374722,"src":"1300_Castle_Campbell_3_Vintage_HDR_880_x_297_thumb.jpg","galleries_id":264641,"server_id":18,"link":"photo_4374722.html","width":130,"caption":"1300 Castle Campbell 3 Vintage HDR 880 x 297","height":44});
															thumbnails[4378995] = clik.newPhoto({"id":4378995,"src":"1214_South_Queensferry_880_x_297_thumb.jpg","galleries_id":264660,"server_id":18,"link":"photo_4378995.html","width":130,"caption":"1214 South Queensferry 880 x 297","height":385});
															thumbnails[4381631] = clik.newPhoto({"id":4381631,"src":"Melrose_centre_880_x_297_thumb.jpg","galleries_id":264639,"server_id":18,"link":"photo_4381631.html","width":130,"caption":"1116 Melrose centre 880 x 297","height":44});
															thumbnails[4381749] = clik.newPhoto({"id":4381749,"src":"1112_North_Berwick_Harbour_3_880_x297_thumb.jpg","galleries_id":264644,"server_id":18,"link":"photo_4381749.html","width":130,"caption":"1112 North Berwick Harbour 3 880 x297","height":44});
															thumbnails[4559759] = clik.newPhoto({"id":4559759,"src":"1467_Leaderfoot_Viaduct_1_880_x_297_thumb.jpg","galleries_id":264639,"server_id":18,"link":"photo_4559759.html","width":130,"caption":"1467 Leaderfoot Viaduct 1 880 x 297","height":44});
															thumbnails[4610812] = clik.newPhoto({"id":4610812,"src":"1068_Melvich_Estuary_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4610812.html","width":130,"caption":"1068 Melvich Estuary 880 x 297","height":44});
															thumbnails[4796903] = clik.newPhoto({"id":4796903,"src":"1080_Smoo_Cave_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4796903.html","width":130,"caption":"1080 Smoo Cave 880 x 297","height":44});
															thumbnails[4968204] = clik.newPhoto({"id":4968204,"src":"1484_Doune_Castle_1_880_x_297_thumb.jpg","galleries_id":264656,"server_id":18,"link":"photo_4968204.html","width":130,"caption":"1484 Doune Castle 1 880 x 297","height":44});
															thumbnails[4381748] = clik.newPhoto({"id":4381748,"src":"1111_North_Berwick_Harbour__2_880x297_thumb.jpg","galleries_id":264644,"server_id":18,"link":"photo_4381748.html","width":130,"caption":"1111 North Berwick Harbour  2 880x297","height":44});
															thumbnails[4559760] = clik.newPhoto({"id":4559760,"src":"1468_Leaderfoot_Viaduct_2_880_x_297_thumb.jpg","galleries_id":264639,"server_id":18,"link":"photo_4559760.html","width":130,"caption":"1468 Leaderfoot Viaduct 2 880 x 297","height":44});
															thumbnails[4381745] = clik.newPhoto({"id":4381745,"src":"1110_North_Berwick_with_Bass_Rock__The_Law_880_x_297_thumb.jpg","galleries_id":264644,"server_id":18,"link":"photo_4381745.html","width":130,"caption":"1110 North Berwick with Bass Rock 880 x 297","height":44});
															thumbnails[4473408] = clik.newPhoto({"id":4473408,"src":"North_Berwick_from_Law_BW_880_x_297_thumb.jpg","galleries_id":264644,"server_id":18,"link":"photo_4473408.html","width":130,"caption":"1092 North Berwick from Law B&W 880 x 297","height":44});
															thumbnails[4381743] = clik.newPhoto({"id":4381743,"src":"1108_North_Berwick_with_Bass_Rock__The_Law_880_x_297_thumb.jpg","galleries_id":264644,"server_id":18,"link":"photo_4381743.html","width":130,"caption":"1108 North Berwick with Bass Rock 880 x 297","height":44});
															thumbnails[4473400] = clik.newPhoto({"id":4473400,"src":"1091_North_Berwick_Beach_880_x_297_thumb.jpg","galleries_id":264644,"server_id":18,"link":"photo_4473400.html","width":130,"caption":"1091 North Berwick Beach 880 x 297","height":44});
															thumbnails[4337845] = clik.newPhoto({"id":4337845,"src":"1327_Duns_Castle_HDR_880_x_297_thumb.jpg","galleries_id":264639,"server_id":18,"link":"photo_4337845.html","width":130,"caption":"1327 Duns Castle HDR 880 x 297","height":44});
															thumbnails[4366526] = clik.newPhoto({"id":4366526,"src":"1387_Kilravock_Castle_3_HDR_880_x_2971_thumb.jpg","galleries_id":264653,"server_id":18,"link":"photo_4366526.html","width":130,"caption":"1387 Kilravock Castle 3 HDR 880 x 297","height":44});
															thumbnails[4367516] = clik.newPhoto({"id":4367516,"src":"1370_Eilean_Donan_1_HDR_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4367516.html","width":130,"caption":"1370 Eilean Donan 1 HDR 880 x 297","height":44});
															thumbnails[4373285] = clik.newPhoto({"id":4373285,"src":"1318_Balvaird_Castle_5_HDR_880_x_297_thumb.jpg","galleries_id":264656,"server_id":18,"link":"photo_4373285.html","width":130,"caption":"1318 Balvaird Castle 5 HDR 880 x 297","height":44});
															thumbnails[4374723] = clik.newPhoto({"id":4374723,"src":"1307_Castle_Campbell_HDR_BW_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4374723.html","width":130,"caption":"1307 Castle Campbell HDR B&W 880 x 297","height":44});
															thumbnails[4378996] = clik.newPhoto({"id":4378996,"src":"1216_St_Andrews_Cathedral_297_x_880_thumb.jpg","galleries_id":264660,"server_id":18,"link":"photo_4378996.html","width":130,"caption":"1216 St Andrews Cathedral 297 x 880","height":385});
															thumbnails[4381750] = clik.newPhoto({"id":4381750,"src":"1138_North_Berwick_from_Law_BW_1200_x_297_thumb.jpg","galleries_id":264643,"server_id":18,"link":"photo_4381750.html","width":130,"caption":"1138 North Berwick from Law B&W 1200 x 297","height":32});
															thumbnails[4610813] = clik.newPhoto({"id":4610813,"src":"Brora_Harbour_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4610813.html","width":130,"caption":"1047 Brora Harbour 880 x 297","height":44});
															thumbnails[4968205] = clik.newPhoto({"id":4968205,"src":"1485_Doune_Castle_2_880_x_297_thumb.jpg","galleries_id":264656,"server_id":18,"link":"photo_4968205.html","width":130,"caption":"1485 Doune Castle 2 880 x 297","height":44});
															thumbnails[4337846] = clik.newPhoto({"id":4337846,"src":"1328_Duns_Castle_2_HDR_880_x_297_thumb.jpg","galleries_id":264639,"server_id":18,"link":"photo_4337846.html","width":130,"caption":"1328 Duns Castle 2 HDR 880x297","height":44});
															thumbnails[4367517] = clik.newPhoto({"id":4367517,"src":"1371_Eilean_Donan_11_HDR_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4367517.html","width":130,"caption":"1371 Eilean Donan 11 HDR 880 x 297","height":44});
															thumbnails[4367518] = clik.newPhoto({"id":4367518,"src":"1372_Eilean_Donan_2_HDR_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4367518.html","width":130,"caption":"1372 Eilean Donan 2 HDR 880 x 297","height":44});
															thumbnails[4367658] = clik.newPhoto({"id":4367658,"src":"1367_Eilean_Donan_5_HDR_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4367658.html","width":130,"caption":"1367 Eilean Donan 5 HDR 880 x 297","height":44});
															thumbnails[4367659] = clik.newPhoto({"id":4367659,"src":"1368_Eilean_Donan_6_HDR_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4367659.html","width":130,"caption":"1368 Eilean Donan 6 HDR 880 x 297","height":44});
															thumbnails[4367660] = clik.newPhoto({"id":4367660,"src":"1369_Eilean_Donan_7_HDR_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4367660.html","width":130,"caption":"1369 Eilean Donan 7 HDR 880 x 297","height":44});
															thumbnails[4337854] = clik.newPhoto({"id":4337854,"src":"1374_Eilean_Donan_3_HDR_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4337854.html","width":130,"caption":"1374 Eilean Donan 3 HDR 880 x 297","height":44});
															thumbnails[4337855] = clik.newPhoto({"id":4337855,"src":"1375_Eilean_Donan_4_HDR_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4337855.html","width":130,"caption":"1375 Eilean Donan 4 HDR 880 x 297","height":44});
															thumbnails[4366527] = clik.newPhoto({"id":4366527,"src":"1388_Spynie_Palace_HDR_880_x_297_thumb.jpg","galleries_id":264653,"server_id":18,"link":"photo_4366527.html","width":130,"caption":"1388 Spynie Palace HDR 880 x 297","height":44});
															thumbnails[4367752] = clik.newPhoto({"id":4367752,"src":"1358_Castle_Sinclair_Girnigoe_HDR_colour_pop_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4367752.html","width":130,"caption":"1358 Castle Sinclair Girnigoe colour pop 880 x 297","height":44});
															thumbnails[4374724] = clik.newPhoto({"id":4374724,"src":"1308_Castle_Campbell_HDR_Blue_880_x_297_thumb.jpg","galleries_id":264641,"server_id":18,"link":"photo_4374724.html","width":130,"caption":"1308 Castle Campbell HDR Blue 880 x 297","height":44});
															thumbnails[4378997] = clik.newPhoto({"id":4378997,"src":"1217_Dunrobin_Castle_4_Vertical_297_x_880_thumb.jpg","galleries_id":264660,"server_id":18,"link":"photo_4378997.html","width":130,"caption":"1217 Dunrobin Castle 4 Vertical 297 x 880","height":385});
															thumbnails[4381751] = clik.newPhoto({"id":4381751,"src":"1201_North_Berwick_Seafront_1200_x_297_thumb.jpg","galleries_id":264643,"server_id":18,"link":"photo_4381751.html","width":130,"caption":"1201 North Berwick Seafront 1200 x 297","height":32});
															thumbnails[4610814] = clik.newPhoto({"id":4610814,"src":"Castle_Stalker_Vertical_297_x_880_thumb.jpg","galleries_id":264660,"server_id":18,"link":"photo_4610814.html","width":130,"caption":"1040 Castle Stalker Vertical 297 x 880","height":385});
															thumbnails[4968206] = clik.newPhoto({"id":4968206,"src":"1486_Doune_Castle_3_880_x_297_thumb.jpg","galleries_id":264656,"server_id":18,"link":"photo_4968206.html","width":130,"caption":"1486 Doune Castle 3 880 x 297","height":44});
															thumbnails[4337847] = clik.newPhoto({"id":4337847,"src":"1337_Urquhart_Castle_3_HDR_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4337847.html","width":130,"caption":"1337 Urquhart Castle 3 HDR 880 x 297","height":44});
															thumbnails[4366528] = clik.newPhoto({"id":4366528,"src":"1389_Spynie_Palace_2_HDR_880_x_2971_thumb.jpg","galleries_id":264653,"server_id":18,"link":"photo_4366528.html","width":130,"caption":"1389 Spynie Palace 2 HDR 880 x 297","height":44});
															thumbnails[4374725] = clik.newPhoto({"id":4374725,"src":"1309_Castle_Campbell_HDR_Vintage_880_x_297_thumb.jpg","galleries_id":264641,"server_id":18,"link":"photo_4374725.html","width":130,"caption":"1309 Castle Campbell HDR Vintage 880 x 297","height":44});
															thumbnails[4381752] = clik.newPhoto({"id":4381752,"src":"1220_North_Berwick_View_1200_x_297_thumb.jpg","galleries_id":264643,"server_id":18,"link":"photo_4381752.html","width":130,"caption":"1220 North Berwick View 1200 x 297","height":32});
															thumbnails[4610815] = clik.newPhoto({"id":4610815,"src":"Connel_Bridge_1200_x_297_thumb.jpg","galleries_id":264650,"server_id":18,"link":"photo_4610815.html","width":130,"caption":"1051 Connel Bridge 1200 x 297","height":32});
															thumbnails[4796906] = clik.newPhoto({"id":4796906,"src":"1100_Carrick_a_Rede_View_to_Rathlin_Island__880_x_297_thumb.jpg","galleries_id":264660,"server_id":18,"link":"photo_4796906.html","width":130,"caption":"1100 Carrick a Rede View to Rathlin  880 x 297","height":385});
															thumbnails[4337848] = clik.newPhoto({"id":4337848,"src":"1341_Urquhart_Castle_4_HDR_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4337848.html","width":130,"caption":"1341 Urquhart Castle 4 HDR 880 x 297","height":44});
															thumbnails[4337849] = clik.newPhoto({"id":4337849,"src":"1344_Urquhart_Castle_5_HDR_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4337849.html","width":130,"caption":"1344 Urquhart Castle 5 HDR 880 x 297","height":44});
															thumbnails[4378999] = clik.newPhoto({"id":4378999,"src":"1226_Forth_Road_Bridge_Vertical_BW_297_x_880_thumb.jpg","galleries_id":264660,"server_id":18,"link":"photo_4378999.html","width":130,"caption":"1226 Forth Road Bridge Vertical B&W 297 x 880","height":385});
															thumbnails[4381753] = clik.newPhoto({"id":4381753,"src":"1223_North_Berwick_from_the_East_1200_x_297_thumb.jpg","galleries_id":264643,"server_id":18,"link":"photo_4381753.html","width":130,"caption":"1223 North Berwick from the East 1200 x 297","height":32});
															thumbnails[4610816] = clik.newPhoto({"id":4610816,"src":"Hampden_Front_thumb.jpg","galleries_id":266657,"server_id":18,"link":"photo_4610816.html","width":130,"caption":"1056 Hampden Front 880 x 297","height":44});
															thumbnails[4796907] = clik.newPhoto({"id":4796907,"src":"1195_View_from_Craigmillar_Castle_880_x_297_thumb.jpg","galleries_id":264660,"server_id":18,"link":"photo_4796907.html","width":130,"caption":"1195 View from Craigmillar Castle 880 x 297","height":385});
															thumbnails[4367750] = clik.newPhoto({"id":4367750,"src":"1356_Castle_Sinclair_Girnigoe_HDR_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4367750.html","width":130,"caption":"1356 Castle Sinclair Girnigoe HDR 880 x 297","height":44});
															thumbnails[4367751] = clik.newPhoto({"id":4367751,"src":"1357_Castle_Sinclair_Girnigoe_HDR_BW_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4367751.html","width":130,"caption":"1357 Castle Sinclair Girnigoe HDR B&W 880 x 297","height":44});
															thumbnails[4367753] = clik.newPhoto({"id":4367753,"src":"1359_Castle_Sinclair_Girnigoe_HDR_Sepia_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4367753.html","width":130,"caption":"1359 Castle Sinclair Girnigoe Sepia 880 x 297","height":44});
															thumbnails[4379000] = clik.newPhoto({"id":4379000,"src":"1246_Frosty_Morning_297_x_880_thumb.jpg","galleries_id":264660,"server_id":18,"link":"photo_4379000.html","width":130,"caption":"1246 Frosty Morning 297 x 880","height":385});
															thumbnails[4796908] = clik.newPhoto({"id":4796908,"src":"1204_Lauriston_Castle_Gardens_2_297_x_8801_thumb.jpg","galleries_id":264660,"server_id":18,"link":"photo_4796908.html","width":130,"caption":"1204 Lauriston Castle Gardens 2 297 x 880","height":385});
															thumbnails[4337850] = clik.newPhoto({"id":4337850,"src":"1348_Castle_Stuart_HDR_880_x_297_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4337850.html","width":130,"caption":"1348 Castle Stuart HDR 880 x 297","height":44});
															thumbnails[4379001] = clik.newPhoto({"id":4379001,"src":"1296_Huntingtower_Castle_4_HDR_297_x_880_thumb.jpg","galleries_id":264660,"server_id":18,"link":"photo_4379001.html","width":130,"caption":"1296 Huntingtower Castle 4 HDR 297 x 880","height":385});
															thumbnails[4379002] = clik.newPhoto({"id":4379002,"src":"1310_Allt_Smoo_River_HDR_297_x_880_thumb.jpg","galleries_id":264660,"server_id":18,"link":"photo_4379002.html","width":130,"caption":"1310 Allt Smoo River HDR 297 x 880","height":385});
															thumbnails[4379003] = clik.newPhoto({"id":4379003,"src":"Cardoness_castle_297_x_880_thumb.jpg","galleries_id":264660,"server_id":18,"link":"photo_4379003.html","width":130,"caption":"1153 Cardoness Castle 297 x 880","height":385});
															thumbnails[4379004] = clik.newPhoto({"id":4379004,"src":"Carrick_a_Rede_view_880_x_297_thumb.jpg","galleries_id":264660,"server_id":18,"link":"photo_4379004.html","width":130,"caption":"1100 Carrick a Rede view 880 x 297","height":385});
															thumbnails[4796912] = clik.newPhoto({"id":4796912,"src":"Brora_Harbour_880_x_2971_thumb.jpg","galleries_id":264651,"server_id":18,"link":"photo_4796912.html","width":130,"caption":"Brora Harbour 880 x 297","height":44});
															thumbnails[4379005] = clik.newPhoto({"id":4379005,"src":"Carsluith_Castle_297_x_880_thumb.jpg","galleries_id":264660,"server_id":18,"link":"photo_4379005.html","width":130,"caption":"1152 Carsluith Castle 297 x 880","height":385});
															thumbnails[4379006] = clik.newPhoto({"id":4379006,"src":"Falkirk_Wheel_3_297_x_880_thumb.jpg","galleries_id":264660,"server_id":18,"link":"photo_4379006.html","width":130,"caption":"1149 Falkirk Wheel 297 x 880","height":385});
															thumbnails[4379007] = clik.newPhoto({"id":4379007,"src":"Scott_Monument_sepia_880_x_297_thumb.jpg","galleries_id":264660,"server_id":18,"link":"photo_4379007.html","width":130,"caption":"1140 Sir Walter Scott Monument Sepia 297 x 880","height":385});
															thumbnails[4337857] = clik.newPhoto({"id":4337857,"src":"1383_Blair_Castle_3_HDR_880_x_297_thumb.jpg","galleries_id":264656,"server_id":18,"link":"photo_4337857.html","width":130,"caption":"1383 Blair Castle 3 HDR 880 x 297","height":44});
															thumbnails[4796918] = clik.newPhoto({"id":4796918,"src":"Oban_Harbour_Panorama_880_x_297_thumb.jpg","galleries_id":264637,"server_id":18,"link":"photo_4796918.html","width":130,"caption":"Oban Harbour Panorama 880 x 297","height":44});
															thumbnails[4337864] = clik.newPhoto({"id":4337864,"src":"1402_Huntly_Castle_HDR_880_x_297_thumb.jpg","galleries_id":264653,"server_id":18,"link":"photo_4337864.html","width":130,"caption":"1402 Huntly Castle HDR 880 x 297","height":44});
															thumbnails[4337865] = clik.newPhoto({"id":4337865,"src":"1404_Forth_Bridges_Sepia_880_x_297_thumb.jpg","galleries_id":264647,"server_id":18,"link":"photo_4337865.html","width":130,"caption":"1404 Forth Bridges Sepia 880 x 297","height":44});
															thumbnails[4337868] = clik.newPhoto({"id":4337868,"src":"1416_Culross_1_880_x_297_thumb.jpg","galleries_id":264648,"server_id":18,"link":"photo_4337868.html","width":130,"caption":"1416 Culross 1 880 x 297","height":44});
															thumbnails[4337869] = clik.newPhoto({"id":4337869,"src":"1418_Culross_3_880_x_297_thumb.jpg","galleries_id":264648,"server_id":18,"link":"photo_4337869.html","width":130,"caption":"1418 Culross 3 880 x 297","height":44});
															thumbnails[4378796] = clik.newPhoto({"id":4378796,"src":"1200_Hailes_Castle_7_297_x_880_thumb.jpg","galleries_id":264660,"server_id":18,"link":"photo_4378796.html","width":130,"caption":"1200 Hailes Castle 7 297 x 880","height":385});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[264633] = clik.newGallery({"parentGallery":264611,"usePopups":true,"title":"Angus","link":"section318943_264633.html","maxRecords":0.0,"photoIDs":[4358880.0,4366385.0,4358881.0,4366386.0,4358882.0,4366387.0,4358883.0,4366388.0,4358884.0,4366389.0,4366402.0],"skipIndex":0,"section_code":"section318943","featured_images":"4366402,4366389,4366388,4366387,4366386,4366385,4358884,4358883,4358882,4358881","id":264633,"singleSection":false});				  						galleries[264634] = clik.newGallery({"parentGallery":264611,"usePopups":true,"title":"Argyll 1200mm","link":"section318943_264634.html","maxRecords":0.0,"photoIDs":[4385328.0,4385329.0,4385330.0,4385331.0,4385332.0,4385333.0],"skipIndex":0,"section_code":"section318943","featured_images":"4385333,4385332,4385331,4385330,4385329,4385328","id":264634,"singleSection":false});				  						galleries[264637] = clik.newGallery({"parentGallery":264611,"usePopups":true,"title":"Argyll 880mm","link":"section318943_264637.html","maxRecords":0.0,"photoIDs":[4381454.0,4385245.0,4517756.0,4538288.0,4796897.0,4381455.0,4385246.0,4385247.0,4385248.0,4796902.0,4796918.0],"skipIndex":0,"section_code":"section318943","featured_images":"4796918,4796902,4796897,4538288,4517756,4385248,4385247,4385246,4385245,4381455","id":264637,"singleSection":false});				  						galleries[264638] = clik.newGallery({"parentGallery":264611,"usePopups":true,"title":"Ayrshire","link":"section318943_264638.html","maxRecords":0.0,"photoIDs":[4485525.0,4540156.0,4613141.0],"skipIndex":0,"section_code":"section318943","featured_images":"4613141,4540156,4485525","id":264638,"singleSection":false});				  						galleries[264640] = clik.newGallery({"parentGallery":264611,"usePopups":true,"title":"Borders 1200mm","link":"section318943_264640.html","maxRecords":0.0,"photoIDs":[4418128.0,4418129.0],"skipIndex":0,"section_code":"section318943","featured_images":"4418129,4418128","id":264640,"singleSection":false});				  						galleries[264639] = clik.newGallery({"parentGallery":264611,"usePopups":true,"title":"Borders 880mm","link":"section318943_264639.html","maxRecords":0.0,"photoIDs":[4381625.0,4381626.0,4381630.0,4328073.0,4381627.0,4328072.0,4660349.0,4326945.0,4549576.0,4549577.0,4549579.0,4381628.0,5500745.0,5500746.0,5500747.0,5500748.0,5500749.0,4381629.0,4560203.0,4560204.0,4549578.0,4381631.0,4559759.0,4559760.0,4337845.0,4337846.0],"skipIndex":0,"section_code":"section318943","featured_images":"5500749,5500748,5500747,5500746,5500745,4660349,4560204,4560203,4559760,4559759","id":264639,"singleSection":false});				  						galleries[264641] = clik.newGallery({"parentGallery":264611,"usePopups":true,"title":"Clackmannanshire","link":"section318943_264641.html","maxRecords":0.0,"photoIDs":[4374716.0,4374717.0,4374719.0,4374720.0,4374721.0,4374722.0,4374724.0,4374725.0],"skipIndex":0,"section_code":"section318943","featured_images":"4374725,4374724,4374722,4374721,4374720,4374719,4374717,4374716","id":264641,"singleSection":false});				  						galleries[264642] = clik.newGallery({"parentGallery":264611,"usePopups":true,"title":"Dumfries","link":"section318943_264642.html","maxRecords":0.0,"photoIDs":[4350483.0,4378207.0,4384889.0,4378208.0,4384890.0,4378209.0,4384891.0,4378210.0,4384892.0,4337777.0,4384893.0],"skipIndex":0,"section_code":"section318943","featured_images":"4384893,4384892,4384891,4384890,4384889,4378210,4378209,4378208,4378207,4350483","id":264642,"singleSection":false});				  						galleries[264643] = clik.newGallery({"parentGallery":264611,"usePopups":true,"title":"East Lothian 1200mm","link":"section318943_264643.html","maxRecords":0.0,"photoIDs":[4381769.0,4473407.0,4381770.0,4381871.0,4381750.0,4381751.0,4381752.0,4381753.0],"skipIndex":0,"section_code":"section318943","featured_images":"4473407,4381871,4381770,4381769,4381753,4381752,4381751,4381750","id":264643,"singleSection":false});				  						galleries[264644] = clik.newGallery({"parentGallery":264611,"usePopups":true,"title":"East Lothian 880mm","link":"section318943_264644.html","maxRecords":0.0,"photoIDs":[4328075.0,4328078.0,4328126.0,5090651.0,5096951.0,4375607.0,4384983.0,4561695.0,4569365.0,4337774.0,4375608.0,4384984.0,4375609.0,4384985.0,4375610.0,4381749.0,4381748.0,4381745.0,4473408.0,4381743.0,4473400.0],"skipIndex":0,"section_code":"section318943","featured_images":"5096951,5090651,4569365,4561695,4473408,4473400,4384985,4384984,4384983,4381749","id":264644,"singleSection":false});				  						galleries[264645] = clik.newGallery({"parentGallery":264611,"usePopups":true,"title":"Edinburgh 1200mm","link":"section318943_264645.html","maxRecords":0.0,"photoIDs":[4326865.0,4326877.0,4328116.0,4381862.0,4381869.0,4385100.0,4400425.0,4548886.0,4609753.0,4381870.0,4385101.0,4610807.0,4385102.0,4610808.0,4569368.0,4610809.0,4385104.0],"skipIndex":0,"section_code":"section318943","featured_images":"4610809,4610808,4610807,4609753,4569368,4548886,4400425,4385104,4385102,4385101","id":264645,"singleSection":false});				  						galleries[264647] = clik.newGallery({"parentGallery":264611,"usePopups":true,"title":"Edinburgh 880mm","link":"section318943_264647.html","maxRecords":0.0,"photoIDs":[4328106.0,4328112.0,4328123.0,7183839.0,4326869.0,4373215.0,4373226.0,4413110.0,4413115.0,4569167.0,4569459.0,6876766.0,4373216.0,4413111.0,4413116.0,4569168.0,6876767.0,4337775.0,4373217.0,6876768.0,4385103.0,4373218.0,4373219.0,6731539.0,4373220.0,4337865.0],"skipIndex":0,"section_code":"section318943","featured_images":"7183839,6876768,6876767,6876766,6731539,4569459,4569168,4569167,4413116,4413115","id":264647,"singleSection":false});				  						galleries[264648] = clik.newGallery({"parentGallery":264611,"usePopups":true,"title":"Fife","link":"section318943_264648.html","maxRecords":0.0,"photoIDs":[4326943.0,4358874.0,4381665.0,4413177.0,4418220.0,4968198.0,6731535.0,4381666.0,4413178.0,4418221.0,4968199.0,6731536.0,4381668.0,4413179.0,4418222.0,4968200.0,6731537.0,4413180.0,4418223.0,4968201.0,6731538.0,4418224.0,4968202.0,4968203.0,4337868.0,4337869.0],"skipIndex":0,"section_code":"section318943","featured_images":"6731538,6731537,6731536,6731535,4968203,4968202,4968201,4968200,4968199,4968198","id":264648,"singleSection":false});				  						galleries[272522] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Football ","link":"section318943_272522.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"section318943","featured_images":"","id":272522,"singleSection":false});				  						galleries[264686] = clik.newGallery({"parentGallery":264611,"usePopups":true,"title":"Grampian 1200mm","link":"section318943_264686.html","maxRecords":0.0,"photoIDs":[4328107.0],"skipIndex":0,"section_code":"section318943","featured_images":4328107.0,"id":264686,"singleSection":false});				  						galleries[264649] = clik.newGallery({"parentGallery":264611,"usePopups":true,"title":"Grampian 880mm","link":"section318943_264649.html","maxRecords":0.0,"photoIDs":[4413198.0,4413216.0,4413226.0,4413199.0,4413217.0,4413227.0,4413200.0,4413228.0,4413229.0,4413230.0],"skipIndex":0,"section_code":"section318943","featured_images":"4413230,4413229,4413228,4413227,4413226,4413217,4413216,4413200,4413199,4413198","id":264649,"singleSection":false});				  						galleries[264650] = clik.newGallery({"parentGallery":264611,"usePopups":true,"title":"Highlands & Islands 1200mm","link":"section318943_264650.html","maxRecords":0.0,"photoIDs":[4349713.0,4381692.0,4385419.0,4381693.0,4385420.0,4385421.0,4385422.0,4385423.0,4610815.0],"skipIndex":0,"section_code":"section318943","featured_images":"4610815,4385423,4385422,4385421,4385420,4385419,4381693,4381692,4349713","id":264650,"singleSection":false});				  						galleries[264651] = clik.newGallery({"parentGallery":264611,"usePopups":true,"title":"Highlands & Islands 880mm","link":"section318943_264651.html","maxRecords":0.0,"photoIDs":[7623023.0,4326871.0,4367744.0,4385067.0,4413308.0,4478552.0,4485058.0,4485095.0,4486650.0,4490887.0,4491946.0,4499372.0,4502283.0,4509863.0,4517795.0,4518594.0,4518725.0,4518886.0,4519001.0,4519368.0,4519603.0,4522334.0,4532411.0,4532582.0,4532648.0,4538345.0,4548420.0,4548439.0,4518541.0,4366485.0,4486562.0,4366486.0,4326867.0,4326880.0,4367745.0,4490888.0,4491947.0,4499373.0,4375865.0,4367653.0,4796898.0,4385068.0,4375866.0,4367654.0,4366487.0,4375867.0,4367747.0,4559813.0,4796900.0,4539345.0,4500017.0,4491361.0,4485581.0,4484964.0,4484602.0,4559814.0,4367748.0,4532668.0,4796901.0,4532667.0,4548466.0,4367749.0,4610812.0,4796903.0,4367516.0,4374723.0,4610813.0,4367517.0,4367518.0,4367658.0,4367659.0,4367660.0,4337854.0,4337855.0,4367752.0,4337847.0,4337848.0,4337849.0,4367750.0,4367751.0,4367753.0,4337850.0,4796912.0],"skipIndex":0,"section_code":"section318943","featured_images":"7623023,4796912,4796903,4796901,4796900,4796898,4610813,4610812,4559814,4559813","id":264651,"singleSection":false});				  						galleries[264652] = clik.newGallery({"parentGallery":264611,"usePopups":true,"title":"Lanarkshire","link":"section318943_264652.html","maxRecords":0.0,"photoIDs":[4328120.0,4328127.0,4569367.0],"skipIndex":0,"section_code":"section318943","featured_images":"4569367,4328127,4328120","id":264652,"singleSection":false});				  						galleries[264631] = clik.newGallery({"parentGallery":264611,"usePopups":true,"title":"Midlothian 1200mm","link":"section318943_264631.html","maxRecords":0.0,"photoIDs":[4326861.0],"skipIndex":0,"section_code":"section318943","featured_images":4326861.0,"id":264631,"singleSection":false});				  						galleries[264632] = clik.newGallery({"parentGallery":264611,"usePopups":true,"title":"Midlothian 880mm","link":"section318943_264632.html","maxRecords":0.0,"photoIDs":[7164600.0,4326874.0,4328108.0,4328119.0,4485037.0,4485038.0],"skipIndex":0,"section_code":"section318943","featured_images":"7164600,4485038,4485037,4328119,4328108,4326874","id":264632,"singleSection":false});				  						galleries[264653] = clik.newGallery({"parentGallery":264611,"usePopups":true,"title":"Moray","link":"section318943_264653.html","maxRecords":0.0,"photoIDs":[4366398.0,4366451.0,4366519.0,4367573.0,4366399.0,4366452.0,4366400.0,4366453.0,4366401.0,4366454.0,4367519.0,4366455.0,4367520.0,4366456.0,4366524.0,4366457.0,4366525.0,4366526.0,4366527.0,4366528.0,4337864.0],"skipIndex":0,"section_code":"section318943","featured_images":"4367573,4367520,4367519,4366528,4366527,4366526,4366525,4366524,4366519,4366457","id":264653,"singleSection":false});				  						galleries[264654] = clik.newGallery({"parentGallery":264611,"usePopups":true,"title":"Northern Ireland 1200mm","link":"section318943_264654.html","maxRecords":0.0,"photoIDs":[4384784.0,4559734.0,4384785.0,4384786.0],"skipIndex":0,"section_code":"section318943","featured_images":"4559734,4384786,4384785,4384784","id":264654,"singleSection":false});				  						galleries[264655] = clik.newGallery({"parentGallery":264611,"usePopups":true,"title":"Northern Ireland 880mm","link":"section318943_264655.html","maxRecords":0.0,"photoIDs":[4328104.0,4559735.0],"skipIndex":0,"section_code":"section318943","featured_images":"4559735,4328104","id":264655,"singleSection":false});				  						galleries[264656] = clik.newGallery({"parentGallery":264611,"usePopups":true,"title":"Perthshire","link":"section318943_264656.html","maxRecords":0.0,"photoIDs":[5091036.0,4373278.0,4384926.0,4337838.0,4366520.0,4373279.0,4384927.0,4337839.0,4366521.0,4367655.0,4373280.0,4384928.0,4366522.0,4367656.0,4373281.0,4366523.0,4367657.0,4373282.0,4569369.0,4373283.0,4373284.0,4968204.0,4373285.0,4968205.0,4968206.0,4337857.0],"skipIndex":0,"section_code":"section318943","featured_images":"5091036,4968206,4968205,4968204,4569369,4384928,4384927,4384926,4373285,4373284","id":264656,"singleSection":false});				  						galleries[295400] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Special Offers","link":"section353242.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"section353242","featured_images":"","id":295400,"singleSection":true});				  						galleries[264657] = clik.newGallery({"parentGallery":264611,"usePopups":true,"title":"Stirling & Falkirk 880mm","link":"section318943_264657.html","maxRecords":0.0,"photoIDs":[4384949.0,4384966.0,4384950.0,4569366.0,4384951.0,4384952.0,4384953.0],"skipIndex":0,"section_code":"section318943","featured_images":"4569366,4384966,4384953,4384952,4384951,4384950,4384949","id":264657,"singleSection":false});				  						galleries[266657] = clik.newGallery({"parentGallery":264611,"usePopups":true,"title":"Strathclyde 880mm","link":"section318943_266657.html","maxRecords":0.0,"photoIDs":[4796899.0,4610810.0,4610816.0],"skipIndex":0,"section_code":"section318943","featured_images":"4796899,4610816,4610810","id":266657,"singleSection":false});				  						galleries[264661] = clik.newGallery({"parentGallery":264612,"usePopups":true,"title":"Vertical 1200mm","link":"section318943_264661.html","maxRecords":0.0,"photoIDs":[4379045.0,4610806.0],"skipIndex":0,"section_code":"section318943","featured_images":"4610806,4379045","id":264661,"singleSection":false});				  						galleries[264660] = clik.newGallery({"parentGallery":264612,"usePopups":true,"title":"Vertical 880mm","link":"section318943_264660.html","maxRecords":0.0,"photoIDs":[4378989.0,4379042.0,4413342.0,4378990.0,4378991.0,4378992.0,4378993.0,4378994.0,4378995.0,4378996.0,4378997.0,4610814.0,4796906.0,4378999.0,4796907.0,4379000.0,4796908.0,4379001.0,4379002.0,4379003.0,4379004.0,4379005.0,4379006.0,4379007.0,4378796.0],"skipIndex":0,"section_code":"section318943","featured_images":"4796908,4796907,4796906,4610814,4413342,4379042,4379007,4379006,4379005,4379004","id":264660,"singleSection":false});				  						galleries[264659] = clik.newGallery({"parentGallery":264611,"usePopups":true,"title":"West Lothian","link":"section318943_264659.html","maxRecords":0.0,"photoIDs":[4385038.0,4413243.0,4385039.0,4413244.0,4385040.0,4413245.0,4385041.0],"skipIndex":0,"section_code":"section318943","featured_images":"4413245,4413244,4413243,4385041,4385040,4385039,4385038","id":264659,"singleSection":false});				  						galleries[264611] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Complete Catalogue","link":"section318943_264611.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"section318943","featured_images":"7623023,7183839,7164600,6876768,6876767,6876766,6731539,6731538,6731537,6731536","id":264611,"singleSection":false});				  						galleries[264613] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Latest Additions","link":"section318943_264613.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"section318943","featured_images":"","id":264613,"singleSection":false});				  						galleries[264614] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Framed Canvas Limited Editions","link":"section318943_264614.html","maxRecords":0.0,"photoIDs":[7183654.0,5276103.0,5276109.0,5276139.0,4562791.0,4562820.0,4562825.0,4660400.0,5180195.0,5180196.0,5180197.0],"skipIndex":0,"section_code":"section318943","featured_images":"7183654,5276139,5276109,5276103,5180197,5180196,5180195,4660400,4562825,4562820","id":264614,"singleSection":false});				  						galleries[264699] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Other formats","link":"section318943_264699.html","maxRecords":0.0,"photoIDs":[4538640.0],"skipIndex":0,"section_code":"section318943","featured_images":4538640.0,"id":264699,"singleSection":false});				  						galleries[264612] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Vertical Images","link":"section318943_264612.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"section318943","featured_images":"4796908,4796907,4796906,4610814,4610806,4413342,4379045,4379042,4379007,4379006","id":264612,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[231609] = '4549576,4548886';
imageSets[1] = '7183654,6876768,6876767,6876766,5180197,5180196,5180195,4613141,4549578,4538640,4532582,4522334,4519603,4502283,4500017,4499373,4499372,4486650,4485525,4485058,4484964,4484602,4478552,4473400,4375867,4375607,4374717,4326874,4326871,4326867';
imageSets[3] = '4538640,4379042,4375867,4375607,4374717';
imageSets[232184] = '4613141,4610816,4610815,4610813,4610812,4610810,4610809,4610808,4610807,4609753,4569459,4569369,4569368,4569367,4569366,4569365,4569168,4569167,4562825,4562820,4561695,4560204,4560203,4559814,4559813,4559760,4559759,4559735,4549579,4549578,4549577,4549576,4548886,4548466,4548439,4548420,4540156,4539345,4538640,4538345,4538288,4532668,4532667,4532648,4532582,4532411,4522334,4519603,4519368,4519001,4518886,4518725,4518594,4518541,4517795,4517756,4509863,4502283,4500017,4499373,4499372,4491947,4491946,4491361,4490888,4490887,4486650,4486562,4485581,4485525,4485095,4485058,4485038,4485037,4484964,4484602,4478552,4473408,4473407,4473400,4418224,4418223,4418222,4418221,4418220,4418129,4418128,4413308,4413245,4413244,4413243,4413230,4413229,4413228,4413227,4413226,4413217,4413216,4413200,4413199,4413198,4413180,4413179,4413178,4413177,4413116,4413115,4413111,4413110,4385419,4385331,4385330,4385329,4385328,4385248,4385247,4385246,4385245,4385103,4385102,4385101,4385068,4385067,4385041,4385040,4385039,4385038,4384985,4384984,4384983,4384966,4384952,4384951,4384950,4384949,4384928,4384927,4384926,4384893,4384892,4384891,4384890,4384889,4381871,4381869,4381862,4381770,4381769,4381749,4381748,4381745,4381743,4381668,4381666,4381665,4381631,4381630,4381629,4381628,4381627,4381626,4381625,4381455,4381454,4378210,4378209,4378208,4378207,4375867,4375866,4375865,4375610,4375609,4375608,4375607,4374725,4374724,4374723,4374722,4374721,4374720,4374719,4374717,4374716,4373281,4373280,4373279,4373278,4373226,4373220,4373219,4373218,4373217,4373216,4373215,4367753,4367752,4367751,4367750,4367749,4367748,4367747,4367745,4367744,4367660,4367659,4367658,4367655,4367654,4367653,4367573,4367520,4367519,4367518,4367517,4367516,4366528,4366527,4366526,4366525,4366524,4366521,4366520,4366519,4366487,4366486,4366485,4366457,4366456,4366455,4366454,4366453,4366452,4366451,4366402,4366401,4366400,4366399,4366398,4366389,4366388,4366387,4366386,4366385,4358884,4358883,4358882,4358881,4358880,4358874,4350483,4337869,4337868,4337865,4337864,4337855,4337854,4337850,4337849,4337848,4337847,4337846,4337845,4337839,4337838,4337777,4337775,4337774,4328126,4328123,4328112,4328107,4328106,4328104,4328078,4328075,4328073,4328072,4326945,4326943,4326880,4326871,4326869,4326867';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/jimbowie/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/jimbowie/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/jimbowie/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/jimbowie/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/jimbowie/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/jimbowie/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/jimbowie/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/jimbowie/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/jimbowie/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/jimbowie/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/jimbowie/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/jimbowie/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/jimbowie/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/jimbowie/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/jimbowie/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/jimbowie/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/jimbowie/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/jimbowie/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/jimbowie/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/jimbowie/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/jimbowie/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/jimbowie/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/jimbowie/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/jimbowie/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 += 'section318943.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 && 'section318943' != '') {
					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 = 'Panoramic Prints of Scotland : ' + 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 panoramic image online <!-- PayPal Logo --><table border=\"0\" cellpadding=\"10\" cellspacing=\"0\" align=\"center\"><tr><td align=\"center\"></td></tr> <tr><td align=\"center\"><a href=\"#\" onclick=\"javascript:window.open(\'https://www.paypal.com/uk/cgi-bin/webscr?cmd=xpt/Marketing/popup/OLCWhatIsPayPal-outside\',\'olcwhatispaypal\',\'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=400, height=350\');\"><img  src=\"https://www.paypal.com/en_GB/i/bnr/horizontal_solution_PP.gif\" border=\"0\" alt=\"Solution Graphics\"></a></td></tr></table><!-- PayPal Logo --></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="JIMBOWIE">';
			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({					href: thumbnails[imageID].fnGalleryLink(gallery_id),					title: galleries[gallery_id].title				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

