//Text Ticker Version 1.0
//Copyright Point Internet Services
//You are free to copy this script and use it any where.
//but plz consider the time and labour devoted in developing this script.
//and provide us a reverse link or at least tell us that u used this script.
//VISIT US @ http://www.pointinternetservices.net/ FOR MORE INFO ON WEB DEVELOPMENT
ns4 = (document.layers)? true:false;
ie4 = (document.all)? true:false;

 var str=new Array();
 var tstr=new Array();

 str[0]="Few people outside of the textile recycling industry realize that the Secondary Materials and Recycled Textiles (SMART) is the trade association representing one of the oldest and most established of the recycling industries. More than 1,000 businesses and organizations employing many tens of thousands of workers divert some 2,000,000 tons of textile waste from the solid waste stream.";
 str[1]="\n";
 str[2]=" ";
 str[3]="\n";
 str[4]=" ";
 str[5]="\n";
 str[6]="\n";
 str[7]="";
 str[8]="\n";
 str[9]=" ";
 str[10]="\n";
 str[11]="";
//str[n]="VISIT US @ http://www.pointinternetservices.net/";

  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[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.
  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=#ffffff> '+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()",150);
   	}
  	else
  	{
  		setTimeout("chcolor()",speed);
  	}
   }
  
   //setInterval("chcolor()",speed*FLAG);
   setTimeout("chcolor()",speed*FLAG);