$(function(){
	// マウスオーバー画像チェンジ
    $("img.main_menu").mouseover( function(){
        $(this).attr("src",$(this).attr("src").replace( /^(.+)(\.[a-z]+)$/ , "$1_on$2" ) );
        $(this).css({'opacity': "0.9"});
    }).mouseout( function(){
        $(this).attr("src",$(this).attr("src").replace( /^(.+)_on(\.[a-z]+)$/ , "$1$2" ) );
        $(this).css({'opacity': "1"});
    }).each( function(){
        $("<img>").attr("src",$(this).attr("src").replace( /^(.+)(\.[a-z]+)$/ , "$1_on$2" ) );
    }),
    // クリック時点線非表示
    $("a.nodotted").focus( function(){
    	this.blur();
    }),
    // ページ内リンクスクロール
    $(document).ready(function(){
		$.smoothAnchors("normal");
	})
})
    	
var ikkatu_flag = 0;
// 一括チェックON/OFF
function check_all_change( which ){

    if (ikkatu_flag == 0) {
        $("input:checkbox[name="+which+"]").attr("checked", "true");
        ikkatu_flag = 1;
    } else {
        $("input:checkbox[name="+which+"]").attr("checked", "");
        ikkatu_flag = 0;
    }
}
