Some tweaks for IE6 and 7 compatibility.