var marqueewidth=350
var marqueeheight=60
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>')
                      document.write("<a href='JavaScript:apri(\"/notizie.html?id=43\")'>SOSPENSIONE ATTIVITA' DIDATTICA 6 E 7 FEBBRAIO 2012</a><p>")
                      document.write("<a href='JavaScript:apri(\"/notizie.html?id=44\")'>SOSPENSIONE ATTIVITA' DIDATTICA 8 E 9 FEBBRAIO 2012</a><p>")
                      document.write("<a href='JavaScript:apri(\"/notizie.html?id=46\")'>RINVIO RIUNIONI GIUNTA ESECUTIVA E CONSIGLIO ISTITUTO</a><p>")
                      document.write("<a href='JavaScript:apri(\"/notizie.html?id=7\")'>ESAMI ECDL FEBBRAIO 2012</a><p>")
                      document.write("<a href='JavaScript:apri(\"/notizie.html?id=40\")'>AGGIORNAMENTO MODELLI RICHIESTA SKILLS CARD ED ESAMI ECDL</a><p>")
                      document.write("<a href='JavaScript:apri(\"/notizie.html?id=45\")'>RINVIO ESAMI ECDL CAD 2D</a><p>")
                      document.write("<a href='JavaScript:apri(\"/notizie.html?id=4\")'>MATERIALE SUI NUOVI ISTITUTI TECNICI</a><p>")
            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
