﻿
this.tooltip = function(){	
	/* CONFIG */		
		xOffset = 10;
		yOffset = 20;		
		// these 2 variable determine popup's distance from the cursor
		// you might want to adjust to get the right result		
	/* END CONFIG */		
	jQuery("a.tooltip").hover(function(e){											  
		this.t = this.title;
		this.title = "";									  
		jQuery("body").append("<p id='tooltip'>"+ this.t +"</p>");
		jQuery("#tooltip")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px")
			.fadeIn(400);		
    },
	function(){
		this.title = this.t;		
		jQuery("#tooltip").remove();
    });	
	jQuery("a.tooltip").mousemove(function(e){
		jQuery("#tooltip")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px");
	});			
};


jQuery(document).ready(function() {

	// jQuery('#clasico-countdown').countdown({until: new Date(2010, 11 - 1, 29, 21, 00)});
	
	tooltip();
	
	jQuery("#spinner-image-sidebar").show();	
	jQuery('#section-sub-title').tabs(
	  {
		cache:false, fx: { opacity: 'toggle' }, 
		select: function(event,ui) {
				jQuery("#spinner-image-sidebar").show(); 
			},
		ajaxOptions: {success: function() {
				jQuery("#spinner-image-sidebar").hide();
				}
			}		
		});

	jQuery(".select").hover(
		function() {
			jQuery(".sub_active").hide()
		},
		function() {
			jQuery(".sub_active").show()
		}		
		);	

	jQuery("#standard_tbl_liga").tablesorter({ 

        headers: { 
            0: { 
                sorter: false 
            }, 
            1: { 
                sorter: false 
            }, 
            9: { 
                sorter: false 
            }, 
            15: { 
                sorter: false 
            } 			
        } 
    }); 		
		


});


