function menuOnMouseOver(elem) {
	elem.style.fontWeight="bold";
}

function menuOnMouseOut(elem) {
	elem.style.fontWeight="normal";
}

function printData(pg)
{
	parent.content.focus();  
	// Required to support IE
	parent.content.print();
}

function displayProduct(id) {
	var divZ = document.getElementById("productData").style.zIndex;

	if (divZ == "-100") {
			document.getElementById("productData").style.zIndex = 100;
			if (window.XMLHttpRequest)
				{
				xmlHttp=new XMLHttpRequest();
				}
			else // for older IE 5/6
				{
				xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
				}
		var url = "products-productData.asp?id="+id;
		xmlHttp.open("GET",url,false);
		xmlHttp.send(null);

		document.getElementById("productData").innerHTML=xmlHttp.responseText;
		}
	else
		{
		document.getElementById("productData").style.zIndex = -100;
		}
}

function changeIt(imageName,id) {
	var obj = document.getElementById("image" +id);
	if (obj.innerHTML.indexOf("thumbAsp") > 0) {
		var imgTag = "<img src='../productImages/"+imageName+"' border='0' />";
		obj.innerHTML = imgTag;
		}
	else
		{
		var imgTag = "<img src='../aspNet/thumbAsp/ThumbJpeg.ashx?VFilePath=../../productImages/" + imageName + "&width=55&height=55&Bevel=false' />";
		obj.innerHTML = imgTag;
		}
	return;	
}

