var accordion_CS;
var accordionTogglers_CS;
var accordionContents_CS;
var accordion;
var accordionTogglers;
var accordionContents;

window.onload = function() {
	accordionTogglers_CS = document.getElementsByClassName('accToggler_CS');
	
	accordionTogglers_CS.each(function(toggler_CS){
		//remember the original color
		//toggler_CS.origColor = toggler_CS.getStyle('background-color');
		//set the effect
		//toggler_CS.fx = new Fx.Color(toggler_CS, 'background-color');
	});
	
	accordionContents_CS = document.getElementsByClassName('accContent_CS');
		
	accordion_CS = new Fx.Accordion(accordionTogglers_CS, accordionContents_CS,{
		//when an element is opened change the background color to dark chameleon green
		onActive: function(toggler_CS){
			//toggler_CS.fx.toColor('white');
		},
		onBackground: function(toggler_CS){
			//change the background color to the original (light chameleon green) 
			//color when another toggler is pressed
			//toggler_CS.setStyle('background-color', toggler_CS.origColor);
		}		
	});

	accordionTogglers = document.getElementsByClassName('accToggler');
	
	accordionTogglers.each(function(toggler){
		//remember the original color
		//toggler.origColor = toggler.getStyle('background-color');
		//set the effect
		//toggler.fx = new Fx.Color(toggler, 'background-color');
	});
	
	accordionContents = document.getElementsByClassName('accContent');
		
	accordion = new Fx.Accordion(accordionTogglers, accordionContents,{
		//when an element is opened change the background color to blue
		onActive: function(toggler){
			//toggler.fx.toColor('white');
		},
		onBackground: function(toggler){
			//change the background color to the original (green) 
			//color when another toggler is pressed
			//toggler.setStyle('background-color', toggler.origColor);
		}		
	});
}




