try{var rootHtml=document.getElementsByTagName("html")[0];rootHtml.className=rootHtml.className==""?"js":rootHtml.className+" js"}catch(err){if(window.console&&console.error){console.error("Cannot attach js class to html")}}if(typeof javascriptMadeByPI=="undefined"){javascriptMadeByPI={}}if(typeof madeByPI=="undefined"){madeByPI=javascriptMadeByPI}if(typeof mbpi=="undefined"){mbpi=javascriptMadeByPI}(function listen(a){if(typeof a=="undefined"){window[a]={}}if(typeof a.listen=="undefined"){a.listen=function(d,c,b){if(c.addEventListener){c.addEventListener(d,b,false)}else{if(c.attachEvent){c.attachEvent("on"+d,b)}else{if(window.console&&console.error){console.error("Cannot attach listener "+d+" to element "+c)}}}}}}(javascriptMadeByPI));javascriptMadeByPI.trackPageView=function(c,b){try{cto.siteSection=c;cto.pageName=b;cto.track()}catch(a){if(console&&console.error){console.error("Error sending page tracking for section "+c+" and page "+b+"\n"+a.description)}}};javascriptMadeByPI.trackAjax=function(h){try{var c=location.href,b=c.split("/"),g=h.split("/"),f=location.hostname,e=b[b.length-2],a=g[g.length-1].split(".")[0];cto.ajaxStart();cto.siteSection=f+":"+e;cto.pageName=a;cto.ajaxEnd()}catch(d){if(console&&console.error){console.error("Error sending ajax tracking for page "+h+"\n"+d.description)}}};javascriptMadeByPI.trackExternalLink=function(a){try{cto.tracklink(a[0])}catch(b){if(console&&console.error){console.error("Error sending link tracking "+b.description)}}};
