function getTabTitle(a){a=a.childNodes;var b=[],c=0,d;for(d=0;d<a.length;d++)if(a[d].nodeName=="SPAN"){b[c]=a[d];c++}return b}function getTabClass(a){a=a.childNodes;var b;for(b=0;b<a.length;b++)if(a[b].id=="ClassShow")tabClass[tabClass.length]=a[b]}function getTabContent(a){a=a.childNodes;var b=[],c;for(c=0;c<a.length;c++)if(a[c].id=="ContentShow"){b[b.length]=a[c];getTabClass(a[c])}return b}var tabTitle=[],tabContent=[],tabClass=[]; function resetTab(a,b){try{tabTitle=getTabTitle(a);tabContent=getTabContent(b);$("ahrtype").innerHTML="\u5c55\u5f00";if(GetCookie("tabs")=="0"){$("ahrtype").innerHTML="\u7f29\u8fdb";DisplayText("0")}if(tabClass.length==0)$("spntype").style.display="none"}catch(c){alert(c.description)}} function changTab(a){if(a.className!="selectTab"){for(i=0;i<tabTitle.length;i++){tabTitle[i].className="unselectTab";tabContent[i].className="unselectContent"}a.className="selectTab";for(i=0;i<tabTitle.length;i++)if(tabTitle[i].className=="selectTab"){tabContent[i].className="selectContent";break}}}function ShowText(){var a=0;a=$("ahrtype");if(a.innerHTML=="\u7f29\u8fdb"){a.innerHTML="\u5c55\u5f00";a=1}else{a.innerHTML="\u7f29\u8fdb";a=0}SetCookie("tabs",a);DisplayText(a)} function DisplayText(a){$("diviclass").style.display=a==0?"":"none";for(i=0;i<tabTitle.length;i++){tabContent[i].className=a==0?"unselectContent":"selectContent";tabClass[i].className=a==0?"unselectContent":"selectContent"}tabContent[0].className="selectContent";typeof ShowToTop=="function"&&ShowToTop()};