//Page Tracking Code
if (typeof(_gat) == 'object')
{ 
var pageTracker = _gat._getTracker("UA-3838514-1");
pageTracker._initData();
pageTracker._trackPageview();
}

// PDF Tracking Code
$(document).ready(function () {
  var dPatt = /^\.(?:pdf|doc|docx|xls|xlsx|ppt|pptx|pps|ppsx|zip|7z|tar)$/;
  $('a').filter(function () {
    var theHref = this;
    if (theHref.pathname && (dPatt.test(theHref.pathname.toLowerCase().substr(theHref.pathname.lastIndexOf('.'))))) {
      $(theHref).not(".noAutoIcon").addClass("download");
      $(theHref).bind('click keypress', function (event) {
        var code = event.charCode || event.keyCode;
        if (!code || (code && code == 13)) {
        if (pageTracker) {
          var arr = this.href.split("/");
    var fixedLink = "";
          for(j=3;j<arr.length;j++)
          {
            fixedLink = fixedLink + "/" + arr[j];
          }
        pageTracker._trackEvent(fixedLink, 'Downloads');
          }
        }
      });
    }
  });
})
;
