




	function getInternetExplorerVersion()
	// Returns the version of Internet Explorer or a -1
	// (indicating the use of another browser).
	{
	  var rv = -1; // Return value assumes failure.
	  if (navigator.appName == 'Microsoft Internet Explorer')
	  {
	    var ua = navigator.userAgent;
	    var re  = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
	    if (re.exec(ua) != null)
	      rv = parseFloat( RegExp.$1 );
	  }
	  return rv;
	}







	
	function checkVersion()
	{
	  var msg = "-You're not using Internet Explorer.";
	  var ver = getInternetExplorerVersion();
	
	  if ( ver > -1 )
	  {
	    if ( ver >= 7.0 )
	    { 
	      msg = "-You're using a recent copy of Internet Explorer."
	    }
	    else
	    {
	      msg = "-You should upgrade your copy of Internet Explorer.";
	    }
	  }
	  alert( msg );
	}









	function detectNavigateurStyle(cssFixed1,cssFixed2)
	{
		checkWindowWidthHeight();
		
		var browserName	=navigator.appName; 
		var browserVer	=parseInt(navigator.appVersion);	

		if (myHeight > 785)
		{				

			var newcss = document.getElementById('cssstylenew');

			if (browserName!="Microsoft Internet Explorer")
			{
		  	var msg = ":: You're not using Internet Explorer.";
				
				newcss.href=cssFixed1;
			}
			else
			{
				var versionIE = getInternetExplorerVersion();

			  if ( versionIE > -1 )
			  {
			    if ( versionIE >= 8.0 )
			    { 
			      msg = ":: You're using a recent copy of Internet Explorer. IE8 or higher"
						newcss.href=cssFixed1;
			    }
			    else if ( versionIE >= 7.0 )
			    { 
			      msg = ":: You're using a recent copy of Internet Explorer. IE7 or higher"
						newcss.href=cssFixed2;
			    }
			    else
			    {
			      msg = ":: You should upgrade your copy of Internet Explorer. Below IE7";
			    }
			  }
			}						
		}		
	}








	function detectNavigateurCSS()
	{
		checkWindowWidthHeight();
		
		var browserName	=navigator.appName; 
		var browserVer	=parseInt(navigator.appVersion);	

		if (myHeight > 785)
		{				

			if (browserName!="Microsoft Internet Explorer")
			{
		  	var msg = ":: You're not using Internet Explorer.";
				
				setActiveStyleSheet("layout1");
			}
			else
			{
				var versionIE = getInternetExplorerVersion();

			  if ( versionIE > -1 )
			  {
			    if ( versionIE >= 8.0 )
			    { 
						setActiveStyleSheet("layout1");
			    }
			    else if ( versionIE >= 7.0 )
			    { 
			      setActiveStyleSheet("layout2");
			    }

			  }
			}						
		}		
	}	









	function setNavigateurCSS(valueHeight,valueWidth)
	{
		checkWindowWidthHeight();
		
		var ccsHeight = valueHeight;
		var cssWidth	= valueWidth;
		
		var browserName	=navigator.appName; 
		var browserVer	=parseInt(navigator.appVersion);	

		if (myHeight > ccsHeight)
		{				

			if (browserName!="Microsoft Internet Explorer")
			{
		  	var msg = ":: You're not using Internet Explorer.";
				
				setActiveStyleSheet("layout1");
			}
			else
			{
				var versionIE = getInternetExplorerVersion();

			  if ( versionIE > -1 )
			  {
			    if ( versionIE >= 8.0 )
			    { 
						setActiveStyleSheet("layout1");
			    }
			    else if ( versionIE >= 7.0 )
			    { 
			      setActiveStyleSheet("layout2");
			    }

			  }
			}						
		}		
	}	






	function setNavigateurCSScoffrets(valueHeight,valueWidth)
	{
		checkWindowWidthHeight();
		
		var ccsHeight = valueHeight;
		var cssWidth	= valueWidth;
		
		var browserName	=navigator.appName; 
		var browserVer	=parseInt(navigator.appVersion);	

		if (myHeight > ccsHeight)
		{				

			if (browserName!="Microsoft Internet Explorer")
			{
		  	var msg = ":: You're not using Internet Explorer.";
				
				setActiveStyleSheet("layout1");
			}
			else
			{
				var versionIE = getInternetExplorerVersion();

			  if ( versionIE > -1 )
			  {
			    if ( versionIE >= 8.0 )
			    { 
						setActiveStyleSheet("layout1");
			    }
			  }
			}						
		}		
	}	




	

	function checkWindowWidthHeight()
	{
	  myWidth = 0;
	  myHeight = 0;
	  
	  if( typeof( window.innerWidth ) == 'number' ) 
	  {
	    //Non-IE
	    myWidth = window.innerWidth;
	    myHeight = window.innerHeight;
	  } 
	  else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) 
	  {
	    //IE 6+ in 'standards compliant mode'
	    myWidth = document.documentElement.clientWidth;
	    myHeight = document.documentElement.clientHeight;
	  } 
	  else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) 
	  {
	    //IE 4 compatible
	    myWidth = document.body.clientWidth;
	    myHeight = document.body.clientHeight;
	  }
	}
