







(function(){



geolocation = {};
geolocation.requestGeo=function(c){geolocation.cdn3Requested=+new Date;var b=document.head||document.getElementsByTagName("head")[0]||document.documentElement,a=document.createElement("script");a.type="text/javascript";a.async=!0;a.src=c;b.insertBefore(a,b.firstChild)};

geolocation.requestGeo("//cdn3.optimizely.com/js/geo2.js");


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,d){var h=!!Object.prototype.__lookupGetter__,e=!!Object.prototype.__lookupSetter__,c;for(c in a)if(a.hasOwnProperty(c)){var f=h?a.__lookupGetter__(c):null,g=e?a.__lookupSetter__(c):null;try{b.call(d,c,!f?a[c]:null,f,g)}catch(i){}}};
optly.Cleanse.finish=function(){if(optly.Cleanse.running){optly.Cleanse.running=!1;optly.Cleanse.each(optly.Cleanse.types,function(a,d){Object.prototype.__defineGetter__&&optly.Cleanse.each(optly.Cleanse.getters[a],function(c,b){d.prototype.__defineGetter__(c,b);optly.Cleanse.log("restored getter",a,c)});Object.prototype.__defineSetter__&&optly.Cleanse.each(optly.Cleanse.setters[a],function(c,b){d.prototype.__defineSetter__(c,b);optly.Cleanse.log("restored setter",a,c)});optly.Cleanse.each(optly.Cleanse.properties[a],
function(b,f){d.prototype[b]=f;optly.Cleanse.log("restored property",a,b)})});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,d=0;d<b.length;d++)a.log(b[d])}};
optly.Cleanse.log=function(a,b,d){b?(b=b.replace(/_/g,""),optly.Cleanse.logs.push("Optimizely / Info / Cleanse / "+a+": "+b+"."+d)):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")))if(optly.Cleanse.running)optly.Cleanse.log("already running so didn't start");else{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.setters[a]={};optly.Cleanse.each(b.prototype,function(e,c,f,g){optly.nativity.isNativeFunction(c)||optly.nativity.isNativeFunction(f)||optly.nativity.isNativeFunction(g)?optly.Cleanse.log("ignore native code",a,e):(f?(optly.Cleanse.getters[a][e]=f,optly.Cleanse.log("cleansed getter",a,e)):(optly.Cleanse.properties[a][e]=c,optly.Cleanse.log("cleansed property",a,e)),g&&(optly.Cleanse.setters[a][e]=g,optly.Cleanse.log("cleansed setter",a,e)),delete b.prototype[e])})});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.setters={};optly.Cleanse.types={Object_:Object};window.optly=window.optly||{};window.optly.Cleanse={finish:optly.Cleanse.finish,logs:optly.Cleanse.logs,start:optly.Cleanse.start};
optly.Cleanse.start();
var $=function(r,m){function Za(a,b,d){if(d===m&&1===a.nodeType)if(d="data-"+b.replace(Zb,"-$1").toLowerCase(),d=a.getAttribute(d),"string"===typeof d){try{d="true"===d?!0:"false"===d?!1:"null"===d?null:!c.isNaN(d)?parseFloat(d):$b.test(d)?c.parseJSON(d):d}catch(e){}c.data(a,b,d)}else d=m;return d}function Ca(a){for(var b in a)if("toJSON"!==b)return!1;return!0}function $a(a,b,d){var e=b+"defer",f=b+"queue",g=b+"mark",h=c.data(a,e,m,!0);h&&(("queue"===d||!c.data(a,f,m,!0))&&("mark"===d||!c.data(a,
g,m,!0)))&&setTimeout(function(){!c.data(a,f,m,!0)&&!c.data(a,g,m,!0)&&(c.removeData(a,e,!0),h.resolve())},0)}function B(){return!1}function ea(){return!0}function ab(a,b,d){var e=c.extend({},d[0]);e.type=a;e.originalEvent={};e.liveFired=m;c.event.handle.call(b,e);e.isDefaultPrevented()&&d[0].preventDefault()}function ac(a){var b,d,e,f,g,h,i,j,v,m,l,k=[];f=[];g=c._data(this,"events");if(!(a.liveFired===this||!g||!g.live||a.target.disabled||a.button&&"click"===a.type)){a.namespace&&(l=RegExp("(^|\\.)"+
a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)"));a.liveFired=this;var n=g.live.slice(0);for(i=0;i<n.length;i++)g=n[i],g.origType.replace(Da,"")===a.type?f.push(g.selector):n.splice(i--,1);f=c(a.target).closest(f,a.currentTarget);j=0;for(v=f.length;j<v;j++){m=f[j];for(i=0;i<n.length;i++)if(g=n[i],m.selector===g.selector&&(!l||l.test(g.namespace))&&!m.elem.disabled){h=m.elem;e=null;if("mouseenter"===g.preType||"mouseleave"===g.preType)a.type=g.preType,(e=c(a.relatedTarget).closest(g.selector)[0])&&
c.contains(h,e)&&(e=h);(!e||e!==h)&&k.push({elem:h,handleObj:g,level:m.level})}}j=0;for(v=k.length;j<v;j++){f=k[j];if(d&&f.level>d)break;a.currentTarget=f.elem;a.data=f.handleObj.data;a.handleObj=f.handleObj;l=f.handleObj.origHandler.apply(f.elem,arguments);if(!1===l||a.isPropagationStopped())if(d=f.level,!1===l&&(b=!1),a.isImmediatePropagationStopped())break}return b}}function ga(a,b){return(a&&"*"!==a?a+".":"")+b.replace(bc,"`").replace(cc,"&")}function bb(a,b,d){b=b||0;if(c.isFunction(b))return c.grep(a,
function(a,e){return!!b.call(a,e,a)===d});if(b.nodeType)return c.grep(a,function(a){return a===b===d});if("string"===typeof b){var e=c.grep(a,function(a){return 1===a.nodeType});if(dc.test(b))return c.filter(b,e,!d);b=c.filter(b,e)}return c.grep(a,function(a){return 0<=c.inArray(a,b)===d})}function cb(a,b){if(1===b.nodeType&&c.hasData(a)){var d=c.expando,e=c.data(a),f=c.data(b,e);if(e=e[d]){var g=e.events,f=f[d]=c.extend({},e);if(g){delete f.handle;f.events={};for(var h in g){d=0;for(e=g[h].length;d<
e;d++)c.event.add(b,h+(g[h][d].namespace?".":"")+g[h][d].namespace,g[h][d],g[h][d].data)}}}}}function db(a,b){var d;if(1===b.nodeType){b.clearAttributes&&b.clearAttributes();b.mergeAttributes&&b.mergeAttributes(a);d=b.nodeName.toLowerCase();if("object"===d)b.outerHTML=a.outerHTML;else if("input"===d&&("checkbox"===a.type||"radio"===a.type)){if(a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value)b.value=a.value}else if("option"===d)b.selected=a.defaultSelected;else if("input"===d||
"textarea"===d)b.defaultValue=a.defaultValue;b.removeAttribute(c.expando)}}function ha(a){return"getElementsByTagName"in a?a.getElementsByTagName("*"):"querySelectorAll"in a?a.querySelectorAll("*"):[]}function eb(a){if("checkbox"===a.type||"radio"===a.type)a.defaultChecked=a.checked}function fb(a){c.nodeName(a,"input")?eb(a):"getElementsByTagName"in a&&c.grep(a.getElementsByTagName("input"),eb)}function ec(a,b){b.src?c.ajax({url:b.src,async:!1,dataType:"script"}):c.globalEval((b.text||b.textContent||
b.innerHTML||"").replace(fc,"/*$0*/"));b.parentNode&&b.parentNode.removeChild(b)}function gb(a,b,d){var e="width"===b?a.offsetWidth:a.offsetHeight,f="width"===b?gc:hc;if(0<e)return"border"!==d&&c.each(f,function(){d||(e-=parseFloat(c.css(a,"padding"+this))||0);e="margin"===d?e+(parseFloat(c.css(a,d+this))||0):e-(parseFloat(c.css(a,"border"+this+"Width"))||0)}),e+"px";e=C(a,b,b);if(0>e||null==e)e=a.style[b]||0;e=parseFloat(e)||0;d&&c.each(f,function(){e+=parseFloat(c.css(a,"padding"+this))||0;"padding"!==
d&&(e+=parseFloat(c.css(a,"border"+this+"Width"))||0);"margin"===d&&(e+=parseFloat(c.css(a,d+this))||0)});return e+"px"}function hb(a){return function(b,d){"string"!==typeof b&&(d=b,b="*");if(c.isFunction(d))for(var e=b.toLowerCase().split(ib),f=0,g=e.length,h,i;f<g;f++)h=e[f],(i=/^\+/.test(h))&&(h=h.substr(1)||"*"),h=a[h]=a[h]||[],h[i?"unshift":"push"](d)}}function ia(a,b,d,e,c,g){c=c||b.dataTypes[0];g=g||{};g[c]=!0;for(var c=a[c],h=0,i=c?c.length:0,j=a===Ea,v;h<i&&(j||!v);h++)v=c[h](b,d,e),"string"===
typeof v&&(!j||g[v]?v=m:(b.dataTypes.unshift(v),v=ia(a,b,d,e,v,g)));if((j||!v)&&!g["*"])v=ia(a,b,d,e,"*",g);return v}function jb(a,b){var d,e,f=c.ajaxSettings.flatOptions||{};for(d in b)b[d]!==m&&((f[d]?a:e||(e={}))[d]=b[d]);e&&c.extend(!0,a,e)}function Fa(a,b,d,e){if(c.isArray(b))c.each(b,function(b,f){d||ic.test(a)?e(a,f):Fa(a+"["+("object"===typeof f||c.isArray(f)?b:"")+"]",f,d,e)});else if(!d&&null!=b&&"object"===typeof b)for(var f in b)Fa(a+"["+f+"]",b[f],d,e);else e(a,b)}function kb(){try{return new r.XMLHttpRequest}catch(a){}}
function lb(){setTimeout(jc,0);return ja=c.now()}function jc(){ja=m}function I(a,b){var d={};c.each(mb.concat.apply([],mb.slice(0,b)),function(){d[this]=a});return d}function nb(a){if(!Ga[a]){var b=l.body,d=c("<"+a+">").appendTo(b),e=d.css("display");d.remove();if("none"===e||""===e){z||(z=l.createElement("iframe"),z.frameBorder=z.width=z.height=0);b.appendChild(z);if(!D||!z.createElement)D=(z.contentWindow||z.contentDocument).document,D.write(("CSS1Compat"===l.compatMode?"<!doctype html>":"")+"<html><body>"),
D.close();d=D.createElement(a);D.body.appendChild(d);e=c.css(d,"display");b.removeChild(z)}Ga[a]=e}return Ga[a]}function Ha(a){return c.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}var l=r.document,kc=r.location,c,ob=function(){if(!k.isReady){try{l.documentElement.doScroll("left")}catch(a){setTimeout(ob,1);return}k.ready()}},k=function(a,b){return new k.fn.init(a,b,pb)},lc=r.jQuery,mc=r.$,pb,nc=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,qb=/\S/,rb=/^\s+/,sb=/\s+$/,oc=/\d/,pc=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,
qc=/^[\],:{}\s]*$/,rc=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,sc=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,tc=/(?:^|:|,)(?:\s*\[)+/g,uc=/(webkit)[ \/]([\w.]+)/,vc=/(opera)(?:.*version)?[ \/]([\w.]+)/,wc=/(msie) ([\w.]+)/,xc=/(mozilla)(?:.*? rv:([\w.]+))?/,yc=/-([a-z]|[0-9])/ig,zc=/^-ms-/,Ac=function(a,b){return(b+"").toUpperCase()},Bc=r.navigator.userAgent,ka,la,L,Cc=Object.prototype.toString,Ia=Object.prototype.hasOwnProperty,Ja=Array.prototype.push,Y=Array.prototype.slice,
tb=String.prototype.trim,ub=Array.prototype.indexOf,vb={};k.fn=k.prototype={constructor:k,init:function(a,b,d){var e;if(!a)return this;if(a.nodeType)return this.context=this[0]=a,this.length=1,this;if("body"===a&&!b&&l.body)return this.context=l,this[0]=l.body,this.selector=a,this.length=1,this;if("string"===typeof a){if((e="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&3<=a.length?[null,a,null]:nc.exec(a))&&(e[1]||!b)){if(e[1])return d=(b=b instanceof k?b[0]:b)?b.ownerDocument||b:l,(a=pc.exec(a))?
k.isPlainObject(b)?(a=[l.createElement(a[1])],k.fn.attr.call(a,b,!0)):a=[d.createElement(a[1])]:(a=k.buildFragment([e[1]],[d]),a=(a.cacheable?k.clone(a.fragment):a.fragment).childNodes),k.merge(this,a);if((b=l.getElementById(e[2]))&&b.parentNode){if(b.id!==e[2])return d.find(a);this.length=1;this[0]=b}this.context=l;this.selector=a;return this}return!b||b.jquery?(b||d).find(a):this.constructor(b).find(a)}if(k.isFunction(a))return d.ready(a);a.selector!==m&&(this.selector=a.selector,this.context=a.context);
return k.makeArray(a,this)},selector:"",jquery:"1.6.4",length:0,size:function(){return this.length},toArray:function(){return Y.call(this,0)},get:function(a){return null==a?this.toArray():0>a?this[this.length+a]:this[a]},pushStack:function(a,b,d){var e=this.constructor();k.isArray(a)?Ja.apply(e,a):k.merge(e,a);e.prevObject=this;e.context=this.context;"find"===b?e.selector=this.selector+(this.selector?" ":"")+d:b&&(e.selector=this.selector+"."+b+"("+d+")");return e},each:function(a,b){return k.each(this,
a,b)},ready:function(a){k.bindReady();la.done(a);return this},eq:function(a){return-1===a?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(Y.apply(this,arguments),"slice",Y.call(arguments).join(","))},map:function(a){return this.pushStack(k.map(this,function(b,d){return a.call(b,d,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:Ja,sort:[].sort,splice:[].splice};k.fn.init.prototype=
k.fn;k.extend=k.fn.extend=function(){var a,b,d,e,c,g=arguments[0]||{},h=1,i=arguments.length,j=!1;"boolean"===typeof g&&(j=g,g=arguments[1]||{},h=2);"object"!==typeof g&&!k.isFunction(g)&&(g={});i===h&&(g=this,--h);for(;h<i;h++)if(null!=(a=arguments[h]))for(b in a)d=g[b],e=a[b],g!==e&&(j&&e&&(k.isPlainObject(e)||(c=k.isArray(e)))?(c?(c=!1,d=d&&k.isArray(d)?d:[]):d=d&&k.isPlainObject(d)?d:{},g[b]=k.extend(j,d,e)):e!==m&&(g[b]=e));return g};k.extend({noConflict:function(a){r.$===k&&(r.$=mc);a&&r.jQuery===
k&&(r.jQuery=lc);return k},isReady:!1,readyWait:1,holdReady:function(a){a?k.readyWait++:k.ready(!0)},ready:function(a){if(!0===a&&!--k.readyWait||!0!==a&&!k.isReady){if(!l.body)return setTimeout(k.ready,1);k.isReady=!0;!0!==a&&0<--k.readyWait||(la.resolveWith(l,[k]),k.fn.trigger&&k(l).trigger("ready").unbind("ready"))}},bindReady:function(){if(!la){la=k._Deferred();if("complete"===l.readyState)return setTimeout(k.ready,1);if(l.addEventListener)l.addEventListener("DOMContentLoaded",L,!1),r.addEventListener("load",
k.ready,!1);else if(l.attachEvent){l.attachEvent("onreadystatechange",L);r.attachEvent("onload",k.ready);var a=!1;try{a=null==r.frameElement}catch(b){}l.documentElement.doScroll&&a&&ob()}}},isFunction:function(a){return"function"===k.type(a)},isArray:Array.isArray||function(a){return"array"===k.type(a)},isWindow:function(a){return a&&"object"===typeof a&&"setInterval"in a},isNaN:function(a){return null==a||!oc.test(a)||isNaN(a)},type:function(a){return null==a?String(a):vb[Cc.call(a)]||"object"},
isPlainObject:function(a){if(!a||"object"!==k.type(a)||a.nodeType||k.isWindow(a))return!1;try{if(a.constructor&&!Ia.call(a,"constructor")&&!Ia.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(b){return!1}for(var d in a);return d===m||Ia.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw a;},parseJSON:function(a){if("string"!==typeof a||!a)return null;a=k.trim(a);if(r.JSON&&r.JSON.parse)return r.JSON.parse(a);if(qc.test(a.replace(rc,"@").replace(sc,
"]").replace(tc,"")))return(new Function("return "+a))();k.error("Invalid JSON: "+a)},parseXML:function(a){var b,d;try{r.DOMParser?(d=new DOMParser,b=d.parseFromString(a,"text/xml")):(b=new ActiveXObject("Microsoft.XMLDOM"),b.async="false",b.loadXML(a))}catch(e){b=m}(!b||!b.documentElement||b.getElementsByTagName("parsererror").length)&&k.error("Invalid XML: "+a);return b},noop:function(){},globalEval:function(a){a&&qb.test(a)&&(r.execScript||function(a){r.eval.call(r,a)})(a)},camelCase:function(a){return a.replace(zc,
"ms-").replace(yc,Ac)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,b,d){var e,c=0,g=a.length,h=g===m||k.isFunction(a);if(d)if(h)for(e in a){if(!1===b.apply(a[e],d))break}else for(;c<g&&!1!==b.apply(a[c++],d););else if(h)for(e in a){if(!1===b.call(a[e],e,a[e]))break}else for(;c<g&&!1!==b.call(a[c],c,a[c++]););return a},trim:tb?function(a){return null==a?"":tb.call(a)}:function(a){return null==a?"":a.toString().replace(rb,"").replace(sb,"")},
makeArray:function(a,b){var d=b||[];if(null!=a){var e=k.type(a);null==a.length||"string"===e||"function"===e||"regexp"===e||k.isWindow(a)?Ja.call(d,a):k.merge(d,a)}return d},inArray:function(a,b){if(!b)return-1;if(ub)return ub.call(b,a);for(var d=0,e=b.length;d<e;d++)if(b[d]===a)return d;return-1},merge:function(a,b){var d=a.length,e=0;if("number"===typeof b.length)for(var c=b.length;e<c;e++)a[d++]=b[e];else for(;b[e]!==m;)a[d++]=b[e++];a.length=d;return a},grep:function(a,b,d){for(var c=[],f,d=!!d,
g=0,h=a.length;g<h;g++)f=!!b(a[g],g),d!==f&&c.push(a[g]);return c},map:function(a,b,d){var c,f,g=[],h=0,i=a.length;if(a instanceof k||i!==m&&"number"===typeof i&&(0<i&&a[0]&&a[i-1]||0===i||k.isArray(a)))for(;h<i;h++)c=b(a[h],h,d),null!=c&&(g[g.length]=c);else for(f in a)c=b(a[f],f,d),null!=c&&(g[g.length]=c);return g.concat.apply([],g)},guid:1,proxy:function(a,b){if("string"===typeof b)var d=a[b],b=a,a=d;if(!k.isFunction(a))return m;var c=Y.call(arguments,2),d=function(){return a.apply(b,c.concat(Y.call(arguments)))};
d.guid=a.guid=a.guid||d.guid||k.guid++;return d},access:function(a,b,d,c,f,g){var h=a.length;if("object"===typeof b){for(var i in b)k.access(a,i,b[i],c,f,d);return a}if(d!==m){c=!g&&c&&k.isFunction(d);for(i=0;i<h;i++)f(a[i],b,c?d.call(a[i],i,f(a[i],b)):d,g);return a}return h?f(a[0],b):m},now:function(){return(new Date).getTime()},uaMatch:function(a){a=a.toLowerCase();a=uc.exec(a)||vc.exec(a)||wc.exec(a)||0>a.indexOf("compatible")&&xc.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}},sub:function(){function a(b,
c){return new a.fn.init(b,c)}k.extend(!0,a,this);a.superclass=this;a.fn=a.prototype=this();a.fn.constructor=a;a.sub=this.sub;a.fn.init=function(d,c){c&&(c instanceof k&&!(c instanceof a))&&(c=a(c));return k.fn.init.call(this,d,c,b)};a.fn.init.prototype=a.fn;var b=a(l);return a},browser:{}});k.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){vb["[object "+b+"]"]=b.toLowerCase()});ka=k.uaMatch(Bc);ka.browser&&(k.browser[ka.browser]=!0,k.browser.version=ka.version);
k.browser.webkit&&(k.browser.safari=!0);qb.test("\u00a0")&&(rb=/^[\s\xA0]+/,sb=/[\s\xA0]+$/);pb=k(l);l.addEventListener?L=function(){l.removeEventListener("DOMContentLoaded",L,false);k.ready()}:l.attachEvent&&(L=function(){if(l.readyState==="complete"){l.detachEvent("onreadystatechange",L);k.ready()}});c=k;var Ka="done fail isResolved isRejected promise then always pipe".split(" "),wb=[].slice;c.extend({_Deferred:function(){var a=[],b,d,e,f={done:function(){if(!e){var d=arguments,h,i,j,v,m;if(b){m=
b;b=0}h=0;for(i=d.length;h<i;h++){j=d[h];v=c.type(j);v==="array"?f.done.apply(f,j):v==="function"&&a.push(j)}m&&f.resolveWith(m[0],m[1])}return this},resolveWith:function(c,f){if(!e&&!b&&!d){f=f||[];d=1;try{for(;a[0];)a.shift().apply(c,f)}finally{b=[c,f];d=0}}return this},resolve:function(){f.resolveWith(this,arguments);return this},isResolved:function(){return!(!d&&!b)},cancel:function(){e=1;a=[];return this}};return f},Deferred:function(a){var b=c._Deferred(),d=c._Deferred(),e;c.extend(b,{then:function(a,
d){b.done(a).fail(d);return this},always:function(){return b.done.apply(b,arguments).fail.apply(this,arguments)},fail:d.done,rejectWith:d.resolveWith,reject:d.resolve,isRejected:d.isResolved,pipe:function(a,d){return c.Deferred(function(e){c.each({done:[a,"resolve"],fail:[d,"reject"]},function(a,d){var f=d[0],g=d[1],m;if(c.isFunction(f))b[a](function(){if((m=f.apply(this,arguments))&&c.isFunction(m.promise))m.promise().then(e.resolve,e.reject);else e[g+"With"](this===b?e:this,[m])});else b[a](e[g])})}).promise()},
promise:function(a){if(a==null){if(e)return e;e=a={}}for(var d=Ka.length;d--;)a[Ka[d]]=b[Ka[d]];return a}});b.done(d.cancel).fail(b.cancel);delete b.cancel;a&&a.call(b,b);return b},when:function(a){function b(a){return function(b){d[a]=arguments.length>1?wb.call(arguments,0):b;--g||h.resolveWith(h,wb.call(d,0))}}var d=arguments,e=0,f=d.length,g=f,h=f<=1&&a&&c.isFunction(a.promise)?a:c.Deferred();if(f>1){for(;e<f;e++)d[e]&&c.isFunction(d[e].promise)?d[e].promise().then(b(e),h.reject):--g;g||h.resolveWith(h,
d)}else h!==a&&h.resolveWith(h,f?[a]:[]);return h.promise()}});var Dc=c,La;var o=l.createElement("div"),Ec=l.documentElement,Ma,Q,ma,na,y,R,s,oa,Z,pa,G,qa,aa,ra,S,T;o.setAttribute("className","t");o.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";Ma=o.getElementsByTagName("*");Q=o.getElementsByTagName("a")[0];if(!Ma||!Ma.length||!Q)La={};else{ma=l.createElement("select");na=ma.appendChild(l.createElement("option"));y=o.getElementsByTagName("input")[0];
s={leadingWhitespace:3===o.firstChild.nodeType,tbody:!o.getElementsByTagName("tbody").length,htmlSerialize:!!o.getElementsByTagName("link").length,style:/top/.test(Q.getAttribute("style")),hrefNormalized:"/a"===Q.getAttribute("href"),opacity:/^0.55$/.test(Q.style.opacity),cssFloat:!!Q.style.cssFloat,checkOn:"on"===y.value,optSelected:na.selected,getSetAttribute:"t"!==o.className,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,
reliableMarginRight:!0};y.checked=!0;s.noCloneChecked=y.cloneNode(!0).checked;ma.disabled=!0;s.optDisabled=!na.disabled;try{delete o.test}catch(od){s.deleteExpando=!1}!o.addEventListener&&(o.attachEvent&&o.fireEvent)&&(o.attachEvent("onclick",function(){s.noCloneEvent=false}),o.cloneNode(!0).fireEvent("onclick"));y=l.createElement("input");y.value="t";y.setAttribute("type","radio");s.radioValue="t"===y.value;y.setAttribute("checked","checked");o.appendChild(y);oa=l.createDocumentFragment();oa.appendChild(o.firstChild);
s.checkClone=oa.cloneNode(!0).cloneNode(!0).lastChild.checked;o.innerHTML="";o.style.width=o.style.paddingLeft="1px";Z=l.getElementsByTagName("body")[0];G=l.createElement(Z?"div":"body");qa={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};Z&&c.extend(qa,{position:"absolute",left:"-1000px",top:"-1000px"});for(S in qa)G.style[S]=qa[S];G.appendChild(o);pa=Z||Ec;pa.insertBefore(G,pa.firstChild);s.appendChecked=y.checked;s.boxModel=2===o.offsetWidth;"zoom"in o.style&&(o.style.display=
"inline",o.style.zoom=1,s.inlineBlockNeedsLayout=2===o.offsetWidth,o.style.display="",o.innerHTML="<div style='width:4px;'></div>",s.shrinkWrapBlocks=2!==o.offsetWidth);o.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";aa=o.getElementsByTagName("td");T=0===aa[0].offsetHeight;aa[0].style.display="";aa[1].style.display="none";s.reliableHiddenOffsets=T&&0===aa[0].offsetHeight;o.innerHTML="";l.defaultView&&l.defaultView.getComputedStyle&&(R=l.createElement("div"),
R.style.width="0",R.style.marginRight="0",o.appendChild(R),s.reliableMarginRight=0===(parseInt((l.defaultView.getComputedStyle(R,null)||{marginRight:0}).marginRight,10)||0));G.innerHTML="";pa.removeChild(G);if(o.attachEvent)for(S in{submit:1,change:1,focusin:1})ra="on"+S,T=ra in o,T||(o.setAttribute(ra,"return;"),T="function"===typeof o[ra]),s[S+"Bubbles"]=T;G=oa=ma=na=Z=R=o=y=null;La=s}Dc.support=La;c.boxModel=c.support.boxModel;var $b=/^(?:\{.*\}|\[.*\])$/,Zb=/([A-Z])/g;c.extend({cache:{},uuid:0,
expando:"jQuery"+(c.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?c.cache[a[c.expando]]:a[c.expando];return!!a&&!Ca(a)},data:function(a,b,d,e){if(c.acceptData(a)){var f=c.expando,g=typeof b==="string",h=a.nodeType,i=h?c.cache:a,j=h?a[c.expando]:a[c.expando]&&c.expando;if(j&&(!e||!j||!i[j]||i[j][f])||!(g&&d===m)){if(!j)h?a[c.expando]=j=++c.uuid:j=c.expando;if(!i[j]){i[j]={};if(!h)i[j].toJSON=
c.noop}if(typeof b==="object"||typeof b==="function")e?i[j][f]=c.extend(i[j][f],b):i[j]=c.extend(i[j],b);a=i[j];if(e){a[f]||(a[f]={});a=a[f]}d!==m&&(a[c.camelCase(b)]=d);if(b==="events"&&!a[b])return a[f]&&a[f].events;if(g){d=a[b];d==null&&(d=a[c.camelCase(b)])}else d=a;return d}}},removeData:function(a,b,d){if(c.acceptData(a)){var e,f=c.expando,g=a.nodeType,h=g?c.cache:a,i=g?a[c.expando]:c.expando;if(h[i]){if(b)if(e=d?h[i][f]:h[i]){e[b]||(b=c.camelCase(b));delete e[b];if(!Ca(e))return}if(d){delete h[i][f];
if(!Ca(h[i]))return}b=h[i][f];c.support.deleteExpando||!h.setInterval?delete h[i]:h[i]=null;if(b){h[i]={};if(!g)h[i].toJSON=c.noop;h[i][f]=b}else g&&(c.support.deleteExpando?delete a[c.expando]:a.removeAttribute?a.removeAttribute(c.expando):a[c.expando]=null)}}},_data:function(a,b,d){return c.data(a,b,d,true)},acceptData:function(a){if(a.nodeName){var b=c.noData[a.nodeName.toLowerCase()];if(b)return!(b===true||a.getAttribute("classid")!==b)}return true}});c.fn.extend({data:function(a,b){var d=null;
if(typeof a==="undefined"){if(this.length){d=c.data(this[0]);if(this[0].nodeType===1)for(var e=this[0].attributes,f,g=0,h=e.length;g<h;g++){f=e[g].name;if(f.indexOf("data-")===0){f=c.camelCase(f.substring(5));Za(this[0],f,d[f])}}}return d}if(typeof a==="object")return this.each(function(){c.data(this,a)});var i=a.split(".");i[1]=i[1]?"."+i[1]:"";if(b===m){d=this.triggerHandler("getData"+i[1]+"!",[i[0]]);if(d===m&&this.length){d=c.data(this[0],a);d=Za(this[0],a,d)}return d===m&&i[1]?this.data(i[0]):
d}return this.each(function(){var d=c(this),e=[i[0],b];d.triggerHandler("setData"+i[1]+"!",e);c.data(this,a,b);d.triggerHandler("changeData"+i[1]+"!",e)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({_mark:function(a,b){if(a){b=(b||"fx")+"mark";c.data(a,b,(c.data(a,b,m,true)||0)+1,true)}},_unmark:function(a,b,d){if(a!==true){d=b;b=a;a=false}if(b){var d=d||"fx",e=d+"mark";if(a=a?0:(c.data(b,e,m,true)||1)-1)c.data(b,e,a,true);else{c.removeData(b,e,true);$a(b,
d,"mark")}}},queue:function(a,b,d){if(a){var b=(b||"fx")+"queue",e=c.data(a,b,m,true);d&&(!e||c.isArray(d)?e=c.data(a,b,c.makeArray(d),true):e.push(d));return e||[]}},dequeue:function(a,b){var b=b||"fx",d=c.queue(a,b),e=d.shift();e==="inprogress"&&(e=d.shift());if(e){b==="fx"&&d.unshift("inprogress");e.call(a,function(){c.dequeue(a,b)})}if(!d.length){c.removeData(a,b+"queue",true);$a(a,b,"queue")}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}return b===m?c.queue(this[0],
a):this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a){function b(){--g||d.resolveWith(e,[e])}typeof a!=="string"&&(a=m);for(var a=a||"fx",d=c.Deferred(),e=this,f=e.length,
g=1,h=a+"defer",i=a+"queue",a=a+"mark",j;f--;)if(j=c.data(e[f],h,m,true)||(c.data(e[f],i,m,true)||c.data(e[f],a,m,true))&&c.data(e[f],h,c._Deferred(),true)){g++;j.done(b)}b();return d.promise()}});var xb=/[\n\t\r]/g,Na=/\s+/,Fc=/\r/g,Gc=/^(?:button|input)$/i,Hc=/^(?:button|input|object|select|textarea)$/i,Ic=/^a(?:rea)?$/i,yb=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,H,zb;c.fn.extend({attr:function(a,b){return c.access(this,
a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.removeAttr(this,a)})},prop:function(a,b){return c.access(this,a,b,true,c.prop)},removeProp:function(a){a=c.propFix[a]||a;return this.each(function(){try{this[a]=m;delete this[a]}catch(b){}})},addClass:function(a){var b,d,e,f,g,h,i;if(c.isFunction(a))return this.each(function(b){c(this).addClass(a.call(this,b,this.className))});if(a&&typeof a==="string"){b=a.split(Na);d=0;for(e=this.length;d<e;d++){f=this[d];if(f.nodeType===1)if(!f.className&&
b.length===1)f.className=a;else{g=" "+f.className+" ";h=0;for(i=b.length;h<i;h++)~g.indexOf(" "+b[h]+" ")||(g=g+(b[h]+" "));f.className=c.trim(g)}}}return this},removeClass:function(a){var b,d,e,f,g,h,i;if(c.isFunction(a))return this.each(function(b){c(this).removeClass(a.call(this,b,this.className))});if(a&&typeof a==="string"||a===m){b=(a||"").split(Na);d=0;for(e=this.length;d<e;d++){f=this[d];if(f.nodeType===1&&f.className)if(a){g=(" "+f.className+" ").replace(xb," ");h=0;for(i=b.length;h<i;h++)g=
g.replace(" "+b[h]+" "," ");f.className=c.trim(g)}else f.className=""}}return this},toggleClass:function(a,b){var d=typeof a,e=typeof b==="boolean";return c.isFunction(a)?this.each(function(d){c(this).toggleClass(a.call(this,d,this.className,b),b)}):this.each(function(){if(d==="string")for(var f,g=0,h=c(this),i=b,j=a.split(Na);f=j[g++];){i=e?i:!h.hasClass(f);h[i?"addClass":"removeClass"](f)}else if(d==="undefined"||d==="boolean"){this.className&&c._data(this,"__className__",this.className);this.className=
this.className||a===false?"":c._data(this,"__className__")||""}})},hasClass:function(a){for(var a=" "+a+" ",b=0,d=this.length;b<d;b++)if(this[b].nodeType===1&&(" "+this[b].className+" ").replace(xb," ").indexOf(a)>-1)return true;return false},val:function(a){var b,d,e=this[0];if(!arguments.length){if(e){if((b=c.valHooks[e.nodeName.toLowerCase()]||c.valHooks[e.type])&&"get"in b&&(d=b.get(e,"value"))!==m)return d;d=e.value;return typeof d==="string"?d.replace(Fc,""):d==null?"":d}return m}var f=c.isFunction(a);
return this.each(function(d){var e=c(this);if(this.nodeType===1){d=f?a.call(this,d,e.val()):a;d==null?d="":typeof d==="number"?d=d+"":c.isArray(d)&&(d=c.map(d,function(a){return a==null?"":a+""}));b=c.valHooks[this.nodeName.toLowerCase()]||c.valHooks[this.type];if(!b||!("set"in b)||b.set(this,d,"value")===m)this.value=d}})}});c.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,d=a.selectedIndex,e=[],f=a.options,
a=a.type==="select-one";if(d<0)return null;for(var g=a?d:0,h=a?d+1:f.length;g<h;g++){b=f[g];if(b.selected&&(c.support.optDisabled?!b.disabled:b.getAttribute("disabled")===null)&&(!b.parentNode.disabled||!c.nodeName(b.parentNode,"optgroup"))){b=c(b).val();if(a)return b;e.push(b)}}return a&&!e.length&&f.length?c(f[d]).val():e},set:function(a,b){var d=c.makeArray(b);c(a).find("option").each(function(){this.selected=c.inArray(c(this).val(),d)>=0});if(!d.length)a.selectedIndex=-1;return d}}},attrFn:{val:!0,
css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attrFix:{tabindex:"tabIndex"},attr:function(a,b,d,e){var f=a.nodeType;if(!a||f===3||f===8||f===2)return m;if(e&&b in c.attrFn)return c(a)[b](d);if(!("getAttribute"in a))return c.prop(a,b,d);var g,h;if(e=f!==1||!c.isXMLDoc(a)){b=c.attrFix[b]||b;(h=c.attrHooks[b])||(yb.test(b)?h=zb:H&&(h=H))}if(d!==m){if(d===null){c.removeAttr(a,b);return m}if(h&&"set"in h&&e&&(g=h.set(a,d,b))!==m)return g;a.setAttribute(b,""+d);return d}if(h&&"get"in h&&
e&&(g=h.get(a,b))!==null)return g;g=a.getAttribute(b);return g===null?m:g},removeAttr:function(a,b){var d;if(a.nodeType===1){b=c.attrFix[b]||b;c.attr(a,b,"");a.removeAttribute(b);if(yb.test(b)&&(d=c.propFix[b]||b)in a)a[d]=false}},attrHooks:{type:{set:function(a,b){if(Gc.test(a.nodeName)&&a.parentNode)c.error("type property can't be changed");else if(!c.support.radioValue&&b==="radio"&&c.nodeName(a,"input")){var d=a.value;a.setAttribute("type",b);if(d)a.value=d;return b}}},value:{get:function(a,b){return H&&
c.nodeName(a,"button")?H.get(a,b):b in a?a.value:null},set:function(a,b,d){if(H&&c.nodeName(a,"button"))return H.set(a,b,d);a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,b,d){var e=a.nodeType;if(!a||e===3||e===8||e===2)return m;var f,g;if(e!==1||
!c.isXMLDoc(a)){b=c.propFix[b]||b;g=c.propHooks[b]}return d!==m?g&&"set"in g&&(f=g.set(a,d,b))!==m?f:a[b]=d:g&&"get"in g&&(f=g.get(a,b))!==null?f:a[b]},propHooks:{tabIndex:{get:function(a){var b=a.getAttributeNode("tabindex");return b&&b.specified?parseInt(b.value,10):Hc.test(a.nodeName)||Ic.test(a.nodeName)&&a.href?0:m}}}});c.attrHooks.tabIndex=c.propHooks.tabIndex;zb={get:function(a,b){var d;return c.prop(a,b)===true||(d=a.getAttributeNode(b))&&d.nodeValue!==false?b.toLowerCase():m},set:function(a,
b,d){if(b===false)c.removeAttr(a,d);else{b=c.propFix[d]||d;b in a&&(a[b]=true);a.setAttribute(d,d.toLowerCase())}return d}};c.support.getSetAttribute||(H=c.valHooks.button={get:function(a,b){var d;return(d=a.getAttributeNode(b))&&d.nodeValue!==""?d.nodeValue:m},set:function(a,b,d){var c=a.getAttributeNode(d);if(!c){c=l.createAttribute(d);a.setAttributeNode(c)}return c.nodeValue=b+""}},c.each(["width","height"],function(a,b){c.attrHooks[b]=c.extend(c.attrHooks[b],{set:function(a,c){if(c===""){a.setAttribute(b,
"auto");return c}}})}));c.support.hrefNormalized||c.each(["href","src","width","height"],function(a,b){c.attrHooks[b]=c.extend(c.attrHooks[b],{get:function(a){a=a.getAttribute(b,2);return a===null?m:a}})});c.support.style||(c.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||m},set:function(a,b){return a.style.cssText=""+b}});c.support.optSelected||(c.propHooks.selected=c.extend(c.propHooks.selected,{get:function(a){if(a=a.parentNode){a.selectedIndex;a.parentNode&&a.parentNode.selectedIndex}return null}}));
c.support.checkOn||c.each(["radio","checkbox"],function(){c.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}});c.each(["radio","checkbox"],function(){c.valHooks[this]=c.extend(c.valHooks[this],{set:function(a,b){if(c.isArray(b))return a.checked=c.inArray(c(a).val(),b)>=0}})});var Da=/\.(.*)$/,Oa=/^(?:textarea|input|select)$/i,bc=/\./g,cc=/ /g,Jc=/[^\w\s.|`]/g,Kc=function(a){return a.replace(Jc,"\\$&")};c.event={add:function(a,b,d,e){if(!(a.nodeType===3||a.nodeType===
8)){if(d===false)d=B;else if(!d)return;var f,g;if(d.handler){f=d;d=f.handler}if(!d.guid)d.guid=c.guid++;if(g=c._data(a)){var h=g.events,i=g.handle;if(!h)g.events=h={};if(!i)g.handle=i=function(a){return typeof c!=="undefined"&&(!a||c.event.triggered!==a.type)?c.event.handle.apply(i.elem,arguments):m};i.elem=a;for(var b=b.split(" "),j,v=0,l;j=b[v++];){g=f?c.extend({},f):{handler:d,data:e};if(j.indexOf(".")>-1){l=j.split(".");j=l.shift();g.namespace=l.slice(0).sort().join(".")}else{l=[];g.namespace=
""}g.type=j;if(!g.guid)g.guid=d.guid;var k=h[j],q=c.event.special[j]||{};if(!k){k=h[j]=[];if(!q.setup||q.setup.call(a,e,l,i)===false)a.addEventListener?a.addEventListener(j,i,false):a.attachEvent&&a.attachEvent("on"+j,i)}if(q.add){q.add.call(a,g);if(!g.handler.guid)g.handler.guid=d.guid}k.push(g);c.event.global[j]=true}a=null}}},global:{},remove:function(a,b,d,e){if(!(a.nodeType===3||a.nodeType===8)){d===false&&(d=B);var f,g,h=0,i,j,v,l,k,q,n=c.hasData(a)&&c._data(a),p=n&&n.events;if(n&&p){if(b&&
b.type){d=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(f in p)c.event.remove(a,f+b)}else{for(b=b.split(" ");f=b[h++];){l=f;i=f.indexOf(".")<0;j=[];if(!i){j=f.split(".");f=j.shift();v=RegExp("(^|\\.)"+c.map(j.slice(0).sort(),Kc).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(k=p[f])if(d){l=c.event.special[f]||{};for(g=e||0;g<k.length;g++){q=k[g];if(d.guid===q.guid){if(i||v.test(q.namespace)){e==null&&k.splice(g--,1);l.remove&&l.remove.call(a,q)}if(e!=null)break}}if(k.length===
0||e!=null&&k.length===1){(!l.teardown||l.teardown.call(a,j)===false)&&c.removeEvent(a,f,n.handle);delete p[f]}}else for(g=0;g<k.length;g++){q=k[g];if(i||v.test(q.namespace)){c.event.remove(a,l,q.handler,g);k.splice(g--,1)}}}if(c.isEmptyObject(p)){if(b=n.handle)b.elem=null;delete n.events;delete n.handle;c.isEmptyObject(n)&&c.removeData(a,m,true)}}}}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(a,b,d,e){var f=a.type||a,g=[],h;if(f.indexOf("!")>=0){f=f.slice(0,-1);h=true}if(f.indexOf(".")>=
0){g=f.split(".");f=g.shift();g.sort()}if(d&&!c.event.customEvent[f]||c.event.global[f]){a=typeof a==="object"?a[c.expando]?a:new c.Event(f,a):new c.Event(f);a.type=f;a.exclusive=h;a.namespace=g.join(".");a.namespace_re=RegExp("(^|\\.)"+g.join("\\.(?:.*\\.)?")+"(\\.|$)");if(e||!d){a.preventDefault();a.stopPropagation()}if(d){if(!(d.nodeType===3||d.nodeType===8)){a.result=m;a.target=d;b=b!=null?c.makeArray(b):[];b.unshift(a);g=d;e=f.indexOf(":")<0?"on"+f:"";do{h=c._data(g,"handle");a.currentTarget=
g;h&&h.apply(g,b);if(e&&c.acceptData(g)&&g[e]&&g[e].apply(g,b)===false){a.result=false;a.preventDefault()}g=g.parentNode||g.ownerDocument||g===a.target.ownerDocument&&r}while(g&&!a.isPropagationStopped());if(!a.isDefaultPrevented()){var i,g=c.event.special[f]||{};if((!g._default||g._default.call(d.ownerDocument,a)===false)&&!(f==="click"&&c.nodeName(d,"a"))&&c.acceptData(d)){try{if(e&&d[f]){(i=d[e])&&(d[e]=null);c.event.triggered=f;d[f]()}}catch(j){}i&&(d[e]=i);c.event.triggered=m}}return a.result}}else c.each(c.cache,
function(){var d=this[c.expando];d&&(d.events&&d.events[f])&&c.event.trigger(a,b,d.handle.elem)})}},handle:function(a){var a=c.event.fix(a||r.event),b=((c._data(this,"events")||{})[a.type]||[]).slice(0),d=!a.exclusive&&!a.namespace,e=Array.prototype.slice.call(arguments,0);e[0]=a;a.currentTarget=this;for(var f=0,g=b.length;f<g;f++){var h=b[f];if(d||a.namespace_re.test(h.namespace)){a.handler=h.handler;a.data=h.data;a.handleObj=h;h=h.handler.apply(this,e);if(h!==m){a.result=h;if(h===false){a.preventDefault();
a.stopPropagation()}}if(a.isImmediatePropagationStopped())break}}return a.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(a){if(a[c.expando])return a;for(var b=a,a=c.Event(b),d=this.props.length,
e;d;){e=this.props[--d];a[e]=b[e]}if(!a.target)a.target=a.srcElement||l;if(a.target.nodeType===3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null){d=a.target.ownerDocument||l;b=d.documentElement;d=d.body;a.pageX=a.clientX+(b&&b.scrollLeft||d&&d.scrollLeft||0)-(b&&b.clientLeft||d&&d.clientLeft||0);a.pageY=a.clientY+(b&&b.scrollTop||d&&d.scrollTop||0)-(b&&b.clientTop||d&&d.clientTop||
0)}if(a.which==null&&(a.charCode!=null||a.keyCode!=null))a.which=a.charCode!=null?a.charCode:a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button!==m)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},guid:1E8,proxy:c.proxy,special:{ready:{setup:c.bindReady,teardown:c.noop},live:{add:function(a){c.event.add(this,ga(a.origType,a.selector),c.extend({},a,{handler:ac,guid:a.handler.guid}))},remove:function(a){c.event.remove(this,ga(a.origType,a.selector),a)}},beforeunload:{setup:function(a,
b,d){if(c.isWindow(this))this.onbeforeunload=d},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};c.removeEvent=l.removeEventListener?function(a,b,d){a.removeEventListener&&a.removeEventListener(b,d,false)}:function(a,b,d){a.detachEvent&&a.detachEvent("on"+b,d)};c.Event=function(a,b){if(!this.preventDefault)return new c.Event(a,b);if(a&&a.type){this.originalEvent=a;this.type=a.type;this.isDefaultPrevented=a.defaultPrevented||a.returnValue===false||a.getPreventDefault&&
a.getPreventDefault()?ea:B}else this.type=a;b&&c.extend(this,b);this.timeStamp=c.now();this[c.expando]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=ea;var a=this.originalEvent;if(a)a.preventDefault?a.preventDefault():a.returnValue=false},stopPropagation:function(){this.isPropagationStopped=ea;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=ea;this.stopPropagation()},
isDefaultPrevented:B,isPropagationStopped:B,isImmediatePropagationStopped:B};var Ab=function(a){var b=a.relatedTarget,d=false,e=a.type;a.type=a.data;if(b!==this){b&&(d=c.contains(this,b));if(!d){c.event.handle.apply(this,arguments);a.type=e}}},Bb=function(a){a.type=a.data;c.event.handle.apply(this,arguments)};c.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){c.event.special[a]={setup:function(d){c.event.add(this,b,d&&d.selector?Bb:Ab,a)},teardown:function(a){c.event.remove(this,
b,a&&a.selector?Bb:Ab)}}});c.support.submitBubbles||(c.event.special.submit={setup:function(){if(c.nodeName(this,"form"))return false;c.event.add(this,"click.specialSubmit",function(a){var b=a.target,d=c.nodeName(b,"input")||c.nodeName(b,"button")?b.type:"";(d==="submit"||d==="image")&&c(b).closest("form").length&&ab("submit",this,arguments)});c.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,d=c.nodeName(b,"input")||c.nodeName(b,"button")?b.type:"";(d==="text"||d==="password")&&
(c(b).closest("form").length&&a.keyCode===13)&&ab("submit",this,arguments)})},teardown:function(){c.event.remove(this,".specialSubmit")}});if(!c.support.changeBubbles){var ba,Cb=function(a){var b=c.nodeName(a,"input")?a.type:"",d=a.value;if(b==="radio"||b==="checkbox")d=a.checked;else if(b==="select-multiple")d=a.selectedIndex>-1?c.map(a.options,function(a){return a.selected}).join("-"):"";else if(c.nodeName(a,"select"))d=a.selectedIndex;return d},sa=function(a,b){var d=a.target,e,f;if(Oa.test(d.nodeName)&&
!d.readOnly){e=c._data(d,"_change_data");f=Cb(d);(a.type!=="focusout"||d.type!=="radio")&&c._data(d,"_change_data",f);if(!(e===m||f===e))if(e!=null||f){a.type="change";a.liveFired=m;c.event.trigger(a,b,d)}}};c.event.special.change={filters:{focusout:sa,beforedeactivate:sa,click:function(a){var b=a.target,d=c.nodeName(b,"input")?b.type:"";(d==="radio"||d==="checkbox"||c.nodeName(b,"select"))&&sa.call(this,a)},keydown:function(a){var b=a.target,d=c.nodeName(b,"input")?b.type:"";(a.keyCode===13&&!c.nodeName(b,
"textarea")||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")&&sa.call(this,a)},beforeactivate:function(a){a=a.target;c._data(a,"_change_data",Cb(a))}},setup:function(){if(this.type==="file")return false;for(var a in ba)c.event.add(this,a+".specialChange",ba[a]);return Oa.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return Oa.test(this.nodeName)}};ba=c.event.special.change.filters;ba.focus=ba.beforeactivate}c.support.focusinBubbles||c.each({focus:"focusin",
blur:"focusout"},function(a,b){function d(a){var d=c.event.fix(a);d.type=b;d.originalEvent={};c.event.trigger(d,null,d.target);d.isDefaultPrevented()&&a.preventDefault()}var e=0;c.event.special[b]={setup:function(){e++===0&&l.addEventListener(a,d,true)},teardown:function(){--e===0&&l.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(a,e,f){var g;if(typeof a==="object"){for(var h in a)this[b](h,e,a[h],f);return this}if(arguments.length===2||e===false){f=e;e=m}if(b===
"one"){g=function(a){c(this).unbind(a,g);return f.apply(this,arguments)};g.guid=f.guid||c.guid++}else g=f;if(a==="unload"&&b!=="one")this.one(a,e,f);else{h=0;for(var i=this.length;h<i;h++)c.event.add(this[h],a,g,e)}return this}});c.fn.extend({unbind:function(a,b){if(typeof a==="object"&&!a.preventDefault)for(var d in a)this.unbind(d,a[d]);else{d=0;for(var e=this.length;d<e;d++)c.event.remove(this[d],a,b)}return this},delegate:function(a,b,d,c){return this.live(b,d,c,a)},undelegate:function(a,b,d){return arguments.length===
0?this.unbind("live"):this.die(b,null,d,a)},trigger:function(a,b){return this.each(function(){c.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0])return c.event.trigger(a,b,this[0],true)},toggle:function(a){var b=arguments,d=a.guid||c.guid++,e=0,f=function(d){var f=(c.data(this,"lastToggle"+a.guid)||0)%e;c.data(this,"lastToggle"+a.guid,f+1);d.preventDefault();return b[f].apply(this,arguments)||false};for(f.guid=d;e<b.length;)b[e++].guid=d;return this.click(f)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||
a)}});var Pa={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};c.each(["live","die"],function(a,b){c.fn[b]=function(a,e,f,g){var h=0,i,j,l=g||this.selector,k=g?this:c(this.context);if(typeof a==="object"&&!a.preventDefault){for(i in a)k[b](i,e,a[i],l);return this}if(b==="die"&&!a&&g&&g.charAt(0)==="."){k.unbind(g);return this}if(e===false||c.isFunction(e)){f=e||B;e=m}for(a=(a||"").split(" ");(g=a[h++])!=null;){i=Da.exec(g);j="";if(i){j=i[0];g=g.replace(Da,"")}if(g==="hover")a.push("mouseenter"+
j,"mouseleave"+j);else{i=g;if(Pa[g]){a.push(Pa[g]+j);g=g+j}else g=(Pa[g]||g)+j;if(b==="live"){j=0;for(var n=k.length;j<n;j++)c.event.add(k[j],"live."+ga(g,l),{data:e,selector:l,handler:f,origType:g,origHandler:f,preType:i})}else k.unbind("live."+ga(g,l),f)}}return this}});c.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(a,b){c.fn[b]=
function(a,c){if(c==null){c=a;a=null}return arguments.length>0?this.bind(b,a,c):this.trigger(b)};c.attrFn&&(c.attrFn[b]=true)});var Db=function(a,b,d,c,f,g){for(var f=0,h=c.length;f<h;f++){var i=c[f];if(i){for(var j=false,i=i[a];i;){if(i.sizcache===d){j=c[i.sizset];break}if(i.nodeType===1&&!g){i.sizcache=d;i.sizset=f}if(i.nodeName.toLowerCase()===b){j=i;break}i=i[a]}c[f]=j}}},Eb=function(a,b,d,c,f,g){for(var f=0,h=c.length;f<h;f++){var i=c[f];if(i){for(var j=false,i=i[a];i;){if(i.sizcache===d){j=
c[i.sizset];break}if(i.nodeType===1){if(!g){i.sizcache=d;i.sizset=f}if(typeof b!=="string"){if(i===b){j=true;break}}else if(n.filter(b,[i]).length>0){j=i;break}}i=i[a]}c[f]=j}}},Qa=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,Ra=0,Fb=Object.prototype.toString,ta=!1,Gb=!0,U=/\\/g,ua=/\W/;[0,0].sort(function(){Gb=false;return 0});var n=function(a,b,d,c){var d=d||[],f=b=b||l;if(b.nodeType!==1&&b.nodeType!==9)return[];
if(!a||typeof a!=="string")return d;var g,h,i,j,m,k=true,o=n.isXML(b),q=[],r=a;do{Qa.exec("");if(g=Qa.exec(r)){r=g[3];q.push(g[1]);if(g[2]){j=g[3];break}}}while(g);if(q.length>1&&Lc.exec(a))if(q.length===2&&p.relative[q[0]])h=Hb(q[0]+q[1],b);else for(h=p.relative[q[0]]?[b]:n(q.shift(),b);q.length;){a=q.shift();p.relative[a]&&(a=a+q.shift());h=Hb(a,h)}else{if(!c&&q.length>1&&b.nodeType===9&&!o&&p.match.ID.test(q[0])&&!p.match.ID.test(q[q.length-1])){g=n.find(q.shift(),b,o);b=g.expr?n.filter(g.expr,
g.set)[0]:g.set[0]}if(b){g=c?{expr:q.pop(),set:w(c)}:n.find(q.pop(),q.length===1&&(q[0]==="~"||q[0]==="+")&&b.parentNode?b.parentNode:b,o);h=g.expr?n.filter(g.expr,g.set):g.set;for(q.length>0?i=w(h):k=false;q.length;){g=m=q.pop();p.relative[m]?g=q.pop():m="";g==null&&(g=b);p.relative[m](i,g,o)}}else i=[]}i||(i=h);i||n.error(m||a);if(Fb.call(i)==="[object Array]")if(k)if(b&&b.nodeType===1)for(a=0;i[a]!=null;a++)i[a]&&(i[a]===true||i[a].nodeType===1&&n.contains(b,i[a]))&&d.push(h[a]);else for(a=0;i[a]!=
null;a++)i[a]&&i[a].nodeType===1&&d.push(h[a]);else d.push.apply(d,i);else w(i,d);if(j){n(j,f,d,c);n.uniqueSort(d)}return d};n.uniqueSort=function(a){if(va){ta=Gb;a.sort(va);if(ta)for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1)}return a};n.matches=function(a,b){return n(a,null,null,b)};n.matchesSelector=function(a,b){return n(b,null,null,[a]).length>0};n.find=function(a,b,d){var c;if(!a)return[];for(var f=0,g=p.order.length;f<g;f++){var h,i=p.order[f];if(h=p.leftMatch[i].exec(a)){var j=
h[1];h.splice(1,1);if(j.substr(j.length-1)!=="\\"){h[1]=(h[1]||"").replace(U,"");c=p.find[i](h,b,d);if(c!=null){a=a.replace(p.match[i],"");break}}}}c||(c=typeof b.getElementsByTagName!=="undefined"?b.getElementsByTagName("*"):[]);return{set:c,expr:a}};n.filter=function(a,b,d,c){for(var f,g,h=a,i=[],j=b,l=b&&b[0]&&n.isXML(b[0]);a&&b.length;){for(var k in p.filter)if((f=p.leftMatch[k].exec(a))!=null&&f[2]){var o,q,r=p.filter[k];q=f[1];g=false;f.splice(1,1);if(q.substr(q.length-1)!=="\\"){j===i&&(i=
[]);if(p.preFilter[k])if(f=p.preFilter[k](f,j,d,i,c,l)){if(f===true)continue}else g=o=true;if(f)for(var s=0;(q=j[s])!=null;s++)if(q){o=r(q,f,s,j);var u=c^!!o;if(d&&o!=null)u?g=true:j[s]=false;else if(u){i.push(q);g=true}}if(o!==m){d||(j=i);a=a.replace(p.match[k],"");if(!g)return[];break}}}if(a===h)if(g==null)n.error(a);else break;h=a}return j};n.error=function(a){throw"Syntax error, unrecognized expression: "+a;};var p=n.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},
leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")},type:function(a){return a.getAttribute("type")}},relative:{"+":function(a,b){var d=typeof b==="string",c=d&&!ua.test(b),d=d&&!c;c&&(b=b.toLowerCase());for(var c=0,f=a.length,g;c<f;c++)if(g=a[c]){for(;(g=g.previousSibling)&&g.nodeType!==1;);a[c]=d||g&&g.nodeName.toLowerCase()===b?g||false:g===b}d&&n.filter(b,a,true)},">":function(a,b){var d,c=typeof b==="string",f=0,g=a.length;if(c&&
!ua.test(b))for(b=b.toLowerCase();f<g;f++){if(d=a[f]){d=d.parentNode;a[f]=d.nodeName.toLowerCase()===b?d:false}}else{for(;f<g;f++)(d=a[f])&&(a[f]=c?d.parentNode:d.parentNode===b);c&&n.filter(b,a,true)}},"":function(a,b,d){var c,f=Ra++,g=Eb;if(typeof b==="string"&&!ua.test(b)){c=b=b.toLowerCase();g=Db}g("parentNode",b,f,a,c,d)},"~":function(a,b,d){var c,f=Ra++,g=Eb;if(typeof b==="string"&&!ua.test(b)){c=b=b.toLowerCase();g=Db}g("previousSibling",b,f,a,c,d)}},find:{ID:function(a,b,d){if(typeof b.getElementById!==
"undefined"&&!d)return(a=b.getElementById(a[1]))&&a.parentNode?[a]:[]},NAME:function(a,b){if(typeof b.getElementsByName!=="undefined"){for(var d=[],c=b.getElementsByName(a[1]),f=0,g=c.length;f<g;f++)c[f].getAttribute("name")===a[1]&&d.push(c[f]);return d.length===0?null:d}},TAG:function(a,b){if(typeof b.getElementsByTagName!=="undefined")return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,d,c,f,g){a=" "+a[1].replace(U,"")+" ";if(g)return a;for(var g=0,h;(h=b[g])!=null;g++)h&&(f^(h.className&&
(" "+h.className+" ").replace(/[\t\n\r]/g," ").indexOf(a)>=0)?d||c.push(h):d&&(b[g]=false));return false},ID:function(a){return a[1].replace(U,"")},TAG:function(a){return a[1].replace(U,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||n.error(a[0]);a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0;a[3]=b[3]-0}else a[2]&&n.error(a[0]);a[0]=Ra++;return a},ATTR:function(a,
b,d,c,f,g){b=a[1]=a[1].replace(U,"");!g&&p.attrMap[b]&&(a[1]=p.attrMap[b]);a[4]=(a[4]||a[5]||"").replace(U,"");a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(a,b,d,c,f){if(a[1]==="not")if((Qa.exec(a[3])||"").length>1||/^\w/.test(a[3]))a[3]=n(a[3],null,null,b);else{a=n.filter(a[3],b,d,1^f);d||c.push.apply(c,a);return false}else if(p.match.POS.test(a[0])||p.match.CHILD.test(a[0]))return true;return a},POS:function(a){a.unshift(true);return a}},filters:{enabled:function(a){return a.disabled===
false&&a.type!=="hidden"},disabled:function(a){return a.disabled===true},checked:function(a){return a.checked===true},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===true},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,d){return!!n(d[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){return"text"===a.getAttribute("type")},radio:function(a){return"radio"===a.type},checkbox:function(a){return"checkbox"===
a.type},file:function(a){return"file"===a.type},password:function(a){return"password"===a.type},submit:function(a){return"submit"===a.type},image:function(a){return"image"===a.type},reset:function(a){return"reset"===a.type},button:function(a){return"button"===a.type||a.nodeName.toLowerCase()==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)}},setFilters:{first:function(a,b){return b===0},last:function(a,b,d,c){return b===c.length-1},even:function(a,b){return b%2===
0},odd:function(a,b){return b%2===1},lt:function(a,b,d){return b<d[3]-0},gt:function(a,b,d){return b>d[3]-0},nth:function(a,b,d){return d[3]-0===b},eq:function(a,b,d){return d[3]-0===b}},filter:{PSEUDO:function(a,b,d,c){var f=b[1],g=p.filters[f];if(g)return g(a,d,b,c);if(f==="contains")return(a.textContent||a.innerText||n.getText([a])||"").indexOf(b[3])>=0;if(f==="not"){b=b[3];d=0;for(c=b.length;d<c;d++)if(b[d]===a)return false;return true}n.error(f)},CHILD:function(a,b){var d=b[1],c=a;switch(d){case "only":case "first":for(;c=
c.previousSibling;)if(c.nodeType===1)return false;if(d==="first")return true;c=a;case "last":for(;c=c.nextSibling;)if(c.nodeType===1)return false;return true;case "nth":var d=b[2],f=b[3];if(d===1&&f===0)return true;var g=b[0],h=a.parentNode;if(h&&(h.sizcache!==g||!a.nodeIndex)){for(var i=0,c=h.firstChild;c;c=c.nextSibling)if(c.nodeType===1)c.nodeIndex=++i;h.sizcache=g}c=a.nodeIndex-f;return d===0?c===0:c%d===0&&c/d>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,
b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var d=b[1],d=p.attrHandle[d]?p.attrHandle[d](a):a[d]!=null?a[d]:a.getAttribute(d),c=d+"",f=b[2],g=b[4];return d==null?f==="!=":f==="="?c===g:f==="*="?c.indexOf(g)>=0:f==="~="?(" "+c+" ").indexOf(g)>=0:!g?c&&d!==false:f==="!="?c!==g:f==="^="?c.indexOf(g)===0:f==="$="?c.substr(c.length-g.length)===g:f==="|="?c===g||c.substr(0,g.length+
1)===g+"-":false},POS:function(a,b,d,c){var f=p.setFilters[b[2]];if(f)return f(a,d,b,c)}}},Lc=p.match.POS,Mc=function(a,b){return"\\"+(b-0+1)},ca;for(ca in p.match)p.match[ca]=RegExp(p.match[ca].source+/(?![^\[]*\])(?![^\(]*\))/.source),p.leftMatch[ca]=RegExp(/(^(?:.|\r|\n)*?)/.source+p.match[ca].source.replace(/\\(\d+)/g,Mc));var w=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(l.documentElement.childNodes,0)[0].nodeType}catch(pd){w=
function(a,b){var d=0,c=b||[];if(Fb.call(a)==="[object Array]")Array.prototype.push.apply(c,a);else if(typeof a.length==="number")for(var f=a.length;d<f;d++)c.push(a[d]);else for(;a[d];d++)c.push(a[d]);return c}}var va,da;l.documentElement.compareDocumentPosition?va=function(a,b){if(a===b){ta=true;return 0}return!a.compareDocumentPosition||!b.compareDocumentPosition?a.compareDocumentPosition?-1:1:a.compareDocumentPosition(b)&4?-1:1}:(va=function(a,b){var d,c,f=[],g=[];d=a.parentNode;c=b.parentNode;
var h=d;if(a===b){ta=true;return 0}if(d===c)return da(a,b);if(d){if(!c)return 1}else return-1;for(;h;){f.unshift(h);h=h.parentNode}for(h=c;h;){g.unshift(h);h=h.parentNode}d=f.length;c=g.length;for(h=0;h<d&&h<c;h++)if(f[h]!==g[h])return da(f[h],g[h]);return h===d?da(a,g[h],-1):da(f[h],b,1)},da=function(a,b,d){if(a===b)return d;for(a=a.nextSibling;a;){if(a===b)return-1;a=a.nextSibling}return 1});n.getText=function(a){for(var b="",d,c=0;a[c];c++){d=a[c];d.nodeType===3||d.nodeType===4?b=b+d.nodeValue:
d.nodeType!==8&&(b=b+n.getText(d.childNodes))}return b};var wa=l.createElement("div"),Ib="script"+(new Date).getTime(),xa=l.documentElement;wa.innerHTML="<a name='"+Ib+"'/>";xa.insertBefore(wa,xa.firstChild);l.getElementById(Ib)&&(p.find.ID=function(a,b,c){if(typeof b.getElementById!=="undefined"&&!c)return(b=b.getElementById(a[1]))?b.id===a[1]||typeof b.getAttributeNode!=="undefined"&&b.getAttributeNode("id").nodeValue===a[1]?[b]:m:[]},p.filter.ID=function(a,b){var c=typeof a.getAttributeNode!==
"undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b});xa.removeChild(wa);var xa=wa=null,E=l.createElement("div");E.appendChild(l.createComment(""));0<E.getElementsByTagName("*").length&&(p.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){for(var e=[],f=0;c[f];f++)c[f].nodeType===1&&e.push(c[f]);c=e}return c});E.innerHTML="<a href='#'></a>";E.firstChild&&("undefined"!==typeof E.firstChild.getAttribute&&"#"!==E.firstChild.getAttribute("href"))&&(p.attrHandle.href=
function(a){return a.getAttribute("href",2)});E=null;if(l.querySelectorAll){var Sa=n,ya=l.createElement("div");ya.innerHTML="<p class='TEST'></p>";if(!(ya.querySelectorAll&&0===ya.querySelectorAll(".TEST").length)){var n=function(a,b,c,e){b=b||l;if(!e&&!n.isXML(b)){var f=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(a);if(f&&(b.nodeType===1||b.nodeType===9)){if(f[1])return w(b.getElementsByTagName(a),c);if(f[2]&&p.find.CLASS&&b.getElementsByClassName)return w(b.getElementsByClassName(f[2]),c)}if(b.nodeType===
9){if(a==="body"&&b.body)return w([b.body],c);if(f&&f[3]){var g=b.getElementById(f[3]);if(g&&g.parentNode){if(g.id===f[3])return w([g],c)}else return w([],c)}try{return w(b.querySelectorAll(a),c)}catch(h){}}else if(b.nodeType===1&&b.nodeName.toLowerCase()!=="object"){var f=b,i=(g=b.getAttribute("id"))||"__sizzle__",j=b.parentNode,m=/^\s*[+~]/.test(a);g?i=i.replace(/'/g,"\\$&"):b.setAttribute("id",i);if(m&&j)b=b.parentNode;try{if(!m||j)return w(b.querySelectorAll("[id='"+i+"'] "+a),c)}catch(k){}finally{g||
f.removeAttribute("id")}}}return Sa(a,b,c,e)},Ta;for(Ta in Sa)n[Ta]=Sa[Ta];ya=null}}var za=l.documentElement,Ua=za.matchesSelector||za.mozMatchesSelector||za.webkitMatchesSelector||za.msMatchesSelector,Jb=!1;try{Ua.call(l.documentElement,"[test!='']:sizzle")}catch(qd){Jb=!0}Ua&&(n.matchesSelector=function(a,b){b=b.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!n.isXML(a))try{if(Jb||!p.match.PSEUDO.test(b)&&!/!=/.test(b))return Ua.call(a,b)}catch(c){}return n(b,null,null,[a]).length>0});var V=l.createElement("div");
V.innerHTML="<div class='test e'></div><div class='test'></div>";V.getElementsByClassName&&0!==V.getElementsByClassName("e").length&&(V.lastChild.className="e",1!==V.getElementsByClassName("e").length&&(p.order.splice(1,0,"CLASS"),p.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!=="undefined"&&!c)return b.getElementsByClassName(a[1])},V=null));n.contains=l.documentElement.contains?function(a,b){return a!==b&&(a.contains?a.contains(b):true)}:l.documentElement.compareDocumentPosition?
function(a,b){return!!(a.compareDocumentPosition(b)&16)}:function(){return false};n.isXML=function(a){return(a=(a?a.ownerDocument||a:0).documentElement)?a.nodeName!=="HTML":false};var Hb=function(a,b){for(var c,e=[],f="",g=b.nodeType?[b]:b;c=p.match.PSEUDO.exec(a);){f=f+c[0];a=a.replace(p.match.PSEUDO,"")}a=p.relative[a]?a+"*":a;c=0;for(var h=g.length;c<h;c++)n(a,g[c],e);return n.filter(f,e)};c.find=n;c.expr=n.selectors;c.expr[":"]=c.expr.filters;c.unique=n.uniqueSort;c.text=n.getText;c.isXMLDoc=
n.isXML;c.contains=n.contains;var Nc=/Until$/,Oc=/^(?:parents|prevUntil|prevAll)/,Pc=/,/,dc=/^.[^:#\[\.,]*$/,Qc=Array.prototype.slice,Kb=c.expr.match.POS,Rc={children:!0,contents:!0,next:!0,prev:!0};c.fn.extend({find:function(a){var b=this,d,e;if(typeof a!=="string")return c(a).filter(function(){d=0;for(e=b.length;d<e;d++)if(c.contains(b[d],this))return true});var f=this.pushStack("","find",a),g,h,i;d=0;for(e=this.length;d<e;d++){g=f.length;c.find(a,this[d],f);if(d>0)for(h=g;h<f.length;h++)for(i=
0;i<g;i++)if(f[i]===f[h]){f.splice(h--,1);break}}return f},has:function(a){var b=c(a);return this.filter(function(){for(var a=0,e=b.length;a<e;a++)if(c.contains(this,b[a]))return true})},not:function(a){return this.pushStack(bb(this,a,false),"not",a)},filter:function(a){return this.pushStack(bb(this,a,true),"filter",a)},is:function(a){return!!a&&(typeof a==="string"?c.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var d=[],e,f,g=this[0];if(c.isArray(a)){var h,i={},j=1;if(g&&
a.length){e=0;for(f=a.length;e<f;e++){h=a[e];i[h]||(i[h]=Kb.test(h)?c(h,b||this.context):h)}for(;g&&g.ownerDocument&&g!==b;){for(h in i){e=i[h];(e.jquery?e.index(g)>-1:c(g).is(e))&&d.push({selector:h,elem:g,level:j})}g=g.parentNode;j++}}return d}h=Kb.test(a)||typeof a!=="string"?c(a,b||this.context):0;e=0;for(f=this.length;e<f;e++)for(g=this[e];g;)if(h?h.index(g)>-1:c.find.matchesSelector(g,a)){d.push(g);break}else{g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}d=d.length>1?
c.unique(d):d;return this.pushStack(d,"closest",a)},index:function(a){return!a?this[0]&&this[0].parentNode?this.prevAll().length:-1:typeof a==="string"?c.inArray(this[0],c(a)):c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var d=typeof a==="string"?c(a,b):c.makeArray(a&&a.nodeType?[a]:a),e=c.merge(this.get(),d);return this.pushStack(!d[0]||!d[0].parentNode||d[0].parentNode.nodeType===11||!e[0]||!e[0].parentNode||e[0].parentNode.nodeType===11?e:c.unique(e))},andSelf:function(){return this.add(this.prevObject)}});
c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",
d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,e){var f=c.map(this,b,d),g=Qc.call(arguments);Nc.test(a)||(e=d);e&&typeof e==="string"&&(f=c.filter(e,f));f=this.length>1&&!Rc[a]?c.unique(f):f;if((this.length>1||Pc.test(e))&&Oc.test(a))f=f.reverse();return this.pushStack(f,
a,g.join(","))}});c.extend({filter:function(a,b,d){d&&(a=":not("+a+")");return b.length===1?c.find.matchesSelector(b[0],a)?[b[0]]:[]:c.find.matches(a,b)},dir:function(a,b,d){for(var e=[],a=a[b];a&&a.nodeType!==9&&(d===m||a.nodeType!==1||!c(a).is(d));){a.nodeType===1&&e.push(a);a=a[b]}return e},nth:function(a,b,c){for(var b=b||1,e=0;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var Sc=/ jQuery\d+="(?:\d+|null)"/g,
Va=/^\s+/,Lb=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Mb=/<([\w:]+)/,Tc=/<tbody/i,Uc=/<|&#?\w+;/,Nb=/<(?:script|object|embed|option|style)/i,Ob=/checked\s*(?:[^=]|=\s*.checked.)/i,Vc=/\/(java|ecma)script/i,fc=/^\s*<!(?:\[CDATA\[|\-\-)/,u={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>",
"</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};u.optgroup=u.option;u.tbody=u.tfoot=u.colgroup=u.caption=u.thead;u.th=u.td;c.support.htmlSerialize||(u._default=[1,"div<div>","</div>"]);c.fn.extend({text:function(a){return c.isFunction(a)?this.each(function(b){var d=c(this);d.text(a.call(this,b,d.text()))}):typeof a!=="object"&&a!==m?this.empty().append((this[0]&&this[0].ownerDocument||l).createTextNode(a)):c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapAll(a.call(this,
b))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var a=this;a.firstChild&&a.firstChild.nodeType===1;)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return c.isFunction(a)?this.each(function(b){c(this).wrapInner(a.call(this,b))}):this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,
"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,
"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,e;(e=this[d])!=null;d++)if(!a||c.filter(a,[e]).length){if(!b&&e.nodeType===1){c.cleanData(e.getElementsByTagName("*"));c.cleanData([e])}e.parentNode&&e.parentNode.removeChild(e)}return this},
empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);return this},clone:function(a,b){a=a==null?false:a;b=b==null?a:b;return this.map(function(){return c.clone(this,a,b)})},html:function(a){if(a===m)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Sc,""):null;if(typeof a==="string"&&!Nb.test(a)&&(c.support.leadingWhitespace||!Va.test(a))&&!u[(Mb.exec(a)||["",""])[1].toLowerCase()]){a=
a.replace(Lb,"<$1></$2>");try{for(var b=0,d=this.length;b<d;b++)if(this[b].nodeType===1){c.cleanData(this[b].getElementsByTagName("*"));this[b].innerHTML=a}}catch(e){this.empty().append(a)}}else c.isFunction(a)?this.each(function(b){var d=c(this);d.html(a.call(this,b,d.html()))}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(c.isFunction(a))return this.each(function(b){var d=c(this),e=d.html();d.replaceWith(a.call(this,b,e))});typeof a!=="string"&&
(a=c(a).detach());return this.each(function(){var b=this.nextSibling,d=this.parentNode;c(this).remove();b?c(b).before(a):c(d).append(a)})}return this.length?this.pushStack(c(c.isFunction(a)?a():a),"replaceWith",a):this},detach:function(a){return this.remove(a,true)},domManip:function(a,b,d){var e,f,g,h=a[0],i=[];if(!c.support.checkClone&&arguments.length===3&&typeof h==="string"&&Ob.test(h))return this.each(function(){c(this).domManip(a,b,d,true)});if(c.isFunction(h))return this.each(function(e){var f=
c(this);a[0]=h.call(this,e,b?f.html():m);f.domManip(a,b,d)});if(this[0]){e=h&&h.parentNode;e=c.support.parentNode&&e&&e.nodeType===11&&e.childNodes.length===this.length?{fragment:e}:c.buildFragment(a,this,i);g=e.fragment;if(f=g.childNodes.length===1?g=g.firstChild:g.firstChild){b=b&&c.nodeName(f,"tr");f=0;for(var j=this.length,k=j-1;f<j;f++)d.call(b?c.nodeName(this[f],"table")?this[f].getElementsByTagName("tbody")[0]||this[f].appendChild(this[f].ownerDocument.createElement("tbody")):this[f]:this[f],
e.cacheable||j>1&&f<k?c.clone(g,true,true):g)}i.length&&c.each(i,ec)}return this}});c.buildFragment=function(a,b,d){var e,f,g,h;b&&b[0]&&(h=b[0].ownerDocument||b[0]);h.createDocumentFragment||(h=l);if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&h===l&&a[0].charAt(0)==="<"&&!Nb.test(a[0])&&(c.support.checkClone||!Ob.test(a[0]))){f=true;(g=c.fragments[a[0]])&&g!==1&&(e=g)}if(!e){e=h.createDocumentFragment();c.clean(a,h,e,d)}f&&(c.fragments[a[0]]=g?e:1);return{fragment:e,cacheable:f}};c.fragments=
{};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var e=[],d=c(d),f=this.length===1&&this[0].parentNode;if(f&&f.nodeType===11&&f.childNodes.length===1&&d.length===1){d[b](this[0]);return this}for(var f=0,g=d.length;f<g;f++){var h=(f>0?this.clone(true):this).get();c(d[f])[b](h);e=e.concat(h)}return this.pushStack(e,a,d.selector)}});c.extend({clone:function(a,b,d){var e=a.cloneNode(true),f,g,h;if((!c.support.noCloneEvent||
!c.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!c.isXMLDoc(a)){db(a,e);f=ha(a);g=ha(e);for(h=0;f[h];++h)g[h]&&db(f[h],g[h])}if(b){cb(a,e);if(d){f=ha(a);g=ha(e);for(h=0;f[h];++h)cb(f[h],g[h])}}return e},clean:function(a,b,d,e){b=b||l;typeof b.createElement==="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||l);for(var f=[],g,h=0,i;(i=a[h])!=null;h++){typeof i==="number"&&(i=i+"");if(i){if(typeof i==="string")if(Uc.test(i)){i=i.replace(Lb,"<$1></$2>");g=(Mb.exec(i)||["",""])[1].toLowerCase();
var j=u[g]||u._default,m=j[0],k=b.createElement("div");for(k.innerHTML=j[1]+i+j[2];m--;)k=k.lastChild;if(!c.support.tbody){m=Tc.test(i);j=g==="table"&&!m?k.firstChild&&k.firstChild.childNodes:j[1]==="<table>"&&!m?k.childNodes:[];for(g=j.length-1;g>=0;--g)c.nodeName(j[g],"tbody")&&!j[g].childNodes.length&&j[g].parentNode.removeChild(j[g])}!c.support.leadingWhitespace&&Va.test(i)&&k.insertBefore(b.createTextNode(Va.exec(i)[0]),k.firstChild);i=k.childNodes}else i=b.createTextNode(i);var n;if(!c.support.appendChecked)if(i[0]&&
typeof(n=i.length)==="number")for(g=0;g<n;g++)fb(i[g]);else fb(i);i.nodeType?f.push(i):f=c.merge(f,i)}}if(d){a=function(a){return!a.type||Vc.test(a.type)};for(h=0;f[h];h++)if(e&&c.nodeName(f[h],"script")&&(!f[h].type||f[h].type.toLowerCase()==="text/javascript"))e.push(f[h].parentNode?f[h].parentNode.removeChild(f[h]):f[h]);else{if(f[h].nodeType===1){b=c.grep(f[h].getElementsByTagName("script"),a);f.splice.apply(f,[h+1,0].concat(b))}d.appendChild(f[h])}}return f},cleanData:function(a){for(var b,d,
e=c.cache,f=c.expando,g=c.event.special,h=c.support.deleteExpando,i=0,j;(j=a[i])!=null;i++)if(!j.nodeName||!c.noData[j.nodeName.toLowerCase()])if(d=j[c.expando]){if((b=e[d]&&e[d][f])&&b.events){for(var k in b.events)g[k]?c.event.remove(j,k):c.removeEvent(j,k,b.handle);if(b.handle)b.handle.elem=null}h?delete j[c.expando]:j.removeAttribute&&j.removeAttribute(c.expando);delete e[d]}}});var Wa=/alpha\([^)]*\)/i,Wc=/opacity=([^)]*)/,Xc=/([A-Z]|^ms)/g,Pb=/^-?\d+(?:px)?$/i,Yc=/^-?\d/,Zc=/^([\-+])=([\-+.\de]+)/,
$c={position:"absolute",visibility:"hidden",display:"block"},gc=["Left","Right"],hc=["Top","Bottom"],C,Qb,Rb;c.fn.css=function(a,b){return arguments.length===2&&b===m?this:c.access(this,a,b,true,function(a,b,f){return f!==m?c.style(a,b,f):c.css(a,b)})};c.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=C(a,"opacity","opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":c.support.cssFloat?
"cssFloat":"styleFloat"},style:function(a,b,d,e){if(a&&!(a.nodeType===3||a.nodeType===8||!a.style)){var f,g=c.camelCase(b),h=a.style,i=c.cssHooks[g],b=c.cssProps[g]||g;if(d!==m){e=typeof d;if(e==="string"&&(f=Zc.exec(d))){d=+(f[1]+1)*+f[2]+parseFloat(c.css(a,b));e="number"}if(!(d==null||e==="number"&&isNaN(d))){e==="number"&&!c.cssNumber[g]&&(d=d+"px");if(!i||!("set"in i)||(d=i.set(a,d))!==m)try{h[b]=d}catch(j){}}}else return i&&"get"in i&&(f=i.get(a,false,e))!==m?f:h[b]}},css:function(a,b,d){var e,
f,b=c.camelCase(b);f=c.cssHooks[b];b=c.cssProps[b]||b;b==="cssFloat"&&(b="float");if(f&&"get"in f&&(e=f.get(a,true,d))!==m)return e;if(C)return C(a,b)},swap:function(a,b,c){var e={},f;for(f in b){e[f]=a.style[f];a.style[f]=b[f]}c.call(a);for(f in b)a.style[f]=e[f]}});c.curCSS=c.css;c.each(["height","width"],function(a,b){c.cssHooks[b]={get:function(a,e,f){var g;if(e){if(a.offsetWidth!==0)return gb(a,b,f);c.swap(a,$c,function(){g=gb(a,b,f)});return g}},set:function(a,b){if(Pb.test(b)){b=parseFloat(b);
if(b>=0)return b+"px"}else return b}}});c.support.opacity||(c.cssHooks.opacity={get:function(a,b){return Wc.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var d=a.style,e=a.currentStyle,f=c.isNaN(b)?"":"alpha(opacity="+b*100+")",g=e&&e.filter||d.filter||"";d.zoom=1;if(b>=1&&c.trim(g.replace(Wa,""))===""){d.removeAttribute("filter");if(e&&!e.filter)return}d.filter=Wa.test(g)?g.replace(Wa,f):g+" "+f}});c(function(){if(!c.support.reliableMarginRight)c.cssHooks.marginRight=
{get:function(a,b){var d;c.swap(a,{display:"inline-block"},function(){d=b?C(a,"margin-right","marginRight"):a.style.marginRight});return d}}});l.defaultView&&l.defaultView.getComputedStyle&&(Qb=function(a,b){var d,e,b=b.replace(Xc,"-$1").toLowerCase();if(!(e=a.ownerDocument.defaultView))return m;if(e=e.getComputedStyle(a,null)){d=e.getPropertyValue(b);d===""&&!c.contains(a.ownerDocument.documentElement,a)&&(d=c.style(a,b))}return d});l.documentElement.currentStyle&&(Rb=function(a,b){var c,e=a.currentStyle&&
a.currentStyle[b],f=a.runtimeStyle&&a.runtimeStyle[b],g=a.style;if(!Pb.test(e)&&Yc.test(e)){c=g.left;if(f)a.runtimeStyle.left=a.currentStyle.left;g.left=b==="fontSize"?"1em":e||0;e=g.pixelLeft+"px";g.left=c;if(f)a.runtimeStyle.left=f}return e===""?"auto":e});C=Qb||Rb;c.expr&&c.expr.filters&&(c.expr.filters.hidden=function(a){var b=a.offsetHeight;return a.offsetWidth===0&&b===0||!c.support.reliableHiddenOffsets&&(a.style.display||c.css(a,"display"))==="none"},c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)});
var ad=/%20/g,ic=/\[\]$/,Sb=/\r?\n/g,bd=/#.*$/,cd=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,dd=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,ed=/^(?:GET|HEAD)$/,fd=/^\/\//,Tb=/\?/,gd=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,hd=/^(?:select|textarea)/i,ib=/\s+/,id=/([?&])_=[^&]*/,Ub=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,Vb=c.fn.load,Ea={},Wb={},F,K,Xb=["*/"]+["*"];try{F=kc.href}catch(rd){F=l.createElement("a"),F.href=
"",F=F.href}K=Ub.exec(F.toLowerCase())||[];c.fn.extend({load:function(a,b,d){if(typeof a!=="string"&&Vb)return Vb.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0)var f=a.slice(e,a.length),a=a.slice(0,e);e="GET";if(b)if(c.isFunction(b)){d=b;b=m}else if(typeof b==="object"){b=c.param(b,c.ajaxSettings.traditional);e="POST"}var g=this;c.ajax({url:a,type:e,dataType:"html",data:b,complete:function(a,b,e){e=a.responseText;if(a.isResolved()){a.done(function(a){e=a});g.html(f?
c("<div>").append(e.replace(gd,"")).find(f):e)}d&&g.each(d,[e,b,a])}});return this},serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||hd.test(this.nodeName)||dd.test(this.type))}).map(function(a,b){var d=c(this).val();return d==null?null:c.isArray(d)?c.map(d,function(a){return{name:b.name,value:a.replace(Sb,"\r\n")}}):
{name:b.name,value:d.replace(Sb,"\r\n")}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){c.fn[b]=function(a){return this.bind(b,a)}});c.each(["get","post"],function(a,b){c[b]=function(a,e,f,g){if(c.isFunction(e)){g=g||f;f=e;e=m}return c.ajax({type:b,url:a,data:e,success:f,dataType:g})}});c.extend({getScript:function(a,b){return c.get(a,m,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},ajaxSetup:function(a,b){if(b)jb(a,c.ajaxSettings);
else{b=a;a=c.ajaxSettings}jb(a,b);return a},ajaxSettings:{url:F,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test(K[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":Xb},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":r.String,"text html":!0,
"text json":c.parseJSON,"text xml":c.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:hb(Ea),ajaxTransport:hb(Wb),ajax:function(a,b){function d(a,b,d,l){if(u!==2){u=2;r&&clearTimeout(r);p=m;q=l||"";t.readyState=a>0?4:0;var n,o,s,l=b;if(d){var X=e,w=t,z=X.contents,J=X.dataTypes,B=X.responseFields,A,x,M,G;for(x in B)x in d&&(w[B[x]]=d[x]);for(;J[0]==="*";){J.shift();A===m&&(A=X.mimeType||w.getResponseHeader("content-type"))}if(A)for(x in z)if(z[x]&&z[x].test(A)){J.unshift(x);break}if(J[0]in
d)M=J[0];else{for(x in d){if(!J[0]||X.converters[x+" "+J[0]]){M=x;break}G||(G=x)}M=M||G}if(M){M!==J[0]&&J.unshift(M);d=d[M]}else d=void 0}else d=m;if(a>=200&&a<300||a===304){if(e.ifModified){if(A=t.getResponseHeader("Last-Modified"))c.lastModified[k]=A;if(A=t.getResponseHeader("Etag"))c.etag[k]=A}if(a===304){l="notmodified";n=true}else try{A=e;A.dataFilter&&(d=A.dataFilter(d,A.dataType));var H=A.dataTypes;x={};var E,F,K=H.length,fa,N=H[0],C,I,O,P,D;for(E=1;E<K;E++){if(E===1)for(F in A.converters)typeof F===
"string"&&(x[F.toLowerCase()]=A.converters[F]);C=N;N=H[E];if(N==="*")N=C;else if(C!=="*"&&C!==N){I=C+" "+N;O=x[I]||x["* "+N];if(!O){D=m;for(P in x){fa=P.split(" ");if(fa[0]===C||fa[0]==="*")if(D=x[fa[1]+" "+N]){P=x[P];P===true?O=D:D===true&&(O=P);break}}}!O&&!D&&c.error("No conversion from "+I.replace(" "," to "));O!==true&&(d=O?O(d):D(P(d)))}}o=d;l="success";n=true}catch(L){l="parsererror";s=L}}else{s=l;if(!l||a){l="error";a<0&&(a=0)}}t.status=a;t.statusText=""+(b||l);n?h.resolveWith(f,[o,l,t]):
h.rejectWith(f,[t,l,s]);t.statusCode(j);j=m;y&&g.trigger("ajax"+(n?"Success":"Error"),[t,e,n?o:s]);i.resolveWith(f,[t,l]);if(y){g.trigger("ajaxComplete",[t,e]);--c.active||c.event.trigger("ajaxStop")}}}if(typeof a==="object"){b=a;a=m}var b=b||{},e=c.ajaxSetup({},b),f=e.context||e,g=f!==e&&(f.nodeType||f instanceof c)?c(f):c.event,h=c.Deferred(),i=c._Deferred(),j=e.statusCode||{},k,l={},n={},q,o,p,r,s,u=0,y,w,t={readyState:0,setRequestHeader:function(a,b){if(!u){var c=a.toLowerCase(),a=n[c]=n[c]||
a;l[a]=b}return this},getAllResponseHeaders:function(){return u===2?q:null},getResponseHeader:function(a){var b;if(u===2){if(!o)for(o={};b=cd.exec(q);)o[b[1].toLowerCase()]=b[2];b=o[a.toLowerCase()]}return b===m?null:b},overrideMimeType:function(a){if(!u)e.mimeType=a;return this},abort:function(a){a=a||"abort";p&&p.abort(a);d(0,a);return this}};h.promise(t);t.success=t.done;t.error=t.fail;t.complete=i.done;t.statusCode=function(a){if(a){var b;if(u<2)for(b in a)j[b]=[j[b],a[b]];else{b=a[t.status];
t.then(b,b)}}return this};e.url=((a||e.url)+"").replace(bd,"").replace(fd,K[1]+"//");e.dataTypes=c.trim(e.dataType||"*").toLowerCase().split(ib);if(e.crossDomain==null){s=Ub.exec(e.url.toLowerCase());e.crossDomain=!(!s||!(s[1]!=K[1]||s[2]!=K[2]||(s[3]||(s[1]==="http:"?80:443))!=(K[3]||(K[1]==="http:"?80:443))))}if(e.data&&e.processData&&typeof e.data!=="string")e.data=c.param(e.data,e.traditional);ia(Ea,e,b,t);if(u===2)return false;y=e.global;e.type=e.type.toUpperCase();e.hasContent=!ed.test(e.type);
y&&c.active++===0&&c.event.trigger("ajaxStart");if(!e.hasContent){if(e.data){e.url=e.url+((Tb.test(e.url)?"&":"?")+e.data);delete e.data}k=e.url;if(e.cache===false){s=c.now();var z=e.url.replace(id,"$1_="+s);e.url=z+(z===e.url?(Tb.test(e.url)?"&":"?")+"_="+s:"")}}(e.data&&e.hasContent&&e.contentType!==false||b.contentType)&&t.setRequestHeader("Content-Type",e.contentType);if(e.ifModified){k=k||e.url;c.lastModified[k]&&t.setRequestHeader("If-Modified-Since",c.lastModified[k]);c.etag[k]&&t.setRequestHeader("If-None-Match",
c.etag[k])}t.setRequestHeader("Accept",e.dataTypes[0]&&e.accepts[e.dataTypes[0]]?e.accepts[e.dataTypes[0]]+(e.dataTypes[0]!=="*"?", "+Xb+"; q=0.01":""):e.accepts["*"]);for(w in e.headers)t.setRequestHeader(w,e.headers[w]);if(e.beforeSend&&(e.beforeSend.call(f,t,e)===false||u===2)){t.abort();return false}for(w in{success:1,error:1,complete:1})t[w](e[w]);if(p=ia(Wb,e,b,t)){t.readyState=1;y&&g.trigger("ajaxSend",[t,e]);e.async&&e.timeout>0&&(r=setTimeout(function(){t.abort("timeout")},e.timeout));try{u=
1;p.send(l,d)}catch(B){u<2?d(-1,B):c.error(B)}}else d(-1,"No Transport");return t},param:function(a,b){var d=[],e=function(a,b){b=c.isFunction(b)?b():b;d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(b===m)b=c.ajaxSettings.traditional;if(c.isArray(a)||a.jquery&&!c.isPlainObject(a))c.each(a,function(){e(this.name,this.value)});else for(var f in a)Fa(f,a[f],b,e);return d.join("&").replace(ad,"+")}});c.extend({active:0,lastModified:{},etag:{}});var jd=c.now(),Aa=/(\=)\?(&|$)|\?\?/i;c.ajaxSetup({jsonp:"callback",
jsonpCallback:function(){return c.expando+"_"+jd++}});c.ajaxPrefilter("json jsonp",function(a,b,d){b=a.contentType==="application/x-www-form-urlencoded"&&typeof a.data==="string";if(a.dataTypes[0]==="jsonp"||a.jsonp!==false&&(Aa.test(a.url)||b&&Aa.test(a.data))){var e,f=a.jsonpCallback=c.isFunction(a.jsonpCallback)?a.jsonpCallback():a.jsonpCallback,g=r[f],h=a.url,i=a.data,j="$1"+f+"$2";if(a.jsonp!==false){h=h.replace(Aa,j);if(a.url===h){b&&(i=i.replace(Aa,j));a.data===i&&(h=h+((/\?/.test(h)?"&":"?")+
a.jsonp+"="+f))}}a.url=h;a.data=i;r[f]=function(a){e=[a]};d.always(function(){r[f]=g;if(e&&c.isFunction(g))r[f](e[0])});a.converters["script json"]=function(){e||c.error(f+" was not called");return e[0]};a.dataTypes[0]="json";return"script"}});c.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){c.globalEval(a);return a}}});c.ajaxPrefilter("script",function(a){if(a.cache===
m)a.cache=false;if(a.crossDomain){a.type="GET";a.global=false}});c.ajaxTransport("script",function(a){if(a.crossDomain){var b,c=l.head||l.getElementsByTagName("head")[0]||l.documentElement;return{send:function(e,f){b=l.createElement("script");b.async="async";if(a.scriptCharset)b.charset=a.scriptCharset;b.src=a.url;b.onload=b.onreadystatechange=function(a,e){if(e||!b.readyState||/loaded|complete/.test(b.readyState)){b.onload=b.onreadystatechange=null;c&&b.parentNode&&c.removeChild(b);b=m;e||f(200,
"success")}};c.insertBefore(b,c.firstChild)},abort:function(){if(b)b.onload(0,1)}}}});var Xa=r.ActiveXObject?function(){for(var a in W)W[a](0,1)}:!1,kd=0,W;c.ajaxSettings.xhr=r.ActiveXObject?function(){var a;if(!(a=!this.isLocal&&kb()))a:{try{a=new r.ActiveXObject("Microsoft.XMLHTTP");break a}catch(b){}a=void 0}return a}:kb;var Ya=c.ajaxSettings.xhr();c.extend(c.support,{ajax:!!Ya,cors:!!Ya&&"withCredentials"in Ya});c.support.ajax&&c.ajaxTransport(function(a){if(!a.crossDomain||c.support.cors){var b;
return{send:function(d,e){var f=a.xhr(),g,h;a.username?f.open(a.type,a.url,a.async,a.username,a.password):f.open(a.type,a.url,a.async);if(a.xhrFields)for(h in a.xhrFields)f[h]=a.xhrFields[h];a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType);!a.crossDomain&&!d["X-Requested-With"]&&(d["X-Requested-With"]="XMLHttpRequest");try{for(h in d)f.setRequestHeader(h,d[h])}catch(i){}f.send(a.hasContent&&a.data||null);b=function(d,h){var i,k,l,n,o;try{if(b&&(h||f.readyState===4)){b=m;if(g){f.onreadystatechange=
c.noop;Xa&&delete W[g]}if(h)f.readyState!==4&&f.abort();else{i=f.status;l=f.getAllResponseHeaders();n={};if((o=f.responseXML)&&o.documentElement)n.xml=o;n.text=f.responseText;try{k=f.statusText}catch(p){k=""}!i&&a.isLocal&&!a.crossDomain?i=n.text?200:404:i===1223&&(i=204)}}}catch(r){h||e(-1,r)}n&&e(i,k,n,l)};if(!a.async||f.readyState===4)b();else{g=++kd;if(Xa){if(!W){W={};c(r).unload(Xa)}W[g]=b}f.onreadystatechange=b}},abort:function(){b&&b(0,1)}}}});var Ga={},z,D,ld=/^(?:toggle|show|hide)$/,md=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,
Ba,mb=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],ja;c.fn.extend({show:function(a,b,d){if(a||a===0)return this.animate(I("show",3),a,b,d);for(var d=0,e=this.length;d<e;d++){a=this[d];if(a.style){b=a.style.display;if(!c._data(a,"olddisplay")&&b==="none")b=a.style.display="";b===""&&c.css(a,"display")==="none"&&c._data(a,"olddisplay",nb(a.nodeName))}}for(d=0;d<e;d++){a=this[d];if(a.style){b=a.style.display;
if(b===""||b==="none")a.style.display=c._data(a,"olddisplay")||""}}return this},hide:function(a,b,d){if(a||a===0)return this.animate(I("hide",3),a,b,d);a=0;for(b=this.length;a<b;a++)if(this[a].style){d=c.css(this[a],"display");d!=="none"&&!c._data(this[a],"olddisplay")&&c._data(this[a],"olddisplay",d)}for(a=0;a<b;a++)if(this[a].style)this[a].style.display="none";return this},_toggle:c.fn.toggle,toggle:function(a,b,d){var e=typeof a==="boolean";c.isFunction(a)&&c.isFunction(b)?this._toggle.apply(this,
arguments):a==null||e?this.each(function(){var b=e?a:c(this).is(":hidden");c(this)[b?"show":"hide"]()}):this.animate(I("toggle",3),a,b,d);return this},fadeTo:function(a,b,c,e){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c,e)},animate:function(a,b,d,e){var f=c.speed(b,d,e);if(c.isEmptyObject(a))return this.each(f.complete,[false]);a=c.extend({},a);return this[f.queue===false?"each":"queue"](function(){f.queue===false&&c._mark(this);var b=c.extend({},f),d=this.nodeType===
1,e=d&&c(this).is(":hidden"),j,k,l,m,n;b.animatedProperties={};for(l in a){j=c.camelCase(l);if(l!==j){a[j]=a[l];delete a[l]}k=a[j];if(c.isArray(k)){b.animatedProperties[j]=k[1];k=a[j]=k[0]}else b.animatedProperties[j]=b.specialEasing&&b.specialEasing[j]||b.easing||"swing";if(k==="hide"&&e||k==="show"&&!e)return b.complete.call(this);if(d&&(j==="height"||j==="width")){b.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(c.css(this,"display")==="inline"&&c.css(this,"float")===
"none")if(c.support.inlineBlockNeedsLayout){k=nb(this.nodeName);if(k==="inline")this.style.display="inline-block";else{this.style.display="inline";this.style.zoom=1}}else this.style.display="inline-block"}}if(b.overflow!=null)this.style.overflow="hidden";for(l in a){d=new c.fx(this,b,l);k=a[l];if(ld.test(k))d[k==="toggle"?e?"show":"hide":k]();else{j=md.exec(k);m=d.cur();if(j){k=parseFloat(j[2]);n=j[3]||(c.cssNumber[l]?"":"px");if(n!=="px"){c.style(this,l,(k||1)+n);m=(k||1)/d.cur()*m;c.style(this,
l,m+n)}j[1]&&(k=(j[1]==="-="?-1:1)*k+m);d.custom(m,k,n)}else d.custom(m,k,"")}}return true})},stop:function(a,b){a&&this.queue([]);this.each(function(){var a=c.timers,e=a.length;for(b||c._unmark(true,this);e--;)if(a[e].elem===this){if(b)a[e](true);a.splice(e,1)}});b||this.dequeue();return this}});c.each({slideDown:I("show",1),slideUp:I("hide",1),slideToggle:I("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){c.fn[a]=function(a,c,f){return this.animate(b,
a,c,f)}});c.extend({speed:function(a,b,d){var e=a&&typeof a==="object"?c.extend({},a):{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};e.duration=c.fx.off?0:typeof e.duration==="number"?e.duration:e.duration in c.fx.speeds?c.fx.speeds[e.duration]:c.fx.speeds._default;e.old=e.complete;e.complete=function(a){c.isFunction(e.old)&&e.old.call(this);e.queue!==false?c.dequeue(this):a!==false&&c._unmark(this)};return e},easing:{linear:function(a,b,c,e){return c+e*a},
swing:function(a,b,c,e){return(-Math.cos(a*Math.PI)/2+0.5)*e+c}},timers:[],fx:function(a,b,c){this.options=b;this.elem=a;this.prop=c;b.orig=b.orig||{}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]||c.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a,b=c.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||
b==="auto"?0:b:a},custom:function(a,b,d){function e(a){return f.step(a)}var f=this,g=c.fx;this.startTime=ja||lb();this.start=a;this.end=b;this.unit=d||this.unit||(c.cssNumber[this.prop]?"":"px");this.now=this.start;this.pos=this.state=0;e.elem=this.elem;e()&&(c.timers.push(e)&&!Ba)&&(Ba=setInterval(g.tick,g.interval))},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},
hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var b=ja||lb(),d=true,e=this.elem,f=this.options,g;if(a||b>=f.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();f.animatedProperties[this.prop]=true;for(g in f.animatedProperties)f.animatedProperties[g]!==true&&(d=false);if(d){f.overflow!=null&&!c.support.shrinkWrapBlocks&&c.each(["","X","Y"],function(a,b){e.style["overflow"+b]=f.overflow[a]});
f.hide&&c(e).hide();if(f.hide||f.show)for(var h in f.animatedProperties)c.style(e,h,f.orig[h]);f.complete.call(e)}return false}if(f.duration==Infinity)this.now=b;else{a=b-this.startTime;this.state=a/f.duration;this.pos=c.easing[f.animatedProperties[this.prop]](this.state,a,0,1,f.duration);this.now=this.start+(this.end-this.start)*this.pos}this.update();return true}};c.extend(c.fx,{tick:function(){for(var a=c.timers,b=0;b<a.length;++b)a[b]()||a.splice(b--,1);a.length||c.fx.stop()},interval:13,stop:function(){clearInterval(Ba);
Ba=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.style(a.elem,"opacity",a.now)},_default:function(a){a.elem.style&&a.elem.style[a.prop]!=null?a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit:a.elem[a.prop]=a.now}}});c.expr&&c.expr.filters&&(c.expr.filters.animated=function(a){return c.grep(c.timers,function(b){return a===b.elem}).length});var nd=/^t(?:able|d|h)$/i,Yb=/^(?:body|html)$/i;c.fn.offset="getBoundingClientRect"in l.documentElement?
function(a){var b=this[0],d;if(a)return this.each(function(b){c.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);try{d=b.getBoundingClientRect()}catch(e){}var f=b.ownerDocument,g=f.documentElement;if(!d||!c.contains(g,b))return d?{top:d.top,left:d.left}:{top:0,left:0};b=f.body;f=Ha(f);return{top:d.top+(f.pageYOffset||c.support.boxModel&&g.scrollTop||b.scrollTop)-(g.clientTop||b.clientTop||0),left:d.left+(f.pageXOffset||c.support.boxModel&&
g.scrollLeft||b.scrollLeft)-(g.clientLeft||b.clientLeft||0)}}:function(a){var b=this[0];if(a)return this.each(function(b){c.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);c.offset.initialize();var d,e=b.offsetParent,f=b.ownerDocument,g=f.documentElement,h=f.body;d=(f=f.defaultView)?f.getComputedStyle(b,null):b.currentStyle;for(var i=b.offsetTop,j=b.offsetLeft;(b=b.parentNode)&&b!==h&&b!==g;){if(c.offset.supportsFixedPosition&&
d.position==="fixed")break;d=f?f.getComputedStyle(b,null):b.currentStyle;i=i-b.scrollTop;j=j-b.scrollLeft;if(b===e){i=i+b.offsetTop;j=j+b.offsetLeft;if(c.offset.doesNotAddBorder&&(!c.offset.doesAddBorderForTableAndCells||!nd.test(b.nodeName))){i=i+(parseFloat(d.borderTopWidth)||0);j=j+(parseFloat(d.borderLeftWidth)||0)}e=b.offsetParent}if(c.offset.subtractsBorderForOverflowNotVisible&&d.overflow!=="visible"){i=i+(parseFloat(d.borderTopWidth)||0);j=j+(parseFloat(d.borderLeftWidth)||0)}}if(d.position===
"relative"||d.position==="static"){i=i+h.offsetTop;j=j+h.offsetLeft}if(c.offset.supportsFixedPosition&&d.position==="fixed"){i=i+Math.max(g.scrollTop,h.scrollTop);j=j+Math.max(g.scrollLeft,h.scrollLeft)}return{top:i,left:j}};c.offset={initialize:function(){var a=l.body,b=l.createElement("div"),d,e,f,g=parseFloat(c.css(a,"marginTop"))||0;c.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});b.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";
a.insertBefore(b,a.firstChild);d=b.firstChild;e=d.firstChild;f=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=e.offsetTop!==5;this.doesAddBorderForTableAndCells=f.offsetTop===5;e.style.position="fixed";e.style.top="20px";this.supportsFixedPosition=e.offsetTop===20||e.offsetTop===15;e.style.position=e.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=e.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==g;a.removeChild(b);
c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b=b+(parseFloat(c.css(a,"marginTop"))||0);d=d+(parseFloat(c.css(a,"marginLeft"))||0)}return{top:b,left:d}},setOffset:function(a,b,d){var e=c.css(a,"position");if(e==="static")a.style.position="relative";var f=c(a),g=f.offset(),h=c.css(a,"top"),i=c.css(a,"left"),j={},k={};if((e==="absolute"||e==="fixed")&&c.inArray("auto",[h,i])>-1){k=f.position();
e=k.top;i=k.left}else{e=parseFloat(h)||0;i=parseFloat(i)||0}c.isFunction(b)&&(b=b.call(a,d,g));if(b.top!=null)j.top=b.top-g.top+e;if(b.left!=null)j.left=b.left-g.left+i;"using"in b?b.using.call(a,j):f.css(j)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),e=Yb.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top=d.top-(parseFloat(c.css(a,"marginTop"))||0);d.left=d.left-(parseFloat(c.css(a,"marginLeft"))||0);e.top=e.top+(parseFloat(c.css(b[0],
"borderTopWidth"))||0);e.left=e.left+(parseFloat(c.css(b[0],"borderLeftWidth"))||0);return{top:d.top-e.top,left:d.left-e.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||l.body;a&&!Yb.test(a.nodeName)&&c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(b){var f,g;if(b===m){f=this[0];if(!f)return null;return(g=Ha(f))?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:c.support.boxModel&&
g.document.documentElement[d]||g.document.body[d]:f[d]}return this.each(function(){(g=Ha(this))?g.scrollTo(!a?b:c(g).scrollLeft(),a?b:c(g).scrollTop()):this[d]=b})}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();c.fn["inner"+b]=function(){var a=this[0];return a&&a.style?parseFloat(c.css(a,d,"padding")):null};c.fn["outer"+b]=function(a){var b=this[0];return b&&b.style?parseFloat(c.css(b,d,a?"margin":"border")):null};c.fn[d]=function(a){var f=this[0];if(!f)return a==null?null:this;
if(c.isFunction(a))return this.each(function(b){var f=c(this);f[d](a.call(this,b,f[d]()))});if(c.isWindow(f)){var g=f.document.documentElement["client"+b],h=f.document.body;return f.document.compatMode==="CSS1Compat"&&g||h&&h["client"+b]||g}if(f.nodeType===9)return Math.max(f.documentElement["client"+b],f.body["scroll"+b],f.documentElement["scroll"+b],f.body["offset"+b],f.documentElement["offset"+b]);if(a===m){f=c.css(f,d);g=parseFloat(f);return c.isNaN(g)?f:g}return this.css(d,typeof a==="string"?
a:a+"px")}});return c}(window);


var optimizelyCode = function(){
var DATA={"log_host":"log.optimizely.com","goal_expressions":{"235765762":["(https?://)?(www\\.)?sciencedirect\\.com\\/science\\/article\\/pii/?"],"6455691946":["^jhp\\_pdf$"],"651270148":["^click\\_cond\\_download\\_pdf$"],"702291977":["^click\\_show\\_less$"],"5580922890":["^toc\\_fig$"],"7979431947":["^beta\\_close\\_srp$"],"6179131393":["^more\\_fromauthor$"],"8211400719":["^srp\\_ddm$"],"2848860177":["^pdf\\_supp\\_clicks$"],"6344511508":["^ap708\\_pdfbuttonking$"],"6326710294":["^ap700\\_savetolibraryking$"],"2108641304":["^srch\\_rslt\\_pdf\\_clicks$"],"3334490138":["^special\\_art\\_hover\\_clicks\\ $"],"2106540064":["^click\\_export\\_button$"],"234061870":["^relatedarticles$"],"6447100386":["^ap735\\_pdfsmallking$"],"6178191407":["^ap\\_author\\_link$"],"3180570675":["^custom\\_outline\\_link\\_clicks$"],"7597060152":["^ab989\\_fav$"],"323375162":["^related\\_pdf\\_clicks$"],"3475040315":["^hp\\_classic\\_any\\_click$"],"6298900540":["^pdf\\_recommend\\_art\\_clicks$"],"5627080765":["^srp\\_savesearchalert$"],"5627080766":["^srp\\_supcontent$"],"2879160385":["^pdf\\_menu\\_article\\_clicks$"],"7518840898":["^ap785\\_xbutton$"],"2421690446":["^custom\\_refwork\\_export$"],"6997950543":["^ab835\\_fta$"],"2025730130":["^ms\\_tababstract\\_click$"],"6156951635":["^xbutton\\_popup$"],"2449420376":["^custom\\_mobi\\_clicks$"],"1572782170":["^click\\_rightslink$"],"3071230045":["^auth\\_click$"],"2917900382":["^reference\\_pdffta$"],"5145931108":["^savealert\\_search$"],"1426212961":["^citing\\_art\\_clicks$"],"5591670800":["^export$"],"2644310120":["^sim\\_image\\_modal$"],"6168072296":["^join\\_step2complete$"],"7529132141":["^ap785\\_modal\\_close$"],"234020984":["^viewsimilarmethods1$"],"2663260286":["^custom\\_keyword\\_suggest\\_engagement$"],"2005250175":["^ms\\_tabspace\\_goto\\_click$"],"6261770241":["^click\\_electronic\\_holdings\\_report\\_logged\\_out$"],"2866950276":["^refcard\\_pdffta$"],"5626032261":["^srp\\_filtertopic$"],"5626032262":["^srp\\_abstract$"],"5626032263":["^srp\\_displayresults$"],"5610240136":["^ap\\_export$"],"582680716":["^click\\_download\\_pdf$"],"6431756428":["^jhp\\_favourites$"],"267798672":["^toolbar\\_reference\\_clicks$"],"2635190417":["^sim\\_carousel\\_img$"],"2855440532":["^ref\\_clickhover$"],"7102510787":["^ab838\\_journal$"],"2101430429":["^custom\\_recommend\\_pdf\\_clicks$"],"6358120132":["^ap708\\_articletitleking$"],"3345490085":["^cited\\_pdf\\_hover\\_clicks\\ $"],"6451841195":["^ab755\\_fta\\_pdf$"],"2854580398":["^ref\\_click$"],"1001627827":["^recommend\\_section\\_toggle\\_clicks$"],"6886711486":["^purchase\\_pdf\\_option$"],"5635530783":["^srp\\_sort$"],"3053990082":["^auth\\_engagement$"],"314730694":["^deepdyve\\_clicks$"],"7131390273":["^ab838\\_pages$"],"5601990860":["^pdf\\_button$"],"266713294":["^sd\\_cited\\_by\\_click$"],"2877780183":["^pdf\\_arrow\\_clicks$"],"234254552":["^viewsimilarmethods2$"],"348500185":["^login\\_popup\\_clicks$"],"268519642":["^ref\\_article\\_clicks$"],"292234033":["^check\\_access\\_clicks$"],"400281824":["^pdfking\\_art\\_title$"],"400281825":["^pdf\\_clicks\\_frm\\_pdfking$"],"7771883747":["^book\\_contents\\_search$"],"7951755328":["^cp\\_ddm\\_small\\_button$"],"3148640488":["^inline\\_imgs\\_clicks$"],"267857276":["^outline\\_reference\\_clicks$"],"5631690985":["^srp\\_imageresults$"],"529311987":["^srch\\_rslt\\_non\\_sub\\_art\\_clicks$"],"590741749":["^click\\_export\\_mendeley$"],"6455030006":["^ap735\\_ok\\_webimporter$"],"6455030007":["^ap735\\_savetolibrary$"],"2856450298":["^ref\\_hover$"],"3195300092":["^custom\\_outline\\_ref\\_clicks$"],"3067420925":["^ctrlf\\_directclick$"],"1404062763":["^article\\_inline\\_img\\_clicks$"],"2630910213":["^sim\\_image\\_pane$"],"5498683420311552":["^redirect\\_pdf\\_click$"],"5898000660":["^export\\_menu$"],"5617903893":["^srp\\_searchsubmit$"],"5617903894":["^srp\\_firstpagepdf$"],"2432080153":["^combined\\_pdf\\_icon\\_clicks$"],"5159952665":["^topicalerttotal$"],"8027983918":["^ppv$"],"593461535":["^click\\_export\\_refworks$"],"700283176":["^engagement\\_showmore\\_section$"],"5573734790":["^toc\\_any$"],"6346090798":["^ap708\\_failed\\_webimporter$"],"399120688":["^pdf\\_clicks\\_frm\\_ref$"],"6173772081":["^stats\\_completed$"],"7549630773":["^submit\\-intent$"],"840995128":["^wiki\\_link\\_engagement$"],"2926410041":["^custom\\_author\\_sec\\_clicks$"],"6137983291":["^signin\\_pageload$"],"5103362366":["^artpage\\_pdfbutton$"],"7131461951":["^jhp\\_download\\_pdfs$"],"952817985":["^custom\\-engagement\\-sresultpage$"],"2019920194":["^ms\\_tabspace\\_saveas\\_click$"],"8020574540":["^first$"],"7882680657":["^beta\\_link\\_srp$"],"267856214":["^pdfclicks$"],"401971544":["^pdf\\_clicks\\_frm\\_rel$"],"5762922693263360":["^redirect\\_similar\\_method\\_expand$"],"315623772":["^login\\_click$"],"2094100538":["^ms\\_engagement$"],"324714847":["^declutter\\_rel\\_articles$"],"324714848":["^declutter\\_reference\\_clicks$"],"4035901797":["^articlehoverlinkwikipedia$"],"2090920299":["^custom\\_citing\\_art\\_clicks$"],"7011510640":["^ap\\_pageload$"],"6595750259":["^aa784\\_readblog\\\t$"],"6371170679":["^ap708\\_exportbutton$"],"2021540226":["^ms\\_summary\\_click$"],"3536390535":["^ap\\_ddm\\_button$"],"6169821576":["^more\\_citedby$"],"2702760330":["^custom\\_survey\\_rejected$"],"3061490059":["^auth\\_hover$"],"315662734":["^\\ subj\\_area\\_clicks$"],"6599750034":["^ap799\\_savetolibrary$"],"6922111381":["^deepdyve$"],"2108402075":["^srch\\_rslt\\_art\\_clicks$"],"7775482268":["^html\\_fta$"],"2676760991":["^custom\\_suggest\\_api\\_fail$"],"5106473375":["^artpage\\_recarttitles$"],"2448300450":["^custom\\_export\\_revenue\\_event$"],"267637156":["^ref\\_section\\_clicks$"],"2607770022":["^ctrlf\\_query$"],"669706665":["^pdf\\_icon\\_clicks$"],"273391005":["^article\\_body\\_clicks$"],"3339041207":["^recommend\\_art\\_hover\\_clicks\\ $"],"3486040506":["^hp\\_classic\\_publbysubject\\_click$"],"6566950672":["^ap799\\_xbutton$"],"5154601375":["^journalbookseriestotal$"],"6483630530":["^jhp\\_search\\_title$"],"6595670467":["^aa784\\_footer\\_eng$"],"6465210822":["^ab775\\_pageload\\_srp$"],"1006858698":["^special\\_iss\\_html\\_clicks$"],"2894961099":["^ref\\_engagement$"],"3596360140":["^pdfking\\_adbanner$"],"399651279":["^pdf\\_clicks$"],"3606770130":["^pdfking\\_fta$"],"3189490133":["^custom\\_ref\\_fta\\_clicks$"],"1594980831":["^share\\_linkedin\\_clicks$"],"5234870754":["^artpage\\_header$"],"5164480996":["^journalhomepage\\_alert$"],"7518992871":["^ap785\\_pdf\\_menu\\_engagement$"],"616940010":["^click\\_citing\\_article\\_title$"],"3574190162":["^ap\\_pdf\\_menu\\_issuelink$"],"5169850875":["^bookseries\\_alert$"],"2095370749":["^custom\\_spec\\_iss\\_art\\_clicks$"],"5182550525":["^artpage\\_search\\_submit$"],"5350227875725312":["^redirect\\_similar\\_method\\_right$"],"5753721349":["^ap\\_exportbutton$"],"7938159112":["^cp\\_pdf\\_menu\\_reclink$"],"5156651530":["^searchalerttotal$"],"2865560078":["^pdf\\_menu\\_ext\\_clicks$"],"3134650895":["^imgviewer\\_downloadfullsize$"],"6791490306":["^direct\\_export$"],"7014810138":["^ab835\\_subscribe$"],"6164181534":["^ap\\_related\\_articles$"],"6443842080":["^ab775\\_pageload$"],"6542275110":["^aa784\\_twitter$"],"273351209":["^expanded\\_search\\_clicks$"],"1019472427":["^recommend\\_html\\_clicks$"],"3239580205":["^custom\\_quick\\_srch\\_start$"],"6170722865":["^join\\_step1pageload$"],"6170722866":["^signin\\_signin$"],"330092638":["^declutter\\_srch\\_rslt\\_art\\_clicks$"],"246917686":["^outlineh3sec$"],"6263820855":["^click\\_electronic\\_holdings\\_report\\_logged\\_in$"],"349551164":["^login\\_full\\_clicks$"],"7603520061":["^ab989\\_subscribe$"],"1596181057":["^share\\_weibo\\_clicks$"],"6368500290":["^ap708\\_pdfsmallking$"],"5177242183":["^srp\\_ddm\\_submit$"],"340890190":["^export\\_clicks$"],"4056713810":["^articlelink$"],"6443483734":["^ap735\\_articletitleking$"],"2722130520":["^custom\\_suggest\\_api\\_call$"],"1599410778":["^share\\_mailto\\_clicks$"],"5170530914":["^alertpage\\_searchalert2$"],"7526472291":["^ap785\\_ok\\_webimporter$"],"1003528806":["^citing\\_html\\_clicks$"],"6448371472":["^ab755\\_fta\\_entitled$"],"6434052715":["^jhp\\_feeds$"],"6434052716":["^jhp\\_alerts\\_total$"],"3063290490":["^ctrlf\\_keycombi$"],"324924037":["^delutter\\_rel\\_ref\\_clicks$"],"8242739850":["^password$"],"5631771277":["^srp\\_advert$"],"268503702":["^ref\\_pdf\\_clicks$"],"7579183555":["^ab989\\_fta$"],"204774042":["^engagement$"],"7687570076":["^jhp\\_sup$"],"246878886":["^outineh4sec$"],"6925851304":["^signin\\_intent$"],"4047411883":["^articlehoveropen$"],"5178100395":["^search\\_submit$"],"2565700271":["^topic\\_panel\\_links$"],"2852510386":["^refcard\\_htmlfta$"],"1476561587":["^engagement\\-img$"],"246995637":["^outlinetables$"],"7591750330":["^ap785\\_webimporter$"],"5162603197":["^adv\\_search$"],"3065320136":["^auth\\_rclick$"],"1010387404":["^citing\\_section\\_toggle\\_clicks$"],"5164210892":["^alertpage\\_editsearchalert$"],"6593090257":["^aa784\\_youtube$"],"6267710170":["^click\\_electronic\\_holdings\\_report\\_all$"],"330556124":["^abst\\_preview\\_clicks$"],"350280416":["^article\\_clicks$"],"3866540773":["^srp\\_purchase\\_pdf$"],"7774612262":["^book\\_contents$"],"6354602736":["^ap708\\_savetolibrary$"],"5173281521":["^srp\\_ddm\\_intent$"],"330554109":["^declutter\\_srch\\_rslt\\_pdf\\_clicks$"],"6438062850":["^ap735\\_pdfbutton$"],"7511642888":["^ap785\\_modal\\_not\\_again$"],"315529994":["^pub\\_jrnl\\_book\\_clicks$"],"5939090186":["^toc\\_content$"],"6159952651":["^doclinks\\_scopus$"],"399880975":["^rel\\_ref\\_art\\_clicks$"],"7597880089":["^ab989\\_newarticle\\_feed$"],"3567510308":["^ap\\_recom\\_arttitle$"],"6898031396":["^check\\_access$"],"324860721":["^outline\\_click$"],"1404242728":["^recommend\\_art\\_clicks$"],"7684930346":["^jhp\\_ftas$"],"7933917999":["^cp\\_ddm\\_arttitle$"],"2870330504":["^refcard\\_engagement$"],"657210162":["^click\\_uncond\\_download\\_pdf$"],"3543880499":["^srp\\_pdfbutton\\_click$"],"6450912733":["^jhp\\_html$"],"5172220726":["^artpage\\_hdr\\_registration$"],"2706070328":["^custom\\_survey\\_accepted$"],"6324300602":["^ap700\\_articletitleking$"],"2434460477":["^custom\\_bibtex\\_export$"],"7686440797":["^jhp\\_ddm\\_ftas$"],"2220790597":["^srp\\_pdf\\_fta$"],"6431756427":["^jhp\\_search\\_vol\\_issue$"],"6368150668":["^ap708\\_xbutton$"],"6923951260":["^fulltext\\_elsewhere$"],"6962871120":["^ab835\\_newarticle\\_feed$"],"6164153169":["^join\\_step2pageload$"],"6164153170":["^join\\_step2signin$"],"2521910104":["^ctrlf\\_snippet$"],"6177223822":["^signin\\_createaccount$"],"2441530206":["^lightweight\\_pdf\\_icon\\_clicks$"],"7511334031":["^ap785\\_ddm\\_small\\_button$"],"5099512674":["^artpage\\_recartmore$"],"700521319":["^view\\_more\\_clicks$"],"5749781990":["^ap\\_pdfbutton$"],"330484598":["^refine\\_srch\\_clicks$"],"330484599":["^img\\_srch\\_clicks$"],"7688572051":["^jhp\\_pdf\\_unentitled$"],"7732290025":["^ab1090\\_subscribe$"],"5164962362":["^hdr\\_journals$"],"7947897731":["^cp\\_ddm\\_button$"],"5633461124":["^srp\\_html\\_unentitled$"],"348111750":["^header\\_clicks$"],"590410631":["^click\\_recomm\\_article\\_pdf$"],"2604080018":["^ctrlf\\_scroll$"],"3501130644":["^custom\\_subj\\_area\\_clicks$"],"321780633":["^related\\_article\\_clicks$"],"3351600026":["^related\\_art\\_hover\\_clicks\\ $"],"3553480175":["^ap\\_pdf\\_menu\\_reclink$"],"7124790172":["^ab838\\_all$"],"6444483495":["^jhp\\_search$"],"398941097":["^rel\\_ref\\_header\\_clicks$"],"7527201705":["^ap785\\_ddm\\_arttitle$"],"2123570092":["^custom\\_citing\\_pdf\\_clicks$"],"2686350255":["^custom\\_quick\\_srch\\_submit$"],"1419840436":["^rel\\_book\\_art\\_clicks$"],"7129710750":["^jhp\\_purchase\\_pdfs$"],"210080704":["^clicks\\_in\\_article\\_outline$"],"2521011145":["^ctrlf\\_updown$"],"5635740618":["^srp\\_researchhighlights$"],"8203052193":["^srp\\_download\\_pdf$"],"573150159":["^click\\_download\\_epub$"],"5633610703":["^srp\\_html\\_fta$"],"2863920081":["^pdf\\_label\\_clicks$"],"6595650513":["^aa784\\_facebook$"],"5625680870":["^srp\\_pdf\\_fta$"],"5625680871":["^srp\\_graphabstract$"],"7686932987":["^abstract\\_preview\\_links$"],"2759730163":["^custom\\_ftapdf\\_chapter$"],"6329870845":["^ap700\\_pdfbuttonking$"],"5163011062":["^footer$"],"7130840067":["^ab838\\_fta$"],"7130840068":["^ab838\\_volume$"],"3549250572":["^srp\\_title\\_click$"],"2869900304":["^total\\_pdf\\_fta$"],"2114190362":["^custom\\_spec\\_iss\\_pdf\\_clicks$"],"4062213153":["^articlehoverlink$"],"5167631398":["^alertpage\\_journalbookintent$"],"5595092008":["^export\\_bibtex$"],"754480171":["^srch\\_ddm\\_downloads$"],"3844070920":["^srp\\_fta$"],"6593960797":["^ap799\\_exportbutton$"],"5152201781":["^alertpage\\_topicalert1$"],"5152201782":["^savealert\\_total$"],"267801659":["^search\\_clicks$"],"6595720254":["^aa784\\_createalerts$"],"6448641088":["^ap735\\_xbutton$"],"8029383746":["^fta\\_usage$"],"2570480709":["^topic\\_panel\\_toggle$"],"3547061324":["^ap\\_pdf\\_menu\\_pdflink$"],"5169953869":["^hdr\\_help$"],"6326490194":["^ap\\_savetolibraryking$"],"6587620439":["^aa784\\_onlinetutorials$"],"5744682073":["^ap\\_savetolibrary$"],"5836598562258944":["^redirect\\_search$"],"8206601307":["^srp\\_abstract\\_html$"],"3565870176":["^ap\\_ddm\\_arttitle$"],"2884871266":["^reference\\_htmlfta$"],"1425380453":["^spec\\_iss\\_pdf\\_clicks$"],"6319000677":["^ap\\_articletitleking$"],"8039261288":["^submit$"],"7121710186":["^ab838\\_searchbox$"],"5889450282319872":["^redirect\\_similar\\_method\\_center$"],"6359821422":["^ap708\\_savetolibraryking$"],"8155288687":["^reg\\_intent$"],"2635230324":["^sim\\_link\\_pane$"],"675392631":["^citedby\\_art\\_clicks$"],"3494810744":["^custom\\_title\\_clicks$"],"1019454591":["^related\\_ref\\_section\\_toggle\\_clicks$"],"3497690240":["^hp\\_classic\\_advsearch\\_click$"],"7515511999":["^ap785\\_main\\_pdf\\_button$"],"282208107":["^srch\\_rslt\\_pdf\\_clicks$"],"6286960832":["^pdf\\_button\\_clicks$"],"3515520136":["^ap\\_main\\_pdf\\_button$"],"5630490817":["^ddm\\_downloadpdfs$"],"595950734":["^click\\_citing\\_artice\\_pdf$"],"5166341262":["^artpage\\_adv\\_search$"],"3528600720":["^srp\\_result\\_click$"],"8168973456":["^srp\\_fta\\_html$"],"493690003":["^srch\\_rslt\\_preview\\_clicks$"],"324904084":["^declutter\\_app\\_clicks$"],"482950295":["^srch\\_rslt\\_unsub\\_pdf\\_clicks$"],"6432793756":["^ap735\\_savetolibraryking$"],"6327030941":["^ap700\\_savetolibrary$"],"322229410":["^show\\_more\\_clicks$"],"7505712325":["^ap785\\_ddm\\_button$"],"593501350":["^click\\_recomm\\_article\\_title$"],"410511217":["^rel\\_art\\_clicks$"],"6328790191":["^ap700\\_pdfbutton\\_total$"],"2745900213":["^custom\\_ftahtml\\_chapter$"],"6169312437":["^xbutton\\_flyout$"],"6323553464":["^ap700\\_pdfsmallking$"],"2893620411":["^custom\\_orcid\\_link\\_clicks$"],"6311562427":["^ap708\\_pdfbutton$"],"2990630080":["^pdfking\\_ddm\\_count$"],"6318300352":["^ap700\\_xbutton$"],"2752740546":["^custom\\_fta\\_chapter$"],"3148270795":["^outline\\_imgs\\_clicks$"],"5169830927":["^savealert\\_journalbookseries$"],"2108030151":["^custom\\_rel\\_book\\_pdf\\_clicks$"],"2021840075":["^related\\_rh\\_click$"],"1608754382":["^share\\_reddit\\_clicks$"],"2018940112":["^ms\\_tabgabstract\\_click$"],"340759763":["^ereader\\_clicks$"],"6309300429":["^fc\\_link\\_click$"],"7677100055":["^jhp\\_multi\\_purchase$"],"3571961053":["^ap\\_pdf\\_menu\\_engagement$"],"1365908705":["^figure\\_option\\_clicks$"],"5635730659":["^srp\\_accesstype$"],"1378893037":["^outline\\_img\\_clicks$"],"5169833198":["^hdr\\_registration$"],"3124421843":["^carousel\\_mosaic\\_clicks$"],"3537980671":["^ap\\_any\\_click$"],"273261824":["^srch\\_rslt\\_article\\_clicks$"],"5188220167":["^hdr\\_books$"],"2030370058":["^pdf\\_main\\_click$"],"266745100":["^sd\\_pdf\\_click$"],"5165980940":["^srp\\_editsearchalertdone$"],"6356501777":["^ap708\\_ok\\_webimporter$"],"7020410135":["^ab835\\_openaccess\\_feed$"],"7729670019":["^ab1090\\_openaccess\\_feed$"],"1408742687":["^carousel\\_outline\\_img\\_clicks$"],"7513421088":["^ap785\\_modal\\_atol$"],"6169822498":["^join\\_step1signin$"],"2431540516":["^custom\\_export\\_clicks$"],"6432953637":["^jhp\\_alerts$"],"5144712491":["^alertpage\\_addalert$"],"7529393452":["^ap785\\_pdf\\_menu\\_issuelink$"],"6442921262":["^ab755\\_fta\\_html$"],"6460460338":["^ab755\\_fta\\_oa$"],"7507344695":["^registration\\-intent$"],"8178281784":["^srp\\_fta\\_pdf$"],"3499920699":["^custom\\_latest\\_article\\_clicks$"],"2660990274":["^custom\\_author\\_suggest\\_engagement$"],"330069320":["^app\\_clicks$"],"7732170056":["^ab1090\\_fav$"],"315624781":["^advance\\_search\\_clicks$"],"3494270293":["^hp\\_classic\\_publbytitle\\_click$"],"315739487":["^remote\\_access\\_clicks$"],"5177591138":["^artpage\\_hdr\\_help$"],"1369507173":["^article\\_ref\\_link\\_clicks$"],"5943590245":["^toc\\_outline$"],"2443320681":["^custom\\_pdf\\_clicks$"],"5795222889":["^ap\\_xbutton$"],"2014240108":["^ms\\_tabms\\_click$"],"3359260015":["^cited\\_art\\_hover\\_clicks\\ $"],"5631690984":["^srp\\_advsearch$"],"3125670804":["^carousel\\_arrowbuttons$"],"1420930426":["^citing\\_pdf\\_clicks$"],"750646651":["^click\\_oa\\_link$"],"266648956":["^export\\_citation\\_click$"],"7726200188":["^ab1090\\_newarticle\\_feed$"],"6453321373":["^ap735\\_exportbutton$"],"6307380609":["^html\\_recommend\\_art\\_clicks$"],"2614640004":["^ctrlf\\_search$"],"5160091019":["^savealert\\_topics$"],"324754829":["^declutter\\_pdf\\_clicks$"],"3311820177":["^recommend\\_pdf\\_hover\\_clicks$"],"7527511618":["^ap785\\_failed\\_webimporter$"],"2120560021":["^custom\\_rel\\_book\\_art\\_clicks$"],"6454570390":["^ap735\\_failed\\_webimporter$"],"5162991004":["^srp\\_ddm\\_download$"],"3488621996":["^custom\\_advanced\\_srch\\_clicks$"],"5813231020":["^ap\\_failed\\_webimporter$"],"5625580973":["^srp\\_applyfilter$"],"6587600303":["^aa784\\_reaxys$"],"5581542833":["^export\\_citation$"],"2095351220":["^custom\\_pageload$"],"7950776080":["^cp\\_pdf\\_menu\\_engagement$"],"705303997":["^click\\_show\\_more$"],"6315331006":["^ap700\\_exportbutton$"],"6332710339":["^ap700\\_ok\\_webimporter$"],"7509651702":["^ap785\\_modal\\_signin$"],"6465961420":["^jhp\\_search\\_author$"],"6158413262":["^show\\_stats\\_center$"],"2880220625":["^pdf\\_fta\\_total$"],"2765510099":["^custom\\_prelims\\_nonintro$"],"3783620062":["^page\\_load$"],"529262047":["^srch\\_rslt\\_sub\\_art\\_clicks$"],"6796570082":["^cite\\_export$"],"5621411301":["^ddm\\_purchasepdfs$"],"2435710439":["^custom\\_ascii\\_export$"],"3198150121":["^custom\\_ref\\_sec\\_clicks$"],"2234230254":["^srp\\_html\\_fta$"],"3355500015":["^special\\_pdf\\_hover\\_clicks\\ $"],"8167011824":["^pageload\\_srp$"],"3477663220":["^hp\\_classic\\_top25\\_iframe\\_click$"],"2709870073":["^metrics\\_panel\\_toggle$"],"7507353083":["^registration\\-ok$"],"3480890881":["^custom\\_quick\\_srch\\_revenue$"],"3829751302":["^srp\\_html\\_abstract$"],"5952792460001280":["^redirect\\_cite\\_article$"],"7730710024":["^ab1090\\_fta$"],"246842904":["^outlinemmcs$"],"324734493":["^declutter\\_cite\\_clicks$"],"5595930884":["^savetorefworks$"],"6176161317":["^view\\_stats\\_button$"],"7002070571":["^ab836\\_oarhive$"],"3511760429":["^ap\\_ddm\\_small\\_button$"],"3501370928":["^hp\\_classic\\_latest\\_click$"],"7683790384":["^jhp\\_preview$"],"329999922":["^purchase\\_clicks$"],"7514222173":["^ap785\\_modal\\_no\\_thanks$"],"5507540916":["^signin\\_widget$"],"267783745":["^releated\\_article\\_clicks$"],"4510484459945984":["^redirect\\_related\\_articles$"],"3150630477":["^imgviewer\\_carouselarrowbuttons$"],"7101771357":["^ab838\\_author$"],"2515820128":["^ctrlf\\_start$"],"7774512737":["^chapter\\_contents$"],"292107876":["^purchase\\_pdf\\_clicks$"],"7743501929":["^jhp\\_ftas\\_event$"],"2417020528":["^custom\\_epub\\_clicks$"],"5631540848":["^srp\\_nextprev$"],"2760810099":["^custom\\_prelims\\_intro$"],"5662985246736384":["^redirect\\_outline\\_click$"],"7939488264":["^cp\\_recom\\_arttitle$"],"268506742":["^ref\\_outward\\_clicks$"],"5163511414":["^alertpage\\_searchalert1$"],"5163511415":["^srp\\_searchalert$"],"5229123193":["^header$"],"3486240379":["^hp\\_classic\\_quicksearch\\_submit$"],"1420920444":["^recommend\\_pdf\\_clicks$"],"1420920445":["^rel\\_book\\_pdf\\_clicks$"],"482760325":["^srcl\\_rslt\\_sub\\_pdf\\_clicks$"],"5806710405":["^ap\\_ok\\_webimporter$"],"2008510095":["^ms\\_card\\_saveas\\_click$"],"6444922516":["^jhp\\_abstract$"],"6919632533":["^hdr\\_signin$"],"7122110102":["^ab838\\_issue$"],"5592120985":["^export\\_text$"],"8008017563":["^fta$"],"2906300062":["^ref\\_rclick$"],"5631540847":["^srp\\_filter$"],"700352162":["^engagement\\_authorgroup$"],"1408552614":["^carousel\\_img\\_clicks$"],"7010260592":["^ab836\\_oa$"],"6593980461":["^aa784\\_elsevierconnect$"],"6179141292":["^prevnext\\_popup$"],"1622660783":["^share\\_twitter\\_clicks$"],"6595100029":["^aa784\\_scopus$"],"2860820150":["^pdf\\_icon\\_clicks$"],"4045571780":["^articleclicklink$"],"246414966":["^outlineh2sec$"],"2440230598":["^custom\\_mendeley\\_export$"],"8097980022":["^get\\_ft\\_elsewhere$"],"6770970316":["^share\\_menu$"],"675653329":["^recommed\\_art\\_clicks$"],"5103574742":["^artpage\\_recarttoggle$"],"3151160271":["^imgviewer\\_arrowbuttons$"],"330036956":["^ddm\\_clicks$"],"330036957":["^highlights\\_clicks$"],"6601330397":["^aa784\\_mendeley$"],"3146720991":["^imgviewer\\_viewinarticle$"],"8011604944":["^filter$"],"3521660655":["^srp\\_advsearch\\_click$"],"5630801658":["^srp\\_rss$"],"7006611200":["^ab836\\_fta$"],"5168930563":["^artpage\\_hdr\\_books$"],"2508220168":["^ctrlf\\_engagement$"],"6402967304":["^jhp\\_preview\\_links$"],"7697880841":["^jhp\\_pdf\\_entitled$"],"7771772204":["^pdf\\_fta$"],"5607610128":["^savetomendeley$"],"5607610129":["^export\\_ris$"],"5607610130":["^export\\_plusabstract$"],"6580862739":["^aa784\\_elsevierpublish$"],"695197464":["^click\\_pdf\\_download$"],"1607640857":["^share\\_any\\_clicks$"],"8253226779":["^username$"],"7567554338":["^registration\\-error$"],"6251501350":["^click\\_electronic\\_holdings\\_report$"],"8265783079":["^pageload$"],"7555682090":["^submit\\-ok$"],"6329880881":["^ap700\\_pdfbutton$"],"4043921201":["^pdf\\_icon\\_clicks$"],"2712420147":["^metrics\\_panel\\_more\\_details$"],"7940605748":["^cp\\_pdf\\_menu\\_pdflink$"],"2408040249":["^extra\\_lightweight\\_pdf\\_icon\\_clicks$"],"7529301822":["^ap785\\_pdf\\_menu\\_artlink$"],"956051270":["^pdffta\\-sresultpage$"],"324648778":["^declutter\\_srch\\_clicks$"],"6165911370":["^prevnext\\_flyout$"],"697112397":["^wiki\\_link\\_clicks$"],"8177174351":["^pageload\\_nonsrp$"],"5600440157":["^toc\\_tbl$"],"6439511904":["^ap735\\_pdfbuttonking$"],"6911401832":["^purchase\\_pdf$"],"2093070187":["^custom\\_recommend\\_art\\_clicks$"],"8014930812":["^purchase\\_pdf\\_options$"],"2007050094":["^ms\\_tabhighlight\\_click$"],"5166110574":["^artpage\\_footer$"],"614580081":["^click\\_export\\_file$"],"6322413426":["^ap700\\_failed\\_webimporter$"],"6929381238":["^purchase\\_pdf\\_button$"],"6200715152195584":["^redirect\\_cited\\_by$"],"3989530945":["^ci\\_engagement$"],"1019277194":["^related\\_ref\\_html\\_clicks$"],"8159965066":["^signin$"],"2609080205":["^sim\\_link\\_modal$"],"3534450575":["^srp\\_quicksearch\\_submit$"],"1113091985":["^homepage\\_anchor\\_clicks$"],"6449151889":["^jhp\\_access\\_filter$"],"7354730388":["^body\\_engagement$"],"6319990679":["^ap\\_pdfbuttonking$"],"1412040602":["^spec\\_iss\\_art\\_clicks$"],"5161940892":["^alertpage\\_topicalert2$"],"247519153":["^outlinefigures$"],"6592941042":["^aa784\\_google$"],"2439540661":["^custom\\_ris\\_export$"],"6463401916":["^ab755\\_fta$"],"6302941121":["^pdf\\_king\\_clicks$"],"3481761735":["^hp\\_classic\\_nav\\_journalbook\\_click$"],"997097419":["^special\\_issue\\_section\\_toggle\\_clicks$"],"7579563983":["^ab989\\_openaccess\\_feed$"],"3352580052":["^related\\_pdf\\_hover\\_clicks\\ $"],"3131840472":["^mosaic\\_viewallfigures$"],"591251419":["^click\\_download\\_mobilink$"],"5110312929":["^artpage\\_recartpdf$"],"1616011259":["^share\\_facebook\\_clicks$"],"8174301861":["^rent\\_deepdyve$"],"5624631275":["^ap\\_pdf\\_button$"],"8239214929":["^srp\\_fta\\_combined$"],"8167290863":["^institution\\_signin$"],"6998890483":["^ab835\\_fav$"],"5634680820":["^srp\\_export$"],"5168920570":["^artpage\\_hdr\\_journals$"]},"experiments":{"8282709535":{"code":"/*config************************************************************/\nvar opt_isProd  = true;\nvar opt_debug   = false;\nvar opt_expid   = 8282709535;\nvar opt_abid    = 'AB1296-tech';\n/*logging & metrics*************************************************/ \nwindow['AB'+opt_expid] = {\n  config: {expid: opt_expid,\n           abid: opt_abid,\n           varid: null,\n           env: opt_isProd ? 'PROD' : 'CERT',\n           debug: opt_debug,\n           pagetype: null\n          },\n  init:function(varid, pageid){ //init() is called from variation code.\n\t\tthis.config.varid = varid;\n    if (pageid === 'srp'){\n      window.optimizely.push([\"trackEvent\", \"pageload_srp\"]);\n    } else\n    if (pageid === 'nonsrp'){\n      window.optimizely.push([\"trackEvent\", \"pageload\"]);\n    } else {\n    \treturn;  \n    }\n    \n    this.variations(varid); \n\t},  \n  \n  variations:function(varid){  \n    \n  },\n  \n \tmetrics:function(){    \n\t}\n};","name":"AB-1296 SD Search Pageload Verification - Tech","variation_ids":["8293233457","8288935671"],"urls":[{"match":"substring","value":"www.sciencedirect.com"},{"match":"substring","value":"www.sciencedirect.com/search?"}],"enabled_variation_ids":["8293233457","8288935671"]},"8228660863":{"code":"(function() {\n\nvar md5cycle = function(x, k) {\nvar a = x[0], b = x[1], c = x[2], d = x[3];\n\na = ff(a, b, c, d, k[0], 7, -680876936);\nd = ff(d, a, b, c, k[1], 12, -389564586);\nc = ff(c, d, a, b, k[2], 17,  606105819);\nb = ff(b, c, d, a, k[3], 22, -1044525330);\na = ff(a, b, c, d, k[4], 7, -176418897);\nd = ff(d, a, b, c, k[5], 12,  1200080426);\nc = ff(c, d, a, b, k[6], 17, -1473231341);\nb = ff(b, c, d, a, k[7], 22, -45705983);\na = ff(a, b, c, d, k[8], 7,  1770035416);\nd = ff(d, a, b, c, k[9], 12, -1958414417);\nc = ff(c, d, a, b, k[10], 17, -42063);\nb = ff(b, c, d, a, k[11], 22, -1990404162);\na = ff(a, b, c, d, k[12], 7,  1804603682);\nd = ff(d, a, b, c, k[13], 12, -40341101);\nc = ff(c, d, a, b, k[14], 17, -1502002290);\nb = ff(b, c, d, a, k[15], 22,  1236535329);\n\na = gg(a, b, c, d, k[1], 5, -165796510);\nd = gg(d, a, b, c, k[6], 9, -1069501632);\nc = gg(c, d, a, b, k[11], 14,  643717713);\nb = gg(b, c, d, a, k[0], 20, -373897302);\na = gg(a, b, c, d, k[5], 5, -701558691);\nd = gg(d, a, b, c, k[10], 9,  38016083);\nc = gg(c, d, a, b, k[15], 14, -660478335);\nb = gg(b, c, d, a, k[4], 20, -405537848);\na = gg(a, b, c, d, k[9], 5,  568446438);\nd = gg(d, a, b, c, k[14], 9, -1019803690);\nc = gg(c, d, a, b, k[3], 14, -187363961);\nb = gg(b, c, d, a, k[8], 20,  1163531501);\na = gg(a, b, c, d, k[13], 5, -1444681467);\nd = gg(d, a, b, c, k[2], 9, -51403784);\nc = gg(c, d, a, b, k[7], 14,  1735328473);\nb = gg(b, c, d, a, k[12], 20, -1926607734);\n\na = hh(a, b, c, d, k[5], 4, -378558);\nd = hh(d, a, b, c, k[8], 11, -2022574463);\nc = hh(c, d, a, b, k[11], 16,  1839030562);\nb = hh(b, c, d, a, k[14], 23, -35309556);\na = hh(a, b, c, d, k[1], 4, -1530992060);\nd = hh(d, a, b, c, k[4], 11,  1272893353);\nc = hh(c, d, a, b, k[7], 16, -155497632);\nb = hh(b, c, d, a, k[10], 23, -1094730640);\na = hh(a, b, c, d, k[13], 4,  681279174);\nd = hh(d, a, b, c, k[0], 11, -358537222);\nc = hh(c, d, a, b, k[3], 16, -722521979);\nb = hh(b, c, d, a, k[6], 23,  76029189);\na = hh(a, b, c, d, k[9], 4, -640364487);\nd = hh(d, a, b, c, k[12], 11, -421815835);\nc = hh(c, d, a, b, k[15], 16,  530742520);\nb = hh(b, c, d, a, k[2], 23, -995338651);\n\na = ii(a, b, c, d, k[0], 6, -198630844);\nd = ii(d, a, b, c, k[7], 10,  1126891415);\nc = ii(c, d, a, b, k[14], 15, -1416354905);\nb = ii(b, c, d, a, k[5], 21, -57434055);\na = ii(a, b, c, d, k[12], 6,  1700485571);\nd = ii(d, a, b, c, k[3], 10, -1894986606);\nc = ii(c, d, a, b, k[10], 15, -1051523);\nb = ii(b, c, d, a, k[1], 21, -2054922799);\na = ii(a, b, c, d, k[8], 6,  1873313359);\nd = ii(d, a, b, c, k[15], 10, -30611744);\nc = ii(c, d, a, b, k[6], 15, -1560198380);\nb = ii(b, c, d, a, k[13], 21,  1309151649);\na = ii(a, b, c, d, k[4], 6, -145523070);\nd = ii(d, a, b, c, k[11], 10, -1120210379);\nc = ii(c, d, a, b, k[2], 15,  718787259);\nb = ii(b, c, d, a, k[9], 21, -343485551);\n\nx[0] = add32(a, x[0]);\nx[1] = add32(b, x[1]);\nx[2] = add32(c, x[2]);\nx[3] = add32(d, x[3]);\n\n};\n\nvar cmn = function(q, a, b, x, s, t) {\na = add32(add32(a, q), add32(x, t));\nreturn add32((a << s) | (a >>> (32 - s)), b);\n};\n\nvar ff = function(a, b, c, d, x, s, t) {\nreturn cmn((b & c) | ((~b) & d), a, b, x, s, t);\n};\n\nvar gg = function(a, b, c, d, x, s, t) {\nreturn cmn((b & d) | (c & (~d)), a, b, x, s, t);\n};\n\nvar hh = function(a, b, c, d, x, s, t) {\nreturn cmn(b ^ c ^ d, a, b, x, s, t);\n};\n\nvar ii = function(a, b, c, d, x, s, t) {\nreturn cmn(c ^ (b | (~d)), a, b, x, s, t);\n};\n\nvar md51 = function(s) {\ntxt = '';\nvar n = s.length,\nstate = [1732584193, -271733879, -1732584194, 271733878], i;\nfor (i=64; i<=s.length; i+=64) {\nmd5cycle(state, md5blk(s.substring(i-64, i)));\n}\ns = s.substring(i-64);\nvar tail = [0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0];\nfor (i=0; i<s.length; i++)\ntail[i>>2] |= s.charCodeAt(i) << ((i%4) << 3);\ntail[i>>2] |= 0x80 << ((i%4) << 3);\nif (i > 55) {\nmd5cycle(state, tail);\nfor (i=0; i<16; i++) tail[i] = 0;\n}\ntail[14] = n*8;\nmd5cycle(state, tail);\nreturn state;\n};\n\n/* there needs to be support for Unicode here,\n * unless we pretend that we can redefine the MD-5\n * algorithm for multi-byte characters (perhaps\n * by adding every four 16-bit characters and\n * shortening the sum to 32 bits). Otherwise\n * I suggest performing MD-5 as if every character\n * was two bytes--e.g., 0040 0025 = @%--but then\n * how will an ordinary MD-5 sum be matched?\n * There is no way to standardize text to something\n * like UTF-8 before transformation; speed cost is\n * utterly prohibitive. The JavaScript standard\n * itself needs to look at this: it should start\n * providing access to strings as preformed UTF-8\n * 8-bit unsigned value arrays.\n */\nvar md5blk = function(s) { /* I figured global was faster.   */\nvar md5blks = [], i; /* Andy King said do it this way. */\nfor (i=0; i<64; i+=4) {\nmd5blks[i>>2] = s.charCodeAt(i)\n+ (s.charCodeAt(i+1) << 8)\n+ (s.charCodeAt(i+2) << 16)\n+ (s.charCodeAt(i+3) << 24);\n}\nreturn md5blks;\n};\n\nvar hex_chr = '0123456789abcdef'.split('');\n\nvar rhex = function(n)\n{\nvar s='', j=0;\nfor(; j<4; j++)\ns += hex_chr[(n >> (j * 8 + 4)) & 0x0F]\n+ hex_chr[(n >> (j * 8)) & 0x0F];\nreturn s;\n};\n\nvar hex = function(x) {\nfor (var i=0; i<x.length; i++)\nx[i] = rhex(x[i]);\nreturn x.join('');\n};\n\nwindow.md5 = function(s) {\nreturn hex(md51(s));\n};\n\n/* this function is much faster,\nso if possible we use it. Some IEs\nare the only ones I know of that\nneed the idiotic second function,\ngenerated by an if clause.  */\n\nvar add32 = function(a, b) {\nreturn (a + b) & 0xFFFFFFFF;\n};\n\nif (md5('hello') != '5d41402abc4b2a76b9719d911017c592') {\nvar add32 = function(x, y) {\nvar lsw = (x & 0xFFFF) + (y & 0xFFFF),\nmsw = (x >> 16) + (y >> 16) + (lsw >> 16);\nreturn (msw << 16) | (lsw & 0xFFFF);\n};\n}\n\n})();\n\n/*config************************************************************/\nvar opt_isProd  = true;\nvar opt_debug   = false;\nvar opt_expid   = 8081092309;\nvar opt_abid    = 'AB1210-sd-1';\n/*logging & metrics*************************************************/ \nwindow['AB'+opt_expid] = {\n  start: new Date(),\n  config: {expid: opt_expid,\n           abid: opt_abid,\n           varid: null,\n           env: opt_isProd ? 'PROD' : 'CERT',\n           debug: opt_debug },\n  \n  logger: ABlogger.getInstance(),\n  \n  log:function(evt, evtdata){\n    evtdata = evtdata || {};\n    this.logger.push({'settings':this.config, 'evt':evt, 'evtdata':evtdata});\n  },\n  \n  init:function(varid, pageid){ //init() is called from variation code.\n\t\tthis.config.varid = varid;\n    window.optimizely.push([\"trackEvent\", \"ap_pageload\"]);\n    this.log('pageload', {'pii':SDM.pm.pii});\n    \n    $('#pdfLink').html('View PDF').parent().css('width','110px');\n              \n    //pdf_button\n    $('#pdfLink, .largeIcon').live(\"mousedown\", $.proxy(function(){\t\n  \t\twindow.optimizely.push([\"trackEvent\", \"pdf_button\"]);\n      this.log('pdf_button', {'pii':SDM.pm.pii});\n\t\t}, this));\n    \n    var pii = SDM.pm.pii;\n\t\tvar url = null;\n    var ourl= $('#pdfLink').attr('pdfurl');\n\t\tif (pii){\n\t\t\tpii = pii.toUpperCase();\n\t\t\tvar piimd5 = window.md5(pii);\n      if (varid === 'control1'){\n        url = 'http://ph5.tnq.co.in/enhanced-pdf/d/viewer.html?t='+piimd5+'&test='+this.config.expid+'&pii='+pii+'&v=1';\n        $('#pdfLink').attr('opdfurl', ourl);\n        $('#pdfLink').attr('pdfurl', url);\n\t\t\t\t$('#pdfLink').attr('href', url);\n      }\n\t\t}\n\t}\n};\n","audiences":[6966860956],"conditional_code":function(activate, options) {
  var doiregex1 = /\d{2}.\d{4}\/.*\.(\d{4})\..*/i;
  var doiregex2 = /\d{2}.\d{4}\/.*\.\d{4}\.(\d{2}).*/i;
  var doi = SDM.pm.doi;
  var year = doiregex1.exec(doi);
  year = year ? year[1] : null;
  var month = doiregex2.exec(doi);
  month = month ? month[1] : null;
  if (  (year==='2006'&&(month==='06'||month==='07'||month==='08'||month==='09'||month==='10'||month==='11'||month==='12'))||
        year==='2007'||year==='2008'||year==='2009'||year==='2010'||year==='2011'||
        year==='2012'||year==='2013'||year==='2014'||year==='2015'||
        (year==='2016'&&(month==='01'||month==='02'||month==='03'||month==='04'))){
    activate();
  }
},"activation_mode":"conditional","name":"AB-1260 Enhanced PDF V5 (nonab)","variation_ids":["8227911290"],"urls":[{"match":"substring","value":"www.sciencedirect.com/science/article/pii/"},{"negate":true,"match":"substring","value":"www.sciencedirect.com/science/article/pii/B"}],"enabled_variation_ids":["8227911290"]},"8288895809":{"code":"/*config************************************************************/\nvar opt_isProd  = true;\nvar opt_debug   = false;\nvar opt_expid   = 8288895809;\nvar opt_abid    = 'AB1296-classic';\n/*logging & metrics*************************************************/ \nwindow['AB'+opt_expid] = {\n  config: {expid: opt_expid,\n           abid: opt_abid,\n           varid: null,\n           env: opt_isProd ? 'PROD' : 'CERT',\n           debug: opt_debug,\n           pagetype: null\n          },\n  init:function(varid, pageid){ //init() is called from variation code.\n\t\tthis.config.varid = varid;\n    if (pageid === 'srp'){\n      window.optimizely.push([\"trackEvent\", \"pageload_srp\"]);\n    } else\n    if (pageid === 'nonsrp'){\n      window.optimizely.push([\"trackEvent\", \"pageload\"]);\n    } else {\n    \treturn;  \n    }\n    \n    this.variations(varid); \n\t},  \n  \n  variations:function(varid){  \n    \n  },\n  \n \tmetrics:function(){    \n\t}\n};","name":"AB-1296 SD Search Pageload Verification - Classic","variation_ids":["8288862947","8287738097"],"urls":[{"match":"substring","value":"www.sciencedirect.com"},{"match":"regex","value":".+\\?_ob=ArticleListURL.+_ArticleListID=.*"}],"enabled_variation_ids":["8288862947","8287738097"]},"8248383908":{"code":"//*config************************************************************/\nvar opt_isProd = true;\nvar opt_debug = false;\nvar opt_expid = 8248383908;\nvar opt_abid = 'AB1270';\n/*logging & metrics*************************************************/\nwindow['AB' + opt_expid] = {\n\tstart: new Date(),\n\tconfig: {\n\t\texpid: opt_expid,\n\t\tabid: opt_abid,\n\t\tvarid: null,\n\t\tenv: opt_isProd ? 'PROD' : 'CERT',\n\t\tdebug: opt_debug\n\t},\n\t//logger: ABlogger.getInstance(),\n\tinit: function(varid, pageid) { //init() is called from variation code.\n\t\tthis.config.varid = varid;\n\t\tthis.config.pageid = pageid;\n\t\tthis.variation(varid, pageid);\n\t\tthis.metrics(varid, pageid);\n\t},\n\tlog: function(evt, evtdata) {\n\t\tevtdata = evtdata || {};\n\t\tthis.logger.push({\n\t\t\t'settings': this.config,\n\t\t\t'evt': evt,\n\t\t\t'evtdata': evtdata\n\t\t});\n\t},\n\tvariation: function(varid, pageid) {\n\t\tvar chevron = $('span.signIn_User').first();\n\t\t/// open in the same page\n\t\tif (varid == 'var1' && pageid == 'other') {\n\t\t\tsigninButton = $('li.els-header-navigation-section:contains(\"Register\")').first().clone();\n\t\t\tsigninButton.attr(\"id\", \"signinButton\");\n\t\t\t$('ul.JournalsAndBooks.els-header-navigation').first().append(signinButton);\n\t\t\t$('li.els-header-icons-item.els-header-user').hide();\n\t\t\t$('li#signinButton > a').attr(\"href\", \"https://www.sciencedirect.com/user/login?returnURL=\" + window.location.href);\n\t\t\t$('li#signinButton > a').text(\"\");\n\t\t\t$('li#signinButton > a').addClass('els-header-user-link');\n\t\t\t$('li#signinButton').css(\"margin-left\", \"32px\");\n\t\t\t$('li#signinButton').css(\"margin-right\", \"0\");\n\t\t\t$('li#signinButton > a').append(chevron);\n\t\t\t$('head').append('<style type=\"text/css\">span.ccs-icon.svg-sdfe-arrow-down.els-header-user-icon-signin {visibility:visible;}</style>');\n\t\t}\n\t\telse if (varid == 'var2' && pageid == 'other') {\n\t\t\t// open in new tab\n\t\t\tsigninButton = $('li.els-header-navigation-section:contains(\"Register\")').first().clone();\n\t\t\tsigninButton.attr(\"id\", \"signinButton\");\n\t\t\t$('ul.JournalsAndBooks.els-header-navigation').first().append(signinButton);\n\t\t\t$('li.els-header-icons-item.els-header-user').hide();\n\t\t\t$('li#signinButton > a').text(\"\");\n\t\t\t$('li#signinButton > a').addClass('els-header-user-link');\n\t\t\t$('li#signinButton').css(\"margin-left\", \"32px\");\n\t\t\t$('li#signinButton').css(\"margin-right\", \"0\");\n\t\t\t$('li#signinButton > a').append(chevron);\n\t\t\tvar url = \"https://www.sciencedirect.com/user/login?returnURL=\" + window.location.href;\n\t\t\t$('li#signinButton  a').attr(\"href\", url);\n\t\t\t$('li#signinButton  a').click(function() {\n\t\t\t\t$(this).attr('target', url);\n\t\t\t});\n\t\t\t$('head').append('<style type=\"text/css\">span.ccs-icon.svg-sdfe-arrow-down.els-header-user-icon-signin {visibility:visible;}</style>');\n\t\t}\n\t\telse {\n\t\t\t//return;\n\t\t}\n\t},\n\tmetrics: function(varid, pageid) {\n\n\t\tif (varid != 'control' && pageid == 'signin') {\n\t\t\t// signin : Variation - signin page only\n\t\t\t$('form.login-form').live(\"submit\", function() {\n\t\t\t\twindow.optimizely.push([\"trackEvent\", \"signin\"]);\n\t\t\t});\n\t\t\t// reg_intent : Variation - signin page\n\t\t\t$('a.create-account-link.link-inherit').live(\"mousedown\", function() {\n\t\t\t\twindow.optimizely.push([\"trackEvent\", \"reg_intent\"]);\n\t\t\t});\n\t\t\t// institution_signin : Variation - signin page\n\t\t\t$('ul.institutional-login svg.login-selection, ul.institutional-login a.link-inherit').live(\"mousedown\", function() {\n\t\t\t\twindow.optimizely.push([\"trackEvent\", \"institution_signin\"]);\n\t\t\t});\n\t\t}\n\t\t// signin : Control - header, all pages\n\t\t$('form.SignInForm').live(\"submit\", function() {\n\t\t\twindow.optimizely.push([\"trackEvent\", \"signin\"]);\n\t\t});\n\t\t// signin_intent : header, all pages\n\t\t$('ul.els-header-icons span.signIn_User, li#signinButton a').live(\"mousedown\", function() {\n\t\t\twindow.optimizely.push([\"trackEvent\", \"signin_intent\"]);\n\t\t});\n\t\t// reg_intent : header, all pages\n\t\t$('li.els-header-navigation-section:contains(\"Register\")').live(\"mousedown\", function() {\n\t\t\twindow.optimizely.push([\"trackEvent\", \"reg_intent\"]);\n\t\t});\n\t\t// institution_signin : Control - header, all pages\n\t\t$('ul.ccs-signin-institution a').live(\"mousedown\", function() {\n\t\t\twindow.optimizely.push([\"trackEvent\", \"institution_signin\"]);\n\t\t});\n    // username  \n    $('input#reg-userid').live(\"mousedown\", function() {\n    \n\t\t\twindow.optimizely.push([\"trackEvent\", \"username\"]);\n\t\t});\n    // username  control\n    $('input#ccs-signin-username-input').live(\"mousedown\", function() {\n    \n\t\t\twindow.optimizely.push([\"trackEvent\", \"username\"]);\n\t\t});\n    \n    // password\n    $('input#reg-password').live(\"mousedown\", function() {\n\t\t\twindow.optimizely.push([\"trackEvent\", \"password\"]);\n    \n\t\t});\n    \n    // password control\n    $('div.ccs-signin-form span.ccs-signin-form-right input.ccs-signin-password[title=\"Please enter your password here\"]').live(\"mousedown\", function() {\n\t\t\twindow.optimizely.push([\"trackEvent\", \"password\"]);\n    \n\t\t});\n    \n\t},\n};","audiences":[8246852957],"conditional_code":"// logged out users : signin widget is present (control) OR user is on new login page already\n($('span.signIn_User').length>0 && !$('span.signIn_User').hasClass('loggedInUserName')) || $('div.login-submit').length > 0","activation_mode":"conditional","name":"AB-1270 - Sign in Page V3","variation_ids":["8241681451","8248840605","8246187666"],"ignore":8000,"urls":[{"match":"substring","value":"www.sciencedirect.com"},{"match":"simple","value":"www.sciencedirect.com/user/login"}],"enabled_variation_ids":["8241681451","8248840605","8246187666"]},"8209531978":{"code":"/*config************************************************************/\nvar opt_isProd  = true;\nvar opt_debug   = false;\nvar opt_expid   = 8209531978;\nvar opt_abid    = 'AB1259-classic';\n/*logging & metrics*************************************************/ \nwindow['AB'+opt_expid] = {\n  config: {expid: opt_expid,\n           abid: opt_abid,\n           varid: null,\n           env: opt_isProd ? 'PROD' : 'CERT',\n           debug: opt_debug,\n           pagetype: null\n          },\n  logger: ABlogger.getInstance(),\n  log:function(evt, evtdata){\n    evtdata = evtdata || {};\n    this.logger.push({'settings':this.config, 'evt':evt, 'evtdata':evtdata});  \n  },\n  init:function(varid, pageid){ //init() is called from variation code.\n\t\tthis.config.varid = varid;\n    if (pageid === 'srp'){\n    \tvar context_data= this.get_context_data(null);\n    \tthis.log('pageload_srp', context_data);\n      this.metrics(varid); \n    } else\n    if (pageid === 'nonsrp'){\n    \tvar akamai = this.get_akamai();\n    \tthis.log('pageload_nonsrp', {akamai:akamai});\n    } else {\n    \treturn;  \n    }\n    \n    this.variations(varid); \n\t},  \n  \n  variations:function(varid){  \n    \n  },\n  \n  get_akamai:function(){\n    //get Akamai cookie\n    var akamai = null;\n    var raw_akamai = OptUtil.getCookie('Search_AB_20170202');\n    if (raw_akamai === null){\n    \takamai = -1; \n    } else {\n    \takamai = raw_akamai;  \n    }\n    return akamai;\n  },\n  \n  get_context_data:function(elem){\n    \n    //get Akamai cookie\n    var akamai = this.get_akamai();\n    \n    //get pagenumber\n    var pagenum = -1;\n    var pageObj = $('input[name=\"_chunk\"]');\n    pagenum  = parseInt (pageObj.val(), 10) + 1;\n    if (isNaN(pagenum)) {\tpagenum = 'na'; }\n\n    \n    //get sort order\n    var sort = \"r\";\n    if ($('div.sortFilterContainer a[aria-controls=\"search_sort\"] span.selectedFilter:contains(\"Date\")').length > 0){\n      sort = \"d\";\n    }\n    \n    //get number of results and query\n    var nres = -1;\n    var query= 'na';\n    if ($('title').text() === 'ScienceDirect  Error'){\n      qmatch = $('.msgText').text().match(/.*was\\s*:(.*)\\s*[Did,Edit]*/);\n      if (qmatch){\n        query = qmatch[1];\n      } else {\n        query = 'unknown_query_from_error';\n      }\n      nres = 0;\n    } else {\n      qmatch = $('title').text().match(/.*Results - (.*) - ScienceDirect/);\n      if (qmatch){\n        query = qmatch[1];\n      } else {\n        query = 'unknown_query';  \n      }\n      nmatch = $('title').text().match(/([0-9,]*) Search/);\n      if (nmatch){\n        nres = parseInt(nmatch[1].replace(/,/g,''),10);\n      }\n    }\n\n    //get PIIs of results 1-20\n    var piis = {r1:-1,r2:-1,r3:-1,r4:-1,r5:-1,r6:-1,r7:-1,r8:-1,r9:-1,r10:-1,r11:-1,r12:-1,r13:-1,r14:-1,r15:-1,r16:-1,r17:-1,r18:-1,r19:-1,r20:-1};\n    var targetpii;\n    $('a.cLink.artTitle.S_C_artTitle').each(function(i,o){ \n      targetpii = $(o).attr('href').match(/pii\\/(.*)/);\n      if (i<20){\n        piis['r'+(i+1)] = targetpii[1];  \n      }\n    });\n    \n    //get docsubtypes of results 1-20\n    var docsubs = {r1:-1,r2:-1,r3:-1,r4:-1,r5:-1,r6:-1,r7:-1,r8:-1,r9:-1,r10:-1,r11:-1,r12:-1,r13:-1,r14:-1,r15:-1,r16:-1,r17:-1,r18:-1,r19:-1,r20:-1};\n    var targetdocsub;\n    $('a.cLink.artTitle.S_C_artTitle').each(function(i,o){ \n      if (i<20){\n        targetdocsub = $(o).attr('data-docsubtype');\n        docsubs['r'+(i+1)] = targetdocsub;  \n      }\n    });\n\n    var click_pii = 'na';\n    var click_docsub = 'na';\n    var click_rank= -1;\n    var click_entitled = 'na';\n    var click_openaccess = 'na';\n    if (elem){\n      //get entitlement for clicked result\n    \tvar parent = $(elem).parents('ul.article');\n    \tif (parent.has('li.external ul.extLinkBlock a[rel=nofollow].cLink').length !== 0){\n      \tclick_entitled = 'true';\n    \t} else {\n      \tclick_entitled = 'false';\n    \t}\n      \n      //get openaccess for clicked result\n    \tif (parent.has('span.iconPosition:contains(\"Open Access\")').length !== 0){\n      \tclick_openaccess = 'true';\n    \t} else {\n      \tclick_openaccess = 'false';\n    \t}      \n      \n      //get PII of clicked result\n      var target = parent.find('a.cLink.artTitle.S_C_artTitle');\n      targetpii = target.attr('href').match(/pii\\/(.*)/);\n      if (targetpii){\n        click_pii = targetpii[1];\n      }\n      \n      //get docsubtype of clicked result\n      //var target = parent.find('a.cLink.artTitle.S_C_artTitle');\n      targetdocsub = target.attr('data-docsubtype');\n      if (targetdocsub){\n        click_docsub = targetdocsub;\n      }\n\n      //get rank of clicked result\n      parent = $(elem).parents('li.detail');\n      var rankarr = (new RegExp( \"resultsView_([^&#]*)\" )).exec( parent.next().attr('id') );\n      if (rankarr && rankarr[1]){\n        click_rank = parseInt(rankarr[1],10);\n      } else {\n        click_rank = 'na';\n      }\n    }\n\n    return {akamai:akamai,\n      \t\t\tpagenum:pagenum,\n            sort:sort,\n            query:query,\n            nresults:nres,\n            nddm: -1,\n            piis:piis,\n            docsubs:docsubs,\n            click_pii:click_pii,\n            click_docsub:click_docsub,\n            click_rank:click_rank,\n           \tclick_oa:click_openaccess,\n           \tclick_entitled:click_entitled};     \n  },\n  \n \tmetrics:function(){\n\n\t\t//Purchase PDF button\n    $('div#bodyMainResults li.detail li.external ul.extLinkBlock a[rel=nofollow]:not(.cLink),div#bodyMainResults li.detail li.external ul.extLinkBlock a.icon_orderdocsci_dir').live(\"mousedown\",$.proxy(function(eventObject){\n\n      var context_data= this.get_context_data(eventObject.currentTarget);\n\n      this.log(\"srp_purchase_pdf\", context_data);\n      window.optimizely.push([\"trackEvent\", \"srp_purchase_pdf\"]);\n      \n    },this));\n\n    //Download PDF Button\n    $('div#bodyMainResults li.detail li.external ul.extLinkBlock a[rel=nofollow].cLink').live(\"mousedown\",$.proxy(function(eventObject){\n\n      var context_data= this.get_context_data(eventObject.currentTarget);\n\n      this.log(\"srp_download_pdf\", context_data);\n      window.optimizely.push([\"trackEvent\", \"srp_download_pdf\"]);\n      \n    },this));\n\n    //HTML FTA link\n    $('div#bodyMainResults li.title a[id^=title]').live(\"mousedown\",$.proxy(function(eventObject){\n\n      var context_data= this.get_context_data(eventObject.currentTarget);\n\n      if (context_data.click_entitled === 'true'){\n        window.optimizely.push([\"trackEvent\", \"srp_fta_html\"]);\n        this.log(\"srp_fta_html\", context_data);\n      } else {\n        window.optimizely.push([\"trackEvent\", \"srp_abstract_html\"]);\n        this.log(\"srp_abstract_html\", context_data);\n      }\n    },this));\n    \n\t//DDM FTA count\n\t$('div#appDialog.files button#ddm').live(\"mousedown\",$.proxy(function(eventObject){\n\t\tvar context_data= this.get_context_data(null);\n      \n    context_data.nddm = $('div#tableScroll tbody tr.row').length;\n      \n\t\tthis.log(\"srp_ddm\", context_data);\n\t\tvar revenue;\n\t\tif (context_data.nddm > 0){ revenue = 100 * context_data.nddm; }\n\t\twindow.optimizely.push([\"trackEvent\", \"srp_ddm\", {'revenue': revenue}]);\n      \n    },this));\n\t}\n};","audiences":[8243260669],"name":"AB-1259 AAB | Search Results V5 (Classic)","variation_ids":["8207862961","8206932658"],"urls":[{"match":"substring","value":"www.sciencedirect.com"},{"match":"regex","value":".+\\?_ob=ArticleListURL.+_ArticleListID=.*"}],"enabled_variation_ids":["8207862961","8206932658"]},"8165293003":{"code":"/*config************************************************************/\nvar opt_isProd  = true;\nvar opt_debug   = false;\nvar opt_expid   = 8165293003;\nvar opt_abid    = 'AB1215';\n/*logging & metrics*************************************************/ \nwindow['AB'+opt_expid] = {\n  start: new Date(),\n  config: {expid: opt_expid,\n           abid: opt_abid,\n           varid: null,\n           env: opt_isProd ? 'PROD' : 'CERT',\n           debug: opt_debug },\n  logger: ABlogger.getInstance(),\n  init:function(varid){ //init() is called from variation code.\n    this.config.varid = varid;\n    this.log('ap_pageload');\n    this.bootstrap();\n    },\n  log:function(evt, evtdata){\n    evtdata = evtdata || {};\n    //this.logger.push({'settings':this.config, 'evt':evt, 'evtdata':evtdata});\n  },\n  bootstrap:function(){\n    \n    //Main PDF button and time to PDF logged to ABlogger\n    if (this.config.varid === 'control1'){\n      //in control\n      $(\"a#pdfLink, div.icon_pdf .largeIcon\").live(\"mousedown\", $.proxy(function(){\n    \t\tvar timetopdf = (new Date()) - this.start;\n      \tthis.log('ap_main_pdf_button', {'timetopdf':timetopdf});\n        window.optimizely.push([\"trackEvent\", \"ap_main_pdf_button\", {'revenue':100}]);\n      },this));\n    } else {\n    \t//in any of the variations (click is not an FTA)\n      $(\"a.pdfHover, div.icon_pdf .largeIcon\").live(\"mousedown\", $.proxy(function(){\n    \t\tvar timetopdf = (new Date()) - this.start;\n      \tthis.log('ap_main_pdf_button', {'timetopdf':timetopdf});\n        window.optimizely.push([\"trackEvent\", \"ap_main_pdf_button\"]);\n      },this));\n    }\n                                                                         \n    //in any of the variations\n    if (this.config.varid !== 'control1'){\n      //PDF menu: pdf link\n      $(\"div.dropDown.pdfLink\").live(\"mousedown\", $.proxy(function(){\n      \tthis.log('ap_pdf_menu_pdflink');\n        window.optimizely.push([\"trackEvent\", \"ap_pdf_menu_engagement\"]);\n        window.optimizely.push([\"trackEvent\", \"ap_pdf_menu_pdflink\", {'revenue':100}]);\n    \t},this));\n      \n      //PDF menu: article+issue (click is not an FTA)\n      $(\"div.dropDown.issueLink\").live(\"mousedown\", $.proxy(function(){\n      \tthis.log('ap_pdf_menu_issuelink');\n        window.optimizely.push([\"trackEvent\", \"ap_pdf_menu_engagement\"]);\n        window.optimizely.push([\"trackEvent\", \"ap_pdf_menu_issuelink\"]);\n    \t},this));\n      \n      //PDF menu: article+recomm (click is not an FTA)\n      $(\"div.dropDown.recLink\").live(\"mousedown\", $.proxy(function(){\n      \tthis.log('ap_pdf_menu_reclink');\n        window.optimizely.push([\"trackEvent\", \"ap_pdf_menu_engagement\"]);\n        window.optimizely.push([\"trackEvent\", \"ap_pdf_menu_reclink\"]);\n    \t},this));\n    }\n\n    //DDM button, count #selected PDF's\n    $('#SuggestedArtList #multiPdfIcon').live('mousedown', $.proxy(function(){\n      \n       var mxx = $('#SuggestedArtList input[name=\"art\"]').length;\n       var cnt = $('#SuggestedArtList input[name=\"art\"]:checked').length;\n      if (cnt === 0) cnt  = $('#pdfkingContent  input[name=\"art\"]').length;\n      this.log('ap_ddm_button', {'pdf_ticks_count':cnt, 'pdf_max_count':mxx});\n\t\t\twindow.optimizely.push([\"trackEvent\", \"ap_ddm_button\", {'revenue':100*cnt}]);\n\t\t},this));\n    \n    //DDM: small PDF button\n    $('#SuggestedArtList a[class=cLink][title=\"Download PDF\"]').live('mousedown', $.proxy(function(){\n      this.log('ap_ddm_small_button');\n\t\t\twindow.optimizely.push([\"trackEvent\", \"ap_ddm_small_button\", {'revenue':100}]);\n\t\t},this));\n    \n    //DDM: click article title\n    $('#SuggestedArtList li.artTitle').live('mousedown', $.proxy(function(){\n      this.log('ap_ddm_arttitle');\n\t\t\twindow.optimizely.push([\"trackEvent\", \"ap_ddm_arttitle\", {'revenue':100}]);\n\t\t},this));\n    \n    \n    //HTML FTA from recommended box.\n    $(\"#recommend_related_articles li.artTitle a.cLink, #recommend_related_articles_new li.artTitle a.cLink\").live(\"mousedown\", $.proxy(function(){\n    \tthis.log('recommend_art_clicks');\n    \twindow.optimizely.push([\"trackEvent\", \"ap_recom_arttitle\", {'revenue':100}]);\n  \t},this));\n/*    \n    //Any click, for bounce rate\n    this.ap_any_click_done=false;\n    $('body').live(\"mousedown\", $.proxy(function(){\n\t\t\tif (this.ap_any_click_done===false){\n\t\t\t\tthis.ap_any_click_done=true;\n\t\t\t\tthis.log('ap_any_click');\n\t\t\t\twindow.optimizely.push([\"trackEvent\", \"ap_any_click\"]);\n\t\t\t}\n\t\t},this));\n*/    \n  },\n  get_referrer:function(){\n\t\tif (document.referrer === \"\"){\n    \treturn 'notset';  \n    } else {\n    \treturn document.referrer;\n    }\n  },\n  get_issn:function(){\n    var pii = window.location.href.split('/').pop();\n\t\tif (pii.charAt(0) == 'S' || pii.charAt(0) == 'B') { pii = pii.substr(1); }\n\t\tvar issn = pii.substring (0, 8);\n    return issn;\n  },\n  get_entitled:function(){\n    if (window.ab && 'entitled' in window.ab){\n    \treturn window.ab.entitled;\n    } else {\n    \treturn 'notset';  \n    }\n  }\n};\n\n\n\n//////////////////////////////////////////////////////////////////\n//////////////////////////////////////////////////////////////////\n\nwindow.DownloadMenu = {\n  linksToDisplay : {pdfLink : $('#pdfLink').attr('href'), recLink: '', issueLink: '' },\n  addPdfMenu : function(variationLinks, showIntermediateScreen) {\n  \n\tDownloadMenu.showIntermediateScreen = showIntermediateScreen;\n  \n  jQuery.extend(DownloadMenu.linksToDisplay, variationLinks);\n\t\n\n    var clonePdf = $('#pdfLink').clone();    \n    $('#pdfLink').remove();\n\t\n    $('#articleNav div.icon_pdf .largeIcon').addClass('var1');\n    $('#articleNav div.icon_pdf').append(\"<a class='pdfHover'>\" + $(clonePdf).attr('title') + \"</a>\");\n    $('#articleToolbar').append('<div class=\"extendedPdfBox\"><div class=\"arrow\"></div><div class=\"dropDown pdfLink first\"><span class=\"pdfIconSmall main\"></span></div></div>');\n    \n    \n    $(clonePdf).html(\"Article\");\n    $(clonePdf).attr('queryStr', '?_origin=sdlMenu&_zone=toolbar');\n    $('.extendedPdfBox .dropDown.pdfLink').append(clonePdf);\n    $(clonePdf).click(function() {      \n      createStateCookie($(this).attr(\"queryStr\"), event);\n    }); \n    $('form[name=\"Tag\"]').append('<input type=\"hidden\" name=\"recLinkFromMenu\" value=\"\">');\n    \n   \n    \n    if (DownloadMenu.linksToDisplay.recLink !== '' && DownloadMenu.linksToDisplay.recLink !== undefined) {\n        $('.extendedPdfBox').append('<div class=\"dropDown recLink\"><span class=\"pdfIconSmall rec\"></span><a rel=\"nofollow\" data-type=\"reclink\" class=\"recLink\" href=\"' + window.DownloadMenu.linksToDisplay.recLink + '\">Article + 20 recommended articles</a></div>');\t\n  \t}\n\n\t\n\tif (DownloadMenu.linksToDisplay.issueLink !== '' && DownloadMenu.linksToDisplay.issueLink !== undefined) {\n\t\t$('.extendedPdfBox').append('<div class=\"dropDown issueLink\"><span class=\"pdfIconSmall issue\"></span><a rel=\"nofollow\" data-type=\"issueLink\" class=\"issueLink\" href=\"' + window.DownloadMenu.linksToDisplay.issueLink + '\">Article + other articles in this issue</a></div>');\t\n\t}\n\t\n\t\n    DownloadMenu.alignDownloadMenu();\n    DownloadMenu.addEventListeners();\n    DownloadMenu.adjustStylesForScrollBar();   \n\n  },\n  alignDownloadMenu: function() {\n    $('.extendedPdfBox').css('left', jQuery(\".pdfHover\").position().left);\n  },\n  buildSuggestedArticleList:function(jsonStr, targetId, isIssueLink) {\n   \n    $('#'+targetId).html('');\n    $('input[name=\"recLinkFromMenu\"]').val('Y');\n    if (isIssueLink) {\n      $('form[name=\"Tag\"]').attr('action', SDM.ep.urlPrefix + '/issuedownload/download');\n      jQuery('#SuggestedArtList').addClass('scrollStyles');\n    } else {\n      $('form[name=\"Tag\"]').attr('action', SDM.ep.urlPrefix + '/suggestedArt/export');\n      //jQuery('#SuggestedArtList').removeClass('scrollStyles');\n      jQuery('#SuggestedArtList').addClass('scrollStyles');\n    }\n    \n    var closeBtn = $('.pdfModalWindowMsgBox .header').find('a.newCloseBtn').clone();\n    if (!$('ul.group .newCloseBtn')[0]) {\n       $('ul.group').append(closeBtn);\n    }\n    \n    $('.pdfModalWindowMsgBox .header').css('display', 'none');    \n    $('.pdfModalWindowMsgBox .newFooter').css('display', 'none');\n    \n    var origArtTitle = $('h1.svTitle').text();\n    \n    var oaStatus = '';\n    if ($('span.articleOAstatus')[0]) {\n      oaStatus = $('span.articleOAstatus').text().trim();\n    }\n    \n    var jrnlTitle = '';\n    if ($('.publicationHead ').hasClass('titleBanner')) {\n      jrnlTitle = $('.publicationHead .title').find('img').attr('alt');\n    } else {\n      jrnlTitle = $('.publicationHead .title').text();\n    }\n    \n    var volIssueDetails = $('div.head .volIssue').text();\n    var citationDetails = '';\n    if (jrnlTitle !== '') citationDetails += jrnlTitle;\n    if (volIssueDetails !== '') {\n      if (citationDetails !=='') {\n        citationDetails += ', ';\n      }\n      citationDetails += volIssueDetails;\n    }\n    \n    var authArray = [];\n    $('.authorName').each(function() { authArray.push($(this).text()); });\n    var authNames = authArray.join(\", \");\n    \n    var origArtDetails = '<ol class=\"artList\" style=\"margin-bottom:20px\">';    \n    origArtDetails += '<li class=\"selection\"><input class=\"checkBox grey\" type=\"checkbox\" name=\"art\" value=\"'+ SDM.pm.eid +'\" aria-labelledby=\"title_'+SDM.pm.pii+'\" checked readonly></li>';\n    origArtDetails += '<li class=\"artTitle\">' + origArtTitle + '</li>';\n    \n    \n    var artDetails = '';\n    if (oaStatus !== '') {\n        artDetails += '<span class=\"accessType\">' + oaStatus + '</span>';\n    }\n    if (artDetails !== '') {\n           origArtDetails += '<li class=\"artDetails\">';\n           origArtDetails += artDetails;\n           origArtDetails +='</li>';\n    }\n    \n    if (citationDetails !== '') {\n           origArtDetails += '<li class=\"source\">';\n           origArtDetails += citationDetails;\n           origArtDetails +='</li>';\n    }\n    \n    if (authNames !== '') {\n       origArtDetails += '<li class=\"authors\">';\n       origArtDetails += authNames;\n       origArtDetails +='</li>';\n    }\n    \n    origArtDetails += '</ol>';\n    \n    $('#'+targetId).append(origArtDetails);\n    \n    var heading = '';\n    if (isIssueLink) {\n      heading = 'Other articles in ' + jrnlTitle + ' ' + $('div.head .volIssue a').text();\n    } else {\n      heading = 'Other users also viewed these articles';\n    }\n    \n    $('#'+targetId).append('<div class=\"header newlist\"><div class=\"pdfKingHeading\">' + heading + '</div>');\n      \n    \n    \n     var obj = jQuery.parseJSON(jsonStr);\n    \n     var artList='';\n     if (obj !== null) {\n       \n       $.each (obj.citation, function(i, item){\n         \n         if ( isIssueLink && (item.PII == SDM.pm.pii) ) {\n           return;\n         }\n      \n         artList += '<ol class=\"artList\">' ;\n         \n         // Article Title\n         artList += '<li class=\"selection\"><input class=\"checkBox\" type=\"checkbox\" name=\"art\" value=\"'+item.SDEID+'\" aria-labelledby=\"title_'+item.PII+'\"></li>';\n         artList += '<li class=\"artTitle\">' + item.ARTTITLE + '</li>';\n   \n         //Article Label\n         var artDetails = '';\n         var accessType = '';\n\t\t\t\t if (item.OASTATUS ==\"1\" || item.OASTATUS ==\"Full\" ) {           \n           if (item.OPENARCHIVESTATUS ==\"1\") {\n             accessType = 'Open Archive';\n           } else {\n              accessType = 'Open Access';             \n           }\n         }\n         \n         if (accessType !== '') {\n              artDetails += '<span class=\"accessType\">' + accessType + '</span>';\n         }\n         \n         var artlabel = '';\n         if (item.LBL) artlabel = item.LBL;\n         \n         if (artlabel !== '') {\n              if (artDetails !== '') artDetails += ', ';\n              artDetails += '<span class=\"artlabel\">' + artlabel + '</span>';\n         }         \n         \n         if (artDetails !== '') {\n           artList += '<li class=\"artDetails\">';\n           artList += artDetails;\n           artList +='</li>';\n         }\n         \n         // Source\n         if (!isIssueLink) {\n           artList +='<li class=\"source\">';\n           artList += getCombinedSrcTitle(item);\n           if(item.VOLISS) { artList +=', ' + item.VOLISS; }\n           if(item.PUBDT) { artList +=', ' + item.PUBDT; }        \n           if (item.ARTNUM) {\n               artList += ', ' + item.ARTNUM;\n           } else if (item.PG) {\n               artList += ', ' + item.PG;\n           }\n           if (item.CURRENTASOF) { artList += ', ' + item.CURRENTASOF; }\n           artList +='</li>';\n         }\n         \n         // Authors\n         artList +='<li class=\"authors\">'+ item.AUTHORS + '</li>';\n         \n         artList += '</ol>';\n         \n         \n       });\n       \n       if (artList !== '') {\n          $('#'+targetId).append(artList);\n       } else {\n         $('#'+targetId).append('<ol class=\"artList\"><li class=\"noResults\">No articles found.</li></ol>');\n         \n       }\n       $('#pdfkingContent input[type=\"checkbox\"]').prop('checked',true);\n\n       var count = $(\"input[name=art]:checked\").length;\n       if (count == 1) {\n         $('#multiPdfIcon').prop('value',\"Download 1 PDF\");\n       } else {\n          $('#multiPdfIcon').prop('value',\"Download \"+ count +\" PDFs\");\n       }\n       \n       \n       jQuery('#suggestedPdfList, #pdfModalWindow, #pdfkingContent').css('display', 'block');\n       \n       // Closing the popup\n       jQuery('.newCloseBtn').click (function() {\n          pdfCite.closePopup();\n       });       \n       $(document).keyup(function(e){if (e.keyCode == 27) { pdfCite.closePopup(); }});       \n       \n       // Update Download PDF text accordingly\n       jQuery('#SuggestedArtList input[name=\"art\"]').off('click.new').on('click.new',function(e){\n          if ($(this).attr(\"readonly\") == 'readonly') { return false; }\n          var checkBoxLength = $(\"input[name=art]:checked\").length;          \n          if(checkBoxLength == 1)\n             $('#SuggestedArtList input.iconBg').prop('value',\"Download 1 PDF\");\n          else\n             $('#SuggestedArtList input.iconBg').prop('value',\"Download \"+ checkBoxLength +\" PDFs\");\n        });\n       \n       // To support download of orignal article alone\n       jQuery('body').off('click','#multiPdfIcon, .multiPdfIcon');\n       jQuery('body').on('click','#multiPdfIcon, .multiPdfIcon', function(e) {\n           triggerUsabillaLive();\n           if ($(\"input[name=art]:checked\").length == 1) {\n\t\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\t\te.stopPropagation();\n              pdfCite.closePopup();\n              var pdfObj = $('#pdfLink');\n              if (pdfObj.attr(\"pdfurl\")) {\n                  createStateCookie('?_origin=sdlPdf', e);                                \n                  pdfCite.openPDF (pdfObj.attr(\"pdfurl\"), e);\n              }\n   \t\t\t\t\t} else {\n    \t\t\t\t\tDDM.openDialog(e);\n   \t\t\t\t\t}\n\t\t\t });\n       \n\t\t\tif (DownloadMenu.showIntermediateScreen) {\n\t\t\t\tjQuery('#suggestedPdfList, #pdfModalWindow, #pdfkingContent').css('display', 'block');\n\t\t\t} else {\n\t\t\t\t//console.log (\"Not an issue link :: Trigerring click\");\n\t\t\t\t$('#multiPdfIcon').trigger('click');  \n         \n\t\t\t\tvar artCount = $(\"input[name=art].checkBox:checked\").length;\n        //LOGGING START\n        //window.AB3683092017.log('ap_ddm_button', {'pdf_ticks_count':artCount});\n\t\t\t\t//window.optimizely.push([\"trackEvent\", \"ap_ddm_button\", {'revenue':100*artCount}]);\n        //LOGGING END\n      \tif( artCount > 1){\n\t\t\t\t\tdisplayMsg = '<span>Downloading zip file containing ' + artCount + '  articles...</span>';\n        \t$('#pdfKingMessage .pdfKingHeading .downloadMsg').html(displayMsg);\n\t\t\t\t}\n         \n\t\t\t\tjQuery('#suggestedPdfList, #pdfModalWindow, #pdfkingContent').css('display', 'block');\n\t\t\t}       \n       \n     }\n   },\n  addEventListeners: function() {\n    $('#articleNav div.icon_pdf div').click(function() {\n      $('.pdfHover').trigger('click');    \t\n    });\n\n    $('.pdfIconSmall.rec').click(function() {\n      $('.recLink').trigger('click');       \n    });\n    \n    $('.pdfIconSmall.issue').click(function() {\n      $('.issueLink').trigger('click');           \n    });\n\n    $('.pdfIconSmall.main').click(function() {\n       $('#pdfLink')[0].click();\n    });\n    \n    $('.pdfHover').click(function() {\n      DownloadMenu.alignDownloadMenu();\n      $('.extendedPdfBox').toggle();\n    });\n\n    $(window).resize(function() {\n      setTimeout(function() {\n        DownloadMenu.alignDownloadMenu();\n      }, 500);\n    });\n    \n    jQuery('body, .exportDivision').click( function(e) {     \n      var obj = e.target;\n      if (!$(obj).closest('.icon_pdf.toolbar')[0]) {\n      \t$('.extendedPdfBox').css('display', 'none');\n      }\n    });\n    \n    jQuery('.extendedPdfBox').on('click', function(e) {\n      e.stopPropagation();\n    });    \n    \n    \n     $('a.issueLink, a.recLink').click(function(e) {\n         e.preventDefault();\n          $('.extendedPdfBox').css('display', 'none');\n          var url = $(this).attr('href');\n          var isIssueLink = $(this).hasClass('issueLink');\n          if (url !== '') {\n               var jqxhr = jQuery.get(url, function(response) {\n                 response = $.trim(response);\n                 if (response && response.length > 0) {\n                   DownloadMenu.buildSuggestedArticleList(response, \"relatedArtList\", isIssueLink);\n                   window.scrollTo(0,0);\n                   pdfCite.alignSuggestedArticleBox();\n                 }\n               });\n            \n                jqxhr.fail (function() {\n                   DownloadMenu.buildSuggestedArticleList('{\"citation\":[]}', \"relatedArtList\");\n                   window.scrollTo(0,0);\n                   pdfCite.alignSuggestedArticleBox();\n                  \n                });\n               \n          }\n  \n\t\t\t});\n    \n          \n      jQuery(\".extendedPdfBox #pdfLink\").click(function(event) {\n            event.stopPropagation();\n            $('.extendedPdfBox').css('display', 'none');\n            if (!(SDU.isIE())) {\n                event.preventDefault();\n            }\n            var t = $(event.currentTarget);\n            if (t.attr(\"pdfurl\")) {\n              pdfCite.openPDF (t.attr(\"pdfurl\"), event);\n              triggerUsabillaLive();\n            }\n            if (t.attr(\"suggestedarturl\")) {\n              \n              // When user clicks on new link and then old link\n              $('.pdfModalWindowMsgBox .header').css('display', 'block');    \n    \t\t\t\t\t$('.pdfModalWindowMsgBox .newFooter').css('display', 'block');             \n              jQuery('body').off('click','#multiPdfIcon, .multiPdfIcon');\n              jQuery('body').on('click','#multiPdfIcon, .multiPdfIcon', DDM.openDialog);\n              $('form[name=\"Tag\"]').attr('action', SDM.ep.urlPrefix + '/suggestedArt/export');\n               $('input[name=\"recLinkFromMenu\"]').val('N');\n             \n              \n               if ($('ul.group .newCloseBtn')[0]) {\n                 $('ul.group .newCloseBtn').remove();\n              }\n             \n    \n              var wait = 0;\n              if (typeof SDM.pf.suggestedArtPDFMaxWait != 'undefined') {\n                wait = parseInt(SDM.pf.suggestedArtPDFMaxWait);\n                if ((SDU.isIEless(10))) {\n                  wait +=1000;\n                }\n              }\n              setTimeout(function(){pdfCite.suggestedArt (t.attr(\"suggestedarturl\"));}, wait);\n              \n            }\n            else {\n              pdfCite.suggestedArtDisplayed = false;\n            }\n            return false;\n        }); \n  \n  \t},\n    adjustStylesForScrollBar: function() {\n        jQuery('#SuggestedArtList').addClass('scrollStyles');        \n    }\n};","audiences":[7924543209],"conditional_code":"typeof SDM != 'undefined' && typeof SDM.pm != 'undefined' && SDM.pm.entitled== true && SDM.pm.contentType == \"JL\" && $('.publicationHead .articlePress').length == 0 && $('#pdfLink').attr(\"suggestedArtURL\") !== undefined","css":".pdfHover {\n  cursor: pointer;\n}\n\n.extendedPdfBox {\n  padding: 15px;\n  border: 1px solid #c9c9c9;\n  background-color: #f9f9f9;\n  display: none;\n  box-shadow: 2px 2px 3px 0px rgba(0,0,0,00.25);\n  position: absolute;\n}\n\n.extendedPdfBox a {\n  color: #316c9d;\n  font-size: 12px;\n}\n\n.extendedPdfLink {\n  margin-top: 10px;\n}\n\n.extendedPdfBox .pdfIconSmall {\n  padding-left: 16px;\n}\n\n.extendedPdfBox #pdfLink, .extendedPdfLink a {\n  padding-left: 5px;\n  position: relative;\n  top: -2px;\n}\n\n.extendedPdfBox .arrow {\n    background: url(\"//cdn.optimizely.com/img/175078151/4b70765071644f7cae81c2e487950f3d.png\") no-repeat scroll 0 0 transparent;\n  height: 11px;\n  width: 20px;\n  margin-left: 15px;\n  z-index: 98;\n  position: absolute;\n  top: -11px;\n}\n\na.issueLink, a.recLink, a.modalLink {\n  padding-left: 5px;\n  padding-right: 10px;\n}\n\n.extendedPdfBox .dropDown {\n  padding-top: 10px;\n}\n\n.extendedPdfBox .dropDown.first {\n  padding-top: 0px;\n}\n\n.header.newlist {\n  height: auto;\n  background-color: #FFF;\n}\n\n.checkBox.grey {\n  opacity : 0.3;\n}\n\n\n\n\n\n#SuggestedArtList.scrollStyles #pdfkingContent{\n  margin-left: 0px;\n  margin-right: 0px;\n   margin-top: 0px;\n  max-height: 450px;\n  overflow: auto;\n}\n\n#SuggestedArtList.scrollStyles .artList li.selection {\n  left: 0px;\n  position: static;\n  display: inline-block;\n  padding-right: 10px;\n}\n\n#SuggestedArtList.scrollStyles .artList li.artTitle,\n#SuggestedArtList.scrollStyles .artList li.artTitleOA{\n  display: inline-block;\n  width: 500px;  \n  height: auto;\n}\n\n#SuggestedArtList.scrollStyles .artList li.artDetails,\n#SuggestedArtList.scrollStyles .artList li.source,\n#SuggestedArtList.scrollStyles .artList li.authors,\n#SuggestedArtList.scrollStyles .artList li.pdfListItem{\n  padding-left: 40px;\n}\n\n#suggestedPdfList.newStyles.scrollStyles .arrow {\n  left: -8px\n}\n\n#SuggestedArtList.scrollStyles #relatedArtList {\n  margin-left: 0px;\n}\n\n.noResults {\n  font-size: 14px;\n  padding-left: 40px;\n}","variation_weights":{"8153698453":10000},"activation_mode":"conditional","name":"AB 1215 - PDF Download menu for article V8","enabled":true,"variation_ids":["8168193247","8153698453","8166185000","8153698454","8162804066"],"urls":[{"match":"regex","value":"^http\\://www.sciencedirect.com/science/article/pii/(.*)$"}],"enabled_variation_ids":["8153698453"]},"8267641454":{"code":"/*config************************************************************/\nvar opt_isProd  = true;\nvar opt_debug   = false;\nvar opt_expid   = 8267641454;\nvar opt_abid    = 'AB1259-DEBUG-tech';\n/*logging & metrics*************************************************/ \nwindow['AB'+opt_expid] = {\n  config: {expid: opt_expid,\n           abid: opt_abid,\n           varid: null,\n           env: opt_isProd ? 'PROD' : 'CERT',\n           debug: opt_debug,\n           pagetype: null\n          },\n  logger: ABlogger.getInstance(),\n  log:function(evt, evtdata){\n    evtdata = evtdata || {};\n    //window.console.info({'settings':this.config, 'evt':evt, 'evtdata':evtdata});\n    this.logger.push({'settings':this.config, 'evt':evt, 'evtdata':evtdata});  \n  },\n  init:function(varid, pageid){ //init() is called from variation code.\n\t\tthis.config.varid = varid;\n    if (pageid === 'srp'){\n    \tvar context_data= this.get_context_data(null);\n    \tthis.log('pageload_srp', context_data);\n      window.optimizely.push([\"trackEvent\", \"pageload_srp\"]);\n    \tthis.metrics(varid); \n    } else\n    if (pageid === 'nonsrp'){\n      var akamai = this.get_akamai();\n    \tthis.log('pageload_nonsrp', {akamai:akamai});\n      window.optimizely.push([\"trackEvent\", \"pageload\"]);\n    } else {\n    \treturn;  \n    }\n    \n    this.variations(varid); \n\t},  \n  \n  variations:function(varid){  \n    \n  },\n  \n  get_akamai:function(){\n    //get Akamai cookie\n    var akamai = null;\n    var raw_akamai = OptUtil.getCookie('Search_AB_20170202');\n    if (raw_akamai === null){\n    \takamai = -1; \n    } else {\n    \takamai = raw_akamai;  \n    }\n    return akamai;\n  },\n  \n  get_context_data:function(elem){\n\n    //get Akamai cookie\n    var akamai = this.get_akamai();\n    \n    //get pagenumber [DONE]\n    var pagenum = -1;\n    pagenum = $('div.ResultList').attr('data-page-number');\n    \n\t\t//get sort order [DONE]\n    var sort = \"r\";\n    if ($('body div.search-header h1 span:contains(\"sorted by\") b').text() == 'date'){\n      sort = 'd';\n    }\n\n    //get number of results and query\n    var nres = -1;\n    var query= 'na';\n    if ($('title').text() === 'ScienceDirect  Error'){\n      qmatch = $('.msgText').text().match(/.*was\\s*:(.*)\\s*[Did,Edit]*/);\n      if (qmatch){\n        query = qmatch[1];\n      } else {\n        query = 'unknown_query_from_error';\n      }\n      nres = 0;\n    } else {\n      qmatch = $('title').text().match(/.*Results - (.*) - ScienceDirect/);\n      if (qmatch){\n        query = qmatch[1];\n      } else {\n        query = 'unknown_query';  \n      }\n      nmatch = $('title').text().match(/([0-9,]*) Search/);\n      if (nmatch){\n        nres = parseInt(nmatch[1].replace(/,/g,''),10);\n      }\n    }\n\n    //get PIIs of results 1-20 [DONE]\n    var piis = {r1:-1,r2:-1,r3:-1,r4:-1,r5:-1,r6:-1,r7:-1,r8:-1,r9:-1,r10:-1,r11:-1,r12:-1,r13:-1,r14:-1,r15:-1,r16:-1,r17:-1,r18:-1,r19:-1,r20:-1};\n    var targetpii;\n    $('a.result-list-title-link').each(function(i,o){ \n      targetpii = $(o).attr('href').match(/pii\\/(.*)/);\n      if (i<20){\n        piis['r'+(i+1)] = targetpii[1];  \n      }\n    });\n    \n    //get docsubtypes of results 1-20 [DONE]\n    var docsubs = {r1:-1,r2:-1,r3:-1,r4:-1,r5:-1,r6:-1,r7:-1,r8:-1,r9:-1,r10:-1,r11:-1,r12:-1,r13:-1,r14:-1,r15:-1,r16:-1,r17:-1,r18:-1,r19:-1,r20:-1};\n    var targetdocsub;\n    $('a.result-list-title-link').each(function(i,o){ \n      if (i<20){\n        //console.info($(o));\n        targetdocsub = $(o).attr('data-docsubtype');\n        docsubs['r'+(i+1)] = targetdocsub;  \n      }\n    });\n\n    var click_pii = 'na';\n    var click_docsub = 'na';\n    var click_rank= -1;\n    var click_entitled = 'na';\n    var click_openaccess = 'na';\n    if (elem){\n        //get entitlement for clicked result\n        // HM 02/03/17 : Handle ambiguous entitlement\n        var parent = $(elem).parents('li.ResultItem.container');\n        if (parent.has('div.PreviewLinks:contains(\"Download PDF\")').length !== 0){\n            click_entitled = 'true';\n         } else if (parent.has('div.PreviewLinks:contains(\"Purchase PDF\")').length !== 0) {\n             click_entitled = 'false';\n         }\n      \n        //get openaccess for clicked result\n      \t// HM 02/03/17 : Added Open Archive\n        if (parent.has('span.open-access:contains(\"Open access\")').length !== 0 || parent.has('span.open-access:contains(\"Open archive\")').length !== 0){\n            click_openaccess = 'true';\n        } else {\n            click_openaccess = 'false';\n        }   \n      \n        //get PII of clicked result\n        parent = $(elem).parents('li.ResultItem.container');\n        var target = parent.find('a.result-list-title-link');\n        targetpii = target.attr('href').match(/pii\\/(.*)/);\n        if (targetpii){ click_pii = targetpii[1]; }\n      \n        //get docsubtype of clicked result\n        click_docsub = target.attr('data-docsubtype');\n\n        //get rank of clicked result\n        click_rank = target.attr('data-rank');\n    }\n\n    return {akamai:akamai,\n      \t\t\tpagenum:pagenum,\n            query:query,\n            nresults:nres,\n            nddm: -1,\n            piis:piis,\n            docsubs:docsubs,\n            click_pii:click_pii,\n            click_docsub:click_docsub,\n            click_rank:click_rank,\n           \tclick_oa:click_openaccess,\n           \tclick_entitled:click_entitled};    \n  },\n  \n \tmetrics:function(){\n\n    //Purchase PDF button\n    $('body a.purchase-link[rel=nofollow]').live(\"mousedown\",$.proxy(function(eventObject){\n\t\t//$('body').on(\"mousedown\", 'a.purchase-link[rel=nofollow]', $.proxy(function(eventObject){\n      \n      var context_data= this.get_context_data(eventObject.currentTarget);\n\n      this.log(\"srp_purchase_pdf\", context_data);\n      window.optimizely.push([\"trackEvent\", \"srp_purchase_pdf\"]);\n      \n    },this));\n\n    //Download PDF Button\n    $('body a.download-link[rel=nofollow]').live(\"mousedown\",$.proxy(function(eventObject){\n\t\t//$('body').on(\"mousedown\", ' a.download-link[rel=nofollow]', $.proxy(function(eventObject){\n      var context_data= this.get_context_data(eventObject.currentTarget);\n\n      this.log(\"srp_download_pdf\", context_data);\n      window.optimizely.push([\"trackEvent\", \"srp_download_pdf\"]);\n      \n    },this));\n\n    //HTML link\n    $('body a.result-list-title-link').live(\"mousedown\",$.proxy(function(eventObject){\n\t\t//$('body').on(\"mousedown\", 'a.result-list-title-link', $.proxy(function(eventObject){\n      var context_data= this.get_context_data(eventObject.currentTarget);\n\n      if (context_data.click_entitled === 'true'){\n        window.optimizely.push([\"trackEvent\", \"srp_fta_html\"]);\n        this.log(\"srp_fta_html\", context_data);\n      } else {\n        window.optimizely.push([\"trackEvent\", \"srp_abstract_html\"]);\n        this.log(\"srp_abstract_html\", context_data);\n      }\n    },this));    \n\n    //DDM\n    $('body button.download-all-link-button.active').live(\"mousedown\",$.proxy(function(eventObject){\n\t\t//$('body').on(\"mousedown\", 'button.download-all-link-button.active', $.proxy(function(eventObject){\n      var context_data= this.get_context_data(null);\n\n      var parent = $(eventObject.currentTarget).parents('form');\n      context_data.nddm = parent.find('input').length;\n\n      this.log(\"srp_ddm\", context_data);\n      var revenue;\n      if (context_data.nddm > 0){ revenue = 100 * context_data.nddm; }\n      window.optimizely.push([\"trackEvent\", \"srp_ddm\", {'revenue': revenue}]);\n\n    },this));\n    \n    \n    // Search Submit\n    // HM 02/03/17 : Added quicksearch submit events\n    $('form.homesearch-quick-form, form#quickSearch, form.searchbox-form').live(\"submit\",$.proxy(function(eventObject){\n      var context_data= this.get_context_data(null);\n      this.log(\"search_submit\", context_data);\n      window.optimizely.push([\"trackEvent\", \"search_submit\"]);\n    },this));\n    \n                                                                                                \n\t}\n};","audiences":[8235564454],"name":"DEBUG AAB | Search Results V5 (SDTech)","variation_ids":["8266625983"],"urls":[{"match":"substring","value":"www.sciencedirect.com"},{"match":"substring","value":"www.sciencedirect.com/search?"}],"enabled_variation_ids":["8266625983"]},"8205694096":{"code":"/*config************************************************************/\nvar opt_isProd  = true;\nvar opt_debug   = false;\nvar opt_expid   = 8205694096;\nvar opt_abid    = 'AB1259-tech';\n/*logging & metrics*************************************************/ \nwindow['AB'+opt_expid] = {\n  config: {expid: opt_expid,\n           abid: opt_abid,\n           varid: null,\n           env: opt_isProd ? 'PROD' : 'CERT',\n           debug: opt_debug,\n           pagetype: null\n          },\n  logger: ABlogger.getInstance(),\n  log:function(evt, evtdata){\n    evtdata = evtdata || {};\n    //window.console.info({'settings':this.config, 'evt':evt, 'evtdata':evtdata});\n    this.logger.push({'settings':this.config, 'evt':evt, 'evtdata':evtdata});  \n  },\n  init:function(varid, pageid){ //init() is called from variation code.\n\t\tthis.config.varid = varid;\n    if (pageid === 'srp'){\n    \tvar context_data= this.get_context_data(null);\n    \tthis.log('pageload_srp', context_data);\n    \tthis.metrics(varid); \n    } else\n    if (pageid === 'nonsrp'){\n      var akamai = this.get_akamai();\n    \tthis.log('pageload_nonsrp', {akamai:akamai});\n    } else {\n    \treturn;  \n    }\n    \n    this.variations(varid); \n\t},  \n  \n  variations:function(varid){  \n    \n  },\n  \n  get_akamai:function(){\n    //get Akamai cookie\n    var akamai = null;\n    var raw_akamai = OptUtil.getCookie('Search_AB_20170202');\n    if (raw_akamai === null){\n    \takamai = -1; \n    } else {\n    \takamai = raw_akamai;  \n    }\n    return akamai;\n  },\n  \n  get_context_data:function(elem){\n\n    //get Akamai cookie\n    var akamai = this.get_akamai();\n    \n    //get pagenumber [DONE]\n    var pagenum = -1;\n    pagenum = $('div.ResultList').attr('data-page-number');\n    \n\t\t//get sort order [DONE]\n    var sort = \"r\";\n    if ($('div.search-header h1 span:contains(\"sorted by\") b').text() == 'date'){\n      sort = 'd';\n    }\n\n    //get number of results and query\n    var nres = -1;\n    var query= 'na';\n    if ($('title').text() === 'ScienceDirect  Error'){\n      qmatch = $('.msgText').text().match(/.*was\\s*:(.*)\\s*[Did,Edit]*/);\n      if (qmatch){\n        query = qmatch[1];\n      } else {\n        query = 'unknown_query_from_error';\n      }\n      nres = 0;\n    } else {\n      qmatch = $('title').text().match(/.*Results - (.*) - ScienceDirect/);\n      if (qmatch){\n        query = qmatch[1];\n      } else {\n        query = 'unknown_query';  \n      }\n      nmatch = $('title').text().match(/([0-9,]*) Search/);\n      if (nmatch){\n        nres = parseInt(nmatch[1].replace(/,/g,''),10);\n      }\n    }\n\n    //get PIIs of results 1-20 [DONE]\n    var piis = {r1:-1,r2:-1,r3:-1,r4:-1,r5:-1,r6:-1,r7:-1,r8:-1,r9:-1,r10:-1,r11:-1,r12:-1,r13:-1,r14:-1,r15:-1,r16:-1,r17:-1,r18:-1,r19:-1,r20:-1};\n    var targetpii;\n    $('a.result-list-title-link').each(function(i,o){ \n      targetpii = $(o).attr('href').match(/pii\\/(.*)/);\n      if (i<20){\n        piis['r'+(i+1)] = targetpii[1];  \n      }\n    });\n    \n    //get docsubtypes of results 1-20 [DONE]\n    var docsubs = {r1:-1,r2:-1,r3:-1,r4:-1,r5:-1,r6:-1,r7:-1,r8:-1,r9:-1,r10:-1,r11:-1,r12:-1,r13:-1,r14:-1,r15:-1,r16:-1,r17:-1,r18:-1,r19:-1,r20:-1};\n    var targetdocsub;\n    $('a.result-list-title-link').each(function(i,o){ \n      if (i<20){\n        //console.info($(o));\n        targetdocsub = $(o).attr('data-docsubtype');\n        docsubs['r'+(i+1)] = targetdocsub;  \n      }\n    });\n\n    var click_pii = 'na';\n    var click_docsub = 'na';\n    var click_rank= -1;\n    var click_entitled = 'na';\n    var click_openaccess = 'na';\n    if (elem){\n        //get entitlement for clicked result\n        var parent = $(elem).parents('li.ResultItem.container');\n        if (parent.has('div.PreviewLinks:contains(\"Download PDF\")').length !== 0){\n            click_entitled = 'true';\n         } else {\n             click_entitled = 'false';\n         }\n      \n        //get openaccess for clicked result\n        if (parent.has('span.open-access:contains(\"Open access\")').length !== 0){\n            click_openaccess = 'true';\n        } else {\n            click_openaccess = 'false';\n        }   \n      \n        //get PII of clicked result\n        parent = $(elem).parents('li.ResultItem.container');\n        var target = parent.find('a.result-list-title-link');\n        targetpii = target.attr('href').match(/pii\\/(.*)/);\n        if (targetpii){ click_pii = targetpii[1]; }\n      \n        //get docsubtype of clicked result\n        click_docsub = target.attr('data-docsubtype');\n\n        //get rank of clicked result\n        click_rank = target.attr('data-rank');\n    }\n\n    return {akamai:akamai,\n      \t\t\tpagenum:pagenum,\n            query:query,\n            nresults:nres,\n            nddm: -1,\n            piis:piis,\n            docsubs:docsubs,\n            click_pii:click_pii,\n            click_docsub:click_docsub,\n            click_rank:click_rank,\n           \tclick_oa:click_openaccess,\n           \tclick_entitled:click_entitled};    \n  },\n  \n \tmetrics:function(){\n\n    //Purchase PDF button\n    $('body a.purchase-link[rel=nofollow]').live(\"mousedown\",$.proxy(function(eventObject){\n\t\t//$('body').on(\"mousedown\", 'a.purchase-link[rel=nofollow]', $.proxy(function(eventObject){\n      \n      var context_data= this.get_context_data(eventObject.currentTarget);\n\n      this.log(\"srp_purchase_pdf\", context_data);\n      window.optimizely.push([\"trackEvent\", \"srp_purchase_pdf\"]);\n      \n    },this));\n\n    //Download PDF Button\n    $('body a.download-link[rel=nofollow]').live(\"mousedown\",$.proxy(function(eventObject){\n\t\t//$('body').on(\"mousedown\", ' a.download-link[rel=nofollow]', $.proxy(function(eventObject){\n      var context_data= this.get_context_data(eventObject.currentTarget);\n\n      this.log(\"srp_download_pdf\", context_data);\n      window.optimizely.push([\"trackEvent\", \"srp_download_pdf\"]);\n      \n    },this));\n\n    //HTML link\n    $('body a.result-list-title-link').live(\"mousedown\",$.proxy(function(eventObject){\n\t\t//$('body').on(\"mousedown\", 'a.result-list-title-link', $.proxy(function(eventObject){\n      var context_data= this.get_context_data(eventObject.currentTarget);\n\n      if (context_data.click_entitled === 'true'){\n        window.optimizely.push([\"trackEvent\", \"srp_fta_html\"]);\n        this.log(\"srp_fta_html\", context_data);\n      } else {\n        window.optimizely.push([\"trackEvent\", \"srp_abstract_html\"]);\n        this.log(\"srp_abstract_html\", context_data);\n      }\n    },this));    \n\n    //DDM\n    $('body button.download-all-link-button.active').live(\"mousedown\",$.proxy(function(eventObject){\n\t\t//$('body').on(\"mousedown\", 'button.download-all-link-button.active', $.proxy(function(eventObject){\n      var context_data= this.get_context_data(null);\n\n      var parent = $(eventObject.currentTarget).parents('form');\n      context_data.nddm = parent.find('input').length;\n\n      this.log(\"srp_ddm\", context_data);\n      var revenue;\n      if (context_data.nddm > 0){ revenue = 100 * context_data.nddm; }\n      window.optimizely.push([\"trackEvent\", \"srp_ddm\", {'revenue': revenue}]);\n\n    },this));      \n                                                                                                \n\t}\n};","audiences":[8235564454],"name":"AB-1259 AAB | Search Results V5 (SDTech)","variation_ids":["8213243701"],"urls":[{"match":"substring","value":"www.sciencedirect.com"},{"match":"substring","value":"www.sciencedirect.com/search?"}],"enabled_variation_ids":["8213243701"]},"8231943122":{"code":"/*config************************************************************/\nvar opt_isProd  = true;\nvar opt_debug   = false;\nvar opt_expid   = 8231943122;\nvar opt_abid    = 'AB1261';\n/*logging & metrics*************************************************/ \nwindow['AB'+opt_expid] = {\n  config: {expid: opt_expid,\n           abid: opt_abid,\n           varid: null,\n           env: opt_isProd ? 'PROD' : 'CERT',\n           debug: opt_debug,\n           pagetype: null\n          },\n  logger: ABlogger.getInstance(),\n  log:function(evt, evtdata){\n    evtdata = evtdata || {};\n    //window.console.info({'settings':this.config, 'evt':evt, 'evtdata':evtdata});\n    this.logger.push({'settings':this.config, 'evt':evt, 'evtdata':evtdata});  \n  },\n  init:function(varid, pageid){ //init() is called from variation code.\n\t\tthis.config.varid = varid;\n    if (pageid === 'srp'){\n    \tvar context_data= this.get_context_data(null);\n    \tthis.log('pageload_srp', context_data);\n    \tthis.metrics(varid); \n    } else\n    if (pageid === 'nonsrp'){\n      var akamai = this.get_akamai();\n    \tthis.log('pageload_nonsrp', {akamai:akamai});\n    } else {\n    \treturn;  \n    }\n    \n    this.variations(varid); \n\t},  \n  \n  variations:function(varid){  \n    \n  },\n  \n  get_akamai:function(){\n    //get Akamai cookie\n    var akamai = null;\n    var raw_akamai = OptUtil.getCookie('Search_AB_20170202');\n    if (raw_akamai === null){\n    \takamai = -1; \n    } else {\n    \takamai = raw_akamai;  \n    }\n    return akamai;\n  },\n  \n  get_context_data:function(elem){\n\n    //get Akamai cookie\n    var akamai = this.get_akamai();\n    \n    //get pagenumber [DONE]\n    var pagenum = -1;\n    pagenum = $('div.ResultList').attr('data-page-number');\n    \n\t\t//get sort order [DONE]\n    var sort = \"r\";\n    if ($('div.search-header h1 span:contains(\"sorted by\") b').text() == 'date'){\n      sort = 'd';\n    }\n\n    //get number of results and query\n    var nres = -1;\n    var query= 'na';\n    if ($('title').text() === 'ScienceDirect  Error'){\n      qmatch = $('.msgText').text().match(/.*was\\s*:(.*)\\s*[Did,Edit]*/);\n      if (qmatch){\n        query = qmatch[1];\n      } else {\n        query = 'unknown_query_from_error';\n      }\n      nres = 0;\n    } else {\n      qmatch = $('title').text().match(/.*Results - (.*) - ScienceDirect/);\n      if (qmatch){\n        query = qmatch[1];\n      } else {\n        query = 'unknown_query';  \n      }\n      nmatch = $('title').text().match(/([0-9,]*) Search/);\n      if (nmatch){\n        nres = parseInt(nmatch[1].replace(/,/g,''),10);\n      }\n    }\n\n    //get PIIs of results 1-20 [DONE]\n    var piis = {r1:-1,r2:-1,r3:-1,r4:-1,r5:-1,r6:-1,r7:-1,r8:-1,r9:-1,r10:-1,r11:-1,r12:-1,r13:-1,r14:-1,r15:-1,r16:-1,r17:-1,r18:-1,r19:-1,r20:-1};\n    var targetpii;\n    $('a.result-list-title-link').each(function(i,o){ \n      targetpii = $(o).attr('href').match(/pii\\/(.*)/);\n      if (i<20){\n        piis['r'+(i+1)] = targetpii[1]; \u00a0\n      }\n    });\n    \n    //get docsubtypes of results 1-20 [DONE]\n    var docsubs = {r1:-1,r2:-1,r3:-1,r4:-1,r5:-1,r6:-1,r7:-1,r8:-1,r9:-1,r10:-1,r11:-1,r12:-1,r13:-1,r14:-1,r15:-1,r16:-1,r17:-1,r18:-1,r19:-1,r20:-1};\n    var targetdocsub;\n    $('a.result-list-title-link').each(function(i,o){ \n      if (i<20){\n        //console.info($(o));\n        targetdocsub = $(o).attr('data-docsubtype');\n        docsubs['r'+(i+1)] = targetdocsub; \u00a0\n      }\n    });\n\n    var click_pii = 'na';\n    var click_docsub = 'na';\n    var click_rank= -1;\n    var click_entitled = 'na';\n    var click_openaccess = 'na';\n    if (elem){\n        //get entitlement for clicked result\n        var parent = $(elem).parents('li.ResultItem.container');\n        if (parent.has('div.PreviewLinks:contains(\"Download PDF\")').length !== 0){\n            click_entitled = 'true';\n         } else {\n             click_entitled = 'false';\n         }\n      \n        //get openaccess for clicked result\n        if (parent.has('span.open-access:contains(\"Open access\")').length !== 0){\n            click_openaccess = 'true';\n        } else {\n            click_openaccess = 'false';\n        }   \n      \n        //get PII of clicked result\n        parent = $(elem).parents('li.ResultItem.container');\n        var target = parent.find('a.result-list-title-link');\n        targetpii = target.attr('href').match(/pii\\/(.*)/);\n        if (targetpii){ click_pii = targetpii[1]; }\n      \n        //get docsubtype of clicked result\n        click_docsub = target.attr('data-docsubtype');\n\n        //get rank of clicked result\n        click_rank = target.attr('data-rank');\n    }\n\n    return {akamai:akamai,\n      \t\t\tpagenum:pagenum,\n            query:query,\n            nresults:nres,\n            nddm: -1,\n            piis:piis,\n            docsubs:docsubs,\n            click_pii:click_pii,\n            click_docsub:click_docsub,\n            click_rank:click_rank,\n           \tclick_oa:click_openaccess,\n           \tclick_entitled:click_entitled};    \n  },\n  \n \tmetrics:function(){\n\n    //Purchase PDF button\n    $('body a.purchase-link[rel=nofollow]').live(\"mousedown\",$.proxy(function(eventObject){\n\t\t//$('body').on(\"mousedown\", 'a.purchase-link[rel=nofollow]', $.proxy(function(eventObject){\n      \n      var context_data= this.get_context_data(eventObject.currentTarget);\n\n      this.log(\"srp_purchase_pdf\", context_data);\n      window.optimizely.push([\"trackEvent\", \"srp_purchase_pdf\"]);\n      \n    },this));\n\n    //Download PDF Button\n    $('body a.download-link[rel=nofollow]').live(\"mousedown\",$.proxy(function(eventObject){\n\t\t//$('body').on(\"mousedown\", ' a.download-link[rel=nofollow]', $.proxy(function(eventObject){\n      var context_data= this.get_context_data(eventObject.currentTarget);\n\n      this.log(\"srp_download_pdf\", context_data);\n      window.optimizely.push([\"trackEvent\", \"srp_download_pdf\"]);\n      \n    },this));\n\n    //HTML link\n    $('body a.result-list-title-link').live(\"mousedown\",$.proxy(function(eventObject){\n\t\t//$('body').on(\"mousedown\", 'a.result-list-title-link', $.proxy(function(eventObject){\n      var context_data= this.get_context_data(eventObject.currentTarget);\n\n      if (context_data.click_entitled === 'true'){\n        window.optimizely.push([\"trackEvent\", \"srp_fta_html\"]);\n        this.log(\"srp_fta_html\", context_data);\n      } else {\n        window.optimizely.push([\"trackEvent\", \"srp_abstract_html\"]);\n        this.log(\"srp_abstract_html\", context_data);\n      }\n    },this));    \n\n    //DDM\n    $('body button.download-all-link-button.active').live(\"mousedown\",$.proxy(function(eventObject){\n\t\t//$('body').on(\"mousedown\", 'button.download-all-link-button.active', $.proxy(function(eventObject){\n      var context_data= this.get_context_data(null);\n\n      var parent = $(eventObject.currentTarget).parents('form');\n      context_data.nddm = parent.find('input').length;\n\n      this.log(\"srp_ddm\", context_data);\n      var revenue;\n      if (context_data.nddm > 0){ revenue = 100 * context_data.nddm; }\n      window.optimizely.push([\"trackEvent\", \"srp_ddm\", {'revenue': revenue}]);\n\n    },this));      \n                                                                                                \n\t}\n};","audiences":[8229045593],"name":"AB-1261 BB | Search Results V4 (SDTech)","variation_ids":["8237550807"],"urls":[{"match":"substring","value":"www.sciencedirect.com"},{"match":"substring","value":"www.sciencedirect.com/search?"}],"enabled_variation_ids":["8237550807"]},"7947188334":{"code":"/*config************************************************************/\nvar opt_isProd  = true;\nvar opt_debug   = false;\nvar opt_expid   = 7947188334;\nvar opt_abid    = 'AB1145';\n/*logging & metrics*************************************************/ \nwindow['AB'+opt_expid] = {\n  start: new Date(),\n  config: {expid: opt_expid,\n           abid: opt_abid,\n           varid: null,\n           env: opt_isProd ? 'PROD' : 'CERT',\n           debug: opt_debug },\n  logger: ABlogger.getInstance(),\n  init:function(varid){ //init() is called from variation code.\n    this.config.varid = varid;\n    this.log('ap_pageload');\n    this.bootstrap();\n    },\n  log:function(evt, evtdata){\n    evtdata = evtdata || {};\n    //this.logger.push({'settings':this.config, 'evt':evt, 'evtdata':evtdata});\n  },\n  bootstrap:function(){\n    //Main PDF button and time to PDF logged to ABlogger\n    if (this.config.varid === 'control1'){\n      //in control\n      $(\"a#pdfLink, div.icon_pdf .largeIcon\").live(\"mousedown\", $.proxy(function(){\n    \t\tvar timetopdf = (new Date()) - this.start;\n      \tthis.log('ap_main_pdf_button', {'timetopdf':timetopdf});\n        window.optimizely.push([\"trackEvent\", \"ap_main_pdf_button\", {'revenue':100}]);\n      },this));\n    } else {\n    \t//in any of the variations (click is not an FTA)\n      $(\"a.pdfHover, div.icon_pdf .largeIcon\").live(\"mousedown\", $.proxy(function(){\n    \t\tvar timetopdf = (new Date()) - this.start;\n      \tthis.log('ap_main_pdf_button', {'timetopdf':timetopdf});\n        window.optimizely.push([\"trackEvent\", \"ap_main_pdf_button\"]);\n      },this));\n    }\n                                                                         \n    //in any of the variations\n    if (this.config.varid !== 'control1'){\n      //PDF menu: pdf link\n      $(\"div.dropDown.pdfLink\").live(\"mousedown\", $.proxy(function(){\n      \tthis.log('cp_pdf_menu_pdflink');\n        window.optimizely.push([\"trackEvent\", \"cp_pdf_menu_engagement\"]);\n        window.optimizely.push([\"trackEvent\", \"cp_pdf_menu_pdflink\", {'revenue':100}]);\n    \t},this));\n      \n      //PDF menu: article+issue (click is not an FTA)\n      $(\"div.dropDown.issueLink\").live(\"mousedown\", $.proxy(function(){\n      \tthis.log('cp_pdf_menu_issuelink');\n        window.optimizely.push([\"trackEvent\", \"cp_pdf_menu_engagement\"]);\n        //NOTE: pdfmenu code has got wrong class for reclink. It has the isselink class instead\n        //window.optimizely.push([\"trackEvent\", \"cp_pdf_menu_issuelink\"]);\n        window.optimizely.push([\"trackEvent\", \"cp_pdf_menu_reclink\"]);\n    \t},this));\n      \n      //PDF menu: article+recomm (click is not an FTA)\n      $(\"div.dropDown.recLink\").live(\"mousedown\", $.proxy(function(){\n      \tthis.log('cp_pdf_menu_reclink');\n        window.optimizely.push([\"trackEvent\", \"cp_pdf_menu_engagement\"]);\n        window.optimizely.push([\"trackEvent\", \"cp_pdf_menu_reclink\"]);\n    \t},this));\n    }\n\n    //DDM button, count #selected PDF's\n    $('#SuggestedArtList #multiPdfIcon').live('mousedown', $.proxy(function(){\n      \n       var mxx = $('#SuggestedArtList input[name=\"art\"]').length;\n       var cnt = $('#SuggestedArtList input[name=\"art\"]:checked').length;\n      if (cnt === 0) cnt  = $('#pdfkingContent  input[name=\"art\"]').length;\n      this.log('cp_ddm_button', {'pdf_ticks_count':cnt, 'pdf_max_count':mxx});\n\t\t\twindow.optimizely.push([\"trackEvent\", \"cp_ddm_button\", {'revenue':100*cnt}]);\n\t\t},this));\n    \n    //DDM: small PDF button\n    $('#SuggestedArtList a[class=cLink][title=\"Download PDF\"]').live('mousedown', $.proxy(function(){\n      this.log('cp_ddm_small_button');\n\t\t\twindow.optimizely.push([\"trackEvent\", \"cp_ddm_small_button\", {'revenue':100}]);\n\t\t},this));\n    \n    //DDM: click article title\n    $('#SuggestedArtList li.artTitle').live('mousedown', $.proxy(function(){\n      this.log('cp_ddm_arttitle');\n\t\t\twindow.optimizely.push([\"trackEvent\", \"cp_ddm_arttitle\", {'revenue':100}]);\n\t\t},this));\n    \n    \n    //HTML FTA from recommended box.\n    $(\"#recommend_related_articles li.artTitle a.cLink, #recommend_related_articles_new li.artTitle a.cLink\").live(\"mousedown\", $.proxy(function(){\n    \tthis.log('recommend_art_clicks');\n    \twindow.optimizely.push([\"trackEvent\", \"cp_recom_arttitle\", {'revenue':100}]);\n  \t},this));\n/*    \n    //Any click, for bounce rate\n    this.ap_any_click_done=false;\n    $('body').live(\"mousedown\", $.proxy(function(){\n\t\t\tif (this.ap_any_click_done===false){\n\t\t\t\tthis.ap_any_click_done=true;\n\t\t\t\tthis.log('ap_any_click');\n\t\t\t\twindow.optimizely.push([\"trackEvent\", \"ap_any_click\"]);\n\t\t\t}\n\t\t},this));\n*/    \n  },\n  get_referrer:function(){\n\t\tif (document.referrer === \"\"){\n    \treturn 'notset';  \n    } else {\n    \treturn document.referrer;\n    }\n  },\n  get_issn:function(){\n    var pii = window.location.href.split('/').pop();\n\t\tif (pii.charAt(0) == 'S' || pii.charAt(0) == 'B') { pii = pii.substr(1); }\n\t\tvar issn = pii.substring (0, 8);\n    return issn;\n  },\n  get_entitled:function(){\n    if (window.ab && 'entitled' in window.ab){\n    \treturn window.ab.entitled;\n    } else {\n    \treturn 'notset';  \n    }\n  }\n};\n\n\n\n//////////////////////////////////////////////////////////////////\n//////////////////////////////////////////////////////////////////\n\nwindow.DownloadMenu = {\n  linksToDisplay : {pdfLink : $('#pdfLink').attr('href'), recLink: '', issueLink: '' },\n  addPdfMenu : function(variationLinks, showIntermediateScreen) {\n  \n\tDownloadMenu.showIntermediateScreen = showIntermediateScreen;\n  \n  jQuery.extend(DownloadMenu.linksToDisplay, variationLinks);\n\t\n\n    var clonePdf = $('#pdfLink').clone();    \n    $('#pdfLink').remove();\n\t\n    $('#articleNav div.icon_pdf .largeIcon').addClass('var1');\n    $('#articleNav div.icon_pdf').append(\"<a class='pdfHover'>\" + $(clonePdf).attr('title') + \"</a>\");\n    $('#articleToolbar').append('<div class=\"extendedPdfBox\"><div class=\"arrow\"></div><div class=\"dropDown pdfLink first\"><span class=\"pdfIconSmall main\"></span></div></div>');\n    \n    \n    $(clonePdf).html(\"Chapter\");\n    $(clonePdf).attr('queryStr', '?_origin=sdlMenu&_zone=toolbar');\n    $('.extendedPdfBox .dropDown.pdfLink').append(clonePdf);\n    $(clonePdf).click(function() {      \n      createStateCookie($(this).attr(\"queryStr\"), event);\n    }); \n    $('form[name=\"Tag\"]').append('<input type=\"hidden\" name=\"recLinkFromMenu\" value=\"\">');\n    \n   \n    \n    if (DownloadMenu.linksToDisplay.recLink !== '' && DownloadMenu.linksToDisplay.recLink !== undefined) {\n        $('.extendedPdfBox').append('<div class=\"dropDown recLink\"><span class=\"pdfIconSmall rec\"></span><a rel=\"nofollow\" data-type=\"reclink\" class=\"recLink\" href=\"' + window.DownloadMenu.linksToDisplay.recLink + '\">Article + 20 recommended articles</a></div>');\t\n  \t}\n\n\t\n\tif (DownloadMenu.linksToDisplay.issueLink !== '' && DownloadMenu.linksToDisplay.issueLink !== undefined) {\n\t\t$('.extendedPdfBox').append('<div class=\"dropDown issueLink\"><span class=\"pdfIconSmall issue\"></span><a rel=\"nofollow\" data-type=\"issueLink\" class=\"issueLink\" href=\"' + window.DownloadMenu.linksToDisplay.issueLink + '\">Chapter + other chapters in this book</a></div>');\t\n\t}\n\t\n\t\n    DownloadMenu.alignDownloadMenu();\n    DownloadMenu.addEventListeners();\n    DownloadMenu.adjustStylesForScrollBar();   \n\n  },\n  alignDownloadMenu: function() {\n    $('.extendedPdfBox').css('left', jQuery(\".pdfHover\").position().left);\n  },\n  buildSuggestedArticleList:function(jsonStr, targetId, isIssueLink) {\n   \n    $('#'+targetId).html('');\n    $('input[name=\"recLinkFromMenu\"]').val('Y');\n    if (isIssueLink) {\n      $('form[name=\"Tag\"]').attr('action', SDM.ep.urlPrefix + '/issuedownload/download');\n      jQuery('#SuggestedArtList').addClass('scrollStyles');\n    } else {\n      $('form[name=\"Tag\"]').attr('action', SDM.ep.urlPrefix + '/suggestedArt/export');\n      //jQuery('#SuggestedArtList').removeClass('scrollStyles');\n      jQuery('#SuggestedArtList').addClass('scrollStyles');\n    }\n    \n    var closeBtn = $('.pdfModalWindowMsgBox .header').find('a.newCloseBtn').clone();\n    if (!$('ul.group .newCloseBtn')[0]) {\n       $('ul.group').append(closeBtn);\n    }\n    \n    $('.pdfModalWindowMsgBox .header').css('display', 'none');    \n    $('.pdfModalWindowMsgBox .newFooter').css('display', 'none');\n    \n    var origArtTitle = $('h1.svTitle').text();\n    \n    var oaStatus = '';\n    if ($('span.articleOAstatus')[0]) {\n      oaStatus = $('span.articleOAstatus').text().trim();\n    }\n    \n    var jrnlTitle = '';\n    if ($('.publicationHead ').hasClass('titleBanner')) {\n      jrnlTitle = $('.publicationHead .title').find('img').attr('alt');\n    } else {\n      jrnlTitle = $('.publicationHead .title').text();\n    }\n    \n    var volIssueDetails = $('div.head .volIssue').text();\n    var citationDetails = '';\n    if (jrnlTitle !== '') citationDetails += jrnlTitle;\n    if (volIssueDetails !== '') {\n      if (citationDetails !=='') {\n        citationDetails += ', ';\n      }\n      citationDetails += volIssueDetails;\n    }\n    \n    var authArray = [];\n    $('.authorName').each(function() { authArray.push($(this).text()); });\n    var authNames = authArray.join(\", \");\n    \n    var origArtDetails = '<ol class=\"artList\" style=\"margin-bottom:20px\">';    \n    origArtDetails += '<li class=\"selection\"><input class=\"checkBox grey\" type=\"checkbox\" name=\"art\" value=\"'+ SDM.pm.eid +'\" aria-labelledby=\"title_'+SDM.pm.pii+'\" checked readonly></li>';\n    origArtDetails += '<li class=\"artTitle\">' + origArtTitle + '</li>';\n    \n    \n    var artDetails = '';\n    if (oaStatus !== '') {\n        artDetails += '<span class=\"accessType\">' + oaStatus + '</span>';\n    }\n    if (artDetails !== '') {\n           origArtDetails += '<li class=\"artDetails\">';\n           origArtDetails += artDetails;\n           origArtDetails +='</li>';\n    }\n    \n    if (citationDetails !== '') {\n           origArtDetails += '<li class=\"source\">';\n           origArtDetails += citationDetails;\n           origArtDetails +='</li>';\n    }\n    \n    if (authNames !== '') {\n       origArtDetails += '<li class=\"authors\">';\n       origArtDetails += authNames;\n       origArtDetails +='</li>';\n    }\n    \n    origArtDetails += '</ol>';\n    \n    $('#'+targetId).append(origArtDetails);\n    \n    var heading = '';\n    if (isIssueLink) {\n      //heading = 'Other chapters in ' + jrnlTitle + ' ' + $('div.head .volIssue a').text();\n      heading = 'Other chapters in this book';\n    } else {\n      heading = 'Other chapters in this book';\n    }\n    \n    $('#'+targetId).append('<div class=\"header newlist\"><div class=\"pdfKingHeading\">' + heading + '</div>');\n      \n    \n    \n     var obj = jQuery.parseJSON(jsonStr);\n    \n     var artList='';\n     if (obj !== null) {\n       \n       $.each (obj.citation, function(i, item){\n         \n         if ( isIssueLink && (item.PII == SDM.pm.pii) ) {\n           return;\n         }\n      \n         artList += '<ol class=\"artList\">' ;\n         \n         // Article Title\n         artList += '<li class=\"selection\"><input class=\"checkBox\" type=\"checkbox\" name=\"art\" value=\"'+item.SDEID+'\" aria-labelledby=\"title_'+item.PII+'\"></li>';\n         artList += '<li class=\"artTitle\">' + item.ARTTITLE + '</li>';\n   \n         //Article Label\n         var artDetails = '';\n         var accessType = '';\n\t\t\t\t if (item.OASTATUS ==\"1\" || item.OASTATUS ==\"Full\" ) {           \n           if (item.OPENARCHIVESTATUS ==\"1\") {\n             accessType = 'Open Archive';\n           } else {\n              accessType = 'Open Access';             \n           }\n         }\n         \n         if (accessType !== '') {\n              artDetails += '<span class=\"accessType\">' + accessType + '</span>';\n         }\n         \n         var artlabel = '';\n         if (item.LBL) artlabel = item.LBL;\n         \n         if (artlabel !== '') {\n              if (artDetails !== '') artDetails += ', ';\n              artDetails += '<span class=\"artlabel\">' + artlabel + '</span>';\n         }         \n         \n         if (artDetails !== '') {\n           artList += '<li class=\"artDetails\">';\n           artList += artDetails;\n           artList +='</li>';\n         }\n         \n         // Source\n         if (!isIssueLink) {\n           artList +='<li class=\"source\">';\n           artList += getCombinedSrcTitle(item);\n           if(item.VOLISS) { artList +=', ' + item.VOLISS; }\n           if(item.PUBDT) { artList +=', ' + item.PUBDT; }        \n           if (item.ARTNUM) {\n               artList += ', ' + item.ARTNUM;\n           } else if (item.PG) {\n               artList += ', ' + item.PG;\n           }\n           if (item.CURRENTASOF) { artList += ', ' + item.CURRENTASOF; }\n           artList +='</li>';\n         }\n         \n         // Authors\n         artList +='<li class=\"authors\">'+ item.AUTHORS + '</li>';\n         \n         artList += '</ol>';\n         \n         \n       });\n       \n       if (artList !== '') {\n          $('#'+targetId).append(artList);\n       } else {\n         $('#'+targetId).append('<ol class=\"artList\"><li class=\"noResults\">No chapters found.</li></ol>');\n         \n       }\n       $('#pdfkingContent input[type=\"checkbox\"]').prop('checked',true);\n\n       var count = $(\"input[name=art]:checked\").length;\n       if (count == 1) {\n         $('#multiPdfIcon').prop('value',\"Download 1 PDF\");\n       } else {\n          $('#multiPdfIcon').prop('value',\"Download \"+ count +\" PDFs\");\n       }\n       \n       \n       jQuery('#suggestedPdfList, #pdfModalWindow, #pdfkingContent').css('display', 'block');\n       \n       // Closing the popup\n       jQuery('.newCloseBtn').click (function() {\n          pdfCite.closePopup();\n       });       \n       $(document).keyup(function(e){if (e.keyCode == 27) { pdfCite.closePopup(); }});       \n       \n       // Update Download PDF text accordingly\n       jQuery('#SuggestedArtList input[name=\"art\"]').off('click.new').on('click.new',function(e){\n          if ($(this).attr(\"readonly\") == 'readonly') { return false; }\n          var checkBoxLength = $(\"input[name=art]:checked\").length;          \n          if(checkBoxLength == 1)\n             $('#SuggestedArtList input.iconBg').prop('value',\"Download 1 PDF\");\n          else\n             $('#SuggestedArtList input.iconBg').prop('value',\"Download \"+ checkBoxLength +\" PDFs\");\n        });\n       \n       // To support download of orignal article alone\n       jQuery('body').off('click','#multiPdfIcon, .multiPdfIcon');\n       jQuery('body').on('click','#multiPdfIcon, .multiPdfIcon', function(e) {\n           triggerUsabillaLive();\n           if ($(\"input[name=art]:checked\").length == 1) {\n\t\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\t\te.stopPropagation();\n              pdfCite.closePopup();\n              var pdfObj = $('#pdfLink');\n              if (pdfObj.attr(\"pdfurl\")) {\n                  createStateCookie('?_origin=sdlPdf', e);                                \n                  pdfCite.openPDF (pdfObj.attr(\"pdfurl\"), e);\n              }\n   \t\t\t\t\t} else {\n    \t\t\t\t\tDDM.openDialog(e);\n   \t\t\t\t\t}\n\t\t\t });\n       \n\t\t\tif (DownloadMenu.showIntermediateScreen) {\n\t\t\t\tjQuery('#suggestedPdfList, #pdfModalWindow, #pdfkingContent').css('display', 'block');\n\t\t\t} else {\n\t\t\t\t//console.log (\"Not an issue link :: Trigerring click\");\n\t\t\t\t$('#multiPdfIcon').trigger('click');  \n         \n\t\t\t\tvar artCount = $(\"input[name=art].checkBox:checked\").length;\n        //LOGGING START\n        //window.AB3683092017.log('ap_ddm_button', {'pdf_ticks_count':artCount});\n\t\t\t\t//window.optimizely.push([\"trackEvent\", \"ap_ddm_button\", {'revenue':100*artCount}]);\n        //LOGGING END\n      \tif( artCount > 1){\n\t\t\t\t\tdisplayMsg = '<span>Downloading zip file containing ' + artCount + '  articles...</span>';\n        \t$('#pdfKingMessage .pdfKingHeading .downloadMsg').html(displayMsg);\n\t\t\t\t}\n         \n\t\t\t\tjQuery('#suggestedPdfList, #pdfModalWindow, #pdfkingContent').css('display', 'block');\n\t\t\t}       \n       \n     }\n   },\n  addEventListeners: function() {\n    $('#articleNav div.icon_pdf div').click(function() {\n      $('.pdfHover').trigger('click');    \t\n    });\n\n    $('.pdfIconSmall.rec').click(function() {\n      $('.recLink').trigger('click');       \n    });\n    \n    $('.pdfIconSmall.issue').click(function() {\n      $('.issueLink').trigger('click');           \n    });\n\n    $('.pdfIconSmall.main').click(function() {\n       $('#pdfLink')[0].click();\n    });\n    \n    $('.pdfHover').click(function() {\n      DownloadMenu.alignDownloadMenu();\n      $('.extendedPdfBox').toggle();\n    });\n\n    $(window).resize(function() {\n      setTimeout(function() {\n        DownloadMenu.alignDownloadMenu();\n      }, 500);\n    });\n    \n    jQuery('body, .exportDivision').click( function(e) {     \n      var obj = e.target;\n      if (!$(obj).closest('.icon_pdf.toolbar')[0]) {\n      \t$('.extendedPdfBox').css('display', 'none');\n      }\n    });\n    \n    jQuery('.extendedPdfBox').on('click', function(e) {\n      e.stopPropagation();\n    });    \n    \n    \n     $('a.issueLink, a.recLink').click(function(e) {\n         e.preventDefault();\n          $('.extendedPdfBox').css('display', 'none');\n          var url = $(this).attr('href');\n          var isIssueLink = $(this).hasClass('issueLink');\n          if (url !== '') {\n               DownloadMenu.displaySpinner();\n               var jqxhr = jQuery.get(url, function(response) {\n                 DownloadMenu.hideSpinner();\n                 response = $.trim(response);\n                 if (response && response.length > 0) {\n                   DownloadMenu.buildSuggestedArticleList(response, \"relatedArtList\", isIssueLink);\n                   window.scrollTo(0,0);\n                   pdfCite.alignSuggestedArticleBox();\n                 }\n               });\n            \n                jqxhr.fail (function() {\n                   DownloadMenu.hideSpinner();\n                   DownloadMenu.buildSuggestedArticleList('{\"citation\":[]}', \"relatedArtList\");\n                   window.scrollTo(0,0);\n                   pdfCite.alignSuggestedArticleBox();\n                  \n                });\n               \n          }\n  \n\t\t\t});\n    \n          \n      jQuery(\".extendedPdfBox #pdfLink\").click(function(event) {\n            event.stopPropagation();\n            $('.extendedPdfBox').css('display', 'none');\n            if (!(SDU.isIE())) {\n                event.preventDefault();\n            }\n            var t = $(event.currentTarget);\n            if (t.attr(\"pdfurl\")) {\n              pdfCite.openPDF (t.attr(\"pdfurl\"), event);\n              triggerUsabillaLive();\n            }\n            if (t.attr(\"suggestedarturl\")) {\n              \n              // When user clicks on new link and then old link\n              $('.pdfModalWindowMsgBox .header').css('display', 'block');    \n    \t\t\t\t\t$('.pdfModalWindowMsgBox .newFooter').css('display', 'block');             \n              jQuery('body').off('click','#multiPdfIcon, .multiPdfIcon');\n              jQuery('body').on('click','#multiPdfIcon, .multiPdfIcon', DDM.openDialog);\n              $('form[name=\"Tag\"]').attr('action', SDM.ep.urlPrefix + '/suggestedArt/export');\n               $('input[name=\"recLinkFromMenu\"]').val('N');\n             \n              \n               if ($('ul.group .newCloseBtn')[0]) {\n                 $('ul.group .newCloseBtn').remove();\n              }\n             \n    \n              var wait = 0;\n              if (typeof SDM.pf.suggestedArtPDFMaxWait != 'undefined') {\n                wait = parseInt(SDM.pf.suggestedArtPDFMaxWait);\n                if ((SDU.isIEless(10))) {\n                  wait +=1000;\n                }\n              }\n              setTimeout(function(){pdfCite.suggestedArt (t.attr(\"suggestedarturl\"));}, wait);\n              \n            }\n            else {\n              pdfCite.suggestedArtDisplayed = false;\n            }\n            return false;\n        }); \n  \n  \t},\n    adjustStylesForScrollBar: function() {\n        jQuery('#SuggestedArtList').addClass('scrollStyles');        \n    },\n    displaySpinner: function() {\n        var closeBtn = $('.pdfModalWindowMsgBox .header').find('a.newCloseBtn').clone();\n        if (!$('ul.group .newCloseBtn')[0]) {\n            $('ul.group').append(closeBtn);\n        }\n        jQuery('.newCloseBtn').click (function() {\n            pdfCite.closePopup();\n        });       \n        $(document).keyup(function(e){if (e.keyCode == 27) { pdfCite.closePopup(); }});       \n\n        $('.pdfModalWindowMsgBox .header').css('display', 'none');      \n        $('.pdfModalWindowMsgBox .newFooter').css('display', 'none');\n        $('li.pdfDownloader').css('display','none');\n        $('#relatedArtList').html('<div id=\"contentBlk\" style=\"height:414px\"><img id=\"loader\" src=\"/sd/img/sprite_parts/loader.gif\"><div id=\"loaderTxt\">Loading Documents</div></div>');\n        jQuery('#suggestedPdfList, #pdfModalWindow, #pdfkingContent').css('display', 'block');\n        pdfCite.alignSuggestedArticleBox();\n    },\n    hideSpinner: function() {\n        jQuery('#suggestedPdfList, #pdfModalWindow, #pdfkingContent').css('display', 'none');\n        $('#relatedArtList').html('');\n        $('li.pdfDownloader').css('display','inline-block');\n        $('.pdfModalWindowMsgBox .newFooter').css('display', 'block');\n    }\n};","audiences":[8226700330],"conditional_code":"typeof SDM != 'undefined' && typeof SDM.pm != 'undefined' && SDM.pm.entitled== true && SDM.pm.contentType == \"BK\" && $('.publicationHead .articlePress').length == 0 && $('#pdfLink').attr(\"suggestedArtURL\") !== undefined","css":".pdfHover {\n  cursor: pointer;\n}\n\n.extendedPdfBox {\n  padding: 15px;\n  border: 1px solid #c9c9c9;\n  background-color: #f9f9f9;\n  display: none;\n  box-shadow: 2px 2px 3px 0px rgba(0,0,0,00.25);\n  position: absolute;\n}\n\n.extendedPdfBox a {\n  color: #316c9d;\n  font-size: 12px;\n}\n\n.extendedPdfLink {\n  margin-top: 10px;\n}\n\n.extendedPdfBox .pdfIconSmall {\n  padding-left: 16px;\n}\n\n.extendedPdfBox #pdfLink, .extendedPdfLink a {\n  padding-left: 5px;\n  position: relative;\n  top: -2px;\n}\n\n.extendedPdfBox .arrow {\n    background: url(\"//cdn.optimizely.com/img/175078151/4b70765071644f7cae81c2e487950f3d.png\") no-repeat scroll 0 0 transparent;\n  height: 11px;\n  width: 20px;\n  margin-left: 15px;\n  z-index: 98;\n  position: absolute;\n  top: -11px;\n}\n\na.issueLink, a.recLink, a.modalLink {\n  padding-left: 5px;\n  padding-right: 10px;\n}\n\n.extendedPdfBox .dropDown {\n  padding-top: 10px;\n}\n\n.extendedPdfBox .dropDown.first {\n  padding-top: 0px;\n}\n\n.header.newlist {\n  height: auto;\n  background-color: #FFF;\n}\n\n.checkBox.grey {\n  opacity : 0.3;\n}\n\n\n\n\n\n#SuggestedArtList.scrollStyles #pdfkingContent{\n  margin-left: 0px;\n  margin-right: 0px;\n   margin-top: 0px;\n  max-height: 450px;\n  overflow: auto;\n}\n\n#SuggestedArtList.scrollStyles .artList li.selection {\n  left: 0px;\n  position: static;\n  display: inline-block;\n  padding-right: 10px;\n}\n\n#SuggestedArtList.scrollStyles .artList li.artTitle,\n#SuggestedArtList.scrollStyles .artList li.artTitleOA{\n  display: inline-block;\n  width: 500px;  \n  height: auto;\n}\n\n#SuggestedArtList.scrollStyles .artList li.artDetails,\n#SuggestedArtList.scrollStyles .artList li.source,\n#SuggestedArtList.scrollStyles .artList li.authors,\n#SuggestedArtList.scrollStyles .artList li.pdfListItem{\n  padding-left: 40px;\n}\n\n#suggestedPdfList.newStyles.scrollStyles .arrow {\n  left: -8px\n}\n\n#SuggestedArtList.scrollStyles #relatedArtList {\n  margin-left: 0px;\n}\n\n.noResults {\n  font-size: 14px;\n  padding-left: 40px;\n}","variation_weights":{"7939488263":10000},"activation_mode":"conditional","name":"AB 1145 - PDF-menu for Chapter Page","enabled":true,"variation_ids":["7951755326","7939488263","7935396460"],"urls":[{"match":"substring","value":"www.sciencedirect.com/science/article/pii/B"}],"enabled_variation_ids":["7939488263"]},"8267891294":{"code":"/*config************************************************************/\nvar opt_isProd  = true;\nvar opt_debug   = false;\nvar opt_expid   = 8267891294;\nvar opt_abid    = 'AB1259-DEBUG-classic';\n/*logging & metrics*************************************************/ \nwindow['AB'+opt_expid] = {\n  config: {expid: opt_expid,\n           abid: opt_abid,\n           varid: null,\n           env: opt_isProd ? 'PROD' : 'CERT',\n           debug: opt_debug,\n           pagetype: null\n          },\n  logger: ABlogger.getInstance(),\n  log:function(evt, evtdata){\n    evtdata = evtdata || {};\n    this.logger.push({'settings':this.config, 'evt':evt, 'evtdata':evtdata});  \n  },\n  init:function(varid, pageid){ //init() is called from variation code.\n\t\tthis.config.varid = varid;\n    if (pageid === 'srp'){\n    \tvar context_data= this.get_context_data(null);\n    \tthis.log('pageload_srp', context_data);\n      window.optimizely.push([\"trackEvent\", \"pageload_srp\"]);\n      this.metrics(varid); \n    } else\n    if (pageid === 'nonsrp'){\n    \tvar akamai = this.get_akamai();\n    \tthis.log('pageload_nonsrp', {akamai:akamai});\n      window.optimizely.push([\"trackEvent\", \"pageload\"]);\n    } else {\n    \treturn;  \n    }\n    \n    this.variations(varid); \n\t},  \n  \n  variations:function(varid){  \n    \n  },\n  \n  get_akamai:function(){\n    //get Akamai cookie\n    var akamai = null;\n    var raw_akamai = OptUtil.getCookie('Search_AB_20170202');\n    if (raw_akamai === null){\n    \takamai = -1; \n    } else {\n    \takamai = raw_akamai;  \n    }\n    return akamai;\n  },\n  \n  get_context_data:function(elem){\n    \n    //get Akamai cookie\n    var akamai = this.get_akamai();\n    \n    //get pagenumber\n    var pagenum = -1;\n    var pageObj = $('input[name=\"_chunk\"]');\n    pagenum  = parseInt (pageObj.val(), 10) + 1;\n    if (isNaN(pagenum)) {\tpagenum = 'na'; }\n\n    \n    //get sort order\n    var sort = \"r\";\n    if ($('div.sortFilterContainer a[aria-controls=\"search_sort\"] span.selectedFilter:contains(\"Date\")').length > 0){\n      sort = \"d\";\n    }\n    \n    //get number of results and query\n    var nres = -1;\n    var query= 'na';\n    if ($('title').text() === 'ScienceDirect  Error'){\n      qmatch = $('.msgText').text().match(/.*was\\s*:(.*)\\s*[Did,Edit]*/);\n      if (qmatch){\n        query = qmatch[1];\n      } else {\n        query = 'unknown_query_from_error';\n      }\n      nres = 0;\n    } else {\n      qmatch = $('title').text().match(/.*Results - (.*) - ScienceDirect/);\n      if (qmatch){\n        query = qmatch[1];\n      } else {\n        query = 'unknown_query';  \n      }\n      nmatch = $('title').text().match(/([0-9,]*) Search/);\n      if (nmatch){\n        nres = parseInt(nmatch[1].replace(/,/g,''),10);\n      }\n    }\n\n    //get PIIs of results 1-20\n    var piis = {r1:-1,r2:-1,r3:-1,r4:-1,r5:-1,r6:-1,r7:-1,r8:-1,r9:-1,r10:-1,r11:-1,r12:-1,r13:-1,r14:-1,r15:-1,r16:-1,r17:-1,r18:-1,r19:-1,r20:-1};\n    var targetpii;\n    $('a.cLink.artTitle.S_C_artTitle').each(function(i,o){ \n      targetpii = $(o).attr('href').match(/pii\\/(.*)/);\n      if (i<20){\n        piis['r'+(i+1)] = targetpii[1];  \n      }\n    });\n    \n    //get docsubtypes of results 1-20\n    var docsubs = {r1:-1,r2:-1,r3:-1,r4:-1,r5:-1,r6:-1,r7:-1,r8:-1,r9:-1,r10:-1,r11:-1,r12:-1,r13:-1,r14:-1,r15:-1,r16:-1,r17:-1,r18:-1,r19:-1,r20:-1};\n    var targetdocsub;\n    $('a.cLink.artTitle.S_C_artTitle').each(function(i,o){ \n      if (i<20){\n        targetdocsub = $(o).attr('data-docsubtype');\n        docsubs['r'+(i+1)] = targetdocsub;  \n      }\n    });\n\n    var click_pii = 'na';\n    var click_docsub = 'na';\n    var click_rank= -1;\n    var click_entitled = 'na';\n    var click_openaccess = 'na';\n    if (elem){\n      //get entitlement for clicked result\n    \tvar parent = $(elem).parents('ul.article');\n    \tif (parent.has('li.external ul.extLinkBlock a[rel=nofollow].cLink').length !== 0){\n      \tclick_entitled = 'true';\n    \t} else {\n      \tclick_entitled = 'false';\n    \t}\n      \n      //get openaccess for clicked result\n      // HM 02/03/17 : Added Open Archive\n    \tif (parent.has('span.iconPosition:contains(\"Open Access\")').length !== 0 || parent.has('span.iconPosition:contains(\"Open Archive\")').length !== 0){\n      \tclick_openaccess = 'true';\n    \t} else {\n      \tclick_openaccess = 'false';\n    \t}      \n      \n      //get PII of clicked result\n      var target = parent.find('a.cLink.artTitle.S_C_artTitle');\n      targetpii = target.attr('href').match(/pii\\/(.*)/);\n      if (targetpii){\n        click_pii = targetpii[1];\n      }\n      \n      //get docsubtype of clicked result\n      //var target = parent.find('a.cLink.artTitle.S_C_artTitle');\n      targetdocsub = target.attr('data-docsubtype');\n      if (targetdocsub){\n        click_docsub = targetdocsub;\n      }\n\n      //get rank of clicked result\n      parent = $(elem).parents('li.detail');\n      var rankarr = (new RegExp( \"resultsView_([^&#]*)\" )).exec( parent.next().attr('id') );\n      if (rankarr && rankarr[1]){\n        click_rank = parseInt(rankarr[1],10);\n      } else {\n        click_rank = 'na';\n      }\n    }\n\n    return {akamai:akamai,\n      \t\t\tpagenum:pagenum,\n            sort:sort,\n            query:query,\n            nresults:nres,\n            nddm: -1,\n            piis:piis,\n            docsubs:docsubs,\n            click_pii:click_pii,\n            click_docsub:click_docsub,\n            click_rank:click_rank,\n           \tclick_oa:click_openaccess,\n           \tclick_entitled:click_entitled};     \n  },\n  \n \tmetrics:function(){\n\n\t\t//Purchase PDF button\n    $('div#bodyMainResults li.detail li.external ul.extLinkBlock a[rel=nofollow]:not(.cLink),div#bodyMainResults li.detail li.external ul.extLinkBlock a.icon_orderdocsci_dir').live(\"mousedown\",$.proxy(function(eventObject){\n\n      var context_data= this.get_context_data(eventObject.currentTarget);\n\n      this.log(\"srp_purchase_pdf\", context_data);\n      window.optimizely.push([\"trackEvent\", \"srp_purchase_pdf\"]);\n      \n    },this));\n\n    //Download PDF Button\n    $('div#bodyMainResults li.detail li.external ul.extLinkBlock a[rel=nofollow].cLink').live(\"mousedown\",$.proxy(function(eventObject){\n\n      var context_data= this.get_context_data(eventObject.currentTarget);\n\n      this.log(\"srp_download_pdf\", context_data);\n      window.optimizely.push([\"trackEvent\", \"srp_download_pdf\"]);\n      \n    },this));\n\n    //HTML FTA link\n    $('div#bodyMainResults li.title a[id^=title]').live(\"mousedown\",$.proxy(function(eventObject){\n\n      var context_data= this.get_context_data(eventObject.currentTarget);\n\n      if (context_data.click_entitled === 'true'){\n        window.optimizely.push([\"trackEvent\", \"srp_fta_html\"]);\n        this.log(\"srp_fta_html\", context_data);\n      } else {\n        window.optimizely.push([\"trackEvent\", \"srp_abstract_html\"]);\n        this.log(\"srp_abstract_html\", context_data);\n      }\n    },this));\n    \n\t//DDM FTA count\n\t$('div#appDialog.files button#ddm').live(\"mousedown\",$.proxy(function(eventObject){\n\t\tvar context_data= this.get_context_data(null);\n      \n    context_data.nddm = $('div#tableScroll tbody tr.row').length;\n      \n\t\tthis.log(\"srp_ddm\", context_data);\n\t\tvar revenue;\n\t\tif (context_data.nddm > 0){ revenue = 100 * context_data.nddm; }\n\t\twindow.optimizely.push([\"trackEvent\", \"srp_ddm\", {'revenue': revenue}]);\n      \n    },this));\n    \n  // Search Submit\n  // HM 02/03/17 : Added quicksearch submit events\n  $('form.homesearch-quick-form, form#quickSearch, form.searchbox-form').live(\"submit\",$.proxy(function(eventObject){\n      var context_data= this.get_context_data(null);\n      this.log(\"search_submit\", context_data);\n      window.optimizely.push([\"trackEvent\", \"search_submit\"]);\n    },this));\n    \n\t}\n};","audiences":[8243260669],"name":"DEBUG AAB | Search Results V5 (Classic)","variation_ids":["8266692871","8268901184"],"urls":[{"match":"substring","value":"www.sciencedirect.com"},{"match":"regex","value":".+\\?_ob=ArticleListURL.+_ArticleListID=.*"}],"enabled_variation_ids":["8266692871","8268901184"]},"8227350427":{"code":"/*config************************************************************/\nvar opt_isProd  = true;\nvar opt_debug   = false;\nvar opt_expid   = 8227350427;\nvar opt_abid    = 'AB1246';\n/*logging & metrics*************************************************/ \nwindow['AB'+opt_expid] = {\n  config: {expid: opt_expid,\n           abid: opt_abid,\n           varid: null,\n           env: opt_isProd ? 'PROD' : 'CERT',\n           debug: opt_debug,\n           pagetype: null\n          },\n  logger: ABlogger.getInstance(),\n  log:function(evt, evtdata){\n    evtdata = evtdata || {};\n    this.logger.push({'settings':this.config, 'evt':evt, 'evtdata':evtdata});  \n  },\n  init:function(varid, pageid){ //init() is called from variation code.\n\t\tthis.config.varid = varid;\n    if (pageid === 'srp'){\n    \tvar context_data= this.get_context_data(null);\n    \tthis.log('pageload_srp', context_data);\n      this.metrics(varid); \n    } else\n    if (pageid === 'nonsrp'){\n    \tthis.log('pageload');\n    } else {\n    \treturn;  \n    }\n    \n    this.variations(varid); \n\t},  \n  \n  variations:function(varid){  \n    \n  },\n  \n  get_context_data:function(elem){\n    \n    //get Akamai cookie\n    var akamai = null;\n    var raw_akamai = OptUtil.getCookie('Search_AB_20170202');\n    if (raw_akamai === null){\n    \takamai = -1; \n    } else {\n    \takamai = raw_akamai;  \n    }\n    \n    //get pagenumber\n    var pagenum = -1;\n    var pageObj = $('input[name=\"_chunk\"]');\n    pagenum  = parseInt (pageObj.val(), 10) + 1;\n    if (isNaN(pagenum)) {\tpagenum = 'na'; }\n\n    \n    //get sort order\n    var sort = \"r\";\n    if ($('div.sortFilterContainer a[aria-controls=\"search_sort\"] span.selectedFilter:contains(\"Date\")').length > 0){\n      sort = \"d\";\n    }\n    \n    //get number of results and query\n    var nres = -1;\n    var query= 'na';\n    if ($('title').text() === 'ScienceDirect  Error'){\n      qmatch = $('.msgText').text().match(/.*was\\s*:(.*)\\s*[Did,Edit]*/);\n      if (qmatch){\n        query = qmatch[1];\n      } else {\n        query = 'unknown_query_from_error';\n      }\n      nres = 0;\n    } else {\n      qmatch = $('title').text().match(/.*Results - (.*) - ScienceDirect/);\n      if (qmatch){\n        query = qmatch[1];\n      } else {\n        query = 'unknown_query';  \n      }\n      nmatch = $('title').text().match(/([0-9,]*) Search/);\n      if (nmatch){\n        nres = parseInt(nmatch[1].replace(/,/g,''),10);\n      }\n    }\n\n    //get PIIs of results 1-20\n    var piis = {r1:-1,r2:-1,r3:-1,r4:-1,r5:-1,r6:-1,r7:-1,r8:-1,r9:-1,r10:-1,r11:-1,r12:-1,r13:-1,r14:-1,r15:-1,r16:-1,r17:-1,r18:-1,r19:-1,r20:-1};\n    var targetpii;\n    $('a.cLink.artTitle.S_C_artTitle').each(function(i,o){ \n      targetpii = $(o).attr('href').match(/pii\\/(.*)/);\n      if (i<20){\n        piis['r'+(i+1)] = targetpii[1];  \n      }\n    });\n    \n    //get docsubtypes of results 1-20\n    var docsubs = {r1:-1,r2:-1,r3:-1,r4:-1,r5:-1,r6:-1,r7:-1,r8:-1,r9:-1,r10:-1,r11:-1,r12:-1,r13:-1,r14:-1,r15:-1,r16:-1,r17:-1,r18:-1,r19:-1,r20:-1};\n    var targetdocsub;\n    $('a.cLink.artTitle.S_C_artTitle').each(function(i,o){ \n      if (i<20){\n        targetdocsub = $(o).attr('data-docsubtype');\n        docsubs['r'+(i+1)] = targetdocsub;  \n      }\n    });\n\n    var click_pii = 'na';\n    var click_docsub = 'na';\n    var click_rank= -1;\n    var click_entitled = 'na';\n    var click_openaccess = 'na';\n    if (elem){\n      //get entitlement for clicked result\n    \tvar parent = $(elem).parents('ul.article');\n    \tif (parent.has('li.external ul.extLinkBlock a[rel=nofollow].cLink').length !== 0){\n      \tclick_entitled = 'true';\n    \t} else {\n      \tclick_entitled = 'false';\n    \t}\n      \n      //get openaccess for clicked result\n    \tif (parent.has('span.iconPosition:contains(\"Open Access\")').length !== 0){\n      \tclick_openaccess = 'true';\n    \t} else {\n      \tclick_openaccess = 'false';\n    \t}      \n      \n      //get PII of clicked result\n      var target = parent.find('a.cLink.artTitle.S_C_artTitle');\n      targetpii = target.attr('href').match(/pii\\/(.*)/);\n      if (targetpii){\n        click_pii = targetpii[1];\n      }\n      \n      //get docsubtype of clicked result\n      //var target = parent.find('a.cLink.artTitle.S_C_artTitle');\n      targetdocsub = target.attr('data-docsubtype');\n      if (targetdocsub){\n        click_docsub = targetdocsub;\n      }\n\n      //get rank of clicked result\n      parent = $(elem).parents('li.detail');\n      var rankarr = (new RegExp( \"resultsView_([^&#]*)\" )).exec( parent.next().attr('id') );\n      if (rankarr && rankarr[1]){\n        click_rank = parseInt(rankarr[1],10);\n      } else {\n        click_rank = 'na';\n      }\n    }\n\n    return {akamai:akamai,\n      \t\t\tpagenum:pagenum,\n            sort:sort,\n            query:query,\n            nresults:nres,\n            nddm: -1,\n            piis:piis,\n            docsubs:docsubs,\n            click_pii:click_pii,\n            click_docsub:click_docsub,\n            click_rank:click_rank,\n           \tclick_oa:click_openaccess,\n           \tclick_entitled:click_entitled};     \n  },\n  \n \tmetrics:function(){\n\n\t\t//Purchase PDF button\n    $('div#bodyMainResults li.detail li.external ul.extLinkBlock a[rel=nofollow]:not(.cLink),div#bodyMainResults li.detail li.external ul.extLinkBlock a.icon_orderdocsci_dir').live(\"mousedown\",$.proxy(function(eventObject){\n\n      var context_data= this.get_context_data(eventObject.currentTarget);\n\n      this.log(\"srp_purchase_pdf\", context_data);\n      window.optimizely.push([\"trackEvent\", \"srp_purchase_pdf\"]);\n      \n    },this));\n\n    //Download PDF Button\n    $('div#bodyMainResults li.detail li.external ul.extLinkBlock a[rel=nofollow].cLink').live(\"mousedown\",$.proxy(function(eventObject){\n\n      var context_data= this.get_context_data(eventObject.currentTarget);\n\n      this.log(\"srp_download_pdf\", context_data);\n      window.optimizely.push([\"trackEvent\", \"srp_download_pdf\"]);\n      \n    },this));\n\n    //HTML FTA link\n    $('div#bodyMainResults li.title a[id^=title]').live(\"mousedown\",$.proxy(function(eventObject){\n\n      var context_data= this.get_context_data(eventObject.currentTarget);\n\n      if (context_data.click_entitled === 'true'){\n        window.optimizely.push([\"trackEvent\", \"srp_fta_html\"]);\n        this.log(\"srp_fta_html\", context_data);\n      } else {\n        window.optimizely.push([\"trackEvent\", \"srp_abstract_html\"]);\n        this.log(\"srp_abstract_html\", context_data);\n      }\n    },this));\n    \n\t//DDM FTA count\n\t$('div#appDialog.files button#ddm').live(\"mousedown\",$.proxy(function(eventObject){\n\t\tvar context_data= this.get_context_data(null);\n      \n    context_data.nddm = $('div#tableScroll tbody tr.row').length;\n      \n\t\tthis.log(\"srp_ddm\", context_data);\n\t\tvar revenue;\n\t\tif (context_data.nddm > 0){ revenue = 100 * context_data.nddm; }\n\t\twindow.optimizely.push([\"trackEvent\", \"srp_ddm\", {'revenue': revenue}]);\n      \n    },this));\n\t}\n};","audiences":[6460110492],"name":"AB-1246 AA | Search Results V3 (Classic)","variation_ids":["8224690920","8224690921"],"urls":[{"match":"substring","value":"www.sciencedirect.com"},{"match":"regex","value":".+\\?_ob=ArticleListURL.+_ArticleListID=.*"}],"enabled_variation_ids":["8224690920","8224690921"]},"8213990652":{"code":"/*config************************************************************/\nvar opt_isProd = true;\nvar opt_debug = false;\nvar opt_expid = 8213990652;\nvar opt_abid = 'AB1245';\n/*logging & metrics*************************************************/\nwindow['AB' + opt_expid] = {\n    start: new Date(),\n    config: {\n        expid: opt_expid,\n        abid: opt_abid,\n        varid: null,\n        env: opt_isProd ? 'PROD' : 'CERT',\n        debug: opt_debug,\n        pagetype: null\n    },\n    logger: ABlogger.getInstance(),\n    log: function(evt, evtdata) {\n        evtdata = evtdata || {};\n        this.logger.push({\n            'settings': this.config,\n            'evt': evt,\n            'evtdata': evtdata\n        });\n    },\n    init: function(varid) { //init() is called from variation code.\n        var refine_checkbox = \"false\";\n        this.config.varid = varid;\n        this.log('pageload');\n        this.variations(varid);\n        this.metrics(varid);\n\n\n    },\n\n    variations: function(varid) {\n        //console.log(\"test1\");\n\n\n\n    },\n\n\n    get_context_data: function() {\n\n        function findO(url, q) {\n            return q.some(function(v) {\n                return url.indexOf(v) >= 0;\n            });\n        }\n\n        // get search_type\n\n        var search_type = null;\n        var q = [\"all_boolSearch.tmpl\", \"boolSearch.tmpl\", \"bookAdvance.tmpl\", \"refWorkTemplateType=A\", \"image_boolSearch.tmpl\"];\n        var url = window.location.href;\n        if (findO(url, q)) {\n            search_type = \"exp\";\n        } else {\n            search_type = \"adv\";\n        }\n\n\n        // get search_tab\n        var search_tab = null;\n\n        if (url.indexOf(\"all_search.tmpl\") >= 0 || url.indexOf(\"all_boolSearch.tmpl\") >= 0) {\n            search_tab = \"all\";\n        } else if (url.indexOf(\"temp=search.tmpl\") >= 0 || url.indexOf(\"temp=boolSearch.tmpl\") >= 0) {\n            search_tab = \"journals\";\n        } else if (url.indexOf(\"bookBasic.tmpl\") >= 0 || url.indexOf(\"bookAdvance.tmpl\") >= 0) {\n            search_tab = \"books\";\n        } else if (url.indexOf(\"refWorkTemplateType=B\") >= 0 || url.indexOf(\"refWorkTemplateType=A\") >= 0) {\n            search_tab = \"refworks\";\n        } else if (url.indexOf(\"image_search.tmpl\") >= 0 || url.indexOf(\"image_boolSearch.tmpl\") >= 0) {\n            search_tab = \"images\";\n        } else {\n            search_tab = \"all\";\n        }\n\n\n\n        // get query\n        var query = null;\n        if (search_type == \"adv\") {\n            query = $('div.searchFormBg input[name=\"SearchText\"]').val().concat(\"+\", $('div.searchFormBg select[name=\"keywordOpt\"]').val(), \"+\", $('div.searchFormBg select[name=\"addTerm\"]').val(), \"+\", $('div.searchFormBg input[name=\"addSearchText\"]').val(), \"+\", $('div.searchFormBg select[name=\"addkeywordOpt\"]').val());\n        } else {\n            //  exp\n            query = $(\"div.searchFormBg textarea\").val();\n        }\n\n\n        // get subject\n        var subject = null;\n        if ($('div.searchFormBg select[name=\"srcSel\"] option:selected').val() == 1) {\n            subject = \"all\";\n        } else {\n            subject = \"other\";\n        }\n      \n        return {\n            search_type: search_type,\n            search_tab: search_tab,\n            query: query,\n            subject: subject,\n\n        };\n    },\n\n\n    metrics: function() {\n       // console.log(\"test4\");\n        var date_filter = \"false\";\n        var vol_issue_page = \"false\";\n        var refine_checkbox = \"false\";\n\n\n        /// get refine checkbok\n\n        if ($('div.searchFormBg select[name=\"refworks\"].mrwList').length > 0) {\n            refine_checkbox = \"true\";\n            //console.log(refine_checkbox);\n        }\n\n\n        $('div.limitByRow').live(\"mousedown\", $.proxy(function() {\n            refine_checkbox = \"true\";\n            //console.log(refine_checkbox);\n\n        }, this));\n        $('div.searchFormBg input[name=\"navImage\"]').live(\"mousedown\", $.proxy(function() {\n            refine_checkbox = \"true\";\n           // console.log(refine_checkbox);\n        }, this));\n        $('div.searchFormBg select[name=\"Subscribed\"]').live(\"mousedown\", $.proxy(function() {\n            refine_checkbox = \"true\";\n            //console.log(refine_checkbox);\n            //this.log(\"refine_checkbox\",refine_checkbox);\n        }, this));\n\n\n\n\n        // get date_filter\n\n        $('div.searchFormBg input#dateSelectRadio').live(\"mousedown\", $.proxy(function() {\n            date_filter = \"true\";\n            //console.log(date_filter);\n            //this.log(\"date_filter\",date_filter);\n        }, this));\n\n        // get vol_issue_page\n\n        $('div.searchFormBg div.searchFormLabel').live(\"mousedown\", $.proxy(function() {\n            vol_issue_page = \"true\";\n            //console.log(vol_issue_page);\n            //this.log(\"vol_issue_page\",vol_issue_page);\n        }, this));\n\n        // Submit search\n\n        $('form[name=\"Form1\"]').live(\"submit\", $.proxy(function() {\n            //console.log('submit');\n          window.optimizely.push([\"trackEvent\", \"search_submit\"]);\n            var context_data = this.get_context_data();\n            var context2 = {\n                date_filter: date_filter,\n                refine_checkbox: refine_checkbox,\n                vol_issue_page: vol_issue_page,\n            };\n            var context3 = jQuery.extend(context2, context_data);\n            //console.log(context_data, date_filter, refine_checkbox, vol_issue_page);\n            this.log(\"search_submit\", context3);\n        }, this));\n\n\n    }\n};","audiences":[6460110492],"name":"AB-1245 AA | Advanced and Expert Search","variation_ids":["8214560611","8214715658"],"urls":[{"match":"substring","value":"www.sciencedirect.com/science?_ob=MiamiSearchURL"},{"match":"substring","value":"www.sciencedirect.com/science/search"}],"enabled_variation_ids":["8214560611","8214715658"]},"8018771326":{"code":"/*config************************************************************/\nvar opt_isProd  = true;\nvar opt_debug   = false;\nvar opt_expid   = 8018771326;\nvar opt_abid    = 'AB1207';\n/*logging & metrics*************************************************/ \nwindow['AB'+opt_expid] = {\n  start: new Date(),\n  config: {expid: opt_expid,\n           abid: opt_abid,\n           varid: null,\n           env: opt_isProd ? 'PROD' : 'CERT',\n           debug: opt_debug },\n  \n  logger: ABlogger.getInstance(),\n  \n  log:function(evt, evtdata){\n    evtdata = evtdata || {};\n    this.logger.push({'settings':this.config, 'evt':evt, 'evtdata':evtdata});\n  },\n  \n  init:function(varid, pageid){ //init() is called from variation code.\n    $('body').attr('data-ab1027', varid);\n\t\tthis.config.varid = varid;\n\t\tthis.variations(varid, pageid);\n    this.metrics(varid, pageid);\n\t},\n  \n  variations:function(varid, pageid){\n    if (varid == 'var1'){\n      $('#ppvPlaceHolder').insertBefore($('div.page_fragment')[$('div.page_fragment').length-1]).css('font-size','13px');\n      $('div.icon_pdf.toolbar.ppv').replaceWith($('div.icon_pdf.toolbar.ppv').clone());\n      $('#pdfLink').attr('href','#ppvPlaceHolder');\n      $('div.largeIcon').attr('onclick', \"location.href='#ppvPlaceHolder';\");\n    }\n\t},\n  \n  metrics:function(varid, pageid){\n    if (varid == 'control1'){\n      $('div.icon_pdf.toolbar.ppv').live(\"mousedown\", $.proxy(function(){\t\n        window.optimizely.push([\"trackEvent\", \"purchase_pdf_button\", {'revenue': 100}]);\n      }, this));\n      $('div#ppvPlaceHolder a.purchaseSprite.cLink').live(\"mousedown\", $.proxy(function(){\t\n    \t\twindow.optimizely.push([\"trackEvent\", \"purchase_pdf_options\", {'revenue': 100}]);\n\t\t\t}, this));\n      $('body div.accessContent a.blueButton').live(\"mousedown\", $.proxy(function(){\t\n        window.optimizely.push([\"trackEvent\", \"check_access\"]);\n      }, this));\n      $('body li.outLinks a[title*=\"Full Text\"]').live(\"mousedown\", $.proxy(function(){\t\n        window.optimizely.push([\"trackEvent\", \"get_ft_elsewhere\"]);\n      }, this));\n      $('body span#deepdyve').live(\"mousedown\", $.proxy(function(){\t\n        window.optimizely.push([\"trackEvent\", \"rent_deepdyve\"]);\n      }, this));\n    } else\n    if (varid == 'var1'){\n    \t$('div.icon_pdf.toolbar.ppv').live(\"mousedown\", $.proxy(function(){\t\n        window.optimizely.push([\"trackEvent\", \"purchase_pdf_button\"]);\n      }, this));\n      $('div#ppvPlaceHolder a.purchaseSprite.cLink').live(\"mousedown\", $.proxy(function(){\t\n    \t\twindow.optimizely.push([\"trackEvent\", \"purchase_pdf_options\", {'revenue': 100}]);\n\t\t\t}, this));\n      $('body div.accessContent a.blueButton').live(\"mousedown\", $.proxy(function(){\t\n        window.optimizely.push([\"trackEvent\", \"check_access\"]);\n      }, this));\n      $('body li.outLinks a[title*=\"Full Text\"]').live(\"mousedown\", $.proxy(function(){\t\n        window.optimizely.push([\"trackEvent\", \"get_ft_elsewhere\"]);\n      }, this));\n      $('body span#deepdyve').live(\"mousedown\", $.proxy(function(){\t\n        window.optimizely.push([\"trackEvent\", \"rent_deepdyve\"]);\n      }, this));\n    }  \n\t}\n};","audiences":[8021161773],"name":"AB-1207 - purchase options box below the abstract","variation_ids":["8022790187","8027540177"],"urls":[{"match":"substring","value":"www.sciencedirect.com/science/article/pii/S"}],"enabled_variation_ids":["8022790187","8027540177"]}},"audiences":{"8235564454":{"conditions":["and",["or",["or",{"dimension_id":674410162,"value":"window.location.hostname == 'www.sciencedirect.com'"}]],["or",["or",{"dimension_id":3848470334,"value":"desktop"}]],["or",["or",{"dimension_id":8232110680,"value":"^(66[7-9]|6[7-9][0-9]|[7-8][0-9][0-9]|9[0-8][0-9]|99[0-9])$","match":"regex"}]]],"name":"AAB SOLR Cloud: Tech"},"7924543209":{"conditions":["and",["or",["or",{"dimension_id":8153598228,"value":"Y","match":"exact"},{"dimension_id":8211343120,"value":"1","match":"exact"}],["not",["or",{"dimension_id":3526830013,"value":"sciencedirect.com","match":"substring"}]]],["or",["not",["or",{"dimension_id":8159235355,"match":"exists"},{"dimension_id":8230470252,"match":"exists"}]]],["or",["or",{"dimension_id":674410162,"value":"typeof(window.pageTargeting) === 'undefined' || (typeof(window.pageTargeting) !== 'undefined' && window.pageTargeting.platform !== 'sdtech')"}]]],"name":"AB-1215 Referer + Session + NOT_TECH"},"8226700330":{"conditions":["and",["or",["or",{"dimension_id":674410162,"value":"window.ab.entitled == true"}]],["or",["or",{"dimension_id":674410162,"value":"typeof(window.pageTargeting) === 'undefined' || (typeof(window.pageTargeting) !== 'undefined' && window.pageTargeting.platform !== 'sdtech')"}]]],"name":"entitled + NOT_TECH"},"8021161773":{"conditions":["and",["or",["or",{"dimension_id":674410162,"value":"window.ab.entitled == false"}]],["or",["or",{"dimension_id":3848470334,"value":"desktop"}]]],"name":"non-entitled + desktop"},"6966860956":{"conditions":["and",["or",["or",{"dimension_id":674410162,"value":"Array.prototype.indexof = function(obj){\n   for(var i=0; i<this.length; i++){\n      if(this[i]==obj){\n          return i;\n      }\n   }\n   return -1;\n}\n\nvar issnList = ['03702693','18735061','22131582','18789293','22135960','20010370','22113355','2215017X','22120947','17554365','23524847','22129685','22147829','22113797','22113207','22132244','22141804','22146474','22145400','22130586','03005712','03009440'];\n\n//make sure all array elements are upper case\nfor ( var iii=0; iii<issnList.length; iii++){ issnList[iii] = issnList[iii].toUpperCase(); }\n\n// Get the piivalue\nvar pii = window.location.href.split('/').pop();\nif (pii.charAt(0) == 'S' || pii.charAt(0) == 'B') { pii = pii.substr(1); }\nvar issn = pii.substring (0, 8);\n\nif ( issnList.indexof( issn.toUpperCase() ) != -1 ) {\n    true;\n} else {\n    false;\n}"}]],["or",["or",{"dimension_id":674410162,"value":"window.ab.entitled == true"}]],["or",["not",["or",{"dimension_id":2606791140,"value":"ie10"},{"dimension_id":2606791140,"value":"ie9"},{"dimension_id":2606791140,"value":"ie8"}]]],["or",["not",["or",{"dimension_id":8211343120,"value":"1","match":"exact"}]]],["or",["or",{"dimension_id":674410162,"value":"typeof(window.pageTargeting) === 'undefined' || (typeof(window.pageTargeting) !== 'undefined' && window.pageTargeting.platform !== 'sdtech')"}]]],"name":"ISSN + entitled + NOT_PDFMENU_SESSION + NOT_TECH"},"8243260669":{"conditions":["and",["or",["or",{"dimension_id":674410162,"value":"window.location.hostname == 'www.sciencedirect.com'"}]],["or",["or",{"dimension_id":3848470334,"value":"desktop"}]],["or",["or",{"dimension_id":8232110680,"value":"^([1-9]|[1-9][0-9]|[1-2][0-9][0-9]|3[0-2][0-9]|33[0-3])$","match":"regex"}],["or",{"dimension_id":8232110680,"value":"^(33[4-9]|3[4-9][0-9]|[4-5][0-9][0-9]|6[0-5][0-9]|66[0-6])$","match":"regex"}]]],"name":"AAB SOLR Cloud: Classic"},"2005150190":{"conditions":["and",["or",["or",{"dimension_id":674410162,"value":"//define global namespace\nwindow.com=window.com|| {};\nwindow.com.AB=window.com.AB || {};\nwindow.com.AB.sd=window.com.AB.sd || {};\n\nwindow['optimizely']=window['optimizely'] || [];\n\n//define all active experiments.\nwindow.com.AB.sd.expArray=[\n]; \n\n//init custom dimensions has been moved to Project Javascript\n\n/*IMPORTANT: return false to make sure this audience gets checked for every visit (a return true will have the audience 'cached' in optimizely cookie and will not be checked again in the next visit.*/\nfalse;"}]],["or",["or",{"dimension_id":2659120783,"value":"NL||AMSTERDAM"}]]],"name":"a. Global Optimizely Config (DO NOT REMOVE)","segment_id":1998820294},"8229045593":{"conditions":["and",["or",["or",{"dimension_id":3848470334,"value":"desktop"}]],["or",["or",{"dimension_id":8232110680,"value":"^(99[0-9]|1000)$","match":"regex"}]]],"name":"desktop only AND Akamai Tech Cookie 990-1000"},"6460110492":{"conditions":["and",["or",["or",{"dimension_id":3848470334,"value":"desktop"}]],["or",["or",{"dimension_id":674410162,"value":"window.location.hostname == 'www.sciencedirect.com'"}]],["or",["or",{"dimension_id":674410162,"value":"typeof(window.pageTargeting) === 'undefined' || (typeof(window.pageTargeting) !== 'undefined' && window.pageTargeting.platform !== 'sdtech')"}]]],"name":"desktop only + www.sciencedirect.com + NOT_TECH"},"8246852957":{"conditions":["and",["or",["or",{"dimension_id":3848470334,"value":"desktop"}]],["or",["or",{"dimension_id":674410162,"value":"window.location.hostname == 'www.sciencedirect.com'"}]]],"name":"desktop only - www.sciencedirect.com"}},"www_host":"app.optimizely.com","public_suffixes":{"sciencedirect.com":["www.sciencedirect.com"]},"force_variation":true,"dimensions":{"2226241080":{"api_name":"SD_CUSDIM7","condition_type":"custom_dimension","name":"SD_CustomDimension7","segment_id":2215071425},"2606791140":{"condition_type":"browser_version"},"2245200166":{"api_name":"SD_CUSDIM8","condition_type":"custom_dimension","name":"SD_CustomDimension8","segment_id":2230000384},"2119701222":{"api_name":"SD_CUSDIM1","condition_type":"custom_dimension","name":"SD_CustomDimension1","segment_id":2106061159},"2202501028":{"api_name":"SD_CUSDIM6","condition_type":"custom_dimension","name":"SD_CustomDimension6","segment_id":2223700818},"2116451592":{"api_name":"SD_CUSDIM4","condition_type":"custom_dimension","name":"SD_CustomDimension4","segment_id":2106810101},"8230470252":{"condition_type":"query","name":"optimizely_x8228660863"},"2659120783":{"condition_type":"location"},"8211343120":{"condition_type":"cookies","name":"dis_show"},"674410162":{"condition_type":"code"},"2091750643":{"api_name":"SD_CUSDIM2","condition_type":"custom_dimension","name":"SD_CustomDimension2","segment_id":2119510536},"2565290196":{"api_name":"SD_CUSDIM9","condition_type":"custom_dimension","name":"SD_CustomDimension9","segment_id":2559950540},"8153598228":{"condition_type":"cookies","name":"opt_session_v8"},"2093413432":{"api_name":"SD_CUSDIM5","condition_type":"custom_dimension","name":"SD_CustomDimension5","segment_id":2129461344},"8232110680":{"condition_type":"cookies","name":"Search_AB_20170202"},"2103130907":{"api_name":"SD_CUSDIM3","condition_type":"custom_dimension","name":"SD_CustomDimension3","segment_id":2118620591},"8159235355":{"condition_type":"query","name":"optimizely_x12345678"},"3526830013":{"condition_type":"referrer"},"3848470334":{"condition_type":"device"}},"version":"master-pci-119.399866808272946053","admin_account_id":175078151,"blacklisted_experiments":[8155830143,8276107010,8208581508,8250000901,8191711883,8171585295,8200795536,8251760275,8212320276,8225001749,8281549974,7928255642,8287912862,8184015642,8209551400,7141950634,8238242219,7381111346,8037561653,8200795446,8206800444,8251784894,5611891521,8205733570,8206963125,7947093131,8167462070,8163790156,8161000653,8011604942,8222224849,7945941844,8081092309,8291590358,8192550492,7885913188,8022104037,8228800871,8164397545,8076220753,7973931117,6315831663,8199834868,8030732555,8139752953,8213255802],"project_id":204774041,"revision":6816,"summary_revenue_goal_id":204702267,"installation_verified":true,"preview_host":"//optimizely.s3.amazonaws.com","api_host":"api.optimizely.com","variations":{"8266692871":{"code":"/* _optimizely_variation_url include=\"www.sciencedirect.com\" exclude=\".+\\?_ob=ArticleListURL.+_ArticleListID=.*\" include_match_types=\"substring\" exclude_match_types=\"regex\" id=\"1467994454934\" */\n(function(expid, varid, pageid) {\n\tif (!window['exp'+expid+'_'+varid]){\n\t\twindow['exp'+expid+'_'+varid] = true;  \t\n    window['AB'+expid].init(varid, pageid);\n  }\n})(8267891294, 'control1', 'nonsrp');\n/* _optimizely_variation_url_end */\n\n/* _optimizely_variation_url include=\".+\\?_ob=ArticleListURL.+_ArticleListID=.*\" exclude=\"\" include_match_types=\"regex\" exclude_match_types=\"\" id=\"1467994519024\" */\n(function(expid, varid, pageid) {\n\tif (!window['exp'+expid+'_'+varid]){\n\t\twindow['exp'+expid+'_'+varid] = true;\n    //only accept SRP from a quickserach, if not than consider page is nonsrp\n    if ($('h1.queryText').has('b').length !== 0 && $('title').text() !== 'ScienceDirect  Error'){ pageid = 'nonsrp'; }\n    window['AB'+expid].init(varid, pageid);\n  }\n})(8267891294, 'control1', 'srp');\n/* _optimizely_variation_url_end */","name":"control1"},"8241681451":{"code":"/* _optimizely_variation_url include=\"www.sciencedirect.com\" exclude=\"www.sciencedirect.com/user/login\" include_match_types=\"substring\" exclude_match_types=\"simple\" id=\"1484148248819\" */\n(function(expid, varid, pageid) {\n\tif (!window['exp'+expid+'_'+varid]){\n\t\twindow['exp'+expid+'_'+varid] = true;  \t\n    window['AB'+expid].init(varid, pageid);  \n  }\n})(8248383908, 'control', 'other');\n/* _optimizely_variation_url_end */\n\n/* _optimizely_variation_url include=\"www.sciencedirect.com/user/login\" exclude=\"\" include_match_types=\"simple\" exclude_match_types=\"\" id=\"1484151159855\" */\n(function(expid, varid, pageid) {\n\tif (!window['exp'+expid+'_'+varid]){\n\t\twindow['exp'+expid+'_'+varid] = true;  \t\n    window['AB'+expid].init(varid, pageid);  \n  }\n})(8248383908, 'control', 'signin');\n/* _optimizely_variation_url_end */","name":"Control"},"8214715658":{"code":"/* _optimizely_variation_url include=\"www.sciencedirect.com/science?_ob=MiamiSearchURL www.sciencedirect.com/science/search\" exclude=\"\" include_match_types=\"substring substring\" exclude_match_types=\"\" id=\"1467994519024\" */\n(function(expid, varid) {\n\tif (!window['exp'+expid+'_'+varid]){\n\t\twindow['exp'+expid+'_'+varid] = true;  \t\n    window['AB'+expid].init(varid);\n  }\n})(8213990652, 'control2');\n/* _optimizely_variation_url_end */","name":"control2"},"8246187666":{"code":"/* _optimizely_variation_url include=\"www.sciencedirect.com\" exclude=\"www.sciencedirect.com/user/login\" include_match_types=\"substring\" exclude_match_types=\"simple\" id=\"1484148248819\" */\n(function(expid, varid, pageid) {\n\tif (!window['exp'+expid+'_'+varid]){\n\t\twindow['exp'+expid+'_'+varid] = true;  \t\n    window['AB'+expid].init(varid, pageid);  \n  }\n})(8248383908, 'var2', 'other');\n/* _optimizely_variation_url_end */\n\n/* _optimizely_variation_url include=\"www.sciencedirect.com/user/login\" exclude=\"\" include_match_types=\"simple\" exclude_match_types=\"\" id=\"1484151159855\" */\n(function(expid, varid, pageid) {\n\tif (!window['exp'+expid+'_'+varid]){\n\t\twindow['exp'+expid+'_'+varid] = true;  \t\n    window['AB'+expid].init(varid, pageid);  \n  }\n})(8248383908, 'var2', 'signin');\n/* _optimizely_variation_url_end */","name":"Var2 - Open in different tab"},"8153698453":{"code":"if ($('#pdfLink')[0] && typeof DownloadMenu != 'undefined') {  \n    \n    var variationLinks = {\"issueLink\": SDM.ep.urlPrefix + '/issuedownload/' + SDM.pm.hubEid };\n  \n  \tvar showIntermediateScreen = true;  \n\t\tDownloadMenu.addPdfMenu(variationLinks, showIntermediateScreen);\n  \n    if (OptUtil !== undefined)  {           \n        var expInMins = 30;\n        OptUtil.setCookie(\"opt_session_v8\", \"Y\", expInMins, \".sciencedirect.com\");\n      \tOptUtil.setCookie(\"dis_show\", \"1\", null, \".sciencedirect.com\");\n    } \n  \n}\n\n(function(expid, varid, pageid) {\n\tif (!window['exp'+expid+'_'+varid]){\n  \twindow['exp'+expid+'_'+varid] = true;\n    $('body').attr('data-v8',varid);\n  \twindow['AB'+expid].init(varid);\n }\n})(8165293003, 'var1');","name":"issueDDM"},"8153698454":{"code":"if ($('#pdfLink')[0] && typeof DownloadMenu != 'undefined') {  \n    \n    var variationLinks = {      \n      \"recLink\": SDM.ep.urlPrefix + '/suggestedArt/citeList/pii/' + SDM.pm.pii + '/eid/' + SDM.pm.eid + '/' + SDM.pm.contentFamily + '?icc=Y&nartsret=30&nartsdisp=20'\n    };\n  \n  \tvar showIntermediateScreen = true;  \n\t  DownloadMenu.addPdfMenu(variationLinks, showIntermediateScreen);\n  \n    if (OptUtil !== undefined)  {           \n        var expInMins = 30;\n        OptUtil.setCookie(\"opt_session_v8\", \"Y\", expInMins, \".sciencedirect.com\");\n      \tOptUtil.setCookie(\"dis_show\", \"1\", null, \".sciencedirect.com\");\n    } \n  \n}\n\n\n(function(expid, varid, pageid) {\n\tif (!window['exp'+expid+'_'+varid]){\n  \twindow['exp'+expid+'_'+varid] = true;\n    $('body').attr('data-v8',varid);\n  \twindow['AB'+expid].init(varid);\n }\n})(8165293003, 'var3');","name":"recommDDM"},"8248840605":{"code":"/* _optimizely_variation_url include=\"www.sciencedirect.com\" exclude=\"www.sciencedirect.com/user/login\" include_match_types=\"substring\" exclude_match_types=\"simple\" id=\"1484148248819\" */\n(function(expid, varid, pageid) {\n\tif (!window['exp'+expid+'_'+varid]){\n\t\twindow['exp'+expid+'_'+varid] = true;  \t\n    window['AB'+expid].init(varid, pageid);  \n  }\n})(8248383908, 'var1', 'other');\n/* _optimizely_variation_url_end */\n\n/* _optimizely_variation_url include=\"www.sciencedirect.com/user/login\" exclude=\"\" include_match_types=\"simple\" exclude_match_types=\"\" id=\"1484151159855\" */\n(function(expid, varid, pageid) {\n\tif (!window['exp'+expid+'_'+varid]){\n\t\twindow['exp'+expid+'_'+varid] = true;  \t\n    window['AB'+expid].init(varid, pageid);  \n  }\n})(8248383908, 'var1', 'signin');\n/* _optimizely_variation_url_end */","name":"Var1 - Open in the same window"},"8166185000":{"code":"if ($('#pdfLink')[0] && typeof DownloadMenu != 'undefined') {  \n    \n    var variationLinks = {\"issueLink\": SDM.ep.urlPrefix + '/issuedownload/' + SDM.pm.hubEid };\n  \n  \tvar showIntermediateScreen = false;  \n\t\tDownloadMenu.addPdfMenu(variationLinks, showIntermediateScreen);\n  \n    if (OptUtil !== undefined)  {           \n        var expInMins = 30;\n        OptUtil.setCookie(\"opt_session_v8\", \"Y\", expInMins, \".sciencedirect.com\");\n      \tOptUtil.setCookie(\"dis_show\", \"1\", null, \".sciencedirect.com\");\n    } \n  \n}\n\n(function(expid, varid, pageid) {\n\tif (!window['exp'+expid+'_'+varid]){\n  \twindow['exp'+expid+'_'+varid] = true;\n    $('body').attr('data-v8',varid);\n  \twindow['AB'+expid].init(varid);\n }\n})(8165293003, 'var2');","name":"issueDDM (no intermediate screen)"},"8022790187":{"code":"(function(expid, varid, pageid) {\n\tif (!window['exp'+expid+'_'+varid]){\n  \twindow['exp'+expid+'_'+varid] = true;\n  \twindow['AB'+expid].init(varid, pageid);\n\t}\n})(8018771326, 'control1', 'ap');","name":"Original"},"8293233457":{"code":"/* _optimizely_variation_url include=\"www.sciencedirect.com/search?\" exclude=\"\" include_match_types=\"substring\" exclude_match_types=\"\" id=\"1489662153746\" */\n(function(expid, varid, pageid) {\n\tif (!window['exp'+expid+'_'+varid]){\n\t\twindow['exp'+expid+'_'+varid] = true;\n    window['AB'+expid].init(varid, pageid);\n  }\n})(8282709535, 'var1', 'srp');\n/* _optimizely_variation_url_end */\n\n/* _optimizely_variation_url include=\"www.sciencedirect.com\" exclude=\"www.sciencedirect.com/search?\" include_match_types=\"substring\" exclude_match_types=\"substring\" id=\"1489662092012\" */\n(function(expid, varid, pageid) {\n\tif (!window['exp'+expid+'_'+varid]){\n\t\twindow['exp'+expid+'_'+varid] = true;\n    window['AB'+expid].init(varid, pageid);\n  }\n})(8282709535, 'control1', 'nonsrp');\n/* _optimizely_variation_url_end */","name":"Var1"},"7939488263":{"code":"if ($('#pdfLink')[0] && typeof DownloadMenu != 'undefined') {  \n    \n    var variationLinks = {\"issueLink\": SDM.ep.urlPrefix + '/issuedownload/' + SDM.pm.hubEid };\n  \n  \tvar showIntermediateScreen = true;  \n\t\tDownloadMenu.addPdfMenu(variationLinks, showIntermediateScreen);\n  \n    if (OptUtil !== undefined)  {           \n        var expInMins = 30;\n        OptUtil.setCookie(\"opt_chp_v1\", \"Y\", expInMins, \".sciencedirect.com\");\n    } \n  \n}\n\n(function(expid, varid, pageid) {\n\tif (!window['exp'+expid+'_'+varid]){\n  \twindow['exp'+expid+'_'+varid] = true;\n    $('body').attr('data-chp-v1',varid);\n  \twindow['AB'+expid].init(varid);\n }\n})(7947188334, 'var1');","name":"bookChapters"},"8207862961":{"code":"/* _optimizely_variation_url include=\"www.sciencedirect.com\" exclude=\".+\\?_ob=ArticleListURL.+_ArticleListID=.*\" include_match_types=\"substring\" exclude_match_types=\"regex\" id=\"1467994454934\" */\n(function(expid, varid, pageid) {\n\tif (!window['exp'+expid+'_'+varid]){\n\t\twindow['exp'+expid+'_'+varid] = true;  \t\n    window['AB'+expid].init(varid, pageid);\n  }\n})(8209531978, 'control1', 'nonsrp');\n/* _optimizely_variation_url_end */\n\n/* _optimizely_variation_url include=\".+\\?_ob=ArticleListURL.+_ArticleListID=.*\" exclude=\"\" include_match_types=\"regex\" exclude_match_types=\"\" id=\"1467994519024\" */\n(function(expid, varid, pageid) {\n\tif (!window['exp'+expid+'_'+varid]){\n\t\twindow['exp'+expid+'_'+varid] = true;\n    //only accept SRP from a quickserach, if not than consider page is nonsrp\n    if ($('a.imageSearch').length === 0 && $('title').text() !== 'ScienceDirect  Error'){ pageid = 'nonsrp'; }\n    window['AB'+expid].init(varid, pageid);\n  }\n})(8209531978, 'control1', 'srp');\n/* _optimizely_variation_url_end */","name":"control1"},"8206932658":{"code":"/* _optimizely_variation_url include=\"www.sciencedirect.com\" exclude=\".+\\?_ob=ArticleListURL.+_ArticleListID=.*\" include_match_types=\"substring\" exclude_match_types=\"regex\" id=\"1467994454934\" */\n(function(expid, varid, pageid) {\n\tif (!window['exp'+expid+'_'+varid]){\n\t\twindow['exp'+expid+'_'+varid] = true;  \t\n    window['AB'+expid].init(varid, pageid);\n  }\n})(8209531978, 'control2', 'nonsrp');\n/* _optimizely_variation_url_end */\n\n/* _optimizely_variation_url include=\".+\\?_ob=ArticleListURL.+_ArticleListID=.*\" exclude=\"\" include_match_types=\"regex\" exclude_match_types=\"\" id=\"1467994519024\" */\n(function(expid, varid, pageid) {\n\tif (!window['exp'+expid+'_'+varid]){\n\t\twindow['exp'+expid+'_'+varid] = true;\n    //only accept SRP from a quickserach, if not than consider page is nonsrp\n    if ($('a.imageSearch').length === 0 && $('title').text() !== 'ScienceDirect  Error'){ pageid = 'nonsrp'; }\n    window['AB'+expid].init(varid, pageid);\n  }\n})(8209531978, 'control2', 'srp');\n/* _optimizely_variation_url_end */","name":"control2"},"8213243701":{"code":"/* _optimizely_variation_url include=\"www.sciencedirect.com\" exclude=\"www.sciencedirect.com/search?\" include_match_types=\"substring\" exclude_match_types=\"substring\" id=\"1467994519024\" */\n(function(expid, varid, pageid) {\n\tif (!window['exp'+expid+'_'+varid]){\n\t\twindow['exp'+expid+'_'+varid] = true;  \t\n    window['AB'+expid].init(varid, pageid);\n  }\n})(8205694096, 'var1', 'nonsrp');\n/* _optimizely_variation_url_end */\n\n/* _optimizely_variation_url include=\"www.sciencedirect.com/search?\" exclude=\"\" include_match_types=\"substring\" exclude_match_types=\"\" id=\"1487351681009\" */\n(function(expid, varid, pageid) {\n\tif (!window['exp'+expid+'_'+varid]){\n\t\twindow['exp'+expid+'_'+varid] = true;  \t\n    window['AB'+expid].init(varid, pageid);\n  }\n})(8205694096, 'var1', 'srp');\n/* _optimizely_variation_url_end */","name":"var1"},"7951755326":{"code":"(function(expid, varid, pageid) {\n\tif (!window['exp'+expid+'_'+varid]){\n  \twindow['exp'+expid+'_'+varid] = true;\n    $('body').attr('data-chp-v1',varid);\n  \twindow['AB'+expid].init(varid);\n }\n})(7947188334, 'control1');","name":"control1"},"8266625983":{"code":"/* _optimizely_variation_url include=\"www.sciencedirect.com\" exclude=\"www.sciencedirect.com/search?\" include_match_types=\"substring\" exclude_match_types=\"substring\" id=\"1467994519024\" */\n(function(expid, varid, pageid) {\n\tif (!window['exp'+expid+'_'+varid]){\n\t\twindow['exp'+expid+'_'+varid] = true;  \t\n    window['AB'+expid].init(varid, pageid);\n  }\n})(8267641454, 'var1', 'nonsrp');\n/* _optimizely_variation_url_end */\n\n/* _optimizely_variation_url include=\"www.sciencedirect.com/search?\" exclude=\"\" include_match_types=\"substring\" exclude_match_types=\"\" id=\"1487351681009\" */\n(function(expid, varid, pageid) {\n\tif (!window['exp'+expid+'_'+varid]){\n\t\twindow['exp'+expid+'_'+varid] = true;  \t\n    window['AB'+expid].init(varid, pageid);\n  }\n})(8267641454, 'var1', 'srp');\n/* _optimizely_variation_url_end */","name":"var1"},"8268901184":{"code":"/* _optimizely_variation_url include=\"www.sciencedirect.com\" exclude=\".+\\?_ob=ArticleListURL.+_ArticleListID=.*\" include_match_types=\"substring\" exclude_match_types=\"regex\" id=\"1467994454934\" */\n(function(expid, varid, pageid) {\n\tif (!window['exp'+expid+'_'+varid]){\n\t\twindow['exp'+expid+'_'+varid] = true;  \t\n    window['AB'+expid].init(varid, pageid);\n  }\n})(8267891294, 'control2', 'nonsrp');\n/* _optimizely_variation_url_end */\n\n/* _optimizely_variation_url include=\".+\\?_ob=ArticleListURL.+_ArticleListID=.*\" exclude=\"\" include_match_types=\"regex\" exclude_match_types=\"\" id=\"1467994519024\" */\n(function(expid, varid, pageid) {\n\tif (!window['exp'+expid+'_'+varid]){\n\t\twindow['exp'+expid+'_'+varid] = true;\n    //only accept SRP from a quickserach, if not than consider page is nonsrp\n    if ($('h1.queryText').has('b').length !== 0 && $('title').text() !== 'ScienceDirect  Error'){ pageid = 'nonsrp'; }\n    window['AB'+expid].init(varid, pageid);\n  }\n})(8267891294, 'control2', 'srp');\n/* _optimizely_variation_url_end */","name":"control2"},"8027540177":{"code":"(function(expid, varid, pageid) {\n\tif (!window['exp'+expid+'_'+varid]){\n  \twindow['exp'+expid+'_'+varid] = true;\n  \twindow['AB'+expid].init(varid, pageid);\n\t}\n})(8018771326, 'var1', 'ap');","name":"Variation #1"},"8237550807":{"code":"/* _optimizely_variation_url include=\"www.sciencedirect.com\" exclude=\"www.sciencedirect.com/search?\" include_match_types=\"substring\" exclude_match_types=\"substring\" id=\"1467994519024\" */\n(function(expid, varid, pageid) {\n\tif (!window['exp'+expid+'_'+varid]){\n\t\twindow['exp'+expid+'_'+varid] = true;  \t\n    window['AB'+expid].init(varid, pageid);\n  }\n})(8231943122, 'var1', 'nonsrp');\n/* _optimizely_variation_url_end */\n\n/* _optimizely_variation_url include=\"www.sciencedirect.com/search?\" exclude=\"\" include_match_types=\"substring\" exclude_match_types=\"\" id=\"1486990577538\" */\n(function(expid, varid, pageid) {\n\tif (!window['exp'+expid+'_'+varid]){\n\t\twindow['exp'+expid+'_'+varid] = true;  \t\n    window['AB'+expid].init(varid, pageid);\n  }\n})(8231943122, 'var1', 'srp');\n/* _optimizely_variation_url_end */","name":"var1"},"8214560611":{"code":"/* _optimizely_variation_url include=\"www.sciencedirect.com/science?_ob=MiamiSearchURL www.sciencedirect.com/science/search\" exclude=\"\" include_match_types=\"substring substring\" exclude_match_types=\"\" id=\"1467994519024\" */\n(function(expid, varid) {\n\tif (!window['exp'+expid+'_'+varid]){\n\t\twindow['exp'+expid+'_'+varid] = true;  \t\n    window['AB'+expid].init(varid);\n  }\n})(8213990652, 'control1');\n/* _optimizely_variation_url_end */","name":"control1"},"8168193247":{"code":"(function(expid, varid, pageid) {\n\tif (!window['exp'+expid+'_'+varid]){\n  \twindow['exp'+expid+'_'+varid] = true;\n    $('body').attr('data-v8',varid);\n  \twindow['AB'+expid].init(varid);\n }\n})(8165293003, 'control1');","name":"control1"},"8162804066":{"code":"if ($('#pdfLink')[0] && typeof DownloadMenu != 'undefined') {  \n    \n    var variationLinks = {      \n      \"recLink\": SDM.ep.urlPrefix + '/suggestedArt/citeList/pii/' + SDM.pm.pii + '/eid/' + SDM.pm.eid + '/' + SDM.pm.contentFamily + '?icc=Y&nartsret=30&nartsdisp=20'\n    };\n  \n  \tvar showIntermediateScreen = false;  \n\t  DownloadMenu.addPdfMenu(variationLinks, showIntermediateScreen);\n  \n    if (OptUtil !== undefined)  {           \n        var expInMins = 30;\n        OptUtil.setCookie(\"opt_session_v8\", \"Y\", expInMins, \".sciencedirect.com\");\n      \tOptUtil.setCookie(\"dis_show\", \"1\", null, \".sciencedirect.com\");\n    } \n  \n}\n\n\n(function(expid, varid, pageid) {\n\tif (!window['exp'+expid+'_'+varid]){\n  \twindow['exp'+expid+'_'+varid] = true;\n    $('body').attr('data-v8',varid);\n  \twindow['AB'+expid].init(varid);\n }\n})(8165293003, 'var4');","name":"recommDDM (no intermediate screen)"},"8288862947":{"code":"/* _optimizely_variation_url include=\".+\\?_ob=ArticleListURL.+_ArticleListID=.*\" exclude=\"\" include_match_types=\"regex\" exclude_match_types=\"\" id=\"1489662153746\" */\n(function(expid, varid, pageid) {\n\tif (!window['exp'+expid+'_'+varid]){\n\t\twindow['exp'+expid+'_'+varid] = true;\n    //only accept SRP from a quickserach, if not than consider page is nonsrp\n    if ($('h1.queryText').has('b').length !== 0 && $('title').text() !== 'ScienceDirect  Error'){ pageid = 'nonsrp'; }\n    window['AB'+expid].init(varid, pageid);\n  }\n})(8288895809, 'control1', 'srp');\n/* _optimizely_variation_url_end */\n\n/* _optimizely_variation_url include=\"www.sciencedirect.com\" exclude=\".+\\?_ob=ArticleListURL.+_ArticleListID=.*\" include_match_types=\"substring\" exclude_match_types=\"regex\" id=\"1489662092012\" */\n(function(expid, varid, pageid) {\n\tif (!window['exp'+expid+'_'+varid]){\n\t\twindow['exp'+expid+'_'+varid] = true;\n    window['AB'+expid].init(varid, pageid);\n  }\n})(8288895809, 'control1', 'nonsrp');\n/* _optimizely_variation_url_end */","name":"Control1"},"8224690920":{"code":"/* _optimizely_variation_url include=\"www.sciencedirect.com\" exclude=\".+\\?_ob=ArticleListURL.+_ArticleListID=.*\" include_match_types=\"substring\" exclude_match_types=\"regex\" id=\"1467994454934\" */\n(function(expid, varid, pageid) {\n\tif (!window['exp'+expid+'_'+varid]){\n\t\twindow['exp'+expid+'_'+varid] = true;  \t\n    window['AB'+expid].init(varid, pageid);\n  }\n})(8227350427, 'control1', 'nonsrp');\n/* _optimizely_variation_url_end */\n\n/* _optimizely_variation_url include=\".+\\?_ob=ArticleListURL.+_ArticleListID=.*\" exclude=\"\" include_match_types=\"regex\" exclude_match_types=\"\" id=\"1467994519024\" */\n(function(expid, varid, pageid) {\n\tif (!window['exp'+expid+'_'+varid]){\n\t\twindow['exp'+expid+'_'+varid] = true;\n    //only accept SRP from a quickserach, if not than consider page is nonsrp\n    if ($('a.imageSearch').length === 0 && $('title').text() !== 'ScienceDirect  Error'){ pageid = 'nonsrp'; }\n    window['AB'+expid].init(varid, pageid);\n  }\n})(8227350427, 'control1', 'srp');\n/* _optimizely_variation_url_end */","name":"control1"},"8224690921":{"code":"/* _optimizely_variation_url include=\"www.sciencedirect.com\" exclude=\".+\\?_ob=ArticleListURL.+_ArticleListID=.*\" include_match_types=\"substring\" exclude_match_types=\"regex\" id=\"1467994454934\" */\n(function(expid, varid, pageid) {\n\tif (!window['exp'+expid+'_'+varid]){\n\t\twindow['exp'+expid+'_'+varid] = true;  \t\n    window['AB'+expid].init(varid, pageid);\n  }\n})(8227350427, 'control2', 'nonsrp');\n/* _optimizely_variation_url_end */\n\n/* _optimizely_variation_url include=\".+\\?_ob=ArticleListURL.+_ArticleListID=.*\" exclude=\"\" include_match_types=\"regex\" exclude_match_types=\"\" id=\"1467994519024\" */\n(function(expid, varid, pageid) {\n\tif (!window['exp'+expid+'_'+varid]){\n\t\twindow['exp'+expid+'_'+varid] = true;\n    //only accept SRP from a quickserach, if not than consider page is nonsrp\n    if ($('a.imageSearch').length === 0 && $('title').text() !== 'ScienceDirect  Error'){ pageid = 'nonsrp'; }\n    window['AB'+expid].init(varid, pageid);\n  }\n})(8227350427, 'control2', 'srp');\n/* _optimizely_variation_url_end */","name":"control2"},"7935396460":{"code":"if ($('#pdfLink')[0] && typeof DownloadMenu != 'undefined') {  \n    \n    var variationLinks = {\"issueLink\": SDM.ep.urlPrefix + '/issuedownload/' + SDM.pm.hubEid };\n  \n  \tvar showIntermediateScreen = false;  \n\t\tDownloadMenu.addPdfMenu(variationLinks, showIntermediateScreen);\n  \n    if (OptUtil !== undefined)  {           \n        var expInMins = 30;\n        OptUtil.setCookie(\"opt_chp_v1\", \"Y\", expInMins, \".sciencedirect.com\");\n    } \n  \n}\n\n(function(expid, varid, pageid) {\n\tif (!window['exp'+expid+'_'+varid]){\n  \twindow['exp'+expid+'_'+varid] = true;\n    $('body').attr('data-chp-v1',varid);\n  \twindow['AB'+expid].init(varid);\n }\n})(7947188334, 'var2');","name":"bookChapters (no intermediate screen)"},"8287738097":{"code":"/* _optimizely_variation_url include=\".+\\?_ob=ArticleListURL.+_ArticleListID=.*\" exclude=\"\" include_match_types=\"regex\" exclude_match_types=\"\" id=\"1489662153746\" */\n(function(expid, varid, pageid) {\n\tif (!window['exp'+expid+'_'+varid]){\n\t\twindow['exp'+expid+'_'+varid] = true;\n    //only accept SRP from a quickserach, if not than consider page is nonsrp\n    if ($('h1.queryText').has('b').length !== 0 && $('title').text() !== 'ScienceDirect  Error'){ pageid = 'nonsrp'; }\n    window['AB'+expid].init(varid, pageid);\n  }\n})(8288895809, 'control2', 'srp');\n/* _optimizely_variation_url_end */\n\n/* _optimizely_variation_url include=\"www.sciencedirect.com\" exclude=\".+\\?_ob=ArticleListURL.+_ArticleListID=.*\" include_match_types=\"substring\" exclude_match_types=\"regex\" id=\"1489662092012\" */\n(function(expid, varid, pageid) {\n\tif (!window['exp'+expid+'_'+varid]){\n\t\twindow['exp'+expid+'_'+varid] = true;\n    window['AB'+expid].init(varid, pageid);\n  }\n})(8288895809, 'control2', 'nonsrp');\n/* _optimizely_variation_url_end */","name":"Control2"},"8288935671":{"code":"/* _optimizely_variation_url include=\"www.sciencedirect.com/search?\" exclude=\"\" include_match_types=\"substring\" exclude_match_types=\"\" id=\"1489662153746\" */\n(function(expid, varid, pageid) {\n\tif (!window['exp'+expid+'_'+varid]){\n\t\twindow['exp'+expid+'_'+varid] = true;\n    window['AB'+expid].init(varid, pageid);\n  }\n})(8282709535, 'var2', 'srp');\n/* _optimizely_variation_url_end */\n\n/* _optimizely_variation_url include=\"www.sciencedirect.com\" exclude=\"www.sciencedirect.com/search?\" include_match_types=\"substring\" exclude_match_types=\"substring\" id=\"1489662092012\" */\n(function(expid, varid, pageid) {\n\tif (!window['exp'+expid+'_'+varid]){\n\t\twindow['exp'+expid+'_'+varid] = true;\n    window['AB'+expid].init(varid, pageid);\n  }\n})(8282709535, 'control2', 'nonsrp');\n/* _optimizely_variation_url_end */","name":"Var2"},"8227911290":{"code":"(function(expid, varid, pageid) {\n\tif (!window['exp'+expid+'_'+varid]){\n  \twindow['exp'+expid+'_'+varid] = true;\n  \twindow['AB'+expid].init(varid, pageid);\n\t}\n})(8081092309, 'control1', 'articlepage');","name":"annot"}},"project_js":"window.optimizely=window.optimizely || [];\n\n//init custom dimensions\n//window.optimizely.push(['setDimensionValue', 'SD_CUSDIM1', null]);\n//window.optimizely.push(['setDimensionValue', 'SD_CUSDIM2', null]);\n//window.optimizely.push(['setDimensionValue', 'SD_CUSDIM3', null]);\n//window.optimizely.push(['setDimensionValue', 'SD_CUSDIM4', null]);\n//window.optimizely.push(['setDimensionValue', 'SD_CUSDIM5', null]);\n//window.optimizely.push(['setDimensionValue', 'SD_CUSDIM6', null]);\n//window.optimizely.push(['setDimensionValue', 'SD_CUSDIM7', null]);\n//window.optimizely.push(['setDimensionValue', 'SD_CUSDIM8', null]);\n//window.optimizely.push(['setDimensionValue', 'SD_CUSDIM9', null]);\n\n//NOTE: cleanup cookie in progress, see below\n\n//Utils\nOptUtil = {};\nOptUtil.setCookie = function(cname, cvalue, expmin, domain) {\n\tif (expmin !== null){\n\t   var d = new Date();\n\t   d.setTime(d.getTime() + (expmin*60*1000));\n\t   var expires = \"expires=\"+ d.toUTCString();\n\t   document.cookie = cname + \"=\" + cvalue + \"; \" + expires + \"; domain=\" + domain;\n\t} else {\n\t   document.cookie = cname + \"=\" + cvalue + \"; domain=\" + domain; \n\t}\n};\n\nOptUtil.getCookie = function(cname) {\n\tvar name = cname + \"=\";\n\tvar ca = document.cookie.split(';');\n\tfor(var i = 0; i <ca.length; i++) {\n\t\tvar c = ca[i];\n\t\twhile (c.charAt(0)==' ') { c = c.substring(1); }\n\t\tif (c.indexOf(name) === 0) {\n\t\t\treturn c.substring(name.length,c.length);\n\t\t}\n\t}\n\treturn null;\n};\n\nOptUtil.deleteCookie = function(cname, domain) {\n  document.cookie = cname + '=; expires=Thu, 01 Jan 1970 00:00:01 GMT; domain=' + domain;\n};\n\n\n//ABlogger\nwindow.ABlogger = (function(){\n  var instance;\n  var version = '1.3.6';\n  var loggerdomain = 'logger.sciencedirect.com';\n  if(location.hostname.match('scopus.com')){\n    loggerdomain = 'logger.scopus.com';\n  } else\n  if(location.hostname.match('mendeley.com')){\n    loggerdomain = 'logger.sciencedirect.com';\n  }\n  var defaults = {\n    endpoint: (document.location.protocol === 'https:' ? 'https://' : 'http://') + loggerdomain + '/log',\n    expid: 'unknown',\n    varid: 'unknown',\n    abid: 'unknown',\n    user: 'unknown',\n    event: 'unknown',\n    env: 'unknown',\n    debug: false\n  };\n  var getOptimizelyId = function(){\n    var nameEQ = \"optimizelyEndUserId=\";\n    var ca = document.cookie.split(';');\n    for (var i = 0; i < ca.length; i++) {\n      var c = ca[i];\n      while (c.charAt(0) == ' ') c = c.substring(1, c.length);\n      if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length);\n    }\n    return \"unknown\";\n  };\n  var getSDId = function(){\n    var userid = 'NA';\n    if ( $('.els-header-user-name') && $('.els-header-user-name').length > 0 ){\n      if (pageData && pageData.visitor && pageData.visitor.userId){\n        userid = pageData.visitor.userId;\n      }\n    }\n    return userid;\n  };\n  var create = function(){\n    var Log = function(logme){\n      var settings = logme.settings || null;\n      var evt = logme.evt || null;\n      var evtdata = logme.evtdata || {};\n      if (settings && evt){\n        var options =  $.extend( {}, defaults, settings );\n        options.version = version;\n        options.event = evt;\n        options.data = evtdata;\n        options.page = window.location.href;\n        options.referrer = document.referrer === \"\" ?  'NA' : document.referrer;\n        options.env = options.env === 'PROD' ? 'PROD' : 'CERT'; \n        options.user = getOptimizelyId();\n        if (location.hostname.match('sciencedirect.com')){\n          options.sdid = getSDId();\n        } \n        if (options.debug === true && window.console && window.console.info){\n          $.post( options.endpoint, options,\n          function() {})\n          .done(function(){ Debug(options, 'success event ['+options.event+']', options); })\n          .fail(function(){ Debug(options, 'fail event ['+options.event+']', options); })\n          .always(function(){});    \n        } else {\n          var endpoint = options.endpoint;\n          delete options.endpoint;\n          $.post( endpoint, options );      \n        }\n      }\n    };\n    var Debug = function(settings){\n      var options =  $.extend( {}, defaults, settings );\n      if (options.debug === true && window.console && window.console.info){\n        var header = 'AB[' + options.expid+ '] ';\n        if (arguments.length === 0){\n        \twindow.console.info(header + 'wrong formatted log', options);  \n        } else\n        if (arguments.length === 1){\n          window.console.info(header, arguments[0]);\n        } else  \n        if (arguments.length >= 2){\n          var headline = arguments[1], bodymsg = [];\n          for (i = 1; i < arguments.length; i++) {bodymsg.push(arguments[i]);}\n          window.console.info(header + headline, bodymsg);\n        }  \n      }\n    };\n    return { push: Log, debug: Debug };\n  };\n  return {\n    getInstance: function(){\n      instance = instance || create(); \n      return instance; \n    }\n  };\n})();","segments":{"2129461344":{"api_name":"SD_CUSDIM5","is_api_only":true,"dimension_id":2093413432,"id":2129461344,"name":"SD_CustomDimension5"},"2215071425":{"api_name":"SD_CUSDIM7","is_api_only":true,"dimension_id":2226241080,"id":2215071425,"name":"SD_CustomDimension7"},"204775011":{"segment_value_type":"browser","api_name":"optimizely_browser","id":204775011,"name":"Browser"},"1998820294":{"audience_id":2005150190,"id":1998820294,"uses_geotargeting":true,"name":"a. Global Optimizely Config (DO NOT REMOVE)"},"2106061159":{"api_name":"SD_CUSDIM1","is_api_only":true,"dimension_id":2119701222,"id":2106061159,"name":"SD_CustomDimension1"},"2119510536":{"api_name":"SD_CUSDIM2","is_api_only":true,"dimension_id":2091750643,"id":2119510536,"name":"SD_CustomDimension2"},"2559950540":{"api_name":"SD_CUSDIM9","is_api_only":true,"dimension_id":2565290196,"id":2559950540,"name":"SD_CustomDimension9"},"2118620591":{"api_name":"SD_CUSDIM3","is_api_only":true,"dimension_id":2103130907,"id":2118620591,"name":"SD_CustomDimension3"},"2223700818":{"api_name":"SD_CUSDIM6","is_api_only":true,"dimension_id":2202501028,"id":2223700818,"name":"SD_CustomDimension6"},"2106810101":{"api_name":"SD_CUSDIM4","is_api_only":true,"dimension_id":2116451592,"id":2106810101,"name":"SD_CustomDimension4"},"204658328":{"segment_value_type":"mobile","api_name":"optimizely_mobile","id":204658328,"name":"Mobile Visitors"},"204736122":{"segment_value_type":"source_type","api_name":"optimizely_source_type","id":204736122,"name":"Source Type"},"2230000384":{"api_name":"SD_CUSDIM8","is_api_only":true,"dimension_id":2245200166,"id":2230000384,"name":"SD_CustomDimension8"},"204728159":{"segment_value_type":"campaign","api_name":"optimizely_campaign","id":204728159,"name":"Campaign"}},"click_goals":[{"event_name":"clicks_in_article_outline","experiments":{"210133509":true,"234020983":true},"selector":".closed,#olGraphCbBox,#leftPaneInner"},{"event_name":"viewsimilarmethods1","experiments":{"234020983":true},"selector":".neuroAbs a"},{"event_name":"relatedarticles","experiments":{"234020983":true},"selector":"#relArtList"},{"event_name":"viewsimilarmethods2","experiments":{"234020983":true},"selector":".neuroSec a"},{"event_name":"OutlineH2Sec","experiments":{"246878885":true},"selector":"div.io.item.h2sec:not('div.fig, div.tbl, div.mmc')"},{"event_name":"OutlineMMCs","experiments":{"246878885":true},"selector":"div.io.item.h2sec.mmc,div.io.item.h3sec.mmc,div.io.item.h4sec.mmc"},{"event_name":"OutineH4Sec","experiments":{"246878885":true},"selector":"div.io.item.h4sec:not('div.fig, div.tbl, div.mmc')"},{"event_name":"OutlineH3Sec","experiments":{"246878885":true},"selector":"div.io.item.h3sec:not('div.fig, div.tbl, div.mmc')"},{"event_name":"OutlineTables","experiments":{"246878885":true},"selector":"div.io.item.h2sec.tbl,div.io.item.h3sec.tbl,div.io.item.h4sec.tbl"},{"event_name":"OutlineFigures","experiments":{"246878885":true},"selector":"div.io.item.h2sec.fig,div.io.item.h3sec.fig,div.io.item.h4sec.fig"},{"event_name":"export_citation_click","experiments":{"234020983":true},"selector":".icon_exportarticlesci_dir"},{"event_name":"sd_cited_by_click","experiments":{"234020983":true},"selector":"#citedByList"},{"event_name":"sd_pdf_click","experiments":{"234020983":true},"selector":"#articleNav .icon_pdf"},{"event_name":"ref_section_clicks","experiments":{"267888849":true},"selector":"ol.references ul.reference li.author, ol.references ul.reference li.title, ol.references ul.reference li.source"},{"event_name":"releated_article_clicks","experiments":{"267888849":true},"selector":"ol#relArtList a"},{"event_name":"toolbar_reference_clicks","experiments":{"282129392":true,"267888849":true},"selector":"#articleNav div.io.item"},{"event_name":"search_clicks","experiments":{"282129392":true,"267888849":true},"selector":"div.sdSearch button"},{"event_name":"pdfclicks","experiments":{"282129392":true,"267888849":true,"285942155":true,"329794636":true,"323580148":true},"selector":"div#articleNav a#pdfLink"},{"event_name":"outline_reference_clicks","experiments":{"267888849":true},"selector":"#itemOutline div[id^=ol_bib100]"},{"event_name":"ref_pdf_clicks","experiments":{"267888849":true,"329794636":true},"selector":"ol.references li.refPlaceHolder div.boxLink a:has(img.pdfImageLink)"},{"event_name":"ref_outward_clicks","experiments":{"267888849":true},"selector":"ol.references li.refPlaceHolder div.boxLink a.olSpawnWindow"},{"event_name":"ref_article_clicks","experiments":{"267888849":true,"329794636":true},"selector":"ol.references li.refPlaceHolder div.boxLink a.cLink"},{"event_name":"srch_rslt_article_clicks","url_conditions":{"values":[{"match":"substring","value":"www.sciencedirect.com/science?_ob=ArticleListURL&_method=list"}]},"selector":"div#searchResults a.cLink"},{"event_name":"expanded_search_clicks","experiments":{"282129392":true,"315593867":true},"selector":"#submit_search"},{"event_name":"article_body_clicks","experiments":{"282129392":true},"selector":"#leftPane, #centerPane, #rightPane"},{"event_name":"srch_rslt_pdf_clicks","url_conditions":{"values":[{"match":"substring","value":"www.sciencedirect.com/science?_ob=ArticleListURL&_method=list"}]},"selector":"div#searchResults a.pdfLink"},{"event_name":"purchase_pdf_clicks","experiments":{"304529904":true,"303794169":true,"292205332":true,"314795521":true},"selector":"div#ppvPlaceHolder a.purchaseSprite"},{"event_name":"check_access_clicks","experiments":{"304529904":true,"303794169":true,"292205332":true,"314795521":true},"selector":"div#ppvPlaceHolder a.corpReq"},{"event_name":"Deepdyve_clicks","experiments":{"314795521":true},"selector":"#dd_href"},{"event_name":"pub_jrnl_book_clicks","experiments":{"315593867":true},"selector":"div#header ul.publication li a, #navigationTop ul li a[title='Publications']"},{"event_name":"login_click","experiments":{"315593867":true},"selector":"#loginPlus a"},{"event_name":"advance_search_clicks","experiments":{"315593867":true},"selector":"form[name='qkSrch'] > a, form[name='qkSrch'] tbody > tr:eq(0) > td:eq(7) > a:eq(0)"},{"event_name":" subj_area_clicks","experiments":{"315593867":true},"selector":"div#subjAreas div.subject div.area a, #brwsSubj a"},{"event_name":"remote_access_clicks","experiments":{"315593867":true},"selector":"div.institutiontext a, li#remote_access a, li#rm_access a"},{"event_name":"related_article_clicks","experiments":{"323580148":true},"selector":"div#rightPane ol#relArtList li.artTitle a.cLink"},{"event_name":"show_more_clicks","experiments":{"323580148":true},"selector":"div#rightPane ol#relArtList div.moreInfo a.toggleMoreInfo"},{"event_name":"related_pdf_clicks","experiments":{"323580148":true},"selector":"div#rightPane ol#relArtList div.moreInfo div.icon_pdf a#pdfRightPaneLink"},{"event_name":"declutter_srch_clicks","experiments":{"350230049":true,"330069861":true,"330439494":true,"391580170":true,"340884364":true,"324734492":true},"selector":"#submit_search, div.sdSearch button"},{"event_name":"declutter_rel_articles","experiments":{"340884364":true,"391580170":true,"324734492":true,"330069861":true,"350230049":true},"selector":"#related_articles, #relArtList"},{"event_name":"declutter_reference_clicks","experiments":{"340884364":true,"391580170":true,"324734492":true,"330069861":true,"350230049":true},"selector":"ol.references"},{"event_name":"declutter_cite_clicks","experiments":{"340884364":true,"391580170":true,"324734492":true,"330069861":true,"350230049":true},"selector":"#cited_by, #citedByList"},{"event_name":"declutter_pdf_clicks","experiments":{"340884364":true,"391580170":true,"324734492":true,"330069861":true,"350230049":true},"selector":"#leftPdf #pdfLink, #articleNav #pdfLink"},{"event_name":"outline_click","experiments":{"350230049":true,"330069861":true,"340884364":true,"391580170":true,"329794636":true,"324734492":true},"selector":"div#leftPane div#outline a"},{"event_name":"declutter_app_clicks","experiments":{"340884364":true,"391580170":true,"324734492":true,"330069861":true,"350230049":true},"selector":"#rightPane .innerPaddingApp, #gadgets "},{"event_name":"delutter_rel_ref_clicks","experiments":{"340884364":true,"391580170":true,"324734492":true,"330069861":true,"350230049":true},"selector":"#reference_works, #relRefList"},{"event_name":"purchase_clicks","experiments":{"330439494":true},"selector":"#purchaseBtnSprite"},{"event_name":"DDM_clicks","experiments":{"330439494":true},"selector":"div#resultListHeader input#pdfIcon"},{"event_name":"highlights_clicks","experiments":{"330439494":true},"selector":"a.hLink"},{"event_name":"app_clicks","experiments":{"329794636":true},"selector":"div.innerPaddingApp"},{"event_name":"declutter_srch_rslt_art_clicks","experiments":{"482290596":true,"330439494":true},"selector":"a.cLink.artTitle:not(.mmcLinkSprite)"},{"event_name":"refine_srch_clicks","experiments":{"330439494":true},"selector":"input[name=\"navLimit\"]"},{"event_name":"img_srch_clicks","experiments":{"330439494":true},"selector":"#imgResults, #Images"},{"event_name":"declutter_srch_rslt_pdf_clicks","experiments":{"330439494":true},"selector":"a.pdfLinks"},{"event_name":"abst_preview_clicks","experiments":{"330439494":true},"selector":"span.nojs a.previewOffIcon,span.nojs a.previewOnIcon"},{"event_name":"ereader_clicks","experiments":{"350230049":true,"391580170":true,"340884364":true},"selector":"li.left_eReader"},{"event_name":"export_clicks","experiments":{"350230049":true,"391580170":true,"340884364":true},"selector":"#icon_exportarticlesci_dir"},{"event_name":"header_clicks","experiments":{"346460619":true},"selector":"#header_remote_access"},{"event_name":"login_popup_clicks","experiments":{"346460619":true},"selector":" #popup_remote_access"},{"event_name":"login_full_clicks","experiments":{"346460619":true},"selector":"#login_full_remote_access"},{"event_name":"article_clicks","experiments":{"346460619":true},"selector":"#article_remote_access"},{"event_name":"rel_ref_header_clicks","experiments":{"410511216":true},"selector":"#reference_works a.toggleRightHeader, #refHead"},{"event_name":"pdf_clicks_frm_ref","experiments":{"410511216":true},"selector":"#articleNav div#pdfRef, #articleNav a.pdfRef"},{"event_name":"pdf_clicks","experiments":{"410511216":true},"selector":"#articleNav div#actualArticle, #articleNav a.actualArticle"},{"event_name":"rel_ref_art_clicks","experiments":{"410511216":true},"selector":"ol#relRefList li.artTitle a.cLink, ol#rel_ref li.artTitle a.cLink"},{"event_name":"pdfking_art_title","experiments":{"410511216":true},"selector":"#pdfkingContent a[id^=pdfkingArtTitle]"},{"event_name":"pdf_clicks_frm_pdfking","experiments":{"410511216":true},"selector":"#articleNav div#pdfking, #articleNav a.pdfking"},{"event_name":"pdf_clicks_frm_rel","experiments":{"410511216":true},"selector":"#articleNav div#pdfRel, #articleNav a.pdfRel"},{"event_name":"rel_art_clicks","experiments":{"410511216":true},"selector":"ol#rel_art li.artTitle a.cLink, ol#relArtList li.artTitle a.cLink"},{"event_name":"srcl_rslt_sub_pdf_clicks","experiments":{"524492067":true,"482290596":true},"selector":"a.cLink.subscribedArticle"},{"event_name":"srch_rslt_unsub_pdf_clicks","experiments":{"524492067":true,"482290596":true},"selector":"a.unSubscribedArticle"},{"event_name":"srch_rslt_preview_clicks","experiments":{"524492067":true,"482290596":true},"selector":"div.txt a.previewOnIcon"},{"event_name":"srch_rslt_sub_art_clicks","experiments":{"524492067":true},"selector":"a.cLink.artTitle.subArt:not(.mmcLinkSprite)"},{"event_name":"srch_rslt_non_sub_art_clicks","experiments":{"524492067":true},"selector":"a.cLink.artTitle.unSubArt:not(.mmcLinkSprite)"},{"event_name":"click_download_epub","experiments":{"609230218":true},"selector":"#epubLink"},{"event_name":"click_download_pdf","experiments":{"609230218":true,"590881390":true,"650380527":true},"selector":"#articleNav a#pdfLink, #articleNav .largeIcon"},{"event_name":"click_recomm_article_PDF","experiments":{"609230218":true},"selector":"#relArtList a.pdfRightPaneLink"},{"event_name":"click_export_mendeley","experiments":{"609230218":true},"selector":"#directExport.mendeleyBT"},{"event_name":"click_download_mobilink","experiments":{"609230218":true},"selector":"#mobiLink"},{"event_name":"click_export_refworks","experiments":{"609230218":true},"selector":"#REFWX.refworks"},{"event_name":"click_recomm_article_title","experiments":{"609230218":true,"590881390":true},"selector":"#relArtList a.S_C_artTitle"},{"event_name":"click_citing_artice_pdf","experiments":{"609230218":true},"selector":"#citedByList a.pdfRightPaneLink"},{"event_name":"click_export_file","experiments":{"609230218":true},"selector":"#export_button"},{"event_name":"click_citing_article_title","experiments":{"609230218":true,"590881390":true},"selector":"#citedByList li.artTitle a"},{"event_name":"PDF_icon_clicks","experiments":{"1738310148":true,"2175621642":true,"707632141":true,"1445452816":true,"1450991122":true,"985325085":true,"1170990625":true,"1525451160":true,"1003471396":true,"998651436":true,"1482272822":true,"928442430":true,"787985845":true,"1427220035":true,"1847870021":true,"1414020678":true,"1747910217":true,"786631756":true,"1048580194":true,"997098575":true,"844385360":true,"1408962649":true,"789883482":true,"2199120991":true,"1841730658":true,"794486372":true,"3061010027":true,"696733804":true,"752444015":true,"980161648":true,"2176260456":true,"2635230323":true,"1157950582":true,"2951480441":true,"1737860223":true,"792005248":true,"2176701057":true,"1672750218":true,"1158960267":true,"1043040399":true,"1843910294":true,"868251808":true,"1051190434":true,"2875710117":true,"2854580397":true,"1036596910":true,"1050166449":true,"3053440183":true,"1751260519":true,"945030846":true,"1244890306":true,"936211142":true,"1359612616":true,"2179010249":true,"1749290197":true,"1376553179":true,"1058610397":true,"2653510372":true,"753712361":true,"1406462665":true,"1019660013":true,"2148600274":true,"996032758":true,"1419721977":true,"788436227":true,"3046020225":true,"1008122293":true,"1190841610":true,"1850210065":true,"702161170":true,"2892640532":true,"986251034":true,"2521570075":true,"1003333406":true,"2152480555":true,"697400112":true,"918000948":true,"1265971509":true,"1371640628":true,"790537533":true,"1031612222":true,"1030427455":true,"3122051403":true,"790474066":true,"1251250005":true,"1021244758":true,"2184890714":true,"1000761487":true,"1177430876":true,"806900062":true,"1186930015":true,"2226820963":true,"772675430":true,"670341009":true,"1111653736":true,"1263598443":true,"785500022":true,"811910007":true,"2610930059":true,"1809630096":true,"807733137":true,"752724370":true,"997611412":true,"2105186711":true,"701811608":true,"2139173791":true,"1031309743":true,"1200511921":true,"1054242229":true,"753626038":true,"982222268":true,"2192111039":true,"697112512":true,"754444534":true,"2233220039":true,"1033021390":true,"669172175":true,"2134481874":true,"1763140054":true,"2926350297":true,"1047973852":true,"806487005":true,"1746730467":true,"1171890149":true,"1742381031":true,"2559990251":true,"2160341330":true},"selector":"#articleNav a#pdfLink, #articleNav .largeIcon"},{"event_name":"citedby_art_clicks","experiments":{"697112512":true,"868251808":true,"669172175":true,"844385360":true,"670341009":true,"650380527":true},"selector":"ol#citedByList li.artTitle a"},{"event_name":"recommed_art_clicks","experiments":{"792005248":true,"788436227":true,"1738310148":true,"1158960267":true,"1000761487":true,"707632141":true,"1043040399":true,"670341009":true,"702161170":true,"997611412":true,"1843910294":true,"1751260519":true,"701811608":true,"1742381031":true,"1058610397":true,"1003333406":true,"1847870021":true,"868251808":true,"1170990625":true,"1051190434":true,"1003471396":true,"1177430876":true,"650380527":true,"1157950582":true,"998651436":true,"1036596910":true,"1031309743":true,"697400112":true,"1050166449":true,"918000948":true,"1054242229":true,"1482272822":true,"753626038":true,"1371640628":true,"1850210065":true,"790537533":true,"1031612222":true,"1265971509":true,"697112512":true,"1427220035":true,"785500022":true,"936211142":true,"1747910217":true,"811910007":true,"786631756":true,"1048580194":true,"1033021390":true,"669172175":true,"844385360":true,"1737860223":true,"790474066":true,"1749290197":true,"1763140054":true,"1408962649":true,"789883482":true,"1376553179":true,"1047973852":true,"806487005":true,"806900062":true,"1186930015":true,"996032758":true,"1841730658":true,"1746730467":true,"794486372":true,"1171890149":true,"772675430":true,"807733137":true,"1111653736":true,"787985845":true,"1263598443":true,"696733804":true,"752724370":true,"752444015":true,"1450991122":true,"928442430":true,"754444534":true,"753712361":true,"1030427455":true,"945030846":true},"selector":"#relArtList li.artTitle a.cLink, #epfl_relArtList li.artTitle a.cLink"},{"event_name":"WIKI_Link_clicks","experiments":{"697112512":true,"844385360":true,"868251808":true},"selector":"#centerInner a.wikipedia"},{"event_name":"PDFFTA-SRESULTPAGE","experiments":{"950082493":true},"selector":"div.txt span.nojs + a.cLink, #pdfIcon"},{"event_name":"Special_issue_section_toggle_clicks","experiments":{"1010387403":true},"selector":"#special_articles a.toggle"},{"event_name":"Recommend_Section_toggle_Clicks","experiments":{"1010387403":true},"selector":"#recommend_related_articles a.toggle"},{"event_name":"Citing_html_clicks","experiments":{"1010387403":true},"selector":"#cited_by_articles #citedByList ol.articles"},{"event_name":"Special_Iss_html_clicks","experiments":{"1010387403":true},"selector":"#special_articles #specIssueList ol.articles"},{"event_name":"Citing_section_toggle_clicks","experiments":{"1010387403":true},"selector":"#cited_by_articles a.toggle"},{"event_name":"Related_ref_html_clicks","experiments":{"1010387403":true},"selector":"#related_ref_works_articles #relRefList ol.articles"},{"event_name":"Related_Ref_section_toggle_clicks","experiments":{"1010387403":true},"selector":"#related_ref_works_articles a.toggle"},{"event_name":"Recommend_html_clicks","experiments":{"1010387403":true},"selector":"#recommend_related_articles #relArtList ol.articles"},{"event_name":"HomePage_anchor_clicks","experiments":{"1115704625":true},"selector":"body a"},{"event_name":"figure_option_clicks","experiments":{"1525451160":true,"1406462665":true,"2184890714":true,"1414020678":true,"1419721977":true},"selector":"#centerPane dl.figure dd.menuButtonLinks div.btnHolder"},{"event_name":"article_ref_link_clicks","experiments":{"1525451160":true,"1406462665":true,"2184890714":true,"1414020678":true,"1419721977":true},"selector":"ol.references li.refPlaceHolder a"},{"event_name":"outline_img_clicks","experiments":{"1525451160":true,"1406462665":true,"2184890714":true,"1414020678":true,"1419721977":true},"selector":"#outline  ol.figures  div.io.item.fig"},{"event_name":"article_inline_img_clicks","experiments":{"1525451160":true,"1406462665":true,"2184890714":true,"1414020678":true,"1419721977":true},"selector":"#centerPane dl.figure a.figureLink img"},{"event_name":"recommend_art_clicks","experiments":{"3046020225":true,"3061010027":true,"2610930059":true,"2892640532":true,"1525451160":true,"2521570075":true,"2875710117":true,"2854580397":true,"3536040627":true,"3053440183":true,"3526830012":true,"2695550014":true,"1414020678":true,"1406462665":true,"3122051403":true,"2644841166":true,"2951480441":true,"2926350297":true,"2184890714":true,"2635230323":true,"1425380451":true,"2653510372":true,"2559990251":true,"3340850161":true,"2655950451":true,"1419721977":true,"2664540539":true},"selector":"#recommend_related_articles li.artTitle a.cLink"},{"event_name":"carousel_img_clicks","experiments":{"1525451160":true,"1406462665":true,"2184890714":true,"1414020678":true,"1419721977":true},"selector":".ucd-carousel-slider div.ucd-clickable img"},{"event_name":"carousel_outline_img_clicks","experiments":{"1419721977":true},"selector":"#outline ol.figures div.io.item.fig, .ucd-carousel-slider div.ucd-clickable img"},{"event_name":"spec_iss_art_clicks","experiments":{"3340850161":true,"1425380451":true},"selector":"#special_articles li.artTitle a.cLink"},{"event_name":"rel_book_art_clicks","experiments":{"3340850161":true,"1425380451":true},"selector":"#related_book_content li.artTitle a.cLink"},{"event_name":"recommend_pdf_clicks","experiments":{"3340850161":true,"1425380451":true},"selector":"#recommend_related_articles li.showMore div.icon_pdf"},{"event_name":"rel_book_pdf_clicks","experiments":{"3340850161":true,"1425380451":true},"selector":"#related_book_content li.showMore div.icon_pdf"},{"event_name":"Citing_pdf_clicks","experiments":{"3340850161":true,"1425380451":true},"selector":"#cited_by_articles li.showMore div.icon_pdf"},{"event_name":"spec_iss_pdf_clicks","experiments":{"3340850161":true,"1425380451":true},"selector":"#special_articles li.showMore div.icon_pdf"},{"event_name":"citing_art_clicks","experiments":{"3340850161":true,"1425380451":true},"selector":"#cited_by_articles li.artTitle a.redirectUrl"},{"event_name":"SRCH_RSLT_ART_CLICKS","experiments":{"2131070796":true},"selector":"a.cLink.artTitle:not(.mmcLinkSprite)"},{"event_name":"SRCH_RSLT_PDF_CLICKS","experiments":{"2131070796":true},"selector":"ul.extLinkBlock a.cLink:not(.mmcLinkSprite)"},{"event_name":"redirect_related_articles","url_conditions":{"values":[{"match":"substring","value":"neuroscience.sciencedirect.com"}]},"selector":"div.articles.related_articles.closed a"},{"event_name":"redirect_similar_method_right","url_conditions":{"values":[{"match":"substring","value":"neuroscience.sciencedirect.com"}]},"selector":"div.similarProcedures.closed div.vertical a.toggle"},{"event_name":"redirect_pdf_click","url_conditions":{"values":[{"match":"substring","value":"neuroscience.sciencedirect.com"}]},"selector":"div.articleOptions li.pdf a"},{"event_name":"redirect_outline_click","url_conditions":{"values":[{"match":"substring","value":"neuroscience.sciencedirect.com"}]},"selector":"div.outline li.treeitem a"},{"event_name":"redirect_similar_method_expand","url_conditions":{"values":[{"match":"substring","value":"neuroscience.sciencedirect.com"}]},"selector":"div.similarProcedures div.filter div.search input"},{"event_name":"redirect_search","url_conditions":{"values":[{"match":"substring","value":"neuroscience.sciencedirect.com"}]},"selector":"form.search input.submit"},{"event_name":"redirect_similar_method_center","url_conditions":{"values":[{"match":"substring","value":"neuroscience.sciencedirect.com"}]},"selector":"div.similarProceduresArticle a"},{"event_name":"redirect_cite_article","url_conditions":{"values":[{"match":"substring","value":"neuroscience.sciencedirect.com"}]},"selector":"div.articleOptions li.cite a"},{"event_name":"redirect_cited_by","url_conditions":{"values":[{"match":"substring","value":"neuroscience.sciencedirect.com"}]},"selector":"div.articles.cited_by.closed"}]};

function h(a){throw a;}var i=void 0,j=!0,k=null,o=!1;function aa(){return function(a){return a}}function ba(a){var b=typeof a;return"object"==b&&a!=k||"function"==b}function ca(a,b,c){return a.call.apply(a.bind,arguments)}function da(a,b,c){a||h(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)}}
function p(a,b,c){p=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ca:da;return p.apply(k,arguments)}function t(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=Array.prototype.slice.call(arguments);b.unshift.apply(b,c);return a.apply(this,b)}};function u(a){try{return window.JSON.stringify(a)}catch(b){h(Error("JSON: Unable to stringify ("+b.message+")"))}}function ea(a){try{return window.JSON.parse(a)}catch(b){h(Error("JSON: Unable to parse ("+b.message+")"))}};var fa=/\s*;\s*/,ha=/^([^=]+)=?(.*)$/;function v(a){var b=[];w(ia(),function(c){a===c.name&&b.push(ja(c.value))});if(0===b.length)return k;1<b.length&&x("Cookie","Values found for %s: %s",a,b.length);return b.pop()}var ka=o;function ia(){var a,b=[];a=a||"";w((document.cookie||"").split(fa),function(c){var d=c.match(ha);d&&0===d[1].indexOf(a)&&b.push({name:d[1],value:d[2],P:c})});return b}
function y(a,b,c){if(ka)x("Cookie","Already initialized.");else{x("Cookie","Initializing.");var d=document.location.hostname;if(la()){ma=d;for(var d=document.location.hostname.split("."),e=[],f=d.length-1;0<=f;--f){var g=d.slice(f).join("."),l="optimizelyDomainTest-"+Math.random().toString(16).replace("0.",""),m=Math.random().toString(16).replace("0.","");na(l,m,g,3);v(l)===m&&e.push(g)}oa=e;0<oa.length?(ma=oa[0],x("Cookie","Highest level domain: %s",ma)):(x("Cookie","Disabling event tracking because cookies could not be set"),
qa=o)}else e=d.split("."),f=d,g=e[e.length-1],2<e.length&&"appspot"===e[e.length-2]&&"com"===g?f=e[e.length-3]+".appspot.com":1<e.length&&ra(g,ta)&&(f=e[e.length-2]+"."+g),ua=f,x("Cookie","Guessed public suffix: %s",ua),va=wa(d),x("Cookie","Public suffix (from data): %s",va);xa&&x("Cookie","Domain specified by API: %s",xa);ka=j;x("Cookie","Done initializing.")}b=b||"";la()?(w(oa,function(b){ya(a,b)}),d=za(),na(a,b,d,c),c=v(a)===b?"Succeeded":"Failed",x("Cookie","%s setting %s=%s on %s",c,a,b,d)):
(d=za(),e=document.location.hostname,!va&&z("remote_public_suffix")&&Aa.push({yb:c,name:a,value:b}),d&&(d===va&&d!==ua)&&(ya(a,e),ya(a,ua)),na(a,b,d,c),f=v(a),f===b)?x("Cookie","Successfully set %s=%s on %s",a,b,d):(x("Cookie","Setting %s on %s apparently failed (%s != %s)",a,d,f,b),x("Cookie","Setting %s on %s",a,e),na(a,b,e,c),f=v(a),f===b?(x("Cookie","Setting %s on %s worked; saving as new public suffix",a,e),ua=e):(x("Cookie","Could not set cookie %s, disabling event tracking.",a),qa=o))}
function ya(a,b){var c=[a,"=","; ",Ba(b),"; path=/","; expires=",(new Date(0)).toUTCString()];document.cookie=c.join("")}function za(){return la()?xa||ma:xa||va||ua}function Ba(a){var b=[];b.push("domain=");"localhost"!==a&&(b.push("."),b.push(a));return b.join("")}function na(a,b,c,d){a=[a,"=",encodeURIComponent(b),"; ",Ba(c),"; path=/"];d&&a.push("; expires=",(new Date(+new Date+1E3*d)).toUTCString());document.cookie=a.join("")}
function Ca(a){za()!==a&&(xa=String(a)||"",x("Cookie","Api public suffix set to: %s",xa))}var ua="",xa="",ma="",oa=[],va="",Aa=[];var Da=window.OPTIMIZELY_TEST_MODULE,ta="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 test".split(" "),Ea=/\/\*\s*_optimizely_variation_url( +include="([^"]*)")?( +exclude="([^"]*)")?( +match_type="([^"]*)")?( +include_match_types="([^"]*)")?( +exclude_match_types="([^"]*)")?( +id="([^"]*)")?\s*\*\//;var Fa=0,Ga=o,B=j,Ha=j,Ia=o,Ja=o,Ka=o,La=o,Ma="",Na=o,Oa=o,Pa=o,Qa=o,Ra=o,Sa=o,qa=j,Ua=31536E4;function Va(){var a=v("optimizelyEndUserId");a||(a="oeu"+ +new Date+"r"+Math.random(),y("optimizelyEndUserId",a,Ua));return a}function Wa(){return v("optimizelyPPID")};function Xa(a,b){var c=j;w(a,function(a){if(!b(a))return c=o});return c}function D(a,b){var c=o;w(a,function(a){if(b(a))return c=j});return c}function E(a,b){for(var c=0;c<a.length;c++)if(b==a[c])return j;return o}function Ya(a,b){var c=Za(arguments,1);return function(){var b=Za(arguments);b.unshift.apply(b,c);return a.apply(this,b)}}
function w(a,b){var c=k;if(F(a))for(var d=a.length,e=0;e<d&&!(c=b.call(i,a[e],e),H(c));++e);else for(d in a)if(Object.prototype.hasOwnProperty.call(a,d)&&(c=b.call(i,d,a[d]),H(c)))break;return c}function I(a,b){if("function"===typeof a.map)return a.map(b);for(var c=[],d=0;d<a.length;d++)c.push(b(a[d],d));return c}function J(a,b){w(b,function(b,d){a[b]=d});return a}function $a(a,b){if(F(b)){for(var c=a,d=0;d<b.length;d++){var e=b[d];if(!ba(c)||!c.hasOwnProperty(e))return;c=c[e]}return c}}
function K(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 ra(a,b){return w(b,function(b){if(b===a)return j})||o}function F(a){return!!a&&"object"===typeof a&&"number"===typeof a.length}function H(a){return"undefined"!==typeof a}function ab(a){return"object"===typeof a&&a!==k}function bb(a){return("number"===typeof a||"string"===typeof a)&&Number(a)==a}function cb(a){return"string"===typeof a}
function L(a){L=Object.zb||function(a){var c=[];w(a,function(a){c.push(a)});return c};return L.call(k,a)}
function db(a,b){function c(){var b=document.head||document.getElementsByTagName("head")[0]||document.documentElement,c=document.createElement("script");c.src=a;c.type="text/javascript";b.appendChild(c)}if(b)try{if("loading"===document.readyState){var d="optimizely_synchronous_script_"+Math.floor(1E5*Math.random());-1!==a.indexOf('"')?M("loadScript","Blocked attempt to load unsafe script: "+a):(document.write('<script id="'+d+'" src="'+a+'"><\/script>'),1!==$("#"+d).length&&h(Error("Document.write failed to append script")))}else h(Error("Not safe to attempt document.write"))}catch(e){try{var f=
new XMLHttpRequest;f.open("GET",a,o);f.onload=function(){eval(f.responseText)};f.onerror=function(){h(Error())};f.send()}catch(g){x("Common","Failed to load %s synchronously",a),c()}}else c()}function x(a,b,c){var d=window.console;if(Pa&&d&&d.log){var e=Za(arguments,1);e[0]="Optimizely / "+a+" / "+b;Function.prototype.apply.call(d.log,d,e)}}function ja(a){try{return decodeURIComponent(a)}catch(b){return a}}function Za(a,b){return Array.prototype.slice.call(a,b||0,a.length)}
function eb(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};function fb(a){this.r=a;this.c={totalGets:0,totalGetLength:0,totalGetTime:0,totalSets:0,totalSetLength:0,totalSetTime:0,numKeys:0,totalSize:0}}fb.prototype.get=function(a){try{var b=+new Date,c=this.r.getItem([gb,a].join("$$")),d=ea(c);this.c.totalGetTime+=+new Date-b;this.c.totalGets++;this.c.totalGetLength+=(c||"").length;return d}catch(e){return k}};
fb.prototype.set=function(a,b){try{var c=+new Date,d=u(b);H(b)?this.r.setItem([gb,a].join("$$"),d):this.r.removeItem([gb,a].join("$$"));this.c.totalSetTime+=+new Date-c;this.c.totalSets++;this.c.totalSetLength+=d.length}catch(e){}};fb.prototype.wa=function(){var a=0,b=0,c;for(c in this.r)if(0===c.indexOf(gb)){b++;var d=this.r.getItem(c),a=a+(c.length+(d?d.length:0))}this.c.numKeys=b;this.c.totalSize=a;return this.c};
var hb={get:function(){},set:function(){},wa:function(){return{}}},gb="optimizely_data",N=hb,ib=hb;
try{var N=new fb(window.localStorage),ib=new fb(window.sessionStorage),jb=N,kb=jb.r.getItem(gb),lb={};try{lb=ea(kb)||{}}catch(mb){}if(0!==L(lb).length){var nb=Wa()||v("optimizelyEndUserId"),ob=lb[nb]||{},pb;for(pb in ob)if(ob.hasOwnProperty(pb)){var qb=[nb,pb].join("$$");jb.get(qb)===k&&jb.set(qb,ob[pb])}delete lb[nb];for(pb in lb)lb.hasOwnProperty(pb)&&(jb.get(pb)===k&&jb.set(pb,lb[pb]),delete lb[pb]);try{kb=u(lb)}catch(rb){kb={}}jb.r.setItem(gb,kb)}}catch(sb){};function tb(){return z("admin_account_id")}function ub(a){return z("audiences",a)}function vb(a){a=z("audiences",a,"segment_id");return!a?k:a}
function wb(){if(!xb){var a=z("click_goals")||[];xb=[];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},"experiments"in d?l.experiments=d.experiments:"url_conditions"in d&&(l.url_conditions=d.url_conditions),"revenue"in d&&(l.revenue=d.revenue),xb.push(l))}}return xb}function yb(a,b){return z("dimensions",a,b)}function zb(a){a=yb(a,"condition_type");return!a?k:a}
function Ab(a){a=yb(a,"name");return!a?k:a}function Cb(){Db||(Db=K(Eb(),Fb));return Db}function Gb(a){var b=z("goal_expressions"),c=[],d;for(d in b)if(b.hasOwnProperty(d))for(var e=b[d],f=0;f<e.length;f++)try{if(RegExp(e[f],"i").test(a)){c.push(d);break}}catch(g){}return c}function Hb(a){var b=Ib(),c;for(c in b)if(Object.prototype.hasOwnProperty.call(b,c)){var d=b[c];if(d&&d.api_name===a)return String(c)}return k}function Jb(){return z("experiments")||{}}
function Eb(){return L(z("experiments")||{})}function Kb(a){return"manual"===O(a,"activation_mode")}function Lb(a){return"conditional"===O(a,"activation_mode")}function Mb(a){return O(a,"name")||"Exp "+a}function Nb(a){return'experiment "'+Mb(a)+'" ('+a+")"}function Ob(a){return O(a,"section_ids")||[]}function Pb(a){return O(a,"variation_ids")||[]}function Qb(){return z("list_targeted_keys")||{}}function P(){return z("project_id")}function Ib(){return z("segments")||{}}
function Rb(a,b){for(var c=Ob(a),d=0;d<c.length;d++){var e=Sb(c[d]);if(E(e,b))return c[d]}return""}function wa(a){var b={},c=z("public_suffixes")||{};w(c,function(a,c){w(c,function(c){b[c]=a})});wa=function(a){return b[a]||""};return wa.call(k,a)}function Sb(a){return z("sections",a,"variation_ids")||[]}function Tb(a){var b=[];w(a.split("_"),function(a){(a=z("variations",a,"code"))&&b.push(a)});return b.join("\n")}
function Q(a){if(!Ub){var b={};w(Eb(),function(a){w(Ob(a),function(d){w(Sb(d),function(d){b[d]=a})});w(Pb(a),function(d){b[d]=a})});Ub=b}return Ub[a.split("_")[0]]||""}function Vb(a){var b=Q(a),c=Ob(b);if(0===c.length){c=Pb(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=Sb(c[d]),f=0;f<e.length;f++)e[f]===a[d]&&b.push(f);if(b!==[])return b}return-1}function Wb(a){var b;return Xb(a).join(b||", ")}
function Xb(a){var b=[];w(a.split("_"),function(a){b.push(z("variations",a,"name")||"Var "+a)});return b}function Yb(){return z("www_host")}function Fb(a){return!!O(a,"enabled")}function la(){return!!z("simple_cookies")}function O(a,b){return z("experiments",a,b)}function Zb(a){a=O(a,"comscore");return H(a)?a.url:k}function $b(a){return O(a,"google_analytics")}function ac(a,b){var c=O(a,"universal_analytics");return H(c)?c[b]:k}
function z(a){var b=DATA;if(w(arguments,function(a){a=b[a];if(H(a))b=a;else return k})!==k)return b}function bc(a,b){return z("segments",a,b)}function cc(){var a=z("rum_sampling_rate");return H(a)?a:0.003}var xb=k,Db=k,Ub=k;function dc(a,b){function c(a,b){var c=b&65535;return((b-c)*a|0)+(c*a|0)|0}for(var d=a.length,e=b||0,f=d&-4,g,l=0;l<f;l+=4)g=a.charCodeAt(l)&255|(a.charCodeAt(l+1)&255)<<8|(a.charCodeAt(l+2)&255)<<16|(a.charCodeAt(l+3)&255)<<24,g=c(g,3432918353),g=(g&131071)<<15|g>>>17,g=c(g,461845907),e^=g,e=(e&524287)<<13|e>>>19,e=5*e+3864292196|0;g=0;switch(d%4){case 3:g=(a.charCodeAt(f+2)&255)<<16;case 2:g|=(a.charCodeAt(f+1)&255)<<8;case 1:g|=a.charCodeAt(f)&255,g=c(g,3432918353),e^=c((g&131071)<<15|g>>>17,461845907)}e^=
d;e=c(e^e>>>16,2246822507);e=c(e^e>>>13,3266489909);return e^e>>>16};var ec=Math.pow(2,32);function fc(a,b){var c=dc(a,b);return(c>>>16).toString(16)+(c&65535).toString(16)};function gc(){return hc=hc||ic()}function jc(){return gc().aa}function kc(){return gc().ba}function lc(){return gc().F}function mc(a){if(!a)return"";try{return a.match(/:\/\/(?:www[0-9]?\.)?(.[^/:]+)/)[1]}catch(b){return""}}function nc(){return gc().platform}function oc(a){return N.get([Wa()||Va(),a].join("$$"))}function pc(a){N.set([Wa()||Va(),"asyncInfo"].join("$$"),a)}
function qc(){var a="android;blackberry;ipad;iphone;ipod;windows phone".split(";");return E(a,lc().id)?lc().id:E(a,nc().id)?nc().id:rc()?"mobile":"unknown"}function rc(){return lc().w}function sc(){return tc?"returning":"new"}nc=function(){return gc().platform};function uc(a){x("User","Setting current URL to %s",a);vc=a}var vc=i,hc=i,tc=i;function M(a,b,c){wc.push({Fa:new Date,Da:a,message:b,ua:c||o});xc&&yc()}function zc(){Pa=j}function Ac(){Qa=Pa=j}function yc(){Pa&&(w(wc,function(a){if(!a.cb&&(!a.ua||a.ua===Qa)){var b=+a.Fa;x(a.Da,a.message+(" [time "+(Bc?b-Bc:0)+" +"+(Cc?b-Cc:0)+"]"));Cc=b;Bc||(Bc=b);a.cb=j}}),xc=j)}var Cc=k,Bc=k,wc=[],xc=o;var R={};function Dc(a,b){R[a]=b}function Ec(a,b){var c=oc("asyncInfo")||{};c[a]=b;pc(c)}function Gc(){var a=(R.odds||k)&&(R.odds||k).ip||(R.cdn3||k)&&(R.cdn3||k).ip;return a?Hc(a):k}function Ic(){return!R.odds?k:(R.odds||k).lists||{}}
function Jc(a){if(!Ic())return M("Async Info","Invalid response from ODDS"),{value:i,M:o};if(!Ic().hasOwnProperty(a))return M("Async Info","Deduced cachetime value that was checked for presence in list: "+a),{value:i,M:j};var b=!R.odds?k:(R.odds||k).lists_metadata||{};if(!b||!b[a]||!b[a][0])return M("Async Info","Can't find cachetime value that was checked for presence in list: "+a),{value:i,M:o};M("Async Info","Found cachetime value that was checked for presence in list: "+a);return{value:b[a][0].value,
M:j}}function Kc(a){var b=Qb()[a],c=H(b)&&Lc(b);if(c){var d=Mc(b);if(d===k)return M("Async Info","Deduced membership status (false) for list: "+a),o;M("Async Info","Found current value to check for presence in list: "+a)}b=Ic();if(!b)return M("Async Info","No list membership info."),k;if(c&&(c=Jc(a),c.M&&c.value!==d))return M("Async Info","Ignoring out-of-date membership status for list: "+a),k;d=!!b[a];M("Async Info","Found membership status ("+d+") for list: "+a);return d}
function Nc(){if(!R.cdn3)return k;var a=(R.cdn3||k).location||{};return{continent:Hc(a.continent),country:Hc(a.country),region:Hc(a.region),city:Hc(a.city)}}var Oc={get:function(){return R.dcps||k},set:function(a){Ec("dcps",a);R.dcps=a}};function Pc(){var a=Oc.get();return!a||a.rulesResults===k?k:a.rulesResults||{}}function Hc(a){return"string"!==typeof a||"N/A"===a.toUpperCase()?k:a.toUpperCase()};function Qc(a){a=a||{};if(qa){a&&a.sVariable&&(Rc=a.sVariable);var b=Rc||("undefined"!==typeof window.s?window.s:k);if(b)if(Sc){a=Tc;if(a!==k&&b)try{x("Integrator","Fixing SiteCatalyst referrer to %s",a),b.referrer=String(a)}catch(c){x("Integrator","Error setting SiteCatalyst referrer: %s",c)}x("Integrator","Tracking with SiteCatalyst");w(Uc(),function(a){var c=Q(a),a=S(c,a,100,100,25,j),f=a.key+": "+a.value,a=[],g=O(c,"site_catalyst_evar")||k,c=O(c,"site_catalyst_prop")||k;g!==k&&a.push("eVar"+g);
c!==k&&a.push("prop"+c);w(a,function(a){x("Integrator","Setting SiteCatalyst %s='%s'",a,f);b[a]=f})})}else Vc=j;else M("Integrator","Error with SiteCatalyst integration: 's' variable not defined")}}function Wc(a){a=bb(a)?Number(a):-1;if(-1!==[1,2,3].indexOf(a))Xc=a;else return Xc}
function Yc(){if(qa){var a=Tc;if(a!==k)try{x("Integrator","Fixing _gaq._setReferrerOverride with %s",a),_gaq.push(["_setReferrerOverride",a])}catch(b){x("Integrator","Error setting Google Analytics referrer: %s",b)}var c=[];w(Uc(),function(a){var b=Q(a);if(O(b,"chartbeat")){var d=Zc;Zc="";var e=S(b,a,10,10,5,o);Zc=d;d=Vb(a);$c=e.key+": "+String(d);try{x("Integrator","Calling _cbq.push"),_cbq.push(["_optlyx",$c])}catch(n){M("Integrator","Error sending Chartbeat data for "+Nb(b))}}if(Zb(b)){var e=Zb(b),
d=S(b,a,100,100,25,j),r=e+(-1!==e.indexOf("?")?"&":"?")+"optimizely_experiment_id="+b+"&optimizely_experiment_name="+encodeURIComponent(d.key)+"&optimizely_variation_id="+a+"&optimizely_variation_name="+encodeURIComponent(d.value)+"&ns_m_exp=("+b+") "+encodeURIComponent(d.key)+"&ns_m_chs=("+a+") "+encodeURIComponent(d.value)+"&type=hidden";try{$(window).load(function(){M("Integrator","Sending comScore log call");ad(r,k)})}catch(q){M("Integrator","Error sending comScore data for "+Nb(b))}}if(O(b,"crazyegg")){e=
S(b,a,100,100,15,o);try{x("Integrator","Defining CE_SNAPSHOT_NAME"),window.CE_SNAPSHOT_NAME=e.key+": "+e.value}catch(G){M("Integrator","Error sending CrazyEgg data for "+Nb(b))}}if($b(b)){e=$b(b);d=0;H(e)&&(d=e.slot||d);var e=d,d=$b(b),A="";H(d)&&(A=d.tracker||A);d=A;A=S(b,a,28,24,5,j);try{var C="";""!==d&&(C=d+".");x("Integrator","Calling _gaq._setCustomVar for slot %d and scope %d",e,Xc);_gaq.push([C+"_setCustomVar",e,A.key,A.value,Xc])}catch(pa){M("Integrator","Error sending Google Analytics data for "+
Nb(b))}}if(O(b,"inspectlet")){e=Zc;Zc="";d=S(b,a,100,100,25,o);Zc=e;try{M("Integrator","Calling __insp.push for sending data to Inspectlet"),window.__insp=window.__insp||[],window.__insp.push(["tagSession",{"Optimizely Experiment Name":d.key,"Optimizely Variation Name":d.value,"Optimizely Experiment ID":b,"Optimizely Variation ID":a}])}catch(Ta){M("Integrator","Error sending Inspectlet data for "+Nb(b))}}if(z("kissmetrics")){e=S(b,a,100,100,15,j);d={};d[e.key]=e.value;try{x("Integrator","Calling _kmq.set"),
_kmq.push(["set",d])}catch(Be){M("Integrator","Error sending KISSmetrics data for "+Nb(b))}}if(O(b,"mixpanel")){e=S(b,a,100,100,15,o);d={};d[e.key]=e.value;try{x("Integrator","Calling mixpanel.push"),mixpanel.push(["register",d])}catch(Hh){M("Integrator","Error sending Mixpanel data for "+Nb(b))}}if(O(b,"moat")){e=S(b,a,100,100,15,o);e=e.key+": "+e.value;try{x("Integrator","Calling optimizelyMoat.push"),optimizelyMoat.push(e)}catch(Ih){M("Integrator","Error sending Moat data for "+Nb(b))}}O(b,"sessioncam")&&
(c=c.concat(bd(b,a)));O(b,"at_internet")&&(e=S(b,a,28,24,5,j),a=b+"["+encodeURIComponent(e.key)+"]-0-"+a+"["+encodeURIComponent(e.value)+"]",a in cd||(x("Integrator","Queueing AT Internet log call: %s",a),cd[a]=o))});if(0<c.length){a=c;try{M("Integrator","Calling sessioncamConfiguration object"),window.sessioncamConfiguration=window.sessioncamConfiguration||{},window.sessioncamConfiguration.customDataObjects=window.sessioncamConfiguration.customDataObjects||[],window.sessioncamConfiguration.customDataObjects=
window.sessioncamConfiguration.customDataObjects.concat(a)}catch(d){M("Integrator","Error sending sessioncam data "+a)}}0<L(cd).length&&("function"===typeof window.xt_mvt?dd():$(window).bind("load.ATInternet",dd));a=v("optimizelyChartbeat")||"";try{if(a&&$c!=a&&(x("Integrator","Calling _cbq.push for referral"),_cbq.push(["_optlyr",a])),$c!=a)x("Integrator","Set new Chartbeat referral cookie."),y("optimizelyChartbeat",$c)}catch(e){M("Integrator","Error sending Chartbeat referral for "+a)}Sc=j;ed&&
(fd(),ed=o);Vc&&(Qc(),Vc=o)}}
function gd(){if(window.ClickTaleContext){try{window.ClickTaleContext.getAggregationContextAsync("1",function(a){a.Location&&window.optimizely.push(["overrideUrl",a.Location]);for(var b in a.PageEvents){var e=a.PageEvents[b][2].match(/x[0-9]+=[0-9_]+/g);x("Integrator","Playback ClickTale Integration - %s",e);for(b=0;b<e.length;b++){x("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++)hd(g[l])?x("Integrator",
"Skip activation for redirect."):window.optimizely.push(["activate",f,g[l],{force:j}])}}})}catch(a){x("Integrator","Playback ClickTale Aggregation Integration failed.")}try{window.ClickTaleContext.getRecordingContextAsync("1.1",function(a){if(a.inSingleRecordingScope){a.location&&window.optimizely.push(["overrideUrl",a.location]);x("Integrator","Playback ClickTale getRecordingContextAsync callback");for(var b in a.fields)x("Integrator","Playback ClickTale Integration - %s=%s",b,a.fields[b]),hd(a.fields[b])?
x("Integrator","Skip activation for redirect."):window.optimizely.push(["activate",b,a.fields[b],{force:j}])}})}catch(b){x("Integrator","Playback ClickTale Recording Integration failed.")}}else x("Integrator","ClickTaleContext not defined.")}
function id(){x("Integrator","Tracking with ClickTale.");"function"==typeof window.ClickTaleField?w(Uc(),function(a){var b=Q(a),c=S(b,a,100,100,15,o),c=c.key+": "+c.value+" (x"+b+"="+a+")";x("Integrator","Setting ClickTale - %s",c);window.ClickTaleField(b,a);window.ClickTaleEvent(c)}):x("Integrator","ClickTaleField() not defined.")}function jd(a){Zc=a}function kd(a){Rc=a}function ld(a,b){return a.replace(/[^a-zA-Z0-9\.\~\!\*\(\)\']+/g,"_").substring(0,b)}
function Uc(){var a=md.concat(T),b=[];w(nd(),function(c){var e=Q(c),f=o;if(Fb(e)){var g=Wb(c);E(a,e)&&(x("Integrator",'"%s" relevant because experiment active',g),f=j);f&&b.push(c)}});var c=od;c&&b.push(c);return b}function hd(a){if(a=Tb(a))if(a=pd(a.toString()))return a[1];return k}
function fd(){if(qa)if(Sc){var a=window[window.GoogleAnalyticsObject||"ga"];if(a){var b=Tc;if(b!==k)try{x("Integrator","Fixing Universal Analytics set referrer with %s",b),(0,window[window.GoogleAnalyticsObject||"ga"])("set","referrer",b)}catch(c){x("Integrator","Error setting Universal Analytics referrer: %s",c)}x("Integrator","Tracking with Universal Analytics");w(Uc(),function(b){var c=Q(b);if(ac(c,"slot")){var f=ac(c,"slot"),g=ac(c,"tracker"),l=S(c,b,100,100,25,j),b=l.key+" ("+c+"): "+l.value;
150<b.length&&(b=l.key.substring(0,80)+" ("+c+"): "+l.value,b=b.substring(0,149));c=g?g+".":"";x("Integrator","Calling ua set dimension - ga(%sset, dimension%d, %s)",c,f,b);a(c+"set","dimension"+f,b)}})}else M("Integrator","Error with Universal Analytics integration: 'GoogleAnalyticsObject' not defined")}else ed=j}function bd(a,b){M("Integrator","Preparing to send data to Sessioncam");return[S(a,b,100,100,15,o),{key:"Optimizely Exp "+a,value:"Optimizely Var "+b}]}
function dd(){try{$(window).unbind("load.ATInternet"),window.xt_mvt&&w(cd,function(a,c){c||(x("Integrator","Sending AT Internet log call: %s",a),window.xt_mvt("","",a),cd[a]=j)})}catch(a){M("Integrator","Error sending AT Internet data: "+a.toString())}}function S(a,b,c,d,e,f){a=Zc+Mb(a);b=Xb(b);1<b.length?(b=$.map(b,function(a){return a.substr(0,e-1)}),b=b.join("~")):b=b[0];f?(a=ld(a,c),b=ld(b.replace("#",""),d)):(a=a.substring(0,c),b=b.substring(0,d));return{key:a,value:b}}
function qd(a,b,c){try{var d=N.get(rd)||{},e=d[a],f;if(c&&e){var c={},g;if(e)for(g in e)e.hasOwnProperty(g)&&(c[g]=e[g]);if(b)for(g in b)if(b.hasOwnProperty(g)){var e=c,l=g,m;if(c[g]){var n=c[g],r=b[g];F(n)||(n=[n]);F(r)||(r=[r]);for(var q=[].concat(n),G=i,G=0;G<r.length;G++)ra(r[G],q)||q.push(r[G]);m=q}else m=b[g];e[l]=m}f=c}else f=b;d[a]=f;N.set(rd,d)}catch(A){}}var ed=o,Vc=o,cd={},$c="",Xc=2,Sc=o,Zc="Optimizely ",Rc=k,rd="thirdParty";function sd(a,b,c,d){if(!B)return o;var e="number"===typeof c||"string"===typeof c?String(c):k,f=!!(c===j||c&&c.force===j||d&&d.force===j),d=("object"===typeof c?c:d)||{},c=d.skip===j,g=d.skipPageview===j,d=d.enabledStatus;if(e)try{td(b,e,j)}catch(l){M("Activator","Error while activating experiment "+b+" for variation "+e+" -- proceeding without bucketing user.")}var m=[];bb(b)?m.push(b):w(Eb(),function(a){Kb(a)&&m.push(a)});ud(a,m,{Ha:f,fb:j,Ga:d,ib:c,Aa:g})}
function vd(a,b,c){if(!B)return o;if(!("object"===typeof b&&"string"===typeof c))if("object"===typeof b&&!H(c))c=b.hasOwnProperty("lists")?"odds":"cdn3";else if(H(b)||H(c)){M("Activator","Unrecognized arguments to activateGeoDelayedExperiment: "+arguments);return}if("object"===typeof b&&"string"===typeof c){M("Activator","Saving async info from '"+c+"'");"cdn3"===c&&U("geoArrive");Ec(c,b);var d=(R[c]=b)&&b.lists||{},e={},f,g,l,m,n;for(n in d)d.hasOwnProperty(n)&&(0===n.indexOf("_")&&d[n])&&(f=n.substring(1).split("__"),
g=f.shift(),l=f.shift(),f=f.join("__"),g&&(l&&f)&&(m=e,m[g]||(m[g]={}),m=m[g],m[l]||(m[l]=[]),m=m[l],m.push(f)));for(g in e)qd(g,e[g],o);wd?(M("Activator","Post-timeout; too late to act on new async info."),geolocation.cdn3Requested&&U("geoFailed")):(d=xd.slice(),M("Activator","Trying to activate "+d.length+" delayed segments"),yd(d),d=zd.slice(),M("Activator","Trying to activate "+d.length+" experiments"),ud(a,d,{Aa:Sa}),Ad(),"object"===typeof b&&"string"===typeof c&&"cdn3"===c&&U("geoSuccess"))}else M("Activator",
"Timeout: will not act on future async info."),U("geoTimeout"),wd=j}
function ud(a,b,c){M("Activator","Triaging "+b.length+" experiments.");var d=[],e=[],f=[];w(b,function(b){c.Ha?(M("Activator","Force-ignoring conditions for experiment "+b),d.push(b)):Bd(b)?Cd(b,{manualActivation:c.fb,objectType:"experiment",enabledStatus:c.Ga,visitor:a})?(M("Activator","Passed conditions for experiment "+b),d.push(b)):(M("Activator","Failed conditions for experiment "+b),f.push(b)):(M("Activator","Can't test conditions for experiment "+b),e.push(b))});w(e,Dd);Ed(d);Ed(f);var g=[];
w(d,function(a){Fd(a,c.ib)&&g.push(a)});Gd(g,b);Hd();Yc();B&&!c.Aa&&Id()}
function yd(a){M("Activator","Triaging "+a.length+" segments.");var b=[],c=[],d=[],e=[];w(a,function(a){bc(a,"is_api_only")?(M("Activator","Ignoring API-only segment "+a),e.push(a)):Bd(a)?Cd(a,{objectType:"segment"})?(M("Activator","Passed conditions for segment "+a),b.push(a)):(M("Activator","Failed conditions for segment "+a),d.push(a)):(M("Activator","Can't test conditions for segment "+a),c.push(a))});w(c,Jd);Kd(b);Kd(d);Kd(e);w(b,Ld)}
function Dd(a){M("Activator","Deferring test for experiment "+a);E(zd,a)||zd.push(a)}function Jd(a){M("Activator","Deferring test for segment "+a);E(xd,a)||xd.push(a)}function Ed(a){zd=K(zd,function(b){return!ra(b,a)})}function Kd(a){xd=K(xd,function(b){return!ra(b,a)})}var zd=[],xd=[],wd=o;/*


 UAParser.js v0.7.9
 Lightweight JavaScript-based User-Agent string parser
 https://github.com/faisalman/ua-parser-js

 Copyright ? 2012-2015 Faisal Salman <fyzlman@gmail.com>
 Dual licensed under GPLv2 & MIT
*/
function Md(){}var Nd={extend:function(a,b){for(var c in b)-1!=="browser cpu device engine os".indexOf(c)&&0===b[c].length%2&&(a[c]=b[c].concat(a[c]));return a},has:function(a,b){return"string"===typeof a?-1!==b.toLowerCase().indexOf(a.toLowerCase()):o},N:function(a){return a.toLowerCase()},va:function(a){return"string"===typeof a?a.split(".")[0]:i}};
function Od(){for(var a,b=0,c,d,e,f,g,l,m=arguments;b<m.length&&!g;){var n=m[b],r=m[b+1];if("undefined"===typeof a)for(e in a={},r)f=r[e],"object"===typeof f?a[f[0]]=i:a[f]=i;for(c=d=0;c<n.length&&!g;)if(g=n[c++].exec(this.ra()))for(e=0;e<r.length;e++)l=g[++d],f=r[e],"object"===typeof f&&0<f.length?2==f.length?a[f[0]]="function"==typeof f[1]?f[1].call(this,l):f[1]:3==f.length?a[f[0]]="function"===typeof f[1]&&(!f[1].exec||!f[1].test)?l?f[1].call(this,l,f[2]):i:l?l.replace(f[1],f[2]):i:4==f.length&&
(a[f[0]]=l?f[3].call(this,l.replace(f[1],f[2])):i):a[f]=l?l:i;b+=2}return a}function Sd(a,b){for(var c in b)if("object"===typeof b[c]&&0<b[c].length)for(var d=0;d<b[c].length;d++){if(Nd.has(b[c][d],a))return"?"===c?i:c}else if(Nd.has(b[c],a))return"?"===c?i:c;return a}
var Td={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2E3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Ud={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],["name","version"],[/\s(opr)\/([\w\.]+)/i],[["name","Opera"],"version"],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]+)*/i,/(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?([\w\.]*)/i,
/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]+)*/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium)\/([\w\.-]+)/i],["name","version"],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[["name","IE"],"version"],[/(edge)\/((\d+)?[\w\.]+)/i],["name","version"],[/(yabrowser)\/([\w\.]+)/i],[["name","Yandex"],"version"],[/(comodo_dragon)\/([\w\.]+)/i],[["name",/_/g," "],"version"],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i,/(uc\s?browser|qqbrowser)[\/\s]?([\w\.]+)/i],
["name","version"],[/(dolfin)\/([\w\.]+)/i],[["name","Dolphin"],"version"],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[["name","Chrome"],"version"],[/XiaoMi\/MiuiBrowser\/([\w\.]+)/i],["version",["name","MIUI Browser"]],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)/i],["version",["name","Android Browser"]],[/FBAV\/([\w\.]+);/i],["version",["name","Facebook"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],["version",["name","Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],
["version","name"],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],["name",["version",Sd,{"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(konqueror)\/([\w\.]+)/i,/(webkit|khtml)\/([\w\.]+)/i],["name","version"],[/(navigator|netscape)\/([\w\.-]+)/i],[["name","Netscape"],"version"],[/fxios\/([\w\.-]+)/i],["version",["name","Firefox"]],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,
/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix)\/([\w\.-]+)/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]+)*/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],["name","version"]],ca:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",Nd.N]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/windows\s(ce|mobile);\sppc;/i],
[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[["architecture",/ower/,"",Nd.N]],[/(sun4\w)[;\)]/i],[["architecture","sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+;))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[["architecture",Nd.N]]],F:[[/\((ipad|playbook);[\w\s\);-]+(rim|apple)/i],["model","vendor",["type","tablet"]],[/applecoremedia\/[\w\.]+ \((ipad)/],["model",["vendor","Apple"],["type","tablet"]],[/(apple\s{0,1}tv)/i],[["model","Apple TV"],["vendor",
"Apple"]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],["vendor","model",["type","tablet"]],[/(kf[A-z]+)\sbuild\/[\w\.]+.*silk\//i],["model",["vendor","Amazon"],["type","tablet"]],[/(sd|kf)[0349hijorstuw]+\sbuild\/[\w\.]+.*silk\//i],[["model",Sd,{"Fire Phone":["SD","KF"]}],["vendor","Amazon"],["type","mobile"]],[/\((ip[honed|\s\w*]+);.+(apple)/i],["model","vendor",["type","mobile"]],[/\((ip[honed|\s\w*]+);/i],
["model",["vendor","Apple"],["type","mobile"]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|huawei|meizu|motorola|polytron)[\s_-]?([\w-]+)*/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],["vendor","model",["type","mobile"]],[/\(bb10;\s(\w+)/i],["model",["vendor","BlackBerry"],["type","mobile"]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7)/i],["model",["vendor","Asus"],["type","tablet"]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],
[["vendor","Sony"],["model","Xperia Tablet"],["type","tablet"]],[/(?:sony)?(?:(?:(?:c|d)\d{4})|(?:so[-l].+))\sbuild\//i],[["vendor","Sony"],["model","Xperia Phone"],["type","mobile"]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],["vendor","model",["type","console"]],[/android.+;\s(shield)\sbuild/i],["model",["vendor","Nvidia"],["type","console"]],[/(playstation\s[3portablevi]+)/i],["model",["vendor","Sony"],["type","console"]],[/(sprint\s(\w+))/i],[["vendor",Sd,{HTC:"APA",Sprint:"Sprint"}],["model",
Sd,{"Evo Shift 4G":"7373KT"}],["type","mobile"]],[/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i],["vendor","model",["type","tablet"]],[/(htc)[;_\s-]+([\w\s]+(?=\))|\w+)*/i,/(zte)-(\w+)*/i,/(alcatel|geeksphone|huawei|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]+)*/i],["vendor",["model",/_/g," "],["type","mobile"]],[/(nexus\s9)/i],["model",["vendor","HTC"],["type","tablet"]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],["model",["vendor","Microsoft"],["type","console"]],[/(kin\.[onetw]{3})/i],[["model",/\./g,
" "],["vendor","Microsoft"],["type","mobile"]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?(:?\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w+)*/i,/(XT\d{3,4}) build\//i],["model",["vendor","Motorola"],["type","mobile"]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],["model",["vendor","Motorola"],["type","tablet"]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n8000|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[["vendor","Samsung"],"model",["type","tablet"]],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-n900))/i,
/(sam[sung]*)[\s-]*(\w+-?[\w-]*)*/i,/sec-((sgh\w+))/i],[["vendor","Samsung"],"model",["type","mobile"]],[/(samsung);smarttv/i],["vendor","model",["type","smarttv"]],[/\(dtv[\);].+(aquos)/i],["model",["vendor","Sharp"],["type","smarttv"]],[/sie-(\w+)*/i],["model",["vendor","Siemens"],["type","mobile"]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]+)*/i],[["vendor","Nokia"],"model",["type","mobile"]],[/android\s3\.[\s\w;-]{10}(a\d{3})/i],["model",["vendor","Acer"],["type","tablet"]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],
[["vendor","LG"],"model",["type","tablet"]],[/(lg) netcast\.tv/i],["vendor","model",["type","smarttv"]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w+)*/i],["model",["vendor","LG"],["type","mobile"]],[/android.+(ideatab[a-z0-9\-\s]+)/i],["model",["vendor","Lenovo"],["type","tablet"]],[/linux;.+((jolla));/i],["vendor","model",["type","mobile"]],[/((pebble))app\/[\d\.]+\s/i],["vendor","model",["type","wearable"]],[/android.+;\s(glass)\s\d/i],["model",["vendor","Google"],["type","wearable"]],[/android.+(\w+)\s+build\/hm\1/i,
/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:one|one[\s_]plus)?[\s_]*(?:\d\w)?)\s+build/i],[["model",/_/g," "],["vendor","Xiaomi"],["type","mobile"]],[/(mobile|tablet);.+rv\:.+gecko\//i],[["type",Nd.N],"vendor","model"]],ea:[[/windows.+\sedge\/([\w\.]+)/i],["version",["name","EdgeHTML"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],["name","version"],
[/rv\:([\w\.]+).*(gecko)/i],["version","name"]],xa:[[/microsoft\s(windows)\s(vista|xp)/i],["name","version"],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*|windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],["name",["version",Sd,Td]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[["name","Windows"],["version",Sd,Td]],[/\((bb)(10);/i],[["name","BlackBerry"],"version"],[/(blackberry)\w*\/?([\w\.]+)*/i,/(tizen)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|contiki)[\/\s-]?([\w\.]+)*/i,
/linux;.+(sailfish);/i],["name","version"],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]+)*/i],[["name","Symbian"],"version"],[/\((series40);/i],["name"],[/mozilla.+\(mobile;.+gecko.+firefox/i],[["name","Firefox OS"],"version"],[/(nintendo|playstation)\s([wids3portablevu]+)/i,/(mint)[\/\s\(]?(\w+)*/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|[open]*suse|gentoo|arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?([\w\.-]+)*/i,/(hurd|linux)\s?([\w\.]+)*/i,
/(gnu)\s?([\w\.]+)*/i],["name","version"],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[["name","Chromium OS"],"version"],[/(sunos)\s?([\w\.]+\d)*/i],[["name","Solaris"],"version"],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]+)*/i],["name","version"],[/(ip[honead]+)(?:.*os\s*([\w]+)*\slike\smac|;\sopera)/i],[["name","iOS"],["version",/_/g,"."]],[/(mac\sos\sx)\s?([\w\s\.]+\w)*/i,/(macintosh|mac(?=_powerpc)\s)/i],[["name","Mac OS"],["version",/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]+)*/i,/(haiku)\s(\w+)/i,
/(aix)\s((\d)(?=\.|\)|\s)[\w\.]*)*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms)/i,/(unix)\s?([\w\.]+)*/i],["name","version"]]};
function Vd(a,b){if(!(this instanceof Vd))return(new Vd(a,b)).Ua();var c=a||(Md&&Md.navigator&&Md.navigator.userAgent?Md.navigator.userAgent:""),d=b?Nd.extend(Ud,b):Ud;this.u=function(){var a=Od.apply(this,d.browser);a.va=Nd.va(a.version);return a};this.La=function(){return Od.apply(this,d.ca)};this.K=function(){return Od.apply(this,d.F)};this.Qa=function(){return Od.apply(this,d.ea)};this.oa=function(){return Od.apply(this,d.xa)};this.Ua=function(){return{Ab:this.ra(),browser:this.u(),ea:this.Qa(),
xa:this.oa(),F:this.K(),ca:this.La()}};this.ra=function(){return c};this.hb=function(a){c=a};this.hb(c);return this}Vd.VERSION="0.7.9";Vd.kb={e:"name",qb:"major",VERSION:"version"};Vd.mb={jb:"architecture"};Vd.nb={sb:"model",VENDOR:"vendor",g:"type",lb:"console",rb:"mobile",vb:"smarttv",wb:"tablet",xb:"wearable",ob:"embedded"};Vd.pb={e:"name",VERSION:"version"};Vd.ub={e:"name",VERSION:"version"};Md.Ca=Vd;function ic(){var a=new Md.Ca(window.navigator.userAgent),b=a.u(),c=a.oa(),a=a.K(),d=a.model in Wd?Wd[a.model]:"unknown",e=(c.name||"unknown").toLowerCase(),f;a:if(E(["mobile","tablet"],a.type))f=j;else{if(d&&"unknown"!==d)for(f in Wd)if(d===Wd[f]){f=j;break a}f=E(["android","blackberry","ios","windows phone"],e)?j:o}return{aa:Xd(b.name),ba:b.version,platform:{id:e,version:c.version},F:{id:d,type:a.type||(f?"mobile":"desktop"),w:f}}}
function Xd(a){a=(a||"").toLowerCase();if(a in Yd)return a;for(var b in Yd)if(D(Yd[b]||[],function(b){return b.toLowerCase()===a}))return b;return"unknown"}var Yd={gc:["Chrome","chromium","silk","yandex","maxthon"],ie:["Internet Explorer","iemobile"],edge:["Edge"],ff:["Firefox","iceweasel"],opera:["Opera","opera mini","opera tablet"],safari:["Safari","mobile safari","webkit"],ucbrowser:["UC Browser"]},Wd={iPhone:"iphone",iPad:"ipad"};function pd(a){return a.match(/_optimizely_redirect(?:_no_cookie)?=(\S+)/)}function Zd(a){return-1!==a.indexOf("_optimizely_redirect_no_cookie")}function $d(a){var a=a||"",b=v("optimizelyRedirect");return Zd(a)||!b||b&&"true"===b.split("|")[1]?j:o}function ae(){var a;a=H(a)?a:document.referrer;y("optimizelyReferrer",a,5)}
var Tc=k,od="",be=/^\/\* _optimizely_redirect.+\*\/[ ]*\nwindow\.location\.replace\(_optly\.redir\.href.*\)[ ]*[;]?$/,ce=/^\/\* _optimizely_redirect.+\*\/[ ]*\nvar[ ]*_optly[ ]*=[ ]*\{[ ]*redir:document\.createElement\("a"\)\}[;]?\n_optly\.redir\.href=.*\n_optly\.cur=.+\nif \(_optly.cur\)[ ]?\{.+\}[ ]*\nwindow\.location\.replace\(_optly\.redir\.href.*\)[ ]*[;]?$/,de=/^\/\* _optimizely_redirect.+\*\/[ ]*[\n]+window\.location\.replace\([ ]*redirectFirst.*\)[ ]*[;]?$/;var ee,fe;function ge(){var a={disable:he,optOut:ie,setCookieDomain:Ca,setCookieExpiration:je,verifyPreviewProject:function(a){P()!==a&&M("API","Preview projectId ("+P()+") does not match expected ("+a+"), disabling.")}},b=window.optimizely,c=[];F(b)&&(w(b,function(b){var e=b;F(b)?e=b[0]:ab(b)&&(e=b.type);a[e]?ke([a],b,j):c.push(b)}),window.optimizely=c)}function le(a,b,c){qd(a,b,!!c);Ad()}
function me(a,b){var c=Hb(a)||a,d=Ib()[c];d?d.audience_id?V.D(d.audience_id):d.dimension_id?V.B(d.dimension_id,b||j,o):ne(c,b):M("API","Unable to find segment: "+c)}
function td(a,b,c){Ra=j;B&&c!==j&&Id();var a=String(a),b=String(b),d=k,e=b.split("_"),f=Ob(a),b=f&&0!==f.length;if("-1"===e[0]){c=a;oe[c]&&delete oe[c];pe[c]&&delete pe[c];for(e=0;e<W.length;e++)W[e].H===c&&W.splice(e,1);qe()}else if(b&&e.length==f.length)d=[],w(e,function(a,b){256>=Number(a)?d.push(Sb(f[b])[a]):d.push(a)}),d=d.join("_");else if(!b&&1==e.length&&256>=Number(e[0])){var c=String,e=e[0],g=Pb(a),l=k;try{l=g[e]}catch(m){}d=c(l)}else 1==e.length?d=e[0]:M("API","Error: could not bucket user. Unknown arguments.");
d&&(b&&Rb(a,d)?(b=d,c=Rb(a,b),re[a]=re[a]||{},re[a][c]=b,M("Distributor","Preferring variation partial "+b+" of section "+c+" of experiment "+a),a=se(a),1===a.length&&te(a[0],"api.bucketUser",j)):te(d,"api.bucketUser",j));Hd()}function he(a){a&&"tracking"===a||(M("API","Optimizely disabled"),Ha=B=o);qa=o}function ue(){M("API","Finalizing API.");Ad();ee=j}function ve(){if(z("slave"))return SLAVE_CLIENT.optimizely.get.apply(k,Array.prototype.slice.call(arguments))}var we=[];
function xe(a){we.push(a);Ad()}function ke(a,b,c){var d=[],e=b,c=H(c)?c:o,f=0;F(b)?(e=b[0],d=Za(b,1)):ab(b)&&(f=H(b.version)?b.version:1,e=b.type,d=[b]);var a=a[f],g;a&&(g=a[e]);g?(M("API",'Called function "'+e+'"'),g.apply(k,d),ye.R[0===f?e:"v"+f+"."+e]=j):c||M("API",'Error for unknown function "'+e+'"');z("slave")&&SLAVE_CLIENT.optimizely.push(b);yc()}
function ze(a,b){ee?M("API","Error: can't add custom tags after Optimizely loads"):(fe=fe||{},2==arguments.length?fe[a]=b:1==arguments.length&&$.extend(j,fe,a))}function Ae(a,b){var c=Hb(a)||a,b=H(b)?b:j,d=Ib()[c];d?d.audience_id?V.Y(d.audience_id):d.dimension_id?V.B(d.dimension_id,k):Ce(c,b):M("API","Unable find segment for: "+c)}function De(){var a=L(Ib());w(a,function(a){Ae(a,o)});Ee()}
function Ad(){Fe={};Ge={};He={};w(nd(),function(a){var b=Q(a);Fe[b]=a.split("_");Ge[b]=Vb(a);He[b]=Wb(a)});Ie={};var a=z("audiences");X(Ie,"audiences",a||i,"data.audiences");X(Ie,"customTags",fe,"data.customTags");X(Ie,"thirdParty",N.get(rd)||{},"data.thirdParty");for(var b={},c=Eb(),a=0;a<c.length;a++){var d=c[a],e={};e.code=O(d,"code")||"";e.name=Mb(d);e.conditional=Lb(d);e.manual=Kb(d);e.section_ids=Ob(d);e.variation_ids=Pb(d);b[d]=e}X(Ie,"experiments",b,"data.experiments");b={};c=L(Ib());for(a=
0;a<c.length;a++)d=c[a],e={name:bc(d,"name")||"Seg "+d},b[d]=e;X(Ie,"segments",b,"data.segments");b={};c=L(z("sections")||{});for(a=0;a<c.length;a++)d=c[a],e={},e.name=z("sections",d,"name")||"Sec "+d,e.variation_ids=Sb(d),b[d]=e;X(Ie,"sections",b,"data.sections");b={};c=L(z("variations")||{});for(a=0;a<c.length;a++)d=c[a],e={},e.name=Wb(d),e.code=Tb(d),b[d]=e;X(Ie,"variations",b,"data.variations");var a=jc(),a=Yd[a]?Yd[a][0]:a,b=kc(),c=lc().id,d=lc().type,e=nc(),f=rc(),g=qc(),l=nc().id,m={};w(Qb(),
function(a){m[a]=Kc(a)});var b={browser:a,browserVersion:b,device:c,deviceType:d,platform:e,mobile:f,mobileId:g,os:l,lists:m,location:Nc(),ip:Gc(),matchingRules:Pc(),referrer:String(document.referrer),segments:Je(),dimensions:V.t,audiences:V.p},n;for(n in b)X(b,n,b[n],"data.visitor."+n);n={};c=Ke();c.reverse();a=0;for(d=c.length;a<d;a++)try{n[ja(c[a][0])]=ja(c[a][1])}catch(r){M("API","Failed to decode parameter "+c[a][0]+"="+c[a][1])}X(b,"params",n,"data.visitor.params");Ie.visitor=b;n={};X(n,"activeExperiments",
md||[],"data.state.activeExperiments");a:{if(a=od)if(b=Q(a)){a={variationId:a,experimentId:b,referrer:Tc};break a}a=i}X(n,"redirectExperiment",a,"data.state.redirectExperiment");X(n,"variationIdsMap",Fe,"data.state.variationIdsMap");X(n,"variationMap",Ge,"data.state.variationMap");X(n,"variationNamesMap",He,"data.state.variationNamesMap");X(n,"enabled",B,"data.state.enabled");n.integrations={};X(n.integrations,"activeOAuthClientIds",we,"data.state.integrations.activeOAuthClientIds");Ie.state=n;n=
{activeExperiments:md,allExperiments:Jb(),all_experiments:Jb(),variationIdsMap:Fe,variationMap:Ge,variationNamesMap:He,variation_map:Ge};window.optimizely.data=Ie;w(n,function(a,b){X(window.optimizely,a,b)})}function X(a,b,c,d){try{var e="o.",e=d?e+d:e+b;Object.defineProperty(a,b,{configurable:j,enumerable:j,get:function(){ye.R[e]=j;return c},set:function(a){c=a}})}catch(f){a[b]=c}}function Le(a){if(!bb(a))return o;Fa=Number(a)}function Me(){La=j}
function je(a){var b="";"number"!==typeof a?(b="must be a number.",a=31536E4):a=Math.floor(86400*a);7776E3>a&&(b="less then minimum.",a=7776E3);M("API",(b&&"Days argument "+b)+" Cookie expiration set to "+a+" seconds.");Ua=a}function Ne(){Sa=j}function Oe(){v("optimizelyReportableFix")?M("API","skipping because cookie is set"):(w(z("audiences"),function(a){vb(a)&&(M("API","Removing from reportable audience: "+a),V.Y(a))}),y("optimizelyReportableFix","1",7776E3))}
function Pe(a){var b=Wa();!a&&0!==a?(M("API","Clearing PPID"),ya("optimizelyPPID",za())):"string"===typeof a||"number"===typeof a?(M("API","Setting PPID to "+a),a=String(a),y("optimizelyPPID",a,Ua)):M("API","Ignoring non-string, non-number PPID: "+a);Wa()!==b&&(M("API","Clearing plan because of PPID change"),M("Plan","Resetting visitor buckets"),Qe={},oe={},pe={},W=[],Hd())}
var Se={event:function(a){Re(a.eventName,a.tags)},user:function(a){a.userId&&Pe(a.userId);a.attributes&&w(a.attributes,function(a,c){V.B(a,c)})},integration:function(a){a.OAuthClientId&&xe(a.OAuthClientId)}},Ie={},Te={},Fe={},Ge={},He={},V=k;function Re(a,b){var c;a:{c={};var d,e=z("custom_revenue_goals");e&&(a in e&&bb(e[a]))&&(d=Number(e[a]));if(b)if(bb(b))d=Number(b);else if("object"===typeof b){if(c=J({},b),"revenue"in c)if(bb(c.revenue))d=Number(c.revenue),delete c.revenue;else{x("tracker","Revenue field %s not a number.",c.revenue);c=k;break a}}else{x("tracker","Revenue argument %s not a number.",b);c=k;break a}H(d)&&(c.Z=d)}if(c===k)x("tracker","Bad options. Will not track this event.");else{d=Cb();var f={};w(d,function(a){f[a]=
j});$.extend(c,{fa:f});Ue(a,"custom",c)}}function Ue(a,b,c,d){c=c||{};qa&&(Ve.push({name:a,type:b,da:d||+new Date/1E3,options:c}),We?(Xe(),M("Tracker","Tracking event '"+a+"'")):M("Tracker","Queued tracking event '"+a+"'"))}function Ye(){Ze();$("html").bind("mousedown",$e);$("html").bind("touchstart",af)}function Ze(){$("html").unbind("touchstart",af);$("html").unbind("mousedown touchend",$e);$("html").unbind("touchmove",Ye)}
function af(){$("html").bind("touchend",$e);$("html").bind("touchmove",Ye)}function Id(){var a=document.location.href,b=Gb(a);0<b.length?(Ue("optly_activate","activate"),w(b,function(b){Ue(a,"pageview",{sa:[b]},bf)})):Ue(a,"activate")}function cf(){var a=v("optimizelyPendingLogEvents")||"[]",b=[];try{b=ea(a)}catch(c){}if(F(b))for(var a=0,d=b.length;a<d;a++){var e=b[a];if("string"!==typeof e){b=[];break}else try{ea(e);b=[];break}catch(f){}}else b=[];return b}
function df(a){a=I(a.split("&"),function(a){return a.split("=")});a.sort(function(a,c){return a[0]<c[0]?-1:a[0]>c[0]?1:0});return I(a,function(a){return a.join("=")}).join("&")}
function ad(a,b){if(ef&&-1!==a.indexOf(ff))try{var c=new XMLHttpRequest;if("withCredentials"in c){c.onload=b;c.open("GET",a,j);c.withCredentials=j;c.send();return}ef=o;M("Tracker","Found that XHR with credentials is not supported in this browser.")}catch(d){M("Tracker","XHR not supported"),ef=o}var c=a,e=new Image;e.onload=b;c=c.replace("&"+ff,"");e.src=c;gf.push(e)}
function ie(a,b){a=!H(a)||"true"===String(a);H(b)||(b=window.alert);var c=a?"true":"false";a?(y("optimizelyOptOut",c,Ua),y("optimizelyBuckets",c,Ua),b("You have successfully opted out of Optimizely for this domain.")):(y("optimizelyOptOut",c,Ua),b("You are NOT opted out of Optimizely for this domain."))}function jf(){return"true"===v("optimizelyOptOut")}function $e(){Ze();Ue("engagement","engagement")}var Ve=[],We=o;
function Xe(){var a=["a="+P(),"d="+tb(),"y="+!!z("ip_anonymization"),"src=js"];Ra&&a.push("override=true");w(nd(),function(b){var c=Q(b);a.push("x"+c+"="+b)});w(Je(),function(b,c){c=encodeURIComponent(ja(c));a.push("s"+b+"="+c)});a.push("tsent="+ +new Date/1E3);var b=[],c=Va(),d=Wa();w(Ve,function(a){var e=[],f;if(a.options.sa)f=a.options.sa;else if("activate"===a.type){f=md.concat(T);var g=od;g&&(g=Q(g),f.push(g))}else f=a.name?Gb(a.name):[];a.name&&e.push("n="+encodeURIComponent(a.name));a.options.anonymous!==
j&&(e.push("u="+c),d&&e.push("p="+encodeURIComponent(d)));ef&&e.push(ff);a.da&&e.push("time="+a.da);La&&e.push("dtpc="+La);var l=!!a.options&&!!a.options.Z&&a.options.fa||{},g=L(l),Be=K(Cb(),function(a){return!l[a]});f=[{S:g,ta:f.concat([z("summary_revenue_goal_id")||k]),ga:["v="+encodeURIComponent(a.options.Z)]},{S:Be,ta:f,ga:[]}];w(f,function(a){(a.S.length||Ga)&&b.push(e.concat(a.ga).concat(["f="+a.S.join(","),"g="+a.ta.join(",")]).join("&"))});if("custom"===a.type)try{var m=a.name,n=Va(),q=N.get("customEvents")||
{},r=q[n]||(q[n]=[]),r=F(r)?r:[];-1!==$.inArray(m,r)&&r.splice($.inArray(m,r),1);r.push(m);100<r.length&&r.shift();q[n]=r;N.set("customEvents",q);ya("optimizelyCustomEvents",za())}catch(hf){}});var e=b.concat(cf());kf(e);var f=a.join("&"),e=lf?b:e;lf=j;for(var g=0,l=e.length;g<l;g++){var m=e[g],n=f+"&"+m;M("Tracker","Making a log request.");var n=n+("&cx2="+fc(df(n),65259)),r=P(),q=z("log_host");r&&(q=r.toString()+"."+q);ad("https://"+q+"/event?"+n,function(){for(var a=m,b=cf(),c=0,d=b.length;c<d;c++)if(b[c]===
a){b.splice(c,1);break}kf(b);M("Tracker","Removed a pending log event from the pending events cookie.")})}Ve=[];We=j}function kf(a){for(var b=u(a);1536<b.length;)a=a.slice(0,-1),b=u(a);y("optimizelyPendingLogEvents",b,15)}var gf=[],lf=o,ff="wxhr=true",ef=j,bf=+new Date/1E3;var Y={e:"n",b:"t",g:"y",l:"c",m:"r",o:"s",f:"o"};function mf(a,b,c,d,e){this[Y.e]=a;this[Y.g]=b;"string"===typeof c&&0<eb(c).length&&(this[Y.l]=eb(c));d&&0<L(d).length&&(this[Y.f]=d);H(e)&&(this[Y.m]=e)}
mf.prototype.hash=function(){if(this.v)return this.v;var a;a=[];a.push(encodeURIComponent(Y.e)+"="+encodeURIComponent(this[Y.e]));a.push(encodeURIComponent(Y.g)+"="+encodeURIComponent(this[Y.g]));this[Y.l]&&a.push(encodeURIComponent(Y.l)+"="+encodeURIComponent(this[Y.l]));this[Y.m]&&a.push(encodeURIComponent(Y.m)+"="+encodeURIComponent(this[Y.m]));if(this[Y.f])for(var b=this[Y.f]||{},c=K(L(b),function(a){return b.hasOwnProperty(a)}),c=c.sort(),d=0;d<c.length;d++)a.push(encodeURIComponent(c[d])+"="+
encodeURIComponent(b[c[d]]));a=a.join("&");var e=String.fromCharCode;a=a.replace(/[\S\s]/gi,function(a){var a=a.charCodeAt(0),b=e(a&255);255<a&&(b=e(a>>>8&255)+b);65535<a&&(b=e(a>>>16)+b);return b});return this.v=fc(a,2716770798)};
function nf(a,b){if(a.hash()!==b.hash()||a[Y.e]!==b[Y.e]||a[Y.g]!==b[Y.g]||a[Y.l]!==b[Y.l]||a[Y.m]!==b[Y.m])return o;if(!a[Y.f]&&!b[Y.f])return j;var c=a[Y.f]||{},d=b[Y.f]||{},e=K(L(c),function(a){return c.hasOwnProperty(a)}),f=K(L(d),function(a){return d.hasOwnProperty(a)});if(e.length!==f.length)return o;for(f=0;f<e.length;f++){var g=e[f];if(!d.hasOwnProperty(g)||c[g]!==d[g])return o}return j}mf.prototype.k=function(a,b){var c=$a(this,a);return H(c)?c:b};
mf.prototype.Q=function(a,b){if(a===Y.e||a===Y.g||a===Y.l||a===Y.m||a===Y.f)this[a]=b,this.v=k,this.hash()};function of(a,b,c){this.G=a;this[Y.b]=b;H(c)&&(this[Y.o]=c)}of.prototype.k=function(a,b){if(0===a.length)return this;var c={};c[Y.b]=this[Y.b];c[Y.o]=this[Y.o];c=$a(c,a);return H(c)?c:this.G.k(a,b)};of.prototype.Q=function(a,b){a===Y.b||a===Y.o?this[a]=b:this.G.Q(a,b)};var pf={},qf=[];function rf(a){for(var b=[],c=0;c<a.length;c++){var d=a[c],e=sf(d);b[c]=new of(e,d[Y.b])}return b}function sf(a,b){var c=new mf(a[Y.e],a[Y.g],a[Y.l],a[Y.f],a[Y.m]);H(b)&&(c.v=b);return c}function tf(a){for(var b=[],c=0;c<a.length;c++)for(var d=a[c],e=sf(d.eb,d.h),f=d.tb,d=d.ts,g=0;g<d.length;g++){var l=d[g];b[l.i]=new of(e,f+l.d)}return b};function uf(){try{var a;if(z("is_behavior_enabled")){if(0===qf.length&&z("is_behavior_enabled")){var b=oc("events")||[],c=oc("event_queue")||[];if(0===b.length&&0===c.length)qf=[];else{"eb"in(b[0]||c[0])?(b=tf(b),c=tf(c)):(b=rf(b),c=rf(c));qf=b.concat(c);1E3<qf.length&&(qf=qf.slice(-1E3));c=qf;for(b=0;b<c.length;b++){var d=c[b],e;b:{var f=c[b].G,g=f.hash(),l=pf[g];if("undefined"===typeof l)pf[g]=[f];else{for(var m=0;m<l.length;m++)if(nf(f,l[m])){e=l[m];break b}l.push(f)}e=f}d.G=e}}var d=qf,n=d.length;
if(0!==n){d[0].Q(Y.o,d[0].k([Y.b]));for(e=1;e<n;e++){var r=d[e-1],q=d[e];q.Q(Y.o,18E5>Math.abs(r.k([Y.b],0)-q.k([Y.b],0))?r.k([Y.o]):q.k([Y.b]))}}}a=qf.slice(-1E3)}else a=[];return a}catch(G){x("Behavior","Error "+G.toString()+" getting events")}return[]};function vf(){return(new Date).getTime()-(wf||0)}var wf=vf();function xf(a,b,c){for(var a=a.slice(),d=a.length-1;0<d;d--){var e=Math.floor(Math.random()*(d+1)),f=a[d];a[d]=a[e];a[e]=f}for(d=a.join(b);d.length>c;)a.pop(),d=a.join(b);return d}function U(a){var b=ye;b.n[a]||(b.n[a]=vf())}var yf;try{yf=!document.getElementsByTagName("body")[0]}catch(zf){yf=k}var Af=k;try{window.requestAnimationFrame(function(){Af=vf()})}catch(Bf){}
var Cf=/\/\/[^.]+\.optimizely\.(com|test)\/(js|api\/client)\/[\d]+\.js/gi,ye=new function(){this.n={};this.R={};this.$a=Math.random()<cc();geolocation.cdn3Requested&&(this.n.geoRequest=geolocation.cdn3Requested-wf)};function Fd(a,b){var b=b===j,c,d=k;w(W,function(b){a==b.H&&(d=b.id)});if((c=d)&&0<c.length)return M("Distributor","Not distributing experiment "+a+" (already in plan)"),j;if(b||a in oe)return M("Distributor","Not distributing experiment "+a+" (is ignored)"),o;c=O(a,"enabled_variation_ids")||[];if(0===c.length)return M("Distributor","Permanently ignoring experiment "+a+" (no enabled variations)"),Df(a),o;var e=O(a,"ignore")||0,f=Ef();if(e>Math.floor(1E4*((dc(f+a,0)>>>0)/ec)))return M("Distributor",
"Permanently ignoring experiment "+a+"("+e/100+"% likelihood)"),Df(a),o;e=c;re[a]!==i&&(M("Distributor","Taking into account bucketUser variations for experiment "+a),e=se(a));var f=e,g=[],l=O(a,"variation_weights")||{};w(f,function(a){g.push(l[a])});f=Ff(a,g);e=e[f];M("Distributor","Picked variation "+e+" [index "+f+" of "+c.length+"]");te(e,"distributor");return j}
function Gf(a,b){b=b||{};M("Distributor","Configuring conditionally-activated experiment: "+a);Te[a]?M("Distributor","Not configuring conditionally-activated experiment (already done): "+a):!Fb(a)&&b.force!==j?M("Distributor","Not configuring conditionally-activated experiment (not enabled): "+a):(Hf(a,b),ee&&Ad())}
function Hf(a,b){function c(){sd(V,a,b);m.isActive=E(md.concat(T),a);M("Distributor","Activating conditionally activated experiment "+a)}var d=O(a,"conditional_code"),e=j,f,g;if("function"===typeof d)e=o,f=d;else try{g=eval("(function() {return "+("("+d+")")+";})()"),"function"===typeof g&&(e=o,f=g)}catch(l){}var m={isActive:o,experimentId:a};if(e){if(e={objectType:"experiment",enabledStatus:b.enabledStatus},b.force||!Bd(a)||Cd(a,e)){var n=function(){Bd(a)&&(If(0,{value:d})||g)?c():setTimeout(n,50)};
n();M("Distributor","Set up conditional polling for "+a);Te[a]=j}}else try{f(c,m),M("Distributor","Set up conditional callback for "+a),Te[a]=j}catch(r){M("Distributor","Error running conditional callback function for "+a)}}function Ef(){return Wa()||Va()}function Ff(a,b){var c=b.length;if(0===c)return k;if(1===c)return 0;for(var d=0,e=0;e<c;e++)d+=b[e];e=Ef();d*=(dc(e+a,1)>>>0)/ec;for(e=0;e<c;e++){if(d<b[e])return e;d-=b[e]}d=Ef();return Math.floor((dc(d+a,2)>>>0)/ec*c)}
function se(a){var b=[];w(O(a,"enabled_variation_ids")||[],function(c){var d=j,e;for(e in re[a])-1===c.indexOf(re[a][e])&&(d=o);d&&b.push(c)});return b}var re={};function Jf(){for(var a=z("dcp_keyfield_locators")||[],b=k,c=[],d=0;d<a.length;d++){var e=a[d],f=e.dcp_datasource_id||k,g=e.is_optimizely||o,l=e.type,e=e.name||"";if(f===k)M("DCP","No DCP datasource id specified");else{var m=k;l===Kf?m=Z.I(e):l===Lf?m=Z.la(e):l===Mf?m=Z.j(e):l===Nf&&(m=Of());if(bb(m)||"string"===typeof m)f={datasourceId:f,id:m},g?b=f:c.push(f)}}return{q:b,z:c}}var Of=Ef;function Pf(){var a=Jf(),b=Oc.get()||{};if(Qf(a.z,b.aliases||{}))return o;b.rulesResults=k;Oc.set(b);return j}
function Qf(a,b){b=b||{};return Xa(a,function(a){return b[a.datasourceId]===a.id})}var Kf="cookie",Lf="js_variable",Mf="query_param",Nf="uid";function Mc(a){if(!Lc(a))return M("Async Request","Can't determine a value for this list-targeted key: "+a),k;var b=a.split("_"),c=b[0],b=b.slice(1).join("_"),d=i;if("c"===c)d=Z.I(b);else if("j"===c)d=Z.la(b);else if("q"===c)d=Z.j(b);else return M("Async Request","Can't determine a value for this list-targeted key: "+a),k;if("string"===typeof d||"number"===typeof d||"boolean"===typeof d)d=d.toString();else return d===k||"undefined"===typeof d?M("Async Request","No value is set for this list-targeted key: "+
a):M("Async Request","Unacceptable value (must be string, number, or boolean) for this list-targeted key: "+a),k;if(100<d.length)return M("Async Request","Withholding the overlong value for this list-targeted key: "+a),k;M("Async Request","Returning a value for this list-targeted key: "+a);return d}function Lc(a){return-1!==a.indexOf("_")?E(["c","j","q"],a.split("_")[0]):o};function Rf(a){if(0===$("body").length)setTimeout(function(){Rf(a)},20);else{var b;b='<div id="optimizely-loading" style="position:absolute;top:0;right:0;left:0;bottom:0;background-color:white;opacity:0.9;z-index: 3271000;"><h2 style="color:#9a9a9a;top:40%;position:absolute;font-size:2.25em;text-align:center;width:100%;font-family:\'Lucida Grande\',sans-serif;">'+a+"</h2></div>";$("#optimizely-loading").remove();$("body").append(b)}}var Sf=z("preview_host");function Ke(){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 Tf(){for(var a=window.location.search,b,c=/optimizely_([^=]+)=([^&]*)/g,d={};b=c.exec(a);)d[b[1]]=b[2];return d}var Uf=/x(\d+)/;function Vf(a){return a&&-1!==String(a).indexOf("[native code]")};function Wf(a){var b=a||Xf;M("Segmenter","Loading segments cookie.");if(a=v("optimizelySegments")){try{a=ea(a)}catch(c){a={}}w(a,function(a,c){var d=Ib()[a];M("Segmenter","Segments cookie contains segment id: "+a);d&&d.audience_id?b.D(d.audience_id):d&&d.dimension_id?b.B(d.dimension_id,c,o):Yf[a]=c})}yd(L(Ib()));Zf.push($f);Ee();M("Integrator","Loading third-party segments.");if(window.bk_results){a=window.bk_results;M("Integrator","Loading BlueKai segments.");try{w(a.campaigns,function(a){a=a.seg_id;
Ib()[a]?ne(a,j):ub(a)&&b.D(a)})}catch(d){M("Integrator","Error loading BlueKai segments.")}}}function $f(){var a={};w(Yf,function(b,c){c&&(a[b]=c)});y("optimizelySegments",u(a),Ua)}function ne(a,b){a&&!isNaN(parseInt(a,10))?(!b&&""!==b&&(b=j),Yf[a]=b,Ee()):M("Segmenter","Unable to find segment for ID: "+a)}function Ee(){w(Zf,function(a){a()})}function Ld(a){M("Segmenter","Evaluating Segment "+a);var b=ag(a);b!==k&&ne(a,b)}
function ag(a){if(bc(a,"is_api_only"))return k;var b=k,c=k;switch(bc(a,"segment_value_type")||""){case "browser":b=Z.ia();c="unknown";break;case "campaign":b=Z.Ma();c="none";break;case "country":b=Z.L().country;c="unknown";break;case "language":b=Z.T();c="none";break;case "mobile":b=Z.w();break;case "os":b=Z.pa().id;c="unknown";break;case "referrer":b=Z.Ta();c="none";break;case "source_type":b=Z.Va();c="direct";break;default:return"true"}if(b===k){if(Yf.hasOwnProperty(a))return k;b=c}return bg(b)}
function cg(){var a=Z.V();if(Z.j("utm_source")||Z.j("utm_campaign")||Z.j("gclid")||Z.j("otm_source"))return"campaign";for(var b=["google\\.\\w{2,3}(\\.\\w{2,3})?/(search|url)","https://(www\\.)?google\\..*?/$","http(s)?://www\\.bing\\.\\w{2,3}(\\.\\w{2,3})?/","r\\.search\\.yahoo\\.\\w{2,3}(\\.\\w{2,3})?/","baidu\\.\\w{2,3}(\\.\\w{2,3})?/"],c=0;c<b.length;c++){var d=b[c];try{if(a.match(d))return"search"}catch(e){x("Segmenter","%s: %s while matching %s",e.name,e.message,d)}}return a&&mc(a)!==mc(Z.J())?
"referral":k}function dg(){var a=[];w(Yf,function(b,c){c&&a.push(b)});return a}function Je(){var a={};w(Yf,function(b,c){c&&(a[String(b)]=c)});return a}function eg(a){return w(Yf,function(b,c){if((bc(b,"segment_value_type")||"")==a)return c})}function Ce(a,b){var c=Hb(a)||a;Yf[c]?(Yf[c]=o,("undefined"===typeof b||b)&&Ee()):M("Segmenter","Not removing "+a+", not found")}
function bg(a,b){var c,b=H(b)?b:j;c=c||fg;a=ja(a);a=String(a);b&&(a=a.toLowerCase());a=a.substring(0,c);return encodeURIComponent(a)}var Zf=[],Yf={},fg=20;function gg(){}
J(gg.prototype,{ia:jc,Ka:kc,Sa:qc,w:rc,u:function(){return{id:this.ia(),version:this.Ka(),mobileId:this.Sa()}},Ma:function(){return this.j("utm_campaign")},I:v,K:lc,U:Gc,la:function(a){try{return window[a]}catch(b){return k}},Ja:uf,T:function(){var a="";try{a=navigator.userLanguage||window.navigator.language,a=a.toLowerCase()}catch(b){a=""}return a},Oa:function(){return(oc("visitor_profile")||{}).defaultBehavior||{}},L:Nc,J:function(){return vc||window.location.href},na:sc,Ra:function(){return!tc?j:
!!ib.get("first_session")},Ia:Ke,pa:nc,V:function(){return v("optimizelyReferrer")||document.referrer||""},Wa:function(a){var a=a.split("."),b=a[0];a:{for(var a=a.slice(1),b=(N.get(rd)||{})[b],c=0,d=a.length;c<d;c++)if(ba(b)&&b.hasOwnProperty(a[c]))b=b[a[c]];else{a=i;break a}a=b}return a},Ya:function(){return Wa()!==k},Ta:function(){return mc(this.V())},qa:dg,Va:cg,Pa:function(){return document.referrer},j:function(a){a:{for(var b=this.Ia(),b=b||Ke(),c=0;c<b.length;c++){var d=b[c];if(d[0]===a){a=
d[1];a=a.replace(/\+/g," ");a=ja(a);break a}}a=k}return a},Na:function(){return fe},ja:function(a){return(this.Na()||{})[a]},Xa:function(){var a=(N.get("customEvents")||{})[Va()]||[];return F(a)?a:[]},Za:function(a){var b=this.qa();return E(b,a)},Ba:function(a){return E(this.Xa(),a)},getDate:function(){return new Date},ma:Kc,ka:Pc});var Z=new gg;function hg(a,b,c){if(a.k)return a.k(b,c);a=$a(a,b);"undefined"===typeof a&&(a=c);return a}function ig(a){return"string"===typeof a?eb(a).toLowerCase():a}
var jg=["*"],lg={eq:function(a){a=I(a,ig);return a[0]==a[1]},is:function(a){return a[0]===a[1]},gt:function(a){return a[0]>a[1]},lt:function(a){return a[0]<a[1]},gte:function(a){return a[0]>=a[1]},lte:function(a){return a[0]<=a[1]},"in":function(a){var b=I(a[1]||[],ig);return E(b,ig(a[0]))},between:function(a){return a[1]<=a[0]&&a[0]<=a[2]},contains:function(a){a=I(a,function(a){return"string"===typeof a?a.toLowerCase():a});return-1!==(a[0]||"").indexOf(a[1])},regex:function(a){try{var b,c;"string"===
typeof a[1]?(b=a[1],c="i"):(b=a[1][0]||"",c=a[1][1]||"");return RegExp(b,c).test(a[0])}catch(d){return x("Rules",'In operator "regex", error: '+(d.message||"invalid RegExp /"+[b,c].join("/"))),o}},exists:function(a){return"undefined"!==typeof a[0]},and:function(a){return Xa(a,aa())},or:function(a){return D(a,aa())},not:function(a){return!a[0]}},mg={"+":function(a){return(a[0]||0)+(a[1]||0)},"-":function(a){return(a[0]||0)-(a[1]||0)},"/":function(a){return(a[0]||0)/(a[1]||1)},"%":function(a){return(a[0]||
0)%(a[1]||1)}},ng={sum:function(a,b){for(var c=a[0]||jg,d=0,e=0;e<b.length;e++)d+=hg(b[e],c,0);return d},avg:function(a,b){if(0==b.length)return 0;for(var c=a[0]||jg,d=0,e=0;e<b.length;e++)d+=hg(b[e],c,0);return d/b.length},max:function(a,b){for(var c=a[0]||jg,d=Number.NEGATIVE_INFINITY,e=0;e<b.length;e++)d=Math.max(d,hg(b[e],c,Number.NEGATIVE_INFINITY));return d},min:function(a,b){for(var c=a[0]||jg,d=Number.POSITIVE_INFINITY,e=0;e<b.length;e++)d=Math.min(d,hg(b[e],c,Number.POSITIVE_INFINITY));return d},
count:function(a,b){return b.length}},og={now:function(){return+new Date}};
function pg(a,b){if(b.hasOwnProperty("value"))return b.value;if(b.hasOwnProperty("field"))return hg(a,b.field);if(b.hasOwnProperty("eval")){if(!(b.eval in og)){x("Rules","Unknown function: "+b.eval);return}return og[b.eval]()}if(b.op){var c=b.op in lg?lg[b.op]:b.op in mg?mg[b.op]:k;if(c){var d=t(pg,a),e=I(b.args||[],function(a){return d(a)});return c(e,a)}x("Rules","Unknown operator: "+b.op)}else x("Rules","No operator specified: "+u(b))}
function qg(a){function b(a,e){F(a)&&("and"!==a[0]&&("or"!==a[0]&&"not"!==a[0])&&x("Rules","Unexpected operation "+a[0]+". Continuing optimistically."),a={op:a[0],args:a.slice(1)});if(a.hasOwnProperty("field")||a.hasOwnProperty("value")||a.hasOwnProperty("eval"))return a;if(e&&a.op in ng){var f="_"+a.op+"_"+((a.args&&a.args[0]||{}).field||jg).join(".");f in d||(c.push({op:a.op,args:a.args}),d[f]=j);return{field:[f]}}for(var f=[],g=a.args||[],q=0;q<g.length;q++)f[q]=b(g[q],e);return{op:a.op,args:f}}
var c=[],d={},e={};a.hasOwnProperty("where")&&(e.where=b(a.where,o));a.hasOwnProperty("having")&&(e.having=b(a.having,j));if(a.hasOwnProperty("aggregate")||0<c.length)e.aggregate=(a.aggregate||[]).concat(c);for(var f=["groupBy","orderBy","select","limit"],g=0;g<f.length;g++)a.hasOwnProperty(f[g])&&(e[f[g]]=a[f[g]]);a.hasOwnProperty("from")&&(e.from=qg(a.from));return e}
function rg(a,b){var b=b||0,c=[];a.hasOwnProperty("where")?a.where.op?a.where.op in lg||c.push("Non-boolean WHERE clause operator"):c.push("Missing WHERE clause operator"):c.push("Missing WHERE clause");a.hasOwnProperty("having")&&(a.having.op?a.having.op in lg||c.push("Non-boolean HAVING clause operator"):c.push("Missing HAVING clause operator"));a.hasOwnProperty("groupBy")&&!a.hasOwnProperty("aggregate")&&c.push("No AGGREGATE clause specified with GROUP_BY clause");if(a.hasOwnProperty("select")){var d=
a.select;if(F(d))for(var e=0;e<d.length;e++)d[e].op&&d[e].op in ng&&c.push('In SELECT clause, aggregate operator "'+d[e].op+'" specified in selector at index '+e);else c.push("SELECT clause must be an array")}a.hasOwnProperty("limit")&&(d=a.limit,(!bb(d)||0>=Number(d)||Number(d)!=Math.floor(Number(d)))&&c.push("LIMIT must be a positive integer"));0<b&&(c=I(c,function(a){return"Sub-rule "+b+": "+a}));a.hasOwnProperty("from")&&(c=c.concat(rg(a.from,b+1)));return c}
function sg(a,b){var c=b;a.hasOwnProperty("from")&&(c=sg(a.from,c));c=K(c,function(b){return pg(b,a.where)});if(a.hasOwnProperty("aggregate")){var d=a.groupBy;if("undefined"===typeof d||!F(d)||0===d.length){var d={},e={};e[jg]="_";d[jg+"=_"]={ha:e,n:c};c=d}else{for(var d=I(d,function(a){return a.field}),e={},f=0;f<c.length;f++){for(var g=c[f],l=[],m={},n=0;n<d.length;n++){var r=d[n],q=hg(g,r,"_"),r=r.join(".");m[r]=q;l.push(encodeURIComponent(r)+"="+encodeURIComponent(String(q)))}l=l.join("&");e.hasOwnProperty(l)||
(e[l]={ha:m,n:[]});e[l].n.push(g)}c=e}var G=a.aggregate,A={};w(c,function(a,b){A[a]={};for(var c=0;c<G.length;c++){var d=G[c],e=d.op;if(e in ng){var f=(d.args&&d.args[0]||{}).field||jg,d="_"+e+"_"+f.join("."),e=ng[e]([f],b.n);A[a][d]=e}else x("Rules","Unknown aggregate operator "+e)}});var C=[];w(c,function(a,b){var c=J({},b.ha);J(c,A[a]||{});C.push(c)});c=C}a.hasOwnProperty("having")&&(c=K(c,function(b){return pg(b,a.having)}));if(a.hasOwnProperty("orderBy")){var pa=a.orderBy;F(pa)?c=0==pa.length?
c:c.sort(function(a,b){for(var c=0;c<pa.length;c++){var d=pa[c],e="ASC"===(d.direction||"ASC")?1:-1,f=d.field,d=hg(a,f,0),f=hg(b,f,0);if(d<f)return-e;if(d>f)return e}return 0}):x("Rules","groupBy rule must be an array")}a.hasOwnProperty("limit")&&(c=c.slice(0,Number(a.limit)));if(a.hasOwnProperty("select"))var Ta=a.select,c=I(c,function(a){return I(Ta,function(b){return pg(a,b)})});return c}
function tg(a,b){try{var c;c=qg(a);var d=rg(c);0<d.length&&h(Error("Rule "+u(c)+" has violations: "+d.join("\n")));return 0<sg(c,b).length}catch(e){return x("Rules","Error "+e.toString()+" while evaluating rule "+u(a)),o}};function ug(){this.p={};this.t={};this.A={};this.za={}}ug.prototype.bb=function(a){var b=this.A.hasOwnProperty(a)||this.za.hasOwnProperty(a);if(!this.p.hasOwnProperty(a)||!b)try{var c=this.p,d=ub(a);d||h(Error("Unable to find audience for id: "+a));var e=vg(this,d.conditions);M("Visitor","Checking if in audience "+a+": "+e);c[a]=e}catch(f){M("Visitor","Error: "+f.message)}return this.p[a]};
function wg(a,b,c,d){d=J({O:j,ya:j,C:j},d);if(ub(b)){a.p[b]=c;var e=vb(b);e?a.za[b]=c:d.O?a.A[b]=c:delete a.A[b];e&&d.C&&a.C(e,c);if(!e&&d.O&&d.ya){var f=[];w(a.A,p(function(a){this.p[a]&&f.push(a)},a));f.sort();y("optimizelyAudiences",f.join(","),31536E4)}}else M("Visitor","Unable to find audience "+b)}ug.prototype.D=function(a){wg(this,a,j)};ug.prototype.Y=function(a){wg(this,a,o)};ug.prototype.gb=function(){w(this.p,p(function(a){wg(this,a,o,{O:!!this.A.hasOwnProperty(a)})},this))};
function xg(a,b,c,d){d=!H(d)||d;H(c)&&c!==k&&String(c)?(d&&(c=bg(String(c),o)),a.t[b]=c):delete a.t[b];return a.t[b]}ug.prototype.B=function(a,b,c){var d;a:{for(d in z("dimensions")||{}){var e=a,f=yb(d,"api_name");if(e===(!f?k:f))break a}d=k}d=d||a;z("dimensions",d)?"custom_dimension"===zb(d)?(b=xg(this,d,b,c),a=yb(d,"segment_id"),(a=!a?k:a)&&this.C(a,b),M("Visitor",'Set dimension "'+d+'" to "'+b+'"')):M("Visitor",'Unknown dimension "'+d+'"'):M("Visitor","Unable to find dimension "+a)};
ug.prototype.C=function(a,b){b?ne(a,b):Ce(a)};var Xf=new ug;function yg(a,b){cb(b)&&(b=[b]);b=b||jg;return["_"+a+"_"+b.join(".")]}function zg(a){cb(a)&&(a=[a]);a=a||jg;return[a.join(".")]}var Ag={"<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","==":"eq"};function Bg(a){a=eb((a||"").toString());return Ag[a]||a}function Cg(a,b,c){cb(b)&&(b=[b]);return{op:Bg(a),args:[{field:b},{value:c}]}}function Dg(a){for(var b=[],c=0;c<a.length;c++)b[c]={field:a[c]};return b}function Eg(a,b){cb(b)&&(b=[b]);b=b||jg;return{op:a,args:[{field:b}]}}var Fg={};
w(Y,function(a,b){Fg[b]=j});function Gg(a,b){var c=[];cb(a)?(c=[a],"events"===(b||"events")&&!(a in Fg)&&(c=[Y.f,a])):c=a;return c};function Hg(a){var b=a.split(":");2!==b.length&&h(Error("optly.timeAndDayInterval.timeStringToMinutes: Invalid time string "+a));return 60*parseInt(b[0],10)+parseInt(b[1],10)};function Cd(a,b){var c=!!b.manualActivation,d=b.objectType?b.objectType:"experiment",e="experiment"===d,f=b.enabledStatus,g=b.visitor||Xf;M("Condition","Testing "+d+" "+a);var f=e&&(H(f)?!!f:Fb(a)),l=e&&Kb(a),m;a:switch(d){case "experiment":m=O(a,"conditions");break a;case "segment":m=bc(a,"add_condition");break a;default:m=[]}if(e&&!f)return M("Condition","Failed for "+d+" "+a+" (paused)"),o;if(e&&!c&&l)return M("Condition"," Failed for "+d+" "+a+" (manual activation mode)"),o;if(m){var n="experiment"===
(d||"experiment"),r=j;w(m,function(b){var c=b.type;if(n&&b.only_first_time&&Ig(a))M("Condition",c+" condition passed because it only gets checked when bucketing",j);else{var d=!b.not,b=(0,Jg[c])(b),e=b!==d;M("Condition","Found that "+("the visitor "+(b?"passed":"failed")+" a "+c+" targeting condition  when it needed to "+(d?"pass":"fail")),!e);if(e)return r=o}});if(!r)return M("Condition","Failed for "+d+" "+a+" (condition failed)"),o}else{a:{c=[];e=[];if("experiment"===d)c=O(a,"audiences")||[],e=
O(a,"urls")||[];else if("segment"===d)(f=bc(a,"audience_id"))&&(c=[f]);else{M("Condition","Not a valid objectType: "+d);d=o;break a}if(0<c.length&&(M("Condition","Testing audiences for "+d+" "+a+": "+c),!D(c,p(g.bb,g)))){M("Condition","Failed to match any audiences for "+d+" "+a);d=o;break a}if(0<e.length){M("Condition","Testing URLs for "+d+" "+a);var g=e,q=Z.J(),G=[],A=[];w(g,function(a){a.negate?A.push(a):G.push(a)});g=function(a){return D(a,function(a){return Kg(q,a)})};if(g(A)||!(0===G.length||
g(G))){M("Condition","Failed to match any URL for "+d+" "+a);d=o;break a}}d=j}if(!d)return o}return j}function Lg(a,b){if(!b)return 0;for(var c=b.toString().split("."),d=a.toString().split("."),e=0;e<c.length;e++)if(H(d[e]))if(isNaN(Number(d[e]))){if(d[e]!==c[e])return-1}else{if(Number(d[e])<Number(c[e]))return-1;if(Number(d[e])>Number(c[e]))return 1}else return-1;return 0}
function Mg(a,b){var c=b.value,d=a.id,e=a.version,f=a.mobileId;return f&&"unknown"!==f?(M("Condition",f,j),"mobile"===c||c===f):0===c.indexOf(d)?0===Lg(e,c.substr(d.length)):o}function If(a,b){var c=b.value;if(c===i)return j;try{return Boolean(Ng(c))}catch(d){return o}}function Og(a,b){return Pg(b.value,b.match,a)}function Qg(a,b){return Pg(b.value,b.match,a)}
function Rg(a,b){if(a===k)return o;var c=b.value;switch(b.match){case "exact":if(a==c&&""!=a)return j;break;case "prefix":if(0==a.indexOf(c))return j;break;case "regex":try{var d=RegExp(c)}catch(e){break}if(d.test(a))return j;break;case "cidr":try{var f;a:{var g=new Sg(c),l=Tg(a);l===k&&h(Error("Invalid ip: "+a));for(c=0;4>c;c++)if((l[c]&g.W[c])!==g.X[c]){f=o;break a}f=j}return f}catch(m){}}return o}function Ug(a,b){var c=b.value;return"any"===c||0===a.indexOf(c)}
function Vg(a,b){if(a===k)return o;var c=b.value.split("|"),d=$.trim(c[0]),e=$.trim(c[1]),f=$.trim(c[2]),g=$.trim(c[3]);switch(c.length){case 1:if(a.country===d)return j;break;case 2:if(a.region===e&&a.country===d)return j;break;case 3:if(a.city===f&&(a.region===e||""===e)&&a.country===d)return j;break;case 4:if(a.continent===g)return j}return o}function Wg(a,b){return Pg(b.value,b.match,a)}
function Xg(a,b){var c=b.value,d=b.match;M("Condition","Testing referrer "+a+" against  "+c+" ("+d+")",j);return Yg(a,c,d)}function Zg(a){return!!a}function $g(a){var b=Z.J();return D(a.values,t(Kg,b))}function Kg(a,b){var c=b.value,d=b.match;M("Condition","Testing URL "+a+" against  "+c+" ("+d+")",j);return Yg(a,c,d)}function ah(a,b){switch(b.value){case "new":if("returning"===a)return o;break;case "returning":return"returning"===a}return j}
function vg(a,b){var c={and:function(b){return Xa(b,t(vg,a))},or:function(b){return D(b,t(vg,a))},not:function(b){1!==b.length&&h(Error('"not" argument too long: '+u(b)));return!vg(a,b[0])}};if(F(b)){if(b[0]in c)return c[b[0]](b.slice(1));h(Error("Not an operator"))}var c=b.dimension_id,d=zb(c),e=b.value;d||h(Error("No dimension type for dimension: "+c));var f=bh[d];f||h(Error("Unknown dimension type: "+d));d=i;if(a.t.hasOwnProperty(c))d=a.t[c];else try{var g=zb(c)||"",l,m;z("dimensions",c)||h(Error("Unable to find dimension for id: "+
c));"custom_dimension"===g&&h(Error("calculateDimensionValue called on custom dimension "+c));(l={browser:p(Z.u,Z),browser_version:p(Z.u,Z),behavior:p(Z.Ja,Z),campaign:t(eg,"campaign"),cookies:p(Z.I,Z),custom_tag:p(Z.ja,Z),default_behavior:p(Z.Oa,Z),device:p(Z.K,Z),event:p(Z.Ba,Z),first_session:p(Z.Ra,Z),has_ppid:p(Z.Ya,Z),ip:p(Z.U,Z),language:p(Z.T,Z),list:p(Z.ma,Z),location:p(Z.L,Z),query:p(Z.j,Z),platform:p(Z.pa,Z),referrer:p(Z.V,Z),segment:p(Z.Za,Z),source_type:t(eg,"source_type"),third_party_dimension:p(Z.Wa,
Z),time_and_day:p(Z.getDate,Z),url:p(Z.J,Z),visitor:p(Z.na,Z),dynamic_customer_profile:p(Z.ka,Z)}[g])&&(m=l(Ab(c)));M("Visitor","Got dimension ("+g+") value "+c+": "+u(m));d=m}catch(n){M("Visitor","Error: "+n.message)}return f(d,{value:e,match:b.match||"exact"})}
function Bd(a){var b=j;!O(a,"conditions")&&!bc(a,"add_condition")?(b=[bc(a,"audience_id")],b[0]||(b=O(a,"audiences")||[]),b=Xa(b,function(a){a=ub(a);return!a.conditions?j:ch(a.conditions)})):(O(a,"uses_geotargeting")||bc(a,"uses_geotargeting"))&&(b=dh.ip(k)||dh.location(k));b||M("Condition","Not ready to test (geotargeting): "+a);return b}function ch(a){if(F(a))return Xa(a.slice(1),ch);var b=zb(a.dimension_id)||"";return(b=dh[b])?b(a):j}
var Jg={browser:function(a){var b=Z.u();return D(a.values,function(a){return Mg(b,{value:a})})},code:function(a){return If(0,a)},cookies:function(a){for(var b=a.names||[],a=a.values||[],c,d=0;d<b.length;d++)if(c=b[d],Og(Z.I(c),{value:a[d]||i}))return j;return o},custom_tag:function(a){return D(a.values,function(a){return Qg(Z.ja(a.key),{value:a.value})})},event:function(a){return D(a.values,function(a){return Z.Ba(a)})},ip:function(a){var b=Z.U();return D(a.values,t(Rg,b))},language:function(a){var b=
Z.T();return D(a.values,function(a){return Ug(b,{value:a})})},location:function(a){var b=Z.L();return D(a.values,function(a){return Vg(b,{value:a})})},query:function(a){return 0===a.values.length?j:D(a.values,function(a){return Wg(Z.j(a.key),{value:a.value})})},referrer:function(a){return D(a.values,t(Xg,Z.Pa()))},segment:function(a){var b=Z.qa();return D(a.values,function(a){return Zg(ra(a,b))})},url:$g,visitor:function(a){var b=Z.na();return ah(b,a)}},bh={browser:Mg,browser_version:function(a,b){var c=
b.value,d=a.id,e=a.version;return 0===c.indexOf(d)?0===Lg(e,c.substr(d.length)):o},behavior:function(a,b){try{var c=ea(b.value),d;if(H(c.version)){!c.action&&(!c.filters||0===c.filters.length)&&h(Error('Audience spec must have an "action" field or at least one "filter" '+u(c)));var e=Cg("gt",Y.b,0),f=[],g=[];c.action&&(g.push(Cg("eq",Y.e,c.action.value)),c.action.type&&g.push(Cg("eq",Y.g,c.action.type)));if(c.time)if("last_days"===c.time.type)g.push({op:Bg("lte"),args:[{op:"-",args:[{eval:"now"},
{field:[Y.b]}]},{value:864E5*c.time.days}]});else if("range"===c.time.type){var l;var m=[c.time.start,c.time.stop];F(m)?l={op:"between",args:[{field:[Y.b]},{value:m[0]||+new Date(0)},{value:m[1]||+new Date}]}:(M("Rule builder","rangeTimeComparison passed invalid range "+u(m)),l=k);l&&g.push(l)}else M("Rule builder",'Audience spec has bad "time" type',c.time.type);e={op:"and",args:g};c.count&&f.push({where:Cg(c.count.comparator,"0",c.count.value),from:{select:[{field:yg("count")}],where:e,aggregate:[Eg("count")]}});
c.filters&&w(c.filters,function(a){var b=Gg(a.name,c.source),d,l;if(a.modifier==="most_frequent"){d=Eg("count");l=yg("count")}else if(a.modifier==="most_recent"){d=Eg("max",Y.b);l=yg("max",Y.b)}if(d){var m=zg(b);f.push({where:Cg(a.comparator,"0",a.value),from:{select:[{field:m}],where:e,groupBy:Dg([b]),aggregate:[d],orderBy:[{field:l,direction:"DESC"}],limit:1}})}else g.push(Cg(a.comparator,b,a.value))});if(c.pick){0<f.length&&h(Error('A "pick" clause must not be specified with "count" or "most_recent", "most_frequent" modifiers'+
u(c)));var n;var r=c.pick,q=c.source;l={where:e};r.count&&(l.limit=r.count);if("most_frequent"===r.modifier){var G=Gg(r.name,q);n=J(l,{select:[{field:zg(G)}],groupBy:Dg([G]),aggregate:[Eg("count")],orderBy:[{field:yg("count"),direction:"DESC"}]})}else n=J(l,{orderBy:[{field:[Y.b],direction:"DESC"}]});d=[n]}else d=0<f.length?f:[{where:e}]}else d=[c];return Xa(d,function(b){return tg(b,a)})}catch(A){}return o},campaign:function(a,b){var c=b.value;"string"===typeof c&&("regex"===b.match?a=ja(a):c=bg(c));
"none"===a&&(a=k);return Pg(c,b.match,a)},code:If,cookies:Og,custom_dimension:function(a,b){var c=b.value;return!H(c)?H(a):c==a},custom_tag:Qg,default_behavior:function(a,b){try{var a=a||{},c=ea(b.value);return tg(c,[a])}catch(d){}return o},device:function(a,b){var c=b.value;return"unknown"!==a.id?a.id===c:"tablet"===c?"tablet"===a.type:"mobile"===c?a.w&&"tablet"!==a.type:"desktop"===c?!a.w:o},event:aa(),first_session:aa(),ip:Rg,language:Ug,list:function(a,b){if(a===k||!H(a))return o;var c=b.value;
return!H(c)?""===a||a!==o:a.toString()===c},location:Vg,query:Wg,platform:function(a,b){var c=b.value.split("_"),d=c[0],c=c.slice(1);return d===a.id?0===c.length?j:1<c.length?0<=Lg(a.version,c[0])&&0>=Lg(a.version,c[1]):0===Lg(a.version,c[0]):o},referrer:Xg,segment:Zg,source_type:function(a,b){return b.value===a},time_and_day:function(a,b){var c,d,e;c=b.value;e=c.split("_");3!==e.length&&h(Error("Invalid time and day string "+c));c=e[0];d=e[1];e=e[2].split(",");c=Hg(c);d=Hg(d);var f=60*a.getHours()+
a.getMinutes(),g="sunday monday tuesday wednesday thursday friday saturday".split(" ")[a.getDay()];return f>=c&&f<=d&&-1!==$.inArray(g,e)},third_party_dimension:function(a,b){return F(a)?D(a,t(Pg,b.value,b.match)):Pg(b.value,b.match,a)},url:Kg,visitor:ah,dynamic_customer_profile:function(a,b){return a===k?o:!!a[b.value]},has_ppid:aa()},dh={ip:function(){U("checkGeo");return Z.U()!==k},location:function(){U("checkGeo");return Z.L()!==k},list:function(a){return Z.ma(Ab(a.dimension_id)||"")!==k},dynamic_customer_profile:function(a){var b=
Z.ka();return ab(b)&&a.value in b}};function Pg(a,b,c){var d=H(c)&&c!==k,e=H(a)&&a!==k;switch(b||(e?"exact":"exists")){case "exists":return d;case "exact":return d&&String(c)===a;case "substring":return d&&-1!==String(c).indexOf(a);case "regex":try{return e&&d?Boolean(String(c).match(RegExp(a))):o}catch(f){return o}case "range":return a=a.split(":"),b=parseFloat(a[1]),c=parseFloat(c),c>=parseFloat(a[0])&&c<=b;default:return o}};var eh=[function(){var a=ic();if("ie"===a.aa){try{var b=Number(a.ba)}catch(c){return}7>b&&h(Error("IE is only supported on version 8+ (detected "+b+")"));8>b&&("windows"===a.platform.id&&a.platform.version&&E(["xp","vista"],a.platform.version.toLowerCase()))&&h(Error("IE7 is not supported"))}},function(){return ea(u({a:123}))}];function te(a,b,c){var d;d=o===j;var c=c===j,e=o,f=Q(a);if(f&&(c||!Ig(f))){e=j;if(c&&Ig(f))for(c=0;c<W.length;c++)W[c].H===f&&W.splice(c,1);W.push({H:f,id:a,source:b});d&&(T=T||[],T.push(f));pe[f]=j;qe();M("Plan","Added experiment "+f+" and variation id "+a+" to the plan, source is "+b,j)}return e}function Ig(a){return a in oe||a in pe}function nd(a){var b=[],c=!H(a),a=a||[];w(W,function(d){(c||E(a,d.H))&&b.push(d.id)});return b}function Df(a){var b;if(b===j||!Ig(a))oe[a]=j,qe()}
function Hd(){var a={};w(Qe,function(b,c){a[b]=c});w(W,function(b){var c=Q(b.id);a[c]=b.id});w(oe,function(b){a[b]="0"});w(z("blacklisted_experiments")||{},function(b){b in a&&delete a[b]});y("optimizelyBuckets",u(a),Ua)}function qe(){w(fh,function(a){a()})}
function gh(a,b,c,d){if(-1!==a.indexOf("_optimizely_redirect"))b.push({code:a,type:"code forced (redirect)",variationId:d});else{for(var a=a.split("\n"),e=o,f=o,g=[],l=[];0<a.length;){var m=eb(a.shift()),n=0<l.length;if(m)if(Boolean(m.match(/_optimizely_evaluate\s{0,9}=\s{0,9}force/i)))f=j;else if(Boolean(m.match(/_optimizely_evaluate\s{0,9}=\s{0,9}safe/i))||Boolean(m.match(/_optimizely_evaluate\s{0,9}=\s{0,9}end_force/i)))f=o;else if(Boolean(m.match(/_optimizely_evaluate\s{0,9}=\s{0,9}editor_only/i)))e=
j;else if(Boolean(m.match(/_optimizely_evaluate\s{0,9}=\s{0,9}end_editor_only/i)))e=o;else if(!hh.exec(m)&&!e)if(f)g.push(m);else{if(!n){var r=ih.exec(m),q=[];r?(q.push(r[1].replace(/^['"]|['"]$/g,"")),(r=jh.exec(m))&&4<r.length&&q.push(r[4]),c.push({code:m,selector:q,type:"safe jquery",waitUntilSelectorReady:j,variationId:d})):n=j}n&&l.push(m)}}0<g.length&&b.push({code:g.join("\n"),type:"forced evaluation",variationId:d});0<l.length&&c.push({code:l.join("\n"),type:"safe non-jquery",waitUntilDocumentReady:j,
variationId:d})}}function kh(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 fh=[],Qe={},oe={},jh=/^\$j?\(['"](.+?)['"]\)\.detach\(\)\.(appendTo|insertAfter|insertBefore|prependTo)\(['"](.+?)['"]\);(?:\s|(?:\/\/.*|\/\*(?:[^*]|\*(?!\/))*\*\/))*$/,hh=/^(?:\s|(?:\/\/.*|\/\*(?:[^*]|\*(?!\/))*\*\/))*$/,ih=/^\$j?\((['"].+?['"]|document)\)\..+;(?:\s|(?:\/\/.*|\/\*(?:[^*]|\*(?!\/))*\*\/))*$/,pe={},W=[];function lh(a){Yf={};Wf(a)};function mh(a,b){if(a&&b)if(nh)M("Evaluator","Bound event "+b+" to selector "+a),oh(a,b);else{var c={eventName:b,selector:a,type:"event '"+b+"' (click goal)",waitUntilSelectorReady:j};M("Evaluator","Add step to bind event "+c.eventName+" to selector "+c.selector);ph.push(c)}}
function Gd(a,b){if(B){F(a)?qh(a):(a=[],qh(b));a=a.concat(T);T=[];for(var c=0;c<a.length;c++)E(md,a[c])||md.push(a[c]);c=a;c===i?c=[]:bb(c)&&(c=[c]);for(var d=nd(c),e=[],f=[],g=[],l=[],m=K(wb(),function(a){return a.experiments?o:$g(a.url_conditions||[])}),n=0,r=m.length;n<r;n++){var q={eventName:m[n].event_name,selector:m[n].selector,type:"event '"+m[n].event_name+"' (click goal)",waitUntilSelectorReady:j};"revenue"in m[n]&&(q.revenue=m[n].revenue);e.push(q)}w(c,function(a){var b={},c=O(a,"events")||
{};w(c,function(a,c){b[a]=[c]});var c=K(wb(),function(b){return"experiments"in b?a in b.experiments:o}),d=0;for(;d<c.length;d++){var m=c[d];b[m.selector]||(b[m.selector]=[]);b[m.selector].push({eventName:m.event_name,revenue:m.revenue,experimentIds:m.experiments})}w(b,function(b,c){w(c,function(c){e.push({eventName:c.eventName,experimentIds:c.experimentIds,revenue:c.revenue,selector:b,type:"event '"+c.eventName+"' (experiment "+a+")",waitUntilSelectorReady:j})})});var n=O(a,"css")||"";n&&g.push({code:function(){$("body").append("<style>"+
n+"</style>")},selector:"body",type:"global css (experiment "+a+")",waitUntilSelectorReady:j});if(c=O(a,"steps")){w(c.forced,function(a){f.push(a)});w(c.safe,function(a){l.push(a)})}else(c=O(a,"code")||"")&&gh(c,f,l)});w(d,function(a){var b=z("variations",a,"pages");if(b)w(b,function(a){if(a.steps&&(!a.includes||$g({values:a.includes}))&&(!a.excludes||!$g({values:a.excludes}))){f.push.apply(f,a.steps.forced);l.push.apply(l,a.steps.safe)}});else{for(var b=Tb(a),b=b.split("\n"),c=[],d=j,e=0,g=b.length;e<
g;e++){var m=$.trim(b[e]);if(m==="/* _optimizely_variation_url_end */")d=j;else if(m!==""){var n=Ea.exec(m);if(n&&n.length===13){var q=n[2]?n[2].split(" "):[],m=n[4]?n[4].split(" "):[],r=n[6]?n[6]:"substring",hf=n[8]?n[8].split(" "):[],n=n[10]?n[10].split(" "):[];if(q.length>0){d=kh(q,hf,r);d=$g(d)}if(d&&m.length>0){d=kh(m,n,r);d=!$g(d)}}else d&&c.push(m)}}b=c.join("\n");gh(b,f,l,a)}});c=[];c.push.apply(c,f);c.push.apply(c,g);c.push.apply(c,l);c.push.apply(c,e);ph.push.apply(ph,c);rh()}}
function rh(){var a=o;sh=k;for(M("Evaluator",th+" times waited");!a&&0<ph.length;){M("Evaluator",ph.length+" steps remaining");var b=ph.shift(),c=b,a=o;if(c.waitUntilDocumentReady&&!nh)M("Evaluator","Document not ready yet"),a=j;else if(c.waitUntilSelectorReady&&!nh&&(c=c.selector))for(var c=F(c)?c:[c],d=0;d<c.length;d++){var e=c[d];if(!(e===k||e===i||!e.length))if(0===("document"==e?$(document):$(e)).length)M("Evaluator","'"+e+"' not found"),a=j}a?ph.unshift(b):b.eventName?(uh(),M("Evaluator","Bound event "+
b.eventName+" to selector "+b.selector),c={},b.revenue&&(c={Z:b.revenue,fa:b.experimentIds}),oh(b.selector,b.eventName,c)):b.code&&(M("Evaluator","Run code: "+b.code.toString()),vh(b.code,b.variationId))}a?(sh=setTimeout(rh,0===th?10:50),th++):(M("Evaluator",th+" total times waited"),uh())}function Ng(a){return"string"===typeof a?eval(a):a()}function uh(){U("flash");0<zd.length||U("flashGeo")}
function vh(a,b){if(a){var c=o,d;"string"===typeof a?(d=a,c=j):d=a.toString();if(pd(d))if(M("Evaluator","Redirect detected"),$d(d)){M("Evaluator","OK to redirect");var e=Zd(d);M("Evaluator","setting a redirect cookie"+(b?" for variation: "+b:""));y("optimizelyRedirect",(b||"unknown variation")+"|"+(e?"true":"false"),5);ae()}else{M("Evaluator","NOT OK to redirect");return}c&&eval("var $j = $;");try{if(pd(d)){$("head").append("<style type='text/css'>body{display:none;visibility:hidden;}</style>");M("Evaluator",
"Hiding body before redirect");var f=ce.test(d)||be.test(d)||de.test(d),g=/_keep_body_hidden=(\S+)/.test(d);f||g?M("Evaluator","Standard redirect detected - Will not unhide body."):setTimeout(function(){if(document.body){document.body.style.visibility="visible";document.body.style.display="block";M("Evaluator","Unhiding body -- did not redirect");U("bodyUnhidden")}},1700)}Ng(a)}catch(l){c=Pa,Pa=j,M("Evaluator","Error: "+l.message),M("Evaluator","Code: "+d),Pa=c,M("Evaluator","Failed to run code: "+
l.message)}}}
function oh(a,b,c){c=c||{};if(!wh[a]||!wh[a][b]){var d=function(){Ue(b,"custom",c)},e=$(a);if(0<e.length){var f=function(){e.unbind("touchend",d);e.unbind("touchmove",f);e.unbind("mousedown",d)},g=function(){f();e.bind("touchmove",f);e.bind("touchend",d)};e.bind("mousedown",d);e.bind("touchstart",g)}else e=$("html"),f=function(){e.undelegate(a,"touchend",d);e.undelegate(a,"touchmove",f);e.undelegate(a,"mousedown",d)},e.delegate(a,"touchstart",function(){f();e.delegate(a,"touchend",d);e.delegate(a,
"touchmove",f)}),e.delegate(a,"mousedown",d);wh[a]||(wh[a]={});wh[a][b]="mousedown touchstart"}}function xh(a){yh=a}function qh(a){a||(a=Eb());for(var b=0;b<a.length;b++)Nb(a[b])}var wh={},md=[],T=T||[],yh=0,nh=o,ph=[],sh=k,th=0;$(function(){setTimeout(function(){U("docReady");nh=j;sh!==k&&(M("Evaluator","Document is ready"),clearTimeout(sh),0<yh?setTimeout(rh,yh):rh())},50)});function Sg(a){this.Ea=$.trim(a);a=zh(this.Ea);a===k&&h(Error("Invalid CIDR specification"));this.X=a.X;this.W=a.W}function zh(a){a=a.split("/");if(2!=a.length)return k;var b=parseInt(a[1],10);if(isNaN(b)||0>b||32<b)return k;a=Tg(a[0]);if(a===k)return k;if(0>b||32<b)b=k;else{for(var c=[],d=0;4>d;d++)c[d]=0;for(var e=Math.floor(b/8),d=0;d<e;d++)c[d]=255;4>e&&(c[e]=Ah[b%8]);b=c}for(c=0;4>c;c++)a[c]&=b[c];return{X:a,W:b}}
function Tg(a){a=a.split(".");if(4!=a.length)return k;for(var b=[],c=0;4>c;c++){var d;d=a[c];if(3<d.length)d=k;else{var e=parseInt(d,10);d=isNaN(e)||d!==e.toString()||0>e||255<e?k:e}if(d===k)return k;b[c]=d}return b}var Ah=[0,128,192,224,240,248,252,254,255];function Yg(a,b,c){var d=a.split("?");if(d[1]){var e=[];$.each(d[1].split("&"),function(){0!==this.indexOf(Bh)&&e.push(this)});d[1]=e.join("&");a=d.join("?")}switch(c){case "exact":return a=Ch(a),a===Ch(b);case "regex":try{return Boolean(a.match(b))}catch(f){return o}case "simple":return a=Ch(Dh(a)),b=Ch(Dh(b)),a===b;case "substring":return a=Ch(a,j),b=Ch(b,j),-1!==a.indexOf(b);default:return o}}
function Dh(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 Ch(a,b){var a=a.replace("/?","?"),a=a.toLowerCase().replace(/[/&?]+$/,""),c=Eh.slice(0);b||(c=c.concat(Fh));for(var d=c.length,e=0;e<d;e++)a=a.replace(RegExp("^"+c[e]),"");return a}
var Eh=["https?://.*?.?optimizelyedit.(com|test)/","https?://.*.?optimizelypreview.(com|test)/","https?://(edit|preview)(-hrd|-devel)?.optimizely.(com|test)/","https?://.*?.?optimizelyedit(-hrd)?.appspot.com/","https?://"],Fh=["www."],Bh="optimizely_";function Gh(a){return function(b){if("object"===typeof b&&Jh()){var c=k,d;for(d in b)b.hasOwnProperty(d)&&(c=a.call(this,d,b[d]));return c}return a.apply(this,arguments)}}function Jh(){for(var a in{})return j;return o};function Kh(){if(!Da){var a=$;a.fn.attr=Gh(a.fn.attr);a.fn.css=Gh(a.fn.css);a.fn.extend=Gh(a.fn.extend);var b=a.each;a.each=function(c,d,e){if(!(c.length===i||a.isFunction(c))||!Jh())b.apply(this,arguments);else if(e)for(var f in c){if(c.hasOwnProperty(f)&&d.apply(c[f],e)===o)break}else for(f in c)if(c.hasOwnProperty(f)&&!d.call(c[f],f,c[f])===o)break;return c};var c=a.fn.ab,d=function(a,b,d){return new c(a,b,d)},e,f=document.getElementsByClassName;if(!Vf(f))var f=(window.optimizely||{}).getElementsByClassName,
g=(window.optly||{}).getElementsByClassName,f=Vf(f)?f:Vf(g)?g:k;e=f;a.fn.ab=function(b,c,f){var g=d,l=document.getElementsByClassName;!Vf(l)&&e&&(g=function(a,b,c){document.getElementsByClassName=e;a=d(a,b,c);document.getElementsByClassName=l;return a});if(!("string"===typeof b&&c&&"object"===a.type(c)&&Jh()))return g(b,c,f);b=g(b,i,f);b.attr(c);return b}}M("Main","Started, revision "+z("revision"));try{var l=[];w(eh,function(a){try{a()}catch(b){l.push(b.message)}});0<l.length&&h(Error("Feature(s) not supported: "+
l.join("; ")))}catch(m){M("Main","Disabling: "+m.message);return}var f=Tf(),g=o,n;for(n in f)if(Uf.exec(n)){g=j;break}("true"===f.opt_out||"false"===f.opt_out)&&ie("true"===f.opt_out);Ga="true"===f.force_tracking;"true"===f.disable||"true"===f.opt_out||jf()?Ha=B=o:"classic"===f.disable?B=o:"new"===f.disable&&(Ha=o);Ia="true"===f.editor;Ja="true"===f.p13n;Oa="true"===f.show_preview;Ka=(n=window.optlyDesktop)&&H(n.p13nInner);(n=v("optimizelyToken"))&&y("optimizelyToken",n,15);n=f.token||n;z("insecure_preview")&&
n?Ma="public/"+P():/^[0-9a-f]{64}$/.test(n)?Ma=n:/^[0-9a-f]{32}$/.test(n)?(M("Query","Using legacy MD5 token"),Ma=n):(ya("optimizelyToken",za()),M("Query","Blocked request to load unsafe script: "+n));Pa="true"===f.log;Qa="true"===f.verbose;qa=!(Oa||g)||Ga;if(Ia||Ja)window.optimizelyDataApi={getProjectId:P};if(Ka)M("Main","Disabling because in desktop app editor.");else if(Ja)M("Main","Disabling because personalization editor flag is set."),db("https://"+Yb()+"/js/innie.js?_="+ +new Date);else if(ge(),
jf())M("Main","Disabling because opted out"),yc();else if(Ma){if(!window.optimizelyPreview){if(!window.optimizely||!window.optimizely.unshift)window.optimizely=[];window.optimizely.unshift(["verifyPreviewProject",P()]);db([Sf,"/js/preview/",Ma,".js"].join(""),j);Oa&&Rf('Loading Preview<br /><img alt="loading" src="//'+Yb()+'/static/img/loading-32.gif" style="padding-top:20px; width: 32px; margin: 0 auto;" />')}}else if(Oa&&!Ma)Rf("This preview link has expired. Please return to Optimizely and preview again to get a new link.");
else{if(B||Ha)if(f=z("project_js"))M("Evaluator","Running project level javascript."),vh(f);ge();if(B){f=v("optimizelyEndUserId");tc=f!==i&&f!==k;a:{f="googlebot;yahoo! slurp;bingbot;bingpreview;msnbot;keynote;ktxn;khte;gomezagent;alertsite;yottaamonitor;pingdom.com_bot;aihitbot;baiduspider;adsbot-google;mediapartners-google;applebot".split(";");g=navigator.userAgent;g=g.toLowerCase();for(n=0;n<f.length;n++)if(-1!==g.indexOf(f[n])){f=j;break a}f=o}f?qa=o:tc||ib.set("first_session",j)}if(f=N.get("asyncInfo"))oc("asyncInfo")||
pc(f),N.set("asyncInfo",k);(f=oc("asyncInfo"))&&w(f,Dc);if(z("uses_list_targeting")){var f="https://odds.optimizely.com/js/geo2.js",r={};w(Qb(),function(a,b){var c=Mc(b);typeof c==="string"&&(r[b]=c)});r.project=P().toString();var g=[],q;for(q in r)r.hasOwnProperty(q)&&g.push(encodeURIComponent(q)+"="+encodeURIComponent(r[q]));g.length&&(f+="?"+g.join("&"));db(f)}z("uses_dynamic_customer_profile_targeting")&&(Pf(),q=Jf(),!q.q||!q.q.datasourceId?(M("DCP","No Optimizely datasource found in data."),
q=k):(f=q.q.datasourceId,g=q.q.id,f=I([P().toString(),f,g],encodeURIComponent),f=["https://tapi.optimizely.com/api/targetingEmbed"].concat(f).join("/"),g=(Oc.get()||{}).aliases||{},Qf(q.z,g)||(q=I(q.z,function(a){return encodeURIComponent(a.datasourceId)+"="+encodeURIComponent(a.id)}),f+="?"+q.join("&")),q=f),q!==k&&db(q));(z("dcp_service_id")||k)!==k&&setTimeout(function(){var a=z("dcp_service_id")||k;if(a!==k){var b=Jf();if(b.q)if(b.z.length===0)M("DCP","Must specify at least one non-Optimizely datasource to alias");
else if(Pf()){var a=I([a,b.q.datasourceId,b.q.id],encodeURIComponent).join("/"),c=b.z;try{var d=new XMLHttpRequest;d.open("POST",["https://vis.optimizely.com/api/alias",a].join("/"));if("withCredentials"in d)d.withCredentials=j;d.setRequestHeader("Content-Type","application/json;charset=UTF-8");var e={};w(c,function(a){e[a.datasourceId]=a.id});d.onerror=function(){M("DCP","Failed to POST alias request")};d.onload=function(){if(d.status>=200&&d.status<300){var a=Oc.get()||{},b=a.aliases||{},b=b||{};
w(c,function(a){b[a.datasourceId]=a.id});a.aliases=b;Oc.set(a)}else M("DCP","Alias POST failed with",d.statusText)};d.send(u({data:e}))}catch(f){M("DCP","Exception %s trying to POST alias request",f)}}else M("DCP","Duplicate alias request; skipping.");else M("DCP","Must specify Optimizely datasource in alias")}},0);if(q=v("optimizelyBuckets")){try{q=ea(q)}catch(G){q={}}var A={};w(q,function(a,b){var b=String(b),c=Q(b);if(Ob(c).length>1&&b.indexOf("_")===-1){A[c]=A[c]||{};A[c][a]=b}else b!=="0"?te(b,
"cookie")||(Qe[a]=b):Df(a)});w(A,function(a,b){var c;a:{c=[];for(var d=Ob(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?te(c,"cookie"):Df(a)})}Wf();od=(v("optimizelyRedirect")||"|").split("|")[0];q=v("optimizelyReferrer");q!==k&&(Tc=0==q.length?"":q,y("optimizelyReferrer",""));q=Xf;M("Visitor","Initializing");(f=v("optimizelyAudiences"))&&0<f.length&&w(f.split(","),p(function(a){wg(this,a,j,{O:j,ya:o})},q));w(dg(),p(function(a){M("Visitor","Found segment "+
a);var b=Ib()[a];if(b&&b.audience_id){M("Visitor","Adding to audience "+b.audience_id);wg(this,b.audience_id,j,{C:o})}else if(b&&b.dimension_id){M("Visitor","Setting dimension value "+b.dimension_id);xg(this,b.dimension_id,Yf[a],o)}},q));V=Xf;ee=o;Zf.push(Ad);fh.push(Ad);q={$:$,activeExperiments:md||[],allExperiments:Jb(),all_experiments:Jb(),allVariations:z("variations")||{},getElementsByClassName:document.getElementsByClassName,revision:z("revision"),variationIdsMap:Fe,variation_map:Ge,variationMap:Ge,
variationNamesMap:He};for(var C in q)X(q,C,q[C]);q.data=Ie;C={};var pa=Ya(ke,[C,Se]);J(C,{activate:t(sd,V),activateGeoDelayedExperiments:t(vd,V),activateSiteCatalyst:Qc,activateUniversalAnalytics:fd,addOAuthClientId:xe,addToAudience:p(V.D,V),addToSegment:me,bindTrackElement:mh,bucketUser:td,bucketVisitor:td,clickTaleRecord:id,clickTalePlayback:gd,customTag:ze,delayDomReadyEval:xh,delayPageviewTracking:Le,disable:he,log:zc,getAccountId:tb,getProjectId:P,googleAnalyticsCustomVariableScope:Wc,integrationPrefix:jd,
optOut:ie,overrideUrl:uc,push:pa,removeFromAllAudiences:p(V.gb,V),removeFromAllSegments:De,removeFromAudience:p(V.Y,V),removeFromSegment:Ae,sc_activate:Qc,sc_svar:kd,skipPageTracking:Ne,optOutThirdPartyCookies:Me,setDimensionValue:p(V.B,V),setUserId:Pe,storeThirdPartyData:le,timeout:he,trackEvent:Re,verbose:Ac});z("slave")&&J(C,{get:ve});C.removeFromReportableAudiences=Oe;J(q,C);C=window.optimizely;F(C)&&w(C,function(a){pa(a)});window.optimizely=q;U("apiInitialize");window.optimizely.iapi={evaluateSegments:t(lh,
i)};var Ta=!z("force_variation");C=Tf();w(C,function(a,b){var c=Uf.exec(a);if(c)if(Ta){Na=j;x("Query","Ignored parameter %s",a)}else{c=c[1];td(c,b,j);Lb(c)?Gf(c,{force:j,skipPageviewTracking:j}):Cd(c,{})||sd(V,c,{force:j,skipPageviewTracking:j})}});Na?Rf("Force parameters are disabled for this project. See Project Code Settings."):(Kh.log(),Ia&&db("https://"+Yb()+"/js/innie.js?_="+ +new Date),B&&(U("distributeExperiments"),w(Eb(),function(a){if(!ra(a,T))if(Lb(a))Gf(a);else if(Bd(a)){if(Cd(a,{objectType:"experiment"})){M("Distributor",
"Going to distribute "+Nb(a));if(Fd(a)){T=T||[];T.push(a)}}}else!Kb(a)&&!E(md,a)&&Dd(a)}),Hd(),Ye(),Sa||(0<Fa?setTimeout(function(){Id()},Fa):Id()),Xe(),Yc()),Pa&&(w(oe,function(a){var b=Mb(a);M("Plan","Ignore experiment '"+b+"' ("+a+")")}),w(W,function(a){var b=Q(a.id),c=Wb(a.id);M("Plan",Nb(b)+' in variation "'+c+'" ('+a.id+")")})),Ia?ue():B&&(U("beginEvaluate"),Gd(),ue(),yc(),!z("installation_verified")&&qa&&(C="https://"+Yb()+"/account/snippet_installed?project_id="+P()+"&wxhr=true",M("Tracker",
"Making snippet verification request."),ad(C,k))),setTimeout(function(){vd(V)},2E3),setTimeout(function(){if(qa){var a=ye;if(a.$a){var b=Va(),c=Wa(),d=P(),e=z("revision"),f=yf,g=wf,l=Af,m=cc(),n=md.concat(T).length,q=uf().length,r;r=oc("events")||[];var C=oc("event_queue")||[];r=u(r).length+u(C).length;var A;a:{try{A=window.optimizely.get("behavior").getEvents()[0].timestamp;break a}catch(G){}A=i}var b={user:b,ppid:c,project:d,revision:e,sync:f,timebase:g,render:l,sampleRate:m,numExps:n,numBehaviorEvents:q,
behaviorEventsSize:r,oldestBehaviorEventAge:!A?0:(new Date).getTime()-A.getTime(),integrationOAuthClientIds:xf(we,",",64),codeVersion:z("version"),hasSlave:!!z("slave"),docVisibilityState:document.Bb||document.webkitVisibilityState,wxhr:j,apis:xf(L(a.R),"!",1E3)},sa;a:{c=k;try{sa=K(window.performance.getEntries(),function(a){return!!Cf.test(a.name)})[0]}catch(pa){sa=c;break a}if(sa){var c={},Bb;for(Bb in sa)typeof sa[Bb]==="number"&&sa[Bb]!==0&&(c[Bb]=sa[Bb])}sa=c}J(b,sa||{});J(b,a.n);var Ta=["optimizelyAudiences",
"optimizelyBuckets","optimizelyCustomEvents","optimizelyPendingLogEvents","optimizelyReferrer","optimizelySegments"],Pd={},Qd=0,Rd=0;w(ia(),function(a){if(a.name.indexOf("optimizely")===0){if(E(Ta,a.name)){M("RUM","Cookie size for "+a.name+": "+a.P.length);Pd[a.name+"Len"]=a.P.length}Qd=Qd+a.P.length}Rd=Rd+a.P.length});J(Pd,{allOptimizelyCookiesLen:Qd,allCookiesLen:Rd});J(b,Pd||{});var kg={};w(N.wa()||{},function(a,b){kg["ls"+a]=b});J(b,kg);var a=[],Fc;for(Fc in b)Object.prototype.hasOwnProperty.call(b,
Fc)&&a.push(window.encodeURIComponent(Fc)+"="+window.encodeURIComponent(b[Fc]));ad("https://rum.optimizely.com/rum?"+a.join("&"),k)}}},3E3),M("Main","End of main"),U("mainEnd"))}}
Kh.log=function(){M("Info","Is Classic Optimizely enabled: "+B);M("Info","Diagnostic enabled: false");M("Info","Force variation enabled: "+!!z("force_variation"));M("Info","Browser type: "+jc());M("Info","Browser version: "+kc());var a=qc();"unknown"!==a&&M("Info","Mobile browser type: "+a);M("Info","New vs returning: "+sc());M("Info","Source type: "+cg());M("Info","User ID: "+Va())};Kh();
};
var SLAVE_CLIENT = {optimizely:[]};
optimizelyCode();
optly.Cleanse.finish();

}());
