this.vtip = function() {    
	$("[title]").unbind().hover(    
		function(e) {
			this.t = this.title;
			this.title = ''; 
			this.top = (e.pageY + 10); this.left = (e.pageX -10);
			$('body').append( '<p id="vtip">' + this.t + '</p>' );
			$('p#vtip').css("top", this.top+"px").css("left", this.left+"px").fadeIn("slow");
		},
		function() {
			this.title = this.t;
			$("p#vtip").fadeOut("slow").remove();
		}
	).mousemove(
		function(e) {
			this.top = (e.pageY + 10);
			this.left = (e.pageX + 10);
			
			if($(this).offset().left + $('p#vtip').outerWidth()>$(window).width()) {
				this.left = $(window).width()-$('p#vtip').outerWidth()-10;
			}
			if($(this).offset().top + $('p#vtip').outerHeight()>$(window).height()) {
				this.top = $(window).height()-$('p#vtip').outerHeight()-10;
			}
			$("p#vtip").css("top", this.top+"px").css("left", this.left+"px");
		}
	);            
    
};

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