is = new check_browser()

function check_browser() {
	var brows;
	var agt;
         
	this.b = null;
	this.v = null;
         
	brows = navigator.appName;
	
	if (brows=="Netscape") 
	{
		this.b = "ns";
	}
	else if (brows=="Microsoft Internet Explorer") 
	{
		this.b = "ie";
	}
	else 
	{
		this.b = b;
	}

	this.version = navigator.appVersion
	this.v = parseInt(this.version)
		
	this.ns = (this.b=="ns" && this.v>=4)
	this.ns4 = (this.b=="ns" && this.v==4)
	this.ns5 = (this.b=="ns" && this.v==5)
	this.ns6 = (this.b=="ns" && this.v==6)	
	this.ns7 = (this.b=="ns" && this.v==7)	

	this.ie = (this.b=="ie" && this.v>=4)
	this.ie4 = (navigator.userAgent.indexOf('MSIE 4')>0)
	this.ie5 = (navigator.userAgent.indexOf('MSIE 5')>0)
	this.ie6 = (navigator.userAgent.indexOf('MSIE 6')>0)

	if (this.ie5) {this.v = 5;}
	if (this.ie6) {this.v = 4;}
	
	this.min = (this.ns||this.ie)
	
	agt = navigator.userAgent.toLowerCase(); 

 	this.pc  = (agt.indexOf("win") != -1);	
	this.mac    = (agt.indexOf("mac")!=-1); 
	this.mac68k = (this.mac && ((agt.indexOf("68k")!=-1) || (agt.indexOf("68000")!=-1))); 
	this.macppc = (this.mac && ((agt.indexOf("ppc")!=-1) || (agt.indexOf("powerpc")!=-1))); 

	return;
}

//
// Retourne la langue de votre navigateur.
//

function getBrowserLanguage()
{
	s='';
	
	if ( is.ie )
	{
		s=navigator.browserLanguage;
	}
	else if ( is.ns )
	{
		s=navigator.language;
	}
	return(s);
}
