var boxWin = null;
var boxWin2 = null;
var infoWin = null;
var ticker=false;
	function karteOeffnen(welche,breite,hoehe)
	{ 	
		var doc =  welche + "_flfs.shtml";
		var loc = "width=" + breite + "," + "height=" + hoehe;
		
		if (boxWin == null)
		{
			boxWin = window.open(doc, welche, loc);
		}
		else if (boxWin.closed)
		{
			boxWin = window.open(doc, welche, loc);
		}
		else
		{
			boxWin.document.location.href = doc;
			boxWin.focus();
		}
	}
	function karteOeffnen_standort(welche,breite,hoehe)
	{ 	
		var doc =  "/standort/" + welche + "_flfs.shtml";
		var loc = "width=" + breite + "," + "height=" + hoehe;
		
		if (boxWin == null)
		{
			boxWin = window.open(doc, welche, loc);
		}
		else if (boxWin.closed)
		{
			boxWin = window.open(doc, welche, loc);
		}
		else
		{
			boxWin.document.location.href = doc;
			boxWin.focus();
		}
	}

	function karteOeffnen_php(welche,breite,hoehe)
	{ 	
		var doc = "/index.php?page=popup_flash&kuerzel="+welche;
		
		var loc = "width=" + breite + "," + "height=" + hoehe;
		
		if (boxWin == null)
		{
			boxWin = window.open(doc, welche, loc);
		}
		else if (boxWin.closed)
		{
			boxWin = window.open(doc, welche, loc);
		}
		else
		{
			boxWin.document.location.href = doc;
			boxWin.focus();
		}
	}
	
	function karteOeffnen2(welche,breite,hoehe)
	{ 	
		var doc = welche + "_flfs.shtml";
		var loc = "width=" + breite + "," + "height=" + hoehe;
		
		if (boxWin2 == null)
		{
			boxWin2 = window.open(doc, welche, loc);
		}
		else if (boxWin2.closed)
		{
			boxWin2 = window.open(doc, welche, loc);
		}
		else
		{
			boxWin2.document.location.href = doc;
			boxWin2.focus();
		}
	}
	
	function karteOeffnen2_standort(welche,breite,hoehe)
	{ 	
		var doc = welche + "_flfs.shtml";
		var loc = "width=" + breite + "," + "height=" + hoehe;
		
		if (boxWin2 == null)
		{
			boxWin2 = window.open(doc, welche, loc);
		}
		else if (boxWin2.closed)
		{
			boxWin2 = window.open(doc, welche, loc);
		}
		else
		{
			boxWin2.document.location.href = doc;
			boxWin2.focus();
		}
	}
	
	function fensterSchliessen()
	{
		if (boxWin != null)
		{
		 if (!boxWin.closed)
			 boxWin.close();
			 boxWin = null;
		}	
		
		
		if (boxWin2 != null)
		{
		if (!boxWin2.closed)
			boxWin2.close();
			boxWin2 = null;
		}   
		
		
		if (infoWin != null)
		{
		if (!infoWin.closed)
			infoWin.close();
			infoWin = null;
		}
		return;	
	}
	
	
	function infoWinOpen_php(datei)
	{
		var doc = "/index.php?page=popup_info&kuerzel="+datei;
		if (infoWin == null)
		{
			infoWin = window.open(doc, "information", "width=415,height=382,scrollbars=yes,");
		}
		else if (infoWin.closed)
		{
			infoWin = window.open(doc, "information", "width=415,height=382,scrollbars=yes,");
		}
		else
		{
			infoWin.document.location.href = doc;
			infoWin.focus();
		}   
	}

	function smWinOpen_php(datei)
	{
		var doc = "/index.php?page=popup_sm&kuerzel="+datei;
		if (infoWin == null)
		{
			infoWin = window.open(doc, "information", "width=415,height=382,scrollbars=yes,");
		}
		else if (infoWin.closed)
		{
			infoWin = window.open(doc, "information", "width=415,height=382,scrollbars=yes,");
		}
		else
		{
			infoWin.document.location.href = doc;
			infoWin.focus();
		}   
	}

	function infoWinOpen(datei)
	{
		var doc = datei + "_infs.shtml";
		if (infoWin == null)
		{
			infoWin = window.open(doc, "information", "width=396,height=282");
		}
		else if (infoWin.closed)
		{
			infoWin = window.open(doc, "information", "width=396,height=282");
		}
		else
		{
			infoWin.document.location.href = doc;
			infoWin.focus();
		}   
	}


