window.thumbnails = {};
															thumbnails[2331642] = clik.newPhoto({"id":2331642,"src":"bazandmaureen_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":110});
															thumbnails[2331633] = clik.newPhoto({"id":2331633,"src":"garden_4_thumb.jpg","galleries_id":151828,"server_id":32,"link":"photo_2331633.html","width":130,"caption":"The Summer house","height":98});
															thumbnails[2331640] = clik.newPhoto({"id":2331640,"src":"rocks_thumb.jpg","galleries_id":152061,"server_id":32,"link":"photo_2331640.html","width":130,"caption":"Cornwall","height":97});
															thumbnails[4098289] = clik.newPhoto({"id":4098289,"src":"Coco_thumb.jpg","galleries_id":245850,"server_id":32,"link":"photo_4098289.html","width":130,"caption":"","height":173});
															thumbnails[4098293] = clik.newPhoto({"id":4098293,"src":"rob1_thumb.jpg","galleries_id":245850,"server_id":32,"link":"photo_4098293.html","width":130,"caption":"","height":97});
															thumbnails[4098322] = clik.newPhoto({"id":4098322,"src":"Jammy2_thumb.jpg","galleries_id":245850,"server_id":32,"link":"photo_4098322.html","width":130,"caption":"","height":97});
															thumbnails[4098327] = clik.newPhoto({"id":4098327,"src":"Dharm_thumb.jpg","galleries_id":245850,"server_id":32,"link":"photo_4098327.html","width":130,"caption":"","height":173});
															thumbnails[4195179] = clik.newPhoto({"id":4195179,"src":"fish_1_thumb.jpg","galleries_id":151828,"server_id":32,"link":"photo_4195179.html","width":130,"caption":"Fish sculpture in garden.","height":97});
															thumbnails[2331968] = clik.newPhoto({"id":2331968,"src":"lamorna-cove_thumb.jpg","galleries_id":152061,"server_id":32,"link":"photo_2331968.html","width":130,"caption":"Lamorna Cove","height":97});
															thumbnails[2331983] = clik.newPhoto({"id":2331983,"src":"garden_5_thumb.jpg","galleries_id":151828,"server_id":32,"link":"photo_2331983.html","width":130,"caption":"The workshop","height":98});
															thumbnails[2331976] = clik.newPhoto({"id":2331976,"src":"lamorna-top-view_thumb.jpg","galleries_id":152061,"server_id":32,"link":"photo_2331976.html","width":130,"caption":"Lamorna top view","height":87});
															thumbnails[2331985] = clik.newPhoto({"id":2331985,"src":"rob_thumb.jpg","galleries_id":245850,"server_id":32,"link":"photo_2331985.html","width":130,"caption":"","height":173});
															thumbnails[2331978] = clik.newPhoto({"id":2331978,"src":"merry-maidens_thumb.jpg","galleries_id":152061,"server_id":32,"link":"photo_2331978.html","width":130,"caption":"The Merry Maidens","height":87});
															thumbnails[2331979] = clik.newPhoto({"id":2331979,"src":"mousehole-best_thumb.jpg","galleries_id":152061,"server_id":32,"link":"photo_2331979.html","width":130,"caption":"Mousehole","height":98});
															thumbnails[2331987] = clik.newPhoto({"id":2331987,"src":"John_thumb.jpg","galleries_id":245850,"server_id":32,"link":"photo_2331987.html","width":130,"caption":"","height":173});
															thumbnails[2331981] = clik.newPhoto({"id":2331981,"src":"mount_thumb.jpg","galleries_id":152061,"server_id":32,"link":"photo_2331981.html","width":130,"caption":"St Michael's Mount","height":173});
															thumbnails[2331989] = clik.newPhoto({"id":2331989,"src":"veg_gdn_2_thumb.jpg","galleries_id":151828,"server_id":32,"link":"photo_2331989.html","width":130,"caption":"The vegetable garden","height":98});
															thumbnails[2331982] = clik.newPhoto({"id":2331982,"src":"porthcurno_thumb.jpg","galleries_id":152061,"server_id":32,"link":"photo_2331982.html","width":130,"caption":"Porthcurno","height":87});
															thumbnails[2331990] = clik.newPhoto({"id":2331990,"src":"garden_11_thumb.jpg","galleries_id":151828,"server_id":32,"link":"photo_2331990.html","width":130,"caption":"House and garden","height":98});
															thumbnails[2331992] = clik.newPhoto({"id":2331992,"src":"cottage_front_thumb.jpg","galleries_id":151828,"server_id":32,"link":"photo_2331992.html","width":130,"caption":"Student accommodation","height":98});
															thumbnails[2339507] = clik.newPhoto({"id":2339507,"src":"echiums_thumb.jpg","galleries_id":152061,"server_id":32,"link":"photo_2339507.html","width":130,"caption":"Echiums in Cornwall","height":195});
															thumbnails[2327038] = clik.newPhoto({"id":2327038,"src":"spirals_thumb.jpg","galleries_id":152057,"server_id":32,"link":"photo_2327038.html","width":130,"caption":"slate spirals","height":152});
															thumbnails[2331847] = clik.newPhoto({"id":2331847,"src":"earthgoddess1_thumb.jpg","galleries_id":152056,"server_id":32,"link":"photo_2331847.html","width":130,"caption":"Earth goddess","height":158});
															thumbnails[3763417] = clik.newPhoto({"id":3763417,"src":"BMBear_thumb.jpg","galleries_id":151813,"server_id":32,"link":"photo_3763417.html","width":130,"caption":"Bear","height":86});
															thumbnails[3763423] = clik.newPhoto({"id":3763423,"src":"BMHawks_Head_thumb.jpg","galleries_id":151813,"server_id":32,"link":"photo_3763423.html","width":130,"caption":"Hawks Head","height":97});
															thumbnails[3806866] = clik.newPhoto({"id":3806866,"src":"BMShamans_Box_thumb.jpg","galleries_id":151813,"server_id":32,"link":"photo_3806866.html","width":130,"caption":"'Shaman's Box'","height":87});
															thumbnails[3893438] = clik.newPhoto({"id":3893438,"src":"BMTortoise_thumb.jpg","galleries_id":151813,"server_id":32,"link":"photo_3893438.html","width":130,"caption":"Turtle","height":97});
															thumbnails[4098643] = clik.newPhoto({"id":4098643,"src":"Cycladic_head_thumb.jpg","galleries_id":152056,"server_id":32,"link":"photo_4098643.html","width":130,"caption":"\"Cycladic Head\"","height":198});
															thumbnails[5196732] = clik.newPhoto({"id":5196732,"src":"bone_fish_thumb.jpg","galleries_id":151813,"server_id":32,"link":"photo_5196732.html","width":130,"caption":"'Fish'","height":97});
															thumbnails[5196741] = clik.newPhoto({"id":5196741,"src":"loon_thumb.jpg","galleries_id":151813,"server_id":32,"link":"photo_5196741.html","width":130,"caption":"'Arctic Loon'","height":97});
															thumbnails[5196743] = clik.newPhoto({"id":5196743,"src":"nightjar_thumb.jpg","galleries_id":151813,"server_id":32,"link":"photo_5196743.html","width":130,"caption":"'Nightjar'","height":97});
															thumbnails[2331683] = clik.newPhoto({"id":2331683,"src":"alabcycl_thumb.jpg","galleries_id":152057,"server_id":32,"link":"photo_2331683.html","width":130,"caption":"Cycladic head","height":174});
															thumbnails[2331780] = clik.newPhoto({"id":2331780,"src":"bear_thumb.jpg","galleries_id":151813,"server_id":32,"link":"photo_2331780.html","width":130,"caption":"Bear","height":84});
															thumbnails[2331710] = clik.newPhoto({"id":2331710,"src":"leveret_thumb.jpg","galleries_id":152057,"server_id":32,"link":"photo_2331710.html","width":130,"caption":"Leveret in the courgettes","height":98});
															thumbnails[2331786] = clik.newPhoto({"id":2331786,"src":"bird-2_thumb.jpg","galleries_id":151813,"server_id":32,"link":"photo_2331786.html","width":130,"caption":"Bird ","height":129});
															thumbnails[2331852] = clik.newPhoto({"id":2331852,"src":"goddess_thumb.jpg","galleries_id":152056,"server_id":32,"link":"photo_2331852.html","width":130,"caption":"Alabaster goddess","height":224});
															thumbnails[2331811] = clik.newPhoto({"id":2331811,"src":"hawk_thumb.jpg","galleries_id":151813,"server_id":32,"link":"photo_2331811.html","width":130,"caption":"Hawk","height":94});
															thumbnails[2331854] = clik.newPhoto({"id":2331854,"src":"godhead_thumb.jpg","galleries_id":152056,"server_id":32,"link":"photo_2331854.html","width":130,"caption":"God head","height":169});
															thumbnails[2331740] = clik.newPhoto({"id":2331740,"src":"shaman_thumb.jpg","galleries_id":152057,"server_id":32,"link":"photo_2331740.html","width":130,"caption":"Shaman in the garden","height":97});
															thumbnails[2331813] = clik.newPhoto({"id":2331813,"src":"narwhal_thumb.jpg","galleries_id":151813,"server_id":32,"link":"photo_2331813.html","width":130,"caption":"Narwhal","height":97});
															thumbnails[2331856] = clik.newPhoto({"id":2331856,"src":"hornedgod_thumb.jpg","galleries_id":152056,"server_id":32,"link":"photo_2331856.html","width":130,"caption":"Horned god","height":222});
															thumbnails[2331741] = clik.newPhoto({"id":2331741,"src":"modiglia_thumb.jpg","galleries_id":152057,"server_id":32,"link":"photo_2331741.html","width":130,"caption":"Modigliani head","height":174});
															thumbnails[2331815] = clik.newPhoto({"id":2331815,"src":"owl_thumb.jpg","galleries_id":151813,"server_id":32,"link":"photo_2331815.html","width":130,"caption":"Magic Owl","height":125});
															thumbnails[2331858] = clik.newPhoto({"id":2331858,"src":"slategoddess_thumb.jpg","galleries_id":152056,"server_id":32,"link":"photo_2331858.html","width":130,"caption":"Slate goddess","height":174});
															thumbnails[2331744] = clik.newPhoto({"id":2331744,"src":"bighead_thumb.jpg","galleries_id":152057,"server_id":32,"link":"photo_2331744.html","width":130,"caption":"Peaceful god","height":168});
															thumbnails[2331819] = clik.newPhoto({"id":2331819,"src":"slateowl_thumb.jpg","galleries_id":151813,"server_id":32,"link":"photo_2331819.html","width":130,"caption":"Slate owl","height":119});
															thumbnails[2331860] = clik.newPhoto({"id":2331860,"src":"ThresholdGod_thumb.jpg","galleries_id":152056,"server_id":32,"link":"photo_2331860.html","width":130,"caption":"Threshold god","height":104});
															thumbnails[5196711] = clik.newPhoto({"id":5196711,"src":"bone_spirits_thumb.jpg","galleries_id":228191,"server_id":32,"link":"photo_5196711.html","width":130,"caption":"'Bone Spirits', bone on slate, w.40cm SOLD","height":61});
															thumbnails[5196714] = clik.newPhoto({"id":5196714,"src":"demon_slayer_thumb.jpg","galleries_id":228191,"server_id":32,"link":"photo_5196714.html","width":130,"caption":"'Story knife', serpentine, wood, copper, etc, l.35cm","height":115});
															thumbnails[5196728] = clik.newPhoto({"id":5196728,"src":"boat_people_thumb.jpg","galleries_id":228191,"server_id":32,"link":"photo_5196728.html","width":130,"caption":"'Boat people', steartite & resin, h.15cm SOLD","height":97});
															thumbnails[5196731] = clik.newPhoto({"id":5196731,"src":"axehead_thumb.jpg","galleries_id":228191,"server_id":32,"link":"photo_5196731.html","width":130,"caption":"'Axehead', soapstone, l.7cm","height":97});
															thumbnails[5196735] = clik.newPhoto({"id":5196735,"src":"handaxe_thumb.jpg","galleries_id":228191,"server_id":32,"link":"photo_5196735.html","width":130,"caption":"'Handaxes' serpentine ","height":96});
															thumbnails[5196746] = clik.newPhoto({"id":5196746,"src":"standing_owl_thumb.jpg","galleries_id":228191,"server_id":32,"link":"photo_5196746.html","width":130,"caption":"'Owl', serpentine & bone on oak, h.10cm SOLD","height":167});
															thumbnails[5936768] = clik.newPhoto({"id":5936768,"src":"Marshes_thumb.JPG","galleries_id":228190,"server_id":32,"link":"photo_5936768.html","width":130,"caption":"'Marshes', mixed media, 26x18.5cm SOLD","height":98});
															thumbnails[5936791] = clik.newPhoto({"id":5936791,"src":"Farm_walk_thumb.JPG","galleries_id":228190,"server_id":32,"link":"photo_5936791.html","width":130,"caption":"'Farm walk', acrylic, 20x20cm","height":128});
															thumbnails[5936824] = clik.newPhoto({"id":5936824,"src":"Farm_Walk_II_thumb.JPG","galleries_id":228190,"server_id":32,"link":"photo_5936824.html","width":130,"caption":"'Farm Walk' II, acrylic, 34x19cm ","height":69});
															thumbnails[5936859] = clik.newPhoto({"id":5936859,"src":"Mining_country_thumb.JPG","galleries_id":228190,"server_id":32,"link":"photo_5936859.html","width":130,"caption":"'Mining country', acrylic & collage, 33x22cm SOLD","height":86});
															thumbnails[5975655] = clik.newPhoto({"id":5975655,"src":"grasshopper_thumb.JPG","galleries_id":228191,"server_id":32,"link":"photo_5975655.html","width":130,"caption":"'Grasshopper', alabaster, w.21cm.","height":95});
															thumbnails[5975708] = clik.newPhoto({"id":5975708,"src":"punk__thumb.JPG","galleries_id":228191,"server_id":32,"link":"photo_5975708.html","width":130,"caption":"'Shaman', serpentine & badger hair, h.15cm SOLD","height":173});
															thumbnails[5975724] = clik.newPhoto({"id":5975724,"src":"serpent__thumb.JPG","galleries_id":228191,"server_id":32,"link":"photo_5975724.html","width":130,"caption":"'Ammonite man', slate, 36x42cm SOLD","height":177});
															thumbnails[5975728] = clik.newPhoto({"id":5975728,"src":"slate_spiral_thumb.JPG","galleries_id":228191,"server_id":32,"link":"photo_5975728.html","width":130,"caption":"'Spiral', slate, 21x24cm. ","height":173});
															thumbnails[6956992] = clik.newPhoto({"id":6956992,"src":"Meeting_on_the_beach_thumb.JPG","galleries_id":228190,"server_id":32,"link":"photo_6956992.html","width":130,"caption":"'Meeting on the beach', acrylic on canvas, 35x25cm SOLD","height":92});
															thumbnails[7639386] = clik.newPhoto({"id":7639386,"src":"Distant_view_thumb.jpg","galleries_id":228190,"server_id":32,"link":"photo_7639386.html","width":130,"caption":"'Distant View', oil on card, 26x22.5cm SOLD","height":114});
															thumbnails[7639764] = clik.newPhoto({"id":7639764,"src":"cycladic_head_45E885BD-24E8-5EC4-4F4C7EB715390BD0_thumb.jpg","galleries_id":228191,"server_id":32,"link":"photo_7639764.html","width":130,"caption":"'Cycladic Head', Carrera marble, h.30cm SOLD","height":178});
															thumbnails[7639785] = clik.newPhoto({"id":7639785,"src":"Aztec_bowl_thumb.jpg","galleries_id":228191,"server_id":32,"link":"photo_7639785.html","width":130,"caption":"'Aztec bowl', soapstone, h.8cm ","height":98});
															thumbnails[7639811] = clik.newPhoto({"id":7639811,"src":"Bear_45EF1619-24E8-5EC4-4F77A681116E3F11_thumb.jpg","galleries_id":228191,"server_id":32,"link":"photo_7639811.html","width":130,"caption":"'Bear', serpentine, w.8cm ","height":98});
															thumbnails[7639829] = clik.newPhoto({"id":7639829,"src":"spiral_45F2E9D1-24E8-5EC4-4FEBF838ED6DF875_thumb.jpg","galleries_id":228191,"server_id":32,"link":"photo_7639829.html","width":130,"caption":"'Spiral', serpentine, dia.11cm ","height":98});
															thumbnails[7639839] = clik.newPhoto({"id":7639839,"src":"Ram_thumb.jpg","galleries_id":228191,"server_id":32,"link":"photo_7639839.html","width":130,"caption":"'Ram', serpentine, w.21cm SOLD","height":98});
															thumbnails[7639853] = clik.newPhoto({"id":7639853,"src":"Goddess_2_thumb.JPG","galleries_id":228191,"server_id":32,"link":"photo_7639853.html","width":130,"caption":"'Goddess', alabaster, h.26cm SOLD","height":93});
															thumbnails[7795226] = clik.newPhoto({"id":7795226,"src":"Copy_of_Bird_bowl_thumb.JPG","galleries_id":228191,"server_id":32,"link":"photo_7795226.html","width":130,"caption":"'Bird bowl', soapstone, 25x9x15cm SOLD","height":90});
															thumbnails[7812843] = clik.newPhoto({"id":7812843,"src":"winter_fields_12_thumb.JPG","galleries_id":228190,"server_id":32,"link":"photo_7812843.html","width":130,"caption":"'Break in the cloud', oil on canvas, 23 X23 cm","height":130});
															thumbnails[8642296] = clik.newPhoto({"id":8642296,"src":"Coastal_light_thumb.jpg","galleries_id":228190,"server_id":32,"link":"photo_8642296.html","width":130,"caption":"'Coastal light' 25x29cm, oil on canvas","height":108});
															thumbnails[8642401] = clik.newPhoto({"id":8642401,"src":"Wet_and_wild_thumb.jpg","galleries_id":228190,"server_id":32,"link":"photo_8642401.html","width":130,"caption":"'Wet and wild', 29x29 cm, acrylic on board","height":130});
															thumbnails[8642404] = clik.newPhoto({"id":8642404,"src":"Winter_landscape_thumb.jpg","galleries_id":228190,"server_id":32,"link":"photo_8642404.html","width":130,"caption":"'Winter landscape', 20x15 cm, mixed media","height":96});
															thumbnails[8642417] = clik.newPhoto({"id":8642417,"src":"Woodland_Reflections_thumb.jpg","galleries_id":228190,"server_id":32,"link":"photo_8642417.html","width":130,"caption":"'Woodland reflections', 36x25 cm, acrylic on board","height":90});
															thumbnails[8642432] = clik.newPhoto({"id":8642432,"src":"Marsh_early_morning_thumb.jpg","galleries_id":228190,"server_id":32,"link":"photo_8642432.html","width":130,"caption":"'Marsh I', 25x20 cm, acrylic on paper","height":119});
															thumbnails[8642435] = clik.newPhoto({"id":8642435,"src":"Marsh_Sunday_morning_thumb.jpg","galleries_id":228190,"server_id":32,"link":"photo_8642435.html","width":130,"caption":"'Marsh II', 25x20 cm, acrylic on paper","height":104});
															thumbnails[8642443] = clik.newPhoto({"id":8642443,"src":"Down_to_the_cove_thumb.jpg","galleries_id":228190,"server_id":32,"link":"photo_8642443.html","width":130,"caption":"'Down to the cove', 25x25cm, oil on canvas","height":130});
															thumbnails[3762714] = clik.newPhoto({"id":3762714,"src":"BMMan_becoming_owl_thumb.jpg","galleries_id":228191,"server_id":32,"link":"photo_3762714.html","width":130,"caption":"'Man becoming owl', serpentine & bronze(mahogany base), 23 x 24 x 9 cm","height":132});
															thumbnails[7639742] = clik.newPhoto({"id":7639742,"src":"Hamlet_thumb.jpg","galleries_id":228190,"server_id":32,"link":"photo_7639742.html","width":130,"caption":"'Hamlet', oil on board SOLD","height":100});
															thumbnails[3893452] = clik.newPhoto({"id":3893452,"src":"MKCottages_thumb.jpg","galleries_id":228190,"server_id":32,"link":"photo_3893452.html","width":130,"caption":"'Cottages', oil on canvas, 24x20cm ","height":98});
															thumbnails[3762706] = clik.newPhoto({"id":3762706,"src":"MKStone_Circle_thumb.jpg","galleries_id":228190,"server_id":32,"link":"photo_3762706.html","width":130,"caption":"'Stone Circle', oil on canvas, 38 x 31 cm ","height":105});
															thumbnails[3762708] = clik.newPhoto({"id":3762708,"src":"After_rain_thumb.jpg","galleries_id":228190,"server_id":32,"link":"photo_3762708.html","width":130,"caption":"'After rain', oil on canvas, 27 x 17 cm SOLD","height":82});
															thumbnails[7646401] = clik.newPhoto({"id":7646401,"src":"gift_voucher_thumb.jpg","galleries_id":414616,"server_id":32,"link":"photo_7646401.html","width":130,"caption":"","height":80});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[228191] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Baz's stonecarvings","link":"section279101_228191.html","maxRecords":0.0,"photoIDs":[5196711.0,5196714.0,5196728.0,5196731.0,5196735.0,5196746.0,5975655.0,5975708.0,5975724.0,5975728.0,7639764.0,7639785.0,7639811.0,7639829.0,7639839.0,7639853.0,7795226.0,3762714.0],"skipIndex":0,"section_code":"section279101","featured_images":"7795226,7639853,7639839,7639829,7639811,7639785,7639764,5975728,5975724,5975708","id":228191,"singleSection":false});				  							galleries[414616] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gift Vouchers ","link":"photo_7646401.html","maxRecords":0.0,"photoIDs":[7646401.0],"skipIndex":true,"section_code":"section496186","featured_images":7646401.0,"id":414616,"singleSection":true});				  						galleries[228190] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Maureen's paintings","link":"section279101_228190.html","maxRecords":0.0,"photoIDs":[5936768.0,5936791.0,5936824.0,5936859.0,6956992.0,7639386.0,7812843.0,8642296.0,8642401.0,8642404.0,8642417.0,8642432.0,8642435.0,8642443.0,7639742.0,3893452.0,3762706.0,3762708.0],"skipIndex":0,"section_code":"section279101","featured_images":"8642443,8642435,8642432,8642417,8642404,8642401,8642296,7812843,7639742,7639386","id":228190,"singleSection":false});				  						galleries[151828] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"House & Workshop ","link":"gallery_151828.html","maxRecords":0.0,"photoIDs":[2331633.0,4195179.0,2331983.0,2331989.0,2331990.0,2331992.0],"skipIndex":0,"section_code":"gallery","featured_images":"4195179,2331992,2331990,2331989,2331983,2331633","id":151828,"singleSection":false});				  						galleries[245850] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Students","link":"gallery_245850.html","maxRecords":0.0,"photoIDs":[4098289.0,4098293.0,4098322.0,4098327.0,2331985.0,2331987.0],"skipIndex":0,"section_code":"gallery","featured_images":"4098327,4098322,4098293,4098289,2331987,2331985","id":245850,"singleSection":false});				  						galleries[152061] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Cornwall","link":"gallery_152061.html","maxRecords":0.0,"photoIDs":[2331640.0,2331968.0,2331976.0,2331978.0,2331979.0,2331981.0,2331982.0,2339507.0],"skipIndex":0,"section_code":"gallery","featured_images":"2339507,2331982,2331981,2331979,2331978,2331976,2331968,2331640","id":152061,"singleSection":false});				  						galleries[152057] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Carvings in the Garden","link":"section298310_152057.html","maxRecords":0.0,"photoIDs":[2327038.0,2331683.0,2331710.0,2331740.0,2331741.0,2331744.0],"skipIndex":0,"section_code":"section298310","featured_images":"2331744,2331741,2331740,2331710,2331683,2327038","id":152057,"singleSection":false});				  						galleries[151813] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Birds and Animals","link":"section298310_151813.html","maxRecords":0.0,"photoIDs":[3763417.0,3763423.0,3806866.0,3893438.0,5196732.0,5196741.0,5196743.0,2331780.0,2331786.0,2331811.0,2331813.0,2331815.0,2331819.0],"skipIndex":0,"section_code":"section298310","featured_images":"5196743,5196741,5196732,3893438,3806866,3763423,3763417,2331819,2331815,2331813","id":151813,"singleSection":false});				  						galleries[152056] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gods and Goddesses","link":"section298310_152056.html","maxRecords":0.0,"photoIDs":[2331847.0,4098643.0,2331852.0,2331854.0,2331856.0,2331858.0,2331860.0],"skipIndex":0,"section_code":"section298310","featured_images":"4098643,2331860,2331858,2331856,2331854,2331852,2331847","id":152056,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '2327038';
imageSets[3] = '5196735';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/mehew1/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/mehew1/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/mehew1/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/mehew1/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/mehew1/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/mehew1/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/mehew1/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/mehew1/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/mehew1/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/mehew1/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/mehew1/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/mehew1/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/mehew1/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/mehew1/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/mehew1/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/mehew1/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/mehew1/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/mehew1/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/mehew1/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/mehew1/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/mehew1/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/mehew1/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/mehew1/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/mehew1/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/mehew1/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/mehew1/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/mehew1/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 += 'section479663.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 && 'section479663' != '') {
					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 = 'Stone Carving Cornwall: ' + 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>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
		 									temp += '<select class="paymentlink" name="payment_options_id" onchange="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
		else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
											temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="MEHEW1">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

