function registerParams()
{
    alist.reg_params = {};
    alist.reg_params['popularity_articles_filter'] = 'genders[2]=2&genders[1]=1&genders[8]=8&genders[4]=4&prices[0]=1&prices[1]=1&prices[2]=1&prices[3]=1&sort_by=3&order=0&nb_rows=3';
    alist.reg_params['date_articles_filter'] = 'genders[2]=2&genders[1]=1&genders[8]=8&genders[4]=4&prices[0]=1&prices[1]=1&prices[2]=1&prices[3]=1&sort_by=0&order=3&nb_rows=3';
    alist.reg_params['bio_articles_filter'] = 'genders[2]=2&genders[1]=1&genders[8]=8&genders[4]=4&bio=1&prices[0]=1&prices[1]=1&prices[2]=1&prices[3]=1&sort_by=0&order=0&nb_rows=3';
    alist.reg_params['prize_giving_articles_filter'] = 'prize_giving=1&genders[2]=2&genders[1]=1&genders[8]=8&genders[4]=4&prices[0]=1&prices[1]=1&prices[2]=1&prices[3]=1&sort_by=0&order=0&nb_rows=3';
    alist.reg_params['selection_articles_filter'] = 'selection=true&nb_rows=3';
}

window.addEvent('domready', function () {
    $('popularity_articles_filter').addEvent('click', function (e) {
            manageTabClick(e, this.id, alist.reg_params[this.id]);
        });
    $('date_articles_filter').addEvent('click', function (e) {
            manageTabClick(e, this.id, alist.reg_params[this.id]);
        });
    $('bio_articles_filter').addEvent('click', function (e) {
            manageTabClick(e, this.id, alist.reg_params[this.id]);
        });
    if($('selection_articles_filter')){
        $('selection_articles_filter').addEvent('click', function (e) {
                manageTabClick(e, this.id, alist.reg_params[this.id]);
            });
        if( $('prize_giving_articles_filter') == null)reqArticles('selection_articles_filter',alist.reg_params['selection_articles_filter']);
        }

    if( $('prize_giving_articles_filter') != null)
    {
        // prize_giving is optional
        $('prize_giving_articles_filter').addEvent('click', function (e) {
             manageTabClick(e, this.id, alist.reg_params[this.id]);
           });
        reqArticles('prize_giving_articles_filter',alist.reg_params['prize_giving_articles_filter']);
    }

});

