var TITEMS = [ 
 ["Overview", null, "1",
  ["What is PatchFactory?", "source/pf_welcometopic.htm", "10"],
  ["About Software Patching", "source/pf_introduction.htm", "19"],
  ["What's new in this version?", "source/pf_whatsnew.htm", "10"],
  ["Patching Engine Efficiency", "source/pf_patchingengine.htm", "17"],
  ["Acknowledgments", "source/pf_acknowledgments.htm", "17"]
 ],
 ["Basics", null, "1",
  ["Concepts and definitions", "source/pf_conceptsanddefinitions.htm", "1",
   ["Version Parameters", "source/pf_versionparameters.htm", "11"],
   ["Component Parameters", "source/pf_componentparameters.htm", "11"],
   ["Patch Parameters", "source/pf_patchparameters.htm", "11"]
  ],
  ["Binary Files Comparing", "source/pf_binaryfilescomparing.htm", "9"],
  ["Byte-level Differencing", "source/pf_pf_byte_level_differencing.htm", "11"],
  ["Location Repository", "source/pf_locationrepository.htm", "11"],
  ["Installed Version Detection", "source/pf_installedversiondetection.htm", "11"]
 ],
 ["User interface", null, "1",
  ["Overview", "source/pf_userinterfaceoverview.htm", "11"],
  ["Keyboard layout", "source/pf_keyboardlayout.htm", "11"],
  ["Menu", null, "21",
   ["File menu", "source/pf_filemenu.htm", "11"],
   ["View menu", "source/pf_viewmenu.htm", "11"],
   ["Group menu", "source/pf_groupmenu.htm", "11"],
   ["Product menu", "source/pf_productmenu.htm", "11"],
   ["Version menu", "source/pf_versionmenu.htm", "11"],
   ["Component(s) menu", "source/pf_componentsmenu.htm", "11"],
   ["Difference(s) menu", "source/pf_differencesmenu.htm", "11"],
   ["Patch(es) menu", "source/pf_patchesmenu.htm", "11"],
   ["Help menu", "source/pf_helpmenu.htm", "11"],
   ["Version Files Editor menus", "source/pf_versionfileseditormenu.htm", "11"],
   ["Version Difference Editor menus", "source/pf_versiondifferenceeditormenu.htm", "11"]
  ],
  ["Preferences", "source/pf_preferences.htm", "11"]
 ],
 ["Operation", null, "1",
  ["Getting Started", "source/pf_gettingstarted.htm", "21",
   ["Creating New Group", "source/pf_creatingnewgroup.htm", "11"],
   ["Creating New Product", "source/pf_creatingnewproduct.htm", "11"],
   ["Adding New Version", "source/pf_addingnewversion.htm", "11"],
   ["Adding Component(s)", "source/pf_addingcomponent.htm", "11"],
   ["Adding Component Files", "source/pf_addingcomponentfiles.htm", "11"],
   ["Adding Child Version", "source/pf_addingchildversion.htm", "11"],
   ["Creating Differences", "source/pf_creatingdifferences.htm", "11"],
   ["Creating New Patch", "source/pf_creatingnewpatch.htm", "11"]
  ],
  ["Version Files Editor", "source/pf_versionfileseditor.htm", "11"],
  ["Version Difference Editor", "source/pf_versiondifferenceeditor.htm", "11"],
  ["Old Version Side Properties group", "source/pf_oldversionproperties.htm", "11"],
  ["New Version Side Properties group", "source/pf_newversionproperties.htm", "11"],
  ["Add/Replace Options", "source/pf_addreplaceoptions.htm", "11"],
  ["Df Build Options", "source/pf_dfbuildoptions.htm", "11"],
  ["Update Command generation", "source/pf_updatecommandgeneration.htm", "11"],
  ["Command line parameters", "source/pf_commandlineparameters.htm", "11"],
  ["Patch applying", "source/pf_patchapplying.htm", "9"]
 ],
 ["Frequenlty asked questions", "source/pf_faq.htm", "21"],
 ["Registration and Support", null, "1",
  ["License Agreement", "source/pf_eula.htm", "17"],
  ["How to register", "source/pf_howtoregister.htm", "10"],
  ["Update and Support", "source/pf_updateandsupport.htm", "15"]
 ],
 ["Contact information", "source/pf_contact_information.htm", "25"]
];


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;
}

