var TITEMS = [ 
 ["What is SoftCopy?", "html/overview.html", "11"],
 ["Features", "html/features.html", "11"],
 ["System requirements", "html/systemreq.html", "11"],
 ["Frequently asked questions", "html/faq.html", "11"],
 ["User guide", null, "1",
  ["Installing SoftCopy", "html/guide/installation.html", "11"],
  ["SoftCopy settings", "html/guide/settings.html", "11"],
  ["Using SoftCopy", "html/guide/printing.html", "11"],
  ["Uninstalling SoftCopy", "html/guide/uninstallation.html", "11"]
 ],
 ["Unattended operation", null, "1",
  ["What is an extension DLL?", "html/unattended/overview.html", "11"],
  ["Writing your own extension DLL", "html/unattended/writing.html", "11"],
  ["Installing the extension DLL", "html/unattended/softcfg.html", "11"],
  ["Sample Visual C++ extension DLL", "html/unattended/sample.html", "11"],
  ["Sample Visual Basic extension DLL", "html/unattended/vb6.html", "11"],
  ["Sample Delphi extension DLL", "html/unattended/delphi7.html", "11"],
  ["Sample Visual C# extension DLL", "html/unattended/csharp.html", "11"],
  ["Sample Visual VB.NET extension DLL", "html/unattended/vbnet.html", "11"],
  ["Register ActiveX DLL or .NET assembly from the command prompt", "html/unattended/command_prompt.html", "11"],
  ["Install extension DLL by modifying the registry directly", "html/unattended/installing.html", "11"],
  ["Changes to extension DLL between V2 and V3", "html/unattended/extdllchanges.html", "11"]
 ],
 ["Technical notes", null, "1",
  ["Manual installation", "html/technotes/installation_manual.html", "11"],
  ["Program Registration", "html/technotes/registration.html", "11"],
  ["Defining custom forms", "html/technotes/custom_form.html", "11"],
  ["SoftCopy Agent", "html/technotes/scagent.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;
}


