if (self == top) {
    top.location = "http://www.attractiveworld.net";
}

$(document).ready(function () {
    noQuit = true;

    $("#choixRecherche_selection").click(function () {
        $("#choixRecherche_bloc").toggle();
        $("fieldset:eq(0)").css("z-index", "100");
        $("fieldset:eq(1)").css("z-index", "5");
    });

    $("#choixRecherche_bloc a").click(function (e) {
        $("#choixRecherche_selection div:eq(0)").attr('class', $(this).attr('class') + "_nohover").html($(this).html());
        $("#choixRecherche_bloc a").index(this);
        $("#subscribers_search").val($("#choixRecherche_bloc a").index(this));
        $("div[class^=formError]", $(".step0 td:has(#choixRecherche_selection)")).fadeOut();

        if (e.preventDefault) {
            e.preventDefault();  // FF
        }
        e.returnValue = false;  // IE
    });


    if ($("#subscribers_search").val().length > 0) {
        _n = $("#subscribers_search").val();
        $("#choixRecherche_bloc a:eq(" + parseInt(_n) + ")").trigger('click');
        $("#choixRecherche_bloc").hide();
    }

    $("#subscribers_email[value=]").val(generated_text_email);

    $("#subscribers_email").focus(function (e) {
        this.value = "";
        $("#subscribers_email").addClass("defaultType");
    });


    if (($("div[class^=formError]").css("display") == "block")) {
        $("fieldset:eq(0)").css("z-index", "5");
    }







});
