/*
Code from: http://www.liquidpulse.net/code/101

You MUST have this info in your doc as well, or it won't do anything. 
<body onMouseMove="xy(event.pageX,event.pageY);">
<span id="hover" style="display: none; visibility: visible; position: absolute;"></span>
Test it with : T
his would be a <span onMouseOver="this.style.cursor='help';hover_popup('Whee! It\'s working!');" onMouseOut="hover_clear()"><font color=red>text  test</font></span>. 
© July 25, 2002 daemorhedron.</p>
*/
var
	xpos=0;
	ypos=0;
	xoffset=10;
	yoffset=5;
	isNetscape=false;
	onPageOnly=true;

function hover_popup(text,width) {
	width=width ? ' width='+width : '';
	hobj=document.getElementById('hover');
	hobj.innerHTML='<table'+width+'><tr><td class=hover align=center valign=middle>&nbsp;'+text+'&nbsp;</td></tr></table>';
	hobj.style.display="block";
}

function hover_clear(target) {
	hobj=document.getElementById('hover');
	hobj.style.display="none";
	hobj.innerHTML='';
}

function xy(x,y) {
	hobj=document.getElementById('hover');
	xpos = isNetscape ? x : window.event.x;
	ypos = isNetscape ? y : window.event.y;
	xpos = xpos + xoffset + document.body.scrollLeft;
	ypos = ypos + yoffset + document.body.scrollTop;
	if (onPageOnly) {
		if ((xpos+hobj.clientWidth)>document.body.clientWidth) xpos=document.body.clientWidth-hobj.clientWidth;
		if ((ypos+hobj.clientHeight)>document.body.clientHeight) ypos=ypos-hobj.clientHeight-yoffset-yoffset;
	}
	hobj.style.left=xpos;
	hobj.style.top=ypos;
}

function get_browser() {
	alert(navigator.appName);
}

if (navigator.appName=="Netscape") {
	isNetscape=true;
	document.captureEvents(Event.MOUSEMOVE);
}

