window.thumbnails = {};
															thumbnails[8741172] = clik.newPhoto({"id":8741172,"src":"-IanWray56_thumb.JPG","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":98});
															thumbnails[8742758] = clik.newPhoto({"id":8742758,"src":"IW11280-277-2_93D56720-1EC9-D45B-1C0199F88BD07CD2_thumb.jpg","galleries_id":324592,"server_id":18,"link":"photo_8742758.html","width":87,"caption":"Buchaille Etive Mor, Glen Coe, Scotland","height":130});
															thumbnails[8909344] = clik.newPhoto({"id":8909344,"src":"IW11344-0705-2_thumb.jpg","galleries_id":468588,"server_id":18,"link":"photo_8909344.html","width":130,"caption":"Sunrise Over The Northern Cairngorms","height":87});
															thumbnails[8620289] = clik.newPhoto({"id":8620289,"src":"I_thumb.Wray1836sml.jpg","galleries_id":324592,"server_id":18,"link":"photo_8620289.html","width":130,"caption":"Lanzarotean Surfers","height":59});
															thumbnails[8620294] = clik.newPhoto({"id":8620294,"src":"IW11-113-0415_4_3_2_1_tmps2crop-3_thumb.jpg","galleries_id":455651,"server_id":18,"link":"photo_8620294.html","width":130,"caption":"Fishing boat, Lytham, Lancashire","height":108});
															thumbnails[8620495] = clik.newPhoto({"id":8620495,"src":"IanMWray10_thumb.1747.jpg","galleries_id":330979,"server_id":18,"link":"photo_8620495.html","width":130,"caption":"The Mint Building, Leeds Centre","height":98});
															thumbnails[8834917] = clik.newPhoto({"id":8834917,"src":"IW11--317-0574_91375AEC-1EC9-D45B-1C93490D8DFDB746_thumb.jpg","galleries_id":464810,"server_id":18,"link":"photo_8834917.html","width":130,"caption":"Chevin Mists 1","height":87});
															thumbnails[8909350] = clik.newPhoto({"id":8909350,"src":"IW11344-0713-2_thumb.jpg","galleries_id":468588,"server_id":18,"link":"photo_8909350.html","width":130,"caption":"Sastrugi","height":80});
															thumbnails[8620498] = clik.newPhoto({"id":8620498,"src":"IanMWray10_thumb.jpg","galleries_id":330979,"server_id":18,"link":"photo_8620498.html","width":130,"caption":"City Island Appartments, Leeds Centre","height":92});
															thumbnails[8652902] = clik.newPhoto({"id":8652902,"src":"IanMWray10.1748_92784343-1EC9-D45B-1C7724EA96EBA645_thumb.jpg","galleries_id":330979,"server_id":18,"link":"photo_8652902.html","width":88,"caption":"Appartments, Brewer Street, Leeds","height":130});
															thumbnails[8652926] = clik.newPhoto({"id":8652926,"src":"_MG_5688_tonemapped_924AF8DA-1EC9-D45B-1C28E1EBCE2FC99C_thumb.jpg","galleries_id":455651,"server_id":18,"link":"photo_8652926.html","width":87,"caption":"'Hogs' ","height":130});
															thumbnails[8742757] = clik.newPhoto({"id":8742757,"src":"IanMWray0034bA.size_thumb.jpg","galleries_id":324592,"server_id":18,"link":"photo_8742757.html","width":130,"caption":"Langdale, Cumbria","height":92});
															thumbnails[8834913] = clik.newPhoto({"id":8834913,"src":"IW11--317-0606_91300606-1EC9-D45B-1C265D47314390D6_thumb.jpg","galleries_id":464810,"server_id":18,"link":"photo_8834913.html","width":130,"caption":"Chevin Mists 2","height":97});
															thumbnails[8909361] = clik.newPhoto({"id":8909361,"src":"IW11344-0754-2_thumb.jpg","galleries_id":468588,"server_id":18,"link":"photo_8909361.html","width":130,"caption":"Climber Cresting Fiacaill Ridge","height":87});
															thumbnails[8741216] = clik.newPhoto({"id":8741216,"src":"IanMWray0054c.A2_thumb.jpg","galleries_id":324592,"server_id":18,"link":"photo_8741216.html","width":130,"caption":"Stickle Tarn, Langdale, Cumbria","height":91});
															thumbnails[8620500] = clik.newPhoto({"id":8620500,"src":"IW11-019021-Edit-IW11-019021-Edit2_thumb.jpg","galleries_id":330979,"server_id":18,"link":"photo_8620500.html","width":130,"caption":"Granary Wharfe Leeds","height":84});
															thumbnails[8652912] = clik.newPhoto({"id":8652912,"src":"IW11097-0432tm_9258E140-1EC9-D45B-1C3D05684F2AD6BC_thumb.jpg","galleries_id":455651,"server_id":18,"link":"photo_8652912.html","width":92,"caption":"Embsay Station, Skipton, North Yorkshire","height":130});
															thumbnails[8755100] = clik.newPhoto({"id":8755100,"src":"IW11--317-0577_912451E2-1EC9-D45B-1CF70FE34221527A_thumb.jpg","galleries_id":464810,"server_id":18,"link":"photo_8755100.html","width":92,"caption":"Chevin Mists 3","height":130});
															thumbnails[8909371] = clik.newPhoto({"id":8909371,"src":"IW11344-0800-2_thumb.jpg","galleries_id":468588,"server_id":18,"link":"photo_8909371.html","width":130,"caption":"Cairngorm Summit","height":76});
															thumbnails[8620292] = clik.newPhoto({"id":8620292,"src":"IanMWray0446-3_thumb.jpg","galleries_id":373269,"server_id":18,"link":"photo_8620292.html","width":130,"caption":"Surprise View, Otley Chevin, West Yorkshire","height":104});
															thumbnails[8620502] = clik.newPhoto({"id":8620502,"src":"IW11-019024-Edit2-4_thumb.jpg","galleries_id":330979,"server_id":18,"link":"photo_8620502.html","width":130,"caption":"Mint Hotel & Candle Building, Leeds Centre","height":93});
															thumbnails[8647320] = clik.newPhoto({"id":8647320,"src":"IanMWray15311_thumb.jpg","galleries_id":330979,"server_id":18,"link":"photo_8647320.html","width":130,"caption":"Windows","height":130});
															thumbnails[8755112] = clik.newPhoto({"id":8755112,"src":"IW11--317-0616_911509AD-1EC9-D45B-1C0018D558BE7826_thumb.jpg","galleries_id":464810,"server_id":18,"link":"photo_8755112.html","width":130,"caption":"Chevin Mists 4","height":102});
															thumbnails[8835818] = clik.newPhoto({"id":8835818,"src":"IanMWray10e_94CBC1CC-1EC9-D45B-1CAF9E87E42EA6C4_thumb.jpg","galleries_id":455651,"server_id":18,"link":"photo_8835818.html","width":104,"caption":"Old Light Stairs- Lundy Island","height":130});
															thumbnails[8909356] = clik.newPhoto({"id":8909356,"src":"IW11344-0722_thumb.jpg","galleries_id":468588,"server_id":18,"link":"photo_8909356.html","width":87,"caption":"Rime Ice On Rocks (B&W)","height":130});
															thumbnails[8741204] = clik.newPhoto({"id":8741204,"src":"_MG_0690_1_2_3_4_5_tm.hug-2_thumb.jpg","galleries_id":373269,"server_id":18,"link":"photo_8741204.html","width":130,"caption":"The Light Centre, Leeds Centre","height":83});
															thumbnails[8620293] = clik.newPhoto({"id":8620293,"src":"IW11-098hug2-2_thumb.jpg","galleries_id":373269,"server_id":18,"link":"photo_8620293.html","width":130,"caption":"Clarence Dock, Leeds Centre","height":104});
															thumbnails[8620506] = clik.newPhoto({"id":8620506,"src":"IW11-098_tm2XXXb-3_thumb.jpg","galleries_id":330979,"server_id":18,"link":"photo_8620506.html","width":130,"caption":"Clarence Dock, Leeds Centre","height":104});
															thumbnails[8755110] = clik.newPhoto({"id":8755110,"src":"IW11--317-0592_910C251B-1EC9-D45B-1C0EFE8B44E03080_thumb.jpg","galleries_id":464810,"server_id":18,"link":"photo_8755110.html","width":87,"caption":"Chevin Mists 5","height":130});
															thumbnails[8909379] = clik.newPhoto({"id":8909379,"src":"IW11344-0824_thumb.jpg","galleries_id":468588,"server_id":18,"link":"photo_8909379.html","width":130,"caption":"Climbers at top of Fiacaill Coloir","height":92});
															thumbnails[9015261] = clik.newPhoto({"id":9015261,"src":"1778_thumb.jpg","galleries_id":455651,"server_id":18,"link":"photo_9015261.html","width":130,"caption":"Lancaster Bomber 'Flying Low'","height":87});
															thumbnails[8741211] = clik.newPhoto({"id":8741211,"src":"IMW10._4016_tonemapped_thumb.jpg","galleries_id":373269,"server_id":18,"link":"photo_8741211.html","width":130,"caption":"Boathouse, Lundy Island","height":96});
															thumbnails[8652907] = clik.newPhoto({"id":8652907,"src":"IW11-019127-IW11-019127hug_927C8BE4-1EC9-D45B-1CD6CE78DDF84DD0_thumb.jpg","galleries_id":330979,"server_id":18,"link":"photo_8652907.html","width":104,"caption":"Bridgewater Place, Leeds Centre","height":130});
															thumbnails[8755113] = clik.newPhoto({"id":8755113,"src":"IW11--317-0625_911EB723-1EC9-D45B-1C827DEBB559919B_thumb.jpg","galleries_id":464810,"server_id":18,"link":"photo_8755113.html","width":130,"caption":"Chevin Mists 6","height":96});
															thumbnails[8909385] = clik.newPhoto({"id":8909385,"src":"IW11344-0836_thumb.jpg","galleries_id":468588,"server_id":18,"link":"photo_8909385.html","width":92,"caption":"Fingers Ridge 1","height":130});
															thumbnails[9015286] = clik.newPhoto({"id":9015286,"src":"1781_thumb.jpg","galleries_id":455651,"server_id":18,"link":"photo_9015286.html","width":130,"caption":"Lancaster Bomber","height":87});
															thumbnails[8652904] = clik.newPhoto({"id":8652904,"src":"IW11-019027-Edit-IW11-019027-Edit.hug_92807545-1EC9-D45B-1C6A560CEEA3D40E_thumb.jpg","galleries_id":330979,"server_id":18,"link":"photo_8652904.html","width":86,"caption":"The 'Candle' Leeds Centre","height":130});
															thumbnails[8620295] = clik.newPhoto({"id":8620295,"src":"IW11-150-059_tmbw_thumb.3rdfuse.360x285usm.jpg","galleries_id":373269,"server_id":18,"link":"photo_8620295.html","width":130,"caption":"Brimham Rocks, North Yorkshire","height":103});
															thumbnails[8647318] = clik.newPhoto({"id":8647318,"src":"IanMWray10_thumb.17451.jpg","galleries_id":330979,"server_id":18,"link":"photo_8647318.html","width":130,"caption":"M621, Holbeck, Leeds","height":87});
															thumbnails[8909390] = clik.newPhoto({"id":8909390,"src":"IW11344-0858_thumb.jpg","galleries_id":468588,"server_id":18,"link":"photo_8909390.html","width":92,"caption":"Fingers Ridge 2","height":130});
															thumbnails[9015295] = clik.newPhoto({"id":9015295,"src":"1781-2_thumb.jpg","galleries_id":455651,"server_id":18,"link":"photo_9015295.html","width":130,"caption":"Detail of 'Lancaster Bomber'","height":86});
															thumbnails[8652909] = clik.newPhoto({"id":8652909,"src":"IW11-194-149_92F2D239-1EC9-D45B-1CAFA6C069D53217_thumb.jpg","galleries_id":373269,"server_id":18,"link":"photo_8652909.html","width":104,"caption":"Malham Tarn, North Yorkshire","height":130});
															thumbnails[8909395] = clik.newPhoto({"id":8909395,"src":"IW11344-0884_thumb.jpg","galleries_id":468588,"server_id":18,"link":"photo_8909395.html","width":92,"caption":"Fingers Ridge 3 (direct finish)","height":130});
															thumbnails[9015309] = clik.newPhoto({"id":9015309,"src":"1856-2_thumb.jpg","galleries_id":455651,"server_id":18,"link":"photo_9015309.html","width":130,"caption":"Typhoon Jet (Eurofighter)","height":87});
															thumbnails[8835236] = clik.newPhoto({"id":8835236,"src":"IW11LX-115-046-2_92FAA0C2-1EC9-D45B-1C3CA121437DFC2E_thumb.jpg","galleries_id":373269,"server_id":18,"link":"photo_8835236.html","width":130,"caption":"Southport Beach","height":73});
															thumbnails[8620456] = clik.newPhoto({"id":8620456,"src":"IW-HighSt_thumb.Hug.jpg","galleries_id":330979,"server_id":18,"link":"photo_8620456.html","width":130,"caption":"High Street, Yeadon, Leeds","height":39});
															thumbnails[8909401] = clik.newPhoto({"id":8909401,"src":"IW11344-0888_thumb.jpg","galleries_id":468588,"server_id":18,"link":"photo_8909401.html","width":92,"caption":"Fingers Ridge 4 (direct finish)","height":130});
															thumbnails[9015314] = clik.newPhoto({"id":9015314,"src":"1856-2-2_thumb.jpg","galleries_id":455651,"server_id":18,"link":"photo_9015314.html","width":130,"caption":"Detail of 'Typhoon Jet (Eurofighter)'","height":87});
															thumbnails[8620290] = clik.newPhoto({"id":8620290,"src":"IanMWray0416_thumb.jpg","galleries_id":455651,"server_id":18,"link":"photo_8620290.html","width":130,"caption":"Pebbles","height":87});
															thumbnails[8620488] = clik.newPhoto({"id":8620488,"src":"_MG_5016_thumb.jpg","galleries_id":330979,"server_id":18,"link":"photo_8620488.html","width":130,"caption":"Ireland Wood Medical Centre, Cookridge, Leeds","height":86});
															thumbnails[8742766] = clik.newPhoto({"id":8742766,"src":"Copy_1_of_IW11280-243_thumb.jpg","galleries_id":324592,"server_id":18,"link":"photo_8742766.html","width":130,"caption":"Buchaille Etive Mor 2, Glen Coe, Scotland","height":104});
															thumbnails[8909405] = clik.newPhoto({"id":8909405,"src":"IW11344-0951_thumb.jpg","galleries_id":468588,"server_id":18,"link":"photo_8909405.html","width":92,"caption":"Fingers Ridge 5","height":130});
															thumbnails[8620440] = clik.newPhoto({"id":8620440,"src":"IW11-098_tonemapped_thumb.jpg","galleries_id":322494,"server_id":18,"link":"photo_8620440.html","width":130,"caption":"Clarence Dock, Leeds Centre","height":104});
															thumbnails[8620490] = clik.newPhoto({"id":8620490,"src":"_MG_5035_thumb.jpg","galleries_id":330979,"server_id":18,"link":"photo_8620490.html","width":130,"caption":"Ireland Wood Medical Centre, Cookridge, Leeds","height":85});
															thumbnails[8909366] = clik.newPhoto({"id":8909366,"src":"IW11344-0794-2_thumb.jpg","galleries_id":468588,"server_id":18,"link":"photo_8909366.html","width":94,"caption":"Climbers on Fingers Ridge (Fluted Buttress)","height":130});
															thumbnails[8958033] = clik.newPhoto({"id":8958033,"src":"IW11-310-0536_thumb.jpg","galleries_id":322494,"server_id":18,"link":"photo_8958033.html","width":86,"caption":"Leeds- Night View","height":130});
															thumbnails[8620300] = clik.newPhoto({"id":8620300,"src":"IW11-020238B_thumb.levsonly1.jpg","galleries_id":373269,"server_id":18,"link":"photo_8620300.html","width":130,"caption":"Spurn Point 1, East Yorkshire","height":92});
															thumbnails[8620464] = clik.newPhoto({"id":8620464,"src":"IW11-019124-Edit_thumb.jpg","galleries_id":322494,"server_id":18,"link":"photo_8620464.html","width":130,"caption":"Bridgewater Place Sunset, Leeds Centre","height":104});
															thumbnails[8620511] = clik.newPhoto({"id":8620511,"src":"IW11104062_thumb.jpg","galleries_id":330979,"server_id":18,"link":"photo_8620511.html","width":130,"caption":"Ireland Wood Medical Centre, Cookridge, Leeds","height":107});
															thumbnails[8909376] = clik.newPhoto({"id":8909376,"src":"IW11344-0807-2_thumb.jpg","galleries_id":468588,"server_id":18,"link":"photo_8909376.html","width":87,"caption":"Fluted Buttress","height":130});
															thumbnails[8620301] = clik.newPhoto({"id":8620301,"src":"IW11-020328b-2_thumb.jpg","galleries_id":373269,"server_id":18,"link":"photo_8620301.html","width":130,"caption":"Spurn Point 2, East Yorkshire","height":87});
															thumbnails[8620458] = clik.newPhoto({"id":8620458,"src":"IW11-019036_thumb.jpg","galleries_id":322494,"server_id":18,"link":"photo_8620458.html","width":130,"caption":"Bridgewater Place, Leeds Centre","height":87});
															thumbnails[8652921] = clik.newPhoto({"id":8652921,"src":"IW11104113_9285D315-1EC9-D45B-1CCA2CCD1B177331_thumb.jpg","galleries_id":330979,"server_id":18,"link":"photo_8652921.html","width":87,"caption":"Ireland Wood Medical Centre, Cookridge, Leeds","height":130});
															thumbnails[8835228] = clik.newPhoto({"id":8835228,"src":"IW11104104_5_6_7_8_9_tonemapped_92D15248-1EC9-D45B-1CE7AABE9E4F34CF_thumb.jpg","galleries_id":330979,"server_id":18,"link":"photo_8835228.html","width":130,"caption":"Ireland Wood Medical Centre, Cookridge, Leeds","height":92});
															thumbnails[8652917] = clik.newPhoto({"id":8652917,"src":"IW11104084_85_86_87_88_89_90_tonemapped_928E6EA0-1EC9-D45B-1CB3C0D891EBA21F_thumb.jpg","galleries_id":330979,"server_id":18,"link":"photo_8652917.html","width":91,"caption":"Ireland Wood Medical Centre, Cookridge, Leeds","height":130});
															thumbnails[8620305] = clik.newPhoto({"id":8620305,"src":"IW11-202--009_thumb.jpg","galleries_id":373269,"server_id":18,"link":"photo_8620305.html","width":130,"caption":"Castlerigg Stone Circle, Keswick, Cumbria","height":52});
															thumbnails[8652919] = clik.newPhoto({"id":8652919,"src":"IW11104102_9293850F-1EC9-D45B-1C9588EBD7C8C8C7_thumb.jpg","galleries_id":330979,"server_id":18,"link":"photo_8652919.html","width":82,"caption":"Ireland Wood Medical Centre, Cookridge, Leeds","height":130});
															thumbnails[8620307] = clik.newPhoto({"id":8620307,"src":"IW11097-211BW_thumb.jpg","galleries_id":373269,"server_id":18,"link":"photo_8620307.html","width":130,"caption":"Langstrothdale, North Yorkshire","height":85});
															thumbnails[8835188] = clik.newPhoto({"id":8835188,"src":"_MG_5010_92A69B97-1EC9-D45B-1C93039C7D16D7A9_thumb.jpg","galleries_id":330979,"server_id":18,"link":"photo_8835188.html","width":104,"caption":"Ireland Wood Medical Centre, Cookridge, Leeds","height":130});
															thumbnails[8652903] = clik.newPhoto({"id":8652903,"src":"IMG_0166_tonemapped_256CFD1B-24E8-5EC4-4F87A103DBFE45A4_thumb.jpg","galleries_id":322494,"server_id":18,"link":"photo_8652903.html","width":97,"caption":"Leeds Liverpool Canal, Leeds Centre","height":130});
															thumbnails[8620494] = clik.newPhoto({"id":8620494,"src":"Copy_1_of_IanMWray10_thumb.1804.jpg","galleries_id":330979,"server_id":18,"link":"photo_8620494.html","width":130,"caption":"Hasan's, Leeds","height":104});
															thumbnails[8652922] = clik.newPhoto({"id":8652922,"src":"IW11280-280_92ED1483-1EC9-D45B-1CF4F2B07271FEBD_thumb.jpg","galleries_id":373269,"server_id":18,"link":"photo_8652922.html","width":87,"caption":"Buchaille Etive Mor, Glen Coe, Scotland","height":130});
															thumbnails[8620472] = clik.newPhoto({"id":8620472,"src":"Copy_1_of_IanMWray10_thumb.1791.jpg","galleries_id":330979,"server_id":18,"link":"photo_8620472.html","width":130,"caption":"Hasan's, Leeds","height":87});
															thumbnails[8620497] = clik.newPhoto({"id":8620497,"src":"IanMWray10_thumb.1789.jpg","galleries_id":330979,"server_id":18,"link":"photo_8620497.html","width":130,"caption":"Hasan's, Leeds","height":87});
															thumbnails[8652925] = clik.newPhoto({"id":8652925,"src":"_MG_2754_94B7A76E-1EC9-D45B-1C57F7595A6B4DCE_thumb.jpg","galleries_id":373269,"server_id":18,"link":"photo_8652925.html","width":104,"caption":" Winterburn Common, Skipton, North Yorkshire","height":130});
															thumbnails[8620474] = clik.newPhoto({"id":8620474,"src":"Copy_1_of_IanMWray10_thumb.1792.jpg","galleries_id":330979,"server_id":18,"link":"photo_8620474.html","width":130,"caption":"Hasan's, Leeds","height":87});
															thumbnails[8620476] = clik.newPhoto({"id":8620476,"src":"Copy_1_of_IanMWray10_thumb.1794.jpg","galleries_id":330979,"server_id":18,"link":"photo_8620476.html","width":130,"caption":"Hasan's, Leeds","height":95});
															thumbnails[8620493] = clik.newPhoto({"id":8620493,"src":"Copy_1_of_IanMWray10_thumb.1798.jpg","galleries_id":330979,"server_id":18,"link":"photo_8620493.html","width":130,"caption":"Hasan's, Leeds","height":96});
															thumbnails[8620345] = clik.newPhoto({"id":8620345,"src":"LM_fin2_thumb.jpg","galleries_id":373269,"server_id":18,"link":"photo_8620345.html","width":130,"caption":"The Cairgorom Mountains from Loch Morlich, Scotland","height":87});
															thumbnails[8620442] = clik.newPhoto({"id":8620442,"src":"IW11-6_thumb.jpg","galleries_id":322494,"server_id":18,"link":"photo_8620442.html","width":130,"caption":"The Aire Valley from 'The Billing', Yeadon, Leeds","height":87});
															thumbnails[8620448] = clik.newPhoto({"id":8620448,"src":"_MG_0698tmc_thumb.sml-3.jpg","galleries_id":322494,"server_id":18,"link":"photo_8620448.html","width":130,"caption":"Leeds Town Hall at Dusk","height":104});
															thumbnails[8620449] = clik.newPhoto({"id":8620449,"src":"_MG_2349_tonemapped_thumb.jpg","galleries_id":322494,"server_id":18,"link":"photo_8620449.html","width":130,"caption":"Canal Bridges, Kirkstall, Leeds","height":87});
															thumbnails[8620451] = clik.newPhoto({"id":8620451,"src":"_MG_8461_2_tm2_thumb.Asize.jpg","galleries_id":322494,"server_id":18,"link":"photo_8620451.html","width":130,"caption":"Kirkstall Abbey, Leeds","height":93});
															thumbnails[8620460] = clik.newPhoto({"id":8620460,"src":"IW11-019044-2_thumb.jpg","galleries_id":322494,"server_id":18,"link":"photo_8620460.html","width":130,"caption":"South Leeds Vista","height":104});
															thumbnails[8957341] = clik.newPhoto({"id":8957341,"src":"LeedsPanoFin_thumb.jpg","galleries_id":322494,"server_id":18,"link":"photo_8957341.html","width":130,"caption":"Leeds Skyline- Morning Light","height":38});
															thumbnails[8957344] = clik.newPhoto({"id":8957344,"src":"LeedsPanoFinbw_thumb.jpg","galleries_id":322494,"server_id":18,"link":"photo_8957344.html","width":130,"caption":"Leeds Skyline (B&W)","height":38});
															thumbnails[8620478] = clik.newPhoto({"id":8620478,"src":"IW11-202--020-2_thumb.jpg","galleries_id":324592,"server_id":18,"link":"photo_8620478.html","width":130,"caption":"Castlerigg Stone Circle, Keswick, Cumbria","height":65});
															thumbnails[8957340] = clik.newPhoto({"id":8957340,"src":"LeedsNightPano_thumb.jpg","galleries_id":322494,"server_id":18,"link":"photo_8957340.html","width":130,"caption":"Leeds Skyline at Night","height":39});
															thumbnails[8957893] = clik.newPhoto({"id":8957893,"src":"LeedsPano2011.197mb_thumb.jpg","galleries_id":322494,"server_id":18,"link":"photo_8957893.html","width":130,"caption":"Leeds Skyline","height":42});
															thumbnails[8957343] = clik.newPhoto({"id":8957343,"src":"LeedsPanoFin-2_thumb.jpg","galleries_id":322494,"server_id":18,"link":"photo_8957343.html","width":130,"caption":"Leeds Skyline- Morning Light- Full Width","height":25});
															thumbnails[8620480] = clik.newPhoto({"id":8620480,"src":"IW11-203-011-2_thumb.jpg","galleries_id":324592,"server_id":18,"link":"photo_8620480.html","width":130,"caption":"Derwent Water Boats, Keswick, Cumbria","height":65});
															thumbnails[8957345] = clik.newPhoto({"id":8957345,"src":"LeedsPanoFinbw-2_thumb.jpg","galleries_id":322494,"server_id":18,"link":"photo_8957345.html","width":130,"caption":"Leeds Skyline (B&W) Full width","height":25});
															thumbnails[8957894] = clik.newPhoto({"id":8957894,"src":"LeedsPano2011a_thumb.jpg","galleries_id":322494,"server_id":18,"link":"photo_8957894.html","width":130,"caption":"Leeds Skyline- Full Width","height":23});
															thumbnails[8620483] = clik.newPhoto({"id":8620483,"src":"IW11-203-030_thumb.jpg","galleries_id":324592,"server_id":18,"link":"photo_8620483.html","width":130,"caption":"Derwent Water, Keswick, Cumbria","height":52});
															thumbnails[8620484] = clik.newPhoto({"id":8620484,"src":"IW11-203-038_thumb.jpg","galleries_id":324592,"server_id":18,"link":"photo_8620484.html","width":130,"caption":"Derwent Water Jetty, Keswick, Cumbria","height":65});
															thumbnails[8620486] = clik.newPhoto({"id":8620486,"src":"IW11-203-063_thumb.jpg","galleries_id":324592,"server_id":18,"link":"photo_8620486.html","width":130,"caption":"Derwent Water Geese, Keswick, Cumbria","height":87});
															thumbnails[8806203] = clik.newPhoto({"id":8806203,"src":"IW11-324-0696bw2_9376EEAB-1EC9-D45B-1CB0495EC5C0946D_thumb.jpg","galleries_id":373269,"server_id":18,"link":"photo_8806203.html","width":130,"caption":"Sea Mist at Selwick Bay, Flamborough, East Yorks.","height":92});
															thumbnails[8806200] = clik.newPhoto({"id":8806200,"src":"IW11-323-0657B-3_thumb.jpg","galleries_id":349335,"server_id":18,"link":"photo_8806200.html","width":130,"caption":"North Landing, Flamborough, East Yorks.","height":78});
															thumbnails[8806202] = clik.newPhoto({"id":8806202,"src":"IW11-324-0696_937C410E-1EC9-D45B-1CAD1C1768111DFF_thumb.jpg","galleries_id":349335,"server_id":18,"link":"photo_8806202.html","width":130,"caption":"Sea Mist at Selwick Bay, Flamborough, East Yorks.","height":92});
															thumbnails[8806215] = clik.newPhoto({"id":8806215,"src":"IMW10._4492_tonemapped2_thumb.jpg","galleries_id":349335,"server_id":18,"link":"photo_8806215.html","width":92,"caption":"Flamborough Lighthouse, East Yorkshire","height":130});
															thumbnails[8741206] = clik.newPhoto({"id":8741206,"src":"_MG_0741-DE-A2_thumb.jpg","galleries_id":349335,"server_id":18,"link":"photo_8741206.html","width":92,"caption":"The Strid, Wharfedale, North Yorkshire","height":130});
															thumbnails[8741209] = clik.newPhoto({"id":8741209,"src":"_MG_1162_3_4_5_6_7_tonemapped_thumb.jpg","galleries_id":349335,"server_id":18,"link":"photo_8741209.html","width":130,"caption":"Janet's Foss, Malham, North Yorkshire","height":98});
															thumbnails[8647324] = clik.newPhoto({"id":8647324,"src":"RibbHd4t1_thumb.jpg","galleries_id":349335,"server_id":18,"link":"photo_8647324.html","width":130,"caption":"Ribblehead Viaduct, North Yorkshire","height":49});
															thumbnails[8620522] = clik.newPhoto({"id":8620522,"src":"IanMWray0446.Asize-2_94BE236A-1EC9-D45B-1C6098A847F148F2_thumb.jpg","galleries_id":349335,"server_id":18,"link":"photo_8620522.html","width":130,"caption":"Surprise View, Otley Chevin, West Yorkshire","height":92});
															thumbnails[8620523] = clik.newPhoto({"id":8620523,"src":"IanMWray10sheep32bc_tonemapped_thumb.jpg","galleries_id":349335,"server_id":18,"link":"photo_8620523.html","width":130,"caption":"Sheep on Rylestone Moor, Skipton, North Yorkshire","height":87});
															thumbnails[8620524] = clik.newPhoto({"id":8620524,"src":"IW11-175-265And10more_tm3x2_thumb.jpg","galleries_id":349335,"server_id":18,"link":"photo_8620524.html","width":130,"caption":"Staithes at Sunrise, North Yorkshire","height":88});
															thumbnails[8620526] = clik.newPhoto({"id":8620526,"src":"IW11--115_thumb.jpg","galleries_id":349335,"server_id":18,"link":"photo_8620526.html","width":130,"caption":"Almscliffe Crag, North Yorkshire","height":42});
															thumbnails[8620530] = clik.newPhoto({"id":8620530,"src":"IW11097-0825tmB-2_thumb.jpg","galleries_id":349335,"server_id":18,"link":"photo_8620530.html","width":130,"caption":"Embsay Station, Skipton, North Yorkshire","height":92});
															thumbnails[8742767] = clik.newPhoto({"id":8742767,"src":"IanMWray10.0754.tm.lrs-2_thumb.jpg","galleries_id":349335,"server_id":18,"link":"photo_8742767.html","width":130,"caption":"The Strid 2, Wharfedale, North Yorkshire","height":93});
															thumbnails[8620521] = clik.newPhoto({"id":8620521,"src":"I_thumb.Wray1889b._lrs.jpg","galleries_id":349335,"server_id":18,"link":"photo_8620521.html","width":130,"caption":"Rylestone Moor, Skipton, North Yorkshire","height":104});
															thumbnails[8620545] = clik.newPhoto({"id":8620545,"src":"IW110662292tm.3c-2_thumb.jpg","galleries_id":349335,"server_id":18,"link":"photo_8620545.html","width":130,"caption":"Norwood Edge, North Yorkshire","height":53});
															thumbnails[8620553] = clik.newPhoto({"id":8620553,"src":"IWLX11100-161-10_filteredAnd9more_tonemapped_thumb.jpg","galleries_id":349335,"server_id":18,"link":"photo_8620553.html","width":130,"caption":"Paul's Pond, Golden Acre Park, Leeds","height":73});
															thumbnails[8991160] = clik.newPhoto({"id":8991160,"src":"Frame_cherry_thumb.jpg","galleries_id":461165,"server_id":18,"link":"photo_8991160.html","width":130,"caption":"Cherry Frame, Bright White Mount, Size Small","height":96});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[461165] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"In Admin","link":"section389415.html","maxRecords":0.0,"photoIDs":[8991160.0],"skipIndex":0,"section_code":"section389415","featured_images":8991160.0,"id":461165,"singleSection":true});				  						galleries[349335] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Yorkshire Landscapes","link":"gallery_349335.html","maxRecords":0.0,"photoIDs":[8806200.0,8806202.0,8806215.0,8741206.0,8741209.0,8647324.0,8620522.0,8620523.0,8620524.0,8620526.0,8620530.0,8742767.0,8620521.0,8620545.0,8620553.0],"skipIndex":0,"section_code":"gallery","featured_images":"8806215,8806202,8806200,8742767,8741209,8741206,8647324,8620553,8620545,8620530,8620526,8620524,8620523,8620522","id":349335,"singleSection":false});				  						galleries[322494] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Urban Views- Leeds","link":"gallery_322494.html","maxRecords":0.0,"photoIDs":[8620440.0,8958033.0,8620464.0,8620458.0,8652903.0,8620442.0,8620448.0,8620449.0,8620451.0,8620460.0,8957341.0,8957344.0,8957340.0,8957893.0,8957343.0,8957345.0,8957894.0],"skipIndex":0,"section_code":"gallery","featured_images":"8958033,8957893,8957341,8957340,8652903,8620464,8620460,8620458,8620451,8620449,8620448,8620440","id":322494,"singleSection":false});				  						galleries[324592] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Beyond Yorkshire","link":"gallery_324592.html","maxRecords":0.0,"photoIDs":[8742758.0,8620289.0,8742757.0,8741216.0,8742766.0,8620478.0,8620480.0,8620483.0,8620484.0,8620486.0],"skipIndex":0,"section_code":"gallery","featured_images":"8742766,8742758,8742757,8741216,8620486,8620484,8620483,8620480,8620478,8620289","id":324592,"singleSection":false});				  						galleries[373269] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Black and White","link":"gallery_373269.html","maxRecords":0.0,"photoIDs":[8620292.0,8741204.0,8620293.0,8741211.0,8620295.0,8652909.0,8835236.0,8620300.0,8620301.0,8620305.0,8620307.0,8652922.0,8652925.0,8620345.0,8806203.0],"skipIndex":0,"section_code":"gallery","featured_images":"8806203,8741211,8741204,8652925,8652922,8652909,8620345,8620307,8620305,8620301,8620300,8620295,8620293,8620292","id":373269,"singleSection":false});				  						galleries[455651] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Something Different","link":"gallery_455651.html","maxRecords":0.0,"photoIDs":[8620294.0,8652926.0,8652912.0,8835818.0,9015261.0,9015286.0,9015295.0,9015309.0,9015314.0,8620290.0],"skipIndex":0,"section_code":"gallery","featured_images":"9015309,9015286,9015261,8835818,8652926,8652912,8620294,8620290","id":455651,"singleSection":false});				  						galleries[330979] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Architecture & Interior","link":"gallery_330979.html","maxRecords":0.0,"photoIDs":[8620495.0,8620498.0,8652902.0,8620500.0,8620502.0,8647320.0,8620506.0,8652907.0,8652904.0,8647318.0,8620456.0,8620488.0,8620490.0,8620511.0,8652921.0,8835228.0,8652917.0,8652919.0,8835188.0,8620494.0,8620472.0,8620497.0,8620474.0,8620476.0,8620493.0],"skipIndex":0,"section_code":"gallery","featured_images":"8835228,8835188,8652921,8652919,8652917,8652907,8652904,8652902,8647320,8647318,8620511,8620506,8620502,8620500,8620498,8620497,8620495,8620494,8620493,8620490,8620488,8620474,8620472,8620456","id":330979,"singleSection":false});				  						galleries[464810] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Chevin Mists Collection","link":"gallery_464810.html","maxRecords":0.0,"photoIDs":[8834917.0,8834913.0,8755100.0,8755112.0,8755110.0,8755113.0],"skipIndex":0,"section_code":"gallery","featured_images":"8834917,8834913,8755113,8755112,8755100","id":464810,"singleSection":false});				  						galleries[468588] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Coire an t-Sneachda","link":"gallery_468588.html","maxRecords":0.0,"photoIDs":[8909344.0,8909350.0,8909361.0,8909371.0,8909356.0,8909379.0,8909385.0,8909390.0,8909395.0,8909401.0,8909405.0,8909366.0,8909376.0],"skipIndex":0,"section_code":"gallery","featured_images":"8909405,8909390,8909361,8909350,8909344","id":468588,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8909344,8620294,8909361,8834913,8741216,9015261,8620506,9015286,8755113,8742766,8620464,8620448,8620478,8620480,8620486,8806200,8806202,8741209,8620524,8742767';
imageSets[2] = '8909344,8742758,8909350,8834917,8620495,8620294,8620289,8909361,8834913,8742757,8652926,8652902,8620498,8741216,8755100,8652912,8620500,8835818,8755112,8647320,8620502,8620292,8741204,9015261,8620506,8620293,8741211,9015286,8755113,8652907,8652904,8909390,8647318,8620295,9015309,8652909,8620456,8909405,8742766,8620488,8620290,8620490,8620440,8958033,8620511,8620464,8620300,8620458,8620301,8652921,8835228,8652917,8620305,8652919,8835188,8620307,8652903,8652922,8620494,8620472,8620497,8652925,8620474,8620493,8620345,8620448,8620449,8620451,8620460,8957341,8957340,8620478,8957893,8620480,8620483,8620484,8620486,8806203,8806200,8806202,8806215,8741206,8741209,8647324,8620522,8620523,8620524,8620526,8742767,8620530,8620545,8620553';
imageSets[3] = '8620500,8620502,8620506,8620488,8620490,8620511,8620497,8620493,8620483,8620484,8620522,8620523,8620545,8620553';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/morrywray/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/morrywray/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/morrywray/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/morrywray/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/morrywray/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/morrywray/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/morrywray/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/morrywray/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/morrywray/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/morrywray/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/morrywray/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/morrywray/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/morrywray/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/morrywray/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/morrywray/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/morrywray/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/morrywray/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/morrywray/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/morrywray/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/morrywray/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/morrywray/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/morrywray/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/morrywray/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/morrywray/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/morrywray/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/morrywray/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/morrywray/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 = 'Yorkshire Art 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 basket').show();}
				else{
					$('#paymentConfirm', root).text('Item added to basket').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else if (this.payment_groups_id !== '') {
		temp += '<p>Please open drop down box to see alternative size options. Prices include p&p to UK addresses.</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="MORRYWRAY">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to basket" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View basket" 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 basket</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;
	}
}

			

