//¾ÆÁÖ·»Å»
var URL = "./";
var HOME = "/";
var ENG = "/eng/";

function M00(rnum){
	if(rnum == 1){
		location.href = HOME +"index.asp";	    // ¸ÞÀÎÀ¸·Î(·Î°í)
	}				
}

function EM00(rnum){
	if(rnum == 1){
		location.href = ENG +"index.asp";	    // ¸ÞÀÎÀ¸·Î(·Î°í)
	}				
}

function M01(rnum){
	if(rnum == 0){
		location.href = HOME +"introduction/introduction.asp";
	}
	
	if(rnum == 1){
		location.href = HOME +"introduction/introduction.asp";
	}

	if(rnum == 2){
		location.href = HOME +"introduction/family.asp";
	}

	if(rnum == 3){
		location.href = HOME +"introduction/manage_info.asp";
	}

	if(rnum == 4){
		location.href = HOME +"introduction/ceo.asp";
	}

	if(rnum == 5){
		location.href = HOME +"introduction/history.asp";
	}

	if(rnum == 6){
		location.href = HOME +"introduction/vision.asp";
	}

	if(rnum == 7){
		location.href = HOME +"introduction/ogani.asp";
	}

	if(rnum == 8){
		location.href = HOME +"introduction/guide.asp";
	}

	if(rnum == 9){
		location.href = HOME +"introduction/advantage.asp";
	}

	if(rnum == 10){
		location.href = HOME +"introduction/nanum_1.asp";
	}
}

function M02(rnum){
	//alert(rnum)
	if(rnum == 0){
		location.href = HOME +"business/product01_1.asp";
	}

	if(rnum == 1){
		location.href = HOME +"business/product01_1.asp";
	}

	if(rnum == 2){
		location.href = HOME +"business/product02_1.asp";
	}

	if(rnum == 3){
		location.href = HOME +"business/product03_1.asp";
	}

	if(rnum == 4){
		location.href = HOME +"business/product04_1.asp";
	}

	if(rnum == 5){
		location.href = HOME +"business/product05_1.asp";
	}

	if(rnum == 6){
		location.href = HOME +"business/product06_1.asp";
	}

	if(rnum == 7){
		location.href = HOME +"business/product07_1.asp";
	}

	if(rnum == 8){
		location.href = HOME +"business/product08_1.asp";
	}

	if(rnum == 9){
		location.href = HOME +"business/product09_1.asp";
	}

	if(rnum == 10){
		location.href = HOME +"business/product10_1.asp";
	}
}	
	
function M03(rnum){
	if(rnum == 0){
		location.href = HOME +"board.asp?bid=board01&gid=root";
	}

	if(rnum == 1){
		location.href = HOME +"board.asp?bid=board01&gid=root";
	}

	if(rnum == 2){
		location.href = HOME +"board.asp?bid=board02&gid=root";
	}

	if(rnum == 3){
		location.href = HOME +"activities/nanum_1.asp";
	}

	if(rnum == 4){
		location.href = HOME +"board.asp?bid=board04&gid=root";
	}
}
	
function M04(rnum){
	if(rnum == 0){
		location.href = HOME +"recruit/recruit_1.asp";	   
	}
	if(rnum == 1){
		location.href = HOME +"recruit/recruit_1.asp";	   
	}
	if(rnum == 2){
		location.href = HOME +"recruit/recruit_2.asp";	   
	}
	if(rnum == 3){
		location.href = HOME +"recruit/recruit_3.asp";	   
	}
	if(rnum == 4){
		location.href = HOME +"recruit/recruit_4.asp";	   
	}
	if(rnum == 5){
		location.href = HOME +"recruit/recruit_5.asp";	   
	}
	if(rnum == 6){
		location.href = HOME +"recruit/recruit_6.asp";	   
	}
}

function M05(rnum){
	if(rnum == 0){
		location.href = HOME +"customer/location_1.asp";	   
	}
	if(rnum == 1){
		location.href = HOME +"customer/location_1.asp";	   
	}
	if(rnum == 2){
		location.href = HOME +"board.asp?bid=board05&gid=root";	   
	}
}


function resizeIF(obj_name) 
//function resize_IF(obj_name) 
{ 
	//if(!obj_name){obj_name ="bbs";}
	var iframeBody; 
    var H, Min; 

    // ÃÖ¼Ò ³ôÀÌ ¼³Á¤ (³Ê¹« ÀÛ¾ÆÁö´Â °ÍÀ» ¹æÁö) 
    Min = 100; 
	MinW = 400;
    //var objs = document.getElementById(obj_name);
	var objs = document.getElementById("bbs");
	var objs_area = document.getElementById("bbsarea");
	iframeBody = (objs.contentWindow.document.getElementsByTagName('BODY'))[0]; 
    
	H = parseInt(iframeBody.scrollHeight) + 5; 
	//alert(H)
    objs.style.height =  (H<Min?Min:H) + 'px'; 
	objs_area.style.height =  (H<Min?Min:H) + 'px'; 
	
	W = parseInt(iframeBody.scrollWidth) + 5; 
    objs.style.width =  (W<MinW?MinW:W) + 'px';
	objs_area.style.width =  (W<MinW?MinW:W) + 'px';
    //window.scrollTo(1, 1); 
} 

function resize_IF_value(obj_name,width,heigt) 
{ 
    var iframeBody; 
    var H, Min; 
    // ÃÖ¼Ò ³ôÀÌ ¼³Á¤ (³Ê¹« ÀÛ¾ÆÁö´Â °ÍÀ» ¹æÁö) 
    Min = 100; 
	MinW = 400;
    var objs = document.getElementById(obj_name);
	iframeBody = (objs.contentWindow.document.getElementsByTagName('BODY'))[0]; 
    
    objs.style.height =  width + 'px'; 
    objs.style.width =  height + 'px';

} 
