function MenuBarManager(){var _1=new Array();function _2(_3){for(var i=0;i<_1.length;i++){if(_1[i].getName()==_3){return true;}}
return false;};this.getCurrentShowedMenuId=function(){for(var i=0;i<_1.length;i++){var _4=_1[i];if(_4.isVisible()){return _4.getId();}}
return "";};this.getNameFromId=function(_5){for(var i=0;i<_1.length;i++){var _6=_1[i];if(_6.getId()==_5){return _6.getName();}}
return "";};this.add=function(_7,_8){if(!_2(_7)){_1.push(new MenuBar(_8,_7));return true;}
return false;};this.add=function(_9){if(_9!=null&&!_2(_9.getName())){_1.push(_9);return true;}
return false;};this.remove=function(_a){for(var i=0;i<_1.length;i++){if(_1[i].getName()==_a){_1[i].clear();_1.splice(i,1);break;}}};this.removeAll=function(){for(var i=0;i<_1.length;i++){_1[i].clear();}
_1=null;_1=new Array();};this.showMenu=function(_b,_c){this.hideMenu();for(var i=0;i<_1.length;i++){if(_1[i].getName()==_b){_1[i].showFirst(_c);break;}}};this.hideMenu=function(){for(var i=0;i<_1.length;i++){_1[i].hideAll();}};};

