window.thumbnails = {};
															thumbnails[8249963] = clik.newPhoto({"id":8249963,"src":"2010_0822SFSAug100015_thumb.JPG","galleries_id":"","server_id":19,"link":"#","width":130,"caption":"Gladioli","height":173});
															thumbnails[8261462] = clik.newPhoto({"id":8261462,"src":"Aprilmay2011_054_thumb.jpg","galleries_id":"","server_id":19,"link":"#","width":130,"caption":"Multi-headed Daisy","height":109});
															thumbnails[846880] = clik.newPhoto({"id":846880,"src":"09970003_thumb.jpg","galleries_id":65301,"server_id":18,"link":"photo_846880.html","width":130,"caption":"Shell Beach","height":196});
															thumbnails[846886] = clik.newPhoto({"id":846886,"src":"fb3_thumb.jpg","galleries_id":65301,"server_id":18,"link":"photo_846886.html","width":130,"caption":"Creels","height":93});
															thumbnails[846892] = clik.newPhoto({"id":846892,"src":"09970006_thumb.jpg","galleries_id":65249,"server_id":18,"link":"photo_846892.html","width":130,"caption":"Bluebell Copse","height":86});
															thumbnails[846894] = clik.newPhoto({"id":846894,"src":"09970002_thumb.jpg","galleries_id":65249,"server_id":18,"link":"photo_846894.html","width":130,"caption":"Buttercup Meadow","height":196});
															thumbnails[846897] = clik.newPhoto({"id":846897,"src":"09970004_thumb.jpg","galleries_id":65249,"server_id":18,"link":"photo_846897.html","width":130,"caption":"Sky Feathers","height":86});
															thumbnails[846901] = clik.newPhoto({"id":846901,"src":"09970005_thumb.jpg","galleries_id":65948,"server_id":18,"link":"photo_846901.html","width":130,"caption":"Lone Cloud","height":86});
															thumbnails[846904] = clik.newPhoto({"id":846904,"src":"09970007_thumb.jpg","galleries_id":65301,"server_id":18,"link":"photo_846904.html","width":130,"caption":"Dawn on the Loch","height":196});
															thumbnails[846907] = clik.newPhoto({"id":846907,"src":"13060002_thumb.jpg","galleries_id":65249,"server_id":18,"link":"photo_846907.html","width":130,"caption":"Highland Dawn","height":196});
															thumbnails[846911] = clik.newPhoto({"id":846911,"src":"13060001_thumb.jpg","galleries_id":65948,"server_id":18,"link":"photo_846911.html","width":130,"caption":"Tarbert Series","height":86});
															thumbnails[846919] = clik.newPhoto({"id":846919,"src":"13060004_thumb.jpg","galleries_id":65301,"server_id":18,"link":"photo_846919.html","width":130,"caption":"Light fingered","height":86});
															thumbnails[846922] = clik.newPhoto({"id":846922,"src":"13060005_thumb.jpg","galleries_id":65948,"server_id":18,"link":"photo_846922.html","width":130,"caption":"Frosty Shores","height":86});
															thumbnails[846925] = clik.newPhoto({"id":846925,"src":"13060006_thumb.jpg","galleries_id":65948,"server_id":18,"link":"photo_846925.html","width":130,"caption":"Islay Sunset","height":86});
															thumbnails[846928] = clik.newPhoto({"id":846928,"src":"62900006_thumb.jpg","galleries_id":65301,"server_id":18,"link":"photo_846928.html","width":130,"caption":"Crinan Old Boat House","height":196});
															thumbnails[846934] = clik.newPhoto({"id":846934,"src":"62900013_thumb.jpg","galleries_id":65948,"server_id":18,"link":"photo_846934.html","width":130,"caption":"Sundown","height":84});
															thumbnails[846936] = clik.newPhoto({"id":846936,"src":"62900015_thumb.jpg","galleries_id":65948,"server_id":18,"link":"photo_846936.html","width":130,"caption":"Perfect evening","height":86});
															thumbnails[846946] = clik.newPhoto({"id":846946,"src":"62900020_thumb.jpg","galleries_id":65948,"server_id":18,"link":"photo_846946.html","width":130,"caption":"Ronachan rocks","height":84});
															thumbnails[846948] = clik.newPhoto({"id":846948,"src":"62900027_thumb.jpg","galleries_id":65948,"server_id":18,"link":"photo_846948.html","width":130,"caption":"Ardrishaig Anchor","height":86});
															thumbnails[846951] = clik.newPhoto({"id":846951,"src":"62900038_thumb.jpg","galleries_id":65249,"server_id":18,"link":"photo_846951.html","width":130,"caption":"West Loch Reflection","height":86});
															thumbnails[846953] = clik.newPhoto({"id":846953,"src":"75900021_thumb.jpg","galleries_id":65948,"server_id":18,"link":"photo_846953.html","width":130,"caption":"Winter Surf","height":86});
															thumbnails[846957] = clik.newPhoto({"id":846957,"src":"75900029_thumb.jpg","galleries_id":65948,"server_id":18,"link":"photo_846957.html","width":130,"caption":"Sunlit Sands","height":196});
															thumbnails[846964] = clik.newPhoto({"id":846964,"src":"75900028_thumb.jpg","galleries_id":65948,"server_id":18,"link":"photo_846964.html","width":130,"caption":"Sand, Sea and Surf","height":196});
															thumbnails[846972] = clik.newPhoto({"id":846972,"src":"75900037_thumb.jpg","galleries_id":65948,"server_id":18,"link":"photo_846972.html","width":130,"caption":"West Loch Winter","height":86});
															thumbnails[846978] = clik.newPhoto({"id":846978,"src":"75910020_thumb.jpg","galleries_id":65301,"server_id":18,"link":"photo_846978.html","width":130,"caption":"Lochside Rainbow","height":197});
															thumbnails[846982] = clik.newPhoto({"id":846982,"src":"75910022_thumb.jpg","galleries_id":65301,"server_id":18,"link":"photo_846982.html","width":130,"caption":"Flying Colours","height":196});
															thumbnails[846985] = clik.newPhoto({"id":846985,"src":"75910025_thumb.jpg","galleries_id":65948,"server_id":18,"link":"photo_846985.html","width":130,"caption":"Morning Cloud LS","height":86});
															thumbnails[846990] = clik.newPhoto({"id":846990,"src":"75910027_thumb.jpg","galleries_id":65948,"server_id":18,"link":"photo_846990.html","width":130,"caption":"Morning Cloud (P)","height":196});
															thumbnails[846995] = clik.newPhoto({"id":846995,"src":"75910031_thumb.jpg","galleries_id":65948,"server_id":18,"link":"photo_846995.html","width":130,"caption":"Washed","height":196});
															thumbnails[846997] = clik.newPhoto({"id":846997,"src":"75910032_thumb.jpg","galleries_id":65301,"server_id":18,"link":"photo_846997.html","width":130,"caption":"Touchdown","height":196});
															thumbnails[846999] = clik.newPhoto({"id":846999,"src":"75910037_thumb.jpg","galleries_id":65948,"server_id":18,"link":"photo_846999.html","width":130,"caption":"West Loch Evening","height":86});
															thumbnails[847006] = clik.newPhoto({"id":847006,"src":"fb1_thumb.jpg","galleries_id":65249,"server_id":18,"link":"photo_847006.html","width":130,"caption":"Loch Reflection","height":93});
															thumbnails[847008] = clik.newPhoto({"id":847008,"src":"fb2_thumb.jpg","galleries_id":65301,"server_id":18,"link":"photo_847008.html","width":130,"caption":"Viking Lady","height":184});
															thumbnails[847009] = clik.newPhoto({"id":847009,"src":"fb4_thumb.jpg","galleries_id":65948,"server_id":18,"link":"photo_847009.html","width":130,"caption":"Gigha in Highlight","height":93});
															thumbnails[847012] = clik.newPhoto({"id":847012,"src":"fb5_thumb.jpg","galleries_id":65301,"server_id":18,"link":"photo_847012.html","width":130,"caption":"Cloud on the Loch","height":92});
															thumbnails[847015] = clik.newPhoto({"id":847015,"src":"fb6_thumb.jpg","galleries_id":65301,"server_id":18,"link":"photo_847015.html","width":130,"caption":"Crinan Mist","height":183});
															thumbnails[847020] = clik.newPhoto({"id":847020,"src":"fb7_thumb.jpg","galleries_id":65249,"server_id":18,"link":"photo_847020.html","width":130,"caption":"West Loch Blue","height":92});
															thumbnails[847022] = clik.newPhoto({"id":847022,"src":"fb8_thumb.jpg","galleries_id":65249,"server_id":18,"link":"photo_847022.html","width":130,"caption":"Last Light","height":93});
															thumbnails[885478] = clik.newPhoto({"id":885478,"src":"08560011_thumb.jpg","galleries_id":65249,"server_id":18,"link":"photo_885478.html","width":130,"caption":"Glen Coe Burn","height":86});
															thumbnails[885481] = clik.newPhoto({"id":885481,"src":"08560019_thumb.jpg","galleries_id":65948,"server_id":18,"link":"photo_885481.html","width":130,"caption":"Last Ferry","height":86});
															thumbnails[885485] = clik.newPhoto({"id":885485,"src":"130600031_thumb.jpg","galleries_id":65948,"server_id":18,"link":"photo_885485.html","width":130,"caption":"North from Tarbert","height":86});
															thumbnails[885486] = clik.newPhoto({"id":885486,"src":"47020002_thumb.jpg","galleries_id":65948,"server_id":18,"link":"photo_885486.html","width":130,"caption":"Quay Reflection","height":86});
															thumbnails[885487] = clik.newPhoto({"id":885487,"src":"47020003_thumb.jpg","galleries_id":65948,"server_id":18,"link":"photo_885487.html","width":130,"caption":"Winter Shores","height":86});
															thumbnails[885490] = clik.newPhoto({"id":885490,"src":"47020008_thumb.jpg","galleries_id":65301,"server_id":18,"link":"photo_885490.html","width":130,"caption":"Shell Beach Tarbert","height":86});
															thumbnails[885491] = clik.newPhoto({"id":885491,"src":"47020009_thumb.jpg","galleries_id":65301,"server_id":18,"link":"photo_885491.html","width":130,"caption":"The Waverley","height":86});
															thumbnails[885492] = clik.newPhoto({"id":885492,"src":"47020014_thumb.jpg","galleries_id":65301,"server_id":18,"link":"photo_885492.html","width":130,"caption":"'Leap Frog'","height":196});
															thumbnails[885493] = clik.newPhoto({"id":885493,"src":"63090003_thumb.jpg","galleries_id":65301,"server_id":18,"link":"photo_885493.html","width":130,"caption":"Tarbert Castle","height":86});
															thumbnails[885495] = clik.newPhoto({"id":885495,"src":"63090004_thumb.jpg","galleries_id":65301,"server_id":18,"link":"photo_885495.html","width":130,"caption":"London Eye","height":196});
															thumbnails[885496] = clik.newPhoto({"id":885496,"src":"63090005_thumb.jpg","galleries_id":65249,"server_id":18,"link":"photo_885496.html","width":130,"caption":"Winter Glen","height":86});
															thumbnails[885497] = clik.newPhoto({"id":885497,"src":"63090006_thumb.jpg","galleries_id":65249,"server_id":18,"link":"photo_885497.html","width":130,"caption":"Beinn Ime","height":86});
															thumbnails[1166287] = clik.newPhoto({"id":1166287,"src":"97740012_thumb.jpg","galleries_id":65948,"server_id":18,"link":"photo_1166287.html","width":130,"caption":"Nature Filtered","height":84});
															thumbnails[1166289] = clik.newPhoto({"id":1166289,"src":"97740032_thumb.jpg","galleries_id":65948,"server_id":18,"link":"photo_1166289.html","width":130,"caption":"Misty Morning","height":193});
															thumbnails[1436316] = clik.newPhoto({"id":1436316,"src":"23310035_thumb.jpg","galleries_id":65301,"server_id":18,"link":"photo_1436316.html","width":130,"caption":"Harbour Sentinels","height":86});
															thumbnails[1436320] = clik.newPhoto({"id":1436320,"src":"39640010_thumb.jpg","galleries_id":65249,"server_id":18,"link":"photo_1436320.html","width":130,"caption":"Springbank","height":196});
															thumbnails[1436321] = clik.newPhoto({"id":1436321,"src":"39640020_thumb.jpg","galleries_id":65301,"server_id":18,"link":"photo_1436321.html","width":130,"caption":"Sustainable Foresting","height":86});
															thumbnails[1436327] = clik.newPhoto({"id":1436327,"src":"39650033_thumb.jpg","galleries_id":65249,"server_id":18,"link":"photo_1436327.html","width":130,"caption":"Bluebell Wood","height":86});
															thumbnails[1436332] = clik.newPhoto({"id":1436332,"src":"57850036_thumb.jpg","galleries_id":65249,"server_id":18,"link":"photo_1436332.html","width":130,"caption":"Church View","height":86});
															thumbnails[1436340] = clik.newPhoto({"id":1436340,"src":"79830009_thumb.jpg","galleries_id":65948,"server_id":18,"link":"photo_1436340.html","width":130,"caption":"Summer Serene","height":196});
															thumbnails[1436344] = clik.newPhoto({"id":1436344,"src":"79830016_thumb.jpg","galleries_id":65249,"server_id":18,"link":"photo_1436344.html","width":130,"caption":"Buttercup Shore","height":84});
															thumbnails[1436349] = clik.newPhoto({"id":1436349,"src":"79830017_thumb.jpg","galleries_id":65249,"server_id":18,"link":"photo_1436349.html","width":130,"caption":"Buttercup Field","height":84});
															thumbnails[1436359] = clik.newPhoto({"id":1436359,"src":"79830038_thumb.jpg","galleries_id":65948,"server_id":18,"link":"photo_1436359.html","width":130,"caption":"Crinan Lighthouse","height":196});
															thumbnails[1506710] = clik.newPhoto({"id":1506710,"src":"S4023345_thumb.JPG","galleries_id":73653,"server_id":18,"link":"photo_1506710.html","width":130,"caption":"Limed wood as a nice alternative.","height":186});
															thumbnails[1506716] = clik.newPhoto({"id":1506716,"src":"S4023346_thumb.JPG","galleries_id":73653,"server_id":18,"link":"photo_1506716.html","width":130,"caption":"Another example of a limed wood frame.","height":110});
															thumbnails[1591893] = clik.newPhoto({"id":1591893,"src":"04550011_thumb.jpg","galleries_id":65948,"server_id":18,"link":"photo_1591893.html","width":130,"caption":"Autumn Mist - Tarbert","height":86});
															thumbnails[1591898] = clik.newPhoto({"id":1591898,"src":"04550017_thumb.jpg","galleries_id":65948,"server_id":18,"link":"photo_1591898.html","width":130,"caption":"Bearded Rocks","height":196});
															thumbnails[1591908] = clik.newPhoto({"id":1591908,"src":"04550019_thumb.jpg","galleries_id":65948,"server_id":18,"link":"photo_1591908.html","width":130,"caption":"View to the Mull","height":86});
															thumbnails[1591909] = clik.newPhoto({"id":1591909,"src":"04550035_thumb.jpg","galleries_id":65948,"server_id":18,"link":"photo_1591909.html","width":130,"caption":"Kilmory Coast","height":196});
															thumbnails[1591913] = clik.newPhoto({"id":1591913,"src":"04550038_thumb.jpg","galleries_id":65948,"server_id":18,"link":"photo_1591913.html","width":130,"caption":"Kilmory Nap Beach","height":86});
															thumbnails[1591917] = clik.newPhoto({"id":1591917,"src":"04560009_thumb.jpg","galleries_id":65948,"server_id":18,"link":"photo_1591917.html","width":130,"caption":"North to Knapdale","height":198});
															thumbnails[1591919] = clik.newPhoto({"id":1591919,"src":"04560013_thumb.jpg","galleries_id":65301,"server_id":18,"link":"photo_1591919.html","width":130,"caption":"Thistles","height":87});
															thumbnails[1969883] = clik.newPhoto({"id":1969883,"src":"24960014_thumb.jpg","galleries_id":65948,"server_id":18,"link":"photo_1969883.html","width":130,"caption":"Low Tide","height":195});
															thumbnails[1969893] = clik.newPhoto({"id":1969893,"src":"24960020_thumb.jpg","galleries_id":65948,"server_id":18,"link":"photo_1969893.html","width":130,"caption":"'Blue and Yellow'","height":200});
															thumbnails[1969902] = clik.newPhoto({"id":1969902,"src":"24960021_thumb.jpg","galleries_id":65948,"server_id":18,"link":"photo_1969902.html","width":130,"caption":"Fading Away","height":86});
															thumbnails[1969909] = clik.newPhoto({"id":1969909,"src":"24960023_thumb.jpg","galleries_id":65948,"server_id":18,"link":"photo_1969909.html","width":130,"caption":"'Lone Pine'","height":171});
															thumbnails[1969921] = clik.newPhoto({"id":1969921,"src":"24960026_thumb.jpg","galleries_id":65948,"server_id":18,"link":"photo_1969921.html","width":130,"caption":"'Lone Pine View'","height":86});
															thumbnails[1969940] = clik.newPhoto({"id":1969940,"src":"24960028_thumb.jpg","galleries_id":65948,"server_id":18,"link":"photo_1969940.html","width":130,"caption":"'Winter Panorama'","height":71});
															thumbnails[1969948] = clik.newPhoto({"id":1969948,"src":"24960030_thumb.jpg","galleries_id":65948,"server_id":18,"link":"photo_1969948.html","width":130,"caption":"'Winter Shining'","height":86});
															thumbnails[2092343] = clik.newPhoto({"id":2092343,"src":"52620003_thumb.jpg","galleries_id":65948,"server_id":18,"link":"photo_2092343.html","width":130,"caption":"Sandstream","height":205});
															thumbnails[2092361] = clik.newPhoto({"id":2092361,"src":"52620005_thumb.jpg","galleries_id":65948,"server_id":18,"link":"photo_2092361.html","width":130,"caption":"A'Chleit Church ","height":86});
															thumbnails[2092387] = clik.newPhoto({"id":2092387,"src":"52620014_thumb.jpg","galleries_id":65948,"server_id":18,"link":"photo_2092387.html","width":130,"caption":"Muasdale Sunset","height":196});
															thumbnails[2092401] = clik.newPhoto({"id":2092401,"src":"52620017_thumb.jpg","galleries_id":65948,"server_id":18,"link":"photo_2092401.html","width":130,"caption":"Muasdale Sunset 2","height":195});
															thumbnails[2092405] = clik.newPhoto({"id":2092405,"src":"52620018_thumb.jpg","galleries_id":65948,"server_id":18,"link":"photo_2092405.html","width":130,"caption":"Muasdale Sunset 3","height":196});
															thumbnails[2092425] = clik.newPhoto({"id":2092425,"src":"52620015_thumb.jpg","galleries_id":65948,"server_id":18,"link":"photo_2092425.html","width":130,"caption":"Muasdale Sunset 4","height":86});
															thumbnails[2092433] = clik.newPhoto({"id":2092433,"src":"52620016_thumb.jpg","galleries_id":65948,"server_id":18,"link":"photo_2092433.html","width":130,"caption":"Muasdale Sunset 5","height":83});
															thumbnails[2092444] = clik.newPhoto({"id":2092444,"src":"52620027_thumb.jpg","galleries_id":65948,"server_id":18,"link":"photo_2092444.html","width":130,"caption":"Muasdale Sunset 6","height":86});
															thumbnails[2092464] = clik.newPhoto({"id":2092464,"src":"52620021_thumb.jpg","galleries_id":65948,"server_id":18,"link":"photo_2092464.html","width":130,"caption":"Last Light from Muasdale","height":86});
															thumbnails[2092510] = clik.newPhoto({"id":2092510,"src":"52620039_thumb.jpg","galleries_id":65948,"server_id":18,"link":"photo_2092510.html","width":130,"caption":"Knapdale Rainbow","height":192});
															thumbnails[2852368] = clik.newPhoto({"id":2852368,"src":"DSCF3048_thumb.JPG","galleries_id":65948,"server_id":18,"link":"photo_2852368.html","width":130,"caption":"Tarbert East","height":98});
															thumbnails[2852370] = clik.newPhoto({"id":2852370,"src":"DSCF3057_thumb.JPG","galleries_id":65249,"server_id":18,"link":"photo_2852370.html","width":130,"caption":"Morning Mist","height":98});
															thumbnails[2852374] = clik.newPhoto({"id":2852374,"src":"DSCF3060_thumb.JPG","galleries_id":65249,"server_id":18,"link":"photo_2852374.html","width":130,"caption":"Bellanoch Reflections","height":98});
															thumbnails[2852379] = clik.newPhoto({"id":2852379,"src":"DSCF3062_thumb.JPG","galleries_id":65249,"server_id":18,"link":"photo_2852379.html","width":130,"caption":"Reflective Moorings","height":173});
															thumbnails[2852383] = clik.newPhoto({"id":2852383,"src":"DSCF3063_thumb.JPG","galleries_id":65249,"server_id":18,"link":"photo_2852383.html","width":130,"caption":"Creeping Mist","height":98});
															thumbnails[2852387] = clik.newPhoto({"id":2852387,"src":"DSCF3065_thumb.JPG","galleries_id":65948,"server_id":18,"link":"photo_2852387.html","width":130,"caption":"Crinan Sound","height":173});
															thumbnails[3321932] = clik.newPhoto({"id":3321932,"src":"DSCF3174_thumb.JPG","galleries_id":65948,"server_id":18,"link":"photo_3321932.html","width":130,"caption":"Argyll Dawn","height":85});
															thumbnails[3321941] = clik.newPhoto({"id":3321941,"src":"DSCF3186_thumb.JPG","galleries_id":65249,"server_id":18,"link":"photo_3321941.html","width":130,"caption":"Autumn woodlands","height":201});
															thumbnails[3321943] = clik.newPhoto({"id":3321943,"src":"DSCF3191_thumb.JPG","galleries_id":65301,"server_id":18,"link":"photo_3321943.html","width":130,"caption":"Grey Heron ready to pounce","height":93});
															thumbnails[3321945] = clik.newPhoto({"id":3321945,"src":"DSCF3196_thumb.JPG","galleries_id":65301,"server_id":18,"link":"photo_3321945.html","width":130,"caption":"Canal at Worsley","height":175});
															thumbnails[6280079] = clik.newPhoto({"id":6280079,"src":"DSCF3694_thumb.JPG","galleries_id":65301,"server_id":18,"link":"photo_6280079.html","width":130,"caption":"Chrysanthemum 1","height":93});
															thumbnails[6280106] = clik.newPhoto({"id":6280106,"src":"DSCF3739_thumb.JPG","galleries_id":65301,"server_id":18,"link":"photo_6280106.html","width":130,"caption":"Begonia 1","height":160});
															thumbnails[6280112] = clik.newPhoto({"id":6280112,"src":"DSCF3740_thumb.JPG","galleries_id":65301,"server_id":18,"link":"photo_6280112.html","width":130,"caption":"Begonia 2","height":98});
															thumbnails[8249978] = clik.newPhoto({"id":8249978,"src":"2010_0822SFSAug1000151_thumb.JPG","galleries_id":65301,"server_id":19,"link":"photo_8249978.html","width":130,"caption":"Gladioli","height":173});
															thumbnails[8250031] = clik.newPhoto({"id":8250031,"src":"2010_0822SFSAug100018_thumb.JPG","galleries_id":65301,"server_id":19,"link":"photo_8250031.html","width":130,"caption":"Begonia 3","height":103});
															thumbnails[8250036] = clik.newPhoto({"id":8250036,"src":"2010_0822SFSAug100019_thumb.JPG","galleries_id":65301,"server_id":19,"link":"photo_8250036.html","width":130,"caption":"Begonia 4","height":98});
															thumbnails[8250038] = clik.newPhoto({"id":8250038,"src":"2010_0822SFSAug100021_thumb.JPG","galleries_id":65301,"server_id":19,"link":"photo_8250038.html","width":130,"caption":"Begonia 5","height":98});
															thumbnails[8250042] = clik.newPhoto({"id":8250042,"src":"2010_0822SFSAug100022_thumb.JPG","galleries_id":65301,"server_id":19,"link":"photo_8250042.html","width":130,"caption":"Begonia 6","height":103});
															thumbnails[8250045] = clik.newPhoto({"id":8250045,"src":"2010_0822SFSAug100023_thumb.JPG","galleries_id":65301,"server_id":19,"link":"photo_8250045.html","width":130,"caption":"Begonia 7","height":105});
															thumbnails[8250048] = clik.newPhoto({"id":8250048,"src":"2010_0822SFSAug100041_thumb.JPG","galleries_id":65301,"server_id":19,"link":"photo_8250048.html","width":130,"caption":"Sunflowers","height":173});
															thumbnails[846874] = clik.newPhoto({"id":846874,"src":"09970001_thumb.jpg","galleries_id":65301,"server_id":18,"link":"photo_846874.html","width":130,"caption":"Snowy Owl","height":196});
															thumbnails[979998] = clik.newPhoto({"id":979998,"src":"S4022262_thumb.JPG","galleries_id":73653,"server_id":18,"link":"photo_979998.html","width":130,"caption":"Classic dark wood moulding with gold insert gives a very elegant finish.","height":109});
															thumbnails[980003] = clik.newPhoto({"id":980003,"src":"S4022355_thumb.JPG","galleries_id":73653,"server_id":18,"link":"photo_980003.html","width":130,"caption":"Plain coloured mouldings can work well to compliment wall coverings.","height":173});
															thumbnails[980015] = clik.newPhoto({"id":980015,"src":"S4022337_thumb.JPG","galleries_id":73653,"server_id":18,"link":"photo_980015.html","width":130,"caption":"Pale surroundings promote the picture but give a pleasing finish.","height":116});
															thumbnails[980023] = clik.newPhoto({"id":980023,"src":"S4022357_thumb.JPG","galleries_id":73653,"server_id":18,"link":"photo_980023.html","width":130,"caption":"Wood frame stained to compliment the colours within the photo.","height":118});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[65249] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Landscapes","link":"gallery_65249.html","maxRecords":0.0,"photoIDs":[846892.0,846894.0,846897.0,846907.0,846951.0,847006.0,847020.0,847022.0,885478.0,885496.0,885497.0,1436320.0,1436327.0,1436332.0,1436344.0,1436349.0,2852370.0,2852374.0,2852379.0,2852383.0,3321941.0],"skipIndex":0,"section_code":"gallery","featured_images":"3321941,2852383,2852379,2852374,2852370,1436349,1436344,1436332,1436327,1436320","id":65249,"singleSection":false});				  						galleries[65301] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Other images","link":"gallery_65301.html","maxRecords":0.0,"photoIDs":[846880.0,846886.0,846904.0,846919.0,846928.0,846978.0,846982.0,846997.0,847008.0,847012.0,847015.0,885490.0,885491.0,885492.0,885493.0,885495.0,1436316.0,1436321.0,1591919.0,3321943.0,3321945.0,6280079.0,6280106.0,6280112.0,8249978.0,8250031.0,8250036.0,8250038.0,8250042.0,8250045.0,8250048.0,846874.0],"skipIndex":0,"section_code":"gallery","featured_images":"8250048,8250045,8250042,8250038,8250036,8250031,8249978,6280112,6280106,6280079","id":65301,"singleSection":false});				  						galleries[65948] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Seascapes and Coast","link":"gallery_65948.html","maxRecords":0.0,"photoIDs":[846901.0,846911.0,846922.0,846925.0,846934.0,846936.0,846946.0,846948.0,846953.0,846957.0,846964.0,846972.0,846985.0,846990.0,846995.0,846999.0,847009.0,885481.0,885485.0,885486.0,885487.0,1166287.0,1166289.0,1436340.0,1436359.0,1591893.0,1591898.0,1591908.0,1591909.0,1591913.0,1591917.0,1969883.0,1969893.0,1969902.0,1969909.0,1969921.0,1969940.0,1969948.0,2092343.0,2092361.0,2092387.0,2092401.0,2092405.0,2092425.0,2092433.0,2092444.0,2092464.0,2092510.0,2852368.0,2852387.0,3321932.0],"skipIndex":0,"section_code":"gallery","featured_images":1166287.0,"id":65948,"singleSection":false});				  						galleries[73653] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Frames - samples","link":"gallery_73653.html","maxRecords":0.0,"photoIDs":[1506710.0,1506716.0,979998.0,980003.0,980015.0,980023.0],"skipIndex":0,"section_code":"gallery","featured_images":"1506716,1506710,980023,980015,980003,979998","id":73653,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '2852374,847015,846904,846901,846880,846874';
imageSets[2] = '1166287';
imageSets[3] = '8261462,8250048,8250045,8250042,8250038,8250036,8250031,8249978,8249963,6280112,6280106,6280079,3321945,3321943,3321941,3321932,2852387,2852383,2852379,2852374,2852370,2852368,2092510,2092464,2092444,2092433,2092425,2092405,2092401,2092387,2092361,2092343,1969948,1969940,1969921,1969909,1969902,1969893,1969883,1591919,1591917,1591913,1591909,1591908,1591898,1591893,1506716,1506710,1436359,1436349';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/Lovelady/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/Lovelady/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/Lovelady/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/Lovelady/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/Lovelady/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/Lovelady/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/Lovelady/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/Lovelady/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/Lovelady/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/Lovelady/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/Lovelady/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/Lovelady/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/Lovelady/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/Lovelady/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/Lovelady/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/Lovelady/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/Lovelady/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/Lovelady/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/Lovelady/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/Lovelady/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/Lovelady/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/Lovelady/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/Lovelady/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/Lovelady/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 && backgrounds[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 = 'Michael Lovelady Photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		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" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="mrimmer1952@hotmail.com">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="mrimmer1952@hotmail.com">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id),					title: galleries[gallery_id].title				});
			}
		}
	}
}

/***************************************************************************
* 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;
	}
}

			

