﻿var menul=new Array(9);
var mt=new Array(9);
var mts=new Array(9);
var initdone=0;
var yabs=0;
var xabs=0;
var ymin=0;
var ymax=190; //standard 90

//Style einrichten
var dw1='';
var dw2='';

ns = (document.layers) ? 1:0
w3c = (document.getElementById) ? 1:0
ie = (document.all) ? 1:0
ie5=false;
    if (ie) {
       if (navigator.userAgent.indexOf('MSIE 5')>0) { ie5 = true;  }//end if
    }//end if
	
	
// Menüs definieren
// ----------------
// Konzerte
mt[1]='&nbsp;&nbsp;<a href="TINFO.DLL?fun=TLISTK&doc=kategorien/kon_roc&key=1A&seg=1&id=' + ses +'&backdoc='+ bac + '" class="menu">&nbsp;Rock/Pop&nbsp;</a>&nbsp;|&nbsp;';
mt[1]+='<a href="TINFO.DLL?fun=TLISTK&doc=kategorien/kon_har&key=1B&seg=1&id=' + ses +'&backdoc='+ bac + '" class="menu">&nbsp;Hard &amp; Heavy&nbsp;</a>&nbsp;|&nbsp;';
mt[1]+='<a href="TINFO.DLL?fun=TLISTK&doc=kategorien/kon_hip&key=1C&seg=1&id=' + ses +'&backdoc='+ bac + '" class="menu">&nbsp;HipHop &amp; Black&nbsp;</a>&nbsp;|&nbsp;';
mt[1]+='<a href="TINFO.DLL?fun=TLISTK&doc=kategorien/son_fes&key=4C&seg=1&id=' + ses +'&backdoc='+ bac + '" class="menu">&nbsp;Festivals&nbsp;</a>&nbsp;|&nbsp;';
mt[1]+='<a href="TINFO.DLL?fun=TLISTK&doc=kategorien/kon_jaz&key=1D&seg=1&id=' + ses +'&backdoc='+ bac + '" class="menu">&nbsp;Jazz &amp; Blues&nbsp;</a>&nbsp;|&nbsp;';
mt[1]+='<a href="TINFO.DLL?fun=TLISTK&doc=kategorien/kon_sch&key=1E&seg=1&id=' + ses +'&backdoc='+ bac + '" class="menu">&nbsp;Folk&nbsp;Music&nbsp;</a>&nbsp;|&nbsp;';
mt[1]+='<a href="TINFO.DLL?fun=TLISTK&doc=kategorien/kon_son&key=1F&seg=1&id=' + ses +'&backdoc='+ bac + '" class="menu">&nbsp;Further...&nbsp;</a>';
mts[1]='<img src="/img/red.gif" width="81" height="5" alt=""><img src="/img/blank.gif" style="background:#fff;" width="470" height="5" alt=""><br/>';

// Klassik & Kultur
mt[2]='&nbsp;&nbsp;<a href="TINFO.DLL?fun=TLISTK&doc=kategorien/cul_kla&key=2A&seg=1&id=' + ses +'&backdoc='+ bac + '" class="menu">&nbsp;Classical&nbsp;Concerts&nbsp;</a>&nbsp;|&nbsp;';
mt[2]+='<a href="TINFO.DLL?fun=TLISTK&doc=kategorien/cul_fes&key=2G&seg=1&id=' + ses +'&backdoc='+ bac + '" class="menu">&nbsp;Festivals&nbsp;</a>&nbsp;|&nbsp;';
mt[2]+='<a href="TINFO.DLL?fun=TLISTK&doc=kategorien/cul_ope&key=2C&seg=1&id=' + ses +'&backdoc='+ bac + '" class="menu">&nbsp;Opera &amp; Operetta&nbsp;</a>&nbsp;|&nbsp;';
mt[2]+='<a href="TINFO.DLL?fun=TLISTK&doc=kategorien/cul_the&key=2D&seg=1&id=' + ses +'&backdoc='+ bac + '" class="menu">&nbsp;Theater&nbsp;</a>&nbsp;|&nbsp;';
mt[2]+='<a href="TINFO.DLL?fun=TLISTK&doc=kategorien/cul_tanz&key=2H&seg=1&id=' + ses +'&backdoc='+ bac + '" class="menu">&nbsp;Ballet &amp Dance&nbsp;</a>&nbsp;|&nbsp;';
mt[2]+='<a href="TINFO.DLL?fun=TLISTK&doc=kategorien/cul_les&key=2E&seg=1&id=' + ses +'&backdoc='+ bac + '" class="menu">&nbsp;Reading&nbsp;</a>&nbsp;|&nbsp;';
mt[2]+='<a href="TINFO.DLL?fun=TLISTK&doc=kategorien/cul_cabaret&key=2F&seg=1&id=' + ses +'&backdoc='+ bac + '" class="menu">&nbsp;Cabaret&nbsp;</a>';
//mt[2]+='<a href="TINFO.DLL?fun=TLISTK&doc=kategorien/kla_son&key=2F&seg=1&id=' + ses +'&backdoc='+ bac + '" class="menu">&nbsp;Further...&nbsp;</a>';
mts[2]='<img src="/img/blank.gif" style="background:#fff;" width="82" height="5" alt=""><img src="../img/red.gif" width=82 height=5 alt=""><img src="/img/blank.gif" style="background:#fff;" width="390" height="5" alt=""><br>';

// Sport
mt[3]='&nbsp;&nbsp;<a href="TINFO.DLL?fun=TLISTK&doc=kategorien/spo_fus&key=3A&seg=1&id=' + ses +'&backdoc='+ bac + '" class="menu">&nbsp;Football&nbsp;</a>&nbsp;|&nbsp;';
mt[3]+='<a href="TINFO.DLL?fun=TLISTK&doc=kategorien/spo_mot&key=3B&seg=1&id=' + ses +'&backdoc='+ bac + '" class="menu">&nbsp;Motorsports&nbsp;</a>&nbsp;|&nbsp;';
mt[3]+='<a href="TINFO.DLL?fun=TLISTK&doc=kategorien/spo_ten&key=3C&seg=1&id=' + ses +'&backdoc='+ bac + '" class="menu">&nbsp;Tennis&nbsp;</a>&nbsp;|&nbsp;';
mt[3]+='<a href="TINFO.DLL?fun=TLISTK&doc=kategorien/spo_eis&key=3D&seg=1&id=' + ses +'&backdoc='+ bac + '" class="menu">&nbsp;Winter&nbsp;Sports&nbsp;</a>&nbsp;|&nbsp;';
mt[3]+='<a href="TINFO.DLL?fun=TLISTK&doc=kategorien/spo_han&key=3E&seg=1&id=' + ses +'&backdoc='+ bac + '" class="menu">&nbsp;Handball&nbsp;</a>&nbsp;|&nbsp;';
mt[3]+='<a href="TINFO.DLL?fun=TLISTK&doc=kategorien/spo_bas&key=3G&seg=1&id=' + ses +'&backdoc='+ bac + '" class="menu">&nbsp;Basketball&nbsp;</a>&nbsp;|&nbsp;';
mt[3]+='<a href="TINFO.DLL?fun=TLISTK&doc=kategorien/spo_son&key=3F&seg=1&id=' + ses +'&backdoc='+ bac + '" class="menu">&nbsp;Further...&nbsp;</a>';
mts[3]='<img src="/img/blank.gif" style="background:#fff;" width=165 height=5 alt=""><img src="../img/red.gif" width=66 height=5 alt=""><img src="/img/blank.gif" style="background:#fff;" width="300" height="5" alt=""><br>';

// Musicals & Show
mt[4]='<a href="TINFO.DLL?fun=TLISTK&doc=kategorien/musical_show/mus_show_sta&key=2B&seg=1&id=' + ses +'&backdoc='+ bac + '" class="menu"></a>&nbsp;';
mts[4]='<img src="/img/blank.gif" style="background:#fff;" width=232 height=5 alt=""><img src="../img/red.gif" width=120 height=5 alt=""><img src="/img/blank.gif" style="background:#fff;" width="200" height="5" alt=""><br>';

// Comedy
mt[5]='<a href="TINFO.DLL?fun=TLISTK&doc=kategorien/son_com&id=' + ses +'&backdoc='+ bac + '" class="menu"></a>&nbsp;';
mts[5]='<img src="/img/blank.gif" style="background:#fff;" width=353 height=5 alt=""><img src="../img/red.gif" width=76 height=5 alt=""><img src="/img/blank.gif" style="background:#fff;" width="110" height="5" alt=""><br>';


// Sonstiges
//mt[6]='&nbsp;&nbsp;<a href="TINFO.DLL?fun=TLISTK&doc=kategorien/son_com&key=4A&seg=1&&id=' + ses +'&backdoc='+ bac + '" class="menu">&nbsp;Comedy&nbsp;Cabaret&nbsp;</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
mt[6]='&nbsp;&nbsp;<a href="TINFO.DLL?fun=TLISTK&doc=kategorien/son_kin&key=4D&seg=1&id=' + ses +'&backdoc='+ bac + '" class="menu">&nbsp;Children&nbsp;</a>&nbsp;|&nbsp;';
mt[6]+='<a href="TINFO.DLL?fun=TLISTK&doc=kategorien/son_zir&key=4C&seg=1&id=' + ses +'&backdoc='+ bac + '" class="menu">&nbsp;Circus&nbsp;</a>&nbsp;|&nbsp;';
mt[6]+='<a href="TINFO.DLL?fun=TLISTK&doc=kategorien/son_fre&key=4G&seg=1&id=' + ses +'&backdoc='+ bac + '" class="menu">&nbsp;Family Attraction&nbsp;</a>&nbsp;|&nbsp;';
mt[6]+='<a href="TINFO.DLL?fun=TLISTK&doc=kategorien/son_par&key=4H&seg=1&id=' + ses +'&backdoc='+ bac + '" class="menu">&nbsp;Party&nbsp;</a>&nbsp;|&nbsp;';
mt[6]+='<a href="TINFO.DLL?fun=TLISTK&doc=kategorien/son_son&key=4E&seg=1&id=' + ses +'&backdoc='+ bac + '" class="menu">&nbsp;Further...&nbsp;</a>';
mts[6]='<img src="/img/blank.gif" style="background:#fff;" width=430 height=5 alt=""><img src="../img/red.gif" width=66 height=5 alt=""><img src="/img/blank.gif" style="background:#fff;" width="100" height="5" alt=""><br>';

// Eventreisen
mt[7]='&nbsp;&nbsp;<a href="TINFO.DLL?fun=TLISTK&doc=kategorien/rei_kon&key=6A&seg=1&id=' + ses +'&backdoc='+ bac + '" class="menu">&nbsp;Concerts&nbsp;</a>&nbsp;|&nbsp;';
mt[7]+='<a href="TINFO.DLL?fun=TLISTK&doc=kategorien/rei_kla&key=6B&seg=1&id=' + ses +'&backdoc='+ bac + '" class="menu">&nbsp;Classical&nbsp;Music &amp; Culture&nbsp;</a>&nbsp;|&nbsp;';
mt[7]+='<a href="TINFO.DLL?fun=TLISTK&doc=kategorien/rei_spo&key=6C&seg=1&id=' + ses +'&backdoc='+ bac + '" class="menu">&nbsp;Sport&nbsp;</a>&nbsp;';
mts[7]='<img src="/img/blank.gif" style="background:#fff;" width=497 height=5 alt=""><img src="../img/red.gif" width=96 height=5 alt=""><img src="/img/blank.gif" style="background:#fff;" width="5" height="5" alt=""><br>';



if (ns || ie) {
        if(!window.saveInnerWidth) {
          window.onresize = resizeIt;
          window.saveInnerWidth = window.innerWidth;
          window.saveInnerHeight = window.innerHeight;
        }
}

function resizeIt() {
        if (saveInnerWidth < window.innerWidth ||
                saveInnerWidth > window.innerWidth ||
                saveInnerHeight > window.innerHeight ||
                saveInnerHeight < window.innerHeight )
        {
          window.history.go(0);
        }
}

function show(obj) {
        if (ns) obj.visibility = "show"
        else if (ie || w3c) obj.visibility = "visible"
}

function hide(obj) {
        if (ns) obj.visibility = "hide"
        else if (ie || w3c) obj.visibility = "hidden"
}


function init(){
	if (ns||ie||w3c) {
		if (ns) {
			menul[1]=document.ll1;
			menul[2]=document.ll2;
			menul[3]=document.ll3;
			menul[4]=document.ll4;
			menul[5]=document.ll5;
			menul[6]=document.ll6;
			menul[7]=document.ll7;
			menul[8]=document.ll8;//tauschboerse
		}	else if (ie) {
			menul[1]=ll1.style;
			menul[2]=ll2.style;
			menul[3]=ll3.style;
			menul[4]=ll4.style;
			menul[5]=ll5.style;
			menul[6]=ll6.style;
			menul[7]=ll7.style;
			menul[8]=ll8.style;//tauschboerse
		}	else if (w3c) {
			menul[1]=document.getElementById("ll1").style;
			menul[2]=document.getElementById("ll2").style;
			menul[3]=document.getElementById("ll3").style;
			menul[4]=document.getElementById("ll4").style;
			menul[5]=document.getElementById("ll5").style;
			menul[6]=document.getElementById("ll6").style;
			menul[7]=document.getElementById("ll7").style;
			menul[8]=document.getElementById("ll8").style;//tauschboerse
		}						
		initdone=1;
		document.onmousemove = mouseMove;
					if (ns) document.captureEvents(Event.MOUSEMOVE);
	}
}

function mouseMove(e) {
  if (ns) { yabs=e.pageY; xabs=e.pageX; }
	if (w3c &&!ie) { yabs=e.clientY; xabs=e.clientX; }
  if (ie) { yabs=event.y; xabs=event.x; }
  if (ie5) { yabs=event.y+document.body.scrollTop; xabs=event.x+document.body.scrollLeft;}
  if (yabs>ymax || yabs<ymin) closeall();
}

function sh(i){
	if (document.images) {
			if (initdone==1) showmenufor(i);
	}
}

function showmenufor(i) {
	if (ie){
	closeall();
	nr=parseInt(i.charAt(1));	
	menul[nr].left=getxpos('helper');
	menul[nr].top=getypos('helper');
	show(menul[nr]);	
	}
	else{				
	closeall();	
	nr=parseInt(i.charAt(1));	
	menul[nr].left=getxpos('helper');
	menul[nr].top=getypos('helper');
	show(menul[nr]);		
	}
}

function hidemenufor(i) {
        nr=parseInt(i.charAt(1));
        hide(menul[nr]);
        //document.images[i].src="../img/"+i+".gif";
}

function closeall() {
        for (i=1;i<=8;i++) hide(menul[i]);
}

function getxpos(name) {
        if ( ns || w3c && !ie) {
        return( eval( "document.images." + name + ".x" ) );
        }

        var j = 0;
        var i;
		if(ie) i = eval( "document.all.id" + name );
        while( i.tagName.toLowerCase() != "body" ) {
        j += i.offsetLeft;
        i = i.offsetParent;
        }
return( j );
}

function getypos(name) {
	if ( ns || w3c && !ie ) {
	return( eval( "document.images." + name + ".y" ) );
	}
        var j = 0;
        var i;
		if(ie) i = eval( "document.all.id" + name );
        while( i.tagName.toLowerCase() != "body" ) {
        j += i.offsetTop;
        i = i.offsetParent;
        }			
return( j );
}

//Style einrichten
dw1='<div class="unternavigation">';
dw2='</div>';

if (ns || ie || w3c) {
	document.writeln('<style typer="text/css" rel="stylesheet">');
	document.writeln('<!--');
	for (i=1;i<=8;i++) {   document.writeln('#ll'+i+' {position:absolute; left:100px; top:50px; width:604px; height:50px;visibility:hidden;}');   }
	document.writeln('//-->');
	document.writeln('</STYLE>');
	for (i=1;i<=8;i++) {   document.writeln('<DIV ID="ll' + i + '">' + mts[i] + dw1 + mt[i] + dw2 + '</DIV>');        }		
}//end if

init();

function change_country(){
	if (document.persdaten){
			document.persdaten.LLAND.value=document.persdaten.LAND.value;     
	}//end if
}//end function
