var iss={};function $(i){return document.getElementById(i)}function $$(e,p){p=p||document;return p.getElementsByTagName(e)}iss.slideshow=function(n){this.imgSpeed=this.speed=10;this.n=n;this.c=0;this.a=[]};iss.slideshow.prototype={init:function(s,z){s=$(s);var m=$$('li',s),i=0;this.l=m.length;this.f=$(z);this.o=parseInt(iss.style.val(z,'width'));for(i;i<this.l;i++){this.a[i]={};a=this.a[i];a.p=m[i].innerHTML;}this.is(0)},mv:function(){var t=this.c+1;if(t<this.l){this.c=t;this.is(t)}},is:function(s){var i=new Image();i.style.opacity=0;i.style.filter='alpha(opacity=0)';i.style.position='absolute';this.i=i;i.onload=new Function(this.n+'.le('+s+')'); i.src=this.a[s].p},le:function(s){this.f.appendChild(this.i);iss.alpha.set(this.i,100,this.imgSpeed);this.at=setTimeout(new Function(this.n+'.mv()'),this.speed*1000);var m=$$('img',this.f);if(m.length>2){this.f.removeChild(m[0])}}};iss.alpha=function(){return{set:function(e,a,s){e=typeof e=='object'?e:$(e);var o=e.style.opacity||iss.style.val(e,'opacity'),d=a>o*100?1:-1;e.style.opacity=o;clearInterval(e.ai);e.ai=setInterval(function(){iss.alpha.tw(e,a,d,s)},20)},tw:function(e,a,d,s){var o=Math.round(e.style.opacity*100);if(o==a){clearInterval(e.ai)}else{var n=o+Math.ceil(Math.abs(a-o)/s)*d;e.style.opacity=n/100;e.style.filter='alpha(opacity='+n+')'}}}}();iss.style=function(){return{val:function(e,p){e=typeof e=='object'?e:$(e);return e.currentStyle?e.currentStyle[p]:document.defaultView.getComputedStyle(e,null).getPropertyValue(p)}}}();