_={opacity:{set:-[1,]?function(e,a){e.style.opacity=a/100}:function(e,a){e.filters.alpha?e.filters.alpha.opacity=a:e.style.filter='alpha(opacity='+a+')'},get:-[1,]?function(e){return window.getComputedStyle(e,null).opacity*100}:function(e){return e.filters.alpha?e.filters.alpha.opacity:100},fade:function(e,b,t,f){var o=this,a=o.get(e);if(a!=b&&t){var x=(b-a)*40/t,y=setInterval(function(){a+=x;if((x<0&&a>b)||(x>0&&a<b))o.set(e,a);else{o.set(e,b);clearInterval(y);if(f)f()}},40)}else if(f)f()}}};function slide(e,t,o){function go(){i++;if(i>=n)i=0;clearInterval(key1);var s=a[i].style,top=0,r=-0.8;s.display='block';s.top=top+'px';s.zIndex=10;_.opacity.fade(a[i],100,1000,function(){var j=i-1;if(j<0)j=n-1;a[j].style.display='none';s.zIndex=0;_.opacity.set(a[j],0)});var x=h-a[i].offsetHeight;if(x<0){key1=setInterval(function(){top+=r;s.top=top+'px';if(top<=x||top>=0)r*=-1},40)}}function newelem(e,p){e=document.createElement(e);p.appendChild(e);return e}e=document.getElementById(e);var a=e.childNodes,n=a.length,i=0,key1=0,h=e.offsetHeight,p=document.getElementById(o[2]);for(;i<n;i++){a[i].style.position='absolute';a[i].style.display='none';_.opacity.set(a[i],0);c=newelem('a',p);c.innerHTML=i+1;c.n=i-1;c.onclick=function(){clearInterval(key2);i=this.n;go();key2=setInterval(go,t)}}i=-1;go();key2=setInterval(go,t);document.getElementById(o[1]).onclick=function(){clearInterval(key2);go();key2=setInterval(go,t)};document.getElementById(o[0]).onclick=function(){clearInterval(key2);i-=2;if(i<0)i=n+i;go();key2=setInterval(go,t)}}
