var TITEMS = [ 
 ["General", null, "1",
  ["Description", "source/description.htm", "11"],
  ["Features", "source/features.htm", "11"],
  ["What's new", "source/what_s_new.htm", "11"],
  ["Planned revisions and additions", "source/planned_revisions_and_addition.htm", "11"],
  ["International interface", "source/additional_languages.htm", "11"],
  ["License and Registration", null, "1",
   ["License", "source/license.htm", "11"],
   ["Registration", "source/registration.htm", "11"]
  ],
  ["Contact us", "source/contact_us.htm", "11"]
 ],
 ["Command and Procedures", null, "1",
  ["Main Window", "source/main_window.htm", "11"],
  ["Menu", null, "1",
   ["File menu", "source/file_menu.htm", "11"],
   ["Edit Menu", "source/edit_menu.htm", "11"],
   ["View menu", "source/view_menu.htm", "11"],
   ["Image menu", "source/imagemenu.htm", "11"],
   ["Tools menu", "source/tools_menu.htm", "11"],
   ["Help menu", "source/help_menu.htm", "11"]
  ],
  ["Toolbar", "source/toolbar.htm", "11"],
  ["Statusbar", "source/statusbar.htm", "11"],
  ["Dialogs", null, "1",
   ["Options dialog box", "source/options_dialog_box.htm", "11"],
   ["Batch Process dialog box", "source/batch_process_dialog_box.htm", "11"],
   ["Printing Options", "source/printing_options.htm", "11"],
   ["Color Adjust dialog box", "source/coloradjustdialogbox.htm", "11"],
   ["Effects dialog box", "source/effectsdialogbox.htm", "11"],
   ["Rotate dialog box", "source/rotatedialogbox.htm", "11"]
  ],
  ["Mouse", "source/mouse.htm", "11"],
  ["Command line", null, "1",
   ["Common parameters", "source/common_parameters.htm", "11"],
   ["Enhanced parameters", "source/enhanced_parameters.htm", "11"],
   ["Printing via command line", "source/printing_via_command_line.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;
}

