window.thumbnails = {};
															thumbnails[3103056] = clik.newPhoto({"id":3103056,"src":"11 Rainbow Refraction (3)_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"RAINBOW REFRACTION","height":76});
															thumbnails[3103063] = clik.newPhoto({"id":3103063,"src":"22 Lilac Tree_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"LILAC TREE","height":192});
															thumbnails[3103070] = clik.newPhoto({"id":3103070,"src":"24 Snowdrops at Cambo_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"SNOWDROPS AT CAMBO","height":93});
															thumbnails[3103072] = clik.newPhoto({"id":3103072,"src":"26 The Recital_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"THE RECITAL","height":81});
															thumbnails[3103089] = clik.newPhoto({"id":3103089,"src":"82 Girl with Parasol  Alhambra Gardens_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"GIRL WITH PARASOL","height":137});
															thumbnails[3103052] = clik.newPhoto({"id":3103052,"src":"1 Autumn_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"AUTUMN","height":90});
															thumbnails[3103096] = clik.newPhoto({"id":3103096,"src":"88 Sailing through the Aurora_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"SAILING THROUGH THE AURORA","height":155});
															thumbnails[3103059] = clik.newPhoto({"id":3103059,"src":"14 Red Boat  Stormy Sea_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"RED BOAT  STORMY SEA","height":83});
															thumbnails[3103076] = clik.newPhoto({"id":3103076,"src":"27 Earth Satellite_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"EARTH SATELLITE","height":165});
															thumbnails[3103069] = clik.newPhoto({"id":3103069,"src":"23 Caledonian Way_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"CALEDONIAN WAY","height":81});
															thumbnails[3103077] = clik.newPhoto({"id":3103077,"src":"80 St Andrews farmhouse Cheese Company_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"ST ANDREWS FARMHOUSE CHEESE COMPANY","height":98});
															thumbnails[3103098] = clik.newPhoto({"id":3103098,"src":"91 Crovie_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"CROVIE","height":112});
															thumbnails[3103080] = clik.newPhoto({"id":3103080,"src":"81 Orange fruit Blue Tree_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"ORANGE FRUIT BLUE TREE","height":78});
															thumbnails[3103093] = clik.newPhoto({"id":3103093,"src":"83 Girl with Compact_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"GIRL WITH COMPACT","height":142});
															thumbnails[550670] = clik.newPhoto({"id":550670,"src":"alium_thumb.jpg","galleries_id":42249,"server_id":1,"link":"photo_550670.html","width":130,"caption":"Allium","height":87});
															thumbnails[552117] = clik.newPhoto({"id":552117,"src":"mesembryanthemum_thumb.jpg","galleries_id":42249,"server_id":1,"link":"photo_552117.html","width":130,"caption":"Mesembryanthemum","height":195});
															thumbnails[552118] = clik.newPhoto({"id":552118,"src":"outgoing tide, tentsmuir_thumb.jpg","galleries_id":42249,"server_id":1,"link":"photo_552118.html","width":130,"caption":"Outgoing Tide, Tentsmuir","height":195});
															thumbnails[552119] = clik.newPhoto({"id":552119,"src":"stack, sandwood bay_thumb.jpg","galleries_id":42249,"server_id":1,"link":"photo_552119.html","width":130,"caption":"Stack<br>\r\nSandwood Bay","height":195});
															thumbnails[552120] = clik.newPhoto({"id":552120,"src":"river braan, the hermitage_thumb.jpg","galleries_id":42249,"server_id":1,"link":"photo_552120.html","width":130,"caption":"River Braan<br>\r\nThe Hermitage, Perthshire","height":195});
															thumbnails[552121] = clik.newPhoto({"id":552121,"src":"sunset over the kyle of tongue_thumb.jpg","galleries_id":42249,"server_id":1,"link":"photo_552121.html","width":130,"caption":"Sunset over the Kyle of Tongue<br>\r\nSutherland","height":195});
															thumbnails[552122] = clik.newPhoto({"id":552122,"src":"tree at dusk, aberdeen_thumb.jpg","galleries_id":42249,"server_id":1,"link":"photo_552122.html","width":130,"caption":"Tree at Dusk<br>\r\nAberdeen","height":195});
															thumbnails[1951792] = clik.newPhoto({"id":1951792,"src":"Laid  Quiet Land_thumb.jpg","galleries_id":64533,"server_id":1,"link":"photo_1951792.html","width":130,"caption":"Laid  , Quiet Land","height":51});
															thumbnails[3080596] = clik.newPhoto({"id":3080596,"src":"Girl with Parasol 4web_thumb.jpg","galleries_id":41877,"server_id":1,"link":"photo_3080596.html","width":130,"caption":"Girl with Parasol","height":179});
															thumbnails[3290562] = clik.newPhoto({"id":3290562,"src":"TeaWithMyFather_thumb.jpg","galleries_id":41884,"server_id":1,"link":"photo_3290562.html","width":130,"caption":"Tea with my Father","height":195});
															thumbnails[3290564] = clik.newPhoto({"id":3290564,"src":"UntitledPortraitNo1_thumb.jpg","galleries_id":41884,"server_id":1,"link":"photo_3290564.html","width":130,"caption":"Untitled Portrait","height":195});
															thumbnails[5836523] = clik.newPhoto({"id":5836523,"src":"web_Victory_Hall_Aboyne__March_2010_thumb.jpg","galleries_id":41877,"server_id":1,"link":"photo_5836523.html","width":130,"caption":"Victory Hall ABOYNE","height":104});
															thumbnails[538373] = clik.newPhoto({"id":538373,"src":"Bobby at Greyfriars_thumb.JPG","galleries_id":41872,"server_id":1,"link":"photo_538373.html","width":130,"caption":"Bobby at Greyfriars","height":57});
															thumbnails[538392] = clik.newPhoto({"id":538392,"src":"AT Web Clare_thumb.jpg","galleries_id":41873,"server_id":1,"link":"photo_538392.html","width":130,"caption":"In Sula's Wake","height":90});
															thumbnails[538408] = clik.newPhoto({"id":538408,"src":"11 Five Sisters of Ki~00C0_thumb.jpg","galleries_id":41877,"server_id":1,"link":"photo_538408.html","width":130,"caption":"The Five Sisters of Kintail","height":92});
															thumbnails[538417] = clik.newPhoto({"id":538417,"src":"Modern Piano_thumb.jpg","galleries_id":41877,"server_id":1,"link":"photo_538417.html","width":130,"caption":"Modern Piano","height":184});
															thumbnails[538420] = clik.newPhoto({"id":538420,"src":"Gentle Giant    Ron Forbes copy_thumb.jpg","galleries_id":41875,"server_id":1,"link":"photo_538420.html","width":130,"caption":"Gentle Giant","height":107});
															thumbnails[545407] = clik.newPhoto({"id":545407,"src":"Chef copy_thumb.jpg","galleries_id":42216,"server_id":1,"link":"photo_545407.html","width":130,"caption":"Chef","height":81});
															thumbnails[545408] = clik.newPhoto({"id":545408,"src":"_9051797_thumb.JPG","galleries_id":42216,"server_id":1,"link":"photo_545408.html","width":130,"caption":"Froggie (2)","height":180});
															thumbnails[550660] = clik.newPhoto({"id":550660,"src":"white rose_thumb.jpg","galleries_id":42249,"server_id":1,"link":"photo_550660.html","width":130,"caption":"White Rose","height":87});
															thumbnails[552124] = clik.newPhoto({"id":552124,"src":"loch rannoch1_thumb.jpg","galleries_id":42249,"server_id":1,"link":"photo_552124.html","width":130,"caption":"Loch Rannoch","height":87});
															thumbnails[581679] = clik.newPhoto({"id":581679,"src":"Artiststogether5_thumb.jpg","galleries_id":41884,"server_id":1,"link":"photo_581679.html","width":130,"caption":"Crail Harbour","height":173});
															thumbnails[581690] = clik.newPhoto({"id":581690,"src":"Artiststogether11_thumb.jpg","galleries_id":41884,"server_id":1,"link":"photo_581690.html","width":130,"caption":"Pittenweem Rocks","height":194});
															thumbnails[583751] = clik.newPhoto({"id":583751,"src":"Bear & Cub_thumb.jpg","galleries_id":42216,"server_id":1,"link":"photo_583751.html","width":130,"caption":"Bear & Cub","height":186});
															thumbnails[1030352] = clik.newPhoto({"id":1030352,"src":"Mecon MFS 2 embed copy_thumb.jpg","galleries_id":76880,"server_id":1,"link":"photo_1030352.html","width":130,"caption":"Meconopsis","height":193});
															thumbnails[1030444] = clik.newPhoto({"id":1030444,"src":"Merlin perching_thumb.jpg","galleries_id":76880,"server_id":1,"link":"photo_1030444.html","width":130,"caption":"Merlin","height":187});
															thumbnails[1030455] = clik.newPhoto({"id":1030455,"src":"MFS Redheads_thumb.jpg","galleries_id":76880,"server_id":1,"link":"photo_1030455.html","width":130,"caption":"Redheads","height":172});
															thumbnails[1951775] = clik.newPhoto({"id":1951775,"src":"Balnakeil  Durness_thumb.jpg","galleries_id":64533,"server_id":1,"link":"photo_1951775.html","width":130,"caption":"Balnakeil, Durness","height":172});
															thumbnails[1951789] = clik.newPhoto({"id":1951789,"src":"Croft in Winter D08_thumb.jpg","galleries_id":64533,"server_id":1,"link":"photo_1951789.html","width":130,"caption":"Croft in Winter","height":98});
															thumbnails[1951794] = clik.newPhoto({"id":1951794,"src":"Sangomore crop_thumb.jpg","galleries_id":64533,"server_id":1,"link":"photo_1951794.html","width":130,"caption":"Sangomore<br>\r\nDurness    Sutherland","height":98});
															thumbnails[3290553] = clik.newPhoto({"id":3290553,"src":"ReturningToRoost_thumb.jpg","galleries_id":41884,"server_id":1,"link":"photo_3290553.html","width":130,"caption":"Returning to Roost","height":87});
															thumbnails[538380] = clik.newPhoto({"id":538380,"src":"FOOTPRINTS_thumb.jpg","galleries_id":41872,"server_id":1,"link":"photo_538380.html","width":130,"caption":"A Perthshire winter","height":107});
															thumbnails[538399] = clik.newPhoto({"id":538399,"src":"after Picasso_thumb.jpg","galleries_id":41874,"server_id":1,"link":"photo_538399.html","width":130,"caption":"After Picasso","height":185});
															thumbnails[538409] = clik.newPhoto({"id":538409,"src":"12 Over the Sea to Skye_thumb.jpg","galleries_id":41877,"server_id":1,"link":"photo_538409.html","width":130,"caption":"Over the Sea to Skye","height":92});
															thumbnails[538413] = clik.newPhoto({"id":538413,"src":"A4 Print  Moonlight S~00A3 copy_thumb.jpg","galleries_id":41877,"server_id":1,"link":"photo_538413.html","width":130,"caption":"Moonlight Sonata","height":80});
															thumbnails[538422] = clik.newPhoto({"id":538422,"src":"Still Life with Fruit  Ron Forbes_thumb.jpg","galleries_id":41875,"server_id":1,"link":"photo_538422.html","width":130,"caption":"Still Life with Fruit","height":91});
															thumbnails[545409] = clik.newPhoto({"id":545409,"src":"_9051794_thumb.JPG","galleries_id":42216,"server_id":1,"link":"photo_545409.html","width":130,"caption":"Froggie (3)","height":177});
															thumbnails[550665] = clik.newPhoto({"id":550665,"src":"kyle of durness_thumb.jpg","galleries_id":42249,"server_id":1,"link":"photo_550665.html","width":130,"caption":"Kyle of Durness","height":195});
															thumbnails[1030438] = clik.newPhoto({"id":1030438,"src":"Golden Eagle MFS1_thumb.jpg","galleries_id":76880,"server_id":1,"link":"photo_1030438.html","width":130,"caption":"Golden Eagle","height":121});
															thumbnails[1030449] = clik.newPhoto({"id":1030449,"src":"MFS 4 Red Poppies_thumb.jpg","galleries_id":76880,"server_id":1,"link":"photo_1030449.html","width":130,"caption":"4 Red Poppies","height":169});
															thumbnails[1030460] = clik.newPhoto({"id":1030460,"src":"Multi Mecon WEB_thumb.jpg","galleries_id":76880,"server_id":1,"link":"photo_1030460.html","width":130,"caption":"Meconopsis (multi heads)","height":93});
															thumbnails[1951777] = clik.newPhoto({"id":1951777,"src":"Balnakeil Bay & Cape Wrath_thumb.jpg","galleries_id":64533,"server_id":1,"link":"photo_1951777.html","width":130,"caption":"Balnakeil Bay & Cape Wrath","height":176});
															thumbnails[1951782] = clik.newPhoto({"id":1951782,"src":"by Keoldale Sutherland_thumb.jpg","galleries_id":64533,"server_id":1,"link":"photo_1951782.html","width":130,"caption":"By Keoldale<br>\r\nSutherland","height":98});
															thumbnails[1951793] = clik.newPhoto({"id":1951793,"src":"Laid  Winter Sunshine_thumb.jpg","galleries_id":64533,"server_id":1,"link":"photo_1951793.html","width":130,"caption":"Laid,   Winter Sunshine","height":170});
															thumbnails[1951796] = clik.newPhoto({"id":1951796,"src":"Storm passing Loch Eribol_thumb.jpg","galleries_id":64533,"server_id":1,"link":"photo_1951796.html","width":130,"caption":"Storm passing - Loch Eribol","height":97});
															thumbnails[538382] = clik.newPhoto({"id":538382,"src":"Holyrood_thumb.jpg","galleries_id":41872,"server_id":1,"link":"photo_538382.html","width":130,"caption":"Holyrood","height":92});
															thumbnails[538402] = clik.newPhoto({"id":538402,"src":"icon series_thumb.jpg","galleries_id":41874,"server_id":1,"link":"photo_538402.html","width":130,"caption":"Portrait - Icon Series","height":182});
															thumbnails[538410] = clik.newPhoto({"id":538410,"src":"13 The Black Cuillins~00C2_thumb.jpg","galleries_id":41877,"server_id":1,"link":"photo_538410.html","width":130,"caption":"The Black Cuillins","height":92});
															thumbnails[538414] = clik.newPhoto({"id":538414,"src":"Fife Boats copy_thumb.jpg","galleries_id":41877,"server_id":1,"link":"photo_538414.html","width":130,"caption":"Fife Boats","height":94});
															thumbnails[545410] = clik.newPhoto({"id":545410,"src":"_9051793_thumb.JPG","galleries_id":42216,"server_id":1,"link":"photo_545410.html","width":130,"caption":"Froggie (1)","height":179});
															thumbnails[545414] = clik.newPhoto({"id":545414,"src":"OLDCOURSEINWINTER Stan Farrow Photography_thumb.jpg","galleries_id":41884,"server_id":1,"link":"photo_545414.html","width":130,"caption":"Old Course in Winter<br>\r\nSt. Andrews","height":89});
															thumbnails[545605] = clik.newPhoto({"id":545605,"src":"Clare Eggs 1_thumb.jpg","galleries_id":41873,"server_id":1,"link":"photo_545605.html","width":130,"caption":"Ab Ovo","height":82});
															thumbnails[590362] = clik.newPhoto({"id":590362,"src":"Musical Inspirations ~0021 copy_thumb.jpg","galleries_id":41877,"server_id":1,"link":"photo_590362.html","width":130,"caption":"Musicians","height":85});
															thumbnails[835106] = clik.newPhoto({"id":835106,"src":"Ben Loyal_thumb.jpg","galleries_id":64533,"server_id":1,"link":"photo_835106.html","width":130,"caption":"Ben Loyal","height":103});
															thumbnails[1030452] = clik.newPhoto({"id":1030452,"src":"MFS Lg Poppy Group copy_thumb.jpg","galleries_id":76880,"server_id":1,"link":"photo_1030452.html","width":130,"caption":"Field Edge","height":167});
															thumbnails[1951779] = clik.newPhoto({"id":1951779,"src":"Ben Loyal_1_thumb.jpg","galleries_id":64533,"server_id":1,"link":"photo_1951779.html","width":130,"caption":"Ben Loyal","height":81});
															thumbnails[3290551] = clik.newPhoto({"id":3290551,"src":"Regrets_thumb.jpg","galleries_id":41884,"server_id":1,"link":"photo_3290551.html","width":130,"caption":"Regrets","height":130});
															thumbnails[538385] = clik.newPhoto({"id":538385,"src":"Paris Boulevard_thumb.jpg","galleries_id":41872,"server_id":1,"link":"photo_538385.html","width":130,"caption":"Paris Boulevard","height":97});
															thumbnails[538395] = clik.newPhoto({"id":538395,"src":"after Klimt_thumb.jpg","galleries_id":41874,"server_id":1,"link":"photo_538395.html","width":130,"caption":"After Klimt","height":183});
															thumbnails[538416] = clik.newPhoto({"id":538416,"src":"Harbour Houses Pitten~00B7_thumb.jpg","galleries_id":41877,"server_id":1,"link":"photo_538416.html","width":130,"caption":"Harbour Houses, Pittenweem","height":92});
															thumbnails[545415] = clik.newPhoto({"id":545415,"src":"RUSTANDWOO   Stan Farrow Photography_thumb.jpg","galleries_id":41884,"server_id":1,"link":"photo_545415.html","width":130,"caption":"Rust & Wood - Newburgh Boats","height":195});
															thumbnails[581676] = clik.newPhoto({"id":581676,"src":"Artiststogether4_thumb.jpg","galleries_id":41884,"server_id":1,"link":"photo_581676.html","width":130,"caption":"The Longest Day<br>\r\nEast Sands, St.Andrews","height":72});
															thumbnails[583752] = clik.newPhoto({"id":583752,"src":"Pink Birdie (1)_thumb.jpg","galleries_id":42216,"server_id":1,"link":"photo_583752.html","width":130,"caption":"Pink Birdie (1)","height":179});
															thumbnails[583753] = clik.newPhoto({"id":583753,"src":"Pink Birdie (2)_thumb.jpg","galleries_id":42216,"server_id":1,"link":"photo_583753.html","width":130,"caption":"Pink Birdie (2)","height":183});
															thumbnails[583755] = clik.newPhoto({"id":583755,"src":"Pink Birdie (3)_thumb.jpg","galleries_id":42216,"server_id":1,"link":"photo_583755.html","width":130,"caption":"Pink Birdie (3)","height":183});
															thumbnails[1030463] = clik.newPhoto({"id":1030463,"src":"Osprey Head_thumb.jpg","galleries_id":76880,"server_id":1,"link":"photo_1030463.html","width":130,"caption":"Osprey Head","height":158});
															thumbnails[1951795] = clik.newPhoto({"id":1951795,"src":"Sarsgrum  Kyle of Durness_thumb.jpg","galleries_id":64533,"server_id":1,"link":"photo_1951795.html","width":130,"caption":"Sarsgrum<br>\r\nKyle of Durness","height":51});
															thumbnails[3290555] = clik.newPhoto({"id":3290555,"src":"SandPortrait_thumb.jpg","galleries_id":41884,"server_id":1,"link":"photo_3290555.html","width":130,"caption":"Sand Portrait","height":195});
															thumbnails[3290566] = clik.newPhoto({"id":3290566,"src":"Valia_thumb.jpg","galleries_id":41884,"server_id":1,"link":"photo_3290566.html","width":130,"caption":"Valia","height":196});
															thumbnails[538404] = clik.newPhoto({"id":538404,"src":"Motel_thumb.jpg","galleries_id":41874,"server_id":1,"link":"photo_538404.html","width":130,"caption":"Pink Motel","height":72});
															thumbnails[538412] = clik.newPhoto({"id":538412,"src":"14 Rainbow Refraction (3)_thumb.jpg","galleries_id":41877,"server_id":1,"link":"photo_538412.html","width":130,"caption":"Rainbow Refraction","height":92});
															thumbnails[538421] = clik.newPhoto({"id":538421,"src":"His & Hers    Ron Forbes_thumb.jpg","galleries_id":41875,"server_id":1,"link":"photo_538421.html","width":130,"caption":"His & Hers","height":93});
															thumbnails[545416] = clik.newPhoto({"id":545416,"src":"ROSE8email_thumb.jpg","galleries_id":41884,"server_id":1,"link":"photo_545416.html","width":130,"caption":"Rose for Malievich","height":130});
															thumbnails[590363] = clik.newPhoto({"id":590363,"src":"Glen Clova JPEG_thumb.jpg","galleries_id":41877,"server_id":1,"link":"photo_590363.html","width":130,"caption":"Glen Clova","height":92});
															thumbnails[1951784] = clik.newPhoto({"id":1951784,"src":"By Loch Meadaidh, Kyle of Durness_thumb.jpg","galleries_id":64533,"server_id":1,"link":"photo_1951784.html","width":130,"caption":"By Loch Meadaidch","height":98});
															thumbnails[538387] = clik.newPhoto({"id":538387,"src":"Soldier's Leap, Killiecrankie_thumb.jpg","galleries_id":41872,"server_id":1,"link":"photo_538387.html","width":130,"caption":"Soldier's Leap, Killiecrankie","height":98});
															thumbnails[538406] = clik.newPhoto({"id":538406,"src":"open mind_thumb.jpg","galleries_id":41874,"server_id":1,"link":"photo_538406.html","width":130,"caption":"Open Mind","height":173});
															thumbnails[590364] = clik.newPhoto({"id":590364,"src":"A4 Print Balcarres Ar~00A6_thumb.jpg","galleries_id":41877,"server_id":1,"link":"photo_590364.html","width":130,"caption":"Balcarres","height":92});
															thumbnails[1951786] = clik.newPhoto({"id":1951786,"src":"By the Hope Road_thumb.jpg","galleries_id":64533,"server_id":1,"link":"photo_1951786.html","width":130,"caption":"By the Hope Road","height":98});
															thumbnails[538388] = clik.newPhoto({"id":538388,"src":"St_thumb. Monans.jpg","galleries_id":41872,"server_id":1,"link":"photo_538388.html","width":130,"caption":"St. Monans","height":96});
															thumbnails[538407] = clik.newPhoto({"id":538407,"src":"valentine's day_thumb.jpg","galleries_id":41874,"server_id":1,"link":"photo_538407.html","width":130,"caption":"Valentine's Day","height":173});
															thumbnails[538418] = clik.newPhoto({"id":538418,"src":"Stromness Art Gallery  Orkney_thumb.jpg","galleries_id":41877,"server_id":1,"link":"photo_538418.html","width":130,"caption":"Stromness, Orkney","height":95});
															thumbnails[590366] = clik.newPhoto({"id":590366,"src":"A4 Print Algarve impr~00A5_thumb.jpg","galleries_id":41877,"server_id":1,"link":"photo_590366.html","width":130,"caption":"Algarve<br>\r\nImpressions","height":92});
															thumbnails[590367] = clik.newPhoto({"id":590367,"src":"A4 Print  Main Street~00A2_thumb.jpg","galleries_id":41877,"server_id":1,"link":"photo_590367.html","width":130,"caption":"Main Street<br>\r\nStromness","height":92});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[41872] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"James Bowman  D.A.","link":"gallery_41872.html","maxRecords":0.0,"photoIDs":[538373.0,538380.0,538382.0,538385.0,538387.0,538388.0],"skipIndex":0,"section_code":"gallery","featured_images":"538388,538385,538382,538380,538373","id":41872,"singleSection":false});				  						galleries[64533] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Sue Challis","link":"gallery_64533.html","maxRecords":0.0,"photoIDs":[1951792.0,1951775.0,1951789.0,1951794.0,1951777.0,1951782.0,1951793.0,1951796.0,835106.0,1951779.0,1951795.0,1951784.0,1951786.0],"skipIndex":0,"section_code":"gallery","featured_images":"1951796,1951794,1951793,835106","id":64533,"singleSection":false});				  						galleries[41884] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Stan Farrow","link":"gallery_41884.html","maxRecords":0.0,"photoIDs":[3290562.0,3290564.0,581679.0,581690.0,3290553.0,545414.0,3290551.0,545415.0,581676.0,3290555.0,3290566.0,545416.0],"skipIndex":0,"section_code":"gallery","featured_images":"3290553,3290551,581679,545416","id":41884,"singleSection":false});				  						galleries[41873] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"S.Clare M.Fernie","link":"gallery_41873.html","maxRecords":0.0,"photoIDs":[538392.0,545605.0],"skipIndex":0,"section_code":"gallery","featured_images":"545605,538392","id":41873,"singleSection":false});				  						galleries[41875] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Ron Forbes D.A","link":"gallery_41875.html","maxRecords":0.0,"photoIDs":[538420.0,538422.0,538421.0],"skipIndex":0,"section_code":"gallery","featured_images":"538422,538420","id":41875,"singleSection":false});				  						galleries[41874] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Peter Green","link":"gallery_41874.html","maxRecords":0.0,"photoIDs":[538399.0,538402.0,538395.0,538404.0,538406.0,538407.0],"skipIndex":0,"section_code":"gallery","featured_images":"538404,538402,538399,538395","id":41874,"singleSection":false});				  						galleries[41877] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Philip Greene","link":"gallery_41877.html","maxRecords":0.0,"photoIDs":[3080596.0,5836523.0,538408.0,538417.0,538409.0,538413.0,538410.0,538414.0,590362.0,538416.0,538412.0,590363.0,590364.0,538418.0,590366.0,590367.0],"skipIndex":0,"section_code":"gallery","featured_images":"3080596,590367,590366,590362,538418,538417,538414,538413,538412,538408","id":41877,"singleSection":false});				  						galleries[42249] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Craig MacKenzie","link":"gallery_42249.html","maxRecords":0.0,"photoIDs":[550670.0,552117.0,552118.0,552119.0,552120.0,552121.0,552122.0,550660.0,552124.0,550665.0],"skipIndex":0,"section_code":"gallery","featured_images":"552124,552121,552118,550665,550660","id":42249,"singleSection":false});				  						galleries[42216] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Megan Ramsay","link":"gallery_42216.html","maxRecords":0.0,"photoIDs":[545407.0,545408.0,583751.0,545409.0,545410.0,583752.0,583753.0,583755.0],"skipIndex":0,"section_code":"gallery","featured_images":"583753,583752,583751,545408,545407","id":42216,"singleSection":false});				  						galleries[76880] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Margaret F. Stevenson","link":"gallery_76880.html","maxRecords":0.0,"photoIDs":[1030352.0,1030444.0,1030455.0,1030438.0,1030449.0,1030460.0,1030452.0,1030463.0],"skipIndex":0,"section_code":"gallery","featured_images":"1030463,1030460,1030455,1030452,1030449","id":76880,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '3290553,3290551,3103096,3103089,3103072,3103069,3103063,3103052,3080596,1951796,1951794,1951793,1030463,1030460,1030455,1030452,1030449,1030438,1030352,835106,590366,590362,583753,581679,552124,552121,552118,550660,545605,545416,538422,538418,538413,538412,538408,538402,538399,538395,538392,538388,538382,538380,538373';
imageSets[2] = '3290553,3290551,3103096,3103089,3103077,3103076,3103072,3103070,3103069,3103063,3103052,3080596,1951796,1951794,1951793,1030463,1030460,1030455,1030452,1030449,835106,590367,590366,590362,583753,583752,583751,581679,552124,552121,552118,550665,550660,545605,545416,545408,545407,538422,538420,538418,538417,538414,538413,538412,538408,538404,538402,538399,538395,538392,538388,538385,538382,538380,538373';
imageSets[3] = '5836523,3290566,3290564,3290562,3290555,3290553,3290551,3103098,3103096,3103093,3103089,3103080,3103077,3103076,3103072,3103070,3103069,3103063,3103059,3103056,3103052,3080596,1951796,1951795,1951794,1951793,1951792,1951789,1951786,1951784,1951782,1951779,1951777,1951775,1030463,1030460,1030455,1030452,1030449,1030444,1030438,1030352,835106,590367,590366,590364,590363,590362,583755,583753';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/arttog/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/arttog/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/arttog/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/arttog/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/arttog/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/arttog/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/arttog/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/arttog/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/arttog/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/arttog/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/arttog/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/arttog/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/arttog/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/arttog/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/arttog/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/arttog/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/arttog/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/arttog/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/arttog/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/arttog/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/arttog/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/arttog/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/arttog/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/arttog/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = backgrounds && backgrounds[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'artiststogether: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
	else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id),					title: galleries[gallery_id].title				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

