var Cnt = 1;
var Type = "hidden";
var chk="false";
var MENU_CHK;
function CHK_VIEW(MENU_Name){
if (document.all) document.all(MENU_Name).style.visibility = "hidden";
if (document.getElementById) document.getElementById(MENU_Name).style.visibility = "hidden";
}

function re_show_menu(MENU_Name){
if (document.all){
document.all(MENU_Name).style.visibility = "visible";
document.all(MENU_Name).style.backgroundColor="#000033";
chk = "true";
}if (document.getElementById){
document.getElementById(MENU_Name).style.visibility = "visible";
document.getElementById(MENU_Name).style.backgroundColor="#000033";
chk = "true";
}
}

function show_menu(MENU_Name){
if (MENU_CHK != MENU_Name){
Type = 'hidden';
for (i = 1; i < Cnt+1; i++) {
MENU = "MENU" + i
if (document.layers) document.layers[MENU].visibility = Type;
if (document.all) document.all(MENU).style.visibility = Type;
if (document.getElementById) document.getElementById(MENU).style.visibility = Type;
}
}
MENU_CHK = MENU_Name;
if(Type == 'hidden'){
Type = 'visible';
}else{Type = 'hidden';
}
if(chk == 'true'){Type = 'visible'};
if (document.layers){
document.layers[MENU_Name].visibility = Type;
document.layers[MENU_Name].bgColor="#000033";
}else if (document.all){
document.all(MENU_Name).style.visibility = Type;
document.all(MENU_Name).style.backgroundColor="#000033";
}else if (document.getElementById){
document.getElementById(MENU_Name).style.visibility = Type;
document.getElementById(MENU_Name).style.backgroundColor="000033";
}
}