// MENÜDEFINITIONEN

// Hauptmenü - Home
vM_txt_1 = 'Home';
vM_url_1 = 'http://www.vienna.at';

// Hauptmenü - Service
vM_txt_2 = 'Service';

// Untermenü - Fahrpläne
vM_txt_2_1 = 'Fahrpläne';
vM_txt_2_1_1 = 'Wiener Linien';
vM_url_2_1_1 = 'http://apps.vienna.at/feat/microsite/fahrplan/';
vM_txt_2_1_2 = 'ÖBB';
vM_url_2_1_2 = 'http://apps.vienna.at/vis/v1_redaktion/links/redir.asp?url=http://fahrplan.oebb.at/bin/oebb.w02/query.exe/dn';

// Untermenü - Reise
vM_txt_2_2 = 'Reise';
vM_txt_2_2_1 = 'Anreise';
vM_url_2_2_1 = 'http://www.austria.com/engine.aspx/page/auscom-anreise-page';
vM_txt_2_2_2 = 'Buchen';
vM_url_2_2_2 = 'http://www.austria.com/engine.aspx/page/auscom-homepage-page';
vM_txt_2_2_3 = 'News';
vM_url_2_2_3 = 'http://www.austria.com/engine.aspx/page/auscom-angebote-page';
vM_txt_2_2_4 = 'Reiseführer Wien';
vM_url_2_2_4 = 'http://www.austria.com/engine.aspx/page/auscom-reisefuhrer-page/dc/om:vienna:oe_reisefuehrer/cn/vienna-news-boberrauter-20040830-114044';
vM_txt_2_2_5 = 'Reiseführer Österreich';
vM_url_2_2_5 = 'http://www.austria.com/engine.aspx/page/auscom-reisefuhrer-page';
vM_txt_2_2_6 = 'Hotels weltweit';
vM_url_2_2_6 = 'http://apps.vienna.at/feat/reise/';

vM_txt_2_3 = 'Routenplaner';
vM_url_2_3 = 'http://www.vienna.at/specials/routenplaner';
vM_txt_2_4 = 'Schwarzkappler';
vM_url_2_4 = 'http://apps.vienna.at/tools/schwarzkappler';
vM_txt_2_5 = 'Stadtplan';
vM_url_2_5 = 'http://www.vienna.at/features/stadtplan';
vM_txt_2_6 = '-';

// Untermenü - Shops
vM_txt_2_7 = 'Shops';
vM_txt_2_7_1 = 'Buchshop';
vM_url_2_7_1 = 'http://buchshop.vienna.at';
vM_txt_2_7_2 = 'Wäscheshop';
vM_url_2_7_2 = 'http://apps.vienna.at/tools/hubershop/';
//vM_txt_2_7_3 = 'DVD Verleih';
//vM_url_2_7_3 = 'http://apps.vienna.at/feat/microsite/dvdshop/';



// Untermenü - Suche
vM_txt_2_8 = 'Suche';
vM_txt_2_8_1 = 'Lokalführer';
vM_url_2_8_1 = 'http://apps.vienna.at/tools/restaurant/';
vM_txt_2_8_2 = 'Nachtapotheken';
vM_url_2_8_2 = 'http://apps.vienna.at/tools/apotheken/';
vM_txt_2_8_3 = 'Siteindex';
vM_url_2_8_3 = 'http://apps.vienna.at/tools/siteindex/';
vM_txt_2_8_4 = 'Telefonbuch';
vM_url_2_8_4 = 'http://apps.vienna.at/tools/telefonbuch/';

vM_txt_2_9 = '-';
//vM_txt_2_10 = 'Hochzeit';
//vM_url_2_10 = 'http://www.vienna.at/engine.aspx/page/vienna-special-hochzeit';
//vM_txt_2_11 = 'Märkte';
//vM_url_2_11 = 'http://www.vienna.at/engine.aspx/page/vienna-dateless-article-index-page/dc/om:vienna:maerkte';
//vM_txt_2_12 = 'Sport in Wien';
//vM_url_2_12 = 'http://www.vienna.at/engine.aspx/page/vienna-special-sportinwien';
//vM_txt_2_13 = 'Studieren in Wien';
//vM_url_2_13 = 'http://www.vienna.at/feat/special/studieren';
//vM_txt_2_13 = 'Wein Special';
//vM_url_2_13 = 'http://www.vienna.at/engine.aspx/page/vienna-special-wein';
//vM_txt_2_13 = '-';

// Untermenü - Anzeigen
vM_txt_2_10 = 'Anzeigen';
vM_txt_2_10_1 = 'Babysitterbörse';
vM_url_2_10_1 = 'http://apps.vienna.at/tools/baby';
vM_txt_2_10_2 = 'Kleinanzeigen';
vM_url_2_10_2 = 'http://kleinanzeigen.vienna.at/';
vM_txt_2_10_3 = 'Immobilien';
vM_url_2_10_3 = 'http://kleinanzeigen.vienna.at/local/de/1/Category/2/0/1/0/';
vM_txt_2_10_4 = 'Mitfahrbörse';
vM_url_2_10_4 = 'http://apps.vienna.at/tools/mifab';
vM_txt_2_10_5 = 'Motor';
vM_url_2_10_5 = 'http://kleinanzeigen.vienna.at/local/de/1/Category/1/5/1/0/';
vM_txt_2_10_6 = 'Stellenmarkt';
vM_url_2_10_6 = 'http://kleinanzeigen.vienna.at/local/de/1/Category/5/0/1/0/';

vM_txt_2_11 = '-';
vM_txt_2_12 = 'Mondkalender';
vM_url_2_12 = 'http://apps.vienna.at/tools/mondkalender/';
vM_txt_2_13 = 'Wetter';
vM_url_2_13 = 'http://apps.vienna.at/tools/wetter';
vM_txt_2_14 = '-';

// Untermenü - Produkte
vM_txt_2_15 = 'Produkte';
vM_txt_2_15_1 = 'Adsl';
vM_url_2_15_1 = 'http://apps.vienna.at/tools/internetzugang/';
vM_txt_2_15_2 = 'DialUp';
vM_url_2_15_2 = 'http://apps.vienna.at/tools/internetzugang/';
vM_txt_2_15_3 = 'Domains';
vM_url_2_15_3 = 'http://apps.vienna.at/tools/internetzugang/webhosting/';
vM_txt_2_15_4 = 'Freemail';
vM_url_2_15_4 = 'http://apps.vienna.at/feat/freemail/';
vM_txt_2_15_5 = 'IT Services';
vM_url_2_15_5 = 'http://www.medienhaus.com';
vM_txt_2_15_6 = 'Werbung';
vM_url_2_15_6 = 'http://www.austria.com/plus/';
vM_txt_2_16 = 'Newsletter';
vM_url_2_16 = 'http://www.vienna.at/features/newsletter';


// Hauptmenü - News
vM_txt_3 = 'News';

vM_txt_3_1 = 'Wien';
vM_url_3_1 = 'http://www.vienna.at/news/wien';
vM_txt_3_2 = 'Bezirke';

//Bezirkseiten
vM_txt_3_2_1 = '1. Bezirk - Innere Stadt';
vM_url_3_2_1 = 'http://www.vienna.at/news/wien/bezirk/innere-stadt/1-bezirk/page/bezirk-article-index-page';
vM_txt_3_2_2 = '2. Bezirk - Leopoldstadt';
vM_url_3_2_2 = 'http://www.vienna.at/news/wien/bezirk/leopoldstadt/2-bezirk/page/bezirk-article-index-page';
vM_txt_3_2_3 = '3. Bezirk - Landstraße';
vM_url_3_2_3 = 'http://www.vienna.at/news/wien/bezirk/landstrasse/3-bezirk/page/bezirk-article-index-page';
vM_txt_3_2_4 = '4. Bezirk - Wieden';
vM_url_3_2_4 = 'http://www.vienna.at/news/wien/bezirk/wieden/4-bezirk/page/bezirk-article-index-page';
vM_txt_3_2_5 = '5. Bezirk - Margareten';
vM_url_3_2_5 = 'http://www.vienna.at/news/wien/bezirk/margareten/5-bezirk/page/bezirk-article-index-page';
vM_txt_3_2_6 = '6. Bezirk - Mariahilf';
vM_url_3_2_6 = 'http://www.vienna.at/news/wien/bezirk/mariahilf/6-bezirk/page/bezirk-article-index-page';
vM_txt_3_2_7 = '7. Bezirk - Neubau';
vM_url_3_2_7 = 'http://www.vienna.at/news/wien/bezirk/neubau/7-bezirk/page/bezirk-article-index-page';
vM_txt_3_2_8 = '8. Bezirk - Josefstadt';
vM_url_3_2_8 = 'http://www.vienna.at/news/wien/bezirk/josefstadt/8-bezirk/page/bezirk-article-index-page';
vM_txt_3_2_9 = '9. Bezirk - Alsergrund';
vM_url_3_2_9 = 'http://www.vienna.at/news/wien/bezirk/alsergrund/9-bezirk/page/bezirk-article-index-page';
vM_txt_3_2_10 = '10. Bezirk - Favoriten';
vM_url_3_2_10 = 'http://www.vienna.at/news/wien/bezirk/favoriten/10-bezirk/page/bezirk-article-index-page';
vM_txt_3_2_11 = '11. Bezirk - Simmering';
vM_url_3_2_11 = 'http://www.vienna.at/news/wien/bezirk/simmering/11-bezirk/page/bezirk-article-index-page';
vM_txt_3_2_12 = '12. Bezirk - Meidling';
vM_url_3_2_12 = 'http://www.vienna.at/news/wien/bezirk/meidling/12-bezirk/page/bezirk-article-index-page';
vM_txt_3_2_13 = '13. Bezirk - Hietzing';
vM_url_3_2_13 = 'http://www.vienna.at/news/wien/bezirk/hietzing/13-bezirk/page/bezirk-article-index-page';
vM_txt_3_2_14 = '14. Bezirk - Penzing';
vM_url_3_2_14 = 'http://www.vienna.at/news/wien/bezirk/penzing/14-bezirk/page/bezirk-article-index-page';
vM_txt_3_2_15 = '15. Bezirk - Fünfhaus';
vM_url_3_2_15 = 'http://www.vienna.at/news/wien/bezirk/rudolfsheim-fuenfhaus/15-bezirk/page/bezirk-article-index-page';
vM_txt_3_2_16 = '16. Bezirk - Ottakring';
vM_url_3_2_16 = 'http://www.vienna.at/news/wien/bezirk/ottakring/16-bezirk/page/bezirk-article-index-page';
vM_txt_3_2_17 = '17. Bezirk - Hernals';
vM_url_3_2_17 = 'http://www.vienna.at/news/wien/bezirk/hernals/17-bezirk/page/bezirk-article-index-page';
vM_txt_3_2_18 = '18. Bezirk - Währing';
vM_url_3_2_18 = 'http://www.vienna.at/news/wien/bezirk/waehring/18-bezirk/page/bezirk-article-index-page';
vM_txt_3_2_19 = '19. Bezirk - Döbling';
vM_url_3_2_19 = 'http://www.vienna.at/news/wien/bezirk/doebling/19-bezirk/page/bezirk-article-index-page';
vM_txt_3_2_20 = '20. Bezirk - Brigittenau';
vM_url_3_2_20 = 'http://www.vienna.at/news/wien/bezirk/brigittenau/20-bezirk/page/bezirk-article-index-page';
vM_txt_3_2_21 = '21. Bezirk - Floridsdorf';
vM_url_3_2_21 = 'http://www.vienna.at/news/wien/bezirk/floridsdorf/21-bezirk/page/bezirk-article-index-page';
vM_txt_3_2_22 = '22. Bezirk - Donaustadt';
vM_url_3_2_22 = 'http://www.vienna.at/news/wien/bezirk/donaustadt/22-bezirk/page/bezirk-article-index-page';
vM_txt_3_2_23 = '23. Bezirk - Liesing';
vM_url_3_2_23 = 'http://www.vienna.at/news/wien/bezirk/liesing/23-bezirk/page/bezirk-article-index-page';

vM_txt_3_3 = 'Österreich';
vM_url_3_3 = 'http://www.vienna.at/news/oesterreich';
vM_txt_3_4 = 'Welt';
vM_url_3_4 = 'http://www.vienna.at/news/welt';
vM_txt_3_5 = 'Sport';
vM_url_3_5 = 'http://www.vienna.at/specials/sport';
vM_txt_3_6 = '-';
vM_txt_3_7 = 'Show &amp; Promis';
vM_url_3_7 = 'http://www.vienna.at/news/tp:vol:leute';
vM_txt_3_8 = 'Wirtschaft';
vM_url_3_8 = 'http://www.vienna.at/specials/wirtschaft';
vM_txt_3_9 = '-';
vM_txt_3_10 = 'Reise-News';
vM_url_3_10 = 'http://www.austria.com/engine.aspx/page/auscom-homepage-page';
vM_txt_3_11 = 'Verkehrsnews';
vM_url_3_11 = 'http://www.vienna.at/specials/verkehr';
vM_txt_3_12 = 'Gesundheit';
vM_url_3_12 = 'http://www.vienna.at/specials/gesundheit';

// Hauptmenü - Programm
vM_txt_4 = 'Programm';
vM_txt_4_1 = 'Ausstellungen';
vM_url_4_1 = 'http://apps.vienna.at/tools/wohin/welcome.asp?ecategory_id=76';
vM_txt_4_2 = 'Bühne';
vM_url_4_2 = 'http://apps.vienna.at/tools/wohin/welcome.asp?ecategory_id=73';
vM_txt_4_3 = 'Dies &amp; Das';
vM_url_4_3 = 'http://apps.vienna.at/tools/wohin/welcome.asp?ecategory_id=75';
vM_txt_4_4 = 'Konzert';
vM_url_4_4 = 'http://apps.vienna.at/tools/wohin/welcome.asp?ecategory_id=71';
vM_txt_4_5 = 'Party-Events';
vM_url_4_5 = 'http://apps.vienna.at/tools/partyevents/welcome.asp?action=search&ecategory_id=74&filter=1';
vM_txt_4_6 = 'Kinder';
vM_url_4_6 = 'http://apps.vienna.at/tools/wohin/welcome.asp?action=search&ecategory_id=79&ecname=Kinder&sort=1';
vM_txt_4_7 = 'Kino';
vM_url_4_7 = 'http://apps.vienna.at/tools/kino/';
vM_txt_4_8 = 'Tipp des Tages';
vM_url_4_8 = 'http://www.vienna.at/news/om:vienna:tippdestages/page/dateless-article-index-page';
vM_txt_4_9 = '-';
vM_txt_4_10 = 'Wien-Programm';
vM_url_4_10 = 'http://apps.vienna.at/tools/vera/';
// vM_txt_4_8 = 'Lokalführer';
// vM_url_4_8 = 'http://apps.vienna.at/tools/restaurant/';

// Untermenü - Partys
// vM_txt_4_9 = 'Partys';
// vM_txt_4_9_1 = ':Partyportal:';
// vM_url_4_9_1 = 'http://www.vienna.at/engine.aspx/page/vienna-partyportal';
// vM_txt_4_9_2 = 'Dj - Börse';
// vM_url_4_9_2 = 'http://apps.vienna.at/tools/dj-boerse/';
// vM_txt_4_9_3 = 'Foto - Archiv';
// vM_url_4_9_3 = 'http://www.vienna.at/engine.aspx/page/vienna-partyfotoarchiv';
// vM_txt_4_9_4 = 'Life Ball 2004';
// vM_url_4_9_4 = 'http://www.vienna.at/engine.aspx/page/vienna-special-lifeball2004';
// vM_txt_4_9_5 = 'Party-Tipps';
// vM_url_4_9_5 = 'http://apps.vienna.at/tools/wohin/welcome.asp?action=search&ecategory_id=74&ecname=Party&sort=1';
// vM_txt_4_9_6 = 'Partyfotos';
// vM_url_4_9_6 = 'http://www.vienna.at/engine.aspx/page/vienna-partyfotos';
// vM_txt_4_9_7 = 'Partyräume';
// vM_url_4_9_7 = 'http://www.vienna.at/engine.aspx/page/vienna-partyraeume';

// Hauptmenü - Fun & Friends
vM_txt_5 = 'Fun &amp; Friends';
vM_txt_5_1 = 'Party';
vM_url_5_1 = 'http://www.vienna.at/party';

// Untermenü - Treffpunkt
vM_txt_5_2 = 'Treffpunkt';
vM_txt_5_2_1 = 'Babysitterbörse';
vM_url_5_2_1 = 'http://apps.vienna.at/tools/baby';
vM_txt_5_2_2 = 'Mitfahrbörse';
vM_url_5_2_2 = 'http://apps.vienna.at/tools/mifab/';

// Untermenü - Unterhaltung
vM_txt_5_3 = 'Unterhaltung';
vM_txt_5_3_1 = 'Download-Games';
vM_url_5_3_1 = 'http://apps.vienna.at/tools/games/';
vM_txt_5_3_2 = 'Erotik';
vM_url_5_3_2 = 'http://www.vienna.at/specials/erotik';
vM_txt_5_3_3 = 'Funstuff';
vM_url_5_3_3 = 'http://apps.vienna.at/tools/funstuff';
vM_txt_5_3_4 = 'Top oder Flop';
vM_url_5_3_4 = 'http://apps.vienna.at/tools/hot2/';
vM_txt_5_3_5 = 'Wissenstests';
vM_url_5_3_5 = 'http://apps.vienna.at/tools/wissenstests/';
vM_txt_5_3_6 = 'Zeitreise';
vM_url_5_3_6 = 'http://apps.vienna.at/tools/zeitreise/';

vM_txt_5_4 = 'Games';
vM_url_5_4 = 'http://www.vienna.at/games';
vM_txt_5_5 = 'Sudoku';
vM_url_5_5 = 'http://apps.vienna.at/tools/sudoku/';
vM_txt_5_6 = 'Gewinnspiele';
vM_url_5_6 = 'http://apps.vienna.at/tools/surfandwin';
vM_txt_5_7 = '-';
vM_txt_5_8 = 'Horoskop';
vM_url_5_8 = 'http://apps.vienna.at/tools/horoskop/';
vM_txt_5_9 = 'Wallpapers';
vM_url_5_9 = 'http://apps.vienna.at/tools/wallpapers/';
vM_txt_5_10 = 'Webcams';
vM_url_5_10 = 'http://www.vienna.at/news/om:vienna:viennacam/page/dateless-article-index-page';
vM_txt_5_11 = '-';
vM_txt_5_12 = 'Weblogs';
vM_url_5_12 = 'http://www.viennablog.at/';
vM_txt_5_13 = 'Chat';
vM_url_5_13 = 'http://apps.vienna.at/tools/chat';
vM_txt_5_14 = 'Forum';
vM_url_5_14 = 'http://forum.vienna.at/';
vM_txt_5_15 = 'Partnerbörse';
vM_url_5_15 = 'http://www.vienna.at/features/partner';
vM_txt_5_16 = 'Partnervermittlung';
vM_url_5_16 = 'http://vienna.parship.at';
vM_txt_5_17 = '-';
vM_txt_5_18 = 'Kleinanzeigen';
vM_url_5_18 = 'http://kleinanzeigen.vienna.at/';


// Pfeil
var vM_Arrow = '<img src="http://apps.vienna.at/bilder/pfeil_1.gif" alt="" width="8" height="8" vspace="4" align="right" />';





// Browser-Erkennung
var vM_userAgent = navigator.userAgent.toLowerCase();
var vM_isOpera = window.opera ? true : false;
var vM_isKonq = navigator.vendor == 'KDE' ? true : false;
var vM_isIE = !vM_isKonq && !vM_isOpera && document.all ? true : false;
var vM_isIEMac = vM_isIE && vM_userAgent.indexOf('mac') != -1;
var vM_isIEWin = vM_isIE && !vM_isIEMac;
var vM_isGecko = !vM_isKonq && (vM_userAgent.indexOf('gecko') != -1 ? true : false);

var vM_isSupported = vM_isIE || vM_isGecko || vM_isKonq || vM_isOpera ? true : false;

// Hauptmenü - Breiten
var vM_w_1 = 100;
var vM_w_2 = 105;
var vM_w_3 = 105;
var vM_w_4 = 105;
var vM_w_5 = 115;
if (!vM_isIEWin) {
	vM_w_1 += 5;
}

// Ein-Ausschalten von Elementen, die das Menü überlagern (Selectboxen, Iframes, Flash-Objekte, ...)
function vM_showLayers() {

	if (typeof(vM_getElement ('vionflap')) != 'undefined') {
		vM_getElement ('vionflap').style.display = 'block';
	}

	if (document.getElementsByTagName('object')[0]) {
		liste = document.getElementsByTagName('object').length;
		for (i=0; i < liste; i++) {
			if (document.getElementsByTagName('object')[i].parentNode.style.top == '') {
					document.getElementsByTagName('object')[i].style.visibility = 'visible';
			}
		}
	}

	if (document.getElementsByTagName('embed')[0]) {
		liste = document.getElementsByTagName('embed').length;
		for (i=0; i < liste; i++) {
			if (document.getElementsByTagName('embed')[i].parentNode.style.top == '') {
					document.getElementsByTagName('embed')[i].style.visibility = 'visible';
			}
		}
	}

	if (vM_isIEWin) {
	if (document.getElementsByTagName('select')) {
		liste = document.getElementsByTagName('select').length;
		for (i=0; i < liste; i++) {
			document.getElementsByTagName('select')[i].style.visibility = 'visible';
		}
	}
	}
	if (!vM_isGecko) {
	if (document.getElementsByTagName('iframe')) {
		liste = document.getElementsByTagName('iframe').length;
		for (i=0; i < liste; i++) {
			document.getElementsByTagName('iframe')[i].style.visibility = 'visible';
		}
	}
	}
}

function vM_hideLayers() {

	if (typeof(vM_getElement ('vionflap')) != 'undefined') {
		vM_getElement ('vionflap').style.display = 'none';
	}

	if (document.getElementsByTagName('object')[0]) {
		liste = document.getElementsByTagName('object').length;
		for (i=0; i < liste; i++) {
			if (document.getElementsByTagName('object')[i].parentNode.style.top == '') {
					document.getElementsByTagName('object')[i].style.visibility = 'hidden';
			}
		}
	}

	if (document.getElementsByTagName('embed')[0]) {
		liste = document.getElementsByTagName('embed').length;
		for (i=0; i < liste; i++) {
			if (document.getElementsByTagName('embed')[i].parentNode.style.top == '') {
					document.getElementsByTagName('embed')[i].style.visibility = 'hidden';
			}
		}
	}

	if (vM_isIEWin) {
	if (document.getElementsByTagName('select')) {
		liste = document.getElementsByTagName('select').length;
		for (i=0; i < liste; i++) {
			document.getElementsByTagName('select')[i].style.visibility = 'hidden';
		}
	}
	}
	if (!vM_isGecko) {
	if (document.getElementsByTagName('iframe')) {
		liste = document.getElementsByTagName('iframe').length;
		for (i=0; i < liste; i++) {
			document.getElementsByTagName('iframe')[i].style.visibility = 'hidden';
		}
	}
	}
}


// Timeout, bis aufgeklappte Menüs automatisch geschlossen werden
var vM_close_millisecs = 1250;
var vM_timer_handle = -1;

var vM_clicked = false;
var vM_oTd = new Object;
vM_oTd = null;


function vM_getElement (id) {
	if (vM_isIE) {
		return document.all[id];
	} else {
		return document.getElementById(id);
	}
}

function vM_isMain (td) {
	return td.id.split('_').length <= 2;
}

function vM_MainMouseOver(td) {
	if (vM_clicked) {
		vM_OpenMenu(td);
	} else {
		vM_MouseOver (td);
	}
}

function vM_MainMouseOut(td) {
	if (vM_clicked) {
		vM_timer_handle = setTimeout('vM_CloseMenu()', vM_close_millisecs);
	} else {
		vM_MouseOut (td);
	}
}

function vM_MainClick(td) {
	if (vM_clicked) {
		vM_CloseMenu();
	} else {
		vM_OpenMenu(td);
	}
}

function vM_MouseOver (td) {
	if (vM_isMain(td)) {
		//td.style.backgroundColor = 
		td.style.color = '#000000';
	} else {
		td.style.backgroundColor = '#b6bdd2';
		td.style.color = '#000000';
		td.style.borderWidth = '1px';
		td.style.borderStyle = 'outset';
		td.style.borderColor = '#113388';
		td.style.paddingLeft = '23px';
	}
}

function vM_MouseOut (td) {
	if (vM_isMain(td)) {
		//td.style.backgroundColor = 
		td.style.color = '#ffffff';
	} else {
		td.style.backgroundColor = '#ffffff';
		td.style.color = '#113388';
		td.style.borderWidth = '0px';
		td.style.borderStyle = 'none';
		td.style.borderColor = '#ffffff';
		td.style.paddingLeft = '4px';
		td.style.borderLeftWidth = '20px';
		td.style.borderLeftStyle = 'solid';
		td.style.borderLeftColor = '#dedad2';
		td.style.borderRightWidth = '1px';
		td.style.borderRightStyle = 'solid';
		td.style.borderRightColor = '#ffffff';
	}
}

function vM_OpenMenu(td) {
	vM_clicked = true;
	vM_hideLayers();
	clearTimeout(vM_timer_handle);
	vM_MouseOver (td);
	var i;
	var sT = '';
	var tda = new Array();
	tda = td.id.split('_');
	if (vM_oTd != null) {
		var tdo = new Array();
		tdo = vM_oTd.id.split('_');
		for (i=1; i < tdo.length; i++) {
			sT += '_' + tdo[i];
			if (tdo[i] != tda[i]) {
				vM_MouseOut(vM_getElement('vMElement'+sT));
				if (vM_getElement('vMContainer'+sT) != null) {
					vM_getElement('vMContainer'+sT).style.visibility = 'hidden';
				}
			}
		}
	}
	vM_oTd = td;
	sT = 'vMContainer';
	for (i=1; i < tda.length; i++) {
		sT += '_' + tda[i];
	}
	if (vM_getElement(sT) != null) {
		vM_getElement(sT).style.visibility = 'visible';
	}
}

function vM_CloseMenu() {
	vM_clicked = false;
	vM_showLayers();
	if (vM_oTd != null) {
		var tdo = new Array();
		tdo = vM_oTd.id.split('_');
		var sT = '';
		for (var i=1; i < tdo.length; i++) {
			sT += '_' + tdo[i];
			vM_MouseOut(vM_getElement('vMElement'+sT));
			if (vM_getElement('vMContainer'+sT) != null) {
				vM_getElement('vMContainer'+sT).style.visibility='hidden';
			}
		}
		vM_oTd = null;
	}
}

function vM_Go(url) {
	top.location.href = url;
}

function vM_getCoord(st) {
	tA = st.split('_');
	if(vM_isIE) {
		if(st == '_2')
			return 'style="top:20px;left:114px">';
		if(st == '_3')
			return 'style="top:20px;left:219px">';
		if(st == '_4')
			return 'style="top:20px;left:324px">';
		if(st == '_5')
			return 'style="top:20px;left:429px">';
		if(st == '_2_1')
			return 'style="top:20px;left:242px">';
		if(st == '_2_2')
			return 'style="top:40px;left:242px">';
		if(st == '_2_7')
			return 'style="top:125px;left:242px">';
		if(st == '_2_8')
			return 'style="top:145px;left:242px">';
		if(st == '_2_10')
			return 'style="top:170px;left:242px">';
		if(st == '_2_15')
			return 'style="top:240px;left:242px">';
    if(st == '_3_2')
      return 'style="top:40px;left:348px">';      
		if(st == '_5_2')
			return 'style="top:40px;left:566px">';
		if(st == '_5_3')
			return 'style="top:60px;left:566px">';
	} else {	
		if (tA.length > 2) {
			if (vM_isIEMac) {
				hacked_height = (parseInt(tA[tA.length-1])-1) * 20;
				tA = tA.slice(0,-1);
				tt = tA.join('_');
				return 'style="top:' +
					(document.getElementById('vMContainer'+tt).offsetTop + hacked_height) +
					'px;left:' +
					(document.getElementById('vMContainer'+tt).offsetLeft + document.getElementById('vMElement'+st).offsetWidth) +
					'px">';
			} else {
				tA = tA.slice(0,-1);
				tt = tA.join('_');
				return 'style="top:' +
					(vM_getElement('vMContainer'+tt).offsetTop + vM_getElement('vMElement'+st).offsetTop - 1) +
					'px;left:' +
					(vM_getElement('vMContainer'+tt).offsetLeft + vM_getElement('vMElement'+st).offsetWidth + 1) +
					'px">';
			}
		} else {
			return 'style="top:' +
				(vM_getElement('vMMainTable').offsetTop + vM_getElement('vMElement'+st).offsetHeight) +
				'px;left:' +
				(vM_getElement('vMMainTable').offsetLeft + vM_getElement('vMElement'+st).offsetLeft) +
				'px">';
		}
	}
}

function vM_buildMenu() {

	var sT = '';
	var pT = new Array();

	var t = '<table class="vMMain" id="vMMainTable" cellpadding="0" cellspacing="0"><tr>';
	var p = 0;
	var j = 0;
	while (eval('typeof(vM_txt_'+ ++j +')!="undefined"')) {
		t += '<td class="vMMain" id="vMElement_'+j + '" onmouseover="vM_MainMouseOver(this)" onmouseout="vM_MainMouseOut(this)"';
		if (eval('typeof(vM_w_'+j+')!="undefined"')) {
			t += ' width="'+eval('vM_w_'+j)+'"';
		}
		
		if (eval('typeof(vM_url_'+j+')!="undefined"')) {
			t += ' onclick="vM_Go(\''+eval('vM_url_'+j)+'\')"';
		} else {
			t += ' onclick="vM_MainClick(this)"';
		}
		t += '>' + eval('vM_txt_'+j) + '</td>';
		if (eval('typeof(vM_txt_'+j+'_1)!="undefined"')) {
			pT[p++] = '_' + j;
		}
	}
	t += '</tr></table>';
	document.write(t);


	// fixe Links "Jobs | Wohnen | Auto" rechts neben dem Hauptmenü
	t = '<table class="vMExtras" cellspacing="0" cellpadding="0"><tr>' +
		'<td><a href="http://video.vienna.at" target="_top">Videos</a></td>' +
		'<td><a href="http://bilder.vienna.at" target="_top">Bilder</a></td>' +
		'<td><a href="http://www.viennablog.at" target="_top">Weblogs</a></td>' +
		'</tr></table>';
	document.write(t);

	// Untermenüs
	for (var q=0; typeof(pT[q])!='undefined'; q++) {
		sT = pT[q];
		t = '';
		j = 0;
		t += '<table class="vMSub" id="vMContainer'+sT+'" cellspacing="0"' + vM_getCoord(sT);
		while (eval('typeof(vM_txt'+sT+'_'+ ++j +')!="undefined"')) {
			if (eval('vM_txt'+sT+'_'+j) == '-') {
				t += '<tr><td class="vMHR" id="vMElement'+sT+'_'+j+'"' + (vM_isIEMac ? ' style="height:20px"' : '') + '><div class="vMHR">&nbsp;</div></td></tr>';
			} else {
				t += '<tr><td class="vMSub" id="vMElement'+sT+'_'+j+'" onmouseover="vM_OpenMenu(this)" onmouseout="vM_timer_handle=setTimeout(\'vM_CloseMenu()\',vM_close_millisecs)"';
				if (eval('typeof(vM_url'+sT+'_'+j+')!="undefined"')) {
					t += ' onclick="vM_Go(\''+eval('vM_url'+sT+'_'+j)+'\')">';
				} else {
				t += '>' + vM_Arrow;
				}
				t += eval('vM_txt'+sT+'_'+j)+'</td></tr>';
				if (eval('typeof(vM_txt'+sT+'_'+j+'_1)!="undefined"')) {
					pT[p++] = sT + '_' + j;
				}
			}
		}
		t += '</table>';
		document.write(t);
	}

	vM_getElement('vMMainTable').style.visibility = 'visible';
}

function vM_ClickHandler(e) {
	if (!e) var e = window.event;
	var t = (e.target) ? e.target : e.srcElement;
	if (t.id.indexOf('vMElement_') != 0 && vM_clicked) {
		vM_CloseMenu();
	}
}

if (vM_isSupported) {
	vM_buildMenu();
	document.onclick = vM_ClickHandler;
}

