// Controla os efeitos do menu do calendario da gravidez

var menuAberto = null;
var mesSelecionado = null;

function abrirMenu(aID, Title){
	fecharMenus(menuAberto);
	fecharMenus(mesSelecionado);
	
	var obj = document.getElementById(aID);
	var mest = document.getElementById(Title);
	
	
	
	if(aID!=menuAberto){
		obj.className="current";
		mest.className="current";

		mesSelecionado = Title;
		menuAberto = aID;

	} else {

		mesSelecionado=null;
		menuAberto=null;	

	}
}

function fecharMenus(){
	if(menuAberto!=null){
		document.getElementById(menuAberto).className="topicos";
		document.getElementById(mesSelecionado).className="";
	}
}
