<!-- 
// -----------------------------------------------------------
// 											http://www.antares-sa.fr 
// -----------------------------------------------------------
// Fichier		:  fct_browsercheck.js
// Description	:  detection du navigateur
// Date			:  juillet 2002
// -----------------------------------------------------------
// Prototypes	:
// 	function check_browser 
// -----------------------------------------------------------
// Utilisation	:
//			if (is.ns) { // action}
// 		if (is.ie) { // action}

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.ie = (this.b=="ie" && this.v>=4)
	this.ie4 = (navigator.userAgent.indexOf('MSIE 4')>0)
	this.ie5 = (navigator.userAgent.indexOf('MSIE 5')>0)

	if (this.ie5) {this.v = 5;}
	
	this.min = (this.ns||this.ie)
	
	agt = navigator.userAgent.toLowerCase(); 
	
	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;
}
//-->

