jQuery(function() {
    // jQury noConflic
    $ = jQuery;
    
    // Hide all table except the first one
    //$(".liste:not(:first)").hide();
    $(".liste").hide();
    //$(".liste:first").show();
    
    
    $("#region-jumpmenu").change(function(){
        var val = $(this).val();
        if (!val) {
            return false;
        }
        if ($(".liste:visible").attr("id") == val && $(".liste:visible").length == 1) {
            return false;
        }
        
        
        if ($(".liste:visible").length > 0) {
            $(".liste:visible").not("#" + val).slideUp(400, function(){
                $("#" + val ).slideDown(400);
            });
        } else {
            $("#" + val ).slideDown(400);
        }
        
        if (val == "region-all" ) {
            $(".liste" ).slideDown(400);
        }
        //alert(val);
    });
    
    
   Shadowbox.init({
        language:   "fr"
    });
   
    
    
    
    
});
