window.thumbnails = {};
															thumbnails[2328922] = clik.newPhoto({"id":2328922,"src":"gallery1_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"gallery","height":87});
															thumbnails[4701936] = clik.newPhoto({"id":4701936,"src":"hattie_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":64,"caption":"hattie   <br>\r\n8x21cm (20x34 framed)   <br>\r\n£195<br>\r\n","height":140});
															thumbnails[3073061] = clik.newPhoto({"id":3073061,"src":"Swimming at Porthgwarra_thumb.jpg","galleries_id":188797,"server_id":5,"link":"photo_3073061.html","width":130,"caption":"Swimming at Porthgwarra","height":105});
															thumbnails[4159501] = clik.newPhoto({"id":4159501,"src":"06_Towan_beach_Dodmans_thumb.jpg","galleries_id":248254,"server_id":5,"link":"photo_4159501.html","width":130,"caption":"","height":162});
															thumbnails[4159507] = clik.newPhoto({"id":4159507,"src":"05_Sennan_beach_thumb.jpg","galleries_id":248254,"server_id":5,"link":"photo_4159507.html","width":130,"caption":"","height":104});
															thumbnails[4159509] = clik.newPhoto({"id":4159509,"src":"12_Pendower_Beach_thumb.jpg","galleries_id":248254,"server_id":5,"link":"photo_4159509.html","width":130,"caption":"","height":104});
															thumbnails[4610127] = clik.newPhoto({"id":4610127,"src":"pendower1_thumb.jpg","galleries_id":248254,"server_id":5,"link":"photo_4610127.html","width":130,"caption":"Pendower from Portscatho<br>\r\n60x42cm<br>\r\n£385<br>\r\n<br>\r\n","height":62});
															thumbnails[5663343] = clik.newPhoto({"id":5663343,"src":"Penwith_Sunset_thumb.jpg","galleries_id":188797,"server_id":5,"link":"photo_5663343.html","width":130,"caption":"Penwith Sunset","height":100});
															thumbnails[5663531] = clik.newPhoto({"id":5663531,"src":"St_Ives_Beach_Scene_thumb.jpg","galleries_id":188797,"server_id":5,"link":"photo_5663531.html","width":130,"caption":"St Ives Beach Scene","height":98});
															thumbnails[8467491] = clik.newPhoto({"id":8467491,"src":"Row_of_Trees_Place_Manor.___Brian_Robinson._thumb.jpg","galleries_id":447980,"server_id":5,"link":"photo_8467491.html","width":130,"caption":"","height":104});
															thumbnails[2336883] = clik.newPhoto({"id":2336883,"src":"Charlestown_thumb.jpg","galleries_id":201695,"server_id":5,"link":"photo_2336883.html","width":130,"caption":"Charlestown<br>\r\n","height":87});
															thumbnails[4159484] = clik.newPhoto({"id":4159484,"src":"19_Pendower_from_Portscatho_thumb.jpg","galleries_id":248254,"server_id":5,"link":"photo_4159484.html","width":130,"caption":"","height":93});
															thumbnails[4702310] = clik.newPhoto({"id":4702310,"src":"breakfast_guest_thumb.jpg","galleries_id":251203,"server_id":5,"link":"photo_4702310.html","width":130,"caption":"breakfast guest<br>\r\n90x70cm (aprox.)<br>\r\n£950","height":97});
															thumbnails[4159489] = clik.newPhoto({"id":4159489,"src":"16_Pendower_Beach_from_Pencabe_thumb.jpg","galleries_id":248254,"server_id":5,"link":"photo_4159489.html","width":130,"caption":"","height":104});
															thumbnails[8469847] = clik.newPhoto({"id":8469847,"src":"Gull_Rock_60x37cm_550_thumb.jpg","galleries_id":447980,"server_id":5,"link":"photo_8469847.html","width":130,"caption":"","height":79});
															thumbnails[4701788] = clik.newPhoto({"id":4701788,"src":"darling_thumb.jpg","galleries_id":251203,"server_id":5,"link":"photo_4701788.html","width":126,"caption":"darling   <br>\r\n19x27cm (31x41 framed)  <br>\r\n£250<br>\r\n","height":200});
															thumbnails[4701672] = clik.newPhoto({"id":4701672,"src":"billy_thumb.jpg","galleries_id":251203,"server_id":5,"link":"photo_4701672.html","width":130,"caption":"billy   <br>\r\n19x27cm (31x41 framed)  <br>\r\n£250<br>\r\n","height":192});
															thumbnails[8470075] = clik.newPhoto({"id":8470075,"src":"Looking_towards_Dodman_Point_52x42cm_675_thumb.jpg","galleries_id":447980,"server_id":5,"link":"photo_8470075.html","width":130,"caption":"","height":104});
															thumbnails[4701837] = clik.newPhoto({"id":4701837,"src":"dora_thumb.jpg","galleries_id":251203,"server_id":5,"link":"photo_4701837.html","width":65,"caption":"dora   <br>\r\n10x24cm (23x39 framed)  <br>\r\n£250<br>\r\n","height":140});
															thumbnails[4701868] = clik.newPhoto({"id":4701868,"src":"angel_bird1_thumb.jpg","galleries_id":251203,"server_id":5,"link":"photo_4701868.html","width":53,"caption":"angel bird   <br>\r\n8x21cm (20x34 framed)  <br>\r\n£195  ","height":140});
															thumbnails[8470097] = clik.newPhoto({"id":8470097,"src":"Two_Trees_Place_Manor_50x39cm_11001_thumb.jpg","galleries_id":447980,"server_id":5,"link":"photo_8470097.html","width":130,"caption":"","height":101});
															thumbnails[4701843] = clik.newPhoto({"id":4701843,"src":"Ethel_thumb.jpg","galleries_id":251203,"server_id":5,"link":"photo_4701843.html","width":68,"caption":"Ethel   <br>\r\n18.5x36cm (32x49 framed)  <br>\r\n£275","height":140});
															thumbnails[6198783] = clik.newPhoto({"id":6198783,"src":"Mount_Ambrose_2_Over_the_Rooftops_66x66cm_thumb.jpg","galleries_id":345959,"server_id":5,"link":"photo_6198783.html","width":130,"caption":"Mount Ambrose 2(Over the Rooftops)66 x 66cm£475","height":130});
															thumbnails[2360729] = clik.newPhoto({"id":2360729,"src":"exhibition pictures 020 1mb002_thumb.jpg","galleries_id":201695,"server_id":5,"link":"photo_2360729.html","width":130,"caption":"Black Head","height":130});
															thumbnails[4159492] = clik.newPhoto({"id":4159492,"src":"13_Pendower_beach_2_thumb.jpg","galleries_id":248254,"server_id":5,"link":"photo_4159492.html","width":130,"caption":"","height":152});
															thumbnails[4701857] = clik.newPhoto({"id":4701857,"src":"flounce_thumb.jpg","galleries_id":251203,"server_id":5,"link":"photo_4701857.html","width":66,"caption":"flounce   <br>\r\n14x30cm (26x43 framed)  <br>\r\n£275","height":140});
															thumbnails[8649146] = clik.newPhoto({"id":8649146,"src":"Toward_the_Church_Tregaminion_34x34cm_375_thumb.jpg","galleries_id":201763,"server_id":5,"link":"photo_8649146.html","width":130,"caption":"","height":129});
															thumbnails[4701863] = clik.newPhoto({"id":4701863,"src":"freddie_thumb.jpg","galleries_id":251203,"server_id":5,"link":"photo_4701863.html","width":90,"caption":"freddie   <br>\r\n19x27cm (31x41 framed)  <br>\r\n£250<br>\r\n","height":140});
															thumbnails[4701867] = clik.newPhoto({"id":4701867,"src":"grumps_thumb.jpg","galleries_id":251203,"server_id":5,"link":"photo_4701867.html","width":104,"caption":"grumps   <br>\r\n19x27cm (31x41 framed)  <br>\r\n£250<br>\r\n","height":140});
															thumbnails[6198717] = clik.newPhoto({"id":6198717,"src":"House_with_Hedge_100kb_thumb.jpg","galleries_id":345959,"server_id":5,"link":"photo_6198717.html","width":106,"caption":"House with Hedge30 x20cm£340","height":140});
															thumbnails[8469799] = clik.newPhoto({"id":8469799,"src":"Evening_Light_Porthmeor_49x40cm_690_thumb.jpg","galleries_id":447980,"server_id":5,"link":"photo_8469799.html","width":130,"caption":"","height":103});
															thumbnails[4701945] = clik.newPhoto({"id":4701945,"src":"kookie_thumb.jpg","galleries_id":251203,"server_id":5,"link":"photo_4701945.html","width":98,"caption":"kookie   <br>\r\n22x28 (35x42 framed)  <br>\r\n£250<br>\r\n","height":140});
															thumbnails[4701953] = clik.newPhoto({"id":4701953,"src":"McParrot_thumb.jpg","galleries_id":251203,"server_id":5,"link":"photo_4701953.html","width":97,"caption":"McParrot   <br>\r\n19x27cm (31x41 framed)  <br>\r\n£250<br>\r\n","height":140});
															thumbnails[4701959] = clik.newPhoto({"id":4701959,"src":"millie_thumb.jpg","galleries_id":251203,"server_id":5,"link":"photo_4701959.html","width":102,"caption":"millie   <br>\r\n19x27cm (31x41 framed)  <br>\r\n£250","height":140});
															thumbnails[4159493] = clik.newPhoto({"id":4159493,"src":"10_Developing_tide_off_Cape_Cornwall_thumb.jpg","galleries_id":248254,"server_id":5,"link":"photo_4159493.html","width":130,"caption":"","height":104});
															thumbnails[4702101] = clik.newPhoto({"id":4702101,"src":"penguin_wedgie_thumb.jpg","galleries_id":251203,"server_id":5,"link":"photo_4702101.html","width":106,"caption":"penguin (wedgie)   <br>\r\n19x27cm (31x41 framed)  <br>\r\n£250<br>\r\n","height":140});
															thumbnails[6198593] = clik.newPhoto({"id":6198593,"src":"Coast_Road_-_Gunwalloe_52x39cm_Philip_Lyons_thumb.jpg","galleries_id":345959,"server_id":5,"link":"photo_6198593.html","width":106,"caption":"Coast Road, Gunwalloe<br>\r\n52 x 39cm<br>\r\n£350","height":140});
															thumbnails[4701979] = clik.newPhoto({"id":4701979,"src":"mona_thumb.jpg","galleries_id":251203,"server_id":5,"link":"photo_4701979.html","width":95,"caption":"mona   <br>\r\n19x27cm (31x41 framed)  <br>\r\n£250<br>\r\n","height":140});
															thumbnails[4701983] = clik.newPhoto({"id":4701983,"src":"old_salty_thumb.jpg","galleries_id":251203,"server_id":5,"link":"photo_4701983.html","width":109,"caption":"old salty   <br>\r\n12x15cm (25x29 framed)  <br>\r\n£195","height":140});
															thumbnails[4701989] = clik.newPhoto({"id":4701989,"src":"peacock_003_thumb.jpg","galleries_id":251203,"server_id":5,"link":"photo_4701989.html","width":104,"caption":"peacock    <br>\r\n19x27cm (31x41 framed)  <br>\r\n£250<br>\r\n","height":140});
															thumbnails[4702015] = clik.newPhoto({"id":4702015,"src":"popeye_thumb.jpg","galleries_id":251203,"server_id":5,"link":"photo_4702015.html","width":90,"caption":"popeye   <br>\r\n13x18cm (25x29 framed)  <br>\r\n195<br>\r\n","height":140});
															thumbnails[4702021] = clik.newPhoto({"id":4702021,"src":"Ron_Glum_thumb.jpg","galleries_id":251203,"server_id":5,"link":"photo_4702021.html","width":77,"caption":"Ron Glum     <br>\r\n16.5x30 (29x43 framed)  <br>\r\n£275<br>\r\n","height":140});
															thumbnails[4702064] = clik.newPhoto({"id":4702064,"src":"sailing_bird_11_thumb.jpg","galleries_id":251203,"server_id":5,"link":"photo_4702064.html","width":130,"caption":"sailing bird 1   <br>\r\n15x33cm (31x83 framed)  <br>\r\n£450<br>\r\n","height":108});
															thumbnails[2980352] = clik.newPhoto({"id":2980352,"src":"cornish apples 90kb_thumb.jpg","galleries_id":188791,"server_id":5,"link":"photo_2980352.html","width":130,"caption":"Mally Francis","height":85});
															thumbnails[4159494] = clik.newPhoto({"id":4159494,"src":"07_Towan_Beach_thumb.jpg","galleries_id":248254,"server_id":5,"link":"photo_4159494.html","width":130,"caption":"","height":162});
															thumbnails[8469698] = clik.newPhoto({"id":8469698,"src":"Bodmin_Moor_36x32cm_550_thumb.jpg","galleries_id":447980,"server_id":5,"link":"photo_8469698.html","width":130,"caption":"","height":111});
															thumbnails[8649147] = clik.newPhoto({"id":8649147,"src":"Towards_Bedruthan_68x57cm_525_thumb.jpg","galleries_id":201763,"server_id":5,"link":"photo_8649147.html","width":130,"caption":"","height":106});
															thumbnails[4702086] = clik.newPhoto({"id":4702086,"src":"savvy_gull_thumb.jpg","galleries_id":251203,"server_id":5,"link":"photo_4702086.html","width":82,"caption":"savvy gull   <br>\r\n15x26cm (28x39 framed)<br>\r\n£250","height":140});
															thumbnails[8470050] = clik.newPhoto({"id":8470050,"src":"Jacka_Point_2._42x37cm_450_thumb.jpg","galleries_id":447980,"server_id":5,"link":"photo_8470050.html","width":130,"caption":"","height":111});
															thumbnails[2360750] = clik.newPhoto({"id":2360750,"src":"exhibition pictures 037010_thumb.jpg","galleries_id":201695,"server_id":5,"link":"photo_2360750.html","width":130,"caption":"Respryn Bridge","height":61});
															thumbnails[4159498] = clik.newPhoto({"id":4159498,"src":"04_Towan_Beach_thumb.jpg","galleries_id":248254,"server_id":5,"link":"photo_4159498.html","width":130,"caption":"","height":81});
															thumbnails[8469885] = clik.newPhoto({"id":8469885,"src":"Jacka_Point_1_42x37cm_450_thumb.jpg","galleries_id":447980,"server_id":5,"link":"photo_8469885.html","width":130,"caption":"","height":113});
															thumbnails[4702089] = clik.newPhoto({"id":4702089,"src":"silly_gull_thumb.jpg","galleries_id":251203,"server_id":5,"link":"photo_4702089.html","width":92,"caption":"silly gull    <br>\r\n13x18cm (25x29 framed)  <br>\r\n£250<br>\r\n","height":140});
															thumbnails[8470053] = clik.newPhoto({"id":8470053,"src":"Light_Pendower_79x49cm_975_thumb.jpg","galleries_id":447980,"server_id":5,"link":"photo_8470053.html","width":130,"caption":"","height":80});
															thumbnails[8649148] = clik.newPhoto({"id":8649148,"src":"Prickly_Post_Lane_84x64cm_550_thumb.jpg","galleries_id":201763,"server_id":5,"link":"photo_8649148.html","width":130,"caption":"","height":105});
															thumbnails[8470084] = clik.newPhoto({"id":8470084,"src":"Sunset_Lizard._53x49cm_575_thumb.jpg","galleries_id":447980,"server_id":5,"link":"photo_8470084.html","width":130,"caption":"","height":117});
															thumbnails[8649152] = clik.newPhoto({"id":8649152,"src":"On_the_Lizard_35x40_350_thumb.jpg","galleries_id":201763,"server_id":5,"link":"photo_8649152.html","width":130,"caption":"","height":114});
															thumbnails[6199220] = clik.newPhoto({"id":6199220,"src":"Down_the_path_31x41cm320_thumb.jpg","galleries_id":345959,"server_id":5,"link":"photo_6199220.html","width":130,"caption":"Down the Path31x41cm£320","height":98});
															thumbnails[2451684] = clik.newPhoto({"id":2451684,"src":"DSCF2967_thumb.jpg","galleries_id":201695,"server_id":5,"link":"photo_2451684.html","width":130,"caption":"From Roche Rock","height":97});
															thumbnails[2451813] = clik.newPhoto({"id":2451813,"src":"DSCF2974_thumb.jpg","galleries_id":201695,"server_id":5,"link":"photo_2451813.html","width":130,"caption":"towards lerryn<br>\r\nlow tide","height":85});
															thumbnails[2981563] = clik.newPhoto({"id":2981563,"src":"Three graces 100kb_thumb.jpg","galleries_id":201765,"server_id":5,"link":"photo_2981563.html","width":130,"caption":"Jenny Wheatley","height":68});
															thumbnails[2981693] = clik.newPhoto({"id":2981693,"src":"Goki vase 100kb_thumb.jpg","galleries_id":201766,"server_id":5,"link":"photo_2981693.html","width":130,"caption":"Goki Vase","height":129});
															thumbnails[2981817] = clik.newPhoto({"id":2981817,"src":"stripes 3_thumb.JPG","galleries_id":201767,"server_id":5,"link":"photo_2981817.html","width":130,"caption":"Noelle Gable","height":162});
															thumbnails[8745223] = clik.newPhoto({"id":8745223,"src":"Beech_carved_bowl_by_Howard_Moody._12ins._dia__95_thumb.jpg","galleries_id":460743,"server_id":5,"link":"photo_8745223.html","width":130,"caption":"","height":102});
															thumbnails[8745216] = clik.newPhoto({"id":8745216,"src":"Walnut_bowl_by_Howard_Moody._37cm_dia._175_thumb.jpg","galleries_id":460743,"server_id":5,"link":"photo_8745216.html","width":130,"caption":"","height":98});
															thumbnails[8745249] = clik.newPhoto({"id":8745249,"src":"Fine_Raku_vessels_by_Ian_Shearman._13cm._high__65_each_thumb.jpg","galleries_id":460751,"server_id":5,"link":"photo_8745249.html","width":130,"caption":"","height":98});
															thumbnails[4701866] = clik.newPhoto({"id":4701866,"src":"green_bird_thumb.jpg","galleries_id":460784,"server_id":5,"link":"photo_4701866.html","width":106,"caption":"","height":140});
															thumbnails[8745656] = clik.newPhoto({"id":8745656,"src":"Fine_Raku_vessels_by_Ian_Shearman._25cm_-_60_thumb.jpg","galleries_id":460751,"server_id":5,"link":"photo_8745656.html","width":130,"caption":"","height":113});
															thumbnails[8745994] = clik.newPhoto({"id":8745994,"src":"IMG_2470_thumb.JPG","galleries_id":460749,"server_id":5,"link":"photo_8745994.html","width":130,"caption":"","height":98});
															thumbnails[8778551] = clik.newPhoto({"id":8778551,"src":"1_004_thumb.jpg","galleries_id":460752,"server_id":5,"link":"photo_8778551.html","width":130,"caption":"","height":98});
															thumbnails[8778576] = clik.newPhoto({"id":8778576,"src":"Keith_Bunt_Pont_from_Fowey_Oil_24x21cm_1251_thumb.jpg","galleries_id":460753,"server_id":5,"link":"photo_8778576.html","width":130,"caption":"","height":115});
															thumbnails[8778579] = clik.newPhoto({"id":8778579,"src":"Kieith_Bunt_Polruan_from_Fowey_Oil_.28x25cm_120_thumb.jpg","galleries_id":460753,"server_id":5,"link":"photo_8778579.html","width":122,"caption":"","height":140});
															thumbnails[8778556] = clik.newPhoto({"id":8778556,"src":"1_005_thumb.jpg","galleries_id":460752,"server_id":5,"link":"photo_8778556.html","width":130,"caption":"","height":98});
															thumbnails[8748260] = clik.newPhoto({"id":8748260,"src":"Leaping_Fish_Fused_glass_by_Posie_Nicholson_32x19cm_195_thumb.jpg","galleries_id":460749,"server_id":5,"link":"photo_8748260.html","width":130,"caption":"","height":99});
															thumbnails[8748408] = clik.newPhoto({"id":8748408,"src":"Fused_Glass_by_Posie_Nicholson_43x21cm_245_thumb.jpg","galleries_id":460749,"server_id":5,"link":"photo_8748408.html","width":130,"caption":"","height":98});
															thumbnails[8778641] = clik.newPhoto({"id":8778641,"src":"1_0111_thumb.jpg","galleries_id":460752,"server_id":5,"link":"photo_8778641.html","width":130,"caption":"","height":86});
															thumbnails[8748411] = clik.newPhoto({"id":8748411,"src":"Fused_Glass_detail_thumb.jpg","galleries_id":460749,"server_id":5,"link":"photo_8748411.html","width":130,"caption":"","height":98});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[447980] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Brian Robinson","link":"section194476_447980.html","maxRecords":0.0,"photoIDs":[8467491.0,8469847.0,8470075.0,8470097.0,8469799.0,8469698.0,8470050.0,8469885.0,8470053.0,8470084.0],"skipIndex":0,"section_code":"section194476","featured_images":"8470097,8470084,8470075,8470053,8470050,8469885,8469847,8469799,8469698,8467491","id":447980,"singleSection":false});				  						galleries[345959] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Philip Lyons","link":"section194476_345959.html","maxRecords":0.0,"photoIDs":[6198783.0,6198717.0,6198593.0,6199220.0],"skipIndex":0,"section_code":"section194476","featured_images":"6199220,6198783,6198717,6198593","id":345959,"singleSection":false});				  						galleries[251203] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Barbara Karn","link":"section194476_251203.html","maxRecords":0.0,"photoIDs":[4702310.0,4701788.0,4701672.0,4701837.0,4701868.0,4701843.0,4701857.0,4701863.0,4701867.0,4701945.0,4701953.0,4701959.0,4702101.0,4701979.0,4701983.0,4701989.0,4702015.0,4702021.0,4702064.0,4702086.0,4702089.0],"skipIndex":0,"section_code":"section194476","featured_images":"4702310,4702101,4702089,4702086,4702064,4702021,4702015,4701989,4701983,4701979","id":251203,"singleSection":false});				  						galleries[248254] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Ian Shearman","link":"section194476_248254.html","maxRecords":0.0,"photoIDs":[4159501.0,4159507.0,4159509.0,4610127.0,4159484.0,4159489.0,4159492.0,4159493.0,4159494.0,4159498.0],"skipIndex":0,"section_code":"section194476","featured_images":"4610127,4159509,4159507,4159501,4159498,4159494,4159493,4159492,4159489,4159484","id":248254,"singleSection":false});				  						galleries[188797] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"John Harvey","link":"section194476_188797.html","maxRecords":0.0,"photoIDs":[3073061.0,5663343.0,5663531.0],"skipIndex":0,"section_code":"section194476","featured_images":"5663531,5663343,3073061","id":188797,"singleSection":false});				  						galleries[201695] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Robin Leonard","link":"section194476_201695.html","maxRecords":0.0,"photoIDs":[2336883.0,2360729.0,2360750.0,2451684.0,2451813.0],"skipIndex":0,"section_code":"section194476","featured_images":"2451813,2451684,2360750,2360729,2336883","id":201695,"singleSection":false});				  						galleries[201763] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"William Nash","link":"section194476_201763.html","maxRecords":0.0,"photoIDs":[8649146.0,8649147.0,8649148.0,8649152.0],"skipIndex":0,"section_code":"section194476","featured_images":"8649152,8649148,8649147,8649146","id":201763,"singleSection":false});				  						galleries[460752] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Jewellery","link":"section557803_460752.html","maxRecords":0.0,"photoIDs":[8778551.0,8778556.0,8778641.0],"skipIndex":0,"section_code":"section557803","featured_images":"8778641,8778556,8778551","id":460752,"singleSection":false});				  						galleries[188791] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Mally Francis","link":"section194476_188791.html","maxRecords":0.0,"photoIDs":[2980352.0],"skipIndex":0,"section_code":"section194476","featured_images":2980352.0,"id":188791,"singleSection":false});				  						galleries[201767] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Noelle Gable","link":"section194476_201767.html","maxRecords":0.0,"photoIDs":[2981817.0],"skipIndex":0,"section_code":"section194476","featured_images":2981817.0,"id":201767,"singleSection":false});				  						galleries[460743] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Woodcarving","link":"section557803_460743.html","maxRecords":0.0,"photoIDs":[8745223.0,8745216.0],"skipIndex":0,"section_code":"section557803","featured_images":"8745223,8745216","id":460743,"singleSection":false});				  						galleries[201765] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Jenny Wheatley","link":"section194476_201765.html","maxRecords":0.0,"photoIDs":[2981563.0],"skipIndex":0,"section_code":"section194476","featured_images":2981563.0,"id":201765,"singleSection":false});				  						galleries[460749] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Glass","link":"section557803_460749.html","maxRecords":0.0,"photoIDs":[8745994.0,8748260.0,8748408.0,8748411.0],"skipIndex":0,"section_code":"section557803","featured_images":"8748411,8748408,8748260,8745994","id":460749,"singleSection":false});				  						galleries[201766] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Jean Emery","link":"section194476_201766.html","maxRecords":0.0,"photoIDs":[2981693.0],"skipIndex":0,"section_code":"section194476","featured_images":2981693.0,"id":201766,"singleSection":false});				  						galleries[460751] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Ceramics","link":"section557803_460751.html","maxRecords":0.0,"photoIDs":[8745249.0,8745656.0],"skipIndex":0,"section_code":"section557803","featured_images":"8745656,8745249","id":460751,"singleSection":false});				  						galleries[460753] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Painting","link":"section557803_460753.html","maxRecords":0.0,"photoIDs":[8778576.0,8778579.0],"skipIndex":0,"section_code":"section557803","featured_images":"8778579,8778576","id":460753,"singleSection":false});				  						galleries[460784] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Prints","link":"section557803_460784.html","maxRecords":0.0,"photoIDs":[4701866.0],"skipIndex":0,"section_code":"section557803","featured_images":4701866.0,"id":460784,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '2328922,8467491,8745216,8469847,8470075,8470097,4701866,8778551,8745994,8745656,8748260,8778641,8748411';
imageSets[3] = '8778641,8778579,8778576,8778556,8778551,8748411,8748408,8748260,8745994,8745656,8745249,8745223,8745216,8649152,8649148,8649147,8649146,8470097,8470084,8470075,8470053,8470050,8469885,8469847,8469799,8469698,8467491,6199220,6198783,6198717,6198593,5663531,5663343,4702310,4702101,4702089,4702086,4702064,4702021,4702015,4701989,4701983,4701979,4701959,4701953,4701945,4701936,4701868,4701867,4701866';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/stevedexter/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/stevedexter/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/stevedexter/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/stevedexter/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/stevedexter/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/stevedexter/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/stevedexter/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/stevedexter/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/stevedexter/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/stevedexter/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/stevedexter/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/stevedexter/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/stevedexter/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/stevedexter/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/stevedexter/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/stevedexter/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/stevedexter/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/stevedexter/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/stevedexter/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/stevedexter/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/stevedexter/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/stevedexter/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/stevedexter/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/stevedexter/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/stevedexter/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/stevedexter/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/stevedexter/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 += 'section194476.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 && 'section194476' != '') {
					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 = 'Veryan Galleries: ' + 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;
	}
}

			

