window.addEvent('domready', function(){
	// Smooth Accordion with smooth link scrolling
	var smoothAccordion = new amTools.SmoothAccordion();
	
	// Image slideshow
	var slideshow = new amTools.Slideshow({
		container: 'eye-catcher',
		wait: 5000,
		duration: 1500,
		transition: 'quad:in:out'
	});
	
	// Smooth scroll Home and End key
	Event.Keys.end = 35;
	Event.Keys.home = 36;
	document.addEvent('keydown', function(e){
		e = new Event(e);
		if (e.key == 'end'){
			e.stop();
			new Fx.Scroll(window, smoothAccordion.options.effect).toBottom();
		}
		if (e.key == 'home'){
			e.stop();
			new Fx.Scroll(window, smoothAccordion.options.effect).toTop();
		}
	});
});