/g,">")).replace(/"/g,""")).replace(/'/g,"'"):e}function determineLanguage(e){e=e||{};var a,t,n=[];hfsMetadata.Switches.useLanguageSwitch&&e.urlParam&&((t=Hafas.Core.getParameterByName(e.urlParam))&&n.push(t)),e.language&&n.push(e.language);try{e.localStorageKey&&localStorage&&localStorage.getItem&&e.localStorageKey&&((a=localStorage.getItem(e.localStorageKey))&&(a=JSON.parse(a),(new Date).getTime()>a.expires?localStorage.removeItem(e.localStorageKey):n.push(a.lang)))}catch(e){console.log("i18n.readFromStorage","Fehler: Sprache kann nicht aus localStorage gelesen werden.",e)}hfsMetadata.Switches.useBrowserLanguage&&(navigator.language||navigator.browserLanguage)&&(t=(navigator.language||navigator.browserLanguage||"").replace("-","_"),n.push(t),n.push(t.slice(0,2))),n.push(hfsMetadata.defaultLang);for(var s=hfsMetadata.languages,r=0,l=n.length;r]*$","g").test(e)}function getDefaultLang(){for(var e=0;e<\/script>'):document.write('