var x=0;y=0;
// SERT A POSITIONNER LE CALQUE PAR RAPPORT A LA SOURIS : L'ELOIGNER
var ecartx=10;ecarty=10;

function affiche_info(texte) 
{
// CE QUI VA ETRE AFFICHE DANS LE CALQUE
contenu="<table border=\"1\" width=\"250\"><tr bgcolor=\"white\"><td>"+texte+"</td></tr></table>";

  var positionx=x-ecartx;
  if (positionx<0) positionx=0;
  
  if (document.all) 
  {
    bulle.innerHTML=contenu;
    document.all["bulle"].style.top=y+ecarty;
    document.all["bulle"].style.left=positionx;
    document.all["bulle"].style.visibility="visible";
  }
}

function getMousePos(e) 
{
  if (document.all) {
  x=event.x+document.body.scrollLeft; // RECUPERE L'ABSCISSE
  y=event.y+document.body.scrollTop;  // RECUPERE L'ORDONNEE
  }
}

function disparaitre() 
{ // PERMET DE CACHER LE CALQUE UNE FOIS LA SOURIS HORS DU LIEN
if (document.all) {			document.all["bulle"].style.visibility="hidden";		}
}

function InitBulle() 
{
	if (document.all) 
	{
		document.write("<DIV id='bulle' style='position:absolute;top:0;left:0;visibility:hidden'></DIV>");
		// RECUPERE LA POSITION DE LA SOURIS A CHACUN DE SES MOUVEMENTS
		document.onmousemove=getMousePos;
	}
}
InitBulle();