function OpenMenu( num ) {

    if (num==1) location.href = '/index.html';             						//¸ÞÀÎ È¨
	if (num==2) location.href = 'mailto:thejungjin@hanmail.net';           //¸ÞÀÏ
	if (num==3) location.href = '/sitemap.html';           						//»çÀÌÆ®¸Ê
	if (num==4) location.href = '/admin/';           								//°ü¸®ÀÚÆäÀÌÁö
	if (num==5) window.open('http://','','');           						

	if (num==7) location.href = '/logout.php';									// ·Î±×¾Æ¿ô

//°ø¿¬±âÈ¹Á¤Áø

    /*if (num==101) window.open('/system_work.swf','flash','width=960,height=650,top=0,left=0');*/
	if (num==101) location.href = '/jungjin/sub01.html';						//È¸»ç¼Ò°³
	if (num==102) location.href = '/jungjin/sub02.html';						//»ç¾÷¿µ¿ª
	if (num==103) location.href = '/jungjin/sub03_04.html';					//ÁÖ¿ä½ÇÀû
	if (num==1031) location.href = '/jungjin/sub03_01.html';				//ÁÖ¿ä½ÇÀû2007
	if (num==1032) location.href = '/jungjin/sub03.html';						//ÁÖ¿ä½ÇÀû2008
	if (num==1033) location.href = '/jungjin/sub03_02.html';				//ÁÖ¿ä½ÇÀû2009
	if (num==1034) location.href = '/jungjin/sub03_03.html';				//ÁÖ¿ä½ÇÀû2010
	if (num==1035) location.href = '/jungjin/sub03_04.html';				//ÁÖ¿ä½ÇÀû2011
	if (num==104) location.href = '/jungjin/sub04.html';						//Å¬¶óÀÌ¾ðÆ®
	if (num==105) location.href = '/jungjin/sub05.html';						//À§Ä¡/¿¬¶ôÃ³

//°ø¿¬

    if (num==201) location.href = '/html/?code=P01';								// ÆÛÆ÷¸Õ½º
    if (num==2012) location.href = '/html/?code=P02';								// ´í½º/¹«¿ë
    if (num==2013) location.href = '/html/?code=P03';								// ÀüÅë°ø¿¬
    if (num==2014) location.href = '/html/?code=P04';								// ¿Ü±¹°ø¿¬
    if (num==202) location.href = '/html/?code=P05';							    // ¿¬È¸¿¬ÁÖ(BGM)
	if (num==203) location.href = '/html/?code=P06';								// ÀÌº¥Æ®
    if (num==204) location.href = '/performance/sub07.html';								// ±âÈ¹°ø¿¬
	

//±³À°Áö¿ø

    if (num==301) location.href = '/edu/sub01.html';							//¹ÂÁöÄÃ/¿¬±Ø
    if (num==302) location.href = '/edu/sub02.html';							//¾ÆÄ«Æç¶ó
    if (num==303) location.href = '/edu/sub03.html';							//Å¸¾ÇÆÛÆ÷¸Õ½º
    if (num==304) location.href = '/edu/sub04.html';				     		//¸¶¼ú¼î
    if (num==305) location.href = '/edu/sub05.html';					    	//»ç¹°³îÀÌ
    if (num==306) location.href = '/edu/sub06.html';					    	//¶óÆ¾´í½º/ÈüÇÕ
    if (num==307) location.href = '/edu/sub07.html';					    	//±âÅ¸°ø¿¬

//Çà»çÁö¿ø

    if (num==401) location.href = '/event/sub01.html';								//À½Çâ
    if (num==402) location.href = '/event/sub02.html';								//Á¶¸í
    if (num==403) location.href = '/event/sub03.html';								//¿µ»ó
    if (num==404) location.href = '/event/sub04.html';								//¹«´ë
    if (num==405) location.href = '/event/sub05.html';								//Æ¯¼öÈ¿°ú
    if (num==406) location.href = '/event/sub06.html';								//·¹ÀÌÁ®¼î

//Ä¿¹Â´ÏÆ¼
	if (num==501) location.href = '/html/?code=B01';							//°¶·¯¸®
	if (num==502) location.href = '/html/?code=B02';							//ÀÚÀ¯°Ô½ÃÆÇ
	if (num==503) location.href = '/html/?code=B03';							//°ø¿¬ÆÀµî·Ï
	if (num==504) location.href = '/html/?code=B04';							//°øÁö»çÇ×

//°ø¿¬¹®ÀÇ

    if (num==601) location.href = '/html/?code=I01';							//
	

	//if (num==501) window.open('http://www.e-mg.co.kr','','');
}

function MM_showHideLayers() { //v3.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
obj.visibility=v; }
}

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_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

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];}
}

var old='';

function menu(name)
{
submenu=eval("submenu_"+name+".style");
		if(old!=submenu)
	{
		if(old!='')
		{
			old.display='none';
		}
		submenu.display='block';
		old=submenu;
	}
	else
	{
		submenu.display='none';
		old='';
	}
}



// flashWrite(ÆÄÀÏ°æ·Î, °¡·Î, ¼¼·Î, ¾ÆÀÌµð, ¹è°æ»ö, º¯¼ö, À©µµ¿ì¸ðµå)
function flashWrite(url,w,h,id,bg,vars,win){

	// ÇÃ·¡½Ã ÄÚµå Á¤ÀÇ
	var flashStr=
	"<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+w+"' height='"+h+"' id='"+id+"' align='middle'>"+
	"<param name='allowScriptAccess' value='always' />"+
	"<param name='movie' value='"+url+"' />"+
	"<param name='FlashVars' value='"+vars+"' />"+
	"<param name='wmode' value='"+win+"' />"+
	"<param name='menu' value='false' />"+
	"<param name='quality' value='high' />"+
	"<param name='bgcolor' value='"+bg+"' />"+
	"<embed src='"+url+"' FlashVars='"+vars+"' wmode='"+win+"' menu='false' quality='high' bgcolor='"+bg+"' width='"+w+"' height='"+h+"' name='"+id+"' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+
	"</object>";

	// ÇÃ·¡½Ã ÄÚµå Ãâ·Â
	document.write(flashStr);

}

/*<script>flashWrite('/img/menu_link.swf','640','89','','','','transparent')</script>*/

function openPopup(href, name, w, h) {
	openwin = window.open(href, name, "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width="+w+",height="+h);
}
