var TITEMS = [ 
 ["What is KeyPass?", "html/intro.html", "11"],
 ["At a Glance", "html/glance.html", "11"],
 ["Frequently Asked Questions", "html/faq.html", "11"],
 ["Changes from KeyPass V3", "html/changes.html", "11"],
 ["User Guide", null, "1",
  ["KeyPass menus", "html/keypass/menutypes.html", "11"],
  ["Starting KeyPass", "html/keypass/startup.html", "11"],
  ["Managing the database", "html/keypass/manage.html", "11"],
  ["Using fields", "html/keypass/fields.html", "11"],
  ["Using the login script", "html/keypass/script.html", "11"],
  ["Entry properties", "html/keypass/properties.html", "11"],
  ["Attaching files", "html/keypass/files.html", "11"],
  ["Launching entries", "html/keypass/launch.html", "11"],
  ["Associations", "html/keypass/associations.html", "11"],
  ["Recent list", "html/keypass/recent.html", "11"],
  ["Favorites list", "html/keypass/favorites.html", "11"],
  ["Searching the database", "html/keypass/search.html", "11"],
  ["Filtered views", "html/keypass/filtered.html", "11"],
  ["Database backup/restore", "html/keypass/backupnow.html", "11"],
  ["Importing favorites/bookmarks", "html/keypass/import.html", "11"],
  ["Exporting the database", "html/keypass/export.html", "11"],
  ["Database information", "html/keypass/dbinfo.html", "11"],
  ["Using the tray menu", "html/keypass/traymenu.html", "11"],
  ["Locking/unlocking KeyPass", "html/keypass/lock.html", "11"],
  ["Shutting down KeyPass", "html/keypass/unload.html", "11"],
  ["Security considerations", "html/keypass/security.html", "11"],
  ["Preferences", null, "1",
   ["General", "html/keypass/preferences/general.html", "11"],
   ["Security", "html/keypass/preferences/security.html", "11"],
   ["Popup Menu", "html/keypass/preferences/popup.html", "11"],
   ["Browsers/Applications", "html/keypass/preferences/browser.html", "11"],
   ["Password Generation", "html/keypass/preferences/password.html", "11"],
   ["AutoRun", "html/keypass/preferences/autorun.html", "11"],
   ["AutoLock", "html/keypass/preferences/autolock.html", "11"],
   ["AutoBackup", "html/keypass/preferences/autobackup.html", "11"],
   ["Synchronization", "html/keypass/preferences/reader.html", "11"],
   ["Global Variables", "html/keypass/preferences/globals.html", "11"],
   ["Shortcuts", "html/keypass/preferences/shortcuts.html", "11"],
   ["Expiration", "html/keypass/preferences/expiration.html", "11"]
  ]
 ],
 ["KeyPass in the Enterprise", null, "1",
  ["Enterprise workflow", "html/enterprise/overview.html", "11"],
  ["Simple setup guide", "html/enterprise/setup.html", "11"],
  ["Security tags", "html/enterprise/security.html", "11"],
  ["Publishing to the reference database", "html/enterprise/pubnow.html", "11"],
  ["Synchronizing with the reference database", "html/enterprise/syncnow.html", "11"],
  ["How often does synchronization occur?", "html/enterprise/remote.html", "11"],
  ["Limitations of read-only logins", "html/enterprise/readonly.html", "11"],
  ["Differences between the Standard and Enterprise Edition of KeyPass", "html/enterprise/differences.html", "11"]
 ],
 ["Technical Notes", null, "1",
  ["Installing KeyPass on an external USB drive", "html/technical/usb.html", "11"],
  ["Precautions when using KeyPass with an external USB drive", "html/technical/precautions.html", "11"],
  ["Master database location", "html/technical/database_location.html", "11"],
  ["What does the tray icon indicate?", "html/technical/trayicons.html", "11"],
  ["When does KeyPass write changes to disk?", "html/technical/dbsave.html", "11"],
  ["Running multiple instances of KeyPass", "html/technical/multiple_instances.html", "11"],
  ["Configuration of browsers/applications", "html/technical/launch.html", "11"],
  ["V3 and V4 database compatibility", "html/technical/compatibility.html", "11"],
  ["Choosing a good password", "html/technical/password.html", "11"]
 ],
 ["Additional Information", null, "1",
  ["Copyright and license", "html/info/license.html", "11"],
  ["Support and updates", "html/info/support.html", "11"],
  ["Ordering information", "html/info/order.html", "11"],
  ["Version history", "html/info/history.html", "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;
}


