	function fecharMenu(){
		$("#divMenuLateral").animate( {marginLeft:"-136"} , segMenu, function(){ ajustaMenuFechado(0);} );
		// $("#fisconline").animate( { width: $("#fisconline").width()+136}, segMenu );
		$("#spanLkMenu").removeClass('flagFechar').addClass("flagAbrir");
		$("#spanLkMenu").attr("src", "<?php echo $Application['BaseURL']?>bf/images/menu/bt_avancar3.gif");
	}

	function ajustaMenuFechado(flag){
		if(flag==0)
			document.getElementById("menuMainOnline").style.visibility = "hidden";
		else
			document.getElementById("menuMainOnline").style.visibility = "visible";
	}

	function larguraIframe(){
		largTot = $("#main").width();
		largMen = $("#divMenuLateral").width();
		largura = (largTot-largMen)-23;
		// $("#fisconline").width(largura);
	}

	function alturaIframe(){
		altTopo = $("#Menu1").height() + $("#header").height()+$("#barranaveg").height() + 10;
		if ($("#divCentro").height() < $(window).height()-altTopo){
			altura = $(window).height();
			altura = altura -altTopo;
			// $("#divCentro").height(altura);
			$("#divBordaMenu").height(altura);
			$("#divMenuLateral").height(altura);
		}
	}

	function calculaAlturaLarguraIframe(){
		if(alturaTotalPagina != $(window).height() || larguraTotalPagina != $(window).width()){
			// larguraIframe();
			alturaIframe();
			alturaTotalPagina = $(window).height();
			larguraTotalPagina = $(window).width();
		}
	}

	function abreMenuEspecifico(opt){
		try{
			$(".menInterno").hide();
			$(opt).show();
		}catch(e){
			erro = 1;
		}
	}

	function identificaSecao(){
		dvSec = $('#spanIdentificaSecao').attr('innerHTML');
		abreMenuEspecifico('.m'+dvSec);
	}

	function colocaAjaxLinksMenu(){
			$("#divMenuLateral table tr td a").each(function(index){
			$(this).click(function(){
				if($(this).attr("target")=="_self"){
					get_ajax($(this).attr("href"), 'spMenuLateral','colocaAjaxLinksMenu();identificaSecao();');
					return false;
				}
			});
		});
	}

	function setAcao(acao){} // mantendo compatibilidade com script antigo

	function manipularMenu(param,obj){}

	function redimensionarIframe()
	{
		window.setTimeout(function(){fecharMenu();}, 1000);
	}

