   colorScheme = tabJson.colorScheme
   customMessage = tabJson.customText
   collectName = tabJson.collectName
+  window.anchortab.i18n = tabJson.i18n
 
   # Load the Anchor Tab stylesheet.
   atStyleSheet =


    error: (xhr, status, error) ->
      $("#anchor-tab [disabled]").removeAttr("disabled")
      alert("Something went wrong submitting your email. Please contact us if you continue to see this error.")

      gaqInfo = "Domain: " + document.domain + " Response Status: " + status
      _gaq.push ["at._trackEvent", "Submission", "Submission Error", gaqInfo]

  unless email.match(/.+@.+\..+/)
    $("#anchor-tab")
      .find(".success-message")
        .text(anchortab.i18n["tab-invalidEmail"])
      .end()
      .addClass("success")

