var optimizely={preset_optimizely:optimizely||[],revision:23,account_id:4610002,all_experiments_json:'{"6403012": {"url_matches": [{"url_match_type": "substring", "url_string": "staging.socialgrapes.com"}], "language_matches": [], "browser_matches": [], "targeting_exclude_custom_events": [], "exp_status": "Paused", "targeting_cookie_value": "", "tracked_elements": "{}", "visitor_type": "all", "targeting_custom_events": [], "targeting_cookie_name": "", "use_splunk": true, "exclude_browser_matches": [], "google_analytics_slot": 1, "variation_ids": [6438009, 6344012, 6403013], "status": "Paused", "custom_js": "", "description": "staging sign up link", "section_experiment_ids": [], "percentages_custom": false, "master_experiment_id": null, "goals": [{"url": "\\/signup", "type": 8, "label": "8#6386009"}], "is_multivariate": false, "custom_css": "", "section_title": null, "percentages": [3334, 3333, 3333], "variations": [{"js_component": "", "variation_id": 6438009, "description": "Original Page"}, {"js_component": "$j(\\"ul.clearfix li:eq(1) a:eq(0)\\").html(\\"Create Account\\");\\n$j(\\"a.signup.button\\").html(\\"Create Account Now\\");", "variation_id": 6344012, "description": "Create Account"}, {"js_component": "$j(\\"ul.clearfix li:eq(1) a:eq(0)\\").html(\\"Join Now\\");\\n$j(\\"a.signup.button\\").html(\\"Join Now\\");", "variation_id": 6403013, "description": "Join Now"}], "targeting_javascript_condition": "", "custom_html": "", "experiment_type": "Master Experiment", "experiment_id": 6403012, "google_analytics": "null", "referring_url_matches": []}, "6404013": {"url_matches": [{"url_match_type": "substring", "url_string": "www.socialgrapes.com"}], "language_matches": [], "browser_matches": [], "targeting_exclude_custom_events": [], "exp_status": "Paused", "targeting_cookie_value": "", "tracked_elements": "{}", "visitor_type": "all", "targeting_custom_events": [], "targeting_cookie_name": "", "use_splunk": true, "exclude_browser_matches": [], "google_analytics_slot": 1, "variation_ids": [6354016, 6440011, 6344011], "status": "Paused", "custom_js": "", "description": "socialgrapes.com sign up link", "section_experiment_ids": [], "percentages_custom": false, "master_experiment_id": null, "goals": [{"url": "\\/signup", "type": 8, "label": "8#6386009"}], "is_multivariate": false, "custom_css": "", "section_title": null, "percentages": [3334, 3333, 3333], "variations": [{"js_component": "", "variation_id": 6354016, "description": "Original Page"}, {"js_component": "$j(\\"ul.clearfix li:eq(1) a:eq(0)\\").html(\\"Create Account\\");\\n$j(\\"p.tour_start a.button\\").html(\\"Create Account Now\\");", "variation_id": 6440011, "description": "Create Account"}, {"js_component": "$j(\\"ul.clearfix li:eq(1) a:eq(0)\\").html(\\"Join Now\\");\\n$j(\\"p.tour_start a.button\\").html(\\"Join Now\\");", "variation_id": 6344011, "description": "Join Now"}], "targeting_javascript_condition": "", "custom_html": "", "experiment_type": "Master Experiment", "experiment_id": 6404013, "google_analytics": "custom_variables", "referring_url_matches": []}}',tracking_host:'optimizely.appspot.com',is_localhost:false};
var $j = jQuery;
var _gaq = _gaq || [];
(function(){var f=true,h=null,i=false,l,aa=this;function r(a,b,c){a=a.split(".");c=c||aa;!(a[0]in c)&&c.execScript&&c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)if(!a.length&&b!==undefined)c[d]=b;else c=c[d]?c[d]:c[d]={}}
function t(a){var b=typeof a;if(b=="object")if(a){if(a instanceof Array||!(a instanceof Object)&&Object.prototype.toString.call(a)=="[object Array]"||typeof a.length=="number"&&typeof a.splice!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("splice"))return"array";if(!(a instanceof Object)&&(Object.prototype.toString.call(a)=="[object Function]"||typeof a.call!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("call")))return"function"}else return"null";
else if(b=="function"&&typeof a.call=="undefined")return"object";return b}function y(a){return t(a)=="array"}function z(a){var b=t(a);return b=="array"||b=="object"&&typeof a.length=="number"}function A(a){return typeof a=="string"}Math.floor(Math.random()*2147483648).toString(36);function ba(a){var b=Array.prototype.slice.call(arguments,1);return function(){var c=Array.prototype.slice.call(arguments);c.unshift.apply(c,b);return a.apply(this,c)}}
function C(a,b){function c(){}c.prototype=b.prototype;a.Yb=b.prototype;a.prototype=new c};$j.extend($j.fn,{optimizely_custom_html:function(a){$j(this).append($j("<div style='display:none;'>"+a+"</div>"));return $j(this)},optimizely_custom_css:function(a){$j(this).append($j("<style>"+a+"</style>"));return $j(this)},optimizely_custom_js:function(a){$j(this).append($j("<script>"+a+"<\/script>"));return $j(this)}});(function(a){function b(n){return n<10?"0"+n:n}function c(n){g.lastIndex=0;return g.test(n)?'"'+n.replace(g,function(u){var o=p[u];return typeof o==="string"?o:"\\u"+("0000"+u.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+n+'"'}function d(n,u){var o,q,v,B,w=j,s,m=u[n];if(m&&typeof m==="object"&&typeof m.toJSON==="function")m=m.toJSON(n);if(typeof x==="function")m=x.call(u,n,m);switch(typeof m){case "string":return c(m);case "number":return isFinite(m)?String(m):"null";case "boolean":case "null":return String(m);
case "object":if(!m)return"null";j+=k;s=[];if(Object.prototype.toString.apply(m)==="[object Array]"){B=m.length;for(o=0;o<B;o+=1)s[o]=d(o,m)||"null";v=s.length===0?"[]":j?"[\n"+j+s.join(",\n"+j)+"\n"+w+"]":"["+s.join(",")+"]";j=w;return v}if(x&&typeof x==="object"){B=x.length;for(o=0;o<B;o+=1){q=x[o];if(typeof q==="string")if(v=d(q,m))s.push(c(q)+(j?": ":":")+v)}}else for(q in m)if(Object.hasOwnProperty.call(m,q))if(v=d(q,m))s.push(c(q)+(j?": ":":")+v);v=s.length===0?"{}":j?"{\n"+j+s.join(",\n"+j)+
"\n"+w+"}":"{"+s.join(",")+"}";j=w;return v}}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+b(this.getUTCMonth()+1)+"-"+b(this.getUTCDate())+"T"+b(this.getUTCHours())+":"+b(this.getUTCMinutes())+":"+b(this.getUTCSeconds())+"Z":h};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()}}var e=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
g=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,j,k,p={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},x;if(typeof a.stringify!=="function")a.stringify=function(n,u,o){var q;k=j="";if(typeof o==="number")for(q=0;q<o;q+=1)k+=" ";else if(typeof o==="string")k=o;if((x=u)&&typeof u!=="function"&&(typeof u!=="object"||typeof u.length!=="number"))throw Error("JSON.stringify");return d("",{"":n})};
if(typeof a.parse!=="function")a.parse=function(n,u){function o(v,B){var w,s,m=v[B];if(m&&typeof m==="object")for(w in m)if(Object.hasOwnProperty.call(m,w)){s=o(m,w);if(s!==undefined)m[w]=s;else delete m[w]}return u.call(v,B,m)}var q;n=String(n);e.lastIndex=0;if(e.test(n))n=n.replace(e,function(v){return"\\u"+("0000"+v.charCodeAt(0).toString(16)).slice(-4)});if(/^[\],:{}\s]*$/.test(n.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){q=eval("("+n+")");return typeof u==="function"?o({"":q},""):q}throw new SyntaxError("JSON.parse");}})(optimizely);function D(a){this.stack=Error().stack||"";if(a)this.message=String(a)}C(D,Error);function ca(a){for(var b=1;b<arguments.length;b++){var c=String(arguments[b]).replace(/\$/g,"$$$$");a=a.replace(/\%s/,c)}return a}var da=/^[a-zA-Z0-9\-_.!~*'()]*$/;function E(a){a=String(a);if(!da.test(a))return encodeURIComponent(a);return a};function ea(a,b){b.unshift(a);D.call(this,ca.apply(h,b));b.shift();this.Wb=a}C(ea,D);function fa(a,b){if(!a){var c=Array.prototype.slice.call(arguments,2),d="Assertion failed";if(b){d+=": "+b;var e=c}throw new ea(""+d,e||[]);}return a};var ga=Array.prototype,ha=ga.forEach?function(a,b,c){fa(a.length!=h);ga.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=A(a)?a.split(""):a,g=0;g<d;g++)g in e&&b.call(c,e[g],g,a)};function ia(a){for(var b=1;b<arguments.length;b++){var c=arguments[b],d;if(y(c)||(d=z(c))&&c.hasOwnProperty("callee"))a.push.apply(a,c);else if(d)for(var e=a.length,g=c.length,j=0;j<g;j++)a[e+j]=c[j];else a.push(c)}};function ja(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function ka(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};function la(a){if(typeof a.I=="function")return a.I();if(A(a))return a.split("");if(z(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return ja(a)}function ma(a,b,c){if(typeof a.forEach=="function")a.forEach(b,c);else if(z(a)||A(a))ha(a,b,c);else{var d;if(typeof a.P=="function")d=a.P();else if(typeof a.I!="function")if(z(a)||A(a)){d=[];for(var e=a.length,g=0;g<e;g++)d.push(g);d=d}else d=ka(a);else d=void 0;e=la(a);g=e.length;for(var j=0;j<g;j++)b.call(c,e[j],d&&d[j],a)}};function F(a){this.A={};this.j=[];var b=arguments.length;if(b>1){if(b%2)throw Error("Uneven number of arguments");for(var c=0;c<b;c+=2)this.T(arguments[c],arguments[c+1])}else if(a){if(a instanceof F){b=a.P();c=a.I()}else{b=ka(a);c=ja(a)}for(var d=0;d<b.length;d++)this.T(b[d],c[d])}}l=F.prototype;l.l=0;l.Va=0;l.I=function(){G(this);for(var a=[],b=0;b<this.j.length;b++)a.push(this.A[this.j[b]]);return a};l.P=function(){G(this);return this.j.concat()};l.H=function(a){return H(this.A,a)};
l.remove=function(a){if(H(this.A,a)){delete this.A[a];this.l--;this.Va++;this.j.length>2*this.l&&G(this);return f}return i};function G(a){if(a.l!=a.j.length){for(var b=0,c=0;b<a.j.length;){var d=a.j[b];if(H(a.A,d))a.j[c++]=d;b++}a.j.length=c}if(a.l!=a.j.length){var e={};for(c=b=0;b<a.j.length;){d=a.j[b];if(!H(e,d)){a.j[c++]=d;e[d]=1}b++}a.j.length=c}}l.get=function(a,b){if(H(this.A,a))return this.A[a];return b};l.T=function(a,b){if(!H(this.A,a)){this.l++;this.j.push(a);this.Va++}this.A[a]=b};
l.clone=function(){return new F(this)};function H(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var na=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function I(a,b){var c;if(a instanceof I){this.U(b==h?a.s:b);J(this,a.D);K(this,a.ga);L(this,a.M);M(this,a.S);N(this,a.R);O(this,a.t.clone());P(this,a.da)}else if(a&&(c=String(a).match(na))){this.U(!!b);J(this,c[1]||"",f);K(this,c[2]||"",f);L(this,c[3]||"",f);M(this,c[4]);N(this,c[5]||"",f);O(this,c[6]||"",f);P(this,c[7]||"",f)}else{this.U(!!b);this.t=new Q(h,this,this.s)}}l=I.prototype;l.D="";l.ga="";l.M="";l.S=h;l.R="";l.da="";l.ob=i;l.s=i;
l.toString=function(){if(this.p)return this.p;var a=[];this.D&&a.push(R(this.D,oa),":");if(this.M){a.push("//");this.ga&&a.push(R(this.ga,oa),"@");var b;b=this.M;b=A(b)?encodeURIComponent(b):h;a.push(b);this.S!=h&&a.push(":",String(this.S))}if(this.R){this.M&&this.R.charAt(0)!="/"&&a.push("/");a.push(R(this.R,pa))}(b=String(this.t))&&a.push("?",b);this.da&&a.push("#",R(this.da,qa));return this.p=a.join("")};
l.clone=function(){var a=this.D,b=this.ga,c=this.M,d=this.S,e=this.R,g=this.t.clone(),j=this.da,k=new I(h,this.s);a&&J(k,a);b&&K(k,b);c&&L(k,c);d&&M(k,d);e&&N(k,e);g&&O(k,g);j&&P(k,j);return k};function J(a,b,c){S(a);delete a.p;a.D=c?b?decodeURIComponent(b):"":b;if(a.D)a.D=a.D.replace(/:$/,"");return a}function K(a,b,c){S(a);delete a.p;a.ga=c?b?decodeURIComponent(b):"":b;return a}function L(a,b,c){S(a);delete a.p;a.M=c?b?decodeURIComponent(b):"":b;return a}
function M(a,b){S(a);delete a.p;if(b){b=Number(b);if(isNaN(b)||b<0)throw Error("Bad port number "+b);a.S=b}else a.S=h;return a}function N(a,b,c){S(a);delete a.p;a.R=c?b?decodeURIComponent(b):"":b;return a}function O(a,b,c){S(a);delete a.p;if(b instanceof Q){a.t=b;a.t.Aa=a;a.t.U(a.s)}else{c||(b=R(b,ra));a.t=new Q(b,a,a.s)}return a}function sa(a){return a.t}function P(a,b,c){S(a);delete a.p;a.da=c?b?decodeURIComponent(b):"":b;return a}
function S(a){if(a.ob)throw Error("Tried to modify a read-only Uri");}l.U=function(a){this.s=a;this.t&&this.t.U(a)};var ta=/^[a-zA-Z0-9\-_.!~*'():\/;?]*$/;function R(a,b){var c=h;if(A(a)){c=a;ta.test(c)||(c=encodeURI(a));if(c.search(b)>=0)c=c.replace(b,ua)}return c}function ua(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var oa=/[#\/\?@]/g,pa=/[\#\?]/g,ra=/[\#\?@]/g,qa=/#/g;function Q(a,b,c){this.z=a||h;this.Aa=b||h;this.s=!!c}
function T(a){if(!a.g){a.g=new F;if(a.z)for(var b=a.z.split("&"),c=0;c<b.length;c++){var d=b[c].indexOf("="),e=h,g=h;if(d>=0){e=b[c].substring(0,d);g=b[c].substring(d+1)}else e=b[c];e=decodeURIComponent(e.replace(/\+/g," "));e=U(a,e);a.add(e,g?decodeURIComponent(g.replace(/\+/g," ")):"")}}}l=Q.prototype;l.g=h;l.l=h;l.add=function(a,b){T(this);V(this);a=U(this,a);if(this.H(a)){var c=this.g.get(a);y(c)?c.push(b):this.g.T(a,[c,b])}else this.g.T(a,b);this.l++;return this};
l.remove=function(a){T(this);a=U(this,a);if(this.g.H(a)){V(this);var b=this.g.get(a);if(y(b))this.l-=b.length;else this.l--;return this.g.remove(a)}return i};l.H=function(a){T(this);a=U(this,a);return this.g.H(a)};l.P=function(){T(this);for(var a=this.g.I(),b=this.g.P(),c=[],d=0;d<b.length;d++){var e=a[d];if(y(e))for(var g=0;g<e.length;g++)c.push(b[d]);else c.push(b[d])}return c};
l.I=function(a){T(this);if(a){a=U(this,a);if(this.H(a)){var b=this.g.get(a);if(y(b))return b;else{a=[];a.push(b)}}else a=[]}else{b=this.g.I();a=[];for(var c=0;c<b.length;c++){var d=b[c];y(d)?ia(a,d):a.push(d)}}return a};l.T=function(a,b){T(this);V(this);a=U(this,a);if(this.H(a)){var c=this.g.get(a);if(y(c))this.l-=c.length;else this.l--}this.g.T(a,b);this.l++;return this};l.get=function(a,b){T(this);a=U(this,a);if(this.H(a)){var c=this.g.get(a);return y(c)?c[0]:c}else return b};
l.toString=function(){if(this.z)return this.z;if(!this.g)return"";for(var a=[],b=0,c=this.g.P(),d=0;d<c.length;d++){var e=c[d],g=E(e);e=this.g.get(e);if(y(e))for(var j=0;j<e.length;j++){b>0&&a.push("&");a.push(g);e[j]!==""&&a.push("=",E(e[j]));b++}else{b>0&&a.push("&");a.push(g);e!==""&&a.push("=",E(e));b++}}return this.z=a.join("")};function V(a){delete a.va;delete a.z;a.Aa&&delete a.Aa.p}l.clone=function(){var a=new Q;if(this.va)a.va=this.va;if(this.z)a.z=this.z;if(this.g)a.g=this.g.clone();return a};
function U(a,b){var c=String(b);if(a.s)c=c.toLowerCase();return c}l.U=function(a){if(a&&!this.s){T(this);V(this);ma(this.g,function(b,c){var d=c.toLowerCase();if(c!=d){this.remove(c);this.add(d,b)}},this)}this.s=a};l.extend=function(){for(var a=0;a<arguments.length;a++)ma(arguments[a],function(b,c){this.add(c,b)},this)};function W(a,b,c){if(typeof b!="undefined"){c=c||{};if(b===h){b="";c.m=-1}var d="";if(c.m&&(typeof c.m=="number"||c.m.toUTCString)){if(typeof c.m=="number"){d=new Date;d.setTime(d.getTime()+c.m*24*60*60*1E3)}else d=c.m;d="; expires="+d.toUTCString()}var e=c.path?"; path="+c.path:"",g=c.domain?"; domain="+c.domain:"";if(g==""){var j=document.location.hostname.split("."),k=j[j.length-1];if(j.length>1&&(k=="com"||k=="net"||k=="org"||k=="local"))g="; domain=."+j[j.length-2]+"."+j[j.length-1]}document.cookie=
[a,"=",encodeURIComponent(b),d,e,g,c.Xb?"; secure":""].join("")}else{b=[];if(document.cookie&&document.cookie!=""){c=document.cookie.split(";");for(d=0;d<c.length;d++){e=$j.trim(c[d]);e.substring(0,a.length+1)==a+"="&&b.unshift(decodeURIComponent(e.substring(a.length+1)))}}return b}}function X(a){a=W(a);return a.length==0?h:a[0]};function Z(a){return function(b){var c;if(c=typeof b==="object")a:{for(var d in{}){c=f;break a}c=i}if(c){c=h;for(var e in b)if(b.hasOwnProperty(e))c=a.call(this,e,b[e]);return c}else return a.apply(this,arguments)}};(function(a){a.ub=function(b){for(var c=0;c<b.length;c++){var d=b[c];switch(typeof d){case "string":if(d==="disable")a.q=f}}};a.ub(a.preset_optimizely);a.f=a.f||window.location.href;a.Na=i;a.L=i;a.q=a.q!==undefined&&a.q;a.wa=i;a.mb=i;a.host="optimizely.appspot.com";a.referrer=a.referrer||document.referrer;a.pa=i;a.J=f;a.za=[];a.ra=i;a.Ta=2E3;a.cb=50;eval("var $ = $j;");a.Ja=function(b){eval("var $j = $;");eval(b)};a.xa=function(){if(!a.Na){if(!window.OPTIMIZELY_TEST_MODULE){var b=$;b.fn.attr=Z(b.fn.attr);b.fn.css=
Z(b.fn.css)}a.i("start_time");a.la();a.zb();a.pa&&document.write('<script src="http://'+a.host+'/load_innie.js" type="text/javascript"><\/script>');a.Na=f;a.i("initialized")}};a.la=function(){a.all_experiments=a.parse(a.all_experiments_json);a.Ka={};a.qa={};for(var b in a.all_experiments){var c=a.all_experiments[b];a.Ka[c.experiment_id]=c;for(var d=0;d<c.variations.length;d++){var e=c.variations[d];a.qa[e.variation_id]=e}}a.N=h;a.active_experiments=[];a.ha=i;a.ib=i;a.Wa=i;a.jb=f;a.bb=[];a.ya=i;a.Ha=
i;a.e=[];a.B={};a.ta={};a.K={};a.X=W("optimizelyBuckets");a.Q=a.Q!=h?a.Q:a.X!=h;if(a.X&&a.X instanceof Array)for(b=0;b<a.X.length;b++){c=a.parse(a.X[b]);for(var g in c)a.B[g]=c[g]}else a.B=a.parse(a.Ub);b=sa(a.f instanceof I?a.f.clone():new I(a.f,void 0));a.F=b.get("optimizely_variation",h);if(a.F=="original")a.F=0;a.L=b.get("optimizely_debug")==="true";a.O=b.get("optimizely_experiment",h);a.q=a.q!==undefined?a.q:b.get("optimizely_disable")==="true";a.host=b.get("optimizely_host")||a.host;a.pa=b.get("optimizely_load_innie")===
"true";switch(b.get("optimizely_log")){case "false":a.J=i;break;case "true":a.J=f;break;default:a.J=a.is_localhost}a.o=i;a.V=a.F==h&&a.O==h||b.get("optimizely_force_tracking")=="true";a.Ra=!a.q;a.ra=b.get("optimizely_verbose_tracking")==="true";g={xa:function(){this.browser=this.Pa(this.db)||"unknown";this.version=this.Qa(navigator.userAgent)||this.Qa(navigator.appVersion)||"unknown";this.na=this.Pa(this.eb)||"unknown"},Pa:function(k){for(var p=0;p<k.length;p++){var x=k[p].u,n=k[p].vb;this.Ua=k[p].W||
k[p].k;if(x){if(x.indexOf(k[p].v)!=-1)return k[p].k}else if(n)return k[p].k}},Qa:function(k){var p=k.indexOf(this.Ua);if(p!=-1)return parseFloat(k.substring(p+this.Ua.length+1))},db:[{u:navigator.userAgent,v:"Chrome",k:"gc",W:"Chrome"},{u:navigator.vendor,v:"Apple",k:"safari",W:"Version"},{u:navigator.userAgent,v:"Firefox",k:"ff",W:"Firefox"},{vb:window.opera,k:"opera",W:"Opera"},{u:navigator.userAgent,v:"MSIE",k:"ie",W:"MSIE"},{u:navigator.userAgent,v:"Gecko",k:"mo",W:"rv"}],eb:[{u:navigator.userAgent,
v:"Windows Phone",k:"windows phone"},{u:navigator.userAgent,v:"iPhone",k:"iphone"},{u:navigator.userAgent,v:"iPod",k:"ipod"},{u:navigator.userAgent,v:"Android",k:"android"},{u:navigator.userAgent,v:"BlackBerry",k:"blackberry"}]};g.xa();a.h={};a.h.browser=g.browser;a.h.version=g.version;a.h.na=g.na;try{a.h.language=navigator.userLanguage||window.navigator.language;a.h.language=a.h.language.toLowerCase()}catch(j){a.h.language=""}a.gb=W("optimizelyDebugMode");a.Ga=b.get("optimizely_debug_mode");a.ua=
i;if(a.Ga=="true"){a.ua=f;W("optimizelyDebugMode","true")}else if(a.Ga=="false")W("optimizelyDebugMode","");else if(a.gb=="true")a.ua=f;a.za=a.ma()};a.zb=function(){a.N=X("optimizelyEndUserId");if(!a.N){a.N="oeu"+String((new Date).getTime())+"r"+String(Math.random());W("optimizelyEndUserId",a.N,{m:3650,path:"/"})}};a.toJSON=function(b){var c=h,d=h,e=h,g=h;if($.isFunction(Array.prototype.toJSON)){c=Array.prototype.toJSON;Array.prototype.toJSON=undefined}if($.isFunction(Array.toJSON)){d=Array.toJSON;
Array.toJSON=undefined}if($.isFunction(Object.prototype.toJSON)){e=Object.prototype.toJSON;Object.prototype.toJSON=undefined}if($.isFunction(Array.prototype.toJSON)){g=Object.toJSON;Object.toJSON=undefined}b=a.stringify(b);if($.isFunction(c))Array.prototype.toJSON=c;if($.isFunction(d))Array.toJSON=d;if($.isFunction(e))Object.prototype.toJSON=e;if($.isFunction(g))Object.toJSON=g;return b};a.Za=function(){if(a.Ra){a.i("begin_experiment");if(!a.mb){a.xb();a.Tb();a.wb()}a.i("begin_experiment_end")}};
a.xb=function(){if(typeof window.Xa!="undefined"){var b=a.Ka[window.Xa];typeof b!="undefined"&&a.Ea(b)}else for(var c in a.all_experiments){b=a.all_experiments[c];a.Bb(b)&&a.Ea(b)}};a.Bb=function(b){a.i("Deciding whether to run experiment "+b.experiment_id);var c=i,d=i,e="targeting matched.";if(a.O==b.experiment_id){c=f;e="URL params"}if(!c&&b.exp_status!="Running"){d=f;e="Experiment status is "+b.exp_status}if(!c&&!d){for(var g=i,j=0;j<b.url_matches.length;j++)if(!g&&a.ea(b.url_matches[j]))g=f;if(!g){d=
f;e="URL doesn't match"}}if(!c&&!d&&!a.G(b)){d=f;e="Returning/new mismatch"}if(!c&&!d&&!a.Y(b)){d=f;e="Brower mismatch"}if(!c&&!d&&!a.Z(b)){d=f;e="Cookie mismatch"}if(!c&&!d&&!a.ba(b)){d=f;e="Language mismatch"}if(!c&&!d&&!a.ka(b)){d=f;e="Referrer mismatch"}if(!c&&!d&&!a.ja(b)){d=f;e="Custom JS eval'd to false"}if(!c&&!d&&!a.aa(b)){d=f;e="Custom events mismatch"}if(d){a.i("NOT Running experiment "+b.experiment_id+" because "+e);return i}else{a.i("Running experiment "+b.experiment_id+" because "+e);
return f}};a.G=function(b){return b.visitor_type==="new"&&a.Q?i:b.visitor_type==="returning"&&!a.Q?i:f};a.Oa=function(b,c){if(b==h||b.length===0)return c!=h?c:f;for(var d=i,e=0;e<b.length;e++){if(b[e]==="any")d=f;if(a.h.na!=="unknown"&&b[e]==="mobile")d=f;if(a.h.na==="unknown"&&b[e].indexOf(a.h.browser)===0){var g=b[e].substr(a.h.browser.length);if(g===""||g<=a.h.version&&a.h.version<g+1)d=f}}return d};a.Y=function(b){var c=a.Oa(b.exclude_browser_matches,i);return a.Oa(b.browser_matches)&&!c};a.ba=
function(b){if(typeof b.language_matches!=="undefined"&&b.language_matches.length>0){for(var c=i,d=0;d<b.language_matches.length;d++){var e=b.language_matches[d];if(e==="any")c=f;else if(e===a.h.language)c=f;else if(e.indexOf("-")===-1)if(a.h.language.indexOf(e+"-")!==-1)c=f}if(!c)return i}return f};a.Z=function(b){if(b.targeting_cookie_name!=h&&b.targeting_cookie_name.length!==0){var c=i,d=X(b.targeting_cookie_name);if(d!==h)if(b.targeting_cookie_value!=h&&b.targeting_cookie_value.length!==0){if(d===
b.targeting_cookie_value)c=f}else c=f;return c}return f};a.ka=function(b){if(b.referring_url_matches==h||b.referring_url_matches.length===0)return f;for(var c=0;c<b.referring_url_matches.length;c++)if(a.pb(a.referrer,b.referring_url_matches[c].referring_url_match,b.referring_url_matches[c].referring_url_match_type))return f;return i};a.ja=function(b){b=b.targeting_javascript_condition;if(b!=h&&b.length>0)try{return eval(b)}catch(c){return i}return f};a.aa=function(b){var c=X("optimizelyCustomEvents")||
"{}";c=$.parseJSON(c);var d=b.targeting_custom_events||[],e=b.targeting_exclude_custom_events||[],g=d.length===0?f:i;$.each(c[a.account_id]||[],function(j,k){if($.inArray(k,e)!==-1)g=i;if($.inArray(k,d)!==-1)g=f});return g};a.Ca=["?","#"];a.Da=["http://www.","https://www.","http://","https://","www."];a.n=function(b,c){b=b.toLowerCase();if(c)for(var d=0;d<a.Ca.length;d++){var e=b.indexOf(a.Ca[d]);if(e>=0)b=b.substring(0,e)}for(d=b.charAt(b.length-1);d=="/"||d=="&"||d=="?";){b=b.substring(0,b.length-
1);d=b.charAt(b.length-1)}for(d=0;d<a.Da.length;d++){e=a.Da[d];if(b.indexOf(e)>=0)return b.substring(e.length)}return b};a.ea=function(b,c){c=c||a.f;switch(b.url_match_type){case "exact_match":var d=a.n(c),e=a.n(b.url_string);return d==e;case "regex":e=b.url_string;try{return Boolean(c.match(e))}catch(g){break}case "simple_match":d=a.n(c,f);e=a.n(b.url_string,f);return d===e;case "substring":d=a.n(c);e=a.n(b.url_string);return e!==""&&d.indexOf(e)>=0}return i};a.pb=function(b,c,d){d!=h||(d="exact_match");
switch(d){case "exact_match":return a.n(b)===a.n(c);case "regex":try{return Boolean(b.match(c))}catch(e){break}case "simple_match":return a.n(b,f)===a.n(c,f);case "substring":return a.n(b).indexOf(a.n(c))>=0}return i};a.Ea=function(b){a.active_experiments.push(b);if(a.F!=h)if(a.O==b.experiment_id||!a.O){a.ia(b,b.variations[a.F]);return}var c=a.B[b.experiment_id];if(c&&a.qa[c])a.ia(b,a.qa[c]);else{c=Math.floor(Math.random()*1E4)+1;for(var d=0;d<b.percentages.length;d++){c-=b.percentages[d];if(c<=0&&
b.percentages[d]>0){a.ia(b,b.variations[d]);return}}a.ia(b,b.variations[0])}};a.ia=function(b,c){if(typeof c!="undefined")if(!(b==h||c==h)){var d=b.experiment_id,e=c.variation_id;b.Vb=c;a.B[d]=e;for(var g=0;g<b.variations.length;g++)if(e==b.variations[g].variation_id){a.ta[d]=g;a.K[d]=b.variations[g].description}a.bb.push(e)}};a.ab=function(b,c,d){$(b).live(d,ba(a.trackEvent,c,"3",h))};a.ma=function(){var b=i,c=i;$.each(a.all_experiments,function(e,g){if(g.status==="Running"){var j=g.use_splunk;b=
b||!j;c=c||j}});var d=[];b&&d.push(a.tracking_host+"/tracking/event");c&&d.push("log.optimizely.com/event");return d};a.La=function(b,c,d){b="?event_type="+c+"&event_name="+encodeURIComponent(b)+"&account_id="+a.account_id+"&end_user_id="+a.N+"&bucket_map="+encodeURIComponent(a.toJSON(a.B))+"&t="+(new Date).getTime();if(d)b+="&triggered_events="+encodeURIComponent(a.toJSON(d));if(a.ra)b+="&verbose=true";return b};a.fb=function(b,c,d){for(var e=[],g=0;g<a.active_experiments.length;g++)e.unshift(a.active_experiments[g].experiment_id);
alert("Account ID:\n    "+a.account_id+"\nEnd User ID:\n    "+a.N+"\nTriggered events:\n    "+a.toJSON(d)+"\nActive Experiments:\n    "+a.toJSON(e)+"\nBucket Map:\n    "+a.toJSON(a.B)+"\nEvent type:\n    "+c+"\nEvent name:\n    "+b+"\n")};a.Qb=function(){var b=a.nb();a.trackEvent(document.location.href,"1",b)};a.Sb=function(b){var c=X("optimizelyCustomEvents")||"{}";c=$.parseJSON(c);var d=c[a.account_id]||(c[a.account_id]=[]);$.inArray(b,d)!==-1&&d.splice($.inArray(b,d),1);d.push(b);d.length>10&&
d.shift();c[a.account_id]=d;b=0;d=h;var e=0,g;for(g in c)if(c.hasOwnProperty(g)){b++;if(c[g].length>e&&g!==a.account_id){d=g;e=c[g].length}}b>10&&delete c[d];customEventCookieString=a.toJSON(c);W("optimizelyCustomEvents",customEventCookieString,{m:3650,path:"/"})};a.trackEvent=function(b,c,d){if(a.V){b=b||"custom_event";c=c||"3";if(c==="3"||c===3)a.Sb(b);if(a.ua)a.fb(b,c,d);else if(!window.OPTIMIZELY_TEST_MODULE){var e=document.location.protocol+"//";b=a.La(b,c,d);for(c=0;c<a.za.length;++c)(new Image).src=
e+a.za[c]+b}}};a.Pb=function(){a.V&&$("html").live("mousedown",function(){if(!a.Ha){a.trackEvent("engagement",4);a.Ha=f}})};a.nb=function(b){var c={};if(typeof b=="undefined")currentUrl=window.location.href;$.each(a.all_experiments,function(d,e){if(!e.Zb&&e.status=="Running"){var g=[];$.each(e.goals,function(j,k){var p={url_string:k.url};if(k.type==7)p.url_match_type="regex";else if(k.type==8)p.url_match_type="substring";else if(k.type==9)p.url_match_type="exact_match";a.ea(p,b)&&g.push(k.label)});
if(g.length>0)c[e.experiment_id]=g}});return c};a.Ya=RegExp(/^\$j\(["|']([^"']+)["|']\)\..+;\s*$/);a.sa=function(b){if(typeof b=="undefined")b=f;for(var c=0;c<a.active_experiments.length;c++){if(a.ha||a.e.length==0||a.ya||a.Wa&&!a.wa)return;for(;a.kb(););if(a.o){a.i("Redirect detected.");if(a.fa()){a.Ab();a.Ia()}else{a.i("Redirect blocked.");a.ya=f}return}if(a.ib||a.jb&&a.wa){a.Ia();return}}b&&setTimeout(a.sa,a.cb)};a.Ia=function(){var b=[];a.i("evaluating all changes at once");$.each(a.e,function(d,
e){if(typeof e==="string")b.push(e);else if($.isFunction(e))try{e.call()}catch(g){}});try{a.Ja(b.join("\n"))}catch(c){}a.e=[];a.ha=f};a.kb=function(b){if(a.e.length==0){a.ha=f;return i}b=a.e[0];if(typeof b==="string")return a.lb(b);else if($.isFunction(b)){b.call();a.e.shift();return f}return i};a.ca=function(b){if(b.indexOf("_optimizely_redirect")>=0){a.o=f;if(b.indexOf("=force")>=0)return f;if(a.e.length>=2&&typeof a.e[1]==="string")b=a.e[1]}if(b=b.match(/location.replace\((.*)\)/)){a.o=f;if(b.length>
1)a.C=eval(b[1])}return a.o};a.lb=function(b){if(a.ca(b))return i;if(b==""){a.e.shift();return f}var c=a.Ya.exec(b);if(!c||c.length<=1||b.lastIndexOf("$j")!=0){a.i("this doesn't look like jquery. waiting till domReady.");a.Wa=f;return i}c=c[1];var d=h;try{a.i("trying to eval selector: "+c);d=$(c)}catch(e){}if(d==h)return i;if(typeof d.length=="number"&&(d.length==0||d[0]==h)){a.i("Element not ready, returning to stack: "+c);return i}else try{a.i("evaluating statement: "+b);a.Ja(b);a.e.shift();return f}catch(g){}return i};
a.hb=function(){a.i("dom_ready");a.wa=f;if(a.Ra){a.sa();a.Qb();a.Pb()}a.i("dom_ready_end");setTimeout(function(){a.tb()},a.Ta+1E3);a.ha||setTimeout(a.Cb,a.Ta);if(a.L){var b="Snippet implemented correctly: true\n\nActive experiments:";$.each(a.active_experiments,function(c,d){b+="\n-"+d.description;var e=d.variations[a.F];if(e)b+="\n--Variation: "+e.description});alert(b)}};a.wb=function(){a.i("run_variations");for(var b=0;b<a.active_experiments.length;b++){var c=a.active_experiments[b];c.custom_html!=
""&&a.e.push('$("body").optimizely_custom_html(optimizely.active_experiments['+b+"].custom_html);");c.custom_css!=""&&a.e.push('$("body").optimizely_custom_css(optimizely.active_experiments['+b+"].custom_css);");c.custom_js!=""&&a.e.push('$("body").optimizely_custom_js(optimizely.active_experiments['+b+"].custom_js);");if(c.tracked_elements!=""){var d=$.parseJSON(c.tracked_elements);$.each(d,function(e,g){$.each(g,function(j,k){a.e.push(function(){a.ab(e,k,j)})})})}c=a.qa[a.B[c.experiment_id]].js_component.split("\n");
for(d=0;d<c.length;d++)a.e.push(c[d])}a.sa()};a.Cb=function(){a.i("stopping evaling changes");a.ya=f};a.Tb=function(){a.i("Updating bucket cookie");if(a.V){var b=a.toJSON(a.B);W("optimizelyBuckets",b,{m:3650,path:"/"});a.i("Done updating bucket cookie: "+b)}};a.Ab=function(){var b=new Date;b.setTime(b.getTime()+12E4);W("optimizelyRedirect",window.location.href,{m:b})};a.fa=function(){if(a.C==a.f)return i;return W("optimizelyRedirect")==""||decodeURIComponent(W("optimizelyRedirect"))==a.f};a.Fa=function(){W("optimizelyRedirect",
"",{})};a.i=function(b){if(a.J){if(!a.recorded_times||a.recorded_times.length==0){a.recorded_times=[];a.oa=[]}a.oa.push(b);b=new Date;a.recorded_times.length==0?a.recorded_times.push(b.getTime()):a.recorded_times.push(b.getTime()-a.recorded_times[0])}};a.tb=function(){if(a.J)if(a.oa&&typeof console!="undefined")for(var b=0;b<a.oa.length;b++){var c=a.oa[b]+": "+a.recorded_times[b];if(window.console.L)window.console.L(c);else window.console.log&&window.console.log(c)}};a.push=function(b){if(b==="disable")a.q=
f};a.$a=function(){if(a.V&&a.active_experiments.length>0)for(var b=a.Ma(),c=0;c<b.length;c++){var d=b[c];eval("_gaq.push(['_setCustomVar',"+d[0]+",'"+d[1]+"','"+d[2]+"',2]);")}};a.w=function(b,c){return b.replace(/[^a-zA-Z0-9\.\~\!\*\(\)\']+/g,"_").substring(0,c)};a.Ma=function(){for(var b=[],c=0;c<a.active_experiments.length;c++){var d=a.active_experiments[c],e=d.google_analytics_slot;if(d.google_analytics=="custom_variables"&&e){var g=a.w("Optimizely_"+d.description,28);d=a.w(a.K[d.experiment_id].replace("#",
""),24);b.push([e,g,d])}}return b};a.xa();a.Za();a.$a();$(document).ready(function(){a.hb()});r("optimizely.variation_map",a.ta,void 0);r("optimizely.variationMap",a.ta,void 0);r("optimizely.variationNamesMap",a.K,void 0)})(optimizely);
})();

