/* --------------------------------------- */

function Deblur(mylink)
{ if (document.all)
  mylink.blur();
}

function impressum_Fenster(){
popup = window.open("Impressum.htm","","height=200,width=350,scrollbars=no");
}

/* changeimages.js  */

var g_nBrowserType = 0;
var g_strIgnoreMouseOut = "";
var g_strLastButtonDown = "";

function GetBrowserType() 
{
	var nBrowserType = 0;
        if (navigator.userAgent.indexOf("Mozilla/3.0") != -1)  nBrowserType = 3;
           else if (navigator.userAgent.indexOf("Mozilla/4") != -1)  nBrowserType = 4;
           else if (navigator.userAgent.indexOf("MSIE") != -1)  nBrowserType = 1;
           else if (navigator.userAgent.indexOf("Mozilla/2.0") != -1)  nBrowserType = 2;
           else  nBrowserType = 0;
	return( nBrowserType);	

}

g_nBrowserType = GetBrowserType();



function HooverButtonOn(strButtonName) 
{
    // alert("*" + strButtonName + "*" + g_strIgnoreMouseOut  + "*");          
	if(g_strIgnoreMouseOut == strButtonName) return;
	if (g_nBrowserType >= 3)
         if (navigator.appName.indexOf("Netscape") != -1)
  	  {
		imgOn = eval(strButtonName + "x.src");
		if(document.layers["LUG"].document.images[strButtonName].src != imgOn)
		{
			document.layers["LUG"].document.images[strButtonName].src = imgOn;
		}
	  }
         else
  	  {
		imgOn = eval(strButtonName + "x.src");
		if(document.images[strButtonName].src != imgOn)
		{
			document.images[strButtonName].src = imgOn;
		}
	  }
}

function HooverButtonOff(strButtonName) 
{
    // alert("*" + strButtonName + "*" + g_strIgnoreMouseOut  + "*");          
	if(g_strIgnoreMouseOut == strButtonName) return;
	if (g_nBrowserType >= 3) 
         if (navigator.appName.indexOf("Netscape") != -1)
 	  {
		imgOff = eval(strButtonName + ".src");
		if(document.layers["LUG"].document.images[strButtonName].src != imgOff)
		{
			document.layers["LUG"].document.images[strButtonName].src = imgOff;
		}
	  }
         else
 	  {
		imgOff = eval(strButtonName + ".src");
		if(document.images[strButtonName].src != imgOff)
		{
			document.images[strButtonName].src = imgOff;
		}
	  }
}

function ButtonDown(strButtonName) 
{
               
	if (g_nBrowserType >= 3) 
         if (navigator.appName.indexOf("Netscape") != -1)
	  {
		if(g_strLastButtonDown != "")
		{
			imgOff = eval(g_strLastButtonDown + ".src");
			if(document.layers["LUG"].document.images[g_strLastButtonDown].src != imgOff)
			{
				document.layers["LUG"].document.images[g_strLastButtonDown].src = imgOff;
			}
		}
		
		imgOn = eval(strButtonName + "x.src");
		if(document.layers["LUG"].document.images[strButtonName].src != imgOn)
		{
			document.layers["LUG"].document.images[strButtonName].src = imgOn;
		}
		g_strIgnoreMouseOut = strButtonName;
		g_strLastButtonDown = strButtonName;
	  }
         else
	  {
		if(g_strLastButtonDown != "")
		{
			imgOff = eval(g_strLastButtonDown + ".src");
			if(document.images[g_strLastButtonDown].src != imgOff)
			{
				document.images[g_strLastButtonDown].src = imgOff;
			}
		}
		
		imgOn = eval(strButtonName + "x.src");
		if(document.images[strButtonName].src != imgOn)
		{
			document.images[strButtonName].src = imgOn;
		}
		g_strIgnoreMouseOut = strButtonName;
		g_strLastButtonDown = strButtonName;
	  } 
}

function ButtonDownNoEffect(strButtonName) 
{
               
	if (g_nBrowserType >= 3) 
         if (navigator.appName.indexOf("Netscape") != -1)
	  {
		if(g_strLastButtonDown != "")
		{
			imgOff = eval(g_strLastButtonDown + ".src");
			if(document.layers["LUG"].document.images[g_strLastButtonDown].src != imgOff)
			{
				document.layers["LUG"].document.images[g_strLastButtonDown].src = imgOff;
			}
		}
		
		imgOn = eval(strButtonName + ".src");
		if(document.layers["LUG"].document.images[strButtonName].src != imgOn)
		{
			document.layers["LUG"].document.images[strButtonName].src = imgOn;
		}
		g_strIgnoreMouseOut = strButtonName;
		g_strLastButtonDown = strButtonName;
	  }
         else
	  {
		if(g_strLastButtonDown != "")
		{
			imgOff = eval(g_strLastButtonDown + ".src");
			if(document.images[g_strLastButtonDown].src != imgOff)
			{
				document.images[g_strLastButtonDown].src = imgOff;
			}
		}
		
		imgOn = eval(strButtonName + ".src");
		if(document.images[strButtonName].src != imgOn)
		{
			document.images[strButtonName].src = imgOn;
		}
		g_strIgnoreMouseOut = strButtonName;
		g_strLastButtonDown = strButtonName;
	  } 
}


/* --------------------- */
/* Menü */
/* --------------------- */
but0 = new Image();
but0.src = "images/but0.jpg";
but0x = new Image();
but0x.src = "images/but0x.jpg";

but1 = new Image();
but1.src = "images/but1.jpg";
but1x = new Image();
but1x.src = "images/but1x.jpg";

but2 = new Image();
but2.src = "images/but2.jpg";
but2x = new Image();
but2x.src = "images/but2x.jpg";

but3 = new Image();
but3.src = "images/but3.jpg";
but3x = new Image();
but3x.src = "images/but3x.jpg";

but4 = new Image();
but4.src = "images/but4.jpg";
but4x = new Image();
but4x.src = "images/but4x.jpg";

but5 = new Image();
but5.src = "images/but5.jpg";
but5x = new Image();
but5x.src = "images/but5x.jpg";

but6 = new Image();
but6.src = "images/but6.jpg";
but6x = new Image();
but6x.src = "images/but6x.jpg";

but7 = new Image();
but7.src = "images/but7.jpg";
but7x = new Image();
but7x.src = "images/but7x.jpg";

but8 = new Image();
but8.src = "images/but8.jpg";
but8x = new Image();
but8x.src = "images/but8x.jpg";

but9 = new Image();
but9.src = "images/but11.jpg";
but9x = new Image();
but9x.src = "images/but11x.jpg";

but10 = new Image();
but10.src = "images/but10.jpg";
but10x = new Image();
but10x.src = "images/but10x.jpg";

impress = new Image();
impress.src = "images/impress.jpg";
impressx = new Image();
impressx.src = "images/impressx.jpg";

link1 = new Image();
link1.src = "images/link1.jpg";
link1x = new Image();
link1x.src = "images/link1x.jpg";

vor = new Image();
vor.src = "images/vor.jpg";
vorx = new Image();
vorx.src = "images/vorx.jpg";

zuruck = new Image();
zuruck.src = "images/zuruck.jpg";
zuruckx = new Image();
zuruckx.src = "images/zuruckx.jpg";

karte1 = new Image();
karte1.src = "images/karte.jpg";
karte1x = new Image();
karte1x.src = "images/kartex.jpg";
/* --------------------- */	

function ButtonClick(which)
{
	if(g_strIgnoreMouseOut == which) return;
	ButtonDown(which);

}

function ButtonClickNoEffect(which)
{
	if(g_strIgnoreMouseOut == which) return;
	ButtonDownNoEffect(which);

}


