code: public static HelpViewerMode getViewerMode(Page page) {
          return page == null || !page.hasAttribute(EMBEDDED_ATTRIB) ? defaultMode
                  : (HelpViewerMode) page.getAttribute(EMBEDDED_ATTRIB);
      }
docs: Returns the help viewer mode for the specified page.
  
  @param page The page to check. If null, the global setting is returned.
  @return The help viewer mode.