(function(){function j(){if(!MI.Uin()||!MI.user||!MI.user.account)return!1;var a=$$(f,".recommend_channel_qq")[0];UI.A(a,"data-loading",1);MI.ajax({url:"http://api.t.qq.com/list/listBannerTask.json",data:{activeId:1,taskId:11,t:1,r:MI.random()},type:"get",success:function(b){b=MI.json(b);if(0===b.result){var c=0,d=b.info.taskInfos["11"].schedule,e=b.info.taskInfos["11"].target,g="",c=(d/e).toFixed(2);d===e?0===b.info.taskInfos["11"].gotAward?(g='',a.onclick=function(){var a=$$(f,".ljbtn")[0];if(a&&a.onclick)a.onclick()}):1===b.info.taskInfos["11"].gotAward&&(g='',a.onclick=function(){}):(UI.A(a,"data-bind")||(UI.A(a,"data-bind",1),a.onclick=function(){UI.A(a,"data-loading")||(j(),UI.A(a,"data-tip")||(UI.A(a,"data-tip",1),MI.alert("任务还未完成,请在本页面内转播评论QQ好友的3条微博吧",function(){UI.A(a,"data-tip","")})))}),g='');$$(f,".progress span")[0].innerHTML=d+"/"+e;$$(f,".inner")[0].style.width=100*c+"%";$$(f,".taskbtn")[0].innerHTML=g;UI.each($$(f,".ljbtn"),function(a){if(!UI.hasClass(a,"dis"))a.onclick=function(){UI.E(UI.getEvent()).stop();MI.Bos("memberLotteryClick");MI.LotteryComponent({lotteryName:"huiyuanLottery",configxml:"//mat1.gtimg.com/www/mb/swf/xml/lottery_data_v6.xml",getResult:function(){MI.ajax({url:"http://api.t.qq.com/list/listBannerTask.json",data:{activeId:1,taskId:11,t:2,r:MI.random()},type:"get",success:function(a){a=MI.json(a);if(a.result==0){var b=MI.LotteryComponent.loadSwf;if(a.info.result==30){b.hide();MI.alert(_("对不起,您没有抽奖的资格"))}else if(a.info.result==31){b.hide();MI.alert(_("对不起,抽奖失败,可刷新页面重试"))}else{b.lotteryId=a.info.awardId||0;a={result:0,info:{awardId:b.lotteryId,expVal:1,awardFlag:0}};thisMovie(b.lotteryName).fjRetLotteryRes(a)}$$(f,".ljbtn")[0].onclick=null;UI.addClass($$(f,".ljbtn",".ljbtn")[0],"yljbtn");UI.addClass($$(f,".ljbtn",".ljbtn")[0],"dis");UI.removeClass($$(f,".ljbtn")[0],"ljbtn")}}})}})}})}UI.A(a,"data-loading","")}})}var h=MI.Uin(),h=parseInt((h+"").slice(-1)),f=$("qqFriendsBanner"),i="",d={},l=$$(".relation")[0];if(l){if(5\t\t\t0/3\t\t',f.innerHTML=i,j(),setTimeout(function(){MI.talkList&&(MI.talkList.relayCall=MI.talkList.commentCall=j)},1E3)):(i='\t\t\t<%=nick%>:\t<%=content%>转播(<%=rt%>) 评论(<%=comment%>) \t\t这里还有更多精彩的微博:<%=categoryMapStr%>\t',MI.ajax({url:"http://api.t.qq.com/c/selectedBanner.php",data:{},type:"get",success:function(a){a=MI.json(a);if(0==a.result){var b='广场',c=a.info.categoryMap,k;for(k in c)b+=''+c[k]+" ";d.cid=a.info.channel;d.mid=a.info.msgInfo.message.id;d.content=a.info.msgInfo.message.contentFormated;d.imageurl=a.info.msgInfo.message.image[0]||"";d.comment=a.info.msgInfo.message.count.comment||0;d.rt=a.info.msgInfo.message.count.rt||0;d.name=a.info.msgInfo.user.name;d.nick=a.info.msgInfo.user.nick;d.categoryMapStr=b;d.bos="MI.Bos('qqFriendsBannerLink');";f.innerHTML=(new UI.tmplString(i))(d);a=$$(f,".tx_r a");UI.EA(a[0],"click",function(a){a=UI.E(a);MI.relay(d.mid,"");MI.Bos("qqFriendsBannerRelay");a.prevent()});UI.EA(a[1],"click",function(a){a=UI.E(a);MI.comment(d.mid,"");MI.Bos("qqFriendsBannerComment");a.prevent()});var e=$$(f,".recommend_channel_rec a");MI.sidePanelChannelProfile(e,function(){UI.fireEvent(e[0],"click")})}}}));MI.LoadSwf=function(){var a=this;a._body=UI.html(''+(UI.B.ie6?'':"")+'')[0];a._bg=a.$(".bg");a._cover=a.$(".cover_select");a._cont=a.$(".CR");a.resizeBg=function(){if(a.display){if(UI.B.ie)a._bg.style.cssText=a._bg.style.cssText+";width:100%;";setTimeout(function(){var b=UI.pageHeight(),c=UI.windowHeight();a._bg.style.cssText=a._bg.style.cssText+(";margin-left:0;width:"+UI.pageWidth()+"px;height:"+(b ';MI.LotteryComponent.loadSwf=a.loadSwf||new MI.LoadSwf;MI.LotteryComponent.loadSwf.lotteryName=this.lotteryName;e=MI.LotteryComponent.loadSwf;e.show({html:c,width:610})}window._getLotteryResult=a.getResult||function(){var a={result:0,info:{awardId:e.lotteryId,expVal:1,awardFlag:0}};thisMovie(e.lotteryName).fjRetLotteryRes(a)};window.jfTweet=function(){e.hide();e.lotteryId!==0&&MI.alert("奖品将在7天之内通过系统通知发送给您,谢谢~")};window.jfClose=function(){b=e._body.style.left;e._body.style.left="-9999px"};window.jfRequestError=function(a){a==null&&(a="千年不遇的系统抽风被你遇到了,啥也没抽到,明天再来吧,囧~");MI.alert(a);e.hide()};window.jfLotteryError=function(a){a==1?MI.alert(_("您今天已经抽过奖,请明天再来")):a==2&&MI.alert(_("您还没有满足抽奖条件,请继续努力"));e.hide()}}})();