window.addEvent('domready', function() {
	var status = {
		'true': '(Hide All)',
		'false': '(Show All)'
	};
	
	//-vertical

	var myVerticalSlide = new Fx.Slide('repMattersShowAll');
	myVerticalSlide.hide(); 

	$('repMatterShowAll_toggle').addEvent('click', function(e){
		e.stop();
		myVerticalSlide.toggle();
	});


	// When Vertical Slide ends its transition, we check for its status
	// note that complete will not affect 'hide' and 'show' methods
	myVerticalSlide.addEvent('complete', function() {
		$('repMattersShowAllStatus').set('html', status[myVerticalSlide.open]);
	});

});
