$(document).ready(function() {
	var Menu = $(".switch_menu");
	var Show = $(".switch_show");
	//默认显示第一个
	$(".switch_menu .switch_title:first-child").addClass("switch_sel");		//默认第一个被选中
	$(".switch_show .switch_content:first-child").show();					//默认显示第一个
	$(".switch_menu .switch_title").mouseover(function() {					//给每个标题绑定事件
	//$(".switch_menu .switch_title").click(function() {					//给每个标题绑定单击事件
		var SwitchMenu = $(this).parent(".switch_menu");			//找到当前选择项紧邻的父对象
		var SwitchNo = Menu.index(SwitchMenu);		//当前切换项编号
		var SwitchTitle = SwitchMenu.children(".switch_title")		//当前选中项所有同级对象
		//当前选择的对象在对象集合/数组中对应的索引值（从0开始），用于显示对应的内容
		var SelNo = SwitchTitle.index($(this));
		SwitchTitle.removeClass("switch_sel");	//删除所有同级对象的“选择中样式”
		$(this).addClass("switch_sel");				//给当前选中项添加“选中样式”	

		Show.each(function(i) {
			if (i==SwitchNo) {
				var SwitchContent = $(this).children(".switch_content");	//当前选中项对应的内容显示对象所有同级对象
				SwitchContent.each(function(j) {
					(j==SelNo) ? $(this).show() : $(this).hide();
				});
			}
		});
	});	
});
	
	
	
	$(document).ready(function() {
	var Menu = $(".switch_menu1");
	var Show = $(".switch_show1");
	//默认显示第一个
	$(".switch_menu1 .switch_title1:first-child").addClass("switch_sel1");		//默认第一个被选中
	$(".switch_show1 .switch_content1:first-child").show();					//默认显示第一个
	$(".switch_menu1 .switch_title1").mouseover(function() {					//给每个标题绑定事件
	//$(".switch_menu .switch_title").click(function() {					//给每个标题绑定单击事件
		var SwitchMenu = $(this).parent(".switch_menu1");			//找到当前选择项紧邻的父对象
		var SwitchNo = Menu.index(SwitchMenu);		//当前切换项编号
		var SwitchTitle = SwitchMenu.children(".switch_title1")		//当前选中项所有同级对象
		//当前选择的对象在对象集合/数组中对应的索引值（从0开始），用于显示对应的内容
		var SelNo = SwitchTitle.index($(this));
		SwitchTitle.removeClass("switch_sel1");	//删除所有同级对象的“选择中样式”
		$(this).addClass("switch_sel1");				//给当前选中项添加“选中样式”	

		Show.each(function(i) {
			if (i==SwitchNo) {
				var SwitchContent = $(this).children(".switch_content1");	//当前选中项对应的内容显示对象所有同级对象
				SwitchContent.each(function(j) {
					(j==SelNo) ? $(this).show() : $(this).hide();
				});
			}
		});
	});	
});
	
	
	
