var text="I'm afraid.<br />          I'm afraid, Dave.<br />          Dave, my mind is going.<br />          I can feel it.<br />          I can feel it.<br />          My mind is going.<br />          There is no question about it.<br />          I can feel it.<br />          I can feel it.<br />          I can feel it.<br />          I'm a          ...fraid.<br />";
var delay=50;
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('location.href = "index.php";', 3000);
     			} else {
				setTimeout("type()", delay);
			}
		}
	}
}

function startTyping(textParam, delayParam, destinationParam)
{
 		text=text;
 		delay=80;
 		currentChar=1;
 		destination="intro";
 		type();
}