//Small script to toggle display of medium sized images triggered by thumbnails AW 0609

function showimage(boxid){
   document.getElementById(boxid).style.display="inline";
}

function hideimage(boxid){
	for (var i=1; i<6; i++) {
		if(boxid != "med_img"+i){
			//alert(boxid + " : " + "med_img" + i);
			var productElement = document.getElementById("med_img"+i.toString());
			if (productElement != null)		{	
   				document.getElementById("med_img"+i.toString()).style.display="none";
			}
		}
   	}
}

// also change hilight border on thumb....
function hilitethumb(boxid){
   document.getElementById(boxid).style.border="1px solid #c2d843";
}

function lowlitethumb(boxid){
	for (var i=1; i<6; i++) {
		if(boxid != "thumb"+i){
			var productElement = document.getElementById("thumb"+i.toString());
			if (productElement != null)			{
   				document.getElementById("thumb"+i.toString()).style.border="1px solid #e3e3e3";
			}
		}
	}
}
