//Author URL: www.Owainlewis.com
jQuery.fn.quicktip = function(options){

	var defaults = {
		xOffset: 10,
		yOffset: 10,
		splitOn: ''
	};

	var options = $.extend(defaults, options);

	return this.each(function(){

		var $this = jQuery(this)
		if ($this.attr('title') != ''){
			var tipTitle = ($this.attr('title'));
		}else{
			var tipTitle = 'Quick tip';
		}
		$this.removeAttr('title');

		$(this).hover(function(e){
			$(this).css('cursor', 'pointer')
            $("body").append("<div id='tooltip'>" + tipTitle + "</div>");

            $("#tooltip")
			.css("top", (e.pageY + defaults.xOffset) + "px")
			.css("left", (e.pageX + defaults.yOffset) + "px")
			.show();

			}, function() {
				$("#tooltip").remove();
			});

		$(this).mousemove(function(e) {
			$("#tooltip")
			.css("top", (e.pageY + defaults.xOffset) + "px")
			.css("left", (e.pageX + defaults.yOffset) + "px");
		});

	});

};



