function resizeImg(imgId,width,height)
{
var objStr,obj;
if(document.images) 
	{
	objStr = 'document.' + imgId;
	obj = eval(objStr);
	obj.width = width;
	obj.height = height;
	}
}


// WM_preloadImages()
// Source: Webmonkey Code Library
// (http://www.hotwired.com/webmonkey/javascript/code_library/)
function WM_preloadImages() 
{
if (document.images) 
	{
	if (typeof(document.WM) == 'undefined')
		{
		document.WM = new Object();
    	}
	document.WM.loadedImages = new Array();
	var argLength = WM_preloadImages.arguments.length;
	for(arg=0;arg<argLength;arg++) 
		{
		document.WM.loadedImages[arg] = new Image();
		document.WM.loadedImages[arg].src = WM_preloadImages.arguments[arg];
		}
	}
}

// WM_imageSwap()
// Source: Webmonkey Code Library
// (http://www.hotwired.com/webmonkey/javascript/code_library/)
function WM_imageSwap(daImage, daSrc)
{
var objStr,obj;
if(document.images) 
	{
	if (typeof(daImage) == 'string') 
		{
		objStr = 'document.' + daImage;
		obj = eval(objStr);
		obj.src = daSrc;
		} 
	else if ((typeof(daImage) == 'object') && daImage && daImage.src) 
		{
		daImage.src = daSrc;
		}
	}
}



//swapping the text
//here you place the ids of every element you want.
var ids=new Array('orchid1','orchid2','orchid3','orchid4','orchid5','orchid6','orchid7','orchid8','orchid9','orchid10','orchid11','orchid12','orchid13');

function switchid(id){	
	hideallids();
	showdiv(id);
}

function hideallids(){
	//loop through the array and hide each element by id
	for (var i=0;i<ids.length;i++){
		hidediv(ids[i]);
	}		  
}

function hidediv(id) {
	//safe function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'none';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'none';
		}
		else { // IE 4
			document.all.id.style.display = 'none';
		}
	}
}



function showdiv(id) {
	//safe function to show an element with a specified id
		  
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'block';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'block';
		}
		else { // IE 4
			document.all.id.style.display = 'block';
		}
	}
}
