Added support for IE6+