﻿function delay(milliseconds) {
	var date = new Date();
	var curDate = null;

	do { curDate = new Date(); }
	while (curDate - date < milliseconds);
}

function ShowNextLastNew() {
	if (_tnewscurrent != -1)
	{
		$("#UltimahoraPanel").fadeOut(1000);
		_tnewscurrent = (_tnewscurrent + 1) % _tnews.length;
		setTimeout('ShowCurrentLastNews()', 1000);
	}
}

function ShowCurrentLastNews()
{
	$('#uhHora').html(_tnews[_tnewscurrent].HoraVisible);
	$('#uhTitulo').html(_tnews[_tnewscurrent].Titulo);
	$('#uhContenido').html(_tnews[_tnewscurrent].Contenido);
	$("#UltimahoraPanel").fadeIn(1000);	
}

setInterval('window.location.href = window.location.href', 600000);
