var TITEMS = [ 
 ["Introduction", "introduction.htm", "11"],
 ["Demonstration videos", "videos.htm", "11"],
 ["Installation", "pre-requis.htm", "1",
  ["Prerequisites", "pre-requis.htm", "11"],
  ["TAPI Compatipility Check", "check_tapi_compatib1.htm", "11"],
  ["Get a licence", "obtenirlicence.htm", "11"],
  ["Standalone installation", "installation.htm", "11"],
  ["Administrive installation", "admininstallation.htm", "11"],
  ["Setup Tool", "configurationtool.htm", "11"]
 ],
 ["Setting up", "configparametres.htm", "1",
  ["Settings", "configparametres.htm", "11"],
  ["Automatic popup", "configautopopup.htm", "11"],
  ["Buttons and menus", "boutonsmenus.htm", "11",
  	["Element properties details", "elementpropertiesdetails.htm", "11"]],
  ["Phone numbers translation", "configphonenumbertranslation.htm", "11"],
  ["Application translation", "modificationfichierlangue.htm", "11"],
  ["CallTo protocol settings", "calltosettings.htm", "11"]
 ],
 ["How does it work", "commentcelafonctionne.htm", "1",
  ["General", "commentcelafonctionne.htm", "11"],
  ["Functions", "fonctions.htm", "11"],
  ["Zones", "zones.htm", "11"],
  ["Incomming call", "receptionappel.htm", "11"],
  ["Outgoing call", "appelercontact.htm", "11"]
 ],
 ["Search engine", "commentfairerecherche.htm", "1",
  ["How to make a search", "commentfairerecherche.htm", "11"],
  ["Search results", "resultatsrecherche.htm", "11"]
 ],
 ["Logs", "journalbord.htm", "11"],
 ["Licence", "licence.htm", "11"],
 ["Add-on", "mscrmdialerinstall.htm", "1",
  ["CTI for MSCRM Integration Dialer", "mscrmdialerinstall.htm", "1",
	["Installation", "mscrmdialerinstall.htm", "11"],
    ["MSCRM 4.0 Customization", "mscrmdialercusto.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;
}


