anchor.diff:              }
               $("#subsector_" + i).stop().show();
               if(!maxReached){
  -              
                 if(sector.subsectors[i+1]==undefined){
                   $("#add_subsector_" + (i+1)).off("click");
                   if(!$("#add_subsector_" + (i+1)).is(':visible')){
  
positive.code:       }
      }
    });
  <% end %>
  
negative.code:           var index = i;
            var recentlyCreated = (newIndex != -1)&&(newIndex == index);
            if(subsector){
              if(noAdding && (newIndex != -1)){
                if(i > newIndex){
                  $("#subsector_" + i).find(".permissions_field").data("fromString")($("#subsector_" + (i-1)).find(".permissions_field").data("toString")());
                }else if(i == newIndex){
                  $("#subsector_" + i).find(".permissions_field").data("fromString")(defaultPermissions);
                }
              }
              if(!noAdding && (recentlyCreated || ((newIndex == -1)&&(i == 0)))){
                if(!$("#subsector_" + i).find(".content").is(':visible')){
                  var time = 1000;
  