window.thumbnails = {};
															thumbnails[1516057] = clik.newPhoto({"id":1516057,"src":"H11MA413_thumb.jpg","galleries_id":41434,"server_id":1,"link":"photo_1516057.html","width":130,"caption":"Marathon Runner","height":196});
															thumbnails[8853072] = clik.newPhoto({"id":8853072,"src":"SED01_thumb.jpg","galleries_id":465540,"server_id":1,"link":"photo_8853072.html","width":130,"caption":"SED01","height":180});
															thumbnails[8853074] = clik.newPhoto({"id":8853074,"src":"SED02_thumb.jpg","galleries_id":465540,"server_id":1,"link":"photo_8853074.html","width":130,"caption":"SED02","height":193});
															thumbnails[8853079] = clik.newPhoto({"id":8853079,"src":"SED03_thumb.jpg","galleries_id":465540,"server_id":1,"link":"photo_8853079.html","width":130,"caption":"SED03","height":91});
															thumbnails[8853083] = clik.newPhoto({"id":8853083,"src":"SED04_thumb.jpg","galleries_id":465540,"server_id":1,"link":"photo_8853083.html","width":130,"caption":"SED04","height":205});
															thumbnails[8853090] = clik.newPhoto({"id":8853090,"src":"SED05_thumb.jpg","galleries_id":465540,"server_id":1,"link":"photo_8853090.html","width":130,"caption":"SED05","height":89});
															thumbnails[8853097] = clik.newPhoto({"id":8853097,"src":"SED06_thumb.jpg","galleries_id":465540,"server_id":1,"link":"photo_8853097.html","width":130,"caption":"SED06","height":197});
															thumbnails[8853104] = clik.newPhoto({"id":8853104,"src":"SED07_thumb.jpg","galleries_id":465540,"server_id":1,"link":"photo_8853104.html","width":130,"caption":"SED07","height":198});
															thumbnails[8853108] = clik.newPhoto({"id":8853108,"src":"SED08_thumb.jpg","galleries_id":465540,"server_id":1,"link":"photo_8853108.html","width":130,"caption":"SED08","height":93});
															thumbnails[8853133] = clik.newPhoto({"id":8853133,"src":"SED12_thumb.jpg","galleries_id":465540,"server_id":1,"link":"photo_8853133.html","width":130,"caption":"SED12","height":191});
															thumbnails[8853134] = clik.newPhoto({"id":8853134,"src":"SED13_thumb.jpg","galleries_id":465540,"server_id":1,"link":"photo_8853134.html","width":130,"caption":"SED13","height":180});
															thumbnails[8853137] = clik.newPhoto({"id":8853137,"src":"SED14_thumb.jpg","galleries_id":465540,"server_id":1,"link":"photo_8853137.html","width":130,"caption":"SED14","height":186});
															thumbnails[8853138] = clik.newPhoto({"id":8853138,"src":"SED15_thumb.jpg","galleries_id":465540,"server_id":1,"link":"photo_8853138.html","width":130,"caption":"SED15","height":185});
															thumbnails[8853140] = clik.newPhoto({"id":8853140,"src":"SED19_thumb.jpg","galleries_id":465540,"server_id":1,"link":"photo_8853140.html","width":130,"caption":"SED19","height":82});
															thumbnails[8853141] = clik.newPhoto({"id":8853141,"src":"SED20_thumb.jpg","galleries_id":465540,"server_id":1,"link":"photo_8853141.html","width":130,"caption":"SED20","height":91});
															thumbnails[8853143] = clik.newPhoto({"id":8853143,"src":"SED27_thumb.jpg","galleries_id":465540,"server_id":1,"link":"photo_8853143.html","width":130,"caption":"SED27","height":196});
															thumbnails[8853146] = clik.newPhoto({"id":8853146,"src":"SED28_thumb.jpg","galleries_id":465540,"server_id":1,"link":"photo_8853146.html","width":130,"caption":"SED28","height":181});
															thumbnails[8853149] = clik.newPhoto({"id":8853149,"src":"SED31_thumb.jpg","galleries_id":465540,"server_id":1,"link":"photo_8853149.html","width":130,"caption":"SED31","height":192});
															thumbnails[8853152] = clik.newPhoto({"id":8853152,"src":"SED37_thumb.jpg","galleries_id":465540,"server_id":1,"link":"photo_8853152.html","width":130,"caption":"SED37","height":199});
															thumbnails[8853153] = clik.newPhoto({"id":8853153,"src":"SED38_thumb.jpg","galleries_id":465540,"server_id":1,"link":"photo_8853153.html","width":130,"caption":"SED38","height":190});
															thumbnails[8853156] = clik.newPhoto({"id":8853156,"src":"SED39_thumb.jpg","galleries_id":465540,"server_id":1,"link":"photo_8853156.html","width":130,"caption":"SED39","height":188});
															thumbnails[8853158] = clik.newPhoto({"id":8853158,"src":"SED41_thumb.jpg","galleries_id":465540,"server_id":1,"link":"photo_8853158.html","width":130,"caption":"SED41","height":187});
															thumbnails[8853162] = clik.newPhoto({"id":8853162,"src":"SED42_thumb.jpg","galleries_id":465540,"server_id":1,"link":"photo_8853162.html","width":130,"caption":"SED42","height":87});
															thumbnails[8853163] = clik.newPhoto({"id":8853163,"src":"SED43_thumb.jpg","galleries_id":465540,"server_id":1,"link":"photo_8853163.html","width":130,"caption":"SED43","height":176});
															thumbnails[8853168] = clik.newPhoto({"id":8853168,"src":"SED44_thumb.jpg","galleries_id":465540,"server_id":1,"link":"photo_8853168.html","width":130,"caption":"SED44","height":199});
															thumbnails[8853169] = clik.newPhoto({"id":8853169,"src":"SED46_thumb.jpg","galleries_id":465540,"server_id":1,"link":"photo_8853169.html","width":130,"caption":"SED46","height":198});
															thumbnails[8853171] = clik.newPhoto({"id":8853171,"src":"SED48_thumb.jpg","galleries_id":465540,"server_id":1,"link":"photo_8853171.html","width":130,"caption":"SED48","height":187});
															thumbnails[8853174] = clik.newPhoto({"id":8853174,"src":"SED62_thumb.jpg","galleries_id":465540,"server_id":1,"link":"photo_8853174.html","width":130,"caption":"SED62","height":187});
															thumbnails[8853176] = clik.newPhoto({"id":8853176,"src":"SED65_thumb.jpg","galleries_id":465540,"server_id":1,"link":"photo_8853176.html","width":130,"caption":"SED65","height":194});
															thumbnails[8853177] = clik.newPhoto({"id":8853177,"src":"SED72_thumb.jpg","galleries_id":465540,"server_id":1,"link":"photo_8853177.html","width":130,"caption":"SED72","height":87});
															thumbnails[8853179] = clik.newPhoto({"id":8853179,"src":"SED73_thumb.jpg","galleries_id":465540,"server_id":1,"link":"photo_8853179.html","width":130,"caption":"SED73","height":84});
															thumbnails[8853180] = clik.newPhoto({"id":8853180,"src":"SED82_thumb.jpg","galleries_id":465540,"server_id":1,"link":"photo_8853180.html","width":130,"caption":"SED82","height":85});
															thumbnails[8853182] = clik.newPhoto({"id":8853182,"src":"SED83_thumb.jpg","galleries_id":465540,"server_id":1,"link":"photo_8853182.html","width":130,"caption":"SED83","height":96});
															thumbnails[8853183] = clik.newPhoto({"id":8853183,"src":"SED86_thumb.jpg","galleries_id":465540,"server_id":1,"link":"photo_8853183.html","width":130,"caption":"SED86","height":86});
															thumbnails[8853615] = clik.newPhoto({"id":8853615,"src":"SED90_thumb.jpg","galleries_id":465540,"server_id":1,"link":"photo_8853615.html","width":130,"caption":"SED90","height":182});
															thumbnails[1515949] = clik.newPhoto({"id":1515949,"src":"_De-La-Warr's-Vision1_thumb.jpg","galleries_id":41438,"server_id":1,"link":"photo_1515949.html","width":130,"caption":"De La Warr's Vision","height":194});
															thumbnails[1515952] = clik.newPhoto({"id":1515952,"src":"3-going-on-16_thumb.jpg","galleries_id":41371,"server_id":1,"link":"photo_1515952.html","width":130,"caption":"","height":194});
															thumbnails[1516053] = clik.newPhoto({"id":1516053,"src":"Grumpy-Ted5_thumb.jpg","galleries_id":41371,"server_id":1,"link":"photo_1516053.html","width":130,"caption":"","height":87});
															thumbnails[1516093] = clik.newPhoto({"id":1516093,"src":"Lois-b_w_thumb.jpg","galleries_id":41371,"server_id":1,"link":"photo_1516093.html","width":130,"caption":"","height":87});
															thumbnails[1516185] = clik.newPhoto({"id":1516185,"src":"Not-Forgotten1_thumb.jpg","galleries_id":41434,"server_id":1,"link":"photo_1516185.html","width":130,"caption":"World War 1 Memorial at the Menin Gate, Ypres","height":202});
															thumbnails[1516176] = clik.newPhoto({"id":1516176,"src":"Looking-Out_thumb.jpg","galleries_id":41434,"server_id":1,"link":"photo_1516176.html","width":130,"caption":"Boy Gazing Out to sea","height":195});
															thumbnails[1516003] = clik.newPhoto({"id":1516003,"src":"Dancers-4_thumb.jpg","galleries_id":41434,"server_id":1,"link":"photo_1516003.html","width":130,"caption":"Dancers","height":203});
															thumbnails[1516023] = clik.newPhoto({"id":1516023,"src":"Evening-at-Wastwater1_thumb.jpg","galleries_id":41438,"server_id":1,"link":"photo_1516023.html","width":130,"caption":"Evening at Wastwater, Cumbria","height":67});
															thumbnails[1516117] = clik.newPhoto({"id":1516117,"src":"Lois3Sep07b_w_thumb.jpg","galleries_id":41371,"server_id":1,"link":"photo_1516117.html","width":130,"caption":"","height":87});
															thumbnails[1515958] = clik.newPhoto({"id":1515958,"src":"Abbi-Sep07_thumb.jpg","galleries_id":41371,"server_id":1,"link":"photo_1515958.html","width":130,"caption":"","height":176});
															thumbnails[1516059] = clik.newPhoto({"id":1516059,"src":"Helen&Ted_thumb.jpg","galleries_id":41371,"server_id":1,"link":"photo_1516059.html","width":130,"caption":"","height":197});
															thumbnails[1516186] = clik.newPhoto({"id":1516186,"src":"Oval_thumb.jpg","galleries_id":41438,"server_id":1,"link":"photo_1516186.html","width":130,"caption":"Oval","height":87});
															thumbnails[1516001] = clik.newPhoto({"id":1516001,"src":"Choose1_thumb.jpg","galleries_id":41438,"server_id":1,"link":"photo_1516001.html","width":130,"caption":"Choose","height":86});
															thumbnails[1516051] = clik.newPhoto({"id":1516051,"src":"Grumpy-Ted_thumb.jpg","galleries_id":41371,"server_id":1,"link":"photo_1516051.html","width":130,"caption":"","height":85});
															thumbnails[1515995] = clik.newPhoto({"id":1515995,"src":"Bonfire_thumb.jpg","galleries_id":41434,"server_id":1,"link":"photo_1515995.html","width":130,"caption":"Bonfire","height":86});
															thumbnails[1516140] = clik.newPhoto({"id":1516140,"src":"Looking-at-bump_thumb.jpg","galleries_id":41371,"server_id":1,"link":"photo_1516140.html","width":130,"caption":"","height":196});
															thumbnails[1516015] = clik.newPhoto({"id":1516015,"src":"De-La-Warr-Tulips_thumb.jpg","galleries_id":41438,"server_id":1,"link":"photo_1516015.html","width":130,"caption":"De La Warr in Spring","height":55});
															thumbnails[1516207] = clik.newPhoto({"id":1516207,"src":"Thiepval7_thumb.jpg","galleries_id":41434,"server_id":1,"link":"photo_1516207.html","width":130,"caption":"Thiepval","height":194});
															thumbnails[1515956] = clik.newPhoto({"id":1515956,"src":"Abbi-and-Ted7Sep07_thumb.jpg","galleries_id":41371,"server_id":1,"link":"photo_1515956.html","width":130,"caption":"","height":87});
															thumbnails[1516034] = clik.newPhoto({"id":1516034,"src":"Football-Action_thumb.jpg","galleries_id":41434,"server_id":1,"link":"photo_1516034.html","width":130,"caption":"Football Action","height":196});
															thumbnails[1516062] = clik.newPhoto({"id":1516062,"src":"jamie1_thumb.jpg","galleries_id":41371,"server_id":1,"link":"photo_1516062.html","width":130,"caption":"","height":195});
															thumbnails[1515997] = clik.newPhoto({"id":1515997,"src":"Bowls2_thumb.jpg","galleries_id":41434,"server_id":1,"link":"photo_1515997.html","width":130,"caption":"Bowls","height":86});
															thumbnails[1516020] = clik.newPhoto({"id":1516020,"src":"English-Summer_thumb.jpg","galleries_id":41434,"server_id":1,"link":"photo_1516020.html","width":130,"caption":"English Summer","height":196});
															thumbnails[1516184] = clik.newPhoto({"id":1516184,"src":"needlessunset_thumb.jpg","galleries_id":41438,"server_id":1,"link":"photo_1516184.html","width":130,"caption":"Needles at Sunset","height":195});
															thumbnails[1516197] = clik.newPhoto({"id":1516197,"src":"Shattered-Tree_thumb.jpg","galleries_id":41434,"server_id":1,"link":"photo_1516197.html","width":130,"caption":"Shattered Tree","height":195});
															thumbnails[1516208] = clik.newPhoto({"id":1516208,"src":"Wastwater-Clouds_thumb.jpg","galleries_id":41438,"server_id":1,"link":"photo_1516208.html","width":130,"caption":"Wastwater, Cumbria","height":86});
															thumbnails[1516240] = clik.newPhoto({"id":1516240,"src":"Lois-on-Birthday4bw_thumb.jpg","galleries_id":41371,"server_id":1,"link":"photo_1516240.html","width":130,"caption":"","height":196});
															thumbnails[1516090] = clik.newPhoto({"id":1516090,"src":"Liussenthoek-Memorial-Cross1_thumb.jpg","galleries_id":41434,"server_id":1,"link":"photo_1516090.html","width":130,"caption":"Liussenthoek Memorial Cross","height":195});
															thumbnails[1516088] = clik.newPhoto({"id":1516088,"src":"little-jack-horner-2_thumb.jpg","galleries_id":41371,"server_id":1,"link":"photo_1516088.html","width":130,"caption":"","height":83});
															thumbnails[1515998] = clik.newPhoto({"id":1515998,"src":"Boy-Meets-Girl_thumb.jpg","galleries_id":41371,"server_id":1,"link":"photo_1515998.html","width":130,"caption":"","height":87});
															thumbnails[1516188] = clik.newPhoto({"id":1516188,"src":"Rugger-Silhoette_thumb.jpg","galleries_id":41434,"server_id":1,"link":"photo_1516188.html","width":130,"caption":"Rugby in Silhoette","height":194});
															thumbnails[1516205] = clik.newPhoto({"id":1516205,"src":"Thiepval-Memorial-3_thumb.jpg","galleries_id":41438,"server_id":1,"link":"photo_1516205.html","width":130,"caption":"Thiepval Memorial, France","height":87});
															thumbnails[1515967] = clik.newPhoto({"id":1515967,"src":"benpeeking_thumb.jpg","galleries_id":41371,"server_id":1,"link":"photo_1515967.html","width":130,"caption":"","height":195});
															thumbnails[1516179] = clik.newPhoto({"id":1516179,"src":"Machinery_thumb.jpg","galleries_id":41438,"server_id":1,"link":"photo_1516179.html","width":130,"caption":"Machinery","height":196});
															thumbnails[1516239] = clik.newPhoto({"id":1516239,"src":"Grumpy-Fireman_thumb.jpg","galleries_id":41371,"server_id":1,"link":"photo_1516239.html","width":130,"caption":"","height":194});
															thumbnails[1515953] = clik.newPhoto({"id":1515953,"src":"Abbi-2Sep07_thumb.jpg","galleries_id":41371,"server_id":1,"link":"photo_1515953.html","width":130,"caption":"","height":87});
															thumbnails[1516202] = clik.newPhoto({"id":1516202,"src":"Snowy-Owl3_thumb.jpg","galleries_id":41371,"server_id":1,"link":"photo_1516202.html","width":130,"caption":"Snowy Owl","height":86});
															thumbnails[1516203] = clik.newPhoto({"id":1516203,"src":"ted--in-shades_thumb.jpg","galleries_id":41371,"server_id":1,"link":"photo_1516203.html","width":130,"caption":"","height":86});
															thumbnails[1515970] = clik.newPhoto({"id":1515970,"src":"bluebell2_thumb.jpg","galleries_id":41438,"server_id":1,"link":"photo_1515970.html","width":130,"caption":"Bluebell Railway","height":164});
															thumbnails[1516042] = clik.newPhoto({"id":1516042,"src":"German-Lines-at-Vimy_thumb.jpg","galleries_id":41434,"server_id":1,"link":"photo_1516042.html","width":130,"caption":"German Lines at Vimy Ridge","height":194});
															thumbnails[1516211] = clik.newPhoto({"id":1516211,"src":"wedding704_thumb.jpg","galleries_id":41434,"server_id":1,"link":"photo_1516211.html","width":130,"caption":"Little Friends","height":190});
															thumbnails[1516190] = clik.newPhoto({"id":1516190,"src":"Salute-to-Comrade_thumb.jpg","galleries_id":41434,"server_id":1,"link":"photo_1516190.html","width":130,"caption":"Salute to Comrade","height":200});
															thumbnails[1516028] = clik.newPhoto({"id":1516028,"src":"feet1_thumb.jpg","galleries_id":41371,"server_id":1,"link":"photo_1516028.html","width":130,"caption":"","height":94});
															thumbnails[1516045] = clik.newPhoto({"id":1516045,"src":"Giraffe2_thumb.jpg","galleries_id":41371,"server_id":1,"link":"photo_1516045.html","width":130,"caption":"","height":86});
															thumbnails[1516195] = clik.newPhoto({"id":1516195,"src":"Service-with-a-Smile_thumb.jpg","galleries_id":41371,"server_id":1,"link":"photo_1516195.html","width":130,"caption":"","height":196});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[41442] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Main Menu- please click image for more galleries","link":"gallery_41442.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"1516240,1516239,1516211,1516208,1516207,1516205,1516203,1516202,1516197,1516195,1516190,1516188,1516186,1516185,1516184,1516179,1516176,1516140,1516117,1516093,1516090,1516088,1516062,1516059,1516057,1516053,1516051,1516045,1516042,1516034,1516028,1516023,1516020,1516015,1516003,1516001,1515998,1515997,1515995,1515970,1515967,1515958,1515956,1515953,1515952,1515949","id":41442,"singleSection":true});				  						galleries[41371] = clik.newGallery({"parentGallery":41442,"usePopups":false,"title":"Portraiture","link":"gallery_41371.html","maxRecords":0.0,"photoIDs":[1515952.0,1516053.0,1516093.0,1516117.0,1515958.0,1516059.0,1516051.0,1516140.0,1515956.0,1516062.0,1516240.0,1516088.0,1515998.0,1515967.0,1516239.0,1515953.0,1516202.0,1516203.0,1516028.0,1516045.0,1516195.0],"skipIndex":0,"section_code":"gallery","featured_images":"1516240,1516239,1516203,1516202,1516195,1516140,1516117,1516093,1516088,1516062,1516059,1516053,1516051,1516045,1516028,1515998,1515967,1515958,1515956,1515953,1515952","id":41371,"singleSection":true});				  						galleries[465540] = clik.newGallery({"parentGallery":41442,"usePopups":false,"title":"Susie and Tony's Party","link":"gallery_465540.html","maxRecords":0.0,"photoIDs":[8853072.0,8853074.0,8853079.0,8853083.0,8853090.0,8853097.0,8853104.0,8853108.0,8853133.0,8853134.0,8853137.0,8853138.0,8853140.0,8853141.0,8853143.0,8853146.0,8853149.0,8853152.0,8853153.0,8853156.0,8853158.0,8853162.0,8853163.0,8853168.0,8853169.0,8853171.0,8853174.0,8853176.0,8853177.0,8853179.0,8853180.0,8853182.0,8853183.0,8853615.0],"skipIndex":0,"section_code":"gallery","featured_images":"8853615,8853183,8853182,8853180,8853179,8853177,8853176,8853174,8853171,8853169","id":465540,"singleSection":true});				  						galleries[41434] = clik.newGallery({"parentGallery":41442,"usePopups":false,"title":"Social","link":"gallery_41434.html","maxRecords":0.0,"photoIDs":[1516057.0,1516185.0,1516176.0,1516003.0,1515995.0,1516207.0,1516034.0,1515997.0,1516020.0,1516197.0,1516090.0,1516188.0,1516042.0,1516211.0,1516190.0],"skipIndex":0,"section_code":"gallery","featured_images":"1516211,1516207,1516197,1516190,1516188,1516185,1516176,1516090,1516057,1516042,1516034,1516020,1516003,1515997,1515995","id":41434,"singleSection":true});				  						galleries[41438] = clik.newGallery({"parentGallery":41442,"usePopups":false,"title":"Landscapes and Objective","link":"gallery_41438.html","maxRecords":0.0,"photoIDs":[1515949.0,1516023.0,1516186.0,1516001.0,1516015.0,1516184.0,1516208.0,1516205.0,1516179.0,1515970.0],"skipIndex":0,"section_code":"gallery","featured_images":"1516208,1516205,1516186,1516184,1516179,1516023,1516015,1516001,1515970,1515949","id":41438,"singleSection":true});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '1516057,1516053,1515952,1515949,1516185,1516093,1516176,1516117,1516023,1516059,1515958,1516186,1516051,1516001,1516140,1515995,1516207,1516015,1515956,1516020,1516208,1516184,1516090,1516088,1516205,1515998,1515967,1516239,1516179,1516202,1516203,1515970,1516211';
imageSets[2] = '1516057,1516053,1515952,1515949,1516185,1516093,1516176,1516003,1516117,1516023,1516059,1515958,1516186,1516051,1516001,1516140,1515995,1516207,1516015,1516062,1516034,1515956,1516020,1515997,1516208,1516197,1516184,1516240,1516090,1516088,1516205,1516188,1515998,1515967,1516239,1516179,1515953,1516202,1516203,1515970,1516042,1516211,1516190,1516028,1516045,1516195';
imageSets[3] = '8853615,8853183,8853182,8853180,8853179,8853177,8853176,8853174,8853171,8853169,8853168,8853163,8853162,8853158,8853156,8853153,8853152,8853149,8853146,8853143,8853141,8853140,8853138,8853137,8853134,8853133,8853108,8853104,8853097,8853090,8853083,8853079,8853074,8853072,1516240,1516239,1516211,1516208,1516207,1516205,1516203,1516202,1516197,1516195,1516190,1516188,1516186,1516185,1516184,1516179';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/stevehunnisett/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/stevehunnisett/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/stevehunnisett/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/stevehunnisett/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/stevehunnisett/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/stevehunnisett/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/stevehunnisett/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/stevehunnisett/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/stevehunnisett/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/stevehunnisett/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/stevehunnisett/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/stevehunnisett/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/stevehunnisett/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/stevehunnisett/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/stevehunnisett/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/stevehunnisett/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/stevehunnisett/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/stevehunnisett/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/stevehunnisett/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/stevehunnisett/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/stevehunnisett/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/stevehunnisett/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/stevehunnisett/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/stevehunnisett/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/stevehunnisett/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/stevehunnisett/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/stevehunnisett/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 = 'Photoculture: ' + 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>Steve Hunnisett LRPS </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 !== '' || this.payment_groups_id !== '') {
			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;
	}
}

			

