(function(){function Ba(a){switch(a){case "'":return"\x26#39;";case "\x26":return"\x26amp;";case "\x3c":return"\x26lt;";case "\x3e":return"\x26gt;";case '"':return"\x26quot;";case "\u00a9":return"\x26copy;";case "\u2028":return"\x3cbr\x3e";case "\u2029":return"\x3cp\x3e";default:return a}}function l(){}function t(){}function ka(a){l.prototype.init.call(this,a,l.TYPE.STANDARD)}function la(a){m[a]||(m[a]=new ka(a));return m[a]}function S(a,b){l.prototype.init.call(this,b+"_"+a,l.TYPE.AGENT)}function K(a, b){var c=b+"_"+a;m[c]||(m[c]=new S(a,b));return m[c]}function T(a,b){t.prototype.init.call(this,a,b)}function U(a,b){t.prototype.init.call(this,a,b)}function h(a){l.prototype.init.call(this,a,l.TYPE.INVITE);this.active=!1;this.filterLogic=null;this.rules={};this.autoRejectTimeout=this.inviteTimeout=this.inviteDelay=this.ruleTree=null}function u(a){m[a]||(m[a]=new h(a));return m[a]}function z(a,b,c,e,d,g,B,x){t.prototype.init.call(this,a,b);this.hasInviteAfterAccept=g;this.hasInviteAfterReject=B;this.rejectTime= x;null!==f.getCssAnimation(b)||"Custom"==c?this.renderer=new h.RENDERER[c].renderClass(a,b,h.START_POSITION[e],h.END_POSITION[d]):this.renderer=new h.RENDERER.Appear.renderClass(a,b,h.START_POSITION[e],h.END_POSITION[d])}function C(a){return u(a)?u(a).getTracker():null}function r(){}function I(a,b,c,e){r.prototype.init.call(this,a,b,c,e)}function J(a,b,c,e){r.prototype.init.call(this,a,b,null,e)}function L(a,b,c,e){r.prototype.init.call(this,a,b,null,e)}function D(a,b,c,e){D.prototype.init.call(this, a,b,null,null)}function n(){}function M(a,b,c,e,d){n.prototype.init.call(this,a,b,c,e,d)}function N(a,b,c,e,d){n.prototype.init.call(this,a,b,c,e,d)}function V(a,b,c,e,d){n.prototype.init.call(this,a,b,c,e,d)}function E(a){ma++;if(1E3"'\u00a9\u2028\u2029]/g,Ba)},isValidEntityId:function(a){return a&&"string"===typeof a&&(18===a.length||15===a.length)},getKeyPrefix:function(a){return this.isValidEntityId(a)?a.substr(0,3):null},isOrganizationId:function(a){return"00D"===this.getKeyPrefix(a)},isDeploymentId:function(a){return"572"===this.getKeyPrefix(a)},trim:function(a){return a&&a.replace(/^[\s\u0000-\u0020]*|[\s\u0000-\u0020]*$/g,"")||""}},fa,v={getVisitCount:function(){var a=parseInt(f.getCookie("liveagent_vc"), 10);return isNaN(a)?null:a},getOref:function(){return f.getCookie("liveagent_oref")},getPermanentId:function(){var a=f.getCookie("liveagent_ptid");return null!=a?a:""},setVisitCount:function(a){f.setCookie("liveagent_vc",a,!0)},setOref:function(a){return f.setCookie("liveagent_oref",a,!0)},setPermanentId:function(a){f.setCookie("liveagent_ptid",a,!0)}},A=new function(){function a(){return window.localStorage?window.localStorage:window.sessionStorage}function b(){var a=document.createElement("div"); a.style.display="none";document.body.appendChild(a);a.id="liveagent_userdata_provider";a.addBehavior("#default#userData");a.load("liveagent");return{getItem:function(b){return a.getAttribute(b)},setItem:function(b,c){a.setAttribute(b,c);a.save("liveagent")},removeItem:function(b){a.removeAttribute(b);a.save("liveagent")}}}function c(){var a={};return{getItem:function(b){return a[b]},setItem:function(b,c){a[b]=c},removeItem:function(b){delete a[b]}}}function e(){g.setItem(d.SESSION_ID,w);g.setItem(d.PAGE_COUNT, "0");g.setItem(d.SESSION_START,(new Date).getTime().toString())}var d={SESSION_ID:"liveAgentSid",PAGE_COUNT:"liveAgentPc",SESSION_START:"liveAgentStart",PAGE:"liveAgentPage_",PAGE_TIME:"liveAgentPageTime_"};a.isSupported=function(){try{if(window.localStorage||window.sessionStorage){var a=window.localStorage?window.localStorage:window.sessionStorage;a.setItem("liveAgentTestKey","1");a.removeItem("liveAgentTestKey");return!0}return!1}catch(b){return!1}};b.isSupported=function(){return document.createElement("div").addBehavior}; var g;g=a.isSupported()?a():b.isSupported()?b():c();this.init=function(){if(g.getItem(d.SESSION_ID)){if(g.getItem(d.SESSION_ID)!=w){g.removeItem(d.SESSION_START);for(var a=g.getItem(d.PAGE_COUNT),b=25>a?0:a-25;bb?0:b-25;cparseFloat(b);case n.OPERATOR.LESS_OR_EQUAL:return f.log("Evaluate: "+ parseFloat(a)+" \x3c\x3d "+parseFloat(b)),parseFloat(a)<=parseFloat(b);case n.OPERATOR.GREATER_OR_EQUAL:return f.log("Evaluate: "+parseFloat(a)+" \x3e\x3d "+parseFloat(b)),parseFloat(a)>=parseFloat(b)}};M.prototype=new n;M.prototype.evaluate=function(){f.log("Evaluating StandardInviteRule");return n.prototype.evaluate.call(this,this.compareFrom,this.compareTo)};N.prototype=new n;N.prototype.evaluate=function(){f.log("Evaluating TimerInviteRule");var a=(new Date).getTime()-this.compareFrom,b=n.prototype.evaluate.call(this, a,this.compareTo);!b&&a<=this.compareTo&&(a=this.compareTo-a,(null==u(this.buttonId).getInviteDelay()||a