// PopUp-Fenster


function show(mypage, myname, w, h, scroll) {
  var winbreite = (screen.width - w) / 2;
  var winhoehe = (screen.height - h - 35) / 2;
  winprops = 'dependent=no,height='+h+',width='+w+',top='+winhoehe+',left='+winbreite+',scrollbars='+scroll+',resizable=yes, status=yes, toolbar=yes, menubar=yes, location=yes';
  popup = window.open(mypage, myname, winprops);
  if (parseInt(navigator.appVersion) >= 4) { popup.window.focus(); }
  }




// Head an Größe des Fensters anpassen
function sethead() {
  var x,y;
  if (self.innerHeight) // all except Explorer
  {
  	x = self.innerWidth;
  	y = self.innerHeight;
  }
  else if (document.documentElement && document.documentElement.clientHeight)
  	// Explorer 6 Strict Mode
  {
	x = document.documentElement.clientWidth;
	y = document.documentElement.clientHeight;
  }
  else if (document.body) // other Explorers
  {
	x = document.body.clientWidth;
	y = document.body.clientHeight;
  }

//  alert(y);
  if (y <= 630) {
    document.getElementById('head').className = 'heightstandard';
  }
  if (y>631 && y<720) {
    document.getElementById('head').className = 'heighteins';
  }
  if (y>721) {
    document.getElementById('head').className = 'heightzwei';
  }
}
