//variables de ancho, alto, color de fondo 
var scrollerwidth=135
var scrollerheight=105
var scrollerbgcolor='#000000'
var scrollerbackground='scrooll-fondo.jpg'

//Links que quieres que salgan, se pueden añadir mas
var messages=new Array()

messages[0]="<font face='Verdana' size='2' color='#000000'><a href='http://www.cascadasartecao.com/blog_eco_agua/category/general/' style='text-decoration: none'> <b>NOVEDADES : </b><br></a></font>"
messages[1]="<font face='Verdana' size='1' color='#000000'><a href='http://www.cascadasartecao.com/actividad-10-dia-mundial-del-medio-ambiente-2009.htm' style='text-decoration: none'> <b>Día Mundial del Medio Ambiente</b><br>Exposición en la Sala Enrique Fynn de O.S.E</a>  </font>"
messages[2]="<font face='Verdana' size='1' color='#000000'><a href='http://www.cascadasartecao.com/actividad-09-dia-mundial-del-agua-2009.htm' style='text-decoration: none'> <b>22 de Marzo Dia Mundial del Agua</b> <br>Intercambio entre el Colegio Nosa Senora da Piedade, Galicia-Espana y la Escuela N*41 Republica de Ecuador, Montevideo-Uruguay</a></font>"
messages[3]="<font face='Verdana' size='1' color='#000000'><a href='http://www.cascadasartecao.com/blog_eco_agua/2009/06/05/exposicion-de-la-coleccion-de-pinturas-de-cascadas-y-saltos-de-agua-en-homenaje-al-dia-mundial-del-medio-ambiente-en-uruguay/' style='text-decoration: none'> <b>MURALES MEDIO AMBIENTE</b><br> Auspicia MVOTMA</a>  </font>"
messages[4]="<font face='Verdana' size='1' color='#000000'><a href='http://www.cascadasartecao.com/blog_eco_agua/category/general/' style='text-decoration: none'> <b>NOVEDADES Y EVENTOS</b></a>  </font>"
messages[5]="<font face='Verdana' size='1' color='#000000'><a href='http://www.cascadasartecao.com/blog_eco_agua/2009/05/31/31-de-mayo-de-2009-dia-mundial-sin-humo-de-tabaco/' style='text-decoration: none'><b>TALLERES HOMENAJE</b> <br>Día mundial sin humo de tabaco, Día mundial del medio ambiente, Escuela 5 de Punta del Este, Uruguay</a></font>"



if (messages.length>1)
i=2
else
i=0

function move1(whichlayer){
tlayer=eval(whichlayer)
if (tlayer.top>0&&tlayer.top<=5){
tlayer.top=0
setTimeout("move1(tlayer)",8000)
setTimeout("move2(document.main.document.second)",8000)
return
}
if (tlayer.top>=tlayer.document.height*-1){
tlayer.top-=5
setTimeout("move1(tlayer)",100)
}
else{
tlayer.top=scrollerheight
tlayer.document.write(messages[i])
tlayer.document.close()
if (i==messages.length-1)
i=0
else
i++
}
}

function move2(whichlayer){
tlayer2=eval(whichlayer)
if (tlayer2.top>0&&tlayer2.top<=5){
tlayer2.top=0
setTimeout("move2(tlayer2)",6000)
setTimeout("move1(document.main.document.first)",6000)
return
}
if (tlayer2.top>=tlayer2.document.height*-1){
tlayer2.top-=5
setTimeout("move2(tlayer2)",100)
}
else{
tlayer2.top=scrollerheight
tlayer2.document.write(messages[i])
tlayer2.document.close()
if (i==messages.length-1)
i=0
else
i++
}
}

function move3(whichdiv){
tdiv=eval(whichdiv)
if (tdiv.style.pixelTop>0&&tdiv.style.pixelTop<=5){
tdiv.style.pixelTop=0
setTimeout("move3(tdiv)",6000)
setTimeout("move4(second2)",6000)
return
}
if (tdiv.style.pixelTop>=tdiv.offsetHeight*-1){
tdiv.style.pixelTop-=5
setTimeout("move3(tdiv)",100)
}
else{
tdiv.style.pixelTop=scrollerheight
tdiv.innerHTML=messages[i]
if (i==messages.length-1)
i=0
else
i++
}
}

function move4(whichdiv){
tdiv2=eval(whichdiv)
if (tdiv2.style.pixelTop>0&&tdiv2.style.pixelTop<=5){
tdiv2.style.pixelTop=0
setTimeout("move4(tdiv2)",6000)
setTimeout("move3(first2)",6000)
return
}
if (tdiv2.style.pixelTop>=tdiv2.offsetHeight*-1){
tdiv2.style.pixelTop-=5
setTimeout("move4(second2)",100)
}
else{
tdiv2.style.pixelTop=scrollerheight
tdiv2.innerHTML=messages[i]
if (i==messages.length-1)
i=0
else
i++
}
}

function startscroll(){
if (document.all){
move3(first2)
second2.style.top=scrollerheight
second2.style.visibility='visible'
}
else if (document.layers){
document.main.visibility='show'
move1(document.main.document.first)
document.main.document.second.top=scrollerheight+5
document.main.document.second.visibility='show'
}
}

window.onload=startscroll 