window.addEvent('domready', function() {
	var status = {
		'true': 'open',
		'false': 'close'
	};
	
			// peters
	var v6 = new Fx.Slide('vslide_6').hide();

	$('v_slidein6').addEvent('click', function(e){
		e.stop();
		v6.slideIn();
	});

	$('v_slideout6').addEvent('click', function(e){
		e.stop();
		v6.slideOut();
	});

	// When Vertical Slide ends its transition, we check for its status
	// note that complete will not affect 'hide' and 'show' methods
	v6.addEvent('complete', function() {
		$('vertical_status_6').set('html', status[v6.open]);
	});
	
	// jfaultdraht
	var v5 = new Fx.Slide('vslide_5').hide();

	$('v_slidein5').addEvent('click', function(e){
		e.stop();
		v5.slideIn();
	});

	$('v_slideout5').addEvent('click', function(e){
		e.stop();
		v5.slideOut();
	});

	// When Vertical Slide ends its transition, we check for its status
	// note that complete will not affect 'hide' and 'show' methods
	v5.addEvent('complete', function() {
		$('vertical_status_5').set('html', status[v5.open]);
	});
	
	// maass
	var v4 = new Fx.Slide('vslide_4').hide();

	$('v_slidein4').addEvent('click', function(e){
		e.stop();
		v4.slideIn();
	});

	$('v_slideout4').addEvent('click', function(e){
		e.stop();
		v4.slideOut();
	});

	// When Vertical Slide ends its transition, we check for its status
	// note that complete will not affect 'hide' and 'show' methods
	v4.addEvent('complete', function() {
		$('vertical_status_4').set('html', status[v4.open]);
	});
	
	
			// barthels
	var v3 = new Fx.Slide('vslide_3').hide();

	$('v_slidein3').addEvent('click', function(e){
		e.stop();
		v3.slideIn();
	});

	$('v_slideout3').addEvent('click', function(e){
		e.stop();
		v3.slideOut();
	});

	// When Vertical Slide ends its transition, we check for its status
	// note that complete will not affect 'hide' and 'show' methods
	v3.addEvent('complete', function() {
		$('vertical_status_3').set('html', status[v3.open]);
	});
	
		// lewandowski
	var v2 = new Fx.Slide('v_slide_2').hide();

	$('v_slidein2').addEvent('click', function(e){
		e.stop();
		v2.slideIn();
	});

	$('v_slideout2').addEvent('click', function(e){
		e.stop();
		v2.slideOut();
	});

	// When Vertical Slide ends its transition, we check for its status
	// note that complete will not affect 'hide' and 'show' methods
	v2.addEvent('complete', function() {
		$('vertical_status_2').set('html', status[v2.open]);
	});
	
	//-vertical

	var myVerticalSlide = new Fx.Slide('vertical_slide_1').hide();

	$('v_slidein').addEvent('click', function(e){
		e.stop();
		myVerticalSlide.slideIn();
	});

	$('v_slideout').addEvent('click', function(e){
		e.stop();
		myVerticalSlide.slideOut();
	});

	$('v_toggle').addEvent('click', function(e){
		e.stop();
		myVerticalSlide.toggle();
	});

	$('v_hide').addEvent('click', function(e){
		e.stop();
		myVerticalSlide.hide();
		$('vertical_status_1').set('html', status[myVerticalSlide.open]);
	});
	
	$('v_show').addEvent('click', function(e){
		e.stop();
		myVerticalSlide.show();
		$('vertical_status_1').set('html', status[myVerticalSlide.open]);
	});
	
	// 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_1').set('html', status[myVerticalSlide.open]);
	});
	
	


});
