ho fatto come mi hai scritto tu, ma IE mi dice:

document.style è nullo o non è un oggetto.
porta pazienza...
why??