	// ๋ฉ๋ด Script ๊ด๋ ?๋ณ์?(Top, Left)
	var curMainMenu;	// current ๋๋ฉ๋ด ์ฝ๋
	var curSubMenu;		// current Sub๋ฉ๋ด ์ฝ๋ (ํ์ฌ ์ฌ์ฉ ์ํจ)
    //var docPath = "/design_cup/expupper";
    var docPath = "";

	/**
	 * ๋๋ฉ๋ด ์ฝ๋ ์ ํ - 1(eservice), 2(container), 3(bulk), 4(logistics), 5(company), 6(news)
	*/
	var nscp = (navigator.appName == "Netscape")
    var ismc = (navigator.appVersion.indexOf("Mac") != -1)
    var vers = parseFloat(navigator.appVersion.substring(22,25))
    
    function getObj(obj) {
           compLayr = document.getElementById(obj).style
       	   return compLayr
    }

    function show(layr){
       obj = getObj(layr)
       obj.visibility = "visible"
    }

    function hide(layr){
       obj = getObj(layr)
       obj.visibility = "hidden"
    }

    function menuRoll(which,status,total){
       if (status){
           currentMenuChoice = which
           show("info" + currentMenuChoice)
           checkinfo(total)
       }
    }

    function fontRoll(which,status,total){
       if (status){
           currentMenuChoice = which
           obj = getObj("font"+currentMenuChoice)
           obj.color = "blue"
           checkfont(total)
       }
    }

    function checkinfo(total){
       for(r=1;r<= total ;r++){
           if(r != currentMenuChoice){
               hide("info" + r)
           }
       }
       setTimeout("checkinfo()",50)
    }
{
var tab_cnt = 6;

img_url = new Array();
img_url[0] = new Image();
img_url[1] = new Image();
img_url[2] = new Image();
img_url[3] = new Image();
img_url[4] = new Image();
img_url[5] = new Image();
//img_url[0].src = "/en/img/MenuTop/menu00_D.gif";
//img_url[1].src = "/en/img/MenuTop/menu01_D.gif";
//img_url[2].src = "/en/img/MenuTop/menu02_D.gif";
//img_url[3].src = "/en/img/MenuTop/menu03_D.gif";
//img_url[4].src = "/en/img/MenuTop/menu04_D.gif";
//img_url[5].src = "/en/img/MenuTop/menu05_D.gif";

img_a_url = new Array();
img_a_url[0] = new Image();
img_a_url[1] = new Image();
img_a_url[2] = new Image();
img_a_url[3] = new Image();
img_a_url[4] = new Image();
img_a_url[5] = new Image();
//img_a_url[0].src = "/en/img/MenuTop/menu00_S.gif";
//img_a_url[1].src = "/en/img/MenuTop/menu01_S.gif";
//img_a_url[2].src = "/en/img/MenuTop/menu02_S.gif";
//img_a_url[3].src = "/en/img/MenuTop/menu03_S.gif";
//img_a_url[4].src = "/en/img/MenuTop/menu04_S.gif";
//img_a_url[5].src = "/en/img/MenuTop/menu05_S.gif";
}

// Top ๋ฉ๋ด ํด๋ฆญ์?ํ๋ฉด ์ฒ๋ฆฌ
function changetab (no) {
	curMainMenu = no;
	currentMenuChoice = no;
	show("info" + currentMenuChoice);
}

//  Left ๋ฉ๋ด ํด๋ฆญ์?ํ๋ฉด ์ฒ๋ฆฌ
function menu(menuId) {
	// sub๋ฉ๋ด ID ์ฟ ํค์ ์?- ํ์ฌ ๋ฉ๋ด ํ์ฑํ๋ฅผ ์ํจ...added by Roh(2005.04.25)
	deleteCookie("sub_menu", "/", null);
	setCookie("sub_menu", menuId, 0, "/", null, false);
	// ํด๋ฆญ ๋ฉ๋ด ํ์ฑํ?& ๊ธฐํ ๋ฉ๋ด ๋นํ์ฑํ...modified by Roh (2005.04.25)
	var submenu = document.body.getElementsByTagName("DIV");
	if(submenu) {
		if(!submenu.length) {
			submenu = new Array(submenu);
		}
		for(var i=0; i<submenu.length; i++) {
			if((submenu[i].id).substring(0, 8) == "submenu_") {
				if(submenu[i].id == "submenu_"+menuId) {
					if (submenu[i].style.display=='none') {
						submenu[i].style.display='block';
					} else {
						submenu[i].style.display='none';
					}
				} else {
					submenu[i].style.display='none';
				}
			}
		}
	}

	menuActivate(menuId);
}

// Left ๋ฉ๋ด onmouseover ์ด๋ฒคํ?์ฒ๋ฆฌ
function menuActivate(menuId) {
	try {
		var imgObject = document.getElementsByName("submenu_img");

		for(var i=0; i<imgObject.length; i++) {
			if((imgObject[i].id) == menuId) {
				//alert("menuId : " + menuId + " : " +imgObject[i].src);
				if((imgObject[i].src).indexOf("_on") == -1) {
					imgObject[i].src = ((imgObject[i].src).substring(0, (imgObject[i].src).lastIndexOf("."))).replace("/eservice/en", "/en") + "_on.gif";
				}
			} else {
				imgObject[i].src = (imgObject[i].src).replace("_on", "");
			}
		}
	} catch(Exception) {}
}

/**
 * Sets a Cookie with the given name and value.
 *
 * name       Name of the cookie
 * value      Value of the cookie
 * [expires]  Expiration date of the cookie (default: end of current session)
 * [path]     Path where the cookie is valid (default: path of calling document)
 * [domain]   Domain where the cookie is valid
 *              (default: domain of calling document)
 * [secure]   Boolean value indicating if the cookie transmission requires a
 *              secure transmission
 */
function setCookie(name, value, expires, path, domain, secure) {
	document.cookie= name + "=" + escape(value) +
        ((expires) ? "; expires=" + expires.toGMTString() : "") +
        ((path) ? "; path=" + path : "") +
        ((domain) ? "; domain=" + domain : "") +
        ((secure) ? "; secure" : "");
}

/**
 * Gets the value of the specified cookie.
 *
 * name  Name of the desired cookie.
 *
 * Returns a string containing value of specified cookie,
 *   or null if cookie does not exist.
 */
function getCookie(name) {
    var dc = document.cookie;
    var prefix = name + "=";
    var begin = dc.indexOf("; " + prefix);
    if (begin == -1)
    {
        begin = dc.indexOf(prefix);
        if (begin != 0) return null;
    }
    else
    {
        begin += 2;
    }
    var end = document.cookie.indexOf(";", begin);
    if (end == -1)
    {
        end = dc.length;
    }
    return unescape(dc.substring(begin + prefix.length, end));
}

/**
 * Deletes the specified cookie.
 *
 * name      name of the cookie
 * [path]    path of the cookie (must be same as path used to create cookie)
 * [domain]  domain of the cookie (must be same as domain used to create cookie)
 */
function deleteCookie(name, path, domain) {
    //if (getCookie(name)) {
        document.cookie = name + "=" +
            ((path) ? "; path=" + path : "") +
            ((domain) ? "; domain=" + domain : "") +
            "; expires=Thu, 01-Jan-70 00:00:01 GMT";
    //}
}

// ํ์ฌ ๋ฉ๋ด ํ์ฑํ?์ฒ๋ฆฌ
function activateCurrentMenu() {
	var bRtn = false;

	// process after page loading is complete
	if(document.readyState == "complete") {
		try {
			menu(getCookie("sub_menu"));
		} catch(Exception) {}

		try {
			changetab(getCookie("main_menu"));
			menuRoll(getCookie("main_menu"),true,6)
		} catch(Exception) {}

		bRtn = true;
	}

	if(!bRtn) {
		setTimeout("activateCurrentMenu()", 100);
	}
}

/**
 * Top ๋ฉ๋ด ํ๋ฉด์์ Sub๋ฉ๋ด ํด๋ฆญ ์ฒ๋ฆฌ
 *  - Main๋ฉ๋ด ID์ Sub๋ฉ๋ด ID๋ฅ?์ฟ ํค์?์ ์ฅํ๋?
 */
function goSubInTop(url, menuId) {

	deleteCookie("main_menu", "/", null);
	deleteCookie("sub_menu", "/", null);
	setCookie("main_menu", curMainMenu, 0, "/", null, false);
	setCookie("sub_menu", menuId, 0, "/", null, false);

	document.location = url;
}

/**
 * Left ๋ฉ๋ด ํ๋ฉด์์ Sub๋ฉ๋ด ํด๋ฆญ ์ฒ๋ฆฌ
 *  - Sub๋ฉ๋ด ID๋ฅ?์ฟ ํค์?์ ์ฅํ๋?
 */
function goSub(url, menuId) {
	menuActivate(menuId);

	deleteCookie("sub_menu", "/", null);
	setCookie("sub_menu", menuId, 0, "/", null, false);

	document.location = url;
}

// ํ์ฌ ๋ฉ๋ด ํ์ฑํ?์ฒ๋ฆฌ
//activateCurrentMenu();