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="flashvars" value="PageCode=' + PageCode + '">'
 + '<embed src="' + AMovie + '?PageCode='+PageCode+'" id="setval" quality="high"  wmode="' + AWMode + '" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + AWidth + '" height="' + AHeight + '"></embed>'
 + '</object>');
*/
 document.write('<embed src="' + AMovie + '?PageCode='+PageCode+'" id="setval" quality="high"  wmode="' + AWMode + '" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + AWidth + '" height="' + AHeight + '"></embed>');
}



function log_flash(AMovie, AWMode, AWidth, AHeight, log_chk) {
// 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="flashvars" value="PageCode=' + PageCode + '&log_chk='+log_chk+'">'
 //+ '<embed src="' + AMovie + '?PageCode='+PageCode+'&log_chk='+log_chk+'" id="setval" quality="high"  wmode="' + AWMode + '" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + AWidth + '" height="' + AHeight + '"></embed>'
 //+ '</object>'
 //);

 document.write('<embed src="' + AMovie + '?PageCode='+PageCode+'&log_chk='+log_chk+'" id="setval" quality="high"  wmode="' + AWMode + '" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + AWidth + '" height="' + AHeight + '"></embed>');


}



function Cyber_opener(){
	newwin = window.open('cybertour_main.html','','toolbar=no,menubar=no,location=no,directions=no,scrollbars=no,status=no,width=880,height=690');
    newwin.focus();
	var winxpos = (window.screen.availWidth-880)/2;
	var winypos = (window.screen.availHeight-690)/2;
	newwin.moveTo(winxpos,winypos)
}


//
function Member_Link(numA, numB){
 var memberLink = new Array();
 if(numA=="0"){
	 //=====logout 
	 memberLink = ["/member/login.asp","/member/agreement.asp","/member/find_id.asp"];
	 win=["go_login", "self", "self"];

 }else if(numA=="1"){	
	 //=====login 
	 memberLink = ["/member/logout.asp","/member/join_modify.asp", "/member/leave_result.asp"];
	 win=["self", "self", "script"];
 }

if(win[numB]=="go_login"){
location.href = memberLink[numB]+"?go_url="+document.location;

}else if(win[numB]=="self"){
location.href = memberLink[numB];

}else if(win[numB]=="script"){
//memberLink[numB];
go_leave(memberLink[numB])

}else if(win[numB]=="blk"){
window.open(memberLink[numB]);

}else if(win[numB][0]=="pop"){
PopOpen(memberLink[numB], win[numB][1], win[numB][2])
}
}




//메인상단로고링크
function logo_Link(){
	location.href ="/";
}


function Top_Link(num){
	var oneDepth = new Array();
	 oneDepth[0]="/member/logout.asp";
	 oneDepth[1]="/";
	 oneDepth[2]="/member/login.asp";
	 oneDepth[3]="/member/agreement.asp";
	 
	 oneDepth[4]="http://eng.gppc.or.kr/";
	 oneDepth[5]="http://cn.gppc.or.kr/";
	 oneDepth[6]="http://jpn.gppc.or.kr/";
	 
	 //oneDepth[4]="http://gp2.utwo.co.kr/";
	 //oneDepth[5]="http://gp3.utwo.co.kr/";
	 //oneDepth[6]="http://gp4.utwo.co.kr/";
	 
	 oneDepth[7]="/member/join_modify.asp";
     win=["self", "self", "go_login", "self", "blk", "blk", "blk", "self"];	
if(win[num]=="go_login"){
location.href = oneDepth[num]+"?go_url="+document.location;

}else 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])

}else{
alert("준비중입니다.");

}
}



function banner01_Link(num){
	var oneDepth = new Array();
	 oneDepth[0]="/business/land_01.asp";
	 oneDepth[1]="/business/center_01.asp";
	 oneDepth[2]="/news_data/pr_media.asp";
	 oneDepth[3]="/port_information/port_stat.asp";
     win=["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 banner02_Link(num){
	var oneDepth = new Array();
	 oneDepth[0]="/port_information/cybertour.asp";
	 oneDepth[1]="/business/pr_01.asp";
	 oneDepth[2]="/business/boat_01.asp";
	 oneDepth[3]="/news_data/gamezone.asp";
	 oneDepth[4]="/count/reservation.asp"; 
     win=["self", "self", "self", ["pop",880,690], "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])
//}else{
//alert("준비중입니다.");

}
}




function PathChk(Depth1,Depth2){
        var oneDepth = new Array();
		//alert(Depth1+"//"+Depth2)
 if(Depth1=="1"){
	 oneDepth[0]="/news_data/notice_list.asp";
	 oneDepth[1]="/news_data/notice_list.asp";
	 oneDepth[2]="/news_data/report_list.asp";
	 oneDepth[3]="/news_data/news_list.asp";
	 oneDepth[4]="/news_data/bid_list.asp";
	 oneDepth[5]="/news_data/recruit.asp";
	 oneDepth[6]="/news_data/pr_media.asp";
	 oneDepth[7]="/news_data/Junior.asp";
	 oneDepth[8]="http://www.mltm.go.kr/USR/dictionary/m_65/lst.jsp";
	 win=["self", "self","self", "self", "self", "self", "self", "self", "blk"];
	

/*
	 oneDepth[3]="/news_data/news_list.asp";
	 oneDepth[4]="/news_data/bid_list.asp";
	 oneDepth[5]="/news_data/recruit.asp";
	 oneDepth[6]="/news_data/pr_media.asp";
	 oneDepth[7]="/news_data/Junior.asp";
	 oneDepth[8]="http://www.mltm.go.kr/USR/dictionary/m_65/lst.jsp";
	 win=["self", "self","self", "self", "self", "self", "self", "self", "blk"];

*/

 }else if(Depth1=="2"){
	 oneDepth[0]="/business/land_01.asp";
	 oneDepth[1]="/business/land_01.asp";
	 oneDepth[2]="/business/center_01.asp";
	 oneDepth[3]="/business/dis_01.asp";
	 oneDepth[4]="/business/marketing_01.asp";
	 oneDepth[5]="/business/pr_01.asp";
	 oneDepth[6]="/business/boat_01.asp";
	 win=["self", "self", "self", "self", "self", "self", "self"];

	 
 }else if(Depth1=="3"){
	 oneDepth[0]="/port_information/cybertour.asp";
	 oneDepth[1]="/port_information/cybertour.asp";
	 oneDepth[2]="/port_information/port_facility_01.asp";
	 oneDepth[3]="/port_information/course_01.asp";
	 oneDepth[4]="/port_information/condition.asp";
	 oneDepth[5]="/port_information/aid_organ.asp";
	 oneDepth[6]="/port_information/port_stat.asp";
	 win=["self", "self", "self", "self", "self", "self", "self"];

 }else if(Depth1=="4"){
	 oneDepth[0]="/management/budget.asp";
	 oneDepth[1]="/management/budget.asp";
	 oneDepth[2]="/management/charter.asp";
	 oneDepth[3]="/management/manage_plan.asp";
	 oneDepth[4]="/management/local_law01.asp";
	 win=["self", "self", "self", "self", "self"];


 }else if(Depth1=="5"){
	 oneDepth[0]="/customer_center/charter.asp";
	 oneDepth[1]="/customer_center/charter.asp";
	 oneDepth[2]="/customer_center/minwon_list.asp";
	 oneDepth[3]="/customer_center/clean_center.asp";
	 oneDepth[4]="/customer_center/proposal_list.asp";
	 win=["self", "self", "self", "self", "self"];


 }else if(Depth1=="6"){
	 oneDepth[0]="/introduction/ceo.asp";
	 oneDepth[1]="/introduction/ceo.asp";
	 oneDepth[2]="/introduction/goal_history.asp";
	 oneDepth[3]="/introduction/vision_mission.asp";
	 oneDepth[4]="/introduction/ci.asp";
	 oneDepth[5]="/introduction/org_contact.asp";
	 oneDepth[6]="/introduction/sketch_map.asp";
	 oneDepth[7]="/introduction/caractor.asp";
	 win=["self", "self", "self", "self", "self", "self", "self", "self"];

  }else if(Depth1=="8"){
	 oneDepth[0]="";
	 oneDepth[1]="/etc/sitemap.asp";
	 oneDepth[2]="/etc/policy.asp";
	 oneDepth[3]="/etc/e-mail.asp";
	 win=["self", "self", "self", "self"];
}
else if(Depth1=="9"){
	 oneDepth[0]="";
	 oneDepth[1]="/business/center_02.asp";
	 oneDepth[2]="/count/reservation_guide.asp";
	 oneDepth[3]="/count/reservation.asp";
	 oneDepth[4]="/count/reserve_list.asp";
	 win=["self", "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])
}

}






function Depth3_Link(Depth1,Depth2, Depth3){	
     var oneDepth = new Array();	
	var win = new Array();
  if(Depth1=="1"){
	  //??

}else if(Depth1=="2"){
	//?

}else if(Depth1=="3"){
	//?

}else if(Depth1=="4"){
	//?
	  oneDepth = [
		  ["/management/budget.asp","/management/contract_list.asp","/management/outcome.asp","/management/finance.asp","/management/assess.asp","/management/inspect.asp"],
		  ["/management/charter.asp","/management/act_platform.asp","/management/contribution.asp"],
		  ["/management/manage_plan.asp"],
		  ["/management/local_law01.asp","/management/local_law02.asp","/management/articles.asp","/management/gyeonggi_law.asp"]
		  ];
		win=[
		  ["self","self","self","self","self","self"],
		  ["self","self","self"],
		  ["self"],
		  ["self","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])
}


}





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();
}
