e));

          // Restore flyout event logging state.
          state = sessionStorage.getItem('logFlyoutEvents');
          logFlyoutEvents(Boolean(state));
        }
      }

      function getToolboxElement() {
        var match = location.search.match(/toolbox=([^&]+)/);
        return document.getElementById('toolbox-' + (match ? match[1] : 'categories'));
      }

      function toXml() {
        var output = document.getElementById('importExport');
        var xml = Blockly.Xml.workspaceToDom(worksp