u1="/html_e/mn01/mn01_01.asp" ;  //첫번째 대분류 
u11="/html_e/mn01/mn01_01.asp" ; //첫번째 대분류에 대한 소분류 
u12="/html_e/mn01/mn01_02.asp" ; 
u13="/html_e/mn01/mn01_03.asp" ; 
u14="/html_e/mn01/mn01_04.asp" ; 
u15="/html_e/mn01/mn01_05.asp" ; 
u16="/html_e/mn01/mn01_06.asp" ;

u2="/html_e/mn09/mn09_01.asp" ; 
u21="/html_e/mn09/mn09_01.asp" ; 
u22="/html_e/mn09/mn09_02.asp" ; 


u3="/html_e/mn02/mn02_01.asp" ;
u31="/html_e/mn02/mn02_01.asp" ;  
u32="/html_e/mn02/mn02_02.asp" ;  


u4="/html_e/mn03/mn03_01.asp" ; 
u41="/html_e/mn03/mn03_01.asp" ; 
u42="/html_e/mn03/mn03_02.asp" ; 
u43="/html_e/mn03/mn03_03.asp" ; 
u44="/html_e/mn03/mn03_04.asp" ; 

u5="/html_e/mn08/mn08_01.asp" ; 
u51="/html_e/mn08/mn08_01.asp" ; 
u52="/html_e/mn08/mn08_02.asp" ;

u6="/html_e/mn05/mn05_01.asp" ; 
u61="/html_e/mn05/mn05_01.asp" ; 
u62="/html_e/mn05/mn05_02.asp" ; 
u63="/html_e/mn05/mn05_03.asp" ; 
u64="/html_e/mn05/mn05_04.asp" ; 


//##############################################################################//
// 플레쉬 링크 관련 함수
// head.inc 파일에서 경로를 자동으로 잡습니다.
//##############################################################################//
function link(){
	var url = "";
	var depth = arguments.length;
//    alert(arguments[0]);
	try {
		if(depth==0) return;

		else if (arguments[0]=="8" && arguments.length == 1) {

			var SYSID = getCookieJs("name");

			if (SYSID == -1) {
				url = eval("u7");
			} else {
				url = eval("u8");
			}
		}

		else if(depth==1) url = eval("u"+arguments[0]);
		else if(depth==2) url = eval("u"+arguments[0]+arguments[1]);
//		else if(depth==3) url = eval("u"+arguments[0]+arguments[1]+arguments[2]);
//		else if(depth==4) url = eval("u"+arguments[0]+arguments[1]+arguments[2]+arguments[3]);

		if(url=="") alert("해당컨텐츠 구성중입니다");
		else location.href = url;

	}catch(e) { alert("해당컨텐츠 구성중입니다"); }
}
//##############################################################################//
// 파일 다운로드 관련 함수
// 해당 디렉토리에 /cs/board/download.asp 파일이 존재하여야 정상적으로 작동합니다.
//##############################################################################//
function down(f_name,f_path){
	var flag;
	if(flag != ""){
		var goUrl = "/default/bbs/download.asp?strFileName="+encodeURI(f_name)+"&strFilePath="+encodeURI(f_path);
		location.href=goUrl;
	}else{
		alert("다운로드파일이 존재하지 않습니다.확인하여 주십시오");
	}
}
//##############################################################################//
// 이미지 새창 보기 관련 함수
// 해당 디렉토리에 /default/bbs/openWinImage.asp 파일이 존재하여야 정상적으로 작동합니다.
//##############################################################################//
function image_view(f_path){
	window.open("/default/bbs/openWinImage.asp?strfilePath="+f_path,"openwin","menubar=no, scrollbars=yes, width=100, height=100, top=0, left=0");
}
//##############################################################################//
// 플래쉬 관련 함수
// 플래쉬경로, 넓이, 높이
//##############################################################################//
function printSWF(fn, w, h, v)
{
 var arg = arguments;
 var argc =  arguments.length;
 str   = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\"width=\""+w+"\" height=\""+h+"\">";
 str += "        <param name=\"SRC\" value=\""+fn+v+"\">";
 str += "        <param name=\"wmode\" value=\"transparent\">";
 str += "        <param name=\"quality\" value=\"high\">";
 str += "  <param name=\"loop\" value=\"false\">";
 str += "  <param name=\"menu\" value=\"false\">";
 str += "        <embed src=\""+fn+"\" pluginspage=\"http://www.macromedia.com/shockwave/download/\" type=\"application/x-shockwave-flash\" width=\""+w+"\" height=\""+h+"\">";
 str += "        </embed> ";
 str += "</object>";
 document.write(str);
}
//##############################################################################//
// 검색 관련 함수
//##############################################################################//
function frm_search_submit(){
	document.getElementById("frm_search").submit();
}
//##############################################################################//
// 레이어 보이기/숨기기 함수
//##############################################################################//
function LayerView(aaa){
		document.getElementById("layer"+aaa).style.display = "";
}
function LayerHide(aaa){
		document.getElementById("layer"+aaa).style.display = "none";
}
//##############################################################################//
// 링크시 점선 안보이게 하는 함수
//##############################################################################//
function bluring(){ 
	if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
} 
document.onfocusin=bluring; 

//##############################################################################//
// 한글/ 숫자만 입력받게 하는 함수
// STYLE="IME-MODE:ACTIVE;"		: 한글만
// STYLE="IME-MODE:DISABLED;"	: 숫자만
// STYLE="IME-MODE:INACTIVE;"	: 영문만
// 위 스타일과 같이 사용함
//##############################################################################//
function onlyNumber() { 
if ( ((event.keyCode < 48) || (57 < event.keyCode)) && (45 != event.keyCode) ) event.returnValue=false; 
} 
function onlyHan() { 
if ( (event.keyCode > 0) ) event.keyCode = '0'; return false; 
} 

//##############################################################################//
// 항상 정중앙에 뜨는 오픈창 함수
//##############################################################################//
function windowOpen(url, width, height) { 
//  var width=460;//가로크기 
//  var height=380;//세로크기 
//  url = "http://busan21.centumsoft.co.kr/";
  
  var top = parseInt((screen.availHeight)/2-height/2); 
  var left = parseInt((screen.availWidth)/2-width/2); 

  var openWin=window.open(url,"read",'resizable=yes,width='+width+',height='+height+',top='+top+',left='+left); 
  if(openWin!=null) openWin.focus(); 
} 

//##############################################################################//
// 폼값 자동입력 스크립트
//##############################################################################//
arrElementNameS		= new Array();	// SELECT
arrElementValueS	= new Array();
arrElementNameR		= new Array();	// RADIO
arrElementValueR	= new Array();
arrElementNameC		= new Array();	// CHECKBOX
arrElementValueC	= new Array();
arrElementNameT		= new Array();	// TEXT
arrElementValueT	= new Array();

function AutoFormCheck(formName){
	for (i = 0; i < arrElementNameS.length; i++){
		formSelect = eval("document.getElementById(\""+formName+"\")."+arrElementNameS[i]);
		for (j = 0; j < formSelect.length; j++) {
			if (formSelect.options[j].value==arrElementValueS[i]) {
				formSelect.options[j].selected = true;
			}
		}
	}
	for (i = 0; i < arrElementNameR.length; i++){
		formRadio = eval("document.getElementById(\""+formName+"\")."+arrElementNameR[i]);
		for (j = 0; j < formRadio.length; j++) {
			if (formRadio[j].value == arrElementValueR[i]) {
				formRadio[j].checked = true;
			}
		}
	}
	for (i = 0; i < arrElementNameC.length; i++){
		formCheckbox = eval("document.getElementById(\""+formName+"\")."+arrElementNameC[i]);
		if (arrElementValueC[i]=="Y") {
			formCheckbox.checked = true;
		}
	}
	for (i = 0; i < arrElementNameT.length; i++){
		formText = eval("document.getElementById(\""+formName+"\")."+arrElementNameT[i]);
		formText.value = arrElementValueT[i];
	}
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function hidestatus() {
	window.status = "STANDARDIA";
	return true;
}

if (document.layers) document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT) 

document.onmouseover=hidestatus 
document.onmouseout=hidestatus 
document.onclick=hidestatus 

// IE 일때 처리, FF에서는 안해도 잘보임 css의 .png24 와 함께 사용 
function setPng24(obj) { 
    obj.width=obj.height=1; 
    obj.className=obj.className.replace(/\bpng24\b/i,''); 
    obj.style.filter = 
    "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');" 
    obj.src='';  
    return ''; 
} 
