function autoScroller(contentDiv, speed)
{
    contentDiv = "#"+contentDiv;
    var scrollSpeed = (speed==null) ? 5 : parseInt(speed);
    var topPosition = null;
    var divHeight = null;

    // double make sure the autoScroller-container has the correct css position and overflow property
    $(contentDiv).parent().css({position:'relative',overflow:'hidden'});

    // set contentDiv style
    $(contentDiv).css({position:'absolute',top:0});
    // get contentDiv height
    contentDivHeight = $(contentDiv).height();
    newsDivHeight = $("#news").height();

    // call periodical
    jQuery(contentDiv).everyTime(100, function(i){
    	
        topPosition = parseInt($(this).css('top'));
        divHeight = contentDivHeight*(-1)+8;
        if (topPosition>divHeight)
        {
            // move scroller upwards
            offset = topPosition-scrollSpeed+"px";
            $(this).css({'top':offset});
            //$('#scroll-up').html(offset);
        }
        else
        {
            // reset to original position
            offset = newsDivHeight+8+"px";
            $(this).css({'top':offset});
            //$('#scroll-up').html(offset);
        }
    });

    $("#news").mouseover(function(){
        scrollSpeed = 0;
    }).mouseout(function(){
        scrollSpeed = 1;
    });

    $('#scroll-down').mousedown(function(){
        scrollSpeed = 12;
    }).mouseup(function(){
        scrollSpeed = 1;
    });
    $('#scroll-up').mousedown(function(){
        scrollSpeed = (-1) * 12;
    }).mouseup(function(){
        scrollSpeed = 1;
    });
}