	function flashWrite(url,w,h,id,bg,vars,win) {		
		var flashStr=
		"<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='"+w+"' height='"+h+"' id='"+id+"' align='middle'>"+
		"<param name='allowScriptAccess' value='sameDomain' />"+
		"<param name='movie' value='"+url+"' />"+
		"<param name='FlashVars' value='"+vars+"' />"+
		"<param name='wmode' value='"+win+"' />"+
		"<param name='menu' value='false' />"+
		"<param name='quality' value='high' />"+
		"<param name='bgcolor' value='"+bg+"' />"+
		"<param name='base' value='.'>"+
		"<embed src='"+url+"' FlashVars='"+vars+"' wmode='"+win+"' menu='false' quality='high' bgcolor='"+bg+"' width='"+w+"' height='"+h+"' name='"+id+"' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+
		"</object>";	
		// 플래시 코드 출력
		document.write(flashStr);		
		//Flash의 ExternalInterface가 Form Tag내에서 오류나는 버그를 해결하는 코드     
		//eval("window." + id + " = document.getElementById('" + id + "');")
	}

function PopOpen(PathNum, widthNum, heightNum){
w = window.open(PathNum,'','toolbar=no,menubar=no,location=no,directions=no, scrollbars=no,status=no,width='+widthNum+',height='+heightNum+',left=10,top=10'); 
w.focus();
}


function TopLink(num){
	var oneDepth = new Array();       
	var win = new Array();
	oneDepth[0]="/member/login/logout.do";
	oneDepth[1]="/member/loginNEW.jsp";
	oneDepth[2]="/member/memberNEW_01.jsp";
	oneDepth[3]="/etc/sitemapNew.jsp";
	oneDepth[4]="/eng/";
	oneDepth[5]="javascript:zoomInOut('plus');"
	oneDepth[6]="javascript:zoomInOut('default');";
	oneDepth[7]="javascript:zoomInOut('minus');";
	oneDepth[8]="/member/memberNEW_info.jsp";
    win=["self", "self", "self", "self", "blk", "self", "self", "self", "self"];
	if(win[num]=="self"){
		location.href = oneDepth[num];
    }else if(win[num]=="blk"){
		window.open(oneDepth[num]);
    }else if(win[num][0]=="pop"){
		PopOpen(oneDepth[num], win[num][1], win[num][2])
    }	
}


function ShowGuideLink(num){
	var oneDepth = new Array();       
	var win = new Array();
	oneDepth[0]="/reservation/ReserveNew_01-1.jsp";
	oneDepth[1]="/reservation/ReserveNew_01-1.jsp";
    win=["self", "self"];
	if(win[num]=="self"){
		location.href = oneDepth[num];
    }else if(win[num]=="blk"){
		window.open(oneDepth[num]);
    }else if(win[num][0]=="pop"){
		PopOpen(oneDepth[num], win[num][1], win[num][2])
    }	
}

function BannerLink(num){
	var oneDepth = new Array();       
	var win = new Array();
	oneDepth[0]="http://www.kidsnfm.go.kr/tale/index.jsp";
	oneDepth[1]="/education/newEdu_05_01.jsp ";
	oneDepth[2]="http://www.kidsnfm.go.kr/activity/index.jsp";
	oneDepth[3]="../introduce/introduceNew_01-4.jsp";
	oneDepth[4]="http://www.kidsnfm.go.kr/culturebox/";
    win=["blk", "self","self","self","blk"];
	if(win[num]=="self"){
		location.href = oneDepth[num];
    }else if(win[num]=="blk"){
		window.open(oneDepth[num]);
    }else if(win[num][0]=="pop"){
		PopOpen(oneDepth[num], win[num][1], win[num][2])
    }	
}


function Menu_Link(Depth1,Depth2){
var oneDepth = new Array();		
var win = new Array();
 if(Depth1=="1"){
	
	 oneDepth[0]="/introduce/introduceNew_01-1.jsp";
	 oneDepth[1]="/introduce/introduceNew_01-1.jsp";
	 oneDepth[2]="/introduce/introduceNew_02-1.jsp";
	 oneDepth[3]="/introduce/introduceNew_list.jsp?pagecode=131&gubun=A";
	 oneDepth[4]="/introduce/introduceNew_list.jsp?pagecode=141&tableName=TBLK_BOARD&gubun=A";
	 oneDepth[5]="/introduce/introduceNew_05-1.jsp";
win=["self", "self", "self", "self", "self", "self"];

 }else if(Depth1=="2"){
	
	 oneDepth[0]="/reservation/ReserveNew_01-1.jsp?grp_type=1";
	 oneDepth[1]="/reservation/ReserveNew_01-1.jsp?grp_type=1";
	 oneDepth[2]="/reservation/ReserveNew_04.jsp";
win=["self", "self", "self"];
	 
 }else if(Depth1=="3"){
	
	 oneDepth[0]="/exhibit/exhibitNew_01.jsp";
	 oneDepth[1]="/exhibit/exhibitNew_01.jsp";
	 oneDepth[2]="/exhibit/exhibitNew_02.jsp";
	 oneDepth[3]="/exhibit/exhibitNew_03.jsp";
win=["self", "self", "self", "self"];


 }else if(Depth1=="4"){
	
	 oneDepth[0]="/education/newEdu_01_list.jsp";
	 oneDepth[1]="/education/newEdu_01_list.jsp?pagecode=411&gubun=A";
	 oneDepth[2]="/education/newEdu_01_info.jsp";
	 oneDepth[3]="/education/newEdu_02_list.jsp?pagecode=431&gubun=B";
	 oneDepth[4]="/education/newEdu_02_list.jsp?pagecode=441&gubun=C&isPoto=Y";
	 oneDepth[5]="/education/newEdu_05_01.jsp";
	 oneDepth[6]="/education/newEdu_02_list.jsp?pagecode=461&gubun=D";
win=["self", "self", "self", "self", "self", "self", "self"];

 }else if(Depth1=="5"){
	
	 oneDepth[0]="/fun/funNew_01-1.jsp";
	 oneDepth[1]="/fun/funNew_01-1.jsp";
	 oneDepth[2]="/fun/funNew_02-1.jsp";
	 oneDepth[3]="/fun/funNew_03.jsp";
	 oneDepth[4]="/fun/funNew_04.jsp";
	 oneDepth[5]="http://www.kidsnfm.go.kr/tale/index.jsp";
	 oneDepth[6]="/activity/activityMain.jsp";
win=["self", "self", "self", "self", "self", "blk", "blk"];

 }else if(Depth1=="6"){
	
	 oneDepth[0]="/community/communityMain.jsp";
	 oneDepth[1]="/community/communityMain.jsp";
	 oneDepth[2]="/community/gallery_list.jsp";
	 oneDepth[3]="/";
win=["self", "self", "self", "self"];

 }else if(Depth1=="7"){
	 //로그아웃(0번째 값은 없음)
	 oneDepth[0]="";
	 oneDepth[1]="/member/loginNEW.jsp";
	 oneDepth[2]="/member/memberNEW_01.jsp";
	 oneDepth[3]="/member/memberNEW_02-2.jsp";
	 oneDepth[4]="/member/memberNEW_02-3.jsp";
win=["self", "self", "self", "self", "self"];

 }else if(Depth1=="8"){
	 //로그인(0번째 값은 없음)
	 oneDepth[0]="";
	 oneDepth[1]="/member/memberNEW_info.jsp";
	 oneDepth[2]="/member/eduNew_list.jsp";
	 oneDepth[3]="/member/memberNEW_04-1.jsp";
	 oneDepth[4]="/member/memberNew_out.jsp";
win=["self", "self", "self", "self", "self"];

 }else if(Depth1=="9"){	 
	 oneDepth[0]="";
	 oneDepth[1]="/";
	 oneDepth[2]="/";
	 oneDepth[3]="/";	 
win=["self", "self", "self", "self"];

 }

if(win[Depth2]=="self"){
location.href = oneDepth[Depth2];

}else if(win[Depth2]=="blk"){
window.open(oneDepth[Depth2]);

}else if(win[Depth2][0]=="pop"){
PopOpen(oneDepth[Depth2], win[Depth2][1], win[Depth2][2])
}
//0번은 대메뉴
//현제 페이지:self,  새창:blk,  팝업창:["pop", 가로길이(300), 세로길이(300)]
}


function Depth3_Link(Depth1,Depth2, Depth3){

     var oneDepth = new Array();	
	 var win = new Array();
  if(Depth1=="1"){

	  oneDepth = [
		  ["../introduce/introduceNew_01-1.jsp", "../introduce/introduceNew_01-2.jsp", "../introduce/introduceNew_01-3.jsp", "../introduce/introduceNew_01-4.jsp"],
		  [],
		  ["/introduce/introduceNew_list.jsp?pagecode=131&gubun=A", "/introduce/introduceNew_list.jsp?pagecode=132&gubun=B", "/introduce/introduceNew_list.jsp?pagecode=133&gubun=C", "/introduce/introduceNew_list.jsp?pagecode=134&gubun=D"],
		  ["/introduce/introduceNew_list.jsp?pagecode=141&tableName=TBLK_BOARD&gubun=A", "../introduce/introduceNew_04-2.jsp"],
		  ["../introduce/introduceNew_05-1.jsp", "../introduce/introduceNew_05-10.jsp"]
		  ];

		win=[
		  ["self", "self", "self", "self"],
		  [],
		  ["self", "self", "self", "self"],
		  ["self", "self"],
		  ["self", "self"]
		];

}else if(Depth1=="2"){
//http://210.204.213.136/reservation/ReserveNew_01-1.jsp
	//http://210.204.213.136/reservation/ReserveNew_01-2.jsp
	oneDepth = [
		  ["javascript:goMenu('1');", "javascript:goMenu('2');"],
		  []		  
		  ];

		win=[
		  ["self", "self"],
		  []
		];

}else if(Depth1=="3"){
}else if(Depth1=="4"){

	oneDepth = [
		  [], [], [], [],
		  ["/education/newEdu_05_01.jsp", "/education/newEdu_05_02.jsp", "javascript:isDownload();"],
		  []
		  ];

		win=[
		  [], [], [], [],
		  ["self", "self", "self"],
		  []
		];

}else if(Depth1=="5"){
}else if(Depth1=="6"){
}


 if(win[Depth2][Depth3]=="self"){
location.href = oneDepth[Depth2][Depth3];

}else if(win[Depth2][Depth3]=="blk"){
window.open(oneDepth[Depth2][Depth3]);

}else if(win[Depth2][Depth3][0]=="pop"){
PopOpen(oneDepth[Depth2][Depth3], win[Depth2][Depth3][1], win[Depth2][Depth3][2])
}
//현제 페이지:self,  새창:blk,  팝업창:["pop", 가로길이(300), 세로길이(300)]

}

function goMenu(grp_type){

	var oform = document.form2;
	oform.grp_type.value = grp_type;
	oform.action="ReserveNew_01-1.jsp";
	oform.submit();

}

