var pZ={},slide={};function $(i){return document.getElementById(i)}function $$(e,p){p=p||document;return p.getElementsByTagName(e)}pZ.slide=function(n){this.imgSpeed=10;this.speed=4;this.n=n;this.c=0;this.d=1;this.a=[]};pZ.slide.prototype={init:function(s,d){this.d=d;d=document.createElement('div');d.setAttribute('id','num');$(s).appendChild(d);if(this.d){d=document.createElement('p');$(s).appendChild(d)}s=$$('ul',$(s))[0];s.style.display='none';var m=$$('li',s),i=0;this.l=m.length;this.f=$('igx');this.r=$$('p',$(s))[0];this.o=parseInt(pZ.style.val('igx','width'));this.p=$('num');if(this.l==0){return}for(i;i<this.l;i++){this.a[i]={};var h=m[i],a=this.a[i];a.t=$$('a',h)[0].innerHTML;a.l=$$('a',h)[0]?$$('a',h)[0].href:'';a.p=$$('img',h)[0].src;var b=document.createElement('b');b.innerHTML=i+1;this.p.appendChild(b);b.onmouseover=new Function('this.className="hover"');b.onmouseout=new Function('this.className=this.className=="hover"?"":"here"');b.onclick=new Function(this.n+'.pr('+i+')')}this.is(0)},mv:function(){var t=this.c+1;this.c=t=t<0?this.l-1:t>this.l-1?0:t;this.pr(t)},pr:function(t){clearTimeout(this.at);this.c=t;this.is(t)},is:function(s){var b=$$('b',this.p),l=b.length,x=0;for(x;x<l;x++){b[x].className=x!=s?'':'here'}var i=new Image();i.style.opacity=0;i.style.filter='alpha(opacity=0)';this.i=i;i.onload=new Function(this.n+'.le('+s+')');i.src=this.a[s].p},le:function(s){var k=document.createElement('a');k.setAttribute('href',this.a[s].l);k.appendChild(this.i);this.f.appendChild(k);if(this.a[s].l==''){k.onclick=new Function('return false');this.f.style.cursor='default'}var w=this.o-parseInt(this.i.offsetWidth);if(w>0){var l=Math.floor(w/2);this.i.style.borderLeft=l+'px solid #ccc';this.i.style.borderRight=(w-l)+'px solid #ccc'}if(this.d){this.r.innerHTML=this.a[s].t}pZ.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].parentNode)}}};pZ.alpha=function(){return{set:function(e,a,s){e=typeof e=='object'?e:$(e);var o=e.style.opacity||pZ.style.val(e,'opacity'),d=a>o*100?1:-1;e.style.opacity=o;clearInterval(e.ai);e.ai=setInterval(function(){pZ.alpha.tw(e,a,d,s)},60)},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+')'}}}}();pZ.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)}}}();window.onload=function(){slide=new pZ.slide("slide");slide.init("slide",1)};
