activateMenu = function(nav) {
    if(document.all && document.getElementById(nav).currentStyle){
        // only MSIE supports document.all
        var navroot = document.getElementById(nav);
        
        // Get all the list items within the menu 
        var lis=navroot.getElementsByTagName("LI");
        for(i=0;i<lis.length;i++){
            // don't want to overwrite any existing mouse over or mouse out evets
            lis[i].oldonmouseover = lis[i].onmouseover;
            lis[i].oldonmouseout = lis[i].onmouseout;

            // If the LI has other menu levels
            var myChildren=lis[i].children;
            for(j=0;j<myChildren.length;j++){
                if(myChildren[j].tagName=="UL"){
                    // assign the function to the LI
                    lis[i].onmouseover=function(evt){
                        // display the inner menu
                        if(this.oldonmouseover){
                            this.oldonmouseover(evt);
                        }
                        this.lastChild.style.display="block";
                    }
                    lis[i].onmouseout=function(evt){
                        if(this.oldonmouseout){
                            this.oldonmouseout(evt);
                        }
                        this.lastChild.style.display="none";
                    }
                }

                /* The following will allow the drop shadow be displayed in IE */
				/*
				if(lis[i].offsetLeft>0)
	            {
		            lis[i].style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/Sites/amfa-mn-wi.org/_site_components/images/emptyButton.png', sizingMethod=image)";
	        		lis[i].style.backgroundImage = "none";
	            }
	            */
	            /* End picture modification */
            }
        }
    }
}
window.onload=function(){
    // pass the function the id of the top level UL
    // remove one, when only using one menu
    activateMenu('dmenu');
}
/**

if the ul class is level1, then apply the filter to each of its li elements and set the background-image to none

if(element.style.scrollbar3dLightColor=='003300')
.parent


**/
