var msg="Welcome to American Systems Group";
msg+="<br><br>Our Mantra S<sup>3</sup>";
msg+="<br><br>Service to our customers";
msg+="<br><br>Service to our employees";
msg+="<br><br>Service to our vendors";

 
themessage='';

if (document.layers)
  themessage="<layer name=Tns width=450 height=30></layer>";

if (document.all)
  themessage="<div id='Tie' style='position:relative;width:450;height:30'></div>";

next=0;
pos=0;
timer=0;

function Type()
{
  if (timer == 0)
    pos++;  

  if (msg.substring(pos-1,pos) == " ")
    pos++;

  text=msg.substring(0,pos);

  if (document.layers)
  {
    document.layers.Tns.document.open();
    document.layers.Tns.document.write(text);
    document.layers.Tns.document.close();
  }

  if (document.all)
    Tie.innerHTML=text;

  setTimeout('Type()',50); // the smaller the number, the faster it will type

}
window.onload=Type
document.write(themessage)
