var home = {
	
	start: function() {
		home.current = 3;
		//home.setupScroller();
	},
	
	setupScroller: function() {
		var scroll = new Fx.Scroll( 'scroller_box', {
			whileait: false,
			duration: 250,
			transition: Fx.Transitions.Quad.easeInOut
		});
		
		var up = $E( '.up' );
		up.addEvent( 'click', function() {
			if( ( home.current - 1 >= 3 ) ) {
				scroll.toElement( 'scroller_' + ( home.current - 3 ) );
				home.current--;
			}
			else {
				scroll.toElement( 'scroller_6' );
				home.current = 6;
			}
		});
		
		var down = $E( '.down' );
		down.addEvent( 'click', function() {
			if( ( home.current + 1 <= 6 ) ) {
				scroll.toElement( 'scroller_' + ( home.current - 1 ) );
				home.current++;
			}
			else {
				scroll.toElement( 'scroller_1' );
				home.current = 3;
			}
		});
		
	}
	
}

window.addEvent( 'domready', home.start );
