$(function(){
	var i=0;
	var liCount=$("#video_other ul li").length;
	$("#video_nav a").focus(function(){$(this).blur();}); 
	$("#video_nav a").click(
		function()
		{
			var id=$(this).attr("id");
			if(id=="pre")
			{
				i--;
				if(i<0)
				{
					i=0;
					return;
				}
				$("#video_other ul li:eq("+i+")").show("show");
				$('#state').text(i==0?"6":(i)+"/6");
				setTimeout("$('.video_list:eq("+i+")').show('show')",600);
				
			}
			else
			{
				if(i>liCount-6)
					return;
				$("#video_other ul li:eq("+i+")").hide("show");
				$('#state').text((i+1)+"/6");
				//$('.video_list:eq('+i+')').hide(1000);
				setTimeout("$('.video_list:eq("+i+")').hide('show')",600);
				i++;
			}
		}
	);
	
	$("#video_other ul li").mouseover(
		function(){
			$(this).addClass('videoOver_list');
		});
	$("#video_other ul li").mouseout(
		function(){
				$(this).removeClass('videoOver_list');
		});
	$('#video_other ul li img').attr('title',function(){return this.title.replace('<br />',' ').replace('<br/>',' ')});
	$('#video_other ul li').click(
		function()
		{
			 $("#video").html($(this).attr("data"));
			 $("#video_other ul li").removeClass('videoOver_click');
			 $(this).addClass('videoOver_click');
		});
});