PageSourceSearch

https://www.healthysouthsound.org/wp-content/themes/kleanity/js/script-core.js?ver=1.0.0

js healthysouthsound.org collected 2026-10-04 20:43:18 UTC 52,982 bytes, 1,119 lines download raw bytes

1(function($){
2	"use strict";
3
4	var kleanity_display = 'desktop';
5	if( typeof(window.matchMedia) == 'function' ){
6		$(window).on('resize kleanity-set-display', function(){
7			if( window.matchMedia('(max-width: 419px)').matches ){
8				kleanity_display = 'mobile-portrait';
9			}else if( window.matchMedia('(max-width: 767px)').matches ){
10				kleanity_display = 'mobile-landscape'
11			}else if( window.matchMedia('(max-width: 959px)').matches ){
12				kleanity_display = 'tablet'
13			}else{
14				kleanity_display = 'desktop';
15			}
16		});
17		$(window).trigger('kleanity-set-display');
18	}else{
19		$(window).on('resize kleanity-set-display', function(){
20			if( $(window).innerWidth() <= 419 ){
21				kleanity_display = 'mobile-portrait';
22			}else if( $(window).innerWidth() <= 767 ){
23				kleanity_display = 'mobile-landscape'
24			}else if( $(window).innerWidth() <= 959 ){
25				kleanity_display = 'tablet'
26			}else{
27				kleanity_display = 'desktop';
28			}
29		});
30		$(window).trigger('kleanity-set-display');
31	}
32
33	// ref : http://unscriptable.com/2009/03/20/debouncing-javascript-methods/
34	// ensure 1 is fired
35	var kleanity_debounce = function(func, threshold, execAsap){
36		
37		var timeout;
38
39		return function debounced(){
40			
41			var obj = this, args = arguments;
42			
43			function delayed(){
44				if( !execAsap ){
45					func.apply(obj, args);
46				}
47				timeout = null;
48			};
49
50			if( timeout ){
51				clearTimeout(timeout);
52			}else if( execAsap ){
53				func.apply(obj, args);
54			}
55			timeout = setTimeout(delayed, threshold);
56		};
57	}	
58	
59	// reduce the event occurance
60	var kleanity_throttling = function(func, threshold){
61		
62		var timeout;
63
64		return function throttled(){
65			var obj = this, args = arguments;
66			
67			function delayed(){
68				func.apply(obj, args);
69				timeout = null;
70			};
71
72			if( !timeout ){
73				timeout = setTimeout(delayed, threshold);
74			}
75		};
76	}	
77
78	/////////////////////////
79	// menu handle function
80	/////////////////////////
81	var kleanity_sf_menu = function( menu ){
82
83		if( menu.length == 0 ) return;
84
85		this.main_menu = menu;
86
87		this.slide_bar = this.main_menu.children('.kleanity-navigation-slide-bar');
88		this.slide_bar_val = { left: 0 };
89
90		this.current_menu = this.main_menu.children('.sf-menu').children('.current-menu-item, .current-menu-ancestor').children('a');
91		
92		this.init();
93		
94	} // kleanity_sf_menu
95
96	kleanity_sf_menu.prototype = {
97		
98		init: function(){
99			
100			var t = this;
101			
102			// sf menu mod
103			t.sf_menu_mod();
104			
105			// init superfish menu
106			if(typeof($.fn.superfish) == 'function'){
107				t.main_menu.superfish({ delay: 400, speed: 'fast' });	
108				
109				t.sf_menu_position();
110				$(window).resize(kleanity_debounce(function(){
111					t.sf_menu_position();
112				}, 300));
113			}
114			
115			// init the slidebar
116			if( t.slide_bar.length > 0 ){
117				t.init_slidebar();
118			}
119			
120		}, // init
121		
122		sf_menu_mod: function(){
123			
124			// create the mega menu script
125			this.main_menu.find('.sf-mega > ul').each(function(){	
126				var mega_content = $('<div></div>');
127				var mega_row = $('<div class="sf-mega-section-wrap" ></div>');
128				var mega_column_size = 0;
129				
130				$(this).children('li').each(function(){
131					var column_size = parseInt($(this).attr('data-size'));
132					if( mega_column_size + column_size  <= 60 ){
133						mega_column_size += column_size;
134					}else{	
135						mega_column_size = column_size;
136						mega_content.append(mega_row);
137						mega_row = $('<div class="sf-mega-section-wrap" ></div>');
138					}
139					
140					mega_row.append( $('<div class="sf-mega-section" ></div>')
141						.addClass('kleanity-column-' + column_size)
142						.html( $('<div class="sf-mega-section-inner" ></div>')
143							.addClass($(this).attr('class'))
144							.attr('id', $(this).attr('id'))
145							.html($(this).html())
146						)
147					);
148				});
149				
150				mega_content.append(mega_row);
151				$(this).replaceWith(mega_content.html());
152			});
153			
154		}, // sf_menu_mod
155		
156		sf_menu_position: function(){
157
158			if( kleanity_display == 'mobile-landscape' || kleanity_display == 'mobile-portrait' || kleanity_display == 'tablet' ) return;
159
160			// submenu of normal menu
161			var sub_normal_menu = this.main_menu.find('.sf-menu > li.kleanity-normal-menu .sub-menu');
162			
163			sub_normal_menu.css({display: 'block'}
163).removeClass('sub-menu-right');
164			sub_normal_menu.each(function(){
165				if( $(this).offset().left + $(this).width() > $(window).width() ){
166					$(this).addClass('sub-menu-right');
167				}
168			});
169			sub_normal_menu.css({display: 'none'});
170			
171			// submenu of mega menu
172			this.main_menu.find('.sf-menu > li.kleanity-mega-menu .sf-mega').each(function(){
173				if( !$(this).hasClass('sf-mega-full') ){
174					
175					$(this).css({ display: 'block' });
176					
177					// set the position
178					$(this).css({ right: '', 'margin-left': -(($(this).width() - $(this).parent().outerWidth()) / 2) });
179					
180					// if exceed the screen
181					if( $(this).offset().left + $(this).width() > $(window).width() ){
182						$(this).css({ right: 0, 'margin-left': '' });
183					}
184					
185					$(this).css({ display: 'none' });
186				}
187				
188			});
189			
190		}, // sf_menu_position
191		
192		init_slidebar: function(){
193			
194			var t = this;
195			
196			t.init_slidebar_pos();
197			$(window).load(function(){ t.init_slidebar_pos(); });
198			
199			// animate slidebar 
200			t.main_menu.children('.sf-menu').children('li').hover(function(){
201				var nav_element = $(this).children('a');
202
203				if( nav_element.length > 0 ){
204					t.slide_bar.animate({ left: nav_element.position().left }, { queue: false, duration: 250 });
205				}
206			}, function(){
207				t.slide_bar.animate({ left: t.slide_bar_val.left }, { queue: false, duration: 250 });
208			});
209			
210			// window resize event
211			$(window).on('resize', function(){ t.init_slidebar_pos(); });
212			$(window).on('kleanity-navigation-slider-bar-init', function(){ 
213				t.current_menu = t.main_menu.children('.sf-menu').children('.current-menu-item, .current-menu-ancestor').children('a');
214				t.animate_slidebar_pos(); 
215			});
216			$(window).on('kleanity-navigation-slider-bar-animate', function(){ t.animate_slidebar_pos(); });
217			
218		}, // init_slidebar
219		
220		init_slidebar_pos: function(){
221
222			if( kleanity_display == 'mobile-landscape' || kleanity_display == 'mobile-portrait' || kleanity_display == 'tablet' ) return;
223
224			var t = this;
225
226			if( t.current_menu.length > 0 ){
227				t.slide_bar_val = { left: t.current_menu.position().left };
228			}else{
229				t.slide_bar_val = { left: t.main_menu.children('ul').children('li:first-child').position().left }
230			}
231			t.slide_bar.css({ left: t.slide_bar_val.left, display: 'block' });
232
233		}, // set_slidebar_pos	
234		animate_slidebar_pos: function(){
235
236			if( kleanity_display == 'mobile-landscape' || kleanity_display == 'mobile-portrait' || kleanity_display == 'tablet' ) return;
237
238			var t = this;
239
240			if( t.current_menu.length > 0 ){
241				t.slide_bar_val = { left: t.current_menu.position().left };
242			}else{
243				t.slide_bar_val = { left: t.main_menu.children('ul').children('li:first-child').position().left }
244			}
245			t.slide_bar.animate({ left: t.slide_bar_val.left }, { queue: false, duration: 250 });
246
247		} // set_slidebar_pos
248		
249	}; // kleanity_sf_menu.prototype
250	
251	/////////////////////////
252	// mobile menu
253	/////////////////////////
254	$.fn.kleanity_mobile_menu = function( args ){
255		
256		var menu_button = $(this).siblings('.kleanity-mm-menu-button');
257		var options = {
258			navbar: { title: '<span class="mmenu-custom-close" ></span>' },
259			extensions: [ 'pagedim-black' ],
260
261		};
262		var extensions = { 
263			offCanvas: { pageNodetype: '.kleanity-body-outer-wrapper' } 
264		};
265
266		// remove the wrap for submenu
267		$(this).find('a[href="#"]').each(function(){
268			var content = $(this).html();
269			$('<span class="kleanity-mm-menu-blank" ></span>').html(content).insertBefore($(this));
270			$(this).remove();
271		});
272		
273		if( $(this).attr('data-slide') ){
274			var html_class = 'kleanity-mmenu-' + $(this).attr('data-slide');
275			$('html').addClass(html_class);
276
277			options.offCanvas = { position : $(this).attr('data-slide') };
278		}		
279		
280		$(this).mmenu(options, extensions);
281
282		var menu_api = $(this).data('mmenu');
283		$(this).find('a').not('.mm-next, .mm-prev').click(function(){
284			menu_api.close();
285		});
286		$(this).find('.mmenu-custom-close').click(function(){
287			menu_api.close();
288		});
289
290		// add class active to button
291		menu_api.bind('open', function($panel){
292			menu_button.addClass('kleanity-active');
293		});
294		menu_api.bind('close', function($panel){
295			menu_button.removeClass('kleanity-active');
296		});
297
298	}	
299
300	/////////////////////////
301	// overlay menu
302	/////////////////////////
303	var kleanity_overlay_menu = function( menu ){
304
305		this.menu = menu;
306		this.menu_button = menu.children('.kleanity-overlay-menu-icon');
307		this.menu_content = menu.children('.kleanity-overlay-menu-content');
308		this.menu_close = this.menu_content.children('.kleanity-overlay-menu-close');
309
310		this.init();
311	}
312	kleanity_overlay_menu.prototype = {
313		
314		init: function(){
315
316			var t = this;
317
318			// add transition delay for each menu
319			var delay_count = 0;
320			t.menu_content.appendTo('body');
321			t.menu_content.find('ul.menu > li').each(function(){
322				$(this).css('transition-delay', (delay_count * 150) + 'ms');
323
324				delay_count++;
325			});
326
327			// bind the menu button
328			t.menu_button.click(function(){
329				$(this).addClass('kleanity-active');
330
331				t.menu_content.fadeIn(200, function(){
332					$(this).addClass('kleanity-active');
333				});
334
335				return false;
336			});
337
338			// bind the menu close button
339			t.menu_close.click(function(){
340				t.menu_button.removeClass('kleanity-active');
341
342				t.menu_content.fadeOut(400, function(){
343					$(this).removeClass('kleanity-active');
344				});
345				t.menu_content.find('.sub-menu').slideUp(200).removeClass('kleanity-active');
346
347				return false;
348			});
349
350			// menu item click
351			t.menu_content.find('a').click(function(e){ 
352				var sub_menu = $(this).siblings('.sub-menu');
353				if( sub_menu.length > 0 ){
354					if( !sub_menu.hasClass('kleanity-active') ){
355						var prev_active = sub_menu.closest('li').siblings().find('.sub-menu.kleanity-active');
356						if( prev_active.length > 0 ){
357							prev_active.removeClass('kleanity-active').slideUp(150);
358							sub_menu.delay(150).slideDown(400, 'easeOutQuart').addClass('kleanity-active');
359						}else{
360							sub_menu.slideDown(400, 'easeOutQuart').addClass('kleanity-active');
361						}
362
363						$(this).addClass('kleanity-no-preload');
364						return false;
365					}else{
366						$(this).removeClass('kleanity-no-preload');
367					}
368				}else{
369					t.menu_close.trigger('click');
370				}
371			});
372
373		}
374
375	}; // kleanity_overlay_menu.prototype
376
377	/////////////////////////
378	// header side navigation
379	/////////////////////////
380	var kleanity_header_side_nav = function( side_nav ){
381
382		if( side_nav.length == 0 ) return;
383
384		this.prev_scroll = 0;
385
386		this.side_nav = side_nav;
387		this.side_nav_content = side_nav.children();
388
389		this.init();
390
391	} // kleanity_header_side_nav
392
393	kleanity_header_side_nav.prototype = {
394
395		init: function(){
396
397			var t = this;
398
399			t.init_nav_bar_element();
400
401			$(window).resize(function(){ 
402				t.init_nav_bar_element();
403			});
404			
405			$(window).scroll(function(){
406
407				if( kleanity_display == 'mobile-landscape' || kleanity_display == 'mobile-portrait' || kleanity_display == 'tablet' ) return;
408
409				// if content longer than screen height
410				if( t.side_nav.hasClass('kleanity-allow-slide') ){
411
412					var admin_bar_height = parseInt($('html').css('margin-top'));
413					var scroll_down = ($(window).scrollTop() > t.prev_scroll);
414					t.prev_scroll = $(window).scrollTop();
415
416					// if scroll down
417					if( scroll_down ){
418
419						if( !t.side_nav.hasClass('kleanity-fix-bottom') ){
420							if( t.side_nav.hasClass('kleanity-fix-top') ){
421								t.side_nav.css('top', t.side_nav.offset().top);
422								t.side_nav.removeClass('kleanity-fix-top');
423
424							}else if( $(window).height() + $(window).scrollTop() > t.side_nav_content.offset().top + t.side_nav_content.outerHeight() ){ 
425								if( !t.side_nav.hasClass('kleanity-fix-bottom') ){
426									t.side_nav.addClass('kleanity-fix-bottom');
427									t.side_nav.css('top', '');
428								}
429							}
430						}
431
432					// if scroll up
433					}else{
434
435						if( !t.side_nav.hasClass('kleanity-fix-top') ){
436							if( t.side_nav.hasClass('kleanity-fix-bottom') ){
437								var top_pos = $(window).scrollTop() + ($(window).height() - admin_bar_height) - t.side_nav_content.outerHeight();
438								t.side_nav.css('top', top_pos);
439								t.side_nav.removeClass('kleanity-fix-bottom');
440
441							}else if( $(window).scrollTop() + admin_bar_height < t.side_nav_content.offset().top ){ 
442								if( !t.side_nav.hasClass('kleanity-fix-top') ){
443									t.side_nav.addClass('kleanity-fix-top');
444									t.side_nav.css('top', '');
445								}
446							}
447						}
448					
449					}
450
451				}
452			});
453
454		},
455
456		init_nav_bar_element: function(){
457
458			if( kleanity_display == 'mobile-landscape' || kleanity_display == 'mobile-portrait' || kleanity_display == 'tablet' ) return;
459
460			var t = this;
461			var middle_pos = t.side_nav_content.children('.kleanity-pos-middle').addClass('kleanity-active');
462			var bottom_pos = t.side_nav_content.children('.kleanity-pos-bottom').addClass('kleanity-active');
463
464			// remove all additional space
465			t.side_nav_content.children('.kleanity-pre-spaces').remove();
466
467			// add class depends on the screen size/content
468			if( $(window).height() < t.side_nav_content.height() ){
469				t.side_nav.addClass('kleanity-allow-slide');
470			}else{
471				t.side_nav.removeClass('kleanity-allow-slide kleanity-fix-top kleanity-fix-bottom').css('top', '');
472
473				// set the middle position
474				if( t.side_nav.hasClass('kleanity-style-middle') ){
475					middle_pos.each(function(){
476						var top_padding = parseInt($(this).css('padding-top'));
477						var prespace = ((t.side_nav.height() - (t.side_nav_content.height() - top_padding)) / 2) - top_padding;
478
479						if( prespace > 0 ){
480							$('<div class="kleanity-pre-spaces" ></div>').css('height', prespace).insertBefore($(this));
481						}
482					});
483				}
484
485				// set the bottom position
486				bottom_pos.each(function(){
487					var prespace = t.side_nav.height() - t.side_nav_content.height();
488
489					if( prespace > 0 ){
490						$('<div class="kleanity-pre-spaces" ></div>').css('height', prespace).insertBefore($(this));
491					}
492				});
493
494			}
495		}
496
497	}; // kleanity_sf_menu.prototype
498
499	/////////////////////////
500	// anchoring
501	/////////////////////////	
502
503	var kleanity_anchor = function(){
504
505		this.anchor_link = $('a[href^="#"]').not('[href="#"]').filter(function(){
506
507			// for mm-menu plugin
508			if( $(this).is('.kleanity-mm-menu-button, .mm-next, .mm-prev, .mm-title, .gdlr-core-ilightbox') ){
509				return false;
510			}
511			
512			// for additional plugins
513			if( $(this).is('.fbx-btn-transition') ){
514				return false;
515			}
516
517			// for woocommerce
518			if( $(this).parent('.description_tab, .reviews_tab').length || $(this).not('[class^="kleanity"]').closest('.woocommerce').length ){
519				return false;
520			}
521
522			return true;
523		});
524
525		if( this.anchor_link.length ){
526			this.menu_anchor = $('#kleanity-main-menu, #kleanity-bullet-anchor');
527			this.home_anchor = this.menu_anchor.find('ul.sf-menu > li.current-menu-item > a, ul.sf-menu > li.current-menu-ancestor > a, .kleanity-bullet-anchor-link.current-menu-item');
528
529			this.init();
530		}
531	}
532	kleanity_anchor.prototype = {
533
534		init: function(){
535
536			var t = this;
537
538			t.animate_anchor();
539			t.scroll_section();
540
541			// init bullet anchor height
542			t.menu_anchor.filter('#kleanity-bullet-anchor').each(function(){
543				$(this).css('margin-top', - t.menu_anchor.height() / 2).addClass('kleanity-init');
544			});
545
546			// initialize if the page hash exists
547			// wait for all element to initialize ( eg. flexslider )
548			var url_hash = window.location.hash;
549			if( url_hash ){
550				setTimeout(function(){
551
552					var current_menu = t.menu_anchor.find('a[href*="' + url_hash + '"]');
553					if( !current_menu.is('.current-menu-item, .current-menu-ancestor') ){
554						current_menu.addClass('current-menu-item').siblings().removeClass('current-menu-item current-menu-ancestor');
555
556						$(window).trigger('kleanity-navigation-slider-bar-init');
557					}
558
559					t.scroll_to(url_hash, false, 300);
560				}, 500);
561			}
562	
563		},
564
565		animate_anchor: function(){
566
567			var t = this;
568
569			// home anchor
570			t.home_anchor.click(function(){
571
572				if( window.location.href == this.href ){
573					$('html, body').animate({ scrollTop: 0 }, { duration: 1500, easing: 'easeOutQuart' });
574					return false;
575				}
576				
577			});
578
579			// normal anchor
580			t.anchor_link.click(function() {
581				if( location.hostname == this.hostname && location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') ){
582					return t.scroll_to(this.hash, true);
583				}
584			});
585
586		}, // animate anchor
587
588		scroll_to: function( hash, redirect, duration ){
589
590			// start scrolling
591			if( hash == '#kleanity-top-anchor' ){
592				var scroll_position = 0;
593			}else{
594				
595				var target = $(hash);
596
597				if( target.length ){
598					var scroll_position = target.offset().top;
599				}
600			}
601
602			if( typeof(scroll_position) != 'undefined' ){
603
604				// offset for wordpress admin bar
605				scroll_position = scroll_position - parseInt($('html').css('margin-top'));
606
607				// offset for fixed nav bar
608				if( typeof(window.kleanity_anchor_offset) != 'undefined' ){
609					scroll_position = scroll_position - parseInt(window.kleanity_anchor_offset);
610				}
611
612				if( scroll_position < 0 ) scroll_position = 0;
613
614				$('html, body').animate({ scrollTop: scroll_position }, { duration: 1500, easing: 'easeOutQuart', queue: false });
615
616				return false;
617
618			}else if( redirect ){
619
620				window.location.replace(kleanity_script_core.home_url + hash);
621
622				return false;
623			}
624
625		}, // scroll to
626
627		scroll_section: function(){
628
629			var t = this;
630
631			// have anchor in anchor menu
632			var menu_link_anchor = this.menu_anchor.find('a[href*="#"]').not('[href="#"]');
633			if( !menu_link_anchor.length ){ return; }
634
635			// get anchor section
636			var home_anchor_section = $('#kleanity-page-wrapper');
637			var anchor_section = home_anchor_section.find('div[id], section[id]');
638			if( !anchor_section.length ){ return; }
639
640			// add data for faster query
641			menu_link_anchor.each(function(){
642				if( $(this.hash).length ){
643					$(this).attr('data-anchor', this.hash);
644				}
645			});
646
647			// check section on scroll event
648			$(window).scroll(function(){
649
650				if( kleanity_display == 'mobile-landscape' || kleanity_display == 'mobile-portrait' || kleanity_display == 'tablet' ) return;
651				
652				if( t.home_anchor.length && $(window).scrollTop() < home_anchor_section.offset().top ){
653
654					t.home_anchor.each(function(){
655						if( $(this).hasClass('kleanity-bullet-anchor-link') ){
656							$(this).addClass('current-menu-item').siblings().removeClass('current-menu-item');
657							$(this).parent('.kleanity-bullet-anchor').attr('data-anchor-section', 'kleanity-home');
658						}else if( !$(this).parent('.current-menu-item, .current-menu-ancestor').length ){
659							$(this).parent().addClass('current-menu-item').siblings().removeClass('current-menu-item current-menu-ancestor');
660							$(window).trigger('kleanity-navigation-slider-bar-init');
661						}			
662					});
663
664				}else{
665					var section_position = $(window).scrollTop() + ($(window).height() / 2);
666
667					anchor_section.each(function(){
668						var top_offset_pos = $(this).offset().top
669
670						if( (section_position > top_offset_pos) && (section_position <  top_offset_pos + $(this).outerHeight()) ){
671							var section_id = $(this).attr('id');
672							menu_link_anchor.filter('[data-anchor="#' +  section_id + '"]').each(function(){
673								if( $(this).hasClass('kleanity-bullet-anchor-link') ){
674									$(this).addClass('current-menu-item').siblings().removeClass('current-menu-item');
675									$(this).parent('.kleanity-bullet-anchor').attr('data-anchor-section', section_id);
676								}else if( $(this).parent('li.menu-item').length && !$(this).parent('li.menu-item').is('.current-menu-item, .current-menu-ancestor') ){
677									$(this).parent('li.menu-item').addClass('current-menu-item').siblings().removeClass('current-menu-item current-menu-ancestor');
678									$(window).trigger('kleanity-navigation-slider-bar-init');
679								}
680							});
681							
682							return false;
683						}
684
685					});
686				}
687
688			});
689
690		} // scroll section
691
692	};
693
694	var kleanity_sticky_navigation = function(){
695
696		this.sticky_nav = $('.kleanity-with-sticky-navigation .kleanity-sticky-navigation');
697		this.sticky_nav_logo = this.sticky_nav.find('.kleanity-logo-inner img');
698		this.logo_height = 35;
699		
700		if( this.sticky_nav.length ){
701			this.mobile_menu = $('#kleanity-mobile-header');
702
703			this.init(); 
704		}
705
706	}
707	kleanity_sticky_navigation.prototype = {
708		
709		init: function(){
710
711			var t = this;
712
713			if( t.sticky_nav.hasClass('kleanity-style-fixed') ){
714				t.style_fixed();
715			}else if( t.sticky_nav.hasClass('kleanity-style-slide') ){
716				t.style_slide();
717			}
718			t.style_mobile_slide();
719
720			if( t.sticky_nav.hasClass('kleanity-sticky-navigation-height') ){
721				window.kleanity_anchor_offset = t.sticky_nav.outerHeight();
722				$(window).resize(function(){
723					window.kleanity_anchor_offset = t.sticky_nav.outerHeight();
724				});
725			}else{
726				window.kleanity_anchor_offset = 75;
727			}
728
729			$(window).trigger('kleanity-set-sticky-navigation'); 
730			$(window).trigger('kleanity-set-sticky-mobile-navigation'); 
731		},
732
733		style_fixed: function(){
734
735			var t = this;
736			var placeholder = $('<div class="kleanity-sticky-menu-placeholder" ></div>');
737
738			$(window).on('scroll kleanity-set-sticky-navigation', function(){
739
740				if( kleanity_display == 'mobile-landscape' || kleanity_display == 'mobile-portrait' || kleanity_display == 'tablet' ) return;
741
742				var page_offset = parseInt($('html').css('margin-top'));
743
744				if( !t.sticky_nav.hasClass('kleanity-fixed-navigation') ){
745
746					if( $(window).scrollTop() + page_offset > t.sticky_nav.offset().top ){
747						if( !t.sticky_nav.hasClass('kleanity-without-placeholder') ){
748							placeholder.height(t.sticky_nav.outerHeight());
749						}
750						placeholder.insertAfter(t.sticky_nav);
751						$('body').append(t.sticky_nav);
752						t.sticky_nav.addClass('kleanity-fixed-navigation');
753
754						var logo_padding = (t.logo_height - t.sticky_nav_logo.height()) / 2;
755						if( logo_padding > 0 ){
756							t.sticky_nav_logo.css({'padding-top': logo_padding, 'padding-bottom': logo_padding});
757						}else{
758							t.sticky_nav_logo.css({'height': t.sticky_nav_logo.height(), 'width': 'auto'}); // set for css animation
759							t.sticky_nav.addClass('kleanity-animate-logo-height');
760						}
761						
762						setTimeout(function(){ t.sticky_nav.addClass('kleanity-animate-fixed-navigation'); }, 10);	
763						setTimeout(function(){ 
764							t.sticky_nav.css('height', ''); 
765							$(window).trigger('kleanity-navigation-slider-bar-animate');
766						}, 200);
767					}
768				}else{
769
770					if( $(window).scrollTop() + page_offset <= placeholder.offset().top ){
771						if( !t.sticky_nav.hasClass('kleanity-without-placeholder') ){
772							t.sticky_nav.height(placeholder.height());
773						}
774						t.sticky_nav.insertBefore(placeholder);
775						t.sticky_nav.removeClass('kleanity-fixed-navigation');
776						placeholder.remove();
777
778						t.sticky_nav_logo.css({'padding-top': '', 'padding-bottom': ''});
779						setTimeout(function(){ t.sticky_nav.removeClass('kleanity-animate-fixed-navigation kleanity-animate-logo-height'); }, 10);	
780						setTimeout(function(){ 
781							t.sticky_nav.css('height', ''); 
782							t.sticky_nav_logo.css({'height': '', 'width': ''});
783							$(window).trigger('kleanity-navigation-slider-bar-animate');
784						}, 200);
785					}
786				}
787			});
788
789		}, // style_fixed
790
791		style_slide: function(){
792
793			var t = this;
794			var placeholder = $('<div class="kleanity-sticky-menu-placeholder" ></div>');
795
796			$(window).on('scroll kleanity-set-sticky-navigation', function(){
797
798				if( kleanity_display == 'mobile-landscape' || kleanity_display == 'mobile-portrait' || kleanity_display == 'tablet' ){ return; }
799
800				var page_offset = parseInt($('html').css('margin-top'));
801
802				if( !t.sticky_nav.hasClass('kleanity-fixed-navigation') ){
803
804					if( $(window).scrollTop() + page_offset > t.sticky_nav.offset().top + t.sticky_nav.outerHeight() + 200 ){
805						
806						var logo_padding = (t.logo_height - t.sticky_nav_logo.height()) / 2;
807
808						if( !t.sticky_nav.hasClass('kleanity-without-placeholder') ){
809							placeholder.height(t.sticky_nav.outerHeight());
810						}
811						placeholder.insertAfter(t.sticky_nav);
812						t.sticky_nav.css('display', 'none');
813
814						if( logo_padding > 0 ){
815							t.sticky_nav_logo.css({'padding-top': logo_padding, 'padding-bottom': logo_padding});
816						}
817
818						$('body').append(t.sticky_nav);
819						t.sticky_nav.addClass('kleanity-fixed-navigation kleanity-animate-fixed-navigation');
820						t.sticky_nav.slideDown(200);
821						$(window).trigger('kleanity-navigation-slider-bar-animate');
822					}
823				}else{
824
825					if( $(window).scrollTop() + page_offset <= placeholder.offset().top + placeholder.height() + 200 ){
826						var clone = t.sticky_nav.clone();
827						clone.insertAfter(t.sticky_nav);
828						clone.slideUp(200, function(){ $(this).remove(); });
829
830						t.sticky_nav.insertBefore(placeholder);
831						t.sticky_nav_logo.css({'padding-top': '', 'padding-bottom': ''});
832						placeholder.remove();
833						t.sticky_nav.removeClass('kleanity-fixed-navigation kleanity-animate-fixed-navigation');
834						t.sticky_nav.css('display', 'block');
835
836						$(window).trigger('kleanity-navigation-slider-bar-animate');
837					}
838				}
839			});
840
841		}, // style_slide		
842
843		style_mobile_slide: function(){
844
845			var t = this;
846			var placeholder = $('<div class="kleanity-sticky-mobile-placeholder" ></div>');
847
848			$(window).on('scroll kleanity-set-sticky-mobile-navigation', function(){
849
850				if( kleanity_display == 'mobile-landscape' || kleanity_display == 'mobile-portrait' || kleanity_display == 'tablet' ){
851
852					var page_offset = parseInt($('html').css('margin-top'));
853
854					if( !t.mobile_menu.hasClass('kleanity-fixed-navigation') ){
855						if( $(window).scrollTop() + page_offset > t.mobile_menu.offset().top + t.mobile_menu.outerHeight() + 200 ){
856							placeholder.height(t.mobile_menu.outerHeight()).insertAfter(t.mobile_menu);
857							$('body').append(t.mobile_menu);
858							t.mobile_menu.addClass('kleanity-fixed-navigation');
859							t.mobile_menu.css('display', 'none').slideDown(200);
860						}
861					}else{
862						if( $(window).scrollTop() + page_offset <= placeholder.offset().top + placeholder.height() + 200 ){
863							var clone = t.mobile_menu.clone();
864							clone.insertAfter(t.mobile_menu);
865							clone.slideUp(200, function(){ $(this).remove(); });
866
867							t.mobile_menu.insertBefore(placeholder);
868							placeholder.remove();
869							t.mobile_menu.removeClass('kleanity-fixed-navigation');
870							t.mobile_menu.css('display', 'block');
871						}
872					}
873				}
874
875			});
876
877		}, // style_slide
878
879	};
880
881	var kleanity_font_resize = function(){
882
883		this.heading_font = $('h1, h2, h3, h4, h5, h6');
884
885		this.init();
886
887	}
888	kleanity_font_resize.prototype = {
889
890		init: function(){
891
892			var t = this;
893
894			t.resize();
895			$(window).on('resize', kleanity_throttling(function(){
896				t.resize();
897			}, 100));
898
899		},
900
901		resize: function(){
902			
903			var t = this;
904
905			if( kleanity_display == 'mobile-landscape' || kleanity_display == 'mobile-portrait' ){
906
907				t.heading_font.each(function(){
908					if( parseInt($(this).css('font-size')) > 40 ){
909						if( !$(this).attr('data-orig-font') ){
910							$(this).attr('data-orig-font', $(this).css('font-size')); 
911						}
912
913						$(this).css('font-size', '40px');
914					}
915				});
916
917			// return font to normal
918			}else{
919
920				t.heading_font.filter('[data-orig-font]').each(function(){
921					$(this).css('font-size', $(this).attr('data-orig-font'));
922				});
923
924			}
925		}
926
927	};
928
929
930	////////////////////////////////
931	// starting running the script
932	////////////////////////////////
933	$(document).ready(function(){
934	
935		// resize font on mobile
936		new kleanity_font_resize();
937
938		// init main navigation menu
939		$('#kleanity-main-menu, #kleanity-right-menu, #kleanity-mobile-menu').each(function(){
940			if( $(this).hasClass('kleanity-overlay-menu') ){
941				new kleanity_overlay_menu( $(this) );
942			}else if( $(this).hasClass('kleanity-mm-menu-wrap') ){
943				$(this).kleanity_mobile_menu();
944			}else{
945				new kleanity_sf_menu( $(this) );
946			}
947		});
948
949		$('#kleanity-top-search, #kleanity-mobile-top-search').each(function(){
950
951			var search_wrap = $(this).siblings('.kleanity-top-search-wrap');
952			search_wrap.appendTo('body');
953
954			// bind click button
955			$(this).click(function(){
956				search_wrap.fadeIn(200, function(){
957					$(this).addClass('kleanity-active');
958				});
959			});
960
961			// bind close button
962			search_wrap.find('.kleanity-top-search-close').click(function(){
963				search_wrap.fadeOut(200, function(){
964					$(this).addClass('kleanity-active');
965				});
966			});
967
968			// bind search button
969			search_wrap.find('.search-submit').click(function(){
970				if( search_wrap.find('.search-field').val().length == 0 ){
971					return false;
972				}
973			});
974		});
975
976		$('#kleanity-main-menu-cart, #kleanity-mobile-menu-cart').each(function(){
977			
978			$(this).hover(function(){
979				$(this).addClass('kleanity-active kleanity-animating');
980			}, function(){
981				var menu_cart = $(this);
982				menu_cart.removeClass('kleanity-active');
983				setTimeout(function(){
984					menu_cart.removeClass('kleanity-animating');
985				}, 400)
986			});
987		});
988
989		// additional space for header transparent
990		$('.kleanity-header-boxed-wrap, .kleanity-header-background-transparent, .kleanity-navigation-bar-wrap.kleanity-style-transparent').each(function(){
991			var header_transparent = $(this);
992			var header_transparent_sub = $('.kleanity-header-transparent-substitute');
993
994			header_transparent_sub.height(header_transparent.outerHeight());
995			$(window).on('load resize', function(){
996				header_transparent_sub.height(header_transparent.outerHeight());
997			});
998		});
999
1000		// full screen for 404 not found
1001		$('body.error404, body.search-no-results').each(function(){
1002
1003			var wrap = $(this).find('#kleanity-full-no-header-wrap');
1004			var body_wrap_offset = parseInt($(this).children('.kleanity-body-outer-wrapper').children('.kleanity-body-wrapper').css('margin-bottom'));
1005			
1006			var padding = ($(window).height() - wrap.offset().top - wrap.outerHeight() - body_wrap_offset) / 2;
1007			if( padding > 0 ){
1008				wrap.css({ 'padding-top': padding, 'padding-bottom': padding });
1009			}
1010
1011			$(window).on('load resize', function(){
1012				wrap.css({ 'padding-top': 0, 'padding-bottom': 0 });
1013				padding = ($(window).height() - wrap.offset().top - wrap.outerHeight() - body_wrap_offset) / 2;
1014				if( padding > 0 ){
1015					wrap.css({ 'padding-top': padding, 'padding-bottom': padding });
1016				}
1017			});
1018		});
1019
1020		// back to top button
1021		var back_to_top = $('#kleanity-footer-back-to-top-button');
1022		if( back_to_top.length ){ 
1023			$(window).on('scroll', function(){
1024				if( $(window).scrollTop() > 300 ){
1025					back_to_top.addClass('kleanity-scrolled');
1026				}else{
1027					back_to_top.removeClass('kleanity-scrolled');
1028				}
1029			});
1030		}
1031
1032		// page preload
1033		$('body').children('#kleanity-page-preload').each(function(){
1034			var page_preload = $(this);
1035			var animation_time = parseInt(page_preload.attr('data-animation-time'));
1036			
1037			$('a[href]').not('[href^="#"], [target="_blank"], .gdlr-core-js, .strip, a[href$=".jpg"], a[href$=".png"], a[href$=".gif"]').click(function(e){
1038				if( e.which != 1 || $(this).hasClass('kleanity-no-preload') ) return;
1039				
1040				if( window.location.href != this.href ){
1041					page_preload.addClass('kleanity-out').fadeIn(animation_time);
1042				}
1043			});
1044			
1045			$(window).load(function(){
1046				page_preload.fadeOut(animation_time);
1047			});
1048		});
1049		
1050	});
1051
1052	// fix back button for preload
1053	$(window).bind('pageshow', function(event) {
1054	    if( event.originalEvent.persisted ){
1055	        $('body').children('#kleanity-page-preload').each(function(){
1056				$(this).fadeOut(400);
1057			});
1058	    }
1059	});
1060	$(window).on('beforeunload', function(){
1061		$('body').children('#kleanity-page-preload').each(function(){
1062			$(this).fadeOut(400);
1063		});
1064	});
1065
1066	$(window).load(function(){
1067
1068		// fixed footer
1069		$('#kleanity-fixed-footer').each(function(){
1070			var fixed_footer = $(this);
1071			var placeholder = $('<div class="kleanity-fixed-footer-placeholder" ></div>');
1072
1073			placeholder.insertBefore(fixed_footer);
1074			placeholder.height(fixed_footer.outerHeight());
1075			$(window).resize(function(){ placeholder.height(fixed_footer.outerHeight()); });
1076		});
1077
1078		// side navigation bar
1079		new kleanity_header_side_nav( $('#kleanity-header-side-nav') );
1080
1081		// sticky navigation
1082		new kleanity_sticky_navigation();
1083
1084		// anchoring
1085		new kleanity_anchor();
1086
1087	});
1088
1089})(jQuery);
1090
1091/***********/
1092/* Plugins */
1093/***********/
1094
1095/*
1096 * jQuery mmenu v5.6.1
1097 */
1098!function(e){function t(){e[n].glbl||(r={$wndw:e(window),$docu:e(document),$html:e("html"),$body:e("body")},i={},a={},o={},e.each([i,a,o],function(e,t){t.add=function(e){e=e.split(" ");for(var n=0,s=e.length;s>n;n++)t[e[n]]=t.mm(e[n])}}),i.mm=function(e){return"mm-"+e},i.add("wrapper menu panels panel nopanel current highest opened subopened navbar hasnavbar title btn prev next listview nolistview inset vertical selected divider spacer hidden fullsubopen"),i.umm=function(e){return"mm-"==e.slice(0,3)&&(e=e.slice(3)),e},a.mm=function(e){return"mm-"+e},a.add("parent sub"),o.mm=function(e){return e+".mm"},o.add("transitionend webkitTransitionEnd click scroll keydown mousedown mouseup touchstart touchmove touchend orientationchange"),e[n]._c=i,e[n]._d=a,e[n]._e=o,e[n].glbl=r)}var n="mmenu",s="5.6.1";if(!(e[n]&&e[n].version>s)){e[n]=function(e,t,n){this.$menu=e,this._api=["bind","init","update","setSelected","getInstance","openPanel","closePanel","closeAllPanels"],this.opts=t,this.conf=n,this.vars={},this.cbck={},"function"==typeof this.___deprecated&&this.___deprecated(),this._initMenu(),this._initAnchors();var s=this.$pnls.children();return this._initAddons(),this.init(s),"function"==typeof this.___debug&&this.___debug(),this},e[n].version=s,e[n].addons={},e[n].uniqueId=0,e[n].defaults={extensions:[],navbar:{add:!0,title:"Menu",titleLink:"panel"},onClick:{setSelected:!0},slidingSubmenus:!0},e[n].configuration={classNames:{divider:"Divider",inset:"Inset",panel:"Panel",selected:"Selected",spacer:"Spacer",vertical:"Vertical"},clone:!1,openingInterval:25,panelNodetype:"ul, ol, div",transitionDuration:400},e[n].prototype={init:function(e){e=e.not("."+i.nopanel),e=this._initPanels(e),this.trigger("init",e),this.trigger("update")},update:function(){this.trigger("update")},setSelected:function(e){this.$menu.find("."+i.listview).children().removeClass(i.selected),e.addClass(i.selected),this.trigger("setSelected",e)},openPanel:function(t){var s=t.parent(),a=this;if(s.hasClass(i.vertical)){var o=s.parents("."+i.subopened);
1098if(o.length)return void this.openPanel(o.first());s.addClass(i.opened),this.trigger("openPanel",t),this.trigger("openingPanel",t),this.trigger("openedPanel",t)}else{if(t.hasClass(i.current))return;var r=this.$pnls.children("."+i.panel),l=r.filter("."+i.current);r.removeClass(i.highest).removeClass(i.current).not(t).not(l).not("."+i.vertical).addClass(i.hidden),e[n].support.csstransitions||l.addClass(i.hidden),t.hasClass(i.opened)?t.nextAll("."+i.opened).addClass(i.highest).removeClass(i.opened).removeClass(i.subopened):(t.addClass(i.highest),l.addClass(i.subopened)),t.removeClass(i.hidden).addClass(i.current),a.trigger("openPanel",t),setTimeout(function(){t.removeClass(i.subopened).addClass(i.opened),a.trigger("openingPanel",t),a.__transitionend(t,function(){a.trigger("openedPanel",t)},a.conf.transitionDuration)},this.conf.openingInterval)}},closePanel:function(e){var t=e.parent();t.hasClass(i.vertical)&&(t.removeClass(i.opened),this.trigger("closePanel",e),this.trigger("closingPanel",e),this.trigger("closedPanel",e))},closeAllPanels:function(){this.$menu.find("."+i.listview).children().removeClass(i.selected).filter("."+i.vertical).removeClass(i.opened);var e=this.$pnls.children("."+i.panel),t=e.first();this.$pnls.children("."+i.panel).not(t).removeClass(i.subopened).removeClass(i.opened).removeClass(i.current).removeClass(i.highest).addClass(i.hidden),this.openPanel(t)},togglePanel:function(e){var t=e.parent();t.hasClass(i.vertical)&&this[t.hasClass(i.opened)?"closePanel":"openPanel"](e)},getInstance:function(){return this},bind:function(e,t){this.cbck[e]=this.cbck[e]||[],this.cbck[e].push(t)},trigger:function(){var e=this,t=Array.prototype.slice.call(arguments),n=t.shift();if(this.cbck[n])for(var s=0,i=this.cbck[n].length;i>s;s++)this.cbck[n][s].apply(e,t)},_initMenu:function(){this.$menu.attr("id",this.$menu.attr("id")||this.__getUniqueId()),this.conf.clone&&(this.$menu=this.$menu.clone(!0),this.$menu.add(this.$menu.find("[id]")).filter("[id]").each(function(){e(this).attr("id",i.mm(e(this).attr("id")))})),this.$menu.contents().each(function(){3==e(this)[0].nodeType&&e(this).remove()}),this.$pnls=e('<div class="'+i.panels+'" />').append(this.$menu.children(this.conf.panelNodetype)).prependTo(this.$menu),this.$menu.parent().addClass(i.wrapper);var t=[i.menu];this.opts.slidingSubmenus||t.push(i.vertical),this.opts.extensions=this.opts.extensions.length?"mm-"+this.opts.extensions.join(" mm-"):"",this.opts.extensions&&t.push(this.opts.extensions),this.$menu.addClass(t.join(" "))},_initPanels:function(t){var n=this,s=this.__findAddBack(t,"ul, ol");this.__refactorClass(s,this.conf.classNames.inset,"inset").addClass(i.nolistview+" "+i.nopanel),s.not("."+i.nolistview).addClass(i.listview);var o=this.__findAddBack(t,"."+i.listview).children();this.__refactorClass(o,this.conf.classNames.selected,"selected"),this.__refactorClass(o,this.conf.classNames.divider,"divider"),this.__refactorClass(o,this.conf.classNames.spacer,"spacer"),this.__refactorClass(this.__findAddBack(t,"."+this.conf.classNames.panel),this.conf.classNames.panel,"panel");var r=e(),l=t.add(t.find("."+i.panel)).add(this.__findAddBack(t,"."+i.listview).children().children(this.conf.panelNodetype)).not("."+i.nopanel);this.__refactorClass(l,this.conf.classNames.vertical,"vertical"),this.opts.slidingSubmenus||l.addClass(i.vertical),l.each(function(){var t=e(this),s=t;t.is("ul, ol")?(t.wrap('<div class="'+i.panel+'" />'),s=t.parent()):s.addClass(i.panel);var a=t.attr("id");t.removeAttr("id"),s.attr("id",a||n.__getUniqueId()),t.hasClass(i.vertical)&&(t.removeClass(n.conf.classNames.vertical),s.add(s.parent()).addClass(i.vertical)),r=r.add(s)});var d=e("."+i.panel,this.$menu);r.each(function(t){var s,o,r=e(this),l=r.parent(),d=l.children("a, span").first();if(l.is("."+i.panels)||(l.data(a.sub,r),r.data(a.parent,l)),l.children("."+i.next).length||l.parent().is("."+i.listview)&&(s=r.attr("id"),o=e('<a class="'+i.next+'" href="#'+s+'" data-target="#'+s+'" />').insertBefore(d),d.is("span")&&o.addClass(i.fullsubopen)),!r.children("."+i.navbar).length&&!l.hasClass(i.vertical)){l.parent().is("."+i.listview)?l=l.closest("."+i.panel):(d=l.closest("."+i.panel).find('a[href="#'+r.attr("id")+'"]').first(),l=d.closest("."+i.panel));var c=e('<div class="'+i.navbar+'" />');if(l.length){switch(s=l.attr("id"),n.opts.navbar.titleLink){case"anchor":_url=d.attr("href");break;case"panel":case"parent":_url="#"+s;break;default:_url=!1}c.append('<a class="'+i.btn+" "+i.prev+'" href="#'+s+'" data-target="#'+s+'" />').append(e('<a class="'+i.title+'"'+(_url?' href="'+_url+'"':"")+" />").text(d.text())).prependTo(r),n.opts.navbar.add&&r.addClass(i.hasnavbar)}else n.opts.navbar.title&&(c.append('<a class="'+i.title+'">'+n.opts.navbar.title+"</a>").prependTo(r),n.opts.navbar.add&&r.addClass(i.hasnavbar))}});var c=this.__findAddBack(t,"."+i.listview).children("."+i.selected).removeClass(i.selected).last(
1098).addClass(i.selected);c.add(c.parentsUntil("."+i.menu,"li")).filter("."+i.vertical).addClass(i.opened).end().each(function(){e(this).parentsUntil("."+i.menu,"."+i.panel).not("."+i.vertical).first().addClass(i.opened).parentsUntil("."+i.menu,"."+i.panel).not("."+i.vertical).first().addClass(i.opened).addClass(i.subopened)}),c.children("."+i.panel).not("."+i.vertical).addClass(i.opened).parentsUntil("."+i.menu,"."+i.panel).not("."+i.vertical).first().addClass(i.opened).addClass(i.subopened);var p=d.filter("."+i.opened);return p.length||(p=r.first()),p.addClass(i.opened).last().addClass(i.current),r.not("."+i.vertical).not(p.last()).addClass(i.hidden).end().filter(function(){return!e(this).parent().hasClass(i.panels)}).appendTo(this.$pnls),r},_initAnchors:function(){var t=this;r.$body.on(o.click+"-oncanvas","a[href]",function(s){var a=e(this),o=!1,r=t.$menu.find(a).length;for(var l in e[n].addons)if(e[n].addons[l].clickAnchor.call(t,a,r)){o=!0;break}var d=a.attr("href");if(!o&&r&&d.length>1&&"#"==d.slice(0,1))try{var c=e(d,t.$menu);c.is("."+i.panel)&&(o=!0,t[a.parent().hasClass(i.vertical)?"togglePanel":"openPanel"](c))}catch(p){}if(o&&s.preventDefault(),!o&&r&&a.is("."+i.listview+" > li > a")&&!a.is('[rel="external"]')&&!a.is('[target="_blank"]')){t.__valueOrFn(t.opts.onClick.setSelected,a)&&t.setSelected(e(s.target).parent());var h=t.__valueOrFn(t.opts.onClick.preventDefault,a,"#"==d.slice(0,1));h&&s.preventDefault(),t.__valueOrFn(t.opts.onClick.close,a,h)&&t.close()}})},_initAddons:function(){var t;for(t in e[n].addons)e[n].addons[t].add.call(this),e[n].addons[t].add=function(){};for(t in e[n].addons)e[n].addons[t].setup.call(this)},_getOriginalMenuId:function(){var e=this.$menu.attr("id");return e&&e.length&&this.conf.clone&&(e=i.umm(e)),e},__api:function(){var t=this,n={};return e.each(this._api,function(e){var s=this;n[s]=function(){var e=t[s].apply(t,arguments);return"undefined"==typeof e?n:e}}),n},__valueOrFn:function(e,t,n){return"function"==typeof e?e.call(t[0]):"undefined"==typeof e&&"undefined"!=typeof n?n:e},__refactorClass:function(e,t,n){return e.filter("."+t).removeClass(t).addClass(i[n])},__findAddBack:function(e,t){return e.find(t).add(e.filter(t))},__filterListItems:function(e){return e.not("."+i.divider).not("."+i.hidden)},__transitionend:function(e,t,n){var s=!1,i=function(){s||t.call(e[0]),s=!0};e.one(o.transitionend,i),e.one(o.webkitTransitionEnd,i),setTimeout(i,1.1*n)},__getUniqueId:function(){return i.mm(e[n].uniqueId++)}},e.fn[n]=function(s,i){return t(),s=e.extend(!0,{},e[n].defaults,s),i=e.extend(!0,{},e[n].configuration,i),this.each(function(){var t=e(this);if(!t.data(n)){var a=new e[n](t,s,i);a.$menu.data(n,a.__api())}})},e[n].support={touch:"ontouchstart"in window||navigator.msMaxTouchPoints||!1,csstransitions:function(){if("undefined"!=typeof Modernizr&&"undefined"!=typeof Modernizr.csstransitions)return Modernizr.csstransitions;var e=document.body||document.documentElement,t=e.style,n="transition";if("string"==typeof t[n])return!0;var s=["Moz","webkit","Webkit","Khtml","O","ms"];n=n.charAt(0).toUpperCase()+n.substr(1);for(var i=0;i<s.length;i++)if("string"==typeof t[s[i]+n])return!0;return!1}()};var i,a,o,r}}(jQuery),/*	
1099 * jQuery mmenu offCanvas addon
1100 * mmenu.frebsite.nl
1101 *
1102 * Copyright (c) Fred Heusschen
1103 */
1104function(e){var t="mmenu",n="offCanvas";e[t].addons[n]={setup:function(){if(this.opts[n]){var i=this.opts[n],a=this.conf[n];o=e[t].glbl,this._api=e.merge(this._api,["open","close","setPage"]),("top"==i.position||"bottom"==i.position)&&(i.zposition="front"),"string"!=typeof a.pageSelector&&(a.pageSelector="> "+a.pageNodetype),o.$allMenus=(o.$allMenus||e()).add(this.$menu),this.vars.opened=!1;var r=[s.offcanvas];"left"!=i.position&&r.push(s.mm(i.position)),"back"!=i.zposition&&r.push(s.mm(i.zposition)),this.$menu.addClass(r.join(" ")).parent().removeClass(s.wrapper),this.setPage(o.$page),this._initBlocker(),this["_initWindow_"+n](),this.$menu[a.menuInjectMethod+"To"](a.menuWrapperSelector);var l=window.location.hash;if(l){var d=this._getOriginalMenuId();d&&d==l.slice(1)&&this.open()}}},add:function(){s=e[t]._c,i=e[t]._d,a=e[t]._e,s.add("offcanvas slideout blocking modal background opening blocker page"),i.add("style"),a.add("resize")},clickAnchor:function(e,t){if(!this.opts[n])return!1;var s=this._getOriginalMenuId();if(s&&e.is('[href="#'+s+'"]'))return this.open(),!0;if(o.$page)return s=o.$page.first().attr("id"),s&&e.is('[href="#'+s+'"]')?(this.close(),!0):!1}},e[t].defaults[n]={position:"left",zposition:"back",blockUI:!0,moveBackgroun
1104d:!0},e[t].configuration[n]={pageNodetype:"div",pageSelector:null,noPageSelector:[],wrapPageIfNeeded:!0,menuWrapperSelector:"body",menuInjectMethod:"prepend"},e[t].prototype.open=function(){if(!this.vars.opened){var e=this;this._openSetup(),setTimeout(function(){e._openFinish()},this.conf.openingInterval),this.trigger("open")}},e[t].prototype._openSetup=function(){var t=this,r=this.opts[n];this.closeAllOthers(),o.$page.each(function(){e(this).data(i.style,e(this).attr("style")||"")}),o.$wndw.trigger(a.resize+"-"+n,[!0]);var l=[s.opened];r.blockUI&&l.push(s.blocking),"modal"==r.blockUI&&l.push(s.modal),r.moveBackground&&l.push(s.background),"left"!=r.position&&l.push(s.mm(this.opts[n].position)),"back"!=r.zposition&&l.push(s.mm(this.opts[n].zposition)),this.opts.extensions&&l.push(this.opts.extensions),o.$html.addClass(l.join(" ")),setTimeout(function(){t.vars.opened=!0},this.conf.openingInterval),this.$menu.addClass(s.current+" "+s.opened)},e[t].prototype._openFinish=function(){var e=this;this.__transitionend(o.$page.first(),function(){e.trigger("opened")},this.conf.transitionDuration),o.$html.addClass(s.opening),this.trigger("opening")},e[t].prototype.close=function(){if(this.vars.opened){var t=this;this.__transitionend(o.$page.first(),function(){t.$menu.removeClass(s.current).removeClass(s.opened),o.$html.removeClass(s.opened).removeClass(s.blocking).removeClass(s.modal).removeClass(s.background).removeClass(s.mm(t.opts[n].position)).removeClass(s.mm(t.opts[n].zposition)),t.opts.extensions&&o.$html.removeClass(t.opts.extensions),o.$page.each(function(){e(this).attr("style",e(this).data(i.style))}),t.vars.opened=!1,t.trigger("closed")},this.conf.transitionDuration),o.$html.removeClass(s.opening),this.trigger("close"),this.trigger("closing")}},e[t].prototype.closeAllOthers=function(){o.$allMenus.not(this.$menu).each(function(){var n=e(this).data(t);n&&n.close&&n.close()})},e[t].prototype.setPage=function(t){var i=this,a=this.conf[n];t&&t.length||(t=o.$body.find(a.pageSelector),a.noPageSelector.length&&(t=t.not(a.noPageSelector.join(", "))),t.length>1&&a.wrapPageIfNeeded&&(t=t.wrapAll("<"+this.conf[n].pageNodetype+" />").parent())),t.each(function(){e(this).attr("id",e(this).attr("id")||i.__getUniqueId())}),t.addClass(s.page+" "+s.slideout),o.$page=t,this.trigger("setPage",t)},e[t].prototype["_initWindow_"+n]=function(){o.$wndw.off(a.keydown+"-"+n).on(a.keydown+"-"+n,function(e){return o.$html.hasClass(s.opened)&&9==e.keyCode?(e.preventDefault(),!1):void 0});var e=0;o.$wndw.off(a.resize+"-"+n).on(a.resize+"-"+n,function(t,n){if(1==o.$page.length&&(n||o.$html.hasClass(s.opened))){var i=o.$wndw.height();(n||i!=e)&&(e=i,o.$page.css("minHeight",i))}})},e[t].prototype._initBlocker=function(){var t=this;this.opts[n].blockUI&&(o.$blck||(o.$blck=e('<div id="'+s.blocker+'" class="'+s.slideout+'" />')),o.$blck.appendTo(o.$body).off(a.touchstart+"-"+n+" "+a.touchmove+"-"+n).on(a.touchstart+"-"+n+" "+a.touchmove+"-"+n,function(e){e.preventDefault(),e.stopPropagation(),o.$blck.trigger(a.mousedown+"-"+n)}).off(a.mousedown+"-"+n).on(a.mousedown+"-"+n,function(e){e.preventDefault(),o.$html.hasClass(s.modal)||(t.closeAllOthers(),t.close())}))};var s,i,a,o}(jQuery),/*	
1105 * jQuery mmenu scrollBugFix addon
1106 * mmenu.frebsite.nl
1107 *
1108 * Copyright (c) Fred Heusschen
1109 */
1110function(e){var t="mmenu",n="scrollBugFix";e[t].addons[n]={setup:function(){var i=this,r=this.opts[n];this.conf[n];if(o=e[t].glbl,e[t].support.touch&&this.opts.offCanvas&&this.opts.offCanvas.modal&&("boolean"==typeof r&&(r={fix:r}),"object"!=typeof r&&(r={}),r=this.opts[n]=e.extend(!0,{},e[t].defaults[n],r),r.fix)){var l=this.$menu.attr("id"),d=!1;this.bind("opening",function(){this.$pnls.children("."+s.current).scrollTop(0)}),o.$docu.on(a.touchmove,function(e){i.vars.opened&&e.preventDefault()}),o.$body.on(a.touchstart,"#"+l+"> ."+s.panels+"> ."+s.current,function(e){i.vars.opened&&(d||(d=!0,0===e.currentTarget.scrollTop?e.currentTarget.scrollTop=1:e.currentTarget.scrollHeight===e.currentTarget.scrollTop+e.currentTarget.offsetHeight&&(e.currentTarget.scrollTop-=1),d=!1))}).on(a.touchmove,"#"+l+"> ."+s.panels+"> ."+s.current,function(t){i.vars.opened&&e(this)[0].scrollHeight>e(this).innerHeight()&&t.stopPropagation()}),o.$wndw.on(a.orientationchange,function(){i.$pnls.children("."+s.current).scrollTop(0).css({"-webkit-overflow-scrolling":"auto"}).css({"-webkit-overflow-scrolling":"touch"})})}},add:function(){s=e[t]._c,i=e[t]._d,a=e[t]._e},clickAnchor:function(e,t){}},e[t].defaults[n]={fix:!0};var s,i,a,o}(jQuery);
1111/*
1112 * jQuery Superfish Menu Plugin
1113 * Copyright (c) 2013 Joel Birch
1114 *
1115 * Dual licensed under the MIT and GPL licenses:
1116 *	http://www.opensource.org/licenses/mit-license.php
1117 *	http://www.gnu.org/licenses/gpl.html
1118 */
1119!function(e,s){"use strict";var o=function(){var o={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",menuArrowClass:"sf-arrows"},t=function(){var s=/^(?![\w\W]*Windows Phone)[\w\W]*(iPhone|iPad|iPod)/i.test(navigator.userAgent);return s&&e("html").css("cursor","pointer").on("click",e.noop),s}(),n=function(){var e=document.documentElement.style;return"behavior"in e&&"fill"in e&&/iemobile/i.test(navigator.userAgent)}(),i=function(){return!!s.PointerEvent}(),r=function(e,s){var t=o.menuClass;s.cssArrows&&(t+=" "+o.menuArrowClass),e.toggleClass(t)},a=function(s,t){return s.find("li."+t.pathClass).slice(0,t.pathLevels).addClass(t.hoverClass+" "+o.bcClass).filter(function(){return e(this).children(t.popUpSelector).hide().show().length}).removeClass(t.pathClass)},l=function(e){e.children("a").toggleClass(o.anchorClass)},h=function(e){var s=e.css("ms-touch-action"),o=e.css("touch-action");o=o||s,o="pan-y"===o?"auto":"pan-y",e.css({"ms-touch-action":o,"touch-action":o})},u=function(s,o){var r="li:has("+o.popUpSelector+")";e.fn.hoverIntent&&!o.disableHI?s.hoverIntent(c,f,r):s.on("mouseenter.superfish",r,c).on("mouseleave.
1119superfish",r,f);var a="MSPointerDown.superfish";i&&(a="pointerdown.superfish"),t||(a+=" touchend.superfish"),n&&(a+=" mousedown.superfish"),s.on("focusin.superfish","li",c).on("focusout.superfish","li",f).on(a,"a",o,p)},p=function(s){var o=e(this),t=m(o),n=o.siblings(s.data.popUpSelector);return t.onHandleTouch.call(n)===!1?this:void(n.length>0&&n.is(":hidden")&&(o.one("click.superfish",!1),"MSPointerDown"===s.type||"pointerdown"===s.type?o.trigger("focus"):e.proxy(c,o.parent("li"))()))},c=function(){var s=e(this),o=m(s);clearTimeout(o.sfTimer),s.siblings().superfish("hide").end().superfish("show")},f=function(){var s=e(this),o=m(s);t?e.proxy(d,s,o)():(clearTimeout(o.sfTimer),o.sfTimer=setTimeout(e.proxy(d,s,o),o.delay))},d=function(s){s.retainPath=e.inArray(this[0],s.$path)>-1,this.superfish("hide"),this.parents("."+s.hoverClass).length||(s.onIdle.call(v(this)),s.$path.length&&e.proxy(c,s.$path)())},v=function(e){return e.closest("."+o.menuClass)},m=function(e){return v(e).data("sf-options")};return{hide:function(s){if(this.length){var o=this,t=m(o);if(!t)return this;var n=t.retainPath===!0?t.$path:"",i=o.find("li."+t.hoverClass).add(this).not(n).removeClass(t.hoverClass).children(t.popUpSelector),r=t.speedOut;if(s&&(i.show(),r=0),t.retainPath=!1,t.onBeforeHide.call(i)===!1)return this;i.stop(!0,!0).animate(t.animationOut,r,"easeOutQuad",function(){var s=e(this);t.onHide.call(s)})}return this},show:function(){var e=m(this);if(!e)return this;var s=this.addClass(e.hoverClass),o=s.children(e.popUpSelector);return e.onBeforeShow.call(o)===!1?this:(o.stop(!0,!0).animate(e.animation,e.speed,"easeOutQuad",function(){e.onShow.call(o)}),this)},destroy:function(){return this.each(function(){var s,t=e(this),n=t.data("sf-options");return n?(s=t.find(n.popUpSelector).parent("li"),clearTimeout(n.sfTimer),r(t,n),l(s),h(t),t.off(".superfish").off(".hoverIntent"),s.children(n.popUpSelector).attr("style",function(e,s){return s.replace(/display[^;]+;?/g,"")}),n.$path.removeClass(n.hoverClass+" "+o.bcClass).addClass(n.pathClass),t.find("."+n.hoverClass).removeClass(n.hoverClass),n.onDestroy.call(t),void t.removeData("sf-options")):!1})},init:function(s){return this.each(function(){var t=e(this);if(t.data("sf-options"))return!1;var n=e.extend({},e.fn.superfish.defaults,s),i=t.find(n.popUpSelector).parent("li");n.$path=a(t,n),t.data("sf-options",n),r(t,n),l(i),h(t),u(t,n),i.not("."+o.bcClass).superfish("hide",!0),n.onInit.call(this)})}}}();e.fn.superfish=function(s,t){return o[s]?o[s].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof s&&s?e.error("Method "+s+" does not exist on jQuery.fn.superfish"):o.init.apply(this,arguments)},e.fn.superfish.defaults={popUpSelector:"ul,.sf-mega",hoverClass:"sfHover",pathClass:"overrideThisToUse",pathLevels:1,delay:800,animation:{opacity:"show"},animationOut:{opacity:"hide"},speed:"normal",speedOut:"fast",cssArrows:!0,disableHI:!1,onInit:e.noop,onBeforeShow:e.noop,onShow:e.noop,onBeforeHide:e.noop,onHide:e.noop,onIdle:e.noop,onDestroy:e.noop,onHandleTouch:e.noop}}(jQuery,window);

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.