function changeLanguages(n){$("[lang]").hide();$(":lang("+n+")").show();typeof optionsLanguageText==undefined||$("select").each(function(){var n=this,t=optionsLanguageText.findIndex(function(t){return t.id.toLowerCase()===n.id.toLowerCase()}),i,r;t>-1&&(i=$("#languagebox option:selected").val(),r=n.selectedIndex,$("#"+n.id).empty(),optionsLanguageText[t].options.forEach(function(t){var r=new Option("",t.value,t.default);r.innerHTML=t[i];n.appendChild(r)}),n.selectedIndex=r)});$(".datetimepicker").datetimepicker({format:"L",locale:n,defaultDate:Date.now()});var t="";switch(n){case"es":t="//cdn.datatables.net/plug-ins/1.10.11/i18n/Spanish.json";break;default:t="//cdn.datatables.net/plug-ins/1.10.11/i18n/English.json"}typeof changeLanguagesPage==typeof Function&&changeLanguagesPage(n);typeof ga==typeof Function&&ga("send","event","Language","Change",n)}Array.prototype.find||(Array.prototype.find=function(n){var t;if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof n!="function")throw new TypeError("predicate must be a function");var i=Object(this),u=i.length>>>0,f=arguments[1],r;for(t=0;t<u;t++)if(r=i[t],n.call(f,r,t,i))return r;return undefined});Array.prototype.findIndex||(Array.prototype.findIndex=function(n){var t;if(this===null)throw new TypeError("Array.prototype.findIndex called on null or undefined");if(typeof n!="function")throw new TypeError("predicate must be a function");var i=Object(this),u=i.length>>>0,f=arguments[1],r;for(t=0;t<u;t++)if(r=i[t],n.call(f,r,t,i))return t;return-1});$(document).ready(function(){$("#languagebox").change(function(){var n=$("#languagebox option:selected").val();console.info("Language selection changed to: "+n);changeLanguages(n)}).change();$(".datetimepicker").datetimepicker({format:"L",locale:"en"});typeof documentReadyPage==typeof Function&&documentReadyPage();console.info("Page load completed.")})