(function(){ if(window.$addfeed&&window.$$addfeed){ return false; } var $={ byId:function(id){ return document.getElementById(id); }, byName:function(name){ return $.toArray(document.getElementsByName(name)); }, byTag:function(tag,obj){ obj=obj||document; return $.toArray(obj.getElementsByTagName(tag)); }, byClass:function(cls,obj){ obj=obj||document; var re=new RegExp("(^|\\s+)"+$.addSlashRegExp(cls)+"(\\s+|$)"); var ret=[],arr=obj.getElementsByTagName('*'); for(var i=0;i=e.left+g.width||f.right-(e.left+g.width)>=(e.right-g.width)-f.left){ h=0; }else{ h=e.width-g.width; }if(f.bottom>=e.bottom+g.height||f.bottom-(e.bottom+g.height)>=(e.top-g.height)-f.top){ top=e.height; }else{ top=0-g.height; } a.style.left=h+"px"; a.style.top=top+"px"; e=null; f=null; g=null; h=null; top=null; }, showThisItem:function(a){ var b=$.byClass("feed_bluesky_cn"); for(var c=0;c=0)){ i+=''; } } i+='
'; i+='
Powered by:bluesky
'; i+=''; h.innerHTML=i; b.addbox=h; $.addClass(h,"addbox"); $.after(b,h); o.showposition(h,$.byClass("addshow",h)[0],$.byClass("bgfrm",h)[0],b); var k=$.byClass("flist",h)[0]; var m=$.byTag("a",k); $.bind(m,"click",function(a){ if(Number($.attr(this,"item"))==0){ open(b.u,'addfeed'); }else{ o.gotourl('?id='+$.attr(this,"item")+b.argStr)}$.cancelEvent(a||event); b.addbox.style.display="none"; return false; } ); $.bind(b.addthis,"mouseover",function(a){ if(b.e=="click"){ clearTimeout(b.timeOut); }else if(b.e=="mouseover"){ b.boxmouseover(a); clearTimeout(b.timeOut); } }); $.bind(b.addthis,"mouseout",function(a){ if($.isMouseLeaveOrEnter(a||event,b.addthis)){ b.timeOut=setTimeout(b.boxmouseout,o.timeDelayout); } }); c=btn_t=btn_u=btn_d=f=h=i=k=m=null; }; n.boxmouseover=function(a){ o.showposition(n.addbox,$.byClass("addshow",n.addbox)[0],$.byClass("bgfrm",n.addbox)[0],n); n.addbox.style.display="block"; }; n.boxmouseout=function(a){ n.addbox.style.display="none"; }; if($.attr(n,"e")=="click"){ $.bind(n,"click",function(a){ n.mouse_over(n,a); $.cancelEvent(a||event); }); }else{ $.bind(n,"click",function(a){ $.cancelEvent(a||event); }); $.bind(n,"mouseover",function(a){ n.mouse_over(n,a); }); } }, init:function(){ $.fixIeBgBug(); $.loadCssFile(o.css); $.ready(function(){ o.rebind(); }); }, rebind:function(){ var a=$.byClass("feed_bluesky_cn"); for(var i=0;i