<!--
//types
function Point(x,y) {  this.x = x; this.y = y; }

//global vars
var IE = document.all?true:false;
var mouseLocation = new Point(-500,-500);
var static_location = '';

//functions
function getMouseLoc(e)
{
	if(!IE)
	{
		mouseLocation.x = e.pageX;
		mouseLocation.y = e.pageY;
	}
	else
	{
		mouseLocation.x = event.x + document.body.scrollLeft;	
		mouseLocation.y = event.y + document.body.scrollTop;	
	}
	return true;
}

function registerClickPos(e)
{
	if (!IE) getMouseLoc;
    if (IE) getMouseLoc();
	
	iMouseX = mouseLocation.x;
	iMouseY = mouseLocation.y;
	
	//alert('Save: '+iMouseX+'/'+iMouseY);
	if (static_location == '')
		RequestInformation("stat", "addsys/savemousestatics.php?mx="+iMouseX+"&my="+iMouseY+"&siteident="+document.location, 0);
	else
		RequestInformation("stat", "addsys/savemousestatics.php?mx="+iMouseX+"&my="+iMouseY+"&siteident="+static_location, 0);
}

document.write('<div id="stat" style="position:absolute; display:none;"></div>');
if (!IE) document.captureEvents(Event.MOUSEMOVE);
document.onmousemove = getMouseLoc;
document.onclick = registerClickPos;
-->