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 MapView(){
	window.open("http://www.seoulmetro.co.kr/station/eng/linemap.action");
}


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


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

function quick_Link(num){
     var numArray = new Array();
	 numArray[1]="/eng/cs/cs_call.jsp";
	 numArray[2]="/eng/cs/cs_lost01.jsp";
location.href = numArray[num];	 
}

function travel_Link(num){
	     var numArray = new Array();
		 numArray[2]="/eng/guide/gu_travel07.jsp";
		 numArray[20]="/eng/guide/gu_travel06.jsp";
		 numArray[16]="/eng/guide/gu_travel05.jsp";
		 numArray[15]="/eng/guide/gu_travel04.jsp";
		 numArray[12]="/eng/guide/gu_travel03.jsp";
		 numArray[8]="/eng/guide/gu_travel02.jsp";
		 numArray[7]="/eng/guide/gu_travel01.jsp";		 
location.href = numArray[num];	
}

function Depth1_Link(Depth1){
     var oneDepth = new Array();
	 oneDepth[1]="javascript:void(window.open('/eng/guide/gu_info.jsp','metro9','width=1000,height=850'))";
	 oneDepth[2]="/eng/features/ab_merit01.jsp";
	 oneDepth[3]="/eng/safety/sa_total01.jsp";
	 oneDepth[4]="/eng/cs/cs_service.jsp";
	 oneDepth[5]="/eng/about/ab_index.jsp";
location.href = oneDepth[Depth1];	 
}

function Depth2_Link(Depth1,Depth2){

 var twoDepth = new Array();

 if(Depth1=="1"){
	 twoDepth = ["javascript:void(window.open('/eng/guide/gu_info.jsp','metro9','width=1000,height=850'))","javascript:void(window.open('/eng/guide/gu_info1.jsp?stationCode=901','metro9','width=1000,height=850'))","javascript:void(window.open('/eng/guide/gu_info2.jsp?stationCode=901','metro9','width=1000,height=850'))","javascript:void(window.open('/station/engtimetable.do?stationCode=901','metro9','width=1000,height=850'))","/eng/guide/gu_charge01.jsp","/eng/guide/gu_conven01.jsp","/eng/guide/gu_travel07.jsp"];
location.href = twoDepth[Depth2];

}else if(Depth1=="2"){
	 twoDepth = ["/eng/features/ab_merit01.jsp","/eng/features/ab_merit02.jsp","/eng/features/ab_merit03.jsp","/eng/features/ab_merit04.jsp","/eng/features/ab_merit05.jsp","/eng/features/ab_merit06.jsp"];
location.href = twoDepth[Depth2];

}else if(Depth1=="3"){
	 twoDepth = ["/eng/safety/sa_total01.jsp","/eng/safety/sa_subintro01.jsp","/eng/safety/sa_sys05.jsp"];
location.href = twoDepth[Depth2];

}else if(Depth1=="4"){
	 twoDepth = ["/eng/cs/cs_service.jsp","/eng/cs/cs_lost01.jsp","/eng/cs/cs_call.jsp","/eng/cs/cs_faq.jsp"];
location.href = twoDepth[Depth2];

}else if(Depth1=="5"){
	 twoDepth = ["/eng/about/ab_mindex.jsp","/eng/about/ab_sindex.jsp","/eng/about/ab_movie.jsp","/eng/about/ab_location.jsp"];
location.href = twoDepth[Depth2];
}else if(Depth1=="9"){
	 twoDepth = ["/eng/etc/sitemap.jsp"];
location.href = twoDepth[Depth2];
}
}

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

  if(Depth1=="1"){
	  treeDepth = [
		  [],
		  [],
		  [],
		  [],
		  ["/eng/guide/gu_charge01.jsp","/eng/guide/gu_charge02.jsp"],
		  ["/eng/guide/gu_conven01.jsp","/eng/guide/gu_conven05.jsp"]
		  ];
 location.href = treeDepth[Depth2][Depth3];	 

}else if(Depth1=="2"){
	  treeDepth = [
		  [],
		  ["/eng/complaint/createForm.jsp","/eng/proposal/createForm.jsp"],
		  ["/eng/cs/ab_inspect01.jsp","javascript:alert('오픈 준비 중입니다.');","/eng/board/ab_list.jsp?boardType=11&boardClass=IMAGE&countPerPage=6"],
		  ["/eng/jsp/cs/ab_cs_cul_list.jsp","/eng/jsp/cs/ab_cs_culture.jsp"],
		  ["/eng/customer/pickup/ab_list.jsp","/eng/cs/ab_lost01.jsp","/eng/customer/lost/ab_nameCheck.jsp"],
		  [],
		  [],
		  [],
		  []
		  ];
 location.href = treeDepth[Depth2][Depth3];	 

}else if(Depth1=="3"){
	  treeDepth = [
		  [],
		  ["/eng/safety/sa_subintro01.jsp","/eng/safety/sa_subintro02.jsp","/eng/safety/sa_subintro03.jsp"],		  
		  ["/eng/safety/sa_sys05.jsp","/eng/safety/sa_sys01.jsp","/eng/safety/sa_sys02.jsp","/eng/safety/sa_sys06.jsp","/eng/safety/sa_sys07.jsp","/eng/safety/sa_sys08.jsp","/eng/safety/sa_sys04.jsp","/eng/safety/sa_sys04.jsp"],		  
		  ];
 location.href = treeDepth[Depth2][Depth3];	 

}else if(Depth1=="4"){
	  treeDepth = [
		  [],		 
		  [],
		  [],
		  [],
		  ];
 location.href = treeDepth[Depth2][Depth3];	 

}else if(Depth1=="5"){
	  treeDepth = [
		  ["/eng/about/ab_mceo.jsp","/eng/about/ab_mintro.jsp","/eng/about/ab_mhistory.jsp","/eng/about/ab_msys.jsp","/eng/about/ab_mmem.jsp","/eng/about/ab_mci.jsp"],
		  ["/eng/about/ab_sceo.jsp","/eng/about/ab_shistory.jsp","/eng/about/ab_smission.jsp","/eng/about/ab_ssys.jsp","/eng/about/ab_sci.jsp","/eng/about/ab_veohis.jsp"],
		  [],
		  [],
		  []		  
		  ];
	  if (Depth2==1 && Depth3==6)
	  {
		PopOpen(treeDepth[Depth2][Depth3], 1024, 708)		
	  }else
	  {
		    location.href = treeDepth[Depth2][Depth3];
	  }
 }else if(Depth1=="6"){
	  treeDepth = [
		  [],
		  [],
		  [],
		  [],	
		  [],
		  [],
		  [],
		  ["/eng/about/ab_recruiteBlink01.jsp","/eng/about/ab_recruiteBlink02.jsp","/eng/about/ab_recruiteBlink03.jsp","/eng/board/ab_list.jsp?boardType=07&boardClass=NORMAL"]
		  ];
 location.href = treeDepth[Depth2][Depth3];

}else if(Depth1=="7"){
	  treeDepth = [
		  [],
		  [],
		  [],
		  [],	
		  [],
		  [],
		  [],			
		  [],			
		  ["/eng/about/ab_sper.jsp","/eng/about/ab_snoList.jsp","/eng/about/ab_senIntro.jsp","/eng/board/list.jsp?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();
}
