window.thumbnails = {};
															thumbnails[7909239] = clik.newPhoto({"id":7909239,"src":"exhibtitleimage_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":195});
															thumbnails[7909630] = clik.newPhoto({"id":7909630,"src":"gateway-tryp_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":51});
															thumbnails[7910152] = clik.newPhoto({"id":7910152,"src":"paintedbyrust-prices_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":92});
															thumbnails[8399060] = clik.newPhoto({"id":8399060,"src":"rotunda_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Exhibition in the Aston Webb Rotunda","height":98});
															thumbnails[7930100] = clik.newPhoto({"id":7930100,"src":"invite_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Invitation to Private View","height":93});
															thumbnails[4330887] = clik.newPhoto({"id":4330887,"src":"IMG_0422_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Street Art -2","height":195});
															thumbnails[4330934] = clik.newPhoto({"id":4330934,"src":"IMG_9269_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Street Art -6","height":195});
															thumbnails[7909088] = clik.newPhoto({"id":7909088,"src":"stone-face_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Stoneface","height":195});
															thumbnails[7909046] = clik.newPhoto({"id":7909046,"src":"endeavor_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Endeavour","height":195});
															thumbnails[6616262] = clik.newPhoto({"id":6616262,"src":"green_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Emerald Dream","height":195});
															thumbnails[7909107] = clik.newPhoto({"id":7909107,"src":"sunset_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Spectrum","height":195});
															thumbnails[7909111] = clik.newPhoto({"id":7909111,"src":"setting-sun_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Setting Sun","height":195});
															thumbnails[7909112] = clik.newPhoto({"id":7909112,"src":"eclipse_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Eclipse","height":195});
															thumbnails[7911581] = clik.newPhoto({"id":7911581,"src":"straw_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"The Last Straw","height":195});
															thumbnails[4782966] = clik.newPhoto({"id":4782966,"src":"IMG_5181_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"A Brush with Yellow","height":195});
															thumbnails[7909015] = clik.newPhoto({"id":7909015,"src":"gateway-1_thumb.jpg","galleries_id":426508,"server_id":15,"link":"photo_7909015.html","width":130,"caption":"Gateway I","height":195});
															thumbnails[7909020] = clik.newPhoto({"id":7909020,"src":"gateway-2_thumb.jpg","galleries_id":426508,"server_id":15,"link":"photo_7909020.html","width":130,"caption":"Gateway II","height":195});
															thumbnails[7909022] = clik.newPhoto({"id":7909022,"src":"gateway-3_thumb.jpg","galleries_id":426508,"server_id":15,"link":"photo_7909022.html","width":130,"caption":"Gateway III","height":195});
															thumbnails[7911586] = clik.newPhoto({"id":7911586,"src":"snake_thumb.jpg","galleries_id":426508,"server_id":15,"link":"photo_7911586.html","width":130,"caption":"Snake","height":195});
															thumbnails[7911584] = clik.newPhoto({"id":7911584,"src":"dell_thumb.jpg","galleries_id":426508,"server_id":15,"link":"photo_7911584.html","width":130,"caption":"Dell","height":195});
															thumbnails[7911583] = clik.newPhoto({"id":7911583,"src":"basque-suite_thumb.jpg","galleries_id":426508,"server_id":15,"link":"photo_7911583.html","width":130,"caption":"Basque Suite","height":195});
															thumbnails[4330664] = clik.newPhoto({"id":4330664,"src":"IMG_0492_thumb.jpg","galleries_id":445127,"server_id":15,"link":"photo_4330664.html","width":130,"caption":"Street Art -1","height":195});
															thumbnails[4329649] = clik.newPhoto({"id":4329649,"src":"IMG_9153_thumb.jpg","galleries_id":254976,"server_id":15,"link":"photo_4329649.html","width":130,"caption":"Floating World -1","height":195});
															thumbnails[7909025] = clik.newPhoto({"id":7909025,"src":"rushes_thumb.jpg","galleries_id":426508,"server_id":15,"link":"photo_7909025.html","width":130,"caption":"Twig Rush","height":195});
															thumbnails[7909029] = clik.newPhoto({"id":7909029,"src":"golden-frond_thumb.jpg","galleries_id":426508,"server_id":15,"link":"photo_7909029.html","width":130,"caption":"Golden Frond","height":195});
															thumbnails[4330262] = clik.newPhoto({"id":4330262,"src":"IMG_0818_thumb.jpg","galleries_id":254976,"server_id":15,"link":"photo_4330262.html","width":130,"caption":"Floating World -2","height":195});
															thumbnails[7909032] = clik.newPhoto({"id":7909032,"src":"the-bull_thumb.jpg","galleries_id":426508,"server_id":15,"link":"photo_7909032.html","width":130,"caption":"The Bull","height":195});
															thumbnails[4330931] = clik.newPhoto({"id":4330931,"src":"IMG_0481_thumb.jpg","galleries_id":445127,"server_id":15,"link":"photo_4330931.html","width":130,"caption":"Street Art -3","height":195});
															thumbnails[4329673] = clik.newPhoto({"id":4329673,"src":"IMG_7994_thumb.jpg","galleries_id":254976,"server_id":15,"link":"photo_4329673.html","width":130,"caption":"Floating World -3","height":195});
															thumbnails[7908479] = clik.newPhoto({"id":7908479,"src":"sailing_thumb.jpg","galleries_id":426508,"server_id":15,"link":"photo_7908479.html","width":130,"caption":"Sailing","height":195});
															thumbnails[4827840] = clik.newPhoto({"id":4827840,"src":"IMG_9084_thumb.jpg","galleries_id":445127,"server_id":15,"link":"photo_4827840.html","width":130,"caption":"Street Art -11","height":195});
															thumbnails[7909035] = clik.newPhoto({"id":7909035,"src":"cliff_thumb.jpg","galleries_id":426508,"server_id":15,"link":"photo_7909035.html","width":130,"caption":"Los Gigantes","height":195});
															thumbnails[7908546] = clik.newPhoto({"id":7908546,"src":"pirouette_thumb.jpg","galleries_id":426508,"server_id":15,"link":"photo_7908546.html","width":130,"caption":"Pirouette","height":195});
															thumbnails[4330278] = clik.newPhoto({"id":4330278,"src":"IMG_4416_thumb.jpg","galleries_id":254976,"server_id":15,"link":"photo_4330278.html","width":130,"caption":"Floating World -4","height":195});
															thumbnails[4330894] = clik.newPhoto({"id":4330894,"src":"IMG_9282_thumb.jpg","galleries_id":445127,"server_id":15,"link":"photo_4330894.html","width":130,"caption":"Street Art -4","height":195});
															thumbnails[7909040] = clik.newPhoto({"id":7909040,"src":"tachi_thumb.jpg","galleries_id":426508,"server_id":15,"link":"photo_7909040.html","width":130,"caption":"Tachi","height":195});
															thumbnails[6616527] = clik.newPhoto({"id":6616527,"src":"IMG_4368_thumb.jpg","galleries_id":254976,"server_id":15,"link":"photo_6616527.html","width":130,"caption":"Floating World -5","height":195});
															thumbnails[7908575] = clik.newPhoto({"id":7908575,"src":"cats-and-dogs_thumb.jpg","galleries_id":426508,"server_id":15,"link":"photo_7908575.html","width":130,"caption":"Cats and Dogs","height":195});
															thumbnails[4783216] = clik.newPhoto({"id":4783216,"src":"IMG_9449_thumb.jpg","galleries_id":254976,"server_id":15,"link":"photo_4783216.html","width":130,"caption":"Floating World -6","height":195});
															thumbnails[4783229] = clik.newPhoto({"id":4783229,"src":"IMG_9145_thumb.jpg","galleries_id":254976,"server_id":15,"link":"photo_4783229.html","width":130,"caption":"Floating World -7","height":195});
															thumbnails[4330924] = clik.newPhoto({"id":4330924,"src":"IMG_2453_thumb.jpg","galleries_id":445127,"server_id":15,"link":"photo_4330924.html","width":130,"caption":"Street Art -5","height":195});
															thumbnails[7908548] = clik.newPhoto({"id":7908548,"src":"cloud-over-dale-5754_thumb.jpg","galleries_id":426508,"server_id":15,"link":"photo_7908548.html","width":130,"caption":"Cloud Over Dale","height":195});
															thumbnails[6616532] = clik.newPhoto({"id":6616532,"src":"IMG_4503_thumb.jpg","galleries_id":254976,"server_id":15,"link":"photo_6616532.html","width":130,"caption":"Floating World -8","height":195});
															thumbnails[4827804] = clik.newPhoto({"id":4827804,"src":"IMG_9430_thumb.jpg","galleries_id":445127,"server_id":15,"link":"photo_4827804.html","width":130,"caption":"Street Art -6","height":195});
															thumbnails[7909071] = clik.newPhoto({"id":7909071,"src":"over-the-edge_thumb.jpg","galleries_id":426508,"server_id":15,"link":"photo_7909071.html","width":130,"caption":"Over the Edge","height":195});
															thumbnails[7909091] = clik.newPhoto({"id":7909091,"src":"kalos_thumb.jpg","galleries_id":426508,"server_id":15,"link":"photo_7909091.html","width":130,"caption":"Kalos","height":195});
															thumbnails[4827816] = clik.newPhoto({"id":4827816,"src":"IMG_9193_thumb.jpg","galleries_id":445127,"server_id":15,"link":"photo_4827816.html","width":130,"caption":"Street Art -7","height":195});
															thumbnails[7909050] = clik.newPhoto({"id":7909050,"src":"potato-pickers_thumb.jpg","galleries_id":426508,"server_id":15,"link":"photo_7909050.html","width":130,"caption":"Potato Pickers","height":195});
															thumbnails[7909100] = clik.newPhoto({"id":7909100,"src":"peinture_thumb.jpg","galleries_id":426508,"server_id":15,"link":"photo_7909100.html","width":130,"caption":"Peinture","height":195});
															thumbnails[4827819] = clik.newPhoto({"id":4827819,"src":"IMG_9023_thumb.jpg","galleries_id":445127,"server_id":15,"link":"photo_4827819.html","width":130,"caption":"Street Art -8","height":195});
															thumbnails[7909102] = clik.newPhoto({"id":7909102,"src":"koi_thumb.jpg","galleries_id":426508,"server_id":15,"link":"photo_7909102.html","width":130,"caption":"Koi","height":195});
															thumbnails[7909105] = clik.newPhoto({"id":7909105,"src":"fly-a-kite_thumb.jpg","galleries_id":426508,"server_id":15,"link":"photo_7909105.html","width":130,"caption":"Fly A Kite","height":195});
															thumbnails[4827824] = clik.newPhoto({"id":4827824,"src":"IMG_9129_thumb.jpg","galleries_id":445127,"server_id":15,"link":"photo_4827824.html","width":130,"caption":"Street Art -9","height":195});
															thumbnails[7909753] = clik.newPhoto({"id":7909753,"src":"rumba-5860_thumb.jpg","galleries_id":426508,"server_id":15,"link":"photo_7909753.html","width":130,"caption":"Rumba","height":195});
															thumbnails[4330440] = clik.newPhoto({"id":4330440,"src":"IMG_4589_thumb.jpg","galleries_id":254976,"server_id":15,"link":"photo_4330440.html","width":130,"caption":"Floating World -9","height":195});
															thumbnails[7909751] = clik.newPhoto({"id":7909751,"src":"the-long-grass_thumb.jpg","galleries_id":426508,"server_id":15,"link":"photo_7909751.html","width":130,"caption":"The Long Grass","height":195});
															thumbnails[7909097] = clik.newPhoto({"id":7909097,"src":"maelstrom_thumb.jpg","galleries_id":426508,"server_id":15,"link":"photo_7909097.html","width":130,"caption":"Maelstrom","height":195});
															thumbnails[4827836] = clik.newPhoto({"id":4827836,"src":"IMG_9207_thumb.jpg","galleries_id":445127,"server_id":15,"link":"photo_4827836.html","width":130,"caption":"Street Art -10","height":195});
															thumbnails[7909079] = clik.newPhoto({"id":7909079,"src":"ninja_thumb.jpg","galleries_id":426508,"server_id":15,"link":"photo_7909079.html","width":130,"caption":"Ninja","height":195});
															thumbnails[7909083] = clik.newPhoto({"id":7909083,"src":"red-crayon_thumb.jpg","galleries_id":426508,"server_id":15,"link":"photo_7909083.html","width":130,"caption":"Red Crayon","height":195});
															thumbnails[7909085] = clik.newPhoto({"id":7909085,"src":"buried-reds_thumb.jpg","galleries_id":426508,"server_id":15,"link":"photo_7909085.html","width":130,"caption":"Buried Reds","height":195});
															thumbnails[4827844] = clik.newPhoto({"id":4827844,"src":"IMG_9472_thumb.jpg","galleries_id":445127,"server_id":15,"link":"photo_4827844.html","width":130,"caption":"Street Art -12","height":195});
															thumbnails[4329794] = clik.newPhoto({"id":4329794,"src":"IMG_1730_thumb.jpg","galleries_id":426508,"server_id":15,"link":"photo_4329794.html","width":130,"caption":"Monkeys","height":195});
															thumbnails[4827919] = clik.newPhoto({"id":4827919,"src":"IMG_9202_thumb.jpg","galleries_id":445127,"server_id":15,"link":"photo_4827919.html","width":130,"caption":"Street Art -13","height":195});
															thumbnails[6616202] = clik.newPhoto({"id":6616202,"src":"coast_thumb.jpg","galleries_id":426508,"server_id":15,"link":"photo_6616202.html","width":130,"caption":"Coast","height":195});
															thumbnails[4783022] = clik.newPhoto({"id":4783022,"src":"IMG_4069_thumb.jpg","galleries_id":254976,"server_id":15,"link":"photo_4783022.html","width":130,"caption":"Floating World -10","height":195});
															thumbnails[4330282] = clik.newPhoto({"id":4330282,"src":"IMG_0868_thumb.jpg","galleries_id":254976,"server_id":15,"link":"photo_4330282.html","width":130,"caption":"Floating World -11","height":195});
															thumbnails[6616261] = clik.newPhoto({"id":6616261,"src":"green_orange_thumb.jpg","galleries_id":426508,"server_id":15,"link":"photo_6616261.html","width":130,"caption":"Framed","height":195});
															thumbnails[4827878] = clik.newPhoto({"id":4827878,"src":"IMG_5587_thumb.jpg","galleries_id":445127,"server_id":15,"link":"photo_4827878.html","width":130,"caption":"Street Art -14","height":195});
															thumbnails[4827997] = clik.newPhoto({"id":4827997,"src":"IMG_9016_thumb.jpg","galleries_id":445127,"server_id":15,"link":"photo_4827997.html","width":130,"caption":"Street Art -15","height":195});
															thumbnails[4330151] = clik.newPhoto({"id":4330151,"src":"IMG_3782_thumb.jpg","galleries_id":426508,"server_id":15,"link":"photo_4330151.html","width":130,"caption":"Sign of the Times","height":195});
															thumbnails[4330961] = clik.newPhoto({"id":4330961,"src":"IMG_9041_thumb.jpg","galleries_id":445127,"server_id":15,"link":"photo_4330961.html","width":130,"caption":"Street Art -5","height":87});
															thumbnails[4782939] = clik.newPhoto({"id":4782939,"src":"IMG_4843_thumb.jpg","galleries_id":426508,"server_id":15,"link":"photo_4782939.html","width":130,"caption":"Solar Flare","height":195});
															thumbnails[4330211] = clik.newPhoto({"id":4330211,"src":"IMG_1044_thumb.jpg","galleries_id":426508,"server_id":15,"link":"photo_4330211.html","width":130,"caption":"Spring has Sprung","height":195});
															thumbnails[6616206] = clik.newPhoto({"id":6616206,"src":"lily-pond_thumb.jpg","galleries_id":426508,"server_id":15,"link":"photo_6616206.html","width":130,"caption":"Lily Pond Blue","height":195});
															thumbnails[6616287] = clik.newPhoto({"id":6616287,"src":"bird_thumb.jpg","galleries_id":426508,"server_id":15,"link":"photo_6616287.html","width":130,"caption":"Bird of Paradise","height":195});
															thumbnails[4783220] = clik.newPhoto({"id":4783220,"src":"IMG_9380_thumb.jpg","galleries_id":254976,"server_id":15,"link":"photo_4783220.html","width":130,"caption":"Floating World -12","height":195});
															thumbnails[4782881] = clik.newPhoto({"id":4782881,"src":"IMG_4712_thumb.jpg","galleries_id":426508,"server_id":15,"link":"photo_4782881.html","width":130,"caption":"On Track","height":195});
															thumbnails[4782976] = clik.newPhoto({"id":4782976,"src":"IMG_5134_thumb.jpg","galleries_id":426508,"server_id":15,"link":"photo_4782976.html","width":130,"caption":"Cherry Blossom","height":195});
															thumbnails[4330223] = clik.newPhoto({"id":4330223,"src":"IMG_3413_thumb.jpg","galleries_id":426508,"server_id":15,"link":"photo_4330223.html","width":130,"caption":"Trees in Red","height":195});
															thumbnails[6616353] = clik.newPhoto({"id":6616353,"src":"bull-rush_thumb.jpg","galleries_id":426508,"server_id":15,"link":"photo_6616353.html","width":130,"caption":"Bullrush","height":195});
															thumbnails[4782869] = clik.newPhoto({"id":4782869,"src":"IMG_5138_thumb.jpg","galleries_id":426508,"server_id":15,"link":"photo_4782869.html","width":130,"caption":"Loco","height":195});
															thumbnails[6616491] = clik.newPhoto({"id":6616491,"src":"take-a-dive_thumb.jpg","galleries_id":426508,"server_id":15,"link":"photo_6616491.html","width":130,"caption":"Take a Dive","height":195});
															thumbnails[6616441] = clik.newPhoto({"id":6616441,"src":"cosmos-1_thumb.jpg","galleries_id":426508,"server_id":15,"link":"photo_6616441.html","width":130,"caption":"Cosmos","height":195});
															thumbnails[4782907] = clik.newPhoto({"id":4782907,"src":"tree-breeze_thumb.jpg","galleries_id":426508,"server_id":15,"link":"photo_4782907.html","width":130,"caption":"Tree Breeze","height":195});
															thumbnails[6616468] = clik.newPhoto({"id":6616468,"src":"flower-vase_thumb.jpg","galleries_id":426508,"server_id":15,"link":"photo_6616468.html","width":130,"caption":"Masquerade","height":195});
															thumbnails[6616292] = clik.newPhoto({"id":6616292,"src":"wooden-sunset_thumb.jpg","galleries_id":426508,"server_id":15,"link":"photo_6616292.html","width":130,"caption":"Wooden Sunset","height":195});
															thumbnails[7911564] = clik.newPhoto({"id":7911564,"src":"reflection_thumb.jpg","galleries_id":426508,"server_id":15,"link":"photo_7911564.html","width":130,"caption":"Reflection","height":195});
															thumbnails[4330208] = clik.newPhoto({"id":4330208,"src":"IMG_3438_thumb.jpg","galleries_id":426508,"server_id":15,"link":"photo_4330208.html","width":130,"caption":"Calligraphy in Rust","height":195});
															thumbnails[7911391] = clik.newPhoto({"id":7911391,"src":"take-a-hike_thumb.jpg","galleries_id":426508,"server_id":15,"link":"photo_7911391.html","width":130,"caption":"Crossed Paths","height":195});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[426508] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Painted by Rust","link":"gallery_426508.html","maxRecords":0.0,"photoIDs":[7909015.0,7909020.0,7909022.0,7911586.0,7911584.0,7911583.0,7909025.0,7909029.0,7909032.0,7908479.0,7909035.0,7908546.0,7909040.0,7908575.0,7908548.0,7909071.0,7909091.0,7909050.0,7909100.0,7909102.0,7909105.0,7909753.0,7909751.0,7909097.0,7909079.0,7909083.0,7909085.0,4329794.0,6616202.0,6616261.0,4330151.0,4782939.0,4330211.0,6616206.0,6616287.0,4782881.0,4782976.0,4330223.0,6616353.0,4782869.0,6616491.0,6616441.0,4782907.0,6616468.0,6616292.0,7911564.0,4330208.0,7911391.0],"skipIndex":0,"section_code":"gallery","featured_images":"7908575,7908479","id":426508,"singleSection":false});				  						galleries[254976] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Lost in the Moment","link":"gallery_254976.html","maxRecords":0.0,"photoIDs":[4329649.0,4330262.0,4329673.0,4330278.0,6616527.0,4783216.0,4783229.0,6616532.0,4330440.0,4783022.0,4330282.0,4783220.0],"skipIndex":0,"section_code":"gallery","featured_images":"6616532,6616527,4783229,4783220,4783216,4783022,4330440,4330282,4330278,4330262","id":254976,"singleSection":false});				  						galleries[445127] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Art on the Street","link":"gallery_445127.html","maxRecords":0.0,"photoIDs":[4330664.0,4330931.0,4827840.0,4330894.0,4330924.0,4827804.0,4827816.0,4827819.0,4827824.0,4827836.0,4827844.0,4827919.0,4827878.0,4827997.0,4330961.0],"skipIndex":0,"section_code":"gallery","featured_images":"4827997,4827919,4827878,4827844,4827840,4827836,4827824,4827819,4827816,4827804","id":445127,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[244604] = '8399060';
imageSets[1] = '7909015,7909020,7909022,7908479,7908575,7908548,4329794,4330151,4330211,4782881,4330223,4330208';
imageSets[2] = '7908479,7908575';
imageSets[3] = '8399060,7930100,7911586,7911584,7911583,7911581,7911564,7911391,7910152,7909753,7909751,7909630,7909239,7909112,7909111,7909107,7909105,7909102,7909100,7909097,7909091,7909088,7909085,7909083,7909079,7909071,7909050,7909046,7909040,7909035,7909032,7909029,7909025,7909022,7909020,7909015,7908575,7908548,7908546,7908479,6616532,6616527,6616491,6616468,6616441,6616353,6616292,6616287,6616262,6616261';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/brigittew/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/brigittew/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/brigittew/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/brigittew/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/brigittew/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/brigittew/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/brigittew/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/brigittew/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/brigittew/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/brigittew/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/brigittew/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/brigittew/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/brigittew/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/brigittew/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/brigittew/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/brigittew/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/brigittew/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/brigittew/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/brigittew/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/brigittew/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/brigittew/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/brigittew/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/brigittew/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/brigittew/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/brigittew/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/brigittew/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/brigittew/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 = 'Brigitte Winsor Photography: ' + 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> &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.item_price !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="brigittewinsor@hotmail.com">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="brigittewinsor@hotmail.com">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					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;
	}
}

			

