$(document).ready(function(){	
						   
	//树
	$("#black").treeview({
//		animated: "fast",
//		collapsed: true,
//		unique: true,
//		toggle: function() {
//			window.console && console.log("%o was toggled", this);
//		}
	});
	
	//部分展开
	$("#seaXia dt:first").addClass("active");
	$("#seaXia dd:not(:first)").hide();

	$("#seaXia dt").click(function(){
		$(this).next("dd").slideToggle("slow");
		$(this).toggleClass("active");
	});
	
	//全部关闭
	$("#seXiahide").click(function(){
		$("#seaXia dd").hide();	
		$("#seaXia dt").removeClass("active");
	})
	
	//全部展开
	$("#seXiashow").click(function(){
		$("#seaXia dd").show();	
		$("#seaXia dt").addClass("active");
	})
	
	//字体大小
		$("#position b[title]").click(function(){
		$(".Cwenzhang").css("font-size",$(this).attr("title")+"px"); 
	});
	//背景颜色	
	
	
	$("#bgbian span").each(function(){
		$(this).css({"background-color":$(this).attr("title")});								
	})
	$("#bgbian span").click(function(){
		$("#contentZ").css({"background-color":$(this).attr("title")});	
	})
})
