var delay=2000; //set delay between message change (in miliseconds)
var fcontent=new Array(); //news title
var begintag=new Array(); //news link
//news title
fcontent[0]="Moyea announces adobe premiere import plugin with more video support ";
fcontent[1]="Moyea FLV Player is updated with enhanced playlist and interface! ";
fcontent[2]="Moyea YouTube FLV Downloader Pro is newly released with a built-in converter ";
fcontent[3]="New Mac solution to convert video to Flash with player ";

//news link
begintag[0]='<a href="http://www.moyea.com/moyea-announces-adobe-premiere-import-plugin-with-more-video-support">';
begintag[1]='<a href="http://www.moyea.com/flv_player_is_updated_with_enhanced_playlist_and_interface">';
begintag[2]='<a href="http://www.moyea.com/youtube_flv_downloader_pro_newly_released_with_built_in_converter">';
begintag[3]='<a href="http://www.moyea.com/new-mac-solution-to-convert-video-to-flash-with-player">';
var closetag='</a>';
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[index]+fcontent[index]+closetag;
colorfade();
}
else if (ie4)
document.all.fscroller.innerHTML=begintag[index]+fcontent[index]+closetag;
else if (ns4){
document.fscrollerns.document.fscrollerns_sub.document.write(begintag[index]+fcontent[index]+closetag);
document.fscrollerns.document.fscrollerns_sub.document.close();
}

index++;
setTimeout("changecontent()",delay+faderdelay);
}

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"></div>');

window.onload=changecontent;