/**
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       
    
    $(".featured-outer-home").unbind().hover(    
        function(e) {
            //var offset = $(this).offset();
            //alert('l: '+offset.left+' '+'t: '+offset.top);
            var position = $(this).offset();
            //alert('aaaa');
            this.t = $(this).children('div.tooltip_text').html();
            //this.title = ''; 
            //this.top = (e.pageY + yOffset); this.left = (e.pageX + xOffset);
            this.top = (position.top-210); this.left = (position.left-80);
            
            $('body').append( '<div id="vtip">' + this.t + '</div>' );
            $('div#vtip').css("top", this.top+"px")
                         .css("left", this.left+"px")                         
                         .fadeIn("slow");
            
        },
        function() {
            //this.title = this.t;
            $("div#vtip").fadeOut("slow").remove();
        }
    );            
    
};

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