            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(" Au Creusot",

                              "index.php?op=newtopic&topic=26");

		    menu.addChild(" Autour du Creusot",

                              "index.php?op=newtopic&topic=51");

            menu.addParent("Foire du Creusot");

                menu.addChild(" Le journal de la Foire",

                              "index.php?op=newtopic&topic=95");  


            menu.addParent("Faits divers");

                menu.addChild(" Au Creusot",

                              "index.php?op=newtopic&topic=27");

				menu.addChild(" Autour du Creusot",

                              "index.php?op=newtopic&topic=54");

                menu.addChild(" En Saône et Loire",

                              "index.php?op=newtopic&topic=77");

                menu.addChild(" En Bourgogne",

                              "index.php?op=newtopic&topic=88");



				

			menu.addParent("Pratique");

                menu.addChild(" Médecin de garde",

                              "index.php?op=newtopic&topic=72");

				menu.addChild(" Pharmacie de garde",

                              "index.php?op=newtopic&topic=73");

				menu.addChild(" A l'agenda",

                              "index.php?op=newtopic&topic=74");

				menu.addChild(" Déchetterie",

                              "index.php?op=newtopic&topic=75");

							  

										  

			menu.addParent("Economie");

                menu.addChild(" Economie",

                              "index.php?op=newtopic&topic=53");				  

							  

			menu.addParent("Etat Civil");

                menu.addChild(" Naissances",

                              "naissance.php");

				menu.addChild(" Mariages",

                              "index.php?op=newtopic&topic=30");

		     menu.addChild(" Décès",

                              "index.php?op=newtopic&topic=31");

                 menu.addChild(" Remerciements",

                              "index.php?op=newtopic&topic=80");







				

            menu.addParent("Sports");

				menu.addChild(" Auto Moto", "index.php?op=newtopic&topic=90");

                        menu.addChild(" Aviron", "index.php?op=newtopic&topic=85");

                        menu.addChild(" Basket", "index.php?op=newtopic&topic=32");

                        menu.addChild(" Cyclisme", "index.php?op=newtopic&topic=34");

                        menu.addChild(" Divers", "index.php?op=newtopic&topic=36");
                        menu.addChild(" Escrime", "index.php?op=newtopic&topic=93");

                        menu.addChild(" Football", "index.php?op=newtopic&topic=28");                        

                        menu.addChild(" Handball", "index.php?op=newtopic&topic=69");                        

                        menu.addChild(" Judo", "index.php?op=newtopic&topic=84");

			menu.addChild(" Natation", "index.php?op=newtopic&topic=35");

			menu.addChild(" Rugby", "index.php?op=newtopic&topic=83");

                        menu.addChild(" Tennis", "index.php?op=newtopic&topic=86");
                        menu.addChild(" Tennis de Table", "index.php?op=newtopic&topic=92");

                        menu.addChild(" Volley", "index.php?op=newtopic&topic=33");

					

				

				

			menu.addParent("Lycée");

				menu.addChild(" Lycée", "index.php?op=newtopic&topic=37");

							

			menu.addParent("Collèges");

                menu.addChild(" Centre", "index.php?op=newtopic&topic=39");

				menu.addChild(" Croix-Menée", "index.php?op=newtopic&topic=40");

				menu.addChild(" Epontots", "index.php?op=newtopic&topic=41");

				menu.addChild(" St-Gilbert", "index.php?op=newtopic&topic=42");

							  

			menu.addParent("Enseignement supérieur");

				menu.addChild(" Condorcet", "index.php?op=newtopic&topic=43");

				menu.addChild(" IUT", "index.php?op=newtopic&topic=44");

				

			menu.addParent("Culture");

				menu.addChild(" LARC", "index.php?op=newtopic&topic=47");

				menu.addChild(" L'Embarcadère", "index.php?op=newtopic&topic=63");

				menu.addChild(" Cinéma Le Morvan", "index.php?op=newtopic&topic=45");

				menu.addChild(" Cinémage", "index.php?op=newtopic&topic=46");

				menu.addChild(" Livres", "index.php?op=newtopic&topic=78");

				

				

			menu.addParent("Opinion");

				menu.addChild(" De droite", "index.php?op=newtopic&topic=49");

				menu.addChild(" De gauche", "index.php?op=newtopic&topic=50");

				menu.addChild(" Ailleurs", "index.php?op=newtopic&topic=55");

				

			menu.addParent("Saône et Loire");

				menu.addChild(" Saône et Loire", "index.php?op=newtopic&topic=56");

								

			menu.addParent("Bourgogne");

				menu.addChild(" Bourgogne", "index.php?op=newtopic&topic=57");

                  

                  menu.addParent("MADE IN BOURGOGNE");

				menu.addChild(" MADE IN BOURGOGNE", "index.php?op=newtopic&topic=87");

		

			menu.addParent("Communauté Creusot Montceau");

				menu.addChild(" C.C.M", "index.php?op=newtopic&topic=58");

				menu.addChild(" Valorisation des déchets", "index.php?op=newtopic&topic=70");

				

			menu.addParent("Le Breuil");

				menu.addChild(" Le Breuil", "index.php?op=newtopic&topic=64");

				

			menu.addParent("Torcy");

				menu.addChild(" Torcy", "index.php?op=newtopic&topic=65");

			

			menu.addParent("Montcenis");

				menu.addChild(" Montcenis", "index.php?op=newtopic&topic=66");

			

			menu.addParent("Marmagne");

				menu.addChild(" Marmagne", "index.php?op=newtopic&topic=67");

				

			menu.addParent("St Sernin du Bois");

				menu.addChild(" St Sernin du Bois", "index.php?op=newtopic&topic=68");	

				

			menu.addParent("Morvan");

				menu.addChild(" Morvan", "index.php?op=newtopic&topic=82");	

			

			menu.addParent("Le journal de la 241P17");

				menu.addChild(" La 241P17", "index.php?op=newtopic&topic=81");

                        menu.addParent("MEDIAS");

				menu.addChild(" NEWS", "index.php?op=newtopic&topic=94");

						

			menu.addParent("W e b T V");

				menu.addChild(" W e b T V", "http://www.dailymotion.com/widget/jukebox?list[]=%2Fcreusot-infos&skin=default");	

			

			menu.addParent("Nous écrire");

				menu.addChild(" Contact", "contact.php");	

				

				
