2 "./index.html" : "Home",
3 // disable for now because Nokia QA does not want competition
4 //"https://garage.maemo.org/frs/?group_id=2194" : "Download",
5 "./screenshots.html" : "Screenshots",
6 "https://garage.maemo.org/forum/forum.php?forum_id=7093" : "Support & Help"
9 function generate_anchor(value, index, array)
11 var navigation = document.getElementById('navigation');
12 var anchorElement = document.createElement('a');
13 var captionElement = document.createTextNode(value);
14 var spacerElement = document.createElement('span');
16 anchorElement.setAttribute("href", index);
17 spacerElement.setAttribute("class", "spacer");
18 anchorElement.appendChild(captionElement);
19 navigation.appendChild(anchorElement);
20 navigation.appendChild(spacerElement);
23 function build_navigation_bar()
25 for (var key in items) {
26 generate_anchor(items[key], key, items);
30 if (window.addEventListener) {
31 window.addEventListener('load', build_navigation_bar, false);
32 } else if (window.attachEvent) {
33 window.attachEvent('onload', build_navigation_bar);