$(function(){
    // search switch
    $("form.cosme_search").hide();
    $("label", "div.mode_switch").click(function(){
        $("input", this).attr("checked", "checked");
        var search_mode1 = $("input", this).val();
        if(search_mode1 == "cosme"){
            $("form.all_search").hide();
            $("form.cosme_search").show();
        } else {
            $("form.cosme_search").hide();
            $("form.all_search").show();
        }
    });
});

$(function(){
    // search switch
    $("form.cosme_search2").hide();
    $("label", "div.mode_switch2").click(function(){
        $("input", this).attr("checked", "checked");
        var search_mode2 = $("input", this).val();
        if(search_mode2 == "cosme"){
            $("form.all_search2").hide();
            $("form.cosme_search2").show();
        } else {
            $("form.cosme_search2").hide();
            $("form.all_search2").show();
        }
    });
});

$(function(){
    // search switch
    $("form.input_form").hide();
    $("label", "div.mode_switch3").click(function(){
        $("input", this).attr("checked", "checked");
        var search_mode3 = $("input", this).val();
        if(search_mode3 == "cosme3"){
            $("form.input_form").hide();
            $("form.cosme_search3").show();
        } else {
            $("form.cosme_search3").hide();
            $("form.input_form").show();
        }
    });
});

