If you create an alternate hierarchy in the Period dimension, the alternate hierarchy must follow the YearTotal member in the outline.
Scripting on this page enhances content navigation, but does not change the content in any way.