(function(a){a.fn.floatAd=function(b){function f(){var c=0,d=0,e=!0,f=!0,g=1,i=a("#float_ad");i.find("img.float_ad_img").load(function(){var h=function(){var b=T=0,h=i.width(),j=i.height(),k=a(document).width(),l=a(document).height();c+=g*(e?1:-1),b>c&&(e=!0,c=b),c>k-h-1&&(e=!1,c=k-h-1),d+=g*(f?1:-1),d>l-j-1&&(f=!1,d=l-j-1),T>d&&(f=!0,d=T);var m=c,n=d;i.css({top:n,left:m})},j=setInterval(h,b.speed);a("#float_ad").mouseover(function(){clearInterval(j)}),a("#float_ad").mouseout(function(){j=setInterval(h,b.speed)})})}var c={imgSrc:"",url:"",width:"200",height:"160",openStyle:1,speed:10},b=a.extend(c,b),d=1==b.openStyle?"target='_blank'":"",e="
";e+=" ",e+="
",a("body").append(e),f()}})(jQuery);