(function(c,a,d){function b(f,e){lib.eventTarget.call(this);this.defaultConfig={tag:"li",selectClass:"select"};this.option=Object.extend(this.defaultConfig,e);this.ele=typeof f=="string"?a.getElementById(f):f;this.tabs=[];this.tabsList={};this.curTab=null}b.inherits(lib.eventTarget);Object.extend(b.prototype,{init:function(){if(this.tabs.length==0){this.initTabNavs(this.ele)}var j=this;var g=this.tabs;var h=function(l,k){return function(i){lib.Event.preventDefault(c.event||i);if(j.curTab){j._cancelSelect()}j.fire({type:"beforeselect",target:l,index:k,eventObj:i});j.curTab=l;j._select();j.fire({type:"select",target:l,index:k,eventObj:i})}};for(var f=0,e=g.length;f<e;f++){$(g[f]).on("click",h(g[f],f))}},initTabNavs:function(m){tag=this.option.tag;var j=this.option.selectClass;var g=m.getElementsByTagName(tag);var l=[];for(var h=0,f=g.length;h<f;h++){var k=g[h],e=k.getAttribute("j-tab");if(k.className.indexOf(j)!=-1){this.curTab=k}if(e){l.push(k);this.tabsList[e]=k}}this.tabs=l},select:function(f){if(this.tabs.length==0){this.initTabNavs(this.ele)}var e=this.tabsList;var g=e[f]?e[f]:this.tabs[0];if(this.curTab){this._cancelSelect()}this.fire({type:"beforeselect",target:g});this.curTab=g;this._select();this.fire({type:"select",target:g})},_select:function(){this.curTab.className+=" "+this.option.selectClass},_cancelSelect:function(){this.curTab.className=this.curTab.className.replace(this.option.selectClass,"")}});c.lib=c.lib||{};lib.kit=lib.kit||{};lib.kit.Tab=b})(window,document);(function(c,a,d){function b(g,e,f){this.defaultConfig={tag:"div"};this.option=Object.extend(this.defaultConfig,f);this.wrapper=typeof g=="string"?a.getElementById(g):g;this.list=this._getNodeList();this.curTab=this.getCurTab(e);this.curTab.style.display=""}b.prototype._getNodeList=function(){if(!this.wrapper){return}var g=[];var f=this.wrapper.childNodes;for(var h=0,e=f.length;h<e;h++){if(f[h].nodeName==this.option.tag.toUpperCase()&&f[h].getAttribute("j-tab-cnt")){g.push(f[h]);f[h].style.display="none"}}return g};b.prototype.show=function(g){this.curTab.style.display="none";for(var f=0,e=this.list.length;f<e;f++){if(this.list[f].getAttribute("j-tab-cnt")==g){this.list[f].style.display="";this.curTab=this.list[f]}}};b.prototype.getCurTab=function(f){var g=this.wrapper.childNodes;for(var h=0,e=g.length;h<e;h++){if(g[h].nodeName==this.option.tag.toUpperCase()&&g[h].getAttribute("j-tab-cnt")==f){return g[h]}}};c.lib=c.lib||{};lib.kit=lib.kit||{};lib.kit.tabContent=b})(window,document);(function(b,a,d){$reg("lib.kit",function(){});function c(e){this._defaultOption={selectClass:"selected",tag:"h2",cntTag:"div"};this.option=Object.extend(this._defaultOption,e);this.tabWrapper=this.option.tabWrapper;this.cntWrapper=this.option.cntWrapper;this.defaultView=this.option.defaultView;this.tab=null;this._initTabAction();this._setContentAction()}c.prototype._initTabAction=function(){this.tab=new lib.kit.Tab(this.tabWrapper,{selectClass:this.option.selectClass,tag:this.option.tag});this.tab.init()};c.prototype._setContentAction=function(){var e=new lib.kit.tabContent(this.cntWrapper,this.defaultView,{tag:this.option.cntTag});this.tab.on("select",function(f){var g=f.target.getAttribute("j-tab");e.show(g)})};c.prototype.init=function(){this.tab.select(this.defaultView)};lib.kit.renderTabs=c})(window,document);(function(j,m,e){var a=new Url(m.location.href),h={all:[0,"all"],mv:[1,"dy"],tv:[2,"dsj"],rec:[3,"jlp"],zy:[6,"zy"],mu:[5,"yy"],dm:[4,"dm"],ly:[9,"ly"],yl:[7,"yl"]},g={t1:1,t2:1},f=a.getParam("k"),l=a.getParam("c")||j.location.href.replace(/^.*_(.*?)\.html.*$/i,"$1"),o=a.getParam("s"),d=null,b="";l=!!h[l]?l:"all";$("#"+l)[0].className="selected";f=!!g[f]?f:"t1";if("t1"==f){f="hot"}else{if("t2"==f){f="score"}else{}}switch(l){case"all":$("#j-top10-tabcnt")[0].style.display="";b="j-top10-tabcnt";break;case"mv":$("#j-mvtop50-tabcnt")[0].style.display="";b="j-mvtop50-tabcnt";break;case"tv":$("#j-tvtop50-tabcnt")[0].style.display="";b="j-tvtop50-tabcnt";break;case"dm":$("#j-dmtop50-tabcnt")[0].style.display="";b="j-dmtop50-tabcnt";break;case"rec":$("#j-rectop50-tabcnt")[0].style.display="";b="j-rectop50-tabcnt";break;case"zy":$("#j-zytop50-tabcnt")[0].style.display="";b="j-zytop50-tabcnt";break;case"mu":$("#j-mutop50-tabcnt")[0].style.display="";b="j-mutop50-tabcnt";break;case"ly":$("#j-lytop50-tabcnt")[0].style.display="";b="j-lytop50-tabcnt";break;case"yl":$("#j-yltop50-tabcnt")[0].style.display="";$("#t2")[0].style.display="none";var n="j-zhouqi-d";if(o){n="j-zhouqi-"+o}var i=new lib.kit.renderTabs({tabWrapper:"ylTab",cntWrapper:"ylTabCnt",defaultView:"j-zhouqi-d",selectClass:"selected",tag:"a"});i.tab.select(n);b="j-yltop50-tabcnt";break}d=new lib.kit.renderTabs({tabWrapper:"hotscorenav",cntWrapper:b,defaultView:"hot",selectClass:"selected",tag:"a"});d.tab.select(f)})(window,document);
