/* 
scripts détéctant le navigateur du client
Auteur: Mathieu Meylan
*/
var navig = navigator.appName; // On récupère le nom du navigateur
var version = navigator.appVersion; //Et la version du navigateur

	if (version.search("MSIE 8.0") != -1 && navig.search("Microsoft")!=-1 ){ //Si c'est Internet Explorer 8, on inclut explorer7.css
	   document.write("<link rel='stylesheet' type='text/css' media='screen' href='style/explorer7.css' />");
	   document.write("<link rel='stylesheet' type='text/css' media='print' href='style/explorer7.css' />");   
    }
	
	if (version.search("MSIE 7.0") != -1 && navig.search("Microsoft")!=-1 ){ //Si c'est Internet Explorer 7, on inclut explorer7.css
	   document.write("<link rel='stylesheet' type='text/css' media='screen' href='style/explorer7.css' />");
	   document.write("<link rel='stylesheet' type='text/css' media='print' href='style/explorer7.css' />");   
    }
   
	else if ( version.search("MSIE 6.0")!= -1 && navig.search("Microsoft")!=-1  ){ //Si c'est Internet Explorer 6,on inclut explorer6.css
	   document.write("<link rel='stylesheet' type='text/css' media='screen' href='style/explorer6.css' />");
	   document.write("<link rel='stylesheet' type='text/css' media='print' href='style/explorer6.css' />");   
    }
	
	else if (  navig.search("Netscape")!= -1  ){ //Si c'est Netscape, on inclut firefox.css
		document.write("<link rel='stylesheet' type='text/css' media='screen' href='style/firefox.css' />");
		document.write("<link rel='stylesheet' type='text/css' media='print' href='style/firefox.css' />");   
	}   
	
	else if ( navig.search("Opera")!=-1  ){ //Si c'est Opera, on inclut explorer7.css
	   document.write("<link rel='stylesheet' type='text/css' media='screen' href='style/explorer7.css' />");
	   document.write("<link rel='stylesheet' type='text/css' media='print' href='style/explorer7.css' />");   
    }

	else{ //Pour tout le reste, on inclut explorer 7
	   document.write("<link rel='stylesheet' type='text/css' media='screen' href='style/explorer7.css' />");
	   document.write("<link rel='stylesheet' type='text/css' media='print' href='style/explorer7.css' />"); 
    }
