//todo: merge these 2 methods to one method, they have the same behavior!!!

function getMoreArticles(url, page)
{

    if (page != null)
    {
        url += '&page=' + page;
    }

    showLayer('processUpdateMoreArticles');

    new Ajax.Updater({success:'moreArticlesDiv'}, url,
        {
            onComplete:function()
            {
                Element.hide('moreArticlesDiv');
                hideLayer('processUpdateMoreArticles');
                new Effect.Appear('moreArticlesDiv', { duration: 0.1 } )
            },
            method:'get',
            asynchronous:true,
            evalScripts:true
        }
    );
}

function getArticles(url, page)
{
    if (page != null)
    {
        url += '&page=' + page;
    }

    showLayer('processUpdateArticleList');

    new Ajax.Updater({success:'articleListDiv'}, url,
        {
            onComplete:function()
            {
                //Element.hide('articleListDiv');
                hideLayer('processUpdateArticleList');
                new Effect.Appear('articleListDiv', { duration: 0 } )
            },
            method:'get',
            asynchronous:true,
            evalScripts:true
        }
    );
}
