 
this.screenshotPreview = function(){	
	/* CONFIG */
		
		xOffset = 140;
		yOffset = -50;
		
		// these 2 variable determine popup's distance from the cursor
		// you might want to adjust to get the right result
		
	/* END CONFIG */
	$("a.anteprima").hover(function(e){
		this.t = this.title;
		this.title = "";	
		$("body").append("<p id='anteprima'><img src='"+ this.rel +"' alt='url preview' /></p>");								 
		$("#anteprima")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px")
			.fadeIn("fast");						
    },
	function(){
		this.title = this.t;	
		$("#anteprima").remove();
    });	
	$("a.anteprima").mousemove(function(e){
		$("#anteprima")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px");
	});			
};


// starting the script on page load
$(document).ready(function(){
	screenshotPreview();
	$("a[@rel='external']").click(function() {
	return !window.open($(this).attr("href"));
	});
});