var delay=7000 
var fcontent=new Array()
begintag='<font face="Arial" size=2>' 
fcontent[0]="<i><b>10/01/06</b></i><br>GAN is celebrating its 10th anniversary this year. Why not join us at one of are <a href='../getinvolved/intro.html#aage'>events</a> we are holding in celebration"
fcontent[1]="<i><b>21/06/04</b></i><br>GAN was highly commended at the <a href='http://www.charityawards.co.uk/' target='_blank'>Charity Awards</a> ceremony on June 17th"
fcontent[2]="<i><b>17/06/04</b></i><br>GAN&rsquo;s first e-newsletter was published in June"
fcontent[3]="<i><b>17/06/04</b></i><br>&pound;5,000 to date raised by GAN&rsquo;s London marathon runners"
closetag='</font>'

var fwidth=178 
var fheight=90
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 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)
}

frame=20;
hex=255


function colorfade() {	         	

if(frame>0) {	
hex-=12; 
document.getElementById("fscroller").style.color="rgb("+hex+","+hex+","+hex+")"; 
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:0px"></div>')

window.onload=changecontent
