for (int virtualTab = 0; virtualTab < tabs.length; virtualTab++) {
if (SWITCH_TYPE_CLIENT.equals(switchType) || virtualTab == activeIndex) {
StyleAttribute oStyle = new StyleAttribute(
(String) component.getAttributes().get(ATTR_STYLE));
if (virtualTab != activeIndex) {
oStyle.add("display", "none");
}
writer.startElement("div", null);
writer.writeComment("empty div fix problem with mozilla and fieldset");
writer.endElement("div");