var old_menu = '';
var old_cell = '';
function menuclick( submenu)
{
  if( old_menu != submenu ) {
    if( old_menu !='' ) {
      old_menu.style.display = 'none';
    }
    submenu.style.display = 'block';
    old_menu = submenu;
  } else {
    submenu.style.display = 'none';
    old_menu = '';
  }
}

function GoMenu(menu) {
  if (menu == "") { return; } 
	else if (menu == "t01") {document.location.href = "../webhosting/wh_new_index.html";} //À¥È£½ºÆÃindex
	else if (menu == "t0101") {document.location.href = "../webhosting/wh_technology.html";} //Àû¿ë±â¼ú
	else if (menu == "t0102") {document.location.href = "../webhosting/wh_window_2008.html";} //À©µµ¿ìÀ¥È£½ºÆÃ
	else if (menu == "t0103") {document.location.href = "../webhosting/wh_std_linux.html";} //¸®´ª½º À¥È£½ºÆÃ
	else if (menu == "t0104") {document.location.href = "../webhosting/wh_imghosting.html";} //ÀÌ¹ÌÁöÈ£½ºÆÃ
	else if (menu == "t0105") {document.location.href = "../webhosting/wh_extra.html";} //ºÎ°¡¼­ºñ½º
	else if (menu == "t0106") {document.location.href = "../webhosting/wh_process.html";} //ÀÌ¿ëÀýÂ÷
	else if (menu == "t0107") {document.location.href = "../webhosting/wh_cost.html";} //¿ä±Ý³³ºÎ
	else if (menu == "t0108") {estimate('../common/estimation_wh.html');}//°ßÀû½ÅÃ»
	
	else if (menu == "t02") {document.location.href = "../svhosting/svh_index.html";} //¼­¹öÈ£½ºÆÃ index
	else if (menu == "t0201") {document.location.href = "../svhosting/svh_index.html";} //¼­¹öÈ£½ºÆÃ»óÇ°
	else if (menu == "t0202") {document.location.href = "../svhosting/colocation_col.html";} //ÄÚ·ÎÄÉÀÌ¼Ç»óÇ°
	else if (menu == "t0203") {document.location.href = "../svhosting/svh_promotion.html";} //´Ü±âÀÓ´ë¼­¹ö»óÇ°
	else if (menu == "t0204") {document.location.href = "../svhosting/svh_nameserver.html";} //³×ÀÓ¼­¹öÈ£½ºÆÃ
	else if (menu == "t0205") {document.location.href = "../svhosting/svh_managedservice_in.html";} //¼­¹ö°ü¸®¼­ºñ½º
	else if (menu == "t0206") {document.location.href = "../security/sec_ips.html";} //¼­¹öº¸¾È¼­ºñ½º
	else if (menu == "t0207") {document.location.href = "../svhosting/svh_sub_exindex.html";} //ºÎ°¡¼­ºñ½º
	else if (menu == "t0208") {estimate('../common/estimation_svh.html');} //°ßÀû½ÅÃ»	
	
	else if (menu == "t03") {document.location.href = "../mailhosting/mailh_index.html";} //¸ÞÀÏÈ£½ºÆÃ
	else if (menu == "t0301") {document.location.href = "../mailhosting/mailh_service.html";} //¼­ºñ½º»óÇ°±º
	else if (menu == "t0302") {document.location.href = "../mailhosting/mailh_server.html";} //ÄÁ¼³ÆÃ»óÇ°±º
	else if (menu == "t0303") {document.location.href = "../mailhosting/mailh_feat_features.html";} //¼­ºñ½º±â´É
	else if (menu == "t0304") {document.location.href = "../mailhosting/mailh_sub_addfree.html";} //ºÎ°¡¼­ºñ½º
	else if (menu == "t0305") {web_mail_demo();} //µ¥¸ð
	else if (menu == "t0306") {document.location.href = "../mailhosting/mailh_process.html";}  //ÀÌ¿ëÀýÂ÷
	else if (menu == "t0307") {document.location.href = "../mailhosting/mailh_cost.html";}	//¿ä±Ý³³ºÎ¾È³»
	else if (menu == "t0308") {estimate('../common/estimation_mail.html');}		//°ßÀû½ÅÃ»
	
	else if (menu == "t04") {document.location.href = "../domain/domain.html";} //µµ¸ÞÀÎ
	else if (menu == "t0401") {document.location.href = "../domain/domain.html";} //µµ¸ÞÀÎµî·Ï
	else if (menu == "t0402") {document.location.href = "http://mydirect.co.kr/svcapp/setup_intro_page.php?incurl=intro_domain.php&cscode=DSNEW";} //±â°£¿¬Àå
	else if (menu == "t0403") {document.location.href = "http://mydirect.co.kr/svcapp/setup_intro_page.php?incurl=intro_domain.php&cscode=DSNEW";} //±â°üÀÌÀü
	else if (menu == "t0404") {document.location.href = "javascript:Mydirect.domainMng();";} //ºÎ°¡¼­ºñ½º
	else if (menu == "t0405") {document.location.href = "javascript:Mydirect.domainMng();";} //µµ¸ÞÀÎ°ü¸®
			
	else if (menu == "t05") {document.location.href = "../shosting/billh_index.html";}  //ÀüÀÚ¼¼±Ý°è»ê¼­ index
	else if (menu == "t06") {document.location.href = "../shosting/shosting_sms.html";} //smsÈ£½ºÆÃ
	else if (menu == "t07") {document.location.href = "../security/sec_ips.html";} //º¸¾È¼­ºñ½º
	else if (menu == "t08") {document.location.href = "../design/guide.html";} //È¨ÆäÀÌÁöÁ¦ÀÛ
	

}
function estimate (x)
{
    window.open(x,'estimate','width=800px,height=800px,menubar=0,scrollbars=yes,toolbar=0');
}
function web_mail_demo() {
	//window.open('../demo/user/demo_user.php','','width=750 height=670');
	window.open('http://demo.mailnara.co.kr','','width=1024 height=768');
}


function win_open(a) {
		window.open("../popup_opt.html?p="+a, "result", "width=1020,height=700,scrollbars=yes"); 
}

function svh_estimate(svr)
{
	//window.open('http://estimate.direct.co.kr/body/server_hosting/estimate_ot.aspx?svr=' + svr, 'est', 'width=630,height=670,scrollbars=yes,');
	window.open('../common/estimation_svh_popup.html?typen=1&type=' + svr, 'est', 'width=700,height=800,scrollbars=yes,');
}
