(function( $ ) {
	$.widget( "ui.tooltip", {
		options: {
			delay: 1000,
			zIndex: 1000,
			html: '<p>Your Content</p>',
			oLeft: 10,
			oTop: 0
		},
		_create: function() {
			var self = this;
			if ($('#tooltip').get(0) == undefined)
				$('<div>').appendTo($('body')).attr('id','tooltip').attr('class','tooltip').attr('style','position:absolute;z-index:'+self.options.zIndex).offset({top: 0, left: 0}).hide();
			self.element.hover(function() {
				var offset = $(this).offset();
				$('#tooltip').show().html(self.options.html).offset({top: offset.top+self.options.oTop, left: offset.left+self.options.oLeft+$(this).outerWidth()});
			},
			function() {
				$('#tooltip').hide();
			});
		}
	});
})(jQuery);
