	window.addEvents({
		'load': function(){
			var sMoo = new SlideItMoo({
				overallContainer: 'SlideItMoo_info_outer',
				elementScrolled: 'SlideItMoo_info_inner',
				thumbsContainer: 'SlideItMoo_info_items',		
				itemsSelector: '.info_item',
				itemsVisible:9,				
				itemWidth:108,
				showControls:1,
				autoSlide: 5000,
				transition: Fx.Transitions.Back.easeIn,
				duration: 800,
				direction:1,
				onChange: function( index ){
					var prev = index-1 < 0 ? sMoo.elements.length-1 : index-1;
					var next = index+1 >= sMoo.elements.length ? 0 : index+1;
					$('prev_title').set({'html': 'Previous: '+sMoo.elements[prev].getElement('h1').get('text')}).morph({'opacity':[0,1]});
					$('next_title').set({'html':'Next: '+sMoo.elements[next].getElement('h1').get('text')}).morph({'opacity':[0,1]});					
				}
			});	
			$('prev_title').set('morph', {wait:false, duration:1000}).addEvent('click', function(){
				sMoo.bkwd.fireEvent('click');
			});
			$('next_title').set('morph', {wait:false, duration:1000}).addEvent('click', function(){
				sMoo.fwd.fireEvent('click');
			});
			$('pause_play').addEvent('click', function(event){
				new Event(event).stop();
				if( sMoo.isRunning ){
					this.addClass('paused').set('title', 'Playing. Click to pause.');
					sMoo.stopAutoSlide();
				}else{
					this.removeClass('paused').set('title', 'Paused. Click to start.');;
					sMoo.startAutoSlide();
				}	
			})
		}
	});

