// JavaScript Document

$(function(){

    /*--------------------------------------------------------*/
    //ページの先頭へ戻るリンクにヘッダーIDを設定
    $('.page-top > a').attr('href', '#header');

    /*--------------------------------------------------------*/
    //フォントサイズ変更ボタン
    $('#font-changer a').click(function(){
        //classリセット
        $('#font-changer a').removeAttr('class');
        $(this).addClass('active');
    });

    //アクティブボタン設定
    if(title === 'font-l'){
        $('#font-changer>dd.large>a').addClass('active');
    }else if(title === 'font-m'){
        $('#font-changer>dd.middle>a').addClass('active');
    }else{
        $('#font-changer>dd.small>a').addClass('active');
    }

    /*--------------------------------------------------------*/
    //検索ボタンロールオーバー処理

    $('#search-form input.submit').hover(
    function(){$(this).css('background-image','url(http://www.health-coop.jp/pub/_share/_img/search-form_bt_submit_hover.png)');},
        function(){$(this).css('background-image','url(http://www.health-coop.jp/pub/_share/_img/search-form_bt_submit.png)');}
    );

    /*--------------------------------------------------------*/
    //IE透過PNG対応
    $(".png").fixPng();

});

