var banner_t = banner_n = 0, banner_count=4;
function baner_switch(){
	banner_count= $("#play_list a").size();
	$("#play_list a:not(:first-child)").hide();
	$("#play_text li").eq(0).css({"background":"#5B74A8","color":"#fff","font-weight":"bolder","border":"1px #fff solid"});
	
	$("#play_text li").mouseover(function() {
	  var i = $(this).text() - 1;
	  banner_n = i;
	  if (i >= banner_count) return;
	  $("#play_list a").filter(":visible").hide().parent().children().eq(i).show();
	  $(this).css({"background":"#5B74A8","color":"#fff","font-weight":"bolder","border":"1px #fff solid"});
	  $(this).siblings().css({"background":"#fff","color":"#222222","font-weight":"normal","border":"1px #ccc solid"});
	 });
	
	banner_t = setTimeout("showAuto()", 4000);
	$("#play").hover(function(){clearTimeout(banner_t)}, function(){banner_t = setTimeout("showAuto()", 4000);});
}

function showAuto()
{
	 banner_n = banner_n >= (banner_count - 1) ? 0 : ++banner_n;
	 $("#play_text li").eq(banner_n).trigger('mouseover');
	 clearTimeout(banner_t);
	 banner_t = setTimeout("showAuto()", 4000);
}
