/* 
	part of modulform*cms 1.9  (www.modulform.de)
	(c) marc althoff 2001, 2002

	NAME: mf_menues.js 
	DEPENDENCIES: macromedia.js
	USAGE: enables cross-browser code for mouseover on cells 

	NOTE: some code by Margus Kohv (margus@kohv.com)
*/


function menu_turnoff(element) {
	MM_showHideLayers('submenu_'+element,'','hide');
}

function menu_turnon(element) {
	// turnoff all other menus
	menu_turnoff("de_home");
	menu_turnoff("de_aktuelles");
	menu_turnoff("de_forschung");
	menu_turnoff("de_publikationen");
	menu_turnoff("de_kontakt");

	MM_showHideLayers('submenu_'+element,'','show');
	
}

function turnon(mycolor,menuitem)
{
	// very old ns only
	if ((document.all == "undefined") && (document.layers == "undefined"))	// ns very old only
	{
		if (MM_findObj(menuitem+"ns") != "undefined")	// navigator gold
		{
			if (MM_findObj(menuitem+"ns").document != null)	// for navigator gold and this also fixes other ns problems!!! :)
			{
				MM_findObj(menuitem+"ns").document.bgColor = mycolor;
			}
		}
	}
	else
	{
		// IE && NS6 && Opera
		if ((document.all && !document.layers) || (document.getElementById))
		{
			MM_findObj(menuitem).style.background = mycolor;
		}
		else
		{
			if (MM_findObj(menuitem+"ns") != null)	// navigator gold
			{
				if (MM_findObj(menuitem+"ns").document != null)	// for navigator gold and this also fixes other ns problems!!! :)
				{
					MM_findObj(menuitem+"ns").document.bgColor = mycolor;
				}
			}
		}
	}
}

function turnoff(mycolor,menuitem)
{
	turnon(mycolor, menuitem);
}
