var TITEMS = [ 
 ["Halftone", "source/index.html", "1",
  ["General information", "source/gen.html", "1",
   ["About", "source/gen_about.html", "11"],
   ["Technical specifications", "source/gen_techspecs.html", "11"],
   ["Installation", "source/gen_installation.html", "11"],
   ["Legal agreement", "source/gen_legalagreement.html", "11"],
   ["History", "source/gen_history.html", "11"]
  ],
  ["Operation", "source/opr.html", "1",
   ["Source image", "source/opr_source.html", "11"],
   ["Grid tab", null, "1",
    ["Scale", "source/opr_grid_scale.html", "11"],
    ["Placement", "source/opr_grid_placement.html", "11"],
    ["Layout", "source/opr_grid_layout.html", "11"]
   ],
   ["Dots tab", null, "1",
    ["Size", "source/opr_dots_size.html", "11"],
    ["Shape", "source/opr_dots_shape.html", "1"],
    ["Colors", "source/opr_dots_colors.html", "11"]
   ],
   ["Waves tab", null, "1",
    ["Radial waves", "source/opr_waves_radial.html", "11"],
    ["Orthogonal waves", "source/opr_waves_orthogonal.html", "11"],
    ["Spiral", "source/opr_waves_spiral.html", "11"]
   ],
   ["Options tab", null, "1",
    ["Registration", "source/opr_options_registration.html", "11"],
    ["Settings", "source/opr_options_settings.html", "11"]
   ],
   ["Jitter patterns", "source/opr_jitter_patterns.html", "11"]
  ],
  ["Registration", "source/opr_options_registration.html", "11"],
  ["Troubleshooting", "source/faq.html", "11"],
  ["Tips &amp; Tricks", "source/tips.html", "11"]
 ],
 ["Links", null, "5",
  ["Internet: Halftone info", "http://www.vanderlee.com/adrenaline_halftone.html", "15"],
  ["Internet: VanDerLee", "http://www.vanderlee.com", "15"],
  ["E-mail: Support", "mailto:support@vanderlee.com", "13"]
 ],
 ["Internet: Order", "http://www.vanderlee.com/plugins_halftone_order.html", "15"]
];


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

