function OpenMenu( num ) {

    if (num==1) location.href = '/index.html';             						//¸ÞÀÎ È¨
	if (num==2) location.href = 'mailto:mykim@hellokittycafe.co.kr';           //¸ÞÀÏ
	if (num==3) location.href = '/sitemap.html';           						//»çÀÌÆ®¸Ê
	if (num==4) location.href = '/admin/';           								//°ü¸®ÀÚÆäÀÌÁö

	if (num==5) window.open('/pop.html','flash','width=597,height=911,top=0,left=0');										//
	if (num==6) window.open('http://mercury.kau.ac.kr/etce/','','');									//Ç×°øÀüÀÚ¹×Á¤º¸Åë½Å°øÇÐºÎ
	if (num==7) window.open('http://www.kau.ac.kr/graduate/aviation/index.htm','','');		//°øÇÐÀÎÁõ
	if (num==8) window.open('http://www.kau.ac.kr/graduate/aviation/index.htm','','');		//´ëÇÐ¿ø

//company

	if (num==101) location.href = '/company/sub01.html';						//È¸»ç¼Ò°³ - ÀÎ»ç¸»
	if (num==1011) location.href = '/company/sub01_01.html';						//È¸»ç¼Ò°³ - ¿À½Ã´Â±æ
	if (num==102) location.href = '/company/sub02.html';						//ºê·£µå¼Ò°³ - Çï·ÎÅ°Æ¼BI¼Ò°³
	if (num==1021) location.href = '/company/sub02_01.html';						//ºê·£µå¼Ò°³ - Çï·ÎÅ°Æ¼¼Ò°³
	if (num==1022) location.href = '/company/sub02_02.html';						//ºê·£µå¼Ò°³ - Çï·ÎÅ°Æ¼history
	if (num==103) location.href = '/company/sub03.html';						//³ª´®¼Ò°³

//menu

    if (num==201) location.href = '/menu/sub01.html';								// Ä¿ÇÇ
    if (num==202) location.href = '/menu/sub02.html';							    // Æ¼
    if (num==203) location.href = '/menu/sub03.html';							    // ÄÉÀÌÅ©
    if (num==204) location.href = '/menu/sub04.html';							    // ¸ÓÇÉµî
    if (num==205) location.href = '/menu/sub05.html';							    // »çÀÌµå¸Þ´º
    if (num==206) location.href = '/menu/sub06.html';							    // ½º¹«µð&ÇÁ¶óÆä
    if (num==207) location.href = '/menu/sub07.html';							    // ¿ÍÇÃ&ºê·¹µå
    if (num==208) location.href = '/menu/sub08.html';							    // new menu
    if (num==209) location.href = '/menu/sub09.html';							    // md»óÇ°


//store

    if (num==301) location.href = '/store/sub01_gansuk.html';							//¸ÅÀå¼Ò°³-¸ÅÀå°¶·¯¸®
    if (num==3011) location.href = '/store/sub01_01.html';					//¸ÅÀå¼Ò°³-¸ÅÀå¼Ò°³¹× À§Ä¡
    if (num==302) location.href = '/store/sub02.html';							//ÇÁ·£Â÷ÀÌÁî-Ã¢¾÷ÀýÂ÷
    if (num==3021) location.href = '/store/sub02_01.html';							//ÇÁ·£Â÷ÀÌÁî-Ã¢¾÷ºñ¿ë
    if (num==3022) location.href = '/html/?code=B01';							//ÇÁ·£Â÷ÀÌÁî-Ã¢¾÷¹®ÀÇ°Ô½ÃÆÇ
    if (num==303) location.href = '/html/?code=B08';							//ÃßÃµÁ¡Æ÷


//event

    if (num==401) location.href = '/html/?code=B02';								//ÀÌº¥Æ®
    if (num==402) location.href = '/html/?code=B03';								//HELLO KITTY GALLERY
    if (num==403) location.href = '/html/?code=B09';								//letter

//customer

	if (num==501) location.href = '/html/?code=B04';							//°øÁö»çÇ×
	if (num==502) location.href = '/customer/sub02.html';							//faq
	if (num==503) location.href = '/html/?code=B05';							//°í°´ÀÇ¼Ò¸®
	if (num==504) location.href = '/html/?code=B07';				//º¸µµÀÚ·á

//È¸¿ø

	if (num==601) location.href = '/mypage/?mode=agree';							//È¸¿ø°¡ÀÔ
	if (num==602) location.href = '/mypage/?mode=loginform';						//·Î±×ÀÎ
	if (num==603) location.href = '/mypage/?mode=search';						//¾ÆÀÌµð/ºñ¹Ð¹øÈ£ Ã£±â
	if (num==604) location.href = '/mypage/?mode=modify';						//°³ÀÎÁ¤º¸º¯°æ
	if (num==605) location.href = '/mypage/?mode=logout';							//·Î±×¾Æ¿ô
	if (num==606) location.href = '/mypage/?mode=out';						//Å»Åð


	//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;}
	}
}



