﻿function Fensterweite () {
  if (window.innerWidth) {
    return window.innerWidth;
  } 
  else 
	  if (document.documentElement && document.documentElement.offsetWidth) {
		    return document.documentElement.offsetWidth;
  } 
  else {
    return screen.availWidth;
  }
}

function Fensterhoehe () {
  if (window.innerHeight) {
    return window.innerHeight;
  } else if (document.body && document.body.offsetHeight) {
    return document.body.offsetHeight;
  } 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 (Fensterweite() >= 1100) {
document.write('<link rel="stylesheet" type="text/css" href="anwaelte_gross.css">');
}

