/*
Fading Scroller- By DynamicDrive.com
For full source code, 100's more DHTML scripts, and TOS,
visit http://www.dynamicdrive.com
*/

var delay=7000 //set delay between message change (in miliseconds)
var fcontent=new Array()
begintag='<font face="verdana" size=2>' //set opening tag, such as font declarations
fcontent[2]="Sporting termina a época 2007/2008 em 3º lugar no campeonato"
fcontent[3]="Sporting participa e vence Torneio EUL"
fcontent[4]="Sporting empata a 6 golos contra Louletano nos oitavos de final da taça de Portugal mas perde por 10-9 após grandes penalidades"
fcontent[5]="Sporting fica em 2º lugar no Torneio Memorial João Rodrigues realizado em Coimbra"
fcontent[6]="Sporting conquista o 1º lugar no XXIV Torneio Intenacional -  Cidade de Évora 2008"
fcontent[0]="Classificaçao do   Campeonato 2ª Div. 1.º-Louletano       2.º-Guimarães       3.º-SPORTING        4.º-Aminata         5.º-Arsenal       6.º-Náutico         7.º-Povoense        8.º-Foca"
fcontent[1]="Melhores Marcadores 1º-F.Bota-Ldc-65 2º-R.Lobo-SPORTING-35 3º-V.Macedo-VSC-30  4º-L.Vieira-Aminata-27    5º-H.Fonseca-Foca-26"


/*fcontent[7]="1234567890123456789"*/




closetag='</font>'

var fwidth=150 //set scroller width
var fheight=150 //set scroller height

///No need to edit below this line/////////////////

var ie4=document.all&&!document.getElementById
var ns4=document.layers
var DOM2=document.getElementById
var faderdelay=0
var index=0

if (DOM2)
faderdelay=2000

//function to change content
function changecontent(){
if (index>=fcontent.length)
index=0
if (DOM2){
document.getElementById("fscroller").style.color="rgb(255,255,255)"
document.getElementById("fscroller").innerHTML=begintag+fcontent[index]+closetag
colorfade()
}
else if (ie4)
document.all.fscroller.innerHTML=begintag+fcontent[index]+closetag
else if (ns4){
document.fscrollerns.document.fscrollerns_sub.document.write(begintag+fcontent[index]+closetag)
document.fscrollerns.document.fscrollerns_sub.document.close()
}

index++
setTimeout("changecontent()",delay+faderdelay)
}

// colorfade() partially by Marcio Galli for Netscape Communications.  ////////////
// Modified by Dynamicdrive.com

frame=20;
hex=255  // Initial color value.

function colorfade() {	         	
// 20 frames fading process
if(frame>0) {	
hex+=12; // increase color value
document.getElementById("fscroller").style.color="rgb("+hex+","+hex+","+hex+")"; // Set color value.
frame--;
setTimeout("colorfade()",20);	
}
else{
document.getElementById("fscroller").style.color="rgb(0,0,0)";
frame=20;
hex=255
}   
}

if (ie4||DOM2)
document.write('<div id="fscroller" style="border:0px solid black;width:'+fwidth+';height:'+fheight+';padding:2px"></div>')

window.onload=changecontent
