window.addEvent('domready', function(){
var divs = $$(['docs', 'js', 'html', 'css']);
divs.each(function(div){
	var link = $(div.id + 'code');
	div.setStyle('display', 'none');
	link.addEvent('click', function(e){
		e = new Event(e);
		divs.each(function(other){
			if (other != div) other.setStyle('display', 'none');
		});
		div.setStyle('display', (div.getStyle('display') == 'block') ? 'none' : 'block');
		e.stop();
	});
});
});
	window.addEvent('domready', function(){
	var accordion = new Accordion('h3.atStart', 'div.atStart', {
		opacity: false,
	 	fixedHeight: "166px",
		onActive: function(toggler, element){
			toggler.setStyle('color', '#fff');
			toggler.setStyle('cursor', 'default');
			toggler.setStyle('background-image', 'url("/college/template/images/home/feature/inactive.gif")');
			element.setStyle('border-bottom', '1px solid #5E5E5E');

		},
		
		onBackground: function(toggler, element){
			toggler.setStyle('color', '#fff');
			toggler.setStyle('cursor', 'pointer');
			toggler.setStyle('cursor', 'hand');
			toggler.setStyle('background-image', 'url("/college/template/images/home/feature/active.gif")');
			element.setStyle('border-bottom', '0px solid #5E5E5E');
		}
	}, $('accordion'));
	

}); 