var TITEMS = [ 
 ["Introduction", "source/intro.htm", "11"],
 ["Using VBdocman", null, "1",
  ["How to Start", "source/how to start.htm", "11"],
  ["Launching VBdocman", "source/launching.htm", "11"],
  ["Compiling Documentation", "source/compiling.htm", "11"],
  ["Working with Project Groups", "source/compilinggroup.htm", "11"],
  ["Adding VBdocman Comment", "source/add comment.htm", "11"],
  ["Creating and Using Context Sensitive Help", "source/create context help.htm", "11"],
  ["Tips &amp; Tricks", null, "1",
   ["Formatting Documentation Directly in Comments", "source/formatting doc.htm", "11"],
   ["Adding New Line Directly in Comments", "source/add eol.htm", "11"],
   ["Adding Code Directly in Comments", "source/add code.htm", "11"],
   ["Adding Links Directly in Comments", "source/add links.htm", "11"],
   ["Adding Images in Documentation", "source/add images.htm", "11"],
   ["Using Macros Directly in Comments", "source/macros in comment.htm", "11"]
  ]
 ],
 ["VBdocman Options", "source/setting up.htm", "1",
  ["Compile Options", "source/compile opt.htm", "11"],
  ["Comment Options", "source/comment opt.htm", "11"],
  ["Output Options", "source/output opt.htm", "11"],
  ["Miscellanous Options", "source/miscellanous opt.htm", "11"]
 ],
 ["VBdocman Tags", "source/vbdoc tags.htm", "1",
  ["@see", "source/asee.htm", "11"],
  ["@example", "source/aexample.htm", "11"],
  ["@same", "source/asame.htm", "11"],
  ["@param", "source/aparam.htm", "11"],
  ["@set", "source/aset.htm", "11"],
  ["@return", "source/areturn.htm", "11"],
  ["@rem", "source/arem.htm", "11"],
  ["@author", "source/aauthor.htm", "11"],
  ["@revision", "source/arevision.htm", "11"],
  ["@version", "source/aversion.htm", "11"],
  ["@includesource", "source/aincludesource.htm", "11"],
  ["User-defined", "source/auser.htm", "11"]
 ],
 ["Comment Editor", "source/commenteditor.htm", "1",
  ["Basic", "source/comeditorbasic.htm", "11"],
  ["Parameters", "source/comeditorparams.htm", "11"],
  ["References", "source/comeditorrefs.htm", "11"],
  ["Misc", "source/comeditormisc.htm", "11"],
  ["User-defined fields", "source/comeditoruser.htm", "11"],
  ["Source code view", "source/comeditorsource.htm", "11"],
  ["Options", "source/comeditoroptions.htm", "11"]
 ],
 ["VBdocman Templates", null, "1",
  ["Templates", "source/templates.htm", "11"],
  ["Macro Language", "source/macro language.htm", "1",
   ["Read-only Macros", "source/read-only macros.htm", "11"],
   ["Compulsory Macros", "source/compulsory macros.htm", "11"],
   ["Command Macros", "source/commands.htm", "1",
    ["$DOLIST$ Macro", "source/dolist.htm", "11"],
    ["$IFNOTEMPTY$ Macro", "source/ifnotempty.htm", "11"],
    ["$RESET-COUNTER$ Macro", "source/reset-counter.htm", "11"],
    ["$INC-COUNTER$ Macro", "source/inc-counter.htm", "11"],
    ["$DEC-COUNTER$ Macro", "source/dec-counter.htm", "11"],
    ["$REPLACE-ON$ Macro", "source/replace-on.htm", "11"],
    ["$REPLACE-OFF$ Macro", "source/replace-off.htm", "11"]
   ]
  ]
 ],
 ["Samples", null, "1",
  ["TicTacToe Sample", "source/tictactoe sample.htm", "11"],
  ["ActiveX Control Sample", "source/activex sample.htm", "11"]
 ],
 ["Troubleshooting", null, "1",
  ["Warning: The dead link ...", "source/trouble3 dead link.htm", "11"],
  ["Topics Not Created", "source/trouble1 no topic.htm", "11"],
  ["ERROR: Cannot create and execute batch file.", "source/trouble2 cannot create bat.htm", "11"],
  ["HTML with Java documentation is not shown", "source/trouble4 javapath.htm", "11"],
  ["IDE freezes on exit", "source/trouble5 conflict.htm", "11"]
 ],
 ["About", "source/about.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;
}

