Warning: Undefined array key "HTTP_REFERER" in /var/www/u1787038/data/www/novybusiness.ru/index.php on line 4
/*! extra 16-12-2015 11:46:06 */
/*!
* jQuery Tiny Pub/Sub
* https://github.com/cowboy/jquery-tiny-pubsub
*
* Copyright (c) 2013 "Cowboy" Ben Alman
* Licensed under the MIT license.
*/
!function($){var o=$({});$.subscribe=function(){o.on.apply(o,arguments)},$.unsubscribe=function(){o.off.apply(o,arguments)},$.publish=function(){o.trigger.apply(o,arguments)}}(jQuery),window.ET_App=window.ET_App||{},function(exports,$){var Elements;Elements={cacheElements:function(){this.$window=$(window),this.$body=$("body"),this.$container=this.$body.find("#page-container"),this.$main_header=this.$container.find("> .header"),this.$main_nav=this.$container.find("#main-header"),this.main_nav_height=this.$main_nav.innerHeight(),this.$top_nav=this.$container.find("#top-header"),this.top_nav_height=this.$top_nav.innerHeight(),this.$content_area=this.$container.find("#main-content"),this.$wpadminbar=this.$body.find("#wpadminbar")},init:function(){this.cacheElements(),$.subscribe("et-window.resized",$.proxy(this.hasMainNavHeightChanged,this)),$.subscribe("et-window.resized",$.proxy(this.hasTopNavHeightChanged,this))},hasMainNavHeightChanged:function(){var current_nav_height=this.$main_nav.innerHeight();current_nav_height!==this.main_nav_height&&(this.main_nav_height=current_nav_height,$.publish("et-main_nav.changed_height"))},hasTopNavHeightChanged:function(){var current_nav_height=this.$top_nav.innerHeight();current_nav_height!==this.top_nav_height&&(this.top_nav_height=current_nav_height,$.publish("et-top_nav.changed_height"))}},$(function(){Elements.init()}),$(window).resize(function(){$.publish("et-window.resized")}),exports.Elements=Elements}(ET_App,jQuery),function(exports,$){var DynamicStyles;DynamicStyles={addRule:function(selector,rules){this.maybeAddStyleElement(),this.elements[selector]=rules,this.render()},addStyleElement:function(){$("head").append(''),this.$container=$("style#"+this.styleID),this.styleTagAdded=!0},init:function(){this.elements={},this.styleTagAdded=!1,this.styleID="et_custom_script_css"},maybeAddStyleElement:function(){this.styleTagAdded||this.addStyleElement()},render:function(){var output="";for(var selector in this.elements)output+=selector+" { "+this.elements[selector]+" }\n";this.$container.html(output)}},DynamicStyles.init(),exports.DynamicStyles=DynamicStyles}(ET_App,jQuery),function(exports,$){var FixedNav,elements=ET_App.Elements;FixedNav={activateFixedPosition:function(){var main_header_fixed_height,self=this;this.maybeDeactivateOnMobile()||(this.$nav_container.addClass(this.fixed_class),this.isHeaderCentered()?main_header_fixed_height=2*this.fixed_logo_height+$("#et-navigation > ul > li > a").height()+20:(this.logo_initial_width_value>this.logo_fixed_width_value?this.$logo.stop().animate({width:this.logo_fixed_width_value}):this.$logo.css({width:this.logo_fixed_width_value}),main_header_fixed_height=this.main_nav_fixed_height),this.hide_nav_until_scroll||(this.$main_nav_wrapper.height(main_header_fixed_height),setTimeout(function(){var main_nav_height=self.$main_nav.innerHeight();self.$main_nav_wrapper.height()!==main_nav_height&&self.$main_nav_wrapper.height(main_nav_height)},500)))},activateHideNav:function(){this.hide_nav_until_scroll=!0},applyHideNav:function(){var body_height,main_nav_height,viewport_height;return this.hide_nav_until_scroll?(body_height=elements.$body.height(),main_nav_height=this.main_nav_height,viewport_height=elements.$window.height()+main_nav_height+this.viewpoint_height_modifier,void(body_height>viewport_height?(this.isHideNavDisabled()&&this.hideNavEnable(),this.hideNavMoveOffScreen()):this.hideNavDisable())):!1},applyWaypoints:function(){var self=this;this.$main_nav_wrapper.waypoint({offset:this.offset,handler:$.proxy(self.scroll_trigger,self)})},bindEvents:function(){$.subscribe("et-main_nav.changed_height",$.proxy(this.onMainNavHeightChanged,this))},cacheElements:function(){this.$nav_container=elements.$container,this.$main_nav=elements.$main_nav,this.$main_nav_wrapper=this.$main_nav.closest("#main-header-wrapper"),this.main_nav_height=this.$main_nav.height(),this.main_nav_fixed_height=this.$main_nav.data("fixed-height"),this.$content_area=elements.$content_area,this.content_area_default_padding=parseInt(this.$content_area.css("padding-top")),this.fixed_class="et-fixed-header",this.mobile_breakpoint_width=1024,this.hide_nav_class="et_hide_nav",this.hide_nav_disabled_class="et_hide_nav_disabled",this.hide_nav_until_scroll=elements.$body.hasClass(this.hide_nav_class)||elements.$body.hasClass(this.hide_nav_disabled_class),this.viewpoint_height_modifier=200,this.$logo=this.$nav_container.find(".logo"),this.logo_height=this.$logo.height(),this.logo_width=this.$logo.width(),this.fixed_logo_height=parseInt(this.$main_nav.attr("data-fixed-height"))*(parseInt(this.$logo.attr("data-fixed-height"))/100),this.fixed_logo_width=this.logo_width/this.logo_height*this.fixed_logo_height,this.logo_initial_width_value=parseInt(this.logo_width),this.logo_fixed_width_value=parseInt(this.fixed_logo_width)},calculateOffset:function(){this.offset=0,elements.$wpadminbar.length&&(this.offset=this.offset+elements.$wpadminbar.innerHeight())},deactivateFixedPosition:function(){this.$nav_container.removeClass(this.fixed_class),this.maybeDeactivateOnMobile()||(this.isHeaderCentered()||(this.logo_fixed_width_value>this.logo_initial_width_value?this.$logo.stop().animate({width:this.logo_initial_width_value}):this.$logo.css({width:this.logo_initial_width_value})),this.hide_nav_until_scroll||this.$main_nav_wrapper.height(this.main_nav_height))},deactivateHideNav:function(){this.hide_nav_until_scroll=!1},detachHideNav:function(){this.deactivateHideNav(),this.hideNavDisable()},init:function(){$.fn.waypoint&&elements.$body.hasClass("et_fixed_nav")&&(this.cacheElements(),this.bindEvents(),this.calculateOffset(),this.run(),this.applyHideNav(),this.$logo.attr({"data-fixed-width":this.fixed_logo_width,"data-initial-width":this.logo_width,"data-initial-height":this.logo_height}))},isHeaderCentered:function(){return elements.$main_header.hasClass("centered")},isHideNavDisabled:function(){return elements.$body.hasClass(this.et_hide_nav_disabled)},maybeDeactivateOnMobile:function(){return elements.$body.width()<=this.mobile_breakpoint_width?(this.$nav_container.removeClass(this.fixed_class),this.$main_nav_wrapper.css("height","auto"),!0):!1},hideNavDisable:function(){elements.$body.removeClass(this.et_hide_nav).addClass(this.et_hide_nav_disabled),this.$main_nav.css({transform:"translateY(0)",opacity:"1"})},hideNavEnable:function(){elements.$body.removeClass(this.et_hide_nav_disabled).addClass(this.et_hide_nav)},hideNavMoveOffScreen:function(){var transform="translateY( -"+this.main_nav_height+"px )";this.$main_nav.css("transform",transform)},onMainNavHeightChanged:function(){this.main_nav_height=this.$main_nav.height()},reApplyHideNav:function(){this.activateHideNav(),this.hideNavMoveOffScreen(),this.applyHideNav()},run:function(){this.deactivateFixedPosition(),this.applyWaypoints()},scroll_trigger:function(direction){"down"===direction?this.activateFixedPosition():this.deactivateFixedPosition()}},$(window).load(function(){FixedNav.init()}),$(window).resize(function(){FixedNav.applyHideNav()}),exports.FixedNav=FixedNav}(ET_App,jQuery),function($){function debounce(func,wait,immediate){var timeout;return function(){var context=this,args=arguments,later=function(){timeout=null,immediate||func.apply(context,args)},callNow=immediate&&!timeout;clearTimeout(timeout),timeout=setTimeout(later,wait),callNow&&func.apply(context,args)}}function form_placeholders_init($form){$form.find("input:text, 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();$et_comment_label.length&&($et_comment_label.hide(),$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();jQuery(this).siblings("span.required").length&&(et_label_text+=jQuery(this).siblings("span.required").text()),jQuery(this).val()===et_label_text&&jQuery(this).val("")}).bind("blur",function(){var et_label_text=jQuery(this).siblings("label").text();jQuery(this).siblings("span.required").length&&(et_label_text+=jQuery(this).siblings("span.required").text()),""===jQuery(this).val()&&jQuery(this).val(et_label_text)})}function remove_placeholder_text($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.length&&$et_label.is(":hidden")&&$et_label.text()===$et_current_input.val()&&$et_current_input.val("")})}function et_duplicate_menu(menu,append_to,menu_id,menu_class){var $cloned_nav;menu.clone().attr("id",menu_id).removeClass().attr("class",menu_class).appendTo(append_to),$cloned_nav=append_to.find("> ul"),$cloned_nav.find(".menu_slide").remove(),$cloned_nav.find("li:first").addClass("et_first_mobile_item"),append_to.find("a").click(function(event){event.stopPropagation()})}function resize_section_video_bg($video){$element="undefined"!=typeof $video?$video.closest(".et_builder_section_video_bg"):$(".et_builder_section_video_bg"),$element.each(function(){var width,height,$this_el=$(this),ratio="undefined"!=typeof $this_el.attr("data-ratio")?$this_el.attr("data-ratio"):$this_el.find("video").attr("width")/$this_el.find("video").attr("height"),$video_elements=$this_el.find(".mejs-video, video, object").css("margin",0),$container=$this_el.closest(".et_builder_section").length?$this_el.closest(".et_builder_section"):$this_el.closest(".et_builder_slides"),body_width=$container.width(),container_height=$container.innerHeight();"undefined"==typeof $this_el.attr("data-ratio")&&$this_el.attr("data-ratio",ratio),ratio>body_width/container_height?(width=container_height*ratio,height=container_height):(width=body_width,height=body_width/ratio),$video_elements.width(width).height(height)})}function center_video($video){$element="undefined"!=typeof $video?$video:$(".et_builder_section_video_bg .mejs-video"),$element.each(function(){var $video_width=$(this).width()/2,$video_width_negative=0-$video_width;if($(this).css("margin-left",$video_width_negative),"undefined"!=typeof $video){if($video.closest(".et_builder_slider").length&&!$video.closest(".et_builder_first_video").length)return!1;setTimeout(function(){$(this).closest(".et_builder_preload").removeClass("et_builder_preload")},500)}})}function et_apply_parallax(){var main_position,$this=$(this),element_top=$this.offset().top,window_top=$et_window.scrollTop(),y_pos=.3*(window_top+$et_window.height()-element_top);main_position="translate3d(0, "+y_pos+"px, 0px)",$this.find(".et_builder_parallax_bg").css({"-webkit-transform":main_position,"-moz-transform":main_position,"-ms-transform":main_position,transform:main_position})}function et_parallax_set_height(){var bg_height,$this=$(this);bg_height=.3*$et_window.height()+$this.innerHeight(),$this.find(".et_builder_parallax_bg").css({height:bg_height})}function et_calclate_admin_bar_height(){var admin_bar_position,admin_bar=$("#wpadminbar").length,admin_bar_height=0;return admin_bar&&(admin_bar_position=$("#wpadminbar").length?$("#wpadminbar").css("position"):"",admin_bar_height=$("#wpadminbar").length?$("#wpadminbar").height():0,"fixed"!==admin_bar_position&&(admin_bar_height=0)),admin_bar_height}function et_play_overlayed_video($overlay,wrapper_class){var video_iframe_src,video_iframe_src_splitted,video_iframe_src_autoplay,$wrapper=$overlay.parent(wrapper_class),$video_iframe=$wrapper.find("iframe"),is_embedded=$video_iframe.length?!0:!1;if(is_embedded){if(video_iframe_src=$video_iframe.attr("src"),video_iframe_src_splitted=video_iframe_src.split("?"),-1!==video_iframe_src.indexOf("autoplay="))return;video_iframe_src_autoplay="undefined"!=typeof video_iframe_src_splitted[1]?video_iframe_src_splitted[0]+"?autoplay=1&"+video_iframe_src_splitted[1]:video_iframe_src_splitted[0]+"?autoplay=1",$video_iframe.attr({src:video_iframe_src_autoplay})}else $wrapper.find("video").get(0).play();$overlay.fadeTo(500,0,function(){$overlay.hide()})}function et_mobile_body_class(){et_single_col_breakpoint>=et_container_width?$("body").addClass("et_single_col"):$("body").removeClass("et_single_col")}function et_fix_video_wmode(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=-1===src_attr.indexOf("?")?"?":"&",this_src=src_attr+wmode_character+"wmode=opaque";$this_el.attr("src",this_src)}})}jQuery.fn.reverse=[].reverse;var $et_window=$(window),$et_container=$("#main-content > .container"),et_container_width=$et_container.width(),et_single_col_breakpoint=690,et_is_mobile_device=navigator.userAgent.match(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/),et_is_ipad=navigator.userAgent.match(/iPad/),$et_builder_video_section=$(".et_builder_section_video_bg"),$et_builder_parallax=$(".et_builder_parallax_bg");$(window).load(function(){setTimeout(function(){$(".et_builder_preload").removeClass("et_builder_preload")},500),$et_builder_parallax.length&&!et_is_mobile_device&&$et_builder_parallax.each(function(){if(!$(this).hasClass("et_builder_parallax_css")){var $this_parent=$(this).parent();$.proxy(et_parallax_set_height,$this_parent)(),$.proxy(et_apply_parallax,$this_parent)(),$et_window.on("scroll",$.proxy(et_apply_parallax,$this_parent)),$et_window.on("resize",$.proxy(et_parallax_set_height,$this_parent)),$et_window.on("resize",$.proxy(et_apply_parallax,$this_parent))}}),$.fn.waypoint&&$(".et-waypoint, .et_builder_waypoint").waypoint({offset:"50%",handler:function(){$(this).addClass("et-animated et_builder_animated")}})}),$(document).ready(function(){function trendingLoop(){var et_trending_next_post_eq;et_trending_next_post_eq=et_trending_active_post_eq+1,et_trending_post_count===et_trending_next_post_eq&&(et_trending_next_post_eq=0),$et_trending_posts.eq(et_trending_active_post_eq).fadeOut(et_trending_fade_speed,function(){$et_trending_posts.eq(et_trending_next_post_eq).fadeIn(et_trending_fade_speed),et_trending_active_post_eq=et_trending_next_post_eq})}function re_init_new_content($new_content){if($new_content.find(".et-slider").length&&($new_sliders=$new_content.find(".et-slider"),$new_sliders.each(function(){et_slider_setup($(this))})),$new_content.find(".wp-audio-shortcode, .wp-video-shortcode").length){var settings={};"undefined"!=typeof _wpmejsSettings&&(settings.pluginPath=_wpmejsSettings.pluginPath),settings.success=function(mejs){var autoplay=mejs.attributes.autoplay&&"false"!==mejs.attributes.autoplay;"flash"===mejs.pluginType&&autoplay&&mejs.addEventListener("canplay",function(){mejs.play()},!1)},$new_content.find(".wp-audio-shortcode, .wp-video-shortcode").mediaelementplayer(settings)}$new_content.find(".post-format-map").length&&($new_maps=$new_content.find(".post-format-map"),$new_maps.each(function(){et_simple_marker_map($(this))}))}function paginated_transition_page($this_paginated,to_page){var $this=$this_paginated,$paginated_pages=$this.find(".paginated_page"),window_width=$(window).width();$this.data("current_page",to_page),paginated_update_pagination($this),$paginated_pages.removeClass("active").hide(),$paginated_pages.filter(".paginated_page_"+to_page).addClass("active").fadeIn("fast",function(){$("body").hasClass("et_fixed_nav")&&window_width>980?$menu_offset=$("#top-header").outerHeight()+$("#main-header").outerHeight()-1:$menu_offset=-1,$("body").animate({scrollTop:$this_paginated.offset().top-$menu_offset-et_calclate_admin_bar_height()-20},{duration:500})})}function paginated_update_pagination($this_paginated){var current_page=$this_paginated.data("current_page"),$pagination=$this_paginated.find(".pagination"),total_pages=$pagination.find("li").not(".arrow, .ellipsis").length,show_front=!1,show_back=!1;$pagination.find("li").removeClass("active"),$pagination.find("li").not(".arrow, .ellipsis").each(function(i){var $this=$(this);i+=1,i===current_page&&$this.addClass("active"),total_pages>5&&(1===i||i===total_pages?$this.show():4>i&&4>current_page?$this.show():i>total_pages-3&¤t_page>total_pages-3?$this.show():i>=current_page-1&¤t_page+1>=i?$this.show():$this.hide())}),total_pages>5&&(4>current_page?(show_back=!0,show_front=!1):total_pages-3>=current_page&¤t_page>=4?(show_back=!0,show_front=!0):current_page>total_pages-5?(show_front=!0,show_back=!1):(show_front=!1,show_back=!1),show_front?$pagination.find(".ellipsis.front").show():$pagination.find(".ellipsis.front").hide(),show_back?$pagination.find(".ellipsis.back").show():$pagination.find(".ellipsis.back").hide()),current_page>1?$pagination.find("li.prev").show():$pagination.find("li.prev").hide(),total_pages>current_page?$pagination.find("li.next").show():$pagination.find("li.next").hide()}function et_simple_marker_map($map_div){var map,marker,position;position=new google.maps.LatLng(parseFloat($map_div.data("lat")),parseFloat($map_div.data("lng"))),map=new google.maps.Map($map_div[0],{zoom:parseInt($map_div.data("zoom")),center:position,mapTypeId:google.maps.MapTypeId.ROADMAP}),marker=new google.maps.Marker({position:position,map:map})}function timeline_scroll(){admin_bar_height=et_calclate_admin_bar_height();var sticky_offset,$current_module,$this=$timeline,element_top=$this.offset().top,element_bottom=element_top+$this.height(),window_top=$(window).scrollTop()+admin_bar_height,window_bottom=window_top+$(window).height(),$timeline_modules=$timeline.find(".timeline-module"),total_timeline_modules=$timeline_modules.length,$last_module=$timeline_modules.last(),last_module_top=$last_module.offset().top,$next_module=null,$prev_module=null,fixed_nav_height=window.ET_App.Elements.$body.hasClass("et_fixed_nav")&&"fixed"===window.ET_App.Elements.$main_nav.css("position")&&"0"!==window.ET_App.Elements.$main_nav.css("opacity")?window.ET_App.Elements.$main_nav.innerHeight():0,menu_offset=window.ET_App.Elements.$body.hasClass("et_fixed_nav")?fixed_nav_height+15:$sticky_header.height()/2,last_item_top=$last_module.find(".posts-list > li").last().offset().top-sticky_header_height,menu_move_postion=element_bottom-$timeline_menu.height()-menu_offset;if(window_top>element_top-menu_offset?($timeline_menu.css({position:"fixed",marginTop:admin_bar_height+menu_offset+"px"}),window_top>menu_move_postion?(sticky_offset=menu_move_postion-window_top+"px",$timeline_menu.css("top",sticky_offset)):$timeline_menu.css("top",0)):$timeline_menu.css({position:"relative",marginTop:0,top:0}),window_top>last_item_top)sticky_offset=last_item_top-window_top+"px",$sticky_header.css("top",sticky_offset);else if(window_top>element_top){var find_current_module_eq=debounce(function(){$timeline_modules.each(function(index){return $(this).offset().top>window_top?(current_module_eq=index-1,!1):void 0})},200);find_current_module_eq(),window_bottom>=last_module_top-200&&timeline_load_content(),$current_module=$timeline_modules.eq(current_module_eq);var current_year=$current_module.data("year"),year_already_open=!$timeline_menu.find("li.year.year-"+current_year).is(":visible");0!==current_module_eq||timeline_hash_initialized||(timeline_hash_initialized=!0,timeline_set_location_hash()),year_already_open||timeline_menu_years_setup(),total_timeline_modules>current_module_eq+1&&($next_module=$timeline_modules.eq(current_module_eq+1)),current_module_eq>0&&($prev_module=$timeline_modules.eq(current_module_eq-1));var setup_active_menu_item=debounce(function(){var current_module_id=$current_module.attr("id"),$active_menu_item=$("a[href=#"+current_module_id+"]");$active_menu_item.closest("li").hasClass("active")||($active_menu_item.closest("li").siblings().removeClass("active"),$active_menu_item.closest("li").addClass("active"),timeline_set_location_hash())},500);setup_active_menu_item(),$sticky_header_month.text($current_module.find(".module-title-month").text()),$sticky_header_year.text($current_module.find(".module-title-year").text()),$current_module.hasClass("collapsed")?$sticky_header.addClass("collapsed"):$sticky_header.removeClass("collapsed"),$sticky_header.show().css({position:"fixed",marginTop:admin_bar_height+fixed_nav_height+"px",top:0,width:$this.width(),zIndex:100});var current_module_top=$current_module.offset().top;if(null!==$prev_module&&(current_module_top>window_top&&(sticky_offset=current_module_top-sticky_header_height-window_top+"px",$sticky_header.css("top",sticky_offset),$prev_module.hasClass("collapsed")?$sticky_header.addClass("collapsed"):$sticky_header.removeClass("collapsed"),$sticky_header_month.text($prev_module.find(".module-title-month").text()),$sticky_header_year.text($prev_module.find(".module-title-year").text())),current_module_top-sticky_header_height>window_top&&($sticky_header.css("top",0),current_module_eq-=1)),null!==$next_module){var next_module_top=$next_module.offset().top;window_top>next_module_top-sticky_header_height&&(sticky_offset=next_module_top-sticky_header_height-window_top+"px",$sticky_header.css("top",sticky_offset)),window_top>next_module_top&&($next_module.hasClass("collapsed")?$sticky_header.addClass("collapsed"):$sticky_header.removeClass("collapsed"),$sticky_header_month.text($next_module.find(".module-title-month").text()),$sticky_header_year.text($next_module.find(".module-title-year").text()),$sticky_header.css("top",0),current_module_eq+=1)}}else $sticky_header.hide(),$timeline_menu.find("li.active").length||$timeline_menu.find("li.month").first().addClass("active")}function timeline_menu_years_setup(){var $timeline_modules=$timeline.find(".timeline-module"),_current_module_eq=current_module_eq||0,$current_module=$timeline_modules.eq(_current_module_eq),current_year=$current_module.data("year");$timeline_menu.find("li.month").not(".year-"+current_year).slideUp("fast"),$timeline_menu.find("li.year").not(".year-"+current_year).slideDown("fast"),$timeline_menu.find("li.month.year-"+current_year).slideDown("fast"),$timeline_menu.find("li.year.year-"+current_year).slideUp("fast")}function timeline_menu_scroll($menu_item,$list_target){var $loader=$timeline_menu.find(".content-loader"),window_top=$(window).scrollTop()+admin_bar_height,direction_buffer=window_top>target_top?-3:3,target_top=$list_target.offset().top-admin_bar_height+direction_buffer;$loader.length&&$loader.fadeOut("fast",function(){$loader.remove()}),$("html, body").animate({scrollTop:target_top},timeline_menu_scroll_duration,"swing",function(){setTimeout(function(){if($menu_item.closest("li").siblings().removeClass("active"),$menu_item.closest("li").hasClass("year")){var year=$menu_item.data("year"),$first_menu_item_of_year=$timeline_menu.find("li.month.year-"+year).first();$first_menu_item_of_year.addClass("active")}else $menu_item.closest("li").addClass("active");timeline_set_location_hash(),$(window).trigger("scroll")},500)})}function timeline_load_content(opts,callback){if(!timeline_getting_more_content&&!timeline_content_complete){var $last_module=$("#timeline").find(".timeline-module").last(),last_month=$last_module.data("month"),last_year=$last_module.data("year");$timeline_loader.slideDown("fast"),timeline_getting_more_content=!0,callback="function"==typeof callback?callback:jQuery.noop,default_data={action:"extra_timeline_get_content",timeline_nonce:EXTRA.timeline_nonce,last_month:last_month,last_year:last_year},data=$.extend(!0,default_data,opts),$.ajax({type:"POST",url:EXTRA.ajaxurl,data:data,success:function(data){$timeline_loader.slideUp("fast"),data?($timeline_modules=$(data),et_single_col_breakpoint>=et_container_width&&$timeline_modules.each(function(){$(this).find(".posts-list").hide(),$(this).addClass("collapsed")}),$timeline_modules.insertAfter($last_module)):timeline_content_complete=!0,setTimeout(function(){timeline_getting_more_content=!1},250),callback()}})}}function tabbed_post_module_tab_change($tab){var $module=$tab.parents(".tabbed-post-module"),tab_id=$tab.data("tab-id"),$tab_content=$module.find(".tab-content-"+tab_id),term_color=$tab.data("term-color");$tab.css({color:term_color}),$module.css({borderTopColor:term_color}),$tab_content.siblings().hide(),$tab_content.stop().css({display:"flex"}).hide().fadeIn(300,"swing"),$tab.addClass("active").siblings().removeClass("active").css({color:""})}function et_slider_fix(){$et_slider.each(function(){var $slider=$(this);$slider.each(function(){var $the_slider=$(this),$the_slide=$the_slider.find(".carousel-item"),slide_max_height=0;$the_slider.removeAttr("style"),$the_slide.each(function(){var slide_height=$(this).height();(0===slide_max_height||slide_max_height>slide_height)&&(slide_max_height=slide_height)}),$the_slider.css({maxHeight:slide_max_height})})})}function et_featured_posts_slider_fix(){$featured_posts_slider_module.each(function(){var $featured_posts_slider=$(this),slider_width=$featured_posts_slider.width(),slider_height=slider_width/15.3*9;$featured_posts_slider.each(function(){var the_slider_height,nav_arrow_position_top,$the_slider=$(this),$the_slide=$the_slider.find(".carousel-item"),$post_content_box=$the_slider.find(".post-content-box"),$nav_arrow=$the_slider.find(".et-pb-slider-arrows a"),is_relative_caption="relative"===$post_content_box.css("position")?!0:!1,max_caption_height=0;$the_slide.css({height:""}),$nav_arrow.removeAttr("style"),$post_content_box.removeAttr("style"),is_relative_caption?($the_slide.each(function(){var post_content_box_height=$(this).find(".post-content-box").height();post_content_box_height>max_caption_height&&(max_caption_height=post_content_box_height)}),$post_content_box.css({minHeight:max_caption_height,marginTop:slider_height}),the_slider_height=$the_slider.height(),nav_arrow_position_top=(the_slider_height-max_caption_height)/2-20,$nav_arrow.css({top:nav_arrow_position_top,marginTop:0})):$the_slide.height(slider_height)})})}function et_posts_carousel_init(){$posts_carousel_module.each(function(){function fix_carousel_arrow_position(){var $updated_carousel_group=$the_carousel.find(".carousel-group"),$updated_carousel_group_thumb=$updated_carousel_group.find(".post-thumbnail"),updated_carousel_group_thumb_height=$updated_carousel_group_thumb.height(),carousel_arrow_constant=0===parseInt($updated_carousel_group_thumb.css("marginLeft"))?5:25,carousel_arrow_top=updated_carousel_group_thumb_height/2+carousel_arrow_constant;$the_carousel.find(".et-pb-slider-arrows a").css({top:carousel_arrow_top})}var $carousel_group,current_carousel_column,$the_carousel=$(this),$carousel_items=$the_carousel.find(".carousel-items"),carousel_width=$carousel_items.width(),$carousel_item=$carousel_items.find(".carousel-item"),carousel_item_width=$carousel_item.width(),carousel_item_thumb_width=$carousel_item.find(".post-thumbnail").width(),carousel_item_thumb_height=carousel_item_thumb_width/15*9,carousel_column=Math.round(carousel_width/carousel_item_width),index=0,min_height=0,$current_carousel_group=$the_carousel.find(".carousel-group"),skip_group_height=!1;if($carousel_item.find(".post-thumbnail").css({maxHeight:carousel_item_thumb_height}),$current_carousel_group.length){if(current_carousel_column=$carousel_items.find(".carousel-group:first .carousel-item").size(),current_carousel_column===carousel_column)return void fix_carousel_arrow_position();$current_carousel_group.each(function(){$(this).find(".carousel-item").each(function(){$(this).appendTo($carousel_items)})}).remove(),$the_carousel.find(".et-pb-slider-arrows").remove()}(carousel_column>4||1>carousel_column)&&(carousel_column=4,skip_group_height=!0),$carousel_items.find(".carousel-item").each(function(){var $the_carousel_item=$(this);carousel_column===index&&(index=0),0===index&&$("",{"class":"carousel-group et_pb_slide"}).appendTo($carousel_items),$the_carousel_item.appendTo($carousel_items.find(".carousel-group:last")),index++}),$carousel_group=$the_carousel.find(".carousel-group"),skip_group_height===!1&&$carousel_group.each(function(){var $the_carousel_group=$(this),carousel_group_height=$the_carousel_group.height();carousel_group_height>min_height&&(min_height=carousel_group_height,$carousel_group.css({"min-height":min_height}))}),$carousel_items.et_pb_simple_slider({slide:".et_pb_slide",arrows:".et-pb-slider-arrows",prev_arrow:".et-pb-arrow-prev",next_arrow:".et-pb-arrow-next",controls:".et-pb-controllers a",carousel_controls:".et_pb_carousel_item",control_active_class:"et-pb-active-control",fade_speed:500,use_arrows:!0,use_controls:!1,slideshow:!1,show_progress_bar:!1,tabs_animation:!1,use_carousel:!1}),$the_carousel.hasClass("loading")&&($the_carousel.removeClass("loading"),$carousel_item.removeClass("carousel-item-hide-on-load carousel-item-hide-on-load-medium carousel-item-hide-on-load-small")),$the_carousel.on("simple_slider_before_move_to",function(trigger,param){var $carousel=$(this),$next_slide=$(param.next_slide),active_slide_item_count=$carousel.find(".et-pb-active-slide .carousel-item").size(),next_slide_item_count=$next_slide.find(".carousel-item").size(),remaining_item_count=active_slide_item_count-next_slide_item_count;if(remaining_item_count>0){var correction_slide_index,$correction_slide,$correction_slide_item,is_next="next"===param.direction,carousel_item_count=$the_carousel.find(".carousel-group").size(),next_slide_index=$next_slide.index()+1;correction_slide_index=is_next?next_slide_index+1>carousel_item_count?1:next_slide_index+1:1>next_slide_index-1?carousel_item_count:next_slide_index-1,$correction_slide=$carousel.find(".carousel-group:nth-child("+correction_slide_index+")"),$the_carousel.addClass("et-pb-slide-is-transitioning"),is_next?($correction_slide_item=$correction_slide.find(".carousel-item:lt("+remaining_item_count+")"),$next_slide.append($correction_slide_item.clone())):($correction_slide_item=$correction_slide.find(".carousel-item:gt("+(active_slide_item_count-remaining_item_count-1)+")"),$next_slide.prepend($correction_slide_item.clone())),$the_carousel.one("simple_slider_after_move_to",function(){$correction_slide_item.remove(),$the_carousel.removeClass("et-pb-slide-is-transitioning")})}}),$(window).load(function(){fix_carousel_arrow_position()})})}function et_adjust_navigation_offset(){$(".nav > li > ul").css({left:"",right:""}),$(".nav").each(function(){var $nav=$(this),$first_level_menu_item=$nav.children("ul > li"),window_width=$(window).width();$first_level_menu_item.length&&$first_level_menu_item.each(function(){var $menu=$(this),$submenu=$menu.children("ul"),submenu_width=$submenu.width(),submenu_offset=$submenu.offset(),is_mega_menu=$menu.hasClass("mega-menu");!is_mega_menu&&$submenu.length&&window_widthwindow_top&&window_bottom>scroll_position)return;admin_bar_height>0&&window_width>600&&(menu_offset+=admin_bar_height),scroll_position-=menu_offset,$("html, body").animate({scrollTop:scroll_position},{duration:500,complete:function(){setTimeout(function(){var yScroll=document.body.scrollTop;window.location.hash=target_hash,document.body.scrollTop=yScroll},200)}})}}}),$back_to_top.length&&($(window).scroll(function(){$(this).scrollTop()>400?$back_to_top.show().removeClass("hidden").addClass("visible"):$back_to_top.removeClass("visible").addClass("hidden")}),$back_to_top.click(function(){$("html, body").animate({scrollTop:0},800)})),$social_share_icons.length&&$social_share_icons.on("click",".social-share-link",function(e){e.preventDefault();var new_window,$this=$(this),network_name=$this.data("network-name"),share_link=$this.attr("href"),new_window_height=450,new_window_width=550,new_window_left=$(window).width()/2-new_window_width/2,new_window_top=$(window).height()/2-new_window_height/2;if("basic_email"===network_name){var email_body,email_subject,email_mailto,new_line="%0A%0a",share_title=encodeURIComponent($this.data("share-title")),share_url=encodeURIComponent($this.data("share-url"));email_subject="Subject="+share_title,email_body="&body="+new_line+share_url+new_line,email_mailto="mailto:?"+email_subject+email_body,window.location.href=email_mailto}else"basic_print"===network_name?window.print():(new_window=window.open(share_link,"","scrollbars=1, height="+new_window_height+", width="+new_window_width+", left="+new_window_left+", top="+new_window_top),window.focus&&new_window.focus())}),et_is_mobile_device&&($(".et_builder_section_video_bg").each(function(){var $this_el=$(this);$this_el.css("visibility","hidden").closest(".et_builder_preload").removeClass("et_builder_preload")}),$("body").addClass("et_mobile_device"),et_is_ipad||$("body").addClass("et_mobile_device_not_ipad")),et_duplicate_menu($("#et-navigation ul.nav"),$("#et-mobile-navigation nav"),"et-extra-mobile-menu","et_extra_mobile_menu"),$("#top-header #et-info").length&&$("#et-navigation #et-extra-mobile-menu").before($("#top-header #et-info").clone()),$("#et-secondary-menu").length>0&&$("#et-navigation #et-extra-mobile-menu").append($("#et-secondary-menu").clone().html()),$(".show-menu").on("click",function(e){e.preventDefault(),$(this).children(".show-menu-button").toggleClass("toggled"),$("#et-mobile-navigation nav").stop().animate({height:"toggle",opacity:"toggle"},300)}),$(".et-top-search-primary-menu-item .search-icon").on("click",function(){$(this).parent().children(".et-top-search").stop().fadeToggle()}),$("#et-extra-mobile-menu .menu-item-has-children a").on("click",function(e){$(this).parent("li").children("ul").stop().animate({height:"toggle",opacity:"toggle"},300),$(this).toggleClass("selected",300)}),$("#et-extra-mobile-menu .menu-item-has-children > a").on("click",function(e){e.preventDefault()}),$("#et-trending-button").on("click",function(e){e.preventDefault(),$(this).toggleClass("toggled"),$("#et-secondary-menu").stop().animate({height:"toggle",opacity:"toggle"},300),$(this).toggleClass("selected",400)}),form_placeholders_init($comment_form),$et_builder_video_section.length&&$et_builder_video_section.find("video").mediaelementplayer({pauseOtherPlayers:!1,success:function(mediaElement,domObject){mediaElement.addEventListener("canplay",function(){resize_section_video_bg($(domObject)),center_video($(domObject))})}}),$et_trending_container.length){var $et_trending_posts=$et_trending_container.children(".et-trending-post"),et_trending_post_count=$et_trending_posts.length,et_trending_post_duration=1e4,et_trending_fade_speed=300,et_trending_active_post_eq=0;$et_trending_posts.not(".et-trending-post:first-child").hide(),setInterval(function(){trendingLoop()},et_trending_post_duration)}if($woocommerce_details_accordion.length&&$woocommerce_details_accordion.accordion({header:"> .group > .header",heightStyle:"content",collapsible:!0,active:$woocommerce_details_accordion.data("desc-tab-active")?0:!1}),$search_icon.length&&$search_icon.click(function(){var $this=$(this),$form=$this.siblings(".et-top-search"),$field=$form.find(".et-search-field");$form.toggleClass("search-form-visible"),$form.hasClass("search-form-visible")&&$field.select()}),$paginated.length&&$paginated.each(function(){var $this=$(this),$pagination=$this.find(".pagination");paginated_update_pagination($this),$pagination.on("click","a",function(e){var to_page,page_is_loaded,$this=$(this),$this_paginated=$this.closest(".paginated"),$loader=$this_paginated.find(".loader"),current_page=$this_paginated.data("current_page"),posts_per_page=$this_paginated.data("posts_per_page"),order=$this_paginated.data("order"),orderby=$this_paginated.data("orderby"),categories=$this_paginated.data("category_id"),show_featured_image=$this_paginated.data("show_featured_image"),blog_feed_module_type=$this_paginated.data("blog_feed_module_type"),et_column_type=$this_paginated.data("et_column_type"),show_author=$this_paginated.data("show_author"),show_categories=$this_paginated.data("show_categories"),show_date=$this_paginated.data("show_date"),show_rating=$this_paginated.data("show_rating"),show_more=$this_paginated.data("show_more"),show_comments=$this_paginated.data("show_comments"),date_format=$this_paginated.data("date_format"),content_length=$this_paginated.data("content_length"),hover_overlay_icon=$this_paginated.data("hover_overlay_icon");if(e.preventDefault(),!$this.hasClass("ellipsis"))if(to_page=$this.hasClass("arrow")?$this.hasClass("prev")?current_page-1:current_page+1:$this.data("page"),page_is_loaded=$this_paginated.find(".paginated_page_"+to_page).length)paginated_transition_page($this_paginated,to_page);else{var $to_page_link=$this;if($this.hasClass("arrow")&&($to_page_link=$this_paginated.find(".pagination-page-"+to_page)),$to_page_link_li=$to_page_link.parent(),$loader.appendTo($to_page_link_li),$to_page_link.hide(),$this_paginated.data("getting_more_content"))return;$this_paginated.data("getting_more_content",!0),$.ajax({type:"POST",url:EXTRA.ajaxurl,data:{action:"extra_blog_feed_get_content",blog_feed_nonce:EXTRA.blog_feed_nonce,to_page:to_page,posts_per_page:posts_per_page,order:order,orderby:orderby,categories:categories,show_featured_image:show_featured_image,blog_feed_module_type:blog_feed_module_type,et_column_type:et_column_type,show_author:show_author,show_categories:show_categories,show_date:show_date,show_rating:show_rating,show_more:show_more,show_comments:show_comments,date_format:date_format,content_length:content_length,hover_overlay_icon:hover_overlay_icon},success:function(data){if(data){var $new_page=$(data);$new_page.appendTo($this_paginated.find(".paginated_content")),paginated_transition_page($this_paginated,to_page),"undefined"!==$new_page.attr("data-columns")&&(salvattore.registerGrid($new_page[0]),salvattore.recreateColumns($new_page[0])),setTimeout(function(){re_init_new_content($new_page)},500)}setTimeout(function(){$this_paginated.data("getting_more_content",!1)},250),$loader.appendTo($this_paginated),$to_page_link.show()}})}})}),$post_format_map.length&&google.maps.event.addDomListener(window,"load",function(){$post_format_map.each(function(){et_simple_marker_map($(this))})}),$contact_form.length){var $contact_form_loader=$contact_form.find(".loader"),$contact_form_message=$contact_form.find(".message"),$contact_form_map=$(".contact-map");$contact_form_map.length&&et_simple_marker_map($contact_form_map);var update_contact_form_error_messages=debounce(function(errorMap){$contact_form_message.html("");for(var error in errorMap)error=errorMap[error],$contact_form_message.append(''+error.message+"
");$contact_form_message.slideDown("fast")},500);$contact_form.validate({rules:{contact_name:{required:!0},contact_email:{required:!0,email:!0}},messages:{contact_name:EXTRA.contact_error_name_required,contact_email:{required:EXTRA.contact_error_email_required,email:EXTRA.contact_error_email_invalid}},showErrors:function(errorsObj,errorMap){errorMap.length?update_contact_form_error_messages(errorMap):$contact_form_message.slideUp("fast",function(){$contact_form_message.html("")})},submitHandler:function(){$contact_form_loader.slideDown("fast"),$contact_form_message.slideUp("fast",function(){$contact_form_message.html("")}),$.ajax({type:"POST",url:EXTRA.ajaxurl,data:{action:"extra_contact_form_submit",nonce_extra_contact_form:$("#nonce_extra_contact_form").val(),contact_name:$("#contact_name").val(),contact_email:$("#contact_email").val(),contact_subject:$("#contact_subject").val(),contact_message:$("#contact_message").val()},dataType:"json",success:function(data){$contact_form_loader.slideUp("fast"),"undefined"==typeof data.message&&(data={message:EXTRA.error,type:"error"}),"success"===data.message.type&&($("#contact_name").val(""),$("#contact_email").val(""),$("#contact_subject").val(""),$("#contact_message").val("")),$contact_form_message.append(''+data.message+"
"),$contact_form_message.slideDown("fast",function(){$("body").animate({scrollTop:$contact_form_message.offset().top-50},{duration:200,complete:function(){setTimeout(function(){$contact_form_message.effect("highlight",{duration:1e3})},200)}})})}})}})}var timeline_set_location_hash=debounce(function(){var $timeline_modules=$timeline.find(".timeline-module"),$current_module=$timeline_modules.eq(current_module_eq),current_module_id=$current_module.attr("id"),$active_menu_item=$("a[href=#"+current_module_id+"]"),hash="timeline"+et_hash_module_param_seperator+$active_menu_item.attr("href").substring(1);et_set_hash(hash)},500);if($timeline.length){var current_module_eq=null,admin_bar_height=0,$sticky_header=$("#timeline-sticky-header"),$timeline_loader=$timeline.find(".loader"),$sticky_header_month=$sticky_header.find(".module-title-month"),$sticky_header_year=$sticky_header.find(".module-title-year"),$first_timeline_module=$(".timeline-module:visible").first(),first_module_border_top_width_px=$first_timeline_module.css("border-top-width"),first_module_border_top_width=first_module_border_top_width_px.substr(0,first_module_border_top_width_px.length-2),first_module_head_height=$first_timeline_module.find(".module-head").outerHeight(),sticky_header_height=parseInt(first_module_border_top_width)+parseInt(first_module_head_height),timeline_getting_more_content=!1,timeline_content_complete=!1,$timeline_menu=$("#timeline-menu"),timeline_menu_scroll_duration=1e3,timeline_hash_initialized=!1;$(window).on("scroll",timeline_scroll).trigger("scroll"),$timeline.on("et_hashchange",function(event){if(!timeline_hash_initialized){var params=event.params,month_year=params[0],$menu_item=$timeline_menu.find("a[href=#"+month_year+"]"),$target=$("#"+month_year);if(timeline_hash_initialized=!0,$target.length)timeline_menu_scroll($menu_item,$target);else{var month_year_array=month_year.split("_"),month=month_year_array[0],year=month_year_array[1];options={through_month:month,through_year:year},timeline_load_content(options,function(){setTimeout(function(){$target=$("#"+month_year),timeline_menu_scroll($menu_item,$target)},300)})}}}),et_single_col_breakpoint>=et_container_width&&$timeline.find(".timeline-module").each(function(){$(this).find(".posts-list").slideUp("fast"),$(this).addClass("collapsed")}),$sticky_header.addClass("container-width-change-notify").on("containerWidthChanged",function(){$sticky_header.css({width:$timeline.width()})}),$sticky_header.on("click",function(){var $current_module=$timeline.find(".timeline-module").eq(current_module_eq),$module_head=$current_module.find(".module-head");$module_head.click()}),$timeline.on("click",".module-head",function(){var $this=$(this),$module=$this.closest(".timeline-module"),$posts_list=$module.find(".posts-list");$module.hasClass("collapsed")?($posts_list.slideDown("fast"),$module.removeClass("collapsed")):($posts_list.slideUp("fast"),$module.addClass("collapsed"))}),$timeline_menu.on("click","a",function(e){var $this=$(this),year=$this.data("year"),$target=$($this.attr("href"));e.preventDefault(),$target.length||($target=$timeline.find(".timeline-module.year-"+year).first()),$target.length?timeline_menu_scroll($this,$target):($loading_img=$timeline_loader.find("img").clone(),$loading_img.addClass("content-loader"),$this.append($loading_img),options={through_year:year},timeline_load_content(options,function(){$target=$timeline.find(".timeline-module.year-"+year).first(),timeline_menu_scroll($this,$target)}))}),timeline_menu_years_setup()}if($comment_form.submit(function(){remove_placeholder_text($comment_form)}),$rating_stars.length&&$rating_stars.raty({half:!0,width:!1,space:!1,size:5,path:EXTRA.images_uri,starOn:"star-full.svg",starOff:"star-full.svg",starHalf:"star-half-full.svg",click:function(rating){$.ajax({type:"POST",url:EXTRA.ajaxurl,dataType:"json",data:{action:"extra_new_rating",rating_nonce:EXTRA.rating_nonce,post_id:$("#post_id").val(),rating:rating},success:function(){$("#rate-title").text(EXTRA.your_rating),$("#rating-stars").raty("readOnly",!0),$("#rating-stars").attr({title:""}),$("#rating-stars").find("img").each(function(){$(this).attr({title:"",alt:""})})}})}}),$post_module.length&&$post_module.find(".title-thumb-hover").each(function(){var $this=$(this),$thumb=$this.find(".post-thumbnail > img"),$title=$this.find(".post-content > h3 > a"),title_hover_color=$title.data("hover-color");$title.hover(function(){$thumb.addClass("hover"),$title.css({color:title_hover_color})},function(){$thumb.removeClass("hover"),$title.css("color","")})}),$tabbed_post_module.length&&$tabbed_post_module.each(function(){var $this=$(this),$tabs_container=$this.find(".tabs"),$tabs=$tabs_container.find("li"),tabs_count=$tabs.length,term_color=$tabs.first().data("term-color"),$arrow=$tabs_container.find(".arrow");$tabs.first().addClass("active").css({color:term_color}),$this.css({borderTopColor:term_color}),$tabs.hover(function(){$(this).css({color:$(this).data("term-color")})},function(){$(this).hasClass("active")||$(this).css({color:""})}),$tabs.click(function(e){var $tab=$(this),$ripple_div=$(''),ripple_size=60,ripple_offset=$tab.offset(),ripple_y=e.pageY-ripple_offset.top,ripple_x=e.pageX-ripple_offset.left;$(this).hasClass("active")||(tabbed_post_module_tab_change($tab),$ripple_div.css({top:ripple_y-ripple_size/2,left:ripple_x-ripple_size/2}).appendTo($tab)),window.setTimeout(function(){$ripple_div.remove()},900)}),$arrow.on("click",function(e){var to_tab_index,$to_tab,$this=$(this),$active_tab=$tabs.filter(".active"),active_tab_index=$active_tab.index();to_tab_index=$this.hasClass("prev")?0>=active_tab_index?tabs_count-1:active_tab_index-1:active_tab_index+1>=tabs_count?0:active_tab_index+1,$to_tab=$tabs.eq(to_tab_index),tabbed_post_module_tab_change($to_tab)})}),$et_slider.length&&($et_slider.each(function(){var $the_slider=$(this);$the_slider.each(function(){$the_slider.et_pb_simple_slider({slide:".carousel-item",arrows:".et-pb-slider-arrows",prev_arrow:".et-pb-arrow-prev",next_arrow:".et-pb-arrow-next",control_active_class:"et-pb-active-control",fade_speed:500,use_arrows:!0,use_controls:!1,slideshow:!1,slideshow_speed:7e3,show_progress_bar:!1,tabs_animation:!1,use_carousel:!1})})}),et_slider_fix(),window.addEventListener("resize",et_slider_fix)),$featured_posts_slider_module.length&&($featured_posts_slider_module.each(function(){var $the_slider=$(this);$the_slider.et_pb_simple_slider({slide:".et_pb_slide",arrows:".et-pb-slider-arrows",prev_arrow:".et-pb-arrow-prev",next_arrow:".et-pb-arrow-next",controls:".et-pb-controllers a",carousel_controls:".et_pb_carousel_item",control_active_class:"et-pb-active-control",fade_speed:500,use_arrows:!0,use_controls:!0,controls_class:"et-pb-controllers",slideshow:!1,slideshow_speed:7e3,show_progress_bar:!1,tabs_animation:!1,use_carousel:!1})}),et_featured_posts_slider_fix(),window.addEventListener("resize",et_featured_posts_slider_fix)),$posts_carousel_module.length&&(et_posts_carousel_init(),window.addEventListener("resize",et_posts_carousel_init)),$filterable_portfolio.length&&$filterable_portfolio.each(function(){var $portfolio_list=$(this).find(".filterable_portfolio_list"),$portfolio_filter=$(this).find(".filterable_portfolio_filter");$portfolio_filter.find("li:nth-child(2) a").addClass("current"),$portfolio_filter.find("li:first-child").on("click",function(){$portfolio_filter.toggleClass("opened")}),$portfolio_filter.on("click","a",function(e){$portfolio_filter.find("a").removeClass("current"),$(this).addClass("current"),e.preventDefault();var filter_cat=$(this).attr("rel");"undefined"!=typeof filter_cat&&filter_cat.length>0?($filter_items=$portfolio_list.find(".project_category_"+filter_cat),$hidden_items=$portfolio_list.find(".project").not($filter_items),$filter_items.show(),$hidden_items.hide()):$portfolio_list.find(".project").show()})}),et_adjust_navigation_offset(),window.addEventListener("resize",et_adjust_navigation_offset),$widget_et_recent_videos.length){$widget_et_recent_videos.each(function(){var is_embedded_video,$recent_videos_widget=$(this),$widget_video_wrapper=$recent_videos_widget.find(".widget_video_wrapper"),widget_video_width=$widget_video_wrapper.width(),widget_video_rational_min_height=widget_video_width/16*9,$new_widget_video_div=$("",{"class":"widget_video fadeIn"}),$new_video=$recent_videos_widget.find(".widget-video-item:first").clone().html().trim(),$empty_video=$recent_videos_widget.find(".widget-video-item-empty").clone().html().trim(),$new_widget_video=""!==$new_video?$new_widget_video_div.html($new_video):$new_widget_video_div.html($empty_video);$widget_video_wrapper.prepend($new_widget_video),is_embedded_video=$widget_video_wrapper.find("iframe").length,is_embedded_video&&$widget_video_wrapper.find(".widget_video.fadeIn").find("iframe").css({width:widget_video_width,height:widget_video_rational_min_height}),""===$new_video&&$widget_video_wrapper.find(".no-video-title").css({padding:widget_video_rational_min_height/2+"px 0"}),$recent_videos_widget.find("li:first a").addClass("active"),$recent_videos_widget.on("click",".title",function(event){event.preventDefault();var $title=$(this),video_id=$title.attr("data-video-id"),widget_video_width=$widget_video_wrapper.width(),widget_video_rational_min_height=widget_video_width/16*9,$new_widget_video_div=$("",{"class":"widget_video fadeIn"}),$new_video=$recent_videos_widget.find(".widget-video-item-"+video_id).clone().html().trim(),$empty_video=$recent_videos_widget.find(".widget-video-item-empty").clone().html().trim(),$new_widget_video=""!==$new_video?$new_widget_video_div.html($new_video):$new_widget_video_div.html($empty_video);$title.hasClass("active")||($recent_videos_widget.find(".widget_list a").removeClass("active"),$title.addClass("active"),$widget_video_wrapper.find(".widget_video").removeClass("fadeIn").addClass("fadeOut"),is_embedded_video=$new_widget_video.find("iframe").length,is_embedded_video&&$new_widget_video.find("iframe").css({width:widget_video_width,height:widget_video_rational_min_height}),$widget_video_wrapper.prepend($new_widget_video),""===$new_video&&$widget_video_wrapper.find(".no-video-title").css({padding:widget_video_rational_min_height/2+"px 0"}),setTimeout(function(){$widget_video_wrapper.find(".fadeOut").remove(),$widget_video_wrapper.animate({height:$widget_video_wrapper.find(".widget_video.fadeIn").children().outerHeight()})},500))}),$recent_videos_widget.on("click",".video-overlay",function(event){event.preventDefault(),et_play_overlayed_video($(this),".widget_video")})});var video_widget_resizer=debounce(function(){$widget_et_recent_videos.each(function(){var $recent_videos_widget=$(this),$widget_video_wrapper=$recent_videos_widget.find(".widget_video_wrapper"),$active_video=$widget_video_wrapper.find(".widget_video.fadeIn"),active_video_width=$active_video.width(),$active_video_content=$active_video.children(),$active_video_no_title=$active_video.find(".no-video-title"),is_no_video=$active_video_no_title.length?!0:!1,is_embedded_video=$active_video.find("iframe").length,widget_video_rational_min_height=active_video_width/16*9,widget_video_height=is_embedded_video?widget_video_rational_min_height:$active_video_content.outerHeight();is_no_video&&($active_video_no_title.css({padding:widget_video_rational_min_height/2+"px 0"}),widget_video_height=$active_video.outerHeight()),$widget_video_wrapper.css({height:widget_video_height}),is_embedded_video&&$active_video.find("iframe").css({width:active_video_width,height:widget_video_height})})});window.addEventListener("resize",video_widget_resizer)}$("#content-area").on("click",".hentry .video-overlay",function(event){event.preventDefault(),et_play_overlayed_video($(this),".video-format")})}),et_mobile_body_class(),$(window).ready(function(){$.fn.fitVids&&$("#main-content").fitVids({customSelector:"iframe[src^='http://www.hulu.com'], iframe[src^='http://www.dailymotion.com'], iframe[src^='http://www.funnyordie.com'], iframe[src^='https://embed-ssl.ted.com'], iframe[src^='http://embed.revision3.com'], iframe[src^='https://flickr.com'], iframe[src^='http://blip.tv'], iframe[src^='http://www.collegehumor.com']"}),et_fix_video_wmode(".fluid-width-video-wrapper")}),$(window).resize(function(){resize_section_video_bg(),center_video();var current_container_width=$et_container.width(),containerWidthChanged=et_container_width!==current_container_width;if(containerWidthChanged){var et_container_width_change_direction=et_container_width>current_container_width?"down":"up";et_mobile_body_class(),et_container_width=current_container_width,$(".container-width-change-notify").trigger("containerWidthChanged",{direction:et_container_width_change_direction})}})}(jQuery);