/////////////////////////////////
// Position de la souris
/////////////////////////////////

// OBJET curseur 
function curseur()
{
	var Cx = 0;
	var Cy = 0;
	this.fleche="";

	this.maj = function(x,y)
	{
		Cx = x;
		Cy = y;
	}
	this.getY = function()
	{
		return Cy;
	}
	this.getX = function()
	{
		return Cx;
	}
	
	return this;
}
curseur = new curseur();	

function positionCurseur(e) { 
	var posx = 0;
	var posy = 0;
	if (!e) var e = window.event;
	if (e.pageX || e.pageY) 	
	{
		posx = e.pageX;
		posy = e.pageY;
	}
	else if (e.clientX || e.clientY) 	
	{
		posx = e.clientX + document.body.scrollLeft
			+ document.documentElement.scrollLeft;
		posy = e.clientY + document.body.scrollTop
			+ document.documentElement.scrollTop;
	}

//		Cx = bw.ns4 || bw.ns5?e.pageX:event.x
//		Cy = bw.ns4 || bw.ns5?e.pageY:event.y
		curseur.maj(posx,posy);
} 


document.onmousemove=positionCurseur;

