
function Fensterhoehe (elementhoehe) {
// var elementhoehe= 569;
 var hoehe;
 var Rand;
 if (window.innerHeight) {
	hoehe=window.innerHeight;
  } else if (document.body  && document.documentElement.clientHeight) {
     hoehe=document.documentElement.clientHeight
  } else {
    hoehe=0;
  }
  Rand=(hoehe-elementhoehe)/2;

  return Rand;
}

function Fensterweite (elementbreite) {
  var Breite;
  var Hoehe;
  var fensterbreite, Randbreite;

//	var elementbreite= 980;

  if (window.innerWidth) {
	fensterbreite=window.innerWidth;
  } else if (document.body  && document.body.clientWidth) {
	fensterbreite=document.body.clientWidth;
  } else {
	fensterbreite= 0;
  }
  Randbreite=(fensterbreite-elementbreite)/2;
  return Randbreite;
}


function neuAufbau () {
//  if (Rand != Fensterhoehe())
//    location.href = location.href;
}

/* Überwachung von Netscape initialisieren */
/*
if (!window.Weite && window.innerWidth) {
  var x;
  window.setTimeout("x=1",7000)
  if(x!=1) {
   window.onresize = neuAufbau;
  }
  Rand = Fensterhoehe();
  var Randbreite=Fensterweite()
  if(Rand<0)
  Rand=0;
  if(Randbreite<0)
  Randbreite=0;
}
*/

