var url="menu.htm";	//The url of the menu file should probably be /menu.html

var xmlhttp=null;
var success=0;

if (window.XMLHttpRequest)
{ // code for Mozilla, etc.
	xmlhttp=new XMLHttpRequest();
}
else if (window.ActiveXObject)
{ // code for IE
	xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}

if (xmlhttp!=null)
{
	xmlhttp.open("GET",url,false);
	xmlhttp.send(null);

	if (xmlhttp.status==200)
	{ // if "OK"
		document.write(xmlhttp.responseText);
		success=1;
	}
}

if (success!=1)
{ // Load failed, so just insert a link
	document.write("<a href=\""+url+"\">Click for menu</a>");
}
