function cargaTop5(seccion)
{
	xmlHttpTop5 = GetXmlHttpObject();
	if (xmlHttpTop5==null)
		{
			//alert ("Your browser does not support AJAX!");
			alert ("El Navegador no puede presentar la información");
			return;
		}
	var url="nv_asp/topfive.asp";
	url=url+"?seccion="+seccion;
	xmlHttpTop5.onreadystatechange=function(){ 
		if (xmlHttpTop5.readyState==4)
			{
				document.getElementById("contenidotopfive").innerHTML=xmlHttpTop5.responseText;
				document.getElementById("cargatopfive").style['display']='none';
			}
	}
	xmlHttpTop5.open("POST",url,true);
	xmlHttpTop5.send(url);
}

function cargaSlide(seccion)
{
	xmlHttpSlide = GetXmlHttpObject();
	if (xmlHttpSlide==null)
		{
			//alert ("Your browser does not support AJAX!");
			alert ("El Navegador no puede presentar la información");
			return;
		} 
	var url="nv_asp/slide.asp";
	url=url+"?seccion="+seccion;
	xmlHttpSlide.onreadystatechange=function(){ 
		if (xmlHttpSlide.readyState==4)
			{
				//document.getElementById("contenidoslide").innerHTML=xmlHttp.responseText;
				var scs=xmlHttpSlide.responseText.extractScript();    //capturamos los scripts
		        document.getElementById("contenidoslide").innerHTML=xmlHttpSlide.responseText
				scs.evalScript();       //ahora si, comenzamos a interpretar todo  
				document.getElementById("cargaslide").style['display'] = 'none';
			}
	}
	xmlHttpSlide.open("POST",url,true);
	xmlHttpSlide.send(url);
}

function cargaPrinc(noticia, posicion, foto, tiponoticia)
{
	var xmlHttp = noticia
	xmlHttp = GetXmlHttpObject();
	if (xmlHttp==null)
		{
			//alert ("Your browser does not support AJAX!");
			alert ("El Navegador no puede presentar la información");
			return;
		} 
	var url="nv_asp/princ.asp";
	url=url+"?noticia="+noticia+"&posicion="+posicion+"&foto="+foto+"&tiponoticia="+tiponoticia;
	xmlHttp.onreadystatechange=function(){ 
		if (xmlHttp.readyState==4)
			{
				document.getElementById("contenidoprinc"+noticia).innerHTML=xmlHttp.responseText;
				document.getElementById("cargaprinc"+noticia).style['display']='none';
			}
	}
	xmlHttp.open("GET",url,true);
	xmlHttp.send(url);
}

function cargaHibrido(id)
{
	var xmlHttp = "hibpc"+id
	xmlHttp = GetXmlHttpObject();
	if (xmlHttp==null)
		{
			alert ("El Navegador no puede presentar la información");
			return;
		} 
	var url="nv_asp/hibrido.asp";
	url=url+"?id="+id;
	xmlHttp.onreadystatechange=function(){ 
		if (xmlHttp.readyState==4)
			{
				document.getElementById("contenidohib"+id).innerHTML=xmlHttp.responseText;
				document.getElementById("cargahib"+id).style['display']='none';
			}
	}
	xmlHttp.open("GET",url,true);
	xmlHttp.send(url);
}
