var TITEMS = [ 
 ["TrafMeter", null, "1",
  ["What is TrafMeter?", "source/first.htm", "11"],
  ["License Agreement", "source/licence.htm", "11"],
  ["Add new features", "source/customize.htm", "11"],
  ["TrafMeter Editions", "source/versions.htm", "11"],
  ["Registration Info", "source/reginfo.htm", "11"],
  ["How To Contact Us", "source/support.htm", "11"]
 ],
 ["Description", null, "1",
  ["System requirements", "source/tmeter.htm", "11"],
  ["Introduction", "source/filters.htm", "11"],
  ["Installation Package", "source/install.htm", "11"],
  ["Installation Guide", "source/plan.htm", "11"],
  ["Opening the configuration", "source/connect.htm", "11"],
  ["Selecting NIC", "source/selectnic.htm", "11"],
  ["Capturing the traffic", "source/capture.htm", "11"],
  ["Traffic Shaper", "source/shaper.htm", "11"],
  ["TrafMeter Service Monitor", "source/svc_monitor.htm", "11"],
  ["Processing the captured packet", "source/architecture.htm", "11"],
  ["Logging the Application Events", "source/logging.htm", "11"],
  ["Logging the denied packets", "source/denied.htm", "11"],
  ["Firewall", "source/firewall.htm", "11"],
  ["Zeroing counters", "source/zeroing.htm", "11"],
  ["Filter Manager", "source/fmanager.htm", "11"],
  ["Filter Editor", "source/feditor.htm", "11"],
  ["Rule Editor", "source/reditor.htm", "11"],
  ["Local Address Table", "source/lat.htm", "11"],
  ["Database Connection String", "source/oledb_initstring.htm", "11"],
  ["XML Traffic Reports", "source/traflog_xml.htm", "11",
   ["Using XSL formatting", "source/traflog_xsl.htm", "11"],
   ["The example of XSL formatting", "source/traflog_xsl_example.htm", "11"],
   ["The example of XSL formatting (2)", "source/traflog_xsl_example2.htm", "11"]
  ],
  ["Traffic Logging into the Database", "source/traflog_db.htm", "11",
   ["Database table", "source/traflog_table.htm", "11"]
  ],
  ["Packet Logging", "source/packets_logging.htm", "11",
   ["Into the plaintext file", "source/packlog_plaintext.htm", "11",
    ["Filename template", "source/filename_template.htm", "11"]
   ],
   ["Into the database", "source/packlog_database.htm", "11",
    ["Database Table", "source/packlog_table.htm", "11"],
    ["Microsoft SQL Server Syntax", "source/packlog_mssql.htm", "11"],
    ["MySQL Server Syntax", "source/packlog_mysql.htm", "11"],
    ["Microsoft Access Syntax", "source/packlog_access.htm", "11"],
    ["Useful SQL scripts", "source/packlog_scripts.htm", "11"]
   ]
  ],
  ["Host Header Logging", "source/hh_logging.htm", "11",
   ["Into the plaintext file", "source/hh_plaintext.htm", "11"],
   ["Into the database", "source/hh_database.htm", "11",
    ["Database Table", "source/hh_table.htm", "11"],
    ["Microsoft SQL Server Syntax", "source/hh_mssql.htm", "11"],
    ["MySQL Server Syntax", "source/hh_mysql.htm", "11"],
    ["Microsoft Access Syntax", "source/hh_access.htm", "11"]
   ],
   ["Result Codes", "source/hh_codes.htm", "11"]
  ],
  ["Counting VPN packests", "source/vpn.htm", "11"],
  ["Table for storing Filter Names", "source/dbtable_filters.htm", "11"],
  ["Registry Settings", "source/svc_registry.htm", "11"]
 ],
 ["FAQ", null, "1",
  ["TrafMeter FAQ", "source/faq.htm", "11"],
  ["Traffic counting with TrafMeter FAQ", "source/faq_traffic.htm", "11"]
 ],
 ["Configuration examples", null, "1",
  ["Example 1", "source/example1.htm", "11"],
  ["Example 2", "source/example2.htm", "11"],
  ["Example 3", "source/example3.htm", "11"],
  ["Example 4", "source/example4.htm", "11"],
  ["Example 5", "source/example5.htm", "11"],
  ["Example 6", "source/example6.htm", "11"],
  ["Example 7", "source/example7.htm", "11"],
  ["Example 8", "source/example8.htm", "11"]
 ],
 ["Knowledge base", null, "1",
  ["IP protocol number", "source/q0001.htm", "11"],
  ["Type Of Service (ToS) field", "source/q0002.htm", "11"],
  ["MAC address", "source/q0003.htm", "11"],
  ["Promiscuous mode", "source/q0004.htm", "11"],
  ["Ethernet hub", "source/q0005.htm", "11"],
  ["Ethernet switch", "source/q0006.htm", "11"],
  ["Ethernet", "source/q0007.htm", "11"],
  ["NAT router", "source/q0008.htm", "11"],
  ["HOWTO: Creating an OLE DB Connection String for Microsoft SQL Server", "source/q1000.htm", "11"],
  ["HOWTO: Creating an OLE DB Connection String for an Access", "source/q1002.htm", "11"],
  ["HOWTO: Creating an OLE DB Connection String for MySQL", "source/q1010.htm", "11"],
  ["Manual editing of the XML files", "source/q2001.htm", "11"],
  ["Zeroing counters using TrafReset", "source/q2003.htm", "11"],
  ["Reloading the Filterset", "source/q2006.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;
}

