/* tooltip functions */
function removethetooltip(obj) { obj.title = obj.t; $('#tooltip').hide(); }
function tooltip() { if($('#tooltip').length<=0) $('body').append('<p id="tooltip"></p>'); xOffset = -20; yOffset = 10; $('.tt').hover( function(e){ if(this.title != '') { this.t = this.title; this.title = ''; $('#tooltip').css('top',(e.pageY - xOffset) + 'px').css('left',(e.pageX + yOffset) + 'px'); $('#tooltip').html(this.t).show(); } $(this).click(function() { removethetooltip(this); }); }, function(){ removethetooltip(this); } ); $('.tt').mousemove(function(e){ if($('#tooltip').length>0) $('#tooltip').css('top',(e.pageY - xOffset) + 'px').css('left',(e.pageX + yOffset) + 'px'); }); }

