function OpenMenu( num ) {

    if (num==1) location.href = '/index.html';             						//¸ÞÀÎ È¨
	if (num==2) location.href = 'mailto:kmh@koreadia.or.kr';				 //¸ÞÀÏ
	if (num==3) location.href = '/sitemap.html';           						//»çÀÌÆ®¸Ê
	if (num==4) location.href = '/admin/';           								//°ü¸®ÀÚÆäÀÌÁö
	if (num==5) window.open('http://sbsgolf.com/html/front/tv/lesson/less_01/index.jsp','','');           						//sbs¹æ¼Û
	if (num==6) location.href = '/admin/logout.php';           						//·Î±×¾Æ¿ô
	if (num==7) location.href = 'http://en.koreadia.or.kr';           						//¿µ¹®»çÀÌÆ®
	if (num==8) location.href = '/admembers/?a_type=1';           				//È¸¿ø·Î±×ÀÎÆäÀÌÁö> À¯°¡°øÁ¤º¸
	if (num==9) location.href = '/admembers/?a_type=2';           				//È¸¿ø·Î±×ÀÎÆäÀÌÁö> °£Çà¹°

//ÇùÈ¸¼Ò°³

    /*if (num==101) window.open('/system_work.swf','flash','width=960,height=650,top=0,left=0');*/
	if (num==101) location.href = '/about/sub01.html';						//
	if (num==102) location.href = '/about/sub02.html';						//
	if (num==103) location.href = '/about/sub03.html';						//
					//

//È¸¿ø»ç

    if (num==201) location.href = '/partner/sub01.html';								//
    if (num==202) location.href = '/partner/sub02.html';							    //
	if (num==203) location.href = '/partner/sub03.html';								//


//Åë°è

    if (num==301) location.href = '/statistics/sub01.html';							//
    if (num==302) location.href = '/statistics/sub02.html';							//
    if (num==303) location.href = '/statistics/sub03.html';							//
    if (num==304) location.href = '/statistics/sub04.html';				     		//
    if (num==305) location.href = '/statistics/sub05.html';					    	//
    if (num==306) location.href = '/statistics/sub06.html';					    	//
    if (num==307) location.href = '/statistics/sub07.html';					    	//
    if (num==308) location.href = '/statistics/sub08.html';					    	//
    if (num==309) location.href = '/statistics/sub09.html';					    	//
    if (num==310) location.href = '/statistics/sub10.html';					    	//
    if (num==311) location.href = '/statistics/sub11.html';					    	//
    if (num==312) location.href = '/statistics/sub12.html';					    	//
	if (num==313) location.href = '/hjboard29/hjboard.php?db=bbs29';			   	//
    if (num==321) location.href = '/statistics/sub21.html';							//*Ãß°¡ÆäÀÌÁö
    if (num==322) location.href = '/statistics/sub22.html';							//
    if (num==323) location.href = '/statistics/sub23.html';							//
    if (num==324) location.href = '/statistics/sub24.html';				     		//

//½ÅÁ¦Ç°Á¤º¸

    if (num==401) location.href = '/hjpds/hjpds.php?db=pds';								//
    if (num==402) location.href = '/hjpds3/hjpds.php?db=pds3';								//
    if (num==403) location.href = '/hjboard7/hjboard.php?db=bbs7';								//

//¿ìÀ¯»ó½Ä

	if (num==501) location.href = '/info/sub01.html';							//¿ìÀ¯ÀÌ¾ß±â
	if (num==5011) location.href = '/info/sub01_01.html';							//
	if (num==5012) location.href = '/info/sub01_02.html';							//
	if (num==502) location.href = '/info/sub02.html';							//¹ßÈ¿À¯ÀÌ¾ß±â
	if (num==5021) location.href = '/info/sub02_04.html';							//
	if (num==503) location.href = '/info/sub03.html';							//Ä¡ÁîÀÌ¾ß±â
	if (num==5031) location.href = '/info/sub03_03.html';							//
	if (num==504) location.href = '/info/sub04.html';					//
//	if (num==5041) location.href = '/info/sub04_01.html';					//
//	if (num==5042) location.href = '/info/sub04_02.html';					//
//	if (num==5043) location.href = '/info/sub04_03.html';					//
//	if (num==5044) location.href = '/info/sub04_04.html';					//
	if (num==505) location.href = '/hjpds2/hjpds.php?db=pds2';					//¿ìÀ¯¿ä¸®
	if (num==506) location.href = '/info/sub06.html';					//¿ìÀ¯»ó½Ä
	if (num==507) location.href = '/info/sub07.html';					//À¯Á¦Ç°ÀÇÁ¦Á¶°úÁ¤

//°í°´Áö¿ø

    if (num==601) location.href = '/hjboard24/hjboard.php?db=bbs24';				//»õ¼Ò½Ä
    if (num==602) location.href = '/hjboard15/hjboard.php?db=bbs15';				// »èÁ¦
	if (num==6021) location.href = '/hjboard30/hjboard.php?db=bbs30';				//
	if (num==6022) location.href = '/hjboard17/hjboard.php?db=bbs17';				//
    if (num==603) location.href = '/board_new/list.php?kind_code=1';							//ÀÔÂû°ø°í
	if (num==604) location.href = '/hjboard28/hjboard.php?db=bbs28';							//°ü¸®ÀÚ°Ô½ÃÆÇ

//À§ÇØÁ¤º¸

	if (num==701) location.href =	'/hjboard_report/hjboard.php?db=bbs31';							//
	if (num==7011) location.href =	'/hjboard_report/hjboard.php?db=bbs32';							//
	if (num==702) location.href =   '/hjboard_report/hjboard.php?db=bbs33';							//
	if (num==7021) location.href =  '/hjboard_report/hjboard.php?db=bbs34';							//
	if (num==703) location.href =   '/hjpds/hjpds.php?db=pds';							//
	if (num==7031) location.href =  '/hjpds3/hjpds.php?db=pds3';							//
	if (num==7032) location.href =  '/hjboard_report/hjboard.php?db=bbs7';							//
	if (num==704) location.href =   '/hjboard_report/hjboard.php?db=bbs37';							//
	if (num==7041) location.href =  '/hjboard_report/hjboard.php?db=bbs38';							//
	if (num==7042) location.href =  '/hjboard_report/hjboard.php?db=bbs39';							//
	if (num==705) location.href =   '/hjboard_report/hjboard.php?db=bbs40';							//
	if (num==7051) location.href =  '/hjboard_report/hjboard.php?db=bbs41';							//
	if (num==706) location.href =   '/hjboard_report/hjboard.php?db=bbs42';							//
	if (num==7061) location.href =  '/hjboard_report/hjboard.php?db=bbs43';							//

//Ä«´Þ·Î±×

	if (num==800) location.href = '/catalog/21ho.html';							//21~30È£
	if (num==801) location.href = '/catalog/1ho.html';							//1~10È£
	if (num==8011) location.href = '/catalog/11ho.html';							//11~20È£

	if (num==802) location.href = '/catalog/2009data.html';			//Åë°è·Î º¸´Â e-book
	if (num==8021) location.href = '/hjboard_report/hjboard.php?db=bbs44';			//±¹³»ÇØ¿ÜÅë°èÀÚ·áÁý
	if (num==803) location.href = '/hjboard_report/hjboard.php?db=bbs45';			//À¯°¡°ø°ü·ÃÀÚ·á
	if (num==804) location.href = '/hjboard_report/hjboard.php?db=bbs46';			//±âÅ¸ÀÚ·á
	if (num==805) location.href = '/hjboard_report/hjboard.php?db=bbs47';			//ÇØ¿Ü´º½º·¹ÅÍ

	//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='';
	}
}

function left_menu(name)
{
	submenu=eval("left_submenu_"+name+".style");
		if(old!=submenu)
	{
		if(old!='')
		{
			old.display='none';
		}
		submenu.display='block';
		old=submenu;
	}
	else
	{
		submenu.display='none';
		old='';
	}
}

function popimg2(url, width, height, opt) {

	if (opt != null && opt != '') opt = ',' + opt;
	str = '<body topmargin=0 leftmargin=0><img src="' + url + '" border=0 onmousedown=" self.close(); "></body>';
	pop = window.open('','zome','width=' + width + ',height=' + height + opt);
	pop.focus();
	pop.document.write(str);
}

// 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>*/
