var myfocus={ $:function(id){return document.getelementbyid(id);}, $$:function(tag,obj){return (typeof obj=='object'?obj:this.$(obj)).getelementsbytagname(tag);}, $li:function(obj,n){return this.$$('li',this.$$('ul',obj)[n])}, linear:function(t,b,c,d){return c*t/d + b;}, easein:function(t,b,c,d){return c*(t/=d)*t*t*t + b;}, easeout:function(t,b,c,d){return -c*((t=t/d-1)*t*t*t - 1) + b;}, easeinout:function(t,b,c,d){return ((t/=d/2) < 1)?(c/2*t*t*t*t + b):(-c/2*((t-=2)*t*t*t - 2) + b);}, style:function(obj,style){return (+[1,])?window.getcomputedstyle(obj,null)[style]:obj.currentstyle[style];},//getstyle简化版 opa:function(obj,v){//取得或设置对象透明度,默认100 if(v!=undefined) {v=v>100?100:(v<0?0:v); obj.style.filter = "alpha(opacity=" + v + ")"; obj.style.opacity = (v / 100);} else return (!+[1,])?((obj.filters.alpha)?obj.filters.alpha.opacity:100):((obj.style.opacity)?obj.style.opacity*100:100); }, animate:function(obj,prop,val,spd,type,fn){ var opa=prop=='opacity'?true:false; if(opa&&obj.style.display=='none'){obj.style.display='';this.opa(obj,0);} var t=0,b=opa?this.opa(obj):parseint(this.style(obj,prop)),c=val-b,d=spd||50,st=type||'easeout',m=c>0?'ceil':'floor'; if(obj[prop+'timer']) clearinterval(obj[prop+'timer']); obj[prop+'timer']=setinterval(function(){ if(opa&&t'); for(var i=0;i'+(cla[j]=='num'?(''+(i+1)+''):(cla[j]=='txt'?this.$li(obj,0)[i].innerhtml.replace(/\>(.|\n|\r)*?(\<\/a\>)/i,'>'+(this.$$('img',obj)[i]?this.$$('img',obj)[i].alt:'')+''):(cla[j]=='thumb'?'':'')))+'')}; s.push(''); }; obj.innerhtml+=s.join(''); }, switchmf:function(fn1,fn2,auto){ return "box.removechild(this.$$('div',box)[0]);var run=function(idx){("+fn1+")();if (index == n - 1) index = -1;var next = idx != undefined ? idx: index + 1;("+fn2+")();index=next;};run(index);if("+auto+"!==false) var auto=setinterval(function(){run()},t);box.onmouseover=function(){if(auto) clearinterval(auto);};box.onmouseout=function(){if(auto) auto=setinterval(function(){run()},t);}" }, bind:function(arrstr,type,delay){ return "for (var j=0;j