

time = setInterval('countdown()', 1000);
seconds = 60;

function countdown()
{
	var ss = document.getElementById('seconds');
	ss.innerHTML = --seconds;
	if (seconds <= 0) {
		clearInterval(time);
		window.location.reload();
	}
}

function wait()
{
	clearInterval(time);
	var ss = document.getElementById('refresh');
	ss.innerHTML = 'Refresh the page to regenerate from the latest tweets';
}
