window.addEvent('domready',function(){
	var slide = new noobSlide({
		box: $('box'),
		mode: 'horizontal',			
		items: $$('#box div.item'),
		size: 960,
		fxOptions: {
			duration: 800,
			transition: Fx.Transitions.Cubic.easeOut,
			wait: false
		},
		interval: 7000,						
		handles: $$('#navi span'),
		autoPlay: true,
		onWalk: function(currentItem,currentHandle){
			//style for handles
			$$(this.handles).removeClass('active');
			$$(currentHandle).addClass('active');
		}
	});
	
});
