var isshowing = 0;
function HideAndShow(name){
	if(isshowing!=0) document.getElementById(isshowing).style.display = "none";
	isshowing = name;
	if(isshowing!=0) document.getElementById(isshowing).style.display = "block";
}

var isshowing_item = 0; var isshowing_menu = 0; var class_item = '';
var in_item = 0; var in_menu = 0;
function initMenuDeroulant(item,menu,class_name){
	if(isshowing_item!=0) document.getElementById(isshowing_item).className = class_item;
	if(isshowing_menu!=0) document.getElementById(isshowing_menu).style.display = "none";
	isshowing_item = item;
	isshowing_menu = menu;
	class_item = class_name;
	if(isshowing_item!=0) document.getElementById(isshowing_item).className = class_item + " selected";
	if(isshowing_menu!=0) document.getElementById(isshowing_menu).style.display = "block";
	in_item = 1; in_menu = 1;
}
function MenuDeroulant(item,menu){
	if(item!=-1) in_item = item;
	if(menu!=-1) in_menu = menu;
	if(in_item==1 || in_menu==1){
		if(isshowing_item!=0) document.getElementById(isshowing_item).className = class_item + " selected";
		if(isshowing_menu!=0) document.getElementById(isshowing_menu).style.display = "block";
	}else{
		if(isshowing_item!=0) document.getElementById(isshowing_item).className = class_item;
		if(isshowing_menu!=0) document.getElementById(isshowing_menu).style.display = "none";
	}
}