/**(京)
 * Element-System PHP Framework
 *
 * jQuery 1.4.4
 */
jQuery(function(){

    //Close button
        $(".close").click(
            function () {
                $(this).parent().fadeTo(400, 0, function () {
                    $(this).slideUp(400);
                });
                return false;
            }
        );

    //Minimize Content Box: ボックスを最小化（ボックスヘッダーに折り畳む）
        $(".content-box-header h3").css({ "cursor":"s-resize" }); // Give the h3 in Content Box Header a different cursor
        $(".closed-box .content-box-content").hide(); // Hide the content of the header if it has the class "closed"
        $(".closed-box .content-box-tabs").hide(); // Hide the tabs in the header if it has the class "closed"

        $(".content-box-header h3").click( // When the h3 is clicked...
            function () {
              $(this).parent().next().toggle(); // Toggle the Content Box
              $(this).parent().find(".content-box-tabs").toggle(); // Toggle the tabs
              $(this).parent().parent().toggleClass("closed-box"); // Toggle the class "closed-box" on the content box (for CSS)
            }
        );

    // リストテーブルでのチェックボックス一括操作
        $('.check-all').click(
            function(){
                $(this).parent().parent().parent().parent().find("input[type=checkbox]").attr('checked', $(this).is(':checked'));
            }
        );

    //トーストメッセージ
        $("#epfView_Toast").slideDown("slow").delay(4000).slideUp("slow");
        $("#epfView_Toast").click(function(){
            $(this).clearQueue().slideUp("fast");
        });
});

