window.thumbnails = {};
															thumbnails[2974531] = clik.newPhoto({"id":2974531,"src":"15th jan Home 116bw_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":173});
															thumbnails[2974572] = clik.newPhoto({"id":2974572,"src":"bio pic2_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":173});
															thumbnails[2976283] = clik.newPhoto({"id":2976283,"src":"sigsmall_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":116});
															thumbnails[2977936] = clik.newPhoto({"id":2977936,"src":"flowers0 024_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":173});
															thumbnails[2977937] = clik.newPhoto({"id":2977937,"src":"Morgan_thumb. 009.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":173});
															thumbnails[2978107] = clik.newPhoto({"id":2978107,"src":"Kirsty&Dave 1_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":173});
															thumbnails[2979000] = clik.newPhoto({"id":2979000,"src":"IMG_1510_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":87});
															thumbnails[2982003] = clik.newPhoto({"id":2982003,"src":"Cai 012_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":173});
															thumbnails[2982023] = clik.newPhoto({"id":2982023,"src":"Faeriesnws1_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":173});
															thumbnails[2982153] = clik.newPhoto({"id":2982153,"src":"mutha bored_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":173});
															thumbnails[2982389] = clik.newPhoto({"id":2982389,"src":"Jack Frost_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":173});
															thumbnails[2982403] = clik.newPhoto({"id":2982403,"src":"Parasol 061_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":173});
															thumbnails[2982429] = clik.newPhoto({"id":2982429,"src":"Claire&Ella_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":173});
															thumbnails[2982481] = clik.newPhoto({"id":2982481,"src":"Rach&Polly_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":173});
															thumbnails[2982634] = clik.newPhoto({"id":2982634,"src":"jess_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":173});
															thumbnails[2985346] = clik.newPhoto({"id":2985346,"src":"leatherbook_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":99});
															thumbnails[2989260] = clik.newPhoto({"id":2989260,"src":"jan 11_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":173});
															thumbnails[2997336] = clik.newPhoto({"id":2997336,"src":"P1020013bw_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":173});
															thumbnails[3035601] = clik.newPhoto({"id":3035601,"src":"Mermaid 010ws_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":98});
															thumbnails[3083364] = clik.newPhoto({"id":3083364,"src":"evie_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":173});
															thumbnails[3083365] = clik.newPhoto({"id":3083365,"src":"megan_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":173});
															thumbnails[3083367] = clik.newPhoto({"id":3083367,"src":"reuben_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":173});
															thumbnails[3108808] = clik.newPhoto({"id":3108808,"src":"Eden Fairy ws_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":98});
															thumbnails[3108809] = clik.newPhoto({"id":3108809,"src":"IMG_6718 ws_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":173});
															thumbnails[3108865] = clik.newPhoto({"id":3108865,"src":"IMG_6337 ws_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":173});
															thumbnails[3109047] = clik.newPhoto({"id":3109047,"src":"IMG_6353ws_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":173});
															thumbnails[3127219] = clik.newPhoto({"id":3127219,"src":"IMG_6860_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":173});
															thumbnails[3127220] = clik.newPhoto({"id":3127220,"src":"IMG_6975ws_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":173});
															thumbnails[3127222] = clik.newPhoto({"id":3127222,"src":"IMG_7011_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":173});
															thumbnails[3127224] = clik.newPhoto({"id":3127224,"src":"IMG_7030_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":173});
															thumbnails[3127285] = clik.newPhoto({"id":3127285,"src":"IMG_6370_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":173});
															thumbnails[3005085] = clik.newPhoto({"id":3005085,"src":"Wisteria_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":98});
															thumbnails[2982021] = clik.newPhoto({"id":2982021,"src":"Faeries6nws3_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":173});
															thumbnails[3039636] = clik.newPhoto({"id":3039636,"src":"IMG_5405ws_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":98});
															thumbnails[3039639] = clik.newPhoto({"id":3039639,"src":"IMG_5419ws_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":98});
															thumbnails[3039641] = clik.newPhoto({"id":3039641,"src":"IMG_5391ws_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":98});
															thumbnails[3083370] = clik.newPhoto({"id":3083370,"src":"megan2_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":98});
															thumbnails[3083369] = clik.newPhoto({"id":3083369,"src":"abigail_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":98});
															thumbnails[3083371] = clik.newPhoto({"id":3083371,"src":"IMG_5985_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":98});
															thumbnails[2974538] = clik.newPhoto({"id":2974538,"src":"Summer 08 107_thumb.jpg","galleries_id":183428,"server_id":18,"link":"photo_2974538.html","width":130,"caption":"","height":173});
															thumbnails[2977932] = clik.newPhoto({"id":2977932,"src":"Attic Studios 10th August 133e_thumb.jpg","galleries_id":183418,"server_id":18,"link":"photo_2977932.html","width":130,"caption":"","height":173});
															thumbnails[2977934] = clik.newPhoto({"id":2977934,"src":"Attic Studios 27th july 024e_thumb.jpg","galleries_id":183418,"server_id":18,"link":"photo_2977934.html","width":130,"caption":"","height":173});
															thumbnails[2977954] = clik.newPhoto({"id":2977954,"src":"Rachel 1_thumb.jpg","galleries_id":183416,"server_id":18,"link":"photo_2977954.html","width":130,"caption":"","height":173});
															thumbnails[2978088] = clik.newPhoto({"id":2978088,"src":"The Rushes 18_thumb.jpg","galleries_id":183420,"server_id":18,"link":"photo_2978088.html","width":130,"caption":"","height":173});
															thumbnails[2978154] = clik.newPhoto({"id":2978154,"src":"Attic Studios 8th march 083_thumb.jpg","galleries_id":183418,"server_id":18,"link":"photo_2978154.html","width":130,"caption":"","height":173});
															thumbnails[2978161] = clik.newPhoto({"id":2978161,"src":"Rosie Jones 014_thumb.jpg","galleries_id":183420,"server_id":18,"link":"photo_2978161.html","width":130,"caption":"","height":173});
															thumbnails[2978681] = clik.newPhoto({"id":2978681,"src":"Attic Studios 8 feb 07 135_thumb.jpg","galleries_id":183418,"server_id":18,"link":"photo_2978681.html","width":130,"caption":"","height":173});
															thumbnails[2981996] = clik.newPhoto({"id":2981996,"src":"fern britain_thumb.jpg","galleries_id":183419,"server_id":18,"link":"photo_2981996.html","width":130,"caption":"","height":173});
															thumbnails[2981997] = clik.newPhoto({"id":2981997,"src":"Cai 002_thumb.jpg","galleries_id":183428,"server_id":18,"link":"photo_2981997.html","width":130,"caption":"","height":173});
															thumbnails[2982015] = clik.newPhoto({"id":2982015,"src":"applenws2_thumb.jpg","galleries_id":183416,"server_id":18,"link":"photo_2982015.html","width":130,"caption":"","height":173});
															thumbnails[2982162] = clik.newPhoto({"id":2982162,"src":"Attic 24 jan 104 as_thumb.jpg","galleries_id":183418,"server_id":18,"link":"photo_2982162.html","width":130,"caption":"","height":173});
															thumbnails[2982164] = clik.newPhoto({"id":2982164,"src":"Attic 25 jan 082 as_thumb.jpg","galleries_id":183418,"server_id":18,"link":"photo_2982164.html","width":130,"caption":"","height":173});
															thumbnails[2982173] = clik.newPhoto({"id":2982173,"src":"piano_thumb.jpg","galleries_id":183420,"server_id":18,"link":"photo_2982173.html","width":130,"caption":"","height":173});
															thumbnails[2982185] = clik.newPhoto({"id":2982185,"src":"GOLDBUG_thumb.jpg","galleries_id":183420,"server_id":18,"link":"photo_2982185.html","width":130,"caption":"","height":173});
															thumbnails[2982208] = clik.newPhoto({"id":2982208,"src":"Thursday BHA 2008 139e_thumb.jpg","galleries_id":183418,"server_id":18,"link":"photo_2982208.html","width":130,"caption":"","height":173});
															thumbnails[2982209] = clik.newPhoto({"id":2982209,"src":"IMG_9299e_thumb.jpg","galleries_id":183418,"server_id":18,"link":"photo_2982209.html","width":130,"caption":"","height":173});
															thumbnails[2982210] = clik.newPhoto({"id":2982210,"src":"Attic Studios BHA 2008 470e_thumb.jpg","galleries_id":183418,"server_id":18,"link":"photo_2982210.html","width":130,"caption":"","height":173});
															thumbnails[2982516] = clik.newPhoto({"id":2982516,"src":"summerborder_thumb.jpg","galleries_id":183428,"server_id":18,"link":"photo_2982516.html","width":130,"caption":"","height":173});
															thumbnails[2982601] = clik.newPhoto({"id":2982601,"src":"Bristol Zoo 0331_thumb.jpg","galleries_id":183419,"server_id":18,"link":"photo_2982601.html","width":130,"caption":"","height":173});
															thumbnails[2982603] = clik.newPhoto({"id":2982603,"src":"flowers 064_thumb.jpg","galleries_id":183419,"server_id":18,"link":"photo_2982603.html","width":130,"caption":"","height":173});
															thumbnails[2982606] = clik.newPhoto({"id":2982606,"src":"pebbles 007_thumb.jpg","galleries_id":183419,"server_id":18,"link":"photo_2982606.html","width":130,"caption":"","height":173});
															thumbnails[2982610] = clik.newPhoto({"id":2982610,"src":"beach 007_thumb.jpg","galleries_id":183419,"server_id":18,"link":"photo_2982610.html","width":130,"caption":"","height":173});
															thumbnails[2982613] = clik.newPhoto({"id":2982613,"src":"Hearts WS_thumb.jpg","galleries_id":183419,"server_id":18,"link":"photo_2982613.html","width":130,"caption":"","height":173});
															thumbnails[2982672] = clik.newPhoto({"id":2982672,"src":"Rachel 01_thumb.jpg","galleries_id":183416,"server_id":18,"link":"photo_2982672.html","width":130,"caption":"","height":173});
															thumbnails[2982677] = clik.newPhoto({"id":2982677,"src":"winter 041_thumb.jpg","galleries_id":183416,"server_id":18,"link":"photo_2982677.html","width":130,"caption":"","height":173});
															thumbnails[2982723] = clik.newPhoto({"id":2982723,"src":"winter 1 Rachel_thumb.jpg","galleries_id":183416,"server_id":18,"link":"photo_2982723.html","width":130,"caption":"","height":173});
															thumbnails[2989194] = clik.newPhoto({"id":2989194,"src":"Attic Studios 14th march 077e_thumb.jpg","galleries_id":183418,"server_id":18,"link":"photo_2989194.html","width":130,"caption":"","height":173});
															thumbnails[2989195] = clik.newPhoto({"id":2989195,"src":"IMG_2017_thumb.jpg","galleries_id":183418,"server_id":18,"link":"photo_2989195.html","width":130,"caption":"","height":173});
															thumbnails[2989258] = clik.newPhoto({"id":2989258,"src":"Attic Studios 14th march 151_thumb.jpg","galleries_id":183418,"server_id":18,"link":"photo_2989258.html","width":130,"caption":"","height":173});
															thumbnails[2989259] = clik.newPhoto({"id":2989259,"src":"Bosch_thumb.jpg","galleries_id":183419,"server_id":18,"link":"photo_2989259.html","width":130,"caption":"","height":173});
															thumbnails[2989261] = clik.newPhoto({"id":2989261,"src":"Endsleigh Hotel 086_thumb.jpg","galleries_id":183428,"server_id":18,"link":"photo_2989261.html","width":130,"caption":"","height":173});
															thumbnails[2989263] = clik.newPhoto({"id":2989263,"src":"balloons_thumb.jpg","galleries_id":183416,"server_id":18,"link":"photo_2989263.html","width":130,"caption":"","height":173});
															thumbnails[2989268] = clik.newPhoto({"id":2989268,"src":"Clowns 019_thumb.jpg","galleries_id":183416,"server_id":18,"link":"photo_2989268.html","width":130,"caption":"","height":173});
															thumbnails[2989270] = clik.newPhoto({"id":2989270,"src":"IMG_2155_thumb.jpg","galleries_id":183428,"server_id":18,"link":"photo_2989270.html","width":130,"caption":"","height":173});
															thumbnails[2989273] = clik.newPhoto({"id":2989273,"src":"jan 17_thumb.jpg","galleries_id":183419,"server_id":18,"link":"photo_2989273.html","width":130,"caption":"","height":173});
															thumbnails[2989275] = clik.newPhoto({"id":2989275,"src":"Sunflower WS_thumb.jpg","galleries_id":183419,"server_id":18,"link":"photo_2989275.html","width":130,"caption":"","height":173});
															thumbnails[2997309] = clik.newPhoto({"id":2997309,"src":"_MG_6029_thumb.jpg","galleries_id":183419,"server_id":18,"link":"photo_2997309.html","width":130,"caption":"","height":173});
															thumbnails[2997312] = clik.newPhoto({"id":2997312,"src":"_MG_6066_thumb.jpg","galleries_id":183419,"server_id":18,"link":"photo_2997312.html","width":130,"caption":"","height":173});
															thumbnails[2997315] = clik.newPhoto({"id":2997315,"src":"_MG_6097_thumb.jpg","galleries_id":183419,"server_id":18,"link":"photo_2997315.html","width":130,"caption":"","height":173});
															thumbnails[2997321] = clik.newPhoto({"id":2997321,"src":"Gothic Cookery 102_thumb.jpg","galleries_id":183416,"server_id":18,"link":"photo_2997321.html","width":130,"caption":"","height":173});
															thumbnails[2997324] = clik.newPhoto({"id":2997324,"src":"IMG_7796_thumb.jpg","galleries_id":183416,"server_id":18,"link":"photo_2997324.html","width":130,"caption":"","height":173});
															thumbnails[2997332] = clik.newPhoto({"id":2997332,"src":"IMG_7735_thumb.jpg","galleries_id":183416,"server_id":18,"link":"photo_2997332.html","width":130,"caption":"","height":173});
															thumbnails[2997353] = clik.newPhoto({"id":2997353,"src":"The Fires 2_thumb.jpg","galleries_id":183420,"server_id":18,"link":"photo_2997353.html","width":130,"caption":"","height":173});
															thumbnails[5085579] = clik.newPhoto({"id":5085579,"src":"IMG_1545s_thumb.jpg","galleries_id":183420,"server_id":18,"link":"photo_5085579.html","width":130,"caption":"","height":173});
															thumbnails[5085583] = clik.newPhoto({"id":5085583,"src":"IMG_1725s_thumb.jpg","galleries_id":183420,"server_id":18,"link":"photo_5085583.html","width":130,"caption":"","height":173});
															thumbnails[5085590] = clik.newPhoto({"id":5085590,"src":"IMG_1744s_thumb.jpg","galleries_id":183420,"server_id":18,"link":"photo_5085590.html","width":130,"caption":"","height":173});
															thumbnails[5085601] = clik.newPhoto({"id":5085601,"src":"IMG_1470s_thumb.jpg","galleries_id":183420,"server_id":18,"link":"photo_5085601.html","width":130,"caption":"","height":173});
															thumbnails[8859873] = clik.newPhoto({"id":8859873,"src":"Magnets_thumb.jpg","galleries_id":183546,"server_id":18,"link":"photo_8859873.html","width":130,"caption":"","height":195});
															thumbnails[8859893] = clik.newPhoto({"id":8859893,"src":"Eve_small_thumb.jpg","galleries_id":183546,"server_id":18,"link":"photo_8859893.html","width":130,"caption":"","height":173});
															thumbnails[8859905] = clik.newPhoto({"id":8859905,"src":"Beau._small_thumb.jpg","galleries_id":183546,"server_id":18,"link":"photo_8859905.html","width":130,"caption":"","height":168});
															thumbnails[8859920] = clik.newPhoto({"id":8859920,"src":"Misty_thumb.jpg","galleries_id":183546,"server_id":18,"link":"photo_8859920.html","width":130,"caption":"","height":173});
															thumbnails[8872196] = clik.newPhoto({"id":8872196,"src":"Dandelion_s2_thumb.jpg","galleries_id":183546,"server_id":18,"link":"photo_8872196.html","width":130,"caption":"","height":173});
															thumbnails[8635875] = clik.newPhoto({"id":8635875,"src":"IMG_0969s_thumb.jpg","galleries_id":183546,"server_id":18,"link":"photo_8635875.html","width":130,"caption":"","height":173});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[183546] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"DaisyRockArt","link":"gallery_183546.html","maxRecords":0.0,"photoIDs":[8859873.0,8859893.0,8859905.0,8859920.0,8872196.0,8635875.0],"skipIndex":0,"section_code":"gallery","featured_images":"8872196,8859920,8859905,8859893,8859873,8635875","id":183546,"singleSection":false});				  						galleries[183416] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Creative Portraiture ","link":"gallery_183416.html","maxRecords":0.0,"photoIDs":[2977954.0,2982015.0,2982672.0,2982677.0,2982723.0,2989263.0,2989268.0,2997321.0,2997324.0,2997332.0],"skipIndex":0,"section_code":"gallery","featured_images":"2982723,2982015,2977954","id":183416,"singleSection":false});				  						galleries[183420] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Band Promo Photography","link":"gallery_183420.html","maxRecords":0.0,"photoIDs":[2978088.0,2978161.0,2982173.0,2982185.0,2997353.0,5085579.0,5085583.0,5085590.0,5085601.0],"skipIndex":0,"section_code":"gallery","featured_images":2982173.0,"id":183420,"singleSection":false});				  						galleries[183418] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Attic Studios","link":"gallery_183418.html","maxRecords":0.0,"photoIDs":[2977932.0,2977934.0,2978154.0,2978681.0,2982162.0,2982164.0,2982208.0,2982209.0,2982210.0,2989194.0,2989195.0,2989258.0],"skipIndex":0,"section_code":"gallery","featured_images":"2989258,2989195,2989194,2982210,2982208,2982162,2977934,2977932","id":183418,"singleSection":false});				  						galleries[183428] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"On Location & Lifestyle","link":"gallery_183428.html","maxRecords":0.0,"photoIDs":[2974538.0,2981997.0,2982516.0,2989261.0,2989270.0],"skipIndex":0,"section_code":"gallery","featured_images":"2989261,2982516,2981997,2974538","id":183428,"singleSection":false});				  						galleries[183419] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Elemental ","link":"gallery_183419.html","maxRecords":0.0,"photoIDs":[2981996.0,2982601.0,2982603.0,2982606.0,2982610.0,2982613.0,2989259.0,2989273.0,2989275.0,2997309.0,2997312.0,2997315.0],"skipIndex":0,"section_code":"gallery","featured_images":2989259.0,"id":183419,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '2982516,2982389,2981996';
imageSets[2] = '3108865,3108809,2989261,2989259,2989258,2989195,2989194,2982723,2982516,2982429,2982389,2982210,2982208,2982173,2982162,2982015,2982003,2981997,2977954,2977937,2977936,2977934,2977932,2974538';
imageSets[3] = '8872196,8859920,8859905,8859893,8859873,8635875,5085601,5085590,5085583,5085579,3127285,3127224,3127222,3127220,3127219,3109047,3108865,3108809,3108808,3083371,3083370,3083369,3083367,3083365,3083364,3039641,3039639,3039636,3035601,3005085,2997353,2997336,2997332,2997324,2997321,2997315,2997312,2997309,2989275,2989273,2989270,2989268,2989263,2989261,2989260,2989259,2989258,2989195,2989194,2985346';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/Hannahw/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/Hannahw/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/Hannahw/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/Hannahw/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/Hannahw/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/Hannahw/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/Hannahw/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/Hannahw/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/Hannahw/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/Hannahw/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/Hannahw/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/Hannahw/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/Hannahw/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/Hannahw/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/Hannahw/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/Hannahw/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/Hannahw/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/Hannahw/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/Hannahw/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/Hannahw/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/Hannahw/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/Hannahw/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/Hannahw/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/Hannahw/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/Hannahw/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/Hannahw/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/Hannahw/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 = 'DaisyRockPhotography: ' + 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="HANNAHW">';
			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;
	}
}

			

