/*!
 * Entourage 1.1.1 - Automatic Download Tracking for Asynchronous Google Analytics
 *
 * Copyright (c) 2011 by Tian Valdemar Davis (http://techoctave.com/c7)
 * Licensed under the MIT (http://en.wikipedia.org/wiki/MIT_License) license.
 *
 * Learn More: http://techoctave.com/c7/posts/58-entourage-js-automatic-download-tracking-for-asynchronous-google-analytics
 */
(function(){var a=new function(){var a="1.1.1";var b=function(a){a=a.substring(0,a.indexOf("#")==-1?a.length:a.indexOf("#"));a=a.substring(0,a.indexOf("?")==-1?a.length:a.indexOf("?"));a=a.substring(a.lastIndexOf("/")+1,a.length);return a};var c=function(a){var b;if(a.indexOf("/")==0){b=a.substring(1,a.length)}var c=b.indexOf("/");if(c==-1){return""}else{return"/"+b.substring(0,c)}};var d=function(){var a,d,e,f,g,h;a=/\.pdf$|\.zip$|\.doc*|\.xls*|\.ppt*|\.mp3$|\.rtf$/i;d=this.pathname;f=d.match(a);if(typeof f!=="undefined"&&f!==null){g=b(d);e=c(d);h=e+"/downloads/"+g;_gaq.push(["_trackPageview",h])}};var e=function(){var a=document.links;for(var b=0,c=a.length;b<c;b++){if(a[b].href.indexOf("#")==-1){a[b].onclick=d}}};return{version:a,initialize:e}};window.entourage=a;var b=window.onload;if(typeof window.onload!="function"){window.onload=a.initialize}else{window.onload=function(){if(b){b()}a.initialize()}}})()

