
function initBlur(){
  var links = document.getElementsByTagName("a");
  for (i=0; i<links.length; i++) {
    links[i].onfocus = function () {if(this.blur)this.blur();}
  }
}


//
// addLoadEvent()
// Adds event to window.onload without overwriting currently assigned onload functions.
//
function addLoadEvent(func){	
  var oldonload = window.onload;
  if (typeof window.onload != 'function'){
    window.onload = func;
  } else {
    window.onload = function(){
      oldonload();
      func();
    }
  }
}

function addMouseMoveEvent(func){
  var oldmousemove = document.onmousemove;
  if (typeof document.onmousemove != 'function'){
    document.onmousemove = func(e);
  } else {
    document.onmousemove = function(e){
      oldmousemove(e);
      func(e);
    }
  }
}


addLoadEvent(initBlur);