function loadXML(fn)
	{
		if (window.ActiveXObject)
			{
			var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
			xmlDoc.async=false; //Enforce download of XML file first. IE only.
			}
		else if (document.implementation && document.implementation.createDocument)
			{
			var xmlDoc= document.implementation.createDocument("","doc",null);
			}
		xmlDoc.async=false;
		xmlDoc.load(fn);
		return xmlDoc
	}
function buildmenus(xmlfile)
	{
	submenus = xmlfile.getElementsByTagName('submenu');
	navhtml = 'Wild as a Horse';
	for(i=0;i<submenus.length;i++)
		{
		title = submenus[i].getElementsByTagName('title')[0].firstChild.nodeValue;
		navhtml +="<div id='" ;
		navhtml += title ;
		navhtml += "' class='sub'";
		navhtml +=" onmouseover='getbig(this)'";
		navhtml +=" onmouseout='getsmall(this)'>";
		navhtml +="<h4>" + title + "</h4>";
		topics = submenus[i].getElementsByTagName('topic');	
		for(j=0;j<topics.length;j++)
			{
			nm= topics[j].getElementsByTagName('name')[0].firstChild.nodeValue;
			ln = topics[j].getElementsByTagName('link')[0].firstChild.nodeValue;
			navhtml += "<a + href='http://";
			navhtml += ln;
			navhtml += "'>";
			navhtml += nm + "</a>";
			}
		navhtml +="</div>";
		}
	newm = document.getElementById('newmenu');
	newm.innerHTML=navhtml;
	}
	
function getbig(th)
	{
	th.style.height='auto';
	}

function getsmall(th)
	{
	th.style.height='1em';
	}