window.onload=function(){
$$('#cmenu a').each(function(el) { 
		el.addEvent('mouseenter',function(){
		el.setStyle('color', '#F0E08C');
		
		
		})
		
		el.addEvent('mouseleave',function(){
		 
		el.setStyle('color', '#FFFFFF');
		
		})
	
	})
	
	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('color', '#F0E08C');
	
		tog.setStyle('cursor', 'hand');
		
    },
    
		onMouseOut: function(tog){
         hide : true
		
    },
   onBackground: function(tog){
       
		tog.setStyle('color', '#FFFFFF');
	
		tog.setStyle('cursor', 'hand');
		
    },
		alwaysHide: true,
		start : 'all-closed',
	
		height: true,
		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: true,
		start : 'all-closed',
		opacity : true			
	});
	