window.addEvent('domready', function(){
            var accordion = new Accordion('h3.atStart', 'div.atStart', {
                opacity: false,
                onActive: function(toggler, element){
			toggler.setStyle('background', 'url("public/images/accordion/selected-bg.gif") no-repeat center left');
			$('cnt1').style.overflow = 'auto';				
			$('cnt2').style.overflow = 'auto';				
		        element.style.display = 'block';
                },
                
                onBackground: function(toggler, element){
                    toggler.setStyle('background', 'url("public/images/accordion/not-selected-bg.gif") no-repeat center left');
		    element.style.display = 'none';
                }
            }, $('accordion')).addEvent('onComplete',function(){
		$('cnt1').style.overflow = 'auto';
		$('cnt2').style.overflow = 'auto';
	    });
            
            
         }); 
        
        
		
/*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,
		onActive: function(toggler, element){
			toggler.setStyle('background', '#999999 url("public/images/accordion/not-selected-bg.gif") top left no-repeat');
			toggler.setStyle('color', '#FFFFFF');
			
		},
		
		onBackground: function(toggler, element){
		
			toggler.setStyle('background', '#999999 url("public/images/accordion/selected-bg.gif") top left no-repeat');
			toggler.setStyle('color', '#FFFFFF');
		}
	}, $('accordion'));
	
	
}); */		