/*文本框提示*/
function inputTipText() {
    $("input[class*=txt]")
.each(function() {
    var oldVal = $(this).val();
    $(this)
   .css({ "color": "#bbb" })
   .focus(function() {
       if ($(this).val() != oldVal) { $(this).css({ "color": "#333" }) } else { $(this).val("").css({ "color": "#bbb" }) }
   })
   .blur(function() {
       if ($(this).val() == "") { $(this).val(oldVal).css({ "color": "#bbb" }) }
   })
   .keydown(function() { $(this).css({ "color": "#333" }) })
})
}
$(function() { inputTipText(); })

/*TABS切换*/
jQuery(function() {
    //tab切换
    $(".tab_top li:first-child").addClass("hover");
    $(".tab_bot").find(".tab_bot:not(:first-child)").hide();
    $(".tab_bot").attr("rel", function() {
        return "No" + $(".tab_bot").index(this);
    });
    $(".tab_top li").hover(function() {
        var c = $(".tab_top li");
        var index = c.index(this);
        var p = "No";
        show(c, index, p);
    }, function() {
        var c = $(".tab_top li");
        var index = c.index(this);
        var p = "No";
        show(c, index, p);
    });
    function show(controlMenu, num, prefix) {
        var content = prefix + num;
        $(".tab_bot[rel=" + content + "]").siblings().hide();
        $(".tab_bot[rel=" + content + "]").show();
        controlMenu.eq(num).addClass("hover").siblings().removeClass("hover");
    }
    /* 页头高级搜索隐藏  */
    $("#seniorSearch").click(function() {
        $(".h_seh").show();
    })
    $("#seniorSearchno").click(function() {
        $(".h_seh").hide();
    })


    /* 师资列表  */
    $(".con_tit_tbs b").click(function() {
        $(this).next("a").addclass("hover");
        $(this).toggleClass("hover");
        return false;
    })


    /**/
    $(".close a").click(function() {
        $(".more_all").hide();
    })
    $(".com_l_con b").click(function() {
        $(".more_all").show();
    })
});




