/**
Vertigo Tip by www.vertigo-project.com
Requires jQuery
*/

this.vtip = function() {

	this.xOffset = -15;
	this.yOffset = 30;
    
	$(".vtip").unbind().hover(

		function(e) {

			this.t=this.title;
			this.title='';

			this.top=(e.pageY + yOffset);
			this.left = (e.pageX + xOffset);

			var vtipTitle=this.t;

			vtipTitle=vtipTitle.replace(/:n:/gi, "<br/>");
			vtipTitle=vtipTitle.replace(/:st:/gi, "<strong>");
			vtipTitle=vtipTitle.replace(/:se:/gi, "</strong>");

			$('body').append('<p id="vtip"><img id="vtipArrow" />' + vtipTitle + '</p>');
			$('p#vtip #vtipArrow').attr("src", 'layout/vtip.png');
			$('p#vtip').css("top", this.top+"px").css("left", this.left+"px").fadeIn("slow");

			vtipTitle='';

		},
		function() {

			this.title = this.t;

			$("p#vtip").fadeOut("slow").remove();

		}

	).mousemove(

		function(e) {

			this.top = (e.pageY + yOffset);
			this.left = (e.pageX + xOffset);

			$("p#vtip").css("top", this.top+"px").css("left", this.left+"px");

		}

	);
};

jQuery(document).ready(function($){vtip();})
