
var old_menu_know = new Array('','');

function know_menuclick(num, menu_depth) {
	var submenu = document.getElementById(num);

	if(old_menu_know[menu_depth] != submenu) {
		if(old_menu_know[menu_depth] != '') old_menu_know[menu_depth].style.display = 'none';
		submenu.style.display = 'block';
		old_menu_know[menu_depth] = submenu;
	} else {
		submenu.style.display = 'none';
		old_menu_know[menu_depth] = '';
	}
	s=num;

}

function selectTag(showContent,selfObj){
	var tag = document.getElementById("tags").getElementsByTagName("li");
	var taglength = tag.length;
	for(i=0; i<taglength; i++){
		tag[i].className = "";
	}
	selfObj.parentNode.className = "selectTag";
	for(i=0; j=document.getElementById("tagContent"+i); i++){
		j.style.display = "none";
	}
	document.getElementById(showContent).style.display = "block";
}
function selectTag2(showContent,selfObj){
	var tag = document.getElementById("tags2").getElementsByTagName("li");
	var taglength = tag.length;
	for(i=0; i<taglength; i++){
		tag[i].className = "";
	}
	selfObj.parentNode.className = "selectTag";
	for(i=0; j=document.getElementById("btagContent"+i); i++){
		j.style.display = "none";
	}
	document.getElementById(showContent).style.display = "block";
}
function selectTag1(showContent,selfObj){
	var tag = document.getElementById("tags1").getElementsByTagName("li");
	var taglength = tag.length;
	for(i=0; i<taglength; i++){
		tag[i].className = "";
	}
	selfObj.parentNode.className = "selectTag";
	for(i=0; j=document.getElementById("atagContent"+i); i++){
		j.style.display = "none";
	}
	document.getElementById(showContent).style.display = "block";
}
