function animar(){
			$("#menu,#logo").animate({width:'toggle'},500);
		$("#enlaces").fadeIn(2000);		
}
$(document).ready(function(){
	var contador=0;
		$('a[href^="http://"]').attr({target: "_blank",title: "Abre la ventana en un nuevo enlace."});

		$("#enlaces").hide();
		$("#menu,#logo").animate({width:'toggle'},0);
		setTimeout("animar();",500);
		$("#menu li a").click(function()  
        {  
			$("#enlaces").hide();
			var direccion=$(this).attr("href");
            $("#menu,#logo").animate({width:'toggle'},500,function(){
					location.href=direccion;
				});			
			return false;
        });  

	$("a.group").fancybox({
        'imageScale': true,
		'zoomSpeedIn':		400, 
		'zoomSpeedOut':	500,
		'overlayShow':		true,
        'overlayOpacity': 0.5,
        'padding': 0
        });
	$("#table").tablesorter( {sortList: [[6,0]],widgets: ['zebra'] })
	//.tablesorterPager({container: $("#pager")})
; 
	$("#table tr").click(function(){
		location.href=unescape($(this).find("a").attr("href"));
	});
	$("#table tr").hover(
		function()
        {
            $(this).animate({ opacity: .6 }, "fast");
        },
        function()
        {
            $(this).animate({ opacity: 1 }, 100);
        });

});


