code: public Content getAllClassesLinkScript(String id) {
          HtmlTree script = HtmlTree.SCRIPT();
          String scriptCode = "<!--\n" +
                  "  allClassesLink = document.getElementById(\"" + id + "\");\n" +
                  "  if(window==top) {\n" +
                  "    allClassesLink.style.display = \"block\";\n" +
                  "  }\n" +
                  "  else {\n" +
                  "    allClassesLink.style.display = \"none\";\n" +
                  "  }\n" +
                  "  //-->\n";
          Content scriptContent = new RawHtml(scriptCode.replace("\n", DocletConstants.NL));
          script.addContent(scriptContent);
          Content div = HtmlTree.DIV(script);
          Content div_noscript = HtmlTree.DIV(contents.noScriptMessage);
          Content noScript = HtmlTree.NOSCRIPT(div_noscript);
          div.addContent(noScript);
          return div;
      }
docs: Get the script to show or hide the All classes link.
  
  @param id id of the element to show or hide
  @return a content tree for the script