// ũ  
function bluring(){ 
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
} 
document.onfocusin=bluring; 

// ǰ  ޴
var currentToggle;
var currentToggleSrc;
function toggle(e,f) {
	if(currentToggle) {
		document.getElementById("content"+currentToggle).style.display = "none";
		document.getElementById("menu"+currentToggle).src = currentToggleSrc;
	}
	currentToggle=e;
	currentToggleSrc = document.getElementById("menu"+e).src;
	document.getElementById("content"+e).style.display = "";
	document.getElementById("menu"+e).src = f;
}

//÷ ε
function flashLoader(width,height,dir,mainPos,subPos){
	if (dir.indexOf("swf") > 0) {
		document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+width+"' height='"+height+"'>");
		document.write("<param name='movie' value='"+dir+"?mmenu="+mainPos+"&smenu="+subPos+"'>");
		document.write("<param name='quality' value='high'>");
		document.write("<param name='wmode' value='transparent'>");
		document.write("<param name='base' value='.'>");
		document.write("<param name=FlashVars value='mmenu="+mainPos+"&smenu="+subPos+"' />");
		document.write("<embed base='.' FlashVars='mmenu="+mainPos+"&smenu="+subPos+"' src='"+dir+"?mmenu="+mainPos+"&smenu="+subPos+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+width+"' height='"+height+"' wmode='transparent'></embed>");
		document.write("</object>");
	}
	else {
		document.write("<img src='"+dir+"' width='"+width+"' height='"+height+"'  border='0'>");
	}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  var win = window.open(theURL,winName,features);
  win.focus();
}

/***********************************************************************************
      Program ID   : link.js
      Description  : Common Module & Javascript for LGChem
************************************************************************************
      Լ()           -> 
************************************************************************************
                                  MODIFICATION LOG

           DATE                          AUTHORS                     DESCRIPTION
        ----------                   -----------               -------------------
        2007/08/27                   ִٿ                     Initial Release
***********************************************************************************/
function Map(e) {
	if(e==101) location.href='/v2/about/position/headoffice3.jsp';	//ϱ
	if(e==102) location.href='/v2/about/position/headoffice1.jsp';	// 񽺼
	if(e==103) location.href='/v2/about/position/headoffice.jsp';	// 
	if(e==104) location.href='/v2/about/position/headoffice2.jsp';	//
	if(e==105) location.href='/v2/about/position/headoffice4.jsp';	//α

	if(e==201) location.href='/v2/about/position/Factory1.jsp';    //?
	if(e==202) location.href='/v2/about/position/Factory2.jsp';	//ϻ
	if(e==203) location.href='/v2/about/position/Factory3.jsp';	//
	if(e==204) location.href='/v2/about/position/Factory4.jsp';	//
	//if(e==205) location.href='/v2/about/position/Factory5.jsp';	//
	if(e==206) location.href='/v2/about/position/Factory6.jsp';	//õ
	if(e==207) location.href='/v2/about/position/Factory.jsp';	// 

	if(e==301) location.href='/v2/about/position/Gangwon1.jsp';	// 
	if(e==302) location.href='/v2/about/position/Gangwon2.jsp';	//õ
	if(e==303) location.href='/v2/about/position/Gangwon3.jsp';	//

	if(e==401) location.href='/v2/about/position/Chungcheong1.jsp';	//û û
	if(e==402) location.href='/v2/about/position/Chungcheong2.jsp';	//õ
	if(e==403) location.href='/v2/about/position/Chungcheong3.jsp';	// 񽺼
	if(e==404) location.href='/v2/about/position/Chungcheong4.jsp';	// ?
	if(e==405) location.href='/v2/about/position/Chungcheong5.jsp';	//ȫ

	if(e==501) location.href='/v2/about/position/kyungsang1.jsp';	// ȵ
	if(e==502) location.href='/v2/about/position/kyungsang2.jsp';	//
	if(e==503) location.href='/v2/about/position/kyungsang3.jsp';	//
	if(e==504) location.href='/v2/about/position/kyungsang4.jsp';	//λ 񽺼
	if(e==505) location.href='/v2/about/position/kyungsang5.jsp';	//λ ?
	if(e==506) location.href='/v2/about/position/kyungsang6.jsp';	//
	if(e==507) location.href='/v2/about/position/kyungsang7.jsp';	//
	if(e==508) location.href='/v2/about/position/kyungsang9.jsp';	//e 
	if(e==509) location.href='/v2/about/position/kyungsang10.jsp';	//??
	if(e==510) location.href='/v2/about/position/kyungsang8.jsp';	//?񽺼

	if(e==601) location.href='/v2/about/position/jeolla1.jsp';	// 
	if(e==602) location.href='/v2/about/position/jeolla2.jsp';	// 񽺼
	if(e==603) location.href='/v2/about/position/jeolla3.jsp';	// ?
	if(e==604) location.href='/v2/about/position/jeolla4.jsp';	//õ
	if(e==605) location.href='/v2/about/position/jeolla5.jsp';	//

	if(e==701) location.href='/v2/about/position/Jeju1.jsp';	//

	if(e==801) location.href='/v2/about/position/officeChina.jsp';	//ϰ
}
function Map2(e) {
	if(e==101) location.href='/v2/cscenter/mapSeoul_03.jsp';	//ϱ
	if(e==102) location.href='/v2/cscenter/mapSeoul_01.jsp';	// 񽺼
	if(e==103) location.href='/v2/cscenter/mapSeoul_02.jsp';	//
	if(e==104) location.href='/v2/cscenter/mapSeoul_04.jsp';	//α
	if(e==201) location.href='/v2/cscenter/mapKyunggi_03.jsp';    //?
	if(e==202) location.href='/v2/cscenter/mapKyunggi_05.jsp';	//ϻ
	if(e==203) location.href='/v2/cscenter/mapKyunggi_02.jsp';	//
	if(e==204) location.href='/v2/cscenter/mapKyunggi_06.jsp';	//
	if(e==205) location.href='/v2/cscenter/mapKyunggi_01.jsp';	//
	if(e==206) location.href='/v2/cscenter/mapKyunggi_04.jsp';	//õ
	if(e==207) location.href='/v2/about/position/Factory.jsp';	// 
	if(e==301) location.href='/v2/cscenter/mapGangwon_03.jsp';	// 
	if(e==302) location.href='/v2/cscenter/mapGangwon_02.jsp';	//õ
	if(e==303) location.href='/v2/cscenter/mapGangwon_01.jsp';	//
	if(e==401) location.href='/v2/cscenter/mapChungcheong_02.jsp';	//û û
	if(e==402) location.href='/v2/cscenter/mapChungcheong_03.jsp';	//õ
	if(e==403) location.href='/v2/cscenter/mapChungcheong_01.jsp';	//
	if(e==404) location.href='/v2/cscenter/mapChungcheong_04.jsp';	//ȫ

	if(e==501) location.href='/v2/cscenter/mapKyungsang_07.jsp';	// ȵ
	if(e==502) location.href='/v2/cscenter/mapKyungsang_06.jsp';	//
	if(e==503) location.href='/v2/cscenter/mapKyungsang_05.jsp';	//
	if(e==504) location.href='/v2/cscenter/mapKyungsang_01.jsp';	//λ 񽺼
	if(e==505) location.href='/v2/cscenter/mapKyungsang_03.jsp';	//
	if(e==506) location.href='/v2/cscenter/mapKyungsang_04.jsp';	//

	if(e==507) location.href='/v2/cscenter/mapKyungsang_02.jsp';	//e 
	if(e==508) location.href='/v2/cscenter/mapKyungsang_08.jsp';	//?񽺼
	if(e==601) location.href='/v2/cscenter/mapJeolla_02.jsp';	// 
	if(e==602) location.href='/v2/cscenter/mapJeolla_01.jsp';	// 񽺼
	if(e==603) location.href='/v2/cscenter/mapJeolla_04.jsp';	//õ
	if(e==604) location.href='/v2/cscenter/mapJeolla_03.jsp';	//
	if(e==701) location.href='/v2/cscenter/mapJeju_01.jsp';	//
}

//
function rightbanner_00()		{location.href = '/v2/product/etc/productCartoon.jsp';}	//more
function rightbanner_01()		{window.open("/ebook/cartoon/bestofbest.htm")}	//img1
function rightbanner_02()		{window.open("/ebook/cartoon/ezdas_v2.htm")}	//img1
function rightbanner_03()		{window.open("/ebook/cartoon/Banktotal.htm")}	//img2
//function rightbanner_03()		{window.open("/ebook/cartoon/Linux.htm")}	//img3

//˾â ڼ
function popup10()		{location.href= "/v2/recruit/recruit_application.jsp?ms=menu4"}	//ڼ

//DBκ
function db01()		{location.href = '/v2/abs_board/dispatcher/basic.jsp?event=read&no=16406&boardCode=NEWS&page=1&ms=null&inc=';}	//more

//contκ
function cont01()		{location.href = '/v2/cscenter/indexObstacle.jsp';}	//ȳ
function cont02()		{MM_openBrWindow('http://211.47.66.172/lgnsys','lgnsys','width=580,height=490,status=yes,menubar=yes')}	//
function cont03()		{location.href = '/v2/about/manage/justice.jsp';}	//?
function cont04()		{location.href = '/v2/sub2/recruit_faq.jsp';}	//ϴ
function cont05()		{location.href = '/v2/recruit/recruit_application.jsp?ms=menu4';}	//¶
function cont06()		{location.href = '/v2/about/lgn/lgnDiary.jsp';}	//ͺ
function cont07()		{location.href = '/v2/about/lgn/lgnpInformal.jsp';}	//ȣȸ
function cont08()		{location.href = '/v2/media/sabo.jsp';}	//?
function cont09()		{location.href = '/v2/media/brochure.jsp';}	//μ
function cont10()		{location.href = '/v2/media/advertisement.jsp';}	//
function cont11()		{location.href = '/v2/media/media.jsp';}	//Ұ 
function cont12()		{location.href = '/v2/about/outline/lgnSlogan.jsp';}	//ũ
function cont13()		{location.href = '/v2/about/outline/overview.jsp';}	//ý?
function cont14()		{location.href = '/v2/recruit/recruit_application.jsp?ms=menu4';}	//ڷ ũ?
function cont15()		{location.href = '/v2/recruit/indexHr.jsp';}	//ä

function aboutMain_eng(e) {
	if(e==1) location.href = "/en/about/outline/businessarea_01.jsp";
	if(e==2) location.href = "/en/about/outline/businessarea_02.jsp";
	if(e==3) location.href = "/en/about/outline/businessarea_03.jsp";
	if(e==4) location.href = "/en/about/outline/businessarea_04.jsp";
	if(e==5) location.href = "/en/about/outline/businessarea_05.jsp";
	if(e==6) location.href = "/en/about/outline/businessarea_06.jsp";
	if(e==7) location.href = "/en/about/outline/businessarea_07.jsp";
}
// ?ũ
function jungdo01()		{location.href = '/v2/about/manage/ethics1.jsp';}	//01
function jungdo02()		{location.href = '/v2/about/manage/ethics2.jsp';}	//02
function jungdo03()		{location.href = '/v2/about/manage/ethics3.jsp';}	//03
function jungdo04()		{location.href = '/v2/about/manage/ethics4.jsp';}	//04
function jungdo05()		{location.href = '/v2/about/manage/ethics5.jsp';}	//05
function jungdo06()		{location.href = '/v2/about/manage/ethics6.jsp';}	//06


//=========================================================(????지????링크  )

function Map_eng(flag){
	if (flag == 10) {document.location.href = '/en/product/service/index_service.jsp';} //???
	
	if (flag == 20) {document.location.href = '/en/product/service/index_service_02.jsp';} //경기
	if (flag == 30) {document.location.href = '/en/product/service/index_service_03.jsp';}	//강원
	if (flag == 40) {document.location.href = '/en/product/service/index_service_04.jsp';}	//충청
	if (flag == 50) {document.location.href = '/en/product/service/index_service_05.jsp';} //경상
	if (flag == 60) {document.location.href = '/en/product/service/index_service_06.jsp';} //???
	
	if (flag == 70) {document.location.href = '/en/product/service/index_service_07.jsp';}	//??
}
	function Map_chn(flag){
	if (flag == 10) {document.location.href = '/';}
	if (flag == 20) {document.location.href = '/';}
	if (flag == 30) {document.location.href = '/';}	
	if (flag == 40) {document.location.href = '/';}	
	if (flag == 50) {document.location.href = '/';}
	if (flag == 60) {document.location.href = '/';}
	if (flag == 70) {document.location.href = '/';}		
}