Replace hard coded colours in IE with variables, and refactored code so that shared IE7 and IE8 fixes are in one place.