/********************************************************************************************************
    host url check
********************************************************************************************************/
/*
  function uriCheck(){
    var host  = (window.location.hostname).toString().toLowerCase();
    var href  = window.location.href;
    var path  = window.location.pathname;
    var query = "";

    var idx = href.indexOf("?");
    if( idx > -1 ) {
      query = href.substr(idx);
    }

    if( host.indexOf("samsungfn.co.kr") > -1 ) {
      var uri = "http://www.samsungfn.com" + path + query;
      window.location.href = uri;
    }
  }
  uriCheck();
*/
/********************************************************************************************************
    ÀÌ¹ÌÁö ·Ñ¿À¹ö Á¤ÀÇ
********************************************************************************************************/
function EImgChg(flag)
{
    source=event.srcElement;
    if (source.name == "")
    { return false;  }

    else if (document.images && source.tagName=="IMG") {
        imgElement = source.name;  // ÀÌ¹ÌÁö name
        imgPath = source.src;   // ÀÌ¹ÌÁö src ¼Ó¼º°ª

        imgPathLen = imgPath.length;
        imgPathFlag = imgPath.lastIndexOf("/");
        imgName = imgPath.substring(0,imgPathFlag+1);

        document.images[imgElement].src =  imgName + imgElement + "_" + flag + ".gif";  }
}

/********************************************************************************************************
    Popup Á¤ÀÇ
    º¯¼ö Á¤ÀÇ : pop - ÆÄÀÏ¸í, width - °¡·Î»çÀÌÁî, height - ¼¼·Î»çÀÌÁî, flag - 0:½ºÅ©·Ñ¾øÀ½, 1:½ºÅ©·ÑÀÖÀ½
    RedStone 20050331 : popup windowÀÇ ¶ç¿ì´Â À§Ä¡¼³Á¤ Ãß°¡
********************************************************************************************************/
function pop(pop,width,height,flag) {
    var url = pop;
    var wd = width;
    var he = height;
    var topposition = (screen.height)?(screen.height-he)/2:0;
    var leftposition = (screen.width)?(screen.width-wd)/2:0;

    if (flag == "0" )
    {  window.open(url,"","toolbar=0,menubar=0,scrollbars=no,resizable=no,width="+wd+",height="+he+",top="+Math.round(topposition)+",left="+Math.round(leftposition));  }
    else
    {  window.open(url,"","toolbar=0,menubar=0,scrollbars=yes,resizable=no,width="+wd+",height="+he+",top="+Math.round(topposition)+",left="+Math.round(leftposition));  }
}

/********************************************************************************************************
    td¿¡¼­ »ö±ò º¯È­Á¤ÀÇ
********************************************************************************************************/
function changeto(highlightcolor)
{
    source=event.srcElement;

//  if (source.tagName=="TR"|source.tagName=="TABLE")
//  return;
  while(source.tagName!="TR")
  source=source.parentElement;
  if (source.style.backgroundColor!=highlightcolor&&source.id!="ignore")
    source.style.backgroundColor=highlightcolor;
}

/********************************************************************************************************
    ¸µÅ©½Ã ¶óÀÎ ¾ø¾Ö±â Á¤ÀÇ
********************************************************************************************************/
function allblur() {
    for (i = 0; i < document.links.length; i++)
        document.links[i].onfocus = document.links[i].blur;
}
window.onload=allblur


function goto(trg,URL)
{
	window.open(URL,trg,'');
}

/********************************************************************************************************
    ¼¿·ºÆ®¹Ú½º ¼±ÅÃ½Ã ÆäÀÌÁöÀÌµ¿
********************************************************************************************************/
function goselect(form) {
var myindex=form.go.selectedIndex
window.location=(form.go.options[myindex].value);
}


/********************************************************************************************************
    ¸Þ´º ºÎºÐ ½ºÅ©¸³Æ®
*************************************************
**** Menu Script ********************************
**** gyoony@emotion.co.kr ***********************
*************************************************
********************************************************************************************************/
//document.onselectstart = function() {return false} // ÅØ½ºÆ®¶ó ¸Þ´º µå·¡±×µÇ¸é º°·Î ¾ÈÀÌ»Þ´Ï´Ù. ±×·¡¼­ ³ÖÀº°Å´Ï±î »©µµ ±×¸¸~

function MenuManager() {
	this.nMenu = "";	// ÇöÀç ¼±ÅÃµÈ ¸Þ´º ID
	this.pMenu = "";	// ÀÌÀü ¼±ÅÃµÈ ºÎ¸ð ¸Þ´º ID
	this.cMenu = "";	// ÀÌÀü ¼±ÅÃµÈ ÀÚ½Ä ¸Þ´º ID
	this.oMenu = "";	// ÇöÀç»ç¿ëÇÒ ÀÌÀü¸Þ´º °ª
	this.isSub;			// ¼­ºê¸Þ´ºÀÎÁö Ã¼Å© ¿©ºÎ
	this.isSame;		// ÀÌÀü Å¬¸¯¸Þ´º¿Í °°Àº¸Þ´ºÀÎÁö ¿©ºÎ
	this.isOn;			// ¾×¼ÇÁÙ²«Áö ¸»²«Áö
	this.hasMain;		// ºÎ¸ð¸Þ´º°¡ ¸ÞÀÎÆäÀÌÁö¸¦ °¡Áö°íÀÖ´ÂÁö ¾ø´ÂÁö ¿©ºÎ
	this.set = function(nMenu) {
		var source = document.getElementById(nMenu);
		this.setValue(source);
	}
	this.reset = function() {
		var source = event.srcElement.parentNode;
		this.setValue(source);
	}
	this.setValue = function(source) {
		//var source = event.srcElement.parentNode;
		var idString = "";
		if (source.tagName == "TR" && typeof(source.mouseAction) != "undefined" ) idString = source.id;
		this.nMenu = idString;
		var idStringHead = this.nMenu.substring(0,1);
		this.isSub = (idStringHead == "c") ? true : false;
		this.oMenu = (idStringHead == "c") ? this.cMenu : this.pMenu;
		this.isSame = (this.oMenu == this.nMenu) ? true : false;
		this.isOn = (source.mouseAction == "on") ? true : false;
		this.hasMain = (typeof(source.hasMain) != "undefined") ? true : false;
	}
	this.setSubDisplay = function() {
		if (!this.isSub && !mm.isSame) {
			setSubDisplay(this.nMenu,"");
			setSubDisplay(this.pMenu,"none");
		}
	}
	this.setMouseAction = function() {
		setMouseAction(this.oMenu,"on");
		setMouseAction(this.nMenu,"off");
	}
	this.setMenu = function() {
		if (!this.isSub) {
			if (!mm.isSame) {
				setMenu(this.nMenu,"on");
				setMenu(this.oMenu,"off");
			}
			setMenu(this.cMenu,"off");
		} else {
			setMenu(this.nMenu,"on");
			if (!mm.isSame) {
				setMenu(this.oMenu,"off");
			}
		}
	}
	this.setMenuValue = function() {
		if (this.isSub) this.cMenu = this.nMenu;
		else this.pMenu = this.nMenu;
	}
	this.setSub = function() {
		if (!this.isSub && !this.hasMain) {
			this.cMenu = "c" + this.nMenu.substring(1,this.nMenu.length) + "01";
			setMenu(this.cMenu,"on");
			setMouseAction(this.cMenu,"off");
		}
	}
	this.main = function() {
//		goMenuLink(this.nMenu);

		if (this.nMenu == "") return;
		this.setMenu();
		this.setMouseAction();
		this.setSub();
		this.setSubDisplay();
		this.setMenuValue();
	}
}

var mm = new MenuManager();

function setMenu(idString,mMode) {
	var idStringHead = idString.substring(0,1);
	var iconObj = document.getElementById(idString + "Icon");
	var textObj = document.getElementById(idString + "Text");
	if (iconObj && textObj) {
		iconObj.className = idStringHead + "MenuIconTd_" + mMode;
		textObj.className = idStringHead + "MenuTextTd_" + mMode;
	}
}

function setMouseAction(idString,mMode) {
	var targetObj = document.getElementById(idString);
	if (targetObj) targetObj.mouseAction = mMode;
}

function setSubDisplay(idString,mMode) {
	var targetObj = document.getElementById(idString + "Sub");
	if (targetObj) targetObj.style.display = mMode;
}

function menuMouseOnOff(mMode) {
	mm.reset();

	if (mm.isOn) setMenu(mm.nMenu,mMode);
}

function menuClick() {
	mm.reset();
	mm.main();
}

function setLeftMenu(dMenu) {
/*  mID_str = self.location.search;
  mID_value = mID_str.substring(5,mID_str.length);
  dMenu = mID_value;
*/
  if (dMenu == "" || dMenu == null) dMenu = "pm01";
	mm.set(dMenu);
	if (mm.isSub) {
		var pMenu = "p" + mm.nMenu.substring(1,mm.nMenu.length-2);
		mm.set(pMenu);
		mm.main();
		mm.set(dMenu);
	}
	mm.main();
}

/********************************************************************************************************
    ÄÁÅÙÃ÷ÆäÀÌÁö¿¡¼­ ÆäÀÌÁö¿Í ¸Þ´ºÂÊ ¸µÅ©¹®Á¦
********************************************************************************************************/
function frLink(left,body){
  parent.leftFrame.location.href=left;
  parent.subFrame.location.href=body;
}

/********************************************************************************************************
    »ï¼º .COM Menu Array¸¦ ¸¸µå´Â Function

    ÀÛ¼º RedStone - 2005/03/09 ÃÖÃÊÀÛ¼º
           RedStone - 2005/03/28 onmenu.js ¹è¿­Ãß°¡
********************************************************************************************************/
//Menu¸¦ onmenu.js ¿¡¼­ ÀÐ¾î¿Í¼­ ¹è¿­¿¡ ´ã´Â´Ù.
var onmenu = new Array();
var k = 0;
function setMenu(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13) {
    onmenu[k] = new Array(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13);
    k++;
}

/********************************************************************************************************
    »ï¼º .COM »ó´ÜGNB ¸µÅ© ÇÔ¼ö
        * ¸ÕÀú ÀÌ FunctionÀ» »ç¿ëÇÏ±â À§ÇØ¼­ ¸Þ´ºÀÇ Á¤º¸¸¦ ´ã°íÀÖ´Â onmenu.js ÆÄÀÏÀ» ºÙ¿©¾ß ÇÑ´Ù.
        * Flash Menu¿¡ È£ÃâµÇ´Â FunctionÀº menuFunction(agument) ÇüÀ¸·Î È£ÃâÇÏ¿©¾ß ÇÑ´Ù.
        * Agument´Â StringÇüÀÇ Flash Menu¿¡¼­ Á¤ÀÇÇÏ´Â ID°ªÀÌ ¾î¾ß ÇÑ´Ù.
        * ±âÁ¸ÀÇ Menu¿Ü¿¡ Á¤ÀÇÇÏ¿©¾ß ÇÏ´Â ºÎºÐÀº ¾Æ·¡ÀÇ if~else ¹®À¸·Î ºÐ±âÇÑ´Ù.

    º¯°æ RedStone - 2005/02/23
    ¼öÁ¤ RedStone - 2005/02/25 onmenu.jsÀÇ º¯°æÀ¸·Î ¼öÁ¤
    ¼öÁ¤ RedStone - 2005/03/02 ¸ñ·ÏÀÇ link ¼öÁ¤
    ¼öÁ¤ RedStone - 2005/03/03 ¸ñ·ÏÀÇ link ¼öÁ¤
    ¼öÁ¤ RedStone - 2005/03/06 onmenu[i][6] top/'parent ¿¡ "self" Ãß°¡
    ¼öÁ¤ RedStone - 2005/03/08 Link ¼öÁ¤(»ï¼ºÁõ±ÇÈ¸»ç¼Ò°³)
    ¼öÁ¤ RedStone - 2005/03/11 bottom Frame º¯°æºÎºÐ ¼öÁ¤, ¸ðµç Page¿¡ MenuID¸¦ ³Ñ±â´Â ºÎºÐÃß°¡
    ¼öÁ¤ RedStone - 2005/03/14 onmenu[i][6] top/'parent ¿¡ "pop" Ãß°¡
    ¼öÁ¤ RedStone - 2005/03/14 ¸ÂÃãÇü±ÝÀ¶ ½Ã¹Ä·¹ÀÌ¼Ç Link Ãß°¡
    ¼öÁ¤ RedStone - 2005/03/24 Main, sub Main, »ï¼ºÁõ±Ç¼Ò°³ Link º¯°æ
    ¼öÁ¤ RedStone - 2005/03/28 onmenu[i][0] : Menu ID, onmenu[i][1] : Menu ID Location Ãß°¡ ÀÌÈÄ ¹è¿­¹øÈ£ ÇÏ³ª¾¿ ¹Ð¸²À¸·Î ¼öÁ¤
********************************************************************************************************/
function menuFunction(functionName) {		
    for(var i=0;i<onmenu.length;i++) {
        if(functionName == "t_home") {
            top.location.href = "/index.html";
            return;
        } else if(functionName == "t_login") {
            alert("·Î±×ÀÎÀÔ´Ï´Ù.");
            return;
        } else if(functionName == "t_logout") {
            alert("·Î±×¾Æ¿ôÀÔ´Ï´Ù.");
            return;
        } else if(functionName == "t_info") {
            alert("Á¤º¸º¯°æÀÔ´Ï´Ù.");
            return;
        } else if(functionName == "t_join") {
            alert("È¸¿ø°¡ÀÔÀÔ´Ï´Ù.");
            return;
        } else if(functionName == "t_samsung") {
            top.location.href = "/contents/samsung/index.html";
            return;
        } else if(functionName == "t_english") {
            top.location.href = "http://english.samsungfn.com/fn_eng/contents/home/home_index.html";
            return;
        } else if(functionName == "esamsung_contact") {
            parent.mainFrame.location.href = "/contents/esamsung/contact/f_contact01.html";
            parent.topFrame.imgzone.src = "/contents/img/common/header/topasmsung_imgzone05.gif";
            return;
        } else if(functionName == "esamsung_korea") {
            parent.location.href = "/contents/samsung/index.html";
            return;
        //¸ÂÃãÇü±ÝÀ¶ ½Ã¹Ä·¹ÀÌ¼Ç Ãß°¡ 20050316 - RedStone
        } else if(functionName == "honors") {
            mainPageGo('cm0101', '/contents/f_service/honors/fn/fn01.html?MenuID=f_service01010000a');
            return;
        } else if(functionName == "partner") {
            mainPageGo('cm0201', '/contents/f_service/partner/service/service01.html?MenuID=f_service01020000a');
            return;
        } else if(functionName == "direct") {
            mainPageGo('cm0301', '/contents/f_service/direct/service/service01.html?MenuID=f_service01030000a');
            return;
        } else {
            if(onmenu[i][6] == functionName) {
            	  var menuid = onmenu[i][0];
            	  var urlpass = onmenu[i][4];
            	  if(urlpass.search(".html") != -1) {
                    urlpass += "?MenuID="+menuid;
                } else {
                    if(urlpass.search("=") != -1) urlpass += "&MenuID="+menuid;
                    else urlpass += "?MenuID="+menuid;
                }

                //bottom Frame¿¡ AppletÀ» Ãß°¡ÇÏ±âÀ§ÇÏ¿© ÀüÃ¼¸¦ reloadÇÏ´Â ºÎºÐ Check : RedStone - 20050312
                var bottomYN = "";
                if(oldParameter.search("finance") != -1 || oldParameter.search("stock") != -1) {
                    if(functionName.search("finance") != -1 || functionName.search("stock") != -1) bottomYN = "N";
                    else bottomYN = "Y";
                } else {
                    if(functionName.search("finance") != -1 || functionName.search("stock") != -1) bottomYN = "Y";
                    else bottomYN = "N";
                }

                if(onmenu[i][7] == "top")
                    top.location.href = urlpass;
                else if(onmenu[i][7] == "self")
                    self.location.href = urlpass;
                else if(onmenu[i][7] == "pop")
                    pop(urlpass, 841, 575, 1);
                else {
                    if(bottomYN == "Y") top.location.href = "/contents/"+getFolder(functionName)+"/index.jsp?MenuID="+onmenu[i][0];
                    else parent.mainFrame.location.href = urlpass;
                }

                if(onmenu[i][5] != "")
                    parent.topFrame.imgzone.src=onmenu[i][5];

                oldParameter = functionName;
                return;
            }
        }
    }
}


/********************************************************************************************************
    »ï¼º .COM  menuFunction()¿¡¼­ »ç¿ëÇÏ´Â ³»ºÎ FunctionÀ¸·Î functionNameÀ¸·Î ÁöÁ¤ Folder¸íÀ» Ã£¾Æ ¹ÝÈ¯ÇÑ´Ù.

    ÀÛ¼º RedStone - 2005/03/12
    ¼öÁ¤ RedStone - 2005/03/13
********************************************************************************************************/
function getFolder(functionName) {
    if(functionName.search("finance") != -1) return "finance";
    else if(functionName.search("stock") != -1) return "stock";
    else if(functionName.search("invest") != -1) return "invest";
    else if(functionName.search("academy") != -1) return "academy";
    else if(functionName.search("customer") != -1) return "customer";
    else if(functionName.search("cyber") != -1) return "cyber";
    else if(functionName.search("honorsc") != -1) return "honorsc";
    else if(functionName.search("login") != -1) return "login";
    else if(functionName.search("faq") != -1) return "faq";
    else if(functionName.search("event") != -1) return "event";
    else if(functionName.search("pb") != -1) return "pb";
    else if(functionName.search("f_service") != -1) return "f_service";
    else if(functionName.search("joy") != -1) return "joy";
    else if(functionName.search("samsung") != -1) return "samsung";
    else if(functionName.search("esamsung") != -1) return "esamsung";
}


/********************************************************************************************************
    »ï¼º .COM  ¸Þ´ºÀÇ À§Ä¡Á¤º¸ º¸±â (¿¹ : Home >  ±ÝÀ¶Á¤º¸ > »óÇ°Ã£±â > ±ÝÀ¶»óÇ°)
        * ¸ÕÀú ÀÌ FunctionÀ» »ç¿ëÇÏ±â À§ÇØ¼­ ¸Þ´ºÀÇ Á¤º¸¸¦ ´ã°íÀÖ´Â onmenu.js ÆÄÀÏÀ» ºÙ¿©¾ß ÇÑ´Ù.
        * FunctionÀÇ Agument°¡ MenuÀÇ IDÀÎ ServletÀÌ°Å³ª ±âÅ¸ Á¤ÀÇµÈ ¸Þ´ºÀÇ ID°¡ Á¸ÇØÇÏ¿©¾ß ÇÑ´Ù.
        * ServletÀÇ Menu ID°¡ Á¸ÀçÇÏÁö ¾Ê´Â ºÎºÐ°ú HTMLÀº µû·Î ID¸¦ ÁöÁ¤ÇÏ¿© »ç¿ëÇÑ´Ù.

    ÀÛ¼º RedStone - 2005/02/23
    ¼öÁ¤ RedStone - 2005/02/25 onmenu.jsÀÇ º¯°æÀ¸·Î ¼öÁ¤
    ¼öÁ¤ RedStone - 2005/03/03 Agument¸¦ Servlet Name, jsp Name¿¡¼­ Menu ID·Î º¯°æ
    ¼öÁ¤ RedStone - 2005/03/28 onmenu[i][0] : Menu ID, onmenu[i][1] : Menu ID Location Ãß°¡ ÀÌÈÄ ¹è¿­¹øÈ£ ÇÏ³ª¾¿ ¹Ð¸²À¸·Î ¼öÁ¤
********************************************************************************************************/
function LocationMenu(menuid) {
    for(var i=0;i<onmenu.length;i++) {
        if(onmenu[i][0] == menuid) {
            document.write(onmenu[i][3]);
            return;
        }
    }
}


/********************************************************************************************************
    »ï¼º .COM  ¸Þ´ºÀÇ URI¸¦ ¹ÝÈ¯ÇÑ´Ù.

    ÀÛ¼º RedStone - 2005/03/03 ÃÖÃÊÀÛ¼º
    ¼öÁ¤ RedStone - 2005/03/28 onmenu[i][0] : Menu ID, onmenu[i][1] : Menu ID Location Ãß°¡ ÀÌÈÄ ¹è¿­¹øÈ£ ÇÏ³ª¾¿ ¹Ð¸²À¸·Î ¼öÁ¤
********************************************************************************************************/
function menuURI(menuid) {
    for(var i=0;i<onmenu.length;i++) {
        if(onmenu[i][0] == menuid) {
            return onmenu[i][4];
        } else if(i == onmenu.length-1) {
            return "";
        }
    }
}


/********************************************************************************************************
    »ï¼º .COM ´Ù¸¥ »ó´ÜÀÇ GNB ¸µÅ©¸¦ ÇÒ °æ¿ì target menuÀÇ Á¤º¸¿Í URI¸¦ °¡Á®¿À´Â Function

    ÀÛ¼º RedStone - 2005/02/26
    ¼öÁ¤ RedStone - 2005/03/04
    ¼öÁ¤ RedStone - 2005/03/28 onmenu[i][0] : Menu ID, onmenu[i][1] : Menu ID Location Ãß°¡ ÀÌÈÄ ¹è¿­¹øÈ£ ÇÏ³ª¾¿ ¹Ð¸²À¸·Î ¼öÁ¤
********************************************************************************************************/
function menuGo(menuid) {
    for(var i=0;i<onmenu.length;i++) {
        if(onmenu[i][0] == menuid) {
            if(onmenu[i][4] == "")
                parent.mainFrame.href="/contents/finance/sub_root.jsp";
            else if(onmenu[i][7] == "top")
                top.location.href=onmenu[i][4];
            else
                parent.mainFrame.location.href=onmenu[i][4];

            if(onmenu[i][5] != "")
                parent.topFrame.imgzone.src=onmenu[i][5];

            return;
        }
    }
}


/********************************************************************************************************
    »ï¼º .COM Function

    ÀÛ¼º ÇãÁØÈ¸ - 2005/03/03
********************************************************************************************************/
function mainPageGo(cd){
    var uri = "";
    if( cd == "finance" ){
        uri = "/contents/finance/khb01.jsp";
    } else if( cd == "stock" ){
        uri = "/contents/stock/main.html";
    } else if( cd == "invest" ){
        uri = "/contents/invest/main.html";
    } else if( cd == "academy" ){
        uri = "/contents/academy/main.html";
    } else if( cd == "customer" ){
        uri = "/contents/customer/main.html";
    } else if( cd == "cyber" ){
        uri = "/contents/cyber/main.html";
    } else if( cd == "honorsc" ){
        uri = "/contents/honorsc/main.html";
    }
    top.mainFrame.location.href = uri;
}


/********************************************************************************************************
    »ï¼º .COM Link Function
        menuid : Menu ID
        code     : top / parent ÀÇ ±¸ºÐÀ» ÀÛ¼ºÇÑ´Ù.(page locationÀ» ÁöÁ¤ÇÑ´Ù.)

    º¯°æ RedStone - 2005/03/06 ÃÖÃÊÀÛ¼º
********************************************************************************************************/
function linkFunction(menuid, code) {
    if(code == "top") {
        top.location.href = menuURI(menuid);
    } else {
        parent.mainFrame.location.href = menuURI(menuid);
    }
}


/********************************************************************************************************
    »ï¼º .COM Site Map Function
        menuid : Search Menu Array, Search String, Menu Number
        code     : Site Map¿¡¼­ °Ë»öµÈ ¸Þ´º¹è¿­À» ÀÐ¾î¼­ Source¸¦ »Ñ·ÁÁØ´Ù.

    RedStone - 2005/03/08 ÃÖÃÊÀÛ¼º
    RedStone - 2005/03/15 Design ºÎºÐ¿¡¼­ 3Depth¿¡¼­ LineÀÌ »ý±â´Â ºÎºÐ Ãß°¡
    RedStone - 2005/03/16 À±¸®°æ¿µºÎºÐ popup Ã³¸®¼öÁ¤
    RedStone - 2005/03/23 login ¿©ºÎ¸¦ checkÇÏ¿© ·Î±×ÀÎ&È¸¿øÁ¤º¸ Main Link ¿©ºÎÃß°¡
    RedStone - 2005/03/28 onmenu[i][0] : Menu ID, onmenu[i][1] : Menu ID Location Ãß°¡ ÀÌÈÄ ¹è¿­¹øÈ£ ÇÏ³ª¾¿ ¹Ð¸²À¸·Î ¼öÁ¤
    RedStone - 2005/03/30 linkÀÏ °æ¿ì onmenu[i][7] ¿¡¼­ "link"·Î °ËÃâ¼öÁ¤
    RedStone - 2005/04/07 È¸¿ø/ÁØÈ¸¿ø ±¸ºÐ(»çÀÌ¹öÁöÁ¡ > °³ÀÎÁ¤º¸) ºÎºÐ Ãß°¡
    RedStone - 2005/04/11 È¸¿ø/ÁØÈ¸¿ø ±¸ºÐ(»çÀÌ¹öÁöÁ¡ > °³ÀÎÁ¤º¸) ¿À·ù¼öÁ¤
    RedStone - 2005/04/15 È¸¿ø/ÁØÈ¸¿ø ±¸ºÐ(»çÀÌ¹öÁöÁ¡ > °³ÀÎÁ¤º¸) ¿À·ù¼öÁ¤
********************************************************************************************************/
function ShowSiteMap(ArrayValue, FindStr, MenuNo, getMemberSo) {
    var rollNum = 0;
    var imgno = 1;

    document.write('<table width=\"599\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" class=\"margin\">');
    document.write('    <col width=\"196\">');
    document.write('    <col width=\"1\">');
    document.write('    <col width=\"205\">');
    document.write('    <col width=\"1\">');
    document.write('    <col width=\"196\">');
    document.write('    <tr valign="\top\">');
    document.write('        <td>');

    for(var i=0;i<ArrayValue.length;i++) {
        if((ArrayValue[i][10] == FindStr) && (ArrayValue[i][11] == "2")) {
            var imgurl = "stit_"+MenuNo+"_";
            if((imgno)<10)
                imgurl += "0"+imgno+".gif";
            else
                imgurl += imgno+".gif";

            imgno++;
            if(rollNum == 3) {
                rollNum = 1;
                document.write('    </td>');
                document.write('</tr>');
                document.write('<tr>');
                document.write('    <td height=\"5\"></td>');
                document.write('    <td bgcolor=\"#E1E1E1\" width=\"1\"></td>');
                document.write('    <td></td>');
                document.write('    <td bgcolor=\"#E1E1E1\" width=\"1\"></td>');
                document.write('    <td></td>');
                document.write('</tr>');
                document.write('<tr>');
                document.write('    <td colspan=\"5\" bgcolor=\"#EFEFEF\" height=\"1\"></td>');
                document.write('</tr>');
                document.write('<tr>');
                document.write('    <td height=\"25\"></td>');
                document.write('    <td bgcolor=\"#E1E1E1\" width=\"1\"></td>');
                document.write('    <td></td>');
                document.write('    <td bgcolor=\"#E1E1E1\" width=\"1\"></td>');
                document.write('    <td align=\"right\"><a href=\"#top\"><img src=\"/contents/img/common/button/btn_top01.gif\" border=\"0\"></a></td>');
                document.write('</tr>');
                document.write('<tr valign=\"top\">');
                document.write('    <td>');
            } else if(rollNum == 0) {
                rollNum = 1;
            } else {
                rollNum++;
                document.write('    </td>');
                document.write('<td bgcolor="#E1E1E1" width="1"></td>');
                document.write('    <td style="padding-left:10px;">');
            }
            document.write('    <table width=\"186\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">');
            document.write('        <col width=\"19\">');
            document.write('        <col width=\"167\">');
            document.write('        <tr valign=\"top\">');

            if(ArrayValue[i][4] == "") {
                document.write('        <td colspan=\"2\"><img src=\"/contents/img/sitemap/'+imgurl+'\" width=\"185\" height=\"54\" alt=\"\" border=\"0\"></td>');
            } else {
                if(ArrayValue[i][7] == "link") {
                    document.write('        <td colspan=\"2\"><a href=\"'+ArrayValue[i][4]+'\" target=\"_top\"><img src=\"/contents/img/sitemap/'+imgurl+'\" width=\"185\" height=\"54\" alt=\"\" border=\"0\"></a></td>');
                } else if(ArrayValue[i][1].substring(0, ArrayValue[i][1].length-9) == "company") {
                    document.write('        <td colspan=\"2\"><a href=\"'+ArrayValue[i][4]+'\" target=\"_top\"><img src=\"/contents/img/sitemap/'+imgurl+'\" width=\"185\" height=\"54\" alt=\"\" border=\"0\"></a></td>');
                } else if(ArrayValue[i][1].substring(0, ArrayValue[i][1].length-9) == "moral") {
                    document.write("        <td colspan=\"2\"><a href=\"javascript:pop('"+ArrayValue[i][4]+"',806,570,1)\"><img src=\"/contents/img/sitemap/"+imgurl+"\" width=\"185\" height=\"54\" alt=\"\" border=\"0\"></a></td>");
                } else if(ArrayValue[i][1].substring(0, ArrayValue[i][1].length-9) == "login") {
                    if(isLogin()) {
                        document.write('        <td colspan=\"2\"><img src=\"/contents/img/sitemap/'+imgurl+'\" width=\"185\" height=\"54\" alt=\"\" border=\"0\"></td>');
                    } else {
                        document.write('        <td colspan=\"2\"><a href=\"/contents/'+ArrayValue[i][1].substring(0, ArrayValue[i][1].length-9)+'/index.jsp?MenuID='+ArrayValue[i][0]+'\" target=\"_top\"><img src=\"/contents/img/sitemap/'+imgurl+'\" width=\"185\" height=\"54\" alt=\"\" border=\"0\"></a></td>');
                    }
                } else {
                    document.write('        <td colspan=\"2\"><a href=\"/contents/'+ArrayValue[i][1].substring(0, ArrayValue[i][1].length-9)+'/index.jsp?MenuID='+ArrayValue[i][0]+'\" target=\"_top\"><img src=\"/contents/img/sitemap/'+imgurl+'\" width=\"185\" height=\"54\" alt=\"\" border=\"0\"></a></td>');
                }
            }
            document.write('        </tr>');

            //Design ºÎºÐ¿¡¼­ 3Depth¿¡¼­ LineÀÌ »ý±â´Â ºÎºÐ Ãß°¡ÇÏ±â À§ÇÑ count - 20050315 RedStone
            var lineno = 0;
            
            for(var j=0;j<ArrayValue.length;j++) {
            	  if(getMemberSo == "ÁØÈ¸¿ø" && ArrayValue[i][0].search("cyber060") != -1) {
                    if(lineno == 0) {
                        document.write('<tr valign=\"top\" style=\"padding-top:5px;\">');
                        document.write('    <td align=\"right\"><img src=\"/contents/img/common/bullet/bu_map01.gif\" border=\"0\" style=\"margin-top:5px;margin-right:5px\"></td>');
                        document.write('<td><a href=\"/contents/cyber/index.jsp?MenuID=cyber06070000a\" target=\"_top\"><b>ÁØÈ¸¿øÁ¤º¸º¯°æ</b></a></td>');
                        document.write('</tr>');

                        document.write('<tr><td colspan=\"2\" height=\"1\" bgcolor=\"#EFEFEF\"></td></tr>');

                        document.write('<tr valign=\"top\" style=\"padding-top:5px;\">');
                        document.write('    <td align=\"right\"><img src=\"/contents/img/common/bullet/bu_map01.gif\" border=\"0\" style=\"margin-top:5px;margin-right:5px\"></td>');
                        document.write('<td><a href=\"/contents/cyber/index.jsp?MenuID=cyber06080000a\" target=\"_top\"><b>ÁØÈ¸¿øÅ»Åð½ÅÃ»</b></a></td>');
                        document.write('</tr>');
                        
                        document.write('<tr><td colspan=\"2\" height=\"1\" bgcolor=\"#EFEFEF\"></td></tr>');

                        document.write('<tr valign=\"top\" style=\"padding-top:5px;\">');
                        document.write('    <td align=\"right\"><img src=\"/contents/img/common/bullet/bu_map01.gif\" border=\"0\" style=\"margin-top:5px;margin-right:5px\"></td>');
                        document.write('<td><a href=\"/contents/cyber/index.jsp?MenuID=cyber06100000a\" target=\"_top\"><b>ÁØÈ¸¿øÇÊ¸í¼öÁ¤</b></a></td>');
                        document.write('</tr>');
                    }

                    lineno++;
                } else if((ArrayValue[i][1] == ArrayValue[j][10]) && (ArrayValue[j][11] == "3")) {

                    if((getMemberSo == "Fn Honors" || getMemberSo == "Fn Partner" || getMemberSo == "Fn Direct" || getMemberSo == "ÀÏ¹Ý") && (ArrayValue[j][0] == "cyber06070000a" || ArrayValue[j][0] == "cyber06080000a" || ArrayValue[j][0] == "cyber06100000a")) {
                    }  else {

                    //Design ºÎºÐ¿¡¼­ 3Depth¿¡¼­ LineÀÌ »ý±â´Â ºÎºÐ Ãâ·ÂÇÏ´Â ºÎºÐÃß°¡ - 20050315 RedStone
                    if(lineno != 0) {
                        //document.write('        <tr><td height=\"5\"></td></tr>');
                        document.write('        <tr><td colspan=\"2\" height=\"1\" bgcolor=\"#EFEFEF\"></td></tr>');
                    }

                    document.write('<tr valign=\"top\" style=\"padding-top:5px;\">');
                    document.write('    <td align=\"right\"><img src=\"/contents/img/common/bullet/bu_map01.gif\" border=\"0\" style=\"margin-top:5px;margin-right:5px\"></td>');
                    if(ArrayValue[j][4]== "") {
                        document.write('<td><b>'+ArrayValue[j][2]+'</b></td>');
                    } else {
                        if(ArrayValue[j][7] == "link") {
                            document.write('<td><a href=\"'+ArrayValue[j][4]+'\" target=\"_top\"><b>'+ArrayValue[j][2]+'</b></a></td>');
                        } else {
                            document.write('<td><a href=\"/contents/'+ArrayValue[j][1].substring(0, ArrayValue[j][1].length-9)+'/index.jsp?MenuID='+ArrayValue[j][0]+'\" target=\"_top\"><b>'+ArrayValue[j][2]+'</b></a></td>');
                        }
                    }
                    document.write('</tr>');
                    for(var k=0;k<ArrayValue.length;k++) {
                        if((ArrayValue[j][1] == ArrayValue[k][10]) && (ArrayValue[k][11] == "4")) {
                            document.write('<tr valign=\"top\" style=\"padding-top:3px;\">');
                            document.write('    <td></td>');
                            if(ArrayValue[k][4]== "") {
                                document.write('<td>- '+ArrayValue[k][2]+'</td>');
                            } else {
                                if(ArrayValue[k][7] == "link") {
                                    document.write('<td>- <a href=\"'+ArrayValue[k][4]+'\" target=\"_top\">'+ArrayValue[k][2]+'</a></td>');
                                } else {
                                    document.write('<td>- <a href=\"/contents/'+ArrayValue[k][1].substring(0, ArrayValue[k][1].length-9)+'/index.jsp?MenuID='+ArrayValue[k][0]+'\" target=\"_top\">'+ArrayValue[k][2]+'</a></td>');
                                }
                            }
                            document.write('</tr>');
                        }
                    } //end of for : 4depthÀÇ Menu¸¦ Ãâ·ÂÇÑ´Ù.

                    lineno++;
                    
                    }
                    
                }
            } //end of for : 3depthÀÇ Menu¸¦ Ãâ·ÂÇÑ´Ù.
            document.write('        </table>');
        }
    } //end of for : 2depthÀÇ Menu¸¦ Ãâ·ÂÇÑ´Ù.

    if(rollNum == 2) {
        document.write('    </td>');
        document.write('    <td bgcolor=\"#E1E1E1\" width=\"1\"></td>');
        document.write('    <td style=\"padding-left:10px;\"></td>');
        document.write('</tr>');
    } else if(rollNum == 1) {
        document.write('</td>');
        document.write('    <td bgcolor=\"#E1E1E1\" width=\"1\"></td>');
        document.write('    <td style=\"padding-left:10px;\"></td>');
        document.write('    <td bgcolor=\"#E1E1E1\" width=\"1\"></td>');
        document.write('    <td style=\"padding-left:10px;\"></td>');
        document.write('</tr>');
    }
    document.write('</td>');
    document.write('<tr>');
    document.write('<td height=\"5\"></td>');
    document.write('<td bgcolor=\"#E1E1E1\" width=\"1\"></td>');
    document.write('<td></td>');
    document.write('<td bgcolor=\"#E1E1E1\" width=\"1\"></td>');
    document.write('<td></td>');
    document.write('</tr>');
    document.write('<tr>');
    document.write('<td colspan=\"5\" bgcolor=\"#EFEFEF\" height=\"1\"></td>');
    document.write('</tr>');
    document.write('<tr>');
    document.write('<td height=\"25\" colspan=\"5\" align=\"right\"><a href=\"#top\"><img src=\"/contents/img/common/button/btn_top01.gif\" border=\"0\"></a></td>');
    document.write('</tr>');
    document.write('</table>');
}


/********************************************************************************************************
    »ï¼º .COM Å¸ÀÌÆ² Image¿Í À§Ä¡Á¤º¸ Function

    º¯°æ RedStone - 2005/03/08 ÃÖÃÊÀÛ¼º
    º¯°æ RedStone - 2005/03/28 onmenu[i][0] : Menu ID, onmenu[i][1] : Menu ID Location Ãß°¡ ÀÌÈÄ ¹è¿­¹øÈ£ ÇÏ³ª¾¿ ¹Ð¸²À¸·Î ¼öÁ¤
********************************************************************************************************/
function ShowTitle(menuid) {
    for(var i=0;i<onmenu.length;i++) {
        if(onmenu[i][0] == menuid) {
            document.write('<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"639\" height=\"61\">');
            document.write('    <tr>');
            document.write('        <td><img src=\"'+onmenu[i][12]+'\" border=\"0\"></td>');
            document.write('    </tr>');
            document.write('</table>');
            document.write('<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"639\">');
            document.write('    <tr>');
            document.write('        <td height=\"10\"></td>');
            document.write('    </tr>');
            document.write('    <tr>');
            document.write('        <td valign=\"top\" align=\"right\" height=\"30\" style=\"padding-right:20px;\"><span class=\"history\">'+onmenu[i][3]+'</span></td>');
            document.write('    </tr>');
            document.write('</table>');
            return;
        }
    }
}


/********************************************************************************************************
    »ï¼º .COM Å¸ÀÌÆ² Image »ðÀÔ Function

    ÀÛ¼º RedStone - 2005/03/09 ÃÖÃÊÀÛ¼º
    ¼öÁ¤ RedStone - 2005/03/28 onmenu[i][0] : Menu ID, onmenu[i][1] : Menu ID Location Ãß°¡ ÀÌÈÄ ¹è¿­¹øÈ£ ÇÏ³ª¾¿ ¹Ð¸²À¸·Î ¼öÁ¤
********************************************************************************************************/
function TitleMenu(menuid) {
    for(var i=0;i<onmenu.length;i++) {
        if(onmenu[i][0] == menuid) {
            document.write('<img src=\"'+onmenu[i][12]+'\" border=\"0\"');
            return;
        }
    }
}


/********************************************************************************************************
    ½Ç½Ã°£ ¸Å¸Å css »ðÀÔ Function

    ÀÛ¼º ÇãÁØÈ¸ - 2005/03/10 ÃÖÃÊÀÛ¼º
********************************************************************************************************/
function styleWrite(obj){
  obj.writeln("<style>");
  obj.writeln("td { font-size: 12px;  font-family: Dotum,Dotumche,Vedana;color:#666666; letter-spacing:0px; line-height:18px;}");
  obj.writeln(".black { font-size: 12px;  font-family: Dotum,Dotumche,Vedana ;color:#000000;}");
  obj.writeln(".blue { font-size: 12px;  font-family: Dotum,Dotumche,Vedana ;color:#0307FD;}");
  obj.writeln(".red { font-size: 12px;  font-family: Dotum,Dotumche,Vedana ;color:#FF0101;}");
  obj.writeln(".w { font-size: 12px;  font-family: Dotum,Dotumche,Vedana ;color:#FFFFFF;}");
  obj.writeln(".bluenotice {font-size: 12px;  font-family: Dotum,Dotumche,Vedana ;color:#2A76AC;}");
  obj.writeln(".margin {margin-left:20px;}");
  obj.writeln(".popmargin {margin-left:18px;}");
  obj.writeln("body {background-image:url('/contents/img/common/contentright_bg04.gif'); background-repeat:repeat-x;}");
  obj.writeln("a:link { text-decoration: none; color: #666666; font-size: 12px; font-family: Dotum,Dotumche,Vedana ; }");
  obj.writeln("a:visited { text-decoration: none; color: #666666; font-size: 12px; font-family: Dotum,Dotumche,Vedana; }");
  obj.writeln("a:active { text-decoration: none; color: #3179AB; font-size: 12px;font-family: Dotum,Dotumche,Vedana; }");
  obj.writeln("a:hover {  text-decoration:underline; color:#3179AB; font-size: 12px;font-family: Dotum,Dotumche,Vedana; }");
  obj.writeln("a.content01:link { text-decoration: none; color: #666666; font-size: 12px; font-family: Dotum,Dotumche,Vedana; }");
  obj.writeln("a.content01:visited { text-decoration: none; color: #666666; font-size: 12px; font-family: Dotum,Dotumche,Vedana; }");
  obj.writeln("a.content01:active { text-decoration: none; color: #4191AD; font-size: 12px;font-family: Dotum,Dotumche,Vedana; }");
  obj.writeln("a.content01:hover {  text-decoration:underline; color:#4191AD; font-size: 12px;font-family: Dotum,Dotumche,Vedana; }");
  obj.writeln("a.bluenotice:link { text-decoration: none; color: #2A76AC; font-size: 12px; font-family: Dotum,Dotumche,Vedana ; }");
  obj.writeln("a.bluenotice:visited { text-decoration: none; color: #2A76AC; font-size: 12px; font-family: Dotum,Dotumche,Vedana; }");
  obj.writeln("a.bluenotice:active { text-decoration: none; color: #2A76AC; font-size: 12px;font-family: Dotum,Dotumche,Vedana; }");
  obj.writeln("a.bluenotice:hover {  text-decoration:none; color:#2A76AC; font-size: 12px;font-family: Dotum,Dotumche,Vedana; }");
  obj.writeln("a.main:link { text-decoration: none; color: #666666;  font-family: Dotum,Dotumche,Vedana ; }");
  obj.writeln("a.main:visited { text-decoration: none; color: #666666;  font-family: Dotum,Dotumche,Vedana; }");
  obj.writeln("a.main:active { text-decoration: none; color: #000000; font-family: Dotum,Dotumche,Vedana; }");
  obj.writeln("a.main:hover {  text-decoration:none; color:#000000; font-family: Dotum,Dotumche,Vedana; }");
  obj.writeln(".history { font-size: 11px;  font-family: Dotum,Dotumche,Vedana ;color:#666666;}");
  obj.writeln("a.history:link { text-decoration: none; color: #666666; font-size: 11px; font-family: Dotum,Dotumche,Vedana; }");
  obj.writeln("a.history:visited { text-decoration: none; color: #666666; font-size: 11px; font-family: Dotum,Dotumche,Vedana; }");
  obj.writeln("a.history:active { text-decoration: none; color: #666666; font-size: 11px;font-family: Dotum,Dotumche,Vedana; }");
  obj.writeln("a.history:hover {  text-decoration:underline; color:#666666; font-size: 11px;font-family: Dotum,Dotumche,Vedana; }");
  obj.writeln("a.right:link { text-decoration: none; color: #555555; font-size: 11px; font-family: Dotum,Dotumche,Vedana; }");
  obj.writeln("a.right:visited { text-decoration: none; color: #555555; font-size: 11px; font-family: Dotum,Dotumche,Vedana; }");
  obj.writeln("a.right:active { text-decoration: none; color: #555555; font-size: 11px;font-family: Dotum,Dotumche,Vedana; }");
  obj.writeln("a.right:hover {  text-decoration:underline; color:#555555; font-size: 11px;font-family: Dotum,Dotumche,Vedana; }");
  obj.writeln("select { color:#666666; font-family:Dotum,Dotumche,verdana; font-size:12px; background-color:#FFFFFF; Border:1px solid #CBCBCB}");
  obj.writeln(".box01 {color:#666666; font-family:Dotum,Dotumche,verdana; font-size:12px; background-color:#FFFFFF; Border:1px solid #CBCBCB }");
  obj.writeln(".box02 {color:#666666; font-family:Dotum,Dotumche,verdana; font-size:12px; background-color:#FAF7F3; Border:1px solid #D4C5B4 }");
  obj.writeln(".boxout {color:#666666; font-family:Dotum,Dotumche,verdana; font-size:12px; background-color:#FAF7F3; Border:1px solid #000000; }");
  obj.writeln(".s_tabletext { font-size: 12px;  font-family: Dotum,Dotumche,Vedana ;color:#417295; padding : 3 0 1 5 ;background-color:#E6F1F8; ;line-height:14px;}");
  obj.writeln(".c3 { font-size: 12px;  font-family: Dotum,Dotumche,Vedana;color:#333333; letter-spacing:0px;line-height:14px;}");
  obj.writeln(".s_blue { font-size: 12px;  font-family: Dotum,Dotumche,Vedana ;color:#0307FD; padding : 3 0 1 5 ;line-height:14px;}");
  obj.writeln(".s_blueC { font-size: 12px;  font-family: Dotum,Dotumche,Vedana ;color:#0307FD; text-align:center; padding : 3 0 1 0 ;line-height:14px;}");
  obj.writeln(".s_blueR { font-size: 12px;  font-family: Dotum,Dotumche,Vedana ;color:#0307FD; text-align:right; padding : 3 5 1 0 ;line-height:14px;}");
  obj.writeln(".s_red { font-size: 12px;  font-family: Dotum,Dotumche,Vedana ;color:#FF0101; padding :3 0 1 5 ;line-height:14px;}");
  obj.writeln(".s_redC { font-size: 12px;  font-family: Dotum,Dotumche,Vedana ;color:#FF0101; text-align:center; padding : 3 0 1 0 ;line-height:14px;}");
  obj.writeln(".s_redR { font-size: 12px;  font-family: Dotum,Dotumche,Vedana ;color:#FF0101; text-align:right; padding : 3 5 1 0 ;line-height:14px;}");
  obj.writeln(".s_black { font-size: 12px;  font-family: Dotum,Dotumche,Vedana ;color:#000000; padding : 3 0 1 5 ;line-height:14px;}");
  obj.writeln(".s_blackC { font-size: 12px;  font-family: Dotum,Dotumche,Vedana ;color:#000000; text-align:center; padding : 3 0 1 0 ;line-height:14px;}");
  obj.writeln(".s_blackR { font-size: 12px;  font-family: Dotum,Dotumche,Vedana ;color:#000000; text-align:right; padding : 3 5 1 0 ;line-height:14px;}");
  obj.writeln(".s_gray { font-size: 12px;  font-family: Dotum,Dotumche,Vedana ;color:#666666; padding : 3 0 1 8 ;line-height:14px;}");
  obj.writeln(".s_grayC { font-size: 12px;  font-family: Dotum,Dotumche,Vedana ;color:#666666; padding : 3 0 1 0 ;line-height:14px; text-align:center;}");
  obj.writeln(".s_grayR { font-size: 12px;  font-family: Dotum,Dotumche,Vedana ;color:#666666; padding : 3 8 1 0 ;line-height:14px; text-align:right;}");
  obj.writeln(".s_tgrayR { font-size: 12px;  font-family: Dotum,Dotumche,Vedana ;color:#666666; padding : 3 5 1 0 ;line-height:14px; text-align:right;}");
  obj.writeln(".s_lblue { font-size: 12px;  font-family: Dotum,Dotumche,Vedana ;color:#52AAE8; padding : 3 0 1 5 ;line-height:14px;}");
  obj.writeln(".s_lblueC { font-size: 12px;  font-family: Dotum,Dotumche,Vedana ;color:#52AAE8; text-align:center; padding : 3 0 1 0 ;line-height:14px;}");
  obj.writeln(".s_lblueR { font-size: 12px;  font-family: Dotum,Dotumche,Vedana ;color:#52AAE8; text-align:right; padding : 3 5 1 0 ;line-height:14px;}");
  obj.writeln(".s_lred { font-size: 12px;  font-family: Dotum,Dotumche,Vedana ;color:#FF7855; padding : 3 0 1 5 ;line-height:14px;}");
  obj.writeln(".s_lredC { font-size: 12px;  font-family: Dotum,Dotumche,Vedana ;color:#FF7855; text-align:center; padding : 3 0 1 0 ;line-height:14px;}");
  obj.writeln(".s_lredR { font-size: 12px;  font-family: Dotum,Dotumche,Vedana ;color:#FF7855; text-align:right; padding : 3 5 1 0 ;line-height:14px;}");
  obj.writeln(".s_tabletext { font-size: 12px;  font-family: Dotum,Dotumche,Vedana ;color:#417295; padding : 3 0 1 5 ;background-color:#E6F1F8; ;line-height:14px;}");
  obj.writeln(".s_tabletextC { font-size: 12px;  font-family: Dotum,Dotumche,Vedana ;color:#417295;text-align:center; padding : 3 0 1 0 ; background-color:#E6F1F8; ;line-height:14px;}");
  obj.writeln(".bdMode01 {border-collapse:collapse; word-break:break-all}");
  obj.writeln(".boxblue {color:#417295; font-family:Dotum,Dotumche,verdana; font-size:12px; background-color:#E6F1F8; Border:1px solid #B8CFDD}");
  obj.writeln(".boxpink {color:#E54D27; font-family:Dotum,Dotumche,verdana; font-size:12px; background-color:#F9ECE8; Border:1px solid #F1BAAC}");
  obj.writeln(".boxgreen {color:#328938; font-family:Dotum,Dotumche,verdana; font-size:12px; background-color:#E7F6E8; Border:1px solid #B4D6B7}");
  obj.writeln("</style>");
}

/********************************************************************************************************
    »ï¼º .COM Function

    ÀÛ¼º ÇãÁØÈ¸ - 2005/03/12
********************************************************************************************************/
function mainPageGo(leftId, uri){
    parent.leftFrame.setLeftMenu(leftId);
    if(uri != "") self.location.href = uri;
}

/********************************************************************************************************
    »ï¼º .COM Quick Menu¸¦ Menu¿¡ µû¶ó¼­ ´Ù¸£°Ô ºÎ¸£´Â Function

    ÀÛ¼º RedStone - 2005/03/14
********************************************************************************************************/
function quickMenuLink(menuid) {
    if(menuid.search("finance") != -1) {
        document.write("<script language=\"JavaScript\" src=\"/contents/common/js/finance_quick.js\"></"+"script>");
    } else if(menuid.search("stock") != -1) {
        document.write("<script language=\"JavaScript\" src=\"/contents/common/js/stock_quick.js\"></"+"script>");
    } else if(menuid.search("invest") != -1) {
        document.write("<script language=\"JavaScript\" src=\"/contents/common/js/invest_quick.js\"></"+"script>");
    } else if(menuid.search("academy") != -1) {
        document.write("<script language=\"JavaScript\" src=\"/contents/common/js/academy_quick.js\"></"+"script>");
    } else if(menuid.search("customer") != -1) {
        document.write("<script language=\"JavaScript\" src=\"/contents/common/js/customer_quick.js\"></"+"script>");
    } else if(menuid.search("cyber") != -1) {
        document.write("<script language=\"JavaScript\" src=\"/contents/common/js/cyber_quick.js\"></"+"script>");
    } else if(menuid.search("honorsc") != -1) {
        document.write("<script language=\"JavaScript\" src=\"/contents/common/js/honorsc_quick.js\"></"+"script>");
    }
}


/********************************************************************************************************
    »ï¼º .COM Menu ID¸¦ ¹ÞÀ¸¸é Menu ID LocationÀ» ¹ÝÈ¯ÇÏ´Â function

    ÀÛ¼º RedStone - 2005/03/28
********************************************************************************************************/
function MenuIDLocation(menuid) {
    for(var i=0;i<onmenu.length;i++) {
        if(onmenu[i][0] == menuid) {
            return onmenu[i][1];
        }
    }
}


/********************************************************************************************************
    »ï¼º .COM Menu ID¸¦ ¹ÞÀ¸¸é LocationÀ» ¹ÝÈ¯ÇÏ´Â function

    ÀÛ¼º RedStone - 2005/03/31
********************************************************************************************************/
function MenuLocation(menuid) {
    for(var i=0;i<onmenu.length;i++) {
        if(onmenu[i][0] == menuid) {
            return onmenu[i][7];
        }
    }
}