window.addEvent('shake', function() {
	
	// MENU
	var mymenushake = new menushake($('MENUSHAKE'), 'div.menutitle', 'div.signup', {
		opacity: false,
		onActive: function(menutitle, signup){
			menutitle.setStyle('background-color', 'transparent');
			menutitle.setStyle('text-decoration', 'none');
		},
		onBackground: function(menutitle, signup){
			menutitle.setStyle('background-color', 'transparent');
			menutitle.setStyle('text-decoration', 'none');
		}
	});



	var status = {
		'true': 'open',
		'false': 'close'
	};
	
	//-vertical

	var ERRORS = new Fx.Slide('ERROR_DETAILS');

	$('e_hide').addEvent('click', function(e){
		e.stop();
		ERRORS.hide();
		$('error-status').set('html', status[ERRORS.open]);
	});
	
	// When Vertical Slide ends its transition, we check for its status
	// note that complete will not affect 'hide' and 'show' methods
	ERRORS.addEvent('complete', function() {
		$('error-status').set('html', status[ERRORS.open]);
	});
	

});