/*
var MOUSEX = 0;
var MOUSEY = 0;


function getPosition(p){
 var x = (navigator.appName.substring(0,3) == "Net") ? p.pageX : event.x+document.body.scrollLeft;
 var y = (navigator.appName.substring(0,3) == "Net") ? p.pageY : event.y+document.body.scrollTop;

*/
/*Ca peut servir a nimporte qui !!!*/
/*
MOUSEX = x;
MOUSEY = y;


	if(typeof(MOUSEmenu) == 'function'){
  MOUSEmenu(x,y);
	}
	if(typeof(MOUSEpopup) == 'function'){*/
/*	document.getElementById("test").innerHTML = '('+x+'/'+y+')';
 *//*
	MOUSEpopup(x,y);
	}

	if(typeof(MOUSEdad) == 'function'){
  MOUSEdad(x,y);
	}

	if(typeof(MOUSEwidget) == 'function'){
  MOUSEwidget(x,y);
	}

	if(typeof(calendar)=='object'){
	 if(typeof(calendar.getMouse) == 'function'){
   calendar.getMouse(x,y);
	 }
	}
	
	if(typeof(MOUSEinfobulle) == 'function'){
  MOUSEinfobulle(x,y);
 }
}*/



/*
if(navigator.appName.substring(0,3) == "Net"){
 document.captureEvents(Event.MOUSEMOVE);
}
document.onmousemove = getPosition;
*/





//Objet accessible partout pour connaitre la position du curseur (cursor.x & cursor.y)
var cursor = {
  x : 0,
  y : 0
}

document.onmousemove = function(e) //e(type : event) pour ie seulement
{
  var x = e ? e.pageX : event.x + document.body.scrollLeft;
  var y = e ? e.pageY : event.y + document.body.scrollTop;
  
  cursor.x = x;
  cursor.y = y;
  
  if(typeof(MOUSEmenu) == 'function')
  {
    MOUSEmenu(x,y);
	}
	if(typeof(MOUSEpopup) == 'function')
	{
	  MOUSEpopup(x,y);
	}

	if(typeof(MOUSEdad) == 'function')
	{
    MOUSEdad(x,y);
	}

	if(typeof(MOUSEwidget) == 'function')
	{
    MOUSEwidget(x,y);
	}

if(typeof(MOUSEnoel) == 'function')
	{
    MOUSEnoel(x,y);
	}


	if(typeof(calendar) == 'object')
	{
    if(typeof(calendar.getMouse) == 'function')
    {
      calendar.getMouse(x,y);
    }
	}
	
	if(typeof(MOUSEinfobulle) == 'function')
	{
    MOUSEinfobulle(x,y);
  }
};
