var i = 0;
var theCount = 26;
var toShow = 8;

atv.init.setup = function(){
	$(document).everyTime(6000, function(i) {
		var t = $.random(8000);
		setTimeout('atv.home.moveUpdate()', t);
	});
	
	$("#more").click(function(){
		atv.home.moveUpdate();
		return false;
	});
};
 
atv.home.moveUpdate = function(){
	var updateToShow = (i + toShow) % theCount;
    $('#update_' + updateToShow).slideDown(1000, function(){
        $('#update_' + i).remove().css('display', 'none').prependTo('#updates');
    });
    $('#update_' + i).slideUp(1000, function(){
        i = (i + 1) % theCount;
    });
};


