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

this.vtip = function() {    
    this.xOffset = -10; // x distance from mouse
    this.yOffset = 10; // 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( '<p id="vtip">' + this.t + '</p>' );

            $('p#vtip').css("top", this.top+"px").css("left", this.left+"px").fadeIn("slow");
            
        },
        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");
        }
    );  
};

this.dvtip = function() {    
    this.xOffsetd = -80; // x distance from mouse
    this.yOffsetd = -65; // y distance from mouse   
    $(".dvtip").unbind().hover(
        function(z) {
            this.t = this.title;
            this.title = ''; 
            this.top = (z.pageY + yOffsetd); this.left = (z.pageX + xOffsetd);
            
            $('body').append( '<p id="dvtip">' + this.t + '</p>' );

            $('p#dvtip').css("top", this.top+"px").css("left", this.left+"px").fadeIn("slow");
            
        },
        function() {
            this.title = this.t;
            $("p#dvtip").fadeOut("slow").remove();
        }
    ).mousemove(
        function(z) {
            this.top = (z.pageY + yOffsetd);
            this.left = (z.pageX + xOffsetd);
                         
            $("p#dvtip").css("top", this.top+"px").css("left", this.left+"px");
        }
    );
};
	
jQuery(document).ready(
function($){
vtip();
dvtip();
}
) 
