//
  //  The output areas
  //
  var math = document.getElementById("MathMessages");
  var all = document.getElementById("AllMessages");

  //
  //  A function to display messages in the "AllMessages" area.
  //  We make it global so it can be used in the startup code above.
  //
  window.Message = function (message) {
    MathJax.HTML.addText(all,message);
    MathJax.HTML.addElement(all,"br");
  };

  //
  //  Find out about "New Math" messages from the Hub and display them.
  //    (Look up the TeX code 