
function displayCredits()
{
    clearClick = false;
    if (isIE)
    {
        if ($('#content').css('display') == 'none')
        {
            $('#home-text').stop(true, true).animate({'opacity':'1'}, 600, function(){$('#home-text').css('display', 'none');});
            $('#news').stop(true, true).animate({'margin-top':$(window).height()}, 600, function()
            {
                $('#news').css('display', 'none');
                $('#content').css('display', 'block');
                initCredits();
            });
        }
        else
        {
            $('#content').animate({'margin-left':$(window).width()}, 600, function()
            {
                initCredits();
            });
        }
    }
    else
    {
        if ($('#content').css('display') == 'none')
        {
            $('#content').stop(true, true).animate({'opacity':'0'}, 0,  function()
            {
                $('#home-text').stop(true, true).animate({'opacity':'1'}, 600, function(){$('#home-text').css('display', 'none');});
                $('#news').stop(true, true).animate({'margin-top':$(window).height()}, 600, function()
                {
                    $('#news').css('display', 'none');
                    $('#content').css('display', 'block');
                    initCredits();
                });
            });
        }
        else
        {
            $('#content').animate({'margin-left':$(window).width(), 'opacity':'0'}, 600, function()
            {
                initCredits();
            });
        }
    }
}

function initCredits()
{
    initPageType1();
    $('#content-scroll-content').html('');

    $('#content-loader').css('display', 'block');
    $.post('includes/php/credits.php', {action:'display-credits'}, function(data)
    {
        $('#content-loader').css('display', 'none');
        $('#content-fix').css('display', 'none');
        $('#content-scroll').css('display', 'block');

        $('#content-scroll-content').html(data);

        RPContent();

        if (isIE) clearClick = true;
        else $('#content').stop(true, true).animate({'opacity':'1'}, 300, function(){clearClick = true;});
    });
}
