<!-- Mainly scripts -->
<script src="/static/js/jquery-2.1.1.js"></script>
<script src="/static/js/bootstrap.min.js"></script>
<script src="/static/js/plugins/metisMenu/jquery.metisMenu.js"></script>
<script src="/static/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>

<!-- Custom and plugin javascript -->
<script src="/static/js/inspinia.js"></script>
<script src="/static/js/plugins/pace/pace.min.js"></script>

<!-- iCheck box -->
<script src="/static/js/plugins/iCheck/icheck.min.js"></script>

<!-- Peity -->
<script src="/static/js/plugins/peity/jquery.peity.min.js"></script>

<!-- Peity -->
<script src="/static/js/demo/peity-demo.js"></script>

<script>
    $(document).ready(function(){
        $('.i-checks').iCheck({
            checkboxClass: 'icheckbox_square-green',
            radioClass: 'iradio_square-green'
        });
    });

    function selectAll(){
         var checklist = document.getElementsByName ("selected");
            if(document.getElementById("select_all").checked)
            {
            for(var i=0;i<checklist.length;i++)
            {
              checklist[i].checked = 1;
            }
            }else{
            for(var j=0;j<checklist.length;j++)
            {
             checklist[j].checked = 0;
            }
            }

        }

        function move(from, to) {
        $("#"+from+" option").each(function(){
          if ( $(this).prop("selected") == true ) {
            $("#"+to).append(this);
          }
        });
    }

    function move_all(from, to){
        $("#"+from).children().each(function(){
        $("#"+to).append(this);
        });
    }


</script>




<!-- pop windows -->
<script src="/static/js/jquery.colorbox.js"></script>

<!-- validator js -->
<script src="/static/js/validator/jquery.validator.js"></script>
<script src="/static/js/validator/zh_CN.js"></script>

<!-- active menu -->
<script>
    var str = document.location.pathname.split("/")[1];
    var str1 = document.location.pathname.split("/")[2];
    $("#"+str).addClass('active');
    $("#"+str1).addClass('active');
</script>