// debut menu deroulant
            var intCount = 0;

            //-Fonction d'ajout d'entrées principales-------------------------

            function DynamicMenu_addParent(strName) {
                var strID = 'P_' + strName; 
                var strTemp = '<DIV ID="' + strID + '" CLASS="boxText"';
                strTemp += ' onClick="expandCollapse(this);">';
             //-image de base  => -------------------------
                strTemp += '<IMG SRC="arrow_right.gif">';
                strTemp += '&nbsp;' + strName;
                strTemp += '<DIV STYLE="display: none" CLASS="boxText"></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,strCIBLE) {
                var strTemp = '<A HREF="' + strURL + '"' + strCIBLE
                            + ' onClick="cancelBubble(arguments[0]);">' 
                            + '&nbsp;' + 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) {

				var strId = objElement.id;
				if (intCount == 0) {
	                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" ;
            //-image detail  VV -------------------------
	                    imgIcon.src = "arrow_down.gif" ;
	                } else {
	                    objElement.style.display = "none" ;
            //-image de base  => -------------------------
	                    imgIcon.src = "arrow_right.gif" ;
	                }
				}

				if (strId.substring(0,1) == 'S') {
					intCount = 1;
				}

				if (strId.substring(0,1) == 'P' && intCount == 1) {
					intCount = 0;
				}
            }

            //-Fonction de création de menu dynamique------------------------- 
            function DynamicMenu(strName) {
                //var id = "Menu" + intCount++;
                var id = strName;
                document.write('<DIV Id="' + id + '"></DIV>');

                this.div = document.getElementById(id);
                this.currentChild = null;

                this.addParent = DynamicMenu_addParent;
                this.addChild = DynamicMenu_addChild;
            }
// fin menu deroulant
