var TITEMS = [ 
 ["Introduction", null, "1",
  ["About WinLock", "about.htm", "11"],
  ["Why choose WinLock?", "choose.htm", "11"],
  ["System requirements", "sysreq.htm", "11"],
  ["Feature comparison for Windows editions", "feature_comparison.htm", "11"],
  ["What's new?", "version_history.htm", "11"]
 ],
 ["Basics", null, "1",
  ["Installing WinLock", "installing.htm", "11"],
  ["Configuring user accounts", "configure_permissions.htm", "11"],
  ["Remote Administrator", "remote_admin.htm", "11"],
  ["Checking for updates", "updates.htm", "11"],
  ["Uninstalling the software", "uninstalling.htm", "11"]
 ],
 ["Using WinLock", null, "1",
  ["Overview", "overview.htm", "11"],
  ["Launch WinLock", "launch.htm", "11"],
  ["Enable WinLock", "enable.htm", "11"],
  ["Tray pop-up menu", "tray_menu.htm", "11"],
  ["Enter WinLock password", "enter_pwd.htm", "11"],
  ["Pause protection", "pause.htm", "11"],
  ["Shutdown", "shutdown.htm", "11"],
  ["LockBox", "lockbox.htm", "11"],
  ["Settings", null, "1",
   ["Configure WinLock", "configure.htm", "11"],
   ["General", null, "1",
    ["Protection", "protection_page.htm", "11"],
    ["Settings", "settings_page.htm", "11"],
    ["Notifications", "notification_page.htm", "11"],
    ["Logging", "logging_page.htm", "11"],
    ["Remote Administration", "remote.htm", "11"]
   ],
   ["System", null, "1",
    ["Security", "security_page.htm", "11"],
    ["Explorer", "explorer_page.htm", "11"],
    ["Start menu and Taskbar", "start_page.htm", "11"],
    ["Desktop", "desktop_page.htm", "11"],
    ["Mouse and Keyboard", "mouse_page.htm", "11"],
    ["Drives", "drives_page.htm", "11"],
    ["User Account Control", "uac.htm", "11"],
    ["System Commands", "syscom_page.htm", "11"],
    ["Boot", "boot_page.htm", "11"]
   ],
   ["Internet", null, "1",
    ["Internet Explorer", "ie_page.htm", "11"],
    ["Trusted sites", "allowed_page.htm", "11"],
    ["Restricted sites", "blocked_page.htm", "11"]
   ],
   ["Access", null, "1",
    ["Windows", "windows_page.htm", "11"],
    ["Trusted executables", "wexec_page.htm", "11"],
    ["Restricted executables", "exec_page.htm", "11"],
    ["Files", "files_page.htm", "11"],
    ["Folders", "folders_page.htm", "11"]
   ],
   ["Timer", null, "1",
    ["Timer settings", "general_page.htm", "11"]
   ]
  ]
 ],
 ["Appendices", null, "1",
  ["Restricting Internet access", null, "1",
   ["Block Web browser", "block_web_browser.htm", "11"],
   ["Disable file download", "disable_file_download.htm", "11"]
  ],
  ["Restrict the Restart in MS-DOS mode command", "restrict_restart.htm", "11"],
  ["Disable the End Process command", "disable_end_process.htm", "11"],
  ["Desktop icons protection", "desktop_icons.htm", "11"],
  ["Kiosk mode", "kiosk.htm", "11"],
  ["Command line parameters", "cmd.htm", "11"],
  ["Password Recovery", "recover.htm", "11"]
 ],
 ["Technical support", null, "1",
  ["Technical support", "tech_support.htm", "11"],
  ["Lost key", "lost_key.htm", "11"]
 ],
 ["License and registration", null, "1",
  ["Copyright and license", "copyright.htm", "11"],
  ["Registration information", "registration_information.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;
}


