// JavaScript Document

<!--
var text = new Array();
text[0]="Simpsons Steel... has been providing training for many years through its dedicated Training Department";
text[1]="Simpsons Steel... has been providing training for many years through its dedicated Training Department";
text[2]="Simpsons Steel... has been providing training for many years through its dedicated Training Department";
var textIndex=0;
var delay=25;
var currentChar=5;
var destination="[not defined]";
var thisText="overwrite me";


function type()
{
  if (document.getElementById)
  {
    var dest=document.getElementById(destination);
    if (dest)// && dest.innerHTML)
    {
      dest.innerHTML=thisText.substr(0, currentChar);
      //dest.innerHTML+=thisText[currentChar-1];
      currentChar++
      if (currentChar<=thisText.length)
      {
        setTimeout("type()", delay);
      }
      else
      {
		  textIndex++;
		  if (textIndex>=text.count)
		  {
			  textIndex=0;
		  }
		  currentChar=0;
		  thisText=text[textIndex];
		  setTimeout("type()",5000);
	  }


    }
  }
}

function startTyping(textParam, delayParam, destinationParam)
{
  thisText=text[0];
  delay=delayParam;
  currentChar=1;
  destination=destinationParam;
  textIndex=0;
  type();
}

//-->