My idea, basically: There is a man in police custody who is slightly insane. He has giant mood swings, changing between suicidal and euphoric in minutes. When he is in one of his euphoric moods, he gains Sherlock Holmes like qualities, and becomes a brilliant detective. The story would be about his police handler trying to control him for long enough to solve a murder. Has this idea been explored before? Any suggestions would be appreciated.