window.thumbnails = {};
															thumbnails[820569] = clik.newPhoto({"id":820569,"src":"Springtime up_thumb.jpg","galleries_id":63035,"server_id":18,"link":"photo_820569.html","width":130,"caption":"Spring","height":73});
															thumbnails[1283677] = clik.newPhoto({"id":1283677,"src":"Reflection_thumb.jpg","galleries_id":63033,"server_id":18,"link":"photo_1283677.html","width":130,"caption":"Reflected Light","height":177});
															thumbnails[820415] = clik.newPhoto({"id":820415,"src":"Basin Sunset up1_thumb.jpg","galleries_id":62577,"server_id":18,"link":"photo_820415.html","width":130,"caption":"Basin Sunset","height":94});
															thumbnails[820486] = clik.newPhoto({"id":820486,"src":"Don't let us be strangers up_thumb.jpg","galleries_id":63033,"server_id":18,"link":"photo_820486.html","width":130,"caption":"Ferryden","height":66});
															thumbnails[1843007] = clik.newPhoto({"id":1843007,"src":"A92 resized_thumb.jpg","galleries_id":123999,"server_id":18,"link":"photo_1843007.html","width":130,"caption":"A92 Dusk","height":82});
															thumbnails[1843076] = clik.newPhoto({"id":1843076,"src":"8th Ave  resized_thumb.jpg","galleries_id":124000,"server_id":18,"link":"photo_1843076.html","width":130,"caption":"8th Avenue","height":88});
															thumbnails[1843109] = clik.newPhoto({"id":1843109,"src":"Blue Note resized_thumb.jpg","galleries_id":124000,"server_id":18,"link":"photo_1843109.html","width":130,"caption":"Duke Ellington Orchestra","height":87});
															thumbnails[4671725] = clik.newPhoto({"id":4671725,"src":"33-Happy-Couple-F_thumb.jpg","galleries_id":269214,"server_id":18,"link":"photo_4671725.html","width":130,"caption":"","height":85});
															thumbnails[6250417] = clik.newPhoto({"id":6250417,"src":"3055070501_b1cd2dffee_thumb.jpg","galleries_id":347678,"server_id":18,"link":"photo_6250417.html","width":130,"caption":"Neck","height":182});
															thumbnails[4671729] = clik.newPhoto({"id":4671729,"src":"51-DSC_3787_thumb.jpg","galleries_id":269214,"server_id":18,"link":"photo_4671729.html","width":130,"caption":"","height":165});
															thumbnails[820549] = clik.newPhoto({"id":820549,"src":"Grand Entrance up_thumb.jpg","galleries_id":63035,"server_id":18,"link":"photo_820549.html","width":130,"caption":"Grand Entrance","height":79});
															thumbnails[841156] = clik.newPhoto({"id":841156,"src":"Kirkie Steps 500 wee_thumb.jpg","galleries_id":62577,"server_id":18,"link":"photo_841156.html","width":130,"caption":"Kirkie Steps","height":85});
															thumbnails[1842952] = clik.newPhoto({"id":1842952,"src":"Brass resized_thumb.jpg","galleries_id":123998,"server_id":18,"link":"photo_1842952.html","width":130,"caption":"Brass","height":182});
															thumbnails[1843009] = clik.newPhoto({"id":1843009,"src":"Bruce resized_thumb.jpg","galleries_id":123999,"server_id":18,"link":"photo_1843009.html","width":130,"caption":"Bruce","height":84});
															thumbnails[1843079] = clik.newPhoto({"id":1843079,"src":"Alicante Beach resized_thumb.jpg","galleries_id":124000,"server_id":18,"link":"photo_1843079.html","width":130,"caption":"Sculptured Beach","height":66});
															thumbnails[4671727] = clik.newPhoto({"id":4671727,"src":"42-Edit-F-End_thumb.jpg","galleries_id":269214,"server_id":18,"link":"photo_4671727.html","width":130,"caption":"","height":106});
															thumbnails[6250433] = clik.newPhoto({"id":6250433,"src":"3055070951_8de548764a_thumb.jpg","galleries_id":347678,"server_id":18,"link":"photo_6250433.html","width":130,"caption":"Neck","height":80});
															thumbnails[820439] = clik.newPhoto({"id":820439,"src":"The Beach up_thumb.jpg","galleries_id":62577,"server_id":18,"link":"photo_820439.html","width":130,"caption":"The Beach","height":81});
															thumbnails[820446] = clik.newPhoto({"id":820446,"src":"Minesweeper up_thumb.jpg","galleries_id":123998,"server_id":18,"link":"photo_820446.html","width":130,"caption":"Minesweeper","height":191});
															thumbnails[820552] = clik.newPhoto({"id":820552,"src":"Kinnell up_thumb.jpg","galleries_id":63035,"server_id":18,"link":"photo_820552.html","width":130,"caption":"Crisp","height":86});
															thumbnails[1843011] = clik.newPhoto({"id":1843011,"src":"Frosty Trees resized_thumb.jpg","galleries_id":123999,"server_id":18,"link":"photo_1843011.html","width":130,"caption":"Frosty Morning","height":87});
															thumbnails[1843111] = clik.newPhoto({"id":1843111,"src":"Hats & Scarves resized_thumb.jpg","galleries_id":123999,"server_id":18,"link":"photo_1843111.html","width":130,"caption":"\"Hats, Scarves and Flags!\"","height":89});
															thumbnails[6250441] = clik.newPhoto({"id":6250441,"src":"3055898338_38266897af_thumb.jpg","galleries_id":347678,"server_id":18,"link":"photo_6250441.html","width":130,"caption":"Sons o' the Soil","height":184});
															thumbnails[820433] = clik.newPhoto({"id":820433,"src":"Skyline up_thumb.jpg","galleries_id":62577,"server_id":18,"link":"photo_820433.html","width":130,"caption":"Skyline","height":96});
															thumbnails[820481] = clik.newPhoto({"id":820481,"src":"Scurdieness up_thumb.jpg","galleries_id":63033,"server_id":18,"link":"photo_820481.html","width":130,"caption":"The 'Lichthoose'","height":153});
															thumbnails[1843084] = clik.newPhoto({"id":1843084,"src":"Turret  resized_thumb.jpg","galleries_id":124000,"server_id":18,"link":"photo_1843084.html","width":130,"caption":"Look Out","height":84});
															thumbnails[4671731] = clik.newPhoto({"id":4671731,"src":"54-DSC_3818_thumb.jpg","galleries_id":269214,"server_id":18,"link":"photo_4671731.html","width":130,"caption":"","height":91});
															thumbnails[6250447] = clik.newPhoto({"id":6250447,"src":"3609851381_c9cf2ec7d6_thumb.jpg","galleries_id":347678,"server_id":18,"link":"photo_6250447.html","width":130,"caption":"Deacon Blue","height":89});
															thumbnails[820479] = clik.newPhoto({"id":820479,"src":"Scurdieness Sunrise up_thumb.jpg","galleries_id":63033,"server_id":18,"link":"photo_820479.html","width":130,"caption":"Daybreak","height":79});
															thumbnails[820469] = clik.newPhoto({"id":820469,"src":"Flight Original up_thumb.jpg","galleries_id":63033,"server_id":18,"link":"photo_820469.html","width":130,"caption":"Flight","height":90});
															thumbnails[820434] = clik.newPhoto({"id":820434,"src":"Sleepyhillock up_thumb.jpg","galleries_id":62577,"server_id":18,"link":"photo_820434.html","width":130,"caption":"Sleepyhillock","height":79});
															thumbnails[1843023] = clik.newPhoto({"id":1843023,"src":"Debating Chamber resized_thumb.jpg","galleries_id":123999,"server_id":18,"link":"photo_1843023.html","width":130,"caption":"Debating Chamber","height":87});
															thumbnails[1843088] = clik.newPhoto({"id":1843088,"src":"Park Ave  resized_thumb.jpg","galleries_id":124000,"server_id":18,"link":"photo_1843088.html","width":130,"caption":"Park Avenue","height":77});
															thumbnails[4671732] = clik.newPhoto({"id":4671732,"src":"70-DSC_3846_thumb.jpg","galleries_id":269214,"server_id":18,"link":"photo_4671732.html","width":130,"caption":"","height":181});
															thumbnails[6250451] = clik.newPhoto({"id":6250451,"src":"3610664078_ce533ef66f_thumb.jpg","galleries_id":347678,"server_id":18,"link":"photo_6250451.html","width":130,"caption":"Deacon Blue","height":184});
															thumbnails[847452] = clik.newPhoto({"id":847452,"src":"Railway Bridge 500_thumb.jpg","galleries_id":62577,"server_id":18,"link":"photo_847452.html","width":130,"caption":"Railway Bridge","height":87});
															thumbnails[1843027] = clik.newPhoto({"id":1843027,"src":"Glasgow Hog resized_thumb.jpg","galleries_id":123999,"server_id":18,"link":"photo_1843027.html","width":130,"caption":"Happy New Year!","height":86});
															thumbnails[1843092] = clik.newPhoto({"id":1843092,"src":"Pool  resized_thumb.jpg","galleries_id":124000,"server_id":18,"link":"photo_1843092.html","width":130,"caption":"Cool Pool","height":82});
															thumbnails[1986015] = clik.newPhoto({"id":1986015,"src":"Sudial 2 in focus Use upload_thumb.jpg","galleries_id":63035,"server_id":18,"link":"photo_1986015.html","width":130,"caption":"House of Dun","height":89});
															thumbnails[4671741] = clik.newPhoto({"id":4671741,"src":"Edit-3996_thumb.jpg","galleries_id":269214,"server_id":18,"link":"photo_4671741.html","width":130,"caption":"","height":86});
															thumbnails[6250546] = clik.newPhoto({"id":6250546,"src":"3610665758_fced896138_thumb.jpg","galleries_id":347678,"server_id":18,"link":"photo_6250546.html","width":130,"caption":"Gerry Jablonski's Blues Project","height":89});
															thumbnails[1985994] = clik.newPhoto({"id":1985994,"src":"Arb Harb upload_thumb.jpg","galleries_id":63035,"server_id":18,"link":"photo_1985994.html","width":130,"caption":"Safe Haven","height":58});
															thumbnails[1986001] = clik.newPhoto({"id":1986001,"src":"Bridge of Dun 2 upload_thumb.jpg","galleries_id":63035,"server_id":18,"link":"photo_1986001.html","width":130,"caption":"Bridge of Dun","height":92});
															thumbnails[1986019] = clik.newPhoto({"id":1986019,"src":"Sunshine after the rain to upload_thumb.jpg","galleries_id":63035,"server_id":18,"link":"photo_1986019.html","width":130,"caption":"'Come rain or come shine....'","height":92});
															thumbnails[820450] = clik.newPhoto({"id":820450,"src":"Seafarers up_thumb.jpg","galleries_id":123998,"server_id":18,"link":"photo_820450.html","width":130,"caption":"Seafarers","height":187});
															thumbnails[820556] = clik.newPhoto({"id":820556,"src":"Lunan Bay up_thumb.jpg","galleries_id":63035,"server_id":18,"link":"photo_820556.html","width":130,"caption":"Field of Gold","height":166});
															thumbnails[841172] = clik.newPhoto({"id":841172,"src":"GBridge  500 wee_thumb.jpg","galleries_id":62577,"server_id":18,"link":"photo_841172.html","width":130,"caption":"New Bridge","height":86});
															thumbnails[1283669] = clik.newPhoto({"id":1283669,"src":"Sunrise Scurdieness_thumb.jpg","galleries_id":63033,"server_id":18,"link":"photo_1283669.html","width":130,"caption":"'It's a new dawn, it's a new day....'","height":54});
															thumbnails[1843029] = clik.newPhoto({"id":1843029,"src":"Isle of May resized_thumb.jpg","galleries_id":123999,"server_id":18,"link":"photo_1843029.html","width":130,"caption":"Isle of May","height":86});
															thumbnails[1843103] = clik.newPhoto({"id":1843103,"src":"Pottery Portugal resized_thumb.jpg","galleries_id":124000,"server_id":18,"link":"photo_1843103.html","width":130,"caption":"Pottery","height":94});
															thumbnails[1843122] = clik.newPhoto({"id":1843122,"src":"Poppies 1 to upload_thumb.jpg","galleries_id":63035,"server_id":18,"link":"photo_1843122.html","width":130,"caption":"Poppies","height":82});
															thumbnails[1986091] = clik.newPhoto({"id":1986091,"src":"Johnshaven sml_thumb.jpg","galleries_id":123999,"server_id":18,"link":"photo_1986091.html","width":130,"caption":"Long Johns Haven","height":87});
															thumbnails[4671745] = clik.newPhoto({"id":4671745,"src":"Edit-4083_thumb.jpg","galleries_id":269214,"server_id":18,"link":"photo_4671745.html","width":130,"caption":"","height":84});
															thumbnails[6250563] = clik.newPhoto({"id":6250563,"src":"3806012032_d70260c73c_thumb.jpg","galleries_id":347678,"server_id":18,"link":"photo_6250563.html","width":130,"caption":"Courtney Pine","height":83});
															thumbnails[1986096] = clik.newPhoto({"id":1986096,"src":"Shoretack sml_thumb.jpg","galleries_id":123999,"server_id":18,"link":"photo_1986096.html","width":130,"caption":"Shoretack","height":89});
															thumbnails[820573] = clik.newPhoto({"id":820573,"src":"Sunset up_thumb.jpg","galleries_id":63035,"server_id":18,"link":"photo_820573.html","width":130,"caption":"Glow","height":195});
															thumbnails[1283673] = clik.newPhoto({"id":1283673,"src":"15 It's a new day 3 F reduced_thumb.jpg","galleries_id":63033,"server_id":18,"link":"photo_1283673.html","width":130,"caption":"'Softly as a morning sunrise...'","height":87});
															thumbnails[1843033] = clik.newPhoto({"id":1843033,"src":"Landmark resized_thumb.jpg","galleries_id":123999,"server_id":18,"link":"photo_1843033.html","width":130,"caption":"\"Meet You Here.\"","height":82});
															thumbnails[1843106] = clik.newPhoto({"id":1843106,"src":"Manhattan  Bridge resized_thumb.jpg","galleries_id":124000,"server_id":18,"link":"photo_1843106.html","width":130,"caption":"Manhattan Bridge","height":57});
															thumbnails[1843123] = clik.newPhoto({"id":1843123,"src":"up resized_thumb.jpg","galleries_id":123999,"server_id":18,"link":"photo_1843123.html","width":130,"caption":"Up","height":83});
															thumbnails[6250578] = clik.newPhoto({"id":6250578,"src":"3811101431_3166f5c367_thumb.jpg","galleries_id":347678,"server_id":18,"link":"photo_6250578.html","width":130,"caption":"Devotchka","height":84});
															thumbnails[1986136] = clik.newPhoto({"id":1986136,"src":"Lunan Bay Horse sml_thumb.jpg","galleries_id":63035,"server_id":18,"link":"photo_1986136.html","width":130,"caption":"Life's a Beach","height":72});
															thumbnails[820429] = clik.newPhoto({"id":820429,"src":"Morning Rush Hour up_thumb.jpg","galleries_id":62577,"server_id":18,"link":"photo_820429.html","width":130,"caption":"Morning Rush Hour","height":96});
															thumbnails[820442] = clik.newPhoto({"id":820442,"src":"The Marquis up_thumb.jpg","galleries_id":123998,"server_id":18,"link":"photo_820442.html","width":130,"caption":"The Marquis","height":81});
															thumbnails[1843038] = clik.newPhoto({"id":1843038,"src":"Princes Square resized_thumb.jpg","galleries_id":123999,"server_id":18,"link":"photo_1843038.html","width":130,"caption":"Round in Circles","height":88});
															thumbnails[1843126] = clik.newPhoto({"id":1843126,"src":"Wedding Faro resized_thumb.jpg","galleries_id":269214,"server_id":18,"link":"photo_1843126.html","width":130,"caption":"","height":81});
															thumbnails[2487857] = clik.newPhoto({"id":2487857,"src":"'What a difference a day makes Lo res_thumb.jpg","galleries_id":63033,"server_id":18,"link":"photo_2487857.html","width":130,"caption":"'What a difference a day makes...'","height":59});
															thumbnails[2487939] = clik.newPhoto({"id":2487939,"src":"gatepost lo res_thumb.jpg","galleries_id":63035,"server_id":18,"link":"photo_2487939.html","width":130,"caption":"'Between you, me and....'","height":181});
															thumbnails[4671748] = clik.newPhoto({"id":4671748,"src":"Edit-4106_thumb.jpg","galleries_id":269214,"server_id":18,"link":"photo_4671748.html","width":130,"caption":"","height":85});
															thumbnails[6250586] = clik.newPhoto({"id":6250586,"src":"3812405466_1d61f48728_thumb.jpg","galleries_id":347678,"server_id":18,"link":"photo_6250586.html","width":130,"caption":"Ritzy Bryan","height":79});
															thumbnails[1842977] = clik.newPhoto({"id":1842977,"src":"Love is in the air resized_thumb.jpg","galleries_id":123998,"server_id":18,"link":"photo_1842977.html","width":130,"caption":"Love is in the Air","height":90});
															thumbnails[1843041] = clik.newPhoto({"id":1843041,"src":"Port Ellen Islay resized_thumb.jpg","galleries_id":123999,"server_id":18,"link":"photo_1843041.html","width":130,"caption":"Islay","height":81});
															thumbnails[1843051] = clik.newPhoto({"id":1843051,"src":"St Vincent St resized_thumb.jpg","galleries_id":123999,"server_id":18,"link":"photo_1843051.html","width":130,"caption":"St Vincent Street","height":88});
															thumbnails[2487903] = clik.newPhoto({"id":2487903,"src":"Ferryden Lo res_thumb.jpg","galleries_id":63033,"server_id":18,"link":"photo_2487903.html","width":130,"caption":"South Esk","height":74});
															thumbnails[3102686] = clik.newPhoto({"id":3102686,"src":"Auchmithie 6 Lo Res_thumb.jpg","galleries_id":63035,"server_id":18,"link":"photo_3102686.html","width":130,"caption":"Ripple on Pebble","height":58});
															thumbnails[6250743] = clik.newPhoto({"id":6250743,"src":"3812407512_6b49055348_thumb.jpg","galleries_id":347678,"server_id":18,"link":"photo_6250743.html","width":130,"caption":"Treacherous Orchestra","height":73});
															thumbnails[1843046] = clik.newPhoto({"id":1843046,"src":"Sheildaeg resized_thumb.jpg","galleries_id":123999,"server_id":18,"link":"photo_1843046.html","width":130,"caption":"Sheildaeg","height":98});
															thumbnails[3102689] = clik.newPhoto({"id":3102689,"src":"Auchmithie 7 Lo-Res_thumb.jpg","galleries_id":63035,"server_id":18,"link":"photo_3102689.html","width":130,"caption":"Auchmithie","height":195});
															thumbnails[4671759] = clik.newPhoto({"id":4671759,"src":"Edit-4225_thumb.jpg","galleries_id":269214,"server_id":18,"link":"photo_4671759.html","width":130,"caption":"","height":84});
															thumbnails[2487914] = clik.newPhoto({"id":2487914,"src":"Pilot Boat 2 Lo res_thumb.jpg","galleries_id":63033,"server_id":18,"link":"photo_2487914.html","width":130,"caption":"Pilot Boat","height":58});
															thumbnails[4671761] = clik.newPhoto({"id":4671761,"src":"Edit-4289_thumb.jpg","galleries_id":269214,"server_id":18,"link":"photo_4671761.html","width":130,"caption":"","height":92});
															thumbnails[6243186] = clik.newPhoto({"id":6243186,"src":"3058444173_ab87d263f7_thumb.jpg","galleries_id":63035,"server_id":18,"link":"photo_6243186.html","width":130,"caption":"Lunan Bay","height":40});
															thumbnails[6251094] = clik.newPhoto({"id":6251094,"src":"3812550808_a63c67ee39_thumb.jpg","galleries_id":347678,"server_id":18,"link":"photo_6251094.html","width":130,"caption":"Glen Tillbrook","height":87});
															thumbnails[820423] = clik.newPhoto({"id":820423,"src":"farmers Market up_thumb.jpg","galleries_id":123998,"server_id":18,"link":"photo_820423.html","width":130,"caption":"Farmers' Market","height":81});
															thumbnails[820462] = clik.newPhoto({"id":820462,"src":"Seafront Sunrise up_thumb.jpg","galleries_id":62577,"server_id":18,"link":"photo_820462.html","width":130,"caption":"Under Observation","height":84});
															thumbnails[841168] = clik.newPhoto({"id":841168,"src":"Rabbie 500 wee_thumb.jpg","galleries_id":123998,"server_id":18,"link":"photo_841168.html","width":130,"caption":"Robert Burns","height":173});
															thumbnails[3105670] = clik.newPhoto({"id":3105670,"src":"Ferryden + Boat Lo res 2_thumb.jpg","galleries_id":63033,"server_id":18,"link":"photo_3105670.html","width":130,"caption":"Wake","height":70});
															thumbnails[4671765] = clik.newPhoto({"id":4671765,"src":"Edit-4430_thumb.jpg","galleries_id":269214,"server_id":18,"link":"photo_4671765.html","width":130,"caption":"","height":79});
															thumbnails[6243201] = clik.newPhoto({"id":6243201,"src":"3270905311_0884e30eb0_thumb.jpg","galleries_id":63035,"server_id":18,"link":"photo_6243201.html","width":130,"caption":"'Letters Only'","height":87});
															thumbnails[6251097] = clik.newPhoto({"id":6251097,"src":"4378686661_dd3b99d676_thumb.jpg","galleries_id":347678,"server_id":18,"link":"photo_6251097.html","width":130,"caption":"The Moons","height":87});
															thumbnails[4671780] = clik.newPhoto({"id":4671780,"src":"Edit-5275_thumb.jpg","galleries_id":269214,"server_id":18,"link":"photo_4671780.html","width":130,"caption":"","height":202});
															thumbnails[820432] = clik.newPhoto({"id":820432,"src":"Seafront up_thumb.jpg","galleries_id":62577,"server_id":18,"link":"photo_820432.html","width":130,"caption":"Seafront","height":92});
															thumbnails[820437] = clik.newPhoto({"id":820437,"src":"Spiral up_thumb.jpg","galleries_id":62577,"server_id":18,"link":"photo_820437.html","width":130,"caption":"Spiral","height":90});
															thumbnails[1843057] = clik.newPhoto({"id":1843057,"src":"Tay Bridge resized_thumb.jpg","galleries_id":123999,"server_id":18,"link":"photo_1843057.html","width":130,"caption":"Tay Bridge Sunset","height":80});
															thumbnails[3360706] = clik.newPhoto({"id":3360706,"src":"Usan Lass  Lo res_thumb.jpg","galleries_id":63033,"server_id":18,"link":"photo_3360706.html","width":130,"caption":"Usan Lass","height":87});
															thumbnails[4671779] = clik.newPhoto({"id":4671779,"src":"Edit-5137_thumb.jpg","galleries_id":269214,"server_id":18,"link":"photo_4671779.html","width":130,"caption":"","height":176});
															thumbnails[6243286] = clik.newPhoto({"id":6243286,"src":"3540543482_bf6b5a595d_thumb.jpg","galleries_id":63035,"server_id":18,"link":"photo_6243286.html","width":130,"caption":"Edzell","height":212});
															thumbnails[6251099] = clik.newPhoto({"id":6251099,"src":"4379224260_846ab4d53f_thumb.jpg","galleries_id":347678,"server_id":18,"link":"photo_6251099.html","width":130,"caption":"Ocean Colour Scene","height":87});
															thumbnails[1843064] = clik.newPhoto({"id":1843064,"src":"Waverley resized_thumb.jpg","galleries_id":123999,"server_id":18,"link":"photo_1843064.html","width":130,"caption":"The Waverley","height":68});
															thumbnails[3105665] = clik.newPhoto({"id":3105665,"src":"Duck Bay Marina dodged Lo Res_thumb.jpg","galleries_id":123999,"server_id":18,"link":"photo_3105665.html","width":130,"caption":"Duck Bay Marina","height":87});
															thumbnails[4671770] = clik.newPhoto({"id":4671770,"src":"Edit-5013-a_thumb.jpg","galleries_id":269214,"server_id":18,"link":"photo_4671770.html","width":130,"caption":"","height":208});
															thumbnails[6243287] = clik.newPhoto({"id":6243287,"src":"3625162607_f5ec5e7aaa_thumb.jpg","galleries_id":63035,"server_id":18,"link":"photo_6243287.html","width":130,"caption":"Brechin Cathedral","height":195});
															thumbnails[1843069] = clik.newPhoto({"id":1843069,"src":"Washed up resized_thumb.jpg","galleries_id":123999,"server_id":18,"link":"photo_1843069.html","width":130,"caption":"Washed Up","height":160});
															thumbnails[6243290] = clik.newPhoto({"id":6243290,"src":"3641821867_6792f0481e_thumb.jpg","galleries_id":63035,"server_id":18,"link":"photo_6243290.html","width":130,"caption":"Forfar Loch","height":88});
															thumbnails[6250315] = clik.newPhoto({"id":6250315,"src":"3858829804_d87dd199a7_thumb.jpg","galleries_id":123999,"server_id":18,"link":"photo_6250315.html","width":130,"caption":"Old Ferry Terminal","height":191});
															thumbnails[2487905] = clik.newPhoto({"id":2487905,"src":"Links park Lo res_thumb.jpg","galleries_id":62577,"server_id":18,"link":"photo_2487905.html","width":130,"caption":"Links Park","height":88});
															thumbnails[4671768] = clik.newPhoto({"id":4671768,"src":"Edit-4822_thumb.jpg","galleries_id":269214,"server_id":18,"link":"photo_4671768.html","width":130,"caption":"","height":86});
															thumbnails[820440] = clik.newPhoto({"id":820440,"src":"The Glaxo up_thumb.jpg","galleries_id":62577,"server_id":18,"link":"photo_820440.html","width":130,"caption":"Glaxo","height":81});
															thumbnails[3105560] = clik.newPhoto({"id":3105560,"src":"Kibble Palace Lo Res_thumb.jpg","galleries_id":123999,"server_id":18,"link":"photo_3105560.html","width":130,"caption":"Kibble Palace","height":87});
															thumbnails[6243305] = clik.newPhoto({"id":6243305,"src":"3642630882_ec21348d512_thumb.jpg","galleries_id":63035,"server_id":18,"link":"photo_6243305.html","width":130,"caption":"Little Causeway","height":183});
															thumbnails[6250322] = clik.newPhoto({"id":6250322,"src":"4093152122_541fdbd174_thumb.jpg","galleries_id":123999,"server_id":18,"link":"photo_6250322.html","width":130,"caption":"First Minister","height":83});
															thumbnails[6250337] = clik.newPhoto({"id":6250337,"src":"Piper_thumb.jpg","galleries_id":123999,"server_id":18,"link":"photo_6250337.html","width":130,"caption":"Piper","height":87});
															thumbnails[6243308] = clik.newPhoto({"id":6243308,"src":"4108221125_0e2eb21842_thumb.jpg","galleries_id":63035,"server_id":18,"link":"photo_6243308.html","width":130,"caption":"Forbes of Kingennie","height":87});
															thumbnails[6243311] = clik.newPhoto({"id":6243311,"src":"4115669808_e8b3997906_thumb.jpg","galleries_id":63035,"server_id":18,"link":"photo_6243311.html","width":130,"caption":"East Newgate","height":200});
															thumbnails[3102694] = clik.newPhoto({"id":3102694,"src":"Autumn Marquis Lo-Res_thumb.jpg","galleries_id":123998,"server_id":18,"link":"photo_3102694.html","width":130,"caption":"Castle Place Autumn","height":204});
															thumbnails[4671776] = clik.newPhoto({"id":4671776,"src":"Edit-5131_thumb.jpg","galleries_id":269214,"server_id":18,"link":"photo_4671776.html","width":130,"caption":"","height":68});
															thumbnails[4671782] = clik.newPhoto({"id":4671782,"src":"Edit-5971-b_thumb.jpg","galleries_id":269214,"server_id":18,"link":"photo_4671782.html","width":130,"caption":"","height":83});
															thumbnails[3102714] = clik.newPhoto({"id":3102714,"src":"Gourdon Harbour 3 Lo Res_thumb.jpg","galleries_id":123999,"server_id":18,"link":"photo_3102714.html","width":130,"caption":"Gourdon Harbour","height":60});
															thumbnails[4671781] = clik.newPhoto({"id":4671781,"src":"Edit-5934-a_thumb.jpg","galleries_id":269214,"server_id":18,"link":"photo_4671781.html","width":130,"caption":"","height":89});
															thumbnails[5091531] = clik.newPhoto({"id":5091531,"src":"Edit_8865_thumb.jpg","galleries_id":269214,"server_id":18,"link":"photo_5091531.html","width":130,"caption":"","height":91});
															thumbnails[6243316] = clik.newPhoto({"id":6243316,"src":"4120472516_c8dd8840a7_thumb.jpg","galleries_id":63035,"server_id":18,"link":"photo_6243316.html","width":130,"caption":"Marina","height":204});
															thumbnails[6250047] = clik.newPhoto({"id":6250047,"src":"3388352598_cc7cb1f234_thumb.jpg","galleries_id":123998,"server_id":18,"link":"photo_6250047.html","width":130,"caption":"Tartan Hose","height":176});
															thumbnails[820444] = clik.newPhoto({"id":820444,"src":"Links Park up_thumb.jpg","galleries_id":123998,"server_id":18,"link":"photo_820444.html","width":130,"caption":"Home Support<br>\r\n","height":81});
															thumbnails[2339222] = clik.newPhoto({"id":2339222,"src":"St Palladius Med_thumb.jpg","galleries_id":123999,"server_id":18,"link":"photo_2339222.html","width":130,"caption":"St Palladius Church","height":89});
															thumbnails[2339249] = clik.newPhoto({"id":2339249,"src":"Island Med_thumb.jpg","galleries_id":62577,"server_id":18,"link":"photo_2339249.html","width":130,"caption":"The Island","height":59});
															thumbnails[3105899] = clik.newPhoto({"id":3105899,"src":"Dunotter B&W 2 A4 Print Lo-Res_thumb.jpg","galleries_id":123999,"server_id":18,"link":"photo_3105899.html","width":130,"caption":"Dunnottar Castle","height":87});
															thumbnails[6243317] = clik.newPhoto({"id":6243317,"src":"4211162817_45c6cd21bb_thumb.jpg","galleries_id":63035,"server_id":18,"link":"photo_6243317.html","width":130,"caption":"'Flegged'","height":80});
															thumbnails[6250355] = clik.newPhoto({"id":6250355,"src":"4512727354_1980c4e2ae_thumb.jpg","galleries_id":269214,"server_id":18,"link":"photo_6250355.html","width":130,"caption":"","height":82});
															thumbnails[3102705] = clik.newPhoto({"id":3102705,"src":"Cloud Howe Lo Res_thumb.jpg","galleries_id":123999,"server_id":18,"link":"photo_3102705.html","width":130,"caption":"Cloud Howe","height":83});
															thumbnails[5091595] = clik.newPhoto({"id":5091595,"src":"Edit_0228_R_thumb.jpg","galleries_id":269214,"server_id":18,"link":"photo_5091595.html","width":130,"caption":"","height":87});
															thumbnails[6243318] = clik.newPhoto({"id":6243318,"src":"4252861761_262996e193_thumb.jpg","galleries_id":63035,"server_id":18,"link":"photo_6243318.html","width":130,"caption":"'Cold Snap'","height":87});
															thumbnails[6251104] = clik.newPhoto({"id":6251104,"src":"4379437682_46441592a0_thumb.jpg","galleries_id":347678,"server_id":18,"link":"photo_6251104.html","width":130,"caption":"Ocean Colour Scene","height":177});
															thumbnails[6250356] = clik.newPhoto({"id":6250356,"src":"4619373423_2a5b250361_thumb.jpg","galleries_id":269214,"server_id":18,"link":"photo_6250356.html","width":130,"caption":"","height":87});
															thumbnails[848691] = clik.newPhoto({"id":848691,"src":"The Docks 500_thumb.jpg","galleries_id":62577,"server_id":18,"link":"photo_848691.html","width":130,"caption":"Harbour","height":86});
															thumbnails[2487908] = clik.newPhoto({"id":2487908,"src":"Scurdieness Lo res_thumb.jpg","galleries_id":63033,"server_id":18,"link":"photo_2487908.html","width":130,"caption":"Scurdieness","height":98});
															thumbnails[3105577] = clik.newPhoto({"id":3105577,"src":"Take a Pew Lo Res_thumb.jpg","galleries_id":123999,"server_id":18,"link":"photo_3105577.html","width":130,"caption":"Take a Pew","height":82});
															thumbnails[3105655] = clik.newPhoto({"id":3105655,"src":"Summit burned Lo Res_thumb.jpg","galleries_id":123999,"server_id":18,"link":"photo_3105655.html","width":130,"caption":"Summit","height":87});
															thumbnails[5091524] = clik.newPhoto({"id":5091524,"src":"Edit_8561_thumb.jpg","galleries_id":269214,"server_id":18,"link":"photo_5091524.html","width":130,"caption":"","height":75});
															thumbnails[6243319] = clik.newPhoto({"id":6243319,"src":"Back_Garden_HoD_thumb.jpg","galleries_id":63035,"server_id":18,"link":"photo_6243319.html","width":130,"caption":"Walled Garden","height":87});
															thumbnails[6250363] = clik.newPhoto({"id":6250363,"src":"4619383883_21b36995c3_thumb.jpg","galleries_id":269214,"server_id":18,"link":"photo_6250363.html","width":130,"caption":"","height":106});
															thumbnails[6242984] = clik.newPhoto({"id":6242984,"src":"3594943228_06ec8eedb5_thumb.jpg","galleries_id":62577,"server_id":18,"link":"photo_6242984.html","width":130,"caption":"","height":72});
															thumbnails[6243180] = clik.newPhoto({"id":6243180,"src":"3488318869_37d6cb7fcc_thumb.jpg","galleries_id":63033,"server_id":18,"link":"photo_6243180.html","width":130,"caption":"Pony","height":78});
															thumbnails[6243321] = clik.newPhoto({"id":6243321,"src":"Pair_of_Poppies_thumb.jpg","galleries_id":63035,"server_id":18,"link":"photo_6243321.html","width":130,"caption":"Pair of Poppies","height":87});
															thumbnails[6250376] = clik.newPhoto({"id":6250376,"src":"Carly_thumb.jpg","galleries_id":269214,"server_id":18,"link":"photo_6250376.html","width":130,"caption":"","height":195});
															thumbnails[3102680] = clik.newPhoto({"id":3102680,"src":"Abstract Lo Res_thumb.jpg","galleries_id":62577,"server_id":18,"link":"photo_3102680.html","width":130,"caption":"Abstract","height":82});
															thumbnails[6243183] = clik.newPhoto({"id":6243183,"src":"4304398525_2232d92d51_thumb.jpg","galleries_id":63033,"server_id":18,"link":"photo_6243183.html","width":130,"caption":"Ferryden at Night","height":49});
															thumbnails[6250384] = clik.newPhoto({"id":6250384,"src":"Kirsten_and_Steve_thumb.jpg","galleries_id":269214,"server_id":18,"link":"photo_6250384.html","width":130,"caption":"","height":195});
															thumbnails[825537] = clik.newPhoto({"id":825537,"src":"Dorward House wee_thumb.jpg","galleries_id":62577,"server_id":18,"link":"photo_825537.html","width":130,"caption":"Dorward House","height":167});
															thumbnails[3102708] = clik.newPhoto({"id":3102708,"src":"Float Lo-Res_thumb.jpg","galleries_id":62577,"server_id":18,"link":"photo_3102708.html","width":130,"caption":"Float","height":71});
															thumbnails[6250392] = clik.newPhoto({"id":6250392,"src":"Chairs_thumb.jpg","galleries_id":269214,"server_id":18,"link":"photo_6250392.html","width":130,"caption":"","height":87});
															thumbnails[3102758] = clik.newPhoto({"id":3102758,"src":"Harbour Lo Res_thumb.jpg","galleries_id":62577,"server_id":18,"link":"photo_3102758.html","width":130,"caption":"Oil Supply","height":76});
															thumbnails[6250393] = clik.newPhoto({"id":6250393,"src":"Girls_thumb.jpg","galleries_id":269214,"server_id":18,"link":"photo_6250393.html","width":130,"caption":"","height":87});
															thumbnails[909459] = clik.newPhoto({"id":909459,"src":"The Beach GE 500_thumb.jpg","galleries_id":62577,"server_id":18,"link":"photo_909459.html","width":130,"caption":"'Tide's Oot'","height":76});
															thumbnails[3360698] = clik.newPhoto({"id":3360698,"src":"Montrose Harbour for GE web_thumb.jpg","galleries_id":62577,"server_id":18,"link":"photo_3360698.html","width":130,"caption":"Montrose Harbour","height":76});
															thumbnails[6251102] = clik.newPhoto({"id":6251102,"src":"MMF_Comm_thumb.jpg","galleries_id":123998,"server_id":18,"link":"photo_6251102.html","width":130,"caption":"Montrose Music Festival Committee.","height":87});
															thumbnails[1177890] = clik.newPhoto({"id":1177890,"src":"Academy 500_thumb.jpg","galleries_id":62577,"server_id":18,"link":"photo_1177890.html","width":130,"caption":"Academy","height":64});
															thumbnails[3105593] = clik.newPhoto({"id":3105593,"src":"Wild Geese Lo Res_thumb.jpg","galleries_id":62577,"server_id":18,"link":"photo_3105593.html","width":130,"caption":"Wild Geese","height":82});
															thumbnails[3105658] = clik.newPhoto({"id":3105658,"src":"Cenotaph Lo Res_thumb.jpg","galleries_id":62577,"server_id":18,"link":"photo_3105658.html","width":130,"caption":"Cenotaph","height":80});
															thumbnails[3105663] = clik.newPhoto({"id":3105663,"src":"New Wynd Lo 2 Res_thumb.jpg","galleries_id":62577,"server_id":18,"link":"photo_3105663.html","width":130,"caption":"New Wynd","height":72});
															thumbnails[3885803] = clik.newPhoto({"id":3885803,"src":"First_Tee_F_thumb.jpg","galleries_id":62577,"server_id":18,"link":"photo_3885803.html","width":130,"caption":"First Tee","height":54});
															thumbnails[6242912] = clik.newPhoto({"id":6242912,"src":"2996120667_38960d1cf8_thumb.jpg","galleries_id":62577,"server_id":18,"link":"photo_6242912.html","width":130,"caption":"Dorward House ","height":85});
															thumbnails[6242913] = clik.newPhoto({"id":6242913,"src":"3007768620_121a534ca5_thumb.jpg","galleries_id":62577,"server_id":18,"link":"photo_6242913.html","width":130,"caption":"Bamse Twilight","height":52});
															thumbnails[6242919] = clik.newPhoto({"id":6242919,"src":"3362953160_4a5721da8b_thumb.jpg","galleries_id":62577,"server_id":18,"link":"photo_6242919.html","width":130,"caption":"Harbour Reflection","height":101});
															thumbnails[6242928] = clik.newPhoto({"id":6242928,"src":"Woolworths_thumb.jpg","galleries_id":62577,"server_id":18,"link":"photo_6242928.html","width":130,"caption":"'Woolies'","height":59});
															thumbnails[6263342] = clik.newPhoto({"id":6263342,"src":"Rev_11_thumb.jpg","galleries_id":347678,"server_id":18,"link":"photo_6263342.html","width":130,"caption":"The Revolutionaires","height":195});
															thumbnails[6242938] = clik.newPhoto({"id":6242938,"src":"3512122369_028d6094d1_thumb.jpg","galleries_id":62577,"server_id":18,"link":"photo_6242938.html","width":130,"caption":"Queen's Close","height":70});
															thumbnails[6242997] = clik.newPhoto({"id":6242997,"src":"4305138076_56672e7b94_thumb.jpg","galleries_id":62577,"server_id":18,"link":"photo_6242997.html","width":130,"caption":"North Quay","height":87});
															thumbnails[6242991] = clik.newPhoto({"id":6242991,"src":"4055289115_74f40aeeda_thumb.jpg","galleries_id":62577,"server_id":18,"link":"photo_6242991.html","width":130,"caption":"Jamieson Park","height":84});
															thumbnails[6242978] = clik.newPhoto({"id":6242978,"src":"3512927270_5bdf01b7d5_thumb.jpg","galleries_id":62577,"server_id":18,"link":"photo_6242978.html","width":130,"caption":"High Street Skyline","height":77});
															thumbnails[6242981] = clik.newPhoto({"id":6242981,"src":"3512931924_5684c516db_thumb.jpg","galleries_id":62577,"server_id":18,"link":"photo_6242981.html","width":130,"caption":"High Street","height":57});
															thumbnails[1843153] = clik.newPhoto({"id":1843153,"src":"Hush upload_thumb.jpg","galleries_id":62577,"server_id":18,"link":"photo_1843153.html","width":130,"caption":"Hush","height":194});
															thumbnails[6243000] = clik.newPhoto({"id":6243000,"src":"4528709091_974cc65f8b_thumb.jpg","galleries_id":62577,"server_id":18,"link":"photo_6243000.html","width":130,"caption":"Start of the Season","height":195});
															thumbnails[1177888] = clik.newPhoto({"id":1177888,"src":"Auld Kirk 500_thumb.jpg","galleries_id":62577,"server_id":18,"link":"photo_1177888.html","width":130,"caption":"Auld Kirk","height":183});
															thumbnails[6242934] = clik.newPhoto({"id":6242934,"src":"3512121557_700c8d1e11_thumb.jpg","galleries_id":62577,"server_id":18,"link":"photo_6242934.html","width":130,"caption":"'Frosties'","height":172});
															thumbnails[6242987] = clik.newPhoto({"id":6242987,"src":"3905818529_13aa9591b5_thumb.jpg","galleries_id":62577,"server_id":18,"link":"photo_6242987.html","width":130,"caption":"Butterfly Bench","height":195});
															thumbnails[6242952] = clik.newPhoto({"id":6242952,"src":"3512926154_2d339b2928_thumb.jpg","galleries_id":62577,"server_id":18,"link":"photo_6242952.html","width":130,"caption":"Steeple","height":208});
															thumbnails[6242983] = clik.newPhoto({"id":6242983,"src":"3554155225_2962a4a448_thumb.jpg","galleries_id":62577,"server_id":18,"link":"photo_6242983.html","width":130,"caption":"'The Ropie'","height":195});
															thumbnails[6242979] = clik.newPhoto({"id":6242979,"src":"3512929976_cd2506b88b_thumb.jpg","galleries_id":62577,"server_id":18,"link":"photo_6242979.html","width":130,"caption":"Locarno Close","height":201});
															thumbnails[1177889] = clik.newPhoto({"id":1177889,"src":"Beachfront 500_thumb.jpg","galleries_id":62577,"server_id":18,"link":"photo_1177889.html","width":130,"caption":"Beachfront","height":202});
															thumbnails[6243577] = clik.newPhoto({"id":6243577,"src":"3244819605_e58e75e184_thumb.jpg","galleries_id":123998,"server_id":18,"link":"photo_6243577.html","width":130,"caption":"Last Call ","height":95});
															thumbnails[6250069] = clik.newPhoto({"id":6250069,"src":"3980994451_7d55e402b2_thumb.jpg","galleries_id":124000,"server_id":18,"link":"photo_6250069.html","width":130,"caption":"Memorial to the Killed Jews of Europe","height":87});
															thumbnails[6250110] = clik.newPhoto({"id":6250110,"src":"4477534666_46f83be0a8_thumb.jpg","galleries_id":124000,"server_id":18,"link":"photo_6250110.html","width":130,"caption":"Drummers","height":100});
															thumbnails[6250138] = clik.newPhoto({"id":6250138,"src":"4480821549_13420df789_thumb.jpg","galleries_id":124000,"server_id":18,"link":"photo_6250138.html","width":130,"caption":"Hat & Bike","height":87});
															thumbnails[6250250] = clik.newPhoto({"id":6250250,"src":"4511946153_a603530859_thumb.jpg","galleries_id":124000,"server_id":18,"link":"photo_6250250.html","width":130,"caption":"Evening","height":70});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[62577] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Montrose","link":"gallery_62577.html","maxRecords":0.0,"photoIDs":[820415.0,841156.0,820439.0,820433.0,820434.0,847452.0,841172.0,820429.0,820462.0,820432.0,820437.0,2487905.0,820440.0,2339249.0,848691.0,6242984.0,3102680.0,825537.0,3102708.0,3102758.0,909459.0,3360698.0,1177890.0,3105593.0,3105658.0,3105663.0,3885803.0,6242912.0,6242913.0,6242919.0,6242928.0,6242938.0,6242997.0,6242991.0,6242978.0,6242981.0,1843153.0,6243000.0,1177888.0,6242934.0,6242987.0,6242952.0,6242983.0,6242979.0,1177889.0],"skipIndex":0,"section_code":"gallery","featured_images":"3885803,3360698,3105663,3105658,3105593,3102758,3102708,3102680,2487905,2339249,1843153,1177890,1177889,1177888,909459,848691,847452,841172,841156,825537,820462,820439,820437,820434,820433,820432,820415","id":62577,"singleSection":false});				  						galleries[63033] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Ferryden and Scurdieness","link":"gallery_63033.html","maxRecords":0.0,"photoIDs":[1283677.0,820486.0,820481.0,820479.0,820469.0,1283669.0,1283673.0,2487857.0,2487903.0,2487914.0,3105670.0,3360706.0,2487908.0,6243180.0,6243183.0],"skipIndex":0,"section_code":"gallery","featured_images":"3360706,3105670,2487914,2487908,2487857,1283677,1283673,1283669,820486,820479,820469","id":63033,"singleSection":false});				  						galleries[63035] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Angus","link":"gallery_63035.html","maxRecords":0.0,"photoIDs":[820569.0,820549.0,820552.0,1986015.0,1985994.0,1986001.0,1986019.0,820556.0,1843122.0,820573.0,1986136.0,2487939.0,3102686.0,3102689.0,6243186.0,6243201.0,6243286.0,6243287.0,6243290.0,6243305.0,6243308.0,6243311.0,6243316.0,6243317.0,6243318.0,6243319.0,6243321.0],"skipIndex":0,"section_code":"gallery","featured_images":"6243321,6243319,6243318,6243317,6243311,6243308,6243290,6243287,6243286,6243201,6243186,3102689,3102686,2487939,1986136,1986019,1986015,1986001,1985994,1843122,820573,820569,820556,820552,820549","id":63035,"singleSection":false});				  						galleries[123998] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Montrose Folk","link":"gallery_123998.html","maxRecords":0.0,"photoIDs":[1842952.0,820446.0,820450.0,820442.0,1842977.0,820423.0,841168.0,3102694.0,6250047.0,820444.0,6251102.0,6243577.0],"skipIndex":0,"section_code":"gallery","featured_images":"6251102,6250047,6243577,3102694,1842977,1842952,820450,820446,820442,820423","id":123998,"singleSection":false});				  						galleries[123999] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Scotland","link":"gallery_123999.html","maxRecords":0.0,"photoIDs":[1843007.0,1843009.0,1843011.0,1843111.0,1843023.0,1843027.0,1843029.0,1986091.0,1986096.0,1843033.0,1843123.0,1843038.0,1843041.0,1843051.0,1843046.0,1843057.0,1843064.0,3105665.0,1843069.0,6250315.0,3105560.0,6250322.0,6250337.0,3102714.0,2339222.0,3105899.0,3102705.0,3105577.0,3105655.0],"skipIndex":0,"section_code":"gallery","featured_images":"3105899,3105665,3105655,3105577,3105560,3102714,2339222,1986096,1986091,1843123,1843111,1843069,1843057,1843051,1843046,1843041,1843038,1843033,1843029,1843027,1843023,1843007","id":123999,"singleSection":false});				  						galleries[269214] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Weddings","link":"gallery_269214.html","maxRecords":0.0,"photoIDs":[4671725.0,4671729.0,4671727.0,4671731.0,4671732.0,4671741.0,4671745.0,1843126.0,4671748.0,4671759.0,4671761.0,4671765.0,4671780.0,4671779.0,4671770.0,4671768.0,4671776.0,4671782.0,4671781.0,5091531.0,6250355.0,5091595.0,6250356.0,5091524.0,6250363.0,6250376.0,6250384.0,6250392.0,6250393.0],"skipIndex":0,"section_code":"gallery","featured_images":"6250393,6250392,6250376,6250363,6250356,6250355,1843126","id":269214,"singleSection":false});				  						galleries[124000] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Further Afield","link":"gallery_124000.html","maxRecords":0.0,"photoIDs":[1843076.0,1843109.0,1843079.0,1843084.0,1843088.0,1843092.0,1843103.0,1843106.0,6250069.0,6250110.0,6250138.0,6250250.0],"skipIndex":0,"section_code":"gallery","featured_images":"6250250,6250110,6250069,1843109,1843106,1843092,1843088,1843084,1843079,1843076","id":124000,"singleSection":false});				  						galleries[347678] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gigs","link":"gallery_347678.html","maxRecords":0.0,"photoIDs":[6250417.0,6250433.0,6250441.0,6250447.0,6250451.0,6250546.0,6250563.0,6250578.0,6250586.0,6250743.0,6251094.0,6251097.0,6251099.0,6251104.0,6263342.0],"skipIndex":0,"section_code":"gallery","featured_images":"6263342,6251104,6251099,6251097,6251094,6250743,6250586,6250563,6250546,6250447,6250441,6250417","id":347678,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '1283677,820486,820415,841156,820446,820439,820433,820479,820469,820434,847452,1986019,1283669,841172,820450,1283673,1986136,2487939,2487857,820442,3102686,820423,820462,3360706,820437,820432,3102694,2339249,2487908,848691,3102680,3102708,3102758,909459,3360698,1177890,3105593,3105663,3885803,1843153,1177888,1177889';
imageSets[2] = '1283677,820569,6250417,1843109,1843076,1843007,820486,820415,1843079,1842952,841156,820549,6250441,1843111,820552,820446,820439,6250447,1843084,820433,820479,820469,1843088,1843023,820434,6250546,1986015,1843092,1843027,847452,1985994,1986001,1986019,6250563,1986091,1843122,1843029,1283669,841172,820556,820450,1986096,1843123,1843106,1843033,1283673,820573,1986136,6250586,2487939,2487857,1843126,1843038,820442,6250743,3102686,1843051,1843041,1842977,3102689,1843046,6251094,6243186,2487914,820423,6251097,6243201,3105670,820462,6251099,6243286,3360706,1843057,820437,820432,6243287,3105665,6243290,1843069,2487905,3105560,6243311,6243308,3102694,3102714,6250047,6250355,6243317,3105899,2339249,2339222,6251104,6243318,6250356,6250363,6243319,3105655,3105577,2487908,848691,6250376,6243321,3102680,825537,3102708,6250392,6250393,3102758,909459,6251102,3360698,1177890,3105658,3105593,3105663,3885803,6263342,1843153,1177888,1177889,6243577,6250069,6250110,6250250';
imageSets[3] = '6263342,6251104,6251102,6251099,6251097,6251094,6250743,6250586,6250578,6250563,6250546,6250451,6250447,6250441,6250433,6250417,6250393,6250392,6250384,6250376,6250363,6250356,6250355,6250337,6250322,6250315,6250250,6250138,6250110,6250069,6250047,6243577,6243321,6243319,6243318,6243317,6243316,6243311,6243308,6243305,6243290,6243287,6243286,6243201,6243186,6243183,6243180,6243000,6242997,6242991';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/basontheslates/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/basontheslates/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/basontheslates/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/basontheslates/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/basontheslates/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/basontheslates/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/basontheslates/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/basontheslates/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/basontheslates/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/basontheslates/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/basontheslates/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/basontheslates/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/basontheslates/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/basontheslates/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/basontheslates/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/basontheslates/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/basontheslates/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/basontheslates/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/basontheslates/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/basontheslates/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/basontheslates/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/basontheslates/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/basontheslates/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/basontheslates/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/basontheslates/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/basontheslates/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/basontheslates/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 = 'gable-end photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
		 									temp += '<select class="paymentlink" name="payment_options_id" onchange="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
		else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
											temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="BASONTHESLATES">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

