improve performance trimpath for ie6
align window