	/*
		MINIMUM REQUIREMENTS FOR USAGE: 
		<a href="#" onMouseMove="showDiv('testdiv')" onMouseOut="hideDiv('testdiv')">Test</a>
		<div id="testdiv" style="position: absolute; display: none;">&nbsp;</div>
	*/
	var scrollposy = 0;
	var scrollposx = 0;
	var posx = 0;
	var posy = 0;
	var offsetx = 15;
	var offsety = 5;
	document.onmousemove = getCursorPos;
function getObj(name)
{
	if (document.getElementById) {
		this.obj = document.getElementById(name);
		this.style = document.getElementById(name).style;
	} else if (document.all) {
		this.obj = document.all[name];
		this.style = document.all[name].style;
	} else if (document.layers) {
		this.obj = document.layers[name];
		this.style = document.layers[name];
	}
}
function showDiv(divID) {
	var theDiv = new getObj(divID);
	if (document.documentElement && document.documentElement.scrollTop) {
		scrollposy = document.documentElement.scrollTop;
		scrollposx = document.documentElement.scrollLeft;
	}
	else if (document.body) {
		scrollposy = document.body.scrollTop
		scrollposx = document.body.scrollLeft;
	}
	if (self.innerWidth)
	{
		frameWidth = self.innerWidth;
		frameHeight = self.innerHeight;
	}
	else if (document.documentElement && document.documentElement.clientWidth)
	{
		frameWidth = document.documentElement.clientWidth;
		frameHeight = document.documentElement.clientHeight;
	}
	else if (document.body)
	{
		frameWidth = document.body.clientWidth;
		frameHeight = document.body.clientHeight;
	}
	posy = posy + offsety;
	if((posy  + theDiv.obj.offsetHeight) > (scrollposy + frameHeight)) {
		posy = (posy) - ((posy + theDiv.obj.offsetHeight) - (scrollposy + frameHeight));
	}
	posx = posx + offsetx;
	if((posx  + theDiv.obj.offsetWidth) > (scrollposx + frameWidth)) {
		posx = (posx) - ((posx + theDiv.obj.offsetWidth) - (scrollposx + frameWidth));
	}
	theDiv.style.top = posy + "px";
	theDiv.style.left = posx + "px";
	theDiv.style.visibility = "visible";
	theDiv.style.display = "block";
}
function hideDiv(divID) {
	var theDiv = new getObj(divID);
	theDiv.style.visibility = "hidden";
	theDiv.style.display = "none";
}
function getCursorPos(e) {
	if (!e) var e = window.event;
	scrollposy = 0;
	scrollposx = 0;
	if (document.documentElement && document.documentElement.scrollTop) {
		scrollposy = document.documentElement.scrollTop;
		scrollposx = document.documentElement.scrollLeft;
	}
	else if (document.body) {
		scrollposy = document.body.scrollTop
		scrollposx = document.body.scrollLeft;
	}

	if (e.pageX || e.pageY) //Netscape
	{
		posx = e.pageX;
		posy = e.pageY;
	}
	else if (e.clientX || e.clientY) //IE
	{
		posx = e.clientX + scrollposx;
		posy = e.clientY + scrollposy;
	}
}
