IE6+ support - thanks to dicer2000