document.documentElement.className +=" js_active ", document.documentElement.className +="ontouchstart" in document.documentElement ? " vc_mobile ":" vc_desktop ",
function(){
for (var prefix=["-webkit-", "-moz-", "-ms-", "-o-", ""], i=0; i < prefix.length; i++) prefix[i] + "transform" in document.documentElement.style&&(document.documentElement.className +=" vc_transform ")
}(),
function($){
"function"!=typeof window.vc_js&&(window.vc_js=function(){
"use strict";
vc_toggleBehaviour(), vc_tabsBehaviour(), vc_accordionBehaviour(), vc_teaserGrid(), vc_carouselBehaviour(), vc_slidersBehaviour(), vc_prettyPhoto(), vc_pinterest(), vc_progress_bar(), vc_plugin_flexslider(), vc_gridBehaviour(), vc_rowBehaviour(), vc_prepareHoverBox(), vc_googleMapsPointer(), vc_ttaActivation(), vc_ttaToggleBehaviour(), jQuery(document).trigger("vc_js"), window.setTimeout(vc_waypoints, 500)
}), "function"!=typeof window.vc_plugin_flexslider&&(window.vc_plugin_flexslider=function($parent){
($parent ? $parent.find(".wpb_flexslider"):jQuery(".wpb_flexslider")).each(function(){
var this_element=jQuery(this),
sliderTimeout=1e3 * parseInt(this_element.attr("data-interval"), 10),
sliderFx=this_element.attr("data-flex_fx"),
slideshow=0==sliderTimeout ? !1:!0;
this_element.is(":visible")&&setTimeout(function(){
this_element.flexslider({
animation: sliderFx,
slideshow: slideshow,
slideshowSpeed: sliderTimeout,
sliderSpeed: 800,
smoothHeight: !0
})
}, 1)
})
}), "function"!=typeof window.vc_googleplus&&(window.vc_googleplus=function(){
var po, s;
0 < jQuery(".wpb_googleplus").length&&((po=document.createElement("script")).type="text/javascript", po.async = !0, po.src="https://apis.google.com/js/plusone.js", (s=document.getElementsByTagName("script")[0]).parentNode.insertBefore(po, s))
}), "function"!=typeof window.vc_pinterest&&(window.vc_pinterest=function(){
var po, s;
0 < jQuery(".wpb_pinterest").length&&((po=document.createElement("script")).type="text/javascript", po.async = !0, po.src="https://assets.pinterest.com/js/pinit.js", (s=document.getElementsByTagName("script")[0]).parentNode.insertBefore(po, s))
}), "function"!=typeof window.vc_progress_bar&&(window.vc_progress_bar=function(){
void 0!==jQuery.fn.vcwaypoint&&jQuery(".vc_progress_bar").each(function(){
var $el=jQuery(this);
$el.vcwaypoint(function(){
$el.find(".vc_single_bar").each(function(index){
var bar=jQuery(this).find(".vc_bar"),
val=bar.data("percentage-value");
setTimeout(function(){
bar.css({
width: val + "%"
})
}, 200 * index)
})
}, {
offset: "85%"
})
})
}), "function"!=typeof window.vc_waypoints&&(window.vc_waypoints=function(){
void 0!==jQuery.fn.vcwaypoint&&jQuery(".wpb_animate_when_almost_visible:not(.wpb_start_animation)").each(function(){
var $el=jQuery(this),
delay=jQuery(this).attr("data-delay");
$el.vcwaypoint(function(){
if("undefined"!=delay){
setTimeout(function(){
$el.addClass("wpb_start_animation animated")
},delay);
}else{
$el.addClass("wpb_start_animation animated")
}}, {
offset: "85%"
})
})
}), "function"!=typeof window.vc_toggleBehaviour&&(window.vc_toggleBehaviour=function($el){
function event(e){
e&&e.preventDefault&&e.preventDefault();
var element=jQuery(this).closest(".vc_toggle"),
e=element.find(".vc_toggle_content");
element.hasClass("vc_toggle_active") ? e.slideUp({
duration: 300,
complete: function(){
element.removeClass("vc_toggle_active")
}}):e.slideDown({
duration: 300,
complete: function(){
element.addClass("vc_toggle_active")
}})
}($el ? $el.hasClass("vc_toggle_title") ? $el.unbind("click"):$el.find(".vc_toggle_title").off("click"):jQuery(".vc_toggle_title").off("click")).on("click", event)
}), "function"!=typeof window.vc_ttaToggleBehaviour&&(window.vc_ttaToggleBehaviour=function($el){
function event(){
var toggle=jQuery(this);
toggle.toggleClass("wpb-tta-toggle-active"), toggle.parent().parent().parent().find(".vc_pagination-item").each(function(){
if(!$(this).hasClass("vc_active")) return $(this).find("a").click(), !1
})
}($el ? $el.find(".wpb-tta-toggle"):jQuery(".wpb-tta-toggle")).off("click").on("click", event), setTimeout(function(){
jQuery(".wpb-tta-toggle").each(function(){
var toggle=jQuery(this);
toggle.parent().parent().parent().find(".vc_tta-panels-container .vc_pagination li:first").hasClass("vc_active")||toggle.addClass("wpb-tta-toggle-active")
})
}, 1e3)
}), "function"!=typeof window.vc_tabsBehaviour&&(window.vc_tabsBehaviour=function($tab){
var ver, old_version;
jQuery.ui&&($tab=$tab||jQuery(".wpb_tabs, .wpb_tour"), ver=jQuery.ui&&jQuery.ui.version ? jQuery.ui.version.split("."):"1.10", old_version=1===parseInt(ver[0], 10)&&parseInt(ver[1], 10) < 9, $tab.each(function(index){
var interval=jQuery(this).attr("data-interval"),
tabs_array=[],
$tabs=jQuery(this).find(".wpb_tour_tabs_wrapper").tabs({
show: function(event, ui){
wpb_prepare_tab_content(event, ui)
},
activate: function(event, ui){
wpb_prepare_tab_content(event, ui)
}});
if(interval&&0 < interval) try {
$tabs.tabs("rotate", 1e3 * interval)
} catch (err){
window.console&&window.console.warn&&console.warn("tabs behaviours error", err)
}
jQuery(this).find(".wpb_tab").each(function(){
tabs_array.push(this.id)
}), jQuery(this).find(".wpb_tabs_nav li").on("click", function(e){
return e&&e.preventDefault&&e.preventDefault(), old_version ? $tabs.tabs("select", jQuery("a", this).attr("href")):$tabs.tabs("option", "active", jQuery(this).index()), !1
}), jQuery(this).find(".wpb_prev_slide a, .wpb_next_slide a").on("click", function(e){
var index;
e&&e.preventDefault&&e.preventDefault(), old_version ? (index=$tabs.tabs("option", "selected"), jQuery(this).parent().hasClass("wpb_next_slide") ? index++:index--, index < 0 ? index=$tabs.tabs("length") - 1:index >=$tabs.tabs("length")&&(index=0), $tabs.tabs("select", index)):(index=$tabs.tabs("option", "active"), e=$tabs.find(".wpb_tab").length, index=jQuery(this).parent().hasClass("wpb_next_slide") ? e <=index + 1 ? 0:index + 1:index - 1 < 0 ? e - 1:index - 1, $tabs.tabs("option", "active", index))
})
}))
}), "function"!=typeof window.vc_accordionBehaviour&&(window.vc_accordionBehaviour=function(){
jQuery(".wpb_accordion").each(function(index){
var $this=jQuery(this),
active_tab=($this.attr("data-interval"), !isNaN(jQuery(this).data("active-tab"))&&0 < parseInt($this.data("active-tab"), 10)&&parseInt($this.data("active-tab"), 10) - 1),
collapsible = !1===active_tab||"yes"===$this.data("collapsible"),
active_tab=$this.find(".wpb_accordion_wrapper").accordion({
header: "> div > h3",
autoHeight: !1,
heightStyle: "content",
active: active_tab,
collapsible: collapsible,
navigation: !0,
activate: vc_accordionActivate,
change: function(event, ui){
void 0!==jQuery.fn.isotope&&ui.newContent.find(".isotope").isotope("layout"), vc_carouselBehaviour(ui.newPanel)
}});
!0===$this.data("vcDisableKeydown")&&(active_tab.data("uiAccordion")._keydown=function(){})
})
}), "function"!=typeof window.vc_teaserGrid&&(window.vc_teaserGrid=function(){
var layout_modes={
fitrows: "fitRows",
masonry: "masonry"
};
jQuery(".wpb_grid .teaser_grid_container:not(.wpb_carousel), .wpb_filtered_grid .teaser_grid_container:not(.wpb_carousel)").each(function(){
var $container=jQuery(this),
$thumbs=$container.find(".wpb_thumbnails"),
layout_mode=$thumbs.attr("data-layout-mode");
$thumbs.isotope({
itemSelector: ".isotope-item",
layoutMode: void 0===layout_modes[layout_mode] ? "fitRows":layout_modes[layout_mode]
}), $container.find(".categories_filter a").data("isotope", $thumbs).on("click", function(e){
e&&e.preventDefault&&e.preventDefault();
e=jQuery(this).data("isotope");
jQuery(this).parent().parent().find(".active").removeClass("active"), jQuery(this).parent().addClass("active"), e.isotope({
filter: jQuery(this).attr("data-filter")
})
}), jQuery(window).on("load resize", function(){
$thumbs.isotope("layout")
})
})
}), "function"!=typeof window.vc_carouselBehaviour&&(window.vc_carouselBehaviour=function($parent){
($parent ? $parent.find(".wpb_carousel"):jQuery(".wpb_carousel")).each(function(){
var $this=jQuery(this);
!0!==$this.data("carousel_enabled")&&$this.is(":visible")&&($this.data("carousel_enabled", !0), getColumnsCount(jQuery(this)), jQuery(this).hasClass("columns_count_1"), ($this=jQuery(this).find(".wpb_thumbnails-fluid li")).css({
"margin-right": $this.css("margin-left"),
"margin-left": 0
}), ($this=jQuery(this).find("ul.wpb_thumbnails-fluid")).width($this.width() + 300))
})
}), "function"!=typeof window.vc_slidersBehaviour&&(window.vc_slidersBehaviour=function(){
jQuery(".wpb_gallery_slides").each(function(index){
var $imagesGrid, sliderTimeout, this_element=jQuery(this);
this_element.hasClass("wpb_slider_nivo") ? (0===(sliderTimeout=1e3 * this_element.attr("data-interval"))&&(sliderTimeout=9999999999), this_element.find(".nivoSlider").nivoSlider({
effect: "boxRainGrow,boxRain,boxRainReverse,boxRainGrowReverse",
slices: 15,
boxCols: 8,
boxRows: 4,
animSpeed: 800,
pauseTime: sliderTimeout,
startSlide: 0,
directionNav: !0,
directionNavHide: !0,
controlNav: !0,
keyboardNav: !1,
pauseOnHover: !0,
manualAdvance: !1,
prevText: "Prev",
nextText: "Next"
})):this_element.hasClass("wpb_image_grid")&&(jQuery.fn.imagesLoaded ? $imagesGrid=this_element.find(".wpb_image_grid_ul").imagesLoaded(function(){
$imagesGrid.isotope({
itemSelector: ".isotope-item",
layoutMode: "fitRows"
})
}):this_element.find(".wpb_image_grid_ul").isotope({
itemSelector: ".isotope-item",
layoutMode: "fitRows"
}))
})
}), "function"!=typeof window.vc_prettyPhoto&&(window.vc_prettyPhoto=function(){
try {
jQuery&&jQuery.fn&&jQuery.fn.prettyPhoto&&jQuery('a.prettyphoto, .gallery-icon a[href*=".jpg"]').prettyPhoto({
animationSpeed: "normal",
hook: "data-rel",
padding: 15,
opacity: .7,
showTitle: !0,
allowresize: !0,
counter_separator_label: "/",
hideflash: !1,
deeplinking: !1,
modal: !1,
callback: function(){
-1 < location.href.indexOf("#!prettyPhoto")&&(location.hash="")
},
social_tools: ""
})
} catch (err){
window.console&&window.console.warn&&window.console.warn("vc_prettyPhoto initialize error", err)
}}), "function"!=typeof window.vc_google_fonts&&(window.vc_google_fonts=function(){
return window.console&&window.console.warn&&window.console.warn("function vc_google_fonts is deprecated, no need to use it"), !1
}), window.vcParallaxSkroll = !1, "function"!=typeof window.vc_rowBehaviour&&(window.vc_rowBehaviour=function(){
var $=window.jQuery;
function fullWidthRow(){
var $elements=$('[data-vc-full-width="true"]'),
$layout=$("body").attr("data-layout"),
$layout_width=$("body").attr("data-layout-width"),
$container_margin=$("#container, #wrapper-out, #home, .creativo-elements-template-wrapper").attr("data-container-width"),
$overlay_color=$(".compose-mode .vc_row > .vc_row_gradient_bg ~ .vc_row_gradient_bg"),
$shape_div_top=$(".compose-mode .top_divider_visible > .vc_shape-divider-wrap.position_top ~ .vc_shape-divider-wrap.position_top"),
$shape_div_bottom=$(".compose-mode .bottom_divider_visible > .vc_shape-divider-wrap.position_bottom ~ .vc_shape-divider-wrap.position_bottom"),
$video_div=$(".compose-mode .vc_row > .video-bg ~ .video-bg"),
$container_pos=$(".container").attr("data-container-pos");
$.each($elements, function(key, item){
var $el=$(this);
$el.addClass("vc_hidden");
if($shape_div_top){
$shape_div_top.remove();
}
if($overlay_color){
$overlay_color.remove();
}
if($shape_div_bottom){
$shape_div_bottom.remove();
}
if($video_div){
$video_div.remove();
}
var $el_full=$el.next(".vc_row-full-width");
if($el_full.length||($el_full=$el.parent().next(".vc_row-full-width")), $el_full.length){
$container_pos!="top" ? $container_margin_offset=$container_pos=="right" ? 0:$container_margin:$container_margin_offset=0, $container_margin=$(window).width() > 1024 ? $container_margin:0;
var padding, paddingRight, el_margin_left=parseInt($el.css("margin-left"), 10),
el_margin_right=parseInt($el.css("margin-right"), 10),
offset=$(window).width() > 1024 ? $container_margin_offset - $el_full.offset().left - el_margin_left:-el_margin_left,
width=$(window).width() - $container_margin;
if($layout=="boxed"&&$(window).width() > 1025){
if($layout_width=="1160px") width=1170;
else width=990;
offset=0
}
if($('#one_page_modern').length > 0){
width=width + 17;
offset=offset - 8.5;
}
if(!$("body").hasClass("single-post")&&!$("body").hasClass("page-template-default")){
if("rtl"===$el.css("direction")&&(offset -=$el_full.width(), offset +=width, offset +=el_margin_left, offset +=el_margin_right), $el.css({
position: "relative",
left: offset,
"box-sizing": "border-box",
width: width
}), !$el.data("vcStretchContent")) "rtl"===$el.css("direction") ? ((padding=offset) < 0&&(padding=0), (paddingRight=offset) < 0&&(paddingRight=0)):((padding=-1 * offset) < 0&&(padding=0), (paddingRight=width - padding - $el_full.width() + el_margin_left + el_margin_right) < 0&&(paddingRight=0)), $el.css({
"padding-left": padding + "px",
"padding-right": paddingRight + "px"
});
}
$el.attr("data-vc-full-width-init", "true"), $el.removeClass("vc_hidden"), $(document).trigger("vc-full-width-row-single", {
el: $el,
offset: offset,
marginLeft: el_margin_left,
marginRight: el_margin_right,
elFull: $el_full,
width: width
})
}}), $(document).trigger("vc-full-width-row", $elements)
}
function fullHeightRow(){
var windowHeight, offsetTop, $element=$(".vc_row-o-full-height:first");
$element.length&&(windowHeight=$(window).height(), (offsetTop=$element.offset().top) < windowHeight)&&$element.css("min-height", 100 - offsetTop / (windowHeight / 100) + "vh"), $(document).trigger("vc-full-height-row", $element)
}
$(window).off("resize.vcRowBehaviour").on("resize.vcRowBehaviour", fullWidthRow).on("resize.vcRowBehaviour", fullHeightRow), fullWidthRow(), fullHeightRow(), (0 < window.navigator.userAgent.indexOf("MSIE ")||navigator.userAgent.match(/Trident.*rv\:11\./))&&$(".vc_row-o-full-height").each(function(){
"flex"===$(this).css("display")&&$(this).wrap('<div class="vc_ie-flexbox-fixer"></div>')
}), vc_initVideoBackgrounds();
var callSkrollInit = !1;
if(window.vcParallaxSkroll&&window.vcParallaxSkroll.destroy(), $(".vc_parallax-inner").remove(), $("[data-5p-top-bottom]").removeAttr("data-5p-top-bottom data-30p-top-bottom"), $("[data-vc-parallax]").each(function(){
var skrollrSize, $parallaxElement, parallaxImage, youtubeId;
callSkrollInit = !0, "on"===$(this).data("vcParallaxOFade")&&$(this).children().attr("data-5p-top-bottom", "opacity:0;").attr("data-30p-top-bottom", "opacity:1;"), skrollrSize=100 * $(this).data("vcParallax"), ($parallaxElement=$("<div />").addClass("vc_parallax-inner").appendTo($(this))).height(skrollrSize + "%"), parallaxImage=$(this).data("vcParallaxImage"), (youtubeId=vcExtractYoutubeId(parallaxImage)) ? insertYoutubeVideoAsBackground($parallaxElement, youtubeId):void 0!==parallaxImage&&$parallaxElement.css("background-image", "url(" + parallaxImage + ")"), $parallaxElement.attr("data-bottom-top", "top: " + -(skrollrSize - 100) + "%;").attr("data-top-bottom", "top: 0%;")
}), callSkrollInit&&window.skrollr) window.vcParallaxSkroll=skrollr.init({
forceHeight: !1,
smoothScrolling: !1,
mobileCheck: function(){
return !1
}}), window.vcParallaxSkroll
}), "function"!=typeof window.vc_gridBehaviour&&(window.vc_gridBehaviour=function(){
jQuery.fn.vcGrid&&jQuery("[data-vc-grid]").vcGrid()
}), "function"!=typeof window.getColumnsCount&&(window.getColumnsCount=function(el){
for (var find = !1, i=1; !1===find;){
if(el.hasClass("columns_count_" + i)) return find = !0, i;
i++
}}), "function"!=typeof window.wpb_prepare_tab_content&&(window.wpb_prepare_tab_content=function(event, ui){
var panel=ui.panel||ui.newPanel,
$pie_charts=panel.find(".vc_pie_chart:not(.vc_ready)"),
$round_charts=panel.find(".vc_round-chart"),
$line_charts=panel.find(".vc_line-chart"),
$carousel=panel.find('[data-ride="vc_carousel"]');
vc_carouselBehaviour(), vc_plugin_flexslider(panel), ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){
var grid=jQuery(this).data("vcGrid");
grid&&grid.gridBuilder&&grid.gridBuilder.setMasonry&&grid.gridBuilder.setMasonry()
}), panel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&panel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){
var grid=jQuery(this).data("vcGrid");
grid&&grid.gridBuilder&&grid.gridBuilder.setMasonry&&grid.gridBuilder.setMasonry()
}), $pie_charts.length&&jQuery.fn.vcChat&&$pie_charts.vcChat(), $round_charts.length&&jQuery.fn.vcRoundChart&&$round_charts.vcRoundChart({
reload: !1
}), $line_charts.length&&jQuery.fn.vcLineChart&&$line_charts.vcLineChart({
reload: !1
}), $carousel.length&&jQuery.fn.carousel&&$carousel.carousel("resizeAction"), ui=panel.find(".isotope, .wpb_image_grid_ul"), $pie_charts=panel.find(".wpb_gmaps_widget"), 0 < ui.length&&ui.isotope("layout"), $pie_charts.length&&!$pie_charts.is(".map_ready")&&(($round_charts=$pie_charts.find("iframe")).attr("src", $round_charts.attr("src")), $pie_charts.addClass("map_ready")), panel.parents(".isotope").length&&panel.parents(".isotope").each(function(){
jQuery(this).isotope("layout")
}), $(document).trigger("wpb_prepare_tab_content", panel)
}), "function"!=typeof window.vc_ttaActivation&&(window.vc_ttaActivation=function(){
jQuery("[data-vc-accordion]").on("show.vc.accordion", function(e){
var $=window.jQuery,
ui={};
ui.newPanel=$(this).data("vc.accordion").getTarget(), window.wpb_prepare_tab_content(e, ui)
})
}), "function"!=typeof window.vc_accordionActivate&&(window.vc_accordionActivate=function(event, ui){
var $pie_charts, $round_charts, $line_charts, $carousel;
ui.newPanel.length&&ui.newHeader.length&&($pie_charts=ui.newPanel.find(".vc_pie_chart:not(.vc_ready)"), $round_charts=ui.newPanel.find(".vc_round-chart"), $line_charts=ui.newPanel.find(".vc_line-chart"), $carousel=ui.newPanel.find('[data-ride="vc_carousel"]'), void 0!==jQuery.fn.isotope&&ui.newPanel.find(".isotope, .wpb_image_grid_ul").isotope("layout"), ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){
var grid=jQuery(this).data("vcGrid");
grid&&grid.gridBuilder&&grid.gridBuilder.setMasonry&&grid.gridBuilder.setMasonry()
}), vc_carouselBehaviour(ui.newPanel), vc_plugin_flexslider(ui.newPanel), $pie_charts.length&&jQuery.fn.vcChat&&$pie_charts.vcChat(), $round_charts.length&&jQuery.fn.vcRoundChart&&$round_charts.vcRoundChart({
reload: !1
}), $line_charts.length&&jQuery.fn.vcLineChart&&$line_charts.vcLineChart({
reload: !1
}), $carousel.length&&jQuery.fn.carousel&&$carousel.carousel("resizeAction"), ui.newPanel.parents(".isotope").length)&&ui.newPanel.parents(".isotope").each(function(){
jQuery(this).isotope("layout")
})
}), "function"!=typeof window.initVideoBackgrounds&&(window.initVideoBackgrounds=function(){
return window.console&&window.console.warn&&window.console.warn("this function is deprecated use vc_initVideoBackgrounds"), vc_initVideoBackgrounds()
}), "function"!=typeof window.vc_initVideoBackgrounds&&(window.vc_initVideoBackgrounds=function(){
jQuery("[data-vc-video-bg]").each(function(){
var youtubeUrl, $element=jQuery(this);
$element.data("vcVideoBg") ? (youtubeUrl=$element.data("vcVideoBg"), (youtubeUrl=vcExtractYoutubeId(youtubeUrl))&&($element.find(".vc_video-bg").remove(), insertYoutubeVideoAsBackground($element, youtubeUrl)), jQuery(window).on("grid:items:added", function(event, $grid){
$element.has($grid).length&&vcResizeVideoBackground($element)
})):$element.find(".vc_video-bg").remove()
})
}), "function"!=typeof window.insertYoutubeVideoAsBackground&&(window.insertYoutubeVideoAsBackground=function($element, youtubeId, counter){
if("undefined"==typeof YT||void 0===YT.Player) return 100 < (counter=void 0===counter ? 0:counter) ? void console.warn("Too many attempts to load YouTube api"):void setTimeout(function(){
insertYoutubeVideoAsBackground($element, youtubeId, counter++)
}, 100);
var $container=$element.prepend('<div class="vc_video-bg"><div class="inner"></div></div>').find(".inner");
new YT.Player($container[0], {
width: "100%",
height: "100%",
videoId: youtubeId,
playerVars: {
playlist: youtubeId,
iv_load_policy: 3,
enablejsapi: 1,
disablekb: 1,
autoplay: 1,
controls: 0,
showinfo: 0,
rel: 0,
loop: 1,
mute: 1,
wmode: "transparent"
},
events: {
onReady: function(event){
event.target.mute().setLoop(!0)
}}
}), vcResizeVideoBackground($element), jQuery(window).on("resize", function(){
vcResizeVideoBackground($element)
})
}), "function"!=typeof window.vcResizeVideoBackground&&(window.vcResizeVideoBackground=function($element){
var iframeW, iframeH, marginLeft, marginTop, containerW=$element.innerWidth(),
containerH=$element.innerHeight();
containerW / containerH < 16 / 9 ? (iframeW=containerH * (16 / 9), iframeH=containerH, marginLeft=-Math.round((iframeW - containerW) / 2) + "px", marginTop=-Math.round((iframeH - containerH) / 2) + "px"):(iframeH=(iframeW=containerW) * (9 / 16), marginTop=-Math.round((iframeH - containerH) / 2) + "px", marginLeft=-Math.round((iframeW - containerW) / 2) + "px"), iframeW +="px", iframeH +="px", $element.find(".vc_video-bg iframe").css({
maxWidth: "1000%",
marginLeft: marginLeft,
marginTop: marginTop,
width: iframeW,
height: iframeH
})
}), "function"!=typeof window.vcExtractYoutubeId&&(window.vcExtractYoutubeId=function(url){
return void 0!==url&&null!==(url=url.match(/(?:https?:\/{2})?(?:w{3}\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\?v=|\/)([^\s&]+)/))&&url[1]
}), "function"!=typeof window.vc_googleMapsPointer&&(window.vc_googleMapsPointer=function(){
var $=window.jQuery,
$wpbGmapsWidget=$(".wpb_gmaps_widget");
$wpbGmapsWidget.on("click", function(){
$("iframe", this).css("pointer-events", "auto")
}), $wpbGmapsWidget.on("mouseleave", function(){
$("iframe", this).css("pointer-events", "none")
}), $(".wpb_gmaps_widget iframe").css("pointer-events", "none")
}), "function"!=typeof window.vc_setHoverBoxPerspective&&(window.vc_setHoverBoxPerspective=function(hoverBox){
hoverBox.each(function(){
var $this=jQuery(this),
width=$this.width();
$this.css("perspective", 4 * width + "px")
})
}), "function"!=typeof window.vc_setHoverBoxHeight&&(window.vc_setHoverBoxHeight=function(hoverBox){
hoverBox.each(function(){
var $this=jQuery(this),
hoverBoxInner=$this.find(".vc-hoverbox-inner"),
frontHeight=(hoverBoxInner.css("min-height", 0), $this.find(".vc-hoverbox-front-inner").outerHeight()),
$this=$this.find(".vc-hoverbox-back-inner").outerHeight(),
frontHeight=$this < frontHeight ? frontHeight:$this;
hoverBoxInner.css("min-height", (frontHeight=frontHeight < 250 ? 250:frontHeight) + "px")
})
}), "function"!=typeof window.vc_prepareHoverBox&&(window.vc_prepareHoverBox=function(){
var hoverBox=jQuery(".vc-hoverbox");
vc_setHoverBoxHeight(hoverBox), vc_setHoverBoxPerspective(hoverBox)
}), jQuery(document).ready(window.vc_prepareHoverBox), jQuery(window).on("resize", window.vc_prepareHoverBox), jQuery(document).ready(function($){
window.vc_js()
})
}(window.jQuery);
!function(){"use strict";var e=0,r={};function i(t){if(!t)throw new Error("No options passed to Waypoint constructor");if(!t.element)throw new Error("No element option passed to Waypoint constructor");if(!t.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+e,this.options=i.Adapter.extend({},i.defaults,t),this.element=this.options.element,this.adapter=new i.Adapter(this.element),this.callback=t.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=i.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=i.Context.findOrCreateByElement(this.options.context),i.offsetAliases[this.options.offset]&&(this.options.offset=i.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),r[this.key]=this,e+=1}i.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},i.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},i.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete r[this.key]},i.prototype.disable=function(){return this.enabled=!1,this},i.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},i.prototype.next=function(){return this.group.next(this)},i.prototype.previous=function(){return this.group.previous(this)},i.invokeAll=function(t){var e=[];for(var i in r)e.push(r[i]);for(var o=0,n=e.length;o<n;o++)e[o][t]()},i.destroyAll=function(){i.invokeAll("destroy")},i.disableAll=function(){i.invokeAll("disable")},i.enableAll=function(){for(var t in i.Context.refreshAll(),r)r[t].enabled=!0;return this},i.refreshAll=function(){i.Context.refreshAll()},i.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},i.viewportWidth=function(){return document.documentElement.clientWidth},i.adapters=[],i.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},i.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.VcWaypoint=i}(),function(){"use strict";function e(t){window.setTimeout(t,1e3/60)}var i=0,o={},y=window.VcWaypoint,t=window.onload;function n(t){this.element=t,this.Adapter=y.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,y.windowContext||(y.windowContext=!0,y.windowContext=new n(window)),this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}n.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},n.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical),i=this.element==this.element.window;t&&e&&!i&&(this.adapter.off(".vcwaypoints"),delete o[this.key])},n.prototype.createThrottledResizeHandler=function(){var t=this;function e(){t.handleResize(),t.didResize=!1}this.adapter.on("resize.vcwaypoints",function(){t.didResize||(t.didResize=!0,y.requestAnimationFrame(e))})},n.prototype.createThrottledScrollHandler=function(){var t=this;function e(){t.handleScroll(),t.didScroll=!1}this.adapter.on("scroll.vcwaypoints",function(){t.didScroll&&!y.isTouch||(t.didScroll=!0,y.requestAnimationFrame(e))})},n.prototype.handleResize=function(){y.Context.refreshAll()},n.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?o.forward:o.backward;for(var r in this.waypoints[i]){var s=this.waypoints[i][r];if(null!==s.triggerPoint){var a=o.oldScroll<s.triggerPoint,l=o.newScroll>=s.triggerPoint;(a&&l||!a&&!l)&&(s.queueTrigger(n),t[s.group.id]=s.group)}}}for(var h in t)t[h].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},n.prototype.innerHeight=function(){return this.element==this.element.window?y.viewportHeight():this.adapter.innerHeight()},n.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},n.prototype.innerWidth=function(){return this.element==this.element.window?y.viewportWidth():this.adapter.innerWidth()},n.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var i in this.waypoints[e])t.push(this.waypoints[e][i]);for(var o=0,n=t.length;o<n;o++)t[o].destroy()},n.prototype.refresh=function(){var t,e=this.element==this.element.window,i=e?void 0:this.adapter.offset(),o={};for(var n in this.handleScroll(),t={horizontal:{contextOffset:e?0:i.left,contextScroll:e?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:e?0:i.top,contextScroll:e?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}}){var r=t[n];for(var s in this.waypoints[n]){var a,l,h,p,c=this.waypoints[n][s],u=c.options.offset,d=c.triggerPoint,f=0,w=null==d;c.element!==c.element.window&&(f=c.adapter.offset()[r.offsetProp]),"function"==typeof u?u=u.apply(c):"string"==typeof u&&(u=parseFloat(u),-1<c.options.offset.indexOf("%")&&(u=Math.ceil(r.contextDimension*u/100))),a=r.contextScroll-r.contextOffset,c.triggerPoint=Math.floor(f+a-u),l=d<r.oldScroll,h=c.triggerPoint>=r.oldScroll,p=!l&&!h,!w&&(l&&h)?(c.queueTrigger(r.backward),o[c.group.id]=c.group):!w&&p?(c.queueTrigger(r.forward),o[c.group.id]=c.group):w&&r.oldScroll>=c.triggerPoint&&(c.queueTrigger(r.forward),o[c.group.id]=c.group)}}return y.requestAnimationFrame(function(){for(var t in o)o[t].flushTriggers()}),this},n.findOrCreateByElement=function(t){return n.findByElement(t)||new n(t)},n.refreshAll=function(){for(var t in o)o[t].refresh()},n.findByElement=function(t){return o[t.waypointContextKey]},window.onload=function(){t&&t(),n.refreshAll()},y.requestAnimationFrame=function(t){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||e).call(window,t)},y.Context=n}(),function(){"use strict";function s(t,e){return t.triggerPoint-e.triggerPoint}function a(t,e){return e.triggerPoint-t.triggerPoint}var e={vertical:{},horizontal:{}},i=window.VcWaypoint;function o(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),e[this.axis][this.name]=this}o.prototype.add=function(t){this.waypoints.push(t)},o.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},o.prototype.flushTriggers=function(){for(var t in this.triggerQueues){var e=this.triggerQueues[t],i="up"===t||"left"===t;e.sort(i?a:s);for(var o=0,n=e.length;o<n;o+=1){var r=e[o];(r.options.continuous||o===e.length-1)&&r.trigger([t])}}this.clearTriggerQueues()},o.prototype.next=function(t){this.waypoints.sort(s);var e=i.Adapter.inArray(t,this.waypoints);return e===this.waypoints.length-1?null:this.waypoints[e+1]},o.prototype.previous=function(t){this.waypoints.sort(s);var e=i.Adapter.inArray(t,this.waypoints);return e?this.waypoints[e-1]:null},o.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},o.prototype.remove=function(t){var e=i.Adapter.inArray(t,this.waypoints);-1<e&&this.waypoints.splice(e,1)},o.prototype.first=function(){return this.waypoints[0]},o.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},o.findOrCreate=function(t){return e[t.axis][t.name]||new o(t)},i.Group=o}(),function(){"use strict";var i=window.jQuery,t=window.VcWaypoint;function o(t){this.$element=i(t)}i.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(t,e){o.prototype[e]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[e].apply(this.$element,t)}}),i.each(["extend","inArray","isEmptyObject"],function(t,e){o[e]=i[e]}),t.adapters.push({name:"jquery",Adapter:o}),t.Adapter=o}(),function(){"use strict";var n=window.VcWaypoint;function t(o){return function(){var e=[],i=arguments[0];return o.isFunction(arguments[0])&&((i=o.extend({},arguments[1])).handler=arguments[0]),this.each(function(){var t=o.extend({},i,{element:this});"string"==typeof t.context&&(t.context=o(this).closest(t.context)[0]),e.push(new n(t))}),e}}window.jQuery&&(window.jQuery.fn.vcwaypoint=t(window.jQuery)),window.Zepto&&(window.Zepto.fn.vcwaypoint=t(window.Zepto))}();
!function($){"use strict";var Accordion,clickHandler,old,hashNavigation;function Plugin(action,options){var args=Array.prototype.slice.call(arguments,1);return this.each(function(){var $this=$(this),data=$this.data("vc.accordion");data||(data=new Accordion($this,$.extend(!0,{},options)),$this.data("vc.accordion",data)),"string"==typeof action&&data[action].apply(data,args)})}(Accordion=function($element,options){this.$element=$element,this.activeClass="vc_active",this.animatingClass="vc_animating",this.useCacheFlag=void 0,this.$target=void 0,this.$targetContent=void 0,this.selector=void 0,this.$container=void 0,this.animationDuration=void 0,this.index=0}).transitionEvent=function(){var transition,el=document.createElement("vcFakeElement"),transitions={transition:"transitionend",MSTransition:"msTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(transition in transitions)if(void 0!==el.style[transition])return transitions[transition]},Accordion.emulateTransitionEnd=function($el,duration){var called=!1;duration=duration||250,$el.one(Accordion.transitionName,function(){called=!0}),setTimeout(function(){called||$el.trigger(Accordion.transitionName)},duration)},Accordion.DEFAULT_TYPE="collapse",Accordion.transitionName=Accordion.transitionEvent(),Accordion.prototype.controller=function(options){var $this=this.$element,action=options;"string"==typeof(action=void 0===(action="string"!=typeof action?$this.data("vcAction")||this.getContainer().data("vcAction"):action)?Accordion.DEFAULT_TYPE:action)&&Plugin.call($this,action,options)},Accordion.prototype.isCacheUsed=function(){var that=this;return void 0===this.useCacheFlag&&(this.useCacheFlag=function(){return!1!==that.$element.data("vcUseCache")}()),this.useCacheFlag},Accordion.prototype.getSelector=function(){var $this=this.$element,findSelector=function(){var selector=$this.data("vcTarget");return selector=selector||$this.attr("href")};return this.isCacheUsed()?(void 0===this.selector&&(this.selector=findSelector()),this.selector):findSelector()},Accordion.prototype.findContainer=function(){var $container=this.$element.closest(this.$element.data("vcContainer"));return $container=$container.length?$container:$("body")},Accordion.prototype.getContainer=function(){return this.isCacheUsed()?(void 0===this.$container&&(this.$container=this.findContainer()),this.$container):this.findContainer()},Accordion.prototype.getTarget=function(){var that=this,selector=that.getSelector(),getTarget=function(){var element=that.getContainer().find(selector);return element=element.length?element:that.getContainer().filter(selector)};return this.isCacheUsed()?(void 0===this.$target&&(this.$target=getTarget()),this.$target):getTarget()},Accordion.prototype.getTargetContent=function(){var $targetContent,$target=this.getTarget();return this.isCacheUsed()?(void 0===this.$targetContent&&(($targetContent=$target).data("vcContent")&&!($targetContent=$target.find($target.data("vcContent"))).length&&($targetContent=$target),this.$targetContent=$targetContent),this.$targetContent):$target.data("vcContent")&&($targetContent=$target.find($target.data("vcContent"))).length?$targetContent:$target},Accordion.prototype.getTriggers=function(){var i=0;return this.getContainer().find("[data-vc-accordion]").each(function(){var $this=$(this),accordion=$this.data("vc.accordion");void 0===accordion&&($this.vcAccordion(),accordion=$this.data("vc.accordion")),accordion&&accordion.setIndex&&accordion.setIndex(i++)})},Accordion.prototype.setIndex=function(index){this.index=index},Accordion.prototype.getIndex=function(){return this.index},Accordion.prototype.triggerEvent=function(event,opt){"string"==typeof event&&(event=$.Event(event),this.$element.trigger(event,opt))},Accordion.prototype.getActiveTriggers=function(){return this.getTriggers().filter(function(){var accordion=$(this).data("vc.accordion");return accordion.getTarget().hasClass(accordion.activeClass)})},Accordion.prototype.changeLocationHash=function(){var id,$target=this.getTarget();(id=$target.length?$target.attr("id"):id)&&(history.pushState?history.pushState(null,null,"#"+id):location.hash="#"+id)},Accordion.prototype.isActive=function(){return this.getTarget().hasClass(this.activeClass)},Accordion.prototype.getAnimationDuration=function(){var that=this,findAnimationDuration=function(){return void 0===Accordion.transitionName?"0s":that.getTargetContent().css("transition-duration").split(",")[0]};return this.isCacheUsed()?(void 0===this.animationDuration&&(this.animationDuration=findAnimationDuration()),this.animationDuration):findAnimationDuration()},Accordion.prototype.getAnimationDurationMilliseconds=function(){var duration=this.getAnimationDuration();return"ms"===duration.substr(-2)?parseInt(duration):"s"===duration.substr(-1)?Math.round(1e3*parseFloat(duration)):void 0},Accordion.prototype.isAnimated=function(){return 0<parseFloat(this.getAnimationDuration())},Accordion.prototype.show=function(opt){var that=this,$target=that.getTarget(),$targetContent=that.getTargetContent();that.isActive()||(that.isAnimated()?(that.triggerEvent("beforeShow.vc.accordion"),$target.queue(function(next){$targetContent.one(Accordion.transitionName,function(){$target.removeClass(that.animatingClass),$targetContent.attr("style",""),that.triggerEvent("afterShow.vc.accordion",opt)}),Accordion.emulateTransitionEnd($targetContent,that.getAnimationDurationMilliseconds()+100),next()}).queue(function(next){$targetContent.attr("style",""),$targetContent.css({position:"absolute",visibility:"hidden",display:"block"});var height=$targetContent.height();$targetContent.data("vcHeight",height),$targetContent.attr("style",""),next()}).queue(function(next){$targetContent.height(0),$targetContent.css({"padding-top":0,"padding-bottom":0}),next()}).queue(function(next){$target.addClass(that.animatingClass),$target.addClass(that.activeClass),("object"==typeof opt&&opt.hasOwnProperty("changeHash")&&opt.changeHash||void 0===opt)&&that.changeLocationHash(),that.triggerEvent("show.vc.accordion",opt),next()}).queue(function(next){var height=$targetContent.data("vcHeight");$targetContent.animate({height:height},{duration:that.getAnimationDurationMilliseconds(),complete:function(){$targetContent.data("events")||$targetContent.attr("style","")}}),$targetContent.css({"padding-top":"","padding-bottom":""}),next()})):($target.addClass(that.activeClass),that.triggerEvent("show.vc.accordion",opt)))},Accordion.prototype.hide=function(opt){var that=this,$target=that.getTarget(),$targetContent=that.getTargetContent();that.isActive()&&(that.isAnimated()?(that.triggerEvent("beforeHide.vc.accordion"),$target.queue(function(next){$targetContent.one(Accordion.transitionName,function(){$target.removeClass(that.animatingClass),$targetContent.attr("style",""),that.triggerEvent("afterHide.vc.accordion",opt)}),Accordion.emulateTransitionEnd($targetContent,that.getAnimationDurationMilliseconds()+100),next()}).queue(function(next){$target.addClass(that.animatingClass),$target.removeClass(that.activeClass),that.triggerEvent("hide.vc.accordion",opt),next()}).queue(function(next){var height=$targetContent.height();$targetContent.height(height),next()}).queue(function(next){$targetContent.animate({height:0},that.getAnimationDurationMilliseconds()),$targetContent.css({"padding-top":0,"padding-bottom":0}),next()})):($target.removeClass(that.activeClass),that.triggerEvent("hide.vc.accordion",opt)))},Accordion.prototype.toggle=function(opt){var $this=this.$element;this.isActive()?Plugin.call($this,"hide",opt):Plugin.call($this,"show",opt)},Accordion.prototype.dropdown=function(opt){var $this=this.$element;this.isActive()?Plugin.call($this,"hide",opt):(Plugin.call($this,"show",opt),$(document).on("click.vc.accordion.data-api.dropdown",function(e){Plugin.call($this,"hide",opt),$(document).off(e)}))},Accordion.prototype.collapse=function(opt){var $this=this.$element,$triggers=this.getActiveTriggers().filter(function(){return $this[0]!==this});$triggers.length&&Plugin.call($triggers,"hide",opt),Plugin.call($this,"show",opt)},Accordion.prototype.collapseAll=function(opt){var $this=this.$element,$triggers=this.getActiveTriggers().filter(function(){return $this[0]!==this});$triggers.length&&Plugin.call($triggers,"hide",opt),Plugin.call($this,"toggle",opt)},Accordion.prototype.showNext=function(opt){var activeIndex,$triggers=this.getTriggers(),$activeTriggers=this.getActiveTriggers();$triggers.length&&(-1<(activeIndex=$activeTriggers.length&&($activeTriggers=$activeTriggers.eq($activeTriggers.length-1).vcAccordion().data("vc.accordion"))&&$activeTriggers.getIndex?$activeTriggers.getIndex():activeIndex)&&activeIndex+1<$triggers.length?Plugin.call($triggers.eq(activeIndex+1),"controller",opt):Plugin.call($triggers.eq(0),"controller",opt))},Accordion.prototype.showPrev=function(opt){var activeIndex,$triggers=this.getTriggers(),$activeTriggers=this.getActiveTriggers();$triggers.length&&($activeTriggers.length&&($activeTriggers=$activeTriggers.eq($activeTriggers.length-1).vcAccordion().data("vc.accordion"))&&$activeTriggers.getIndex&&(activeIndex=$activeTriggers.getIndex()),Plugin.call(-1<activeIndex?0<=activeIndex-1?$triggers.eq(activeIndex-1):$triggers.eq($triggers.length-1):$triggers.eq(0),"controller",opt))},Accordion.prototype.showAt=function(index,opt){var $triggers=this.getTriggers();$triggers.length&&index&&index<$triggers.length&&Plugin.call($triggers.eq(index),"controller",opt)},Accordion.prototype.scrollToActive=function(opt){var that,$targetElement;(void 0===opt||void 0===opt.scrollTo||opt.scrollTo)&&(0,($targetElement=$((that=this).getTarget())).length)&&this.$element.length&&setTimeout(function(){$targetElement.offset().top-$(window).scrollTop()-+that.$element.outerHeight()<0&&$("html, body").animate({scrollTop:$targetElement.offset().top-+that.$element.outerHeight()},300)},300)},old=$.fn.vcAccordion,$.fn.vcAccordion=Plugin,$.fn.vcAccordion.Constructor=Accordion,$.fn.vcAccordion.noConflict=function(){return $.fn.vcAccordion=old,this},clickHandler=function(e){var $this=$(this);e.preventDefault(),Plugin.call($this,"controller")},hashNavigation=function(){var $targetElement,hash=window.location.hash;hash&&($targetElement=$(hash)).length&&(hash=$targetElement.find('[data-vc-accordion][href="'+hash+'"],[data-vc-accordion][data-vc-target="'+hash+'"]')).length&&(setTimeout(function(){$("html, body").animate({scrollTop:$targetElement.offset().top-.2*$(window).height()},0)},300),hash.trigger("click"))},$(window).on("hashchange.vc.accordion",hashNavigation),$(document).on("click.vc.accordion.data-api","[data-vc-accordion]",clickHandler),$(document).ready(hashNavigation),$(document).on("afterShow.vc.accordion",function(e,opt){Plugin.call($(e.target),"scrollToActive",opt)})}(window.jQuery);
!function($){"use strict";var Plugin,TtaAutoPlay,old;Plugin=function(action,options){var args=Array.prototype.slice.call(arguments,1);return this.each(function(){var $this=$(this),data=$this.data("vc.tta.autoplay");data||(data=new TtaAutoPlay($this,$.extend(!0,{},TtaAutoPlay.DEFAULTS,$this.data("vc-tta-autoplay"),options)),$this.data("vc.tta.autoplay",data)),"string"==typeof action?data[action].apply(data,args):data.start(args)})},(TtaAutoPlay=function($element,options){this.$element=$element,this.options=options}).DEFAULTS={delay:5e3,pauseOnHover:!0,stopOnClick:!0},TtaAutoPlay.prototype.show=function(){this.$element.find("[data-vc-accordion]:eq(0)").vcAccordion("showNext",{changeHash:!1,scrollTo:!1})},TtaAutoPlay.prototype.hasTimer=function(){return void 0!==this.$element.data("vc.tta.autoplay.timer")},TtaAutoPlay.prototype.setTimer=function(windowInterval){this.$element.data("vc.tta.autoplay.timer",windowInterval)},TtaAutoPlay.prototype.getTimer=function(){return this.$element.data("vc.tta.autoplay.timer")},TtaAutoPlay.prototype.deleteTimer=function(){this.$element.removeData("vc.tta.autoplay.timer")},TtaAutoPlay.prototype.start=function(){var $this,that;$this=this.$element,(that=this).hasTimer()||(this.setTimer(window.setInterval(this.show.bind(this),this.options.delay)),this.options.stopOnClick&&$this.on("click.vc.tta.autoplay.data-api","[data-vc-accordion]",function(e){e&&e.preventDefault&&e.preventDefault(),that.hasTimer()&&Plugin.call($this,"stop")}),this.options.pauseOnHover&&$this.hover(function(e){e&&e.preventDefault&&e.preventDefault(),that.hasTimer()&&Plugin.call($this,"mouseleave"===e.type?"resume":"pause")}))},TtaAutoPlay.prototype.resume=function(){this.hasTimer()&&this.setTimer(window.setInterval(this.show.bind(this),this.options.delay))},TtaAutoPlay.prototype.stop=function(){this.pause(),this.deleteTimer(),this.$element.off("click.vc.tta.autoplay.data-api mouseenter mouseleave")},TtaAutoPlay.prototype.pause=function(){var timer=this.getTimer();void 0!==timer&&window.clearInterval(timer)},old=$.fn.vcTtaAutoPlay,$.fn.vcTtaAutoPlay=Plugin,$.fn.vcTtaAutoPlay.Constructor=TtaAutoPlay,$.fn.vcTtaAutoPlay.noConflict=function(){return $.fn.vcTtaAutoPlay=old,this},$(document).ready(function(){$("[data-vc-tta-autoplay]").each(function(){$(this).vcTtaAutoPlay()})})}(window.jQuery);