window.thumbnails = {};
															thumbnails[4106472] = clik.newPhoto({"id":4106472,"src":"poledancer_thumb.JPG","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Learning a new trade - poledancing!","height":98});
															thumbnails[9086557] = clik.newPhoto({"id":9086557,"src":"winter-51_1.JPG","galleries_id":"","server_id":38,"link":"#","width":130,"caption":"","height":93});
															thumbnails[5308699] = clik.newPhoto({"id":5308699,"src":"Flambeaux_2010_thumb.JPG","galleries_id":198746,"server_id":15,"link":"photo_5308699.html","width":130,"caption":"Happy 2010 from Comrie!","height":127});
															thumbnails[3259620] = clik.newPhoto({"id":3259620,"src":"Photo0055looneydook_thumb.jpg","galleries_id":198770,"server_id":15,"link":"photo_3259620.html","width":130,"caption":"The Looney Dook or should that be the Looney Duke!","height":98});
															thumbnails[3259461] = clik.newPhoto({"id":3259461,"src":"Flambeaux13_thumb.jpg","galleries_id":198746,"server_id":15,"link":"photo_3259461.html","width":130,"caption":"Comrie Pipe Band lead the parade.","height":98});
															thumbnails[3259516] = clik.newPhoto({"id":3259516,"src":"Baird's resize_thumb.jpg","galleries_id":198747,"server_id":15,"link":"photo_3259516.html","width":130,"caption":"Baird's Monument from Strowan","height":76});
															thumbnails[3259530] = clik.newPhoto({"id":3259530,"src":"Sunset over Locherlour1_thumb.JPG","galleries_id":198747,"server_id":15,"link":"photo_3259530.html","width":130,"caption":"Sunset over Locherlour","height":78});
															thumbnails[3259539] = clik.newPhoto({"id":3259539,"src":"turlresize_thumb.jpg","galleries_id":198747,"server_id":15,"link":"photo_3259539.html","width":130,"caption":"View to Turleum ","height":87});
															thumbnails[3259557] = clik.newPhoto({"id":3259557,"src":"loch2_thumb.JPG","galleries_id":198747,"server_id":15,"link":"photo_3259557.html","width":130,"caption":"Loch Monzievaird","height":83});
															thumbnails[3259670] = clik.newPhoto({"id":3259670,"src":"Pyjama Day1_thumb.jpg","galleries_id":198770,"server_id":15,"link":"photo_3259670.html","width":130,"caption":"Pyjama game!","height":98});
															thumbnails[3259784] = clik.newPhoto({"id":3259784,"src":"2007 Float Parade 1_thumb.jpg","galleries_id":198803,"server_id":15,"link":"photo_3259784.html","width":130,"caption":"Floating along ","height":74});
															thumbnails[3259900] = clik.newPhoto({"id":3259900,"src":"Flambeauxresized_thumb.jpg","galleries_id":198746,"server_id":15,"link":"photo_3259900.html","width":130,"caption":"Flaming crowds!","height":98});
															thumbnails[3259922] = clik.newPhoto({"id":3259922,"src":"Thistlehomepage_thumb.jpg","galleries_id":198821,"server_id":15,"link":"photo_3259922.html","width":130,"caption":"Thistle","height":87});
															thumbnails[3262996] = clik.newPhoto({"id":3262996,"src":"busking with gogs_thumb.jpg","galleries_id":198770,"server_id":15,"link":"photo_3262996.html","width":130,"caption":"Busking buddies.","height":98});
															thumbnails[3262999] = clik.newPhoto({"id":3262999,"src":"Clowning around_thumb.jpg","galleries_id":198770,"server_id":15,"link":"photo_3262999.html","width":130,"caption":"Clowning around.","height":173});
															thumbnails[3263027] = clik.newPhoto({"id":3263027,"src":"four whee ldriving_thumb.jpg","galleries_id":198770,"server_id":15,"link":"photo_3263027.html","width":130,"caption":"Going off-road!","height":98});
															thumbnails[3263075] = clik.newPhoto({"id":3263075,"src":"hills_thumb.jpg","galleries_id":198770,"server_id":15,"link":"photo_3263075.html","width":130,"caption":"The hills are alive with the sound of ...","height":98});
															thumbnails[3263080] = clik.newPhoto({"id":3263080,"src":"trees2_thumb.jpg","galleries_id":198747,"server_id":15,"link":"photo_3263080.html","width":130,"caption":"Trees","height":95});
															thumbnails[3263092] = clik.newPhoto({"id":3263092,"src":"Ocean Terminal Cartwheeler_thumb.jpg","galleries_id":198770,"server_id":15,"link":"photo_3263092.html","width":130,"caption":"That's wheely good!","height":98});
															thumbnails[3268446] = clik.newPhoto({"id":3268446,"src":"coo2_thumb.jpg","galleries_id":198821,"server_id":15,"link":"photo_3268446.html","width":130,"caption":"Hairy Coo","height":98});
															thumbnails[3268451] = clik.newPhoto({"id":3268451,"src":"frecklesduck_thumb.jpg","galleries_id":198821,"server_id":15,"link":"photo_3268451.html","width":130,"caption":"Snowdrops","height":173});
															thumbnails[3268473] = clik.newPhoto({"id":3268473,"src":"party hat coo_thumb.jpg","galleries_id":198821,"server_id":15,"link":"photo_3268473.html","width":130,"caption":"Coo fashion","height":98});
															thumbnails[3268537] = clik.newPhoto({"id":3268537,"src":"robin_thumb.jpg","galleries_id":391614,"server_id":15,"link":"photo_3268537.html","width":130,"caption":"The Gatekeeper","height":98});
															thumbnails[3272372] = clik.newPhoto({"id":3272372,"src":"Loch Turret_thumb.jpg","galleries_id":198747,"server_id":15,"link":"photo_3272372.html","width":130,"caption":"Loch Turret","height":81});
															thumbnails[3272381] = clik.newPhoto({"id":3272381,"src":"MAUSOLEUM_thumb.JPG","galleries_id":198747,"server_id":15,"link":"photo_3272381.html","width":130,"caption":"Ochtertyre Mausoleum","height":77});
															thumbnails[3272408] = clik.newPhoto({"id":3272408,"src":"glen artney_thumb.JPG","galleries_id":198747,"server_id":15,"link":"photo_3272408.html","width":130,"caption":"Up Glenartney","height":87});
															thumbnails[3272413] = clik.newPhoto({"id":3272413,"src":"flowers 001_thumb.jpg","galleries_id":391614,"server_id":15,"link":"photo_3272413.html","width":130,"caption":"Freckles and co","height":173});
															thumbnails[3272417] = clik.newPhoto({"id":3272417,"src":"sky flag_thumb.jpg","galleries_id":198821,"server_id":15,"link":"photo_3272417.html","width":130,"caption":"Saltire in the sky","height":87});
															thumbnails[3272423] = clik.newPhoto({"id":3272423,"src":"Smokerelax_thumb.JPG","galleries_id":198821,"server_id":15,"link":"photo_3272423.html","width":130,"caption":"Time out","height":83});
															thumbnails[3289233] = clik.newPhoto({"id":3289233,"src":"ganes-6_thumb.jpg","galleries_id":200505,"server_id":15,"link":"photo_3289233.html","width":130,"caption":"Getting a good view of the Games","height":87});
															thumbnails[3289234] = clik.newPhoto({"id":3289234,"src":"games10_thumb.jpg","galleries_id":200505,"server_id":15,"link":"photo_3289234.html","width":130,"caption":"The Deil's Horsemen charge in","height":98});
															thumbnails[3289251] = clik.newPhoto({"id":3289251,"src":"games11_thumb.jpg","galleries_id":200505,"server_id":15,"link":"photo_3289251.html","width":130,"caption":"Deil tak' the hindmost cycle race","height":87});
															thumbnails[3289271] = clik.newPhoto({"id":3289271,"src":"games17_thumb.jpg","galleries_id":200505,"server_id":15,"link":"photo_3289271.html","width":130,"caption":"The bikes take a break","height":87});
															thumbnails[3289493] = clik.newPhoto({"id":3289493,"src":"flowers5_thumb.jpg","galleries_id":198821,"server_id":15,"link":"photo_3289493.html","width":130,"caption":"","height":98});
															thumbnails[3289494] = clik.newPhoto({"id":3289494,"src":"butterfly_thumb.jpg","galleries_id":198821,"server_id":15,"link":"photo_3289494.html","width":130,"caption":"Spot the butterfly in this fern","height":87});
															thumbnails[3289497] = clik.newPhoto({"id":3289497,"src":"drip_thumb.jpg","galleries_id":198821,"server_id":15,"link":"photo_3289497.html","width":130,"caption":"Little drip","height":98});
															thumbnails[3289508] = clik.newPhoto({"id":3289508,"src":"flowers6_thumb.jpg","galleries_id":198821,"server_id":15,"link":"photo_3289508.html","width":130,"caption":"Teasel","height":98});
															thumbnails[3289514] = clik.newPhoto({"id":3289514,"src":"flowers8_thumb.jpg","galleries_id":198821,"server_id":15,"link":"photo_3289514.html","width":130,"caption":"Snow pampas","height":87});
															thumbnails[3289561] = clik.newPhoto({"id":3289561,"src":"jan 003_thumb.jpg","galleries_id":198821,"server_id":15,"link":"photo_3289561.html","width":130,"caption":"Starry wood","height":87});
															thumbnails[3289571] = clik.newPhoto({"id":3289571,"src":"lily_thumb.jpg","galleries_id":198821,"server_id":15,"link":"photo_3289571.html","width":130,"caption":"Lily","height":99});
															thumbnails[3289596] = clik.newPhoto({"id":3289596,"src":"acer_thumb.jpg","galleries_id":198821,"server_id":15,"link":"photo_3289596.html","width":130,"caption":"Red, gold and green","height":87});
															thumbnails[3289639] = clik.newPhoto({"id":3289639,"src":"April 2008 128_thumb.jpg","galleries_id":391614,"server_id":15,"link":"photo_3289639.html","width":130,"caption":"Inquisitive robin","height":87});
															thumbnails[3289669] = clik.newPhoto({"id":3289669,"src":"Drummond Castle_thumb.jpg","galleries_id":198821,"server_id":15,"link":"photo_3289669.html","width":130,"caption":"Drummond Castle.","height":87});
															thumbnails[3289680] = clik.newPhoto({"id":3289680,"src":"drummond1_thumb.jpg","galleries_id":198821,"server_id":15,"link":"photo_3289680.html","width":130,"caption":"Drummond Castle gardens.","height":87});
															thumbnails[3289713] = clik.newPhoto({"id":3289713,"src":"drummond2_thumb.jpg","galleries_id":198821,"server_id":15,"link":"photo_3289713.html","width":130,"caption":"Ace acer.","height":87});
															thumbnails[3289716] = clik.newPhoto({"id":3289716,"src":"dupplin_thumb.JPG","galleries_id":198821,"server_id":15,"link":"photo_3289716.html","width":130,"caption":"The Dupplin Cross.","height":173});
															thumbnails[3289719] = clik.newPhoto({"id":3289719,"src":"fireworks_thumb.jpg","galleries_id":198821,"server_id":15,"link":"photo_3289719.html","width":130,"caption":"Fireworks through the firs.","height":109});
															thumbnails[3289725] = clik.newPhoto({"id":3289725,"src":"fireworks2_thumb.jpg","galleries_id":198821,"server_id":15,"link":"photo_3289725.html","width":130,"caption":"Firework trio.","height":125});
															thumbnails[3289730] = clik.newPhoto({"id":3289730,"src":"Flambeaux2008_thumb.jpg","galleries_id":198746,"server_id":15,"link":"photo_3289730.html","width":130,"caption":"Here come the Flambeaux","height":87});
															thumbnails[3289752] = clik.newPhoto({"id":3289752,"src":"jan 005_thumb.jpg","galleries_id":198821,"server_id":15,"link":"photo_3289752.html","width":130,"caption":"Sun-bronzed ","height":87});
															thumbnails[3289796] = clik.newPhoto({"id":3289796,"src":"june 079_thumb.jpg","galleries_id":198821,"server_id":15,"link":"photo_3289796.html","width":130,"caption":"Making an entry","height":173});
															thumbnails[3289798] = clik.newPhoto({"id":3289798,"src":"lighting the flambeaux_thumb.jpg","galleries_id":198746,"server_id":15,"link":"photo_3289798.html","width":130,"caption":"Heralding the New Year","height":144});
															thumbnails[3289811] = clik.newPhoto({"id":3289811,"src":"May 2008 200_thumb.jpg","galleries_id":198747,"server_id":15,"link":"photo_3289811.html","width":130,"caption":"MacRosty Park in May","height":87});
															thumbnails[3289815] = clik.newPhoto({"id":3289815,"src":"May 2008 266_thumb.jpg","galleries_id":391614,"server_id":15,"link":"photo_3289815.html","width":130,"caption":"One swallow does not a summer make.","height":98});
															thumbnails[3289817] = clik.newPhoto({"id":3289817,"src":"orangesunset_thumb.jpg","galleries_id":198747,"server_id":15,"link":"photo_3289817.html","width":130,"caption":"Sunset over the strath","height":87});
															thumbnails[3289822] = clik.newPhoto({"id":3289822,"src":"robin3_thumb.jpg","galleries_id":198821,"server_id":15,"link":"photo_3289822.html","width":130,"caption":"Christmas card robin","height":87});
															thumbnails[3289824] = clik.newPhoto({"id":3289824,"src":"September 08 201_thumb.jpg","galleries_id":198821,"server_id":15,"link":"photo_3289824.html","width":130,"caption":"Lonely tree","height":98});
															thumbnails[3289833] = clik.newPhoto({"id":3289833,"src":"September 08 218_thumb.jpg","galleries_id":198821,"server_id":15,"link":"photo_3289833.html","width":130,"caption":"Keep up","height":98});
															thumbnails[3289834] = clik.newPhoto({"id":3289834,"src":"September 08 265_thumb.jpg","galleries_id":198821,"server_id":15,"link":"photo_3289834.html","width":130,"caption":"Keepsake","height":173});
															thumbnails[3289842] = clik.newPhoto({"id":3289842,"src":"the three stooges_thumb.jpg","galleries_id":198821,"server_id":15,"link":"photo_3289842.html","width":130,"caption":"The Three Stooges","height":173});
															thumbnails[3289847] = clik.newPhoto({"id":3289847,"src":"whitechurchsunset_thumb.jpg","galleries_id":198747,"server_id":15,"link":"photo_3289847.html","width":130,"caption":"Evening on the Earn","height":87});
															thumbnails[3289862] = clik.newPhoto({"id":3289862,"src":"fortnight2_thumb.jpg","galleries_id":198803,"server_id":15,"link":"photo_3289862.html","width":130,"caption":"Sporting heroes!","height":98});
															thumbnails[3289865] = clik.newPhoto({"id":3289865,"src":"fortnight101_thumb.jpg","galleries_id":198803,"server_id":15,"link":"photo_3289865.html","width":130,"caption":"Gingerella","height":87});
															thumbnails[3289866] = clik.newPhoto({"id":3289866,"src":"fortnight15_thumb.jpg","galleries_id":198803,"server_id":15,"link":"photo_3289866.html","width":130,"caption":"Piping in the rain","height":87});
															thumbnails[3289869] = clik.newPhoto({"id":3289869,"src":"fortnight21_thumb.jpg","galleries_id":198803,"server_id":15,"link":"photo_3289869.html","width":130,"caption":"Masked man!","height":194});
															thumbnails[3289871] = clik.newPhoto({"id":3289871,"src":"fortnight22_thumb.jpg","galleries_id":198803,"server_id":15,"link":"photo_3289871.html","width":130,"caption":"Snow White's crew","height":87});
															thumbnails[3289878] = clik.newPhoto({"id":3289878,"src":"fortnight24_thumb.jpg","galleries_id":198803,"server_id":15,"link":"photo_3289878.html","width":130,"caption":"The tractors arrive","height":66});
															thumbnails[3289879] = clik.newPhoto({"id":3289879,"src":"fortnight36_thumb.jpg","galleries_id":198803,"server_id":15,"link":"photo_3289879.html","width":130,"caption":"The Ming-ing Olympics","height":87});
															thumbnails[3289880] = clik.newPhoto({"id":3289880,"src":"fortnight37_thumb.jpg","galleries_id":198803,"server_id":15,"link":"photo_3289880.html","width":130,"caption":"Turkish delights.","height":87});
															thumbnails[3289887] = clik.newPhoto({"id":3289887,"src":"fortnight4_thumb.jpg","galleries_id":198803,"server_id":15,"link":"photo_3289887.html","width":130,"caption":"Pharoes a crowd.","height":87});
															thumbnails[3289888] = clik.newPhoto({"id":3289888,"src":"fortnight6_thumb.jpg","galleries_id":198803,"server_id":15,"link":"photo_3289888.html","width":130,"caption":"Balloons!","height":194});
															thumbnails[3289895] = clik.newPhoto({"id":3289895,"src":"fortnight9_thumb.jpg","galleries_id":198803,"server_id":15,"link":"photo_3289895.html","width":130,"caption":"May the force be with you","height":194});
															thumbnails[3297342] = clik.newPhoto({"id":3297342,"src":"lady mary's earn_thumb.JPG","galleries_id":198747,"server_id":15,"link":"photo_3297342.html","width":130,"caption":"The Earn","height":98});
															thumbnails[3297346] = clik.newPhoto({"id":3297346,"src":"Lady Mary's Walk resize_thumb.jpg","galleries_id":198747,"server_id":15,"link":"photo_3297346.html","width":130,"caption":"Lady Mary's Walk","height":98});
															thumbnails[3297397] = clik.newPhoto({"id":3297397,"src":"Making something from wood - a bird box_thumb.jpg","galleries_id":198770,"server_id":15,"link":"photo_3297397.html","width":130,"caption":"Bird brain","height":195});
															thumbnails[3358803] = clik.newPhoto({"id":3358803,"src":"bums up_thumb.jpg","galleries_id":198821,"server_id":15,"link":"photo_3358803.html","width":130,"caption":"Bottoms up!","height":98});
															thumbnails[3358808] = clik.newPhoto({"id":3358808,"src":"redcurrent_thumb.jpg","galleries_id":198821,"server_id":15,"link":"photo_3358808.html","width":130,"caption":"Pink","height":98});
															thumbnails[3428551] = clik.newPhoto({"id":3428551,"src":"muthscarecrow_thumb.jpg","galleries_id":198821,"server_id":15,"link":"photo_3428551.html","width":130,"caption":"Lollipop scarecrow","height":173});
															thumbnails[3536503] = clik.newPhoto({"id":3536503,"src":"packed_square_thumb.jpg","galleries_id":198746,"server_id":15,"link":"photo_3536503.html","width":130,"caption":"Crowd pulling attraction","height":87});
															thumbnails[3536514] = clik.newPhoto({"id":3536514,"src":"happynewyear_thumb.jpg","galleries_id":198746,"server_id":15,"link":"photo_3536514.html","width":130,"caption":"Happy New Year","height":118});
															thumbnails[3536525] = clik.newPhoto({"id":3536525,"src":"charlie_thumb.jpg","galleries_id":198821,"server_id":15,"link":"photo_3536525.html","width":130,"caption":"Charlie","height":87});
															thumbnails[3579675] = clik.newPhoto({"id":3579675,"src":"snowy_thumb.jpg","galleries_id":391614,"server_id":15,"link":"photo_3579675.html","width":130,"caption":"Snowy","height":87});
															thumbnails[3732791] = clik.newPhoto({"id":3732791,"src":"white_church_thumb.JPG","galleries_id":198747,"server_id":15,"link":"photo_3732791.html","width":130,"caption":"The White Church","height":87});
															thumbnails[3732819] = clik.newPhoto({"id":3732819,"src":"sticky_thumb.JPG","galleries_id":198821,"server_id":15,"link":"photo_3732819.html","width":130,"caption":"Sticky","height":65});
															thumbnails[3732827] = clik.newPhoto({"id":3732827,"src":"awww_thumb.jpg","galleries_id":391614,"server_id":15,"link":"photo_3732827.html","width":130,"caption":"Awww!","height":120});
															thumbnails[3875143] = clik.newPhoto({"id":3875143,"src":"wonder-1_thumb.JPG","galleries_id":198770,"server_id":15,"link":"photo_3875143.html","width":130,"caption":"Wonder Woman","height":194});
															thumbnails[3875151] = clik.newPhoto({"id":3875151,"src":"wonder-3_thumb.JPG","galleries_id":198770,"server_id":15,"link":"photo_3875151.html","width":130,"caption":"","height":194});
															thumbnails[3875181] = clik.newPhoto({"id":3875181,"src":"wonder-4_thumb.JPG","galleries_id":198770,"server_id":15,"link":"photo_3875181.html","width":130,"caption":"Frightening the passengers on the number 34.","height":87});
															thumbnails[3875231] = clik.newPhoto({"id":3875231,"src":"poledancing-2_thumb.JPG","galleries_id":198770,"server_id":15,"link":"photo_3875231.html","width":130,"caption":"Pole dancing","height":173});
															thumbnails[4106366] = clik.newPhoto({"id":4106366,"src":"shark_1_thumb.JPG","galleries_id":198770,"server_id":15,"link":"photo_4106366.html","width":130,"caption":"Preparing for the deep!","height":87});
															thumbnails[4106370] = clik.newPhoto({"id":4106370,"src":"sharks-3_thumb.jpg","galleries_id":198770,"server_id":15,"link":"photo_4106370.html","width":130,"caption":"There's no going back now!","height":87});
															thumbnails[4106374] = clik.newPhoto({"id":4106374,"src":"sharks-4_thumb.jpg","galleries_id":198770,"server_id":15,"link":"photo_4106374.html","width":130,"caption":"Aww! Look at all the little fishes!","height":145});
															thumbnails[4106388] = clik.newPhoto({"id":4106388,"src":"sharks-6_thumb.jpg","galleries_id":198770,"server_id":15,"link":"photo_4106388.html","width":130,"caption":"It's behind you!","height":87});
															thumbnails[4106401] = clik.newPhoto({"id":4106401,"src":"sharks-7_thumb.jpg","galleries_id":198770,"server_id":15,"link":"photo_4106401.html","width":130,"caption":"Tinkerbell - er, I mean a deadly dangerous Tiger shark!","height":87});
															thumbnails[4106406] = clik.newPhoto({"id":4106406,"src":"shark-8_thumb.jpg","galleries_id":198770,"server_id":15,"link":"photo_4106406.html","width":130,"caption":"Scary!","height":87});
															thumbnails[4106419] = clik.newPhoto({"id":4106419,"src":"certs-2_thumb.jpg","galleries_id":198770,"server_id":15,"link":"photo_4106419.html","width":130,"caption":"Look at all those certificates!","height":87});
															thumbnails[4107046] = clik.newPhoto({"id":4107046,"src":"Glamour_photo_thumb.jpg","galleries_id":198770,"server_id":15,"link":"photo_4107046.html","width":130,"caption":"Glamourpuss!","height":144});
															thumbnails[4107323] = clik.newPhoto({"id":4107323,"src":"knickers_thumb.jpg","galleries_id":198770,"server_id":15,"link":"photo_4107323.html","width":130,"caption":"Bummer!","height":173});
															thumbnails[4107333] = clik.newPhoto({"id":4107333,"src":"witchery_thumb.jpg","galleries_id":198770,"server_id":15,"link":"photo_4107333.html","width":130,"caption":"The Witchery.","height":98});
															thumbnails[4107343] = clik.newPhoto({"id":4107343,"src":"santa_thumb.jpg","galleries_id":198770,"server_id":15,"link":"photo_4107343.html","width":130,"caption":"Here comes Santa Claus!","height":173});
															thumbnails[4107349] = clik.newPhoto({"id":4107349,"src":"evening_news_thumb.jpg","galleries_id":198770,"server_id":15,"link":"photo_4107349.html","width":130,"caption":"The infamous Evening News photo.","height":189});
															thumbnails[4107390] = clik.newPhoto({"id":4107390,"src":"balloons_thumb.jpg","galleries_id":198770,"server_id":15,"link":"photo_4107390.html","width":130,"caption":"Balloon popping was another one.","height":173});
															thumbnails[4288660] = clik.newPhoto({"id":4288660,"src":"pipes_and_drums-1_thumb.jpg","galleries_id":198821,"server_id":15,"link":"photo_4288660.html","width":130,"caption":"","height":98});
															thumbnails[4288701] = clik.newPhoto({"id":4288701,"src":"piping_hot_thumb.jpg","galleries_id":198821,"server_id":15,"link":"photo_4288701.html","width":130,"caption":"","height":113});
															thumbnails[4559049] = clik.newPhoto({"id":4559049,"src":"Fortnight_Fun-52_thumb.JPG","galleries_id":198803,"server_id":15,"link":"photo_4559049.html","width":130,"caption":"","height":87});
															thumbnails[4559052] = clik.newPhoto({"id":4559052,"src":"Fortnight_Fun-51_thumb.JPG","galleries_id":198803,"server_id":15,"link":"photo_4559052.html","width":130,"caption":"","height":87});
															thumbnails[4559055] = clik.newPhoto({"id":4559055,"src":"Fortnight_Fun-50_thumb.JPG","galleries_id":198803,"server_id":15,"link":"photo_4559055.html","width":130,"caption":"","height":87});
															thumbnails[4559057] = clik.newPhoto({"id":4559057,"src":"Fortnight_Fun-49_thumb.JPG","galleries_id":198803,"server_id":15,"link":"photo_4559057.html","width":130,"caption":"","height":194});
															thumbnails[4559059] = clik.newPhoto({"id":4559059,"src":"Fortnight_Fun-48_thumb.JPG","galleries_id":198803,"server_id":15,"link":"photo_4559059.html","width":130,"caption":"","height":194});
															thumbnails[4559066] = clik.newPhoto({"id":4559066,"src":"Fortnight_Fun-11_thumb.JPG","galleries_id":198803,"server_id":15,"link":"photo_4559066.html","width":130,"caption":"","height":87});
															thumbnails[4559071] = clik.newPhoto({"id":4559071,"src":"Fortnight_Fun-27_thumb.JPG","galleries_id":198803,"server_id":15,"link":"photo_4559071.html","width":130,"caption":"","height":87});
															thumbnails[4559073] = clik.newPhoto({"id":4559073,"src":"Fortnight_Fun-28_thumb.JPG","galleries_id":198803,"server_id":15,"link":"photo_4559073.html","width":130,"caption":"","height":120});
															thumbnails[4559075] = clik.newPhoto({"id":4559075,"src":"Fortnight_Fun-35_thumb.JPG","galleries_id":198803,"server_id":15,"link":"photo_4559075.html","width":130,"caption":"","height":87});
															thumbnails[4559077] = clik.newPhoto({"id":4559077,"src":"Fortnight_Fun-3_thumb.JPG","galleries_id":198803,"server_id":15,"link":"photo_4559077.html","width":130,"caption":"","height":87});
															thumbnails[5308700] = clik.newPhoto({"id":5308700,"src":"Pogo_dog_thumb.JPG","galleries_id":198821,"server_id":15,"link":"photo_5308700.html","width":130,"caption":"Pogo Dog","height":152});
															thumbnails[6407592] = clik.newPhoto({"id":6407592,"src":"Combine_effect_thumb.jpg","galleries_id":198821,"server_id":15,"link":"photo_6407592.html","width":130,"caption":"Combine effect.","height":87});
															thumbnails[6707592] = clik.newPhoto({"id":6707592,"src":"games-37_-_Copy1_thumb.JPG","galleries_id":366013,"server_id":15,"link":"photo_6707592.html","width":130,"caption":"","height":194});
															thumbnails[6707597] = clik.newPhoto({"id":6707597,"src":"games-35_-_Copy1_thumb.JPG","galleries_id":366013,"server_id":15,"link":"photo_6707597.html","width":130,"caption":"","height":195});
															thumbnails[6707598] = clik.newPhoto({"id":6707598,"src":"games-34_-_Copy_thumb.JPG","galleries_id":366013,"server_id":15,"link":"photo_6707598.html","width":130,"caption":"","height":195});
															thumbnails[6707621] = clik.newPhoto({"id":6707621,"src":"games-31_-_Copy_thumb.JPG","galleries_id":366013,"server_id":15,"link":"photo_6707621.html","width":130,"caption":"","height":195});
															thumbnails[6707669] = clik.newPhoto({"id":6707669,"src":"games-38_-_Copy123_thumb.jpg","galleries_id":366013,"server_id":15,"link":"photo_6707669.html","width":130,"caption":"","height":195});
															thumbnails[6707686] = clik.newPhoto({"id":6707686,"src":"games-33_-_Copy12_thumb.JPG","galleries_id":366013,"server_id":15,"link":"photo_6707686.html","width":130,"caption":"","height":195});
															thumbnails[6707733] = clik.newPhoto({"id":6707733,"src":"games-30_-_Copy_thumb.JPG","galleries_id":366013,"server_id":15,"link":"photo_6707733.html","width":130,"caption":"","height":194});
															thumbnails[6707740] = clik.newPhoto({"id":6707740,"src":"games-29_-_Copy_thumb.JPG","galleries_id":366013,"server_id":15,"link":"photo_6707740.html","width":130,"caption":"","height":194});
															thumbnails[6707745] = clik.newPhoto({"id":6707745,"src":"games-1_-_Copy1_thumb.JPG","galleries_id":366013,"server_id":15,"link":"photo_6707745.html","width":130,"caption":"","height":87});
															thumbnails[6707746] = clik.newPhoto({"id":6707746,"src":"games-28_-_Copy_thumb.JPG","galleries_id":366013,"server_id":15,"link":"photo_6707746.html","width":130,"caption":"","height":87});
															thumbnails[6707748] = clik.newPhoto({"id":6707748,"src":"games-27_-_Copy_thumb.JPG","galleries_id":366013,"server_id":15,"link":"photo_6707748.html","width":130,"caption":"","height":194});
															thumbnails[6707751] = clik.newPhoto({"id":6707751,"src":"games-26_-_Copy_thumb.JPG","galleries_id":366013,"server_id":15,"link":"photo_6707751.html","width":130,"caption":"","height":194});
															thumbnails[6707800] = clik.newPhoto({"id":6707800,"src":"games-2_-_Copy_thumb.JPG","galleries_id":366013,"server_id":15,"link":"photo_6707800.html","width":130,"caption":"","height":194});
															thumbnails[6707801] = clik.newPhoto({"id":6707801,"src":"games-24_-_Copy_thumb.JPG","galleries_id":366013,"server_id":15,"link":"photo_6707801.html","width":130,"caption":"","height":194});
															thumbnails[6707804] = clik.newPhoto({"id":6707804,"src":"games-23_-_Copy_thumb.JPG","galleries_id":366013,"server_id":15,"link":"photo_6707804.html","width":130,"caption":"","height":194});
															thumbnails[6707806] = clik.newPhoto({"id":6707806,"src":"games-22_-_Copy_thumb.JPG","galleries_id":366013,"server_id":15,"link":"photo_6707806.html","width":130,"caption":"","height":87});
															thumbnails[6707810] = clik.newPhoto({"id":6707810,"src":"games-21_-_Copy_thumb.JPG","galleries_id":366013,"server_id":15,"link":"photo_6707810.html","width":130,"caption":"","height":87});
															thumbnails[6707811] = clik.newPhoto({"id":6707811,"src":"games-20_-_Copy_thumb.JPG","galleries_id":366013,"server_id":15,"link":"photo_6707811.html","width":130,"caption":"","height":87});
															thumbnails[6707833] = clik.newPhoto({"id":6707833,"src":"games-18_-_Copy_thumb.JPG","galleries_id":366013,"server_id":15,"link":"photo_6707833.html","width":130,"caption":"","height":87});
															thumbnails[6707836] = clik.newPhoto({"id":6707836,"src":"games-17_-_Copy_thumb.JPG","galleries_id":366013,"server_id":15,"link":"photo_6707836.html","width":130,"caption":"","height":87});
															thumbnails[6707837] = clik.newPhoto({"id":6707837,"src":"games-16_-_Copy_thumb.JPG","galleries_id":366013,"server_id":15,"link":"photo_6707837.html","width":130,"caption":"","height":194});
															thumbnails[6707838] = clik.newPhoto({"id":6707838,"src":"games-13_-_Copy_thumb.JPG","galleries_id":366013,"server_id":15,"link":"photo_6707838.html","width":130,"caption":"","height":195});
															thumbnails[6707840] = clik.newPhoto({"id":6707840,"src":"games-12_-_Copy_thumb.JPG","galleries_id":366013,"server_id":15,"link":"photo_6707840.html","width":130,"caption":"","height":87});
															thumbnails[6707841] = clik.newPhoto({"id":6707841,"src":"games-11_-_Copy_thumb.JPG","galleries_id":366013,"server_id":15,"link":"photo_6707841.html","width":130,"caption":"","height":87});
															thumbnails[6707843] = clik.newPhoto({"id":6707843,"src":"games-8_-_Copy_thumb.JPG","galleries_id":366013,"server_id":15,"link":"photo_6707843.html","width":130,"caption":"","height":87});
															thumbnails[6707845] = clik.newPhoto({"id":6707845,"src":"games-7_-_Copy_thumb.JPG","galleries_id":366013,"server_id":15,"link":"photo_6707845.html","width":130,"caption":"","height":194});
															thumbnails[6707847] = clik.newPhoto({"id":6707847,"src":"games-5_-_Copy_thumb.JPG","galleries_id":366013,"server_id":15,"link":"photo_6707847.html","width":130,"caption":"","height":194});
															thumbnails[6707849] = clik.newPhoto({"id":6707849,"src":"games-4_-_Copy_thumb.JPG","galleries_id":366013,"server_id":15,"link":"photo_6707849.html","width":130,"caption":"","height":194});
															thumbnails[6707850] = clik.newPhoto({"id":6707850,"src":"games-3_-_Copy_thumb.JPG","galleries_id":366013,"server_id":15,"link":"photo_6707850.html","width":130,"caption":"","height":194});
															thumbnails[7244117] = clik.newPhoto({"id":7244117,"src":"Flambeauxthumbnail-1_thumb.jpg","galleries_id":198746,"server_id":15,"link":"photo_7244117.html","width":130,"caption":"Happy New Year in Comrie 2011","height":75});
															thumbnails[9086543] = clik.newPhoto({"id":9086543,"src":"winter-11_1.JPG","galleries_id":479294,"server_id":38,"link":"photo_9086543.html","width":130,"caption":"","height":87});
															thumbnails[9086548] = clik.newPhoto({"id":9086548,"src":"winter-21_1.JPG","galleries_id":479294,"server_id":38,"link":"photo_9086548.html","width":130,"caption":"","height":87});
															thumbnails[9086582] = clik.newPhoto({"id":9086582,"src":"winter-31_1.JPG","galleries_id":479294,"server_id":38,"link":"photo_9086582.html","width":130,"caption":"","height":87});
															thumbnails[9086586] = clik.newPhoto({"id":9086586,"src":"winter-41_1.JPG","galleries_id":479294,"server_id":38,"link":"photo_9086586.html","width":130,"caption":"","height":87});
															thumbnails[9086597] = clik.newPhoto({"id":9086597,"src":"winter-51_2.JPG","galleries_id":479294,"server_id":38,"link":"photo_9086597.html","width":130,"caption":"","height":93});
															thumbnails[9086633] = clik.newPhoto({"id":9086633,"src":"dockresize1_1.jpg","galleries_id":479294,"server_id":38,"link":"photo_9086633.html","width":130,"caption":"","height":87});
															thumbnails[3648396] = clik.newPhoto({"id":3648396,"src":"hill1_thumb.JPG","galleries_id":198770,"server_id":15,"link":"photo_3648396.html","width":130,"caption":"On the road to Bagging a Munro","height":98});
															thumbnails[3678260] = clik.newPhoto({"id":3678260,"src":"G8_041_thumb.jpg","galleries_id":224790,"server_id":15,"link":"photo_3678260.html","width":130,"caption":"","height":173});
															thumbnails[3678295] = clik.newPhoto({"id":3678295,"src":"G8_1a_thumb.jpg","galleries_id":224790,"server_id":15,"link":"photo_3678295.html","width":130,"caption":"Bono and Bob","height":98});
															thumbnails[3648393] = clik.newPhoto({"id":3648393,"src":"hill2_thumb.JPG","galleries_id":198770,"server_id":15,"link":"photo_3648393.html","width":130,"caption":"It's snow joke!","height":98});
															thumbnails[3678277] = clik.newPhoto({"id":3678277,"src":"G8_083_thumb.jpg","galleries_id":224790,"server_id":15,"link":"photo_3678277.html","width":130,"caption":"","height":98});
															thumbnails[3648359] = clik.newPhoto({"id":3648359,"src":"hill3_thumb.JPG","galleries_id":198770,"server_id":15,"link":"photo_3648359.html","width":130,"caption":"On top of the world!","height":98});
															thumbnails[3678268] = clik.newPhoto({"id":3678268,"src":"G8_053_thumb.jpg","galleries_id":224790,"server_id":15,"link":"photo_3678268.html","width":130,"caption":"","height":98});
															thumbnails[3678278] = clik.newPhoto({"id":3678278,"src":"G8_085_thumb.jpg","galleries_id":224790,"server_id":15,"link":"photo_3678278.html","width":130,"caption":"","height":98});
															thumbnails[3678290] = clik.newPhoto({"id":3678290,"src":"fence_thumb.jpg","galleries_id":224790,"server_id":15,"link":"photo_3678290.html","width":130,"caption":"","height":98});
															thumbnails[3289190] = clik.newPhoto({"id":3289190,"src":"games2_thumb.jpg","galleries_id":200505,"server_id":15,"link":"photo_3289190.html","width":130,"caption":"Caber tossing","height":194});
															thumbnails[3289283] = clik.newPhoto({"id":3289283,"src":"zypa170808games-5_thumb.jpg","galleries_id":200505,"server_id":15,"link":"photo_3289283.html","width":130,"caption":"Charge!","height":87});
															thumbnails[3289189] = clik.newPhoto({"id":3289189,"src":"Games 4_thumb.jpg","galleries_id":200505,"server_id":15,"link":"photo_3289189.html","width":130,"caption":"Putting the shot","height":98});
															thumbnails[3289208] = clik.newPhoto({"id":3289208,"src":"games8_thumb.jpg","galleries_id":200505,"server_id":15,"link":"photo_3289208.html","width":130,"caption":"Concentration is required","height":87});
															thumbnails[3289197] = clik.newPhoto({"id":3289197,"src":"games6_thumb.jpg","galleries_id":200505,"server_id":15,"link":"photo_3289197.html","width":130,"caption":"And with a swirl of the kilt, that's how it's done!","height":148});
															thumbnails[3289274] = clik.newPhoto({"id":3289274,"src":"games20_thumb.jpg","galleries_id":200505,"server_id":15,"link":"photo_3289274.html","width":130,"caption":"Swinging the lead","height":173});
															thumbnails[3289259] = clik.newPhoto({"id":3289259,"src":"games12_thumb.jpg","galleries_id":200505,"server_id":15,"link":"photo_3289259.html","width":130,"caption":"Mind your back!","height":194});
															thumbnails[3289179] = clik.newPhoto({"id":3289179,"src":"games1_thumb.jpg","galleries_id":200505,"server_id":15,"link":"photo_3289179.html","width":130,"caption":"Piping prodigy","height":239});
															thumbnails[3289226] = clik.newPhoto({"id":3289226,"src":"ganes5_thumb.jpg","galleries_id":200505,"server_id":15,"link":"photo_3289226.html","width":130,"caption":"The high tech equipment needed for the Tug o' War competition","height":87});
															thumbnails[3289266] = clik.newPhoto({"id":3289266,"src":"games15_thumb.jpg","galleries_id":200505,"server_id":15,"link":"photo_3289266.html","width":130,"caption":"Getting stuck in","height":87});
															thumbnails[3289859] = clik.newPhoto({"id":3289859,"src":"Games 2005 090_thumb.jpg","galleries_id":200505,"server_id":15,"link":"photo_3289859.html","width":130,"caption":"Heave!","height":98});
															thumbnails[3259666] = clik.newPhoto({"id":3259666,"src":"Go Ape4_thumb.jpg","galleries_id":198770,"server_id":15,"link":"photo_3259666.html","width":130,"caption":"Kim and Barry Go Ape!","height":173});
															thumbnails[3297385] = clik.newPhoto({"id":3297385,"src":"go_ape(2)_thumb.JPG","galleries_id":198770,"server_id":15,"link":"photo_3297385.html","width":130,"caption":"Tarzan taught me all I know","height":173});
															thumbnails[3263077] = clik.newPhoto({"id":3263077,"src":"zipping in_thumb.JPG","galleries_id":198770,"server_id":15,"link":"photo_3263077.html","width":130,"caption":"Zipping in!","height":98});
															thumbnails[3259673] = clik.newPhoto({"id":3259673,"src":"Go Ape3_thumb.jpg","galleries_id":198770,"server_id":15,"link":"photo_3259673.html","width":130,"caption":"Made it! ","height":98});
															thumbnails[3261655] = clik.newPhoto({"id":3261655,"src":"24 Oct 08 038_thumb.jpg","galleries_id":198770,"server_id":15,"link":"photo_3261655.html","width":130,"caption":"\"I've got to cycle how far?\"<br>\r\n<br>\r\n","height":87});
															thumbnails[3263019] = clik.newPhoto({"id":3263019,"src":"bike4_thumb.jpg","galleries_id":198770,"server_id":15,"link":"photo_3263019.html","width":130,"caption":"Hazards on the way!","height":87});
															thumbnails[3297539] = clik.newPhoto({"id":3297539,"src":"Yuk!_thumb.jpg","galleries_id":198770,"server_id":15,"link":"photo_3297539.html","width":130,"caption":"Yuk!","height":87});
															thumbnails[3263024] = clik.newPhoto({"id":3263024,"src":"bike6_thumb.jpg","galleries_id":198770,"server_id":15,"link":"photo_3263024.html","width":130,"caption":"Made it!","height":87});
															thumbnails[3263117] = clik.newPhoto({"id":3263117,"src":"hanging around_thumb.jpg","galleries_id":198770,"server_id":15,"link":"photo_3263117.html","width":130,"caption":"Hanging around!","height":87});
															thumbnails[3272468] = clik.newPhoto({"id":3272468,"src":"more hanging1_thumb.jpg","galleries_id":198770,"server_id":15,"link":"photo_3272468.html","width":130,"caption":"More hanging","height":87});
															thumbnails[3262995] = clik.newPhoto({"id":3262995,"src":"Best buds at the top of ratho aerial assault course_thumb.jpg","galleries_id":198770,"server_id":15,"link":"photo_3262995.html","width":130,"caption":"Moral support","height":87});
															thumbnails[3263081] = clik.newPhoto({"id":3263081,"src":"rock climbing_thumb.jpg","galleries_id":198770,"server_id":15,"link":"photo_3263081.html","width":130,"caption":"Mock climbing!","height":173});
															thumbnails[3297393] = clik.newPhoto({"id":3297393,"src":"hooray!_thumb.jpg","galleries_id":198770,"server_id":15,"link":"photo_3297393.html","width":130,"caption":"Hooray!","height":173});
															thumbnails[3272328] = clik.newPhoto({"id":3272328,"src":"wahay3_thumb.JPG","galleries_id":198770,"server_id":15,"link":"photo_3272328.html","width":130,"caption":"Wahay!","height":87});
															thumbnails[3272342] = clik.newPhoto({"id":3272342,"src":"onthecrest of a wave_thumb.JPG","galleries_id":198770,"server_id":15,"link":"photo_3272342.html","width":130,"caption":"Riding along...","height":87});
															thumbnails[3272313] = clik.newPhoto({"id":3272313,"src":"nowyouseeher_thumb.JPG","galleries_id":198770,"server_id":15,"link":"photo_3272313.html","width":130,"caption":"Now you see her ...","height":87});
															thumbnails[3272314] = clik.newPhoto({"id":3272314,"src":"nowyoudon't1_thumb.JPG","galleries_id":198770,"server_id":15,"link":"photo_3272314.html","width":130,"caption":"... now you don't!","height":87});
															thumbnails[3272320] = clik.newPhoto({"id":3272320,"src":"thewetlook_thumb.JPG","galleries_id":198770,"server_id":15,"link":"photo_3272320.html","width":130,"caption":"The wet look!","height":87});
															thumbnails[3272351] = clik.newPhoto({"id":3272351,"src":"splash2_thumb.JPG","galleries_id":198770,"server_id":15,"link":"photo_3272351.html","width":130,"caption":"Making a splash!","height":87});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[200505] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Crieff Highland Games","link":"gallery_200505.html","maxRecords":0.0,"photoIDs":[3289233.0,3289234.0,3289251.0,3289271.0,3289190.0,3289283.0,3289189.0,3289208.0,3289197.0,3289274.0,3289259.0,3289179.0,3289226.0,3289266.0,3289859.0],"skipIndex":0,"section_code":"gallery","featured_images":"3289859,3289283,3289274,3289271,3289266,3289259,3289251,3289234,3289233,3289226","id":200505,"singleSection":false});				  						galleries[366013] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Crieff Highland Games 2010","link":"gallery_366013.html","maxRecords":0.0,"photoIDs":[6707592.0,6707597.0,6707598.0,6707621.0,6707669.0,6707686.0,6707733.0,6707740.0,6707745.0,6707746.0,6707748.0,6707751.0,6707800.0,6707801.0,6707804.0,6707806.0,6707810.0,6707811.0,6707833.0,6707836.0,6707837.0,6707838.0,6707840.0,6707841.0,6707843.0,6707845.0,6707847.0,6707849.0,6707850.0],"skipIndex":0,"section_code":"gallery","featured_images":"6707850,6707849,6707847,6707845,6707843,6707841,6707840,6707838,6707837,6707836","id":366013,"singleSection":false});				  						galleries[391614] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Feathered friends","link":"gallery_391614.html","maxRecords":0.0,"photoIDs":[3268537.0,3272413.0,3289639.0,3289815.0,3579675.0,3732827.0],"skipIndex":0,"section_code":"gallery","featured_images":"3732827,3579675,3289815,3289639,3272413,3268537","id":391614,"singleSection":false});				  						galleries[224790] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"G8 Gleneagles","link":"gallery_224790.html","maxRecords":0.0,"photoIDs":[3678260.0,3678295.0,3678277.0,3678268.0,3678278.0,3678290.0],"skipIndex":0,"section_code":"gallery","featured_images":3678290.0,"id":224790,"singleSection":false});				  						galleries[479294] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Winter","link":"gallery_479294.html","maxRecords":0.0,"photoIDs":[9086543.0,9086548.0,9086582.0,9086586.0,9086597.0,9086633.0],"skipIndex":0,"section_code":"gallery","featured_images":9086582.0,"id":479294,"singleSection":false});				  						galleries[198747] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Local landscapes","link":"gallery_198747.html","maxRecords":0.0,"photoIDs":[3259516.0,3259530.0,3259539.0,3259557.0,3263080.0,3272372.0,3272381.0,3272408.0,3289811.0,3289817.0,3289847.0,3297342.0,3297346.0,3732791.0],"skipIndex":0,"section_code":"gallery","featured_images":"3732791,3297346,3297342,3289847,3289817,3289811,3272408,3272381,3272372,3263080","id":198747,"singleSection":false});				  						galleries[198746] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Comrie Flambeaux","link":"gallery_198746.html","maxRecords":0.0,"photoIDs":[5308699.0,3259461.0,3259900.0,3289730.0,3289798.0,3536503.0,3536514.0,7244117.0],"skipIndex":0,"section_code":"gallery","featured_images":3259900.0,"id":198746,"singleSection":false});				  						galleries[198803] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Comrie Fortnight","link":"gallery_198803.html","maxRecords":0.0,"photoIDs":[3259784.0,3289862.0,3289865.0,3289866.0,3289869.0,3289871.0,3289878.0,3289879.0,3289880.0,3289887.0,3289888.0,3289895.0,4559049.0,4559052.0,4559055.0,4559057.0,4559059.0,4559066.0,4559071.0,4559073.0,4559075.0,4559077.0],"skipIndex":0,"section_code":"gallery","featured_images":"4559077,4559075,4559073,4559071,4559066,4559059,4559057,4559055,4559052,4559049","id":198803,"singleSection":false});				  						galleries[198821] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Bits 'n' Bobs","link":"gallery_198821.html","maxRecords":0.0,"photoIDs":[3259922.0,3268446.0,3268451.0,3268473.0,3272417.0,3272423.0,3289493.0,3289494.0,3289497.0,3289508.0,3289514.0,3289561.0,3289571.0,3289596.0,3289669.0,3289680.0,3289713.0,3289716.0,3289719.0,3289725.0,3289752.0,3289796.0,3289822.0,3289824.0,3289833.0,3289834.0,3289842.0,3358803.0,3358808.0,3428551.0,3536525.0,3732819.0,4288660.0,4288701.0,5308700.0,6407592.0],"skipIndex":0,"section_code":"gallery","featured_images":3259922.0,"id":198821,"singleSection":false});				  						galleries[198770] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Kimbo's challenge","link":"gallery_198770.html","maxRecords":0.0,"photoIDs":[3259620.0,3259670.0,3262996.0,3262999.0,3263027.0,3263075.0,3263092.0,3297397.0,3875143.0,3875151.0,3875181.0,3875231.0,4106366.0,4106370.0,4106374.0,4106388.0,4106401.0,4106406.0,4106419.0,4107046.0,4107323.0,4107333.0,4107343.0,4107349.0,4107390.0,3648396.0,3648393.0,3648359.0,3259666.0,3297385.0,3263077.0,3259673.0,3261655.0,3263019.0,3297539.0,3263024.0,3263117.0,3272468.0,3262995.0,3263081.0,3297393.0,3272328.0,3272342.0,3272313.0,3272314.0,3272320.0,3272351.0],"skipIndex":0,"section_code":"gallery","featured_images":"3272313,3263081","id":198770,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '9086582,7244117,3732791,3297346,3289680,3268446,3259922,3259539';
imageSets[2] = '9086582,3259922,3259900,3678290,3263081,3272313';
imageSets[3] = '9086633,9086597,9086586,9086582,9086557,9086548,9086543,7244117,6707850,6707849,6707847,6707845,6707843,6707841,6707840,6707838,6707837,6707836,6707833,6707811,6707810,6707806,6707804,6707801,6707800,6707751,6707748,6707746,6707745,6707740,6707733,6707686,6707669,6707621,6707598,6707597,6707592,6407592,5308700,5308699,4559077,4559075,4559073,4559071,4559066,4559059,4559057,4559055,4559052,4559049';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/lynnmac/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/lynnmac/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/lynnmac/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/lynnmac/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/lynnmac/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/lynnmac/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/lynnmac/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/lynnmac/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/lynnmac/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/lynnmac/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/lynnmac/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/lynnmac/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/lynnmac/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/lynnmac/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/lynnmac/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/lynnmac/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/lynnmac/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/lynnmac/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/lynnmac/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/lynnmac/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/lynnmac/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/lynnmac/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/lynnmac/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/lynnmac/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/lynnmac/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/lynnmac/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/lynnmac/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 = 'Strathearn Snapshots: ' + 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="LYNNMAC">';
			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;
	}
}

			

