/*
Originaly by:
Vertigo Tip by www.vertigo-project.com
Requires jQuery


Changes: Pepa Cala (pepa.cala@gmail.com,cala@m-atelier.cz}
*/

this.vtip = function() {
    this.xOffset = -10; // x distance from mouse
    this.yOffset = -15; // y distance from mouse

    $("img.help").unbind().hover(
        function(e) {
            this.t = this.title;
            this.title = '';

            $('body').append( '<div id="tooltip"><div id="tooltip-top"><div id="tooltip-bottom"><div id="tooltip-in">' + this.t + '</div></div></div></div>' );
            this.top = (e.pageY + yOffset - $('#tooltip').height()); this.left = (e.pageX + xOffset);
            //no bottom, UP

            $('#tooltip').css("top", this.top+"px").css("left", this.left+"px").fadeIn("fast")
            if ( $.browser.msie && /6.0/.test(navigator.userAgent) ) {
              $(".page-body select").css("visibility","hidden");
						}

        },
        function() {
            this.title = this.t;
            $("#tooltip").fadeOut("fast").remove();
            if ( $.browser.msie && /6.0/.test(navigator.userAgent) ) {
              $(".page-body select").css("visibility","visible");
						}
        }
    );

};

jQuery(document).ready(function($){vtip();})
