//<![CDATA[



function FNflash_insert(Tobj,flashvars){
	var tot_url =document.URL;	
	var flashPath="";
	
	if(tot_url.substr(0,5)=="http:") flashPath="/eng/flash/";
	else flashPath="./";
	
	var Fswf="";			var Fwidth="";		var Fheight="";					
	var Fid="";			var Fwmode="";	var Falign="";
	var Fbgcolor="";	var Fquality="";		var FallowScriptAccess="";

	var seperate1=",";	var seperate2="=";
	var ARobj=Tobj.split(seperate1);

	for(var i=0; i<=ARobj.length-1; i++){
		var prop=this["Ftag"+i]=ARobj[i].split(seperate2);
		if(prop[0].search("swf") !=-1) Fswf=prop[1];
		if(prop[0].search("width") !=-1) Fwidth=prop[1];
		if(prop[0].search("height") !=-1) Fheight=prop[1];
		if(prop[0].search("flashID") !=-1) Fid=prop[1];
		if(prop[0].search("wmode") !=-1) Fwmode=prop[1];
		if(prop[0].search("align") !=-1) Falign=prop[1];
		if(prop[0].search("bgcolor") !=-1) Fbgcolor=prop[1];
		if(prop[0].search("quality") !=-1) Fquality=prop[1];
		if(prop[0].search("allowScriptAccess") !=-1) FallowScriptAccess=prop[1];
	}  


	//if(Fswf == "") alert("Flash_insert Err: 파일명");
	Fswf=flashPath+Fswf;
	if(Fwidth == "") Fwidth="100%";
	if(Fheight == "") Fheight="100%";
	if(Fid == ""){var Tid=Fswf.split("."); Fid=Tid[0];}
	if(Fwmode == "") Fwmode="";
	if(Falign == "") Falign="LT";
	if(Fbgcolor == "") Fbgcolor="#FFFFFF";
	if(Fquality=="") Fquality="best";
	if(FallowScriptAccess=="") FallowScriptAccess="always";
	
	var Tvars=""
	if(flashvars == "") Tvars="Rpath="+flashPath+"&";
	else Tvars=flashvars+"&Rpath="+flashPath+"&";

	var str=new String();


	
	if (navigator.appName.indexOf("Microsoft") != -1){
		str+='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
		str+='codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=version=8,0,0,0" ';
		str+='width="'+Fwidth+'" height="'+Fheight+'"id="'+Fid+'">';
				str+='<param name="movie" value="'+Fswf+'"/>';
				str+='<param name="flashvars" value="'+Tvars+'">';
				str+='<param name="quality" value="'+Fquality+'"/>';
				str+='<param name="bgcolor" value="'+Fbgcolor+'"/>';
				str+='<param name="wmode" value="'+Fwmode+'"/>';
				str+='<param name="allowScriptAccess" value="'+FallowScriptAccess+'"/>';
		str+= '</object>';
	}else{
	
		str+='<embed src="'+Fswf+'" ';
				str+='quality="'+Fquality+'" ';
				str+='bgcolor="'+Fbgcolor+'" ';
				str+='width="'+Fwidth+'" ';
				str+='height="'+Fheight+'" ';
				str+='name="'+Fid+'" ';
				str+='wmode="'+Fwmode+'" ';
				str+='allowScriptAccess="'+FallowScriptAccess+'" ';
				str+='flashvars="'+Tvars+'"';
				str+='type="application/x-shockwave-flash" ';
				str+='pluginspage="http://www.macromedia.com/go/getflashplayer">';
		str+='</embed>';	
	}
	document.write(str);
}



//############################################################################
//		페이지단 플래시에 삽입하는 변수 값
//############################################################################
function FNgetURL(){
	var tot_url =document.URL;	
	var get_host=tot_url.split("?");
	var url=get_host[0];
	var query=get_host[1];

	Depth1=0;Depth2=0;Depth3=0;Depth4=0;
	


	//==========================================[1 기업정보 ]
	if(url.search("/company/") !=-1){
	
		Depth1=1;

		
		
		//###[1.회사소개]
		if(url.search("Vision") !=-1){
			Depth2=2;
			Depth3=1;
		}
		else if(url.search("/overview.asp") !=-1){
			Depth2=2;
			Depth3=2;
		}
		else if(url.search("history") !=-1){
			Depth2=2;
			Depth3=3;
		}
		else if(url.search("organization") !=-1){
			Depth2=2;
			Depth3=4;
		}
		else if(url.search("award") !=-1){
			Depth2=2;
			Depth3=5;
		}

		//###[2.CEO 인사말]
		else if(url.search("ceo_message") !=-1){
			Depth2=1;
		}

		//###[3.고객가치]
		else if(url.search("innovation") !=-1){
			Depth2=3;
			Depth3=1;
		}
		else if(url.search("technology_overview") !=-1){
			Depth2=3;
			Depth3=2;
		}else if(url.search("cooperation") !=-1){
			Depth2=3;
			Depth3=2;
		}else if(url.search("patents") !=-1){
			Depth2=3;
			Depth3=2;
		}else if(url.search("plan.asp") !=-1){
			Depth2=3;
			Depth3=2;
		}else if(url.search("scope") !=-1){
			Depth2=3;
			Depth3=2;
		}



		else if(url.search("quality_") !=-1){
			Depth2=3;
			Depth3=3;
		}
		else if(url.search("ethics") !=-1){
			Depth2=3;
			Depth3=4;
		}
		else if(url.search("partnership") !=-1){
			Depth2=3;
			Depth3=5;
		}
		else if(url.search("environment_mag") !=-1){
			Depth2=3;
			Depth3=6;
		}else if(url.search("active_mag") !=-1){
			Depth2=3;
			Depth3=6;
		}else if(url.search("green_mag") !=-1){
			Depth2=3;
			Depth3=6;
		}


		//###[4.사회공헌]
		else if(url.search("/contribution.asp") !=-1){
			Depth2=4;
			Depth3=1;
		}
		else if(url.search("contribution_intro") !=-1){
			Depth2=4;
			Depth3=2;
		}
		else if(url.search("contribution_program") !=-1){
			Depth2=4;
			Depth3=3;
		}
		else if(url.search("contribution_affairs") !=-1){
			Depth2=4;
			Depth3=4;
		}
		
		//###[5.사회공헌]
		else if(url.search("contact") !=-1){
			Depth2=5;
			Depth3=1;
		}

		//###[6.사회공헌]
		else if(url.search("affiliates") !=-1){
			Depth2=6;
			Depth3=1;
		}

	}




	//==========================================[2 사업분야 ]
	else if(url.search("/business/") !=-1){
	
		Depth1=2;

		//###[1.철강설비]
		if(url.search("biz_01") !=-1){
			Depth2=1;
			
			//----------[1.철강설비]
			if(url.search("biz_01_overview") !=-1){
				Depth3=1;
			}
			
			else if(url.search("biz_0101") !=-1){
				Depth3=2;
			}
			else if(url.search("biz_0102") !=-1){
				Depth3=3;
			}
			else if(url.search("biz_0103") !=-1){
				Depth3=4;
			}
			else if(url.search("biz_0104") !=-1){
				Depth3=5;
			}

		}
		



		//###[2.산업설비]
		else if(url.search("biz_02") !=-1){
			Depth2=2;

			if(url.search("biz_02_overview") !=-1){
				Depth3=1;
			}else if(url.search("biz_0201") !=-1){
				Depth3=2;
			}else if(url.search("biz_0202") !=-1){
				Depth3=3;
			}else if(url.search("biz_0203") !=-1){
				Depth3=4;
			}
			
			else if(url.search("biz_0206") !=-1){
				Depth3=5;
			}else if(url.search("biz_0204") !=-1){
				Depth3=6;
			}
			else if(url.search("biz_0205") !=-1){
				Depth3=7;
			}
		}



		//###[3.물류설비]
		else if(url.search("biz_03") !=-1){
			Depth2=3;
			if(url.search("biz_03_overview") !=-1){
				Depth3=1;
			}else if(url.search("biz_0301") !=-1){
				Depth3=2;
			}else if(url.search("biz_0302") !=-1){
				Depth3=3;
			}else if(url.search("biz_0303") !=-1){
				Depth3=4;
			}else if(url.search("biz_0304") !=-1){
				Depth3=5;
			}
		}

		//###[4.신재생에너지]
		else if(url.search("biz_04") !=-1){
			Depth2=4;
			if(url.search("biz_04_overview") !=-1){
				Depth3=1;
			}else if(url.search("biz_0401") !=-1){
				Depth3=2;
			}else if(url.search("biz_0402") !=-1){
				Depth3=3;
			}else if(url.search("biz_0403") !=-1){
				Depth3=4;
			}
		}


		//###[5.산업기계]
		else if(url.search("biz_05") !=-1){
			Depth2=5;
			if(url.search("biz_05_overview") !=-1){
				Depth3=1;
			}else if(url.search("biz_0501") !=-1){
				Depth3=2;
			}else if(url.search("biz_0502") !=-1){
				Depth3=3;
			}else if(url.search("biz_0503") !=-1){
				Depth3=4;
			}
		}



		

		//###[6.()]
		else if(url.search("world_posco plantEC") !=-1){
			Depth2=6;
			Depth3=1;
		}



	}


	//==========================================[3 고객지원 ]
	else if(url.search("/service/") !=-1){
	
		Depth1=3;

		//###[1.고객의소리]
		if(url.search("customer") !=-1){
			Depth2=1;
		}
		
		//###[2.ROLLER 견적]
		else if(url.search("roller") !=-1){
			Depth2=2;
			
		}

		//###[3.신기술 제안]
		else if(url.search("newtechnology_apply") !=-1){
			Depth2=3;
			Depth3=2;
		}
		else if(url.search("newtechnology_stu") !=-1){
			Depth2=3;
			Depth3=3;
		}
		else if(url.search("newtechnology") !=-1){
			Depth2=3;
			Depth3=1;
		}

		/*
		//###[4.메일링 서비스]
		else if(url.search("mailling") !=-1){
			Depth2=4;
		}

		//###[5.이 벤 트]
		else if(url.search("event") !=-1){
			Depth2=5;
		}
		*/
	}


	//==========================================[4 홍보센터 ]
	else if(url.search("/PR/") !=-1 || url.search("/pr/") !=-1){
	
		Depth1=4;

		/*
		//###[1.뉴 스]
		if(url.search("news_press") !=-1){
			Depth2=1;
			Depth3=1;
		}
		else if(url.search("news_steel") !=-1){
			Depth2=1;
			Depth3=2;
		}
		*/
		
		
		//###[1.엔지니어링 역사]
		if(url.search("engineering") !=-1){
			Depth2=1;
		}

		//###[2.사이버투어]
		else if(url.search("cybertour") !=-1){
			Depth2=2;
		}

		//###[3.홍보영상물]
		else if(url.search("pr_posco plantEC") !=-1){
			Depth2=3;
			Depth3=1;
		}
		else if(url.search("pr_bhs") !=-1){
			Depth2=3;
			Depth3=2;
		}

		//###[4.홍보 브로슈어]
		else if(url.search("pr_brochure") !=-1){
			Depth2=4;
			//Depth3=1;
		}
		/*
		else if(url.search("pr_poster") !=-1){
			Depth2=4;
			Depth3=2;
		}
		*/
		


		//###[5.C∙I]
		/*
		else if(url.search("ci") !=-1){
			Depth2=5;
		}
		*/

		//###[6.프로젝트 갤러리]
		else if(url.search("gallery") !=-1){
			Depth2=5;
		}

		
		
		/*
		//###[8.posco plantEC Plaza]
		else if(url.search("posco plantECplaza") !=-1){
			Depth2=8;
		}
		*/
	}




	//==========================================[5 인재채용 ]
	else if(url.search("/careers/") !=-1){
	
		Depth1=5;
		
		/*
		//###[1.채용공고]
		if(url.search("careernews") !=-1){
			Depth2=1;
			Depth3=1;
		}
		*/
		
		
		//###[2.채용절차]
		if(url.search("careerprocess") !=-1){
			Depth2=1;
		}

		//###[3.인재양성]
		else if(url.search("ability") !=-1){
			Depth2=2;
			Depth3=1;
		}
		/*
		else if(url.search("management") !=-1){
			Depth2=2;
			Depth3=2;
		}
		*/
		else if(url.search("education") !=-1){
			Depth2=2;
			Depth3=2;
		}
		else if(url.search("newrecruit") !=-1){
			Depth2=2;
			Depth3=3;
		}

		//###[4.HR제도]
		else if(url.search("position") !=-1){
			Depth2=3;
			Depth3=1;
		}
		else if(url.search("valuation") !=-1){
			Depth2=3;
			Depth3=2;
		}


		//###[5.복리후생]
		else if(url.search("welfare") !=-1){
			Depth2=4;
		}

		/*
		//###[6.F&Q]
		else if(url.search("faq") !=-1){
			Depth2=6;
		}
		*/
	}


	//==========================================[6 ETC]
	else if(url.search("/etc/") !=-1){
		Depth1=6;
	}
	
		

	//==========================================[else]
	else{
		Depth1=7;
	}
		
	//alert([Depth1, Depth2, Depth3]);
}



FNgetURL();



//]]>