// JavaScript Document

//显示文档中ID为subNum的指定子菜单
function showSub(subNum) {
	var theSub;
	var theSub1;
	var theSub2;
	var theSub3;
	var theSub4;
	
	theSub1 = document.getElementById("sub1");
	theSub2 = document.getElementById("sub2");
	theSub3 = document.getElementById("sub3");
	theSub4 = document.getElementById("sub4");
	theSub1.style.display = "none";
	theSub2.style.display = "none";
	theSub3.style.display = "none";
	theSub4.style.display = "none";
	
	theSub = subNum;
	theSub = document.getElementById(theSub);
	theSub.style.display = "block";
}

//隐藏文档中ID为subNum的指定子菜单
function hideSub(subNum) {
	var theSub;
	
	theSub = subNum;
	theSub = document.getElementById(theSub);
	
	theSub.style.display = "none";
}

//隐藏所有子菜单
function hideAllSub() {
	var theSub1;
	var theSub2;
	var theSub3;
	var theSub4;
	
	theSub1 = document.getElementById("sub1");
	theSub2 = document.getElementById("sub2");
	theSub3 = document.getElementById("sub3");
	theSub4 = document.getElementById("sub4");
	theSub1.style.display = "none";
	theSub2.style.display = "none";
	theSub3.style.display = "none";
	theSub4.style.display = "none";
}

