window.thumbnails = {};
															thumbnails[676069] = clik.newPhoto({"id":676069,"src":"Nevis1raw1_thumb.jpg","galleries_id":51492,"server_id":15,"link":"photo_676069.html","width":130,"caption":"Carn More Dearg arete, Ben Nevis","height":83});
															thumbnails[676094] = clik.newPhoto({"id":676094,"src":"Bidean21_thumb.jpg","galleries_id":51492,"server_id":15,"link":"photo_676094.html","width":130,"caption":"Bidean Nam Bian, Glencoe. National Trust for Scotland","height":60});
															thumbnails[676128] = clik.newPhoto({"id":676128,"src":"Ben2_thumb.jpg","galleries_id":51496,"server_id":15,"link":"photo_676128.html","width":130,"caption":"Climbing on Ben Nevis","height":196});
															thumbnails[676134] = clik.newPhoto({"id":676134,"src":"Dearg21_thumb.jpg","galleries_id":51492,"server_id":15,"link":"photo_676134.html","width":130,"caption":"Carn Mor Dearg and Ben Nevis","height":85});
															thumbnails[676146] = clik.newPhoto({"id":676146,"src":"Peter1_thumb.jpg","galleries_id":51492,"server_id":15,"link":"photo_676146.html","width":130,"caption":"Coire Bhrochain, Braeriach, Cairngorm National Park","height":84});
															thumbnails[676151] = clik.newPhoto({"id":676151,"src":"Rannoch-winter1_thumb.jpg","galleries_id":51492,"server_id":15,"link":"photo_676151.html","width":130,"caption":"Rannoch moor and Blackmount","height":83});
															thumbnails[676155] = clik.newPhoto({"id":676155,"src":"Roisbheinn1_thumb.jpg","galleries_id":51492,"server_id":15,"link":"photo_676155.html","width":130,"caption":"Roisbheinn, looking to Skye","height":85});
															thumbnails[676157] = clik.newPhoto({"id":676157,"src":"samples-jmt0161_thumb.jpg","galleries_id":51496,"server_id":15,"link":"photo_676157.html","width":130,"caption":"Tracy, at home in Coire na Ciste, Ben Nevis","height":195});
															thumbnails[676160] = clik.newPhoto({"id":676160,"src":"samples-jmt0061_thumb.jpg","galleries_id":51492,"server_id":15,"link":"photo_676160.html","width":130,"caption":"Ben Lawers summit in winter","height":87});
															thumbnails[676174] = clik.newPhoto({"id":676174,"src":"mamores_thumb.JPG","galleries_id":51492,"server_id":15,"link":"photo_676174.html","width":130,"caption":"Mamore mountains, from Ben Nevis","height":38});
															thumbnails[676181] = clik.newPhoto({"id":676181,"src":"Buachaille_thumb.jpg","galleries_id":51492,"server_id":15,"link":"photo_676181.html","width":130,"caption":"Buachaille Etive Mor, Glencoe","height":87});
															thumbnails[676205] = clik.newPhoto({"id":676205,"src":"Tulla4_thumb.JPG","galleries_id":51492,"server_id":15,"link":"photo_676205.html","width":130,"caption":"Loch Tulla, Bridge of Orchy","height":87});
															thumbnails[676207] = clik.newPhoto({"id":676207,"src":"Tulla3_thumb.JPG","galleries_id":51492,"server_id":15,"link":"photo_676207.html","width":130,"caption":"Loch Tulla, Bridge of Orchy","height":87});
															thumbnails[676216] = clik.newPhoto({"id":676216,"src":"colourbothy1_thumb.jpg","galleries_id":51492,"server_id":15,"link":"photo_676216.html","width":130,"caption":"Glen Etive Bothy","height":86});
															thumbnails[676217] = clik.newPhoto({"id":676217,"src":"Blaven1_thumb.jpg","galleries_id":51492,"server_id":15,"link":"photo_676217.html","width":130,"caption":"Blaven, Skye","height":193});
															thumbnails[676235] = clik.newPhoto({"id":676235,"src":"Bajaly_thumb.jpg","galleries_id":51495,"server_id":15,"link":"photo_676235.html","width":130,"caption":"Bajaly, Kora player","height":91});
															thumbnails[676236] = clik.newPhoto({"id":676236,"src":"Ballet_thumb.jpg","galleries_id":51495,"server_id":15,"link":"photo_676236.html","width":130,"caption":"Ballet, Edinburgh Festival","height":91});
															thumbnails[676237] = clik.newPhoto({"id":676237,"src":"Bella_thumb.jpg","galleries_id":51495,"server_id":15,"link":"photo_676237.html","width":130,"caption":"Bella Figura, Edinburgh Festival","height":85});
															thumbnails[676238] = clik.newPhoto({"id":676238,"src":"Dance1_thumb.jpg","galleries_id":51495,"server_id":15,"link":"photo_676238.html","width":130,"caption":"Dance, Edinburgh Festival","height":84});
															thumbnails[676239] = clik.newPhoto({"id":676239,"src":"Dance3_thumb.JPG","galleries_id":51495,"server_id":15,"link":"photo_676239.html","width":130,"caption":"Dance, Edinburgh Festival","height":91});
															thumbnails[676240] = clik.newPhoto({"id":676240,"src":"Ka_thumb.jpg","galleries_id":51495,"server_id":15,"link":"photo_676240.html","width":130,"caption":"Dance, Edinburgh Festival","height":91});
															thumbnails[676241] = clik.newPhoto({"id":676241,"src":"Stillhere_thumb.jpg","galleries_id":51495,"server_id":15,"link":"photo_676241.html","width":130,"caption":"Dance, Edinburgh Festival","height":91});
															thumbnails[676242] = clik.newPhoto({"id":676242,"src":"Sanfran1_thumb.jpg","galleries_id":51495,"server_id":15,"link":"photo_676242.html","width":130,"caption":"Dance, Edinburgh Festival","height":91});
															thumbnails[676245] = clik.newPhoto({"id":676245,"src":"Melvin_thumb.jpg","galleries_id":51495,"server_id":15,"link":"photo_676245.html","width":130,"caption":"Marvellous Melvin, Edinburgh Fringe","height":91});
															thumbnails[676248] = clik.newPhoto({"id":676248,"src":"Paco2_thumb.jpg","galleries_id":51495,"server_id":15,"link":"photo_676248.html","width":130,"caption":"Paco de Pena","height":91});
															thumbnails[676250] = clik.newPhoto({"id":676250,"src":"Paco1_thumb.JPG","galleries_id":51495,"server_id":15,"link":"photo_676250.html","width":130,"caption":"Paco de Pena dance Edinburgh Festival Theatre","height":186});
															thumbnails[676275] = clik.newPhoto({"id":676275,"src":"samples-jmt022_thumb.jpg","galleries_id":51496,"server_id":15,"link":"photo_676275.html","width":130,"caption":"Sandwood Bay, John Muir Award","height":87});
															thumbnails[676278] = clik.newPhoto({"id":676278,"src":"trustgames2_thumb.jpg","galleries_id":51496,"server_id":15,"link":"photo_676278.html","width":130,"caption":"Trust game, Venture Scotland","height":91});
															thumbnails[676287] = clik.newPhoto({"id":676287,"src":"Asylum1_thumb.jpg","galleries_id":51496,"server_id":15,"link":"photo_676287.html","width":130,"caption":"River Crossing, Venture Scotland","height":206});
															thumbnails[676300] = clik.newPhoto({"id":676300,"src":"Mostar2_thumb.jpg","galleries_id":51495,"server_id":15,"link":"photo_676300.html","width":130,"caption":"Music Workshop","height":91});
															thumbnails[676301] = clik.newPhoto({"id":676301,"src":"Nayo_thumb.jpg","galleries_id":51495,"server_id":15,"link":"photo_676301.html","width":130,"caption":"Youth Orchestra","height":182});
															thumbnails[676303] = clik.newPhoto({"id":676303,"src":"hospital3_thumb.jpg","galleries_id":318103,"server_id":15,"link":"photo_676303.html","width":130,"caption":"Sick Kids Hospital, Edinburgh","height":91});
															thumbnails[676305] = clik.newPhoto({"id":676305,"src":"AMY1_thumb.JPG","galleries_id":318103,"server_id":15,"link":"photo_676305.html","width":130,"caption":"Amy, Environmental artist. Photographed for the BBC a long time ago.","height":91});
															thumbnails[676307] = clik.newPhoto({"id":676307,"src":"Boyle_thumb.jpg","galleries_id":318103,"server_id":15,"link":"photo_676307.html","width":130,"caption":"Jimmy Boyle, photographed for the Big Issue Scotland.","height":192});
															thumbnails[676308] = clik.newPhoto({"id":676308,"src":"ENO2_thumb.JPG","galleries_id":318103,"server_id":15,"link":"photo_676308.html","width":130,"caption":"Brian Eno, musician, photographed in Bosnia","height":91});
															thumbnails[676311] = clik.newPhoto({"id":676311,"src":"Greer_thumb.jpg","galleries_id":318103,"server_id":15,"link":"photo_676311.html","width":130,"caption":"Germaine Greer","height":91});
															thumbnails[676312] = clik.newPhoto({"id":676312,"src":"James-Morrison_thumb.jpg","galleries_id":318103,"server_id":15,"link":"photo_676312.html","width":130,"caption":"James Morrison, landscape painter","height":91});
															thumbnails[676313] = clik.newPhoto({"id":676313,"src":"Lesley-Black_thumb.jpg","galleries_id":318103,"server_id":15,"link":"photo_676313.html","width":130,"caption":"Lesley Black, painter","height":91});
															thumbnails[1243299] = clik.newPhoto({"id":1243299,"src":"doug-scott (12)_thumb.jpg","galleries_id":51496,"server_id":15,"link":"photo_1243299.html","width":130,"caption":"Mountaineer Doug Scott, recipient of John Muir Lifetime Achievement Award.","height":86});
															thumbnails[1243439] = clik.newPhoto({"id":1243439,"src":"del_thumb.jpg","galleries_id":51496,"server_id":15,"link":"photo_1243439.html","width":130,"caption":"Del Davies in the former slate workings of Moel Siabod in North Wales. ","height":86});
															thumbnails[1243495] = clik.newPhoto({"id":1243495,"src":"matty2_thumb.jpg","galleries_id":51496,"server_id":15,"link":"photo_1243495.html","width":130,"caption":"Rhydymwyn Valley Nature Reserve in North Wales.","height":86});
															thumbnails[1279167] = clik.newPhoto({"id":1279167,"src":"Skyline1_thumb.jpg","galleries_id":51492,"server_id":15,"link":"photo_1279167.html","width":130,"caption":"Edinburgh skyline","height":86});
															thumbnails[1554710] = clik.newPhoto({"id":1554710,"src":"wildwalks1_thumb.jpg","galleries_id":51496,"server_id":15,"link":"photo_1554710.html","width":130,"caption":"Issie Inglis, at Lochan Uaine in the Cairngorms. ","height":86});
															thumbnails[1554725] = clik.newPhoto({"id":1554725,"src":"watson010_thumb.jpg","galleries_id":51496,"server_id":15,"link":"photo_1554725.html","width":130,"caption":"Adam Watson, holder of the John Muir Lifetime Achievement Award","height":86});
															thumbnails[1554730] = clik.newPhoto({"id":1554730,"src":"venture-scot2_thumb.jpg","galleries_id":51496,"server_id":15,"link":"photo_1554730.html","width":130,"caption":"Sharing: team mates from Venture Scotland's trip to Marthrown Of Mabie Education Centre near Dumfries prepare for the High Ropes course.","height":195});
															thumbnails[1554731] = clik.newPhoto({"id":1554731,"src":"rhyddian-vs1_thumb.jpg","galleries_id":51496,"server_id":15,"link":"photo_1554731.html","width":130,"caption":"","height":86});
															thumbnails[1554838] = clik.newPhoto({"id":1554838,"src":"rowles-demo-64_thumb.jpg","galleries_id":51492,"server_id":15,"link":"photo_1554838.html","width":130,"caption":"Ben Avon","height":104});
															thumbnails[1554844] = clik.newPhoto({"id":1554844,"src":"rowles-demo-62_thumb.jpg","galleries_id":51492,"server_id":15,"link":"photo_1554844.html","width":130,"caption":"Lairig Ghru from Braeriach, Cairngorms","height":101});
															thumbnails[1554849] = clik.newPhoto({"id":1554849,"src":"rowles-demo-63_thumb.jpg","galleries_id":51492,"server_id":15,"link":"photo_1554849.html","width":130,"caption":"Rothimurchus pine woods, Cairngorms","height":114});
															thumbnails[1554852] = clik.newPhoto({"id":1554852,"src":"rowles-demo-66_thumb.jpg","galleries_id":51492,"server_id":15,"link":"photo_1554852.html","width":130,"caption":"Glen Derry pine woods, dawn.","height":111});
															thumbnails[1554857] = clik.newPhoto({"id":1554857,"src":"rowles-demo-45_thumb.jpg","galleries_id":51492,"server_id":15,"link":"photo_1554857.html","width":130,"caption":"Ben Nevis, dawn","height":86});
															thumbnails[1554865] = clik.newPhoto({"id":1554865,"src":"rowles-demo-42_thumb.jpg","galleries_id":51492,"server_id":15,"link":"photo_1554865.html","width":130,"caption":"Nightwalk, Mamore mountain range","height":86});
															thumbnails[1610539] = clik.newPhoto({"id":1610539,"src":"Amy12_thumb.jpg","galleries_id":318103,"server_id":15,"link":"photo_1610539.html","width":130,"caption":"Amy Duncan, musician","height":86});
															thumbnails[2612622] = clik.newPhoto({"id":2612622,"src":"6bosnia125_thumb.jpg","galleries_id":88862,"server_id":15,"link":"photo_2612622.html","width":130,"caption":"This street used to be a front line between East and West Mostar. ","height":91});
															thumbnails[2612630] = clik.newPhoto({"id":2612630,"src":"1bosnia001_thumb.jpg","galleries_id":88862,"server_id":15,"link":"photo_2612630.html","width":130,"caption":"Bascarcija, Sarajevo old town. ","height":91});
															thumbnails[2612637] = clik.newPhoto({"id":2612637,"src":"1bosnia006_thumb.jpg","galleries_id":88862,"server_id":15,"link":"photo_2612637.html","width":130,"caption":"A mountain villager in Lukomir. The village is 4,500feet high on Bjelasnica mountain.","height":186});
															thumbnails[2612643] = clik.newPhoto({"id":2612643,"src":"1bosnia008_thumb.jpg","galleries_id":88862,"server_id":15,"link":"photo_2612643.html","width":130,"caption":"Mountain villagers in Lukomir. The village is 4,500feet high on Bjelasnica mountain. ","height":91});
															thumbnails[2612796] = clik.newPhoto({"id":2612796,"src":"1bosnia010_thumb.jpg","galleries_id":88862,"server_id":15,"link":"photo_2612796.html","width":130,"caption":"A mountain villager in Lukomir. The village is 4,500feet high on Bjelasnica mountain.","height":91});
															thumbnails[2612875] = clik.newPhoto({"id":2612875,"src":"1bosnia013_thumb.jpg","galleries_id":88862,"server_id":15,"link":"photo_2612875.html","width":130,"caption":"Mountain villagers in Lukomir. The village is 4,500feet high on Bjelasnica mountain.","height":91});
															thumbnails[2612882] = clik.newPhoto({"id":2612882,"src":"1bosnia015_thumb.jpg","galleries_id":88862,"server_id":15,"link":"photo_2612882.html","width":130,"caption":"Lukomir, high up on Bjelasnica mountain. The highest inhabited village in Bosnia.","height":91});
															thumbnails[2612894] = clik.newPhoto({"id":2612894,"src":"1bosnia016_thumb.jpg","galleries_id":88862,"server_id":15,"link":"photo_2612894.html","width":130,"caption":"In Lukomir, Bjelasnica mountain.","height":91});
															thumbnails[2612905] = clik.newPhoto({"id":2612905,"src":"1bosnia017_thumb.jpg","galleries_id":88862,"server_id":15,"link":"photo_2612905.html","width":130,"caption":"Visiting the neighbours in Lukomir, the highest village in Bosnia.I drank an awful lot of strong coffee for these pictures.","height":91});
															thumbnails[2612907] = clik.newPhoto({"id":2612907,"src":"1bosnia019_thumb.jpg","galleries_id":88862,"server_id":15,"link":"photo_2612907.html","width":130,"caption":"Visiting the neighbours in Lukomir. ","height":91});
															thumbnails[2612915] = clik.newPhoto({"id":2612915,"src":"1bosnia020_thumb.jpg","galleries_id":88862,"server_id":15,"link":"photo_2612915.html","width":130,"caption":"Home time in Lukomir. Shepherding is the main occupation, and the village is cut off by snow for several months during winter.","height":91});
															thumbnails[2612923] = clik.newPhoto({"id":2612923,"src":"1bosnia022_thumb.jpg","galleries_id":88862,"server_id":15,"link":"photo_2612923.html","width":130,"caption":"Lukomir - it's 4,500 feet up - the height of Ben Nevis. Shepherds still have to look after the sheep.","height":91});
															thumbnails[2612932] = clik.newPhoto({"id":2612932,"src":"1bosnia028_thumb.jpg","galleries_id":88862,"server_id":15,"link":"photo_2612932.html","width":130,"caption":"Right at the edge of the village is a drop of 2,400 feet into Rakitnica canyon. This is the view from the last cottage in the village","height":91});
															thumbnails[2612953] = clik.newPhoto({"id":2612953,"src":"1bosnia031_thumb.jpg","galleries_id":88862,"server_id":15,"link":"photo_2612953.html","width":130,"caption":"Lukomir on Bjelasnica mountain. ","height":91});
															thumbnails[2612960] = clik.newPhoto({"id":2612960,"src":"1bosnia033_thumb.jpg","galleries_id":88862,"server_id":15,"link":"photo_2612960.html","width":130,"caption":"One of the villagers in Lukomir.","height":91});
															thumbnails[2612970] = clik.newPhoto({"id":2612970,"src":"1bosnia037_thumb.jpg","galleries_id":88862,"server_id":15,"link":"photo_2612970.html","width":130,"caption":"Villagers in Lukomir.","height":91});
															thumbnails[2613003] = clik.newPhoto({"id":2613003,"src":"1bosnia046_thumb.jpg","galleries_id":88862,"server_id":15,"link":"photo_2613003.html","width":130,"caption":"Graveyard in Sarajevo. Most of the graves are dated '92-'95. There are many such graveyards is Sarajevo, where more than 10,000 people, including 1500 children, were killed during the three year siege.","height":91});
															thumbnails[2613016] = clik.newPhoto({"id":2613016,"src":"1bosnia049_thumb.jpg","galleries_id":88862,"server_id":15,"link":"photo_2613016.html","width":130,"caption":"Chess players and Orhodox church in Sarajevo.","height":91});
															thumbnails[2613028] = clik.newPhoto({"id":2613028,"src":"1bosnia054_thumb.jpg","galleries_id":88862,"server_id":15,"link":"photo_2613028.html","width":130,"caption":"Marketplace outside Mostar.","height":91});
															thumbnails[2613036] = clik.newPhoto({"id":2613036,"src":"1bosnia056_thumb.jpg","galleries_id":88862,"server_id":15,"link":"photo_2613036.html","width":130,"caption":"Music, meza and wine...","height":91});
															thumbnails[2613071] = clik.newPhoto({"id":2613071,"src":"1bosnia071_thumb.jpg","galleries_id":88862,"server_id":15,"link":"photo_2613071.html","width":130,"caption":"Tekija Sufi house by the source of the River Buna, Blagaj.","height":91});
															thumbnails[2613075] = clik.newPhoto({"id":2613075,"src":"1bosnia066_thumb.jpg","galleries_id":88862,"server_id":15,"link":"photo_2613075.html","width":130,"caption":"Tekija Sufi house by the source of the River Buna, Blagaj.","height":91});
															thumbnails[2613109] = clik.newPhoto({"id":2613109,"src":"2bosnia080_thumb.jpg","galleries_id":88862,"server_id":15,"link":"photo_2613109.html","width":130,"caption":"The Crooked Bridge - a miniature version of the Old Bridge in Mostar. It survived the war, but was washed away by floods. It has been rebuilt.","height":91});
															thumbnails[2613115] = clik.newPhoto({"id":2613115,"src":"2bosnia087_thumb.jpg","galleries_id":88862,"server_id":15,"link":"photo_2613115.html","width":130,"caption":"Waiting for customers in the old town, Mostar.","height":91});
															thumbnails[2613117] = clik.newPhoto({"id":2613117,"src":"3bosnia095_thumb.jpg","galleries_id":88862,"server_id":15,"link":"photo_2613117.html","width":130,"caption":"Persian carpet sellers in Mostar old town.","height":91});
															thumbnails[2613138] = clik.newPhoto({"id":2613138,"src":"6bosnia131_thumb.jpg","galleries_id":88862,"server_id":15,"link":"photo_2613138.html","width":130,"caption":"Back street, Mostar.","height":91});
															thumbnails[2613142] = clik.newPhoto({"id":2613142,"src":"2bosnia085_thumb.jpg","galleries_id":88862,"server_id":15,"link":"photo_2613142.html","width":130,"caption":"Doorway, Mosque in Mostar","height":186});
															thumbnails[2613153] = clik.newPhoto({"id":2613153,"src":"5bosnia113_thumb.jpg","galleries_id":88862,"server_id":15,"link":"photo_2613153.html","width":130,"caption":"An amiable and fast moving shepherd in the Hercegovina Highlands, above Mostar.","height":91});
															thumbnails[2613159] = clik.newPhoto({"id":2613159,"src":"5bosnia106_thumb.jpg","galleries_id":88862,"server_id":15,"link":"photo_2613159.html","width":130,"caption":"Rebuilt shop and rebuilt Mosque. Mostar","height":91});
															thumbnails[2613173] = clik.newPhoto({"id":2613173,"src":"4bosnia099_thumb.jpg","galleries_id":88862,"server_id":15,"link":"photo_2613173.html","width":130,"caption":"Dawn, Mosque in Mostar.","height":91});
															thumbnails[2613179] = clik.newPhoto({"id":2613179,"src":"2bosnia084_thumb.jpg","galleries_id":88862,"server_id":15,"link":"photo_2613179.html","width":130,"caption":"War remembrance, Mostar old town.","height":91});
															thumbnails[2613197] = clik.newPhoto({"id":2613197,"src":"6bosnia122_thumb.jpg","galleries_id":88862,"server_id":15,"link":"photo_2613197.html","width":130,"caption":"Summer camp bringing children together from all of the communities.","height":91});
															thumbnails[2613203] = clik.newPhoto({"id":2613203,"src":"1bosnia075_thumb.jpg","galleries_id":88862,"server_id":15,"link":"photo_2613203.html","width":130,"caption":"Dubrovnik old town.","height":91});
															thumbnails[2613215] = clik.newPhoto({"id":2613215,"src":"1bosnia079_thumb.jpg","galleries_id":88862,"server_id":15,"link":"photo_2613215.html","width":130,"caption":"Evening light, Dubrovnik.","height":91});
															thumbnails[2613342] = clik.newPhoto({"id":2613342,"src":"2bosnia081_thumb.jpg","galleries_id":88862,"server_id":15,"link":"photo_2613342.html","width":130,"caption":"Mostar's 'new' Old Bridge. Targeted and destroyed during the war, this symbol of the city was rebuilt. ","height":91});
															thumbnails[3272307] = clik.newPhoto({"id":3272307,"src":"026jmt-skye-web_thumb.jpg","galleries_id":51492,"server_id":15,"link":"photo_3272307.html","width":130,"caption":"Blaven, Skye. Photographed for the John Muir Trust.","height":87});
															thumbnails[5610305] = clik.newPhoto({"id":5610305,"src":"dhorrcail-treeplant0008_thumb.jpg","galleries_id":51496,"server_id":15,"link":"photo_5610305.html","width":130,"caption":"Taking the boat to Coire Dhorrcail in Knoydart for a day's tree planting","height":92});
															thumbnails[5610312] = clik.newPhoto({"id":5610312,"src":"easter-skye612_thumb.jpg","galleries_id":51496,"server_id":15,"link":"photo_5610312.html","width":130,"caption":"Peat cutting at Strathaird, Skye","height":92});
															thumbnails[5610317] = clik.newPhoto({"id":5610317,"src":"easter-skye629_thumb.jpg","galleries_id":51496,"server_id":15,"link":"photo_5610317.html","width":130,"caption":"Collecting whelks on the shore of Loch Slapin, with Blaven in the background","height":92});
															thumbnails[5610354] = clik.newPhoto({"id":5610354,"src":"jmt-stalk-feb299_as_Smart_Object-1123_thumb.jpg","galleries_id":51496,"server_id":15,"link":"photo_5610354.html","width":130,"caption":"JMT ranger preparing for a day's hind stalking, Schiehallion","height":196});
															thumbnails[5610403] = clik.newPhoto({"id":5610403,"src":"nevis-stalk1_thumb.jpg","galleries_id":51496,"server_id":15,"link":"photo_5610403.html","width":130,"caption":"Hind stalking in Nevis estate","height":90});
															thumbnails[5610408] = clik.newPhoto({"id":5610408,"src":"nevis-stalk2_thumb.jpg","galleries_id":51496,"server_id":15,"link":"photo_5610408.html","width":130,"caption":"Carrying hind carcass off the hill, Nevis","height":90});
															thumbnails[5610414] = clik.newPhoto({"id":5610414,"src":"sheep049_thumb.jpg","galleries_id":51496,"server_id":15,"link":"photo_5610414.html","width":130,"caption":"Tagging and innoculating sheep, Kinlochbervie, Sutherland","height":90});
															thumbnails[5610418] = clik.newPhoto({"id":5610418,"src":"sheep048_thumb.jpg","galleries_id":51496,"server_id":15,"link":"photo_5610418.html","width":130,"caption":"Keeping a close eye on everything, Sutherland","height":90});
															thumbnails[5610419] = clik.newPhoto({"id":5610419,"src":"030110_nevis_0101_thumb.jpg","galleries_id":51492,"server_id":15,"link":"photo_5610419.html","width":130,"caption":"Midwinter, upper Glen Nevis","height":86});
															thumbnails[5610453] = clik.newPhoto({"id":5610453,"src":"190210_beels_0235_1_thumb.jpg","galleries_id":51496,"server_id":15,"link":"photo_5610453.html","width":130,"caption":"Tom Beels, Glenlyon is planning to use local wood as a fuel source, instead of importing oil","height":86});
															thumbnails[5610468] = clik.newPhoto({"id":5610468,"src":"loch-hourn042_thumb.jpg","galleries_id":51492,"server_id":15,"link":"photo_5610468.html","width":130,"caption":"Loch Hourn, Knoydart","height":89});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[88862] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Bosnia","link":"gallery_88862.html","maxRecords":0.0,"photoIDs":[2612622.0,2612630.0,2612637.0,2612643.0,2612796.0,2612875.0,2612882.0,2612894.0,2612905.0,2612907.0,2612915.0,2612923.0,2612932.0,2612953.0,2612960.0,2612970.0,2613003.0,2613016.0,2613028.0,2613036.0,2613071.0,2613075.0,2613109.0,2613115.0,2613117.0,2613138.0,2613142.0,2613153.0,2613159.0,2613173.0,2613179.0,2613197.0,2613203.0,2613215.0,2613342.0],"skipIndex":0,"section_code":"gallery","featured_images":"2613342,2612622","id":88862,"singleSection":false});				  						galleries[51496] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"John Muir Trust-People","link":"gallery_51496.html","maxRecords":0.0,"photoIDs":[676128.0,676157.0,676275.0,676278.0,676287.0,1243299.0,1243439.0,1243495.0,1554710.0,1554725.0,1554730.0,1554731.0,5610305.0,5610312.0,5610317.0,5610354.0,5610403.0,5610408.0,5610414.0,5610418.0,5610453.0],"skipIndex":0,"section_code":"gallery","featured_images":"1243299,676275","id":51496,"singleSection":false});				  						galleries[51492] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"John Muir Trust-Wild Land","link":"gallery_51492.html","maxRecords":0.0,"photoIDs":[676069.0,676094.0,676134.0,676146.0,676151.0,676155.0,676160.0,676174.0,676181.0,676205.0,676207.0,676216.0,676217.0,1279167.0,1554838.0,1554844.0,1554849.0,1554852.0,1554857.0,1554865.0,3272307.0,5610419.0,5610468.0],"skipIndex":0,"section_code":"gallery","featured_images":"5610419,676069","id":51492,"singleSection":false});				  						galleries[51495] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Performance","link":"gallery_51495.html","maxRecords":0.0,"photoIDs":[676235.0,676236.0,676237.0,676238.0,676239.0,676240.0,676241.0,676242.0,676245.0,676248.0,676250.0,676300.0,676301.0],"skipIndex":0,"section_code":"gallery","featured_images":676236.0,"id":51495,"singleSection":false});				  						galleries[318103] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portraits","link":"gallery_318103.html","maxRecords":0.0,"photoIDs":[676303.0,676305.0,676307.0,676308.0,676311.0,676312.0,676313.0,1610539.0],"skipIndex":0,"section_code":"gallery","featured_images":676305.0,"id":318103,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '5610419,3272307,2612622,1554857,1554849,1554844,1554838,1279167,1243495,1243439,1243299,676313,676312,676311,676308,676307,676305,676303,676301,676300,676287,676278,676275,676250,676248,676245,676242,676241,676240,676239,676238,676237,676236,676235,676217,676216,676207,676205,676181,676174,676160,676157,676155,676151,676146,676134,676128,676094,676069';
imageSets[2] = '5610419,2613342,2612622,1243299,676305,676275,676236,676069';
imageSets[3] = '5610468,5610453,5610419,5610418,5610414,5610408,5610403,5610354,5610317,5610312,5610305,3272307,2613342,2613215,2613203,2613197,2613179,2613173,2613159,2613153,2613142,2613138,2613117,2613115,2613109,2613075,2613071,2613036,2613028,2613016,2613003,2612970,2612960,2612953,2612932,2612923,2612915,2612907,2612905,2612894,2612882,2612875,2612796,2612643,2612637,2612630,2612622,1610539,1554865,1554857';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/kbrame/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/kbrame/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/kbrame/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/kbrame/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/kbrame/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/kbrame/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/kbrame/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/kbrame/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/kbrame/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/kbrame/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/kbrame/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/kbrame/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/kbrame/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/kbrame/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/kbrame/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/kbrame/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/kbrame/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/kbrame/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/kbrame/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/kbrame/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/kbrame/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/kbrame/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/kbrame/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/kbrame/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/kbrame/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/kbrame/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/kbrame/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 = 'Keith Brame 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>';
	}
				
				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;
	}
}

			

