function AfficherMsg(pStr)
{
   document.write("<h1>");
   var str = 'Bienvenue! Welcome! Knitdishclothcorner 5 ans d&#233;j&#224; !';
   document.write(str.fontcolor("white"));
   document.write("</h1>");
}

function afficherOnglets(pNiveau)
{
   document.write("<ul>");
   if (pNiveau == 0)
   {
      document.write("<li  class='active'><a id='page1' href='index.html'>Accueil</a></li>");
      document.write("<li><a id='page2' href='patrons/petitPanier1.html'>D&#233;butant</a></li>");
      document.write("<li><a id='page3' href='patrons/damierTroue.html'>Initi&#233;</a></li>");
      document.write("<li><a id='page4' href='patrons/tressesAjourees.html'>Expert</a></li>");
      document.write("<li><a id='page5' href='livredor/commentaires.html'>Commentaires</a></li>");   
   }

   if (pNiveau == 1)
   {
      document.write("<li><a id='page1' href='../../index.html'>Accueil</a></li>");
      document.write("<li class='active'><a id='page2' href='../petitPanier1.html'>D&#233;butant</a></li>");
      document.write("<li><a id='page3' href='../damierTroue.html'>Initi&#233;</a></li>");
      document.write("<li><a id='page4' href='../tressesAjourees.html'>Expert</a></li>");
      document.write("<li><a id='page5' href='../../livredor/commentaires.html'>Commentaires</a></li>");     
   }
   
   if (pNiveau == 2)
   {
      document.write("<li><a id='page1' href='../../index.html'>Accueil</a></li>");
      document.write("<li><a id='page2' href='../petitPanier1.html'>D&#233;butant</a></li>");
      document.write("<li class='active'><a id='page3' href='../damierTroue.html'>Initi&#233;</a></li>");
      document.write("<li><a id='page4' href='../tressesAjourees.html'>Expert</a></li>");
      document.write("<li><a id='page5' href='../../livredor/commentaires.html'>Commentaires</a></li>");     
   }
   
   if (pNiveau == 3)
   {
      document.write("<li><a id='page1' href='../../index.html'>Accueil</a></li>");
      document.write("<li><a id='page2' href='../petitPanier1.html'>D&#233;butant</a></li>");
      document.write("<li><a id='page3' href='../damierTroue.html'>Initi&#233;</a></li>");
      document.write("<li class='active'><a id='page4' href='../tressesAjourees.html'>Expert</a></li>");
      document.write("<li><a id='page5' href='../../livredor/commentaires.html'>Commentaires</a></li>");    
   }
   
   if (pNiveau == 4)
   {
      document.write("<li><a id='page1' href='../index.html'>Accueil</a></li>");
      document.write("<li><a id='page2' href='../patrons/petitPanier1.html'>D&#233;butant</a></li>");
      document.write("<li><a id='page3' href='../patrons/damierTroue.html'>Initi&#233;</a></li>");
      document.write("<li><a id='page4' href='../patrons/tressesAjourees.html'>Expert</a></li>");
      document.write("<li class='active'><a id='page5' href='commentaires.html'>Commentaires</a></li>");   
   } 
   document.write("</ul>");
}

function afficherTitreMenu(pTitre)
{
   document.write("<h3>");
   var str = pTitre;
   document.write(str.fontcolor("white"));
   document.write("</h3>");
}

function afficherMenus(pNiveau)
{
   document.write("<ul>");
   if (pNiveau == 0)
   {     
      document.write("<li><strong><a href='patrons/cloture.html'>Cl&ocirc;ture</a></strong></li>");
      document.write("<li><strong><a href='patrons/arrosoir.html'>Arrosoir</a></strong></li>");
   } 

   if (pNiveau == 1)
   {
      document.write("<li><strong><a href='../petitPanier1.html'>  Petit panier 1         </a></strong></li>");
      document.write("<li><strong><a href='../petitPanier2.html'>  Petit panier 2         </a></strong></li>");
      document.write("<li><strong><a href='../escaliers.html'>     Escaliers              </a></strong></li>");
      document.write("<li><strong><a href='../losanges.html'>      Losanges               </a></strong></li>");
      document.write("<li><strong><a href='../triangles.html'>     Triangles              </a></strong></li>");
      document.write("<li><strong><a href='../moulin.html'>        Moulin                 </a></strong></li>");
      document.write("<li><strong><a href='../diagonales.html'>    Diagonales             </a></strong></li>");
      document.write("<li><strong><a href='../dunes.html'>         Dunes de sable         </a></strong></li>");
      document.write("<li><strong><a href='../carre.html'>         Ma premiere lavette    </a></strong></li>");
      document.write("<li><strong><a href='../cloture.html'>       Cl&ocirc;ture          </a></strong></li>");
      document.write("<li><strong><a href='../arrosoir.html'>      Arrosoir               </a></strong></li>");
   }
   
   if (pNiveau == 2)
   {
      document.write("<li><strong><a href='../damierTroue.html'>   Damier Trou&#233;      </a></strong></li>");
      document.write("<li><strong><a href='../perles.html'>        Perles                 </a></strong></li>");
      document.write("<li><strong><a href='../chien.html'>         Chien                  </a></strong></li>");
      document.write("<li><strong><a href='../fiesta.html'>        Fiesta                 </a></strong></li>");
      document.write("<li><strong><a href='../cerfsVolants.html'>  Cerfs-Volants          </a></strong></li>");
      document.write("<li><strong><a href='../tressesCoupees.html'>Tresses Coup&#233;es   </a></strong></li>");
      document.write("<li><strong><a href='../torsades.html'>      Torsades               </a></strong></li>");
      document.write("<li><strong><a href='../babylone.html'>      Babylone               </a></strong></li>");
      document.write("<li><strong><a href='../chandelles.html'>    Chandelles             </a></strong></li>");
      document.write("<li><strong><a href='../victoria.html'>      Victoria               </a></strong></li>");
      document.write("<li><strong><a href='../grand_p.html'>       Grand-papa             </a></strong></li>");
      document.write("<li><strong><a href='../eponge.html'>        &#201;ponge            </a></strong></li>");
      document.write("<li><strong><a href='../parallelogrammes.html'>Parall&#233;logrammes</a></strong></li>");
   }
   
   if (pNiveau == 3)
   {
      document.write("<li><strong><a href='../tressesAjourees.html'>Tresses ajour&#233;es </a></strong></li>");
      document.write("<li><strong><a href='../maisons.html'>        Maisons               </a></strong></li>");
      document.write("<li><strong><a href='../nids.html'>           Nids                  </a></strong></li>");
      document.write("<li><strong><a href='../3D.html'>             3D                    </a></strong></li>");
      document.write("<li><strong><a href='../muguets.html'>        Muguets               </a></strong></li>");
      document.write("<li><strong><a href='../serpents.html'>       Serpents              </a></strong></li>");
      document.write("<li><strong><a href='../automne.html'>        Automne               </a></strong></li>");
      document.write("<li><strong><a href='../grand_m.html'>        Grand-maman           </a></strong></li>");
      document.write("<li><strong><a href='../vignes.html'>         Vignes                </a></strong></li>");
   }
   
   if (pNiveau == 7)
   {
      document.write("<li><strong><a href='http://www.yarnover.net/patterns/doilies/dillmont/b66dillmont1.html'>Doilies 1</a></strong></li>");
   } 
   document.write("</ul>");
} 

function returnTitreMenu(pNiveau)
{
   var str;
   if (pNiveau == 1)
   {
      str = 'Patrons pour d&#233;butant';
   }
   if (pNiveau == 2)
   {
      str = 'Patrons pour initi&#233;';
   }
   if (pNiveau == 3)
   {
      str= 'Patrons pour expert';
   }
   return str;
}

function returnCouleur(pNiveau)
{
   var str;
   if (pNiveau == 1)
   {
      str = 'aqua';
   }
   if (pNiveau == 2)
   {
      str = 'rose';
   }
   if (pNiveau == 3)
   {
      str = 'jaune';
   }
   return str;
}