jQuery.fn.tipbox = function(content, allowHtml, className)
{
	jQuery.fn.tipbox.created.id = "tipBox";
	$("body").append(jQuery.fn.tipbox.created);
	
	var tipBox = $(jQuery.fn.tipbox.created);
	tipBox.css({"position":"absolute","display":"none"});

	function tipBoxShow(e)
	{
		tipBox.css({"display":"block", "top":e.pageY+16, "left":e.pageX-200});
	}
	
	function tipBoxHide()
	{
		tipBox.css({"display":"none"});
	}
	
	this.each(function()
	{
		$(this).mouseover(function(e)
		{
			tipBoxShow(e);
			if(allowHtml)
				tipBox.html(content);
			else
				tipBox.text(content);
			tipBox.removeClass();
			if(className) tipBox.addClass(className);
		});
		
		$(this).mouseout(function()
		{
			tipBoxHide();
		});
	});	
};

jQuery.fn.tipbox.created = document.createElement("div");