// This script populates variables to indicate the client browser and its abilities.
// Include this script in any page and then query these variables to find out about the client.
//

// what platform the user is using
isWinOS = (navigator.appVersion.indexOf("Windows") != -1) ? true : false;
isMacOS = (navigator.appVersion.indexOf("Macintosh") != -1) ? true : false;

// what browser the user is using
verInt = parseInt(navigator.appVersion.substring(0,1));
usingMSIE = (navigator.appVersion.indexOf("MSIE") == -1) ? false : true;
usingMSIE3 = (usingMSIE && (verInt == 2 || verInt == 3)) ? true : false;
usingMSIE4 = (usingMSIE && verInt == 4) ? true : false;
usingMSIE5 = (usingMSIE && verInt == 5) ? true : false;
usingNN = (navigator.appName.indexOf("Netscape") == -1) ? false : true;
usingNN2 = (usingNN && verInt == 2) ? true : false;
usingNN3 = (usingNN && verInt == 3) ? true : false;
usingNN4 = (usingNN && verInt == 4) ? true : false;
usingNN5 = (usingNN && verInt == 5) ? true : false;

// what technologies the browser implements
implementsVB = ((usingMSIE && isWinOS) || (isMacOS && usingMSIE3)) ? true : false;  // VBScript
implementsImgObj = document.images ? true : false;  // Image Object
implementsMSDOM = document.all ? true : false;  // Microsoft Document Object Model
implementsNSDOM = document.layers ? true : false;  // Netscape Document Object Model
