window.thumbnails = {};
															thumbnails[8657693] = clik.newPhoto({"id":8657693,"src":"stand_at_tent_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":110});
															thumbnails[5276096] = clik.newPhoto({"id":5276096,"src":"IMM_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":178});
															thumbnails[7771831] = clik.newPhoto({"id":7771831,"src":"web_2_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":184});
															thumbnails[7771834] = clik.newPhoto({"id":7771834,"src":"web_3_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":173});
															thumbnails[7771835] = clik.newPhoto({"id":7771835,"src":"web_4_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":98});
															thumbnails[8050134] = clik.newPhoto({"id":8050134,"src":"TL_blk_sq_copy_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":130});
															thumbnails[8470342] = clik.newPhoto({"id":8470342,"src":"TL11-125x125-banner_thumb.gif","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":130});
															thumbnails[8470550] = clik.newPhoto({"id":8470550,"src":"for_website_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":128});
															thumbnails[9051514] = clik.newPhoto({"id":9051514,"src":"outlet20gallery20postcard20one202_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":92});
															thumbnails[9056537] = clik.newPhoto({"id":9056537,"src":"remnants_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Remnants, for Anthropologie","height":116});
															thumbnails[9056543] = clik.newPhoto({"id":9056543,"src":"untitled_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Untitled, for Anthropologie","height":98});
															thumbnails[9056547] = clik.newPhoto({"id":9056547,"src":"untitled_sv2_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Remnants, side view","height":98});
															thumbnails[9056555] = clik.newPhoto({"id":9056555,"src":"conran_samples_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"conran samples","height":173});
															thumbnails[9056558] = clik.newPhoto({"id":9056558,"src":"untitled_sv_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Untitled side view","height":98});
															thumbnails[3433180] = clik.newPhoto({"id":3433180,"src":"hanging garden 61_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"sheds","height":141});
															thumbnails[3433157] = clik.newPhoto({"id":3433157,"src":"Untitled-32_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"containers","height":143});
															thumbnails[5832943] = clik.newPhoto({"id":5832943,"src":"dulwich_advert_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":130});
															thumbnails[3433163] = clik.newPhoto({"id":3433163,"src":"Untitled-42_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"shacks","height":141});
															thumbnails[5832945] = clik.newPhoto({"id":5832945,"src":"tokyo_advert_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":146});
															thumbnails[3433167] = clik.newPhoto({"id":3433167,"src":"Untitled-52_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"dwellings","height":141});
															thumbnails[6171225] = clik.newPhoto({"id":6171225,"src":"final_wallace_space_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":123});
															thumbnails[3433172] = clik.newPhoto({"id":3433172,"src":"Untitled-82_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"dens","height":141});
															thumbnails[6171263] = clik.newPhoto({"id":6171263,"src":"arts_council_logo_for_web_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":130});
															thumbnails[9053949] = clik.newPhoto({"id":9053949,"src":"anus_piece_thumb.jpg","galleries_id":420106,"server_id":5,"link":"photo_9053949.html","width":130,"caption":"Anu's piece, 30th birthday gift","height":125});
															thumbnails[9053998] = clik.newPhoto({"id":9053998,"src":"remnants_2_thumb.jpg","galleries_id":420106,"server_id":5,"link":"photo_9053998.html","width":130,"caption":"Remnants 2","height":158});
															thumbnails[9053960] = clik.newPhoto({"id":9053960,"src":"loch_ness_thumb.jpg","galleries_id":420106,"server_id":5,"link":"photo_9053960.html","width":130,"caption":"a bit like the loch ness monster","height":207});
															thumbnails[9051727] = clik.newPhoto({"id":9051727,"src":"the_forrester_front_thumb.jpg","galleries_id":420106,"server_id":5,"link":"photo_9051727.html","width":130,"caption":"The Forrester","height":107});
															thumbnails[9051746] = clik.newPhoto({"id":9051746,"src":"the_forrester_sv_thumb.jpg","galleries_id":420106,"server_id":5,"link":"photo_9051746.html","width":130,"caption":"The Forrester (side view)","height":173});
															thumbnails[6917463] = clik.newPhoto({"id":6917463,"src":"sky_trail_C3B83ED6-1D09-001F-99DEC37914425622_thumb.jpg","galleries_id":393872,"server_id":5,"link":"photo_6917463.html","width":130,"caption":"","height":173});
															thumbnails[9053927] = clik.newPhoto({"id":9053927,"src":"anns_piece_sv_thumb.jpg","galleries_id":420106,"server_id":5,"link":"photo_9053927.html","width":130,"caption":"Ann's piece","height":98});
															thumbnails[7778235] = clik.newPhoto({"id":7778235,"src":"2_8715AE16-1EC9-DFB6-09A728B64B898D93_thumb.jpg","galleries_id":420254,"server_id":5,"link":"photo_7778235.html","width":130,"caption":"ash, beech and walnut stack","height":173});
															thumbnails[4986121] = clik.newPhoto({"id":4986121,"src":"Cyprus_Installation_151_thumb.jpg","galleries_id":258308,"server_id":5,"link":"photo_4986121.html","width":130,"caption":"Stacked ","height":173});
															thumbnails[6325550] = clik.newPhoto({"id":6325550,"src":"PA-LeeBorthwick-3369_thumb.jpg","galleries_id":350812,"server_id":5,"link":"photo_6325550.html","width":130,"caption":"Clearance","height":169});
															thumbnails[7283245] = clik.newPhoto({"id":7283245,"src":"DSCN7769_thumb.jpg","galleries_id":393872,"server_id":5,"link":"photo_7283245.html","width":130,"caption":"","height":98});
															thumbnails[7771830] = clik.newPhoto({"id":7771830,"src":"web_1_thumb.jpg","galleries_id":420106,"server_id":5,"link":"photo_7771830.html","width":130,"caption":"","height":98});
															thumbnails[7774974] = clik.newPhoto({"id":7774974,"src":"web_212_thumb.jpg","galleries_id":420106,"server_id":5,"link":"photo_7774974.html","width":130,"caption":"","height":131});
															thumbnails[9051851] = clik.newPhoto({"id":9051851,"src":"in_the_wild_sv_thumb.jpg","galleries_id":420106,"server_id":5,"link":"photo_9051851.html","width":130,"caption":"In the wild sideview","height":173});
															thumbnails[9051808] = clik.newPhoto({"id":9051808,"src":"in_the_wild_thumb.jpg","galleries_id":420106,"server_id":5,"link":"photo_9051808.html","width":130,"caption":"In the Wild","height":117});
															thumbnails[9051863] = clik.newPhoto({"id":9051863,"src":"window_piece_thumb.jpg","galleries_id":420106,"server_id":5,"link":"photo_9051863.html","width":130,"caption":"Window piece","height":157});
															thumbnails[9053912] = clik.newPhoto({"id":9053912,"src":"anns_piece_thumb.jpg","galleries_id":420106,"server_id":5,"link":"photo_9053912.html","width":130,"caption":"Ann's piece, family commission","height":116});
															thumbnails[7778231] = clik.newPhoto({"id":7778231,"src":"1_thumb.jpg","galleries_id":420254,"server_id":5,"link":"photo_7778231.html","width":130,"caption":"Beech, Walnut and Ash stack","height":102});
															thumbnails[4986115] = clik.newPhoto({"id":4986115,"src":"Cyprus_Installation_110_thumb.jpg","galleries_id":258308,"server_id":5,"link":"photo_4986115.html","width":130,"caption":"","height":173});
															thumbnails[6340049] = clik.newPhoto({"id":6340049,"src":"PA-LeeBorthwick-3390_thumb.jpg","galleries_id":350812,"server_id":5,"link":"photo_6340049.html","width":130,"caption":"Drifted","height":143});
															thumbnails[7283247] = clik.newPhoto({"id":7283247,"src":"DSCN7783_thumb.jpg","galleries_id":393872,"server_id":5,"link":"photo_7283247.html","width":130,"caption":"","height":98});
															thumbnails[7774975] = clik.newPhoto({"id":7774975,"src":"web_31_thumb.jpg","galleries_id":420106,"server_id":5,"link":"photo_7774975.html","width":130,"caption":"","height":188});
															thumbnails[7778238] = clik.newPhoto({"id":7778238,"src":"3_thumb.jpg","galleries_id":420254,"server_id":5,"link":"photo_7778238.html","width":130,"caption":"Grain board 10\"","height":107});
															thumbnails[4986126] = clik.newPhoto({"id":4986126,"src":"Cyprus_Installation_119_thumb.jpg","galleries_id":258308,"server_id":5,"link":"photo_4986126.html","width":130,"caption":"","height":173});
															thumbnails[6340057] = clik.newPhoto({"id":6340057,"src":"PA-LeeBortwick-3399_thumb.jpg","galleries_id":350812,"server_id":5,"link":"photo_6340057.html","width":130,"caption":"Fragments 1 and 2<br>\r\n","height":92});
															thumbnails[7283249] = clik.newPhoto({"id":7283249,"src":"DSCN7790_thumb.jpg","galleries_id":393872,"server_id":5,"link":"photo_7283249.html","width":130,"caption":"","height":102});
															thumbnails[7774976] = clik.newPhoto({"id":7774976,"src":"web_5_thumb.jpg","galleries_id":420106,"server_id":5,"link":"photo_7774976.html","width":130,"caption":"","height":134});
															thumbnails[7778241] = clik.newPhoto({"id":7778241,"src":"4_thumb.jpg","galleries_id":420254,"server_id":5,"link":"photo_7778241.html","width":130,"caption":"\"Grain\"ash 10\"","height":106});
															thumbnails[4986313] = clik.newPhoto({"id":4986313,"src":"Cyprus_Installation_184_thumb.jpg","galleries_id":258308,"server_id":5,"link":"photo_4986313.html","width":130,"caption":"Sliced ","height":173});
															thumbnails[6339528] = clik.newPhoto({"id":6339528,"src":"PA-LeeBortwick-3384_thumb.jpg","galleries_id":350812,"server_id":5,"link":"photo_6339528.html","width":130,"caption":"Willow Facade<br>\r\n","height":132});
															thumbnails[7283250] = clik.newPhoto({"id":7283250,"src":"DSCN7735_thumb.jpg","galleries_id":393872,"server_id":5,"link":"photo_7283250.html","width":130,"caption":"","height":98});
															thumbnails[7778244] = clik.newPhoto({"id":7778244,"src":"5_thumb.jpg","galleries_id":420254,"server_id":5,"link":"photo_7778244.html","width":130,"caption":"\"Grain\" black walnut 9\"","height":123});
															thumbnails[7778260] = clik.newPhoto({"id":7778260,"src":"9_thumb.jpg","galleries_id":420254,"server_id":5,"link":"photo_7778260.html","width":130,"caption":"\"Hairy\" beech 7\"","height":131});
															thumbnails[4986487] = clik.newPhoto({"id":4986487,"src":"Cyprus_Installation_201_thumb.jpg","galleries_id":258308,"server_id":5,"link":"photo_4986487.html","width":130,"caption":"","height":173});
															thumbnails[6339735] = clik.newPhoto({"id":6339735,"src":"PA-LeeBorthwick-3387_thumb.jpg","galleries_id":350812,"server_id":5,"link":"photo_6339735.html","width":130,"caption":"Segment<br>\r\n","height":195});
															thumbnails[7283251] = clik.newPhoto({"id":7283251,"src":"DSCN7797_thumb.jpg","galleries_id":393872,"server_id":5,"link":"photo_7283251.html","width":130,"caption":"","height":106});
															thumbnails[7774978] = clik.newPhoto({"id":7774978,"src":"web_6_thumb.jpg","galleries_id":420106,"server_id":5,"link":"photo_7774978.html","width":130,"caption":"","height":157});
															thumbnails[7778255] = clik.newPhoto({"id":7778255,"src":"6_thumb.jpg","galleries_id":420254,"server_id":5,"link":"photo_7778255.html","width":130,"caption":"\"hairy\" beech 4.5\"","height":110});
															thumbnails[4986631] = clik.newPhoto({"id":4986631,"src":"Cyprus_Installation_186_thumb.jpg","galleries_id":258308,"server_id":5,"link":"photo_4986631.html","width":130,"caption":"","height":173});
															thumbnails[6339502] = clik.newPhoto({"id":6339502,"src":"PA-LeeBorthwick-3377_thumb.jpg","galleries_id":350812,"server_id":5,"link":"photo_6339502.html","width":130,"caption":"Neglected","height":130});
															thumbnails[7774979] = clik.newPhoto({"id":7774979,"src":"web_8_thumb.jpg","galleries_id":420106,"server_id":5,"link":"photo_7774979.html","width":130,"caption":"","height":142});
															thumbnails[7778257] = clik.newPhoto({"id":7778257,"src":"7_thumb.jpg","galleries_id":420254,"server_id":5,"link":"photo_7778257.html","width":130,"caption":"\"stubble\" beech 7\"","height":106});
															thumbnails[7778303] = clik.newPhoto({"id":7778303,"src":"10_87C9BC6C-1EC9-DFB6-096BE4A8C117EB42_thumb.jpg","galleries_id":420254,"server_id":5,"link":"photo_7778303.html","width":130,"caption":"\"stubble\" beech 4.5\"","height":119});
															thumbnails[4409387] = clik.newPhoto({"id":4409387,"src":"32_thumb.jpg","galleries_id":258308,"server_id":5,"link":"photo_4409387.html","width":130,"caption":"","height":98});
															thumbnails[6340056] = clik.newPhoto({"id":6340056,"src":"PA-LeeBortwick-3272_thumb.jpg","galleries_id":350812,"server_id":5,"link":"photo_6340056.html","width":130,"caption":"Preserved","height":85});
															thumbnails[7774982] = clik.newPhoto({"id":7774982,"src":"web11_thumb.jpg","galleries_id":420106,"server_id":5,"link":"photo_7774982.html","width":130,"caption":"","height":171});
															thumbnails[4409378] = clik.newPhoto({"id":4409378,"src":"10_thumb.jpg","galleries_id":258308,"server_id":5,"link":"photo_4409378.html","width":130,"caption":"","height":173});
															thumbnails[6340061] = clik.newPhoto({"id":6340061,"src":"PA-LeeBortwick-3404_thumb.jpg","galleries_id":350812,"server_id":5,"link":"photo_6340061.html","width":130,"caption":"Remains","height":127});
															thumbnails[7774980] = clik.newPhoto({"id":7774980,"src":"web4_thumb.jpg","galleries_id":420106,"server_id":5,"link":"photo_7774980.html","width":130,"caption":"","height":175});
															thumbnails[5687514] = clik.newPhoto({"id":5687514,"src":"for_website1_thumb.jpg","galleries_id":258308,"server_id":5,"link":"photo_5687514.html","width":130,"caption":"Part 3","height":95});
															thumbnails[6340066] = clik.newPhoto({"id":6340066,"src":"PA-LeeBorthwick-3379_thumb.jpg","galleries_id":350812,"server_id":5,"link":"photo_6340066.html","width":130,"caption":"Quilt","height":166});
															thumbnails[5687892] = clik.newPhoto({"id":5687892,"src":"for_website2_thumb.jpg","galleries_id":258308,"server_id":5,"link":"photo_5687892.html","width":130,"caption":"","height":98});
															thumbnails[4409326] = clik.newPhoto({"id":4409326,"src":"sw7_thumb.jpg","galleries_id":258309,"server_id":5,"link":"photo_4409326.html","width":130,"caption":"","height":98});
															thumbnails[4409315] = clik.newPhoto({"id":4409315,"src":"slow_wall_4_thumb.jpg","galleries_id":258309,"server_id":5,"link":"photo_4409315.html","width":130,"caption":"","height":98});
															thumbnails[4409321] = clik.newPhoto({"id":4409321,"src":"slow_wall_5_thumb.jpg","galleries_id":258309,"server_id":5,"link":"photo_4409321.html","width":130,"caption":"","height":98});
															thumbnails[4409305] = clik.newPhoto({"id":4409305,"src":"Slow_wall_thumb.jpg","galleries_id":258309,"server_id":5,"link":"photo_4409305.html","width":130,"caption":"","height":98});
															thumbnails[4409314] = clik.newPhoto({"id":4409314,"src":"slow_wall_3_thumb.jpg","galleries_id":258309,"server_id":5,"link":"photo_4409314.html","width":130,"caption":"","height":98});
															thumbnails[6341186] = clik.newPhoto({"id":6341186,"src":"new_slow_wall1_thumb.jpg","galleries_id":258309,"server_id":5,"link":"photo_6341186.html","width":130,"caption":"","height":98});
															thumbnails[6341180] = clik.newPhoto({"id":6341180,"src":"new_slow_wall_2_thumb.jpg","galleries_id":258309,"server_id":5,"link":"photo_6341180.html","width":130,"caption":"","height":98});
															thumbnails[6341185] = clik.newPhoto({"id":6341185,"src":"new_slow_wall_3_thumb.jpg","galleries_id":258309,"server_id":5,"link":"photo_6341185.html","width":130,"caption":"","height":98});
															thumbnails[3433447] = clik.newPhoto({"id":3433447,"src":"nepal1_thumb.jpg","galleries_id":209871,"server_id":5,"link":"photo_3433447.html","width":130,"caption":"Bamboo blind","height":95});
															thumbnails[3433461] = clik.newPhoto({"id":3433461,"src":"couching1_thumb.jpg","galleries_id":209869,"server_id":5,"link":"photo_3433461.html","width":130,"caption":"Couching","height":97});
															thumbnails[3433482] = clik.newPhoto({"id":3433482,"src":"dhaka1_thumb.jpg","galleries_id":209872,"server_id":5,"link":"photo_3433482.html","width":130,"caption":"Dhaka Weaving","height":174});
															thumbnails[3433448] = clik.newPhoto({"id":3433448,"src":"bamboo-blind21_thumb.jpg","galleries_id":209871,"server_id":5,"link":"photo_3433448.html","width":130,"caption":"Close up","height":174});
															thumbnails[3433463] = clik.newPhoto({"id":3433463,"src":"macrameworkshop1_thumb.jpg","galleries_id":209869,"server_id":5,"link":"photo_3433463.html","width":130,"caption":"macrame 1","height":97});
															thumbnails[3433489] = clik.newPhoto({"id":3433489,"src":"dhaka41_thumb.jpg","galleries_id":209872,"server_id":5,"link":"photo_3433489.html","width":130,"caption":"Dhaka weaving 2","height":174});
															thumbnails[3433450] = clik.newPhoto({"id":3433450,"src":"bamboo-blind1_thumb.jpg","galleries_id":209871,"server_id":5,"link":"photo_3433450.html","width":130,"caption":"dark background","height":174});
															thumbnails[3433466] = clik.newPhoto({"id":3433466,"src":"macrameworkshop21_thumb.jpg","galleries_id":209869,"server_id":5,"link":"photo_3433466.html","width":130,"caption":"macrame 2","height":97});
															thumbnails[3433498] = clik.newPhoto({"id":3433498,"src":"dhaka21_thumb.jpg","galleries_id":209872,"server_id":5,"link":"photo_3433498.html","width":130,"caption":"Dhaka weaving 3","height":97});
															thumbnails[3433452] = clik.newPhoto({"id":3433452,"src":"bamboobag1_thumb.jpg","galleries_id":209871,"server_id":5,"link":"photo_3433452.html","width":130,"caption":"Bamboo Bag","height":159});
															thumbnails[3433473] = clik.newPhoto({"id":3433473,"src":"Sukmaya1_thumb.jpg","galleries_id":209869,"server_id":5,"link":"photo_3433473.html","width":130,"caption":"Finished- Macrame Bag","height":174});
															thumbnails[3433454] = clik.newPhoto({"id":3433454,"src":"bamboo-reverse1_thumb.jpg","galleries_id":209871,"server_id":5,"link":"photo_3433454.html","width":130,"caption":"Bamboo bag reverse","height":172});
															thumbnails[3433476] = clik.newPhoto({"id":3433476,"src":"slippers1_thumb.jpg","galleries_id":209869,"server_id":5,"link":"photo_3433476.html","width":130,"caption":"Knitted Slippers","height":97});
															thumbnails[2361928] = clik.newPhoto({"id":2361928,"src":"mirror 4 copy1_thumb.jpg","galleries_id":143413,"server_id":5,"link":"photo_2361928.html","width":130,"caption":"mirror work","height":177});
															thumbnails[3433222] = clik.newPhoto({"id":3433222,"src":"42_thumb.jpg","galleries_id":209859,"server_id":5,"link":"photo_3433222.html","width":130,"caption":"","height":212});
															thumbnails[3440114] = clik.newPhoto({"id":3440114,"src":"Mirror Installation 087_thumb.jpg","galleries_id":209807,"server_id":5,"link":"photo_3440114.html","width":130,"caption":"","height":173});
															thumbnails[3433191] = clik.newPhoto({"id":3433191,"src":"2_thumb.jpg","galleries_id":209859,"server_id":5,"link":"photo_3433191.html","width":130,"caption":2.0,"height":173});
															thumbnails[3440092] = clik.newPhoto({"id":3440092,"src":"21_thumb.jpg","galleries_id":209807,"server_id":5,"link":"photo_3440092.html","width":130,"caption":"","height":174});
															thumbnails[3433194] = clik.newPhoto({"id":3433194,"src":"shed fabrics_thumb.jpg","galleries_id":209859,"server_id":5,"link":"photo_3433194.html","width":130,"caption":"prints","height":98});
															thumbnails[3433195] = clik.newPhoto({"id":3433195,"src":"shed fabric2_thumb.jpg","galleries_id":209859,"server_id":5,"link":"photo_3433195.html","width":130,"caption":"prints","height":98});
															thumbnails[3440125] = clik.newPhoto({"id":3440125,"src":"63_thumb.jpg","galleries_id":209807,"server_id":5,"link":"photo_3440125.html","width":130,"caption":"","height":107});
															thumbnails[3440100] = clik.newPhoto({"id":3440100,"src":"8_thumb.jpg","galleries_id":209807,"server_id":5,"link":"photo_3440100.html","width":130,"caption":"","height":97});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[420254] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"On the table","link":"section503494_420254.html","maxRecords":0.0,"photoIDs":[7778235.0,7778231.0,7778238.0,7778241.0,7778244.0,7778260.0,7778255.0,7778257.0,7778303.0],"skipIndex":0,"section_code":"section503494","featured_images":"7778303,7778260,7778257,7778255,7778244,7778241,7778238,7778235,7778231","id":420254,"singleSection":false});				  						galleries[393872] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Sky Trail","link":"section468334.html","maxRecords":0.0,"photoIDs":[6917463.0,7283245.0,7283247.0,7283249.0,7283250.0,7283251.0],"skipIndex":0,"section_code":"section468334","featured_images":"7283251,7283250,7283249,7283247,7283245,6917463","id":393872,"singleSection":true});				  						galleries[350812] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"The \"In the Attic\" Series","link":"section418727.html","maxRecords":0.0,"photoIDs":[6325550.0,6340049.0,6340057.0,6339528.0,6339735.0,6339502.0,6340056.0,6340061.0,6340066.0],"skipIndex":0,"section_code":"section418727","featured_images":"6340066,6340061,6340057,6340056,6340049,6339735,6339528,6339502,6325550","id":350812,"singleSection":true});				  						galleries[209859] = clik.newGallery({"parentGallery":209682,"usePopups":false,"title":"Comments","link":"gallery_209859.html","maxRecords":0.0,"photoIDs":[3433222.0,3433191.0,3433194.0,3433195.0],"skipIndex":0,"section_code":"gallery","featured_images":"3433222,3433195,3433194,3433191","id":209859,"singleSection":false});				  						galleries[258308] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Limassol Series","link":"section291805.html","maxRecords":0.0,"photoIDs":[4986121.0,4986115.0,4986126.0,4986313.0,4986487.0,4986631.0,4409387.0,4409378.0,5687514.0,5687892.0],"skipIndex":0,"section_code":"section291805","featured_images":"5687892,5687514,4986631,4986487,4986313,4986126,4986121,4986115,4409387,4409378","id":258308,"singleSection":true});				  						galleries[209807] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Mirror Tapestry","link":"gallery_209807.html","maxRecords":0.0,"photoIDs":[3440114.0,3440092.0,3440125.0,3440100.0],"skipIndex":0,"section_code":"gallery","featured_images":"3440125,3440114,3440100,3440092","id":209807,"singleSection":false});				  						galleries[420106] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"On the wall","link":"section503494_420106.html","maxRecords":0.0,"photoIDs":[9053949.0,9053998.0,9053960.0,9051727.0,9051746.0,9053927.0,7771830.0,7774974.0,9051851.0,9051808.0,9051863.0,9053912.0,7774975.0,7774976.0,7774978.0,7774979.0,7774982.0,7774980.0],"skipIndex":0,"section_code":"section503494","featured_images":"9053998,9053960,9053949,9053927,9053912,9051863,9051851,9051808,9051746,9051727","id":420106,"singleSection":false});				  						galleries[258309] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Slow Wall Progress","link":"section291812.html","maxRecords":0.0,"photoIDs":[4409326.0,4409315.0,4409321.0,4409305.0,4409314.0,6341186.0,6341180.0,6341185.0],"skipIndex":0,"section_code":"section291812","featured_images":"6341186,6341185,6341180,4409326,4409321,4409315,4409314,4409305","id":258309,"singleSection":true});				  						galleries[143413] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Tree Pieces","link":"gallery_143413.html","maxRecords":0.0,"photoIDs":[2361928.0],"skipIndex":0,"section_code":"gallery","featured_images":2361928.0,"id":143413,"singleSection":false});				  						galleries[209869] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"workshops","link":"section243348_209869.html","maxRecords":0.0,"photoIDs":[3433461.0,3433463.0,3433466.0,3433473.0,3433476.0],"skipIndex":0,"section_code":"section243348","featured_images":"3433476,3433473,3433466,3433463,3433461","id":209869,"singleSection":false});				  						galleries[209871] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Dhaka Product Prototypes","link":"section243348_209871.html","maxRecords":0.0,"photoIDs":[3433447.0,3433448.0,3433450.0,3433452.0,3433454.0],"skipIndex":0,"section_code":"section243348","featured_images":"3433454,3433452,3433450,3433448,3433447","id":209871,"singleSection":false});				  						galleries[209682] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Issues-Manor Garden Allotments","link":"gallery_209682.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"3433222,3433195,3433194,3433191","id":209682,"singleSection":false});				  						galleries[209872] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Dhaka Production","link":"section243348_209872.html","maxRecords":0.0,"photoIDs":[3433482.0,3433489.0,3433498.0],"skipIndex":0,"section_code":"section243348","featured_images":"3433498,3433489,3433482","id":209872,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8657693';
imageSets[2] = '5276096';
imageSets[3] = '7771830,3440114,3440092,3440125,3440100';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/leebee/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/leebee/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/leebee/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/leebee/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/leebee/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/leebee/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/leebee/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/leebee/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/leebee/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/leebee/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/leebee/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/leebee/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/leebee/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/leebee/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/leebee/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/leebee/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/leebee/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/leebee/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/leebee/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/leebee/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/leebee/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/leebee/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/leebee/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/leebee/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/leebee/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/leebee/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/leebee/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 += 'section468334.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 && 'section468334' != '') {
					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 = 'Lee Borthwick: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

