	var hiddenTimeoutId = null;
	var MenuFoot;
	var MenuBody;

	var opa = 0;
	var onm = 0;

	var moz = !(typeof window.ActiveXObject != 'undefined') && (typeof document.implementation != 'undefined') && (typeof document.implementation.createDocument != 'undefined');
	
	function GoMenu(info)
	{
   		MenuFoot = document.getElementById("MenuFoot");
		MenuBody = document.getElementById("MenuBody");

		try
		{
			clearTimeout(hiddenTimeoutId);

			if (info != onm)
			{
	    		MenuBody.innerHTML = "";
	
				var LeftPad = new Array("0px","150px","265px","330px","523px","663px","750px");
				var FileMap = new Array("","company","news","service","vantage","case","contact");
				var MenuSub = eval("MenuSub_"+info);
				for (var i = 0; i<MenuSub.length; i++)
				{
					MenuFoot.style.marginLeft = LeftPad[info];
					MenuBody.innerHTML += "<a href=\"/"+ RootURL +"/"+FileMap[info]+"/"+MenuSub[i][1]+"\">" + MenuSub[i][0] + "</a>";
					}
				if (moz)
					MenuFoot.style.MozOpacity = 0;
				else
					MenuFoot.filters.Alpha.opacity = 0;

				onm = info;
				opa = 0;
				fade_in();
			}
		}
		catch (e)
		{
			window.status = e;
		}
	}

        function GoMenu_company(info)
        {
                MenuFoot = document.getElementById("MenuFoot");
                MenuBody = document.getElementById("MenuBody");

                try
                {
                        clearTimeout(hiddenTimeoutId);

                        if (info != onm)
                        {
                        MenuBody.innerHTML = "";

                                var LeftPad = new Array("0px","150px","265px","330px","523px","663px","750px");
                                var FileMap = new Array("","company","news","service","vantage","case","contact");
                                var MenuSub = eval("MenuSub_"+info);
                                for (var i = 0; i<MenuSub.length; i++)
                                {
                                        MenuFoot.style.marginLeft = LeftPad[info];
                                        MenuBody.innerHTML += "<a href=\"/"+ RootURL +"/../tw/"+FileMap[info]+"/"+MenuSub[i][1]+"\">" + MenuSub[i][0] + "</a>";
                                        }
                                if (moz)
                                        MenuFoot.style.MozOpacity = 0;
                                else
                                        MenuFoot.filters.Alpha.opacity = 0;

                                onm = info;
                                opa = 0;
                                fade_in();
                        }
                }
                catch (e)
                {
                        window.status = e;
                }
        }


	function OnMenu()
	{
		try
		{
			clearTimeout(hiddenTimeoutId);
		}
		catch (e)
		{
			window.status = e;
		}
	}

	function ClearMenu()
	{
		try
		{
			hiddenTimeoutId = setTimeout("fade_out()",3000);
		}
		catch (e)
		{
			window.status = e;
		}
	}

	function fade_in()
	{
   		MenuFoot = document.getElementById("MenuFoot");
		MenuBody = document.getElementById("MenuBody");

		try
		{
			if (moz)
			{
				if (opa < 1)
				{
					opa += 0.1;
					MenuFoot.style.MozOpacity = opa;
					clearTimeout(fin);
					var fin = setTimeout("fade_in()",50);
					fin;
				}
			}
			else
			{
				if (opa < 100)
				{
					opa += 5;
					MenuFoot.filters.Alpha.opacity = opa;
					clearTimeout(fin);
					var fin = setTimeout("fade_in()",50);
					fin;
				}
			}
		}
		catch (e)
		{
			window.status = e;
		}
	}

	function fade_out()
	{
   		MenuFoot = document.getElementById("MenuFoot");
		MenuBody = document.getElementById("MenuBody");

		try
		{
			if (moz)
			{
				if (opa > 0)
				{
					opa -= 0.1;
					MenuFoot.style.MozOpacity = opa;
					clearTimeout(fout);
					var fout = setTimeout("fade_out()",20);
					fout;
				}
			}
			else
			{
				if (opa > 0)
				{
					opa -= 10;
					MenuFoot.filters.Alpha.opacity = opa;
					clearTimeout(fout);
					var fout = setTimeout("fade_out()",20);
					fout;
				}
			}
		}
		catch (e)
		{
			window.status = e;
		}
	}

