var TITEMS = [ 
 ["Index", "source/index.html", "11"],
 ["About", "source/about.html", "1",
  ["Legal agreement", "source/legal.html", "11"],
  ["Contacting", "source/contacting.html", "11"]
 ],
 ["Operation", "source/operation.html", "1",
  ["General controls", "source/general_controls.html", "11"],
  ["Saving/loading", "source/savingloading.html", "11"],
  ["Randomizing", "source/randomizing.html", "11"],
  ["Preview", "source/preview.html", "11"]
 ],
 ["Installation", "source/installation.html", "11"],
 ["Settings", "source/settings.html", "1",
  ["Film", "source/film.html", "11"],
  ["Camera", "source/camera.html", "11"],
  ["Scratch", "source/scratch.html", "11"],
  ["Fat", "source/fat.html", "11"],
  ["Dust", "source/dust.html", "11"],
  ["Hairs", "source/hairs.html", "11"]
 ],
 ["Internet links", null, "1",
  ["OldMovie page", "http://www.vanderlee.com/plugins_oldmovie.html", "15"],
  ["VanDerLee site", "http://www.vanderlee.com", "15"],
  ["E-Mail support", "mailto:support@vanderlee.com", "13"]
 ],
 ["Order by internet", "http://www.vanderlee.com/plugins_oldmovie_order.html", "13"]
];


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;
}

