function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function initMenu() {
  $("#students-box h3:first").before("<div id='guides_open_all' class='open-all'></div>");
  $("#students-box h3").click(function(){
  if($(this).is('.close-section')){
    $(this).next(".submenu").slideDown(500); 
    $(this).removeClass('close-section');
    $(this).addClass('open-section');
  } else {
    $(this).next(".submenu").slideUp(500);
    $(this).removeClass('open-section');
    $(this).addClass('close-section');
    }
    return false;
  });
  if($('.close-all').length > 0) {
    $("#students-box h3").removeClass('close-section');
    $("#students-box h3").addClass('open-section');
    $(".submenu").show();
    $("#guides_open_all").html("Close All");
  } else {
    $("#students-box h3").removeClass('open-section');
    $("#students-box h3").addClass('close-section');
    $("#guides_open_all").html("View All");
  }
  $("#students-box #guides_open_all").click(function(){
    if($('.close-all').length > 0) {
    $(".submenu").slideUp(500);
    $("#students-box h3").removeClass('open-section');
    $("#students-box h3").addClass('close-section');
    $(this).html("View All");
    $(this).removeClass('close-all');
    $(this).addClass('open-all');
  } else {
    $(".submenu").slideDown(500);
    $("#students-box h3").removeClass('close-section');
    $("#students-box h3").addClass('open-section');
    $(this).html("Close All");
    $(this).removeClass('open-all');
    $(this).addClass('close-all');
    }
    return false;
  });
}



