window.addEvent('domready', function() {
	var status = {
		'true': 'open',
		'false': 'close'
	};
	
	//-vertical

	var myVerticalSlide = new Fx.Slide('sitemap').hide();

	$('sitemap_trigger').addEvent('click', function(e){
		e.stop();
		myVerticalSlide.toggle();
		if($(this.id).hasClass('open')){
        $(this.id).removeClass('open').addClass('closed');       
      }else{
        $(this.id).removeClass('closed').addClass('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').set('html', status[myVerticalSlide.open]);
	});});