
xx = new Array();

NS = (document.layers) ? 1 : 0;
IE = (document.all) ? 1: 0;

function mIt(e) {
	document.wpp.moveTo(e.pageX,e.pageY);	
	document.wpp.left = e.PageX + window.pageXOffset;
	document.wpp.top  = e.PageY + window.pageYOffset;
	}
	
function setvis(type,xid,xd) {

if (xd==0) {
	return true;
	}
maintext.innerHTML = xx[xid]; 


if (NS) {
	window.captureEvents(Event.MOUSEMOVE)
	window.onmousemove = mIt;
	document.wpp.visibility=type;
	}

if (IE) {
	document.all.flt.style.visibility=type;
	var x=event.clientX + document.body.scrollLeft;
	var y=event.clientY + document.body.scrollTop;
	
	var w=document.all.flt.style.pixelWidth;
	var h=document.all.flt.style.pixelHeight;

	var ww = x + w;
	var hh = y + h;
	if (hh > document.body.offsetHeight) {
		y = y - h;
	}

	if (ww > document.body.offsetWidth) {
		x = x - w;
	}
	
	document.all.flt.style.left = x + 10;
	document.all.flt.style.top  = y;
	
	}
	
return true;

}
