var TITEMS = [ 
 ["Introduction", "source/wstep.htm", "17"],
 ["HTML help", "source/html_help.htm", "11"],
 ["General", "source/informacje_ogolne.html", "2",
  ["NEED programmable relay", "source/informacje_ogolne.html", "11"],
  ["Software PC Need", "source/informacje_ogolne_program_pc.htm", "11"],
  ["Hardware requirements", "source/wymagania_systemowe.html", "11"],
  ["Uninstalling", "source/deinstalacja.htm", "11"]
 ],
 ["Quick start", "source/pierwszy_stl.html", "2",
  ["Connecting the PC to the programmable relay", "source/pierwszy_stl.html", "11"],
  ["STL project", "source/pierwszy_stl.html#start_stl", "11"],
  ["LAD project", "source/pierwszy_lad.htm", "11"]
 ],
 ["Programming languages", "source/jezyki_programowania.htm", "2",
  ["STL", "source/wstep_do_stl.html", "1",
   ["STL introduction", "source/wstep_do_stl.html", "11"],
   ["Symbolic names", "source/stl.htm#nazwy_symboliczne", "11"],
   ["STL instruction", "source/stl.htm", "1",
    ["A", "source/stl.htm#instrukcja_and", "11"],
    ["A(", "source/stl.htm#instrukcja_nawiasow_and", "11"],
    ["AN", "source/stl.htm#instrukcja_and_not", "11"],
    ["AN(", "source/stl.htm#instrukcja_nawiasow_and_not", "11"],
    ["O", "source/stl.htm#instrukcja_or", "11"],
    ["O(", "source/stl.htm#instrukcja_nawiasow_or", "11"],
    ["ON", "source/stl.htm#instrukcja_or_not", "11"],
    ["ON(", "source/stl.htm#instrukcja_nawiasow_or_not", "11"],
    ["X", "source/stl.htm#instrukcja_xor", "11"],
    ["X(", "source/stl.htm#instrukcja_nawiasow_xor", "11"],
    ["XN", "source/stl.htm#instrukcja_xor_not", "11"],
    ["XN(", "source/stl.htm#instrukcja_nawiasow_xor_not", "11"],
    ["S", "source/stl.htm#instrukcja_ustawiajaca_s", "11"],
    ["R", "source/stl.htm#instrukcja_kasujaca_r", "11"],
    ["=", "source/stl.htm#instrukcja_przyporzadkowujaca", "11"],
    ["FP", "source/stl.htm#instrukcja_fp", "11"],
    ["SD", "source/stl.htm#instrukcja_sd", "11"],
    ["SF", "source/stl.htm#instrukcja_sf", "11"],
    ["SE", "source/stl.htm#instrukcja_se", "11"],
    ["SL", "source/stl.htm#instrukcja_sl", "11"],
    ["Timer instructions", "source/stl.htm#timery_zastosowanie", "11"],
    ["CU", "source/stl.htm#instrukcja_cu", "11"],
    ["CD", "source/stl.htm#instrukcja_cd", "11"],
    ["Counter instructions", "source/stl.htm#liczniki_zastosowanie", "11"],
    ["Clock instructions", "source/stl.htm#instrukcje_zegara", "11"],
    ["Comparator", "source/stl.htm#instrukcje_komparatora", "11"],
    ["L", "source/stl.htm#instrukcja_l", "1",
     ["L - Timers", "source/stl.htm#instrukcja_l_timery", "11"],
     ["L - Counters", "source/stl.htm#instrukcja_l_liczniki", "11"],
     ["L - Notes", "source/stl.htm#uwagi_l", "11"]
    ],
    ["SET", "source/stl.htm#instrukcja_set", "11"],
    ["CLR", "source/stl.htm#instrukcja_clr", "11"]
   ]
  ],
  ["LAD", "source/lad.htm", "1",
   ["Symbols in LAD", "source/lad.htm#symbole_w_lad", "11"],
   ["Inputs", "source/lad.htm#wejscia", "11"],
   ["Outputs", "source/lad.htm#wyjscia", "11"],
   ["LAD program structure", "source/lad.htm#struktura_programu_w_lad", "11"],
   ["LAD network structure", "source/lad.htm#struktura_obwodu_lad", "11"],
   ["Prohibited connections", "source/lad.htm#niedozwolone_polaczenia", "11"],
   ["Description of elements used", "source/lad.htm#opis_uzywanych_elementow", "11"],
   ["Configuration", "source/lad.htm#konfiguracja", "1",
    ["Configuration of inputs", "source/lad.htm#konfiguracja_wejsc", "11"],
    ["Configuration of outputs", "source/lad.htm#konfiguracja_wyjsc", "11"],
    ["Configuration of Markers", "source/lad.htm#konfiguracja_znacznikow", "11"],
    ["Configuration of Timers", "source/lad.htm#konfiguracja_timerow", "11"],
    ["Configuration of Counters", "source/lad.htm#konfiguracja_licznikow", "11"],
    ["The Quick Counter", "source/lad.htm#szybki_licznik", "11"],
    ["Sample configurations", "source/lad.htm#przyklady_konfiguracji", "11"]
   ],
   ["Element location rules", "source/lad.htm#zasady_umieszczania_elementow", "11"],
   ["Connection types", "source/lad.htm#rodzaje_polaczen", "11"],
   ["Symbolic names", "source/lad.htm#nazwy_symboliczne", "11"],
   ["LAD program", "source/lad.htm#program_w_lad", "11"]
  ]
 ],
 ["Working with PC Need", "source/interfejs.htm", "2",
  ["Main program window description", "source/interfejs.htm#interfejs_uzytkownika", "11"],
  ["Menu bar", "source/menu.htm", "11"],
  ["Toolbar", "source/pasek_narzedzi.htm", "11"],
  ["STL program editor", "source/edytor_stl.htm", "1",
   ["STL editor", "source/edytor_stl.htm#edytor_stl", "11"],
   ["STL Compilation", "source/edytor_stl.htm#kompilacja_stl", "11"]
  ],
  ["LAD program editor", "source/edytor_lad.html", "1",
   ["New program", "source/edytor_lad.html#nowy_program_lad", "11"],
   ["Saving a program", "source/edytor_lad.html#zapis_programu", "11"],
   ["Opening an existing program", "source/edytor_lad.html#otwarcie_istniejacego_programu", "11"],
   ["Program edition", "source/edytor_lad.html#edycja_programu", "11"],
   ["Drawing a connection diagram", "source/edytor_lad.html#rysowanie_schematu", "11"],
   ["Inserting an input object", "source/edytor_lad.html#wstawianie_elementu_wejsciowego", "11"],
   ["Inserting an output object", "source/edytor_lad.html#wstawianie_elementu_wyjsciowego", "11"],
   ["Deleting an object", "source/edytor_lad.html#usuwanie_elementu", "11"],
   ["Inserting a connection", "source/edytor_lad.html#wstawianie_polaczenia", "11"],
   ["Area Edition", "source/edytor_lad.html#edycja_obszaru", "11"],
   ["Edition of an object", "source/edytor_lad.html#edycja_elementu", "11"],
   ["Object configuration", "source/edytor_lad.html#ustawienia_styku", "11"],
   ["Object configuration for Q output and M Marker", "source/edytor_lad.html#ustawienia_styku_qm", "11"],
   ["Object configuration for Timer output", "source/edytor_lad.html#ustawienia_styku_t", "11"],
   ["Object configuration for Counter output", "source/edytor_lad.html#ustawienia_styku_c", "11"],
   ["Changing the input type", "source/edytor_lad.html#zmiana_rodzaju_wejscia", "11"],
   ["Changing the output type", "source/edytor_lad.html#zmiana_rodzaju_wyjscia", "11"],
   ["Sample program", "source/edytor_lad.html#program_w_lad", "11"]
  ],
  ["Settings", "source/ustawienia.htm", "1",
   ["Types of settings", "source/ustawienia.htm#rodzaje_ustawien", "11"],
   ["Timer settings", "source/ustawienia.htm#ustawienia_timerow", "11"],
   ["Clock settings", "source/ustawienia.htm#ustawienia_zegarow", "11"],
   ["Counter settings", "source/ustawienia.htm#ustawienia_licznikow", "11"],
   ["Comparator settings", "source/ustawienia.htm#ustawienia_komparatorow", "11"],
   ["Remanence", "source/ustawienia.htm#remanencja", "11"],
   ["Input delays", "source/ustawienia.htm#opoznienie_wejsc", "11"]
  ],
  ["Preview of variables", "source/podglad.htm", "11"],
  ["LAD ladder view", "source/podglad_drabinki.html", "11"],
  ["Password", "source/haslo.htm", "1",
   ["Password entering", "source/haslo.htm#wprowadzanie_hasla", "11"],
   ["Changing the password", "source/haslo.htm#zmiana_hasla", "11"]
  ],
  ["Real-time clock (RTC)", "source/zegar_rtc.html", "11"],
  ["Source code", "source/kod_zrodlowy.html", "11"],
  ["Keyboard shortcuts", "source/skroty_klaw.htm", "11"]
 ],
 ["Reference materials", "source/materialy.htm", "1"],
 ["Specifications", "source/dane_techniczne.html", "11"],
 ["Technical assistance", "source/wsparcie.htm", "11"],
 ["Glossary", "source/slownik.html", "21"]
];


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;
}


