ns4 = (document.layers)? true:false;
ie4 = (document.all)? true:false;

 var str=new Array();
 var tstr=new Array();

 str[0]="ASTRONEWS....FESTIVALS....FACTS....ECLIPSE....EVENTS";

 var speed11 = 600; //increase the number to decrease the speed1 and vice-versa.
   fontface = "verdana";
   fontsize = 2;
	fontstyle = "bold";
   
  //first
  if (str[0].charAt(0) != '#' )
  {
   tstr[0] = str[0]+"<br><br>";
  }
  
  
     var speed11 = 100; //increase the number to decrease the speed1 and vice-versa.
     fontface = "verdana";
     fontsize = 2;
     fontstyle = "Bold";
     var FLAG=1;
  
  
   var ctr = 1;
   var curr = 0;
   var ctext = "";
  
   function chcolor()
   {


   	ctext=tstr[curr].substring(0,ctr);
   	
   	if (ns4)
   	{   	   	
	document.layers["object1"].document.open();	
	var tmp='<font color=#ffcc00 face=' + fontface + ' size=' + fontsize + '><span class=ticker>'+ctext+'</span></font>';		
	document.layers["object1"].document.write(tmp);
	document.layers["object1"].document.close();
	
	}
	else
	{
   		object1.innerHTML='<font color=#ffcc00 face=' + fontface + ' size=' + fontsize + '><span class=ticker>'+ctext+'</span></font>';
   	}
   	
   	
  
   	if (tstr[curr].substring(ctr,ctr+1) == " ")
   	{
   		ctr++;
   		ctext=tstr[curr].substring(0,ctr);
   	}
   	if (tstr[curr].substring(ctr,ctr+1) == "<")
   	{
   		ctr+=8;
   		ctext=tstr[curr].substring(0,ctr);
   	}
  
   	ctr++;
  
   	if ( ctr > tstr[curr].length)
   	{
   		ctr=0;
   		curr++;
   		if (curr>=tstr.length)
   		{
   			curr=0;
   		}
  		setTimeout("chcolor()",1000);
   	}
  	else
  	{
  		setTimeout("chcolor()",speed11);
  	}
  
   }
  
   //setInterval("chcolor()",speed1*FLAG);
   setTimeout("chcolor()",speed11*FLAG);
