jQuery.fn.Tooltip = function(){

	return this.each(function(){
		var container = $(this);

		container.find('a:first').each(function(){
			var link = $(this);
			var tooltip = link.next('div:first');
			var hover = function(){
				var pos = link.position();
				tooltip.css('left', pos.left).css('top', pos.top + 12).css('display', 'block');
//				tooltip.css('left', pos.left).css('top', pos.top + 12).show(300);
			};

			var hide = function(){
				tooltip.css('display', 'none');
			};

			link.bind('mouseover', hover);
			tooltip.bind('mouseover', hover);

			link.bind('mouseout', hide);
			tooltip.bind('mouseout', hide);
		});
	});
};

$(document).ready(function(){
	$('.tooltip').Tooltip();
});

