function getLayerHTML(uid,type) {
	//strDIV = '<div id="displayTextHeader" style="padding:0px;border:solid black 0px;width:100%;text-align:right;">&nbsp;<a href="javascript:HideBulle();" class="subMenuClose">Fermer - x</a></div>';
	//strDIV = '<div id="displayTextHeader" style="padding:0px;border:solid black 0px;width:100%;text-align:right;">&nbsp;<a class="subMenuClose" href="#">Fermer - x</a></div>';
	strDIV = '<div id="displayTextCore" style="padding:0px;padding-left:10px;"></div>';
	
	AffBulle(strDIV);
	ajaxCallDynamicPage ("typo3conf/ext/etnic_plugins/services/cfwb_portail_display_infos_submenu.php?uid="+uid+"&type="+type+"","displayTextCore","self","Chargement en cours...","border:solid 0px orange;background:#FFFFFF;padding:0px;font-weight:bold;position:relative;");
}


//D'autres scripts sur http://www.toutjavascript.com
//Si vous utilisez ce script, merci de m'avertir !  < webmaster@toutjavascript.com >
//Auteur original :Olivier Hondermarck  <webmaster@toutjavascript.com>
//Modifs compatibilité Netscape 6/Mozilla : Cédric Lamalle 09/2001 <cedric@cpac.embrapa.br>
//Correction Mac IE5 (Merci Fred)

var IB=new Object;
var posX=0;posY=0;
var xOffset=20;yOffset=10;
var isHidden = 1;

function AffBulle(texte) {
  if (!isHidden) {
  	HideBulle();  	
  	return;
  }
  isHidden = 0;
  
  contenu="<TABLE id='idBulle' border=0 cellspacing=0 cellpadding="+IB.NbPixel+" style='width:260px;'><TR bgcolor='"+IB.ColContour+"'><TD><TABLE width='100%' border=0 cellpadding=5 cellspacing=0 bgcolor='"+IB.ColFond+"'><TR><TD>"+texte+"</TD></TR></TABLE></TD></TR></TABLE>";
  var finalPosX=posX-xOffset;
  if (finalPosX<0) finalPosX=0;
  if (document.layers) {
    document.layers["MCFBulle"].document.write(contenu);
    document.layers["MCFBulle"].document.close();
    document.layers["MCFBulle"].top=posY+yOffset;
    document.layers["MCFBulle"].left=finalPosX;
    document.layers["MCFBulle"].visibility="show";
    document.layers["ContainerMCFBulle"].visibility="show";
    }
  if (document.all) {
    //var f=window.event;
    //doc=document.body.scrollTop;
    MCFBulle.innerHTML=contenu;
    document.all["MCFBulle"].style.top=posY+yOffset;
    document.all["MCFBulle"].style.left=finalPosX;//f.x-xOffset;
    document.all["MCFBulle"].style.visibility="visible";
    document.all["ContainerMCFBulle"].style.visibility="visible";
  }
  //modif CL 09/2001 - NS6 : celui-ci ne supporte plus document.layers mais document.getElementById
  else if (document.getElementById) {
    document.getElementById("MCFBulle").innerHTML=contenu;
    document.getElementById("MCFBulle").style.top=posY+yOffset+"px";
    document.getElementById("MCFBulle").style.left=finalPosX+"px";
    document.getElementById("MCFBulle").style.visibility="visible";
    document.getElementById("ContainerMCFBulle").style.visibility="visible";    
  }
}

function getMousePos(e) {
  if (document.all) {
  posX=event.x+document.body.scrollLeft; //modifs CL 09/2001 - IE : regrouper l'évènement
  posY=event.y+document.body.scrollTop;
  }
  else {
  posX=e.pageX; //modifs CL 09/2001 - NS6 : celui-ci ne supporte pas e.x et e.y
  posY=e.pageY;
  }
}

function HideBulle() {
	isHidden = 1;
	if (document.layers) {document.layers["MCFBulle"].visibility="hide";document.layers["ContainerMCFBulle"].visibility="hide";}
	if (document.all) {document.all["MCFBulle"].style.visibility="hidden";document.all["ContainerMCFBulle"].style.visibility="hidden";}
	else if (document.getElementById){document.getElementById("MCFBulle").style.visibility="hidden";document.getElementById("ContainerMCFBulle").style.visibility="hidden";}
}

function InitBulle(ColTexte,ColFond,ColContour,NbPixel) {
	IB.ColTexte=ColTexte;IB.ColFond=ColFond;IB.ColContour=ColContour;IB.NbPixel=NbPixel;
	if (document.layers) {
		window.captureEvents(Event.MOUSEMOVE);window.onMouseMove=getMousePos;
		document.write("<LAYER name='MCFBulle' visibility='hidden'></LAYER>");
	}
	if (document.all) {
		document.write("<DIV id='MCFBulle' style='position:absolute;visibility:hidden;top:0px;left:0px;'></DIV>");
		document.onmousemove=getMousePos;
	}
	//modif CL 09/2001 - NS6 : celui-ci ne supporte plus document.layers mais document.getElementById
	else if (document.getElementById) {
	        document.onmousemove=getMousePos;
	        document.write("<DIV id='MCFBulle' style='position:absolute;visibility:hidden;top:0px;left:0px;'></DIV>");
	}
	document.write("<DIV onclick='HideBulle();' id='ContainerMCFBulle' style='position:absolute;visibility:hidden;top:0px;left:0px;width:100%;height:100%;background:transparent;z-index:9;'></DIV>");
}

InitBulle("black","white","black",1);

