var TITEMS = [ 
 ["Welcome to Spectron", "pages/common_welcome.htm", "11"],
 ["What is Spectron?", "pages/common_what_is.htm", "11"],
 ["Spectron Modules", "pages/modules.htm", "1",
  ["Standard Module Controls", "pages/modules_standard_controls.htm", "11"],
  ["Setting Spectral Nodes", "pages/set_spectral_nodes.htm", "11"],
  ["Modulating Spectral Nodes", "pages/modulate_spectral_nodes.htm", "11"],
  ["Morph", "pages/modules_morph.htm", "11"],
  ["Filter", "pages/modules_filter.htm", "11"],
  ["Pan", "pages/modules_pan.htm", "11"],
  ["Delay", "pages/modules_delay.htm", "11"],
  ["Smear", "pages/modules_smear.htm", "11"]
 ],
 ["Spectron Meters", "pages/meters.htm", "1",
  ["Spectrum Meter", "pages/meters_spectrum.htm", "11"],
  ["Input and Output Meters", "pages/meters_i_o.htm", "11"]
 ],
 ["Options", "pages/options.htm", "1",
  ["General Options", "pages/options_general.htm", "11"],
  ["Spectrum Options", "pages/options_spectrum.htm", "11"],
  ["I/O Options", "pages/options_i_o.htm", "11"],
  ["Spectron Engine Options", "pages/options_spectron_engine.htm", "11"]
 ],
 ["General Functions", "pages/general.htm", "1",
  ["Setting the Order of the Spectron Modules", "pages/general_filter_graph.htm", "11"],
  ["Input and Output Gain", "pages/general_i_o_gain.htm", "11"],
  ["Undo and History Comparisons", "pages/general_undo.htm", "11"],
  ["Gain When Bypassed Function", "pages/general_gain_when_bypassed.htm", "11"],
  ["Buffer Size Viewer", "pages/general_buffer_size_viewer.htm", "11"]
 ],
 ["Preset System", "pages/presets.htm", "1",
  ["Selecting Presets", "pages/presets_selecting.htm", "11"],
  ["Adding and Removing Presets", "pages/presets_add_remove.htm", "11"],
  ["Changing Where Presets Are Stored", "pages/presets_folder.htm", "11"],
  ["Selectively Loading Modules from Presets", "pages/presets_loading_modules.htm", "11"],
  ["Preset Module Reference", "pages/presets_module_reference.htm", "11"]
 ],
 ["Automation", "pages/common_automation.htm", "11"],
 ["CPU Optimization", "pages/common_cpu_optimization.htm", "11"],
 ["Buffer Sizes", "pages/common_buffer_sizes.htm", "11"],
 ["Shortcut Keys and Mouse Support", "pages/common_shortcuts.htm", "11"],
 ["Additional Support", "pages/common_additional_support.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;
}

