/*
   My naming convention is xName. Where x is one letter representing
   the data type s for string, i for integer, b for boolean, etc..
*/

var sAppName = navigator.appName;
var appVersion = navigator.appVersion;
var iAppVersion = parseInt(appVersion);
var MSIEStart = parseInt(appVersion.indexOf("MSIE")) + 5;
var iIEVer = parseInt(appVersion.substr(MSIEStart, 3));

var b5plus = iAppVersion >= 5;   // is it a 5.0 browser or better?

var bIE = ((sAppName.indexOf("Microsoft",0) != -1) | (navigator.userAgent.indexOf("MSIE",0) != -1)) ? true : false;  // Internet Explorer or AOL
var bNN = (sAppName.indexOf("Netscape",0) != -1) ? true : false;   // Netscape Navigator, or Communicator

/*if (bNN) {
	window.location=("/netscape.asp");
}*/

var b4 = false;

if (bIE)
	b4 = (iIEVer == 4);
else
	b4 = (iAppVersion == 4);       // Is it a 4.0 broswser?

var bIE4 = (bIE && b4);

var bNN6 = (bNN && b5plus);

if (bNN6)
   bNN = false;  // Because Netscape is a totally different beast.

// Sets the variable bDHTMLbrowser to NN4, IE4 or IE5+
var bDHTMLbrowser = (bNN & b4) | (bIE & b4) | (bIE & b5plus);
//alert(bDHTMLbrowser + "= (" + bNN + " & " + b4 + " ) | (" + bIE + " & " + b4 + " ) | (" + bIE + " & " + b5plus + " )");

// Are we on a Macintosh?
var bMac = (navigator.userAgent.indexOf("Mac",0) != -1) ? true : false;

