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

