
    function isIE() {
        if (navigator.appName.indexOf("Microsoft") == -1) return false;
        var pos = navigator.appVersion.indexOf("MSIE") + 5;
        return navigator.appVersion.substring(pos, pos+3) * 1;
    }
                        
    // Renvoie le numéro de version d'un navigateur Netscape ou false
    function isNet() {
        if (navigator.appName.indexOf("Netscape") == -1) return false;  
        return navigator.appVersion.substring(0,3) * 1;
    }

function alertNav(){
szIE="vous devez avoir Microsoft Internet Explorer 5.x au minimum pour consulter l'argus !";
szNS="vous devez avoir Netscape 6.x au minimum pour consulter l'argus !";
szAlert="Désolé, pour des raisons techniques et de confort de navigation, "

	var IE = isIE();
	if ( IE != false) { 
		if ( IE < 5 ) alert ( szAlert+szIE );return;}
	var NS = isNet();
	if ( NS != false) 
		if ( NS < 5 ) alert ( szAlert+szNS);
}
function loadCSS() {
	var css="styles.css";
	if (navigator.appName=="Netscape") {css="stylesns.css";}
	if (navigator.appName=="Microsoft Internet Explorer") {css="styles.css";}
	document.write("<LINK rel='StyleSheet' type='text/css' href='"+css+"'>");
}
function mailpage()
{
 chaine_mail = "mailto:?subject= Sur ALL HTML : " + document.tiltle;
 chaine_mail += "&body= Je recommande cette page : " + document.tiltle;
 chaine_mail += ". Consultable à l'adresse : " + location.href; 
 location.href = chaine_mail;
}

function borderOn()
{ 	
	this.className = "tableOver";
}
function borderOff()
{ 	
	this.className = "tableOut";
}

function ShowOnOff(name)
{
	var Obj = document.getElementById(name);
	var ImgFl = document.getElementById("fl" + name);
	if ( Obj.style.display != "block" )
	{
		Obj.style.display = "block";
		ImgFl.src = arrows[1].src;
		
	}
	else
	{
		Obj.style.display = "none";
		ImgFl.src = arrows[0].src;
	}
}

function ShowOnOffWin(name)
{
	var Obj = document.getElementById(name);
	if ( Obj.style.display == "none" )
	{
		Obj.style.position = "absolute";
		Obj.style.zindex = 1;	
		Obj.style.display = "block";
	}
	else
	{
		Obj.style.display = "none";
	}
}

var arrows;
function LoadArrows ()
{
	var arrow;
	arrows = new Array;
	arrows[0] = new Image;
	arrows[0].src = "../images/right.gif";
	arrows[1] = new Image;
	arrows[1].src = "../images/bottom.gif";
	
}

function AffectBorderOn ()
{
  var obj = document.getElementById("TableInfos");
  obj.onmouseover = borderOn;
  obj.onmouseout = borderOff;
  obj = document.getElementById("MenuStats");
  obj.onmouseover = borderOn;
  obj.onmouseout = borderOff;
  obj = document.getElementById("TableMenu");
  obj.onmouseover = borderOn;
  obj.onmouseout = borderOff;				
}