$(function()
{
	$.fn.tip = function(options)
	{
		options = $.extend({
		}, options || {});
		
		var id_tip;
		var posX = 10;
		var posY = 26;
		
		$(this).unbind('mouseover');
		$(this).unbind('mousemove');
		$(this).unbind('mouseout');
		
		$(this).mouseover(function(event)
		{			
			if ($(this).attr('abbr')) id_tip = $(this).attr('abbr');
			if (!id_tip) return;
			current_tip = id_tip;
			
			$(id_tip)
			.css({
				left: event.pageX - posX,
				top: event.pageY - ($(id_tip).height() + posY),
				display: 'none'
			})
			.html($(id_tip).html())
			.appendTo('body')
			.show();
		});
		
		$(this).mousemove(function(event)
		{
			$(id_tip).css({
				left: event.pageX - posX,
				top: event.pageY - ($(id_tip).height() + posY)
			});
		});
		
		$(this).mouseout(function(event)
		{
			$(id_tip).hide();
		});
	};
});
