window.addEvent('domready', function() {
	var status = {
		'true': 'open',
		'false': 'close'
	};
	
	//-vertical

	var myVerticalSlide = new Fx.Slide('vertical_slide').hide();

	$('v_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() {
		$('vertical_status').set('html', status[myVerticalSlide.open]);
	});
	
	var myVerticalSlide1 = new Fx.Slide('vertical_slide1').hide();

	$('v_toggle1').addEvent('click', function(e){
		e.stop();
		myVerticalSlide1.toggle();
	});
	// When Vertical Slide ends its transition, we check for its status
	// note that complete will not affect 'hide' and 'show' methods
	myVerticalSlide1.addEvent('complete', function() {
		$('vertical_status').set('html', status[myVerticalSlide1.open]);
	});

	var myVerticalSlide2 = new Fx.Slide('vertical_slide2').hide();

	$('v_toggle2').addEvent('click', function(e){
		e.stop();
		myVerticalSlide2.toggle();
	});
	// When Vertical Slide ends its transition, we check for its status
	// note that complete will not affect 'hide' and 'show' methods
	myVerticalSlide2.addEvent('complete', function() {
		$('vertical_status').set('html', status[myVerticalSlide2.open]);
	});
	
	var myVerticalSlide3 = new Fx.Slide('vertical_slide3').hide();

	$('v_toggle3').addEvent('click', function(e){
		e.stop();
		myVerticalSlide3.toggle();
	});
	// When Vertical Slide ends its transition, we check for its status
	// note that complete will not affect 'hide' and 'show' methods
	myVerticalSlide3.addEvent('complete', function() {
		$('vertical_status').set('html', status[myVerticalSlide3.open]);
	});
	
	var myVerticalSlide4 = new Fx.Slide('vertical_slide4').hide();

	$('v_toggle4').addEvent('click', function(e){
		e.stop();
		myVerticalSlide4.toggle();
	});
	// When Vertical Slide ends its transition, we check for its status
	// note that complete will not affect 'hide' and 'show' methods
	myVerticalSlide4.addEvent('complete', function() {
		$('vertical_status').set('html', status[myVerticalSlide4.open]);
	});
	
	var myVerticalSlide5 = new Fx.Slide('vertical_slide5').hide();

	$('v_toggle5').addEvent('click', function(e){
		e.stop();
		myVerticalSlide5.toggle();
	});
	// When Vertical Slide ends its transition, we check for its status
	// note that complete will not affect 'hide' and 'show' methods
	myVerticalSlide5.addEvent('complete', function() {
		$('vertical_status').set('html', status[myVerticalSlide5.open]);
	});

	//--horizontal
	var myHorizontalSlide = new Fx.Slide('horizontal_slide', {mode: 'horizontal'});

	$('h_slidein').addEvent('click', function(e){
		e.stop();
		myHorizontalSlide.slideIn();
	});

	$('h_slideout').addEvent('click', function(e){
		e.stop();
		myHorizontalSlide.slideOut();
	});

	$('h_toggle').addEvent('click', function(e){
		e.stop();
		myHorizontalSlide.toggle();
	});

	$('h_hide').addEvent('click', function(e){
		e.stop();
		myHorizontalSlide.hide();
		$('horizontal_status').set('html', status[myHorizontalSlide.open]);
	});
	
	$('h_show').addEvent('click', function(e){
		e.stop();
		myHorizontalSlide.show();
		$('horizontal_status').set('html', status[myHorizontalSlide.open]);
	});
	
	// When Horizontal Slide ends its transition, we check for its status
	// note that complete will not affect 'hide' and 'show' methods
	myHorizontalSlide.addEvent('complete', function() {
		$('horizontal_status').set('html', status[myHorizontalSlide.open]);
	});
});