// frotilog2html.php (C) 2005 Alfred Weber, alweb its <newsletter@alweb.ch>
// You can copy/modify and distribute this code under the conditions
// of the GNU GENERAL PUBLIC LICENSE Version 2.
//
// Das Copyright der holligen94.ch liegt beim jeweiligen Autor
// des Originals. In der Regel werden die holligen94.ch nach
// der Mozilla Public License (MPL) bzw. der GNU General Public License (GPL)
// veröffentlicht, d.h. der Quelltext oder Teile davon dürfen nur dann weiter-
// verarbeitet werden, wenn das Produkt unter Angabe des Originalautors wieder
// unter denselben Bedingungen (MPL bzw. GPL) veröffentlicht wird.

var iWIDTH   = 875;
var iHEIGHT  = 700;
var iHEIGHTG = iHEIGHT - 40;

//  ----------------------------------------------------------------------------------
function F_ScrollTop (X_Pos,Y_Pos) {
  window.scrollTo(X_Pos,Y_Pos);
}

//  ----------------------------------------------------------------------------------
function F_NeuesFenster (F_Titel) {
  MyFenster = window.open("infobox3.php", F_Titel, "width=460,height=620,scrollbars");
  F_rescreen();
  MyFenster.focus();
}

//  ----------------------------------------------------------------------------------
function F_visible(F_element) {
  if (document.getElementById)
      document.getElementById(F_element).style.visibility = "visible";
  alert('visi-hidi');
//  F_rescreen();
}

//  ----------------------------------------------------------------------------------
function F_hidden(F_element) {
  if (document.getElementById)
      document.getElementById(F_element).style.visibility = "hidden";
}

//  ----------------------------------------------------------------------------------
function F_mscreen(f_alert)
{
  iscreen  = "\nScreen Width/Height: " + screen.availWidth + "x" + screen.availHeight;
  iscreen += "\nPixels Width/Height: " + screen.width + "x" + screen.height;
  iscreen += "\nColor Depth: " + screen.colorDepth + " = " + (Math.pow(2,screen.colorDepth)) + " Colors";

  if( typeof( window.innerWidth ) == 'number' )
  {
    iscreen += "\nPixel Depth: " + screen.pixelDepth + " = " + (Math.pow(2,screen.pixelDepth)) + " Colors";
    iscreen += "\nwindow.innerHeight: " + window.innerHeight;
    iscreen += "\nwindow.innerWidth:  " + window.innerWidth;
    iscreen += "\nwindow.outerHeight: " + window.outerHeight;
    iscreen += "\nwindow.outerWidth:  " + window.outerWidth;
  }
  else if (document.body)
  {
    iscreen += "\nwindow.innerHeight: " + document.body.clientHeight;
    iscreen += "\nwindow.innerWidth:  " + document.body.clientWidth;
  }
  alert(iscreen);
}

//  ----------------------------------------------------------------------------------
function F_rescreen()
{

  if (screen.availWidth == 1280 && screen.availHeight == 950)
  {
     iWIDTH   = 992;
     iHEIGHT  = 780;
     iHEIGHTG = iHEIGHT - 10;
  }
  if (screen.availWidth == 1024 && screen.availHeight == 768)
  {
     iWIDTH  = 875;
     iHEIGHT = 700;
     iHEIGHTG = iHEIGHT - 0;
  }
  if (screen.availWidth == 1024 && screen.availHeight == 740)
  {
     iWIDTH  = 875;
     iHEIGHT = 700;
     iHEIGHTG = iHEIGHT - 30;
  }

  // Gecko, etc.
  if( typeof( window.innerWidth ) == 'number' )
  {
	  if (window.innerWidth < iWIDTH || window.innerHeight < iHEIGHTG)
      {
           window.resizeTo(iWIDTH,iHEIGHTG);
  	// self.resizeTo(iWIDTHF,iHEIGHTG);
      }
  }
  // Internet Explorer etc.
  else if (document.body && (document.body.clientWidth < iWIDTH || document.body.clientHeight < iHEIGHT))
  {
           window.resizeTo(iWIDTH,iHEIGHT);
    	self.resizeTo(iWIDTH,iHEIGHT);

  }
}
