window.onload=function(){

	myStretch = document.getElementsByClassName('toggler');
	myStretcher = document.getElementsByClassName('accordion');
	
	// setup the accordion elements by clearing display styles	
	myStretcher.each(function(el){
		el.style.display = '';
	});
	
var ac = new Fx.Accordion(myStretch,myStretcher,
 
  {
		onActive: function(tog){
		tog.setStyle('font-weight', 'bold');
         tog.setStyle('color', '#FFF');
		tog.setStyle('cursor', 'help');
		
    },
    onBackground: function(tog){
		tog.setStyle('color', '#000');
		tog.setStyle('cursor', 'help');
		tog.setStyle('font-weight', 'normal');
		
    },
		alwaysHide: true,
		start : 'all-closed',
		opacity : true			
	});
}

st = document.getElementsByClassName('toggler2');
	stc = document.getElementsByClassName('accordion2');
	
	// setup the accordion elements by clearing display styles	
	stc.each(function(el){
		el.style.display = '';
	});
	
var acc = new Fx.Accordion(st,stc,
 
  {
		onActive: function(tog){
        tog.setStyle('color', '#ACDA4E');
		tog.setStyle('background-color', '#1d1d1d');
		tog.setStyle('cursor', 'help');
		
    },
    onBackground: function(tog){
       
		tog.setStyle('color', '#FFF');
		tog.setStyle('background-color', '#2d2d2d');
		tog.setStyle('cursor', 'help');
		
    },
		alwaysHide: false,
		start : 'all-closed',
		opacity : true			
	});
