/* Browser sensing */
/* Set up boolian variables to record the browser type */
var isNS4 = 0;
var isNS5 = 0;
var isIE4 = 0;
var isNew = 0;
var isIE = 0;
var isNS = 0;
var docObj, styleObj, currObj

/* Determines the browser name and browser version */
var brow = ((navigator.appName) + (parseInt(navigator.appVersion)));

/* reassign variable depending on the browser */
if (parseInt(navigator.appVersion >= 5)) {isNew = 1}
    else if (brow == "Netscape4") 
    {isNS4 = 1; hiddencmd="hide"; showcmd="show";}
        else if (brow == "Microsoft Internet Explorer4") 
        {isIE4 = 1; hiddencmd="hidden"; showcmd="visible";}

if (brow == "Netscape5") 
   {isNS5 = 1; hiddencmd="hidden"; showcmd="visible";}
        
if (isNS4||isNS5||isIE4||isNew) {
    if (document.getElementById) {
	    docObj = 'document.getElementById("';
	    styleObj = '").style';
    } else {
	    docObj = (isNS4) ? 'document.' : 'document.all.';
	    styleObj = (isNS4) ? '' : '.style';
    }
}
    
isIE = (navigator.appName.indexOf('Microsoft') != -1);
isNS = (navigator.appName.indexOf('Netscape') != -1);

if (document.all) { 
   isIE4 = 1;
} else if (document.layers) {
  // NS4+ code 
} else if (document.getElementById) {
  // NS6+ code         // and IE5+ code you flatten differences between MS DOM and W3C DOM
} 
