Changed adding classes for multibrowser support.