





optimizelyCode = function(){
var DATA={"public_suffixes":{"cnn.com":["edition.cnn.com"]},"log_host":"log3","api_host":"api","variations":{"146861507":{"code":"$(\".cnn_hpinthenewshdr > span\").replaceWith(\"<span>Trending Topics</span>\");","name":"Trending Topics"},"147304463":{"code":"$(\".cnn_hpinthenews\").css({\"background-image\":\"none\", \"background-color\":\"#f1ee3b\"});","name":"Variation #3"},"147342517":{"code":"$(\"#intl-menu > li:eq(13)\").css({\"position\":\"relative\", \"left\":1, \"top\":-13, \"width\":57, \"height\":45});\n$(\"#nav-travel\").css({\"position\":\"relative\", \"left\":0, \"top\":0, \"width\":52, \"height\":48});\n$(\"#nav-travel\").css({\"width\":66, \"height\":47});\n$(\"#intl-menu > li:eq(14)\").css({\"position\":\"relative\", \"left\":929, \"top\":-48});\n$(\"#hdr-search > form\").css({\"position\":\"relative\", \"left\":0, \"top\":-6});\n$(\"#nav-travel\").css({\"background-image\":\"none\"});\n$(\"#nav-travel\").css({\"background-color\":\"#910305\"});\n$(\"#intl-menu > li:eq(13)\").css({\"top\":-13});","name":"Tall Tab Dark"},"146880536":{"name":"Original"},"147126746":{"name":"Original"},"147184731":{"code":"$(\"#intl-menu > li:eq(13)\").css({\"position\":\"relative\", \"left\":1, \"top\":-13, \"width\":57, \"height\":45});\n$(\"#nav-travel\").css({\"position\":\"relative\", \"left\":0, \"top\":0, \"width\":52, \"height\":48});\n$(\"#nav-travel\").css({\"width\":66, \"height\":47});\n$(\"#intl-menu > li:eq(14)\").css({\"position\":\"relative\", \"left\":929, \"top\":-48});\n$(\"#hdr-search > form\").css({\"position\":\"relative\", \"left\":0, \"top\":-6});","name":"Tall Travel Tab"},"146701980":{"code":"$(\".cnn_hpinthenewshdr > span\").replaceWith(\"<span>Hot Topics</span>\");","name":"Hot Topics"},"146927103":{"code":"$(\".cnn_hpinthenewshdr > span\").replaceWith(\"<span>Trending Now</span>\");","name":"Trending Now"}},"experiments":{"147145603":{"name":"29Nov12 International Performance Test for AMPT - Nav Bar Travel Tab","variation_ids":["147126746","147184731","147342517","147304463"],"enabled_variation_ids":["147126746","147184731","147342517","147304463"],"conditions":[{"type":"url","values":[{"value":"http://edition.cnn.com","match":"simple"}]},{"only_first_time":true,"type":"visitor","value":"all"}]},"146812670":{"name":"28Nov12 International Performance for AMPT - Editor's Choice Changes","ignore":80,"variation_ids":["146880536","146701980","146927103","146861507"],"enabled_variation_ids":["146880536","146701980","146927103","146861507"],"conditions":[{"type":"url","values":[{"value":"http://edition.cnn.com/","match":"simple"}]},{"only_first_time":true,"type":"visitor","value":"all"}]}},"click_goals":[{"event_name":"editor's_choice_bar_clicks","experiments":[146812670],"selector":".cnn_hpinthenews"}],"version":"www-master-946.363499318396569354","admin_account_id":125375509,"www_host":"www.optimizely.com","project_id":128727546,"revision":39};

var optly={nativity:{}};optly.nativity.getNativeGetElementsByClassName=function(){var a=document.getElementsByClassName;if(!optly.nativity.isNativeFunction(a))var a=(window.optimizely||{}).getElementsByClassName,b=(window.optly||{}).getElementsByClassName,a=optly.nativity.isNativeFunction(a)?a:optly.nativity.isNativeFunction(b)?b:null;return a};optly.nativity.isNativeFunction=function(a){return a&&-1!==String(a).indexOf("[native code]")};optly.Cleanse={};optly.Cleanse.each=function(a,b,c){var f=!!Object.prototype.__lookupGetter__,d;for(d in a)if(a.hasOwnProperty(d)){var g=f?a.__lookupGetter__(d):null;try{b.call(c,d,!g?a[d]:null,g)}catch(e){}}};
optly.Cleanse.finish=function(){if(optly.Cleanse.running){optly.Cleanse.running=!1;optly.Cleanse.each(optly.Cleanse.types,function(a,b){Object.prototype.__defineGetter__&&optly.Cleanse.each(optly.Cleanse.getters[a],function(c,e){b.prototype.__defineGetter__(c,e);optly.Cleanse.log("restored getter",a,c)});optly.Cleanse.each(optly.Cleanse.properties[a],function(c,e){b.prototype[c]=e;optly.Cleanse.log("restored property",a,c)})});optly.Cleanse.unfixGetElementsByClassName();optly.Cleanse.log("finish");
var a=window.console;if((-1!==window.location.hash.indexOf("optimizely_log=true")||-1!==window.location.search.indexOf("optimizely_log=true"))&&a&&a.log)for(var b=optly.Cleanse.logs,c=0;c<b.length;c++)a.log(b[c])}};optly.Cleanse.log=function(a,b,c){b?(b=b.replace(/_/g,""),optly.Cleanse.logs.push("Optimizely / Info / Cleanse / "+a+": "+b+"."+c)):optly.Cleanse.logs.push("Optimizely / Info / Cleanse / "+a)};
optly.Cleanse.start=function(){var a=window.location.hostname;if(!(-1!==a.indexOf("optimizely")&&-1===a.indexOf("edit")&&-1===a.indexOf("preview")&&-1===a.indexOf("test"))){optly.Cleanse.log("start");optly.Cleanse.running=!0;for(var b in optly.Cleanse.types)optly.Cleanse.types[b]||delete optly.Cleanse.types[b];optly.Cleanse.each(optly.Cleanse.types,function(a,b){optly.Cleanse.getters[a]={};optly.Cleanse.properties[a]={};optly.Cleanse.each(b.prototype,function(d,g,e){e?(optly.Cleanse.getters[a][d]=
e,optly.Cleanse.log("cleansed getter",a,d)):(optly.Cleanse.properties[a][d]=g,optly.Cleanse.log("cleansed property",a,d));delete b.prototype[d]})});optly.Cleanse.fixGetElementsByClassName();optly.Cleanse.hasRunStart=!0}};
optly.Cleanse.fixGetElementsByClassName=function(){if(!optly.nativity.isNativeFunction(document.getElementsByClassName)){var a=optly.nativity.getNativeGetElementsByClassName();a?(optly.Cleanse.getElementsByClassName=document.getElementsByClassName,document.getElementsByClassName=a):optly.Cleanse.log("Error: native HTMLElement.prototype.getElementsByClassName missing")}};
optly.Cleanse.unfixGetElementsByClassName=function(){optly.Cleanse.getElementsByClassName&&(document.getElementsByClassName=optly.Cleanse.getElementsByClassName,optly.Cleanse.getElementsByClassName=null)};optly.Cleanse.getElementsByClassName=null;optly.Cleanse.getters={};optly.Cleanse.logs=[];optly.Cleanse.properties={};optly.Cleanse.types={HTMLElement_:window.HTMLElement,Object_:Object};window.optly=window.optly||{};window.optly.Cleanse={finish:optly.Cleanse.finish,logs:optly.Cleanse.logs,start:optly.Cleanse.start};optly.domain={};optly.domain.check=function(a){for(var b=0,c=optly.domain.BLACK_LIST.length;b<c;b++){var f=optly.domain.BLACK_LIST[b];if(f.test(a))return!1}b=0;for(c=optly.domain.WHITE_LIST.length;b<c;b++)if(f=optly.domain.WHITE_LIST[b],f.test(a))return!0;return!1};optly.domain.BLACK_LIST=[/(edit|preview)(-local)?\.optimizely\.com/,/optimizelyedit\.appspot\.com/];optly.domain.WHITE_LIST=[/^(https:)?\/\/www\.local\//,/^(https:)?\/\/([A-Za-z0-9\-]+\.)?optimizely\.com\//,/^(https:)?\/\/([A-Za-z0-9\-]+\.)?optimizely(-hrd)?\.appspot\.com\//];
optly.Cleanse.start();
var $=jQuery;
var h=void 0,i=!0,j=null,k=!1;function aa(a,b,c){switch(c){case "exact":return a=ba(a),a=ca(a,"optimizely_log"),a=ca(a,"optimizely_verbose"),a===ba(b);case "regex":try{return Boolean(a.match(b))}catch(d){return k}case "simple":return a=ba(da(a)),b=ba(da(b)),a===b;case "substring":return a=ba(a,i),b=ba(b,i),-1!==a.indexOf(b);default:return k}}function da(a){var b=a.indexOf("?");-1!==b&&(a=a.substring(0,b));b=a.indexOf("#");-1!==b&&(a=a.substring(0,b));return a}
function ba(a,b){var a=a.toLowerCase().replace(/[/&?]+$/,""),c=ea.slice(0);b||(c=c.concat(fa));for(var d=c.length,e=0;e<d;e++)a=a.replace(RegExp("^"+c[e]),"");return a}function ca(a,b){return a.replace("&"+b+"=true","").replace("?"+b+"=true&","?").replace("?"+b+"=true","")}var ea=["https?://edit.local/","https?://.*?.?optimizelyedit.appspot.com/","https?://preview.optimizely.com/","https?://"],fa=["www."];function ga(a){a=a||{};if(ha){a&&a.sVariable&&(ia=a.sVariable);var b=ia||("undefined"!==typeof window.s?window.s:j);if(b)if(ja){if((a=ka)&&b)try{m("Integrator","Fixing SiteCatalyst referrer to %s",a),b.referrer=String(a)}catch(c){m("Integrator","Error setting SiteCatalyst referrer: %s",c)}m("Integrator","Tracking with SiteCatalyst");o(la(),function(a){var c=p(a),a=q(c,a,100,100,25,i),f=a.key+": "+a.value,a=[],g=r(c,"site_catalyst_evar")||j,c=r(c,"site_catalyst_prop")||j;g!==j&&a.push("eVar"+g);c!==
j&&a.push("prop"+c);o(a,function(a){m("Integrator","Setting SiteCatalyst %s='%s'",a,f);b[a]=f})})}else ma=i;else u("Integrator","Error with SiteCatalyst integration: 's' variable not defined")}}function na(a,b){return a.replace(/[^a-zA-Z0-9\.\~\!\*\(\)\']+/g,"_").substring(0,b)}
function q(a,b,c,d,e,f){a=oa+(r(a,"name")||"");b=pa(b);1<b.length?(b=$.map(b,function(a){return a.substr(0,e-1)}),b=b.join("~")):b=b[0];f?(a=na(a,c),b=na(b.replace("#",""),d)):(a=a.substring(0,c),b=b.substring(0,d));return{key:a,value:b}}
function qa(){if(ha){var a=v("optimizelyReferrer");a&&0<a.length&&(ka=a,y("optimizelyReferrer",""));if(a=ka)try{m("Integrator","Fixing _gaq._setReferrerOverride with %s",a),_gaq.push(["_setReferrerOverride",a])}catch(b){m("Integrator","Error setting Google Analytics referrer: %s",b)}o(la(),function(a){var b=p(a);if(r(b,"chartbeat")){var c=oa;oa="";var g=q(b,a,10,10,5,k);oa=c;c=ra(a);ta=g.key+": "+String(c);try{m("Integrator","Calling _cbq.push");_cbq.push(["_optlyx",ta])}catch(l){u("Integrator","Error sending Chartbeat data for "+
z(b))}}if(r(b,"crazyegg")){g=q(b,a,100,100,15,k);try{m("Integrator","Defining CE_SNAPSHOT_NAME");window.CE_SNAPSHOT_NAME=g.key+": "+g.value}catch(t){u("Integrator","Error sending CrazyEgg data for "+z(b))}}if(ua(b)){g=ua(b);c=0;A(g)&&(c=g.slot||c);var g=c,c=ua(b),n="";A(c)&&(n=c.tracker||n);c=n;n=q(b,a,28,24,5,i);try{var w="";c!==""&&(w=c+".");m("Integrator","Calling _gaq._setCustomVar for slot %d",g);_gaq.push([w+"_setCustomVar",g,n.key,n.value,2])}catch(P){u("Integrator","Error sending Google Analytics data for "+
z(b))}}if(B("kissmetrics")){g=q(b,a,100,100,15,i);c={};c[g.key]=g.value;try{m("Integrator","Calling _kmq.set");_kmq.push(["set",c])}catch(L){u("Integrator","Error sending KISSmetrics data for "+z(b))}}if(r(b,"mixpanel")){a=q(b,a,100,100,15,k);g={};g[a.key]=a.value;try{m("Integrator","Calling mixpanel.push");mixpanel.push(["register",g])}catch(sa){u("Integrator","Error sending Mixpanel data for "+z(b))}}});a=v("optimizelyChartbeat")||"";try{if(a&&ta!=a&&(m("Integrator","Calling _cbq.push for referral"),
_cbq.push(["_optlyr",a])),ta!=a)m("Integrator","Set new Chartbeat referral cookie."),y("optimizelyChartbeat",ta)}catch(c){u("Integrator","Error sending Chartbeat referral for "+a)}ja=i;ma&&(ga(),ma=k)}}function la(){var a=va.concat(C),b=[];o(wa(),function(c){var d=p(c),e=k;if(xa(d)){var f=ya(c);D(a,d)&&(m("Integrator",'"%s" relevant because experiment active',f),e=i);za(Aa(c))&&(m("Integrator",'"%s" relevant because it redirects',f),e=i);e&&b.push(c)}});return b}
var ma=k,ta="",ja=k,oa="Optimizely ",ia=j,ka=j;function Ba(a,b,c){Ca=i;E&&c!==i&&F.e(document.location.href);a=String(a);b=String(b);if("-1"===b){G[a]&&delete G[a];Da[a]&&delete Da[a];for(c=0;c<H.length;c++)H[c].i===a&&H.splice(c,1);Ea()}else{c=j;if(256>=Number(b)){var c=String,d=Fa(a),e=j;try{e=d[b]}catch(f){}c=c(e)}else c=String(b);if((b=I(a))&&0<b.length){a:{b=I(a);for(d=0;d<b.length;d++)if(e=Ga(b[d]),D(e,c)){b=b[d];break a}b=""}Ha[a]=Ha[a]||{};Ha[a][b]=c;u("Distributor","Preferring variation partial "+c+" of section "+b+" of experiment "+
a);a=Ja(a);1===a.length&&Ka(a[0],"api.bucketUser",k,i)}else Ka(c,"api.bucketUser",k,i)}La()}function Ma(a){a&&"tracking"===a||(E=k);ha=k}
function Na(){Oa={};K={};Pa={};o(wa(),function(a){var b=p(a);Oa[b]=a.split("_");K[b]=ra(a);Pa[b]=ya(a)});M={experiments:{},sections:{},segments:{},state:{},variations:{},visitor:{}};for(var a=Qa(),b=0;b<a.length;b++){var c=a[b],d={};d.code=r(c,"code")||"";d.name=r(c,"name")||"";d.manual=Ra(c);d.section_ids=I(c);d.variation_ids=Fa(c);M.experiments[c]=d}a=Sa();for(b=0;b<a.length;b++)c=a[b],M.segments[c]={name:Ta(c,"name")||""};a=Ua(B("sections")||{});for(b=0;b<a.length;b++)c=a[b],d={},d.name=B("sections",
c,"name")||"",d.variation_ids=Ga(c),M.sections[c]=d;a=Ua(B("variations")||{});for(b=0;b<a.length;b++)c=a[b],d={},d.name=ya(c),d.code=Aa(c),M.variations[c]=d;a={};b=Va();a.browser={ff:"Firefox",ie:"Internet Explorer",safari:"Safari",gc:"Google Chrome",opera:"Opera"}[b]||"";b=Wa();a.location={city:b.city,continent:b.continent,country:b.country,region:b.region};a.params={};c=Xa();c.reverse();b=0;for(d=c.length;b<d;b++)a.params[c[b][0]]=decodeURIComponent(c[b][1]);a.referrer=String(document.referrer);
a.segments=Ya();a.mobile="unknown"!==Za();a.os=$a();M.visitor=a;b={};b.activeExperiments=va||[];b.variationIdsMap=Oa;b.variationMap=K;b.variationNamesMap=Pa;M.state=b;ab(window.optimizely,{activeExperiments:va,allExperiments:bb(),all_experiments:bb(),data:M,variationIdsMap:Oa,variationMap:K,variationNamesMap:Pa,variation_map:K})}var M={},cb=[],Oa={},K={},Pa={};function db(a,b){var b=b===i,c,d=j;o(H,function(b){a==b.i&&(d=b.id)});if((c=d)&&0<c.length)return u("Distributor","Not distributing experiment "+a+" (already in plan)"),i;if(b||a in G)return u("Distributor","Not distributing experiment "+a+" (is ignored)"),N[a]="it is ignored",k;c=r(a,"enabled_variation_ids")||[];if(0===c.length)return u("Distributor","Permanently ignoring experiment "+a+" (no enabled variations)"),N[a]="it has no enabled variations",eb(a),k;var e=r(a,"ignore")||0;if(e>Math.floor(100*
Math.random()))return u("Distributor","Permanently ignoring experiment "+a+"("+e+"% likelihood)"),eb(a),k;e=c;Ha[a]!==h&&(u("Distributor","Taking into account bucketUser variations for experiment "+a),e=Ja(a));var f;f=e;var g=[],l=r(a,"variation_weights")||{};o(f,function(a){g.push(l[a])});f=fb(g);e=e[f];u("Distributor","Picked variation "+e+" [index "+f+" of "+c.length+"]");Ka(e,"distributor",k);return i}
function Ja(a){var b=[];o(r(a,"enabled_variation_ids")||[],function(c){var d=i,e;for(e in Ha[a])-1===c.indexOf(Ha[a][e])&&(d=k);d&&b.push(c)});return b}var Ha={};function Xa(){var a=window.location.search||"";0===a.indexOf("?")&&(a=a.substring(1));for(var a=a.split("&"),b=[],c=0;c<a.length;c++){var d="",e="",f=a[c].split("=");0<f.length&&(d=f[0]);1<f.length&&(e=f[1]);b.push([d,e])}return b}function gb(a){for(var b=Xa(),c=0;c<b.length;c++){var d=b[c];if(d[0]===a)return d[1]}return j};function hb(a){return a&&-1!==String(a).indexOf("[native code]")};function za(a){return-1!==a.indexOf("_optimizely_redirect")}function ib(a){return-1!==a.indexOf("_optimizely_redirect_no_cookie")}function jb(a){if(ib(a||""))return i;a=v("optimizelyRedirect");return a===h||a===j||""===a};function kb(){var a=navigator.userAgent,b=lb([{id:"gc",substring:"Chrome",g:"Chrome"},{id:"safari",N:navigator.vendor,substring:"Apple",g:"Version"},{id:"ff",substring:"Firefox",g:"Firefox"},{id:"opera",prop:window.opera,g:"Opera"},{id:"ie",substring:"MSIE",g:"MSIE"}],a),c=lb([{id:"android",substring:"Android"},{id:"blackberry",substring:"BlackBerry"},{id:"ipad",substring:"iPad"},{id:"iphone",substring:"iPhone"},{id:"ipod",substring:"iPod"},{id:"windows phone",substring:"Windows Phone"}],a),d=j,e=
b.g;e&&(d=mb(a,e)||mb(navigator.appVersion,e));return{z:b.id||"unknown",A:d||"unknown",L:c.id||"unknown"}}function mb(a,b){var c=a.indexOf(b),d=j;-1!==c&&(c+=b.length+1,d=parseFloat(a.substring(c)));return d}function lb(a,b){return o(a,function(a){var d=a.N||b;if(d&&-1!==d.indexOf(a.substring)||a.prop)return a})||{}};var nb=0,E=i,ob=j,O="",pb=k,Q=k,qb=k,Ca=k,rb=k,ha=i;var sb,tb;
(function(){function a(a){d.lastIndex=0;return d.test(a)?'"'+a.replace(d,function(a){var b=g[a];return"string"===typeof b?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function b(c,d){var g,P,L,sa,Ia=e,J,x=d[c];"function"===typeof l&&(x=l.call(d,c,x));switch(typeof x){case "string":return a(x);case "number":return isFinite(x)?String(x):"null";case "boolean":case "null":return String(x);case "object":if(!x)return"null";e+=f;J=[];if("[object Array]"===Object.prototype.toString.apply(x)){sa=x.length;
for(g=0;g<sa;g+=1)J[g]=b(g,x)||"null";L=0===J.length?"[]":e?"[\n"+e+J.join(",\n"+e)+"\n"+Ia+"]":"["+J.join(",")+"]";e=Ia;return L}if(l&&"object"===typeof l){sa=l.length;for(g=0;g<sa;g+=1)"string"===typeof l[g]&&(P=l[g],(L=b(P,x))&&J.push(a(P)+(e?": ":":")+L))}else for(P in x)Object.prototype.hasOwnProperty.call(x,P)&&(L=b(P,x))&&J.push(a(P)+(e?": ":":")+L);L=0===J.length?"{}":e?"{\n"+e+J.join(",\n"+e)+"\n"+Ia+"}":"{"+J.join(",")+"}";e=Ia;return L}}var c=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
d=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,e,f,g={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},l;sb=function(a,c,d){var g;f=e="";if("number"===typeof d)for(g=0;g<d;g+=1)f+=" ";else"string"===typeof d&&(f=d);if((l=c)&&"function"!==typeof c&&("object"!==typeof c||"number"!==typeof c.length))throw Error("JSON.stringify");return b("",{"":a})};tb=function(a,b){function d(a,c){var e,f,g=a[c];
if(g&&"object"===typeof g)for(e in g)Object.prototype.hasOwnProperty.call(g,e)&&(f=d(g,e),f!==h?g[e]=f:delete g[e]);return b.call(a,c,g)}var e,a=String(a);c.lastIndex=0;c.test(a)&&(a=a.replace(c,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return e=eval("("+a+")"),"function"===
typeof b?d({"":e},""):e;throw new SyntaxError("JSON.parse");}})();var F={v:function(a,b){var c={},c=b&&ub(b)?{revenue:Number(b)}:b;F.e(a,"custom",c)},e:function(a,b,c){c=c||{};vb(a,c);ha&&(F.l.push({name:a,type:b,options:c}),F.u?(F.q(),u("Tracker","Tracking event '"+a+"'")):u("Tracker","Queued tracking event '"+a+"'"))},D:function(){$("html").one("mousedown",wb(F.e,"engagement"))},F:function(a){return function(){F.M(a)}},m:function(){var a=v("optimizelyPendingLogEvents")||"[]",b=[];try{b=tb(a)}catch(c){}if(R(b))for(var a=0,d=b.length;a<d;a++){var e=b[a];if("string"!==
typeof e){b=[];break}else try{tb(e);b=[];break}catch(f){}}else b=[];return b},J:function(a,b){F.H(a)?F.K(a,b):F.o(a,b)},o:function(a,b){var c=xb();u("Tracker","Making "+c.length+" log image request(s).");for(var d=0;d<c.length;d++){var e=c[d],f=new Image;f.onload=b;yb("log_host");e=e+"/event?"+a;e=F.O(e);f.src=e;F.images.push(f)}},K:function(a,b){var c=xb();u("Tracker","Making "+c.length+" log XHR request(s).");for(var d=0;d<c.length;d++){var e=c[d]+"/event?"+a;try{var f=new XMLHttpRequest;if("withCredentials"in
f)f.onerror=b,f.onload=b,f.open("GET",e,i),f.withCredentials=i,f.send();else throw"CORS with credentials is not supported.";}catch(g){u("Tracker","Found that XHR with credentials is not supported in this browser."),F.o(a,b)}}},H:function(a){return-1!==a.indexOf(F.k)},O:function(a){return a.replace("&"+F.k,"")},p:function(a){var b=(a=a===i||"true"===a)?"true":"false";a?(y("optimizelyOptOut",b,31536E4),y("optimizelyBuckets",b,31536E4),alert("You have successfully opted out of Optimizely for this domain.")):
(y("optimizelyOptOut",b,31536E4),alert("You are NOT opted out of Optimizely for this domain."))},M:function(a){for(var b=F.m(),c=0,d=b.length;c<d;c++)if(b[c]===a){b.splice(c,1);break}F.t(b);u("Tracker","Removed a pending log event from the pending events cookie.")},l:[],u:k,q:function(){var a=["a="+zb(),"d="+Ab(),"y="+!!B("ip_anonymization")];Ca&&a.push("override=true");o(wa(),function(b){var c=p(b);a.push("x"+c+"="+b)});a.push("f="+Bb().join(","));o(Ya(),function(b,c){a.push("s"+b+"="+c)});var b=
a.join("&"),c=[];o(F.l,function(a){var b=[];a.name&&b.push("n="+encodeURIComponent(a.name));a.options.revenue&&b.push("v="+encodeURIComponent(a.options.revenue));a.options.anonymous!==i&&b.push("u="+Cb());F.R(a)&&b.push(F.k);b.push("t="+ +new Date);c.push(b.join("&"));if("custom"===a.type)try{F.Q(a.name)}catch(d){}});var d=c.concat(F.m());F.t(d);d=F.r?c:d;F.r=i;for(var e=0,f=d.length;e<f;e++){var g=d[e];F.J(b+"&"+g,F.F(g))}F.l=[];F.u=i},t:function(a){for(var b=sb(a);1536<b.length;)a=a.slice(0,-1),
b=sb(a);y("optimizelyPendingLogEvents",b,15)},Q:function(a){var b=Cb(),c=v("optimizelyCustomEvents")||"{}";try{c=tb(c)}catch(d){c={}}var e=c[b]||(c[b]=[]),e=R(e)?e:[];-1!==$.inArray(a,e)&&e.splice($.inArray(a,e),1);e.push(a);10<e.length&&e.shift();c[b]=e;var a=0,e=j,f=0,g;for(g in c)c.hasOwnProperty(g)&&(a++,c[g].length>f&&g!==b&&(e=g,f=c[g].length));10<a&&e!==j&&delete c[e];y("optimizelyCustomEvents",sb(c),31536E4)},R:function(a){return"https:"===document.location.protocol&&"ie"===Va()&&10<=Db()?
k:"pageview"===a.type},images:[],r:k,k:"wxhr=true"};function Eb(a,b){var c;c=$.trim(b);var d="";if(window.optimizely&&window.optimizely.data)if(d=c.match(Fb))d=window.optimizely.data.visitor.params[d[1]],d===h&&(d="");else{for(var d=c.split("."),e=window.optimizely,f=0,g=d.length;f<g;f++)if(e=e[d[f]],e===h||e===j){e="";break}d=""+e}u("Template",c+" evaluated to: '"+d+"'");return d}var Gb=/\{\{ *optimizely\.([^\n\r{}<>]*)\}\}/g,Fb=/^data\.visitor\.params\.(.*)$/;function vb(a,b){var b=b||{},c=window.optimizelyPreview;c||(c=[],window.optimizelyPreview=c);Hb||(c.push(["addEvent",window.location.href,{type:"url"}]),Hb=i);c.push(["addEvent",a,b])}function Ib(){u("Preview","Will load preview script");var a=["https://",B("www_host"),"/js/preview-",B("version"),".js?account_id=",Ab()].join("");u("Preview","Now loading preview script "+a);Jb(a)}var Hb=k,Kb=k,Lb=[],N={};var Mb=window.OPTIMIZELY_TEST_MODULE,Nb="com local net org xxx edu es gov biz info fr nl ca de kr it me ly tv mx cn jp il in iq".split(" "),Ob=/\/\* _optimizely_variation_url( +include="([^"]*)")?( +exclude="([^"]*)")?( +match_type="([^"]*)")?( +include_match_types="([^"]*)")?( +exclude_match_types="([^"]*)")?( +id="([^"]*)")? +\*\//;function v(a){var b=a+"=",c=[];o((document.cookie||"").split(/\s*;\s*/),function(a){0===a.indexOf(b)&&c.push(decodeURIComponent(a.substr(b.length)))});var d=c.length;1<d&&m("Cookie","Values found for %s: %s",a,d);return 0===d?j:c[0]}
function y(a,b,c){var d=S||Pb,e=document.location.hostname;!S&&B("remote_public_suffix")&&Qb.push({w:c,name:a,value:b});S&&S!==Pb&&(Rb(a,e),Rb(a,Pb));Sb(a,b,d,c);var f=v(a);f===b?m("Cookie","Successful set %s=%s on %s",a,b,d):(m("Cookie","Setting %s on %s apparently failed (%s != %s)",a,d,f,b),m("Cookie","Setting %s on %s",a,e),Sb(a,b,e,c),f=v(a),f===b&&(m("Cookie","Setting %s on %s worked; saving as new public suffix",a,e),Pb=e))}
function Rb(a,b){m("Cookie","Deleting %s on %s",a,b);document.cookie=[a,"=; domain=.",b,"; path=/; expires=",(new Date(0)).toUTCString()].join("")}function Tb(a){S=a.public_suffix;m("Cookie","Public suffix request returned: %s",S);y("optimizelyPublicSuffix",S,31536E4);if(S!==Pb)for(;0<Qb.length;)a=Qb.shift(),y(a.name,a.value,a.w);Qb=[]}
function Ub(a){var a=yb("api_host")+"/iapi/public_suffix?host="+encodeURIComponent(a),b="callback"+Math.random().toString().replace("0.",""),c=document,d=c.head||c.getElementsByTagName("head")[0]||c.documentElement,c=c.createElement("script");window.optimizely[b]=Tb;c.async="async";c.src=[a,-1!==a.indexOf("?")?"&":"?","callback=optimizely.",b].join("");d.insertBefore(c,d.firstChild)}
function Sb(a,b,c,d){a=[a,"=",encodeURIComponent(b),"; domain=.",c,"; path=/"];d&&a.push("; expires=",(new Date(+new Date+1E3*d)).toUTCString());document.cookie=a.join("")}var Pb="",S="",Qb=[];var T;function Va(){function a(){return T.z}T=T||kb();Va=a;return a()}function Vb(){var a="";try{a=navigator.userLanguage||window.navigator.language,a=a.toLowerCase()}catch(b){a=""}return a}function Db(){function a(){return T.A}T=T||kb();Db=a;return a()}function Wb(a){if(!a)return"";try{return a.match(/:\/\/(?:www[0-9]?\.)?(.[^/:]+)/)[1]}catch(b){return""}}function Xb(){return v("optimizelyReferrer")||document.referrer||""}
function Cb(){var a=v("optimizelyEndUserId");a||(a="oeu"+ +new Date+"r"+Math.random(),y("optimizelyEndUserId",a,31536E4));return a}
function Wa(){var a={};try{a=window.optimizely.data.visitor.location}catch(b){}var c="",d="",e="",f="";try{d=a.country.toUpperCase()||""}catch(g){d=""}try{e=a.region.toUpperCase()||""}catch(l){e=""}"N/A"===e&&(e="");try{f=a.city.toUpperCase()||""}catch(t){f=""}"N/A"===f&&(f="");try{c=a.continent.toUpperCase()||""}catch(n){c=""}"N/A"===c&&(c="");return{city:f,continent:c,country:d,region:e}}function Za(){function a(){return T.L}T=T||kb();Za=a;return a()}
function $a(){var a=navigator.appVersion||"",b="";-1!==a.indexOf("Win")&&(b="Windows");-1!==a.indexOf("Mac")&&(b="Mac");-1!==a.indexOf("Linux")&&(b="Linux");return b}
function Yb(){var a=Xb();if(gb("utm_source")||gb("gclid"))return"campaign";for(var b=["google\\.\\w{2,3}(\\.\\w{2,3})?/(search|url)","bing\\.\\w{2,3}(\\.\\w{2,3})?/(search|url)","yahoo\\.\\w{2,3}(\\.\\w{2,3})?/search","baidu\\.\\w{2,3}(\\.\\w{2,3})?/s?"],c=0;c<b.length;c++)if(a.match(b[c]))return"search";return a&&Wb(a)!==Wb(window.location.href)?"referral":"direct"}var Zb=h;function $b(a,b){if(E){R(a)?ac(a):(a=[],ac(b));a=a.concat(C);C=[];for(var c=0;c<a.length;c++)D(va,a[c])||va.push(a[c]);c=a;c===h?c=[]:ub(c)&&(c=[c]);for(var d=wa(c),e=[],f=[],g=[],l=[],t=bc(cc(),function(a){return a.experiments?k:dc(a.url_conditions||[])}),n=0,w=t.length;n<w;n++)e.push({h:t[n].event_name,f:t[n].selector,type:"event '"+t[n].event_name+"' (click goal)",j:i});o(c,function(a){var b={},c=r(a,"events")||{};o(c,function(a,c){b[a]=[c]});for(var c=bc(cc(),function(b){return D(b.experiments||
[],a)}),d=0;d<c.length;d++){var n=c[d];b[n.selector]||(b[n.selector]=[]);b[n.selector].push(n.event_name)}o(b,function(b,c){o(c,function(c){e.push({h:c,f:b,type:"event '"+c+"' (experiment "+a+")",j:i})})});c=r(a,"css")||"";d=r(a,"code")||"";c&&g.push({code:'$("body").append("<style>'+c.replace(/([\f\n\r\t\\'"])/g,"\\$1")+'</style>");',f:"body",type:"global css (experiment "+a+")",j:i});d&&ec(d,f,l)});o(d,function(a){for(var a=Aa(a),a=a.split("\n"),b=[],c=i,d=0,e=a.length;d<e;d++){var g=$.trim(a[d]);
if(g==="/* _optimizely_variation_url_end */")c=i;else if(g!==""){var n=Ob.exec(g);if(n&&n.length===13){var w=n[2]?n[2].split(" "):[],g=n[4]?n[4].split(" "):[],t=n[6]?n[6]:"substring",md=n[8]?n[8].split(" "):[],n=n[10]?n[10].split(" "):[];if(w.length>0){c=fc(w,md,t);c=dc(c)}if(c&&g.length>0){c=fc(g,n,t);c=!dc(c)}}else c&&b.push(g)}}a=b.join("\n");ec(a,f,l)});c=[];c.push.apply(c,f);c.push.apply(c,g);c.push.apply(c,l);c.push.apply(c,e);gc.push.apply(gc,c);hc()}}
function hc(){var a=k;ic=j;for(u("Evaluator",jc+" times waited");!a&&0<gc.length;){u("Evaluator",gc.length+" steps remaining");var b=gc.shift(),c=b,a=k;if(c.S&&!kc)u("Evaluator","Document not ready yet"),a=i;else if(c.j&&!kc&&(c=c.f))for(var c=R(c)?c:[c],d=0;d<c.length;d++){var e=c[d];if(!(e===j||e===h||!e.length)&&0===$(e).length)u("Evaluator","'"+e+"' not found"),a=i}a?gc.unshift(b):b.h?(u("Evaluator","Bound event "+b.h+" to selector "+b.f),lc(b.f,b.h)):b.code&&(u("Evaluator","Run code: "+b.code),
mc(b.code))}a?(ic=setTimeout(hc,0===jc?10:50),jc++):u("Evaluator",jc+" total times waited")}
function mc(a){a=a.replace(Gb,Eb);if(za(a))if(u("Evaluator","Redirect detected"),jb(a))u("Evaluator","OK to redirect"),ib(a)||(u("Evaluator","NOT setting a redirect cookie"),y("optimizelyRedirect",window.location.href,5)),y("optimizelyReferrer",document.referrer,5);else{u("Evaluator","NOT OK to redirect");return}eval("var $j = $;");try{eval(a)}catch(b){var c=Q;Q=i;u("Evaluator","Error: "+b.message);u("Evaluator","Code: "+a);Q=c;u("Evaluator","Failed to run code: "+b.message)}}
function lc(a,b){if(!nc[a]||!nc[a][b]){var c="mousedown",d=Za();if("iphone"===d||"ipad"===d||"ipod"===d)c="touchstart";$(a).bind(c,function(){F.e.call(F,b,"custom")});nc[a]||(nc[a]={});nc[a][b]=c}}function ac(a){a||(a=Qa());for(var b=0;b<a.length;b++){var c=a[b],d=N[c];d?(vb("Not activating "+z(c)+" because "+d+".",{type:"explanation"}),delete N[c]):vb("Activating "+z(c)+".",{type:"activation",experimentId:c})}}var nc={},va=[],C=C||[],oc=0,kc=k,gc=[],ic=j,jc=0;
$(function(){kc=i;ic!==j&&(u("Evaluator","Document is ready"),clearTimeout(ic),0<oc?setTimeout(hc,oc):hc())});function Ab(){return B("admin_account_id")}function cc(){if(!pc){var a=B("click_goals")||[];pc=[];for(var b=0,c=a.length;b<c;b++)for(var d=a[b],e=d.selector.split(","),f=0,g=e.length;f<g;f++){var l=e[f];l&&(l={event_name:d.event_name,selector:l},d.experiments!==h?l.experiments=d.experiments:d.url_conditions!==h&&(l.url_conditions=d.url_conditions),pc.push(l))}}return pc}function Bb(){var a=bc(Qa(),xa);Bb=function(){return a};return a}function bb(){return B("experiments")||{}}
function Qa(){return Ua(B("experiments")||{})}function Ra(a){return r(a,"manual")||k}function z(a){return'experiment "'+(r(a,"name")||"")+'" ('+a+")"}function I(a){return r(a,"section_ids")||[]}function Fa(a){return r(a,"variation_ids")||[]}function xb(){var a=[yb("log_host")];B("use_staging_log")&&a.push(yb("staging_log_host"));return a}function zb(){return B("project_id")}function Sa(){return Ua(B("segments")||{})}
function qc(a){var b={},c=B("public_suffixes")||{};o(c,function(a,c){o(c,function(c){b[c]=a})});qc=function(a){return b[a]||""};return qc.call(j,a)}function Ga(a){return B("sections",a,"variation_ids")||[]}function Aa(a){var b=[];o(a.split("_"),function(a){(a=B("variations",a,"code"))&&b.push(a)});return b.join("\n")}
function p(a){var b={};o(Qa(),function(a){o(I(a),function(d){o(Ga(d),function(d){b[d]=a})});o(Fa(a),function(d){b[d]=a})});p=function(a){return b[a.split("_")[0]]||""};return p.call(j,a)}function ra(a){var b=p(a),c=I(b);if(0===c.length){c=Fa(b);for(b=0;b<c.length;b++)if(c[b]===a)return b}else{for(var a=a.split("_"),b=[],d=0;d<c.length;d++)for(var e=Ga(c[d]),f=0;f<e.length;f++)e[f]===a[d]&&b.push(f);if(b!==[])return b}return-1}function ya(a){var b;return pa(a).join(b||", ")}
function pa(a){var b=[];o(a.split("_"),function(a){b.push(B("variations",a,"name")||"Unnamed")});return b}function xa(a){return!!r(a,"enabled")}function r(a,b){return B("experiments",a,b)}function ua(a){return r(a,"google_analytics")}function B(a){var b=DATA;if(o(arguments,function(a){a=b[a];if(A(a))b=a;else return j})!==j)return b}function Ta(a,b){return B("segments",a,b)}
function yb(a){var a=B(a),b=document.location.protocol;"chrome-extension:"===b&&(b="http:");return b+"//"+a+".optimizely.com"}var pc=j;function rc(a,b){var c=b.manualMode===i,d=b.objectType?b.objectType:"experiment",e="experiment"===d,f=b.defaultFail===i;u("Condition","Testing "+d+" "+a);var g=e&&xa(a),l=e&&Ra(a),t;a:switch(d){case "experiment":t=r(a,"conditions")||[];break a;case "segment":t=Ta(a,"add_condition")||[];break a;default:t=[]}if(e&&!g&&ob!==a)return u("Condition","Failed for "+d+" "+a+" (paused)"),N[a]="it is paused",k;if(e&&!c&&l)return u("Condition"," Failed for "+d+" "+a+" (manual activation mode)"),N[a]="it is set to use manual activation mode",
k;var n="experiment"===(d||"experiment"),w=i;f&&(w=k);o(t,function(b){var c=b.type;if(n&&b.only_first_time&&sc(a))u("Condition",c+" condition passed because it only gets checked when bucketing",i);else{var d=!b.not,e=(0,tc[c])(b),b=e!==d,c="the visitor "+(e?"passed":"failed")+" a "+c+" targeting condition  when it needed to "+(d?"pass":"fail");u("Condition","Found that "+c,!b);if(b)return w=k,N[a]=c,k}});return!w?(u("Condition","Failed for "+d+" "+a+" (condition failed)"),k):i}
function dc(a){for(var b=window.location.href,c=0;c<a.values.length;c++){var d=a.values[c],e=d.value,d=d.match,f=aa(b,e,d);u("Condition","Testing URL "+b+" against  "+e+" ("+d+")",i);if(f)return i}return k}
var tc={browser:function(a){var b=Va(),c=Db(),d=k,e=Za();o(a.values,function(a){"unknown"!==e?(d="mobile"===a||a===e,u("Condition",e,i)):0===a.indexOf(b)&&(a=a.substr(b.length),d=""===a||a<=c&&c<Number(a)+1);if(d)return j});return d},code:function(a){a=a.value;if(a===h)return i;try{return Boolean(eval(a))}catch(b){return k}},cookies:function(a){for(var b=k,c=a.names||[],a=a.values||[],d=0;d<c.length;d++){var e=v(c[d]);if(b=A(a[d])&&""!==uc(a[d])?b||a[d]===e:b||e!==j&&e!==h)return i}return k},event:function(a){var b=
v("optimizelyCustomEvents")||"{}";try{b=tb(b)}catch(c){b={}}var d=b[Cb()]||[];R(d)||(d=[]);var e=k;o(a.values,function(a){if(-1!==$.inArray(a,d))return e=i});return e},language:function(a){var b=Vb(),c=k;o(a.values,function(a){if(c="any"===a||0===b.indexOf(a))return j});return c},location:function(a){for(var b=Wa(),c=0;c<a.values.length;c++){var d=a.values[c].split("|"),e=$.trim(d[0]),f=$.trim(d[1]),g=$.trim(d[2]),l=$.trim(d[3]);switch(d.length){case 1:if(b.country===e)return i;break;case 2:if(b.region===
f&&b.country===e)return i;break;case 3:if(b.city===g&&(b.region===f||""===f)&&b.country===e)return i;break;case 4:if(b.continent===l)return i}}return k},query:function(a){if(0===a.values.length)return i;var b=k,c=Xa();o(a.values,function(a){for(var e=a.key,a=a.value||"",f=0;f<c.length;f++){var g=c[f],l=g[0],g=g[1];if(""!==e&&e===l&&(""===a||a===g))return b=i}});return b},referrer:function(a){for(var b=document.referrer,c=0;c<a.values.length;c++){var d=a.values[c],e=d.value,d=d.match,f=aa(b,e,d);u("Condition",
"Testing referrer "+b+" against  "+e+" ("+d+")",i);if(f)return i}return k},segment:function(a){var b=k,c=[];o(vc,function(a,b){b&&c.push(a)});o(a.values,function(a){D(c,a)&&(b=i)});return b},url:dc,visitor:function(a){var b=Zb?"returning":"new";switch(a.value){case "new":if("returning"===b)return k;break;case "returning":return"returning"===b}return i}};function wc(){var a={};o(vc,function(b,c){c&&(a[b]=c)});y("optimizelySegments",sb(a),31536E4)}function xc(a,b){!b&&""!==b&&(b=i);vc[a]=b;yc()}function yc(){o(zc,function(a){a()})}
function Ac(){switch(Ta(U,"segment_value_type")||""){case "browser":return V(Va()||"unknown");case "campaign":return V(gb("utm_campaign")||"none");case "country":return V(Wa().country||"unknown");case "language":return V(Vb()||"unknown");case "mobile":return V("unknown"!==Za());case "os":return V($a()||"unknown");case "referrer":var a;a=Xb();a=Wb(a);return V(a||"none");case "source_type":return V(Yb())}return j}function Ya(){var a={};o(vc,function(b,c){c&&(a[String(b)]=c)});return a}
function Bc(a){vc[a]=k;yc()}function V(a){var b;b=b||Cc;return String(a).toLowerCase().substring(0,b)}var zc=[],vc={},Cc=20;function u(a,b,c){Dc.push({C:new Date,B:a,message:b,n:c||k});Ec&&Fc()}function Fc(){Q&&(o(Dc,function(a){if(!a.I&&(!a.n||a.n===qb)){var b=+a.C;m(a.B,a.message+(" [time "+(Gc?b-Gc:0)+" +"+(Hc?b-Hc:0)+"]"));Hc=b;Gc||(Gc=b);a.I=i}}),Ec=i)}var Hc=j,Gc=j,Dc=[],Ec=k;function D(a,b){for(var c=0;c<a.length;c++)if(b==a[c])return i;return k}function fb(a){var b=a.length;if(0===b)return j;if(1===b)return 0;for(var c=0,d=0;d<b;d++)c+=a[d];c*=Math.random();for(d=0;d<b;d++){if(c<a[d])return d;c-=a[d]}return Math.floor(Math.random()*b)}function wb(a,b){var c=Ic(arguments,1);return function(){var b=Ic(arguments);b.unshift.apply(b,c);return a.apply(this,b)}}
function o(a,b){var c=j;if(R(a))for(var d=a.length,e=0;e<d&&!(c=b.call(h,a[e],e),A(c));++e);else for(d in a)if(Object.prototype.hasOwnProperty.call(a,d)&&(c=b.call(h,d,a[d]),A(c)))break;return c}function ab(a,b){o(b,function(b,d){a[b]=d})}function bc(a,b){for(var c=[],d=0,e=a.length;d<e;d++){var f=a[d];b(f)&&c.push(f)}return c}function Jc(a,b){return o(b,function(b){if(b===a)return i})||k}function R(a){return a&&"object"===typeof a&&a.length&&"number"===typeof a.length}
function A(a){return"undefined"!==typeof a}function ub(a){return("number"===typeof a||"string"===typeof a)&&Number(a)==a}function Ua(a){Ua=Object.T||function(a){var c=[];o(a,function(a){c.push(a)});return c};return Ua.call(j,a)}function Jb(a){var b=document.head||document.getElementsByTagName("head")[0]||document.documentElement,c=document.createElement("script");c.src=a;c.type="text/javascript";b.appendChild(c)}
function m(a,b,c){var d=window.console;if(Q&&d&&d.log){var e=Ic(arguments,1);e[0]="Optimizely / "+a+" / "+b;Function.prototype.apply.call(d.log,d,e)}}function Ic(a,b){return Array.prototype.slice.call(a,b||0,a.length)}function uc(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};function Mc(a){return function(b){if("object"===typeof b&&Nc()){var c=j,d;for(d in b)b.hasOwnProperty(d)&&(c=a.call(this,d,b[d]));return c}return a.apply(this,arguments)}}function Nc(){for(var a in{})return i;return k};function Oc(){for(var a=O,b=0,c=Pc.length;b<c;b++){var d=Pc[b];if(d.test(a))return k}b=0;for(c=Qc.length;b<c;b++)if(d=Qc[b],d.test(a))return i;return k}var Pc=[/(edit|preview)(-local)?\.optimizely\.com/,/optimizelyedit\.appspot\.com/],Qc=[/^(https:)?\/\/www\.local\//,/^(https:)?\/\/([A-Za-z0-9\-]+\.)?optimizely\.com\//,/^(https:)?\/\/([A-Za-z0-9\-]+\.)?optimizely(-hrd)?\.appspot\.com\//];function Ka(a,b,c,d){var c=c===i,d=d===i,e=k,f=p(a);if(f&&(d||!sc(f))){e=i;if(d&&sc(f))for(d=0;d<H.length;d++)H[d].i===f&&H.splice(d,1);H.push({i:f,id:a,source:b});c&&(C=C||[],C.push(f));Da[f]=i;Ea();u("Plan","Added experiment "+f+" and variation id "+a+" to the plan, source is "+b,i)}return e}function sc(a){return a in G||a in Da}function wa(a){var b=[],c=!A(a),a=a||[];o(H,function(d){(c||D(a,d.i))&&b.push(d.id)});return b}function eb(a){var b;if(b===i||!sc(a))G[a]=i,Ea()}
function La(){var a={};o(Rc,function(b,c){a[b]=c});o(H,function(b){var c=p(b.id);a[c]=b.id});o(G,function(b){a[b]="0"});y("optimizelyBuckets",sb(a),31536E4)}function Ea(){o(Sc,function(a){a()})}
function ec(a,b,c){if(-1!==a.indexOf("_optimizely_redirect"))b.push({code:a,type:"code forced (redirect)"});else{for(var a=a.split("\n"),d=k,e=k,f=[],g=[];0<a.length;){var l=uc(a.shift()),t=0<g.length;if(l)if(Boolean(l.match(/_optimizely_evaluate\s{0,9}=\s{0,9}force/i)))e=i;else if(Boolean(l.match(/_optimizely_evaluate\s{0,9}=\s{0,9}safe/i))||Boolean(l.match(/_optimizely_evaluate\s{0,9}=\s{0,9}end_force/i)))e=k;else if(Boolean(l.match(/_optimizely_evaluate\s{0,9}=\s{0,9}editor_only/i)))d=i;else if(Boolean(l.match(/_optimizely_evaluate\s{0,9}=\s{0,9}end_editor_only/i)))d=
k;else if(!d)if(e)f.push(l);else{if(!t){var n=Tc.exec(l),w=[];n?(w.push(n[1]),(n=Uc.exec(l))&&4<n.length&&w.push(n[4]),c.push({code:l,f:w,type:"safe jquery",j:i})):t=i}t&&g.push(l)}}0<f.length&&b.push({code:f.join("\n"),type:"forced evaluation"});0<g.length&&c.push({code:g.join("\n"),type:"safe non-jquery",S:i})}}function fc(a,b,c){for(var d={values:[]},e=0,f=a.length;e<f;e++)d.values.push({value:a[e],match:b[e]||c});return d}
var Sc=[],Rc={},G={},Tc=/^\$j?\(['"](.+?)['"]\)\..+;\s*$/,Uc=/^\$j?\(['"](.+?)['"]\)\.detach\(\)\.(appendTo|insertAfter|insertBefore|prependTo)\(['"](.+?)['"]\);\s*$/,Da={},H=[];if(!Mb){var X=$;X.fn.attr=Mc(X.fn.attr);X.fn.css=Mc(X.fn.css);X.fn.extend=Mc(X.fn.extend);var Vc=X.each;X.each=function(a,b,c){if(!(a.length===h||X.isFunction(a))||!Nc())Vc.apply(this,arguments);else if(c)for(var d in a){if(a.hasOwnProperty(d)&&b.apply(a[d],c)===k)break}else for(d in a)if(a.hasOwnProperty(d)&&!b.call(a[d],d,a[d])===k)break;return a};var Wc=X.fn.G,Xc=function(a,b,c){return new Wc(a,b,c)},Yc,Zc=document.getElementsByClassName;if(!hb(Zc))var $c=(window.optimizely||{}).getElementsByClassName,
ad=(window.optly||{}).getElementsByClassName,Zc=hb($c)?$c:hb(ad)?ad:j;Yc=Zc;X.fn.G=function(a,b,c){var d=Xc,e=document.getElementsByClassName;!hb(e)&&Yc&&(d=function(a,b,c){document.getElementsByClassName=Yc;a=Xc(a,b,c);document.getElementsByClassName=e;return a});if(!("string"===typeof a&&b&&"object"===X.type(b)&&Nc()))return d(a,b,c);a=d(a,h,c);a.attr(b);return a}}u("Main","Started, revision "+B("revision"));
for(var bd=window.location.search,cd,dd=/optimizely_([^=]+)=([^&]*)/g,Y={};cd=dd.exec(bd);)Y[cd[1]]=decodeURIComponent(cd[2]);var ed=/x(\d+)/,fd=k;o(Y,function(a,b){var c=ed.exec(a);if(c&&(fd=i,ob=c=c[1],"-1"!==b)){var d,e=b.split("_");d=I(c);var f=[];if(d.length===e.length)o(d,function(a,b){var c=e[b];if(c=Ga(a)[c])f.push(c);else return f=[],j});else if(1===e.length){d=Fa(c);var g=e[0],l=d[g];!l&&D(d,g)&&(l=g);l&&f.push(l)}d=f.join("_");g=!Ra(c);Ka(d,"query",g);Lb.push(c)}});
("true"===Y.opt_out||"false"===Y.opt_out)&&F.p("true"===Y.opt_out);var E="true"!==Y.disable&&"true"!==Y.opt_out&&"true"!==v("optimizelyOptOut"),O=Y.load_script,pb="true"===Y.preview,Q="true"===Y.log,qb="true"===Y.verbose,gd="true"===Y.force_tracking,fd=fd||pb,ha=!fd||gd;"false"===Y.client&&(E=k,O="js/"+zb()+".js");O&&(Oc()||(O=""));var hd=document.location.hostname,Z=hd.split("."),id=hd,jd=Z[Z.length-1];
2<Z.length&&"appspot"===Z[Z.length-2]&&"com"===jd?id=Z[Z.length-3]+".appspot.com":1<Z.length&&Jc(jd,Nb)&&(id=Z[Z.length-2]+"."+jd);Pb=id;m("Cookie","Guessed public suffix: %s",Pb);S=qc(hd);m("Cookie","Public suffix (from data): %s",S);S||(S=v("optimizelyPublicSuffix")||"",m("Cookie","Public suffix (from cookie): %s",S));!S&&B("remote_public_suffix")&&(m("Cookie","Making request for public suffix on DOM ready"),$(wb(Ub,hd)));var kd=v("optimizelyBuckets"),Zb=kd!==h&&kd!==j,ld;
a:{for(var nd=["googlebot","yahoo! slurp","bingbot","msnbot"],od=navigator.userAgent.toLowerCase(),pd=0;pd<nd.length;pd++)if(-1!==od.indexOf(nd[pd])){ld=i;break a}ld=k}ld&&(ha=k);var qd=v("optimizelyBuckets");
if(qd){try{qd=tb(qd)}catch(rd){qd={}}var sd={};o(qd,function(a,b){var b=String(b),c=p(b);if(I(c).length>1&&b.indexOf("_")===-1){sd[c]=sd[c]||{};sd[c][a]=b}else b!=="0"?Ka(b,"cookie",k)||(Rc[a]=b):eb(a)});o(sd,function(a,b){var c;a:{c=[];for(var d=I(a),e=0;e<d.length;e++){var f=b[d[e]];if(f==="0"){c="";break a}c.push(f)}c=c.join("_")}c.length>0?Ka(c,"cookie",k):eb(a)})}zc.push(Na);Sc.push(Na);
var td={$:$,activeExperiments:va||[],allExperiments:bb(),all_experiments:bb(),allVariations:B("variations")||{},data:M,getElementsByClassName:document.getElementsByClassName,revision:B("revision"),variationIdsMap:Oa,variation_map:K,variationMap:K,variationNamesMap:Pa},ud={},vd=wb(function(a,b){var c=[],d=b;if(R(b)){c=Ic(b,1);d=b[0]}var e=a[d];if(e){u("API",'Called function "'+d+'"');d!=="acknowledgePreviewMode"&&vb(d,{type:"api"});e.apply(j,c)}else u("API",'Error for unknown function "'+d+'"');Fc()},
ud);
ab(ud,{acknowledgePreviewMode:function(){u("Preview","Preview acknowledgement received");Kb=i},activate:function(a,b,c){if(!E)return k;var d=typeof b==="number"||typeof b==="string"?String(b):j,e=b===i||b&&b.force===i||c&&c.force===i,f=typeof b==="object"&&b.skip===i||typeof c==="object"&&c.skip===i,b=typeof b==="object"&&b.skipPageview===i||typeof c==="object"&&c.skipPageview===i;if(d)try{Ba(a,d,i)}catch(g){u("API","Error while activating experiment "+a+" for variation "+d+" -- proceeding without bucketing user.")}var l=j,
t=[],n=[];ub(a)?t.push(a):o(Qa(),function(a){Ra(a)&&t.push(a)});o(t,function(a){if(e||rc(a,{manualMode:i,objectType:"experiment"}))(l=db(a,f))&&n.push(a)});$b(n,t);La();qa();E&&!b&&F.e(document.location.href)},activateGeoDelayedExperiments:function(){if(!E)return k;var a=j,b=cb,c=[];o(b,function(b){if(rc(b,{manualMode:k,objectType:"experiment"}))(a=db(b))&&c.push(b)});$b(c,b);La();qa();E&&!rb&&F.e(document.location.href);cb=[];window.optimizelyGeo={}},activateSiteCatalyst:ga,addToSegment:xc,bucketUser:Ba,
bucketVisitor:Ba,clickTaleRecord:function(){m("Integrator","Tracking with ClickTale.");typeof window.ClickTaleField=="function"?o(la(),function(a){var b=p(a),c=q(b,a,100,100,15,k),c=c.key+": "+c.value+" (x"+b+"="+a+")";m("Integrator","Setting ClickTale - %s",c);window.ClickTaleField(b,a);window.ClickTaleEvent(c)}):m("Integrator","ClickTaleField() not defined.")},clickTalePlayback:function(){if(window.ClickTaleContext)if(window.ClickTaleContext.getAggregationContextAsync)try{window.ClickTaleContext.getAggregationContextAsync("1",
function(a){for(var b in a.PageEvents){var e=a.PageEvents[b][2].match(/x[0-9]+=[0-9_]+/g);m("Integrator","Playback ClickTale Integration - %s",e);for(b=0;b<e.length;b++){m("Integrator","Playback ClickTale Integration - %s",e[b]);for(var f=e[b].split("=")[0].substr(1),g=e[b].split("=")[1].split("_"),l=0;l<g.length;l++)window.optimizely.push(["activate",f,g[l],{force:i}])}}})}catch(a){m("Integrator","Playback ClickTale Aggregation Integration failed.")}else try{window.ClickTaleContext.getRecordingContextAsync("1.1",
function(a){m("Integrator","Playback ClickTale getRecordingContextAsync callback");for(var b in a.fields){m("Integrator","Playback ClickTale Integration - %s=%s",b,a.fields[b]);window.optimizely.push(["activate",b,a.fields[b],{force:i}])}})}catch(b){m("Integrator","Playback ClickTale Recording Integration failed.")}else m("Integrator","ClickTaleContext not defined.")},delayDomReadyEval:function(a){oc=a},delayPageviewTracking:function(a){if(!ub(a))return k;nb=Number(a)},disable:Ma,log:function(){Q=
i},getAccountId:Ab,getProjectId:zb,integrationPrefix:function(a){oa=a},optOut:F.p,preview:function(){Kb||Ib()},push:vd,removeFromAllSegments:function(){var a=Sa();o(a,function(a){Bc(a)})},removeFromSegment:Bc,sc_activate:ga,sc_svar:function(a){ia=a},skipPageTracking:function(){rb=i},timeout:Ma,trackEvent:F.v,verbose:function(){qb=Q=i}});ab(td,ud);var wd=window.optimizely;R(wd)&&o(wd,function(a){vd(a)});window.optimizely=td;u("Info","Is enabled: "+E);u("Info","Script to load: "+(O||"none"));
u("Info","Browser type: "+Va());u("Info","Browser version: "+Db());var xd=Za();"unknown"!==xd&&u("Info","Mobile browser type: "+xd);u("Info","New vs returning: "+(Zb?"returning":"new"));u("Info","Source type: "+Yb());u("Info","User ID: "+Cb());O&&Jb(O);
if(E){u("Segmenter","Loading segments cookie.");var yd=v("optimizelySegments");if(yd){try{yd=tb(yd)}catch(zd){yd={}}o(yd,function(a,b){u("Segmenter","Segments cookie contains segment id: "+a);vc[a]=b})}u("Segmenter","Evaluating all segments.");for(var Ad=Sa(),Bd=0;Bd<Ad.length;Bd++){var U=Ad[Bd];u("Segmenter","Evaluating segment "+U);if(Ta(U,"is_api_only"))u("Segmenter","Not doing anything since segment "+U+" is api only.");else{u("Segmenter","Testing whether to add to segment "+U);var Cd=rc(U,{objectType:"segment"}),
Dd=U,Ed=N[Dd];Ed?(vb("Not adding visitor to segment "+(Ta(Dd,"name")||"")+" because "+Ed+".",{type:"explanation"}),delete N[Dd]):vb("Segment add condition matches, addingto segment "+(Ta(Dd,"name")||""),{type:"explanation"});if(Cd){var Fd=Ac();Fd===j&&(Fd=i);xc(U,Fd)}}}zc.push(wc);yc();o(Qa(),function(a){if(!Jc(a,C)){var b=k;if(r(a,"uses_geotargeting"))try{var c=window.optimizely.data.visitor.location;if(Ua(c)>0&&(c.continent!==""||c.country!==""||c.region!==""||c.city!==""))b=i}catch(d){}else b=
i;if(b){if(rc(a,{objectType:"experiment"})){u("Distributor","Going to distribute "+z(a));b=db(a);c=k;if(Lb.length>0&&!D(Lb,a)){u("Distributor","Not going to evaluate because of preview mode, for "+z(a));c=i;N[a]="it is not being previewed"}if(b&&!c){C=C||[];C.push(a)}}}else cb.push(a)}});La();F.D();rb||(0<nb?setTimeout(function(){F.e(document.location.href,"pageview")},nb):F.e(document.location.href,"pageview"));F.q();qa()}
Q&&(o(G,function(a){var b=r(a,"name")||"";u("Plan","Ignore experiment '"+b+"' ("+a+")")}),o(H,function(a){var b=p(a.id),c=ya(a.id);u("Plan",z(b)+' in variation "'+c+'" ('+a.id+")")}));E&&($b(),u("API","Finalizing API."),Na(),Fc());pb&&Ib();setTimeout(function(){window.optimizelyCode={}},0);setTimeout(function(){try{window.optimizely.activateGeoDelayedExperiments=h}catch(a){}},2E3);u("Main","End of main");
optly.Cleanse.finish();
};
optimizelyCode();
