function langSwitcher(pathToRoot) {
  var currPage = window.location.pathname;
  var Ausdruck = /\/..\/(.+)/;
  Ausdruck.exec(currPage);

  document.write("<a href=\"" + pathToRoot + "/de/" + RegExp.$1 + "\" title=\"Deutsch\">de</a>");
  document.write(" | ");
  document.write("<a href=\"" + pathToRoot + "/en/" + RegExp.$1 + "\" title=\"English\">en</a>");
}

