
this.vtip = function() {
    this.xOffset = 10; // x distance from mouse
    this.yOffset = -75; // 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("fast");

        },
        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.vtip2 = function() {
	this.xOffset = 10; // x distance from mouse
	this.yOffset = -75; // y distance from mouse

    $(".vtip2").unbind().hover(
        function(e) {
            this.t = this.title;
            this.title = '';
            this.top = (e.pageY + yOffset); this.left = (e.pageX + xOffset);

            $('body').append( '<p id="vtip2">' + this.t + '</p>' );


            $('p#vtip2').css("top", this.top+"px").css("left", this.left+"px").fadeIn("fast");

        },
        function() {
            this.title = this.t;
            $("p#vtip2").fadeOut("slow").remove();
        }
    ).mousemove(
        function(e) {
            this.top = (e.pageY + yOffset);
            this.left = (e.pageX + xOffset);

            $("p#vtip2").css("top", this.top+"px").css("left", this.left+"px");
        }
    );

};

jQuery(document).ready(function($){vtip();})
jQuery(document).ready(function($){vtip2();})

