window.addEvent('domready', function() { if($$('#box_anims div[class=box_anim_container]')!="") { var nS = new noobSlide({ box: $('box_anims'), items: $$('#box_anims div[class=box_anim_container]'), size: 555, mode: 'horizontal', modes: {horizontal:['left','width']}, interval:5000, autoPlay: true, fxOptions: { duration: 4000, transition: Fx.Transitions.Quint.easeInOut }, onWalk: function(currentItem,currentHandle){ }, addButtons: { previous: $('anim_prev'), next: $('anim_next') } }); $$('.buttons').each(function(el,i){ el.addEvent(nS.button_event,nS.stop.bind(nS)); },nS); } });