
/* ÇÃ·¡½Ã °øÅë ¸µÅ© È£ÃâÇÔ¼ö
function GoPage222(loc) {		
	// - »ó´ÜGNB : HOME(000000), CONTACTUS(000001), SITEMAP(000002), ENGLISH(000003), KOREA(000004)
	
	var addr = loc;	// ÇÃ·¡½Ã ¸µÅ© Å¬¸¯½Ã ³Ñ¾î¿À´Â ÀÎÀÚ°ª	
	if(loc == "000000") {
		addr = "/eng/index.asp";	
	}else if(loc == "000001") {
		addr = "/eng/contactus.html";	
	}else if(loc == "000002") {
		addr = "/eng/sitemap.html";	
	}else if(loc == "000003") {
		addr = "/eng/index.asp";	
	}else if(loc == "000004") {
		addr = "/index.asp?gubun=main";
	}
	
	document.location.href = addr;
	
	
}

*/






/* ÆË¾÷ ¶ç¿ì±â */
function OpenWin(theURL){
	window.open(theURL,"","toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=650,height=550")}


/* ÀÌ¹ÌÁö Å¬¸¯½Ã ¼±ÅÃ¿µ¿ª»èÁ¦ */
function bluring(){ 
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
} 
document.onfocusin=bluring; 


/* ÀÌ¹ÌÁö¿À¹ö */
function chImgOver(obj){
  var imgsrc=obj.src;
  var imgdir=imgsrc.substring(0,imgsrc.lastIndexOf("/"));
  var imgname=imgsrc.substring(imgsrc.lastIndexOf("/"),imgsrc.lastIndexOf("."));
  var imgext=imgsrc.substring(imgsrc.lastIndexOf("."),imgsrc.length);

  imgname = imgname + "_over";

  obj.src=imgdir+imgname+imgext;
  return true;
}

function chImgOut(obj){
  var imgsrc=obj.src;
  var imgdir=imgsrc.substring(0,imgsrc.lastIndexOf("/"));
  var imgname=imgsrc.substring(imgsrc.lastIndexOf("/"),imgsrc.lastIndexOf("."));
  var imgext=imgsrc.substring(imgsrc.lastIndexOf("."),imgsrc.length);

  imgname = imgname.substring(0, imgname.length-5);

  obj.src=imgdir+imgname+imgext;
  return true;
}

function back_top()
{
        x = document.body.scrollLeft;
        y = document.body.scrollTop;
        step = 2;

        while ((x != 0) || (y != 0)) {
                scroll (x, y);
                step += (step * step / 100);
                x -= step;
                y -= step;
                if (x < 0) x = 0;
                if (y < 0) y = 0;
        }
        scroll (0, 0);
}


//·¹ÀÌ¾î º¸ÀÌ°í ¼û±â±â
function show(div) {
	div.style.display = 'block';
}
function hide(div) {
	div.style.display = 'none';
}


//DIV ÅÇ¸Þ´º1
function DisplayMenu1st(index1,s_index1,e_index1) {
		for (i=s_index1; i<=e_index1; i++)
			if (index1 == i) {
				thisMenu = eval("menu1st" + index1 + ".style");
				thisMenu.display = "";
			} 
			else {
				otherMenu = eval("menu1st" + i + ".style"); 
				otherMenu.display = "none"; 
			}
		}


//DIV ÅÇ¸Þ´º2
function DisplayMenu2st(index1,s_index1,e_index1) {
		for (i=s_index1; i<=e_index1; i++)
			if (index1 == i) {
				thisMenu = eval("menu2st" + index1 + ".style");
				thisMenu.display = "";
			} 
			else {
				otherMenu = eval("menu2st" + i + ".style"); 
				otherMenu.display = "none"; 
			}
		}
//DIV ÅÇ¸Þ´º2
function DisplayMenu2nd(index2,s_index2,e_index2) {
		for (j=s_index2; j<=e_index2; j++)
			if (index2 == j) {
				thisMenu = eval("menu2nd" + index2 + ".style");
				thisMenu.display = "";
			} 
			else {
				otherMenu = eval("menu2nd" + j + ".style"); 
				otherMenu.display = "none"; 
			}
		}


//DIV ÅÇ¸Þ´º3
function DisplayMenu3st(index3,s_index3,e_index3) {
		for (i=s_index3; i<=e_index3; i++)
			if (index1 == i) {
				thisMenu = eval("menu3st" + index1 + ".style");
				thisMenu.display = "";
			} 
			else {
				otherMenu = eval("menu3st" + i + ".style"); 
				otherMenu.display = "none"; 
			}
		}

//DIV ÅÇ¸Þ´º4
function DisplayMenu4nd(index4,s_index4,e_index4) {
		for (j=s_index4; j<=e_index4; j++)
			if (index2 == j) {
				thisMenu = eval("menu4nd" + index2 + ".style");
				thisMenu.display = "";
			} 
			else {
				otherMenu = eval("menu4nd" + j + ".style"); 
				otherMenu.display = "none"; 
			}
		}

