function OpenNewWin(F,W,H,R){
	T = (screen.height - H )/2
	L =(screen.width - W)/2
	if(R){
		window.open(F ,"","top=" + T + ",left=" + L + ",width="+ W + ", height=" + H + ",resizable, scrollbars=yes");
	}else{
		window.open(F ,"","top=" + T + ",left=" + L + ",width="+ W + ", height=" + H + "");
	}
}

function write_mail(utente,dominio,obj,body){
	var destinatario = utente + "@" + dominio;
	var indirizzo = "mailto:" + destinatario;
	//return document.write(destinatario.link(indirizzo));
	document.write("<a class = \"norm\" href =\"" + indirizzo + "?subject=" + obj + "&body=" + body + "\" onMouseOver=\"window.status='';return true\"><font color=\"#99CC00\" size=\"2\"> E-mail</font></a>")
}

function suonabrano(N){
	if (window.document.suono.PercentLoaded() == 100) {
		//window.document.suono.GotoFrame(1);
		window.document.suono.SetVariable( "brano1", N );
		window.document.suono.GotoFrame(N - 1);
	}

}


var links=document.getElementsByTagName("a");
var imgs=document.getElementsByTagName("img");

function enabletooltips() {

for(f=0;f<links.length;f++){
    t=links[f].getAttribute("title");
    if(t!=""){
        links[f].removeAttribute("title");
        links[f].style.position="relative";
        tooltip=document.createElement("div");
        tooltip.className="tooltip";
        tooltip.style.display="none";
        tooltip.appendChild(document.createTextNode(t));
        links[f].appendChild(tooltip);
        links[f].onmouseover=showTooltip;
        links[f].onmouseout=hideTooltip;
        }
    }

for(g=0;g<imgs.length;g++){
    h=imgs[g].getAttribute("alt");
    if(h!=""){
        imgs[g].removeAttribute("alt");
        }
    }
    
};

bName = navigator.appName;

if (bName != "Netscape")
{
    function showTooltip(event)
    {
        this.style.zIndex="25";
        this.getElementsByTagName("div")[0].style.display="block";
    }

    function hideTooltip(event)
    {
        this.style.zIndex="24";
        this.getElementsByTagName("div")[0].style.display="none";
    }
}	
