// JavaScript Document
$(window).load(function(){
	$("#text .neib table,#text .neib img").each(function(){
		if(parseInt($(this).width())>566){
			$("#content_right").hide();
			$("#content_left").css("width","auto");
			$("#content_left").css("border-right","0 none");
			$("#text").css("width","950px");
			$("#text").css("overflow","visible");
			$("#text .neib").css("overflow","visible");
		}else{return;}
	})
})
$(document).ready(function(){
	
	//文章内容过大，宽屏
	
	
	//文字 大 中 小
	$("#text .title .dzx a:eq(0),#font_d").click(function(){
		$("#text .neib").css("font-size","20px");
		return false;
	});
	$("#text .title .dzx a:eq(1),#font_e").click(function(){
		$("#text .neib").css("font-size","14px");	
		return false;		
	});
	$("#text .title .dzx a:eq(2),#font_f").click(function(){
		$("#text .neib").css("font-size","12px");
		return false;		
	});
	
	//隐藏空导读
	if($("#text .foreword p:empty").length==$("#text .foreword p").length){
     $("#text .foreword").hide();  
	}

    //隐藏副标题
	if($("#text .title h2:empty").length==$("#text .title h2").length){
     $("#text .title h2").hide();  
	}
});
