
// analytics event tracker
(function(){
  var keepLoad = window.onload;
  window.onload = function(){
    if(keepLoad != null && keepLoad != undefined) keepLoad();
    var anchors = document.getElementsByTagName('a');
    for(var i=0;i<anchors.length;i++){
      var a = anchors[i].href.split('.');
      if(a.length>0) if(a[a.length-1].toLowerCase()=='pdf')
        anchors[i].onclick = function(){
          pageTracker._trackEvent('Downloads','PDF',this.href);
        };
    }
  };
})();
