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

this.vtip = function() {    
    this.xOffset = 20; // x distance from mouse
    this.yOffset = -30; // y distance from mouse       
    
    var vtipEL;
    
    this.t = this.title;
    if (this.t == "") return this;
    
    
    $(".vtip").unbind().hover(    
        function(e) {
            this.t = this.title;
            this.title = ''; 
            this.top = (e.pageY + yOffset); this.left = (e.pageX + xOffset);
            
            //$('body').append( ); //<img id="vtipArrow" />
                        
            //$('p#vtip #vtipArrow').attr("src", 'images/vtip_arrow.png');
            vtipEL = $('<p id="vtip" class="shadow">' + this.t + '</p>').appendTo('body').css({ position: 'absolute', top: this.top+"px", left: this.left+"px" }).fadeIn(700);
            
        },
        function() {
            this.title = this.t;
            $(vtipEL).fadeOut(300).remove();
        }
    ).mousemove(
        function(e) {
            this.top = (e.pageY + yOffset);
            this.left = (e.pageX + xOffset);
                         
            $(vtipEL).css({ top: this.top+"px", left: this.left+"px" });
        }
    );            
    
};


