PageSourceSearch

https://www.rlwesthoek.be/wp-content/themes/bridge/js/default.min.js?ver=7.1.2

js rlwesthoek.be collected 2026-10-02 16:46:34 UTC 294,134 bytes, 5,502 lines download raw bytes

1function getScrollAmountForStickyHeader() {
2    return "undefined" != typeof page_scroll_amount_for_sticky ? amount = page_scroll_amount_for_sticky : $j(".carousel.full_screen").length ? amount = $j(".carousel").height() : amount = scroll_amount_for_sticky, amount
3}
4
5function headerSize(e) {
6    "use strict";
7    if ($j("header.page_header").hasClass("scroll_top") && $j("header.page_header").hasClass("has_top") && ($j("header.page_header").hasClass("fixed") || $j("header.page_header").hasClass("fixed_hiding")) && (e >= 0 && e <= 34 ? ($j("header.page_header").css("top", -e), $j("header.page_header").css("margin-top", 0), $j(".header_top").show()) : e > 34 && ($j("header.page_header").css("top", "-34px"), $j("header.page_header").css("margin-top", 34), $j(".header_top").hide())), sticky_amount = getScrollAmountForStickyHeader(), $j("header").hasClass("regular") && (header_height - logo_height >= 10 ? $j(".q_logo a").height(logo_height) : $j(".q_logo a").height(header_height - 10), $j(".q_logo a img").css("height", "100%")), $j("header.page_header").hasClass("fixed") && ($top_header_height = $j("header.page_header").hasClass("scroll_top") ? 34 : 0, header_height - e + $top_header_height >= min_header_height_scroll && e >= $top_header_height ? ($j("header.page_header").removeClass("scrolled"), $j("header:not(.centered_logo.centered_logo_animate) nav.main_menu > ul > li > a").css("line-height", header_height - e + $top_header_height + "px"), $j("header:not(.centered_logo.centered_logo_animate) .side_menu_button").css("height", header_height - e + $top_header_height + "px"), $j("header:not(.centered_logo.centered_logo_animate) .shopping_cart_inner").css("height", header_height - e + $top_header_height + "px"), $j("header:not(.centered_logo.centered_logo_animate) .header_bottom .qode-login-register-widget.qode-user-logged-in .qode-logged-in-user").css("height", header_height - e + $top_header_height + "px"), $j("header:not(.centered_logo.centered_logo_animate) .logo_wrapper").css("height", header_height - e + $top_header_height + "px"), header_height - logo_height > 0 ? $j("header:not(.centered_logo.centered_logo_animate) .q_logo a").css("height", logo_height + "px") : $j("header:not(.centered_logo.centered_logo_animate) .q_logo a").css("height", header_height - e + $top_header_height - 10 + "px")) : e < $top_header_height ? ($j("header.page_header").removeClass("scrolled"), $j("header:not(.centered_logo.centered_logo_animate) nav.main_menu > ul > li > a").css("line-height", header_height + "px"), $j("header:not(.centered_logo.centered_logo_animate) .side_menu_button").css("height", header_height + "px"), $j("header:not(.centered_logo.centered_logo_animate) .shopping_cart_inner").css("height", header_height + "px"), $j("header:not(.centered_logo.centered_logo_animate) .header_bottom .qode-login-register-widget.qode-user-logged-in .qode-logged-in-user").css("height", header_height + "px"), $j("header:not(.centered_logo.centered_logo_animate) .logo_wrapper").css("height", header_height + "px"), header_height - logo_height > 0 ? $j("header:not(.centered_logo.centered_logo_animate) .q_logo a").css("height", logo_height + "px") : $j("header:not(.centered_logo.centered_logo_animate) .q_logo a").css("height", header_height - 10 + "px")) : header_height - e + $top_header_height < min_header_height_scroll && ($j("header.page_header").addClass("scrolled"), $j("header:not(.centered_logo.centered_logo_animate) nav.main_menu > ul > li > a").css("line-height", min_header_height_scroll + "px"), $j("header:not(.centered_logo.centered_logo_animate) .side_menu_button").css("height", min_header_height_scroll + "px"), $j("header:not(.centered_logo.centered_logo_animate) .shopping_cart_inner").css("height", min_header_height_scroll + "px"), $j("header:not(.centered_logo.centered_logo_animate) .header_bottom .qode-login-register-widget.qode-user-logged-in .qode-logged-in-user").css("height", min_header_height_scroll + "px"), $j("header:not(.centered_logo.centered_logo_animate) .logo_wrapper").css("height", min_header_height_scroll + "px"), min_header_height_scroll - logo_height > 0 ? $j("header:not(.centered_logo.centered_logo_animate) .q_logo a").css("height", logo_height + "px") : $j("header:not(.centered_logo.centered_logo_animate) .q_logo a").css("height", min_header_height_scroll - 10 + "px")), $j("header.page_header").hasClass("centered_logo") && $j("header.page_header").hasClass("centered_logo_animate") ? header_height - e + $top_header_height < logo_height && header_height - e + $top_header_height >= min_header_height_scroll && logo_height > min_header_height_scroll - 10 && e >
7= $top_header_height ? $j(".q_logo a").height(header_height - e + $top_header_height - 10) : header_height - e + $top_header_height < logo_height && header_height - e + $top_header_height >= min_header_height_scroll && logo_height > min_header_height_scroll - 10 && e < $top_header_height ? $j(".q_logo a").height(header_height - 10) : header_height - e + $top_header_height < logo_height && header_height - e + $top_header_height < min_header_height_scroll && logo_height > min_header_height_scroll - 10 ? $j(".q_logo a").height(min_header_height_scroll - 10) : header_height - e + $top_header_height < logo_height && header_height - e + $top_header_height < min_header_height_scroll && logo_height < min_header_height_scroll - 10 ? $j(".q_logo a").height(logo_height) : (e + $top_header_height === 0 && header_height, $j(".q_logo a").height(logo_height)) : $j("header.page_header").hasClass("centered_logo") ? ($j(".q_logo a").height(logo_height), $j(".q_logo img").height("auto")) : $j(".q_logo img").height("100%"), setLeftPostionedMenuPadding()), $j("header.page_header").hasClass("fixed_hiding") && (e < scroll_amount_for_fixed_hiding ? $j("header.page_header").removeClass("scrolled") : $j("header.page_header").addClass("scrolled"), $j(".q_logo a").height(logo_height / 2), $j(".q_logo img").height("100%")), $j("header.page_header").hasClass("stick") || $j("header.page_header").hasClass("stick_with_left_right_menu")) {
8        if (e > sticky_amount) {
9            if (!$j("header.page_header").hasClass("sticky")) {
10                $top_header_height = $j("header.page_header").hasClass("has_top") ? 34 : 0;
11                var t = $j("header.page_header").hasClass("centered_logo") ? $j("header.page_header").height() : header_height + $top_header_height;
12                $j("header.page_header").hasClass("menu_bottom") && (t = header_height + 60), $j("header.page_header").addClass("sticky"), $j(".content").css("padding-top", t), window.clearTimeout(sticky_animate), sticky_animate = window.setTimeout(function() {
13                    $j("header.page_header").addClass("sticky_animate")
14                }, 100), min_header_height_sticky - logo_height >= 10 ? $j(".q_logo a").height(logo_height) : $j(".q_logo a").height(min_header_height_sticky - 10), $j("header.page_header").hasClass("menu_bottom") && initDropDownMenu()
15            }
16            min_header_height_sticky - logo_height >= 10 ? $j(".q_logo a").height(logo_height) : $j(".q_logo a").height(min_header_height_sticky - 10)
17        } else $j("header.page_header").hasClass("sticky") && ($j("header").removeClass("sticky_animate"), $j("header").removeClass("sticky"), $j(".content").css("padding-top", "0px"), $j("header.page_header").hasClass("menu_bottom") && initDropDownMenu()), setMargingsForLeftAndRightMenu(), $j("header.page_header").hasClass("centered_logo") ? ($j(".q_logo a").height(logo_height), $j(".q_logo img").height("auto")) : header_height - logo_height >= 10 ? $j(".q_logo a").height(logo_height) : $j(".q_logo a").height(header_height - 10), $j(".q_logo a img").css("height", "100%");
18        setLeftPostionedMenuPadding()
19    }
20}
21
22function qodeMobileHeaderBehavior() {
23    if ($j("header").hasClass("sticky_mobile")) {
24        var e = $j(".page_header"),
25            t = (e.find(".mobile_menu_button"), e.outerHeight()),
26            i = $j("#wpadminbar").length ? $j("#wpadminbar").height() : 0,
27            o = t,
28            a = $scroll,
29            n = function() {
30                if (e.find(".header_inner").css("padding-top", 0), $window_width < 1e3) {
31                    var n = $scroll;
32                    n > o ? (e.addClass("qode-animate-mobile-header"), $j(".content").css("padding-top", t)) : (e.removeClass("qode-animate-mobile-header"), $j(".content").css("padding-top", 0)), n > a && n >= o || n <= o ? (e.removeClass("mobile-header-appear"), e.find(".header_inner").css("padding-top", 0)) : (e.addClass("mobile-header-appear"), e.find(".header_inner").css("padding-top", i)), a = $scroll
33                }
34            };
35        qode_window.on("scroll resize", function() {
36            n()
37        })
38    }
39}
40
41
42function initVerticalMenu(){
43	"use strict";
44
45	if ($j('.no-touch .vertical_menu_toggle').length) {
46		var menu_items = $j('.no-touch .vertical_menu_toggle > ul > li');
47		var menu_items_2 = $j('.no-touch .vertical_menu_toggle ul li ul li');
48
49		menu_items.each( function(i) {
50			if($j(menu_items[i]).hasClass('has_sub')){
51	            var subitems_number = $j(menu_items[i]).find('.inner > ul > li').length;
52				$j(menu_items[i]).hoverIntent({
53	                over: function() {
54	                    $j(menu_items[i]).addClass('open');
55						$j(menu_items[i]).find('.second').slideDown(subitems_number*40, 'easeInOutSine', function(){
56							$j('.vertical_menu_area.with_scroll').getNiceScroll().resize();
57						});
58
59					},
60					out: function() {
61						//if(!$j(menu_items[i]).hasClass('active')){
62						$j(menu_items[i]).removeClass('open');
63						$j(menu_items[i]).find('.second').slideUp(subitems_number*40, 'easeInOutSine');
64						//}
65					},
66					timeout: 1000
67				});
68			}
69		});
70
71		menu_items_2.each( function(i) {
72			if($j(menu_items_2[i]).hasClass('menu-item-has-children')){
73	            var subitems_number = $j(menu_items_2[i]).find('ul > li').length;
74	            $j(menu_items_2[i]).hoverIntent({
75					over: function() {
76						$j(menu_items_2[i]).addClass('open');
77						$j(menu_items_2[i]).find('ul').slideDown(subitems_number*40, 'easeInOutSine', function(){
78							$j('.vertical_menu_area.with_scroll').getNiceScroll().resize();
79						});
80					},
81					out: function() {
82						$j(menu_items_2[i]).removeClass('open');
83						$j(menu_items_2[i]).find('ul').slideUp(subitems_number*40, 'easeInOutSine');
84					},
85					timeout: 1000
86				});
87			}
88		});
89	}
90	else if ($j('.vertical_menu_on_click').length) {
91		return false;
92        var menu_items = $j('.vertical_menu_on_click > ul > li > a');
93        var menu_items_2 = $j('.vertical_menu_on_click ul li ul li a');
94
95        menu_items.each(function (i) {
96            if ($j(menu_items[i]).parent().hasClass('has_sub')) {
97                $j(menu_items[i]).on('tap click', function (e) {
98                    e.preventDefault();
99                    if (!$j(this).parent().hasClass('open')) {
100                        $j('.vertical_menu_on_click > ul > li').removeClass('open');
101                        $j('.vertical_menu_on_click > ul > li').find('.second').slideUp('fast');
102
103                        $j(this).parent().addClass('open');
104                        $j(this).parent().find('.second').slideDown('slow', function () {
105                            $j('.vertical_menu_area.with_scroll').getNiceScroll().resize();
106                        });
107                    }
108                    else {
109                        $j(this).parent().removeClass('open');
110                        $j(this).parent().find('.second').slideUp('fast', function () {
111                            $j('.vertical_menu_area.with_scroll').getNiceScroll().resize();
112                        });
113                    }
114                });
115                return false;
116            }
117        });
118
119        /*  else if(!$j(this).parent().hasClass(‘current-menu-parent’)) {
120            $j(this).parent().addClass(‘open’);
121        });*/
122
123        menu_items_2.each(function (i) {
124            if ($j(menu_items_2[i]).parent().hasClass('menu-item-has-children')) {
125                $j(menu_items_2[i]).on('tap click', function (e) {
126                    e.preventDefault();
127                    if (!$j(this).parent().hasClass('open')) {
128                        $j('.vertical_menu_on_click ul li ul li').removeClass('open');
129                        $j('.vertical_menu_on_click ul li ul li').find('ul').slideUp('fast');
130
131                        $j(this).parent().addClass('open');
132                        $j(this).parent().find('ul').slideDown('slow', function () {
133                            $j('.vertical_menu_area.with_scroll').getNiceScroll().resize();
134                        });
135                    }
136                    else {
137                        $j(this).parent().removeClass('open');
138                        $j(this).parent().find('ul').slideUp('fast', function () {
139                            $j('.vertical_menu_area.with_scroll').getNiceScroll().resize();
140                        });
141                    }
142                });
143                return false;
144            }
145        });
146    }
147	else if ($j('.no-touch .vertical_menu_float').length){
148        //show dropdown to content on menu item hover, link is available on menu item click
149        var menu_items = $j('.no-touch .vertical_menu_float > ul > li');
150        var menu_items_2 = $j('.no-touch .vertical_menu_float ul li ul li');
151        menu_items.each( function(i) {
152            if($j(menu_items[i]).hasClass('has_sub')){
153                $j(menu_items[i]).hoverIntent({
154                   over: function() {
155                        $j(menu_items[i]).addClass('open');
156                        $j(menu_items[i]).find('.second').addClass('vertical_menu_start');
157                    },
158                    out: function() {
159                        //if(!$j(menu_items[i]).hasClass('active')){
160                        $j(menu_items[i]).removeClass('open');
161                        $j(menu_items[i]).find('.second').removeClass('vertical_menu_start');
162                    },
163                    timeout: 300
164                });
165            }
166        });
167
168        menu_items_2.each( function(i) {
169            if($j(menu_items_2[i]).hasClass('menu-item-has-children')){
170                var subitems_number = $j(menu_items_2[i]).find('ul > li').length;
171                $j(menu_items_2[i]).hoverIntent({
172                    over: function() {
173                        $j(menu_items_2[i]).addClass('open');
174                        $j(menu_items_2[i]).find('ul').addClass('vertical_submenu_start');
175                    },
176                    out: function() {
177                        $j(menu_items_2[i]).removeClass('open');
178                        $j(menu_items_2[i]).find('ul').removeClass('vertical_submenu_start');
179                    },
180                    timeout: 300
181                });
182            }
183        });
184	}
185
186}
187
188function setMargingsForLeftAndRightMenu() {
189    "use strict";
190    if ($j("header.page_header").hasClass("stick_with_left_right_menu") && !$j("header.page_header").hasClass("left_right_margin_set")) {
191        var e = $j(".q_logo a img").width() / 2;
192        0 == $scroll && 0 != e && $j("header.page_header").addClass("left_right_margin_set"), $j(".logo_wrapper").width(2 * e), $j("nav.main_menu.left_side > ul > li:last-child").css("margin-right", e), $j("nav.main_menu.right_side > ul > li:first-child").css("margin-left", e), $j(".rtl nav.main_menu.left_side > ul > li:first-child").css("margin-right", e), $j(".rtl nav.main_menu.left_side > ul > li:last-child").css("margin-right", 0), $j(".rtl nav.main_menu.right_side > ul > li:last-child").css("margin-left", e), $j(".rtl nav.main_menu.right_side > ul > li:first-child").css("margin-left", 0)
193    }
194}
195
196function setLeftPostionedMenuPadding() {
197    "use strict";
198    var e = $j("header:not(.centered_logo) nav.main_menu");
199    if (e.length && e.hasClass("left")) {
200        var t = $j(".q_logo a img").filter(function() {
201            return "1" == $j(this).css("opacity")
202        });
203        e.css("left", t.width())
204    }
205}
206
207function logoSizeOnSmallScreens() {
208    "use strict";
209    80 < logo_height ? $j(".q_logo a").height(80) : $j(".q_logo a").height(logo_height), $j(".q_logo a img").css("height", "100%"), $j("header.page_header").removeClass("sticky_animate sticky"), $j(".content").css("padding-top", "0px")
210}
211
212function contentMinHeight() {
213    "use strict";
214    if ($j("header .header_bottom").length || $j("header .bottom_header").length) {
215        if ($j("header .header_bottom").length) var e = $j("header .header_bottom").css("background-color");
216        if ($j("header .bottom_header").length) var e = $j("header .bottom_header").css("background-color");
217        var t = e.substring(e.indexOf("(") + 1, e.lastIndexOf(")")).split(/,\s*/)[3],
218            i = void 0 != t || $j("header.page_header").hasClass("transparent") ? 0 : $j("header.page_header").height();
219        $j("body .content").css("min-height", $window_height - i - $j("footer:not(.uncover)").height())
220    }
221}
222
223function contentMinHeightWithPaspartu() {
224    "use strict";
225    if ($j(".paspartu_enabled").length) {
226        var e, t = 0,
227            i = $window_width * paspartu_width,
228            o = $j("footer").height();
229        if ($j(".disable_footer").length && (o = 0), $j(".vertical_menu_enabled").length ? $j(".paspartu_top").length && $j(".paspartu_middle_inner").length && (t += i) : $j(".paspartu_top").length && (t += i), !$j(".paspartu_bottom").length && $j(".disable_bottom_paspartu").length || (t += i), $j(".vertical_menu_enabled").length) e = $window_height - t - o;
230        else {
231            if ($j("header .header_bottom").length) var a = $j("header .header_bottom").css("background-color");
232            if ($j("header .bottom_header").length) var a = $j("header .bottom_header").css("background-color");
233            var n = a.substring(a.indexOf("(") + 1, a.lastIndexOf(")")).split(/,\s*/)[3],
234                s = void 0 != n || $j("header.page_header").hasClass("transparent") ? 0 : $j("header.page_header").height();
235            e = $window_height - s - t - o
236        }
237        $j(".content").length && $j(".content").css("min-height", e)
238    }
239}
240
241
242function initQodeSlider() {
243    "use strict";
244    var e = /url\(["']?([^'")]+)['"]?\)/;
245    if (default_header_style = "", $j("header.page_header").hasClass("light") && (default_header_style = "light"), $j("header.page_header").hasClass("dark") && (default_header_style = "dark"), $j(".carousel").length) {
246        var t = {
247            zoom_center: "1.2, 0, 0, 1.2, 0, 0",
248            zoom_top_left: "1.2, 0, 0, 1.2, -150, -150",
249            zoom_top_right: "1.2, 0, 0, 1.2, 150, -150",
250            zoom_bottom_left: "1.2, 0, 0, 1.2, -150, 150",
251            zoom_bottom_right: "1.2, 0, 0, 1.2, 150, 150"
252        };
253        ! function(e) {
254            var t = /\([0-9epx\.\, \t\-]+/gi,
255                i = function(e) {
256                    return e.match(t)[0].substr(1).split(",").map(function(e) {
257                        return parseFloat(e)
258                    })
259                },
260                o = ["transform", "-webkit-transform"],
261                a = function(e) {
262                    var t = null;
263                    return o.some(function(i) {
264                        return null !== (t = e.css(i)) && "" !== t
265                    }), t = t && "none" !== t ? t : "matrix(1,0,0,1,0,0)", i(t)
266                },
267                n = function(e, t) {
268                    for (var i = "matrix(" + t.join(",") + ")", a = o.length - 1; a >= 0; --a) e.css(o[a], i + " rotate(0.01deg)")
269                },
270                s = function(e, t, i) {
271                    return e + i / 100 * (t - e)
272                };
273            e.fn.transformAnimate = function(t) {
274                var o = {
275                    transform: "matrix(1,0,0,1,0,0)"
276                };
277                e.extend(o, t), this.css("percentAnim", 0);
278                var r = a(this),
279                    d = i(o.transform);
280                return o.step = function(i, o) {
281                    var a = e(this),
282                        l = r.map(function(e, t) {
283                            return s(e, d[t], i)
284                        });
285                    n(a, l), t.step && t.step.apply(this, [l, o])
286                }, this.stop().animate({
287                    percentAnim: 100
288                }, o)
289            }
290        }(jQuery), $j(".carousel").each(function() {
291            function i(e, t) {
292                var i = t;
293                e.hasClass("advanced_responsiveness") ? $window_width > v[0] ? i = t : $window_width > v[1] ? i = .75 * t : $window_width > v[2] ? i = .6 * t : $window_width > v[3] ? i = .55 * t : $window_width <= v[3] && (i = .45 * t) : $window_width > v[0] ? i = t : $window_width > v[1] ? i = .8 * t : $window_width > v[2] ? i = .7 * t : $window_width <= v[2] && (i = 1 * t), e.css({
294                    height: i + "px"
295                }), e.find(".qode_slider_preloader").css({
296                    height: i + "px"
297                }), e.find(".qode_slider_preloader .ajax_loader").css({
298                    display: "block"
299                }), e.find(".item").css({
300                    height: i + "px"
301                })
302            }
303
304            function o(e) {
305                p.css({
306                    height: e + "px"
307                }), p.find(".qode_slider_preloader").css({
308                    height: e + "px"
309                }), p.find(".qode_slider_preloader .ajax_loader").css({
310                    display: "block"
311                }), p.find(".item").css({
312                    height: e + "px"
313                })
314            }
315
316            function a(e, t) {
317                window["slider_graphic_width_" + t] = [], window["slider_graphic_height_" + t] = [], window["slider_svg_width_" + t] = [], window["slider_svg_height_" + t] = [], window["slider_title_" + t] = [], window["slider_subtitle_" + t] = [], window["slider_text_" + t] = [], window["slider_button1_" + t] = [], window["slider_button2_" + t] = [], window["slider_separator_" + t] = [], window["slider_graphic_width_" + t].push(parseFloat(e.find(".thumb img").data("width"))), window["slider_graphic_height_" + t].push(parseFloat(e.find(".thumb img").data("height"))), window["slider_svg_width_" + t].push(parseFloat(e.find(".qode_slide-svg-holder svg").attr("width"))), window["slider_svg_height_" + t].push(parseFloat(e.find(".qode_slide-svg-holder svg").attr("height"))), window["slider_title_" + t].push(parseFloat(e.find(".q_slide_title").css("font-size"))), window["slider_subtitle_" + t].push(parseFloat(e.find(".q_slide_subtitle").css("font-size"))), window["slider_text_" + t].push(parseFloat(e.find(".q_slide_text").css("font-size"))), window["slider_button1_" + t].push(parseFloat(e.find(".qbutton:eq(0)").css("font-size"))), window["slider_button2_" + t].push(parseFloat(e.find(".qbutton:eq(1)").css("font-size"))), window["slider_title_" + t].push(parseFloat(e.find(".q_slide_title").css("line-height"))), window["slider_subtitle_" + t].push(parseFloat(e.find(".q_slide_subtitle").css("line-height"))), window["slider_text_" + t].push(parseFloat(e.find(".q_slide_text").css("line-height"))), window["slider_button1_" + t].push(parseFloat(e.find(".qbutton:eq(0)").css("line-height"))), window["slider_button2_" + t].push(parseFloat(e.find(".qbutton:eq(1)").css("line-height"))), window["slider_title_" + t].push(parseFloat(e.find(".q_slide_title").css("letter-spacing"))), window["slider_subtitle_" + t].push(parseFloat(e.find(".q_slide_subtitle").css("letter-spacing"))), window["slider_text_" + t].push(parseFloat(e.find(".q_slide_text").css("letter-spacing"))), window["slider_button1_" + t].push(parseFloat(e.find(".qbutton:eq(0)").css("letter-spacing"))), window["slider_button2_" + t].push(parseFloat(e.find(".qbutton:eq(1)").css("letter-spacing"))), window["slider_title_" + t].push(parseFloat(e.find(".q_slide_title").css("margin-bottom"))), window["slider_subtitle_" + t].push(parseFloat(e.find(".q_slide_subtitle").css("margin-bottom"))), window["slider_button1_" + t].push(parseFloat(e.find(".qbutton:eq(0)").css("height"))), window["slider_button2_" + t].push(parseFloat(e.find(".qbutton:eq(1)").css("height"))), 0 != parseFloat(e.find(".qbutton:eq(0)").css("width")) ? window["slider_button1_" + t].push(parseFloat(e.find(".qbutton:eq(0)").css("width"))) : window["slider_button1_" + t].push(0), 0 != parseFloat(e.find(".qbutton:eq(1)").css("width")) ? window["slider_button2_" + t].push(parseFloat(e.find(".qbutton:eq(1)").css("width"))) : window["slider_button2_" + t].push(0), window["slider_button1_" + t].push(parseFloat(e.find(".qbutton:eq(0)").css("padding-left"))), window["slider_button1_" + t].push(parseFloat(e.find(".qbutton:eq(0)").css("padding-right"))), window["slider_button2_" + t].push(parseFloat(e.find(".qbutton:eq(1)").css("padding-left"))), window["slider_button2_" + t].push(parseFloat(e.find(".qbutton:eq(1)").css("padding-right"))), window["slider_separator_" + t].push(parseFloat(e.find(".separator").css("margin-top"))), window["slider_separator_" + t].push(parseFloat(e.find(".separator").css("margin-bottom")))
318            }
319
320            function n(e, t) {
321                $window_width > v[0] ? (c = j[0], h = w[0], _ = b[0], u = q[0], f = y[0]) : $window_width > v[1] ? (c = j[1], h = w[1], _ = b[1], u = q[1], f = y[1]) : $window_width > v[2] ? (c = j[2], h = w[2], _ = b[2], u = q[2], f = y[2]) : $window_width > v[3] ? (c = j[3], h = w[3], _ = b[3], u = q[3], f = y[3]) : $window_width > v[4] ? (c = j[4], h = w[4], _ = b[4], u = q[4], f = y[4]) : $window_width > v[5] ? (c = j[5], h = w[5], _ = b[5], u = q[5], f = y[5]) : (c = j[6], h = w[6], _ = b[6], u = q[6], f = y[6]);
322                var i = h,
323                    o = _,
324                    a = u;
325                $window_width <= v[0] && (i = h / 2, o = _ / 2, a = u / 2), e.find(".thumb").css({
326                    width: Math.round(window["slider_graphic_width_" + t][0] * c) + "px"
327                }).css({
328                    height: Math.round(window["slider_graphic_height_" + t][0] * c) + "px"
329                }), e.find(".qode_slide-svg-holder svg").css({
330                    width: Math.round(window["slider_svg_width_" + t][0] * c) + "px"
331                }).css({
332                    height: Math.round(window["slider_svg_height_" + t][0] * c) + "px"
333                }), e.find(".q_slide_title").css({
334                    "font-size": Math.round(window["slider_title_" + t][0] * h) + "px"
335                }), e.find(".q_slide_title").css({
336                    "line-height": Math.round(window["slider_title_" + t][1] * h) + "px"
337                }), e.find(".q_slide_title").css({
338                    "letter-spacing": Math.round(window["slider_title_" + t][2] * i) + "px"
339                }), e.find(".q_slide_title").css({
340                    "margin-bottom": Math.round(window["slider_title_" + t][3] * h) + "px"
341                }), e.find(".q_slide_subtitle").css({
342                    "font-size": Math.round(window["slider_subtitle_" + t][0] * _) + "px"
343                }), e.find(".q_slide_subtitle").css({
344                    "line-height": Math.round(window["slider_subtitle_" + t][1] * _) + "px"
345                }), e.find(".q_slide_subtitle").css({
346                    "letter-spacing": Math.round(window["slider_subtitle_" + t][2] * o) + "px"
347                }), e.find(".q_slide_subtitle").css({
348                    "margin-bottom": Math.round(window["slider_subtitle_" + t][3] * _) + "px"
349                }), e.find(".q_slide_text").css({
350                    "font-size": Math.round(window["slider_text_" + t][0] * u) + "px"
351                }), e.find(".q_slide_text").css({
352                    "line-height": Math.round(window["slider_text_" + t][1] * u) + "px"
353                }), e.find(".q_slide_text").css({
354                    "letter-spacing": Math.round(window["slider_text_" + t][2] * a) + "px"
355                }), e.find(".qbutton:eq(0)").css({
356                    "font-size": Math.round(window["slider_button1_" + t][0] * f) + "px"
357                }), e.find(".qbutton:eq(1)").css({
358                    "font-size": Math.round(window["slider_button2_" + t][0] * f) + "px"
359                }), e.find(".qbutton:eq(0)").css({
360                    "line-height": Math.round(window["slider_button1_" + t][1] * f) + "px"
361                }), e.find(".qbutton:eq(1)").css({
362                    "line-height": Math.round(window["slider_button2_" + t][1] * f) + "px"
363                }), e.find(".qbutton:eq(0)").css({
364                    "letter-spacing": Math.round(window["slider_button1_" + t][2] * f) + "px"
365                }), e.find(".qbutton:eq(1)").css({
366                    "letter-spacing": Math.round(window["slider_button2_" + t][2] * f) + "px"
367                }), e.find(".qbutton:eq(0)").css({
368                    height: Math.round(window["slider_button1_" + t][3] * f) + "px"
369                }), e.find(".qbutton:eq(1)").css({
370                    height: Math.round(window["slider_button2_" + t][3] * f) + "px"
371                }), 0 != window["slider_button1_" + t][4] ? e.find(".qbutton:eq(0)").css({
372                    width: Math.round(window["slider_button1_" + t][4] * f) + "px"
373                }) : e.find(".qbutton:eq(0)").css({
374                    width: "auto"
375                }), 0 != window["slider_button2_" + t][4] ? e.find(".qbutton:eq(1)").css({
376                    width: Math.round(window["slider_button2_" + t][4] * f) + "px"
377                }) : e.find(".qbutton:eq(1)").css({
378                    width: "auto"
379                }), e.find(".qbutton:eq(0)").css({
380                    "padding-left": Math.round(window["slider_button1_" + t][5] * f) + "px"
381                }), e.find(".qbutton:eq(1)").css({
382                    "padding-left": Math.round(window["slider_button2_" + t][5] * f) + "px"
383                }), e.find(".qbutton:eq(0)").css({
384                    "padding-right": Math.round(window["slider_button1_" + t][6] * f) + "px"
385                }), e.find(".qbutton:eq(1)").css({
386                    "padding-right": Math.round(window["slider_button2_" + t][6] * f) + "px"
387                }), e.find(".separator").css({
388                    "margin-top": Math.round(window["slider_separator_" + t][0] * h) + "px"
389                }), e.find(".separator").css({
390                    "margin-bottom": Math.round(window["slider_separator_" + t][1] * h) + "px"
391                })
392            }
393
394            function s(e, t) {
395                e.find(".thumb").css({
396                    width: Math.round(window["slider_graphic_width_" + t][0]) + "px"
397                }).css({
398                    height: Math.round(window["slider_graphic_height_" + t][0]) + "px"
399                }), e.find(".qode_slide-svg-holder svg").css({
400                    width: Math.round(window["slider_svg_width_" + t][0]) + "px"
401                }).css({
402                    height: Math.round(window["slider_svg_height_" + t][0]) + "px"
403                }), e.find(".q_slide_title").css({
404                    "font-size": Math.round(window["slider_title_" + t][0]) + "px"
405                }), e.find(".q_slide_title").css({
406                    "line-height": Math.round(window["slider_title_" + t][1]) + "px"
407                }), e.find(".q_slide_title").css({
408                    "letter-spacing": Math.round(window["slider_title_" + t][2]) + "px"
409                }), e.find(".q_slide_title").css({
410                    "margin-bottom": Math.round(window["slider_title_" + t][3]) + "px"
411                }), e.find(".q_slide_subtitle").css({
412                    "font-size": Math.round(window["slider_subtitle_" + t][0]) + "px"
413                }), e.find(".q_slide_subtitle").css({
414                    "line-height": Math.round(window["slider_subtitle_" + t][1]) + "px"
415                }), e.find(".q_slide_subtitle").css({
416                    "letter-spacing": Math.round(window["slider_subtitle_" + t][2]) + "px"
417                }), e.find(".q_slide_subtitle").css({
418                    "margin-bottom": Math.round(window["slider_subtitle_" + t][3]) + "px"
419                }), e.find(".q_slide_text").css({
420                    "font-size": Math.round(window["slider_text_" + t][0]) + "px"
421                }), e.find(".q_slide_text").css({
422                    "line-height": Math.round(window["slider_text_" + t][1]) + "px"
423                }), e.find(".q_slide_text").css({
424                    "letter-spacing": Math.round(window["slider_text_" + t][2]) + "px"
425                }), e.find(".qbutton:eq(0)").css({
426                    "font-size": Math.round(window["slider_button1_" + t][0]) + "px"
427                }), e.find(".qbutton:eq(1)").css({
428                    "font-size": Math.round(window["slider_button2_" + t][0]) + "px"
429                }), e.find(".qbutton:eq(0)").css({
430                    "line-height": Math.round(window["slider_button1_" + t][1]) + "px"
431                }), e.find(".qbutton:eq(1)").css({
432                    "line-height": Math.round(window["slider_button2_" + t][1]) + "px"
433                }), e.find(".qbutton:eq(0)").css({
434                    "letter-spacing": Math.round(window["slider_button1_" + t][2]) + "px"
435                }), e.find(".qbutton:eq(1)").css({
436                    "letter-spacing": Math.round(window["slider_button2_" + t][2]) + "px"
437                }), e.find(".qbutton:eq(0)").css({
438                    height: Math.round(window["slider_button1_" + t][3]) + "px"
439                }), e.find(".qbutton:eq(1)").css({
440                    height: Math.round(window["slider_button2_" + t][3]) + "px"
441                }), 0 != window["slider_button1_" + t][4] ? e.find(".qbutton:eq(0)").css({
442                    width: Math.round(window["slider_button1_" + t][4]) + "px"
443                }) : e.find(".qbutton:eq(0)").css({
444                    width: "auto"
445                }), 0 != window["slider_button2_" + t][4] ? e.find(".qbutton:eq(1)").css({
446                    width: Math.round(window["slider_button2_" + t][4]) + "px"
447                }) : e.find(".qbutton:eq(1)").css({
448                    width: "auto"
449                }), e.find(".qbutton:eq(0)").css({
450                    "padding-left": Math.round(window["slider_button1_" + t][5]) + "px"
451                }), e.find(".qbutton:eq(1)").css({
452                    "padding-left": Math.round(window["slider_button2_" + t][5]) + "px"
453                }), e.find(".qbutton:eq(0)").css({
454                    "padding-right": Math.round(window["slider_button1_" + t][6]) + "px"
455                }), e.find(".qbutton:eq(1)").css({
456                    "padding-right": Math.round(window["slider_button2_" + t][6]) + "px"
457                }), e.find(".separator").css({
458                    "margin-top": Math.round(window["slider_separator_" + t][0]) + "px"
459                }), e.find(".separator").css({
460                    "margin-bottom": Math.round(window["slider_separator_" + t][1]) + "px"
461                })
462            }
463
464            function r(e, t) {
465                1 == e ? (p.find(".left.carousel-control .prev").html(t), p.find(".right.carousel-control .next").html(e + 1)) : e == t ? (p.find(".left.carousel-control .prev").html(e - 1), p.find(".right.carousel-control .next").html(1)) : (p.find(".left.carousel-control .prev").html(e - 1), p.find(".right.carousel-control .next").html(e + 1))
466            }
467
468            function d() {
469                p.find(".carousel-inner .item:first-child").addClass("active"), checkSliderForHeaderStyle($j(".carousel .active"), p.hasClass("header_effect")), p.hasClass("slider_thumbs") && (r(1, M), p.find(".active").next("div").find(".image").length ? (src = e.exec(p.find(".active").next("div").find(".image").attr("style")), next_image = new Image, next_image.src = src[1]) : (next_image = p.find(".active").next("div").find("> .video").clon
469e(), next_image.find(".video-overlay").remove(), next_image.find(".video-wrap").width(170).height(95), next_image.find(".mejs-container").width(170).height(95), next_image.find("video").width(170).height(95)), p.find(".right.carousel-control .img").html(next_image).find("img, div.video").addClass("old"), p.find(".carousel-inner .item:last-child .image").length ? (src = e.exec(p.find(".carousel-inner .item:last-child .image").attr("style")), prev_image = new Image, prev_image.src = src[1]) : (prev_image = p.find(".carousel-inner .item:last-child > .video").clone(), prev_image.find(".video-overlay").remove(), prev_image.find(".video-wrap").width(170).height(95), prev_image.find(".mejs-container").width(170).height(95), prev_image.find("video").width(170).height(95)), p.find(".left.carousel-control .img").html(prev_image).find("img, div.video").addClass("old")), p.hasClass("q_auto_start") ? p.carousel({
470                    interval: k,
471                    pause: !1
472                }) : p.carousel({
473                    interval: 0,
474                    pause: !1
475                }), p.find(".item video").length && initVideoBackgroundSize(), p.hasClass("advanced_responsiveness") && (p.hasClass("responsive_height") || p.hasClass("full_screen")) && p.find(".item").each(function(e) {
476                    a($j(this), e), n($j(this), e)
477                }), $j(".carousel-inner .item:first-child").hasClass("animate_image") && $window_width > 1e3 && p.find(".carousel-inner .item.animate_image:first-child .image").transformAnimate({
478                    transform: "matrix(" + t[$j(".carousel-inner .item:first-child").data("animate_image")] + ")",
479                    duration: 3e4
480                })
481            }
482            var l, c, h, _, u, f, p = $j(this),
483                l = $j(window).width() < 1e3 ? $j("header.page_header").height() : 0,
484                g = $window_width > 1e3 && !$j("header.page_header").hasClass("transparent") && 0 == $j("body.paspartu_on_top_fixed").length ? $j("header.page_header").height() : 0,
485                m = $j(".paspartu_outer:not(.disable_top_paspartu)").length > 0 ? Math.round($window_width * paspartu_width + g) : 0,
486                $ = $j(".paspartu_outer.paspartu_on_bottom_slider").length > 0 ? Math.round($window_width * paspartu_width) : 0,
487                v = [1300, 1e3, 768];
488            if (p.hasClass("advanced_responsiveness")) {
489                v = [1600, 1200, 900, 650, 500, 320], p.data("q_responsive_breakpoints") && "set2" == p.data("q_responsive_breakpoints") && (v = [1600, 1300, 1e3, 768, 567, 320]);
490                var j = p.data("q_responsive_graphic_coefficients").split(","),
491                    w = p.data("q_responsive_title_coefficients").split(","),
492                    b = p.data("q_responsive_subtitle_coefficients").split(","),
493                    q = p.data("q_responsive_text_coefficients").split(","),
494                    y = p.data("q_responsive_button_coefficients").split(",")
495            }
496            if (p.hasClass("full_screen")) p.css({
497                height: $j(window).height() - l - m - $ + "px"
498            }), p.find(".qode_slider_preloader").css({
499                height: $j(window).height() - l - m - $ + "px"
500            }), p.find(".qode_slider_preloader .ajax_loader").css({
501                display: "block"
502            }), p.find(".item").css({
503                height: $j(window).height() - l - m - $ + "px"
504            }), $j(".paspartu_outer:not(.disable_top_paspartu)").length && ($j("body").hasClass("paspartu_on_top_fixed") || p.closest(".q_slider").css("padding-top", Math.round(g + $window_width * paspartu_width))), $j(".paspartu_outer.paspartu_on_bottom_slider").length && p.closest(".q_slider").css("padding-bottom", Math.round($window_width * paspartu_width)), $j(window).resize(function() {
505                l = $j(window).width() < 1e3 ? $j("header.page_header").height() : 0, g = $window_width > 1e3 && !$j("header.page_header").hasClass("transparent") && 0 == $j("body.paspartu_on_top_fixed").length ? $j("header.page_header").height() : 0, m = $j(".paspartu_outer:not(.disable_top_paspartu)").length > 0 ? Math.round($window_width * paspartu_width + g) : 0, $ = $j(".paspartu_outer.paspartu_on_bottom_slider").length > 0 ? Math.round($window_width * paspartu_width) : 0, p.css({
506                    height: $j(window).height() - l - m - $ + "px"
507                }), p.find(".qode_slider_preloader .ajax_loader").css({
508                    display: "block"
509                }), p.find(".item").css({
510                    height: $j(window).height() - l - m - $ + "px"
511                }), $j(".paspartu_outer:not(.disable_top_paspartu)").length && ($j("body").hasClass("paspartu_on_top_fixed") || p.closest(".q_slider").css("padding-top", Math.round(g + $window_width * paspartu_width))), $j(".paspartu_outer.paspartu_on_bottom_slider").length && p.closest(".q_slider").css("padding-bottom", Math.round($window_width * paspartu_width)), p.hasClass("advanced_responsiveness") && p.find(".item").each(function(e) {
512                    n($j(this), e)
513                })
514            });
515            else if (p.hasClass("responsive_height")) {
516                var C = p.data("height");
517                p.find(".qode_slider_preloader").css({
518                    height: p.height() - l - m - $ + "px",
519                    display: "block"
520                }), $j(".paspartu_outer:not(.disable_top_paspartu)").length && ($j("body").hasClass("paspartu_on_top_fixed") || p.closest(".q_slider").css("padding-top", Math.round(g + $window_width * paspartu_width))), $j(".paspartu_outer.paspartu_on_bottom_slider").length && p.closest(".q_slider").css("padding-bottom", Math.round($window_width * paspartu_width)), i(p, C), $j(window).resize(function() {
521                    $j(".paspartu_outer:not(.disable_top_paspartu)").length && (g = $window_width > 1e3 && !$j("header.page_header").hasClass("transparent") ? $j("header.page_header").height() : 0, $j("body").hasClass("paspartu_on_top_fixed") || p.closest(".q_slider").css("padding-top", Math.round(g + $window_width * paspartu_width))), $j(".paspartu_outer.paspartu_on_bottom_slider").length && p.closest(".q_slider").css("padding-bottom", Math.round($window_width * paspartu_width)), i(p, C), p.hasClass("advanced_responsiveness") && p.find(".item").each(function(e) {
522                        n($j(this), e)
523                    })
524                })
525            } else p.find(".qode_slider_preloader").css({
526                height: p.height() - l + "px",
527                display: "block"
528            }), p.find(".qode_slider_preloader .ajax_loader").css({
529                display: "block"
530            }), $j(".paspartu_outer:not(.disable_top_paspartu)").length && ($j("body").hasClass("paspartu_on_top_fixed") || p.closest(".q_slider").css("padding-top", Math.round(g + $window_width * paspartu_width))), $j(".paspartu_outer.paspartu_on_bottom_slider").length && p.closest(".q_slider").css("padding-bottom", Math.round($window_width * paspartu_width)), p.hasClass("advanced_responsiveness") && p.find(".item").each(function(e) {
531                a($j(this), e), n($j(this), e)
532            }), $window_width < 1e3 ? i(p, C) : o(C), $j(window).resize(function() {
533                $j(".paspartu_outer:not(.disable_top_paspartu)").length && (g = $window_width > 1e3 && !$j("header.page_header").hasClass("transparent") ? $j("header.page_header").height() : 0, $j("body").hasClass("paspartu_on_top_fixed") || p.closest(".q_slider").css("padding-top", Math.round(g + $window_width * paspartu_width))), $j(".paspartu_outer.paspartu_on_bottom_slider").length && p.closest(".q_slider").css("padding-bottom", Math.round($window_width * paspartu_width)), $window_width < 1e3 ? (i(p, C), p.hasClass("advanced_responsiveness") && p.find(".item").each(function(e) {
534                    n($j(this), e)
535                })) : (o(C), p.hasClass("advanced_responsiveness") && p.find(".item").each(function(e) {
536                    s($j(this), e)
537                }))
538            });
539            if ($j("body:not(.boxed):not(.vertical_menu_transparency):not(.vertical_menu_hidden):not(.page-template-landing_page-php)").hasClass("vertical_menu_enabled") && $j(window).width() > 1e3) {
540                var x = $j("body").hasClass("paspartu_enabled") ? 2 * Math.round($window_width * paspartu_width) : 0;
541                p.find(".carousel-inner").width($window_width - 260 - x), $j(window).resize(function() {
542                    $j(window).width() > 1e3 ? (x = $j("body").hasClass("paspartu_enabled") ? 2 * Math.round($window_width * paspartu_width) : 0, p.find(".carousel-inner").width($window_width - 260 - x)) : p.find(".carousel-inner").css("width", "100%")
543                })
544            }
545            if ($j("body:not(.boxed):not(.vertical_menu_transparency):not(.page-template-landing_page-php)").hasClass("vertical_menu_hidden") && $window_width > 1e3) {
546                var x = $j("body").hasClass("paspartu_enabled") ? 2 * Math.round($window_width * paspartu_width) : 0;
547                p.find(".carousel-inner").width($window_width - 40 - x), $j(window).resize(function() {
548                    $j(window).width() > 1e3 ? (x = $j("body").hasClass("paspartu_enabled") ? 2 * Math.round($window_width * paspartu_width) : 0, p.find(".carousel-inner").width($window_width - 40 - x)) : p.find(".carousel-inner").css("width", "100%")
549                })
550            }
551            $j(window).scroll(function() {
552                $scroll > p.height() + $j("header.page_header").height() && $j(window).width() > 1e3 ? p.find(".carousel-inner, .carousel-indicators, button").hide() : p.find(".carousel-inner, .carousel-indicators, button").show()
553            });
554            var k = p.data("slide_animation");
555            "" === k && (k = 6e3);
556            var M = $j("div.item").length;
557            if ($j("html").hasClass("touch")) {
558                if (p.find(".item:first-child .mobile-video-image").length > 0) {
559                    if (src = e.exec(p.find(".item:first-child .mobile-video-image").attr("style"))) {
560                        var S = new Image;
561                        S.src = src[1], $j(S).load(function() {
562                            $j(".qode_slider_preloader").fadeOut(500), d(), checkSVG(p)
563                        })
564                    }
565                } else if (src = e.exec(p.find(".item:first-child .image").attr("style"))) {
566                    var S = new Image;
567                    S.src = src[1], $j(S).load(function() {
568                        $j(".qode_slider_preloader").fadeOut(500), d(), checkSVG(p)
569                    })
570                }
571            } else if (p.find(".item:first-child video").length > 0) p.find(".item:first-child video").get(0).addEventListener("loadeddata", function() {
572                $j(".qode_slider_preloader").fadeOut(500), d(), checkSVG(p)
573            });
574            else if (src = e.exec(p.find(".item:first-child .image").attr("style"))) {
575                var S = new Image;
576                S.src = src[1], $j(S).load(function() {
577                    $j(".qode_slider_preloader").fadeOut(500), d(), checkSVG(p)
578                })
579            }
580            p.on("slide.bs.carousel", function() {
581                p.addClass("in_progress"), p.find(".active .slider_content_outer").fadeTo(800, 0)
582            }), p.on("slid.bs.carousel", function() {
583                if (p.removeClass("in_progress"),
584                    p.find(".active .slider_content_outer").fadeTo(0, 1), checkSVG(p), $j("div.item.animate_image .image").stop().css({
585                    transform: "",
586                    "-webkit-transform": ""
587                }), $j("div.item.active").hasClass("animate_image") && $window_width > 1e3 && $j("div.item.animate_image.active .image").transformAnimate({
588                    transform: "matrix(" + t[$j("div.item.animate_image.active").data("animate_image")] + ")",
589                    duration: 3e4
590                }), p.hasClass("slider_thumbs")) {
591                    r($j("div.item").index($j("div.item.active")[0]) + 1, M), p.find(".active").prev("div.item").length ? (p.find(".active").prev("div").find(".image").length ? (src = e.exec(p.find(".active").prev("div").find(".image").attr("style")), prev_image = new Image, prev_image.src = src[1]) : (prev_image = p.find(".active").prev("div").find("> .video").clone(), prev_image.find(".video-overlay").remove(), prev_image.find(".video-wrap").width(170).height(95), prev_image.find(".mejs-container").width(170).height(95), prev_image.find("video").width(170).height(95)), p.find(".left.carousel-control .img .old").fadeOut(300, function() {
592                        $j(this).remove()
593                    }), p.find(".left.carousel-control .img").append(prev_image).find("img, div.video").fadeIn(300).addClass("old")) : (p.find(".carousel-inner .item:last-child .image").length ? (src = e.exec(p.find(".carousel-inner .item:last-child .image").attr("style")), prev_image = new Image, prev_image.src = src[1]) : (prev_image = p.find(".carousel-inner .item:last-child > .video").clone(), prev_image.find(".video-overlay").remove(), prev_image.find(".video-wrap").width(170).height(95), prev_image.find(".mejs-container").width(170).height(95), prev_image.find("video").width(170).height(95)), p.find(".left.carousel-control .img .old").fadeOut(300, function() {
594                        $j(this).remove()
595                    }), p.find(".left.carousel-control .img").append(prev_image).find("img, div.video").fadeIn(300).addClass("old")), p.find(".active").next("div.item").length ? (p.find(".active").next("div").find(".image").length ? (src = e.exec(p.find(".active").next("div").find(".image").attr("style")), next_image = new Image, next_image.src = src[1]) : (next_image = p.find(".active").next("div").find("> .video").clone(), next_image.find(".video-overlay").remove(), next_image.find(".video-wrap").width(170).height(95), next_image.find(".mejs-container").width(170).height(95), next_image.find("video").width(170).height(95)), p.find(".right.carousel-control .img .old").fadeOut(300, function() {
596                        $j(this).remove()
597                    }), p.find(".right.carousel-control .img").append(next_image).find("img, div.video").fadeIn(300).addClass("old")) : (p.find(".carousel-inner .item:first-child .image").length ? (src = e.exec(p.find(".carousel-inner .item:first-child .image").attr("style")), next_image = new Image, next_image.src = src[1]) : (next_image = p.find(".carousel-inner .item:first-child > .video").clone(), next_image.find(".video-overlay").remove(), next_image.find(".video-wrap").width(170).height(95), next_image.find(".mejs-container").width(170).height(95), next_image.find("video").width(170).height(95)), p.find(".right.carousel-control .img .old").fadeOut(300, function() {
598                        $j(this).remove()
599                    }), p.find(".right.carousel-control .img").append(next_image).find("img, div.video").fadeIn(300).addClass("old"))
600                }
601            }), p.swipe({
602                swipeLeft: function(e, t, i, o, a) {
603                    p.carousel("next")
604                },
605                swipeRight: function(e, t, i, o, a) {
606                    p.carousel("prev")
607                },
608                threshold: 20
609            })
610        }), $j(".no-touch .carousel").length && (skrollr_slider = skrollr.init({
611            edgeStrategy: "set",
612            smoothScrolling: !0,
613            forceHeight: !1
614        }), skrollr_slider.refresh())
615    }
616}
617
618function checkSliderForHeaderStyle(e, t) {
619    "use strict";
620    var i = "",
621        o = e.data("navigation-color");
622    e.hasClass("light") && (i = "light"), e.hasClass("dark") && (i = "dark"), "" !== i ? (t && ($j("header.page_header").removeClass("dark light").addClass(i), $j("aside.vertical_menu_area").removeClass("dark light").addClass(i)), $j(".carousel .carousel-control, .carousel .carousel-indicators").removeClass("dark light").addClass(i)) : (t && ($j("header.page_header").removeClass("dark light").addClass(default_header_style), $j("aside.vertical_menu_area").removeClass("dark light").addClass(default_header_style)), $j(".carousel .carousel-control, .carousel .carousel-indicators").removeClass("dark light").addClass(default_header_style)), void 0 !== o ? ($j(".carousel-control .thumb_holder .thumb_top, .carousel-indicators li").css("background-color", o), $j(".carousel-control .prev_nav, .carousel-control .next_nav").css("border-color", o), $j(".carousel-control .prev_nav i, .carousel-control .next_nav i").css("color", o)) : ($j(".carousel-control .thumb_holder .thumb_top, .carousel-indicators li").css("background-color", ""), $j(".carousel-control .prev_nav, .carousel-control .next_nav").css("border-color", ""), $j(".carousel-control .prev_nav i, .carousel-control .next_nav i").css("color", ""))
623}
624
625function calculateHeights() {
626    $j(".portfolio_slides").length && $j(".portfolio_slides").each(function() {
627        $j(this).parents(".caroufredsel_wrapper").css({
628            height: $j(this).find("li.item").outerHeight() - 3 + "px"
629        })
630    }), $j(".qode_carousels .slides").length && $j(".qode_carousels .slides").each(function() {
631        $j(this).parents(".caroufredsel_wrapper").css({
632            height: $j(this).find("li.item").outerHeight() + "px"
633        })
634    }), $j(".blog_slides").length && $j(".blog_slides").each(function() {
635        $j(this).parents(".caroufredsel_wrapper").css({
636            height: $j(this).find("li.item").outerHeight() - 3 + "px"
637        })
638    }), $j(".qode-bct-posts").length && $j(".qode-bct-posts").each(function() {
639        $j(this).parents(".caroufredsel_wrapper").css({
640            height: $j(this).find(".qode-bct-post").outerHeight() + "px"
641        })
642    })
643}
644
645function initQodeCarousel() {
646    "use strict";
647    $j(".qode_carousels").length && ($j(".qode_carousels").each(function() {
648        var e = $j(this),
649            t = 6;
650        void 0 !== e.data("number-of-visible-items") && "" !== e.data("number-of-visible-items") && (4 === e.data("number-of-visible-items") ? t = 4 : 5 === e.data("number-of-visible-items") && (t = 5));
651        var i = 1 == e.parents(".grid_section").length ? 170 : 315,
652            o = 6;
653        4 === t ? (i = 1 == e.parents(".grid_section").length ? 255 : 472, o = 4) : 5 === t && (i = 1 == e.parents(".grid_section").length ? 204 : 378, o = 5), e.find(".slides").carouFredSel({
654            circular: !0,
655            responsive: !0,
656            scroll: {
657                items: 1,
658                duration: 1e3,
659                pauseOnHover: !1
660            },
661            items: {
662                width: i,
663                visible: {
664                    min: 1,
665                    max: o
666                }
667            },
668            auto: !0,
669            mousewheel: !1,
670            swipe: {
671                onMouse: !0,
672                onTouch: !0
673            }
674        }).animate({
675            opacity: 1
676        }, 1e3)
677    }), calculateHeights())
678}
679
680function initPortfolioSlider() {
681    "use strict";
682    $j(".portfolio_slider").length && ($j(".portfolio_slider").each(function() {
683        var e, t;
684        switch (e = void 0 !== $j(this).data("number_of_items") ? $j(this).data("number_of_items") : "auto") {
685            case 4:
686                t = 500;
687                break;
688            case 5:
689                t = 350;
690                break;
691            default:
692                t = 500
693        }
694        var i = 1 == $j(this).parents(".grid_section").length ? 3 : e,
695            o = 1 == $j(this).parents(".grid_section").length ? 353 : t;
696        $j(this).find(".portfolio_slides").carouFredSel({
697            circular: !0,
698            responsive: !0,
699            scroll: 1,
700            prev: {
701                button: function() {
702                    return $j(this).parent().siblings(".caroufredsel-direction-nav").find("#caroufredsel-prev")
703                }
704            },
705            next: {
706                button: function() {
707                    return $j(this).parent().siblings(".caroufredsel-direction-nav").find("#caroufredsel-next")
708                }
709            },
710            items: {
711                width: o,
712                visible: {
713                    min: 1,
714                    max: i
715                }
716            },
717            auto: !1,
718            mousewheel: !1,
719            swipe: {
720                onMouse: !0,
721                onTouch: !0
722            }
723        }).animate({
724            opacity: 1
725        }, 1e3)
726    }), calculateHeights(), $j(".portfolio_slider .flex-direction-nav a").click(function(e) {
727        e.preventDefault(), e.stopImmediatePropagation(), e.stopPropagation()
728    }))
729}
730
731function initBlogSlider() {
732    "use strict";
733    $j(".blog_slider").length && ($j(".blog_slider").each(function() {
734        var e, t, i, o = $j(this),
735            a = !1;
736        if (e = void 0 !== o.data("blogs_shown") ? o.data("blogs_shown") : o.hasClass("simple_slider") ? 1 : "auto", a = o.data("auto_start"), o.hasClass("simple_slider")) t = 1, i = 300;
737        else {
738            t = 1 == o.parents(".grid_section").length ? 3 : e;
739            var n;
740            switch (e) {
741                case 3:
742                    n = 667;
743                    break;
744                case 4:
745                    n = 500;
746                    break;
747                case 5:
748                    n = 400;
749                    break;
750                case 6:
751                    n = 334;
752                    break;
753                default:
754                    n = 500
755            }
756            i = 1 == o.parents(".grid_section").length ? 353 : n
757        }
758        o.find(".blog_slides").carouFredSel({
759            circular: !0,
760            responsive: !0,
761            scroll: 1,
762            prev: {
763                button: function() {
764                    return $j(this).parent().siblings(".caroufredsel-direction-nav").find("#caroufredsel-prev")
765                }
766            },
767            next: {
768                button: function() {
769                    return $j(this).parent().siblings(".caroufredsel-direction-nav").find("#caroufredsel-next")
770                }
771            },
772            items: {
773                width: i,
774                visible: {
775                    min: 1,
776                    max: t
777                }
778            },
779            auto: a,
780            mousewheel: !1,
781            swipe: {
782                onMouse: !0,
783                onTouch: !0
784            }
785        }).animate({
786            opacity: 1
787        }, 1e3)
788    }), calculateHeights(), $j(".blog_slider .flex-direction-nav a").click(function(e) {
789        e.preventDefault(), e.stopImmediatePropagation(), e.stopPropagation()
790    }))
791}
792
793function qodeInitBlogCarouselTitled() {
794    "use strict";
795    $j(".qode-blog-carousel-titled").length && ($j(".qode-blog-carousel-titled").each(function() {
796        var e, t = $j(this),
797            i = 4;
798        void 0 !== t.data("posts-shown") && (i = t.data("posts-shown")), $window_width < 769 && i > 2 && (i = 2), $window_width < 601 && i > 1 && (i = 1), e = t.width() / i, t.find(".qode-bct-posts").carouFredSel({
799            circular: !0,
800            responsive: !0,
801            scroll: 1,
802            prev: {
803                button: function() {
804                    return t.find(".qode-bct-caroufredsel-prev")
805                }
806            },
807            next: {
808                button: function() {
809                    return t.find(".qode-bct-caroufredsel-next")
810                }
811            },
812            items: {
813                width: e,
814                visible: {
815                    min: 1,
816                    max: i
817                }
818            },
819            auto: !1,
820            mousewheel: !1,
821            swipe: {
822                onMouse: !0,
823                onTouch: !0
824            }
825        }), t.animate({
826            opacity: 1
827        }, 1e3)
828    }), calculateHeights())
829}
830
831function initSideMenu() {
832    "use strict";
833    $j("body").hasClass("side_area_uncovered_from_content") && $j(".side_menu_button_wrapper a.side_menu_button_link,  a.close_side_menu").click(function(e) {
834        if (e.preventDefault(), $j(".side_menu").css({
835            right: "0"
836        }), $j(".side_menu_button_wrapper a.side_menu_button_link").hasClass("opened")) {
837            $j(".side_menu_button_wrapper a.side_menu_button_link").removeClass("opened"), $j("body").removeClass("right_side_menu_opened");
838            var t = setTimeout(function() {
839                $j(".side_menu").css({
840                    visibility: "hidden"
841                }), clearTimeout(t)
842            }, 400)
843        } else $j(".side_menu").css({
844            visibility: "visible"
845        }), $j(this).addClass("opened"), $j("body").addClass("right_side_menu_opened"), current_scroll = $j(window).scrollTop(), $j(window).scroll(function() {
846            if (Math.abs($scroll - current_scroll) > 400) {
847                $j("body").removeClass("right_side_menu_opened"), $j(".side_menu_button_wrapper a").removeClass("opened");
848                var e = setTimeout(function() {
849                    $j(".side_menu").css({
850                        visibility: "hidden"
851                    }), clearTimeout(e)
852                }, 400)
853            }
854        })
855    }), $j("body").hasClass("side_menu_slide_with_content") && $j(".side_menu_button_wrapper a.side_menu_button_link, a.close_side_menu").click(function(e) {
856        e.preventDefault(), $j(".side_menu_button_wrapper a.side_menu_button_link").hasClass("opened") ? ($j("body").removeClass("side_menu_open"), $j(".side_menu_button_wrapper a.side_menu_button_link").removeClass("opened"), $j("body").removeClass("side_menu_open")) : ($j(this).addClass("opened"), $j("body").addClass("side_menu_open"), current_scroll = $j(window).scrollTop(), $j(window).scroll(function() {
857            Math.abs($scroll - current_scroll) > 400 && ($j("body").removeClass("side_menu_open"), $j(".side_menu_button_wrapper a").removeClass("opened"))
858        })), e.stopPropagation(), $j(".wrapper").click(function() {
859            e.preventDefault(), $j("body").removeClass("side_menu_open"), $j(".side_menu_button_wrapper a.side_menu_button_link").removeClass("opened"), $j("body").removeClass("side_menu_open")
860        })
861    }), $j("body").hasClass("side_menu_slide_from_right") && ($j(".wrapper").prepend('<div class="cover"/>'), $j(".side_menu_button_wrapper a.side_menu_button_link, a.close_side_menu").click(function(e) {
862        e.preventDefault(), $j(".side_menu_button_wrapper a.side_menu_button_link").hasClass("opened") ? ($j(".side_menu_button_wrapper a.side_menu_button_link").removeClass("opened"), $j("body").removeClass("right_side_menu_opened")) : ($j(this).addClass("opened"), $j("body").addClass("right_side_menu_opened"), $j(" .wrapper .cover").click(function() {
863            $j(".side_menu_button_wrapper a.side_menu_button_link").removeClass("opened"), $j("body").removeClass("right_side_menu_opened"), $j(".side_menu_button_wrapper a").removeClass("opened")
864        }), current_scroll = $j(window).scrollTop(), $j(window).scroll(function() {
865            Math.abs($scroll - current_scroll) > 400 && ($j("body").removeClass("right_side_menu_opened"), $j(".side_menu_button_wrapper a").removeClass("opened"))
866        }))
867    }))
868}
869
870function setDropDownMenuPosition() {
871    "use strict";
872    var e = $j(".drop_down > ul > li.narrow");
873    e.each(function(t) {
874        var i, o = $j(window).width() - 16;
875        switch (!0) {
876            case qode_body.hasClass("qode_grid_1300"):
877                i = 1350;
878                break;
879            case qode_body.hasClass("qode_grid_1200"):
880                i = 1250;
881                break;
882            default:
883                i = 1150
884        }
885        var a = $j(e[t]).offset().left,
886            n = $j(e[t]).find(".second .inner ul").width(),
887            s = 0;
888        s = $j("body").hasClass("boxed") ? i - (a - (o - i) / 2) + 17 : o - a + 17;
889        var r;
890        $j(e[t]).find("li.sub").length > 0 && (r = s - n), (s < n || r < n) && ($j(e[t]).find(".second").addClass("right"), $j(e[t]).find(".second .inner ul").addClass("right"))
891    })
892}
893
894function initDropDownMenu() {
895    "use strict";
896    var e = $j(".drop_down > ul > li");
897    e.each(function(t) {
898        if ($j(e[t]).find(".second").length > 0) {
899            if ($j(e[t]).hasClass("wide")) {
900                var i = $j(this),
901                    o = i.find(".inner > ul"),
902                    a = parseInt(o.css("padding-left").slice(0, -2)) + parseInt(o.css("padding-right").slice(0, -2)),
903                    n = i.find(".second > .inner > ul > li"),
904                    s = n.length;
905                i.hasClass("left_position") || i.hasClass("right_position") || i.find(".second").css("left", 0);
906                var r = 0;
907                if (n.each(function() {
908                    var e = $j(this).height();
909                    e > r && (r = e)
910                }), n.height(r), i.hasClass("full_width_wide_menu")) {
911                    var d = 100 / s + "%";
912                    n.css("width", d)
913                } else {
914                    s > 4 && (s = 4);
915                    var l = s * n.outerWidth();
916                    o.width(l)
917                }
918                if (i.hasClass("wide_background")) {
919                    if (!i.hasClass("left_position") && !i.hasClass("right_position")) {
920                        var c = i.find(".second").offset().left;
921                        i.find(".second").css("left", -c), i.find(".second").css("width", $j(window).width())
922                    }
923                } else if (!i.hasClass("left_position") && !i.hasClass("right_position")) {
924                    var c = ($j(window).width() - 2 * ($j(window).width() - $j(this).find(".second").offset().left)) / 2 + (l + a) / 2;
925                    i.find(".second").css("left", -c)
926                }
927            }
928            if (menu_dropdown_height_set || ($j(e[t]).data("original_height", $j(e[t]).find(".second").height() + "px"), $j(e[t]).find(".second").height(0)), navigator.userAgent.match(/(iPod|iPhone|iPad)/)) $j(e[t]).on("touchstart mouseenter", function() {
929                $j(e[t]).find(".second").css({
930                    height: $j(e[t]).data("original_height"),
931                    overflow: "visible",
932                    visibility: "visible",
933                    opacity: "1"
934                })
935            }).on("mouseleave", function() {
936                $j(e[t]).find(".second").css({
937                    height: "0px",
938                    overflow: "hidden",
939                    visivility: "hidden",
940                    opacity: "0"
941                })
942            });
943            else {
944                var h = {
945                    interval: 0,
946                    over: function() {
947                        setTimeout(function() {
948                            $j(e[t]).find(".second").addClass("drop_down_start"), $j(e[t]).find(".second").stop().css({
949                                height: $j(e[t]).data("original_height")
950                            })
951                        }, 150)
952                    },
953                    timeout: 150,
954                    out: function() {
955                        $j(e[t]).find(".second").stop().css({
956                            height: "0px"
957                        }), $j(e[t]).find(".second").removeClass("drop_down_start")
958                    }
959                };
960                $j(e[t]).hoverIntent(h)
961            }
962        }
963    }), $j(".drop_down ul li.wide ul li a, .drop_down ul li.narrow ul li a").on("click", function() {
964        var e = $j(this);
965        e.next("ul").length || "http://#" === e.attr("href") || "#" === e.attr("href") || e.hasClass("no_link") || setTimeout(function() {
966            e.mouseleave()
967        }, 500)
968    }), menu_dropdown_height_set = !0
969}
970
971
972
973function initVerticalMobileMenu() {
974    "use strict";
975    $j(".vertical_menu_toggle").length ? ($j(".touch .vertical_menu_toggle > ul > li.has_sub > a .plus").on("tap click", function(e) {
976        e.stopPropagation(), e.preventDefault(), $j(this).parent().next("div.second").is(":visible") ? ($j(this).parents(".touch .vertical_menu_toggle > ul > li.has_sub").removeClass("open"), $j(this).parent().next("div.second").slideUp(200)) : ($j(this).parents(".touch .vertical_menu_toggle > ul > li.has_sub").addClass("open"), $j(this).parent().next("div.second").slideDown(200))
977    }), $j(".touch .vertical_menu_toggle ul li ul li > a .plus").on("tap click", function(e) {
978        e.stopPropagation(), e.preventDefault(), $j(this).parent().next("ul").is(":visible") ? ($j(this).parents(".touch .vertical_menu_toggle ul li ul li").removeClass("open"), $j(this).parent().next("ul").slideUp(200)) : ($j(this).parents(".touch .vertical_menu_toggle ul li ul li").addClass("open"), $j(this).parent().next("ul").slideDown(200))
979    })) : $j(".vertical_menu_float").length && ($j(".touch .vertical_menu_float > ul > li.has_sub > a .plus").on("tap click", function(e) {
980        e.stopPropagation(), e.preventDefault(), $j(this).parent().next("div.second").hasClass("vertical_menu_start") ? ($j(this).parents(".touch .vertical_menu_float > ul > li.has_sub").removeClass("open"), $j(this).parents(".touch .vertical_menu_float > ul > li.has_sub").find(".second").removeClass("vertical_menu_start")) : ($j(this).parents(".touch .vertical_menu_float > ul > li.has_sub").addClass("open"), $j(this).parents(".touch .vertical_menu_float > ul > li.has_sub").find(".second").addClass("vertical_menu_start"))
981    }), $j(".touch .vertical_menu_float ul li ul li > a .plus").on("tap click", function(e) {
982        e.stopPropagation(), e.preventDefault(), $j(this).parent().next("ul").hasClass("vertical_submenu_start") ? ($j(this).parents(".touch .vertical_menu_float ul li ul li").removeClass("open"), $j(this).parents(".touch .vertical_menu_float ul li ul li").find("ul").removeClass("vertical_submenu_start")) : ($j(this).parents(".touch .vertical_menu_float ul li ul li").addClass("open"), $j(this).parents(".touch .vertical_menu_float ul li ul li").find("ul").addClass("vertical_submenu_start"))
983    }))
984}
985
986function checkVerticalMenuTransparency() {
987    0 !== $scroll ? $j("body.vertical_menu_transparency").removeClass("vertical_menu_transparency_on") : $j("body.vertical_menu_transparency").addClass("vertical_menu_transparency_on")
988}
989
990function showHideVerticalMenu() {
991    if ($j(".vertical_menu_hidden").length) {
992        var e = $j("aside.vertical_menu_area"),
993            t = $j(".vertical_menu_area_bottom_logo"),
994            i = !0;
995        $j(".vertical_menu_hidden_button").on("click", function(o) {
996            o.preventDefault(), i ? (i = !1, current_scroll = $j(window).scrollTop(), e.addClass("active"), t.addClass("active")) : (i = !0, e.removeClass("active"), t.removeClass("active"))
997        }), $j(window).scroll(function() {
998            Math.abs($scroll - current_scroll) > 400 && (i = !0, e.removeClass("active"), t.removeClass("active"))
999        }),
1000            function() {
1001                var e, t;
1002                e = function() {
1003                    function e() {
1004                        this.objects = []
1005                    }
1006                    return e.name = "Outclick", e.prototype.check 
1006= function(e, t) {
1007                        return !e.is(t.target) && 0 === e.has(t.target).length
1008                    }, e.prototype.trigger = function(e) {
1009                        var t, i = this;
1010                        return t = !1, $j.each(this.objects, function(o, a) {
1011                            if (i.check(a.container, e) && (a.related.length < 1 ? t = !0 : $j.each(a.related, function(o, a) {
1012                                return i.check(a, e) ? t = !0 : (t = !1, !1)
1013                            }), t)) return a.callback.call(a.container)
1014                        })
1015                    }, e
1016                }(), t = new e, $j.fn.outclick = function(e) {
1017                    var i = this;
1018                    return null == e && (e = {}), e.related || (e.related = []), e.callback || (e.callback = function() {
1019                        return i.hide()
1020                    }), t.objects.push({
1021                        container: this,
1022                        related: e.related,
1023                        callback: e.callback
1024                    })
1025                }, $j(document).mouseup(function(e) {
1026                    return t.trigger(e)
1027                })
1028            }.call(this), $j(e).outclick({
1029            callback: function() {
1030                i = !0, e.removeClass("active"), t.removeClass("active")
1031            }
1032        })
1033    }
1034}
1035
1036function initToCounter() {
1037    "use strict";
1038    $j(".counter.zero").length && $j(".counter.zero").each(function() {
1039        var e = $j(this).parent(),
1040            t = 200;
1041        if (void 0 !== e.data("element-appearance") && !1 !== e.data("element-appearance") && (t = e.data("element-appearance")), !$j(this).hasClass("executed"))
1042            if ($j(this).addClass("executed"), $j(this).parents(".vertical_split_slider").length) {
1043                $j(this).parent().css("opacity", "1");
1044                var i = parseFloat($j(this).text());
1045                $j(this).countTo({
1046                    from: 0,
1047                    to: i,
1048                    speed: 1500,
1049                    refreshInterval: 100
1050                })
1051            } else $j(this).appear(function() {
1052                $j(this).parent().css("opacity", "1");
1053                var e = parseFloat($j(this).text());
1054                $j(this).countTo({
1055                    from: 0,
1056                    to: e,
1057                    speed: 1500,
1058                    refreshInterval: 100
1059                })
1060            }, {
1061                accX: 0,
1062                accY: -t
1063            })
1064    })
1065}
1066
1067function initCounter() {
1068    "use strict";
1069    $j(".counter.random").length && $j(".counter.random").each(function() {
1070        var e = $j(this).parent(),
1071            t = 200;
1072        void 0 !== e.data("element-appearance") && !1 !== e.data("element-appearance") && (t = e.data("element-appearance")), $j(this).hasClass("executed") || ($j(this).addClass("executed"), $j(this).parents(".vertical_split_slider").length ? ($j(this).parent().css("opacity", "1"), $j(this).absoluteCounter({
1073            speed: 2e3,
1074            fadeInDelay: 1e3
1075        })) : $j(this).appear(function() {
1076            $j(this).parent().css("opacity", "1"), $j(this).absoluteCounter({
1077                speed: 2e3,
1078                fadeInDelay: 1e3
1079            })
1080        }, {
1081            accX: 0,
1082            accY: -t
1083        }))
1084    })
1085}
1086
1087function initCountdown() {
1088    "use strict";
1089    $j(".countdown").length && $j(".countdown").each(function() {
1090        var e, t, i, o, a, n, s, r, d, l, c, h, _, u, f = $j(this).attr("id"),
1091            p = $j("#" + f),
1092            g = 0,
1093            m = 0,
1094            $ = 0,
1095            v = 0,
1096            j = 0;
1097        void 0 !== p.data("year") && !1 !== p.data("year") && (g = p.data("year")), void 0 !== p.data("month") && !1 !== p.data("month") && (m = p.data("month")), void 0 !== p.data("day") && !1 !== p.data("day") && ($ = p.data("day")), void 0 !== p.data("hour") && !1 !== p.data("hour") && (v = p.data("hour")), void 0 !== p.data("minute") && !1 !== p.data("minute") && (j = p.data("minute")), void 0 !== p.data("monthslabel") && !1 !== p.data("monthslabel") && (e = p.data("monthslabel")), void 0 !== p.data("monthlabel") && !1 !== p.data("monthlabel") && (t = p.data("monthlabel")), void 0 !== p.data("dayslabel") && !1 !== p.data("dayslabel") && (i = p.data("dayslabel")), void 0 !== p.data("daylabel") && !1 !== p.data("daylabel") && (o = p.data("daylabel")), void 0 !== p.data("hourslabel") && !1 !== p.data("hourslabel") && (a = p.data("hourslabel")), void 0 !== p.data("hourlabel") && !1 !== p.data("hourlabel") && (n = p.data("hourlabel")), void 0 !== p.data("minuteslabel") && !1 !== p.data("minuteslabel") && (s = p.data("minuteslabel")), void 0 !== p.data("minutelabel") && !1 !== p.data("minutelabel") && (r = p.data("minutelabel")), void 0 !== p.data("secondslabel") && !1 !== p.data("secondslabel") && (d = p.data("secondslabel")), void 0 !== p.data("secondlabel") && !1 !== p.data("secondlabel") && (l = p.data("secondlabel")), void 0 !== p.data("tickf") && !1 !== p.data("tickf") && p.data("tickf"), void 0 !== p.data("timezone") && !1 !== p.data("timezone") && (c = p.data("timezone")), void 0 !== p.data("digitfs") && !1 !== p.data("digitfs") && (h = p.data("digitfs")), void 0 !== p.data("labelfs") && !1 !== p.data("labelfs") && (_ = p.data("labelfs")), void 0 !== p.data("c
1097olor") && !1 !== p.data("color") && (u = p.data("color")), p.countdown({
1098            until: new Date(g, m - 1, $, v, j, 44),
1099            labels: ["Years", e, "Weeks", i, a, s, d],
1100            labels1: ["Year", t, "Week", o, n, r, l],
1101            format: "ODHMS",
1102            timezone: c,
1103            padZeroes: !0,
1104            significant: 0,
1105            onTick: function() {
1106                "undefined" !== h && "" !== h && p.find(".countdown-amount").css("font-size", h + "px").css("line-height", h + "px"), "undefined" !== _ && "" !== _ && p.find(".countdown-period").css("font-size", _ + "px"), "undefined" !== u && "" !== u && p.find(".countdown_separator").css("background-color", u)
1107            }
1108        })
1109    })
1110}
1111
1112function initProgressBars() {
1113    "use strict";
1114    $j(".q_progress_bar").length && $j(".q_progress_bar").each(function() {
1115        if ($j(this).parents(".vertical_split_slider").length) {
1116            initToCounterHorizontalProgressBar($j(this));
1117            var e = $j(this).find(".progress_content").data("percentage");
1118            $j(this).find(".progress_content").css("width", "0%"), $j(this).find(".progress_content").animate({
1119                width: e + "%"
1120            }, 1500), $j(this).find(".progress_number_wrapper").css("width", "0%"), $j(this).find(".progress_number_wrapper").animate({
1121                width: e + "%"
1122            }, 1500)
1123        } else $j(this).appear(function() {
1124            initToCounterHorizontalProgressBar($j(this));
1125            var e = $j(this).find(".progress_content").data("percentage");
1126            $j(this).find(".progress_content").css("width", "0%"), $j(this).find(".progress_content").animate({
1127                width: e + "%"
1128            }, 1500), $j(this).find(".progress_number_wrapper").css("width", "0%"), $j(this).find(".progress_number_wrapper").animate({
1129                width: e + "%"
1130            }, 1500)
1131        }, {
1132            accX: 0,
1133            accY: -200
1134        })
1135    })
1136}
1137
1138function initToCounterHorizontalProgressBar(e) {
1139    "use strict";
1140    var t = parseFloat(e.find(".progress_content").data("percentage"));
1141    e.find(".progress_number span").length && e.find(".progress_number span").each(function() {
1142        $j(this).parents(".progress_number_wrapper").css("opacity", "1"), $j(this).countTo({
1143            from: 0,
1144            to: t,
1145            speed: 1500,
1146            refreshInterval: 50
1147        })
1148    })
1149}
1150
1151function initListAnimation() {
1152    "use strict";
1153    $j(".animate_list").length > 0 && 0 === $j(".no_animation_on_touch").length && $j(".animate_list").each(function() {
1154        $j(this).appear(function() {
1155            $j(this).find("li").each(function(e) {
1156                var t = $j(this);
1157                setTimeout(function() {
1158                    t.animate({
1159                        opacity: 1,
1160                        top: 0
1161                    }, 1500)
1162                }, 100 * e)
1163            })
1164        }, {
1165            accX: 0,
1166            accY: -200
1167        })
1168    })
1169}
1170
1171function initPieChart() {
1172    "use strict";
1173    $j(".q_percentage").length && $j(".q_percentage").each(function() {
1174        var e = piechartcolor;
1175        void 0 !== $j(this).data("active") && "" !== $j(this).data("active") && (e = $j(this).data("active"));
1176        var t = "#eeeeee";
1177        void 0 !== $j(this).data("noactive") && "" !== $j(this).data("noactive") && (t = $j(this).data("noactive"));
1178        var i = 10;
1179        void 0 !== $j(this).data("linewidth") && "" !== $j(this).data("linewidth") && (i = $j(this).data("linewidth"));
1180        var o = 200;
1181        void 0 !== $j(this).data("element-appearance") && !1 !== $j(this).data("element-appearance") && (o = $j(this).data("element-appearance")), $j(this).appear(function() {
1182            initToCounterPieChart($j(this)), $j(this).parent().css("opacity", "1"), $j(this).easyPieChart({
1183                barColor: e,
1184                trackColor: t,
1185                scaleColor: !1,
1186                lineCap: "butt",
1187                lineWidth: i,
1188                animate: 1500,
1189                size: 174
1190            })
1191        }, {
1192            accX: 0,
1193            accY: -o
1194        })
1195    })
1196}
1197
1198function initPieChartWithIcon() {
1199    "use strict";
1200    $j(".q_percentage_with_icon").length && $j(".q_percentage_with_icon").each(function() {
1201        var e = piechartcolor;
1202        "" !== $j(this).data("active") && (e = $j(this).data("active"));
1203        var t = "#eeeeee";
1204        "" !== $j(this).data("noactive") && (t = $j(this).data("noactive"));
1205        var i = 10;
1206        "" !== $j(this).data("linewidth") && (i = $j(this).data("linewidth"));
1207        $j(this).appear(function() {
1208            $j(this).parent().css("opacity", "1"), $j(this).css("opacity", "1"), $j(this).easyPieChart({
1209                barColor: e,
1210                trackColor: t,
1211                scaleColor: !1,
1212                lineCap: "butt",
1213                lineWidth: i,
1214                animate: 1500,
1215                size: 174
1216            })
1217        }, {
1218            accX: 0,
1219            accY: -200
1220        })
1221    })
1222}
1223
1224function initToCounterPieChart(e) {
1225    "use strict";
1226    $j(e).css("opacity", "1");
1227    var t = parseFloat($j(e).find(".tocounter").text());
1228    $j(e).find(".tocounter").countTo({
1229        from: 0,
1230        to: t,
1231        speed: 1500,
1232        refreshInterval: 50
1233    })
1234}
1235
1236function initPortfolio() {
1237    "use strict";
1238    $j(".projects_holder_outer:not(.masonry_with_space, .justified_gallery)").length && $j(".projects_holder_outer").each(function() {
1239        var e = $j(this).find(".projects_holder");
1240        if (9 != getIEversion() && 10 != getIEversion() || e.addClass("ie-specific-styles"), $j(".filter_holder .filter").on("click", function() {
1241            var t = $j(this).text(),
1242                i = $j(this).data("filter");
1243            e.children("article").length && e.children("article").each(function() {
1244                var e = $j(this);
1245                e.hasClass(i) && "all" !== i ? (e.find("a.lightbox").attr("rel", "prettyPhoto[pretty_photo_gallery_" + t.toLowerCase() + "]"), e.find("a.lightbox").attr("data-rel", "prettyPhoto[pretty_photo_gallery_" + t.toLowerCase() + "]")) : "all" === i && (e.find("a.lightbox").attr("rel", "prettyPhoto[pretty_photo_gallery]"), e.find("a.lightbox").attr("data-rel", "prettyPhoto[pretty_photo_gallery]"))
1246            }), $j(".filter_holder").find(".label span").each(function() {
1247                $j(this).text(t)
1248            })
1249        }), e.hasClass("v1")) var t = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25);
1250        else if (e.hasClass("v2")) var t = new Array(1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 14, 14, 15, 15, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20);
1251        else if (e.hasClass("v3")) var t = new Array(1, 2, 3, 2, 3, 4, 3, 4, 5, 4, 5, 6, 5, 6, 7, 6, 7, 8, 7, 8, 9, 8, 9, 10, 9, 10, 11, 10, 11, 12, 11, 12, 13, 12, 13, 14, 13, 14, 15, 14, 15, 16, 15, 16, 17, 16, 17, 18, 17, 18, 19, 18, 19, 20, 19, 20, 21, 20, 21, 22);
1252        else if (e.hasClass("v4")) var t = new Array(1, 2, 3, 4, 2, 3, 4, 5, 3, 4, 5, 6, 4, 5, 6, 7, 5, 6, 7, 8, 6, 7, 8, 9, 7, 8, 9, 10, 8, 9, 10, 11, 9, 10, 11, 12, 10, 11, 12, 13, 11, 12, 13, 14, 12, 13, 14, 15, 13, 14, 15, 16, 14, 15, 16, 17, 15, 16, 17, 18, 16, 17, 18, 19, 17, 18, 19, 20, 18, 19, 20, 21);
1253        else if (e.hasClass("v5")) var t = new Array(1, 2, 3, 4, 5, 2, 3, 4, 5, 6, 3, 4, 5, 6, 7, 4, 5, 6, 7, 8, 5, 6, 7, 8, 9, 6, 7, 8, 9, 10, 7, 8, 9, 10, 11, 8, 9, 10, 11, 12, 9, 10, 11, 12, 13, 10, 11, 12, 13, 14, 11, 12, 13, 14, 15, 12, 13, 14, 15, 16, 13, 14, 15, 16, 17, 14, 15, 16, 17, 18, 15, 16, 17, 18, 19, 20, 16, 17, 18, 19, 20, 17, 18, 19, 20, 21, 18, 19, 20, 21, 22, 19, 20, 21, 22, 23);
1254        else if (e.hasClass("v6")) var t = new Array(1, 2, 3, 4, 5, 6, 2, 3, 4, 5, 6, 7, 3, 4, 5, 6, 7, 8, 4, 5, 6, 7, 8, 9, 5, 6, 7, 8, 9, 10, 6, 7, 8, 9, 10, 11, 7, 8, 9, 10, 11, 12, 8, 9, 10, 11, 12, 13, 9, 10, 11, 12, 13, 14, 10, 11, 12, 13, 14, 15, 11, 12, 13, 14, 15, 16, 12, 13, 14, 15, 16, 17, 13, 14, 15, 16, 17, 18, 14, 15, 16, 17, 18, 19, 15, 16, 17, 18, 19, 20, 16, 17, 18, 19, 20, 21, 17, 18, 19, 20, 21, 22);
1255        var i;
1256        i = window.location.hash && 1 == window.location.hash.indexOf("portfolio_category") ? window.location.hash.replace("#", "") : "all", qodeInitPortFilterCounter($j(this)), e.mixitup({
1257            showOnLoad: i,
1258            transitionSpeed: 600,
1259            minHeight: 150,
1260            onMixLoad: function() {
1261                $j(".projects_holder").addClass("hideItems"), $j(".projects_holder article").css("visibility", "visible"), e.hasClass("portfolio_one_by_one") && e.find("article").each(function(e) {
1262                    var t = $j(this);
1263                    if ($j(".vertical_split_slider").length);
1264                    else;
1265                    setTimeout(function() {
1266                        t.addClass("show")
1267                    }, 100 * e)
1268                }), e.hasClass("slide_from_left") && e.find("article").each(function(e) {
1269                    var t = $j(this);
1270                    setTimeout(function() {
1271                        t.addClass("show")
1272                    }, 200 * Math.random())
1273                }), e.hasClass("slide_from_top") && e.find("article").each(function(e) {
1274                    var i = $j(this);
1275                    setTimeout(function() {
1276                        i.addClass("show")
1277                    }, 50 * t[e])
1278                }), e.hasClass("diagonal_fade") && e.find("article").each(function(e) {
1279                    var i = $j(this);
1280                    setTimeout(function() {
1281                        i.addClass("show")
1282                    }, 50 * t[e])
1283                }), initParallax()
1284            },
1285            onMixEnd: function() {
1286                initParallax()
1287            }
1288        })
1289    })
1290}
1291
1292function initPortfolioZIndex() {
1293    "use strict";
1294    $j(".projects_holder_outer.portfolio_no_space").length && $j(".no_space.hover_text article").each(function(e) {
1295        $j(this).css("z-index", e + 10)
1296    })
1297}
1298
1299function initPortfolioJustifiedGallery() {
1300    "use strict";
1301    var e = $j(".projects_holder_outer.justified_gallery");
1302    e.each(function() {
1303        var t = $j(this).find(".filter_holder");
1304        t.find("li.filter").first().addClass("current"), t.find(".filter").on("click", function() {
1305            var e = $j(this).text();
1306            t.find(".label span").each(function() {
1307                $j(this).text(e)
1308            });
1309            var o = $j(this).attr("data-filter"),
1310                a = i.find("article");
1311            return a.css("transition", "all 500ms ease"), a.not(o).css({
1312                transform: "scale(0)"
1313            }), setTimeout(function() {
1314                a.filter(o).css({
1315                    transform: ""
1316                }), i.css("transition", "height 500ms ease").justifiedGallery({
1317                    selector: ">article" + ("*" != o ? o : "")
1318                })
1319            }, 550), setTimeout(function() {
1320                a.css("transition", ""), i.css("transition", "")
1321            }, 1100), $j(".filter").removeClass("current active"), $j(this).addClass("current active"), !1
1322        }), qodeInitPortFilterCounter(e);
1323        var i = $j(this).find(".projects_holder"),
1324            o = void 0 !== i.data("row-height") ? i.data("row-height") : 200,
1325            a = void 0 !== i.data("spacing") ? i.data("spacing") : 0,
1326            n = void 0 !== i.data("last-row") ? i.data("last-row") : "nojustify",
1327            s = void 0 !== i.data("justify-threshold") ? i.data("justify-threshold") : .75;
1328        i.justifiedGallery({
1329            captions: !1,
1330            rowHeight: o,
1331            margins: a,
1332            border: 0,
1333            lastRow: n,
1334            justifyThreshold: s,
1335            selector: "> article"
1336        }).on("jg.complete jg.rowflush", function() {
1337            $j(this).find("article").addClass("show").each(function() {
1338                $j(this).height(Math.round($j(this).height()))
1339            })
1340        })
1341    })
1342}
1343
1344function initPortfolioMasonryFilter() {
1345    "use strict";
1346    var e = $j(".projects_masonry_holder, .masonry_with_space .projects_holder");
1347    if (e.length) {
1348        var t = null;
1349        $j(".filter:first").addClass("current"), $j(".filter").click(function() {
1350            clearTimeout(t), $j(".isotope, .isotope .isotope-item").css("transition-duration", "0.8s"), t = setTimeout(function() {
1351                $j(".isotope, .isotope .isotope-item").css("transition-duration", "0s")
1352            }, 700);
1353            var i = $j(this).attr("data-filter");
1354            e.isotope({
1355                filter: i
1356            }), $j(".filter").removeClass("current"), $j(this).addClass("current");
1357            var o = $j(this).text();
1358            return "*" !== i && (i = i.substring(1)), e.children("article").length && e.children("article").each(function() {
1359                var e = $j(this);
1360                e.hasClass(i) && "*" !== i ? (e.find("a.lightbox").attr("rel", "prettyPhoto[pretty_photo_gallery_" + o.toLowerCase() + "]"), e.find("a.lightbox").attr("data-rel", "prettyPhoto[pretty_photo_gallery_" + o.toLowerCase() + "]")) : "*" === i && (e.find("a.lightbox").attr("rel", "prettyPhoto[pretty_photo_gallery]"), e.find("a.lightbox").attr("data-rel", "prettyPhoto[pretty_photo_gallery]"))
1361            }), setTimeout(setPortfolioMasZIndex(), 700), !1
1362        })
1363    }
1364}
1365
1366function initPortfolioMasonry() {
1367    "use strict";
1368    var e = $j(".projects_masonry_holder, .masonry_with_space .projects_holder");
1369    e.length && e.each(function() {
1370        var t = $j(this),
1371            i = t.find(".qode-portfolio-masonry-gallery-grid-sizer").width();
1372        e.hasClass("projects_masonry_holder") && resizeMasonry(i, t), qodeInitMasonry(t), qodeInitPortFilterCounter(e.parent()), $j(window).resize(function() {
1373            setPortfolioMasZIndex(), e.hasClass("projects_masonry_holder") && resizeMasonry(i, t), qodeInitMasonry(t)
1374        })
1375    })
1376}
1377
1378function qodeInitMasonry(e) {
1379    e.waitForImages(function() {
1380        e.animate({
1381            opacity: 1
1382        }), e.isotope({
1383            itemSelector: ".portfolio_masonry_item, .masonry_with_space .mix",
1384            masonry: {
1385                columnWidth: ".qode-portfolio-masonry-gallery-grid-sizer"
1386            }
1387        }), e.hasClass("portfolio_one_by_one") && e.find("article").each(function(e) {
1388            var t = $j(this);
1389            setTimeout(function() {
1390                t.addClass("show")
1391            }, 100 * e)
1392        }), e.hasClass("portfolio_fade_from_bottom") && e.find("article").each(function(e) {
1393            var t = $j(this);
1394            $j(this).css({
1395                opacity: "0",
1396                transform: "translateY(150px)"
1397            }), $j(this).appear(function() {
1398                setTimeout(function() {
1399                    t.css({
1400                        opacity: "1",
1401                        transition: "all .8s ease",
1402                        transform: "translateY(0)"
1403                    })
1404                }, 100)
1405            }, {
1406                accX: 0,
1407                accY: -150
1408            })
1409        })
1410    })
1411}
1412
1413function resizeMasonry(e, t) {
1414    var i = jQuery(window);
1415    if (t.hasClass("portfolio_masonry_gallery_with_space")) {
1416        var o = t.find(".portfolio_masonry_item.default"),
1417            a = t.find(".large_width"),
1418            n = t.find(".large_height"),
1419            s = t.find(".large_width_height");
1420        o.css("height", e), n.css("height", Math.round(2 * e)), i.innerWidth() > 480 ? (s.css("height", Math.round(2 * e)), a.css("height", e)) : s.css("height", e)
1421    } else {
1422        var r;
1423        r = t.find('article[class*="default"]:first img').height() ? t.find('article[class*="default"]:first img').height() : t.find('article[class*="large_width"]:not(.large_width_height):first img').height() ? t.find('article[class*="large_width"]:not(.large_width_height):first img').height() : t.find('article[class*="large_width_height"]:first img').height() ? t.find('article[class*="large_width_height"]:first img').height() / 2 : t.find('article[class*="large_height"]:first img').height() / 2;
1424        var d = i.innerWidth() > 480 ? 2 : 1;
1425        t.find('article[class*="large_width_height"] img, article[class*="large_height"] img').css("height", r * d)
1426    }
1427}
1428
1429function setPortfolioMasZIndex() {
1430    var e = {},
1431        t = {};
1432    $j(".projects_masonry_holder article").each(function() {
1433        e[$j(this).index()] = getPortfolioXPos($j(this).css("left"))
1434    });
1435    var i = $j.map(e, function(e) {
1436        return e
1437    });
1438    i = cleanPortfolioMasXArray(i), i.sort(function(e, t) {
1439        return e - t
1440    });
1441    for (var o = 0; o < i.length; o++) t[i[o]] = 10 * o;
1442    $j.each(e, function(e, i) {
1443        var o, a = i;
1444        $j.each(t, function(e, t) {
1445            a == e && (o = t)
1446        }), $j(".projects_masonry_holder article:eq(" + e + ")").css("z-index", o)
1447    })
1448}
1449
1450function cleanPortfolioMasXArray(e) {
1451    var t, i = e.length,
1452        o = [],
1453        a = {};
1454    for (t = 0; t < i; t++) a[e[t]] = 0;
1455    for (t in a) o.push(t);
1456    return o
1457}
1458
1459function getPortfolioXPos(e) {
1460    return e.substr(0, e.length - 2)
1461}
1462
1463function qodeInitPortFilterCounter(e) {
1464    function t(e, t, i) {
1465        e.find(t).text(i)
1466    }
1467    if (e.hasClass("portfolio_holder_fwn")) {
1468        var i = e.find("article"),
1469            o = e.find(".filter_holder ul li");
1470        o.each(function() {
1471            var o = $j(this);
1472            if ("all" == o.data("filter") || "*" == o.data("filter")) t(o, ".filter_number_of_items", i.length);
1473            else {
1474                var a = o.attr("data-filter");
1475                a = a.replace(/\./g, ""), t(o, ".filter_number_of_items", e.find("article." + a).length)
1476            }
1477        }), o.css("opacity", "1")
1478    }
1479}
1480
1481function qodeGridWidth() {
1482    var e = qode_body.attr("class");
1483    e.match(/grid[\w-]*\b/) && (gridClass = e.match(/grid[\w-]*\b/).toString(), qode_grid_width = parseInt(gridClass.substr(5)))
1484}
1485
1486function initServiceAnimation() {
1487    "use strict";
1488    $j(".fade_in_circle_holder").length > 0 && 0 === $j(".no_animation_on_touch").length && $j(".fade_in_circle_holder").each(function() {
1489        $j(this).appear(function() {
1490            $j(this).addClass("animate_circle")
1491        }, {
1492            accX: 0,
1493            accY: -200
1494        })
1495    })
1496}
1497
1498function checkTitleToShowOrHide() {
1499    if ($j(".title_outer.animate_title_area").length) {
1500        var e = $j(".title_outer").data("height");
1501        $scroll > $j(".title").height() && $j(".title_outer").css({
1502            height: e,
1503            opacity: "1",
1504            overflow: "visible"
1505        })
1506    }
1507}
1508
1509function initTitleAreaAnimation() {
1510    if ($j(".title_outer.animate_title_area").length) {
1511        var e = $j(".title_outer").data("height");
1512        $j(".title_outer").hasClass("with_image") && (e = $j(".image.responsive").height()), $scroll < $j(".title").height() && $j(".title_outer").animate({
1513            height: e,
1514            opacity: 1
1515        }, 500, function() {
1516            $j(this).css({
1517                overflow: "visible"
1518            }), initPortfolioSingleInfo(), $j("nav.content_menu").length > 0 && (content_menu_position = $j("nav.content_menu").offset().top, contentMenuPosition())
1519        })
1520    }
1521}
1522
1523function initParallaxTitle() {
1524    "use strict";
1525    if ($j(".title").length > 0 && 0 === $j(".touch").length) {
1526        if ($j(".title.has_fixed_background").length) {
1527            var e = parseInt($j(".title.has_fixed_background").css("background-size").match(/\d+/)),
1528                t = $j(".title.has_fixed_background").height(),
1529                i = t / 1e4 * 7,
1530                o = $scroll - $j(".title.has_fixed_background").offset().top;
1531            $j(".title.has_fixed_background").css({
1532                "background-position": "center " + (0 + add_for_admin_bar) + "px"
1533            }), $j(".title.has_fixed_background").hasClass("zoom_out") && $j(".title.has_fixed_background").css({
1534                "background-size": e - $scroll + "px auto"
1535            })
1536        }
1537        $j(window).on("scroll", function() {
1538            if ($j(".title.has_fixed_background").length) {
1539                var t = $scroll - $j(".title.has_fixed_background").offset().top,
1540                    o = -t * i;
1541                $j(".title.has_fixed_background").css({
1542                    "background-position": "center " + (o + add_for_admin_bar) + "px"
1543                }), $j(".title.has_fixed_background").hasClass("zoom_out") && $j(".title.has_fixed_background").css({
1544                    "background-size": e - $scroll + "px auto"
1545                })
1546            }
1547        })
1548    }
1549}
1550
1551function initParallax() {
1552    "use strict";
1553    $j(".parallax_section_holder").length && $j(".parallax_section_holder").each(function() {
1554        var e = $j(this);
1555        e.hasClass("qode_full_screen_height_parallax") && e.height($window_height);
1556        var t = .4 * e.data("speed");
1557        e.parallax("50%", t)
1558    })
1559}
1560
1561function initSideAreaScroll() {
1562    "use strict";
1563    $j(".side_menu").length && $j(".side_menu").niceScroll({
1564        scrollspeed: 60,
1565        mousescrollstep: 40,
1566        cursorwidth: 0,
1567        cursorborder: 0,
1568        cursorborderradius: 0,
1569        cursorcolor: "transparent",
1570        autohidemode: !1,
1571        horizrailenabled: !1
1572    })
1573}
1574
1575function initVerticalAreaMenuScroll() {
1576    "use strict";
1577    $j(".vertical_menu_area.with_scroll").length && $j(".vertical_menu_area.with_scroll").niceScroll({
1578        scrollspeed: 60,
1579        mousescrollstep: 40,
1580        cursorwidth: 0,
1581        cursorborder: 0,
1582        cursorborderradius: 0,
1583        cursorcolor: "transparent",
1584        autohidemode: !1,
1585        horizrailenabled: !1
1586    })
1587}
1588
1589function loadMore() {
1590    "use strict";
1591    var e = 1;
1592    $j(".load_more a").on("click", function(t) {
1593        t.preventDefault();
1594        var i = ($j(this), $j(this).closest(".projects_holder_outer")),
1595            o = $j(this).attr("href"),
1596            a = ".projects_holder",
1597            n = ".portfolio_paging .load_more a",
1598            s = $j(n).attr("href"),
1599            r = $j(".projects_holder .filler").length,
1600            d = $j(".portfolio_paging"),
1601            l = $j(".portfolio_paging_loading");
1602        d.hide(), l.show(), $j.get(o + "", function(t) {
1603            if ($j(a).is(".justified-gallery")) {
1604                var i = $j(a, t).wrapInner("").html();
1605                s = $j(n, t).attr("href"), $j(a, t).waitForImages(function() {
1606                    $j(a).find("article:last").after(i), $j(a).find("article").css("visibility", "visible"), $j(a).justifiedGallery("norewind"), prettyPhoto(), $j(".load_more").attr("rel") > e ? $j(".load_more a").attr("href", s) : $j(".load_more").remove(), $j(".projects_holder .portfolio_paging:last").remove(), d.show(), l.hide()
1607                })
1608            } else {
1609                $j(".projects_holder .filler").slice(-r).remove();
1610                var i = $j(a, t).wrapInner("").html();
1611                s = $j(n, t).attr("href"), $j(a, t).waitForImages(function() {
1612                    if ($j("article.mix:last").after(i), $j(".projects_holder article").css("visibility", "visible"), $j("article:not(.show)").each(function(e) {
1613                        $j(this).addClass("show")
1614                    }), $j(".masonry_with_space").length) $j(".masonry_with_space .projects_holder").isotope("reloadItems").isotope();
1615                    else {
1616                        var t = $j("article.mix:first").height();
1617                        $j("article.mix").css("min-height", t), $j(".projects_holder").mixitup("remix", "all")
1618                    }
1619                    prettyPhoto(), $j(".load_more").attr("rel") > e ? $j(".load_more a").attr("href", s) : $j(".load_more").remove(), $j(".projects_holder .portfolio_paging:last").remove(), $j("article.mix").css("min-height", 0), d.show(), l.hide()
1620                })
1621            }
1622        }).done(function() {
1623            setTimeout(function() {
1624                initPortfolioMasonry(), qodeInitPortFilterCounter(i)
1625            }, 1e3)
1626        }), e++
1627    })
1628}
1629
1630function prettyPhoto() {
1631    "use strict";
1632    $j("a[data-rel]").each(function() {
1633        $j(this).attr("rel", $j(this).data("rel"))
1634    }), $j("a[rel^='prettyPhoto']").prettyPhoto({
1635        animation_speed: "normal",
1636        slideshow: !1,
1637        autoplay_slideshow: !1,
1638        opacity: .8,
1639        show_title: !0,
1640        allow_resize: !0,
1641        horizontal_padding: 0,
1642        default_width: 650,
1643        default_height: 400,
1644        counter_separator_label: "/",
1645        theme: "pp_default",
1646        hideflash: !1,
1647        wmode: "opaque",
1648        autoplay: !0,
1649        modal: !1,
1650        overlay_gallery: !1,
1651        keyboard_shortcuts: !0,
1652        deeplinking: !1,
1653        social_tools: !1,
1654        changepicturecallback: function() {
1655            $j($j(this).context.activeElement).hasClass("qode-single-image-pretty-photo") && $j(".pp_pic_holder").addClass("qode-pretty-photo-hide-navigation")
1656        }
1657    })
1658}
1659
1660function initMobileMenu() {
1661    "use strict";
1662    $j(".mobile_menu_button > span").on("tap click", function(e) {
1663        e.preventDefault(), $j(".mobile_menu > ul").is(":visible") ? $j(".mobile_menu > ul").slideUp(200) : $j(".mobile_menu > ul").slideDown(200)
1664    }), $j(".mobile_menu > ul > li.has_sub > span.mobile_arrow, .mobile_menu > ul > li.has_sub > h3, .mobile_menu > ul > li.has_sub > a[href*='#']").on("tap click", function(e) {
1665        e.preventDefault(), $j(this).closest("li.has_sub").find("> ul.sub_menu").is(":visible") ? ($j(this).closest("li.has_sub").find("> ul.sub_menu").slideUp(200), $j(this).closest("li.has_sub").removeClass("open_sub")) : ($j(this).closest("li.has_sub").addClass("open_sub"), $j(this).closest("li.has_sub").find("> ul.sub_menu").slideDown(200))
1666    }), $j(".mobile_menu > ul > li.has_sub > ul.sub_menu > li.has_sub > span.mobile_arrow, .mobile_menu > ul > li.has_sub > ul.sub_menu > li.has_sub > h3, .mobile_menu > ul > li.has_sub > ul.sub_menu > li.has_sub > a[href*='#']").on("tap click", function(e) {
1667        e.preventDefault(), $j(this).parent().find("ul.sub_menu").is(":visible") ? ($j(this).parent().find("ul.sub_menu").slideUp(200), $j(this).parent().removeClass("open_sub")) : ($j(this).parent().addClass("open_sub"), $j(this).parent().find("ul.sub_menu").slideDown(200))
1668    }), $j(".mobile_menu ul li > a, .q_logo a").on("click", function() {
1669        "http://#" !== $j(this).attr("href") && "#" !== $j(this).attr("href") && $j(".mobile_menu > ul").slideUp()
1670    })
1671}
1672
1673function initFlexSlider() {
1674    "use strict";
1675    $j(".flexslider").each(function() {
1676        var e = $j(this),
1677            t = 8e3;
1678        void 0 !== e.data("interval") && !1 !== e.data("interval") && (t = 1e3 * parseFloat(e.data("interval")));
1679        var i = !0;
1680        void 0 !== e.data("direction") && (i = e.data("direction"));
1681        var o = !1;
1682        void 0 !== e.data("control") && (o = e.data("control"));
1683        var a = !0;
1684        void 0 !== e.data("pause-on-hover") && (a = e.data("pause-on-hover"));
1685        var n = !1;
1686        void 0 !== e.data("drag") && (n = e.data("drag"));
1687        var s = !0;
1688        0 === t && (s = !1);
1689        var r = "slide";
1690        void 0 !== e.data("flex_fx") && !1 !== e.data("flex_fx") && (r = e.data("flex_fx")), e.flexslider({
1691            animationLoop: !0,
1692            controlNav: o,
1693            directionNav: i,
1694            useCSS: !1,
1695            pauseOnAction: a,
1696            pauseOnHover: a,
1697            slideshow: s,
1698            animation: r,
1699            prevText: "<div><i class='fa fa-angle-left'></i></div>",
1700            nextText: "<div><i class='fa fa-angle-right'></i></div>",
1701            animationSpeed: 600,
1702            slideshowSpeed: t,
1703            touch: !0,
1704            start: function() {
1705                setTimeout(function() {
1706                    $j(".flexslider").fitVids()
1707                }, 100)
1708            }
1709        }), e.find(".flex-direction-nav a").click(function(e) {
1710            e.preventDefault(), e.stopImmediatePropagation(), e.stopPropagation()
1711        }), n && e.swipe({
1712            swipeLeft: function() {
1713                e.flexslider("next")
1714            },
1715            swipeRight: function() {
1716                e.flexslider("prev")
1717            },
1718            threshold: 20
1719        })
1720    })
1721}
1722
1723function fitVideo() {
1724    "use strict";
1725    $j(".portfolio_images").fitVids(), $j(".video_holder").fitVids(), $j(".format-video .post_image").fitVids(), $j(".format-video .q_masonry_blog_post_image").fitVids()
1726}
1727
1728function initPortfolioSingleInfo() {
1729    "use strict";
1730    var e = $j(".portfolio_single_follow");
1731    if ($j(".portfolio_single_follow").length > 0) {
1732        var t = e.offset();
1733        $scrollHeight = $j(".portfolio_container").height();
1734        var i = $j(".portfolio_container").offset(),
1735            o = $j(window),
1736            a = parseInt($j("header.page_header").css("height"), 10);
1737        o.scroll(function() {
1738            o.width() > 960 ? o.scrollTop() + a + 3 > t.top ? o.scrollTop() + a + e.height() + 24 < i.top + $scrollHeight ? e.stop().animate({
1739                marginTop: o.scrollTop() - t.top + a
1740            }) : e.stop().animate({
1741                marginTop: $scrollHeight - e.height() - 24
1742            }) : e.stop().animate({
1743                marginTop: 0
1744            }) : e.css("margin-top", 0)
1745        })
1746    }
1747}
1748
1749function initTabs() {
1750    "use strict";
1751    if ($j(".q_tabs").length) {
1752        $j(".q_tabs").appear(function() {
1753            $j(".q_tabs").css("visibility", "visible")
1754        }, {
1755            accX: 0,
1756            accY: -100
1757        });
1758        var e = $j(".tabs-nav"),
1759            t = e.children("li");
1760        e.each(function() {
1761            var e = $j(this);
1762            e.next().children(".tab-content").stop(!0, !0).hide().first().show(), e.children("li").first().addClass("active").stop(!0, !0).show()
1763        }), t.on("click", function(e) {
1764            var t = $j(this);
1765            t.siblings().removeClass("active").end().addClass("active"), t.parent().next().children(".tab-content").stop(!0, !0).hide().siblings(t.find("a").attr("href")).fadeIn(), e.preventDefault()
1766        })
1767    }
1768}
1769
1770function qodeInitAdvancedTabs() {
1771    var e = $j(".qode-advanced-tabs");
1772    e.length && e.each(function() {
1773        var e = $j(this);
1774        e.children(".qode-advanced-tab-container").each(function(e) {
1775            e += 1;
1776            var t = $j(this),
1777                i = t.attr("id"),
1778                o = t.parent().find(".qode-advanced-tabs-nav li:nth-child(" + e + ") a"),
1779                a = o.attr("href");
1780            i = "#" + i, i.indexOf(a) > -1 && o.attr("href", i)
1781        }), e.tabs()
1782    })
1783}
1784
1785function qodeInitAdvancedTabsIcons() {
1786    var e = $j(".qode-advanced-tab-container");
1787    e.length && e.each(function() {
1788        var e = $j(this),
1789            t = e.attr("id"),
1790            i = "";
1791        void 0 === e.data("icon-html") && "false" === e.data("icon-html") || (i = e.data("icon-html"));
1792        var o = e.parents(".qode-advanced-tabs").find('.qode-advanced-tabs-nav > li a[href="#' + t + '"]');
1793        void 0 !== o && o.children(".qode-advanced-icon-frame").append(i)
1794    })
1795}
1796
1797function initAccordion() {
1798    "use strict";
1799    $j(".q_accordion_holder").length && ($j(".q_accordion_holder").appear(function() {
1800        $j(".q_accordion_holder").css("visibility", "visible")
1801    }, {
1802        accX: 0,
1803        accY: -100
1804    }), $j(".accordion").length && ($j(".accordion").accordion({
1805        animate: "swing",
1806        collapsible: !0,
1807        active: !1,
1808        icons: "",
1809        heightStyle: "content",
1810        activate: function(e, t) {
1811            initParallax()
1812        }
1813    }), $j(".accordion").each(function() {
1814        var e = parseInt($j(this).data("active-tab"));
1815        "" !== e && (e -= 1, $j(this).accordion("option", "active", e));
1816        var t = parseInt($j(this).data("border-radius"));
1817        "" !== t && $j(this).find(".accordion_mark").css("border-radius", t + "px");
1818        var i = "yes" == $j(this).data("collapsible");
1819        $j(this).accordion("option", "collapsible", i), $j(this).accordion("option", "collapsible", i)
1820    })), $j(".toggle").addClass("accordion ui-accordion ui-accordion-icons ui-widget ui-helper-reset").find(".title-holder").addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-top ui-corner-bottom").hover(function() {
1821        $j(this).toggleClass("ui-state-hover")
1822    }).click(function() {
1823        return $j(this).toggleClass("ui-accordion-header-active ui-state-active ui-state-default ui-corner-bottom").next().toggleClass("ui-accordion-content-active").slideToggle(400), !1
1824    }).next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").hide(), $j(".toggle").each(function() {
1825        var e = parseInt($j(this).data("active-tab"));
1826        "" !== e && e >= 1 && (e -= 1, $j(this).find(".ui-accordion-content").eq(e).show(), $j(this).find(".ui-accordion-header").eq(e).addClass("ui-state-active"))
1827    }))
1828}
1829
1830function initAccordionContentLink() {
1831    "use strict";
1832    $j(".accordion").length && $j(".accordion_holder .accordion_inner .accordion_content a").click(function() {
1833        return "_blank" === $j(this).attr("target") ? window.open($j(this).attr("href"), "_blank") : window.open($j(this).attr("href"), "_self"), !1
1834    })
1835}
1836
1837function initTestimonials() {
1838    "use strict";
1839    $j(".testimonials_carousel").length && $j(".testimonials_carousel").each(function() {
1840        var e = 5e3,
1841            t = $j(this);
1842        void 0 !== t.data("auto-rotate-slides") && !1 !== t.data("auto-rotate-slides") && (e = 1e3 * parseFloat(t.data("auto-rotate-slides")));
1843        var i = !0;
1844        0 === e && (i = !1);
1845        var o = "fade";
1846        void 0 !== t.data("animation-type") && !1 !== t.data("animation-type") && (o = t.data("animation-type"));
1847        var a = !0;
1848        void 0 !== t.data("show-navigation") && (a = "no" != t.data("show-navigation"));
1849        var n = 600;
1850        void 0 !== t.data("animation-speed") && !1 !== t.data("animation-speed") && (n = t.data("animation-speed"));
1851        var s = qodeNumberOfTestimonialsItems(t),
1852            r = 0,
1853            d = 0;
1854        void 0 !== s && 1 !== s && (r = 200, d = 40), t.flexslider({
1855            animationLoop: !0,
1856            controlNav: !1,
1857            directionNav: a,
1858            useCSS: !1,
1859            pauseOnAction: !0,
1860            pauseOnHover: !1,
1861            slideshow: i,
1862            animation: o,
1863            itemMargin: d,
1864            minItems: s,
1865            maxItems: s,
1866            itemWidth: r,
1867            animationSpeed: n,
1868            slideshowSpeed: e,
1869            start: function(e) {
1870                initParallax()
1871            }
1872        })
1873    })
1874}
1875
1876function qodeNumberOfTestimonialsItems(e) {
1877    var t = e.data("number-per-slide");
1878    return $window_width < 768 && t > 1 ? t = 1 : $window_width < 1024 && t > 2 && (t = 2), t
1879}
1880
1881function qodeNumberOfTestimonialsItemsResize() {
1882    var e = $j(".testimonials_carousel, .testimonials_c_carousel");
1883    e.length && e.each(function() {
1884        var e = $j(this),
1885            t = qodeNumberOfTestimonialsItems(e);
1886        void 0 !== e.data("flexslider") && (e.data("flexslider").vars.minItems = t), void 0 !== e.data("flexslider") && (e.data("flexslider").vars.maxItems = t)
1887    })
1888}
1889
1890function initTestimonialsCarousel() {
1891    "use strict";
1892    $j(".testimonials_c_carousel").length && $j(".testimonials_c_carousel").each(function() {
1893        var e = 5e3,
1894            t = $j(this);
1895        void 0 !== t.data("auto-rotate-slides") && !1 !== t.data("auto-rotate-slides") && (e = 1e3 * parseFloat(t.data("auto-rotate-slides")));
1896        var i = !0;
1897        0 === e && (i = !1);
1898        var o = !0;
1899        void 0 !== t.data("show-navigation") && (o = "no" != t.data("show-navigation"));
1900        var a = 600;
1901        void 0 !== t.data("animation-speed") && !1 !== t.data("animation-speed") && (a = t.data("animation-speed"));
1902        var n = qodeNumberOfTestimonialsItems(t),
1903            s = 0,
1904            r = 0;
1905        void 0 !== n && 1 !== n && (s = 300, r = 30), t.flexslider({
1906            animationLoop: !0,
1907            controlNav: o,
1908            directionNav: !1,
1909            useCSS: !1,
1910            pauseOnAction: !0,
1911            pauseOnHover: !1,
1912            slideshow: i,
1913            animation: "slide",
1914            itemMargin: r,
1915            minItems: n,
1916            maxItems: n,
1917            itemWidth: s,
1918            animationSpeed: a,
1919            slideshowSpeed: e,
1920            start: function(e) {
1921                initParallax()
1922            }
1923        })
1924    })
1925}
1926
1927function initMessages() {
1928    "use strict";
1929    $j(".q_message").length && $j(".q_message").each(function() {
1930        $j(this).find(".close").click(function(e) {
1931            e.preventDefault(), $j(this).parent().parent().fadeOut(500)
1932        })
1933    })
1934}
1935
1936function initElementsAnimation() {
1937    "use strict";
1938    $j(".element_from_fade").length > 0 && 0 === $j(".no_animation_on_touch").length && $j(".element_from_fade").each(function() {
1939        var e = $j(this);
1940        e.appear(function() {
1941            e.addClass("element_from_fade_on")
1942        }, {
1943            accX: 0,
1944            accY: -100
1945        })
1946    }), $j(".element_from_left").length > 0 && 0 === $j(".no_animation_on_touch").length && $j(".element_from_left").each(function() {
1947        var e = $j(this);
1948        e.appear(function() {
1949            e.addClass("element_from_left_on")
1950        }, {
1951            accX: 0,
1952            accY: -100
1953        })
1954    }), $j(".element_from_right").length > 0 && 0 === $j(".no_animation_on_touch").length && $j(".element_from_right").each(function() {
1955        var e = $j(this);
1956        e.appear(function() {
1957            e.addClass("element_from_right_on")
1958        }, {
1959            accX: 0,
1960            accY: -100
1961        })
1962    }), $j(".element_from_top").length > 0 && 0 === $j(".no_animation_on_touch").length && $j(".element_from_top").each(function() {
1963        var e = $j(this);
1964        e.appear(function() {
1965            e.addClass("element_from_top_on")
1966        }, {
1967            accX: 0,
1968            accY: -100
1969        })
1970    }), $j(".element_from_bottom").length > 0 && 0 === $j(".no_animation_on_touch").length && $j(".element_from_bottom").each(function() {
1971        var e = $j(this);
1972        e.appear(function() {
1973            e.addClass("element_from_bottom_on")
1974        }, {
1975            accX: 0,
1976            accY: -100
1977        })
1978    }), $j(".element_transform").length > 0 && 0 === $j(".no_animation_on_touch").length && $j(".element_transform").each(function() {
1979        var e = $j(this);
1980        e.appear(function() {
1981            e.addClass("element_transform_on")
1982        }, {
1983            accX: 0,
1984            accY: -100
1985        })
1986    })
1987}
1988
1989function fitAudio() {
1990    "use strict";
1991    $j("audio.blog_audio").mediaelementplayer({
1992        audioWidth: "100%"
1993    })
1994}
1995
1996function initBlog() {
1997    "use strict";
1998    if ($j(".blog_holder.masonry, .blog_holder.blog_pinterest").length) {
1999        var e = $j(this).closest(".container_inner").width();
2000        $j(".blog_holder").closest(".column_inner").length && (e = $j(".blog_holder").closest(".column_inner").width()), $j(".blog_holder").width(e);
2001        var t = $j(".blog_holder");
2002        if (t.waitForImages(function() {
2003            setTimeout(function() {
2004                t.isotope({
2005                    itemSelector: "article",
2006                    resizable: !1,
2007                    masonry: {
2008                        columnWidth: ".blog_holder_grid_sizer",
2009                        gutter: ".blog_holder_grid_gutter"
2010                    }
2011                }), $j(".blog_holder.masonry, .blog_holder.blog_pinterest").animate({
2012                    opacity: "1"
2013                }, 500)
2014            }, 400)
2015        }), $j(".filter").click(function() {
2016            var e = $j(this).attr("data-filter");
2017            return t.isotope({
2018                filter: e
2019            }), !1
2020        }), t.hasClass("masonry_infinite_scroll")) t.infinitescroll({
2021            navSelector: ".blog_infinite_scroll_button span",
2022            nextSelector: ".blog_infinite_scroll_button span a",
2023            itemSelector: "article",
2024            loading: {
2025                finishedMsg: finished_text,
2026                msgText: loading_text
2027            }
2028        }, function(e) {
2029            t.isotope("appended", $j(e)), fitVideo(), fitAudio(), initFlexSlider(), setTimeout(function() {
2030                $j(".blog_holder.masonry, .blog_holder.blog_pinterest").isotope("layout")
2031            }, 400)
2032        });
2033        else if (t.hasClass("masonry_load_more")) {
2034            var i = 1;
2035            $j(".blog_load_more_button a").off("click tap").on("click tap", function(e) {
2036                e.preventDefault();
2037                var o = $j(".blog_load_more_button"),
2038                    a = $j(".blog_load_more_button_loading");
2039                o.hide(), a.show();
2040                var n = $j(this).attr("href"),
2041                    s = ".blog_load_more_button a",
2042                    r = $j(s).attr("href");
2043                $j.get(n + "", function(e) {
2044                    var n = $j(".masonry_load_more", e).wrapInner("").html();
2045                    r = $j(s, e).attr("href"), t.append($j(n)).isotope("reloadItems").isotope({
2046                        sortBy: "original-order"
2047                    }), fitVideo(), fitAudio(), initFlexSlider(), setTimeout(function() {
2048                        $j(".blog_holder.masonry, .blog_holder.blog_pinterest").isotope("layout")
2049                    }, 400), o.show(), a.hide(), $j(".blog_load_more_button span").attr("rel") > i ? $j(".blog_load_more_button a").attr("href", r) : $j(".blog_load_more_button").remove()
2050                }), i++
2051            })
2052        }
2053    }
2054}
2055
2056function initBlogMasonryFullWidth() {
2057    "use strict";
2058    if ($j(".masonry_full_width").length) {
2059        var e = $j(".full_width_inner").width();
2060        $j(".masonry_full_width").width(e);
2061        var t = $j(".masonry_full_width");
2062        if ($j(".filter").click(function() {
2063            var e = $j(this).attr("data-filter");
2064            return t.isotope({
2065                filter: e
2066            }), !1
2067        }), t.hasClass("masonry_infinite_scroll")) t.infinitescroll({
2068            navSelector: ".blog_infinite_scroll_button span",
2069            nextSelector: ".blog_infinite_scroll_button span a",
2070            itemSelector: "article",
2071            loading: {
2072                finishedMsg: finished_text,
2073                msgText: loading_text
2074            }
2075        }, function(e) {
2076            t.isotope("appended", $j(e)), fitVideo(), fitAudio(), initFlexSlider(), setTimeout(function() {
2077                $j(".blog_holder.masonry_full_width").isotope("layout")
2078            }, 400)
2079        });
2080        else if (t.hasClass("masonry_load_more")) {
2081            var i = 1;
2082            $j(".blog_load_more_button a").off("click tap").on("click tap", function(e) {
2083                e.preventDefault();
2084                var o = $j(this).attr("href"),
2085                    a = ".blog_load_more_button a",
2086                    n = $j(a).attr("href");
2087                $j.get(o + "", function(e) {
2088                    var o = $j(".masonry_load_more", e).wrapInner("").html();
2089                    n = $j(a, e).attr("href"), t.append($j(o)).isotope("reloadItems").isotope({
2090                        sortBy: "original-order"
2091                    }), fitVideo(), fitAudio(), initFlexSlider(), setTimeout(function() {
2092                        $j(".blog_holder.masonry_full_width").isotope("layout")
2093                    }, 400), $j(".blog_load_more_button span").attr("rel") > i ? $j(".blog_load_more_button a").attr("href", n) : $j(".blog_load_more_button").remove()
2094                }), i++
2095            })
2096        }
2097        t.waitForImages(function() {
2098            setTimeout(function() {
2099                t.isotope({
2100                    itemSelector: "article",
2101                    resizable: !1,
2102                    masonry: {
2103                        columnWidth: ".blog_holder_grid_sizer",
2104                        gutter: ".blog_holder_grid_gutter"
2105                    }
2106                }), $j(".masonry_full_width").animate({
2107                    opacity: "1"
2108                }, 500)
2109            }, 400)
2110        })
2111    }
2112}
2113
2114function initBlogMasonryGallery() {
2115    "use strict";
2116    if ($j(".blog_holder.masonry_gallery").length) {
2117        qodeResizeBlogMasonryGallery($j(".blog_holder_grid_sizer").width());
2118        var e = $j(".blog_holder.masonry_gallery");
2119        if (e.width(Math.round(e.parent().width())), e.isotope({
2120            itemSelector: "article",
2121            resizable: !1,
2122            masonry: {
2123                columnWidth: ".blog_holder_grid_sizer",
2124                gutter: ".blog_holder_grid_gutter"
2125            }
2126        }), e.waitForImages(function() {
2127            e.animate({
2128                opacity: "1"
2129            }, 300, function() {
2130                e.isotope().isotope("layout")
2131            })
2132        }), e.hasClass("masonry_infinite_scroll")) e.infinitescroll({
2133            navSelector: ".blog_infinite_scroll_button span",
2134            nextSelector: ".blog_infinite_scroll_button span a",
2135            itemSelector: "article",
2136            loading: {
2137                finishedMsg: finished_text,
2138                msgText: loading_text
2139            }
2140        }, function(t) {
2141            e.isotope("appended", $j(t)), fitVideo(), fitAudio(), initFlexSlider(), qodeResizeBlogMasonryGallery($j(".blog_holder_grid_sizer").width()), setTimeout(function() {
2142                e.isotope("layout")
2143            }, 300)
2144        });
2145        else if (e.hasClass("masonry_load_more")) {
2146            var t = 1;
2147            $j(".blog_load_more_button a").off("click tap").on("click tap", function(i) {
2148                i.preventDefault();
2149                var o = $j(this).attr("href"),
2150                    a = ".blog_load_more_button a",
2151                    n = $j(a).attr("href");
2152                $j.get(o + "", function(i) {
2153                    var o = $j(".masonry_load_more", i).wrapInner("").html();
2154                    n = $j(a, i).attr("href"), e.append($j(o)).isotope("reloadItems").isotope({
2155                        sortBy: "original-order"
2156                    }), fitVideo(), fitAudio(), initFlexSlider(), qodeResizeBlogMasonryGallery($j(".blog_holder_grid_sizer").width()), setTimeout(function() {
2157                        e.isotope("layout")
2158                    }, 300), $j(".blog_load_more_button span").attr("rel") > t ? $j(".blog_load_more_button a").attr("href", n) : $j(".blog_load_more_button").remove()
2159                }), t++
2160            })
2161        }
2162        $j(window).resize(function() {
2163            qodeResizeBlogMasonryGallery($j(".blog_holder_grid_sizer").width()), e.isotope().isotope("layout"), e.width(Math.round(e.parent().width()))
2164        })
2165    }
2166}
2167
2168function initBlogGallery() {
2169    "use strict";
2170    if ($j(".blog_holder.blog_gallery, .blog_holder.blog_chequered").length) {
2171        qodeResizeBlogGallery($j(".blog_holder_grid_sizer").width());
2172        var e = $j(".blog_holder.blog_gallery, .blog_holder.blog_chequered");
2173        if (e.width(Math.round(e.parent().width())), e.isotope({
2174            itemSelector: "article",
2175            resizable: !1,
2176            masonry: {
2177                columnWidth: ".blog_holder_grid_sizer",
2178                gutter: ".blog_holder_grid_gutter"
2179            }
2180        }), e.waitForImages(function() {
2181            e.animate({
2182                opacity: "1"
2183            }, 300, function() {
2184                e.isotope().isotope("layout")
2185            })
2186        }), e.hasClass("masonry_infinite_scroll")) e.infinitescroll({
2187            navSelector: ".blog_infinite_scroll_button span",
2188            nextSelector: ".blog_infinite_scroll_button span a",
2189            itemSelector: "article",
2190            loading: {
2191                finishedMsg: finished_text,
2192                msgText: loading_text
2193            }
2194        }, function(t) {
2195            e.isotope("appended", $j(t)), fitVideo(), fitAudio(), initFlexSlider(), qodeResizeBlogGallery($j(".blog_holder_grid_sizer").width()), setTimeout(function() {
2196                e.isotope("layout")
2197            }, 300)
2198        });
2199        else if (e.hasClass("masonry_load_more")) {
2200            var t = 1;
2201            $j(".blog_load_more_button a").off("click tap").on("click tap", function(i) {
2202                i.preventDefault();
2203                var o = $j(this).attr("href"),
2204                    a = ".blog_load_more_button a",
2205                    n = $j(a).attr("href");
2206                $j.get(o + "", function(i) {
2207                    var o = $j(".masonry_load_more", i).wrapInner("").html();
2208                    n = $j(a, i).attr("href"), e.append($j(o)).isotope("reloadItems").isotope({
2209                        sortBy: "original-order"
2210                    }), fitVideo(), fitAudio(), initFlexSlider(), qodeResizeBlogGallery($j(".blog_holder_grid_sizer").width()), setTimeout(function() {
2211                        e.isotope("layout")
2212                    }, 300), $j(".blog_load_more_button span").attr("rel") > t ? $j(".blog_load_more_button a").attr("href", n) : $j(".blog_load_more_button").remove(), qodeBlogGalleryAnimation()
2213                }), t++
2214            })
2215        }
2216        $j(window).resize(function() {
2217            qodeResizeBlogGallery($j(".blog_holder_grid_sizer").width()), e.isotope().isotope("layout"), e.width(Math.round(e.parent().width()))
2218        })
2219    }
2220}
2221
2222function qodeResizeBlogMasonryGallery(e) {
2223    var t = $j(".blog_holder.masonry_gallery .large-height"),
2224        i = $j(".blog_holder.masonry_gallery .large-width"),
2225        o = $j(".blog_holder.masonry_gallery .large-width-height"),
2226        a = $j(".blog_holder.masonry_gallery .default");
2227    t.css("height", 2 * e), i.css("height", e), o.css("height", 2 * e), o.width() < 600 && o.css("height", o.width()), $window_width < 600 && t.css("height", t.width()), a.css("height", e)
2228}
2229
2230function qodeResizeBlogGallery(e) {
2231    $j(".blog_holder.blog_chequered .default").css("height", e)
2232}
2233
2234function initSmallImageBlogHeight() {
2235    "use strict";
2236    $j(".blog_small_image").length && $j("article").each(function() {
2237        $j(this).find(".post_text_inner").css("min-height", $j(this).find(".post_image").height() - 46)
2238    })
2239}
2240
2241function initQBlog() {
2242    "use strict";
2243    $j(".q_masonry_blog").length && $j(".q_masonry_blog").each(function() {
2244        var e = $j(this);
2245        e.waitForImages(function() {
2246            setTimeout(function() {
2247                e.isotope({
2248                    itemSelector: "article",
2249                    resizable: !1,
2250                    masonry: {
2251                        columnWidth: ".q_masonry_blog_grid_sizer",
2252                        gutter: ".q_masonry_blog_grid_gutter"
2253                    }
2254                }), e.animate({
2255                    opacity: "1"
2256                }, 500)
2257            }, 400)
2258        })
2259    })
2260}
2261
2262function qodeBlogCompundMasonryGallery() {
2263    var e = $j(".qode_blog_masonry_gallery"),
2264        t = e.find(".qode_blog_gallery_sizer").outerWidth(),
2265        i = t + 8,
2266        o = function() {
2267            t = e.find(".qode_blog_gallery_sizer").outerWidth(), i = t + 8;
2268            var o = e.find(".qode_blog_gallery_item.default"),
2269                a = e.find(".qode_blog_img_large_height"),
2270                n = e.find(".qode_blog_img_large_height_width");
2271            o.css("height", i), a.css("height", Math.round(2 * i)), $window_width > 600 ? n.css("height", Math.round(2 * i)) : n.css("height", i)
2272        },
2273        a = function() {
2274            e.isotope({
2275                itemSelector: ".qode_blog_gallery_item",
2276                masonry: {
2277                    columnWidth: ".qode_blog_gallery_sizer",
2278                    gutter: ".qode_blog_gallery_gutter"
2279                }
2280            })
2281        };
2282    return {
2283        init: function() {
2284            e.length && (o(), a(), $j(window).resize(function() {
2285                o()
2286            }))
2287        }
2288    }
2289}
2290
2291function qodeBlogHeadlines() {
2292    "use strict";
2293    if ($j(".blog_headlines").length) {
2294        var e = $j(".blog_headlines"),
2295            t = function() {
2296                e.bigtext({
2297                    childSelector: "> article > h2",
2298                    minfontsize: 20
2299                }), e.find("h2").appear(function() {
2300                    $j(this).addClass("show")
2301                }, {
2302                    accX: 0,
2303                    accY: -100
2304                })
2305            };
2306        if (t(), e.hasClass("blog_infinite_scroll")) e.infinitescroll({
2307            navSelector: ".blog_infinite_scroll_button span",
2308            nextSelector: ".blog_infinite_scroll_button span a",
2309            itemSelector: "article",
2310            loading: {
2311                finishedMsg: finished_text,
2312                msgText: loading_text
2313            }
2314        }, function() {
2315            t()
2316        });
2317        else if (e.hasClass("blog_load_more")) {
2318            var i = 1;
2319            $j(".blog_load_more_button a").off("click tap").on("click tap", function(o) {
2320                o.preventDefault();
2321                var a = $j(this).attr("href"),
2322                    n = ".blog_load_more_button a",
2323                    s = $j(n).attr("href");
2324                $j.get(a + "", function(o) {
2325                    var a = $j(".blog_load_more", o).wrapInner("").html();
2326                    s = $j(n, o).attr("href"), e.append($j(a)), t(), $j(".blog_load_more_button span").attr("rel") > i ? $j(".blog_load_more_button a").attr("href", s) : $j(".blog_load_more_button").remove()
2327                }), i++
2328            })
2329        }
2330    }
2331}
2332
2333function initProgressBarsIcon() {
2334    "use strict";
2335    $j(".q_progress_bars_icons_holder").length && $j(".q_progress_bars_icons_holder").each(function() {
2336        var e = $j(this),
2337            t = 200;
2338        void 0 !== e.data("element-appearance") && !1 !== e.data("element-appearance") && (t = e.data("element-appearance")), e.appear(function() {
2339            e.find(".q_progress_bars_icons").css("opacity", "1"), e.find(".q_progress_bars_icons").each(function() {
2340                var e = $j(this).find(".q_progress_bars_icons_inner").data("number"),
2341                    t = $j(this).find(".q_progress_bars_icons_inner").data("size");
2342                "" !== t && ($j(this).find(".q_progress_bars_icons_inner.custom_size .bar").css({
2343                    width: t + "px",
2344                    height: t + "px"
2345                }), $j(this).find(".q_progress_bars_icons_inner.custom_size .bar .fa-stack").css({
2346                    "font-size": t / 2 + "px"
2347                }));
2348                var i = $j(this).find(".bar");
2349                i.each(function(t) {
2350                    if (t < e) {
2351                        var o = 150 * (t + 1);
2352                        timeOuts[t] = setTimeout(function() {
2353                            $j(i[t]).addClass("active")
2354                        }, o)
2355                    }
2356                })
2357            })
2358        }, {
2359            accX: 0,
2360            accY: -t
2361        })
2362    })
2363}
2364
2365function initMasonryGallery() {
2366    "use strict";
2367    resizeMasonryGallery($j(".grid-sizer").width()), $j(".masonry_gallery_holder").length && ($j(".masonry_gallery_holder").each(function() {
2368        var e = $j(this);
2369        e.waitForImages(function() {
2370            e.animate({
2371                opacity: 1
2372            }), e.isotope({
2373                itemSelector: ".masonry_gallery_item",
2374                masonry: {
2375                    columnWidth: ".grid-sizer"
2376                }
2377            }), e.find(".masonry_gallery_item.parallax_item").each(function(t) {
2378                $j(this).masonryParallax(e.data("parallax_item_speed"), !0, e.data("parallax_item_offset"))
2379            })
2380        })
2381    }), $j(window).resize(function() {
2382        resizeMasonryGallery($j(".grid-sizer").width()), $j(".masonry_gallery_holder").isotope("reloadItems")
2383    }))
2384}
2385
2386function resizeMasonryGallery(e) {
2387    "use strict";
2388    var t = $j(".masonry_gallery_holder .rectangle_portrait"),
2389        i = $j(".masonry_gallery_holder .rectangle_landscape"),
2390        o = $j(".masonry_gallery_holder .square_big"),
2391        a = $j(".masonry_gallery_holder .square_small");
2392    t.css("height", 2 * e), window.innerWidth < 600 ? i.css("height", e / 2) : i.css("height", e), o.css("height", 2 * e),
2393    window.innerWidth < 600 && o.css("height", o.width() + 20), a.css("height", e)
2394}
2395
2396function initMoreFacts() {
2397    "use strict";
2398    $j(".more_facts_holder").length && $j(".more_facts_holder").each(function() {
2399        var e = $j(this),
2400            t = "More Facts";
2401        "" !== $j(this).find(".more_facts_button").data("morefacts") && (t = $j(this).find(".more_facts_button").data("morefacts"));
2402        var i = "Less Facts";
2403        "" !== $j(this).find(".more_facts_button").data("lessfacts") && (i = $j(this).find(".more_facts_button").data("lessfacts")), e.find(".more_facts_button").on("mouseenter", function() {
2404            $j(this).css("color", $j(this).data("hovercolor"))
2405        }).on("mouseleave", function() {
2406            0 == e.find(".more_facts_outer").height() && $j(this).css("color", $j(this).data("color"))
2407        });
2408        var o = 70;
2409        "" !== e.find(".more_facts_inner").data("expandable_content_top_padding") && (o = e.find(".more_facts_inner").data("expandable_content_top_padding"), e.find(".more_facts_inner").css({
2410            "padding-top": o
2411        }));
2412        var a = 0,
2413            n = 600;
2414        e.find(".more_facts_button").click(function() {
2415            a = e.find(".more_facts_inner").height() + o, n = a > 0 && a < 601 ? 800 : a > 600 && a < 1201 ? 1500 : 2100, e.hasClass("more_fact_opened") ? (e.find(".more_facts_fake_arrow").fadeOut(n), e.find(".more_facts_outer").stop().animate({
2416                height: "0px"
2417            }, n, function() {
2418                e.find(".more_facts_button").is(":hover") || e.find(".more_facts_button").css("color", e.find(".more_facts_button").data("color")), e.removeClass("more_fact_opened"), $j(".parallax_section_holder").length && initParallax()
2419            }), $j(this).find(".more_facts_button_text").text(t), $j(this).find(".more_facts_button_arrow").removeClass("rotate_arrow")) : (e.addClass("more_fact_opened"), e.find(".more_facts_fake_arrow").fadeIn(n), e.find(".more_facts_outer").stop().animate({
2420                height: a
2421            }, n, function() {
2422                $j(".parallax_section_holder").length && initParallax()
2423            }), $j(this).find(".more_facts_button_text").text(i), $j(this).find(".more_facts_button_arrow").addClass("rotate_arrow"))
2424        })
2425    })
2426}
2427
2428function placeholderReplace() {
2429    "use strict";
2430    $j("#contact-form [placeholder]").focus(function() {
2431        var e = $j(this);
2432        e.val() === e.attr("placeholder") && (this.originalType && (this.type = this.originalType, delete this.originalType), e.val(""), e.removeClass("placeholder"))
2433    }).blur(function() {
2434        var e = $j(this);
2435        "" === e.val() && ("password" === this.type && (this.originalType = this.type, this.type = "text"), e.addClass("placeholder"), e.val(e.attr("placeholder")))
2436    }).blur(), $j("#contact-form [placeholder]").parents("form").submit(function() {
2437        $j(this).find("[placeholder]").each(function() {
2438            var e = $j(this);
2439            e.val() === e.attr("placeholder") && e.val("")
2440        })
2441    })
2442}
2443
2444function totop_button(e) {
2445    "use strict";
2446    var t = $j("#back_to_top");
2447    t.removeClass("off on"), "on" === e ? t.addClass("on") : t.addClass("off")
2448}
2449
2450function backButtonShowHide() {
2451    "use strict";
2452    $j(window).scroll(function() {
2453        var e, t = $j(this).scrollTop(),
2454            i = $j(this).height();
2455        e = t > 0 ? t + i / 2 : 1, totop_button(e < 1e3 ? "off" : "on")
2456    })
2457}
2458
2459function backToTop() {
2460    "use strict";
2461    $j(document).on("click", "#back_to_top", function(e) {
2462        e.preventDefault(), $j("body,html").animate({
2463            scrollTop: 0
2464        }, $j(window).scrollTop() / 3, "linear")
2465    })
2466}
2467
2468function initSteps() {
2469    "use strict";
2470    $j(".q_steps_holder").length && $j(".q_steps_holder").each(function() {
2471        $j(this).appear(function() {
2472            $j(this).addClass("show")
2473        }, {
2474            accX: 0,
2475            accY: -200
2476        })
2477    })
2478}
2479
2480function initMessageHeight() {
2481    "use strict";
2482    $j(".q_message.with_icon").length && $j(".q_message.with_icon").each(function() {
2483        $j(this).find(".message_text_holder").height() > $j(this).find(".q_message_icon_holder").height() ? $j(this).find(".q_message_icon_holder").height($j(this).find(".message_text").height()) : $j(this).find(".message_text").height($j(this).find(".q_message_icon_holder").height())
2484    })
2485}
2486
2487function initImageHover() {
2488    "use strict";
2489    $j(".image_hover").length && $j(".image_hover").each(function() {
2490        $j(this).appear(function() {
2491            var e = $j(this).attr("data-transition-delay"),
2492                t = 300 + parseFloat(e),
2493                i = $j(this);
2494            setTimeout(function() {
2495                i.addClass("show")
2496            }, parseFloat(e)), setTimeout(function() {
2497                i.removeClass("show")
2498            }, t)
2499        }, {
2500            accX: 0,
2501            accY: -200
2502        })
2503    })
2504}
2505
2506function initProgressBarsVertical() {
2507    "use strict";
2508    $j(".q_progress_bars_vertical").length && $j(".q_progress_bars_vertical").each(function() {
2509        $j(this).appear(function() {
2510            initToCounterVerticalProgressBar($j(this));
2511            var e = $j(this).find(".progress_content").data("percentage");
2512            $j(this).find(".progress_content").css("height", "0%"), $j(this).find(".progress_content").animate({
2513                height: e + "%"
2514            }, 1500)
2515        }, {
2516            accX: 0,
2517            accY: -200
2518        })
2519    })
2520}
2521
2522function initToCounterVerticalProgressBar(e) {
2523    "use strict";
2524    e.find(".progress_number span").length && e.find(".progress_number span").each(function() {
2525        var e = parseFloat($j(this).text());
2526        $j(this).countTo({
2527            from: 0,
2528            to: e,
2529            speed: 1500,
2530            refreshInterval: 50
2531        })
2532    })
2533}
2534
2535function checkAnchorOnLoad() {
2536    "use strict";
2537    var e, t, i = window.location.hash,
2538        o = encodeURI(window.location.hash.split("#")[1]),
2539        a = $j("body").hasClass("paspartu_on_top_fixed") ? $window_width * paspartu_width : 0;
2540    if ("" !== i && $j('[data-q_id="#' + o + '"]').length > 0) {
2541        if ($j("header.page_header").hasClass("fixed") && !$j("body").hasClass("vertical_menu_enabled"))
2542            if (t = $j("header.page_header").hasClass("scroll_top") ? header_top_height : 0, !$j("header.page_header").hasClass("transparent") || $j("header.page_header").hasClass("scrolled_not_transparent"))
2543                if (header_height - ($j('[data-q_id="' + i + '"]').offset().top + t) / 4 >= min_header_height_scroll) {
2544                    var n = $j('[data-q_id="' + i + '"]').offset().top - header_height - a;
2545                    e = n + n / 4 + n / 16 + n / 64 + 1
2546                } else e = $j("header.page_header").hasClass("centered_logo") ? $j('[data-q_id="' + i + '"]').offset().top - min_header_height_scroll - logo_height - 30 - a : $j('[data-q_id="' + i + '"]').offset().top - min_header_height_scroll - a;
2547            else e = $j('[data-q_id="' + i + '"]').offset().top - a;
2548        else e = $j("header.page_header").hasClass("fixed_top_header") && !$j("body").hasClass("vertical_menu_enabled") ? !$j("header.page_header").hasClass("transparent") || $j("header.page_header").hasClass("scrolled_not_transparent") ? $j('[data-q_id="' + i + '"]').offset().top - header_top_height - a : $j('[data-q_id="' + i + '"]').offset().top - a : $j("header.page_header").hasClass("fixed_hiding") && !$j("body").hasClass("vertical_menu_enabled") ? !$j("header.page_header").hasClass("transparent") || $j("header.page_header").hasClass("scrolled_not_transparent") ? $j('[data-q_id="' + i + '"]').offset().top - (header_height + logo_height / 2 + 40) <= scroll_amount_for_fixed_hiding ? $j('[data-q_id="' + i + '"]').offset().top - header_height - logo_height / 2 - 40 - a : $j('[data-q_id="' + i + '"]').offset().top - min_header_height_fixed_hidden - 40 - a : $j('[data-q_id="' + i + '"]').offset().top - a : ($j("header.page_header").hasClass("stick") || $j("header.page_header").hasClass("stick_with_left_r
2548ight_menu") && !$j("body").hasClass("vertical_menu_enabled")) && (!$j("header.page_header").hasClass("transparent") || $j("header.page_header").hasClass("scrolled_not_transparent")) ? sticky_amount >= $j('[data-q_id="' + i + '"]').offset().top ? $j('[data-q_id="' + i + '"]').offset().top + 1 - a : $j('[data-q_id="' + i + '"]').offset().top - min_header_height_sticky - a : $j('[data-q_id="' + i + '"]').offset().top - a;
2549        $j("html, body").animate({
2550            scrollTop: Math.round(e)
2551        }, 1500, function() {})
2552    }
2553    $j(".main_menu a, .vertical_menu a, .mobile_menu a").each(function() {
2554        var e = $j(this).prop("hash");
2555        "" !== e && $j('[data-q_id="' + e + '"]').length > 0 && $j('[data-q_id="' + e + '"]').offset().top >= $window_height && 0 === $scroll && ($j(this).parent().removeClass("active current-menu-item"), $j(this).removeClass("current"))
2556    })
2557}
2558
2559function changeActiveState(e) {
2560    "use strict";
2561    $j(".main_menu a[href*='#']").length && $j(".main_menu a").parent().removeClass("active"), $j(".main_menu a").each(function() {
2562        $j(this).prop("hash") === e && (0 === $j(this).closest(".second").length ? $j(this).parent().addClass("active") : $j(this).closest(".second").parent().addClass("active"), $j(".main_menu a").removeClass("current"), $j(this).addClass("current"))
2563    }), $j(".vertical_menu a[href*='#']").length && $j(".vertical_menu a").parent().removeClass("active"), $j(".vertical_menu a").each(function() {
2564        $j(this).prop("hash") === e && (0 === $j(this).closest(".second").length ? $j(this).parent().addClass("active") : $j(this).closest(".second").parent().addClass("active"), $j(".vertical_menu a").removeClass("current"), $j(this).addClass("current"))
2565    }), $j(".mobile_menu a[href*='#']").length && $j(".mobile_menu a").parent().removeClass("active"), $j(".mobile_menu a").each(function() {
2566        $j(this).prop("hash") === e && (0 === $j(this).closest(".sub_menu").length ? $j(this).parent().addClass("active") : $j(this).closest(".sub_menu").parent().addClass("active"), $j(".mobile_menu a").removeClass("current"), $j(this).addClass("current"))
2567    })
2568}
2569
2570function checkAnchorOnScroll() {
2571    "use strict";
2572    $j("[data-q_id]").length && !$j("header.page_header").hasClass("regular") && ($j("[data-q_id]").waypoint(function(e) {
2573        "down" === e && changeActiveState($j(this).data("q_id"))
2574    }, {
2575        offset: "50%"
2576    }), $j("[data-q_id]").waypoint(function(e) {
2577        "up" === e && changeActiveState($j(this).data("q_id"))
2578    }, {
2579        offset: function() {
2580            return -($j(this).outerHeight() - 150)
2581        }
2582    }))
2583}
2584
2585function initHashClick() {
2586    "use strict";
2587    var e, t = $j("html, body"),
2588        i = $j("body").hasClass("paspartu_on_top_fixed") ? $window_width * paspartu_width : 0;
2589    $j(document).on("click", ".main_menu a, .vertical_menu a, .qbutton:not(.contact_form_button, .qode-archive-submit-button, .qode-listing-archive-load-more), .anchor, .widget li.anchor a", function() {
2590        var o, a = $j(this),
2591            n = $j(this).prop("hash");
2592        if ("" !== n && "" === $j(this).attr("href").split("#")[0] || "" !== n && "" !== $j(this).attr("href").split("#")[0] && n === window.location.hash || "" !== n && $j(this).attr("href").split("#")[0] === window.location.href.split("#")[0]) {
2593            if ($j("header.page_header").hasClass("fixed") && !$j("body").hasClass("vertical_menu_enabled"))
2594                if (o = $j("header.page_header").hasClass("scroll_top") ? header_top_height : 0, !$j("header.page_header").hasClass("transparent") || $j("header.page_header").hasClass("scrolled_not_transparent"))
2595                    if (header_height - ($j('[data-q_id="' + n + '"]').offset().top + o) / 4 >= min_header_height_scroll) {
2596                        var s = $j('[data-q_id="' + n + '"]').offset().top - header_height - i;
2597                        e = s + s / 4 + s / 16 + s / 64 + 1
2598                    } else e = $j("header.page_header").hasClass("centered_logo") ? $j('[data-q_id="' + n + '"]').offset().top - min_header_height_scroll - logo_height - i - 30 : $j('[data-q_id="' + n + '"]').offset().top - min_header_height_scroll - i;
2599                else e = $j('[data-q_id="' + n + '"]').offset().top - i;
2600            else e = $j("header.page_header").hasClass("fixed_top_header") && !$j("body").hasClass("vertical_menu_enabled") ? !$j("header.page_header").hasClass("transparent") || $j("header.page_header").hasClass("scrolled_not_transparent") ? $j('[data-q_id="' + n + '"]').offset().top - header_top_height - i : $j('[data-q_id="' + n + '"]').offset().top - i : $j("header.page_header").hasClass("fixed_hiding") && !$j("body").hasClass("vertical_menu_enabled") ? !$j("header.page_header").hasClass("transparent") || $j("header.page_header").hasClass("scrolled_not_transparent") ? $j('[data-q_id="' + n + '"]').offset().top - (header_height + logo_height / 2 + 40) <= scroll_amount_for_fixed_hiding ? $j('[data-q_id="' + n + '"]').offset().top - header_height - logo_height / 2 - 40 - i : $j('[data-q_id="' + n + '"]').offset().top - min_header_height_fixed_hidden - 40 - i : $j('[data-q_id="' + n + '"]').offset().top - i : ($j("header.page_header").hasClass("stick") || $j("header.page_header").hasClass("stick_with_left_r
2600ight_menu") && !$j("body").hasClass("vertical_menu_enabled")) && (!$j("header.page_header").hasClass("transparent") || $j("header.page_header").hasClass("scrolled_not_transparent")) ? sticky_amount >= $j('[data-q_id="' + n + '"]').offset().top ? $j('[data-q_id="' + n + '"]').offset().top + 2 - i : $j('[data-q_id="' + n + '"]').offset().top - min_header_height_sticky - i : $j('[data-q_id="' + n + '"]').offset().top - i;
2601            return $j('[data-q_id="' + n + '"]').length > 0 && t.stop().animate({
2602                scrollTop: Math.round(e)
2603            }, 1500, function() {
2604                anchorActiveState(a)
2605            }), history.pushState && history.pushState(null, null, n), !1
2606        }
2607    }), $j(document).on("click", ".mobile_menu a", function() {
2608        var e = $j(this),
2609            i = $j(this).prop("hash");
2610        if ("" !== i && "" === $j(this).attr("href").split("#")[0] || "" !== i && "" !== $j(this).attr("href").split("#")[0] && i === window.location.hash || "" !== i && $j(this).attr("href").split("#")[0] === window.location.href.split("#")[0]) return $j('[data-q_id="' + i + '"]').length > 0 && t.animate({
2611            scrollTop: Math.round($j('[data-q_id="' + i + '"]').offset().top - $j(".mobile_menu").height())
2612        }, 500, function() {
2613            anchorActiveState(e)
2614        }), history.pushState && history.pushState(null, null, i), !1
2615    })
2616}
2617
2618function countClientsPerRow() {
2619    "use strict";
2620    $j(".qode_clients").length && $j(".qode_clients").each(function() {
2621        var e, t = $j(this),
2622            i = t.height(),
2623            o = t.width(),
2624            a = t.find(".qode_client_holder").width(),
2625            n = t.find(".qode_client_holder").length;
2626        t.find(".qode_client_holder").each(function() {
2627            e = e > $j(this).height() ? e : $j(this).height()
2628        }), e += 35;
2629        var s = (Math.ceil(i / e), Math.ceil(o / a)),
2630            r = Math.floor(n / s),
2631            d = n - s * r;
2632        0 === d && (d = s), t.find(".qode_client_holder").removeClass("border-bottom-none");
2633        var l = n - d - 1;
2634        t.find(".qode_client_holder:gt(" + l + ")").addClass("border-bottom-none")
2635    })
2636}
2637
2638function animatedTextIconHeight() {
2639    "use strict";
2640    if ($j(".animated_icons_with_text").length) {
2641        var e, t = $j(".animated_icons_with_text");
2642        t.find(".animated_text p").each(function() {
2643            e = e > $j(this).height() ? e : $j(this).height()
2644        }), e < 155 && (e = 155), t.find(".animated_icon_with_text_inner").height(e)
2645    }
2646}
2647
2648function countAnimatedTextIconPerRow() {
2649    "use strict";
2650    $j(".animated_icons_with_text").length && $j(".animated_icons_with_text").each(function() {
2651        var e, t = $j(this),
2652            i = (t.height(), t.width()),
2653            o = t.find(".animated_icon_with_text_holder").width() + 1,
2654            a = t.find(".animated_icon_with_text_holder").length;
2655        t.find(".animated_icon_with_text_holder").each(function() {
2656            e = e > $j(this).height() ? e : $j(this).height()
2657        }), e += 30;
2658        var n = Math.ceil(i / o),
2659            s = Math.floor(a / n),
2660            r = a - n * s;
2661        0 === r && (r = n), t.find(".animated_icon_with_text_holder").removeClass("border-bottom-none");
2662        var d = a - r - 1;
2663        t.find(".animated_icon_with_text_holder:gt(" + d + ")").addClass("border-bottom-none")
2664    })
2665}
2666
2667function anchorActiveState(e) {
2668    e.closest(".main_menu").length > 0 && $j(".main_menu a").parent().removeClass("active"), e.closest(".vertical_menu").length > 0 && $j(".vertical_menu a").parent().removeClass("active"), 0 === e.closest(".second").length ? e.parent().addClass("active") : e.closest(".second").parent().addClass("active"), e.closest(".mobile_menu").length > 0 && ($j(".mobile_menu a").parent().removeClass("active"), e.parent().addClass("active")), $j(".mobile_menu a, .main_menu a, .vertical_menu a").removeClass("current"), e.addClass("current")
2669}
2670
2671function initVideoBackground() {
2672    "use strict";
2673    $j(".video-wrap .video").mediaelementplayer({
2674        enableKeyboard: !1,
2675        iPadUseNativeControls: !1,
2676        pauseOtherPlayers: !1,
2677        iPhoneUseNativeControls: !1,
2678        AndroidUseNativeControls: !1
2679    }), navigator.userAgent.match(/(Android|iPod|iPhone|iPad|IEMobile|Opera Mini)/) && (initVideoBackgroun
2679dSize(), $j(".mobile-video-image").show(), $j(".video-wrap").remove())
2680}
2681
2682function initVideoBackgroundSize() {
2683    "use strict";
2684    $j(".section .video-wrap").each(function(e) {
2685        var t = $j(this).closest(".section").outerWidth();
2686        $j(this).width(t);
2687        var i = $j(this).closest(".section").outerHeight();
2688        min_w = vid_ratio * (i + 20), $j(this).height(i);
2689        var o = t / video_width_original,
2690            a = (i - header_height) / video_height_original,
2691            n = a;
2692        o > a && (n = o), n * video_width_original < min_w && (n = min_w / video_width_original), $j(this).find("video, .mejs-overlay, .mejs-poster").width(Math.ceil(n * video_width_original + 2)), $j(this).find("video, .mejs-overlay, .mejs-poster").height(Math.ceil(n * video_height_original + 2)), $j(this).scrollLeft(($j(this).find("video").width() - t) / 2), $j(this).find(".mejs-overlay, .mejs-poster").scrollTop(($j(this).find("video").height() - i) / 2), $j(this).scrollTop(($j(this).find("video").height() - i) / 2), $j(this).css("opacity", 1), $j(".no-touch .section .mobile-video-image ").css("display", "none")
2693    }), $j(".carousel .item .video .video-wrap").each(function(e) {
2694        var t = $j(window).width();
2695        $j(this).width(t);
2696        var i = $j(window).width() < 1e3 ? $j("header.page_header").height() - 6 : 0,
2697            o = $j(this).closest(".carousel.slide").height() - i;
2698        min_w = vid_ratio * (o + 20), $j(this).height(o);
2699        var a = t / video_width_original,
2700            n = (o - header_height) / video_height_original,
2701            s = n;
2702        a > n && (s = a), s * video_width_original < min_w && (s = min_w / video_width_original), $j(this).find("video, .mejs-overlay, .mejs-poster").width(Math.ceil(s * video_width_original + 2)), $j(this).find("video, .mejs-overlay, .mejs-poster").height(Math.ceil(s * video_height_original + 2)), $j(this).scrollLeft(($j(this).find("video").width() - t) / 2), $j(this).find(".mejs-overlay, .mejs-poster").scrollTop(($j(this).find("video").height() - o) / 2), $j(this).scrollTop(($j(this).find("video").height() - o) / 2)
2703    }), $j(".portfolio_single .video .video-wrap, .blog_holder .video .video-wrap").each(function(e) {
2704        var t = $j(this),
2705            i = $j(this).closest(".video").outerWidth();
2706        $j(this).width(i);
2707        var o = 9 * i / 16;
2708        navigator.userAgent.match(/(Android|iPod|iPhone|iPad|IEMobile|Opera Mini)/) && (t.parent().width(i), t.parent().height(o)), min_w = vid_ratio * (o + 20), $j(this).height(o);
2709        var a = i / video_width_original,
2710            n = (o - header_height) / video_height_original,
2711            s = n;
2712        a > n && (s = a), s * video_width_original < min_w && (s = min_w / video_width_original), $j(this).find("video, .mejs-overlay, .mejs-poster").width(Math.ceil(s * video_width_original + 2)), $j(this).find("video, .mejs-overlay, .mejs-poster").height(Math.ceil(s * video_height_original + 2)), $j(this).scrollLeft(($j(this).find("video").width() - i) / 2), $j(this).find(".mejs-overlay, .mejs-poster").scrollTop(($j(this).find("video").height() - o) / 2), $j(this).scrollTop(($j(this).find("video").height() - o) / 2)
2713    })
2714}
2715
2716function initIconWithTextAnimation() {
2717    "use strict";
2718    $j(".q_icon_animation").length > 0 && 0 === $j(".no_animation_on_touch").length && $j(".q_icon_animation").each(function() {
2719        $j(this).appear(function() {
2720            $j(this).addClass("q_show_animation")
2721        }, {
2722            accX: 0,
2723            accY: -200
2724        })
2725    })
2726}
2727
2728function initCheckSafariBrowser() {
2729    "use strict"; - 1 !== navigator.userAgent.indexOf("Safari") && -1 === navigator.userAgent.indexOf("Chrome") && $j("body").addClass("safari_browser")
2730}
2731
2732function initSearchButton() {
2733    $j(".search_slides_from_window_top").length && $j(".search_slides_from_window_top").click(function(e) {
2734        if (e.preventDefault(), $j("html").hasClass("touch")) "0" == $j(".qode_search_form").height() ? ($j('.qode_search_form input[type="text"]').onfocus = function() {
2735            window.scrollTo(0, 0), document.body.scrollTop = 0
2736        }, $j('.qode_search_form input[type="text"]').onclick = function() {
2737            window.scrollTo(0, 0), document.body.scrollTop = 0
2738        }, $j(".header_top_bottom_holder").css("top", "50px"), $j(".qode_search_form").css("height", "50px"), $j(".content_inner").css("margin-top", "50px"), $scroll < 34 && $j("header.page_header").css("top", "0")) : ($j(".qode_search_form").css("height", "0"), $j(".header_top_bottom_holder").css("top", "0"), $j(".content_inner").css("margin-top", "0"), $scroll < 34 && $j("header.page_header").css("top", -$scroll)), $j(window).scroll(function() {
2739            "0" != $j(".qode_search_form").height() && $scroll > 50 && ($j(".qode_search_form").css("height", "0"), $j(".header_top_bottom_holder").css("top", "0"), $j(".content_inner").css("margin-top", "0"))
2740        }), $j(".qode_search_close").click(function(e) {
2741            e.preventDefault(), $j(".qode_search_form").css("height", "0"), $j(".header_top_bottom_holder").css("top", "0"), $j(".content_inner").css("margin-top", "0"), $scroll < 34 && $j("header.page_header").css("top", -$scroll)
2742        });
2743        else {
2744            if ($j(".title").hasClass("has_fixed_background")) var t = parseInt($j(".title.has_fixed_background").css("backgroundPosition").split(" ")[1]);
2745            else var t = 0;
2746            "0" == $j(".qode_search_form").height() ? ($j('.qode_search_form input[type="text"]').focus(), $j(".header_top_bottom_holder").stop().animate({
2747                top: "50px"
2748            }, 150), $j(".qode_search_form").stop().animate({
2749                height: "50px"
2750            }, 150), $j(".content_inner").stop().animate({
2751                marginTop: "50px"
2752            }, 150), $scroll < 34 && $j("header.page_header").stop().animate({
2753                top: 0
2754            }
2754, 150), $j(".title.has_fixed_background").animate({
2755                "background-position-y": t + 50 + "px"
2756            }, 150)) : ($j(".qode_search_form").stop().animate({
2757                height: "0"
2758            }, 150), $j(".header_top_bottom_holder").stop().animate({
2759                top: "0px"
2760            }, 150), $j(".content_inner").stop().animate({
2761                marginTop: "0"
2762            }, 150), $scroll < 34 && $j("header.page_header").stop().animate({
2763                top: -$scroll
2764            }, 150), $j(".title.has_fixed_background").animate({
2765                "background-position-y": t - 50 + "px"
2766            }, 150)), $j(window).scroll(function() {
2767                "0" != $j(".qode_search_form").height() && $scroll > 50 && ($j(".qode_search_form").stop().animate({
2768                    height: "0"
2769                }, 150), $j(".header_top_bottom_holder").stop().animate({
2770                    top: "0px"
2771                }, 150), $j(".content_inner").stop().animate({
2772                    marginTop: "0"
2773                }
2773, 150), $j(".title.has_fixed_background").css("backgroundPosition", "center " + t + "px"))
2774            }), $j(".qode_search_close").click(function(e) {
2775                e.preventDefault(), $j(".qode_search_form").stop().animate({
2776                    height: "0"
2777                }, 150), $j(".content_inner").stop().animate({
2778                    marginTop: "0"
2779                }, 150), $j(".header_top_bottom_holder").stop().animate({
2780                    top: "0px"
2781                }, 150), $scroll < 34 && $j("header.page_header").stop().animate({
2782                    top: -$scroll
2783                }, 150), $j(".title.has_fixed_background").animate({
2784                    "background-position-y": t + "px"
2785                }, 150)
2786            })
2787        }
2788    }), $j(".search_slides_from_header_bottom").length && $j(".search_slides_from_header_bottom").click(function(e) {
2789        if (e.preventDefault(), $j(".qode_search_form_2").hasClass("animated")) $j(".qode_search_form_2").removeClass("animated"), $j(".qode_search_form_2").css("bottom", "0");
2790        else {
2791            $j('.qode_search_form input[type="text"]').focus(), $j(".qode_search_form_2").addClass("animated");
2792            var t = $j(".qode_search_form_2").height();
2793            $j(".qode_search_form_2").css("bottom", -t)
2794        }
2795        $j(".qode_search_form_2").addClass("disabled"), $j('.qode_search_form_2 input[type="submit"]').attr("disabled", "disabled"), "" !== $j(".qode_search_form_2 .qode_search_field").val() && " " !== $j(".qode_search_form_2 .qode_search_field").val() ? ($j('.qode_search_form_2 input[type="submit"]').removeAttr("disabled"), $j(".qode_search_form_2").removeClass("disabled")) : ($j(".qode_search_form_2").addClass("disabled"), $j('.qode_search_form_2 input[type="submit"]').attr("disabled", "disabled")), $j(".qode_search_form_2 .qode_search_field").keyup(function() {
2796            "" !== $j(this).val() && " " != $j(this).val() ? ($j('.qode_search_form_2 input[type="submit"]').removeAttr("disabled"), $j(".qode_search_form_2").removeClass("disabled")) : ($j('.qode_search_form_2 input[type="submit"]').attr("disabled", "disabled"), $j(".qode_search_form_2").addClass("disabled"))
2797        }), $j(".content, footer").click(function(e) {
2798            e.preventDefault(), $j(".qode_search_form_2").removeClass("animated"), $j(".qode_search_form_2").css("bottom", "0")
2799        })
2800    }), $j(".search_covers_header").length && $j(".search_covers_header").click(function(e) {
2801        if (e.preventDefault(), $j(".search_covers_only_bottom").length) var t = $j(".header_bottom").height();
2802        else if ($j(".fixed_top_header").length) var t = $j(".top_header").height();
2803        else var t = $j(".header_top_bottom_holder").height();
2804        $j(".qode_search_form_3 .form_holder_outer").height(t), $j(".search_covers_only_bottom").length && ($j(".qode_search_form_3").css("bottom", 0), $j(".qode_search_form_3").css("top", "auto")), $j(".qode_search_form_3").stop(!0).fadeIn(600, "easeOutExpo"), $j('.qode_search_form_3 input[type="text"]').focus(), $j(window).scroll(function() {
2805            if ($j(".search_covers_only_bottom").length) var e = $j(".header_bottom").height();
2806            else if ($j(".fixed_top_header").length) var e = $j(".top_header").height();
2807            else var e = $j(".header_top_bottom_holder").height();
2808            $j(".qode_search_form_3 .form_holder_outer").height(e)
2809        }), $j(".qode_search_close, .content, footer").click(function(e) {
2810            e.preventDefault(), $j(".qode_search_form_3").stop(!0).fadeOut(450, "easeOutExpo")
2811        }), $j(".qode_search_form_3").blur(function(e) {
2812            $j(".qode_search_form_3").stop(!0).fadeOut(450, "easeOutExpo")
2813        })
2814    }), $j(".fullscreen_search").length && ($j(".fullscreen_search_holder.from_circle").length && ($j(".fullscreen_search").on("click", function(e) {
2815        e.preventDefault(), $j(".fullscreen_search_overlay").hasClass("animate") ? ($j(".fullscreen_search_overlay").removeClass("animate"), $j(".fullscreen_search_holder").css("opacity", "0"), $j(".fullscreen_search_close").css("opacity", "0"), $j(".fullscreen_search_close").css("visibility", "hidden"), $j(".fullscreen_search").css("opacity", "1"), $j(".fullscreen_search_holder").css("display", "none")) : ($j(".fullscreen_search_overlay").addClass("animate"), $j(".fullscreen_search_holder").css("display", "block"), setTimeout(function() {
2816            $j(".fullscreen_search_holder").css("opacity", "1"), $j(".fullscreen_search_close").css("opacity", "1"), $j(".fullscreen_search_close").css("visibility", "visible"), $j(".fullscreen_search").css("opacity", "0")
2817        }, 200))
2818    }), $j(".fullscreen_search_close").on("click", function(e) {
2819        e.preventDefault(), $j(".fullscreen_search_overlay").removeClass("animate"), $j(".fullscreen_search_holder").css("opacity", "0"), $j(".fullscreen_search_close").css("opacity", "0"), $j(".fullscreen_search_close").css("visibility", "hidden"), $j(".fullscreen_search").css("opacity", "1"), $j(".fullscreen_search_holder").css("display", "none")
2820    })), $j(".fullscreen_search_holder.fade").length && ($j(".fullscreen_search").on("click", function(e) {
2821        e.preventDefault(), $j(".fullscreen_search_holder").hasClass("animate") ? ($j("body").removeClass("fullscreen_search_opened"), $j(".fullscreen_search_holder").removeClass("animate"), $j("body").removeClass("search_fade_out"), $j("body").removeClass("search_fade_in")) : ($j("body").addClass("fullscreen_search_opened"), $j("body").removeClass("search_fade_out"), $j("body").addClass("search_fade_in"), $j(".fullscreen_search_holder").addClass("animate"))
2822    }), $j(".fullscreen_search_close").on("click", function(e) {
2823        e.preventDefault(), $j("body").removeClass("fullscreen_search_opened"), $j(".fullscreen_search_holder").removeClass("animate"), $j("body").removeClass("search_fade_in"), $j("body").addClass("search_fade_out")
2824    })), $j(".fullscreen_search_holder .search_field").focus(function() {
2825        $j(".fullscreen_search_holder .field_holder .line").css("width", "100%")
2826    }), $j(".fullscreen_search_holder .search_field").blur(function() {
2827        $j(".fullscreen_search_holder .field_holder .line").css("width", "0")
2828    }), $j(window).scroll(function() {
2829        var e = $j(".page_header .header_bottom").height();
2830        $j(".page_header").hasClass("sticky") ? ($j(".fullscreen_search_holder .side_menu_button").css("height", e), $j(".fullscreen_search_holder .close_container").css("top", "0")) : $j(".page_header").hasClass("fixed") ? $j(".fullscreen_search_holder .side_menu_button").css("height", e) : ($j(".fullscreen_search_holder .side_menu_button").css("height", ""), $j(".fullscreen_search_holder .close_container").css("top", ""))
2831    })), $j(".qode_search_submit").length && $j(".qode_search_submit").click(function(e) {
2832        e.preventDefault(), e.stopPropagation(), $j(this).parents("form").first().submit()
2833    })
2834}
2835
2836function updateShoppingCart() {
2837    "use strict";
2838
2839    function e(e, t, i) {
2840        var o = $j(".shopping_cart_header");
2841        if (t["div.widget_shopping_cart_content"]) {
2842            var a = jQuery(t["div.widget_shopping_cart_content"]),
2843                n = a.find(".cart_list"),
2844                s = a.find(".total").contents(":not(strong)").text();
2845            o.find(".shopping_cart_dropdown_inner").html("").append(n), o.find(".total span").html("").append(s)
2846        }
2847    }
2848    $j("body").bind("added_to_cart", e)
2849}
2850
2851function setContentBottomMargin() {
2852    $j(".uncover").length && $j(".content").css("margin-bottom", $j("footer").height())
2853}
2854
2855function footerWidth() {
2856    "use strict";
2857    $j(".uncover").length && $j("body").hasClass("vertical_menu_enabled") && $window_width > 1e3 ? $j(".uncover").width($window_width - $j(".vertical_menu_area").width()) : $j(".uncover").css("width", "100%")
2858}
2859
2860function initCoverBoxes() {
2861    $j(".cover_boxes").length && $j(".cover_boxes").each(function() {
2862        var e = 0,
2863            t = 1;
2864        void 0 !== $j(this).data("active-element") && !1 !== $j(this).data("active-element") && (t = parseFloat($j(this).data("active-element")), e = t - 1);
2865        e = t > 3 ? 0 : e, $j(this).find("li").eq(e).addClass("act");
2866        var i = $j(this);
2867        $j(this).find("li").each(function() {
2868            $j(this).hover(function() {
2869                $j(i).find("li").removeClass("act"), $j(this).addClass("act")
2870            })
2871        })
2872    })
2873}
2874
2875function createContentMenu() {
2876    "use strict";
2877    $j(".content_menu").each(function() {
2878        if (0 === $j(this).find("ul").length) {
2879            if ("" !== $j(this).css("background-color")) var e = $j(this).css("background-color");
2880            var t = $j("<ul class='menu'></ul>");
2881            t.appendTo($j(this));
2882            var i = $j(this).siblings(".in_content_menu");
2883            i.length && i.each(function() {
2884                var i, o = $j(this).data("q_id"),
2885                    a = $j(this).data("q_title"),
2886                    n = $j(this).data("q_icon"),
2887                    s = $j("<li />"),
2888                    r = $j("<i />", {
2889                        class: "fa " + n
2890                    }),
2891                    d = $j("<a />", {
2892                        href: o,
2893                        html: "<span>" + a + "</span>"
2894                    });
2895                i = "" !== e ? $j("<div />", {
2896                    class: "arrow",
2897                    style: "border-color: " + e + " transparent transparent transparent"
2898                }) : $j("<div />", {
2899                    class: "arrow"
2900                }), r.prependTo(d), d.appendTo(s), i.appendTo(s), s.appendTo(t)
2901            })
2902        }
2903    })
2904}
2905
2906function createSelectContentMenu() {
2907    "use strict";
2908    $j(".content_menu").each(function() {
2909        var e = $j(this),
2910            t = $j("<ul></ul>");
2911        t.appendTo($j(this).find(".nav_select_menu")), $j(this).find("ul.menu li a").each(function() {
2912            var e = $j(this).attr("href"),
2913                i = $j(this).text(),
2914                o = $j(this).find("i").clone();
2915            2 === $j(this).parents("li").length && (i = "&nbsp;&nbsp;&nbsp;" + i), 3 === $j(this).parents("li").length && (i = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" + i), $j(this).parents("li").length > 3 && (i = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" + i);
2916            var a = $j("<li />"),
2917                n = $j("<a />", {
2918                    href: e,
2919                    html: i
2920                });
2921            o.prependTo(n), n.appendTo(a), a.appendTo(t)
2922        }), e.find(".nav_select_button").on("click", function() {
2923            return e.find(".nav_select_menu ul").is(":visible") ? e.find(".nav_select_menu ul").slideUp() : e.find(".nav_select_menu ul").slideDown(), !1
2924        }), e.find(".nav_select_menu ul li a").on("click", function() {
2925            e.find(".nav_select_menu ul").slideUp();
2926            var t = $j(this),
2927                i = t.attr("href"),
2928                o = $j("div.wpb_row[data-q_id='" + i + "'],section.parallax_section_holder[data-q_id='" + i + "']").offset().top;
2929            return $j("html,body").stop().animate({
2930                scrollTop: o
2931            }, 500, "swing", function() {
2932                $j("nav.content_menu ul li").removeClass("active"), t.parent().addClass("active")
2933            }), !1
2934        })
2935    })
2936}
2937
2938function contentMenuPosition() {
2939    "use strict";
2940    if ($j("nav.content_menu").length) {
2941        if (content_menu_position > sticky_amount) var e = min_header_height_sticky;
2942        else var e = 0;
2943        content_menu_position - e - content_menu_top_add - $scroll <= 0 && ($j("header").hasClass("stick") || $j("header").hasClass("stick_with_left_right_menu")) ? (content_menu_position < sticky_amount ? $scroll > sticky_amount ? $j("nav.content_menu").css({
2944            position: "fixed",
2945            top: min_header_height_sticky + content_menu_top_add
2946        }).addClass("fixed") : $j("nav.content_menu").css({
2947            position: "fixed",
2948            top: 0,
2949            transition: "none"
2950        }).addClass("fixed") : $j("nav.content_menu").css({
2951            position: "fixed",
2952            top: min_header_height_sticky + content_menu_top_add
2953        }).addClass("fixed"), $j("header.sticky").addClass("no_shadow"), $j(".content > .content_inner > .container > .container_inner").css("margin-top", content_line_height), $j(".content > .content_inner > .full_width").css("margin-top", content_line_height)) : content_menu_position - content_menu_top - content_menu_top_add - $scroll <= 0 && !$j("header").hasClass("stick") ? ($j("nav.content_menu").css({
2954            position: "fixed",
2955            top: content_menu_top + content_menu_top_add
2956        }).addClass("fixed"), $j(".content > .content_inner > .container > .container_inner").css("margin-top", content_line_height), $j(".content > .content_inner > .full_width").css("margin-top", content_line_height)) : ($j("nav.content_menu").css({
2957            position: "relative",
2958            top: "0px"
2959        }).removeClass("fixed"), $j("header.sticky").removeClass("no_shadow"), $j(".content > .content_inner > .container > .container_inner").css("margin-top", "0px"), $j(".content > .content_inner > .full_width").css("margin-top", "0px")), $j(".content .in_content_menu").waypoint(function(e) {
2960            var t = $j(this),
2961                i = t.data("q_id");
2962            $j("nav.content_menu.fixed li a").each(function() {
2963                $j(this).attr("href") === i ? $j(this).parent().addClass("active") : $j(this).parent().removeClass("active")
2964            })
2965        }, {
2966            offset: "150"
2967        })
2968    }
2969}
2970
2971function contentMenuCheckLastSection() {
2972    "use strict";
2973    if ($j("nav.content_menu").length && $j(".content .in_content_menu").length) {
2974        var e = $j(".content .in_content_menu:last").offset().top + $j(".content .in_content_menu:last").height(),
2975            t = $j(".content .in_content_menu:first").offset().top - content_menu_top - content_menu_top_add - 100;
2976        e < $scroll && $j("nav.content_menu.fixed li").removeClass("active"), t > $scroll && $j("nav.content_menu li:first, nav.content_menu ul.menu li:first").removeClass("active")
2977    }
2978}
2979
2980function contentMenuScrollTo() {
2981    "use strict";
2982    $j("nav.content_menu").length && $j("nav.content_menu ul.menu li a").on("click", function(e) {
2983        e.preventDefault();
2984        var t = $j(this);
2985        if ($j(this).parent().hasClass("active")) return !1;
2986        var i = t.attr("href"),
2987            o = $j("div.wpb_row[data-q_id='" + i + "'],section.parallax_section_holder[data-q_id='" + i + "']").offset().top - content_line_height - content_menu_top - content_menu_top_add;
2988        return $j("html,body").stop().animate({
2989            scrollTop: o
2990        }, 500, "swing", function() {
2991            $j("nav.content_menu ul li").removeClass("active"), t.parent().addClass("active")
2992        }), !1
2993    })
2994}
2995
2996function initButtonHover() {
2997    $j(".qbutton").length && $j(".qbutton").each(function() {
2998        if (void 0 !== $j(this).data("hover-background-color") && !1 !== $j(this).data("hover-background-color")) {
2999            var e = $j(this).data("hover-background-color"),
3000                t = $j(this).css("background-color");
3001            $j(this).hover(function() {
3002                $j(this).css("background-color", e)
3003            }, function() {
3004                $j(this).css("background-color", t)
3005            })
3006        }
3007        if (void 0 !== $j(this).data("hover-border-color") && !1 !== $j(this).data("hover-border-color")) {
3008            var i = $j(this).data("hover-border-color"),
3009                o = $j(this).css("border-top-color");
3010            $j(this).hover(function() {
3011                $j(this).css("border-color", i)
3012            }, function() {
3013                $j(this).css("border-color", o)
3014            })
3015        }
3016        if (void 0 !== $j(this).data("hover-color") && !1 !== $j(this).data("hover-color")) {
3017            var a = $j(this).data("hover-color"),
3018                n = $j(this).css("color");
3019            $j(this).hover(function() {
3020                $j(this).css("color", a)
3021            }, function() {
3022                $j(this).css("color", n)
3023            })
3024        }
3025    })
3026}
3027
3028function initEnlargeButton() {
3029    $j(".qbutton.enlarge").length && $j(".qbutton.enlarge").each(function() {
3030        var e = $j(this),
3031            t = parseInt(e.css("padding-left")),
3032            i = Math.floor(t / 100 * 20);
3033        e.mouseenter(function() {
3034            e.css({
3035                "padding-left": t + i
3036            }), e.css({
3037                "padding-right": t + i
3038            })
3039        }), e.mouseleave(function() {
3040            e.css({
3041                "padding-left": t
3042            }), e.css({
3043                "padding-right": t
3044            })
3045        })
3046    })
3047}
3048
3049function initSocialIconHover() {
3050    $j(".q_social_icon_holder").length && $j(".q_social_icon_holder").each(function() {
3051        if (void 0 !== $j(this).data("hover-background-color") && !1 !== $j(this).data("hover-background-color")) {
3052            var e = $j(this).data("hover-background-color"),
3053                t = $j(this).find(".fa-stack").css("background-color");
3054            $j(this).find(".fa-stack").hover(function() {
3055                $j(this).css("background-color", e)
3056            }, function() {
3057                $j(this).css("background-color", t)
3058            })
3059        }
3060        if (void 0 !== $j(this).data("hover-border-color") && !1 !== $j(this).data("hover-border-color")) {
3061            var i = $j(this).data("hover-border-color"),
3062                o = $j(this).find(".fa-stack").css("border-top-color");
3063            $j(this).find(".fa-stack").hover(function() {
3064                $j(this).css("border-color", i)
3065            }, function() {
3066                $j(this).css("border-color", o)
3067            })
3068        }
3069        if (void 0 !== $j(this).data("hover-color") && !1 !== $j(this).data("hover-color")) {
3070            var a, n, s = $j(this).data("hover-color");
3071            $j(this).find(".fa-stack i, .fa-stack span").length ? (a = void 0 !== $j(this).data("c
3071olor") ? $j(this).data("color") : $j(this).find(".fa-stack i, .fa-stack span").css("color"), n = $j(this).find(".fa-stack i, .fa-stack span").attr("style")) : $j(this).find(".simple_social").length && (a = void 0 !== $j(this).data("color") ? $j(this).data("color") : $j(this).find(".simple_social").css("color"), n = $j(this).find(".simple_social").attr("style")), $j(this).find(".fa-stack").length ? $j(this).find(".fa-stack").hover(function() {
3072                $j(this).find("i, span").attr("style", function(e, t) {
3073                    return n + "color: " + s + "!important;"
3074                })
3075            }, function() {
3076                $j(this).find("i, span").attr("style", function(e, t) {
3077                    return n + "color: " + a + ";"
3078                })
3079            }) : $j(this).find(".simple_social").length && $j(this).find(".simple_social").hover(function() {
3080                $j(this).attr("style", function(e, t) {
3081                    return n + "color: " + s + "!important;"
3082                })
3083            }, function() {
3084                $j(this).attr("style", function(e, t) {
3085                    return n + "color: " + a + ";"
3086                })
3087            })
3088        }
3089    })
3090}
3091
3092function initTabsActiveBorder() {
3093    $j(".q_tabs.vertical, .q_tabs.boxed").length && $j(".q_tabs.vertical, .q_tabs.boxed").each(function() {
3094        var e = getParentBackgroundColor($j(this)),
3095            t = $j(this).find("li.active a");
3096        $j(this).hasClass("boxed") && t.css("border-bottom-color", e), $j(this).hasClass("left") && t.css("border-right-color", e), $j(this).hasClass("right") && t.css("border-left-color", e)
3097    })
3098}
3099
3100function getParentBackgroundColor(e) {
3101    return e.parents().filter(function() {
3102        var e = $j(this).css("background-color");
3103        return "transparent" != e && "rgba(0, 0, 0, 0)" != e
3104    }).eq(0).css("background-color")
3105}
3106
3107function setActiveTabBorder() {
3108    $j(".q_tabs li.active").length && $j(this).click(function() {
3109        initTabsActiveBorder()
3110    })
3111}
3112
3113function initPopupMenu() {
3114    "use strict";
3115    $j("a.popup_menu").length && ($j(".popup_menu_holder_outer").height($window_height).niceScroll({
3116        scrollspeed: 30,
3117        mousescrollstep: 20,
3118        cursorwidth: 0,
3119        cursorborder: 0,
3120        cursorborderradius: 0,
3121        cursorcolor: "transparent",
3122        autohidemode: !1,
3123        horizrailenabled: !1
3124    }), ($j("body").hasClass("qode_popup_menu_push_text_right") || $j("body").hasClass("qode_popup_menu_push_text_top")) && ($j(".popup_menu_holder_outer nav > ul > li > a").each(function(e) {
3125        $j(this).css({
3126            "-webkit-animation-delay": 70 * e + "ms",
3127            "animation-delay": 70 * e + "ms"
3128        })
3129    }), $j(".popup_menu_widget_holder > div").css({
3130        "-webkit-animation-delay": 70 * ($j(".popup_menu_holder_outer nav > ul > li > a").length + 1) + "ms",
3131        "animation-delay": 70 * ($j(".popup_menu_holder_outer nav > ul > li > a").length + 1) + "ms"
3132    })), $j(window).resize(function() {
3133        $j(".popup_menu_holder_outer").height($window_height)
3134    }), $j("a.popup_menu").on("click", function(e) {
3135        e.preventDefault(), $j(this).hasClass("opened") ? ($j(this).removeClass("opened"), $j("body").removeClass("popup_menu_opened"), ($j(this).hasClass("qode_popup_menu_push_text_right") || $j(this).hasClass("qode_popup_menu_push_text_top") || $j(this).hasClass("qode_popup_menu_text_scaledown")) && $j("body").removeClass("qode_popup_menu_fade_in").addClass("qode_popup_menu_fade_out"), $j(this).hasClass("qode_popup_menu_push_text_right") ? $j("body").addClass("qode_popup_menu_push_nav_right") : $j(this).hasClass("qode_popup_menu_push_text_top") && $j("body").addClass("qode_popup_menu_push_nav_top"), setTimeout(function() {
3136            $j("body").hasClass("page-template-full_screen-php") || $j("body").css("overflow", "visible"), $j("nav.popup_menu ul.sub_menu").slideUp(200, function() {
3137                $j("nav.popup_menu").getNiceScroll().resize()
3138            })
3139        }, 400)) : ($j(this).addClass("opened"), $j("body").addClass("popup_menu_opened"), $j(this).hasClass("qode_popup_menu_push_text_right") ? ($j("body").addClass("qode_popup_menu_fade_in").removeClass("qode_popup_menu_fade_out"), $j("body").removeClass("qode_popup_menu_push_nav_right")) : $j(this).hasClass("qode_popup_menu_push_text_top") ? ($j("body").addClass("qode_popup_menu_fade_in").removeClass("qode_popup_menu_fade_out"), $j("body").removeClass("qode_popup_menu_push_nav_top")) : $j(this).hasClass("qode_popup_menu_text_scaledown") && $j("body").addClass("qode_popup_menu_fade_in").removeClass("qode_popup_menu_fade_out"), setTimeout(function() {
3140            $j("body").hasClass("page-template-full_screen-php") || $j("body").css("overflow", "hidden")
3141        }, 400))
3142    }), $j(".popup_menu > ul > li.has_sub > a, .popup_menu > ul > li.has_sub > h6").on("tap click", function(e) {
3143        return e.preventDefault(), $j(this).closest("li.has_sub").find("> ul.sub_menu").is(":visible") ? ($j(this).closest("li.has_sub").find("> ul.sub_menu").slideUp(200, function() {
3144            $j(".popup_menu_holder_outer").getNiceScroll().resize()
3145        }), $j(this).closest("li.has_sub").removeClass("open_sub")) : ($j(this).closest("li.has_sub").addClass("open_sub"), $j(this).closest("li.has_sub").find("> ul.sub_menu").slideDown(200, function() {
3146            $j(".popup_menu_holder_outer").getNiceScroll().resize()
3147        })), !1
3148    }), $j(".popup_menu ul li:not(.has_sub) a").click(function() {
3149        if ("http://#" === $j(this).attr("href") || "#" === $j(this).attr("href")) return !1;
3150        $j("a.popup_menu").removeClass("opened"), $j("body").removeClass("popup_menu_opened").css("overflow", "visible"), $j("nav.popup_menu ul.sub_menu").slideUp(200, function() {
3151            $j("nav.popup_menu").getNiceScroll().resize()
3152        })
3153    }))
3154}
3155
3156function initFullScreenTemplate() {
3157    "use strict";
3158    if ($j(".full_screen_holder").length && $window_width > 600) {
3159        var e = "";
3160        e = $j("header.page_header").hasClass("light") ? "light" : $j("header.page_header").hasClass("dark") ? "dark" : header_style_admin, $j(".full_screen_preloader").css("height", $window_height), $j("#up_fs_button").on("click", function() {
3161            return $j.fn.fullpage.moveSectionUp(), !1
3162        }), $j("#down_fs_button").on("click", function() {
3163            return $j.fn.fullpage.moveSectionDown(), !1
3164        });
3165        var t = $j(".full_screen_inner > .full_screen_section").length;
3166        $j(".full_screen_inner").fullpage({
3167            sectionSelector: ".full_screen_section",
3168            scrollOverflow: !0,
3169            afterLoad: function(i, o) {
3170                checkActiveArrowsOnFullScrrenTemplate(t, o), checkFullScreenSectionsForHeaderStyle(o, e)
3171            },
3172            afterRender: function() {
3173                checkActiveArrowsOnFullScrrenTemplate(t, 1), checkFullScreenSectionsForHeaderStyle(1, e), 1 !== t && $j(".full_screen_holder").find(".full_screen_navigation_holder").css("visibility", "visible"), $j(".full_screen_holder").find(".full_screen_inner").css("visibility", "visible"), $j(".full_screen_preloader").hide(), $j(".full_screen_holder video.full_screen_sections_video").length && $j(".full_screen_holder video.full_screen_sections_video").each(function() {
3174                    $j(this).get(0).play()
3175                })
3176            }
3177        })
3178    }
3179}
3180
3181function checkActiveArrowsOnFullScrrenTemplate(e, t) {
3182    "use strict";
3183    1 === t ? ($j(".full_screen_navigation_holder #up_fs_button").hide(), t != e && $j(".full_screen_navigation_holder #down_fs_button").show()) : t === e ? (2 === e && $j(".full_screen_navigation_holder #up_fs_button").show(), $j(".full_screen_navigation_holder #down_fs_button").hide()) : ($j(".full_screen_navigation_holder #up_fs_button").show(), $j(".full_screen_navigation_holder #down_fs_button").show())
3184}
3185
3186function checkFullScreenSectionsForHeaderStyle(e, t) {
3187    "use strict";
3188    if ($j("[data-q_header_style]").length > 0 && $j("header").hasClass("header_style_on_scroll"))
3189        if (void 0 !== $j($j(".full_screen_holder .full_screen_inner .full_screen_section")[e - 1]).data("q_header_style")) {
3190            var i = $j($j(".full_screen_holder .full_screen_inner .full_screen_section")[e - 1]).data("q_header_style");
3191            $j("header").removeClass("dark light").addClass(i)
3192        } else $j("header").removeClass("dark light").addClass(t)
3193}
3194
3195function checkHeaderStyleOnScroll() {
3196    "use strict";
3197    if ($j("[data-q_header_style]").length > 0 && $j("header").hasClass("header_style_on_scroll")) {
3198        var e = "";
3199        e = $j("header.page_header").hasClass("light") ? "light" : $j("header.page_header").hasClass("dark") ? "dark" : header_style_admin;
3200        var t = $j("body").hasClass("paspartu_on_top_fixed") ? Math.round($window_width * paspartu_width) : 0,
3201            i = $j("body").hasClass("paspartu_on_bottom_fixed") ? Math.round($window_width * paspartu_width) : 0;
3202        $j(".full_width_inner > .wpb_row.section, .full_width_inner > .parallax_section_holder, .container_inner > .wpb_row.section, .container_inner > .parallax_section_holder, .portfolio_single > .wpb_row.section").waypoint(function(t) {
3203            if ("down" === t)
3204                if (void 0 !== $j(this).data("q_header_style")) {
3205                    var i = $j(this).data("q_header_style");
3206                    $j("header").removeClass("dark light").addClass(i)
3207                } else $j("header").removeClass("dark light").addClass(e)
3208        }, {
3209            offset: 0 + t
3210        }
3210), $j(".title, .full_width_inner > .wpb_row.section, .full_width_inner > .parallax_section_holder, .container_inner > .wpb_row.section, .container_inner > .parallax_section_holder, .portfolio_single > .wpb_row.section, .q_slider").waypoint(function(t) {
3211            if ("up" === t)
3212                if (void 0 !== $j(this).data("q_header_style")) {
3213                    var i = $j(this).data("q_header_style");
3214                    $j("header").removeClass("dark light").addClass(i)
3215                } else $j("header").removeClass("dark light").addClass(e)
3216        }, {
3217            offset: function() {
3218                return -$j(this).outerHeight() + i
3219            }
3220        })
3221    }
3222}
3223
3224function initImageGallerySliderNoSpace() {
3225    $j(".qode_image_gallery_no_space").length && ($j(".qode_image_gallery_no_space").each(function() {
3226        $j(this).animate({
3227            opacity: 1
3228        }, 1e3), $j(this).find(".qode_image_gallery_holder").lemmonSlider({
3229            infinite: !0
3230        })
3231    }), $j(".qode_image_gallery_no_space").on("click", "li:not(.active) a", function() {
3232        return !(window.innerWidth > 800)
3233    }))
3234}
3235
3236function initVerticalSplitSlider() {
3237    "use strict";
3238    if ($j("html").hasClass("vertical_split_screen_initalized") && ($j("html").removeClass("vertical_split_screen_initalized"), $j.fn.multiscroll.destroy()), $j(".vertical_split_slider").length) {
3239        var e = "";
3240        e = $j("header.page_header").hasClass("light") ? "light" : $j("header.page_header").hasClass("dark") ? "dark" : header_style_admin;
3241        var t = $j(".vertical_split_slider").data("disable-header-skin-change");
3242        if ($j(".vertical_split_slider").height($window_height).animate({
3243            opacity: 1
3244        }, 300), $j(".vertical_split_slider").multiscroll({
3245            scrollingSpeed: 500,
3246            navigation: !0,
3247            afterRender: function() {
3248                checkVerticalSplitSectionsForHeaderStyle($j(".ms-right .ms-section:last-child").data("header_style"), e, t), $j("html").addClass("vertical_split_screen_initalized"), initButtonHover();
3249                var i = $j("div.wpcf7 > form");
3250                if (i.length && i.each(function() {
3251                    var e = $j(this);
3252                    e.find(".wpcf7-submit").off().on("click", function(t) {
3253                        t.preventDefault(), wpcf7.submit(e)
3254                    })
3255                }), $j("body").hasClass("vss_responsive_adv")) {
3256                    var o = $j("<div class='vertical_split_slider_responsive' />");
3257                    $j(".vertical_split_slider").after(o);
3258                    for (var a = $j(".vertical_split_slider .ms-left > div"), n = $j(".vertical_split_slider .ms-right > div"), s = 0; s < a.length; s++) o.append($j(a[s]).clone(!0)), o.append($j(n[a.length - 1 - s]).clone(!0));
3259                    $j(".vertical_split_slider_responsive .qode_google_map").length && $j(".vertical_split_slider_responsive .qode_google_map").each(function() {
3260                        var e = $j(this);
3261                        e.empty();
3262                        var t = Math.floor(1e5 * Math.random() + 1);
3263                        e.attr("id", "map_canvas_" + t), e.data("unique-id", t)
3264                    })
3265                }
3266                initProgressBars(), initCountdown(), showGoogleMap()
3267            },
3268            onLeave: function(i, o, a) {
3269                checkVerticalSplitSectionsForHeaderStyle($j($j(".ms-right .ms-section")[$j(".ms-right .ms-section").length - o]).data("header_style"), e, t)
3270            }
3271        }), $j("body").hasClass("vss_responsive_adv")) {
3272            var i = 768;
3273            $j("body").hasClass("vss_width_1000") && (i = 1e3), $j("body").hasClass("vss_width_600") && (i = 600), $window_width < i ? ($j.fn.multiscroll.destroy(), $j("html,body").css("height", "auto").css("overflow", "auto")) : ($j.fn.multiscroll.build(), $j("html,body").css("height", "100%").css("overflow", "hidden")), $j(window).resize(function() {
3274                $window_width < i ? ($j.fn.multiscroll.destroy(), $j("html,body").css("height", "auto").css("overflow", "auto")) : ($j.fn.multiscroll.build(), $j("html,body").css("height", "100%").css("overflow", "hidden"))
3275            })
3276        }
3277    } else $j(".full_screen_holder").length || $j("html,body").css("height", "auto").css("overflow", "auto")
3278}
3279
3280function checkVerticalSplitSectionsForHeaderStyle(e, t, i) {
3281    "use strict";
3282    "" != e ? ("no" == i && $j("header.page_header").removeClass("dark light").addClass(e), $j("#multiscroll-nav").removeClass("dark light").addClass(e)) : ("no" == i && $j("header.page_header").removeClass("dark light").addClass(t), $j("#multiscroll-nav").removeClass("dark light").addClass(t))
3283}
3284
3285function showGoogleMap() {
3286    "use strict";
3287    $j(".qode_google_map").length && $j(".qode_google_map").each(function() {
3288        var e = !1,
3289            t = "";
3290        if (void 0 !== $j(this).data("snazzy-map-style") && "yes" === $j(this).data("snazzy-map-style")) {
3291            e = !0;
3292            var i = $j(this).parent().find(".qode-snazzy-map"),
3293                o = i.val();
3294            i.length && o.length && (t = JSON.parse(o.replace(/`{`/g, "[").replace(/`}`/g, "]").replace(/``/g, '"').replace(/`/g, "")))
3295        }
3296        var a;
3297        void 0 !== $j(this).data("custom-map-style") && (a = $j(this).data("custom-map-style"));
3298        var n;
3299        void 0 !== $j(this).data("color-overlay") && !1 !== $j(this).data("color-overlay") && (n = $j(this).data("color-overlay"));
3300        var s;
3301        void 0 !== $j(this).data("saturation") && !1 !== $j(this).data("saturation") && (s = $j(this).data("saturation"));
3302        var r;
3303        void 0 !== $j(this).data("lightness") && !1 !== $j(this).data("lightness") && (r = $j(this).data("lightness"));
3304        var d;
3305        void 0 !== $j(this).data("zoom") && !1 !== $j(this).data("zoom") && (d = $j(this).data("zoom"));
3306        var l;
3307        void 0 !== $j(this).data("pin") && !1 !== $j(this).data("pin") && (l = $j(this).data("pin"));
3308        var c;
3309        void 0 !== $j(this).data("map-height") && !1 !== $j(this).data("map-height") && (c = $j(this).data("map-height"));
3310        var h;
3311        void 0 !== $j(this).data("unique-id") && !1 !== $j(this).data("unique-id") && (h = $j(this).data("unique-id"));
3312        var _;
3313        void 0 !== $j(this).data("google-maps-scroll-wheel") && (_ = $j(this).data("google-maps-scroll-wheel"));
3314        var u;
3315        void 0 !== $j(this).data("addresses") && !1 !== $j(this).data("addresses") && (u = $j(this).data("addresses")), initializeGoogleMap(e, t, a, n, s, r, _, d, "map_canvas_" + h, c, l, "map_" + h, "geocoder_" + h, u)
3316    })
3317}
3318
3319function initializeGoogleMap(e, t, i, o, a, n, s, r, d, l, c, h, _, u) {
3320    "use strict";
3321    if ("undefined" != typeof google) {
3322        var f = [];
3323        f = e && t.length ? t : [{
3324            stylers: [{
3325                hue: o
3326            }, {
3327                saturation: a
3328            }, {
3329                lightness: n
3330            }, {
3331                gamma: 1
3332            }]
3333        }];
3334        var p;
3335        p = e || i ? "qode_style" : google.maps.MapTypeId.ROADMAP;
3336        var g = new google.maps.StyledMapType(f, {
3337            name: "Qode Google Map"
3338        });
3339        _ = new google.maps.Geocoder;
3340        var m = new google.maps.LatLng(-34.397, 150.644),
3341            $ = {
3342                zoom: r,
3343                scrollwheel: s,
3344                center: m,
3345                zoomControl: !0,
3346                zoomControlOptions: {
3347                    style: google.maps.ZoomControlStyle.SMALL,
3348                    position: google.maps.ControlPosition.RIGHT_CENTER
3349                },
3350                scaleControl: !1,
3351                scaleControlOptions: {
3352                    position: google.maps.ControlPosition.LEFT_CENTER
3353                },
3354                streetViewControl: !1,
3355                streetViewControlOptions: {
3356                    position: google.maps.ControlPosition.LEFT_CENTER
3357                },
3358                panControl: !1,
3359                panControlOptions: {
3360                    position: google.maps.ControlPosition.LEFT_CENTER
3361                },
3362                mapTypeControl: !1,
3363                mapTypeControlOptions: {
3364                    mapTypeIds: [google.maps.MapTypeId.ROADMAP, "qode_style"],
3365                    style: google.maps.MapTypeControlStyle.HORIZONTAL_BAR,
3366                    position: google.maps.ControlPosition.LEFT_CENTER
3367                },
3368                mapTypeId: p
3369            };
3370        h = new google.maps.Map(document.getElementById(d), $), h.mapTypes.set("qode_style", g);
3371        var v;
3372        for (v = 0; v < u.length; ++v) initializeGoogleAddress(u[v], c, h, _);
3373        document.getElementById(d).style.height = l, isNaN(l) || (l += "px")
3374    }
3375}
3376
3377function initializeGoogleAddress(e, t, i, o) {
3378    "use strict";
3379    if ("" !== e) {
3380        var a = '<div class="content_map"><div class="site_notice_map"></div><div class="body_content_map"><p>' + e + "</p></div></div>",
3381            n = new google.maps.InfoWindow({
3382                content: a
3383            });
3384        o.geocode({
3385            address: e
3386        }, function(o, a) {
3387            if (a === google.maps.GeocoderStatus.OK) {
3388                i.setCenter(o[0].geometry.location);
3389                var s = new google.maps.Marker({
3390                    map: i,
3391                    position: o[0].geometry.location,
3392                    icon: t,
3393                    title: e.store_title
3394                });
3395                google.maps.event.addListener(s, "click", function() {
3396                    n.open(i, s)
3397                }), google.maps.event.addDomListener(window, "resize", function() {
3398                    i.setCenter(o[0].geometry.location)
3399                })
3400            }
3401        })
3402    }
3403}
3404
3405function initHorizontalMarquee() {
3406    "use strict";
3407    $j(".qode-horizontal-marquee").each(function() {
3408        var e, t, i, o, a = function() {
3409                o = d.width(), i = 0, h.find("> .qode-hm-item").css("margin", 0), d.height(Math.min($window_height, c)), h.find("> .qode-hm-item").each(function() {
3410                    $j(this).css("max-width", o), i += $j(this).outerWidth() + l
3411                }), i -= l, h.width(i).css("left", 0), h.find("> .qode-hm-item").css("margin-right", l + "px")
3412            },
3413            n = function(i) {
3414                i = void 0 !== i.originalEvent ? i.originalEvent : i, i = "touchstart" == i.type ? i.touches[0] : i, e = {
3415                    x: i.clientX,
3416                    y: i.clientY
3417                }, t = parseInt(h.css("left"), 10), h.addClass("qode-dragged")
3418            },
3419            s = function(e) {
3420                h.removeClass("qode-dragged")
3421            },
3422            r = function(a) {
3423                a = void 0 !== a.originalEvent ? a.originalEvent : a;
3424                var n = a.type;
3425                a = "touchmove" == n ? a.touches[0] : a;
3426                var s = {
3427                    x: a.clientX,
3428                    y: a.clientY
3429                };
3430                ("touchmove" == n || "mousemove" == n && h.is(".qode-dragged")) && h.css({
3431                    left: Math.max(-i + o, Math.min(t + (s.x - e.x), 0)) + "px"
3432                })
3433            },
3434            d = $j(this),
3435            l = void 0 !== d.data("spacing") ? d.data("spacing") : 0,
3436            c = void 0 !== d.data("height") ? d.data("height") : 0,
3437            h = d.find(".qode-horizontal-marquee-inner");
3438        a(), $j(window).resize(a), h.find("img").on("dragstart", function(e) {
3439            e.preventDefault()
3440        }), d.hasClass("qode-loop") || (h.on("mousedown touchstart", n), h.on("mousemove touchmove", r), h.on("mouseup touchend mouseleave", s))
3441    })
3442}
3443
3444function qodeHorizontalMarqueeLoop() {
3445    var e = $j(".qode-horizontal-marquee.qode-loop");
3446    e.length && e.each(function() {
3447        var e = $j(this);
3448        e.find(".qode-horizontal-marquee-inner").clone().appendTo(e);
3449        var t = e.find(".qode-horizontal-marquee-inner"),
3450            i = t.first(),
3451            o = t.last(),
3452            a = function() {
3453                var a, n, s = "" !== e.data("spacing") ? e.data("spacing") : 0,
3454                    r = function() {
3455                        n = i.width() + s, a = 0, i.css({
3456                            left: 0
3457                        }), o.css({
3458                            width: n,
3459                            left: n
3460                        })
3461                    };
3462                r(), qodeRequestAnimationFrame(), e.hasClass("qode-appear-fx") && e.addClass("qode-appeared"), t.each(function(e) {
3463                    var t = $j(this),
3464                        s = function() {
3465                            a -= 1, t.position().left <= -n && (t.css("left", parseInt(n - 1)), a = 0), t.css({
3466                                transform: "translate3d(" + 1 * a + "px,0,0)"
3467                            }), Math.abs(i.position().left - o.position().left) < n - 1 && r(), requestNextAnimationFrame(s)
3468                        };
3469                    s()
3470                }), $j(window).resize(function() {
3471                    setTimeout(function() {
3472                        r()
3473                    }, 200)
3474                })
3475            };
3476        e.waitForImages(function() {
3477            a()
3478        })
3479    })
3480}
3481
3482function initTextMarquee() {
3483    "use strict";
3484    var e = $j(".qode-text-marquee");
3485    e.length && e.each(function() {
3486        var e = $j(this);
3487        $j("html").hasClass("touch") || e.find(".qode-text-marquee-wrapper").clone().appendTo(e);
3488        var t = e.find(".qode-text-marquee-wrapper"),
3489            i = e.find(".qode-text-marquee-title");
3490        $j("html").hasClass("touch") || t.each(function() {
3491            for (var e = $j(this), t = e.find(".qode-text-marquee-title"), i = t.html().split(" "), o = i.length, a = [], n = 0; n < o; n++) a[n] = '<span class="qode-inner-text">' + i[n] + "</span>";
3492            t.html(a.join("")), t.find(".qode-inner-text").css({
3493                display: "inline-block",
3494                "margin-right": "40px"
3495            })
3496        }), i.stretch(), t.eq(1).addClass("qode-marquee-additional-title"), i.css("visibility", "visible");
3497        var o = function() {
3498            i.unwrap(".stretch--resizer"), i.unwrap(".stretch--handle"), i.stretch()
3499        };
3500        if ($j("html").hasClass("touch")) $j(window).resize(function() {
3501            o()
3502        });
3503        else {
3504            qodeRequestAnimationFrame();
3505            var a = t.first(),
3506                n = a.offset().left,
3507                s = t.last(),
3508                r = !1;
3509            s.offset({
3510                left: n - $j(window).width()
3511            }), t.each(function() {
3512                var e = $j(this),
3513                    t = e.offset().left,
3514                    a = 0,
3515                    n = function() {
3516                        r = !1, a += 2, e.offset().left > $j(window).width() && (a = -($j(window).width() + t)), e.css("transform", "translate3d(" + a + "px,0,0)"), requestAnimFrame(n), $j(window).resize(function() {
3517                            r || (o(), a = 0, s.offset({
3518                                left: -i.first().width()
3519                            }), r = !0)
3520                        })
3521                    };
3522                n()
3523            })
3524        }
3525    })
3526}
3527
3528function qodeRequestAnimationFrame() {
3529    $j("html").hasClass("touch") || window.requestAnimFrame || (window.requestAnimFrame = function() {
3530        return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function(e, t) {
3531            window.setTimeout(e, 1e3 / 60)
3532        }
3533    }())
3534}
3535
3536function initExpandingImages() {
3537    var e = $j(".qode-expanding-images");
3538    e.length && e.each(function() {
3539        var e = $j(this);
3540        (getIEversion() > 0 && e.addClass("qode-ie-specific"), $j("html").hasClass("touch")) || skrollr.init({
3541            edgeStrategy: "set",
3542            smoothScrolling: !1,
3543            forceHeight: !1
3544        }).refresh()
3545    })
3546}
3547
3548function initItemShowcase() {
3549    var e = $j(".qode-item-showcase");
3550    e.length && e.each(function() {
3551        function e(e) {
3552            t.find(e).each(function(e) {
3553                var t = $j(this);
3554                setTimeout(function() {
3555                    t.addClass("qode-appeared")
3556                }, 150 * e)
3557            })
3558        }
3559        var t = $j(this),
3560            i = t.find(".qode-item-left"),
3561            o = t.find(".qode-item-right"),
3562            a = t.find(".qode-item-image");
3563        i.wrapAll("<div class='qode-item-showcase-holder qode-holder-left' />"), o.wrapAll("<div class='qode-item-showcase-holder qode-holder-right' />"), t.find(".qode-item-showcase-holder").append("<span class='qode-item-line'></span>");
3564        var n = $j(".qode-item-line");
3565        $j("html").hasClass("touch") ? n.each(function() {
3566            var e = $j(this),
3567                t = e.closest(".qode-item-showcase-holder"),
3568                i = t.height() - t.find(".qode-item").last().height();
3569            e.css("height", i), e.css("opacity", 1)
3570        }) : (t.animate({
3571            opacity: 1
3572        }, 200), setTimeout(function() {
3573            t.appear(function() {
3574                a.addClass("qode-appeared"), n.each(function() {
3575                    var e = $j(this),
3576                        t = e.closest(".qode-item-showcase-holder"),
3577                        i = t.height() - t.find(".qode-item").last().height();
3578                    e.css("height", i), e.css("opacity", 1)
3579                }), t.on("webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend", function(t) {
3580                    $window_width > 1200 ? (e(".qode-holder-left .qode-item"), e(".qode-holder-right .qode-item")) : e(".qode-item")
3581                })
3582            })
3583        }, 100))
3584    })
3585}
3586
3587function initPreviewSlider() {
3588    "use strict";
3589    $j(".qode-preview-slider").each(function() {
3590        var e = $j(this),
3591            t = e.find(".qode-presl-main-slider"),
3592            i = e.find(".qode-presl-small-slider-holder"),
3593            o = i.find(".qode-presl-small-slider");
3594        t.find(".qode-presl-link.small").each(function(e) {
3595            $j('<li><div class="qode-presl-small-item"><div class="qode-presl-main-item-inner"></div></div></li>').appendTo(o.find("> .slides")).find(".qode-presl-main-item-inner").append($j(this))
3596        }), t.flexslider({
3597            animation: "slide",
3598            animationSpeed: 700,
3599            slideshow: !0,
3600            slideshowSpeed: 5e3,
3601            useCSS: !0,
3602            touch: !0,
3603            autostart: !1,
3604            directionNav: !0,
3605            controlNav: !0,
3606            prevText: '<i class="icon-arrows-left"></i>',
3607            nextText: '<i class="icon-arrows-right"></i>',
3608            start: function(e) {
3609                e.find(".qode-presl-main-item").css({
3610                    opacity: "1",
3611                    filter: "alpha(opacity=100)"
3612                }).find("img").addClass("visible")
3613            },
3614            before: function(e) {
3615                var t = e.animatingTo,
3616                    i = e.currentSlide;
3617                0 == t ? e.find(".slides li:first-child").next().next().clone().appendTo(e.find(".slides")).removeClass("clone").addClass("clone_end") : t == e.count - 1 && e.find(".slides li:last-child").prev().prev().clone().appendTo(e.find(".slides")).removeClass("clone").addClass("clone_start"), 0 == t && i == e.count - 1 && "next" == e.direction ? o.flexslider("next") : t == e.count - 1 && 0 == i && "prev" == e.direction ? o.flexslider("prev") : o.find(".flex-control-nav a").eq(t).click(), e.find(".flex-direction-nav").addClass("moving")
3618            },
3619            after: function(e) {
3620                e.removeClass("control-initiated direction-initiated"), e.find(".clone_start, .clone_end").remove(), e.find(".flex-direction-nav").removeClass("moving")
3621            }
3622        }), o.flexslider({
3623            animation: "slide",
3624            animationSpeed: 700,
3625            animationLoop: !0,
3626            useCSS: !0,
3627            touch: !1,
3628            slideshow: !1,
3629            directionNav: !1,
3630            controlNav: !0,
3631            start: function(e) {
3632                e.find("img").addClass("visible"), e.closest(".qode-presl-small-slider-holder").find(".qode-presl-phone").addClass("visible")
3633            }
3634        })
3635    })
3636}
3637
3638function initInDeviceSlider() {
3639    "use strict";
3640    $j(".qode-in-device-slider").each(function() {
3641        var e = $j(this).find(".qode-ids-slider"),
3642            t = "yes" == e.data("navigation"),
3643            i = "yes" == e.data("auto-start"),
3644            o = i ? e.data("timeout") : 0,
3645            a = !!e.closest(".qode-horizontal-marquee").length;
3646        if (getIEversion() > 0 && e.addClass("qode-ids-ie-specific"), e.flexslider({
3647            animation: "slide",
3648            animationSpeed: 700,
3649            animationLoop: !0,
3650            useCSS: !0,
3651            touch: !a,
3652            slideshow: i,
3653            slideshowSpeed: o,
3654            directionNav: t,
3655            controlNav: !1,
3656            prevText: '<i class="icon-arrows-left"></i>',
3657            nextText: '<i class="icon-arrows-right"></i>',
3658            start: function(e) {
3659                e.find("img").addClass("visible"), e.closest(".qode-ids-slider-holder").find(".qode-ids-frame").addClass("visible"), e.is(".qode-ids-titles-on-hover") && e.hover(function() {
3660                    $j(this).find(".qode-ids-link").addClass("hovered")
3661                }, function() {
3662                    $j(this).find(".qode-ids-link").removeClass("hovered")
3663                })
3664            }
3665        }), a) {
3666            var n, s = !1,
3667                r = function(e) {
3668                    e = void 0 !== e.originalEvent ? e.originalEvent : e, e = "touchstart" == e.type ? e.touches[0] : e, n = {
3669                        x: e.clientX,
3670                        y: e.clientY
3671                    }
3672                },
3673                d = function(e) {
3674                    e = void 0 !== e.originalEvent ? e.originalEvent : e, e = "touchend" == e.type ? e.changedTouches[0] : e;
3675                    var t = {
3676                        x: e.clientX,
3677                        y: e.clientY
3678                    };
3679                    Math.abs(t.x - n.x) < 10 && (s = !0)
3680                },
3681                l = function(e) {
3682                    s ? s = !1 : e.preventDefault()
3683                };
3684            e.find(".qode-ids-link").on("dragstart", function(e) {
3685                e.preventDefault()
3686            }).on("click", l).on("mousedown touchstart", r).on("mouseup touchend", d)
3687        }
3688    })
3689}
3690
3691function checkSVG(e) {
3692    "use strict";
3693    var t = e.find(".active .qode_slide-svg-holder");
3694    "yes" === t.data("svg-drawing") && drawSVG(t)
3695}
3696
3697function drawSVG(e) {
3698    "use strict";
3699    var t = Array.prototype.slice.call(e.find("svg")),
3700        i = [];
3701    t.forEach(function(e, t) {
3702        var o = new SVGEl(e);
3703        i[t] = o, setTimeout(function(e) {
3704            return function() {
3705                o.render()
3706            }
3707        }(), 0)
3708    })
3709}
3710
3711function SVGEl(e) {
3712    this.el = e;
3713    var t = $j(this.el).closest(".qode_slide-svg-holder").data("svg-frames");
3714    this.image = this.el.previousElementSibling, this.current_frame = 0, this.total_frames = t, this.path = [], this.length = [], this.handle = 0, this.init()
3715}
3716
3717function initPageTitleAnimation() {
3718    "use strict";
3719    if ("yes" === $j(".title_outer").data("animation") && $j(".no-touch .title_outer").length > 0) {
3720        skrollr.init({
3721            edgeStrategy: "set",
3722            smoothScrolling: !1,
3723            forceHeight: !1
3724        }).refresh()
3725    }
3726}
3727
3728function initQodeElementAnimationSkrollr() {
3729    "use strict";
3730    if (0 === $j(".no-touch .carousel").length) {
3731        $j(".no-touch .q_elements_holder > .q_elements_item").each(function() {
3732            if ((void 0 !== $j(this).data("animation") || void 0 !== $j(".title_outer").data("animation")) && "yes" === $j(this).data("animation")) {
3733                skrollr.init({
3734                    edgeStrategy: "set",
3735                    smoothScrolling: !1,
3736                    forceHeight: !1
3737                }).refresh()
3738            }
3739        })
3740    }
3741}
3742
3743function initIconShortcodeHover() {
3744    "use strict";
3745    $j(".qode_icon_shortcode").length && $j(".qode_icon_shortcode").each(function() {
3746        if (void 0 !== $j(this).data("type") && -1 != ["circle", "square"].indexOf($j(this).data("type")) && void 0 !== $j(this).data("hover-bg-color"))
3747            if ("circle" == $j(this).data("type")) {
3748                var e = $j(this).find("i").first(),
3749                    t = $j(this).data("hover-bg-color"),
3750                    i = e.attr("style");
3751                $j(this).hover(function() {
3752                    e.attr("style", i + "color: " + t + "!important")
3753                }, function() {
3754                    e.attr("style", i)
3755                })
3756            } else {
3757                var t = $j(this).data("hover-bg-color"),
3758                    o = $j(this).css("background-color");
3759                $j(this).hover(function() {
3760                    $j(this).css("background-color", t)
3761                }, function() {
3762                    $j(this).css("background-color", o)
3763                })
3764            } if (void 0 !== $j(this).data("hover-icon-color")) {
3765            var a = $j(this).data("hover-icon-color"),
3766                n = $j(this).find(".qode_icon_element ").css("color");
3767            $j(this).hover(function() {
3768                $j(this).find(".qode_icon_element ").css("color", a)
3769            }, function() {
3770                $j(this).find(".qode_icon_element ").css("color", n)
3771            })
3772        }
3773    })
3774}
3775
3776function initIconWithTextHover() {
3777    "use strict";
3778    $j(".qode_iwt_icon_holder").length && $j(".qode_iwt_icon_holder").each(function() {
3779        if (void 0 !== $j(this).data("icon-hover-bg-color")) {
3780            var e = $j(this).data("icon-hover-bg-color"),
3781                t = $j(this).css("background-color");
3782            $j(this).hover(function() {
3783                $j(this).css("background-color", e)
3784            }, function() {
3785                $j(this).css("background-color", t)
3786            })
3787        }
3788        if (void 0 !== $j(this).data("icon-hover-color")) {
3789            var i = $j(this).find(".qode_iwt_icon_element"),
3790                o = $j(this).data("icon-hover-color"),
3791                a = i.css("color");
3792            $j(this).hover(function() {
3793                i.css("color", o)
3794            }, function() {
3795                i.css("color", a)
3796            })
3797        }
3798    })
3799}
3800
3801function initLoadNextPostOnBottom() {
3802    "use strict";
3803    if ($j(".blog_vertical_loop").length) {
3804        var e, t, i = $j("body").hasClass("paspartu_enabled") ? Math.round($window_width * paspartu_width) : 0;
3805        t = $j("header.page_header").hasClass("transparent") ? 0 : header_height;
3806        var o = !0,
3807            a = $j(".blog_vertical_loop .blog_holder");
3808        $j(document).on("click", ".blog_vertical_loop_button a", function(n) {
3809            if (n.preventDefault(), !o) return !1;
3810            o = !1;
3811            var s = $j(this),
3812                r = s.attr("href"),
3813                d = ".blog_vertical_loop_button_holder a",
3814                l = $j(d).attr("href");
3815            e = $window_width < 1e3 ? $j("header.page_header").height() : t;
3816            var c = $j(window).scrollTop(),
3817                h = s.closest("article").offset().top,
3818                _ = h - c - e - i;
3819            a.find("article:eq(1)").addClass("fade_out"), s.closest("article").addClass("move_up").removeClass("next_post").css("transform", "translateY(-" + _ + "px)"), setTimeout(function() {
3820                $j(window).scrollTop(0), a.find("article:eq(0)").remove(), a.find("article:eq(0)").addClass("previous_post"), s.closest("article").removeAttr("style").removeClass("move_up")
3821            }, 450), $j.get(r + "", function(e) {
3822                var t = $j(e).find("article").addClass("next_post");
3823                l = $j(d, e).attr("href"), a.append($j(t)), o = !0
3824            })
3825        }), $j(document).on("click", ".blog_vertical_loop_back_button a", function(e) {
3826            if (e.preventDefault(), !o) return !1;
3827            o = !1;
3828            var t = $j(this),
3829                i = t.attr("href"),
3830                n = ".blog_vertical_loop_button_holder.prev_post a",
3831                s = $j(n).attr("href");
3832            a.find("article:eq(0)").removeClass("fade_out").addClass("fade_in"), t.closest("article").addClass("move_up").css("transform", "translateY(" + $window_height + "px)"), setTimeout(function() {
3833                a.find("article:last-child").remove(), a.find("article:eq(0)").removeClass("previous_post fade_in"), t.closest("article").addClass("next_post").removeAttr("style").removeClass("move_up"), $j.get(i + "", function(e) {
3834                    var t = $j(e).find("article").removeClass("next_post").addClass("previous_post");
3835                    s = $j(n, e).attr("href"), a.prepend($j(t)), o = !0
3836                })
3837            }, 450)
3838        }), $j.get($j(".blog_vertical_loop_button_holder .last_page a").attr("href") + "", function(e) {
3839            var t = $j(e).find("article").removeClass("next_post").addClass("previous_post");
3840            a.prepend($j(t))
3841        }), $j.get($j(".blog_vertical_loop_button a").attr("href") + "", function(e) {
3842            var t = $j(e).find("article").addClass("next_post");
3843            a.append($j(t))
3844        })
3845    }
3846}
3847
3848function setParallaxLayersHeight(e, t) {
3849    "use strict";
3850    var i = t,
3851        o = [1600, 1300, 1e3, 768, 567, 320];
3852    $window_width > o[0] ? i = t : $window_width > o[1] ? i = .75 * t : $window_width > o[2] ? i = .6 * t : $window_width > o[3] ? i = .55 * t : $window_width <= o[3] && (i = .45 * t), e.css({
3853        height: i + "px"
3854    })
3855}
3856
3857function parallaxLayers() {
3858    "use strict";
3859    $j(".qode_parallax_layers").length && $j(".qode_parallax_layers").each(function() {
3860        var e = $j(this);
3861        if ($j(this).hasClass("full_screen_height")) e.height($window_height), $j(window).resize(function() {
3862            e.height($window_height)
3863        });
3864        else {
3865            var t = $j(this).data("height");
3866            setParallaxLayersHeight(e, t), $j(window).resize(function() {
3867                setParallaxLayersHeight(e, t)
3868            })
3869        }
3870        var i = e.find(".qode_parallax_layers_holder"),
3871            o = 0,
3872            a = e.find(".image").length;
3873        e.find(".image").each(function() {
3874            var e = $j(this);
3875            if ("" != e.css("background-image") && "none" != e.css("background-image")) {
3876                var t = e.attr("style");
3877                if (t = t.match(/url\(["']?([^'")]+)['"]?\)/), t = t ? t[1] : "") {
3878                    var n = new Image;
3879                    n.src = t, $j(n).load(function() {
3880                        ++o == a && (i.removeClass("preload_parallax_layers"), $j("html").hasClass("no-touch") && i.mouseParallax())
3881                    })
3882                }
3883            }
3884        })
3885    })
3886}
3887
3888function alterWPMLSwitcherHeaderBottom() {
3889    "use strict";
3890    if ($j(".header_bottom .main_menu li.menu-item-language").length) {
3891        var e = $j(".header_bottom .main_menu .menu-item-language").find(".submenu-languages");
3892        void 0 !== e && (e.parent("li").addClass("narrow"), e.wrap('<div class="second"><div class="inner"></div></div>'), e.show())
3893    }
3894    if ($j(".header_bottom .mobile_menu li.menu-item-language").length) {
3895        var e = $j(".header_bottom .mobile_menu .menu-item-language").find(".submenu-languages");
3896        void 0 !== e && (e.parent("li").addClass("has_sub"), e.prev("a").after('<span class="mobile_arrow"><i class="fa fa-angle-right"></i><i class="fa fa-angle-down"></i></span>'), e.addClass("sub_menu"))
3897    }
3898}
3899
3900function initContentSlider() {
3901    "use strict";
3902    $j(".qode_content_slider").each(function() {
3903        var e = $j(this),
3904            t = 8e3;
3905        void 0 !== e.data("interval") && !1 !== e.data("interval") && (t = 1e3 * parseFloat(e.data("interval")));
3906        var i = !1;
3907        void 0 !== e.data("direction") && (i = e.data("direction"));
3908        var o = !1;
3909        void 0 !== e.data("control") && (o = e.data("control"));
3910        var a = !1;
3911        void 0 !== e.data("pause-on-hover") && (a = e.data("pause-on-hover"));
3912        var n = !1;
3913        void 0 !== e.data("drag") && (n = e.data("drag"));
3914        var s = !0;
3915        0 === t && (s = !1);
3916        var r = "slide";
3917        void 0 !== e.data("flex_fx") && !1 !== e.data("flex_fx") && (r = e.data("flex_fx"));
3918        var d = !1;
3919        e.find(".qode-lazy-image").length && (d = !0), e.flexslider({
3920            selector: ".qode_content_slider_inner > .qode_content_slider_item",
3921            animationLoop: !0,
3922            controlNav: o,
3923            directionNav: i,
3924            useCSS: !1,
3925            pauseOnAction: a,
3926            pauseOnHover: a,
3927            slideshow: s,
3928            animation: r,
3929            prevText: "<div><i class='fa fa-angle-left'></i></div>",
3930            nextText: "<div><i class='fa fa-angle-right'></i></div>",
3931            animationSpeed: 600,
3932            slideshowSpeed: t,
3933            touch: !0,
3934            smoothHeight: d,
3935            start: function() {
3936                l(e)
3937            },
3938            after: function() {
3939                l(e)
3940            }
3941        });
3942        var l = function(t) {
3943            e.find(".qode-lazy-image").length && qodeLazyImages()
3944        };
3945        if (e.find(".flex-direction-nav a").click(function(e) {
3946            e.preventDefault(), e.stopImmediatePropagation(), e.stopPropagation()
3947        }), n && e.swipe({
3948            swipeLeft: function() {
3949                e.flexslider("next")
3950            },
3951            swipeRight: function() {
3952                e.flexslider("prev")
3953            },
3954            threshold: 20
3955        }), e.hasClass("control_nav_justified")) {
3956            var c = function(t) {
3957                var i = e.find("ol");
3958                i.addClass("qode-type1-gradient-left-to-right-after"), $window_width > 1440 ? i.css("max-width", qode_grid_width) : i.css("max-width", Math.round(.8 * e.outerWidth()));
3959                var o = i.find("li"),
3960                    a = o.outerWidth(),
3961                    n = parseInt(i.css("max-width")),
3962                    s = n - a * o.length,
3963                    r = Math.floor(s / o.length);
3964                o.css("margin-right", r), o.last().css("margin-right", 0)
3965            };
3966            c(), $j(window).resize(function() {
3967                c()
3968            })
3969        }
3970    })
3971}
3972
3973function qodeInitStickyWidget() {
3974    var e = $j(".qode-widget-sticky-sidebar");
3975    if (e.length && $window_width > 1e3) {
3976        var t = $j("header.page_header");
3977        sticky_amount = getScrollAmountForStickyHeader(), e.each(function() {
3978            var e = $j(this),
3979                i = 0,
3980                o = e.offset().top;
3981            if (e.parent("aside.sidebar").length) var a = e.parents("aside.sidebar");
3982            else if (e.parents(".wpb_widgetised_column").length) {
3983                var a = e.parents(".wpb_widgetised_column");
3984                e.closest(".wpb_column").css("position", "static")
3985            }
3986            var n = a.offset().top;
3987            i = sticky_amount < n && (t.hasClass("stick") || t.hasClass("stick_with_left_right_menu")) ? min_header_height_sticky : t.hasClass("fixed") ? min_header_height_scroll + content_menu_top_add : t.hasClass("fixed_top_header") ? header_top_height : t.hasClass("fixed_hiding") ? min_header_height_fixed_hidden + 40 : (qode_window < 1e3 || $j(".vertical_menu_enabled").length, 0);
3988            var s = -(o - n - i - 10);
3989            a.stick_in_parent({
3990                parent: ".full_section_inner, .section_inner, .two_columns_75_25, .two_columns_25_75, .two_columns_66_33, .two_columns_33_66",
3991                sticky_class: "qode-sticky-sidebar",
3992                inner_scrolling: !1,
3993                offset_top: s
3994            }).on("sticky_kit:bottom", function() {
3995                a.addClass("qode-sticky-sidebar-on-bottom")
3996            }).on("sticky_kit:unbottom", function() {
3997                a.removeClass("qode-sticky-sidebar-on-bottom")
3998            }), $j(window).scroll(function() {
3999                $window_width >= 1e3 && (sticky_amount > n && t.hasClass("sticky") && a.hasClass("qode-sticky-sidebar") && !a.hasClass("qode-sticky-sidebar-on-bottom") ? (a.css("-webkit-transform", "translateY(" + min_header_height_sticky + "px)"), a.css("transform", "translateY(" + min_header_height_sticky + "px)")) : (a.css("-webkit-transform", "translateY(0px)"), a.css("transform", "translateY(0px)")))
4000            })
4001        })
4002    }
4003}
4004
4005function qodeBlogGalleryAnimation() {
4006    var e = $j(".blog_holder.blog_gallery");
4007    e.length && e.each(function() {
4008        $j(this).find("article").each(function() {
4009            var e = $j(this),
4010                t = e.find(".post_excerpt"),
4011                i = parseInt(t.outerHeight(!0)),
4012                o = e.find(".post_category"),
4013                a = e.find(".entry_title");
4014            o.css({
4015                transform: "translateY(" + i + "px)"
4016            }), a.css({
4017                transform: "translateY(" + i + "px)"
4018            }), e.mouseenter(function() {
4019                o.css({
4020                    transform: "translateY(0px)"
4021                }), a.css({
4022                    transform: "translateY(0px)"
4023                }), t.css({
4024                    visibility: "visible",
4025                    opacity: "1"
4026                })
4027            }), e.mouseleave(function() {
4028                o.css({
4029                    transform: "translateY(" + i + "px)"
4030                }), a.css({
4031                    transform: "translateY(" + i + "px)"
4032                }), t.css({
4033                    visibility: "hidden",
4034                    opacity: "0"
4035                })
4036            })
4037        })
4038    })
4039}
4040
4041function qodeLazyImages() {
4042    $j.fn.preloader = function(e, t) {
4043        if (e && "destroy" == e) this.find(".qode-lazy-preloader").remove();
4044        else {
4045            var i = $j('<div class="qode-lazy-preloader"></div>');
4046            $j('<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="75" width="75" viewbox="0 0 75 75"><circle stroke-linecap="round" cx="37.5" cy="37.5" r="33.5" stroke-width="4"/></svg>').appendTo(i), i.appendTo(this), "function" == typeof t && t()
4047        }
4048        return this
4049    }, $j('.qode-lazy-image[data-image][data-lazy="true"]:not(.lazyLoading)').each(function(e, t) {
4050        t = $j(t), t.attr("data-ratio") && t.height(t.width() * t.data("ratio"));
4051        var i = t[0].getBoundingClientRect(),
4052            o = $window_height || document.documentElement.clientHeight,
4053            a = $window_width || document.documentElement.clientWidth,
4054            n = t.outerHeight(),
4055            s = t.outerWidth();
4056        if ((0 != i.top || 0 != i.right || 0 != i.bottom || 0 != i.left) && (i.top >= 0 || i.top + n >= 0) && i.bottom >= 0 && i.bottom - n - o <= 0 && (i.left >= 0 || i.left + s >= 0) && i.right >= 0 && i.right - s - a <= 0) {
4057            var r = null;
4058            r = "IMG" == t.prop("tagName") ? t.parent() : t, r && r.preloader("init"), t.addClass("lazyLoading");
4059            var d = new Image;
4060            $j(d).on("load", function() {
4061                switch (r.preloader("destroy"), t.removeAttr("data-image").removeData("image").removeAttr("data-lazy").removeData("lazy").removeClass("lazyLoading"), t.prop("tagName")) {
4062                    case "IMG":
4063                        t.attr("src", $j(this).attr("src")), t.height("auto");
4064                        break;
4065                    case "DIV":
4066                    default:
4067                        t.css("background-image", "url(" + $j(this).attr("src") + ")")
4068                }
4069            }).attr("src", t.data("image"))
4070        }
4071    })
4072}
4073
4074function qodeCardsGallery() {
4075    $j(".qode-cards-gallery-holder").length && $j(".qode-cards-gallery-holder").each(function() {
4076        var e, t = $j(this),
4077            i = t.find(".card"),
4078            o = t.data("side");
4079        switch (o) {
4080            case "left":
4081                e = "0 0 0 20%";
4082                break;
4083            case "right":
4084                e = "0 20% 0 0";
4085                break;
4086            case "top":
4087                e = "20% 0 0 0";
4088                break;
4089            case "bottom":
4090                e = "0 0 20% 0"
4091        }
4092        i.each(function() {
4093            var o = $j(this);
4094            o.click(function() {
4095                if (!i.last().is(o)) return o.addClass("out").animate({
4096                    opacity: 0,
4097                    margin: e
4098                }, 200, function() {
4099                    o.detach(), o.insertAfter(i.last()).animate({
4100                        opacity: 1,
4101                        margin: "0"
4102                    }, 500, function() {
4103                        o.removeClass("out")
4104                    }), i = t.find(".card")
4105                }), !1
4106            })
4107        })
4108    })
4109}
4110
4111function qodeInitEllipticalSlider() {
4112    var e = $j(".qode-elliptical-slider");
4113    e.length && e.each(function() {
4114        var e = $j(this),
4115            t = $j(".qode-elliptical-slider > .qode-elliptical-slider-slides"),
4116            i = 600,
4117            o = !1;
4118        void 0 !== t.data("animation-speed") && !1 !== t.data("animation-speed") && (i = t.data("animation-speed")), "yes" == t.data("autoplay") && (o = !0), e.flexslider({
4119            selector: ".qode-elliptical-slider-slides > .qode-elliptical-slide",
4120            animationLoop: !0,
4121            controlNav: !0,
4122            directionNav: !1,
4123            useCSS: !1,
4124            pauseOnAction: !0,
4125            pauseOnHover: !0,
4126            slideshow: o,
4127            animationSpeed: i,
4128            slideshowSpeed: 5e3,
4129            touch: !0
4130        })
4131    })
4132}
4133
4134function qodeInitPricingCalculator() {
4135    var e = $j(".qode-pricing-calculator");
4136    e.length && e.each(function() {
4137        var e = $j(this),
4138            t = $j(this).find(".qode-pricing-calculator-item"),
4139            i = 0;
4140        t.each(function() {
4141            var t = $j(this),
4142                o = t.data("price"),
4143                a = t.find("input");
4144            a.attr("checked") && (i += o), t.on("change", function(t) {
4145                a.attr("checked") ? i += o : i -= o, e.find(".qode-pricing-calculator-total-price").text(i)
4146            })
4147        })
4148    })
4149}
4150
4151function qodeSlidingImageHolder() {
4152    var e = $j(".qode-sliding-image-holder");
4153    e.length && e.each(function() {
4154        var e = $j(this);
4155        if (!$j("html").hasClass("touch")) {
4156            qodeRequestAnimationFrame();
4157            var t = e.find(".qode-sliding-image-background-image"),
4158                i = Math.round(t.width());
4159            0 == i && (i = 1920), e.find(".qode-aux-background-image").css("left", i), t.each(function(e) {
4160                var t = $j(this),
4161                    o = 0,
4162                    a = function() {
4163                        o -= 1, Math.round(t.offset().left) <= -i && (t.css("left", parseInt(i - 2)), o = 0), t.css("transform", "translate3d(" + o + "px,0,0)"), requestNextAnimationFrame(a)
4164                    };
4165                $j(window).load(function() {
4166                    a()
4167                })
4168            })
4169        }
4170    })
4171}
4172
4173function qodeRequestAnimationFrame() {
4174    window.requestNextAnimationFrame = function() {
4175        var e = void 0,
4176            t = void 0,
4177            i = navigator.userAgent,
4178            o = 0,
4179            a = this;
4180        return window.webkitRequestAnimationFrame && (t = function(e) {
4181            void 0 === e && (e = +new Date), a.callback(e)
4182        }, e = window.webkitRequestAnimationFrame, window.webkitRequestAnimationFrame = function(i, o) {
4183            a.callback = i, e(t, o)
4184        }), window.mozRequestAnimationFrame && (o = i.indexOf("rv:"), -1 != i.indexOf("Gecko") && "2.0" === i.substr(o + 3, 3) && (window.mozRequestAnimationFrame = void 0)), window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function(e, t) {
4185            var i, o;
4186            window.setTimeout(function() {
4187                i = +new Date, e(i), o = +new Date, a.timeout = 1e3 / 60 - (o - i)
4188            }, a.timeout)
4189        }
4190    }()
4191}
4192
4193function qodePageTransitionEffect() {
4194    var e = $j("body.qode-page-loading-effect-enabled > .qode-page-loading-effect-holder");
4195    e.length && (e.fadeOut(500), $j(window).bind("pageshow", function(t) {
4196        t.originalEvent.persisted && e.fadeOut(500)
4197    }), $j("a").click(function(t) {
4198        var i = $j(this);
4199        !(1 == t.which && i.attr("href").indexOf(window.location.host) >= 0 && void 0 === i.data("rel") && void 0 === i.attr("rel")) || i.hasClass("qode-like") || i.parents(".blog_load_more_button") || i.parents(".qode-single-product-images") || void 0 !== i.attr("target") && "_self" !== i.attr("target") || i.attr("href").split("#")[0] === window.location.href.split("#")[0] || (t.preventDefault(), e.addClass("qode-hide-spinner"), e.fadeIn(500, function() {
4200            window.location = i.attr("href")
4201        }))
4202    }))
4203}
4204
4205function qodeInitAccordions() {
4206    "use strict";
4207    var e = $j(".qode-accordion-holder");
4208    e.length && e.each(function() {
4209        var e = $j(this);
4210        if (e.hasClass("qode-accordion") && e.accordion({
4211            animate: "easeInOutQuint",
4212            collapsible: !0,
4213            active: 0,
4214            icons: "",
4215            heightStyle: "content"
4216        }), e.hasClass("qode-toggle")) {
4217            var t = $j(this),
4218                i = t.find(".qode-title-holder"),
4219                o = i.next();
4220            t.addClass("accordion ui-accordion ui-accordion-icons ui-widget ui-helper-reset"), i.addClass("ui-accordion-header ui-state-default ui-corner-top ui-corner-bottom"), o.addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").hide(), i.each(function() {
4221                var e = $j(this);
4222                e.hover(function() {
4223                    e.toggleClass("ui-state-hover")
4224                }), e.on("click", function() {
4225                    e.toggleClass("ui-accordion-header-active ui-state-active ui-state-default ui-corner-bottom"), e.next().toggleClass("ui-accordion-content-active").slideToggle(300)
4226                })
4227            })
4228        }
4229    })
4230}
4231
4232function qodeInitInteractiveIconShowcase() {
4233    var e = $j(".qode-int-icon-showcase"),
4234        t = $j(".no_animation_on_touch");
4235    e.length && e.each(function() {
4236        function e() {
4237            i = 0;
4238            setInterval(function() {
4239                l || (a.removeClass("qode-showcase-active qode-current"), i == h - 1 ? i = 0 : i++, a.eq(i).addClass("qode-showcase-active"))
4240            }, c)
4241        }
4242        var i, o = $j(this),
4243            a = o.find(".qode-showcase-item-holder"),
4244            n = o.find(".qode-showcase-icon"),
4245            s = (o.find(".qode-showcase-content"), o.find(".qode-showcase-item-holder:first-child")),
4246            r = o.find(".qode-showcase-item-holder.qode-showcase-active"),
4247            d = !1,
4248            l = !1,
4249            c = 3e3,
4250            h = a.length;
4251        void 0 !== o.data("interval") && !1 !== o.data("interval") && (c = o.data("interval")), t.length ? (s.addClass("qode-showcase-active"), d = !0) : o.appear(function() {
4252            setTimeout(function() {
4253                o.addClass("qode-appeared"), r.length || (d = !0, s.addClass("qode-showcase-active"), o.hasClass("qode-autoplay") && (e(), o.hover(function(e) {
4254                    l = !0
4255                }, function(e) {
4256                    l = !1
4257                })))
4258            }, 30)
4259        }, {
4260            accX: 0,
4261            accY: -200
4262        }), n.each(function() {
4263            var e = $j(this),
4264                t = e.parent();
4265            e.mouseenter(function() {
4266                1 == d && (t.siblings().removeClass("qode-showcase-active qode-current"), t.addClass("qode-showcase-active qode-current"), i = o.find(".qode-current").index())
4267            })
4268        })
4269    })
4270}
4271
4272function qodeInitSendContactForm() {
4273    "use strict";
4274    var e = $j(".qode-contact-form-contact-template");
4275    e.length && e.each(function() {
4276        var e = $j(this);
4277        e.on("submit", function(t) {
4278            t.preventDefault();
4279            var i = !0;
4280            if (e.find(".contact-error").remove(), e.parent().find(".contact-success").remove(), e.find(".requiredField").each(function() {
4281                var t = $j(this);
4282                if ("" == jQuery.trim(t.val()) || jQuery.trim(t.val()) == jQuery.trim(t.attr("placeholder"))) t.parent().append('<strong class="contact-error">' + e.data("required-message") + "</strong>"), t.addClass("inputError"), i = !1;
4283                else if (t.hasClass("email")) {
4284                    var o = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,6})?$/;
4285                    o.test(jQuery.trim(t.val())) || (t.parent().append('<strong class="contact-error">' + e.data("wrong-email-message") + "</strong>"), t.addClass("inputError"), i = !1)
4286                }
4287            }), i) {
4288                var o = e.serialize(),
4289                    a = {
4290                        action: "qode_send_contact_page_form",
4291                        form_data: o
4292                    };
4293                $j.ajax({
4294                    type: "POST",
4295                    data: a,
4296                    url: QodeAdminAjax.ajaxurl,
4297                    success: function(t) {
4298                        var i = JSON.parse(t);
4299                        "success" == i.status ? (e.before('<div class="contact-success"><p>' + i.message + "</p></div>"), e.hide()) : e.before('<div class="contact-success"><p>' + i.message + "</p></div>")
4300                    }
4301                })
4302            }
4303        })
4304    })
4305}
4306
4307function qodeRecaptchaCallback() {
4308    "use strict";
4309    var e = $j("#qode-captcha-element-holder");
4310    e.length && grecaptcha.render("qode-captcha-element-holder", {
4311        sitekey: e.data("sitekey")
4312    })
4313}
4314
4315function qodeWorkflow() {
4316    var e = $j(".qode-workflow");
4317    e.length && e.each(function() {
4318        var e = $j(this);
4319        if (e.hasClass("qode-workflow-animate")) {
4320            var t = e.find(".qode-workflow-item");
4321            e.appear(function() {
4322                e.addClass("qode-appeared"), setTimeout(function() {
4323                    t.each(function(e) {
4324                        var t = $j(this);
4325                        setTimeout(function() {
4326                            t.addClass("qode-appeared")
4327                        }, 350 * e)
4328                    })
4329                }, 350)
4330            }, {
4331                accX: 0,
4332                accY: -$window_height / 3
4333            })
4334        }
4335    })
4336}
4337
4338function getLoadMoreData(e) {
4339    var t = e.data(),
4340        i = {};
4341    for (var o in t) t.hasOwnProperty(o) && void 0 !== t[o] && !1 !== t[o] && (i[o] = t[o]);
4342    return i
4343}
4344
4345function setLoadMoreAjaxData(e, t) {
4346    var i = {
4347        action: t
4348    };
4349    for (var o in e) e.hasOwnProperty(o) && void 0 !== e[o] && !1 !== e[o] && (i[o] = e[o]);
4350    return i
4351}
4352
4353function qodeOwlSlider() {
4354    var e = $j(".qode-owl-slider");
4355    e.length && e.each(function() {
4356        var e = $j(this),
4357            t = e.children().length,
4358            i = 1,
4359            o = !0,
4360            a = !0,
4361            n = !0,
4362            s = 5e3,
4363            r = 600,
4364            d = 0,
4365            l = 0,
4366            c = 0,
4367            h = !1,
4368            _ = !1,
4369            u = !1,
4370            f = !1,
4371            p = !1,
4372            g = !0,
4373            m = !1,
4374            $ = !!e.hasClass("qode-pl-is-slider"),
4375            v = $ ? e.parent() : e;
4376        void 0 === e.data("number-of-items") || !1 === e.data("number-of-items") || $ || (i = e.data("number-of-items")), void 0 !== v.data("number-of-columns") && !1 !== v.data("number-of-columns") && $ && (i = v.data("number-of-columns")), "no" === v.data("enable-loop") && (
4376o = !1), "no" === v.data("enable-autoplay") && (a = !1), "no" === v.data("enable-autoplay-hover-pause") && (n = !1), void 0 !== v.data("slider-speed") && !1 !== v.data("slider-speed") && (s = v.data("slider-speed")), void 0 !== v.data("slider-speed-animation") && !1 !== v.data("slider-speed-animation") && (r = v.data("slider-speed-animation")), void 0 !== v.data("slider-margin") && !1 !== v.data("slider-margin") && (d = v.data("slider-margin")), e.parent().hasClass("qode-huge-space") ? d = 60 : e.parent().hasClass("qode-large-space") ? d = 50 : e.parent().hasClass("qode-medium-space") ? d = 40 : e.parent().hasClass("qode-normal-space") ? d = 30 : e.parent().hasClass("qode-small-space") ? d = 20 : e.parent().hasClass("qode-tiny-space") && (d = 10), "yes" === v.data("slider-padding") && (h = !0, c = parseInt(.28 * e.outerWidth()), d = 50), "yes" === v.data("enable-center") && (_ = !0), "yes" === v.data("enable-auto-width") && (u = !0), void 0 !== v.data("slider-animate-in") && !1 !== v.data("slider-animate-in") && (f = v.data("slider-animate-in")), void 0 !== v.data("slider-animate-out") && !1 !== v.data("slider-animate-out") && (p = v.data("slider-animate-out")), "no" === v.data("enable-navigation") && (g = !1), "yes" === v.data("enable-pagination") && (m = !0), g && m && e.addClass("qode-slider-has-both-nav"), t <= 1 && (o = !1, a = !1, g = !1, m = !1);
4377        var j = 2,
4378            w = 3,
4379            b = i;
4380        i < 3 && (j = i, w = i), i > 4 && (b = 4), (h || d > 0) && (l = 20), e.owlCarousel({
4381            items: i,
4382            loop: o,
4383            autoplay: a,
4384            autoplayHoverPause: n,
4385            autoplayTimeout: s,
4386            smartSpeed: r,
4387            margin: d,
4388            stagePadding: c,
4389            center: _,
4390            autoWidth: u,
4391            animateInClass: f,
4392            animateOut: p,
4393            dots: m,
4394            nav: g,
4395            navText: ['<span class="qode-prev-icon fa fa-angle-left"></span>', '<span class="qode-next-icon fa fa-angle-right"></span>'],
4396            responsive: {
4397                0: {
4398                    items: 1,
4399                    margin: l,
4400                    stagePadding: 0,
4401                    center: !1,
4402                    autoWidth: !1
4403                },
4404                681: {
4405                    items: j
4406                },
4407                769: {
4408                    items: w
4409                },
4410                1025: {
4411                    items: b
4412                },
4413                1281: {
4414                    items: i
4415                }
4416            },
4417            onInitialize: function() {
4418                e.css("visibility", "visible")
4419            },
4420            onChanged: function() {
4421                e.parent().length && e.parent().hasClass("qode-image-behavior-lightbox") && prettyPhoto()
4422            }
4423        })
4424    })
4425}
4426
4427function qodeScrollingImage() {
4428    var e = $j(".qode-scrolling-image-holder");
4429    e.length && e.each(function() {
4430        var e, t, i, o, a = $j(this),
4431            n = a.find(".qode-si-content-holder"),
4432            s = a.find(".qode-si-frame"),
4433            r = a.find(".qode-si-image"),
4434            d = !1,
4435            l = function() {
4436                e = s.height(), t = r.height(), i = Math.round(t - e), o = 2 * Math.round(t / e), t > e && (d = !0)
4437            },
4438            c = function() {
4439                n.mouseenter(function() {
4440                    r.css("transition-duration", o + "s"), r.css("transform", "translate3d(0px, -" + i + "px, 0px)")
4441                }), n.mouseleave(function() {
4442                    d && (r.css("transition-duration", Math.min(o / 3, 3) + "s"), r.css("transform", "translate3d(0px, 0px, 0px)"))
4443                })
4444            };
4445        a.waitForImages(function() {
4446            a.css("visibility", "visible"), l(), c()
4447        }), $j(window).resize(function() {
4448            l()
4449        })
4450    })
4451}
4452
4453function animationEventEnd() {
4454    var e = document.createElement("animationDetector"),
4455        t = {
4456            animation: "animationend",
4457            OAnimation: "oAnimationEnd",
4458            MozAnimation: "animationend",
4459            WebkitAnimation: "webkitAnimationEnd"
4460        };
4461    for (var i in t)
4462        if (void 0 !== e.style[i]) return t[i]
4463}
4464
4465function transitionEventEnd() {
4466    var e = document.createElement("transitionDetector"),
4467        t = {
4468            WebkitTransition: "webkitTransitionEnd",
4469            MozTransition: "transitionend",
4470            transition: "transitionend"
4471        };
4472    for (var i in t)
4473        if (void 0 !== e.style[i]) return t[i]
4474}
4475
4476function qodeCustomFontTypeOut() {
4477    var e = $j(".qode-cf-typed");
4478    e.length && e.each(function() {
4479        var e = $j(this),
4480            t = e.parent(".qode-cf-typed-wrap"),
4481            i = t.parent(".custom_font_holder"),
4482            o = [],
4483            a = e.find(".qode-cf-typed");
4484        a.length && a.each(function() {
4485            o.push($j(this).text())
4486        }), i.appear(function() {
4487            e.typed({
4488                strings: o,
4489                typeSpeed: 90,
4490                backDelay: 700,
4491                loop: !0,
4492                contentType: "text",
4493                loopCount: !1,
4494                cursorChar: "_"
4495            })
4496        }, {
4497            accX: 0,
4498            accY: 200
4499        })
4500    })
4501}
4502
4503function qodeContactPageAcceptance() {
4504    var e = $j(".qode-contact-form-contact-template"),
4505        t = e.find(".contact_form_acceptance .contact_form_acceptance_value"),
4506        i = e.find(".contact_form_button");
4507    t.length && t.each(function() {
4508        var e = $j(this);
4509        i.attr("disabled", "disabled"), e.change(function() {
4510            e.is(":checked") ? i.removeAttr("disabled") : i.attr("disabled", "disabled")
4511        })
4512    })
4513}
4514var $j = jQuery.noConflict();
4515window.qode = {}, qode.modules = {};
4516var common = {};
4517qode.modules.common = common;
4518var $scroll = 0,
4519    qode_body = $j("body"),
4520    qode_document = $j("document"),
4521    qode_window = $j(window),
4522    $window_width = $j(window).width();
4523qode.windowWidth = $window_width;
4524var $window_height = $j(window).height();
4525qode.windowHeight = $window_height;
4526var logo_height, menu_dropdown_height_set = !1,
4527    sticky_amount = 0,
4528    qode_grid_width = 1100,
4529    content_menu_position, content_menu_top, content_menu_top_add = 0,
4530    src, next_image, prev_image, $top_header_height, min_w = 1500,
4531    video_width_original = 1280,
4532    video_height_original = 720,
4533    vid_ratio = 1280 / 720,
4534    skrollr_slider, paspartu_width;
4535if (void 0 === paspartu_width_init) var paspartu_width_init = .02;
4536common.getLoadMoreData = getLoadMoreData, common.setLoadMoreAjaxData = setLoadMoreAjaxData, qode.animationEnd = animationEventEnd(), qode.transitionEnd = transitionEventEnd(), $j(document).ready(function() {
4537    "use strict";
4538    if ($j("header").hasClass("regular") && (content_menu_top = 0), $j("header").hasClass("fixed_top_header") && (content_menu_top = header_height), $j("header").hasClass("fixed") && (content_menu_top = min_header_height_scroll), $j("header").hasClass("fixed_hiding") && (content_menu_top = min_header_height_fixed_hidden + 40), ($j("header").hasClass("stick") || $j("header").hasClass("stick_with_left_right_menu")) && (content_menu_top = 0), !$j("header.page_header").hasClass("scroll_top") && $j("header.page_header").hasClass("has_top") && $j("header.page_header").hasClass("fixed") && (content_menu_top_add = 34), $j("body").hasClass("vertical_menu_enabled")) {
4539        content_menu_top = 0, content_menu_top_add = 0
4540    }
4541    paspartu_width = $window_width < 1024 ? .02 : paspartu_width_init, contentMinHeight(), contentMinHeightWithPaspartu(), qodeGridWidth(), setDropDownMenuPosition(), initDropDownMenu(), initVerticalMenu(), initVerticalMobileMenu(), initQodeSlider(), initSideMenu(), initPopupMenu(), initMessageHeight(), initToCounter(), initCounter(), $j(".vertical_split_slider").length || initCountdown(), initProgressBars(), initListAnimation(), initPieChart(), initPieChartWithIcon(), initServiceAnimation(), initParallaxTitle(), initSideAreaScroll(), initVerticalAreaMenuScroll(), loadMore(), prettyPhoto(), alterWPMLSwitcherHeaderBottom(), initMobileMenu(), initFlexSlider(), fitVideo(), fitAudio(), initAccordion(), initAccordionContentLink(), qodeInitAccordions(), initMessages(), initProgressBarsIcon(), initMoreFacts(), placeholderReplace(), backButtonShowHide(), backToTop(), initSteps(), showGoogleMap(), initProgressBarsVertical(), initElementsAnimation(), updateShoppingCart(), initHashClick(), initIconWithTextAnimation(), initVideoBackground(), initCheckSafariBrowser(), initSearchButton(), initCoverBoxes(), createContentMenu(), contentMenuScrollTo(), createSelectContentMenu(), initButtonHover(), initEnlargeButton(), initSocialIconHover(), initPageTitleAnimation(), initIconShortcodeHover(), qodeIcon().init(), initIconWithTextHover(), parallaxLayers(), initHorizontalMarquee(), qodeHorizontalMarqueeLoop(), initTextMarquee(), initExpandingImages(), qodeLazyImages(), initItemShowcase(), qodeCTASection().init(), qodeInitInteractiveIconShowcase(), qodeInitSendContactForm(), qodeWorkflow(), qodeCustomFontTypeOut(), qodeMobileHeaderBehavior(), $j(".widget #searchform").mousedown(function() {
4542        $j(this).addClass("form_focus")
4543    }).focusout(function() {
4544        $j(this).removeClass("form_focus")
4545    }), $scroll = $j(window).scrollTop(), checkTitleToShowOrHide(), checkVerticalMenuTransparency(), $j(window).width() > 1e3 ? headerSize($scroll) : logoSizeOnSmallScreens(), $j(window).width() > 768 && contentMenuPosition(), contentMenuCheckLastSection(), $j("header:not(.stick_with_left_r
4545ight_menu) .q_logo a").css("visibility", "visible"), initFullScreenTemplate(), showHideVerticalMenu(), initMasonryGallery(), initLoadNextPostOnBottom(), initBlogMasonryGallery(), initBlogGallery(), qodeV2Button().init(), qodeCardsSlider().init(), qodeCardsGallery(), qodeInitEllipticalSlider(), qodeInitPricingCalculator(), qodeSlidingImageHolder(), qodeOwlSlider(), qodeScrollingImage()
4546}), $j(window).load(function() {
4547    "use strict";
4548    $j(".touch .main_menu li:has(div.second)").doubleTapToGo(), setLeftPostionedMenuPadding(), initSmallImageBlogHeight(), setDropDownMenuPosition(), initDropDownMenu(), initPortfolio(), initPortfolioZIndex(), initPortfolioSingleInfo(), initTestimonials(), initTestimonialsCarousel(), initVideoBackgroundSize(), initBlog(), initBlogMasonryFullWidth(), initQBlog(), initPortfolioJustifiedGallery(), initPortfolioMasonry(), initPortfolioMasonryFilter(), initTabs(), qodeInitAdvancedTabs(), qodeInitAdvancedTabsIcons(), countClientsPerRow(), animatedTextIconHeight(), countAnimatedTextIconPerRow(), initTitleAreaAnimation(), setContentBottomMargin(), footerWidth(), $j("nav.content_menu").length > 0 && (content_menu_position = $j("nav.content_menu").offset().top, contentMenuPosition()), contentMenuCheckLastSection(), initQodeCarousel(), initPortfolioSlider(), initBlogSlider(), qodeInitBlogCarouselTitled(), initPreviewSlider(), initInDeviceSlider(), initTabsActiveBorder(), setActiveTabBorder(), initImageHover(), $j("header.stick_with_left_right_menu .q_logo a").css("visibility", "visible"), setMargingsForLeftAndRightMenu(), initImageGallerySliderNoSpace(), initVerticalSplitSlider(), initParallax(), initQodeElementAnimationSkrollr(), qodeBlogCompundMasonryGallery().init(), qodeInitStickyWidget(), qodeBlogHeadlines(), qodeCardsSlider().load(), initContentSlider(), qodePageTransitionEffect(), qodeContactPageAcceptance(), setTimeout(function() {
4549        checkAnchorOnScroll(), qodeBlogGalleryAnimation(), checkAnchorOnLoad(), checkHeaderStyleOnScroll(), $j(".no-touch .carousel").length && skrollr_slider.refresh()
4550    }, 700)
4551}), $j(window).scroll(function() {
4552    "use strict";
4553    $scroll = $j(window).scrollTop(), $j(window).width() > 1e3 && headerSize($scroll), $j(window).width() > 768 && contentMenuPosition(), contentMenuCheckLastSection(), checkVerticalMenuTransparency(), qodeLazyImages(), $j(".touch .drop_down > ul > li").mouseleave(), $j(".touch .drop_down > ul > li").blur()
4554}), $j(window).resize(function() {
4555    "use strict";
4556    $window_width = $j(window).width(), $window_height = $j(window).height(), paspartu_width = $window_width < 1024 ? .02 : paspartu_width_init, $j(window).width() > 1e3 ? headerSize($scroll) : logoSizeOnSmallScreens(), initMessageHeight(), qodeNumberOfTestimonialsItemsResize(), fitAudio(), initSmallImageBlogHeight(), initBlog(), initBlogMasonryFullWidth(), initQBlog(), animatedTextIconHeight(), countAnimatedTextIconPerRow(), initVideoBackgroundSize(), countClientsPerRow(), setContentBottomMargin(), footerWidth(), calculateHeights(), $j(".vertical_split_slider").height($window_height), initMasonryGallery(), initPortfolioMasonry(), contentMinHeight(), contentMinHeightWithPaspartu(), qodeInitStickyWidget()
4557});
4558var sticky_animate, default_header_style, current_scroll;
4559! function(e) {
4560    "use strict";
4561    e.fn.countTo = function(t) {
4562        t = e.extend({}, e.fn.countTo.defaults, t || {});
4563        var i = Math.ceil(t.speed / t.refreshInterval),
4564            o = (t.to - t.from) / i;
4565        return e(this).each(function() {
4566            function a() {
4567                r += o, s++, e(n).html(r.toFixed(t.decimals)), "function" == typeof t.onUpdate && t.onUpdate.call(n, r), s >= i && (clearInterval(d), r = t.to, "function" == typeof t.onComplete && t.onComplete.call(n, r))
4568            }
4569            var n = this,
4570                s = 0,
4571                r = t.from,
4572                d = setInterval(a, t.refreshInterval)
4573        })
4574    }, e.fn.countTo.defaults = {
4575        from: 0,
4576        to: 100,
4577        speed: 1e3,
4578        refreshInterval: 100,
4579        decimals: 0,
4580        onUpdate: null,
4581        onComplete: null
4582    }
4583}(jQuery),
4584    function(e) {
4585        var t = e(window),
4586            i = t.height();
4587        t.resize(function() {
4588            i = t.height()
4589        }), e.fn.parallax = function(o, a, n) {
4590            function s() {
4591                var n = t.scrollTop();
4592                l.each(function() {
4593                    var t = e(this),
4594                        s = t.offset().top;
4595                    s + r(t) < n || s > n + i || l.css("backgroundPosition", o + " " + Math.round((d - n) * a) + "px")
4596                })
4597            }
4598            var r, d, l = e(this);
4599            l.each(function() {
4600                d = l.offset().top
4601            }), r = n ? function(e) {
4602                return e.outerHeight(!0)
4603            } : function(e) {
4604                return e.height()
4605            }, (arguments.length < 1 || null === o) && (o = "50%"), (arguments.length < 2 || null === a) && (a = .1), (arguments.length < 3 || null === n) && (n = !0), t.bind("scroll", s).resize(s), s()
4606        }
4607    }(jQuery);
4608var $scrollHeight, timeOuts = [];
4609! function(e) {
4610    "use strict";
4611    var t = e(window);
4612    e.fn.masonryParallax = function(i, o, a) {
4613        function n() {
4614            c + h < $scroll || c > $scroll + $window_height || d.css("transform", "translate3d(0px, " + Math.round((r - h - $scroll) * i + l) + "px, 0px)")
4615        }
4616        var s, r, d = e(this),
4617            l = 0;
4618        r = d.offset().top, s = o ? function(e) {
4619            return e.outerHeight(!0)
4620        } : function(e) {
4621            return e.height()
4622        }, 0 != a && (l = a), (arguments.length < 1 || null === i) && (i = .1), (arguments.length < 2 || null === o) && (o = !0);
4623        var c = d.offset().top,
4624            h = s(d);
4625        t.bind("scroll", n).resize(n), n()
4626    }
4627}(jQuery);
4628var qodeV2Button = function() {
4629        var e = $j(".qode-btn"),
4630            t = function(e) {
4631                if (void 0 !== e.data("hover-color")) {
4632                    var t = function(e) {
4633                            e.data.button.css("color", e.data.color)
4634                        },
4635                        i = e.css("color"),
4636                        o = e.data("hover-color");
4637                    e.hasClass("qode-btn-3d-hover") || (e.on("mouseenter", {
4638                        button: e,
4639                        color: o
4640                    }, t), e.on("mouseleave", {
4641                        button: e,
4642                        color: i
4643                    }, t))
4644                }
4645            },
4646            i = function(e) {
4647                if (void 0 !== e.data("hover-bg-color")) {
4648                    var t = function(e) {
4649                            e.data.button.css("background-color", e.data.color)
4650                        },
4651                        i = e.css("background-color"),
4652                        o = e.data("hover-bg-color");
4653                    e.hasClass("qode-btn-3d-hover") || (e.on("mouseenter", {
4654                        button: e,
4655                        color: o
4656                    }, t), e.on("mouseleave", {
4657                        button: e,
4658                        color: i
4659                    }, t))
4660                }
4661            },
4662            o = function(e) {
4663                var t = e.find(".qode-button-v2-icon-holder");
4664                if (void 0 !== t.data("hover-icon-border-color")) {
4665                    var i = function(e) {
4666                            e.data.iconHolder.css("border-color", e.data.color)
4667                        },
4668                        o = t.css("borderLeftColor"),
4669                        a = t.data("hover-icon-border-color");
4670                    e.hasClass("qode-btn-3d-hover") || (e.on("mouseenter", {
4671                        iconHolder: t,
4672                        color: a
4673                    }, i), e.on("mouseleave", {
4674                        iconHolder: t,
4675                        color: o
4676                    }, i))
4677                }
4678            },
4679            a = function(e) {
4680                var t = e.find(".qode-button-v2-icon-holder");
4681                if (void 0 !== t.data("hover-icon-bg-color")) {
4682                    var i = function(e) {
4683                            e.data.iconHolder.css("background-color", e.data.color)
4684                        },
4685                        o = t.css("backgroundColor"),
4686                        a = t.data("hover-icon-bg-color");
4687                    e.hasClass("qode-btn-3d-hover") || (e.on("mouseenter", {
4688                        iconHolder: t,
4689                        color: a
4690                    }, i), e.on("mouseleave", {
4691                        iconHolder: t,
4692                        color: o
4693                    }, i))
4694                }
4695            },
4696            n = function(e) {
4697                if (e.hasClass("qode-btn-3d-hover")) {
4698                    var t = e.closest(".qode-3d-button-holder"),
4699                        i = t.find(".qode-btn-3d-hover"),
4700                        o = i.first(),
4701                        a = i.last(),
4702                        n = a.find(".qode-button-v2-icon-holder"),
4703                        s = t.outerHeight(),
4704                        r = Math.round(s / 2);
4705                    if (o.css("transform", "rotateX(0deg) translateZ(" + r + "px)"), a.css("transform", "rotateX(90deg) translateZ(" + r + "px)"), setTimeout(function() {
4706                        t.css("opacity", "1")
4707                    }, 200), t.on("mouseenter", function() {
4708                        o.css("transform", "rotateX(-90deg) translateZ(" + r + "px)"), a.css("transform", "rotateX(0deg) translateZ(" + r + "px)")
4709                    }), t.on("mouseleave", function() {
4710                        o.css("transform", "rotateX(0deg) translateZ(" + r + "px)"), a.css("transform", "rotateX(90deg) translateZ(" + r + "px)")
4711                    }), void 0 !== a.data("hover-color")) {
4712                        var d = a.data("hover-color");
4713                        a.css("color", d)
4714                    }
4715                    if (void 0 !== a.data("hover-bg-color")) {
4716                        var l = a.data("hover-bg-color");
4717                        a.css("background-color", l)
4718                    }
4719                    if (void 0 !== a.data("hover-border-color")) {
4720                        var c = a.data("hover-border-color");
4721                        a.css("border-color", c)
4722                    }
4723                    if (void 0 !== n.data("hover-icon-border-color")) {
4724                        var h = n.data("hover-icon-border-color");
4725                        n.css("border-color", h)
4726                    }
4727                    if (void 0 !== n.data("hover-icon-bg-color")) {
4728                        var _ = n.data("hover-icon-bg-color");
4729                        n.css("background-color", _)
4730                    }
4731                }
4732            };
4733        return {
4734            init: function() {
4735                e.length && e.each(function() {
4736                    t($j(this)), i($j(this)), o($j(this)), a($j(this)), n($j(this))
4737                })
4738            }
4739        }
4740    },
4741    qodeCTASection = function() {
4742        "use strict";
4743        var e = $j(".qode-cta-section"),
4744            t = function() {
4745                e.each(function() {
4746                    var e = $j(this),
4747                        t = e.find("img"),
4748                        i = e.find(".qode-cta-section-text-wrapper");
4749                    if (!$j("html").hasClass("touch") && e.hasClass("qode-cta-appear-effect")) {
4750                        var o = function(e) {
4751                            e.appear(function() {
4752                                setTimeout(function() {
4753                                    e.addClass("qode-appeared")
4754                                }, 30)
4755                            }, {
4756                                accX: 0,
4757                                accY: -$window_height / 3
4758                            })
4759                        };
4760                        o(t), o(i)
4761                    }
4762                })
4763            };
4764        return {
4765            init: function() {
4766                e.length && t()
4767            }
4768        }
4769    },
4770    getIEversion = function() {
4771        var e = -1;
4772        if ("Microsoft Internet Explorer" == navigator.appName) {
4773            var t = navigator.userAgent,
4774                i = new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})");
4775            null != i.exec(t) && (e = parseFloat(RegExp.$1))
4776        } else if ("Netscape" == navigator.appName) {
4777            var t = navigator.userAgent,
4778                i = new RegExp("Trident/.*rv:([0-9]{1,}[.0-9]{0,})");
4779            null != i.exec(t) && (e = parseFloat(RegExp.$1))
4780        }
4781        return e
4782    },
4783    docElem = window.document.documentElement;
4784window.requestAnimFrame = function() {
4785    return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function(e) {
4786        window.setTimeout(e, 1e3 / 60)
4787    }
4788}(), window.cancelAnimFrame = function() {
4789    return window.cancelAnimationFrame || window.webkitCancelAnimationFrame || window.mozCancelAnimationFrame || window.oCancelAnimationFrame || window.msCancelAnimationFrame || function(e) {
4790        window.clearTimeout(e)
4791    }
4792}(), SVGEl.prototype.init = function() {
4793    var e = this;
4794    [].slice.call(this.el.querySelectorAll("path")).forEach(function(t, i) {
4795        e.path[i] = t;
4796        var o = e.path[i].getTotalLength();
4797        e.length[i] = o, e.path[i].style.strokeDasharray = o + " " + o, e.path[i].style.strokeDashoffset = o
4798    })
4799}, SVGEl.prototype.render = function() {
4800    this.rendered || (this.rendered = !0, this.draw())
4801}, SVGEl.prototype.draw = function() {
4802    var e = this,
4803        t = this.current_frame / this.total_frames;
4804    if (t > 1) window.cancelAnimFrame(this.handle);
4805    else {
4806        this.current_frame++;
4807        for (var i = 0, o = this.path.length; i < o; i++) this.path[i].style.strokeDashoffset = Math.floor(this.length[i] * (1 - t));
4808        this.handle = window.requestAnimFrame(function() {
4809            e.draw()
4810        })
4811    }
4812};
4813var qodeIcon = function() {
4814    var e = $j(".qode-icon-holder"),
4815        t = function(e) {
4816            if (void 0 !== e.data("hover-color")) {
4817                var t = function(e) {
4818                        e.data.icon.css("color", e.data.color)
4819                    },
4820                    i = e.find(".qode-icon-element"),
4821                    o = e.data("hover-color"),
4822                    a = i.css("color");
4823                "" !== o && (e.parents(".qode-start-icon-hover").length ? (e.parents(".qode-start-icon-hover").on("mouseenter", {
4824                    icon: i,
4825                    color: o
4826                }, t), e.parents(".qode-start-icon-hover").on("mouseleave", {
4827                    icon: i,
4828                    color: a
4829                }, t)) : (e.on("mouseenter", {
4830                    icon: i,
4831                    color: o
4832                }, t), e.on("mouseleave", {
4833                    icon: i,
4834                    color: a
4835                }, t)))
4836            }
4837        },
4838        i = function(e) {
4839            if (void 0 !== e.data("hover-background-color")) {
4840                var t = function(e) {
4841                        e.data.icon.css("background-color", e.data.color)
4842                    },
4843                    i = e.data("hover-background-color"),
4844                    o = e.css("background-color");
4845                "" !== i && (e.parents(".qode-start-icon-hover").length ? (e.parents(".qode-start-icon-hover").on("mouseenter", {
4846                    icon: e,
4847                    color: i
4848                }, t), e.parents(".qode-start-icon-hover").on("mouseleave", {
4849                    icon: e,
4850                    color: o
4851                }, t)) : (e.on("mouseenter", {
4852                    icon: e,
4853                    color: i
4854                }, t), e.on("mouseleave", {
4855                    icon: e,
4856                    color: o
4857                }, t)))
4858            }
4859        };
4860    return {
4861        init: function() {
4862            e.length && e.each(function() {
4863                t($j(this)), i($j(this))
4864            })
4865        }
4866    }
4867};
4868! function(e) {
4869    "use strict";
4870    e.fn.extend({
4871        mouseParallax: function(t) {
4872            var i = {
4873                    moveFactor: 1.5,
4874                    targetContainer: this
4875                },
4876                t = e.extend(i, t);
4877            return this.each(function() {
4878                var i = t,
4879                    o = e(i.targetContainer).find(".image, .paralax_layers_content_holder");
4880                o.each(function(t) {
4881                    e(this).css("z-index", t)
4882                });
4883                var a, n;
4884                a = e(i.targetContainer).offset().left, n = e(i.targetContainer).offset().top, e(i.targetContainer).on("mouseenter", function(t) {
4885                    a = t.pageX - e(this).offset().left, n = t.pageY - e(this).offset().top
4886                }), e(i.targetContainer).on("mousemove", function(t) {
4887                    var s = e(this).offset().left + a,
4888                        r = e(this).offset().top + n,
4889                        d = t.pageX - s,
4890                        l = t.pageY - r;
4891                    o.each(function(t) {
4892                        e(this).css({
4893                            marginLeft: -d / 100 * i.moveFactor * (t + 1),
4894                            marginTop: -l / 100 * i.moveFactor * (t + 1)
4895                        }, 100)
4896                    })
4897                });
4898                var s = {
4899                    interval: 0,
4900                    over: function() {},
4901                    timeout: 500,
4902                    out: function() {
4903                        o.each(function(t) {
4904                            e(this).stop().animate({
4905                                marginLeft: 0,
4906                                marginTop: 0
4907                            }, 300)
4908                        })
4909                    }
4910                };
4911                e(i.targetContainer).hoverIntent(s)
4912            })
4913        }
4914    })
4915}(jQuery);
4916var qodeCardsSlider = function() {
4917    var e = function(e, t, i, o, a, n) {
4918            t.data("card-slide", o).attr("data-card-slide", o),
4919                t.find(".qode-card-slider").css("margin-left", n ? -a.position().left + $j(t).outerWidth() / 2 - a.outerWidth() / 2 : -a.position().left), setTimeout(function() {
4920                qodeLazyImages()
4921            }, 500);
4922            var s = i < o ? 1 : -1;
4923            s > 0 && o == e.length ? t.find('.button[data-direction="next"]').addClass("hidden") : t.find('.button[data-direction="next"]').removeClass("hidden"), s < 0 && 1 == o ? t.find('.button[data-direction="prev"]').addClass("hidden") : t.find('.button[data-direction="prev"]').removeClass("hidden")
4924        },
4925        t = function(t, i, o) {
4926            t.each(function(t, a) {
4927                var n = $j(a).find(".qode-card-slider > .slide"),
4928                    s = $j(a).find(".dot"),
4929                    r = Math.round(n.length / 2) - 1;
4930                i ? (s.length > 0 ? $j(s[r]).click() : e(n, $j(a), 1, r, $j(n[r]), o), $j(a).data("card-slide", r + 1).attr("data-card-slide", r + 1), $j(a).find(".button").removeClass("hidden")) : s.length > 0 ? $j(s[0]).click() : e(n, $j(a), 1, 1, $j(n[0]), o)
4931            })
4932        },
4933        i = function(e, t, i) {
4934            t.find(".qode-card-slider").width(99999), e.each(function() {
4935                $j(this).css("max-width", t.outerWidth())
4936            })
4937        },
4938        o = function() {
4939            $j(".cards").each(function() {
4940                var e = $j(this),
4941                    t = e.find(".card");
4942                t.each(function() {
4943                    var i = $j(this);
4944                    i.click(function() {
4945                        return t.last().is(i) || (i.detach(), i.insertAfter(t.last()), t = e.find(".card")), !1
4946                    })
4947                })
4948            })
4949        },
4950        a = function() {
4951            $j(".cards").each(function() {
4952                var e = $j(this),
4953                    t = e.find(".card").get().reverse();
4954                e.appear(function() {
4955                    $j(t).each(function(e) {
4956                        var t = $j(this);
4957                        setTimeout(function() {
4958                            t.addClass("hovered"), setTimeout(function() {
4959                                t.removeClass("hovered")
4960                            }, 600)
4961                        }, 200 * e)
4962                    })
4963                }, {
4964                    accX: 0,
4965                    accY: -$window_height / 3
4966                })
4967            })
4968        },
4969        n = function() {
4970            $j(".qode-cards-holder .card").each(function(e, t) {
4971                $j(t).click(function() {
4972                    var e = $j("." + $j(t).data("value"));
4973                    return e.closest(".qode-card-panes").find(".pane").removeClass("active"), e.addClass("active"), qodeLazyImages(), !1
4974                })
4975            }), $j(".qode-cards-holder").each(function(e, t) {
4976                $j(t).find(".qode-card-panes .pane").last().addClass("active"), $j(t).find(".qode-card-panes .pane .card").length ? $j(t).find(".qode-card-panes .pane .card").each(function(e, i) {
4977                    $j(i).detach(), $j(t).find(".qode-cards-header").append($j(i))
4978                }) : $j(t).find(".qode-cards-header").remove()
4979            })
4980        },
4981        s = function() {
4982            $j(".qode-card-panes").each(function() {
4983                var e = $j(this),
4984                    t = -1,
4985                    i = e.find(".pane").height();
4986                t = t > i ? t : i, e.height(t)
4987            })
4988        },
4989        r = function(e) {
4990            e.swipe({
4991                swipeLeft: function() {
4992                    e.find('.button[data-direction="next"]').click()
4993                },
4994                swipeRight: function() {
4995                    e.find('.button[data-direction="prev"]').click()
4996                },
4997                threshold: 20
4998            })
4999        },
5000        d = function() {
5001            $j(".qode-card-slider-holder").each(function(o, a) {
5002                var n = $j(a).find(".qode-card-slider > .slide"),
5003                    d = $j(a).data("active-middle-slide"),
5004                    l = $j(a).data("center");
5005                $j(a).find(".button").each(function(t, i) {
5006                    $j(i).click(function() {
5007                        var t = "prev" == $j(i).data("direction") ? -1 : 1,
5008                            o = $j(a).data("card-slide"),
5009                            s = $j(a).data("card-slide") + t,
5010                            r = $j(a).find('.slide[data-card-slide="' + s + '"]');
5011                        return r.length && (e(n, $j(a), o, s, r, l), $j(a).find(".dot").removeClass("active").filter('[data-card-slide="' + s + '"]').addClass("active")), !1
5012                    })
5013                }), $j(a).find(".dot").each(function(t, i) {
5014                    $j(i).click(function() {
5015                        $j(a).find(".dot").removeClass("active"), $j(i).addClass("active");
5016                        var t = $j(a).data("card-slide"),
5017                            o = $j(i).data("card-slide"),
5018                            s = $j(a).find('.slide[data-card-slide="' + o + '"]');
5019                        return s.length && e(n, $j(a), t, o, s, l), !1
5020                    })
5021                }), i(n, $j(a)), t($j(a), d, l), r($j(a)), $j(window).resize(function() {
5022                    i(n, $j(a)), t($j(a), d, l), s()
5023                })
5024            })
5025        };
5026    return {
5027        init: function() {
5028            $j(".qode-card-slider-holder").length && (d(), s(), n(), o())
5029        },
5030        load: function() {
5031            $j(".qode-card-slider-holder").length && (s(), a())
5032        }
5033    }
5034};
5035! function(e) {
5036    "use strict";
5037
5038    function t() {
5039        i()
5040    }
5041
5042    function i() {
5043        var t = e(".qode-advanced-image-gallery.qode-aig-masonry-type");
5044        t.length && t.each(function() {
5045            var t = e(this),
5046                i = t.find(".qode-aig-masonry");
5047            o(t.find(".qode-aig-grid-sizer").width(), t), i.waitForImages(function() {
5048                i.isotope({
5049                    layoutMode: "packery",
5050                    itemSelector: ".qode-aig-image",
5051                    percentPosition: !0,
5052                    packery: {
5053                        gutter: ".qode-aig-grid-gutter",
5054                        columnWidth: ".qode-aig-grid-sizer"
5055                    }
5056                }), setTimeout(function() {
5057                    i.isotope("layout"), initParallax()
5058                }, 800), i.css("opacity", "1")
5059            })
5060        })
5061    }
5062
5063    function o(e, t) {
5064        if (t.hasClass("qode-aig-images-fixed")) {
5065            var i = parseInt(t.find(".qode-aig-image").css("padding-left")),
5066                o = t.find(".qode-aig-default-masonry-item"),
5067                a = t.find(".qode-aig-large-width-masonry-item"),
5068                n = t.find(".qode-aig-large-height-masonry-item"),
5069                s = t.find(".qode-aig-large-masonry-item");
5070            qode.windowWidth > 680 ? (o.css("height", e - 2 * i), n.css("height", Math.round(2 * e) - 2 * i), s.css("height", Math.round(2 * e) - 2 * i), a.css("height", e - 2 * i)) : (o.css("height", e - 2 * i), n.css("height", 2 * e - 2 * i), s.css("height", e - 2 * i), a.css("height", Math.floor(e / 2) - 2 * i))
5071        }
5072    }
5073    var a = {};
5074    qode.modules.imageGallery = a, a.qodeInitAdvancedImageGalleryMasonry = i, a.qodeOnWindowLoad = t, e(window).load(t)
5075}
5075(jQuery),
5076    function(e) {
5077        "use strict";
5078
5079        function t() {
5080            i()
5081        }
5082
5083        function i() {
5084            var e = $j(".qode-comparison-slider");
5085            e.length && e.each(function(e) {
5086                var t = $j(this),
5087                    i = t.data("orientation"),
5088                    o = t.data("offset") / 100;
5089                t.waitForImages(function() {
5090                    t.css("visibility", "visible"), t.twentytwenty({
5091                        default_offset_pct: 1.1,
5092                        orientation: i
5093                    })
5094                }), t.appear(function() {
5095                    setTimeout(function() {
5096                        var e = t.height(),
5097                            a = t.width(),
5098                            n = e * o,
5099                            s = a * o,
5100                            r = t.find(".twentytwenty-handle"),
5101                            d = t.find("img:first-of-type"),
5102                            l = function() {
5103                                "horizontal" == i ? (r.css({
5104                                    left: +s + 1 + "px"
5105                                }), d.css({
5106                                    clip: "rect(0px " + s + "px " + e + "px 0px)"
5107                                })) : (r.css({
5108                                    top: +n + 1 + "px"
5109                                }), d.css({
5110                                    clip: "rect(0px " + a + "px " + n + "px 0px)"
5111                                }))
5112                            };
5113                        d.css("transition", "all 700ms cubic-bezier(0.645, 0.045, 0.355, 1) 100ms"), r.css("transition", "all 700ms cubic-bezier(0.645, 0.045, 0.355, 1) 100ms"), l(), setTimeout(function() {
5114                            d.css("transition", "none"), r.css("transition", "none")
5115                        }, 700), $j(window).resize(function() {
5116                            e = t.height(), a = t.width(), n = e * o, s = a * o, l()
5117                        })
5118                    }, 100)
5119                }, {
5120                    accX: 0,
5121                    accY: -200
5122                })
5123            })
5124        }
5125        var o = {};
5126        qode.modules.comparisonSlider = o, o.qodeInitComparisonSlider = i, o.qodeOnWindowLoad = t, e(document).ready(t)
5127    }(jQuery),
5128    function(e) {
5129        "use strict";
5130
5131        function t() {
5132            i()
5133        }
5134
5135        function i() {
5136            function t(e, t, i) {
5137                var o = h(e.eventsWrapper),
5138                    n = Number(e.timelineWrapper.css("width").replace("px", ""));
5139                "next" === i ? a(e, o - n + v, n - t) : a(e, o + n - v)
5140            }
5141
5142            function i(e, t, i) {
5143                var a = e.eventsContent.find(".selected");
5144                if (("next" === i ? a.next() : a.prev()).length > 0) {
5145                    var n = e.eventsWrapper.find(".selected"),
5146                        r = "next" === i ? n.parent("li").next("li").children("a") : n.parent("li").prev("li").children("a");
5147                    s(r, e.fillingLine, t), l(r, e.eventsContent), r.addClass("selected"), n.removeClass("selected"), c(r), o(i, r, e)
5148                }
5149            }
5150
5151            function o(e, t, i) {
5152                var o = window.getComputedStyle(t.get(0), null),
5153                    n = Number(o.getPropertyValue("left").replace("px", "")),
5154                    s = Number(i.timelineWrapper.css("width").replace("px", "")),
5155                    r = Number(i.eventsWrapper.css("width").replace("px", "")),
5156                    d = h(i.eventsWrapper);
5157                ("next" === e && n > s - d || "prev" == e && n < -d) && a(i, s / 2 - n, s - r)
5158            }
5159
5160            function a(e, t, i) {
5161                var o = e.eventsWrapper.get(0);
5162                t = t > 0 ? 0 : t, t = void 0 !== i && t < i ? i : t, _(o, "translateX", t + "px"), 0 === t ? e.timelineNavigation.find(".qode-prev").addClass("inactive") : e.timelineNavigation.find(".qode-prev").removeClass("inactive"), t === i ? e.timelineNavigation.find(".qode-next").addClass("inactive") : e.timelineNavigation.find(".qode-next").removeClass("inactive")
5163            }
5164
5165            function n(e) {
5166                e.timelineNavigation.find(".qode-prev").addClass("inactive"), e.timelineNavigation.find(".qode-next").addClass("inactive")
5167            }
5168
5169            function s(e, t, i) {
5170                var o = window.getComputedStyle(e.get(0), null),
5171                    a = o.getPropertyValue("left"),
5172                    n = o.getPropertyValue("width");
5173                a = Number(a.replace("px", "")) + Number(n.replace("px", "")) / 2;
5174                var s = a / i;
5175                _(t.get(0), "scaleX", s)
5176            }
5177
5178            function r(e, t, i) {
5179                for (var o = !1, a = 0; a < e.timelineDates.length; a++) {
5180                    var s = f(e.timelineDates[0], e.timelineDates[a]),
5181                        r = Math.round(s / e.eventsMinLapse) + 1;
5182                    e.timelineEvents.eq(a).css("left", r * t - 24 + "px"), o = r * t < i.outerWidth() - 80
5183                }
5184                if (o) {
5185                    n(e);
5186                    for (var d = (i.outerWidth() - 80 - 24 * (e.timelineDates.length - 1)) / (e.timelineDates.length + 1), a = 0; a < e.timelineDates.length; a++) e.timelineEvents.eq(a).css("left", (a + 1) * d + "px")
5187                }
5188            }
5189
5190            function d(e, t, i) {
5191                var a = f(e.timelineDates[0], e.timelineDates[e.timelineDates.length - 1]),
5192                    n = a / e.eventsMinLapse,
5193                    n = Math.round(n) + 2,
5194                    r = n * t;
5195                return r < i.outerWidth() - 80 && (r = i.outerWidth() - 80), e.eventsWrapper.css("width", r + "px"), s(e.eventsWrapper.find("a.selected"), e.fillingLine, r), o("next", e.eventsWrapper.find("a.selected"), e), r
5196            }
5197
5198            function l(e, t) {
5199                var i = e.data("date"),
5200                    o = t.find(".selected"),
5201                    a = t.find('[data-date="' + i + '"]'),
5202                    n = a.height();
5203                if (a.index() > o.index()) var s = "selected qode-enter-right",
5204                    r = "qode-leave-left";
5205                else var s = "selected qode-enter-left",
5206                    r = "qode-leave-right";
5207                a.attr("class", s), o.attr("class", r).one("webkitAnimationEnd oanimationend msAnimationEnd animationend", function() {
5208                    o.removeClass("qode-leave-right qode-leave-left"), a.removeClass("qode-enter-left qode-enter-right")
5209                }), t.css("height", n + "px")
5210            }
5211
5212            function c(e) {
5213                e.parent("li").prevAll("li").children("a").addClass("older-event").end().end().nextAll("li").children("a").removeClass("older-event")
5214            }
5215
5216            function h(e) {
5217                var t = window.getComputedStyle(e.get(0), null),
5218                    i = t.getPropertyValue("-webkit-transform") || t.getPropertyValue("-moz-transform") || t.getPropertyValue("-ms-transform") || t.getPropertyValue("-o-transform") || t.getPropertyValue("transform");
5219                if (i.indexOf("(") >= 0) {
5220                    var i = i.split("(")[1];
5221                    i = i.split(")")[0], i = i.split(",");
5222                    var o = i[4]
5223                } else var o = 0;
5224                return Number(o)
5225            }
5226
5227            function _(e, t, i) {
5228                e.style["-webkit-transform"] = t + "(" + i + ")", e.style["-moz-transform"] = t + "(" + i + ")", e.style["-ms-transform"] = t + "(" + i + ")", e.style["-o-transform"] = t + "(" + i + ")", e.style.transform = t + "(" + i + ")"
5229            }
5230
5231            function u(t) {
5232                var i = [];
5233                return t.each(function() {
5234                    var t = e(this),
5235                        o = t.data("date").split("T");
5236                    if (o.length > 1) var a = o[0].split("/"),
5237                        n = o[1].split(":");
5238                    else if (o[0].indexOf(":") >= 0) var a = ["2000", "0", "0"],
5239                        n = o[0].split(":");
5240                    else var a = o[0].split("/"),
5241                            n = ["0", "0"];
5242                    var s = new Date(a[2], a[1] - 1, a[0], n[0], n[1]);
5243                    i.push(s)
5244                }), i
5245            }
5246
5247            function f(e, t) {
5248                return Math.round(t - e)
5249            }
5250
5251            function p(e) {
5252                for (var t = [], i = 1; i < e.length; i++) {
5253                    var o = f(e[i - 1], e[i]);
5254                    t.push(o)
5255                }
5256                return Math.min.apply(null, t)
5257            }
5258
5259            function g(e) {
5260                for (var t = e.offsetTop, i = e.offsetLeft, o = e.offsetWidth, a = e.offsetHeight; e.offsetParent;) e = e.offsetParent, t += e.offsetTop, i += e.offsetLeft;
5261                return t < window.pageYOffset + window.innerHeight && i < window.pageXOffset + window.innerWidth && t + a > window.pageYOffset && i + o > window.pageXOffset
5262            }
5263
5264            function m() {
5265                return window.getComputedStyle(document.querySelector(".qode-horizontal-timeline"), "::before").getPropertyValue("content").replace(/'/g, "").replace(/"/g, "")
5266            }
5267            var $ = e(".qode-horizontal-timeline"),
5268                v = 120;
5269            qode.windowWidth > 680 && qode.windowWidth <= 1024 ? v = 60 : qode.windowWidth < 680 && (v = 105), $.length && $.each(function() {
5270                var o = e(this),
5271                    a = {};
5272                a.timelineWrapper = o.find(".qode-events-wrapper"), a.eventsWrapper = a.timelineWrapper.children(".qode-events"), a.fillingLine = a.eventsWrapper.children(".qode-filling-line"), a.timelineEvents = a.eventsWrapper.find("a"), a.timelineDates = u(a.timelineEvents), a.eventsMinLapse = p(a.timelineDates), a.timelineNavigation = o.find(".qode-timeline-navigation"), a.eventsContent = o.
5272children(".qode-events-content"), a.eventsWrapper.find("ol li:first-child a").addClass("selected"), a.eventsContent.find("ol li:first-child").addClass("selected"), r(a, v, o);
5273                var n = d(a, v, o);
5274                o.addClass("loaded"), a.timelineNavigation.on("click", ".qode-next", function(e) {
5275                    e.preventDefault(), t(a, n, "next")
5276                }), a.timelineNavigation.on("click", ".qode-prev", function(e) {
5277                    e.preventDefault(), t(a, n, "prev")
5278                }), a.eventsWrapper.on("click", "a", function(t) {
5279                    t.preventDefault(), a.timelineEvents.removeClass("selected"), e(this).addClass("selected"), c(e(this)), s(e(this), a.fillingLine, n), l(e(this), a.eventsContent)
5280                }), a.eventsContent.on("swipeleft", function() {
5281                    "mobile" == m() && i(a, n, "next")
5282                }), a.eventsContent.on("swiperight", function() {
5283                    "mobile" == m() && i(a, n, "prev")
5284                }), e(document).keyup(function(e) {
5285                    "37" === e.which && g(o.get(0)) ? i(a, n, "prev") : "39" === e.which && g(o.get(0)) && i(a, n, "next")
5286                })
5287            })
5288        }
5289        var o = {};
5290        qode.modules.timeline = o, o.qodeInitHorizontalTimeline = i, o.qodeOnDocumentReady = t, e(document).ready(t)
5291    }(jQuery),
5292    function(e) {
5293        "use strict";
5294
5295        function t() {
5296            i()
5297        }
5298
5299        function i() {
5300            o()
5301        }
5302
5303        function o() {
5304            var t = e(".qode-irc-holder");
5305            t.length && t.each(function() {
5306                var t, i = e(this),
5307                    o = i.find(".irc-range-slider");
5308                "" != i.data("rate") && (t = parseFloat(i.data("rate"))), o.rangeslider({
5309                    polyfill: !1,
5310                    onInit: function(e, o) {
5311                        if ("" != i.data("active-color")) {
5312                            var n = i.data("active-color");
5313                            i.find(".rangeslider__fill").css("background-color", n), i.find(".rangeslider__handle").css("background-color", n)
5314                        }
5315                        a(i, t)
5316                    },
5317                    onSlide: function(e, o) {
5318                        a(i, t)
5319                    }
5320                })
5321            })
5322        }
5323
5324        function a(e, t) {
5325            var i, o, a, n, s, r = e.find(".irc-range-slider-loan"),
5326                d = e.find(".irc-range-slider-period"),
5327                l = e.find(".qode-irc-borrow-row .qode-irc-value"),
5328                c = e.find(".qode-irc-interest-row .qode-irc-value"),
5329                h = e.find(".qode-irc-total-row .qode-irc-value"),
5330                _ = e.find(".qode-irc-slider-loan-value.irc-current .irc-current-value"),
5331                u = e.find(".qode-irc-slider-period-value.irc-current .irc-current-value");
5332            i = parseFloat(r.val()), o = parseFloat(d.val()), a = i * t / 100, s = i + a, 0 != o && (n = s / o), l.html(Math.round(100 * n) / 100), c.html(Math.round(100 * a) / 100), h.html(Math.round(100 * s) / 100), _.html(i), u.html(o)
5333        }
5334        var n = {};
5335        qode.modules.interestRateCalculator = n, n.qodeInitInterestRateCalculator = i, n.qodeOnWindowLoad = t, e(document).ready(t)
5336    }(jQuery),
5337    function(e) {
5338        "use strict";
5339
5340        function t() {
5341            i()
5342        }
5343
5344        function i() {
5345            var t = e("#qode-multi-device-showcase");
5346            if (t.length) {
5347                var i = t.height(),
5348                    o = t.offset().top,
5349                    a = i - o,
5350                    n = e("#qode-mds-laptop-slider"),
5351                    s = n.find(".qode-mds-slide"),
5352                    r = e("#qode-mds-tablet-slider"),
5353                    d = r.find(".qode-mds-slide"),
5354                    l = e("#qode-mds-phone-slider"),
5355                    c = l.find(".qode-mds-slide"),
5356                    h = e("#qode-mds-spinner"),
5357                    _ = !1,
5358                    u = !1,
5359                    f = !1,
5360                    p = function() {
5361                        var e = $window_height - t.offset().top;
5362                        t.css("height", e)
5363                    },
5364                    g = function(t) {
5365                        t.find(".qode-mds-slides-inner").each(function() {
5366                            var t = e(this),
5367                                i = Math.round(t.parent().height() - 1),
5368                                o = Math.round(t.parent().width() - 1);
5369                            t.css({
5370                                height: i,
5371                                width: o
5372                            })
5373                        })
5374                    },
5375                    m = function(t, i, o, a) {
5376                        t.first().addClass("qode-active qode-mds-no-animation"), _ || a != o || (_ = !0, e(document).trigger("qodeMDSSlidePrepped"))
5377                    },
5378                    $ = function(e) {
5379                        e.filter(".qode-active").next().index() > 0 ? (e.removeClass("qode-remove qode-mds-no-animation"), e.filter(".qode-active").removeClass("qode-active").addClass("qode-remove"), e.filter(".qode-remove").next().addClass("qode-active")) : (e.removeClass("qode-active qode-remove qode-mds-no-animation"), e.last().addClass("qode-remove"), e.first().addClass("qode-active"))
5380                    },
5381                    v = function() {
5382                        var i = n.add(r).add(l),
5383                            o = i.length,
5384                            a = t.data("start-delay"),
5385                            h = t.data("slide-interval");
5386                        i.each(function(t) {
5387                            var i = e(this),
5388                                a = i.find(".qode-mds-slide");
5389                            a.length;
5390                            m(a, 0, o, t + 1)
5391                        }), qodeRequestAnimationFrame(), t.addClass("qode-mds-animating");
5392                        var _ = function() {
5393                            r.is(":visible") && l.is(":visible") ? ($(s), n.one(qode.animationEnd, function() {
5394                                $(d), r.one(qode.animationEnd, function() {
5395                                    $(c), l.one(qode.animationEnd, function() {
5396                                        setTimeout(function() {
5397                                            requestAnimFrame(_)
5398                                        }, h)
5399                                    })
5400                                })
5401                            })) : ($(s), n.one(qode.animationEnd, function() {
5402                                setTimeout(function() {
5403                                    requestAnimFrame(_)
5404                                }, h)
5405                            }))
5406                        };
5407                        setTimeout(function() {
5408                            _()
5409                        }, a)
5410                    },
5411                    j = function() {
5412                        if (t.hasClass("qode-mds-appear-effect") && !e("html").hasClass("touch")) {
5413                            var i = t.find(".qode-mds-device-holder"),
5414                                o = t.find(".qode-mds-content-holder");
5415                            t.addClass("qode-mds-loading"), h.fadeOut(300, function() {
5416                                i.addClass("qode-show-device"), t.one(qode.transitionEnd, function() {
5417                                    o.addClass("qode-show-item"), o.last().one(qode.transitionEnd, function() {
5418                                        f || (f = !0, e(document).trigger("qodeMDSReadyToScroll"))
5419                                    })
5420                                })
5421                            })
5422                        } else h.fadeOut(300), f || (f = !0, e(document).trigger("qodeMDSReadyToScroll"))
5423                    },
5424                    w = function() {
5425                        u || (u = !0, e(".qode-demos-filter-holder").length && e(".qode-demos-filter-holder").css("visibility", "visible"))
5426                    },
5427                    b = function() {
5428                        i = t.height(), o = t.offset().top, a = i - o
5429                    };
5430                ! function() {
5431                    if (t.hasClass("qode-mds-one-scroll-to-content") && !e("html").hasClass("touch")) {
5432                        var i = !1,
5433                            n = !1,
5434                            s = !1,
5435                            r = !0,
5436                            d = !1,
5437                            l = function() {
5438                                e(window).scrollTop() < a && (r = !1);
5439                                var t = function() {
5440                                    w(), n = !0, e("html, body").stop(!0).animate({
5441                                        scrollTop: a
5442                                    }, 1e3, "easeInOutQuint", function() {
5443                                        d = !0, d && e(window).scrollTop(a), e(window).scroll(function() {
5444                                            d && e(window).scrollTop(a)
5445                                        }), r = !0, s = !1, setTimeout(function() {
5446                                            n = !1, d = !1, e(document).trigger("qodeMDSScrolled")
5447                                        }, 200)
5448                                    })
5449                                };
5450                                e(window).scroll(function() {
5451                                    $scroll < a && (s = !0, i && (r = !1))
5452                                }), window.addEventListener("wheel", function(e) {
5453                                    if ($scroll < a) {
5454                                        var o = e.deltaY;
5455                                        i = o > 0, n || r ? (r || e.preventDefault(), r && !i && s && (n = !1, r = !1, e.preventDefault())) : i && (e.preventDefault(), t())
5456                                    }
5457                                    n && e.preventDefault()
5458                                }), e(document).on("mousedown", function(i) {
5459                                    e(window).outerWidth() <= i.pageX && $scroll <= a && (i.preventDefault(), t())
5460                                })
5461                            };
5462                        window.addEventListener("wheel", function(e) {
5463                            f && u || e.preventDefault()
5464                        }), window.addEventListener("scroll", function() {
5465                            f && u || e(window).scrollTop(o)
5466                        }), e(document).on("qodeMDSReadyToScroll", function() {
5467                            l()
5468                        })
5469                    }
5470                }(),
5471                    function() {
5472                        if (t.hasClass("qode-mds-btn-scroll-below")) {
5473                            t.find(".qode-mds-button-holder .qbutton").on("click", function(t) {
5474                                return t.preventDefault(), f && (w(), e("html, body").stop().animate({
5475                                    scrollTop: a
5476                                }, 1e3, "easeInOutQuint", function() {
5477                                    e(document).trigger("qodeMDSScrolled")
5478                                })), !1
5479                            })
5480                        }
5481                    }(), t.imagesLoaded({
5482                    background: !0
5483                }, function() {
5484                    p(), v()
5485                }), e(document).on("qodeMDSSlidePrepped", function() {
5486                    j()
5487                }), e(window).load(function() {
5488                    g(n)
5489                }), e(window).scroll(function() {
5490                    b()
5491                }), e(window).resize(function() {
5492                    p(), b(), g(n)
5493                })
5494            }
5495        }
5496        var o = {};
5497        qode.modules.multiDeviceShowcase = o, o.qodeInitMultiDeviceShowcase = i, o.qodeOnDocumentReady = t, e(document).ready(t)
5498    }(jQuery),
5499    function(e) {
5500        "use strict";
5501        e(document).ready(function() {})
5502    }(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.