/*
 * jQuery Tooltips Plugin
 * http://www.evanbot.com/article/jquery-tooltips-plugin/14
 *
 * Copyright (c) 2009 Evan Byrne (http://www.evanbot.com)
 */
jQuery.fn.tooltip = function(element,offX,offY){
	if(element == null){var element = '#tooltip';}
	if(offX == null){var offX = 5;}
	if(offY == null){var offY = 5;}
	$(this).each(function(){var title = $(this).attr('title');$(this).removeAttr('title').attr('tip',title);});
	$(this).mousemove(function(e){var tip = $(this).attr('tip');$(element).css({display:'block',top:e.pageY+offY,left:e.pageX+offX}).text(tip);});
	$(this).mouseout(function(){$(element).css('display','none');});
	return this;
};
