
    var current;
    
    activateMenu = function(menu) 
    {
        /* currentStyle restricts the Javascript to IE only */        
    	if (document.getElementById(menu)) 
        {
            var navroot = document.getElementById(menu);

            /* Get all the list items within the menu */
            var lis=navroot.getElementsByTagName("LI");
            
            for (i=0; i<lis.length; i++) {
    
               /* If the LI has another menu level */
                if(lis[i].childNodes.length > 2)
                {
                	// Find elements
                	var currentLi = lis[i];
                	var currentUl = currentLi.childNodes[2];
                	
                	// Put the cursor to pointer
                    currentUl.style.display	= currentUl.id == 'active' ? 'block' : 'none';
                    
                	currentLi.firstChild.style.cursor	= 'pointer';
                    currentLi.firstChild.currentUl 	 	= currentUl;
                 	currentLi.firstChild.onmousedown	= function() 
                 	{
                       if (current && (current != this.currentUl))
                       {
                       	   	current.style.display = 'none';
                       }
                 	   this.currentUl.style.display = (this.currentUl.style.display == 'none') ? 'block' : 'none';

                       current = this.currentUl;
                    }
                }
            }
        }
    }
    
    
	window.onload = function()
	{
	//	activateMenu('menu');
	}
