function OpenMenu( num ) {

    if (num==1) location.href = '/index.html';             						//¸ÞÀÎ È¨
	if (num==2) location.href = 'mailto:iretech@nate.com';								//¸ÞÀÏ
	if (num==3) location.href = '/sitemap.html';           						//»çÀÌÆ®¸Ê
	if (num==4) location.href = '/admin/';           								//°ü¸®ÀÚÆäÀÌÁö
	if (num==5) location.href = '/agree.html';           								//ÀÌ¿ë¾à°ü
	if (num==6) location.href = '/boho.html';           								//°³ÀÎÁ¤º¸
	if (num==7) location.href = '/';           								//ÀÎÆ®¶ó³Ý

	
	if (num==10) location.href = '/html/?code=B06';           								//¸ÞÀÎ ÀÌº¥Æ®

//È¸»ç¼Ò°³

    /*if (num==101) window.open('/system_work.swf','flash','width=960,height=650,top=0,left=0');*/
	if (num==101) location.href = '/company/sub01.html';						//
	if (num==102) location.href = '/company/sub02.html';						//
	if (num==103) location.href = '/company/sub03.html';						//
	if (num==104) location.href = '/company/sub04.html';						//
	if (num==105) location.href = '/company/sub05.html';						//
	if (num==106) location.href = '/company/sub06.html';						//

//Á¦Ç°¼Ò°³

    if (num==200) location.href = '/product/sub00.html';								// 
    if (num==201) location.href = '/product/sub01.html';								// 
    if (num==202) location.href = '/product/sub02.html';								// 
    if (num==203) location.href = '/product/sub03.html';								// 
    if (num==204) location.href = '/product/sub04.html';								// 
    if (num==205) location.href = '/product/sub05.html';								// 
    if (num==206) location.href = '/product/sub06.html';								// 
    if (num==207) location.href = '/product/sub07.html';								// 
    if (num==208) location.href = '/product/sub08.html';								// 
    if (num==209) location.href = '/product/sub09.html';								// 
    if (num==210) location.href = '/product/sub10.html';								// 
	

//Á¦Ç°ÆÇ¸ÅÃ³

    if (num==301) location.href = '/order/sub01.html';							//

//Áú¹®°ú´äº¯

    if (num==401) location.href = '/html/?code=B01';								//
    if (num==402) location.href = '/html/?code=B02';								//
    if (num==403) location.href = '/html/?code=B03';								//
    if (num==404) location.href = '/html/?code=B04';								//
    if (num==405) location.href = '/html/?code=B05';								//
    if (num==406) location.href = '/html/?code=B06';								//


//ÇÇºÎÀÇÀÌÇØ
	if (num==601) location.href = '/skinu/sub01.html';							//
	if (num==6011) location.href = '/skinu/sub01.html';							//
	if (num==6012) location.href = '/skinu/sub02.html';							//
	if (num==6013) location.href = '/skinu/sub03.html';							//
	if (num==6014) location.href = '/skinu/sub04.html';							//
	if (num==6015) location.href = '/skinu/sub05.html';							//
	if (num==6016) location.href = '/skinu/sub06.html';							//
	if (num==6017) location.href = '/skinu/sub07.html';							//
	if (num==6018) location.href = '/skinu/sub08.html';							//

//ÀÚÀ¯°ø°£

	if (num==501) location.href = '/html/?code=C01';							//
	if (num==502) location.href = '/html/?code=C02';							//
	if (num==503) location.href = '/html/?code=C03';							//
	if (num==504) location.href = '/html/?code=C04';							//
	if (num==505) location.href = '/html/?code=C05';							//
	if (num==506) location.href = '/html/?code=C06';							//

//INTRANET

	if (num==801) location.href = '/html/?code=I01';							//
	if (num==802) location.href = '/html/?code=I02';							//
	if (num==803) location.href = '/html/?code=I03';							//
	if (num==804) location.href = '/html/?code=I04';							//
	if (num==805) location.href = '/html/?code=I05';							//
	if (num==806) location.href = '/html/?code=I06';							//
	if (num==807) location.href = '/html/?code=I07';							//

//È¸¿ø

	if (num==701) location.href = '/mypage/?mode=agree';							//È¸¿ø°¡ÀÔ              
	if (num==702) location.href = '/mypage/?mode=loginform';						//·Î±×ÀÎ                
	if (num==703) location.href = '/mypage/?mode=search';						//¾ÆÀÌµð/ºñ¹Ð¹øÈ£ Ã£±â  
	if (num==704) location.href = '/mypage/?mode=modify';						//°³ÀÎÁ¤º¸º¯°æ          	
	if (num==705) location.href = '/mypage/?mode=logout';							//·Î±×¾Æ¿ô          					
	if (num==706) 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);

}



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;}
	}
}


