$(document).ready(function() {

    // scroll in home page
    $('#lauds_board').jScrollPane({scrollbarOnLeft:true,scrollbarWidth:17 });
    $('#part_iii_text').jScrollPane({scrollbarWidth:17 });
    $('#secure_scroll').jScrollPane({scrollbarWidth:17 });

    //according in faq page
    $('#accordionDemo').accordion( { header: ".ui-accordion-header",  autoHeight: false });

    // radio buttons
    $('input.radio1').ezMark( { radioCls : 'radio_button', selectedCls : 'radio_button_selected' }  );
//    $('input.checkbox1').ezMark( { checkboxCls : 'checkbox_one', checkedCls : 'checkbox_one_selected' }  );
    $('input.checkbox1').ezMark( { radioCls : 'checkbox_one', selectedCls : 'checkbox_one_selected' }  );



    // showing text on forms
    $("input.radiogroup1").change(function(){
        if ( $(this).val() == 'yes' ) {
            $('#text_question_one').show();
        } else {
            $('#text_question_one').hide();
        }
    });
    $("input.radiogroup2").change(function(){
        if ( $(this).val() == 'yes' ) {
            $('#text_question_two').show();
        } else {
            $('#text_question_two').hide();
        }
    });

    $('input.checkbox1').change(function(){
        $('div.areas').hide();
        if( $(this).val() == 'employee' ) {
            $('#employee_area').show();
        } else if ( $(this).val() == 'agent' ) {
            $('#agent_area').show();
        } else if ( $(this).val() == 'employer' ) {
            $('#employer_area').show();
        }

    });


    $('.salary-reduction-agreement .checkbox1').attr('disabled',true);

    $('.salary-reduction-agreement #agree_or_not .radio1').change(function(){
        if( $(this).val() == 'agree' ) {
            $('.salary-reduction-agreement .checkbox1').attr('disabled',false);
        } else {
            window.location = "http://youradminpartners.com/";
        }
    });


    $('#form_upload_file').filestyle({
     image: "/css/img/browse_button.png",
     imageheight : 25,
     imagewidth : 82,
     width : 250
    });

});

function show_import_note() {
        $('#import_note').show();
}

