added panel.getVisibility() helper and refactored some code to use it
refactored panel.isVisible() to use panel.getVisibility()
update spin.moveTo() to use visibility constants
moved animation related code into panel helpers and refactored code to use them