/******************************************************************* 
* 
* File    : JSFX_Mouse.js © JavaScript-FX.com
* 
* Created : 2000/07/15 
* 
* Author  : Roy Whittle  (Roy@Whittle.com) www.Roy.Whittle.com 
* 
* Purpose : To create a cross browser "Mouse" object.
*		This library will allow scripts to query the current x,y
*		coordinates of the mouse.
* 
* History 
* Date         Version        Description 
* 2000-06-08	2.0		Converted for javascript-fx
***********************************************************************/
if(!window.JSFXPIN)
	JSFXPIN=new Object();
if(!JSFXPIN.Browser)
	JSFXPIN.Browser = new Object();

JSFXPIN.Browser.mouseX = 0;
JSFXPIN.Browser.mouseY = 0;

if(navigator.appName.indexOf("Netscape") != -1)
{
	JSFXPIN.Browser.captureMouseXY = function (evnt) 
	{
		JSFXPIN.Browser.mouseX=evnt.pageX;
		JSFXPIN.Browser.mouseY=evnt.pageY;
	}

	window.captureEvents(Event.MOUSEMOVE);
	window.onmousemove = JSFXPIN.Browser.captureMouseXY;
}
else if(document.all)
{
	if(navigator.appVersion.indexOf("MSIE 5.") != -1)
		JSFXPIN.Browser.captureMouseXY = function ()
		{
			JSFXPIN.Browser.mouseX = event.x + document.body.scrollLeft;
			JSFXPIN.Browser.mouseY = event.y + document.body.scrollTop;
		}
	else
		JSFXPIN.Browser.captureMouseXY = function ()
		{
			JSFXPIN.Browser.mouseX = event.x;
			JSFXPIN.Browser.mouseY = event.y;
		}
	document.onmousemove = JSFXPIN.Browser.captureMouseXY;
} 
/*** End  ***/ 