// news scroll (vertical)
var news_limit = 4;
var news_pos = news_limit;
var news_height = 66;
var autoScrollNewsEnabled = true;
var autoScrollNewsTimer = null;

function scrollNews() {
	if (news_pos > 0) {
		news_pos -= 1;
	} else {
		news_pos = news_limit;
		$("#news").css('top', (news_height*news_limit)+'px');
	}
	$("#debug").html(news_height*news_pos);
	$("#news").animate({
		top: (news_height*news_pos - news_height*news_limit)+'px'
	}, 1500 );
}

function AutoScrollNews() {
        if (autoScrollNewsEnabled)
                scrollNews();
}

function startAutoScrollNews() {
	autoScrollTimer = window.setInterval("AutoScrollNews()", 5000);
	autoScrollEnabled = true;
}

$(document).ready(function(){
        startAutoScrollNews();
});

