function getElement(id)
{
	return (document.createElement && document.getElementById)?document.getElementById(id):document.all[id];
}

function elimina(nodo)
{
	nodo.parentNode.removeChild(nodo);
}

function LoadNoticia(tagId, UlId)
{
	var div = getElement(tagId);
	if(!div || eval(tagId) == "")return false;
	var li = document.createElement("li")	
	li.innerHTML = eval(tagId);
	//var CodeHTMLFin1 = creaDestacadoHTML(primera);
	div.parentNode.insertBefore(li,div);
	
	elimina(div);
	var ul = getElement(UlId);
	var elems = ul.getElementsByTagName("a");

	for (i = 0; i<elems.length; i++){
		elems[i].target = "_blank";
		//alert(elems[i].href)
	}
}
/*
Inicio
-------------------------------------------------------------------------------------------------------------*/
var intID;
function loadTodo()
{
	clearInterval(intID);
	LoadNoticia("humphreys","IC_humphreys");
	LoadNoticia("feller","IC_feller_rate");
	LoadNoticia("fitch","IC_fitch");
}

var viejoload = window.onload;

window.onload = function()
{
	if(viejoload)
		viejoload();
	intID = setInterval(loadTodo,400);
	
}
