").addClass(n.baseClassNames.content).addClass(t.contentClassName).css(t.contentCSS).append(t.content).data({vex:t});t.$vex.append(t.$vexContent);if(t.showCloseButton){t.$closeButton=e("
").addClass(n.baseClassNames.close).addClass(t.closeClassName).css(t.closeCSS).data({vex:t}).bind("click.vex",function(){return n.close(e(this).data().vex.id)});t.$vexContent.append(t.$closeButton)}e(t.appendLocation).append(t.$vex);n.setupBodyClassName(t.$vex);t.afterOpen&&t.afterOpen(t.$vexContent,t);setTimeout(function(){return t.$vexContent.trigger("vexOpen",t)},0);return t.$vexContent},getAllVexes:function(){return e("."+n.baseClassNames.vex+':not(".'+n.baseClassNames.closing+'") .'+n.baseClassNames.content)},getVexByID:function(t){return n.getAllVexes().filter(function(){return e(this).data().vex.id===t})},close:function(e){var t;if(!e){t=n.getAllVexes().last();if(!t.length)return!1;e=t.data().vex.id}return n.closeByID(e)},closeAll:function(){var t;t=n.getAllVexes().map(function(){return e(this).data().vex.id}).toArray();if(!(null!=t?t.length:void 0))return!1;e.each(t.reverse(),function(e,t){return n.closeByID(t)});return!0},closeByID:function(a){var i,s,r,o,l;s=n.getVexByID(a);if(s.length){i=s.data().vex.$vex;l=e.extend({},s.data().vex);r=function(){return l.beforeClose?l.beforeClose(s,l):void 0};o=function(){s.trigger("vexClose",l);i.remove();return l.afterClose?l.afterClose(s,l):void 0};if(t){r();i.unbind(n.animationEndEvent).bind(n.animationEndEvent,function(){return o()}).addClass(n.baseClassNames.closing)}else{r();o()}return!0}},closeByEscape:function(){var t,a,i;i=n.getAllVexes().map(function(){return e(this).data().vex.id}).toArray();if(!(null!=i?i.length:void 0))return!1;a=Math.max.apply(Math,i);t=n.getVexByID(a);return t.data().vex.escapeButtonCloses!==!0?!1:n.closeByID(a)},setupBodyClassName:function(t){return t.bind("vexOpen.vex",function(){return e("body").addClass(n.baseClassNames.open)}).bind("vexClose.vex",function(){return n.getAllVexes().length?void 0:e("body").removeClass(n.baseClassNames.open)})},hideLoading:function(){return e(".vex-loading-spinner").remove()},showLoading:function(){n.hideLoading();return e("body").append('
')}}};window.vex=e("undefined"!=typeof hsjQuery&&null!==hsjQuery?hsjQuery:jQuery)}).call(this);(function(){var e,t,n,a;e="undefined"!=typeof hsjQuery&&null!==hsjQuery?hsjQuery:jQuery;e.fn.nextWrap=function(){var e;e=this.next();return 0===e.length?this.siblings().first():e};e.fn.prevWrap=function(){var e;e=this.prev();return 0===e.length?this.siblings().last():e};e.loadImage=function(t){var n;n=function(e){var n,a,i,s;i=function(){s();e.resolve(a)};n=function(){s();e.reject(a)};s=function(){a.onload=null;a.onerror=null;a.onabort=null};a=new Image;a.onload=i;a.onerror=n;a.onabort=n;a.src=t};return e.Deferred(n).promise()};n={x:1e3,y:600};window.hsInitSlider=a=function(){if(window.hsSliderConfig){e("html").removeClass("no-js");return e.each(window.hsSliderConfig,t)}};t=function(t,a){var i,s,r,o,l,d,c,u,v,m,p;r=e("#hs_cos_flex_slider_control_panel_"+t);i=e("#hs_cos_flex_slider_"+t);o=null;l=null;c=null;u=function(){l=i.clone();return e(window).resize(p)};v=function(t){return t.attr("data-src")?e.loadImage(t.data("src")).done(function(){t.attr("src",t.data("src"));return t.removeAttr("data-src")}):void 0};m=function(t){var n,i;n=function(t){var n,a;n=e(t.slides.get(t.animatingTo)).find("img");if(!n.data("naturalWidth")||!n.data("naturalHeight")){a=new Image;a.src=n.attr("src");n.data("naturalWidth",a.width);n.data("naturalHeight",a.height)}return p({x:n.data("naturalWidth"),y:n.data("naturalHeight")})};o=vex.open({content:l,contentClassName:"hs-gallery",overlayClassName:"hs-gallery"});i=e.extend(a.mainConfig,{before:n,after:function(e){return e.resize()},startAt:t,keyboard:!0,multipleKeyboard:!0});window.gallerySlider=l.flexslider(i);c=l.data("flexslider");return n(c)};p=function(t){var a,i,s,r,l,d,u;if(!t||!t.currentTarget){if(e.isPlainObject(t)){s=t.x/t.y;u=e(window).width()/e(window).height();a=t;i={x:e(window).width()-20,y:e(window).height()-20};if(u>s){if(t.y>i.y){l=i.y/t.y;a.x=t.x*l;a.y=i.y}}else if(t.x>i.x){r=i.x/t.x;a.y=t.y*r;a.x=i.x}d={x:Math.max(e(window).width()-a.x,0),y:Math.max(e(window).height()-a.y,0)}}else d={x:Math.max(e(window).width()-n.x,20),y:Math.max(e(window).height()-n.y,20)};o.css({left:d.x/2,top:d.y/2,bottom:d.y/2,right:d.x/2});o.find(".hs_cos_flex-slides li").width(a.x+"px");return setTimeout(function(){return c.resize()},100)}};d=function(t){var n,i,s,r;n=e(t);r=n.hasClass("hs-cos-flex-slider-control-panel")?".hs_cos_flex-slides > li > a > img":".hs_cos_flex-slides > li > img";i=[];n.find(r).each(function(){return i.push(e(this).height())});s=Math.min.apply(Math,i);a.mainConfig.smoothHeight||n.find(".hs_cos_flex-viewport").height(s);return n.find(r).each(function(){var t;t=e(this).width()/e(this).height();return e(this).width(s*t)})};if("lightbox"===a.mode){a.mainConfig.sync=null;return r.find("li").show().each(function(){return e(this).find("a").click(function(){var t;t=e(this).parent().index();u();m(t);return!1})})}if(a.thumbConfig){s=r.find(".hs_cos_flex-slides-thumb > li");e.extend(a.thumbConfig,{itemWidth:s.length&&s.width()?s.width():a.thumbConfig.itemWidth,start:d});r.flexslider(a.thumbConfig)}if(e(".hs_cos_flex-slides-main img[data-src]")){e.extend(a.mainConfig,{start:a.thumbConfig?d:function(){},before:function(e){var t,n;n=i.find(".hs_cos_flex-active-slide").prevWrap().find("img");v(n);t=i.find(".hs_cos_flex-active-slide").nextWrap().find("img");return v(t)}});return e.when(v(i.find("img:eq(0)")),v(i.find("img:eq(1)")),v(i.find("img").last())).then(function(){return i.flexslider(a.mainConfig)})}return i.flexslider(a.mainConfig)};e(window).bind("load hs:previewLoad",function(){try{return a()}catch(e){if(console&&"function"==typeof console.log)return console.log(e)}})}).call(this);!function(e){function t(t){function n(t,n){var a=e("
");n?a.addClass("hs-common-error-message"):a.addClass("hs-common-confirm-message");a.html(t);e("form#blog-comment-form").prepend(a)}function i(e){var t,n,a,i,s;t=hsVars.ticks+"-"+hsVars.page_id;n=[];for(var r=0;r
126&&(s-=126);s+=49;n.push(String.fromCharCode(s))}return n.join("")}function s(){var t=[];e("#id_user_name").val()||t.push("Name is required");e("#id_user_email").val()?-1==e("#id_user_email").val().indexOf("@")&&t.push("Email address is not valid"):t.push("Email is required");e("#id_comment").val()||t.push("Comment is required");return r(t)}function r(e){if(e.length>0){e.unshift("One or more errors occurred:");n(e.join("
• "),!0);return!1}return!0}function o(e){var t,n=[],a=["comment","user_name","user_email","user_website"];if(e.recaptcha_response_field){n.push("Enter a valid captcha response.");delete e.recaptcha_response_field}for(var i=0;i0&&window.Recaptcha&&Recaptcha.reload();return r(n)}e("form#blog-comment-form .hs-common-error-message").remove();e("form#blog-comment-form .hs-common-confirm-message").remove();var l={
a:"bZVI3LbCjMC5ATa0Xe6u5lHhnp846imYJaUEBsNS1osqQoMvEpuaW8BqUjkmOnbH5MjQqZDrWtbhJrAq",b:"sNYWQs1vIh842hn9i7uUN3SY0ku2l22xtaSYledfPc30n2d4FOjSOL8zx7P6P7389qqW0jfrm3ge3yWH",c:"BsqFip3YGP2NfbWKePmqmWaLgf4TPlsLaAC2MoFLo6ZzwB17Z8GNxaWrxDBMkSISQQwZ7sN07B2yYao7"};t.preventDefault();t.stopPropagation();if(a.isSaving)return!1;if(!s())return!1;a.isSaving=!0;e('form#blog-comment-form input[type="submit"]').val("Saving...");data=e("form#blog-comment-form").serialize();data+="&anti_spam_key="+i("a");data+="&key_check_"+i("b")+"="+i("c");e.ajax(e("form#blog-comment-form").attr("action"),{data:data,dataType:"json",type:"POST",error:function(t){e('form#blog-comment-form input[type="submit"]').val("Submit");n(t.message,!0);a.isSaving=!1},success:function(t){e('form#blog-comment-form input[type="submit"]').val("Submit");if(t.succeeded){n(t.message+'",!1);a.isSaving=!1;e("input#add-comment-button").addClass("hidden");e("form#blog-comment-form .field").hide("slow")}else{o(t.error_dict);a.isSaving=!1}}});return!1}function n(){e("form#blog-comment-form").not(".new-comments").submit(t)}var a={isSaving:!1};e(document).ready(n)}(jQuery);!function(e){function t(t){e(this).prev("ul").children("li").show();e(this).hide();t.preventDefault();t.stopPropagation()}function n(){e(".filter-expand-link").click(t);window.hs_show_tools_menu_if_author();var n=function(t,n){t.find(".hs-classic-form-errors")&&t.find(".hs-classic-form-errors").remove();$errors=e('