ns4 = (document.layers)? true:false;
ie4 = (document.all)? true:false;

 var str=new Array();
 var tstr=new Array();

 str[0]="Satyam Cycles (p) Limited";
 str[1]="a professionally managed 100% export oriented unit, is the";
 str[2]="joint venture of a group of original equipment manufacturers.";
 str[3]="Satyam is posed for fast growth with full support of our worthy clients world wide. We are Certified as an ISO 9001:2000 company by BVQi";
// str[4]="Satyam is well equipped with most modern Laboratory Tool Room.";
// str[5]="--";
// str[6]="--";
// str[7]="--";
// str[8]="--";
// str[9]="--";
// str[10]="--";
// str[11]="--";
// str[12]="--";
// str[13]="--";
// str[14]="--";
 
var speed = 300; //increase the number to decrease the speed and vice-versa. fontface = "arial"; fontsize = 2;
   
  //first
  if (str[0].charAt(0) != '#' )
  {
   tstr[0] = str[0]+"<br>";
  }
  if (str[1].charAt(0) != '#' )
  {
   tstr[0] = tstr[0]+str[1]+"<br>";
  }
  if (str[2].charAt(0) != '#' )
  {
   tstr[0] = tstr[0]+str[2]+"<br>";
  }
  if (str[3].charAt(0) != '#' )
  {
   tstr[0] = tstr[0]+str[3]+"<br>";
  }
/*  if (str[4].charAt(0) != '#' )
  {
   tstr[0] = tstr[0]+str[4]+"<br>";
  }
 if (str[5].charAt(0) != '#' )
  {
   tstr[0] = tstr[0]+str[5]+"<br>";
  }
if (str[6].charAt(0) != '#' )
  {
   tstr[0] = tstr[0]+str[6]+"<br>";
  }
if (str[7].charAt(0) != '#' )
  {
   tstr[0] = tstr[0]+str[7]+"<br>";
  }
if (str[8].charAt(0) != '#' )
  {
   tstr[0] = tstr[0]+str[8]+"<br>";
  }
 if (str[9].charAt(0) != '#' )
  {
   tstr[0] = tstr[0]+str[9]+"<br>";
  }
 if (str[10].charAt(0) != '#' )
  {
   tstr[0] = tstr[0]+str[10]+"<br>";
  }
  if (str[11].charAt(0) != '#' )
  {
   tstr[0] = tstr[0]+str[11]+"<br>";
  }
 if (str[12].charAt(0) != '#' )
  {
   tstr[0] = tstr[0]+str[12]+"<br>";
  }
 
second
 if (str[5].charAt(0) != '#' )
  {
 tstr[1] = str[5]+"<br><br>";
  }
  if (str[6].charAt(0) != '#' )
  {
 tstr[1] = tstr[1]+str[6]+"<br><br>";
  }
	     if (str[7].charAt(0) != '#' )
  {
 tstr[1] = tstr[1]+str[7]+"<br><br>";
  }
           if (str[8].charAt(0) != '#' )
  {
 tstr[1] = tstr[1]+str[8]+"<br><br>";
 }
           if (str[9].charAt(0) != '#' )
{
tstr[1] = tstr[1]+str[9]+"<br><br>";
   }
  
  
third
        if (str[10].charAt(0) != '#' )
  {
 tstr[2] = str[10]+"<br><br>";
  }
         if (str[11].charAt(0) != '#' )
{
   tstr[2] = tstr[2]+str[11]+"<br><br>";
}
             if (str[12].charAt(0) != '#' )
  {
tstr[2] = tstr[2]+str[12]+"<br><br>";
}
           if (str[13].charAt(0) != '#' )
  {
 tstr[2] = tstr[2]+str[13]+"<br><br>";
  }
         if (str[14].charAt(0) != '#' )
 {
tstr[2] = tstr[2]+str[14]+"<br><br>";
   }
  
*/  
   
//tstr[0] = str[0]+"<br><br>"+str[1]+"<br><br>"+str[2]+"<br><br>"+str[3];  
//tstr[1] = str[4]+"<br><br>"+str[5]+"<br><br>"+str[6]+"<br><br>"+str[7];  
//tstr[2] = str[8]+"<br><br>"+str[9]+"<br><br>"+str[10]+"<br><br>"+str[11];
var speed = 100; //increase the number to decrease the speed and vice-versa.     
fontface = "ms sans serif";     
fontsize = 2;    
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=#666666 face=MS Sans Serif size=2 > <span class=ticker>'+ctext+'</span></font>'; 
document.layers["object1"].document.write(tmp); 
document.layers["object1"].document.close();
}
else
{
object1.innerHTML='<font color=#666666 font face="MS Sans Serif"><small><small><span class=ticker>'+ctext+'</span></small></small></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()",speed);
}
}
//setInterval("chcolor()",speed*FLAG);
  setTimeout("chcolor()",speed*FLAG);
