var tobjs = [];
var lists = [];
var count;
var i = 0;
var interval = 8000;
$(function(){
	count = $(".hotlist li").length
	$(".hotlist li").each(function(){
		lists.push($(this).text());
		$(this).hide(0);
	});
	$(".hotlist").after("<p></p>");
	$(".hotlist").hide(0);
	var l1 = $(".hotlist").next("p");
	$(l1).text(lists[0]);
	tobjs.push(l1);


	var tid = setInterval("hot()", interval);

	$(".hotdown").click(function(){
		clearInterval(tid);

		hot();

		tid = setInterval("hot()", 2000);
	});
	
});
	function hot() {
		$(tobjs[i]).toggle(500);
		$(tobjs[i]).after("<p></p>");
		var new_line = $(tobjs[i]).next("p");
		i++;
		var row = i % count;

		$(new_line).text(lists[row]);
		$(new_line).hide(0);
		$(new_line).toggle(500);

		tobjs.push(new_line);
		
	}


