var TITEMS = [ 
 ["Overview FQB", "source/introduction.htm", "17"],
 ["What's new.", "source/whatsnew.htm", "9"],
 ["About FlexibleSoft Co.", null, "1",
  ["Getting technical support", "source/support.htm", "9"],
  ["Getting program updates", "source/fsonline.htm", "13"],
  ["Our products", "source/flexiblesoft.htm", "11"]
 ],
 ["Using FQB", null, "1",
  ["Main window", "source/mainwindow.htm", "11"],
  ["Command line parameters", "source/cmdline.htm", "11"],
  ["Menu", "source/popup_menu.htm", "11"],
  ["SettingsDialog", null, "1",
   ["Password tab", "source/password_tab.htm", "11"],
   ["Quality tab", "source/quality_tab.htm", "11"],
   ["Destination tab", "source/destination_tab.htm", "11"]
  ]
 ],
 ["Registration", null, "1",
  ["License for use and distribution", "source/license.htm", "17"],
  ["Ordering and payments", "source/order.htm", "17"]
 ]
];


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;
}

