function crearXMLHttpRequestNews() 
{
  var NewsxmlHttp=null;
  if (window.ActiveXObject) 
	NewsxmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
  else 
	if (window.XMLHttpRequest) 
	  NewsxmlHttp = new XMLHttpRequest();
  return NewsxmlHttp;
}

MenuNews = function() {
if (document.all || document.getElementById) {
navRoot = document.getElementById("menutop_seccion").getElementsByTagName('LI');
  for (i=0; i<navRoot.length; i++) {
	navRoot[i].onmouseover=function() {
		if (this.getAttribute('id')=='news' && document.getElementById('top_news').style.display=='none'){
		  if(IsAjaxNew==false){
			  conexion1=crearXMLHttpRequestNews();
			  conexion1.open("GET", 'http://'+window.location.host+'/musica/NoticiasAjax/', true);
			  conexion1.onreadystatechange=function() {
				if (conexion1.readyState==4) {
					document.getElementById('top_news').innerHTML = conexion1.responseText;
					IsAjaxNew=true;
				}
			  }
			  conexion1.send(null);
			  //alert("Enviando mediante Ajax ...");IsAjaxNew=true;
		  }
		  document.getElementById('top_news').style.display = 'block';
		}/*if*/
    }/* hover */
   }/*en for*/
  }/*if document*/
 }/*function*/
 
/*
if (window.attachEvent) window.attachEvent("onload", MenuNews);
else window.onload=MenuNews;
*/
