/*==============================================================================================
--| Funções Padrão JavaScript
==============================================================================================*/
function $(id_obj) {
	return document.getElementById(id_obj);
}

function $N(name) {
	return document.getElementsByName(name);
}

function debug(texto) {
	$("debug").style.display = "block";
	$("debug").value = texto;
}

function ExibirMenu(campo){

	new Effect.toggle($(campo),'appear',{duration:0.4});
	
	// Divs do Menu principal da pagina Index. Se estiver aberta elas são fechadas. Fab 10:06 29/10/2008
	if($('div_entidade').style.display == '')
	{
		new Effect.toggle($('div_entidade'),'appear',{duration:0.4});
	}
	if($('div_diretoria').style.display == '')
	{
		new Effect.toggle($('div_diretoria'),'appear',{duration:0.4});
	}
	if($('div_publicacao').style.display == '')
	{
		new Effect.toggle($('div_publicacao'),'appear',{duration:0.4});
	}
}
