GenerateList = function(rootMenuItem, listContainer, listBottom) {
    var Instance = this;
    this.ddRoot = $(rootMenuItem);
    this.ddListContainer = $(listContainer);
    this.ddListBottom = $(listBottom);
    this.ddHovered = false;
    this.ddVisible = false;

    this.OpenDropDown = function() {
        //alert(Instance.ddHovered);
        if (!Instance.ddVisible) {
            var pos = Instance.ddRoot.position();
            this.ddListContainer.width(210);
            this.ddListBottom.height(15);
            this.ddListBottom.width(240);
            this.ddListContainer.css('top', pos.top + 20);
            this.ddListContainer.css('left', pos.left - 10);
            this.ddListBottom.css('top', pos.top + this.ddListContainer.height() + 32);
            this.ddListBottom.css('left', pos.left - 10);

            this.ddListContainer.fadeIn(200);
            this.ddListBottom.fadeIn(200);

            Instance.ddVisible = true;
        }
    };

    this.CloseDropDown = function() {
        setTimeout(function() {
            if (!Instance.ddHovered) {
                Instance.ddListContainer.fadeOut(200);
                Instance.ddListBottom.fadeOut(200);
                Instance.ddVisible = false;
            }
        }, 200);
    };

    // Init
    this.CloseDropDown();
    this.ddRoot.hover(function() { Instance.ddHovered = true; Instance.OpenDropDown(); }, function() { Instance.CloseDropDown(); Instance.ddHovered = false; });
    this.ddListContainer.hover(function() { Instance.ddHovered = true; }, function() { Instance.CloseDropDown(); Instance.ddHovered = false; });
};