function weaverx_ToggleDIV(e,t,r,i,s){"none"!=e.style.display?(e.style.display="none",t.innerHTML="img"==s?'show':''+r+""):(e.style.display="",t.innerHTML="img"==s?'hide':''+i+"")}function wvrxFlowColor(){if("undefined"!=typeof wvrxEndOpts&&"0"!=wvrxEndOpts.flowColor){var e,t,r,i,s,o,n,a,d=wvrxEndOpts.sbLayout,l=document.getElementById("content"),h=document.getElementById("primary-widget-area"),c=document.getElementById("secondary-widget-area");if(h&&(h.style.minHeight=""),c&&(c.style.minHeight=""),l&&(l.style.minHeight=""),weaverxBrowserWidth()>=768){if((h&&null===c||c&&null===h)&&(h?(e=y("#content"),s=y("#primary-widget-area"),o=h.offsetHeight+s,t=l.offsetHeight+e,r=Math.max(o,t),l.style.minHeight=r-e+"px",h.style.minHeight=r-s+"px"):(e=y("#content"),i=y("#secondary-widget-area"),n=c.offsetHeight+i,t=l.offsetHeight+e,r=Math.max(n,t),l.style.minHeight=r-e+"px",c.style.minHeight=r-i+"px")),h&&c){if("right"==d||"left"==d||"right-top"==d||"left-top"==d){e=y("#content"),i=y("#secondary-widget-area"),s=y("#primary-widget-area");var p=("auto"==(a=jQuery("#primary-widget-area").css("margin-bottom"))&&(a="0px"),parseInt(a));o=h.offsetHeight+s+p,n=c.offsetHeight+i,t=l.offsetHeight+e;var w=o+n;r=Math.max(w,t),l.style.minHeight=r-e+"px",c.style.minHeight=r-o-i+"px"}"split-top"!=d&&"split"!=d||(e=y("#content"),i=y("#secondary-widget-area"),s=y("#primary-widget-area"),o=h.offsetHeight+s,n=c.offsetHeight+i,t=l.offsetHeight+e,r=Math.max(o,t,n),l.style.minHeight=r-e+"px",h.style.minHeight=r-s+"px",c.style.minHeight=r-i+"px")}}else weaverxBrowserWidth()>580&&h&&c&&("right"!=d&&"left"!=d&&"split"!=d||(i=y("#secondary-widget-area"),s=y("#primary-widget-area"),o=h.offsetHeight+s,n=c.offsetHeight+i,r=Math.max(o,n),h.style.minHeight=r-s+"px",c.style.minHeight=r-i+"px"))}function y(e){var t=jQuery(e).css("margin-top");return"auto"==t&&(t="0px"),parseInt(t)}}function weaverxScrollbarClass(){var e=jQuery("#wvrx-page-width").width();jQuery("#wvrx-page-width").css("width","100vw"),jQuery("#wvrx-page-width").width()>e?(jQuery("body").addClass("vert-scrollbar"),jQuery("body").removeClass("no-vert-scrollbar")):(jQuery("body").addClass("no-vert-scrollbar"),jQuery("body").removeClass("vert-scrollbar")),jQuery("#wvrx-page-width").css("width","")}function weaverxFullWidth(){var e=jQuery("#wvrx-page-width").width(),t=!1;jQuery(".wvrx-fullwidth, .wvrx-expand-full").each((function(){jQuery(this).removeClass("content-box"),jQuery(this).css({width:"","margin-left":"","margin-right":"","padding-left":"","padding-right":""});var r,i,s,o,n=jQuery(this).width(),a=jQuery(this).outerWidth(),d=parseFloat(jQuery(this).css("padding-left")),l=parseFloat(jQuery(this).css("padding-right")),h=parseFloat(jQuery(this).css("border-left-width"))||0,c=parseFloat(jQuery(this).css("border-right-width"))||0;if(e-a>4){var p=jQuery(this).parent().width(),w=jQuery(this).css("box-sizing"),y=parseFloat(jQuery(this).css("margin-left"))||0,u=Math.ceil(jQuery(this).offset().left),v=e-(u+a);t||(t=!0,jQuery("#content").css({overflow:"visible"}),jQuery(".content-page").css({overflow:"visible"}),jQuery("#container").css({overflow:"visible"})),Math.abs(u-v)<2&&(y=Math.max(0,(p-a)/2));var f=e-(u+v+d+l+h+c+n);jQuery("body.rtl").length?(s="-"+(u+"px"),o="-"+(Math.max(0,v-y)+"px")):(s="-"+(Math.max(0,u-y)+"px"),o="-"+(v+"px")),jQuery(this).hasClass("wvrx-fullwidth")&&(r=u+d+f+"px",i=v+l+"px","border-box"==w&&(jQuery(this).addClass("content-box"),jQuery(this).css({width:Math.floor(n)+"px"}))),jQuery(this).hasClass("wvrx-expand-full")&&(r=d+"px",i=l+"px",jQuery(this).css({width:e,"max-width":"none"})),jQuery(this).css({"margin-left":s,"margin-right":o,"padding-left":r,"padding-right":i})}}))}function weaverxWidgetEq(e,t){if(null!==document.getElementById(t)){for(var r=jQuery("#"+t).hasClass("nobm"),i=jQuery("#"+t+" ."+e),s=-1e4,o=0,n=[],a=1;a<=20;++a)n[a]=0;for(a=0;ac&&(c=i[j].offsetHeight);for(d=0+h,l=n[a]+h,j=d;j0&&(e+=r,jQuery("#container").css("min-height",e+"px"))}function weaverxResizeEnd(){jQuery(".fixedtop").wvrx_fixWvrxFixedTop();var e=jQuery(".widget-eq");jQuery((function(t){for(var r=0;rx

',i.appendChild(s.childNodes[1])}return t&&e.extend(r,t),this.each((function(){var t=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtu.be"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object","embed"];r.customSelector&&t.push(r.customSelector);var i=".fitvidsignore";r.ignore&&(i=i+", "+r.ignore);var s=e(this).find(t.join(","));(s=(s=s.not("object object")).not(i)).each((function(){var t=e(this);if(!(t.parents(i).length>0||"embed"===this.tagName.toLowerCase()&&t.parent("object").length||t.parent(".fluid-width-video-wrapper").length)){t.css("height")||t.css("width")||!isNaN(t.attr("height"))&&!isNaN(t.attr("width"))||(t.attr("height",9),t.attr("width",16));var r=("object"===this.tagName.toLowerCase()||t.attr("height")&&!isNaN(parseInt(t.attr("height"),10))?parseInt(t.attr("height"),10):t.height())/(isNaN(parseInt(t.attr("width"),10))?t.width():parseInt(t.attr("width"),10));if(!t.attr("id")){var s="fitvid"+Math.floor(999999*Math.random());t.attr("id",s)}t.wrap('
').parent(".fluid-width-video-wrapper").css("padding-top",100*r+"%"),t.removeAttr("height").removeAttr("width")}}))}))}}(window.jQuery||window.Zepto),jQuery(document).ready((function(e){e(".wvr-tabs-nav").delegate("span:not(.wvr-tabs-current)","click",(function(){e(this).addClass("wvr-tabs-current").siblings().removeClass("wvr-tabs-current").parents(".wvr-tabs").find(".wvr-tabs-pane").hide().eq(e(this).index()).show()})),e(".wvr-tabs-pane").hide(),e(".wvr-tabs-nav span:first-child").addClass("wvr-tabs-current"),e(".wvr-tabs-panes .wvr-tabs-pane:first-child").show()})),jQuery((function(e){e(document).ready((function(){weaverx_js_update()})),e("#wrapper").resizeX(weaverxResizeEnd),e("#wvrx-page-width").resizeX(weaverxBrowserResizeEnd),weaverxMonitorContent(".menu-type-accordion"),weaverxMonitorContent(".extra-menu-xplus.menu-type-standard"),weaverxMonitorContent(".dynamic-content"),weaverxMonitorContent(".header-image"),"scroll-fix"==wvrxOpts.primaryScroll&&"scroll-fix"==wvrxOpts.secondaryScroll&&(e("#nav-primary").length||(wvrxOpts.primaryScroll="none"),e("#nav-secondary").length||(wvrxOpts.secondaryScroll="none")),"scroll-fix"==wvrxOpts.primaryScroll&&"scroll-fix"!=wvrxOpts.secondaryScroll&&e("#nav-primary").length&&e(window).scroll((function(){var t=0,r=0,i="#nav-primary .wvrx-menu-container",s=e(i).outerHeight();e(".admin-bar").length&&(t=e("#wpadminbar").outerHeight(),e(window).width()<600&&(t=0)),e(".wvrx-fixedtop").each((function(){r=r+e(this).outerHeight()-1})),t+=r;var o=e(window).scrollTop();e("#nav-primary").offset().top-parseFloat(e("body").css("marginTop"))+ra+t&&(e(i).removeClass("wvrx-fixonscroll"),e(o).removeClass("wvrx-fixonscroll"),e("body").css("margin-top",r),e(o).css("top",""),e(i).css("top","")),d<=a+t&&l>a+s+t&&(e(i).addClass("wvrx-fixonscroll"),e("body").css("margin-top",s+r),e(o).removeClass("wvrx-fixonscroll"),e(o).css("top",""),e(i).css("top",t+"px")),l<=a+s+t&&(e(o).addClass("wvrx-fixonscroll"),e(i).addClass("wvrx-fixonscroll"),e("body").css("margin-top",s+n+r),e(o).css("top",s+t+"px"),e(i).css("top",t+"px"))}))}));