<dtml-comment>
cercaNews(data_scadenza='&dtml-dataOggi')
<dtml-if expr="data_scadenza >= dataOggi">
</dtml-if>
<dtml-let dataOggi="DateTime().strftime('%Y-%m-%d')">
</dtml-let>
</dtml-comment>

var marqueewidth=100
var marqueeheight=50
var speed=1
var marqueecontents="<a href='JavaScript:apri(\"/notizie.html?id=1\")'>Novità1</a><p><a href='JavaScript:apri(pathNews)'>Novità2</a>"

if (document.all)
{
    document.write('<marquee direction="up" onmouseover="this.stop()"  onmouseout="this.start()" scrollAmount='+speed+' style="width:'+marqueewidth+';height:'+marqueeheight+'">')
    document.write('<font face="Arial" size=1><strong>')
        <dtml-in expr="cercaNews(data_notizia=DateTime().strftime('%Y-%m-%d'), data_scadenza=DateTime().strftime('%Y-%m-%d'))">
              document.write("<a href='JavaScript:apri(\"/notizie.html?id=<dtml-var id>\")'><dtml-var titolo></a><p>")
        </dtml-in>
    document.write('</big></strong></font>')
    document.write('</marquee>')
}

function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers){
setTimeout("window.onresize=regenerate",450)
intializemarquee()
}
}

function intializemarquee(){
document.cmarquee01.document.cmarquee02.document.write(marqueecontents)
document.cmarquee01.document.cmarquee02.document.close()
thelength=document.cmarquee01.document.cmarquee02.document.height
scrollit()
}

function scrollit(){
if (document.cmarquee01.document.cmarquee02.top>=thelength*(-1)){
document.cmarquee01.document.cmarquee02.top-=speed
setTimeout("scrollit()",100)
}
else{
document.cmarquee01.document.cmarquee02.top=marqueeheight
scrollit()
}
}
window.onload=regenerate2