function OnMouseOver_Handler(obj, part)
{
	switch(part)
	{
		case "Menu":
			var el = new String();
			el = obj.id;
			el = el.substring(el.length-1, el.length);
			for (z=1; z<6; z++)
			{
				if (z != document.all["activeM"].value)
				{
					document.all["tdMenu"+z].background = "../Images/Basic/Button.gif";
				}
				document.all["tblDDMenu"+z].style.visibility="hidden";
			}
			obj.background = "../Images/Basic/Button_hl.gif";
			if (! (document.all["tblDDMenu"+el].filters == null || document.all["tblDDMenu"+el].filters == "undefined" || 
				document.all["tblDDMenu"+el].filters[0] == null || document.all["tblDDMenu"+el].filters[0] == null))
			{
				document.all["tblDDMenu"+el].filters[0].apply();
				document.all["tblDDMenu"+el].style.visibility="visible";
				document.all["tblDDMenu"+el].filters[0].play();
			}
			else
			{
				document.all["tblDDMenu"+el].style.visibility="visible";
				document.all["tblDDMenu"+el].style.left="";
			}
			break;
		case "Shop_Category":
			if (! (obj.filters == null || obj.filters == "undefined"))
			{
				obj.style.filter="blendTrans(duration=1)";
				obj.filters[0].apply();
				obj.style.display = "";
				obj.filters[0].play();
			}
			else
				obj.style.display = "";
			break;
		default:
			break;
	}
}
function OnMouseOut_Handler(obj, part)
{
	switch(part)
	{
		case "Menu":
			for (z=1; z<6; z++)
			{
				if (z != document.all["activeM"].value)
				{
					document.all["tdMenu"+z].background = "../Images/Basic/Button.gif";
				}
				document.all["tblDDMenu"+z].style.visibility="hidden";
			}
			break;
		case "Shop_Category":
			obj.style.display = "none";
		break;
		default:
			break;
	}
}
function SetMenu(MNUid)
{
	if (MNUid>0 && MNUid<6)
	{
		document.all["activeM"].value=MNUid;
		document.all["tdMNU"+MNUid].background = "../Images/Basic/Button_hl.gif";
	}
}
	
	function Switch(Nav)
	{
		var	Angebot_S = this.Angebot.style.display;
		var	Warenkorb_S = this.Warenkorb.style.display;
		var	Artsuche_S = this.Artsuche.style.display;
		if (Nav.id == "NavRight")
		{
			if (Artsuche_S == 'none' && Warenkorb_S == 'none')
			{
				this.Angebot.style.display = 'none';
				this.Artsuche.style.display = 'none';
				if(this.Warenkorb.filters[0] != null)
					this.Warenkorb.filters[0].apply();
				this.Warenkorb.style.display = '';
				if(this.Warenkorb.filters[0] != null)
					this.Warenkorb.filters[0].play();
				return true;
			}
			else
			{
				this.Angebot.style.display = 'none';
				if(this.Artsuche.filters[0] != null)
					this.Artsuche.filters[0].apply();
				this.Artsuche.style.display = '';
				if(this.Artsuche.filters[0] != null)
					this.Artsuche.filters[0].play();
				this.Warenkorb.style.display = 'none';
				return true;
			}
		}
		if (Nav.id == "NavLeft")
		{
			if (Angebot_S == 'none' && Warenkorb_S == 'none')
			{
				this.Angebot.style.display = 'none';
				this.Artsuche.style.display = 'none';
				if(this.Warenkorb.filters[0] != null)
					this.Warenkorb.filters[0].apply();
				this.Warenkorb.style.display = '';
				if(this.Warenkorb.filters[0] != null)
					this.Warenkorb.filters[0].play();
				return true;
			}
			else
			{
				if(this.Angebot.filters[0] != null)
					this.Angebot.filters[0].apply();
				this.Angebot.style.display = '';
				if(this.Angebot.filters[0] != null)
					this.Angebot.filters[0].play();
				this.Artsuche.style.display = 'none';
				this.Warenkorb.style.display = 'none';
				return true;
			}
		}
		return false;
	}
	
	function Openwindow(path, width, height)
	{
		window.open(path, "_blank", "height=" + height + ", width=" + width + ", status=yes, toolbar=no, location=no, menubar=no");
	}
	function OpenHelpContext(HP, UP, HE)
	{
		var dummy = new String();
	
		dummy = HP + UP + HE
		
		if (dummy.length > 0)
		{
			document.all["txtHPage"].value=HP;
			document.all["txtHUPage"].value=UP;
			document.all["txtHElement"].value=HE;
		
			Openwindow('../HelpMe.aspx', 400, 300);
		}
	}
	function SwapSkinSelector()
	{
		var cont = document.MainForm.all["SSSContainer"];
		var img = document.MainForm.all["imgTopLeft"];
		var ss = document.MainForm.all["divSkinSelector"];
		
		if(cont.filters[0] != null)
			cont.filters[0].Apply();
		if(img.style.visibility=="hidden")
		{
			ss.style.visibility="hidden";
			img.style.visibility="visible";
		}
		else
		{
			img.style.visibility="hidden";
			ss.style.visibility="visible";
		}
		if(cont.filters[0] != null)
			cont.filters[0].Play();
	}
