//

// online : ¿Â¶óÀÎ ÁöÁ¡, mall : ±ÝÀ¶»óÇ°¸ô, research : ¸®¼­Ä¡¼¾ÅÍ, asset : ÀÚ»ê°ü¸®, giup : ±â¾÷±ÝÀ¶, wts : Æ®·¹ÀÌµù, company : È¸»ç¼Ò°³, support : °í°´Áö¿ø, community : Ä¿¹Â´ÏÆ¼, global : ´º½ºÀÌº¥Æ®, membership : È¸¿ø°ü¸®,  myaccount : myaccount, sitemap : »çÀÌÆ®¸Ê

//

//alert(myAdd[3]) : Æú´õ¸í

function popups(page,name,x,y){
	opt = "toolbar=no,alwaysRaised=no,location=no,status=no,menubar=no,scrollbars=auto,width="+x+",height="+y+",resizable=no,hotkey=no,dependent=no,screenX=0,screenY=0, top=0, left=0"
	window.open(page,name,opt)
}

function popOpenNew(url) {
              	window.open(url,"", "toolbar=yes,location=yes, alwaysRaised=no,status=yes,menubar=yes,scrollbars=yes,resizeable=no, screenX=0, screenY=0, top=0, left=0")
}

//¿Â¶óÀÎÁöÁ¡ ÀÏ¶§

String.prototype.trim = function () {
	return this.replace(/^\s*/, "").replace(/\s*$/, "");
}

var mikExp = /[$\\@\\\#%\^\&\*\(\)\[\]\+\_\{\}\`\~\=\|]/;

function checkValue(value) {
	if(value.search(mikExp) == -1) {
		return true;
	}
	else {
		//alert("ÁË¼ÛÇÕ´Ï´Ù. ¾Æ·¡ÀÇ Æ¯¼ö¹®ÀÚ´Â »ç¿ëÇÏ½Ç¼ö ¾ø½À´Ï´Ù.\n\r\n\r@ $ % ^ & * # ( ) [ ] \\ { + } ` ~ =  |");
                                           alert("ÁË¼ÛÇÕ´Ï´Ù. Æ¯¼ö¹®ÀÚ´Â »ç¿ëÇÏ½Ç¼ö ¾ø½À´Ï´Ù.");   
		return false;
	}
}

function srchSubmit() {
	var f = document.searchForm;
	var searchValue = f.searchValue.value;

	if (!checkValue(searchValue)) {
		f.searchValue.focus();
		return;
	}

	if (searchValue.trim() == '' || str.trim() == 'null') {
		alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇØ ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.");
		f.searchValue.focus();
		return;
	}

//	location.href = "http://search.hanaw.com/icss/search/sub.jsp?icss:search:query:field=all&icss:search:secid=faq&icss:search:query="+encodeURI(searchValue);

	location.href = "http://search.hanaw.com/icss/search/sub.jsp?icss:search:query:field=all&icss:search:secid=faq&icss:search:query="+encodeURI(searchValue)+"&islogin="+isLogin+"&isstaff="+isStaff+"&usernm="+encodeURI(userNm)+"&lasttime="+lastTime;
}

// 2010-03-04 ÆÝµå¸¶½ºÅÍ »ó´ã ½ÅÃ» À§ÇØ Ãß°¡ ¼Ò½º
// [ ÆÝµå¸¶½ºÅÍ »ó´ã ½ÅÃ»  È­¸é ] popup
function openFundMasterPopup(){

	var positionX = (screen.width-450)/2;
	var positionY = (screen.height-250)/2;
	
	var url = "/pms/fundsvradd/fund_master_consult.jsp";	
	XecureGate(url,"fund_master","left="+positionX+",top="+positionY+",width=544,height=508,toolbar=no,scrollbars=no" );	
}

// 2010-02-09 Flash ±¸ÇöÀ§ÇØ Æ÷ÇÔ. Start ////////////////////
//v1.7
// Flash Player Version Detection
// Detect Client Browser type
// Copyright 2005-2007 Adobe Systems Incorporated.  All rights reserved.
var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;

function ControlVersion()
{
	var version;
	var axo;
	var e;

	// NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry

	try {
		// version will be set for 7.X or greater players
		axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
		version = axo.GetVariable("$version");
	} catch (e) {
	}

	if (!version)
	{
		try {
			// version will be set for 6.X players only
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
			
			// installed player is some revision of 6.0
			// GetVariable("$version") crashes for versions 6.0.22 through 6.0.29,
			// so we have to be careful. 
			
			// default to the first public version
			version = "WIN 6,0,21,0";

			// throws if AllowScripAccess does not exist (introduced in 6.0r47)		
			axo.AllowScriptAccess = "always";

			// safe to call for 6.0r47 or greater
			version = axo.GetVariable("$version");

		} catch (e) {
		}
	}

	if (!version)
	{
		try {
			// version will be set for 4.X or 5.X player
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
			version = axo.GetVariable("$version");
		} catch (e) {
		}
	}

	if (!version)
	{
		try {
			// version will be set for 3.X player
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
			version = "WIN 3,0,18,0";
		} catch (e) {
		}
	}

	if (!version)
	{
		try {
			// version will be set for 2.X player
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
			version = "WIN 2,0,0,11";
		} catch (e) {
			version = -1;
		}
	}
	
	return version;
}

// JavaScript helper required to detect Flash Player PlugIn version information
function GetSwfVer(){
	// NS/Opera version >= 3 check for Flash plugin in plugin array
	var flashVer = -1;
	
	if (navigator.plugins != null && navigator.plugins.length > 0) {
		if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
			var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
			var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;
			var descArray = flashDescription.split(" ");
			var tempArrayMajor = descArray[2].split(".");			
			var versionMajor = tempArrayMajor[0];
			var versionMinor = tempArrayMajor[1];
			var versionRevision = descArray[3];
			if (versionRevision == "") {
				versionRevision = descArray[4];
			}
			if (versionRevision[0] == "d") {
				versionRevision = versionRevision.substring(1);
			} else if (versionRevision[0] == "r") {
				versionRevision = versionRevision.substring(1);
				if (versionRevision.indexOf("d") > 0) {
					versionRevision = versionRevision.substring(0, versionRevision.indexOf("d"));
				}
			}
			var flashVer = versionMajor + "." + versionMinor + "." + versionRevision;
		}
	}
	// MSN/WebTV 2.6 supports Flash 4
	else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4;
	// WebTV 2.5 supports Flash 3
	else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3;
	// older WebTV supports Flash 2
	else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2;
	else if ( isIE && isWin && !isOpera ) {
		flashVer = ControlVersion();
	}	
	return flashVer;
}

// When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available
function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision)
{
	versionStr = GetSwfVer();
	if (versionStr == -1 ) {
		return false;
	} else if (versionStr != 0) {
		if(isIE && isWin && !isOpera) {
			// Given "WIN 2,0,0,11"
			tempArray         = versionStr.split(" "); 	// ["WIN", "2,0,0,11"]
			tempString        = tempArray[1];			// "2,0,0,11"
			versionArray      = tempString.split(",");	// ['2', '0', '0', '11']
		} else {
			versionArray      = versionStr.split(".");
		}
		var versionMajor      = versionArray[0];
		var versionMinor      = versionArray[1];
		var versionRevision   = versionArray[2];

        	// is the major.revision >= requested major.revision AND the minor version >= requested minor
		if (versionMajor > parseFloat(reqMajorVer)) {
			return true;
		} else if (versionMajor == parseFloat(reqMajorVer)) {
			if (versionMinor > parseFloat(reqMinorVer))
				return true;
			else if (versionMinor == parseFloat(reqMinorVer)) {
				if (versionRevision >= parseFloat(reqRevision))
					return true;
			}
		}
		return false;
	}
}

function AC_AddExtension(src, ext)
{
  if (src.indexOf('?') != -1)
    return src.replace(/\?/, ext+'?'); 
  else
    return src + ext;
}

function AC_Generateobj(objAttrs, params, embedAttrs) 
{ 
  var str = '';
  if (isIE && isWin && !isOpera)
  {
    str += '<object ';
    for (var i in objAttrs)
    {
      str += i + '="' + objAttrs[i] + '" ';
    }
    str += '>';
    for (var i in params)
    {
      str += '<param name="' + i + '" value="' + params[i] + '" /> ';
    }
    str += '</object>';
  }
  else
  {
    str += '<embed ';
    for (var i in embedAttrs)
    {
      str += i + '="' + embedAttrs[i] + '" ';
    }
    str += '> </embed>';
  }

  document.write(str);
}

function AC_FL_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
     , "application/x-shockwave-flash"
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_SW_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000"
     , null
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
  var ret = new Object();
  ret.embedAttrs = new Object();
  ret.params = new Object();
  ret.objAttrs = new Object();
  for (var i=0; i < args.length; i=i+2){
    var currArg = args[i].toLowerCase();    

    switch (currArg){	
      case "classid":
        break;
      case "pluginspage":
        ret.embedAttrs[args[i]] = args[i+1];
        break;
      case "src":
      case "movie":	
        args[i+1] = AC_AddExtension(args[i+1], ext);
        ret.embedAttrs["src"] = args[i+1];
        ret.params[srcParamName] = args[i+1];
        break;
      case "onafterupdate":
      case "onbeforeupdate":
      case "onblur":
      case "oncellchange":
      case "onclick":
      case "ondblClick":
      case "ondrag":
      case "ondragend":
      case "ondragenter":
      case "ondragleave":
      case "ondragover":
      case "ondrop":
      case "onfinish":
      case "onfocus":
      case "onhelp":
      case "onmousedown":
      case "onmouseup":
      case "onmouseover":
      case "onmousemove":
      case "onmouseout":
      case "onkeypress":
      case "onkeydown":
      case "onkeyup":
      case "onload":
      case "onlosecapture":
      case "onpropertychange":
      case "onreadystatechange":
      case "onrowsdelete":
      case "onrowenter":
      case "onrowexit":
      case "onrowsinserted":
      case "onstart":
      case "onscroll":
      case "onbeforeeditfocus":
      case "onactivate":
      case "onbeforedeactivate":
      case "ondeactivate":
      case "type":
      case "codebase":
      case "id":
        ret.objAttrs[args[i]] = args[i+1];
        break;
      case "width":
      case "height":
      case "align":
      case "vspace": 
      case "hspace":
      case "class":
      case "title":
      case "accesskey":
      case "name":
      case "tabindex":
        ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
        break;
      default:
        ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
    }
  }
  ret.objAttrs["classid"] = classid;
  if (mimeType) ret.embedAttrs["type"] = mimeType;
  return ret;
}
// 2010-02-09 Flash ±¸ÇöÀ§ÇØ Æ÷ÇÔ. End ////////////////////

//°øÅë
	document.write("<ul class='bannerBox'>");
	document.write("<li><a href=/common/html/XecureLink.html?returnURL=/online/accmgt/mnyoutAcntReg_input.jsp><img src='/images/mainbnnr_myAccount05.gif' alt='\¿Â¶óÀÎ»ç¿ë°èÁÂµî·Ï'\ /></a></li>");
	document.write("</ul>");


//¿Â¶óÀÎÁöÁ¡
if(myAdd[3] == "online") {
	if(myAdd[4] == "fund" ) {
		document.write("		<ul class=bannerBox>");
		document.write("			<li><a href=Javascript:XecureGate(\'/mall/product/search/myMatch_search.jsp\');><img src=/images/mainbnnr_mall01.gif alt='\ÆÝµå»ó¼¼°Ë»ö'\></a></li>");
		document.write("			<li><a href=Javascript:XecureGate(\'/research/abroad_earning.jsp\');><img src=/images/mainbnnr_mall02.gif alt='\ÇØ¿ÜÁõ½Ã'\></a></li>");
		document.write("			<li><a href='/support/customer/guide/index_g01.html'><img src=/images/mainbnnr_mall03.gif alt='\¿Â¶óÀÎÆÝµå¸Å¸Å°¡ÀÌµå'\></a></li>");
		document.write("			<li><a href=Javascript:XecureGate(\'/wts/bond/outside/outside_due_als.jsp\');><img src=/images/mainbnnr_mall04.gif alt='\Ã¤±Ç¸Å¸Å'\></a></li>");
<!--		document.write("<li><a href=javascript:popups(\'http://mentors.fnup.com/hndt/Hanadaetoo_Special2.swf?MEDIA_CODE=screen2\',\'newwin\',720,440)><img src=/images/mainbnnr_mall05.gif alt='\ÆÝµå¸Å¸Å ÀÌ¿ë¾È³»'\></a></li>"); -->
		document.write("		</ul>");	

	} else {

		if(myAdd[4] == "loan" ) { 
			document.write('	<!-- °í°´µî±Þ -->');
			document.write('	<iframe width="164" height="98" scrolling="No" frameborder="0" src="/online/iframe_left_loan.jsp"></iframe>');
			document.write('	<!--// °í°´µî±Þ -->');
			document.write('	');
		}
		
		document.write("		<ul class=bannerBox>");
		document.write("			<li><a href=/common/html/XecureLink.html?returnURL=/myaccount/personal_mng/psw_mng/PswMng_Main.jsp><img src=/images/mainbnnr_online01.gif alt='\IDºñ¹Ð¹øÈ£º¯°æ'\></a></li>");
		document.write("			<li><a href=/support/system/overview/index.html><img src=/images/mainbnnr_online02.gif alt='\Hi-Five ´Ù¿î·Îµå'\></a></li>");
		document.write("			<li><a href=javascript:popOpen(\'/common/consultLink.jsp\')><img src=/images/mainbnnr_online03.gif alt='\¿Â¶óÀÎ»ó´ã'\></a></li>");
		document.write("		</ul>");
	}
}

// ±ÝÀ¶»óÇ°¸ô ÀÏ¶§
if(myAdd[3] == "mall") {

if( myAdd[4] == "wrap" ) {
document.write("		<ul class=bannerBox>");
document.write("			<li><a href=/common/html/XecureLink.html?returnURL=/myaccount/asset_report/asset/Asset_Main.jsp?tab_gb=6><img src=/images/mainbnnr_mall06.gif alt='\WrapÀÜ°íÁ¶È¸'\></a></li>");
document.write("			<li><a href=/common/html/XecureLink.html?returnURL=/mall/product/search/myMatch_search.jsp><img src=/images/mainbnnr_mall01.gif alt='\ÆÝµå»ó¼¼°Ë»ö'\></a></li>");
document.write("			<li><a href=/common/html/XecureLink.html?returnURL=/research/abroad_earning.jsp><img src=/images/mainbnnr_mall02.gif alt='\ÇØ¿ÜÁõ½Ã'\></a></li>");
document.write("			<li><a href=/support/customer/guide/index_g01.html><img src=/images/mainbnnr_mall03.gif alt='\¿Â¶óÀÎÆÝµå¸Å¸Å°¡ÀÌµå'\></a></li>");
document.write("			<li><a href=/common/html/XecureLink.html?returnURL=/wts/bond/outside/outside_due_als.jsp><img src=/images/mainbnnr_mall04.gif alt='\Ã¤±Ç¸Å¸Å'\></a></li>");
document.write("		</ul>");
} else {

if(myAdd[5] == "search" ) { 
} else {
document.write("		<ul class=bannerBox>");
document.write("			<li><a href=/common/html/XecureLink.html?returnURL=/mall/product/search/myMatch_search.jsp><img src=/images/mainbnnr_mall01.gif alt='\ÆÝµå»ó¼¼°Ë»ö'\></a></li>");
document.write("			<li><a href=/common/html/XecureLink.html?returnURL=/research/abroad_earning.jsp><img src=/images/mainbnnr_mall02.gif alt='\ÇØ¿ÜÁõ½Ã'\></a></li>");
document.write("			<li><a href=/support/customer/guide/index_g01.html><img src=/images/mainbnnr_mall03.gif alt='\¿Â¶óÀÎÆÝµå¸Å¸Å°¡ÀÌµå'\></a></li>");
document.write("			<li><a href=/common/html/XecureLink.html?returnURL=/wts/bond/outside/outside_due_als.jsp><img src=/images/mainbnnr_mall04.gif alt='\Ã¤±Ç¸Å¸Å'\></a></li>");
document.write("		</ul>");

}
}

if(myAdd[5] == "domestic" || myAdd[5] == "feegalow" || myAdd[5] == "overseas" || myAdd[5] == "online" || myAdd[5] == "cma" || myAdd[5] == "els" || myAdd[5] == "loan" || myAdd[5] == "wrap" || myAdd[5] == "insurance" || myAdd[5] == "trust") {
	
}
	
if(myAdd[4] == "support" ) { } else {
	
}
	
}	

// ¸®¼­Ä¡ ÀÏ¶§
if(myAdd[3] == "research") {
document.write("		<div class=bannerBoxTop></div>");
document.write("		<div class=bannerBoxBody>");
document.write("			<ul>");
document.write("				<li><a href=/research/vod/index.html class=research1><span>µ¿¿µ»ó ¸®¼­Ä¡</span></a></li>");
document.write("				<li><a href=Javascript:XecureGate(\'/research/ereport_analysis.jsp\'); class=research2><span>ENGLISH REPORT</span></a></li>");
document.write("				<li><a href=/research/center/intro/index.html class=research3><span>¸®¼­Ä¡¼¾ÅÍ ¼Ò°³</span></a></li>");
document.write("			</ul>");
document.write("			<div class=clear></div>");
document.write("		</div>");
document.write("		<div class=bannerBoxBottom></div>");
document.write("		");
document.write("		<ul class=bannerBox>");
document.write("			<li><a href=/common/html/XecureLink.html?returnURL=/wts/stock/ST_StkElwOrdBody.jsp><img src=/images/mainbnnr_research01.gif alt='\ÁÖ½Ä¸Å¸Å'\></a></li>");
document.write("			<li><a href=/asset/report/guide/index.html><img src=/images/mainbnnr_research01-16.gif alt='\¿ù°£ÀÚ»ê°ü¸® °¡ÀÌµå'\></a></li>");
document.write("		</ul>");
}

// ÆÝµåÅ¬¸®´Ð ÀÏ¶§
if(myAdd[3] == "asset" || myAdd[3] == "pms") {
document.write("		<ul class=bannerBox>");
document.write("			<li><a href=Javascript:XecureGate(\'/pms/myfundesti/investment_result_tab_1.jsp\');><img src=/images/mainbnnr_fundclinic06.gif alt='\My ÆÝµå'\></a></li>");
document.write("			<li><a href=/common/html/XecureLink.html?returnURL=/pms/guest/gyeolgwa_jeonmang.jsp><img src=/images/mainbnnr_fundclinic01.gif alt='\½ÃÀåÀü¸Á'\></a></li>");
document.write("			<li><a href=/common/html/XecureLink.html?returnURL=/pms/guest/chucheonfund.jsp?gubun=000><img src=/images/mainbnnr_fundclinic02.gif alt='\ÃßÃµÆÝµå'\></a></li>");
document.write("			<li><a href=/asset/report/guide/index.html><img src=/images/mainbnnr_fundclinic03.gif alt='\¿ù°£ÀÚ»ê°ü¸® °¡ÀÌµå'\></a></li>");
document.write("			<li><a href=javascript:openFundMasterPopup();><img src=/images/mainbnnr_fundclinic04.gif alt='\ÆÝµå¸¶½ºÅÍ»ó´ã½ÅÃ»'\></a></li>");
document.write("			<li><a href=javascript:popOpen(\'/common/consultLink.jsp\')><img src=/images/mainbnnr_fundclinic05.gif alt='\¿Â¶óÀÎ»ó´ã'\></a></li>");
<!-- document.write("<li><a href=javascript:popups(\'http://mentors.fnup.com/hndt/Hanadaetoo_Special2.swf?MEDIA_CODE=screen4\',\'newwin\',720,440)><img src='/images/mainbnnr_fundclinic07.gif' alt='ÆÝµå Å¬¸®´Ð ÀÌ¿ë¾È³»'\ /></a></li>"); //-->
<!-- document.write("<li><a href=javascript:popups(\'http://mentors.fnup.com/hndt/Hanadaetoo_Special2.swf?MEDIA_CODE=screen5\',\'newwin\',720,440)><img src='/images/mainbnnr_fundclinic08.gif' alt='My ÆÝµå ÀÌ¿ë¾È³»'\ /></a></li>");  //-->

document.write("		</ul>");
}

// °í°´Áö¿ø ÀÏ¶§
if(myAdd[3] == "support") {
document.write("		<ul class=bannerBox>");
document.write("			<li><a href=/common/html/XecureLink.html?returnURL=/membership/memberJoin1.jsp><img src=/images/mainbnnr_support01.gif alt='\È¸¿ø°¡ÀÔ'\></a></li>");
document.write("			<li><a href=/company/bi/branch/index.html><img src=/images/mainbnnr_support02.gif alt='\¿µ¾÷Á¡¾È³»'\></a></li>");
document.write("			<li><a href=javascript:remote()><img src=/images/mainbnnr_support03.gif alt='\PC¿ø°ÝÁö¿ø'\></a></li>");
document.write("			<li><a href=/support/ahnlab/ahnlab.html><img src=/images/mainbnnr_support04.gif alt='\¿Â¶óÀÎº¸¾È¼­ºñ½º'\></a></li>");
document.write("			<li><a href=/support/system/overview/index.html><img src=/images/mainbnnr_support05.gif alt='\Hi-Five´Ù¿î·Îµå'\></a></li>");
<!-- document.write("<li><a href=javascript:popups(\'http://mentors.fnup.com/hndt/Hanadaetoo_Special2.swf?MEDIA_CODE=screen1\',\'newwin\',720,440)><img src='/images/mainbnnr_support06.gif' alt='\È¨ÆäÀÌÁö ±â´É¾È³»'\ /></a></li>"); //-->
document.write("		</ul>");
}

//´º½ºÀÌº¥Æ®
if(myAdd[3] == "global") {
document.write("		<ul class=bannerBox>");
document.write("			<li><a href=/common/html/XecureLink.html?returnURL=/membership/memberJoin1.jsp><img src=/images/mainbnnr_newsEvent01.gif alt='\È¸¿ø°¡ÀÔ'\></a></li>");
document.write("			<li><a href=/support/system/overview/index.html><img src=/images/mainbnnr_newsEvent02.gif alt='\Hi-Five´Ù¿î·Îµå'\></a></li>");
document.write("			<li><a href=javascript:popOpen(\'/common/consultLink.jsp\')><img src=/images/mainbnnr_newsEvent03.gif alt='\¿Â¶óÀÎ»ó´ã'\></a></li>");
document.write("		</ul>");
}


// Æ®·¹ÀÌµù ÀÏ¶§
if(myAdd[3] == "wts") {
if(myAdd[4] == "bond") { 
document.write("		<div class=bannerBoxTop></div>");
document.write("		<div class=bannerBoxBody>");
document.write("			<ul>");
document.write("				<li><a href=/wts/bond/daily/index.html class=list1><span>Ã¤±Ç½ÃÈ²(Daily)</span></a></li>");
document.write("				<li><a href=/wts/bond/point/index.html class=list2><span>Ã¤±ÇÅõÀÚÆ÷ÀÎÆ®</span></a></li>");
document.write("				<li><a href=/wts/bond/rookie/index.html class=list3><span>ÃÊº¸ÅõÀÚ°¡ÀÌµå</span></a></li>");
document.write("				<li><a href=/wts/bond/guide/index.html class=list4><span>Ã¤±Ç°¡ÀÌµå</span></a></li>");
document.write("				<li><a href=/wts/bond/class/index.html class=list5><span>ÅõÀÚ±³½Ç</span></a></li>");
document.write("				<li><a href=/wts/bond/easy/index.html class=list6><span>¾Ë±â½¬¿îÃ¤±Ç¿ë¾î</span></a></li>");
document.write("				<li><a href=/wts/bond/money_story/index.html class=list7><span>µ·¹ö´Â ÀÌ¾ß±â</span></a></li>");
document.write("			</ul>");
document.write("			<div class=clear></div>");
document.write("		</div>");
document.write("		<div class=bannerBoxBottom></div>");

document.write("		");
document.write("		<ul class=bannerBox>");
document.write("			<li><a href=/support/system/overview/index.html><img src=/images/mainbnnr_tradingBond01.gif alt='\Hi-Five ´Ù¿î·Îµå'\></a></li>");
document.write("			<li><a href=javascript:popOpen(\'/common/consultLink.jsp\')><img src=/images/mainbnnr_tradingBond02.gif alt='\¿Â¶óÀÎ»ó´ã'\></a></li>");
document.write("		</ul>");

} else {
document.write("		<ul class=bannerBox>");
document.write("			<li><a href=javascript:XecureGate(\'/wts/stock/ST_IntgScr.jsp\',\'WindowName\',\'width=992,height=582,toolbar=no,scrollbars=no\');><img src=/images/mainbnnr_trading01.gif alt='\ONE STOP TRADING'\></a></li>");
document.write("			<li><a href=/support/system/overview/index.html><img src=/images/mainbnnr_trading02.gif alt='\Hi-Five ´Ù¿î·Îµå'\></a></li>");
document.write("			<li><a href=javascript:popOpen(\'/common/consultLink.jsp\')><img src=/images/mainbnnr_trading03.gif alt='\¿Â¶óÀÎ»ó´ã'\></a></li>");
document.write("		</ul>");

}
}

// myaccount ÀÏ¶§
if(myAdd[3] == "myaccount") {
document.write("		<ul class=bannerBox>");
document.write("			<li><a href=/common/html/XecureLink.html?returnURL=/myaccount/asset_report/asset/Asset_Main.jsp><img src=/images/mainbnnr_myAccount01.gif alt='\ÃÑÀÚ»êÇöÈ²'\></a></li>");
document.write("			<li><a href=/common/html/XecureLink.html?returnURL=/online/index.jsp><img src=/images/mainbnnr_myAccount02.gif alt='\¿Â¶óÀÎÁöÁ¡'\></a></li>");
document.write("			<li><a href=/common/html/XecureLink.html?returnURL=/myaccount/interest_info/asset_mng_cal/MngCal_Main.jsp><img src=/images/mainbnnr_myAccount03.gif alt='\ÀÚ»ê°ü¸®Ä¶¸°´õ'\></a></li>");
<!-- document.write("<li><a href=javascript:popups(\'http://mentors.fnup.com/hndt/Hanadaetoo_Special2.swf?MEDIA_CODE=screen3\',\'newwin\',720,440)><img src='/images/mainbnnr_myAccount04.gif' alt='\My Account ÀÌ¿ë¾È³»'\ /></a></li>");  //-->

document.write("		</ul>");
}

// È¸»ç¼Ò°³ ÀÏ¶§
if(myAdd[3] == "company") {
	document.write("<ul class='bannerBox'>");
	document.write("<li><a href=javascript:popups(\'http://daetoo.chzero.com/daetoo_search.jsp\',\'newwin\',900,615)><img src='/images/mainbnnr_company01.gif' alt='\¿µ¾÷Á¡¾È³»'\ /></a></li>");
	document.write("<li><a href=/company/bi/rental/conference/index.html><img src='/images/mainbnnr_company02.gif' alt='\ÀÓ´ë¾È³»'\ /></a></li>");
	document.write("<li><a href=javascript:popOpen(\'/common/consultLink.jsp\')><img src='/images/mainbnnr_company03.gif' alt='\¿Â¶óÀÎ »ó´ã'\ /></a></li>");
	document.write("</ul>");
}

// »çÀÌÆ®¸Ê ÀÏ¶§
if(myAdd[3] == "sitemap") {
	document.write("<ul class='bannerBox'>");
	document.write("<li><a href=/common/html/XecureLink.html?returnURL=/membership/memberJoin1.jsp><img src='/images/mainbnnr_siteMap01.gif' alt='\È¸¿ø°¡ÀÔ'\ /></a></li>");
	document.write("<li><a href=/support/system/overview/index.html><img src='/images/mainbnnr_siteMap02.gif' alt='\Hi-Five ´Ù¿î·Îµå'\ /></a></li>");
	document.write("<li><a href=javascript:popOpen(\'/common/consultLink.jsp\')><img src='/images/mainbnnr_siteMap03.gif' alt='\¿Â¶óÀÎ »ó´ã'\ /></a></li>");
	document.write("</ul>");
}

// È¸¿ø°ü¸® ÀÏ¶§
if(myAdd[3] == "membership") {
document.write("		<div class=bannerBoxTop></div>");
document.write("		<div class=bannerBoxBody>");
document.write("			<ul>");
document.write("				<li><a href=Javascript:XecureGate(\'/membership/memberLeave1.jsp\'); class=member1><span>È¸¿øÅ»Åð</span></a></li>");
document.write("				<li><a href=javascript:XecureGate(\'/membership/eServiceDel.jsp\'); class=member2><span>ÀÌ¸ÞÀÏ¼ö½Å°ÅºÎ</span></a></li>");
document.write("			</ul>");
document.write("			<div class=clear></div>");
document.write("		</div>");
document.write("		<div class=bannerBoxBottom></div>");
document.write("		");
document.write("		<ul class=bannerBox>");
document.write("			<li><a href=/common/html/XecureLink.html?returnURL=/myaccount/personal_mng/Invest_Main.jsp><img src=/images/mainbnnr_member01.gif alt='\°³ÀÎÁ¤º¸º¯°æ'\></a></li>");
document.write("			<li><a href=/common/html/XecureLink.html?returnURL=/myaccount/personal_mng/psw_mng/PswMng_Main.jsp><img src=/images/mainbnnr_member02.gif alt='\IDºñ¹Ð¹øÈ£º¯°æ'\></a></li>");
document.write("			<li><a href=/common/html/XecureLink.html?returnURL=/membership/pwdErrCancel_1.jsp><img src=/images/mainbnnr_member03.gif alt='\IDºñ¹Ð¹øÈ£ ¿À·ùÇØÁ¦'\></a></li>");
document.write("			<li><a href=/common/html/XecureLink.html?returnURL=/membership/addInfoReg_step1.jsp><img src=/images/mainbnnr_member04.gif alt='\ºÎ°¡Á¤º¸ Àçµî·Ï'\></a></li>");
document.write("			<li><a href=javascript:popOpenNew(\'/common/html/XecureLink.html?returnURL=/myaccount/asset_report/asset/Asset_Main.jsp?tab_gb=6\')><img src='/images/mainbnnr_member05.gif ' alt='\¹ýÀÎÀÎÁõ¼­ Ãß°¡ÀüÈ¯'\ /></a></li>");
document.write("			<li><a href=/support/system/overview/index.html><img src=/images/mainbnnr_member06.gif alt='\Hi-Five ´Ù¿î·Îµå'\></a></li>");
document.write("		</ul>");
}



if(myAdd[3] != "mall" && myAdd[3] !== "research" && myAdd[3] != "asset" && myAdd[3] != "giup" && myAdd[3] != "community" && myAdd[3] != "company" && myAdd[3] != "pms") {

}

