this.screenshotPreview = function(){	
	/* CONFIG */
		
		xOffset = 10;
		yOffset = 50;
		
		// these 2 variable determine popup's distance from the cursor
		// you might want to adjust to get the right result
		
	/* END CONFIG */
	$(".first_layer").hover(function(e){
	
		this.t = this.childNodes[0].title;
		this.title = "";	
		ar_kkal=explode( '/', this.childNodes[0].alt );
		

		var c = (this.t != "") ? "<br/>" + this.t : "";
		$("body").append("<div id='screenshot'><div class='pos_kkal'>" +ar_kkal[1] +"</div><div class='pos_fat'>"+ ar_kkal[0] +"</div></div>");								 
		$("#screenshot")
			.css("top",(e.pageY - yOffset) + "px")
			.css("left",(e.pageX + xOffset) + "px")
			.fadeIn("fast");	
		

    },
	function(){
		this.title = this.t;	
		$("#screenshot").remove();
    });	
	$("img.screenshot").mousemove(function(e){
		$("#screenshot")
			.css("top",(e.pageY - yOffset) + "px")
			.css("left",(e.pageX + xOffset) + "px");
	});			
};


// starting the script on page load
$(document).ready(function(){
	screenshotPreview();
	
});