$(function(){
	$('.box').each(function(){
		$(this).children('.bt').children('li').each(function(){
			var timeis=false;
			var mythis=$(this);
			$(this).hover(function(){
				timeis=true;
				setTimeout(function(){
					if(timeis){
						timeis=false;
						mythis.parent().children('li').removeClass('f');
						mythis.addClass('f');
						mythis.parent().parent().children('.c').children('*').slideUp('fast').parent().children('*:nth-child(' + (Number(mythis.index())+1) + ')').slideDown('fast');
					}
					
				},200);
				
			},function(){
				timeis=false;
			});
		});
	});
	


	//切文字
	var cutN=function(N){ eval( "$('.cut"+N+" li').each(function(){ temp=$(this).children('a:nth-child(1)'); temp.attr('title',temp.html()).attr('target','_blank').html( temp.html().substring(0,"+N+") ); });" );	}
	cutN(17);cutN(16);cutN(15);cutN(13);
	$('.cut11 li').each(function(){ temp=$(this).children('a:nth-child(1)'); temp.attr('title',temp.html()).html( temp.html().substring(0,11) ); });
	$('.cutCJML li').each(function(){ temp=$(this).children('a'); temp.attr('title',temp.html()).html( temp.html().substring(0,13) ); });

	//删除百度空广告
	$('.baidu').each(function(){ if( $(this).height()<6 ){ $(this).css("display","none"); }	});
	
	mmmm=$('.qyzsnei');
	nowtop=0;
	setInterval(function(){
		nowtop+=450;
		if( nowtop >= mmmm.height()){ nowtop=0; }
		mmmm.animate( { marginTop: "-" + nowtop + "px" }, 500);
	},10000);
})
