/***********************************************************************
* File    : FX_f11.js  © i-dat.de
* Created : 2009/01/01
* Author  : Rainer Kuczinski www.ipodat.de
* Purpose : Hinweis auf Fenster F11 - Infotext
***********************************************************************/
function grenzHoehe () {
  // Nav.-Abzug bei F11
  if(screen.height >768){
	return 990;
  } else {
	return 700;
  }
}
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 (Hoehe != Fensterhoehe()) location.href = location.href;
}
function docWriteInfotext_f11(Hoehe) {
  if(Hoehe <= grenzHoehe()){
	document.write('<table width=\"100%\" height=\"100%\" border=0 cellpadding=0 cellspacing=0 class=\"text\" style=\"border-top:1px solid #999999; padding-top:6px; padding-bottom:8px;\">');
	document.write('<tr valign=top>');
		document.write('<td width=\"100%\" class=\"text\">');
		document.write('<font color=\"#999999\">Die optimale Darstellung der Webseite erhalten Sie nach Drücken der Taste F11.</font><br>');
		document.write('</td>');
	document.write('</tr>');
	document.write('</table>');
  }
}

/* Überwachung von Netscape/Firefox initialisieren */
if (!window.Weite && window.innerWidth) {
  window.onresize = neuAufbau;
  Hoehe = Fensterhoehe();
}
