PageSourceSearch

https://roadsideattractions.com/wp-content/themes/ronneby_child/assets/js/app.min.js

js roadsideattractions.com collected 2026-10-02 04:50:49 UTC 67,422 bytes, 2,166 lines download raw bytes

1;
2var screen_medium = 800;
3(function ($, window, undefined) {
4    'use strict';
5
6    var $doc = $(document),
7        Modernizr = window.Modernizr;
8	
9	$.fn.sbAccordion = function() {
10		var settings = {
11			speed: 300
12		};
13		
14		return this.each(function(){
15			var $accordion = $(this);
16			var $lis = $accordion.children('li');
17			
18			$accordion.find('.title').click(function(){
19				var $this = $(this);
20				var $li = $this.parent('li');
21				
22				if ($li.hasClass('active')) {
23					return false;
24				}
25				
26				$this.siblings('.content').slideDown(settings.speed);
27				$lis.filter('.active').removeClass('active')
28					.children('.content').slideUp(settings.speed);
29				$li.addClass('active');
30				
31				return false;
32			});
33		});
34	};
35	
36    $(document).ready(function () {
37		$('ul.accordion').sbAccordion();
38        $.fn.foundationAlerts ? $doc.foundationAlerts() : null;
39        $.fn.foundationButtons ? $doc.foundationButtons() : null;
40//        $.fn.foundationAccordion ? $doc.foundationAccordion() : null;
41        $.fn.foundationNavigation ? $doc.foundationNavigation() : null;
42        $.fn.foundationTopBar ? $doc.foundationTopBar() : null;
43        $.fn.foundationCustomForms ? $doc.foundationCustomForms() : null;
44        $.fn.foundationMediaQueryViewer ? $doc.foundationMediaQueryViewer() : null;
45        $.fn.foundationTabs ? $doc.foundationTabs({callback: $.foundation.customForms.appendCustomMarkup}) : null;
46        $.fn.foundationTooltips ? $doc.foundationTooltips() : null;
47        $.fn.foundationMagellan ? $doc.foundationMagellan() : null;
48        $.fn.foundationClearing ? $doc.foundationClearing() : null;
49
50        $.fn.placeholder ? $('input, textarea').placeholder() : null;
51    });
52
53    // Hide address bar on mobile devices (except if #hash present, so we don't mess up deep linking).
54    if (Modernizr.touch && !window.location.hash) {
55        $(window).load(function () {
56            setTimeout(function () {
57                window.scrollTo(0, 1);
58            }, 0);
59        });
60    }
61	
62})(jQuery, this);
63
64
65/*---------------------------------
66 Correct OS & Browser Check
67 -----------------------------------*/
68
69var ua = navigator.userAgent,
70    checker = {
71        os: {
72            iphone: ua.match(/iPhone/),
73            ipod: ua.match(/iPod/),
74            ipad: ua.match(/iPad/),
75            blackberry: ua.match(/BlackBerry/),
76            android: ua.match(/(Android|Linux armv6l|Linux armv7l)/),
77            linux: ua.match(/Linux/),
78            win: ua.match(/Windows/),
79            mac: ua.match(/Macintosh/)
80        },
81        ua: {
82            ie: ua.match(/MSIE/),
83            ie6: ua.match(/MSIE 6.0/),
84            ie7: ua.match(/MSIE 7.0/),
85            ie8: ua.match(/MSIE 8.0/),
86            ie9: ua.match(/MSIE 9.0/),
87            ie10: ua.match(/MSIE 10.0/),
88            opera: ua.match(/Opera/),
89            firefox: ua.match(/Firefox/),
90            chrome: ua.match(/Chrome/),
91            safari: ua.match(/(Safari|BlackBerry)/)
92        }
93    };
94
95
96/*---------------------------------
97 DOM mutation
98 -----------------------------------*/
99(function ($) {
100	'use strict';
101	$.fn.observeDOM = function(callback){
102		var MutationObserver = window.MutationObserver || window.WebKitMutationObserver,
103			eventListenerSupported = window.addEventListener,
104			$self = $(this)[0];
105
106		if($self) {
107			if( MutationObserver ){
108				// define a new observer
109				var obs = new MutationObserver(function(mutations){
110					if( mutations[0].addedNodes.length || mutations[0].removedNodes.length )
111						callback();
112				});
113				// have the observer observe foo for changes in children
114				obs.observe( $self, { childList:true });
115			} else if( eventListenerSupported ){
116				$self.addEventListener('DOMNodeInserted', callback, false);
117				$self.addEventListener('DOMNodeRemoved', callback, false);
118			}
119		}
120		return this;
121	};
122})(jQuery);
123
124/*---------------------------------
125 Navigation dropdown
126 -----------------------------------*/
127(function ($) {
128	$.bindMobileMenu = function() {
129		if($('#header-container').hasClass('header-style-3') || $('#header-container').hasClass('header-style-4')) {
130			var $mobileMenu = $('<ul />');
131			$('ul.menu-clonable-for-mobiles').each(function() {
132				var $sub_menu = $(this).children().clone();
133				$mobileMenu = $mobileMenu.append($sub_menu);
134			});
135		} else {
136			var $mobileMenu = $('ul.menu-clonable-for-mobiles').clone();
137		}
138		$mobileMenu
139				.removeAttr('id')
140				.find('ul, li, a').addBack()
141				.removeAttr('id');
142				//.removeAttr('class');
143		$mobileMenu
144				.find('ul')
145				.removeAttr('style');
146	
147		$mobileMenu
148				.attr('class', 'sidr-dropdown-menu')
149			.find('ul')
150				.attr('class', 'sidr-class-sub-menu');
151		
152		$mobileMenu.find('.sub-nav > ul').each(function(){
153			$(this).unwrap();
154		});
155		
156		$mobileMenu.find('li').each(function(){
157			var $self = $(this);
158			if($self.find('ul').length > 0) {
159				$self.find('> a').append('<i class="dfd-icon-right_2 sidr-dropdown-toggler" />');
160			}
161		});
162		/*
163		$('.dl-menuwrapper').each(function(){
164			var $wrapper = $(this);
165			
166			$wrapper.append($mobileMenu);
167			$wrapper.dlmenu({
168				animationClasses: {
169					classin : 'dl-animate-in-1',
170					classout : 'dl-animate-out-1'
171				}
172			});
173		});*/
174		$('.sidr-inner').append($mobileMenu);
175		$('#mobile-menu').sidr({
176			displace: false
177		});
178		
179		$('.sidr-dropdown-toggler').unbind('click').bind('touchend click', function(e) {
180			e.preventDefault();
181			$(this).parent('a').toggleClass('active').siblings('ul').slideToggle(500);
182		});
183		$('.dfd-sidr-close').unbind('click').bind('touchend click', function(e) {
184			e.preventDefault();
185			$.sidr('close');
186		});
187	};
188})(jQuery);
189
190/*---------------------------------
191 Navigation dropdown
192 -----------------------------------*/
193(function ($) {
194	"use strict";
195	
196	$(document).ready(function() {
197		var $top_panel_inner = $('#top-panel-inner');
198		$('a.top-inner-page').on('click', function(e){
199			e.preventDefault();
200			$top_panel_inner.addClass('open');
201		});
202		$('a.top-inner-page-close').on('click', function(e){
203			e.preventDefault();
204			$top_panel_inner.removeClass('open');
205		});
206	});
207})(jQuery);
208
209(function ($) {
210	"use strict";
211	$(document).ready(function() {
212		$('form.wpcf7-form input:not([type="submit"])').focus(function(e){
213			$(this).parent('span').addClass('active').siblings().addClass('active');
214		}).blur(function() {
215			if(!$(this).parents('.dfd-contact-form-style-5').length || ($(this).parents('.dfd-contact-form-style-5').length && $(this).val() == '')) {
216				$(this).parent('span').removeClass('active').siblings().removeClass('active');
217			}
218		});
219	});
220})(jQuery);
221
222(function ($) {
223	"use strict";
224	$(document).ready(function() {
225		$('form.wpcf7-form select, .widget select').dropkick();
226	});
227})(jQuery);
228
229(function($){
230	"use strict";
231	$.fn.dfdSocTooltips = function() {
232		
233		return this.each(function() {
234			var $soc_icons = $(this);
235
236			$('a', $soc_icons).each(function(){
237				var $this = $(this);
238				
239				// If already binded
240				if ($this.next('span.soc-tooltip').length > 0) {
241					return false;
242				}
243				
244				var title = $this.attr('title');
245				$this.removeAttr('title');
246
247				if (title && title.length==0) {
248					return true;
249				}
250				var $tooltip = $(['<span class="soc-tooltip">', title, '</span>'].join(''));
251				
252				if($this.parent().parent().hasClass('module-soc-icons')) {
253					$this.append($tooltip);
254					$tooltip.css({
255						'margin-left': 0
256					});
257				}else{
258					$tooltip.insertAfter($this);
259					var w = $tooltip.width();
260					$tooltip.css({
261						'margin-left': -Math.floor(w/2),
262					});
263				}
264			    
265			}).hover(function(){
266				if($(this).parent().parent().hasClass('module-soc-icons')) return;
267				if(!$(this).parent().parent().parent().hasClass('header-top-panel')) 
268				$(this).next('.soc-tooltip')
269					.css({
270						'top': -$(this).height()
271					});
272				$(this).next('.soc-tooltip')
273					.css({
274						'left': $(this).offset().left - $(this).parent().offset().left,
275					});
276			});
277		});
278		
279	};
280})(jQuery);
281
282/* Anchor smooth scroll */
283(function($) { 
284	"use strict";
285	$(document).ready(function() {
286		var $window = $(window);
287		var $link = $('a.menu-link');
288		$link.each(function() {
289			var $self = $(this);
290			var href = $self.attr('href');
291			if(href && href.indexOf('#') !== -1 && href != '#') {
292				href = href.substring(href.indexOf("#"));
293				if($(href).length > 0) {
294					var highlightCurrent = function() {
295						/*var targetheight = $(href).outerHeight(true);*/
296						var targetOffset = $(href).offset().top;
297						if(($window.scrollTop() + $('body').offset().top) >= targetOffset /*&& $window.scrollTop() < (targetOffset + targetheight)*/) {
298							/*setTimeout(function() {*/
299								$self.parent().addClass('current-menu-ancestor current-menu-item').siblings().removeClass('current-menu-ancestor current-menu-item');
300							/*}, 100);*/
301						}
302					};
303					highlightCurrent();
304					$window.on('load resize scroll', highlightCurrent);
305					$self.on('click touchend', function(e) {
306						e.preventDefault();
307						$window.scrollTo(href, {duration:'slow'});
308						highlightCurrent();
309					});
310				}
311			}
312		});
313	});
314})(jQuery);
315
316(function($){
317	"use strict";
318	$.fn.dfdClientsTooltips = function() {
319		
320		return this.each(function() {
321			var $clients = $(this);
322
323			$($clients).mousemove(function(event){
324				$(this).next('.clients-tooltip')
325					.css({
326						"opacity" : 1,
327						"display" : "block",
328						"z-index" : 3,
329						"top" : event.pageY - $(this).parent().offset().top + 25,
330						"left" : event.pageX - $(this).parent().offset().left + 15
331					});
332			}).mouseout(function(){
333				$(this).next('.clients-tooltip')
334					.css({
335						"display" : "none",
336						"opacity" : 0,
337						"z-index" : -3,
338						"top" : 0,
339						"left" : 0
340					});
341			});
342		});
343		
344	};
345})(jQuery);
346
347/*Arrows Revolution Slider*/
348//TODO: remove
349/*
350(function($){
351	"use strict";
352	$(document).ready(function(){
353		$(".rev_slider_wrapper").mousemove(function(e) {
354			var $self = $(this);
355			var $arrows = $self.find(".tp-leftarrow, .tp-rightarrow");
356			var $arrowLeft = $self.find(".tp-leftarrow");
357			var $arrowRight = $self.find(".tp-rightarrow");
358			var offset_top = $self.offset().top;
359			var offset_left = $self.offset().left;
360			var container_width = $self.width();
361			if(e.pageX < container_width / 2) {
362				$arrowLeft.show();
363				$arrowRight.hide();
364			} else {
365				$arrowLeft.hide();
366				$arrowRight.show();
367			}
368			$arrows.css({
369				visibility: 'visible',
370				left: (e.pageX-offset_left),
371				top: (e.pageY-offset_top)
372			});
373		}).mouseout(function(e) {
374			$(this).find(".tp-leftarrow, .tp-rightarrow").css('visibility', 'hidden');
375		});
376	}); 
377})(jQuery);
378*/
379/*END Arrows Revolution Slider*/
380
381(function($){
382	"use strict";
383	/* Pricing table columns width */
384	$.fn.pricingTableEqColumns = function() {
385		var $columns = $(this);
386		var width = (100 / $columns.length);
387		$columns.css('width', width+'%');
388		
389		return this;
390	};
391})(jQuery);
392
393(function($){
394	"use strict";
395	/* Item width fixer */
396	$.fn.elementFixedWidth = function() {
397		$(this).each(function() {
398			var width = $(this).width();
399			$(this).css('width', width+'px');
400		});
401		
402		return this;
403	};
404})(jQuery);
405/*
406(function($){
407	"use strict";
408	// Blur on hover 
409	$.fn.vagueBlur = function() {
410		$(this).each(function() {
411			var $vague = $(this).find('.blur-me').Vague({
412				intensity: 10
413			});
414			$(this).hover(function() {
415				$vague.blur();
416			},function() {
417				$vague.unblur();
418			});
419		});
420		
421		return this;
422	};
423	$(document).ready(function() {
424		$('.blur-hover-elem').vagueBlur();
425	});
426})(jQuery);
427
428(function($){
429	"use strict";
430	// Unblur on hover
431	$.fn.vagueUnblur = function() {
432		$(this).each(function() {
433			var $vague = $(this).find('.unblur-me').Vague({
434				intensity: 10
435			});
436			$vague.blur();
437			$(this).hover(function() {
438				$vague.unblur();
439			},function() {
440				$vague.blur();
441			});
442		});
443		
444		return this;
445	};
446	$(window).load(function() {
447		$('.unblur-hover-elem').vagueUnblur();
448	});
449})(jQuery);
450
451(function($) {
452	"use strict";
453	// Pixastic blur
454	$.fn.imageBlur = function() {
455		return $(this).each(function() {
456			var $self = $(this);
457			if($self.hasClass('already-blured')) return;
458			var img = $self.find('img');
459			img.clone().addClass("image-blured").css('opacity', '').appendTo(this);
460			var to_be_blured = $('.image-blured', this);
461			to_be_blured.each(function(index, element) {
462				if (img[index].complete == true) {
463					Pixastic.process(to_be_blured[index], "blurfast", {amount:3});
464				} else {
465					to_be_blured.load(function () {
466						Pixastic.process(to_be_blured[index], "blurfast", {amount:3});
467					});
468				}
469			});
470			$self.addClass('already-blured');
471		});
472	};
473	$(window).load(function() {
474		$('.unblur-onhover').imageBlur();
475	});
476})(jQuery);
477(function($){
478	"use strict";
479	// Mouseenter and mouseleave class adder
480	$.fn.styledButtonsAnimator = function() {
481		$(this).each(function() {
482			var $self = $(this);
483			var mainItem = $(this).find('span.main-item');
484			var secondItem = $(this).find('span.secondary-item');
485			if($self.hasClass('read-more') === false) {
486				$self.hover(function() {
487					mainItem.stop().animate({
488						'top': '100%',
489						'opacity': '0'
490					}, 200)
491							.animate({
492								'top': '-100%',
493								'left': '0',
494								'opacity': '0'
495							},200);
496					secondItem.stop().animate({
497						'top': '0',
498						'opacity': '1',
499						'visibility': 'visible'
500					}, 200);
501				},function() {
502					secondItem.stop().animate({
503						'top': '100%',
504						'visibility': 'hidden',
505						'opacity': '0'
506					}, 200)
507							.animate({
508								'top': '-100%',
509								//'left': '-300%',
510								'opacity': '0',
511								'visibility': 'hidden'
512							}, 200);
513					mainItem.stop().animate({
514						'top': '0',
515						'left': '0',
516						'opacity': '1'
517					}, 200);
518				});
519			}
520		});
521		
522		return this;
523	};
524})(jQuery);
525// Check if works ok start
526(function($) {
527	"use strict";
528	$.fn.menuClassAdder = function() {
529		$(this).each(function() {
530			var $self = $(this);
531			$self.on('mouseleave', function(e) {
532				setTimeout(function() {
533					$self.find('.top-line').remove();
534				}, 300);
535			});
536			$self.on('mouseenter', function(e) {
537				var relTarget = e.relatedTarget;
538				var cameFrom = relTarget !== null ? relTarget.getAttribute('ID') : '';
539				var nextElID = $self.next().attr('id');
540				var nextElTitleID = $self.next().find('.item-title').attr('id');
541				$self.append('<span class="top-line"></span>')
542				if(cameFrom === nextElID || cameFrom === nextElTitleID) {
543					$self.find('.top-line').css('right', 0).animate({'width': '100%'}, 300);
544					$self.next().find('.top-line').css({'left': 0, 'right': 'auto'}).animate({'width': '0%'}, 300);
545					setTimeout(function() {$self.next().find('top-line').remove();},300);
546				} else {
547					$self.find('.top-line').css('left', 0).animate({'width': '100%'}, 300);
548					var topLine = $self.prev().find('.top-line');
549					if(topLine) {
550						topLine.css({'right': 0, 'left': 'auto'}).animate({'width': '0%'}, 'slow');
551						setTimeout(function() {topLine.remove();},300);
552					}
553				}
554			});
555		});
556	};
557})(jQuery);
558// Check if works ok end
559*/
560(function($){
561	"use strict";
562	/* Pricing table columns width */
563	$.fn.products_thumbnails_carousel = function(num, ver) {
564		var obj = $(this);
565		var responsive_point_one = (num > 1) ? num - 1 : 1;
566		var responsive_point_two = (responsive_point_one > 1) ? responsive_point_one - 1 : 1;
567		obj.slick({
568			infinite: true,
569			slidesToShow: num,
570			slidesToScroll: 1,
571			arrows: false,
572			dots: false,
573			autoplay: true,
574			autoplaySpeed: 2000,
575			vertical: ver,
576			responsive: [
577					{
578						breakpoint: 800,
579						settings: {
580							slidesToShow: responsive_point_one,
581							slidesToScroll: 1,
582							infinite: true,
583							arrows: false,
584							dots: false,
585							vertical: false
586						}
587					},
588					{
589						breakpoint: 500,
590						settings: {
591							slidesToShow: responsive_point_two,
592							slidesToScroll: 1,
593							arrows: false,
594							dots: false,
595							vertical: false
596						}
597					}
598				]
599		});
600		
601		return this;
602	};
603})(jQuery);
604/*
605(function($){
606	"use strict";
607	$.fn.headerSocIconsShowHide = function() {
608		$(this).each(function(){
609			//var $label = $(this).find('.label');
610			
611			$(this).click(function(){
612				var $popup = $(this).siblings('.soc-icons');
613				
614				$popup.slideToggle('slow')
615
616				return false;
617			});
618		});
619	};
620})(jQuery);
621*/
622(function($){
623	"use strict";
624	/* Pricing table columns width */
625	var dfdFixedFooter = function() {
626		if(!$('#layout').hasClass('one-page-scroll') && $('#main-wrap').hasClass('dfd-parallax-footer')) {
627			var margin =  ($(window).width() > 780) ? $('#footer-wrap').outerHeight(true) : 0;
628			if($('body > .boxed_layout').length > 0) {
629				$('body > .boxed_layout').css('margin-bottom', margin);
630			} else {
631				$('#main-wrap').css('margin-bottom', margin);
632			}
633		}
634	};
635	$(document).ready(function() {
636		dfdFixedFooter();
637		$(window).on('load resize', dfdFixedFooter);
638	});
639})(jQuery);
640
641(function($){
642	"use strict";
643	/* Pricing table columns width */
644	$.fn.dfdRowDelimiterBg = function() {
645		return this.each(function() {
646			var $delimiters = $(this);
647			var bg_color = $delimiters.parents('.vc-row-wrapper').css('background-color');
648			$delimiters.css('background-color', bg_color);
649		});
650	};
651	$(document).ready(function() {
652		$('.vc-row-delimiter-top-left, .vc-row-delimiter-top-right, .vc-row-delimiter-bottom-left, .vc-row-delimiter-bottom-right').dfdRowDelimiterBg();
653	});
654})(jQuery);
655
656(function($){
657	"use strict";
658	// Cache the Window object
659	var $window = $(window), windowScrollTop, windowHeight, windowWidth;
660	
661	var recalcWindowOffset = function() {
662		windowScrollTop = $window.scrollTop();
663	};
664
665	var recalcWindowInitHeight = function() {
666		windowHeight = $window.height();
667		windowWidth = $window.width();
668
669		recalcWindowOffset();
670	};
671	
672	
673	var scrollbarWidth;
674	$(document).ready(function() {
675		var div = document.createElement('div');
676
677		div.style.overflowY = 'scroll';
678		div.style.width =  '50px';
679		div.style.height = '50px';
680
681		div.style.visibility = 'hidden';
682
683		document.body.appendChild(div);
684		scrollbarWidth = div.offsetWidth - div.clientWidth;
685		document.body.removeChild(div);
686
687	});
688
689	recalcWindowOffset();
690	$window
691			.on("resize load", recalcWindowInitHeight)
692			.on("scroll", recalcWindowOffset);
693	
694	$.loadRetinaLogo = function() {
695		if (('devicePixelRatio' in window) && (window.devicePixelRatio > 1)) {
696			$('.logo-for-panel img').each(function(){
697				var $logo = $(this);
698				var retina_src = $logo.attr('data-retina');
699
700				if (!retina_src || retina_src.legth===0) {
701					return;
702				}
703
704				var w = $logo.attr('data-retina_w');
705				var h = $logo.attr('data-retina_h');
706
707				var max = {w: 164, h: 54};
708
709				$logo.attr('src', retina_src);
710
711				if (w<max.w && h<max.h) {
712					$logo.css({
713						width: Math.round(w/2) + 'px',
714						height: Math.round(h/2) + 'px'
715					});
716				}
717			});
718		}
719	};
720	
721	$.bindHeaderEvents = function() {
722		var $header_container = $("#header-container");
723		var disable_body_hover = function() {
724			$header_container.addClass('disable-hover').addClass('slide-up');
725			
726			setTimeout(function(){
727				$header_container.removeClass('disable-hover');
728			}, 400);
729			setTimeout(function(){
730				$header_container.removeClass('slide-up');
731			}, 500);
732		};
733		
734		var headroom_on_top = function() {
735			disable_body_hover();
736			
737			//$header_container.trigger('side-aray-show');
738		};
739		var headroom_not_top = function() {
740			disable_body_hover();
741			
742			//$header_container.trigger('side-aray-hide');
743		};
744
745
746		var headroom = new Headroom(document.querySelector("#header-container"), {
747			 tolerance : {
748				up : 0,
749				down : 0
750			},
751			offset: 0,
752			classes: {
753				initial: "animated--header",
754				notTop: "small"
755			},
756			onTop : headroom_on_top,
757			onNotTop : headroom_not_top
758		});
759		$header_container = jQuery('#header-container');
760		
761		var header_width, hcH, header_wrap_height, header_logo_height, header_bottom_height;
762		
763		var $header_wrap = $header_container.find('.header-wrap');
764		var $stuning_header = $('#stuning-header');
765		var $menu_fixer = $('#menu-fixer');
766		
767		var header_el_sizing = function() {
768			header_width = $('#main-wrap').width();
769			
770			$header_container.find('.dfd-top-row').width(header_width);
771			/* menu fixer */
772			
773			hcH = ($header_container.find('.dfd-top-row').length) ? $header_container.find('.dfd-top-row').outerHeight() : $header_container.find('#header').outerHeight();
774			
775			if ($stuning_header.length > 0) {
776				if (
777					$menu_fixer.length === 0
778					&& (!$header_container.hasClass('dfd-header-layout-fixed')
779					|| $header_container.hasClass('dfd-keep-menu-fixer'))
780				) {
781					$menu_fixer = $('<div id="menu-fixer"></div>');
782				}
783				$stuning_header.prepend($menu_fixer);
784			} else {
785				if (
786					$header_container.hasClass('dfd-header-layout-fixed') || $('#main-wrap').hasClass('dfd-one-page-scroll-layout') || $header_container.hasClass('menu-position-bottom')
787				) {
788					if ($menu_fixer.length > 0) {
789						$menu_fixer.remove();
790					}
791				} else {
792					if ($menu_fixer.length === 0) {
793						$menu_fixer = $('<div id="menu-fixer"></div>');
794						$($menu_fixer).insertAfter('#header-container');
795					}
796				}
797			}
798			if ($menu_fixer.length > 0) {
799				$menu_fixer.height(hcH);
800			}
801		};
802		
803		$window.on('load resize', header_el_sizing);
804		
805		if(
806			Modernizr.touch === false && $header_container.hasClass('dfd-enable-headroom') && !$('#layout').hasClass('one-page-scroll')
807		) {
808			headroom.init();
809		}
810		
811		var top_panel_animation = new Headroom(document.querySelector("body"), {
812			tolerance: 5,
813			offset: 0,
814			classes: {
815				initial: "animated--body",
816				notTop: "moved"
817			}
818		});
819		if(
820			$('#top-panel-inner').hasClass('dfd-panel-animated')
821		) {
822			var $top_panel_inner = $('#top-panel-inner .top-panel-inner-wrapper');
823			var set_top_panel = function() {
824				var height = $window.height() - ($('body').css('margin').replace('px', '') * 2);
825				$top_panel_inner.outerHeight(height);
826			};
827			set_top_panel();
828			$top_panel_inner.wrapInner('<div class="dfd-vertical-aligned" />');
829			$('.top-inner-page').remove();
830			top_panel_animation.init();
831			$window.on('load resize', set_top_panel);
832		}
833		
834		
835		/*---------------------------------
836			Mega Menu (if enabled)
837		-----------------------------------*/
838		/*
839		if (typeof $.cloneMenuItems === 'function') {
840			$.cloneMenuItems();
841		}
842		
843		if (typeof $.hideShowMenuItems === 'function') {
844			$.hideShowMenuItems();
845		}
846		*/
847		if (typeof $.initSlider === 'function') {
848			setTimeout(function() {
849				$.initSlider();
850			}, 500);
851		}
852		if (typeof $.runMegaMenu === 'function') {
853			$.runMegaMenu();
854		}
855		
856		/*---------------------------------
857		* Header button * 
858		---------------------------------*/
859		$window.on('load resize scroll', function() {
860			var documentHeight = $('body').outerHeight();
861			var footerHeight = $('#footer-wrap').outerHeight();
862			if(windowScrollTop >= (documentHeight - windowHeight - footerHeight)) {
863				$('.header-button-section > a').addClass('active');
864			} else {
865				$('.header-button-section > a').removeClass('active');
866			}
867		});
868		
869		/* -------------------------------
870			Menu titles animation
871		 -------------------------------*/
872		$('#header-container .nav-menu .mega-menu-item.menu-item-depth-0').each(function() {
873			
874		});
875
876		/*---------------------------------
877			Drop-down
878		-----------------------------------*/
879		$('.sel-dropdown').unbind('hover').hover(function(){
880			jQuery(this).addClass("hovered");
881		}, function(){
882			jQuery(this).removeClass("hovered");
883		});
884
885		/*---------------------------------
886			Menu animation
887		-----------------------------------*/
888		jQuery(".nav-item.has-submenu > a").on('click', function() {
889			var $self = $(this);
890			if ($self.attr('href') != '#' && $self.attr('href') != '' && $self.hasClass('open')) {
891				window.location.href = $self.attr('href');
892			}
893			
894			return false;
895		});
896		/*
897		jQuery(".nav-item.has-submenu > a").on('click', function(){
898			if($window.width()>screen_medium) return true;
899
900			var $this = $(this).parent();
901
902			if ($this.hasClass("hovered")) {
903				$this
904					.removeClass("hovered")
905					.find(".sub-nav").stop().slideUp(200);
906			} else {
907				if ($this.siblings().length>0) {
908				$this.siblings('.hovered')
909					.removeClass("hovered")
910					.find(".sub-nav").stop().slideUp(200);
911				}
912
913				$this
914					.addClass("hovered")
915					.find(".sub-nav").stop().slideDown(200);
916			}
917
918			return false;
919		});
920		$('.top-menu-button').on('click', function(){
921			var $this = $(this);
922			var $menu = $($this.attr('data-href')).parent('.mega-menu');
923
924			$menu.slideToggle(200, function(){
925				if ($menu.is(':visible')) {
926					$this.removeClass("inactive");
927				} else {
928					$this.addClass("inactive");
929				}
930			});
931
932			return false;
933		});
934*/
935		
936		/*---------------------------------
937			Search Form
938		-----------------------------------*/
939		/*Search form on hover
940		(function(){
941			var search_show = function($this) {
942				var $search = $this.find('.search-query');
943				var $button = $('#searchsubmit');
944
945				$button.attr('disabled', true);
946
947				if ($search.is(':focus')) {
948					return;
949				}
950				$('.form-search', $this).addClass('open');
951				if (!$search.attr('data-width')) {
952					$search.attr('data-width', parseInt($search.css('width')));
953				}
954				var search_width = parseInt($search.attr('data-width'));
955
956				$search.stop()
957					.css({
958						width: 0
959					})
960					.show()
961					.animate({
962						width: search_width
963					}, function() {
964						$button.attr('disabled', false);
965					});
966			};
967
968			var search_hide = function($this, hide) {
969				var $search = $this.find('.search-query');
970				var $button = $('#searchsubmit');
971
972				if (hide !== true) {
973					$button.attr('disabled', true);
974				}
975
976				if ($search.is(':focus') && hide == undefined) {
977					return;
978				}
979				if (!$search.attr('data-width')) {
980					$search.attr('data-width', parseInt($search.css('width')));
981				}
982				$('.form-search', $this).removeClass('open');
983				var search_width = parseInt($search.attr('data-width'));
984
985				$search.stop()
986					.css({
987						width: search_width
988					})
989					.animate({
990						width: 0
991					}, function() {
992						$(this).hide();
993						$button.attr('disabled', false);
994					});
995			};
996
997			$('.form-search-wrap .search-query').unbind('blur').blur(function(){
998				search_hide($(this).parents('.form-search-wrap'), true);
999			});
1000
1001			if (Modernizr.touch === false) {
1002				$('.form-search-wrap')
1003					.unbind('hover').hover(function(){
1004						search_show($(this));
1005					}, function(){
1006						search_hide($(this));
1007					});
1008			} else {
1009				$('#searchsubmit').unbind('click').on('click touchend', function(){
1010					if (!$('.form-search-wrap .search-query').is(':visible')) {
1011						search_show($(this).parents('.form-search-wrap'));
1012						return false;
1013					}
1014				});
1015			}
1016		})(jQuery);*/
1017		
1018		(function($) {
1019			"use strict";
1020			var button = $('.header-search-switcher');
1021			var form = $('.form-search-section');
1022			button.unbind('click').on('click touchend', function() {
1023				form.fadeToggle(250, function() {
1024					if (form.is(':visible')) {
1025						button.addClass("active");
1026					} else {
1027						button.removeClass("active");
1028					}
1029				});
1030				return false;
1031			});
1032		})(jQuery);
1033		
1034		(function($) {
1035			"use strict";
1036			var container = $('#header-container.header-style-6 .onclick-menu-wrap');
1037			var button = $('.dfd-click-menu-activation-button a', container);
1038			var menu = $('nav.onclick-menu', container);
1039			button.unbind('click').on('click touchend', function(e) {
1040				e.preventDefault();
1041				if ($(this).hasClass('opened')) {
1042					button.removeClass('opened');
1043				} else {
1044					button.addClass('opened');
1045				}
1046				menu.slideToggle(250);
1047			});
1048		})(jQuery);
1049		
1050		/* Header woocommerce cart, wishlist */
1051		var header_items_timeout = function(el_first, el_second) {
1052			var box_timer;
1053			$(el_first).hover(function() {
1054				if (box_timer != undefined) {
1055					clearTimeout(box_timer);
1056				}
1057				$(el_second, $(this)).css('max-height', $window.height() - $('#header > .header-wrap').height() - 40).fadeIn(300);
1058			}, function() {
1059				var $this = $(this);
1060				box_timer = setTimeout(function() {
1061					$(el_second, $this).fadeOut(300);
1062				},0);
1063			});
1064		};
1065		
1066		//header_items_timeout('.total_cart_header', '> .shopping-cart-box');
1067		//$('.pop-up-soc-icons > a').headerSocIconsShowHide();
1068		
1069		(function($) {
1070			"use strict";
1071			var button = $('.dfd-menu-button');
1072			var headerContainer = $('#header-container');
1073			button.unbind('click').on('click touchend', function(e) {
1074				e.preventDefault();
1075				headerContainer.toggleClass('opened');
1076			});
1077		})(jQuery);
1078		
1079		(function($) {
1080			$(document).ready(function() {
1081				$('#dfd-side-header-activation-button').unbind('click').bind('click touchend', function(e) {
1082					e.preventDefault();
1083					$(this).parents('#header-container').toggleClass('active');
1084				});
1085			});
1086		})(jQuery);
1087
1088		$.loadRetinaLogo();
1089
1090		/*---------------------------------
1091		 Bind Mobile Menu
1092		 -----------------------------------*/
1093		$.bindMobileMenu();
1094	};
1095	
1096	var widget_title_decoration_16 = function(only_resize) {
1097		return;
1098		var class_list = [
1099			'.widget-title-decoration-16',
1100			'.widget-title-decoration-lines_black',
1101			'.widget-title-decoration-lines_blue',
1102			'.widget-title-decoration-lines_purple'
1103		];
1104		$(class_list.join(',')).each(function() {
1105			var $this = $(this);
1106			
1107			if (only_resize == undefined || only_resize !== true) {
1108				$('> span', $this).wrap('<span></span>');
1109			}
1110			
1111			if ($this.next().hasClass('widget-sub-title') && $('> span', $this.next().length > 0)) {
1112				if ($('> span', $this.next()).width() > $('> span', $this).width()) {
1113					$('> span', $this).innerWidth($('> span', $this.next()).width());
1114				}
1115			}
1116		});
1117	};
1118	
1119	window.widget_title_decoration_sub_subtitle = function(only_resize) {
1120		var class_list = [
1121			'.widget-title-decoration-0',
1122			'.widget-title-decoration-underline_solid',
1123			'.widget-title-decoration-uppercase_underline_solid',
1124			'.widget-title-decoration-underline_small',
1125			'.widget-title-decoration-uppercase_underline_small',
1126			'.widget-title-decoration-background_main_color',
1127			'.widget-title-decoration-uppercase_background_main_color',
1128			'.widget-title-decoration-underline_label',
1129			'.widget-title-decoration-uppercase',
1130		];
1131		
1132		$(class_list.join(',')).each(function() {
1133			var $title = $(this);
1134			var $subtitle = $title.siblings('.widget-sub-title, .subtitle');
1135			
1136			if ($subtitle.length == 0) {
1137				return true;
1138			}
1139			
1140			if (!only_resize) {
1141				$subtitle.insertBefore($title);
1142			}
1143			
1144		});
1145	};
1146	/** TODO: DEPRECATED
1147	var widget_title_decoration_with_icons = function(only_resize) {
1148		var class_list = [
1149			'.widget-title-decoration-icon_gray',
1150			'.widget-title-decoration-icon_black',
1151			'.widget-title-decoration-icon_blue',
1152			'.widget-title-decoration-icon_purple'
1153		];
1154		$(class_list.join(',')).each(function(){
1155			var $this = $(this);
1156			
1157			if (only_resize == undefined || only_resize !== true) {
1158				$('> span', $this).wrap('<span></span>');
1159			}
1160		});
1161	}
1162	
1163	$window.on("load", function () {
1164		widget_title_decoration_16();
1165		widget_title_decoration_sub_subtitle();
1166	}).on("resize", function () {
1167		widget_title_decoration_16(true);
1168		widget_title_decoration_sub_subtitle(true);
1169	});
1170	*/
1171	jQuery(document).ready(function($) {
1172		"use strict";
1173		$.bindHeaderEvents();
1174		
1175		// Widget title decoration
1176		$('.widget-title-decoration-9, .widget-title-decoration-10, .widget-title-decoration-11, .widget-title-decoration-12').each(function() {
1177			var $this = $(this);
1178			
1179			if ($('> i', $this).length > 0) {
1180				$('> span', $this).prepend($('> i', $this).clone()).css('display', 'inline-block');
1181				$('> i', $this).remove();
1182			}
1183		});
1184				
1185		//widget_title_decoration_with_icons();
1186		
1187		// Bind Soc Tooltips
1188		$('.soc-icons').dfdSocTooltips();
1189		$('.client-tile').dfdClientsTooltips();
1190		$('.widget_dfd_author').each(function() {
1191			$('.widget.soc-icons.dfd-soc-icons-hover-style-13 a', $(this)).pricingTableEqColumns();
1192		});
1193
1194		$window.on("resize", function () {
1195			var $tiled_menu = $('.mega-menu, .sub-nav', '#header');
1196			if (windowWidth >= screen_medium) {
1197				$tiled_menu.each(function(){
1198					if (!$(this).is(':visible')) {
1199						$(this).removeAttr('style');
1200					}
1201				});
1202			}
1203		});
1204		
1205		$('#footer .widget_nav_menu >ul >li').equalHeights();
1206		
1207		////@TODO: Remove copypaste (mvb main.js);
1208		//var row_fullheight = ($('.mvb_container .row-wrapper:first').hasClass('mvb-row-fullheight')) ? true : false;
1209		
1210		/*---------------------------------
1211		 Scroll To Top
1212		 -----------------------------------*/
1213		var $back_to_top = jQuery('.body-back-to-top');
1214		$window.on('scroll', function() {
1215			if ($back_to_top.length>0) {
1216				if(jQuery(window).scrollTop() > 80) {
1217					$back_to_top.stop().animate({bottom: 40, opacity: 1}, 700);
1218				} else {
1219					$back_to_top.stop().animate({bottom: -40, opacity: 0}, 700);
1220				}
1221			}
1222		});
1223
1224		var duration = 800;
1225		jQuery('.back-to-top, .body-back-to-top').click(function (event) {
1226			event.preventDefault();
1227			jQuery('html, body').animate({scrollTop: 0}, duration);
1228			return false;
1229		});
1230
1231		/*
1232		 * MVB: Facts
1233		 */
1234		$('.fact-num').not('.circle').each(function(){
1235			var $this = $(this);
1236			var eq = function() {
1237				var diff = $this.find('.val').width() + 20;
1238				$this.find('.line').css('left', diff);
1239			};
1240
1241			eq(); $this.bind('dfd-update', eq);
1242		});
1243
1244		$('.fact-num.circle').each(function(){
1245			var $this = $(this);
1246			var eq = function() {
1247				var diff = $this.find('canvas').width() + 20;
1248				$this.find('.line').css('left', diff);
1249			};
1250
1251			eq();  $this.bind('dfd-update', eq);
1252		});
1253		
1254		$('.chaffle').chaffle({
1255			speed: 20,
1256			time: 60
1257		});
1258		
1259		/* Pricing table columns width */
1260		//$('.pricetable-column').pricingTableEqColumns();
1261		
1262		/*---------------------------------
1263		 Zoom images
1264		 -----------------------------------*/
1265		/*
1266		jQuery('.entry-content a').has('img').addClass('prettyPhoto');
1267
1268		jQuery('.entry-content a img').click(function () {
1269			var desc = jQuery(this).attr('title');
1270			jQuery('.entry-content a').has('img').attr('title', desc);
1271		});
1272		*/
1273		jQuery("a[data-rel^='prettyPhoto'], a.zoom-link, a.thumbnail, a[class^='prettyPhoto']").prettyPhoto({hook: 'data-rel',show_title: true});
1274		jQuery("a[rel^='prettyPhoto']").prettyPhoto(); //
1275	});
1276	/*
1277	$(window).resize(function() {
1278		if (typeof $.hideShowMenuItems === 'function' && typeof $.runMegaMenu === 'function') {
1279			$.hideShowMenuItems();
1280		}
1281	});
1282	*/
1283	/* remove header, footer and admin bar if  opened in iframe */
1284	$window.load(function() {
1285		if(window.top != window.self && $('body').hasClass('single-my-product')) {
1286			$('#header-container, #footer-wrap, #wpadminbar').hide();
1287		}
1288	});
1289   
1290	$.fn.dfdParallax = function() {
1291		return this.each(function() {
1292			// Store some variables based on where we are
1293			var $self = $(this), offsetCoords, topOffset, selfHeight;
1294			
1295			var recalcInitValues = function() {
1296				offsetCoords = $self.offset();
1297				selfHeight = $self.height();
1298				topOffset = offsetCoords.top;
1299			};
1300			
1301			recalcInitValues();
1302			
1303			$window.on("resize load", recalcInitValues);
1304			
1305			// When the window is scrolled...
1306			$window.on("load scroll", function() {
1307				// If this section is in view
1308				// Scroll the background at var speed
1309				// the yPos is a negative value because we're scrolling it UP!
1310				var diff = (topOffset - windowScrollTop) / 3;
1311				var speed = parseFloat($self.data('parallax_sense')) / 100;
1312				var diffPos = -(diff * 2 * speed);
1313				var statPos = '50%';
1314				var maxMinValue = parseFloat($self.data('parallax_limit'));
1315				// If this element has a Y offset then add it on
1316				if ($self.data('parallax_offset')) {
1317					diffPos += $self.data('parallax_offset');
1318				}
1319
1320				// Put together our final background position
1321				var coords;
1322				if($self.hasClass('vcpb-vz-jquery')) {
1323					coords = statPos + ' ' + diffPos + 'px';
1324				}
1325
1326				if($self.hasClass('vcpb-hz-jquery')) {
1327					coords = diffPos + 'px' + ' ' + statPos;
1328				}
1329
1330				if($self.hasClass('dfd-row-parallax')) {
1331					var yPos = -(diff * speed);
1332
1333					if(yPos > maxMinValue) yPos = maxMinValue;
1334					if(yPos < -maxMinValue) yPos = -maxMinValue;
1335
1336					// Move the module
1337					$self.find('>.row').css({
1338						'-webkit-transform': 'matrix(1,0,0,1,0,'+yPos+')',
1339						'-moz-transform': 'matrix(1,0,0,1,0,'+yPos+')',
1340						'-0-transform': 'matrix(1,0,0,1,0,'+yPos+')',
1341						'transform': 'matrix(1,0,0,1,0,'+yPos+')'
1342					});
1343				}
1344				if(($self.hasClass('dfd-column-parallax'))) {
1345					// Move the column
1346					var yPos = -(diff * speed);
1347
1348					if(yPos > maxMinValue) yPos = maxMinValue;
1349					if(yPos < -maxMinValue) yPos = -maxMinValue;
1350
1351					$self.css({
1352						'-webkit-transform': 'matrix(1,0,0,1,0,'+yPos+')',
1353						'-moz-transform': 'matrix(1,0,0,1,0,'+yPos+')',
1354						'-0-transform': 'matrix(1,0,0,1,0,'+yPos+')',
1355						'transform': 'matrix(1,0,0,1,0,'+yPos+')'
1356					});
1357				}
1358				if (
1359						((windowScrollTop ) > (topOffset)) &&
1360						((topOffset + selfHeight) > windowScrollTop)
1361				) {
1362					if($self.hasClass('dfd-fade-on-scroll')) {
1363						var height = $self.height();
1364
1365						// Fade the row
1366						$self.css({
1367							opacity: (1 + 1/(height/(topOffset - windowScrollTop)))
1368						});
1369					}
1370				}
1371				if (
1372						((windowScrollTop + windowHeight) > (topOffset)) &&
1373						((topOffset + selfHeight) > windowScrollTop)
1374				) {
1375					// Move the background
1376					$self.css({backgroundPosition: coords});
1377
1378					// Check for other sprites in this section
1379					$('[data-dfd-type="sprite"]', $self).each(function() {
1380
1381						// Cache the sprite
1382						var $sprite = $(this);
1383
1384						// Use the same calculation to work out how far to scroll the sprite
1385						var yPos = -(windowScrollTop / $sprite.data('parallax_sense'));
1386						var coords = $sprite.data('Xposition') + ' ' + (yPos + $sprite.data('offsetY')) + 'px';
1387
1388						$sprite.css({backgroundPosition: coords});
1389
1390					}); // sprites
1391
1392					// Check for any Videos that need scrolling
1393					$('[data-dfd-type="video"]', $self).each(function() {
1394
1395						// Cache the video
1396						var $video = $(this);
1397
1398						// There's some repetition going on here, so
1399						// feel free to tidy this section up.
1400						var yPos = -(windowScrollTop / $video.data('parallax_sense'));
1401						var coords = (yPos + $video.data('offsetY')) + 'px';
1402
1403						$video.css({top: coords});
1404
1405					}); // video
1406				} /*else {
1407					recalcInitValues();
1408				};*/ // in view
1409					recalcInitValues();
1410
1411			}); // window scroll
1412
1413		});
1414	};
1415	
1416	$.fn.dfdStunHeaderParallax = function() {
1417		var scrolledY = $(window).scrollTop();
1418		var $self = $(this);
1419		var height = $self.parent().height();
1420		$self.css({
1421			'top': ((scrolledY*0.4))+'px',
1422			'opacity': (1 - 1/(height/scrolledY))
1423		});
1424	};
1425	
1426	$.fn.dfdShareScroll = function() {
1427		var scrolledY = $(window).scrollTop();
1428		var $self = $(this);
1429		var headerHeight = $('#header').height();
1430		var containerTopCoord = $self.next('article').offset().top;
1431		var containerHeight = $self.next('article').height();
1432		var containerBottomCoord = containerTopCoord + containerHeight;
1433		var offset = $self.parent().offset().top;
1434		var selfMargin = $self.css('margin-top').replace("px", "");
1435		var height = $self.height();
1436		if(scrolledY > (offset - headerHeight) && scrolledY < containerBottomCoord - height - selfMargin) {
1437			var top = (scrolledY - offset) > 0 ? scrolledY - offset : 0;
1438			$self.css({
1439				'top': top + 'px',
1440			});
1441		};
1442	};
1443	
1444	$.fn.dfdFolioInsideScroll = function() {
1445		var scrolledY = $(window).scrollTop();
1446		var $self = $(this);
1447		var headerHeight = $('#header-container').hasClass('header-style-7') ? $('#header-container .dfd-top-row').height() : $('#header').height();
1448		var padding = +$self.css('padding-top').replace('px', '');
1449		var offset = +$self.parent().offset().top + padding;
1450		var containerHeight = $self.parent().height();
1451		var containerBottomCoord = offset + containerHeight - padding*2;
1452		var height = $self.find('>.row').height();
1453		//var metaHeight = $self.siblings('.folio-entry-media').height();
1454		if(scrolledY > offset -	 headerHeight && scrolledY < containerBottomCoord - height - headerHeight) {
1455			var top = (scrolledY - offset + headerHeight) > 0 ? scrolledY - offset + headerHeight : 0;
1456			$self.find('>.row').css({
1457				'top': top + 'px'
1458			});
1459		};
1460	};
1461	
1462	
1463	
1464//	$(document).ready(function(){
1465//		// Cache the Y offset and the speed of each sprite
1466//		$('[data-type]').each(function() {
1467//			$(this).data('offsetY', parseInt($(this).attr('data-offsetY')));
1468//			$(this).data('Xposition', $(this).attr('data-Xposition'));
1469//			$(this).data('parallax_sense', $(this).attr('parallax_sense'));
1470//		});
1471//
1472//		if (Modernizr.touch === false && !$('html').is('.lt-ie10, .lt-ie9, .lt-ie8')) {
1473//			$('.upb_row_bg').dfdParallax();
1474//			$('.dfd-row-parallax').dfdParallax();
1475//			$('.dfd-column-parallax').dfdParallax();
1476//			$('.dfd-fade-on-scroll').dfdParallax();
1477//			// For each element that has a data-type attribute
1478//			$(window).bind('scroll',function(e){
1479//				$('.stuning-header-inner .page-title-inner').dfdStunHeaderParallax();
1480//				//if($('#layout').hasClass('single-post')) {
1481//				//	$('.share-cover').dfdShareScroll();
1482//				//}
1483//				if($('#layout').hasClass('single-folio') && $(window).width() > 800) {
1484//					//$('.share-cover').dfdFolioInsideScroll();
1485//					if($('.folio-info').hasClass('desc-left') || $('.folio-info').hasClass('desc-right')) {
1486//						$('.folio-info').dfdFolioInsideScroll();
1487//					}
1488//				}
1489//			});
1490//		}
1491//	});
1492	/*
1493	var scrollbarWidth;
1494	$(document).ready(function() {
1495		var div = document.createElement('div');
1496
1497		div.style.overflowY = 'scroll';
1498		div.style.width =  '50px';
1499		div.style.height = '50px';
1500
1501		div.style.visibility = 'hidden';
1502
1503		document.body.appendChild(div);
1504		scrollbarWidth = div.offsetWidth - div.clientWidth;
1505		document.body.removeChild(div);
1506
1507	});
1508	*/
1509	var eqHeightInit = function() {
1510		var w = jQuery(window).width() + scrollbarWidth;
1511		$('.features_module-eq-height .row').each(function(){
1512			if (w>800) {
1513				$(this).find('.columns').equalHeights();
1514			} else {
1515				$(this).find('.columns').equalHeightsDestroy();
1516			}
1517		});
1518		$('.module-eq-height .row').each(function(){
1519			if (w>800) {
1520				$(this).find('.columns').equalHeights();
1521			} else {
1522				$(this).find('.columns').equalHeightsDestroy();
1523			}
1524		});
1525		$('.features_tiles_module .row').each(function(){
1526			$(this).find('.columns').equalHeights();
1527		});
1528		$('.dfd-equal-height-children').each(function(){
1529			if (w>800 && !$(this).hasClass('dfd-destroy-wide')) {
1530				if ($(this).find('#left-sidebar.dfd-eq-height').length > 0 || $(this).find('#right-sidebar.dfd-eq-height').length > 0) {
1531					var $self = $(this);
1532					setTimeout(function() {
1533						$self.find('.dfd-eq-height').equalHeights();}, 1000);
1534				} else {
1535					$(this).find('.dfd-eq-height').equalHeights();
1536				}
1537				$(this).find('.dfd-eq-height').equalHeights();
1538			} else if ($(this).hasClass('dfd-mobile-keep-height')) {
1539				$(this).find('.dfd-eq-height').equalHeights();
1540			} else if (w>1024 && $(this).hasClass('dfd-destroy-wide')) {
1541				$(this).find('.dfd-eq-height').equalHeights();
1542			} else {
1543				$(this).find('.dfd-eq-height').equalHeightsDestroy();
1544			}
1545		});
1546		$('.vc-row-wrapper.equal-height-columns').each(function(){
1547			var $container = $(this);
1548			var $columns = $container.find('>.row >.columns');
1549			if($(this).hasClass('mobile-destroy-equal-heights')) {
1550				if (w>800) {
1551					$columns.equalHeights();
1552				} else {
1553					$columns.equalHeightsDestroy();
1554				}
1555			} else {
1556				$(this).find('>.row >.columns').equalHeights();
1557			}
1558			$columns.each(function() {
1559				if($(this).find('.vc-row-wrapper').length > 0) {
1560					$(this).addClass('dfd-bg-inside');
1561				}
1562			});
1563		});
1564		
1565		$('.dfd-equal-height-wrapper').each(function(){
1566			if($(this).hasClass('dfd-mobile-destroy-equal-heights')) {
1567				if (w>800) {
1568					$(this).find('>div').equalHeights();
1569				} else {
1570					$(this).find('>div').equalHeightsDestroy();
1571				}
1572			} else {
1573				$(this).find('>div').equalHeights();
1574			}
1575		});
1576	};
1577	
1578	$window.on("load resize", eqHeightInit);
1579	$window.one('scroll', eqHeightInit);
1580	
1581	var dfdFullHeightRow = function () {
1582		$( '.dfd-row-full-height:first' ).each( function () {
1583			var windowHeight,
1584				offset,
1585				fullHeight,
1586				$self = $(this);
1587				windowHeight = $window.height()
1588				windowWidth = $window.width();
1589			setTimeout(function() {
1590				offset = $self.offset().top;
1591				if($('.dfd-frame-line.line-bottom')) {
1592					offset += $('.dfd-frame-line.line-bottom').height();
1593				}
1594				if ( offset < windowHeight ) {
1595						fullHeight = windowHeight - offset - 1;
1596						$self.css( 'min-height', fullHeight + 'px' );
1597						if(windowWidth < 1025 && windowWidth > 1022) {
1598							$self.css( 'max-height', fullHeight + 'px' );
1599						}
1600				}
1601			}, 100);
1602		});
1603	};
1604	
1605	$window.on("load resize", dfdFullHeightRow);
1606	
1607	var dfdProductsListDelim = function() {
1608		$('.dfd-woocomposer_list .dfd-woo-product-list >li').each(function() {
1609			var $self = $(this);
1610			if(!$self.find('.dfd-list-menu-mode')) return;
1611			var $container = $self.find('.dfd-list-menu-mode:first-child');
1612			var titleWidth = 0;
1613			var priceWidth = 0;
1614			if($container.find('.box-name')) {
1615				titleWidth = $container.find('.box-name').width();
1616			}
1617			if($container.find('>.amount')) {
1618				priceWidth = $container.find('>.amount').width();
1619			}
1620			$container.find('.woo-delim').css({
1621				'left': titleWidth,
1622				'right': priceWidth
1623			});
1624		});
1625	};
1626	$window.on("load resize", dfdProductsListDelim);
1627	
1628	if($('#left-sidebar').length > 0 || $('#right-sidebar').length > 0) {
1629		$('#grid-folio, .works-list, #grid-posts').observeDOM(function(){
1630			eqHeightInit();
1631		});
1632	}
1633	if($('.dfd-equal-height-children').length > 0) {
1634		$('.dfd-equal-height-children').parent().observeDOM(function(){ 
1635			eqHeightInit();
1636		});
1637	}
1638	
1639	$(document).ready(function() {
1640		eqHeightInit();
1641		$('.vc-row-wrapper.equal-height-columns.aligh-content-verticaly').each(function(){
1642			var $container = $(this);
1643			var $columns = $container.find('>.row >.columns');
1644			$columns.each(function() {
1645				if($(this).find('.vc-row-wrapper').length > 0) {
1646					$(this).find('.vc-row-wrapper').wrapInner('<div class="dfd-vertical-aligned"></div>');
1647				} else {
1648					$(this).wrapInner('<div class="dfd-vertical-aligned"></div>');
1649				}
1650			});
1651		});
1652	});
1653
1654})(jQuery);
1655
1656/*---------------------------------
1657 Custom share buttons
1658 -----------------------------------*/
1659jQuery(document).ready(function ($) {
1660    var  $share_container = jQuery('.entry-share-popup, .entry-share-no-popup, .entry-share-popup-folio');
1661
1662    if (jQuery($share_container).length  > 0) {
1663		jQuery('.entry-share-clickable > a').each(function(){
1664			var $closebutton = $(this).parent().parent().siblings('.entry-share-clickable-close').find('>a');
1665			var $popup = $(this).parent().parent().siblings('.entry-share-popup-folio');
1666			
1667			$(this).click(function(){
1668				$popup.show().animate({top: '0'}, 200, function () {
1669					$closebutton.show();
1670				});
1671
1672				return false;
1673			});
1674			
1675			$closebutton.click(function() {
1676				$popup.animate({top: '100%'}, 200, function() {
1677					$closebutton.hide();
1678				});
1679				setTimeout(function() {
1680					$popup.hide();
1681				},200);
1682				
1683				return false;
1684			});
1685		});
1686		
1687		jQuery('.dfd-share-popup').unbind('click').bind('click touchend', function(e) {
1688			e.preventDefault();
1689			var $self = jQuery(this);
1690			$self.siblings('.entry-share-popup').toggle('slow');
1691			/*
1692			if($self.parent('.dfd-share-popup-wrap').hasClass('opened')) {
1693				$self.parent('.dfd-share-popup-wrap').removeClass('opened');
1694			} else {
1695				$self.parent('.dfd-share-popup-wrap').addClass('opened');
1696			}
1697			*/
1698		});
1699
1700        jQuery('.entry-share-link-facebook', $share_container).sharrre({
1701            share: {
1702                facebook: true
1703            },
1704            template: '<a href="#"><i class="soc_icon-facebook"></i><span class="total">{total}</span></a>',
1705            enableHover: false,
1706			enableCounter: true,
1707            urlCurl: $share_container.data('directory') + '/inc' + '/sharrre.php',
1708
1709            click: function (api, options) {
1710                api.simulateClick();
1711                api.openPopup('facebook');
1712            }
1713        });
1714
1715
1716        jQuery('.entry-share-link-twitter', $share_container).sharrre({
1717            share: {
1718                twitter: true
1719            },
1720            template: '<a href="#" class="twitter"><i class="soc_icon-twitter-3"></i><span class="total">{total}</span></a>',
1721            enableHover: false,
1722			enableCounter: true,
1723            urlCurl: $share_container.data('directory') + '/inc' + '/sharrre.php',
1724            click: function (api, options) {
1725                api.simulateClick();
1726                api.openPopup('twitter');
1727            }
1728        });
1729
1730
1731
1732        jQuery('.entry-share-link-googleplus', $share_container).sharrre({
1733            share: {
1734                googlePlus: true
1735            },
1736            template: '<a href="#"><i class="soc_icon-google__x2B_"></i><span class="total">{total}</span></a>',
1737            enableHover: false,
1738			enableCounter: true,
1739            urlCurl: $share_container.data('directory') + '/inc' + '/sharrre.php',
1740
1741            click: function (api, options) {
1742                api.simulateClick();
1743                api.openPopup('googlePlus');
1744            }
1745        });
1746
1747        jQuery('.entry-share-link-linkedin', $share_container).sharrre({
1748				share: {
1749					linkedin: true
1750				},
1751				template: '<a href="#"><i class="soc_icon-linkedin"></i><span class="total">{total}</span></a>',
1752				enableHover: false,
1753				enableCounter: true,
1754				urlCurl: $share_container.data('directory') + '/inc' + '/sharrre.php',
1755
1756				click: function (api, options) {
1757					api.simulateClick();
1758					api.openPopup('linkedin');
1759				}
1760			});
1761
1762    }
1763	
1764	/* Fan facts animation */
1765	$('.fact-number .number.call-on-waypoint:not(.circle)').each(function() {
1766		var $number = $(this);
1767		var start = $number.attr('data-start');
1768		var end = $number.attr('data-end');
1769		var speed = parseInt($number.attr('data-speed'));
1770		
1771		$number.on('on-waypoin', function () {	
1772			$({value: start}).animate({value: end}, {
1773					duration: speed,
1774					easing: 'linear',
1775					step: function() {
1776						$number.text(Math.floor(this.value)).trigger('change');
1777					},
1778					complete: function() {
1779						$number.text(Math.floor(this.value)).trigger('change');
1780					}
1781				});
1782		});
1783	});
1784	
1785	$('.fact-number .number.circle.call-on-waypoint').each(function() {
1786		if ($(window).width() <= screen_medium) return false;
1787		
1788		var $number = $(this);
1789		var start = $number.attr('data-start');
1790		var end = $number.attr('data-end');
1791		var speed = parseInt($number.attr('data-speed'));
1792		
1793		var $input = $number.find($number.attr('data-knob'));
1794		$input.val(Math.ceil(start)).trigger('change');
1795		
1796		$number.on('on-waypoin', function () { 
1797			$({value: start}).animate({value: end}, {
1798				duration: speed,
1799				easing: 'swing',
1800				step: function() {
1801					$input.val(Math.ceil(this.value)).trigger('change');
1802					$number.text(Math.floor(this.value)).trigger('change');
1803				},
1804				complete: function() {
1805					$input.val(Math.ceil(this.value)).trigger('change');
1806					$number.text(Math.floor(this.value)).trigger('change');
1807				}
1808			});
1809		});
1810	});
1811	$('.animated-test-module .call-on-waypoint').each(function() {
1812		var $block = $(this);
1813
1814		$block.on('on-waypoin', function () {
1815			if($block.hasClass('onit') === false) {
1816				setTimeout(function() {
1817					$block.addClass('onit');
1818				}, 500);
1819			}
1820		});
1821	});
1822}); // document ready
1823
1824(function($) {
1825	$('.dfd-blog-share-popup-wrap').each(function() {
1826		var $self = $(this);
1827		$self.sharrre({
1828			share: {
1829				googlePlus: true,
1830				facebook: true,
1831				twitter: true,
1832				linkedin: true,
1833				pinterest: true
1834			},
1835			template: '<div class="box">
1835<div class="dfd-share-icons"><a href="#" class="facebook soc_icon-facebook"></a><a href="#" class="twitter soc_icon-twitter-3"></a><a href="#" class="googleplus soc_icon-google"></a><a href="#" class="linkedin soc_icon-linkedin"></a><a href="#" class="pinterest soc_icon-pinterest"></a></div><div class="dfd-share-title box-name">'+$self.data('title')+'<span class="dfd-share-right">{total}</span></div></div>',
1836			urlCurl: $self.data('directory') + '/inc' + '/sharrre.php',
1837			enableHover: false,
1838			enableTracking: true,
1839			render: function(api, options){
1840				$(api.element).on('click', '.twitter', function(e) {
1841					e.preventDefault();
1842					api.openPopup('twitter');
1843				});
1844				$(api.element).on('click', '.facebook', function(e) {
1845					e.preventDefault();
1846					api.openPopup('facebook');
1847				});
1848				$(api.element).on('click', '.googleplus', function(e) {
1849					e.preventDefault();
1850					api.openPopup('googlePlus');
1851				});
1852				$(api.element).on('click', '.linkedin', function(e) {
1853					e.preventDefault();
1854					api.openPopup('linkedin');
1855				});
1856				$(api.element).on('click', '.pinterest', function(e) {
1857					e.preventDefault();
1858					api.openPopup('pinterest');
1859				});
1860			}
1861		});
1862	});
1863})(jQuery);
1864
1865(function($) {
1866	var ua = window.navigator.userAgent;
1867	var ie_version;
1868
1869	var msie = ua.indexOf('MSIE ');
1870	if (msie > 0) {
1871		// IE 10 or older => return version number
1872		ie_version =  parseInt(ua.substring(msie + 5, ua.indexOf('.', msie)), 10);
1873		$('html').addClass('dfd-ie-detected ie-'+ie_version);
1874	}
1875
1876	var trident = ua.indexOf('Trident/');
1877	if (trident > 0) {
1878		// IE 11 => return version number
1879		var rv = ua.indexOf('rv:');
1880		ie_version =  parseInt(ua.substring(rv + 3, ua.indexOf('.', rv)), 10);
1881		$('html').addClass('dfd-ie-detected ie-'+ie_version);
1882	}
1883
1884	var edge = ua.indexOf('Edge/');
1885	if (edge > 0) {
1886	   // IE 12 => return version number
1887	   ie_version =  parseInt(ua.substring(edge + 5, ua.indexOf('.', edge)), 10);
1888		$('html').addClass('dfd-ie-detected ie-'+ie_version);
1889	}
1890})(jQuery);
1891
1892/*---------------------------------
1893 Video controls
1894 -----------------------------------*/
1895(function($){
1896	"use strict";
1897	$(document).ready(function() {
1898		$('.row-video-controls a.video').click(function(e) {
1899			var $this = $(this);
1900			var video = $(this).parents('section.row-wrapper').find('.row-video-container > video').get(0);
1901			
1902			if (video.paused) {
1903				video.play();
1904				$this.removeClass('video-off').addClass('video-on');
1905			} else {
1906				video.pause();
1907				$this.removeClass('video-on').addClass('video-off');
1908			}
1909			
1910			e.preventDefault();
1911		});
1912		
1913		$('.row-video-controls a.sound').click(function(e) {
1914			var $this = $(this);
1915			var video = $(this).parents('section.row-wrapper').find('.row-video-container > video').get(0);
1916			
1917			if (video.muted) {
1918				video.muted = false;
1919				$this.removeClass('sound-off').addClass('sound-on');
1920			} else {
1921				video.muted = true;
1922				$this.removeClass('sound-on').addClass('sound-off');
1923			}
1924			
1925			e.preventDefault();
1926		});
1927	});
1928	
1929})(jQuery);
1930// end video controls
1931
1932/*---------------------------------
1933 Portfolio hide categories
1934 -----------------------------------*/
1935(function($){
1936	"use strict";
1937	var hide_show_isotope_category = function (item_container, scan_hidden, new_item) {
1938		var $filter_item = (scan_hidden != undefined && scan_hidden === true) ? $('.sort-panel a:hidden') : $('.sort-panel a');
1939		
1940		$filter_item.each(function() {
1941			var $this = $(this);
1942			var filter = ($this.data('filter') != undefined) ? $this.data('filter') : false;
1943			if (filter === false) {
1944				return true;
1945			}
1946			var filter_match = (new_item != undefined && typeof(new_item) === 'object' && scan_hidden === true) 
1947				? (new_item.is(filter)) ? 1 : 0 
1948				: $(filter).length;
1949			
1950			if (filter_match == 0) {
1951				$this.hide().addClass("not-active");
1952			} else if (filter_match > 0 && $this.is(':hidden')) {
1953				$this.show().addClass("is-active");
1954				
1955			}
1956		});
1957	};
1958	
1959	$(document).ready(function() {
1960		hide_show_isotope_category('div.works-list');
1961		
1962		$('body').bind('isotope-add-item', function(e, item) {
1963			hide_show_isotope_category('div.works-lists', true, $(item));
1964		});
1965	});
1966	
1967})(jQuery);
1968
1969
1970/*---------------------------------
1971 horizontal scroll hack
1972 -----------------------------------*/
1973(function($){
1974	"use strict";
1975	var y = 0;
1976	
1977	$(window).scroll(function() {
1978		if($(this).scrollLeft() != 0 && $('body').hasClass('dfd-custom-padding-html')) {
1979			$('#header-container').css({left: $(this).scrollLeft() + $('body').css('margin') * -1});
1980		} else if($(this).scrollLeft() != 0 && !$('body').hasClass('dfd-custom-padding-html')) {
1981			$('#header-container').css({left: $(this).scrollLeft() * -1});
1982		}
1983	});
1984	
1985})(jQuery);
1986
1987/*---------------------------------
1988 buddy press
1989 -----------------------------------*/
1990(function($){
1991	"use strict";
1992	$(document).ready(function() {
1993		$('#whats-new-submit').prepend('<i class="crdash-check_alt"></i>');
1994		
1995		$('#subnav a').prepend('');
1996		
1997		if ($('#group-admins').length > 0) {
1998			$('#item-header-content > span').wrapAll('<div id="item-actions-wrap"></div>');
1999			$('#item-header-content > #item-actions-wrap').insertAfter($('#group-admins'));
2000			$('#item-actions > h3').insertBefore('#item-actions-wrap > .highlight');
2001			$('#item-header-content').hide();
2002		}
2003		
2004		$('#activity-stream li').each(function() {
2005			var $this = $(this);
2006			$('> div', $this).wrapAll('<div class="activitys-wrap"></div>');
2007			
2008			$('.activity-meta a', $this).removeClass('button');
2009			$('.activity-meta a.acomment-reply', $this).prepend('<i class="crdash-square_chat_alt"></i>');
2010			$('.activity-meta a.fav', $this).prepend('<i class="crdash-heart"></i>');
2011			$('.activity-meta a.delete-activity', $this).prepend('<i class="crdash-trash_can"></i>');
2012			
2013			$('.activity-content .activity-meta', $this).insertAfter($('.activitys-wrap', $this));
2014		});
2015		
2016		$('#members_search, #groups_search').unwrap('label');
2017		
2018		$('#bp-login-widget-form').find('label').each(function() {
2019			var id = $(this).attr('for');
2020			var input = $('#'+id);
2021			var labelHtml = $(this).clone();
2022			var inputHtml = $('#'+id).clone();
2023			if(input.length) {
2024				$(this).remove();
2025				input.remove();
2026				$('#bp-login-widget-form .forgetmenot').before('<p class="'+id+'"/>');
2027				$('#bp-login-widget-form').find('.'+id).append(labelHtml).append(inputHtml);
2028			}
2029		});
2030		
2031		/*$('#bp-login-widget-form, .bbp-login-form, .widget_crum_login').find('input[type="text"], input[type="password"]').focus(function() {
2032			$(this).parent().addClass('active');
2033		}).blur(function() {
2034			$(this).parent().removeClass('active');
2035		});*/
2036		
2037		//$('form.woocommerce-product-search, #bbp-search-form, form.form-search, #search-message-form, #search-members-form, #search-groups-form').find('input[type="text"], input[type="search"]').focus(function() {
2038		//	$(this).parents('form').addClass('active');
2039		//}).blur(function() {
2040		//	$(this).parents('form').removeClass('active');
2041		//});
2042	});
2043	
2044})(jQuery);
2045
2046/*Product thumb carousel*/
2047(function($) {
2048	"use strict";
2049	$(document).ready(function() {
2050		var $carousel = $('.woo-entry-thumb-carousel'),
2051			speed = $carousel.data('speed');
2052		$carousel.slick({
2053			infinite: true,
2054			slidesToShow: 1,
2055			slidesToScroll: 1,
2056			arrows: false,
2057			dots: false,
2058			fade: true,
2059			autoplay: true,
2060			autoplaySpeed: speed,
2061			pauseOnHover: false
2062		});
2063	});
2064})(jQuery);
2065
2066
2067/*---------------------------------
2068 side area
2069 -----------------------------------*/
2070(function($){
2071	'use strict';
2072	
2073	$(document).on('click touchend', '.side-area-controller', function (e) {
2074		e.preventDefault();
2075		
2076		if($('.side-area-controller').hasClass('active')) {
2077			$('.side-area-controller').removeClass('active');
2078		} else {
2079			$('.side-area-controller').addClass('active');
2080		}
2081		
2082		$('#side-area').toggleClass('opened');
2083		$('html,body').toggleClass('side-area-opened');
2084		
2085		if (typeof $.initSlider === 'function') {
2086			setTimeout(function() {
2087				$.initSlider();
2088			}, 500);
2089		}
2090		
2091	});
2092	
2093	$('.top-inner-page-close').each(function(){
2094		var $self = $(this);
2095		$self.hover(function() {
2096			$self.addClass('hovered');
2097		},function() {
2098			$self.removeClass('hovered').addClass('lost-hover');
2099			setTimeout(function() {
2100				$self.removeClass('lost-hover');
2101			}, 300);
2102		});
2103	});
2104	/*
2105	$(document).on('side-aray-show', '#header-container', function() {
2106		$('.side-area-controller').show();
2107		$('#side-area').removeClass('not-open');
2108	});
2109	
2110	$(document).on('side-aray-hide', '#header-container', function() {
2111		$('.side-area-controller').hide();
2112		$('#side-area').addClass('not-open');
2113		close_side_area();
2114	});
2115
2116	var close_side_area = function() {
2117        if ($('#side-area').hasClass('opened')) {
2118            $('#side-area').removeClass('opened');
2119			$('.side-area-controller').removeClass('opened');
2120            $('html,body').removeClass('side-area-opened');
2121        }
2122    };
2123	*/
2124})(jQuery);
2125
2126
2127/*!
2128 * Lettering.JS 0.6.1
2129 *
2130 * Copyright 2010, Dave Rupert http://daverupert.com
2131 * Released under the WTFPL license
2132 * http://sam.zoy.org/wtfpl/
2133 *
2134 * Thanks to Paul Irish - http://paulirish.com - for the feedback.
2135 *
2136 * Date: Mon Sep 20 17:14:00 2010 -0600
2137 */
2138
2139(function(b){function c(a,e,c,d){e=a.text().split(e);var f="";e.length&&(b(e).each(function(a,b){f+='<span class="'+c+(a+1)+'">'+b+"</span>"+d}),a.empty().append(f))}var d={init:function(){return this.each(function(){c(b(this),"","char","")})},words:function(){return this.each(function(){c(b(this)," ","word"," ")})},lines:function(){return this.each(function(){c(b(this).children("br").replaceWith("eefec303079ad17405c889e092e105b0").end(),"eefec303079ad17405c889e092e105b0","line","")})}};b.fn.lettering=
2140    function(a){if(a&&d[a])return d[a].apply(this,[].slice.call(arguments,1));if("letters"===a||!a)return d.init.apply(this,[].slice.call(arguments,0));b.error("Method "+a+" does not exist on jQuery.lettering");return this}})(jQuery);
2141
2142/*
2143 * textillate.js
2144 * http://jschr.github.com/textillate
2145 * MIT licensed
2146 *
2147 * Copyright (C) 2012-2013 Jordan Schroter
2148 */
2149
2150(function($){"use strict";function isInEffect(effect){return/In/.test(effect)||$.inArray(effect,$.fn.textillate.defaults.inEffects)>=0}function isOutEffect(effect){return/Out/.test(effect)||$.inArray(effect,$.fn.textillate.defaults.outEffects)>=0}function getData(node){var attrs=node.attributes||[],data={};if(!attrs.length)return data;$.each(attrs,function(i,attr){if(/^data-in-*/.test(attr.nodeName)){data["in"]=data["in"]||{};data["in"][attr.nodeName.replace(/data-in-/,"")]=attr.nodeValue}else if(/^data-out-*/.test(attr.nodeName)){data.out=
2151    data.out||{};data.out[attr.nodeName.replace(/data-out-/,"")]=attr.nodeValue}else if(/^data-*/.test(attr.nodeName))data[attr.nodeName]=attr.nodeValue});return data}function shuffle(o){for(var j,x,i=o.length;i;j=parseInt(Math.random()*i),x=o[--i],o[i]=o[j],o[j]=x);return o}function animate($c,effect,cb){$c.addClass("animated "+effect).css("visibility","visible").show();$c.one("animationend webkitAnimationEnd oAnimationEnd",function(){$c.removeClass("animated "+effect);cb&&cb()})}function animateChars($chars,
2152                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            options,cb){var that=this,count=$chars.length;if(!count){cb&&cb();return}if(options.shuffle)shuffle($chars);$chars.each(function(i){var $this=$(this);function complete(){if(isInEffect(options.effect))$this.css("visibility","visible");else if(isOutEffect(options.effect))$this.css("visibility","hidden");count-=1;if(!count&&cb)cb()}var delay=options.sync?options.delay:options.delay*i*options.delayScale;$this.text()?setTimeout(function(){animate($this,options.effect,complete)},delay):complete()})}var Textillate=
2153    function(element,options){var base=this,$element=$(element);base.init=function(){base.$texts=$element.find(options.selector);if(!base.$texts.length){base.$texts=$('<ul class="texts"><li>'+$element.html()+"</li></ul>");$element.html(base.$texts)}base.$texts.hide();base.$current=$("<span>").text(base.$texts.find(":first-child").html()).prependTo($element);if(isInEffect(options.effect))base.$current.css("visibility","hidden");else if(isOutEffect(options.effect))base.$current.css("visibility","visible");
2154        base.setOptions(options);setTimeout(function(){base.options.autoStart&&base.start()},base.options.initialDelay)};base.setOptions=function(options){base.options=options};base.start=function(index){var $next=base.$texts.find(":nth-child("+(index||1)+")");(function run($elem){var options=$.extend({},base.options,getData($elem));base.$current.text($elem.html()).lettering("words");base.$current.find('[class^="word"]').css({"display":"inline-block","-webkit-transform":"translate3d(0,
21540,0)","-moz-transform":"translate3d(0,0,0)",
2155        "-o-transform":"translate3d(0,0,0)","transform":"translate3d(0,0,0)"}).each(function(){$(this).lettering()});var $chars=base.$current.find('[class^="char"]').css("display","inline-block");if(isInEffect(options["in"].effect))$chars.css("visibility","hidden");else if(isOutEffect(options["in"].effect))$chars.css("visibility","visible");animateChars($chars,options["in"],function(){setTimeout(function(){var options=$.extend({},base.options,getData($elem));var $next=$elem.next();if(base.options.loop&&!$next.length)$next=
2156        base.$texts.find(":first-child");if(!$next.length)return;animateChars($chars,options.out,function(){run($next)})},base.options.minDisplayTime)})})($next)};base.init()};$.fn.textillate=function(settings,args){return this.each(function(){var $this=$(this),data=$this.data("textillate"),options=$.extend(true,{},$.fn.textillate.defaults,getData(this),typeof settings=="object"&&settings);if(!data)$this.data("textillate",data=new Textillate(this,options));else if(typeof settings=="string")data[settings].apply(data,
2157    [].concat(args));else data.setOptions.call(data,options)})};$.fn.textillate.defaults={selector:".texts",loop:false,minDisplayTime:2E3,initialDelay:0,"in":{effect:"fadeInLeftBig",delayScale:1.5,delay:50,sync:false,shuffle:false},out:{effect:"hinge",delayScale:1.5,delay:50,sync:false,shuffle:false},autoStart:true,inEffects:[],outEffects:["hinge"]}})(jQuery);
2158
2159/*! Fluidvids v2.2.0 | (c) 2014 @toddmotto | github.com/toddmotto/fluidvids */
2160!function(a,b){"function"==typeof define&&define.amd?define(b):"object"==typeof exports?module.exports=b:a.fluidvids=b()}(this,function(){"use strict";var a={selector:"iframe",players:["www.youtube.com","player.vimeo.com"]},b=document.head||document.getElementsByTagName("head")[0],c=".fluidvids{width:100%;position:relative;}.fluidvids iframe{position:absolute;top:0px;left:0px;width:100%;height:100%;}",d=function(b){var c=new RegExp("^(https?:)?//(?:"+a.players.join("|")+").*$","i");return c.test(b)},e=function(a){if(!a.getAttribute("data-fluidvids")){var b=document.createElement("div"),c=parseInt(a.height?a.height:a.offsetHeight,10)/parseInt(a.width?a.width:a.offsetWidth,10)*100;a.parentNode.insertBefore(b,a),a.setAttribute("data-fluidvids","loaded"),b.className+="fluidvids",b.style.paddingTop=c+"%",b.appendChild(a)}},f=function(){var a=document.createElement("div");a.innerHTML="<p>x</p><style>"+c+"</style>",b.appendChild(a.childNodes[1])};return a.apply=function(){for(var b=document.querySelectorAll(a.selector),c=0;c<b.length;c++){var f=b[c];d(f.src)&&e(f)}},a.init=function(b){for(var c in b)a[c]=b[c];a.apply(),f()},a});
2161(function($){
2162	"use strict";
2163	$(document).on('ready', function(){
2164		fluidvids.init({selector: 'iframe', players: ['www.youtube.com', 'player.vimeo.com']})
2165	});
2166})(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.