function acaoMoverMenu(obj, idNavegacao_local, idCorpo, imgOcultar, imgExibir) { var caminhoImagem = obj.src.substring(0, obj.src.lastIndexOf("/")+1) var objetoMenu = document.getElementById(idNavegacao_local); var objetoCorpo = document.getElementById(idCorpo); var bodyElement = document.body; var location = window.document.location; if(obj.value == "ocultar"){ bodyElement.style.backgroundImage = "url("+location+"/img/bkg-body-no-menu.gif)"; objetoMenu.style.display = "none"; objetoCorpo.style.marginLeft = "0px"; obj.value = "exibir"; obj.src = caminhoImagem+imgExibir; } else { bodyElement.style.backgroundImage = "url("+location+"/img/bkg-body.gif)"; objetoMenu.style.display = ""; objetoCorpo.style.marginLeft = "155px"; obj.value = "ocultar"; obj.src = caminhoImagem+imgOcultar; } }