window.thumbnails = {};
															thumbnails[5232754] = clik.newPhoto({"id":5232754,"src":"View_from_the_Keep_2_-_Turnbull_Building_91x122cm_thumb.jpg","galleries_id":294957,"server_id":5,"link":"photo_5232754.html","width":130,"caption":"View from the Keep 2 - Turnbull Building","height":97});
															thumbnails[5232759] = clik.newPhoto({"id":5232759,"src":"View_from_the_Keep_91x122cm_thumb.jpg","galleries_id":294957,"server_id":5,"link":"photo_5232759.html","width":130,"caption":"View from the Keep","height":95});
															thumbnails[7175015] = clik.newPhoto({"id":7175015,"src":"The_Side_with_Snow_91x91x4_thumb.jpg","galleries_id":294957,"server_id":5,"link":"photo_7175015.html","width":130,"caption":"The Side, with Snow, 91 x 91 x 4 cms.","height":130});
															thumbnails[5242657] = clik.newPhoto({"id":5242657,"src":"Passing_a_Palazzo_914x914_thumb.jpg","galleries_id":294958,"server_id":5,"link":"photo_5242657.html","width":130,"caption":"Passing a Palazzo","height":130});
															thumbnails[5361057] = clik.newPhoto({"id":5361057,"src":"Venetian_Regata_61x61_thumb.gif","galleries_id":302042,"server_id":5,"link":"photo_5361057.html","width":130,"caption":"Venetian Regata","height":123});
															thumbnails[5549956] = clik.newPhoto({"id":5549956,"src":"Oaks_Nr_Sawrey_61x61_thumb.gif","galleries_id":314491,"server_id":5,"link":"photo_5549956.html","width":130,"caption":"Oaks Nr Sawrey","height":129});
															thumbnails[5822573] = clik.newPhoto({"id":5822573,"src":"Buildings_with_Tyne_Bridge_thumb.jpg","galleries_id":329583,"server_id":5,"link":"photo_5822573.html","width":130,"caption":"Buildings with Tyne Bridge","height":105});
															thumbnails[5249282] = clik.newPhoto({"id":5249282,"src":"Photographers_thumb.jpg","galleries_id":294958,"server_id":5,"link":"photo_5249282.html","width":130,"caption":"Photographers","height":129});
															thumbnails[5549966] = clik.newPhoto({"id":5549966,"src":"Oak_Citadel_61x61_thumb.gif","galleries_id":314491,"server_id":5,"link":"photo_5549966.html","width":130,"caption":"Oak Citadel","height":130});
															thumbnails[6021080] = clik.newPhoto({"id":6021080,"src":"High_Leve_-Bridge_23x30x4_thumb.gif","galleries_id":329583,"server_id":5,"link":"photo_6021080.html","width":130,"caption":"High Level Bridge","height":97});
															thumbnails[5249318] = clik.newPhoto({"id":5249318,"src":"Santa_Maria_della_Salute_61x61_thumb.jpg","galleries_id":294958,"server_id":5,"link":"photo_5249318.html","width":130,"caption":"Santa Maria della Salute","height":129});
															thumbnails[5549646] = clik.newPhoto({"id":5549646,"src":"Blawearie_Steps_61x61_thumb.gif","galleries_id":314491,"server_id":5,"link":"photo_5549646.html","width":130,"caption":"Blawearie Steps","height":124});
															thumbnails[5822578] = clik.newPhoto({"id":5822578,"src":"St_Jamess_from_Windmill_Hi_thumb.gif","galleries_id":329583,"server_id":5,"link":"photo_5822578.html","width":130,"caption":"St James's from Windmill Hills","height":108});
															thumbnails[5249321] = clik.newPhoto({"id":5249321,"src":"Dorsoduro_thumb.jpg","galleries_id":294958,"server_id":5,"link":"photo_5249321.html","width":130,"caption":"Dorsoduro","height":123});
															thumbnails[5549981] = clik.newPhoto({"id":5549981,"src":"Rocks_Nr_Sawrey_40x40_thumb.gif","galleries_id":314491,"server_id":5,"link":"photo_5549981.html","width":130,"caption":"Rocks Nr Sawrey","height":128});
															thumbnails[5822574] = clik.newPhoto({"id":5822574,"src":"Tynemouth_23x30x4_thumb.gif","galleries_id":329583,"server_id":5,"link":"photo_5822574.html","width":130,"caption":"Tynemouth","height":103});
															thumbnails[5249329] = clik.newPhoto({"id":5249329,"src":"Sitting_on_the_Rail_thumb.jpg","galleries_id":294958,"server_id":5,"link":"photo_5249329.html","width":130,"caption":"Sitting on the Rail","height":105});
															thumbnails[5719702] = clik.newPhoto({"id":5719702,"src":"Sawrey_Farm_61x48_thumb.gif","galleries_id":314491,"server_id":5,"link":"photo_5719702.html","width":130,"caption":"Sawrey Farm","height":163});
															thumbnails[5249336] = clik.newPhoto({"id":5249336,"src":"On_the_Giudecca_Canal_thumb.jpg","galleries_id":294958,"server_id":5,"link":"photo_5249336.html","width":130,"caption":"On the Giudecca Canal","height":131});
															thumbnails[5828797] = clik.newPhoto({"id":5828797,"src":"Split_Rock_30x41x4_thumb.gif","galleries_id":314491,"server_id":5,"link":"photo_5828797.html","width":130,"caption":"Split Rock","height":98});
															thumbnails[5249333] = clik.newPhoto({"id":5249333,"src":"Night_Travel_thumb.jpg","galleries_id":294958,"server_id":5,"link":"photo_5249333.html","width":130,"caption":"Night Travel","height":160});
															thumbnails[8889631] = clik.newPhoto({"id":8889631,"src":"Fallen_log_thumb.jpg","galleries_id":314491,"server_id":5,"link":"photo_8889631.html","width":130,"caption":"Fallen Log","height":131});
															thumbnails[9050529] = clik.newPhoto({"id":9050529,"src":"Auchterarder_Hedgerow_No.1_thumb.jpg","galleries_id":314491,"server_id":5,"link":"photo_9050529.html","width":130,"caption":"Auchterarder Hedgerow No.1","height":129});
															thumbnails[9050530] = clik.newPhoto({"id":9050530,"src":"Auchterarder_Hedgerow_No.2_thumb.jpg","galleries_id":314491,"server_id":5,"link":"photo_9050530.html","width":130,"caption":"Auchterarder Hedgerow No.2","height":129});
															thumbnails[5249346] = clik.newPhoto({"id":5249346,"src":"Prague_Tram_No1_thumb.jpg","galleries_id":294958,"server_id":5,"link":"photo_5249346.html","width":130,"caption":"Prague Tram No.1","height":129});
															thumbnails[5361072] = clik.newPhoto({"id":5361072,"src":"Aegean_Hideaway_508x508_thumb.gif","galleries_id":302042,"server_id":5,"link":"photo_5361072.html","width":130,"caption":"Aegean Hideaway","height":128});
															thumbnails[5249401] = clik.newPhoto({"id":5249401,"src":"Prague_Tram_No2_thumb.jpg","galleries_id":294958,"server_id":5,"link":"photo_5249401.html","width":130,"caption":"Prague Tram No.2","height":130});
															thumbnails[7028536] = clik.newPhoto({"id":7028536,"src":"Turnbull_Winter_91x911_thumb.jpg","galleries_id":294957,"server_id":5,"link":"photo_7028536.html","width":130,"caption":"Turnbull Winter","height":130});
															thumbnails[5249405] = clik.newPhoto({"id":5249405,"src":"Prague_Tram_No3_61x61cms_thumb.jpg","galleries_id":294958,"server_id":5,"link":"photo_5249405.html","width":130,"caption":"Prague Tram No.3","height":130});
															thumbnails[5249425] = clik.newPhoto({"id":5249425,"src":"Prague_Tram_No4_thumb.jpg","galleries_id":294958,"server_id":5,"link":"photo_5249425.html","width":130,"caption":"Prague Tram No.4","height":131});
															thumbnails[5249270] = clik.newPhoto({"id":5249270,"src":"Newgate_Street_89x66_thumb.jpg","galleries_id":294957,"server_id":5,"link":"photo_5249270.html","width":130,"caption":"Newgate Street, Newcastle","height":177});
															thumbnails[5249429] = clik.newPhoto({"id":5249429,"src":"Wooden_Train_at_Soller_2009_thumb.jpg","galleries_id":294958,"server_id":5,"link":"photo_5249429.html","width":130,"caption":"Wooden Train at Soller","height":130});
															thumbnails[5361102] = clik.newPhoto({"id":5361102,"src":"Naxos_508x508_thumb.gif","galleries_id":302042,"server_id":5,"link":"photo_5361102.html","width":130,"caption":"Naxos","height":130});
															thumbnails[5822576] = clik.newPhoto({"id":5822576,"src":"Seaside_Cafe_No1_23x30x4_thumb.gif","galleries_id":329583,"server_id":5,"link":"photo_5822576.html","width":130,"caption":"Seaside Cafe No.1 (Fortunes of War)","height":104});
															thumbnails[5822577] = clik.newPhoto({"id":5822577,"src":"Seaside_Cafe_No2_thumb.jpg","galleries_id":329583,"server_id":5,"link":"photo_5822577.html","width":130,"caption":"Seaside Cafe No.2 (Due South)","height":105});
															thumbnails[8645874] = clik.newPhoto({"id":8645874,"src":"Tram_with_Prickly_Pear_Soller_thumb.jpg","galleries_id":294958,"server_id":5,"link":"photo_8645874.html","width":130,"caption":"Tram with Prickly Pear (Soller)","height":130});
															thumbnails[5822575] = clik.newPhoto({"id":5822575,"src":"Kings_College_from_The_Backs_thumb.jpg","galleries_id":329583,"server_id":5,"link":"photo_5822575.html","width":130,"caption":"King's College from the Backs","height":101});
															thumbnails[5249274] = clik.newPhoto({"id":5249274,"src":"High_Level_thumb.jpg","galleries_id":294957,"server_id":5,"link":"photo_5249274.html","width":130,"caption":"High Level","height":130});
															thumbnails[5249464] = clik.newPhoto({"id":5249464,"src":"Central_Hotel_with_Cars_thumb.jpg","galleries_id":294958,"server_id":5,"link":"photo_5249464.html","width":130,"caption":"Central Hotel with Cars","height":130});
															thumbnails[5719815] = clik.newPhoto({"id":5719815,"src":"Edge-of-Town_100x80_thumb.gif","galleries_id":302042,"server_id":5,"link":"photo_5719815.html","width":130,"caption":"Edge of Town","height":162});
															thumbnails[7538237] = clik.newPhoto({"id":7538237,"src":"The_Orange_House_thumb.jpg","galleries_id":302042,"server_id":5,"link":"photo_7538237.html","width":130,"caption":"The Orange House","height":138});
															thumbnails[7538254] = clik.newPhoto({"id":7538254,"src":"A_Yellow_Wall_thumb.jpg","galleries_id":302042,"server_id":5,"link":"photo_7538254.html","width":130,"caption":"A Yellow Wall","height":132});
															thumbnails[5249277] = clik.newPhoto({"id":5249277,"src":"Night_Station_2009_thumb.jpg","galleries_id":294957,"server_id":5,"link":"photo_5249277.html","width":130,"caption":"Night Station","height":106});
															thumbnails[7593150] = clik.newPhoto({"id":7593150,"src":"West_End_Fish_thumb.jpg","galleries_id":329583,"server_id":5,"link":"photo_7593150.html","width":130,"caption":"West End Fish, Queensferry Road, Edinburgh","height":130});
															thumbnails[8359337] = clik.newPhoto({"id":8359337,"src":"Chambers_Street_thumb.jpg","galleries_id":329583,"server_id":5,"link":"photo_8359337.html","width":130,"caption":"Chambers Street, Edinburgh","height":131});
															thumbnails[9075047] = clik.newPhoto({"id":9075047,"src":"Night_Station_2_thumb.jpg","galleries_id":294957,"server_id":5,"link":"photo_9075047.html","width":130,"caption":"Night Station 2","height":98});
															thumbnails[8359338] = clik.newPhoto({"id":8359338,"src":"Evening_Hanover_Street_thumb.jpg","galleries_id":329583,"server_id":5,"link":"photo_8359338.html","width":130,"caption":"Hanover Street, Edinburgh","height":131});
															thumbnails[8359339] = clik.newPhoto({"id":8359339,"src":"Deacon_Brodies_Tavern_thumb.jpg","galleries_id":329583,"server_id":5,"link":"photo_8359339.html","width":130,"caption":"Deacon Brodies Tavern, Edinburgh","height":131});
															thumbnails[8359341] = clik.newPhoto({"id":8359341,"src":"Jekyll__Hyde_thumb.jpg","galleries_id":329583,"server_id":5,"link":"photo_8359341.html","width":130,"caption":"Jekyll & Hyde, Edinburgh","height":131});
															thumbnails[8359344] = clik.newPhoto({"id":8359344,"src":"Wee_Scotland_Shop_thumb.jpg","galleries_id":329583,"server_id":5,"link":"photo_8359344.html","width":130,"caption":"Wee Scotland Shop, Edinburgh","height":131});
															thumbnails[5249510] = clik.newPhoto({"id":5249510,"src":"Under_the_Metro_thumb.jpg","galleries_id":294957,"server_id":5,"link":"photo_5249510.html","width":130,"caption":"Under the Metro","height":131});
															thumbnails[6021858] = clik.newPhoto({"id":6021858,"src":"Right_Turn_46x44_thumb.gif","galleries_id":302042,"server_id":5,"link":"photo_6021858.html","width":130,"caption":"Right Turn","height":136});
															thumbnails[5257407] = clik.newPhoto({"id":5257407,"src":"The_Sage_61x61_thumb.gif","galleries_id":294957,"server_id":5,"link":"photo_5257407.html","width":130,"caption":"The Sage, Gateshead","height":129});
															thumbnails[5249538] = clik.newPhoto({"id":5249538,"src":"King_Street_S_Shields_thumb.jpg","galleries_id":294957,"server_id":5,"link":"photo_5249538.html","width":130,"caption":"King Street, South Shields","height":98});
															thumbnails[6255692] = clik.newPhoto({"id":6255692,"src":"Rugs__Icons_thumb.jpg","galleries_id":302042,"server_id":5,"link":"photo_6255692.html","width":130,"caption":"Rugs & Icons","height":131});
															thumbnails[7285676] = clik.newPhoto({"id":7285676,"src":"Vindolanda_thumb.jpg","galleries_id":329583,"server_id":5,"link":"photo_7285676.html","width":130,"caption":"Vindolanda","height":130});
															thumbnails[6143197] = clik.newPhoto({"id":6143197,"src":"Breakfast__T-Shirts_thumb.gif","galleries_id":302042,"server_id":5,"link":"photo_6143197.html","width":130,"caption":"Breakfast & T-shirts","height":130});
															thumbnails[7292099] = clik.newPhoto({"id":7292099,"src":"Northumberland_Fells_thumb.jpg","galleries_id":329583,"server_id":5,"link":"photo_7292099.html","width":130,"caption":"Northumberland Fells","height":131});
															thumbnails[6085073] = clik.newPhoto({"id":6085073,"src":"Paintings--Prints_thumb.gif","galleries_id":302042,"server_id":5,"link":"photo_6085073.html","width":130,"caption":"Paintings & Prints","height":129});
															thumbnails[8064814] = clik.newPhoto({"id":8064814,"src":"South_Tyne_Valley_Landscape_thumb.jpg","galleries_id":329583,"server_id":5,"link":"photo_8064814.html","width":130,"caption":"South Tyne Valley Landscape","height":130});
															thumbnails[8064817] = clik.newPhoto({"id":8064817,"src":"In_the_South_Tyne_Valley_thumb.jpg","galleries_id":329583,"server_id":5,"link":"photo_8064817.html","width":130,"caption":"In the South Tyne Valley","height":130});
															thumbnails[6255697] = clik.newPhoto({"id":6255697,"src":"Rooms__Mannequins_40x40x4_thumb.gif","galleries_id":302042,"server_id":5,"link":"photo_6255697.html","width":130,"caption":"Rooms & Mannequins","height":131});
															thumbnails[7817113] = clik.newPhoto({"id":7817113,"src":"Shark_Rock_thumb.jpg","galleries_id":329583,"server_id":5,"link":"photo_7817113.html","width":130,"caption":"Shark Rock","height":129});
															thumbnails[7285681] = clik.newPhoto({"id":7285681,"src":"Boquer_Valley_Vision_thumb.jpg","galleries_id":329583,"server_id":5,"link":"photo_7285681.html","width":130,"caption":"Boquer Valley Vision","height":128});
															thumbnails[6021024] = clik.newPhoto({"id":6021024,"src":"Black_Ship_at_Chania_thumb.jpg","galleries_id":329583,"server_id":5,"link":"photo_6021024.html","width":130,"caption":"Black Ship at Chania","height":129});
															thumbnails[6484370] = clik.newPhoto({"id":6484370,"src":"Black_Ship_and_Mosque_Chania_thumb.jpg","galleries_id":329583,"server_id":5,"link":"photo_6484370.html","width":130,"caption":"Black Ship and Mosque, Chania","height":130});
															thumbnails[6916975] = clik.newPhoto({"id":6916975,"src":"Early_Evening__Chania_thumb.jpg","galleries_id":329583,"server_id":5,"link":"photo_6916975.html","width":130,"caption":"Early Evening, Chania","height":127});
															thumbnails[7096908] = clik.newPhoto({"id":7096908,"src":"Kastela_Seaside_Restaurant__thumb.gif","galleries_id":329583,"server_id":5,"link":"photo_7096908.html","width":130,"caption":"Kastela Seaside Restaurant","height":130});
															thumbnails[8359346] = clik.newPhoto({"id":8359346,"src":"Kastela_Restaurant_thumb.jpg","galleries_id":329583,"server_id":5,"link":"photo_8359346.html","width":130,"caption":"Kastela Restaurant","height":104});
															thumbnails[7656963] = clik.newPhoto({"id":7656963,"src":"Venetian_Balcony_thumb.jpg","galleries_id":329583,"server_id":5,"link":"photo_7656963.html","width":130,"caption":"Venetian Balcony ","height":129});
															thumbnails[5719855] = clik.newPhoto({"id":5719855,"src":"The_Barley_Mow_thumb.jpg","galleries_id":294957,"server_id":5,"link":"photo_5719855.html","width":130,"caption":"The Barley Mow","height":129});
															thumbnails[5719874] = clik.newPhoto({"id":5719874,"src":"The_Free_Trade_Inn_thumb.jpg","galleries_id":294957,"server_id":5,"link":"photo_5719874.html","width":130,"caption":"The Free Trade Inn","height":131});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[294957] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Tyneside","link":"gallery_294957.html","maxRecords":0.0,"photoIDs":[5232754.0,5232759.0,7175015.0,7028536.0,5249270.0,5249274.0,5249277.0,9075047.0,5249510.0,5257407.0,5249538.0,5719855.0,5719874.0],"skipIndex":0,"section_code":"gallery","featured_images":"7175015,7028536,5719874","id":294957,"singleSection":false});				  						galleries[294958] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Vaporetti etc","link":"gallery_294958.html","maxRecords":0.0,"photoIDs":[5242657.0,5249282.0,5249318.0,5249321.0,5249329.0,5249336.0,5249333.0,5249346.0,5249401.0,5249405.0,5249425.0,5249429.0,8645874.0,5249464.0],"skipIndex":0,"section_code":"gallery","featured_images":"8645874,5249282","id":294958,"singleSection":false});				  						galleries[302042] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"From Abroad","link":"gallery_302042.html","maxRecords":0.0,"photoIDs":[5361057.0,5361072.0,5361102.0,5719815.0,7538237.0,7538254.0,6021858.0,6255692.0,6143197.0,6085073.0,6255697.0],"skipIndex":0,"section_code":"gallery","featured_images":"7538254,7538237,6255697,6255692,6143197,6085073,6021858,5719815,5361057","id":302042,"singleSection":false});				  						galleries[314491] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Rocks and Trees","link":"gallery_314491.html","maxRecords":0.0,"photoIDs":[5549956.0,5549966.0,5549646.0,5549981.0,5719702.0,5828797.0,8889631.0,9050529.0,9050530.0],"skipIndex":0,"section_code":"gallery","featured_images":"9050530,9050529,8889631,5828797,5719702,5549966,5549956","id":314491,"singleSection":false});				  						galleries[329583] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Small Works","link":"gallery_329583.html","maxRecords":0.0,"photoIDs":[5822573.0,6021080.0,5822578.0,5822574.0,5822576.0,5822577.0,5822575.0,7593150.0,8359337.0,8359338.0,8359339.0,8359341.0,8359344.0,7285676.0,7292099.0,8064814.0,8064817.0,7817113.0,7285681.0,6021024.0,6484370.0,6916975.0,7096908.0,8359346.0,7656963.0],"skipIndex":0,"section_code":"gallery","featured_images":"8359346,8359344,8359341,8359339,8359338,8359337,8064817,8064814,7817113,7656963,7593150,7292099,7285681,7285676,7096908,6916975,6484370,6021080,6021024,5822578,5822577,5822576,5822575,5822574,5822573","id":329583,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7175015,5232754,5549956,5361057,6021080,5549966,5249282,5719702,8889631,9050529,9050530,7028536,8645874,5719815,7538237,7538254,7593150,8359337,8359338,8359339,8359341,8359344,6021858,5249510,7285676,6255692,7292099,6143197,8064814,6085073,8064817,7817113,6255697,7285681,6021024,6484370,6916975,7096908,8359346,7656963,5719855';
imageSets[2] = '7175015,5822573,5549956,5361057,6021080,5549966,5249282,5822578,5822574,5719702,5828797,8889631,9050529,9050530,7028536,5822576,8645874,5822577,5822575,5719815,7538237,7538254,7593150,8359337,8359338,8359339,8359341,8359344,6021858,7285676,6255692,7292099,6143197,8064814,6085073,8064817,7817113,6255697,7285681,6021024,6484370,6916975,7096908,8359346,7656963,5719874';
imageSets[3] = '7175015,5232759,5232754,5822573,5549956,5361057,6021080,5549966,5822578,5822574,5719702,5828797,8889631,9050529,9050530,7028536,5822576,8645874,5822577,5822575,5719815,7538237,7538254,7593150,8359337,8359338,8359339,8359341,8359344,6021858,7285676,6255692,7292099,6143197,8064814,6085073,8064817,7817113,6255697,7285681,6021024,6484370,6916975,7096908,8359346,7656963';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/harrybell/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/harrybell/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/harrybell/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/harrybell/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/harrybell/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/harrybell/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/harrybell/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/harrybell/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/harrybell/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/harrybell/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/harrybell/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/harrybell/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/harrybell/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/harrybell/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/harrybell/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/harrybell/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/harrybell/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/harrybell/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/harrybell/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/harrybell/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/harrybell/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/harrybell/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/harrybell/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/harrybell/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/harrybell/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/harrybell/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/harrybell/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 = 'HARRY BELL -  Fine Artist: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

