var largura=140

var altura=100

var bgcolor='#2A4139'

var fundo='' 



var mensagens=new Array()

mensagens[0]="<center><font face='Arial' size=2><a href=cont-agenda.htm target=cont class=linkplantao>01/08 - 21hs: BYE BYE FÉRIAS COM A SPIDER A MALVADA NO VULLKANO EM APARECIDA-SP</a></font></center>"

mensagens[1]="<center><font face='Arial' size=2><a href=cont-fotos.htm target=cont class=linkplantao>Confira as fotos exclusivas dos eventos da Spider A Malvada!</a></font></center>"

mensagens[2]="<center><font face='Arial' size=2><a href=cont-links.htm target=cont class=linkplantao>Confira os links quentes no Site da Spider para ficar sintonizado com a gente!</a></font></center>"



if (mensagens.length>1)

i=2

else

i=0



function mover1(whichlayer){

tlayer=eval(whichlayer)

if (tlayer.top>0&&tlayer.top<=6){

tlayer.top=0

setTimeout("mover1(tlayer)",3000)

setTimeout("mover2(document.principal.document.segundo)",3000)

return

}

if (tlayer.top>=tlayer.document.height*-1){

tlayer.top-=3

setTimeout("mover1(tlayer)",100)

}

else{

tlayer.top=altura

tlayer.document.write(mensagens[i])

tlayer.document.close()

if (i==mensagens.length-1)

i=0

else

i++

}

}

function mover2(whichlayer){

tlayer2=eval(whichlayer)

if (tlayer2.top>0&&tlayer2.top<=6){

tlayer2.top=0

setTimeout("mover2(tlayer2)",3000)

setTimeout("mover1(document.principal.document.primeiro)",3000)

return

}

if (tlayer2.top>=tlayer2.document.height*-1){

tlayer2.top-=3

setTimeout("mover2(tlayer2)",100)

}

else{

tlayer2.top=altura

tlayer2.document.write(mensagens[i])

tlayer2.document.close()

if (i==mensagens.length-1)

i=0

else

i++

}

}

function mover3(whichdiv){

tdiv=eval(whichdiv)

if (tdiv.style.pixelTop>0&&tdiv.style.pixelTop<=6){

tdiv.style.pixelTop=0

setTimeout("mover3(tdiv)",3000)

setTimeout("mover4(segundo2)",3000)

return

}

if (tdiv.style.pixelTop>=tdiv.offsetHeight*-1){

tdiv.style.pixelTop-=6

setTimeout("mover3(tdiv)",100)

}

else{

tdiv.style.pixelTop=altura

tdiv.innerHTML=mensagens[i]

if (i==mensagens.length-1)

i=0

else

i++

}

}

function mover4(whichdiv){

tdiv2=eval(whichdiv)

if (tdiv2.style.pixelTop>0&&tdiv2.style.pixelTop<=6){

tdiv2.style.pixelTop=0

setTimeout("mover4(tdiv2)",3000)

setTimeout("mover3(primeiro2)",3000)

return

}

if (tdiv2.style.pixelTop>=tdiv2.offsetHeight*-1){

tdiv2.style.pixelTop-=5

setTimeout("mover4(segundo2)",100)

}

else{

tdiv2.style.pixelTop=altura

tdiv2.innerHTML=mensagens[i]

if (i==mensagens.length-1)

i=0

else

i++

}

}

function iniciar(){

if (document.all){

mover3(primeiro2)

segundo2.style.top=altura

segundo2.style.visibility='visible'

}

else if (document.layers){

document.principal.visibility='show'

mover1(document.principal.document.primeiro)

document.principal.document.segundo.top=altura+6

document.principal.document.segundo.visibility='show'

}

}













					if (document.all){

					document.writeln('<span id="principal2" style="position:relative;width:'+largura+';height:'+altura+';overflow:hiden;background-color:'+bgcolor+' ;background-image:url('+fundo+')">')

					document.writeln('<div style="position:absolute;width:'+largura+';height:'+altura+';clip:rect(0 '+largura+' '+altura+' 0);left:0;top:0">')

					document.writeln('<div id="primeiro2" style="position:absolute;width:'+largura+';left:0;top:1;">')

					document.write(mensagens[0])

					document.writeln('</div>')

					document.writeln('<div id="segundo2" style="position:absolute;width:'+largura+';left:0;top:0;visibility:hidden">')

					document.write(mensagens[1])

					document.writeln('</div>')

					document.writeln('</div>')

					document.writeln('</span>')

					}

					iniciar()



