window.thumbnails = {};
															thumbnails[2870079] = clik.newPhoto({"id":2870079,"src":"trees 600x375_thumb.jpg","galleries_id":444617,"server_id":18,"link":"photo_2870079.html","width":130,"caption":"Trees","height":130});
															thumbnails[2870089] = clik.newPhoto({"id":2870089,"src":"zell antique 600x375_thumb.jpg","galleries_id":444617,"server_id":18,"link":"photo_2870089.html","width":130,"caption":"The Lake At Zell am See","height":130});
															thumbnails[2875094] = clik.newPhoto({"id":2875094,"src":"stairssm_thumb.jpg","galleries_id":444625,"server_id":18,"link":"photo_2875094.html","width":130,"caption":"Stairwell","height":130});
															thumbnails[2875219] = clik.newPhoto({"id":2875219,"src":"city hall-2 450_thumb.jpg","galleries_id":444621,"server_id":18,"link":"photo_2875219.html","width":130,"caption":"City Hall","height":130});
															thumbnails[2879401] = clik.newPhoto({"id":2879401,"src":"bust 450_thumb.jpg","galleries_id":444625,"server_id":18,"link":"photo_2879401.html","width":130,"caption":"","height":130});
															thumbnails[2883821] = clik.newPhoto({"id":2883821,"src":"lighthouse 450_thumb.jpg","galleries_id":444624,"server_id":18,"link":"photo_2883821.html","width":130,"caption":"The Lighthouse","height":130});
															thumbnails[3034670] = clik.newPhoto({"id":3034670,"src":"daisies450_thumb.jpg","galleries_id":444623,"server_id":18,"link":"photo_3034670.html","width":130,"caption":"Daisies","height":130});
															thumbnails[3284511] = clik.newPhoto({"id":3284511,"src":"blackrock cottage 600x375_thumb.jpg","galleries_id":444617,"server_id":18,"link":"photo_3284511.html","width":130,"caption":"Blackrock Cottage","height":130});
															thumbnails[3578595] = clik.newPhoto({"id":3578595,"src":"millenium_bridge3_thumb.jpg","galleries_id":444621,"server_id":18,"link":"photo_3578595.html","width":130,"caption":"Quayside","height":130});
															thumbnails[3578626] = clik.newPhoto({"id":3578626,"src":"lake2_thumb.jpg","galleries_id":444617,"server_id":18,"link":"photo_3578626.html","width":130,"caption":"Scottish Loch","height":130});
															thumbnails[3578664] = clik.newPhoto({"id":3578664,"src":"tyne_bridge_and_sage_thumb.jpg","galleries_id":444624,"server_id":18,"link":"photo_3578664.html","width":130,"caption":"","height":130});
															thumbnails[3578710] = clik.newPhoto({"id":3578710,"src":"angelofthenorth4_thumb.jpg","galleries_id":444625,"server_id":18,"link":"photo_3578710.html","width":130,"caption":"","height":130});
															thumbnails[3580875] = clik.newPhoto({"id":3580875,"src":"London_eye5_thumb.jpg","galleries_id":444621,"server_id":18,"link":"photo_3580875.html","width":130,"caption":"Beneath The Eye","height":130});
															thumbnails[3580946] = clik.newPhoto({"id":3580946,"src":"penshaw_monument_distance2d_450_thumb.jpg","galleries_id":444624,"server_id":18,"link":"photo_3580946.html","width":130,"caption":"","height":130});
															thumbnails[3593512] = clik.newPhoto({"id":3593512,"src":"penshaw_monument_distance_thumb.jpg","galleries_id":444624,"server_id":18,"link":"photo_3593512.html","width":130,"caption":"","height":130});
															thumbnails[4717238] = clik.newPhoto({"id":4717238,"src":"eiffel_tower_600_thumb.jpg","galleries_id":444621,"server_id":18,"link":"photo_4717238.html","width":130,"caption":"La Tour Eiffel","height":130});
															thumbnails[4727804] = clik.newPhoto({"id":4727804,"src":"kaprun_church_landscape_thumb.jpg","galleries_id":444624,"server_id":18,"link":"photo_4727804.html","width":130,"caption":"Kaprun Kirche","height":130});
															thumbnails[4727830] = clik.newPhoto({"id":4727830,"src":"angelofthenorth5_thumb.jpg","galleries_id":444625,"server_id":18,"link":"photo_4727830.html","width":130,"caption":"Angel of the North at Sunset","height":130});
															thumbnails[4728032] = clik.newPhoto({"id":4728032,"src":"Head3_thumb.jpg","galleries_id":444625,"server_id":18,"link":"photo_4728032.html","width":130,"caption":"Le Prophète","height":130});
															thumbnails[4728175] = clik.newPhoto({"id":4728175,"src":"Elgin_450_thumb.jpg","galleries_id":444625,"server_id":18,"link":"photo_4728175.html","width":130,"caption":"Elgin Marbles #1","height":130});
															thumbnails[4766221] = clik.newPhoto({"id":4766221,"src":"Wadd_fountain_thumb.jpg","galleries_id":444625,"server_id":18,"link":"photo_4766221.html","width":130,"caption":"Triton and Nereids","height":130});
															thumbnails[4766797] = clik.newPhoto({"id":4766797,"src":"Navel_BW_thumb.jpg","galleries_id":444625,"server_id":18,"link":"photo_4766797.html","width":130,"caption":"Navel","height":130});
															thumbnails[5142305] = clik.newPhoto({"id":5142305,"src":"canary_wharf_small_thumb.jpg","galleries_id":444621,"server_id":18,"link":"photo_5142305.html","width":130,"caption":"Canary Wharf","height":130});
															thumbnails[5347683] = clik.newPhoto({"id":5347683,"src":"my_home_thumb.jpg","galleries_id":444624,"server_id":18,"link":"photo_5347683.html","width":130,"caption":"My Home On Lake Tonle Sap","height":130});
															thumbnails[5721538] = clik.newPhoto({"id":5721538,"src":"A_Face_at_Bayon_thumb.jpg","galleries_id":444624,"server_id":18,"link":"photo_5721538.html","width":130,"caption":"A Face At Bayon","height":130});
															thumbnails[5789116] = clik.newPhoto({"id":5789116,"src":"Looking_over_Zeller_See_thumb.jpg","galleries_id":444617,"server_id":18,"link":"photo_5789116.html","width":130,"caption":"Looking Over Zeller See","height":130});
															thumbnails[6855779] = clik.newPhoto({"id":6855779,"src":"my_home_7E702D4D-1D09-001F-99A7AD66E3471373_thumb.jpg","galleries_id":444624,"server_id":18,"link":"photo_6855779.html","width":130,"caption":"","height":130});
															thumbnails[6855806] = clik.newPhoto({"id":6855806,"src":"Angkor_Wat_-_1_thumb.jpg","galleries_id":444624,"server_id":18,"link":"photo_6855806.html","width":130,"caption":"The Road To Angkor Wat","height":130});
															thumbnails[6860390] = clik.newPhoto({"id":6860390,"src":"forbidden_Fruit_thumb.jpg","galleries_id":444625,"server_id":18,"link":"photo_6860390.html","width":130,"caption":"Forbidden Fruit","height":130});
															thumbnails[7100345] = clik.newPhoto({"id":7100345,"src":"angkor_wat_dawn2_thumb.jpg","galleries_id":444624,"server_id":18,"link":"photo_7100345.html","width":130,"caption":"Sunrise Over Angkor Wat","height":130});
															thumbnails[7112783] = clik.newPhoto({"id":7112783,"src":"Angkor_Thom_South_Gate_II_thumb.jpg","galleries_id":444624,"server_id":18,"link":"photo_7112783.html","width":130,"caption":"Angkor Thom","height":130});
															thumbnails[7114216] = clik.newPhoto({"id":7114216,"src":"bayon_thumb.jpg","galleries_id":444624,"server_id":18,"link":"photo_7114216.html","width":130,"caption":"Bayon Temple","height":130});
															thumbnails[7126818] = clik.newPhoto({"id":7126818,"src":"Battersea1_thumb.jpg","galleries_id":444621,"server_id":18,"link":"photo_7126818.html","width":130,"caption":"The Power Station","height":130});
															thumbnails[7126823] = clik.newPhoto({"id":7126823,"src":"Battersea2_thumb.jpg","galleries_id":444621,"server_id":18,"link":"photo_7126823.html","width":130,"caption":"Battersea Power Station","height":130});
															thumbnails[7126848] = clik.newPhoto({"id":7126848,"src":"louvre2_130_thumb.jpg","galleries_id":444621,"server_id":18,"link":"photo_7126848.html","width":130,"caption":"The Louvre Under Stormy Skies","height":130});
															thumbnails[7126858] = clik.newPhoto({"id":7126858,"src":"The_Olive_Grove_thumb.jpg","galleries_id":444617,"server_id":18,"link":"photo_7126858.html","width":130,"caption":"The Olive Grove","height":130});
															thumbnails[7315145] = clik.newPhoto({"id":7315145,"src":"eiffel_thru_peace_thumb.jpg","galleries_id":444621,"server_id":18,"link":"photo_7315145.html","width":130,"caption":"","height":130});
															thumbnails[7316693] = clik.newPhoto({"id":7316693,"src":"sacre_coeur_thumb.jpg","galleries_id":444621,"server_id":18,"link":"photo_7316693.html","width":130,"caption":"La Sacre Coeur","height":130});
															thumbnails[7316696] = clik.newPhoto({"id":7316696,"src":"Eiffel_Texture_thumb.jpg","galleries_id":444621,"server_id":18,"link":"photo_7316696.html","width":130,"caption":"La Tour","height":130});
															thumbnails[7377717] = clik.newPhoto({"id":7377717,"src":"lanzarotes_lunar_landscape_thumb.jpg","galleries_id":444617,"server_id":18,"link":"photo_7377717.html","width":130,"caption":"Lunar Landscape","height":130});
															thumbnails[7377733] = clik.newPhoto({"id":7377733,"src":"lanzarote_sunburst_thumb.jpg","galleries_id":444617,"server_id":18,"link":"photo_7377733.html","width":130,"caption":"Lanzarote Sunburst","height":130});
															thumbnails[7377817] = clik.newPhoto({"id":7377817,"src":"angkor_wat_2_thumb.jpg","galleries_id":444624,"server_id":18,"link":"photo_7377817.html","width":130,"caption":"Dawn Over Angkor Wat","height":130});
															thumbnails[7380179] = clik.newPhoto({"id":7380179,"src":"Garden_of_Serenity_thumb.jpg","galleries_id":444624,"server_id":18,"link":"photo_7380179.html","width":130,"caption":"Garden of Tranquility","height":130});
															thumbnails[7380186] = clik.newPhoto({"id":7380186,"src":"kitzandsee_thumb.jpg","galleries_id":444617,"server_id":18,"link":"photo_7380186.html","width":130,"caption":"Towards The Kitzsteinhorn","height":130});
															thumbnails[7380202] = clik.newPhoto({"id":7380202,"src":"Illa_de_sa_Caleta_thumb.jpg","galleries_id":444617,"server_id":18,"link":"photo_7380202.html","width":130,"caption":"Illa De Se Caleta","height":130});
															thumbnails[7380244] = clik.newPhoto({"id":7380244,"src":"Island_thumb.jpg","galleries_id":444617,"server_id":18,"link":"photo_7380244.html","width":130,"caption":"Island","height":130});
															thumbnails[7380265] = clik.newPhoto({"id":7380265,"src":"Belvedere_thumb.jpg","galleries_id":444624,"server_id":18,"link":"photo_7380265.html","width":130,"caption":"The Belvedere Wien","height":130});
															thumbnails[7380270] = clik.newPhoto({"id":7380270,"src":"Brighter_Days_in_Zell_am_See_thumb.jpg","galleries_id":444617,"server_id":18,"link":"photo_7380270.html","width":130,"caption":"Brighter Days In Zell Am See","height":130});
															thumbnails[7380467] = clik.newPhoto({"id":7380467,"src":"london_skyline_thumb.jpg","galleries_id":444621,"server_id":18,"link":"photo_7380467.html","width":130,"caption":"London Skline","height":130});
															thumbnails[7381251] = clik.newPhoto({"id":7381251,"src":"Norfolk_Winter_LAndscape_thumb.jpg","galleries_id":444617,"server_id":18,"link":"photo_7381251.html","width":130,"caption":"A Norfolk Winter Landscape","height":130});
															thumbnails[7391401] = clik.newPhoto({"id":7391401,"src":"St_Pauls_at_Dusk_thumb.jpg","galleries_id":444621,"server_id":18,"link":"photo_7391401.html","width":130,"caption":"St Paul's At Dusk","height":130});
															thumbnails[7391406] = clik.newPhoto({"id":7391406,"src":"St_Pauls_and_Bridge_thumb.jpg","galleries_id":444621,"server_id":18,"link":"photo_7391406.html","width":130,"caption":"St Paul's Cathedral At Night","height":130});
															thumbnails[7611762] = clik.newPhoto({"id":7611762,"src":"iris3_thumb.jpg","galleries_id":444623,"server_id":18,"link":"photo_7611762.html","width":130,"caption":"Iris","height":130});
															thumbnails[7612057] = clik.newPhoto({"id":7612057,"src":"St_Pauls_at_Dusk1_BW_thumb.jpg","galleries_id":444621,"server_id":18,"link":"photo_7612057.html","width":130,"caption":"St Paul's Cathedral","height":130});
															thumbnails[8380939] = clik.newPhoto({"id":8380939,"src":"flower3_thumb.jpg","galleries_id":444623,"server_id":18,"link":"photo_8380939.html","width":130,"caption":"Solaris","height":130});
															thumbnails[8380941] = clik.newPhoto({"id":8380941,"src":"flower2_thumb.jpg","galleries_id":444623,"server_id":18,"link":"photo_8380941.html","width":130,"caption":"Flower Still Life #1","height":130});
															thumbnails[8380961] = clik.newPhoto({"id":8380961,"src":"flower4_thumb.jpg","galleries_id":444623,"server_id":18,"link":"photo_8380961.html","width":130,"caption":"Anemone#1","height":130});
															thumbnails[8380990] = clik.newPhoto({"id":8380990,"src":"flower5_thumb.jpg","galleries_id":444623,"server_id":18,"link":"photo_8380990.html","width":130,"caption":"Anemone #2","height":130});
															thumbnails[8381007] = clik.newPhoto({"id":8381007,"src":"hommage_toEiffel_thumb.jpg","galleries_id":444621,"server_id":18,"link":"photo_8381007.html","width":130,"caption":"Homage to Eiffel","height":130});
															thumbnails[8502173] = clik.newPhoto({"id":8502173,"src":"mother_and_child_thumb.jpg","galleries_id":444624,"server_id":18,"link":"photo_8502173.html","width":130,"caption":"","height":130});
															thumbnails[8502179] = clik.newPhoto({"id":8502179,"src":"angkor_wat_carving_thumb.jpg","galleries_id":444624,"server_id":18,"link":"photo_8502179.html","width":130,"caption":"","height":130});
															thumbnails[8510984] = clik.newPhoto({"id":8510984,"src":"Cheminée_daération_-_Raymond_Moretti_thumb.jpg","galleries_id":444621,"server_id":18,"link":"photo_8510984.html","width":130,"caption":"Candy Stripe","height":130});
															thumbnails[2877406] = clik.newPhoto({"id":2877406,"src":"jamie 600x375_thumb.jpg","galleries_id":444625,"server_id":18,"link":"photo_2877406.html","width":130,"caption":"Jamie","height":130});
															thumbnails[4716929] = clik.newPhoto({"id":4716929,"src":"apples_and_bowl_600_thumb.jpg","galleries_id":444625,"server_id":18,"link":"photo_4716929.html","width":130,"caption":"Apples & Bowl","height":130});
															thumbnails[8502953] = clik.newPhoto({"id":8502953,"src":"waterfall_bad_gastein_thumb.jpg","galleries_id":444617,"server_id":18,"link":"photo_8502953.html","width":130,"caption":"","height":130});
															thumbnails[3590820] = clik.newPhoto({"id":3590820,"src":"angel_back_thumb.jpg","galleries_id":444625,"server_id":18,"link":"photo_3590820.html","width":130,"caption":"An Angel in Hell","height":130});
															thumbnails[3580990] = clik.newPhoto({"id":3580990,"src":"London_eye6_thumb.jpg","galleries_id":444621,"server_id":18,"link":"photo_3580990.html","width":130,"caption":"The London Eye","height":130});
															thumbnails[4723955] = clik.newPhoto({"id":4723955,"src":"Eiffel_BW_thumb.jpg","galleries_id":444621,"server_id":18,"link":"photo_4723955.html","width":130,"caption":"Eiffel Tower Section","height":130});
															thumbnails[3577907] = clik.newPhoto({"id":3577907,"src":"big_ben_3_thumb.jpg","galleries_id":444621,"server_id":18,"link":"photo_3577907.html","width":130,"caption":"2:30 London","height":130});
															thumbnails[4727819] = clik.newPhoto({"id":4727819,"src":"lake_square_600_thumb.jpg","galleries_id":444617,"server_id":18,"link":"photo_4727819.html","width":130,"caption":"Haze Over Starnberger See","height":130});
															thumbnails[3578076] = clik.newPhoto({"id":3578076,"src":"buck_palace_600_thumb.jpg","galleries_id":444621,"server_id":18,"link":"photo_3578076.html","width":130,"caption":"It's Grey In London","height":130});
															thumbnails[3577931] = clik.newPhoto({"id":3577931,"src":"London_eye1_600x375_thumb.jpg","galleries_id":444621,"server_id":18,"link":"photo_3577931.html","width":130,"caption":"The Eye","height":130});
															thumbnails[3577888] = clik.newPhoto({"id":3577888,"src":"big_ben_thumb.jpg","galleries_id":444621,"server_id":18,"link":"photo_3577888.html","width":130,"caption":"Parliament","height":130});
															thumbnails[3583896] = clik.newPhoto({"id":3583896,"src":"millenium_bridge600_thumb.jpg","galleries_id":444624,"server_id":18,"link":"photo_3583896.html","width":130,"caption":"Over The Tyne","height":130});
															thumbnails[3578655] = clik.newPhoto({"id":3578655,"src":"London_eye3_thumb.jpg","galleries_id":444621,"server_id":18,"link":"photo_3578655.html","width":130,"caption":"Ten Pods on an Eye","height":130});
															thumbnails[3577865] = clik.newPhoto({"id":3577865,"src":"big_ben_4_thumb.jpg","galleries_id":444621,"server_id":18,"link":"photo_3577865.html","width":130,"caption":"","height":130});
															thumbnails[3578398] = clik.newPhoto({"id":3578398,"src":"London_eye2_thumb.jpg","galleries_id":444621,"server_id":18,"link":"photo_3578398.html","width":130,"caption":"London Eye","height":130});
															thumbnails[2870088] = clik.newPhoto({"id":2870088,"src":"big ben 450_thumb.jpg","galleries_id":444621,"server_id":18,"link":"photo_2870088.html","width":130,"caption":"Clock Face","height":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[444621] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Cityscapes","link":"Fine_Art_Photography_444621.html","maxRecords":0.0,"photoIDs":[2875219.0,3578595.0,3580875.0,4717238.0,5142305.0,7126818.0,7126823.0,7126848.0,7315145.0,7316693.0,7316696.0,7380467.0,7391401.0,7391406.0,7612057.0,8381007.0,8510984.0,3580990.0,4723955.0,3577907.0,3578076.0,3577931.0,3577888.0,3578655.0,3577865.0,3578398.0,2870088.0],"skipIndex":0,"section_code":"Fine_Art_Photography","featured_images":"8510984,8381007,7391406,7391401,7316696,7316693,3578595,3578076","id":444621,"singleSection":false});				  						galleries[444623] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Florals","link":"Fine_Art_Photography_444623.html","maxRecords":0.0,"photoIDs":[3034670.0,7611762.0,8380939.0,8380941.0,8380961.0,8380990.0],"skipIndex":0,"section_code":"Fine_Art_Photography","featured_images":"8380990,8380961,8380941,8380939,3034670","id":444623,"singleSection":false});				  						galleries[444617] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Landscapes","link":"Fine_Art_Photography_444617.html","maxRecords":0.0,"photoIDs":[2870079.0,2870089.0,3284511.0,3578626.0,5789116.0,7126858.0,7377717.0,7377733.0,7380186.0,7380202.0,7380244.0,7380270.0,7381251.0,8502953.0,4727819.0],"skipIndex":0,"section_code":"Fine_Art_Photography","featured_images":"7380270,7380244,7380202,7377733,7377717,3578626","id":444617,"singleSection":false});				  						galleries[444625] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Still Life","link":"Fine_Art_Photography_444625.html","maxRecords":0.0,"photoIDs":[2875094.0,2879401.0,3578710.0,4727830.0,4728032.0,4728175.0,4766221.0,4766797.0,6860390.0,2877406.0,4716929.0,3590820.0],"skipIndex":0,"section_code":"Fine_Art_Photography","featured_images":"6860390,4766221,4727830","id":444625,"singleSection":false});				  						galleries[444624] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Travels","link":"Fine_Art_Photography_444624.html","maxRecords":0.0,"photoIDs":[2883821.0,3578664.0,3580946.0,3593512.0,4727804.0,5347683.0,5721538.0,6855779.0,6855806.0,7100345.0,7112783.0,7114216.0,7377817.0,7380179.0,7380265.0,8502173.0,8502179.0,3583896.0],"skipIndex":0,"section_code":"Fine_Art_Photography","featured_images":"8502173,7377817,7112783,7100345,2883821","id":444624,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[238074] = '8502173,8381007,8380990,8380961,8380941,8380939,7612057,7611762,7391406,7380467,7380270,7380265,7380202,7380179,7377817,7377733,7377717,7316696,7316693,7315145,7126858,7126848,7126823,7126818,7114216,7112783,7100345,6860390,6855806,6855779,5789116,5721538,5347683,5142305,4728175,4727830,4717238,3578664,3578626,3284511,2883821,2870089,2870079,4716929,3590820,3580990,3577907,4727819,3578076,3577931,3577888,3578655';
imageSets[1] = '8381007,8380961,8380941,8380939,7611762,7391401,7381251,7380202,7380186,7380179,7112783,5789116,4727804,4716929,3590820,3580990,3578076,3583896';
imageSets[2] = '8510984,8502173,8381007,8380990,8380961,8380941,8380939,7391406,7391401,7380270,7380244,7380202,7377817,7377733,7377717,7316696,7316693,7112783,7100345,6860390,4766221,4727830,3578626,3578595,3034670,2883821,3578076';
imageSets[3] = '3593512';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/davidhenderson/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/davidhenderson/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/davidhenderson/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/davidhenderson/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/davidhenderson/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/davidhenderson/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/davidhenderson/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/davidhenderson/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/davidhenderson/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/davidhenderson/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/davidhenderson/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/davidhenderson/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/davidhenderson/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/davidhenderson/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/davidhenderson/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/davidhenderson/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/davidhenderson/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/davidhenderson/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/davidhenderson/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/davidhenderson/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/davidhenderson/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/davidhenderson/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/davidhenderson/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/davidhenderson/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/davidhenderson/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/davidhenderson/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/davidhenderson/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 += 'Fine_Art_Photography.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 && 'Fine_Art_Photography' != '') {
					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 = '19SIXTY3 Fine Art 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.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 this print online:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else if (this.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
		 									temp += '<select class="paymentlink" name="payment_options_id" onchange="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
		else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
											temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="DAVIDHENDERSON">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

