var IB=new Object;
var posX=0;posY=0;

function AffBulle(texte,xOffset,yOffset,bulle) {
  var finalPosX=posX+xOffset;

  contenu='<TABLE border="0" cellspacing="0" cellpadding="'+IB.NbPixel+'" width="250"><TR bgcolor="'+IB.ColContour+'"><TD><TABLE border="0" cellpadding="2" cellspacing="0" bgcolor="'+IB.ColFond+'" width="100%"><TR><TD><FONT style="color:'+IB.ColTexte+';font-family: verdana;font-size:8pt;font-weight:normal;">'+texte+'</FONT></TD></TR></TABLE></TD></TR></TABLE>&nbsp;';

  if (finalPosX<0) finalPosX=0;
  document.getElementById(bulle).innerHTML=contenu;
  document.getElementById(bulle).style.top=posY+yOffset;
  document.getElementById(bulle).style.left=finalPosX;
  document.getElementById(bulle).style.visibility="visible";
};

function UnHide(bulle) {
  document.getElementById(bulle).style.visibility="visible";
};

function AffBulleabs(texte,x,y,bulle,align) {
  var finalPosX=x;

  contenu='<TABLE border="0" cellspacing="0" cellpadding="'+IB.NbPixel+'" width="120"><TR bgcolor="'+IB.ColContour+'"><TD><TABLE border="0" cellpadding="2" cellspacing="0" bgcolor="'+IB.ColFond+'" width="100%"><TR><TD align="'+align+'"><FONT style="color:'+IB.ColTexte+';font-family: verdana;font-size:8pt;font-weight:normal;">'+texte+'</FONT></TD></TR></TABLE></TD></TR></TABLE>&nbsp;';

  if (finalPosX<0) finalPosX=0;
  document.getElementById(bulle).innerHTML=contenu;
  document.getElementById(bulle).style.top=y;
  document.getElementById(bulle).style.left=x;
  document.getElementById(bulle).style.visibility="visible";
};

function HideBulle(bulle) {
 document.getElementById(bulle).style.visibility="hidden";
};

 function getMousePos(e) {
      if (document.all)
      {
         posX=event.x+document.body.scrollLeft;
         posY=event.y+document.body.scrollTop;
      }
      else
      {
         posX=e.pageX;
         posY=e.pageY;
      }
};

function InitBulle(ColTexte,ColFond,ColContour,NbPixel) {
      IB.ColTexte=ColTexte;
      IB.ColFond=ColFond;
      IB.ColContour=ColContour;
      IB.NbPixel=NbPixel;

      document.onmousemove=getMousePos;
};





