$(document).ready(function(){

    if ($('#news-lift-up').length)
    {
        if (newsCount > 0)
        {
           window.setTimeout("newsScroll(1)", 10000);
        }
    }
        
});

function newsScroll(value)
{
    if (value >= newsCount)
    {
        value = 0;
    }        

    // IE 6
    if (!$.support.opacity)
    {
        $('#news-lift-up div.info').css('visibility','hidden'); 
        $('#news-lift-up h3 a').html(newsArray[value].head);
        $('#news-lift-up .text p:first').html(newsArray[value].content);
        $('#news-lift-up a').attr('href',newsArray[value].url);
        now = value;
        window.setTimeout("showIE6(now)", 1000);                    
    }
    else
    {
        $('#news-lift-up div.info').fadeOut(1500, function(){         
            $('#news-lift-up h3 a').html(newsArray[value].head);
            $('#news-lift-up .text p:first').html(newsArray[value].content);
            $('#news-lift-up a').attr('href',newsArray[value].url);
        });
            
        $('#news-lift-up div.info').fadeIn(1500);
        next = value + 1;
        window.setTimeout("newsScroll(next)", 10000);
    }
}


function showIE6(value)
{
    $('#news-lift-up div.info').css('visibility','visible');
    next = value + 1;
    window.setTimeout("newsScroll(next)", 10000);
}
