Michael's emotional behavior changes. Sometimes he is so depressed that he cannot complete normal activities and wishes he would die. At other times, he has periods of excessive energy, hyperactivity, grandiose thoughts of self-importance, and extreme joy. His condition would be most likely diagnosed as?