
jQuery(function(){
    var $ = jQuery;

    /*
    function hideField($fieldWrapper)
    {
        $("label", $fieldWrapper).removeClass("required");
        $("em", $fieldWrapper).hide();
    }
    */

    $("#organization_type_other-wrapper").hide();
    $("#organization_type").change(function(){
        if($(this).val() == "69") {
            $("#organization_type_other-wrapper").fadeIn("fast");
        } else {
            $("#organization_type_other-wrapper").fadeOut("fast");
        }
    });
    $("#organization_type").change();

    $("#position_name_other-wrapper").hide();
    $("#position_name").change(function(){
        if($(this).val() == "49") {
            $("#position_name_other-wrapper").fadeIn("fast");
        } else {
            $("#position_name_other-wrapper").fadeOut("fast");
        }
    });
    $("#position_name").change();

    $("#products_of_interest_other-wrapper").hide();
    $("#products_of_interest").click(function(){
        //132
        if (jQuery.inArray('132', $("#products_of_interest").val()) != -1) {
            $("#products_of_interest_other-wrapper").fadeIn("fast");
        } else {
            $("#products_of_interest_other-wrapper").fadeOut("fast");
        }
    });

    $("#products_of_interest").click();


});

