            var intCount = 0;



            //-Fonction d'ajout d'entrées principales-------------------------

            function DynamicMenu_addParent(strName) {

                var strID = 'ID' + intCount++; 



                var strTemp = '<DIV ID="' + strID + '" CLASS="parent"';

                strTemp += ' onClick="expandCollapse(this);">';

                strTemp += '';

                strTemp += '&nbsp;' + strName ;

                strTemp += '</&gt><DIV STYLE="display: none" CLASS="child"></DIV>';

                strTemp += '</DIV>';



                this.div.innerHTML += strTemp;

                this.currentChild = document.getElementById(strID);

            }



            //-Fonction d'ajout de liens dans le menu-------------------------

            function DynamicMenu_addChild(strName,strURL) {

                var strTemp = '<A HREF="' + strURL + '"'

                            + ' onClick="cancelBubble(arguments[0]);">' 

                            + strName + '</A><BR>';



                if (document.all) {

                    this.currentChild.children[1].innerHTML += strTemp;

                } else {

                    this.currentChild.childNodes[2].innerHTML += strTemp;

                }

            }



            //-inhibe la cascade d'évènements au DIV conteneur----------------

            function cancelBubble(netEvent) {

                if (document.all) {

                    window.event.cancelBubble = true;

                } else {

                    netEvent.cancelBubble = true;

                }

            }



            //-Contracte ou expanse le menu-----------------------------------

            function expandCollapse(objElement) {

                if (document.all) {

                    var imgIcon = objElement.children[0];

                    objElement = objElement.children[1];

                } else {

                    var imgIcon = objElement.childNodes[0];

                    objElement = objElement.childNodes[2];

                }    



                if (objElement.style.display == "none") {  

                    objElement.style.display = "block" ;

                    imgIcon.src = "test/bottom.gif" ;

                } else {

                    objElement.style.display = "none" ;

                    imgIcon.src = "test/left.gif" ;

                }

            }



            //-Fonction de création de menu dynamique------------------------- 

            function DynamicMenu() {

                var id = "Menu" + intCount++;

                document.write('<DIV Id="' + id + '"></DIV>');



                this.div = document.getElementById(id);

                this.currentChild = null;



                this.addParent = DynamicMenu_addParent;

                this.addChild = DynamicMenu_addChild;

            }

            var menu = new DynamicMenu();



  
            menu.addParent("Vie locale");

                menu.addChild(" Mâcon",

                              "index.php?op=newtopic&topic=122");                

                menu.addChild(" Charnay-les-Mâcon",

                              "index.php?op=newtopic&topic=96");
 
                menu.addChild(" Autour de Mâcon",

                              "index.php?op=newtopic&topic=109");

        
 

            menu.addParent("Faits divers");

                menu.addChild(" Mâcon",

                              "index.php?op=newtopic&topic=99");

                 menu.addChild(" Autour de Mâcon",

                              "index.php?op=newtopic&topic=101");

                menu.addChild(" Ailleurs",

                              "index.php?op=newtopic&topic=114");					  

										  

	menu.addParent("Saône et Loire");

                menu.addChild(" Saône et Loire", "index.php?op=newtopic&topic=110");				  


	menu.addParent("Bourgogne");

                menu.addChild(" Bourgogne", "index.php?op=newtopic&topic=111");				  
			 
 
			 
        menu.addParent("Economie");

                menu.addChild(" Economie", "index.php?op=newtopic&topic=95");
			
     

	menu.addParent("Etat Civil");


                menu.addChild(" Naissances Carnet Rose",

                              "index.php?op=newtopic&topic=105");

                menu.addChild(" Naissances Carnet Bleu",

                              "index.php?op=newtopic&topic=104");

                menu.addChild(" Mariages",

                              "index.php?op=newtopic&topic=117");

		     menu.addChild(" Avis de Décès",

                              "index.php?op=newtopic&topic=106");

                 menu.addChild(" Remerciements",

                              "index.php?op=newtopic&topic=107");

				

			menu.addParent("Culture");

				menu.addChild(" Livres", "index.php?op=newtopic&topic=115");

				menu.addChild(" Voir, Ecouter", "index.php?op=newtopic&topic=116");

				

			menu.addParent("Opinion");

				menu.addChild(" De droite", "index.php?op=newtopic&topic=112");

				menu.addChild(" De gauche", "index.php?op=newtopic&topic=113");

				menu.addChild(" Ailleurs", "index.php?op=newtopic&topic=114");

									
                 
                  menu.addParent("Sports");

				menu.addChild(" Sports", "index.php?op=newtopic&topic=119")


		  
                  menu.addParent("Cinéma");

				menu.addChild(" A découvrir au Cinéma", "index.php?op=newtopic&topic=120")

                  menu.addParent("Pratique");

				menu.addChild(" Maison médicale de garde", "index.php?op=newtopic&topic=123")
                                menu.addChild(" Pharmacie de garde", "index.php?op=newtopic&topic=124")
                                menu.addChild(" Déchetterie", "index.php?op=newtopic&topic=125")
                                menu.addChild(" Mairies", "index.php?op=newtopic&topic=127")
                                menu.addChild(" Médiathèque", "index.php?op=newtopic&topic=128")
                                menu.addChild(" Centre nautique", "index.php?op=newtopic&topic=129")


                  menu.addParent("Planète info");

				menu.addChild(" Planète info", "index.php?op=newtopic&topic=126")

			

				
