var ishover=false;
var boxwidth;

function popupText(text)
{
	if(navtxt != undefined)
	{
	   if(text!=0)
		{
			ishover=true;
			navtxt.innerHTML = text;
			boxwidth=navtxt.offsetWidth;
		}
		else
		{
			navtxt.style.visibility="hidden";
			navtxt.innerHTML = text;
			ishover=false;
		}
	}
}

function moveobj(evt)
{
	if(ishover)
	{
		mx=event.clientX-parseInt(boxwidth);
		my=event.clientY+20+document.body.scrollTop;
		navtxt.style.left=mx+'px';
		navtxt.style.top=my+'px';
		navtxt.style.visibility="visible";
	}
}

document.onmousemove=moveobj;