var TITEMS = [ 
 ["Introducing to NIC Spider", "source/introduction.htm", "1",
  ["Introducing", "source/introduction.htm", "9"],
  ["NIC Spider Online", "source/online.htm", "14"],
  ["What's new", "source/whatsnew.htm", "9"]
 ],
 ["Quick start", "source/quickstart.htm", "11"],
 ["User interface", "source/mainwindow.htm", "1",
  ["Words tabs", "source/wordstabs.htm", "11"],
  ["Domain name list", "source/dnlist.htm", "11"],
  ["Registrar info", "source/reginfo.htm", "11"],
  ["Settings tab", "source/settings.htm", "1",
   ["Whois servers subtab", "source/u_whois.htm", "11"],
   ["Connection subtab", "source/u_connect.htm", "11"],
   ["Preferences subtab", "source/u_pref.htm", "11"]
  ]
 ],
 ["Using program", "source/using.htm", "1",
  ["Project's creation", "source/p_create.htm", "11"],
  ["Operation with the project", "source/p_work.htm", "11"],
  ["Saving of the project", "source/p_savep.htm", "11"],
  ["Saving of the list prefixes and suffixes", "source/p_savel.htm", "11"],
  ["Printing results of operation", "source/p_print.htm", "11"]
 ],
 ["Technical support", "source/support.htm", "11"],
 ["Flexiblesoft's products", "source/products.htm", "1",
  ["Other products", "source/products.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;
}


