window.thumbnails = {};
															thumbnails[3664851] = clik.newPhoto({"id":3664851,"src":"Coloured_crystal_heart_thumb.jpg","galleries_id":223843,"server_id":15,"link":"photo_3664851.html","width":130,"caption":"'crystal' heart pendant","height":85});
															thumbnails[3664965] = clik.newPhoto({"id":3664965,"src":"3__dichroic__brooches_thumb.jpg","galleries_id":223867,"server_id":15,"link":"photo_3664965.html","width":130,"caption":"3 dichroic brooches","height":105});
															thumbnails[3664989] = clik.newPhoto({"id":3664989,"src":"Pink__purple__earrings_thumb.jpg","galleries_id":223822,"server_id":15,"link":"photo_3664989.html","width":130,"caption":"pink and purple dichroic earrings","height":80});
															thumbnails[3665970] = clik.newPhoto({"id":3665970,"src":"My__pendant2_thumb.jpg","galleries_id":223821,"server_id":15,"link":"photo_3665970.html","width":130,"caption":"Multi-coloured dichroic pendant","height":90});
															thumbnails[3668547] = clik.newPhoto({"id":3668547,"src":"Dichroic_spiral4_thumb.jpg","galleries_id":223818,"server_id":15,"link":"photo_3668547.html","width":130,"caption":"dichroic spiral bowl","height":105});
															thumbnails[3668648] = clik.newPhoto({"id":3668648,"src":"Gold_rust_cuffs_thumb.jpg","galleries_id":223824,"server_id":15,"link":"photo_3668648.html","width":130,"caption":"gold and rust cufflinks","height":80});
															thumbnails[3672335] = clik.newPhoto({"id":3672335,"src":"Light__blue__sparkly__set1_thumb.jpg","galleries_id":223823,"server_id":15,"link":"photo_3672335.html","width":130,"caption":"light blue sparkly set","height":89});
															thumbnails[3855527] = clik.newPhoto({"id":3855527,"src":"Personalised_keyring_thumb.jpg","galleries_id":234573,"server_id":15,"link":"photo_3855527.html","width":130,"caption":"personalised keyring","height":90});
															thumbnails[4538190] = clik.newPhoto({"id":4538190,"src":"Mural1_thumb.jpg","galleries_id":263456,"server_id":15,"link":"photo_4538190.html","width":130,"caption":"heart tree mural","height":123});
															thumbnails[7862906] = clik.newPhoto({"id":7862906,"src":"Wedding_bowl1_thumb.jpg","galleries_id":441720,"server_id":15,"link":"photo_7862906.html","width":130,"caption":"Entwined trees 1","height":114});
															thumbnails[3668644] = clik.newPhoto({"id":3668644,"src":"Turquoise_honeycomb_set2_thumb.jpg","galleries_id":223823,"server_id":15,"link":"photo_3668644.html","width":130,"caption":"turquoise honeycomb set","height":96});
															thumbnails[3668663] = clik.newPhoto({"id":3668663,"src":"Green_gold_cuffs_thumb.jpg","galleries_id":223824,"server_id":15,"link":"photo_3668663.html","width":130,"caption":"green and gold cufflinks","height":76});
															thumbnails[3669236] = clik.newPhoto({"id":3669236,"src":"Black__bowl__with__coloured__circles112_thumb.jpg","galleries_id":223818,"server_id":15,"link":"photo_3669236.html","width":130,"caption":"black bowl with coloured circles","height":94});
															thumbnails[3672109] = clik.newPhoto({"id":3672109,"src":"Small_green_earrings1_thumb.jpg","galleries_id":223822,"server_id":15,"link":"photo_3672109.html","width":130,"caption":"small green earrings","height":127});
															thumbnails[3672201] = clik.newPhoto({"id":3672201,"src":"Round_red_patterned_pendant1_thumb.jpg","galleries_id":223821,"server_id":15,"link":"photo_3672201.html","width":130,"caption":"red round patterned pendant","height":92});
															thumbnails[3672823] = clik.newPhoto({"id":3672823,"src":"White_heart_with_jewels2_thumb.jpg","galleries_id":223843,"server_id":15,"link":"photo_3672823.html","width":130,"caption":"white heart with 'jewels'","height":92});
															thumbnails[3855570] = clik.newPhoto({"id":3855570,"src":"Red__shirt__studs__and__cufflinks11_thumb.jpg","galleries_id":234574,"server_id":15,"link":"photo_3855570.html","width":130,"caption":"red shirt studs and cufflinks","height":112});
															thumbnails[3914471] = clik.newPhoto({"id":3914471,"src":"blue_striped_brooch_thumb.jpg","galleries_id":223867,"server_id":15,"link":"photo_3914471.html","width":130,"caption":"blue striped brooch","height":92});
															thumbnails[4537770] = clik.newPhoto({"id":4537770,"src":"mural_detail1_thumb.jpg","galleries_id":263456,"server_id":15,"link":"photo_4537770.html","width":130,"caption":"heart tree mural detail","height":86});
															thumbnails[7862914] = clik.newPhoto({"id":7862914,"src":"Wedding_bowl2_thumb.jpg","galleries_id":441720,"server_id":15,"link":"photo_7862914.html","width":130,"caption":"Entwined trees 2","height":98});
															thumbnails[8302612] = clik.newPhoto({"id":8302612,"src":"Hoshen_hanging2_thumb.jpg","galleries_id":441658,"server_id":15,"link":"photo_8302612.html","width":130,"caption":"Hoshen ","height":120});
															thumbnails[8303390] = clik.newPhoto({"id":8303390,"src":"Wedding_bowl1_CDF13749-1EC9-D45B-1C53B8C4D17A12EC_thumb.jpg","galleries_id":441723,"server_id":15,"link":"photo_8303390.html","width":130,"caption":"spiral wedding bowl","height":80});
															thumbnails[8303509] = clik.newPhoto({"id":8303509,"src":"Wedding_bowl2_CE135964-1EC9-D45B-1CF1150B4E8EBEDF_thumb.jpg","galleries_id":441723,"server_id":15,"link":"photo_8303509.html","width":130,"caption":"spiral wedding bowl 1","height":98});
															thumbnails[3668695] = clik.newPhoto({"id":3668695,"src":"Red_jewel_cuffs1_thumb.jpg","galleries_id":223824,"server_id":15,"link":"photo_3668695.html","width":130,"caption":"red 'eye' cufflinks","height":85});
															thumbnails[3670038] = clik.newPhoto({"id":3670038,"src":"Clear__sweet__bowl1_thumb.jpg","galleries_id":223818,"server_id":15,"link":"photo_3670038.html","width":130,"caption":"clear 'sweet' bowl","height":98});
															thumbnails[3672140] = clik.newPhoto({"id":3672140,"src":"Magenta__patterned__earrings_thumb.jpg","galleries_id":223822,"server_id":15,"link":"photo_3672140.html","width":130,"caption":"magenta patterned earrings","height":93});
															thumbnails[3672394] = clik.newPhoto({"id":3672394,"src":"Pink_orange_scales_set1_thumb.jpg","galleries_id":223823,"server_id":15,"link":"photo_3672394.html","width":130,"caption":"orange and pink 'scale' set","height":102});
															thumbnails[3672826] = clik.newPhoto({"id":3672826,"src":"White_heart_with_silver1_thumb.jpg","galleries_id":223843,"server_id":15,"link":"photo_3672826.html","width":130,"caption":"white heart with silver","height":85});
															thumbnails[3896906] = clik.newPhoto({"id":3896906,"src":"Tile1_thumb.jpg","galleries_id":234576,"server_id":15,"link":"photo_3896906.html","width":130,"caption":"kitchen tile 1","height":98});
															thumbnails[3914491] = clik.newPhoto({"id":3914491,"src":"blue_patterned_brooch1_thumb.jpg","galleries_id":223867,"server_id":15,"link":"photo_3914491.html","width":130,"caption":"blue patterned brooch","height":98});
															thumbnails[7862928] = clik.newPhoto({"id":7862928,"src":"Wedding_bowl4_thumb.jpg","galleries_id":441720,"server_id":15,"link":"photo_7862928.html","width":130,"caption":"Entwined trees 3","height":98});
															thumbnails[8302898] = clik.newPhoto({"id":8302898,"src":"Hoshen_61_thumb.jpg","galleries_id":441658,"server_id":15,"link":"photo_8302898.html","width":130,"caption":"Hoshen ","height":173});
															thumbnails[3668676] = clik.newPhoto({"id":3668676,"src":"Silver__tiger__cuffs_thumb.jpg","galleries_id":223824,"server_id":15,"link":"photo_3668676.html","width":130,"caption":"silver tiger cufflinks","height":88});
															thumbnails[3670056] = clik.newPhoto({"id":3670056,"src":"Large__white__spotted__bowl1_thumb.jpg","galleries_id":223818,"server_id":15,"link":"photo_3670056.html","width":130,"caption":"Large white spotted bowl","height":98});
															thumbnails[3672160] = clik.newPhoto({"id":3672160,"src":"Small__blue_orange__striped__earrings_thumb.jpg","galleries_id":223822,"server_id":15,"link":"photo_3672160.html","width":130,"caption":"small blue and orange earrings","height":89});
															thumbnails[3672236] = clik.newPhoto({"id":3672236,"src":"Blue_red_patterned_pendant11_thumb.jpg","galleries_id":223821,"server_id":15,"link":"photo_3672236.html","width":130,"caption":"blue and red patterned pendant","height":100});
															thumbnails[3672256] = clik.newPhoto({"id":3672256,"src":"Blue_patterned__pendant1_thumb.jpg","galleries_id":223821,"server_id":15,"link":"photo_3672256.html","width":130,"caption":"blue patterned pendant","height":97});
															thumbnails[3672829] = clik.newPhoto({"id":3672829,"src":"White_heart_with_green_and_pink_thumb.jpg","galleries_id":223843,"server_id":15,"link":"photo_3672829.html","width":130,"caption":"white heart pendant with colours","height":87});
															thumbnails[3896916] = clik.newPhoto({"id":3896916,"src":"Tile2ed_thumb.jpg","galleries_id":234576,"server_id":15,"link":"photo_3896916.html","width":130,"caption":"kitchen tile 2","height":95});
															thumbnails[3914476] = clik.newPhoto({"id":3914476,"src":"blue_patterned_brooch_1_thumb.jpg","galleries_id":223867,"server_id":15,"link":"photo_3914476.html","width":130,"caption":"blue patterned brooch 2","height":90});
															thumbnails[7862935] = clik.newPhoto({"id":7862935,"src":"Wedding_bowl5_thumb.jpg","galleries_id":441720,"server_id":15,"link":"photo_7862935.html","width":130,"caption":"Entwined trees 4","height":98});
															thumbnails[3670068] = clik.newPhoto({"id":3670068,"src":"Large_bowl_dichroic__pieces1_thumb.jpg","galleries_id":223818,"server_id":15,"link":"photo_3670068.html","width":130,"caption":"Large clear bowl with coloured pieces","height":88});
															thumbnails[3670584] = clik.newPhoto({"id":3670584,"src":"Orange_green_stripe_brooch_thumb.jpg","galleries_id":223867,"server_id":15,"link":"photo_3670584.html","width":130,"caption":"orange and green striped brooch","height":79});
															thumbnails[3672184] = clik.newPhoto({"id":3672184,"src":"Turquoise__patterned__earrings_thumb.jpg","galleries_id":223822,"server_id":15,"link":"photo_3672184.html","width":130,"caption":"turquoise patterned earrings","height":101});
															thumbnails[3672265] = clik.newPhoto({"id":3672265,"src":"Green_purple_pendant1_thumb.jpg","galleries_id":223821,"server_id":15,"link":"photo_3672265.html","width":130,"caption":"green and purple pendant","height":98});
															thumbnails[3672356] = clik.newPhoto({"id":3672356,"src":"light__blue__squares_set1_thumb.jpg","galleries_id":223823,"server_id":15,"link":"photo_3672356.html","width":130,"caption":"light blue squares set","height":102});
															thumbnails[3672415] = clik.newPhoto({"id":3672415,"src":"Purply__blue_set_thumb.jpg","galleries_id":223823,"server_id":15,"link":"photo_3672415.html","width":130,"caption":"purple swirly set","height":103});
															thumbnails[3672833] = clik.newPhoto({"id":3672833,"src":"Clear_heart_with_colours_thumb.jpg","galleries_id":223843,"server_id":15,"link":"photo_3672833.html","width":130,"caption":"clear heart with colours","height":87});
															thumbnails[3896929] = clik.newPhoto({"id":3896929,"src":"Tile3_thumb.jpg","galleries_id":234576,"server_id":15,"link":"photo_3896929.html","width":130,"caption":"kitchen tile 3","height":97});
															thumbnails[8302925] = clik.newPhoto({"id":8302925,"src":"Hoshen_detail_1_thumb.jpg","galleries_id":441658,"server_id":15,"link":"photo_8302925.html","width":130,"caption":"Hoshen ","height":179});
															thumbnails[3670249] = clik.newPhoto({"id":3670249,"src":"Large_white__spiral__bowl11_thumb.jpg","galleries_id":223818,"server_id":15,"link":"photo_3670249.html","width":130,"caption":"white spiral bowl","height":96});
															thumbnails[3670606] = clik.newPhoto({"id":3670606,"src":"Round_red_gold_brooch_thumb.jpg","galleries_id":223867,"server_id":15,"link":"photo_3670606.html","width":130,"caption":"round red and gold brooch","height":87});
															thumbnails[3672269] = clik.newPhoto({"id":3672269,"src":"Red__patterned__pendant1_thumb.jpg","galleries_id":223821,"server_id":15,"link":"photo_3672269.html","width":130,"caption":"red patterned pendant","height":104});
															thumbnails[3672930] = clik.newPhoto({"id":3672930,"src":"White_jewelled_heart_thumb.jpg","galleries_id":223843,"server_id":15,"link":"photo_3672930.html","width":130,"caption":"white 'jewelled' heart","height":90});
															thumbnails[3896937] = clik.newPhoto({"id":3896937,"src":"Tile4_thumb.jpg","galleries_id":234576,"server_id":15,"link":"photo_3896937.html","width":130,"caption":"kitchen tile 4","height":157});
															thumbnails[7862959] = clik.newPhoto({"id":7862959,"src":"Wedding_bowl6_thumb.jpg","galleries_id":441720,"server_id":15,"link":"photo_7862959.html","width":130,"caption":"Entwined trees 5","height":98});
															thumbnails[8303512] = clik.newPhoto({"id":8303512,"src":"Wedding_bowl3_thumb.jpg","galleries_id":441723,"server_id":15,"link":"photo_8303512.html","width":130,"caption":"spiral wedding bowl 2","height":104});
															thumbnails[3670472] = clik.newPhoto({"id":3670472,"src":"Red_spiral_thumb.jpg","galleries_id":223818,"server_id":15,"link":"photo_3670472.html","width":130,"caption":"small red spiral bowl","height":95});
															thumbnails[3896862] = clik.newPhoto({"id":3896862,"src":"red_star_pendant_thumb.jpg","galleries_id":223821,"server_id":15,"link":"photo_3896862.html","width":130,"caption":"red star pendant","height":91});
															thumbnails[3896941] = clik.newPhoto({"id":3896941,"src":"Tile5_thumb.jpg","galleries_id":234576,"server_id":15,"link":"photo_3896941.html","width":130,"caption":"kitchen tile 5","height":98});
															thumbnails[3928489] = clik.newPhoto({"id":3928489,"src":"Large_coloured_striped_heart_thumb.jpg","galleries_id":223843,"server_id":15,"link":"photo_3928489.html","width":130,"caption":"Large coloured striped heart","height":98});
															thumbnails[8303593] = clik.newPhoto({"id":8303593,"src":"Wedding_bowl4_CE186535-1EC9-D45B-1C42553AE22FE3CE_thumb.jpg","galleries_id":441723,"server_id":15,"link":"photo_8303593.html","width":130,"caption":"spiral wedding bowl 3","height":98});
															thumbnails[3670527] = clik.newPhoto({"id":3670527,"src":"Small__round__spotted__bowl_thumb.jpg","galleries_id":223818,"server_id":15,"link":"photo_3670527.html","width":130,"caption":"small round bowl with spots","height":87});
															thumbnails[3896885] = clik.newPhoto({"id":3896885,"src":"silver_star_pendanted11_thumb.jpg","galleries_id":223821,"server_id":15,"link":"photo_3896885.html","width":130,"caption":"silver star pendant","height":100});
															thumbnails[3896944] = clik.newPhoto({"id":3896944,"src":"Tile6_thumb.jpg","galleries_id":234576,"server_id":15,"link":"photo_3896944.html","width":130,"caption":"kitchen tile 6","height":95});
															thumbnails[3928499] = clik.newPhoto({"id":3928499,"src":"Butterfly_heart_thumb.jpg","galleries_id":223843,"server_id":15,"link":"photo_3928499.html","width":130,"caption":"butterfly heart pendant","height":93});
															thumbnails[8303645] = clik.newPhoto({"id":8303645,"src":"Wedding_bowl5_CE19B92D-1EC9-D45B-1CD99A11D86F9485_thumb.jpg","galleries_id":441723,"server_id":15,"link":"photo_8303645.html","width":130,"caption":"spiral wedding bowl 4","height":98});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[223818] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"bowls","link":"gallery_223818.html","maxRecords":0.0,"photoIDs":[3668547.0,3669236.0,3670038.0,3670056.0,3670068.0,3670249.0,3670472.0,3670527.0],"skipIndex":0,"section_code":"gallery","featured_images":3668547.0,"id":223818,"singleSection":false});				  						galleries[263456] = clik.newGallery({"parentGallery":223820,"usePopups":false,"title":"murals","link":"gallery_263456.html","maxRecords":0.0,"photoIDs":[4538190.0,4537770.0],"skipIndex":0,"section_code":"gallery","featured_images":"4538190,4537770","id":263456,"singleSection":false});				  						galleries[223821] = clik.newGallery({"parentGallery":223819,"usePopups":false,"title":"pendants","link":"gallery_223821.html","maxRecords":0.0,"photoIDs":[3665970.0,3672201.0,3672236.0,3672256.0,3672265.0,3672269.0,3896862.0,3896885.0],"skipIndex":0,"section_code":"gallery","featured_images":3665970.0,"id":223821,"singleSection":false});				  						galleries[441658] = clik.newGallery({"parentGallery":223820,"usePopups":false,"title":"wall hangings","link":"gallery_441658.html","maxRecords":0.0,"photoIDs":[8302612.0,8302898.0,8302925.0],"skipIndex":0,"section_code":"gallery","featured_images":"8302898,8302612","id":441658,"singleSection":false});				  						galleries[223820] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"commissions","link":"gallery_223820.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"8302898,8302612,4538190,4537770,3855570,3855527","id":223820,"singleSection":false});				  						galleries[223822] = clik.newGallery({"parentGallery":223819,"usePopups":false,"title":"earrings","link":"gallery_223822.html","maxRecords":0.0,"photoIDs":[3664989.0,3672109.0,3672140.0,3672160.0,3672184.0],"skipIndex":0,"section_code":"gallery","featured_images":3664989.0,"id":223822,"singleSection":false});				  						galleries[441720] = clik.newGallery({"parentGallery":424350,"usePopups":false,"title":"entwined trees wedding bowl","link":"gallery_441720.html","maxRecords":0.0,"photoIDs":[7862906.0,7862914.0,7862928.0,7862935.0,7862959.0],"skipIndex":0,"section_code":"gallery","featured_images":"7862959,7862935,7862928,7862914,7862906","id":441720,"singleSection":false});				  						galleries[234573] = clik.newGallery({"parentGallery":223820,"usePopups":false,"title":"keyrings","link":"gallery_234573.html","maxRecords":0.0,"photoIDs":[3855527.0],"skipIndex":0,"section_code":"gallery","featured_images":3855527.0,"id":234573,"singleSection":false});				  						galleries[223819] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"jewellery","link":"gallery_223819.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"3672335,3668648,3665970,3664989,3664965","id":223819,"singleSection":false});				  						galleries[234576] = clik.newGallery({"parentGallery":223820,"usePopups":false,"title":"kitchen tiles","link":"gallery_234576.html","maxRecords":0.0,"photoIDs":[3896906.0,3896916.0,3896929.0,3896937.0,3896941.0,3896944.0],"skipIndex":0,"section_code":"gallery","featured_images":"3896944,3896941,3896937,3896929,3896916,3896906","id":234576,"singleSection":false});				  						galleries[223823] = clik.newGallery({"parentGallery":223819,"usePopups":false,"title":"sets","link":"gallery_223823.html","maxRecords":0.0,"photoIDs":[3672335.0,3668644.0,3672394.0,3672356.0,3672415.0],"skipIndex":0,"section_code":"gallery","featured_images":3672335.0,"id":223823,"singleSection":false});				  						galleries[441723] = clik.newGallery({"parentGallery":424350,"usePopups":false,"title":"spiral wedding bowl","link":"gallery_441723.html","maxRecords":0.0,"photoIDs":[8303390.0,8303509.0,8303512.0,8303593.0,8303645.0],"skipIndex":0,"section_code":"gallery","featured_images":"8303645,8303593,8303509,8303390","id":441723,"singleSection":false});				  						galleries[223867] = clik.newGallery({"parentGallery":223819,"usePopups":false,"title":"brooches","link":"gallery_223867.html","maxRecords":0.0,"photoIDs":[3664965.0,3914471.0,3914491.0,3914476.0,3670584.0,3670606.0],"skipIndex":0,"section_code":"gallery","featured_images":3664965.0,"id":223867,"singleSection":false});				  						galleries[234574] = clik.newGallery({"parentGallery":223820,"usePopups":false,"title":"shirt studs and cufflinks","link":"gallery_234574.html","maxRecords":0.0,"photoIDs":[3855570.0],"skipIndex":0,"section_code":"gallery","featured_images":3855570.0,"id":234574,"singleSection":false});				  						galleries[223824] = clik.newGallery({"parentGallery":223819,"usePopups":false,"title":"cufflinks","link":"gallery_223824.html","maxRecords":0.0,"photoIDs":[3668648.0,3668663.0,3668695.0,3668676.0],"skipIndex":0,"section_code":"gallery","featured_images":3668648.0,"id":223824,"singleSection":false});				  						galleries[223843] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"heart collection","link":"gallery_223843.html","maxRecords":0.0,"photoIDs":[3664851.0,3672823.0,3672826.0,3672829.0,3672833.0,3672930.0,3928489.0,3928499.0],"skipIndex":0,"section_code":"gallery","featured_images":3664851.0,"id":223843,"singleSection":false});				  						galleries[424350] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"wedding\/civil partnership gifts","link":"gallery_424350.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"8303645,8303593,8303509,8303390,7862959,7862935,7862928,7862914,7862906","id":424350,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '4537770,3672823,8303509,7862928';
imageSets[2] = '7862906,4538190,3855527,3672335,3668648,3668547,3665970,3664989,3664965,3664851,8303390,8302612,7862914,4537770,3855570,8303509,8302898,7862928,7862935,7862959,8303593,8303645';
imageSets[3] = '8303645,8303593,8303512,8303509,8303390,8302925,8302898,8302612,7862959,7862935,7862928,7862914,7862906,4538190,4537770,3928499,3928489,3914491,3914476,3914471,3896944,3896941,3896937,3896929,3896916,3896906,3896885,3896862,3855570,3855527,3672930,3672833,3672829,3672826,3672823,3672415,3672394,3672356,3672335,3672269,3672265,3672256,3672236,3672201,3672184,3672160,3672140,3672109,3670606,3670584';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/evsilver/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/evsilver/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/evsilver/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/evsilver/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/evsilver/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/evsilver/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/evsilver/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/evsilver/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/evsilver/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/evsilver/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/evsilver/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/evsilver/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/evsilver/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/evsilver/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/evsilver/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/evsilver/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/evsilver/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/evsilver/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/evsilver/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/evsilver/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/evsilver/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/evsilver/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/evsilver/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/evsilver/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/evsilver/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/evsilver/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/evsilver/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 = 'evelyn silver fused glass artist leicestershire: ' + 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;
	}
}

			

