Simplify setting element opacity.

This simplifies setElementOpacity by removing support for the obsolete, IE-only element.filters property. Also fixes a variable leaking into the global scope.

Please note that this change has not been tested in IE8, as I don't have access to a machine with that browser.