if(typeof(COMSCORE)!="undefined"&&typeof(COMSCORE.BMX)!="undefined"&&typeof(COMSCORE.BMX.Buddy)!="undefined"){}else{if(typeof(COMSCORE)=="undefined"){var COMSCORE={};
}if(typeof(COMSCORE.BMX)=="undefined"){COMSCORE.BMX={builderUrl:"ar_builder.js",wpopUrl:"ar_wpop.js",CONSTANTS:{CONTROL_AD_ARC:1,COOKIE_TYPE:{ALREADY_ASKED:1},SCRIPT_PLACEMENT:{NO_IFRAME:1,IFRAME_SAME_DOMAIN:2,IFRAME_DIFF_DOMAIN:3},METHODOLOGY:{STANDARD:1,DD:2,WPOP:3,BUDDY:4,IFRAME_BUDDY:6}}};
}COMSCORE.BMX.Utils=(function(){return{location:document.location.href,cookie:{get:function(B){var A=document.cookie.match("(?:^|;)\\s*"+B+"=([^;]*)");
return A?unescape(A[1]):false;}},fireBeacon:function(B,C){var A=this;setTimeout(function(){if(C){B+=(/\?/.test(B)?"&":"?")+(new Date()).getTime();
}var D=new Image();D.src=B;},1);},loadScript:function(B,C,D){if(C){B=this.appendQueryParams(B,(new Date()).getTime());
}var A=document.createElement("script");A.src=B;document.body.appendChild(A);},appendQueryParams:function(B,A){if(!/\?/.test(B)){B+="?";
}B+="&"+A.toString().replace("?","");return B;},getRandom:function(B){var A=Math.random();
if(!B){return A;}else{return Math.floor(A*(B));}},getScriptArgs:function(){if(/\?(.*)/.test(this.scriptUrl)){return RegExp.$1;
}return null;},parseCookie:function(C){var E={};var A=C.split(",");for(var D=0;D<A.length;
D++){var B=A[D].split("->");E[B[0]]=B[1];}return E;}};}());COMSCORE.BMX.Buddy=(function(){var B=COMSCORE.BMX;
var A=B.Utils;return{version:"2.0",init:function(){this.executingPath=this.getExecutingPath();
this.publisher=this.getPublisher();Math.random();},start:function(H,G,I){if(typeof(I)!="undefined"){this.customCode=I;
}else{this.customCode=function(){};}this.startTime=(new Date()).getTime();for(var C in G){this.config[C]=G[C];
}this.config.alreadyAskedCookiePrefix="ar_s_";this.config.expCookiePrefix="ar_";this.init();
if(/glamour|mtv|allure/i.test(this.publisher)&&!(/bust=1/.test(this.scriptUrl))){if(/glamour/i.test(this.publisher)){var D="http://stag.glamour.com/nocount/cs-arIframe.html";
}else{if(/allure/i.test(this.publisher)){var D="http://origin.stag.allure.com/ads/comscore/cs-arIframe.html";
}else{var D="http://www.mtv.com/sitewide/ads/cs-arIframe.htm";}}var F=this.executingPath+"node.pli";
D+="?nodeUrl="+encodeURIComponent(F);D+="&pub="+encodeURIComponent(this.publisher)+"&bust=1";
var E=document.createElement("iframe");E.width="0px";E.height="0px";E.style.display="none";
E.src=D;document.body.appendChild(E);return;}if(this.isExcludeReferrerUrl()){return;
}if(this.isExcludeUrl()){return;}this.ControlRecruitList=H;B.OnReady.listen(function(){setTimeout(function(){var K=COMSCORE.BMX;
var J=K.Buddy.executingPath+K.Buddy.config.cookieSettings.hostedCookieReadAllUrl;
A.loadScript(J+"?func=COMSCORE.BMX.Buddy.run",true,false);},B.Buddy.config.masterSettings.globalCookieDelay);
});},run:function(D){this.customCode();var E=B.Buddy.config.cookieSettings.globalCookieName;
var C=B.Buddy.config.cookieSettings.cookieCheckName;if(!D[C]){return;}if(D[E]){this.recruitTest(D[E]);
}else{this.recruitControl(this.ControlRecruitList);}},validateCookie:function(C){var D=/ts->(\w*)/.test(C)?RegExp.$1.toString():"";
var E=Math.abs(D-this.startTime);if(E>=this.config.masterSettings.gracePeriod){return false;
}return true;},recruitTest:function(D){if(this.validateCookie(D)){var C=A.parseCookie(D);
this.chosenSetting={pid:C["pid"],recruitFrequency:C["freq"],inv:C["inv"],methodology:C["method"],prad:(C["prad"])?C["prad"]:"pub_"+this.publisher,arc:C["arc"],scriptArgs:C["args"],path:decodeURIComponent(C["path"])};
B.placement=B.CONSTANTS.SCRIPT_PLACEMENT.NO_IFRAME;if(!this.cookieExists(B.Buddy.config.alreadyAskedCookiePrefix+this.chosenSetting.pid)){this.loadBuilder();
}}},loadBuilder:function(){if(B.Buddy.chosenSetting.pid!=null&&(B.Buddy.chosenSetting.methodology!=null||parseInt(B.Buddy.chosenSetting.methodology)!=B.CONSTANTS.METHODOLOGY.BUDDY)){var C=B.Buddy.chosenSetting.path+"ar_builder.js";
B.chosenSetting=B.Buddy.chosenSetting;A.loadScript(C);}},recruitControl:function(C){this.chosenSetting=this.getControlChosenSetting(C);
var D=A.getRandom();if(this.chosenSetting==null){return;}if(D<=this.chosenSetting.f){this.chosenSetting.scriptArgs="&location="+encodeURIComponent(A.location)+"&referrer="+encodeURIComponent(document.referrer)+"&prad="+this.publisher+"&ar_c="+B.CONSTANTS.CONTROL_AD_ARC+"&frequency="+this.chosenSetting.f+"&site=501";
this.chosenSetting.arc=B.CONSTANTS.CONTROL_AD_ARC;this.chosenSetting.prad="pub_"+this.publisher;
this.chosenSetting.methodology=B.CONSTANTS.METHODOLOGY.BUDDY;this.chosenSetting.path=this.executingPath+"../"+this.chosenSetting.pid+"/";
B.placement=B.CONSTANTS.SCRIPT_PLACEMENT.NO_IFRAME;if(!this.cookieExists(B.Buddy.config.alreadyAskedCookiePrefix+this.chosenSetting.pid)&&!this.cookieExists(B.Buddy.config.expCookiePrefix+this.chosenSetting.pid)){this.loadBuilder();
}}},getControlChosenSetting:function(F){var C=0;var E=[];for(var D=0;D<F.length;D++){if(F[D].f>0){C+=F[D].f*100;
E.push(F[D]);}}var H=A.getRandom(C);var G=0;for(var D=0;D<E.length;D++){G+=E[D].f*100;
if(H<=G){E[D].Total=C;return E[D];}}return null;},getExecutingPath:function(){var C=document.getElementsByTagName("script");
for(var E=C.length-1;E>=0;E--){var D=C[E].src;if(D.indexOf("/node.pli")!=-1){this.scriptUrl=D;
return D.replace(/(.*)(\/.*)$/,"$1/");}}return"";},getPublisher:function(){if(/pub=(\w+)/.test(this.scriptUrl)){return RegExp.$1;
}return"unknown";},cookieExists:function(C){if(B.Buddy.cookies[C]){return true;}return false;
},isExcludeReferrerUrl:function(){var C=this.config.masterSettings.excludeReferrerUrl;
if(C&&C!=""&&new RegExp(C,"i").test(document.referrer)){return true;}return false;
},isExcludeUrl:function(){var C=this.config.masterSettings.excludeUrl;if(C&&C!=""&&new RegExp(C,"i").test(document.location.toString())){return true;
}return false;}};})();if(typeof(COMSCORE.BMX.OnReady)=="undefined"){COMSCORE.BMX.OnReady=(function(){var C=COMSCORE.BMX;
var B=C.Utils;var A=[];return{wait:function(){try{var D=document.createElement("div");
D.style.display="none";D.style.width="0px";D.style.height="0px";document.body.appendChild(D);
document.body.removeChild(D);C.OnReady.onload();}catch(E){setTimeout(function(){C.OnReady.wait();
},1000);}},onload:function(){C.OnReady.done=true;for(var E=0;E<A.length;E++){if(!A[E].called){A[E].func();
A[E].called=true;}}if(C.OnReady.timer){clearInterval(C.OnReady.timer);}if(document.addEventListener){document.removeEventListener("DOMContentLoaded",C.OnReady.onload,false);
}if(window.ActiveXObject){var D=document.getElementById("ar__ie_onload");if(D){D.onreadystatechange=null;
D.parentNode.removeChild(D);}}},listen:function(E){if(C.OnReady.done){E();return;
}var D={called:false,func:E};A.push(D);if(/WebKit|khtml/i.test(navigator.userAgent)){C.OnReady.timer=setInterval(function(){if(/loaded|complete/.test(document.readyState)){clearInterval(C.OnReady.timer);
delete C.OnReady.timer;C.OnReady.onload();}},10);}else{if(document.addEventListener){C.OnReady.wait();
}else{if(window.ActiveXObject){C.OnReady.iew32=true;C.OnReady.waitForLoad=setInterval(function(){try{document.documentElement.doScroll("left");
}catch(F){return;}COMSCORE.BMX.OnReady.waitForLoad=clearInterval(COMSCORE.BMX.OnReady.waitForLoad);
COMSCORE.BMX.OnReady.onload();},1000);}else{if(window.addEventListener){window.addEventListener("load",C.OnReady.onload,false);
}else{if(window.attachEvent){return window.attachEvent("onload",C.OnReady.onload);
}}}}}},f:[],done:false,timer:null};})();}COMSCORE.BMX.Buddy.cookies={   "ar_p43920387": 'exp=1&initExp=Tue Feb  9 11:30:57 2010&recExp=Tue Feb  9 11:30:57 2010&prad=60071&arc=671&',  "BMX_3PC": '1',  "BMX_G": 'method->-1,ts->1265715057' };
COMSCORE.BMX.Buddy.config={"cookieSettings":{"hostedCookieReadUrl":"../b/rc.pli","hostedCookieWriteUrl":"../b/wc.pli","hostedCookieReadAllUrl":"../b/rcAll.pli","globalCookieName":"BMX_G","cookieCheckName":"BMX_3PC"}};
COMSCORE.BMX.Buddy.start([{pid:"p34500557",f:0,inv:"inv_300x250"},{pid:"p39487866",f:0,inv:"inv_300x250"}],{"masterSettings":{"globalCookieDelay":5000,"gracePeriod":259200000,"excludeUrl":"http://www.pcmag.com/forgot_password/0,1892,,00.asp|http://www.pcmag.com/forgot_password_confirm/|www.pcmag.com/$|www.pcmag.com/category2/0,2806,2201,00.asp/$|www.pcmag.com/category2/0,2806,24,00.asp/$|http://www.pcmag.com/category2/0,2806,9,00.asp/$",}})
}