/*
 * 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}).html(tip);});
	$(this).mouseout(function(){$(element).css('display','none');});
	
	return this;
};
$(document).ready(function() {
	$('.tip').tooltip('#tooltip');
	$('body').append($('<div id="tooltip" />'));
	$('tr.plan-item').hover(
		function(){
			$(this).find('td').css('background', '#fff');
			$(this).find('th').css('background', '#fff');
		},
		function(){
			$(this).find('td').css('background', 'none');
			$(this).find('th').css('background', 'none');
		}
	)
});
