I wrote up such a plugin for jQuery in the chapter 8 code for jQuery In Action. You can download the code from
http://www.manning.com/bibeault2. Look for the
termifier.
As written, the tooltip is dismissed on clicking the tooltip itself. It should be easy to adapt to be dismissed by clicks elsewhere (in fact, that's one of the exercises outlined by the book).