function getXMLOBJ(){
	try{
		xmlhttp = new XMLHttpRequest();
	}catch(ee){
		try{
			xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		}catch(e){
			try{
				xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			}catch(E){
				xmlhttp = false;
			}
		}
	}
	
	return xmlhttp;
}

function AJMENU(page,par){
	alvo = "centro";
	document.getElementById(alvo).innerHTML = '<div class="carregando">Carregando...</div>';
	xmlhttp = getXMLOBJ();
	xmlhttp.open("GET", "include/inc." + page + ".php" + (par != null ? '?' + par : ''),true);
	xmlhttp.onreadystatechange=function() {
		if (xmlhttp.readyState==4){
			if ( xmlhttp.status == 404 ) AJMENU('manutencao');
			else document.getElementById(alvo).innerHTML = xmlhttp.responseText;
		}
	}
	xmlhttp.send(null);
	
	return false;
}