function OpenMenu( num ) {

    if (num==1) location.href = '/index.html';             						//¸ÞÀÎ È¨
	if (num==2) location.href = 'mailto:wlak@wla.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 = '/mbn/';           									//mbn¹æ¼Û
	if (num==7) location.href = '/logout.php';									// ·Î±×¾Æ¿ô
	if (num==8) location.href = '/member/private.html';									// °³ÀÎÁ¤º¸º¸È£Á¤Ã¥
	if (num==9) location.href = '/member/teenagers.html';									// Ã»¼Ò³âº¸È£Á¤Ã¥
	if (num==10) location.href = '/member/agree.html';									// ÀÌ¿ë¾à°ü

//ÇùÈ¸¼Ò°³

	if (num==100) location.href = '/about/sub01.html';						//flash_menulink
    /*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==104) location.href = '/about/sub04.html';						//Á¤°ü
	if (num==105) location.href = '/about/sub05.html';						//Á¶Á÷µµ
	if (num==106) location.href = '/about/sub06.html';						//ÀÓ¿øÁø
	if (num==107) location.href = '/html/?code=JBS';						//ÁöºÎÁöÈ¸
	if (num==1071) location.href = '/html/?code=JBS&ftyp=jibu_dt&fbox=1';	//ÁöºÎÁöÈ¸-ÇÑ±¹º»ºÎ
	if (num==1072) location.href = '/html/?code=JBS&ftyp=jibu_dt&fbox=3';	//ÁöºÎÁöÈ¸-¾Æ½Ã¾Æ
	if (num==1073) location.href = '/html/?code=JBS&ftyp=jibu_dt&fbox=7';	//ÁöºÎÁöÈ¸-¿À¼¼¾Æ´Ï¾Æ
	if (num==1074) location.href = '/html/?code=JBS&ftyp=jibu_dt&fbox=4';	//ÁöºÎÁöÈ¸-ºÏ¾Æ¸Þ¸®Ä«
	if (num==1075) location.href = '/html/?code=JBS&ftyp=jibu_dt&fbox=5';	//ÁöºÎÁöÈ¸-³²¾Æ¸Þ¸®Ä«
	if (num==1076) location.href = '/html/?code=JBS&ftyp=jibu_dt&fbox=2';	//ÁöºÎÁöÈ¸-À¯·´
	if (num==1077) location.href = '/html/?code=JBS&ftyp=jibu_dt&fbox=8';	//ÁöºÎÁöÈ¸-¾ÆÇÁ¸®Ä«
	if (num==1078) location.href = '/html/?code=JBS&ftyp=jibu_dt&fbox=6';	//ÁöºÎÁöÈ¸-Áßµ¿
	if (num==108) location.href = '/about/sub08.html';						//¿À½Ã´Â±æ
	

//ÇùÈ¸ µ¿Á¤

    if (num==200) location.href = '/html/?code=BU1';								//flash_menulink 
    if (num==201) location.href = '/html/?code=BU1';								//»ç¾÷°èÈ¹ 
    if (num==202) location.href = '/html/?code=BU2';							    //ÇùÈ¸µ¿Á¤
	if (num==203) location.href = '/html/?code=SCH';								//ÇùÈ¸ÀÏÁ¤
    if (num==204) location.href = '/html/?code=BU4';								//ÇùÈ¸È¸º¸
    if (num==205) location.href = '/html/?code=BU5';								//°øÁö»çÇ×
    if (num==206) location.href = '/html/?code=BU6';								//º¸µµÀÚ·á
    if (num==207) location.href = '/html/?code=BU7';								//Çà»ç¾È³»
    if (num==208) location.href = '/html/?code=BU8';								//Çà»çÀÚ·á
    if (num==209) location.href = '/html/?code=BU9';								//ÇùÈ¸±â°üÁö
	

//C O S

    if (num==300) location.href = '/cos/sub01.html';							//flash_menulink
    if (num==301) location.href = '/cos/sub01.html';							//Ãµ¿ì¹®ÇÐ°ü
    if (num==302) location.href = '/cos/sub02.html';							//ÀåÇÐÈ¸
    if (num==303) location.href = '/html/?code=BC1';							//±â³ä»ç¾÷È¸
    if (num==304) location.href = '/cos/sub04.html';				     		//¼îÇÎ¸ô
    if (num==305) location.href = '/cos/sub05.html';					    	//ÃâÆÇ»ç¾÷±¹
    if (num==306) location.href = '/cos/sub06.html';					    	//family card
    if (num==307) location.href = '/html/?code=BC2';					    	//ÈÄ¿ø±Ý
    if (num==308) location.href = '/html/?code=BC4';					    	//ÀúÀÛ±Ç À§Å¹
    if (num==3081) location.href = '/html/?code=BC4';					    	//°ü·Ã¹ý±Ô
    if (num==3082) location.href = '/html/?code=BC4';					    	//°è¾à ¹× À§Å¹°ü¸®

//¾ÆÄ«µ¥¹Ì

    if (num==400) location.href = '/html/?code=AC1';								//flash_menulink
    if (num==401) location.href = '/html/?code=AC1';								//½Ã,½ÃÁ¶
    if (num==402) location.href = '/html/?code=AC2';								//¾Æµ¿¹®ÇÐ
    if (num==403) location.href = '/html/?code=AC3';								//¹®ÇÐ³í¼ú
    if (num==404) location.href = '/html/?code=AC4';								//¼öÇÊ»ê¹®
    if (num==405) location.href = '/html/?code=AC5';								//¼Ò¼³Ã¢ÀÛ
    if (num==406) location.href = '/html/?code=AC6';								//¿Ü±¹¹®ÇÐ
    if (num==407) location.href = '/html/?code=AC7';								//½Ã³¶¼Û
    if (num==408) location.href = '/html/?code=AC8';								//³í¼ú

//»êÇÏ´ÜÃ¼

	if (num==500) location.href = '/html/?code=B01';							//flash_menulink
	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==505) location.href = '/html/?code=B05';							//
	if (num==506) location.href = '/html/?code=B06';							//
	if (num==507) location.href = '/html/?code=B07';							//
	if (num==508) location.href = '/html/?code=B08';							//
	if (num==509) location.href = '/html/?code=B09';							//
	if (num==510) location.href = '/html/?code=B10';							//
	if (num==511) location.href = '/html/?code=B11';							//


//¹®ÇÐ°è¼Ò½Ä

    if (num==600) location.href = '/html/?code=B12';							//flash_menulink
    if (num==601) location.href = '/html/?code=B12';							//¹®È­°è¼Ò½Ä
    if (num==602) location.href = '/html/?code=B13';							//°ø¸ðÀü¼Ò½Ä
    //if (num==603) location.href = '/html/?code=B14';							//½Å°£¼­Àû
	if (num==603) window.open('http://shop.wla.or.kr/shop/?code=SHP&ftyp=category1&fbox=1') ; 
    if (num==604) location.href = '/html/?code=B15';							//Çà»ç
    if (num==605) location.href = '/html/?code=B16';							//ºÎ°í
	
//¹®ÇÐ±¤Àå

	if (num==700) location.href = '/html/?code=B17';							//flash_menulink
	if (num==701) location.href = '/html/?code=B17';							//ÀÚÀ¯°Ô½ÃÆÇ
	if (num==702) location.href = '/html/?code=B18';							//Å×¸¶Åä·Ð¹æ
	if (num==703) location.href = '/html/?code=B19';							//ÀÛÇ°¹ßÇ¥±¤Àå
	if (num==704) location.href = '/html/?code=B20';							//Q&amp;A
	if (num==705) location.href = '/literal/sub01.html';							//ÃßÃµ»çÀÌÆ®
	if (num==7051) location.href = '/literal/sub01.html';							//-¹®ÀÎÈ¨ÆäÀÌÁö
	if (num==7052) location.href = '/literal/sub02.html';							//-°ü·Ã»çÀÌÆ®

//ÀÚ·á½Ç

	if (num==800) location.href = '/data/sub05.html';							//flash_menulink
	if (num==801) location.href = '/data/sub01.html';							//¼­½Ä¿­¶÷ ¹× ´Ù¿î·Îµå
	if (num==802) location.href = '/html/?code=BP1';							//¼­·ùÀÚµ¿¹ß±Þ
	if (num==803) location.href = '/data/sub03.html';							//°ü·Ã±ÔÁ¤
	if (num==804) location.href = '/data/sub04.html';							//ÆÐ¹Ð¸® Ä«µå
	if (num==805) location.href = '/data/sub05.html';							//ÀÛ°¡µî±Þ

// È¸¿ø°ü¸®

	if (num==901) location.href = '/member/?mode=agree';								    //È¸¿ø°¡ÀÔ
	if (num==902) location.href = '/member/?mode=loginform';								    //È¸¿ø·Î±×ÀÎ
	if (num==903) location.href = '/member/?mode=modify';								    //È¸¿øÁ¤º¸¼öÁ¤
	if (num==904) location.href = '/member/?mode=out';							    //È¸¿øÅ»Åð
	if (num==905) location.href = '/member/?mode=search';								    //¾ÆÀÌµð,ºñ¹øÃ£±â
	if (num==906) location.href = '/member/?mode=logout';								    //·Î±×¾Æ¿ô
	
// English-About

	if (num==1001) location.href = '/en/about/sub01.html';								    //Prospectus df WLA
	if (num==1002) location.href = '/en/about/sub02.html';								    //Chairman
	if (num==1003) location.href = '/en/about/sub03.html';								    //Functional
	
	
	//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' swLiveConnect=true 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 swapMenu() {
	imgid = document.all(arguments[0].id);
	tbl = document.all(arguments[1]);
	if (arguments[2] == null) arguments[2] = '';
	arguments[2] = arguments[2] + '.';
	if (arguments[3] == null) arguments[3] = '_r';
	arguments[3] = arguments[3] + '.';
	if (arguments[0].src.indexOf(arguments[3]) == -1) return;
	for (var i=0; i < imgid.length; i++) {
		if (imgid[i] == arguments[0]) { tbl[i].style.display = ''; imgid[i].src = imgid[i].src.substring(0,imgid[i].src.lastIndexOf(arguments[3])) + arguments[2] + imgid[i].src.substring(imgid[i].src.lastIndexOf('.')+1); continue;}
		if (imgid[i].src.indexOf(arguments[3]) == -1) { tbl[i].style.display = 'none'; imgid[i].src = imgid[i].src.substring(0,imgid[i].src.lastIndexOf(arguments[2])) + arguments[3] + imgid[i].src.substring(imgid[i].src.lastIndexOf('.')+1); continue;}
	}
}
