Please visit our help center for student support.
If you need access to Blackboard Collaborate, please contact your institution.

/*
  White space on empty fields
  Start
  */

function clearWhiteSpaces() {
  $("input").val(function (_, value) {
    return $.trim(value);
  });
}
/*
  White space on empty fields
  End
  */

/*
  Utm parameters persistent on session
  Start
  */
function findGetParameter(parameterName) {
  var result = null,
    tmp = [];
  location.search
    .substr(1)
    .split("&")
    .forEach(function (item) {
      tmp = item.split("=");
      if (tmp[0] === parameterName) result = decodeURIComponent(tmp[1]);
    });
  return result;
}

function setutm() {
  var r = findGetParameter("utm_campaign");
  if (r) {
    window.sessionStorage.setItem("utm_campaign", r);
  }
  r = findGetParameter("utm_content");
  if (r) {
    window.sessionStorage.setItem("utm_content", r);
  }
  r = findGetParameter("utm_medium");
  if (r) {
    window.sessionStorage.setItem("utm_medium", r);
  }
  r = findGetParameter("utm_source");
  if (r) {
    window.sessionStorage.setItem("utm_source", r);
  }
  r = findGetParameter("utm_term");
  if (r) {
    window.sessionStorage.setItem("utm_term", r);
  }
}

function readutm() {
  if ($("input[name='utm_campaign']").val() == "" && window.sessionStorage.getItem("utm_campaign")) {
    $("input[name='utm_campaign']").val(window.sessionStorage.getItem("utm_campaign"));
  }
  if ($("input[name='utm_content']").val() == "" && window.sessionStorage.getItem("utm_content")) {
    $("input[name='utm_content']").val(window.sessionStorage.getItem("utm_content"));
  }
  if ($("input[name='utm_medium']").val() == "" && window.sessionStorage.getItem("utm_medium")) {
    $("input[name='utm_medium']").val(window.sessionStorage.getItem("utm_medium"));
  }
  if ($("input[name='utm_source']").val() == "" && window.sessionStorage.getItem("utm_source")) {
    $("input[name='utm_source']").val(window.sessionStorage.getItem("utm_source"));
  }
  if ($("input[name='utm_term']").val() == "" && window.sessionStorage.getItem("utm_term")) {
    $("input[name='utm_term']").val(window.sessionStorage.getItem("utm_term"));
  }
}
function showFieldShared(currentField) {
  $("[name=" + currentField + "]")
    .parents(".form-element-layout")
    .show();
}

if (typeof LeadRouting === "undefined") {
  LeadRouting = "";
}

function checkTranslationThankYou() {
  if (typeof translateLanguage != "undefined") {
    translateLangThankYou = translateLanguage;
  }
  var tempLang = findGetParameter("tr_lang");
  if (tempLang) {
    translateLangThankYou = tempLang;
  }

  if (translateLangThankYou) {
    $(".translate").each(function (i, element) {
      element.innerHTML = translateThankYou(element.innerHTML.trim());
    });
  }
}

function translateThankYou(textToTranslate) {
  var found = false;
  if (typeof translateLangThankYou != "undefined" && typeof thankYouTranslations[textToTranslate] != "undefined" && typeof thankYouTranslations[textToTranslate][translateLangThankYou] != "undefined" && thankYouTranslations[textToTranslate][translateLangThankYou] != "") {
    found = true;
    textToTranslate = thankYouTranslations[textToTranslate][translateLangThankYou];
  }
  if (!found) {
    translationsNotFoundThankYou.push(textToTranslate);
  }
  return textToTranslate;
}

var extraValidators = [];

function initializeExtraValidators() {
  extraValidators = [];
  if (typeof blackListValidatorEnabled != "undefined" && blackListValidatorEnabled == "true") {
    extraValidators.push(blackListValidator);
    blackListValidator(true);
  }
  if (typeof studentValidatorEnabled != "undefined" && studentValidatorEnabled == "true") {
    extraValidators.push(studentValidator);
    studentValidator(true);
  }
  
  if (extraValidators.length != 0) {
    console.log(extraValidators);
    console.log("Extra validators:");
    $("form:not([name=translationPicklistForm])").submit(function (event) {
      var extraValidatorsRejected = false;
      for (var validatorIndex = 0; validatorIndex < extraValidators.length; validatorIndex++) {
        if (!extraValidators[validatorIndex]()) {
          console.log("Extra validator rejected");
          console.log(extraValidators[validatorIndex].name);
          extraValidatorsRejected = true;
        }
      }
      if (extraValidatorsRejected) {
        return false;
      }
    });
  }
}

function studentValidator(init) {
  if (typeof init != "undefined" && init) {
    console.log("init studentValidator");
    if (typeof studentValidatorPopUpText !== "undefined") {
      $("#studentPopUpValidatorText").text("");
      if(typeof _translateRegistrationForm == "function") {
        studentValidatorPopUpText = _translateRegistrationForm(studentValidatorPopUpText);
      }
      $("#studentPopUpValidatorText").append(studentValidatorPopUpText);
    }
    $(document).on("change", "[name='primaryRole'],[name='primaryRole1'],[name='primaryRole2']", function () {
      studentValidator();
    });

    return;
  }
  if ($("[name='primaryRole']").val() == "Student" || $("[name='primaryRole1']").val() == "Student" || $("[name='primaryRole2']").val() == "Student") {
    $("#popupStudentCommon").show();
    $("#popupStudentCommonClose").click(function () {
      $("#popupStudentCommon").hide();
      $("[name='primaryRole'],[name='primaryRole1'],[name='primaryRole2']").val("");
    });
    return false;
  }
  return true;
}

if (typeof emailSubmitDisabled === "undefined") {
  emailSubmitDisabled = false;
}

function blackListValidator(init) {
  if (typeof init != "undefined" && init) {
    console.log("init blackListValidator");

    $(document).on("change", "[name='emailAddress']", function () {
      if (!emailSubmitDisabled) {
        $("[type=Submit]").attr("disabled", false);
        $("[type=Submit]").css("cursor", "pointer");
      }
      $(".loader").remove();
      blackListValidator();
    });


    $(document).on("keyup", "[name='emailAddress']", function () {
      if (!emailSubmitDisabled) {
        $("[type=Submit]").attr("disabled", false);
        $("[type=Submit]").css("cursor", "pointer");
      }
      $(".loader").remove();
      blackListValidator();
    });
    $(document).on("keydown", "[name='emailAddress']", function () {
      if (!emailSubmitDisabled) {
        $("[type=Submit]").attr("disabled", false);
        $("[type=Submit]").css("cursor", "pointer");
      }
      $(".loader").remove();
      blackListValidator();
    });

    return;
  }

  $(".BlackListError").remove();
  $("[name='emailAddress']").parent().removeClass("LV_invalid_field");

  if (typeof emailBlacklist == "undefined") {
    return true;
  }

  splited = $("[name='emailAddress']").val().split("@");
  if (splited.length > 1) {
    splited[1] = splited[1].toLowerCase().trim();
    var fullHost = splited[1];
    host = fullHost.split(".")[0];
    var lastPart = fullHost.split(".");
    lastPart = lastPart[lastPart.length - 1];
    const emailBlacklistfirstpart = [];
    emailBlacklist.forEach(function (i) {
      emailBlacklistfirstpart.push(i.split(".")[0]);
    });
    var exceptionFlag = true;
    if(host == "mail") {
      if(fullHost.includes(".ac.za") || ["us","edu","org","mx","ca","sg"].includes(lastPart)){
        exceptionFlag = false;
      }
    }
    if (exceptionFlag && emailBlacklistfirstpart.includes(host)) {
      if (typeof emailBlacklistErrorMessage == "undefined") {
        emailBlacklistErrorMessage = "Please provide your institution/business email address.";
      }
      temp = "<span style='display:block!important' class=\"BlackListError LV_validation_message LV_invalid\">" + emailBlacklistErrorMessage + "</span>";
      $("[name='emailAddress']").parent().append(temp);
      $("[name='emailAddress']").parent().addClass("LV_invalid_field");
      return false;
    }
  }
  return true;
}

/* Fix form height Start */
  setInterval(function () {
    if ($(document).width() >= 1200) {
      $("#about").css("min-height", $("#download").height() - 140);
    } else {
      $("#about").css("min-height", "");
    }
    if(typeof fixInputHeights == "function") {
      fixInputHeights();
    }
  }, 200);
  
/* Fix form height End */

var queryT = window.location.search.substring(1);
var varsT = queryT.split("&");
for (var i = 0; i < varsT.length; i++) {
    var pair = varsT[i].split("=");
    if (pair[0] == "debug") {
        debug_mode = true;
    }
    if (pair[0] == "tr_lang") {
      window.translateFormLanguage = pair[1];
    }
    if (pair[0] == "tr_lang_dates") {
        window.datesLocale = pair[1];
    }
}
if (typeof tr_lang !== "undefined" && tr_lang != "") {
  window.translateFormLanguage = tr_lang;
}
if (typeof tr_lang_dates !== "undefined" && tr_lang_dates != "") {
  window.datesLocale = tr_lang_dates;
}

// Initialization
setutm();
readutm();
clearWhiteSpaces();

showFieldShared("dietaryRequirements");

LeadRouting = LeadRouting.toLowerCase();
$('input[name="leadRouting"]').val(LeadRouting);

var emailBlacklist = [
  "12yahoo.com",
  "2005yahoo.com",
  "44yahoo.com",
  "6654.ki.com",
  "96yahoo.com",
  "975.hotmail.co.uk",
  "adelphia.net",
  "aim.com",
  "ameritech.net",
  "aol.com",
  "att.net",
  "attglobal.net",
  "ayahoo.com",
  "bell.ca",
  "bellsouth.com",
  "bellsouth.net",
  "bigpond.com",
  "bigpond.net.au",
  "blueyonder.co.uk",
  "bt.com",
  "btinternet.com",
  "cable.comcast.com",
  "carolina.rr.com",
  "cfl.rr.com",
  "charter.net",
  "chotmail.com",
  "comcast.net",
  "cox.com",
  "cox.net",
  "csc.com",
  "earthlink.net",
  "email.com",
  "excite.com",
  "ft.hotmail.com",
  "fuckhotmail.com",
  "gmail.com",
  "gmal.com",
  "googlemail.com",
  "hhotmail.com",
  "home.com",
  "hot.ee",
  "hotmail.be",
  "hotmail.bg",
  "hotmail.ca",
  "hotmail.ccom",
  "hotmail.cim",
  "hotmail.cmo",
  "hotmail.co",
  "hotmail.co.id",
  "hotmail.co.il",
  "hotmail.co.jp",
  "hotmail.co.th",
  "hotmail.co.uk",
  "hotmail.co.za",
  "hotmail.co0m",
  "hotmail.coim",
  "hotmail.cojm",
  "hotmail.com",
  "hotmail.com.ar",
  "hotmail.com.au",
  "hotmail.com.br",
  "hotmail.com.mx",
  "hotmail.com.my",
  "hotmail.com.tr",
  "hotmail.com.tw",
  "hotmail.con",
  "hotmail.conm",
  "hotmail.cz",
  "hotmail.de",
  "hotmail.dk",
  "hotmail.eg",
  "hotmail.es",
  "hotmail.ez",
  "hotmail.fr",
  "hotmail.gr",
  "hotmail.hu",
  "hotmail.it",
  "hotmail.net",
  "hotmail.nl",
  "hotmail.om",
  "hotmail.org",
  "hotmail.ro",
  "hotmail.rs",
  "hotmail.ru",
  "hotmail.se",
  "hotmail.si",
  "hotmail.uk",
  "hotmaill.com",
  "hotmailllllly.com",
  "ieee.org",
  "inbox.com",
  "ix.netcom.com",
  "jhotmail.com",
  "juniper.net",
  "juno.com",
  "level3.com",
  "live.ca",
  "live.com",
  "live.fr",
  "lycos.com",
  "mac.com",
  "mail.com",
  "mail.ru",
  "mail.sprint.com",
  "mail.yahoo.com",
  "mailinator.com",
  "mailyahoo.co.in",
  "me.com",
  "msn.com",
  "nc.rr.com",
  "ncmail.net",
  "netscape.net",
  "netzero.com",
  "netzero.net",
  "noemail.com",
  "ntlworld.com",
  "optonline.net",
  "optusnet.com.au",
  "pacbell.net",
  "qwest.com",
  "rediffmail.com",
  "roadrunner.com",
  "rocketmail.com",
  "rogers.com",
  "sbc.com",
  "sbc.yahoo.com",
  "sbcglobal.net",
  "sbcyahoo.com",
  "shaw.ca",
  "sympatico.ca",
  "tampabay.rr.com",
  "telus.com",
  "telus.net",
  "tiscali.co.uk",
  "twtelecom.com",
  "tx.rr.com",
  "tyahoo.com",
  "usa.net",
  "verizon.com",
  "verizon.net",
  "verizonwireless.com",
  "videotron.ca",
  "webroot.com",
  "wi.rr.com",
  "worldnet.att.net",
  "xtra.co.nz",
  "yahoo.bom",
  "yahoo.c",
  "yahoo.ca",
  "yahoo.ccom",
  "yahoo.cim",
  "yahoo.cm",
  "yahoo.cn",
  "yahoo.co",
  "yahoo.co.id",
  "yahoo.co.in",
  "yahoo.co.jp",
  "yahoo.co.kr",
  "yahoo.co.nz",
  "yahoo.co.th",
  "yahoo.co.uk",
  "yahoo.coin",
  "yahoo.colin",
  "yahoo.com",
  "yahoo.com-",
  "yahoo.com.ar",
  "yahoo.com.au",
  "yahoo.com.br",
  "yahoo.com.cn",
  "yahoo.com.hk",
  "yahoo.com.mx",
  "yahoo.com.my",
  "yahoo.com.ph",
  "yahoo.com.sg",
  "yahoo.com.srg",
  "yahoo.com.tr",
  "yahoo.com.tw",
  "yahoo.com.uk",
  "yahoo.com.vn",
  "yahoo.comm",
  "yahoo.con",
  "yahoo.coom",
  "yahoo.cpm",
  "yahoo.de",
  "yahoo.dk",
  "yahoo.es",
  "yahoo.fr",
  "yahoo.gr",
  "yahoo.ie",
  "yahoo.in",
  "yahoo.it",
  "yahoo.lt",
  "yahoo.no",
  "yahoo.ocm",
  "yahoo.ocm.cn",
  "yahoo.om",
  "yahoo.pl",
  "yahoo.se",
  "yahooco.uk",
  "yahool.co.th",
  "yahool.com",
  "yahoom.com",
  "yahoomail.co.in",
  "yahoomail.com",
  "yahooo.com",
  "ymail.com",
  "aol.com",
  "att.net",
  "comcast.net",
  "facebook.com",
  "gmail.com",
  "gmx.com",
  "googlemail.com",
  "google.com",
  "hotmail.com",
  "hotmail.co.uk",
  "mac.com",
  "me.com",
  "mail.com",
  "msn.com",
  "live.com",
  "sbcglobal.net",
  "verizon.net",
  "yahoo.com",
  "yahoo.co.uk",
  "email.com",
  "games.com",
  "gmx.net",
  "hush.com",
  "hushmail.com",
  "icloud.com",
  "inbox.com",
  "lavabit.com",
  "love.com",
  "outlook.com",
  "pobox.com",
  "rocketmail.com",
  "safe-mail.net",
  "wow.com",
  "ygm.com",
  "ymail.com",
  "zoho.com",
  "fastmail.fm",
  "yandex.com",
  "bellsouth.net",
  "charter.net",
  "cox.net",
  "earthlink.net",
  "juno.com",
  "btinternet.com",
  "virginmedia.com",
  "blueyonder.co.uk",
  "freeserve.co.uk",
  "live.co.uk",
  "ntlworld.com",
  "o2.co.uk",
  "orange.net",
  "sky.com",
  "talktalk.co.uk",
  "tiscali.co.uk",
  "virgin.net",
  "wanadoo.co.uk",
  "bt.com",
  "sina.com",
  "qq.com",
  "naver.com",
  "hanmail.net",
  "daum.net",
  "nate.com",
  "yahoo.co.jp",
  "yahoo.co.kr",
  "yahoo.co.id",
  "yahoo.co.in",
  "yahoo.com.sg",
  "yahoo.com.ph",
  "hotmail.fr",
  "live.fr",
  "laposte.net",
  "yahoo.fr",
  "wanadoo.fr",
  "orange.fr",
  "gmx.fr",
  "sfr.fr",
  "neuf.fr",
  "free.fr",
  "gmx.de",
  "hotmail.de",
  "live.de",
  "online.de",
  "t-online.de",
  "web.de",
  "yahoo.de",
  "mail.ru",
  "rambler.ru",
  "yandex.ru",
  "ya.ru",
  "list.ru",
  "hotmail.be",
  "live.be",
  "skynet.be",
  "voo.be",
  "tvcablenet.be",
  "telenet.be",
  "hotmail.com.ar",
  "live.com.ar",
  "yahoo.com.ar",
  "fibertel.com.ar",
  "speedy.com.ar",
  "arnet.com.ar",
  "yahoo.com.mx",
  "live.com.mx",
  "hotmail.es",
  "hotmail.com.mx",
  "prodigy.net.mx",
  "29bg.freeserve.co.uk",
  "abrownless.freeserve.co.uk",
  "aipotu.freeserve.co.uk",
  "appledown99.freeserve.co.uk",
  "bauress.freeserve.co.uk",
  "beth8082.freeserve.co.uk",
  "cousins1.freeserve.co.uk",
  "delucchi.freeseerve.co.uk",
  "devlin-fitness.freeserve.co.uk",
  "erldal97.freeserve.co.uk",
  "free.fr",
  "free.umobile.edu",
  "free2Learn.org.uk",
  "free411.com",
  "free-fast-email.com",
  "freelan.com.mx",
  "freelance.com",
  "freelance-idiomas.com.ar",
  "freelancer.com",
  "freemail.gr",
  "freemail.hu",
  "freemail.ru",
  "freemymail.cz.cc",
  "freenet.co.uk",
  "freenet.de",
  "freeolamail.com",
  "free-q.com",
  "free-qu.com",
  "freesitemail.com",
  "freeuk.com",
  "freewave.com",
  "msn.com",
  "none.co",
  "none.com",
  "none.edu",
  "noneofyourbusiness.com",
  "nonsuchschool.org",
  "onefreemail.co.cc",
  "ostrycharz.free-online.co.uk",
  "spamfree.thanks",
  "stayfree.co.uk",
  "textfree.us",
  "theemailfree.com",
  "yahoo.com",
  "yars.free.net",
  "ypd58.freeserve.co.uk",
  "gmeal.com",
];

thankYouTranslations = {
  Home: { nl: "Home", fr: "Accueil", sv: "Hem", es: "Inicio", pt: "Início", de: "Home", ar: "الرئيسية", tr: "Ana Sayfa" },
  "About Blackboard": { nl: "Over Blackboard", fr: "A propos de Blackboard", sv: "Om Blackboard", es: "Acerca de Blackboard", pt: "Sobre o Blackboard", de: "Über Blackboard", ar: "حول بلاك بورد", tr: "Blackboard Hakkında" },
  "Contact Us": { nl: "Contacteer ons", fr: "Nous contacter", sv: "Kontakta oss", es: "Contáctenos", pt: "Contato", de: "Kontakt", ar: "اتصل بنا", tr: "Bize Ulaşın" },
  "Thank you for registering": { nl: "Uw registratie is bevestigd", fr: "Merci pour votre inscription", sv: "Tack för din anmälan", es: "Gracias por registrarse", pt: "Obrigado por se registrar", de: "Vielen Dank für Ihre Registrierung", ar: "شكرًا لتسجيلك", tr: "Kayıt olduğunuz için teşekkürler" },
  "Your registration for the webinar is confirmed.": { nl: "Uw deelname is bevestigd ", fr: "Votre inscription à notre webinaire est confirmée.", sv: "Din anmälan är bekräftad.", es: "A continuación encontrará los detalles de la sesión para los webinars.", pt: "Abaixo você encontrará os detalhes da sessão para os webinars.", de: "Wir bestätigen Ihre Registrierung für das Webinar.", ar: "تم تأكيد تسجيلك في الندوة عبر الويب.", tr: "Web seminerine kaydınız onaylandı." },
  "Time &amp;amp; Date:": { nl: "Tijd en Datum:", fr: "Heure et date:", sv: "Datum och tid:", es: "Fecha &amp; hora:", pt: "Encontro &amp; hora:", de: "Datum ; Uhrzeit:", ar: "الوقت والتاريخ:", tr: "Zaman &amp; Tarih:" },
  "Your Time &amp;amp; Date:": { nl: "Uw tijd en datum:", fr: "Heure et date locales:", sv: "Ditt datum och tid:", es: "Fecha &amp; hora local:", pt: "Encontro &amp; horário local:", de: "Ortszeit:", ar: "التاريخ والوقت المحليين:", tr: "Senin zaman &amp; Tarih:" },
  "Time &amp; Date:": { nl: "Tijd en Datum:", fr: "Heure et date:", sv: "Datum och tid:", es: "Fecha &amp; hora:", pt: "Encontro &amp; hora:", de: "Datum ; Uhrzeit:", ar: "الوقت والتاريخ:", tr: "Zaman &amp; Tarih:" },
  "Your Time &amp; Date:": { nl: "Uw tijd en datum:", fr: "Heure et date locales:", sv: "Ditt datum och tid:", es: "Fecha &amp; hora local:", pt: "Encontro &amp; horário local:", de: "Ortszeit:", ar: "التاريخ والوقت المحليين:", tr: "Senin zaman &amp; Tarih:" },
  "Duration:": { nl: "Duurtijd:", fr: "Durée:", sv: "Längd:", es: "Duración:", pt: "Duração:", de: "Dauer:", ar: "المدة:", tr: "Süresi:" },
  "minutes": { nl: "minuten", fr: "minutes", sv: "minuter", es: "minutos", pt: "minutos", de: "minuten", ar: "دقيقة", tr: "dakika" },
  "View description »": { nl: "Bekijk beschrijving »", fr: "Voir Description »", sv: "Visa beskrivning »", es: "Ver descripción »", pt: "Ver Descrição »", de: "Beschreibung ansehen", ar: "عرض الوصف", tr: "Açıklamayı görüntüle" },
  "Hide description »": { nl: "Verberg beschrijving »", fr: "Masquer description »", sv: "Dölj beskrivning »", es: "Ocultar descripción »", pt: "Esconder descripción »", de: "Beschreibung verbergen", ar: "إخفاء الوصف", tr: "Açıklamayı gizle" },
  "This webinar will take place using Blackboard Collaborate.": { nl: "Deze webinar wordt gegeven via Blackboard Collaborate.", fr: "Le webinaire se déroulera en salle de classe virtuelle Blackboard Collaborate.", sv: "Webinariet sker I webmötesverktyget Blackboard Collaborate.", es: "Se realizará el webinar a través de Blackboard Collaborate.", pt: "O webinar será realizado por meio do Blackboard Collaborate. A sala de Collaborate será aberta cerca de 10 minutos antes do horário de início.", de: "Das Webinar findet in einem virtuellen Konferenzraum von Blackboard Collaborate™ statt.", ar: "تعرض هذه الندوة عبر الويب باستخدام منصة Blackboard Collaborate.", tr: "Bu web semineri, Blackboard Collaborate kullanılarak gerçekleştirilecektir." },
  "Learn how to get the best experience in using Blackboard Collaborate": { nl: "Ontdek hoe u de webinar het beste ervaart met Blackboard Collaborate", fr: "Apprenez comment bénéficier de la meilleure expérience Blackboard Collaborate", sv: "Bekanta dig med Blackboard Collaborate här", es: "Conozca como obtener una mejor experiencia usando Blackboard Collaborate", pt: "Use esse tempo para acessar e verificar se tudo funciona corretamente", de: "Besuchen Sie unsere Support-Seiten zur Nutzung von Blackboard Collaborate.", ar: "تعلّم كيف تستمتع بأفضل تجربة مع منصة Blackboard Collaborate.", tr: "Blackboard'u kullanırken en iyi deneyimi nasıl elde edeceğinizi öğrenin İşbirliği yap." },
  "Add to Calendar": { nl: "Voeg toe aan de kalender", fr: "Ajouter au calendrier", sv: "Lägg till i kalendern", es: "GUARDAR EN CALENDARIO", pt: "Salvar no Calendário", de: "Ihrem Kalender hinzufügen", ar: "إضافة إلى التقويم", tr: "Takvime ekle" },
  "Join the webinar": { nl: "Start de webinar", fr: "Rejoindre le webinaire", sv: "Gå med i webinaret", es: "Acceso al webinar", pt: "Acceso al webinar", de: "Zum Webinar", ar: "انضم إلى الجلسة", tr: "Web seminerine katılın" },
  "Sorry, we can't load your event details.": { nl: "Sorry, we kunnen uw evenement details niet laden.", fr: "Désolé, nous ne pouvons pas charger les détails de votre événement", sv: "Vi kan tyvärr inte ladda din evenemangsinformation.", es: "Lo sentimos, no podemos cargar los detalles de su evento.", pt: "Não foi possível enviar os detalhes do seu evento.", pt: "Lo sentimos, no podemos cargar los detalles de su evento.", de: "Sorry, wir können Ihre event-details nicht laden.", ar: "عذرًا، لا يمكننا تحميل تفاصيل حدثك.", tr: "Üzgünüz, etkinlik ayrıntılarınızı yükleyemiyoruz." },
  "It seems you have an ad blocker in place or may have a browser which blocks cookies which prevents us from loading the event details.": { nl: "Het lijkt erop dat U een ad-blocker actief heeft of Uw webrowser blokkeert cookies waardoor wij de evenement details niet kunnen laden.", fr: "Il semble que vous ayez un bloqueur de publicité en place ou que vous ayez un navigateur qui bloque les cookies, ce qui nous empêche de charger les détails de l'événement.", sv: "Du verkar ha en annonsblockerare på plats eller en webbläsare som blockerar cookies som hindrar oss från att ladda händelsedetaljer.", es: "Lo sentimos, no podemos cargar los detalles de su evento. Parece que tenemos problemas para cargar los detalles de su evento. Inténtelo de nuevo. Si el problema persiste, contácte a hablecon@blackboard.com.", pt: "Parece que você tem um bloqueador de anúncios habilitado ou pode ter um navegador que bloqueia cookies, impedindo-nos de carregar os detalhes do evento.", de: "Leider können wir die Informationen zur Veranstaltung nicht laden. Dies kann passieren, wenn Ihre Verbindung langsam ist, wenn Ihr Browser keine Cookies akzeptiert oder wenn Sie ein Browser-Plugin zum Blockieren von Werbeanzeigen aktiviert haben.", ar: "يبدو أن لديك مانع إعلانات أو متصفح يحجب ملفات تعريف الارتباط مما يمنعنا من تحميل تفاصيل الحدث.", tr: "Görünüşe göre bir reklam engelleyiciniz var ya da olay ayrıntılarını yüklememizi engelleyen çerezleri engelleyen bir tarayıcınız olabilir." },
  "Your registration has been received but please unblock this page and refresh so that we can show you the right links and details.": { nl: "We hebben uw registratie goed ontvangen, maar probeer deze pagina aan uw uitzonderingen toe te voegen van uw ad-blocker. Als U cookies geblokkeerd heeft in uw browser, voeg deze website dan toe aan uw uitzonderingen en laad de pagina opnieuw zodat wij de pagina correct kunnen weergeven.", fr: "Votre inscription a été reçue, mais veuillez débloquer cette page et actualiser afin que nous puissions vous partager les bons liens et détails.", sv: "Din registrering har mottagits. Vänligen avblockera den här sidan och uppdatera så att vi kan visa dig rätt länkar och detaljer.", es: "Se ha recibido su registro, sin embargo debe marcar esta página como desbloqueada y refrescar su navegador para que podamos mostrarle los enlaces y detalles correctos.", pt: "Seu registro foi recebido, no entanto, você deve marcar esta página como desbloqueada e atualizar seu navegador para que possamos mostrar os links e detalhes corretos.", de: "Bitte überprüfen Sie dies und versuchen Sie es erneut, indem Sie die Seite neu laden. Sollte das Problem bestehen bleiben, Setzen Sie sich bitte mit uns in Verbindung.", ar: "تم استلام تسجيلك ولكن يرجى فتح هذه الصفحة وتحديثها حتى نتمكن من عرض الروابط والتفاصيل الصحيحة.", tr: "Kaydınız alındı, ancak lütfen bu sayfanın engelini kaldırın ve size doğru bağlantıları ve ayrıntıları gösterebilmemiz için yenileyin." },
  "That's embarrassing.": { nl: "Dit is vervelend.", fr: "C'est embarrassant.", sv: "Det här är lite pinsamt.", es: "¡Lo sentimos!", pt: "Sentimos muito!", de: "Das ist peinlich.", ar: "هذا محرج.", tr: "Bu utanç verici." },
  "We seem to have trouble locating your event. Please try again.": { nl: "Het lijkt erop dat we problemen ondervinden om Uw evenement te vinden. Probeer het alstublieft opnieuw.", fr: "Nous semblons avoir du mal à localiser votre événement. Veuillez réessayer.", sv: "Vi har problem med att hitta ditt evenemang. Var god försök igen.", es: "Parece que tenemos problemas para cargar los detalles de su evento. Inténtelo de nuevo.", pt: "Parece que estamos tendo problemas para carregar os detalhes do seu evento. Tente de novo.", de: "Wir haben Probleme, Ihr webinar zu finden. Versuchs noch mal.", ar: "يبدو أن هناك مشكلة في تحديد موقع حدثك. يرجى المحاولة مرة أخرى.", tr: "Etkinliğinizi bulmakta sorun yaşıyoruz. Lütfen tekrar deneyin." },
  "If the problem persists, please let us know at": { nl: " Als het probleem zich blijft voordoen, laat het ons weten via", fr: "Si le problème persiste, veuillez nous en informer en envoyant un email à", sv: " Om problemet kvarstår, vänligen meddela oss på", es: "Si el problema persiste, contácte a", pt: "Se o problema persistir, entre em contato", de: "Bitte überprüfen Sie den Link und versuchen Sie es erneut. Sollte das Problem bestehen bleiben, setzen Sie sich bitte mit uns in Verbindung", ar: "إذا استمرت المشكلة، يرجى التواصل معنا عبر", tr: "Sorun devam ederse, lütfen şu adresten bize bildirin" },
  "One moment while we load the event details...": { nl: "Een ogenblik geduld alstublieft, we laden uw evenement…", fr: "Un instant pendant que nous chargeons les détails de l'événement…", sv: "Ett ögonblick medan vi laddar information om evenemanget…", es: "Un momento mientras encontramos tu registro…", pt: "Espere um momento enquanto carregamos os detalhes do seu treinamento…", pt: "Un momento mientras encontramos tu registro…", de: "Einen Moment, während wir die Veranstaltungsdetails laden…", ar: "لحظة من فضلك حتى نحمّل تفاصيل الحدث...", tr: "Etkinlik ayrıntılarını yüklerken bir dakika..." },
  "At the time and date of the webinar, please use this link to join the session:": { nl: "Op de tijd en datum van de webinar, volg deze link om de sessie te starten:", fr: "À l'heure et à la date du webinaire, veuillez utiliser ce lien pour rejoindre la session:", sv: "Använd länken för att gå med i sessionen när webbinariet äger rum:", es: "En la fecha y hora del webinar, utilice este enlace para unirse a la sesión:", pt: "En la fecha y hora del webinar, utilice este enlace para unirse a la sesión:", de: "Zum Webinar:", ar: "في وقت وتاريخ الندوة عبر الويب، يرجى استخدام هذا الرابط للانضمام إلى الجلسة:", tr: "Webinarın yapılacağı saat ve tarihte, oturuma katılmak için lütfen şu bağlantıyı kullanın:" },
  "We are looking forward to seeing you at our webinar!": { nl: "We kijken ernaaruit om U te ontmoeten tijdens onze webinar!", fr: "Nous avons hâte de vous voir lors de notre webinaire!", sv: "Vi ser fram emot att träffa dig på vårt webinar!", es: "¡Esperamos verlo en nuestro webinar!", pt: "¡Esperamos verlo en nuestro webinar!", de: "Wir freuen uns darauf, Sie in unserem Webinar begrüßen zu dürfen!", ar: "نحن نتطلع إلى رؤيتك في ندوة الويب الخاصة بنا!", tr: "Sizi web seminerimizde görmeyi dört gözle bekliyoruz!" },
  "* Ensuring a good webinar experience *": { nl: "* Zo heeft u de beleefd U deze webinar het beste *", fr: "* Garantir une bonne experience de webinaire *", sv: "* För att allt ska flyta under webinariet *", es: "* Asegurando una buena experiencia de webinar *", pt: "* Garantindo uma boa experiência *", de: "* Gewährleistung einer guten Webinar-Erfahrung *", ar: "* ضمان تجربة جيدة للندوة عبر الويب *", tr: "* İyi bir web semineri deneyimi sağlamak *" },
  "The webinar will take place in a Blackboard Collaborate&amp;trade; virtual conference room. You will need to make sure you have a good internet connection and your computer speakers are turned on as audio will be via VOIP.": { nl: "The webinar vind plaats in een Blackboard Collaborate™  virtuele conferentie ruimte. Het is een vereiste dat U een goede en stabiele internetverbinding heeft en uw speakers van uw computer aan staan. De audio wordt gestreamd via VOIP.", fr: "Le webinaire aura lieu dans une salle de conférence virtuelle Blackboard Collaborate ™. Assurez-vous que vous disposez d'une bonne connexion Internet et que les haut-parleurs de votre ordinateur soient allumés car l'audio se fera via VOIP.", sv: "Webinariet sker I ett virtuellt konferensrum för Blackboard Collaborate ™. Säkerställ en bra internetanslutning och att datorhögtalarna är påslagna eftersom ljudet kommer via VOIP.", es: "El webinar tendrá lugar en una sala de conferencias virtual de Blackboard Collaborate&amp;trade;. Asegúrese de tener una buena conexión a Internet y que los altavoces de su computadora estén encendidos ya que el audio se realizará a través de VOIP.", pt: "A sessão será realizada em uma sala de conferência virtual Blackboard Collaborate ™. Certifique-se de que tem uma boa ligação à Internet e de que os altifalantes do seu computador estão ligados, pois o áudio será via VOIP.", de: "Das Webinar findet in einem virtuellen Konferenzraum von Blackboard Collaborate™ statt. Stellen Sie sicher, dass Sie eine gute Internetverbindung haben und Ihre Computerlautsprecher eingeschaltet sind, da der Ton über VOIP übertragen wird. Für ein optimales Erlebnis empfehlen wir den Chrome Browser.", ar: "تعقد الندوة عبر الويب في غرفة اجتماعات افتراضية لـ Blackboard Collaborate. عليك التأكد من أن لديك اتصال إنترنت جيد وأن سماعات حاسوبك قيد التشغيل حيث سيكون الصوت من خلال وسيلة الصوت عبر بروتوكول الإنترنت VOIP.", tr: "Webinar, Blackboard Collaborate ™ sanal konferans odasında gerçekleştirilecektir. İyi bir internet bağlantınız olduğundan ve bilgisayar hoparlörlerinizin açık olduğundan emin olmanız gerekecek, çünkü ses VOIP aracılığıyla verilecektir." },
  "The webinar will take place in a Blackboard Collaborate&trade; virtual conference room. You will need to make sure you have a good internet connection and your computer speakers are turned on as audio will be via VOIP.": { nl: "The webinar vind plaats in een Blackboard Collaborate™  virtuele conferentie ruimte. Het is een vereiste dat U een goede en stabiele internetverbinding heeft en uw speakers van uw computer aan staan. De audio wordt gestreamd via VOIP.", fr: "Le webinaire aura lieu dans une salle de conférence virtuelle Blackboard Collaborate ™. Assurez-vous que vous disposez d'une bonne connexion Internet et que les haut-parleurs de votre ordinateur soient allumés car l'audio se fera via VOIP.", sv: "Webinariet sker I ett virtuellt konferensrum för Blackboard Collaborate ™. Säkerställ en bra internetanslutning och att datorhögtalarna är påslagna eftersom ljudet kommer via VOIP.", es: "El webinar tendrá lugar en una sala de conferencias virtual de Blackboard Collaborate&amp;trade;. Asegúrese de tener una buena conexión a Internet y que los altavoces de su computadora estén encendidos ya que el audio se realizará a través de VOIP.", pt: "A sessão será realizada em uma sala de conferência virtual Blackboard Collaborate ™. Certifique-se de que tem uma boa ligação à Internet e de que os altifalantes do seu computador estão ligados, pois o áudio será via VOIP.", de: "Das Webinar findet in einem virtuellen Konferenzraum von Blackboard Collaborate™ statt. Stellen Sie sicher, dass Sie eine gute Internetverbindung haben und Ihre Computerlautsprecher eingeschaltet sind, da der Ton über VOIP übertragen wird. Für ein optimales Erlebnis empfehlen wir den Chrome Browser.", ar: "تعقد الندوة عبر الويب في غرفة اجتماعات افتراضية لـ Blackboard Collaborate. عليك التأكد من أن لديك اتصال إنترنت جيد وأن سماعات حاسوبك قيد التشغيل حيث سيكون الصوت من خلال وسيلة الصوت عبر بروتوكول الإنترنت VOIP.", tr: "Webinar, Blackboard Collaborate ™ sanal konferans odasında gerçekleştirilecektir. İyi bir internet bağlantınız olduğundan ve bilgisayar hoparlörlerinizin açık olduğundan emin olmanız gerekecek, çünkü ses VOIP aracılığıyla verilecektir." },
  "* Browser based *": { nl: "* Browser based *", fr: "* Navigateur *", sv: "* Webbläsarbaserat *", es: "* Baseado no navegador *", pt: "", de: "* Fenêtre de navigateur *", ar: "* تستند إلى المتصفح *", tr: "* Tarayıcı tabanlı *" },
  "The webinar will be hosted in a browser window. We recommend using Chrome&amp;trade; for the best experience.": { nl: "De webinar wordt gehost in een webbrowser sherm. Voor de beste ervaring adviseren wij U Chrome™  te gebruiken.", fr: "Le webinaire sera hébergé dans une fenêtre de navigateur. Nous vous recommandons d'utiliser Chrome ™ pour une expérience optimale.", sv: "Webinariet sker via webläsare. Vi rekommenderar Chrome ™ för den bästa upplevelsen.", es: "El webinar se ejecutará en una ventana de navegador. Recomendamos usar Chrome&amp;trade; para una mejor experiencia.", pt: "A sessão será executada em uma janela do navegador. Recomendamos o uso do Chrome™ para uma melhor experiência.", de: "Für ein optimales Erlebnis empfehlen wir den Chrome Browser.", ar: "يتم استضافة الندوة عبر الويب في نافذة متصفح. نوصي باستخدام جوجل كروم للحصول على أفضل تجربة.", tr: "Webebinar bir tarayıcı penceresinde düzenlenecektir. En iyi deneyim için Chrome ™ kullanmanızı öneririz." },
  "The webinar will be hosted in a browser window. We recommend using Chrome&trade; for the best experience.": { nl: "De webinar wordt gehost in een webbrowser sherm. Voor de beste ervaring adviseren wij U Chrome™  te gebruiken.", fr: "Le webinaire sera hébergé dans une fenêtre de navigateur. Nous vous recommandons d'utiliser Chrome ™ pour une expérience optimale.", sv: "Webinariet sker via webläsare. Vi rekommenderar Chrome ™ för den bästa upplevelsen.", es: "El webinar se ejecutará en una ventana de navegador. Recomendamos usar Chrome&amp;trade; para una mejor experiencia.", pt: "A sessão será executada em uma janela do navegador. Recomendamos o uso do Chrome™ para uma melhor experiência.", de: "Für ein optimales Erlebnis empfehlen wir den Chrome Browser.", ar: "يتم استضافة الندوة عبر الويب في نافذة متصفح. نوصي باستخدام جوجل كروم للحصول على أفضل تجربة.", tr: "Webebinar bir tarayıcı penceresinde düzenlenecektir. En iyi deneyim için Chrome ™ kullanmanızı öneririz." },
  "* Join Early *": { nl: "* Log in een paar minuten voor de webinar begint *", fr: "* Rejoindre la session en avance *", sv: "* Gå med tidigt *", es: "* Únase con tiempo *", pt: "* Junte-se cedo *", de: "* Details zur Teilnahme *", ar: "* انضم مبكرًا *", tr: "* Erken Katılın *" },
  "If you can, join a session early and get to know your way around. You can then also set up your audio and video.": { nl: "", fr: "Si vous le pouvez, rejoignez une session 5-10 minutes avant l'heure prévue et familiarisez vous avec l'environement. Vous pouvez également configurer votre audio et vidéo.", sv: "Om du kan, gå med i sessionen lite tidigare för att bekanta dig. Också bra för att hinna ställa in ljud.", es: "De ser posible, únase a una sesión con tiempo. Posteriormente, también podrá configurar su audio y video", pt: "Se possível, junte-se a uma sessão mais cedo. Posteriormente, você também pode configurar seu áudio e vídeo", de: "Stellen Sie sicher, dass Sie den virtuellen Lernraum mindestens 5-10 Minuten vor Beginn Ihres Webinars betreten. Für ein perfektes Webinar-Erlebnis beachten Sie bitte unbedingt die folgenden Tipps.", ar: "إذا استطعت، انضم إلى الجلسة مبكرًا وتعرف على ما تريد. يمكنك بعد ذلك أيضًا إعداد الصوت والفيديو.", tr: "Mümkünse, erken bir oturuma katılın ve yolunuzu tanıyın. Daha sonra ses ve videonuzu da ayarlayabilirsiniz." },
  "* Learn More *": { nl: "* Hulp nodig? *", fr: "* En savoir plus *", sv: "* Läs mer *", es: "* Conozca más *", pt: "* Saiba mais *", de: "* Mehr erfahren *", ar: "*تعلّم المزيد*", tr: "* Daha fazla bilgi edin *" },
  "Follow this link to learn more:": { nl: "Klik op deze link om de help pagina op te reopen:", fr: "Suivez ce lien pour en savoir plus:", sv: "Webinariet sker I webmötesverktyget Blackboard Collaborate:", es: "Siga este enlace para obtener más información:", pt: "Siga este link para mais informações:", de: "Folgen Sie diesem Link, um mehr erfahren:", ar: "اتبع هذا الرابط لتعلّم المزيد:", tr: "Daha fazla bilgi edinmek için bu bağlantıyı izleyin" },
  "Follow this link to learn more: ": { nl: "Klik op deze link om de help pagina op te reopen: ", fr: "Suivez ce lien pour en savoir plus: ", sv: "Webinariet sker I webmötesverktyget Blackboard Collaborate: ", es: "Siga este enlace para obtener más información: ", pt: "Siga este link para mais informações: ", de: "Folgen Sie diesem Link, um mehr erfahren: ", ar: "اتبع هذا الرابط لتعلّم المزيد: ", tr: "Daha fazla bilgi edinmek için bu bağlantıyı izleyin " },
  "If you have any further questions about this webinar, the webinar series, or Blackboard in general, please send us an email at": { nl: "Mocht U meer vragen hebben over deze webinar, of onze andere webinar serie of algemene vragen over", fr: "Pour toute question concernant ce webinair, la série de webinaires ou Blackboard en général, n'hésitez pas à nous écrire à", sv: "Om du har fler frågor om webbinariet, webinarserien eller Blackboard i allmänhet, skicka ett e-postmeddelande till oss på", es: "Si tiene preguntas sobre este webinar, la serie de webinars o sobre Blackboard en general, por favor envíenos un email a", pt: "Si tiene preguntas sobre este webinar, la serie de webinars o sobre Blackboard en general, por favor envíenos un email a", de: "Wenn Sie weitere Fragen haben, senden Sie uns bitte eine E-Mail an", ar: "إذا كانت لديك أسئلة أخرى حول هذه الندوة عبر الويب أو سلسلة الندوة أو بلاك بورد بشكل عام، فيرجى إرسال بريد إلكتروني إلى", tr: "Bu webinarı, webinar serisi veya genel olarak Blackboard hakkında başka sorularınız varsa, lütfen şu adresten bize bir e-posta gönderin:" },
  "AskUs@blackboard.com": { nl: "AskEUROPE@blackboard.com", fr: "AskEUROPE@blackboard.com", sv: "AskEUROPE@blackboard.com", es: "hablecon@blackboard.com", pt: "hablecon@blackboard.com", de: "AskEUROPE@blackboard.com", ar: "AskMea@blackboard.com", tr: "AskMea@blackboard.com" },
  "If you have any further questions about this webinar, the webinar series, or Blackboard in general, please send us an email at ": { nl: "Mocht U meer vragen hebben over deze webinar, of onze andere webinar serie of algemene vragen over ", fr: "Pour toute question concernant ce webinair, la série de webinaires ou Blackboard en général, n'hésitez pas à nous écrire à ", sv: "Om du har fler frågor om webbinariet, webinarserien eller Blackboard i allmänhet, skicka ett e-postmeddelande till oss på ", es: "Si tiene preguntas sobre este webinar, la serie de webinars o sobre Blackboard en general, por favor envíenos un email a ", pt: "Si tiene preguntas sobre este webinar, la serie de webinars o sobre Blackboard en general, por favor envíenos un email a ", de: "Wenn Sie weitere Fragen haben, senden Sie uns bitte eine E-Mail an ", ar: "إذا كانت لديك أسئلة أخرى حول هذه الندوة عبر الويب أو سلسلة الندوة أو بلاك بورد بشكل عام، فيرجى إرسال بريد إلكتروني إلى ", tr: "Bu webinarı, webinar serisi veya genel olarak Blackboard hakkında başka sorularınız varsa, lütfen şu adresten bize bir e-posta gönderin " },
  "Online using Blackboard Collaborate": { nl: "Deze webinar wordt gegeven via Blackboard Collaborate", fr: "En ligne via Blackboard Collaborate", sv: "Webinariet sker I webmötesverktyget Blackboard Collaborate", es: "En línea con Blackboard Collaborate", pt: "Online com o Blackboard Collaborate", de: "Online mit Blackboard Collaborate", ar: "باستخدام منصة Blackboard Collaborate", tr: "Blackboard Collaborate aracılığıyla çevrimiçi" },
  "https://help.blackboard.com/Collaborate/Ultra/Participant/Get_Started": { nl: "https://help.blackboard.com/nl-nl/Collaborate/Ultra/Participant/Get_Started", fr: "https://help.blackboard.com/fr-fr/Collaborate/Ultra/Participant/Get_Started", sv: "https://help.blackboard.com/sv-se/Collaborate/Ultra/Participant/Get_Started", es: "https://help.blackboard.com/es-es/Collaborate/Ultra/Participant/Get_Started", pt: "https://help.blackboard.com/pt-br/Collaborate/Ultra/Participant/Get_Started", de: "https://help.blackboard.com/de-de/Collaborate/Ultra/Participant/Get_Started", ar: "https://help.blackboard.com/ar-sa/Collaborate/Ultra/Participant/Get_Started", tr: "https://help.blackboard.com/tr-tr/Collaborate/Ultra/Participant/Get_Started" },
  "https://help.blackboard.com/Collaborate/Ultra/Participant": { nl: "https://help.blackboard.com/nl-nl/Collaborate/Ultra/Participant/", fr: "https://help.blackboard.com/fr-fr/Collaborate/Ultra/Participant/", sv: "https://help.blackboard.com/sv-se/Collaborate/Ultra/Participant/", es: "https://help.blackboard.com/es-es/Collaborate/Ultra/Participant/", pt: "https://help.blackboard.com/pt-br/Collaborate/Ultra/Participant/", de: "https://help.blackboard.com/de-de/Collaborate/Ultra/Participant/", ar: "https://help.blackboard.com/ar-sa/Collaborate/Ultra/Participant/", tr: "https://help.blackboard.com/tr-tr/Collaborate/Ultra/Participant/" },
};

translationsNotFoundThankYou = [];
translateLangThankYou = "en";

initializeExtraValidators();

if(typeof translateRegistrationForm == "function") {
    translateRegistrationForm();
}
  • {{liTitle}}
    {{Time}}: {{webinarTimeTempLocal}}
{{webinarDayNameShort}}
  {{webinarDayShort}} {{webinarMonthShort}} {{seriesText}}
{{seriesText2}} {{Time}}: {{webinarTimeTempLocal}}
{{webinarMonthFull}} {{webinarDayShort}} {{seriesText}}
{{seriesText2}} {{webinarTimeTempLocal}}
{{webinarDayNameFull}} {{seriesText}}
{{webinarDayNameFullO}}, {{webinarMonthShort}} {{webinarDayShort}}
{{seriesText2}} {{webinarTimeTempLocal}}

{{webinarDayShort}} {{webinarMonthShort}} - {{webinarDayShortEnd}} {{webinarMonthShortEnd}}

{{Local time}}: {{webinarTimeLocal}}
{{webinarDescription}}
({{webinarTimeLocal}})
{{webinarDescription}}
 
var tableRowDropDown = [];
var webinarIdsRadioIds = [];
var debug_mode = false;
var drJqFlag = false;
var maxWidth = 0;
var maxWidth2 = 0;
var MAX_WEBINARS = 20;
$("form:not([name=translationPicklistForm]) *").off();

if (typeof window.translateRegistrationForm != "function") {
    window.translateRegistrationForm = function (text) { return text };
}
function showOnlyMyTimezone(e) {
    if ($(".showOnlyMyTimezoneContainer").hasClass("showOnlyMyTimezoneContainerOnlyLocal")) {
        $(".localTimezoneClassForHidding").show();
        var showOnlyMyTimezone = "Show only my timezone";
        if (typeof _translateRegistrationForm == "function") {
            showOnlyMyTimezone = _translateRegistrationForm(showOnlyMyTimezone);
        }
        $(".showOnlyMyTimezoneContainer a").html(showOnlyMyTimezone);
        $(".showOnlyMyTimezoneContainer").removeClass("showOnlyMyTimezoneContainerOnlyLocal");
    } else {
        $(".localTimezoneClassForHidding").hide();
        var showAllTimezone = "Show all timezones";
        if (typeof _translateRegistrationForm == "function") {
            showAllTimezone = _translateRegistrationForm(showAllTimezone);
        }
        $(".showOnlyMyTimezoneContainer a").html(showAllTimezone);
        $(".showOnlyMyTimezoneContainer").addClass("showOnlyMyTimezoneContainerOnlyLocal");
    }

    // $(".localTimeContainer").each(function (i, e) {
    //   e = $(e);
    //   var newVal = e.html();
    //   newVal = newVal.replace(localTimeText, timeText);
    //   e.html(newVal);
    // });
}

function resetDropdowns() {
    var dropDownMenus = $(".multibleWebinarDropDownHover");

    dropDownMenus.css("display", "");
    dropDownMenus.css("visibility", "");
}
function getWebinarName(row, col) {
    if (typeof CollabWebinar_EventNames[row] == "undefined") return "";
    if (typeof CollabWebinar_EventNames[row][col] == "undefined") return "";
    console.log(CollabWebinar_EventNames[row][col]);
    return CollabWebinar_EventNames[row][col];
}

function setSelected(selectedWebinarValue, skipiFormSelection = false) {
    if (parseInt(selectedWebinarValue) >= 0) {
        $("#selectone").css({
            display: "none",
        });
        for (i = 1; i <= CollabWebinar_Selectlists; i++) {
            $('select[name="W' + i + '_select"]').removeClass("LV_invalid_field");
        }
    } else {
        return;
    }

    if (CollabWebinar_Type == "radio" && !skipiFormSelection) {
        $("#radio-" + webinarIdsRadioIds[selectedWebinarValue]).prop("checked", true);
    } else if (CollabWebinar_Type == "checkbox" && !skipiFormSelection) {
        $("[name='W" + selectedWebinarValue + "_box']").prop("checked", true);
    }
    if (CollabWebinar_Selectlists < 2) {
        if (!skipiFormSelection) {
            $("form:not([name=translationPicklistForm]) [name='W1_select']").val(selectedWebinarValue);
        }
    } else {
        var tempFlagSelectListFound = false;
        for (var selectWebinarIndex = 0; selectWebinarIndex < selectWebinarsLists.length; selectWebinarIndex++) {
            if (selectWebinarsLists[selectWebinarIndex].includes(selectedWebinarValue - 1)) {
                if (!skipiFormSelection) {
                    $("form:not([name=translationPicklistForm]) [name='W" + (selectWebinarIndex + 1) + "_select']").val(selectedWebinarValue);
                }
                tempFlagSelectListFound = true;
                break;
            }
        }

        if (!tempFlagSelectListFound && !skipiFormSelection) {
            $("form:not([name=translationPicklistForm]) [name='W1_select']").val(selectedWebinarValue);
        }
    }
    if (!skipiFormSelection) {
        $("select[name='multibleWebinarsSelect']").val(selectedWebinarValue);
    }

    $(".multibleWebinarDropDownText").text("");
    $(".image.selected").removeClass("selected");
    $(".multibleWebinarDropDownText").append(tableRowDropDown[selectedWebinarValue]);

    $(".dropdownOption-" + selectedWebinarValue)
        .find(".image")
        .addClass("selected");
    // $(".dropdownOption-"+selectedWebinarValue).find(".image").css("vertical-align","middle");
    $(".multibleWebinarDropDownContents tr").height($(".multibleWebinarDropDown").outerHeight());

    var dropDownMenus = $(".multibleWebinarDropDownHover");
    dropDownMenus.css("display", "none");
    dropDownMenus.css("visibility", "hidden");
    $(":focus").blur();
    document.activeElement.blur();
    $(".multibleWebinarDropDownContainer td").css("min-width", maxWidth1 + "px");
    $(".multibleWebinarDropDownContainer td + td").css("min-width", maxWidth2 + "px");

    setTimeout(function () {
        if (screen.width > 767) {
            dropDownMenus.css("display", "");
            dropDownMenus.css("visibility", "");
        }
    }, 500);
}
window.fullWebinars = [];
function fullWebinarsUx() {
    if (fullWebinars.length < showedWebinarCounter && findGetParameter("fullWebinars") != "true") {
        return;
    }
    if (showedWebinarCounter == 0 && findGetParameter("fullWebinars") != "true") {
        return;
    }

    window.fullWebinarsFormTitleCopy = window.fullWebinarsFormTitleCopy ? window.fullWebinarsFormTitleCopy : "Registration is now closed.";
    window.fullWebinarsFormDescriptionCopy = window.fullWebinarsFormDescriptionCopy ? window.fullWebinarsFormDescriptionCopy : "Please contact <a href='mailto:askus@blackboard.com'>askus@blackboard.com</a> for more information.";
    window.fullWebinarsHeaderCopy = window.fullWebinarsHeaderCopy ? window.fullWebinarsHeaderCopy : "Registration is now closed";
    noWebinarsUxUpdate(true, window.fullWebinarsFormTitleCopy, window.fullWebinarsFormDescriptionCopy, window.fullWebinarsHeaderCopy);
}
function noWebinarsUxUpdate(hideForm, formTitle, formSubtitle, headerText) {
    if (hideForm) {
        $("form").hide();
        $("#register .section-title").next().css("margin-bottom", "0");
        $(".headline-container .site-description").css("margin-bottom", "0");
        $(".headline-container .site-CTA-container").hide();
        $("#register .register-overlay").attr('style', 'padding-bottom:0!important');
    }
    if (formTitle) {
        if (typeof _translateRegistrationForm == "function") {
            formTitle = _translateRegistrationForm(formTitle);
        }
        $("#register .section-title").html(formTitle);
    }
    if (formSubtitle) {
        if (typeof _translateRegistrationForm == "function") {
            formSubtitle = _translateRegistrationForm(formSubtitle);
        }
        $("#register .section-title").next().html(formSubtitle);
    }
    if (headerText) {
        if (typeof _translateRegistrationForm == "function") {
            headerText = _translateRegistrationForm(headerText);
        }
        $(".headline-container .site-description").html(headerText);

    }

    $(".webinarSingleContainerTop").css("display", "none");
    $(".multibleWebinarDropDownContainer").css("display", "none");
    $(".multibleWebinarsSelect").css("display", "none");
}

function initializeSelects() {
    console.log("initializeSelects start");

    // Translate english auto generated text here
    // var localTimeText = "Local time";
    // var timeText = "Time";
    // var startingOnText = "Starting on";
    // var webinarSeriesText = "Webinar series";
    // var datesLocale = "en";

    if (typeof localTimeText === "undefined") {
        localTimeText = "Local time";
    }
    if (typeof timeText === "undefined") {
        timeText = "Time";
    }

    if (typeof multipleSessionText === "undefined") {
        multipleSessionText = "Multiple sessions";
    }
    if (typeof startingOnText === "undefined") {
        startingOnText = "Starting on";
    }
    if (typeof webinarSeriesText === "undefined") {
        webinarSeriesText = "Webinar series";
    }
    multipleSessionText = webinarSeriesText;

    if (typeof datesLocale !== "undefined") {
        moment.locale(datesLocale);
    } else {
        moment.locale("en");
    }

    var abbrs = {
        BST: "GMT Sessions",
        GMT: "GMT Sessions",
        ET: "ET Sessions",
        EST: "ET Sessions",
        EDT: "ET Sessions",
        CST: "Central Standard Time Sessions",
        CDT: "Central Standard Time Sessions",
        MST: "Mountain Standard Time",
        MDT: "Mountain Daylight Time",
        PST: "Pacific Standard Time",
        PDT: "Pacific Daylight Time",
        EET: "Eastern European Time",
        EEST: "APAC Sessions",
        AEST: "APAC Sessions",
        AEDT: "APAC Sessions",
        CEST: "Central European Time Sessions",
        CET: "Central European Time Sessions",
        SGT: "Singapore Sessions",
    };

    moment.fn.zoneName = function () {
        var abbr = this.zoneAbbr();
        return abbrs[abbr] || abbr;
    };

    if (typeof Webinar_Type !== "undefined") {
        CollabWebinar_Type = Webinar_Type;
    }
    if (typeof EventSeries !== "undefined") {
        CollabWebinar_EventSeries = EventSeries;
    }
    if (typeof EventDescription !== "undefined") {
        CollabWebinar_Description = EventDescription;
    }
    if (typeof SeriesLength !== "undefined") {
        CollabWebinar_SeriesLength = SeriesLength;
    }
    if (typeof EventDates !== "undefined") {
        CollabWebinar_EventDates = EventDates;
    }
    if (typeof EventDates_All !== "undefined") {
        CollabWebinar_EventDates_All = EventDates_All;
    }
    if (typeof BulletListTitles !== "undefined") {
        CollabWebinar_BulletListTitles = BulletListTitles;
    }
    if (typeof SeriesDatesStr !== "undefined") {
        CollabWebinar_SeriesDatesStr = SeriesDatesStr;
    }
    if (typeof SeriesDatesStrLocal !== "undefined") {
        CollabWebinar_SeriesDatesStrLocal = SeriesDatesStrLocal;
    }
    if (typeof SeriesDatesStrET !== "undefined") {
        CollabWebinar_SeriesDatesStrET = SeriesDatesStrET;
    }

    if (typeof CollabWebinar_Type === "undefined") {
        CollabWebinar_Type = "nonCollab";
    }
    CollabWebinar_Type = CollabWebinar_Type.toLowerCase();

    if (typeof CollabWebinar_EventNames === "undefined") {
        CollabWebinar_EventNames = [];
    }
    if (typeof CollabWebinar_EventSeries === "undefined") {
        CollabWebinar_EventSeries = [];
    }
    if (typeof CollabWebinar_Description === "undefined") {
        CollabWebinar_Description = [];
    }

    if (typeof CollabWebinar_SeriesLength === "undefined") {
        CollabWebinar_SeriesLength = [];
    }
    if (typeof CollabWebinar_EventDates === "undefined") {
        CollabWebinar_EventDates = [];
    }
    if (typeof CollabWebinar_EventDates_All === "undefined") {
        CollabWebinar_EventDates_All = [];
    }
    if (typeof CollabWebinar_BulletListTitles === "undefined") {
        CollabWebinar_BulletListTitles = [];
    }
    if (typeof CollabWebinar_SeriesDatesStr === "undefined") {
        CollabWebinar_SeriesDatesStr = [];
    }
    if (typeof CollabWebinar_SeriesDatesStrLocal === "undefined") {
        CollabWebinar_SeriesDatesStrLocal = [];
    }
    if (typeof CollabWebinar_SeriesDatesStrET === "undefined") {
        CollabWebinar_SeriesDatesStrET = [];
    }
    if (typeof CollabWebinar_Selectlists === "undefined") {
        CollabWebinar_Selectlists = 1;
    }

    if (typeof CollabWebinar_Recurrence === "undefined") {
        CollabWebinar_Recurrence = "";
    }
    if (typeof CollabWebinar_EndDate === "undefined") {
        CollabWebinar_EndDate = ["", ""];
    }
    CollabWebinar_Recurrence = CollabWebinar_Recurrence.toLowerCase();

    selectWebinarsLists = [];

    for (var i = 1; i <= MAX_WEBINARS; i++) {
        if (typeof window["SelectLists" + i] == "undefined") {
            window["SelectLists" + i] = [];
        }
        selectWebinarsLists[i - 1] = window["SelectLists" + i];
        if (typeof window["SelectListsDivider" + i] == "undefined") {
            window["SelectListsDivider" + i] = [];
        }
    }

    if (typeof selectWebinarsListsNames === "undefined") {
        selectWebinarsListsNames = [];
    }

    if (typeof maxWebinarsOnPage === "undefined") {
        maxWebinarsOnPage = 100;
    }
    if (typeof recordingAvailable === "undefined") {
        recordingAvailable = false;
    } else if (recordingAvailable === "true") {
        recordingAvailable = true;
    } else {
        recordingAvailable = false;
    }

    if (typeof emailSubmitDisabled === "undefined") {
        emailSubmitDisabled = false;
    }

    if (typeof formPastWebinarsShow === "undefined") {
        formPastWebinarsShow = false;
    }

    if (typeof displayLocal === "undefined") {
        displayLocal = true;
    }

    if (typeof automaticTimezoneDivider != "undefined" && automaticTimezoneDivider == "true") {
        automaticTimezoneDivider = true;
    } else {
        automaticTimezoneDivider = false;
    }

    if (typeof automaticListDivider != "undefined" && automaticListDivider == "true") {
        automaticListDivider = true;
    } else {
        automaticListDivider = false;
    }

    var selectWebinar = $("select[name='multibleWebinarsSelect']");
    var selectWebinars = [];

    flagNotEmptyLists = false;

    for (var i = 0; i < CollabWebinar_Selectlists; i++) {
        selectWebinars[i] = $("select[name='W" + (i + 1) + "_select']");
    }

    for (var i = 0; i < selectWebinarsLists.length; i++) {
        if (selectWebinarsLists[i].length != 0) {
            flagNotEmptyLists = true;
        }
    }

    var selectWebinar_w1_radio = $(".field-control-wrapper input[name='W1_select'][type='radio']");
    var selectWebinar_w1_container = false;

    var counter = 0;
    window.showedWebinarCounter = 0;
    var counter2 = 0;
    var counter2Prev = 0;

    var localTimeZone = jstz.determine().name();
    var FirstTimeOnlyflag = true;
    $(".multibleWebinarDropDownContainer").css("display", "none");
    var BreakException = {
        error: "stop it",
    };
    try {
        var differentTimezones = [];
        var SelectListsDivider = {};
        if (automaticTimezoneDivider) {
            CollabWebinar_EventDates.forEach(function (element, CollabWebinar_EventDatesIndex) {
                var tempZZTimezone = moment.tz(element[0], element[1]).format("zz");
                if (!differentTimezones.includes(tempZZTimezone)) {
                    differentTimezones.push(tempZZTimezone);
                }
            });

            var timezoneUlContainerSingle = $("<div></div>");
            var timezoneUlContainerDouble = $("<div></div>");
            for (var timeZoneIndex = 0; timeZoneIndex < differentTimezones.length; timeZoneIndex++) {
                var timezoneUlContent = $("<div class='timezoneContainer timezoneContainer-" + timeZoneIndex + "'></div>");
                var timezoneH3 = "<h3 style='font-size: 21px;text-align: left;margin-bottom: 5px;' class='section-title'></h3>";
                if (selectWebinarsListsNames.length != 0) {
                    timezoneH3 = "<h3 class='section-title'></h3>";
                }

                var timezoneUlTitle = $(timezoneH3);
                timezoneUlTitle.html(differentTimezones[timeZoneIndex]);
                var timezoneUl = $("<ul class='WebinarTimesULS-Auto-" + timeZoneIndex + "' style=''></ul>");
                timezoneUlContent.append(timezoneUlTitle);
                timezoneUlContent.append(timezoneUl);
                timezoneUlContainerSingle.append(timezoneUlContent);

                timezoneUlContent = $("<div class='timezoneContainer timezoneContainer-" + timeZoneIndex + "'></div>");
                timezoneUlTitle = $(timezoneH3);
                timezoneUlTitle.html(differentTimezones[timeZoneIndex]);
                timezoneUlContent.append(timezoneUlTitle);

                timezoneUl = $("<div></div>");

                if (selectWebinarsListsNames.length == 0) {
                    timezoneUlLeft = $("<ul style='display:inline-block;padding-top: 0px !important;' class='WebinarTimesULLeft WebinarTimesUL-Auto-" + timeZoneIndex + "'></ul>");
                    timezoneUlRight = $("<ul style='display:inline-block;padding-top: 0px !important;' class='WebinarTimesULRight WebinarTimesUL2-Auto-" + timeZoneIndex + "'></ul>");
                    timezoneUl.append(timezoneUlLeft);
                    timezoneUl.append(timezoneUlRight);
                } else {
                    WebinarTimesULClass = "WebinarTimesULLeft";

                    for (var timeZoneWebinarNameIndex = 0; timeZoneWebinarNameIndex < selectWebinarsListsNames.length; timeZoneWebinarNameIndex++) {
                        var timezoneListContainer = $("<div style='margin-bottom:0!important;display:inline-block;padding-top: 0px !important;' class='" + WebinarTimesULClass + "'></div>");

                        timezoneListContainerTitle = $("<h3 style='font-size: 21px;text-align: left;margin-bottom: 5px;' class='section-title'></h3>");
                        timezoneListContainerTitle.html(selectWebinarsListsNames[timeZoneWebinarNameIndex]);

                        timezoneListContainerUl = $("<ul style='padding-top: 0px !important;' class='WebinarTimesUL" + timeZoneWebinarNameIndex + "-Auto-" + timeZoneIndex + "'></ul>");

                        timezoneListContainer.append(timezoneListContainerTitle);
                        timezoneListContainer.append(timezoneListContainerUl);
                        timezoneUl.append(timezoneListContainer);
                    }
                }

                timezoneUlContent.append(timezoneUl);
                timezoneUlContainerDouble.append(timezoneUlContent);
            }
            timezoneUlContainerSingle.insertAfter($("#ulMarkerPositionSingle"));
            timezoneUlContainerDouble.insertAfter($("#ulMarkerPositionDouble"));
            $(".WebinarTimesULS").remove();
            $(".WebinarTimesUL").remove();
            $(".WebinarTimesUL2").remove();
        } else if (automaticListDivider) {
            var k = 0;
            for (var i = 1; i <= MAX_WEBINARS; i++) {
                if (window["SelectListsDivider" + i].length != 0) {
                    SelectListsDivider[selectWebinarsListsNames[k]] = {
                        list: window["SelectListsDivider" + i],
                        index: k,
                    };
                    k++;
                }
            }
            var selectWebinarDividerrUlContainerSingle = $("<div></div>");
            var selectWebinarDividerrUlContainerDouble = $("<div></div>");
            k = 0;
            for (var selectWebinarDividerrsListsName in SelectListsDivider) {
                var selectWebinarDividerrUlContent = $("<div class='timezoneContainer timezoneContainer-" + k + "'></div>");
                var selectWebinarDividerrH3 = "<h3 class='section-title'></h3>";

                var selectWebinarDividerr = $(selectWebinarDividerrH3);
                selectWebinarDividerr.html(selectWebinarDividerrsListsName);

                var selectWebinarDividerrUl = $("<ul class='WebinarTimesULS-Auto-" + k + "' style=''></ul>");
                selectWebinarDividerrUlContent.append(selectWebinarDividerr);
                selectWebinarDividerrUlContent.append(selectWebinarDividerrUl);
                selectWebinarDividerrUlContainerSingle.append(selectWebinarDividerrUlContent);

                selectWebinarDividerrUlContent = $("<div class='timezoneContainer timezoneContainer-" + k + "'></div>");
                selectWebinarDividerr = $(selectWebinarDividerrH3);
                selectWebinarDividerr.html(selectWebinarDividerrsListsName);
                selectWebinarDividerrUlContent.append(selectWebinarDividerr);

                selectWebinarDividerrUl = $("<div></div>");

                selectWebinarDividerrUlLeft = $("<ul style='display:inline-block;padding-top: 0px !important;' class='WebinarTimesULLeft WebinarTimesUL-Auto-" + k + "'></ul>");
                selectWebinarDividerrUlRight = $("<ul style='display:inline-block;padding-top: 0px !important;' class='WebinarTimesULRight WebinarTimesUL2-Auto-" + k + "'></ul>");
                selectWebinarDividerrUl.append(selectWebinarDividerrUlLeft);
                selectWebinarDividerrUl.append(selectWebinarDividerrUlRight);

                selectWebinarDividerrUlContent.append(selectWebinarDividerrUl);
                selectWebinarDividerrUlContainerDouble.append(selectWebinarDividerrUlContent);
                k++;
            }
            selectWebinarDividerrUlContainerSingle.insertAfter($("#ulMarkerPositionSingle"));
            selectWebinarDividerrUlContainerDouble.insertAfter($("#ulMarkerPositionDouble"));
            $(".WebinarTimesULS").remove();
            $(".WebinarTimesUL").remove();
            $(".WebinarTimesUL2").remove();
        }

        if (CollabWebinar_Type == "single" && (CollabWebinar_Recurrence == "weekly" || CollabWebinar_Recurrence == "biweekly")) {
            if (typeof CollabWebinar_EventDates[0] !== "undefined" && CollabWebinar_EndDate[0] != "" && CollabWebinar_EndDate[1] != "") {
                dNow = moment();

                var mSeriesStart = moment.tz(CollabWebinar_EventDates[0][0], CollabWebinar_EventDates[0][1]);
                var mSeriesEnd = moment.tz(CollabWebinar_EndDate[0], CollabWebinar_EndDate[1]);
                var mSeriesStartLocal = mSeriesStart.clone().tz(localTimeZone);
                var mSeriesEndLocal = mSeriesEnd.clone().tz(localTimeZone);

                // Calculate what the time difference between now and the first session
                var CalcNextSession = Math.ceil(parseFloat(dNow.diff(mSeriesStartLocal, "weeks", true)) - 0.0029761904761905);
                // Calculate what the time difference between now and the end of the series
                var TimeFromEnd = dNow.diff(mSeriesEndLocal, "hours", true);

                console.log(CalcNextSession);
                console.log(TimeFromEnd);
                // Series is still active, find first session

                var dNextSession = mSeriesStart;

                if (TimeFromEnd < 0) {
                    // Series is still active, find first session

                    if (CalcNextSession > 0) {
                        // Series is has started, find first upcoming session

                        if (CollabWebinar_Recurrence == "biweekly") {
                            if (CalcNextSession / 2 != Math.round(CalcNextSession / 2)) {
                                CalcNextSession = CalcNextSession + 1;
                            }
                        }

                        dNextSession = mSeriesStart.add(CalcNextSession, "weeks");
                    }
                } else {
                    dNextSession = mSeriesEnd;
                }

                console.log("Recurring series, event start and end reset");
                console.log("New Start: " + dNextSession.format("YYYY-MM-DD HH:mm"));

                CollabWebinar_EventDates[0][0] = dNextSession.format("YYYY-MM-DD HH:mm");
            }
        }

        if (CollabWebinar_Type == "select") {
            displayLocal = false;
        }
        CollabWebinar_EventDates.forEach(function (element, CollabWebinar_EventDatesIndex) {
            if (FirstTimeOnlyflag) {
                $("[type='Submit']").closest(".layout-col").prepend($("#selectone"));
                var pleaseSelectNote = "Please select at least one session!";
                if (typeof _translateRegistrationForm == "function") {
                    pleaseSelectNote = _translateRegistrationForm(pleaseSelectNote);
                }
                $("#selectone").html(pleaseSelectNote);
                $("#selectone").addClass("forceTranslate");
                selectWebinar.find("option").remove();
                for (var i = 0; i < CollabWebinar_Selectlists; i++) {
                    selectWebinars[i].find("option").remove();
                    // if (i != 0) {
                    var o = new Option("", "-1");
                    var pleaseSelect = "-- Please Select --";
                    if (typeof _translateRegistrationForm == "function") {
                        pleaseSelect = _translateRegistrationForm(pleaseSelect);
                    }
                    $(o).html(pleaseSelect);
                    $(o).attr("data-id","-1");
                    $(o).addClass("forceTranslate");

                    selectWebinars[i].append(o);
                    selectWebinars[i].val("-1");
                    // }
                }
                if ($(".webinarSingleContainerTop.forceDisplay").length == 0) {
                    $(".WebinarTimesingle").text("");
                }

                FirstTimeOnlyflag = false;
                console.log("Collab len:" + CollabWebinar_EventDates.length);

                if (CollabWebinar_EventDates.length < 2 || CollabWebinar_Type == "all") {
                    $(".webinarSingleContainerTop").css("display", "inline-block");
                    $(".multibleWebinarDropDownContainer").css("display", "none");
                } else {
                    $(".multibleWebinarDropDownContainer").css("display", "inline-block");
                    $(".webinarSingleContainerTop").css("display", "none");
                }
                if (selectWebinar_w1_radio && selectWebinar_w1_radio.length > 0) {
                    console.log(selectWebinar_w1_radio);
                    console.log("radio detected");
                    selectWebinar_w1_container = selectWebinar_w1_radio.closest(".field-control-wrapper");
                    selectWebinar_w1_container.text("");
                    tempP = selectWebinar_w1_container.closest(".grid-layout-col");
                    tempP.removeClass("col-md-6");
                    tempP.removeClass("col-md-custom-4");
                    tempP.addClass("col-md-12");
                }
            }

            // counter2 = counter2 + 1;
            counter2Prev = counter2;
            counter2 = CollabWebinar_EventDatesIndex + 1;

            var isSeriesFlag = false;
            var seriesLen = 0;
            for (var ti = 0; ti < CollabWebinar_EventSeries[counter2 - 1].length; ti++) {
                if (CollabWebinar_EventSeries[counter2 - 1][ti].trim() != "") {
                    seriesLen++;
                }
            }
            if (seriesLen > 1) {
                isSeriesFlag = true;
            }
            var displayFlag = false;

            if (isSeriesFlag && element[2]) {
                var webinarTimeWithTimezoneEnd = moment.tz(element[2], element[1]);
                var webinarDayShortEnd = webinarTimeWithTimezoneEnd.format("D");
                var webinarMonthShortEnd = webinarTimeWithTimezoneEnd.format("MMM");
                var webinarDayNameFullOEnd = webinarTimeWithTimezoneEnd.format("dddd");

                if (webinarTimeWithTimezoneEnd > moment()) {
                    displayFlag = true;
                }
            }

            var webinarTimeWithTimezone = moment.tz(element[0], element[1]);
            var timeZoneZZ = webinarTimeWithTimezone.format("zz");

            // var webinarDuration = element[2];
            // var webinarETtimeE = moment.tz(element[0] , element[1]).add(webinarDuration, 'hours');

            displayFlag = displayFlag || webinarTimeWithTimezone > moment() || formPastWebinarsShow;
            // console.log("Display flag:" + displayFlag);
            if (CollabWebinar_Type == "checkbox" || displayFlag) {
                if (webinarTimeWithTimezone.format("z") == webinarTimeWithTimezone.clone().tz(localTimeZone).format("z")) {
                    displayLocal = false;
                }
                counter = counter + 1;
                showedWebinarCounter = showedWebinarCounter + 1;
                if (counter > maxWebinarsOnPage) {
                    throw BreakException.error;
                }
                var timeFormat = "h:mma";

                var webinarTimeWithLocalLong = webinarTimeWithTimezone.format("dddd, MMMM D, YYYY") + " at " + webinarTimeWithTimezone.format("h:mma z");
                if (isSeriesFlag && element[2]) {
                    // "Oct Series: Tues, Oct 22-Nov 19, 11am EDT | 3pm BST"

                    var webinarTimeWithLocalLongNoYear = element[3] + ": " + webinarTimeWithTimezone.format("dddd") + ", ";
                    var webinarTimeWithLocalLongNoYear = element[3] + ": ";
                    webinarTimeWithLocalLongNoYear = webinarTimeWithLocalLongNoYear + webinarTimeWithTimezone.format("MMM D") + "-";
                    webinarTimeWithLocalLongNoYear = webinarTimeWithLocalLongNoYear + webinarTimeWithTimezoneEnd.format("MMM D") + ", ";
                    webinarTimeWithLocalLongNoYear = webinarTimeWithLocalLongNoYear + webinarTimeWithTimezone.format("h:mma z");

                    if (displayLocal) {
                        webinarTimeWithLocalLongNoYear = webinarTimeWithLocalLongNoYear + " | " + webinarTimeWithTimezone.clone().tz(localTimeZone).format("h:mma z");
                    }
                } else {
                    var webinarTimeWithLocalLongNoYear = webinarTimeWithTimezone.format("dddd, MMMM D") + " at " + webinarTimeWithTimezone.format("h:mma z");

                    if (element[2] && CollabWebinar_Type == "select") {
                        var webinarTimeWithLocalLongNoYear = element[2] + ": " + webinarTimeWithTimezone.format("dddd, MMMM D") + " at " + webinarTimeWithTimezone.format("h:mma z");
                    }
                    if (displayLocal && CollabWebinar_Type != "select") {
                        webinarTimeWithLocalLongNoYear = webinarTimeWithLocalLongNoYear + " | " + webinarTimeWithTimezone.clone().tz(localTimeZone).format("h:mma z");
                    }
                }
                if (displayLocal) {
                    webinarTimeWithLocalLong = webinarTimeWithLocalLong + " | " + webinarTimeWithTimezone.clone().tz(localTimeZone).format("h:mma z");
                }

                var webinarDayYear = webinarTimeWithTimezone.format("MMMM D, YYYY");
                var webinarDayName = webinarTimeWithTimezone.format("dddd");
                var webinarMonthShort = webinarTimeWithTimezone.format("MMM");
                var webinarMonthFull = webinarTimeWithTimezone.format("MMMM");

                var webinarDayShort = webinarTimeWithTimezone.format("D");
                var webinarDayNameShort = webinarTimeWithTimezone.format("ddd");
                var webinarDayNameFull = webinarTimeWithTimezone.format("dddd");
                var webinarDayNameShortO = webinarTimeWithTimezone.format("ddd");
                var webinarDayNameFullO = webinarTimeWithTimezone.format("dddd");
                var webinarDayNameFullOEnd = webinarTimeWithTimezone.format("dddd");

                var webinarTime = webinarTimeWithTimezone.format("h:mma z");
                var webinarTimeLocal = webinarTimeWithTimezone.clone().tz(localTimeZone).format("h:mma z");

                var webinarTimeWithLocal = webinarTimeWithTimezone.clone().format("MMM D, h:mma z");
                if (displayLocal) {
                    webinarTimeWithLocal = webinarTimeWithLocal + " | " + webinarTimeWithTimezone.clone().tz(localTimeZone).format("h:mma z");
                }

                $('[name="Localtimezone"]').val(webinarTimeWithTimezone.clone().tz(localTimeZone).format("z"));

                if ($(".webinarSingleContainerTop.forceDisplay").length == 0) {
                    if (counter == 1 && CollabWebinar_Type == "all") {
                        $(".WebinarDaysingle").append(webinarSeriesText);
                        $(".WebinarDaysingleName").append(startingOnText + " " + webinarMonthShort + " " + webinarDayShort);
                        $(".WebinarTimesingle").append(timeText + ": " + webinarTime);
                        if (displayLocal) {
                            $(".WebinarTimesingleLocal").html(localTimeText + ": " + webinarTimeLocal);
                        }
                    } else if (counter == 1 && !isSeriesFlag) {
                        $(".WebinarDaysingle").append(webinarDayYear);
                        $(".WebinarDaysingleName").append(webinarDayName);
                        $(".WebinarTimesingle").append(timeText + ": " + webinarTime);
                        if (displayLocal) {
                            $(".WebinarTimesingleLocal").html(localTimeText + ": " + webinarTimeLocal);
                        }
                    } else if (counter == 1) {
                        $(".WebinarDaysingle").append(multipleSessionText);
                        $(".WebinarDaysingleName").append(startingOnText + " " + webinarMonthShort + " " + webinarDayShort);
                        $(".WebinarTimesingle").append(timeText + ": " + webinarTime);
                        if (displayLocal) {
                            $(".WebinarTimesingleLocal").html(localTimeText + ": " + webinarTimeLocal);
                        }
                    }
                }

                tempLocal = "";
                if (displayLocal) {
                    tempLocal = document.getElementById("tempLocal").innerHTML;
                    tempLocal = tempLocal.replace("{{webinarTimeLocal}}", webinarTimeLocal);
                    tempLocal = "</span><span class='localTimeContainer' >" + tempLocal.replace("{{Local time}}", localTimeText);
                }

                liTitle = webinarDayName + ", " + webinarDayYear;
                if (isSeriesFlag && element[2]) {
                    liTitle = element[3] + ": " + webinarTimeWithTimezone.format("dddd") + ", ";
                    liTitle = element[3] + ": ";
                    liTitle = liTitle + webinarTimeWithTimezone.format("MMM D") + " – ";
                    liTitle = liTitle + webinarTimeWithTimezoneEnd.format("MMM D");
                }
                if (!isSeriesFlag && element[2]) {
                    liTitle = element[2] + ": " + liTitle;
                }

                if (CollabWebinar_BulletListTitles[counter2 - 1]) {
                    liTitle = CollabWebinar_BulletListTitles[counter2 - 1];
                }

                if (typeof CollabWebinar_EventDates_All[counter2 - 1] === "undefined") {
                    var tempWebinar = document.getElementById("liItemTemplate").innerHTML;
                    if (CollabWebinar_Type != "all") {
                        tempWebinar = tempWebinar.replace("a class", "a onclick=\"setSelected('" + counter2 + "')\" data-webinarid=\"" + counter2 + "\" class");
                    } else {
                        tempWebinar = tempWebinar.replace('href="#registerAnchor"', 'style="pointer-events:none"');
                    }
                    tempWebinar = tempWebinar.replace("{{liTitle}}", liTitle);
                    tempWebinar = tempWebinar.replace("{{webinarTimeTempLocal}}", webinarTime + tempLocal);
                    tempWebinar = tempWebinar.replace("{{Time}}", timeText);
                    tempWebinar = tempWebinar.replace("{{Local time}}", localTimeText);

                    for (var i = 0; i < CollabWebinar_Selectlists; i++) {
                        if (selectWebinarsLists[i].includes(CollabWebinar_EventDatesIndex)) {
                            $(".WebinarTimesULLists_" + (i + 1)).append(tempWebinar);
                        }
                    }

                    if (automaticTimezoneDivider) {
                        console.log(timeZoneZZ);
                        var timezoneIndex = differentTimezones.indexOf(timeZoneZZ);

                        if (selectWebinarsListsNames.length == 0) {
                            $(".WebinarTimesULS-Auto-" + timezoneIndex).append(tempWebinar);
                            var tempCounter = $(".WebinarTimesUL-Auto-" + timezoneIndex).find("li").length + $(".WebinarTimesUL2-Auto-" + timezoneIndex).find("li").length + 1;
                            if (screen.width < 767 || tempCounter % 2 == 1) {
                                $(".WebinarTimesUL-Auto-" + timezoneIndex).append(tempWebinar);
                            } else {
                                $(".WebinarTimesUL2-Auto-" + timezoneIndex).append(tempWebinar);
                            }
                        } else {
                            for (var selectListIndex = 0; selectListIndex < CollabWebinar_Selectlists; selectListIndex++) {
                                if (selectWebinarsLists[selectListIndex].includes(CollabWebinar_EventDatesIndex)) {
                                    $(".WebinarTimesUL" + selectListIndex + "-Auto-" + timezoneIndex).append(tempWebinar);
                                }
                            }
                        }
                    } else if (automaticListDivider) {
                        var SelectListsDividerIndex = -1;
                        for (var selectWebinarsListsName in SelectListsDivider) {
                            if (SelectListsDivider[selectWebinarsListsName].list.includes(counter2 - 1)) {
                                var SelectListsDividerIndex = SelectListsDivider[selectWebinarsListsName].index;
                            }
                        }
                        // SelectListsDivider
                        if (SelectListsDividerIndex != -1) {
                            $(".WebinarTimesULS-Auto-" + SelectListsDividerIndex).append(tempWebinar);
                            var tempCounter = $(".WebinarTimesUL-Auto-" + SelectListsDividerIndex).find("li").length + $(".WebinarTimesUL2-Auto-" + SelectListsDividerIndex).find("li").length + 1;
                            if (screen.width < 767 || tempCounter % 2 == 1) {
                                $(".WebinarTimesUL-Auto-" + SelectListsDividerIndex).append(tempWebinar);
                            } else {
                                $(".WebinarTimesUL2-Auto-" + SelectListsDividerIndex).append(tempWebinar);
                            }
                        }
                    } else {
                        $(".WebinarTimesULS").append(tempWebinar);

                        if (screen.width < 767 || counter % 2 == 1) {
                            $(".WebinarTimesUL").append(tempWebinar);
                        } else {
                            $(".WebinarTimesUL2").append(tempWebinar);
                        }
                    }
                } else {
                    var kAdded = 0;
                    for (var i = 1; i < CollabWebinar_EventDates_All[counter2 - 1].length; i++) {
                        var tempWebinar = document.getElementById("liItemTemplate").innerHTML;
                        tempWebinar = tempWebinar.replace('href="#registerAnchor"', 'style="pointer-events:none"');

                        var webinarTimeWithTimezone2 = moment.tz(CollabWebinar_EventDates_All[counter2 - 1][i], CollabWebinar_EventDates_All[counter2 - 1][0]);
                        tempLocal2 = "";
                        if (webinarTimeWithTimezone2 < moment()) {
                            continue;
                        }
                        if (displayLocal) {
                            tempLocal = document.getElementById("tempLocal").innerHTML;
                            tempLocal2 = tempLocal.replace("{{webinarTimeLocal}}", webinarTimeWithTimezone2.clone().tz(localTimeZone).format("h:mma z"));
                            tempLocal2 = "</span><span class='localTimeContainer'>" + tempLocal2.replace("{{Local time}}", localTimeText);
                        }

                        tempWebinar = tempWebinar.replace("{{liTitle}}", webinarTimeWithTimezone2.format("dddd") + ", " + webinarTimeWithTimezone2.format("MMMM D, YYYY"));
                        tempWebinar = tempWebinar.replace("{{webinarTimeTempLocal}}", webinarTimeWithTimezone2.format("h:mma z") + tempLocal2);
                        tempWebinar = tempWebinar.replace("{{Time}}", timeText);
                        tempWebinar = tempWebinar.replace("{{Local time}}", localTimeText);
                        kAdded = kAdded + 1;
                        if (screen.width < 767 || kAdded % 2 == 1) {
                            $(".WebinarTimesUL_" + counter2).append(tempWebinar);
                        } else {
                            $(".WebinarTimesUL2_" + counter2).append(tempWebinar);
                        }
                        for (var selectListIndex = 0; selectListIndex < CollabWebinar_Selectlists; selectListIndex++) {
                            if (selectWebinarsLists[selectListIndex].includes(CollabWebinar_EventDatesIndex)) {
                                $(".WebinarTimesULLists_" + (selectListIndex + 1)).append(tempWebinar);
                            }
                        }

                        $(".WebinarTimesULS_" + counter2).append(tempWebinar);
                    }
                }

                var o = new Option(webinarTimeWithLocalLong, counter2);
                $(o).attr("data-id", counter2);
                $(o).html(webinarTimeWithLocalLongNoYear);
                selectWebinar.append(o);
                seriesText = "";
                seriesText2 = "";
                verticalAlign = "middle";
                var trTemplate = "trTemplate";
                if (isSeriesFlag && element[2]) {
                    seriesText = document.getElementById("seriesVariation").innerHTML;
                    seriesText = seriesText.replace("{{webinarDayShortEnd}}", webinarDayShortEnd);
                    seriesText = seriesText.replace("{{webinarMonthShortEnd}}", webinarMonthShortEnd);

                    seriesText = seriesText.replace("{{webinarDayShort}}", webinarDayShort);
                    seriesText = seriesText.replace("{{webinarMonthShort}}", webinarMonthShort);

                    seriesText = seriesText.replace("{{Time}}", timeText);
                    seriesText = seriesText.replace("{{Local time}}", localTimeText);
                    seriesText2 = element[4] + document.getElementById("brElement").innerHTML;
                    webinarDayNameShort = element[3];
                    webinarDayNameFull = element[3];
                    trTemplate = "trTemplateNewSelectNamed";
                    $(".multibleWebinarDropDownContainer").addClass("version2");
                    $(".multibleWebinarDropDownContainer").addClass("named");
                    verticalAlign = "top";
                }

                if (!isSeriesFlag && element[2]) {
                    webinarDayNameShort = element[2];
                    webinarDayNameFull = element[2];
                    trTemplate = "trTemplateNewSelectNamed";
                    verticalAlign = "top";
                    $(".multibleWebinarDropDownContainer").addClass("version2");
                    $(".multibleWebinarDropDownContainer").addClass("named");
                }

                if (!displayLocal) {
                    verticalAlign = "middle";
                }

                tempLocal = "";
                if (displayLocal) {
                    tempLocal = document.getElementById("tempLocal").innerHTML;
                    if (CollabWebinar_Type == "select") {
                        tempLocal = document.getElementById("tempLocalNew").innerHTML;
                    }
                    tempLocal = tempLocal.replace("{{webinarTimeLocal}}", webinarTimeLocal);
                    tempLocal = tempLocal.replace("{{Local time}}", localTimeText);
                }

                if (CollabWebinar_Type == "select") {
                    if (trTemplate == "trTemplate") {
                        trTemplate = "trTemplateNewSelect";
                        $(".multibleWebinarDropDownContainer").addClass("version2");
                        $(".multibleWebinarDropDownContainer").addClass("noNamed");
                    }
                }
                var tempWebinar = document.getElementById(trTemplate).innerHTML;

                tempWebinar = tempWebinar.replace("{{webinarDayNameShort}}", webinarDayNameShort);
                tempWebinar = tempWebinar.replace("{{webinarDayNameFull}}", webinarDayNameFull);
                tempWebinar = tempWebinar.replace("{{webinarDayShortEnd}}", webinarDayShortEnd);

                tempWebinar = tempWebinar.replace("{{webinarDayNameShortO}}", webinarDayNameShortO);
                tempWebinar = tempWebinar.replace("{{webinarDayNameFullO}}", webinarDayNameFullO);
                tempWebinar = tempWebinar.replace("{{webinarDayNameFullOEnd}}", webinarDayNameFullOEnd);

                tempWebinar = tempWebinar.replace("{{webinarDayShort}}", webinarDayShort);

                tempWebinar = tempWebinar.replace("{{webinarMonthShort}}", webinarMonthShort);
                tempWebinar = tempWebinar.replace("{{webinarMonthFull}}", webinarMonthFull);
                tempWebinar = tempWebinar.replace("{{webinarMonthShortEnd}}", webinarMonthShortEnd);

                tempWebinar = tempWebinar.replace("{{Time}}", timeText);
                tempWebinar = tempWebinar.replace("{{Local time}}", localTimeText);
                tempWebinar = tempWebinar.replace("{{seriesText}}", seriesText);
                tempWebinar = tempWebinar.replace("{{verticalAlign}}", verticalAlign);
                tempWebinar = tempWebinar.replace("{{seriesText2}}", seriesText2);
                tempWebinar = tempWebinar.replace("{{webinarTimeTempLocal}}", webinarTime + tempLocal);

                tempWebinar2 = tempWebinar;
                tempWebinar = tempWebinar.replace('tr class="toBeReplaced', "tr onclick=\"setSelected('" + counter2 + '\')"  data-webinarid="' + counter2 + '" class="dropdownOption dropdownOption-' + counter2);
                tempWebinar2 = tempWebinar2.replace('tr class="toBeReplaced', 'tr class="');

                if (isSeriesFlag && element[2]) {
                    tempWebinar = tempWebinar.replace('class="toBeReplacedSeries"', 'style="display:none"');
                    tempWebinar2 = tempWebinar2.replace('class="toBeReplacedSeries"', 'style="display:none"');
                }

                tableRowDropDown[counter2] = tempWebinar2;
                if (counter == 1) {
                    $(".multibleWebinarDropDownText").append(tempWebinar2);
                    tempWebinar = tempWebinar.replace("image", "image selected");
                }
                $(".multibleWebinarDropDownContents").append(tempWebinar);

                var o = new Option(webinarTimeWithLocalLong, counter2);
                $(o).attr("data-id", counter2);
                $(o).html(webinarTimeWithLocalLongNoYear);

                if (CollabWebinar_Selectlists > 1 && flagNotEmptyLists) {
                    optionToAdd = $(o).clone();

                    for (var i = 0; i < CollabWebinar_Selectlists; i++) {
                        if (selectWebinarsLists[i].includes(CollabWebinar_EventDatesIndex)) {
                            selectWebinars[i].append(optionToAdd);
                            if (!isSeriesFlag && element[2]) {
                                var selectSession = "-- Select a session --";
                                if (typeof _translateRegistrationForm == "function") {
                                    selectSession = _translateRegistrationForm(selectSession);
                                }
                                selectWebinars[i].find("option:first").html(selectSession);
                            }
                        }
                    }
                } else {
                    optionToAdd = $(o).clone();
                    for (var i = 0; i < CollabWebinar_Selectlists; i++) {
                        selectWebinars[i].append(optionToAdd);
                    }
                }

                $(o).remove();

                if (selectWebinar_w1_container) {
                    tempInput = document.getElementById("radioInputTemplate").innerHTML;
                    tempInput = tempInput.replace("{{webinarId}}", CollabWebinar_EventSeries[counter2 - 1][0]);
                    tempInput = tempInput.replace("{{webinarId2}}", CollabWebinar_EventSeries[counter2 - 1][0]);
                    tempInput = tempInput.replace("{{webinarId3}}", CollabWebinar_EventSeries[counter2 - 1][0]);
                    tempInput = tempInput.replace('class="{{onclick}}"', "onclick=\"setSelected('" + counter2 + "')\"  data-webinarid=\"" + counter2 + "\"");
                    tempInput = tempInput.replace("{{webinarText}}", webinarTimeWithLocalLongNoYear);
                    webinarIdsRadioIds[counter2] = CollabWebinar_EventSeries[counter2 - 1][0];

                    selectWebinar_w1_container.append(tempInput);
                }

                webinarDescription = "";
                if (typeof CollabWebinar_Description[counter2 - 1] != "undefined") {
                    webinarDescription = document.getElementById("webinarDescriptionTemplate").innerHTML;
                    webinarDescription = webinarDescription.replace("{{webinarDescription}}", CollabWebinar_Description[counter2 - 1]);
                }

                if (CollabWebinar_Type == "checkbox") {
                    $("[name='W" + counter2 + "_box']")
                        .siblings()
                        .text("");
                    if (!isSeriesFlag && element[2]) {
                        $("[name='W" + counter2 + "_box']")
                            .siblings()
                            .append(element[2] + ": " + webinarTimeWithLocalLongNoYear);
                    } else {
                        $("[name='W" + counter2 + "_box']")
                            .siblings()
                            .append(webinarTimeWithLocalLongNoYear);
                    }

                    if (webinarDescription != "") {
                        tempLabel = $("[name='W" + counter2 + "_box']").siblings();
                        tempWebinarDetails = $(webinarDescription);
                        tempWebinarDetails.insertAfter(tempLabel);

                        tempLabel.append($("<label class='infoPopupMobileContainer' onclick=''><span class='infoPopupMobile'>i</span><input type='checkbox' onchange='webinarDescriptionMobileChanged(this)'/>" + webinarDescription + "</label>"));

                        //

                        // tempWebinarDetails = $(webinarDescription);
                        // tempWebinarDetails.addClass("tempWebinarDetailsMobile");
                        // tempLabel.append(tempWebinarDetails);
                        // $().insertAfter(tempWebinarDetails);
                    }

                    tChB = $("[name='W" + counter2 + "_box']").closest(".grid-layout-col");
                    tChB.removeClass("col-md-6");
                    tChB.removeClass("col-md-custom-4");
                    tChB.addClass("col-md-12");
                    if (!displayFlag) {
                        tChB.remove();
                    }
                    for (var tIii = counter2Prev + 1; tIii < counter2; tIii++) {
                        console.log("Hidding: ");
                        tChB = $("[name='W" + tIii + "_box']").closest(".grid-layout-col");
                        tChB.remove();
                    }
                }

                CollabWebinar_SeriesDatesStr[counter2] = webinarTimeWithLocalLong;

                CollabWebinar_SeriesDatesStrLocal[counter2] = webinarTimeWithTimezone.clone().tz(localTimeZone).format("dddd, MMMM D, YYYY") + " at " + webinarTimeWithTimezone.clone().tz(localTimeZone).format("h:mma z");
                CollabWebinar_SeriesDatesStrET[counter2] = webinarTimeWithTimezone.format("dddd, MMMM D, YYYY") + " at " + webinarTimeWithTimezone.format("h:mma z");

                CollabWebinar_SeriesDatesStr[counter2] = webinarTimeWithLocalLong;
            }
        });
        $(".multibleWebinarDropDownContents tr").height($(".multibleWebinarDropDown").outerHeight());
        // $(".multibleWebinarDropDownContents").find(".image").css("vertical-align","middle");

        if (counter == 0 && counter2 != 0) {
            noWebinarsUxUpdate(false, false, false, false);
        }

        for (var i = 0; i < CollabWebinar_Selectlists; i++) {
            if (selectWebinars[i].find("option").length <= 1) {
                selectWebinars[i].closest(".grid-layout-col").hide();
            }
        }

        if (!displayLocal) {
            $(".showOnlyMyTimezoneContainer").remove();
        } else {
            $(".showOnlyMyTimezoneContainer").show();
        }
        if (CollabWebinar_Type == "checkbox") {
            for (var i = counter2; i < MAX_WEBINARS; i++) {
                var tChB = $("[name='W" + (i + 1) + "_box']").closest(".grid-layout-col");
                tChB.remove();
            }
        }
        if (automaticTimezoneDivider) {
            for (var timezoneIndex = 0; timezoneIndex < differentTimezones.length; timezoneIndex++) {
                if (selectWebinarsListsNames.length != 0) {
                    for (var timezoneListIndex = 0; timezoneListIndex < CollabWebinar_Selectlists; timezoneListIndex++) {
                        if ($(".WebinarTimesUL" + timezoneListIndex + "-Auto-" + timezoneIndex).find("li").length == 0) {
                            $(".WebinarTimesUL" + timezoneListIndex + "-Auto-" + timezoneIndex)
                                .parent()
                                .remove();
                        }
                    }
                } else {
                    if ($(".WebinarTimesUL-Auto-" + timezoneIndex).find("li").length == 0) {
                        $(".WebinarTimesUL-Auto-" + timezoneIndex).remove();
                    }
                    if ($(".WebinarTimesUL2-Auto-" + timezoneIndex).find("li").length == 0) {
                        $(".WebinarTimesUL2-Auto-" + timezoneIndex).remove();
                    }
                    if ($(".WebinarTimesULS-Auto-" + timezoneIndex).find("li").length == 0) {
                        $(".WebinarTimesULS-Auto-" + timezoneIndex).remove();
                    }
                }
                if ($(".timezoneContainer-" + timezoneIndex).find("ul").length == 0) {
                    $(".timezoneContainer-" + timezoneIndex).remove();
                }
            }
        }
    } catch (e) {
        if (e !== BreakException.error) throw e;
    }
    maxWidth1 = 0;
    maxWidth2 = 0;
    $(".multibleWebinarDropDownContents tr").each(function () {
        var $hiddenElement = $(this).clone().appendTo($(".multibleWebinarDropDownText"));
        // calculate the width of the clone
        var width1 = $hiddenElement.find(".dropDownDay").parent().width();
        var width2 = $hiddenElement.find(".dropDownTime").parent().width();
        if (width1 > maxWidth1) {
            maxWidth1 = width1;
        }
        if (width2 > maxWidth2) {
            maxWidth2 = width2;
        }
        // remove the clone from the DOM
        $hiddenElement.remove();
    });

    $(".multibleWebinarDropDownContainer td").css("min-width", maxWidth1 + "px");
    $(".multibleWebinarDropDownContainer td + td").css("min-width", maxWidth2 + "px");

    for (var i = counter2 + 1; i < counter2 + 5; i++) {
        $("[name='W" + i + "_box']")
            .closest(".grid-layout-col")
            .remove();
    }
    $(".checkbox-span").parents(".form-design-field").addClass("checkbox-div");
    $("input[type=checkbox]").parents(".form-design-field").addClass("full-width-checkbox");
    $("textarea").parents(".form-design-field").addClass("full-width-textarea");

    // --------------
    // Initialization
    // --------------
    var iLabel = 1;
    var iSeries = 1;
    var AnyOneSelected = false;
    var EventsSelected = "";
    var TYLink = "";
    var regID = "";
    var NewEmailAddress = "";

    CollabWebinar_Type = CollabWebinar_Type.toLowerCase();

    for (i = 0; i < CollabWebinar_EventSeries.length; i++) {
        if (typeof CollabWebinar_EventSeries[i] === "undefined") {
            continue;
        }
        CollabWebinar_SeriesLength[i] = CollabWebinar_EventSeries[i].length;
        console.log("Series " + i + ": " + CollabWebinar_SeriesLength[i]);
    }

    console.log("*** initializing ***");

    if (CollabWebinar_Type == "single") {
        // SINGLE
        console.log("*** initializing - single webinar");
        regID = emailAddress + "-" + CollabWebinar_EventSeries[0][0];
        $("[name=regID]").val(regID);
        $("[name=eventId]").val(CollabWebinar_EventSeries[0][0]);
        $("[name=W1_regID]").val(regID);
        $("[name=W1_EventID]").val(CollabWebinar_EventSeries[0][0]);

        if (typeof CollabWebinar_EventDates[0] !== "undefined" && typeof CollabWebinar_EventDates[0][0] !== "undefined") {
            var webinarTimeWithTimezone = moment.tz(CollabWebinar_EventDates[0][0], CollabWebinar_EventDates[0][1]);
            $('[name="dateAndTime"]').val(webinarTimeWithTimezone.format("MM/DD/YYYY HH:mm:SS"));
        }
    } else if (CollabWebinar_Type == "checkbox") {
        // MULTIPLE WEBINARS VIA checkbox

        for (i = 0; i < CollabWebinar_EventSeries.length; i++) {
            iLabel = i + 1;
            if (typeof CollabWebinar_EventSeries[i] === "undefined") {
                continue;
            }
            console.log("*** initializing - checkbox nr " + iLabel);
            $("[name=W" + iLabel + "_regID]").val(emailAddress + "-" + CollabWebinar_EventSeries[i][0]);
            $("[name=W" + iLabel + "_EventID]").val(CollabWebinar_EventSeries[i][0]);
            var webinarTimeWithTimezone = moment.tz(CollabWebinar_EventDates[i][0], CollabWebinar_EventDates[i][1]);
            $('[name="W' + iLabel + '_dateAndTime"]').val(webinarTimeWithTimezone.format("MM/DD/YYYY HH:mm:SS"));
        }
    } else if (CollabWebinar_Type == "select") {
        // MULTIPLE WEBINARS VIA SELECT LISTS
        for (i = 1; i <= CollabWebinar_Selectlists; i++) {
            console.log("*** initializing - select list nr " + i);

            var iIndex = $('select[name="W' + i + '_select"]').val() - 1;
            if (iIndex == -2) {
                continue;
            }
            if (typeof CollabWebinar_EventSeries[iIndex] === "undefined") {
                continue;
            }
            var webinrId = CollabWebinar_EventSeries[iIndex][0];

            $('[name="W' + i + '_regID"]').val(emailAddress + "-" + webinrId);
            $('[name="W' + i + '_EventID"]').val(webinrId);
            var webinarTimeWithTimezone = moment.tz(CollabWebinar_EventDates[iIndex][0], CollabWebinar_EventDates[iIndex][1]);
            $('[name="W' + i + '_dateAndTime"]').val(webinarTimeWithTimezone.format("MM/DD/YYYY HH:mm:SS"));
        }
    } else if (CollabWebinar_Type == "series") {
        // SERIES SELECTION VIA SINGLE SELECT LIST
        for (i = 0; i < CollabWebinar_SeriesLength[0]; i++) {
            iLabel = i + 1;
            console.log("*** initializing - series via select list ");
            $("[name=W" + iLabel + "_regID]").val(emailAddress + "-" + CollabWebinar_EventSeries[0][i]);
            $("[name=W" + iLabel + "_EventID]").val(CollabWebinar_EventSeries[0][i]);
            var webinarTimeWithTimezone = moment.tz(CollabWebinar_EventDates[0][0], CollabWebinar_EventDates[0][1]);
            $('[name="W' + iLabel + '_dateAndTime"]').val(webinarTimeWithTimezone.format("MM/DD/YYYY HH:mm:SS"));
        }
    } else if (CollabWebinar_Type == "all") {
        // MULTIPLE WEBINARS ALL SELECTED VIA ONE FORM
        // for (i = 0; i < CollabWebinar_SeriesLength[0]; i++) {
        //   iLabel = i + 1;
        //   console.log('*** initializing - all-in-one nr ' + i);
        //   $('[name=W' + iLabel + '_regID]').val(emailAddress + "-" + CollabWebinar_EventSeries[0][i]);
        //   $('[name=W' + iLabel + '_EventID]').val(CollabWebinar_EventSeries[0][i]);
        // }

        for (i = 0; i < CollabWebinar_EventSeries.length; i++) {
            if (typeof CollabWebinar_EventSeries[i] === "undefined") {
                continue;
            }
            iLabel = i + 1;
            $("[name=W" + iLabel + "_regID]").val(emailAddress + "-" + CollabWebinar_EventSeries[i][0]);
            $("[name=W" + iLabel + "_EventID]").val(CollabWebinar_EventSeries[i][0]);

            if (typeof CollabWebinar_EventDates[i] !== "undefined" && typeof CollabWebinar_EventDates[i][0] !== "undefined") {
                var webinarTimeWithTimezone = moment.tz(CollabWebinar_EventDates[i][0], CollabWebinar_EventDates[i][1]);
                $('[name="W' + iLabel + '_dateAndTime"]').val(webinarTimeWithTimezone.format("MM/DD/YYYY HH:mm:SS"));
            }
        }

        // $('.webinarSingleContainerTop').hide();
        $(".multibleWebinarDropDownContainer").hide();
    } else {
        console.log("*** init - Webinar Type Not Found");
    }
    // --------------
    // END Initialization
    // --------------

    // --------------
    // Capture Change
    // --------------
    formResetedOnce = false;

    $("[name=emailAddress]").on("focusin", function () {
        $(this).data("val", $(this).val());
    });

    $("[name=emailAddress]").change(function () {
        var prev = $(this).data("val");
        var current = $(this).val();
        NewEmailAddress = current;
        if (prev == "") {
            formResetedOnce = true;
        }

        if (!formResetedOnce) {
            disableProgressiveProfiling = true;

            $("form:not([name=translationPicklistForm]) input,form:not([name=translationPicklistForm]) select,form:not([name=translationPicklistForm]) textarea").each(function (index) {
                var element = $(this).closest(".form-element-layout");
                if (element.length == 0) {
                    element = $(this).closest(".individual ");
                }

                var attrName = $(this).attr("name");
                if (hideArray.includes(attrName)) {
                    element.hide();
                }
            });

            progPro.resetForm();
            $("input[name=emailAddress]").val(NewEmailAddress);
        }
        formResetedOnce = true;
    });
    // --------------
    // END Capture CHANGE
    // --------------

    // --------------
    // Capture Submit
    // --------------

    $("form:not([name=translationPicklistForm])").submit(function (event) {
        if (typeof extraValidator == "function") {
            if (!extraValidator()) {
                console.log("Custom validator rejected");
                return false;
            }
        }

        if (typeof extraValidators != "undefined") {
            var extraValidatorsRejected = false;
            for (var validatorIndex = 0; validatorIndex < extraValidators.length; validatorIndex++) {
                if (!extraValidators[validatorIndex]()) {
                    console.log("Extra validator rejected");
                    console.log(extraValidators[validatorIndex].name);
                    extraValidatorsRejected = true;
                }
            }
            if (extraValidatorsRejected) {
                return false;
            }
        }

        AnyOneSelected = false;
        console.log("*** submitting form");
        NewEmailAddress = $("input[name=emailAddress]").val();
        EventsSelected = "?se=";
        var webinar_name = "";
        if (CollabWebinar_Type == "single") {
            webinar_name = getWebinarName(0, 0);
            EventsSelected = ThankYouPage + EventsSelected + CollabWebinar_EventSeries[0][0];
            regID = NewEmailAddress + "-" + CollabWebinar_EventSeries[0][0];
            console.log("*** submit - single: " + regID);
            $("[name=regID]").val(regID);
            $("[name=W1_regID]").val(regID);
            $("[name=W1_Name]").val(webinar_name);
            if (typeof CollabWebinar_EventDates[0] !== "undefined" && typeof CollabWebinar_EventDates[0][0] !== "undefined") {
                var webinarTimeWithTimezone = moment.tz(CollabWebinar_EventDates[0][0], CollabWebinar_EventDates[0][1]);
                $('[name="dateAndTime"]').val(webinarTimeWithTimezone.format("MM/DD/YYYY HH:mm:SS"));
                $('[name="W1_dateAndTime"]').val(webinarTimeWithTimezone.format("MM/DD/YYYY HH:mm:SS"));
            }
            AnyOneSelected = true;
        } else if (CollabWebinar_Type == "checkbox") {
            // MULTIPLE WEBINARS VIA CHECKBOXES

            // for (i = 0; i < CollabWebinar_SeriesLength[0]; i++) {
            //   iLabel = i + 1;
            //   $('[name=W' + iLabel + '_regID]').val(NewEmailAddress + "-" + CollabWebinar_EventSeries[0][i]);
            //   if ($('[name=W' + (i + 1) + '_box]').is(':checked')) {
            //     AnyOneSelected = true;
            //     EventsSelected += CollabWebinar_EventSeries[0][i] + "X";
            //     console.log('*** submit - checkbox: ' + NewEmailAddress + CollabWebinar_EventSeries[0][i]);
            //   }
            // }

            for (i = 0; i < CollabWebinar_EventSeries.length; i++) {
                if (typeof CollabWebinar_EventSeries[i] === "undefined") {
                    continue;
                }
                iLabel = i + 1;

                if ($("[name=W" + iLabel + "_box]").is(":checked")) {
                    webinar_name = getWebinarName(i, 0);
                    $("[name=W" + iLabel + "_Name]").val(webinar_name);
                    $("[name=W" + iLabel + "_regID]").val(NewEmailAddress + "-" + CollabWebinar_EventSeries[i][0]);
                    $("[name=W" + iLabel + "_EventID]").val(CollabWebinar_EventSeries[i][0]);

                    var webinarTimeWithTimezone = moment.tz(CollabWebinar_EventDates[i][0], CollabWebinar_EventDates[i][1]);
                    $('[name="W' + iLabel + '_dateAndTime"]').val(webinarTimeWithTimezone.format("MM/DD/YYYY HH:mm:SS"));

                    AnyOneSelected = true;
                    EventsSelected += CollabWebinar_EventSeries[i][0] + "X";
                    console.log("*** submit - checkbox: " + NewEmailAddress + CollabWebinar_EventSeries[i][0]);
                } else {
                    $("[name=W" + iLabel + "_regID]").val("");
                    $("[name=W" + iLabel + "_EventID]").val("");
                    $('[name="W' + iLabel + '_dateAndTime"]').val("");
                }
            }

            if (EventsSelected.charAt(EventsSelected.length - 1) == "X") {
                EventsSelected = EventsSelected.slice(0, -1);
            }

            EventsSelected = ThankYouPage + EventsSelected;
        } else if (CollabWebinar_Type == "select") {
            // MULTIPLE WEBINARS VIA SELECT LISTS
            var availableSelects = 0;
            for (i = 1; i <= CollabWebinar_Selectlists; i++) {
                availableSelects = availableSelects + $('select[name="W' + i + '_select"] option').length - $('select[name="W' + i + '_select"] option[value="-1"]').length;
            }

            for (i = 1; i <= CollabWebinar_Selectlists; i++) {
                if (availableSelects == 0) {
                    EventsSelected = "";
                    AnyOneSelected = true;
                    break;
                }

                var iIndex = $('select[name="W' + i + '_select"] option:selected').attr("data-id");
                console.log($('select[name="W' + i + '_select"] option:selected'));
                console.log(iIndex);
                if (typeof iIndex == "undefined") {
                    iIndex = $('select[name="W' + i + '_select"]').val() - 1;
                } else {
                    iIndex = parseInt(iIndex) - 1;
                }
                if (iIndex < 0) {
                    continue;
                }
                console.log(i);
                console.log($('select[name="W' + i + '_select"]').val());
                console.log(iIndex);
                var webinrId = CollabWebinar_EventSeries[iIndex][0];
                for (var j = 1; j < CollabWebinar_EventSeries[iIndex].length; j++) {
                    if (CollabWebinar_EventSeries[iIndex][j] != "") {
                        webinrId += "X" + CollabWebinar_EventSeries[iIndex][j];
                    }
                }

                $('[name="Localdate/time"]').val(CollabWebinar_SeriesDatesStrLocal[iIndex + 1]);
                $('[name="Actuallocaltime"]').val(CollabWebinar_SeriesDatesStrLocal[iIndex + 1].split(" at ")[1]);
                $('[name="ActualETtime"]').val(CollabWebinar_SeriesDatesStrET[iIndex + 1]);

                var webinarTimeWithTimezone = moment.tz(CollabWebinar_EventDates[iIndex][0], CollabWebinar_EventDates[iIndex][1]);
                $('[name="W' + i + '_dateAndTime"]').val(webinarTimeWithTimezone.format("MM/DD/YYYY HH:mm:SS"));
                $('[name="W' + i + '_regID"]').val(NewEmailAddress + "-" + webinrId);
                $('[name="W' + i + '_EventID"]').val(webinrId);
                
                webinar_name = getWebinarName(iIndex, 0);
                $("[name=W" + i + "_Name]").val(webinar_name);

                if (webinrId != "none") {
                    console.log("*** submit - select: " + NewEmailAddress + webinrId);
                    EventsSelected += webinrId + "X";
                    AnyOneSelected = true;
                }
            }
            if (EventsSelected.charAt(EventsSelected.length - 1) == "X") {
                EventsSelected = EventsSelected.slice(0, -1);
            }
            EventsSelected = ThankYouPage + EventsSelected;
        } else if (CollabWebinar_Type == "series") {
            // SERIES SELECTION VIA SINGLE SELECT LIST

            if (typeof $('form:not([name=translationPicklistForm]) [name="W1_select"]').val() != "undefined" && $('form:not([name=translationPicklistForm]) [name="W1_select"]').val() != "") {
                iSeries = Number($('form:not([name=translationPicklistForm]) [name="W1_select"]').val()) - 1;
                var tempDataId = $('form:not([name=translationPicklistForm]) [name="W1_select"] option:selected').attr("data-id");
                if (typeof tempDataId != "undefined") {
                    iSeries = Number(tempDataId) - 1;
                }
                console.log("Series [" + (iSeries + 1) + "] selected");
            } else {
                iSeries = 0;
            }

            var availableSelects = 0;
            for (i = 1; i <= CollabWebinar_Selectlists; i++) {
                availableSelects = availableSelects + $('select[name="W' + i + '_select"] option').length - $('select[name="W' + i + '_select"] option[value="-1"]').length;
            }

            if (availableSelects == 0) {
                EventsSelected = ThankYouPage;
                AnyOneSelected = true;
            }

            if (iSeries >= 0) {
                console.log(iSeries + 1);
                $('[name="Localdate/time"]').val(CollabWebinar_SeriesDatesStrLocal[iSeries + 1]);
                $('[name="Actuallocaltime"]').val(CollabWebinar_SeriesDatesStrLocal[iSeries + 1].split(" at ")[1]);
                $('[name="ActualETtime"]').val(CollabWebinar_SeriesDatesStrET[iSeries + 1]);

                // START NEW - Express webinar
                for (i = 0; i < CollabWebinar_SeriesLength[iSeries]; i++) {
                    iLabel = i + 1;
                    console.log("*** submit - series [" + (iSeries + 1) + "]: " + NewEmailAddress + "-" + CollabWebinar_EventSeries[iSeries][i]);
                    if (CollabWebinar_EventSeries[iSeries][i] != "") {
                        $("[name=W" + iLabel + "_regID]").val(NewEmailAddress + "-" + CollabWebinar_EventSeries[iSeries][i]);
                        webinar_name = getWebinarName(iSeries, i);
                        $("[name=W" + iLabel + "_Name]").val(webinar_name);
                        EventsSelected += CollabWebinar_EventSeries[iSeries][i] + "X";
                        var webinarTimeWithTimezone = moment.tz(CollabWebinar_EventDates[iSeries][0], CollabWebinar_EventDates[iSeries][1]);
                        $('[name="W' + iLabel + '_dateAndTime"]').val(webinarTimeWithTimezone.format("MM/DD/YYYY HH:mm:SS"));
                    } else {
                        $("[name=W" + iLabel + "_regID]").val("");
                    }
                    $("[name=W" + iLabel + "_EventID]").val(CollabWebinar_EventSeries[iSeries][i]);
                }
                // END NEW ) Express webinar

                AnyOneSelected = true;
                EventsSelected = ThankYouPage + EventsSelected.slice(0, -1);
            }
        } else if (CollabWebinar_Type == "all") {
            // MULTIPLE WEBINARS ALL SELECTED VIA ONE FORM
            for (i = 0; i < CollabWebinar_EventSeries.length; i++) {
                if (typeof CollabWebinar_EventSeries[i] === "undefined") {
                    continue;
                }
                iLabel = i + 1;

                var webinarTimeWithTimezone = moment.tz(CollabWebinar_EventDates[i][0], CollabWebinar_EventDates[i][1]);
                
                webinar_name = getWebinarName(i, 0);
                
                if (webinarTimeWithTimezone < moment()) {
                    $("[name=W" + iLabel + "_regID]").val("");
                    $("[name=W" + iLabel + "_EventID]").val("");
                    $('[name="W' + iLabel + '_dateAndTime"]').val("");
                    continue;
                }
                $("[name=W" + iLabel + "_Name]").val(webinar_name);
                $("[name=W" + iLabel + "_regID]").val(NewEmailAddress + "-" + CollabWebinar_EventSeries[i][0]);
                $("[name=W" + iLabel + "_EventID]").val(CollabWebinar_EventSeries[i][0]);
                $('[name="W' + iLabel + '_dateAndTime"]').val(webinarTimeWithTimezone.format("MM/DD/YYYY HH:mm:SS"));
                EventsSelected += CollabWebinar_EventSeries[i][0] + "X";
            }
            //
            // for (i = 0; i < CollabWebinar_SeriesLength[0]; i++) {
            //   iLabel = i + 1;
            //   console.log('*** submit - all-in-one: ' + NewEmailAddress + "-" + CollabWebinar_EventSeries[0][i]);
            //   $('[name=W' + iLabel + '_regID]').val(NewEmailAddress + "-" + CollabWebinar_EventSeries[0][i]);
            //   EventsSelected += CollabWebinar_EventSeries[0][i] + "X";
            // }
            AnyOneSelected = true;
            EventsSelected = ThankYouPage + EventsSelected.slice(0, -1);
        } else if (CollabWebinar_Type == "radio") {
            if ($("form:not([name=translationPicklistForm]) [name='W1_select']:checked").val()) {
                EventsSelected = ThankYouPage + "?se=" + $("form:not([name=translationPicklistForm]) [name='W1_select']:checked").val();
                AnyOneSelected = true;
            }
            console.log("*** submit - Webinar radio");
        } else {
            EventsSelected = ThankYouPage;
            console.log("*** submit - Webinar Type Not Found");
            AnyOneSelected = true;
        }

        // If an event has been selected, continue with the submit or show error message

        if (AnyOneSelected == false) {
            console.log("*** No Webinar Selected ***");
            if (CollabWebinar_Selectlists > 1 || CollabWebinar_Type == "checkbox") {
                $("#selectone").css({
                    display: "block",
                });
            }

            for (i = 1; i <= CollabWebinar_Selectlists; i++) {
                $('select[name="W' + i + '_select"]').addClass("LV_invalid_field");
            }

            document.getElementById("FormStart").scrollIntoView();
            return false;
        } else {
            console.log("*** Proceeding With Submit ***");
            $("#selectone").css({
                display: "none",
            });
            if (typeof EventsSelectedOveride != "undefined") {
                EventsSelected = EventsSelectedOveride;
            }
            console.log("*** Set TY value to: " + EventsSelected);
            $("[name='c']").val(EventsSelected);

            for (var index = 1; index <= CollabWebinar_Selectlists; index++) {
                $('[name="W' + index + '_select"] option:selected').val($('[name="W' + index + '_select"] option:selected').text());
            }

            if (typeof extraFormSucessSubmit == "function") {
                if (!extraFormSucessSubmit()) {
                    return false;
                }
            }
            $("[name*=_EventID]").each(function () {
                var elem = $(this);
                var webinarId = elem.val().toString().trim();
                var name = elem.attr("name").toString().trim();
                var id = name.split("_EventID")[0];
                if (webinarId == "") {
                    return;
                }
                // console.log(elem);
                // console.log(webinarId);
                // console.log(name);
                // console.log(id);
                if (typeof CollabWebinar_EventSeriesWebinarNames == "undefined") {
                    return;
                }
                if (typeof CollabWebinar_EventSeriesWebinarNames[webinarId] == "undefined") {
                    return;
                }
                var info = CollabWebinar_EventSeriesWebinarNames[webinarId];
                // console.log(info);
                if (typeof info.eventName != "undefined") {
                    $('[name="' + id + '_EventName"]').val(info.eventName);
                    $('[name="' + id + '_Name"]').val(info.eventName);
                }
                if (
                    typeof info.WebinarDate != "undefined" &&
                    typeof info.WebinarTimezone != "undefined"
                ) {
                    var date = moment.tz(info.WebinarDate, info.WebinarTimezone);
                    $('[name="' + id + '_dateAndTime"]').val(date.format("MM/DD/YYYY HH:mm:SS"));
                }
            });

            if (typeof webinarNameFormSuccess == "function") {
                if (!webinarNameFormSuccess()) {
                    return false;
                }
            }

            $("input[name=excludeFromCounter]").val("no");
            var notCounterEmails = ["@stronde.com", "@blackboard.com", "@anthology.com", "@abstractmarketing.co.uk"];
            for (var ex in notCounterEmails) {
                ex = notCounterEmails[ex];
                if (NewEmailAddress.toString().includes(ex)) {
                    $("input[name=excludeFromCounter]").val("yes");
                }
            }
            if (debug_mode) {
                ttt = $("form:not([name=translationPicklistForm])").serialize().split("&");
                debugTable = [];
                for (tt in ttt) {
                    debugTable[tt] = ttt[tt].split("=");
                }
                console.table(debugTable);

                return false;
            }

            if (drJqFlag) {
                drJq.attr("name", "dropdownMenu");
            }

            return true;
        }
    });

    if (typeof findGetParameter == "undefined") {
        window.findGetParameter = function (parameterName) {
            var result = null,
                tmp = [];
            location.search
                .substr(1)
                .split("&")
                .forEach(function (item) {
                    tmp = item.split("=");
                    if (tmp[0] === parameterName) result = decodeURIComponent(tmp[1]);
                });
            return result;
        };
    }
    if (typeof findGetParameter != "undefined" && findGetParameter("recordingAvailable") == "true") {
        recordingAvailable = true;
    }
    if (recordingAvailable) {
        var insertAfterElement = $(".intro-header .site-description");
        if (insertAfterElement.length == 0) {
            insertAfterElement = $(".intro-header .site-subtitle");
            if (insertAfterElement.length == 0) {
                insertAfterElement = $(".intro-header .site-title-main");
            }
        }
        insertAfterElement.css("margin-bottom", "0");
        insertAfterElement.parent().find(".recordingAvailable").remove();
        var cantAttend = "Can’t attend? Register to receive the recording.";
        var pleaseFill = "Please fill out the following information.";
        var allRegistrations = "All registrants will receive the recording after the webinar.";
        if (typeof _translateRegistrationForm == "function") {
            cantAttend = _translateRegistrationForm(cantAttend);
            pleaseFill = _translateRegistrationForm(pleaseFill);
            allRegistrations = _translateRegistrationForm(allRegistrations);
        }
        console.log(allRegistrations);
        $("<p class='recordingAvailable'>" + cantAttend + "</p>").insertAfter(insertAfterElement);
        $("#register .section-title + p").html("<span class='recordingAvailable'><span class='translate'>" + pleaseFill + "</span><br><span class='translate'>" + allRegistrations + "</span></span>");
    }

    for (var webinar in fullWebinars) {
        maxRegistrantsWebinarCallback(fullWebinars[webinar]);
    }
    if (typeof fullWebinarsUx === "function") {
        fullWebinarsUx();
    }
    if (typeof initializeSelectsCallback == "function") {
        initializeSelectsCallback();
    }

    console.log("initializeSelects end");

    // --------------
    // END Capture Submit
    // --------------
}
function maxRegistrantsWebinarCallback(webinar) {
    if (webinar.maxRegistered == 0 || webinar.registeredCounter < webinar.maxRegistered) {
        return;
    }
    var t = fullWebinars.findIndex(function (e) {
        return e.wId == webinar.wId;
    });
    if (t == -1) {
        fullWebinars.push(webinar);
    }
    var webinarIndex = CollabWebinar_EventSeries.findIndex(function (e) {
        return e.includes(webinar.wId);
    });
    if (webinarIndex == -1) return;
    var tOption = $("[data-id=" + (webinarIndex + 1) + "]");
    if (tOption.length != 0 && !tOption.hasClass("fullWebinarInitiated")) {
        tOption.addClass("fullWebinarInitiated");
        var fullNote = "(Full) ";
        if (typeof _translateRegistrationForm == "function") {
            fullNote = _translateRegistrationForm(fullNote);
        }

        tOption.text(fullNote + tOption.text()).prop("disabled", true);
        var select = tOption.parent();
        if (select.find("[data-id]:not([disabled])").length == 0) {
            var registrationClosed = "Registration is now closed for this series";
            if (typeof _translateRegistrationForm == "function") {
                registrationClosed = _translateRegistrationForm(registrationClosed);
            }
            select.prop("disabled", true);
            select.find("option").first().html(registrationClosed);
            select.val(-1);
        }
    }

    var checkbox = $("#W" + (webinarIndex + 1) + "_box[type=checkbox]");
    if (checkbox.length != 0 && !checkbox.hasClass("fullWebinarInitiated")) {
        var label = checkbox.parent().find("label");
        checkbox.addClass("fullWebinarInitiated");
        checkbox.parent().addClass("fullWebinarInitiated");
        var fullNote = "(Full) ";
        if (typeof _translateRegistrationForm == "function") {
            fullNote = _translateRegistrationForm(fullNote);
        }

        label.text(fullNote + label.text()).prop("disabled", true);
        checkbox.prop("disabled", true);
    }

    var radio = $("[type=radio][data-webinarid=" + (webinarIndex + 1) + "]");
    if (radio.length != 0 && !radio.hasClass("fullWebinarInitiated")) {
        var label = radio.parent().find("label");
        radio.addClass("fullWebinarInitiated");
        radio.parent().addClass("fullWebinarInitiated");
        var fullNote = "(Full) ";
        if (typeof _translateRegistrationForm == "function") {
            fullNote = _translateRegistrationForm(fullNote);
        }

        label.text(fullNote + label.text()).prop("disabled", true);
        radio.prop("disabled", true);
    }

    var tDropdown = $(".dropdownOption-" + (webinarIndex + 1));
    if (tDropdown.length != 0) {
        tDropdown.remove();
        tDropdown = $(".headline-container:visible .dropdownOption").get(0);
        if (tDropdown && tDropdown.length != 0 && typeof tDropdown.dataset.webinarid != "undefined") {
            setSelected(tDropdown.dataset.webinarid, true);
        }
    }
}

function registerMultipleClick() {
    return;
    // var selectedWebinarValue = $("select[name='multibleWebinarsSelect'] option:selected")[0].value;
    // $("form:not([name=translationPicklistForm]) select [name='W1_select']").val(selectedWebinarValue);
}

function webinarDescriptionMobileChanged(e) {
    checkbox = $(e);
    ttF = false;
    if (checkbox.prop("checked")) {
        ttF = true;
    }
    $(".infoPopupMobileContainer input").prop("checked", false);
    if (ttF) {
        checkbox.prop("checked", true);
    }
}

function getLinesOfElement(elem) {
    var allWords = elem[0].innerText.match(/\S+/g) || [];
    // var allText = "";
    // for (var i = 0; i < allWords.length; i++) {
    //   allText = allText + allWords[i] + " ";
    // }
    // elem.text(allText);
    var tempElem = $($("<div></div>").append(elem.clone()).html());
    elem.parent().append(tempElem);
    var lines = [];
    var currentLine = "";
    var oldHeight = 0;
    for (var i = 0; i < allWords.length; i++) {
        var newLine = currentLine + allWords[i] + " ";
        tempElem.text(newLine);
        if (tempElem.height() > oldHeight) {
            lines.push(currentLine);
            currentLine = allWords[i] + " ";
        } else {
            currentLine = newLine;
            tempElem.text(currentLine);
        }
        oldHeight = tempElem.height();
    }
    lines.push(currentLine);
    tempElem.remove();
    return lines;
}

function showHideBbCollapse(e) {
    e = $(e);
    if (e.data("show") === "true" || e.data("show") === true) {
        e.data("show", "false");
        e.attr("data-show", "false");
        e.html(e.data("hidetext"));
        e.prev().css("display", "");
    } else {
        e.attr("data-show", "true");
        e.data("show", "true");
        e.html(e.data("showtext"));
        e.prev().css("display", "none");
    }
    e.append(` 
    <img class="onNoHover" src="https://images.email.blackboard.com/EloquaImages/clients/BlackboardInc/%7B94b1a717-5529-4227-a14e-868a701f12a9%7D_Vector.png">
    <img class="onHover" src="https://images.email.blackboard.com/EloquaImages/clients/BlackboardInc/%7B30158ed9-1b25-4db5-bf72-ba31c5371b70%7D_arrow_orange.png">
  `);
}

function masterFormInit() {
    var version = $("input[name='formVersion']").val();
    if (version != "2") {
        return;
    }
    console.log("New Master Form");
    var str = "";

    for (var i = 0; i < CollabWebinar_Inputs.length; i++) {
        if (CollabWebinar_Type == "select" || CollabWebinar_Type == "series") {
            str = `
            ${str}
            <div class="row">
                <div class="grid-layout-col grid-layout-Webinar grid-layout-Webinar-${i + 1}">
                    <div class="layout-col col-sm-12 col-xs-12">
                        <div id="formElement0" class="elq-field-style form-element-layout row">
                            <div style="text-align: left" class="col-sm-12 col-xs-12"><label class="elq-label" for="fe129230">${CollabWebinar_Inputs[i]}</label></div>
                            <div class="col-sm-12 col-xs-12">
                                <div class="row">
                                    <div class="col-xs-12">
                                        <div class="field-control-wrapper">
                                            <select class="elq-item-select webinarSelector" name="W${i + 1}_select" style="width: 100%" data-value="">
                                            </select>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            `;
        }
        if (CollabWebinar_Type == "radio") {
            str = `
            ${str}
            <div class="row">
                <div class="grid-layout-col grid-layout-Webinar grid-layout-Webinar-${i + 1}">
                    <div class="layout-col col-sm-12 col-xs-12">
                        <div id="formElement0" class="elq-field-style form-element-layout row">
                            <div style="text-align: left" class="col-sm-12 col-xs-12">
                                <label class="elq-label" for="fe129295">${CollabWebinar_Inputs[i]}</label>
                            </div>
                            <div class="col-sm-12 col-xs-12">
                                <div class="row">
                                    <div class="col-xs-12">
                                        <div class="field-control-wrapper">
                                            <div class="list-order one-column">
                                                <input class="webinarSelector" type="radio" id="W${i + 1}_select_1" value="" name="W${i + 1}_select" />
                                                <label class="checkbox-aligned elq-item-label" for="W${i + 1}_select_1"></label>
                                                <br />
                                            </div>
                                            <div class="list-order one-column">
                                                <input class="webinarSelector" type="radio" id="W${i + 1}_select_2" value="" name="W${i + 1}_select" />
                                                <label class="checkbox-aligned elq-item-label" for="W${i + 1}_select_2"></label>
                                                <br />
                                            </div>
                                            <div class="list-order one-column">
                                                <input class="webinarSelector" type="radio" id="W${i + 1}_select_3" value="" name="W${i + 1}_select" />
                                                <label class="checkbox-aligned elq-item-label" for="W${i + 1}_select_3"></label>
                                                <br />
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            `;
            break;
        }
    }

    if (CollabWebinar_Type == "checkbox") {
        for (var i = 0; i < MAX_WEBINARS; i++) {
            str = `${str}
                <div class="row">
                    <div class="grid-layout-col grid-layout-Webinar grid-layout-Webinar-${i + 1}">
                        <div class="layout-col col-sm-12 col-xs-12">
                            <div class="elq-field-style form-element-layout row">
                                <div class="col-sm-12 col-xs-12">
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <div>
                                                <div class="single-checkbox-row row">
                                                    <input class="webinarSelector" type="checkbox" name="W${i + 1}_box" id="W${i + 1}_box" />
                                                    <label class="checkbox-aligned elq-item-label" for="W${i + 1}_box"></label>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                `;
        }
    }

    $("form:not([name=translationPicklistForm]) .layout.container-fluid").prepend(str);
    translateRegistrationForm();
}
$(".bb-collapse,.bb-collapse-small,.bb-collapse-normal,.bb-collapse-big,.bb-collapse-medium,.bb-collapse-large").each(function () {
    var element = $(this);
    var divider = element.contents().filter(".bb-collapse-divider");
    var maxLines = 0;
    var hiddenSpan = $(`
  <span style='display:none'></span>
  `);
    var addHiddenSpan = false;

    if (divider.length == 1) {
        element.contents().each(function () {
            if ($(this).prevAll().filter(".bb-collapse-divider").length !== 0) {
                var elementAfter = $(this);
                hiddenSpan.append(elementAfter);
            }
        });
        addHiddenSpan = true;
    } else if (element.hasClass("bb-collapse-small")) {
        maxLines = 3;
    } else if (element.hasClass("bb-collapse-normal") || element.hasClass("bb-collapse-medium")) {
        maxLines = 5;
    } else if (element.hasClass("bb-collapse-big") || element.hasClass("bb-collapse-large")) {
        maxLines = 7;
    }
    var bbCollapseDebug = false;
    if (element.hasClass("debug")) {
        bbCollapseDebug = true;
    }
    if (maxLines > 0) {
        var splitLen = 0;
        var lines = getLinesOfElement(element);
        if (lines.length <= maxLines) {
            return;
        }
        for (var tempI = 1; tempI < lines.length && tempI <= maxLines; tempI++) {
            splitLen = splitLen + lines[tempI].length;
        }

        // var text = element.text();
        // hiddenSpan.append(text.substring(splitLen));
        // element.html(text.substring(0,splitLen));

        var tempElem = $("<div></div>").append(element.html());

        element.html("");
        var currentChars = 0;

        tempElem.contents().each(function () {
            var elementAfter = $(this);
            var text = elementAfter.text();
            var atleastOne = false;
            var allWords = text.match(/\S+/g) || [];
            if (text.length != 0 && text[0] == " ") {
                allWords[0] = " " + allWords[0];
            }
            var allText = "";
            for (var i = 0; i < allWords.length; i++) {
                allText = allText + allWords[i] + " ";
            }
            if (bbCollapseDebug) {
                console.log(elementAfter);
                console.log(text);
            }

            if (currentChars == -1) {
                var addedTo = "hidden 1";
                addHiddenSpan = true;
                hiddenSpan.append(elementAfter);
            } else if (currentChars + allText.length < splitLen) {
                atleastOne = true;
                currentChars = currentChars + allText.length;
                element.append(elementAfter);
                addedTo = "shown 1";
            } else {
                if (elementAfter.get(0).nodeType == 3) {
                    addHiddenSpan = true;
                    hiddenSpan.append(allText.substring(splitLen - currentChars));
                    element.append(allText.substring(0, splitLen - currentChars));
                    addedTo = "splited";
                } else if (atleastOne) {
                    addHiddenSpan = true;
                    hiddenSpan.append(elementAfter);
                    addedTo = "hidden 2";
                } else {
                    element.append(elementAfter);
                    addedTo = "shown 2";
                }
                atleastOne = true;
                currentChars = -1;
            }
            if (bbCollapseDebug) {
                console.log(addedTo);
            }
        });
    }

    if (addHiddenSpan) {
        element.append(hiddenSpan);
        element.append(`
    <a class="showHideBbCollapseLink" data-show="true" data-hidetext="Hide" data-showtext="Show more" onclick="showHideBbCollapse(this)">Show more 
    <img class="onNoHover" src="https://images.email.blackboard.com/EloquaImages/clients/BlackboardInc/%7B94b1a717-5529-4227-a14e-868a701f12a9%7D_Vector.png">
    <img class="onHover" src="https://images.email.blackboard.com/EloquaImages/clients/BlackboardInc/%7B30158ed9-1b25-4db5-bf72-ba31c5371b70%7D_arrow_orange.png">
    </a>
    `);
    }
});

var queryT = window.location.search.substring(1);
var varsT = queryT.split("&");
for (var i = 0; i < varsT.length; i++) {
    var pair = varsT[i].split("=");
    if (pair[0] == "debug") {
        debug_mode = true;
    }
    if (pair[0] == "tr_lang") {
        window.tr_lang = pair[1];
    }
    if (pair[0] == "tr_lang_dates") {
        window.tr_lang_dates = pair[1];
    }
}
if (typeof tr_lang !== "undefined" && tr_lang != "") {
    window.translateFormLanguage = tr_lang;
}
if (typeof tr_lang_dates !== "undefined" && tr_lang_dates != "") {
    window.datesLocale = tr_lang_dates;
}

if (typeof CollabWebinar_Type === "undefined") {
    CollabWebinar_Type = "nonCollab";
}
CollabWebinar_Type = CollabWebinar_Type.toLowerCase();

if (typeof CollabWebinar_Inputs == "undefined") {
    CollabWebinar_Inputs = [];
}

masterFormInit();
var drJq = $("select[name='dropdownMenu']");

if (drJq.length > 0 && $("form:not([name=translationPicklistForm]) select[name='W1_select']").length < 1) {
    drJqFlag = true;
    drJq.attr("name", "W1_select");
}

$("select[name='multibleWebinarsSelect']").on("change", function () {
    var selectedWebinarValue = $("select[name='multibleWebinarsSelect']").val();
    setSelected(selectedWebinarValue);
});

$("select[name='W2_select']").on("change", function () {
    var selectedWebinarValue = $("select[name='W2_select']").val();
    setSelected(selectedWebinarValue);
});

$(document).on("change", "[name='W2_select']", function () {
    var selectedWebinarValue = $("select[name='W2_select']").val();
    setSelected(selectedWebinarValue);
});

$(document).on("change", "input,select", function () {
    if (!emailSubmitDisabled) {
        $("[type=Submit]").attr("disabled", false);
    }
    $(".loader").remove();
});

$("form:not([name=translationPicklistForm]) [name='W1_select']").on("change", function () {
    var selectedWebinarValue = $("form:not([name=translationPicklistForm]) [name='W1_select']").val();
    setSelected(selectedWebinarValue);
});

webinarOptions = $("form:not([name=translationPicklistForm]) [name='W1_select'] option");

$("[name='Other']").closest(".grid-layout-col").css("display", "none");

$("[name='BB-learn-version']").change(function () {
    if ($("[name='BB-learn-version']").val() != "Other") {
        $("[name='Other']").closest(".grid-layout-col").css("display", "none");
    } else {
        $("[name='Other']").closest(".grid-layout-col").css("display", "");
    }
});

initializeSelects();

var tempC = $("[name='c']").val();
if (typeof tempC !== "undefined" && tempC.indexOf("?") != -1) {
    tempC = tempC.substring(0, tempC.indexOf("?"));
    $("[name='c']").val(tempC);
}
  • Skip to primary navigation
  • Skip to content
Blackboard logo
  • Keynotes
  • Facilitators
  • Contact Us
  • Register

Digital Teaching Symposium

Come together for a day of learning and sharing best practices.

April 21, 2022 | 9:00 am – 10:00 pm ET

Calendar Icon
Friday, November 5
Calendar Icon
9:00 am - 4:00 pm ET

REGISTER TODAY

Keynotes

Dr. Newton Miller

Merlyna Valentine

Merlyna Mathieu Valentine is an international speaker, author, and consultant. She retired after thirty years having served as a teacher, principal, and executive director in an extraordinarily successful school district in Louisiana. Her transformational leadership as a school principal resulted in her school’s recognition as a “Top Gains” school.

In the face of tragedy and daunting obstacles, Ms. Valentine unleashed a remarkable inner strength that enabled her to lead by example. She has learned some valuable lessons since 2007, when her life as she knew it was forever changed and she experienced the closest call to death imaginable. Instead of focusing on what happened and what’s missing from her new life, Ms. Valentine chooses to embrace this very different path with a positive attitude. Through her current endeavors as an international speaker and consultant, Ms. Valentine empowers audiences to embrace their personal power and prove what’s possible.

Yvette Drager

Yvette Drager

Senior Education Consultant
Anthology

Yvette Drager has been involved in adult education for over 24 years with more than 19 years of that experience within the adult education sectors. For several years Yvette ran a successful education consulting firm that supported small organizations with onboarding solutions to move into a technology enabled training space. During the COVID-19 pandemic, via her consulting business, she supported many educators around the world probono to ensure that they could move into the online space seamlessly with the minimum of disruption. She is a well-known keynote presenter with a focus on improving trainers facilitation/teaching skills via the use of technology to enhance training delivery that will increase education success for organizations of various sizes.

Discussion Facilitators

Ashley Atwood

Ashley Atwood

Instructor
Angelo State University

Dr. Ashley Atwood is an instructor for the Department of Curriculum and Instruction at Angelo State University where she primarily teaches courses within the professional school counseling online graduate program. Previously, she served as a K-12 educator and school counselor. Dr. Atwood has taught numerous graduate level courses in the professional school counseling program and has assisted in the writing of several courses, mostly focusing on the role of the counselor and the building of a comprehensive school counseling program. As an online educator, she is continuously searching for innovative tools and instructional strategies to not only engage learners, but also identify ways to build relationships with students and among students. Dr. Atwood recently earned her Ph.D. in Counseling and Psychological Studies where she focused on researching methods for responding to crisis and trauma for individuals and whole groups.

Justin Barnes

Scholarly Assistant Professor
Washington State University

Jennifer Boddiker

Professor of Biology and Microbiology
Keiser University

Gioella Chaparro

Gioella Chaparro

Assistant Professor
California State University Dominguez Hills

Assistant Professor at CSU, Dominguez Hills in the Kinesiology department. 2/2 years of in-person and online teaching, respectively. Advisor to the Fitness director option and to the Kinesiology Student Association.

Elizabeth Cobacho

Elizabeth Cobacho

Instructor
Higher Colleges of Technology

Elizabeth Cobacho is the Academic Success Program Coordinator and an ELT faculty member at Dubai Women's College. She began her teaching career as a Fulbright English Language Teaching Assistant in Brazil and has over 10 years of international teaching experience in the US, Tunisia, Turkey, and the UAE. Her research interests include playful learning design; universal design for learning (UDL); diversity, equity, inclusion, and belonging in international higher education; professional development; design-thinking and entrepreneurship; and education technology. She's recently completed a M.Ed. in Technology, Innovation, and Education from the Harvard Graduate School of Education.

Rebecca Cooney

Rebecca Cooney

Scholarly Associate Professor, Scholarly Associate Professor
Washington State University

Rebecca Cooney is a scholarly associate professor with more than 26 years of experience in professional communication. She teaches courses in integrated campaigns, message strategy, and digital marketing. In addition to teaching, she is the director of Murrow Online Programs and a research associate for the Center of Excellence in Natural Product-Drug Interaction Research. Outside of her work at WSU, she serves as a consultant in learning experience design and effective communication in the virtual space. She was a recipient of the 2021 President’s Distinguished Teaching Award for Career-Track Faculty, placed 2nd in the AEJMC annual Best Practices in Teaching competition in 2021, Provost Featured Faculty member in 2019, and recipient of the Oaks Award for innovation in teaching (2019), Scripps Howard Visiting Professor in Social Media (2015), and Plank Center Educator Fellow awards (2014). She is certified in learning experience design (LXD) and holds a BA and MS in communications.

Agnes DeFranco

Agnes DeFranco

Professor
University of Houston

DeFranco has been the Associate Dean and Interim Dean of the Conrad N. Hilton College of Global Hospitality Leadership, and the Associate Vice President for Undergraduate Studies for the University of Houston. In 2009-2012, she was also the Co-Chair of the Undergraduate Education Advisory Committee of the Texas Higher Education Coordinating Board. She is currently a Full Professor and the Conrad N. Hilton Distinguished Chair with the college. In addition to her 120 plus refereed articles, Agnes also has a number of non-refereed publications and seven textbooks. Some of her grants include a Department of State USIA research grant on Curriculum Development with Meio University in Okinawa, Japan, and three USDA Cochran Programs on Restaurant Management. Teaching and student success are very important to her, and she was recognized with many teaching awards including the Teaching Excellence Career Award of the University of Houston.

Dara Faul

Dara Faul

Associate Director of the Teaching Transformation and Development Academy
University of North Dakota

Joseph Fees

Joseph Fees

Assistant Professor of Spanish
Delaware State University

Joseph Fees, PhD, is an Assistant Professor of Spanish and Online Coordinator for the College of Humanities, Education and Social Sciences at Delaware State University. He teaches all levels of Spanish and has developed online Spanish courses. His research interests include teaching with technology, student engagement and language pedagogy.

Andrea Guthridge

Andrea Guthridge

Instructional Designer
University of North Dakota

Andrea Guthridge has worked in Education for going on 10 years. She is an Instructional Designer at the University of North Dakota assisting faculty in the College of Engineering and Mines & the College of Nursing and Professional Disciplines create meaningful content and helping faculty to use best pedagogical practices. As member of the education community, Andrea has worked hard to support faculty using Blackboard and other educational technologies in academic environment, and support and serve all students. She currently resides in Grand Forks, ND with her husband, two sons, and their dog- Roger Wilco. When not at the office she can be found reading, riding her peloton, and crafting.

Diane Lundeen

Diane Lundeen

Academic Application Administrator/Learning Space Coordinator
University of North Dakotan

I have been a Blackboard and academic applications administrator for approximately 15 years. Delving into each application to find out how it works and how it can be used in teaching and learning is what I enjoy about my role.

DanielKuchinka

Daniel Kuchinka

Professor
Keiser University

Dr. Dan earned a Master's degree in communication studies and a PhD in industrial and organizational psychology. For about 10 years Dr. Dan has used the Blackboard platform to develop two new graduate programs. He designs and teaches graduate courses for Keiser University and Saint Peter's University. Before entering academia Dr. Dan has served in various leadership positions for over 15 years, including running two non-profit organizations.

Szymon Machajewski

Szymon Machajewski

Assistant Director Learning Technologies & Instructional Innovation
University of Illinois Chicago

Teacher. Gamification sherpa. Codewright. EDUCAUSE SSA CG Steering Committee. Blackboard MVP.

Chelsea Newman

Scholarly Assistant Professor
Washington State University

Ben Pingel

Ben Pingel

Scholarly Assistant Professor
Washington State University

Ben is a Scholarly Assistant Professor at Washington State University and has been a communication professional for over 15 years working in marketing, graphic and web design, and advertising. He holds a MA in Communication and Leadership from Gonzaga University, and will soon complete his PhD in Communication with Regent University. His research areas focus on family media and communication, visual communication, and intergenerational communication.

Arlene Ramirez

Arlene Ramirez

Instructional Assistant Professor
University of Houston

Arlene is currently an Instructional Assistant Professor at the C.N. Hilton College of Global Hospitality Leadership at the University of Houston, teaching courses in finance, hotel development, hotel operations, project management and project implementation. With over 25 years of experience in the hospitality industry, Arlene has broad expertise in multi-property business operations, strategic planning, resource optimization, contract negotiation, financial processes and controls, acquisition of technology, and asset management.

JennyReichart

Jenny Reichart

Faculty Development Specialist
University of North Dakota

I am the Faculty Development Specialist and Inclusion Ambassador in the Teaching Transformation and Development Academy (TTaDA) of the University of North Dakota. I have worked in higher education as a staff manager, faculty member, faculty developer, and educational consultant for fifteen years. My current work focuses on pedagogical best practices in digital transformation, DEI in distance education and digital learning, digital badging and micro-credentialing, and supporting distance faculty in trauma-informed care and instruction. I lead faculty development for distance and online faculty, the UND Digital Badging Initiative, campus-wide DEI initiatives, and faculty self-care programs. In my free time, I enjoy hiking in state and national parks with my sturdy terrier, visiting zoos, aquaria, and nature preserves, being entertained by my cats and chinchillas, frequenting Disney World, and binging River Monsters.

Ankie Robberts

Ankie Robberts

Learning Designer
University of Pretoria

Dr Ankie Robberts is a learning designer at the Unit of Comprehensive Online Education Services at the University of Pretoria. Dr Robberts has 20 years’ experience in face-to-face and blended modes of teaching in Higher Education. She started her career at the Mathematics department at the University of Pretoria teaching first year mathematics in the extended programme. Thereafter, she co-developed and lectured a professional development module for freshman engineering students in the Engineering department. Currently, she is responsible for the instructional design and development of fully online learning programmes, especially those of high impact modules and short courses. Her areas of expertise include blended learning, game-based learning, elearning and teaching with technology in a student-centred learning environment. Dr Robberts has a passion for designing learning environments to optimise student engagement and performance. She is supervising honours students at the University of Pretoria in the field of Computer Integrated Education.

Heather Schoen

Heather Schoen

Instructor
Angelo State University

Dr. Heather Schoen has a Ph.D in Educational Psychology with an emphasis on Developmental and Learning Sciences. She has a background in K-12 teaching, spending the first ten years of her career teaching secondary mathematics. She has presented at state conferences on online learning and principal certification. Dr. Schoen has a passion for teaching educational research methods to graduate students to invoke change in both K-12 schools and higher education. Dr. Schoen has taught numerous masters-level courses, mainly in the area of educational research; data collection, analysis, and application; and educational leadership. Her research interests include motivation of students in online learning, instructional strategies within the online learning environment, and the impact of connectedness on student engagement.

Eugenie Wolff

Eugenie Wolff

Project Manager
University of Pretoria

Eugenie Wolff currently works at the University of Pretoria’s, Comprehensive Online Education Services Directorate as Project Manager of the Online Education team. She is currently completing her PhD in Computer Integrated Education with a focus on Scrum as Project Management Framework to promote social interactions in eLearning projects. Eugenie has extensive experience in leading curriculum design and development teams, of both blended and fully online (distance) programmes, across numerous disciplines. She has facilitated courses on teacher education specialties such as research methodology, curriculum design and development, assessment, and e-learning.

Session Speakers

Sharon Austin

Sharon Austin

Academic Technology Accessibility Specialist
University of Tampa

Sharon Austin is a passionate accessibility advocate who holds the unshakable belief that the twin privileges of health and wealth should not be required to be able to make great contributions to society, to gain financial security, or network fully with others. Blackboard is used on two different levels; at the University of Tampa, Sharon uses Blackboard and Blackboard Ally in her role as an Academic Accessibility Specialist. At Morehead State University, she uses Blackboard to teach fully online courses as an adjunct faculty member.

Hayden Benson

Hayden Benson

Reading and English Instructor
Athens Technical College

Hayden Benson is a Reading and English instructor and a co-advisor for Phi Theta Kappa at Athens Technical College in Georgia. Her first experience with teaching was when she tutored adult learners for their GED exams. Seeing their joy when they grasped a concept inspired her to pursue teaching English to college-level and dual-enrolled students. Hayden graduated with her Bachelor of Arts in English from the University of Georgia in 2018 and then became a Double Dawg in 2020 after graduating with her Master of Arts in Rhetoric and Composition. Her teaching style relies heavily on gamification and game-based learning. Hayden received the 2021 and 2022 Phi Theta Kappa Paragon Awards for New Advisors at the Regional and International level. When she's not prepping her lessons or planning PTK events, she enjoys spending time with her husband, Blake, their families, and their dog, Riley.

Kat Biacindo

Kat Biacindo

Associate Professor
California State University, Fresno

Graduate of Rutgers University, supporter and developer of all the newest technology to create superior educational online offerings. Have been an advocate of the MS and all that it offers, as it is undeniably the superior product for all publication needs.

William Brantley

Adjunct Faculty Member
University of Maryland

Dr. Brantley is a scholar of leadership theory and development, organizational theory, project management, and communication theory. Along with a Ph.D. in Public Policy and Management, he has a Master’s in Political Management, an MBA in Project Management, and a Master’s in Education in Organizational Leadership, Performance, and Change. Dr. Brantley holds over 50 certifications including three project management certifications, an agile coaching certification, five HR certifications, and a data scientist certification. Dr. Brantley is an adjunct faculty member for the University of Louisville (20+ years) and the University of Maryland (7+ years). He is the author of The Persuasive Project Manager: Communicating for Understanding (2019) and Four Scenarios for the Future of the Federal Government: Collected Essays on Transforming Government (2019).

Toby Brooks

Toby Brooks

Assistant Dean, Program Director, and Associate Professor
Texas Tech University Health Sciences Center

Assistant Dean | Associate Professor | Author | Speaker | Servant leader with a passion for helping others become their own best.

Laurie Jean Carter

Laurie Jean Carter

Mellon Foundation Endowed Chair of English and Foreign Languages
Hampton University

The Root online magazine listed Laurie Jean's memoir, Crave: Sojourn of a Hungry Soul, as one of the best nonfiction books by Black authors in 2015. Kirkus Reviews described Crave as a "bold, honest, and courageous memoir." Foreword Reviews listed Crave as an Indiefab Book of the Year 2015 finalist in the autobiography/memoir category. Additionally, Crave was named a finalist for the Library of Virginia People’s Choice Award for Nonfiction. Laurie Jean has published personal essays on poverty, domestic violence, and military sexual trauma in a number of publications, including The Rumpus, Good Housekeeping, and Ink and Letters. She has presented talks, lectures, and workshops at numerous organizations, including the KGB Literary Bar, Girls Write Now, The Women’s Initiative, and West Point Military Academy. Laurie Jean is also an award-winning, highly decorated educator. She currently serves as the Mellon Foundation Endowed Chair of English and Foreign Languages at Hampton University and is a member of the creative writing faculty in the Wilkes University MA/MFA low-residency Creative Writing Program. During the Spring 2021 semester, she was awarded the Academic Excellence Award for outstanding faculty member at Hampton University. Her most recent memoir, Other Than Honorable: A Soldier's Struggle Through Military Sexual Trauma will be published by Etruscan Press in January 2023. Additionally, her craft book From the Trenches: Writing and Workshopping Race will be published by Kendall Hunt publishing in Spring 2022.

Donald DeSormoux

Donald DeSormoux

Associate Dean
Keiser University

Dr. Donald DeSormoux, a native of Florida, is an accomplished professional offering visionary and progressive leadership built on developing and nurturing new and existing relationships in an inclusive and diverse academic environment. He currently serves Keiser University as an Academic Dean. His career includes service at public and private institutions with significant experience in all areas of academia, student affairs, living-learning community development, enrollment management, and first-year experience. He enjoys collaborating with faculty on student success strategies and overall online persistence. Dr. DeSormoux is active in educational associations and has a passion for lifelong learning. He strives to provide solutions and supports assessments that focus on effectiveness. He holds a BA from St. Thomas University, an MEd from Lynn University, and a Doctorate in Educational Leadership and Management from Capella University.

Edie Fabiyi

Edie Fabiyi

Office Management Technology Instructor
Morton College

Edie Fabiyi is a full-time instructor at Morton College. She teaches office management, computing, and business classes working for the Business Technologies division. Involved in online learning for more than 20 years, Edie enjoys teaching synchronously, asynchronously, and face-to-face.

Joseline Felix-Minnaar

Joseline Felix-Minnaar

Lecturer
Cape Peninsula University of Technology

I have a Masters degree in Microbiology and was employed as a Technician in the Microbiology laboratory of the Department of Food Science and Technology at CPUT in 1996. In 2006 I was promoted to lecturer. I soon realised that passion was not enough, I was ill-prepared to teach. This sparked the beginning of journey to remedy that. I attended a Teaching development programme offered at CPUT which provided insight into the theoretical aspects of teaching encouraging us to apply/practice these in our classes; since then I have attended numerous online and in-person teaching enrichment programmes. I have a great passion for teaching and love that moment when you can see that a student finally grasps a concept. I am involved with both undergraduate and post graduate students and my teaching philosophy is based creating understanding through doing.

Sevinj Guliyeva

Sevinj Guliyeva

Instructor of Azerbaijani Language and Literature
ADA University

I, Sevinj Guliyeva, was born in 1995. I started my first education in Baku, then continued my bachelor's degree at the AUL, majoring in Azerbaijani language and literature. I completed my master's degree in World Literature at Baku State University. I started my career at the Caspian Education Center. Later, I taught the Azerbaijani language to foreign students at the Azerbaijan University of Architecture and Construction. I am currently Instructor of Azerbaijani Language and Literature at ADA school, expert of the State Examination Center, author of numerous articles and executor of the “ONE-We Realize Impossible” (“BİR- Biz İmkansızı Reallaşdıraq”) project with the support of the Science Development Fund under the President of Azerbaijan. The aim of the project is to create a model of inclusive pre-school children with disabilities for general education, taking into account the individual education program, as well as to ensure the development of extracurricular activities.

Marie Hagan

Marie Hagan

Senior Instructional Technology Consultant
University of Louisville

Marie Hagan is a Senior Instructional Technology Consultant in at the University of Louisville. She received a BS in middle grades education from Western Kentucky University, and a MS in education from Indiana University. She has worked in various roles in education for 15+ years, including 10+ years as a middle school English teacher, an ESL and Civics teacher in the UAE, and a literacy specialist. She has worked in instructional design for online courses in higher ed for five years.

Ilaha Hajiyeva

Instructor of Azerbaijani Language and Literature
ADA University

My name is Ilaha Hajiyeva and I am an Azerbaijan Literature and Composition Instructor at ADA School. I have spent over ten years in the education field. I got my bachelor and master degree in Azerbaijan language and literature from Azerbaijan University of Languages. After graduating with my BA, I began my teaching career in public schools and then continued on to Baku Slavic University and Azerbaijan University of Languages. I have contributed Academic writing, Azerbaijan language and speech culture lectures at Khazar University and SABAH groups as well. I got my Ph.D in Classical Azerbaijani literature from Azerbaijan University of Languages. As part of my research work, I have participated in different local and international conferences, written more than 20 articles, and thesises.

Jaimee Hamilton

Jaimee Hamilton

Educational Designer
James Cook University

I have been a lecturer and educational designer for over 15 years and am experienced in Aboriginal education, cultural intelligence and philosophy. I have written numerous subjects and degree programs for multimodal delivery. My passion lies in online education and designing innovative learning materials so the student experience is as engaging, dynamic and authentic as possible. I am constantly looking for more engaging ways to improve the student experience.

Krystal Iseminger

Krystal Iseminger

Accessibility and Course Quality Specialist
WSU Tech

Krystal Iseminger is the Accessibility and Course Quality Specialist at Wichita State University, Campus of Applied Sciences and Technology (WSU Tech). She is passionate about her roles as a designer/facilitator of accessibility training for faculty and staff, accessibility advocate, and course reviewer. Her commitment to promoting accessibility in education was fostered during her time as an Instructional Designer/Online Lecturer for WSU. Krystal has chaired the Accessibility Committee at WSU Tech for 3 years and continues to teach Composition and Literature online at WSU Tech and Wichita State University.

Abdul Sattar Khan

Abdul Sattar Khan

Head & Assistant Professor
College of Medicine, King Faisal University

Dr. Khan is now the Head of the Department of Family and Community Medicine at King Faisal University's College of Medicine. In addition, he has taught in colleges in Pakistan, Turkey, and Saudi Arabia. Dr. Khan has experience with curriculum development, revision, and evaluation at both the undergraduate and postgraduate levels. He has assisted in the development of a problem-based learning curriculum in Saudi Arabia, Turkey, Libya, Yemen, and Pakistan. He has served on numerous scientific committees to help establish the curriculum for postgraduate programs in family and preventive medicine in Saudi Arabia.

Patrick Kittrell

Education Technology Specialist
University of the District of Columbia

Pat Kittrell is the Education Technology Specialist at UDC’s Center for the Advancement of Learning. He serves as the Learning Management System Administrator and works closely with academic departments and other stakeholders to evaluate, test, and implement building blocks for existing and emerging technology. He has several years of work experience in Audiovisual Production & Support, Information Technology and Digital Media/Web Technology. The industries he has worked in include Education, Legal Services, Non-Profit and Government Contracting. His knowledge and experience have helped drive his passion for helping people while ensuring they have the best experience possible. In his spare time, Pat enjoys spending time with family. He is also a self-taught musician and enjoys creating in his studio. He plays drums, keyboard, turntable, bass and guitar. Areas of Expertise: helping people, audiovisual technology system management, video production, audio production, information technology support, instructional technology, music production, customer service, and training.

Balint Koller

Balint Koller

Instructional Designer
Southern Institute of Technology

I’m one of the instructional designers in a small and fairly new E-Learning Team at the Southern Institute of Technology / Te Whare Wānanaga o Murihiku, based in Invercargill, Aotearoa/New Zealand. An EFL teacher by training, I have held various roles in the New Zealand tertiary sector, including course and tutor coordination at Otago University, and managing the day-to-day operations of a self-access language learning centre at Victoria University of Wellington. In the latter position, I conducted orientation, independent learning, digital literacy, and classroom technology management sessions for students and educators alike. I have worked with various versions of Blackboard since 2006. In my current role, I’m tasked with re-designing distance learning courses to boost engagement via interactive multimedia content.

Jerrylynn Manuel

Jerrylynn Manuel

Instructional Designer
Southern Institute of Technology

Jerrylynn Manuel is an instructional designer at the Southern Institute of Technology Ltd. (a Te Pūkenga subsidiary) in Invercargill, New Zealand. Prior to her current role, Jerrylynn has worked as an instructor at the tertiary level within the vocational sector. Majority of her experience has been with teaching pre-nursing, and first and second-year nursing students both in New Zealand and Canada. In terms of facilitation outside of face-to-face instruction, Jerrylynn has dabbled in online, blended, and now HyFlex formats.

Kacy Midkiff

Kacy Midkiff

CTP Coordinator
Bluegrass Community & Technical College

Kacy Midkiff is a CTP Coordinator at Bluegrass Community & Technical College. With 8 years experience in public schools, Kacy made the leap to Higher Education in 2020. Kacy is passionate about being an advocate for students to pursue their dreams and have access to Higher Education.

Xyanthine Parillon

Xyanthine Parillon

Faculty
University of Houston Downtown

Xyanthine Parillon is an immunologist, science educator, and national mentor with Biomed Careers. Her PhD from Baylor College of Medicine involved investigating autoimmunity and developing preclinical models of a danger signal protein. Her EdD from the University of Houston involved computer assisted qualitative data analysis to determine strategies for effective leadership in healthcare. Continuing to teach human physiology presents a unique opportunity to engage in analytics of learning to inform making labs and lectures better and lead initiatives to increase student success.

Sephra Scheuber

Sephra Scheuber

Oklahoma Christian University
Oklahoma Christian University

Sephra Scheuber is a graduate of Middle Tennessee State University's audio engineering program, and she also holds a Master of Arts in Experimental Psychology from the University of Central Oklahoma. She was a faculty member at the University of Central Oklahoma for almost 8 years, and she currently acts as a faculty member and an instructional designer at Oklahoma Christian University, helping instructors build engaging and effective courses.

Ryan Schmidt

Texas Tech University

David Serna

David Serna

Instructional Technology Specialist
University of the District of Columbia

David Serna, M.Ed., is an Instructional Technologist and Professional Development Coordinator at the University of the District of Columbia's Center for the Advancement of Learning. In this role, he provides professional development for the successful implementation of innovative instructional technologies, such as immersive technology. Furthermore, he implements HyFlex classroom training on campus, incorporating best pedagogical methods. Prior to joining the UDC team, he worked for China's largest online-based ESL company, where he delivered weekly webinars on the effective application of online teaching skills, such as Gamification, Teacher Voice Development, Time Management, and Student Engagement. He also collaborated closely with the Chinese government (CCTV) to create ESL Online Teaching Training, which was viewed by over 60,000 Chinese English teachers simultaneously. David has also taught in traditional and online classrooms in South Korea, China, France, and Thailand.

Casandra Silva Sibilin

Casandra Silva Sibilin

Lecturer
York College, CUNY

Ms. Silva Sibilin is Lecturer at the History, Philosophy, and Anthropology Department at York College, City University of New York (CUNY). She teaches courses in Philosophy and Western Civilization and is currently an Andrew W. Mellon Transformative Learning in the Humanities Faculty Fellow. In her teaching, she seeks to empower students to be active participants and co-creators of their learning experiences. One of her goals is for students to think critically about course materials, class discussions with peers, and their own philosophies of life and education. As part of her fellowship, she is collaborating with CUNY colleagues and students on a podcast conversation about the meaning of grades and whether they contribute to or impede student learning and self-assessment. Over the past two years she has also focused on designing online synchronous courses that make use of new technologies and promote high levels of student participation and engagement.

Lisa Thompson Sousa

Assistant Professor
Sul Ross State University

Joshua Tidwell

Joshua Tidwell

LMS Specialist & Adjunct Instructor
Central Arizona College

Joshua Tidwell is the Learning Management System Specialist at Central Arizona College. He also works as an adjunct instructor for the college’s English department. In his work with the LMS and in the classroom, Joshua looks to combine his knowledge of learning technology and pedagogy to create engaging content and equitable experiences. His current emphasis is on empowering students in their educational journey by allowing them to make decisions in the classroom through gamified teaching approaches.

Katina Ward-James

Katina Ward-James

Director, Education Services
Hampton University

Dr. Katina Ward-James is a Virginia native who was raised in Mathews County and attributes her sense of community to growing up in a small town. Dr. Ward-James holds a Bachelor of Science in Business Administration from Christopher Newport University, a Master of Science in Education in Instructional Technology from Troy University, and a Doctor of Philosophy (PhD) in Information Technology from Capella University. Dr. Ward-James has been an educator for twenty-four years and currently serves as the Director of Education Services at Hampton University. Prior to this appointment, she served as the Program Director for the Information Technology and Information Systems programs at South University, Virginia Beach campus and an Assistant Professor in the Computer Science department at Hampton University.

Dina Yagodich

Dina Yagodich

Professor, Mathematics
Frederick Community College

Dina is a mathematics professor at Frederick Community College, teaching everything from the "I hate math" math class to Differential Equations, teaching for the past 18 years. She has a Bachelor's degree from Cornell University in Electrical Engineering and two Master's degrees from Johns Hopkins University in Electrical Engineering and Applied Mathematics.

Sponsored by:

Blackboard Academy
Cengage
Turnitin
  • Facebook
  • Twitter
  • LinkedIn
  • YouTube

Blackboard.com | Terms of use | Privacy center | AskUs@blackboard.com
Copyright © 2022. Blackboard Inc. All rights reserved. See Blackboard trademarks and patents.

var fixInputsFlag = false;

hideArray = ["emailAddress", "OptIn", "currentLMS1",
  "onlineProgramInPlace1", "dietaryRequirements",
  "firstName", "lastName", "title", "company", "country",
  "stateProv", "industry1", "jobTitleCategory1", "primaryRole1",
  "busPhone", "numberOfUsersANZ1", "city"
];

function getResetNoteQuery() {
  var version = $("input[name='formVersion']").val();
  if (version != "2") {
    return "#reset";
  }
  window.translateFormLanguage = window.translateFormLanguage ? window.translateFormLanguage : "en";
  var temp = (window.translateFormLanguage == "en-uk" || window.translateFormLanguage == "en-us" || window.translateFormLanguage == "en-anz") ? "en" : window.translateFormLanguage;
  return "." + temp + "-reset";
}
function getPrivacyNoteQuery() {
  var version = $("input[name='formVersion']").val();
  if (version != "2") {
    return "#privacy";
  }
  window.translateFormLanguage = window.translateFormLanguage ? window.translateFormLanguage : "en";
  var temp = (window.translateFormLanguage == "en-uk" || window.translateFormLanguage == "en-us" || window.translateFormLanguage == "en-anz")  ? "en" : window.translateFormLanguage;
  return "." + temp + "-privacy";
}
function numberFieldAllowdCharacters(evt) {
  var allowedCharaters = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "+", "-", "(", ")"];
  if (evt.key.toString().length == 1 && (!evt.ctrlKey || evt.key != "a") && !allowedCharaters.includes(evt.key)) {
    evt.preventDefault();
  }
}

function fixInputs(selector) {
  if (fixInputsFlag) {
    return;
  }
  fixInputsFlag = true;
  var div = document.createElement('div');
  div = $(div);
  div.addClass("row");
  div.addClass("myContainerRow");
  var target;
  if (selector == "") {
    selector = "form:not([name=translationPicklistForm]) input,form:not([name=translationPicklistForm]) select,form:not([name=translationPicklistForm]) textarea";
  }
  $(selector).each(function (index) {
    $(this).closest('.layout-col').removeClass("col-sm-6");

    var element = $(this).closest('.grid-layout-col');
    var oldForm = false;
    if (element.length == 0) {
      element = $(this).closest('.individual ');
      oldForm = true;
    }

    if ($(this).prop('type') != "hidden") {
      var attrName = $(this).attr('name');

      if (!formSingleColumn && attrName != 'OptIn' && $(this).prop('type') != "submit" && $(this).prop('type') != "textarea") {
        if(threeColumnFormDesign){
          element.addClass("col-md-custom-4");
        }
        else{
          element.addClass("col-md-6");
        }
      } else {
        element.addClass("col-md-12");
      }
      element.css('padding-left', '0');
      element.css('padding-right', '0');
      element.css('min-height', '0');

      var toDelete = element.parent();

      target = element.parent().parent();
      element.appendTo(div);
      toDelete.remove();
      if (oldForm) {
        element.addClass("form-element-layout");
        if (typeof attrName === 'undefined') {
          attrName = '';
        }
        if (hideArray.includes(attrName)) {
          element.hide();
        }

      }

    }

  });
  target = $("form:not([name=translationPicklistForm]) > div").filter(":not(" + getResetNoteQuery() + ")").filter(":not(" + getPrivacyNoteQuery() + ")").first();
  div.appendTo(target);

  if (iFrameDetection == true) {
    // $("form").prop("target", "_top");
  } else {
    $("form.elq-form:not([name=translationPicklistForm])").append($(getPrivacyNoteQuery()).show());
    $("form.elq-form:not([name=translationPicklistForm])").prepend($(getResetNoteQuery()).show());
  }



}
var iFrameDetection = (window === window.parent) ? false : true;

if (!Array.prototype.find) {
  Array.prototype.find = function (predicate) {
    'use strict';
    if (this == null) {
      throw new TypeError('Array.prototype.find called on null or undefined');
    }
    if (typeof predicate !== 'function') {
      throw new TypeError('predicate must be a function');
    }
    var list = Object(this);
    var length = list.length >>> 0;
    var thisArg = arguments[1];
    var value;

    for (var i = 0; i < length; i++) {
      value = list[i];
      if (predicate.call(thisArg, value, i, list)) {
        return value;
      }
    }
    return undefined;
  };
}

if (typeof disableProgressiveProfiling === 'undefined') {
  disableProgressiveProfiling = '';
}

if (disableProgressiveProfiling == 'true') {
  disableProgressiveProfiling = true;
} else {
  disableProgressiveProfiling = false;
}

if (typeof disableProgressiveProfilingClearFields === 'undefined') {
  disableProgressiveProfilingClearFields = 'true';
}

if (disableProgressiveProfilingClearFields == 'true') {
  disableProgressiveProfilingClearFields = true;
} else {
  disableProgressiveProfilingClearFields = false;
}

if (typeof showAllProgressiveProfilingFields !== 'undefined' && showAllProgressiveProfilingFields == 'true') {
  showAllProgressiveProfilingFields = true;
  disableProgressiveProfiling = true;
}else{
  showAllProgressiveProfilingFields = false;
}

var progPro = (function () {
  // var myList = '<option value="" class="forceTranslate">-- Please Select --</option><option value="AA">Armed Forces Americas</option><option value="AE">Armed Forces Europe</option><option value="AK">Alaska</option><option value="AL">Alabama</option><option value="AP">Armed Forces Pacific</option><option value="AR">Arkansas</option><option value="AS">American Samoa</option><option value="AZ">Arizona</option><option value="CA">California</option><option value="CO">Colorado</option><option value="CT">Connecticut</option><option value="DC">District of Columbia</option><option value="DE">Delaware</option><option value="FL">Florida</option><option value="GA">Georgia</option><option value="GU">Guam</option><option value="HI">Hawaii</option><option value="IA">Iowa</option><option value="ID">Idaho</option><option value="IL">Illinois</option><option value="IN">Indiana</option><option value="KS">Kansas</option><option value="KY">Kentucky</option><option value="LA">Louisiana</option><option value="MA">Massachusetts</option><option value="MD">Maryland</option><option value="ME">Maine</option><option value="MI">Michigan</option><option value="MN">Minnesota</option><option value="MO">Missouri</option><option value="MS">Mississippi</option><option value="MT">Montana</option><option value="NC">North Carolina</option><option value="ND">North Dakota</option><option value="NE">Nebraska</option><option value="NH">New Hampshire</option><option value="NJ">New Jersey</option><option value="NM">New Mexico</option><option value="NV">Nevada</option><option value="NY">New York</option><option value="OH">Ohio</option><option value="OK">Oklahoma</option><option value="OR">Oregon</option><option value="PA">Pennsylvania</option><option value="PR">Puerto Rico</option><option value="RI">Rhode Island</option><option value="SC">South Carolina</option><option value="SD">South Dakota</option><option value="TN">Tennessee</option><option value="TX">Texas</option><option value="UT">Utah</option><option value="VA">Virginia</option><option value="VI">Virgin Islands</option><option value="VT">Vermont</option><option value="WA">Washington</option><option value="WI">Wisconsin</option><option value="WV">West Virginia</option><option value="WY">Wyoming</option><option value="AB">Alberta</option><option value="BC">British Columbia</option><option value="MB">Manitoba</option><option value="NB">New Brunswick</option><option value="NF">Newfoundland</option><option value="NL">Newfoundland and Labrador</option><option value="NS">Nova Scotia</option><option value="NT">Northwest Territories</option><option value="NU">Nunavut</option><option value="ON">Ontario</option><option value="PE">Prince Edward Island</option><option value="QC">Quebec</option><option value="SK">Saskatchewan</option><option value="YT">Yukon</option><option value="ZZ">Beyond the limits of any Prov.</option><option value="ACT">Austl. Cap. Terr.</option><option value="NSW">New South Wales</option><option value="NT">Northern Territory</option><option value="QLD">Queensland</option><option value="SA">South Australia</option><option value="TAS">Tasmania</option><option value="VIC">Victoria</option><option value="WA">Western Australia</option>';
  var myList = '<option value="" class="forceTranslate">-- Please Select --</option><option value="AA">Armed Forces Americas</option><option value="AE">Armed Forces Europe</option><option value="AK">Alaska</option><option value="AL">Alabama</option><option value="AP">Armed Forces Pacific</option><option value="AR">Arkansas</option><option value="AS">American Samoa</option><option value="AZ">Arizona</option><option value="CA">California</option><option value="CO">Colorado</option><option value="CT">Connecticut</option><option value="DC">District of Columbia</option><option value="DE">Delaware</option><option value="FL">Florida</option><option value="GA">Georgia</option><option value="GU">Guam</option><option value="HI">Hawaii</option><option value="IA">Iowa</option><option value="ID">Idaho</option><option value="IL">Illinois</option><option value="IN">Indiana</option><option value="KS">Kansas</option><option value="KY">Kentucky</option><option value="LA">Louisiana</option><option value="MA">Massachusetts</option><option value="MD">Maryland</option><option value="ME">Maine</option><option value="MI">Michigan</option><option value="MN">Minnesota</option><option value="MO">Missouri</option><option value="MS">Mississippi</option><option value="MT">Montana</option><option value="NC">North Carolina</option><option value="ND">North Dakota</option><option value="NE">Nebraska</option><option value="NH">New Hampshire</option><option value="NJ">New Jersey</option><option value="NM">New Mexico</option><option value="NV">Nevada</option><option value="NY">New York</option><option value="OH">Ohio</option><option value="OK">Oklahoma</option><option value="OR">Oregon</option><option value="PA">Pennsylvania</option><option value="PR">Puerto Rico</option><option value="RI">Rhode Island</option><option value="SC">South Carolina</option><option value="SD">South Dakota</option><option value="TN">Tennessee</option><option value="TX">Texas</option><option value="UT">Utah</option><option value="VA">Virginia</option><option value="VI">Virgin Islands</option><option value="VT">Vermont</option><option value="WA">Washington</option><option value="WI">Wisconsin</option><option value="WV">West Virginia</option><option value="WY">Wyoming</option>';
  var loopField = "";
  var fieldsShown = 0;
  var progShown = 0;
  var country = "country";
  var industry = "industry1";
  var countryWithState = ["USA", "Canada", "Australia"];
  var explicitCountries = ["Canada", "Australia", "New Zealand", "Switzerland", "Austria", "Belgium", "Denmark", "Germany", "Italy", "Netherlands", "Spain"];
  var optOutCountries = [
    "Anguilla",
    "Antigua and Barbuda",
    "Argentina",
    "Aruba",
    "Barbados",
    "Belize",
    "Bermuda",
    "Bolivia",
    "Bonaire",
    "Brazil",
    "Cayman Islands",
    "Chile",
    "Christmas Island",
    "Colombia",
    "Costa Rica",
    "Jamaica",
    "Cuba",
    "Curacao",
    "Dominica",
    "Dominican Republic",
    "Ecuador",
    "El Salvador",
    "Faroe Islands",
    "Falkland Islands",
    "Falkland Islands (malvinas)",
    "Falkland Islands (Malvinas)",
    "French Guiana",
    "Grenada",
    "Guadeloupe",
    "Guatemala",
    "Guyana",
    "Haiti",
    "Honduras",
    "Martinique",
    "Mexico",
    "Nicaragua",
    "Panama",
    "Paraguay",
    "Peru",
    "Saint Kitts and Nevis",
    "Saint Lucia",
    "Saint Martin",
    "Saint Pierre and Miquelon",
    "St Vincent and the Grenadines",
    "The Bahamas",
    "Trinidad and Tobago",
    "Turks and Caicos Islands",
    "Uruguay",
    "Venezuela",
    "Virgin Islands (British)",
    "USA"
  ];
  var whatProblem = "whatProblemAreYouTryingToSolve1";


  var setRequired = function (requiredField) {
    if ($("label[for=" + requiredField + "] .required").length == 0) {
      var defaultValidationMessage = ($("[name=formValidMessage]").length > 0) ? $("[name=formValidMessage]").val() : "This field is required";
      console.log(defaultValidationMessage + " / " + $("[name=formValidMessage]").val());
      window[requiredField].add(Validate.Presence, {
        failureMessage: defaultValidationMessage
      });
      if ($("label[for=fe128854] .elq-required").length == 0) {
        $("label[for=" + requiredField + "]").append('<span class="required">*</span>');
      }
      console.log($("#" + requiredField).prop("name") + " is Required");
    }
  };

  var setField = function (progField, progStage) {
    try {
      loopField = progField;
      switch (eventType) {
        case "Webinar":
          var progType = progPro.contactFields.find(findProgType)[3];
          break;
        case "Event":
          var progType = progPro.contactFields.find(findProgType)[4];
          break;
        case "Download":
          var progType = progPro.contactFields.find(findProgType)[5];
          break;
        default:
          var progType = progPro.contactFields.find(findProgType)[5];
          break;
      }
      visibilityRules[progType](progField, progStage);
    } catch (err) {
      console.log(progStage + ": " + progField + " Not Found");
      // location.reload();
    }
  };

  var setForm = function () {
    // if (progPro.formSet == true) {
    //   return;
    // }

    if (disableProgressiveProfiling) {
      $(getResetNoteQuery()).hide();

      if (disableProgressiveProfilingClearFields) {
        $.each(progPro.contactFields, function (index, item) {
          if ($("[name=" + item[0] + "]").attr("type") != "checkbox") {
            $("[name=" + item[0] + "]").val("");
          } else {
            $("[name=" + item[0] + "]").prop("checked", false);
            progPro.optInAllowed = "true";
          }
        });
      }
    }
    $("[name=OptIn]").change(function () {
      if ($("[name=OptIn]").prop("checked")) {
        progPro.optInAllowed = "";
      } else {
        progPro.optInAllowed = "true";
      }
    });

    $.each($("span.elq-required"), function (index, item) {

      item = $(item);
      itemParent = item.closest('.form-element-layout');
      itemInput = itemParent.find("input");
      if (itemInput.length == 0) {
        itemInput = itemParent.find("select");
      }

      if (itemInput.length == 0) {
        itemInput = itemParent.find("textarea");
      }

      if (itemInput.length == 0) {
        return;
      }

      if (itemInput.length > 1) {
        return;
      }


      requiredField = itemInput.prop('id');

      var domVal = document.querySelector('#' + requiredField);
      domVal = new LiveValidation(domVal, {
        validMessage: "",
        onlyOnBlur: false,
        wait: 300
      });
      domVal.add(Validate.Presence, {
        failureMessage: "This field is required"
      });

      console.log($("#" + requiredField).prop("name") + " is Required");

      if (itemInput.prop('type') == "checkbox") {
        itemInput.prop("required", true);
      }
      itemInput.addClass("elqRequiredIs");


    });

    fixInputs('');


    progPro.formSet = true;
    console.log("Set Form: " + eventType + " " + progPro.stage);
    setWhatProblem();
    $.each(progPro.fixedFields, function (index, item) {
      progPro.setField(item, -1);
    });
    if (progPro.stage > 5) {
      progPro.stage = 6;
    }
    if(showAllProgressiveProfilingFields){
      $.each(progPro.contactFields, function (index, item) {
        showField(item[0], -1);
      });
      visibilityRules.State("stateProv",-1);
    }
    else{
    switch (progPro.stage) {
      case -1:
        break;
      case 0:
        console.log(progPro.firstVisit);
        $.each(progPro.firstVisit, function (index, item) {
          progPro.setField(item, progPro.stage);
        });
        break;
      case 1:
        $.each(progPro.firstVisit, function (index, item) {
          progPro.setField(item, progPro.stage);
        });
        break;
      case 2:
        var progPrePop = 0;
        $.each(progPro.secondVisit, function (index, item) {
          if (($("[name=" + item + "]").val() == "") || ($("[name=" + item + "]").val() == null)) {
            progPrePop++;
          }
        });
        if (progPrePop > 0) {
          $.each(progPro.secondVisit, function (index, item) {
            progPro.setField(item, progPro.stage);
          });
          break;
        } else {
          progPro.stage++;
        }
      case 3:
        var progPrePop = 0;
        $.each(progPro.thirdVisit, function (index, item) {
          if (($("[name=" + item + "]").val() == "") || ($("[name=" + item + "]").val() == null)) {
            progPrePop++;
          }
        });
        if (progPrePop > 0) {
          $.each(progPro.thirdVisit, function (index, item) {
            progPro.setField(item, progPro.stage);
          });
          break;
        } else {
          progPro.stage++;
        }
      case 4:
        var progPrePop = 0;
        $.each(progPro.fourthVisit, function (index, item) {
          if (($("[name=" + item + "]").val() == "") || ($("[name=" + item + "]").val() == null)) {
            progPrePop++;
          }
        });
        if (progPrePop > 0) {
          $.each(progPro.fourthVisit, function (index, item) {
            progPro.setField(item, progPro.stage);
          });
          break;
        } else {
          progPro.stage++;
        }
      case 5:
        var progPrePop = 0;
        $.each(progPro.fifthVisit, function (index, item) {
          if (($("[name=" + item + "]").val() == "") || ($("[name=" + item + "]").val() == null)) {
            progPrePop++;
          }
        });
        if (progPrePop > 0) {
          $.each(progPro.fifthVisit, function (index, item) {
            progPro.setField(item, progPro.stage);
          });
          break;
        } else {
          progPro.stage++;
        }
      case 6:
        break;
      default:
        $.each(progPro.firstVisit, function (index, item) {
          progPro.setField(item, progPro.stage);
        });
        break;
    }
    }

    if ((eventType == "Download") && (submitButtonText == "")) {
      submitButtonText = $("[name=submitButtonText]").val();
    }
    if (typeof _translateRegistrationForm == "function") {
      submitButtonText = _translateRegistrationForm(submitButtonText);
    }
    if (submitButtonText != "") {
      $(".submit-button").val(submitButtonText);
      $("[name=submitButtonText]").val(submitButtonText);
      $("[type=Submit]").val(submitButtonText);
    }
    $("input[type=submit]").parents('.form-element-layout').show();
    $("input[type=submit]").parents('.form-element-layout').removeClass("forceHideField");

    $("form:not([name=translationPicklistForm]), #wrapper").show();
    if (iFrameDetection == true) {
      parent.postMessage('height|' + $(document).height(), "*");
    }

    fixInputHeights();

    if (typeof fullWebinarsUx === "function") {
      fullWebinarsUx();
    }
    if (typeof formSetCallback === "function") {
      formSetCallback();
    }
    $("form:not([name=translationPicklistForm]) .elq-label").each(
      function (i, e) {
        t = $(e).text().trim();
        if (["address1","address2","address3"].includes(t)) {
          $(e).closest(".grid-layout-col").hide();
        }
      }
    )

  };

  var setWhatProblem = function () {
    try {
      if (($("[name=p]").val() != "") && ($("[name=p]").val() != null)) {
        //$("[name='" + whatProblem + "']").val("");
        //var myProblem = whatProblemList.find(findWhatProblem)[1];
        $("[name='" + whatProblem + "']").val($("[name=p]").val());
      } else {
        $("[name='p']").val(defaultWhatProblem);
        $("[name='" + whatProblem + "']").val(defaultWhatProblem);
      }
    } catch (err) {
      $("[name='p']").val(defaultWhatProblem);
      $("[name='" + whatProblem + "']").val(defaultWhatProblem);
    }
  };

  var setHiddenFields = function () {
    var query = window.location.search.substring(1);
    var vars = query.split("&");
    if (document.location.search.length) {
      for (var i = 0; i < vars.length; i++) {
        var pair = vars[i].split("=");
        if (typeof pair[1] == "undefined") {
          continue;
        }
        if ($("[name='" + pair[0] + "']") && (pair[1] != "")) {
          var xVal = pair[1].replace(/\+/g, '%20');
          $("[name='" + pair[0] + "']").val(decodeURIComponent(xVal));
        }
      }
    }
    if ((typeof hotLead !== 'undefined') && ((hotLead == 'true') || (hotLead == 'TRUE') || (hotLead == true))) {
      $("[name='hotLead']").val("TRUE");
    }
    if ((typeof scoreLead !== 'undefined') && ((scoreLead == 'true') || (scoreLead == 'TRUE') || (scoreLead == true))) {
      $("[name='scoreLead']").val("TRUE");
    }
    $("[name='eid']").val($("[name='cid']").val());
    setWhatProblem();
  };

  var mergeHiddenFields = function (uri) {
    var thisStage = parseInt($.cookie("progPro")) + 1;
    if (isNaN(thisStage)) {
      thisStage = 1;
    }
    var query = window.location.search.substring(1);
    var vars = query.split("&");
    for (var i = 0; i < vars.length; i++) {
      var pair = vars[i].split("=");
      uri = updateQueryStringParameter(uri, pair[0], pair[1]);
    }
    return uri + "&stage=" + thisStage;
  };

  var setStageCookie = function (e) {
    console.log("Received: " + e.data);
    if ((isNaN(e) == false) /*&& (eventType == "Download") */) {
      $.cookie('progPro', e, {
        expires: 180,
        domain: 'blackboard.com'
      });
    }
  };

  var updateQueryStringParameter = function (uri, key, value) {
    var re = new RegExp("([?|&])" + key + "=.*?(&|#|$)", "i");
    if (uri.match(re)) {
      return uri.replace(re, '$1' + key + "=" + value + '$2');
    } else {
      var hash = '';
      if (uri.indexOf('#') !== -1) {
        hash = uri.replace(/.*#/, '#');
        uri = uri.replace(/#.*/, '');
      }
      var separator = uri.indexOf('?') !== -1 ? "&" : "?";
      return uri + separator + key + "=" + value + hash;
    }
  };

  var setGeolookup = function () {
    setField("stateProv", -1);
    setField("OptIn", -1);
  };

  var findWhatProblem = function (problem) {
    return problem[0] == $("[name='p']").val();
  };

  var findProgType = function (progProObj) {
    return progProObj[0] == loopField;
  };

  var hideField = function (currentField) {
    console.log("Tring to hide: " + currentField);
    $("[name=" + currentField + "]").parents('.form-element-layout').hide();
    $("[name=" + currentField + "]").parents('.form-element-layout').addClass("forceHideField");
    if (currentField == "stateProv") {
      $("[name=stateProv]").append("<option value=' '></option>");
      $("[name=stateProv]").val(" ");
    }
  };

  var showField = function (currentField, currentStage, Validation) {
    console.log(currentField + " " + progShown + " " + fieldsShown + " " + currentStage);
    if (currentStage == -1) {
      $("[name=" + currentField + "]").parents('.form-element-layout').show();
      $("[name=" + currentField + "]").parents('.form-element-layout').removeClass("forceHideField");

      fieldsShown++;
      if (Validation == "Required") {
        setRequired($("[name=" + currentField + "]").prop('id'));
      }
    } else if ((fieldsShown < progPro.maxFields) && (progShown < progPro.maxProgFields)) {
      $("[name=" + currentField + "]").parents('.form-element-layout').show();
      $("[name=" + currentField + "]").parents('.form-element-layout').removeClass("forceHideField");

      progShown++;
      fieldsShown++;
      if (Validation == "Required") {
        setRequired($("[name=" + currentField + "]").prop('id'));
      }
    }
  };

  var resetForm = function () {
    $(getResetNoteQuery()).hide();
    $("span.required").remove();

    //  if (eventType != "Download") {
    var missingFields = 0;
    if (($("[name=industry1]").is(':visible') == false)) {
      missingFields++;
    }
    if (($("[name=title]").is(':visible') == false)) {
      missingFields++;
    }
    progShown = progShown - missingFields;
    if (progShown < 0) {
      progShown = 0;
    }
    //  }
    $.each(progPro.contactFields, function (index, item) {
      if (($("[name=" + item[0] + "]").is(':visible') == true)) {
        fieldsShown--;
      }
      if ($("[name=" + item[0] + "]").attr("type") != "checkbox") {
        $("[name=" + item[0] + "]").val("");
      } else {
        $("[name=" + item[0] + "]").prop("checked", false);
        progPro.optInAllowed = "true";
      }
    });

    progPro.stage = 0;
    progPro.formSet = false;
    progPro.setForm();
    if (iFrameDetection == true) {
      parent.postMessage('height|' + $(document).height(), "*");
    }

    fixInputHeights();

  };

  var visibilityRules = {

    Required: function (currentField, currentStage) {
      showField(currentField, currentStage, "Required");
    },

    Optional: function (currentField, currentStage) {
      showField(currentField, currentStage);
    },

    OptionalIfBlank: function (currentField, currentStage) {
      if (($("[name=" + currentField + "]").val() == "") || ($("[name=" + currentField + "]").val() == null)) {
        showField(currentField, currentStage);
      }
    },

    RequiredIfBlank: function (currentField, currentStage) {
      if (($("[name=" + currentField + "]").val() == "") || ($("[name=" + currentField + "]").val() == null)) {
        showField(currentField, currentStage, "Required");
      }
    },

    Hide: function (currentField, currentStage) {
      hideField(currentField, currentStage);
    },

    Country: function (currentField, currentStage) {
      if ($("[name=country]").val() == "") {
        $("[name=country]").val(countryLookup[$('[name=BbH_Country]').val()]);
      }
      showField(currentField, currentStage, "Required");
      progPro.setField("stateProv", -1);
      progPro.setField("OptIn", -1);
    },

    CountryIfBlank: function (currentField, currentStage) {
      if (($("[name=" + currentField + "]").val() == "") || ($("[name=" + currentField + "]").val() == null)) {
        if ($("[name=country]").val() == "") {
          console.log($('[name=BbH_Country]').val() + " " + countryLookup[$('[name=BbH_Country]').val()]);
          $("[name=country]").val(countryLookup[$('[name=BbH_Country]').val()]);
        }
        showField(currentField, currentStage, "Required");
        progPro.setField("stateProv", -1);
        progPro.setField("OptIn", -1);
      }
    },

    OptionalIfProspect: function (currentField, currentStage) {
      var useQuestion = false;
      if ((currentField == "currentLMS1") && (typeof useLMSQuestion !== 'undefined') && ((useLMSQuestion == 'TRUE') || (useLMSQuestion == 'true') || (useLMSQuestion == true))) {
        showField(currentField, -1);

      }
      if ((currentField == "onlineProgramInPlace1") && (typeof useOnlineProgramQuestion !== 'undefined') && ((useOnlineProgramQuestion == 'TRUE') || (useOnlineProgramQuestion == 'true') || (useOnlineProgramQuestion == true))) {
        showField(currentField, -1);

      }
      if ((useQuestion == true) && (progPro.clientType == "") && (($("[name=" + currentField + "]").val() == "") || ($("[name=" + currentField + "]").val() == null))) {
        showField(currentField, currentStage);
      }
    },

    RequiredIfProspect: function (currentField, currentStage) {
      var useQuestion = false;
      if ((currentField == "currentLMS1") && (typeof useLMSQuestion !== 'undefined') && ((useLMSQuestion == 'TRUE') || (useLMSQuestion == 'true') || (useLMSQuestion == true))) {
        showField(currentField, -1, "Required");
      }
      if ((currentField == "onlineProgramInPlace1") && (typeof useOnlineProgramQuestion !== 'undefined') && ((useOnlineProgramQuestion == 'TRUE') || (useOnlineProgramQuestion == 'true') || (useOnlineProgramQuestion == true))) {
        showField(currentField, -1, "Required");
      }

    },

    ReturnVisitIfBlank: function (currentField, currentStage) {
      if (($("[name=" + currentField + "]").val() == "") && (progPro.stage > 1)) {
        showField(currentField, currentStage);
      }
    },

    OptIn: function (currentField, currentStage) {
      var myCountry = $("[name=" + country + "]").val();
      if (typeof myCountry === 'undefined') {
        myCountry = "";
      }
      myCountry = myCountry.trim();
      //$(getPrivacyNoteQuery()).hide();
      if (($("[name=" + currentField + "]").not(':checked')) && (progPro.optInAllowed == "true")) {
        //$(getPrivacyNoteQuery()).show();
        showField(currentField, currentStage);
        if ($.inArray(myCountry, optOutCountries) > -1) {
          $("[name=" + currentField + "]").prop("checked", true);
        } else {
          $("[name=" + currentField + "]").prop("checked", false);
        }
      } else if (progPro.optInAllowed == "true") {
        hideField(currentField, currentStage);
        //$(getPrivacyNoteQuery()).hide();
      }
    },

    State: function (currentField, currentStage) {
      var myCountry = $("[name=" + country + "]").val();
      myCountry = myCountry.trim();

      if ($("select[name=" + currentField + "]")) {
        if (myList == "") {
          myList = $("[name=" + currentField + "]").html();
        }
        if (myCountry == "Australia") {
          $("[name=" + currentField + "]").html('<option value="" class="forceTranslate">-- Please Select -- </option><option value="ACT">Austl. Cap. Terr.</option><option value="NSW">New South Wales</option><option value="NT">Northern Territory</option><option value="QLD">Queensland</option><option value="SA">South Australia</option><option value="TAS">Tasmania</option><option value="VIC">Victoria</option><option value="WA">Western Australia</option>');
        } else if (myCountry == "Canada") {
          $("[name=" + currentField + "]").html('<option value="" class="forceTranslate">-- Please Select -- </option><option value="AB">Alberta</option><option value="BC">British Columbia</option><option value="MB">Manitoba</option><option value="NB">New Brunswick</option><option value="NF">Newfoundland</option><option value="NL">Newfoundland and Labrador</option><option value="NS">Nova Scotia</option><option value="NT">Northwest Territories</option><option value="NU">Nunavut</option><option value="ON">Ontario</option><option value="PE">Prince Edward Island</option><option value="QC">Quebec</option><option value="SK">Saskatchewan</option><option value="YT">Yukon</option><option value="ZZ">Beyond the limits of any Prov.</option>');
        } else {
          $("[name=" + currentField + "]").html(myList);
        }
      }
      //Blank out if not Country with State
      if ($.inArray(myCountry, countryWithState) == -1) {
        $("[name=" + currentField + "]").val("");
        hideField(currentField, currentStage);
        //If Country with State, show if field is not populated
      } else if (($("[name=" + currentField + "]").val() == "") || ($("[name=" + currentField + "]").val() == null)) {
        showField(currentField, currentStage, "Required");
        if (($("[name=" + currentField + "]").val() == "") || ($("[name=" + currentField + "]").val() == null)) {
          $("[name=" + currentField + "]").val($('[name=BbH_Region]').val());
        }
        //Otherwise Hide
      } else {
        hideField(currentField, currentStage);
      }
    }
  };

  return {
    setField: setField,
    hideField: hideField,
    showField: showField,
    myList: myList,
    visibilityRules: visibilityRules,
    setForm: setForm,
    setRequired: setRequired,
    setHiddenFields: setHiddenFields,
    mergeHiddenFields: mergeHiddenFields,
    setGeolookup: setGeolookup,
    resetForm: resetForm,
    setStageCookie: setStageCookie
  };
})();

progPro.optInAllowed = "true";
progPro.formSet = false;
progPro.showSession = false;
progPro.stage = 0;
progPro.clientType = "";

var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i = 0; i < vars.length; i++) {
  var pair = vars[i].split("=");
  if (pair[0] == "eventType") {
    eventType = pair[1];
  }
  if (pair[0] == "stage") {
    progPro.stage = parseInt(pair[1]);
  }
  if ((emailAddress == "") && (pair[0] == "em")) {
    emailAddress = pair[1];
  }
}

// if (eventType == "Download") {
if (progPro.stage == 0) {
  progPro.stage = parseInt($.cookie("progPro")) + 1;
  if (isNaN(progPro.stage) || disableProgressiveProfiling) {
    progPro.stage = 1;
  }
}


console.log("Current stage: " + progPro.stage);


progPro.maxFields = 50;
progPro.maxProgFields = 50;
progPro.fixedFields = ["emailAddress", "OptIn", "currentLMS1", "onlineProgramInPlace1", "dietaryRequirements"];
progPro.firstVisit = ["firstName", "lastName", "title", "company", "country", "stateProv"];
progPro.secondVisit = ["industry1", "jobTitleCategory1", "primaryRole1", "busPhone"];
progPro.thirdVisit = ["numberOfUsersANZ1", "busPhone"];
progPro.fourthVisit = ["city", "busPhone"];
progPro.fifthVisit = ["city"];
//
// }
// if (eventType == "Event") {
//
//   progPro.stage = 0;
//   progPro.maxFields = 12;
//   progPro.maxProgFields = 2;
//   progPro.fixedFields = ["emailAddress", "firstName", "lastName", "company", "country", "stateProv", "busPhone", "OptIn", "Session", "dietaryRequirements"];
//   progPro.firstVisit = ["title", "industry1", "jobTitleCategory1", "primaryRole1", "city", "numberOfUsersANZ1", "currentLMS1", "onlineProgramInPlace1"];
//
// }
// else {
//
//   progPro.stage = 0;
//   progPro.maxFields = 12;
//   progPro.maxProgFields = 2;
//   progPro.fixedFields = ["emailAddress", "firstName", "lastName", "company", "country", "stateProv", "OptIn", "Session"];
//   progPro.firstVisit = ["title", "industry1", "busPhone", "jobTitleCategory1", "primaryRole1", "city", "numberOfUsersANZ1", "currentLMS1", "onlineProgramInPlace1"];
//
// }

progPro.contactFields = [
  [
    "emailAddress", //Form Field
    'C_EmailAddress', //Eloqua Contact Field
    '', //Default Value
    'Required', //Display Rule for Webinar Form
    'Required', //Display Rule for Event Form
    'Required' //Display Rule for Download Form
  ],
  [
    "firstName",
    'C_FirstName',
    '',
    'Required', //Display Rule for Webinar Form
    'Required', //Display Rule for Event Form
    'Required' //Display Rule for Download Form
  ],
  [
    "lastName",
    'C_LastName',
    '',
    'Required', //Display Rule for Webinar Form
    'Required', //Display Rule for Event Form
    'Required' //Display Rule for Download Form
  ],
  [
    "title",
    'C_Title',
    '',
    'Required', //Display Rule for Webinar Form
    'Required', //Display Rule for Event Form
    'Required' //Display Rule for Download Form
  ],
  [
    "company",
    'C_Company',
    '',
    'Required', //Display Rule for Webinar Form
    'Required', //Display Rule for Event Form
    'Required' //Display Rule for Download Form
  ],
  [
    "country",
    'C_Country',
    '',
    'Country', //Display Rule for Webinar Form
    'Country', //Display Rule for Event Form
    'Country' //Display Rule for Download Form
  ],
  [
    "stateProv",
    'C_State_Prov',
    '',
    'State', //Display Rule for Webinar Form
    'State', //Display Rule for Event Form
    'State' //Display Rule for Download Form
  ],
  [
    "industry1",
    'C_Industry1',
    '',
    'Required', //Display Rule for Webinar Form
    'Required', //Display Rule for Event Form
    'Required' //Display Rule for Download Form
  ],
  [
    "jobTitleCategory1",
    'C_Job_Title_Category1',
    '',
    'Required', //Display Rule for Webinar Form
    'Required', //Display Rule for Event Form
    'Required' //Display Rule for Download Form
  ],
  [
    "primaryRole1",
    'C_Primary_Role1',
    '',
    'Required', //Display Rule for Webinar Form
    'Required', //Display Rule for Event Form
    'Required' //Display Rule for Download Form
  ],
  [
    "busPhone",
    'C_BusPhone',
    '',
    'Required', //Display Rule for Webinar Form
    'Required', //Display Rule for Event Form
    'Required' //Display Rule for Download Form
  ],
  [
    "numberOfUsersANZ1",
    'C_Number_of_Users__ANZ_1',
    '',
    'Required', //Display Rule for Webinar Form
    'Required', //Display Rule for Event Form
    'Required' //Display Rule for Download Form
  ],
  [
    "currentLMS1",
    'C_Current_LMS1',
    '',
    'RequiredIfProspect', //Display Rule for Webinar Form
    'RequiredIfProspect', //Display Rule for Event Form
    'RequiredIfProspect' //Display Rule for Download Form
  ],
  [
    "onlineProgramInPlace1",
    'C_Online_Program_in_Place_1',
    '',
    'RequiredIfProspect', //Display Rule for Webinar Form
    'RequiredIfProspect', //Display Rule for Event Form
    'RequiredIfProspect' //Display Rule for Download Form
  ],
  [
    "city",
    'C_City',
    '',
    'OptionalIfBlank', //Display Rule for Webinar Form
    'OptionalIfBlank', //Display Rule for Event Form
    'OptionalIfBlank' //Display Rule for Download Form
  ],
  [
    "whatProblemAreYouTryingToSolve1",
    'C_What_problem_are_you_trying_to_solve_1',
    '',
    'Hide', //Display Rule for Webinar Form
    'Hide', //Display Rule for Event Form
    'Hide' //Display Rule for Download Form
  ],
  [
    "OptIn",
    'C_OptIn',
    '',
    'OptIn', //Display Rule for Webinar Form
    'OptIn', //Display Rule for Event Form
    'OptIn' //Display Rule for Download Form
  ],
  [
    "Session",
    '',
    '',
    'Required', //Display Rule for Webinar Form
    'Required', //Display Rule for Event Form
    'Required' //Display Rule for Download Form
  ],
  [
    "dietaryRequirements",
    '',
    '',
    'Hide', //Display Rule for Webinar Form
    'Optional', //Display Rule for Event Form
    'Hide' //Display Rule for Download Form
  ]
];


window.onload = function () {
  if (progPro.formSet == false) {
    $(getResetNoteQuery()).hide();
    progPro.setForm();

  }
}

$(document).ready(function () {

  if ($(".elq-form:not([name=translationPicklistForm])").length > 0) {
    $("form:not([name=translationPicklistForm])").trigger("reset");
    $("form:not([name=translationPicklistForm])").hide();
    /*
    $.getJSON("https://telize-v1.p.mashape.com/geoip?mashape-key=OxXupQANrAmshM2jwGNUNIx4vKeMp1iKx16jsn7daa8rE4ONZf",
      function(json) {
        $('[name=BbH_IP]').val(json.ip);
        $('[name=BbH_Continent]').val(json.continent_code);
        $('[name=BbH_Country]').val(json.country_code);
        $('[name=BbH_Region]').val(json.region_code);
        $('[name=BbH_PostalCode]').val(json.postal_code);
        $('[name=BbH_City]').val(json.city);
        if ($("[name=country]").is(":visible")) {
          console.log($('[name=BbH_Country]').val() + " " + countryLookup[$('[name=BbH_Country]').val()]);
          $("[name=country]").val(countryLookup[$('[name=BbH_Country]').val()]);
          progPro.setGeolookup();
        }
      }
    );
    */
    $("[name='notificationEmailSubject']").val(notificationEmailSubject);
    $("[name='notificationEmailRecipient']").val(notificationEmailRecipient);
    $("[name='sharedListID']").val(sharedListID);
    $("[name='e']").val(ConfirmationEmail);
    $("[name='c']").val(ThankYouPage);
    $("[name='src']").val(defaultLeadSource);
    $("[name='cid']").val(sfdcCampaignId);
    progPro.setHiddenFields();
    setTimeout(function () {
      $("[name=country]").change(function () {
        progPro.setField("stateProv", -1);
        progPro.setField("OptIn", -1);
        fixInputHeights();
      });
    }, 1500);
  }

  if (iFrameDetection == true) {
    // $("form:not([name=translationPicklistForm])").prop("target", "_top");
  } else {
    $("form.elq-form:not([name=translationPicklistForm])").append($(getPrivacyNoteQuery()).attr("id", "privacy"));
    $("form.elq-form:not([name=translationPicklistForm])").prepend($(getResetNoteQuery()).attr("id", "reset"));
  }


  if ($(".elq-form:not([name=translationPicklistForm])").length == 0) {
    if (emailAddress == "") {
      _elqQ.push(['elqDataLookup', encodeURIComponent(VisitorLookupId), '']);
    }
  } else if (emailAddress == "") {
    console.log('Running Unknown');
    _elqQ.push(['elqDataLookup', encodeURIComponent(VisitorLookupId), '']);
  } else {
    console.log('Running: ' + emailAddress);
    FirstLookup = false;
    _elqQ.push(['elqDataLookup', encodeURIComponent(ContactLookupId), '<' + ContactUniqueField + '>' + emailAddress + '</' + ContactUniqueField + '>']);
  }


  $.each(progPro.contactFields, function (index, item) {
    $("[name='" + this[0] + "']").parents('.form-element-layout').hide();
    $("[name='" + this[0] + "']").parents('.form-element-layout').addClass("forceHideField");

  });

  $("#resetForm").click(function (e) {
    e.preventDefault();
    progPro.resetForm();
  });
  $("form:not([name=translationPicklistForm])").submit(function (event) {
    $.each($(".elqRequiredIs"), function (index, item) {

      item = $(item);
      if (item.val() == "") {
        item.addClass("LV_invalid_field");
      } else {
        item.removeClass("LV_invalid_field");
      }

    });

    if (($('.LV_valid_field').length > 0) && ($('.LV_invalid_field:visible').length == 0) /* && (eventType == "Download") */) {
      if (iFrameDetection == true) {
        parent.postMessage('stage|' + progPro.stage, "*");
      } else {
        $.cookie('progPro', progPro.stage, {
          expires: 180,
          domain: 'blackboard.com'
        });
      }
    } else if (eventType == "Download") {
      return false;
    }
  });

  progPro.setForm();

  if (typeof LeadRouting === 'undefined') {
    LeadRouting = "";
  }

  LeadRouting = LeadRouting.toLowerCase();
  $('input[name="leadRouting"]').val(LeadRouting);
  $("[name=busPhone]").keyup(numberFieldAllowdCharacters);
  $("[name=busPhone]").keydown(numberFieldAllowdCharacters);
});

var VisitorLookupId = "753ba1c369b54b4a90656f34e15a439c"; // LOOKUP A:  The ID of your Visitor Web Data Lookup
var ContactLookupId = "f52c5b076d114ec39c1dabaa33526787"; // LOOKUP B:  The ID of your Contact/Datacard Web Data Lookup
var VisitorUniqueField = "V_ElqEmailAddress"; // Unique field's HTML Name from LOOKUP A (usually V_Email_Address)
var ContactUniqueField = "C_EmailAddress"; // Unique field's HTML Name from LOOKUP B (usually C_EmailAddress)
var FirstLookup = true;

// var _elqQ = _elqQ || [];
// _elqQ.push(['elqSetSiteId', '2376']);
// _elqQ.push(['elqTrackPageView']);
//
// (function() {
//   function async_load() {
//     var s = document.createElement('script');
//     s.type = 'text/javascript';
//     s.async = true;
//     s.src = '//img.en25.com/i/elqCfg.min.js';
//     var x = document.getElementsByTagName('script')[0];
//     x.parentNode.insertBefore(s, x);
//   }
//   if (window.addEventListener) window.addEventListener('DOMContentLoaded', async_load, false);
//   else if (window.attachEvent) window.attachEvent('onload', async_load);
// })();

function SetElqContent() {
  if (typeof extraSetElqContent == 'function') {
    if (extraSetElqContent()) {
      return;
    }
  }
  if (typeof webinarNameSetElqContent == 'function') {
    if (webinarNameSetElqContent()) {
      return;
    }
  }
  console.log("SetElqContent");
  if (this.GetElqContentPersonalizationValue) {
    if (FirstLookup && this.GetElqContentPersonalizationValue.toString().includes("M_Client_Type1")) {
      emailAddress = GetElqContentPersonalizationValue(VisitorUniqueField);
      if (progPro.formSet == false) {
        _elqQ.push(['elqDataLookup', encodeURIComponent(ContactLookupId), '<' + ContactUniqueField + '>' + emailAddress + '</' + ContactUniqueField + '>']);
        FirstLookup = false;
      } else {
        if (typeof fullWebinarsUx === "function") {
          fullWebinarsUx();
        }
        if (typeof formLoadedCallback === "function") {
          formLoadedCallback();
        }
      }
    } else if (this.GetElqContentPersonalizationValue.toString().includes("M_Client_Type1")) {
      $.each(progPro.contactFields, function (index, item) {
        item[2] = GetElqContentPersonalizationValue(item[1]);
        console.log(item[2] + " " + item[1]);
        if ($("[name=" + item[0] + "]").attr("type") != "checkbox") {
          $("[name=" + item[0] + "]").val(item[2]);
        } else if ((item[2] != "") && (item[2] != 0)) {
          $("[name=" + item[0] + "]").prop("checked", true);
          progPro.optInAllowed = "false";
        }
      });
      progPro.clientType = GetElqContentPersonalizationValue('M_Client_Type1');
      progPro.setForm();
      if (typeof fullWebinarsUx === "function") {
        fullWebinarsUx();
      }
      if (typeof formLoadedCallback === "function") {
        formLoadedCallback();
      }
    }
  } else {
    return null;
  }
}


var CollabWebinar_EventSeriesCounter = 0;
var CollabWebinar_EventSeriesCounterReceived = 0;
var CollabWebinar_EventSeriesWebinarNames = {};
var CollabWebinar_EventSeriesWebinarNames_report = false;

function webinarNameSetElqContent() {
  if (this.GetElqContentPersonalizationValue) {
    if (typeof GetElqContentPersonalizationValue("Event_Name1") != "undefined" && GetElqContentPersonalizationValue("Event_Name1").toString().trim() != "") {
      CollabWebinar_EventSeriesCounterReceived = CollabWebinar_EventSeriesCounterReceived + 1;
      var wId = GetElqContentPersonalizationValue("Event_ID1");
      var temp = {
        wId: wId,
        eventName: GetElqContentPersonalizationValue("Event_Name1"),
        maxRegistered: GetElqContentPersonalizationValue("Max_Registered1"),
        registeredCounter: GetElqContentPersonalizationValue("Registered_Counter1"),
        seriesName: GetElqContentPersonalizationValue("Series_Name1"),
        WebinarDate: GetElqContentPersonalizationValue("Webinar_Date___Time1"),
        WebinarEndDate: GetElqContentPersonalizationValue("Webinar_End_Date___Time1"),
        WebinarTimezone: GetElqContentPersonalizationValue("Webinar_Timezone1"),
        Recurrence: GetElqContentPersonalizationValue("Recurrence1"),
        Recurring_Start_Date: GetElqContentPersonalizationValue("Recurring_Start_Date1"),
        Recurring_Duration: GetElqContentPersonalizationValue("Recurring_Duration1"),
        Recurring_End_Date: GetElqContentPersonalizationValue("Recurring_End_Date1")
      };
      if (temp.maxRegistered == "") {
        temp.maxRegistered = 0;
      }
      if (temp.registeredCounter == "") {
        temp.registeredCounter = 0;
      }
      temp.maxRegistered = parseInt(temp.maxRegistered);
      temp.registeredCounter = parseInt(temp.registeredCounter);
      if (typeof maxRegistrantsWebinarCallback == 'function') {
        maxRegistrantsWebinarCallback(temp);
      }
      CollabWebinar_EventSeriesWebinarNames[wId] = temp;
      if (CollabWebinar_EventSeriesCounterReceived == CollabWebinar_EventSeriesCounter && !CollabWebinar_EventSeriesWebinarNames_report) {
        CollabWebinar_EventSeriesWebinarNames_report = true;
        CollabWebinar_EventSeriesWebinarNames["endTime"] = new moment();
        var secondsToFetchData = CollabWebinar_EventSeriesWebinarNames.endTime.diff(CollabWebinar_EventSeriesWebinarNames.startTime, "seconds", true);
        var actionUrl = "https://go.blackboard.com/e/f2";
        var data = {
          url: location.href.split("?")[0],
          UniqueId: new Date() / 1 + "-" + location.href.split("?")[0],
          timeInSeconds: secondsToFetchData,
          webinarNumber: CollabWebinar_EventSeriesCounter,
          elqFormName: "Webinarinfobenchmark",
          elqSiteID: "2376",
        };
        $.post(actionUrl, data).done(function (data) { });
      }
      return true;
    }
  }
  return false;
}

if (typeof EventSeries !== "undefined") {
  CollabWebinar_EventSeries = EventSeries;
}

if (typeof CollabWebinar_EventSeries === "undefined") {
  CollabWebinar_EventSeries = [];
}
if (typeof threeColumnFormDesign === "undefined") {
  threeColumnFormDesign = false;
}
if (threeColumnFormDesign === "true") {
  threeColumnFormDesign = true;
  if(typeof progPro != "undefined" && typeof progPro.stage != "undefined" && progPro.stage == 3){
    threeColumnFormDesign = false;
  }
}

if (typeof moment == "function") {
  CollabWebinar_EventSeriesWebinarNames["startTime"] = new moment();
  for (var i in CollabWebinar_EventSeries) {
    for (var j in CollabWebinar_EventSeries[i]) {
      CollabWebinar_EventSeriesCounter = CollabWebinar_EventSeriesCounter + 1;
      _elqQ.push(["elqDataLookup", encodeURIComponent("ed37f4057405418bb7d4bc192b9352af"), "<Event_ID1>" + CollabWebinar_EventSeries[i][j] + "</Event_ID1>"]);
    }
  }
}

function webinarNameFormSuccess() {
  if (typeof CollabWebinar_EventSeriesWebinarNames.endTime == "undefinde") {
    return true;
  }
  if ($("[name='c']").val().split("?").length < 2) {
    return true;
  }
  if ($("[name='c']").val().split("?")[1].split("se=").length < 2) {
    return true;
  }
  if ($(".LV_invalid_field:visible").length > 0) {
    return true;
  }
  var eventsSelected = $("[name='c']").val().split("?")[1].split("se=")[1].split("X");
  var email = $("input[name=emailAddress]").val().toString().trim();
  if (email == "") {
    return true;
  }
  for (var i in eventsSelected) {
    var id = eventsSelected[i].toString().trim();
    var info = CollabWebinar_EventSeriesWebinarNames[id];
    if (typeof info == "undefined") {
      continue;
    }
    var actionUrl = "https://go.blackboard.com/e/f2";
    if (info.Recurrence == "weekly" || info.Recurrence == "biweekly") {
      var webinarTime = moment.tz(info.Recurring_End_Date, info.WebinarTimezone);
    } else {
      var webinarTime = moment.tz(info.WebinarEndDate, info.WebinarTimezone);
    }
    var pastWebinar = "yes";
    if (webinarTime > moment()) {
      pastWebinar = "no";
    }

    var data = {
      eventId: id,
      regId: email + "-" + id,
      eventName: info.eventName,
      pastWebinar: pastWebinar,
      seriesName: info.seriesName,
      email: email,
      elqFormName: "webinarInfoBlindForm",
      elqSiteID: "2376",
    };
    console.log(eventsSelected[i]);
    console.log(CollabWebinar_EventSeriesWebinarNames[eventsSelected[i]]);
    console.log(data);
    $.post(actionUrl, data).done(function (data) { });
  }

  return true;
}


function fixInputHeights() {
  if (formSingleColumn) {
    return;
  }
  var heights = [];
  var hMax = 0;
  var visibleElements = [];

  $("form:not([name=translationPicklistForm]) select:visible, form:not([name=translationPicklistForm]) input:visible").each(function (i, e) {
    if (typeof $(e).attr("name") !== 'undefined' && $(e).attr("name") != "OptIn" && $(e).attr("type") != "checkbox") {
      $(e).closest(".form-element-layout").find("label").css("height", "");
    }
  });
  if ($(window).width() < 992) {
    return;
  }
  $("form:not([name=translationPicklistForm]) select:visible, form:not([name=translationPicklistForm]) input:visible").each(function (i, e) {
    if (typeof $(e).attr("name") !== 'undefined' && $(e).attr("name") != "OptIn" && $(e).attr("type") != "checkbox") {
      var tempLabel = $(e).closest(".form-element-layout").find("label");
      var tH = tempLabel.outerHeight();
      if (tH > hMax) {
        hMax = tH;
      }
      tH = Math.ceil(tH);
      tempLabel.css("height", tH);
      heights.push(tH);
      visibleElements.push($(e).closest(".form-element-layout").find("label"));
    }
  });
  var step = 2;
  if(threeColumnFormDesign){
    step = 3;
  }
  for (var i = 0; i + (step - 1) < visibleElements.length; i = i + step) {
    var maxH = 0;
    for(var j=i;j<i+step;j++){
      maxH = Math.max(maxH, heights[j]);
    }
    for(var j=i;j<i+step;j++){
      if (heights[j] != maxH) {
      }
      visibleElements[j].css("height", maxH);
    }
  }
}