function unblur() {
		this.blur();
}
function blurLinks() {
		if (!document.getElementById) return;
			theLinks = document.getElementsByTagName("a");
			for(i=0; i<theLinks.length; i++) {
				theLinks[i].onfocus = unblur;
	}
}


function externalLinks() { 
 if (!document.getElementsByTagName) return; 
 var anchors = document.getElementsByTagName("a"); 
 for (var i=0; i<anchors.length; i++) { 
   var anchor = anchors[i]; 
   if (anchor.getAttribute("href") && anchor.href.indexOf("origin.arturia") == -1) {
     anchor.onclick = function() { window.open(this.href); return false; };
	 anchor.title = "Externer Link in neuem Fenster";
  }
 } 
}

IEHoverPseudo = function() {
if ((navigator.userAgent.indexOf("MSIE 5") != -1) || (navigator.userAgent.indexOf("MSIE 6") != -1) && (navigator.userAgent.indexOf("Opera") == -1)) {
navRoot = document.getElementById("nav");
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", "");
   }
   }
  }
 }
}

/* function addCSS() {
if ((navigator.userAgent.indexOf("Safari") != -1)) {
var newSS=document.createElement('link');
newSS.rel='stylesheet';
newSS.href='/m/c/safari-hack.css';
newSS.type='text/css';
document.getElementsByTagName("head")[0].appendChild(newSS);
}
} */

function xFunktionen() {
	blurLinks();
	externalLinks();
	IEHoverPseudo();
//	addCSS();
}

window.onload = xFunktionen;
