window.thumbnails = {};
															thumbnails[7208775] = clik.newPhoto({"id":7208775,"src":"Water_Droplet_1_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Water Droplets 1","height":195});
															thumbnails[7208777] = clik.newPhoto({"id":7208777,"src":"Water_Droplet_2_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Water Droplets 2","height":195});
															thumbnails[7208779] = clik.newPhoto({"id":7208779,"src":"Water_Droplet_3_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Water Droplets 3","height":195});
															thumbnails[7208738] = clik.newPhoto({"id":7208738,"src":"IMG_4805-edited_thumb.jpg","galleries_id":75675,"server_id":18,"link":"photo_7208738.html","width":130,"caption":"Autumn","height":195});
															thumbnails[7208671] = clik.newPhoto({"id":7208671,"src":"07_Sep_2010_066_thumb.JPG","galleries_id":75671,"server_id":18,"link":"photo_7208671.html","width":130,"caption":"Scooter Boy","height":195});
															thumbnails[7208673] = clik.newPhoto({"id":7208673,"src":"07_Sep_2010_086_thumb.JPG","galleries_id":75671,"server_id":18,"link":"photo_7208673.html","width":130,"caption":"Italian girls are soooo cool!","height":87});
															thumbnails[7208735] = clik.newPhoto({"id":7208735,"src":"03_Sep_2010_071_thumb.JPG","galleries_id":75691,"server_id":18,"link":"photo_7208735.html","width":130,"caption":"Gondolas","height":87});
															thumbnails[3470500] = clik.newPhoto({"id":3470500,"src":"Chaffinch_thumb.JPG","galleries_id":75674,"server_id":18,"link":"photo_3470500.html","width":130,"caption":"Chaffinch","height":87});
															thumbnails[3470550] = clik.newPhoto({"id":3470550,"src":"Llandovery Castle Ruins_thumb.jpg","galleries_id":75673,"server_id":18,"link":"photo_3470550.html","width":130,"caption":"Llandovery Castle ","height":93});
															thumbnails[2028812] = clik.newPhoto({"id":2028812,"src":"View from Exton Hill_thumb.JPG","galleries_id":75673,"server_id":18,"link":"photo_2028812.html","width":130,"caption":"View From Exton Hill<br>\r\n","height":87});
															thumbnails[1721112] = clik.newPhoto({"id":1721112,"src":"2007 Dec 29 002 edited_thumb.JPG","galleries_id":75677,"server_id":18,"link":"photo_1721112.html","width":130,"caption":"Knowle Buddha!","height":195});
															thumbnails[2028829] = clik.newPhoto({"id":2028829,"src":"Mushrooms_thumb.jpg","galleries_id":75675,"server_id":18,"link":"photo_2028829.html","width":130,"caption":"Mushrooms<br>\r\n","height":130});
															thumbnails[2028833] = clik.newPhoto({"id":2028833,"src":"Deer’s Eye View_thumb.JPG","galleries_id":75673,"server_id":2,"link":"photo_2028833.html","width":130,"caption":"Deers Eye View","height":195});
															thumbnails[1722185] = clik.newPhoto({"id":1722185,"src":"2007 Oct 07 117_edited-1_thumb.JPG","galleries_id":75673,"server_id":18,"link":"photo_1722185.html","width":130,"caption":"Sunlight through the canopy...","height":195});
															thumbnails[1722186] = clik.newPhoto({"id":1722186,"src":"2007 Oct 07 132_edited-1_thumb.JPG","galleries_id":75673,"server_id":18,"link":"photo_1722186.html","width":130,"caption":"Butser Hill","height":195});
															thumbnails[1722189] = clik.newPhoto({"id":1722189,"src":"Mushrooms 035_thumb.JPG","galleries_id":75675,"server_id":18,"link":"photo_1722189.html","width":130,"caption":"Mushrooms","height":195});
															thumbnails[2028803] = clik.newPhoto({"id":2028803,"src":"Canopy_thumb.JPG","galleries_id":75677,"server_id":18,"link":"photo_2028803.html","width":130,"caption":"Canopy","height":173});
															thumbnails[2028808] = clik.newPhoto({"id":2028808,"src":"Woodland Walk_thumb.jpg","galleries_id":75673,"server_id":18,"link":"photo_2028808.html","width":130,"caption":"Woodland Walk","height":195});
															thumbnails[2028819] = clik.newPhoto({"id":2028819,"src":"Tree Roots – Black & White_thumb.jpg","galleries_id":75675,"server_id":2,"link":"photo_2028819.html","width":130,"caption":"Tree Roots","height":130});
															thumbnails[2028822] = clik.newPhoto({"id":2028822,"src":"Butser Hill – Black & White_thumb.jpg","galleries_id":75673,"server_id":2,"link":"photo_2028822.html","width":130,"caption":"Butser Hill","height":130});
															thumbnails[2028823] = clik.newPhoto({"id":2028823,"src":"Autumn in the Trees_thumb.jpg","galleries_id":75673,"server_id":18,"link":"photo_2028823.html","width":130,"caption":"Autumn in the Trees","height":195});
															thumbnails[7208762] = clik.newPhoto({"id":7208762,"src":"Red_Berries_thumb.jpg","galleries_id":75675,"server_id":18,"link":"photo_7208762.html","width":130,"caption":"Red Berries","height":130});
															thumbnails[7208766] = clik.newPhoto({"id":7208766,"src":"Sun_Dappled_thumb.jpg","galleries_id":75676,"server_id":18,"link":"photo_7208766.html","width":130,"caption":"Sun Dappled","height":195});
															thumbnails[1435399] = clik.newPhoto({"id":1435399,"src":"2007 Sep 30 011 - webversion_thumb.JPG","galleries_id":75675,"server_id":18,"link":"photo_1435399.html","width":130,"caption":"A rose by any other name...","height":87});
															thumbnails[1435401] = clik.newPhoto({"id":1435401,"src":"TONE & TEXTURE0006_thumb.jpg","galleries_id":75675,"server_id":18,"link":"photo_1435401.html","width":130,"caption":"Cactus - B&W","height":195});
															thumbnails[7208763] = clik.newPhoto({"id":7208763,"src":"Rose_1_thumb.JPG","galleries_id":75675,"server_id":18,"link":"photo_7208763.html","width":130,"caption":"Rose (colour)","height":195});
															thumbnails[1433151] = clik.newPhoto({"id":1433151,"src":"2007 Sep 29 046_webversion_thumb.JPG","galleries_id":75675,"server_id":18,"link":"photo_1433151.html","width":130,"caption":"Autumn's coming...","height":195});
															thumbnails[7208776] = clik.newPhoto({"id":7208776,"src":"Water_Droplet_11_thumb.jpg","galleries_id":75677,"server_id":18,"link":"photo_7208776.html","width":130,"caption":"Water Droplets 1","height":195});
															thumbnails[7208778] = clik.newPhoto({"id":7208778,"src":"Water_Droplet_21_thumb.jpg","galleries_id":75677,"server_id":18,"link":"photo_7208778.html","width":130,"caption":"Water Droplets 2","height":195});
															thumbnails[7208780] = clik.newPhoto({"id":7208780,"src":"Water_Droplet_31_thumb.jpg","galleries_id":75677,"server_id":18,"link":"photo_7208780.html","width":130,"caption":"Water Droplets 3","height":195});
															thumbnails[7208781] = clik.newPhoto({"id":7208781,"src":"Water_Droplets_thumb.JPG","galleries_id":75677,"server_id":18,"link":"photo_7208781.html","width":130,"caption":"Water Droplets","height":195});
															thumbnails[1435405] = clik.newPhoto({"id":1435405,"src":"2007 Sep 23 012 web version_thumb.JPG","galleries_id":75673,"server_id":18,"link":"photo_1435405.html","width":130,"caption":"Lechlade on Thames","height":87});
															thumbnails[2028791] = clik.newPhoto({"id":2028791,"src":"In the Long Grass_thumb.JPG","galleries_id":75675,"server_id":18,"link":"photo_2028791.html","width":130,"caption":"In The Long Grass","height":98});
															thumbnails[7208769] = clik.newPhoto({"id":7208769,"src":"Tall_Grass_thumb.JPG","galleries_id":75675,"server_id":18,"link":"photo_7208769.html","width":130,"caption":"Tall Grass","height":195});
															thumbnails[7208783] = clik.newPhoto({"id":7208783,"src":"Wild_Flower_Meadows_thumb.JPG","galleries_id":75675,"server_id":18,"link":"photo_7208783.html","width":130,"caption":"Wild Flower Meadow","height":87});
															thumbnails[2028805] = clik.newPhoto({"id":2028805,"src":"Bluebell Carpet_thumb.JPG","galleries_id":75673,"server_id":18,"link":"photo_2028805.html","width":130,"caption":"Bluebell Carpet<br>\r\n","height":98});
															thumbnails[2028816] = clik.newPhoto({"id":2028816,"src":"Blossoms_thumb.jpg","galleries_id":75675,"server_id":18,"link":"photo_2028816.html","width":130,"caption":"Blossoms","height":195});
															thumbnails[7208753] = clik.newPhoto({"id":7208753,"src":"Bluebell_Carpet_thumb.JPG","galleries_id":75675,"server_id":18,"link":"photo_7208753.html","width":130,"caption":"Bluebell carpet","height":98});
															thumbnails[7208785] = clik.newPhoto({"id":7208785,"src":"Winchester_Waterway_thumb.JPG","galleries_id":75673,"server_id":18,"link":"photo_7208785.html","width":130,"caption":"Winchester Waterways","height":195});
															thumbnails[2028810] = clik.newPhoto({"id":2028810,"src":"Waves Crash_thumb.JPG","galleries_id":75673,"server_id":18,"link":"photo_2028810.html","width":130,"caption":"Waves Crash","height":60});
															thumbnails[7208758] = clik.newPhoto({"id":7208758,"src":"Image0026_thumb.jpg","galleries_id":75675,"server_id":18,"link":"photo_7208758.html","width":130,"caption":"Lest we forget...","height":93});
															thumbnails[1011077] = clik.newPhoto({"id":1011077,"src":"Grass Stipa Tenuifolia and Lavendula Stoechas_thumb.jpg","galleries_id":75675,"server_id":18,"link":"photo_1011077.html","width":130,"caption":"Lavendar and Grass","height":195});
															thumbnails[2028789] = clik.newPhoto({"id":2028789,"src":"Allium_thumb.JPG","galleries_id":75675,"server_id":18,"link":"photo_2028789.html","width":130,"caption":"Allium ","height":130});
															thumbnails[7208770] = clik.newPhoto({"id":7208770,"src":"The_Last_Post_thumb.jpg","galleries_id":75691,"server_id":18,"link":"photo_7208770.html","width":130,"caption":"The Last Post...","height":182});
															thumbnails[7208774] = clik.newPhoto({"id":7208774,"src":"TRICORN0001_edited-1_thumb.jpg","galleries_id":75672,"server_id":18,"link":"photo_7208774.html","width":130,"caption":"The Tricorn (RIP)","height":195});
															thumbnails[1011052] = clik.newPhoto({"id":1011052,"src":"ag gerassimos 0016_thumb.jpg","galleries_id":75672,"server_id":18,"link":"photo_1011052.html","width":130,"caption":"Ag Gerassimos Monastery","height":89});
															thumbnails[1011065] = clik.newPhoto({"id":1011065,"src":"burnt out car0016_thumb.jpg","galleries_id":75677,"server_id":18,"link":"photo_1011065.html","width":130,"caption":"Trashed","height":104});
															thumbnails[1011066] = clik.newPhoto({"id":1011066,"src":"Digi Pics 030906 080_thumb.jpg","galleries_id":75691,"server_id":18,"link":"photo_1011066.html","width":130,"caption":"","height":195});
															thumbnails[1011068] = clik.newPhoto({"id":1011068,"src":"Empty Deckchairs_thumb.jpg","galleries_id":75691,"server_id":18,"link":"photo_1011068.html","width":130,"caption":"Empty Deckchairs","height":195});
															thumbnails[1011071] = clik.newPhoto({"id":1011071,"src":"Exp 16 -  Aira Force Stream_edited-1_thumb.jpg","galleries_id":75673,"server_id":18,"link":"photo_1011071.html","width":130,"caption":"Tumbling White Water","height":195});
															thumbnails[1011075] = clik.newPhoto({"id":1011075,"src":"fiskado0001_thumb.jpg","galleries_id":75672,"server_id":18,"link":"photo_1011075.html","width":130,"caption":"Back Streets of Fiskado","height":182});
															thumbnails[1011268] = clik.newPhoto({"id":1011268,"src":"Image0002_thumb.jpg","galleries_id":75675,"server_id":18,"link":"photo_1011268.html","width":130,"caption":"Poppies","height":87});
															thumbnails[1011269] = clik.newPhoto({"id":1011269,"src":"Image0006_thumb.jpg","galleries_id":75675,"server_id":18,"link":"photo_1011269.html","width":130,"caption":"Poppy Field","height":87});
															thumbnails[1011270] = clik.newPhoto({"id":1011270,"src":"IMG_1176_thumb.JPG","galleries_id":75675,"server_id":18,"link":"photo_1011270.html","width":130,"caption":"Hazel...","height":87});
															thumbnails[1011272] = clik.newPhoto({"id":1011272,"src":"KIONI - ITHACA0025_thumb.jpg","galleries_id":75673,"server_id":18,"link":"photo_1011272.html","width":130,"caption":"Kioni, Ithaca","height":90});
															thumbnails[1011274] = clik.newPhoto({"id":1011274,"src":"m27 lights0015_thumb.jpg","galleries_id":75677,"server_id":18,"link":"photo_1011274.html","width":130,"caption":"Light Show","height":89});
															thumbnails[1011275] = clik.newPhoto({"id":1011275,"src":"myrtos bay 0034_thumb.jpg","galleries_id":75673,"server_id":18,"link":"photo_1011275.html","width":130,"caption":"Myrtos Bay, Kefalonia","height":89});
															thumbnails[1011276] = clik.newPhoto({"id":1011276,"src":"pylons 01_thumb.jpg","galleries_id":75673,"server_id":18,"link":"photo_1011276.html","width":130,"caption":"Pylons at Sunrise","height":87});
															thumbnails[1011277] = clik.newPhoto({"id":1011277,"src":"roses001_thumb.jpg","galleries_id":75675,"server_id":18,"link":"photo_1011277.html","width":130,"caption":"Roses are red... And Pink","height":87});
															thumbnails[1011278] = clik.newPhoto({"id":1011278,"src":"roses002_thumb.jpg","galleries_id":75675,"server_id":18,"link":"photo_1011278.html","width":130,"caption":"Fallen Rose","height":87});
															thumbnails[1011280] = clik.newPhoto({"id":1011280,"src":"sweeties0005_thumb.jpg","galleries_id":75691,"server_id":18,"link":"photo_1011280.html","width":130,"caption":"Jelly Beantastic!","height":104});
															thumbnails[1011281] = clik.newPhoto({"id":1011281,"src":"VATHY - ITHACA0017_thumb.jpg","galleries_id":75673,"server_id":18,"link":"photo_1011281.html","width":130,"caption":"Vathy Harbour, Ithaca","height":89});
															thumbnails[1011283] = clik.newPhoto({"id":1011283,"src":"IMG_1130_thumb.JPG","galleries_id":75673,"server_id":18,"link":"photo_1011283.html","width":130,"caption":"River Walk","height":195});
															thumbnails[1011284] = clik.newPhoto({"id":1011284,"src":"IMG_1175_thumb.JPG","galleries_id":75675,"server_id":18,"link":"photo_1011284.html","width":130,"caption":"Snowdrops by a Wall","height":195});
															thumbnails[1011285] = clik.newPhoto({"id":1011285,"src":"KIONI - ITHACA0035_thumb.jpg","galleries_id":75675,"server_id":18,"link":"photo_1011285.html","width":130,"caption":"Hang on There","height":179});
															thumbnails[1011287] = clik.newPhoto({"id":1011287,"src":"netley abbey001_thumb.jpg","galleries_id":75672,"server_id":18,"link":"photo_1011287.html","width":130,"caption":"Netley Chapel","height":181});
															thumbnails[1011288] = clik.newPhoto({"id":1011288,"src":"Picture 037_thumb.jpg","galleries_id":75691,"server_id":18,"link":"photo_1011288.html","width":130,"caption":"Serene Budda","height":195});
															thumbnails[1011289] = clik.newPhoto({"id":1011289,"src":"spinikar0012_thumb.jpg","galleries_id":75672,"server_id":18,"link":"photo_1011289.html","width":130,"caption":"Spinnakar Tower","height":178});
															thumbnails[1011290] = clik.newPhoto({"id":1011290,"src":"street 20_thumb.jpg","galleries_id":75672,"server_id":18,"link":"photo_1011290.html","width":130,"caption":"Back Streets, Ag. Efimia","height":182});
															thumbnails[1011291] = clik.newPhoto({"id":1011291,"src":"the solent001_thumb.jpg","galleries_id":75676,"server_id":18,"link":"photo_1011291.html","width":130,"caption":"Sun On The Solent ","height":179});
															thumbnails[1011301] = clik.newPhoto({"id":1011301,"src":"05 01 07 010_edited-1_thumb.jpg","galleries_id":75671,"server_id":18,"link":"photo_1011301.html","width":130,"caption":"Sisters","height":130});
															thumbnails[1011307] = clik.newPhoto({"id":1011307,"src":"hoover dam0022_thumb.jpg","galleries_id":75672,"server_id":18,"link":"photo_1011307.html","width":130,"caption":"Up and over the dam...","height":88});
															thumbnails[1011309] = clik.newPhoto({"id":1011309,"src":"Exp 33 - Ulswater with Blue Hues_thumb.jpg","galleries_id":75673,"server_id":18,"link":"photo_1011309.html","width":130,"caption":"Ulswater Blues","height":87});
															thumbnails[1011311] = clik.newPhoto({"id":1011311,"src":"Exp 37 - Sparkles at Ulswater_thumb.jpg","galleries_id":75676,"server_id":18,"link":"photo_1011311.html","width":130,"caption":"Sparkles and Sunshine At Ulswater","height":87});
															thumbnails[1011312] = clik.newPhoto({"id":1011312,"src":"boats0017_thumb.jpg","galleries_id":75691,"server_id":18,"link":"photo_1011312.html","width":130,"caption":"No Sailing Today!!","height":158});
															thumbnails[1011313] = clik.newPhoto({"id":1011313,"src":"Exp 20  - Pooley Bridge_thumb.jpg","galleries_id":75673,"server_id":18,"link":"photo_1011313.html","width":130,"caption":"Pooley Bridge","height":195});
															thumbnails[1011315] = clik.newPhoto({"id":1011315,"src":"luxor sunburst0019_thumb.jpg","galleries_id":75672,"server_id":18,"link":"photo_1011315.html","width":130,"caption":"Luxor Sunburst","height":159});
															thumbnails[1011317] = clik.newPhoto({"id":1011317,"src":"Stratosphere0003_thumb.jpg","galleries_id":75672,"server_id":18,"link":"photo_1011317.html","width":130,"caption":"Stratosphere Tower","height":160});
															thumbnails[2028790] = clik.newPhoto({"id":2028790,"src":"Rose_thumb.JPG","galleries_id":75675,"server_id":18,"link":"photo_2028790.html","width":130,"caption":"Rose","height":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[75677] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Abstract & Creative","link":"gallery_75677.html","maxRecords":0.0,"photoIDs":[1721112.0,2028803.0,7208776.0,7208778.0,7208780.0,7208781.0,1011065.0,1011274.0],"skipIndex":0,"section_code":"gallery","featured_images":"2028803,1721112","id":75677,"singleSection":false});				  						galleries[75672] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Buildings & Cities","link":"gallery_75672.html","maxRecords":0.0,"photoIDs":[7208774.0,1011052.0,1011075.0,1011287.0,1011289.0,1011290.0,1011307.0,1011315.0,1011317.0],"skipIndex":0,"section_code":"gallery","featured_images":"7208774,1011317,1011315,1011307,1011290,1011289,1011287,1011075,1011052","id":75672,"singleSection":false});				  						galleries[75675] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Flowers & Plants","link":"gallery_75675.html","maxRecords":0.0,"photoIDs":[7208738.0,2028829.0,1722189.0,2028819.0,7208762.0,1435399.0,1435401.0,7208763.0,1433151.0,2028791.0,7208769.0,7208783.0,2028816.0,7208753.0,7208758.0,1011077.0,2028789.0,1011268.0,1011269.0,1011270.0,1011277.0,1011278.0,1011284.0,1011285.0,2028790.0],"skipIndex":0,"section_code":"gallery","featured_images":"2028819,2028816,1722189","id":75675,"singleSection":false});				  						galleries[75673] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Landscapes","link":"gallery_75673.html","maxRecords":0.0,"photoIDs":[3470550.0,2028812.0,2028833.0,1722185.0,1722186.0,2028808.0,2028822.0,2028823.0,1435405.0,2028805.0,7208785.0,2028810.0,1011071.0,1011272.0,1011275.0,1011276.0,1011281.0,1011283.0,1011309.0,1011313.0],"skipIndex":0,"section_code":"gallery","featured_images":"3470550,2028833,2028823,2028822,2028812,2028810,2028808,2028805,1722186,1722185","id":75673,"singleSection":false});				  						galleries[75691] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Miscellaneous","link":"gallery_75691.html","maxRecords":0.0,"photoIDs":[7208735.0,7208770.0,1011066.0,1011068.0,1011280.0,1011288.0,1011312.0],"skipIndex":0,"section_code":"gallery","featured_images":"7208770,7208735,1011312,1011288,1011280,1011068,1011066","id":75691,"singleSection":false});				  						galleries[75671] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"People & Portraits","link":"gallery_75671.html","maxRecords":0.0,"photoIDs":[7208671.0,7208673.0,1011301.0],"skipIndex":0,"section_code":"gallery","featured_images":"7208673,7208671,1011301","id":75671,"singleSection":false});				  						galleries[75676] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Weather & Sun","link":"gallery_75676.html","maxRecords":0.0,"photoIDs":[7208766.0,1011291.0,1011311.0],"skipIndex":0,"section_code":"gallery","featured_images":"7208766,1011311,1011291","id":75676,"singleSection":false});				  						galleries[75674] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wildlife","link":"gallery_75674.html","maxRecords":0.0,"photoIDs":[3470500.0],"skipIndex":0,"section_code":"gallery","featured_images":3470500.0,"id":75674,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '3470550,3470500,2028833,2028823,2028822,2028819,2028816,2028812,2028810,2028808,2028805,2028803,1722189,1722186,1722185,1721112,1435405,1435399,1433151,1011317,1011315,1011311,1011307,1011290,1011289,1011287,1011285,1011284,1011278,1011277,1011274,1011270,1011269,1011268,1011077,1011065,1011052';
imageSets[2] = '3470550,3470500,2028833,2028823,2028822,2028819,2028816,2028812,2028810,2028808,2028805,2028803,1722189,1722186,1722185,1721112';
imageSets[3] = '7208785,7208783,7208781,7208780,7208779,7208778,7208777,7208776,7208775,7208774,7208770,7208769,7208766,7208763,7208762,7208758,7208753,7208738,7208735,7208673,7208671,3470550,3470500,2028833,2028829,2028823,2028822,2028819,2028816,2028812,2028810,2028808,2028805,2028803,2028791,2028790,2028789,1722189,1722186,1722185,1721112,1435405,1435401,1435399,1433151,1011317,1011315,1011313,1011312,1011311';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/queenbee1506/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/queenbee1506/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/queenbee1506/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/queenbee1506/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/queenbee1506/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/queenbee1506/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/queenbee1506/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/queenbee1506/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/queenbee1506/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/queenbee1506/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/queenbee1506/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/queenbee1506/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/queenbee1506/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/queenbee1506/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/queenbee1506/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/queenbee1506/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/queenbee1506/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/queenbee1506/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/queenbee1506/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/queenbee1506/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/queenbee1506/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/queenbee1506/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/queenbee1506/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/queenbee1506/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/queenbee1506/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/queenbee1506/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/queenbee1506/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 = 'Debbie Potter 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>';
	}
				
	temp += this.fnGetPaymentInfo();
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp += '<p>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
		else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="dpotterphotography@yahoo.co.uk">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="dpotterphotography@yahoo.co.uk">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					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;
	}
}

			

