ns4 = (document.layers)? true:false;
ie4 = (document.all)? true:false;

 var str=new Array();
 var tstr=new Array();

 str[0]="<p align='left'><font color='black'><b>PACIFIC PACKERS</b></font><font color='red'> manufacturer and exporters of Cartons.";
 str[1]="Boxes, Hang Tags and Stationery Items";
// str[2]=" ";
// str[3]=" ";
// str[4]=" ";
// str[5]=" ";
// str[6]=" ";
// str[7]=" ";
 //str[8]="";
 //str[9]="";
 var speed = 100; //increase the number to decrease the speed and vice-versa.
//   fontface = "MS Sans Serif";
//   fontsize = 1;

  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[n].charAt(0) != '#' )  {   tstr[0] = tstr[0]+str[n-1]+"<br>"; }

//tstr[0] = str[0]+"<br><br>"+str[1]+"<br><br>"+str[2]+"<br><br>"+str[3];//opshnal ;-)

  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 face="MS Sans Serif,verdana,arial" size=1 color=#ffffff> '+ctext+'</font>';	
		document.layers["object1"].document.write(tmp);
		document.layers["object1"].document.close();
	}else
	{
   		object1.innerHTML='<font face="MS Sans Serif,verdana,arial" size=1 color=#000000> '+ctext+'</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()",3500);
   	}
  	else
  	{
  		setTimeout("chcolor()",speed);
  	}
   }
  
   //setInterval("chcolor()",speed*FLAG);
   setTimeout("chcolor()",speed*FLAG);