
function m_over(n) {
	document.getElementById("item"+n+"_layer").style.background="#b2b2b2";
	MM_showHideLayers('subnavi' + n,'','show');
}

function m_out(n) {
	document.getElementById("item"+n+"_layer").style.background="#ffffff";
	MM_showHideLayers('subnavi' + n,'','hide');
}

function over(n,color) {
	document.getElementById("item"+n+"_text").style.color = color;
}

function out(n,color) {
	document.getElementById("item"+n+"_text").style.color = color;
}

function set_cookie ( name, value) {
  	var cookie_string = name + "=" + escape ( value );
  	document.cookie = cookie_string;
}


function get_cookie ( cookie_name ) {
  	var results = document.cookie.match ( cookie_name + '=(.*?)(;|$)' );

  	if ( results )
  	  return ( unescape ( results[1] ) );
  	else
  	  return null;
}

function delete_cookie ( cookie_name ) {
  	var cookie_date = new Date ( );  // current date & time
  	cookie_date.setTime ( cookie_date.getTime() - 1 );
  	document.cookie = cookie_name += "=; expires=" + cookie_date.toGMTString();
}

function popup(url) {
 	var window2 = window.open(url,'window2','height=420,width=768,scrollbars=no,locationbar=no,menubar=no,resizable=no,statusbar=no');
}

function popupmediacenter(url) {
		var winname;
		var startx = Math.round((screen.width-755)/2) - 10;
		var starty = Math.round((screen.height-600)/2) - 20;

		d = new Date;
	  	t = d.getTime();
	  			
		winname = window.open(url,"Window" + t,"width=" + 755 + ",height=" + 600 + ",status=yes,toolbar=no,menubar=no,resizable=yes,location=yes,scrollbars=yes,screenX=" + startx + ",left=" + startx + ",screenY=" + starty + ",top=" + starty + " "); 
		if (! winname)
			alert('Das angeforderte Fenster konnte nicht geöffnet werden. Bitte deaktivieren Sie Ihren PopUp-Blocker!');

}

function popupblog(url) {
		var winname;
		var startx = Math.round((screen.width-770)/2) - 10;
		var starty = Math.round((screen.height-600)/2) - 20;

		d = new Date;
	  	t = d.getTime();
	  			
		winname = window.open(url,"Window" + t,"width=" + 770 + ",height=" + 600 + ",status=yes,toolbar=no,menubar=no,resizable=yes,location=yes,scrollbars=yes,screenX=" + startx + ",left=" + startx + ",screenY=" + starty + ",top=" + starty + " "); 
		if (! winname)
			alert('Das angeforderte Fenster konnte nicht geöffnet werden. Bitte deaktivieren Sie Ihren PopUp-Blocker!');

}