function More(aContainerID, moreContainerID) {

    var THIS = this;

    this.mouseOnMore = false;

    // Хранилище сцылок
    this.aCont = $("#" + aContainerID);
    if(!this.aCont) {
        return ;
    }

    // Сюда засунем все содержимое доп. сцылок
    this.moreCont = $("#" + moreContainerID);
    if(!this.moreCont) {
        return ;
    }

    // Есть ли в хранилище ссылок что-нибудь
    if(this.aCont.children().length > 0) {

        if(this.aCont.children("strong").length > 0) {
            // Ссылка в меню для раскрытия доп. ссылок
            this.moreLink = $("<strong class=\"heading\">" + this.aCont.children("strong").html() + "&nbsp;<img src=\"/i/0.gif\" align=\"absmiddle\" width=\"7\" height=\"4\" /></strong>");
            // Ссылка внутри дива с доп. ссылками
            this.moreLinkInside = $("<strong class=\"heading\">" + this.aCont.children("strong").html() + "&nbsp;<img src=\"/i/0.gif\" align=\"absmiddle\" width=\"7\" height=\"4\" /></strong><br/>");

            // Показываем ссылку в меню
            this.moreCont.append(this.moreLink);
            this.moreCont.show();

            // Дивок с доп. ссылками
            this.more = $("<div class=\"more\"><div>");
            this.more.append(this.moreLinkInside);
        } else {
            // Ссылка в меню для раскрытия доп. ссылок
            this.moreLink = $("<a class=\"flink heading\" href=\"\">Ещё<img src=\"/i/0.gif\" width=\"7\" height=\"4\" /></a>");
            // Ссылка внутри дива с доп. ссылками
            this.moreLinkInside = $("<a class=\"flink heading\" href=\"\">Ещё<img src=\"/i/0.gif\" width=\"7\" height=\"4\" /></a><br/>");

            // Показываем ссылку в меню
            this.moreCont.append(this.moreLink);
            this.moreCont.show();

            // Дивок с доп. ссылками
            this.more = $("<div class=\"more\"><div>");
            this.more.append(this.moreLinkInside);
        }

        this.moreCont.append(this.more);

        this.aCont.children("a").each(
            function (key, value) {
                var ml = $("<a href=\"" + value + "\" class=\"flink\">" + $(this).html() + "</a><br/>");
                THIS.more.append(ml);

                ml.click(function() {THIS._itemClick(ml); return false; });
            });

        this.moreLink.click(function() { THIS.more.show(); return false; });
        this.moreLinkInside.click(function() { THIS.more.hide(); return false; });

        this.more.mouseover( function() { THIS.mouseOnMore = true; $(this).show(); } );
        this.more.mouseout( function() {
            THIS.mouseOnMore = false;
            window.setTimeout(function() { if(THIS.mouseOnMore == false) { $(THIS.more).hide(); } }, 2000);
        });

    }

}

More.prototype = {

    _itemClick: function(link) {
        var THIS = this;

        sectionClick(link);

        this.moreLink.remove();
        this.moreLink = $("<strong class=\"heading\">" + link.html() + "&nbsp;<img src=\"/i/0.gif\" align=\"absmiddle\" width=\"7\" height=\"4\" /></strong>");
        this.moreLink.click(function() { THIS.more.show(); return false; });
        this.moreCont.append(this.moreLink);

        this.more.hide();
    },

    showMore: function(link) {
        var THIS = this;

        this.more.empty();

        this.moreLink.remove();
        this.moreLink = $("<a class=\"flink heading\" href=\"\">Ещё<img src=\"/i/0.gif\" width=\"7\" height=\"4\" /></a><br/>");
        this.moreLink.click(function() { THIS.more.show(); return false; });
        this.moreCont.append(this.moreLink);

        //$(".more .mr").click(function() {THIS._itemClick($(this)); return false; });

        this.moreLinkInside = $("<a class=\"flink heading\" href=\"\">Ещё<img src=\"/i/0.gif\" width=\"7\" height=\"4\" /></a><br/>");
        this.more.append(this.moreLinkInside);

        this.aCont.children("a").each(
            function (key, value) {

                if(link.text() == $(this).html()) {
                    var ml = $("<strong href=\"" + value + "\" class=\"flink\">" + $(this).html() + "</strong><br/>");
                    THIS.more.append(ml);
                } else {
                    var ml = $("<a href=\"" + value + "\" class=\"flink\">" + $(this).html() + "</a><br/>");
                    THIS.more.append(ml);

                    ml.click(function() {THIS._itemClick(ml); return false; });
                }

                
                
            });

    }

}
