Why smart cities need to get wise to security – and fast

Why smart cities need to get wise to security – and fast

As cities become more connected, their systems – from traffic lights to utilities meters – are increasingly open to hackers, say experts

Road chaos after traffic lights broke down in Xi’an, China, in 2014. Traffic control sensors are vulnerable to hacking, said Cesar Cerrudo. Road chaos after traffic lights broke down in Xi’an, China, in 2014. Traffic control sensors are vulnerable to hacking, said Cesar Cerrudo. Photograph: ChinaFotoPress/Getty Images

The smart city is an alluring vision of the future, in which civic technology such as traffic lights, smart meters for utilities and public transport could all be connected and feed back invaluable data online.

Glasgow has spent £24m installing technology such as smart street lights that brighten for pedestrians and cyclists, and traffic-tracking sensors in roads, while Bristol is collecting data on everything from health to pollution and interpreting it via a “city operating system”. While those cities may be streets ahead of others, most urban areas have some smart features.

Yet a leading internet security researcher has warned that the smart cities of the future could be more vulnerable to hackers than the computers and smartphones of today.

Cesar Cerrudo, chief technology officer at security research firm IOActive Labs, warned that city authorities and governments that are the customers of technology firms aren’t testing the security of the systems they buy. “They do a lot of tests for functionality on the system and devices, but they don’t do any security testing. So, basically, they are trusting the vendors,” he said.

Speaking at the RSA security conference in San Francisco in April, Cerrudo said many firms selling smart systems were failing to build in effective security, such as encryption – a significant problem when so many services transmitted their data wirelessly. “All the data goes over the air. If you don’t have a good encryption, anyone can capture the data over the air and compromise security,” he said.

For example, he revealed that the 200,000 traffic control sensors installed around the world, from Melbourne to London, were vulnerable to attack from hackers.

Sean Sullivan, a security analyst at F-Secure, said: “Smart cities can provide planning departments a lot of very value information for better city living – but it could also be a big vector for fraud unless properly secured.

He agreed that smart cities are “highly hackable” but predicted that we are more likely to see pranks – such as fiddling with highway signs or one-day outages on transport systems that cause chaos – than large-scale attacks.

Sullivan pointed to a smart power meter hack investigated by the FBI that could be costing utility firms millions by letting tech-savvy users reprogramme the meter and get energy for free.

James Lyne, global head of security research at Sophos, said that some systems have relied on security through obscurity.

Read full article at:

http://www.theguardian.com/technology/2015/may/13/smart-cities-internet-things-security-cesar-cerrudo-ioactive-labs

//

// // g?b=a+f+b:(g+=f.length,f=a.indexOf("&",g),b=0<=f?a.substring(0,g)+b+a.substring(f):a.substring(0,g)+b)}return 2E3<b.length?void 0!==d?t(a,c,d,void 0,e):a:b};var ca=function(){var a=/[&\?]exk=([^& ]+)/.exec(u.location.href);return a&&2==a.length?a[1]:null};var da=function(a){var c=a.toString();a.name&&-1==c.indexOf(a.name)&&(c+=": "+a.name);a.message&&-1==c.indexOf(a.message)&&(c+=": "+a.message);if(a.stack){a=a.stack;var b=c;try{-1==a.indexOf(b)&&(a=b+"\n"+a);for(var d;a!=d;)d=a,a=a.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");c=a.replace(/\n */g,"\n")}catch(e){c=b}}return c},v=function(a,c){a.google_image_requests||(a.google_image_requests=[]);var b=a.document.createElement("img");b.src=c;a.google_image_requests.push(b)};var w=document,u=window;var ea=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},ga=function(a,c){return ac?1:0};var x=null,ha=function(a,c){for(var b in a)Object.prototype.hasOwnProperty.call(a,b)&&c.call(null,a[b],b,a)};function z(a){return"function"==typeof encodeURIComponent?encodeURIComponent(a):escape(a)}var ia=function(){if(!w.body)return!1;if(!x){var a=w.createElement("iframe");a.style.display="none";a.id="anonIframe";x=a;w.body.appendChild(a)}return!0},ja={};var ka=!0,la={},oa=function(a,c,b,d){var e=ma,f,g=ka;try{f=c()}catch(k){try{var p=da(k);c="";k.fileName&&(c=k.fileName);var y=-1;k.lineNumber&&(y=k.lineNumber);g=e(a,p,c,y,b)}catch(l){try{var r=da(l);a="";l.fileName&&(a=l.fileName);b=-1;l.lineNumber&&(b=l.lineNumber);ma("pAR",r,a,b,void 0,void 0)}catch(fa){na({context:"mRE",msg:fa.toString()+"\n"+(fa.stack||"")},void 0)}}if(!g)throw k;}finally{if(d)try{d()}catch(Bb){}}return f},ma=function(a,c,b,d,e,f){var g={};if(e)try{e(g)}catch(k){}g.context=a;g.msg=c.substring(0,512);b&&(g.file=b);0<d&&(g.line=d.toString());g.url=w.URL.substring(0,512);g.ref=w.referrer.substring(0,512);pa(g);na(g,f);return ka},na=function(a,c){try{if(Math.random()b?Math.max(0,a.length+b):b;if(m(a))return m(c)&&1==c.length?a.indexOf(c,b):-1;for(;b<a.length;b++)if(b in a&&a[b]===c)return b;return-1},sa=B.map?function(a,c,b){return B.map.call(a,c,b)}:function(a,c,b){for(var d=a.length,e=Array(d),f=m(a)?a.split(""):a,g=0;g<d;g++)g in f&&(e[g]=c.call(b,f[g],g,a));return e};var ta=function(a,c){for(var b in a)c.call(void 0,a[b],b,a)},ua=function(a){var c=arguments.length;if(1==c&&"array"==aa(arguments[0]))return ua.apply(null,arguments[0]);for(var b={},d=0;dparseFloat(a))?String(c):a}(),Da={},Ea=function(a){if(!Da[a]){for(var c=0,b=ea(String(Ca)).split("."),d=ea(String(a)).split("."),e=Math.max(b.length,d.length),f=0;0==c&&f<e;f++){var g=b[f]||"",k=d[f]||"",p=RegExp("(\\d*)(\\D*)","g"),y=RegExp("(\\d*)(\\D*)","g");do{var l=p.exec(g)||["","",""],r=y.exec(k)||["","",""];if(0==l[0].length&&0==r[0].length)break;c=ga(0==l[1].length?0:parseInt(l[1],10),0==r[1].length?0:parseInt(r[1],10))||ga(0==l[2].length,0==r[2].length)||ga(l[2],r[2])}while(0==c)}Da[a]=0<=c}},Fa=h.document,Ga=Ba(),Ha=!Fa||!E||!Ga&&D()?void 0:Ga||("CSS1Compat"==Fa.compatMode?parseInt(Ca,10):5);var Ia={i:947190538,j:947190541,l:947190542,g:79463068,h:79463069},Ja={f:"ud=1",m:"ts=1",c:"sc=1"};if(w&&w.URL)var F=w.URL,ka=!(F&&(0<F.indexOf("?google_debug")||0<F.indexOf("&google_debug")||0=c)){var d=0,e=function(){a();d++;dc;){if(b.google_osd_static_frame)return b;if(b.aswift_0&&(!a||b.aswift_0.google_osd_static_frame))return b.aswift_0;c++;b=b!=b.parent?b.parent:null}}catch(e){}return null},Qa=function(a,c,b,d,e){if(10<Oa)u.clearInterval(L);else if(++Oa,u.postMessage&&(c.b||c.a)){var f=Pa(!0);if(f){var g={};I(c,g);g[0]="goog_request_monitoring";g[6]=a;g[16]=b;d&&d.length&&(g[17]=d.join(","));e&&(g[19]=e);try{var k=K(g);f.postMessage(k,"*")}catch(p){}}}},Ra=function(a){var c=Pa(!1),b=!c;!c&&u&&(c=u.parent);if(c&&c.postMessage)try{c.postMessage(a,"*"),b&&u.postMessage(a,"*")}catch(d){}};ua("area base br col command embed hr img input keygen link meta param source track wbr".split(" "));var M=function(a,c){this.width=a;this.height=c};var Sa;if(!(Sa=!ya&&!E)){var Ta;if(Ta=E)Ta=E&&(D()||9<=Ha);Sa=Ta}Sa||ya&&Ea("1.9.1");E&&Ea("9");E&&Ea(12);var Va=function(){var a=u.parent&&u.parent!=u,c=a&&0<="//tpc.googlesyndication.com".indexOf(u.location.host);if(a&&u.name&&0==u.name.indexOf("google_ads_iframe")||c){var b;a=u||u;try{var d;if(a.document&&!a.document.body)d=new M(-1,-1);else{var e=(a||window).document,f="CSS1Compat"==e.compatMode?e.documentElement:e.body;d=new M(f.clientWidth,f.clientHeight)}b=d}catch(g){b=new M(-12245933,-12245933)}return Ua(b)}b=u.document.getElementsByTagName("SCRIPT");return 0<b.length&&(b=b[b.length-1],b.parentElement&&b.parentElement.id&&0<b.parentElement.id.indexOf("_ad_container"))?Ua(void 0,b.parentElement):null},Ua=function(a,c){var b=Wa("IMG",a,c);return b||(b=Wa("IFRAME",a,c))?b:(b=Wa("OBJECT",a,c))?b:null},Wa=function(a,c,b){var d=document;b=b||d;d=a&&"*"!=a?a.toUpperCase():"";b=b.querySelectorAll&&b.querySelector&&d?b.querySelectorAll(d+""):b.getElementsByTagName(d||"*");for(d=0;d<b.length;d++){var e=b[d];if("OBJECT"==a)a:{var f=e.getAttribute("height");if(null!=f&&0<f&&0==e.clientHeight)for(var f=e.children,g=0;g<f.length;g++){var k=f[g];if("OBJECT"==k.nodeName||"EMBED"==k.nodeName){e=k;break a}}}f=e.clientHeight;g=e.clientWidth;if(k=c)k=new M(g,f),k=Math.abs(c.width-k.width)<.1*c.width&&Math.abs(c.height-k.height)<.1*c.height;if(k||!c&&10<f&&10<g)return e}return null};var Xa,N=0,O="",P=!1,Q=!1,R=!1,Ya=!0,Za=!1,$a=!1,ab=[],J=null,S="",bb=[],cb=null,db=[],eb=!1,T="",U="",fb=(new Date).getTime(),gb=!1,hb=!1,ib="",jb=!1,kb=["1","0","3"],lb=!1,V=!1,W="",mb=null,X=0,Y=0,nb=0,ob="",qb=function(a,c,b){P&&(Ya||3!=(b||3)||$a)&&pb(a,c,!0);(R||Q&&Za)&&pb(a,c)},rb=function(a,c){if(lb){var b=W;try{a.localStorage[b]=c+"&timestamp="+n()+"&send"}catch(d){}}},sb=function(){var a=cb;return a?2!=a():!0},pb=function(a,c,b){(c=c||S)&&!eb&&(2==Y||b)&&sb()&&(c=tb(c,b),!b&&V?(V=!1,mb&&(a.clearInterval(mb),mb=null),rb(a,c),Ma(a,c,function(){a.localStorage.removeItem(W)})):v(a,c),b?P=!1:eb=!0)},tb=function(a,c){var b;b=c?"osdim":R?"osd2":"osdtos";var d=["//pagead2.googlesyndication.com/activeview","?id=",b];"osd2"==b&&Q&&Za&&d.push("&ts=1");O&&d.push("&avi=",O);Xa&&d.push("&cid=",Xa);V&&d.push("&cwls=1");d.push("&ti=1");d.push("&",a);d.push("&uc="+nb);gb&&(hb?d.push("&tgt="+ib):d.push("&tgt=nf"),d.push("&cl="+(jb?1:0)));b=d.join("");for(d=0;d<bb.length;d++){try{var e=bb[d]()}catch(f){}var g="max_length";2<=e.length&&(3==e.length&&(g=e[2]),b=t(b,z(e[0]),z(e[1]),g))}2E3<b.length&&(b=b.substring(0,2E3));return b},Z=function(a,c){if(T){try{var b=t(T,"vi",a);ia()&&v(x.contentWindow,b)}catch(d){}0<=ra(kb,a)&&(T="");var b=c||S,e;e=t("//pagead2.googlesyndication.com/pagead/gen_204?id=sldb","avi",O);e=t(e,"vi",a);b&&(e+="&"+b);try{v(u,e)}catch(f){}}},ub=function(){Z("-1")},vb=function(a){if(a&&a.data&&m(a.data)){var c;var b=a.data;if(m(b)){c={};for(var b=b.split("\n"),d=0;d=e)){var f=Number(b[d].substr(0,e)),e=b[d].substr(e+1);switch(f){case 5:case 8:case 11:case 15:case 16:case 18:e="true"==e;break;case 4:case 7:case 6:case 14:e=Number(e);break;case 3:case 19:if("function"==aa(decodeURIComponent))try{e=decodeURIComponent(e)}catch(g){throw Error("Error: URI malformed: "+e);}break;case 17:e=sa(decodeURIComponent(e).split(","),Number)}c[f]=e}}c=c[0]?c:null}else c=null;if(c&&(b=new H(c[4],c[12]),J&&J.match(b))){for(b=0;bX&&!Q&&2==Y){var a=u,c="//pagead2.googlesyndication.com/pagead/gen_204?id=osd2&",b=[];b.push("ovr_value="+N);b.push("avi="+O);J&&(b=b.concat(Na()));b.push("tt="+((new Date).getTime()-fb));a.document&&a.document.referrer&&b.push("ref="+z(a.document.referrer));b.push("hs="+X);c+=b.join("&");try{v(a,c)}catch(d){}}},xb=function(){var a={};I(J,a);a[0]="goog_dom_content_loaded";var c=K(a);Ka(function(){Ra(c)},10,"osd_listener::ldcl_int")},yb=function(){var a={};I(J,a);a[0]="goog_creative_loaded";var c=K(a);Ka(function(){Ra(c)},10,"osd_listener::lcel_int");jb=!0},zb=function(a){if(m(a)){a=a.split("&");for(var c=a.length-1;0<=c;c–){var b=a[c],d=Ja;b==d.f?(Ya=!1,a.splice(c,1)):b==d.c&&(gb=!0,a.splice(c,1))}ob=a.join("&")}},Ab=function(){if(!hb){var a=Va();a&&(hb=!0,ib=a.tagName,a.complete||a.naturalWidth?yb():G(a,"load",yb,"osd_listener::creative_load"))}};q("osdlfm",A("osd_listener::init",function(a,c,b,d,e,f,g,k,p,y){N=a;T=c;U=d;P=f;Xa=y;k&&zb(k);Q=g&&f;1!=p&&2!=p&&3!=p||ab.push(Ia["MRC_TEST_"+p]);J=new H(e,ca());G(u,"load",ub,"osd_listener::load");G(u,"message",vb,"osd_listener::message");O=b||"";G(u,"unload",wb,"osd_listener::unload");var l=u.document;!l.readyState||"complete"!=l.readyState&&"loaded"!=l.readyState?("msie"in ja?ja.msie:ja.msie=-1!=navigator.userAgent.toLowerCase().indexOf("msie"))&&!window.opera?G(l,"readystatechange",function(){"complete"!=l.readyState&&"loaded"!=l.readyState||xb()},"osd_listener::rsc"):G(l,"DOMContentLoaded",xb,"osd_listener::dcl"):xb();-1==N?Y=f?3:1:-2==N?Y=3:0u.localStorage.length)&&(W="LSPNGS-"+J.toString()+"-"+(""+Math.random()).split(".")[1]+n());J&&(J.b||J.a)&&(X=1,L=u.setInterval(A("osd_proto::reqm_int",ba(Qa,Y,J,Q,ab,ob),void 0,void 0,void 0),500));gb&&Ka(Ab,5,"osd_listener:sfc")}));q("osdlac",A("osd_listener::lac_ex",function(a){bb.push(a)}));q("osdlamrc",A("osd_listener::lamrc_ex",function(a){db.push(a)}));q("osdsir",A("osd_listener::sir_ex",qb));q("osdacrc",A("osd_listener::acrc_ex",function(a){cb=a}));})();osdlfm(-1,”,’B6F4qG7RTVbdNzoimA5LDgWAAyq7Vo50BAAAQATgByAEB4AIAyAObBOAEAcITAxCAAQ’,”,210537625,true,true,”,3,”);
// ]]>

// <![CDATA[
(function(){var k=this,aa=function(a,b){var c=a.split("."),d=k;c[0]in d||!d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)c.length||void 0===b?d=d[e]?d[e]:d[e]={}:d[e]=b},l=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==b&&"undefined"==typeof a.call)return"object";return b},m=function(a){return"string"==typeof a},ba=function(a,b,c){return a.call.apply(a.bind,arguments)},ca=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}},n=function(a,b,c){n=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ba:ca;return n.apply(null,arguments)},p=Date.now||function(){return+new Date},q=function(a,b){function c(){}c.prototype=b.prototype;a.ka=b.prototype;a.prototype=new c;a.qa=function(a,c,f){for(var g=Array(arguments.length-2),h=2;h<arguments.length;h++)g[h-2]=arguments[h];return b.prototype[c].apply(a,g)}};var da=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},r=function(a,b){return ab?1:0};var t=function(a){t[" "](a);return a};t[" "]=function(){};var ea=function(a,b){try{return t(a[b]),!0}catch(c){}return!1};var v=function(a){try{return!!a&&null!=a.location.href&&ea(a,"foo")}catch(b){return!1}};var fa=function(a){var b=window;b.google_image_requests||(b.google_image_requests=[]);var c=b.document.createElement("img");c.src=a;b.google_image_requests.push(c)};var ga=document;var w=function(a,b,c){b=n(c,b);a.addEventListener?a.addEventListener("click",b,!1):a.attachEvent&&a.attachEvent("onclick",b)};var ha="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),ia=function(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<ha.length;f++)c=ha[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}},ka=function(a){var b=arguments.length;if(1==b&&"array"==l(arguments[0]))return ka.apply(null,arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c};var la=function(a){var b={};if(a&&a.key_value){a=a.key_value;for(var c=0;cc?Math.max(0,a.length+c):c;if(m(a))return m(b)&&1==b.length?a.indexOf(b,c):-1;for(;cparseFloat(a))?String(b):a}(),ua={},H=function(a){var b;if(!(b=ua[a])){b=0;for(var c=da(String(ta)).split("."),d=da(String(a)).split("."),e=Math.max(c.length,d.length),f=0;0==b&&f<e;f++){var g=c[f]||"",h=d[f]||"",u=RegExp("(\\d*)(\\D*)","g"),Pa=RegExp("(\\d*)(\\D*)","g");do{var y=u.exec(g)||["","",""],D=Pa.exec(h)||["","",""];if(0==y[0].length&&0==D[0].length)break;b=r(0==y[1].length?0:parseInt(y[1],10),0==D[1].length?0:parseInt(D[1],10))||r(0==y[2].length,0==D[2].length)||r(y[2],D[2])}while(0==b)}b=ua[a]=0<=b}return b},va=k.document,wa=sa(),xa=!va||!E||!wa&&C()?void 0:wa||("CSS1Compat"==va.compatMode?parseInt(ta,10):5);!F&&!E||E&&E&&(C()||9<=xa)||F&&H("1.9.1");var ya=E&&!H("9");var za=function(a){var b=document;return m(a)?b.getElementById(a):a},Aa={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},Ba={IMG:" ",BR:"\n"},Da=function(){var a=document.getElementById("feedback-closing-template");if(ya&&"innerText"in a)a=a.innerText.replace(/(\r\n|\r|\n)/g,"\n");else{var b=[];Ca(a,b,!0);a=b.join("")}a=a.replace(/ \xAD /g," ").replace(/\xAD/g,"");a=a.replace(/\u200B/g,"");ya||(a=a.replace(/ +/g," "));" "!=a&&(a=a.replace(/^\s*/,""));return a},Ca=function(a,b,c){if(!(a.nodeName in Aa))if(3==a.nodeType)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in Ba)b.push(Ba[a.nodeName]);else for(a=a.firstChild;a;)Ca(a,b,c),a=a.nextSibling};E&&H(12);var Ea=function(){var a=document.body,b;if(ma&&!v(z)){for(var c="."+ga.domain;2=a.oa)};var Ga=function(a){a=String(a);if(/^\s*$/.test(a)?0:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,"")))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);};var I=function(){this.R=this.R;this.ha=this.ha};I.prototype.R=!1;var J=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.m=!1;this.V=!0};J.prototype.preventDefault=function(){this.defaultPrevented=!0;this.V=!1};var Ha=!E||E&&(C()||9<=xa),Ia=E&&!H("9");!G||H("528");F&&H("1.9b")||E&&H("8")||qa&&H("9.5")||G&&H("528");F&&!H("8")||E&&H("9");var K=function(a,b){J.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.charCode=this.keyCode=this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.S=this.state=null;if(a){var c=this.type=a.type;this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;d?F&&(ea(d,"nodeName")||(d=null)):"mouseover"==c?d=a.fromElement:"mouseout"==c&&(d=a.toElement);this.relatedTarget=d;this.offsetX=G||void 0!==a.offsetX?a.offsetX:a.layerX;this.offsetY=G||void 0!==a.offsetY?a.offsetY:a.layerY;this.clientX=void 0!==a.clientX?a.clientX:a.pageX;this.clientY=void 0!==a.clientY?a.clientY:a.pageY;this.screenX=a.screenX||0;this.screenY=a.screenY||0;this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.state=a.state;this.S=a;a.defaultPrevented&&this.preventDefault()}};q(K,J);K.prototype.preventDefault=function(){K.ka.preventDefault.call(this);var a=this.S;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Ia)try{if(a.ctrlKey||112=a.keyCode)a.keyCode=-1}catch(b){}};var L="closure_listenable_"+(1E6*Math.random()|0),Ja=0;var Ka=function(a,b,c,d,e){this.listener=a;this.F=null;this.src=b;this.type=c;this.w=!!d;this.A=e;this.key=++Ja;this.o=this.v=!1},M=function(a){a.o=!0;a.listener=null;a.F=null;a.src=null;a.A=null};var N=function(a){this.src=a;this.g={};this.G=0};N.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.g[f];a||(a=this.g[f]=[],this.G++);var g=O(a,b,d,e);-1<g?(b=a[g],c||(b.v=!1)):(b=new Ka(b,this.src,f,!!d,e),b.v=c,a.push(b));return b};N.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.g))return!1;var e=this.g[a];b=O(e,b,c,d);return-1<b?(M(e[b]),A.splice.call(e,b,1),0==e.length&&(delete this.g[a],this.G–),!0):!1};var P=function(a,b){var c=b.type;if(c in a.g){var d=a.g[c],e=na(d,b),f;(f=0<=e)&&A.splice.call(d,e,1);f&&(M(b),0==a.g[c].length&&(delete a.g[c],a.G–))}};N.prototype.K=function(a,b,c,d){a=this.g[a.toString()];var e=-1;a&&(e=O(a,b,c,d));return-1<e?a[e]:null};var O=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.o&&f.listener==b&&f.w==!!c&&f.A==d)return e}return-1};var Q="closure_lm_"+(1E6*Math.random()|0),R={},La=0,S=function(a,b,c,d,e){if("array"==l(b))for(var f=0;f<b.length;f++)S(a,b[f],c,d,e);else if(c=Ma(c),a&&a[L])a.listen(b,c,d,e);else{if(!b)throw Error("Invalid event type");var f=!!d,g=T(a);g||(a[Q]=g=new N(a));c=g.add(b,c,!1,d,e);c.F||(d=Na(),c.F=d,d.src=a,d.listener=c,a.addEventListener?a.addEventListener(b.toString(),d,f):a.attachEvent(Oa(b.toString()),d),La++)}},Na=function(){var a=Qa,b=Ha?function(c){return a.call(b.src,b.listener,c)}:function(c){c=a.call(b.src,b.listener,c);if(!c)return c};return b},Ra=function(a,b,c,d,e){if("array"==l(b))for(var f=0;f<b.length;f++)Ra(a,b[f],c,d,e);else c=Ma(c),a&&a[L]?a.unlisten(b,c,d,e):a&&(a=T(a))&&(b=a.K(b,c,!!d,e))&&Sa(b)},Sa=function(a){if("number"!=typeof a&&a&&!a.o){var b=a.src;if(b&&b[L])P(b.l,a);else{var c=a.type,d=a.F;b.removeEventListener?b.removeEventListener(c,d,a.w):b.detachEvent&&b.detachEvent(Oa(c),d);La–;(c=T(b))?(P(c,a),0==c.G&&(c.src=null,b[Q]=null)):M(a)}}},Oa=function(a){return a in R?R[a]:R[a]="on"+a},Ua=function(a,b,c,d){var e=!0;if(a=T(a))if(b=a.g[b.toString()])for(b=b.concat(),a=0;ae.keyCode||void 0!=e.returnValue)){a:{var f=!1;if(0==e.keyCode)try{e.keyCode=-1;break a}catch(g){f=!0}if(f||void 0==e.returnValue)e.returnValue=!0}e=[];for(f=c.currentTarget;f;f=f.parentNode)e.push(f);for(var f=a.type,h=e.length-1;!c.m&&0<=h;h–){c.currentTarget=e[h];var u=Ua(e[h],f,!0,c),d=d&&u}for(h=0;!c.m&&h>>0),Ma=function(a){if("function"==l(a))return a;a[U]||(a[U]=function(b){return a.handleEvent(b)});return a[U]};var V=function(){I.call(this);this.l=new N(this);this.Z=this;this.T=null};q(V,I);V.prototype[L]=!0;V.prototype.addEventListener=function(a,b,c,d){S(this,a,b,c,d)};V.prototype.removeEventListener=function(a,b,c,d){Ra(this,a,b,c,d)};V.prototype.dispatchEvent=function(a){var b,c=this.T;if(c)for(b=[];c;c=c.T)b.push(c);var c=this.Z,d=a.type||a;if(m(a))a=new J(a,c);else if(a instanceof J)a.target=a.target||c;else{var e=a;a=new J(d,c);ia(a,e)}var e=!0,f;if(b)for(var g=b.length-1;!a.m&&0<=g;g–)f=a.currentTarget=b[g],e=W(f,d,!0,a)&&e;a.m||(f=a.currentTarget=c,e=W(f,d,!0,a)&&e,a.m||(e=W(f,d,!1,a)&&e));if(b)for(g=0;!a.m&&g<b.length;g++)f=a.currentTarget=b[g],e=W(f,d,!1,a)&&e;return e};V.prototype.listen=function(a,b,c,d){return this.l.add(String(a),b,!1,c,d)};V.prototype.unlisten=function(a,b,c,d){return this.l.remove(String(a),b,c,d)};var W=function(a,b,c,d){b=a.l.g[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var g=b[f];if(g&&!g.o&&g.w==c){var h=g.listener,u=g.A||g.src;g.v&&P(a.l,g);e=!1!==h.call(u,d)&&e}}return e&&0!=d.V};V.prototype.K=function(a,b,c,d){return this.l.K(String(a),b,c,d)};var X=function(a,b){V.call(this);this.B=a||1;this.s=b||k;this.I=n(this.la,this);this.L=p()};q(X,V);X.prototype.enabled=!1;X.prototype.h=null;X.prototype.la=function(){if(this.enabled){var a=p()-this.L;0<a&&a<.8*this.B?this.h=this.s.setTimeout(this.I,this.B-a):(this.h&&(this.s.clearTimeout(this.h),this.h=null),this.dispatchEvent("tick"),this.enabled&&(this.h=this.s.setTimeout(this.I,this.B),this.L=p()))}};X.prototype.start=function(){this.enabled=!0;this.h||(this.h=this.s.setTimeout(this.I,this.B),this.L=p())};X.prototype.stop=function(){this.enabled=!1;this.h&&(this.s.clearTimeout(this.h),this.h=null)};var Y=function(a,b,c,d){this.O=a;this.ca=b;this.da=c;this.D=0;this.u=document.getElementById("mtadmas");this.ma=document.getElementById("mtadmaundo");this.M=document.getElementById("mtadmac");this.$=document.getElementById("mtadmback");this.U=document.getElementById("mtadmpc");this.na=document.getElementById("mtadmpundo");this.j=this.Y=this.J=this.P=this.N=null;this.C=!1;this.H=null;this.ga=d?d.getAdsLength():1;(this.i=d)&&this.i.registerWidget(this,0)},Va=function(a){for(var b=document.getElementsByName("surveyOptions"),c=0;c<b.length;c++)w(b[c],a,n(a.ia,a,b[c].value));w(a.ma,a,n(a.X,a,"1"));w(a.na,a,n(a.X,a,"3"));w(a.$,a,a.back);a.i&&(a.i.listenOnObject("mute_option_selected",n(a.W,a)),a.i.forEachAd(n(function(a){a.listenOnObject("multislot_mute_collapse",n(this.fa,this));a.listenOnObject("multislot_mute_collapse_undo",n(this.ea,this))},a)))};Y.prototype.W=function(a){this.N=a.close_button_token;this.P=a.creative_conversion_url;this.J=a.ablation_config;this.Y=a.undo_callback;this.i&&(this.H=this.i.getAd(a.creative_index));if(1===a.type){a=document.getElementsByName("surveyOptions");for(var b=0;b<a.length;b++)a[b].checked=!1;this.u.style.display="block";Z(this);Wa(this)}else 0===a.type&&(this.U.style.display="block",this.u.style.display="none",Z(this),Xa(this,document.getElementById("pub-feedback-closing"),this.J))};var Ya=function(a){a.j&&(a.j.stop(),a.j=null,a.C=!1);za("pub-feedback-closing").style.display="none";za("ad-feedback-closing").style.display="none"};Y.prototype.X=function(a){this.C||(Ya(this),fa(Za(this,"user_feedback_undo",a)),this.Y())};Y.prototype.back=function(){this.C||(Ya(this),this.u.style.display="block",Z(this),Wa(this))};Y.prototype.ia=function(a){this.M.style.display="block";this.u.style.display="none";Wa(this);fa(Za(this,"mute_survey_option",a));a=document.getElementById("ad-feedback-closing");this.De||e>h||(a.j||(a.j=new X(1E3),S(a.j,"tick",n(function(){var a="";h<=d&&0=h&&Ya(this);h–},a))),a.j.dispatchEvent("tick"),0<=h&&a.j.start())},Xa=function(a,b,c){if(c&&window.top&&window.top.postMessage){var d=Ga(c),e=la(d),f="resize-me"==d.msg_type&&"animate"==e.r_str;("ablate-me"==d.msg_type&&e["collapse-after-close"]||f&&!Fa())&&ab(a,b,x(e["secs-to-countdown"],1),x(e.countdown,0),x(e["message-tick"],1),function(){window.top.postMessage(c,"*")})}},$a=function(a,b){ab(a,b,1,a.da,0,n(function(){var a={creative_index:this.H.getIndex(),undo_pingback_url:Za(this,"user_feedback_undo","1")};this.H.fireOnObject("multislot_mute_collapse",a)},a))};Y.prototype.fa=function(){this.D++;this.i.resetAll()};Y.prototype.ea=function(){0//

// <![CDATA[
(function(){var k=this,l=function(a,b){var c=a.split("."),d=k;c[0]in d||!d.execScript||d.execScript("var "+c[0]);for(var f;c.length&&(f=c.shift());)c.length||void 0===b?d=d[f]?d[f]:d[f]={}:d[f]=b},r=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==b&&"undefined"==typeof a.call)return"object";return b},aa=function(a,b,c){return a.call.apply(a.bind,arguments)},ba=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}},t=function(a,b,c){t=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?aa:ba;return t.apply(null,arguments)};var u="undefined"!=typeof DOMTokenList,v=function(a,b){if(u){var c=a.classList;0==c.contains(b)&&c.toggle(b)}else if(c=a.className){for(var c=c.split(/\s+/),d=!1,f=0;fc.indexOf(b))){for(var c=c.split(/\s+/),d=0;d<c.length;++d)c[d]==b&&c.splice(d–,1);a.className=c.join(" ")}};var x=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},y=function(a,b){return ab?1:0};var ca=function(a){var b=window;b.addEventListener?b.addEventListener("load",a,!1):b.attachEvent&&b.attachEvent("onload",a)},z=function(a,b,c,d){c=t(d,c);a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent&&a.attachEvent("on"+b,c)};var A=function(a){var b=arguments.length;if(1==b&&"array"==r(arguments[0]))return A.apply(null,arguments[0]);for(var c={},d=0;dparseFloat(a))?String(b):a}(),K={},L=function(a){if(!K[a]){for(var b=0,c=x(String(J)).split("."),d=x(String(a)).split("."),f=Math.max(c.length,d.length),e=0;0==b&&e<f;e++){var p=c[e]||"",n=d[e]||"",h=RegExp("(\\d*)(\\D*)","g"),g=RegExp("(\\d*)(\\D*)","g");do{var q=h.exec(p)||["","",""],m=g.exec(n)||["","",""];if(0==q[0].length&&0==m[0].length)break;b=y(0==q[1].length?0:parseInt(q[1],10),0==m[1].length?0:parseInt(m[1],10))||y(0==q[2].length,0==m[2].length)||y(q[2],m[2])}while(0==b)}K[a]=0<=b}},ha=k.document,ia=I(),ka=!ha||!G||!ia&&F()?void 0:ia||("CSS1Compat"==ha.compatMode?parseInt(J,10):5);var M;if(!(M=!H&&!G)){var N;if(N=G)N=G&&(F()||9<=ka);M=N}M||H&&L("1.9.1");G&&L("9");var ma=function(a,b,c){var d="mouseenter_custom"==b,f=la(b);return function(e){e||(e=window.event);if(e.type==f){if("mouseenter_custom"==b||"mouseleave_custom"==b){var p;if(p=d?e.relatedTarget||e.fromElement:e.relatedTarget||e.toElement)for(var n=0;n<a.length;n++){var h;h=a[n];var g=p;if(h.contains&&1==g.nodeType)h=h==g||h.contains(g);else if("undefined"!=typeof h.compareDocumentPosition)h=h==g||Boolean(h.compareDocumentPosition(g)&16);else{for(;g&&h!=g;)g=g.parentNode;h=g==h}if(h)return}}c(e)}}},la=function(a){return"mouseenter_custom"==a?"mouseover":"mouseleave_custom"==a?"mouseout":a};var na=function(){this.s=void 0},P=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if("array"==r(b)){var d=b;b=d.length;c.push("[");for(var f="",e=0;e//

// <![CDATA[
(function(){var k=this,aa=function(a,b){var c=a.split("."),d=k;c[0]in d||!d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)c.length||void 0===b?d=d[e]?d[e]:d[e]={}:d[e]=b},l=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==b&&"undefined"==typeof a.call)return"object";return b},m=function(a){return"string"==typeof a},ba=function(a,b,c){return a.call.apply(a.bind,arguments)},ca=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}},n=function(a,b,c){n=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ba:ca;return n.apply(null,arguments)},p=Date.now||function(){return+new Date},q=function(a,b){function c(){}c.prototype=b.prototype;a.ka=b.prototype;a.prototype=new c;a.qa=function(a,c,f){for(var g=Array(arguments.length-2),h=2;h<arguments.length;h++)g[h-2]=arguments[h];return b.prototype[c].apply(a,g)}};var da=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},r=function(a,b){return ab?1:0};var t=function(a){t[" "](a);return a};t[" "]=function(){};var ea=function(a,b){try{return t(a[b]),!0}catch(c){}return!1};var v=function(a){try{return!!a&&null!=a.location.href&&ea(a,"foo")}catch(b){return!1}};var fa=function(a){var b=window;b.google_image_requests||(b.google_image_requests=[]);var c=b.document.createElement("img");c.src=a;b.google_image_requests.push(c)};var ga=document;var w=function(a,b,c){b=n(c,b);a.addEventListener?a.addEventListener("click",b,!1):a.attachEvent&&a.attachEvent("onclick",b)};var ha="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),ia=function(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<ha.length;f++)c=ha[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}},ka=function(a){var b=arguments.length;if(1==b&&"array"==l(arguments[0]))return ka.apply(null,arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c};var la=function(a){var b={};if(a&&a.key_value){a=a.key_value;for(var c=0;c
c?Math.max(0,a.length+c):c;if(m(a))return m(b)&&1==b.length?a.indexOf(b,c):-1;for(;cparseFloat(a))?String(b):a}(),ua={},H=function(a){var b;if(!(b=ua[a])){b=0;for(var c=da(String(ta)).split("."),d=da(String(a)).split("."),e=Math.max(c.length,d.length),f=0;0==b&&f<e;f++){var g=c[f]||"",h=d[f]||"",u=RegExp("(\\d*)(\\D*)","g"),Pa=RegExp("(\\d*)(\\D*)","g");do{var y=u.exec(g)||["","",""],D=Pa.exec(h)||["","",""];if(0==y[0].length&&0==D[0].length)break;b=r(0==y[1].length?0:parseInt(y[1],10),0==D[1].length?0:parseInt(D[1],10))||r(0==y[2].length,0==D[2].length)||r(y[2],D[2])}while(0==b)}b=ua[a]=0<=b}return b},va=k.document,wa=sa(),xa=!va||!E||!wa&&C()?void 0:wa||("CSS1Compat"==va.compatMode?parseInt(ta,10):5);!F&&!E||E&&E&&(C()||9<=xa)||F&&H("1.9.1");var ya=E&&!H("9");var za=function(a){var b=document;return m(a)?b.getElementById(a):a},Aa={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},Ba={IMG:" ",BR:"\n"},Da=function(){var a=document.getElementById("feedback-closing-template");if(ya&&"innerText"in a)a=a.innerText.replace(/(\r\n|\r|\n)/g,"\n");else{var b=[];Ca(a,b,!0);a=b.join("")}a=a.replace(/ \xAD /g," ").replace(/\xAD/g,"");a=a.replace(/\u200B/g,"");ya||(a=a.replace(/ +/g," "));" "!=a&&(a=a.replace(/^\s*/,""));return a},Ca=function(a,b,c){if(!(a.nodeName in Aa))if(3==a.nodeType)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in Ba)b.push(Ba[a.nodeName]);else for(a=a.firstChild;a;)Ca(a,b,c),a=a.nextSibling};E&&H(12);var Ea=function(){var a=document.body,b;if(ma&&!v(z)){for(var c="."+ga.domain;2=a.oa)};var Ga=function(a){a=String(a);if(/^\s*$/.test(a)?0:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,"")))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);};var I=function(){this.R=this.R;this.ha=this.ha};I.prototype.R=!1;var J=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.m=!1;this.V=!0};J.prototype.preventDefault=function(){this.defaultPrevented=!0;this.V=!1};var Ha=!E||E&&(C()||9<=xa),Ia=E&&!H("9");!G||H("528");F&&H("1.9b")||E&&H("8")||qa&&H("9.5")||G&&H("528");F&&!H("8")||E&&H("9");var K=function(a,b){J.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.charCode=this.keyCode=this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.S=this.state=null;if(a){var c=this.type=a.type;this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;d?F&&(ea(d,"nodeName")||(d=null)):"mouseover"==c?d=a.fromElement:"mouseout"==c&&(d=a.toElement);this.relatedTarget=d;this.offsetX=G||void 0!==a.offsetX?a.offsetX:a.layerX;this.offsetY=G||void 0!==a.offsetY?a.offsetY:a.layerY;this.clientX=void 0!==a.clientX?a.clientX:a.pageX;this.clientY=void 0!==a.clientY?a.clientY:a.pageY;this.screenX=a.screenX||0;this.screenY=a.screenY||0;this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.state=a.state;this.S=a;a.defaultPrevented&&this.preventDefault()}};q(K,J);K.prototype.preventDefault=function(){K.ka.preventDefault.call(this);var a=this.S;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Ia)try{if(a.ctrlKey||112=a.keyCode)a.keyCode=-1}catch(b){}};var L="closure_listenable_"+(1E6*Math.random()|0),Ja=0;var Ka=function(a,b,c,d,e){this.listener=a;this.F=null;this.src=b;this.type=c;this.w=!!d;this.A=e;this.key=++Ja;this.o=this.v=!1},M=function(a){a.o=!0;a.listener=null;a.F=null;a.src=null;a.A=null};var N=function(a){this.src=a;this.g={};this.G=0};N.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.g[f];a||(a=this.g[f]=[],this.G++);var g=O(a,b,d,e);-1<g?(b=a[g],c||(b.v=!1)):(b=new Ka(b,this.src,f,!!d,e),b.v=c,a.push(b));return b};N.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.g))return!1;var e=this.g[a];b=O(e,b,c,d);return-1<b?(M(e[b]),A.splice.call(e,b,1),0==e.length&&(delete this.g[a],this.G–),!0):!1};var P=function(a,b){var c=b.type;if(c in a.g){var d=a.g[c],e=na(d,b),f;(f=0<=e)&&A.splice.call(d,e,1);f&&(M(b),0==a.g[c].length&&(delete a.g[c],a.G–))}};N.prototype.K=function(a,b,c,d){a=this.g[a.toString()];var e=-1;a&&(e=O(a,b,c,d));return-1<e?a[e]:null};var O=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.o&&f.listener==b&&f.w==!!c&&f.A==d)return e}return-1};var Q="closure_lm_"+(1E6*Math.random()|0),R={},La=0,S=function(a,b,c,d,e){if("array"==l(b))for(var f=0;f<b.length;f++)S(a,b[f],c,d,e);else if(c=Ma(c),a&&a[L])a.listen(b,c,d,e);else{if(!b)throw Error("Invalid event type");var f=!!d,g=T(a);g||(a[Q]=g=new N(a));c=g.add(b,c,!1,d,e);c.F||(d=Na(),c.F=d,d.src=a,d.listener=c,a.addEventListener?a.addEventListener(b.toString(),d,f):a.attachEvent(Oa(b.toString()),d),La++)}},Na=function(){var a=Qa,b=Ha?function(c){return a.call(b.src,b.listener,c)}:function(c){c=a.call(b.src,b.listener,c);if(!c)return c};return b},Ra=function(a,b,c,d,e){if("array"==l(b))for(var f=0;f<b.length;f++)Ra(a,b[f],c,d,e);else c=Ma(c),a&&a[L]?a.unlisten(b,c,d,e):a&&(a=T(a))&&(b=a.K(b,c,!!d,e))&&Sa(b)},Sa=function(a){if("number"!=typeof a&&a&&!a.o){var b=a.src;if(b&&b[L])P(b.l,a);else{var c=a.type,d=a.F;b.removeEventListener?b.removeEventListener(c,d,a.w):b.detachEvent&&b.detachEvent(Oa(c),d);La–;(c=T(b))?(P(c,a),0==c.G&&(c.src=null,b[Q]=null)):M(a)}}},Oa=function(a){return a in R?R[a]:R[a]="on"+a},Ua=function(a,b,c,d){var e=!0;if(a=T(a))if(b=a.g[b.toString()])for(b=b.concat(),a=0;ae.keyCode||void 0!=e.returnValue)){a:{var f=!1;if(0==e.keyCode)try{e.keyCode=-1;break a}catch(g){f=!0}if(f||void 0==e.returnValue)e.returnValue=!0}e=[];for(f=c.currentTarget;f;f=f.parentNode)e.push(f);for(var f=a.type,h=e.length-1;!c.m&&0<=h;h–){c.currentTarget=e[h];var u=Ua(e[h],f,!0,c),d=d&&u}for(h=0;!c.m&&h>>0),Ma=function(a){if("function"==l(a))return a;a[U]||(a[U]=function(b){return a.handleEvent(b)});return a[U]};var V=function(){I.call(this);this.l=new N(this);this.Z=this;this.T=null};q(V,I);V.prototype[L]=!0;V.prototype.addEventListener=function(a,b,c,d){S(this,a,b,c,d)};V.prototype.removeEventListener=function(a,b,c,d){Ra(this,a,b,c,d)};V.prototype.dispatchEvent=function(a){var b,c=this.T;if(c)for(b=[];c;c=c.T)b.push(c);var c=this.Z,d=a.type||a;if(m(a))a=new J(a,c);else if(a instanceof J)a.target=a.target||c;else{var e=a;a=new J(d,c);ia(a,e)}var e=!0,f;if(b)for(var g=b.length-1;!a.m&&0<=g;g–)f=a.currentTarget=b[g],e=W(f,d,!0,a)&&e;a.m||(f=a.currentTarget=c,e=W(f,d,!0,a)&&e,a.m||(e=W(f,d,!1,a)&&e));if(b)for(g=0;!a.m&&g<b.length;g++)f=a.currentTarget=b[g],e=W(f,d,!1,a)&&e;return e};V.prototype.listen=function(a,b,c,d){return this.l.add(String(a),b,!1,c,d)};V.prototype.unlisten=function(a,b,c,d){return this.l.remove(String(a),b,c,d)};var W=function(a,b,c,d){b=a.l.g[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var g=b[f];if(g&&!g.o&&g.w==c){var h=g.listener,u=g.A||g.src;g.v&&P(a.l,g);e=!1!==h.call(u,d)&&e}}return e&&0!=d.V};V.prototype.K=function(a,b,c,d){return this.l.K(String(a),b,c,d)};var X=function(a,b){V.call(this);this.B=a||1;this.s=b||k;this.I=n(this.la,this);this.L=p()};q(X,V);X.prototype.enabled=!1;X.prototype.h=null;X.prototype.la=function(){if(this.enabled){var a=p()-this.L;0<a&&a<.8*this.B?this.h=this.s.setTimeout(this.I,this.B-a):(this.h&&(this.s.clearTimeout(this.h),this.h=null),this.dispatchEvent("tick"),this.enabled&&(this.h=this.s.setTimeout(this.I,this.B),this.L=p()))}};X.prototype.start=function(){this.enabled=!0;this.h||(this.h=this.s.setTimeout(this.I,this.B),this.L=p())};X.prototype.stop=function(){this.enabled=!1;this.h&&(this.s.clearTimeout(this.h),this.h=null)};var Y=function(a,b,c,d){this.O=a;this.ca=b;this.da=c;this.D=0;this.u=document.getElementById("mtadmas");this.ma=document.getElementById("mtadmaundo");this.M=document.getElementById("mtadmac");this.$=document.getElementById("mtadmback");this.U=document.getElementById("mtadmpc");this.na=document.getElementById("mtadmpundo");this.j=this.Y=this.J=this.P=this.N=null;this.C=!1;this.H=null;this.ga=d?d.getAdsLength():1;(this.i=d)&&this.i.registerWidget(this,0)},Va=function(a){for(var b=document.getElementsByName("surveyOptions"),c=0;c<b.length;c++)w(b[c],a,n(a.ia,a,b[c].value));w(a.ma,a,n(a.X,a,"1"));w(a.na,a,n(a.X,a,"3"));w(a.$,a,a.back);a.i&&(a.i.listenOnObject("mute_option_selected",n(a.W,a)),a.i.forEachAd(n(function(a){a.listenOnObject("multislot_mute_collapse",n(this.fa,this));a.listenOnObject("multislot_mute_collapse_undo",n(this.ea,this))},a)))};Y.prototype.W=function(a){this.N=a.close_button_token;this.P=a.creative_conversion_url;this.J=a.ablation_config;this.Y=a.undo_callback;this.i&&(this.H=this.i.getAd(a.creative_index));if(1===a.type){a=document.getElementsByName("surveyOptions");for(var b=0;b<a.length;b++)a[b].checked=!1;this.u.style.display="block";Z(this);Wa(this)}else 0===a.type&&(this.U.style.display="block",this.u.style.display="none",Z(this),Xa(this,document.getElementById("pub-feedback-closing"),this.J))};var Ya=function(a){a.j&&(a.j.stop(),a.j=null,a.C=!1);za("pub-feedback-closing").style.display="none";za("ad-feedback-closing").style.display="none"};Y.prototype.X=function(a){this.C||(Ya(this),fa(Za(this,"user_feedback_undo",a)),this.Y())};Y.prototype.back=function(){this.C||(Ya(this),this.u.style.display="block",Z(this),Wa(this))};Y.prototype.ia=function(a){this.M.style.display="block";this.u.style.display="none";Wa(this);fa(Za(this,"mute_survey_option",a));a=document.getElementById("ad-feedback-closing");this.De||e>h||(a.j||(a.j=new X(1E3),S(a.j,"tick",n(function(){var a="";h<=d&&0=h&&Ya(this);h–},a))),a.j.dispatchEvent("tick"),0<=h&&a.j.start())},Xa=function(a,b,c){if(c&&window.top&&window.top.postMessage){var d=Ga(c),e=la(d),f="resize-me"==d.msg_type&&"animate"==e.r_str;("ablate-me"==d.msg_type&&e["collapse-after-close"]||f&&!Fa())&&ab(a,b,x(e["secs-to-countdown"],1),x(e.countdown,0),x(e["message-tick"],1),function(){window.top.postMessage(c,"*")})}},$a=function(a,b){ab(a,b,1,a.da,0,n(function(){var a={creative_index:this.H.getIndex(),undo_pingback_url:Za(this,"user_feedback_undo","1")};this.H.fireOnObject("multislot_mute_collapse",a)},a))};Y.prototype.fa=function(){this.D++;this.i.resetAll()};Y.prototype.ea=function(){0//

// <![CDATA[
(function(){var k=this,l=function(a,b){var c=a.split("."),d=k;c[0]in d||!d.execScript||d.execScript("var "+c[0]);for(var f;c.length&&(f=c.shift());)c.length||void 0===b?d=d[f]?d[f]:d[f]={}:d[f]=b},r=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==b&&"undefined"==typeof a.call)return"object";return b},aa=function(a,b,c){return a.call.apply(a.bind,arguments)},ba=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}},t=function(a,b,c){t=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?aa:ba;return t.apply(null,arguments)};var u="undefined"!=typeof DOMTokenList,v=function(a,b){if(u){var c=a.classList;0==c.contains(b)&&c.toggle(b)}else if(c=a.className){for(var c=c.split(/\s+/),d=!1,f=0;fc.indexOf(b))){for(var c=c.split(/\s+/),d=0;d<c.length;++d)c[d]==b&&c.splice(d–,1);a.className=c.join(" ")}};var x=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},y=function(a,b){return ab?1:0};var ca=function(a){var b=window;b.addEventListener?b.addEventListener("load",a,!1):b.attachEvent&&b.attachEvent("onload",a)},z=function(a,b,c,d){c=t(d,c);a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent&&a.attachEvent("on"+b,c)};var A=function(a){var b=arguments.length;if(1==b&&"array"==r(arguments[0]))return A.apply(null,arguments[0]);for(var c={},d=0;dparseFloat(a))?String(b):a}(),K={},L=function(a){if(!K[a]){for(var b=0,c=x(String(J)).split("."),d=x(String(a)).split("."),f=Math.max(c.length,d.length),e=0;0==b&&e<f;e++){var p=c[e]||"",n=d[e]||"",h=RegExp("(\\d*)(\\D*)","g"),g=RegExp("(\\d*)(\\D*)","g");do{var q=h.exec(p)||["","",""],m=g.exec(n)||["","",""];if(0==q[0].length&&0==m[0].length)break;b=y(0==q[1].length?0:parseInt(q[1],10),0==m[1].length?0:parseInt(m[1],10))||y(0==q[2].length,0==m[2].length)||y(q[2],m[2])}while(0==b)}K[a]=0<=b}},ha=k.document,ia=I(),ka=!ha||!G||!ia&&F()?void 0:ia||("CSS1Compat"==ha.compatMode?parseInt(J,10):5);var M;if(!(M=!H&&!G)){var N;if(N=G)N=G&&(F()||9<=ka);M=N}M||H&&L("1.9.1");G&&L("9");var ma=function(a,b,c){var d="mouseenter_custom"==b,f=la(b);return function(e){e||(e=window.event);if(e.type==f){if("mouseenter_custom"==b||"mouseleave_custom"==b){var p;if(p=d?e.relatedTarget||e.fromElement:e.relatedTarget||e.toElement)for(var n=0;n<a.length;n++){var h;h=a[n];var g=p;if(h.contains&&1==g.nodeType)h=h==g||h.contains(g);else if("undefined"!=typeof h.compareDocumentPosition)h=h==g||Boolean(h.compareDocumentPosition(g)&16);else{for(;g&&h!=g;)g=g.parentNode;h=g==h}if(h)return}}c(e)}}},la=function(a){return"mouseenter_custom"==a?"mouseover":"mouseleave_custom"==a?"mouseout":a};var na=function(){this.s=void 0},P=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if("array"==r(b)){var d=b;b=d.length;c.push("[");for(var f="",e=0;e//

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.