// Show rich tooltips on Talk threads.
jQuery(document).ready(function() {
	jQuery("#posts .post .bar .nickname span.nick").each(function(i) {
		var name = "tooltip";
		var my_tooltip;
		var title = jQuery(this).attr("title");
		jQuery(this).removeAttr("title").mouseover(function() {
			jQuery("body").append("<div class='"+name+"' id='"+name+i+"'><p>"+title+"</p></div>");
			my_tooltip = jQuery("body #"+name+i);
			my_tooltip.css({opacity: 1, display: "none"});
			my_tooltip.show();
		}).mousemove(function(kmouse){
			if (my_tooltip != null) {
				my_tooltip.css({left:kmouse.pageX+5, top:kmouse.pageY+5});
			}
		}).mouseout(function(){
			if (my_tooltip != null) {
				my_tooltip.fadeOut(500);
			}
		});
	});
});
