var _gaq=_gaq||[];(function(){if(Caelum.hasCookie("caelum-funcionario")){_gaq.push(["_setAccount","UA-270161-16"])}else{_gaq.push(["_setAccount","UA-270161-1"])}_gaq.push(["_setDomainName",".caelum.com.br"]);_gaq.push(["_setSiteSpeedSampleRate",10]);if(typeof(ERROR_CODE)=="undefined"){_gaq.push(["_trackPageview"])}else{var a="/"+ERROR_CODE+".html?page="+document.location.pathname+document.location.search+"&from="+document.referrer;_gaq.push(["_trackPageview",a])}for(var b=0;b<Caelum.gaq.length;b++){_gaq.push(Caelum.gaq[b])}Caelum.gaq={push:function(){_gaq.push.apply(window,arguments)}};function c(e){var e=e||document.body;var d=location.protocol+"//"+(location.hostname||location.host)+((document.location.port||false)?":"+location.port:"")+"/";$('a[href^="http://"], a[href^="https://"]',e).not(".dont-track").filter(function(f){return $(this).attr("href").indexOf(d)!==0}).click(function(f){if(!$(this).hasClass("dont-track")){_gaq.push(["_trackPageview","/LinkExterno/"+this.href])}});$('a[href^="/download/"], a[href^="http://www.caelum.com.br/download/"]',e).click(function(g){var f=$(this).attr("href").replace("http://www.caelum.com.br","");_gaq.push(["_trackPageview",f])})}Caelum.ready(function(){c()});Caelum.afterTransition(function(d){_gaq.push(["_trackPageview"]);c(d)})})();Caelum.trackAdwordsConversion=function(){var a=document.createElement("img");a.setAttribute("height","1");a.setAttribute("width","1");a.setAttribute("border","0");a.setAttribute("src","http://www.googleadservices.com/pagead/conversion/1070805969/?value=1&label=Lead&script=0");(function(){if(document.body){document.body.appendChild(a)}else{setTimeout(arguments.callee,50)}})()};Caelum.ready(function(){if($("body").hasClass("adwordsConversion")){Caelum.trackAdwordsConversion()}});
