

// JQuery
$(document).ready(function() {
	// 切换城市
	$(".toggleCity ").hover(function() {
		$(".toggleCity > div:hidden").animate({height: 'toggle', opacity: .9},300);

	},function() {
		$(".toggleCity > div:visible").animate({height: 'toggle', opacity: 0},300);

	});



});

//课程选择
$(function(){
				$(".toggle dl dd").hide();
				$(".toggle dl dt").click(function(){
					$(".toggle dl dd").not($(this).next()).hide();
					$(".toggle dl dt").not($(this).next()).removeClass("current");
					$(this).next().slideToggle(500);
					$(this).toggleClass("current");
					});
				
				});
			
			$(function(){
var tabTitle = ".allschool ul li a";
var tabContent = ".toggle  ";
var tabCity = ".test ";
$(tabContent).not(":first").hide();
$(tabCity).not(":first").hide();

$(tabTitle).unbind("click").bind("click", function(){


var index = $(tabTitle).index( $(this) );
$(tabContent).eq(index).siblings(tabContent).hide().end().fadeTo(1000,1.0);
$(tabCity).eq(index).siblings(tabCity).hide().end().show();
});
});


//

			
//校区选择
//$(document).ready(function(){
//        $(".chose_school_menu ul li").hover(function(){
//            $(this).find("ul:first").animate({height: 'toggle', opacity: .9},300);//鼠标滑过查找li下面的第一个ul然后显示；
//        },function(){
//            $(this).find("ul:first").animate({height: 'toggle', opacity: .9},300);//鼠标离开隐藏li下面d的ul；
//        })
//        //给li下面ul是aaa的样式的前一个同辈元素添加css；
//    });

// JQuery
$(document).ready(function() {
	// 切换城市
	$(".chose_school_menu ").hover(function() {
		$(".chose_school_menu  > div:hidden").animate({height: 'toggle', opacity: .9},300);
		
	},function() {
		$(".chose_school_menu  > div:visible").animate({height: 'toggle', opacity: 0},300);
	});



});

