(function($){window.et_pb_smooth_scroll=function($target,$top_section,speed,easing){var $window_width=$(window).width();if($('body').hasClass('et_fixed_nav')&&$window_width>980){$menu_offset=$('#top-header').outerHeight()+$('#main-header').outerHeight()-1;}else{$menu_offset=-1;} if($('#wpadminbar').length&&$window_width>600){$menu_offset+=$('#wpadminbar').outerHeight();} if($top_section){$scroll_position=0;}else{$scroll_position=$target.offset().top-$menu_offset;} if(typeof easing==='undefined'){easing='swing';} $('html, body').animate({scrollTop:$scroll_position},speed,easing);} window.et_fix_video_wmode=function(video_wrapper){$(video_wrapper).each(function(){if($(this).find('iframe').length){var $this_el=$(this).find('iframe'),src_attr=$this_el.attr('src'),wmode_character=src_attr.indexOf('?')==-1?'?':'&',this_src=src_attr+wmode_character+'wmode=opaque';$this_el.attr('src',this_src);}});} window.et_pb_form_placeholders_init=function($form){$form.find('input:text, input[type="email"], input[type="url"], textarea').each(function(index,domEle){var $et_current_input=jQuery(domEle),$et_comment_label=$et_current_input.siblings('label'),et_comment_label_value=$et_current_input.siblings('label').text();if($et_comment_label.length){$et_comment_label.hide();if($et_current_input.siblings('span.required')){et_comment_label_value+=$et_current_input.siblings('span.required').text();$et_current_input.siblings('span.required').hide();} $et_current_input.val(et_comment_label_value);}}).bind('focus',function(){var et_label_text=jQuery(this).siblings('label').text();if(jQuery(this).siblings('span.required').length)et_label_text+=jQuery(this).siblings('span.required').text();if(jQuery(this).val()===et_label_text)jQuery(this).val("");}).bind('blur',function(){var et_label_text=jQuery(this).siblings('label').text();if(jQuery(this).siblings('span.required').length)et_label_text+=jQuery(this).siblings('span.required').text();if(jQuery(this).val()==="")jQuery(this).val(et_label_text);});} window.et_duplicate_menu=function(menu,append_to,menu_id,menu_class,menu_click_event){append_to.each(function(){var $this_menu=$(this),$cloned_nav;if(''!==menu){menu.clone().attr('id',menu_id).removeClass().attr('class',menu_class).appendTo($this_menu);} $cloned_nav=$this_menu.find('> ul');$cloned_nav.find('.menu_slide').remove();$cloned_nav.find('li:first').addClass('et_first_mobile_item');$cloned_nav.find('a').on('click',function(){$(this).parents('.et_mobile_menu').siblings('.mobile_menu_bar').trigger('click');});if('no_click_event'!==menu_click_event){$this_menu.on('click','.mobile_menu_bar',function(){if($this_menu.hasClass('closed')){$this_menu.removeClass('closed').addClass('opened');$cloned_nav.stop().slideDown(500);}else{$this_menu.removeClass('opened').addClass('closed');$cloned_nav.stop().slideUp(500);} return false;});}});$('#mobile_menu .centered-inline-logo-wrap').remove();} window.et_pb_remove_placeholder_text=function($form){$form.find('input:text, textarea').each(function(index,domEle){var $et_current_input=jQuery(domEle),$et_label=$et_current_input.siblings('label'),et_label_value=$et_current_input.siblings('label').text();if($et_label.length&&$et_label.is(':hidden')){if($et_label.text()==$et_current_input.val()) $et_current_input.val('');}});} window.et_fix_fullscreen_section=function(){var $et_window=$(window);$('section.et_pb_fullscreen').each(function(){var $this_section=$(this);$.proxy(et_calc_fullscreen_section,$this_section)();$et_window.on('resize',$.proxy(et_calc_fullscreen_section,$this_section));});} window.et_bar_counters_init=function($bar_item){if(!$bar_item.length){return;} var $bar_container=$bar_item.closest('.et_pb_counter_container'),bar_item_width=$bar_item.attr('data-width'),bar_item_padding=Math.ceil(parseFloat($bar_item.css('paddingLeft')))+Math.ceil(parseFloat($bar_item.css('paddingRight'))),$bar_item_text=$bar_item.children('.et_pb_counter_amount_number'),calculated_width=($bar_container.width()-$bar_item_text.innerWidth())/100*parseFloat(bar_item_width),bar_item_text_width=calculated_width+$bar_item_text.innerWidth();$bar_item.css({'width':bar_item_text_width});} window.et_fix_pricing_currency_position=function($pricing_table){var $all_pricing_tables=typeof $pricing_table!=='undefined'?$pricing_table:$('.et_pb_pricing_table');if(!$all_pricing_tables.length){return;} $all_pricing_tables.each(function(){var $this_table=$(this),$price_container=$this_table.find('.et_pb_et_price'),$currency=$price_container.length?$price_container.find('.et_pb_dollar_sign'):false,$price=$price_container.length?$price_container.find('.et_pb_sum'):false;if(!$currency||!$price){return;} $currency.css({'marginLeft':-$currency.width()+'px'});});} window.et_pb_set_responsive_grid=function($grid_items,$single_item_selector){setTimeout(function(){var container_width=$grid_items.innerWidth(),item_width=$grid_items.find($single_item_selector).outerWidth(true),last_item_margin=item_width-$grid_items.find($single_item_selector).outerWidth(),columns_count=Math.round((container_width+last_item_margin)/item_width),counter=1,first_in_row=1;$grid_items.find($single_item_selector).removeClass('last_in_row first_in_row');$grid_items.find($single_item_selector).each(function(){var $this_el=$(this);if(!$this_el.hasClass('inactive')){if(first_in_row===counter){$this_el.addClass('first_in_row');} if(0===counter%columns_count){$this_el.addClass('last_in_row');first_in_row=counter+1;} counter++;}});},1);};window.et_pb_set_tabs_height=function($tabs_module){if(typeof $tabs_module==='undefined'){$tabs_module=$('.et_pb_tabs');} if(!$tabs_module.length){return;} $tabs_module.each(function(){var $tab_controls=$(this).find('.et_pb_tabs_controls');var $all_tabs=$tab_controls.find('li');var max_height=0;var small_columns='.et_pb_column_1_3, .et_pb_column_1_4, .et_pb_column_3_8';var in_small_column=$(this).parents(small_columns).length>0;var on_small_screen=parseFloat($(window).width())<768;var vertically_stacked=in_small_column||on_small_screen;if(vertically_stacked){$(this).addClass('et_pb_tabs_vertically_stacked');} if($all_tabs.length){$tab_controls.removeAttr('style');$all_tabs.each(function(){var tab_height=$(this).outerHeight();if(vertically_stacked){return;} if(tab_height>max_height){max_height=tab_height;}});} if(0!==max_height){$tab_controls.css('min-height',max_height);}});}})(jQuery); (function($){var restore_dims=function(){$('img[data-recalc-dims]').each(function recalc(){var $this=$(this);if(this.complete){if($this.data('lazy-src')&&$this.attr('src')!==$this.data('lazy-src')){$this.load(recalc);return;} var width=this.width,height=this.height;if(width&&width>0&&height&&height>0){$this.attr({width:width,height:height});reset_for_retina(this);}}else{$this.load(recalc);}});},reset_for_retina=function(img){$(img).removeAttr('data-recalc-dims').removeAttr('scale');};$(document).ready(restore_dims);if('on'in $.fn){$(document.body).on('post-load',restore_dims);}else{$(document).delegate('body','post-load',restore_dims);}})(jQuery); WPGroHo=jQuery.extend({my_hash:'',data:{},renderers:{},syncProfileData:function(hash,id){if(!WPGroHo.data[hash]){WPGroHo.data[hash]={};jQuery('div.grofile-hash-map-'+hash+' span').each(function(){WPGroHo.data[hash][this.className]=jQuery(this).text();});} WPGroHo.appendProfileData(WPGroHo.data[hash],hash,id);},appendProfileData:function(data,hash,id){for(var key in data){if(jQuery.isFunction(WPGroHo.renderers[key])){return WPGroHo.renderers[key](data[key],hash,id,key);} jQuery('#'+id).find('h4').after(jQuery('
').html(data[key]));}}},WPGroHo);jQuery(document).ready(function(){if('undefined'===typeof Gravatar){return;} Gravatar.profile_cb=function(h,d){WPGroHo.syncProfileData(h,d);};Gravatar.my_hash=WPGroHo.my_hash;Gravatar.init('body','#wpadminbar');}); (function(e,t,n){typeof define=="function"&&define.amd?define(["jquery"],function(r){return n(r,e,t),r.mobile}):n(e.jQuery,e,t)})(this,document,function(e,t,n,r){(function(e,t,n,r){function T(e){while(e&&typeof e.originalEvent!="undefined")e=e.originalEvent;return e}function N(t,n){var i=t.type,s,o,a,l,c,h,p,d,v;t=e.Event(t),t.type=n,s=t.originalEvent,o=e.event.props,i.search(/^(mouse|click)/)>-1&&(o=f);if(s)for(p=o.length,l;p;)l=o[--p],t[l]=s[l];i.search(/mouse(down|up)|click/)>-1&&!t.which&&(t.which=1);if(i.search(/^touch/)!==-1){a=T(s),i=a.touches,c=a.changedTouches,h=i&&i.length?i[0]:c&&c.length?c[0]:r;if(h)for(d=0,v=u.length;dx
';head.appendChild(div.childNodes[1]);} if(options){$.extend(settings,options);} return this.each(function(){var selectors=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]','object','embed'];if(settings.customSelector){selectors.push(settings.customSelector);} var ignoreList='.fitvidsignore';if(settings.ignore){ignoreList=ignoreList+', '+settings.ignore;} var $allVideos=$(this).find(selectors.join(','));$allVideos=$allVideos.not('object object');$allVideos=$allVideos.not(ignoreList);$allVideos.each(function(count){var $this=$(this);if($this.parents(ignoreList).length>0){return;} if(this.tagName.toLowerCase()==='embed'&&$this.parent('object').length||$this.parent('.fluid-width-video-wrapper').length){return;} if((!$this.css('height')&&!$this.css('width'))&&(isNaN($this.attr('height'))||isNaN($this.attr('width')))){$this.attr('height',9);$this.attr('width',16);} var height=(this.tagName.toLowerCase()==='object'||($this.attr('height')&&!isNaN(parseInt($this.attr('height'),10))))?parseInt($this.attr('height'),10):$this.height(),width=!isNaN(parseInt($this.attr('width'),10))?parseInt($this.attr('width'),10):$this.width(),aspectRatio=height/width;if(!$this.attr('id')){var videoID='fitvid'+count;$this.attr('id',videoID);} $this.wrap('').parent('.fluid-width-video-wrapper').css('padding-top',(aspectRatio*100)+'%');$this.removeAttr('height').removeAttr('width');});});};})(window.jQuery||window.Zepto); !function(){"use strict";function t(o){if(!o)throw new Error("No options passed to Waypoint constructor");if(!o.element)throw new Error("No element option passed to Waypoint constructor");if(!o.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+e,this.options=t.Adapter.extend({},t.defaults,o),this.element=this.options.element,this.adapter=new t.Adapter(this.element),this.callback=o.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=t.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=t.Context.findOrCreateByElement(this.options.context),t.offsetAliases[this.options.offset]&&(this.options.offset=t.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),i[this.key]=this,e+=1}var e=0,i={};t.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},t.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},t.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete i[this.key]},t.prototype.disable=function(){return this.enabled=!1,this},t.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},t.prototype.next=function(){return this.group.next(this)},t.prototype.previous=function(){return this.group.previous(this)},t.invokeAll=function(t){var e=[];for(var o in i)e.push(i[o]);for(var n=0,r=e.length;r>n;n++)e[n][t]()},t.destroyAll=function(){t.invokeAll("destroy")},t.disableAll=function(){t.invokeAll("disable")},t.enableAll=function(){t.invokeAll("enable")},t.refreshAll=function(){t.Context.refreshAll()},t.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},t.viewportWidth=function(){return document.documentElement.clientWidth},t.adapters=[],t.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},t.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=t}(),function(){"use strict";function t(t){window.setTimeout(t,1e3/60)}function e(t){this.element=t,this.Adapter=n.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+i,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,o[t.waypointContextKey]=this,i+=1,this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}var i=0,o={},n=window.Waypoint,r=window.onload;e.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},e.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical);t&&e&&(this.adapter.off(".waypoints"),delete o[this.key])},e.prototype.createThrottledResizeHandler=function(){function t(){e.handleResize(),e.didResize=!1}var e=this;this.adapter.on("resize.waypoints",function(){e.didResize||(e.didResize=!0,n.requestAnimationFrame(t))})},e.prototype.createThrottledScrollHandler=function(){function t(){e.handleScroll(),e.didScroll=!1}var e=this;this.adapter.on("scroll.waypoints",function(){(!e.didScroll||n.isTouch)&&(e.didScroll=!0,n.requestAnimationFrame(t))})},e.prototype.handleResize=function(){n.Context.refreshAll()},e.prototype.handleScroll=function(){var t={},e={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var i in e){var o=e[i],n=o.newScroll>o.oldScroll,r=n?o.forward:o.backward;for(var s in this.waypoints[i]){var a=this.waypoints[i][s],l=o.oldScroll