//Find all link elements and add an onfocus attribute and value
//http://codylindley.com/Javascript/223/hiding-the-browsers-focus-borders-should-i-shouldnt-i

function hideFocusBorders(){
if (!document.getElementsByTagName) return false;
var theahrefs = document.getElementsByTagName("a");
if (!theahrefs){return;}
for(var x=0;x!=theahrefs.length;x++){
theahrefs[x].onfocus = function stopLinkFocus(){this.hideFocus=true;};
}
}