var sText = "   •   IL LATINO NEL PARLARE DI OGNI GIORNO -    •   UN SORSO DALLA NOSTRA TERRA - mandorla e bevi"; var i=0; var iNews=0; var pixel = 1; var scrolled_pixel = 0; var max_width = 0; var displayed_width = 700; function GetNewsSource() { RssTicker.innerHTML = sText; init(); } function init() { if(document.getElementById) { max_width = document.getElementById("RssTicker").offsetWidth + displayed_width; show_ticker(); } } function show_ticker() { if(document.getElementById) document.getElementById("RssTicker").style.left = (displayed_width - scrolled_pixel) + "px"; scrolled_pixel += pixel; if(scrolled_pixel > max_width) scrolled_pixel = 0; window.setTimeout("show_ticker()",20); } function stop_ticker() { pixel = 0; } function play_ticker() { pixel = 1; } window.onload = function() { GetNewsSource(); } function GP_AdvOpenWindow(ID) { //v2.0 var theURL = '/news/NewsDettaglio.asp?ID=' + ID; var winName = 'DettaglioNews'; var features = 'fullscreen=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes'; var popWidth = 600; var popHeight = 400; var winAlign = 'center'; var ignorelink = ''; var alwaysOnTop = ''; var autoCloseTime = 0; var borderless = ''; var leftPos=0,topPos=0,autoCloseTimeoutHandle, ontopIntervalHandle, w = 480, h = 340; if (popWidth > 0) features += (features.length > 0 ? ',' : '') + 'width=' + popWidth; if (popHeight > 0) features += (features.length > 0 ? ',' : '') + 'height=' + popHeight; if (winAlign && winAlign != "" && popWidth > 0 && popHeight > 0) { if (document.all || document.layers || document.getElementById) {w = screen.availWidth; h = screen.availHeight;} if (winAlign.indexOf("center") != -1) {topPos = (h-popHeight)/2;leftPos = (w-popWidth)/2;} if (winAlign.indexOf("bottom") != -1) topPos = h-popHeight; if (winAlign.indexOf("right") != -1) leftPos = w-popWidth; if (winAlign.indexOf("left") != -1) leftPos = 0; if (winAlign.indexOf("top") != -1) topPos = 0; features += (features.length > 0 ? ',' : '') + 'top=' + topPos+',left='+leftPos;} if (document.all && borderless && borderless != "" && features.indexOf("fullscreen") != -1) features+=",fullscreen=1"; if (window["popupWindow"] == null) window["popupWindow"] = new Array(); var wp = popupWindow.length; popupWindow[wp] = window.open(theURL,winName,features); if (popupWindow[wp].opener == null) popupWindow[wp].opener = self; if (document.all || document.layers || document.getElementById) { if (borderless && borderless != "") {popupWindow[wp].resizeTo(popWidth,popHeight); popupWindow[wp].moveTo(leftPos, topPos);} if (alwaysOnTop && alwaysOnTop != "") { ontopIntervalHandle = popupWindow[wp].setInterval("window.focus();", 50); popupWindow[wp].document.body.onload = function() {window.setInterval("window.focus();", 50);}; } if (autoCloseTime && autoCloseTime > 0) { popupWindow[wp].document.body.onbeforeunload = function() { if (autoCloseTimeoutHandle) window.clearInterval(autoCloseTimeoutHandle); window.onbeforeunload = null; } autoCloseTimeoutHandle = window.setTimeout("popupWindow["+wp+"].close()", autoCloseTime * 1000); } window.onbeforeunload = function() {for (var i=0;i"); document.write(""); document.write(""); document.write("
");