/* activa el menu */
function activa_menu(elemento){
		jQuery('#navegacion').Accordion({ 
		
			active: elemento, 
			event: 'mouseover', 
			header: '.link_principal', 
			selectedClass: "actual",

			autoheight: true, 			
			showSpeed : 800,
			hideSpeed : 500,
			navigation: false, 						

			animated: 'easeslide' 
	});
}
function activa_menu2(){
	jQuery('#navegacion').Accordion({ 
		event: 'mouseover', 
		header: '.link_principal', 
		selectedClass: "actual",
		alwaysOpen: false, 
		autoheight: true, 
		active: false, 
		showSpeed : 800,
		hideSpeed : 500,
		navigation: false ,
		animated: 'easeslide' 
	});
}





/*
$(function()
			{
				var isResizing;
				// and the body scrollpane
				var setContainerHeight = function()
				{
					// IE triggers the onResize event internally when you do the stuff in this function
					// so make sure we don't enter an infinite loop and crash the browser
					if (!isResizing) { 
						isResizing = true;
						$w = $(window);
						$c = $('#todo');
						var p = (parseInt($c.css('paddingLeft')) || 0) + (parseInt($c.css('paddingRight')) || 0);
						$('body>.jScrollPaneContainer').css({'height': $w.height() + 'px', 'width': $w.width() + 'px'});
						$c.css({'height': ($w.height()-p) + 'px', 'width': ($w.width() - p) + 'px', 'overflow':'auto'});
						$c.jScrollPane({showArrows:true, scrollbarWidth:16, scrollbarMargin :2});
						isResizing = false;	
					}
				}
				$(window).bind('resize', setContainerHeight);
				setContainerHeight();
				
				// it seems like you need to call this twice to get consistantly correct results cross browser...
				setContainerHeight();
				
			});
*/

