var BrTrk={getTracker:function(a,b){return(new BrTrkClass(a,b))}};var BrUtils={returnObjById:function(b){if(document.getElementById){var a=document.getElementById(b)}else{if(document.all){var a=document.all[b]}else{if(document.layers){var a=document.layers[b]}}}return a},isValid:function(a){return(a!=null)},addEvent:function(b,a,c){if(b.addEventListener){b.addEventListener(a,c,false)}else{if(b.attachEvent){b.attachEvent("on"+a,c)}else{b["on"+a]=c}}},onLoadHandler:function(a,b){if(a.addEventListener){a.addEventListener("DOMContentLoaded",b,false)}else{if(a.attachEvent){a.attachEvent("onreadystatechange",function(){if(a.readyState==="complete"){b()}})}}}};function BrTrkClass(d,x){var b="http://lb-static1-1568763564.us-east-1.elb.amazonaws.com/pix.gif";var o="https://cdns.brsrvr.com/pix.gif";var i="_br_uid_1";var w=undefined;var e=undefined;var n=undefined;var m=[5000,25000,75000,150000];this.version=d;this.data=x;function a(){if(typeof br_related_rid!="undefined"&&BrUtils.isValid(br_related_rid)){e=br_related_rid}}function g(C){var A=[];for(var B in C){A.push(B+"="+encodeURIComponent(C[B]))}return A.join("&")}function h(C,B){var A=new Date();A.setDate(A.getDate()+365*100);document.cookie=C+"="+escape(B)+"; expires="+A.toGMTString()+"; path=/"}function t(C){if(BrUtils.isValid(document.cookie)&&(document.cookie.length>0)){var A=document.cookie.indexOf(C+"=");if(A!=-1){A=A+C.length+1;var B=document.cookie.indexOf(";",A);if(B==-1){B=document.cookie.length}return unescape(document.cookie.substring(A,B))}}return""}function z(){var A=t(i);if(BrUtils.isValid(A)&&A.length>0){w=A;return}var B=Math.round(Math.random()*10000000000000);w="uid="+B+":";h(i,w);w=t(i)}function f(){var A=x;A.version=d;A.url=location.href;A.ref=document.referrer;A.sid=e;A.cookie=w;A.rand=Math.random();return A}function y(C){var D=g(C);var A=new Image();if(D.length>1500){D=D.substr(0,1500)}var B=("https:"==document.location.protocol)?o:b;A.src=B+"?"+D}function j(){var A=f();A.type="pageview";A.title=document.title;A.scHt=screen.height;A.scWt=screen.width;y(A)}function v(B){var A=f();A.type="linkclick";A.link=B;if(BrUtils.isValid(this.startTime)){A.time=(new Date()).getTime()-this.startTime}y(A)}function s(A){if(BrUtils.isValid(A)&&BrUtils.isValid(A.href)){BrUtils.addEvent(A,"mousedown",function(){v(A.href)})}}function q(C){if(!BrUtils.isValid(C)){return}var A=C.getElementsByTagName("a");if(!BrUtils.isValid(A)){return}for(var B=0;B<A.length;++B){s(A[B])}}function p(A){var B=BrUtils.returnObjById("br-related-searches-widget");if(!BrUtils.isValid(B)&&A){BrUtils.onLoadHandler(document,function(){p(false)});return}q(B)}function k(A){var B=f();B.type="sitetime";B.time=m[A];y(B)}function c(){for(var A=0;A<m.length;++A){(function(B){setTimeout(function(){k(B)},m[B])})(A)}}function u(){j();p(true)}function l(){BrUtils.onLoadHandler(document,function(){q(document)})}function r(){this.startTime=(new Date()).getTime();z();a()}this.enableTracking=u;this.logPageView=j;this.enableLinkTracking=p;this.enableTimeTracking=c;this.enableFullLinkTracking=l;r()};