window.addEvent("domready", function() {
	//home page slide stuff
	var showcaseCarousel = new iCarousel("info_content", {
		transition: Fx.Transitions.Back.easeOut,
		idPrevious: "showcase_previous",
		idNext: "showcase_next",
		idToggle: "undefined",
		item: {
			klass: "info_content",
			size: 630
		},
		animation: {
			type: "scroll",
			duration: 1000,
			amount: 1
		}
	});
	
	var button0 = document.getElementById('button0');
	var button1 = document.getElementById('button1');
	var button2 = document.getElementById('button2');
	var button3 = document.getElementById('button3');
	
	$("button0").addEvent("click",
		function(event){
			new Event(event).stop();
			showcaseCarousel.goTo(0);
			button0.className='current';
			button1.className='';
			button2.className='';
			button3.className='';
		});
	$("button1").addEvent("click", 
		function(event){
			new Event(event).stop();
			showcaseCarousel.goTo(1);
			button0.className='';
			button1.className='current';
			button2.className='';
			button3.className='';
		});
	$("button2").addEvent("click", 
		function(event){
			new Event(event).stop();
			showcaseCarousel.goTo(2);
			button0.className='';
			button1.className='';
			button2.className='current';
			button3.className='';
		});
	$("button3").addEvent("click", 
		function(event){
			new Event(event).stop();
			showcaseCarousel.goTo(3);
			button0.className='';
			button1.className='';
			button2.className='';
			button3.className='current';
		});
});
	