window.thumbnails = {};
															thumbnails[7268579] = clik.newPhoto({"id":7268579,"src":"DSCF1816_edited-1_thumb.JPG","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Ceramics by Alison Mobsby","height":206});
															thumbnails[5685310] = clik.newPhoto({"id":5685310,"src":"Logo_thumb.gif","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Appledore Crafts Company Logo","height":107});
															thumbnails[5684177] = clik.newPhoto({"id":5684177,"src":"Jo_Pryor_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"'Eaves'by Jo Pryor","height":142});
															thumbnails[5625940] = clik.newPhoto({"id":5625940,"src":"14TheGallery_Directions_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"14 The Gallery location","height":149});
															thumbnails[5626755] = clik.newPhoto({"id":5626755,"src":"northdevonuk_thumb.gif","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"North Devon UK","height":29});
															thumbnails[5571674] = clik.newPhoto({"id":5571674,"src":"PeaceSW_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"by Sarah Woolfenden","height":128});
															thumbnails[5578511] = clik.newPhoto({"id":5578511,"src":"earth_circle_3_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"by Lani Shepherd","height":116});
															thumbnails[5405534] = clik.newPhoto({"id":5405534,"src":"14TheGalleryLogo_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"14 The Gallery Logo","height":167});
															thumbnails[5593759] = clik.newPhoto({"id":5593759,"src":"member_NDA_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Member of North Devon Arts","height":42});
															thumbnails[5608689] = clik.newPhoto({"id":5608689,"src":"britishartslogo_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"British Art Logo","height":66});
															thumbnails[5608781] = clik.newPhoto({"id":5608781,"src":"NDA_logo_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"NDA logo","height":42});
															thumbnails[5750833] = clik.newPhoto({"id":5750833,"src":"cosmos_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Cosmos by Janet Jopson","height":103});
															thumbnails[6043650] = clik.newPhoto({"id":6043650,"src":"GBUK-banner_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"GBUK banner","height":16});
															thumbnails[6553673] = clik.newPhoto({"id":6553673,"src":"2010pot_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"2010 Pot","height":107});
															thumbnails[6553681] = clik.newPhoto({"id":6553681,"src":"Helenwheel_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Helen wheel","height":130});
															thumbnails[6553705] = clik.newPhoto({"id":6553705,"src":"HelenBailes_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Helens logo","height":161});
															thumbnails[6554273] = clik.newPhoto({"id":6554273,"src":"MyLogo2917_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"SueJewelleryLogo","height":101});
															thumbnails[7006252] = clik.newPhoto({"id":7006252,"src":"South_West_Winds_small_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"South West Winds","height":173});
															thumbnails[7655749] = clik.newPhoto({"id":7655749,"src":"Sue-Mair-Mosaic_thumb.JPG","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":79});
															thumbnails[7763007] = clik.newPhoto({"id":7763007,"src":"dog_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"raku dog by Brian Andrew","height":180});
															thumbnails[8102219] = clik.newPhoto({"id":8102219,"src":"Womens_Showcase_thumb.JPG","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Duchy Square","height":184});
															thumbnails[8222086] = clik.newPhoto({"id":8222086,"src":"keyring1_thumb.JPG","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":159});
															thumbnails[8234116] = clik.newPhoto({"id":8234116,"src":"SueM_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":198});
															thumbnails[8649694] = clik.newPhoto({"id":8649694,"src":"14-9-11_sun_0922_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Limegreen Silver \"Cats Whiskers\"","height":159});
															thumbnails[8649801] = clik.newPhoto({"id":8649801,"src":"14-9-11_sun_0602_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Limegreen Silver \"Leaves\"","height":111});
															thumbnails[9070707] = clik.newPhoto({"id":9070707,"src":"Jo_Pryor_-_Rise_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Rise by Jo Pryor","height":85});
															thumbnails[9070709] = clik.newPhoto({"id":9070709,"src":"Jo_Pryor_-_Offering_edited-2_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Offering by Jo Pryor","height":89});
															thumbnails[9070719] = clik.newPhoto({"id":9070719,"src":"Flowery_pinks_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Flowery pinks by Sue Martin","height":207});
															thumbnails[7843047] = clik.newPhoto({"id":7843047,"src":"Alison_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Alison textile work","height":182});
															thumbnails[8649750] = clik.newPhoto({"id":8649750,"src":"14-9-11_sun_0082_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Limegreen Silver \"Windows\"","height":77});
															thumbnails[5636935] = clik.newPhoto({"id":5636935,"src":"2_doves_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Two doves ceramics by Rosie Burns","height":115});
															thumbnails[5405095] = clik.newPhoto({"id":5405095,"src":"a_thousand_words_1016mmx7621_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"A Thousand Words,painting by Rosie Burns","height":96});
															thumbnails[6059781] = clik.newPhoto({"id":6059781,"src":"Hartland_Quay_Oystercatchers50dpi002_ECF85D4A-1EC9-D45B-1C4DD3A3E16E966D_thumb.jpg","galleries_id":328639,"server_id":5,"link":"photo_6059781.html","width":130,"caption":"Hartland Quay Oyster Catchers","height":94});
															thumbnails[6059782] = clik.newPhoto({"id":6059782,"src":"Home_on_the_Tide_50dpi_001_ECF93114-1EC9-D45B-1C7774193EA0845F_thumb.jpg","galleries_id":328639,"server_id":5,"link":"photo_6059782.html","width":130,"caption":"Home on the tide","height":95});
															thumbnails[6059783] = clik.newPhoto({"id":6059783,"src":"Irene_approaching_Lundy__50dpi001_adj_cont_and_bright_thumb.jpg","galleries_id":328639,"server_id":5,"link":"photo_6059783.html","width":130,"caption":"Irene approaching Lundy","height":89});
															thumbnails[6059784] = clik.newPhoto({"id":6059784,"src":"Low_tide_Clovelly_50dpi_001_ECFCF8CB-1EC9-D45B-1CE76F580D89F01A_thumb.jpg","galleries_id":328639,"server_id":5,"link":"photo_6059784.html","width":130,"caption":"Low tide Clovelly","height":95});
															thumbnails[6059785] = clik.newPhoto({"id":6059785,"src":"Laurell___hair_almost_up300dpi_002_thumb.jpg","galleries_id":328639,"server_id":5,"link":"photo_6059785.html","width":130,"caption":"Laurell hair almost up","height":179});
															thumbnails[6059786] = clik.newPhoto({"id":6059786,"src":"Zoe_reclining50dpi_001_thumb.jpg","galleries_id":328639,"server_id":5,"link":"photo_6059786.html","width":130,"caption":"Zoe reclining","height":95});
															thumbnails[6059787] = clik.newPhoto({"id":6059787,"src":"Westward_Ho_waves_50dpi_001_thumb.jpg","galleries_id":328639,"server_id":5,"link":"photo_6059787.html","width":130,"caption":"Westward Ho! waves","height":95});
															thumbnails[6059789] = clik.newPhoto({"id":6059789,"src":"Result_Appledore50dpi001_thumb.jpg","galleries_id":328639,"server_id":5,"link":"photo_6059789.html","width":130,"caption":"Result Appledore","height":94});
															thumbnails[6999052] = clik.newPhoto({"id":6999052,"src":"FLOWERS1_thumb.jpg","galleries_id":376654,"server_id":5,"link":"photo_6999052.html","width":130,"caption":"Flowers","height":167});
															thumbnails[7006090] = clik.newPhoto({"id":7006090,"src":"Artful_Hat_CompanyJPEG_thumb.JPG","galleries_id":376654,"server_id":5,"link":"photo_7006090.html","width":130,"caption":"Cocktail","height":134});
															thumbnails[7006334] = clik.newPhoto({"id":7006334,"src":"blackwhiterose_small_thumb.JPG","galleries_id":376654,"server_id":5,"link":"photo_7006334.html","width":130,"caption":"Black and white rose small","height":109});
															thumbnails[7006414] = clik.newPhoto({"id":7006414,"src":"PINK_BOA_small_thumb.JPG","galleries_id":376654,"server_id":5,"link":"photo_7006414.html","width":130,"caption":"Pink boa","height":124});
															thumbnails[7006448] = clik.newPhoto({"id":7006448,"src":"VIENNA_IN_BW_HATsmall_thumb.JPG","galleries_id":376654,"server_id":5,"link":"photo_7006448.html","width":130,"caption":"Vienna in black and white","height":121});
															thumbnails[7075617] = clik.newPhoto({"id":7075617,"src":"Butterflies_and_hearts_thumb.jpg","galleries_id":328644,"server_id":5,"link":"photo_7075617.html","width":130,"caption":"Fused glass pendants with butterflies and hearts","height":98});
															thumbnails[7492495] = clik.newPhoto({"id":7492495,"src":"AlisonGallery_thumb.JPG","galleries_id":328651,"server_id":5,"link":"photo_7492495.html","width":130,"caption":"Fired smoked ceramics by Alison Mobsby","height":81});
															thumbnails[7492502] = clik.newPhoto({"id":7492502,"src":"HelenGallery_thumb.JPG","galleries_id":328651,"server_id":5,"link":"photo_7492502.html","width":130,"caption":"Porcelain ceramics by Helen Bailes","height":200});
															thumbnails[7492546] = clik.newPhoto({"id":7492546,"src":"SueGallery_thumb.JPG","galleries_id":328651,"server_id":5,"link":"photo_7492546.html","width":130,"caption":"Fused glass art by Sue Martin","height":61});
															thumbnails[7492550] = clik.newPhoto({"id":7492550,"src":"JillyGallery_thumb.JPG","galleries_id":328651,"server_id":5,"link":"photo_7492550.html","width":130,"caption":"Velvet and silk hats and adornments by Jilly Cooper","height":173});
															thumbnails[7492586] = clik.newPhoto({"id":7492586,"src":"WindowGallery_thumb.JPG","galleries_id":328651,"server_id":5,"link":"photo_7492586.html","width":130,"caption":"Examples of work on display","height":173});
															thumbnails[7492600] = clik.newPhoto({"id":7492600,"src":"windowGallery1_thumb.JPG","galleries_id":328651,"server_id":5,"link":"photo_7492600.html","width":130,"caption":"Further work on display","height":98});
															thumbnails[7492609] = clik.newPhoto({"id":7492609,"src":"BronGallery_thumb.JPG","galleries_id":328651,"server_id":5,"link":"photo_7492609.html","width":130,"caption":"Button work by Bron Harris","height":78});
															thumbnails[7497498] = clik.newPhoto({"id":7497498,"src":"Button_jewellery_1051_thumb.JPG","galleries_id":383177,"server_id":5,"link":"photo_7497498.html","width":130,"caption":"Green and pink button bracelet","height":98});
															thumbnails[7497527] = clik.newPhoto({"id":7497527,"src":"Button_jewellery_1531_thumb.JPG","galleries_id":383177,"server_id":5,"link":"photo_7497527.html","width":130,"caption":"Pink and blue button bracelet","height":162});
															thumbnails[7497531] = clik.newPhoto({"id":7497531,"src":"Button_jewellery_2241_thumb.JPG","galleries_id":383177,"server_id":5,"link":"photo_7497531.html","width":130,"caption":"Silver button necklace","height":173});
															thumbnails[7857003] = clik.newPhoto({"id":7857003,"src":"WDBTreeofLIfeUs1_thumb.jpg","galleries_id":328651,"server_id":5,"link":"photo_7857003.html","width":130,"caption":"'The Tree of Life' is unveiled","height":88});
															thumbnails[8339485] = clik.newPhoto({"id":8339485,"src":"VanillaFocal1_thumb.JPG","galleries_id":328644,"server_id":5,"link":"photo_8339485.html","width":130,"caption":"Lampworked glass focal bead","height":104});
															thumbnails[8339495] = clik.newPhoto({"id":8339495,"src":"Black_and_white_specials1_thumb.JPG","galleries_id":328644,"server_id":5,"link":"photo_8339495.html","width":130,"caption":"Black and white lampworked glass beads","height":98});
															thumbnails[8339540] = clik.newPhoto({"id":8339540,"src":"Beachside4_thumb.JPG","galleries_id":328644,"server_id":5,"link":"photo_8339540.html","width":130,"caption":"Beachside fused glass panel","height":116});
															thumbnails[8339545] = clik.newPhoto({"id":8339545,"src":"Boat_panel_long1_thumb.JPG","galleries_id":328644,"server_id":5,"link":"photo_8339545.html","width":130,"caption":"Fused glass boat panel","height":55});
															thumbnails[9070702] = clik.newPhoto({"id":9070702,"src":"Jo_Pryor_-_Moon_thumb.jpg","galleries_id":328651,"server_id":5,"link":"photo_9070702.html","width":130,"caption":"Moon by Jo Pryor","height":89});
															thumbnails[9076702] = clik.newPhoto({"id":9076702,"src":"RedCape_thumb.JPG","galleries_id":471407,"server_id":5,"link":"photo_9076702.html","width":130,"caption":"Red Cape by Jinny Barton","height":231});
															thumbnails[9076710] = clik.newPhoto({"id":9076710,"src":"CeriseLinen_thumb.JPG","galleries_id":471407,"server_id":5,"link":"photo_9076710.html","width":130,"caption":"Cerise Linen Smock by Jinny Barton","height":231});
															thumbnails[9076717] = clik.newPhoto({"id":9076717,"src":"BlackFur_thumb.JPG","galleries_id":471407,"server_id":5,"link":"photo_9076717.html","width":130,"caption":"Black cape with fur collar by Jinny Barton","height":231});
															thumbnails[9076724] = clik.newPhoto({"id":9076724,"src":"ButtonMaterial_thumb.JPG","galleries_id":471407,"server_id":5,"link":"photo_9076724.html","width":130,"caption":"Materials used by Jinny Barton","height":73});
															thumbnails[5332539] = clik.newPhoto({"id":5332539,"src":"Gallery14_CDave_Green_thumb.jpg","galleries_id":328651,"server_id":5,"link":"photo_5332539.html","width":130,"caption":"Inside the gallery","height":74});
															thumbnails[6529380] = clik.newPhoto({"id":6529380,"src":"Air_thumb.jpg","galleries_id":397606,"server_id":5,"link":"photo_6529380.html","width":130,"caption":"Alison Nicholson 'Air'","height":107});
															thumbnails[5332961] = clik.newPhoto({"id":5332961,"src":"Gallery14_Helen_Bailes_CDave_Green_thumb.jpg","galleries_id":300294,"server_id":5,"link":"photo_5332961.html","width":130,"caption":"Ceramic bowl","height":173});
															thumbnails[6529365] = clik.newPhoto({"id":6529365,"src":"19_thumb.jpg","galleries_id":397606,"server_id":5,"link":"photo_6529365.html","width":130,"caption":"Alison Nicholson","height":191});
															thumbnails[7500688] = clik.newPhoto({"id":7500688,"src":"HelenBronJillySouth_Molton_thumb.JPG","galleries_id":328651,"server_id":5,"link":"photo_7500688.html","width":130,"caption":"Jilly, Bron & Helen at South Molton ","height":84});
															thumbnails[8649695] = clik.newPhoto({"id":8649695,"src":"14-9-11_sun_0352_thumb.jpg","galleries_id":328650,"server_id":5,"link":"photo_8649695.html","width":130,"caption":"Limegreen Silver \"Feather Ends\"","height":99});
															thumbnails[5497814] = clik.newPhoto({"id":5497814,"src":"earring_stand_09_thumb.jpg","galleries_id":300294,"server_id":5,"link":"photo_5497814.html","width":130,"caption":"Earring stand 09","height":137});
															thumbnails[7500744] = clik.newPhoto({"id":7500744,"src":"SueSouthMolton_thumb.JPG","galleries_id":328651,"server_id":5,"link":"photo_7500744.html","width":130,"caption":"Sue on the gallery stall at South Molton ","height":109});
															thumbnails[8649807] = clik.newPhoto({"id":8649807,"src":"may_2011_0292_thumb.jpg","galleries_id":328650,"server_id":5,"link":"photo_8649807.html","width":130,"caption":"Limegreen Silver 3 Stacking Rings","height":88});
															thumbnails[5333390] = clik.newPhoto({"id":5333390,"src":"HelenPot_thumb.jpg","galleries_id":300294,"server_id":5,"link":"photo_5333390.html","width":130,"caption":"Helens pot","height":175});
															thumbnails[5333462] = clik.newPhoto({"id":5333462,"src":"HelensDish_thumb.jpg","galleries_id":300294,"server_id":5,"link":"photo_5333462.html","width":130,"caption":"Helens dish","height":98});
															thumbnails[5497820] = clik.newPhoto({"id":5497820,"src":"marine_blue__vase_4_thumb.jpg","galleries_id":300294,"server_id":5,"link":"photo_5497820.html","width":130,"caption":"Ceramic vase by Helen Bailes","height":203});
															thumbnails[8650026] = clik.newPhoto({"id":8650026,"src":"14-9-11_sun_0862_thumb.jpg","galleries_id":328650,"server_id":5,"link":"photo_8650026.html","width":130,"caption":"Limegreen Silver \"Buds\"","height":141});
															thumbnails[5497826] = clik.newPhoto({"id":5497826,"src":"rockpool_ball_fountain_thumb.jpg","galleries_id":300294,"server_id":5,"link":"photo_5497826.html","width":130,"caption":"Rockpool ball pool fountain by Helen Bailes","height":84});
															thumbnails[8649803] = clik.newPhoto({"id":8649803,"src":"14-9-11_sun_0672_thumb.jpg","galleries_id":328650,"server_id":5,"link":"photo_8649803.html","width":130,"caption":"Limegreen Silver \"Solar\" bracelet","height":82});
															thumbnails[5497829] = clik.newPhoto({"id":5497829,"src":"light_holders_09_thumb.jpg","galleries_id":300294,"server_id":5,"link":"photo_5497829.html","width":130,"caption":"Ceramic light holders by Helen Bailes","height":84});
															thumbnails[8649748] = clik.newPhoto({"id":8649748,"src":"14-9-11_sun_0012_thumb.jpg","galleries_id":328650,"server_id":5,"link":"photo_8649748.html","width":130,"caption":"Limegreen Silver \"Waves\"","height":88});
															thumbnails[5400996] = clik.newPhoto({"id":5400996,"src":"Small3BlueBeads_Pendant_1_copy_thumb.jpg","galleries_id":328644,"server_id":5,"link":"photo_5400996.html","width":130,"caption":"Blue glasslampworked beads with silver","height":76});
															thumbnails[5405050] = clik.newPhoto({"id":5405050,"src":"greenhanging_thumb.JPG","galleries_id":328644,"server_id":5,"link":"photo_5405050.html","width":130,"caption":"'Shades of Green' fused glass art panel","height":98});
															thumbnails[5405064] = clik.newPhoto({"id":5405064,"src":"latestblueclockApp_thumb.jpg","galleries_id":328644,"server_id":5,"link":"photo_5405064.html","width":130,"caption":"Fused glass blue clock","height":116});
															thumbnails[5333637] = clik.newPhoto({"id":5333637,"src":"JaneL1_thumb.jpg","galleries_id":328649,"server_id":5,"link":"photo_5333637.html","width":130,"caption":"Horse portrait by Jane Lawrence","height":140});
															thumbnails[5333649] = clik.newPhoto({"id":5333649,"src":"JaneL2_thumb.jpg","galleries_id":328649,"server_id":5,"link":"photo_5333649.html","width":130,"caption":"Dog portrait by Jane Lawrence","height":143});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[328651] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gallery interior displays","link":"gallery_328651.html","maxRecords":0.0,"photoIDs":[7492495.0,7492502.0,7492546.0,7492550.0,7492586.0,7492600.0,7492609.0,7857003.0,9070702.0,5332539.0,7500688.0,7500744.0],"skipIndex":0,"section_code":"gallery","featured_images":"9070702,7857003,7500744,7500688,7492609,7492600,7492586,7492550,7492546,7492502,7492495","id":328651,"singleSection":false});				  						galleries[300294] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Helen Bailes","link":"gallery_300294.html","maxRecords":0.0,"photoIDs":[5332961.0,5497814.0,5333390.0,5333462.0,5497820.0,5497826.0,5497829.0],"skipIndex":0,"section_code":"gallery","featured_images":"5497829,5497826,5497820,5497814,5333462,5333390,5332961","id":300294,"singleSection":false});				  						galleries[328644] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Sue Martin","link":"gallery_328644.html","maxRecords":0.0,"photoIDs":[7075617.0,8339485.0,8339495.0,8339540.0,8339545.0,5400996.0,5405050.0,5405064.0],"skipIndex":0,"section_code":"gallery","featured_images":"8339545,8339540,8339495,8339485,7075617","id":328644,"singleSection":false});				  						galleries[328639] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Ian Hudson","link":"gallery_328639.html","maxRecords":0.0,"photoIDs":[6059781.0,6059782.0,6059783.0,6059784.0,6059785.0,6059786.0,6059787.0,6059789.0],"skipIndex":0,"section_code":"gallery","featured_images":"6059789,6059787,6059786,6059785,6059784,6059783,6059782,6059781","id":328639,"singleSection":false});				  						galleries[328649] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Jane Lawrence","link":"gallery_328649.html","maxRecords":0.0,"photoIDs":[5333637.0,5333649.0],"skipIndex":0,"section_code":"gallery","featured_images":"5333649,5333637","id":328649,"singleSection":false});				  						galleries[328650] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Kathy Elsden","link":"gallery_328650.html","maxRecords":0.0,"photoIDs":[8649695.0,8649807.0,8650026.0,8649803.0,8649748.0],"skipIndex":0,"section_code":"gallery","featured_images":8649748.0,"id":328650,"singleSection":false});				  						galleries[383177] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Bron Harris","link":"gallery_383177.html","maxRecords":0.0,"photoIDs":[7497498.0,7497527.0,7497531.0],"skipIndex":0,"section_code":"gallery","featured_images":"7497531,7497527,7497498","id":383177,"singleSection":false});				  						galleries[376654] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Jilly Collins","link":"gallery_376654.html","maxRecords":0.0,"photoIDs":[6999052.0,7006090.0,7006334.0,7006414.0,7006448.0],"skipIndex":0,"section_code":"gallery","featured_images":"7006448,7006414,7006334,7006090,6999052","id":376654,"singleSection":false});				  						galleries[397606] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Alison Nicholson","link":"gallery_397606.html","maxRecords":0.0,"photoIDs":[6529380.0,6529365.0],"skipIndex":0,"section_code":"gallery","featured_images":"6529380,6529365","id":397606,"singleSection":false});				  						galleries[471407] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Jinny Barton","link":"gallery_471407.html","maxRecords":0.0,"photoIDs":[9076702.0,9076710.0,9076717.0,9076724.0],"skipIndex":0,"section_code":"gallery","featured_images":"9076724,9076717,9076710,9076702","id":471407,"singleSection":false});				  						galleries[471408] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Lynn Lewis","link":"gallery_471408.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"","id":471408,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8339545,8339540,8339495,8339485,7857003,7497531,7497527,7497498,7492609,7492600,7492586,7492546,7492502,7492495,5332539,7500688,7500744,8649748';
imageSets[2] = '9070702,8339545,8339540,8339495,8339485,7857003,7497531,7497527,7497498,7492609,7492600,7492586,7492550,7492546,7492502,7492495,7075617,7500688,7500744,8649748';
imageSets[3] = '9076724,9076717,9076710,9076702,9070719,9070709,9070707,9070702,8650026,8649807,8649803,8649801,8649750,8649748,8649695,8649694,8339545,8339540,8339495,8339485,8234116,8222086,8102219,7857003,7843047,7763007,7655749,7500744,7500688,7497531,7497527,7497498,7492609,7492600,7492586,7492550,7492546,7492502,7492495,7268579,7075617,7006448,7006414,7006334,7006252,7006090,6999052,6554273,6553705,6553681';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/14thegallery/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/14thegallery/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/14thegallery/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/14thegallery/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/14thegallery/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/14thegallery/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/14thegallery/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/14thegallery/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/14thegallery/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/14thegallery/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/14thegallery/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/14thegallery/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/14thegallery/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/14thegallery/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/14thegallery/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/14thegallery/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/14thegallery/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/14thegallery/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/14thegallery/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/14thegallery/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/14thegallery/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/14thegallery/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/14thegallery/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/14thegallery/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/14thegallery/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/14thegallery/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/14thegallery/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = (backgrounds || photos || {})[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = ': ' + 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;
	}
}

			

