var anzahl_titel=9;
var titel=new Array();
var verweis=new Array();
var ttl=new Array();
for (var i=0;i<=anzahl_titel;i++)
{
	titel[i]=new Array();
	verweis[i]=new Array();
	ttl[i]=new Array();
}

var langlnk="&lang="+lang;
var vgl=0;
var uvgl=0;
// ----------------------------------------------------------------------------------

function link(a)
{
	switch (a)
	{
		case "0":
			alert('Diese Auswahl ist in Kürze verfügbar');
			break;
		default:
			alert("Sie bleiben leider dumm");
			break;
	}
}

// ----------------------------------------------------------------------------------

// verweis[im][0]="javascript:alert("+'"'+"Diese Auswahl ist in Kürze verfügbar."+'"'+")";

im=0;
ttl[im]['de']="Erlebniswelt<br>Hamburg<hr size=1>"
titel[im][0]=ttl[im][lang];

im++;
ttl[im]['de']="Willkommen<hr size=1>";
titel[im][0]=ttl[im][lang];
verweis[im][0]="index.php?lfd="+im+"&ulfd=0&datei=frames/standard.php&txt=willkommen"+langlnk;

im++;
ttl[im]['de']="Der Hafen-Tor zur Welt<hr size=1>";
titel[im][0]=ttl[im][lang];
verweis[im][0]="index.php?lfd="+im+"&ulfd=0&datei=frames/standard.php&txt=hafen"+langlnk;

im++;
ttl[im]['de']="Musical-Metropole<hr size=1>";
titel[im][0]=ttl[im][lang];
verweis[im][0]="index.php?lfd="+im+"&ulfd=0&datei=frames/standard.php&txt=musical"+langlnk;

im++;
ttl[im]['de']="St. Pauli, Reeperbahn<br>&nbsp;und Fischmarkt<hr size=1>";
titel[im][0]=ttl[im][lang];
verweis[im][0]="index.php?lfd="+im+"&ulfd=0&datei=frames/standard.php&txt=reeperbahn"+langlnk;

im++;
ttl[im]['de']="Mekka kulinarischer<br>&nbsp;Genüsse<hr size=1>";
titel[im][0]=ttl[im][lang];
verweis[im][0]="index.php?lfd="+im+"&ulfd=0&datei=frames/standard.php&txt=mekka"+langlnk;

im++;
ttl[im]['de']="El Dorado für Shopping-<br>&nbsp;Freunde<hr size=1>";
titel[im][0]=ttl[im][lang];
verweis[im][0]="index.php?lfd="+im+"&ulfd=0&datei=frames/standard.php&txt=eldorado"+langlnk;

im++;
ttl[im]['de']="Die grüne Stadt am<br>&nbsp;Wasser<hr size=1>";
titel[im][0]=ttl[im][lang];
verweis[im][0]="index.php?lfd="+im+"&ulfd=0&datei=frames/standard.php&txt=gruene_stadt"+langlnk;

im++;
ttl[im]['de']="Treffpunkt großer<br>&nbsp;Sportereignisse<hr size=1>";
titel[im][0]=ttl[im][lang];
verweis[im][0]="index.php?lfd="+im+"&ulfd=0&datei=frames/standard.php&txt=sport"+langlnk;

im++;
ttl[im]['de']="Hochburg der Kunst<hr size=1>";
titel[im][0]=ttl[im][lang];
verweis[im][0]="index.php?lfd="+im+"&ulfd=0&datei=frames/standard.php&txt=kunst"+langlnk;


// alert(im);

// ----------------------------------------------------------------------------------

function bw1(lfd,zustand,adr_bild)
{
	if (vgl!=lfd)
	{
		if (zustand==0) {document.getElementById("m"+lfd).style.background="#003399";}
		if (zustand==1) {document.getElementById("m"+lfd).style.background="#003399";}
		if (zustand==2) {document.getElementById("m"+lfd).style.color="#00FF00";}
	}

	if (zustand==2)
	{
//		document.getElementById("m"+lfd).style.background="#00CC68";
		vgl=lfd;
	}
}

// ----------------------------------------------------------------------------------

function bw2(u_lfd,zustand,adr_bild)
{
	if (uvgl!=u_lfd)
	{
		if (zustand==0) {document.getElementById("mm"+u_lfd).style.background="#003399";}
		if (zustand==1) {document.getElementById("mm"+u_lfd).style.background="#00CCAA";}
		if (zustand==2) {document.getElementById("mm"+u_lfd).style.background="#FFFFFF";}
	}

	if (zustand==2)
	{
//		document.getElementById("mm"+u_lfd).style.background="#00CC68";
		uvgl=u_lfd;
	}
}

// ----------------------------------------------------------------------------------

function schreibenmenue(titel_lfd)
{
	var text="<table border=0 class='t0' cellspacing=0 cellpadding=0 width='100%'>";
	for (var i=0;i<=anzahl_titel;i++)
	{
			if (i==0) {text+="<tr><td class='m1' align='left' height=26><b>"+ttl[0][lang]+"</b><br></td></tr>";}
//		else if (i==3) {text+="<tr><td class='m1' align='center' height=26>"+ttl[3][lang]+"</td></tr>";}
//		else if (i==7) {text+="<tr><td class='m1' align='center' height=26>"+ttl[7][lang]+"</td></tr>";}
//		else if (i==11) {text+="<tr><td class='m1' align='center' height=26>"+ttl[11][lang]+"</td></tr>";}
		else if (i==titel_lfd && titel[titel_lfd].length>1)
		{
			text+="<tr><td class='t1'>";
			text+="<table border=0 cellspacing=0 cellpadding=0 width='100%'>"
			text+="<tr><td class='t1' height=30 id='m"+i+"'><b>";
			text+=titel[titel_lfd][0];
			text+="</b></td></tr>";

			for (var z=1;z<titel[titel_lfd].length;z++)
			{
				text+="<tr><td class='t1' id='mm"+z+"' height='20'>";
				if (z==ulfd) {text+="&nbsp;&nbsp;&nbsp;<span class='m2'>"+titel[titel_lfd][z]+"</span>";}
				else
				{
					text+="&nbsp;&nbsp;&nbsp;<a class='m3' href='"+verweis[titel_lfd][z]+"' onmouseover='bw2("+z+",1,11)' onmouseout='bw2("+z+",0,10)' onclick='bw2("+z+",2,11)'>&nbsp;"+titel[titel_lfd][z]+"</a>";
				}
				text+="</td></tr>";
			}
			text+="</table></td></tr>";
		}
		else
		{
			text+="<tr>";
			text+="<td class='t1' id='m"+i+"' height=30>";
			if (i==lfd) {text+="&nbsp;<span class='m4'>"+titel[i][0]+"</span>";}
			else {text+="<a class='m5' href='"+verweis[i][0]+"' onmouseover='bw1("+i+",1,11)' onmouseout='bw1("+i+",0,10)' onclick='bw1("+i+",2,11)'>&nbsp;"+titel[i][0]+"</a>";}
			text+="</td></tr>";
		}
	}
	text+="</table>";

	document.getElementById("menue").innerHTML=text;
	if (titel_lfd>0) {bw1(titel_lfd,2,11);};
	if (ulfd>0) {bw2(ulfd,2,11);}
	ulfd=0;
}

// ----------------------------------------------------------------------------------

var f1="";
var f2="";

// ----------------------------------------------------------------------------------

function fenster_ohne(dateiname,breite,hoehe,sx,sy)
{
	if (f1) {f1.close();}
	f1=window.open (dateiname,"ff1","location=no,resizable=yes,scrollbars=no,status=no,menubar=no,width="+breite+",height="+hoehe+",left="+sx+",top="+sy);
	f1.focus();
}

// ----------------------------------------------------------------------------------
 
function fenster_mit(dateiname,breite,hoehe,sx,sy)
{
	if (f2) {f2.close();}
	f2=window.open (dateiname,"ff2","location=no,resizable=yes,scrollbars=yes,status=no,menubar=yes,width="+breite+",height="+hoehe+",left="+sx+",top="+sy);
	f2.focus();
}

// ----------------------------------------------------------------------------------

function drucken()
{
	if (window.print) {window.print();}
	else
	{
		alert ("Ihr Browser unterstützt die Druckfunktion nicht.\nSie können das Dokument über die Drukfunktion Ihres Browsers ausdruckn.\nIm Pulldown-Menü - Datei - befindet sich die Druckfunktion bei Ihrem Browser.");
	}
}

// ------------------------------------------------------------------------------

function runden2(s)
{
	var xx = (Math.round(s*100)/100)+"";
	if (xx.indexOf(".")<0) return xx+".00";
	while (xx.length-xx.indexOf(".")<3) xx += "0";
	return xx;
}

// ------------------------------------------------------------------------------

function runden3(s)
{
	var xx = (Math.round(s*1000)/1000)+"";
	if (xx.indexOf(".")<0) return xx+".000";
	while (xx.length-xx.indexOf(".")<4) xx += "0";
	return xx;
}

// ------------------------------------------------------------------------------

function pruef_zahl(a,b)
{
	var c=a.replace(/,/,".");
	c=Number(c);
//	c=eval(b*1);

	if (isNaN(c)==true)
	{
		alert("Achtung!\n\nSie haben keine gültige Zahl eingegeben\n\nBitte wiederholen Sie die Eingabe.");
		c=0;
	}
	else if (c=="") {c=0;}
	if (b==0) {c=Math.round(c);}
	if (b==2) {c=runden2(c);}
	if (b==3) {c=runden3(c);}
	return c;
}

// --------------------------------------------------------------------------

if(window.navigator.systemLanguage && !window.navigator.language) {
  function hoverIE() {
    var LI = document.getElementById("Navigation").firstChild;
    do {
      if (sucheUL(LI.firstChild)) {
        LI.onmouseover=einblenden; LI.onmouseout=ausblenden;
      }
      LI = LI.nextSibling;
    }
    while(LI);
  }

  function sucheUL(UL) {
    do {
      if(UL) UL = UL.nextSibling;
      if(UL && UL.nodeName == "UL") return UL;
    }
    while(UL);
    return false;
  }

  function einblenden() {
    var UL = sucheUL(this.firstChild);
    UL.style.display = "block"; UL.style.backgroundColor = "silver";
  }
  function ausblenden() {
    sucheUL(this.firstChild).style.display = "none";
  }

  window.onload=hoverIE;
}


