var themify_vars = {"version":"3.3.6","url":"https:\/\/www.greenmedia.dk\/wp-content\/themes\/themify-ultra\/themify","map_key":null,"includesURL":"https:\/\/www.greenmedia.dk\/wp-includes\/","isCached":null,"minify":{"css":{"themify-icons":1,"themify.framework":1,"lightbox":1,"themify-builder-style":1},"js":{"backstretch.themify-version":1,"bigvideo":1,"themify.dropdown":1,"themify-tiles":1,"themify.mega-menu":1,"themify.builder.script":1,"themify.scroll-highlight":1,"themify-youtube-bg":1,"themify.parallaxit":1}},"fontello_path":"https:\/\/www.greenmedia.dk\/wp-content\/uploads\/fontello\/fontello-81c56035\/css\/fontello-embedded.css"};
var tbLocalScript = {"isAnimationActive":"1","isParallaxActive":"1","isParallaxScrollActive":"1","animationInviewSelectors":[".module.wow",".module_row.wow",".builder-posts-wrap > .post.wow"],"backgroundSlider":{"autoplay":5000,"speed":2000},"animationOffset":"100","videoPoster":"https:\/\/www.greenmedia.dk\/wp-content\/themes\/themify-ultra\/themify\/themify-builder\/img\/blank.png","backgroundVideoLoop":"yes","builder_url":"https:\/\/www.greenmedia.dk\/wp-content\/themes\/themify-ultra\/themify\/themify-builder","framework_url":"https:\/\/www.greenmedia.dk\/wp-content\/themes\/themify-ultra\/themify","version":"3.3.6","fullwidth_support":"1","fullwidth_container":"body","loadScrollHighlight":"1","addons":[],"breakpoints":{"tablet_landscape":[769,"1024"],"tablet":[681,"768"],"mobile":"680"}};
var themifyScript = {"lightbox":{"lightboxSelector":".themify_lightbox","lightboxOn":true,"lightboxContentImages":false,"lightboxContentImagesSelector":"","theme":"pp_default","social_tools":false,"allow_resize":true,"show_title":false,"overlay_gallery":false,"screenWidthNoLightbox":600,"deeplinking":false,"contentImagesAreas":"","gallerySelector":".gallery-icon > a","lightboxGalleryOn":true},"lightboxContext":"body"};
var tbScrollHighlight = {"fixedHeaderSelector":"#headerwrap.fixed-header","speed":"900","navigation":"#main-nav","scrollOffset":"-5"};
/* https://www.greenmedia.dk/wp-content/themes/themify-ultra/themify/js/main.min.js?ver=3.3.6 */
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(a,d,f){a!=Array.prototype&&a!=Object.prototype&&(a[d]=f.value)};$jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};$jscomp.global=$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX="jscomp_symbol_";
$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.symbolCounter_=0;$jscomp.Symbol=function(a){return $jscomp.SYMBOL_PREFIX+(a||"")+$jscomp.symbolCounter_++};
$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var a=$jscomp.global.Symbol.iterator;a||(a=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&$jscomp.defineProperty(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(a){var d=0;return $jscomp.iteratorPrototype(function(){return d<a.length?{done:!1,value:a[d++]}:{done:!0}})};
$jscomp.iteratorPrototype=function(a){$jscomp.initSymbolIterator();a={next:a};a[$jscomp.global.Symbol.iterator]=function(){return this};return a};$jscomp.iteratorFromArray=function(a,d){$jscomp.initSymbolIterator();a instanceof String&&(a+="");var f=0,h={next:function(){if(f<a.length){var b=f++;return{value:d(b,a[b]),done:!1}}h.next=function(){return{done:!0,value:void 0}};return h.next()}};h[Symbol.iterator]=function(){return h};return h};
$jscomp.polyfill=function(a,d,f,h){if(d){f=$jscomp.global;a=a.split(".");for(h=0;h<a.length-1;h++){var b=a[h];b in f||(f[b]={});f=f[b]}a=a[a.length-1];h=f[a];d=d(h);d!=h&&null!=d&&$jscomp.defineProperty(f,a,{configurable:!0,writable:!0,value:d})}};$jscomp.polyfill("Array.prototype.keys",function(a){return a?a:function(){return $jscomp.iteratorFromArray(this,function(a){return a})}},"es6-impl","es3");
$jscomp.findInternal=function(a,d,f){a instanceof String&&(a=String(a));for(var h=a.length,b=0;b<h;b++){var c=a[b];if(d.call(f,c,b,a))return{i:b,v:c}}return{i:-1,v:void 0}};$jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,f){return $jscomp.findInternal(this,a,f).v}},"es6-impl","es3");
!function(a){var d,f=a.event;var h=f.special.tfsmartresize={setup:function(){a(this).on("resize",h.handler)},teardown:function(){a(this).off("resize",h.handler)},handler:function(a,c){var b=this,g=arguments,n=function(){a.type="tfsmartresize";f.dispatch.apply(b,g)};d&&clearTimeout(d);c?n():d=setTimeout(n,h.threshold)},threshold:150}}(jQuery);var Themify,ThemifyGallery;
(function(a,d,f,h){d.addEventListener("load",function(){d.loaded=!0;Themify.is_builder_active||Themify.triggerEvent(d,"resize");a("body").addClass("page-loaded")});Themify={fonts:[],cssLazy:[],jsLazy:[],is_builder_active:!1,triggerEvent:function(a,c){var b;f.createEvent?(b=f.createEvent("HTMLEvents"),b.initEvent(c,!0,!0)):f.createEventObject&&(b=f.createEventObject(),b.eventType=c);b.eventName=c;a.dispatchEvent?a.dispatchEvent(b):a.fireEvent&&htmlEvents["on"+c]?a.fireEvent("on"+b.eventType,b):a[c]?
a[c]():a["on"+c]&&a["on"+c]()},UpdateQueryString:function(a,c,e){e||(e=d.location.href);var b=RegExp("([?|&])"+a+"=.*?(&|#|$)(.*)","gi");if(b.test(e))return void 0!==c&&null!==c?e.replace(b,"$1"+a+"="+c+"$2$3"):e.replace(b,"$1$3").replace(/(&|\?)$/,"");if(void 0!==c&&null!==c){var b=-1!==e.indexOf("?")?"&":"?",f=e.split("#");return e=f[0]+b+a+"="+c,f[1]&&(e+="#"+f[1]),e}return e},Init:function(){if("undefined"!==typeof themify_vars){if("undefined"!==typeof tbLocalScript&&null!==tbLocalScript){var b=
Themify;a(f).ready(function(){b.is_builder_active=a("body").hasClass("themify_builder_active");tbLocalScript.isTouch=a("body").hasClass("touch");!b.is_builder_active&&0<a(".themify_builder_content div:not(.js-turn-on-builder)").length&&b.LoadAsync(tbLocalScript.builder_url+"/js/themify.builder.script.js")})}this.bindEvents()}},bindEvents:function(){var b=Themify;d.loaded?(b.domready(),b.windowload()):(a(d).load(b.windowload),a(f).ready(b.domready))},domready:function(){function b(a,b){var c="module"===
b&&null!==themifybuilderapp.activeModel?themifybuilderapp.activeModel.get("mod_name"):!1;Themify.addonLoad(a,c);Themify.InitCarousel(a);Themify.InitMap(a)}Themify.LazyLoad();if(Themify.is_builder_active)a("body").on("builder_load_module_partial",function(a,e,g){b(e,g)});else b()},windowload:function(){a(".shortcode.slider, .shortcode.post-slider, .slideshow-wrap").css({height:"auto",visibility:"visible"});Themify.InitGallery()},LazyLoad:function(){var b=Themify,c=b.is_builder_active||0<a(".fa").length,
e=b.is_builder_active||0<a('span[class*="ti-"], i[class*="ti-"], .module-menu[data-menu-breakpoint]').length;c||(c=b.checkFont("FontAwesome"));e||(e=b.checkFont("Themify"));c&&b.LoadCss(themify_vars.url+"/fontawesome/css/font-awesome.min.css",themify_vars.version);e&&b.LoadCss(themify_vars.url+"/themify-icons/themify-icons.css",themify_vars.version);0<a('i[class*="icon-"]').length&&"string"===typeof themify_vars.fontello_path&&b.LoadCss(themify_vars.fontello_path);(b.is_builder_active||0<a(".shortcode").length)&&
b.LoadCss(themify_vars.url+"/css/themify.framework.css",null,a("#themify-framework-css")[0])},addonLoad:function(b,c){if("undefined"!==typeof tbLocalScript&&tbLocalScript&&0<Object.keys(tbLocalScript.addons).length){var e=Themify,g=c&&tbLocalScript.addons[c]!==h?[tbLocalScript.addons[c]]:tbLocalScript.addons,d;for(d in g)if(0<a(g[d].selector).length){g[d].css&&e.LoadCss(g[d].css,g[d].ver);if(g[d].js){if(g[d].external){var l=f.createElement("script");l.type="text/javascript";l.text=g[d].external;var k=
f.getElementsByTagName("script")[0];k.parentNode.insertBefore(l,k)}e.LoadAsync(g[d].js,null,g[d].ver)}delete tbLocalScript.addons[d];if(b)break}}},InitCarousel:function(b){function c(b){e.each(function(){if(0<a(this).closest(".carousel-ready").length)return!0;a(this).find("> br, > p").remove();var b=a(this),c=JSON.parse(atob(a(this).data("slider"))),e="undefined"===typeof c.height?"auto":c.height,d=c.numsldr,g=h!==c.custom_numsldr?"#"+c.custom_numsldr:"#slider-"+d,d=1E3<=c.speed?c.speed:1E3*c.speed,
f={responsive:!0,swipe:!0,circular:c.wrapvar,infinite:c.wrapvar,auto:{play:0==c.auto?!1:!0,timeoutDuration:1E3<=c.auto?c.auto:1E3*c.auto,duration:d,pauseOnHover:c.pause_hover},scroll:{items:parseInt(c.scroll),duration:d,fx:c.effect},items:{visible:{min:1,max:parseInt(c.visible)},width:120,height:e},onCreate:function(c){b.closest(".caroufredsel_wrapper").outerHeight(b.outerHeight(!0));a(g).css({visibility:"visible",height:"auto"});b.closest(".carousel-wrap").addClass("carousel-ready")}};c.slider_nav&&
(f.prev=g+" .carousel-prev",f.next=g+" .carousel-next");c.pager&&(f.pagination=g+" .carousel-pager");b.imagesLoaded().always(function(){b.carouFredSel(f)})});a(d).off("tfsmartresize.tfcarousel").on("tfsmartresize.tfcarousel",function(){e.each(function(){var b=[],c=a(this);c.find("li").each(function(){b.push(a(this).outerHeight(!0))});var e=Math.max.apply(Math,b);c.outerHeight(e);c.parent().outerHeight(e)})})}var e=a(".slides[data-slider]",b);if(0<e.length){var g=this;g.LoadAsync(themify_vars.includesURL+
"js/imagesloaded.min.js",function(){"undefined"===typeof a.fn.carouFredSel?g.LoadAsync(themify_vars.url+"/js/carousel.min.js",function(){c(b)},null,null,function(){return"undefined"!==typeof a.fn.carouFredSel}):c(b)},null,null,function(){return"undefined"!==typeof a.fn.imagesLoaded})}},InitMap:function(b){var c=Themify;0<a(".themify_map",b).length&&("object"!==typeof google||"object"!==typeof google.maps?(themify_vars.map_key||(themify_vars.map_key=""),c.LoadAsync("//maps.googleapis.com/maps/api/js?v=3.exp&callback=Themify.MapCallback&key="+
themify_vars.map_key,!1,!0,function(){return"object"===typeof google&&"object"!==typeof google.maps})):themify_vars.isCached&&"enable"===themify_vars.isCached?(google.maps={__gjsload__:function(){}},c.LoadAsync("//maps.googleapis.com/maps/api/js?v=3.exp&callback=Themify.MapCallback&key="+themify_vars.map_key,!1,!0,!0)):c.MapCallback(b))},MapCallback:function(b){a(".themify_map",b).each(function(b){var c=JSON.parse(d.atob(a(this).data("map"))),g=c.address,f=parseInt(c.zoom),l=c.type,k=c.scroll,t=c.drag,
m=this;setTimeout(function(){var b=new google.maps.Geocoder;var c=new google.maps.LatLng(-34.397,150.644);c={zoom:f,center:c,mapTypeId:google.maps.MapTypeId.ROADMAP,scrollwheel:k,draggable:t};switch(l.toUpperCase()){case "ROADMAP":c.mapTypeId=google.maps.MapTypeId.ROADMAP;break;case "SATELLITE":c.mapTypeId=google.maps.MapTypeId.SATELLITE;break;case "HYBRID":c.mapTypeId=google.maps.MapTypeId.HYBRID;break;case "TERRAIN":c.mapTypeId=google.maps.MapTypeId.TERRAIN}var e=new google.maps.Map(m,c),d=a(m).data("reverse-geocoding")?
!0:!1;google.maps.event.addListenerOnce(e,"idle",function(){a("body").trigger("themify_map_loaded",[a(m),e])});a(m).data("gmap_object",e);if(d){var n=g.split(",",2);c=parseFloat(n[0]);n=parseFloat(n[1]);var r=new google.maps.LatLng(c,n);c={latLng:r}}else c={address:g};b.geocode(c,function(b,c){if(c==google.maps.GeocoderStatus.OK){var g=d?r:b[0].geometry.location;e.setCenter(g);var f=new google.maps.Marker({map:e,position:g}),g=a(m).data("info-window");if(h!==g){var l=new google.maps.InfoWindow({content:'<div class="themify_builder_map_info_window">'+
g+"</div>"});google.maps.event.addListener(f,"click",function(){l.open(e,f)})}}})},1E3*b)})},LoadAsync:function(a,c,e,g,d){g=this.hash(a);var b=-1!==this.jsLazy.indexOf(g),h=b||f.getElementById(g);b||this.jsLazy.push(g);if(h){if(c)if(d)var n=setInterval(function(){var a=!1;try{a=d.call()}catch(p){}a&&(clearInterval(n),c.call())},20);else c()}else{if(d)try{if(d.call()){c&&c.call();return}}catch(q){}-1===a.indexOf(".min.js")&&"undefined"!==typeof themify_vars&&(b=a.match(/([^\/]+)(?=\.\w+$)/))&&b[0]&&
(b=b[0],themify_vars.minify.js[b]&&(a=a.replace(b+".js",b+".min.js")));var m=!1;b=f.createElement("script");b.type="text/javascript";b.id=g;b.src=e||"undefined"===typeof tbLocalScript?a:a+"?version="+tbLocalScript.version;b.async=!0;b.onload=b.onreadystatechange=function(){m||this.readyState&&"complete"!==this.readyState||(m=!0,c&&c())};a=f.getElementsByTagName("script")[0];a.parentNode.insertBefore(b,a)}},LoadCss:function(b,c,e,g,h){var l=this.hash(b),k=-1!==this.cssLazy.indexOf(l),n=k||f.getElementById(l);
c=c?b+"?version="+c:b;k||this.cssLazy.push(l);if(!(n||0<a("link[href='"+c+"']").length)){-1===b.indexOf(".min.css")&&"undefined"!==typeof themify_vars&&(b=b.match(/([^\/]+)(?=\.\w+$)/))&&b[0]&&(b=b[0],themify_vars.minify.css[b]&&(c=c.replace(b+".css",b+".min.css")));b=d.document;var m=b.createElement("link");e?k=e:(k=(b.body||b.getElementsByTagName("head")[0]).childNodes,k=k[k.length-1]);var q=b.styleSheets;m.rel="stylesheet";m.href=c;m.media="only x";m.async="async";m.id=l;k.parentNode.insertBefore(m,
e?k:k.nextSibling);var p=function(a){for(var b=m.href,c=q.length;c--;)if(q[c].href===b)return h&&h(),a();setTimeout(function(){p(a)})};m.onloadcssdefined=p;p(function(){m.media=g||"all"});return m}},checkFont:function(b){if(a.inArray(b,this.fonts))return!0;if(0===this.fonts.length){for(var c=[],e=f.styleSheets,d,h=e.length,l;0<=--h;)for(d=e[h].cssRules||e[h].rules||[],l=d.length;0<=--l;)if(d[l].style){if(d[l].style.fontFamily)var k=d[l].style.fontFamily;else(k=d[l].style.cssText.match(/font-family\s*:\s*([^;\}]*)\s*[;}]/i))&&
(k=k[1]);if(k===b)return!0;k&&c.push(k)}this.fonts=a.unique(c)}return a.inArray(b,this.fonts)},video:function(){function b(){c.each(function(){flowplayer(a(this).attr("id"),themify_vars.url+"/js/flowplayer-3.2.5.swf",{clip:{autoPlay:!1}})})}var c=a(".themify_video_desktop a");0<c.length&&("undefined"===typeof flowplayer?this.LoadAsync(themify_vars.url+"/js/flowplayer-3.2.4.min.js",b,"3.2.4",null,function(){return"undefined"!==typeof flowplayer}):b())},lightboxCallback:function(a,c){this.LoadAsync(themify_vars.url+
"/js/themify.gallery.js",function(){Themify.GalleryCallBack(a,c)},null,null,function(){return"undefined"!==typeof ThemifyGallery})},InitGallery:function(b,c){var e="object"===typeof themifyScript&&(themifyScript.lightbox.lightboxContentImages&&0<a(themifyScript.lightbox.contentImagesAreas).length||0<a(themifyScript.lightbox.lightboxSelector).length);e||(e="object"===typeof themifyScript&&themifyScript.lightbox.lightboxGalleryOn&&(0<a(themifyScript.lightbox.lightboxContentImagesSelector).length||"undefined"!==
typeof themifyScript.lightbox.gallerySelector&&0<a(themifyScript.lightbox.gallerySelector).length));var d=this;e&&(this.LoadCss(themify_vars.url+"/css/lightbox.css",null),this.LoadAsync(themify_vars.url+"/js/lightbox.min.js",function(){Themify.lightboxCallback(b,c)},null,null,function(){return"undefined"!==typeof a.fn.magnificPopup}));0<a(".module.module-gallery,.module.module-image").length?0<a(".gallery-masonry").length?this.LoadAsync(themify_vars.includesURL+"js/imagesloaded.min.js",function(){d.LoadAsync(themify_vars.includesURL+
"js/masonry.min.js",function(){a(".gallery-masonry").imagesLoaded(function(){a(".gallery-masonry").masonry({itemSelector:".gallery-item",columnWidth:1,originLeft:!a("body").hasClass("rtl"),stamp:".module-title"});e||a("body").addClass("themify_lightbox_loaded").removeClass("themify_lightboxed_images")})},null,null,function(){return"undefined"!==typeof a.fn.masonry})},null,null,function(){return"undefined"!==typeof a.fn.imagesLoaded}):e||a("body").addClass("themify_lightbox_loaded").removeClass("themify_lightboxed_images"):
e||a("body").addClass("themify_lightbox_loaded").removeClass("themify_lightboxed_images")},GalleryCallBack:function(b,c){b||(b=a(themifyScript.lightboxContext));c=!c&&themifyScript.extraLightboxArgs?themifyScript.extraLightboxArgs:{};ThemifyGallery.init({context:b,extraLightboxArgs:c});a("body").addClass("themify_lightbox_loaded").removeClass("themify_lightboxed_images")},parseVideo:function(a){a.match(/(http:|https:|)\/\/(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/);
return{type:-1<RegExp.$3.indexOf("youtu")?"youtube":-1<RegExp.$3.indexOf("vimeo")?"vimeo":!1,id:RegExp.$6}},hash:function(a){for(var b=0,d=0,f=a.length;d<f;++d)b=(b<<5)-b+a.charCodeAt(d),b&=b;return b},getVendorPrefix:function(){if(this.vendor===h){for(var a=f.createElement("div"),c=["Moz","Webkit","O","ms"],d=0,g=c.length;d<g;++d)if("undefined"!==typeof a.style[c[d]+"Transform"]){this.vendor=c[d].toLowerCase();break}this.vendor="-"+this.vendor+"-"}return this.vendor}};Themify.Init()})(jQuery,window,
document);

/* https://www.greenmedia.dk/wp-content/themes/themify-ultra/themify/js/themify.sidemenu.min.js?ver=1.8.9 */
(function(b){function d(a,c){this.element=a;this.settings=b.extend({},e,c);this._defaults=e;this.panelVisible=!1;this.panelCleanName=this.settings.panel.replace(/#|\.|\s/g,function(a){return{"#":"",".":""," ":"-"}[a]});this.init()}var e={panel:"#mobile-menu",close:"",side:"right",speed:250};d.prototype={init:function(){var a=this;b(this.element).on("click",function(b){b.preventDefault();a.panelVisible?a.hidePanel():a.showPanel()});if(""!==a.settings.close)b(a.settings.close).on("click",function(b){b.preventDefault();
a.hidePanel()});b("body").addClass("sidemenu-active").on("scrollhighlightstart.themify",function(){a.panelVisible&&a.hidePanel()}).on("sidemenushow.themify",function(b,f,d){f!==a.settings.panel&&a.hidePanel(d)})},showPanel:function(){var a=this.settings.panel;b(a).removeClass("sidemenu-off").addClass("sidemenu-on").one("webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend",function(){b(this).trigger("sidemenuaftershow.themify",[a])});b("body").addClass(this.panelCleanName+
"-visible sidemenu-"+this.settings.side).trigger("sidemenushow.themify",[a,this.settings.side]);this.panelVisible=!0},hidePanel:function(a){var c=this.settings.panel,d=this.panelCleanName+"-visible";b(c).removeClass("sidemenu-on").addClass("sidemenu-off");a!==this.settings.side&&(d+=" sidemenu-"+this.settings.side);b("body").removeClass(d).trigger("sidemenuhide.themify",[c]);this.panelVisible=!1}};b.fn.themifySideMenu=function(a){if("string"===typeof a){var c=b(this).data("SideMenu");c&&("show"==
a&&c.showPanel(),"hide"==a&&c.hidePanel())}else return this.each(function(){b.data(this,"SideMenu")||b.data(this,"SideMenu",new d(this,a))})}})(jQuery);

var themifyScript = {"themeURI":"https:\/\/www.greenmedia.dk\/wp-content\/themes\/themify-ultra","lightbox":{"lightboxSelector":".themify_lightbox","lightboxOn":true,"lightboxContentImages":false,"lightboxContentImagesSelector":"","theme":"pp_default","social_tools":false,"allow_resize":true,"show_title":false,"overlay_gallery":false,"screenWidthNoLightbox":600,"deeplinking":false,"contentImagesAreas":"","gallerySelector":".gallery-icon > a","lightboxGalleryOn":true},"lightboxContext":"#pagewrap","fixedHeader":"fixed-header","sticky_header":"","ajax_nonce":"ab470de650","ajax_url":"https:\/\/www.greenmedia.dk\/wp-admin\/admin-ajax.php","smallScreen":"760","resizeRefresh":"250","parallaxHeader":"1","loadingImg":"https:\/\/www.greenmedia.dk\/wp-content\/themes\/themify-ultra\/images\/loading.gif","maxPages":"0","currentPage":"1","autoInfinite":"auto","infiniteURL":"0","scrollToNewOnLoad":"scroll","resetFilterOnLoad":"reset","fullPageScroll":"","shop_masonry":"no","scrollHighlight":{"scroll":"internal"},"tiledata":{"grids":{"post":{"1":["AAAA"],"2":["BBCC","BBCC"],"3":["DD.."],"4":[".EEF",".EEF"],"5":["DD..","BBCC","BBCC"],"6":[".EEF",".EEF","BBCC","BBCC"],"7":[".EEF",".EEF","DD.."],"8":[".EEF",".EEF","DD..","AAAA"],"9":[".EEF",".EEF","DD..","BBCC","BBCC"],"10":[".EEF",".EEF","DD..","MMNN","MMPP"],"11":[".EEF",".EEF","DD..","MMNN","MMPP","AAAA"],"12":[".EEF",".EEF","DD..","MMNN","MMPP","BBCC","BBCC"],"13":[".EEF",".EEF","DD..","MMNN","MMPP","LSRR","LSRR"]},"mobile":["AA",".."]},"default_grid":"post","small_screen_grid":"mobile","breakpoint":800,"padding":5,"full_width":false,"animate_init":false,"animate_resize":true,"animate_template":false}};
/* https://www.greenmedia.dk/wp-content/themes/themify-ultra/js/themify.script.min.js?ver=1.8.9 */
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,m,k){a instanceof String&&(a=String(a));for(var g=a.length,l=0;l<g;l++){var p=a[l];if(m.call(k,p,l,a))return{i:l,v:p}}return{i:-1,v:void 0}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(a,m,k){a!=Array.prototype&&a!=Object.prototype&&(a[m]=k.value)};$jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};
$jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(a,m,k,g){if(m){k=$jscomp.global;a=a.split(".");for(g=0;g<a.length-1;g++){var l=a[g];l in k||(k[l]={});k=k[l]}a=a[a.length-1];g=k[a];m=m(g);m!=g&&null!=m&&$jscomp.defineProperty(k,a,{configurable:!0,writable:!0,value:m})}};$jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,k){return $jscomp.findInternal(this,a,k).v}},"es6-impl","es3");
$jscomp.polyfill("Number.isFinite",function(a){return a?a:function(a){return"number"!==typeof a?!1:!isNaN(a)&&Infinity!==a&&-Infinity!==a}},"es6-impl","es3");$jscomp.polyfill("Number.isInteger",function(a){return a?a:function(a){return Number.isFinite(a)?a===Math.floor(a):!1}},"es6-impl","es3");var FixedHeader={},LayoutAndFilter={},themifyScript,ThemifySlider,ThemifyMediaElement,qp_max_pages;
!function(a){var m=a.event,k={_:0},g=0,l,p;var w=m.special.throttledresize={setup:function(){a(this).on("resize",w.handler)},teardown:function(){a(this).off("resize",w.handler)},handler:function(t,n){var q=this,v=arguments;l=!0;p||(setInterval(function(){g++;(g>w.threshold&&l||n)&&(t.type="throttledresize",m.dispatch.apply(q,v),l=!1,g=0);9<g&&(a(k).stop(),p=!1,g=0)},30),p=!0)},threshold:0}}(jQuery);
(function(a){var m=a.event,k;var g=m.special.debouncedresize={setup:function(){a(this).on("resize",g.handler)},teardown:function(){a(this).off("resize",g.handler)},handler:function(a,p){var l=this,t=arguments,n=function(){a.type="debouncedresize";m.dispatch.apply(l,t)};k&&clearTimeout(k);p?n():k=setTimeout(n,g.threshold)},threshold:150}})(jQuery);
(function(a){function m(b,c){b&&("function"!==typeof a.fn.isotope?Themify.LoadAsync(themifyScript.themeURI+"/js/jquery.isotope.min.js",function(){c()},null,null,function(){return"undefined"!==typeof a.fn.isotope}):c())}function k(){return a("body").hasClass("touch")}function g(a){a=a.prop("class").split(" ");for(var b=/^tb_section-/i,e=null,h=0;h<a.length;h++)b.test(a[h])&&(e=a[h]);return null==e?"":e.replace("tb_section-","")}function l(){var b=a("body"),c=!1,e=themifyScript.hash.replace("#",""),
h=n?v+" > "+q:q,d=n||""==themifyScript.hash.replace("#","")?!0:!1,f=a(h).map(function(){var b=a(this);return(b=n&&b.is('[class*="tb_section-"]')?g(b):b.attr("id"))?b:""});a(v).fullpage({resize:!1,sectionSelector:h,paddingBottom:"78px",scrollOverflow:!0,navigation:!0,lockAnchors:!0,autoScrolling:d,anchors:f,afterRender:function(){d||a.fn.fullpage.setAutoScrolling(!0);var c=a(q+".active",a(v)),e=n&&c.is('[class*="tb_section-"]')?g(c):c.prop("id"),r=a("#main-nav").find('a[href$="#'+e+'"]');setTimeout(function(){a(".section_loader").hide();
"undefined"!==typeof ThemifyBuilderModuleJs&&"undefined"!==typeof y&&y()},1E3);if(n){var u=a("#fp-nav").find("li").get(a(".module_row").length);"undefined"!==typeof u&&u.hide()}0<r.length&&r.closest("li").addClass("current_page_item").siblings().removeClass("current_page_item current-menu-item");b.trigger("themify_onepage_after_render",[c,e])},afterLoad:function(){var d=a(q+".active",a(v)),f=n&&d.is('[class*="tb_section-"]')?g(d):d.prop("id"),r=a("#main-nav").find('a[href$="#'+f+'"]');0<r.length&&
r.closest("li").addClass("current_page_item").siblings().removeClass("current_page_item current-menu-item");history.pushState&&f&&(c&&e!==f?history.pushState(null,null,"#"+f):history.replaceState(null,null,"#"+f));c=!0;b.trigger("themify_onepage_afterload",[d,f])},onLeave:function(c,e,d){if(0<b.find("> .mfp-wrap").length)return!1;var f=n?a(v).children(q):a(v).find(q);if(0<f.length&&0<c&&0<e)if("up"===d)for(;c>=e;c--)f.eq(c-1).css("visibility","visible");else for(;c<=e;c++)f.eq(c-1).css("visibility",
"visible")}})}function p(b,c){if("undefined"!==typeof a.fn.infinitescroll){var e=parseInt(themifyScript.maxPages);"undefined"!==typeof qp_max_pages&&(e=qp_max_pages);b.infinitescroll({navSelector:"#load-more a:last",nextSelector:"#load-more a:last",itemSelector:c,loadingText:"",donetext:"",loading:{img:themifyScript.loadingImg},maxPage:e,behavior:"auto"!==themifyScript.autoInfinite?"twitter":"",pathParse:function(a){return a.match(/^(.*?)\b\d+\b(?!.*\b\d+\b)(.*?$)/).slice(1)},bufferPx:50,pixelsFromNavToBottom:a("#footerwrap").height(),
state:{currPage:themifyScript.currentPage&&Number.isInteger(+themifyScript.currentPage)?+themifyScript.currentPage:1}},function(c,d,f){var h=a(c);a(".newItems").removeClass("newItems");h.addClass("newItems");"reset"===themifyScript.resetFilterOnLoad&&LayoutAndFilter.reset();h.hide().imagesLoaded(function(){h.fadeIn();a(".wp-audio-shortcode, .wp-video-shortcode").not("div").each(function(){var b=a(this);0===b.closest(".mejs-audio").length&&ThemifyMediaElement.init(b)});history.pushState&&!+themifyScript.infiniteURL&&
history.pushState(null,null,f);a(".post").contents().find("a:not([class='comment-reply-link'], [id='cancel-comment-reply-link'], .themify_lightbox, .post-content a[href$='jpg'], .post-content a[href$='gif'], .post-content a[href$='png'], .post-content a[href$='JPG'], .post-content a[href$='GIF'], .post-content a[href$='PNG'], .post-content a[target='_new'], .post-content a[target='_blank'])").click(function(){var b=a(this).attr("href");window.parent.location.assign(b);return!1});Themify.InitGallery();
m("object"===typeof b.data("isotope"),function(){b.isotope("appended",h)});b.hasClass("auto_tiles")&&a("body").hasClass("tile_enable")&&b.trigger("infiniteloaded.themify",[h]);LayoutAndFilter.filterActive&&(LayoutAndFilter.enableFilters(),"scroll"===themifyScript.scrollToNewOnLoad&&LayoutAndFilter.restore());a("#infscr-loading").fadeOut("normal");1===e&&a("#load-more, #infscr-loading").remove();a("body").trigger("infiniteloaded.themify",[h]);a(window).trigger("resize")});--e;1<e&&"auto"!==themifyScript.autoInfinite&&
a(".load-more-button").show()});"auto"===themifyScript.autoInfinite&&a("#load-more, #load-more a").hide()}}var w=a(".type-section"),t="undefined"!==typeof a.fn.fullpage&&(themifyScript.fullPageScroll?!0:!1)&&0<w.length,n=0===w.length,q=".section-post",v="div:not(.module-layout-part) > #loops-wrapper",A=a("body").hasClass("fixed-header"),y;n&&(t="undefined"!==typeof a.fn.fullpage&&(themifyScript.fullPageScroll?!0:!1)&&0<a(".themify_builder").length&&a("body").hasClass("full-section-scrolling"),q=".module_row",
v="div:not(.module-layout-part) > .themify_builder_content");a(q+":hidden").remove();q+=":visible";FixedHeader={headerHeight:0,hasHeaderSlider:!1,headerSlider:!1,$pageWrap:a("#pagewrap"),$headerWrap:a("#headerwrap"),stickyHeader:themifyScript.sticky_header,init:function(){var b=this;b.calculateHeaderHeight();if(A){if(t)a("body").on("themify_onepage_afterload",function(c,h,d){c=0<a(q+".active",a(v)).index();b.activate(c);c&&(c=b.headerHeight,b.calculateHeaderHeight(),c!=b.headerHeight&&b.updatePageOffset())}.bind(b));
else b.activate(!1),a(window).on("scroll touchstart.touchScroll touchmove.touchScroll",function(a){b.activate(!1)}.bind(b));a(window).load(b.updatePageOffset.bind(b)).on("debouncedresize",function(a){a.isTrigger||setTimeout(function(){b.calculateHeaderHeight();b.updatePageOffset()}.bind(b),400)});0<a("#gallery-controller").length&&(b.hasHeaderSlider=!0);if(b.stickyHeader){var c='<img id="sticky_header_logo" src="'+b.stickyHeader.src+'"';b.stickyHeader.imgwidth&&(c+=' width="'+b.stickyHeader.imgwidth+
'"');b.stickyHeader.imgheight&&(c+=' height="'+b.stickyHeader.imgheight+'"');c+="/>";a("#site-logo a").prepend(c)}a("body").on("announcement_bar_position announcement_bar_scroll_on_after announcementBarUpdate",b.calculateHeaderHeight.bind(b))}},activate:function(b){var c=a(window).scrollTop();b||c>=this.headerHeight?!this.$headerWrap.hasClass("fixed-header")&&this.scrollEnabled():this.$headerWrap.hasClass("fixed-header")&&this.scrollDisabled()},scrollDisabled:function(){this.$headerWrap.removeClass("fixed-header");
a("#header").removeClass("header-on-scroll");a("body").removeClass("fixed-header-on");this.$headerWrap.hide();this.$headerWrap.get(0).offsetHeight;this.$headerWrap.show();this.calculateHeaderHeight();this.updatePageOffset();this.triggerHeaderSlider()},scrollEnabled:function(){this.updatePageOffset();this.$headerWrap.addClass("fixed-header");a("#header").addClass("header-on-scroll");a("body").addClass("fixed-header-on");this.triggerHeaderSlider();a(window).trigger("resize")},triggerHeaderSlider:function(){this.hasHeaderSlider&&
"object"===typeof this.$headerWrap.data("backstretch")&&(this.$headerWrap.data("backstretch").resize(),a("#gallery-controller .slides").trigger("next"))},calculateHeaderHeight:function(){this.headerHeight=this.$headerWrap.outerHeight(!0);this.updateHeaderOffset()},updateHeaderOffset:function(){var a="fixed"===this.$headerWrap.css("position")?this.$pageWrap.offset().top+"px":"";this.$headerWrap.css("margin-top",a)},updatePageOffset:function(){this.$pageWrap.css("paddingTop",Math.floor(this.headerHeight))}};
FixedHeader.init();ThemifySlider={recalcHeight:function(b,c){var e=[];a.each(b,function(){e.push(a(this).outerHeight(!0))});var h=Math.max.apply(Math,e);c.closest(".carousel-wrap").find(".caroufredsel_wrapper, .slideshow").each(function(){a(this).outerHeight(h)})},didResize:!1,createCarousel:function(b){var c=this;b.each(function(){var b=a(this);b.carouFredSel({responsive:!0,prev:"#"+b.data("id")+" .carousel-prev",next:"#"+b.data("id")+" .carousel-next",pagination:{container:"#"+b.data("id")+" .carousel-pager"},
circular:!0,infinite:!0,swipe:!0,scroll:{items:b.data("scroll"),fx:"scroll",duration:parseInt(b.data("speed"))},auto:{play:"off"!==b.data("autoplay"),timeoutDuration:"off"!==b.data("autoplay")?parseInt(b.data("autoplay")):0},items:{visible:{min:1,max:b.data("visible")?parseInt(b.data("visible")):1},width:222},onCreate:function(e){var d=b.closest(".slideshow-wrap");d.css({visibility:"visible",height:"auto"});a(window).on("throttledresize",function(){c.recalcHeight(e.items,b)});a(window).resize();setTimeout(function(){d.find(".carousel-nav-wrap").css("width",
18*parseInt(d.find(".carousel-pager").find("a").length)+"px")},200)}})})}};LayoutAndFilter={filterActive:!1,init:function(b){a(".post-filter+.loops-wrapper:not(.auto_tiles),.masonry:not(.list-post):not(.auto_tiles), .post-filter+.loops-wrapper .ptb_loops_wrapper",b).prepend('<div class="grid-sizer"></div><div class="gutter-sizer"></div>');Themify.is_builder_active||(this.enableFilters(),this.filterActive=!0);this.filter(b)},enableFilters:function(){var b=a(".post-filter");0<b.find("a").length&&"undefined"!==
typeof a.fn.isotope&&b.find("li").each(function(){var b=a(this),e=b.parent().next(),h=b.attr("class").replace(/(current-cat)|(cat-item)|(-)|(active)/g,"").replace(" ","");0===e.find(".post.cat-"+h).length?b.hide():b.show()})},filter:function(b){var c=a(".post-filter",b),e=!a("body").hasClass("rtl");initFilter=function(){c.each(function(){var b=a(this),c={isOriginLeft:e,percentPosition:!0},f=b.next();f.has(".ptb_loops_wrapper").length&&(f.find(".grid-sizer, gutter-sizer").remove(),f=f.find(".ptb_loops_wrapper"));
c.masonry={columnWidth:f.children(".grid-sizer").length?".grid-sizer":null,gutter:f.children(".gutter-sizer").length?".gutter-sizer":null};f.hasClass("masonry")||f.imagesLoaded(function(){c.itemSelector=".post";c.layoutMode="fitRows";c.fitRows={gutter:f.children(".gutter-sizer").length?".gutter-sizer":null};f.addClass("masonry-done").isotope(c)});b.addClass("filter-visible").on("click","a",function(d){d.preventDefault();var e=a(this).parent(),r=!1,u=a("body").hasClass("tile_enable")&&f.hasClass("auto_tiles");
e.hasClass("active")?(e.removeClass("active"),!u&&(c.filter=".post")):(e.addClass("active").siblings().removeClass("active"),r=e.attr("class").replace(/(current-cat)|(cat-item)|(-)|(active)/g,"").replace(" ",""),!u&&(c.filter=".cat-"+r));!d.isTrigger&&u&&f.data("themify_tiles")?(d=f.children(".post"),d.show(),r&&d.not(".cat-"+r).hide(),f.data("themify_tiles").update(),setTimeout(function(){a.themify_tiles.resizeParent(f);b.removeClass("filter-disable")},Math.round(1E3*parseFloat(f.css("transition-duration")))+
100)):f.addClass("masonry-done").imagesLoaded(function(){f.isotope(c);b.removeClass("filter-disable")})})})};if(Themify.is_builder_active)a("body").one("builder_load_module_partial",function(a,b,f){!b&&m(0<c.find("a").length,initFilter)});else m(0<c.find("a").length,initFilter)},scrolling:!1,reset:function(){a(".post-filter").find("li.active").find("a").addClass("previous-active").trigger("click");this.scrolling=!0},restore:function(){var b=a(".newItems").first(),c=this,b=b.offset().top-b.outerHeight(!0)/
2,e=800;800<=b&&(e=800+Math.abs(b/1E3*100));a("html,body").stop().animate({scrollTop:b},e,function(){c.scrolling=!1})},layout:function(b){var c=a(".loops-wrapper.masonry:not(.list-post)",b);if(0<c.length){var e=function(){c.addClass("masonry-done").isotope({masonry:{columnWidth:".grid-sizer",gutter:".gutter-sizer"},itemSelector:".loops-wrapper > article",isOriginLeft:!a("body").hasClass("rtl")}).isotope("once","layoutComplete",function(){a(window).trigger("resize")})},h=c.children(".loops-wrapper > article").last();
if(h.hasClass("wow"))h.one("webkitAnimationEnd oanimationend msAnimationEnd animationend",function(){setTimeout(e,1E3)});else e()}if("yes"===themifyScript.shop_masonry){var d=a(".woocommerce.archive",b).find("#content").find("ul.products");d.length&&d.imagesLoaded(function(){d.isotope({layoutMode:"fitRows",itemSelector:".product",isOriginLeft:!a("body").hasClass("rtl")}).addClass("masonry-done")})}var f=a(".gallery-wrapper.packery-gallery",b);0<f.length&&f.imagesLoaded(function(){f.isotope({layoutMode:"packery",
itemSelector:".item"})})},reLayout:function(){a(".masonry").not(".list-post").each(function(){var b=a(this);"object"===typeof b.data("isotope")&&b.isotope("layout")});var b=a(".gallery-wrapper.packery-gallery");0<b.length&&"object"===typeof b.data("isotope")&&b.isotope("layout");"yes"===themifyScript.shop_masonry&&(b=a(".woocommerce.archive").find("#content").find("ul.products"),b.length&&"object"===typeof b.data("isotope")&&b.isotope("layout"))}};a(document).ready(function(){function b(){var b=0<
a(".post-filter+.loops-wrapper,.masonry:not(.list-post)").length||"yes"===themifyScript.shop_masonry&&0<a(".woocommerce.archive").find("#content").find("ul.products").length||0<a(".gallery-wrapper.packery-gallery").length;m(b,function(){LayoutAndFilter.init();c.imagesLoaded().always(function(){LayoutAndFilter.layout()})})}var c=a("body"),e=a("#header"),h=a(".header-icons");if(c.hasClass("header-leftpane")||c.hasClass("header-rightpane"))a(".cart-icon").appendTo(a(".social-widget"));else if(c.hasClass("header-minbar"))a(".cart-icon").appendTo(a(".header-icons"));
else a(window).on("throttledresize",function(){h.is(":visible")&&!h.find(".cart-icon").length?a(".cart-icon").appendTo(h):!h.is(":visible")&&h.find(".cart-icon").length&&a(".cart-icon").appendTo(a("#main-nav-wrap"))});var d=a(".header-top-widgets .header-widget").wrap("</p>").parent().html();void 0!=d&&a(".header-top-widgets #headerwrap").prepend("<div class='header-widget-full clearfix'><div class='header-widget-inner'>"+d+"</div></div>");"undefined"!==typeof a.fn.themifyScrollHighlight&&c.themifyScrollHighlight();
if(Themify.is_builder_active)c.one("builder_load_module_partial",function(a,c,d){c||b()});else b();var f=a(".back-top");if(0<f.length){if(!t&&f.hasClass("back-top-float"))a(window).on("scroll touchstart.touchScroll touchmove.touchScroll",function(){10>window.scrollY?f.addClass("back-top-hide"):f.removeClass("back-top-hide")});f.on("click",function(b){b.preventDefault();b.stopPropagation();t?a("#footerwrap").toggleClass("expanded"):a("body,html").animate({scrollTop:0},800)})}k()&&"function"!=typeof a.fn.themifyDropdown&&
Themify.LoadAsync(themify_vars.url+"/js/themify.dropdown.js",function(){a("#main-nav").themifyDropdown()});if(c.hasClass("header-minbar")||c.hasClass("header-leftpane"))a("#menu-icon").themifySideMenu({close:"#menu-icon-close",side:"left"}),d=function(){if("undefined"!==typeof a.fn.niceScroll&&!k()){var b=e;c.hasClass("header-minbar")&&(b=a("#mobile-menu"));b.niceScroll();c.on("sidemenushow.themify",function(){setTimeout(function(){b.getNiceScroll().resize()},200)})}},e.length&&("function"!==typeof a.fn.niceScroll?
Themify.LoadAsync(themifyScript.themeURI+"/js/jquery.nicescroll.min.js",d,null,null,function(){return"undefined"!==typeof a.fn.niceScroll}):d());else if(c.hasClass("header-slide-out")||c.hasClass("header-rightpane")){if(a("#menu-icon").themifySideMenu({close:"#menu-icon-close",side:"right"}),d=function(){if("undefined"!==typeof a.fn.niceScroll&&!k()){var b=e;c.hasClass("header-slide-out")&&(b=a("#mobile-menu"));b.niceScroll();c.on("sidemenushow.themify",function(){setTimeout(function(){b.getNiceScroll().resize()},
200)})}},e.length||c.hasClass("header-slide-out"))"function"!==typeof a.fn.niceScroll?Themify.LoadAsync(themifyScript.themeURI+"/js/jquery.nicescroll.min.js",d,null,null,function(){return"undefined"!==typeof a.fn.niceScroll}):d()}else{a("#menu-icon").themifySideMenu({close:"#menu-icon-close"});var g=a('<div class="body-overlay">');c.append(g).on("sidemenushow.themify",function(){g.addClass("body-overlay-on")}).on("sidemenuhide.themify",function(){g.removeClass("body-overlay-on")}).on("click.themify touchend.themify",
".body-overlay",function(){a("#menu-icon").themifySideMenu("hide");a("#cart-icon").themifySideMenu("hide")});a(window).resize(function(){a("#mobile-menu").hasClass("sidemenu-on")&&a("#menu-icon").is(":visible")?g.addClass("body-overlay-on"):g.removeClass("body-overlay-on")})}c.hasClass("header-overlay")||(a("#main-nav li.menu-item-has-children > a, #main-nav li.page_item_has_children > a").after("<span class='child-arrow'></span>"),a("#main-nav li.menu-item-has-children > .child-arrow, #main-nav li.page_item_has_children > .child-arrow").click(function(){a(this).toggleClass("toggle-on");
return!0}));a("#cart-icon").themifySideMenu({panel:"#slide-cart",close:"#cart-icon-close"});a(".highlight-post:odd").addClass("odd");d=function(){"undefined"===typeof a.fn.niceScroll||k()||1200<a(window).width()&&a(".header-horizontal .header-widget, .header-top-bar .header-widget, .boxed-compact .header-widget, .header-stripe .header-widget").niceScroll()};a(".header-horizontal .header-widget, .header-top-bar .header-widget, .boxed-compact .header-widget, .header-stripe .header-widget").length&&
("function"!==typeof a.fn.niceScroll?Themify.LoadAsync(themifyScript.themeURI+"/js/jquery.nicescroll.min.js",d,null,null,function(){return"undefined"!==typeof a.fn.niceScroll}):d());var n=a(".header-horizontal, .header-top-bar, .boxed-compact, .header-stripe").find(".header-widget");0<n.length&&(a(".header-horizontal #main-nav, .header-top-bar #main-nav, .boxed-compact #main-nav, .header-stripe #main-nav").after(a('<a href="#" class="pull-down">')),a(".pull-down").on("click",function(b){k()||("function"!==
typeof a.fn.niceScroll?Themify.LoadAsync(themifyScript.themeURI+"/js/jquery.nicescroll.min.js",function(){n.getNiceScroll().resize()},null,null,function(){return"undefined"!==typeof a.fn.niceScroll}):n.getNiceScroll().resize());a("#header").toggleClass("pull-down-close");n.slideToggle("fast",function(){a("#pagewrap").css("paddingTop",a("#headerwrap").outerHeight(!0))});b.preventDefault()}));a(window).resize(function(){if(1200>a(window).width()){var b=a(".header-horizontal .header-widget, .header-top-bar .header-widget, .boxed-compact .header-widget, .header-stripe .header-widget");
b.length&&!k()&&("function"!==typeof a.fn.niceScroll?Themify.LoadAsync(themifyScript.themeURI+"/js/jquery.nicescroll.min.js",function(){b.getNiceScroll().remove()},null,null,function(){return"undefined"!==typeof a.fn.niceScroll}):b.getNiceScroll().remove());b.attr("style","")}});c.on("click",".loops-wrapper.grid4.polaroid .post-image + .post-content, .loops-wrapper.grid3.polaroid .post-image + .post-content, .loops-wrapper.grid2.polaroid .post-image + .post-content, .loops-wrapper.grid4.overlay .post-image + .post-content, .loops-wrapper.grid3.overlay .post-image + .post-content, .loops-wrapper.grid2.overlay .post-image + .post-content",
function(){var b=a(this).closest(".post").find("a[data-post-permalink]");b.attr("href")&&!b.hasClass("themify_lightbox")&&(window.location=b.attr("href"))});if(0<a(".loops-wrapper.slider").length){var r=0;a(".loops-wrapper.slider").each(function(){r++;var b=a(this);"undefined"===typeof b.attr("id")&&b.attr("id","loops-wrapper-"+r);var c=b.attr("id");b.addClass("slideshow-wrap");0===b.find(".slideshow").length?b.wrapInner('<div class="slideshow" data-id="'+c+'" data-autoplay="off" data-speed="1000" data-effect="scroll" data-visible="3" />'):
b.find(".slideshow").attr("data-id",c)})}0<a(".slideshow").length&&(a.fn.carouFredSel?ThemifySlider.createCarousel(a(".slideshow")):Themify.LoadAsync(themify_vars.url+"/js/carousel.min.js",function(){ThemifySlider.createCarousel(a(".slideshow"))},null,null,function(){return"undefined"!==typeof a.fn.carouFredSel}));var u=a("#headerwrap");c.on("announcement_bar_position announcement_bar_scroll_on_after",function(b,c){a("#pagewrap").css("paddingTop",Math.floor(u.outerHeight(!0)))}).on("announcement_bar_position",
function(b,c){if(a(this).hasClass("header-minbar")){var d=u.width();c.css({left:d-Math.abs(parseInt(u.css("left"),10)),right:d-Math.abs(parseInt(u.css("right"),10))})}});var z=0,B=c.hasClass("header-top-bar")||c.hasClass("header-horizontal")||c.hasClass("header-top-widgets")||c.hasClass("boxed-compact")||c.hasClass("header-stripe")||c.hasClass("header-magazine");a(window).resize(function(){B&&(a(window).width()>tf_mobile_menu_trigger_point?a("#main-nav li.has-mega-column > ul, #main-nav li.has-mega-sub-menu > .mega-sub-menu").css("width",
a("#header").width()):a("#main-nav li.has-mega-column > ul,#main-nav li.has-mega-sub-menu > .mega-sub-menu").removeAttr("style"));!z&&"function"===typeof x&&a(".mobile_menu_active").length&&("function"!==typeof a.fn.niceScroll?Themify.LoadAsync(themifyScript.themeURI+"/js/jquery.nicescroll.min.js",x,null,null,function(){return"undefined"!==typeof a.fn.niceScroll}):x(),z=1)});a(".header-overlay #main-nav li.menu-item-has-children > a, .header-overlay #main-nav li.page_item_has_children > a").after("<span class='child-arrow'></span>");
a(".header-overlay #main-nav li.menu-item-has-children > .child-arrow, .header-overlay #main-nav li.page_item_has_children > .child-arrow").click(function(){a(this).toggleClass("toggle-on").next("div, ul").toggle("fast");return!0});var x=function(){if("undefined"!==typeof a.fn.niceScroll&&!k()&&c.hasClass("header-overlay")){var b=a("#mobile-menu");b.niceScroll();c.on("sidemenushow.themify",function(){setTimeout(function(){b.getNiceScroll().resize()},200)})}};a(".mobile_menu_active").length&&("function"!==
typeof a.fn.niceScroll?Themify.LoadAsync(themifyScript.themeURI+"/js/jquery.nicescroll.min.js",x,null,null,function(){return"undefined"!==typeof a.fn.niceScroll}):x());if(t&&c.hasClass("query-section")){themifyScript.hash=window.location.hash.replace("#","").replace("!/","");"undefined"!==typeof a.fn.themifyScrollHighlight&&(c.on("scrollhighlight.themify",function(b,c){"undefined"!=typeof c&&""!=c&&a("#fp-nav").find("li").eq(a(".tb_section-"+c.replace("#","")).index()).find("a").trigger("click")}),
a(window).trigger("scroll"));var p=setInterval(function(){"undefined"!==typeof ThemifyBuilderModuleJs&&(clearInterval(p),y=ThemifyBuilderModuleJs.wowInit,ThemifyBuilderModuleJs.wowInit=function(){})},100);l();c.on("builder_toggle_frontend",function(b,c){"undefined"!==typeof a.fn.fullpage&&(c?(a.fn.fullpage.destroy("all"),a("html,body").css("overflowY","auto")):l())});a(window.frameElement).is("#themify_builder_site_canvas_iframe")&&a.fn.fullpage.destroy("all");c.on("themify_onepage_afterload",function(b,
c){tbLocalScript&&tbLocalScript.animationInviewSelectors&&"undefined"!==typeof ThemifyBuilderModuleJs&&ThemifyBuilderModuleJs.wow&&a(tbLocalScript.animationInviewSelectors).each(function(b,d){a(d,c).each(function(){ThemifyBuilderModuleJs.wow.show(this)})})}).on("themify_onepage_afterload themify_onepage_after_render",function(b,c,d){a.fn.waypoint&&Waypoint.refreshAll();"undefined"!==typeof ThemifyBuilderModuleJs&&null!==ThemifyBuilderModuleJs.wow&&"boolean"===typeof ThemifyBuilderModuleJs.wow.scrollHandler()&&
ThemifyBuilderModuleJs.wow.scrollHandler()})}else a(".section_loader").hide();if(t)c.on("click",'a[href*="#"]:not(.themify_lightbox)',function(b){var c=a(this).prop("href"),d=c.indexOf("#"),c=-1!=d?c.substring(d+1):"",d=a(".tb_section-"+c);1<c.length&&0<d.length&&"header"!==c&&(d.offset(),0<a(".fixed-header").length&&a("#headerwrap").outerHeight(!0),a.fn.fullpage.moveTo(d.index(q)+1),b.preventDefault())});a(".loops-wrapper.overlay .post").each(function(){a(this).find(".post-image").insertBefore(a(this).find(".post-content"))});
d=function(){"undefined"!==typeof a.fn.ThemifyMegaMenu&&(a(".has-mega-sub-menu").each(function(){a(this).find("> ul").removeAttr("class").wrap('<div class="mega-sub-menu sub-menu" />').after('<div class="mega-menu-posts" />').find("li.menu-item-type-taxonomy").addClass("mega-link")}),a(".has-mega-sub-menu").ThemifyMegaMenu({events:themifyScript.events}))};a(".has-mega-sub-menu").length&&("function"!==typeof a.fn.ThemifyMegaMenu?Themify.LoadAsync(themifyScript.themeURI+"/themify/megamenu/js/themify.mega-menu.js",
d):d())});a(window).resize(function(){var b=a("body");b.hasClass("header-menu-split")&&(a("#menu-icon").is(":visible")?0==a(".header-bar").find("#site-logo").length&&a("#site-logo").prependTo(".header-bar"):0===a(".themify-logo-menu-item").find("#site-logo").length&&a(".themify-logo-menu-item").append(a(".header-bar").find("#site-logo")));a(window).width()>tf_mobile_menu_trigger_point&&b.hasClass("header-magazine")&&(clearTimeout(),setTimeout(function(){a("#headerwrap").css({paddingBottom:a(".navbar-wrapper").outerHeight()})},
400))}).load(function(){function b(){var b=!0,c=f.hasClass("fixed-header");c&&f.removeClass("fixed-header");g.each(function(d){var e=a(this).data("fullwidthvideo");e&&(d={url:e,doLoop:!0,ambient:!0,id:d},b&&c&&(b=!1,d.onload=function(){f.addClass("fixed-header")}),a(this).ThemifyBgVideo(d))})}function c(){m(0<a(".masonry:not(.list-post), .gallery-wrapper.packery-gallery").length||"yes"===themifyScript.shop_masonry&&0<a(".woocommerce.archive #content ul.products").length,function(){d.imagesLoaded(function(){Themify.is_builder_active||
a(window).resize();LayoutAndFilter.reLayout()})})}function e(b){var c=a('<div class="post-tiled tiled-square-small" style="visibility: hidden !important; opacity: 0;" />').appendTo(b.first()),d=themifyScript.tiledata.padding,e=parseFloat(c.width());c.remove();b.each(function(){var b=a(this);a(this).imagesLoaded().always(function(a){b.children(".product").addClass("post");a=b.children(".post");themifyScript.tiledata.padding=b.hasClass("no-gutter")?0:d;b.themify_tiles(themifyScript.tiledata,e);setClasses(a,
e)})})}function h(b){a(document).ajaxComplete(function(b,c,d){"POST"===d.type&&d.url.indexOf("wpf_search")&&e(a(".loops-wrapper.auto_tiles"))})}var d=a("body");Themify.is_builder_active||(d.hasClass("woocommerce")&&d.hasClass("archive")?p(a("#content ul.products"),"#content .product"):p(a("#loops-wrapper"),".post"));var f=a("#headerwrap"),g=f.find("[data-fullwidthvideo]");f.data("fullwidthvideo")&&(g=g.add(f));0<g.length&&!k()&&("undefined"===typeof a.fn.ThemifyBgVideo?Themify.LoadAsync(themify_vars.url+
"/js/bigvideo.js",b,null,null,function(){return"undefined"!==typeof a.fn.ThemifyBgVideo}):b());if(Themify.is_builder_active)d.one("builder_load_module_partial",function(a,b,d){b||c()});else c();a(function(a){a("#main-nav li:has(ul), #footer-nav li:has(ul)").on("mouseenter dropdown_open",function(b){window.clearTimeout(a(this).data("edge_menu_t"));var c=a("ul:first",this);b=c.offset().left;var c=c.width(),d=a(window).width();b+c<=d||a(this).addClass("edge")}).on("mouseleave dropdown_close",function(){var b=
a(this),c=setTimeout(function(){b.removeClass("edge")},300);b.data("edge_menu_t",c)})});t&&d.hasClass("query-section")&&(d.on("themify_onepage_after_render",function(){a.each(tbLocalScript.animationInviewSelectors,function(b,c){a(c).css("visibility","hidden")});window.location.hash&&setTimeout(function(){var b=themifyScript.hash;if(""!=b&&"#"!=b){var c=n?a(".tb_section-"+b):a("#"+b);0<c.length&&(a.fn.fullpage.moveTo(c.index()+1),"undefined"!==typeof ThemifyBuilderModuleJs&&a(tbLocalScript.animationInviewSelectors).each(function(b,
d){a(d,c).addBack().each(function(){ThemifyBuilderModuleJs.wow.show(this)})}))}},1500)}),a(".module_row").css("visibility","visible"));a(document).on("click",".remove-item-js",function(b){b.preventDefault();var c=a(this);b={action:"theme_delete_cart",remove_item:c.attr("data-product-key")};var e=d.find(".ajax_add_to_cart "),f=c.parent().find(".product-title a").attr("href");a.post(woocommerce_params.ajax_url,b,function(b){var g=b.fragments;b=b.cart_hash;0==c.parent().find(".added_to_cart").size()&&
c.addClass("added");g&&(a.each(g,function(b,c){a(b).addClass("updating").replaceWith(c)}),a(g["#shopdock-ultra"]).find(".cart-total").length||a("#cart-icon-close").trigger("click"));e.length&&e.each(function(){a(this).hasClass("added")&&a(this).closest(".post-content").find('[href="'+f+'"]').length&&a(this).removeClass("added").siblings(".added_to_cart").remove()});d.trigger("removed_from_cart",[g,b])})});var l=a(".auto_tiles");0<l.length&&d.hasClass("tile_enable")&&("undefined"===typeof Tiles?Themify.LoadAsync(themifyScript.themeURI+
"/js/tiles.min.js",function(){a.fn.themify_tiles?(e(l),h(l)):"undefined"===typeof a.fn.backstretch?Themify.LoadAsync(themify_vars.url+"/js/backstretch.min.js",function(){Themify.LoadAsync(themifyScript.themeURI+"/js/themify-tiles.js",function(){e(l);h(l)},null,null,function(){return"undefined"!==typeof a.fn.themify_tiles})},null,null,function(){return"undefined"!==typeof a.fn.backstretch}):Themify.LoadAsync(themifyScript.themeURI+"/js/themify-tiles.js",function(){e(l);h(l)},null,null,function(){return"undefined"!==
typeof a.fn.themify_tiles})},null,null,function(){return"undefined"!==typeof Tiles}):(e(l),h(l)));if(Themify.is_builder_active)d.on("builder_load_module_partial",function(a,b,c){m(b&&0<b.find(".builder-posts-wrap.masonry:not(.list-post)").length,function(){LayoutAndFilter.init(b);d.imagesLoaded().always(function(){LayoutAndFilter.layout(b)})},!0)})})})(jQuery);

