window.thumbnails = {};
															thumbnails[6603101] = clik.newPhoto({"id":6603101,"src":"7F8W2026_copy_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":92});
															thumbnails[1715460] = clik.newPhoto({"id":1715460,"src":"SJW_3856-01_thumb.jpg","galleries_id":109084,"server_id":1,"link":"photo_1715460.html","width":130,"caption":"Frosty Sunrise","height":87});
															thumbnails[1803120] = clik.newPhoto({"id":1803120,"src":"SJW_4334-01 copy1_thumb.jpg","galleries_id":64984,"server_id":1,"link":"photo_1803120.html","width":130,"caption":"Loch Fleet","height":87});
															thumbnails[1803182] = clik.newPhoto({"id":1803182,"src":"SJW_4322-01 copy_thumb.jpg","galleries_id":64413,"server_id":1,"link":"photo_1803182.html","width":130,"caption":"Big Sky, Big Sea","height":87});
															thumbnails[1803350] = clik.newPhoto({"id":1803350,"src":"SJW_3999-01_thumb.jpg","galleries_id":109084,"server_id":1,"link":"photo_1803350.html","width":130,"caption":"Chilly Day","height":87});
															thumbnails[1864880] = clik.newPhoto({"id":1864880,"src":"SJW_4517-01_thumb.jpg","galleries_id":64984,"server_id":1,"link":"photo_1864880.html","width":130,"caption":"Bonar Bridge","height":87});
															thumbnails[2281565] = clik.newPhoto({"id":2281565,"src":"HPL_6485-01_thumb.jpg","galleries_id":64984,"server_id":1,"link":"photo_2281565.html","width":130,"caption":"Magic Light","height":87});
															thumbnails[2281577] = clik.newPhoto({"id":2281577,"src":"HPL_6611-01_thumb.jpg","galleries_id":64984,"server_id":1,"link":"photo_2281577.html","width":130,"caption":"Assynt Mountains at Sunset","height":87});
															thumbnails[2281582] = clik.newPhoto({"id":2281582,"src":"HPL_6653-01_thumb.jpg","galleries_id":64984,"server_id":1,"link":"photo_2281582.html","width":130,"caption":"Sulliven ","height":87});
															thumbnails[2935430] = clik.newPhoto({"id":2935430,"src":"HPL_8713-01_thumb.jpg","galleries_id":64984,"server_id":1,"link":"photo_2935430.html","width":130,"caption":"Autumn Colour","height":86});
															thumbnails[2935443] = clik.newPhoto({"id":2935443,"src":"HPL_8635-01_thumb.jpg","galleries_id":64984,"server_id":1,"link":"photo_2935443.html","width":130,"caption":"Loch Morlich (Autumn)","height":86});
															thumbnails[3961879] = clik.newPhoto({"id":3961879,"src":"Shandwick_22nd_May_2009__812_thumb.jpg","galleries_id":64413,"server_id":1,"link":"photo_3961879.html","width":130,"caption":" Shandwick Beach in Spring","height":87});
															thumbnails[4189852] = clik.newPhoto({"id":4189852,"src":"Durness_6th_June_2009__1055_thumb.jpg","galleries_id":64413,"server_id":1,"link":"photo_4189852.html","width":130,"caption":"Solitary Rock","height":87});
															thumbnails[4358070] = clik.newPhoto({"id":4358070,"src":"Brora_13th_July_2009__2058_thumb.jpg","galleries_id":64413,"server_id":1,"link":"photo_4358070.html","width":130,"caption":"The Cathie","height":87});
															thumbnails[4866108] = clik.newPhoto({"id":4866108,"src":"Cromarty__Avoch_7th_Oct_2009__2890_thumb.jpg","galleries_id":64413,"server_id":1,"link":"photo_4866108.html","width":130,"caption":"Avoch Harbour","height":87});
															thumbnails[4866134] = clik.newPhoto({"id":4866134,"src":"Elphin__Struie_Sept_2009__28091_thumb.jpg","galleries_id":64984,"server_id":1,"link":"photo_4866134.html","width":130,"caption":"The Old Dog Kennel & Suilven","height":87});
															thumbnails[4866196] = clik.newPhoto({"id":4866196,"src":"Glencoe_Sept_2009__2619_thumb.jpg","galleries_id":64984,"server_id":1,"link":"photo_4866196.html","width":130,"caption":"The Herdsman","height":87});
															thumbnails[4866205] = clik.newPhoto({"id":4866205,"src":"Glencoe_Sept_2009__2629_thumb.jpg","galleries_id":64984,"server_id":1,"link":"photo_4866205.html","width":130,"caption":"Buachaille Etive Mor (Stob Dearg)","height":87});
															thumbnails[4866215] = clik.newPhoto({"id":4866215,"src":"Glencoe_Sept_2009__2727_thumb.jpg","galleries_id":64984,"server_id":1,"link":"photo_4866215.html","width":130,"caption":"The Viaduct","height":87});
															thumbnails[4866219] = clik.newPhoto({"id":4866219,"src":"Redburn_Glenglass_Sept_2009__2771_thumb.jpg","galleries_id":64984,"server_id":1,"link":"photo_4866219.html","width":130,"caption":"Old Croft","height":87});
															thumbnails[4876732] = clik.newPhoto({"id":4876732,"src":"Loch_Eye_8th_Oct_2009__2899_thumb.jpg","galleries_id":64984,"server_id":1,"link":"photo_4876732.html","width":130,"caption":"Loch Eye","height":87});
															thumbnails[4952099] = clik.newPhoto({"id":4952099,"src":"Sheildaig_17th_Oct_Oct_2009__3016_thumb.jpg","galleries_id":64984,"server_id":1,"link":"photo_4952099.html","width":130,"caption":"Red Roof Cottage","height":87});
															thumbnails[4952107] = clik.newPhoto({"id":4952107,"src":"Sheildaig_17th_Oct_Oct_2009__3028_thumb.jpg","galleries_id":64984,"server_id":1,"link":"photo_4952107.html","width":130,"caption":"Sheildaig Village","height":73});
															thumbnails[4952198] = clik.newPhoto({"id":4952198,"src":"Sheildaig_17th_Oct_Oct_2009__3035_thumb.jpg","galleries_id":64984,"server_id":1,"link":"photo_4952198.html","width":130,"caption":"Sheds, Loch Kishorn","height":80});
															thumbnails[5290320] = clik.newPhoto({"id":5290320,"src":"Loch_Morlich_4th_December_09__3375_thumb.jpg","galleries_id":109084,"server_id":1,"link":"photo_5290320.html","width":130,"caption":"Sunlit Boulders, Loch Morlich","height":87});
															thumbnails[5555887] = clik.newPhoto({"id":5555887,"src":"Cromarty_Fortrose_Abbey__Avoch_21st_Feb__4675_thumb.jpg","galleries_id":64984,"server_id":1,"link":"photo_5555887.html","width":130,"caption":"A Calm Day","height":86});
															thumbnails[5555894] = clik.newPhoto({"id":5555894,"src":"Brora_Beach_20th_Feb__4614_thumb.jpg","galleries_id":64413,"server_id":1,"link":"photo_5555894.html","width":130,"caption":"A Day in February","height":84});
															thumbnails[5624841] = clik.newPhoto({"id":5624841,"src":"Dundonnel_7th_November_2009__3249_thumb.jpg","galleries_id":64984,"server_id":1,"link":"photo_5624841.html","width":130,"caption":"Single Track Road","height":87});
															thumbnails[5624848] = clik.newPhoto({"id":5624848,"src":"Fortrose_Cathedral_21st_Feb_copy_thumb.jpg","galleries_id":64985,"server_id":1,"link":"photo_5624848.html","width":130,"caption":"Fortrose Cathedral","height":87});
															thumbnails[5624859] = clik.newPhoto({"id":5624859,"src":"Glen_Affric_12th_Dec_09__3581_thumb.jpg","galleries_id":109084,"server_id":1,"link":"photo_5624859.html","width":130,"caption":"Pine Tree","height":87});
															thumbnails[5814448] = clik.newPhoto({"id":5814448,"src":"Orkney_2_April_2010__5845_thumb.jpg","galleries_id":132506,"server_id":1,"link":"photo_5814448.html","width":130,"caption":"Evening Light, Loch Harray","height":73});
															thumbnails[5814483] = clik.newPhoto({"id":5814483,"src":"Tarbat_Ness_27th_March__5205_thumb.jpg","galleries_id":64985,"server_id":1,"link":"photo_5814483.html","width":130,"caption":"Lighthouse","height":86});
															thumbnails[5877280] = clik.newPhoto({"id":5877280,"src":"Orkney_1_April_2010__5618_thumb.jpg","galleries_id":132506,"server_id":1,"link":"photo_5877280.html","width":130,"caption":"Colours on the Shore","height":86});
															thumbnails[6356509] = clik.newPhoto({"id":6356509,"src":"Durness_June_2010__7525_thumb.jpg","galleries_id":64413,"server_id":1,"link":"photo_6356509.html","width":130,"caption":"Rock","height":86});
															thumbnails[6356522] = clik.newPhoto({"id":6356522,"src":"Orkney_June_2010__7400_thumb.jpg","galleries_id":132506,"server_id":1,"link":"photo_6356522.html","width":130,"caption":"Loch Harray Jetty","height":73});
															thumbnails[6356526] = clik.newPhoto({"id":6356526,"src":"Orkney_June_2010__7365_thumb.jpg","galleries_id":132506,"server_id":1,"link":"photo_6356526.html","width":130,"caption":"The Island","height":85});
															thumbnails[6356534] = clik.newPhoto({"id":6356534,"src":"Talmine_Wreck_thumb.jpg","galleries_id":64413,"server_id":1,"link":"photo_6356534.html","width":130,"caption":"Wreck","height":86});
															thumbnails[6356548] = clik.newPhoto({"id":6356548,"src":"Cul_Mor_18th_May_2010__7011_thumb.jpg","galleries_id":64984,"server_id":1,"link":"photo_6356548.html","width":130,"caption":"Spring Day","height":83});
															thumbnails[6576628] = clik.newPhoto({"id":6576628,"src":"Flowers___9138_thumb.jpg","galleries_id":362369,"server_id":1,"link":"photo_6576628.html","width":130,"caption":"Sunflower","height":86});
															thumbnails[6821978] = clik.newPhoto({"id":6821978,"src":"Otter_Loch__Mist___10967_thumb.jpg","galleries_id":64984,"server_id":1,"link":"photo_6821978.html","width":130,"caption":" September Morning","height":87});
															thumbnails[6996876] = clik.newPhoto({"id":6996876,"src":"Aviemore_10th_Oct_2010__11279_thumb.jpg","galleries_id":64984,"server_id":1,"link":"photo_6996876.html","width":130,"caption":"Autumn at Morlich","height":87});
															thumbnails[6996885] = clik.newPhoto({"id":6996885,"src":"Aviemore_10th_Oct_2010__11328_thumb.jpg","galleries_id":64984,"server_id":1,"link":"photo_6996885.html","width":130,"caption":"Fading Light","height":87});
															thumbnails[7007643] = clik.newPhoto({"id":7007643,"src":"1st_Novemeber_Mist_Foulis__Balconie_2010__11964_thumb.jpg","galleries_id":64984,"server_id":1,"link":"photo_7007643.html","width":130,"caption":"Misty Village","height":87});
															thumbnails[7057588] = clik.newPhoto({"id":7057588,"src":"Otter_Loch_Mon_15th_Nov_Morning__12120_thumb.jpg","galleries_id":109084,"server_id":1,"link":"photo_7057588.html","width":130,"caption":"Pink Morning Glow","height":87});
															thumbnails[7057603] = clik.newPhoto({"id":7057603,"src":"Otter_Loch_Mon_15th_Nov_Morning__12123_thumb.jpg","galleries_id":109084,"server_id":1,"link":"photo_7057603.html","width":130,"caption":"Frosty Reeds","height":87});
															thumbnails[7116691] = clik.newPhoto({"id":7116691,"src":"Snow_26th_November_2010__12204_thumb.jpg","galleries_id":109084,"server_id":1,"link":"photo_7116691.html","width":130,"caption":"Heavy Snow","height":87});
															thumbnails[7171571] = clik.newPhoto({"id":7171571,"src":"Snow_27th_November_2010__12208_thumb.jpg","galleries_id":109084,"server_id":1,"link":"photo_7171571.html","width":130,"caption":"Pillars","height":87});
															thumbnails[7171584] = clik.newPhoto({"id":7171584,"src":"Snow_Storehouse_29th_November_2010__12265_thumb.jpg","galleries_id":109084,"server_id":1,"link":"photo_7171584.html","width":130,"caption":"Storehouse in Winter","height":87});
															thumbnails[7171590] = clik.newPhoto({"id":7171590,"src":"Snow_Storehouse_29th_November_2010__12277_thumb.jpg","galleries_id":109084,"server_id":1,"link":"photo_7171590.html","width":130,"caption":"Anchor in Snow","height":87});
															thumbnails[7353263] = clik.newPhoto({"id":7353263,"src":"Birds__Dunrobin_July_2010__9035_thumb.jpg","galleries_id":362369,"server_id":1,"link":"photo_7353263.html","width":130,"caption":"Gyr Falcon","height":87});
															thumbnails[7353266] = clik.newPhoto({"id":7353266,"src":"Golspie_Old_Mill__Birds_Oct_2010__11093_thumb.jpg","galleries_id":362369,"server_id":1,"link":"photo_7353266.html","width":130,"caption":"Harris Hawk","height":87});
															thumbnails[7353272] = clik.newPhoto({"id":7353272,"src":"peregrine_falcon_thumb.jpg","galleries_id":362369,"server_id":1,"link":"photo_7353272.html","width":130,"caption":"Peregine Falcon","height":87});
															thumbnails[7353781] = clik.newPhoto({"id":7353781,"src":"Snow_27th_November_2010__12208_DD6E7AC6-24E8-5EC4-4FF6C4788712F9F9_thumb.jpg","galleries_id":64985,"server_id":1,"link":"photo_7353781.html","width":130,"caption":"Pillars in Monochrome","height":87});
															thumbnails[7472241] = clik.newPhoto({"id":7472241,"src":"Loch_Clair_17th_Feb__15150_thumb.jpg","galleries_id":64984,"server_id":1,"link":"photo_7472241.html","width":130,"caption":"White Boat & Tree","height":87});
															thumbnails[7472244] = clik.newPhoto({"id":7472244,"src":"Loch_Clair_17th_Feb__15157_thumb.jpg","galleries_id":64984,"server_id":1,"link":"photo_7472244.html","width":130,"caption":"Across Loch Coulin","height":87});
															thumbnails[7472249] = clik.newPhoto({"id":7472249,"src":"Kiltearn_6th_Jan_2010__128201_thumb.jpg","galleries_id":64413,"server_id":1,"link":"photo_7472249.html","width":130,"caption":"Stormy Skies","height":87});
															thumbnails[7472322] = clik.newPhoto({"id":7472322,"src":"Russel_Burn_West_Bridge__Night_12th_Feb__14874_thumb.jpg","galleries_id":64984,"server_id":1,"link":"photo_7472322.html","width":130,"caption":"Mountain View","height":87});
															thumbnails[7472328] = clik.newPhoto({"id":7472328,"src":"Ullapool_26th_Feb__154131_thumb.jpg","galleries_id":64413,"server_id":1,"link":"photo_7472328.html","width":130,"caption":"Washback","height":87});
															thumbnails[7472347] = clik.newPhoto({"id":7472347,"src":"Pormahomack_14th_Feb__14999_thumb.jpg","galleries_id":362369,"server_id":1,"link":"photo_7472347.html","width":130,"caption":"Tulip Heart","height":87});
															thumbnails[8022547] = clik.newPhoto({"id":8022547,"src":"Birds_3rd_May_2011__16919_thumb.jpg","galleries_id":64984,"server_id":1,"link":"photo_8022547.html","width":130,"caption":"Quiraing","height":87});
															thumbnails[8022558] = clik.newPhoto({"id":8022558,"src":"Birds_3rd_May_2011__16929_thumb.jpg","galleries_id":64984,"server_id":1,"link":"photo_8022558.html","width":130,"caption":"Quiraing 2","height":87});
															thumbnails[8848055] = clik.newPhoto({"id":8848055,"src":"HPL_9737_thumb.jpg","galleries_id":115281,"server_id":1,"link":"photo_8848055.html","width":130,"caption":"Silver Bridge in Twilight","height":195});
															thumbnails[8848057] = clik.newPhoto({"id":8848057,"src":"HPR_0040_thumb.jpg","galleries_id":115281,"server_id":1,"link":"photo_8848057.html","width":130,"caption":"Stag on Hillside","height":195});
															thumbnails[8865510] = clik.newPhoto({"id":8865510,"src":"HPR_0370_thumb.jpg","galleries_id":115281,"server_id":1,"link":"photo_8865510.html","width":130,"caption":"Winter at Tollie","height":87});
															thumbnails[8865515] = clik.newPhoto({"id":8865515,"src":"HPR_0229_thumb.jpg","galleries_id":115281,"server_id":1,"link":"photo_8865515.html","width":130,"caption":"Woodland Walk","height":87});
															thumbnails[8865521] = clik.newPhoto({"id":8865521,"src":"HPR_0277_copy_thumb.jpg","galleries_id":115281,"server_id":1,"link":"photo_8865521.html","width":130,"caption":"Snow Clouds at Tollie","height":87});
															thumbnails[8899763] = clik.newPhoto({"id":8899763,"src":"HPR_0619_thumb.jpg","galleries_id":115281,"server_id":1,"link":"photo_8899763.html","width":130,"caption":"Winter Sunset on Little Lochan","height":87});
															thumbnails[9082432] = clik.newPhoto({"id":9082432,"src":"HPR_10491_thumb.jpg","galleries_id":115281,"server_id":1,"link":"photo_9082432.html","width":130,"caption":"Night Time","height":87});
															thumbnails[9091251] = clik.newPhoto({"id":9091251,"src":"HPR_1227_thumb.jpg","galleries_id":115281,"server_id":1,"link":"photo_9091251.html","width":130,"caption":"Cromarty Firth Sunset","height":87});
															thumbnails[1598708] = clik.newPhoto({"id":1598708,"src":"Loch Morlich, Cairgorm_thumb.jpg","galleries_id":109084,"server_id":1,"link":"photo_1598708.html","width":130,"caption":"Snowy Boulders","height":87});
															thumbnails[1657885] = clik.newPhoto({"id":1657885,"src":"Loch Glascarnoch 2nd Dec O7_thumb.jpg","galleries_id":64984,"server_id":1,"link":"photo_1657885.html","width":130,"caption":"Loch Glascarnoch","height":87});
															thumbnails[1657893] = clik.newPhoto({"id":1657893,"src":"Copy (2) of SJW_3455-01_thumb.jpg","galleries_id":64413,"server_id":1,"link":"photo_1657893.html","width":130,"caption":"Like A Pint of Lager !","height":87});
															thumbnails[1973480] = clik.newPhoto({"id":1973480,"src":"DSC_0890-01_thumb.jpg","galleries_id":132506,"server_id":1,"link":"photo_1973480.html","width":130,"caption":"The Jetty","height":87});
															thumbnails[1990306] = clik.newPhoto({"id":1990306,"src":"SJW_4254-01_thumb.jpg","galleries_id":64413,"server_id":1,"link":"photo_1990306.html","width":130,"caption":"Rocks","height":87});
															thumbnails[3279273] = clik.newPhoto({"id":3279273,"src":"HPL_9354-01_thumb.jpg","galleries_id":109084,"server_id":1,"link":"photo_3279273.html","width":130,"caption":"The Pink House","height":87});
															thumbnails[3839861] = clik.newPhoto({"id":3839861,"src":"1st_April_09_Loch_Arkaig_Chai_Falls_48_copy1_thumb.jpg","galleries_id":362369,"server_id":1,"link":"photo_3839861.html","width":130,"caption":"Mossy tree","height":87});
															thumbnails[4358048] = clik.newPhoto({"id":4358048,"src":"Applecross__Sheildaig_26th___June_2009__1792_thumb.jpg","galleries_id":65064,"server_id":1,"link":"photo_4358048.html","width":130,"caption":"Russel Burn","height":195});
															thumbnails[5426580] = clik.newPhoto({"id":5426580,"src":"Ardvreck_Castle_Assynt_10th_Jan_10__4077_thumb.jpg","galleries_id":109084,"server_id":1,"link":"photo_5426580.html","width":130,"caption":" Castle Reflections","height":86});
															thumbnails[5527352] = clik.newPhoto({"id":5527352,"src":"January_30th___Dornoch___4392_thumb.jpg","galleries_id":109084,"server_id":1,"link":"photo_5527352.html","width":130,"caption":"Winter on the Beach","height":81});
															thumbnails[6356528] = clik.newPhoto({"id":6356528,"src":"Orkney_June_2010__7298_thumb.jpg","galleries_id":362369,"server_id":1,"link":"photo_6356528.html","width":130,"caption":"Resting Swan","height":88});
															thumbnails[8774817] = clik.newPhoto({"id":8774817,"src":"HPL_9543_thumb.jpg","galleries_id":115281,"server_id":1,"link":"photo_8774817.html","width":130,"caption":"Blanket of Mist","height":87});
															thumbnails[1598712] = clik.newPhoto({"id":1598712,"src":"Kiltearn Beach, Evanton_thumb.jpg","galleries_id":109084,"server_id":1,"link":"photo_1598712.html","width":130,"caption":"Shore Road","height":87});
															thumbnails[1719869] = clik.newPhoto({"id":1719869,"src":"SJW_3849-01_thumb.jpg","galleries_id":109084,"server_id":1,"link":"photo_1719869.html","width":130,"caption":"Misty Winter Morning","height":87});
															thumbnails[1973562] = clik.newPhoto({"id":1973562,"src":"HPL_4703-01_thumb.jpg","galleries_id":132506,"server_id":1,"link":"photo_1973562.html","width":130,"caption":"Stormy Day","height":87});
															thumbnails[3279276] = clik.newPhoto({"id":3279276,"src":"HPL_9442-01_thumb.jpg","galleries_id":109084,"server_id":1,"link":"photo_3279276.html","width":130,"caption":"Winter at Morie","height":87});
															thumbnails[5527356] = clik.newPhoto({"id":5527356,"src":"Storehouse_18th_Feb__4547_thumb.jpg","galleries_id":64984,"server_id":1,"link":"photo_5527356.html","width":130,"caption":"The Storehouse","height":86});
															thumbnails[7353667] = clik.newPhoto({"id":7353667,"src":"Glencassley_7th_Jan_2011__13722_thumb.jpg","galleries_id":362369,"server_id":1,"link":"photo_7353667.html","width":130,"caption":"Little Deer","height":87});
															thumbnails[8774546] = clik.newPhoto({"id":8774546,"src":"PB142682_thumb.jpg","galleries_id":115281,"server_id":1,"link":"photo_8774546.html","width":130,"caption":"November Twilight","height":87});
															thumbnails[1990323] = clik.newPhoto({"id":1990323,"src":"SJW_4176-01_thumb.jpg","galleries_id":64985,"server_id":1,"link":"photo_1990323.html","width":130,"caption":"Kiltearn Shore","height":87});
															thumbnails[3279279] = clik.newPhoto({"id":3279279,"src":"HPL_9464-01_thumb.jpg","galleries_id":109084,"server_id":1,"link":"photo_3279279.html","width":130,"caption":"Frosty Tree","height":87});
															thumbnails[5426613] = clik.newPhoto({"id":5426613,"src":"Ardvreck_Castle_Assynt_10th_Jan_10__4088_thumb.jpg","galleries_id":109084,"server_id":1,"link":"photo_5426613.html","width":130,"caption":"Ardvreck Castle in the Snow","height":79});
															thumbnails[6576629] = clik.newPhoto({"id":6576629,"src":"Flowers___9139_thumb.jpg","galleries_id":362369,"server_id":1,"link":"photo_6576629.html","width":130,"caption":"Hoverfly","height":77});
															thumbnails[7472363] = clik.newPhoto({"id":7472363,"src":"Ullapool_26th_Feb__15448_thumb.jpg","galleries_id":65064,"server_id":1,"link":"photo_7472363.html","width":130,"caption":"Black Water River","height":195});
															thumbnails[8774781] = clik.newPhoto({"id":8774781,"src":"HPL_9451_thumb.jpg","galleries_id":115281,"server_id":1,"link":"photo_8774781.html","width":130,"caption":"Dam Wall","height":87});
															thumbnails[1521310] = clik.newPhoto({"id":1521310,"src":"SJW_0050-01_thumb.jpg","galleries_id":65064,"server_id":1,"link":"photo_1521310.html","width":130,"caption":"Waterfall in Autumn","height":195});
															thumbnails[1657899] = clik.newPhoto({"id":1657899,"src":"SJW_3508-01_thumb.jpg","galleries_id":64984,"server_id":1,"link":"photo_1657899.html","width":130,"caption":"Winter Sunset","height":87});
															thumbnails[1977953] = clik.newPhoto({"id":1977953,"src":"HPL_4687-01_thumb.jpg","galleries_id":132506,"server_id":1,"link":"photo_1977953.html","width":130,"caption":"Wild Sea","height":87});
															thumbnails[1430637] = clik.newPhoto({"id":1430637,"src":"Aultguish Inn_thumb.jpg","galleries_id":109084,"server_id":1,"link":"photo_1430637.html","width":130,"caption":"Aultguish Inn","height":87});
															thumbnails[1521274] = clik.newPhoto({"id":1521274,"src":"SJW_0019-013_thumb.jpg","galleries_id":64984,"server_id":1,"link":"photo_1521274.html","width":130,"caption":"Stac Polliadh ","height":87});
															thumbnails[1990384] = clik.newPhoto({"id":1990384,"src":"SJW_4400-01_thumb.jpg","galleries_id":109084,"server_id":1,"link":"photo_1990384.html","width":130,"caption":"Snow on the Beach","height":87});
															thumbnails[3279291] = clik.newPhoto({"id":3279291,"src":"HPL_9493-01_thumb.jpg","galleries_id":109084,"server_id":1,"link":"photo_3279291.html","width":130,"caption":"River Alness","height":87});
															thumbnails[6676820] = clik.newPhoto({"id":6676820,"src":"Loch_Eye_8th_Oct_2009__29021_thumb.jpg","galleries_id":64985,"server_id":1,"link":"photo_6676820.html","width":130,"caption":"The Little White Boat","height":87});
															thumbnails[920824] = clik.newPhoto({"id":920824,"src":"An Teallach1_thumb.jpg","galleries_id":109084,"server_id":1,"link":"photo_920824.html","width":130,"caption":"An Teallach","height":87});
															thumbnails[920821] = clik.newPhoto({"id":920821,"src":"Fairy Glen Falls1_thumb.jpg","galleries_id":65064,"server_id":1,"link":"photo_920821.html","width":130,"caption":"Fairy Glen ","height":195});
															thumbnails[924780] = clik.newPhoto({"id":924780,"src":"SJW_0033-01_thumb.jpg","galleries_id":65064,"server_id":1,"link":"photo_924780.html","width":130,"caption":"Angel Hair","height":195});
															thumbnails[5426825] = clik.newPhoto({"id":5426825,"src":"Dundonnel_7th_November_2009__3207_thumb.jpg","galleries_id":64985,"server_id":1,"link":"photo_5426825.html","width":130,"caption":"An Teallach ( The Forge)","height":78});
															thumbnails[6584135] = clik.newPhoto({"id":6584135,"src":"Glencoe_Sept_2009__26801_thumb.jpg","galleries_id":65064,"server_id":1,"link":"photo_6584135.html","width":130,"caption":"Glen Etive","height":196});
															thumbnails[920789] = clik.newPhoto({"id":920789,"src":"Waterfalls, Assynt, North West Scotland1_thumb.jpg","galleries_id":65064,"server_id":1,"link":"photo_920789.html","width":130,"caption":"Hidden Gem","height":195});
															thumbnails[1521246] = clik.newPhoto({"id":1521246,"src":"SJW_0011-011_thumb.jpg","galleries_id":64984,"server_id":1,"link":"photo_1521246.html","width":130,"caption":"Knockfarrel","height":87});
															thumbnails[2135660] = clik.newPhoto({"id":2135660,"src":"HPL_5452-01_thumb.jpg","galleries_id":64984,"server_id":1,"link":"photo_2135660.html","width":130,"caption":"The Old Dog Kennels","height":87});
															thumbnails[2885092] = clik.newPhoto({"id":2885092,"src":"HPL_8523-01_thumb.jpg","galleries_id":65064,"server_id":1,"link":"photo_2885092.html","width":130,"caption":"Black Water","height":86});
															thumbnails[1979336] = clik.newPhoto({"id":1979336,"src":"HPL_4768-01_thumb.jpg","galleries_id":132506,"server_id":1,"link":"photo_1979336.html","width":130,"caption":"Little Waves","height":87});
															thumbnails[920707] = clik.newPhoto({"id":920707,"src":"Lochcarron Golf Club1_thumb.jpg","galleries_id":64985,"server_id":1,"link":"photo_920707.html","width":130,"caption":"Lochcarron Golf Club","height":87});
															thumbnails[920822] = clik.newPhoto({"id":920822,"src":"Loch Droma1_thumb.jpg","galleries_id":64984,"server_id":1,"link":"photo_920822.html","width":130,"caption":"Loch Droma","height":87});
															thumbnails[1598716] = clik.newPhoto({"id":1598716,"src":"Loch Morlich2, Cairgorm_thumb.jpg","galleries_id":109084,"server_id":1,"link":"photo_1598716.html","width":130,"caption":"Loch Morlich","height":65});
															thumbnails[1715452] = clik.newPhoto({"id":1715452,"src":"SJW_3804-01_thumb.jpg","galleries_id":109084,"server_id":1,"link":"photo_1715452.html","width":130,"caption":"Resting Place","height":87});
															thumbnails[3444950] = clik.newPhoto({"id":3444950,"src":"HPL_0065-01_thumb.jpg","galleries_id":109084,"server_id":1,"link":"photo_3444950.html","width":130,"caption":"Towards Liathach","height":87});
															thumbnails[923448] = clik.newPhoto({"id":923448,"src":"IMG_0671-02_thumb.jpg","galleries_id":64984,"server_id":1,"link":"photo_923448.html","width":130,"caption":"Anchor & Tree","height":87});
															thumbnails[1979341] = clik.newPhoto({"id":1979341,"src":"HPL_4789-01_thumb.jpg","galleries_id":132506,"server_id":1,"link":"photo_1979341.html","width":130,"caption":"The Ring","height":87});
															thumbnails[3171413] = clik.newPhoto({"id":3171413,"src":"28mm Achnasheen Barn_thumb.jpg","galleries_id":109084,"server_id":1,"link":"photo_3171413.html","width":130,"caption":"Snowy Old Barn","height":87});
															thumbnails[7353653] = clik.newPhoto({"id":7353653,"src":"Glencassley_7th_Jan_2011__1371912_thumb.jpg","galleries_id":362369,"server_id":1,"link":"photo_7353653.html","width":130,"caption":"Red Deer","height":130});
															thumbnails[3171417] = clik.newPhoto({"id":3171417,"src":"28mm Gorstan Cottage_thumb.jpg","galleries_id":109084,"server_id":1,"link":"photo_3171417.html","width":130,"caption":"Old Cottage","height":87});
															thumbnails[1979358] = clik.newPhoto({"id":1979358,"src":"HPL_4875-01_thumb.jpg","galleries_id":132506,"server_id":1,"link":"photo_1979358.html","width":130,"caption":"As Night Falls","height":87});
															thumbnails[3171421] = clik.newPhoto({"id":3171421,"src":"Droma Tree's_thumb.jpg","galleries_id":109084,"server_id":1,"link":"photo_3171421.html","width":130,"caption":"Tree's in Winter","height":87});
															thumbnails[1358174] = clik.newPhoto({"id":1358174,"src":"SJW_0090-01 copy_thumb.jpg","galleries_id":64984,"server_id":1,"link":"photo_1358174.html","width":130,"caption":"The Reaper","height":87});
															thumbnails[1979359] = clik.newPhoto({"id":1979359,"src":"HPL_4927-01_thumb.jpg","galleries_id":132506,"server_id":1,"link":"photo_1979359.html","width":130,"caption":"Shafts of Light","height":87});
															thumbnails[3171425] = clik.newPhoto({"id":3171425,"src":"HPL_9157-01_thumb_36566CD0-1EC9-D45B-1CF848C6F258BA72.jpg","galleries_id":109084,"server_id":1,"link":"photo_3171425.html","width":130,"caption":"Loch Droma","height":87});
															thumbnails[1979362] = clik.newPhoto({"id":1979362,"src":"HPL_4932-01_thumb.jpg","galleries_id":132506,"server_id":1,"link":"photo_1979362.html","width":130,"caption":"Last Light","height":87});
															thumbnails[3171427] = clik.newPhoto({"id":3171427,"src":"HPL_9165-01_thumb.jpg","galleries_id":109084,"server_id":1,"link":"photo_3171427.html","width":130,"caption":"Little Island","height":87});
															thumbnails[1979365] = clik.newPhoto({"id":1979365,"src":"HPL_4949-01_thumb.jpg","galleries_id":132506,"server_id":1,"link":"photo_1979365.html","width":130,"caption":"Towards Marwick","height":87});
															thumbnails[3171434] = clik.newPhoto({"id":3171434,"src":"HPL_9321-01_thumb.jpg","galleries_id":109084,"server_id":1,"link":"photo_3171434.html","width":130,"caption":"Highland Winter","height":87});
															thumbnails[1979370] = clik.newPhoto({"id":1979370,"src":"HPL_4908-01_thumb.jpg","galleries_id":132506,"server_id":1,"link":"photo_1979370.html","width":130,"caption":"Woodwick Burn","height":87});
															thumbnails[3171438] = clik.newPhoto({"id":3171438,"src":"Loch a  Bhraoin 50mm_thumb.jpg","galleries_id":109084,"server_id":1,"link":"photo_3171438.html","width":130,"caption":"Boat Reflection","height":87});
															thumbnails[3839898] = clik.newPhoto({"id":3839898,"src":"Portmahomack_Sunset_126_copy_thumb.jpg","galleries_id":64413,"server_id":1,"link":"photo_3839898.html","width":130,"caption":"Sunset Ripples","height":87});
															thumbnails[3839901] = clik.newPhoto({"id":3839901,"src":"Tarbatness_12_April_2009__045_copy_thumb.jpg","galleries_id":64413,"server_id":1,"link":"photo_3839901.html","width":130,"caption":"The Lighthouse","height":87});
															thumbnails[6821974] = clik.newPhoto({"id":6821974,"src":"Otter_Loch_Sept_2010__10597_thumb.jpg","galleries_id":64985,"server_id":1,"link":"photo_6821974.html","width":130,"caption":"The Gate","height":86});
															thumbnails[3444931] = clik.newPhoto({"id":3444931,"src":"HPL_0007-01_thumb.jpg","galleries_id":109084,"server_id":1,"link":"photo_3444931.html","width":130,"caption":"Winter Tree","height":87});
															thumbnails[3444989] = clik.newPhoto({"id":3444989,"src":"HPL_0139-01_thumb.jpg","galleries_id":109084,"server_id":1,"link":"photo_3444989.html","width":130,"caption":"Little Island, Loch Droma","height":87});
															thumbnails[1989878] = clik.newPhoto({"id":1989878,"src":"IMG_1197-01_thumb.jpg","galleries_id":132506,"server_id":1,"link":"photo_1989878.html","width":130,"caption":"Waulkmill Bay","height":87});
															thumbnails[3839910] = clik.newPhoto({"id":3839910,"src":"Surfers__Farr_Beach_2nd_May_09S__322_copy_thumb.jpg","galleries_id":64413,"server_id":1,"link":"photo_3839910.html","width":130,"caption":"A Hint of Green","height":87});
															thumbnails[3839911] = clik.newPhoto({"id":3839911,"src":"Surfers__Farr_Beach_2nd_May_09S__333_thumb.jpg","galleries_id":64413,"server_id":1,"link":"photo_3839911.html","width":130,"caption":"Turquoise Tide","height":87});
															thumbnails[1989886] = clik.newPhoto({"id":1989886,"src":"IMG_1419-01_thumb.jpg","galleries_id":132506,"server_id":1,"link":"photo_1989886.html","width":130,"caption":"Stone Dykes","height":87});
															thumbnails[1989898] = clik.newPhoto({"id":1989898,"src":"IMG_1429-01_thumb.jpg","galleries_id":132506,"server_id":1,"link":"photo_1989898.html","width":130,"caption":"Burnmouth Cottage","height":87});
															thumbnails[1990028] = clik.newPhoto({"id":1990028,"src":"IMG_1358-01_thumb.jpg","galleries_id":132506,"server_id":1,"link":"photo_1990028.html","width":130,"caption":"Whalebone","height":87});
															thumbnails[6576654] = clik.newPhoto({"id":6576654,"src":"Birds__Flowers_2nd_August__9628_thumb.jpg","galleries_id":362369,"server_id":1,"link":"photo_6576654.html","width":130,"caption":"Busy Bee","height":130});
															thumbnails[920741] = clik.newPhoto({"id":920741,"src":"Fishing Boats, Ullapool Harbour1_thumb.jpg","galleries_id":64984,"server_id":1,"link":"photo_920741.html","width":130,"caption":"Fishing Boats","height":87});
															thumbnails[920826] = clik.newPhoto({"id":920826,"src":"Eilean Donan Castle2_thumb.jpg","galleries_id":64984,"server_id":1,"link":"photo_920826.html","width":130,"caption":"Eilean Donan Castle","height":87});
															thumbnails[920842] = clik.newPhoto({"id":920842,"src":"Portmahommack Beach1_thumb.jpg","galleries_id":64413,"server_id":1,"link":"photo_920842.html","width":130,"caption":"Portmahommack Beach","height":87});
															thumbnails[3444932] = clik.newPhoto({"id":3444932,"src":"HPL_9954-01_thumb.jpg","galleries_id":109084,"server_id":1,"link":"photo_3444932.html","width":130,"caption":"Loch Morlich Winter","height":87});
															thumbnails[3444990] = clik.newPhoto({"id":3444990,"src":"HPL_0170-01_thumb.jpg","galleries_id":109084,"server_id":1,"link":"photo_3444990.html","width":130,"caption":"Snow Rollers, Loch Bhraoin","height":87});
															thumbnails[6378265] = clik.newPhoto({"id":6378265,"src":"Birds__Dunrobin_July_2010__9020_thumb.jpg","galleries_id":362369,"server_id":1,"link":"photo_6378265.html","width":130,"caption":"Bright Eye's","height":130});
															thumbnails[7353279] = clik.newPhoto({"id":7353279,"src":"Bramble_Dunrobin_9th_August__9753_thumb.jpg","galleries_id":362369,"server_id":1,"link":"photo_7353279.html","width":130,"caption":"Barn Owl","height":130});
															thumbnails[920872] = clik.newPhoto({"id":920872,"src":"Sand & Rocks, Brora_thumb.jpg","galleries_id":64413,"server_id":1,"link":"photo_920872.html","width":130,"caption":"Sand & Stone","height":87});
															thumbnails[3444933] = clik.newPhoto({"id":3444933,"src":"HPL_9978-01_thumb.jpg","galleries_id":109084,"server_id":1,"link":"photo_3444933.html","width":130,"caption":"Snowy Boat","height":87});
															thumbnails[3444953] = clik.newPhoto({"id":3444953,"src":"HPL_9716-01_thumb.jpg","galleries_id":64985,"server_id":1,"link":"photo_3444953.html","width":130,"caption":"Barn in Wintertime","height":87});
															thumbnails[7353285] = clik.newPhoto({"id":7353285,"src":"Bramble_Dunrobin_9th_August__9754_1_thumb.jpg","galleries_id":362369,"server_id":1,"link":"photo_7353285.html","width":130,"caption":"Barn Owl ","height":195});
															thumbnails[4089768] = clik.newPhoto({"id":4089768,"src":"Wyvis_Waterfalls_8th_June_2009__1263_thumb.jpg","galleries_id":65064,"server_id":1,"link":"photo_4089768.html","width":130,"caption":"Wyvis Waterfalls","height":87});
															thumbnails[4189737] = clik.newPhoto({"id":4189737,"src":"Applecross__Sheildaig_26th___June_2009__1773_thumb.jpg","galleries_id":65064,"server_id":1,"link":"photo_4189737.html","width":130,"caption":"Smooth and Silky","height":87});
															thumbnails[1977968] = clik.newPhoto({"id":1977968,"src":"HPL_4727-01_thumb.jpg","galleries_id":132506,"server_id":1,"link":"photo_1977968.html","width":130,"caption":"Zig Zag","height":195});
															thumbnails[2781909] = clik.newPhoto({"id":2781909,"src":"HPL_8138-01_thumb.jpg","galleries_id":64985,"server_id":1,"link":"photo_2781909.html","width":130,"caption":"Dornoch Cathedral","height":195});
															thumbnails[3444954] = clik.newPhoto({"id":3444954,"src":"HPL_9725-01_thumb.jpg","galleries_id":109084,"server_id":1,"link":"photo_3444954.html","width":130,"caption":"Highland Winter","height":87});
															thumbnails[4866208] = clik.newPhoto({"id":4866208,"src":"Glencoe_Sept_2009__2677_thumb.jpg","galleries_id":65064,"server_id":1,"link":"photo_4866208.html","width":130,"caption":"Little Falls","height":87});
															thumbnails[5585484] = clik.newPhoto({"id":5585484,"src":"Lael_2nd_March_2010_thumb.jpg","galleries_id":109084,"server_id":1,"link":"photo_5585484.html","width":130,"caption":"Ice melt","height":196});
															thumbnails[7353767] = clik.newPhoto({"id":7353767,"src":"Strathrusdale_Snow_17th_Dec_2010__12444_thumb.jpg","galleries_id":64985,"server_id":1,"link":"photo_7353767.html","width":130,"caption":"Ice Cold Flow","height":195});
															thumbnails[7546493] = clik.newPhoto({"id":7546493,"src":"snowdrops__flowers__15584_thumb.jpg","galleries_id":362369,"server_id":1,"link":"photo_7546493.html","width":130,"caption":"Red Gerbera's","height":195});
															thumbnails[7682525] = clik.newPhoto({"id":7682525,"src":"Ullapool_26th_Feb__15449_thumb.jpg","galleries_id":65064,"server_id":1,"link":"photo_7682525.html","width":130,"caption":"Silver Bridge","height":87});
															thumbnails[980937] = clik.newPhoto({"id":980937,"src":"Spires_thumb.jpg","galleries_id":64985,"server_id":1,"link":"photo_980937.html","width":130,"caption":"Spires","height":195});
															thumbnails[1983833] = clik.newPhoto({"id":1983833,"src":"DSC_0896-01_thumb.jpg","galleries_id":132506,"server_id":1,"link":"photo_1983833.html","width":130,"caption":"Fishing Boat","height":195});
															thumbnails[3279260] = clik.newPhoto({"id":3279260,"src":"HPL_9452-01_thumb.jpg","galleries_id":109084,"server_id":1,"link":"photo_3279260.html","width":130,"caption":"North Poles","height":195});
															thumbnails[7472316] = clik.newPhoto({"id":7472316,"src":"Russel_Burn_West_Bridge__Night_12th_Feb__14866_thumb.jpg","galleries_id":65064,"server_id":1,"link":"photo_7472316.html","width":130,"caption":"Russel Burn","height":87});
															thumbnails[7534044] = clik.newPhoto({"id":7534044,"src":"Glencassley_Deer_23rd_Jan__14501_thumb.jpg","galleries_id":362369,"server_id":1,"link":"photo_7534044.html","width":130,"caption":"Highland Stag","height":195});
															thumbnails[921577] = clik.newPhoto({"id":921577,"src":"Bent over Backwards (Black & White)_thumb.jpg","galleries_id":64985,"server_id":1,"link":"photo_921577.html","width":130,"caption":"Windy Day","height":195});
															thumbnails[1983844] = clik.newPhoto({"id":1983844,"src":"IMG_1350-01_thumb.jpg","galleries_id":132506,"server_id":1,"link":"photo_1983844.html","width":130,"caption":"Whalebone","height":195});
															thumbnails[7472330] = clik.newPhoto({"id":7472330,"src":"Russel_Burn_West_Bridge__Night_12th_Feb__14912_thumb.jpg","galleries_id":64984,"server_id":1,"link":"photo_7472330.html","width":130,"caption":"Under the Bridge","height":195});
															thumbnails[920956] = clik.newPhoto({"id":920956,"src":"The Wall_thumb.jpg","galleries_id":64413,"server_id":1,"link":"photo_920956.html","width":130,"caption":"The Wall","height":87});
															thumbnails[3444951] = clik.newPhoto({"id":3444951,"src":"HPL_0104-01_thumb.jpg","galleries_id":109084,"server_id":1,"link":"photo_3444951.html","width":130,"caption":"Loch Maree","height":195});
															thumbnails[3171409] = clik.newPhoto({"id":3171409,"src":"HPL_8971-01_thumb.jpg","galleries_id":109084,"server_id":1,"link":"photo_3171409.html","width":130,"caption":"Volcanic Winter","height":195});
															thumbnails[921086] = clik.newPhoto({"id":921086,"src":"North Sea_thumb.JPG","galleries_id":64413,"server_id":1,"link":"photo_921086.html","width":130,"caption":"North Sea","height":87});
															thumbnails[3961882] = clik.newPhoto({"id":3961882,"src":"Shandwick_22nd_May_2009__798_thumb.jpg","galleries_id":64413,"server_id":1,"link":"photo_3961882.html","width":130,"caption":"Sun on the Rocks","height":195});
															thumbnails[4930491] = clik.newPhoto({"id":4930491,"src":"Loch_Eye_8th_Oct_2009__2900_thumb.jpg","galleries_id":64984,"server_id":1,"link":"photo_4930491.html","width":130,"caption":"Reflections","height":195});
															thumbnails[5290321] = clik.newPhoto({"id":5290321,"src":"Loch_Morlich_4th_December_09__3390_thumb.jpg","galleries_id":64985,"server_id":1,"link":"photo_5290321.html","width":130,"caption":"Bare tree, Loch Morlich","height":195});
															thumbnails[5555904] = clik.newPhoto({"id":5555904,"src":"Storehouse_18th_Feb__4556_thumb.jpg","galleries_id":64984,"server_id":1,"link":"photo_5555904.html","width":130,"caption":"The Blue Anchor","height":196});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[64984] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Landscapes","link":"gallery_64984.html","maxRecords":0.0,"photoIDs":[1803120.0,1864880.0,2281565.0,2281577.0,2281582.0,2935430.0,2935443.0,4866134.0,4866196.0,4866205.0,4866215.0,4866219.0,4876732.0,4952099.0,4952107.0,4952198.0,5555887.0,5624841.0,6356548.0,6821978.0,6996876.0,6996885.0,7007643.0,7472241.0,7472244.0,7472322.0,8022547.0,8022558.0,1657885.0,5527356.0,1657899.0,1521274.0,1521246.0,2135660.0,920822.0,923448.0,1358174.0,920741.0,920826.0,7472330.0,4930491.0,5555904.0],"skipIndex":0,"section_code":"gallery","featured_images":8022547.0,"id":64984,"singleSection":false});				  						galleries[65064] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Falls & Water","link":"gallery_65064.html","maxRecords":0.0,"photoIDs":[4358048.0,7472363.0,1521310.0,920821.0,924780.0,6584135.0,920789.0,2885092.0,4089768.0,4189737.0,4866208.0,7682525.0,7472316.0],"skipIndex":0,"section_code":"gallery","featured_images":4189737.0,"id":65064,"singleSection":false});				  						galleries[64413] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Seascapes","link":"gallery_64413.html","maxRecords":0.0,"photoIDs":[1803182.0,3961879.0,4189852.0,4358070.0,4866108.0,5555894.0,6356509.0,6356534.0,7472249.0,7472328.0,1657893.0,1990306.0,3839898.0,3839901.0,3839910.0,3839911.0,920842.0,920872.0,920956.0,921086.0,3961882.0],"skipIndex":0,"section_code":"gallery","featured_images":7472249.0,"id":64413,"singleSection":false});				  						galleries[64985] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Black & White","link":"gallery_64985.html","maxRecords":0.0,"photoIDs":[5624848.0,5814483.0,7353781.0,1990323.0,6676820.0,5426825.0,920707.0,6821974.0,3444953.0,2781909.0,7353767.0,980937.0,921577.0,5290321.0],"skipIndex":0,"section_code":"gallery","featured_images":6821974.0,"id":64985,"singleSection":false});				  						galleries[109084] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Winter","link":"gallery_109084.html","maxRecords":0.0,"photoIDs":[1715460.0,1803350.0,5290320.0,5624859.0,7057588.0,7057603.0,7116691.0,7171571.0,7171584.0,7171590.0,1598708.0,3279273.0,5426580.0,5527352.0,1598712.0,1719869.0,3279276.0,3279279.0,5426613.0,1430637.0,1990384.0,3279291.0,920824.0,1598716.0,1715452.0,3444950.0,3171413.0,3171417.0,3171421.0,3171425.0,3171427.0,3171434.0,3171438.0,3444931.0,3444989.0,3444932.0,3444990.0,3444933.0,3444954.0,5585484.0,3279260.0,3444951.0,3171409.0],"skipIndex":0,"section_code":"gallery","featured_images":7057588.0,"id":109084,"singleSection":false});				  						galleries[132506] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Orkney","link":"gallery_132506.html","maxRecords":0.0,"photoIDs":[5814448.0,5877280.0,6356522.0,6356526.0,1973480.0,1973562.0,1977953.0,1979336.0,1979341.0,1979358.0,1979359.0,1979362.0,1979365.0,1979370.0,1989878.0,1989886.0,1989898.0,1990028.0,1977968.0,1983833.0,1983844.0],"skipIndex":0,"section_code":"gallery","featured_images":1979362.0,"id":132506,"singleSection":false});				  						galleries[362369] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Flowers and Nature","link":"gallery_362369.html","maxRecords":0.0,"photoIDs":[6576628.0,7353263.0,7353266.0,7353272.0,7472347.0,3839861.0,6356528.0,7353667.0,6576629.0,7353653.0,6576654.0,6378265.0,7353279.0,7353285.0,7546493.0,7534044.0],"skipIndex":0,"section_code":"gallery","featured_images":"7353667,7353263","id":362369,"singleSection":false});				  						galleries[115281] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"New Images","link":"gallery_115281.html","maxRecords":0.0,"photoIDs":[8848055.0,8848057.0,8865510.0,8865515.0,8865521.0,8899763.0,9082432.0,9091251.0,8774817.0,8774546.0,8774781.0],"skipIndex":0,"section_code":"gallery","featured_images":"9091251,9082432,8899763,8865521,8865515,8865510,8848057,8848055,8774817,8774781","id":115281,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '9091251,9082432,8899763,7171590,7116691,8774546';
imageSets[2] = '8022547,7472249,7353263,7057588,7353667,1979362,6821974,4189737';
imageSets[3] = '9091251,9082432,8899763,8865521,8865515,8865510,8848057,8848055,8774817,8774781,8774546,8022558,8022547,7682525,7546493,7534044,7472363,7472347,7472330,7472328,7472322,7472316,7472249,7472244,7472241,7353781,7353767,7353667,7353653,7353285,7353279,7353272,7353266,7353263,7171590,7171584,7171571,7116691,7057603,7057588,7007643,6996885,6996876,6821978,6821974,6676820,6603101,6584135,6576654,6576629';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/HeatherL/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/HeatherL/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/HeatherL/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/HeatherL/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/HeatherL/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/HeatherL/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/HeatherL/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/HeatherL/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/HeatherL/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/HeatherL/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/HeatherL/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/HeatherL/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/HeatherL/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/HeatherL/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/HeatherL/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/HeatherL/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/HeatherL/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/HeatherL/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/HeatherL/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/HeatherL/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/HeatherL/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/HeatherL/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/HeatherL/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/HeatherL/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/HeatherL/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/HeatherL/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/HeatherL/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 = 'Highland Images: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
	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="HEATHERL">';
			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;
	}
}

			

