/**
Vertigo Tip by www.vertigo-project.com
Requires jQuery
*/
(function($) {
		  
this.vtip = function(selector) {    
    this.xOffset = -10; // x distance from mouse
    this.yOffset = 25; // y distance from mouse       
    
    $(""+selector).unbind().hover(    
        function(e) {
            //this.t = this.title;
           // this.title = ''; 
		   this.t = $(this).find('div').html();
		   $(this).find('div').html("");
		   
            //$('body').append( '<p id="vtip"><img id="vtipArrow" />' + this.t + '</p>' );
			//$('p#vtip #vtipArrow').attr("src", 'images/vtip_arrow.png');
            $('body').append( '<p id="vtip">' + this.t + '</p>' );
			
            this.top = (e.pageY + yOffset); this.left = (e.pageX + xOffset);
            $('p#vtip').css("top", this.top+"px").css("left", this.left+"px").fadeIn("slow");
        },
        function() {
            //this.title = this.t;
            $(this).find('div').html(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);
