// JavaScript Document

	

 function FncMenuAbajo(oId,oFuncion){
	 
		jQuery(function( $ ){
			
			var menuRoot = $( "#"+oId+"-root" );
			var menu = $( "#"+oId+"" );

			var desactivar = $( "#"+oId+"-desactivar" );			
			var activar = $( "#"+oId+"-activar" );

			// Hook up menu root click event.
			menuRoot
				.attr( "href", "javascript:void( 0 )" )
				.click(
					function(){
						
						eval(oFuncion);
						// Toggle the menu display.
						menu.toggle();
 
						// Blur the link to remove focus.
						menuRoot.blur();
 
						// Cancel event (and its bubbling).
						return( false );
					}
				)
			;

			desactivar
				.click(
					function(){
						
						if(confirm("¿Realmente desea DESACTIVAR la barra de Informacion?")){							
							$.post("barra.php", { Activo: "no" } );						
							$( "#site-bottom-bar" ).hide();	
						}
					
						return( false );
					}
				)
			;
			
			activar
				.click(
					function(){
						
						if(confirm("¿Realmente desea ACTIVAR la barra de Informacion ?")){
							$.post("barra.php", { Activo: "si" } );	
							$( "#site-bottom-bar" ).toggle();								
						}
					
						return( false );
					}
				)
			;

			// Hook up a click handler on the document so that
			// we can hide the menu if it is not the target of
			// the mouse click.
			$( document ).click(
				function( event ){
					// Check to see if this came from the menu.
					if (
						menu.is( ":visible" ) &&
						!$( event.target ).closest( "#"+oId+"" ).size()
						){
 
						// The click came outside the menu, so
						// close the menu.
						menu.hide();
 
					}
				}
			);
 
		});
 

 }
