var speed=3000;
i=0;
window.onload=function ()
{
    i=0;
    speed = 3000;
	if(typeof(document.getElementById)!=undefined)
	{
		regenerate2();
		update();
	}
}

function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers)
setTimeout("window.onresize=regenerate",450);
}

function update(){
if(news[i] == undefined)
{
    i=0;
}
document.getElementById("subtickertape").innerHTML=news[i];
if (i<news.length-1)
i++;
else
i=0;
setTimeout("waitWithClean()",speed);
}

function waitWithClean(){
    document.getElementById("subtickertape").innerHTML = '';
    setTimeout("update()",500);
}
 function RunFader() {
 var epct = step/inc; 
 var spct = 1 - epct; 
 if ( step < inc ) {
 setTimeout('RunFader()',50); 
 }
 step++;
 }
