!function(t,e){"use strict";function n(e,n,a){a.defaultPrevented||"undefined"!=typeof n&&""!==n&&(t.ga&&ga.hasOwnProperty("loaded")&&ga.loaded===!0&&ga.create?ga("send","event",e,"click",n,{nonInteraction:"1"===o.nonInteractive}):t._gaq&&_gaq._getAsyncTracker?_gaq.push(["_trackEvent",e,"click",n,1,"1"===o.nonInteractive]):t.console?console.info("Google analytics not loaded yet."):null)}var o=t._asgaOpt;e.addEventListener("DOMContentLoaded",function(){if("1"===o.downloadLinks){var a=""===o.downloadExt?"doc*|xls*|ppt*|pdf|zip|rar|exe|mp3":o.downloadExt.replace(/,/g,"|"),r=new RegExp(".*\\.("+a+")(\\?.*)?$"),i=e.querySelectorAll("a");Array.prototype.forEach.call(i,function(e){e.hostname&&e.hostname===t.location.hostname&&e.href.match(r)&&(e.addEventListener("click",function(t){n("Downloads",this.href,t)}),e.hasAttribute("download")||e.setAttribute("download",""))})}if("1"===o.mailLinks){var c=e.querySelectorAll('a[href^="mailto"]');Array.prototype.forEach.call(c,function(t){t.addEventListener("click",function(t){n("Email",this.href.replace(/^mailto\:/i,"").toLowerCase(),t)})})}if("1"===o.outgoingLinks){var l=e.querySelectorAll('a[href^="http"]');Array.prototype.forEach.call(l,function(e){e.hostname&&e.hostname!==t.location.hostname&&(e.addEventListener("click",function(t){n("Outbound","1"===o.outboundLinkType?this.hostname:this.href,t)}),e.setAttribute("target","_blank"))})}})}(window,document);