window.thumbnails = {};
															thumbnails[306840] = clik.newPhoto({"id":306840,"src":"Glimpsed-Unravelling_thumb.JPG","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Glimpsed-Unravelling(Sold)","height":98});
															thumbnails[306849] = clik.newPhoto({"id":306849,"src":"Adagio_thumb.JPG","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Adagio(Sold)","height":98});
															thumbnails[306874] = clik.newPhoto({"id":306874,"src":"passages_in_green_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Passages in Green(sold)","height":98});
															thumbnails[306886] = clik.newPhoto({"id":306886,"src":"passages_in_grey_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Passages in Grey(Sold)","height":173});
															thumbnails[306894] = clik.newPhoto({"id":306894,"src":"TangledIntention3_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Tangled Intention(Sold)","height":173});
															thumbnails[306932] = clik.newPhoto({"id":306932,"src":"wave's volition_thumb.JPG","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Wave's Volition(Sold)","height":98});
															thumbnails[3754717] = clik.newPhoto({"id":3754717,"src":"mindscapes-opening1_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"STEPHEN RYAN OPENS \"MINDSCAPES\"","height":93});
															thumbnails[3754724] = clik.newPhoto({"id":3754724,"src":"mindscapes-opening13_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":97});
															thumbnails[3754729] = clik.newPhoto({"id":3754729,"src":"mindscapes-opening11_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":178});
															thumbnails[3754740] = clik.newPhoto({"id":3754740,"src":"mindscapes-opening6_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":184});
															thumbnails[3754741] = clik.newPhoto({"id":3754741,"src":"mindscapes-opening8_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":186});
															thumbnails[3754742] = clik.newPhoto({"id":3754742,"src":"mindscapes-opening12_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":96});
															thumbnails[306765] = clik.newPhoto({"id":306765,"src":"Butterfly Trajectories2_thumb.JPG","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Butterfly Trajectories (sold)","height":98});
															thumbnails[306903] = clik.newPhoto({"id":306903,"src":"Valediction_thumb.JPG","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"Valediction (sold)","height":98});
															thumbnails[445381] = clik.newPhoto({"id":445381,"src":"his_dark_material_sm_thumb.jpg","galleries_id":58206,"server_id":18,"link":"photo_445381.html","width":130,"caption":"His Dark Material (Sold)","height":79});
															thumbnails[450625] = clik.newPhoto({"id":450625,"src":"the_idea_thumb.jpg","galleries_id":58206,"server_id":18,"link":"photo_450625.html","width":130,"caption":"The Idea (Sold)","height":93});
															thumbnails[603464] = clik.newPhoto({"id":603464,"src":"work_in_progress_X_thumb.jpg","galleries_id":58206,"server_id":18,"link":"photo_603464.html","width":130,"caption":"Struggle (Sold)","height":78});
															thumbnails[613473] = clik.newPhoto({"id":613473,"src":"epicenter_thumb.jpg","galleries_id":58206,"server_id":18,"link":"photo_613473.html","width":130,"caption":"Epicenter (Sold)","height":87});
															thumbnails[703732] = clik.newPhoto({"id":703732,"src":"creeper_whisper1_thumb.jpg","galleries_id":58206,"server_id":18,"link":"photo_703732.html","width":130,"caption":"Creeper-Whisper (Sold)","height":130});
															thumbnails[718032] = clik.newPhoto({"id":718032,"src":"curtain_call_thumb.jpg","galleries_id":58206,"server_id":18,"link":"photo_718032.html","width":130,"caption":"Curtain Call (Sold)","height":106});
															thumbnails[780779] = clik.newPhoto({"id":780779,"src":"fleetingly_thumb.jpg","galleries_id":58206,"server_id":18,"link":"photo_780779.html","width":130,"caption":"Fleetingly (sold)","height":100});
															thumbnails[780784] = clik.newPhoto({"id":780784,"src":"this_way_and_that_thumb.jpg","galleries_id":58206,"server_id":18,"link":"photo_780784.html","width":130,"caption":"This Way and That (Sold)","height":83});
															thumbnails[780789] = clik.newPhoto({"id":780789,"src":"trilogy_part_I_thumb.jpg","galleries_id":58206,"server_id":18,"link":"photo_780789.html","width":130,"caption":"Trilogy (Part III)(Sold)","height":129});
															thumbnails[800040] = clik.newPhoto({"id":800040,"src":"trilogy_part_II_thumb.jpg","galleries_id":58206,"server_id":18,"link":"photo_800040.html","width":130,"caption":"Trilogy (Part II)(Sold)","height":131});
															thumbnails[800055] = clik.newPhoto({"id":800055,"src":"trilogy_part_I1_thumb.jpg","galleries_id":58206,"server_id":18,"link":"photo_800055.html","width":130,"caption":"Trilogy (Part I)(Sold)","height":130});
															thumbnails[800099] = clik.newPhoto({"id":800099,"src":"support_thumb.jpg","galleries_id":58206,"server_id":18,"link":"photo_800099.html","width":130,"caption":"Support (Sold)","height":149});
															thumbnails[4010120] = clik.newPhoto({"id":4010120,"src":"lyras_world_III_thumb.jpg","galleries_id":41052,"server_id":18,"link":"photo_4010120.html","width":130,"caption":"Lyra's World III","height":130});
															thumbnails[5508361] = clik.newPhoto({"id":5508361,"src":"overflow_X1_thumb.jpg","galleries_id":302269,"server_id":18,"link":"photo_5508361.html","width":130,"caption":"Overflow X","height":80});
															thumbnails[5594685] = clik.newPhoto({"id":5594685,"src":"wood-for-the-treesIV_thumb.jpg","galleries_id":302269,"server_id":18,"link":"photo_5594685.html","width":130,"caption":"Wood-For-The-Trees IV","height":88});
															thumbnails[5594688] = clik.newPhoto({"id":5594688,"src":"the_inevitable_II12_thumb.jpg","galleries_id":302269,"server_id":18,"link":"photo_5594688.html","width":130,"caption":"The Inevitable II","height":91});
															thumbnails[5725052] = clik.newPhoto({"id":5725052,"src":"view_from_a_purple_veranda_thumb.jpg","galleries_id":333893,"server_id":18,"link":"photo_5725052.html","width":130,"caption":"View From A Purple Veranda","height":101});
															thumbnails[5725057] = clik.newPhoto({"id":5725057,"src":"reflection-falls_thumb.jpg","galleries_id":333893,"server_id":18,"link":"photo_5725057.html","width":130,"caption":"Reflection-Falls (summer)","height":92});
															thumbnails[5916531] = clik.newPhoto({"id":5916531,"src":"birth_of_the_giant_6E0DACDB-1EC9-D45B-1C9D014F1753D057_thumb.jpg","galleries_id":333893,"server_id":18,"link":"photo_5916531.html","width":130,"caption":"Birth of the Giant","height":103});
															thumbnails[5916538] = clik.newPhoto({"id":5916538,"src":"Kingdom_of_Memory_III_6E11510A-1EC9-D45B-1C312B02748CE3DD_thumb.jpg","galleries_id":333893,"server_id":18,"link":"photo_5916538.html","width":130,"caption":"Kingdom of Memory III","height":97});
															thumbnails[5916544] = clik.newPhoto({"id":5916544,"src":"pierres_canon_and_the_other_world_thumb.jpg","galleries_id":333893,"server_id":18,"link":"photo_5916544.html","width":130,"caption":"Pierre's Canyon and the Other World","height":85});
															thumbnails[5916563] = clik.newPhoto({"id":5916563,"src":"before_the_earth_was_flat_thumb.jpg","galleries_id":333893,"server_id":18,"link":"photo_5916563.html","width":130,"caption":"Reflection-Falls (winter)","height":97});
															thumbnails[6388114] = clik.newPhoto({"id":6388114,"src":"reflection-fallsspring_thumb.jpg","galleries_id":333893,"server_id":18,"link":"photo_6388114.html","width":130,"caption":"Reflection-Falls (spring)","height":97});
															thumbnails[6388135] = clik.newPhoto({"id":6388135,"src":"the_wind_farm_thumb.jpg","galleries_id":333893,"server_id":18,"link":"photo_6388135.html","width":130,"caption":"The Wind Farm","height":85});
															thumbnails[6898787] = clik.newPhoto({"id":6898787,"src":"gateway_I_thumb.jpg","galleries_id":418787,"server_id":18,"link":"photo_6898787.html","width":130,"caption":"Gateway","height":181});
															thumbnails[7754275] = clik.newPhoto({"id":7754275,"src":"gateway_II_thumb.jpg","galleries_id":418787,"server_id":18,"link":"photo_7754275.html","width":130,"caption":"Gateway II","height":94});
															thumbnails[7754328] = clik.newPhoto({"id":7754328,"src":"gateway_III_thumb.jpg","galleries_id":418787,"server_id":18,"link":"photo_7754328.html","width":130,"caption":"Gateway III","height":98});
															thumbnails[7754384] = clik.newPhoto({"id":7754384,"src":"flutter_thumb.jpg","galleries_id":418787,"server_id":18,"link":"photo_7754384.html","width":130,"caption":"Flutter","height":95});
															thumbnails[7754433] = clik.newPhoto({"id":7754433,"src":"overpass_thumb.jpg","galleries_id":418787,"server_id":18,"link":"photo_7754433.html","width":130,"caption":"Overpass","height":155});
															thumbnails[7754471] = clik.newPhoto({"id":7754471,"src":"portal_I_C6241C8D-1E4F-37DC-71A80DB8D85D6B5D_thumb.jpg","galleries_id":418787,"server_id":18,"link":"photo_7754471.html","width":130,"caption":"Portal I","height":98});
															thumbnails[7754559] = clik.newPhoto({"id":7754559,"src":"surface_II_thumb.jpg","galleries_id":418787,"server_id":18,"link":"photo_7754559.html","width":130,"caption":"Surface II","height":96});
															thumbnails[7853696] = clik.newPhoto({"id":7853696,"src":"vista_I1_thumb.jpg","galleries_id":418787,"server_id":18,"link":"photo_7853696.html","width":130,"caption":"Vista I","height":98});
															thumbnails[8376135] = clik.newPhoto({"id":8376135,"src":"curtain-call_thumb.jpg","galleries_id":444459,"server_id":18,"link":"photo_8376135.html","width":130,"caption":"Curtain-Call","height":93});
															thumbnails[8376138] = clik.newPhoto({"id":8376138,"src":"bunnaboghee_I_thumb.jpg","galleries_id":444459,"server_id":18,"link":"photo_8376138.html","width":130,"caption":"Bunnaboghee I","height":107});
															thumbnails[8376155] = clik.newPhoto({"id":8376155,"src":"lake_thumb.jpg","galleries_id":444459,"server_id":18,"link":"photo_8376155.html","width":130,"caption":"Crepuscule","height":107});
															thumbnails[8524843] = clik.newPhoto({"id":8524843,"src":"veneer_I_thumb.jpg","galleries_id":444459,"server_id":18,"link":"photo_8524843.html","width":130,"caption":"Veneer I","height":96});
															thumbnails[9051973] = clik.newPhoto({"id":9051973,"src":"Atlass_Dream_thumb.jpg","galleries_id":444459,"server_id":18,"link":"photo_9051973.html","width":130,"caption":"Atlas's Dream","height":98});
															thumbnails[8376124] = clik.newPhoto({"id":8376124,"src":"veneer_II_thumb.jpg","galleries_id":444459,"server_id":18,"link":"photo_8376124.html","width":130,"caption":"Veneer II","height":96});
															thumbnails[3658719] = clik.newPhoto({"id":3658719,"src":"the_inevitable_thumb.jpg","galleries_id":41052,"server_id":18,"link":"photo_3658719.html","width":130,"caption":"The Inevitable (Sold)","height":107});
															thumbnails[5332215] = clik.newPhoto({"id":5332215,"src":"desert_decayI_thumb.jpg","galleries_id":302269,"server_id":18,"link":"photo_5332215.html","width":130,"caption":"Desert Decay I (sold)","height":143});
															thumbnails[8376131] = clik.newPhoto({"id":8376131,"src":"Interior_III_thumb.jpg","galleries_id":444459,"server_id":18,"link":"photo_8376131.html","width":130,"caption":"Veneer III","height":109});
															thumbnails[3324667] = clik.newPhoto({"id":3324667,"src":"overflowV_thumb.jpg","galleries_id":41052,"server_id":18,"link":"photo_3324667.html","width":130,"caption":"Overflow V(Sold)","height":130});
															thumbnails[5363949] = clik.newPhoto({"id":5363949,"src":"civilizationI_thumb.jpg","galleries_id":302269,"server_id":18,"link":"photo_5363949.html","width":130,"caption":"Civilization I","height":190});
															thumbnails[3658733] = clik.newPhoto({"id":3658733,"src":"overflowVIII_thumb.jpg","galleries_id":41052,"server_id":18,"link":"photo_3658733.html","width":130,"caption":"OVERFLOW VIII(Sold)","height":173});
															thumbnails[5363977] = clik.newPhoto({"id":5363977,"src":"desert-decayIV_thumb.jpg","galleries_id":302269,"server_id":18,"link":"photo_5363977.html","width":130,"caption":"Desert-Decay IV","height":174});
															thumbnails[3003048] = clik.newPhoto({"id":3003048,"src":"overflow IV_thumb.jpg","galleries_id":41052,"server_id":18,"link":"photo_3003048.html","width":130,"caption":"Overflow IV","height":82});
															thumbnails[5363983] = clik.newPhoto({"id":5363983,"src":"tangledomV_thumb.jpg","galleries_id":302269,"server_id":18,"link":"photo_5363983.html","width":130,"caption":"Tangledom IV","height":173});
															thumbnails[2126761] = clik.newPhoto({"id":2126761,"src":"viaduct_thumb.jpg","galleries_id":223517,"server_id":18,"link":"photo_2126761.html","width":130,"caption":"Viaduct (sold)","height":129});
															thumbnails[2126763] = clik.newPhoto({"id":2126763,"src":"lemmings_I_thumb.jpg","galleries_id":41052,"server_id":18,"link":"photo_2126763.html","width":130,"caption":"Lemmings I (sold)","height":130});
															thumbnails[5363986] = clik.newPhoto({"id":5363986,"src":"civilizationII_thumb.jpg","galleries_id":302269,"server_id":18,"link":"photo_5363986.html","width":130,"caption":"Civilization II","height":101});
															thumbnails[3658737] = clik.newPhoto({"id":3658737,"src":"planet_earth_thumb.jpg","galleries_id":41052,"server_id":18,"link":"photo_3658737.html","width":130,"caption":"PLANET EARTH (sold)","height":107});
															thumbnails[5165214] = clik.newPhoto({"id":5165214,"src":"moses-aftermathII_thumb.jpg","galleries_id":302269,"server_id":18,"link":"photo_5165214.html","width":130,"caption":"Moses-Aftermath II","height":197});
															thumbnails[2768110] = clik.newPhoto({"id":2768110,"src":"Moonriver_thumb.jpg","galleries_id":41052,"server_id":18,"link":"photo_2768110.html","width":130,"caption":"Moonriver","height":130});
															thumbnails[3754714] = clik.newPhoto({"id":3754714,"src":"Overflow_IX1_thumb.jpg","galleries_id":41052,"server_id":18,"link":"photo_3754714.html","width":130,"caption":"OVERFLOW IX","height":129});
															thumbnails[6918970] = clik.newPhoto({"id":6918970,"src":"portal_I_thumb.jpg","galleries_id":418787,"server_id":18,"link":"photo_6918970.html","width":130,"caption":"Untitled I","height":71});
															thumbnails[1512122] = clik.newPhoto({"id":1512122,"src":"lyra's world II_thumb.jpg","galleries_id":223517,"server_id":18,"link":"photo_1512122.html","width":130,"caption":"Lyra's World II (sold)","height":130});
															thumbnails[3658738] = clik.newPhoto({"id":3658738,"src":"wood-for-the-treesIII_thumb.jpg","galleries_id":41052,"server_id":18,"link":"photo_3658738.html","width":130,"caption":"WOOD-FOR-THE-TREES III","height":97});
															thumbnails[1316712] = clik.newPhoto({"id":1316712,"src":"wood-for-the-trees_thumb.jpg","galleries_id":223517,"server_id":18,"link":"photo_1316712.html","width":130,"caption":"Wood For The Trees(sold)","height":44});
															thumbnails[2768138] = clik.newPhoto({"id":2768138,"src":"poplars1_thumb.jpg","galleries_id":223517,"server_id":18,"link":"photo_2768138.html","width":130,"caption":"Poplars","height":56});
															thumbnails[3003045] = clik.newPhoto({"id":3003045,"src":"Moses-aftermath_thumb.jpg","galleries_id":41052,"server_id":18,"link":"photo_3003045.html","width":130,"caption":"Moses-aftermath","height":112});
															thumbnails[3846375] = clik.newPhoto({"id":3846375,"src":"kingdom_of_memory_II1_thumb.jpg","galleries_id":223517,"server_id":18,"link":"photo_3846375.html","width":130,"caption":"Kinddom of Memory II (sold)","height":112});
															thumbnails[2768136] = clik.newPhoto({"id":2768136,"src":"Whirlwind_thumb.jpg","galleries_id":223517,"server_id":18,"link":"photo_2768136.html","width":130,"caption":"Whirlwind (sold)","height":102});
															thumbnails[1089995] = clik.newPhoto({"id":1089995,"src":"overfloweth_thumb.jpg","galleries_id":223517,"server_id":18,"link":"photo_1089995.html","width":130,"caption":"Overfloweth","height":106});
															thumbnails[3658754] = clik.newPhoto({"id":3658754,"src":"portal_thumb.jpg","galleries_id":223517,"server_id":18,"link":"photo_3658754.html","width":130,"caption":"Portal (sold)","height":95});
															thumbnails[3658718] = clik.newPhoto({"id":3658718,"src":"lemmings_II1_thumb.jpg","galleries_id":41052,"server_id":18,"link":"photo_3658718.html","width":130,"caption":"LEMMINGS II","height":164});
															thumbnails[703726] = clik.newPhoto({"id":703726,"src":"cobweb_harvest_thumb.jpg","galleries_id":58206,"server_id":18,"link":"photo_703726.html","width":130,"caption":"Cobweb Harvest (sold)","height":178});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[444459] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Substratum","link":"gallery_444459.html","maxRecords":0.0,"photoIDs":[8376135.0,8376138.0,8376155.0,8524843.0,9051973.0,8376124.0,8376131.0],"skipIndex":0,"section_code":"gallery","featured_images":8376124.0,"id":444459,"singleSection":false});				  						galleries[418787] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Windows II","link":"gallery_418787.html","maxRecords":0.0,"photoIDs":[6898787.0,7754275.0,7754328.0,7754384.0,7754433.0,7754471.0,7754559.0,7853696.0,6918970.0],"skipIndex":0,"section_code":"gallery","featured_images":7754471.0,"id":418787,"singleSection":false});				  						galleries[333893] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Windows I ","link":"gallery_333893.html","maxRecords":0.0,"photoIDs":[5725052.0,5725057.0,5916531.0,5916538.0,5916544.0,5916563.0,6388114.0,6388135.0],"skipIndex":0,"section_code":"gallery","featured_images":5725052.0,"id":333893,"singleSection":false});				  						galleries[302269] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Mindscapes II","link":"gallery_302269.html","maxRecords":0.0,"photoIDs":[5508361.0,5594685.0,5594688.0,5332215.0,5363949.0,5363977.0,5363983.0,5363986.0,5165214.0],"skipIndex":0,"section_code":"gallery","featured_images":5332215.0,"id":302269,"singleSection":false});				  						galleries[41052] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Mindscapes I ","link":"gallery_41052.html","maxRecords":0.0,"photoIDs":[4010120.0,3658719.0,3324667.0,3658733.0,3003048.0,2126763.0,3658737.0,2768110.0,3754714.0,3658738.0,3003045.0,3658718.0],"skipIndex":0,"section_code":"gallery","featured_images":2768110.0,"id":41052,"singleSection":false});				  						galleries[223517] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Tangledom","link":"gallery_223517.html","maxRecords":0.0,"photoIDs":[2126761.0,1512122.0,1316712.0,2768138.0,3846375.0,2768136.0,1089995.0,3658754.0],"skipIndex":0,"section_code":"gallery","featured_images":2126761.0,"id":223517,"singleSection":false});				  						galleries[58206] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"The Loom","link":"gallery_58206.html","maxRecords":0.0,"photoIDs":[445381.0,450625.0,603464.0,613473.0,703732.0,718032.0,780779.0,780784.0,780789.0,800040.0,800055.0,800099.0,703726.0],"skipIndex":0,"section_code":"gallery","featured_images":718032.0,"id":58206,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7754471';
imageSets[2] = '7754471,5725052,3754724,718032,306886,8376124,5332215,2126761,2768110';
imageSets[3] = '9051973,8524843,8376155,8376138,8376135,8376131,8376124,7853696,7754559,7754471,7754433,7754384,7754328,7754275,6918970,6898787,6388135,6388114,5916563,5916544,5916538,5916531,5725057,5725052,5594688,5594685,5508361,5363986,5363983,5363977,5363949,5332215,5165214,4010120,3846375,3754742,3754741,3754740,3754729,3754724,3754717,3754714,3658754,3658738,3658737,3658733,3658719,3658718,3324667,3003048';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/siobhanstrahan/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/siobhanstrahan/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/siobhanstrahan/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/siobhanstrahan/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/siobhanstrahan/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/siobhanstrahan/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/siobhanstrahan/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/siobhanstrahan/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/siobhanstrahan/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/siobhanstrahan/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/siobhanstrahan/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/siobhanstrahan/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/siobhanstrahan/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/siobhanstrahan/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/siobhanstrahan/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/siobhanstrahan/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/siobhanstrahan/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/siobhanstrahan/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/siobhanstrahan/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/siobhanstrahan/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/siobhanstrahan/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/siobhanstrahan/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/siobhanstrahan/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/siobhanstrahan/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/siobhanstrahan/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/siobhanstrahan/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/siobhanstrahan/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 = 'vauney strahan : ' + 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;
	}
}

			

