y', 'Dopey'],
        function(item) {
          var c = new goog.ui.Control(item);
          c.addClassName('goog-inline-block');
          c.setId(item);
          // For demo purposes, have controls dispatch transition events.
          c.setDispatchTransitionEvents(goog.ui.Component.State.ALL, true);
          hc.addChild(c, true);
        });
    hc.getChild('Doc').setEnabled(false);
    goog.events.listen(hc, EVENTS, logEvent);

    // Hook up checkboxes.
    goog.events.listen(goog.dom.getElement('sh