window.thumbnails = {};
															thumbnails[723553] = clik.newPhoto({"id":723553,"src":"fergus_2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Fergus Stewart potter","height":98});
															thumbnails[723616] = clik.newPhoto({"id":723616,"src":"Stalking_in_snow_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":90});
															thumbnails[724178] = clik.newPhoto({"id":724178,"src":"Lodge_kitchen_1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[724988] = clik.newPhoto({"id":724988,"src":"Accurate Map_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":182});
															thumbnails[727373] = clik.newPhoto({"id":727373,"src":"fergus_1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[729881] = clik.newPhoto({"id":729881,"src":"assynt_foundation_logo_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":170});
															thumbnails[731112] = clik.newPhoto({"id":731112,"src":"Visa_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":38});
															thumbnails[731730] = clik.newPhoto({"id":731730,"src":"visa2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":82});
															thumbnails[732835] = clik.newPhoto({"id":732835,"src":"Robbie_shooting_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":39});
															thumbnails[738044] = clik.newPhoto({"id":738044,"src":"dining_room_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[738653] = clik.newPhoto({"id":738653,"src":"Lodge_1a7_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Glen Canisp Writers' retreats organised by Mandy Haggith through the Assynt Foundation","height":130});
															thumbnails[755841] = clik.newPhoto({"id":755841,"src":"garden_flowers_1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":68});
															thumbnails[755842] = clik.newPhoto({"id":755842,"src":"Walking_the _dog_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":86});
															thumbnails[760659] = clik.newPhoto({"id":760659,"src":"backtotop_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":29});
															thumbnails[765854] = clik.newPhoto({"id":765854,"src":"jmtlogo_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"John Muir Trust Assynt Foundation","height":161});
															thumbnails[765907] = clik.newPhoto({"id":765907,"src":"NTlogo_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"The Northern Times","height":15});
															thumbnails[765937] = clik.newPhoto({"id":765937,"src":"Lodge_sunshine_1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Glencanisp Lodge, Assynt Foundastion","height":78});
															thumbnails[766695] = clik.newPhoto({"id":766695,"src":"Lodge_sunshine_2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Glencanisp Lodge, Assynt Foundation","height":81});
															thumbnails[769157] = clik.newPhoto({"id":769157,"src":"Assynt_from_Achnahaird_2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Assynt from Achnahaird","height":42});
															thumbnails[769364] = clik.newPhoto({"id":769364,"src":"Winter_in_Assynt_1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":43});
															thumbnails[774423] = clik.newPhoto({"id":774423,"src":"treat yourself text_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":22});
															thumbnails[775080] = clik.newPhoto({"id":775080,"src":"lodge info_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":34});
															thumbnails[776722] = clik.newPhoto({"id":776722,"src":"northharrislogo_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":130});
															thumbnails[782794] = clik.newPhoto({"id":782794,"src":"tct_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Tubney Charitable Trust","height":43});
															thumbnails[783208] = clik.newPhoto({"id":783208,"src":"ccwlogo_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":111});
															thumbnails[802930] = clik.newPhoto({"id":802930,"src":"get_adobe_reader_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":46});
															thumbnails[805775] = clik.newPhoto({"id":805775,"src":"discoverassynt_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":81});
															thumbnails[820980] = clik.newPhoto({"id":820980,"src":"glencanisp_lodge_4_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Glencanisp Lodge, Assynt Foundation","height":67});
															thumbnails[820983] = clik.newPhoto({"id":820983,"src":"glencanisp_lodge_5_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Glencanisp Lodge, Assynt Foundation","height":83});
															thumbnails[821662] = clik.newPhoto({"id":821662,"src":"hallheader3_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":25});
															thumbnails[823942] = clik.newPhoto({"id":823942,"src":"highland_stoneware_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Highland Stoneware","height":195});
															thumbnails[882876] = clik.newPhoto({"id":882876,"src":"ruddyglow_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Ruddyglow Park","height":142});
															thumbnails[883835] = clik.newPhoto({"id":883835,"src":"Old_Man_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Old Man of Stoer","height":131});
															thumbnails[884708] = clik.newPhoto({"id":884708,"src":"Backup_of_AF map 2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Map of Bedrock Geology of Glencanisp and Drumrunie Estates","height":180});
															thumbnails[917308] = clik.newPhoto({"id":917308,"src":"Assynt_Leisure_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Assynt Leisure Centre","height":180});
															thumbnails[932338] = clik.newPhoto({"id":932338,"src":"AFbookmark_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":33});
															thumbnails[949353] = clik.newPhoto({"id":949353,"src":"painting_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Painting in Assynt","height":72});
															thumbnails[1051473] = clik.newPhoto({"id":1051473,"src":"Funday final advert_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":184});
															thumbnails[1071073] = clik.newPhoto({"id":1071073,"src":"cathair_dhubh_2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Cathair Dhubh Holiday Chalets","height":24});
															thumbnails[1208062] = clik.newPhoto({"id":1208062,"src":"Estate-Map-new_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":182});
															thumbnails[1208407] = clik.newPhoto({"id":1208407,"src":"skerray-banner_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Skerray Community Website","height":38});
															thumbnails[1253518] = clik.newPhoto({"id":1253518,"src":"skerray_banner_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":38});
															thumbnails[1257425] = clik.newPhoto({"id":1257425,"src":"freecycle-r-att_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":44});
															thumbnails[1287115] = clik.newPhoto({"id":1287115,"src":"Lochinver_from_Glendarrach1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":38});
															thumbnails[1316468] = clik.newPhoto({"id":1316468,"src":"Caisteal_Liath_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Caisteal Liath Holiday Chalets","height":64});
															thumbnails[1341025] = clik.newPhoto({"id":1341025,"src":"alclogo_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"Assynt Leisure Centre","height":89});
															thumbnails[1635809] = clik.newPhoto({"id":1635809,"src":"scotland-logo_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":53});
															thumbnails[1648577] = clik.newPhoto({"id":1648577,"src":"New_Year_ad_2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"New Year at Glencanisp Lodge 2007\/8","height":199});
															thumbnails[1802406] = clik.newPhoto({"id":1802406,"src":"estateplan housing chart1_thumb.JPG","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":77});
															thumbnails[2355463] = clik.newPhoto({"id":2355463,"src":"IMG_0072_edited-1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[3280989] = clik.newPhoto({"id":3280989,"src":"NL_BIG_E_MIN_PINK_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":21});
															thumbnails[4640996] = clik.newPhoto({"id":4640996,"src":"portrait_stag_in_snow_compressed1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"stag in snow","height":195});
															thumbnails[4641014] = clik.newPhoto({"id":4641014,"src":"Spying-along-the-valley_compressed1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"spying along the glen","height":86});
															thumbnails[8570098] = clik.newPhoto({"id":8570098,"src":"ERDF_logo_thumb.jpeg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":70});
															thumbnails[8570232] = clik.newPhoto({"id":8570232,"src":"blf_logo_thumb.jpeg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":22});
															thumbnails[4910634] = clik.newPhoto({"id":4910634,"src":"IMG_0744_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[4910635] = clik.newPhoto({"id":4910635,"src":"IMG_0745_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[4910636] = clik.newPhoto({"id":4910636,"src":"IMG_0746_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[4910637] = clik.newPhoto({"id":4910637,"src":"IMG_0747_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[4910638] = clik.newPhoto({"id":4910638,"src":"IMG_0748_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[4910639] = clik.newPhoto({"id":4910639,"src":"IMG_0749_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[4910640] = clik.newPhoto({"id":4910640,"src":"IMG_0750_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[4910641] = clik.newPhoto({"id":4910641,"src":"IMG_0751_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[4910642] = clik.newPhoto({"id":4910642,"src":"IMG_0752_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[4910643] = clik.newPhoto({"id":4910643,"src":"IMG_0753_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[4910644] = clik.newPhoto({"id":4910644,"src":"IMG_0754_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[4910645] = clik.newPhoto({"id":4910645,"src":"IMG_0764_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[4910646] = clik.newPhoto({"id":4910646,"src":"IMG_0765_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[4910647] = clik.newPhoto({"id":4910647,"src":"IMG_0766_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[4910648] = clik.newPhoto({"id":4910648,"src":"IMG_0767_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[4910652] = clik.newPhoto({"id":4910652,"src":"IMG_0772_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[4910653] = clik.newPhoto({"id":4910653,"src":"IMG_0777_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[4910655] = clik.newPhoto({"id":4910655,"src":"IMG_0779_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[4910656] = clik.newPhoto({"id":4910656,"src":"IMG_0780_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[4910657] = clik.newPhoto({"id":4910657,"src":"IMG_0781_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[4910658] = clik.newPhoto({"id":4910658,"src":"IMG_0782_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[4910659] = clik.newPhoto({"id":4910659,"src":"IMG_0783_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[4910660] = clik.newPhoto({"id":4910660,"src":"IMG_0784_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[4910661] = clik.newPhoto({"id":4910661,"src":"IMG_0791_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[4910662] = clik.newPhoto({"id":4910662,"src":"IMG_0792_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[4910665] = clik.newPhoto({"id":4910665,"src":"IMG_0796_edited_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[4910667] = clik.newPhoto({"id":4910667,"src":"IMG_0799_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[4910668] = clik.newPhoto({"id":4910668,"src":"IMG_0800_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[4910670] = clik.newPhoto({"id":4910670,"src":"IMG_0802_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[4910672] = clik.newPhoto({"id":4910672,"src":"IMG_0806_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[4910674] = clik.newPhoto({"id":4910674,"src":"IMG_0809_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":98});
															thumbnails[6400658] = clik.newPhoto({"id":6400658,"src":"lodge_etc_058_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"lodge etc 058","height":98});
															thumbnails[6400660] = clik.newPhoto({"id":6400660,"src":"lodge_etc_062_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"lodge etc 062","height":98});
															thumbnails[6400661] = clik.newPhoto({"id":6400661,"src":"lodge_etc_066_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"lodge etc 066","height":98});
															thumbnails[6400662] = clik.newPhoto({"id":6400662,"src":"lodge_etc_071_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"lodge etc 071","height":98});
															thumbnails[6400663] = clik.newPhoto({"id":6400663,"src":"lodge_etc_072_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"lodge etc 072","height":98});
															thumbnails[6400664] = clik.newPhoto({"id":6400664,"src":"lodge_etc_074_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"lodge etc 074","height":98});
															thumbnails[6400665] = clik.newPhoto({"id":6400665,"src":"lodge_etc_075_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"lodge etc 075","height":173});
															thumbnails[6400666] = clik.newPhoto({"id":6400666,"src":"lodge_etc_076_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"lodge etc 076","height":98});
															thumbnails[6400667] = clik.newPhoto({"id":6400667,"src":"lodge_etc_078_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"lodge etc 078","height":98});
															thumbnails[6400670] = clik.newPhoto({"id":6400670,"src":"lodge_etc_0831_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"lodge etc 083","height":98});
															thumbnails[722708] = clik.newPhoto({"id":722708,"src":"Robbie_Stalking_thumb.jpg","galleries_id":56088,"server_id":1,"link":"photo_722708.html","width":130,"caption":"Stalking on the Glencanisp estate. ","height":98});
															thumbnails[724433] = clik.newPhoto({"id":724433,"src":"Lodge_Garden_21_thumb.jpg","galleries_id":56088,"server_id":1,"link":"photo_724433.html","width":130,"caption":"Glencanisp Lodge gardens","height":98});
															thumbnails[725149] = clik.newPhoto({"id":725149,"src":"suilven_from_glen_cansip_thumb.jpg","galleries_id":56088,"server_id":1,"link":"photo_725149.html","width":130,"caption":"Suilven from Glen Canisp","height":86});
															thumbnails[725785] = clik.newPhoto({"id":725785,"src":"Suilven_and _Canisp_thumb.jpg","galleries_id":56088,"server_id":1,"link":"photo_725785.html","width":130,"caption":"Suilven and Canisp from Loch Druim Suardalain","height":98});
															thumbnails[725845] = clik.newPhoto({"id":725845,"src":"Glen_loch_2_thumb.jpg","galleries_id":56088,"server_id":1,"link":"photo_725845.html","width":130,"caption":"Suilven and Canisp from Loch Druim Suardalain","height":66});
															thumbnails[728829] = clik.newPhoto({"id":728829,"src":"Stalkers_3_thumb.jpg","galleries_id":56088,"server_id":1,"link":"photo_728829.html","width":130,"caption":"Heading home with the kill","height":87});
															thumbnails[728844] = clik.newPhoto({"id":728844,"src":"Suilven_from_Drumrunie1_thumb.jpg","galleries_id":56088,"server_id":1,"link":"photo_728844.html","width":130,"caption":"Suilven from Veyatie","height":98});
															thumbnails[732794] = clik.newPhoto({"id":732794,"src":"Loch_Assynt_thumb.jpg","galleries_id":55472,"server_id":1,"link":"photo_732794.html","width":130,"caption":"Loch Assynt","height":85});
															thumbnails[734444] = clik.newPhoto({"id":734444,"src":"Deer_hinds_at_sunset_thumb.jpg","galleries_id":56088,"server_id":1,"link":"photo_734444.html","width":130,"caption":"Two hinds at sunset","height":81});
															thumbnails[734446] = clik.newPhoto({"id":734446,"src":"Suilven_sunset_and_eagle_thumb.jpg","galleries_id":56088,"server_id":1,"link":"photo_734446.html","width":130,"caption":"Suilven and Golden Eagle","height":81});
															thumbnails[734606] = clik.newPhoto({"id":734606,"src":"Old_Man_of_Stoer_thumb.jpg","galleries_id":55472,"server_id":1,"link":"photo_734606.html","width":130,"caption":"The Old Man of Stoer","height":199});
															thumbnails[740156] = clik.newPhoto({"id":740156,"src":"Lodge_31_thumb.jpg","galleries_id":56088,"server_id":1,"link":"photo_740156.html","width":130,"caption":"Glencanisp Lodge","height":87});
															thumbnails[747450] = clik.newPhoto({"id":747450,"src":"Natural_Arch_Culkein_thumb.jpg","galleries_id":55472,"server_id":1,"link":"photo_747450.html","width":130,"caption":"Natural Arch","height":104});
															thumbnails[747804] = clik.newPhoto({"id":747804,"src":"Agnes 3rd Mar 2006 090_thumb.jpg","galleries_id":56088,"server_id":1,"link":"photo_747804.html","width":130,"caption":"Suilven in winter","height":98});
															thumbnails[747815] = clik.newPhoto({"id":747815,"src":"Glen_Loch_in_Winter_1_thumb.jpg","galleries_id":56088,"server_id":1,"link":"photo_747815.html","width":130,"caption":"Glencanisp","height":98});
															thumbnails[747818] = clik.newPhoto({"id":747818,"src":"Stac_Pollaidh_1_thumb.jpg","galleries_id":55472,"server_id":1,"link":"photo_747818.html","width":130,"caption":"Stac Pollaidh from Suilven","height":133});
															thumbnails[747828] = clik.newPhoto({"id":747828,"src":"Winter_in Assynt_1_thumb.jpg","galleries_id":56088,"server_id":1,"link":"photo_747828.html","width":130,"caption":"Winter in Assynt","height":82});
															thumbnails[750012] = clik.newPhoto({"id":750012,"src":"Stac_Pollaidh_4_thumb.jpg","galleries_id":55472,"server_id":1,"link":"photo_750012.html","width":130,"caption":"View from Stac Pollaidh","height":98});
															thumbnails[750018] = clik.newPhoto({"id":750018,"src":"Assynt_from_Achnahaird_thumb.jpg","galleries_id":55472,"server_id":1,"link":"photo_750018.html","width":130,"caption":"Assynt from Achnahaird","height":58});
															thumbnails[751092] = clik.newPhoto({"id":751092,"src":"Suilven_Sunrise_thumb.jpg","galleries_id":56088,"server_id":1,"link":"photo_751092.html","width":130,"caption":"Sunrise over Assynt ","height":51});
															thumbnails[755750] = clik.newPhoto({"id":755750,"src":"Cul_Mor_from_Canisp_thumb.jpg","galleries_id":56088,"server_id":1,"link":"photo_755750.html","width":130,"caption":"Quinag from Canisp","height":98});
															thumbnails[755752] = clik.newPhoto({"id":755752,"src":"Suilven_from_Stac_Pollaidh_thumb.jpg","galleries_id":56088,"server_id":1,"link":"photo_755752.html","width":130,"caption":"Suilven from Stac Pollaidh","height":78});
															thumbnails[755756] = clik.newPhoto({"id":755756,"src":"Glen_in_summer_2_thumb.jpg","galleries_id":56088,"server_id":1,"link":"photo_755756.html","width":130,"caption":"Glencanisp in Summer","height":98});
															thumbnails[755882] = clik.newPhoto({"id":755882,"src":"Summit_of_Stac_Pollaidh_2_thumb.jpg","galleries_id":56088,"server_id":1,"link":"photo_755882.html","width":130,"caption":"Top of the world","height":98});
															thumbnails[769159] = clik.newPhoto({"id":769159,"src":"Suilven_from_Canisp_21_thumb.jpg","galleries_id":56088,"server_id":1,"link":"photo_769159.html","width":130,"caption":"Suilven from Canisp","height":78});
															thumbnails[893838] = clik.newPhoto({"id":893838,"src":"Cul_Mor_Cul_Beag_and_Veyatie_thumb.jpg","galleries_id":56088,"server_id":1,"link":"photo_893838.html","width":130,"caption":"Cul Mor, Cul Beag and Veyatie","height":98});
															thumbnails[893839] = clik.newPhoto({"id":893839,"src":"Drumrunie_woodland_2_thumb.jpg","galleries_id":56088,"server_id":1,"link":"photo_893839.html","width":130,"caption":"Drumrunie woodland and Cul Mor","height":98});
															thumbnails[893840] = clik.newPhoto({"id":893840,"src":"Drumrunie_woodland_3_thumb.jpg","galleries_id":56088,"server_id":1,"link":"photo_893840.html","width":130,"caption":"Drumrunie woodland, Veyatie and Suilven","height":98});
															thumbnails[893841] = clik.newPhoto({"id":893841,"src":"Glencanisp_woodlands_1_thumb.jpg","galleries_id":56088,"server_id":1,"link":"photo_893841.html","width":130,"caption":"Glencanisp woodlands and Suilven","height":84});
															thumbnails[893842] = clik.newPhoto({"id":893842,"src":"Glencanisp_woodlands_2_thumb.jpg","galleries_id":56088,"server_id":1,"link":"photo_893842.html","width":130,"caption":"Glencanisp woodlands, Loch Druim Suardalain","height":90});
															thumbnails[893843] = clik.newPhoto({"id":893843,"src":"Loch_Assynt_woodlands_1_thumb.jpg","galleries_id":56088,"server_id":1,"link":"photo_893843.html","width":130,"caption":"Loch Assynt","height":85});
															thumbnails[893844] = clik.newPhoto({"id":893844,"src":"South_side_of_Veyatie_thumb.jpg","galleries_id":56088,"server_id":1,"link":"photo_893844.html","width":130,"caption":"South side of Veyatie","height":95});
															thumbnails[893845] = clik.newPhoto({"id":893845,"src":"Veyatie_and_Suilven_thumb.jpg","galleries_id":56088,"server_id":1,"link":"photo_893845.html","width":130,"caption":"Veyatie and Suilven","height":98});
															thumbnails[893846] = clik.newPhoto({"id":893846,"src":"Woodlands_Veyatie_and_Cul_Mor_1_thumb.jpg","galleries_id":56088,"server_id":1,"link":"photo_893846.html","width":130,"caption":"Woodlands Veyatie and Cul Mor ","height":85});
															thumbnails[893847] = clik.newPhoto({"id":893847,"src":"Woodlands_Veyatie_and_Cul_Mor_2_thumb.jpg","galleries_id":56088,"server_id":1,"link":"photo_893847.html","width":130,"caption":"Woodlands Veyatie and Cul Mor ","height":98});
															thumbnails[893848] = clik.newPhoto({"id":893848,"src":"Woodlands_Veyatie_and_Cul_Mor_3_thumb.jpg","galleries_id":56088,"server_id":1,"link":"photo_893848.html","width":130,"caption":"Woodlands Veyatie and Cul Mor 3","height":98});
															thumbnails[723554] = clik.newPhoto({"id":723554,"src":"Stag_and_hinds_1_thumb.jpg","galleries_id":56645,"server_id":1,"link":"photo_723554.html","width":130,"caption":"Stag and hinds","height":87});
															thumbnails[734607] = clik.newPhoto({"id":734607,"src":"Fragrant_orchid_thumb.jpg","galleries_id":56540,"server_id":1,"link":"photo_734607.html","width":130,"caption":"Fragrant Orchid","height":201});
															thumbnails[734608] = clik.newPhoto({"id":734608,"src":"Emperor_moth_male_thumb.jpg","galleries_id":56541,"server_id":1,"link":"photo_734608.html","width":130,"caption":"Emperor Moth","height":85});
															thumbnails[734611] = clik.newPhoto({"id":734611,"src":"Deer_fawn_thumb.jpg","galleries_id":56645,"server_id":1,"link":"photo_734611.html","width":130,"caption":"Fawn","height":81});
															thumbnails[734612] = clik.newPhoto({"id":734612,"src":"Dark_green_fritillary_thumb.jpg","galleries_id":56541,"server_id":1,"link":"photo_734612.html","width":130,"caption":"Dark Green Fritillary","height":85});
															thumbnails[734613] = clik.newPhoto({"id":734613,"src":"Common_blue_thumb.jpg","galleries_id":56541,"server_id":1,"link":"photo_734613.html","width":130,"caption":"Common Blue","height":85});
															thumbnails[734616] = clik.newPhoto({"id":734616,"src":"Common lizard_thumb.jpg","galleries_id":56646,"server_id":1,"link":"photo_734616.html","width":130,"caption":"Common Lizard","height":86});
															thumbnails[734623] = clik.newPhoto({"id":734623,"src":"adder_thumb.jpg","galleries_id":56646,"server_id":1,"link":"photo_734623.html","width":130,"caption":"Adder","height":85});
															thumbnails[738045] = clik.newPhoto({"id":738045,"src":"Pine_Marten_thumb.jpg","galleries_id":56645,"server_id":1,"link":"photo_738045.html","width":130,"caption":"Pine Marten","height":85});
															thumbnails[739002] = clik.newPhoto({"id":739002,"src":"Arctic_skua_thumb.jpg","galleries_id":56542,"server_id":1,"link":"photo_739002.html","width":130,"caption":"Arctic Skua","height":79});
															thumbnails[739004] = clik.newPhoto({"id":739004,"src":"Common_seal_thumb.jpg","galleries_id":56645,"server_id":1,"link":"photo_739004.html","width":130,"caption":"Common Seal","height":81});
															thumbnails[739005] = clik.newPhoto({"id":739005,"src":"Slow_worm_thumb.jpg","galleries_id":56646,"server_id":1,"link":"photo_739005.html","width":130,"caption":"Slow Worm","height":86});
															thumbnails[739009] = clik.newPhoto({"id":739009,"src":"grey_seal_thumb.jpg","galleries_id":56645,"server_id":1,"link":"photo_739009.html","width":130,"caption":"Grey Seal","height":85});
															thumbnails[739011] = clik.newPhoto({"id":739011,"src":"Dark_Red_Helleborine_thumb.jpg","galleries_id":56540,"server_id":1,"link":"photo_739011.html","width":130,"caption":"Dark Red Helleborine","height":200});
															thumbnails[739015] = clik.newPhoto({"id":739015,"src":"Common_tern_thumb.jpg","galleries_id":56542,"server_id":1,"link":"photo_739015.html","width":130,"caption":"Common Tern","height":86});
															thumbnails[755875] = clik.newPhoto({"id":755875,"src":"Water_Lily_thumb.jpg","galleries_id":56540,"server_id":1,"link":"photo_755875.html","width":130,"caption":"Water Lilies","height":66});
															thumbnails[820810] = clik.newPhoto({"id":820810,"src":"badger_thumb.jpg","galleries_id":56645,"server_id":1,"link":"photo_820810.html","width":130,"caption":"Badger","height":83});
															thumbnails[893890] = clik.newPhoto({"id":893890,"src":"Peltigera_leucophlebia Drumrunie a rare lichen found on unburnt heather_thumb.jpg","galleries_id":56540,"server_id":1,"link":"photo_893890.html","width":130,"caption":"Peltigera leucophlebia  ","height":81});
															thumbnails[893891] = clik.newPhoto({"id":893891,"src":"Pseudocyphelaria_norvegica_BAP_species_Loch_Assynt_thumb.jpg","galleries_id":56540,"server_id":1,"link":"photo_893891.html","width":130,"caption":"Pseudocyphelaria norvegica  ","height":85});
															thumbnails[893892] = clik.newPhoto({"id":893892,"src":"Pseudocyphellaria_crocata_birch_woods_Na_Leitrichean_Drumrunie_thumb.jpg","galleries_id":56540,"server_id":1,"link":"photo_893892.html","width":130,"caption":"Pseudocyphellaria crocata ","height":88});
															thumbnails[893893] = clik.newPhoto({"id":893893,"src":"Sphagnum_mound_Cul_Mor_thumb.jpg","galleries_id":56540,"server_id":1,"link":"photo_893893.html","width":130,"caption":"Sphagnum mound ","height":98});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[56542] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"BIRDS","link":"section82731_56542.html","maxRecords":0.0,"photoIDs":[739002.0,739015.0],"skipIndex":0,"section_code":"section82731","featured_images":"739015,739002","id":56542,"singleSection":false});				  						galleries[56540] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"FLORA","link":"section82731_56540.html","maxRecords":0.0,"photoIDs":[734607.0,739011.0,755875.0,893890.0,893891.0,893892.0,893893.0],"skipIndex":0,"section_code":"section82731","featured_images":"893893,893892,893891,893890,755875,739011,734607","id":56540,"singleSection":false});				  						galleries[56541] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"INSECTS AND ARACHNIDS","link":"section82731_56541.html","maxRecords":0.0,"photoIDs":[734608.0,734612.0,734613.0],"skipIndex":0,"section_code":"section82731","featured_images":"734613,734612,734608","id":56541,"singleSection":false});				  						galleries[56645] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"MAMMALS","link":"section82731_56645.html","maxRecords":0.0,"photoIDs":[723554.0,734611.0,738045.0,739004.0,739009.0,820810.0],"skipIndex":0,"section_code":"section82731","featured_images":"820810,739009,739004,738045,734611,723554","id":56645,"singleSection":false});				  						galleries[56646] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"REPTILES AND AMPHIBIANS","link":"section82731_56646.html","maxRecords":0.0,"photoIDs":[734616.0,734623.0,739005.0],"skipIndex":0,"section_code":"section82731","featured_images":"739005,734623,734616","id":56646,"singleSection":false});				  						galleries[56088] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"OUR LAND","link":"section82184_56088.html","maxRecords":0.0,"photoIDs":[722708.0,724433.0,725149.0,725785.0,725845.0,728829.0,728844.0,734444.0,734446.0,740156.0,747804.0,747815.0,747828.0,751092.0,755750.0,755752.0,755756.0,755882.0,769159.0,893838.0,893839.0,893840.0,893841.0,893842.0,893843.0,893844.0,893845.0,893846.0,893847.0,893848.0],"skipIndex":0,"section_code":"section82184","featured_images":"893848,893847,893846,893845,893844,893843,893842,893841,893840,893839,893838,769159,755882,755756,755752,755750,751092,747828,747804,740156,734446,734444,728844,728829,725845,725785,725149,724433,722708","id":56088,"singleSection":false});				  						galleries[55472] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"THE SURROUNDING AREA","link":"section82184_55472.html","maxRecords":0.0,"photoIDs":[732794.0,734606.0,747450.0,747818.0,750012.0,750018.0],"skipIndex":0,"section_code":"section82184","featured_images":"750018,750012,747818,747450,734606,732794","id":55472,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '949353,820810,769159,766695,765937,755882,755875,755842,755756,755752,755750,751092,750018,750012,747828,747818,747815,747804,740156,734613,734612,734608,734446,734444,728844,728829,725785,725149,724433,723616,723554,723553,893890,893838,893891,893892,893839,893893,893840,893841,893842,893843,893844,893845,893846,893847,893848';
imageSets[2] = '820810,769159,755882,755875,755756,755752,755750,751092,750018,750012,747828,747818,747804,747450,740156,739015,739011,739009,739005,739004,739002,738045,734623,734616,734613,734612,734611,734608,734607,734606,734446,734444,732794,728844,728829,725845,725785,725149,724433,723554,722708,893890,893838,893891,893892,893839,893893,893840,893841,893842,893843,893844,893845,893846,893847,893848';
imageSets[3] = '3280989,2355463,1802406,1648577,1635809,1341025,1316468,1287115,1257425,1253518,1208407,1208062,1071073,1051473,949353,932338,917308,884708,883835,882876,823942,821662,820983,820980,820810,805775,802930,783208,782794,776722,775080,774423,769364,769159,769157,6400658,6400660,6400661,6400662,6400663,6400664,6400665,6400666,6400667,6400670';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/assyntfoundation/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/assyntfoundation/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/assyntfoundation/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/assyntfoundation/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/assyntfoundation/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/assyntfoundation/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/assyntfoundation/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/assyntfoundation/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/assyntfoundation/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/assyntfoundation/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/assyntfoundation/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/assyntfoundation/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/assyntfoundation/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/assyntfoundation/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/assyntfoundation/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/assyntfoundation/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/assyntfoundation/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/assyntfoundation/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/assyntfoundation/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/assyntfoundation/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/assyntfoundation/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/assyntfoundation/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/assyntfoundation/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/assyntfoundation/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/assyntfoundation/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/assyntfoundation/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/assyntfoundation/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 += 'section82184.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 && 'section82184' != '') {
					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 ASSYNT FOUNDATION: ' + 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;
	}
}

			

