var TITEMS = [ 
 ["Introduction", "source/htmlfiles/index.html", "11"],
 ["System Requirments", "source/htmlfiles/system_requiments/system_requiments.html", "11"],
 ["Using the FTP Add-On", "source/htmlfiles/using_the_ftp_add-on/using_the_ftp_add-on.html", "11"],
 ["FTP Add-On Configuration", "source/htmlfiles/configuration/configuration.html", "1",
  ["HTML Tab", "source/htmlfiles/configuration/html/html.html", "11"],
  ["Communications Tab", "source/htmlfiles/configuration/communcations/communcations.html", "11"],
  ["Misc. Tab", "source/htmlfiles/configuration/misc/misc.html", "11"],
  ["Weather WebCam Tab", "source/htmlfiles/configuration/weather_webcam/weather_webcam.html", "11"]
 ],
 ["Appendix", "source/htmlfiles/appendix/appendix.html", "1",
  ["FTP Add-On Variables", "source/htmlfiles/appendix/ftp_variables/ftp_variables.html", "11"],
  ["FTP Add-On Graphics", "source/htmlfiles/appendix/ftp_graphics/ftp_graphics.html", "11"],
  ["Sample HTML Code", "source/htmlfiles/appendix/samplehtmlpage/samplehtmlpage.html", "11"],
  ["Sample Files", "source/htmlfiles/appendix/sample_files/sample_files.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;
}

