var xhr;
function loadTicker() {
	if (xhr != null && xhr.readyState != 0 && xhr.readyState != 4) {
		xhr.abort();
	}
	try {
		xhr = new XMLHttpRequest();
	}catch (error) {
		try {
			xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
		catch (error) {
			xhr = null;
			return ;
		}
	}
	
	xhr.onreadystatechange = function () {
		if (xhr.readyState == 4) {
			try {
				if (xhr.status == 200) {
//					alert(xhr.responseText);
					document.getElementById("tickerContent").innerHTML = xhr.responseText;
					initializemarquee();
//					alert(document.getElementById("tickerContent").innerHTML);
//if (window.addEventListener)
//window.addEventListener("load", initializemarquee, false)
//else if (window.attachEvent)
//window.attachEvent("onload", initializemarquee)
//else if (document.getElementById)
//window.onload=initializemarquee
				}
				else if (xhr.status != 0) {
					alert("There was an error in the request.");
					return false;
				}
			} catch(e2) { }
		}
		return true;
	};
	xhr.open("GET", "content.txt", true);
	xhr.send(null);
}