var TITEMS = [ 
 ["Contents", "html/compugene membership system.htm", "21"],
 ["Overview", "html/overview.htm", "11"],
 ["Getting Started", "html/getting_started.htm", "11"],
 ["Tips", "html/tips.htm", "11"],
 ["How to set up a Round Robin", "html/how to do a round robin.html", "11"],
 ["System Features", null, "1",
  ["Backup/Restore", "html/backup_rest.htm", "11"],
  ["Database", "html/file_command.htm", "11"],
  ["DB Description", "html/dbdesc.htm", "11"],
  ["Exit", "html/exit_command.htm", "11"],
  ["Help Window", "html/help.htm", "11"],
  ["Main Window", "html/main.htm", "11"],
  ["Library Management", "html/library.htm", "11"],
  ["Non-Members", "html/non_member.htm", "11"],
  ["Member Types", "html/member types.htm", "11"],
  ["Options", "html/options.htm", "11"],
  ["Options - General", "html/options-general.htm", "11"],
  ["Options - Financial", "html/options-fin.htm", "11"],
  ["Options - Operational", "html/options-oper.htm", "11"],
  ["Options - Formatting", "html/options-form.htm", "11"],
  ["Restart", "html/restart_command.htm", "11"],
  ["Preview Window", "html/preview.htm", "11"],
  ["Seating", "html/seating-2.htm", "11"],
  ["Security", "html/security.htm", "11"],
  ["Statistics", "html/statistics.htm", "11"],
  ["Special Actions", "html/special actions.htm", "11"],
  ["Tools - Import and Export", "html/import_command.htm", "11"],
  ["Using CSV Files", "html/csvint.htm", "11"]
 ],
 ["Member Information", null, "1",
  ["Add", "html/add_command.htm", "11"],
  ["Cemetery", "html/cemetery.htm", "11"],
  ["Delete", "html/delete_command.htm", "11"],
  ["Family Data", "html/family.htm", "11"],
  ["Notify", "html/notify_command.htm", "11"],
  ["Round Robin", "html/roundrobin.htm", "11"],
  ["Online Round Robin", "html/cms_online_rr.html", "11"],
  ["Scheduling", "html/schedule_command.htm", "11"],
  ["Seating", "html/seating-2.htm", "11"],
  ["Sort", "html/sort_command.htm", "11"],
  ["View", "html/view_command.htm", "11"]
 ],
 ["Financial Information", null, "1",
  ["Accounts Receivable", "html/acct_rcv.htm", "11"],
  ["Accounts Payable", "html/acct_pay.htm", "11"],
  ["Create Charity Sheet", "html/ccs.htm", "11"],
  ["Dues", "html/dues.htm", "11"],
  ["External Packages", "html/acctint.htm", "11"],
  ["Financial Grid", "html/financial_command.htm", "11"],
  ["General Ledger", "html/generalledger.htm", "11"],
  ["Get Payment Wndow", "html/getpayment.htm", "11"],
  ["Small Financial Grid", "html/small_financial_grid.htm", "11"],
  ["Special Arrangements", "html/additional.htm", "11"]
 ],
 ["Reporting", null, "1",
  ["Listings, Labels, Index Cards", "html/print_command.htm", "11"],
  ["Templates and User Reports", "html/templates.htm", "11"],
  ["Symbolics", "html/symbolics.htm", "11"]
 ],
 ["Glossary", null, "1",
  ["Glossary", "html/glossary.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;
}

