
var maBulle=new Object;
var posX=0;
var posY=0;
var xOffset=10;
var yOffset=10;

function bulleShow(texte,titre) {
	var contenu="<table border=0 cellspacing=0 width="+maBulle.Largeur+" cellpadding="+maBulle.NbPixel+"><TR bgcolor='"+maBulle.ColContour+"'><TD class='fontblanc3'><b>"+titre+"</b><TABLE width='100%' border=0 cellpadding=2 cellspacing=0 bgcolor='"+maBulle.ColFond+"'><TR><TD class='fontbleu2' width='100%'>"+texte+"</TD></TR></TABLE></TD></TR></TABLE>&nbsp;";
	var finalPosX=posX-xOffset;
	if (finalPosX<0)
		finalPosX=0;
	if (document.layers) {
		document.layers["bulle"].document.write(contenu);
		document.layers["bulle"].document.close();
		document.layers["bulle"].top=posY+yOffset;
		document.layers["bulle"].left=finalPosX;
		document.layers["bulle"].visibility="show";
		}
	if (document.all) {
		bulle.innerHTML=contenu;
		document.all["bulle"].style.top=posY+yOffset;
		document.all["bulle"].style.left=finalPosX;
		document.all["bulle"].style.visibility="visible";
		}
		else if (document.getElementById) {
			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 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 bulleCreate(ColTexte,ColFond,ColContour,NbPixel,Police,Largeur) {
	maBulle.ColTexte=ColTexte;
	maBulle.ColFond=ColFond;
	maBulle.ColContour=ColContour;
	maBulle.NbPixel=NbPixel;
	maBulle.Police=Police;
	maBulle.Largeur=Largeur; 
	if (document.layers) {
		window.captureEvents(Event.MOUSEMOVE);window.onMouseMove=getMousePos;
		document.write("<LAYER name='bulle' top=0 left=0 visibility='hide'></LAYER>");
		}
	if (document.all) {
		document.write("<DIV id='bulle' style='position:absolute;top:0;left:0;visibility:hidden'></DIV>");
		document.onmousemove=getMousePos;
		}
	else if (document.getElementById) {
	        document.onmousemove=getMousePos;
	        document.write("<DIV id='bulle' style='position:absolute;top:0;left:0;visibility:hidden'></DIV>");
		}
	}
	
function bulleHide() {
	if (document.layers)
		{document.layers["bulle"].visibility="hide";}
	if (document.all)
		{document.all["bulle"].style.visibility="hidden";}
		else 
		if (document.getElementById)
			{document.getElementById("bulle").style.visibility="hidden";}
	}
