var todoAccordion = null;
var scroll = null;
var headerAccordion = null;

window.addEvent('domready', function() {
	
	//create our Accordion instance
 	todoAccordion = new Accordion('p.toggler', 'div.element', {
		opacity: false,
		transition: Fx.Transitions.Quad.easeInOut,

		onActive: function(toggler, element){
			toggler.setStyle('color', '#D90870');
		},
		onBackground: function(toggler, element){
			toggler.setStyle('color', '#8F7646');
		}
	});
	
	//define scroll to bottom
    var element = $(document.body);
	
	scroll = new Fx.Scroll(element, {
		wait: false,
		duration: 700,
		transition: Fx.Transitions.Quad.easeInOut
	});

	$$('a.scrolltoproj').addEvent('click', function(ev) {
		ev.stop();
		scroll.toElement('nav');
	});
	
	
});
