if(!PageCode){
var PageCode
	PageCode=000;
}

function flash(AMovie, AWMode, AWidth, AHeight) {
 document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="' + AWidth + '" height="' + AHeight + '">'
 + '<param name="movie" value="' + AMovie + '">'
 + '<param name="wmode" value="' + AWMode + '">'
 + '<param name="allowScriptAccess" value="samedomain">'
 + '<param name="flashvars" value="PageCode=' + PageCode + '">'
 + '<embed src="' + AMovie + '?PageCode='+ PageCode + '" id="setval" quality="high" allowScriptAccess="samedomain"  wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + AWidth + '" height="' + AHeight + '"></embed>'
 + '</object>');
}

function swf(src,width,height,bgc){
object = '';
object += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" id="param" width="'+width+'" height="'+height+'">';
object += '<param name="movie" value="'+src+'">';
object += '<param name="wmode" value="transparent">';
object += '<param name="flashvars" value="PageCode=' + PageCode + '">';
object += '<embed src="'+src+'?PageCode='+PageCode+'" quality="high" wmode="transparent" bgcolor="'+bgc+'" menu="false" width="'+width+'" height="'+height+'" swliveconnect="true" id="param" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';
object += '<\/object>';
document.write(object);
}

if(!log_chk){
var log_chk
	log_chk=0;
}

function log_swf(src,width,height,bgc){
object = '';
object += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" id="param" width="'+width+'" height="'+height+'">';
object += '<param name="movie" value="'+src+'">';
object += '<param name="wmode" value="transparent">';
object += '<param name="flashvars" value="PageCode=' + PageCode + '&log_chk='+log_chk+'">';
object += '<embed src="'+src+'?PageCode='+PageCode+'&log_chk='+log_chk+'" quality="high" wmode="transparent" bgcolor="'+bgc+'" menu="false" width="'+width+'" height="'+height+'" swliveconnect="true" id="param" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';
object += '<\/object>';
document.write(object);
}

function travel_swf(src,width,height,bgc,Tcode){
object = '';
object += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" id="param" width="'+width+'" height="'+height+'">';
object += '<param name="movie" value="'+src+'">';
object += '<param name="wmode" value="transparent">';
object += '<param name="flashvars" value="Tcode=' + Tcode + '">';
object += '<embed src="'+src+'?Tcode='+Tcode+'" quality="high" wmode="transparent" bgcolor="'+bgc+'" menu="false" width="'+width+'" height="'+height+'" swliveconnect="true" id="param" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';
object += '<\/object>';
document.write(object);
}


function logo_link(num){
     var numArray = new Array();
	 numArray[1]="/index.do";
	 numArray[2]="/index.do";
location.href = numArray[num];	 
}


function main_link(num){
     var numArray = new Array();
	 numArray[1]="/complaint/commonList.do";
	 numArray[2]="javascript:void(window.open('/jsp/guide/gu_info.jsp','metro9','width=1000,height=850'))";
	 numArray[3]="/about/merit01.do";
	 numArray[4]="/customer/pickup/list.do";
location.href = numArray[num];	 
}


function main_banner(num){
     var numArray = new Array();
	 numArray[1]="/guide/conven01.do";
	 numArray[2]="/cs/call.do";
location.href = numArray[num];
}


function quick_Link(num){
     var numArray = new Array();
	 numArray[1]="/complaint/commonList.do";
	 numArray[2]="/cs/lost01.do";
	 numArray[3]="/notify/move02.do";
	 numArray[4]="/notify/move03.do";
	 numArray[5]="/notify/move04.do";
location.href = numArray[num];	 
}

function travel_Link(num){
	     var numArray = new Array();
		 numArray[2]="/guide/travel07.do";
		 numArray[20]="/guide/travel06.do";
		 numArray[16]="/guide/travel05.do";
		 numArray[15]="/guide/travel04.do";
		 numArray[12]="/guide/travel03.do";
		 numArray[9]="/guide/travel02.do";
		 numArray[7]="/guide/travel01.do";		 
location.href = numArray[num];	
}


function Member_Link(numA, numB){
 var memberLink = new Array();
 if(numA=="0"){
	 //=====1
	 memberLink = ["/member/loginForm.do","javascript:void(window.open('/member/findIDForm.do','metro9','width=353,height=215'))","/member/joinForm01.do"];
location.href = memberLink[numB];

 }else if(numA=="1"){
	 //=====2 
	 memberLink = ["javascript:logout();","/complaint/list.do","/member/modifyForm.do","/member/removeForm.do"];
location.href = memberLink[numB];
 }
}


function Depth1_Link(Depth1){
     var oneDepth = new Array();
	 oneDepth[1]="javascript:void(window.open('/jsp/guide/gu_info.jsp','metro9','width=1000,height=850'))";
	 oneDepth[2]="/cs/service.do";
	 oneDepth[3]="/board/list.do?boardType=01&boardClass=ATTACH";
	 oneDepth[4]="/safety/emer01.do";
	 oneDepth[5]="/about/index.do";
location.href = oneDepth[Depth1];	 
}

function Depth2_Link(Depth1,Depth2){
 var twoDepth = new Array();

 if(Depth1=="1"){
	 twoDepth = ["javascript:void(window.open('/jsp/guide/gu_info.jsp','metro9','width=1000,height=850'))","javascript:void(window.open('/station/view.do','metro9','width=1000,height=850'))","javascript:void(window.open('/station/junction.do','metro9','width=1000,height=850'))","javascript:void(window.open('/station/timetable.do','metro9','width=1000,height=850'))","/guide/charge01.do","/guide/conven01.do","/guide/travel01.do"];
location.href = twoDepth[Depth2];

}else if(Depth1=="2"){
	 twoDepth = ["/cs/service.do","/complaint/commonList.do","/cs/inspect01.do","/board/list.do?boardType=05&boardClass=ATTACH","/customer/pickup/list.do","/cs/call.do","/question/list.do","/board/list.do?boardType=06&boardClass=ATTACH"];
location.href = twoDepth[Depth2];

}else if(Depth1=="3"){
	 twoDepth = ["/board/list.do?boardType=01&boardClass=ATTACH","/board/list.do?boardType=02&boardClass=ATTACH","/board/list.do?boardType=03&boardClass=ATTACH","/tender/list.do","/facility/createForm.do","/notify/move01.do","/board/list.do?boardType=04&boardClass=ATTACH"];
location.href = twoDepth[Depth2];

}else if(Depth1=="4"){
	 twoDepth = ["/safety/emer01.do","/safety/safem01.do","/jsp/safety/air_01.jsp","/jsp/safety/air_01.jsp","/safety/total01.do","/safety/subintro01.do","/safety/sys05.do"];
location.href = twoDepth[Depth2];

}else if(Depth1=="5"){
	 twoDepth = ["/about/mindex.do","/about/sindex.do","/about/merit01.do","/about/sper.do","/about/location.do"];
location.href = twoDepth[Depth2];
}else if(Depth1=="9"){
	 twoDepth = ["/etc/sitemap.do","/etc/privacy.do","/etc/email.do", "/etc/search.do"];
location.href = twoDepth[Depth2];
}
}

function Depth3_Link(Depth1,Depth2, Depth3){	
     var treeDepth = new Array();

  if(Depth1=="1"){
	  treeDepth = [
		  [],
		  [],
		  [],
		  [],
		  ["/guide/charge01.do","/guide/charge02.do","/jsp/guide/gu_charge03.jsp"],
		  ["/guide/conven01.do","/guide/conven05.do"]
		  ];
 location.href = treeDepth[Depth2][Depth3];	 

}else if(Depth1=="2"){
	  treeDepth = [
		  [],
		  ["/complaint/createForm.do","/proposal/createForm.do"],
		  ["/cs/inspect01.do","/visit/createForm.do","/board/list.do?boardType=11&boardClass=IMAGE&countPerPage=6"],
		  ["/jsp/cs/cs_cul_list.jsp","/jsp/cs/cs_culture.jsp"],
		  ["/customer/pickup/list.do","/cs/lost01.do","/customer/lost/nameCheck.do"],
		  [],
		  [],
		  [],
		  []
		  ];
 location.href = treeDepth[Depth2][Depth3];	 

}else if(Depth1=="3"){
	  treeDepth = [
		  [],
		  [],
		  [],
		  ["/tender/list.do","/notify/bidstep.do","/jsp/notify/no_advertise.jsp","/board/list.do?boardType=09&boardClass=QNA"],		  
		  [],
		  ["/notify/move01.do","/notify/move02.do","/notify/move03.do","/notify/move04.do","/board/list.do?boardType=10&boardClass=IMAGE&countPerPage=6"],		  
		  []
		  ];
 location.href = treeDepth[Depth2][Depth3];	 

}else if(Depth1=="4"){
	  treeDepth = [
		 ["/safety/emer01.do","/safety/safe01.do","/safety/csafe01.do"],		 
		  ["/safety/safem01.do","/jsp/safety/sa_safem02.jsp"],
		  ["/jsp/safety/sa_safemo.jsp"],
		  ["/jsp/safety/air_01.jsp","/jsp/safety/air_02.jsp"],
		  ["/safety/total01.do","/jsp/safety/sa_total02.jsp","/jsp/safety/sa_total03.jsp","/jsp/safety/sa_total04.jsp","/jsp/safety/sa_total05.jsp"],
		  ["/safety/subintro01.do","/safety/subintro02.do","/safety/subintro03.do"],	
		  ["/safety/sys05.do","/safety/sys01.do","/safety/sys02.do","/safety/sys06.do","/safety/sys07.do","/safety/sys08.do","/safety/sys04.do"],
		  ];
 location.href = treeDepth[Depth2][Depth3];	 

}else if(Depth1=="5"){
	  treeDepth = [
		  ["/about/mceo.do","/about/mintro.do","/about/mhistory.do","/about/msys.do","/about/methics.do","/about/mmem.do","/about/mci.do","/about/ab_smPub_list.do"],
		  ["/about/sceo.do","/about/shistory.do","/about/smission.do","/about/ssys.do","/about/sethics.do","/about/sci.do","http://www.metro9.co.kr/webzine/index.jsp","/about/veohis.do","/about/sper.do"],
		  [],
		  [],
		  []		  
		  ];
	  if (Depth2==1 && Depth3==6)
	  {
		PopOpen(treeDepth[Depth2][Depth3], 1024, 708)		
	  }else
	  {
		    location.href = treeDepth[Depth2][Depth3];
	  }
 }else if(Depth1=="6"){
	  treeDepth = [
		  [],
		  [],
		  [],
		  [],	
		  [],
		  [],
		  [],
		  ["/about/ab_smPub_list.do","/about/ab_paearch.do","/board/list.do?boardType=07&boardClass=NORMAL"]
//		  ["/about/recruiteBlink01.do","/about/recruiteBlink02.do","/about/recruiteBlink03.do","/board/list.do?boardType=07&boardClass=NORMAL"]
		  ];
 location.href = treeDepth[Depth2][Depth3];

}else if(Depth1=="7"){
	  treeDepth = [
		  [],
		  [],
		  [],
		  [],	
		  [],
		  [],
		  [],			
		  [],			
		  ["/about/sper.do","/about/ab_slPub_list.do","/about/senIntro.do","/board/list.do?boardType=08&boardClass=NORMAL"]
		  ];
 location.href = treeDepth[Depth2][Depth3];
}
}
function aa(at){
alert(at);
}

/*	글자확대축소 */	
var currentFontSize = 1;
function zoomUtil(state, e){
	var idx;
	var arrFontSize = new Array();

	arrFontSize[0] = "65%";
	arrFontSize[1] = "75%";
	arrFontSize[2] = "85%";
	arrFontSize[3] = "100%";
	arrFontSize[4] = "110%";
	arrFontSize[5] = "120%";
	arrFontSize[6] = "130%";
	
	var e = e || window.event;
	if (e) {
		if (state == "plus") {		
			if (currentFontSize < 6 ) {
				idx = currentFontSize + 1;
				currentFontSize = idx;
			}else{
				idx = 6;
				currentFontSize = idx;
			}			
		} else if (state == "default") {
			idx = 1;
			currentFontSize = idx;
		} else if (state == "minus") {
			if ( currentFontSize >= 1) {
				idx = currentFontSize - 1;
				currentFontSize = idx;
			}else{
				idx = 0;
				currentFontSize = idx;
			}
		}		
	}
	document.body.style.fontSize = arrFontSize[idx];
	return false;
}

function doPrint(frame) {
	var printPopup = window.open(window.location.href,'printPopup','width=1000,height=850,scrollbars=yes')
	printPopup.window.print();
}

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();
}