/**
Vertigo Tip by www.vertigo-project.com
Requires jQuery
*/

this.vtip = function() {    
    this.xOffset = -40; // x distance from mouse
    this.yOffset = 10; // y distance from mouse       
    
    $(".vtip").unbind().hover(    
        function(e) {
            //this.t = this.alt;
			this.p = this.title;
						
            this.alt 	= ''; 
			this.title 	= '';
			
            this.top = (e.pageY + yOffset); this.left = (e.pageX + xOffset); 
			
			corpo = "<div id='tootip'>"
    		corpo = corpo +"<div class='topoT'></div>"
    		corpo = corpo +"<div class='meioT'><strong>"+ this.p + "</strong></div>"
    		corpo = corpo +"<div class='rodapeT'></div>"
			corpo = corpo +"</div>"
			
            $('body').append(corpo); 
            $('#tootip').css("top", this.top+"px").css("left", this.left+"px").css("display","block")
        },
        function() {
            this.alt 	= this.t;
            this.title 	= this.p;	
            $("#tootip").css("display","none").remove();			
        }
    ).mousemove(
        function(e) {
            this.top = (e.pageY + yOffset);
            this.left = (e.pageX + xOffset);
                         
            $("#tootip").css("top", this.top+"px").css("left", this.left+"px")
        }
    );            
    
};

jQuery(document).ready(function($){vtip();}) 
