var myFocus={ //Design By Koen @ 2010.7.x //http://hi.baidu.com/koen_li //koen_lee@qq.com $:function(id){return document.getElementById(id);}, $$:function(tag,obj){return (typeof obj=='object'?obj:this.$(obj)).getElementsByTagName(tag);}, 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;}, opa:function(obj,v){ if(v!=undefined) {v=v>100?100:(v<0?0:v); obj.style.filter = "alpha(opacity=" + v + ")"; obj.style.opacity = (v / 100);} else return (document.all)?((obj.filters.alpha)?obj.filters.alpha.opacity:100):((obj.style.opacity)?obj.style.opacity*100:100); }, move:function(obj,dir,val,type,spd,fn){ var t=0,b=parseInt(obj.style[dir])||0,c=val-b,d=spd||50,st=type||'linear',m=c>0?'ceil':'floor'; if(obj[dir+'timer']) clearInterval(obj[dir+'timer']); obj[dir+'timer']=setInterval(function(){ if(t=100||o<=0){clearInterval(obj.fadeTimer);fn&&fn.call(myFocus);} },10);return this; }, addList:function(obj,cla,arr){ var s=[],n=this.$$('li',this.$$('ul',obj)[0]).length,num=cla.length; for(var j=0;j'); for(var i=0;i'+(cla[j]=='num'?(i+1):(cla[j]=='txt'?this.$$('li',obj)[i].innerHTML.replace(//i,this.$$('img',obj)[i].alt):''))+'')}; s.push(''); }; obj.innerHTML+=s.join(''); }, setting:function(par){//设置DOM/文档加载就绪后执行的任务 if(window.attachEvent){window.attachEvent('onload',function(){myFocus[par.style](par)});}    else{window.addEventListener('load',function(){myFocus[par.style](par)},false);} }, mF_expo2010:function(par){ var box=this.$(par.id),t=par.time*3000; this.addList(box,['txt-bg','txt','num-bg','num']); var pic=this.$$('ul',box)[0],txt=this.$$('ul',box)[2],num=this.$$('ul',box)[4],img=this.$$('li',pic),tip=this.$$('li',txt); var H=tip[0].clientHeight+60; var n=img.length; var index=0; for(var i=0;i