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

20100402 for div
*/

this.vtip = function(){
	this.xOffset = -5; // x distance from mouse
	this.yOffset = 15; // y distance from mouse
	$(".vtip")
		.unbind()
		.hover(
			function(e){
				this.t = this.title;
				this.title = ''; 
				this.top  = ( e.pageY + yOffset );
				this.left = ( e.pageX + xOffset );
				//$('body').append( '<div id="vtip"><img id="vtipArrow" />' + this.t + '</div>' );
				$('body').append( '<div id="vtip">' + this.t + '</div>' );
				//$('div#vtip > #vtipArrow').attr("src", 'feature/gw2010/images/vtip_arrow.png');
				$('div#vtip').css("top", this.top+"px").css("left", this.left+"px").fadeIn("slow");
			},
			function(){
				this.title = this.t;
				$("div#vtip").fadeOut("slow").remove();
			}
		)
		.mousemove(
			function(e){
				this.top  = ( e.pageY + yOffset );
				this.left = ( e.pageX + xOffset );
				$("div#vtip").css("top", this.top+"px").css("left", this.left+"px");
			}
		);
};

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

