function infoNavigatorgetNavigatorInfo()
{
   	if(this.opera == true)
	{	 
		if(this.opera9up)
			this.navig = "opera9up";
		else if(this.opera9)
			this.navig = "opera9";
		else if(this.opera8)
			this.navig = "opera8";
		else if(this.opera7)
			this.navig = "opera7";
   		else if(this.opera5)   
			this.navig = "opera5";
		else if(this.opera4) 
   			this.navig = "opera4";
   		else if(this.opera3)
			this.navig = "opera3";
		else if(this.opera2 == true)  
			this.navig = "opera2";  	
   	}
	else if(this.ie == true)
	{
		if(this.ie6up)
   			this.navig = "ie6up";
   		else if(this.ie6)   
   			this.navig = "ie6";
   		else if(this.ie5_5up) 
   			this.navig = "ie5_5up";
   		else if(this.ie5up)  
   			this.navig = "ie5up";
   		else if(this.ie5_5)  	
   			this.navig = "ie5_5";
   		else if(this.ie5)   
			this.navig = "ie5";
		else if(this.ie4up) 
   			this.navig = "ie4up";
  		else if(this.ie4)
			this.navig = "ie4";	
		else if(this.ie3 == true)  
			this.navig = "ie3";  	
   	}
	else if(this.nav == true)
	{
		if(this.gecko)  
   			this.navig = "gecko";
   		else if(this.nav7)
   			this.navig = "nav7";	
		else if(this.nav6)
			this.navig = "nav6"; 
   		else if(this.nav4up) 
   			this.navig = "nav4up";	
		else if(this.nav4)   
			this.navig = "nav4"; 
   		else if(this.nav3)  	
   			this.navig = "nav3";
   		else if(this.nav2)  
   			this.navig = "nav2";	 
   	}
}

function infoNavigatorgetPlatformInfo()
{
	if(this.win == true)
	{
		this.platform = "Windows";
		if(this.win95)
			this.os = "95";
		else if(this.win31)
			this.os = "3.1";
		else if(this.winme)
			this.os = "Millemiun";
		else if(this.win2k)
			this.os = "2000";
		else if(this.win98)
			this.os = "98";
		else if(this.winnt)
			this.os = "NT";		 	
    }
    else if(this.mac == true)
	{
		this.platform = "Mac";
		if(this.mac68k)
			this.os = "68k";	
		else if(this.macppc)
			this.os = "ppc";
		else if(this.macosx)
			this.os = "osx";
    }
}

function InfoNavigator()	
{
	var agt = navigator.userAgent.toLowerCase();
	this.major = parseInt(navigator.appVersion);
	this.minor = parseFloat(navigator.appVersion);

/*****************************************************   Détection du type de navigateur   ******************************************************/
	
	//Détection pour Netscape
	this.nav   	 	= ((agt.indexOf('mozilla') != -1) && ((agt.indexOf('spoofer') == -1) && (agt.indexOf('compatible') == -1)));
	this.nav2 		= (this.nav && (this.major == 2));
	this.nav3 		= (this.nav && (this.major == 3));
	this.nav4 		= (this.nav && (this.major == 4));
	this.nav4up 	= (this.nav && (this.major >= 4));
	this.nav6		= (this.nav && (agt.indexOf('netscape/6') != -1));
	this.nav7		= false//(this.nav && (agt.indexOf('netscape/7') != -1));
	this.gecko		= (agt.indexOf('gecko') != -1 && !this.nav6 && !this.nav7);
	
	//Détection pour Internet Explorer
	this.ie     	= ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
    this.ie3    	= (this.ie && (this.major < 4));
    this.ie4    	= (this.ie && (this.major == 4) && (agt.indexOf("msie 4")!=-1));
    this.ie4up  	= (this.ie && (this.major >= 4) && (agt.indexOf("msie 4")!=-1));
    this.ie5    	= (this.ie && (this.major == 4) && (agt.indexOf("msie 5.0")!=-1) );
    this.ie5_5  	= (this.ie && (this.major == 4) && (agt.indexOf("msie 5.5") !=-1));
    this.ie5up  	= (this.ie && !this.ie3 && !this.ie4 && !this.ie4up);
    this.ie5_5up 	= (this.ie && !this.ie3 && !this.ie4 && !this.ie4up && !this.ie5 && !this.ie5up);
    this.ie6   	 	= (this.ie && (this.major == 4) && (agt.indexOf("msie 6.")!=-1) );
    this.ie6up  	= (this.ie && !this.ie3 && !this.ie4 && !this.ie4up && !this.ie5 && !this.ie5up && !this.ie5_5&& !this.ie5_5up && !this.ie6);
    
	//Détection pour AOL
    this.aol   		= (agt.indexOf("aol") != -1);
    this.aol3 	 	= (this.aol && this.ie3);
    this.aol4  		= (this.aol && this.ie4);
    this.aol5  		= (agt.indexOf("aol 5") != -1);
    this.aol6  		= (agt.indexOf("aol 6") != -1);
    
    //Détection pour Opera
    this.opera 		= (agt.indexOf("opera") != -1);
    this.opera2 	= (agt.indexOf("opera 2") != -1 || agt.indexOf("opera/2") != -1);
    this.opera3 	= (agt.indexOf("opera 3") != -1 || agt.indexOf("opera/3") != -1);
    this.opera4 	= (agt.indexOf("opera 4") != -1 || agt.indexOf("opera/4") != -1);
    this.opera5 	= (agt.indexOf("opera 5") != -1 || agt.indexOf("opera/5") != -1);
    this.opera7     = (agt.indexOf("opera 7") != -1 || agt.indexOf("opera/7") != -1);
    this.opera8     = (agt.indexOf("opera 8") != -1 || agt.indexOf("opera/8") != -1);
   	this.opera9     = (agt.indexOf("opera 9") != -1 || agt.indexOf("opera/9") != -1);
   	this.opera9up   = (this.opera && !this.opera2 && !this.opera3 && !this.opera4 && !this.opera5 && !this.opera7&& !this.opera8 && !this.opera9); 	
    		
/***************************************************   Détection du système d'exploitation   ****************************************************/
	
	//Détection pour Windows
	this.win   		= ((agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1));
    this.win95 		= ((agt.indexOf("win95")!=-1) || (agt.indexOf("windows 95")!=-1));
    this.win31 		= ((agt.indexOf("windows 3.1")!=-1) || (agt.indexOf("win16")!=-1) || (agt.indexOf("windows 16-bit")!=-1));
    this.winme 		= ((agt.indexOf("win 9x 4.90")!=-1));
    this.win2k 		= ((agt.indexOf("windows nt 5.0")!=-1));
    this.win98 		= ((agt.indexOf("win98")!=-1) || (agt.indexOf("windows 98")!=-1));
    this.winnt 		= ((agt.indexOf("winnt")!=-1) || (agt.indexOf("windows nt")!=-1));
	
	//Détection pour OS/2
    this.os2   		= ((agt.indexOf("os/2")!=-1) || (navigator.appVersion.indexOf("OS/2")!=-1) || (agt.indexOf("ibm-webexplorer")!=-1));
    
    //Détection pour MAC
    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)));
    this.macosx		= (this.mac && ((agt.indexOf("mac os x")!=-1) || (agt.indexOf("mach-o")!=-1)));

	this.getNavigatorInfo = infoNavigatorgetNavigatorInfo;
	this.getPlatformInfo = infoNavigatorgetPlatformInfo;
	this.navig;
	this.platform;
	this.os;
	this.javaScript;
	this.larg = (screen.width) ? screen.width : screen.innerWidth;
	this.haut = (screen.height) ? screen.height : screen.innerHeight;	
}