var tab;function G(a){return document.getElementById(a)}var isIE=navigator.userAgent.indexOf("MSIE")>-1?true:false;(function(){tab={init:function(d){var a=G(d);var c=a.getElementsByTagName("div"),e=c.length;var b=a.getElementsByTagName("li"),f=b.length;tab.domD={tabO:a,ds:c,dl:e,ls:b,ll:f}},now:0,t:0,run:function(){var b=tab.domD;for(var a=0;a<b.ll;a++){b.ls[a].onclick=function(){for(var c=0;c<b.dl;c++){b.ds[c].id="div"+c;b.ds[c].style.display="none";b.ls[c].className=""}this.className="now";tab.now=this.id.slice(-1);b.ds[this.id.slice(-1)].style.display=""};b.tabO.onmouseover=function(){clearTimeout(tab.t);clearTimeout(tab.tr)};b.tabO.onmouseout=function(){tab.tr=setTimeout(tab.reAuto,500)}}},reAuto:function(){clearTimeout(tab.tr);tab.tr=setTimeout(tab.autoPlay,10)},autoPlay:function(){clearTimeout(tab.t);if(tab.now>=3){tab.now=0}tab.play();tab.t=setTimeout(tab.autoPlay,2000)},play:function(){var b=tab.domD;for(var a=0;a<b.dl;a++){b.ds[a].style.display="none";b.ls[a].className=""}b.ls[tab.now].className="now";b.ds[tab.now].style.display="";tab.now++}}})();tab.init("tab");tab.autoPlay();tab.run();