Joe Burud's changes to make it work with IE 8 and 9