var chrono = null;

function mouseMoveInfoBulle(evt) {
    __left=evt.clientX;
	__top=evt.clientY;
	go(500);
}

function go(t)
{
clearTimeout(__chrono); //reset du chrono
document.getElementById("divInfoBulle").style.visibility = "hidden";
__chrono = setTimeout("stop()", t);
}

function stop()
{
	if (requeteEnCours == false) {
		voirInfoBulle("infoBulle&x1=" + __left + "&y1=" + __top);
	}
}

function out()
{
clearTimeout(__chrono);
}

function positionnerDivA()
{
	monDiv = document.getElementById("divInfoBulle");
	if ( (__top + 25 + monDiv.offsetHeight) > heightPixel ){
		pHaut = __top - 5 - monDiv.offsetHeight;
	} else {
		pHaut = __top + 25;
	}
    monDiv.style.top = pHaut;
	
	if ( (__left + monDiv.offsetWidth) > widthPixel ){
		pGauche = widthPixel - monDiv.offsetWidth;
	} else {
		pGauche = __left;
	}
    monDiv.style.left = pGauche;
    monDiv.style.visibility = "visible";
    
    clearTimeout(chrono);
    chrono = setTimeout("hide()", 2000);
    
}

function hide()
{
	monDiv = document.getElementById("divInfoBulle");
	monDiv.style.visibility = "hidden";
	clearTimeout(chrono);    
}
