function init(){
	var stretchers = document.getElementsByClassName('box');
	var toggles = document.getElementsByClassName('tab');

	
	toggles.each(function(tabs){
		tabs.origClass = tabs.className;
		
    });

	
	var myAccordion = new fx.Accordion(
		toggles, stretchers, {opacity: true, height: true, duration: 900, onActive:function(tabs){
				if(tabs) {
					tabs.className += ' on';
				} 
	

			},
				onBackground: function(tabs){
				//change the background color to the original (green)
				//color when another toggler is pressed
				tabs.className = tabs.origClass;
        	}      
	});
	//hash functions
	toggles[0].className += ' on';

}