PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /proc/thread-self/root/proc/self/root/proc/self/cwd/wp-content/themes/jnews/assets/js/
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
IP: 209.182.202.254
Choose File :

Url:
Dir : //proc/thread-self/root/proc/self/root/proc/self/cwd/wp-content/themes/jnews/assets/js/main.js

!function(e){"use strict";function t(){e("img").attr("data-pin-no-hover",!0),e(".article-content img, .featured img, .thumbnail-container img").removeAttr("data-pin-no-hover")}function a(){var t=e(".jeg_fs_container"),a=t.find(".jeg_fs_content"),n=t.find(".jeg_featured_bg"),i=t.find(".jeg_fs_scroll"),o=function(){var t=e(".jeg_header"),i=e(".jeg_navbar_mobile");if(a.length>0){var o=t.is(":visible")?t.outerHeight():i.outerHeight(),s=e(window).height();e(a).css({height:s-o+"px"}),e(n).css({height:s+"px"})}},s=e(".jeg_parallax .jeg_featured_img");s.length&&s.each((function(){e(this).parallax("50%",.15)})),i.on("click",(function(){var t=e(".jeg_scroll_flag").offset().top;e("html, body").animate({scrollTop:t},800)}));e(window).on("resize load",o),e(document).on("ready",o),e(window).on("scroll load resize",(function(){var a=e(window).scrollTop(),n=t.outerHeight(),o=1-a/n;if(e("body").hasClass("jeg_single_tpl_5")){var s=1-a/n*.2;t.find(".entry-header .container").css({opacity:o,"-webkit-transform":"scale("+s+")",transform:"scale("+s+")"})}else t.find(".entry-header .container").css({opacity:o});i.css("opacity",o-.2)}))}function n(){var t=e(".jnews-cookie-law-policy"),a=e.now(),n=void 0===jnewsoption.site_slug?"/":jnewsoption.site_slug,i=void 0===jnewsoption.site_domain?window.location.hostname:jnewsoption.site_domain;if(t.length>0){var o=function(e){for(var t=e+"=",a=document.cookie.split(";"),n=0;n<a.length;n++){for(var i=a[n];" "==i.charAt(0);)i=i.substring(1,i.length);if(0==i.indexOf(t))return i.substring(t.length,i.length)}return null}("jnews_cookie_law");o?parseInt(o)<a&&t.fadeIn("slow"):t.fadeIn("slow"),t.find(".btn-cookie").on("click",(function(t){t.preventDefault();var o,s,r,l,d=e(this);o="jnews_cookie_law",s=d.data("expire"),r=a+24*s*60*60*1e3,(l=new Date).setTime(r),l.toUTCString(),console.log(o+"="+(r||"")+";expires="+l+";path="+n+";domain="+i),document.cookie=o+"="+(r||"")+";expires="+l+";path="+n+";domain="+i,d.parent().fadeOut()}))}}function i(t){var a=e(".jeg_progress_container");if(a.length>0){var n=!1,i=e(window),o=t.height(),s=.85*i.height();e(window).scroll((function(){n=!0})),e(window).on("resize",(function(){o=t.height(),s=.85*i.height(),r()})),void 0!==window.progressTimer&&clearInterval(window.progressTimer),window.progressTimer=setInterval((function(){n&&(n=!1,r())}),150);var r=function(){var e=i.scrollTop(),n=t.offset().top,r=s-n+e,l=0;s>o+n?a.find(".progress-bar").width(0):(r>o?o<e-n+.2*s?(a.find(".progress-bar").css("transition","none"),a.find(".progress-bar").width(0)):(a.find(".progress-bar").css("transition","none"),a.find(".progress-bar").width("100%"),l=100):r>0&&(l=r/o*100),a.find(".progress-bar").width(l+"%"),a.find(".progress-bar").css("transition","all .12s ease-in"))}}}function o(t){var a=e(t).find(".jeg_preview_slider");a.length&&(a.each((function(){var t=e(this),a=window[t.data("selector")];e(t).jpreviewslider(a)})),setTimeout((function(){window.dispatchEvent(new Event("resize"))}),500))}e.youtube_parser=function(e){var t=e.match(/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??&?v?=?([^#\&\?]*).*/);if(t&&11===t[7].length)return t[7];window.alert("Url Incorrect")},e.vimeo_parser=function(e){var t=/http:\/\/(www\.)?vimeo.com\/(\d+)($|\/)/,a=e.match(t);return a?a[2]:(t=/https:\/\/(www\.)?vimeo.com\/(\d+)($|\/)/,(a=e.match(t))?a[2]:void window.alert("not a vimeo url"))},e.dailymotion_parser=function(e){var t=e.match(/(?:dailymotion\.com(?:\/video|\/hub)|dai\.ly)\/([0-9a-z]+)(?:[\-_0-9a-zA-Z]+#video=([a-z0-9]+))?/);if(t)return t[2]?t[2]:t[1];window.alert("not a dailymotion url")},e.type_video_youtube=function(t,a,n){var i=e.youtube_parser(e(t).attr("data-src")),o="",s="";n?(o+=!0===a?"autoplay=1&":"",s='<iframe width="700" height="500" src="//www.youtube.com/v/'+i+"?version=3&"+(o+=!0===n?"loop=1&playlist="+i:"")+'showinfo=0&theme=light&autohide=1&rel=0&wmode=opaque" frameborder="0" allowfullscreen></iframe>'):s='<iframe width="700" height="500" src="//www.youtube.com/embed/'+i+"?"+(o+=!0===a?"autoplay=1&":"")+'showinfo=0&theme=light&autohide=1&rel=0&wmode=opaque" frameborder="0" allowfullscreen></iframe>',e(".jeg_video_container",t).append(s)},e.type_video_vimeo=function(t,a,n){var i="";i+=!0===a?"autoplay=1&":"";var o='<iframe src="//player.vimeo.com/video/'+e.vimeo_parser(e(t).attr("data-src"))+"?"+(i+=!0===n?"loop=1&":"")+'title=0&byline=0&portrait=0" width="700" height="500" frameborder="0" mozallowfullscreen webkitallowfullscreen allowfullscreen></iframe>';e(".jeg_video_container",t).append(o)},e.type_video_dailymotion=function(t,a){var n="",i='<iframe src="//www.dailymotion.com/embed/video/'+e.dailymotion_parser(e(t).attr("data-src"))+"?"+(n+=!0===a?"autoplay=1&":"")+'ui-start-screen-info=0&ui-theme=light&queue-autoplay-next=0&queue-enable=0&sharing-enable=0&ui-logo=0" width="700" height="500" frameborder="0" mozallowfullscreen webkitallowfullscreen allowfullscreen></iframe>';e(".jeg_video_container",t).append(i)},e.type_soundcloud=function(t){var a=e(t).attr("data-src"),n='<iframe src="https://w.soundcloud.com/player/?url='+encodeURIComponent(a)+'" width="700" height="500" frameborder="0"></iframe>';e(".jeg_video_container",t).append(n)},e.type_audio=function(t){var a="",n="";""!==e(t).data("mp3")&&(a="<source type='audio/mpeg' src='"+e(t).data("mp3")+"' />"),""!==e(t).data("ogg")&&(n="<source type='audio/ogg' src='"+e(t).data("ogg")+"' />");var i="<audio preload='none' style='width: 100%; visibility: hidden;' controls='controls'>"+a+n+"</audio>";e(t).append(i);var o={};"undefined"!=typeof _wpmejsSettings&&(o=_wpmejsSettings),o.success=function(e){var t,a;"flash"===e.pluginType&&(t=e.attributes.autoplay&&"false"!==e.attributes.autoplay,a=e.attributes.loop&&"false"!==e.attributes.loop,t&&e.addEventListener("canplay",(function(){e.play()}),!1),a&&e.addEventListener("ended",(function(){e.play()}),!1))},e(t).find("audio").mediaelementplayer(o)},e.type_video_html5=function(t,a,n,i){var o=e(t).data("cover");n.pauseOtherPlayers=!1;var s="",r="",l="";""!==e(t).data("mp4")&&(s="<source type='video/mp4' src='"+e(t).data("mp4")+"' />"),""!==e(t).data("webm")&&(r="<source type='video/webm' src='"+e(t).data("webm")+"' />"),""!==e(t).data("ogg")&&(l="<source type='video/ogg' src='"+e(t).data("ogg")+"' />");var d="<video id='player' style='width:100%;height:100%;' width='100%' height='100%' poster='"+o+"' controls='controls' "+(a?"preload='auto'":"preload='none'")+">"+s+r+l+("<object width='100%' height='100%' type='application/x-shockwave-flash' data='/public/mediaelementjs/flashmediaelement.swf'><param name='movie' value='/public/mediaelementjs/flashmediaelement.swf' /><param name='flashvars' value='controls=true&file="+e(t).data("mp4")+"' /><img src='"+o+"' alt='No video playback capabilities' title='No video playback capabilities' /></object>")+"</video>";e(i,t).append(d),a&&(n.success=function(e){"flash"===e.pluginType?e.addEventListener("canplay",(function(){e.play()}),!1):e.play()}),e(t).find("video").mediaelementplayer(n)},e.do_media_render=function(t){e(t).find("[data-type='youtube']").length&&e(t).find("[data-type='youtube']").each((function(){var t=e(this).data("autoplay"),a=e(this).data("repeat");e.type_video_youtube(e(this),t,a)})),e(t).find("[data-type='vimeo']").length&&e(t).find("[data-type='vimeo']").each((function(){var t=e(this).data("autoplay"),a=e(this).data("repeat");e.type_video_vimeo(e(this),t,a)})),e(t).find("[data-type='dailymotion']").length&&e(t).find("[data-type='dailymotion']").each((function(){var t=e(this).data("autoplay");e.type_video_dailymotion(e(this),t)})),e(t).find("[data-type='soundcloud']").length&&e(t).find("[data-type='soundcloud']").each((function(){e.type_soundcloud(e(this))})),e(t).find("[data-type='audio']").length&&e(t).find("[data-type='audio']").each((function(){e.type_audio(e(this))})),e(t).find("video").length&&e(t).find("video").each((function(){e(this).parents(".elementor-background-video-container")||e(this).mediaelementplayer()}))},e.fn.jnews_carousel=function(){e(this).each((function(){var t=e(this).find(".jeg_postblock_carousel_1, .jeg_postblock_carousel_2, .jeg_postblock_carousel_3");t.length&&t.each((function(){var t=e(this),a=t.find(".jeg_carousel_post").addClass("owl-carousel"),n={nav:a.data("nav"),autoplay:a.data("autoplay"),items:void 0===a.data("items")?3:a.data("items"),delay:void 0===a.data("delay")?3e3:a.data("delay"),rtl:a.data("rtl"),margin:void 0===a.data("margin")?20:a.data("margin")};a.on("initialized.owl.carousel",(function(){a.siblings(".jeg_carousel_placeholder").remove(),a.parent().addClass("jeg_carousel_wrapper_loaded")})),t.hasClass("jeg_postblock_carousel_1")?(t.hasClass("jeg_col_12")&&(n.items=void 0===a.data("items")?5:a.data("items")),a.owlCarousel({rtl:1==jnewsoption.rtl,nav:n.nav,margin:n.margin,navText:!1,dots:!1,loop:!0,items:n.items,autoplay:n.autoplay,autoplayTimeout:n.delay,animateOut:"fadeOut",autoHeight:!0,responsive:{0:{items:1},321:{items:2,margin:n.margin>15?15:n.margin},568:{items:3,margin:n.margin>15?15:n.margin},1024:{items:n.items}}})):t.hasClass("jeg_postblock_carousel_2")?(n.items=void 0===a.data("items")?3:a.data("items"),n.responsive={0:{items:1},568:{items:2},768:{items:n.items>3?3:n.items},1024:{items:n.items}},a.owlCarousel({rtl:1==jnewsoption.rtl,nav:n.nav,margin:n.margin,navText:!1,dots:!1,loop:!0,items:n.items,autoplay:n.autoplay,autoplayTimeout:n.delay,animateOut:"fadeOut",autoHeight:!1,responsive:n.responsive})):t.hasClass("jeg_postblock_carousel_3")&&(t.hasClass("jeg_col_12")?(n.items=void 0===a.data("items")?3:a.data("items"),n.responsive={0:{items:1},568:{items:2},768:{items:n.items>3?3:n.items},1024:{items:n.items}}):t.hasClass("jeg_col_6")||t.hasClass("jeg_col_7")||t.hasClass("jeg_col_8")?(n.items=void 0===a.data("items")?2:a.data("items"),n.responsive={0:{items:1},568:{items:2},1024:{items:n.items>2?2:n.items}}):(n.items=1,n.responsive={0:{items:1},568:{items:2},768:{items:n.items}}),a.owlCarousel({rtl:1==jnewsoption.rtl,nav:n.nav,margin:n.margin,navText:!1,dots:!1,loop:!0,items:n.items,autoplay:n.autoplay,autoplayTimeout:n.delay,animateOut:"fadeOut",autoHeight:!0,responsive:n.responsive}))}))}))},e.fn.jtabs=function(){e(this).each((function(){var t=e(this),a=e(".jeg_tabpost_nav li.active",t),n=function(a){var n=e(a).data("tab-content");e(".jeg_tabpost_nav li.active",t).removeClass("active"),e(a).addClass("active"),e(".jeg_tabpost_item.active",t).removeClass("active"),e('.jeg_tabpost_item[id="'+n+'"]',t).addClass("active")};if(a.length)n(a);else{var i=e(".jeg_tabpost_nav li",t).first();n(i)}e(".jeg_tabpost_nav li",t).on("click",(function(){e(this).hasClass("active")||n(this)}))}))},e.fn.jskill=function(){return e(this).each((function(){var t=e(this);t.waypoint((function(a){var n=t.find("li"),i=t.data("scoretype");t.addClass("show"),n.each((function(t){var a=e(this).find(".barbg"),n=e(this).find(".reviewscore"),o=a.attr("data-width");window.setTimeout((function(){n.prop("Counter",0).animate({Counter:o},{duration:600,easing:"swing",step:function(t){var n="";n="point"===i?Math.ceil(.1*t):Math.ceil(t)+"%",e(this).text(n),a.css("width",t+"%")}})}),250*t)})),this.destroy()}),{offset:"80%",context:window})}))},e.fn.jvideo_background=function(){function t(t){var a=function(t,a){var n,i,o=9/16,s=e(t).height(),r=e(t).width(),l=s/r,d=function(){return[n=r*o,i=r,(r-i)/2,(s-n)/2]},c=function(){return[n=s,i=s/o,(r-i)/2,(s-n)/2]};if("fit"===a)return l>o?d():c();if("zoom"===a)return l>o?c():d();if("fitNoUpscale"===a)return 9>s||16>r?e.new_get_image_container_size(img,t,"fit"):[n=9,i=16,(r-i)/2,(s-n)/2]}(t.parents(".jeg_block_container"),"zoom");t.css({height:a[0],width:a[1],left:a[2]+"px",top:a[3]+"px","max-width":"inherit"})}e(this).each((function(){var a=e(this),n=a.parent(".jeg_videowrapper"),i=a.get(0),o=a.data("youtubeid");new YT.Player(i,{width:"100%",height:"100%",videoId:o,playerVars:{playlist:o,iv_load_policy:3,enablejsapi:1,disablekb:1,autoplay:1,controls:0,showinfo:0,rel:0,loop:1,wmode:"transparent"},events:{onReady:function(e){e.target.mute().setLoop(!0)}}}),t(n),jQuery(window).on("resize",(function(){t(n)}))}))},e.fn.jnews_slider=function(){e(this).each((function(){var t=e(this),a=e(t).find(".jeg_slider_type_1");a.length&&a.jowlslider({rtl:1==jnewsoption.rtl});var n=e(t).find(".jeg_slider_type_2");n.length&&n.each((function(){var t=e(this).addClass("owl-carousel"),a=e(t).data("autoplay"),n=e(t).data("delay");e(t).on("initialized.owl.carousel",(function(){t.siblings(".jeg_slider_placeholder").remove(),t.parent().addClass("jeg_slider_wrapper_loaded")})).owlCarousel({rtl:1==jnewsoption.rtl,nav:!1,items:1,autoplay:a,autoplayTimeout:n,loop:!0})}));var i=e(t).find(".jeg_slider_type_3");i.length&&i.each((function(){var t=e(this).addClass("owl-carousel"),a=e(t).data("autoplay"),n=e(t).data("delay"),i=e(t).data("items"),o=e(t).parent(".jeg_slider_wrapper"),s=i,r=i<3?i:3,l=i<2?i:2;o.hasClass("jeg_col_2o3")?s>3&&1024==e(window).width()&&(s=3):o.hasClass("jeg_col_1o3")&&(r=1,e(window).width()>=1024&&(s=1)),e(t).on("initialized.owl.carousel",(function(){t.siblings(".jeg_slider_placeholder").remove(),t.parent().addClass("jeg_slider_wrapper_loaded")})).owlCarousel({rtl:1==jnewsoption.rtl,nav:!0,navText:!1,dots:!1,loop:!0,stagePadding:35,margin:5,autoplay:a,autoplayTimeout:n,lazyLoad:!0,responsive:{0:{items:1},568:{items:l},768:{items:r},1024:{items:s}}})}));var o=e(t).find(".jeg_slider_type_4");o.length&&o.each((function(){var t=e(this).addClass("owl-carousel"),a=e(t).data("autoplay"),n=e(t).data("delay");e(t).on("initialized.owl.carousel",(function(){t.siblings(".jeg_slider_placeholder").remove(),t.parent().addClass("jeg_slider_wrapper_loaded")})).owlCarousel({rtl:1==jnewsoption.rtl,nav:!0,navText:!1,items:1,loop:!0,autoplay:a,autoplayTimeout:n,animateOut:"fadeOut"})}));var s=e(t).find(".jeg_slider_type_5");s.length&&s.each((function(){var t=e(this).addClass("owl-carousel"),a=e(t).data("autoplay"),n=e(t).data("delay");e(t).on("initialized.owl.carousel",(function(){t.siblings(".jeg_slider_placeholder").remove(),t.parent().addClass("jeg_slider_wrapper_loaded")})).owlCarousel({rtl:1==jnewsoption.rtl,nav:!0,items:1,navText:!1,dots:!1,autoplay:a,autoplayTimeout:n,loop:!0})}));var r=e(t).find(".jeg_slider_type_6");r.length&&r.each((function(){var t=e(this).addClass("owl-carousel"),a=e(t).data("autoplay"),n=e(t).data("delay");e(t).on("initialized.owl.carousel",(function(){t.siblings(".jeg_slider_placeholder").remove(),t.parent().addClass("jeg_slider_wrapper_loaded")})).owlCarousel({rtl:1==jnewsoption.rtl,nav:!0,navigation:!0,navText:[e(t).data("nav-prev"),e(t).data("nav-next")],items:1,dots:!1,autoplay:a,autoplayTimeout:n,loop:!0,animateOut:"fadeOut",animateIn:"fadeIn"})}));var l=e(t).find(".jeg_slider_type_7");l.length&&l.each((function(){var t=e(this).addClass("owl-carousel"),a=e(t).data("autoplay"),n=e(t).data("delay");e(t).on("initialized.owl.carousel",(function(){t.siblings(".jeg_slider_placeholder").remove(),t.parent().addClass("jeg_slider_wrapper_loaded")})).owlCarousel({rtl:1==jnewsoption.rtl,items:1,dots:!1,mouseDrag:!1,touchDrag:!1,pullDrag:!1,autoplay:a,autoplayTimeout:n,loop:!0,animateOut:"fadeOut",animateIn:"fadeIn",smartSpeed:500}),e(t).find(".jeg_block_nav a").on("click",(function(a){a.preventDefault(),e(this).hasClass("next")?e(t).trigger("next.owl.carousel"):e(t).trigger("prev.owl.carousel")}))}));var d=e(t).find(".jeg_slider_type_8");d.length&&d.each((function(){var t=e(this),a=t.data("autoplay"),n=t.data("delay"),i=t.data("items"),o=t.parent(".jeg_slider_wrapper"),s=i,r=i<3?i:3,l=i<2?i:2;o.hasClass("jeg_col_2o3")?s>3&&1024==e(window).width()&&(s=3):o.hasClass("jeg_col_1o3")&&(r=1,e(window).width()>=1024&&(s=1));var d=function(){var a=e(o).find(".owl-nav > div");if(e(a).length){var n=t.find(".thumbnail-container"),i=e(n[0]).outerHeight();e(a).each((function(){var t=e(this),a=t.outerHeight(),n=.5*i-.5*a;t.css("top",n+"px")}))}};t.on("initialized.owl.carousel",(function(){t.siblings(".jeg_slider_placeholder").remove(),t.parent().addClass("jeg_slider_wrapper_loaded")})).owlCarousel({rtl:1==jnewsoption.rtl,nav:!0,navText:!1,dots:!1,loop:!0,stagePadding:30,margin:0,lazyLoad:!0,autoplay:a,autoplayTimeout:n,responsive:{0:{items:1},568:{items:l},768:{items:r},1024:{items:s,stagePadding:s>1?50:30}},onInitialized:function(){d()}}),e(this).on("resized.owl.carousel",(function(e){d()}))}));var c=e(t).find(".jeg_slider_type_9");c.length&&c.each((function(){var t=e(this).addClass("owl-carousel"),a=t.data("autoplay"),n=t.data("delay"),i=t.parent();e(t).on("initialized.owl.carousel",(function(){t.siblings(".jeg_slider_placeholder").remove(),t.parent().addClass("jeg_slider_wrapper_loaded")})).owlCarousel({rtl:1==jnewsoption.rtl,nav:!1,items:1,autoplay:a,autoplayTimeout:n,loop:!0,mouseDrag:!1,animateOut:"fadeOut",animateIn:"fadeIn"}),i.find(".jeg_slider_type_9_thumb article").on("click",(function(a){a.preventDefault();var n=e(this).data("index");t.trigger("to.owl.carousel",n,200)}))}))}))},e.fn.ajax_review_search=function(){return e(this).each((function(){var t=e(this).find('input[name="action"]'),a=e(this).find('input[name="page"]'),n=e(this).find('select[name="category"]'),i=e(this).find(".search_keyword"),o=e(this).find('select[name="sort"]'),s=e(this).find(".jeg_review_search_result_holder"),r=e(this).find(".module-overlay"),l=e(this).find(".review-search-form"),d=e(this).data("id"),c=window[d],p=null,u=null,h=function(){p&&clearTimeout(p),p=setTimeout((function(){e(r).stop().fadeIn(),c.action=e(t).val(),c.keyword=e(i).val(),c.category=e(n).val(),c.sort=e(o).val(),c.page=e(a).val(),null!==u&&u.abort(),u=e.ajax({url:jnews_ajax_url,type:"post",dataType:"html",data:c,success:function(t){e(s).html(t),e(r).stop().fadeOut()}})}),250)},f=function(){e(a).val(1),h()};e(i).on("input",(function(){(e(i).val().length>2||0==e(i).val().length)&&f()})),e(n).on("change",(function(){f()})),e(o).on("change",(function(){f()})),e(this).on("click",".jeg_navigation a",(function(t){t.preventDefault(),e(a).val(e(this).data("id")),h()})),e(l).on("submit",(function(e){e.preventDefault(),f()}))}))},e.facebook_page_widget=function(){e(".fb-page").length&&(e("#facebook-jssdk").length?"undefined"!=typeof FB&&FB.XFBML.parse():e(".fb-page").waypoint({handler:function(){var t,a,n,i,o,s="&appId="+e(".fb-page").attr("data-id");t=document,a="script",n="facebook-jssdk",o=t.getElementsByTagName(a)[0],t.getElementById(n)||((i=t.createElement(a)).id=n,i.src="//connect.facebook.net/"+jnewsoption.language+"/sdk.js#xfbml=1&version=v2.8"+s,o.parentNode.insertBefore(i,o))},offset:"100%"}))},e.twitter_widget=function(){var t=e(".twitter-timeline"),a=!1;t.length&&t.waypoint({handler:function(){var e;a||((e=document.createElement("script")).type="text/javascript",e.async=!0,e.src="//platform.twitter.com/widgets.js",(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(e),a=!0)},offset:"100%"})},e.google_plus_widget=function(){var t=e(".jeg_google_plus_widget"),a=!1;t.length&&(t.waypoint({handler:function(){var e;a||((e=document.createElement("script")).type="text/javascript",e.async=!0,e.src="//apis.google.com/js/platform.js",(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(e),a=!0)},offset:"100%"}),t.each((function(){var t=e(this).width(),a=e(this).find("div").attr("data-width");("true"===e(this).find("div").attr("data-fit")||t<a)&&e(this).find("div").attr("data-width",t)})))},e.pinterest_widget=function(){var t=e(".jeg_pinterest_widget"),a=!1;t.length&&t.waypoint({handler:function(){var e;a||((e=document.createElement("script")).type="text/javascript",e.async=!0,e.src="//assets.pinterest.com/js/pinit.js",(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(e),a=!0)},offset:"100%"})},e(document).on("ready",(function(){var s=e(".jeg_tabpost_widget");s.length&&s.jtabs(),e("body").jnews_slider();var r=e(".featured_gallery");r.length&&r.owlCarousel({rtl:1==jnewsoption.rtl,nav:!0,navText:!1,items:1,autoplay:!1,autoplayTimeout:3e3,lazyLoad:!0}),e("body").jnews_carousel();var l=e(".jeg_overlay_slider");if(l.length&&l.joverlayslider({rtl:1==jnewsoption.rtl}),jnews.hero&&jnews.hero.init(),"function"==typeof e.fn.jnewsticker){var d=e(".jeg_news_ticker");d.length&&d.jnewsticker()}var c=e(".jeg_video_playlist");c.length&&c.jvidplaylist({rtl:1==jnewsoption.rtl}),a(),e(window).width()>768&&((e(".jeg_double_sidebar").length>1||e(".jeg_double_right_sidebar").length>1)&&e(window).width()<992||e(".jeg_sticky_sidebar").theiaStickySidebar({additionalMarginTop:20}),e(".share-float").theiaStickySidebar({additionalMarginTop:20,updateSidebarHeight:!1}),e(".jeg_parallax_bg").parallax("50%",.1));var p,u,h=e(".jeg_reviewbars");if(h.length&&h.jskill(),p=e(".jscroll-to-top"),u=function(){e(window).scrollTop()>400?p.addClass("show"):p.removeClass("show")},p.on("click",(function(){return e("html, body").animate({scrollTop:0},600),!1})),e(window).width()>1024?e(window).on("scroll load",u):e(window).off("scroll load",u),function(){var t=e("a[href*=\\#]:not([href=\\#])");t.length&&t.each((function(t,a){var n=e(a);if(void 0!==n.data("vc-container")||n.hasClass("bp-primary-action")||n.hasClass("jeg_popuplink"))return!1;n.on("click",(function(t){var a=e(this).attr("href");if((a=a.split("#")).length>1){a=a[1];var n=e("#"+a);0!==n.length&&e("html, body").animate({scrollTop:n.offset().top},600)}}))}))}(),e("select:visible:not(.woocommerce select):not(select.form-control-solid):not(.drts select)").chosen({disable_search_threshold:10}),e.do_media_render(e("body")),t(),window.onYouTubeIframeAPIReady=function(){var t=e(".jeg_blocklink .jeg_videobg");t.length&&t.each((function(){e(this).jvideo_background()}))},jnewsoption.gif)e('.content-inner img[src$=".gif"]').jnewsgif();o(e("body")),e.facebook_page_widget(),e.twitter_widget(),e.google_plus_widget(),e.pinterest_widget(),e(document).ajaxComplete((function(){e.google_plus_widget(),e.twitter_widget(),e.facebook_page_widget()})),e.ajaxSetup({data:{lang:jnewsoption.language}}),n();var f,g=e(".jeg_review_search");g.length&&g.ajax_review_search(),i(e(".entry-content")),e(document).on("jnews-autoload-change-id",(function(t,a){i(e(".post-autoload[data-id="+a+"]").find(".entry-content"))})),(f=e(".jnews_author_box_container")).length&&f.each((function(){var t=e(this);t.hasClass("author-truncate")&&t.on("click",(function(){e(this).removeClass("author-truncate")}))}))})),e(window).load((function(){if(-1!==navigator.userAgent.indexOf("MSIE")||navigator.appVersion.indexOf("Trident/")>0){var e=document.createEvent("UIEvents");e.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(e)}else window.dispatchEvent(new Event("resize"))})),e(document).on("jnews-ajax-load",(function(n,i){t(),a(),e.do_media_render(i),e(window).width()>768&&(e(i).find(".jeg_sticky_sidebar").theiaStickySidebar({additionalMarginTop:20}),e(i).find(".share-float").theiaStickySidebar({additionalMarginTop:20,updateSidebarHeight:!1}),e(i).find(".jeg_parallax_bg").parallax("50%",.1)),e(i).find("select:visible").chosen({disable_search_threshold:10}),e(i).jnews_carousel();var s=e(i).find(".featured_gallery");s.length&&s.owlCarousel({rtl:1==jnewsoption.rtl,nav:!0,navText:!1,items:1,autoplay:!1,autoplayTimeout:3e3,lazyLoad:!0}),o(i),e(i).find('.content-inner img[src$=".gif"]').jnewsgif();var r=e(i).find(".jeg_video_playlist");r.length&&(r.jvidplaylist({rtl:1==jnewsoption.rtl}),setTimeout((function(){window.dispatchEvent(new Event("resize"))}),500));var l=e(i).find(".jeg_reviewbars");l.length&&l.jskill(),e(i).jnews_slider();var d=e(i).find(".jeg_tabpost_widget");d.length&&d.jtabs(),e(i).find(".jeg_module_hook").jmodule(),jnews.widget.popular.init(i),jnews.popup.init(i),jnews.comment.init(i),jnews.mobile.truncate(),jQuery().jsplit&&e(i).jsplit(),e.facebook_page_widget(),e.twitter_widget(),e.google_plus_widget(),e.pinterest_widget()})),e(document).on("jnews_after_split_content_ajax",(function(e,t){o(t)}))}(jQuery),function(e){"use strict";window.jnews=window.jnews||{},window.jnews.menu={newsfeed_xhr:null,search_length_word:3,search_timeout:null,search_xhr:null,init:function(t){var a=this;void 0===t&&(t=e("body")),t.find(".jeg_menu").each((function(){var t=e(this).attr("data-animation");"slide"===t?e(this).superfish({animationType:t,popUpSelector:"ul,.sub-menu",speed:150,animationOut:100,onShow:function(){e(this).find(".jeg_newsfeed").length&&a.mega_menu_init(this,a)}}):"animateTransform"===t?e(this).superfish({animationType:t,popUpSelector:"ul,.sub-menu",disableHI:!0,speed:200,delay:0,onShow:function(){e(this).find(".jeg_newsfeed").length&&a.mega_menu_init(this,a)}}):"none"===t?e(this).superfish({animationType:t,popUpSelector:"ul,.sub-menu",delay:0,disableHI:!0,animation:{opacity:"show"},speed:1,onShow:function(){e(this).find(".jeg_newsfeed").length&&a.mega_menu_init(this,a)}}):e(this).superfish({popUpSelector:"ul,.sub-menu",delay:250,speed:"fast",animation:{opacity:"show"},onShow:function(){e(this).find(".jeg_newsfeed").length&&a.mega_menu_init(this,a)}})})),a.search(t),a.meganav(t)},meganav:function(t){var a=t.find(".jeg_meganav_bar");a.find(".current_title").on("click",(function(){a.toggleClass("nav-open")})),e(document).mouseup((function(t){a.hasClass("nav-open")&&!e(t.target).parents(".jeg_meganav_bar").length>0&&a.removeClass("nav-open")}))},search:function(e){this.search_toggle(e),this.live_search(e)},search_toggle:function(t){t.find(".jeg_search_toggle").on("click",(function(t){t.preventDefault();var a=e(this).parent(".jeg_search_wrapper"),n=e(this).parents(".jeg_container, .jeg_container_full"),i=a.hasClass("jeg_search_fullwidth_expand")?"hide_navbar_items":"";n.toggleClass("jeg_search_expanded "+i),e("i.fa",e(this)).toggleClass("fa-close fa-search"),e(".jeg_search_input",a).focus()}))},live_search:function(t){var a=this;jnewsoption.live_search&&(t.find(".jeg_search_wrapper .jeg_search_input").each((function(){var t=null,n=e(this),i=e(this).parents(".jeg_search_wrapper");e(this).on("keyup",(function(){if(!e(i).hasClass("jeg_search_modal_expand")){var o=e(this).val();o.trim().length>=a.search_length_word&&o!==t?(t=o,a.do_live_search(o,n)):o.trim().length<a.search_length_word&&a.hide_live_search()}}))})),t.find(".search-all-button").on("click",(function(t){t.preventDefault();var a=e(this).parents(".jeg_search_wrapper");e(a).find("form").submit()})))},do_live_search:function(t,a){var n=this;clearTimeout(n.search_timeout),n.search_timeout=setTimeout((function(){null!==n.search_xhr&&n.search_xhr.abort(),n.loading_search(a),n.search_xhr=e.ajax({url:jnews_ajax_url,type:"post",dataType:"html",data:{s:t,action:"jnews_ajax_live_search"},success:e.proxy(n.load_search,n,a)})}),200)},loading_search:function(t){var a=e(t).parents(".jeg_search_wrapper");e(a).find(".jeg_search_button .fa").removeClass("fa-search").addClass("fa-spinner fa-spin")},remove_loading_search:function(t){var a=e(t).parents(".jeg_search_wrapper");e(a).find(".jeg_search_button .fa").removeClass("fa-spinner fa-spin").addClass("fa-search")},load_search:function(t,a){var n=e(t).parents(".jeg_search_wrapper");""===a?(e(n).find(".search-result-wrapper").html(""),this.search_no_data(n)):(e(n).find(".search-result-wrapper").html("").append(a),this.search_data_exist(n)),this.remove_loading_search(t)},search_no_data:function(t){e(t).find(".jeg_search_result").removeClass("jeg_search_hide"),e(t).find(".jeg_search_result").removeClass("with_result").addClass("no_result")},search_data_exist:function(t){e(t).find(".jeg_search_result").removeClass("jeg_search_hide"),e(t).find(".jeg_search_result").addClass("with_result").removeClass("no_result")},hide_live_search:function(){e(".jeg_search_result").addClass("jeg_search_hide")},sticky_menu:function(t){void 0===t&&(t=e("body"));var a=t.find(".jeg_stickybar");if(a.length){a.jsticky({item_offset:".jeg_header",mode:a.data("mode"),state_class:"jeg_sticky_nav",wrapper:".jeg_stickybar",broadcast_position:!0})}},mega_menu_init:function(t,a){var n=e(t).parents(".jeg_megamenu");if(n.hasClass("ajaxload")&&!n.hasClass("loaded")){var i=n.data("category"),o="jnews_build_mega_category_1",s=n.data("number"),r="";n.hasClass("category_2")&&(o="jnews_build_mega_category_2",r=n.data("tags")),null!==a.newsfeed_xhr&&a.newsfeed_xhr.abort(),a.newsfeed_xhr=e.ajax({url:jnews_ajax_url,type:"post",dataType:"html",data:{cat_id:i,action:o,number:s,tags:r},success:function(e){n.find(".jeg_newsfeed .newsfeed_overlay").remove(),n.find(".jeg_newsfeed").append(e),a.create_menu_carousel(t),a.attach_mouseenter_subcategory(t,a),n.addClass("loaded")}})}else a.create_menu_carousel(t),a.attach_mouseenter_subcategory(t,a)},create_menu_carousel:function(t){var a=e(".newsfeed_carousel",t);a.on("initialized.owl.carousel",(function(a){e(".jeg_newsfeed_list",t).addClass("loaded")}));var n=4,i=e(t).parents(".jeg_megamenu").data("item-row");n="default"===i?a.hasClass("with_subcat")?t.parents(".jeg_header.full").length?5:3:t.parents(".jeg_header.full").length?6:4:i,a.owlCarousel({rtl:1==jnewsoption.rtl,nav:!0,navText:!0,dots:!1,loop:!1,margin:20,lazyLoad:!0,items:n})},attach_mouseenter_subcategory:function(t,a){e(t).find(".jeg_newsfeed_subcat li").on("mouseenter",(function(){a.menu_load_newsfeed(this,a)}))},menu_loaded:function(e){e.addClass("loaded"),e.height("auto")},menu_load_newsfeed:function(t,a){if(!e(t).hasClass("active")){var n=e(t).parents(".jeg_newsfeed"),i=e(n).find(".jeg_newsfeed_list"),o=e(i).height();i.height(o);var s=e(t).data("cat-id"),r=i.find(".jeg_newsfeed_container[data-cat-id='"+s+"']");if(r.length)i.removeClass("loaded"),i.find(".jeg_newsfeed_container").removeClass("active").hide(),i.find(".jeg_newsfeed_container[data-cat-id='"+s+"']").fadeIn((function(){a.menu_loaded(i)}));else{null!==a.newsfeed_xhr&&a.newsfeed_xhr.abort();var l=e(t).parents(".jeg_megamenu"),d=e(l).data("number"),c="jnews_mega_category_1";e(l).hasClass("category_2")&&(c="jnews_mega_category_2"),i.removeClass("loaded"),a.newsfeed_xhr=e.ajax({url:jnews_ajax_url,type:"post",dataType:"html",data:{cat_id:s,action:c,number:d},success:function(e){i.find(".jeg_newsfeed_container").hide(),i.append(e),r=i.find(".jeg_newsfeed_container[data-cat-id='"+s+"']"),a.create_menu_carousel(r),a.menu_loaded(i)}})}e(t).addClass("active").siblings().removeClass("active")}}},jnews.menu.init(),jnews.menu.sticky_menu(),window.jnews.loginregister={xhr:null,captcha:[],validateCaptcha:!1,show_popup:function(t){var a=this;t.length>0&&t.magnificPopup({type:"inline",removalDelay:500,midClick:!0,callbacks:{beforeOpen:function(){this.st.mainClass="mfp-zoom-out",e("body").removeClass("jeg_show_menu")},change:function(){var t=this.content.find(".g-recaptcha"),n=this.content.find("form").data("type"),i=t.data("sitekey");this.content.find(".form-message p").remove(),a.validateCaptcha=!1,1==jnewsoption.recaptcha&&t.length&&(t.hasClass("loaded")?grecaptcha.reset(a.captcha[n]):(a.captcha[n]=grecaptcha.render(t.get(0),{sitekey:i,callback:a.validateResponse.bind(a)}),e(t).addClass("loaded")))}}})},validateResponse:function(e){""!==e&&(this.validateCaptcha=!0)},init:function(){var t=e(".jeg_popuplink");this.show_popup(t);var a=e(".jeg_popuplink_parent a");this.show_popup(a)},validateForm:function(t){var a=e(t).find(".form-message"),n=e(t).data("type");if("register"===n&&""===e(t).find('[name="email"]').val())return a.html("<p class='alert alert-error'>"+jnewsoption.lang.empty_email+"</p>"),!1;if(("login"===n||"register"===n)&&""===e(t).find('[name="username"]').val())return a.html("<p class='alert alert-error'>"+jnewsoption.lang.empty_username+"</p>"),!1;if("login"===n&&""===e(t).find('[name="password"]').val())return a.html("<p class='alert alert-error'>"+jnewsoption.lang.empty_password+"</p>"),!1;if("forgot"===n&&""===e(t).find('[name="user_login"]').val())return a.html("<p class='alert alert-error'>"+jnewsoption.lang.empty_username+"</p>"),!1;return!(1==jnewsoption.recaptcha&&!this.validateCaptcha)||(a.html("<p class='alert alert-error'>"+jnewsoption.lang.invalid_recaptcha+"</p>"),!1)},hook_form:function(){var t=this;e(".jeg_popupform.jeg_popup_account > form").each((function(){var a=this,n=e(a),i=n.find(".button"),o=n.find(".form-message");n.on("submit",(function(s){s.preventDefault(),t.validateForm(a)&&(o.html(""),i.val(i.data("process")),null!==t.xhr&&t.xhr.abort(),t.xhr=e.post(jnews_ajax_url,{action:"jnews_refresh_nonce",refresh_action_nonce:"jnews_nonce"}).always((function(a){a.jnews_nonce&&(n.find('input[name="jnews_nonce"]').val(a.jnews_nonce),t.xhr=e.ajax({url:jnews_ajax_url,type:"post",dataType:"json",data:n.serialize(),success:function(e){if(1===e.response&&(o.html("<p class='alert alert-success'>"+e.string+"</p>"),1===e.refresh&&(window.location=jnewsoption.login_reload)),0==e.response){var a=n.data("type");o.html("<p class='alert alert-error'>"+e.string+"</p>"),grecaptcha.reset(t.captcha[a])}i.val(i.data("string")),n.trigger("reset")}}))})))}))}))}},window.jnews.mobile={init:function(){this.navmobile=e(".jeg_navbar_mobile"),this.mobilemenu=e(".jeg_mobile_menu"),this.menu(),this.search(),this.truncate()},truncate:function(){e(".content-inner.mobile-truncate").on("click",(function(){e(this).removeClass("mobile-truncate"),e(this).trigger("resize")}))},show_menu:function(t){t.preventDefault(),e("body").toggleClass("jeg_show_menu")},hide_menu:function(t){t.preventDefault(),e("body").removeClass("jeg_show_menu")},menu:function(){this.mobilemenu.superfish(),e(".jeg_mobile_toggle").off("click",this.show_menu).on("click",this.show_menu),e(".jeg_menu_close").off("click",this.hide_menu).on("click",this.hide_menu),e(document).mouseup((function(t){e("body").hasClass("jeg_show_menu")&&!e(t.target).parents(".jeg_mobile_wrapper").length>0&&e("body").removeClass("jeg_show_menu")})),this.navmobile.jsticky({mode:this.navmobile.data("mode"),item_offset:".jeg_navbar_mobile",state_class:"jeg_sticky_nav",wrapper:".jeg_navbar_mobile_wrapper",use_translate3d:!0,broadcast_position:!1})},search:function(){e(".jeg_mobile_search").on("click",(function(t){t.preventDefault(),e("body").toggleClass("jeg_search_expanded"),e("i.fa",e(this)).toggleClass("fa-close fa-search"),e(".jeg_navbar_mobile_wrapper .jeg_search_input").val("").focus()}))}},jnews.mobile.init(),window.jnews.first_load={data:null,init:function(){e(".jeg_popup_account").length&&(jnews.loginregister.init(),jnews.loginregister.hook_form()),jfla.length&&this.do_ajax({action:"jnews_first_load_action",jnews_id:jnewsoption.postid,load_action:jfla})},update_counter:function(){var t={total_view:e(".jeg_share_stats .jeg_views_count .counts"),total_share:e(".jeg_share_stats .jeg_share_count .counts"),total_comment:e(".jeg_meta_comment a span")};e.each(this.data.counter,(function(e,a){t[e].length&&t[e].text(a)}))},do_ajax:function(t){var a=this;e.ajax({url:jnews_ajax_url,type:"post",dataType:"json",data:t,success:function(e){a.data=e,e.counter&&a.update_counter()}})}},jnews.first_load.init(),window.jnews.deprecated={init:function(t){void 0===t&&(t=e("body"));var a=t.find("[class*=google-plus].removed, [class*=google_plus].removed, [class*=googleplus].removed ");a.length&&a.off("click.share click").on("click",(function(e){e.preventDefault})).on("click",(function(){return!1}))}},jnews.deprecated.init(),window.jnews.widget={},window.jnews.widget.popular={init:function(t){void 0===t&&(t=e("body"));var a=t.find(".widget_jnews_popular .socialshare_list a");a.length&&a.on("click",(function(t){var a=e(this);t.preventDefault();var n=a.attr("href");window.open(n,"","height=570,width=750")}))}},jnews.widget.popular.init(),window.jnews.popup={popupcontainer:null,container:null,init:function(t){this.container=void 0===t?e("body"):t,this.popupcontainer=e(".pswp").get(0),"photoswipe"===jnewsoption.popup_script?this.popup_photoswipe():"magnific"===jnewsoption.popup_script&&this.popup_magnific()},expand_photoswipe:function(e,t){var a={index:t,history:!1,focus:!1,showAnimationDuration:0,hideAnimationDuration:0,barsSize:{top:44,bottom:0}};new PhotoSwipe(this.popupcontainer,PhotoSwipeUI_Default,e,a).init()},expand_single_featured:function(t){var a=e(t).find("img"),n=[{src:e(t).attr("href"),w:parseInt(e(a).data("full-width"),10),h:parseInt(e(a).data("full-height"),10),title:e(a).attr("alt")}];this.expand_photoswipe(n,0)},expand_featured_gallery:function(t){var a=e(t).parents(".featured_gallery"),n=e(t).parents(".owl-item"),i=e(n).index(".owl-item"),o=[],s=e(a).owlCarousel({rtl:1==jnewsoption.rtl});e(a).find("a").each((function(t){var a=e(this).find("img");e(this).find(".thumbnail-container").hasClass("thumbnail-background")?o[t]={src:e(this).attr("href"),w:parseInt(e(this).find(".thumbnail-container > div").data("full-width"),10),h:parseInt(e(this).find(".thumbnail-container > div").data("full-height"),10),title:e(this).find(".thumbnail-container > div").attr("alt")}:o[t]={src:e(this).attr("href"),w:parseInt(e(a).data("full-width"),10),h:parseInt(e(a).data("full-height"),10),title:e(a).attr("alt")}}));var r={index:i,history:!1,focus:!1,showAnimationDuration:0,hideAnimationDuration:0},l=new PhotoSwipe(this.popupcontainer,PhotoSwipeUI_Default,o,r);l.listen("afterChange",(function(){var e=l.getCurrentIndex();s.trigger("to.owl.carousel",[e,300])})),l.init()},expand_wp_gallery:function(t){var a=e(t).parents(".gallery"),n=e(t).parents("figure"),i=e(n).index("figure"),o=[];e(a).find("a").each((function(t){var a=e(this).find("img"),n=e(this).parents(".gallery-item").find(".wp-caption-text").text();o[t]={src:e(this).attr("href"),w:parseInt(e(a).data("full-width"),10),h:parseInt(e(a).data("full-height"),10),title:n}})),this.expand_photoswipe(o,i)},expand_single_image_caption:function(t){var a=this,n=e(t).parent(),i=e(n).find("a").attr("href"),o=e(n).find(".wp-caption-text").text();e(t).addClass("load-image");var s=new Image;s.onload=function(){e(t).removeClass("load-image");var n=[{src:i,w:parseInt(s.width,10),h:parseInt(s.height,10),title:o}];a.expand_photoswipe(n,0)},s.src=i},expand_single_image:function(t){var a=this,n=e(t).find("img");e(t).addClass("load-image");var i=new Image;i.onload=function(){e(t).removeClass("load-image");var o=[{src:e(t).attr("href"),w:parseInt(i.width,10),h:parseInt(i.height,10),title:e(n).attr("alt")}];a.expand_photoswipe(o,0)},i.src=e(t).attr("href")},popup_photoswipe:function(){var t=this;e(t.container).find(".jeg_featured.featured_image a").on("click",(function(e){e.preventDefault(),t.expand_single_featured(this)})),e(t.container).find(".featured_gallery a").on("click",(function(e){e.preventDefault(),t.expand_featured_gallery(this)})),e(t.container).find(".content-inner .gallery").find("a[href$='.gif'], a[href$='.jpg'], a[href$='.png'], a[href$='.bmp']").on("click",(function(e){e.preventDefault(),t.expand_wp_gallery(this)})),e(t.container).find(".content-inner figure.wp-caption").find("a[href$='.gif'], a[href$='.jpg'], a[href$='.png'], a[href$='.bmp']").find("img").each((function(){var a=e(this).parent();e(a).on("click",(function(e){e.preventDefault(),t.expand_single_image_caption(this)}))})),e(t.container).find(".content-inner").find("a[href$='.gif'], a[href$='.jpg'], a[href$='.png'], a[href$='.bmp']").find("img[class*='align']").each((function(){var a=e(this).parent();e(a).on("click",(function(e){e.preventDefault(),t.expand_single_image(this)}))}))},expand_magnific:function(t){e(t).magnificPopup({gallery:{enabled:!0},type:"image",closeOnContentClick:!0,closeBtnInside:!1,fixedContentPos:!0,mainClass:"mfp-no-margins mfp-with-zoom",image:{verticalFit:!0,titleSrc:function(e){return"FIGURE"===e.el.parent().prop("tagName")?e.el.parent().find("figcaption").text():e.el.parents(".gallery-item").find(".wp-caption-text").length?e.el.parents(".gallery-item").find(".wp-caption-text").text():e.el.find("img").attr("alt")}}})},expand_magnific_gallery:function(e){this.expand_magnific(e)},popup_magnitif_single_gallery:function(t){var a=[];e(this.container).find(t).each((function(){"IMG"===e(this).prop("tagName")?a.push(e(this).parent().get(0)):a.push(e(this).get(0))})),this.expand_magnific(a),this.expand_magnific_gallery(".featured_gallery a")},popup_magnitif_normal:function(t){var a=this;e(a.container).find(t).each((function(){"IMG"===e(this).prop("tagName")?a.expand_magnific(e(this).parent().get(0)):a.expand_magnific(e(this).get(0))})),a.expand_magnific_gallery(".featured_gallery a")},popup_magnific:function(){var e=".content-inner figure.wp-caption > a > img,.content-inner a[href$='.gif'] > img[class*='wp-image'],.content-inner a[href$='.jpg'] > img[class*='wp-image'],.content-inner a[href$='.png'] > img[class*='wp-image'],.content-inner a[href$='.bmp'] > img[class*='wp-image'],.content-inner a[href$='.gif'] > img[class*='align'],.content-inner a[href$='.jpg'] > img[class*='align'],.content-inner a[href$='.png'] > img[class*='align'],.content-inner a[href$='.bmp'] > img[class*='align'],.jeg_featured.featured_image a,.content-inner .gallery a";"1"===jnewsoption.single_gallery?this.popup_magnitif_single_gallery(e):this.popup_magnitif_normal(e)}},jnews.popup.init(),window.jnews.comment={container:null,init:function(t){var a=this;a.container=void 0===t?e("body"):t,this.create(a.container);var n=e(a.container).find(".ajax_comment_button");n.length&&n.on("click",(function(){var t=e(this),n=t.data("id"),i=t.data("post-type"),o=t.data("loading");t.find("span").text(o),e.ajax({url:jnews_ajax_url,type:"post",dataType:"html",data:{action:"jnews_ajax_comment",post_id:n,post_type:i},success:function(e){t.after(e).remove(),a.create(a.container)}})}))},create:function(){var t,a,n,i,o,s,r=e("#comments");if(r.length){var l=r.attr("data-type"),d=r.attr("data-id");if("disqus"==l)e("#disqus-script").length?DISQUS.reset({reload:!0}):(e("#disqus-script").remove(),(s=document.createElement("script")).id="disqus-script",s.type="text/javascript",s.async=!0,s.src="//"+d+".disqus.com/embed.js",(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(s));else if("facebook"==l)if(e("#facebook-jssdk").length)"undefined"!=typeof FB&&FB.XFBML.parse();else if("facebook"==l){var c=d?"&appId="+d:"";t=document,a="script",n="facebook-jssdk",o=t.getElementsByTagName(a)[0],t.getElementById(n)||((i=t.createElement(a)).id=n,i.src="//connect.facebook.net/"+jnewsoption.language+"/sdk.js#xfbml=1&version=v2.8"+c,o.parentNode.insertBefore(i,o))}}}},jnews.comment.init(),window.jnews.ajax_analytic={update:function(e,t){this.google_analytics(window.location.pathname,document.title),this.track_jnews(t)},get_nonce:function(e){},google_analytics:function(e,t){"undefined"==typeof pageTracker&&"undefined"==typeof _gaq&&"undefined"==typeof ga&&"undefined"==typeof __gaTracker&&"undefined"==typeof gaplusu||("undefined"!=typeof pageTracker&&null!==pageTracker&&pageTracker._trackPageview(e),"undefined"!=typeof _gaq&&null!==_gaq&&(null!=t&&_gaq.push(["_set","title",t]),_gaq.push(["_trackPageview",e])),"undefined"!=typeof ga&&null!==ga&&(null!=t&&ga("set","title",t),ga("send","pageview",e)),"undefined"!=typeof __gaTracker&&null!==__gaTracker&&__gaTracker("send","pageview",e),"undefined"!=typeof gaplusu&&null!==gaplusu&&(null!=t&&gaplusu("set","title",t),gaplusu("send","pageview",e)))},track_jnews:function(e){jfla.indexOf("view_counter")>-1&&jnews.first_load.do_ajax({action:"jnews_first_load_action",load_action:["view_counter"],jnews_id:e})}},window.jnews.menu_drop={init:function(){this.menu_drop=e(".menu-item-has-children"),e(window).width()<=1024&&this.newEvent()},newEvent:function(){this.menu_drop.on("click",(function(){e(this).hasClass("sfHover")?(e(this).removeClass("sfHover"),e(this).find(".sub-menu").attr("style","display: none")):e(this).find(".sub-menu").attr("style","display: block")}))}},jnews.menu_drop.init(),window.jnews.edit_account={init:function(){this.changeHandler()},changeHandler:function(){var t=e("#fname"),a=e("#lname");t.on("change",(function(t){var a=this.value,n=e("#lname").val(),i=e("#dname");i.append("<option>"+a+"</option>"),i.append("<option>"+a+" "+n+"</option>"),i.append("<option>"+n+" "+a+"</option>"),i.chosen("destroy").chosen()})),a.on("change",(function(t){var a=e("#fname").val(),n=this.value,i=e("#dname");i.append("<option>"+n+"</option>"),i.append("<option>"+a+" "+n+"</option>"),i.append("<option>"+n+" "+a+"</option>"),i.chosen("destroy").chosen()}))}},jnews.edit_account.init()}(jQuery);