
// Defines the Accordion

window.addEvent( 'domready', function(){
	$$( '.articleWrapper' ).each(function(item){
		var thisSlider = new Fx.Slide( item.getElement( '.fullarticle' ), { duration: 0 } );
		var anotherSlider = new Fx.Slide( item.getElement( '.abstract' ), { duration: 0 } );
		thisSlider.hide();
		item.getElement( '.readMore' ).addEvent( 'click', function(){ thisSlider.toggle(); anotherSlider.toggle(); } );
		item.getElement( '.readLess' ).addEvent( 'click', function(){ thisSlider.toggle(); anotherSlider.toggle(); } );
	} );
} );
