var J = jQuery.noConflict();
this.imagePreview = function(){	
	
		xOffset = 100;
		yOffset = 30;
				
	J("a.preview").hover(function(e){
		this.t = this.title;
		this.title = "";	
		var c = (this.t != "") ? "<br/>" + this.t : "";
		J("body").append("<p id='preview'><img src='"+ this.rel +"' alt='Image preview' />"+ c +"</p>");								 
		J("#preview")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px")
			.fadeIn("fast");						
    },
	function(){
		this.title = this.t;	
		J("#preview").remove();
    });	
	J("a.preview").mousemove(function(e){
		J("#preview")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px");
	});			
};

J(document).ready(function(){
	imagePreview();
});