peticion_http_Noticias = null;

//Noticias
function Noticias() {
	peticion_http_Noticias = inicializa_xhr();
	if(peticion_http_Noticias){
		peticion_http_Noticias.onreadystatechange = muestraNoticias;
		peticion_http_Noticias.open("GET", "ap_noticias/noticias.php", true);
		peticion_http_Noticias.send(null);
	}
}

function muestraNoticias(){
	if(peticion_http_Noticias.readyState == READY_STATE_COMPLETE){
		if(peticion_http_Noticias.status == 200){
			document.getElementById("pie").style.marginTop = "0px";
			document.getElementById("contenido").innerHTML = peticion_http_Noticias.responseText;
			document.getElementById("cargador").innerHTML ="";
		}
	}else{
		document.getElementById("cargador").innerHTML = "<img src=\"images/loading.gif\" />";	
	}
}
//FIN Noticias
