//javascript per il menu espandibile con massimo un livello aperto
var prev="null";

window.onload=function(){
if(document.getElementsByTagName && document.getElementById){
    document.getElementById("nav").className="jsenable";
    BuildList();
    }
}

function BuildList(){
var hs=document.getElementById("nav").getElementsByTagName("h3");
for(var i=0;i<hs.length;i++){
    hs[i].onclick=function(){
        if(this.parentNode.className!="show"){
            this.parentNode.className="show";
            if(prev && prev!=this.parentNode) prev.className="hide";
            prev=this.parentNode;
            }
        else this.parentNode.className="hide";
        }
    }
}


function Apri(menuId)
{
	var livello = 1;
	if (menuId.indexOf("_") > 0)
		livello = 2;
			
	if(document.getElementById(menuId).style.display == "none")
	{
		ChiudiTutto(livello);
		document.getElementById(menuId).style.display = "block";
	}
	else
	{
		ChiudiTutto(livello);
	}
}

function Inizializza()
{
	ChiudiTutto(0);

	if (document.all)
	{
		document.styleSheets[1].addRule("ul#qm0  ul a", "margin-bottom:-13px;");
		document.styleSheets[1].addRule("a", "margin-bottom:-15px;");
		document.styleSheets[1].addRule("ul#qm0  ul a .qmparent", "margin-bottom:0px;");
	}

}