device.print("<div class=\"SMenu\" onClick=\"javascript:wpm_menu(event,'");
device.print("<div class=\"SMenu\" onMouseDown=\"javascript:wpm_menu(event,'");
    public void writeContent(final Device device,                             final SComponent _c)            throws IOException {        final SMenuBar component = (SMenuBar) _c;//--- code from write-template.        SMenuBar mbar = (SMenuBar) component;        int mcount = mbar.getComponentCount();        device.print("<div class=\"spacer\"></div>");        for (int i = 0; i < mcount; i++) {            SComponent menu = mbar.getComponent(i);            if (menu.isVisible()) {                if (menu.isEnabled()) {                    device.print("<div class=\"SMenu\" onClick=\"javascript:wpm_menu(event,'");                    device.print(menu.getName());                    device.print("_pop');\">");                } else {                    device.print("<div class=\"SMenu_Disabled\">");                }                Utils.write(device, ((SMenu)menu).getText());                device.print("</div>");            }        }        device.print("<div class=\"spacer\"></div>");//--- end code from write-template.    }