window.addEvent('domready',function(){new Slideshow();new Requests();});var Slideshow=new Class({Implements:Options,options:{duration:12000},initialize:function(options){this.setOptions(options);this.container=$('slideshow');this.slides=this.container.getElements('li');this.currentIndex=0;this.interval;this.slides.each(function(slide,i){if(i>0)slide.setStyle('left',-900);slide.set('tween',{duration:1500});});window.addEvent('load',function(){this.interval=this.show.periodical(this.options.duration,this);}.bind(this));},show:function(){this.slides[this.currentIndex].fade('out');this.slides[this.currentIndex=this.currentIndex<this.slides.length-1?this.currentIndex+1:0].setStyle('left',0).set('opacity',0).fade('in');}});var Requests=new Class({initialize:function(){$('requests').getElements('a').addEvent('mouseenter',function(){this.set('tween',{duration:300,transition:'sine:in:out'});this.tween('margin-top',-5);});$('requests').getElements('a').addEvent('mouseleave',function(){this.set('tween',{transition:'bounce:out'});this.tween('margin-top',0);});}});