function computeTinyCompactLink() {
  var q = c.queryEditor.getUnresolvedQuery();
  var url = CueCard.helper + "tinyurl?q=" + encodeURIComponent(q) + getUrlFlags();
  var cont = CueCard.UI.createBlockingContinuations(function(cont, o) {
    window.prompt("Tiny URL to copy", o);
  });
  
  $.post(url, {}, cont.onDone, "json");
}

function closeStartingMessage() {
  $("#starting-message-container").hide();
  $.cookie('cc_greeting', '0', { expires: 365 });
}

function onLoad2() {
  if ($.cookie('cc_greeting') == '0') {
    $("#starting-message-container").hide();
  }
  
  onLoad();
}
