function Ajax(){
	var xmlhttp=false;
	try {
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	} catch (e) {
		try {
			if(xmlhttp);
		   else
		   {
			   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		   }
		} catch (E) {
			xmlhttp = false;
			
  		}
	}
	if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
		xmlhttp = new XMLHttpRequest();
	}
	return xmlhttp;
}

frame=60;
hex=255  // Initial color value.

function colorfade()
{                         
// 20 frames fading process
if(frame>0) {        
hex-=12; // increase color value
document.getElementById('idX').style.color="rgb("+hex+","+hex+","+hex+")"; // Set color value.
frame--;
setTimeout("colorfade()",60);        
}
else{
document.getElementById('idX').style.color="rgb(0,0,0)";
frame=20;
hex=255
}   
}
function ActualizaNoticia()
{
	ajax="";
	//especificamos en div donde se mostrará el resultado
	fadenoticias= document.getElementById('idX');
	colorfade(fadenoticias);
	ajax=Ajax();
	//especificamos el archivo que realizará el listado
	//y enviamos las dos variables: campo y orden
	ajax.open("GET", "fadenoticias.php",true);
	ajax.onreadystatechange=function()
	{
		if (ajax.readyState==4) {
			fadenoticias.innerHTML = ajax.responseText
		}
	}
	ajax.send(null)
}
setInterval("ActualizaNoticia()",10000);