$j = jQuery.noConflict();
$j(document).ready(function() {
  $j("#subscribe-email").submit(function(){
    e = $j("#subscribe-email :input[name=email]").each(function(){
      email = $j.trim(this.value);
      if (!email) return;
      $j.ajax({
        type: "POST",
        url: "/wp-content/mu-plugins/streamsend.php",
        data: "email="+email,
        dataType: "json",
        success: function(r) {
          if (r.success) msg = email+" has been subscribed.";
          else msg = "There was a problem subscribing "+email+". Please try again later.";
          $j("#subscribe-email").html("<div>"+msg+"</div>");
        }
      });
    });
  });
});