var scrollid;
var scrollHeight = 150;
startNewsScroll();

jQuery(document).ready(function(){ 
    jQuery('#news-content').parent().css('position', 'relative')
    //jQuery('#news-content').parent().html('<div class="fade"><div></div></div>' + jQuery('#news-content').parent().html())
    //jQuery('#news-content').parent().children('.fade').css( { 'height':scrollHeight+'px', 'width': jQuery('#news-content').width(), 'position': 'absolute', 'top': jQuery('#news-content').offset().top - jQuery('#news-content').parent().offset().top, 'margin': '0 ' + jQuery('#news-content').css('padding-right') + '0 ' + jQuery('#news-content').css('padding-left'), 'background-color': '#fff', 'filter':' alpha( Opacity=100, FinishOpacity=0, Style=1, StartX=0,  FinishX=0, StartY=0, FinishY=10)' } );
    jQuery('#news-content').html( '<div class="scroll">' + jQuery('#news-content').html() + '</div>' );
    jQuery('#news-content').css( { 'height':'0px', 'padding-top': scrollHeight+'px', 'overflow': 'hidden' } );
    jQuery('#news-content .scroll').css( 'padding-bottom', scrollHeight+'px' );
    jQuery('#news-content .scroll').bind('mouseover', function(){ clearInterval(scrollid) } );
    jQuery('#news-content .scroll').bind('mouseout', function(){ startNewsScroll() } );
})

function startNewsScroll(){
    scrollid = setInterval("scrollNews()",25);
}

function scrollNews() {
    jQuery('#news-content').scrollTop( jQuery('#news-content').scrollTop()+1 );
    if ( jQuery('#news-content').scrollTop() == jQuery('#news-content .scroll').height()+scrollHeight )
        jQuery('#news-content').scrollTop(0);
}