function OpenMenu( num ) {

    if (num==1) location.href = '/index.html';								//¸ÞÀÎ È¨
	if (num==2) location.href = 'mailto:web@2768.co.kr';					    //¸ÞÀÏ
	if (num==3) location.href = '/contactus.html';						//contact us
	if (num==4) location.href = '/sitemap.html';							//»çÀÌÆ®¸Ê
	if (num==5) window.open('http://www.dbcut.com','','');		//º¥Ä¡¸¶Å·»çÀÌÆ®°Ë»ö
	if (num==6) location.href = '/agree.html';							//ÀÌ¿ë¾à°ü
	if (num==7) location.href = '/privacy.html';							//°³ÀÎÁ¤º¸Ãë±Þ¹æÄ§
	if (num==8) location.href = '/company.html';							//È¸»ç¼Ò°³
	if (num==9) location.href = '/portfolio.html';							//Æ÷Æ®Æú¸®¿À	
	if (num==10) window.open('/emagination/pay.html','','width=500,height=400');		//º¥Ä¡¸¶Å·»çÀÌÆ®°Ë»ö

//È¨ÆäÀÌÁöÁ¦ÀÛ¹æ¹ý

	if (num==101) location.href = '/make/sub01.html';						//È¨ÆäÀÌÁöÁ¦ÀÛ»ó½Ä-È¨ÆäÀÌÁöÁ¦ÀÛ
	if (num==1011) location.href = '/make/sub01_01.html';						//È¨ÆäÀÌÁö°ü¸®¹×À¯Áöº¸¼ö
	if (num==1012) location.href = '/make/sub01_02.html';						//¼­¹ö
	if (num==1013) location.href = '/make/sub01_03.html';						//È£½ºÆÃ
	if (num==1014) location.href = '/make/sub01_04.html';						//µµ¸ÞÀÎ
	if (num==1015) location.href = '/make/sub01_05.html';						//¸ÞÀÏ
	if (num==102) location.href = '/make/sub02.html';						//¿Â¶óÀÎ¹®ÀÇÀýÂ÷
	if (num==103) location.href = '/make/sub03.html';						//È¨ÆäÀÌÁöÁ¦ÀÛÀýÂ÷
	if (num==104) location.href = '/make/sub04.html';						//ÁÁÀº¿þ¿¡ÀÌÀü½Ã¼±ÅÃ¹ý
	if (num==105) location.href = '/make/sub05.html';							//È¨ÆäÀÌÁöÀÚ·áÁØºñ

//°í°´Áö¿ø

    if (num==201) location.href = '/html/?code=B01';								// È¨ÆäÀÌÁö¹¯°í´äÇÏ±â
    if (num==202) location.href = '/html/?code=B02';							// ÀÚÁÖ¹¯´ÂÁú¹®
    if (num==203) location.href = '/html/?code=B03';							// ÀÚ·á½Ç


//È¨ÆäÀÌÁöÁ¦ÀÛÀÇ·Ú

    if (num==301) location.href = '/inquiry/sub01.html';							//È¨ÆäÀÌÁöÁ¦ÀÛÀÇ·Ú
    if (num==302) location.href = '/html/?code=RI1';							//È¨ÆäÀÌÁöÁ¦ÀÛÀÇ·Ú
    if (num==303) location.href = '/html/?code=RT1';							//È¨ÆäÀÌÁöÁ¦ÀÛÀÇ·Ú

//À¥¿¡ÀÌÁ¯½Ãµî·Ï

    if (num==401) location.href = '/regist/sub01.html';								//À¥¿¡ÀÌÁ¯½Ãµî·Ï

//¸¶ÀÌÆäÀÌÁö

	if (num==501) location.href = '/portfolio.html';				//ÀüÈ­»ó´ã
	//if (num==501) location.href = '/html/?code=RI1&mode=mylist';				//ÀüÈ­»ó´ã
	if (num==502) location.href = '/html/?code=RI1&mode=mylist';				//³ªÀÇÀÇ·Ú
	//if (num==503) location.href = '/html/?code=RT1&mode=mylist';			//³ªÀÇÀüÈ­»ó´ã
	if (num==503) location.href = '/mypage/?';											//³»Á¤º¸º¸±â
	if (num==504) location.href = '/mypage/?mode=pay';							//Æ÷ÀÎÆ®ÃæÀü

// ¾ÆÀÌµð/ºñ¹ø

	if (num==601) location.href = '/mypage/?mode=search_id' ;
	if (num==602) location.href = '/mypage/?mode=search_pw' ;


//È¨ÆäÀÌÁöÁ¾·ù
	if (num==701) location.href = '/hp/sub01.html';
	if (num==702) location.href = '/hp/sub02.html';
	if (num==703) location.href = '/hp/sub03.html';
	if (num==704) location.href = '/hp/sub04.html';
	if (num==705) location.href = '/hp/sub05.html';
	if (num==706) location.href = '/hp/sub06.html';
	if (num==707) location.href = '/hp/sub07.html';
	if (num==708) location.href = '/hp/sub08.html';
	if (num==709) location.href = '/hp/sub09.html';
	if (num==710) location.href = '/hp/sub10.html';
	if (num==711) location.href = '/hp/sub11.html';


	//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;}
	}
}



