var vwo_$=vwo_$||jQuery||$,_vis_opt_server_url=("https:"==document.location.protocol?"https://":"http://")+"dev.visualwebsiteoptimizer.com/",_vis_opt_experiment_ready=!1,_vis_opt_combination_chosen="",_vis_opt_swap_timeout;if(typeof _vwo_exp_ids=="undefined")var _vwo_exp_ids=[],_vwo_exp={};var _vwo_clicks=0,_vwo_api_section_callback={};typeof _vis_opt_domain=="undefined"&&(_vis_opt_domain=_vis_opt_tld(document.URL));
function _vis_opt_pause(a){for(var b=new Date,a=b.getTime()+a;b.getTime()<a;)b=new Date}function _vis_opt_to_abs_url(a){var b=location,e,d;if(/^\w+:/.test(a))return a;e=b.protocol+"//"+b.host;if(a.indexOf("/")==0)return e+a;b=b.pathname.replace(/\/[^\/]*$/,"");if(d=a.match(/\.\.\//g)){a=a.substring(d.length*3);for(d=d.length;d--;)b=b.substring(0,b.lastIndexOf("/"))}return e+b+"/"+a}
function _vis_opt_regex_escape(a){if(!arguments.callee.sRE)arguments.callee.sRE=RegExp("(\\/|\\.|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\)","g");return a.replace(arguments.callee.sRE,"\\$1")}function _vis_opt_object_size(a){var b=0,e;for(e in a)a.hasOwnProperty(e)&&b++;return b}
function _vis_opt_remove_www(a,b){typeof b=="undefined"&&(b=!1);a=a.toLowerCase();(matches=a.match(/(http.?):\/\/(www\.)?(.*)/))&&matches.length==4&&(a=matches[1]+"://"+matches[3]);b&&(a=a.replace(/(^\*?|\/\/)www\./i,"$1"));return a}function _vis_opt_clean_url(a,b){typeof b=="undefined"&&(b=!1);return typeof _vis_opt_url!="undefined"&&!b?_vis_opt_url:a=a.replace(/^(.*[^\*])(\/(home|default|index)\..{3,4})(\?.*)*$/i,"$1$4")}
function _vis_opt_current_url(){if(typeof _vis_opt_url!="undefined")return _vis_opt_url;var a=window.location.href,b=a.indexOf(window.location.hash)||a.length,a=a.substr(0,b),a=a.replace(/^(.*)(\?_vis_test_id=\d+.*)$/,"$1"),a=a.replace(/^(.*)(&_vis_test_id=\d+.*)$/,"$1");a.slice(-1)=="/"&&(a=a.slice(0,-1));return a}
function _vis_opt_match_wildcard(a,b,e){typeof e=="undefined"&&(e=!1);b.indexOf("?")==-1&&b.indexOf("=")==-1&&(a=a.replace(/^(.*)(\?.*)$/,"$1"));a.charAt(a.length-1)=="/"&&(a=a.substring(0,a.length-1));b.charAt(b.length-1)=="/"&&(b=b.substring(0,b.length-1),b=b.replace(/\/\?/,"?"));var d="^"+_vis_opt_regex_escape(b).replace(/\*/g,"(.*)")+"$";if(RegExp(d,"gi").test(a))return e?RegExp(d,"gi").exec(a):!0;else if(a=_vis_opt_remove_www(a),b=_vis_opt_remove_www(b,1),d="^"+_vis_opt_regex_escape(b).replace(/\*/g,
"(.*)")+"$",RegExp(d,"gi").test(a))return e?RegExp(d,"gi").exec(a):!0;else{if(b.search(/\*/)==-1&&(d=_vis_opt_remove_www(_vis_opt_to_abs_url(a)),d==b||d==_vis_opt_clean_url(b,1)))return!0;a=_vis_opt_clean_url(a);b=_vis_opt_clean_url(b,1);d="^"+_vis_opt_regex_escape(b).replace(/\*/g,"(.*)")+"$";return RegExp(d,"gi").test(a)?e?RegExp(d,"gi").exec(a):!0:!1}}
function _vis_opt_createCookie(a,b,e,d){if(e){var f=new Date;f.setTime(f.getTime()+e*864E5);f="; expires="+f.toGMTString()+";"}else f=";";domain=typeof _vis_opt_domain!="undefined"?" domain=."+_vis_opt_domain+";":";";document.cookie=a+"="+encodeURIComponent(b)+f+" "+domain+" path=/";typeof d!="undefined"&&_vwo_exp[d].multiple_domains&&_vis_opt_third_party(a,b,e)}
function _vis_opt_third_party(a,b,e){typeof _vwo_acc_id!="undefined"&&(url=_vis_opt_server_url+"ping_tpc.php?account="+_vwo_acc_id+"&name="+escape(a)+"&value="+escape(b)+"&days="+e+"&random="+Math.random(),/MSIE (\d+\.\d+);/.test(navigator.userAgent)?vwo_$("#vwo_iframe").attr("src",url):vwo_$("#vwo_form").attr("action",url).submit())}
function _vis_opt_readCookie(a){a+="=";for(var b=document.cookie.split(";"),e=0;e<b.length;e++){for(var d=b[e];d.charAt(0)==" ";)d=d.substring(1,d.length);if(d.indexOf(a)==0)return decodeURIComponent(d.substring(a.length,d.length))}return null}function _vis_opt_cookie_enabled(){_vis_opt_createCookie("_vis_opt_test_cookie","1");return _vis_opt_readCookie("_vis_opt_test_cookie")?!0:!1}function _vis_opt_remove_id(a){(a=document.getElementById(a))&&a!=null&&a.parentNode.removeChild(a)}
var _vwo_s=function(){var a=navigator,b=document,e=a.userAgent,d=a.vendor,f=b.createElement("a"),g=e.toLowerCase(),h=a.appVersion,l=[{s:e,sS:"Chrome",i:"Chrome"},{s:a.vendor,sS:"Apple",i:"Safari"},{p:window.opera,i:"Opera"},{s:a.vendor,sS:"KDE",i:"Konqueror"},{s:e,sS:"Firefox",i:"Firefox"},{s:e,sS:"Netscape",i:"Netscape"},{s:e,sS:"MSIE",i:"Explorer"}],j=[{s:"search.yahoo.com/",p:"p",i:1},{s:"http://www.google.",p:"q",i:2},{s:"http://www.bing.com/",p:"q",i:3},{s:".ask.com/",p:"q",i:4},{s:"http://altavista.com/",
p:"q",i:5},{s:"http://www.search.com/",p:"q",i:6},{s:"http://www.baidu.com/",p:"wd",i:7},{s:"http://search.aol.com/",p:"q",i:8}];return{ce:function(){return a.cookieEnabled},U:function(){return b.URL},R:function(){return b.referrer},ks:function(){return this.R()!=""?f.search:""},ors:function(){for(c=0;c<j.length;c++)if(this.R().indexOf(j[c].s)!=-1)return j[c].i;return 0},rt:function(){return this.ors()?"org":this.R()?"ref":"dir"},k:function(){if(this.ors()){var a=RegExp("[\\?&]"+j[this.ors()].p+"=([^&#]*)").exec(this.R());
if(a!=null)return a[1].split("+").join(" ")}return""},gC:function(a){if(b.cookie.length>0&&(cs=b.cookie.indexOf(a+"="),cs!=-1)){cs=cs+a.length+1;ce=b.cookie.indexOf(";",cs);if(ce==-1)ce=b.cookie.length;return unescape(b.cookie.substring(cs,ce))}return""},T:function(){return(d=this.gC("_vis_opt_s"))?(ses=parseInt(d.split("|")[0]),ses>1?"ret":"new"):"new"},qP:function(a){a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");regex=RegExp("[\\?&]"+a+"=([^&#]*)");return(results=regex.exec(this.U()))?results[1]:
""},f_in:function(a,b){return a.toLowerCase()==b.toLowerCase()},f_nin:function(a,b){return!this.f_in(a,b)},f_cs:function(a,b){return a==b},f_ncs:function(a,b){return!this.f_cs(a,b)},f_re_i:function(a,b){re=RegExp(b,"i");return a.match(re)?!0:!1},f_re_s:function(a,b){re=RegExp(b);return a.match(re)?!0:!1},f_con:function(a,b){return a.toLowerCase().indexOf(b.toLowerCase())>-1?!0:!1},f_d_con:function(a,b){return!this.f_con(a,b)},f_b:function(a){return a?!1:!0},f_n_b:function(a,b){return!this.f_b(a,b)},
f_e:function(a,b){if(typeof b=="object"){for(i=0;i<b.length;i++)if(this.f_in(a,b[i]))return!0;return!1}else return this.f_in(a,b)},wk:function(){return g.search("webkit")>-1?!0:!1},de:function(){return g.search("ipod")>-1?"ipod":g.search("ipad")>-1&&this.wk()?"ipad":g.search("iphone")>-1?"iphone":g.search("android")>-1?"android":g.search("googletv")>-1?"googletv":g.search("symbian")>-1||g.search("series60")>-1||g.search("series70")>-1||g.search("series80")>-1||g.search("series90")>-1?"symbian":g.search("blackberry")>
-1||g.search("vnd.rim")>-1?"blackberry":""},os:function(){if(h.indexOf("Win")!=-1)return"windows";if(h.indexOf("Mac")!=-1)return"macOS";if(h.indexOf("X11")!=-1)return"unix";if(h.indexOf("Linux")!=-1)return"linux"},b:function(){return this.sS(l)||""},sS:function(a){for(var b=0;b<a.length;b++){var d=a[b].s,e=a[b].p;if(d){if(d.indexOf(a[b].sS)!=-1)return a[b].i}else if(e)return a[b].i}},jv:function(a){return window[a]},ua:function(){return e}}};
_vwo_s().gC("_vis_opt_test_cookie")||((v=_vwo_s().gC("_vis_opt_s"))?(ses=parseInt(v.split("|")[0]),_vis_opt_createCookie("_vis_opt_s",ses+1+"|",100)):_vis_opt_createCookie("_vis_opt_s","1|",100));_vis_opt_createCookie("_vis_opt_test_cookie",1);
function _vis_opt_is_split(a){var b=_vis_opt_preview_combination(a);if(_vwo_exp[a].type=="SPLIT_URL"&&(_vwo_exp[a].status=="RUNNING"||b)){var e=_vis_opt_readCookie("_vis_opt_exp_"+a+"_split"),d=0;if(e&&_vis_opt_match_wildcard(_vis_opt_current_url(),_vwo_exp[a].sections[1].variations[e])){combination=_vis_opt_readCookie("_vis_opt_exp_"+a+"_combi");if(!combination&&!b){if(typeof(_vwo_exp[a].sections["1"].segment!="undefined")&&typeof(_vwo_exp[a].sections["1"].segment[e]!="undefined")&&!eval(_vwo_exp[a].sections["1"].segment[e]))return;
d=1;_vis_opt_register_hit(e,a);_vis_opt_createCookie("_vis_opt_exp_"+a+"_combi",e,100,a)}else return!0;return d==0?!1:!0}}return!1}function _vis_opt_eligible(a){if(_vis_opt_preview_combination(a))return!0;if(_vis_opt_readCookie("_vis_opt_exp_"+a+"_combi"))return!0;typeof _vwo_exp[a].segment_eligble=="undefined"&&eval("_vwo_exp['"+a+"'].segment_eligble = "+_vwo_exp[a].segment_code);return _vwo_exp[a].segment_eligble}
function _vis_opt_tld(a){url_pieces=a.split("/");domain=url_pieces[2];domain_pieces=domain.split(".");return top_level_domain=domain_pieces[domain_pieces.length-2]&&(domain_pieces[domain_pieces.length-2]=="co"||domain_pieces[domain_pieces.length-2]=="org"||domain_pieces[domain_pieces.length-2]=="com")?domain_pieces[domain_pieces.length-3]+"."+domain_pieces[domain_pieces.length-2]+"."+domain_pieces[domain_pieces.length-1]:domain_pieces[domain_pieces.length-2]+"."+domain_pieces[domain_pieces.length-
1]}function isBot(){return typeof navigator.userAgent!="undefined"&&navigator.userAgent.toLowerCase().indexOf("bot")>-1?!0:!1}
function _vis_opt_top_initialize(){var a,b;if(_vis_opt_cookie_enabled()&&!isBot()){for(var e=0;e<_vwo_exp_ids.length;e++){b=_vwo_exp_ids[e];_vwo_exp[b].multiple_domains&&vwo_$("#vwo_iframe").length==0&&(vwo_$("<form>",{action:_vis_opt_server_url+"ping_tpc.php",target:"vwo_iframe",enctype:"application/x-www-form-urlencoded",method:"post",id:"vwo_form",style:"display:none"}).appendTo("head"),vwo_$("<iframe>",{src:_vis_opt_server_url+"ping_tpc.php",height:"1px",width:"1px",border:"0",id:"vwo_iframe",
name:"vwo_iframe",style:"position: absolute; left: -2000px; display: none"}).appendTo("head"));typeof _vwo_exp[b].third_party_exclude!="undefined"&&_vis_opt_createCookie("_vis_opt_exp_"+b+"_exclude","1",100);typeof _vwo_exp[b].third_party_combi!="undefined"&&_vis_opt_createCookie("_vis_opt_exp_"+b+"_combi",_vwo_exp[b].third_party_combi,100);if(typeof _vwo_exp[b].third_party_goals!="undefined")for(a=0;a<_vwo_exp[b].third_party_goals.length;a++)_vis_opt_createCookie("_vis_opt_exp_"+b+"_goal_"+_vwo_exp[b].third_party_goals[a],
"1",100);if(typeof _vwo_exp[b].third_party!=="undefined")for(a=1;a<=_vis_opt_object_size(_vwo_exp[b].third_party);a++)_vis_opt_createCookie(_vwo_exp[b].third_party[a].name,_vwo_exp[b].third_party[a].value,100);to_include=_vis_opt_readCookie("_vis_opt_exp_"+b+"_combi");_vwo_exp[b].ready=!1;if(!_vis_opt_readCookie("_vis_opt_exp_"+b+"_exclude")||_vis_opt_preview_combination(b)){for(_vwo_goal_id in _vwo_exp[b].goals)isNaN(parseInt(_vwo_goal_id))||_vwo_exp[b].goals[_vwo_goal_id].type=="SEPARATE_PAGE"&&
_vis_opt_match_wildcard(_vis_opt_current_url(),_vwo_exp[b].goals[_vwo_goal_id].url)&&_vis_opt_register_conversion(_vwo_goal_id,b);if(_vis_opt_is_split(b))_vwo_exp[b].ready=!0;else if(Math.random()>_vwo_exp[b].pc_traffic/100&&_vis_opt_preview_combination(b)==!1&&!to_include)_vis_opt_createCookie("_vis_opt_exp_"+b+"_exclude","1",100,b);else if(_vis_opt_eligible(b)||to_include)if(_vwo_exp[b].type=="SPLIT_URL"&&_vis_opt_do_experiment_here(b)&&(_vwo_exp[b].status=="RUNNING"||_vis_opt_preview_combination(b)))_vwo_exp[b].ready=
!0,_vis_opt_split_url(b);else{if(_vwo_exp[b].type!="SPLIT_URL"&&_vis_opt_do_experiment_here(b)&&(_vwo_exp[b].status=="RUNNING"||_vis_opt_preview_combination(b))){_vis_opt_combination_chosen=_vis_opt_preview_combination(b);_vwo_exp[b].combination_chosen=_vis_opt_combination_chosen;if(!_vwo_exp[b].combination_chosen)_vwo_exp[b].combination_chosen=_vis_opt_readCookie("_vis_opt_exp_"+b+"_combi");if(!_vwo_exp[b].combination_chosen)_vwo_exp[b].combination_chosen=_vis_opt_choose_combination(b);if(!_vwo_exp[b].combination_chosen)continue;
vwo_$("#vwo_temp").length==0&&vwo_$("head").append("<span style='display:none' id='vwo_temp'></span>");if(_vwo_exp[b].type=="VISUAL_AB"&&_vwo_exp[b].combination_chosen!="1"){a=vwo_$.parseJSON(_vwo_exp[b].sections["1"].variations[_vwo_exp[b].combination_chosen]);for(var d=0;d<a.length;d++)document.write("<style class='_vis_opt_hidden'>"+a[d].xpath+" { visibility: hidden } </style>")}else for(d=1;d<=_vis_opt_object_size(_vwo_exp[b].sections);d++)document.write("<style class='_vis_opt_hidden'>"+_vwo_exp[b].sections[d].path+
" { visibility: hidden } </style>");_vis_opt_element_loaded(b)}if(_vis_opt_do_experiment_here(b)&&(_vwo_exp[b].status=="RUNNING"||_vis_opt_preview_combination(b)))_vwo_exp[b].ready=!0}}}_vis_opt_legacy_variables_set()}}function _vis_opt_element_loaded(a){_vis_opt_bottom_render_combination(_vwo_exp[a].combination_chosen,a);_vwo_exp[a].timeout=setTimeout("_vis_opt_element_loaded("+a+")",50)}
function _vis_opt_do_experiment_here(a){var b=typeof _vis_opt_url=="undefined"?document.URL:_vis_opt_url;if(typeof _vis_opt_settings_loaded=="undefined")return!1;return _vwo_exp[a].exclude_url&&(pattern_to_match=RegExp(_vwo_exp[a].exclude_url,"gi"),pattern_to_match.test(b))?!1:_vis_opt_match_wildcard(_vis_opt_current_url(),_vwo_exp[a].url_pattern)}
function _vis_opt_register_conversion(a,b,e){e=typeof e=="undefined"?"":"&r="+e;typeof a=="undefined"&&(a=1);typeof b=="undefined"&&(b=_vwo_exp_ids[0]);if(!_vis_opt_readCookie("_vis_opt_exp_"+b+"_goal_"+a)&&_vis_opt_readCookie("_vis_opt_exp_"+b+"_combi")){var d=_vis_opt_readCookie("_vis_opt_exp_"+b+"_combi");vwo_$.getJSON(_vis_opt_server_url+"log_conversion.php?experiment_id="+b+"&account_id="+_vwo_acc_id+"&goal_id="+a+"&combination="+d+e+"&jsoncallback=?",function(){});_vis_opt_createCookie("_vis_opt_exp_"+
b+"_goal_"+a,"1",100,b)}}function _vis_opt_preview_combination(){var a=window.location.href;return a.match(/.*_vis_opt_preview_combination=(.*)$/)?a.replace(/.*_vis_opt_preview_combination=(.*)$/,"$1"):!1}
function _vis_opt_choose_combination(a){if(typeof _vwo_exp[a].combination_chosen!="undefined"&&_vwo_exp[a].combination_chosen)return _vwo_exp[a].combination_chosen;var b={},e=0,d;for(d in _vwo_exp[a].combs)if(!isNaN(parseFloat(_vwo_exp[a].combs[d]))&&(!(_vwo_exp[a].type=="VISUAL_AB"||_vwo_exp[a].type=="SPLIT_URL")||!(typeof _vwo_exp[a].sections["1"].segment!=="undefined"&&typeof(_vwo_exp[a].sections["1"].segment[d]!="undefined"))||eval(_vwo_exp[a].sections["1"].segment[d])))b[d]=e+_vwo_exp[a].combs[d],
e+=_vwo_exp[a].combs[d];var f=Math.random();e>0&&e!=1&&(f*=e);for(d in b)if(!isNaN(parseFloat(_vwo_exp[a].combs[d]))&&f<=b[d])return d;return!1}
function _vis_opt_redirect_to(a,b){var e=_vis_opt_match_wildcard(_vis_opt_current_url(),_vwo_exp[a].url_pattern,!0);if(!e||e.length==1)to_redirect=b;else{to_redirect="";var d=b.split("*");for(i=1;i<d.length;i++)to_redirect+=d[i-1]+e[i];to_redirect+=d[d.length-1]}to_redirect=to_redirect.replace(/\*/g,"");if(document.URL.indexOf("?")!=-1)if(to_redirect.indexOf("?")==-1)params=document.URL.replace(/^(.*)(\?.*)$/,"$2"),to_redirect+=params;else for(k in from_url_vars=_vis_opt_getUrlVars(document.URL),
to_url_vars=_vis_opt_getUrlVars(to_redirect),from_url_vars)typeof to_url_vars[k]=="undefined"&&(to_redirect+="&"+k+"="+from_url_vars[k]);document.URL.indexOf("#")!=-1&&to_redirect.indexOf("#")==-1&&(params=document.URL.replace(/^(.*)(#.*)$/,"$2"),to_redirect+=params);window.location.replace(to_redirect)}
function _vis_opt_getUrlVars(a){var b={};a.indexOf("#")!=-1&&(a=a.slice(0,a.indexOf("#")));for(var e=a.slice(a.indexOf("?")+1).split("&"),d=0;d<e.length;d++)a=e[d].split("="),b[a[0]]=a[1];return b}
function _vis_opt_split_url(a){var b=_vis_opt_preview_combination(a);b||(b=_vis_opt_readCookie("_vis_opt_exp_"+a+"_combi"));if(b){if(!(b.split(",").length>1||isNaN(parseInt(b.split(",")[0])))){var e=parseInt(b.split(",")[0]);e!=1&&(document.write("<style class='_vis_opt_hidden'> body { visibility: hidden } </style>"),_vis_opt_createCookie("_vis_opt_exp_"+a+"_split",b,100,a),_vis_opt_redirect_to(a,_vwo_exp[a].sections[1].variations[e]))}}else if(b=_vis_opt_choose_combination(a))e=parseInt(b.split(",")[0]),
_vwo_exp[a].multiple_domains&&e!=1?(_vis_opt_createCookie("_vis_opt_exp_"+a+"_split",b,100,a),vwo_$("#vwo_iframe").bind("load",function(){_vis_opt_redirect_to(a,_vwo_exp[a].sections[1].variations[e])})):e!=1?(_vis_opt_createCookie("_vis_opt_exp_"+a+"_split",b,100,a),_vis_opt_redirect_to(a,_vwo_exp[a].sections[1].variations[e])):_vis_opt_preview_combination(a)||(_vis_opt_register_hit(b,a),_vis_opt_createCookie("_vis_opt_exp_"+a+"_combi",b,100,a))}
function _vis_opt_get_XPath(a,b){b=b||[];if(b.length==0&&a.id)return b.push("#"+a.id),b;a.parentNode&&(b=_vis_opt_get_XPath(a.parentNode,b));if(a.previousSibling){var e=1,d=a.previousSibling;do vwo_$(d).is("._vwo_variation")||d.nodeType==1&&e++,d=d.previousSibling;while(d);e==1&&(e=null)}else if(a.nextSibling){d=a.nextSibling;do vwo_$(d).is("._vwo_variation")?d=d.previousSibling:d.nodeType==1?(e=1,d=null):(e=null,d=d.previousSibling);while(d)}if(a.nodeType==1){typeof e=="undefined"&&(e=1);e<1&&(e=
1);d="";d=[];if(a.nodeName.toLowerCase()=="html"||a.nodeName.toLowerCase()=="body")d=a.nodeName.toLowerCase();else if(a.id)d=a.nodeName.toLowerCase()+"#"+a.id;else{d.push("*:first-child");for(var f=2;f<=e;f++)f==e?d.push(a.nodeName.toLowerCase()):d.push("*");d=d.join("+")}b.push(d)}return b}
function _vis_opt_monitor_clicks(){vwo_$("*").live("click",function(a){for(var b,e=!1,d,f=0;f<_vwo_exp_ids.length;f++)if(d=_vwo_exp_ids[f],_vwo_exp[d].status=="RUNNING"){if(_vwo_exp[d].clickmap){_vwo_clicks++;if(this.tagName.toLowerCase()=="a"||vwo_$(this).parents("a").length>0)e=!0;combination=_vis_opt_readCookie("_vis_opt_exp_"+d+"_combi");x=a.pageX-vwo_$(this).offset().left;y=a.pageY-vwo_$(this).offset().top;x_percent=Math.round(1E3*x/vwo_$(this).width())/1E3;y_percent=Math.round(1E3*y/vwo_$(this).height())/
1E3;if(x_percent<0||x_percent>1)x_percent=0.5;if(y_percent<0||y_percent>1)y_percent=0.5;combination&&_vwo_clicks<=3&&vwo_$.getJSON(_vis_opt_server_url+"log_clickmap.php?experiment_id="+d+"&account_id="+_vwo_acc_id+"&combination="+combination+"&url="+encodeURIComponent(document.URL)+"&path="+encodeURIComponent(_vis_opt_get_XPath(this).join(">"))+"&x="+x_percent+"&y="+y_percent+"&jsoncallback=?",function(){})}if(this.tagName.toLowerCase()!="a")if(vwo_$(this).parents("a").length>0)_vwo_goal_url=vwo_$(vwo_$(this).parents("a")[0]).attr("href");
else continue;else _vwo_goal_url=vwo_$(this).attr("href");typeof _vwo_goal_url=="undefined"&&(_vwo_goal_url="");for(b in _vwo_exp[d].goals)if(!isNaN(parseInt(b))&&(_vwo_exp[d].goals[b].type=="ON_PAGE"||_vwo_exp[d].goals[b].type=="ENGAGEMENT")&&_vis_opt_match_wildcard(_vwo_goal_url,_vwo_exp[d].goals[b].url))e=!0,_vis_opt_register_conversion(b,d)}e&&_vwo_goal_url.indexOf("javascript:")==-1&&_vwo_goal_url.charAt(0)!="#"&&_vis_opt_pause(500);return!0})}
function _vis_opt_monitor_submissions(){vwo_$("form:not(#vwo_form)").live("submit",function(){for(var a,b=!1,e,d=0;d<_vwo_exp_ids.length;d++)if(e=_vwo_exp_ids[d],_vwo_exp[e].status=="RUNNING")for(a in _vwo_exp[e].goals)!isNaN(parseInt(a))&&_vwo_exp[e].goals[a].type=="FORM_SUBMIT"&&_vis_opt_match_wildcard(vwo_$(this).attr("action"),_vwo_exp[e].goals[a].url)&&(b=!0,_vis_opt_register_conversion(a,e));b&&_vis_opt_pause(500);return!0})}
function _vis_opt_register_hit(a,b){_vis_opt_readCookie("_vis_opt_exp_"+b+"_combi")||vwo_$.getJSON(_vis_opt_server_url+"log_hit.php?experiment_id="+b+"&account_id="+_vwo_acc_id+"&combination="+a+"&jsoncallback=?",function(){})}var _vis_opt_experiment_id=!1,_vis_opt_comb_name={};
function _vis_opt_legacy_variables_set(){for(var a=!1,b=0;b<_vwo_exp_ids.length;b++)if(_vwo_exp[_vwo_exp_ids[b]].ready==!0){a=_vwo_exp_ids[b];break}if(_vis_opt_experiment_id=a)for(var e in _vwo_exp[a].comb_n)_vis_opt_comb_name[e]=_vwo_exp[a].comb_n[e]}
function _vis_opt_bottom_render_combination(a,b){var e=a.split(","),d=0,f,g,h,l=_vwo_exp[b].type;if(l=="VISUAL_AB"&&a!=1)var j=vwo_$.parseJSON(_vwo_exp[b].sections["1"].variations[a]),e=Array(j.length);for(combination_use=0;combination_use<e.length;combination_use++){if(l!="VISUAL_AB"){d++;g=_vwo_exp[b].sections[d].path;if(!g)continue;if(parseInt(e[combination_use])==1){vwo_$(g).addClass("vwo_loaded").css("visibility","visible");continue}f=_vwo_exp[b].sections[d].variations[e[combination_use]]}else{if(a==
1)continue;d=1;g=j[combination_use].xpath;f=j[combination_use].content}f=f.replace("VWO_SECTION_ID",d);vwo_$("#vwo_temp").length==0&&vwo_$("body").append("<span style='display:none' id='vwo_temp'></span>");if(g.toLowerCase()=="head"){if(typeof _vwo_exp[b].sections[d].loaded=="undefined")f=vwo_$(f),vwo_$(f).addClass("vwo_loaded").addClass("_vwo_variation_"+d),_vwo_exp[b].sections[d].loaded=!0,vwo_$("head").append(f)}else{h=vwo_$(g);document.getElementById("vwo_temp").innerHTML="<p></p>";vwo_$("#vwo_temp").html("<span class='vwo_span'>"+
f+"<script><\/script></span>");if(vwo_$(h).not(".vwo_loaded").length>0)h.each(function(){if(typeof _vwo_api_section_callback[parseInt(d)]=="function")_vwo_api_section_callback[d](vwo_$("#vwo_temp").children(),vwo_$("<span>"+_vis_opt_outer(this)+"</span>"))}).replaceWith(vwo_$("#vwo_temp").html()),document.getElementById("vwo_temp").innerHTML="<p></p>",vwo_$(g).css("visibility","visible"),vwo_$(g).find("*").andSelf().addClass("vwo_loaded");document.getElementById("vwo_temp").innerHTML="<p></p>"}}return!0}
function _vis_opt_outer(a){return typeof a.outerHTML!="undefined"?a.outerHTML:vwo_$("<div></div>").append(vwo_$(a).eq(0).clone()).html()}function _vis_opt_doc_timeout(){vwo_$("._vis_opt_hidden").remove()}
function _vis_opt_bottom_initialize(){for(var a,b=0;b<_vwo_exp_ids.length;b++){a=_vwo_exp_ids[b];if(_vwo_exp[a].ready&&_vwo_exp[a].type!="SPLIT_URL"){var e=_vis_opt_preview_combination(a);e||(e=_vis_opt_readCookie("_vis_opt_exp_"+a+"_combi"));if(e)_vis_opt_bottom_render_combination(e,a);else{e=_vis_opt_choose_combination(a);if(!e)return;_vis_opt_bottom_render_combination(e,a);_vis_opt_preview_combination(a)||(_vis_opt_register_hit(e,a),_vis_opt_createCookie("_vis_opt_exp_"+a+"_combi",e,100,a))}clearTimeout(_vwo_exp[a].timeout)}if(typeof _vis_opt_revenue!=
"undefined")for(_vis_opt_goal_id in _vwo_exp[a].goals)_vwo_exp[a].goals[_vis_opt_goal_id].type=="REVENUE_TRACKING"&&_vis_opt_register_conversion(_vis_opt_goal_id,a,_vis_opt_revenue)}_vis_opt_monitor_submissions();_vis_opt_monitor_clicks();_vis_opt_doc_timeout()}
function _vis_opt_GA_track(){try{id=_vis_opt_experiment_id;u="undefined";typeof _vis_opt_GA_slot==u&&(_vis_opt_GA_slot=4);var a=_vis_opt_readCookie("_vis_opt_exp_"+id+"_combi");if(typeof _vwo_exp[id].combination_chosen!=u)a=_vwo_exp[id].combination_chosen;typeof _vis_opt_comb_name[a]!=u&&(typeof pageTracker!=u?pageTracker._setCustomVar(_vis_opt_GA_slot,"VWO-"+id,_vis_opt_comb_name[a],1):_gaq.push(["_setCustomVar",_vis_opt_GA_slot,"VWO-"+id,_vis_opt_comb_name[a],1]))}catch(b){}};
var _vis_opt_account_id = 7054; 
if(typeof(_vis_opt_settings_loaded) == "boolean"){ _vis_opt_top_initialize(); }
if(typeof(_vis_opt_settings_loaded) == "boolean" && typeof(_vis_opt_bottom_initialize) == "function")
{vwo_$(document).ready(function() { _vis_opt_bottom_initialize(); }); }
