Automatic animation toggling

I am trying to make set up my animation controller so that some animations that are on a separate layer can only be toggled when all other animations are off, and are themselves turned off when toggling other animations.