sername, #password, #subbtn').attr('disabled', null);
      d3.select('#popup').remove();
    });
    popupShown = true;
  }
  var popupMode = core.sample([
      'username', 'password', null, null,
      ]);
  d3.select('#username').on('focus', popupMode != 'username' ? null : showPopup);
  d3.select('#password').on('focus', popupMode != 'password' ? null : showPopup);

  // email inbox
  $('#main .email-actions span.star').on('click', function(){
    var name = $(this).parents('.email-thread').find('.emai