Part 1 of fix for IE stupidity