//configure the below three variables to change the style of the scroller
var scrollerwidth=150	
var scrollerheight=25
var scrollerbgcolor=''

var messages=new Array()

messages[0]="<a href='pagine/circolari/2009_2010/piano_attivita.htm' style='text-decoration: none'><font face='Verdana,Geneva,Arial,Helvetica,sans-serif' size='1' font color='#00008b'><i><b>PIANO DELLE ATTIVITA' A.S.2009/2010</b></i></font></a>"
messages[1]="<a href='pagine/specializzazioni_nuove.htm' style='text-decoration: none'target='_parent'><font face='Verdana,Geneva,Arial,Helvetica,sans-serif' font color='#00008b' size='1'><b>Riordino degli INDIRIZZI (a.s.2010/2011)</b></a></font>"
messages[2]="<a href='pagine/orario_2010.htm' style='text-decoration: none'target='_parent'><font face='Verdana,Geneva,Arial,Helvetica,sans-serif' font color='#00008b' size='1'><b>ORARIO LEZIONI a.s.2010/2011</b></font></a>"
messages[3]="<a href='pagine/circolari.htm' style='text-decoration: none'target='_parent'><font face='Verdana,Geneva,Arial,Helvetica,sans-serif' font color='#00008b' size='1'><b>CONSULTAZIONE DELLE CIRCOLARI INTERN</b>E</a></font>"
messages[4]="<a href='pagine/studenti.htm#certificazioni' style='text-decoration: none'target='_parent'><font face='Verdana,Geneva,Arial,Helvetica,sans-serif' size='1' font color='#00008b'><b>p r o s s i m a m e n t e  ECDL_ADVANCED</b></a></font>"
messages[5]="<a href='pagine/NewsletterDocente.htm' style='text-decoration: none' target='_parent'><font face='Verdana,Geneva,Arial,Helvetica,sans-serif' font color='#00008b' size='1'><b>NEWSLETTER PROFESSIONE DOCENTE</a></font>"
messages[6]="<a href='pagine/orario_docenti_ricevimento.htm' style='text-decoration: none'target='_parent'><font face='Verdana,Geneva,Arial,Helvetica,sans-serif' font color='#00008b' size='1'><b>Orario Ricevimento Giornaliero</a></font>"
messages[7]="<a href='pagine/regolamenti/regolamenti.htm' style='text-decoration: none'target='_parent'><font face='Verdana,Geneva,Arial,Helvetica,sans-serif' font color='#00008b' size='1'><b>DOWNLOAD dei Regolamenti di Istituto</a></font>"
messages[8]="<a href='pagine/bollettino/Bollettino.zip' style='text-decoration: none'target='_parent'><font face='Verdana,Geneva,Arial,Helvetica,sans-serif' font color='#00008b' size='1'><b>BOLLETTINO INFORMALAVORO</a></font>"
messages[9]="<a href='pagine/specializzazioni_nuove.htm' style='text-decoration: none'target='_parent'><font face='Verdana,Geneva,Arial,Helvetica,sans-serif' font color='#00008b' size='1'><b>Riordino degli INDIRIZZI A.S.2010/2011</b></a></font>"

if (messages.length>1)
ii=2
else
ii=0

function move3(whichdiv){
tdiv=eval(whichdiv)
if (tdiv.style.pixelTop>0&&tdiv.style.pixelTop<=5){
tdiv.style.pixelTop=0
setTimeout("move3(tdiv)",3000)
setTimeout("move4(second2)",3000)
return
}
if (tdiv.style.pixelTop>=tdiv.offsetHeight*-1){
tdiv.style.pixelTop-=5
setTimeout("move3(tdiv)",100)
}
else{
tdiv.style.pixelTop=scrollerheight
tdiv.innerHTML=messages[ii]
if (ii==messages.length-1)
ii=0
else
ii++
}
}

function move4(whichdiv){
tdiv2=eval(whichdiv)
if (tdiv2.style.pixelTop>0&&tdiv2.style.pixelTop<=5){
tdiv2.style.pixelTop=0
setTimeout("move4(tdiv2)",3000)
setTimeout("move3(first2)",3000)
return
}
if (tdiv2.style.pixelTop>=tdiv2.offsetHeight*-1){
tdiv2.style.pixelTop-=5
setTimeout("move4(second2)",100)
}
else{
tdiv2.style.pixelTop=scrollerheight
tdiv2.innerHTML=messages[ii]
if (ii==messages.length-1)
ii=0
else
ii++
}
}

function startscroll(){
move3(first2)
second2.style.top=scrollerheight
}

window.onload=startscroll

document.writeln('<span id="main2" style="position:relative;width:'+scrollerwidth+';height:'+scrollerheight+';overflow:hiden;background-color:'+scrollerbgcolor+'">')
document.writeln('<div style="position:absolute;width:'+scrollerwidth+';height:'+scrollerheight+';clip:rect(0 '+scrollerwidth+' '+scrollerheight+' 0);left:0;top:0">')
document.writeln('<div id="first2" style="position:absolute;width:'+scrollerwidth+';left:0;top:1;">')
document.write(messages[0])
document.writeln('</div>')
document.writeln('<div id="second2" style="position:absolute;width:'+scrollerwidth+';left:0;top:0">')
document.write(messages[1])
document.writeln('</div>')
document.writeln('</div>')
document.writeln('</span>')
