function contentLoaded(a,b){var c=false,d=true,e=a.document,f=e.documentElement,g=e.addEventListener?"addEventListener":"attachEvent",h=e.addEventListener?"removeEventListener":"detachEvent",i=e.addEventListener?"":"on",j=function(d){if(d.type=="readystatechange"&&e.readyState!="complete")return;(d.type=="load"?a:e)[h](i+d.type,j,false);if(!c&&(c=true))b.call(a,d.type||d)},k=function(){try{f.doScroll("left")}catch(a){setTimeout(k,50);return}j("poll")};if(e.readyState=="complete")b.call(a,"lazy");else{if(e.createEventObject&&f.doScroll){try{d=!a.frameElement}catch(l){}if(d)k()}e[g](i+"DOMContentLoaded",j,false);e[g](i+"readystatechange",j,false);a[g](i+"load",j,false)}}var GAUrchinEventTracking=function(){function q(a,b,c,d){function e(a){return a.replace(/^\s+|\s+$/g,"")}var f=e(a).toLowerCase();var g=e(b).toLowerCase();var h=e(c);var i="";try{if(d>0){i=parseInt(d)}else{i=""}}catch(j){i=""}if(typeof _gaq!="undefined"){if(i==""){_gaq.push(["_trackEvent",f,g,h])}else{_gaq.push(["_trackEvent",f,g,h,parseInt(i)])}return true}else if(typeof self.urchinTracker!="undefined"){urchinTracker("/"+f+"/"+g+"/"+h+"/"+i);return true}return false}function p(a){var b=new Date;var c=null;do{c=new Date}while(c-b<a)}function o(a,b,c){c=c.replace(g,"");if(a=="downloads"&&typeof k!="undefined")c=c.replace(k,"");q(a,b,c);p(400)}var a="7z|aac|arc|arj|asf|asx|avi|bin|bmp|css|csv|doc|docm|docx|exe|gif|gz|gzip|hqx|jar|jpeg|jpg|js|mp2|mp3|mp4|mpeg|mpg|mov|movie|msi|msp|nzb|odb|odf|odg|odp|ods|odt|pdf|phps|png|ppt|pptx|qt|qtm|ra|ram|rar|rss|rtf|sea|sit|tar|tgz|torrent|txt|wav|wma|wmv|wpd|xls|xlsm|xlsx|xml|z|zip";var b="";var c="";var d="";var e="";var f="";if(!document.getElementsByTagName)return false;var g=new RegExp("^https?://"+window.location.host,"i");var h=new RegExp("^mailto:","i");var i=new RegExp("\\.("+a+")$","i");if(typeof b=="string"&&!/^\s*$/.test(b)){var j=new RegExp(b,"i")}else{var j=new RegExp("^&")}if(typeof c!="string"||/^\s*$/.test(c)){var c="custom"}if(typeof d!="string"||/^\s*$/.test(d)){var d="click"}if(typeof e=="string"&&!/^\s*$/.test(e)){var k=new RegExp(e,"i")}if(typeof f=="string"&&!/^\s*$/.test(f)){var m=new RegExp(f,"i")}else{var m=new RegExp("^&")}var n=document.getElementsByTagName("a");for(l in n){if(href=n[l].href){if(!g.test(href)&&!i.test(href)&&!j.test(href)&&!h.test(href)&&!/^javascript\:/.test(href)&&!m.test(href)){n[l].onclick=function(){q("external-links","click",this.href);p(400)}}else if(h.test(href)){n[l].onclick=function(){q("mailto-links","click",this.href.substring(7));p(400)}}else if(i.test(href)){n[l].onclick=function(){var a=i.exec(this.href);o("downloads",a[1],this.href)}}else if(j.test(href)){n[l].onclick=function(){o(c,d,this.href)}}}}};contentLoaded(window,GAUrchinEventTracking)
