/*
	center.js - calculates position for element by window-size
	© 2003, Andreas Fink, andi@server-wg.de
*/
function centerPage() {
	var WW = document.body.clientWidth;
	var WH = document.body.clientHeight;
	
	var P = document.getElementById("seite");
	var PW = "596px"; // it would be nicer to read that values
	var PH = "387px"; // from the stylesheet, but opera5/6 can't do that
	
	P.style.left = Math.floor((WW-parseInt(PW))/2);
	P.style.top = Math.floor((WH-parseInt(PH))/2);
	P.style.visibility = "visible"; //needs fix op6
}
window.onresize = centerPage;

function alertSize() {
	var iFrame = parent.frames["container"];
	var y;
	var test1 = document.body.scrollHeight;
	var test2 = document.body.offsetHeight
	if (test1 > test2) { // all but Explorer Mac
		y = iFrame.document.body.scrollHeight;
	} else { // Explorer Mac; //would also work in Explorer 6 Strict, Mozilla and Safari
		y = iFrame.document.body.offsetHeight;
	}
	
  /*var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = iFrame.window.innerWidth;
    myHeight = iFrame.window.innerHeight;
  } else if( document.documentElement &&
      ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = iFrame.document.documentElement.clientWidth;
    myHeight = iFrame.document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = iFrame.document.body.clientWidth;
    myHeight = iFrame.document.body.clientHeight;
  }
  //window.alert( 'Width = ' + myWidth );
  //window.alert( 'Height = ' + myHeight );*/
  alert(y);
  /*
  
var x,y;
var test1 = document.body.scrollHeight;
var test2 = document.body.offsetHeight
if (test1 > test2) // all but Explorer Mac
{
x = document.body.scrollWidth;
y = document.body.scrollHeight;
}
else // Explorer Mac;
     //would also work in Explorer 6 Strict, Mozilla and Safari
{
x = document.body.offsetWidth;
y = document.body.offsetHeight;
}
*/
  
}


