You can conditional include or exclude menu items. In fact, this code already does this. If you need it to work on the other items, simply add the corresponding if statement like the existing one.
If that's not the answer then you're post doesn't make much sense. You should probably better explain what you're wanting to do.