This is probably the right way to do it for ie7/8