if(typeof COMSCORE=="undefined"){window.COMSCORE={}}if(typeof COMSCORE.Beacon=="undefined"){COMSCORE.Beacon={}}if(typeof _comscore!="object"){window._comscore=[]}COMSCORE.beacon=function(j){try{if(!j){return}var h=2.2,g=j.options||{},u={doc:g.doc||document,nav:g.nav||navigator,win:g.win||window},b=512,m=64,w="scorecardresearch",n=2147483647,f=(new Date()).getTime(),t=function(z){var A=encodeURIComponent||escape;return A(z)},p=function(e,z){if(z){e=e.substr(0,z)}return e},s=function(){return u.doc.location.protocol=="https:"},d=function(e){return typeof e=="undefined"},o=function(e,z){if(e==null){return""}return p(t(e),z)},a=function(e,z,B,A){return z!=null&&z.toString().length>0?[e,"=",A?p(z,B):o(z,B),"&"].join(""):""},v=function(e){return Math.round(Math.random()*(e||n))},y=function(){if(+j.c1!=2){return}if(/msie\s[^0-6]|firefox|chrome/i.test(u.nav.userAgent)){return}var e=k(w);if(g.fpc_optout){if(e){q(w,e,u.doc.domain,-1)}return"optout"}if(!u.nav.cookieEnabled){return"disabled"}if(!e){e=(function(){var D=function(G,F,E){F=G&&G[F]?G[F]:"-";return E?D(F,E):F},A=[D(u.win,"navigator","userAgent"),D(u.win,"screen","width"),D(u.win,"screen","height"),D(u.doc,"cookie"),D(u.doc,"referrer"),D(u.loc,"href"),D(u.win,"history","length")].join("-");var C=2166136261;for(var B=0,z=A.length;B2080?i.substr(0,2075)+"&ct=1":i;if(/(BlackBerry.*?\/([1-3]\.|4\.[0-5]))|OpenWeb/.test(u.nav.userAgent)){i=i.replace(/\/b\?/,"/p?");u.doc.write("")}else{var x=new Image();x.onload=function(){c(this)};x.onerror=function(){c(this)};x.src=i}if(typeof g.subscribe=="function"){g.subscribe(i)}return i}catch(r){}};COMSCORE.purge=function(a){try{var c=[],f,b;a=a||_comscore;for(b=a.length-1;b>=0;b--){f=COMSCORE.beacon(a[b]);a.splice(b,1);if(f){c.push(f)}}return c}catch(d){}};COMSCORE.purge();