window.thumbnails = {};
															thumbnails[5177195] = clik.newPhoto({"id":5177195,"src":"Frinds_of_River_Kelvin_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Friends of the River Calvin","height":97});
															thumbnails[5177204] = clik.newPhoto({"id":5177204,"src":"Glazert_Country_House_Hotel_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Glazert Country House Hotel","height":61});
															thumbnails[5177211] = clik.newPhoto({"id":5177211,"src":"Wild_by_Nature_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Wild by Nature","height":100});
															thumbnails[7238699] = clik.newPhoto({"id":7238699,"src":"01_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"Viewed from Peel Park to Auld Kirk - Kirkintilloch","height":240});
															thumbnails[7238899] = clik.newPhoto({"id":7238899,"src":"01_37DF2191-1D09-001F-99FCE277D2B3B3D0_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"A Red Fox at the River Glazert","height":240});
															thumbnails[7239025] = clik.newPhoto({"id":7239025,"src":"02_380834E4-1D09-001F-997A64CC1CE052CD_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"Govan Town Hall - Glasgow","height":107});
															thumbnails[8216675] = clik.newPhoto({"id":8216675,"src":"2011-03-26-SNP-Milngavie_0417_7238ABA1-1D09-001F-99F946DF52D783CC_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"home page boy","height":240});
															thumbnails[8216691] = clik.newPhoto({"id":8216691,"src":"2011-05-25-thomas-muir_0981_7240F4A9-1D09-001F-99DC2389489064D0_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"2011-05-25-thomas-muir 0981","height":160});
															thumbnails[8217301] = clik.newPhoto({"id":8217301,"src":"2010-04-10-West-highland-way_1752_728F42AF-1D09-001F-99CDB0EE2A484377_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"HOME PAGE","height":161});
															thumbnails[8215400] = clik.newPhoto({"id":8215400,"src":"201-04-16-llauras-shoes_0014_71C3CC61-1D09-001F-99F02F64716FE836_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"","height":107});
															thumbnails[7238700] = clik.newPhoto({"id":7238700,"src":"02_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"Sun Rise Mugdock Country Park","height":240});
															thumbnails[7238900] = clik.newPhoto({"id":7238900,"src":"02_37DF2441-1D09-001F-995B7ACA10550588_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"Stilt Walkers","height":240});
															thumbnails[8215382] = clik.newPhoto({"id":8215382,"src":"2010-03-20-Ryan-Daniels_0704_71C15612-1D09-001F-9975FC4317A240EB_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"","height":240});
															thumbnails[8216753] = clik.newPhoto({"id":8216753,"src":"2011-05-25-thomas-muir_0981mark_21_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"2011-05-25-thomas-muir 0981mark 21","height":160});
															thumbnails[8217302] = clik.newPhoto({"id":8217302,"src":"2010-11-01-open-for-busisness-EDC_0377_728F4639-1D09-001F-9950363E2E791006_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"HOME PAGE","height":192});
															thumbnails[8241068] = clik.newPhoto({"id":8241068,"src":"2010_05_05EDTP_0006_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"","height":240});
															thumbnails[7238701] = clik.newPhoto({"id":7238701,"src":"03_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"South Bound Cycling West Highland Way near Dun Deardail fort.","height":240});
															thumbnails[7238901] = clik.newPhoto({"id":7238901,"src":"03_37DF26D1-1D09-001F-99C1AA29189817CF_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"Harvest Time","height":240});
															thumbnails[7239027] = clik.newPhoto({"id":7239027,"src":"04_380839E5-1D09-001F-99C006DD55D14870_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"Roe Stag","height":107});
															thumbnails[8217303] = clik.newPhoto({"id":8217303,"src":"2010_05_03_Glasgow_By_Day_0131_728F4908-1D09-001F-99F2F3ACFAA67BA3_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"HOME PAGE","height":131});
															thumbnails[7239028] = clik.newPhoto({"id":7239028,"src":"05_38083C76-1D09-001F-99412629593CE91D_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"Armadilo - Glasgow","height":240});
															thumbnails[8217304] = clik.newPhoto({"id":8217304,"src":"2011-03-26-SNP-Milngavie_0417_728F4CA2-1D09-001F-9973FE6971B74246_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"HOME PAGE","height":194});
															thumbnails[7238904] = clik.newPhoto({"id":7238904,"src":"06_37DF2C30-1D09-001F-9968BE9D43DBEAE1_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"The Coo and the Windmills","height":107});
															thumbnails[7239029] = clik.newPhoto({"id":7239029,"src":"06_38083F16-1D09-001F-9922EA35C09F7742_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"The Village Centre - Killearn","height":240});
															thumbnails[8217305] = clik.newPhoto({"id":8217305,"src":"2011-07-23-merchat-city-festival_1105_728F4F80-1D09-001F-99478EA3B3C6691F_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"HOME PAGE","height":157});
															thumbnails[7238905] = clik.newPhoto({"id":7238905,"src":"08_37DF2EC1-1D09-001F-998AA273A31BFEFA_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"Auchinstarry Marina","height":107});
															thumbnails[7239030] = clik.newPhoto({"id":7239030,"src":"07_380841A6-1D09-001F-997F97A1D772F27E_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"The Glenlee - Glasgow","height":240});
															thumbnails[8215388] = clik.newPhoto({"id":8215388,"src":"2011-04-02-eve-sharpe0012_71C16C0B-1D09-001F-992AB9A09DFD638D_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"","height":107});
															thumbnails[8217306] = clik.newPhoto({"id":8217306,"src":"20110612-arbroath-0008_728F5329-1D09-001F-99E09E1E551A189E_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"HOME PAGE","height":177});
															thumbnails[7238705] = clik.newPhoto({"id":7238705,"src":"07_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"View From The Car Park Ardnamurchan Point","height":107});
															thumbnails[7238906] = clik.newPhoto({"id":7238906,"src":"09_37DF3122-1D09-001F-991B0BFB06466598_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"View from Crow Rd","height":107});
															thumbnails[7239031] = clik.newPhoto({"id":7239031,"src":"09_38084465-1D09-001F-99CE6C67E61B119D_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"The Starling and a cherry tree","height":240});
															thumbnails[8215354] = clik.newPhoto({"id":8215354,"src":"2011-05-28-gala-day-bishopbriggs_1236_71BC0402-1D09-001F-9973102D1B424CB3_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"","height":240});
															thumbnails[8215391] = clik.newPhoto({"id":8215391,"src":"20110628-John-Corcoran-MBE-0808_71C175AF-1D09-001F-99F0B5E68C8CA373_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"","height":240});
															thumbnails[8217307] = clik.newPhoto({"id":8217307,"src":"20110612-arbroath-0091_728F5731-1D09-001F-99A6FA880BBF1848_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"HOME PAGE","height":171});
															thumbnails[7238706] = clik.newPhoto({"id":7238706,"src":"08_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"Mingary Castle - Ardnamurchan","height":107});
															thumbnails[7238907] = clik.newPhoto({"id":7238907,"src":"10_37DF3384-1D09-001F-991A77EFA2DF843D_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"Baldernaock Parrish Church - Bunty's Kirk","height":107});
															thumbnails[7239032] = clik.newPhoto({"id":7239032,"src":"11_38084792-1D09-001F-991EF751D01BCADD_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"Water and Hot Oil test","height":240});
															thumbnails[8250520] = clik.newPhoto({"id":8250520,"src":"2010-08-29-Krikintilloch-Canal-Fest_0520_95FAFB5B-1D09-001F-99C7482157A1D793_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"","height":240});
															thumbnails[7238908] = clik.newPhoto({"id":7238908,"src":"12_37DF35C6-1D09-001F-994D977F0867D75A_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"Glasgow's Squiggley Bridge","height":107});
															thumbnails[7239033] = clik.newPhoto({"id":7239033,"src":"12_38084A22-1D09-001F-99100526B66B37CB_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"Starling in flight","height":240});
															thumbnails[8215361] = clik.newPhoto({"id":8215361,"src":"20110619-eds-cycle-co-op-0158_71BC19CC-1D09-001F-99FA22B6206131A6_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"","height":107});
															thumbnails[8215362] = clik.newPhoto({"id":8215362,"src":"20110619-eds-cycle-co-op-0237_71BC1DB4-1D09-001F-9971D3B01F3BF4D9_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"","height":107});
															thumbnails[7238909] = clik.newPhoto({"id":7238909,"src":"13_37DF3818-1D09-001F-9986ABF44E2846D3_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"Culchreuch Castle","height":240});
															thumbnails[8215404] = clik.newPhoto({"id":8215404,"src":"2011-03-16-Glasgow_Cath_thumb._0024_71C3D9AF-1D09-001F-99CFB0EC8F892458.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"","height":240});
															thumbnails[7238910] = clik.newPhoto({"id":7238910,"src":"14_37DF3A98-1D09-001F-99C8C08EA7E81FE2_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"Clachan Oak - Balfron","height":240});
															thumbnails[7239035] = clik.newPhoto({"id":7239035,"src":"15_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"Wigwam Mugdock at the Khyber Pass - Country Park","height":107});
															thumbnails[7238911] = clik.newPhoto({"id":7238911,"src":"16_37DF3D29-1D09-001F-99E0F3DB41ACB227_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"Doocot - Gargunnock House","height":240});
															thumbnails[7238712] = clik.newPhoto({"id":7238712,"src":"13_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"Squiggly Bridge - Glasgow","height":240});
															thumbnails[7238713] = clik.newPhoto({"id":7238713,"src":"14_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"Campbell Town Harbour","height":240});
															thumbnails[7238714] = clik.newPhoto({"id":7238714,"src":"16_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"Buachaille Etive Mor","height":240});
															thumbnails[8248872] = clik.newPhoto({"id":8248872,"src":"2011-07-23-merchat-city-festival_1321_1_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"","height":107});
															thumbnails[8250549] = clik.newPhoto({"id":8250549,"src":"2011-07-23-merchat-city-festival_1321_1_95FD89C6-1D09-001F-9929E40D96394A09_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"","height":107});
															thumbnails[8250532] = clik.newPhoto({"id":8250532,"src":"2011-03-24-east-dunbartonshire_0350_95FB244F-1D09-001F-9902988848AE5396_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":160,"caption":"2011-03-24-east-dunbartonshire 0350","height":107});
															thumbnails[7239045] = clik.newPhoto({"id":7239045,"src":"01_380EE5B2-1D09-001F-99A42515C973FE3D_thumb.jpg","galleries_id":391273,"server_id":32,"link":"photo_7239045.html","width":160,"caption":"BBC, Glasgow Science Centre on River Clyde","height":61});
															thumbnails[7241563] = clik.newPhoto({"id":7241563,"src":"01_3B92C9A9-1D09-001F-99E5F9B22975F88D_thumb.jpg","galleries_id":391382,"server_id":32,"link":"photo_7241563.html","width":160,"caption":"","height":240});
															thumbnails[8124477] = clik.newPhoto({"id":8124477,"src":"Seaplane1_1AD419DC-24E8-5EC4-4F7B53EC495E8F84_thumb.jpg","galleries_id":391273,"server_id":32,"link":"photo_8124477.html","width":160,"caption":"Loch Lomond Seaplane","height":65});
															thumbnails[8215348] = clik.newPhoto({"id":8215348,"src":"2010-07-18-Mugdock-Victorian-garden_-Fest_2071_71BBF06A-1D09-001F-99B44ACD3EEC0D9B_thumb.jpg","galleries_id":437769,"server_id":32,"link":"photo_8215348.html","width":160,"caption":"Victorian Garden Party, Mugdock Country Park","height":240});
															thumbnails[8215365] = clik.newPhoto({"id":8215365,"src":"2010-06-21-Mugdock-fest-part_1_1133_71BE37DA-1D09-001F-99274F21B0EB9E62_thumb.jpg","galleries_id":391341,"server_id":32,"link":"photo_8215365.html","width":160,"caption":"Euan Stevenson","height":240});
															thumbnails[8215397] = clik.newPhoto({"id":8215397,"src":"2009-10-15-Glasgow_N_0111_1_71C3C2FB-1D09-001F-99CBADB39B53C4A3_thumb.jpg","galleries_id":439000,"server_id":32,"link":"photo_8215397.html","width":160,"caption":"Glasgow Science Centre ","height":240});
															thumbnails[8215402] = clik.newPhoto({"id":8215402,"src":"2010_05_03_Glasgow_By_Day_0055_71C3D327-1D09-001F-995F2572C5B782C1_thumb.jpg","galleries_id":439000,"server_id":32,"link":"photo_8215402.html","width":160,"caption":"Tall Ship - The Glenlee","height":240});
															thumbnails[8215411] = clik.newPhoto({"id":8215411,"src":"2011-07-24-Glasgw-by-day_1743_71C3F0B2-1D09-001F-993C3E873E970FF9_thumb.jpg","galleries_id":439000,"server_id":32,"link":"photo_8215411.html","width":160,"caption":"The Garage: Sauchiehall Street, Glasgow","height":240});
															thumbnails[8215428] = clik.newPhoto({"id":8215428,"src":"20110628-John-Corcoran-MBE-0773_71D55843-1D09-001F-9900C49B8FC6C87D_thumb.jpg","galleries_id":437770,"server_id":32,"link":"photo_8215428.html","width":160,"caption":"John Corcoran MBE, Strathkelven House","height":240});
															thumbnails[8250515] = clik.newPhoto({"id":8250515,"src":"2010-05-18-Criagallan-Loch_1928_thumb.jpg","galleries_id":439001,"server_id":32,"link":"photo_8250515.html","width":160,"caption":"Bridge over Forth & Clyde Canal, Cadder","height":240});
															thumbnails[8215396] = clik.newPhoto({"id":8215396,"src":"2009-10-15-Glasgow_N_0081_71C3BFCE-1D09-001F-991451AE8BA3738C_thumb.jpg","galleries_id":439000,"server_id":32,"link":"photo_8215396.html","width":160,"caption":"The New Clydeside, River Clyde","height":107});
															thumbnails[8215398] = clik.newPhoto({"id":8215398,"src":"2009-10-16-Glasgow-T_0142_71C3C618-1D09-001F-9949A9917FF55203_thumb.jpg","galleries_id":439000,"server_id":32,"link":"photo_8215398.html","width":160,"caption":"Govan Town Hall from the Science Centre","height":107});
															thumbnails[8215399] = clik.newPhoto({"id":8215399,"src":"2009-10-16-Glasgow_N_0385_71C3C934-1D09-001F-9905580F89D1A5F0_thumb.jpg","galleries_id":439000,"server_id":32,"link":"photo_8215399.html","width":160,"caption":"The Waverley and the Science Centre","height":107});
															thumbnails[8215387] = clik.newPhoto({"id":8215387,"src":"2010-11-01-open-for-busisness-EDC_0557_71C16861-1D09-001F-9969950F17FAD69B_thumb.jpg","galleries_id":437770,"server_id":32,"link":"photo_8215387.html","width":160,"caption":"Heather Raphael","height":240});
															thumbnails[8215401] = clik.newPhoto({"id":8215401,"src":"2010-11-24-Glasgow-by-day_5419_71C3CF8D-1D09-001F-99A2EB7DEE13B32D_thumb.jpg","galleries_id":439000,"server_id":32,"link":"photo_8215401.html","width":160,"caption":"Tradeston Bridge, River Clyde","height":107});
															thumbnails[8215403] = clik.newPhoto({"id":8215403,"src":"2010_05_03_Glasgow_By_Day_0131_71C3D673-1D09-001F-997CA9F8EB481406_thumb.jpg","galleries_id":439000,"server_id":32,"link":"photo_8215403.html","width":160,"caption":"The Armadillo, Scottish Exhibiton and Conference Centre","height":107});
															thumbnails[8215405] = clik.newPhoto({"id":8215405,"src":"2011-07-02-Glasgow_0249_71C3DCEB-1D09-001F-9907CC78AC4B9AB6_thumb.jpg","galleries_id":439000,"server_id":32,"link":"photo_8215405.html","width":160,"caption":"Engineers at New Riverside Transport Museum","height":107});
															thumbnails[8215406] = clik.newPhoto({"id":8215406,"src":"2011-07-23-glasgow-night_1476_71C3E018-1D09-001F-992D4DE21181264A_thumb.jpg","galleries_id":439000,"server_id":32,"link":"photo_8215406.html","width":160,"caption":"Charing Cross at night","height":107});
															thumbnails[8215407] = clik.newPhoto({"id":8215407,"src":"2011-07-23-glasgow-night_1494_71C3E344-1D09-001F-99AD387EFC2D4C99_thumb.jpg","galleries_id":439000,"server_id":32,"link":"photo_8215407.html","width":160,"caption":"The Glenlee, Riverside Museum","height":107});
															thumbnails[7239046] = clik.newPhoto({"id":7239046,"src":"02_380EE97B-1D09-001F-996276540B9A78C9_thumb.jpg","galleries_id":391273,"server_id":32,"link":"photo_7239046.html","width":160,"caption":"View from Armadillo to BBC on River Clyde","height":41});
															thumbnails[7241564] = clik.newPhoto({"id":7241564,"src":"02_3B92CDB1-1D09-001F-99AD5E1B0F568BB1_thumb.jpg","galleries_id":391382,"server_id":32,"link":"photo_7241564.html","width":160,"caption":"","height":240});
															thumbnails[8215366] = clik.newPhoto({"id":8215366,"src":"2010-06-22-Mugdock-Music-Fest-part2_1281_71BE3C4E-1D09-001F-99E2E5CCF22984E9_thumb.jpg","galleries_id":391341,"server_id":32,"link":"photo_8215366.html","width":160,"caption":"Guitar Head","height":240});
															thumbnails[8215409] = clik.newPhoto({"id":8215409,"src":"2011-07-24-Glasgw-by-day_1608_71C3EA1A-1D09-001F-993A98271A37C250_thumb.jpg","galleries_id":439000,"server_id":32,"link":"photo_8215409.html","width":160,"caption":"The Provost Lordship, 1471","height":107});
															thumbnails[8250516] = clik.newPhoto({"id":8250516,"src":"2010-06-12-EDTP_0003_thumb.jpg","galleries_id":439001,"server_id":32,"link":"photo_8250516.html","width":160,"caption":"Tannoch Loch, Milnavie","height":240});
															thumbnails[7239047] = clik.newPhoto({"id":7239047,"src":"03_380EED24-1D09-001F-99F950CB090F68BB_thumb.jpg","galleries_id":391273,"server_id":32,"link":"photo_7239047.html","width":160,"caption":"Buachaille Etive Mor","height":46});
															thumbnails[7241565] = clik.newPhoto({"id":7241565,"src":"03_3B92D002-1D09-001F-9995B6A26F4EF096_thumb.jpg","galleries_id":391382,"server_id":32,"link":"photo_7241565.html","width":160,"caption":"","height":240});
															thumbnails[8215350] = clik.newPhoto({"id":8215350,"src":"2011-03-26-SNP-Milngavie_0417_71BBF675-1D09-001F-996A594FE01DC458_thumb.jpg","galleries_id":437769,"server_id":32,"link":"photo_8215350.html","width":160,"caption":"SNP canvassing event, Milngavie 2011","height":240});
															thumbnails[8215367] = clik.newPhoto({"id":8215367,"src":"2010-06-22-Mugdock-Music-Fest-part2_1315_71BE40F2-1D09-001F-998755B719527787_thumb.jpg","galleries_id":391341,"server_id":32,"link":"photo_8215367.html","width":160,"caption":"Wille and the Hand Jive","height":240});
															thumbnails[8250531] = clik.newPhoto({"id":8250531,"src":"2011-03-18-Auld-Kirk-ED_0023_95FB2103-1D09-001F-99A83BA775F023F9_thumb.jpg","galleries_id":439001,"server_id":32,"link":"photo_8250531.html","width":160,"caption":"Barony Church, Kirkintilloch","height":240});
															thumbnails[7239048] = clik.newPhoto({"id":7239048,"src":"04_380EEF76-1D09-001F-9953059687F1F7E5_thumb.jpg","galleries_id":391273,"server_id":32,"link":"photo_7239048.html","width":160,"caption":"The Science Centre - Glasgow","height":106});
															thumbnails[7241566] = clik.newPhoto({"id":7241566,"src":"04_3B92D244-1D09-001F-99E1639B1B5B327D_thumb.jpg","galleries_id":391382,"server_id":32,"link":"photo_7241566.html","width":160,"caption":"","height":107});
															thumbnails[8215351] = clik.newPhoto({"id":8215351,"src":"2011-03-26-SNP-Milngavie_0463_71BBF9D1-1D09-001F-9945B69B8D0F876E_thumb.jpg","galleries_id":437769,"server_id":32,"link":"photo_8215351.html","width":160,"caption":"Gill Paterson, SNP MSP","height":240});
															thumbnails[8215368] = clik.newPhoto({"id":8215368,"src":"2010-06-23-Mugdock-Music-Fest-part-3_2055_71BE4567-1D09-001F-9965184C7B006AC7_thumb.jpg","galleries_id":391341,"server_id":32,"link":"photo_8215368.html","width":160,"caption":"Rallion","height":240});
															thumbnails[8215384] = clik.newPhoto({"id":8215384,"src":"2010-03-20-Ryan-Daniels_0935_71C15D55-1D09-001F-9904D2264188E10C_thumb.jpg","galleries_id":437770,"server_id":32,"link":"photo_8215384.html","width":160,"caption":"Ryan Daniels","height":240});
															thumbnails[8250518] = clik.newPhoto({"id":8250518,"src":"2010-08-29-Krikintilloch-Canal-Fest_0464_95FAF4B4-1D09-001F-990719E5C0B1B498_thumb.jpg","galleries_id":439001,"server_id":32,"link":"photo_8250518.html","width":160,"caption":"Kirkintilloch Canal Festival 2010","height":240});
															thumbnails[7239049] = clik.newPhoto({"id":7239049,"src":"05_380EF301-1D09-001F-9987B2FEE48BE60B_thumb.jpg","galleries_id":391273,"server_id":32,"link":"photo_7239049.html","width":160,"caption":"South Face Ben Nevis - Fort William","height":53});
															thumbnails[7241567] = clik.newPhoto({"id":7241567,"src":"05_3B92D467-1D09-001F-9901F88C4D5ED4C8_thumb.jpg","galleries_id":391382,"server_id":32,"link":"photo_7241567.html","width":160,"caption":"","height":107});
															thumbnails[8215369] = clik.newPhoto({"id":8215369,"src":"2010-06-23-Mugdock-Music-Fest-part-3_2709_71BE49EB-1D09-001F-993A4D221DE13DE2_thumb.jpg","galleries_id":391341,"server_id":32,"link":"photo_8215369.html","width":160,"caption":"Acoutic Butterfly","height":240});
															thumbnails[8215383] = clik.newPhoto({"id":8215383,"src":"2010-03-20-Ryan-Daniels_0909_71C1593E-1D09-001F-991D5736BCADB8F3_thumb.jpg","galleries_id":437770,"server_id":32,"link":"photo_8215383.html","width":160,"caption":"Hellen and Ryan Daniels","height":107});
															thumbnails[8250517] = clik.newPhoto({"id":8250517,"src":"2010-08-29-Krikintilloch-Canal-Fest_0448_95FAF177-1D09-001F-997B785DEC86D87A_thumb.jpg","galleries_id":439001,"server_id":32,"link":"photo_8250517.html","width":160,"caption":"Kirkintilloch Canal Festival 2010","height":240});
															thumbnails[8215389] = clik.newPhoto({"id":8215389,"src":"2011-04-02-eve-sharpe0020_71C16F27-1D09-001F-990A219D9FD694C0_thumb.jpg","galleries_id":437770,"server_id":32,"link":"photo_8215389.html","width":160,"caption":"Maddie and Eve Sharpe","height":107});
															thumbnails[7239050] = clik.newPhoto({"id":7239050,"src":"06_380EF5CF-1D09-001F-99CC22F8F3E84FA8_thumb.jpg","galleries_id":391273,"server_id":32,"link":"photo_7239050.html","width":160,"caption":"The Pots of Gartness","height":68});
															thumbnails[7241568] = clik.newPhoto({"id":7241568,"src":"06_3B92D6A9-1D09-001F-99F41AD03F2CD7EC_thumb.jpg","galleries_id":391382,"server_id":32,"link":"photo_7241568.html","width":160,"caption":"","height":107});
															thumbnails[8215370] = clik.newPhoto({"id":8215370,"src":"2010-06-25-Mugdock-Music-Fest-part-4_2904_71BE4E8E-1D09-001F-99F44EEE0E3F67F8_thumb.jpg","galleries_id":391341,"server_id":32,"link":"photo_8215370.html","width":160,"caption":"Statesboro Blues Band","height":240});
															thumbnails[8215381] = clik.newPhoto({"id":8215381,"src":"2010-03-20-Ryan-Daniels_0569_thumb.jpg","galleries_id":437770,"server_id":32,"link":"photo_8215381.html","width":160,"caption":"Hellen and Ryan Daniels","height":107});
															thumbnails[8250519] = clik.newPhoto({"id":8250519,"src":"2010-08-29-Krikintilloch-Canal-Fest_0498_95FAF7F0-1D09-001F-99639C7CB05BD98D_thumb.jpg","galleries_id":439001,"server_id":32,"link":"photo_8250519.html","width":160,"caption":"Kirkintilloch Canal Festival 2010","height":240});
															thumbnails[8215373] = clik.newPhoto({"id":8215373,"src":"2010-06-26-Mugdock-Music-Fest-part-5_4270_71BE5D44-1D09-001F-99E8B33475CC98EB_thumb.jpg","galleries_id":391341,"server_id":32,"link":"photo_8215373.html","width":160,"caption":"Weaver Finches","height":107});
															thumbnails[8215379] = clik.newPhoto({"id":8215379,"src":"2010-07-04-Rob_roy-Music-Fest_7902_71BE7A61-1D09-001F-99984E4BE8EAE3AD_thumb.jpg","galleries_id":391341,"server_id":32,"link":"photo_8215379.html","width":160,"caption":"Rob Roy Music Festival 2010","height":107});
															thumbnails[8215440] = clik.newPhoto({"id":8215440,"src":"2010-06-26-Mugdock-Music-Fest-part-5_4659_71E80360-1D09-001F-99313397AD0DD910_thumb.jpg","galleries_id":391341,"server_id":32,"link":"photo_8215440.html","width":160,"caption":"Breabach","height":107});
															thumbnails[7239051] = clik.newPhoto({"id":7239051,"src":"07_380EF8AE-1D09-001F-99A33996B4625C25_thumb.jpg","galleries_id":391273,"server_id":32,"link":"photo_7239051.html","width":160,"caption":"looking North from the top of the Devils Stare Case","height":61});
															thumbnails[7241569] = clik.newPhoto({"id":7241569,"src":"07_3B92D8CC-1D09-001F-992C5603DDA26C85_thumb.jpg","galleries_id":391382,"server_id":32,"link":"photo_7241569.html","width":160,"caption":"","height":107});
															thumbnails[8215371] = clik.newPhoto({"id":8215371,"src":"2010-06-25-Mugdock-Music-Fest-part-4_3225_71BE5322-1D09-001F-99AE64E1DC04CA91_thumb.jpg","galleries_id":391341,"server_id":32,"link":"photo_8215371.html","width":160,"caption":"Statesboro Blues Band","height":240});
															thumbnails[8215390] = clik.newPhoto({"id":8215390,"src":"2011-06-29-Tom-lucas_0845_71C17264-1D09-001F-99F1564CC38D2A43_thumb.jpg","galleries_id":437770,"server_id":32,"link":"photo_8215390.html","width":160,"caption":"Tom Lucas","height":240});
															thumbnails[8215393] = clik.newPhoto({"id":8215393,"src":"_MG_0224_71C17C28-1D09-001F-99DFB41ED50A2B91_thumb.jpg","galleries_id":437770,"server_id":32,"link":"photo_8215393.html","width":160,"caption":"Johnny MacAdam","height":240});
															thumbnails[8250522] = clik.newPhoto({"id":8250522,"src":"2010-08-29-Krikintilloch-Canal-Fest_0646_95FB02AE-1D09-001F-99C04EDD9708C205_thumb.jpg","galleries_id":439001,"server_id":32,"link":"photo_8250522.html","width":160,"caption":"Kennedy Cupcakes, Kirkintilloch Canal Festival 2010","height":107});
															thumbnails[7239052] = clik.newPhoto({"id":7239052,"src":"08_380EFBBB-1D09-001F-999B10FF3B225D42_thumb.jpg","galleries_id":391273,"server_id":32,"link":"photo_7239052.html","width":160,"caption":"Whitefield Loch - Lennoxtown","height":29});
															thumbnails[7241570] = clik.newPhoto({"id":7241570,"src":"08_3B92DB3D-1D09-001F-9910991E5553D872_thumb.jpg","galleries_id":391382,"server_id":32,"link":"photo_7241570.html","width":160,"caption":"","height":107});
															thumbnails[8215349] = clik.newPhoto({"id":8215349,"src":"2011-03-18-Sally-Magnusson-Lynne-Patterson_0096_71BBF397-1D09-001F-99171B171DCB2E51_thumb.jpg","galleries_id":437769,"server_id":32,"link":"photo_8215349.html","width":160,"caption":"Sally Magnusson & Lynne Patterson","height":107});
															thumbnails[8215355] = clik.newPhoto({"id":8215355,"src":"2011-05-28-gala-day-bishopbriggs_1266_71BC072F-1D09-001F-992631197168A8A6_thumb.jpg","galleries_id":437769,"server_id":32,"link":"photo_8215355.html","width":160,"caption":"Thomas Muir Festival 2011","height":107});
															thumbnails[8215372] = clik.newPhoto({"id":8215372,"src":"2010-06-26-Erne-Parkin-Award_3700_83_71BE57D5-1D09-001F-990489D589B45C5D_thumb.jpg","galleries_id":391341,"server_id":32,"link":"photo_8215372.html","width":160,"caption":"Christine Sparks","height":240});
															thumbnails[8215386] = clik.newPhoto({"id":8215386,"src":"2010-11-01-open-for-busisness-EDC_0504_71C16489-1D09-001F-99189ADB9FD84CFD_thumb.jpg","galleries_id":437770,"server_id":32,"link":"photo_8215386.html","width":160,"caption":"Heather Raphael","height":240});
															thumbnails[8250521] = clik.newPhoto({"id":8250521,"src":"2010-08-29-Krikintilloch-Canal-Fest_0552_95FAFEA6-1D09-001F-996EBE1B430338D2_thumb.jpg","galleries_id":439001,"server_id":32,"link":"photo_8250521.html","width":160,"caption":"Kirkintilloch Canal Festival 2010","height":107});
															thumbnails[7241571] = clik.newPhoto({"id":7241571,"src":"09_3B92DD8F-1D09-001F-99FAA6D69BB6042B_thumb.jpg","galleries_id":391382,"server_id":32,"link":"photo_7241571.html","width":160,"caption":"","height":107});
															thumbnails[8215352] = clik.newPhoto({"id":8215352,"src":"2011-05-25-thomas-muir_0972_71BBFD8A-1D09-001F-990F4BA3E1F855B9_thumb.jpg","galleries_id":437769,"server_id":32,"link":"photo_8215352.html","width":160,"caption":"Dr Gordon Pentland,Thomas Muir Festival 2011","height":107});
															thumbnails[8215353] = clik.newPhoto({"id":8215353,"src":"2011-05-25-thomas-muir_0981_71BC0124-1D09-001F-99B8B6C7DCBD0A99_thumb.jpg","galleries_id":437769,"server_id":32,"link":"photo_8215353.html","width":160,"caption":"Alexander Stoddart, Thomas Muir Festival 2011","height":107});
															thumbnails[8215357] = clik.newPhoto({"id":8215357,"src":"2011-06-19-ed-cycle_0423_71BC0D49-1D09-001F-99EFC854B5DDEF0B_thumb.jpg","galleries_id":437769,"server_id":32,"link":"photo_8215357.html","width":160,"caption":"Etive Park Edcycle 2011","height":107});
															thumbnails[8215360] = clik.newPhoto({"id":8215360,"src":"20110619-eds-cycle-co-op-0049_71BC1671-1D09-001F-99CBD4B84574E92A_thumb.jpg","galleries_id":437769,"server_id":32,"link":"photo_8215360.html","width":160,"caption":"Etive Park Edcycle 2011","height":107});
															thumbnails[8250526] = clik.newPhoto({"id":8250526,"src":"2010-11-29-snow_ed_0382_95FB100C-1D09-001F-9930F1BFC1C9F1E9_thumb.jpg","galleries_id":439001,"server_id":32,"link":"photo_8250526.html","width":160,"caption":"Bishopbriggs Library, winter 2010","height":107});
															thumbnails[7241572] = clik.newPhoto({"id":7241572,"src":"10_3B92DF73-1D09-001F-99100531AEAB53D4_thumb.jpg","galleries_id":391382,"server_id":32,"link":"photo_7241572.html","width":160,"caption":"","height":107});
															thumbnails[8173466] = clik.newPhoto({"id":8173466,"src":"20101017_0608_4884FA77-1D09-001F-99747EEF47052EBD_thumb.jpg","galleries_id":436541,"server_id":32,"link":"photo_8173466.html","width":160,"caption":"20101017 0608","height":240});
															thumbnails[8215356] = clik.newPhoto({"id":8215356,"src":"2011-06-19-ed-cycle_0298_71BC0A0D-1D09-001F-99110ED01F1C8154_thumb.jpg","galleries_id":437769,"server_id":32,"link":"photo_8215356.html","width":160,"caption":"Etive Park Edcycle 2011","height":240});
															thumbnails[8215374] = clik.newPhoto({"id":8215374,"src":"2010-06-26-Mugdock-Music-Fest-part-5_4318_71BE6284-1D09-001F-996B914DE11FDC3F_thumb.jpg","galleries_id":391341,"server_id":32,"link":"photo_8215374.html","width":160,"caption":"Acoustic Guitar","height":240});
															thumbnails[8250527] = clik.newPhoto({"id":8250527,"src":"2010-Campsie-Trail_0272_95FB1367-1D09-001F-991D7F09798BFB7A_thumb.jpg","galleries_id":439001,"server_id":32,"link":"photo_8250527.html","width":160,"caption":"Highland cow, Stirlingshire","height":107});
															thumbnails[7241573] = clik.newPhoto({"id":7241573,"src":"11_3B92E1C5-1D09-001F-99550A6D4BFAF5C5_thumb.jpg","galleries_id":391382,"server_id":32,"link":"photo_7241573.html","width":160,"caption":"","height":107});
															thumbnails[8215358] = clik.newPhoto({"id":8215358,"src":"2011-07-14-Mugdock-bus-stop_0320_71BC1037-1D09-001F-9964B04C45A8E930_thumb.jpg","galleries_id":437769,"server_id":32,"link":"photo_8215358.html","width":160,"caption":"Prvst Eric Gotts, Bailie Colin O'Brien, Cllr Bill Binks","height":240});
															thumbnails[8250528] = clik.newPhoto({"id":8250528,"src":"2010-Campsie-Trail_0429_1_95FB1730-1D09-001F-995C3376AD0B6F6A_thumb.jpg","galleries_id":439001,"server_id":32,"link":"photo_8250528.html","width":160,"caption":"Glengoyne Distillery, Stirlinghire","height":107});
															thumbnails[7241574] = clik.newPhoto({"id":7241574,"src":"12_3B92E3E8-1D09-001F-99B19E1FE7563B7D_thumb.jpg","galleries_id":391382,"server_id":32,"link":"photo_7241574.html","width":160,"caption":"","height":107});
															thumbnails[8215359] = clik.newPhoto({"id":8215359,"src":"20110619-eds-cycle-co-op-0013_71BC1354-1D09-001F-99A3E51BBBF7BE68_thumb.jpg","galleries_id":437769,"server_id":32,"link":"photo_8215359.html","width":160,"caption":"Cllr Anne McNair, Etive Park Edcycle 2011","height":240});
															thumbnails[8215376] = clik.newPhoto({"id":8215376,"src":"2010-07-04-Rob_roy-Music-Fest_7271_71BE6D13-1D09-001F-992E28A5F260BE9E_thumb.jpg","galleries_id":391341,"server_id":32,"link":"photo_8215376.html","width":160,"caption":"Rob Roy Music Festival 2010","height":240});
															thumbnails[8250529] = clik.newPhoto({"id":8250529,"src":"2010-Campsie-Trail_0473_95FB1A7B-1D09-001F-991553B2AE6EF70F_thumb.jpg","galleries_id":439001,"server_id":32,"link":"photo_8250529.html","width":160,"caption":"Mugdock Country Park, Stirlingshire","height":107});
															thumbnails[7241575] = clik.newPhoto({"id":7241575,"src":"13_3B92E61B-1D09-001F-99E1ABC1A94AD75E_thumb.jpg","galleries_id":391382,"server_id":32,"link":"photo_7241575.html","width":160,"caption":"","height":107});
															thumbnails[8215377] = clik.newPhoto({"id":8215377,"src":"2010-07-04-Rob_roy-Music-Fest_7646_71BE70FB-1D09-001F-993AA3B7BDEE63F0_thumb.jpg","galleries_id":391341,"server_id":32,"link":"photo_8215377.html","width":160,"caption":"Rob Roy Music Festival 2010","height":240});
															thumbnails[8250523] = clik.newPhoto({"id":8250523,"src":"2010-08-29-Krikintilloch-Canal-Fest_0662_95FB0638-1D09-001F-99FED1AAE062A77F_thumb.jpg","galleries_id":439001,"server_id":32,"link":"photo_8250523.html","width":160,"caption":"Kirkintilloch Canal Festival 2010","height":240});
															thumbnails[7241576] = clik.newPhoto({"id":7241576,"src":"14_3B92E83D-1D09-001F-99420DEC01568CD0_thumb.jpg","galleries_id":391382,"server_id":32,"link":"photo_7241576.html","width":160,"caption":"","height":107});
															thumbnails[8215378] = clik.newPhoto({"id":8215378,"src":"2010-07-04-Rob_roy-Music-Fest_7771_71BE759E-1D09-001F-994C31BA1BE6EDDF_thumb.jpg","galleries_id":391341,"server_id":32,"link":"photo_8215378.html","width":160,"caption":"Rob Roy Music Festival 2010","height":240});
															thumbnails[8250524] = clik.newPhoto({"id":8250524,"src":"2010-08-29-Krikintilloch-Canal-Fest_0675_95FB0984-1D09-001F-99D9514FA6FB6617_thumb.jpg","galleries_id":439001,"server_id":32,"link":"photo_8250524.html","width":160,"caption":"Kirkintilloch Canal Festival 2010","height":240});
															thumbnails[8215408] = clik.newPhoto({"id":8215408,"src":"2011-07-23-glasgow-night_1523_71C3E6DE-1D09-001F-99060ABD7E0C8870_thumb.jpg","galleries_id":439000,"server_id":32,"link":"photo_8215408.html","width":160,"caption":"Riverside Transport Museum","height":240});
															thumbnails[8250577] = clik.newPhoto({"id":8250577,"src":"2010-11-27-switch-on_-Kirkintilloch_0221_thumb.jpg","galleries_id":439001,"server_id":32,"link":"photo_8250577.html","width":160,"caption":"Kirkintilloch Christmas Fireworks 2010","height":240});
															thumbnails[7241578] = clik.newPhoto({"id":7241578,"src":"16_3B92ECC2-1D09-001F-990C75929A03F892_thumb.jpg","galleries_id":391382,"server_id":32,"link":"photo_7241578.html","width":160,"caption":"","height":240});
															thumbnails[7241579] = clik.newPhoto({"id":7241579,"src":"17_3B92EF23-1D09-001F-9929AF05966C430C_thumb.jpg","galleries_id":391382,"server_id":32,"link":"photo_7241579.html","width":160,"caption":"","height":240});
															thumbnails[7241580] = clik.newPhoto({"id":7241580,"src":"18_3B92F175-1D09-001F-993EEECBAADD2F02_thumb.jpg","galleries_id":391382,"server_id":32,"link":"photo_7241580.html","width":160,"caption":"","height":240});
															thumbnails[8215410] = clik.newPhoto({"id":8215410,"src":"2011-07-24-Glasgw-by-day_1627_71C3ED76-1D09-001F-994CCF137FA1F616_thumb.jpg","galleries_id":439000,"server_id":32,"link":"photo_8215410.html","width":160,"caption":"Glasgow Cathederal","height":240});
															thumbnails[8215412] = clik.newPhoto({"id":8215412,"src":"2011-07-24-Glasgw-by-day_1924_71C3F3EE-1D09-001F-99A107DB6774B856_thumb.jpg","galleries_id":439000,"server_id":32,"link":"photo_8215412.html","width":160,"caption":"Theatre Royal","height":240});
															thumbnails[8332287] = clik.newPhoto({"id":8332287,"src":"chamber_cover_shot_thumb.jpg","galleries_id":401183,"server_id":32,"link":"photo_8332287.html","width":160,"caption":"INCOMMERCE Summer 2011","height":226});
															thumbnails[8332290] = clik.newPhoto({"id":8332290,"src":"tom_lucas_1_thumb.jpg","galleries_id":401183,"server_id":32,"link":"photo_8332290.html","width":160,"caption":"INCOMMERCE Summer 2011","height":343});
															thumbnails[8332289] = clik.newPhoto({"id":8332289,"src":"charlies2_thumb.jpg","galleries_id":401183,"server_id":32,"link":"photo_8332289.html","width":137,"caption":"INCOMMERCE Summer 2011","height":400});
															thumbnails[8332288] = clik.newPhoto({"id":8332288,"src":"charlies_1_thumb.jpg","galleries_id":401183,"server_id":32,"link":"photo_8332288.html","width":160,"caption":"INCOMMERCE Summer 2011","height":220});
															thumbnails[7405155] = clik.newPhoto({"id":7405155,"src":"Fish Scotland page4_thumb.jpg","galleries_id":401183,"server_id":32,"link":"photo_7405155.html","width":160,"caption":"Fish Scotland 2011 ","height":221});
															thumbnails[7405156] = clik.newPhoto({"id":7405156,"src":"Fish Scotland page5_thumb.jpg","galleries_id":401183,"server_id":32,"link":"photo_7405156.html","width":160,"caption":"Fish Scotland 2011 ","height":221});
															thumbnails[7405141] = clik.newPhoto({"id":7405141,"src":"vpWNEYQOex70PsqmGcMjvrBZpgU=[1]_thumb.jpg","galleries_id":401183,"server_id":32,"link":"photo_7405141.html","width":160,"caption":"Fish Scotland 2011 ","height":221});
															thumbnails[7405138] = clik.newPhoto({"id":7405138,"src":"Fish Scotland page 1_thumb.jpg","galleries_id":401183,"server_id":32,"link":"photo_7405138.html","width":160,"caption":"Fish Scotland 2011 ","height":221});
															thumbnails[7405139] = clik.newPhoto({"id":7405139,"src":"Fish Scotland page 2_thumb.jpg","galleries_id":401183,"server_id":32,"link":"photo_7405139.html","width":160,"caption":"Fish Scotland 2011 ","height":221});
															thumbnails[7405158] = clik.newPhoto({"id":7405158,"src":"Visit East Dunbartonshire now_1FFB0884-1D09-001F-994A5FA4BB963C45_thumb.jpg","galleries_id":401183,"server_id":32,"link":"photo_7405158.html","width":160,"caption":"Visit East Dunbartonshire Now 2010","height":229});
															thumbnails[7405157] = clik.newPhoto({"id":7405157,"src":"Healthy Habits Summer 2010_1FFB0586-1D09-001F-9990BA21CDECC19D_thumb.jpg","galleries_id":401183,"server_id":32,"link":"photo_7405157.html","width":160,"caption":"Healthy Habits Summer 2010","height":226});
															thumbnails[8213791] = clik.newPhoto({"id":8213791,"src":"kirky_canal_fest_page_thumb.jpg","galleries_id":401183,"server_id":32,"link":"photo_8213791.html","width":160,"caption":"Kirkintilloch Canal Festival","height":226});
															thumbnails[7544022] = clik.newPhoto({"id":7544022,"src":"walks-around-milngavie-map_thumb.jpg","galleries_id":401183,"server_id":32,"link":"photo_7544022.html","width":160,"caption":"walks-around-milngavie-map","height":111});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[439000] = clik.newGallery({"parentGallery":437768,"usePopups":true,"title":"Glasgow","link":"gallery_439000.html","maxRecords":0.0,"photoIDs":[8215397.0,8215402.0,8215411.0,8215396.0,8215398.0,8215399.0,8215401.0,8215403.0,8215405.0,8215406.0,8215407.0,8215409.0,8215408.0,8215410.0,8215412.0],"skipIndex":0,"section_code":"gallery","featured_images":8215408.0,"id":439000,"singleSection":false});				  						galleries[436541] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"David sample ","link":"gallery_436541.html","maxRecords":0.0,"photoIDs":[8173466.0],"skipIndex":0,"section_code":"gallery","featured_images":8173466.0,"id":436541,"singleSection":false});				  						galleries[439001] = clik.newGallery({"parentGallery":437768,"usePopups":true,"title":"East Dunbartonshire","link":"gallery_439001.html","maxRecords":0.0,"photoIDs":[8250515.0,8250516.0,8250531.0,8250518.0,8250517.0,8250519.0,8250522.0,8250521.0,8250526.0,8250527.0,8250528.0,8250529.0,8250523.0,8250524.0,8250577.0],"skipIndex":0,"section_code":"gallery","featured_images":"8250531,8250515","id":439001,"singleSection":false});				  						galleries[437768] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Tourism","link":"gallery_437768.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"8250531,8250515,8215408","id":437768,"singleSection":false});				  						galleries[437769] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Events","link":"gallery_437769.html","maxRecords":0.0,"photoIDs":[8215348.0,8215350.0,8215351.0,8215349.0,8215355.0,8215352.0,8215353.0,8215357.0,8215360.0,8215356.0,8215358.0,8215359.0],"skipIndex":0,"section_code":"gallery","featured_images":8215350.0,"id":437769,"singleSection":false});				  						galleries[391341] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Gigs","link":"gallery_391341.html","maxRecords":0.0,"photoIDs":[8215365.0,8215366.0,8215367.0,8215368.0,8215369.0,8215370.0,8215373.0,8215379.0,8215440.0,8215371.0,8215372.0,8215374.0,8215376.0,8215377.0,8215378.0],"skipIndex":0,"section_code":"gallery","featured_images":8215370.0,"id":391341,"singleSection":false});				  						galleries[437770] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Portraits","link":"gallery_437770.html","maxRecords":0.0,"photoIDs":[8215428.0,8215387.0,8215384.0,8215383.0,8215389.0,8215381.0,8215390.0,8215393.0,8215386.0],"skipIndex":0,"section_code":"gallery","featured_images":8215428.0,"id":437770,"singleSection":false});				  						galleries[391382] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Wild Life","link":"gallery_391382.html","maxRecords":0.0,"photoIDs":[7241563.0,7241564.0,7241565.0,7241566.0,7241567.0,7241568.0,7241569.0,7241570.0,7241571.0,7241572.0,7241573.0,7241574.0,7241575.0,7241576.0,7241578.0,7241579.0,7241580.0],"skipIndex":0,"section_code":"gallery","featured_images":7241580.0,"id":391382,"singleSection":false});				  						galleries[391273] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Panoramas","link":"gallery_391273.html","maxRecords":0.0,"photoIDs":[7239045.0,8124477.0,7239046.0,7239047.0,7239048.0,7239049.0,7239050.0,7239051.0,7239052.0],"skipIndex":0,"section_code":"gallery","featured_images":7239048.0,"id":391273,"singleSection":false});				  						galleries[401183] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Published work","link":"section478647.html","maxRecords":0.0,"photoIDs":[8332287.0,8332290.0,8332289.0,8332288.0,7405155.0,7405156.0,7405141.0,7405138.0,7405139.0,7405158.0,7405157.0,8213791.0,7544022.0],"skipIndex":0,"section_code":"section478647","featured_images":"8332287,7405158","id":401183,"singleSection":true});				  						galleries[439294] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Seeglasgow","link":"gallery_439294.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":439294,"singleSection":false});				  						galleries[439295] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Clydebank Shopping Centre","link":"gallery_439295.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":439295,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8217301,8217302,8217303,8217304,8217305,8217306,8217307';
imageSets[2] = '8332287,8250515,8215428,8250531,8215350,7239048,7405158,8215370,7238905,7238705,8215408,7241580';
imageSets[3] = '8215411,8215402,8215397,8215398,8215396,8215399,8215401,8215403,8215405,8215406,8215407,8215409,8215408,8215410,8215412';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/GreenHighlander/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/GreenHighlander/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/GreenHighlander/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/GreenHighlander/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/GreenHighlander/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/GreenHighlander/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/GreenHighlander/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/GreenHighlander/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/GreenHighlander/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/GreenHighlander/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/GreenHighlander/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/GreenHighlander/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/GreenHighlander/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/GreenHighlander/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/GreenHighlander/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/GreenHighlander/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/GreenHighlander/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/GreenHighlander/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/GreenHighlander/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/GreenHighlander/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/GreenHighlander/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/GreenHighlander/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/GreenHighlander/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/GreenHighlander/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/GreenHighlander/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/GreenHighlander/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/GreenHighlander/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = (backgrounds || photos || {})[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Green Highlander Images: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="info@greenhighlander.co.uk">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="info@greenhighlander.co.uk">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

