// JavaScript Document
var memoColor;
var overColor;
var memoID;
function overButton(idObj, newColor) {
	var n = (typeof idObj == "string") ? document.getElementById(idObj): idObj;
	if (n != undefined) {
		memoID = n;
		memoColor = n.style.backgroundColor;
		n.style.backgroundColor = newColor;
	}
}
function outButton() {
	if (memoID != undefined) {
		memoID.style.backgroundColor = memoColor;
	}
	memoID = undefined;
}
function newDoc(vURL) {
	window.location.assign(vURL)
}

function getOverColor(elemento) {
	var cssRules;
	if (document.all) {
		cssRules = 'rules';
	}	else if (document.getElementById) {
		cssRules = 'cssRules';
	}
	for (var S = 0; S < document.styleSheets.length; S++){
		for (var R = 0; R < document.styleSheets[S][cssRules].length; R++) {
			if (document.styleSheets[S][cssRules][R].selectorText == elemento) {
				overColor = document.styleSheets[S][cssRules][R].style["backgroundColor"];
				return overColor;
			}
		}
	}	
}
function setBackground(myPath) {
	var image = myPath + "backImage.jpg";
	document.body.style.backgroundImage = "url(" + myPath + "backImage.jpg)";
	var n = document.getElementById("leftE1");
	if (n != undefined) {
		n.style.backgroundImage = "url(" + myPath + "backBrd_r1_c2.jpg)";
	}
	var n = document.getElementById("leftE2");
	if (n != undefined) {
		n.style.backgroundImage = "url(" + myPath + "backBrd_r2_c2.jpg)";
	}
	var n = document.getElementById("rightE1");
	if (n != undefined) {
		n.style.backgroundImage = "url(" + myPath + "backBrd_r1_c6.jpg)";
	}
	var n = document.getElementById("rightE2");
	if (n != undefined) {
		n.style.backgroundImage = "url(" + myPath + "backBrd_r2_c6.jpg)";
	}
	var n = document.getElementById("finalE1");
	if (n != undefined) {
		n.style.backgroundImage = "url(" + myPath + "backBrd_r3_c2.jpg)";
	}
	var n = document.getElementById("finalE3");
	if (n != undefined) {
		n.style.backgroundImage = "url(" + myPath + "backBrd_r3_c6.jpg)";
	}
	var n = document.getElementById("bottomE1");
	if (n != undefined) {
		n.style.backgroundImage = "url(" + myPath + "backBrd_r4_c2.jpg)";
	}
	var n = document.getElementById("bottomE2");
	if (n != undefined) {
		n.style.backgroundImage = "url(" + myPath + "backBrd_r4_c3.jpg)";
	}
	var n = document.getElementById("bottomE3");
	if (n != undefined) {
		n.style.backgroundImage = "url(" + myPath + "backBrd_r4_c4.jpg)";
	}
	var n = document.getElementById("bottomE4");
	if (n != undefined) {
		n.style.backgroundImage = "url(" + myPath + "backBrd_r4_c5.jpg)";
	}
	var n = document.getElementById("bottomE5");
	if (n != undefined) {
		n.style.backgroundImage = "url(" + myPath + "backBrd_r4_c6.jpg)";
	}
	setBorderHeight();
}
function setBorderHeight() {
	var n = document.getElementById("finalContainer");
	if (n != undefined) {
		var xo = n.offsetTop;
		var n1 = document.getElementById("leftE2");
		if (n1 != undefined)
			n1.style.height = String(xo) + "px";

		var n1 = document.getElementById("rightE2");
		if (n1 != undefined)
			n1.style.height = String(xo) + "px";
	}
}

// Flash Player Version Detection - Rev 1.5
// Detect Client Browser type
// Copyright(c) 2005-2006 Adobe Macromedia Software, LLC. All rights reserved.
var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;

function ControlVersion()
{
	var version;
	var axo;
	var e;

	// NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry

	try {
		// version will be set for 7.X or greater players
		axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
		version = axo.GetVariable("$version");
	} catch (e) {
	}

	if (!version)
	{
		try {
			// version will be set for 6.X players only
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
			
			// installed player is some revision of 6.0
			// GetVariable("$version") crashes for versions 6.0.22 through 6.0.29,
			// so we have to be careful. 
			
			// default to the first public version
			version = "WIN 6,0,21,0";

			// throws if AllowScripAccess does not exist (introduced in 6.0r47)		
			axo.AllowScriptAccess = "always";

			// safe to call for 6.0r47 or greater
			version = axo.GetVariable("$version");

		} catch (e) {
		}
	}

	if (!version)
	{
		try {
			// version will be set for 4.X or 5.X player
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
			version = axo.GetVariable("$version");
		} catch (e) {
		}
	}

	if (!version)
	{
		try {
			// version will be set for 3.X player
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
			version = "WIN 3,0,18,0";
		} catch (e) {
		}
	}

	if (!version)
	{
		try {
			// version will be set for 2.X player
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
			version = "WIN 2,0,0,11";
		} catch (e) {
			version = -1;
		}
	}
	
	return version;
}

// JavaScript helper required to detect Flash Player PlugIn version information
function GetSwfVer(){
	// NS/Opera version >= 3 check for Flash plugin in plugin array
	var flashVer = -1;
	
	if (navigator.plugins != null && navigator.plugins.length > 0) {
		if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
			var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
			var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;			
			var descArray = flashDescription.split(" ");
			var tempArrayMajor = descArray[2].split(".");
			var versionMajor = tempArrayMajor[0];
			var versionMinor = tempArrayMajor[1];
			if ( descArray[3] != "" ) {
				tempArrayMinor = descArray[3].split("r");
			} else {
				tempArrayMinor = descArray[4].split("r");
			}
			var versionRevision = tempArrayMinor[1] > 0 ? tempArrayMinor[1] : 0;
			var flashVer = versionMajor + "." + versionMinor + "." + versionRevision;
		}
	}
	// MSN/WebTV 2.6 supports Flash 4
	else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4;
	// WebTV 2.5 supports Flash 3
	else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3;
	// older WebTV supports Flash 2
	else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2;
	else if ( isIE && isWin && !isOpera ) {
		flashVer = ControlVersion();
	}	
	return flashVer;
}

// When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available
function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision)
{
	versionStr = GetSwfVer();
	if (versionStr == -1 ) {
		return false;
	} else if (versionStr != 0) {
		if(isIE && isWin && !isOpera) {
			// Given "WIN 2,0,0,11"
			tempArray         = versionStr.split(" "); 	// ["WIN", "2,0,0,11"]
			tempString        = tempArray[1];			// "2,0,0,11"
			versionArray      = tempString.split(",");	// ['2', '0', '0', '11']
		} else {
			versionArray      = versionStr.split(".");
		}
		var versionMajor      = versionArray[0];
		var versionMinor      = versionArray[1];
		var versionRevision   = versionArray[2];

        	// is the major.revision >= requested major.revision AND the minor version >= requested minor
		if (versionMajor > parseFloat(reqMajorVer)) {
			return true;
		} else if (versionMajor == parseFloat(reqMajorVer)) {
			if (versionMinor > parseFloat(reqMinorVer))
				return true;
			else if (versionMinor == parseFloat(reqMinorVer)) {
				if (versionRevision >= parseFloat(reqRevision))
					return true;
			}
		}
		return false;
	}
}
function getTextMenu(myMenu, myMenuItem, myLanguage, myAirport) {
	var otherCode = "<div class='mainBoxTitle'>"
	if (myAirport == "BS") {
		otherCode += "	<div style='text-align:right'>"
		if (myLanguage == "en") {
		otherCode += "		<p><span class='mainTitle'>Brescia Airport</span></p>"
		} else if (myLanguage == "de") {
		otherCode += "		<p><span class='mainTitle'>Flughafen Brescia</span></p>"
		} else {
		otherCode += "		<p><span class='mainTitle'>Aeroporto di Brescia</span></p>"
		}
		otherCode += "		<span class='mainTitleName'>Gabriele D'Annunzio</span>"
		otherCode += "	</div>"
		otherCode += "</div>"
		otherCode += "<div class='mainBoxTitleGroup'>"
		otherCode += "	<span class='mainTitleSigla'>Aeroporti Sistema del Garda</span><br />"
		otherCode += "	<span class='mainTitleCity'>"		
		if (myLanguage == "en") {
		otherCode += "		<a href='http://www.aeroportoverona.it/index_en.asp'>Verona</a></span>"
		} else if (myLanguage == "de") {
		otherCode += "		<a href='http://www.aeroportoverona.it/index_de.asp'>Verona</a></span>"
		} else {
		otherCode += "		<a href='http://www.aeroportoverona.it/index.asp'>Verona</a></span>"
		}
		otherCode += "&nbsp;<img src='http://www.aeroportidelgarda.it/_data/_images/logo_aeroporti.gif'>&nbsp;<span class='mainTitleCity'>Brescia</span>"
		otherCode += "</div>"
		otherCode += "<div class='mainTitleBorder'>&nbsp;</div>"
		otherCode += "<div class='mainMenu'>"
		otherCode += "	" + getMenuItem("VOLI", "1", "/voli/arrivi_giorno.asp", myMenu, myLanguage) + "<br /><img src='http://www.aeroportidelgarda.it/_data/_images/_menu/mnu1C.gif' vspace='10px' /></div>"
		otherCode += "	" + getMenuItem("ARRIVARE", "2", "/come-arrivare/auto.asp", myMenu, myLanguage) + "<br /><img src='http://www.aeroportidelgarda.it/_data/_images/_menu/mnu2C.gif' vspace='10px' /></div>"
		otherCode += "	" + getMenuItem("AEROPORTO", "3", "/in-aeroporto/viabilita.asp", myMenu, myLanguage) + "<br /><img src='http://www.aeroportidelgarda.it/_data/_images/_menu/mnu3C.gif' vspace='10px' /></div>"
		otherCode += "	" + getMenuItem("PASSEGGERI", "4", "/passeggeri/documenti.asp", myMenu, myLanguage) + "<br /><img src='http://www.aeroportidelgarda.it/_data/_images/_menu/mnu4C.gif' vspace='10px' /></div>"
		otherCode += "	" + getMenuItem("CARGO", "5", "/cargo/cargo.asp", myMenu, myLanguage) + "<br /><img src='http://www.aeroportidelgarda.it/_data/_images/_menu/mnu9C.gif' vspace='10px' /></div>"
		otherCode += "	" + getMenuItem("SOCIETA", "6", "/societa/company-profile.asp", myMenu, myLanguage) + "<br /><img src='http://www.aeroportidelgarda.it/_data/_images/_menu/mnu6C.gif' vspace='10px' /></div>"
		otherCode += "	" + getMenuItem("B2B", "7", "/b2b/info.asp", myMenu, myLanguage) + "<br /><img src='http://www.aeroportidelgarda.it/_data/_images/_menu/mnu7C.gif' vspace='10px' /></div>"
		otherCode += "	" + getMenuItemL("PRESS", "8", "/press/news.asp", myMenu, myLanguage) + "<br /><img src='http://www.aeroportidelgarda.it/_data/_images/_menu/mnu8C.gif' vspace='10px' /></div>"
		otherCode += "</div>"
		otherCode += "<div class='subMenu'>"
		otherCode += "	" + getSubMenu(myMenu, myMenuItem, myLanguage, myAirport)
		otherCode += "</div>"
	 } else {
		otherCode += "	<div style='text-align:right'>"
		if (myLanguage == "en") {
		otherCode += "		<p><span class='mainTitle'>Verona Airport</span></p>"
		} else if (myLanguage == "de") {
		otherCode += "		<p><span class='mainTitle'>Flughafen Verona</span></p>"
		} else {
		otherCode += "		<p><span class='mainTitle'>Aeroporto di Verona</span></p>"
		}
		otherCode += "		<span class='mainTitleName'>Valerio Catullo</span>"
		otherCode += "	</div>"
		otherCode += "</div>"
		otherCode += "<div class='mainBoxTitleGroup'>"
		otherCode += "	<span class='mainTitleSigla'>Aeroporti Sistema del Garda</span><br />"
		otherCode += "	<span class='mainTitleCity'>Verona</span>&nbsp;<img src='http://www.aeroportidelgarda.it/_data/_images/logo_aeroporti.gif'>&nbsp;<span class='mainTitleCity'>"
		if (myLanguage == "en") {
		otherCode += "		<a href='http://www.aeroportobrescia.it/index_en.asp'>Brescia</a></span>"
		} else if (myLanguage == "de") {
		otherCode += "		<a href='http://www.aeroportobrescia.it/index_ge.asp'>Brescia</a></span>"
		} else {
		otherCode += "		<a href='http://www.aeroportobrescia.it/index.asp'>Brescia</a></span>"
		}
		otherCode += "</div>"
		otherCode += "<div class='mainTitleBorder'>&nbsp;</div>"
		otherCode += "<div class='mainMenu'>"
		otherCode += "	" + getMenuItem("VOLI", "1", "/voli/destinazioni.asp?TipoDestinazione=3", myMenu, myLanguage) + "<br /><img src='http://www.aeroportidelgarda.it/_data/_images/_menu/mnu1C.gif' vspace='10px' /></div>"
		otherCode += "	" + getMenuItem("ARRIVARE", "2", "/come-arrivare/auto.asp", myMenu, myLanguage) + "<br /><img src='http://www.aeroportidelgarda.it/_data/_images/_menu/mnu2C.gif' vspace='10px' /></div>"
		otherCode += "	" + getMenuItem("AEROPORTO", "3", "/in-aeroporto/viabilita.asp", myMenu, myLanguage) + "<br /><img src='http://www.aeroportidelgarda.it/_data/_images/_menu/mnu3C.gif' vspace='10px' /></div>"
		otherCode += "	" + getMenuItem("PASSEGGERI", "4", "/passeggeri/documenti.asp", myMenu, myLanguage) + "<br /><img src='http://www.aeroportidelgarda.it/_data/_images/_menu/mnu4C.gif' vspace='10px' /></div>"
		otherCode += "	" + getMenuItem("BUSINESS", "5", "/business/business.asp", myMenu, myLanguage) + "<br /><img src='http://www.aeroportidelgarda.it/_data/_images/_menu/mnu5C.gif' vspace='10px' /></div>"
		otherCode += "	" + getMenuItem("SOCIETA", "6", "/societa/company-profile.asp", myMenu, myLanguage) + "<br /><img src='http://www.aeroportidelgarda.it/_data/_images/_menu/mnu6C.gif' vspace='10px' /></div>"
		otherCode += "	" + getMenuItem("B2B", "7", "/b2b/info.asp", myMenu, myLanguage) + "<br /><img src='http://www.aeroportidelgarda.it/_data/_images/_menu/mnu7C.gif' vspace='10px' /></div>"
		otherCode += "	" + getMenuItemL("PRESS", "8", "/press/news.asp", myMenu, myLanguage) + "<br /><img src='http://www.aeroportidelgarda.it/_data/_images/_menu/mnu8C.gif' vspace='10px' /></div>"
		otherCode += "</div>"
		otherCode += "<div class='subMenu'>"
		otherCode += "	" + getSubMenu(myMenu, myMenuItem, myLanguage, myAirport)
		otherCode += "</div>"
	 }
	return otherCode
}
function getMenuItem(idMenu, idNum, idLink, myMenu, myLanguage) {
	var retData
	if (myMenu == idMenu) {
		retData = "<div class='mainMenuButton' id='mainMenuButtonSelected'>" + getMenuTitle(idMenu, myLanguage);
	} else {
		if (myMenu == "") {
			retData = "<div class='mainMenuButton' id='mainMenuButtonIndex' onmouseover=\"memoColor=style.backgroundColor; style.backgroundColor=getOverColor('.mainMenu #itm" + idNum + "')\" onmouseout=\"style.backgroundColor=memoColor\" onClick=\"newDoc('/" + myLanguage + idLink + "')\">"
			retData += "<a href='/" + myLanguage + idLink + "'>" + getMenuTitle(idMenu, myLanguage) + "<a>"
		} else {
			retData = "<div class='mainMenuButton' onmouseover=\"memoColor=style.backgroundColor; style.backgroundColor=getOverColor('.mainMenu #itm" + idNum + "')\" onmouseout=\"style.backgroundColor=memoColor\" onClick=\"newDoc('/" + myLanguage + idLink + "')\">"
			retData += "<a href='/" + myLanguage + idLink + "'>" + getMenuTitle(idMenu, myLanguage) + "<a>"
		}
	}
	return retData;
}

function getMenuItemL(idMenu, idNum, idLink, myMenu, myLanguage) {
	var retData
	var Language = myLanguage
	if (myMenu == idMenu) {
		retData = "<div class='mainMenuButtonLast' id='mainMenuButtonSelected'>" + getMenuTitle(idMenu, myLanguage);
	} else {
		if (myMenu == "") {
			retData = "<div class='mainMenuButtonLast' id='mainMenuButtonIndex' onmouseover=\"memoColor=style.backgroundColor; style.backgroundColor=getOverColor('.mainMenu #itm" + idNum + "')\" onmouseout=\"style.backgroundColor=memoColor\" onClick=\"newDoc('/" + myLanguage + idLink + "')\">"
			retData += "<a href='/" + myLanguage + idLink + "'>" + getMenuTitle(idMenu, myLanguage) + "<a>"
		} else {
			retData = "<div class='mainMenuButtonLast' onmouseover=\"memoColor=style.backgroundColor; style.backgroundColor=getOverColor('.mainMenu #itm" + idNum + "')\" onmouseout=\"style.backgroundColor=memoColor\" onClick=\"newDoc('/" + myLanguage + idLink + "')\">"
			retData += "<a href='/" + myLanguage + idLink + "'>" + getMenuTitle(idMenu, myLanguage) + "<a>"
		}
	}
	return retData;
}
function getMenuTitle(idMenu, myLanguage) {
	var retData
	if (idMenu == "VOLI") {
		if (myLanguage == "en") {
			retData = "FLIGHTS<br /><br />"
		} else if (myLanguage == "de") {
			retData = "Flüge".toUpperCase() + "<br /><br />";
		} else {
			retData = "VOLI<br /><br />"
		}
	} else if (idMenu == "ARRIVARE") {
		if (myLanguage == "en") {
			retData = "HOW TO REACH US<br /><br />"
		} else if (myLanguage == "de") {
			retData = "ANREISE ZUM FLUGHAFEN<br />"
		} else {
			retData = "COME ARRIVARE<br /><br />"
		}
	} else if (idMenu == "AEROPORTO") {
		if (myLanguage == "en") {
			retData = "AT THE AIRPORT<br />"
		} else if (myLanguage == "de") {
			retData = "AM FLUGHAFEN<br />"
		} else {
			retData = "IN AEROPORTO<br />"
		}
	} else if (idMenu == "PASSEGGERI") {
		if (myLanguage == "en") {
			retData = "PASSENGER<br />SERVICES"
		} else if (myLanguage == "de") {
			retData = "PASSAGIERSERVICE<br />"
		} else {
			retData = "SERVIZI<br />PASSEGGERI"
		}
	} else if (idMenu == "BUSINESS") {
		if (myLanguage == "en") {
			retData = "BUSINESS<br />SERVICES"
		} else if (myLanguage == "de") {
			retData = "BUSINESSERVICE<br />"
		} else {
			retData = "SERVIZI<br />BUSINESS"
		}
	} else if (idMenu == "SOCIETA") {
		if (myLanguage == "en") {
			retData = "COMPANY<br />"
		} else if (myLanguage == "de") {
			retData = "UNTERNEHMEN<br />AIRPORT"
		} else {
			retData = "SOCIETA'<br />"
		}
	} else if (idMenu == "CARGO") {
		retData = "CARGO<br />"
	} else if (idMenu == "B2B") {
		retData = "B 2 B<br />"
	} else if (idMenu == "PRESS") {
		retData = "PRESS<br />"
	} else {
		retData = "ERRORE"
	}
	return retData;
}
function getSubMenu(myMenu, myMenuItem, myLanguage, myAirport) {
	var Voci
	var Links
	var retValue = "";
	var i
	switch (myMenu) {
		case "VOLI":
			if (myAirport == "BS") {
				if (myLanguage == "en") {
					Voci = new Array("TODAY'S FLIGHTS", "TIMETABLE", "CHARTER", "AIRLINES", "TOUR OPERATORS","","","")
				} else if (myLanguage == "de") {
					Voci = new Array("HEUTIGE FLÜGE", "LINIENFLÜGE", "CHARTERFLÜGE", "AIRLINES", "TOUR OPERATORS","","","")
				} else {
					Voci = new Array("VOLI DEL GIORNO", "VOLI DI LINEA", "CHARTER", "COMPAGNIE AEREE", "TOUR OPERATORS","","","")
				}
				Links = new Array("/voli/destinazioni.asp?TipoDestinazione=3", "/voli/arrivi_giorno.asp", "/voli/arrivi.asp", "/voli/charter.asp", "/voli/compagnie.asp", "/voli/tour-operators.asp","","","")
			} else {
				if (myLanguage == "en") {
					Voci = new Array("DESTINATIONS", "TODAY'S FLIGHTS", "TIMETABLE", "CHARTER", "AIRLINES", "TOUR OPERATORS","","")
				} else if (myLanguage == "de") {
					Voci = new Array("ZIELFLUGHAFEN", "HEUTIGE FLÜGE", "LINIENFLÜGE", "CHARTERFLÜGE", "AIRLINES", "TOUR OPERATORS","","")
				} else {
					Voci = new Array("DESTINAZIONI", "VOLI DEL GIORNO", "VOLI DI LINEA", "CHARTER", "COMPAGNIE AEREE", "TOUR OPERATORS","","")
				}
				Links = new Array("/voli/destinazioni.asp?TipoDestinazione=3", "/voli/arrivi_giorno.asp", "/voli/arrivi.asp", "/voli/charter.asp", "/voli/compagnie.asp", "/voli/tour-operators.asp","","")
			}
			break;
		case "ARRIVARE":
			if (myLanguage == "en") {
				Voci = new Array("CAR", "MAP", "TAXI", "TRAIN", "AEROBUS", "", "", "")
			} else if (myLanguage == "de") {
				Voci = new Array("MIT DEM AUTO", "STRABENKARTE", "TAXI", "MIT DEM ZUG", "MIT AEROBUS", "", "", "")
			} else {
				Voci = new Array("AUTO", "MAPPA", "TAXI", "TRENO", "AEROBUS", "", "", "")
			}
			Links = new Array("/come-arrivare/auto.asp", "/come-arrivare/mappa.asp", "/come-arrivare/taxi.asp", "/come-arrivare/treno.asp", "/come-arrivare/aerobus.asp", "", "", "")
			break;
		case "AEROPORTO":
			if (myAirport == "BS") {
				if (myLanguage == "en") {
					Voci = new Array("ROAD WAYS", "PARKING", "SERVICES", "USEFUL NUMBERS", "LINKS", "", "", "")
				} else if (myLanguage == "de") {
					Voci = new Array("FAHRBARKEIT", "PARKPLÄTZE", "SERVICE", "NÜTZLICHE NUMMERN", "LINKS", "", "", "")
				} else {
					Voci = new Array("VIABILITA'", "PARCHEGGI", "SERVIZI", "NUMERI UTILI", "LINKS", "", "", "")
				}
				Links = new Array("/in-aeroporto/viabilita.asp", "/in-aeroporto/parcheggi-disponibilita.asp", "/in-aeroporto/pianta.asp", "/in-aeroporto/numeri-utili.asp", "/in-aeroporto/faq.asp", "/in-aeroporto/links.asp", "/in-aeroporto/servizi-turistici.asp", "")
			} else {
				if (myLanguage == "en") {
					Voci = new Array("ROAD WAYS", "PARKING", "SERVICES", "USEFUL NUMBERS", "FAQ", "LINKS", "TOURIST SERVICES", "")
				} else if (myLanguage == "de") {
					Voci = new Array("FAHRBARKEIT", "PARKPLÄTZE", "SERVICE", "NÜTZLICHE NUMMERN", "FAQ", "LINKS", "TOURISMUS", "")
				} else {
					Voci = new Array("VIABILITA'", "PARCHEGGI", "SERVIZI", "NUMERI UTILI", "FAQ", "LINKS", "SERVIZI TURISTCI", "")
				}
				Links = new Array("/in-aeroporto/viabilita.asp", "/in-aeroporto/parcheggi-disponibilita.asp", "/in-aeroporto/pianta.asp", "/in-aeroporto/numeri-utili.asp", "/in-aeroporto/faq.asp", "/in-aeroporto/links.asp", "/in-aeroporto/servizi-turistici.asp", "")
			}
			break;
		case "PASSEGGERI":
			if (myLanguage == "en") {
				Voci = new Array("DOCUMENTS", "BAGGAGE", "FAMILY AND CHILDREN", "SPECIAL SERVICES", "ANIMALS", "GUIDED TOURS", "SERVICES CHART", "CONTACT US")
			} else if (myLanguage == "de") {
				Voci = new Array("REISEDOKUMENTE", "GEPÄCK", "FAMILY AND CHILDREN", "BEHINDERTE", "TIERE", "GUIDED TOURS", "SERVICE-CHARTA", "KONTAKT")
			} else {
				Voci = new Array("DOCUMENTI", "BAGAGLI", "FAMIGLIE E MINORI", "SERVIZI SPECIALI", "ANIMALI", "VISITE GUIDATE", "CARTA DEI SERVIZI", "CONTATTACI")
			}
			Links = new Array("/passeggeri/documenti.asp", "/passeggeri/bagagli.asp", "/passeggeri/famiglie.asp", "/passeggeri/disabili.asp", "/passeggeri/animali.asp", "/passeggeri/visite-guidate.asp", "/passeggeri/carta-servizi.asp", "/passeggeri/informazioni.asp")
			break;
		case "CARGO":
			Voci = new Array("", "", "", "", "CARGO", "", "", "")
			Links = new Array("", "", "", "", "/cargo/cargo.asp", "", "", "")
			break;
		case "BUSINESS":
			if (myLanguage == "en") {
				Voci = new Array("", "", "", "BUSINESS", "CLUB FOR YOU", "CARTA BIANCA", "", "")
			} else if (myLanguage == "de") {
				Voci = new Array("", "", "", "GESCHÄFTSREISE", "CLUB FOR YOU", "CARTA BIANCA", "", "")
			} else {
				Voci = new Array("", "", "", "BUSINESS", "CLUB FOR YOU", "CARTA BIANCA", "", "")
			}
			Links = new Array("", "", "", "/business/business.asp", "/business/club-for-you.asp", "/business/carta-bianca.asp", "", "")
			break;
		case "SOCIETA":
			if (myAirport == "BS") {
				if (myLanguage == "en") {
					Voci = new Array("", "", "COMPANY PROFILE", "SHAREHOLDER", "CALL FOR BID", "PUBLICATIONS", "GARDAWAY", "JOIN US")
				} else if (myLanguage == "de") {
					Voci = new Array("", "", "PROFIL", "STRUKTUR", "AUSSCHREIBUNGEN", "PUBLIKATIONEN", "GARDAWAY", "JOBS")
				} else {
					Voci = new Array("", "", "PROFILO", "SOCI", "BANDI DI GARA", "PUBBLICAZIONI", "GARDAWAY", "LAVORA CON NOI")
				}
				Links = new Array("", "", "/societa/company-profile.asp", "/societa/soci.asp", "/societa/bandi-incorso.asp", "/societa/pubblicazioni.asp", "/societa/gardaway-rivista.asp", "/societa/job-impiego.asp")
			} else {
				if (myLanguage == "en") {
					Voci = new Array("", "COMPANY PROFILE", "SHAREHOLDER", "CALL FOR BID", "PUBLICATIONS", "GARDAWAY", "CARGO", "JOIN US")
				} else if (myLanguage == "de") {
					Voci = new Array("", "PROFIL", "STRUKTUR", "AUSSCHREIBUNGEN", "PUBLIKATIONEN", "GARDAWAY", "CARGO", "JOBS")
				} else {
					Voci = new Array("", "PROFILO", "SOCI", "BANDI DI GARA", "PUBBLICAZIONI", "GARDAWAY", "CARGO", "LAVORA CON NOI")
				}
				Links = new Array("", "/societa/company-profile.asp", "/societa/soci.asp", "/societa/bandi-incorso.asp", "/societa/pubblicazioni.asp", "/societa/gardaway-rivista.asp", "/societa/verona-cargo.asp", "/societa/job-impiego.asp")
			}
			break;
		case "B2B":
			if (myLanguage == "en") {
				Voci = new Array("", "", "", "TECHNICAL INFO", "GENERAL AVIATION", "AVIATION", "ADVERTISING", "")
			} else if (myLanguage == "de") {
				Voci = new Array("", "", "", "TECHNISHE INFO", "GENERAL AVIATION", "AVIATION", "WERBUNG", "")
			} else {
				Voci = new Array("", "", "", "INFO TECNICHE", "AVIAZ.GENERALE", "AVIAZ.COMMERCIALE", "PUBBLICITA'", "")
			}
			Links = new Array("", "", "", "/b2b/info.asp", "/b2b/aviazione-generale.asp", "/b2b/aviazione-commerciale.asp", "/b2b/pubblicita-online.asp", "")
			break;
		case "PRESS":
			if (myLanguage == "en") {
				Voci = new Array("", "", "", "", "", "NEWS", "PHOTO GALLERY", "CONTACT US")
			} else if (myLanguage == "de") {
				Voci = new Array("", "", "", "", "", "NEWS", "PHOTO GALLERY", "KONTAKT")
			} else {
				Voci = new Array("", "", "", "", "", "NEWS", "PHOTO GALLERY", "CONTATTACI")
			}
			Links = new Array("", "", "", "", "", "/press/news.asp", "/press/photo-gallery.asp", "/press/contatti.asp")
			break;
		default:
			retValue = "<div id='subMenuIndex'>"
			if (myLanguage == "en") {
				retValue += "<span id='titSubMenu'>Attenzione:</span> Flash player mancante o non aggiornato. Per la visualizzazione corretta del sito scarica " 
				retValue += "<a href='http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash'>Adobe Flash player aggiornato</a>."
			} else if (myLanguage == "de") {
				retValue += "<span id='titSubMenu'>Attenzione:</span> Flash player mancante o non aggiornato. Per la visualizzazione corretta del sito scarica " 
				retValue += "<a href='http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash'>Adobe Flash player aggiornato</a>."
			} else {
				retValue += "<span id='titSubMenu'>Attenzione:</span> Flash player mancante o non aggiornato. Per la visualizzazione corretta del sito scarica " 
				retValue += "<a href='http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash'>Adobe Flash player aggiornato</a>."
			}
			retValue += "</div>"
			return retValue;
	}
	for (i = 0; i < Voci.length; i++) {
		if (Voci[i] == "") {
			retValue += "<div class='subMenuButton' id='subMenuButtonEmpty'></div>"
		} else {
			if (i == (Voci.length - 1)) {
				if (String(i) == myMenuItem) {
					retValue += "<div class='subMenuButtonLast' id='subMenuButtonSelected'>" + Voci[i] + "</div>"
				} else {
					retValue += "<div class='subMenuButtonLast' onmouseover=\"memoColor=style.backgroundColor; style.backgroundColor=getOverColor('.enancedColor')\" onmouseout=\"style.backgroundColor=memoColor\" onClick=\"newDoc('/" + myLanguage + Links[i] + "')\">"
					retValue += "<a href='/" + myLanguage + Links[i] + "'>" + Voci[i] + "</a></div>"
				}
			} else {
				if (String(i) == myMenuItem) {
					retValue += "<div class='subMenuButton' id='subMenuButtonSelected'>" + Voci[i] + "</div>"
				} else {
					retValue += "<div class='subMenuButton' onmouseover=\"memoColor=style.backgroundColor; style.backgroundColor=getOverColor('.enancedColor')\" onmouseout=\"style.backgroundColor=memoColor\" onClick=\"newDoc('/" + myLanguage + Links[i] + "')\">"
					retValue += "<a href='/" + myLanguage + Links[i] + "'>" + Voci[i] + "</a></div>"
				}
			}
		}
	}
	return retValue;
}
