window.thumbnails = {};
															thumbnails[7482742] = clik.newPhoto({"id":7482742,"src":"AC_Website_Ad_pic_thumb.jpg","galleries_id":351842,"server_id":15,"link":"photo_7482742.html","width":100,"caption":"","height":100});
															thumbnails[5848867] = clik.newPhoto({"id":5848867,"src":"2Hannah_LIVINGSTON__OYO__Benedict_Box_2_-precious_white_metal_and_citrine_neckpiece__GBP4591_thumb.jpg","galleries_id":351842,"server_id":15,"link":"photo_5848867.html","width":130,"caption":"The Benedict Box","height":130});
															thumbnails[5848882] = clik.newPhoto({"id":5848882,"src":"8Hannah_LIVINGSTON__OYO__Box_Neckpieces_-precious_white_metal_neckpieces__lefttoright_GBP199_152_152_thumb.jpg","galleries_id":351845,"server_id":15,"link":"photo_5848882.html","width":130,"caption":"The Box Neckpieces ","height":130});
															thumbnails[5848885] = clik.newPhoto({"id":5848885,"src":"28motif_neckpiece1_thumb.jpg","galleries_id":351844,"server_id":15,"link":"photo_5848885.html","width":130,"caption":"Golden Motif Necklace","height":130});
															thumbnails[6352124] = clik.newPhoto({"id":6352124,"src":"72_1-HannahLivingston_TheBelleBox_RRP610GBP_300dpi_thumb.jpg","galleries_id":351848,"server_id":15,"link":"photo_6352124.html","width":130,"caption":"The Belle Box","height":130});
															thumbnails[5848868] = clik.newPhoto({"id":5848868,"src":"4Hannah_LIVINGSTON__OYO__Benedict_Box_4_-precious_white_metal_and_citrine_neckpiece__GBP459_thumb.jpg","galleries_id":351842,"server_id":15,"link":"photo_5848868.html","width":130,"caption":"The Benedict Box ","height":130});
															thumbnails[5848900] = clik.newPhoto({"id":5848900,"src":"17Hannah_LIVINGSTON__OYO__Golden_Boxes_1_-18ct_goldplated_precious_white_metal_earrings__GBP176_thumb.jpg","galleries_id":351845,"server_id":15,"link":"photo_5848900.html","width":130,"caption":"The Golden Boxes ","height":130});
															thumbnails[6352125] = clik.newPhoto({"id":6352125,"src":"2HAZEL__JULIETTE_FULL_PHOTO_72_thumb.jpg","galleries_id":351848,"server_id":15,"link":"photo_6352125.html","width":130,"caption":"The Hazel Box and Juliette Ring","height":130});
															thumbnails[5848869] = clik.newPhoto({"id":5848869,"src":"3Hannah_LIVINGSTON__OYO__Benedict_Box_3_-precious_white_metal_and_citrine_neckpiece__GBP459_thumb.jpg","galleries_id":351842,"server_id":15,"link":"photo_5848869.html","width":130,"caption":"The Benedict Box ","height":130});
															thumbnails[5848889] = clik.newPhoto({"id":5848889,"src":"24motif_ring_thumb.jpg","galleries_id":351844,"server_id":15,"link":"photo_5848889.html","width":130,"caption":"White Motif Ring ","height":130});
															thumbnails[5848901] = clik.newPhoto({"id":5848901,"src":"18Hannah_LIVINGSTON__OYO__Golden_Boxes_2_-18ct_goldplated_precious_white_metal_earrings__GBP176_thumb.jpg","galleries_id":351845,"server_id":15,"link":"photo_5848901.html","width":130,"caption":"The Golden Boxes ","height":130});
															thumbnails[6352126] = clik.newPhoto({"id":6352126,"src":"3hazel_neckpiece_close_up_thumb.jpg","galleries_id":351848,"server_id":15,"link":"photo_6352126.html","width":130,"caption":"The Hazel Box","height":130});
															thumbnails[5848872] = clik.newPhoto({"id":5848872,"src":"21Hannah_LIVINGSTON__OYO__Nicholas_Box_1_-18ct_goldplated_precious_white_metal_neckpiece__GBP294_thumb.jpg","galleries_id":351842,"server_id":15,"link":"photo_5848872.html","width":130,"caption":"The Nicholas Box","height":130});
															thumbnails[5848902] = clik.newPhoto({"id":5848902,"src":"29black_boxes_thumb.jpg","galleries_id":351845,"server_id":15,"link":"photo_5848902.html","width":130,"caption":"The Black Boxes","height":130});
															thumbnails[6352128] = clik.newPhoto({"id":6352128,"src":"72_4_Hazel_Earring_close_up_72jpg_thumb.jpg","galleries_id":351848,"server_id":15,"link":"photo_6352128.html","width":130,"caption":"The Hazel Earrings","height":130});
															thumbnails[5848876] = clik.newPhoto({"id":5848876,"src":"22Hannah_LIVINGSTON__OYO__Nicholas_Box_2_-18ct_goldplated_precious_white_metal_neckpiece__GBP294_thumb.jpg","galleries_id":351842,"server_id":15,"link":"photo_5848876.html","width":130,"caption":"The Nicholas Box ","height":130});
															thumbnails[5848905] = clik.newPhoto({"id":5848905,"src":"31black_boxes_open_thumb.jpg","galleries_id":351845,"server_id":15,"link":"photo_5848905.html","width":130,"caption":"The Black Boxes ","height":130});
															thumbnails[5848906] = clik.newPhoto({"id":5848906,"src":"25white_motif_studs_thumb.jpg","galleries_id":351844,"server_id":15,"link":"photo_5848906.html","width":130,"caption":"White Motif Studs","height":130});
															thumbnails[6352129] = clik.newPhoto({"id":6352129,"src":"72_5_JULIETTE_SET_FULL_PHOTO_thumb.jpg","galleries_id":351848,"server_id":15,"link":"photo_6352129.html","width":130,"caption":"The Juliette Box and Juliette Ring","height":130});
															thumbnails[5848878] = clik.newPhoto({"id":5848878,"src":"23Hannah_LIVINGSTON__OYO__Nicholas_Box_3_-18ct_goldplated_precious_white_metal_neckpiece__GBP294_thumb.jpg","galleries_id":351842,"server_id":15,"link":"photo_5848878.html","width":130,"caption":"The Nicholas Box ","height":130});
															thumbnails[5848897] = clik.newPhoto({"id":5848897,"src":"15Hannah_LIVINGSTON__OYO__Golden_Box_Bangle_1_-_18ct_goldplated_precious_white_metal_bangle__GBP282_thumb.jpg","galleries_id":351845,"server_id":15,"link":"photo_5848897.html","width":130,"caption":"The Golden Box Bangle ","height":130});
															thumbnails[5848907] = clik.newPhoto({"id":5848907,"src":"30black_motif_studs_thumb.jpg","galleries_id":351844,"server_id":15,"link":"photo_5848907.html","width":130,"caption":"Dark Motif Studs ","height":130});
															thumbnails[6352130] = clik.newPhoto({"id":6352130,"src":"72_6-HannahLivingston_TheJulietteBoxandRing_RRP490_530GBP_300dpi_thumb.jpg","galleries_id":351848,"server_id":15,"link":"photo_6352130.html","width":130,"caption":"The Juliette Box and Juliette Ring","height":130});
															thumbnails[5848879] = clik.newPhoto({"id":5848879,"src":"9Hannah_LIVINGSTON__OYO__Edward_Box_1_-precious_white_metal_neckpiece__GBP341_thumb.jpg","galleries_id":351842,"server_id":15,"link":"photo_5848879.html","width":130,"caption":"The Edward Box","height":130});
															thumbnails[5848896] = clik.newPhoto({"id":5848896,"src":"26black_motif_pin_thumb.jpg","galleries_id":351844,"server_id":15,"link":"photo_5848896.html","width":130,"caption":"Dark Motif Pin ","height":130});
															thumbnails[5848899] = clik.newPhoto({"id":5848899,"src":"16Hannah_LIVINGSTON__OYO__Golden_Box_Bangle_2_-_18ct_goldplated_precious_white_metal_bangle__GBP2821_thumb.jpg","galleries_id":351845,"server_id":15,"link":"photo_5848899.html","width":130,"caption":"The Golden Box Bangle","height":130});
															thumbnails[6352138] = clik.newPhoto({"id":6352138,"src":"72_7_JULIETTE_RING_close_up_72_dpi_thumb.jpg","galleries_id":351848,"server_id":15,"link":"photo_6352138.html","width":130,"caption":"The Juliette Ring","height":130});
															thumbnails[5848881] = clik.newPhoto({"id":5848881,"src":"10Hannah_LIVINGSTON__OYO__Edward_Box_2_-precious_white_metal_neckpiece__GBP341_thumb.jpg","galleries_id":351842,"server_id":15,"link":"photo_5848881.html","width":130,"caption":"The Edward Box ","height":130});
															thumbnails[6352139] = clik.newPhoto({"id":6352139,"src":"72_8-HannahLivingston_TheJulietteBoxandRing2_RRP490_530GBP_300dpi_thumb.jpg","galleries_id":351848,"server_id":15,"link":"photo_6352139.html","width":130,"caption":"The Juliette Box and The Juliette Ring","height":130});
															thumbnails[5848890] = clik.newPhoto({"id":5848890,"src":"11Hannah_LIVINGSTON__OYO__Edward_Pin_1_-precious_white_metal_lapel_pin__GBP352_thumb.jpg","galleries_id":351842,"server_id":15,"link":"photo_5848890.html","width":130,"caption":"The Edward Pin ","height":130});
															thumbnails[6352140] = clik.newPhoto({"id":6352140,"src":"72_9-HannahLivingston_TheSofiaBangle_RRP480GBP_300dpi_thumb.jpg","galleries_id":351848,"server_id":15,"link":"photo_6352140.html","width":130,"caption":"The Sofia Bangle","height":130});
															thumbnails[4032341] = clik.newPhoto({"id":4032341,"src":"LLB2_thumb.jpg","galleries_id":242867,"server_id":15,"link":"photo_4032341.html","width":130,"caption":"Lion Leg Box","height":130});
															thumbnails[4032728] = clik.newPhoto({"id":4032728,"src":"CR1_thumb.jpg","galleries_id":242868,"server_id":15,"link":"photo_4032728.html","width":130,"caption":"Casket Ring","height":130});
															thumbnails[4144353] = clik.newPhoto({"id":4144353,"src":"CTB_thumb.jpg","galleries_id":246477,"server_id":15,"link":"photo_4144353.html","width":130,"caption":"Cabinet Trinket Box","height":130});
															thumbnails[5848891] = clik.newPhoto({"id":5848891,"src":"12Hannah_LIVINGSTON__OYO__Edward_Pin_2_-precious_white_metal_lapel_pin__GBP352_thumb.jpg","galleries_id":351842,"server_id":15,"link":"photo_5848891.html","width":130,"caption":"The Edward Pin","height":130});
															thumbnails[5848909] = clik.newPhoto({"id":5848909,"src":"5Hannah_LIVINGSTON__OYO__Black_Box_Cufflinks_1_-precious_white_metal_cufflinks__GBP259_thumb.jpg","galleries_id":351845,"server_id":15,"link":"photo_5848909.html","width":130,"caption":"The Black Box Cufflinks ","height":130});
															thumbnails[6352141] = clik.newPhoto({"id":6352141,"src":"72_10-HannahLivingston_TheSofiaBangleclosup_RRP480GBP_300dpi_thumb.jpg","galleries_id":351848,"server_id":15,"link":"photo_6352141.html","width":130,"caption":"The Sofia Bangle","height":130});
															thumbnails[5848892] = clik.newPhoto({"id":5848892,"src":"13Hannah_LIVINGSTON__OYO__Edward_Pin_3_-precious_white_metal_lapel_pin__GBP352_thumb.jpg","galleries_id":351842,"server_id":15,"link":"photo_5848892.html","width":130,"caption":"The Edward Pin","height":130});
															thumbnails[5848910] = clik.newPhoto({"id":5848910,"src":"6Hannah_LIVINGSTON__OYO__Black_Box_Cufflinks_2_-precious_white_metal_cufflinks__GBP259_thumb.jpg","galleries_id":351845,"server_id":15,"link":"photo_5848910.html","width":130,"caption":"The Black Box Cufflinks","height":130});
															thumbnails[5848893] = clik.newPhoto({"id":5848893,"src":"14Hannah_LIVINGSTON__OYO__Edward_Pin_4_-precious_white_metal_lapel_pin__GBP352_thumb.jpg","galleries_id":351842,"server_id":15,"link":"photo_5848893.html","width":130,"caption":"The Edward Pin ","height":130});
															thumbnails[5848912] = clik.newPhoto({"id":5848912,"src":"7Hannah_LIVINGSTON__OYO__Black_Box_Cufflinks_3_-precious_white_metal_cufflinks__GBP2591_thumb.jpg","galleries_id":351845,"server_id":15,"link":"photo_5848912.html","width":130,"caption":"The Black Box Cufflinks","height":130});
															thumbnails[5848887] = clik.newPhoto({"id":5848887,"src":"19Hannah_LIVINGSTON__OYO__Henry_Ring_1_-precious_white_metal_ring__GBP235_thumb.jpg","galleries_id":351842,"server_id":15,"link":"photo_5848887.html","width":130,"caption":"The Henry Ring ","height":130});
															thumbnails[5848888] = clik.newPhoto({"id":5848888,"src":"20Hannah_LIVINGSTON__OYO__Henry_Ring_2_-precious_white_metal_ring__GBP235_thumb.jpg","galleries_id":351842,"server_id":15,"link":"photo_5848888.html","width":130,"caption":"The Henry Ring ","height":130});
															thumbnails[4032343] = clik.newPhoto({"id":4032343,"src":"LLBO4_thumb.jpg","galleries_id":242867,"server_id":15,"link":"photo_4032343.html","width":130,"caption":"Lion Leg Box","height":130});
															thumbnails[4032736] = clik.newPhoto({"id":4032736,"src":"CRD1_thumb.jpg","galleries_id":242868,"server_id":15,"link":"photo_4032736.html","width":130,"caption":"Casket Ring","height":130});
															thumbnails[4144360] = clik.newPhoto({"id":4144360,"src":"CTBdet1_thumb.jpg","galleries_id":246477,"server_id":15,"link":"photo_4144360.html","width":130,"caption":"Cabinet Trinket Box","height":130});
															thumbnails[4032337] = clik.newPhoto({"id":4032337,"src":"LLBCO2_thumb.jpg","galleries_id":242867,"server_id":15,"link":"photo_4032337.html","width":130,"caption":"Lion Leg Box","height":130});
															thumbnails[4032746] = clik.newPhoto({"id":4032746,"src":"CRO1_thumb.jpg","galleries_id":242868,"server_id":15,"link":"photo_4032746.html","width":130,"caption":"Casket Ring","height":130});
															thumbnails[4144362] = clik.newPhoto({"id":4144362,"src":"CTBdn_thumb.jpg","galleries_id":246477,"server_id":15,"link":"photo_4144362.html","width":130,"caption":"Cabinet Trinket Box","height":130});
															thumbnails[4032386] = clik.newPhoto({"id":4032386,"src":"TLB1_thumb.jpg","galleries_id":242867,"server_id":15,"link":"photo_4032386.html","width":130,"caption":"Taper Leg Box","height":130});
															thumbnails[4144468] = clik.newPhoto({"id":4144468,"src":"CTBlo_thumb.jpg","galleries_id":246477,"server_id":15,"link":"photo_4144468.html","width":130,"caption":"Cabinet Trinket Box","height":130});
															thumbnails[4144474] = clik.newPhoto({"id":4144474,"src":"CRt_thumb.jpg","galleries_id":242868,"server_id":15,"link":"photo_4144474.html","width":130,"caption":"Casket Ring","height":130});
															thumbnails[4032466] = clik.newPhoto({"id":4032466,"src":"ChD1_thumb.jpg","galleries_id":242867,"server_id":15,"link":"photo_4032466.html","width":130,"caption":"Taper Leg Box chain detail","height":130});
															thumbnails[4144471] = clik.newPhoto({"id":4144471,"src":"CTBlf_thumb.jpg","galleries_id":246477,"server_id":15,"link":"photo_4144471.html","width":130,"caption":"Cabinet Trinket Box","height":130});
															thumbnails[4144475] = clik.newPhoto({"id":4144475,"src":"CRb_thumb.jpg","galleries_id":242868,"server_id":15,"link":"photo_4144475.html","width":130,"caption":"Casket Ring","height":130});
															thumbnails[4144472] = clik.newPhoto({"id":4144472,"src":"CTBwdn_thumb.jpg","galleries_id":246477,"server_id":15,"link":"photo_4144472.html","width":130,"caption":"Cabinet Trinket Box","height":130});
															thumbnails[4144476] = clik.newPhoto({"id":4144476,"src":"CRfd_thumb.jpg","galleries_id":242868,"server_id":15,"link":"photo_4144476.html","width":130,"caption":"Casket Ring","height":130});
															thumbnails[4144457] = clik.newPhoto({"id":4144457,"src":"TLBo_thumb.jpg","galleries_id":242867,"server_id":15,"link":"photo_4144457.html","width":130,"caption":"Taper Leg Box","height":130});
															thumbnails[4144375] = clik.newPhoto({"id":4144375,"src":"TuLB1_thumb.jpg","galleries_id":242867,"server_id":15,"link":"photo_4144375.html","width":130,"caption":"Turned Leg Box","height":130});
															thumbnails[4144452] = clik.newPhoto({"id":4144452,"src":"TuLBfr_thumb.jpg","galleries_id":242867,"server_id":15,"link":"photo_4144452.html","width":130,"caption":"Turned Leg Box","height":130});
															thumbnails[4144466] = clik.newPhoto({"id":4144466,"src":"3B_thumb.jpg","galleries_id":242867,"server_id":15,"link":"photo_4144466.html","width":130,"caption":"the Antiquarian Boxes","height":130});
															thumbnails[4144238] = clik.newPhoto({"id":4144238,"src":"GB11_thumb.jpg","galleries_id":242867,"server_id":15,"link":"photo_4144238.html","width":130,"caption":"Gold Box","height":130});
															thumbnails[4144242] = clik.newPhoto({"id":4144242,"src":"BB11_thumb.jpg","galleries_id":242867,"server_id":15,"link":"photo_4144242.html","width":130,"caption":"Black Box","height":130});
															thumbnails[4144243] = clik.newPhoto({"id":4144243,"src":"2B_thumb.jpg","galleries_id":242867,"server_id":15,"link":"photo_4144243.html","width":130,"caption":"Black Box open, and Gold Box","height":130});
															thumbnails[4144432] = clik.newPhoto({"id":4144432,"src":"TTB1_thumb.jpg","galleries_id":242867,"server_id":15,"link":"photo_4144432.html","width":130,"caption":"Baluster Box","height":130});
															thumbnails[4144467] = clik.newPhoto({"id":4144467,"src":"TTBo_thumb.jpg","galleries_id":242867,"server_id":15,"link":"photo_4144467.html","width":130,"caption":"Baluster Box","height":130});
															thumbnails[4032501] = clik.newPhoto({"id":4032501,"src":"SGB1_thumb.jpg","galleries_id":242867,"server_id":15,"link":"photo_4032501.html","width":130,"caption":"Gold Box","height":130});
															thumbnails[4032513] = clik.newPhoto({"id":4032513,"src":"SBB1_thumb.jpg","galleries_id":242867,"server_id":15,"link":"photo_4032513.html","width":130,"caption":"Black Box","height":130});
															thumbnails[4032547] = clik.newPhoto({"id":4032547,"src":"SW_thumb.jpg","galleries_id":242867,"server_id":15,"link":"photo_4032547.html","width":130,"caption":"Turned Leg Box: Narrative","height":130});
															thumbnails[4032479] = clik.newPhoto({"id":4032479,"src":"EOCB1_thumb.jpg","galleries_id":242867,"server_id":15,"link":"photo_4032479.html","width":130,"caption":"DoJ Degree Show VIP opening night catwalk.","height":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[351848] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Sisters collection","link":"gallery_351848.html","maxRecords":0.0,"photoIDs":[6352124.0,6352125.0,6352126.0,6352128.0,6352129.0,6352130.0,6352138.0,6352139.0,6352140.0,6352141.0],"skipIndex":0,"section_code":"gallery","featured_images":6352138.0,"id":351848,"singleSection":false});				  						galleries[351842] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gentlemen Boxes","link":"gallery_351842.html","maxRecords":0.0,"photoIDs":[7482742.0,5848867.0,5848868.0,5848869.0,5848872.0,5848876.0,5848878.0,5848879.0,5848881.0,5848890.0,5848891.0,5848892.0,5848893.0,5848887.0,5848888.0],"skipIndex":0,"section_code":"gallery","featured_images":5848887.0,"id":351842,"singleSection":false});				  						galleries[351845] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"SIMPLE BOXES","link":"gallery_351845.html","maxRecords":0.0,"photoIDs":[5848882.0,5848900.0,5848901.0,5848902.0,5848905.0,5848897.0,5848899.0,5848909.0,5848910.0,5848912.0],"skipIndex":0,"section_code":"gallery","featured_images":5848910.0,"id":351845,"singleSection":false});				  						galleries[351844] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"MOTIF COLLECTION","link":"gallery_351844.html","maxRecords":0.0,"photoIDs":[5848885.0,5848889.0,5848906.0,5848907.0,5848896.0],"skipIndex":0,"section_code":"gallery","featured_images":5848885.0,"id":351844,"singleSection":false});				  						galleries[330841] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Antiquarian Boxes","link":"gallery_330841.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":4144353.0,"id":330841,"singleSection":false});				  						galleries[242867] = clik.newGallery({"parentGallery":330841,"usePopups":false,"title":"Neckpieces","link":"gallery_242867.html","maxRecords":0.0,"photoIDs":[4032341.0,4032343.0,4032337.0,4032386.0,4032466.0,4144457.0,4144375.0,4144452.0,4144466.0,4144238.0,4144242.0,4144243.0,4144432.0,4144467.0,4032501.0,4032513.0,4032547.0,4032479.0],"skipIndex":0,"section_code":"gallery","featured_images":"4144467,4144466,4144457,4144452,4144432,4144375,4144243,4144242,4144238,4032547","id":242867,"singleSection":false});				  						galleries[242868] = clik.newGallery({"parentGallery":330841,"usePopups":false,"title":"Ring","link":"gallery_242868.html","maxRecords":0.0,"photoIDs":[4032728.0,4032736.0,4032746.0,4144474.0,4144475.0,4144476.0],"skipIndex":0,"section_code":"gallery","featured_images":"4144476,4144475,4144474,4032746,4032736,4032728","id":242868,"singleSection":false});				  						galleries[246477] = clik.newGallery({"parentGallery":330841,"usePopups":false,"title":"Trinket Box","link":"gallery_246477.html","maxRecords":0.0,"photoIDs":[4144353.0,4144360.0,4144362.0,4144468.0,4144471.0,4144472.0],"skipIndex":0,"section_code":"gallery","featured_images":4144353.0,"id":246477,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7482742,6352128,6352126,5848907,5848881,5848872,4144360,4032466';
imageSets[2] = '6352138,5848910,5848887,5848885,4144353';
imageSets[3] = '7482742,6352141,6352140,6352139,6352138,6352130,6352129,6352128,6352126,6352125,6352124,5848912,5848910,5848909,5848907,5848906,5848905,5848902,5848901,5848900,5848899,5848897,5848896,5848893,5848892,5848891,5848890,5848889,5848888,5848887,5848885,5848882,5848881,5848879,5848878,5848876,5848872,5848869,5848868,5848867,4144476,4144475,4144474,4144472,4144471,4144468,4144467,4144466,4144457,4144452';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/bananas/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/bananas/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/bananas/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/bananas/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/bananas/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/bananas/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/bananas/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/bananas/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/bananas/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/bananas/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/bananas/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/bananas/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/bananas/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/bananas/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/bananas/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/bananas/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/bananas/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/bananas/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/bananas/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/bananas/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/bananas/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/bananas/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/bananas/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/bananas/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 && backgrounds[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 = 'Hannah Livingston Jewellery Design: ' + 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.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>photo by </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> &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="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		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" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="doesitmakemebad@hotmail.co.uk">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="doesitmakemebad@hotmail.co.uk">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						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({					href: thumbnails[imageID].fnGalleryLink(gallery_id),					title: galleries[gallery_id].title				});
			}
		}
	}
}

/***************************************************************************
* 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;
	}
}

			

