var someAvisoTimeout = 0;

function mostraReportagemMaisPopulares() {
	document.getElementById('reportagemMaisPopulares').style.display='block';
	document.getElementById('reportagemMaisVotadas').style.display='none';
}
function mostraReportagemMaisVotadas() {
	document.getElementById('reportagemMaisPopulares').style.display='none';
	document.getElementById('reportagemMaisVotadas').style.display='block';
}

function subMenuOnClickWhatsHot(id) {
    i = 0;
    while (document.getElementById('whatsHot' + i) != null) {
		var subMenu = document.getElementById('whatsHot' + i);
		var link = document.getElementById('linkWhatsHot' + i);
    	if (id != i) {
			link.style.backgroundImage = "url(/css/imagem/setaMaisVotadasOff.gif)";
			document.getElementById("aWhatsHot"+i).style.color = "#006BC6";
			document.getElementById("aWhatsHot"+i).style.fontWeight = "normal";
    			subMenu.style.display='none';
    	} else if (subMenu.style.display=='block') {
			link.style.backgroundImage = "url(/css/imagem/setaMaisVotadasOff.gif)";
			document.getElementById("aWhatsHot"+i).style.color = "#006BC6";
			document.getElementById("aWhatsHot"+i).style.fontWeight = "normal";			
			subMenu.style.display='none';
		} else {
			link.style.backgroundImage = "url(/css/imagem/setaMaisVotadasOn.gif)";
			document.getElementById("aWhatsHot"+i).style.color = "#AA0101";
			document.getElementById("aWhatsHot"+i).style.fontWeight = "bold";
			subMenu.style.display='block';
		}
		i++;
	}
}
