
initialisiert=0;


function Fensterweite () {
  if (window.innerWidth) {
    return window.innerWidth;
  } else if (document.body && document.body.offsetWidth) {
    return document.body.offsetWidth;
  } else {
    return 0;
  }
}

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 (Weite != Fensterweite() || Hoehe != Fensterhoehe())
  {
    location.href = location.href;
	resize_me('Daten');
  }
}

function getX( oElement )
{
var iReturnValue = 0;
while( oElement != null ) {
iReturnValue += oElement.offsetLeft ;
oElement = oElement.offsetParent;
}
return iReturnValue;
}

function getY( oElement )
{
var iReturnValue = 0;
while( oElement != null ) {
iReturnValue += oElement.offsetTop;
oElement = oElement.offsetParent;
}
return iReturnValue;
}


function initEvent()
{
/* Überwachung von Netscape initialisieren */
if (!window.Weite && window.innerWidth) {
  window.onresize = resize_me_div;
  Weite = Fensterweite();
  Hoehe = Fensterhoehe();
}

		window.onresize = resize_me_div ;
}

function resize_me(n)
{
    d=0;
	ifObj=document.getElementsByName(n)[0];
	p=(document.all)?'scroll':'offset';
	

		eval("ifObj.style.height=window.frames[n].document.getElementsByTagName('table')[0]."+p+"Height+"+d);
	//	eval("ifObj.style.width=window.frames[n].document.getElementsByTagName('table')[0]."+p+"Width+"+d);
	 if (initialisiert!=1)
		{initEvent();
		initialisiert=1};
	 resize_me_div(); 

}
function resize_me_div()
{
	n="Hintergrund1"
	x="Alles"
    dw_full=0;
    offset_w=0;
    dw=575;
	dh=0;
	hoehe=0;

	p=(document.all)?'scroll':'offset';
	
	eval("hoehe=window.document.getElementById(x)."+p+"Height");
	if (hoehe<650)
	{
		hoehe=850;
	}
	else
	{
		hoehe=hoehe+450;
	}

	ifObj=document.getElementsByName(n)[0];
		ifObj.style.top=-40;
		eval("ifObj.style.height=400");
		eval("dw_full=window.document.getElementById(x)."+p+"Width+300 ");
		eval("ifObj.style.width="+dw_full);
		offset_w=(Fensterweite()-dw_full)/2;
		eval("ifObj.style.left=getX(window.document.getElementById(x))-150");
		//alert(dw_full);
		

	
	n="Hintergrund"
	ifObj2=document.getElementsByName(n)[0];
 		eval("ifObj2.style.height=hoehe");
 		eval("ifObj2.style.width=ifObj.style.width");
		eval("ifObj2.style.left=ifObj.style.left");

/*		alert("www "+p+" "+eval("window.document.getElementsByName(x)[0]."+p+"Width")+" "+ifObj.style.Width); */

}

function resize_me_div1()
{
	n="Hintergrund1"

	x="Daten"
    dw=700;
	dh=0;
	hoehe=0;

	ifObj=document.getElementsByName(n)[0]
	p=(document.all)?'scroll':'offset';
	
	eval("hoehe=window.document.getElementsByName(x)[0]."+p+"Height");
	if (hoehe<450)
	{
		hoehe=700;
	}
	else
	{
		hoehe=hoehe+450;
	}
    /*  alert("www "+p+" "+eval("window.document.getElementsByName('Daten')[0].scrollWidth")); */
	
	
  	eval("ifObj.style.height=400");
/*	eval("ifObj.style.width=window.document.getElementsByName(x)[0]."+p+"Width+"+dw);*/
	/* alert("window.document "+Fensterweite() + " "+hoehe+" "+eval("window.document.getElementsByName(x)[0]."+p+"Width")); */
	n="Hintergrund"
	ifObj=document.getElementsByName(n)[0];
 		eval("ifObj.style.height=hoehe");
/*		eval("ifObj.style.width=window.document.getElementsByName(x)[0]."+p+"Width+"+dw);*/
	
/*	n="Inhalt"
	ifObj=document.getElementsByName(n)[0];
 		eval("ifObj.style.height=hoehe");*/
/*		eval("ifObj.style.width=window.document.getElementsByName(Inhalt)[0]."+p+"Width+"+dw);*/

}




