$(document).ready(function() {
    $('#radiodestifr').click(function() {

        if($(this).attr("class") == "radiodesti") {
            $(this).attr("class" , "radiodesti-actif");
            $('#radiodestietr').attr("class" , "radiodesti");
            $("#country").hide();
            $("#countryOrRegion").hide();
            $("#countryOrRegion").val("FR");
            $("#region").show();
            $("#destinationLabel").html("Région :");
            $("#hiddenEtranger").attr("value","");
        } else {
            $(this).attr("class" , "radiodesti");
            $('#radiodestietr').attr("class" , "radiodesti");
            $("#country").hide();
            $("#countryOrRegion").show();
            $("#countryOrRegion").val("");
            $("#region").hide();
            $("#destinationLabel").html("Destination :");
            $("#hiddenEtranger").attr("value","");
        }
        return false;
    });
    $('#radiodestietr').click(function() {
        if ($(this).attr("class") == "radiodesti") {
            $(this).attr("class" , "radiodesti-actif");
            $('#radiodestifr').attr("class" , "radiodesti");
            $("#country").show();
            $("#countryOrRegion").hide();
            $("#countryOrRegion").val("");
            $("#region").hide();
            //$("#indifRegion").attr("value","!*");
            $("#destinationLabel").html("Pays :");
            $("#hiddenEtranger").attr("value","*");
        } else {
            $(this).attr("class" , "radiodesti");
            $('#radiodestifr').attr("class" , "radiodesti");
            $("#country").hide();
            $("#countryOrRegion").show();
            $("#countryOrRegion").val("");
            $("#region").hide();
            //$("#indifRegion").attr("value","");
            $("#destinationLabel").html("Destination :");
            $("#hiddenEtranger").attr("value","");
        }
        return false;
    });

    $('#duree').change(function() {
        if($(this).val() == "0,30") {
            $('#hiddenCureExt').val("yes");
        }
    });
});
