
 var estado_inicial
function SwitchMenu(obj)
  {

   
    if(obj != '') 
	   {
	   	elemento_foco = document.getElementById(obj);
	   }   	
  
   
  if(document.getElementById)
    {
    
     if(obj != '') 
	   {
	   	inverte(elemento_foco); 
	   }	
	}
}



function inverte(x)
  {
  	  	
   estado_inicial = x.style.display;
 		
  	
  if(estado_inicial != "block")
    {
	mostra(x);
	}
  else{
	esconde(x);
	}

  }
  
  
  
function mostra(x)
  {
  x.style.display = "block";
  }
  
  
  
function esconde(x)
  {
  x.style.display = "none";
  }      

SwitchMenu('');
