	document.writeln("<script language=\"JScript\" src=\"/include/js/common.js\"></script>");

  	function hideBMenu(){
		if (strCurrentMode == 'View'){
			hideView(intViewIndex);
		}
	}

   top_menu_01on = new Image();
   top_menu_01on.src = "/home/kor/images/button/menu01_t01.gif";
   top_menu_02on = new Image();
   top_menu_02on.src = "/home/kor/images/button/menu01_t02.gif";
   top_menu_03on = new Image();
   top_menu_03on.src = "/home/kor/images/button/menu01_t03.gif";
   top_menu_04on = new Image();
   top_menu_04on.src = "/home/kor/images/button/menu01_t04.gif";
   top_menu_05on = new Image();
   top_menu_05on.src = "/home/kor/images/button/menu01_t05.gif";
   top_menu_06on = new Image();
   top_menu_06on.src = "/home/kor/images/button/menu01_t06.gif";
   top_menu_07on = new Image();
   top_menu_07on.src = "/home/kor/images/button/menu01_t07.gif";
   top_menu_08on = new Image();
   top_menu_08on.src = "/home/kor/images/button/menu01_t08.gif";
   top_menu_09on = new Image();
   top_menu_09on.src = "/home/kor/images/button/menu01_t09.gif";
   
   top_menu2_01on = new Image();
   top_menu2_01on.src = "/home/kor/images/button/menu02_01.gif";
   top_menu2_02on = new Image();
   top_menu2_02on.src = "/home/kor/images/button/menu02_03.gif";



	top_menu_01off = new Image();
   top_menu_01off.src = "/home/kor/images/button/menu01_t01_3.gif";
   top_menu_02off = new Image();
   top_menu_02off.src = "/home/kor/images/button/menu01_t02_3.gif";
   top_menu_03off = new Image();
   top_menu_03off.src = "/home/kor/images/button/menu01_t03_3.gif";
   top_menu_04off = new Image();
   top_menu_04off.src = "/home/kor/images/button/menu01_t04_3.gif";
   top_menu_05off = new Image();
   top_menu_05off.src = "/home/kor/images/button/menu01_t05_3.gif";
   top_menu_06off = new Image();
   top_menu_06off.src = "/home/kor/images/button/menu01_t06_3.gif";
   top_menu_07off = new Image();
   top_menu_07off.src = "/home/kor/images/button/menu01_t07_3.gif";
   top_menu_08off = new Image();
   top_menu_08off.src = "/home/kor/images/button/menu01_t08_3.gif";
   top_menu_09off = new Image();
   top_menu_09off.src = "/home/kor/images/button/menu01_t09_3.gif";
   
    top_menu2_01off = new Image();
   top_menu2_01off.src = "/home/kor/images/button/menu02_01_3.gif";
   top_menu2_02off = new Image();
   top_menu2_02off.src = "/home/kor/images/button/menu02_03_3.gif";
   


  function IMG_ENABLE(imgName, type) {
   	if(type=="off"){
      	imgOn = eval(imgName + "on.src");
       	document[imgName].src = imgOn;
      }
   }

   function IMG_DISABLE(imgName) {
		imgOff = eval(imgName + "off.src");
	   document[imgName].src = imgOff;
   }

   var strCurrentMode = "notView";
	var intViewIndex;

	function hideView(menuNum){
		var OElementLayer;

		OElementLayer= document.getElementById("bmenu" + menuNum);
		OElementLayer.style.display = "none";

		intViewIndex = 0;
		strCurrentMode = "notView"
	}

	function viewBmenu(menuNum,oBox){
		var intLeft = oBox.firstChild.offsetLeft;
		var intTop = oBox.firstChild.offsetTop;

		//¸Þ´º¹öÆ°°ú bmenu¿ÍÀÇ ³ôÀÌ°£°Ý º¯¼ö.
		var topHeight = 81;
		var intLeft = 0;

		if (strCurrentMode == "notView"){
			OElementLayer = document.getElementById("bmenu" + menuNum);
			OElementLayer.style.pixelLeft = intLeft;
			OElementLayer.style.pixelTop = intTop + topHeight;
			OElementLayer.style.display = "block";
			intViewIndex = menuNum;
			strCurrentMode = "View";
		}
		else if (strCurrentMode == "View"){

			OElementLayerHide = document.getElementById("bmenu" + intViewIndex);
			OElementLayerHide.style.display = "none";

			OElementLayer = document.getElementById("bmenu" + menuNum);
			OElementLayer.style.pixelLeft = intLeft;
			OElementLayer.style.pixelTop = intTop + topHeight;
			OElementLayer.style.display = "block";

			intViewIndex = menuNum;
			strCurrentMode = "View";
		}
	}

	//  ³Ñ°Ü¿Â ÅÂ±× ¹øÈ£¸¦ »ç¿ëÇÏ¿© ±× ÅÂ±×¸¦ ¼û±â°í º¸ÀÎ´Ù.
	function ShowHideTag(idx) {
		var currentDisplayStyle
		currentDisplayStyle = document.all(idx).style.display ;

		if (currentDisplayStyle == 'none') {
			document.all(idx).style.display = 'block';
		}
		else {
			document.all(idx).style.display = 'none';
		}
	}

	//  ³Ñ°Ü¿Â±× ¹øÈ£¸¦ »ç¿ëÇÏ¿© ±× ÅÂ±×¸¦ ¼û±â°í º¸ÀÎ´Ù.
	// ¶ÇÇÑ ÀÌ¹ÌÁöµµ »óÅÂ¿¡ µû¶ó º¯°æÇÑ´Ù.
	function OnClickShowHideIcon(idx1,idx2,imagename1, imagename2) {
		var currentImageSrc
		currentImageSrc = document.all(idx1).src ;

		// ÅÂ±× ¼û±â±â º¸ÀÌ±â ÇÔ¼ö È£Ãâ
		ShowHideTag(idx2) ;


		currentImageSrc = currentImageSrc.substr(currentImageSrc.indexOf("/",currentImageSrc.indexOf("/",currentImageSrc.indexOf("/",0)+1)+1));

		if (currentImageSrc == imagename1) {
			document.all(idx1).src = imagename2;
		}
		else {
			document.all(idx1).src = imagename1;
		}
	}

	var currentidx = '';


// ÀÌ¸ÞÀÏÁÖ¼Ò¹«´Ü¼öÁý°ÅºÎ ¿ÀÇÂÃ¢

function view(what) { 
var imgwin = window.open("",'wins','scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=480,height=502,left=150,top=100'); 
imgwin.focus(); 
imgwin.document.open(); 
imgwin.document.write("<html>\n"); 
imgwin.document.write("<head>\n"); 
imgwin.document.write("<title>ÀÌ¸ÞÀÏÁÖ¼Ò¹«´Ü¼öÁý°ÅºÎ</title>\n"); //¿ÀÇÂÃ¢ Å¸ÀÌÆ² ÀÌ¸§ ÁöÁ¤ÇÏ´Â ºÎºÐ 

imgwin.document.write("</head>\n"); 
imgwin.document.write('<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" bgcolor="#FFFFFF">\n'); 
imgwin.document.write('<table width="480" border="0" cellspacing="0" cellpadding="0"><tr><td>\n'); 
imgwin.document.write("<img src='/home/kor/images/main/kms.gif' onClick='window.close();' style='cursor:hand;' border='0'>\n"); 
imgwin.document.write("</td></tr></table>\n"); 

imgwin.document.write("</body>\n"); 
imgwin.document.write("</html>\n"); 
imgwin.document.close(); 
}


// ÀÌ¸ÞÀÏÁÖ¼Ò¹«´Ü¼öÁý°ÅºÎ ¿ÀÇÂÃ¢

function view2(what) { 
var imgwin = window.open("",'wins2','scrollbars=no,status=no,toolbar=no,resizable=no,location=no,menu=no,width=480,height=686,left=150,top=100'); 
imgwin.focus(); 
imgwin.document.open(); 
imgwin.document.write("<html>\n"); 
imgwin.document.write("<head>\n"); 
imgwin.document.write("<title>°Ô½ÃÆÇ¿î¿µ¹æÄ§</title>\n"); //¿ÀÇÂÃ¢ Å¸ÀÌÆ² ÀÌ¸§ ÁöÁ¤ÇÏ´Â ºÎºÐ 

imgwin.document.write("</head>\n"); 
imgwin.document.write('<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" bgcolor="#FFFFFF">\n'); 
imgwin.document.write('<table width="480" border="0" cellspacing="0" cellpadding="0"><tr><td>\n'); 
imgwin.document.write("<img src='/home/kor/images/main/kms2.gif' onClick='window.close();' style='cursor:hand;' border='0'>\n"); 
imgwin.document.write("</td></tr></table>\n"); 

imgwin.document.write("</body>\n"); 
imgwin.document.write("</html>\n"); 
imgwin.document.close(); 
}

