(function($j){$j.fn.simpletooltip=function(){return this.each(function(){var text=$j(this).attr("title");$j(this).attr("title","");if(text!=undefined){$j(this).hover(function(e){var tipX=e.pageX+12;var tipY=e.pageY+12;$j(this).attr("title","");$j("body").append("<div id='simpleTooltip' style='position: absolute; z-index: 100; display: none;'>"+text+"</div>");if($j.browser.msie)var tipWidth=$j("#simpleTooltip").outerWidth(true)
else var tipWidth=$j("#simpleTooltip").width()
$j("#simpleTooltip").width(tipWidth);$j("#simpleTooltip").css("left",tipX).css("top",tipY).fadeIn("medium");},function(){$j("#simpleTooltip").remove();$j(this).attr("title",text);});$j(this).mousemove(function(e){var tipX=e.pageX+12;var tipY=e.pageY+12;var tipWidth=$j("#simpleTooltip").outerWidth(true);var tipHeight=$j("#simpleTooltip").outerHeight(true);if(tipX+tipWidth>$j(window).scrollLeft()+$j(window).width())tipX=e.pageX-tipWidth;if($j(window).height()+$j(window).scrollTop()<tipY+tipHeight)tipY=e.pageY-tipHeight;$j("#simpleTooltip").css("left",tipX).css("top",tipY).fadeIn("medium");});}});}})(jQuery);(function($j){$j.fn.simpletooltip_yellow=function(){return this.each(function(){var text=$j(this).attr("title");$j(this).attr("title","");if(text!=undefined){$j(this).hover(function(e){var tipX=e.pageX+12;var tipY=e.pageY+12;$j(this).attr("title","");$j("body").append("<div id='simpleTooltip_yellow' style='position: absolute; z-index: 100; display: none;'>"+text+"</div>");if($j.browser.msie)var tipWidth=$j("#simpleTooltip_yellow").outerWidth(true)
else var tipWidth=$j("#simpleTooltip_yellow").width()
$j("#simpleTooltip_yellow").width(tipWidth);$j("#simpleTooltip_yellow").css("left",tipX).css("top",tipY).fadeIn("medium");},function(){$j("#simpleTooltip_yellow").remove();$j(this).attr("title",text);});$j(this).mousemove(function(e){var tipX=e.pageX+12;var tipY=e.pageY+12;var tipWidth=$j("#simpleTooltip_yellow").outerWidth(true);var tipHeight=$j("#simpleTooltip_yellow").outerHeight(true);if(tipX+tipWidth>$j(window).scrollLeft()+$j(window).width())tipX=e.pageX-tipWidth;if($j(window).height()+$j(window).scrollTop()<tipY+tipHeight)tipY=e.pageY-tipHeight;$j("#simpleTooltip_yellow").css("left",tipX).css("top",tipY).fadeIn("medium");});}});}})(jQuery);
