function checkBrowser(){
  this.ver=navigator.appVersion
  var nav = navigator.appName
  var v = parseInt(this.ver)
  this.dom=document.getElementById?1:0
  this.ie5=(this.ver.indexOf('MSIE 5')>-1 && this.dom)?1:0;
  this.ie4=(document.all && !this.dom)?1:0;
  this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
  this.ns4=(document.layers && !this.dom)?1:0;
  this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5)
  return this;
}
bw=new checkBrowser()
function divObjClick(obj,nest) {
//  alert ('OBJ: '+obj);
   nest=(!nest) ? '':'document.'+nest+'.';
   this.css=bw.dom? document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+'document.layers.' +obj):0;
   this.showCl = lShowClick;
}
function lShow(b){
    if (b) this.css.visibility = 'visible';
    else this.css.visibility = 'hidden';
}
function lShowClick(){
  if (this.css.visibility == 'visible') {this.css.visibility = 'hidden'}
  else                                  {this.css.visibility = 'visible'}
}
function MostraUn(nob,tope){
  MXS.showCl();
}
function init(nivell){
   MXS = new divObjClick('mnivell'+nivell,null);
}

