// BrowserCheck Object
// provides most commonly needed browser checking variables
// 19990326

// Copyright (C) 1999 Dan Steinman
// Distributed under the terms of the GNU Library General Public License
// Available at http://www.dansteinman.com/dynapi/

function BrowserCheck() {
  // OS
  this.isMac  = (navigator.appVersion.indexOf("Mac")!=-1) ? true : false;
  this.isPC   = (navigator.appVersion.indexOf("Windows")!=-1) ? true : false;
  this.isUnix = (navigator.appVersion.indexOf("Unix")!=-1) ? true : false;
  
  // Browser
  this.ie4=document.all;
  this.ie5=document.getElementById&&document.all;
  this.ie6=document.getElementById&&document.all&&(navigator.appVersion.indexOf("MSIE 6.")!=-1);
  
  this.ns4=document.layers
  this.ns6=document.getElementById&&!document.all
}

// automatically create the "is" object
is = new BrowserCheck()

function Fensterweite() {
  return document.body.clientWidth;
}

function Fensterhoehe() {
  if (is.ie5 || is.ie6)
  {
    if (document.body && document.body.clientHeight != 0)
    {
      return document.body.clientHeight;
    }
    else if (document.documentElement)
    {
      return document.documentElement.clientHeight;
    }
    else
    {
      return 0;
    }
  }
  else
  {
    if (document.documentElement.clientHeight != 0)
    {
      return document.documentElement.clientHeight;
    }
    else if (document.body && document.body.clientHeight != 0)
    {
      return document.body.clientHeight;
    }
    else if (window.innerHeight != 0)
    {
      return window.innerHeight;
    }
    else
    {
      return 0;
    }
  }
}

function neuAufbau() {
  if (Weite != Fensterweite() || Hoehe != Fensterhoehe())
  {
    window.history.go(0);
  }
}


