window.thumbnails = {};
															thumbnails[5271316] = clik.newPhoto({"id":5271316,"src":"Webb-Blair-November-103-cop1_thumb.jpg","galleries_id":96400,"server_id":15,"link":"photo_5271316.html","width":130,"caption":"Only a few hours old and without a care in the world!","height":87});
															thumbnails[1291202] = clik.newPhoto({"id":1291202,"src":"CulzeanApril07062sz1.jpg","galleries_id":72262,"server_id":15,"link":"photo_1291202.html","width":130,"caption":"Ailsa Craig. A view from the Culzean cliff walk","height":87});
															thumbnails[1291216] = clik.newPhoto({"id":1291216,"src":"CulzeanApril070751.jpg","galleries_id":72262,"server_id":15,"link":"photo_1291216.html","width":130,"caption":"Culzean Castle.. Classic View from the archway","height":199});
															thumbnails[1310269] = clik.newPhoto({"id":1310269,"src":"Copy of Fringe 2007 0141.JPG","galleries_id":92729,"server_id":15,"link":"photo_1310269.html","width":130,"caption":"Show girls about to go on stage at the festival ","height":87});
															thumbnails[1310283] = clik.newPhoto({"id":1310283,"src":"Fringe 2007 0421.JPG","galleries_id":92729,"server_id":15,"link":"photo_1310283.html","width":130,"caption":"Dressed for the part!","height":236});
															thumbnails[1310287] = clik.newPhoto({"id":1310287,"src":"Fringe 2007 1061.JPG","galleries_id":92729,"server_id":15,"link":"photo_1310287.html","width":130,"caption":"Laurin as Scaramouche","height":194});
															thumbnails[1310288] = clik.newPhoto({"id":1310288,"src":"Fringe 2007 1141.JPG","galleries_id":92729,"server_id":15,"link":"photo_1310288.html","width":130,"caption":"Leading performance by Gallileo","height":194});
															thumbnails[1310302] = clik.newPhoto({"id":1310302,"src":"Fringe 2007 1451.JPG","galleries_id":92729,"server_id":15,"link":"photo_1310302.html","width":130,"caption":"We Will Rock You!!","height":113});
															thumbnails[1310332] = clik.newPhoto({"id":1310332,"src":"Rock_You_T189_2_thumb.jpg","galleries_id":92729,"server_id":15,"link":"photo_1310332.html","width":130,"caption":"Scaramouche and Gallileo, in a moment of tenderness","height":231});
															thumbnails[1331729] = clik.newPhoto({"id":1331729,"src":"Culzean April 07 0701.JPG","galleries_id":72262,"server_id":15,"link":"photo_1331729.html","width":130,"caption":"Culzean Castle from the Fountain Gardens","height":87});
															thumbnails[1331730] = clik.newPhoto({"id":1331730,"src":"Culzean April 07 0741.JPG","galleries_id":72262,"server_id":15,"link":"photo_1331730.html","width":130,"caption":"Culzean Castle. Glorious spring morning","height":87});
															thumbnails[1331986] = clik.newPhoto({"id":1331986,"src":"_481.jpg","galleries_id":88857,"server_id":15,"link":"photo_1331986.html","width":130,"caption":"Local News!","height":194});
															thumbnails[1331997] = clik.newPhoto({"id":1331997,"src":"Spain July 2007 0751.JPG","galleries_id":88857,"server_id":15,"link":"photo_1331997.html","width":130,"caption":"Red on White. ","height":194});
															thumbnails[1332000] = clik.newPhoto({"id":1332000,"src":"Spain July 2007 2161.JPG","galleries_id":88857,"server_id":15,"link":"photo_1332000.html","width":130,"caption":"Forest floor","height":87});
															thumbnails[1332008] = clik.newPhoto({"id":1332008,"src":"Spain July 2007 3851.JPG","galleries_id":88857,"server_id":15,"link":"photo_1332008.html","width":130,"caption":"Mulhacen the hard way up!","height":194});
															thumbnails[1332010] = clik.newPhoto({"id":1332010,"src":"Spain July 2007 5351.JPG","galleries_id":88857,"server_id":15,"link":"photo_1332010.html","width":130,"caption":"Granada.. Alhambra Classic View ","height":194});
															thumbnails[1381835] = clik.newPhoto({"id":1381835,"src":"Bamburgh 2007 Feb 0921.JPG","galleries_id":96395,"server_id":15,"link":"photo_1381835.html","width":130,"caption":"Jack and a friend. Bamburgh Beach","height":87});
															thumbnails[1381840] = clik.newPhoto({"id":1381840,"src":"Dsc002951.jpg","galleries_id":93867,"server_id":15,"link":"photo_1381840.html","width":130,"caption":"Return to Port","height":87});
															thumbnails[1381844] = clik.newPhoto({"id":1381844,"src":"Fringe 2007 0341.JPG","galleries_id":93867,"server_id":15,"link":"photo_1381844.html","width":130,"caption":"Show Girl","height":194});
															thumbnails[1381847] = clik.newPhoto({"id":1381847,"src":"fringe 2007 113 (2)1.jpg","galleries_id":93867,"server_id":15,"link":"photo_1381847.html","width":130,"caption":"Steve in 'We will Rock You'","height":194});
															thumbnails[1381858] = clik.newPhoto({"id":1381858,"src":"June 2007 Donny 0301.JPG","galleries_id":93867,"server_id":15,"link":"photo_1381858.html","width":130,"caption":"Baby D.","height":87});
															thumbnails[1381859] = clik.newPhoto({"id":1381859,"src":"P10100571.jpg","galleries_id":93867,"server_id":15,"link":"photo_1381859.html","width":130,"caption":"Ersin, a farmer in Turkey","height":173});
															thumbnails[1381862] = clik.newPhoto({"id":1381862,"src":"P10100681.jpg","galleries_id":93867,"server_id":15,"link":"photo_1381862.html","width":130,"caption":"Taking a break from work!","height":173});
															thumbnails[1381868] = clik.newPhoto({"id":1381868,"src":"P52702821.jpg","galleries_id":96400,"server_id":15,"link":"photo_1381868.html","width":130,"caption":"Graduation Day","height":173});
															thumbnails[1381873] = clik.newPhoto({"id":1381873,"src":"P10101783.jpg","galleries_id":96400,"server_id":15,"link":"photo_1381873.html","width":130,"caption":"Graduation Day","height":173});
															thumbnails[1381875] = clik.newPhoto({"id":1381875,"src":"Rock You Harley 0011.JPG","galleries_id":93867,"server_id":15,"link":"photo_1381875.html","width":130,"caption":"Laurin","height":104});
															thumbnails[1381880] = clik.newPhoto({"id":1381880,"src":"Susie and Andy 0061.JPG","galleries_id":96394,"server_id":15,"link":"photo_1381880.html","width":130,"caption":"Susan","height":173});
															thumbnails[1381881] = clik.newPhoto({"id":1381881,"src":"Susie and Andy 0211.JPG","galleries_id":96394,"server_id":15,"link":"photo_1381881.html","width":130,"caption":"Susan. Formal pose in the gardens","height":173});
															thumbnails[1381882] = clik.newPhoto({"id":1381882,"src":"Susie and Andy 0221.JPG","galleries_id":96394,"server_id":15,"link":"photo_1381882.html","width":130,"caption":"Susan","height":173});
															thumbnails[1381883] = clik.newPhoto({"id":1381883,"src":"Susie and Andy 0231.JPG","galleries_id":96394,"server_id":15,"link":"photo_1381883.html","width":130,"caption":"Susan and Amelia","height":98});
															thumbnails[1381884] = clik.newPhoto({"id":1381884,"src":"Susie and Andy 0261.JPG","galleries_id":96394,"server_id":15,"link":"photo_1381884.html","width":130,"caption":"Amelia","height":98});
															thumbnails[1381885] = clik.newPhoto({"id":1381885,"src":"Tunisia 2451.JPG","galleries_id":93867,"server_id":15,"link":"photo_1381885.html","width":130,"caption":"Steve","height":173});
															thumbnails[1381916] = clik.newPhoto({"id":1381916,"src":"P10100831.jpg","galleries_id":93867,"server_id":15,"link":"photo_1381916.html","width":130,"caption":"Pouring molten silver into a mould","height":173});
															thumbnails[1381918] = clik.newPhoto({"id":1381918,"src":"P10101041.jpg","galleries_id":93867,"server_id":15,"link":"photo_1381918.html","width":130,"caption":"At peace with the world, Tunisia","height":173});
															thumbnails[1382205] = clik.newPhoto({"id":1382205,"src":"Pitlochry Sept Calum 0461.JPG","galleries_id":96395,"server_id":15,"link":"photo_1382205.html","width":130,"caption":"Calum and his dog. Jack","height":194});
															thumbnails[3225869] = clik.newPhoto({"id":3225869,"src":"Sunset-Nov-08-020-Mark-2_thumb.jpg","galleries_id":197032,"server_id":15,"link":"photo_3225869.html","width":130,"caption":"Sunset from Troon towards Arran","height":195});
															thumbnails[3228089] = clik.newPhoto({"id":3228089,"src":"059-Enhanced_thumb.jpg","galleries_id":72262,"server_id":15,"link":"photo_3228089.html","width":130,"caption":"Approaching Ailsa Craig","height":87});
															thumbnails[3228101] = clik.newPhoto({"id":3228101,"src":"Ailsa-Craig-June-08-142_thumb.jpg","galleries_id":72262,"server_id":15,"link":"photo_3228101.html","width":130,"caption":"Lighthouse on Ailsa Craig","height":194});
															thumbnails[3228108] = clik.newPhoto({"id":3228108,"src":"Alloway-Dec-08-084_thumb.jpg","galleries_id":92729,"server_id":15,"link":"photo_3228108.html","width":130,"caption":"Karl takes the Stage","height":87});
															thumbnails[3228109] = clik.newPhoto({"id":3228109,"src":"Alloway-Dec-08-058_thumb.jpg","galleries_id":92729,"server_id":15,"link":"photo_3228109.html","width":130,"caption":"1930's look and style","height":87});
															thumbnails[3228130] = clik.newPhoto({"id":3228130,"src":"Balmoral-Hotel-at-night_thumb.jpg","galleries_id":197032,"server_id":15,"link":"photo_3228130.html","width":130,"caption":"Balmoral Hotel, Edinburgh","height":195});
															thumbnails[3228133] = clik.newPhoto({"id":3228133,"src":"Bamburgh-2007-Feb-120_thumb.jpg","galleries_id":72262,"server_id":15,"link":"photo_3228133.html","width":130,"caption":"Lifebelt on sand dune","height":194});
															thumbnails[3228157] = clik.newPhoto({"id":3228157,"src":"Barend-Nov-2007-009_thumb.jpg","galleries_id":96395,"server_id":15,"link":"photo_3228157.html","width":130,"caption":"Jack with stick","height":87});
															thumbnails[3228163] = clik.newPhoto({"id":3228163,"src":"Becky-Farewell-036_thumb.jpg","galleries_id":96400,"server_id":15,"link":"photo_3228163.html","width":130,"caption":"Family gathering","height":195});
															thumbnails[3228178] = clik.newPhoto({"id":3228178,"src":"Barend-Nov-2007-037_thumb.jpg","galleries_id":197032,"server_id":15,"link":"photo_3228178.html","width":130,"caption":"All at sea!","height":87});
															thumbnails[3228182] = clik.newPhoto({"id":3228182,"src":"Barend-Nov-2007-057_thumb.jpg","galleries_id":197032,"server_id":15,"link":"photo_3228182.html","width":130,"caption":"Cactus","height":87});
															thumbnails[3228208] = clik.newPhoto({"id":3228208,"src":"Burns-Country-May-2007-014_thumb.jpg","galleries_id":72262,"server_id":15,"link":"photo_3228208.html","width":130,"caption":"Robert Burns in Burns' Statue Square, Ayr","height":194});
															thumbnails[3228212] = clik.newPhoto({"id":3228212,"src":"Burns-Country-May-2007-018_thumb.jpg","galleries_id":72262,"server_id":15,"link":"photo_3228212.html","width":130,"caption":"Burns Cottage, Alloway, Ayr","height":87});
															thumbnails[3228214] = clik.newPhoto({"id":3228214,"src":"Burns-Country-May-2007-086_thumb.jpg","galleries_id":72262,"server_id":15,"link":"photo_3228214.html","width":130,"caption":"Brig O' Doon, Ayr","height":194});
															thumbnails[3228261] = clik.newPhoto({"id":3228261,"src":"Copy-of-P1010063_thumb.jpg","galleries_id":88857,"server_id":15,"link":"photo_3228261.html","width":130,"caption":"Swirling clouds. The Eiger","height":173});
															thumbnails[3228262] = clik.newPhoto({"id":3228262,"src":"Copy-of-P1010097_thumb.jpg","galleries_id":88857,"server_id":15,"link":"photo_3228262.html","width":130,"caption":"Water seller, Marrakesh","height":186});
															thumbnails[3228263] = clik.newPhoto({"id":3228263,"src":"Corsewall-Lighthouse_thumb.jpg","galleries_id":197032,"server_id":15,"link":"photo_3228263.html","width":130,"caption":"Corsewall Lighthouse","height":194});
															thumbnails[3228271] = clik.newPhoto({"id":3228271,"src":"Cricket-Aug-08-041_thumb.jpg","galleries_id":197032,"server_id":15,"link":"photo_3228271.html","width":130,"caption":"Scotland v Kenya","height":195});
															thumbnails[3228326] = clik.newPhoto({"id":3228326,"src":"Duke-of-Edinburgh-Reception_thumb.jpg","galleries_id":93867,"server_id":15,"link":"photo_3228326.html","width":130,"caption":"Maria, St Petersburg","height":195});
															thumbnails[3228329] = clik.newPhoto({"id":3228329,"src":"Dynamic-Earth_19_thumb.jpg","galleries_id":197032,"server_id":15,"link":"photo_3228329.html","width":130,"caption":"Conference Scene","height":87});
															thumbnails[3228330] = clik.newPhoto({"id":3228330,"src":"Egypt-2008-179_thumb.jpg","galleries_id":93867,"server_id":15,"link":"photo_3228330.html","width":130,"caption":"Boatman, Sharm el Sheik","height":173});
															thumbnails[3228617] = clik.newPhoto({"id":3228617,"src":"Festival-Street-001_thumb.jpg","galleries_id":197150,"server_id":15,"link":"photo_3228617.html","width":130,"caption":"What a view!","height":194});
															thumbnails[3228621] = clik.newPhoto({"id":3228621,"src":"Festival-Street-068_thumb.jpg","galleries_id":197150,"server_id":15,"link":"photo_3228621.html","width":130,"caption":"Festival time!","height":195});
															thumbnails[3228624] = clik.newPhoto({"id":3228624,"src":"Festival-Street-051_thumb.jpg","galleries_id":197150,"server_id":15,"link":"photo_3228624.html","width":130,"caption":"Sweet Music!","height":87});
															thumbnails[3228635] = clik.newPhoto({"id":3228635,"src":"Festival-Street-115_thumb.jpg","galleries_id":197150,"server_id":15,"link":"photo_3228635.html","width":130,"caption":"Count the piercings?!","height":194});
															thumbnails[3228641] = clik.newPhoto({"id":3228641,"src":"Festival-Street-152_thumb.jpg","galleries_id":197150,"server_id":15,"link":"photo_3228641.html","width":130,"caption":"Go on, have a laugh!","height":87});
															thumbnails[3228648] = clik.newPhoto({"id":3228648,"src":"Fireworks-at-the-Festival_thumb.jpg","galleries_id":197150,"server_id":15,"link":"photo_3228648.html","width":130,"caption":"Fireworks at the Castle","height":195});
															thumbnails[3228652] = clik.newPhoto({"id":3228652,"src":"Fireworks-Aug-08-036_thumb.jpg","galleries_id":197150,"server_id":15,"link":"photo_3228652.html","width":130,"caption":"Night view of Edinburgh Castle","height":86});
															thumbnails[3228668] = clik.newPhoto({"id":3228668,"src":"Lochgreeen-Hotel-June-08-00_thumb.jpg","galleries_id":197032,"server_id":15,"link":"photo_3228668.html","width":130,"caption":"Lochgreen House Hotel, Troon","height":87});
															thumbnails[3228673] = clik.newPhoto({"id":3228673,"src":"Mansfield-Traquair_2_thumb.jpg","galleries_id":197150,"server_id":15,"link":"photo_3228673.html","width":130,"caption":"Mansfield Traquair Church,  Edinburgh","height":86});
															thumbnails[3228784] = clik.newPhoto({"id":3228784,"src":"P1010023_thumb.jpg","galleries_id":88857,"server_id":15,"link":"photo_3228784.html","width":130,"caption":"Winter Scene, Kitzbuhl, Austria","height":173});
															thumbnails[3228788] = clik.newPhoto({"id":3228788,"src":"P1010059_thumb.jpg","galleries_id":88857,"server_id":15,"link":"photo_3228788.html","width":130,"caption":"It tastes better near the top!","height":173});
															thumbnails[3228790] = clik.newPhoto({"id":3228790,"src":"P3300083_thumb.jpg","galleries_id":96394,"server_id":15,"link":"photo_3228790.html","width":130,"caption":"Bring on the girls!","height":98});
															thumbnails[3228792] = clik.newPhoto({"id":3228792,"src":"P4030016_thumb.jpg","galleries_id":197032,"server_id":15,"link":"photo_3228792.html","width":130,"caption":"Petronas Tower , Kuala Lumpur","height":173});
															thumbnails[3228793] = clik.newPhoto({"id":3228793,"src":"P4090060-enhance-1_thumb.jpg","galleries_id":197032,"server_id":15,"link":"photo_3228793.html","width":130,"caption":"Malaysian Sunset","height":98});
															thumbnails[3228795] = clik.newPhoto({"id":3228795,"src":"Web-Piper_thumb.jpg","galleries_id":96394,"server_id":15,"link":"photo_3228795.html","width":130,"caption":"Piper at Culzean","height":195});
															thumbnails[3228796] = clik.newPhoto({"id":3228796,"src":"Wedding-album-011_thumb.jpg","galleries_id":96394,"server_id":15,"link":"photo_3228796.html","width":130,"caption":"Arriving in style","height":86});
															thumbnails[3228800] = clik.newPhoto({"id":3228800,"src":"Wedding-Album-029_thumb.jpg","galleries_id":96394,"server_id":15,"link":"photo_3228800.html","width":130,"caption":"A truly happy day!","height":110});
															thumbnails[3228804] = clik.newPhoto({"id":3228804,"src":"Wedding-August-08-046a_thumb.jpg","galleries_id":96394,"server_id":15,"link":"photo_3228804.html","width":130,"caption":"A perfect day!","height":104});
															thumbnails[3228805] = clik.newPhoto({"id":3228805,"src":"Wedding-August-08-139_thumb.jpg","galleries_id":96394,"server_id":15,"link":"photo_3228805.html","width":130,"caption":"Toast to the happy couple!","height":87});
															thumbnails[3228806] = clik.newPhoto({"id":3228806,"src":"Wedding-August-08-147_thumb.jpg","galleries_id":96394,"server_id":15,"link":"photo_3228806.html","width":130,"caption":"The happy couple","height":104});
															thumbnails[3228811] = clik.newPhoto({"id":3228811,"src":"Wedding-Rosie-08-061_thumb.jpg","galleries_id":96394,"server_id":15,"link":"photo_3228811.html","width":130,"caption":"All girls together!","height":87});
															thumbnails[3228814] = clik.newPhoto({"id":3228814,"src":"Susan-013_thumb.jpg","galleries_id":96394,"server_id":15,"link":"photo_3228814.html","width":130,"caption":"Susan","height":86});
															thumbnails[3228820] = clik.newPhoto({"id":3228820,"src":"Spain-July-2007-816_thumb.jpg","galleries_id":96394,"server_id":15,"link":"photo_3228820.html","width":130,"caption":"Spanish Wedding","height":173});
															thumbnails[3230320] = clik.newPhoto({"id":3230320,"src":"Steve-Awesome-Enhance-11_thumb.jpg","galleries_id":92729,"server_id":15,"link":"photo_3230320.html","width":130,"caption":"Steve Awesome giving a Fringe performance","height":163});
															thumbnails[3230321] = clik.newPhoto({"id":3230321,"src":"P6220036_thumb.jpg","galleries_id":88857,"server_id":15,"link":"photo_3230321.html","width":130,"caption":"Classic Swiss View","height":173});
															thumbnails[3230322] = clik.newPhoto({"id":3230322,"src":"Royal-Troon-Clubhouse-Enhan_thumb.jpg","galleries_id":72262,"server_id":15,"link":"photo_3230322.html","width":130,"caption":"Royal Troon Club House","height":90});
															thumbnails[3230323] = clik.newPhoto({"id":3230323,"src":"Rozelle-May-2007-024_thumb.jpg","galleries_id":72262,"server_id":15,"link":"photo_3230323.html","width":130,"caption":"Entrance to the 'Secret Garden'","height":87});
															thumbnails[3230325] = clik.newPhoto({"id":3230325,"src":"St-Petersburg-May-2008-051_thumb.jpg","galleries_id":88857,"server_id":15,"link":"photo_3230325.html","width":130,"caption":"Golden Domes","height":194});
															thumbnails[3230326] = clik.newPhoto({"id":3230326,"src":"St-Petersburg-May-2008-418_thumb.jpg","galleries_id":88857,"server_id":15,"link":"photo_3230326.html","width":130,"caption":"Bridges in St Petersburg","height":87});
															thumbnails[3230329] = clik.newPhoto({"id":3230329,"src":"Sunset-Enhanced_thumb.jpg","galleries_id":197032,"server_id":15,"link":"photo_3230329.html","width":130,"caption":"Glorious Sunset near Lockerbie, Scotland","height":98});
															thumbnails[3230338] = clik.newPhoto({"id":3230338,"src":"Sunset-over-Arran-Red-tinge_thumb.jpg","galleries_id":72262,"server_id":15,"link":"photo_3230338.html","width":130,"caption":"Sunset behind Arran","height":87});
															thumbnails[3230346] = clik.newPhoto({"id":3230346,"src":"Turnberry-Classic-2-Enhance1_thumb.jpg","galleries_id":72262,"server_id":15,"link":"photo_3230346.html","width":130,"caption":"The Lighthouse at Turnberry Golf Course","height":86});
															thumbnails[3230355] = clik.newPhoto({"id":3230355,"src":"Turnberry-Classic-Enhance_thumb.jpg","galleries_id":72262,"server_id":15,"link":"photo_3230355.html","width":130,"caption":"View facing the golfer at the 9th!","height":86});
															thumbnails[3230360] = clik.newPhoto({"id":3230360,"src":"Wind-Surfers-November-08-04_thumb.jpg","galleries_id":72262,"server_id":15,"link":"photo_3230360.html","width":130,"caption":"Hanging on...!","height":192});
															thumbnails[3233832] = clik.newPhoto({"id":3233832,"src":"Samyeling-Jan-08-040_edited_thumb.jpg","galleries_id":197032,"server_id":15,"link":"photo_3233832.html","width":130,"caption":"A moment for meditation","height":194});
															thumbnails[3233845] = clik.newPhoto({"id":3233845,"src":"Samyeling-Jan-08-055_thumb.jpg","galleries_id":197032,"server_id":15,"link":"photo_3233845.html","width":130,"caption":"A moment of calm","height":194});
															thumbnails[3233852] = clik.newPhoto({"id":3233852,"src":"Samyeling-June-07-035-Enhan_thumb.jpg","galleries_id":197032,"server_id":15,"link":"photo_3233852.html","width":130,"caption":"Bridge to Tranquility","height":87});
															thumbnails[3238777] = clik.newPhoto({"id":3238777,"src":"Dec-Sunset-074_thumb.jpg","galleries_id":96395,"server_id":15,"link":"photo_3238777.html","width":130,"caption":"Winter visitor","height":86});
															thumbnails[3295280] = clik.newPhoto({"id":3295280,"src":"Fiery-red-Sunset-behind-Ail_thumb.jpg","galleries_id":72262,"server_id":15,"link":"photo_3295280.html","width":130,"caption":"Fiery Sunset behind Ailsa Craig","height":86});
															thumbnails[3375782] = clik.newPhoto({"id":3375782,"src":"Classic-Arran1_thumb.jpg","galleries_id":72262,"server_id":15,"link":"photo_3375782.html","width":130,"caption":"Classic View of Arran","height":91});
															thumbnails[3375826] = clik.newPhoto({"id":3375826,"src":"DSC009481_thumb.jpg","galleries_id":72262,"server_id":15,"link":"photo_3375826.html","width":130,"caption":"Low Tide Barassie Rocks, Ayrshire","height":84});
															thumbnails[3375835] = clik.newPhoto({"id":3375835,"src":"June-2007-Culzean-0501_thumb.jpg","galleries_id":72262,"server_id":15,"link":"photo_3375835.html","width":130,"caption":"Highland Games, Culzean Castle","height":87});
															thumbnails[3375839] = clik.newPhoto({"id":3375839,"src":"Last-Sailing-from-Troon1_thumb.jpg","galleries_id":72262,"server_id":15,"link":"photo_3375839.html","width":130,"caption":"Last sailing from Troon","height":87});
															thumbnails[3375853] = clik.newPhoto({"id":3375853,"src":"Ailsa from Maidens_thumb.jpg","galleries_id":72262,"server_id":15,"link":"photo_3375853.html","width":130,"caption":"Ailsa Craig from Maidens","height":194});
															thumbnails[3375870] = clik.newPhoto({"id":3375870,"src":"Falcon-and-Owls-May-08-0381_thumb.jpg","galleries_id":96395,"server_id":15,"link":"photo_3375870.html","width":130,"caption":"'Grace', a Gyr Falcon","height":194});
															thumbnails[3375874] = clik.newPhoto({"id":3375874,"src":"Lea-Classic1_thumb.jpg","galleries_id":96395,"server_id":15,"link":"photo_3375874.html","width":130,"caption":"'Leah' a European Eagle Owl","height":86});
															thumbnails[3375880] = clik.newPhoto({"id":3375880,"src":"DSC002721_thumb.jpg","galleries_id":96395,"server_id":15,"link":"photo_3375880.html","width":130,"caption":"Spotted on the Golf Course!","height":85});
															thumbnails[3376081] = clik.newPhoto({"id":3376081,"src":"Central-Europe-2006-0441_thumb.jpg","galleries_id":88857,"server_id":15,"link":"photo_3376081.html","width":130,"caption":"Astronomical Clock, Prague","height":173});
															thumbnails[3376111] = clik.newPhoto({"id":3376111,"src":"Culzean-May-08-Family-0291_thumb.jpg","galleries_id":96400,"server_id":15,"link":"photo_3376111.html","width":130,"caption":"Where's the food?","height":194});
															thumbnails[5271322] = clik.newPhoto({"id":5271322,"src":"Webb-Donny-Feb-2009-047-cop1_thumb.jpg","galleries_id":96400,"server_id":15,"link":"photo_5271322.html","width":130,"caption":"Family Photoshoot","height":86});
															thumbnails[5271330] = clik.newPhoto({"id":5271330,"src":"Web-Robb-Family-Web-_thumb.jpg","galleries_id":96400,"server_id":15,"link":"photo_5271330.html","width":130,"caption":"Family Photoshoot","height":86});
															thumbnails[5271331] = clik.newPhoto({"id":5271331,"src":"Webb-Family-Shoot-Sept-09-0_thumb.jpg","galleries_id":96400,"server_id":15,"link":"photo_5271331.html","width":130,"caption":"Family Photoshoot ","height":86});
															thumbnails[5271333] = clik.newPhoto({"id":5271333,"src":"Web-FS-Family-Shoot-Dec-09-_thumb.jpg","galleries_id":96400,"server_id":15,"link":"photo_5271333.html","width":130,"caption":"Having fun!","height":86});
															thumbnails[5566699] = clik.newPhoto({"id":5566699,"src":"India-2010-Pana-1-228-Web_thumb.jpg","galleries_id":315513,"server_id":15,"link":"photo_5566699.html","width":130,"caption":"Holy man Jaipur","height":173});
															thumbnails[5566713] = clik.newPhoto({"id":5566713,"src":"India-2010-Pana-1-131-Web_thumb.jpg","galleries_id":315513,"server_id":15,"link":"photo_5566713.html","width":130,"caption":"'What do you see?'","height":173});
															thumbnails[5566735] = clik.newPhoto({"id":5566735,"src":"India-2010-222-Web_thumb.jpg","galleries_id":315513,"server_id":15,"link":"photo_5566735.html","width":130,"caption":"'Welcome to my shop'","height":195});
															thumbnails[5566815] = clik.newPhoto({"id":5566815,"src":"India-2010-120-Web_thumb.jpg","galleries_id":315513,"server_id":15,"link":"photo_5566815.html","width":130,"caption":"Posing for the camera","height":87});
															thumbnails[5566900] = clik.newPhoto({"id":5566900,"src":"India-2010-Pana-2-112-Web_thumb.jpg","galleries_id":315513,"server_id":15,"link":"photo_5566900.html","width":130,"caption":"Classic Beauty","height":173});
															thumbnails[5566928] = clik.newPhoto({"id":5566928,"src":"India-2010-055-Web_thumb.jpg","galleries_id":315513,"server_id":15,"link":"photo_5566928.html","width":130,"caption":"Serene Sikh worker","height":87});
															thumbnails[5566944] = clik.newPhoto({"id":5566944,"src":"India-2010-310-Web_thumb.jpg","galleries_id":315513,"server_id":15,"link":"photo_5566944.html","width":130,"caption":"Shaft of light","height":195});
															thumbnails[5567007] = clik.newPhoto({"id":5567007,"src":"India-2010-Pana-1-277-Web_thumb.jpg","galleries_id":315513,"server_id":15,"link":"photo_5567007.html","width":130,"caption":"Young traditional dancer","height":98});
															thumbnails[5654662] = clik.newPhoto({"id":5654662,"src":"India-2010-193-Web_thumb.jpg","galleries_id":315513,"server_id":15,"link":"photo_5654662.html","width":130,"caption":"Ceremonial Guard Jaipur Amber Fort","height":87});
															thumbnails[5654667] = clik.newPhoto({"id":5654667,"src":"India-2010-304-Web_thumb.jpg","galleries_id":315513,"server_id":15,"link":"photo_5654667.html","width":130,"caption":"A moment of calm","height":173});
															thumbnails[5654679] = clik.newPhoto({"id":5654679,"src":"India-2010-Pana-1-087-Web_thumb.jpg","galleries_id":315513,"server_id":15,"link":"photo_5654679.html","width":130,"caption":"'School days are the happiest days.....'","height":173});
															thumbnails[5654766] = clik.newPhoto({"id":5654766,"src":"India-2010-Pana-1-096-Web_thumb.jpg","galleries_id":315513,"server_id":15,"link":"photo_5654766.html","width":130,"caption":"The symetrical beauty of the Taj Mahal","height":98});
															thumbnails[5654768] = clik.newPhoto({"id":5654768,"src":"India-2010-Pana-1-139-Web_thumb.jpg","galleries_id":315513,"server_id":15,"link":"photo_5654768.html","width":130,"caption":"Woman and Child. Street Scene","height":173});
															thumbnails[5654774] = clik.newPhoto({"id":5654774,"src":"India-2010-Pana-1-149-Web_thumb.jpg","galleries_id":315513,"server_id":15,"link":"photo_5654774.html","width":130,"caption":"'Room for one more?'","height":98});
															thumbnails[5654793] = clik.newPhoto({"id":5654793,"src":"India-2010-Pana-1-192-Enhan_thumb.jpg","galleries_id":315513,"server_id":15,"link":"photo_5654793.html","width":130,"caption":"Sunset at Karouli","height":98});
															thumbnails[5654903] = clik.newPhoto({"id":5654903,"src":"India-2010-Pana-2-009-Web_thumb.jpg","galleries_id":315513,"server_id":15,"link":"photo_5654903.html","width":130,"caption":"What's for supper?","height":98});
															thumbnails[5655027] = clik.newPhoto({"id":5655027,"src":"India-2010-Pana-2-123-Web_thumb.jpg","galleries_id":315513,"server_id":15,"link":"photo_5655027.html","width":130,"caption":"A man's best friend is his ..... Camel","height":173});
															thumbnails[5655041] = clik.newPhoto({"id":5655041,"src":"India-2010-Pana-2-261-Web_thumb.jpg","galleries_id":315513,"server_id":15,"link":"photo_5655041.html","width":130,"caption":"Trading...","height":98});
															thumbnails[5655062] = clik.newPhoto({"id":5655062,"src":"India-2010-Pana-2-286-Web_thumb.jpg","galleries_id":315513,"server_id":15,"link":"photo_5655062.html","width":130,"caption":"18th Century Scene?","height":98});
															thumbnails[5655077] = clik.newPhoto({"id":5655077,"src":"India-2010-Pana-1-228-Web_680AC68E-1EC9-D45B-1CDD46B0674D8CA5_thumb.jpg","galleries_id":93867,"server_id":15,"link":"photo_5655077.html","width":130,"caption":"Dressed to kill!","height":173});
															thumbnails[5655080] = clik.newPhoto({"id":5655080,"src":"Lights-of-Troon-and-Arran_thumb.jpg","galleries_id":72262,"server_id":15,"link":"photo_5655080.html","width":130,"caption":"Arran viewed from the hill above Troon","height":86});
															thumbnails[5655096] = clik.newPhoto({"id":5655096,"src":"DSC01097-Enhance-1_thumb.jpg","galleries_id":72262,"server_id":15,"link":"photo_5655096.html","width":130,"caption":"'End of a perfect day'.","height":87});
															thumbnails[6954907] = clik.newPhoto({"id":6954907,"src":"a_Help-for-Heroes-Sept-2010_0_thumb.jpg","galleries_id":376782,"server_id":15,"link":"photo_6954907.html","width":130,"caption":"'Help for Heroes Dinner' attended by 200 guests in the Park Hotel, Kilmarnock. ","height":87});
															thumbnails[6954910] = clik.newPhoto({"id":6954910,"src":"a_Panda-October-2010-160_thumb.jpg","galleries_id":376782,"server_id":15,"link":"photo_6954910.html","width":130,"caption":"Panda and friends","height":87});
															thumbnails[6954920] = clik.newPhoto({"id":6954920,"src":"a-ACS-008-copy-for-web_thumb.jpg","galleries_id":376782,"server_id":15,"link":"photo_6954920.html","width":130,"caption":"Partnership between New Horizons and Ayrshire Cancer Support","height":195});
															thumbnails[6954932] = clik.newPhoto({"id":6954932,"src":"a-Ayrshire-Group_thumb.jpg","galleries_id":376782,"server_id":15,"link":"photo_6954932.html","width":130,"caption":"Group of Ayrshire Business Women at award event in Aberdeen","height":87});
															thumbnails[6954941] = clik.newPhoto({"id":6954941,"src":"a-Ayr-United-Oct-2010_09_thumb.jpg","galleries_id":376782,"server_id":15,"link":"photo_6954941.html","width":130,"caption":"Relaunch of Ayr United Lottery","height":87});
															thumbnails[6954962] = clik.newPhoto({"id":6954962,"src":"a-For-going-Out_thumb.jpg","galleries_id":376782,"server_id":15,"link":"photo_6954962.html","width":130,"caption":"Susan Chan of 'New Horizons, Creative Solutions'","height":195});
															thumbnails[6954981] = clik.newPhoto({"id":6954981,"src":"a-Hillhouse-Quarry-155_thumb.jpg","galleries_id":376782,"server_id":15,"link":"photo_6954981.html","width":130,"caption":"Group from the Ayr Branch of the Royal Scottish Geographical Society outing to Hillhouse Quarry","height":87});
															thumbnails[6954995] = clik.newPhoto({"id":6954995,"src":"a-Mace-Final-April-2009-071_thumb.jpg","galleries_id":376782,"server_id":15,"link":"photo_6954995.html","width":130,"caption":"English Speaking Union Debate","height":87});
															thumbnails[6955004] = clik.newPhoto({"id":6955004,"src":"a-November-27th-005_thumb.jpg","galleries_id":376782,"server_id":15,"link":"photo_6955004.html","width":130,"caption":"Art Exibition","height":87});
															thumbnails[6955031] = clik.newPhoto({"id":6955031,"src":"a-Robert-HAppening-2010-064_thumb.jpg","galleries_id":376782,"server_id":15,"link":"photo_6955031.html","width":130,"caption":"Robert Singer 'Art Happening'","height":87});
															thumbnails[6955032] = clik.newPhoto({"id":6955032,"src":"a-St-Petersburg-May-2008-43_thumb.jpg","galleries_id":376782,"server_id":15,"link":"photo_6955032.html","width":130,"caption":"ESU Conference in St Petersburg, Russia","height":87});
															thumbnails[6955037] = clik.newPhoto({"id":6955037,"src":"a-The-Call-2010_58_thumb.jpg","galleries_id":376782,"server_id":15,"link":"photo_6955037.html","width":130,"caption":"'The Call'","height":87});
															thumbnails[6955061] = clik.newPhoto({"id":6955061,"src":"a-Witchill-School-and-Colle_thumb.jpg","galleries_id":376782,"server_id":15,"link":"photo_6955061.html","width":130,"caption":"Kilmarnock College present cheque to Witchill Schol","height":87});
															thumbnails[6955085] = clik.newPhoto({"id":6955085,"src":"KA-Reunion-Master-1_thumb.jpg","galleries_id":376782,"server_id":15,"link":"photo_6955085.html","width":130,"caption":"Reunion Dinner Kilmarnock Academy","height":87});
															thumbnails[8094004] = clik.newPhoto({"id":8094004,"src":"Web_thumb.jpg","galleries_id":96394,"server_id":15,"link":"photo_8094004.html","width":130,"caption":"Wedding at Kay Park, Kilmarnock","height":86});
															thumbnails[8094040] = clik.newPhoto({"id":8094040,"src":"Web-2_thumb.jpg","galleries_id":88857,"server_id":15,"link":"photo_8094040.html","width":130,"caption":"Raw coastal scene, Iceland","height":98});
															thumbnails[8094071] = clik.newPhoto({"id":8094071,"src":"Web-3_thumb.jpg","galleries_id":88857,"server_id":15,"link":"photo_8094071.html","width":130,"caption":"Gulfoss, Iceland","height":98});
															thumbnails[8094079] = clik.newPhoto({"id":8094079,"src":"Web-4_thumb.jpg","galleries_id":88857,"server_id":15,"link":"photo_8094079.html","width":130,"caption":"Fishing boat, Morocco","height":173});
															thumbnails[8094092] = clik.newPhoto({"id":8094092,"src":"Web-5_thumb.jpg","galleries_id":88857,"server_id":15,"link":"photo_8094092.html","width":130,"caption":"Blue is the colour...!","height":98});
															thumbnails[8094097] = clik.newPhoto({"id":8094097,"src":"Web-7_thumb.jpg","galleries_id":93867,"server_id":15,"link":"photo_8094097.html","width":130,"caption":"Beautiful smiling face of a young girl","height":86});
															thumbnails[8094177] = clik.newPhoto({"id":8094177,"src":"Web-8_thumb.jpg","galleries_id":88857,"server_id":15,"link":"photo_8094177.html","width":130,"caption":"Enjoying a well earned rest!","height":98});
															thumbnails[8094181] = clik.newPhoto({"id":8094181,"src":"Web-9_thumb.jpg","galleries_id":376782,"server_id":15,"link":"photo_8094181.html","width":130,"caption":"Awards night for students at Kilmarnock College","height":86});
															thumbnails[8094184] = clik.newPhoto({"id":8094184,"src":"Web-10_thumb.jpg","galleries_id":72262,"server_id":15,"link":"photo_8094184.html","width":130,"caption":"The Waverley approaching Largs","height":86});
															thumbnails[8094186] = clik.newPhoto({"id":8094186,"src":"Web-11_thumb.jpg","galleries_id":96395,"server_id":15,"link":"photo_8094186.html","width":130,"caption":"Sunflower","height":196});
															thumbnails[8094191] = clik.newPhoto({"id":8094191,"src":"Web-12_thumb.jpg","galleries_id":72262,"server_id":15,"link":"photo_8094191.html","width":130,"caption":"Dunure Castle at sunset","height":98});
															thumbnails[8094213] = clik.newPhoto({"id":8094213,"src":"Web-13_thumb.jpg","galleries_id":72262,"server_id":15,"link":"photo_8094213.html","width":130,"caption":"Winter scene","height":86});
															thumbnails[8094223] = clik.newPhoto({"id":8094223,"src":"Web-14_thumb.jpg","galleries_id":72262,"server_id":15,"link":"photo_8094223.html","width":130,"caption":"Mum and the kids!","height":86});
															thumbnails[8094301] = clik.newPhoto({"id":8094301,"src":"Web-15_thumb.jpg","galleries_id":88857,"server_id":15,"link":"photo_8094301.html","width":130,"caption":"Always on duty!","height":98});
															thumbnails[7344118] = clik.newPhoto({"id":7344118,"src":"Cuba-Web-1-Pan-080-_thumb.jpg","galleries_id":397567,"server_id":15,"link":"photo_7344118.html","width":130,"caption":"A well 'lived in face'! ","height":173});
															thumbnails[7347602] = clik.newPhoto({"id":7347602,"src":"Cuba--Web-1-Sony-091_thumb.jpg","galleries_id":397567,"server_id":15,"link":"photo_7347602.html","width":130,"caption":"Cuba, country of music","height":196});
															thumbnails[7344300] = clik.newPhoto({"id":7344300,"src":"Cuba-Web-3-Sony-031a-_thumb.jpg","galleries_id":397567,"server_id":15,"link":"photo_7344300.html","width":130,"caption":"An image of Che ","height":86});
															thumbnails[7344280] = clik.newPhoto({"id":7344280,"src":"Cuba-Web-1-Pan-175-_thumb.jpg","galleries_id":397567,"server_id":15,"link":"photo_7344280.html","width":130,"caption":"This guy is cool!","height":113});
															thumbnails[7347607] = clik.newPhoto({"id":7347607,"src":"Cuba--Web-1-Sony-099-_thumb.jpg","galleries_id":397567,"server_id":15,"link":"photo_7347607.html","width":130,"caption":"'Buy my CD'. Live in Vinares!","height":86});
															thumbnails[7347644] = clik.newPhoto({"id":7347644,"src":"Cuba--Web-2-Pan-087-_thumb.jpg","galleries_id":397567,"server_id":15,"link":"photo_7347644.html","width":130,"caption":"Welcome to my home!","height":173});
															thumbnails[7347656] = clik.newPhoto({"id":7347656,"src":"Cuba--Web-2-Pan-097_thumb.jpg","galleries_id":397567,"server_id":15,"link":"photo_7347656.html","width":130,"caption":"Classic American Car","height":98});
															thumbnails[7344263] = clik.newPhoto({"id":7344263,"src":"Cuba--Sony-160_thumb.jpg","galleries_id":397567,"server_id":15,"link":"photo_7344263.html","width":130,"caption":"Just sitting and watching!","height":196});
															thumbnails[7347670] = clik.newPhoto({"id":7347670,"src":"Cuba-Web-Sony-027-_thumb.jpg","galleries_id":397567,"server_id":15,"link":"photo_7347670.html","width":130,"caption":"Young man passing the time away!","height":86});
															thumbnails[7344139] = clik.newPhoto({"id":7344139,"src":"Cuba-Web-1-Pan-171-_thumb.jpg","galleries_id":397567,"server_id":15,"link":"photo_7344139.html","width":130,"caption":"Classic car","height":98});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[72262] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Ayrshire scenes","link":"gallery_72262.html","maxRecords":0.0,"photoIDs":[1291202.0,1291216.0,1331729.0,1331730.0,3228089.0,3228101.0,3228133.0,3228208.0,3228212.0,3228214.0,3230322.0,3230323.0,3230338.0,3230346.0,3230355.0,3230360.0,3295280.0,3375782.0,3375826.0,3375835.0,3375839.0,3375853.0,5655080.0,5655096.0,8094184.0,8094191.0,8094213.0,8094223.0],"skipIndex":0,"section_code":"gallery","featured_images":"8094223,8094213,8094191,8094184,5655096,5655080,3375853,3375839,3375835,3375826,3375782,3295280,3230360,3230355,3230346,3230338,3230323,3230322,3228214,3228212,3228208,3228133,3228101,3228089,1331730,1331729,1291216,1291202","id":72262,"singleSection":false});				  						galleries[88857] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"European, Asian and African Travels","link":"gallery_88857.html","maxRecords":0.0,"photoIDs":[1331986.0,1331997.0,1332000.0,1332008.0,1332010.0,3228261.0,3228262.0,3228784.0,3228788.0,3230321.0,3230325.0,3230326.0,3376081.0,8094040.0,8094071.0,8094079.0,8094092.0,8094177.0,8094301.0],"skipIndex":0,"section_code":"gallery","featured_images":"8094301,8094177,8094092,8094079,8094071,8094040,3376081,3230326,3230325,3230321,3228788,3228784,3228262,3228261,1332010,1332008,1332000,1331997,1331986","id":88857,"singleSection":false});				  						galleries[376782] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Events","link":"gallery_376782.html","maxRecords":0.0,"photoIDs":[6954907.0,6954910.0,6954920.0,6954932.0,6954941.0,6954962.0,6954981.0,6954995.0,6955004.0,6955031.0,6955032.0,6955037.0,6955061.0,6955085.0,8094181.0],"skipIndex":0,"section_code":"gallery","featured_images":"8094181,6955085,6955061,6955037,6955032,6955031,6955004,6954995,6954981,6954962,6954941,6954932,6954920,6954910,6954907","id":376782,"singleSection":false});				  						galleries[96400] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Family events","link":"gallery_96400.html","maxRecords":0.0,"photoIDs":[5271316.0,1381868.0,1381873.0,3228163.0,3376111.0,5271322.0,5271330.0,5271331.0,5271333.0],"skipIndex":0,"section_code":"gallery","featured_images":"5271333,5271331,5271330,5271322,5271316,3376111,3228163,1381873,1381868","id":96400,"singleSection":false});				  						galleries[197032] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Gallery 1","link":"gallery_197032.html","maxRecords":0.0,"photoIDs":[3225869.0,3228130.0,3228178.0,3228182.0,3228263.0,3228271.0,3228329.0,3228668.0,3228792.0,3228793.0,3230329.0,3233832.0,3233845.0,3233852.0],"skipIndex":0,"section_code":"gallery","featured_images":"3233852,3233845,3233832,3230329,3228793,3228792,3228668,3228329,3228271,3228263,3228182,3228178,3228130,3225869","id":197032,"singleSection":false});				  						galleries[197150] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Gallery 2","link":"gallery_197150.html","maxRecords":0.0,"photoIDs":[3228617.0,3228621.0,3228624.0,3228635.0,3228641.0,3228648.0,3228652.0,3228673.0],"skipIndex":0,"section_code":"gallery","featured_images":"3228673,3228652,3228648,3228641,3228635,3228624,3228621,3228617","id":197150,"singleSection":false});				  						galleries[315513] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"India 2010","link":"gallery_315513.html","maxRecords":0.0,"photoIDs":[5566699.0,5566713.0,5566735.0,5566815.0,5566900.0,5566928.0,5566944.0,5567007.0,5654662.0,5654667.0,5654679.0,5654766.0,5654768.0,5654774.0,5654793.0,5654903.0,5655027.0,5655041.0,5655062.0],"skipIndex":0,"section_code":"gallery","featured_images":"5655062,5655041,5655027,5654903,5654793,5654774,5654768,5654766,5654679,5654667,5654662,5567007,5566944,5566928,5566900,5566815,5566735,5566713","id":315513,"singleSection":false});				  						galleries[96395] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Pets, Birds of prey, owls and wildlife","link":"gallery_96395.html","maxRecords":0.0,"photoIDs":[1381835.0,1382205.0,3228157.0,3238777.0,3375870.0,3375874.0,3375880.0,8094186.0],"skipIndex":0,"section_code":"gallery","featured_images":"8094186,3375880,3375874,3375870,3238777,3228157,1382205,1381835","id":96395,"singleSection":false});				  						galleries[93867] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Portrait Gallery","link":"gallery_93867.html","maxRecords":0.0,"photoIDs":[1381840.0,1381844.0,1381847.0,1381858.0,1381859.0,1381862.0,1381875.0,1381885.0,1381916.0,1381918.0,3228326.0,3228330.0,5655077.0,8094097.0],"skipIndex":0,"section_code":"gallery","featured_images":"8094097,5655077,3228330,3228326,1381918,1381916,1381885,1381875,1381862,1381859,1381858,1381844,1381840","id":93867,"singleSection":false});				  						galleries[92729] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Theatre and Dance","link":"gallery_92729.html","maxRecords":0.0,"photoIDs":[1310269.0,1310283.0,1310287.0,1310288.0,1310302.0,1310332.0,3228108.0,3228109.0,3230320.0],"skipIndex":0,"section_code":"gallery","featured_images":"3230320,3228109,3228108,1310332,1310302,1310288,1310287,1310283,1310269","id":92729,"singleSection":false});				  						galleries[96394] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Wedding Portfolio","link":"gallery_96394.html","maxRecords":0.0,"photoIDs":[1381880.0,1381881.0,1381882.0,1381883.0,1381884.0,3228790.0,3228795.0,3228796.0,3228800.0,3228804.0,3228805.0,3228806.0,3228811.0,3228814.0,3228820.0,8094004.0],"skipIndex":0,"section_code":"gallery","featured_images":"8094004,3228820,3228814,3228811,3228806,3228805,3228804,3228800,3228796,3228795,3228790,1381884,1381883,1381882,1381881,1381880","id":96394,"singleSection":false});				  						galleries[397567] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Cuba 2010","link":"gallery_397567.html","maxRecords":0.0,"photoIDs":[7344118.0,7347602.0,7344300.0,7344280.0,7347607.0,7347644.0,7347656.0,7344263.0,7347670.0,7344139.0],"skipIndex":0,"section_code":"gallery","featured_images":"7347670,7347656,7347644,7347607,7347602,7344300,7344280,7344263,7344139,7344118","id":397567,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8094301,8094223,8094213,8094191,8094186,8094184,8094181,8094177,8094097,8094092,8094079,8094071,8094040,8094004,6955085,6955061,6955037,6955032,6955031,6955004,6954995,6954981,6954962,6954941,6954932,6954920,6954910,6954907,5655096,5655080,5655077,5655062,5655041,5655027,5654903,5654793,5654774,5654768,5654766,5654679,5654667,5654662,5567007,5566944,5566928,5566900,5566815,5566735,5566713,5271333,5271331,5271330,5271322,5271316,3376111,3376081,3375880,3375874,3375870,3375853,3375839,3375835,3375826,3375782,3295280,3238777,3233852,3233845,3233832,3230360,3230355,3230346,3230338,3230329,3230326,3230325,3230323,3230322,3230321,3230320,3228820,3228814,3228811,3228806,3228805,3228804,3228800,3228796,3228795,3228793,3228792,3228790,3228788,3228784,3228673,3228668,3228652,3228648,3228641,3228635,3228624,3228621,3228617,3228330,3228329,3228326,3228271,3228263,3228262,3228261,3228214,3228212,3228208,3228182,3228178,3228163,3228157,3228133,3228130,3228109,3228108,3228101,3228089,3225869,1382205,1381918,1381916,1381885,1381884,1381883,1381882,1381881,1381880,1381875,1381873,1381868,1381862,1381859,1381858,1381847,1381844,1381840,1381835,1332010,1332008,1332000,1331997,1331986,1331730,1331729,1310332,1310302,1310288,1310287,1310283,1310269,1291216,1291202,7344118,7347602,7344300,7344280,7347607,7347644,7347656,7344263,7347670,7344139';
imageSets[2] = '8094301,8094223,8094213,8094191,8094186,8094184,8094181,8094177,8094097,8094092,8094079,8094071,8094040,8094004,6955085,6955061,6955037,6955032,6955031,6955004,6954995,6954981,6954962,6954941,6954932,6954920,6954910,6954907,5655096,5655080,5655077,5655062,5655041,5655027,5654903,5654793,5654774,5654768,5654766,5654679,5654667,5654662,5567007,5566944,5566928,5566900,5566815,5566735,5566713,5271333,5271331,5271330,5271322,5271316,3376111,3376081,3375880,3375874,3375870,3375853,3375839,3375835,3375826,3375782,3295280,3238777,3233852,3233845,3233832,3230360,3230355,3230346,3230338,3230329,3230326,3230325,3230323,3230322,3230321,3230320,3228820,3228814,3228811,3228806,3228805,3228804,3228800,3228796,3228795,3228793,3228792,3228790,3228788,3228784,3228673,3228668,3228652,3228648,3228641,3228635,3228624,3228621,3228617,3228330,3228329,3228326,3228271,3228263,3228262,3228261,3228214,3228212,3228208,3228182,3228178,3228163,3228157,3228133,3228130,3228109,3228108,3228101,3228089,3225869,1382205,1381918,1381916,1381885,1381884,1381883,1381882,1381881,1381880,1381875,1381873,1381868,1381862,1381859,1381858,1381844,1381840,1381835,1332010,1332008,1332000,1331997,1331986,1331730,1331729,1310332,1310302,1310288,1310287,1310283,1310269,1291216,1291202,7344118,7347602,7344300,7344280,7347607,7347644,7347656,7344263,7347670,7344139';
imageSets[3] = '8094301,8094223,8094213,8094191,8094186,8094184,8094181,8094177,8094097,8094092,8094079,8094071,8094040,8094004,6955085,6955061,6955037,6955032,6955031,6955004,6954995,6954981,6954962,6954941,6954932,6954920,6954910,6954907,5655096,5655080,5655077,5655062,5655041,5655027,5654903,5654793,5654774,5654768,5654766,5654679,5654667,5654662,5567007,5566944,5566928,5566900,5566815,5566735,5566713,5271333,5271331,5271330,5271322,5271316,7344118,7347602,7344300,7344280,7347607,7347644,7347656,7344263,7347670,7344139';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/johnwgeddes/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/johnwgeddes/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/johnwgeddes/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/johnwgeddes/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/johnwgeddes/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/johnwgeddes/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/johnwgeddes/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/johnwgeddes/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/johnwgeddes/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/johnwgeddes/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/johnwgeddes/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/johnwgeddes/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/johnwgeddes/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/johnwgeddes/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/johnwgeddes/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/johnwgeddes/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/johnwgeddes/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/johnwgeddes/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/johnwgeddes/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/johnwgeddes/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/johnwgeddes/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/johnwgeddes/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/johnwgeddes/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/johnwgeddes/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/johnwgeddes/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/johnwgeddes/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/johnwgeddes/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 = 'JWG Gallery: ' + 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 Google Checkout:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
		 									temp += '<select class="paymentlink" name="payment_options_id" onchange="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
		else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
											temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="JOHNWGEDDES">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

