window.thumbnails = new Object();
												thumbnails[42185] = new thumbnail(42185,'','long lens action','DSC_0009jpg_thumb.jpg',130, 64,1,'															#');
												thumbnails[42186] = new thumbnail(42186,'','penalty box action','DSC_0010jpg_thumb.jpg',130, 97,1,'															#');
												thumbnails[42188] = new thumbnail(42188,'','a near deserted National Stadium','DSC_0021jpg_thumb.jpg',130, 107,1,'															#');
												thumbnails[42189] = new thumbnail(42189,'','Border football action','DSC_0022jpg_thumb.jpg',130, 99,1,'															#');
												thumbnails[42193] = new thumbnail(42193,'','The Spiders of Queens Park FC','DSC_0039jpg_thumb.jpg',130, 96,1,'															#');
												thumbnails[42194] = new thumbnail(42194,'','In where it hurts','DSC_0040jpg_thumb.jpg',130, 72,1,'															#');
												thumbnails[42195] = new thumbnail(42195,'','striker\'s instinct','DSC_0042jpg_thumb.jpg',130, 91,1,'															#');
												thumbnails[42348] = new thumbnail(42348,'','football','DSC_0054jpg_thumb.jpg',130, 169,1,'															#');
												thumbnails[42349] = new thumbnail(42349,'','Scottish League action','DSC_0061jpg_thumb.jpg',130, 119,1,'															#');
												thumbnails[42350] = new thumbnail(42350,'','Berwick Rangers at home','DSC_0078jpg_thumb.jpg',130, 150,1,'															#');
												thumbnails[42353] = new thumbnail(42353,'','soccer','DSC_0091jpg_thumb.jpg',130, 103,1,'															#');
												thumbnails[42355] = new thumbnail(42355,'','goal celebration','DSC_0097jpg_thumb.jpg',130, 135,1,'															#');
												thumbnails[42356] = new thumbnail(42356,'','football','DSC_0108jpg_thumb.jpg',130, 91,1,'															#');
												thumbnails[42359] = new thumbnail(42359,'','floodlit match','DSC_0129jpg_thumb.jpg',130, 107,1,'															#');
												thumbnails[42360] = new thumbnail(42360,'','important goal','DSC_0152jpg_thumb.jpg',130, 128,1,'															#');
												thumbnails[42361] = new thumbnail(42361,'','football in Fife','DSC_0165jpg_thumb.jpg',130, 104,1,'															#');
												thumbnails[42364] = new thumbnail(42364,'','midweek cup-tie','dufc 2jpg_thumb.jpg',130, 113,1,'															#');
												thumbnails[42365] = new thumbnail(42365,'','soccer','ef 2jpg_thumb.jpg',130, 86,1,'															#');
												thumbnails[42375] = new thumbnail(42375,'','shot','morton 8jpg_thumb.jpg',130, 160,1,'															#');
												thumbnails[42376] = new thumbnail(42376,'','goalkeeper\'s ball','morton 9jpg_thumb.jpg',130, 193,1,'															#');
												thumbnails[42377] = new thumbnail(42377,'','football','onejpg_thumb.jpg',130, 91,1,'															#');
												thumbnails[42385] = new thumbnail(42385,'','winger','sjfc 5jpg_thumb.jpg',130, 101,1,'															#');
												thumbnails[42387] = new thumbnail(42387,'','sporting injury','sjfc 7jpg_thumb.jpg',130, 82,1,'															#');
												thumbnails[42390] = new thumbnail(42390,'','football','sjpg_thumb.jpg',130, 139,1,'															#');
												thumbnails[42392] = new thumbnail(42392,'','just past the post','wjpg1_thumb.jpg',130, 86,1,'															#');
												thumbnails[42395] = new thumbnail(42395,'','penalty box action','xjpg1_thumb.jpg',130, 76,1,'															#');
												thumbnails[225741] = new thumbnail(225741,'','Classic motorcycle racing at East Fortune','bike 1jpg_thumb.jpg',130, 86,1,'															#');
												thumbnails[225745] = new thumbnail(225745,'','The anxiety of the wait for the flag...','bike 2jpg_thumb.jpg',130, 86,1,'															#');
												thumbnails[225749] = new thumbnail(225749,'','The roar of the engines has to be experienced','bike 3jpg_thumb.jpg',130, 196,1,'															#');
												thumbnails[225752] = new thumbnail(225752,'','Sidecar racing seems to be for the clearly insane!','bike 4jpg_thumb.jpg',130, 60,1,'															#');
												thumbnails[225756] = new thumbnail(225756,'','High speed cornering','bike 5jpg_thumb.jpg',130, 47,1,'															#');
												thumbnails[225763] = new thumbnail(225763,'','Scoring against your local rivals','york 1jpg_thumb.jpg',130, 95,1,'															#');
												thumbnails[225765] = new thumbnail(225765,'','How to win friends and influence people','york 2jpg_thumb.jpg',130, 86,1,'															#');
												thumbnails[1427426] = new thumbnail(1427426,'','The Glasgow underground railway','glasgow subway low res_thumb.jpg',130, 24,1,'															#');
												thumbnails[1428298] = new thumbnail(1428298,'','East Lothian hills','guards van low res_thumb.jpg',130, 47,1,'															#');
												thumbnails[1428301] = new thumbnail(1428301,'','St Enoch Square Glasgow','st enoch square low res_thumb.jpg',130, 36,1,'															#');
												thumbnails[1428303] = new thumbnail(1428303,'','An east coast beach in autumn','t\'mam beach 1 low res_thumb.jpg',130, 37,1,'															#');
												thumbnails[1428305] = new thumbnail(1428305,'','Lammermuir Hills','white bridge low res_thumb.jpg',130, 29,1,'															#');
												thumbnails[1428306] = new thumbnail(1428306,'','Firth of Clyde','tower hill panorama low res_thumb.jpg',130, 25,1,'															#');
												thumbnails[1535835] = new thumbnail(1535835,'','Sheep in the Lammermuirs','sheep pen low res_thumb.jpg',130, 42,1,'															#');
												thumbnails[3261760] = new thumbnail(3261760,'','Bridge Over the Tweed','berwick bridge_thumb.jpg',130, 43,1,'															#');
												thumbnails[42123] = new thumbnail(42123,'4342','','aaajpg_thumb.jpg',130, 86,1,'																			photo_42123.html');
												thumbnails[42124] = new thumbnail(42124,'4342','wedding_example2','aajpg_thumb.jpg',130, 196,1,'																			photo_42124.html');
												thumbnails[42125] = new thumbnail(42125,'4342','wedding_example3','ajpg_thumb.jpg',130, 86,1,'																			photo_42125.html');
												thumbnails[42126] = new thumbnail(42126,'4342','wedding_example4','bbbjpg_thumb.jpg',130, 86,1,'																			photo_42126.html');
												thumbnails[42127] = new thumbnail(42127,'4342','wedding_example5','bbjpg_thumb.jpg',130, 196,1,'																			photo_42127.html');
												thumbnails[42128] = new thumbnail(42128,'4342','wedding_example6','bjpg_thumb.jpg',130, 86,1,'																			photo_42128.html');
												thumbnails[42129] = new thumbnail(42129,'4342','wedding_example7','cccjpg_thumb.jpg',130, 86,1,'																			photo_42129.html');
												thumbnails[42130] = new thumbnail(42130,'4342','wedding_example8','ccjpg_thumb.jpg',130, 196,1,'																			photo_42130.html');
												thumbnails[42131] = new thumbnail(42131,'4342','wedding_example9','cjpg_thumb.jpg',130, 86,1,'																			photo_42131.html');
												thumbnails[42132] = new thumbnail(42132,'4342','wedding_example10','dddjpg_thumb.jpg',130, 86,1,'																			photo_42132.html');
												thumbnails[42133] = new thumbnail(42133,'4342','wedding_example11','ddjpg_thumb.jpg',130, 196,1,'																			photo_42133.html');
												thumbnails[42135] = new thumbnail(42135,'4342','wedding_example12','djpg_thumb.jpg',130, 196,1,'																			photo_42135.html');
												thumbnails[42136] = new thumbnail(42136,'4342','wedding_example13','eeejpg_thumb.jpg',130, 86,1,'																			photo_42136.html');
												thumbnails[42137] = new thumbnail(42137,'4342','wedding_example14','eejpg_thumb.jpg',130, 86,1,'																			photo_42137.html');
												thumbnails[42139] = new thumbnail(42139,'4342','wedding_example16','fffjpg_thumb.jpg',130, 86,1,'																			photo_42139.html');
												thumbnails[42140] = new thumbnail(42140,'4342','wedding_example17','ffjpg_thumb.jpg',130, 180,1,'																			photo_42140.html');
												thumbnails[42141] = new thumbnail(42141,'4342','wedding_example18','fjpg_thumb.jpg',130, 86,1,'																			photo_42141.html');
												thumbnails[42142] = new thumbnail(42142,'4342','wedding_example19','ggjpg_thumb.jpg',130, 182,1,'																			photo_42142.html');
												thumbnails[42143] = new thumbnail(42143,'4342','wedding_example20','gjpg_thumb.jpg',130, 196,1,'																			photo_42143.html');
												thumbnails[42144] = new thumbnail(42144,'4342','wedding_example21','hhjpg_thumb.jpg',130, 196,1,'																			photo_42144.html');
												thumbnails[42145] = new thumbnail(42145,'4342','weddding_example22','hjpg_thumb.jpg',130, 86,1,'																			photo_42145.html');
												thumbnails[42146] = new thumbnail(42146,'4342','wedding_example23','iijpg_thumb.jpg',130, 86,1,'																			photo_42146.html');
												thumbnails[42147] = new thumbnail(42147,'4342','wedding_example24','ijpg_thumb.jpg',130, 86,1,'																			photo_42147.html');
												thumbnails[42149] = new thumbnail(42149,'4342','wedding_example26','jjpg_thumb.jpg',130, 196,1,'																			photo_42149.html');
												thumbnails[42150] = new thumbnail(42150,'4342','wedding_example27','kjpg_thumb.jpg',130, 196,1,'																			photo_42150.html');
												thumbnails[42151] = new thumbnail(42151,'4342','wedding_example28','kkjpg_thumb.jpg',130, 86,1,'																			photo_42151.html');
												thumbnails[42152] = new thumbnail(42152,'4342','wedding_example29','ljpg_thumb.jpg',130, 86,1,'																			photo_42152.html');
												thumbnails[42153] = new thumbnail(42153,'4342','wedding_example30','lljpg_thumb.jpg',130, 86,1,'																			photo_42153.html');
												thumbnails[42154] = new thumbnail(42154,'4342','wedding_example31','mjpg_thumb.jpg',130, 196,1,'																			photo_42154.html');
												thumbnails[42155] = new thumbnail(42155,'4342','wedding_example32','mmjpg_thumb.jpg',130, 86,1,'																			photo_42155.html');
												thumbnails[42157] = new thumbnail(42157,'4342','wedding_example34','nnjpg_thumb.jpg',130, 196,1,'																			photo_42157.html');
												thumbnails[42158] = new thumbnail(42158,'4342','wedding_example35','ojpg_thumb.jpg',130, 86,1,'																			photo_42158.html');
												thumbnails[42159] = new thumbnail(42159,'4342','wedding_example36','oojpg_thumb.jpg',130, 86,1,'																			photo_42159.html');
												thumbnails[42160] = new thumbnail(42160,'4342','wedding_example37','pjpg_thumb.jpg',130, 196,1,'																			photo_42160.html');
												thumbnails[42161] = new thumbnail(42161,'4342','wedding_example38','ppjpg_thumb.jpg',130, 196,1,'																			photo_42161.html');
												thumbnails[42162] = new thumbnail(42162,'4342','wedding_example39','qjpg_thumb.jpg',130, 196,1,'																			photo_42162.html');
												thumbnails[42163] = new thumbnail(42163,'4342','wedding_example40','qqjpg_thumb.jpg',130, 88,1,'																			photo_42163.html');
												thumbnails[42164] = new thumbnail(42164,'4342','wedding_example41','rjpg_thumb.jpg',130, 196,1,'																			photo_42164.html');
												thumbnails[42165] = new thumbnail(42165,'4342','wedding_example42','rrjpg_thumb.jpg',130, 86,1,'																			photo_42165.html');
												thumbnails[42166] = new thumbnail(42166,'4342','wedding_example43','ssjpg_thumb.jpg',130, 86,1,'																			photo_42166.html');
												thumbnails[42167] = new thumbnail(42167,'4342','','tjpg_thumb.jpg',130, 86,1,'																			photo_42167.html');
												thumbnails[42168] = new thumbnail(42168,'4342','wedding_example45','ttjpg_thumb.jpg',130, 86,1,'																			photo_42168.html');
												thumbnails[42169] = new thumbnail(42169,'4342','wedding_example46','ujpg_thumb.jpg',130, 186,1,'																			photo_42169.html');
												thumbnails[42170] = new thumbnail(42170,'4342','wedding_example47','uujpg_thumb.jpg',130, 196,1,'																			photo_42170.html');
												thumbnails[42171] = new thumbnail(42171,'4342','wedding_example48','vjpg_thumb.jpg',130, 196,1,'																			photo_42171.html');
												thumbnails[42172] = new thumbnail(42172,'4342','wedding_example49','vvjpg_thumb.jpg',130, 86,1,'																			photo_42172.html');
												thumbnails[42173] = new thumbnail(42173,'4342','wedding_example50','wjpg_thumb.jpg',130, 98,1,'																			photo_42173.html');
												thumbnails[42174] = new thumbnail(42174,'4342','wedding_example51','wwjpg_thumb.jpg',130, 196,1,'																			photo_42174.html');
												thumbnails[42175] = new thumbnail(42175,'4342','wedding_example52','xjpg_thumb.jpg',130, 196,1,'																			photo_42175.html');
												thumbnails[42176] = new thumbnail(42176,'4342','wedding_example53','xxjpg_thumb.jpg',130, 196,1,'																			photo_42176.html');
												thumbnails[42177] = new thumbnail(42177,'4342','wedding_example54','yjpg_thumb.jpg',130, 92,1,'																			photo_42177.html');
												thumbnails[42178] = new thumbnail(42178,'4342','wedding_example55','yyjpg_thumb.jpg',130, 196,1,'																			photo_42178.html');
												thumbnails[42179] = new thumbnail(42179,'4342','wedding_example56','zjpg_thumb.jpg',130, 196,1,'																			photo_42179.html');
												thumbnails[42180] = new thumbnail(42180,'4342','wedding-example57','zzjpg_thumb.jpg',130, 196,1,'																			photo_42180.html');
												thumbnails[42181] = new thumbnail(42181,'4342','wedding-example58','zzzjpg_thumb.jpg',130, 86,1,'																			photo_42181.html');
												thumbnails[42415] = new thumbnail(42415,'4373','Bass Rock','Bass Rockjpg_thumb.jpg',130, 86,1,'																			photo_42415.html');
												thumbnails[42417] = new thumbnail(42417,'4373','Big Field','big fieldjpg_thumb.jpg',130, 86,1,'																			photo_42417.html');
												thumbnails[42422] = new thumbnail(42422,'4373','Coastal town','coastal townjpg_thumb.jpg',130, 86,1,'																			photo_42422.html');
												thumbnails[42426] = new thumbnail(42426,'4373','Golf Course from the air','golf coursejpg_thumb.jpg',130, 86,1,'																			photo_42426.html');
												thumbnails[42428] = new thumbnail(42428,'4373','Harbour','harbourjpg_thumb.jpg',130, 86,1,'																			photo_42428.html');
												thumbnails[42429] = new thumbnail(42429,'4373','Headland','headland 2jpg_thumb.jpg',130, 86,1,'																			photo_42429.html');
												thumbnails[42431] = new thumbnail(42431,'4373','Inlet','headland 3jpg_thumb.jpg',130, 86,1,'																			photo_42431.html');
												thumbnails[42433] = new thumbnail(42433,'4373','Motorway junction','m8 junc 3jpg_thumb.jpg',130, 196,1,'																			photo_42433.html');
												thumbnails[42434] = new thumbnail(42434,'4373','Edinburgh 10 miles to the east','m8 pic 2jpg_thumb.jpg',130, 86,1,'																			photo_42434.html');
												thumbnails[42436] = new thumbnail(42436,'4373','East Lothian Golf Course','microlight castleparkjpg_thumb.jpg',130, 85,1,'																			photo_42436.html');
												thumbnails[42437] = new thumbnail(42437,'4373','Museum of Flight','museum of flightjpg_thumb.jpg',130, 84,1,'																			photo_42437.html');
												thumbnails[42440] = new thumbnail(42440,'4373','Abstract harvest','pattern fieldjpg_thumb.jpg',130, 86,1,'																			photo_42440.html');
												thumbnails[42441] = new thumbnail(42441,'4373','Tractor in Field','tractor in field 2jpg_thumb.jpg',130, 86,1,'																			photo_42441.html');
												thumbnails[42442] = new thumbnail(42442,'4373','Gulls following the farmer','tractor in field 3jpg_thumb.jpg',130, 86,1,'																			photo_42442.html');
												thumbnails[42443] = new thumbnail(42443,'4373','Tricolour tractor','tractor in fieldjpg_thumb.jpg',130, 86,1,'																			photo_42443.html');
												thumbnails[42445] = new thumbnail(42445,'4374','fireworks1','1jpg_thumb.jpg',130, 83,1,'																			photo_42445.html');
												thumbnails[42446] = new thumbnail(42446,'4374','fireworks2','2jpg_thumb.jpg',130, 83,1,'																			photo_42446.html');
												thumbnails[42447] = new thumbnail(42447,'4374','fireworks3','3jpg_thumb.jpg',130, 83,1,'																			photo_42447.html');
												thumbnails[42448] = new thumbnail(42448,'4374','fireworks4','4jpg_thumb.jpg',130, 83,1,'																			photo_42448.html');
												thumbnails[42449] = new thumbnail(42449,'4374','fireworks5','5jpg_thumb.jpg',130, 87,1,'																			photo_42449.html');
												thumbnails[42450] = new thumbnail(42450,'4374','fireworks6','6jpg_thumb.jpg',130, 98,1,'																			photo_42450.html');
												thumbnails[42452] = new thumbnail(42452,'4374','fireworks8','8jpg_thumb.jpg',130, 203,1,'																			photo_42452.html');
												thumbnails[43048] = new thumbnail(43048,'4432','East Coast sunrise','1jpg1_thumb.jpg',130, 83,1,'																			photo_43048.html');
												thumbnails[43049] = new thumbnail(43049,'4432','Creels in Burnmouth Harbour','burnmouth creelsjpg_thumb.jpg',130, 86,1,'																			photo_43049.html');
												thumbnails[43050] = new thumbnail(43050,'4432','Cloch Lighthouse by Gourock','cloch 1jpg_thumb.jpg',130, 86,1,'																			photo_43050.html');
												thumbnails[43051] = new thumbnail(43051,'4432','Dinghy','dinghyjpg_thumb.jpg',130, 86,1,'																			photo_43051.html');
												thumbnails[43052] = new thumbnail(43052,'4432','Gourock to Dunoon ferry seen from Tower Hill','ferryjpg_thumb.jpg',130, 86,1,'																			photo_43052.html');
												thumbnails[43053] = new thumbnail(43053,'4432','Harbour Wall','harbour walljpg_thumb.jpg',130, 84,1,'																			photo_43053.html');
												thumbnails[43054] = new thumbnail(43054,'4432','Newhaven Harbour,Edinburgh','lighthousejpg_thumb.jpg',130, 196,1,'																			photo_43054.html');
												thumbnails[43055] = new thumbnail(43055,'4432','Over the Sea to Skye','Mallaig 1jpg_thumb.jpg',130, 86,1,'																			photo_43055.html');
												thumbnails[43056] = new thumbnail(43056,'4432','Bass Rock from Nth Berwick','nth ber bass rockjpg_thumb.jpg',130, 86,1,'																			photo_43056.html');
												thumbnails[43058] = new thumbnail(43058,'4432','Ropes','ropesjpg_thumb.jpg',130, 86,1,'																			photo_43058.html');
												thumbnails[43059] = new thumbnail(43059,'4432','Rusty Hull','rusty hulljpg_thumb.jpg',130, 86,1,'																			photo_43059.html');
												thumbnails[43060] = new thumbnail(43060,'4432','Resting Yacht','sky yachtjpg_thumb.jpg',130, 86,1,'																			photo_43060.html');
												thumbnails[43061] = new thumbnail(43061,'4432','Coming Storm','stormy seagulljpg_thumb.jpg',130, 86,1,'																			photo_43061.html');
												thumbnails[43062] = new thumbnail(43062,'4432','Stormy day in Whitby','whitby 1jpg_thumb.jpg',130, 86,1,'																			photo_43062.html');
												thumbnails[43063] = new thumbnail(43063,'4432','High Seas at Whitby Pier','whitby 2jpg_thumb.jpg',130, 86,1,'																			photo_43063.html');
												thumbnails[178993] = new thumbnail(178993,'16457','','108jpg_thumb.jpg',130, 93,1,'																			photo_178993.html');
												thumbnails[179000] = new thumbnail(179000,'16457','','14jpg2_thumb.jpg',130, 174,1,'																			photo_179000.html');
												thumbnails[179013] = new thumbnail(179013,'16457','','1jpg5_thumb.jpg',130, 122,1,'																			photo_179013.html');
												thumbnails[179014] = new thumbnail(179014,'16457','','2jpg6_thumb.jpg',130, 92,1,'																			photo_179014.html');
												thumbnails[179015] = new thumbnail(179015,'16457','','31jpg1_thumb.jpg',130, 161,1,'																			photo_179015.html');
												thumbnails[179016] = new thumbnail(179016,'16457','','35jpg1_thumb.jpg',130, 196,1,'																			photo_179016.html');
												thumbnails[179017] = new thumbnail(179017,'16457','','38jpg1_thumb.jpg',130, 172,1,'																			photo_179017.html');
												thumbnails[179020] = new thumbnail(179020,'16457','','42jpg1_thumb.jpg',130, 87,1,'																			photo_179020.html');
												thumbnails[179021] = new thumbnail(179021,'16457','','43jpg1_thumb.jpg',130, 90,1,'																			photo_179021.html');
												thumbnails[179023] = new thumbnail(179023,'16457','','53jpg1_thumb.jpg',130, 94,1,'																			photo_179023.html');
												thumbnails[179057] = new thumbnail(179057,'4432','Brigette Bardot filmed \"One Day in September\" here in the 60s','football on beachjpg_thumb.jpg',130, 98,1,'																			photo_179057.html');
												thumbnails[179059] = new thumbnail(179059,'4432','Yellowcraig beach at Dusk','Yellowcraigsjpg_thumb.jpg',130, 86,1,'																			photo_179059.html');
												thumbnails[179061] = new thumbnail(179061,'4432','The sands of Morar - made famous by the movie \'Local Hero\'','morarjpg_thumb.jpg',130, 46,1,'																			photo_179061.html');
												thumbnails[179062] = new thumbnail(179062,'4432','Young lad among the rockpools','Rory on beachjpg_thumb.jpg',130, 173,1,'																			photo_179062.html');
												thumbnails[180060] = new thumbnail(180060,'4432','Portobello beach in winter','portobello beach 1jpg_thumb.jpg',130, 93,1,'																			photo_180060.html');
												thumbnails[180065] = new thumbnail(180065,'4432','Low winter sun and no-one in shorts...','portobello beach 2jpg_thumb.jpg',130, 72,1,'																			photo_180065.html');
												thumbnails[206472] = new thumbnail(206472,'4432','lighthouse on the Forth','lighthousr nbjpg_thumb.jpg',130, 61,1,'																			photo_206472.html');
												thumbnails[206473] = new thumbnail(206473,'4432','Yes I know it\'s not in Britain, but I like the image anyway!','seafrontjpg_thumb.jpg',130, 87,1,'																			photo_206473.html');
												thumbnails[206474] = new thumbnail(206474,'4432','A tributary runs towards the ocean','stream 3jpg_thumb.jpg',130, 81,1,'																			photo_206474.html');
												thumbnails[206475] = new thumbnail(206475,'4432','Classic sunset shot','nb boatsjpg_thumb.jpg',130, 76,1,'																			photo_206475.html');
												thumbnails[206476] = new thumbnail(206476,'4432','fishermen are captured against the setting sun in North Berwick','nb sunset 1jpg_thumb.jpg',130, 84,1,'																			photo_206476.html');
												thumbnails[206478] = new thumbnail(206478,'4432','a moody black and white image of one of Scotland\'s many coastal ruins','bw castlejpg_thumb.jpg',130, 87,1,'																			photo_206478.html');
												thumbnails[206479] = new thumbnail(206479,'4432','A brooding sky warns of coming rain','beachjpg_thumb.jpg',130, 87,1,'																			photo_206479.html');
												thumbnails[206480] = new thumbnail(206480,'4432','the setting sun reflects against the incoming tide','nb inletjpg_thumb.jpg',130, 83,1,'																			photo_206480.html');
												thumbnails[206484] = new thumbnail(206484,'4374','The Burns\' monument in front of Edinburgh Castle','Burnsjpg_thumb.jpg',130, 81,1,'																			photo_206484.html');
												thumbnails[206486] = new thumbnail(206486,'4374','The night buses leave long light trails in Princes Street','busesjpg_thumb.jpg',130, 87,1,'																			photo_206486.html');
												thumbnails[206488] = new thumbnail(206488,'4374','The Carousel during the Xmas fair','carousel 2jpg_thumb.jpg',130, 85,1,'																			photo_206488.html');
												thumbnails[206490] = new thumbnail(206490,'4374','Another view of the ride','carouseljpg_thumb.jpg',130, 88,1,'																			photo_206490.html');
												thumbnails[206491] = new thumbnail(206491,'4374','Browsing at the night German market','marketjpg_thumb.jpg',130, 85,1,'																			photo_206491.html');
												thumbnails[206493] = new thumbnail(206493,'4374','An unusual view of the famous Scott Monument','Scott Monumentjpg_thumb.jpg',130, 87,1,'																			photo_206493.html');
												thumbnails[207227] = new thumbnail(207227,'4373','Unusual view of a lush golf course','air golfjpg_thumb.jpg',130, 86,1,'																			photo_207227.html');
												thumbnails[207228] = new thumbnail(207228,'4432','The Clyde shoreline looking across to Greater Cumbrae','clydejpg_thumb.jpg',130, 86,1,'																			photo_207228.html');
												thumbnails[207229] = new thumbnail(207229,'4373','The Famous Forth Bridge','frb 1jpg_thumb.jpg',130, 98,1,'																			photo_207229.html');
												thumbnails[207230] = new thumbnail(207230,'4373','Some locals refer to it as \"The Eighth Wonder\"','frb 2jpg_thumb.jpg',130, 86,1,'																			photo_207230.html');
												thumbnails[207231] = new thumbnail(207231,'4374','The moon over East Lothian during winter','newlands moonjpg_thumb.jpg',130, 86,1,'																			photo_207231.html');
												thumbnails[207232] = new thumbnail(207232,'4432','York City centre under flood','York flood 1jpg_thumb.jpg',130, 84,1,'																			photo_207232.html');
												thumbnails[207239] = new thumbnail(207239,'4373','Golfers distracted by the sound of a passing microlight','unknown golfersjpg_thumb.jpg',130, 86,1,'																			photo_207239.html');
												thumbnails[207240] = new thumbnail(207240,'4373','Some of East Lothian\'s dramatic coastline','coastlinejpg1_thumb.jpg',130, 86,1,'																			photo_207240.html');
												thumbnails[207251] = new thumbnail(207251,'18892','Linear trees darkened by the setting sun','final trees copyjpg_thumb.jpg',130, 51,1,'																			photo_207251.html');
												thumbnails[207252] = new thumbnail(207252,'18892','The Light at the End of the Tunnel','light in the distancejpg_thumb.jpg',130, 173,1,'																			photo_207252.html');
												thumbnails[207255] = new thumbnail(207255,'18892','Patterns occur in the unlikeliest of places','optician\'s windowjpg_thumb.jpg',130, 86,1,'																			photo_207255.html');
												thumbnails[207256] = new thumbnail(207256,'18892','Autumn trees','trees 2jpg_thumb.jpg',130, 86,1,'																			photo_207256.html');
												thumbnails[207257] = new thumbnail(207257,'18892','York Minster','y minsterjpg_thumb.jpg',130, 196,1,'																			photo_207257.html');
												thumbnails[207258] = new thumbnail(207258,'18892','Resting Gull','york gulljpg_thumb.jpg',130, 196,1,'																			photo_207258.html');
												thumbnails[207264] = new thumbnail(207264,'4342','wedding example 15','lums 1jpg_thumb.jpg',130, 86,1,'																			photo_207264.html');
												thumbnails[207265] = new thumbnail(207265,'4342','wedding example 22','lums 2jpg_thumb.jpg',130, 86,1,'																			photo_207265.html');
												thumbnails[207266] = new thumbnail(207266,'4342','wedding example 33','zs 1jpg_thumb.jpg',130, 86,1,'																			photo_207266.html');
												thumbnails[207267] = new thumbnail(207267,'4342','wedding example 59','zs 2jpg_thumb.jpg',130, 196,1,'																			photo_207267.html');
												thumbnails[207268] = new thumbnail(207268,'4342','','zs 3jpg_thumb.jpg',130, 196,1,'																			photo_207268.html');
												thumbnails[207269] = new thumbnail(207269,'4374','sparklers','rory sparklerjpg_thumb.jpg',130, 89,1,'																			photo_207269.html');
												thumbnails[214926] = new thumbnail(214926,'48402','Not one of Edinburgh\'s nice wee closes','alleyjpg_thumb.jpg',130, 86,1,'																			photo_214926.html');
												thumbnails[214929] = new thumbnail(214929,'4432','Arisaig on Scotland\'s west coast','arisaigjpg_thumb.jpg',130, 47,1,'																			photo_214929.html');
												thumbnails[214931] = new thumbnail(214931,'4373','The world famous bridge taken on Infra-Red film','frb infra redjpg_thumb.jpg',130, 85,1,'																			photo_214931.html');
												thumbnails[214932] = new thumbnail(214932,'4432','A gull at rest','gulljpg_thumb.jpg',130, 118,1,'																			photo_214932.html');
												thumbnails[214933] = new thumbnail(214933,'4432','where old boats go to die','high and dryjpg_thumb.jpg',130, 48,1,'																			photo_214933.html');
												thumbnails[214934] = new thumbnail(214934,'4432','Loch Finnan','lochjpg_thumb.jpg',130, 48,1,'																			photo_214934.html');
												thumbnails[214935] = new thumbnail(214935,'4373','A re-fuelling stop at Glenrothes air strip','refuellingjpg_thumb.jpg',130, 68,1,'																			photo_214935.html');
												thumbnails[214936] = new thumbnail(214936,'18892','Welcome to Scotland','sheep signjpg_thumb.jpg',130, 70,1,'																			photo_214936.html');
												thumbnails[214937] = new thumbnail(214937,'4432','West Coast shipwreck','shipwreckjpg_thumb.jpg',130, 50,1,'																			photo_214937.html');
												thumbnails[214938] = new thumbnail(214938,'4373','Edinburgh Airport from the air','turnhousejpg_thumb.jpg',130, 85,1,'																			photo_214938.html');
												thumbnails[225614] = new thumbnail(225614,'18892','Harvest time in East Lothian','combinejpg_thumb.jpg',130, 196,1,'																			photo_225614.html');
												thumbnails[225615] = new thumbnail(225615,'18892','caterpillars eating away my garden','slugsjpg_thumb.jpg',130, 86,1,'																			photo_225615.html');
												thumbnails[225616] = new thumbnail(225616,'18892','The viewfinder on top of Arthur\'s Seat in the centre of Edinburgh - a truly unique feature amongst western cities','viewfinderjpg_thumb.jpg',130, 84,1,'																			photo_225616.html');
												thumbnails[229481] = new thumbnail(229481,'18892','Red Flower after the rain','red flower for web_thumb.jpg',130, 136,1,'																			photo_229481.html');
												thumbnails[481092] = new thumbnail(481092,'4432','Aberlady bay at sunset','clik pic 1_thumb.jpg',130, 86,1,'																			photo_481092.html');
												thumbnails[589398] = new thumbnail(589398,'18892','Dunbar War Memorial on Rememberance Day 2006. Remember...','Dunbar war memorial0001jpg_thumb.jpg',130, 155,1,'																			photo_589398.html');
												thumbnails[589403] = new thumbnail(589403,'4432','Dunbar Lifeboat entering the harbour.','Dunbar lifeboat 40001jpg_thumb.jpg',130, 86,1,'																			photo_589403.html');
												thumbnails[589404] = new thumbnail(589404,'4432','Lobster creels and graffiti','Dunbar harbour 50001jpg_thumb.jpg',130, 86,1,'																			photo_589404.html');
												thumbnails[589405] = new thumbnail(589405,'4432','Long abandoned building by the harbour','Dunbar harbour 10001jpg_thumb.jpg',130, 196,1,'																			photo_589405.html');
												thumbnails[589408] = new thumbnail(589408,'4432','A cave by Dunbar harbour and an easterly wind.','Dunbar cave 40001jpg_thumb.jpg',130, 196,1,'																			photo_589408.html');
												thumbnails[634443] = new thumbnail(634443,'48402','An Big Issue seller finds an unusual sales angle.','bucket head_thumb.jpg',130, 196,1,'																			photo_634443.html');
												thumbnails[634452] = new thumbnail(634452,'48402','An English market town','york market_thumb.jpg',130, 65,1,'																			photo_634452.html');
												thumbnails[634459] = new thumbnail(634459,'48402','Fishing for Tesco trolleys','canal_thumb.jpg',130, 67,1,'																			photo_634459.html');
												thumbnails[634462] = new thumbnail(634462,'48402','The Carousel','carousel_thumb.jpg',130, 87,1,'																			photo_634462.html');
												thumbnails[634463] = new thumbnail(634463,'48402','Closed for Business','chip shop_thumb.jpg',130, 73,1,'																			photo_634463.html');
												thumbnails[634465] = new thumbnail(634465,'48402','Flying the Flag','flags_thumb.jpg',130, 80,1,'																			photo_634465.html');
												thumbnails[634466] = new thumbnail(634466,'48402','Xmas is a time for giving?','homeless 1_thumb.jpg',130, 86,1,'																			photo_634466.html');
												thumbnails[634471] = new thumbnail(634471,'48402','A quiet moment beside the harbour','newhaven harbour men_thumb.jpg',130, 73,1,'																			photo_634471.html');
												thumbnails[634480] = new thumbnail(634480,'48402','Due for demolition','niddrie 1_thumb.jpg',130, 58,1,'																			photo_634480.html');
												thumbnails[634482] = new thumbnail(634482,'48402','Brave New World?','niddrie 2_thumb.jpg',130, 98,1,'																			photo_634482.html');
												thumbnails[634486] = new thumbnail(634486,'48402','Covent Garden','opera house_thumb.jpg',130, 248,1,'																			photo_634486.html');
												thumbnails[634487] = new thumbnail(634487,'48402','Street entertainment','statue_thumb.jpg',130, 98,1,'																			photo_634487.html');
												thumbnails[634488] = new thumbnail(634488,'48402','Tolerance','tolerance_thumb.jpg',130, 73,1,'																			photo_634488.html');
												thumbnails[686536] = new thumbnail(686536,'4432','Coastal Memorial','Berwick anchor_thumb.jpg',130, 86,1,'																			photo_686536.html');
												thumbnails[686538] = new thumbnail(686538,'4432','Tweed Light','berwick lighthouse_thumb.jpg',130, 57,1,'																			photo_686538.html');
												thumbnails[686539] = new thumbnail(686539,'18892','Another Castle','borders castle_thumb.jpg',130, 84,1,'																			photo_686539.html');
												thumbnails[686540] = new thumbnail(686540,'48402','London Docklands','building reflection_thumb.jpg',130, 197,1,'																			photo_686540.html');
												thumbnails[686542] = new thumbnail(686542,'4432','Depth Pole','depth pole_thumb.jpg',130, 84,1,'																			photo_686542.html');
												thumbnails[686545] = new thumbnail(686545,'18892','Edinburgh Skyline','Edinburgh view_thumb.jpg',130, 85,1,'																			photo_686545.html');
												thumbnails[686547] = new thumbnail(686547,'4432','The Noble Gull','seagull_thumb.jpg',130, 84,1,'																			photo_686547.html');
												thumbnails[686551] = new thumbnail(686551,'48402','Duty Calls','Tower London polis_thumb.jpg',130, 87,1,'																			photo_686551.html');
												thumbnails[686552] = new thumbnail(686552,'48402','Relaxation','waterclourist_thumb.jpg',130, 82,1,'																			photo_686552.html');
												thumbnails[723592] = new thumbnail(723592,'4432','Forth Bridges from Hopetoun House','frb for clikpic low res_thumb.jpg',130, 73,1,'																			photo_723592.html');
												thumbnails[729321] = new thumbnail(729321,'48402','Feeding the birds in St James\' Park','bird feeder low res_thumb.jpg',130, 80,1,'																			photo_729321.html');
												thumbnails[729326] = new thumbnail(729326,'48402','Power Station','inverkip power station_thumb.jpg',130, 88,1,'																			photo_729326.html');
												thumbnails[730999] = new thumbnail(730999,'4432','Scraps','berwick birds_thumb.jpg',130, 73,1,'																			photo_730999.html');
												thumbnails[731002] = new thumbnail(731002,'48402','A traditional Scottish close','Berwick close_thumb.jpg',130, 231,1,'																			photo_731002.html');
												thumbnails[731005] = new thumbnail(731005,'4432','Benches in memorium','berwick deckchairs_thumb.jpg',130, 73,1,'																			photo_731005.html');
												thumbnails[731028] = new thumbnail(731028,'48402','Fishermens\' Hall?','berwick fishermens hall_thumb.jpg',130, 98,1,'																			photo_731028.html');
												thumbnails[731030] = new thumbnail(731030,'48402','Good day for the drying','berwick washing 2_thumb.jpg',130, 73,1,'																			photo_731030.html');
												thumbnails[731031] = new thumbnail(731031,'48402','A seaside cottage','berwick window_thumb.jpg',130, 98,1,'																			photo_731031.html');
												thumbnails[731032] = new thumbnail(731032,'4432','The Old Lido','berwick yacht_thumb.jpg',130, 73,1,'																			photo_731032.html');
												thumbnails[1014413] = new thumbnail(1014413,'48402','Oasis','palm tree_thumb.jpg',130, 98,1,'																			photo_1014413.html');
												thumbnails[1014414] = new thumbnail(1014414,'48402','A railway fit for the 21st century?','railway line_thumb.jpg',130, 98,1,'																			photo_1014414.html');
												thumbnails[1014416] = new thumbnail(1014416,'48402','Unusual headgear for a rugby match in Edinburgh','vikings_thumb.jpg',130, 94,1,'																			photo_1014416.html');
												thumbnails[1014417] = new thumbnail(1014417,'48402','Urban camouflage on the train','trai passngers_thumb.jpg',130, 107,1,'																			photo_1014417.html');
												thumbnails[1014419] = new thumbnail(1014419,'48402','Feeding time','pigeona_thumb.jpg',130, 91,1,'																			photo_1014419.html');
												thumbnails[1014421] = new thumbnail(1014421,'48402','The French in Edinburgh','rose st 1_thumb.jpg',130, 86,1,'																			photo_1014421.html');
												thumbnails[1032513] = new thumbnail(1032513,'48402','Our actions are dominated by signs','mind your head_thumb.jpg',130, 98,1,'																			photo_1032513.html');
												thumbnails[1032515] = new thumbnail(1032515,'48402','confused lines','bike_thumb.jpg',130, 231,1,'																			photo_1032515.html');
												thumbnails[1215936] = new thumbnail(1215936,'4432','Evening sun on East Lothian surf','beach scene for web_thumb.jpg',130, 86,1,'																			photo_1215936.html');
												thumbnails[1234490] = new thumbnail(1234490,'4432','Cold winter bird-feeding','cramond feeders_thumb.jpg',130, 86,1,'																			photo_1234490.html');
												thumbnails[1382930] = new thumbnail(1382930,'4432','Cramond Island','crmaond isalnd for web_thumb.jpg',130, 86,1,'																			photo_1382930.html');
												thumbnails[1427412] = new thumbnail(1427412,'48402','Fire in a tenement block','fire_thumb.jpg',130, 82,1,'																			photo_1427412.html');
												thumbnails[1450403] = new thumbnail(1450403,'48402','Road Safety','low res matalan_thumb.jpg',130, 73,1,'																			photo_1450403.html');
												thumbnails[2058645] = new thumbnail(2058645,'4342','','135_thumb.jpg',130, 86,1,'																			photo_2058645.html');
												thumbnails[2058646] = new thumbnail(2058646,'4342','','147_thumb.jpg',130, 86,1,'																			photo_2058646.html');
												thumbnails[2058647] = new thumbnail(2058647,'4342','','155_thumb.jpg',130, 196,1,'																			photo_2058647.html');
												thumbnails[2058649] = new thumbnail(2058649,'4342','','DSC_0012_thumb.jpg',130, 86,1,'																			photo_2058649.html');
												thumbnails[2058650] = new thumbnail(2058650,'4342','','DSC_0027_thumb.jpg',130, 86,1,'																			photo_2058650.html');
												thumbnails[2058652] = new thumbnail(2058652,'4342','','DSC_0029_thumb.jpg',130, 86,1,'																			photo_2058652.html');
												thumbnails[2058654] = new thumbnail(2058654,'4342','','DSC_0104_thumb.jpg',130, 86,1,'																			photo_2058654.html');
												thumbnails[2058655] = new thumbnail(2058655,'4342','','DSC_0172_thumb.jpg',130, 86,1,'																			photo_2058655.html');
												thumbnails[2058656] = new thumbnail(2058656,'4342','','DSC_00199_thumb.jpg',130, 97,1,'																			photo_2058656.html');
												thumbnails[2058658] = new thumbnail(2058658,'4342','','DSC_0262_thumb.jpg',130, 100,1,'																			photo_2058658.html');
												thumbnails[2058662] = new thumbnail(2058662,'4342','','DSC_0313_thumb.jpg',130, 104,1,'																			photo_2058662.html');
												thumbnails[2058664] = new thumbnail(2058664,'4342','','DSC_0316_thumb.jpg',130, 106,1,'																			photo_2058664.html');
												thumbnails[3261462] = new thumbnail(3261462,'48402','In death, trees have a life of their own.','old tree for web_thumb.jpg',130, 70,1,'																			photo_3261462.html');
												thumbnails[3261764] = new thumbnail(3261764,'48402','BMX Star','bmx star_edited-1_thumb.jpg',130, 87,1,'																			photo_3261764.html');
												thumbnails[3261768] = new thumbnail(3261768,'48402','Waverley Station','waverley fisheye_edited-1_thumb.jpg',130, 87,1,'																			photo_3261768.html');
												thumbnails[3261769] = new thumbnail(3261769,'18892','Patterned Wheat','wheat field_edited-1_thumb.jpg',130, 87,1,'																			photo_3261769.html');
												thumbnails[7246983] = new thumbnail(7246983,'391852','Archie\'s Castle','archie_tower_2_thumb.jpg',130, 79,1,'																			photo_7246983.html');
												thumbnails[7246989] = new thumbnail(7246989,'391852','Seacliff','beach_scene_thumb.jpg',130, 86,1,'																			photo_7246989.html');
												thumbnails[7246992] = new thumbnail(7246992,'391852','Berwick Law from Gifford','Berwick_Law_from_Gifford_edited-1_thumb.jpg',130, 87,1,'																			photo_7246992.html');
												thumbnails[7246994] = new thumbnail(7246994,'391852','Cloch Lighthouse','cloch_light_thumb.jpg',130, 108,1,'																			photo_7246994.html');
												thumbnails[7246999] = new thumbnail(7246999,'391852','Dead Tree','coctco_old_tree_thumb.jpg',130, 71,1,'																			photo_7246999.html');
												thumbnails[7247003] = new thumbnail(7247003,'391852','East Lothian coastline','el_coastline_thumb.jpg',130, 87,1,'																			photo_7247003.html');
												thumbnails[7247007] = new thumbnail(7247007,'391852','Edinburgh skyline','embra_final_thumb.jpg',130, 25,1,'																			photo_7247007.html');
												thumbnails[7247011] = new thumbnail(7247011,'391852','trees on fire','fire_trees_thumb.jpg',130, 80,1,'																			photo_7247011.html');
												thumbnails[7247016] = new thumbnail(7247016,'391852','bailed out','hay_bail_thumb.jpg',130, 86,1,'																			photo_7247016.html');
												thumbnails[7247019] = new thumbnail(7247019,'391852','Humbie Kirk','Humbie_kirk_landscape_thumb.jpg',130, 86,1,'																			photo_7247019.html');
												thumbnails[7247021] = new thumbnail(7247021,'391852','Humbie Kirk 2','Humbie_Kirk_view_8_thumb.jpg',130, 196,1,'																			photo_7247021.html');
												thumbnails[7247025] = new thumbnail(7247025,'391852','North Berwick','north_berwick_west_for_cafe_thumb.jpg',130, 33,1,'																			photo_7247025.html');
												thumbnails[7247029] = new thumbnail(7247029,'391852','Robin','robin_thumb.jpg',130, 120,1,'																			photo_7247029.html');
												thumbnails[7247032] = new thumbnail(7247032,'391852','Aberlady Bay','shaw_print_thumb.jpg',130, 86,1,'																			photo_7247032.html');
												thumbnails[7247034] = new thumbnail(7247034,'391852','whiteout','snow_newlands_thumb.jpg',130, 98,1,'																			photo_7247034.html');
												thumbnails[7247037] = new thumbnail(7247037,'391852','coming storm','storm_thumb.jpg',130, 86,1,'																			photo_7247037.html');
												thumbnails[7247039] = new thumbnail(7247039,'391852','Big View','tower_2_low_ress_thumb.jpg',130, 194,1,'																			photo_7247039.html');
												thumbnails[7247043] = new thumbnail(7247043,'391852','Gifford','village_final_2_blip_thumb.jpg',130, 45,1,'																			photo_7247043.html');
												thumbnails[7339864] = new thumbnail(7339864,'4373','Tantallon Castle','29_thumb.jpg',130, 67,1,'																			photo_7339864.html');
												thumbnails[7339865] = new thumbnail(7339865,'4373','North Berwick','45_thumb.jpg',130, 87,1,'																			photo_7339865.html');
												thumbnails[7339866] = new thumbnail(7339866,'4373','Berwick Law and the Bass Rock','56_thumb.jpg',130, 194,1,'																			photo_7339866.html');
												thumbnails[7339875] = new thumbnail(7339875,'391852','Edinburgh\'s Skyline','gigapan_crags_thumb.jpg',130, 24,1,'																			photo_7339875.html');
												thumbnails[7339876] = new thumbnail(7339876,'391852','partial moon','partial_moon_thumb.jpg',130, 98,1,'																			photo_7339876.html');
												thumbnails[7339877] = new thumbnail(7339877,'391852','frozen pond','melrose_pond_thumb.jpg',130, 135,1,'																			photo_7339877.html');
												thumbnails[7339879] = new thumbnail(7339879,'391852','The sky over Drem','drem_skyline_thumb.jpg',130, 79,1,'																			photo_7339879.html');
												thumbnails[7339978] = new thumbnail(7339978,'4342','','DSC_0004_thumb.jpg',130, 86,1,'																			photo_7339978.html');
												thumbnails[7339980] = new thumbnail(7339980,'4342','','DSC_0057_thumb.jpg',130, 86,1,'																			photo_7339980.html');
												thumbnails[7339981] = new thumbnail(7339981,'4342','','DSC_0086_thumb.jpg',130, 86,1,'																			photo_7339981.html');
												thumbnails[7339982] = new thumbnail(7339982,'4342','','DSCF4223_thumb.jpg',130, 194,1,'																			photo_7339982.html');
												thumbnails[7340011] = new thumbnail(7340011,'16457','','cramond_medium_no_2_x2_thumb.jpg',130, 195,1,'																			photo_7340011.html');
												thumbnails[7340012] = new thumbnail(7340012,'16457','','Donna_large_thumb.jpg',130, 195,1,'																			photo_7340012.html');
												thumbnails[7340013] = new thumbnail(7340013,'16457','','donna_medium_2_thumb.jpg',130, 98,1,'																			photo_7340013.html');
												thumbnails[7340015] = new thumbnail(7340015,'16457','','file_2_image_6_thumb.jpg',130, 195,1,'																			photo_7340015.html');
												thumbnails[7340016] = new thumbnail(7340016,'4342','','fisheye_wedding_thumb.jpg',130, 86,1,'																			photo_7340016.html');
												thumbnails[7340017] = new thumbnail(7340017,'16457','','jenny_small_1_thumb.jpg',130, 195,1,'																			photo_7340017.html');
												thumbnails[7340018] = new thumbnail(7340018,'16457','','large_liberton_thumb.jpg',130, 195,1,'																			photo_7340018.html');
												thumbnails[7340019] = new thumbnail(7340019,'16457','','lockhart_large_no_2_thumb.jpg',130, 87,1,'																			photo_7340019.html');
												thumbnails[7340021] = new thumbnail(7340021,'16457','','mary_medium_no_70_thumb.jpg',130, 195,1,'																			photo_7340021.html');
												thumbnails[7340023] = new thumbnail(7340023,'16457','','med_dawn_thumb.jpg',130, 87,1,'																			photo_7340023.html');
												thumbnails[7340025] = new thumbnail(7340025,'16457','','med_Jodi_colour_thumb.jpg',130, 87,1,'																			photo_7340025.html');
												thumbnails[7340026] = new thumbnail(7340026,'16457','','nicola_31_small_x_5_thumb.jpg',130, 195,1,'																			photo_7340026.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[4373] = new gallery(4373,'7339866,7339865,7339864,214938,214935,214931,207240,207239,207230,207229','aerial images','gallery',[42415,42417,42422,42426,42428,42429,42431,42433,42434,42436,42437,42440,42441,42442,42443,207227,207229,207230,207239,207240,214931,214935,214938,7339864,7339865,7339866],0, 0, '', '																																																																																																							gallery_4373.html',0,0);
				  					galleries[4432] = new gallery(4432,'1382930,1234490,1215936,731032,731005,730999,723592,686547,686542,686538','Britain\'s coast','gallery',[43048,43049,43050,43051,43052,43053,43054,43055,43056,43058,43059,43060,43061,43062,43063,179057,179059,179061,179062,180060,180065,206472,206473,206474,206475,206476,206478,206479,206480,207228,207232,214929,214932,214933,214934,214937,481092,589403,589404,589405,589408,686536,686538,686542,686547,723592,730999,731005,731032,1215936,1234490,1382930],0, 0, '', '																																																																																																							gallery_4432.html',0,0);
				  					galleries[16457] = new gallery(16457,'7340026,7340025,7340023,7340021,7340019,7340018,7340017,7340015,7340013,7340012','Childrens\' Portraits','gallery',[178993,179000,179013,179014,179015,179016,179017,179020,179021,179023,7340011,7340012,7340013,7340015,7340017,7340018,7340019,7340021,7340023,7340025,7340026],0, 0, '', '																																																																																																							gallery_16457.html',0,0);
				  					galleries[4374] = new gallery(4374,'207269,207231,206493,206491,206490,206488,206486,206484,42452,42450','Fireworks & Night Time','gallery',[42445,42446,42447,42448,42449,42450,42452,206484,206486,206488,206490,206491,206493,207231,207269],0, 0, '', '																																																																																																							gallery_4374.html',0,0);
				  					galleries[18892] = new gallery(18892,'3261769,686545,686539,589398,229481,225616,225615,225614,214936,207258','Odds \'n\' Ends','gallery',[207251,207252,207255,207256,207257,207258,214936,225614,225615,225616,229481,589398,686539,686545,3261769],0, 0, '', '																																																																																																							gallery_18892.html',0,0);
				  					galleries[391852] = new gallery(391852,'7339879,7339877,7339876,7339875,7247043,7247039,7247037,7247034,7247032,7247029','Prints for sale','gallery',[7246983,7246989,7246992,7246994,7246999,7247003,7247007,7247011,7247016,7247019,7247021,7247025,7247029,7247032,7247034,7247037,7247039,7247043,7339875,7339876,7339877,7339879],0, 0, '', '																																																																																																							gallery_391852.html',0,0);
				  					galleries[48402] = new gallery(48402,'3261768,3261764,3261462,1450403,1427412,1032515,1032513,1014421,1014419,1014417','This Country of Ours','gallery',[214926,634443,634452,634459,634462,634463,634465,634466,634471,634480,634482,634486,634487,634488,686540,686551,686552,729321,729326,731002,731028,731030,731031,1014413,1014414,1014416,1014417,1014419,1014421,1032513,1032515,1427412,1450403,3261462,3261764,3261768],0, 0, '', '																																																																																																							gallery_48402.html',0,0);
				  					galleries[4342] = new gallery(4342,'7340016,7339982,7339981,7339980,7339978,2058664,2058662,2058658,2058656,2058655','Wedding Album','gallery',[42123,42124,42125,42126,42127,42128,42129,42130,42131,42132,42133,42135,42136,42137,42139,42140,42141,42142,42143,42144,42145,42146,42147,42149,42150,42151,42152,42153,42154,42155,42157,42158,42159,42160,42161,42162,42163,42164,42165,42166,42167,42168,42169,42170,42171,42172,42173,42174,42175,42176,42177,42178,42179,42180,42181,207264,207265,207266,207267,207268,2058645,2058646,2058647,2058649,2058650,2058652,2058654,2058655,2058656,2058658,2058662,2058664,7339978,7339980,7339981,7339982,7340016],0, 0, '', '																																																																																																							gallery_4342.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '3261462,214931,179014';
imageSets[3] = '7340026,7340025,7340023,7340021,7340019,7340018,7340017,7340016,7340015,7340013,7340012,7340011,7339982,7339981,7339980,7339978,7339879,7339877,7339876,7339875,7339866,7339865,7339864,7247043,7247039,7247037,7247034,7247032,7247029,7247025,7247021,7247019,7247016,7247011,7247007,7247003,7246999,7246994,7246992,7246989,7246983,3261769,3261768,3261764,3261760,3261462,2058664,2058662,2058658,2058656';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/cameron/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/cameron/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/cameron/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/cameron/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/cameron/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/cameron/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/cameron/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/cameron/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/cameron/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/cameron/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/cameron/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/cameron/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/cameron/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/cameron/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/cameron/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/cameron/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/cameron/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/cameron/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/cameron/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/cameron/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/cameron/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/cameron/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {

	imageID = randomListVal('');
		if (!basic) {
	img.src = photos[imageID].src;
	img.width = photos[imageID].width;
	img.height = photos[imageID].height;
  img.parentNode.title = img.alt = photos[imageID].caption;
	}
	else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
				
	}
			}

function getHomeImageLink(imageID) {
  	var href='', photo = backgrounds && backgrounds[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}
/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
  var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
		if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
    
  updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
  var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',
                    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 (!basic) {
    if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
    }
				
    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.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Ashton Communication: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
	    var options = {photoinfominwidth:200};	    		options.photoinfoadjacent = true;			      	      resizePhotoInfo(options);
        if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(backgrounds);
  	    } else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(photos);
  	    }
	    });
    }
        if (!op.speed) {      clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));    }        
    return html;			}
	else {
				
		window.location = 'photo_' + nextPhoto.id + '.html';
	}
		
}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array){
  if (typeof(array) !== 'object') {
    array = photos;
  }
	if($('#paymentConfirm').length > 0){
		$('#paymentConfirm').hide();
		$('#paymentAddButton')
		.unbind()
		.click(function(){
						form = document.getElementById('paymentForm');
			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').text('Item added to cart').show();}
				else{
					$('#paymentConfirm').text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm').text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}
/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp = temp +  '<p id="imageDescription">' + this.description + '</p>';
	}
		if (this.photo_ref != '') {
		temp = temp + '<p class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</p>';
	}
		if (this.takendate != '') {
				
		temp = temp + '<p class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</p>';
	}
	
	if (this.location != '') {
				
		temp = temp + '<p class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</p>';
	}
	
	if (this.photographer != '') {
				
		temp = temp + '<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</p>';
	}
					
				if (temp != '') {
		temp = temp + '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp = temp + '<p>Order this print:</p>';
				temp = temp + '<p class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> 							' + (this.item_price).toFixed(2) + '</p>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp = temp + '<p>Buy this print online:</p>';
				temp = temp + '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp = temp + '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
				
		temp = temp + getPaymentOptions(this.payment_groups_id);
		temp = temp + '</select>';
		temp = 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 = 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 + ' | ';
				}
				temp = temp + '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
			}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

		

