MaxMainMenu=7
AktMainMenu=0
function ExpandMenu(Nr,Anz)
{
	for (i=1;i<=Anz;i++ )
	{
		if (i==Nr)
			{
			if (document.all)
				document.all["ProdMenu"+i].style.display = "block";
			else
				if (document.getElementById)
					document.getElementById("ProdMenu"+i).style.display = "block";
				else
					if (document.layers)
						document.layers["ProdMenu"+i].style.visibility= "show";
			}
		else
			{
			if (document.all)
				document.all["ProdMenu"+i].style.display = "none";
			else
				if (document.getElementById)
					document.getElementById("ProdMenu"+i).style.display = "none";
				else
					if (document.layers)
						document.layers["ProdMenu"+i].style.visibility= "hide";
			}
	}
}

function ExpandLand(Land,LandSubMenu)
{

	if (document.all)
		document.all["Show"+AktivLand].style.display = "none";
	else
		if (document.getElementById)
			document.getElementById("Show"+AktivLand).style.display = "none";
		else
			if (document.layers)
				document.layers["Show"+AktivLand].style.visibility= "hide";


	if (document.all)
		document.all["Show"+Land].style.display = "block";
	else
		if (document.getElementById)
			document.getElementById("Show"+Land).style.display = "block";
		else
			if (document.layers)
				document.layers["Show"+Land].style.visibility= "show";

	ExpandMenu(LandSubMenu,4)
	MenuClick(LandSubMenu)
	if (AktivLand!="COM")
		if (document.all)
			document.all["MenuLand"+AktivLand].className="MENUSUB"
		else
			if (document.getElementById)
				document.getElementById("MenuLand"+AktivLand).style.className="MENUSUB"
			else
				if (document.layers)
					document.layers["MenuLand"+AktivLand].className="MENUSUB"

	
	
	if (Land!="COM")
		if (document.all)
			document.all["MenuLand"+Land].className="MENUSUBAKTIV"
		else
			if (document.getElementById)
				document.getElementById("MenuLand"+Land).style.className="MENUSUB"
			else
				if (document.layers)
					document.layers["MenuLand"+Land].className="MENUSUBAKTIV"
	AktivLand=Land
}

function MenuClick(Nr)
{

	if (document.all)
		for (i=1;i<=MaxSubMenu;i++ )
			if (document.all["SubMenu"+i])
				if (i!=Nr)
					document.all["SubMenu"+i].className="MENUHDR"
				else
					document.all["SubMenu"+i].className="MENUHDRAKTIV"
	else
		if (document.getElementById)
			for (i=1;i<=MaxSubMenu;i++ )
				if (document.all["SubMenu"+i])
					if (i!=Nr)
						document.getElementById("SubMenu"+i).className="MENUHDR"
					else
						document.getElementById("SubMenu"+i).className="MENUHDRAKTIV"
		else
			if (document.layers)
				for (i=1;i<=MaxSubMenu;i++ )
					if (document.all["SubMenu"+i])
						if (i!=Nr)
							document.layers["SubMenu"+i].className="MENUHDR"
						else
							document.layers["SubMenu"+i].className="MENUHDRAKTIV"
	AktMenu=Nr
}
function MenuOver(Nr)
{
	if (document.all)
		for (i=1;i<=MaxSubMenu;i++ )
			if (document.all["SubMenu"+i])
				if (i==AktMenu)
					document.all["SubMenu"+i].className="MENUHDRAKTIV"
				else
					if (i!=Nr)
						document.all["SubMenu"+i].className="MENUHDR"
					else
						document.all["SubMenu"+i].className="MENUHDRAKTIV"
	else
		if (document.getElementById)
			for (i=1;i<=MaxSubMenu;i++ )
				if (document.all["SubMenu"+i])
					if (i==AktMenu)
						document.getElementById("SubMenu"+i).className="MENUHDRAKTIV"
					else
						if (i!=Nr)
							document.getElementById("SubMenu"+i).className="MENUHDR"
						else
							document.getElementById("SubMenu"+i).className="MENUHDRAKTIV"
		else
			if (document.layers)
				for (i=1;i<=MaxSubMenu;i++ )
					if (document.all["SubMenu"+i])
						if (i==AktMenu)
							document.layers["SubMenu"+i].style.className="MENUHDRAKTIV"
						else
							if (i!=Nr)
								document.layers["SubMenu"+i].style.className="MENUHDR"
							else
								document.layers["SubMenu"+i].style.className="MENUHDRAKTIV"
}
function MenuOut(Nr)
{
	if (document.all)
		for (i=1;i<=MaxSubMenu;i++ )
			if (document.all["SubMenu"+i])
				if (i==AktMenu)
					document.all["SubMenu"+i].className="MENUHDRAKTIV"
				else
					document.all["SubMenu"+i].className="MENUHDR"
	else
		if (document.getElementById)
		for (i=1;i<=MaxSubMenu;i++ )
			if (document.all["SubMenu"+i])
				if (i==AktMenu)
					document.getElementById("SubMenu"+i).className="MENUHDRAKTIV"
				else
					document.getElementById("SubMenu"+i).className="MENUHDR"
		else
			if (document.layers)
			for (i=1;i<=MaxSubMenu;i++ )
				if (document.all["SubMenu"+i])
					if (i==AktMenu)
						document.layers["SubMenu"+i].className="MENUHDRAKTIV"
					else
						document.layers["SubMenu"+i].className="MENUHDR"

}

MitteInaktiv=new Image()
MitteInaktiv.src="images/buttons/but-mitte-inaktiv.gif"
MitteAktiv=new Image()
MitteAktiv.src="images/buttons/but-mitte-aktiv.gif"
function MainMenuClick(Nr)
{

	if (document.all)
		for (i=1;i<=MaxMainMenu;i++ )
			if (i!=Nr)
				{
				document.all["Menu"+i].background="images/buttons/but-bg-inaktiv.gif"
				if (i>1)
					document.all["MenuRand"+i].src=MitteAktiv.src
				}
			else
				{
				document.all["Menu"+i].background="images/buttons/but-bg-aktiv.gif"
				if (i>1)
					document.all["MenuRand"+i].src=MitteInaktiv.src
				}
	else
		if (document.getElementById)
			for (i=1;i<=MaxMainMenu;i++ )
				if (i!=Nr)
					{
					document.getElementById("Menu"+i).style.backgroundImage ="url(images/buttons/but-bg-inaktiv.gif)"
					if (i>1)
						document["MenuRand"+i].src=MitteAktiv.src
					}
				else
					{
					document.getElementById("Menu"+i).style.backgroundImage ="url(images/buttons/but-bg-aktiv.gif)"
					if (i>1)
						document["MenuRand"+i].src.src=MitteInaktiv.src
					}
		else
			if (document.layers)
				for (i=1;i<=MaxMainMenu;i++ )
					if (i!=Nr)
						{
						document.layers["Menu"+i].background="images/buttons/but-bg-inaktiv.gif"
						if (i>1)
							document.layers["MenuRand"+i].src=MitteAktiv.src
						}
					else
						{
						document.layers["Menu"+i].background="images/buttons/but-bg-aktiv.gif"
						if (i>1)
							document.layers["MenuRand"+i].src=MitteInaktiv.src
						}

	AktMainMenu=Nr
}
function MainMenuOver(Nr)
{
	if (document.all)
		for (i=1;i<=MaxMainMenu;i++ )
			if (i==AktMainMenu)
				document.all["Menu"+i].background="images/buttons/but-bg-aktiv.gif"
			else
				if (i!=Nr)
					document.all["Menu"+i].background="images/buttons/but-bg-inaktiv.gif"
				else
					document.all["Menu"+i].background="images/buttons/but-bg-hover.gif"
	else
		if (document.getElementById)
			for (i=1;i<=MaxMainMenu;i++ )
				if (i==AktMainMenu)
					document.getElementById("Menu"+i).style.backgroundImage ="url(images/buttons/but-bg-aktiv.gif)"
				else
					if (i!=Nr)
						document.getElementById("Menu"+i).style.backgroundImage ="url(images/buttons/but-bg-inaktiv.gif)"
					else
						document.getElementById("Menu"+i).style.backgroundImage ="url(images/buttons/but-bg-hover.gif)"
		else
			if (document.layers)
				for (i=1;i<=MaxMainMenu;i++ )
					if (i==AktMainMenu)
						document.layers["Menu"+i].background="images/buttons/but-bg-aktiv.gif"
					else
						if (i!=Nr)
							document.layers["Menu"+i].background="images/buttons/but-bg-inaktiv.gif"
						else
							document.layers["Menu"+i].background="images/buttons/but-bg-hover.gif"
}
function MainMenuOut(Nr)
{
	if (document.all)
		for (i=1;i<=MaxMainMenu;i++ )
			if (i==AktMainMenu)
				document.all["Menu"+i].background="images/buttons/but-bg-aktiv.gif"
			else
				document.all["Menu"+i].background="images/buttons/but-bg-inaktiv.gif"
	else
		if (document.getElementById)
			for (i=1;i<=MaxMainMenu;i++ )
				if (i==AktMainMenu)
					document.getElementById("Menu"+i).style.backgroundImage="url(images/buttons/but-bg-aktiv.gif)"
				else
					document.getElementById("Menu"+i).style.backgroundImage="url(images/buttons/but-bg-inaktiv.gif)"
		else
			if (document.layers)
				for (i=1;i<=MaxMainMenu;i++ )
					if (i==AktMainMenu)
						document.layers["Menu"+i].background="images/buttons/but-bg-aktiv.gif"
					else
						document.layers["Menu"+i].background="images/buttons/but-bg-inaktiv.gif"
	
	
}
