$().ready(function () {

    var $navs = $("#mainNavList").children();

    $navs.mouseover(function () {
        var n = $(this).parent().children().index(this);
        $(this).parent().css("background-position", "0px -" + n * 35 + "px");
    });

    if ((typeof FlashPic) != "undefined") {
        var gridFlash = new FlashPic({ "id": "flashPic", "speed": "slow" });
        gridFlash.play();
        $navs.each(function (i) {
            $(this).hover(function () {
                //                gridFlash.stop();
                //                gridFlash.move(i);
            }, function () {
                gridFlash.play();
            });
        });
    }
    $("#flashPic>li").soChange({
        thumbObj: '#flashPic',
        thumbNowClass: 'curr'
    });
});
function sendSearch(target) {
    location.href = "/NewsList.aspx?key=" + (target.value == "\u641c\u7d22..." ? "" : encodeURIComponent(target.value));
}
function textOnFocus(target) {
    if (target.value == "\u641c\u7d22...") {
        target.value = "";
    }
}
function textOnBlur(target) {
    if (target.value == "") {
        target.value = "\u641c\u7d22...";
    }
}
function sendJobSearch(jn, te, ar, tp, edu) {
    location.href = "/JobList.aspx?jn=" + encodeURIComponent(document.GetElementById(jn).value) +
    "&te=" + encodeURIComponent(document.GetElementById(te).value) +
    "&ar=" + encodeURIComponent(document.GetElementById(ar).value) +
    "&tp=" + encodeURIComponent(document.GetElementById(tp).value) +
    "&edu=" + encodeURIComponent(document.GetElementById(edu).value);
}
