
// per link Sito
this.tooltipSH = 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 */		
	$("a.tooltipSH").hover(function(e){											  
		this.t = this.title;
		this.title = "";									  
		$("body").append("<p id='tooltipSH'>"+ this.t +"</p>");
		$("#tooltipSH")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px")
			.fadeIn("fast");		
    },
	function(){
		this.title = this.t;		
		$("#tooltipSH").remove();
    });	
	$("a.tooltipSH").mousemove(function(e){
		$("#tooltipSH")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px");
	});			
};



// starting the script on page load
$(document).ready(function(){
	tooltipSH();
});




// per link squadre con scudetto Widget
this.tooltipWH1 = 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 */		
	$("a.tooltipWH1").hover(function(e){											  
		this.t = this.title;
		this.title = "";									  
		$("body").append("<span id='tooltipWH1'><img src='http://www.dm8.it/WidgetDM8/ImmaginiW/sc-"+ this.t +".png' />News, video e info <strong>"+ this.t +"</strong></span>");
		$("#tooltipWH1")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px")
			.fadeIn("fast");		
    },
	function(){
		this.title = this.t;
		this.alt = this.i;	
		$("#tooltipWH1").remove();
    });	
	$("a.tooltipWH1").mousemove(function(e){
		$("#tooltipWH1")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px");
	});			
};



// starting the script on page load
$(document).ready(function(){
	tooltipWH1();
});





// per link squadre con scudetto Widget
this.tooltipWH2 = 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 */		
	$("a.tooltipWH2").hover(function(e){											  
		this.t = this.title;
		this.title = "";									  
		$("body").append("<span id='tooltipWH2'>"+ this.t +"</span>");
		$("#tooltipWH2")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px")
			.fadeIn("fast");		
    },
	function(){
		this.title = this.t;
		this.alt = this.i;	
		$("#tooltipWH2").remove();
    });	
	$("a.tooltipWH2").mousemove(function(e){
		$("#tooltipWH2")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px");
	});			
};



// starting the script on page load
$(document).ready(function(){
	tooltipWH2();
});
