var opIsLive=true;var opLiveUrl="/es/693/c/2/u/uSwitch_live.js";var opQaUrl="/es/693/c/2/u/uSwitch_staging.js";var opCDomain="uswitch.com";var optimost={A:{},C:{},D:document,L:document.location,M:[],Q:{},T:new Date(),U:"",V:"2.7",Enabled:true,ST:"script",SA:{type:"text/javascript"},I:function(){var d=this.L.search;var k=this.D.cookie;if(d.length>3){for(var m=d.substring(1).split("&"),g=0,h=m.length;g<h;g++){var e=m[g].indexOf("=");if(e>0){this.Q[m[g].substring(0,e)]=unescape(m[g].substring(e+1))}}}if(k.length>3){for(var m=k.split(";"),g=0,j=m.length;g<j;g++){var f=m[g].split("=");while(f[0].substring(0,1)==" "){f[0]=f[0].substring(1,f[0].length)}if(f.length==2){this.C[f[0]]=unescape(f[1])}}}},B:function(){var a;this.A={};var b=this;this.A.D_ts=Math.round(b.T.getTime()/1000);this.A.D_tzo=b.T.getTimezoneOffset();this.A.D_loc=b.L.protocol+"//"+b.L.hostname+b.L.pathname;this.A.D_ckl=b.D.cookie.length;this.A.D_ref=b.D.referrer;if(typeof optrial=="object"){for(a in optrial){this.A[a]=optrial[a]}}for(a in this.Q){this.A[a]=this.Q[a]}for(a in this.C){if(a.substring(0,2)=="op"){this.A[a]=this.C[a]}}},S:function(){var b="";for(var a in this.A){if(this.A[a]!=null&&this.A[a]!=""){b+=(b.length>0?"&":(this.U.indexOf("?")>0?"&":"?"))+a+"="+escape(this.A[a])}}return this.U+b},SC:function(b,f,c,a){var g=new Date();g.setTime(g.getTime()+c*1000);this.D.cookie=b+"="+escape(f)+((c==null)?"":("; expires="+g.toGMTString()))+"; path=/"+((a==null)?"":(";domain="+a))},SLD:function(){var a=this.D.domain;var b=a.split(".");var c=b.length;if(c<2){a=null}else{if(!isNaN(b[c-1])&&!isNaN(b[c-2])){a=null}else{a="."+b[c-2]+"."+b[c-1]}}return a},R:function(a,i,g,f){if(this.Enabled){var h=true;if(a<1000){h=(Math.floor(Math.random()*1000)<a);if(i!=null){if(this.C[i]!=null){h=(this.C[i]!="mvt-no")}else{this.SC(i,h?"mvt-yes":"mvt-no",f,g)}}}if(h){var j="<"+this.ST+' src="'+this.S()+'"';for(n in this.SA){j+=(" "+n+'="'+this.SA[n]+'"')}j+="></"+this.ST+">";this.D.write(j)}}},addModule:function(a,b){this.M[a]=b},displayModule:function(a){if(typeof this.M[a]=="function"){this.M[a]()}},hasModules:function(){return count(this.M)>0}};optimost.I();optrial=(typeof optrial=="object")?optrial:new Object;opcounter=(typeof opcounter=="object")?opcounter:new Object;var _opF=function(a){var b=optimost.L.protocol;return b+((b=="http:")?"//by.optimost.com/":"//by.essl.optimost.com/by/")+a};function OpExperiment(b,a){if(typeof b!="string"){this.url=""}else{if(b.match(/trial\//)){b=b.substring(b.indexOf("trial/"));this.url=_opF(b)}else{this.url=""}}if(typeof a=="string"){this.modules=[];this.modules.push(a)}else{if(typeof a=="object"){this.modules=a}}this.ratio=1000;this.cookieName=null;this.domain=null;this.expiry=null;this.hideCSS="";this.showCSS="";this.trialCodeLow=false;this.run=_opRunE;this.attribute=function(){};this.dMs=function(){for(var c=0;c<this.modules.length;c++){optimost.displayModule(this.modules[c])}}}function _opRunE(a){if(this.url!=""){if((!this.trialCodeLow&&(typeof a!="string"||a!="low"))||(this.trialCodeLow&&a=="low")){this.attribute();var b=optimost;b.U=this.url;b.B();b.R(this.ratio,this.cookieName,this.domain,this.expiry)}else{if(this.hideCSS!=""&&(typeof a!="string"||a!="low")){document.write("<style>"+this.hideCSS+"</style>");if(this.showCSS==""){this.showCSS=this.hideCSS.replace(/display(\s+)?\:(\s+)?none/g,"display:block !important").replace(/visibility(\s+)?\:(\s+)?hidden/g,"visibility:visible !important")}}}if(typeof _opEs=="undefined"){window._opEs=[]}if(a!="low"){_opEs.push(this)}}}function OpCounter(a){if(typeof a!="string"){this.url=""}else{if(a.match(/counter\//)){a=a.substring(a.indexOf("counter/"));this.url=_opF(a)}else{this.url=""}}this.attribute=function(){};this.add=function(){if(typeof _opCs=="undefined"){window._opCs=[]}_opCs.push(this)};this.run=function(){this.attribute();if(this.url!=""){var c=optimost;c.U=this.url;var b=optrial;optrial=opcounter;c.B();optrial=b;var d="<"+c.ST+' src="'+c.S()+'"';for(n in c.SA){d+=(" "+n+'="'+c.SA[n]+'"')}d+="></"+c.ST+">";c.D.write(d)}};this.add()}function opGetC(a){if(typeof optimost=="object"){for(n in optimost.C){if(n==a){return optimost.C[n]}}}return null}function opSetC(b,c,a){document.cookie=b+"="+escape(c)+";path=/"+((a==null)?"":(";domain="+a))}function opGetDm(){if(typeof opCDomain=="string"&&document.domain.indexOf(opCDomain)!=-1){return opCDomain}else{return null}}var opTUrl=optimost.L.toString();var opD=((opTUrl.split("//")[0]!="http:")?"https://by.essl":"http://es")+".optimost.com/";opLiveUrl=opD+opLiveUrl.substring(opLiveUrl.indexOf("es/"));opQaUrl=opD+opQaUrl.substring(opQaUrl.indexOf("es/"));var opJsUrl=opQaUrl;if(opIsLive==true){opJsUrl=opLiveUrl}if(opTUrl.indexOf("opglobalqa=true")!=-1){opSetC("opglobalqa","true",opGetDm());var opGQa=true}else{if(opTUrl.indexOf("opglobalqa=false")!=-1){opSetC("opglobalqa","false",opGetDm());var opGQa=false}else{var opGQa=(opGetC("opglobalqa")=="true")}}if(opGQa){opJsUrl=opQaUrl}document.write('<script type="text/javascript" src="'+opJsUrl+'"></script>\n');
