// +++++++++++++++++++++++++++++++++++++++++++++++++++++++
// NEUES POPUP-FENSTER 
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++

Fensterzahl=0; 
// function des Popup-oeffnen
function popup(URL) 
	{
	if(Fensterzahl>0) 
		{
		if(F1.closed==false) 
		F1.close();
		}
	Fensterzahl=1; 
	F1=open(URL,"","width=300,height=500,resizable=no,scrollbars=no,toolbars=no,status=no,menubar=no,statusbar=no");
	F1.focus();
	}

// function des Popup-oeffnen
function popup_karte(URL) 
	{
	if(Fensterzahl>0) 
		{
		if(F1.closed==false) 
		F1.close();
		}
	Fensterzahl=1; 
	F1=open(URL,"","width=620,height=650,toolbars=no,status=no,menubar=no,statusbar=no,scrollbars=yes");
	F1.focus();
	}

// +++++++++++++++++++++++++++++++++++++++++++++++++++++++
// menues einschalten
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++

function showMenu(n)
	{
	if (document.getElementById)
		{
		var menu = document.getElementById("menu"+n);
		menu.style.visibility="visible";
		}
	}
// menues einschalten
function showSubmenu(n)
	{
	if (document.getElementById)
		{
		var submenu = document.getElementById("submenu"+n);
		submenu.style.visibility="visible";
		}
	}

// menues ausschalten
function hideMenu(n)
	{
	if (document.getElementById)
		{
		var menu = document.getElementById("menu"+n);
		menu.style.visibility="hidden";
		}
	}
// menues ausschalten
function hideSubmenu(n)
	{
	if (document.getElementById)
		{
		var submenu = document.getElementById("submenu"+n);
		submenu.style.visibility="hidden";
		}
	}



// +++++++++++++++++++++++++++++++++++++++++++++++++++++++
// SHOWABAOUT (MOUSEOVER-EVENT)
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++

function showAbout(n)
	{
	var borderCol="#fff";
	if (document.getElementById)
		{
		for (i=1;i<=4;i++)
			{
			// and make sure the about text is hidden
			var about = document.getElementById("about"+i);
			about.style.visibility="hidden";
			}
				
		// and make the approprate about box visible
		var aboutBox = document.getElementById("about"+n);
		aboutBox.style.visibility="visible";
		}
	}

// +++++++++++++++++++++++++++++++++++++++++++++++++++++++
// SWAPIMAGE VIA DIV, CSS UND SCRIPT
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++

// rollovereffekt 
function fsButton(n,y)
     {
     if (document.getElementById)
          {
          var button = document.getElementById("jar"+n);
          button.style.backgroundPosition="0px "+y+"px";
          }
     }

// +++++++++++++++++++++++++++++++++++++++++++++++++++++++
// MAUS-OVER FUNKTION
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++

function over(imgname,imgsrc) 
	{
	document[imgname].src=imgsrc;
	}

// preloader swapimages
function preloader() 
	{
	var d=document;
	if(d.images)
		{
		if(!d.MM_p) d.MM_p=new Array();
		var i,j=d.MM_p.length,a=preloader.arguments; 
		for(i=0; i<a.length; i++)
		if (a[i].indexOf("#")!=0)
			{
			d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];
			}
		}
	}