/**
Vertigo Tip by www.vertigo-project.com
Requires jQuery
*/

this.vtip = function() {    
    this.xOffset = -20; // x distance from mouse
    this.yOffset = -50; // y distance from mouse       
    
	// TIPS FOR CULTURE MUGSHOTS
	
    $(".tip").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");
            // fades tip after 2 seconds if don't hover off
			setTimeout(function(){
				$("p#vtip").fadeOut("normal", function () {
				$("p#vtip").remove();
				 });
				}, 2000);
        },
        function() {
            this.title = this.t;
            $("p#vtip").fadeOut("normal").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");
        }
    );     
	
};

jQuery(document).ready(function($){vtip();}) 
