var TITEMS = [ 
 ["Getting Started", null, "1",
  ["About Cadfil", "help_source/html/cadh5cth.htm", "11"],
  ["What is Cadfil", "help_source/html/cadh4ap8.htm", "11"],
  ["Installation", "help_source/html/cadh8790.htm", "11"],
  ["Software Updates", "help_source/html/cadh_updates.htm", "11"],
  ["Stages of program Generation", "help_source/html/cadh0oz8.htm", "11"],
  ["Material Database", "help_source/html/cadh_mat_db.htm", "11"]
 ],
 ["Mandrel Creation", null, "1",
  ["Overview of Mandrel and Envelope Creation", "help_source/html/cadh3znb.htm", "11"],
  ["Mandrel (X,R) Edit", "help_source/html/cadh1rn8.htm", "11"],
  ["Importing a DXF file", "help_source/html/cadh2qi6.htm", "11"],
  ["Converting Old mandrel files", "help_source/html/cadh7v92.htm", "11"]
 ],
 ["Fibre Path Creation", null, "1",
  ["Introduction to fibre path generation", "help_source/html/cadh7svj.htm", "11"],
  ["Mandrel Meshing for fibre path generation", "help_source/html/cadh08q0.htm", "11"],
  ["Fibre Path Start Position", "help_source/html/cadh73jn.htm", "11"],
  ["Winding Trajectories", "help_source/html/cadh0otm.htm", "11"],
  ["CADFIL Fibre Path Requirements", "help_source/html/cadh7ltd.htm", "11"],
  ["Creating a fibre path", "help_source/html/cadh7v51.htm", "11"],
  ["Specific wind angle required", "help_source/html/cadh4ynb.htm", "11"],
  ["Specific diameter opening required", "help_source/html/cadh32cw.htm", "11"],
  ["Difficult mandrels", "help_source/html/cadh39kg.htm", "11"],
  ["The fibre path creation menu", "help_source/html/cadh1ub2.htm", "11"],
  ["Fibre Paths Display Options", "help_source/html/cadh2r1r.htm", "11"],
  ["Views Menu", "help_source/html/cadh3md1.htm", "11"],
  ["Creating a Joining Path", "help_source/html/cadh1g6m.htm", "11"]
 ],
 ["Payout Path Creation", null, "1",
  ["Introduction to payout path creation", "help_source/html/cadh41gl.htm", "11"],
  ["Creation of payout path", "help_source/html/cadh3xkp.htm", "11"],
  ["Band pattern selection", "help_source/html/cadh033o.htm", "11"],
  ["Band Pattern With Dwell Winding", "help_source/html/cadh0uef.htm", "11"],
  ["Filter length and filter angle", "help_source/html/cadh1obr.htm", "11"],
  ["Thickness modifications", "help_source/html/cadh8nqc.htm", "11"],
  ["View payout path", "help_source/html/cadh62if.htm", "11"]
 ],
 ["Combining Winding Programs", null, "1",
  ["Control File for creating multi layer wind paths", "help_source/html/cadh3cyt.htm", "11"]
 ],
 ["Post Processing", null, "1",
  ["Introduction to Post Processing", "help_source/html/cadh8a9b.htm", "11"],
  ["Post-processor configuration (.SM File)", "help_source/html/cadh0z6v.htm", "11"],
  ["Post Processor Configuration @@LOGICALS@@", "help_source/html/cadh_pplogicals.htm", "11"],
  ["The 2 axis post processor", "help_source/html/cadh2cvs.htm", "11"],
  ["The 3 and 4 axis post-processors", "help_source/html/cadh7xro.htm", "11"],
  ["The 3 axis large eye post processor", "help_source/html/cadh2isl.htm", "11"],
  ["The 5 axis post processor-1", "help_source/html/cadh7rch.htm", "11"],
  ["The 5 axis post procrocessor-2", "help_source/html/cadh7rci.htm", "11"],
  ["The 5 axis (3 plane) post processor", "help_source/html/cadh284w.htm", "11"],
  ["The 6 axis post processor- 1", "help_source/html/cadh289t.htm", "11"],
  ["The 6 axis post processor- 2", "help_source/html/cadh289u.htm", "11"],
  ["Transfer NC to Winder", "help_source/html/cadh_nc_transfer.htm", "11"],
  ["Post Processor Input", null, "1",
   ["Post processor input", "help_source/html/cadh7xro.htm", "11"],
   ["Entering names of '.PAY' and '.PRG' files", "help_source/html/cadh2kvn.htm", "11"],
   ["Entering X datum : XDAT", "help_source/html/cadh4fxw.htm", "11"],
   ["Entering the Payout Eye Length: POLEN", "help_source/html/cadh0ca6.htm", "11"],
   ["Selection feed rate calculation method", "help_source/html/cadh68j0.htm", "11"],
   ["Axis Speed Summary Dialog", "help_source/html/cadh_feed_summary.htm", "11"],
   ["NC Part program main and subroutine numbers", "help_source/html/cadh7nfz.htm", "11"],
   ["Calculation and output of NC part program", "help_source/html/cadh67ab.htm", "11"],
   ["Calculation of program start position", "help_source/html/cadh6zar.htm", "11"],
   ["Running the NC program", "help_source/html/cadh4a0e.htm", "11"]
  ]
 ],
 ["QuickCad", null, "1",
  ["QuickCAD (Parametrics) Introduction", "help_source/html/cadh923z.htm", "11"],
  ["Pipe Winding", null, "1",
   ["PipeWinder (Multi-pipe)", "help_source/html/cadh_multipipe.htm", "11"],
   ["Pipe Winding Parameters", "help_source/html/cadh4nhh.htm", "11"]
  ],
  ["Cylinder Hoop Winding", null, "1",
   ["Hoop Winding", "help_source/html/cadh088g.htm", "11"],
   ["Multiple Hoop Winding", "help_source/html/cadh3a28.htm", "11"]
  ],
  ["Dome Ended Vessel Parametric", null, "1",
   ["Dome Ended Vessel Parametric", "help_source/html/cadh01ik.htm", "11"]
  ],
  ["Vessel With Encaps (Beta Version)", null, "1",
   ["Vessel With Endcaps", "help_source/html/cadh17ow.htm", "11"]
  ],
  ["Elbow Winding", null, "1",
   ["Elbow parametrics", "help_source/html/cadh4bjj.htm", "11"],
   ["Elbow parametric data entry", "help_source/html/cadh36ch.htm", "11"]
  ],
  ["Sphere Winding", null, "1",
   ["Sphere parametrics", "help_source/html/cadh1vn3.htm", "11"],
   ["Sphere parameters described", "help_source/html/cadh3g81.htm", "11"]
  ],
  ["Flat Plate Winding", null, "1",
   ["Plate Winding", "help_source/html/cadh22y7.htm", "11"],
   ["Plate parametric data entry", "help_source/html/cadh0n35.htm", "11"],
   ["Plate parametric error messages", "help_source/html/cadh0whe.htm", "11"],
   ["Using / combining plate NC programs", "help_source/html/cadh68pu.htm", "11"],
   ["Plate Hoop winding", "help_source/html/cadh4c6o.htm", "11"]
  ],
  ["SPAR Winding", null, "1",
   ["Spar Winding (Prismatic non-round sections)", "help_source/html/cadh6436.htm", "11"]
  ]
 ],
 ["Error Messages", null, "1",
  ["Introduction to error handling", "help_source/html/cadh8bfz.htm", "11"],
  ["Fatal errors", "help_source/html/cadh6gx8.htm", "11"],
  ["Non-fatal errors", "help_source/html/cadh2jho.htm", "11"],
  ["Cadfil main program errors messages", "help_source/html/cadh30dq.htm", "11"],
  ["Mandrel generation error messages", "help_source/html/cadh30mc.htm", "11"],
  ["Fibre path generation errors", "help_source/html/cadh8tgi.htm", "11"],
  ["Payout path error messages", "help_source/html/cadh9oop.htm", "11"],
  ["Post processor error messages", "help_source/html/cadh84c0.htm", "11"]
 ],
 ["Figures", null, "1",
  ["Mandrel XR Edit Dialoge Box", "help_source/html/cadh2kah.htm", "11"],
  ["Graphics Window in Mandrel/Envelope X,R Edit", "help_source/html/cadh2q40.htm", "11"],
  ["Edit XR Data Record", "help_source/html/cadh014g.htm", "11"],
  ["Axisymmetric path Requirements, 2 Hoop Points", "help_source/html/cadh8r74.htm", "11"],
  ["Winding Angle System For Starting Path", "help_source/html/cadh9j1f.htm", "11"],
  ["Friction Direction looking on to mandrel surface", "help_source/html/cadh2qeo.htm", "11"],
  ["Difficult Mandrels", "help_source/html/cadh39kg.htm", "11"],
  ["Band Pattern Selection Dialogue", "help_source/html/cadh6hps.htm", "11"],
  ["Visualisation of fibre Band Pattern", "help_source/html/cadh5z1s.htm", "11"],
  ["Band pattern explanation", "help_source/html/cadh5ycw.htm", "11"],
  ["Default Clearance Envelope", "help_source/html/cadh24og.htm", "11"],
  ["The Control (.CTL) file editor", "help_source/html/cadh9nlc.htm", "11"],
  ["Dome Ended Vessel Parameters", "help_source/html/cadh52nk.htm", "11"],
  ["Elbow Winding Parameters", "help_source/html/cadh37ow.htm", "11"],
  ["Front &amp; Back faces of plate with face advance parameter=2", "help_source/html/cadh6sog.htm", "11"],
  ["Front &amp; Back faces of plate with face advance parameter=1", "help_source/html/cadh6e28.htm", "11"],
  ["NC Feedrate Dialogue", "help_source/html/cadh2t2o.htm", "11"],
  ["Spar winding Parameters", "help_source/html/cadh7n37.htm", "11"],
  ["QuickCad Sphere Parameters", "help_source/html/cadh6gir.htm", "11"],
  ["Machine offsets and Datums", "help_source/html/cadh7wod.htm", "11"]
 ],
 ["Appendices", null, "1",
  ["Cadfil Installation", "help_source/html/cadh8790.htm", "11"],
  ["Appendix A -Cadfil file formats", null, "1",
   ["Configuration files", "help_source/html/cadh8833.htm", "11"],
   ["Payhed.blk file", "help_source/html/cadh1gq3.htm", "11"],
   ["Material.cnf", "help_source/html/cadh1jza.htm", "11"],
   ["Fibre path file - '.FIB'", "help_source/html/cadh1t7m.htm", "11"],
   ["Payout path file-'.PAY'", "help_source/html/cadh2oft.htm", "11"],
   ["Thickness data file-'.THK'", "help_source/html/cadh31ez.htm", "11"]
  ],
  ["Appendix B-Calculations", null, "1",
   ["Useful Calculations", "help_source/html/cadh4fjn.htm", "11"],
   ["Tow area calculation", "help_source/html/cadh6vmp.htm", "11"],
   ["Mass fraction from volume fraction", "help_source/html/cadh7fty.htm", "11"],
   ["Volume fraction from mass fraction calculation", "help_source/html/cadh3rty.htm", "11"]
  ],
  ["Appendix C - Other Languages", null, "1",
   ["Other Languages", "help_source/html/cadh2rqf.htm", "11"]
  ],
  ["Appendix D - Examples", null, "1",
   ["Examples Introduction", "help_source/html/cadh_ex_intro.htm", "11"],
   ["Aluminium Bottle - QuickCAD", "help_source/html/cadh_ex01.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;
}

