var TITEMS = [ 
 ["Welcome to Trash", "pages/common_welcome.htm", "11"],
 ["What is Trash?", "pages/common_what_is.htm", "11"],
 ["Trash Modules", "pages/modules.htm", "1",
  ["Standard Module Controls", "pages/modules_standard_controls.htm", "11"],
  ["Using Multiband Modules", "pages/using_multiband_modules.htm", "11"],
  ["Squash", "pages/modules_squash.htm", "11"],
  ["Pre-filter", "pages/modules_prefilter.htm", "11"],
  ["Trash", "pages/modules_trash.htm", "11"],
  ["Post-filter", "pages/modules_postfilter.htm", "11"],
  ["Box Model", "pages/modules_boxmodel.htm", "11"],
  ["Buzz", "pages/modules_buzz.htm", "11"]
 ],
 ["Trash Meters", "pages/meters.htm", "1",
  ["Spectrum", "pages/meters_spectrum.htm", "11"],
  ["Squash Meters", "pages/meters_squash.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"],
  ["Meter Options", "pages/options_meter.htm", "11"],
  ["Miscellaneous Options", "pages/options_misc.htm", "11"]
 ],
 ["General Functions", "pages/general.htm", "1",
  ["Setting the Order of the Trash 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;
}


