function toggleMenu(id) {
    var a = new Array();
    for (var t=1; t<400; t++) {
      var element = document.getElementById('m' + t);
      if (element==null) {
      	break;
      }
      a.push(element);
    } 
    id = id - 1;
    var e = a[id];
    
    var f = new Array();
    if (e!=null && e.style.display=='none') {
      var i;
      for(i=0; i<a.length; i++) {
        if (a[i].style.display!='none') {
          f.push(a[i]);
          
        }
      }
      if (f!=null) {
        
        var de = function() {
          if (e.previousSibling!=null && e.previousSibling.nodeName.toUpperCase()=='H2') {
          	e.previousSibling.firstChild.className += ' darrow';
          } else if (e.previousSibling!=null && e.previousSibling.previousSibling!=null && e.previousSibling.previousSibling.nodeName.toUpperCase()=='H2'){	
          	e.previousSibling.previousSibling.firstChild.className += ' darrow';
          }
        }

       	Effect.BlindDown(e, {duration:0.3,beforeStart:de });

        var j=0;
        for (; j<f.length; j++) {
     	  var fd = f[j];
     	  var df = function() {
     	
          if (fd.previousSibling.nodeName.toUpperCase()=='H2' ) {
          	fd.previousSibling.firstChild.className = 'h2top';
          } else if (fd.previousSibling.previousSibling.nodeName.toUpperCase()=='H2'){	
          	fd.previousSibling.previousSibling.firstChild.className = 'h2top';
          }
        }
        var y = f[j];
        var ac = function() {
          
        }
        
     	if(e.parentNode.nodeName!='LI') {
        	Effect.BlindUp(f[j], {duration:0.3,beforeStart:df, afterFinish:ac});
        }
      }
    } else {
     Effect.BlindDown(e, {duration:0.3});
    }
  }
}
