var t = n = 0, count = 0;
$(function(){
	count=$("#play_list a").size();
	$("#play_list a:not(:first-child)").hide();
	$("#play_text li:first-child").addClass("current");
	$("#play_text li").click(function() {
		var i = $(this).attr('idx');
		n = i;
		if (i >= count) return;
		$("#play_list a").filter(":visible").fadeOut(1000).parent().children().eq(i).fadeIn(1000);
		$(this).addClass("current").siblings().removeClass("current");
	});
	t = setInterval("showAuto()", 5000);
	$("#play").hover(function(){clearInterval(t)}, function(){t = setInterval("showAuto()", 5000);});
})

function showAuto()
{
	n = n >= (count - 1) ? 0 : ++n;
	$("#play_text li").eq(n).trigger('click');
}

