var accordion=function(){ var tm=sp=10; function slider(n){this.nm=n; this.arr=[]} slider.prototype.init=function(t,c,k){ var a,h,s,l,i; a=document.getElementById(t); this.sl=k?k:''; h=a.getElementsByTagName('dt'); s=a.getElementsByTagName('dd'); this.l=h.length; for(i=0;i=m){clearInterval(c.tm)}else if(f!=1&&h==1){c.style.display='none'; clearInterval(c.tm)} } return{slider:slider} }(); var slideMenu=function(){ var sp,st,t,m,sa,l,w,gw,ot; return{ build:function(sm,smt,sw,mt,s,sl,h){ sp=s; st=sw; t=mt; m=document.getElementById(sm); sa=m.getElementsByTagName('li'); wi=document.getElementById(smt).offsetWidth; l=sa.length; w=wi-20; gw=w/l; ot=Math.floor((w-st)/(l-1)); var i=0; for(i;igw && c)){ var owt=0; var i=0; for(i;i0)?oi:1; o.style.width=(ow+oi)+'px'; }else if(ow>ot && !c){oi=Math.floor((ow-ot)/sp); oi=(oi>0)?oi:1; o.style.width=(ow-oi)+'px'} if(c){owt=owt+(ow+oi)}else{owt=owt+(ow-oi)}}} s.style.width=(w-owt)+'px'; }else{clearInterval(m.timer);clearInterval(m.htimer)} } }; }(); var slideFooter=function(){ var sp,st,t,m,sa,l,w,gw,ot; return{ build:function(sm,smt,sw,mt,s,sl,h){ sp=s; st=sw; t=mt; m=document.getElementById(sm); sa=m.getElementsByTagName('li'); wi=document.getElementById(smt).offsetWidth; l=sa.length; w=wi-20; gw=w/l; ot=Math.floor((w-st)/(l-1)); var i=0; for(i;igw && c)){ var owt=0; var i=0; for(i;i0)?oi:1; o.style.width=(ow+oi)+'px'; }else if(ow>ot && !c){oi=Math.floor((ow-ot)/sp); oi=(oi>0)?oi:1; o.style.width=(ow-oi)+'px'} if(c){owt=owt+(ow+oi)}else{owt=owt+(ow-oi)}}} s.style.width=(w-owt)+'px'; }else{clearInterval(m.timer);clearInterval(m.htimer)} } }; }();