/**
 * @author Mirosław Bogacz
 * @version 0.1 2009-08-26 Beta
 */
/**
 * @param {Object} aElement id menu
 */
function DropMenu(aElement){
    var menuElement = aElement;
    DropMenuFindElement(aElement);
}

/**
 * @param {Object} aElement id menu
 */
function DropMenuFindElement(aElement){
    for (var i = 0; i <= aElement.childNodes.length - 1; i++) {
        if (aElement.childNodes[i].tagName != undefined) {
        
            if (aElement.childNodes[i].parentNode.tagName == "LI") {
                if (aElement.childNodes[i].tagName == "A") {
                }
                else {
                    aElement.childNodes[i].parentNode.onmouseover = function(){
                        this.getElementsByTagName("UL")[0].style.display = "block";
                    }
                    
                    aElement.childNodes[i].parentNode.onmouseout = function(){
                        this.getElementsByTagName("UL")[0].style.display = "none";
                    }
                    
                    aElement.childNodes[i].style.display = "none";
                }
            }
            else {
                if (aElement.childNodes[i].tagName != "A") {
                }
            }
            
            DropMenuFindElement(aElement.childNodes[i]);
        }
    }
}

