
var text="NTM UK is currently in the studio going over past material for a series titled 'Back to the Mixes'. This weekly post will cover some of the best of the NTM UK collection while going into technical detail about the processes and instruments used within each mix. The first instalment looks at the Yamaha DJX as a sound source and the difference that a computer sequencer makes.";
var delay=30;
var currentChar=1;
var destination="[not defined]";

function type()
{
  if (document.getElementById)
  {
    var dest=document.getElementById(destination);
    if (dest)// && dest.innerHTML)
    {
      dest.innerHTML=text.substr(0, currentChar);
      //dest.innerHTML+=text[currentChar-1];
      currentChar++
      if (currentChar>text.length)
      {
        currentChar=1;
        setTimeout("type()", 5000);
      }
      else
      {
        setTimeout("type()", delay);
      }
    }
  }
}

function startTyping(textParam, delayParam, destinationParam)
{
  text=textParam;
  delay=delayParam;
  currentChar=1;
  destination=destinationParam;
  type();
}
