var TITEMS = [ 
 ["General", "source/chm/introduction.htm", "1",
  ["Introduction", "source/chm/introduction.htm", "11"],
  ["What is Network Eagle Monitor?", "source/chm/whatis.htm", "11"],
  ["Technical support", "source/chm/support.htm", "11"]
 ],
 ["Registration and licensing", "source/chm/registration/index.htm", "1",
  ["What is registration?", "source/chm/registration/whatis.htm", "11"],
  ["Why should I register?", "source/chm/registration/whyshouldi.htm", "11"],
  ["How can I register?", "source/chm/registration/howtoregister.htm", "11"],
  ["Licensing details", "source/chm/registration/licensingdetails.htm", "11"]
 ],
 ["Using Network Eagle", "source/chm/using/index.htm", "1",
  ["Adding a new check", "source/chm/using/check.htm", "11"],
  ["System environment variables", "source/chm/using/envvar.htm", "11"],
  ["Global variables", "source/chm/using/globalvar.htm", "11"],
  ["Variables support", "source/chm/using/varsupport.htm", "11"],
  ["Run as Windows service", "source/chm/using/service.htm", "11"],
  ["Filter groups", "source/chm/using/filters.htm", "11"],
  ["Find check", "source/chm/using/findcheck.htm", "11"],
  ["Export group/check data", "source/chm/using/exportindex.htm", "1",
   ["Export to XML format", "source/chm/using/exportxml.htm", "11"],
   ["Export to HTML format", "source/chm/using/exporthtml.htm", "11"],
   ["Automatic export", "source/chm/using/exportautomatic.htm", "11"]
  ],
  ["Wizards", "source/chm/using/wizardindex.htm", "1",
   ["Add new check", "source/chm/using/wizzardaddnewcheck.htm", "11"],
   ["Add new alerts", "source/chm/using/wizzardaddnewalert.htm", "11"],
   ["Change properties", "source/chm/using/wizardchangeproperties.htm", "11"],
   ["Change scheduler", "source/chm/using/wizzardschedule.htm", "11"],
   ["Remove alerts", "source/chm/using/wizzarddelalert.htm", "11"],
   ["CSV file window", "source/chm/using/csvfiledialog.htm", "11"]
  ]
 ],
 ["User interface", "source/chm/ui/index.htm", "1",
  ["Program menu", "source/chm/ui/menu.htm", "11"],
  ["Group panel", "source/chm/ui/grouptree.htm", "11"],
  ["Check panel", "source/chm/ui/hostlist.htm", "11"],
  ["Information panel", "source/chm/ui/infopanelindex.htm", "1",
   ["Log window", "source/chm/ui/logview.htm", "11"],
   ["Statistic window", "source/chm/ui/statview.htm", "11"],
   ["Properties window", "source/chm/ui/propview.htm", "11"]
  ],
  ["Options", "source/chm/ui/options/index.htm", "1",
   ["General", "source/chm/ui/options/general.htm", "1",
    ["Variables", "source/chm/ui/options/variables.htm", "11"],
    ["Notifications", "source/chm/ui/options/notifications.htm", "11"]
   ],
   ["Connections", "source/chm/ui/options/connections.htm", "11"],
   ["Logging", "source/chm/ui/options/logging.htm", "1",
    ["Trace logging", "source/chm/ui/options/tracelogging.htm", "11"]
   ],
   ["Syslog", "source/chm/ui/options/syslog.htm", "11"]
  ],
  ["Dialogs", "source/chm/ui/dialogindex.htm", "1",
   ["Search/Filter condition", "source/chm/ui/findwindow.htm", "11"],
   ["Filter properties", "source/chm/ui/filterprop.htm", "11"],
   ["Condition", "source/chm/ui/conditionwnd.htm", "11"],
   ["Unsaved document recovery", "source/chm/ui/backup.htm", "11"]
  ]
 ],
 ["Checks", "source/chm/checks/index.htm", "1",
  ["Overview", "source/chm/checks/cmnidx.htm", "1",
   ["Security", "source/chm/checks/checksecurity.htm", "11"],
   ["Schedule", "source/chm/checks/checkschedule.htm", "11"],
   ["Dependencies", "source/chm/checks/checkdependency.htm", "11"]
  ],
  ["Standard checks", "source/chm/checks/chkidx.htm", "1",
   ["Ping", "source/chm/checks/pingcheck.htm", "11"],
   ["TCP", "source/chm/checks/portcheck.htm", "11"],
   ["FTP", "source/chm/checks/ftpcheck.htm", "11"],
   ["HTTP", "source/chm/checks/httpcheck.htm", "11"],
   ["Disk", "source/chm/checks/diskspacecheck.htm", "11"],
   ["External command", "source/chm/checks/extprogramcheck.htm", "11"],
   ["Database", "source/chm/checks/databasecheck.htm", "11"],
   ["Script execution", "source/chm/checks/scriptcheck.htm", "11"],
   ["Process", "source/chm/checks/processcheck.htm", "11"],
   ["Event log", "source/chm/checks/eventlogcheck.htm", "11"],
   ["Windows service", "source/chm/checks/ntservicecheck.htm", "11"],
   ["Directory", "source/chm/checks/directorycheck.htm", "11"]
  ],
  ["Professional checks", "source/chm/checks/com/index.htm", "1",
   ["File", "source/chm/checks/com/filecheck.htm", "11"],
   ["RAS Server", "source/chm/checks/com/rascheck.htm", "11"],
   ["Printer", "source/chm/checks/com/printercheck.htm", "11"],
   ["SNMP", "source/chm/checks/com/snmpcheck.htm", "11"]
  ]
 ],
 ["Alerts", "source/chm/alerts/index.htm", "1",
  ["Overview", "source/chm/alerts/cmnidx.htm", "1",
   ["Alert repository", "source/chm/alerts/alertrepos.htm", "11"],
   ["Message formatting", "source/chm/alerts/fmtmessage.htm", "11"],
   ["Environment window", "source/chm/alerts/alertenv.htm", "11"]
  ],
  ["Standard alerts", "source/chm/alerts/alertidx.htm", "1",
   ["Execute command", "source/chm/alerts/cmdalert.htm", "11"],
   ["Play sound", "source/chm/alerts/soundalert.htm", "11"],
   ["Send mail", "source/chm/alerts/mailalert.htm", "11"],
   ["Syslog event", "source/chm/alerts/syslogalert.htm", "11"],
   ["Script execution", "source/chm/alerts/scriptalert.htm", "11"],
   ["Write to NT event log", "source/chm/alerts/eventlogalert.htm", "11"],
   ["Restart computer", "source/chm/alerts/restartpcalert.htm", "11"],
   ["Control Windows service", "source/chm/alerts/ntservicealert.htm", "11"]
  ],
  ["Professional alerts", "source/chm/alerts/pro/index.htm", "1",
   ["Send SMS", "source/chm/alerts/pro/smsalert.htm", "11"]
  ]
 ],
 ["Appendix", "source/chm/appendix/index.htm", "1",
  ["Named properties", "source/chm/appendix/properties.htm", "11"]
 ]
];


var FITEMS = arr_flatten(TITEMS);

function arr_flatten (x) {
   var y = []; if (x == null) return y;
   for (var i=0; i<x.length; i++) {
      if (typeof(x[i]) == "object") {
         var flat = arr_flatten(x[i]);
         for (var j=0; j<flat.length; j++)
             y[y.length]=flat[j];
      } else {
         if ((i%3==0))
          y[y.length]=x[i+1];
      }
   }
   return y;
}

