var TITEMS = [ 
 ["Welcome to TeamKB for Outlook", "1.htm", "11"],
 ["Introduction", "2.htm", "1",
  ["Why do you need a KB?", "2.htm", "11"],
  ["What is TeamKB?", "2.1.htm", "11"],
  ["How does it work?", "2.2.htm", "11"],
  ["Major Features", "2.3.htm", "11"],
  ["Benefits", "2.4.htm", "11"],
  ["Requirements", "2.5.htm", "11"]
 ],
 ["Installations", "3.htm", "1",
  ["Client Installation with server pack", "3.1.htm", "11"],
  ["Simple Client Install", "3.2.htm", "11"]
 ],
 ["TeamKB Outlook folders", "4.htm", "1",
  ["Pending Articles", "4.1.htm", "11"],
  ["Published Articles", "4.2.htm", "11"],
  ["Settings", "4.3.htm", "11"]
 ],
 ["TeamKB Outlook Interface", "5.htm", "11"],
 ["Administrative Settings", "6.htm", "1",
  ["Access Control", "6.1.htm", "11"],
  ["Authors List", "6.2.htm", "11"],
  ["Problems List", "6.3.htm", "11"],
  ["Templates", "6.4.htm", "11"],
  ["Notification Options", "6.5.htm", "11"],
  ["Custom Fields", "6.6.htm", "11"],
  ["Web Access", "6.7.htm", "11"]
 ],
 ["Working with KB form", "7.htm", "11"],
 ["Creating a new KB article", "8.htm", "11"],
 ["Automatic Notifications", "9.htm", "11"],
 ["Replying to emails with KB articles", "10.htm", "11"],
 ["TeamKB Outlook Views", "11.htm", "11"],
 ["Searching and Reporting", "12.a.htm", "11"],
 ["TeamKB Web Access", "13.htm", "1",
  ["How it works?", "13.htm", "11"],
  ["Requirements", "13.1.htm", "11"],
  ["Setups and Configurations", "13.2.htm", "1",
   ["Step 1: Setting up an IIS web folder as virtual directory", "13.2.1.htm", "11"],
   ["Step 2: Set appropriate network permission to the IIS shared folder", "13.2.2.htm", "11"],
   ["Step 3: Extract/copy all KB Web Access application files to the IIS web folder", "13.2.3.htm", "11"],
   ["Step 4: Configure Web Acces specific settings in TeamKB add-in", "13.2.4.htm", "11"],
   ["Step 5: Write/update XML metadata files from TeamKB", "13.2.5.htm", "11"]
  ],
  ["Auto-update of Web KB articles", "13.3.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;
}


