//µå·¡±× ±ÝÁö ¸¶¿ì½º ¿À¸¥ÂÊ ¹öÆ° »ç¿ë±ÝÁö ¼Ò½º
//document.onselectstart = function(){return false} 
//document.oncontextmenu = function(){return false} 

// focus
function allblur() {
for (i = 0; i < document.links.length; i++)
document.links[i].onfocus = document.links[i].blur;
}

// layer
function LayerSH(LayerName,Status)
{
//    ns4 = (document.getElementById)?true:false;
//    ie4 = (document.all)?true:false;

    if (navigator.appName == "Netscape")
    {
		LayerN = document.getElementById(LayerName).style;
		if (Status == 'show') LayerN.visibility = 'visible';
		if (Status == 'hide') LayerN.visibility = 'hidden';
    }
    else
    {
		LayerN = document.all[LayerName].style;
		if (Status == 'show') LayerN.display = '';
		if (Status == 'hide') LayerN.display = 'none';
	}
}

//left_submenu
var rollFlag=0;

	function txt_roll(str)
	{
		sub_num = str.substring(str.length - 2);
		sub_str = str.substring(0, str.length -2);

		if (document.all[str].style.display=="")
		{
			document.all[str].style.display="none";
			rollFlag=0;
			return;
		}
		else
			{
			if(rollFlag != 0)
			{
				document.all[sub_str+rollFlag].style.display="none";
				document.all[str].style.display="";
			}

			document.all[str].style.display="";
			rollFlag=sub_num;
		}

	}


// openwindow01
function openwindow(theURL,winName,features) {
	window.open(theURL,winName,features);
}

// openwindow02

function pop(pop,width,height,flag)
{
	var url = pop;
	var wd = width;
	var he = height;

	if (flag == 0 )
	{
		window.open(url,"","toolbar=0,menubar=0,scrollbars=no,resizable=no,width=" + wd +",height=" + he + ";")
	}
	else
	{
		window.open(url,"","toolbar=0,menubar=0,scrollbars=yes,resizable=no,width=" + wd +",height=" + he + ";")
	}
}


/****** µð½ºÇÃ·¹ÀÌ ÄÁÆ®·Ñ **************************************************************/
function setDisplay(objName,status) {
	var obj = document.all[objName];
	if (obj) {
		if (status == 'on') obj.style.display = "";
		if (status == 'off') obj.style.display = "none";
	}
}


/******* GNB Controls *****************************************************************/

// About EXIM
function about_10(){
	//location.replace('/en/about/');
	about_10_10();
}

// About EXIM > EXIM at a Glance
function about_10_10(){
	var nArg;
	var nDepth;

	nArg = arguments.length;

	if(nArg > 0 && arguments[0].value != ''){
		nDepth = arguments[0];

		if(nDepth == '10'){
			location.replace('/en/about/m01/s01_01.jsp');
		}else if(nDepth == '20'){
			location.replace('/en/about/m01/s02_01.jsp');
		}else if(nDepth == '30'){
			location.replace('/en/about/m01/s03_01.jsp');
		}else if(nDepth == '40'){
			location.replace('/en/about/m01/s04_01.jsp');
		}else if(nDepth == '50'){
			location.replace('/en/about/m01/s05_01.jsp');
		}else if(nDepth == '60'){
			location.replace('/en/about/m01/s08_01.jsp');
		}else if(nDepth == '70'){
			location.replace('/en/about/m01/s07_01.jsp');
		}
	}
	else {
		location.replace('/en/about/m01/s01_01.jsp');
	}
}
// About EXIM > Investor Relations
function about_10_20(){
	var nArg;
	var nDepth;

	nArg = arguments.length;

	if(nArg > 0 && arguments[0].value != ''){
		nDepth = arguments[0];

		if(nDepth == '10'){
			location.replace('/en/about/m02/s01_01.jsp');
		}else if(nDepth == '20'){
			location.replace('/en/about/m02/s02_01.jsp');
		}else if(nDepth == '30'){
			location.replace('/en/about/m02/s03_01.jsp');
		}else if(nDepth == '40'){
			location.replace('/en/about/m02/s04_01.jsp');
		}
	}
	else {
		location.replace('/en/about/m02/s01_01.jsp');
	}
}
// About EXIM > What's New
function about_10_30(){
	location.replace('/en/about/m03/s01_01_list.jsp');
}
// About EXIM > Bank's Network
function about_10_40(){
	var nArg;
	var nDepth;

	nArg = arguments.length;

	if(nArg > 0 && arguments[0].value != ''){
		nDepth = arguments[0];

		if(nDepth == '10'){
			location.replace('/en/about/m04/s01_01.jsp');
		}else if(nDepth == '20'){
			location.replace('/en/about/m04/s02_01.jsp');
		}else if(nDepth == '30'){
			location.replace('/en/about/m04/s05_01.jsp');
		}else if(nDepth == '40'){
			location.replace('/en/about/m04/s04_01.jsp');
		}
	}
	else {
		location.replace('/en/about/m04/s01_01.jsp');
	}
}
// About EXIM > Management
function about_10_50(){
	var nArg;
	var nDepth;

	nArg = arguments.length;

	if(nArg > 0 && arguments[0].value != ''){
		nDepth = arguments[0];

		if(nDepth == '10'){
			location.replace('/en/about/m05/s01_01.jsp');
		}else if(nDepth == '20'){
			location.replace('/en/about/m05/s02_01.jsp');
		}
	}
	else {
		location.replace('/en/about/m05/s01_01.jsp');
	}
}

// Export & Overseas Investment Credit
function eoic_20(){
	//location.replace('/en/about/');
	eoic_20_10();
}

// Export & Overseas Investment Credit >
function eoic_20_10(){
	var nArg;
	var nDepth;

	nArg = arguments.length;

	if(nArg > 0 && arguments[0].value != ''){
		nDepth = arguments[0];

		if(nDepth == '10'){
			location.replace('/en/fservice/m01/s01_01.jsp');
		}else if(nDepth == '20'){
			location.replace('/en/fservice/m01/s02_01.jsp');
		}else if(nDepth == '30'){
			location.replace('/en/fservice/m01/s03_01.jsp');
		}else if(nDepth == '40'){
			location.replace('/en/fservice/m01/s04_01.jsp');
		}
	}
	else {
		location.replace('/en/fservice/m01/s01_01.jsp');
	}
}

// Export & Overseas Investment Credit > Overseas Investment Credit
function eoic_20_20(){
	var nArg;
	var nDepth;

	nArg = arguments.length;

	if(nArg > 0 && arguments[0].value != ''){
		nDepth = arguments[0];

		if(nDepth == '10'){
			location.replace('/en/fservice/m02/s01_01.jsp');
		}else if(nDepth == '20'){
			location.replace('/en/fservice/m02/s02_01.jsp');
		}else if(nDepth == '30'){
			location.replace('/en/fservice/m02/s03_01.jsp');
		}else if(nDepth == '40'){
			location.replace('/en/fservice/m02/s04_01.jsp');
		}else if(nDepth == '50'){
			location.replace('/en/fservice/m02/s05_01.jsp');
		}
	}
	else {
		location.replace('/en/fservice/m02/s01_01.jsp');
	}
}

// Export & Overseas Investment Credit > Import Credit
function eoic_20_30(){
	location.replace('/en/fservice/m03/s01_01.jsp');
}

// Export & Overseas Investment Credit > Guarantees
function eoic_20_40(){
	var nArg;
	var nDepth;

	nArg = arguments.length;

	if(nArg > 0 && arguments[0].value != ''){
		nDepth = arguments[0];

		if(nDepth == '10'){
			location.replace('/en/fservice/m04/s01_01.jsp');
		}else if(nDepth == '20'){
			location.replace('/en/fservice/m04/s02_01.jsp');
		}
	}
	else {
		location.replace('/en/fservice/m04/s01_01.jsp');
	}
}

// Export & Overseas Investment Credit > Structured Trade Finance
function eoic_20_50(){
	var nArg;
	var nDepth;

	nArg = arguments.length;

	if(nArg > 0 && arguments[0].value != ''){
		nDepth = arguments[0];

		if(nDepth == '10'){
			location.replace('/en/fservice/m05/s01_01.jsp');
		}else if(nDepth == '20'){
			location.replace('/en/fservice/m05/s02_01.jsp');
		}else if(nDepth == '30'){
			location.replace('/en/fservice/m05/s03_01.jsp');
		}else if(nDepth == '40'){
			location.replace('/en/fservice/m05/s04_01.jsp');
		}else if(nDepth == '50'){
			location.replace('/en/fservice/m05/s05_01.jsp');
		}
	}
	else {
		location.replace('/en/fservice/m05/s01_01.jsp');
	}
}

// Natural Resources
function eoic_20_60(){
	var nArg;
	var nDepth;

	nArg = arguments.length;

	if(nArg > 0 && arguments[0].value != ''){
		nDepth = arguments[0];

		/*if(nDepth == '10'){
			location.replace('/en/fservice/m05/s01_01.jsp');
		}else if(nDepth == '20'){
			location.replace('/en/fservice/m05/s02_01.jsp');
		}else if(nDepth == '30'){
			location.replace('/en/fservice/m05/s03_01.jsp');
		}else if(nDepth == '40'){
			location.replace('/en/fservice/m05/s04_01.jsp');
		}else if(nDepth == '50'){
			location.replace('/en/fservice/m05/s05_01.jsp');
		}*/
	}
	else {
		location.replace('/en/fservice/m06/s01_01.jsp');
	}
}

// EDCF
function edcf_30(){
	//location.replace('/en/about/');
	edcf_30_10();
}

// EDCF > About EDCF
function edcf_30_10(){
	var nArg;
	var nDepth;

	nArg = arguments.length;

	if(nArg > 0 && arguments[0].value != ''){
		nDepth = arguments[0];

		if(nDepth == '10'){
			location.replace('/en/edcf/m01/s01_01.jsp');
		}else if(nDepth == '20'){
			location.replace('/en/edcf/m01/s02_01.jsp');
		}else if(nDepth == '30'){
			location.replace('/en/edcf/m01/s03_01.jsp');
		}else if(nDepth == '40'){
			location.replace('/en/edcf/m01/s04_01.jsp');
		}else if(nDepth == '50'){
			cc_60_10('20');
		}
	}
	else {
		location.replace('/en/edcf/m01/s01_01.jsp');
	}
}

// EDCF > EDCF Procedures
function edcf_30_20(){
	var nArg;
	var nDepth;

	nArg = arguments.length;

	if(nArg > 0 && arguments[0].value != ''){
		nDepth = arguments[0];

		if(nDepth == '10'){
			location.replace('/en/edcf/m02/s02_01.jsp');
		}else if(nDepth == '20'){
			location.replace('/en/edcf/m02/s03_01.jsp');
		}else if(nDepth == '30'){
			location.replace('/en/edcf/m02/s04_01.jsp');
		}
	}
	else {
		location.replace('/en/edcf/m02/s02_01.jsp');
	}
}

// EDCF > Data and Statistics
function edcf_30_30(){
	var nArg;
	var nDepth;

	nArg = arguments.length;

	if(nArg > 0 && arguments[0].value != ''){
		nDepth = arguments[0];

		if(nDepth == '10'){
			location.replace('/en/edcf/m03/s01_01_list.jsp');
		}else if(nDepth == '20'){
			location.replace('/en/edcf/m03/s02_01_list.jsp');
		}else if(nDepth == '30'){
			location.replace('/en/edcf/m03/s03_01.jsp');
		}
	}
	else {
		location.replace('/en/edcf/m03/s01_01_list.jsp');
	}
}

// EDCF > EDCF Activities
function edcf_30_40(){
	var nArg;
	var nDepth;

	nArg = arguments.length;

	if(nArg > 0 && arguments[0].value != ''){
		nDepth = arguments[0];

		if(nDepth == '10'){
			location.replace('/en/edcf/m04/s01_01.jsp');
		}else if(nDepth == '20'){
			location.replace('/en/edcf/m04/s02_01.jsp');
		}
	}
	else {
		location.replace('/en/edcf/m04/s01_01.jsp');
	}
}

// EDCF > Publications
function edcf_30_50(){
	var nArg;
	var nDepth;

	nArg = arguments.length;

	if(nArg > 0 && arguments[0].value != ''){
		nDepth = arguments[0];

		if(nDepth == '10'){
			location.replace('/en/edcf/m05/s01_01.jsp');
		}else if(nDepth == '20'){
			location.replace('/en/edcf/m05/s02_01.jsp');
		}
	}
	else {
		location.replace('/en/edcf/m05/s01_01.jsp');
	}
}

// EDCF > Document
function edcf_30_60() {
  var nArg;
  var nDepth;

  nArg = arguments.length;

	if(nArg > 0 && arguments[0].value != ''){
		nDepth = arguments[0];
                if(nDepth == '10'){
			location.replace('/en/edcf/m05/s01_01.jsp');
		}
	}
	else {
  		location.href='/en/edcf/m07/s01_01.jsp'
	}
}


// IKCF
function ikcf_40(){
	ikcf_40_10();
}

// IKCF > Overview
function ikcf_40_10(){
	var nArg;
	var nDepth;

	nArg = arguments.length;

	if(nArg > 0 && arguments[0].value != ''){
		nDepth = arguments[0];

		if(nDepth == '10'){
			location.replace('/en/ikcf/m01s01.jsp');
		}else if(nDepth == '20'){
			location.replace('/en/ikcf/m01s03.jsp');
		}else if(nDepth == '30'){
			location.replace('/en/ikcf/m01s04.jsp');
		}else if(nDepth == '40'){
			location.replace('/en/ikcf/m01s02.jsp');
		}
	}
	else {
		location.replace('/en/ikcf/m01s01.jsp');
	}
}

// IKCF > Clearing Settlement
function ikcf_40_20(){
	location.replace('/en/ikcf/m02s01.jsp');
}

// IKCF > Brief History of Inter-Korean Cooperation
function ikcf_40_30(){
	location.replace('/en/ikcf/m03s01.jsp');
}

// Foreign Investment Information
function fdi_50(){
	//location.replace('/en/about/');
	fdi_50_10();
}

// Foreign Investment Information >
function fdi_50_10(){
	var nArg;
	var nDepth;

	nArg = arguments.length;

	if(nArg > 0 && arguments[0].value != ''){
		nDepth = arguments[0];

		if(nDepth == '10'){
			location.replace('/en/fdi/m01/s01_01.jsp');
		}else if(nDepth == '20'){
			location.replace('/en/fdi/m01/s02_01.jsp');
		}
	}
	else {
		location.replace('/en/fdi/m01/s01_01.jsp');
	}
}

// Foreign Investment Information >
function fdi_50_20(){
	var nArg;
	var nDepth;

	nArg = arguments.length;

	if(nArg > 0 && arguments[0].value != ''){
		nDepth = arguments[0];

		if(nDepth == '10'){
			location.replace('/en/fdi/m02/s01_01.jsp');
		}else if(nDepth == '20'){
			location.replace('/en/fdi/m02/s02_01.jsp');
		}else if(nDepth == '30'){
			location.replace('/en/fdi/m02/s03_01.jsp');
		}else if(nDepth == '40'){
			location.replace('/en/fdi/m02/s04_01.jsp');
		}else if(nDepth == '50'){
			location.replace('/en/fdi/m02/s05_01.jsp');
		}
	}
	else {
		location.replace('/en/fdi/m02/s01_01.jsp');
	}
}

// Customer Services
function cc_60(){
	//location.replace('/en/about/');
	cc_60_10();
}

// Customer Services > FAQ
function cc_60_10(){
	var nArg;
	var nDepth;

	nArg = arguments.length;

	if(nArg > 0 && arguments[0].value != ''){
		nDepth = arguments[0];

		if(nDepth == '10'){
			location.replace('/en/cc/m01/s01_list.jsp');
		}else if(nDepth == '20'){
			location.replace('/en/cc/m01/s02_01_list.jsp');
		}
	}
	else {
		location.replace('/en/cc/m01/s01_list.jsp');
	}
}

// Customer Services > Contact Us
function cc_60_20(){
	location.replace('/en/cc/m02s01.jsp');
}

// Customer Services > Site Links
function cc_60_30(){
	location.replace('/en/cc/m03s01.jsp');
}

// Customer Services > F/X Rate
function cc_60_40(){
	location.replace('/en/cc/loan_m05s051.jsp');
}

// Customer Services > Export Prohibited item
function cc_60_50(){
	location.replace('/en/cc/m05s01.jsp');
}

