function animazione_logo(filmato) {
    document.write('<OBJECT id=\"logo\" codeBase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" height=\"55\" width=\"300\" align=\"middle\" classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\">\
		<PARAM NAME=\"_cx\" VALUE=\"7938\">\
		<PARAM NAME=\"_cy\" VALUE=\"1455\">\
		<PARAM NAME=\"FlashVars\" VALUE=\"\">\
		<PARAM NAME=\"Movie\" VALUE=\"' + filmato + '\">\
		<PARAM NAME=\"Src\" VALUE=\"' + filmato + '\">\
		<PARAM NAME=\"WMode\" VALUE=\"Transparent\">\
		<PARAM NAME=\"Play\" VALUE=\"-1\">\
		<PARAM NAME=\"Loop\" VALUE=\"-1\">\
		<PARAM NAME=\"Quality\" VALUE=\"High\">\
		<PARAM NAME=\"SAlign\" VALUE=\"\">\
		<PARAM NAME=\"Menu\" VALUE=\"-1\">\
		<PARAM NAME=\"Base\" VALUE=\"\">\
		<PARAM NAME=\"AllowScriptAccess\" VALUE=\"sameDomain\">\
		<PARAM NAME=\"Scale\" VALUE=\"ShowAll\">\
		<PARAM NAME=\"DeviceFont\" VALUE=\"0\">\
		<PARAM NAME=\"EmbedMovie\" VALUE=\"0\">\
		<PARAM NAME=\"BGColor\" VALUE=\"999999\">\
		<PARAM NAME=\"SWRemote\" VALUE=\"\">\
		<PARAM NAME=\"MovieData\" VALUE=\"\">\
		<PARAM NAME=\"SeamlessTabbing\" VALUE=\"1\">\
		<PARAM NAME=\"Profile\" VALUE=\"0\">\
		<PARAM NAME=\"ProfileAddress\" VALUE=\"\">\
		<PARAM NAME=\"ProfilePort\" VALUE=\"0\">\
		<PARAM NAME=\"AllowNetworking\" VALUE=\"all\">\
		<PARAM NAME=\"AllowFullScreen\" VALUE=\"false\">\
		<embed src=\"' + filmato + '\" quality=\"high\" wmode=\"transparent\" bgcolor=\"#999999\" width=\"300\" height=\"55\" name=\"logo\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />\
		</OBJECT>');
}



//<a Href="javascript:void(0);" OnClick="winpopup('siios.htm','520','475','no','no','siios');return false;">
function winpopup(URL,WIDTH,HEIGHT,SCROLLBAR,RESIZABLE,NOMEFINESTRA){	
	var windowprops = "left=20,top=20,width=" + WIDTH + ",height=" + HEIGHT + ",scrollbars=" + SCROLLBAR + ",resizable=" + RESIZABLE + ",menubar=no,toolbar=no,location=no,status=no,fullscreen=no,channelmode=no";
	var winpopup=window.open(URL, NOMEFINESTRA, windowprops);
	winpopup.opener=self;winpopup.focus();}

//window.open(URL, "SIIOS", left=20,top=20,width=350,height=400,scrollbars=yes,resizable=no,menubar=no,toolbar=no,location=no,status=no,fullscreen=no,channelmode=no");

//ROLLOVER
function init() {
	if (!document.getElementById) return
		var imgOriginSrc;var imgTemp = new Array();var imgarr = document.getElementsByTagName('img');
		for (var i = 0; i < imgarr.length; i++) {
		if (imgarr[i].getAttribute('hsrc')) {imgTemp[i] = new Image();imgTemp[i].src = imgarr[i].getAttribute('hsrc');imgarr[i].onmouseover = function() {imgOriginSrc = this.getAttribute('src');this.setAttribute('src',this.getAttribute('hsrc'))}
		imgarr[i].onmouseout = function() {	this.setAttribute('src',imgOriginSrc)}}}}
		onload=init;

//EMAIL ANTI-SPAM
function emas(user){
	var st_domain = "labulloneria.it"
	var st_recipient = user + "@" + st_domain
	var st_url = "mailto:" + st_recipient
	document.write(st_recipient.link(st_url));
}

function showMenu(menuobj) {
    var childMenus = menuobj.parentNode.childNodes;
    for (var i = 0; i < childMenus.length; i++) {
        var obj = childMenus[i];
        if (obj.nodeName.toLowerCase() == "ul") {
            if (document.all) {
                obj.style.display="block";obj.attachEvent("onmouseover", function(){obj.style.display="block";});
            }
            else {
                obj.style.display = "block";
                obj.addEventListener("mouseover", function () {  this.style.display = "block"; }, false);
            } 
        } 
    }
}


function hideMenu(menuobj) {
    var childMenus = menuobj.parentNode.childNodes;
    for (var i = 0; i < childMenus.length; i++) {
        var obj = childMenus[i];
        if (obj.nodeName.toLowerCase() == "ul") {
            if (document.all) {
                obj.style.display="none"; obj.attachEvent("onmouseout", function(){obj.style.display="none";});
            }
            else {
                obj.style.display = "none";
                obj.addEventListener("mouseout", function () { this.style.display = "none"}, false);
            } 
        } 
    } 
}



function ShMenuT(menuobj) {
    var childMenus = menuobj.parentNode.childNodes;
    for (var i = 0; i < childMenus.length; i++) {
        var obj = childMenus[i];
        if (obj.nodeName.toLowerCase() == "ul") {
            if (obj.style.display == "none" || obj.style.display == "") {
                obj.style.display = "block";
            }
            else if (obj.style.display == "block") {
                obj.style.display = "none";
            }
        }
    }
}


function WinWait(txt) {
	var body = document.getElementsByTagName('body')[0];
	var messaggio = '<div class=\"msgbox\"><table cellpadding=\"0\" cellspacing=\"0\" class=\"boxb\"><tr><td class=\"ts\"><img src=\"img/spz.gif\" width=\"10\" height=\"10\" /></td><td class=\"tt\"><img src=\"img/spz.gif\" width=\"200\" height=\"10\" /></td><td class=\"td\"><img src=\"img/spz.gif\" width=\"10\" height=\"10\" /></td></tr><tr><td class=\"ss\"><img src=\"img/spz.gif\" width=\"10\" height=\"10\" /></td><td class=\"cx\">' + txt + '<br /><center><img src=\"img/wait_48.gif\" border=\"0\" /></center><br /></td><td class=\"dd\"><img src=\"img/spz.gif\" width=\"10\" height=\"10\" /></td></tr><tr><td class=\"bs\"><img src=\"img/spz.gif\" width=\"10\" height=\"10\" /></td><td class=\"bb\"><img src=\"img/spz.gif\" width=\"10\" height=\"10\" /></td><td class=\"bd\"><img src=\"img/spz.gif\" width=\"10\" height=\"10\" /></td></tr></table></div>'

	var msgbox_item = document.createElement('div');
	msgbox_item.className = "msgbox";
	msgbox_item.innerHTML = messaggio;

	msgbox_item.style.left=Math.round((document.body.clientWidth/2) - 100);
	msgbox_item.style.top=Math.round((document.body.clientHeight/2) - 100);
	msgbox_item.style.zIndex = 9999;

	body.appendChild(msgbox_item);

	alert(body)

	isIE=document.all;isNN=!document.all&&document.getElementById;isN4=document.layers;isHot=false;
	function ddInit(e){
		topWin=isIE ? "BODY" : "HTML";
		hotWin=isIE ? event.srcElement : e.target;

		while (hotWin.id!="titleBar"&&hotWin.tagName!=topWin){hotWin=isIE ? hotWin.parentElement : hotWin.parentNode;}
		if (hotWin.id=="titleBar"){
			offsetx=isIE ? event.clientX : e.clientX;
			offsety=isIE ? event.clientY : e.clientY;
			nowX=parseInt(msgbox_item.style.left);
			nowY=parseInt(msgbox_item.style.top);
			nowX2=parseInt(msgbox_item.style.left);
			nowY2=parseInt(msgbox_item.style.top);
			ddEnabled=true;
			document.onmousemove=dd;}}

	function dd(e){
		if (!ddEnabled) return;
		msgbox_item.style.left=isIE ? nowX+event.clientX-offsetx : nowX+e.clientX-offsetx+"px";
		msgbox_item.style.top=isIE ? nowY+event.clientY-offsety : nowY+e.clientY-offsety+"px";
		return false;}

	function ddN4(whatDog){
		if (!isN4) return;
		N4=eval(whatDog);
		N4.captureEvents(Event.MOUSEDOWN|Event.MOUSEUP);
		N4.onmousedown=function(e){N4.captureEvents(Event.MOUSEMOVE);N4x=e.x;N4y=e.y;}
		N4.onmousemove=function(e){if (isHot){N4.moveBy(e.x-N4x,e.y-N4y);return false;}}
		N4.onmouseup=function(){N4.releaseEvents(Event.MOUSEMOVE);}}
		document.onmousedown=ddInit;document.onmouseup=Function("ddEnabled=false");
	}

