	function m_switch( id ) {
	
		m_el = document.getElementById( id );
		
		if ( m_el.style.display == "block" ) {
			closeall();
		} else {
			closeall();
			m_el.style.display = "block";
			document.cookie = "menu="+id+";path=/;";
		}
	}
	
	function close( id ) {
		document.getElementById( id ).style.display = "none";
	}
	
	function clearAll() {
		document.cookie = "menu=; path=/; expires=Thu, 01-Jan-70 00:00:01 GMT;";
	}
	
	function closeall() {
		/*close( "m_aktuell" );
		close( "m_verband" );
		close( "m_station" );
		close( "m_bildung" );
		close( "m_partner" );
		close( "m_kontakt" );*/
	}
	
	function openact( ) {
			if (document.cookie) {
				id = getCookieValue( "menu" );
				m_el = document.getElementById( id );
				if ( m_el ) { m_el.style.display = "block"; }
			}
	}
	
/** ** COOKIE-FUNKTIONEN ** **/

	function getCookieValues( ) {
		
		var values = new Object();
		
		if (document.cookie) {
			var cookies = document.cookie;
			var parts = cookies.split("; ");
			var el = null;
			for (var i=0; i<parts.length; i++) {
				el = parts[i].split("=");
				values[ ""+el[0] ] = el[1];
			}
		}
		
		return values;
		
	}
	
	function getCookieValue( m_name ) {
		var values = getCookieValues();	
		return values[ m_name ];
	}
	
	function ObjectToString( obj ) {
		var text = "";
		for (n in obj) {
			text += n+": "+obj[n]+"\n";
		}
		return text;
	}