// JavaScript Document
function MenuInt (passaggio) {
	 //link al file
	 var Periodo = new ActiveXObject("Microsoft.XMLDOM");
	   Periodo.async = false;
	   Periodo.load ("Xml/Menu.xml");
	 // imposto il root
	 var root = Periodo.documentElement;
	 // creo il vettore con l'elenco dei menu
	 var ElencoMenu = root.childNodes;

	  //Matrice delle voci menu
	  var VociMenu = ElencoMenu.item(passaggio).childNodes
	  //Ciclo per la stampa delle voci dei menu
			for (var contatore=0; contatore<VociMenu.length; contatore++ ) {
			 document.write("<p class=\"underline\"><a href=\""+VociMenu.item(contatore).getAttribute("link") +"\">")
			 document.write(VociMenu.item(contatore).text)
			 document.write("</a></p>")
			}
}

