function cargaNoticias()
{
    Noticias.getNoticias(envioNoticias);
}

function envioNoticias(noticias)
{

	document.getElementById('noticias').innerHTML = "Noticias";
	document.getElementById('carga').style.paddingLeft='0px';
	document.getElementById('carga').style.paddingTop='0px';
	document.getElementById('carga').style.visibility='hidden';
	document.getElementById('carga').innerHTML = "";
    for (var i = 0; i < noticias.length; i++) 
    {
        numero = i + '';
        fecha = "fecha" + numero;
        document.getElementById(fecha).style.display='block';
        document.getElementById(fecha).style.visibility='visible';
        textonovedades = "textoNovedades" + numero;
        document.getElementById(textonovedades).style.display='block';
        document.getElementById(textonovedades).style.visibility='visible';
        mes = 'mes' + numero;
        dwr.util.setValue(mes, noticias[i].mes);
        dia = 'dia' + numero;
        dwr.util.setValue(dia, noticias[i].dia);
        ano = 'ano' + numero;
        dwr.util.setValue(ano, noticias[i].ano);     
        titulo = 'titulo' + numero;
        dwr.util.setValue(titulo, noticias[i].titulo);
        noticia = 'noticia' + numero;
        document.getElementById(noticia).innerHTML = noticias[i].noticiaResumen;
        if (noticias[i].numeroNoticias > 3)
        {
            document.getElementById('leer_mas').innerHTML = "<a href='cont/noticias.htm' class='sin_subrayar'>[Ver todas las noticias]</a>";
        }
        externalLinks();
    }

}
