﻿function hideOrshowSchool(divid) {
    var number = $("#" + divid + " .tit");
    for (i = 0; i < number.length; i++) {
        number[i].onclick = function() {
            if ($('#' + this.id + '_child').hasClass("hideDiv")) {
                $("#" + divid + " .list").attr("class", "list hideDiv");
                $('#' + this.id + '_child').removeClass("hideDiv");
                $('#' + this.id + '_child').addClass("showDiv");
                $(".on").attr("class", "off");
                $('#' + this.id + '_a').attr("class", "on");
            } else {
                $('#' + this.id + '_child').removeClass("showDiv");
                $('#' + this.id + '_child').addClass("hideDiv");
                $('#' + this.id + '_a').attr("class", "off");
            }
        }
    }
}

function boxclose(ddiv) {
    if (ddiv == 1)
        document.getElementById("box_left").style.display = "none";
    else if (ddiv == 2)
        document.getElementById("box_right").style.display = "none";
}
