optimization code, seeking not working in IE