Added functions showRight and hideRight that generate the show and hide functions to abstract out animation function creation and allow easy creation of new show/hide functions.