<!--

/* 
Crˇe un objet de type browser contenant les infos sur le browser utilisˇ.
Propriˇtˇs :
 - type : le type de browser
   	. "IE"     : Microsoft Internet Explorer
   	. "NS"     : Netscape Navigator/Communicator
   	. ""       : inconnu
 - version : gˇnˇration du browser
   	. 4 : 4¸me gˇneration => MSIE 4.0x ou Netscape Navigator 4.x
   	. 3 : 3¸me gˇnˇration => MSIE 3.0x ou Netscape Navigator 3.0x
   	. 2 : 2¸me gˇnˇration
	. 0 : inconnue
 - environment : syst¸me d'exploitation/famille/machine
 	. "Unix"      : Unix (Linux, Solaris, HPUX, AIX, ...)
	. "Windows"   : Microsoft Windows (3.11,95,NT)
	. "Macintosh" : Macintosh 
	. ""          : inconnu 
*/

function browser(){
	// Get browser type
	if(navigator.appName == "Netscape")
	{
		this.type="NS";
	}
	else if(navigator.appName == "Microsoft Internet Explorer")
	{
		this.type="IE";
	}
	else
	{
		this.type="";
	}
	
	// Get the environment
	if(navigator.appVersion.indexOf("X11")>=0)
	{
		this.environment="Unix";
	}
	else if(navigator.appVersion.indexOf("Win")>=0)
	{
		this.environment="Windows";
	}
	else if(navigator.appVersion.indexOf("Macintosh")>=0)
	{
		this.environment="Macintosh"
	}
	else
	{
		this.environment="";
	}

	// Get version
	if(this.type)  // can only get version of known browsers
	{
		if(parseInt(navigator.appVersion)>=4)
		{
	    	this.version=4;
	  	}
		else if(parseInt(navigator.appVersion)==3)
		{
	    	this.version=3;
		}
		else if(parseInt(navigator.appVersion)==2)
		{
	    	this.version=2;
		}
		else
		{
			this.version=0;
		}
	}
	else
	{
		this.version=0;	
	}
}
// -->



<!--
pop = window.document;

function avert_on(page){
	var br= new browser();
	if ((br.version==3) && (br.type=="NS")) {
		pop = window.open(page,"avert","height=300,width=400,status=0,screenX=0,screenY=0,left=10,top=10,location=no,menubar=yes,toolbar=no,scrollbars=yes,resizable=yes");
		pop.focus();
	}
}

function avert_off() {
	if (pop.name==null || pop.closed){
	}
	else{
	pop.close()
	}	
}
// -->