// 090525 네비 및 이미지롤오버
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 menuMouseOver(idx){
	try{
		for(i=1 ; i<=4 ; i++){
			
			objImage = document.getElementById("menu"+i);
			objLayer = document.getElementById("subblock"+i);
			if(i == idx){
				objImage.src = objImage.src.replace(i+"off.gif", i+"on.gif");
				objLayer.style.display = "block";
			}else{
				objImage.src = objImage.src.replace(i+"on.gif", i+"off.gif");
				objLayer.style.display = "none";
			}
		}
	}catch(err){
	
	}
}

// 링크 점선 제거
//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 leftLink(link)
{

    if(link=='111') location.href="/gunsan/homeChi/GunsanFreeTradeArea/freeTradeArea.jsp";     //  1.군산자유무역지역 / 자유무역지역이란? / 자유무역지역은
	if(link=='112') location.href="/gunsan/homeChi/GunsanFreeTradeArea/businessOverview.jsp";  //		사업개요
	if(link=='113') location.href="/gunsan/homeChi/GunsanFreeTradeArea/locationCondition.jsp"; //		입지여건
	if(link=='114') location.href="/gunsan/homeChi/GunsanFreeTradeArea/presentStatus.jsp";     //		현황
	if(link=='115') location.href="/gunsan/homeChi/GunsanFreeTradeArea/Place.jsp";             //		위치도
	 
	if(link=='210') location.href="/gunsan/homeChi/Residence/residenceQualify.jsp";            // 2. 입주안내 / 입주자격
	if(link=='220') location.href="/gunsan/homeChi/Residence/residenceProcess.jsp";            //		입주절차
	if(link=='230') location.href="/gunsan/homeChi/Residence/incentive.jsp";                   //		인센티브
	if(link=='240') location.href="/gunsan/homeChi/Residence/locationEnvironment.jsp";         //		입지환경
	if(link=='250') location.href="/gunsan/homeChi/Residence/standardFactory.jsp";             //		표준공장
	
	if(link=='311') location.href="/gunsan/homeChi/Dataroom/totalYear.jsp";                     // 3. 자료실 / 경제/통계 현황자료 / 연도별주요통계
	if(link=='312') location.href="/gunsan/homeChi/Dataroom/totalType.jsp";                     //		엄종별입주현황
	if(link=='313') location.href="/gunsan/homeChi/Dataroom/totalEmployment.jsp";               //		연도별고용현황
	if(link=='314') location.href="/gunsan/homeChi/Dataroom/totalLC.jsp";                       //		수출수입LC
	if(link=='315') location.href="/gunsan/homeChi/Dataroom/totalActualExports.jsp";            //		월별분기별수출실적
	if(link=='316') location.href="/gunsan/homeChi/Dataroom/totalAreaActualExports.jsp";        //		지역별수출실적
	if(link=='317') location.href="/gunsan/homeChi/Dataroom/totalHoldingCond.jsp";              //		외화가득현황
	if(link=='318') location.href="/gunsan/homeChi/Dataroom/totalInvest.jsp";                   //		입주및투자현황
	if(link=='321') location.href="/gunsan/homeChi/Dataroom/corportionElect.jsp";               //		자료실 / 입주기업체.지원기관 /입주기업체 
	if(link=='322') location.href="/gunsan/homeChi/Dataroom/corportionSupport.jsp";             //			지원기관
	if(link=='330') location.href="/gunsan/homeChi/Dataroom/form.jsp";							//			민원양식
	if(link=='340') location.href="/gunsan/homeChi/Dataroom/otehr.jsp";							//			기타

	if(link=='410') location.href="/gunsan/homeChi/CustomerInform/custInformList.jsp";          // 4. 열린마당 / 공지사항
	if(link=='420') location.href="/gunsan/homeChi/CustomerInform/faqList.jsp";                 //		FAQ
	
	if(link=='510') location.href="/gunsan/homeChi/manIntro/chiefGreeting.jsp";                  // 5. 관리원소개 / 원장인사말
	if(link=='520') location.href="/gunsan/homeChi/manIntro/history.jsp";                        //		연혁
	if(link=='530') location.href="/gunsan/homeChi/manIntro/member.jsp";					     //		조직도
	if(link=='540') location.href="/gunsan/homeChi/manIntro/business.jsp";						//		담당업무
	if(link=='550') location.href="/gunsan/homeChi/manIntro/service.jsp";						//		행정서비스헌장
	if(link=='560') location.href="/gunsan/homeChi/manIntro/visitMap.jsp";						//		찾아오시는 길
}
**/
/***********************************************************************************
      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==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==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/ezdas_v2.htm")}	//img1
function rightbanner_02()		{window.open("/ebook/cartoon/Banktotal.htm")}	//img2
function rightbanner_03()		{window.open("/ebook/cartoon/Linux.htm")}	//img3

//팝업창 자세히보기
function popup10()		{location.href= "http://www.lgnsys.com/v2/abs_board/dispatcher/basic.jsp?event=read&no=16406&boardCode=NEWS&page=1&ms=null&inc="}	//자세히보기

//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://www.hc119.com/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/sub2/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 aboutMain(e) {
	if(e==1) location.href = "/v2/about/outline/businessarea_01.jsp";
	if(e==2) location.href = "/v2/about/outline/businessarea_02.jsp";
	if(e==3) location.href = "/v2/about/outline/businessarea_03.jsp";
	if(e==4) location.href = "/v2/about/outline/businessarea_04.jsp";
	if(e==5) location.href = "/v2/about/outline/businessarea_05.jsp";
	if(e==6) location.href = "/v2/about/outline/businessarea_06.jsp";
	if(e==7) location.href = "/v2/about/outline/businessarea_07.jsp";
	if(e==8) location.href = "/v2/about/outline/businessarea_08.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 siteStatic(code){	call_tempa_img = new Image();	call_tempa_img.src = "/gunsan/homeChi/common/jsp/staticAction.jsp?code="+code;}