function external_url() {
    if (!document.getElementsByTagName) return;
    var links = document.getElementsByTagName("a");
    for (var i=0; i<links.length; i++) {
        var thisLink = links[i];
        if (thisLink .getAttribute("href") && thisLink .getAttribute("class") == "external-link")
            thisLink .target = "_blank";
    }
    if(document.getElementById('selector')) {
        document.getElementById('selector').style.display='';
    }
}

function bookmark(url, title) {
    var ver = navigator.appName
    var num = parseInt(navigator.appVersion)
    if ((ver == "Microsoft Internet Explorer")&&(num >= 4)) {
        window.external.AddFavorite(url,title);
    }
}

// Aufklappmenue fuer IE
function navi() {

  if (document.all&&document.getElementById) {
    navRoot = document.getElementById('mainmenu');
    for (i=0; i<navRoot.childNodes.length; i++) {
      node = navRoot.childNodes[i];
      if (node.nodeName=="LI") {
        node.onmouseover=function() {
          this.className+=" over";
        }
        node.onmouseout=function() {
          this.className=this.className.replace(" over", "");
        }
      }
    }
  }
}