// ============================================================================
function surligner(obj, couleur){
	obj.style.backgroundColor= couleur;
}
function desurligner(obj, couleur){
	obj.style.backgroundColor= couleur;
}
function desurlignerVide(obj){
	obj.style.backgroundColor= "";
}
// ============================================================================

if (top.frames.length!=0) top.location=self.document.location;
// ============================================================================

// demande de confirmation
function Confirm(url, msg){
	ans=window.confirm(''+msg+'');
	if(ans) window.location.replace(url);
}
// ============================================================================

function VersionNavigateur(Netscape, Explorer) {
	if ((navigator.appVersion.substring(0,3) >= Netscape && navigator.appName == 'Netscape') || (navigator.appVersion.substring(0,3) >= Explorer && navigator.appName.substring(0,9) == 'Microsoft')) return true;
	else return false;
}
var bName;
var bVer;
var ver;

bName = navigator.appName;
bVer = parseInt(navigator.appVersion);
<!--   if      (bName == "Netscape" && bVer &gt;= 3) ver = "ok";-->
if      (bName == "Netscape" && bVer >= 3) ver = "ok";
else if (bName == "Netscape" && bVer == 2) ver = "n2";
else if (bName == "Microsoft Internet Explorer" && bVer == 3) ver = "e3";
else if (bName == "Microsoft Internet Explorer" && bVer == 4) ver = "ok";         

if (ver == 'ok') {
	Lien1_Off = "./img/MenuEntreDeuxNoirBlanc.gif";
	Lien1_On = "./img/MenuEntreDeuxNoirBlancOn.gif";
	Lien2_Off = "./img/MenuEntreDeuxBlancNoir.gif";
	Lien2_On = "./img/MenuEntreDeuxBlancNoirOn.gif";
	Lien3_Off = "./img/MenuEntreDeuxNoirBlanc.gif";
	Lien3_On = "./img/MenuEntreDeuxNoirBlancOn.gif";
	Lien4_Off = "./img/MenuEntreDeuxBlancNoir.gif";
	Lien4_On = "./img/MenuEntreDeuxBlancNoirOn.gif";
	Lien5_Off = "./img/MenuEntreDeuxNoirBlanc.gif";
	Lien5_On = "./img/MenuEntreDeuxNoirBlancOn.gif";
	Lien6_Off = "./img/MenuEntreDeuxNoirBlanc.gif";
	Lien6_On = "./img/MenuEntreDeuxNoirBlancOn.gif";
	Lien7_Off = "./img/MenuEntreDeuxBlancNoir.gif";
	Lien7_On = "./img/MenuEntreDeuxBlancNoirOn.gif";
}

var IB=new Object;
var posX=0;posY=0;
var xOffset=10;yOffset=18; 
function AffBulle(texte) {
	contenu="<table border=0 cellspacing=0 cellpadding="+IB.NbPixel+"><tr bgcolor='"+IB.ColContour+"'><td><table border=0 cellpadding=1 cellspacing=0 bgcolor='"+IB.ColFond+"'><tr><td class=text11><font color='"+IB.ColTexte+"'>&nbsp;"+texte+"&nbsp;</FONT></td></tr></table></td></tr></table>";
	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 HideBulle() {
	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";
	}
}

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='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>");
	}
}
InitBulle("#000000","#FFFFE1","#000000",1);
