/* jQuery Tooltip Plugin */
/* 
	Created by 	-	Andrew Rowe
	Created on 	- 	05/11/2008
	Last Edit	-	05/11/08
*/
$(document).ready(function(){
	$("acronym").append("<em></em>");
	
	$("acronym").hover(function(e) {
		/* Get mouse position on the screen*/
		var mouseX = e.pageX || (e.clientX ? e.clientX + document.body.scrollLeft : 0);
		var mouseY = e.pageY || (e.clientY ? e.clientY + document.body.scrollTop : 0);
		mouseX -= 103;
		mouseY -= 75;
		
		$(this).find("em").fadeIn(1).css({left: mouseX + "px", top: mouseY + 3 + "px"});
		var hoverText = $(this).attr("tooltip");
	    $(this).find("em").html(hoverText);
	}, function() {
		$(this).find("em").fadeOut(1);
	});
});