<!--
// SPE_menu version 2.0
// 18/11/2003
// Developed by:  Esperia - www.esperia.com
// For info about this script contact massimo.altafini@esperia.com


//---Inizio codice popup fastbreaking
var windowW=300
var windowH=335  
var Yoffset=100   
var moveSpeed=20 
var Xmode="right";
var Xoffset=50;
var autoclose = false
var windowX = (screen.width/2)-(windowW/2);
if (Xmode=="left") windowX=0+Xoffset;
if (Xmode=="right") windowX=screen.availWidth-Xoffset-windowW;
var windowY = (screen.availHeight);
var windowYstop = windowY-windowH-Yoffset;
var windowYnow = windowY;
var windowStep = 50;
var windowYnow = ((windowStep+1)*windowStep/2)+ windowYstop;
s = "width="+windowW+",height="+windowH;

function SPE_ApriPopupBreakingNews(){
	popup=window.open('Popup_FastBreaking.aspx',"FastBreakingNews","top=5000, left=5000,"+s)
	popup.blur()
	window.focus() 
	popup.moveTo(windowX,windowY)
	popup.focus()   
	if (autoclose){
		window.onunload = function(){popup.close()}
	}
	SPE_movePopup();
}

function SPE_movePopup(){
  	if (windowYnow!=windowYstop){
      popup.moveTo(windowX,windowYnow);
      popup.focus();
      windowYnow=windowYnow-windowStep;
	  windowStep--;
      timer=setTimeout("SPE_movePopup()",moveSpeed);
    }else{
      clearTimeout(timer);
      popup.moveTo(windowX,windowYstop);
      popup.focus();
    }
}
//---Fine codice popup fastbreaking

//--- nuova finestra

function newWindow(url) {
window.open(url,"externalLink");
}

//--- nuova finestra

//---Inizio codice menu
var ultimo=""
function VisualizzaMenu(cella,quale){
	var menu = document.getElementById(quale);
	var parentela = "";
	var coorY = 0;
	var coorX = 0;
	if(ultimo){
		clearTimeout(timerMENU)
		document.getElementById(ultimo).style.visibility='hidden';
	}
	while(eval("cella." + parentela + "tagName") != "BODY")
	{
		coorY = coorY + eval("cella." + parentela + "offsetTop");
		coorX = coorX + eval("cella." + parentela + "offsetLeft");
		parentela = parentela + "offsetParent."	;
	}

	if(navigator.product != 'Gecko') {
		menu.style.width = cella.offsetWidth + "px";
	} else {
		menu.style.width = -2 + cella.offsetWidth + "px";
	}
	menu.style.top=coorY + cella.offsetHeight;
	menu.style.left=coorX;
	menu.style.visibility='visible';
	timerMENU=setTimeout("document.getElementById("+quale+").style.visibility='hidden'",5000);
	ultimo=quale;
}
//---Fine codice menu

window.onresize=function(){if(ultimo) document.getElementById(ultimo).style.visibility='hidden'}
//-->