window.thumbnails = {};
															thumbnails[8892349] = clik.newPhoto({"id":8892349,"src":"websters_xmas_2011_final_b_small_thumb.jpg","galleries_id":297405,"server_id":18,"link":"photo_8892349.html","width":105,"caption":"","height":97});
															thumbnails[4568159] = clik.newPhoto({"id":4568159,"src":"P8221510web_thumb.jpg","galleries_id":264702,"server_id":18,"link":"photo_4568159.html","width":130,"caption":"","height":124});
															thumbnails[4566727] = clik.newPhoto({"id":4566727,"src":"P1310611bweb3_thumb.jpg","galleries_id":264689,"server_id":18,"link":"photo_4566727.html","width":130,"caption":"","height":173});
															thumbnails[6876041] = clik.newPhoto({"id":6876041,"src":"Noni_web_thumb.jpg","galleries_id":375649,"server_id":18,"link":"photo_6876041.html","width":130,"caption":"","height":98});
															thumbnails[8677466] = clik.newPhoto({"id":8677466,"src":"IMG_1657bweb_thumb.jpg","galleries_id":265556,"server_id":18,"link":"photo_8677466.html","width":130,"caption":"","height":98});
															thumbnails[9085366] = clik.newPhoto({"id":9085366,"src":"IMG_2121bweb_1_thumb.jpg","galleries_id":264688,"server_id":18,"link":"photo_9085366.html","width":130,"caption":"","height":87});
															thumbnails[7179064] = clik.newPhoto({"id":7179064,"src":"nonisnoweb_thumb.jpg","galleries_id":375649,"server_id":18,"link":"photo_7179064.html","width":130,"caption":"","height":98});
															thumbnails[7417193] = clik.newPhoto({"id":7417193,"src":"webstersbagdraw_thumb.jpg","galleries_id":297405,"server_id":18,"link":"photo_7417193.html","width":130,"caption":"","height":133});
															thumbnails[8786696] = clik.newPhoto({"id":8786696,"src":"IMG_1678bweb_thumb.jpg","galleries_id":264689,"server_id":18,"link":"photo_8786696.html","width":130,"caption":"","height":98});
															thumbnails[4566329] = clik.newPhoto({"id":4566329,"src":"P1220507web2_thumb.jpg","galleries_id":264702,"server_id":18,"link":"photo_4566329.html","width":130,"caption":"","height":173});
															thumbnails[8677495] = clik.newPhoto({"id":8677495,"src":"IMG_1842web_thumb.jpg","galleries_id":265556,"server_id":18,"link":"photo_8677495.html","width":130,"caption":"","height":98});
															thumbnails[8791052] = clik.newPhoto({"id":8791052,"src":"IMG_2127web_thumb.jpg","galleries_id":264688,"server_id":18,"link":"photo_8791052.html","width":130,"caption":"","height":87});
															thumbnails[4710729] = clik.newPhoto({"id":4710729,"src":"P1010196web_thumb.jpg","galleries_id":265556,"server_id":18,"link":"photo_4710729.html","width":130,"caption":"","height":98});
															thumbnails[7054118] = clik.newPhoto({"id":7054118,"src":"seaweb_thumb.jpg","galleries_id":375649,"server_id":18,"link":"photo_7054118.html","width":130,"caption":"","height":98});
															thumbnails[7496785] = clik.newPhoto({"id":7496785,"src":"IMG_1753web_1_thumb.jpg","galleries_id":264688,"server_id":35,"link":"photo_7496785.html","width":130,"caption":"","height":87});
															thumbnails[7844528] = clik.newPhoto({"id":7844528,"src":"mousematcircleweb1_thumb.jpg","galleries_id":297405,"server_id":18,"link":"photo_7844528.html","width":130,"caption":"","height":128});
															thumbnails[9089439] = clik.newPhoto({"id":9089439,"src":"IMG_1986web_1_thumb.jpg","galleries_id":264689,"server_id":18,"link":"photo_9089439.html","width":130,"caption":"","height":195});
															thumbnails[9089440] = clik.newPhoto({"id":9089440,"src":"IMG_1631web_2_thumb.jpg","galleries_id":264688,"server_id":38,"link":"photo_9089440.html","width":130,"caption":"","height":87});
															thumbnails[9089623] = clik.newPhoto({"id":9089623,"src":"IMG_2139web_1_thumb.jpg","galleries_id":264702,"server_id":18,"link":"photo_9089623.html","width":130,"caption":"","height":98});
															thumbnails[5184618] = clik.newPhoto({"id":5184618,"src":"PA310608webb_1_thumb.jpg","galleries_id":265556,"server_id":18,"link":"photo_5184618.html","width":130,"caption":"","height":98});
															thumbnails[8677483] = clik.newPhoto({"id":8677483,"src":"IMG_1737bweb_thumb.jpg","galleries_id":264689,"server_id":18,"link":"photo_8677483.html","width":130,"caption":"","height":98});
															thumbnails[4566471] = clik.newPhoto({"id":4566471,"src":"P1150451web_thumb.jpg","galleries_id":264702,"server_id":18,"link":"photo_4566471.html","width":130,"caption":"","height":98});
															thumbnails[4567629] = clik.newPhoto({"id":4567629,"src":"PC220071web_thumb.jpg","galleries_id":264688,"server_id":18,"link":"photo_4567629.html","width":130,"caption":"","height":98});
															thumbnails[6876000] = clik.newPhoto({"id":6876000,"src":"Monster_thumb.jpg","galleries_id":375649,"server_id":18,"link":"photo_6876000.html","width":130,"caption":"","height":136});
															thumbnails[7328656] = clik.newPhoto({"id":7328656,"src":"Websters_folder2_thumb.jpg","galleries_id":297405,"server_id":18,"link":"photo_7328656.html","width":130,"caption":"","height":184});
															thumbnails[8677488] = clik.newPhoto({"id":8677488,"src":"IMG_2161bweb_thumb.jpg","galleries_id":264702,"server_id":18,"link":"photo_8677488.html","width":130,"caption":"","height":98});
															thumbnails[8791031] = clik.newPhoto({"id":8791031,"src":"IMG_1711web_thumb.jpg","galleries_id":264689,"server_id":18,"link":"photo_8791031.html","width":130,"caption":"","height":98});
															thumbnails[6596260] = clik.newPhoto({"id":6596260,"src":"PC210047bweb_thumb.jpg","galleries_id":264688,"server_id":18,"link":"photo_6596260.html","width":130,"caption":"","height":98});
															thumbnails[6333305] = clik.newPhoto({"id":6333305,"src":"Flowers_web_DA7F286B-1D09-001F-996677C92AD2E182_thumb.jpg","galleries_id":265556,"server_id":18,"link":"photo_6333305.html","width":130,"caption":"","height":98});
															thumbnails[7137337] = clik.newPhoto({"id":7137337,"src":"_13_0956web_1_thumb.jpg","galleries_id":264702,"server_id":18,"link":"photo_7137337.html","width":130,"caption":"","height":98});
															thumbnails[4566734] = clik.newPhoto({"id":4566734,"src":"P1310600bweb_thumb.jpg","galleries_id":264688,"server_id":18,"link":"photo_4566734.html","width":130,"caption":"","height":98});
															thumbnails[5777463] = clik.newPhoto({"id":5777463,"src":"PA300243web_thumb.jpg","galleries_id":264689,"server_id":18,"link":"photo_5777463.html","width":130,"caption":"","height":173});
															thumbnails[5815564] = clik.newPhoto({"id":5815564,"src":"_27_097379web_1_thumb.jpg","galleries_id":264702,"server_id":18,"link":"photo_5815564.html","width":130,"caption":"","height":223});
															thumbnails[7054107] = clik.newPhoto({"id":7054107,"src":"topwebbannerAWv_thumb.jpg","galleries_id":297405,"server_id":18,"link":"photo_7054107.html","width":130,"caption":"","height":168});
															thumbnails[8937100] = clik.newPhoto({"id":8937100,"src":"webstersbanner-web_D7C26BF3-1EC9-D45B-1C38539C1C70639A_thumb.jpg","galleries_id":297405,"server_id":18,"link":"photo_8937100.html","width":130,"caption":"","height":345});
															thumbnails[4563086] = clik.newPhoto({"id":4563086,"src":"P1150440web2_thumb.jpg","galleries_id":264688,"server_id":18,"link":"photo_4563086.html","width":130,"caption":"","height":98});
															thumbnails[5777478] = clik.newPhoto({"id":5777478,"src":"PA280196bweb_thumb.jpg","galleries_id":264689,"server_id":18,"link":"photo_5777478.html","width":130,"caption":"","height":97});
															thumbnails[7328699] = clik.newPhoto({"id":7328699,"src":"webs_cards_thumb.jpg","galleries_id":297405,"server_id":18,"link":"photo_7328699.html","width":130,"caption":"","height":213});
															thumbnails[5068977] = clik.newPhoto({"id":5068977,"src":"PA300401web_thumb.jpg","galleries_id":264689,"server_id":18,"link":"photo_5068977.html","width":130,"caption":"","height":173});
															thumbnails[5049887] = clik.newPhoto({"id":5049887,"src":"PA280154web2_thumb.jpg","galleries_id":264689,"server_id":18,"link":"photo_5049887.html","width":130,"caption":"","height":98});
															thumbnails[8791019] = clik.newPhoto({"id":8791019,"src":"IMG_2101web_thumb.jpg","galleries_id":264688,"server_id":18,"link":"photo_8791019.html","width":130,"caption":"","height":98});
															thumbnails[5353138] = clik.newPhoto({"id":5353138,"src":"Newsletter_web_page_thumb.jpg","galleries_id":297405,"server_id":18,"link":"photo_5353138.html","width":130,"caption":"","height":184});
															thumbnails[7825104] = clik.newPhoto({"id":7825104,"src":"IMG_1210b_thumb.jpg","galleries_id":264702,"server_id":18,"link":"photo_7825104.html","width":130,"caption":"","height":186});
															thumbnails[8812455] = clik.newPhoto({"id":8812455,"src":"IMG_1543bweb_thumb.jpg","galleries_id":265556,"server_id":18,"link":"photo_8812455.html","width":130,"caption":"","height":87});
															thumbnails[9085272] = clik.newPhoto({"id":9085272,"src":"IMG_1799web_1_thumb.jpg","galleries_id":265556,"server_id":18,"link":"photo_9085272.html","width":130,"caption":"","height":87});
															thumbnails[5289499] = clik.newPhoto({"id":5289499,"src":"PA300337web_thumb.jpg","galleries_id":264689,"server_id":18,"link":"photo_5289499.html","width":130,"caption":"","height":173});
															thumbnails[9089438] = clik.newPhoto({"id":9089438,"src":"PA250052web_2_thumb.jpg","galleries_id":264688,"server_id":18,"link":"photo_9089438.html","width":130,"caption":"","height":98});
															thumbnails[8787276] = clik.newPhoto({"id":8787276,"src":"IMG_2072web_thumb.jpg","galleries_id":265556,"server_id":18,"link":"photo_8787276.html","width":130,"caption":"","height":98});
															thumbnails[8786698] = clik.newPhoto({"id":8786698,"src":"IMG_2436bbweb_thumb.jpg","galleries_id":264702,"server_id":18,"link":"photo_8786698.html","width":130,"caption":"","height":98});
															thumbnails[9088996] = clik.newPhoto({"id":9088996,"src":"IMG_2232bweb_1_thumb.jpg","galleries_id":297405,"server_id":18,"link":"photo_9088996.html","width":130,"caption":"","height":98});
															thumbnails[6545867] = clik.newPhoto({"id":6545867,"src":"PA310548web_thumb.jpg","galleries_id":264702,"server_id":18,"link":"photo_6545867.html","width":130,"caption":"","height":173});
															thumbnails[5049893] = clik.newPhoto({"id":5049893,"src":"PA300388bweb_thumb.jpg","galleries_id":264689,"server_id":18,"link":"photo_5049893.html","width":130,"caption":"","height":98});
															thumbnails[8677475] = clik.newPhoto({"id":8677475,"src":"IMG_1728bweb_thumb.jpg","galleries_id":265556,"server_id":18,"link":"photo_8677475.html","width":130,"caption":"","height":195});
															thumbnails[7137341] = clik.newPhoto({"id":7137341,"src":"escanear0023webbbbb_thumb.jpg","galleries_id":264688,"server_id":18,"link":"photo_7137341.html","width":130,"caption":"","height":98});
															thumbnails[8186509] = clik.newPhoto({"id":8186509,"src":"P6120030web2_thumb.jpg","galleries_id":265556,"server_id":18,"link":"photo_8186509.html","width":130,"caption":"","height":183});
															thumbnails[8217332] = clik.newPhoto({"id":8217332,"src":"with_love_thumb.jpg","galleries_id":297405,"server_id":18,"link":"photo_8217332.html","width":130,"caption":"","height":174});
															thumbnails[8217333] = clik.newPhoto({"id":8217333,"src":"with_love_2_thumb.jpg","galleries_id":297405,"server_id":18,"link":"photo_8217333.html","width":130,"caption":"","height":116});
															thumbnails[9089651] = clik.newPhoto({"id":9089651,"src":"IMG_1810web_1_thumb.jpg","galleries_id":264702,"server_id":18,"link":"photo_9089651.html","width":130,"caption":"","height":87});
															thumbnails[5049878] = clik.newPhoto({"id":5049878,"src":"PA270102bweb_thumb.jpg","galleries_id":264688,"server_id":18,"link":"photo_5049878.html","width":130,"caption":"","height":173});
															thumbnails[8791012] = clik.newPhoto({"id":8791012,"src":"IMG_1795web_thumb.jpg","galleries_id":264702,"server_id":18,"link":"photo_8791012.html","width":130,"caption":"","height":98});
															thumbnails[4567626] = clik.newPhoto({"id":4567626,"src":"PC220060web_thumb.jpg","galleries_id":264702,"server_id":18,"link":"photo_4567626.html","width":130,"caption":"","height":98});
															thumbnails[7472608] = clik.newPhoto({"id":7472608,"src":"IMG_0573b_thumb.jpg","galleries_id":265556,"server_id":18,"link":"photo_7472608.html","width":130,"caption":"","height":173});
															thumbnails[7759834] = clik.newPhoto({"id":7759834,"src":"IMG_1051bweb_thumb.jpg","galleries_id":265556,"server_id":18,"link":"photo_7759834.html","width":130,"caption":"","height":195});
															thumbnails[8217334] = clik.newPhoto({"id":8217334,"src":"with_love_3_thumb.jpg","galleries_id":297405,"server_id":18,"link":"photo_8217334.html","width":130,"caption":"","height":173});
															thumbnails[4566747] = clik.newPhoto({"id":4566747,"src":"P6221174web3_thumb.jpg","galleries_id":264689,"server_id":18,"link":"photo_4566747.html","width":130,"caption":"","height":98});
															thumbnails[5290170] = clik.newPhoto({"id":5290170,"src":"DSC01415web_thumb.jpg","galleries_id":264688,"server_id":18,"link":"photo_5290170.html","width":130,"caption":"","height":97});
															thumbnails[5815095] = clik.newPhoto({"id":5815095,"src":"__9_0524web2_thumb.jpg","galleries_id":264688,"server_id":18,"link":"photo_5815095.html","width":130,"caption":"","height":98});
															thumbnails[9089446] = clik.newPhoto({"id":9089446,"src":"IMG_2264web_1_thumb.jpg","galleries_id":264702,"server_id":18,"link":"photo_9089446.html","width":130,"caption":"","height":87});
															thumbnails[9085233] = clik.newPhoto({"id":9085233,"src":"PA310599web_1_thumb.jpg","galleries_id":264688,"server_id":18,"link":"photo_9085233.html","width":130,"caption":"","height":98});
															thumbnails[6320576] = clik.newPhoto({"id":6320576,"src":"Sonia_Holgado_on_textures_Chain_on_doorweb_thumb.jpg","galleries_id":265556,"server_id":18,"link":"photo_6320576.html","width":130,"caption":"","height":98});
															thumbnails[6967085] = clik.newPhoto({"id":6967085,"src":"P7210180b_thumb.jpg","galleries_id":264689,"server_id":18,"link":"photo_6967085.html","width":130,"caption":"","height":98});
															thumbnails[8188620] = clik.newPhoto({"id":8188620,"src":"Lots_of_love12_thumb.jpg","galleries_id":297405,"server_id":18,"link":"photo_8188620.html","width":130,"caption":"","height":98});
															thumbnails[9089445] = clik.newPhoto({"id":9089445,"src":"IMG_1553web_1_thumb.jpg","galleries_id":264702,"server_id":18,"link":"photo_9089445.html","width":130,"caption":"","height":87});
															thumbnails[8937095] = clik.newPhoto({"id":8937095,"src":"Moltes_felicitatsweb_thumb_D6B590C5-1EC9-D45B-1CC5BB3C4C2A6530.jpg","galleries_id":297405,"server_id":18,"link":"photo_8937095.html","width":130,"caption":"","height":112});
															thumbnails[8677493] = clik.newPhoto({"id":8677493,"src":"IMG_2210bbweb_thumb.jpg","galleries_id":265556,"server_id":18,"link":"photo_8677493.html","width":130,"caption":"","height":98});
															thumbnails[5640978] = clik.newPhoto({"id":5640978,"src":"PB160678bweb_thumb.jpg","galleries_id":264689,"server_id":18,"link":"photo_5640978.html","width":130,"caption":"","height":98});
															thumbnails[6854951] = clik.newPhoto({"id":6854951,"src":"soniafrontback_thumb.jpg","galleries_id":297405,"server_id":18,"link":"photo_6854951.html","width":130,"caption":"","height":195});
															thumbnails[9088780] = clik.newPhoto({"id":9088780,"src":"P1010221web_2_thumb.jpg","galleries_id":264688,"server_id":18,"link":"photo_9088780.html","width":130,"caption":"","height":98});
															thumbnails[5842529] = clik.newPhoto({"id":5842529,"src":"FeliçSt3_thumb.jpg","galleries_id":297405,"server_id":18,"link":"photo_5842529.html","width":130,"caption":"","height":98});
															thumbnails[5185114] = clik.newPhoto({"id":5185114,"src":"PA300357web_thumb.jpg","galleries_id":265556,"server_id":18,"link":"photo_5185114.html","width":130,"caption":"","height":173});
															thumbnails[9084980] = clik.newPhoto({"id":9084980,"src":"P1160470web_1_thumb.jpg","galleries_id":264688,"server_id":18,"link":"photo_9084980.html","width":130,"caption":"","height":98});
															thumbnails[8186485] = clik.newPhoto({"id":8186485,"src":"DSC02318-web_thumb.jpg","galleries_id":264689,"server_id":18,"link":"photo_8186485.html","width":130,"caption":"","height":98});
															thumbnails[4570369] = clik.newPhoto({"id":4570369,"src":"_29_0971bweb_thumb.jpg","galleries_id":264689,"server_id":18,"link":"photo_4570369.html","width":130,"caption":"","height":229});
															thumbnails[6289500] = clik.newPhoto({"id":6289500,"src":"gavdosweb_thumb.jpg","galleries_id":264688,"server_id":18,"link":"photo_6289500.html","width":130,"caption":"","height":97});
															thumbnails[8720737] = clik.newPhoto({"id":8720737,"src":"IMG_1604web_thumb.jpg","galleries_id":265556,"server_id":18,"link":"photo_8720737.html","width":130,"caption":"","height":87});
															thumbnails[6280405] = clik.newPhoto({"id":6280405,"src":"santoriniweb_thumb.jpg","galleries_id":264688,"server_id":18,"link":"photo_6280405.html","width":130,"caption":"","height":97});
															thumbnails[4566567] = clik.newPhoto({"id":4566567,"src":"PC300115bweb2_thumb.jpg","galleries_id":264702,"server_id":18,"link":"photo_4566567.html","width":130,"caption":"","height":165});
															thumbnails[9088857] = clik.newPhoto({"id":9088857,"src":"DSC01919web_1_thumb.jpg","galleries_id":264688,"server_id":18,"link":"photo_9088857.html","width":130,"caption":"","height":98});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[264688] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Landscapes","link":"gallery_264688.html","maxRecords":0.0,"photoIDs":[9085366.0,8791052.0,7496785.0,9089440.0,4567629.0,6596260.0,4566734.0,4563086.0,8791019.0,9089438.0,7137341.0,5049878.0,5290170.0,5815095.0,9085233.0,9088780.0,9084980.0,6289500.0,6280405.0,9088857.0],"skipIndex":0,"section_code":"gallery","featured_images":4566734.0,"id":264688,"singleSection":false});				  						galleries[264689] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Urban","link":"gallery_264689.html","maxRecords":0.0,"photoIDs":[4566727.0,8786696.0,9089439.0,8677483.0,8791031.0,5777463.0,5777478.0,5068977.0,5049887.0,5289499.0,5049893.0,4566747.0,6967085.0,5640978.0,8186485.0,4570369.0],"skipIndex":0,"section_code":"gallery","featured_images":4566727.0,"id":264689,"singleSection":false});				  						galleries[264702] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"People","link":"gallery_264702.html","maxRecords":0.0,"photoIDs":[4568159.0,4566329.0,9089623.0,4566471.0,8677488.0,7137337.0,5815564.0,7825104.0,8786698.0,6545867.0,9089651.0,8791012.0,4567626.0,9089446.0,9089445.0,4566567.0],"skipIndex":0,"section_code":"gallery","featured_images":4568159.0,"id":264702,"singleSection":false});				  						galleries[265556] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Detail","link":"gallery_265556.html","maxRecords":0.0,"photoIDs":[8677466.0,8677495.0,4710729.0,5184618.0,6333305.0,8812455.0,9085272.0,8787276.0,8677475.0,8186509.0,7472608.0,7759834.0,6320576.0,8677493.0,5185114.0,8720737.0],"skipIndex":0,"section_code":"gallery","featured_images":8677495.0,"id":265556,"singleSection":false});				  						galleries[297405] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Graphic Design","link":"gallery_297405.html","maxRecords":0.0,"photoIDs":[8892349.0,7417193.0,7844528.0,7328656.0,7054107.0,8937100.0,7328699.0,5353138.0,9088996.0,8217332.0,8217333.0,8217334.0,8188620.0,8937095.0,6854951.0,5842529.0],"skipIndex":0,"section_code":"gallery","featured_images":6854951.0,"id":297405,"singleSection":false});				  						galleries[375649] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Illustration","link":"gallery_375649.html","maxRecords":0.0,"photoIDs":[6876041.0,7179064.0,7054118.0,6876000.0],"skipIndex":0,"section_code":"gallery","featured_images":6876041.0,"id":375649,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8677466,4568159,8677495,9089439,8677483,5184618,4567629,4566471,9085272,8812455,8677475,5640978,6289500';
imageSets[2] = '6876041,4568159,4566727,8677495,4566734,6854951';
imageSets[3] = '9085366,6876041';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/soniaholgado/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/soniaholgado/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/soniaholgado/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/soniaholgado/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/soniaholgado/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/soniaholgado/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/soniaholgado/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/soniaholgado/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/soniaholgado/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/soniaholgado/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/soniaholgado/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/soniaholgado/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/soniaholgado/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/soniaholgado/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/soniaholgado/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/soniaholgado/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/soniaholgado/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/soniaholgado/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/soniaholgado/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/soniaholgado/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/soniaholgado/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/soniaholgado/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/soniaholgado/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/soniaholgado/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/soniaholgado/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/soniaholgado/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/soniaholgado/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 = 'Sonia Holgado Photography & Graphic Design: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

