var TITEMS = [ 
 ["Introduction", null, "1",
  ["About CQ Callbook", "source/intro.html", "11"],
  ["System requirements", "source/sysreq.html", "11"]
 ],
 ["Using CQ Callbook", null, "1",
  ["User Interface", "source/userinterface.html", "11"],
  ["Menu Bar", "source/menu.html", "1",
   ["File menu", "source/m_file.html", "11"],
   ["Settings menu", "source/m_settings.html", "11"],
   ["Help menu", "source/m_help.html", "11"]
  ],
  ["Searching for data on the web", "source/findweb.html", "11"],
  ["Searching for Country-Specific callbooks", "source/findcbk.html", "11"],
  ["Searching for IOTA", "source/findiota.html", "11"],
  ["eQSLs waiting for your Callsign", "source/eqsl.html", "11"],
  ["Custom list of the links", "source/userlist.html", "11"],
  ["Preferences", "source/preferences.html", "11"]
 ],
 ["Registration", null, "1",
  ["How to purchase/register", "source/purchase.html", "11"],
  ["License information", "source/license.html", "11"],
  ["Why should I register?", "source/whyreg.html", "11"],
  ["Free-of-charge registration", "source/frereg.html", "11"]
 ],
 ["About Us", null, "1",
  ["Getting program updates", "source/updates.html", "11"],
  ["Technical support and feedback", "source/support.html", "11"],
  ["Our products", "source/ourproducts.html", "11"],
  ["Contact Us", "source/contactus.html", "11"]
 ],
 ["Acknowledgements", "source/acknowledgements.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;
}


