  var IsIE;
  function BrowserCheck()
	{
	
		// Collect the information
		var ver = navigator.appVersion;
		var iParen = ver.indexOf("(", 0);
		navigator.clientVersion = ver.substring(0, iParen-1);
		var info = new Array();
		info = ver.substring(iParen+1, ver.length-1).split(";");
		navigator.platformInfo = info[0];
		navigator.info = info[1];
		navigator.extraInfo = info[2];
		var s;
				
		// Check for IE first. If it is, make use the INFO item
		// to verify the version. If not (i.e., it's Netscrape),
		// then use the clientVersion item.
		var sVer, sInfo, sIEversion;
		sInfo = navigator.info;
		if ( navigator.clientVersion.indexOf("[",0) )
		{
			sVer = navigator.clientVersion.slice( 0, navigator.clientVersion.indexOf("[",0 ) );
		}
		else
		{
			sVer = navigator.clientVersion;
		}
		
		if ( sInfo.indexOf("MSIE", 0) >=0 )
		{
			// We have IE, so check the version in the Info string
			if ( sInfo.slice( sInfo.indexOf("MSIE", 0) + 5 )  >= "4" )
			{
				IsIE=true;
			}
			else
			{
		        IsIE=false; //older version of IE
			}
		}
		else // Assume Netscrape
		{
            IsIE=false;
		}
	} // function BrowserCheck