Here is a quick ajax compatible version that I created. There are not many modifications, mostly just to the THints function. This version does away with the document.write() call, which is not ajax compatible. I also added a removeTHints() function to, well, remove hints at runtime.
I am not promising that this is 100% compatible, so testing is a must, but it seems to be working okay here!
This .zip contains the sample3 slightly modified to use the new functionality.
Please feel free to use these modifications (freely!) if you find them useful.