//Loads news data into "newsDisplay" div from file xml/news.xml

//Agent detection and file load
function loadNews()
{
	if (window.XMLHttpRequest)
  	{
		xhttp=new XMLHttpRequest()
	}
	else
	{
		xhttp=new ActiveXObject("Microsoft.XMLHTTP")
	}
	xhttp.open("GET","xml/news.xml",false);
	xhttp.send("");
	xmlDoc=xhttp.responseXML;

	var myXml = xmlDoc.documentElement.getElementsByTagName("newsItem");
	var myHtml = "";

	for(var i = 0; i < myXml.length; i++)
	{
		var item = myXml[i].childNodes[0].nodeValue;
		myHtml = myHtml + item;
	}

	document.getElementById("newsDisplay").innerHTML = myHtml;
}
