var Ex=function(b){for(var a in b){this[a]=b[a]}return this};var UI=function(a){return document.getElementById(a)};var UIs=function(a){return Ex.call([],this.getElementsByTagName(a))};var Each=function(b,d){for(var c=0;c<b.length;c++){d.call(b[c],c,b)}};var dhooo=function(a){this.bind(a,this);this.autoIndex=0};Ex.call(dhooo.prototype,{bind:function(a,c){var b=a.dir=="top"?"scrollTop":"scrollLeft",d=UI(a.contentID);var e=function(f){Each(a.btns,function(){this.className=""});f.className=a.className;c.autoIndex=f.index;c.begin(f.index,d,a.len,b)};Each(a.btns,function(f){this.index=f;this.onclick=function(){c.stop=true;e(this)};d.onmouseout=this.onmouseout=function(){c.stop=false}})},begin:function(c,d,a,b){(function(e){clearInterval(e.only);e.only=setInterval(function(){var f=(c*a-d[b])*0.1;d[b]+=Math[f>0?"ceil":"floor"](f);if(f==0){clearInterval(e.only)}},10)})(this)}});new dhooo({btns:UIs.call(UI("myTab_btns1"),"LI"),className:"hot",contentID:"main1",len:755});
