
function initNews()
{
    clearClick = false;
    $('#news-header-bg').stop(true, true).animate({'opacity':'0.7'}, 0);

    RPNews();

    $('#news').css('margin-top', $(window).height());
    $('#news').css('display', 'block');
    
    $('.news-content-bg').each(function()
    {
        $(this).height($(this).parent().height()+10);
    });
    $('.news-content-bg').stop(true, true).animate({'opacity':'0.7'}, 0);
    $('#news').stop(true, true).animate({'margin-top':$(window).height()-$('#news').height()-50}, 600, function()
    {
        clearClick = true;
        $('#home-text').css({'display':'block', 'opacity':'0'});
        initTexts(1);
        $('#home-text').stop(true, true).animate({'opacity':'1'}, 600);
    });
}

function RPNews()
{
    $('#news').css('margin-left', $(window).width()-$('#news').width()-50);
    $('#news').css('margin-top', $(window).height()-$('#news').height()-50);
    $('#home-text').css('margin-left', 350);
    $('#home-text').css('margin-top', 100);
}
