var ua = null;
switch(true)
{
	case navigator.userAgent.indexOf("Opera")>-1 :
		ua = "O";
		window.captureEvents(Event.MOUSEMOVE);
		window.onmousemove = function(e){mouseX = e.pageX; mouseY = e.pageY};
		break;
	case navigator.userAgent.indexOf("MSIE")>-1 :
		ua = "IE";
		break;
	case navigator.userAgent.indexOf("Gecko")>-1 :
		ua = "FF";
		window.captureEvents(Event.MOUSEMOVE);
		window.onmousemove = function(e){mouseX = e.pageX; mouseY = e.pageY};
		break;
}

function gE(id)
{
	return document.getElementById(id);
}