var TITEMS = [ 
 ["Welcome to SupportCalls System", "data/welcome.htm", "11"],
 ["Introduction", "data/WhySupportCalls.htm", "1",
  ["Introduction", "data/WhySupportCalls.htm", "11"],
  ["How does it work?", "data/highlights.htm", "11"],
  ["Major Features", "data/1.htm", "11"],
  ["Benefits", "data/benefits.htm", "11"],
  ["Available Editions", "data/editions.htm", "11"],
  ["Requirements", "data/2.htm", "11"],
  ["Installation", "data/installation.htm", "1",
   ["Managerial Installation and Configuration", "data/installationManagerial.htm", "11"],
   ["Client Installation", "data/installationClient.htm", "11"]
  ]
 ],
 ["SupportCalls Outlook Folders", "data/3.htm", "1",
  ["History folder", "data/3.1.htm", "11"],
  ["KB folder", "data/3.2.htm", "11"],
  ["Ongoing Cases folder", "data/3.3.htm", "11"],
  ["Resolved Cases folder", "data/3.4.htm", "11"],
  ["Schedules folder", "data/3.5.htm", "11"],
  ["Settings folder", "data/3.6.htm", "11"]
 ],
 ["SupportCalls Menu &amp; Toolbars", "data/4.htm", "11"],
 ["Administrative Settings", "data/5.htm", "1",
  ["Personal Settings", "data/5.1.htm", "11"],
  ["Access Control", "data/5.2.htm", "11"],
  ["Assets List Manager", "data/5.6.htm", "11"],
  ["Technicians List Manager", "data/5.4.htm", "11"],
  ["Problems List Manager", "data/5.3.htm", "11"],
  ["Callers List Manager", "data/5.5.htm", "11"],
  ["Templates Manager", "data/5.7.htm", "11"],
  ["Notification Manager", "data/5.8.htm", "11"],
  ["Email Monitoring", "data/5.9.htm", "11"],
  ["Predefined Answers", "data/5.10.htm", "11"],
  ["Custom Fields", "data/5.11.htm", "11"],
  ["Mobile Messaging", "data/5.12.htm", "11"],
  ["Automation Options", "data/5.13.htm", "11"],
  ["Advanced Settings", "data/5.14.htm", "11"],
  ["Web Access", "data/5.15.htm", "11"],
  ["Service License Agreements (SLA)", "data/5.16.htm", "11"]
 ],
 ["Working with Support Request Form", "data/6.htm", "1",
  ["Case Detail", "data/6.1.htm", "11"],
  ["Time Spent", "data/6.2.htm", "11"],
  ["Email History", "data/6.3.htm", "11"],
  ["Notes", "data/6.4.htm", "11"],
  ["Assets", "data/6.5.htm", "11"],
  ["My Fields", "data/6.6.htm", "11"],
  ["Logs", "data/6.7.htm", "11"],
  ["Other cases from this caller", "data/6.8.htm", "11"],
  ["Common Tasks", "data/6.9.htm", "11"]
 ],
 ["Logging new support cases", "data/7.htm", "11"],
 ["Automatic logging of support requests", "data/8.htm", "11"],
 ["Automatic notifications", "data/9.htm", "1",
  ["Email Notifications", "data/9.1.htm", "11"],
  ["SMS Notifications", "data/9.2.htm", "11"]
 ],
 ["Sending SMS", "data/10.htm", "1",
  ["SMS via HTTP SMS gateways", "data/10.1.htm", "11"],
  ["SMS via Skype", "data/10.2.htm", "11"],
  ["Sending SMS to a caller/technician", "data/10.3.htm", "11"],
  ["Automating SMS reminders", "data/10.4.htm", "11"]
 ],
 ["Making Calls", "data/11.htm", "1",
  ["Configuring Skype to make calls", "data/11.1.htm", "11"],
  ["Configuring an attached phone to make calls", "data/11.2.htm", "11"],
  ["Making Calls to a contact", "data/11.3.htm", "11"]
 ],
 ["Outlook Views", "data/12.htm", "1",
  ["Available views", "data/12.1.htm", "11"],
  ["My Cases view", "data/12.2.htm", "11"],
  ["Customizing a view", "data/12.3.htm", "11"]
 ],
 ["Knowledge base", "data/13.htm", "1",
  ["Outlook knowledge base form", "data/13.1.htm", "11"],
  ["Creating a new knowledge base", "data/13.2.htm", "11"],
  ["How to use knowledge base?", "data/13.3.htm", "11"],
  ["Publishing knowledge base to web", "data/13.4.htm", "11"]
 ],
 ["Using Predefined Answers", "data/14.htm", "11"],
 ["Searching and Reporting", "data/15.htm", "1",
  ["Searching from SupportCalls toolbars", "data/15.1.htm", "11"],
  ["Searching via dialog", "data/15.2.htm", "11"]
 ],
 ["Working with Administrative Tools", "data/17.htm", "1",
  ["Statistics", "data/17.1.1.htm", "1",
   ["Overview", "data/17.1.1.htm", "11"],
   ["Understanding the GUI", "data/17.1.2.htm", "11"],
   ["Working with OLAP Grid", "data/17.1.3.htm", "11"],
   ["Working with OLAP Chart", "data/17.1.4.htm", "11"],
   ["Visual Analysis", "data/17.1.5.htm", "11"],
   ["Predefined Reports", "data/17.1.6.htm", "11"],
   ["Printing and Exporting", "data/17.1.7.htm", "11"]
  ],
  ["Summary Reports", "data/17.2.htm", "11"],
  ["Export to database", "data/17.3.htm", "11"],
  ["Archive Cases", "data/17.4.htm", "11"],
  ["Demo Cases", "data/17.5.htm", "11"]
 ],
 ["Technician Web Access (TWA)", "data/18.htm", "1",
  ["How does it work?", "data/18.1.htm", "11"],
  ["Requirements", "data/18.2.htm", "11"],
  ["Setup and Configuration", "data/18.3.htm", "1",
   ["Step 1: Setting up an IIS web folder", "data/18.3.1.htm", "11"],
   ["Step 2: Set network permission to the IIS webfolder", "data/18.3.2.htm", "11"],
   ["Step 3: Extract web access files to IIS webfolder", "data/18.3.3.htm", "11"],
   ["Step 4: Set ASP.NET permission on Temp subfolder", "data/18.3.4.htm", "11"],
   ["Step 5: Configure Web Access Settings in Outlook", "data/18.3.5.htm", "11"],
   ["Step 6: Write/Update XML metadata setting files", "data/18.3.6.htm", "11"]
  ],
  ["The support case webform", "data/18.4.htm", "11"],
  ["Web views - Case listings", "data/18.5.htm", "11"]
 ],
 ["Customer Web Service (CWS)", "data/19.htm", "1",
  ["How does it work?", "data/19.1.htm", "11"],
  ["Requirements", "data/19.2.htm", "11"],
  ["Setup and Configuration", "data/19.3.htm", "1",
   ["Step 1: Setting up an IIS web folder", "data/19.3.1.htm", "11"],
   ["Step 2: Set network permission to the IIS webfolder", "data/19.3.2.htm", "11"],
   ["Step 3: Extract Web Service files to IIS webfolder", "data/19.3.3.htm", "11"],
   ["Step 4: Set ASP.NET permission on Temp subfolder", "data/19.3.4.htm", "11"],
   ["Step 5: Configure Web Forms Settings in Outlook", "data/19.3.5.htm", "11"],
   ["Step 6: Write/Update XML metadata setting files", "data/19.3.6.htm", "11"]
  ],
  ["Submitting a new support request", "data/19.4.htm", "11"],
  ["Checking Case Status", "data/19.5.htm", "11"],
  ["Web Knowledge Base", "data/19.6.htm", "11"],
  ["Caller Web Access (CWA)", "data/19.7.htm", "11"]
 ],
 ["Contact Manager", "data/20.htm", "11"],
 ["Removing SupportCalls System", "data/RemoveSupportCalls.htm", "11"],
 ["Licensing", "data/21.htm", "11"],
 ["Important links", "data/22.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;
}

