window.addEvent('domready', function() {

	var status = {
		'true': '<img src=http://www.rendeuro.nl/images/labels/square_toggle_minus.png />',
		'false': '<img src=http://www.rendeuro.nl/images/labels/square_toggle_plus.png />'
	};

	// Hide the text when the page load
	// VCA text
	var myVcaSlide = new Fx.Slide('vca_slide', {mode: 'vertical'}).hide();
	$('vca_status').set('html', status[myVcaSlide.open]);
	// ISO text
	var myIsoSlide = new Fx.Slide('iso_slide', {mode: 'vertical'}).hide();
	$('iso_status').set('html', status[myIsoSlide.open]);

	// Trigger
	var myVcaSlide = new Fx.Slide('vca_slide');
	var myIsoSlide = new Fx.Slide('iso_slide');

	$('vca_toggle').addEvent('click', function(e){
		e.stop();
		myVcaSlide.toggle();
	});
	
	$('iso_toggle').addEvent('click', function(e){
		e.stop();
		myIsoSlide.toggle();
	});

	// When Vertical Slide ends its transition, we check for its status
	// note that complete will not affect 'hide' and 'show' methods
	
	myVcaSlide.addEvent('complete', function() {
		$('vca_status').set('html', status[myVcaSlide.open]);
	});
	
	myIsoSlide.addEvent('complete', function() {
		$('iso_status').set('html', status[myIsoSlide.open]);
	});

});