var TITEMS = [ 
 ["Info", "home.htm", "11"],
 ["emuControlCenter", null, "1",
  ["About", "ecc - about.htm", "17"],
  ["Supported platforms", "ecc - supported platforms.htm", "17"],
  ["Changelog", "ecc - changelog.htm", "11",
   ["Changelogs 2009", "ecc - changelog 2009.htm", "11"],
   ["Changelogs 2008", "ecc - changelog 2008.htm", "11"],
   ["Changelogs 2007", "ecc - changelog 2007.htm", "11"],
   ["Changelogs 2006", "ecc - changelog 2006.htm", "11"]
  ],
  ["Keyboard shortcuts", "ecc - key shortcuts.htm", "11"],
  ["Programs used", "ecc - programs used.htm", "11"],
  ["FAQ", null, "1",
   ["general", null, "1",
    ["Is there an overview of all available keyboard shortcuts in emuControlCenter?", "ecc - faq - general - is there an overview....htm", "11"],
    ["Can i sort the whole rom list in listview-mode* by name?", "ecc - faq - general - can i sort the whole rom list....htm", "11"],
    ["There are 4 graphic buttons below the navigation. How to use them?", "ecc - faq - general - there are 4 graphic buttons below....htm", "11"]
   ],
   ["configuration", null, "1",
    ["Is it possible to skip the extension warning popup?", "ecc - faq - configuration - is it possible to skip the extension....htm", "11"],
    ["Is it possible to use more then one emulator for one platform?", "ecc - faq - configuration - is it possible to use more then....htm", "11"]
   ],
   ["meta informations", null, "1",
    ["Is it possible to copy metadata from one rom to another rom?", "ecc - faq - meta - is it possible to copy metadata,,,.htm", "11"],
    ["How can in only show the first disk of a game in the list?", "ecc - faq - meta - how can in only show the first disk,,,.htm", "11"],
    ["ECC has only one CRC32 for MAME/Arcade games. How can i create a list of them to e.g. create imagepacks?", "ecc - faq - meta - ecc has only one crc32 for mame,,,.htm", "11"]
   ]
  ],
  ["Tool changelogs", null, "1",
   ["ECC Startup", "ecc startup - changelog.htm", "11"],
   ["ECC Live!", "ecc live! - changelog.htm", "11"],
   ["ECC Live! upd", "ecc live! upd - changelog.htm", "11"],
   ["ECC Bugreport", "ecc bugreport - changelog.htm", "11"],
   ["ECC Theme select", "ecc theme - changelog.htm", "11"],
   ["ECC Installer", "ecc installer - changelog.htm", "11"],
   ["ECC Installer build ID", "ecc installer - about.htm", "17"]
  ],
  ["Getting started tutorials", null, "1",
   ["Adding ROMS into ECC", "ecc - getting started - adding roms into ecc.htm", "17"],
   ["Emulator assignment for platform", "ecc - getting started - emulator assignment for platform.htm", "17"],
   ["Add/Edit ROM media info", "ecc - getting started - add_edit rom media info.htm", "17"],
   ["Adding images to a ROM", "ecc - getting started - adding images to a rom.htm", "17"],
   ["Using ECC Theme select", "ecc theme - about.htm", "17"]
  ],
  ["Troubleshooting", null, "1",
   ["Running ECC tools on Vista", "ecc troubleshooting - running ecc tools on vista.htm", "17"],
   ["OCX outdated", "ecc troubleshooting - ocx outdated.htm", "17"],
   ["A virus found in zlib1.dll?", "ecc troubleshooting - virus found in zlib1.dll.htm", "17"]
  ]
 ]
];


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;
}


