targetLinks=function(){var a="target";var f=new RegExp("\\b"+a+"\\b");var e;if(window.location.hash){if(e=document.getElementById(window.location.hash.slice(1))){e.className+=" "+a}}var d;var b=document.getElementsByTagName("a");for(var c=0;c<b.length;c++){if(b[c].href&&b[c].href.indexOf("#")){d=window.location.href;if(window.location.hash){d=d.slice(0,d.indexOf("#"))}if(b[c].href.substr(0,d.length)==d){b[c].onclick=function(){if(e){e.className=e.className.replace(f,"")}if(e=document.getElementById(this.href.slice(this.href.indexOf("#")+1))){e.className+=" "+a}}}}}};addLoadEvent(targetLinks);
