window.thumbnails = {};
thumbnails[7490904] = clik.newPhoto({"link":"photo_7490904.html","caption":"Living Room","height":90,"id":7490904,"server_id":31,"src":"living_room_thumb.jpg","galleries_id":399976,"width":130});
thumbnails[7537264] = clik.newPhoto({"link":"photo_7537264.html","caption":"First, a look round Waternish starting at The Fairy Bridge. Legend has it that if you first enter Waternish over the Fairy Bridge, then your heart will forever belong to Waternish","height":90,"id":7537264,"server_id":31,"src":"15_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7537265] = clik.newPhoto({"link":"photo_7537265.html","caption":"The Boy's Cairn or Cat Cairn, which has its own supernatural legend","height":90,"id":7537265,"server_id":31,"src":"16_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7490906] = clik.newPhoto({"link":"photo_7490906.html","caption":"Living Room","height":90,"id":7490906,"server_id":31,"src":"Living_Room_1_IMG_5255_thumb.jpg","galleries_id":399976,"width":130});
thumbnails[7437272] = clik.newPhoto({"link":"photo_7437272.html","caption":"Waternish, Isle of Skye","height":87,"id":7437272,"server_id":31,"src":"Masthead_shot_full_frame_IMG_13661234_thumb.jpg","galleries_id":399975,"width":130});
thumbnails[7490907] = clik.newPhoto({"link":"photo_7490907.html","caption":"Living Room","height":90,"id":7490907,"server_id":31,"src":"living_room_3_IMG_5258_thumb.jpg","galleries_id":399976,"width":130});
thumbnails[7532306] = clik.newPhoto({"link":"photo_7532306.html","caption":"The view from above Camuslusta","height":90,"id":7532306,"server_id":31,"src":"aboveCamuslusta_thumb.jpg","galleries_id":408348,"width":130});
thumbnails[7490903] = clik.newPhoto({"link":"photo_7490903.html","caption":"Kitchen","height":90,"id":7490903,"server_id":31,"src":"Kitchen_2_IMG_5259_thumb.jpg","galleries_id":399976,"width":130});
thumbnails[7490901] = clik.newPhoto({"link":"photo_7490901.html","caption":"Kitchen","height":90,"id":7490901,"server_id":31,"src":"Kitchen_1_IMG_5260_thumb.jpg","galleries_id":399976,"width":130});
thumbnails[7532308] = clik.newPhoto({"link":"photo_7532308.html","caption":"Stein and the view to the Outer Isles","height":90,"id":7532308,"server_id":31,"src":"BFrombythethatchedcottage_thumb.jpg","galleries_id":408348,"width":130});
thumbnails[7437279] = clik.newPhoto({"link":"photo_7437279.html","caption":" Stein - Waternish, Isle of Skye","height":87,"id":7437279,"server_id":31,"src":"Homepage_main_image_IMG_1341_thumb.jpg","galleries_id":399975,"width":130});
thumbnails[7532309] = clik.newPhoto({"link":"photo_7532309.html","caption":"Stein from the top road","height":90,"id":7532309,"server_id":31,"src":"CIMG_6494_thumb.jpg","galleries_id":408348,"width":130});
thumbnails[7537308] = clik.newPhoto({"link":"photo_7537308.html","caption":"Bay, the south end of Lochbay, a quiet , tranquil shore well worth a visit","height":90,"id":7537308,"server_id":31,"src":"301_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7531967] = clik.newPhoto({"link":"photo_7531967.html","caption":"Stein from the shore","height":87,"id":7531967,"server_id":31,"src":"Steinfromtheshore_thumb.jpg","galleries_id":399975,"width":130});
thumbnails[7490516] = clik.newPhoto({"link":"photo_7490516.html","caption":"Dining Room","height":90,"id":7490516,"server_id":31,"src":"Dining_Room_2_IMG_3934_thumb.jpg","galleries_id":399976,"width":130});
thumbnails[7532313] = clik.newPhoto({"link":"photo_7532313.html","caption":"Stein from by Fasach Gatehouse","height":90,"id":7532313,"server_id":31,"src":"DFromFasachGatehouse_thumb.jpg","galleries_id":408348,"width":130});
thumbnails[7537296] = clik.newPhoto({"link":"photo_7537296.html","caption":"Stein and Lochbay township from the shore at Bay","height":90,"id":7537296,"server_id":31,"src":"18_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7437292] = clik.newPhoto({"link":"photo_7437292.html","caption":"Stein - Waternish, Isle of Skye","height":87,"id":7437292,"server_id":31,"src":"IMG_6809_thumb.jpg","galleries_id":399975,"width":130});
thumbnails[7496522] = clik.newPhoto({"link":"photo_7496522.html","caption":"Dining Room","height":90,"id":7496522,"server_id":31,"src":"Dining_Room_1_IMG_52501_thumb.jpg","galleries_id":399976,"width":130});
thumbnails[7532322] = clik.newPhoto({"link":"photo_7532322.html","caption":"From the Boathouse track","height":90,"id":7532322,"server_id":31,"src":"Efromtheboathousetrack_thumb.jpg","galleries_id":408348,"width":130});
thumbnails[7537310] = clik.newPhoto({"link":"photo_7537310.html","caption":"Allt a' Chaim, the hill of the tinkers. one of the most spectacular panoramic views in all of Scotland","height":90,"id":7537310,"server_id":31,"src":"31_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7510024] = clik.newPhoto({"link":"photo_7510024.html","caption":"The Captain's House","height":87,"id":7510024,"server_id":31,"src":"IMG_6805_thumb.jpg","galleries_id":399975,"width":130});
thumbnails[7532081] = clik.newPhoto({"link":"photo_7532081.html","caption":"Stein sunset","height":87,"id":7532081,"server_id":31,"src":"Steinsunset_thumb.jpg","galleries_id":399975,"width":130});
thumbnails[7490565] = clik.newPhoto({"link":"photo_7490565.html","caption":"Double Bedroom","height":90,"id":7490565,"server_id":31,"src":"Double_bed_view_1_IMG_3941_thumb.jpg","galleries_id":399976,"width":130});
thumbnails[7532325] = clik.newPhoto({"link":"photo_7532325.html","caption":"Stein from the shore","height":90,"id":7532325,"server_id":31,"src":"FSteinfromshore_thumb.jpg","galleries_id":408348,"width":130});
thumbnails[7490898] = clik.newPhoto({"link":"photo_7490898.html","caption":"Double Bedroom","height":90,"id":7490898,"server_id":31,"src":"Double_bed_view_2_IMG_5264_thumb.jpg","galleries_id":399976,"width":130});
thumbnails[7532335] = clik.newPhoto({"link":"photo_7532335.html","caption":"Stein and surroundings from the shore","height":90,"id":7532335,"server_id":31,"src":"GIMG_2712_thumb.jpg","galleries_id":408348,"width":130});
thumbnails[7537313] = clik.newPhoto({"link":"photo_7537313.html","caption":"Soon after Allt a' Chaim, by the thatched cottage in Lochbay, comes the second great Waternish panorama, the view out over Stein to the Minch and Outer Isles","height":90,"id":7537313,"server_id":31,"src":"29_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7532343] = clik.newPhoto({"link":"photo_7532343.html","caption":"Stein panorama","height":90,"id":7532343,"server_id":31,"src":"HIMG_1294_thumb.jpg","galleries_id":408348,"width":130});
thumbnails[7537316] = clik.newPhoto({"link":"photo_7537316.html","caption":"The view back of Lochbay township from the road down to Stein","height":90,"id":7537316,"server_id":31,"src":"341_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7532345] = clik.newPhoto({"link":"photo_7532345.html","caption":"Stein from the Old Jetty","height":89,"id":7532345,"server_id":31,"src":"IIMG_1300_thumb.jpg","galleries_id":408348,"width":130});
thumbnails[7537318] = clik.newPhoto({"link":"photo_7537318.html","caption":"Past Stein and looking west over Fasach park","height":90,"id":7537318,"server_id":31,"src":"28_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7532353] = clik.newPhoto({"link":"photo_7532353.html","caption":"Looking down the loch from the Old Jetty","height":90,"id":7532353,"server_id":31,"src":"JIMG_1301_thumb.jpg","galleries_id":408348,"width":130});
thumbnails[7532350] = clik.newPhoto({"link":"photo_7532350.html","caption":"Stein Inn and West House","height":90,"id":7532350,"server_id":31,"src":"innNhouse2_thumb.jpg","galleries_id":408348,"width":130});
thumbnails[7537321] = clik.newPhoto({"link":"photo_7537321.html","caption":"Storm clouds over the Minch, seen from between Fasach and the War Memorial","height":90,"id":7537321,"server_id":31,"src":"2_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7537324] = clik.newPhoto({"link":"photo_7537324.html","caption":"Looking back towards Fasach from the War Memorial","height":90,"id":7537324,"server_id":31,"src":"14_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7532358] = clik.newPhoto({"link":"photo_7532358.html","caption":"Looking towards the Boathouse","height":90,"id":7532358,"server_id":31,"src":"M014_11A_thumb.jpg","galleries_id":408348,"width":130});
thumbnails[7532364] = clik.newPhoto({"link":"photo_7532364.html","caption":"A walk down the village, starting at West House with the inn beyond","height":90,"id":7532364,"server_id":31,"src":"NIMG_2677_thumb.jpg","galleries_id":408348,"width":130});
thumbnails[7537332] = clik.newPhoto({"link":"photo_7537332.html","caption":"Travelling north along the Waternish road , spectacular views out across the Minch continue to unfold, ","height":90,"id":7537332,"server_id":31,"src":"27_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7532370] = clik.newPhoto({"link":"photo_7532370.html","caption":"Looking up the hill from West House","height":90,"id":7532370,"server_id":31,"src":"OIMG_6839_thumb.jpg","galleries_id":408348,"width":130});
thumbnails[7537333] = clik.newPhoto({"link":"photo_7537333.html","caption":"Looking north from Dunhallin to Upper Halistra","height":90,"id":7537333,"server_id":31,"src":"21_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7490913] = clik.newPhoto({"link":"photo_7490913.html","caption":"Twin Bedroom","height":90,"id":7490913,"server_id":31,"src":"Twin_bed_view_3_IMG_3939_thumb.jpg","galleries_id":399976,"width":130});
thumbnails[7532376] = clik.newPhoto({"link":"photo_7532376.html","caption":"Stein Inn and the village","height":90,"id":7532376,"server_id":31,"src":"PIMG_2671_thumb.jpg","galleries_id":408348,"width":130});
thumbnails[7537334] = clik.newPhoto({"link":"photo_7537334.html","caption":"......and a little further along, Upper Halistra and the road to Carnach","height":90,"id":7537334,"server_id":31,"src":"22_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7490916] = clik.newPhoto({"link":"photo_7490916.html","caption":"Twin Bedroom","height":90,"id":7490916,"server_id":31,"src":"Twin_bedroom_view_2_IMG_5266_thumb.jpg","galleries_id":399976,"width":130});
thumbnails[7532385] = clik.newPhoto({"link":"photo_7532385.html","caption":"Stein Inn from the south","height":90,"id":7532385,"server_id":31,"src":"RInnnewextension_thumb.jpg","galleries_id":408348,"width":130});
thumbnails[7537337] = clik.newPhoto({"link":"photo_7537337.html","caption":"Carnach seen from the lower parks of Dunhallin","height":90,"id":7537337,"server_id":31,"src":"6_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7496499] = clik.newPhoto({"link":"photo_7496499.html","caption":"Bathroom","height":195,"id":7496499,"server_id":31,"src":"IMG_3567_thumb.jpg","galleries_id":399976,"width":130});
thumbnails[7532387] = clik.newPhoto({"link":"photo_7532387.html","caption":"The Captains House","height":90,"id":7532387,"server_id":31,"src":"SIMG_6843_thumb.jpg","galleries_id":408348,"width":130});
thumbnails[7537339] = clik.newPhoto({"link":"photo_7537339.html","caption":"During the summer, there is an abundance of orchids on the crofts","height":90,"id":7537339,"server_id":31,"src":"3_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7496502] = clik.newPhoto({"link":"photo_7496502.html","caption":"Bathroom","height":212,"id":7496502,"server_id":31,"src":"IMG_3568_thumb.jpg","galleries_id":399976,"width":130});
thumbnails[7532391] = clik.newPhoto({"link":"photo_7532391.html","caption":"The Captains house and Isay Cottage","height":90,"id":7532391,"server_id":31,"src":"TIMG_6844_thumb.jpg","galleries_id":408348,"width":130});
thumbnails[7496512] = clik.newPhoto({"link":"photo_7496512.html","caption":"Shower Room","height":130,"id":7496512,"server_id":31,"src":"shower_IMG_52541_thumb.jpg","galleries_id":399976,"width":87});
thumbnails[7532395] = clik.newPhoto({"link":"photo_7532395.html","caption":"The Old Post Office and the view north down the village","height":90,"id":7532395,"server_id":31,"src":"UIMG6845_thumb.jpg","galleries_id":408348,"width":130});
thumbnails[7537341] = clik.newPhoto({"link":"photo_7537341.html","caption":"The view north west from Hallin Park","height":90,"id":7537341,"server_id":31,"src":"24_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7537359] = clik.newPhoto({"link":"photo_7537359.html","caption":"The weather can be quite spectacular............","height":90,"id":7537359,"server_id":31,"src":"32_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7532398] = clik.newPhoto({"link":"photo_7532398.html","caption":"The southern part of MacLeod's Terrace","height":90,"id":7532398,"server_id":31,"src":"VSouthpartofMacleodsTerrace_thumb.jpg","galleries_id":408348,"width":130});
thumbnails[7537346] = clik.newPhoto({"link":"photo_7537346.html","caption":"The traditional crofting township of Geary on the north east coast of Waternish","height":90,"id":7537346,"server_id":31,"src":"23_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7532401] = clik.newPhoto({"link":"photo_7532401.html","caption":"Lochbay Seafood restaurant and south Stein","height":90,"id":7532401,"server_id":31,"src":"WSteinsouthend_thumb.jpg","galleries_id":408348,"width":130});
thumbnails[7537354] = clik.newPhoto({"link":"photo_7537354.html","caption":"North east Waternish, Gillen and Geary from the clifftop walk at Scorr Bay","height":90,"id":7537354,"server_id":31,"src":"13_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7532404] = clik.newPhoto({"link":"photo_7532404.html","caption":"Stein from the old ruin","height":90,"id":7532404,"server_id":31,"src":"Steinfromruin1_thumb.jpg","galleries_id":408348,"width":130});
thumbnails[7537363] = clik.newPhoto({"link":"photo_7537363.html","caption":"Scorr bay looking south and Loch Snizort","height":90,"id":7537363,"server_id":31,"src":"33_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7532411] = clik.newPhoto({"link":"photo_7532411.html","caption":"Stein in the snow, West House and the village","height":90,"id":7532411,"server_id":31,"src":"XIMG_6766_thumb.jpg","galleries_id":408348,"width":130});
thumbnails[7532420] = clik.newPhoto({"link":"photo_7532420.html","caption":"Looking north from West House","height":90,"id":7532420,"server_id":31,"src":"YIMG_6769_thumb.jpg","galleries_id":408348,"width":130});
thumbnails[7537361] = clik.newPhoto({"link":"photo_7537361.html","caption":"The view back down Lochbay from Ardmore","height":90,"id":7537361,"server_id":31,"src":"25_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7532443] = clik.newPhoto({"link":"photo_7532443.html","caption":"Waternish sunset","height":90,"id":7532443,"server_id":31,"src":"ZZSteinsunset10_thumb.jpg","galleries_id":408348,"width":130});
thumbnails[7537364] = clik.newPhoto({"link":"photo_7537364.html","caption":"Trumpan Church, a wild and windy place..........","height":90,"id":7537364,"server_id":31,"src":"20_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7537365] = clik.newPhoto({"link":"photo_7537365.html","caption":"Trumpan again, a scene of massacres and plots............","height":90,"id":7537365,"server_id":31,"src":"1_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7537367] = clik.newPhoto({"link":"photo_7537367.html","caption":"The Trial Stone, if you can put your finger in the hole, blinfolded, you're innocent. If not,  Hangman's Knoll is not far away.............","height":90,"id":7537367,"server_id":31,"src":"19_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7537370] = clik.newPhoto({"link":"photo_7537370.html","caption":"Near Waternish Point are the ruins of Unish House, reputedly the first proper house on Skye","height":90,"id":7537370,"server_id":31,"src":"5_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7537371] = clik.newPhoto({"link":"photo_7537371.html","caption":"We don't get much snow, but when we do, it's spectacular...","height":90,"id":7537371,"server_id":31,"src":"12_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7537374] = clik.newPhoto({"link":"photo_7537374.html","caption":"...........and the sky can be amazing........","height":90,"id":7537374,"server_id":31,"src":"7_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7537373] = clik.newPhoto({"link":"photo_7537373.html","caption":"Lochbay township in snow","height":90,"id":7537373,"server_id":31,"src":"9_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7537375] = clik.newPhoto({"link":"photo_7537375.html","caption":"Snowscene from Hallin Park","height":90,"id":7537375,"server_id":31,"src":"10_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7537380] = clik.newPhoto({"link":"photo_7537380.html","caption":"Looking north from Dunhallin","height":90,"id":7537380,"server_id":31,"src":"11_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7537388] = clik.newPhoto({"link":"photo_7537388.html","caption":".......and down towards Carnach.......","height":90,"id":7537388,"server_id":31,"src":"35_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7537381] = clik.newPhoto({"link":"photo_7537381.html","caption":"Waternish is famed for its sunsets....this is the classic view from Allt a Chaim","height":90,"id":7537381,"server_id":31,"src":"36_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7537382] = clik.newPhoto({"link":"photo_7537382.html","caption":".........but the sunsets are good wherever you are on Waternish............","height":90,"id":7537382,"server_id":31,"src":"26_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7537383] = clik.newPhoto({"link":"photo_7537383.html","caption":".....and after the sunset, what better accompliment is there..........","height":90,"id":7537383,"server_id":31,"src":"17_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7537385] = clik.newPhoto({"link":"photo_7537385.html","caption":"......than a generous dram of Talisker, our local brew..........","height":90,"id":7537385,"server_id":31,"src":"4_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7539728] = clik.newPhoto({"link":"photo_7539728.html","caption":"Then a brief tour of Skye, starting in the centre at the Cuillins","height":90,"id":7539728,"server_id":31,"src":"23a_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7542148] = clik.newPhoto({"link":"photo_7542148.html","caption":".....north through Portree, looking back to the Cuillins from the Meall","height":90,"id":7542148,"server_id":31,"src":"19a_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7539733] = clik.newPhoto({"link":"photo_7539733.html","caption":"...carrying on north up Totternish to the Quiraing","height":90,"id":7539733,"server_id":31,"src":"1a_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7539734] = clik.newPhoto({"link":"photo_7539734.html","caption":"Trotternish Ridge","height":91,"id":7539734,"server_id":31,"src":"17a_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7539750] = clik.newPhoto({"link":"photo_7539750.html","caption":"The north end of Trotternish Ridge","height":90,"id":7539750,"server_id":31,"src":"5a1_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7539751] = clik.newPhoto({"link":"photo_7539751.html","caption":"Then south to The Old Man of Storr","height":90,"id":7539751,"server_id":31,"src":"25a_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7539736] = clik.newPhoto({"link":"photo_7539736.html","caption":"....now heading west towards MacLeod's Tables","height":90,"id":7539736,"server_id":31,"src":"9a_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7539738] = clik.newPhoto({"link":"photo_7539738.html","caption":"Continuing west, looking towards Colbost and the road to Glendale","height":90,"id":7539738,"server_id":31,"src":"12a_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7539739] = clik.newPhoto({"link":"photo_7539739.html","caption":"Fasach in Glendale","height":89,"id":7539739,"server_id":31,"src":"2a_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7539929] = clik.newPhoto({"link":"photo_7539929.html","caption":"Skye's western most spot, Neist Point , the lighthouse and Waterstein Head","height":90,"id":7539929,"server_id":31,"src":"7a_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7539740] = clik.newPhoto({"link":"photo_7539740.html","caption":"Looking across Loch Dunvegan from Galtrigill towards Waternish and Stein","height":90,"id":7539740,"server_id":31,"src":"14a_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7539741] = clik.newPhoto({"link":"photo_7539741.html","caption":"Looking south across Husabost towards Dunvegan","height":90,"id":7539741,"server_id":31,"src":"22a_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7539948] = clik.newPhoto({"link":"photo_7539948.html","caption":"Dunvegan Castle, home of MacLeod of MacLeod for over 1000 years","height":96,"id":7539948,"server_id":31,"src":"8a_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7539964] = clik.newPhoto({"link":"photo_7539964.html","caption":"Starting to head east but looking back towards a moody Roag and MacLeods Tables","height":90,"id":7539964,"server_id":31,"src":"10a_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7539967] = clik.newPhoto({"link":"photo_7539967.html","caption":"........and catching another mood of Skye, the Tables in December","height":90,"id":7539967,"server_id":31,"src":"11a_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7539732] = clik.newPhoto({"link":"photo_7539732.html","caption":"Continuing east and looking  down Loch Harport to the Cuillins","height":90,"id":7539732,"server_id":31,"src":"4b_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7539989] = clik.newPhoto({"link":"photo_7539989.html","caption":"Detouring into Minginish to Fiscavaig and looking towards MacLeod's Maidens","height":90,"id":7539989,"server_id":31,"src":"15a_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7542133] = clik.newPhoto({"link":"photo_7542133.html","caption":"St Maelrubha's Chapel by Loch Eynort has a legend of its own","height":90,"id":7542133,"server_id":31,"src":"20a_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7542138] = clik.newPhoto({"link":"photo_7542138.html","caption":"..........and back to the Cuillins, seen here from Drynoch","height":90,"id":7542138,"server_id":31,"src":"24a_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7542169] = clik.newPhoto({"link":"photo_7542169.html","caption":"Cuillins moods from Sligachan","height":90,"id":7542169,"server_id":31,"src":"6a1_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7542178] = clik.newPhoto({"link":"photo_7542178.html","caption":"....now heading towards Elgol and lingering on the shore of Loch Slapin with Blaven in the background","height":90,"id":7542178,"server_id":31,"src":"18a_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7542182] = clik.newPhoto({"link":"photo_7542182.html","caption":".....on to the shore at Elgol and one of the classic views of the Cuillins","height":90,"id":7542182,"server_id":31,"src":"16a_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7542261] = clik.newPhoto({"link":"photo_7542261.html","caption":"Then down into Sleat to Camus Cross","height":90,"id":7542261,"server_id":31,"src":"21a_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7542283] = clik.newPhoto({"link":"photo_7542283.html","caption":".....and down towards Aird of Sleat, looking north here over Tormore and the Sound of Sleat to Sandaig - Gavin Maxwell's Camusfearna","height":90,"id":7542283,"server_id":31,"src":"13a_thumb.jpg","galleries_id":408366,"width":130});
thumbnails[7542285] = clik.newPhoto({"link":"photo_7542285.html","caption":"Finally to leave over the Skye Bridge, seen here with PS Waverley, the last ocean going paddle steamer in the world and a regular visitor to Skye","height":90,"id":7542285,"server_id":31,"src":"4a_thumb.jpg","galleries_id":408366,"width":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
galleries[399975] = clik.newGallery({"photoIDs":[7437272,7437279,7531967,7437292,7510024,7532081],"link":"gallery_399975.html","skipIndex":0,"section_code":"gallery","id":399975,"parentGallery":"","featured_images":"7532081,7531967,7510024,7437292,7437279,7437272","maxRecords":0,"usePopups":true,"singleSection":false,"title":"HomePage"});galleries[408348] = clik.newGallery({"photoIDs":[7532306,7532308,7532309,7532313,7532322,7532325,7532335,7532343,7532345,7532353,7532350,7532358,7532364,7532370,7532376,7532385,7532387,7532391,7532395,7532398,7532401,7532404,7532411,7532420,7532443],"link":"gallery_408348.html","skipIndex":0,"section_code":"gallery","id":408348,"parentGallery":"","featured_images":"7532443,7532420,7532411,7532404,7532401,7532398,7532395,7532391,7532387,7532385","maxRecords":0,"usePopups":true,"singleSection":false,"title":"History"});galleries[399976] = clik.newGallery({"photoIDs":[7490904,7490906,7490907,7490903,7490901,7490516,7496522,7490565,7490898,7490913,7490916,7496499,7496502,7496512],"link":"gallery_399976.html","skipIndex":0,"section_code":"gallery","id":399976,"parentGallery":"","featured_images":"7496522,7496512,7496502,7496499,7490916,7490913,7490907,7490906,7490904,7490903","maxRecords":0,"usePopups":true,"singleSection":false,"title":"Inside the apartment"});galleries[408366] = clik.newGallery({"photoIDs":[7537264,7537265,7537308,7537296,7537310,7537313,7537316,7537318,7537321,7537324,7537332,7537333,7537334,7537337,7537339,7537341,7537359,7537346,7537354,7537363,7537361,7537364,7537365,7537367,7537370,7537371,7537374,7537373,7537375,7537380,7537388,7537381,7537382,7537383,7537385,7539728,7542148,7539733,7539734,7539750,7539751,7539736,7539738,7539739,7539929,7539740,7539741,7539948,7539964,7539967,7539732,7539989,7542133,7542138,7542169,7542178,7542182,7542261,7542283,7542285],"link":"gallery_408366.html","skipIndex":0,"section_code":"gallery","id":408366,"parentGallery":"","featured_images":"7542285,7542283,7542261,7542182,7542178,7542169,7542148,7542138,7542133,7539989","maxRecords":0,"usePopups":true,"singleSection":false,"title":"Locale Page"});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[3] = '7542285,7542283,7542261,7542182,7542178,7542169,7542148,7542138,7542133,7539989,7539967,7539964,7539948,7539929,7539751,7539750,7539741,7539740,7539739,7539738,7539736,7539734,7539733,7539732,7539728,7537388,7537385,7537383,7537382,7537381,7537380,7537375,7537374,7537373,7537371,7537370,7537367,7537365,7537364,7537363,7537361,7537359,7537354,7537346,7537341,7537339,7537337,7537334,7537333,7537332';
imageSets[1] = '7542285,7542283,7542261,7542182,7542178,7542169,7542148,7542138,7542133,7539989,7539967,7539964,7539948,7539929,7539751,7539750,7539741,7539740,7539739,7539738,7539736,7539734,7539733,7539732,7539728,7537388,7537385,7537383,7537382,7537381,7537380,7537375,7537374,7537373,7537371,7537370,7537367,7537365,7537364,7537363,7537361,7537359,7537354,7537346,7537341,7537339,7537337,7537334,7537333,7537332';
imageSets[240593] = '7532306,7532308,7532309,7532313,7532322,7532325,7532335,7532343,7532345,7532353,7532350,7532358,7532364,7532370,7532376,7532385,7532387,7532391,7532395,7532398,7532401,7532404,7532411,7532420,7532443';
imageSets[240341] = '7490904,7490906,7490907,7490903,7490901,7490516,7496522,7490565,7490898,7490913,7490916';
imageSets[239585] = '7437272,7437279,7531967,7437292,7510024,7532081';
imageSets[240595] = '7537264,7537265,7537308,7537296,7537310,7537313,7537316,7537318,7537321,7537324,7537332,7537333,7537334,7537337,7537339,7537341,7537359,7537346,7537354,7537363,7537361,7537364,7537365,7537367,7537370,7537371,7537374,7537373,7537375,7537380,7537388,7537381,7537382,7537383,7537385,7539728,7542148,7539733,7539734,7539750,7539751,7539736,7539738,7539739,7539929,7539740,7539741,7539948,7539964,7539967,7539732,7539989,7542133,7542169,7542178,7542182,7542261,7542283,7542285';
imageSets[240345] = '7490904,7490906,7490907,7490903,7490901,7490516,7496522,7490565,7490898,7490913,7490916,7496499,7496502,7496512';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/jbiscoe/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/jbiscoe/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/jbiscoe/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/jbiscoe/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/jbiscoe/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/jbiscoe/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/jbiscoe/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/jbiscoe/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/jbiscoe/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/jbiscoe/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/jbiscoe/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/jbiscoe/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/jbiscoe/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/jbiscoe/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/jbiscoe/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/jbiscoe/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/jbiscoe/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/jbiscoe/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/jbiscoe/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/jbiscoe/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/jbiscoe/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/jbiscoe/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/jbiscoe/images';
		break;
	}
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/jbiscoe/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/jbiscoe/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/jbiscoe/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/jbiscoe/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 = 'The Captain\'s House: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
			
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
			temp += '<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;
	}
}

		

