var tp_destination, tp_txt, tp_delay, tp_currentChar;
function tp_type() {
	if (document.getElementById) {
		var dest=document.getElementById(tp_destination);
		if (dest)	{
			dest.innerHTML=tp_txt.substr(0, tp_currentChar);
			tp_currentChar++;
			if (tp_currentChar>tp_txt.length) {
				tp_currentChar=1;
				setTimeout("tp_type()", 5000);
			} else {
				setTimeout("tp_type()", tp_delay);
			}
		}
	}
}

function startTyping(textParam, delayParam, destinationParam) {
	tp_txt=textParam;
	tp_delay=delayParam;
	tp_currentChar=1;
	tp_destination=destinationParam;
	tp_type ();
}