var getbyclass = function(op, oc){ typeof op=='object'?op:byid(op); var arrs=op.getelementsbytagname('*');var i=0;var garrs=[]; for(i=0;i=this.obtnlis.length){ this.startmove(this.obtns,{top:-(this.obtnlis.length-4)*(parseint(getstyle(this.obtnlis[0],'height')))}); }else{ this.startmove(this.obtns,{top:-(inum-1)*(parseint(getstyle(this.obtnlis[0],'height')))}); } }, //settext:function(inum){ // //alert(this.otextlis.length); // for(var i=0;i0?math.ceil(ispeed):math.floor(ispeed); if(icur!=json[attr]) { bstop=false; } if(attr=='opacity') { obj.style.filter='alpha(opacity:'+(icur+ispeed)+')'; obj.style.opacity=(icur+ispeed)/100; } else { obj.style[attr]=icur+ispeed+'px'; } } if(bstop) { clearinterval(obj.timer); if(fn) { fn(); } } }, 30) } };