/************************************************************************************************************
	@fileoverview
	This file initializes the TypingText functionality based on the design and implementation of 
	"Dynamic drive" (http://www.dynamicdrive.com/dynamicindex10/text5.htm).
	
	The elementId's may be defined in any of the files contributing to the resulting html page.
	The script only has to include this id, and the typing-effect will only kick in if the element is
	found on the html page.

************************************************************************************************************/

function initTypingText() {

	var atleastOneActiveElement = false;

	var element = document.getElementById("header_questions");
	if (element) {
		atleastOneActiveElement = true;
		new TypingText(element, 40);
		//new TypingText(element, 100, function(i){ var ar = new Array("\\", "|", "/", "-"); return " " + ar[i.length % ar.length]; });
	}
	
	if (atleastOneActiveElement == true) {
		TypingText.runAll();
	}
}
