//Get things set up.
var xmlDoc=null;
if (window.ActiveXObject)
{// code for IE
xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
}
else if (document.implementation.createDocument)
{// code for Mozilla, Firefox, Opera, etc.
xmlDoc=document.implementation.createDocument("","",null);
}
else
{
alert('Your browser cannot handle this script');
}
//finish getting things set up. begin process.
if (xmlDoc!=null)
{ 
xmlDoc.async=false;
xmlDoc.load("updatelist.xml");				//load the xml file.
// xmlDoc.load("updatelist_xml_beta.php");	
var fullUpdateList = new Array();			//create the array.

var x=xmlDoc.getElementsByTagName("ITEM"); 		//find ITEM tags.
for (i=0;i<x.length;i++)				//for each ITEM tag in the file...
{ 
fullUpdateList[i] = x[i].childNodes[0].nodeValue; 	//add the contents from xml into the array.
}
fullUpdateList.sort();					//sort the list.
fullUpdateList.reverse();				//order with the latest on top
var updateLast=xmlDoc.getElementsByTagName("DATE");

var updateLastEntry= updateLast[0].childNodes[0].nodeValue;
//document.write("<small>This feature is currently being updated, please excuse the sawdust.</small><br/>");
document.write("<a id='updatelast'>" + updateLastEntry + "</a>"); //State the date of last update

document.write("<ol id='autoupdatelist'>"); 				//start an ordered list in html.

for (j in fullUpdateList) 				//for each one in the list...
{
// change this number to display more in the list.
if (j<10){  						//if it's less than this number in the index (index starts at 0, not 1 - same as number in list),
document.write("<li>" + fullUpdateList[j] + "</li>")	//write them into the page.
}
}

document.write("</ol>");  				//end the ordered list.

}


