var _paq = _paq || []; (function(){ if(window.apScriptInserted) return; _paq.push(["clientToken", "P%2bsIjEMd6oQ%3d"]); var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript"; g.async=true; g.defer=true; g.src="https://prod.benchmarkemail.com/tracker.bundle.js"; s.parentNode.insertBefore(g,s); window.apScriptInserted=true;})();document.write("<style type=\"text/css\"> #signupFormOverlay_FWZVY, #signupFormVeil_FWZVY {position: fixed; width: 100%; height: 100%; overflow: hidden; top: 0; left: 0;border: none;}#signupFormVeil_FWZVY {width: calc(100% - 16px);} #signupFormOverlay_FWZVY { z-index: 777777; background-color: rgba(0, 0, 0, 0.7); } #signupFormContent_FWZVY > div.formbox-editor_FWZVY {position: absolute;} #signupFormVeil_FWZVY {opacity: 0;} #signupFormContent_FWZVY.position-centered  > div.formbox-editor_FWZVY {position: relative;} #signupFormContainer_FWZVY, #signupFormContent_FWZVY {z-index: 888888;position: fixed;width: 100%;height: 100%;border: none;top: 0;left: 0;-webkit-animation-fill-mode: forwards;animation-fill-mode: forwards;overflow: auto;} #signupFormContainer_FWZVY {overflow: hidden;} #close-btn_FWZVY svg {display: block;}  #close-btn_FWZVY path {fill: #000000;}#signupFormContainer_FWZVY > #close-btn_FWZVY { right: 20px!important; top: 20px!important; }  #close-btn_FWZVY {position:absolute;cursor: pointer;z-index: 999999;font-size: 20px;display:block; top: 10px; right: 10px;color: #000000;background-color: ;border-radius:0px;} .animation-fadeIn{animation-name: animation-fadeIn;-webkit-animation-name: animation-fadeIn; animation-duration: 0.6s; -webkit-animation-duration: 0.6s; animation-timing-function: ease-in-out; -webkit-animation-timing-function: ease-in-out; visibility: visible !important;} @keyframes animation-fadeIn {0% {opacity: 0.0;} 100% {opacity: 1;} } @-webkit-keyframes animation-fadeIn { 0% {opacity: 0.0;} 100% {opacity: 1;} } .formbox-editor_FWZVY fieldset {border: none;margin: 0;padding: 0 40px;position: relative;} .formbox-editor_FWZVY fieldset > input,.formbox-editor_FWZVY fieldset > textarea,.formbox-editable-field_FWZVY {margin: 10px 0;outline: none;} .spacer-block_FWZVY {min-height: 20px;padding: 10px 0;position: relative;} .spacer-block-line_FWZVY {position: absolute;top: 50%;left: 40px;right: 40px;display: none;border-top-style: solid;} .formbox-editor_FWZVY {margin: 0 auto;padding: 0;text-align: left;width: 100%;box-sizing: border-box;} #formbox_screen_subscribe_FWZVY, #formbox_screen_success_FWZVY, #formbox_screen_captcha_FWZVY {padding: 30px 0;}  .formbox-title_FWZVY, .formbox-text-field_FWZVY {margin-bottom: 0; font-family: Helvetica, Arial, sans-serif; color: #000000; font-size: 14px; } .formbox-title_FWZVY a, .formbox-text-field_FWZVY a  {text-decoration: none;}  .formbox-title_FWZVY p, .formbox-text-field_FWZVY p {margin: 0;margin-bottom: 10px;padding: 0; word-break: break-word;} label.formbox-field-label_FWZVY {font-family: Helvetica, Arial, sans-serif; display: block; margin: 10px 0 0; padding: 0; font-size: 14px; text-align: left;line-height: 100%; color: #000000;} label.formbox-label-wrap_FWZVY {font-family: Helvetica, Arial, sans-serif; display: block; margin: 10px 0 0; padding: 0; font-size: 14px; line-height: 100%; padding-left: 15px; text-indent: -15px; font-style: italic;color: #000000;} label.formbox-label-wrap_FWZVY:last-of-type {margin-bottom: 10px;} label.formbox-label-wrap_FWZVY input[type=checkbox], label.formbox-label-wrap_FWZVY input[type=radio] { width: 13px; height: 13px; padding: 0; margin:0; margin-right: 5px; vertical-align: bottom; position: relative; top: -1px; } select.formbox-field_FWZVY {background-color: #000000; border: 2px solid #f1f2f2; border-radius: 0px; box-sizing: border-box; background-color: #ffffff; font-family: Helvetica, Arial, sans-serif; font-size: 14px; width: 100%; margin: 10px 0; height: auto; padding: 2px 0px;} input.formbox-field_FWZVY {color: #000000; background-color: #ffffff; border: 2px solid #f1f2f2; border-radius:0px; font-family: Helvetica, Arial, sans-serif; font-size: 14px; box-sizing: border-box; padding:15px; width: 100%;} input.formbox-field_FWZVY.text-placeholder {color: #c4c4c4; font-weight: normal; font-style: normal; font-family: Helvetica, Arial, sans-serif; font-size: 14px;} .formbox-field_FWZVY::-webkit-input-placeholder {color: #c4c4c4; font-weight: normal; font-style: normal;opacity: 1;} .formbox-field_FWZVY::-moz-placeholder { color: #c4c4c4; font-weight: normal; font-style: normal;opacity: 1;} .formbox-field_FWZVY:-ms-input-placeholder {color: #c4c4c4; font-weight: normal; font-style: normal; opacity: 1;} .formbox-button_FWZVY {line-height: 100%;  cursor: pointer; margin: 10px 0; } .formbox-button_FWZVY:hover { background-color:#353d41 !important; } .formbox-button_FWZVY:active { background-color:#0d1519 !important; }#popupFormLoader_FWZVY { display: none; position: absolute; bottom: 10px; right: 10px; width: 20px; height: 20px; background-image: url(https://benchmarkemail.com/images/popup-builder/loadingicon.svg); background-position: center center; background-repeat: no-repeat; background-color: rgb(255, 255, 255); background-color: rgba(255, 255, 255, 0.3);  border-radius: 100%; -webkit-animation-name: spin; -webkit-animation-duration: 800ms; -webkit-animation-iteration-count: infinite; -webkit-animation-timing-function: linear; -moz-animation-name: spin; -moz-animation-duration: 800ms; -moz-animation-iteration-count: infinite; -moz-animation-timing-function: linear;-ms-animation-name: spin;-ms-animation-duration: 800ms;-ms-animation-iteration-count: infinite;-ms-animation-timing-function: linear;animation-name: spin;animation-duration: 800ms;animation-iteration-count: infinite;animation-timing-function: linear;}@-moz-keyframes spin {from { -moz-transform: rotate(0deg); }to { -moz-transform: rotate(360deg); }}@-webkit-keyframes spin {from { -webkit-transform: rotate(0deg); }to { -webkit-transform: rotate(360deg); }}@keyframes spin {from {transform:rotate(0deg);}to {transform:rotate(360deg);}}</style>"); document.write("<div id=\"signupFormContainer_FWZVY\" style=\"display: none;\"><div id=\"signupFormOverlay_FWZVY\"></div><div id=\"signupFormContent_FWZVY\" class=\"animation-fadeIn position-centered\"><div id=\"signupFormVeil_FWZVY\"></div><div class=\"formbox-editor_FWZVY\" style=\"background: #ffffff; max-width: 400px;border-radius:0px; box-sizing: border-box;\"><div id=\"close-btn_FWZVY\" style=\"padding: 10px;\"><svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\" width=\"10px\" height=\"10px\" viewBox=\"0 0 10 10\" enable-background=\"new 0 0 10 10\" xml:space=\"preserve\"><polygon points=\"10,1.3 8.7,0 5,3.7 1.3,0 0,1.3 3.7,5 0,8.7 1.3,10 5,6.3 8.7,10 10,8.7 6.3,5 \" data-size=\"s-close-medium\" data-selected=\"close-medium\"></polygon></svg></div><div id=\"formbox_screen_subscribe_FWZVY\" style=\"display:block;\" name=\"frmLB\"><input type=hidden name=token_FWZVY id=token_FWZVY value=\"mFcQnoBFKMQdgmZT51%2B6fVcgGr0xQgnh0WmPuwcvlq6461XGx0%2BwrA%3D%3D\" /><fieldset><div class=\"formbox-title_FWZVY\"><p style=\"line-height: 1; text-align: left;\" data-mce-style=\"line-height: 1; text-align: left;\"><span style=\"font-family: Helvetica,Arial,sans-serif; font-size: 20px;\" data-mce-style=\"font-family: Helvetica,Arial,sans-serif; font-size: 20px;\"><strong><span style=\"color: #000000;\" data-mce-style=\"color: #000000;\">Apúntate a nuestro boletín<br></span></strong></span></p></div></fieldset><fieldset class=\"formbox-field_FWZVY\"><input type=text placeholder=\"Nombre\" class=\"formbox-field_FWZVY text-placeholder\" onfocus=\"javascript:focusPlaceHolder(this);\" onblur=\"javascript:blurPlaceHolder(this);\" id=\"fldfirstname_FWZVY\" name=\"fldfirstname_FWZVY\" maxlength=100 /></fieldset><fieldset class=\"formbox-field_FWZVY\"><input type=text placeholder=\"Dirección de correo *\" class=\"formbox-field_FWZVY text-placeholder\" onfocus=\"javascript:focusPlaceHolder(this);\" onblur=\"javascript:blurPlaceHolder(this);\" id=\"fldemail_FWZVY\" name=\"fldemail_FWZVY\" maxlength=100 /></fieldset><fieldset style=\"text-align:left;\"><div id=\"btnSubmit_FWZVY\" onClick=\"javascript:return submit_FWZVYClick();\" style=\"word-break: break-all; box-sizing: border-box; text-align:center; display: inline-block;padding-left: 15px; padding-right: 15px;padding-top: 15px; padding-bottom: 15px;background-color:rgb(33, 41, 45); border: rgba(0, 0, 0, 0) solid 0px; border-radius: 10px;font-family :Helvetica, Arial, sans-serif; font-size: 14px;color: rgb(255, 255, 255); line-height: 1; letter-spacing:1pxpx;\" class=\"formbox-button_FWZVY\">Suscribirse</div></fieldset><div id=\"popupFormLoader_FWZVY\" style=\"display: none;\"></div></div><div id=\"formbox_screen_success_FWZVY\" style=\"display: none;\"><fieldset class=\"formbox-field_FWZVY\"><div class=\"formbox-editable-field_FWZVY formbox-text-field_FWZVY\"><p style=\"color: #000; font-family: Helvetica, Arial, sans-serif; font-size: 20px; line-height: 1;\" data-mce-style=\"color: #000; font-family: Helvetica, Arial, sans-serif; font-size: 20px; line-height: 1;\">¡Gracias por suscribirte!</p></div></fieldset><fieldset class=\"formbox-field_FWZVY\"><div class=\"formbox-editable-field_FWZVY formbox-text-field_FWZVY\"><p style=\"color: #000; font-family: Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.5;\" data-mce-style=\"color: #000; font-family: Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.5;\">Ya casi esta listo. Ahora revisa tu email y haz clic en el enlace para confirmar tu suscripción.</p></div></fieldset></div></div></div></div>");
function CheckField_FWZVY(fldName, frm){var fldObj = document.getElementsByName(fldName);if ( fldObj.length > 1 ) {  for ( var i = 0, l = fldObj.length; i < l; i++ ) {   if ( fldObj[0].type == 'select-one' ) { if( fldObj[i].selected && i==0 && fldObj[i].value == '' ) { return false; }   if ( fldObj[i].selected ) { return true; } }  else { if ( fldObj[i].checked ) { return true; } }; } return false; }  else  { if ( fldObj[0].type == "checkbox" ) { return ( fldObj[0].checked ); }  else if ( fldObj[0].type == "radio" ) { return ( fldObj[0].checked ); }  else { fldObj[0].focus(); return (fldObj[0].value.length > 0); }} }
function rmspaces(x) {var leftx = 0;var rightx = x.length -1;while ( x.charAt(leftx) == ' ') { leftx++; }while ( x.charAt(rightx) == ' ') { --rightx; }var q = x.substr(leftx,rightx-leftx + 1);if ( (leftx == x.length) && (rightx == -1) ) { q =''; } return(q); }

function checkfield(data) {if (rmspaces(data) == ""){return false;}else {return true;}}

function isemail(data) {var flag = false;if (  data.indexOf("@",0)  == -1 || data.indexOf("\\",0)  != -1 ||data.indexOf("/",0)  != -1 ||!checkfield(data) ||  data.indexOf(".",0)  == -1  ||  data.indexOf("@")  == 0 ||data.lastIndexOf(".") < data.lastIndexOf("@") ||data.lastIndexOf(".") == (data.length - 1)   ||data.lastIndexOf("@") !=   data.indexOf("@") ||data.indexOf(",",0)  != -1 ||data.indexOf(":",0)  != -1 ||data.indexOf(";",0)  != -1  ) {return flag;} else {var temp = rmspaces(data);if (temp.indexOf(' ',0) != -1) { flag = true; }var d3 = temp.lastIndexOf('.') + 4;var d4 = temp.substring(0,d3);var e2 = temp.length  -  temp.lastIndexOf('.')  - 1;var i1 = temp.indexOf('@');if (  (temp.charAt(i1+1) == '.') || ( e2 < 1 ) ) { flag = true; }return !flag;}}

function focusPlaceHolder(obj) { 
obj.className = "formbox-field_FWZVY"; }
function blurPlaceHolder(obj) { 
if ( obj.value == '' ) { obj.className = "formbox-field_FWZVY text-placeholder"; } } 
function isValidDate(year, month, day) { 
if (year.toString() == '' || month.toString() == '' || day.toString() == '') { return false;} try { year = parseInt(year); month = parseInt(month); day = parseInt(day); } catch (e) { return false;} var d = new Date(year, month - 1, day, 0, 0, 0, 0); return (!isNaN(d) && (d.getDate() == day && d.getMonth() + 1 == month && d.getFullYear() == year));}var submitButton_FWZVY = document.getElementById("btnSubmit_FWZVY");
var subscribeScreen_FWZVY = document.getElementById("formbox_screen_subscribe_FWZVY");
var successScreen_FWZVY = document.getElementById("formbox_screen_success_FWZVY");
var signupFormContainer_FWZVY = document.getElementById("signupFormContainer_FWZVY");
var signupFormVeil_FWZVY = document.getElementById("signupFormVeil_FWZVY");
var signupFormCloseButton_FWZVY = document.getElementById("close-btn_FWZVY");
var signupFormLoader_FWZVY = document.getElementById("popupFormLoader_FWZVY");
function submit_FWZVYClick(){
 var retVal = true; var contentdata = ""; var frm = document.getElementById("formbox_screen_subscribe_FWZVY");if ( !isemail(document.getElementsByName("fldemail_FWZVY")[0].value) ) { 
   alert("Por favor introduzca el Direcci\u00F3n de correo");
document.getElementById("fldemail_FWZVY").focus(); retVal = false;} if ( retVal == true ) {var data = "token=" + encodeURIComponent(document.getElementById("token_FWZVY").value);
data = data + "&" + "fldfirstname=" + encodeURIComponent(document.getElementById("fldfirstname_FWZVY").value);
data = data + "&" + "fldemail=" + encodeURIComponent(document.getElementById("fldemail_FWZVY").value);
submitFormData_FWZVY(data);

if(isemail(document.getElementById("fldemail_FWZVY").value) && window && window.JB_TRACKER && typeof window.JB_TRACKER.jbSubmitForm === 'function') { 
 window.JB_TRACKER.jbSubmitForm({ 
 email: document.getElementById("fldemail_FWZVY").value, didSubmit: true 
 }); 
 }

return retVal; }}var BMESFloaded_FWZVY= false;
var popupFormSubmitting_FWZVY = false;
function submitFormData_FWZVY(data){
if ( BMESFloaded_FWZVY == false && popupFormSubmitting_FWZVY == false ) {
popupFormSubmitting_FWZVY = true; checkLoading_FWZVY();
var oldObj = document.getElementById('img_FWZVY');
try{if (oldObj != null ) { document.getElementById('formbox_screen_subscribe_FWZVY').removeChild(oldObj); } } catch (e){}
var rand = Math.random(); var objImg = document.createElement('img');
objImg.id = "img_FWZVY";
objImg.onload = function(){ popupFormSubmitting_FWZVY = false; BMESFloaded_FWZVY = true; checkLoading_FWZVY();};
objImg.onerror = function(e){ popupFormSubmitting_FWZVY = false; BMESFloaded_FWZVY = false; checkLoading_FWZVY(); errorLoading_FWZVY(e);};
objImg.src = "https://lb.benchmarkemail.com//code/lbform/api?" + data + "&inst=" + rand;
objImg.style.display = "none"; 
checkLoaded_FWZVY(); 
document.getElementById('formbox_screen_subscribe_FWZVY').appendChild(objImg);
} else if (popupFormSubmitting_FWZVY == true) { alert("Guardando, por favor espera..."); 
} }
function checkLoading_FWZVY(e){
  if ( popupFormSubmitting_FWZVY == true ) { 
signupFormLoader_FWZVY.style.display = 'block'; }
  else { signupFormLoader_FWZVY.style.display = 'none'; }
}
function errorLoading_FWZVY(e){
 alert("There was an error. Please try after some time");
 BMESFloaded_FWZVY= false;
}
function checkLoaded_FWZVY(){
if ( BMESFloaded_FWZVY == false ) { setTimeout(checkLoaded_FWZVY, 100); 
} else { 
 var wd = document.getElementById('img_FWZVY').width;
 if ( wd == 1 ) {
   subscribeScreen_FWZVY.style.display = 'none';
  localStorage.setItem('bmePopupFormSignedUp1553901', 'true'); 
  verticalCenter_FWZVY(successScreen_FWZVY);
 }  else { BMESFloaded_FWZVY= false; subscribeScreen_FWZVY.style.display = 'block'; if ( wd == 2 ) { alert("Esta email ya existe. "); document.getElementById('fldemail_FWZVY').focus(); 
 }  else if ( wd == 3 || wd == 4 ) {alert("Direcci\u00F3n de Correo Inv\u00E1lida");  document.getElementById('fldemail_FWZVY').focus(); 
 }  else if ( wd == 6 ) {alert("Esta direcci\u00F3n de correo se ha dado de baja anteriormente");  document.getElementById('fldemail_FWZVY').focus(); 
 }  else { alert("There was an error. Please try after some time");  document.getElementById('fldemail_FWZVY').focus(); } 
} } }
signupFormCloseButton_FWZVY.addEventListener("click", function() {signupFormContainer_FWZVY.style.display = 'none';});
  var bmePopupFormViewed_FWZVY = localStorage.getItem('bmePopupFormSignedUp1553901'); 
  if ( bmePopupFormViewed_FWZVY != 'true') {
setTimeout(function () {verticalCenter_FWZVY(signupFormContainer_FWZVY); }, 3 * 1000);
  } 
function debounce_FWZVY(func, wait, immediate) {
var timeout;
return function() {
var context = this, args = arguments;
var later = function() {timeout = null; if (!immediate) func.apply(context, args); };
var callNow = immediate && !timeout; clearTimeout(timeout); timeout = setTimeout(later, wait); if (callNow) func.apply(context, args); };
};
var hasVerticalCenter_FWZVY = document.getElementsByClassName('position-centered');
function verticalCenter_FWZVY(element) { if(element) { element.style.opacity = 0;  element.style.display = 'block';  }
setTimeout(function () { if (hasVerticalCenter_FWZVY.length > 0) { var windowHeight = Math.max(document.documentElement.clientHeight, window.innerHeight || 0); 
 var formElement_FWZVY = document.getElementsByClassName('formbox-editor_FWZVY')[0]; var formHeight_FWZVY = formElement_FWZVY.clientHeight; 
 if (formHeight_FWZVY < windowHeight) { var newPosition = 0; newPosition = (windowHeight - formHeight_FWZVY) / 2; formElement_FWZVY.style.top = newPosition + 'px'; } else { formElement_FWZVY.style.top = '0px'; } }
if(element) { element.style.opacity = 1;  }
 }, 100);
}
if (hasVerticalCenter_FWZVY.length > 0) { var resizeEvent_FWZVY = debounce_FWZVY(function() { verticalCenter_FWZVY(); }, 250); window.addEventListener('resize', resizeEvent_FWZVY); } 

