/*!
* jsF.copy
* Copyright 2011, yellow race<f.v.yuelin@gmail.com>
* http://yellowrace.com/
*
* Date: Sat, 30 Jul 2011 03:09:23 GMT
*/
jsF.register("jsF.tooltip",function(e,b,d,a){var f=e(d),c=null;this.tooltip=function(m,j,i,h){var g=m||15,l=j||10,k=function(q){var n=i?m:q.pageX+g,r=h?j:q.pageY+l,o=c.outerWidth(true),p=c.outerHeight(true);if(!i&&n+o>f.scrollLeft()+f.width()){n=q.pageX-o}if(!h&&f.height()+f.scrollTop()<r+p){r=q.pageY-p}return{left:n,top:r}};return this.each(function(){var o=e(this),n=false,p=o.attr("title");if(p!=undefined&&p.length>0){o.hover(function(q){o.attr("title","");if(!c){c=e('<div class="tooltip" style="position:absolute;z-index:100;"></div>');e(a.body).append(c)}c.html(p).width(e.browser.ie?c.outerWidth(true):c.width()).css(k(q)).show();n=true},function(){n=false;c.html("").width("auto").hide();o.attr("title",p)});o.mousemove(function(q){if(n){c.css(k(q))}})}})}});

