

			
			jQuery(document).ready(function() {
			
			//lanzascroll ();
			//$(window).resize(function (){
			//window.location.href=laurl;

			//						   });

			// call the tablesorter plugin 
			//$("table").tablesorter({ 
			// sort on the first column and third column, order asc 
			// sortList: [[0,0],[2,0]] 
			 //widgets: ['zebra']
			 
			
			 
			
   // });
	
	$('table').parent().attr('id','mascara');
	
	$("table").hover ();
	tiempo=0;		
	nada='apaga';
	$('li span a').hide();
	$('.tablesorter').hide();
	
	$('.tablesorter').fadeIn(1000);
			 $(".botonera").click(function(){
										   	$('li').removeClass('fondo');
											$('li span a').hide();
											$(this).parent().addClass('fondo');
							  				$('.tablesorter').fadeOut(100);
											$(this).parent().children('span').children('a').show();
											nada='encendido';
											})
			 
			 $(".botonera").hover(function(){
										   	$('li').removeClass('fondo');
											$('li span a').hide();
											$(this).parent().addClass('fondo');
							  				$('.tablesorter').fadeOut(100);
											$(this).parent().children('span').children('a').show();
											nada='encendido';
											},function(){})
			 
											
			 $("ul").hover(function(){
											tiempo=0;
										   
										   },
							  function(){
								
								if (nada=='encendido'){
								tiempo=1;
								setTimeout (function(){
													 	if (tiempo>0){
								$('li').removeClass('fondo');
							  	$('.tablesorter').fadeIn(100);
								$('li span a').hide();
								nada='apaga';}
								 
							 },3000);	  }
								})
			
			
}); 
