function mainmenu(args) { 
	if(args == "01")args = g4_path + "/content/?mID=company&sID=overview";
	if(args == "11")args = g4_path + "/content/?mID=company&sID=overview";
	if(args == "12")args = g4_path + "/content/?mID=company&sID=history";
	if(args == "13")args = g4_path + "/content/?mID=company&sID=organization";
	if(args == "14")args = g4_path + "/content/?mID=company&sID=vision";
	if(args == "15")args = g4_path + "/content/?mID=company&sID=business";
	if(args == "16")args = g4_path + "/content/?mID=company&sID=location";
	
	if(args == "02")args = g4_path + "/" +g4_bbs+ "/board.php?bo_table=news";
	if(args == "03")args = g4_path + "/" +g4_bbs+ "/board.php?bo_table=artist&wr_id=1";
	if(args == "31")args = g4_path + "/" +g4_bbs+ "/board.php?bo_table=artist&wr_id=1";
	if(args == "32")args = g4_path + "/" +g4_bbs+ "/board.php?bo_table=artist&wr_id=2";
	if(args == "33")args = g4_path + "/" +g4_bbs+ "/board.php?bo_table=artist&wr_id=3";
	
	if(args == "04")args = g4_path + "/" +g4_bbs+ "/write.php?bo_table=audition";
	if(args == "41")args = g4_path + "/" +g4_bbs+ "/board.php?bo_table=audition";
	if(args == "42")args = g4_path + "/" +g4_bbs+ "/write.php?bo_table=audition";
	if(args == "43")args = g4_path + "/content/?mID=audition&sID=aud_information";
	
location.href = ""+ args;
}

function homeLink(args) { 
	if(args == "wonbin")args = "wonbinus.co.kr";
	if(args == "leenayoung")args = "2nayoung.com";
	if(args == "wangjiwon")args = "wangjiwon.com";
	
window.open ("http://www."+ args);
}


function main() {  location.href = g4_url ; }
function loginPage() {  location.href = g4_url + "/" + g4_bbs + "/login.php?url="+g4_urlencode ; }
function adminPage() {  location.href = g4_url + "/adm" ; }
function logout() {  location.href = g4_url + "/bbs/logout.php?url="+g4_urlencode ; }


function showMenu(name) {

		document.getElementById("navi1_dep1").style.display = "none"
		document.getElementById("navi1_dep2").style.display = "none"
		document.getElementById("navi2_dep1").style.display = "none"
		document.getElementById("navi2_dep2").style.display = "none"
		document.getElementById("navi3_dep1").style.display = "none"
		document.getElementById("navi3_dep2").style.display = "none"
		document.getElementById("navi4_dep1").style.display = "none"
		document.getElementById("navi4_dep2").style.display = "none"

	if(name=='navi0_dep2'){ 
		document.getElementById("navi1_dep1").style.display = "block"
		document.getElementById("navi2_dep1").style.display = "block"
		document.getElementById("navi3_dep1").style.display = "block"
		document.getElementById("navi4_dep1").style.display = "block"
	}else if(name=='navi1_dep2'){
		document.getElementById("navi1_dep2").style.display = "block"
		document.getElementById("navi2_dep1").style.display = "block"
		document.getElementById("navi3_dep1").style.display = "block"
		document.getElementById("navi4_dep1").style.display = "block"
	}else if(name=='navi2_dep2'){
		document.getElementById("navi2_dep2").style.display = "block"
		document.getElementById("navi1_dep1").style.display = "block"
		document.getElementById("navi3_dep1").style.display = "block"
		document.getElementById("navi4_dep1").style.display = "block"
	}else if(name=='navi3_dep2'){
		document.getElementById("navi3_dep2").style.display = "block"
		document.getElementById("navi1_dep1").style.display = "block"
		document.getElementById("navi2_dep1").style.display = "block"
		document.getElementById("navi4_dep1").style.display = "block"
	}else if(name=='navi4_dep2'){
		document.getElementById("navi4_dep2").style.display = "block"
		document.getElementById("navi1_dep1").style.display = "block"
		document.getElementById("navi2_dep1").style.display = "block"
		document.getElementById("navi3_dep1").style.display = "block"
	}

}
<!--
var sendit;
var win;

