// Browser sniff// These variables are global to the included pagevar bMSIE = false;var bMSIE3 = false, bMSIE4 = false, bMSIE4_beta = false, bMSIE4_01 = false, bMSIE5 = false;var bNetscape = false;var bNetscape_2 = false, bNetscape_3 = false, bNetscape_4 = false, bNetscape_6 = false;var bWin16 = false; // includes Win31 and WinNT 3.51var bWin95 = false;var bWin98 = false;var bWinNT = false;var bWinY2 = false;var bMac = false, bMac68K = false, bMacPPC = false;var bMSSun = false;var stylesheet_pc = "/css/masterstyle_pc.css";var stylesheet_mac = "/css/masterstyle_mac.css";function browser(){    var ua = navigator.userAgent;    var an = navigator.appName;    // Is it IE?    bMSIE = (ua.indexOf("MSIE")>=1);    if (bMSIE)    {        // IE3        var MSIE3 = (ua.indexOf("MSIE 3.0")>=1);        // IE4        var iMSIE4 = ua.indexOf("MSIE 4.0");        bMSIE4 = (iMSIE4>=1);        if (bMSIE4)        {            var sMinorVer = ua.charAt(iMSIE4+8);            // Some folks are still running an IE4 beta!            // (the Mac IE team used a 'p' to mark their beta)            bMSIE4_beta = bMSIE4 && ((sMinorVer == "b") || (sMinorVer == "p"));            // IE4.01            bMSIE4_01 = bMSIE4 && (sMinorVer == "1");        }        // IE5        bMSIE5 = (ua.indexOf("MSIE 5.0")>=1);    }    else if (an == "Netscape")    {        bNetscape = true;        appVer = parseInt(navigator.appVersion);        if (appVer >= 5)        	bNetscape_6 = true;        else if (appVer >= 4)            bNetscape_4 = true;        else if (appVer >= 3)            bNetscape_3 = true;        else            bNetscape_2 = true;    }//calls the os sniffer function}// OS sniff// Call the browser() function before you call this one!function os(){    var ua = navigator.userAgent;   if (bMSIE)   {      //IE supported OS's      bWinY2 = (ua.indexOf("Windows NT 5.0")>=1);      bWin95 = (ua.indexOf("Windows 95")>=1);      bWin98 = (ua.indexOf("Windows 98")>=1);      bWinNT = (ua.indexOf("Windows NT")>=1);      bWin16 = (ua.indexOf("Windows 3.1")>=1);      bMac = (ua.indexOf("Mac")>=1);      bMac68K = (ua.indexOf("Mac_68000")>=1);      bMacPPC = (ua.indexOf("Mac_PowerPC")>=1);      bMSSun = (ua.indexOf("SunOS")>=1);        if ((bWin95) || (bWin98) || (bWinNT) || (bWin16) || bWinY2)        {			//windows IE stylesheet goes here        	document.write("<link rel='stylesheet' href='" + stylesheet_pc + "' type='text/css'>");        }        else        {			//Mac IE stylesheet goes here        	document.write("<link rel='stylesheet' href='" + stylesheet_mac + "' type='text/css'>");        }	}   else if (bNetscape)   {      // NSCP supporte OS's      bWinY2 = (ua.indexOf("Windows NT 5.0")>=1);      bWin95 = (ua.indexOf("Win95")>=1);      bWin98 = (ua.indexOf("Win98")>=1);      bWinNT = (ua.indexOf("WinNT")>=1);      bWin16 = (ua.indexOf("Win16")>=1);      bMac = (ua.indexOf("Mac")>=1);      //work around for netscape 6 for problems after a document.write      var bMac_a = bMac;      var bNetscape_a = bNetscape;      var bNetscape_6a = bNetscape_6;	  // BUGBUG: this doesn't find any of Netscape's Unix versions      if (bMac)      {         bMac68K = (ua.indexOf("68K")>=1);         bMacPPC = (ua.indexOf("PPC")>=1);      }      if ((bWin95) || (bWin98) || (bWinNT) || (bWin16) || (bWinY2))      {			//windows netscape stylesheet goes here            document.write("<link rel='stylesheet' href='" + stylesheet_pc + "' type='text/css'>");      }      else      {      		if (bNetscape_6)      		{      			document.write("<link rel='stylesheet' href='" + stylesheet_mac + "' type='text/css'>");      		}			else			{				//Mac netscape stylesheet goes here        		document.write("<link rel='stylesheet' href='" + stylesheet_mac + "' type='text/css'>");        	}	  }      //re-assigning the global variables. To current value.      bMac = bMac_a;      bNetscape = bNetscape_a;      bNetscape_6 = bNetscape_6a;   }}browser();os();