﻿function fenster_hoehe () 
{
	  if (window.innerHeight) 
	  {
	  	  //window.alert("window:"+window.innerHeight);
	  	  return window.innerHeight;
	  } 
	  else if (document.body && document.body.offsetHeight) 
	  {
		 //window.alert("offset:"+document.body.offsetHeight);
	    return document.body.offsetHeight;
	  }
	  else if (document.documentElement.clientHeight) 
	  {
		//window.alert("client:"+document.body.offsetHeight);
	    return document.documentElement.clientHeight;
	  }
	  else 
	  {
	    return 0;
	  }
}
function fenster_breite () 
{
	  if (window.innerWidth) 
	  {
	  	  // Netscape
	  	  //window.alert("window:"+window.innerWidth);
	  	  return window.innerWidth;
	  } 
	  else if (document.body && document.body.offsetWidth) 
	  {
		 // IE 
		 //window.alert("offset:"+document.body.offsetWidth);
	    return document.body.offsetWidth;
	  }
	  else if (document.documentElement.clientWidth) 
	  {
		// IE je nach Modus
		//window.alert("client:"+document.body.clientHeight);
	    return document.documentElement.clientWidth;
	  }
	  else 
	  {
	    return 0;
	  }
}
function position_right (breite)
{
	var breite01 = breite;
	breite01=breite01 - 820;
	breite01=breite01 / 2;
	if (breite01<=0)
	{
		breite01=0;
	}
	if (document.getElementById("info_inhalt"))
	{
		document.getElementById("info_inhalt").style.right = breite01+'px';
	}
}
function position_top (hoehe)
{
	var hoehe01 = hoehe;
	hoehe01=hoehe01 - 630;
	hoehe01=hoehe01 / 2;
	if (hoehe01<=0)
	{
		hoehe01=0;
	}
	if (document.getElementById("info_inhalt"))
	{
		document.getElementById("info_inhalt").style.top = hoehe01+'px';
	}
}
function info_ausblenden ()
{
	if (document.getElementById("info_inhalt"))
	{
		document.getElementById("info_inhalt").style.visibility = "hidden";
	}
}
function bt_close_over ()
{
	if (document.bt_close)
	{
		document.bt_close.src = "images/bt_close_over.gif";
	}
}
function bt_close_out ()
{
	if (document.bt_close)
	{
		document.bt_close.src = "images/bt_close.gif";
	}
}

