var XLeft;
var XRight;
var YTop;
var YBottom;
var CurObj=null;

if (document.layers)
{
	window.captureEvents(Event.MOUSEMOVE);
	window.onmousemove=updateIt;
}

function showit() {
	if (document.all) {
		var Obj = document.all("SubProduct")
		var baseObj = document.all("Product")
		Obj.style.visibility = "visible";
		Obj.style.pixelLeft = baseObj.offsetLeft - 8;
		XLeft = Obj.style.pixelLeft;
		XRight = Obj.style.pixelLeft + Obj.offsetWidth
		YTop = Obj.offsetTop - 30
		YBottom = Obj.offsetTop + Obj.offsetHeight
	}
	if (document.layers) {
		var Obj = document.SubProduct
		var baseObj = document.Product
		Obj.visibility = "show"
		Obj.pageX = baseObj.pageX - 8
		XLeft = Obj.pageX
		XRight = Obj.pageX + Obj.clip.width
		YTop = Obj.pageY - 30
		YBottom = Obj.pageY + Obj.clip.height
	}
}

function updateIt(e) {
	var Obj;
	if (document.layers) {
		var x = e.pageX;
		var y = e.pageY;
		Obj = document.SubProduct;
	} else {
		var x = window.event.clientX;
		var y = window.event.clientY;
		Obj = document.all("SubProduct").style
	}
	if ((x < XLeft) || (x > XRight)) {
		Obj.visibility = "hidden"
	} else {
		if ((y < YTop) || (y > YBottom)) {
			Obj.visibility = "hidden"
		}
	}
}