(function($) {
	$.fn.jHelperTip = function(options) {
		var getData = function(obj, e) {
			getPosition(e);
			$("#jhtContainer").html("<img src='/i/loading.gif' alt='' />").show();
			$.ajax({
				type: "GET",
				url: "/engine/getinfo.php",
				data: options.data,
				success: function(msg) {
					$("#jhtContainer").html(msg);
				},
				error: function(msg) {
					$("#jhtContainer").empty();
					$("#jhtContainer").hide();
				}
			});
		};
		var getPosition = function(e) {
			var top = e.pageY + 3;
			var left = e.pageX + 10;
			$("#jhtContainer").css({
				top: top,
				left: left
			});
			$("#jhtContainer").show();
		};
		$(this).bind("mouseover", function(e) {
			e.preventDefault();
			getData(this, e);
			return false;
		});
		$(this).bind("mousemove", function(e) {
			getPosition(e);
			return false;
		});
		$(this).bind("mouseout", function(e) {
			$("#jhtContainer").empty();
			$("#jhtContainer").hide();
			return false;
		});
	};
})(jQuery);
