Revised show/hide arbitrary panel code to meet new method.