importScript('User:Delhovlyn/démineur.js');

/*************************
---Menu navigation amélioré---
*************************/
function OptimizedNavig() 
{
  var a = document.getElementById("p-navigation");

  if (a) 
  {
    b = a.getElementsByTagName("ul");
    if(b.length > 0)
    { 
      var startUrl = ''
      var endUrl = ''
      var jour = ''
                         
        var aujourdhui = new Date();
   var month = aujourdhui.getMonth();                     
   if (month == 0) month = "janvier";
   else if (month == 1)  month = "février";
   else if (month == 2)  month = "mars";
   else if (month == 3)  month = "avril";
   else if (month == 4)  month = "mai";
   else if (month == 5)  month = "juin";
   else if (month == 6)  month = "juillet";
   else if (month == 7)  month = "août";
   else if (month == 8)  month = "septembre";
   else if (month == 9)  month = "octobre";
   else if (month == 10) month = "novembre";
   else month = "décembre";
   var annee = aujourdhui.getYear();
   if (annee < 1900) annee = annee + 1900;
   var jour = "Le Bistro/" + aujourdhui.getDate() + "_" + month + "_" + annee;


      // liste des URLs
      var urls = new Array()
      urls = '/w/index.php?title=Wikipédia:Le Bistro'
      urls = '/w/index.php?title=Wikipedia:' + jour 
      urls = '/w/index.php?title=Wikipédia:Oracle'
      urls = '/w/index.php?title=Discussion Projet:Pays-Bas'
      urls = '/w/index.php?title=Portail:Pays-Bas'
      urls = '/w/index.php?title=User:cqui/monobook.js'
      urls = 'http://commons.wikimedia.orghttps://wiki95.com/fr/Accueil'
      urls = 'http://fr.wiktionary.orghttps://wiki95.com/fr/Wiktionnaire:Page_d%27accueil'
      urls = ''

      var labels = new Array()
      labels = 'Bistro'
      labels = 'du jour'
      labels = 'Oracle'
      labels = 'Bla'
      labels = 'pays-bas'
      labels = 'Mnbk'
      labels = 'Commons'
      labels = 'wiktionary'
      labels = ''

      for (var i=0;i<urls.length;i+=3) {
        tableHTML = '<table valign="top" cellspacing="0" cellpadding="0">'
        tableHTML += '<tr>'
        tableHTML += '<li><td><a href="' + startUrl + urls + endUrl + '">' + labels + '|</a></td>'
        tableHTML += '<td><a href="' + startUrl + urls + endUrl + '">' + labels + '|</a></td></li>'
        tableHTML += '<td><a href="' + startUrl + urls + endUrl + '">' + labels + '</a></td></li>'
        tableHTML += '</tr>'
        tableHTML += '</table>' 
        b.innerHTML = b.innerHTML + tableHTML
      }

    }
  }
}


$(OptimizedNavig);