window.thumbnails = {};
															thumbnails[6051647] = clik.newPhoto({"id":6051647,"src":"website1_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Harriet Muller","height":162});
															thumbnails[6051648] = clik.newPhoto({"id":6051648,"src":"website3_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Harriet Muller Artist","height":87});
															thumbnails[6642662] = clik.newPhoto({"id":6642662,"src":"article_pic_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"St Albans Review Article","height":122});
															thumbnails[6805343] = clik.newPhoto({"id":6805343,"src":"southlondonpress_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"South London Press","height":44});
															thumbnails[6832564] = clik.newPhoto({"id":6832564,"src":"Me_painting_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":195});
															thumbnails[6832591] = clik.newPhoto({"id":6832591,"src":"Me_painting2_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Me in the Portico","height":98});
															thumbnails[6832620] = clik.newPhoto({"id":6832620,"src":"Portico1_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":98});
															thumbnails[6832623] = clik.newPhoto({"id":6832623,"src":"portico2_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":64});
															thumbnails[6832624] = clik.newPhoto({"id":6832624,"src":"portico3_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":98});
															thumbnails[6832628] = clik.newPhoto({"id":6832628,"src":"portico5_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":98});
															thumbnails[6832633] = clik.newPhoto({"id":6832633,"src":"Me_painting3_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":174});
															thumbnails[8967052] = clik.newPhoto({"id":8967052,"src":"Seven_odes_flyer_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":100});
															thumbnails[9166497] = clik.newPhoto({"id":9166497,"src":"exhib_website_1_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":174});
															thumbnails[9166498] = clik.newPhoto({"id":9166498,"src":"Me_and_Toby_1_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":98});
															thumbnails[6039002] = clik.newPhoto({"id":6039002,"src":"Book_Cover_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":64});
															thumbnails[8749255] = clik.newPhoto({"id":8749255,"src":"flyer_vistaprint_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":100});
															thumbnails[6034497] = clik.newPhoto({"id":6034497,"src":"Mia_and_Jodee_thumb.jpg","galleries_id":336836,"server_id":5,"link":"photo_6034497.html","width":130,"caption":"Mia and Jodee","height":98});
															thumbnails[6034507] = clik.newPhoto({"id":6034507,"src":"Krystelle_Kees_thumb.jpg","galleries_id":336836,"server_id":5,"link":"photo_6034507.html","width":130,"caption":"Krystelle Kees' Facebook Profile Picture","height":174});
															thumbnails[6034515] = clik.newPhoto({"id":6034515,"src":"Friend_or_Foe_thumb.jpg","galleries_id":336836,"server_id":5,"link":"photo_6034515.html","width":130,"caption":"Friend or Foe?","height":96});
															thumbnails[6034733] = clik.newPhoto({"id":6034733,"src":"Echeveria_thumb.jpg","galleries_id":339306,"server_id":5,"link":"photo_6034733.html","width":130,"caption":"Echeveria","height":181});
															thumbnails[6627674] = clik.newPhoto({"id":6627674,"src":"Fish_website_thumb.jpg","galleries_id":339306,"server_id":5,"link":"photo_6627674.html","width":130,"caption":"Fish","height":163});
															thumbnails[6627676] = clik.newPhoto({"id":6627676,"src":"Pink_Rose_thumb.jpg","galleries_id":339306,"server_id":5,"link":"photo_6627676.html","width":130,"caption":"Pink Rose","height":98});
															thumbnails[6627699] = clik.newPhoto({"id":6627699,"src":"Bluebells_website_thumb.jpg","galleries_id":339306,"server_id":5,"link":"photo_6627699.html","width":130,"caption":"Bluebell Woods, Sandridge","height":105});
															thumbnails[6832541] = clik.newPhoto({"id":6832541,"src":"Christmas_cactus_thumb.JPG","galleries_id":339306,"server_id":5,"link":"photo_6832541.html","width":130,"caption":"Christmas Cactus","height":174});
															thumbnails[6832757] = clik.newPhoto({"id":6832757,"src":"tulips_thumb.jpg","galleries_id":339306,"server_id":5,"link":"photo_6832757.html","width":130,"caption":"","height":168});
															thumbnails[6832760] = clik.newPhoto({"id":6832760,"src":"verulamium_thumb.jpg","galleries_id":339306,"server_id":5,"link":"photo_6832760.html","width":130,"caption":"","height":93});
															thumbnails[6832764] = clik.newPhoto({"id":6832764,"src":"swan_thumb.jpg","galleries_id":339306,"server_id":5,"link":"photo_6832764.html","width":130,"caption":"","height":92});
															thumbnails[7380492] = clik.newPhoto({"id":7380492,"src":"Harwich_Lighthouse_thumb.jpg","galleries_id":339306,"server_id":5,"link":"photo_7380492.html","width":130,"caption":"","height":109});
															thumbnails[7626161] = clik.newPhoto({"id":7626161,"src":"conversations_-small_thumb.jpg","galleries_id":339306,"server_id":5,"link":"photo_7626161.html","width":130,"caption":"Conversations","height":99});
															thumbnails[8399537] = clik.newPhoto({"id":8399537,"src":"Remnant_of_an_Illness_thumb.jpg","galleries_id":427069,"server_id":5,"link":"photo_8399537.html","width":130,"caption":"Remnant of an Illness","height":105});
															thumbnails[9137006] = clik.newPhoto({"id":9137006,"src":"golden_ode_4-mailchimp_1_thumb.jpg","galleries_id":482381,"server_id":5,"link":"photo_9137006.html","width":130,"caption":"Hareth - Fair Asoma","height":178});
															thumbnails[9137017] = clik.newPhoto({"id":9137017,"src":"Amru3-chimp_1_thumb.jpg","galleries_id":482381,"server_id":5,"link":"photo_9137017.html","width":130,"caption":"Amru - Warrior","height":245});
															thumbnails[9137206] = clik.newPhoto({"id":9137206,"src":"amriolkais_small_1_thumb.jpg","galleries_id":482381,"server_id":5,"link":"photo_9137206.html","width":130,"caption":"Amriolkais","height":132});
															thumbnails[9137211] = clik.newPhoto({"id":9137211,"src":"Antara_Resting_Camel_1_thumb.jpg","galleries_id":482381,"server_id":5,"link":"photo_9137211.html","width":130,"caption":"Antara - Resting Camel","height":69});
															thumbnails[9137237] = clik.newPhoto({"id":9137237,"src":"Antara_BK_1_thumb.jpg","galleries_id":482381,"server_id":5,"link":"photo_9137237.html","width":130,"caption":"","height":97});
															thumbnails[9137248] = clik.newPhoto({"id":9137248,"src":"Hareth_camels_1_thumb.jpg","galleries_id":482381,"server_id":5,"link":"photo_9137248.html","width":130,"caption":"Hareth - Camels","height":95});
															thumbnails[7923916] = clik.newPhoto({"id":7923916,"src":"Vanishing_Point_thumb.jpg","galleries_id":427069,"server_id":5,"link":"photo_7923916.html","width":130,"caption":"Vanishing Point","height":320});
															thumbnails[8876957] = clik.newPhoto({"id":8876957,"src":"I_Love_80s_thumb.jpg","galleries_id":466974,"server_id":5,"link":"photo_8876957.html","width":130,"caption":"I Love 80s","height":170});
															thumbnails[6034634] = clik.newPhoto({"id":6034634,"src":"Sway_thumb.jpg","galleries_id":336837,"server_id":5,"link":"photo_6034634.html","width":130,"caption":"Sway","height":129});
															thumbnails[6032622] = clik.newPhoto({"id":6032622,"src":"Infinity_thumb.jpg","galleries_id":339155,"server_id":5,"link":"photo_6032622.html","width":130,"caption":"Infinity","height":163});
															thumbnails[7369114] = clik.newPhoto({"id":7369114,"src":"A_Narrative_Shared_thumb.jpg","galleries_id":336837,"server_id":5,"link":"photo_7369114.html","width":130,"caption":"A  Narrative Shared","height":186});
															thumbnails[9137060] = clik.newPhoto({"id":9137060,"src":"golden_ode3-mail_chimp_1_thumb.jpg","galleries_id":482381,"server_id":5,"link":"photo_9137060.html","width":130,"caption":"Hareth - Dark Horse of the Sons of Aus","height":121});
															thumbnails[9166265] = clik.newPhoto({"id":9166265,"src":"Bluebells_website_1_thumb.jpg","galleries_id":339306,"server_id":5,"link":"photo_9166265.html","width":130,"caption":"Bluebells","height":178});
															thumbnails[6032608] = clik.newPhoto({"id":6032608,"src":"Still_thumb.jpg","galleries_id":339155,"server_id":5,"link":"photo_6032608.html","width":130,"caption":"Still","height":103});
															thumbnails[6032625] = clik.newPhoto({"id":6032625,"src":"Porin_thumb.jpg","galleries_id":339155,"server_id":5,"link":"photo_6032625.html","width":130,"caption":"Porin","height":93});
															thumbnails[6832773] = clik.newPhoto({"id":6832773,"src":"finally_thumb.jpg","galleries_id":336837,"server_id":5,"link":"photo_6832773.html","width":130,"caption":"Finally Free","height":171});
															thumbnails[6968889] = clik.newPhoto({"id":6968889,"src":"Self-portrait-small1_thumb.jpg","galleries_id":427069,"server_id":5,"link":"photo_6968889.html","width":130,"caption":"Self-portrait","height":105});
															thumbnails[8876962] = clik.newPhoto({"id":8876962,"src":"Phone_thumb.jpg","galleries_id":466974,"server_id":5,"link":"photo_8876962.html","width":130,"caption":"Phone","height":177});
															thumbnails[8876974] = clik.newPhoto({"id":8876974,"src":"Amy_Daydream_thumb.jpg","galleries_id":466974,"server_id":5,"link":"photo_8876974.html","width":130,"caption":"Amy Daydream","height":169});
															thumbnails[6032410] = clik.newPhoto({"id":6032410,"src":"Untitled_thumb.jpg","galleries_id":339155,"server_id":5,"link":"photo_6032410.html","width":130,"caption":"Untitled","height":163});
															thumbnails[6032629] = clik.newPhoto({"id":6032629,"src":"Leap_Of_Faith_thumb.jpg","galleries_id":339155,"server_id":5,"link":"photo_6032629.html","width":130,"caption":"Leap of Faith","height":130});
															thumbnails[6832754] = clik.newPhoto({"id":6832754,"src":"aftermath_thumb.jpg","galleries_id":336837,"server_id":5,"link":"photo_6832754.html","width":130,"caption":"Aftermath of a Dictator","height":163});
															thumbnails[8876977] = clik.newPhoto({"id":8876977,"src":"Angry_Amy_thumb.jpg","galleries_id":466974,"server_id":5,"link":"photo_8876977.html","width":130,"caption":"Angry Amy","height":173});
															thumbnails[6032558] = clik.newPhoto({"id":6032558,"src":"Dont_Stop_Believing_thumb.jpg","galleries_id":339155,"server_id":5,"link":"photo_6032558.html","width":130,"caption":"Don't Stop Believing","height":103});
															thumbnails[6032561] = clik.newPhoto({"id":6032561,"src":"When_I_Was_18_thumb.jpg","galleries_id":339155,"server_id":5,"link":"photo_6032561.html","width":130,"caption":"When I Was 18","height":129});
															thumbnails[6832553] = clik.newPhoto({"id":6832553,"src":"Clare_thumb.jpg","galleries_id":336837,"server_id":5,"link":"photo_6832553.html","width":130,"caption":"Clare","height":168});
															thumbnails[8876984] = clik.newPhoto({"id":8876984,"src":"Amy_and_Prince__thumb.jpg","galleries_id":466974,"server_id":5,"link":"photo_8876984.html","width":130,"caption":"Amy's Prince","height":174});
															thumbnails[6034639] = clik.newPhoto({"id":6034639,"src":"Strawberry_Beret_thumb.jpg","galleries_id":336837,"server_id":5,"link":"photo_6034639.html","width":130,"caption":"Strawberry Beret","height":169});
															thumbnails[6627666] = clik.newPhoto({"id":6627666,"src":"Shallow_Waters_thumb.jpg","galleries_id":339306,"server_id":5,"link":"photo_6627666.html","width":130,"caption":"Shallow Waters","height":86});
															thumbnails[8876990] = clik.newPhoto({"id":8876990,"src":"Amy_Tea_thumb.jpg","galleries_id":466974,"server_id":5,"link":"photo_8876990.html","width":130,"caption":"Amy Tea","height":175});
															thumbnails[6032523] = clik.newPhoto({"id":6032523,"src":"Little_Miracles_thumb.jpg","galleries_id":339155,"server_id":5,"link":"photo_6032523.html","width":130,"caption":"Little Miracles","height":130});
															thumbnails[6627671] = clik.newPhoto({"id":6627671,"src":"The_Big_Fish_thumb.jpg","galleries_id":339306,"server_id":5,"link":"photo_6627671.html","width":130,"caption":"The Big Fish","height":195});
															thumbnails[6832549] = clik.newPhoto({"id":6832549,"src":"Blue_Eyes_thumb.jpg","galleries_id":336837,"server_id":5,"link":"photo_6832549.html","width":130,"caption":"Blue Eyes","height":161});
															thumbnails[8877032] = clik.newPhoto({"id":8877032,"src":"Oh_So_Jel_Oh_thumb.jpg","galleries_id":466974,"server_id":5,"link":"photo_8877032.html","width":130,"caption":"Oh So Jel Oh","height":173});
															thumbnails[8877085] = clik.newPhoto({"id":8877085,"src":"Next_Big_Thing_thumb.jpg","galleries_id":466974,"server_id":5,"link":"photo_8877085.html","width":130,"caption":"Next Big Thing","height":175});
															thumbnails[6032525] = clik.newPhoto({"id":6032525,"src":"The_Great_Escape_thumb.jpg","galleries_id":339155,"server_id":5,"link":"photo_6032525.html","width":130,"caption":"The Great Escape","height":104});
															thumbnails[6832770] = clik.newPhoto({"id":6832770,"src":"romeo_thumb.jpg","galleries_id":336837,"server_id":5,"link":"photo_6832770.html","width":130,"caption":"ROMEO AND JULIET","height":102});
															thumbnails[8877095] = clik.newPhoto({"id":8877095,"src":"Amy_No_Makeup_thumb.jpg","galleries_id":466974,"server_id":5,"link":"photo_8877095.html","width":130,"caption":"Amy No Make-Up","height":175});
															thumbnails[6032492] = clik.newPhoto({"id":6032492,"src":"Night_Swimming_thumb.jpg","galleries_id":339155,"server_id":5,"link":"photo_6032492.html","width":130,"caption":"Night Swimming","height":188});
															thumbnails[8877099] = clik.newPhoto({"id":8877099,"src":"Fourth_Shut_Up_thumb.jpg","galleries_id":466974,"server_id":5,"link":"photo_8877099.html","width":130,"caption":"Fourth - Shut Up!","height":174});
															thumbnails[6032594] = clik.newPhoto({"id":6032594,"src":"My_Story_thumb.jpg","galleries_id":339155,"server_id":5,"link":"photo_6032594.html","width":130,"caption":"My Story","height":129});
															thumbnails[8877100] = clik.newPhoto({"id":8877100,"src":"All_About_The_Childs_thumb.jpg","galleries_id":466974,"server_id":5,"link":"photo_8877100.html","width":130,"caption":"All About The Childs","height":169});
															thumbnails[6032512] = clik.newPhoto({"id":6032512,"src":"Sydney_thumb.jpg","galleries_id":339155,"server_id":5,"link":"photo_6032512.html","width":130,"caption":"Sydney","height":104});
															thumbnails[8877114] = clik.newPhoto({"id":8877114,"src":"Just_Reem_thumb.jpg","galleries_id":466974,"server_id":5,"link":"photo_8877114.html","width":130,"caption":"Just Reem","height":179});
															thumbnails[6032568] = clik.newPhoto({"id":6032568,"src":"Farewell_thumb.jpg","galleries_id":339155,"server_id":5,"link":"photo_6032568.html","width":130,"caption":"Farewell","height":186});
															thumbnails[6032552] = clik.newPhoto({"id":6032552,"src":"Great_North_Run_thumb.jpg","galleries_id":339155,"server_id":5,"link":"photo_6032552.html","width":130,"caption":"Great North Run","height":94});
															thumbnails[6032520] = clik.newPhoto({"id":6032520,"src":"Turning_Point_thumb.jpg","galleries_id":339155,"server_id":5,"link":"photo_6032520.html","width":130,"caption":"Turning Point","height":91});
															thumbnails[6032515] = clik.newPhoto({"id":6032515,"src":"Italian_Farmhouse_thumb.jpg","galleries_id":339155,"server_id":5,"link":"photo_6032515.html","width":130,"caption":"Italian Farmhouse","height":163});
															thumbnails[6032510] = clik.newPhoto({"id":6032510,"src":"Orca_thumb.jpg","galleries_id":339155,"server_id":5,"link":"photo_6032510.html","width":130,"caption":"Orca","height":163});
															thumbnails[6032494] = clik.newPhoto({"id":6032494,"src":"Eye_Of_The_Storm_thumb.jpg","galleries_id":339155,"server_id":5,"link":"photo_6032494.html","width":130,"caption":"Eye of the Storm","height":131});
															thumbnails[6032476] = clik.newPhoto({"id":6032476,"src":"Minerva_thumb.jpg","galleries_id":339155,"server_id":5,"link":"photo_6032476.html","width":130,"caption":"Minerva","height":131});
															thumbnails[6032601] = clik.newPhoto({"id":6032601,"src":"Energy_Thief_thumb.jpg","galleries_id":339155,"server_id":5,"link":"photo_6032601.html","width":130,"caption":"Energy Thief","height":161});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[466974] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Surreemism","link":"gallery_466974.html","maxRecords":0.0,"photoIDs":[8876957.0,8876962.0,8876974.0,8876977.0,8876984.0,8876990.0,8877032.0,8877085.0,8877095.0,8877099.0,8877100.0,8877114.0],"skipIndex":0,"section_code":"gallery","featured_images":"8877114,8876984,8876974,8876962,8876957","id":466974,"singleSection":false});				  						galleries[482381] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"The Seven Mu'Allaqat","link":"gallery_482381.html","maxRecords":0.0,"photoIDs":[9137006.0,9137017.0,9137206.0,9137211.0,9137237.0,9137248.0,9137060.0],"skipIndex":0,"section_code":"gallery","featured_images":"9137237,9137060","id":482381,"singleSection":false});				  						galleries[339155] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Changing Lives","link":"gallery_339155.html","maxRecords":0.0,"photoIDs":[6032622.0,6032608.0,6032625.0,6032410.0,6032629.0,6032558.0,6032561.0,6032523.0,6032525.0,6032492.0,6032594.0,6032512.0,6032568.0,6032552.0,6032520.0,6032515.0,6032510.0,6032494.0,6032476.0,6032601.0],"skipIndex":0,"section_code":"gallery","featured_images":6032622.0,"id":339155,"singleSection":false});				  						galleries[336836] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Doll Art","link":"gallery_336836.html","maxRecords":0.0,"photoIDs":[6034497.0,6034507.0,6034515.0],"skipIndex":0,"section_code":"gallery","featured_images":"6034515,6034507,6034497","id":336836,"singleSection":false});				  						galleries[427069] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Not Just a Pretty Face","link":"gallery_427069.html","maxRecords":0.0,"photoIDs":[8399537.0,7923916.0,6968889.0],"skipIndex":0,"section_code":"gallery","featured_images":"8399537,7923916,6968889","id":427069,"singleSection":false});				  						galleries[336837] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Figurative Painting","link":"gallery_336837.html","maxRecords":0.0,"photoIDs":[6034634.0,7369114.0,6832773.0,6832754.0,6832553.0,6034639.0,6832549.0,6832770.0],"skipIndex":0,"section_code":"gallery","featured_images":7369114.0,"id":336837,"singleSection":false});				  						galleries[339306] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Nature","link":"gallery_339306.html","maxRecords":0.0,"photoIDs":[6034733.0,6627674.0,6627676.0,6627699.0,6832541.0,6832757.0,6832760.0,6832764.0,7380492.0,7626161.0,9166265.0,6627666.0,6627671.0],"skipIndex":0,"section_code":"gallery","featured_images":9166265.0,"id":339306,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8876957,9166265,9137060,7369114,6032622,8876962,6968889';
imageSets[2] = '9137237,8399537,8876957,7923916,9166265,9137060,7369114,6032622,8876974,8876962,6968889,8876984,8877114';
imageSets[3] = '6832764,6832760,6832757,6832633,6832628,6832624,6832623,6832620,6832591,6832564,6832541,6805343,6642662,6627699,6627676,6627674,6051648,6051647,6034733,6034515,6034507,6034497,6039002,6034634,6032622,6968889,6832773,6032625,6032608,6832754,6032629,6832553,6032561,6032558,6627666,6034639,6832549,6627671,6032523,6832770,6032525,6032594,6032512,6032568,6032552,6032520,6032515,6032510';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/harrietmuller/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/harrietmuller/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/harrietmuller/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/harrietmuller/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/harrietmuller/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/harrietmuller/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/harrietmuller/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/harrietmuller/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/harrietmuller/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/harrietmuller/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/harrietmuller/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/harrietmuller/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/harrietmuller/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/harrietmuller/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/harrietmuller/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/harrietmuller/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/harrietmuller/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/harrietmuller/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/harrietmuller/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/harrietmuller/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/harrietmuller/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/harrietmuller/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/harrietmuller/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/harrietmuller/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/harrietmuller/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/harrietmuller/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/harrietmuller/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 = 'Harriet Muller Art: ' + 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="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="HARRIETMULLER">';
			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;
	}
}

			

