function genMenuEffects(cat, hideMenu) {
	$('div.' + cat + ' div.title a.mtoggle').data('opened', hideMenu ? false : true);
	$('div.' + cat + ' div.title a.mtoggle').click(function(event) {		
		if($('div.' + cat + ' div.title a.mtoggle').data('opened') == true) {
			$('div.' + cat + ' div.title a.mtoggle').data('opened', false);
			
			$('div.' + cat + ' div.title a.mtoggle').attr('href', '?m=1');
			$('div.' + cat + ' div.title a.mtoggle').html('Men&uuml; anzeigen');
			
			
			$('div.' + cat + ' ul.submenu').slideToggle('fast', function() {
				if($('#text-content.small').size() > 0) {
					$('#text-content.small').animate({
						marginLeft: '0',
						width: '595px'
					}, 'fast');
				} else {
					$('#text-content').animate({
						marginLeft: '0',
						width: '695px'
					}, 'fast');
				}
			});
		} else {
			$('div.' + cat + ' div.title a.mtoggle').data('opened', true);
			
			$('div.' + cat + ' div.title a.mtoggle').attr('href', '?m=0');
			$('div.' + cat + ' div.title a.mtoggle').html('Bitte w&auml;hlen');
			
			
			if($('#text-content.small').size() > 0) {
				$('#text-content.small').animate({
					marginLeft: '190px',
					width: '405px'
				}, 'fast', 'linear', function() {
					$('div.' + cat + ' ul.submenu').slideToggle('fast');
				});
			} else if($('#text-content').size() > 0) {
				$('#text-content').animate({
					marginLeft: '190px',
					width: '505px'
				}, 'fast', 'linear', function() {
					$('div.' + cat + ' ul.submenu').slideToggle('fast');
				});
			} else {
				$('div.' + cat + ' ul.submenu').slideToggle('fast');
			}
		}
		
		
		return false;
	});
}
