setExternalLinks=function() {
if ( !document.getElementsByTagName ) {
return null;
}

var anchors = document.getElementsByTagName( "a" );
for ( var i = 0; i < anchors.length; i++ ) {
var anchor = anchors[i];
if ( anchor.getAttribute( "href" ) && anchor.getAttribute( "rel" ) == "external" ) {
anchor.setAttribute( "target", "_blank" );
}
}
}

nav_hover=function() {
if (document.all&&document.getElementById) {
if (document.getElementById("hmenuroot")) {
navRoot = document.getElementById("hmenuroot");
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", "");
}
}
}
}
if (document.getElementById("navlinks")) {
navRoot = document.getElementById("navlinks");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="DIV") {
node.onmouseover=function() {
this.className+=" over";
}
node.onmouseout=function() {
this.className=this.className.replace(" over", "");
}
}
}
}
}
}

if (document.all&&window.attachEvent) { // IE-Win
window.attachEvent("onload", nav_hover);
window.attachEvent("onload", setExternalLinks);
} else if (window.addEventListener) { // Others
window.addEventListener("load",setExternalLinks,false);
}

/* } else if (document.all&&document.getElementById) { */
/* window.onload=nav_hover; // ie5-mac case */
/* } */
/* } else if (document.all&&document.getElementById) { */
/* window.onload=nav_hover; // ie5-mac case */
/* } */
