/**
 * Copyright (c) 2002-2007 i-Seven A/S.
 * Herlev Hovedgade 195, 2730 Herlev, Denmark.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information
 * of i-Seven A/S. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with i-Seven A/S.
 */
function getBrowser() {
  this.navigator=navigator;
  this.isIE=(navigator.appName=='Microsoft Internet Explorer');
  this.isNS=(navigator.appName=='Netscape');
  this.isOpera=(this.navigator.userAgent.indexOf("Opera")!=-1);
  this.isKonqueror=(this.navigator.userAgent.indexOf("Konqueror")!=-1);
  this.isMac=(navigator.appVersion.indexOf("Mac")!=-1);
  this.hasDOM=(document.getElementById) ? true : false;
  this.version=parseInt(navigator.appVersion);
  if (this.isIE) {
    this.ie4=(this.navigator.userAgent.indexOf('MSIE 4')>0);
    this.ie5=(this.navigator.userAgent.indexOf('MSIE 5')>0);
    this.ie6=(this.navigator.userAgent.indexOf('MSIE 6')>0);
    if (this.ie5)
      this.version=5;
    if (this.ie6)
      this.version=6;
  }
  if (this.isNS) {
    this.ns4=(this.version==4);
    this.ns6=(this.version==5);
  }
}
browser = new getBrowser();

