ns4 = (document.layers)? true:false;
ie4 = (document.all)? true:false;

 var str=new Array();
 var tstr=new Array();

 str[0]="-- WELCOME TO --";
 str[1]="RK PRODUCTS (INDIA)";
 str[2]="* We manufacture :";
 str[3]="* Reduction Gear Boxes";
 str[4]="* Helical Speed Reducers";
 str[5]="* Adaptable Worm Gear";
 str[6]="* Geared Couplings";
 str[7]="* High Pressure Feed Pumps";

 
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>";
  }
  
 

var speed = 100; //increase the number to decrease the speed and vice-versa.     
fontface = "Arial";     
fontsize = 1;    
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=#FBE105 face=arial size=1 > <b><span class=ticker>'+ctext+'</span></b></font>'; 
document.layers["object1"].document.write(tmp); 
document.layers["object1"].document.close();
}
else
{
object1.innerHTML='<font color=#FBE105 face=verdana,arial ><strong><small><small><span class=ticker>'+ctext+'</span></small></small></strong></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);

