//  All code by Gunni Rode | © netbureauet ARANEUM 2000 | http://www.na.dk

function NA_Browser() {
  this.rawBrowserVersion = navigator.appVersion;
  this.browserName       = navigator.appName;
  this.browserVersion    = parseInt(this.rawBrowserVersion);

  this.DOM               = (document.getElementById) ? 1 : 0;
  this.ns4               = ((!this.DOM) && (this.browserName.toLowerCase().indexOf('netscape')  >= 0)) ? 1 : 0;
  this.ie4               = ((!this.DOM) && (this.browserName.toLowerCase().indexOf('microsoft') >= 0) && document.all) ? 1 : 0;
  this.ns5               = (this.DOM && (this.browserVersion >= 5)) ? 1 : 0;
  this.ie5               = (this.DOM && (this.rawBrowserVersion.toLowerCase().indexOf('msie 5') >= 0)) ? 1 : 0;

  this.ns                = (this.ns4 || this.ns5);
  this.ie                = (this.ie4 || this.ie5);
  
  this.win               = (this.rawBrowserVersion.toLowerCase().indexOf('win') >= 0) ? 1 : 0;
  this.unix              = (this.rawBrowserVersion.toLowerCase().indexOf('x11') >= 0) ? 1 : 0;
  this.mac               = (this.rawBrowserVersion.toLowerCase().indexOf('mac') >= 0) ? 1 : 0;

  this.dhtml             = (this.ns  || (this.ie && this.win));
  this.unknownBrowser    = (!this.dhtml || this.browserVersion <= 3);
}

var NABrowser = new NA_Browser();
