this.imagePreview = function(){	
		/* CONFIG */
		var xOffset = 0;
		var yOffset = 0;
		// these 2 variable determine popup's distance from the cursor
		// you might want to adjust to get the right result
		/* END CONFIG */
		$("img.preview").hover(function(e){
		this.t = this.title;
		this.title = "";	
		
		var containerId = this.id+"_p";
		
		var c = (document.getElementById(containerId).innerHTML) ? "<br/><br/>" + document.getElementById(containerId).innerHTML : "";
		
		$("body").append("<p id=\"preview\"><img width=\"72px\" height=\"72px\"  src='"+ this.src +"' alt='"+ this.t +"' />"+ c + this.t +"</p>");								 
		$("#preview").css("top",(e.pageY - xOffset) + "px");
		$("#preview").css("left",(e.pageX + yOffset) + "px");
		$("#preview").fadeIn("slow");		
		},
		function(){
		this.title = this.t;	
		$("#preview").remove();
		});	
		$("img.preview").mousemove(function(e){
		$("#preview")
		.css("top",(e.pageY - xOffset) + "px")
		.css("left",(e.pageX + yOffset) + "px");
		});			
	};
	
	// starting the script on page load
	$(document).ready(function(){
		imagePreview();
	});
