/**
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().click(  
    		
        function(e) {
            
            if(!$('p#vtip').length>0){
//            	this.t = this.title;
//                this.title = '';
            	this.t = $(this).attr('vtitle');
//            	$(this).attr('vtitle') = '';
                this.top = (e.pageY + yOffset); this.left = (e.pageX + xOffset);
            	$('body').append( '<p id="vtip"><img id="vtipArrow" />' + this.t + '</p>' );
                
                $('p#vtip #vtipArrow').attr("src", '../images/vtip_arrow.png');
                $('p#vtip').css("top", this.top+"px").css("left", this.left+"px").fadeIn("slow");
            }
            
        }
    );            
    $(".vtip").keypress(
    		function(){
//    			this.title = this.t;
    			$("p#vtip").fadeOut("slow").remove();
    		}
    );
    $(".vtip").blur(
    		function(){
//    			this.title = this.t;
    			$("p#vtip").fadeOut("slow").remove();
    		}
    );
};

jQuery(document).ready(function($){vtip();}) 


