
function xMouse() 
{ 	this.X = 0;
	this.Y = 0;

	if(navigator.appName.indexOf("Netscape") != -1)
	{
		this.getMouseXY = function (evnt) 
		{
			document.ml.X=evnt.pageX;
			document.ml.Y=evnt.pageY;
		}

		window.captureEvents(Event.MOUSEMOVE);
		window.onmousemove = this.getMouseXY;

		document.ml = this;
	}
	else if(document.all)
	{
		if(navigator.appVersion.indexOf("MSIE 5.") != -1)
			this.getMouseXY = function ()
			{
				document.ml.X = event.x + document.body.scrollLeft;
				document.ml.Y = event.y + document.body.scrollTop;
			}
		else
			this.getMouseXY = function ()
			{
				document.ml.X = event.x;
				document.ml.Y = event.y;
			}

		document.ml = this;
		document.onmousemove = this.getMouseXY;
	} 
	return(this);
 
}

