function more_setup(filter) {
    $('.more-link').live('click', function(e) {
        e.preventDefault();
        var page = $(this).attr("id");
        var url = "/items/";
        if (filter) {
            url = url + filter;
        }
        $('.more-container').html('<img src="/static/img/ajax-loader-black.gif" />');        
        $.ajax({
            type: "GET",
            url: url,
            data: "page=" + (parseInt(page) + 1),
            success: function(html) {
                $("#more-items-" + page).html(html);
                $("#more-container-" + page).remove();
            },
            error: function(html) {
                alert("Something went horribly wrong on the server.");
            }
        });        
    });
}
