// http://de.selfhtml.org/javascript/beispiele/fensterueberwachen.htm
var Hoehe;
var Weite;

function Fensterweite () {
  if (window.innerWidth) {
    return window.innerWidth;
  } else if (document.body && document.documentElement.clientWidth) {
    return document.documentElement.clientWidth;
  } else {
    return 0;
  }
}

function Fensterhoehe () {
  if (window.innerHeight) {
    return window.innerHeight;
  } else if (document.body && document.documentElement.clientHeight) {
    return document.documentElement.clientHeight;
  } else {
    return 0;
  }
}

function neuAufbau () {
  if (Weite != Fensterweite() || Hoehe != Fensterhoehe())
    location.href = location.href;
}

/* Überwachung von Netscape initialisieren */
if (!window.Weite && window.innerWidth) {
  window.onresize = neuAufbau;
  Weite = Fensterweite();
  Hoehe = Fensterhoehe();
}

if (Hoehe < 575) {
   document.write("<style type=\"text/css\"> #titel h1 {border-bottom: 0;} #navi{position:absolute;top:3.3em;right:3%; text-align:right;} #inhalt h2 {padding-top:1em;}<\/style>");
   document.write("<style type=\"text/css\"> #titel{height:1.8em;} #tp{display:none} body {background-position:150px -40px;}<\/style>");
}
