var jnews_iframe={};!function(e){"use strict";var n=!!("object"==typeof jnews&&"object"==typeof jnews.library)&&jnews.library;function t(n){for(var t=e(n).parents(".vc_vc_column, .vc_vc_column_inner"),o=12,i=[],a=0;a<t.length;a++)for(var r=e(t[a]).attr("class").split(" "),d=0;d<r.length;d++){if(0===r[d].indexOf("vc_col-sm-")){var l=parseInt(r[d].substring(10));i.push(l)}}for(var s=0;s<i.length;s++)o=i[s]/12*o;return Math.ceil(o)}function o(n,t){e(n).find(t).length>1&&e(n).find(t).each((function(n,t){n>0&&e(this).remove()}))}window.jnews_iframe.post_js=function(n){var t=e("[data-model-id='"+n+"']");e(t).find(".share-float").theiaStickySidebar({additionalMarginTop:20,updateSidebarHeight:!1}),jnews.share.init(t)},window.jnews_iframe.module_js=function(n){var t=e("[data-model-id='"+n+"']");e(t).find(".jeg_module_hook").jmodule()},window.jnews_iframe.hero_js=function(t){var o=e("[data-model-id='"+t+"']");n&&"undefined"!==n.globalBody&&jnews.hero&&n.forEach(o,(function(e,n){jnews.hero.init(e)}))},window.jnews_iframe.newsticker_js=function(e){if(n&&"undefined"!==n.globalBody&&"function"==typeof jnews.ticker){var t=n.globalBody.querySelectorAll("[data-model-id='"+e+"']");n.forEach(t,(function(e,t){var o=e.getElementsByClassName("jeg_news_ticker");o.length&&n.forEach(o,(function(e,n){jnews.ticker({container:e})}))}))}},window.jnews_iframe.video_playlist_js=function(e){if(n&&"undefined"!==n.globalBody&&"function"==typeof jnews.vidplaylist){var o=n.globalBody.querySelectorAll("[data-model-id='"+e+"']");n.forEach(o,(function(e,o){var i="jeg_col_"+t(e),a=e.getElementsByClassName("jeg_video_playlist");a.length&&n.forEach(a,(function(e,t){n.addClass(e,i),jnews.vidplaylist({container:e,onInit:function(e){void 0!==e.nextButton&&n.addClass(e.nextButton,"tns-next"),void 0!==e.prevButton&&n.addClass(e.prevButton,"tns-prev")}})}))}))}},window.jnews_iframe.block_link_module=function(n){var t=e("[data-model-id='"+n+"']");e(t).find(".jeg_blocklink .jeg_videobg").jvideo_background()},window.jnews_iframe.slider=function(e){if(n&&"undefined"!==n.globalBody&&"function"==typeof jnews.slider){var t=n.globalBody.querySelectorAll("[data-model-id='"+e+"']");n.forEach(t,(function(e,t){var o=e.querySelectorAll(".jeg_slider_wrapper .jeg_slider");o.length&&n.forEach(o,(function(e,t){jnews.slider({container:e,onInit:function(e){void 0!==e.nextButton&&n.addClass(e.nextButton,"tns-next"),void 0!==e.prevButton&&n.addClass(e.prevButton,"tns-prev")}})}))}))}},window.jnews_iframe.carousel=function(e){if(n&&"undefined"!==n.globalBody&&"function"==typeof jnews.carousel){var t=n.globalBody.querySelectorAll("[data-model-id='"+e+"']");n.forEach(t,(function(e,t){var o=e.getElementsByClassName("jeg_postblock_carousel");o.length&&n.forEach(o,(function(e,t){jnews.carousel({container:e,textDirection:1==jnewsoption.rtl?"rtl":"ltr",onInit:function(e){void 0!==e.nextButton&&n.addClass(e.nextButton,"tns-next"),void 0!==e.prevButton&&n.addClass(e.prevButton,"tns-prev")}})}))}))}},window.jnews_iframe.sidebar_follow=function(n){var t=e("[data-model-id='"+n+"']");e(t).find(".jeg_column").attr("class").indexOf("jeg_sticky_sidebar")>=0?e(t).theiaStickySidebar({additionalMarginTop:20,wrap:".jeg_sticky_sidebar"}):e(t).trigger("theiaStickySidebarDestroy")},window.jnews_iframe.trigger_event=function(n){var t=e("[data-model-id='"+n+"']");e(document).trigger("jnews_vc_trigger",[t])},window.jnews_iframe.additional_row_option=function(n){var t=e("[data-model-id='"+n+"']");o(t,".jeg_row_overlay"),o(t,".jeg_top_ribon"),o(t,".jeg_bottom_ribon")},window.jnews_iframe.widget=function(o){var i=e("[data-model-id='"+o+"']");e(i).find(".jeg_tabpost_widget").jtabs(),e(i).find(".jeg_module_hook").jmodule(),n&&"undefined"!==n.globalBody&&n.forEach(i,(function(e,o){if("function"==typeof jnews.ticker){var a=e.getElementsByClassName("jeg_news_ticker");a.length&&n.forEach(a,(function(e,n){jnews.ticker({container:e})}))}if("function"==typeof jnews.slider){var r=e.querySelectorAll(".jeg_slider_wrapper .jeg_slider");r.length&&n.forEach(r,(function(e,n){jnews.slider({container:e})}))}if("function"==typeof jnews.vidplaylist){var d="jeg_col_"+t(e),l=e.getElementsByClassName("jeg_video_playlist");l.length&&n.forEach(l,(function(e,t){n.addClass(e,d),jnews.vidplaylist({container:e,onInit:function(e){void 0!==e.nextButton&&n.addClass(e.nextButton,"tns-next"),void 0!==e.prevButton&&n.addClass(e.prevButton,"tns-prev")}})}))}if("function"==typeof jnews.carousel){var s=e.getElementsByClassName("jeg_postblock_carousel");s.length&&n.forEach(s,(function(e,t){jnews.carousel({container:e,textDirection:1==jnewsoption.rtl?"rtl":"ltr",onInit:function(e){void 0!==e.nextButton&&n.addClass(e.nextButton,"tns-next"),void 0!==e.prevButton&&n.addClass(e.prevButton,"tns-prev")}})}))}jnews.hero&&n.forEach(i,(function(e,n){jnews.hero.init(e)}))})),e(i).find(".jeg_blocklink .jeg_videobg").jvideo_background(),e.facebook_page_widget(),e.twitter_widget(),e.google_plus_widget(),e.pinterest_widget()}}(window.jQuery);