(function($) {
 $.fn.Title = function(options) {
	var opts = $.extend({},$.fn.Title.defaults, options), tp = "#title", title = '';
  var over;
	$("body").append('<div id="title"></div>');

	$(this).mouseover(function(e){
	  over = "true";
		title = $(this).attr('title');
		$(tp).html('<p>'+title+'</p>');
		$(this).attr('title', '');
		if (title != "")
		{
  		$(tp).css(opts.styles);
			$(tp).css({
			 top:e.pageY+22,
			 left:e.pageX-20
      });
  		setTimeout(function () {
        if (over=="true")
  		    $(tp).fadeIn('fast')
  		},1000);
		}
	}).mousemove(function(e){
		over = "false";
		if (title != "")
		{
      $(tp).hide();
 	    $(this).attr('title', title);
		}
	}).mouseout(function(){
		over = "false";
		if (title != "")
		{
      $(tp).hide();
 	    $(this).attr('title', title);
		}
	}).click(function(){
		over = "false";
		if (title != "")
		{
	    $(tp).hide();
		  $(this).attr('title', title);
		}
	});
 }

 $.fn.Title.defaults = {
	styles: {}
 }

})(jQuery);