Creating a "By Year" archive nav option.

I needed to do a "By Year" archive nav for IHS and thought this might be handy in the core. I figured switching a variable to toggle it from "By Month" to "By Year" would be effective, but maybe you guys have a better way of switching between the two.

Thanks!