Use TimerPanel.prototype.onvisibilitychange. r=jugglinmike