function opn_extTo(e) {
	return opn_get2(e, 553, 600, '0', '0', '0', '1', 6, 82);
}
function disp_navi(e) {
	var dv;
	for (i = 0; (dv = document.getElementsByTagName("div")[i]); i++) {
    	if ((dv.getAttribute("id")) && (dv.getAttribute("id").indexOf("nav_") != -1)) {
            dv.style.display =	"none";
		}
	}
	var ev =	(!e) ?	window.event :	e;
	elm =	get_elem(e);
	var navi =	document.getElementById(elm.getAttribute("id").replace(/lnk_/, "nav_"));
	navi.style.display =	"block";
}
function write_table() {
	if (document.getElementById('hide_sub')) {
		var mains, subs, j;
		var str =	"";
		var la =	(lang == "de")	?  1 :	2;
		var the_links =	[
			["show", "Show", "Show",
				["musical", "Musical", "Musical"],
				["show-fashion", "Fashion-Show", "Fashion show"],
				["show-revue-dance", "Revue/Tanz", "Revue/Dance"],
				["show-tv", "TV-Show", "TV show"],
				["show-circus-vaudeville", "Zirkus/Varieté", "Circus/Vaudeville"],
				["show-other", "Weitere", "Other"]
			],
			["concert", "Konzert", "Concert",
				["concert-alternative", "Alternative", "Alternative"],
				["concert-dance-electronic", "Dance/Electronics", "Dance/Electronics"],
				["concert-rockpop-ger", "Deutsch", "Pop", "German pop"],
				["concert-gothic-wave", "Gothic/Wave", "Gothic/Wave"],
				["concert-hard-heavy", "Hard'n'Heavy", "Hard'n'Heavy"],
				["concert-jazz-blues", "Jazz/Blues", "Jazz/Blues"],
				["concert-pop", "Pop", "Pop"],
				["concert-rap-hiphop", "Rap/Hip-Hop", "Rap/HipHop"],
				["concert-reggae-ska", "Reggae/Ska", "Reggae/Ska"],
				["concert-rb-soul", "R'n'B/Soul", "R'n'B/Soul"],
				["concert-rock", "Rock", "Rock"],
				["concert-schlager", "Schlager", "Folk music"],
				["concert-songwr-folk", "Songwriter/Folk", "Songwriter"],
				["concert-traditional", "Volksmusik", "Traditional"],
				["concert-worldmusic", "Weltmusik", "World music"],
				["concert-other", "Weitere", "Other"]
			],
			["comedy", "Comedy", "Comedy",
				["comedy-cabaret", "Kabarett", "Cabaret"],
				["comedy-other", "Weitere", "Other"]
			],
			["classics", "Klassik/Kultur", "Classical/Culture",
				["classics-concert", "Klassik-Konzert", "Classical concert"],
				["classics-opera", "Oper", "Opera"],
				["classics-ballet", "Tanz/Ballett", "Dance/Ballet"],
				["classics-theatre", "Theater", "Theatre"],
				["classics-reading", "Literatur", "Reading"],
				["classics-museum", "Museum", "Museum"],
				["classics-operette", "Operette", "Operetta"],
				["classics-other", "Weitere", "Other"]
			],
				["sports", "Sport", "Sports",
				["sports-american-football", "American Football", "American football"],
				["sports-basketball", "Basketball", "Basketball"],
				["sports-boxing", "Boxen", "Boxing"],
				["sports-icehockey", "Eishockey", "Ice hockey"],
				["sports-soccer", "Fußball", "Football"],
				["sports-handball", "Handball", "Handball"],
				["sports-hockey", "Hockey", "Hockey"],
				["sports-athletics", "Leichtathletik", "Athletics"],
				["sports-motorsports", "Motorsport", "Motorsports"],
				["sports-equestrianism", "Reitsport", "Equitation"],
				["sports-tennis", "Tennis", "Tennis"],
				["sports-volleyball", "Volleyball", "Volleyball"],
				["sports-aquatics", "Wassersport", "Aquatic sports"],
				["sports-wintersports", "Wintersport", "Winter sports"],
				["sports-other", "Weitere", "Other"]
			],
			["children", "Kinder", "Kids",
				["children-theatre", "Kindertheater", "Kids theatre"],
				["children-other", "Weitere", "Other"]
			],
 			["leisure", "Freizeit", "Recreations",
				["leisure-travel", "Event-Reise", "Event trips"],
				["leisure-funpark", "Freizeitpark", "Fun park"],
				["leisure-guided-tour", "Führungen", "Guided tours"],
				["leisure-exhibition", "Messen", "Exhibitions"],
				["leisure-party", "Party", "Party"],
				["leisure-folk-festival-cityparty", "Volksfeste", "Folk festivals"],
				["leisure-other", "Weitere", "Other"]
			]
		];
		var loca =	(hotel != "all") ? hotel :	leitbe;
		for (i = 0; i < the_links.length; i++) {
			mains =	the_links[i];
			str+=	"<div class=\"in_nav\" id=\"nav_" + mains[0] + "\"><table cellspacing=\"0\"><tr><td><a href=\"" + lang + "/ticket_online/uebersicht/" + loca.toLowerCase() + "/x-" + mains[0] + ".html\">" + mains[la] + "</a>";
			for (j = 3; j < mains.length; j++) {
				subs =	mains[j];
				str+=	(j % 7 == 2) ?	"</td><td>" :	"<br>";
				str+=	"<a href=\"" + lang + "/ticket_online/uebersicht/" + loca.toLowerCase() + "/" + subs[0] + ".html\">" + subs[la] + "</a>";
			}
			str+=	"</td></tr></table></div>";
		}
		document.getElementById('hide_sub').innerHTML =	str;
	}
}
function arr_navi() {
	qr_start();
	write_table();
	if ((document.getElementById('hide_sub')) && (document.getElementById(document.getElementById('hide_sub').className.replace(/hd_/, "nav_")))) {
		document.getElementById(document.getElementById('hide_sub').className.replace(/hd_/, "nav_")).style.display =	"block";
	}
	var anch, imag;
	for (i = 0; (anch = document.getElementsByTagName("a")[i]); i++) {
    	if ((anch.getAttribute("id")) && (anch.getAttribute("id").indexOf("lnk_") != -1)) {
            anch.onmouseover =	disp_navi;
		}
		if (anch.getAttribute("rel") == "external_To") {
    		anch.onclick =	opn_extTo;
		}
	}
	for (i = 0; (imag = document.getElementsByTagName("img")[i]); i++) {
    	if ((imag.getAttribute("src").indexOf("all_dates_tickets") != -1) && (document.getElementById("choose"))) {
    		imag.onclick =	function() {
				document.getElementById("choose").style.display = "block";
			};
		}
	}
	return true;
}
window.onload =	arr_navi;
