/*********************************************/
/* Neuladen nach Aenderung der Fenstergroesse*/
/********************************************/
 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())
		 window.location.reload(false);
		}
		
		/*Überwachung von Netscape initialisieren*/
		if(!window.Weite && window.innerWidth)
		  {
		   window.onresize = neuAufbau;
		   Weite = Fensterweite();
		   Hoehe = Fensterhoehe();
		  }

/*********************************************/
/* Bildwechselfunktion fuer Mouseovereffekte */
/*********************************************/
	function Bildwechsel2(Bildname,Datei){
         window.document.images[Bildname].src = Datei;		 
		 } 	



/**************************************/
/* browserabfrage					  */
/**************************************/
function BrowserCheck()
{
	var b = navigator.appName;
	if (b=="Netscape")
		this.b = "ns";
	else if (b=="Microsoft Internet Explorer")
		this.b = "ie";
	else
		this.b = b;
	this.v = parseInt(navigator.appVersion);
	this.ns = (this.b=="ns" && this.v>=4);
	this.ns4 = (this.b=="ns" && this.v==4);
	this.ns5 = (this.b=="ns" && this.v==5);
	this.ie = (this.b=="ie" && this.v>=4);
	this.ie4 = (navigator.userAgent.indexOf('MSIE 4')>0);
	this.ie5 = (navigator.userAgent.indexOf('MSIE 5')>0);
	if (this.ie5)
		this.v = 5;
	this.min = (this.ns||this.ie);
}

ist = new BrowserCheck()
/*** end here *************************/


	function Fenster_auf (what,w,h)
         {
         window.open(what,'','resizable=no,scrollbars=no,width='+w+',height='+h);
         }

		 function Fenster_auf1 (what,w,h)
         {
         window.open(what,'','resizable=no,scrollbars=yes,width='+w+',height='+h);
         }
		 
		 

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

/**************************************/
/* Popup einer HTML Datei			  */
/**************************************/

var pop_window = null;

function pop(status, url, w, h, t, l)
{
	if (!w)
	  w = 250;
	if (!h)
	  h = 100;
 	if (!t)
	  t = 450;
	if (!l)
	  l = 10;

	if (status != 0)
	{
		pop_window = open(url, "pop", "WIDTH="+w+",HEIGHT="+h+",TOP="+t+",LEFT="+l);
	}
	else
	{
		if (pop_window != null) 
			pop_window.close();
		pop_window = null;
	}
}
/*** end here *************************/