var TITEMS = [ 
 ["INTRODUCTION", "inrto.html", "11"],
 ["UserGate Proxy &amp; Firewall", "whatis.htm", "9"],
 ["System requirements", "system.htm", "11"],
 ["UserGate Server installation", "setup.htm", "11"],
 ["UserGate update and removal", "delete.htm", "11"],
 ["UserGate registration", "registr1.htm", "11"],
 ["UserGate licensing policy", "license.htm", "11"],
 ["UserGate Administration module", "admin.htm", "1",
  ["Connection settings", "connections.htm", "11"],
  ["Setting of the password to statistics base", "passbd.htm", "11"]
 ],
 ["Interface settings", "interface.htm", "1",
  ["Connection failover", "reserve.htm", "11"]
 ],
 ["Users and groups", "polgrup.htm", "1",
  ["User authorization methods", "auto_users.htm", "11"],
  ["Terminal user support", "users_terminal.htm", "11"],
  ["Using HTTP authorization with transparent proxy", "http_auth.htm", "11"],
  ["Using Authorization Client", "client.htm", "11"]
 ],
 ["UserGate services settings", "services.htm", "1",
  ["DHCP settings", "dhcp.htm", "11"],
  ["Proxy service settings", "setpro.htm", "11"],
  ["IP telephony protocols support (SIP, H323)", "sip_h323.htm", "11"],
  ["UserGate mail proxy", "mailpro.htm", "11"],
  ["Using a transparent mode", "transparent.htm", "11"],
  ["Parent proxies", "caskad.htm", "11"],
  ["Port mapping", "portmapping.htm", "11"],
  ["Cache settings", "cache.htm", "11"],
  ["Antivirus scanning", "antivir.htm", "11"],
  ["UserGate Scheduler", "plan.htm", "11"],
  ["DNS settings", "dns.htm", "11"]
 ],
 ["Alert Manager", "alert.htm", "11"],
 ["UserGate Firewall", "fairwall.htm", "1",
  ["Principle of operation", "set_fair.htm", "11"],
  ["Network Address Translation rules (NAT)", "nat.htm", "11"],
  ["Working with multiple providers", "provider.htm", "11"],
  ["Automatic outgoing interface selection", "choice_inter.htm", "11"],
  ["Network resources publishing", "public.htm", "11"],
  ["Filtering rules settings", "fa.htm", "11"],
  ["Routing support", "route.htm", "11"]
 ],
 ["UserGate speed limitations", "speed.htm", "11"],
 ["Bandwidth Manager", "bandwidth.htm", "11"],
 ["Application Firewall", "appfair.htm", "11"],
 ["UserGate traffic management", "control_traffic.htm", "1",
  ["Traffic management rules", "system_traf.htm", "11"],
  ["Internet access restriction", "limit_url.htm", "11"],
  ["Categorized URL filtering (BrightCloud)", "brightcloud.htm", "11"],
  ["Setting a traffic consumption limit", "limit_traf.htm", "11"],
  ["File size restriction", "limit_file.htm", "11"]
 ],
 ["Billing system", "billing.htm", "1",
  ["Internet access tariffing", "tarif.htm", "11"],
  ["User account status control", "control_mony.htm", "11"],
  ["Dynamic billing plans switching", "change_tarif.htm", "11"]
 ],
 ["UserGate remote administration", "remote_admin.htm", "1",
  ["Remote connection settings", "remote_connection.htm", "11"],
  ["Checking for the new version", "new version.htm", "11"]
 ],
 ["UserGate statistics utility", "statistic.htm", "11"],
 ["UserGate Web statistics", "web_stat.htm", "1",
  ["Web statistics settings", "set_webstat.htm", "11"],
  ["Traffic management rules efficiency rating", "work_traf.htm", "11"],
  ["Antivirus efficiency rating", "work_antivir.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;
}

