PageSourceSearch

https://www.enerminds.com/prometium/js/template.js

js enerminds.com collected 2026-10-07 14:58:53 UTC 56,014 bytes, 1,997 lines download raw bytes

1/* Theme Name: The Project - Responsive Website Template
2 * Author:HtmlCoder
3 * Author URI:http://www.htmlcoder.me
4 * Author e-mail:[email protected]
5 * Version:1.3.0
6 * Created:March 2015
7 * License URI:http://support.wrapbootstrap.com/
8 * File Description: Initializations of plugins
9 */
10
11(function($){
12	$(document).ready(function(){
13
14		if ($('.boxed .fullscreen-bg').length>0) {
15			$("body").addClass("transparent-page-wrapper");
16		};
17
18		$(window).load(function() {
19			$("body").removeClass("no-trans");
20		});
21		// Enable Smooth Scroll only on Chrome and only on Win and Linux Systems
22		var platform = navigator.platform.toLowerCase();
23		if ((platform.indexOf('win') == 0 || platform.indexOf('linux') == 0) && !Modernizr.touch) {
24			if ($.browser.webkit) {
25				$.webkitSmoothScroll();
26				console.log("hello webkit");
27			}
28		};
29		//Show dropdown on hover only for desktop devices
30		//-----------------------------------------------
31		var delay=0, setTimeoutConst;
32		if ((Modernizr.mq('only all and (min-width: 768px)') && !Modernizr.touch) || $("html.ie8").length>0) {
33			$('.main-navigation:not(.onclick) .navbar-nav>li.dropdown, .main-navigation:not(.onclick) li.dropdown>ul>li.dropdown').hover(
34			function(){
35				var $this = $(this);
36				setTimeoutConst = setTimeout(function(){
37					$this.addClass('open').slideDown();
38					$this.find('.dropdown-toggle').addClass('disabled');
39				}, delay);
40
41			},	function(){
42				clearTimeout(setTimeoutConst );
43				$(this).removeClass('open');
44				$(this).find('.dropdown-toggle').removeClass('disabled');
45			});
46		};
47
48		//Show dropdown on click only for mobile devices
49		//-----------------------------------------------
50		if (Modernizr.mq('only all and (max-width: 767px)') || Modernizr.touch || $(".main-navigation.onclick").length>0 ) {
51			$('.main-navigation [data-toggle=dropdown], .header-top [data-toggle=dropdown]').on('click', function(event) {
52			// Avoid following the href location when clicking
53			event.preventDefault();
54			// Avoid having the menu to close when clicking
55			event.stopPropagation();
56			// close all the siblings
57			$(this).parent().siblings().removeClass('open');
58			// close all the submenus of siblings
59			$(this).parent().siblings().find('[data-toggle=dropdown]').parent().removeClass('open');
60			// opening the one you clicked on
61			$(this).parent().toggleClass('open');
62			});
63		};
64
65		//Transparent Header Calculations
66		var timer_tr;
67		if ($(".transparent-header").length>0) {
68			$(window).load(function() {
69				trHeaderHeight = $("header.header").outerHeight();
70				$(".transparent-header .tp-bannertimer").css("marginTop", (trHeaderHeight)+"px");
71			});
72			$(window).resize(function() {
73				if ($(this).scrollTop()  < headerTopHeight + headerHeight -5) {
74					trHeaderHeight = $("header.header").outerHeight();
75					$(".transparent-header .tp-bannertimer").css("marginTop", (trHeaderHeight)+"px");
76				}
77			});
78			$(window).scroll(function() {
79				if ($(this).scrollTop() == 0 ) {
80					if(timer_tr) {
81						window.clearTimeout(timer_tr);
82					};
83					timer_tr = window.setTimeout(function() {
84						trHeaderHeight = $("header.header").outerHeight();
85						$(".transparent-header .tp-bannertimer").css("marginTop", (trHeaderHeight)+"px");
86					}, 300);
87				};
88			});
89		}
90
91		if ($(".transparent-header .slideshow").length>0) {
92			$(".header-container header.header").addClass("transparent-header-on");
93		} else {
94			$(".header-container header.header").removeClass("transparent-header-on");
95		}
96
97		//Full Width Slider with Transparent Header Calculations
98		if ($(".transparent-header .slider-banner-fullwidth-big-height").length>0) {
99			if (Modernizr.mq('only all and (max-width: 991px)')) {
100				$("body").removeClass("transparent-header");
101				$(".header-container header.header").removeClass("transparent-header-on");
102				$(".tp-bannertimer").css("marginTop", "0px");
103				$("body").addClass("slider-banner-fullwidth-big-height-removed");
104			} else {
105				$("body").addClass("transparent-header");
106				$(".header-container header.header").addClass("transparent-header-on");
107				$("body").removeClass("slider-banner-fullwidth-big-height-removed");
108			}
109		};
110
111		if ($(".transparent-header .slider-banner-fullwidth-big-height").length>0 || $(".slider-banner-fullwidth-big-height-removed").length>0) {
112			$(window).resize(function() {
113				if (Modernizr.mq('only all and (max-width: 991px)')) {
114					$("body").removeClass("transparent-header");
115					$(".header-container header.header").removeClass("transparent-header-on");
116					$(".tp-bannertimer").css("marginTop", "0px");
117				} else {
118					$("body").addClass("transparent-header");
119					$(".header-container header.header").addClass("transparent-header-on");
120				}
121			});
122		};
123
124		//Revolution Slider 4
125		if ($(".slider-banner-container").length>0) {
126
127			$(".tp-bannertimer").show();
128
129			$('body:not(.transparent-header) .slider-banner-container .slider-banner-fullscreen').show().revolution({
130				delay:8000,
131				startwidth:1140,
132				startheight:520,
133				fullWidth:"off",
134				fullScreen:"on",
135				fullScreenOffsetContainer: ".header-container",
136				fullScreenOffset: "0",
137
138				navigationArrows:"solo",
139
140				navigationStyle: "preview2",
141				navigationHAlign:"center",
142				navigationVAlign:"bottom",
143				navigationHOffset:0,
144				navigationVOffset:20,
145
146				soloArrowLeftHalign:"left",
147				soloArrowLeftValign:"center",
148				soloArrowLeftHOffset:0,
149				soloArrowLeftVOffset:0,
150
151				soloArrowRightHalign:"right",
152				soloArrowRightValign:"center",
153				soloArrowRightHOffset:0,
154				soloArrowRightVOffset:0,
155
156				spinner:"spinner2",
157
158				stopLoop:"off",
159				stopAfterLoops:-1,
160				stopAtSlide:-1,
161				onHoverStop: "off",
162
163				shuffle:"off",
164				hideTimerBar:"off",
165
166				autoHeight:"off",
167				forceFullWidth:"off",
168
169				hideThumbsOnMobile:"off",
170				hideNavDelayOnMobile:1500,
171				hideBulletsOnMobile:"off",
172				hideArrowsOnMobile:"off",
173				hideThumbsUnderResolution:0,
174
175				hideSliderAtLimit:0,
176				hideCaptionAtLimit:0,
177				hideAllCaptionAtLilmit:0,
178				startWithSlide:0
179			});
180			$('.transparent-header .slider-banner-container .slider-banner-fullscreen').show().revolution({
181				delay:8000,
182				startwidth:1140,
183				startheight:520,
184				fullWidth:"off",
185				fullScreen:"on",
186				fullScreenOffsetContainer: ".header-top",
187				fullScreenOffset: "",
188
189				navigationArrows:"solo",
190
191				navigationStyle: "preview2",
192				navigationHAlign:"center",
193				navigationVAlign:"bottom",
194				navigationHOffset:0,
195				navigationVOffset:20,
196
197				soloArrowLeftHalign:"left",
198				soloArrowLeftValign:"center",
199				soloArrowLeftHOffset:0,
200				soloArrowLeftVOffset:0,
201
202				soloArrowRightHalign:"right",
203				soloArrowRightValign:"center",
204				soloArrowRightHOffset:0,
205				soloArrowRightVOffset:0,
206
207				spinner:"spinner2",
208
209				stopLoop:"off",
210				stopAfterLoops:-1,
211				stopAtSlide:-1,
212				onHoverStop: "off",
213
214				shuffle:"off",
215				hideTimerBar:"off",
216
217				autoHeight:"off",
218				forceFullWidth:"off",
219
220				hideThumbsOnMobile:"off",
221				hideNavDelayOnMobile:1500,
222				hideBulletsOnMobile:"off",
223				hideArrowsOnMobile:"off",
224				hideThumbsUnderResolution:0,
225
226				hideSliderAtLimit:0,
227				hideCaptionAtLimit:0,
228				hideAllCaptionAtLilmit:0,
229				startWithSlide:0
230			});
231
232			$('.slider-banner-container .slider-banner-fullwidth').show().revolution({
233				delay:8000,
234				startwidth:1140,
235				startheight:450,
236
237				navigationArrows:"solo",
238
239				navigationStyle: "preview2",
240				navigationHAlign:"center",
241				navigationVAlign:"bottom",
242				navigationHOffset:0,
243				navigationVOffset:20,
244
245				soloArrowLeftHalign:"left",
246				soloArrowLeftValign:"center",
247				soloArrowLeftHOffset:0,
248				soloArrowLeftVOffset:0,
249
250				soloArrowRightHalign:"right",
251				soloArrowRightValign:"center",
252				soloArrowRightHOffset:0,
253				soloArrowRightVOffset:0,
254
255				fullWidth:"on",
256
257				spinner:"spinner2",
258
259				stopLoop:"off",
260				stopAfterLoops:-1,
261				stopAtSlide:-1,
262				onHoverStop: "off",
263
264				shuffle:"off",
265
266				autoHeight:"off",
267				forceFullWidth:"off",
268
269				hideThumbsOnMobile:"off",
270				hideNavDelayOnMobile:1500,
271				hideBulletsOnMobile:"off",
272				hideArrowsOnMobile:"off",
273				hideThumbsUnderResolution:0,
274
275				hideSliderAtLimit:0,
276				hideCaptionAtLimit:0,
277				hideAllCaptionAtLilmit:0,
278				startWithSlide:0
279			});
280
281			$('.slider-banner-container .slider-banner-fullwidth-big-height').show().revolution({
282				delay:8000,
283				startwidth:1140,
284				startheight:650,
285
286				navigationArrows:"solo",
287
288				navigationStyle: "preview2",
289				navigationHAlign:"center",
290				navigationVAlign:"bottom",
291				navigationHOffset:0,
292				navigationVOffset:20,
293
294				soloArrowLeftHalign:"left",
295				soloArrowLeftValign:"center",
296				soloArrowLeftHOffset:0,
297				soloArrowLeftVOffset:0,
298
299				soloArrowRightHalign:"right",
300				soloArrowRightValign:"center",
301				soloArrowRightHOffset:0,
302				soloArrowRightVOffset:0,
303
304				fullWidth:"on",
305
306				spinner:"spinner2",
307
308				stopLoop:"off",
309				stopAfterLoops:-1,
310				stopAtSlide:-1,
311				onHoverStop: "off",
312
313				shuffle:"off",
314
315				autoHeight:"off",
316				forceFullWidth:"off",
317
318				hideThumbsOnMobile:"off",
319				hideNavDelayOnMobile:1500,
320				hideBulletsOnMobile:"off",
321				hideArrowsOnMobile:"off",
322				hideThumbsUnderResolution:0,
323
324				hideSliderAtLimit:0,
325				hideCaptionAtLimit:0,
326				hideAllCaptionAtLilmit:0,
327				startWithSlide:0
328			});
329
330			$('.banner:not(.dark-bg) .slider-banner-container .slider-banner-boxedwidth').show().revolution({
331				delay:8000,
332				startwidth:1140,
333				startheight:450,
334
335				navigationArrows:"solo",
336
337				navigationStyle: "preview2",
338				navigationHAlign:"center",
339				navigationVAlign:"bottom",
340				navigationHOffset:0,
341				navigationVOffset:20,
342
343				soloArrowLeftHalign:"left",
344				soloArrowLeftValign:"center",
345				soloArrowLeftHOffset:0,
346				soloArrowLeftVOffset:0,
347
348				soloArrowRightHalign:"right",
349				soloArrowRightValign:"center",
350				soloArrowRightHOffset:0,
351				soloArrowRightVOffset:0,
352
353				fullWidth:"off",
354
355				spinner:"spinner2",
356				shadow: 1,
357
358				stopLoop:"off",
359				stopAfterLoops:-1,
360				stopAtSlide:-1,
361				onHoverStop: "off",
362
363				shuffle:"off",
364
365				autoHeight:"off",
366				forceFullWidth:"off",
367
368				hideThumbsOnMobile:"off",
369				hideNavDelayOnMobile:1500,
370				hideBulletsOnMobile:"off",
371				hideArrowsOnMobile:"off",
372				hideThumbsUnderResolution:0,
373
374				hideSliderAtLimit:0,
375				hideCaptionAtLimit:0,
376				hideAllCaptionAtLilmit:0,
377				startWithSlide:0
378			});
379
380			$('.banner.dark-bg .slider-banner-container .slider-banner-boxedwidth').show().revolution({
381				delay:8000,
382				startwidth:1140,
383				startheight:450,
384
385				navigationArrows:"solo",
386
387				navigationStyle: "preview2",
388				navigationHAlign:"center",
389				navigationVAlign:"bottom",
390				navigationHOffset:0,
391				navigationVOffset:20,
392
393				soloArrowLeftHalign:"left",
394				soloArrowLeftValign:"center",
395				soloArrowLeftHOffset:0,
396				soloArrowLeftVOffset:0,
397
398				soloArrowRightHalign:"right",
399				soloArrowRightValign:"center",
400				soloArrowRightHOffset:0,
401				soloArrowRightVOffset:0,
402
403				fullWidth:"off",
404
405				spinner:"spinner2",
406				shadow: 3,
407
408				stopLoop:"off",
409				stopAfterLoops:-1,
410				stopAtSlide:-1,
411				onHoverStop: "off",
412
413				shuffle:"off",
414
415				autoHeight:"off",
416				forceFullWidth:"off",
417
418				hideThumbsOnMobile:"off",
419				hideNavDelayOnMobile:1500,
420				hideBulletsOnMobile:"off",
421				hideArrowsOnMobile:"off",
422				hideThumbsUnderResolution:0,
423
424				hideSliderAtLimit:0,
425				hideCaptionAtLimit:0,
426				hideAllCaptionAtLilmit:0,
427				startWithSlide:0
428			});
429
430			$('.slider-banner-container .slider-banner-boxedwidth-no-shadow').show().revolution({
431				delay:8000,
432				startwidth:1140,
433				startheight:450,
434
435				navigationArrows:"solo",
436
437				navigationStyle: "preview2",
438				navigationHAlign:"center",
439				navigationVAlign:"bottom",
440				navigationHOffset:0,
441				navigationVOffset:20,
442
443				soloArrowLeftHalign:"left",
444				soloArrowLeftValign:"center",
445				soloArrowLeftHOffset:0,
446				soloArrowLeftVOffset:0,
447
448				soloArrowRightHalign:"right",
449				soloArrowRightValign:"center",
450				soloArrowRightHOffset:0,
451				soloArrowRightVOffset:0,
452
453				fullWidth:"off",
454
455				spinner:"spinner2",
456				shadow: 0,
457
458				stopLoop:"off",
459				stopAfterLoops:-1,
460				stopAtSlide:-1,
461				onHoverStop: "off",
462
463				shuffle:"off",
464
465				autoHeight:"off",
466				forceFullWidth:"off",
467
468				hideThumbsOnMobile:"off",
469				hideNavDelayOnMobile:1500,
470				hideBulletsOnMobile:"off",
471				hideArrowsOnMobile:"off",
472				hideThumbsUnderResolution:0,
473
474				hideSliderAtLimit:0,
475				hideCaptionAtLimit:0,
476				hideAllCaptionAtLilmit:0,
477				startWithSlide:0
478			});
479
480			$('.banner:not(.dark-bg) .slider-banner-container .slider-banner-boxedwidth-stopped').show().revolution({
481				delay:8000,
482				startwidth:1140,
483				startheight:450,
484
485				navigationArrows:"solo",
486
487				navigationStyle: "preview2",
488				navigationHAlign:"center",
489				navigationVAlign:"bottom",
490				navigationHOffset:0,
491				navigationVOffset:20,
492
493				soloArrowLeftHalign:"left",
494				soloArrowLeftValign:"center",
495				soloArrowLeftHOffset:0,
496				soloArrowLeftVOffset:0,
497
498				soloArrowRightHalign:"right",
499				soloArrowRightValign:"center",
500				soloArrowRightHOffset:0,
501				soloArrowRightVOffset:0,
502
503				fullWidth:"off",
504
505				spinner:"spinner2",
506				shadow: 1,
507
508				stopLoop:"off",
509				stopAfterLoops:0,
510				stopAtSlide:1,
511				onHoverStop: "off",
512
513				shuffle:"off",
514
515				autoHeight:"off",
516				forceFullWidth:"off",
517
518				hideThumbsOnMobile:"off",
519				hideNavDelayOnMobile:1500,
520				hideBulletsOnMobile:"off",
521				hideArrowsOnMobile:"off",
522				hideThumbsUnderResolution:0,
523
524				hideSliderAtLimit:0,
525				hideCaptionAtLimit:0,
526				hideAllCaptionAtLilmit:0,
527				startWithSlide:0
528			});
529
530			$('.banner.dark-bg .slider-banner-container .slider-banner-boxedwidth-stopped').show().revolution({
531				delay:8000,
532				startwidth:1140,
533				startheight:450,
534
535				navigationArrows:"solo",
536
537				navigationStyle: "preview2",
538				navigationHAlign:"center",
539				navigationVAlign:"bottom",
540				navigationHOffset:0,
541				navigationVOffset:20,
542
543				soloArrowLeftHalign:"left",
544				soloArrowLeftValign:"center",
545				soloArrowLeftHOffset:0,
546				soloArrowLeftVOffset:0,
547
548				soloArrowRightHalign:"right",
549				soloArrowRightValign:"center",
550				soloArrowRightHOffset:0,
551				soloArrowRightVOffset:0,
552
553				fullWidth:"off",
554
555				spinner:"spinner2",
556				shadow: 3,
557
558				stopLoop:"off",
559				stopAfterLoops:0,
560				stopAtSlide:1,
561				onHoverStop: "off",
562
563				shuffle:"off",
564
565				autoHeight:"off",
566				forceFullWidth:"off",
567
568				hideThumbsOnMobile:"off",
569				hideNavDelayOnMobile:1500,
570				hideBulletsOnMobile:"off",
571				hideArrowsOnMobile:"off",
572				hideThumbsUnderResolution:0,
573
574				hideSliderAtLimit:0,
575				hideCaptionAtLimit:0,
576				hideAllCaptionAtLilmit:0,
577				startWithSlide:0
578			});
579
580		};
581
582		//Revolution Slider 5
583		if ($(".slider-revolution-5-container").length>0) {
584			$(".tp-bannertimer").show();
585
586			$('body:not(.transparent-header) .slider-revolution-5-container .slider-banner-fullscreen').revolution({
587				sliderType:"standard",
588				sliderLayout:"fullscreen",
589				delay:9000,
590				autoHeight:"on",
591				responsiveLevels:[1199,991,767,480],
592				fullScreenOffsetContainer: ".header-container, .offset-container",
593				navigation: {
594					onHoverStop: "off",
595					arrows: {
596						style: "hebe",
597						enable:true,
598						tmp: '<div class="tp-title-wrap"><span class="tp-arr-titleholder">{{title}}</span></div>',
599						left : {
600							h_align:"left",
601							v_align:"center",
602							h_offset:0,
603							v_offset:0,
604						},
605						right : {
606							h_align:"right",
607							v_align:"center",
608							h_offset:0,
609							v_offset:0
610						}
611					},
612					bullets:{
613						style:"",
614						enable:true,
615						hide_onleave:true,
616						direction:"horizontal",
617						space: 3,
618						h_align:"center",
619						v_align:"bottom",
620						h_offset:0,
621						v_offset:20
622					}
623				},
624				gridwidth:1140,
625				gridheight:750
626			});
627			$('.transparent-header .slider-revolution-5-container .slider-banner-fullscreen').revolution({
628				sliderType:"standard",
629				sliderLayout:"fullscreen",
630				delay:9000,
631				autoHeight:"on",
632				responsiveLevels:[1199,991,767,480],
633				fullScreenOffsetContainer: ".header-top, .offset-container",
634				navigation: {
635					onHoverStop: "off",
636					arrows: {
637						style: "hebe",
638						enable:true,
639						tmp: '<div class="tp-title-wrap"><span class="tp-arr-titleholder">{{title}}</span></div>',
640						left : {
641							h_align:"left",
642							v_align:"center",
643							h_offset:0,
644							v_offset:0,
645						},
646						right : {
647							h_align:"right",
648							v_align:"center",
649							h_offset:0,
650							v_offset:0
651						}
652					},
653					bullets:{
654						style:"",
655						enable:true,
656						hide_onleave:true,
657						direction:"horizontal",
658						space: 3,
659						h_align:"center",
660						v_align:"bottom",
661						h_offset:0,
662						v_offset:20
663					}
664				},
665				gridwidth:1140,
666				gridheight:750
667			});
668			$('.slider-revolution-5-container .slider-banner-fullwidth').revolution({
669				sliderType:"standard",
670				sliderLayout:"fullwidth",
671				delay:8000,
672				gridwidth:1140,
673				gridheight:450,
674				responsiveLevels:[1199,991,767,480],
675				navigation: {
676					onHoverStop: "off",
677					arrows: {
678						style: "hebe",
679						enable:true,
680						tmp: '<div class="tp-title-wrap"><span class="tp-arr-titleholder">{{title}}</span></div>',
681						left : {
682							h_align:"left",
683							v_align:"center",
684							h_offset:0,
685							v_offset:0,
686						},
687						right : {
688							h_align:"right",
689							v_align:"center",
690							h_offset:0,
691							v_offset:0
692						}
693					},
694					bullets:{
695						style:"",
696						enable:true,
697						hide_onleave:true,
698						direction:"horizontal",
699						space: 3,
700						h_align:"center",
701						v_align:"bottom",
702						h_offset:0,
703						v_offset:20
704					}
705				}
706			});
707			$('.slider-revolution-5-container .slider-banner-fullwidth-big-height').revolution({
708				sliderType:"standard",
709				sliderLayout:"fullwidth",
710				delay:8000,
711				gridwidth:1140,
712				gridheight:668,
713				responsiveLevels:[1199,991,767,480],
714				navigation: {
715					onHoverStop: "off",
716					arrows: {
717						style: "hebe",
718						enable:true,
719						tmp: '<div class="tp-title-wrap"><span class="tp-arr-titleholder">{{title}}</span></div>',
720						left : {
721							h_align:"left",
722							v_align:"center",
723							h_offset:0,
724							v_offset:0,
725						},
726						right : {
727							h_align:"right",
728							v_align:"center",
729							h_offset:0,
730							v_offset:0
731						}
732					},
733					bullets:{
734						style:"",
735						enable:true,
736						hide_onleave:true,
737						direction:"horizontal",
738						space: 3,
739						h_align:"center",
740						v_align:"bottom",
741						h_offset:0,
742						v_offset:20
743					}
744				}
745			});
746			$('.slider-revolution-5-container .slider-banner-boxedwidth').revolution({
747				sliderType:"standard",
748				sliderLayout:"auto",
749				delay:8000,
750				gridwidth:1140,
751				gridheight:450,
752				responsiveLevels:[1199,991,767,480],
753				shadow: 1,
754				navigation: {
755					onHoverStop: "off",
756					arrows: {
757						style: "hebe",
758						enable:true,
759						tmp: '<div class="tp-title-wrap"><span class="tp-arr-titleholder">{{title}}</span></div>',
760						left : {
761							h_align:"left",
762							v_align:"center",
763							h_offset:0,
764							v_offset:0,
765						},
766						right : {
767							h_align:"right",
768							v_align:"center",
769							h_offset:0,
770							v_offset:0
771						}
772					},
773					bullets:{
774						style:"",
775						enable:true,
776						hide_onleave:true,
777						direction:"horizontal",
778						space: 3,
779						h_align:"center",
780						v_align:"bottom",
781						h_offset:0,
782						v_offset:20
783					}
784				}
785			});
786			$('.slider-revolution-5-container .slider-banner-fullscreen-hero:not(.dotted)').revolution({
787				sliderType:"hero",
788				sliderLayout:"fullscreen",
789				autoHeight:"on",
790				gridwidth:1140,
791				gridheight:650,
792				responsiveLevels:[1199,991,767,480],
793				delay: 9000,
794				fullScreenOffsetContainer: ".header-top, .offset-container"
795			});
796			$('.slider-revolution-5-container .slider-banner-fullscreen-hero.dotted').revolution({
797				sliderType:"hero",
798				sliderLayout:"fullscreen",
799				autoHeight:"on",
800				gridwidth:1140,
801				gridheight:650,
802				dottedOverlay:"twoxtwo",
803				delay: 9000,
804				responsiveLevels:[1199,991,767,480],
805				fullScreenOffsetContainer: ".header-top, .offset-container"
806			});
807			$('.slider-revolution-5-container .slider-banner-fullwidth-hero:not(.dotted)').revolution({
808				sliderType:"hero",
809				sliderLayout:"fullwidth",
810				gridwidth:1140,
811				gridheight:650,
812				responsiveLevels:[1199,991,767,480],
813				delay: 9000
814			});
815			$('.slider-revolution-5-container .slider-banner-fullwidth-hero.dotted').revolution({
816				sliderType:"hero",
817				sliderLayout:"fullwidth",
818				gridwidth:1140,
819				gridheight:650,
820				responsiveLevels:[1199,991,767,480],
821				delay: 9000,
822				dottedOverlay:"twoxtwo"
823			});
824		};
825
826		//Full Page
827		if ($(".fullpage-site").length>0 || $(".fullpage-site-with-menu").length>0) {
828			$('.fullpage-site').fullpage({
829				anchors: ['firstPage', 'secondPage', 'thirdPage', 'fourthPage', 'fifthPage', 'sixthPage', 'seventhPage', 'eighthPage'],
830				navigation: true,
831				navigationPosition: 'right',
832				navigationTooltips: ['Intro', 'Evento', 'Sorpresa', 'Nos Acompañaron', 'Novedades', 'El Futuro', 'Galería', 'Contacto'],
833				fixedElements: '.header-container, .subfooter',
834				responsiveWidth: 992,
835				responsiveHeight: 600
836			});
837			/**$('.fullpage-site-with-menu').fullpage({
838				anchors: ['firstPage', 'secondPage', 'thirdPage', 'fourthPage', 'fifthPage', 'sixthPage', 'seventhPage', 'eighthPage'],
839				navigation: true,
840				navigationPosition: 'right',
841				navigationTooltips: ['Intro', 'Evento', 'Clientes', 'Presentamos', 'Cromo', 'Portfolio', 'Portfolio 2', 'Contacto'],
842				fixedElements: '.header-container, .subfooter',
843				responsiveWidth: 992,
844				responsiveHeight: 600,
845				menu: '#fullpage-menu',
846			});*/
847		};
848
849		//Owl carousel
850		//-----------------------------------------------
851		if ($('.owl-carousel').length>0) {
852			$(".owl-carousel.carousel").owlCarousel({
853				items: 4,
854				pagination: false,
855				navigation: true,
856				navigationText: false
857			});
858			$(".owl-carousel.carousel-autoplay").owlCarousel({
859				items: 4,
860				autoPlay: 5000,
861				pagination: false,
862				navigation: true,
863				navigationText: false
864			});
865			$(".owl-carousel.clients").owlCarousel({
866				items: 6,
867				autoPlay: true,
868				pagination: false,
869				itemsDesktopSmall: [992,4],
870				itemsTablet: [768,4],
871				itemsMobile: [479,3]
872			});
873			$(".owl-carousel.content-slider").owlCarousel({
874				singleItem: true,
875				autoPlay: 5000,
876				navigation: false,
877				navigationText: false,
878				pagination: false
879			});
880			$(".owl-carousel.content-slider-with-controls").owlCarousel({
881				singleItem: true,
882				autoPlay: false,
883				navigation: true,
884				pagination: true
885			});
886			$(".owl-carousel.content-slider-with-large-controls").owlCarousel({
887				singleItem: true,
888				autoPlay: false,
889				navigation: true,
890				pagination: true
891			});
892			$(".owl-carousel.content-slider-with-controls-autoplay").owlCarousel({
893				singleItem: true,
894				autoPlay: 5000,
895				navigation: true,
896				pagination: true
897			});
898			$(".owl-carousel.content-slider-with-large-controls-autoplay").owlCarousel({
899				singleItem: true,
900				autoPlay: 5000,
901				navigation: true,
902				pagination: true
903			});
904			$(".owl-carousel.content-slider-with-controls-autoplay-hover-stop").owlCarousel({
905				singleItem: true,
906				autoPlay: 5000,
907				navigation: true,
908				pagination: true,
909				stopOnHover: true
910			});
911
912			//Synched carousel see shop-product-2.html page
913			var sync1 = $(".owl-carousel.content-slider-with-thumbs");
914			var sync2 = $(".owl-carousel.content-slider-thumbs");
915
916			sync1.owlCarousel({
917				singleItem : true,
918				slideSpeed : 1000,
919				navigation: true,
920				pagination:false,
921				afterAction : syncPosition,
922				responsiveRefreshRate : 200,
923			});
924
925			sync2.owlCarousel({
926				items : 4,
927				itemsDesktop : [1199,4],
928				itemsDesktopSmall : [979,4],
929				itemsTablet : [768,4],
930				itemsMobile : [479,4],
931				pagination: false,
932				responsiveRefreshRate : 100,
933				afterInit : function(el){
934					el.find(".owl-item").eq(0).addClass("synced");
935				}
936			});
937
938			function syncPosition(el){
939				var current = this.currentItem;
940				$(".owl-carousel.content-slider-thumbs")
941				.find(".owl-item")
942				.removeClass("synced")
943				.eq(current)
944				.addClass("synced")
945				if($(".owl-carousel.content-slider-thumbs").data("owlCarousel") !== undefined){
946					center(current)
947				}
948			}
949
950			$(".owl-carousel.content-slider-thumbs").on("click", ".owl-item", function(e){
951				e.preventDefault();
952				var number = $(this).data("owlItem");
953				sync1.trigger("owl.goTo",number);
954			});
955
956			function center(number){
957				var sync2visible = sync2.data("owlCarousel").owl.visibleItems;
958				var num = number;
959				var found = false;
960				for(var i in sync2visible){
961					if(num === sync2visible[i]){
962						var found = true;
963					}
964				}
965
966				if(found===false){
967					if(num>sync2visible[sync2visible.length-1]){
968						sync2.trigger("owl.goTo", num - sync2visible.length+2)
969					}else{
970						if(num - 1 === -1){
971							num = 0;
972						}
973						sync2.trigger("owl.goTo", num);
974					}
975				} else if(num === sync2visible[sync2visible.length-1]){
976					sync2.trigger("owl.goTo", sync2visible[1])
977				} else if(num === sync2visible[0]){
978					sync2.trigger("owl.goTo", num-1)
979				}
980
981			}
982		};
983
984		// Fixed header
985		//-----------------------------------------------
986		headerTopHeight = $(".header-top").outerHeight(),
987		headerHeight = $("header.header.fixed").outerHeight();
988		$(window).resize(function() {
989			if(($(this).scrollTop() < headerTopHeight + headerHeight -5 ) && ($(window).width() > 767)) {
990				headerTopHeight = $(".header-top").outerHeight(),
991				headerHeight = $("header.header.fixed").outerHeight();
992			}
993		});
994
995		$(window).scroll(function() {
996			if (($(".header.fixed:not(.fixed-before)").length > 0)  && !($(".transparent-header .slideshow").length>0)) {
997				if (($(this).scrollTop() > headerTopHeight + headerHeight) && ($(window).width() > 767)) {
998					$("body").addClass("fixed-header-on");
999					$(".header.fixed:not(.fixed-before)").addClass('animated object-visible fadeInDown');
1000					$(".header-container").css("paddingBottom", (headerHeight)+"px");
1001				} else {
1002					$("body").removeClass("fixed-header-on");
1003					$(".header-container").css("paddingBottom", (0)+"px");
1004					$(".header.fixed:not(.fixed-before)").removeClass('animated object-visible fadeInDown');
1005				}
1006			} else if ($(".header.fixed:not(.fixed-before)").length > 0) {
1007				if (($(this).scrollTop() > headerTopHeight + headerHeight) && ($(window).width() > 767)) {
1008					$("body").addClass("fixed-header-on");
1009					$(".header.fixed:not(.fixed-before)").addClass('animated object-visible fadeInDown');
1010				} else {
1011					$("body").removeClass("fixed-header-on");
1012					$(".header.fixed:not(.fixed-before)").removeClass('animated object-visible fadeInDown');
1013				}
1014			};
1015		});
1016
1017		$(window).scroll(function() {
1018			if (($(".header.fixed.fixed-before").length > 0)  && !($(".transparent-header .slideshow").length>0)) {
1019				if (($(this).scrollTop() > headerTopHeight) && ($(window).width() > 767)) {
1020					$("body").addClass("fixed-header-on");
1021					$(".header.fixed.fixed-before").addClass('object-visible');
1022					$(".header-container").css("paddingBottom", (headerHeight)+"px");
1023				} else {
1024					$("body").removeClass("fixed-header-on");
1025					$(".header-container").css("paddingBottom", (0)+"px");
1026					$(".header.fixed.fixed-before").removeClass('object-visible');
1027				}
1028			} else if ($(".header.fixed.fixed-before").length > 0) {
1029				if (($(this).scrollTop() > headerTopHeight) && ($(window).width() > 767)) {
1030					$("body").addClass("fixed-header-on");
1031					$(".header.fixed.fixed-before").addClass('object-visible');
1032				} else {
1033					$("body").removeClass("fixed-header-on");
1034					$(".header.fixed.fixed-before").removeClass('object-visible');
1035				}
1036			};
1037		});
1038
1039		// Charts
1040		//-----------------------------------------------
1041		if ($(".graph").length>0) {
1042			// Creates random numbers you don't need this for real graphs
1043			var randomScalingFactor = function(){ return Math.round(Math.random()*500)};
1044
1045			if ($(".graph.line").length>0) {
1046				// Data for line charts
1047				var lineChartData = {
1048					labels : ["January","February","March","April","May","June","July"],
1049					datasets : [
1050					{
1051						label: "First dataset",
1052						fillColor : "rgba(188,188,188,0.2)",
1053						strokeColor : "rgba(188,188,188,1)",
1054						pointColor : "rgba(188,188,188,1)",
1055						pointStrokeColor : "#fff",
1056						pointHighlightFill : "#fff",
1057						pointHighlightStroke : "rgba(188,188,188,1)",
1058						data : [250,300,250,200,250,300,250]
1059					},
1060					{
1061						label: "Second dataset",
1062						fillColor : "rgba(126,187,205,0.2)",
1063						strokeColor : "rgba(126,187,205,1)",
1064						pointColor : "rgba(126,187,205,1)",
1065						pointStrokeColor : "#fff",
1066						pointHighlightFill : "#fff",
1067						pointHighlightStroke : "rgba(126,187,205,1)",
1068						data : [300,250,200,250,300,250,200]
1069					},
1070					{
1071						label: "Third dataset",
1072						fillColor : "rgba(98,187,205,0.2)",
1073						strokeColor : "rgba(98,187,205,1)",
1074						pointColor : "rgba(98,187,205,1)",
1075						pointStrokeColor : "#fff",
1076						pointHighlightFill : "#fff",
1077						pointHighlightStroke : "rgba(98,187,205,1)",
1078						data : [0,100,200,300,400,500,400]
1079					}
1080					]
1081				}
1082
1083				// Line Charts Initialization
1084				$(window).load(function() {
1085					var ctx = document.getElementById("lines-graph").getContext("2d");
1086					window.newLine = new Chart(ctx).Line(lineChartData, {
1087						responsive: true,
1088						bezierCurve : false
1089					});
1090				});
1091			}
1092			if ($(".graph.bar").length>0) {
1093				// Data for bar charts
1094				var barChartData = {
1095					labels : ["January","February","March","April","May","June","July"],
1096					datasets : [
1097						{
1098							fillColor : "rgba(188,188,188,0.5)",
1099							strokeColor : "rgba(188,188,188,0.8)",
1100							highlightFill: "rgba(188,188,188,0.75)",
1101							highlightStroke: "rgba(188,188,188,1)",
1102							data : [randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor()]
1103						},
1104						{
1105							fillColor : "rgba(168,187,205,0.5)",
1106							strokeColor : "rgba(168,187,205,0.8)",
1107							highlightFill : "rgba(168,187,205,0.75)",
1108							highlightStroke : "rgba(168,187,205,1)",
1109							data : [randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor()]
1110						}
1111					]
1112				}
1113
1114				// Bar Charts Initialization
1115				$(window).load(function() {
1116					var ctx = document.getElementById("bars-graph").getContext("2d");
1117					window.myBar = new Chart(ctx).Bar(barChartData, {
1118						responsive : true
1119					});
1120				});
1121			}
1122			if ($(".graph.pie").length>0) {
1123				// Data for pie chart
1124				var pieData = [
1125					{
1126						value: 120,
1127						color:"#09afdf",
1128						highlight: "#6BD5F4",
1129						label: "Blue"
1130					},
1131					{
1132						value: 120,
1133						color: "#FDB45C",
1134						highlight: "#FFC870",
1135						label: "Yellow"
1136					},
1137					{
1138						value: 120,
1139						color: "#4D5360",
1140						highlight: "#616774",
1141						label: "Dark Grey"
1142					}
1143				];
1144
1145				// Pie Chart Initialization
1146				$(window).load(function() {
1147					var ctx = document.getElementById("pie-graph").getContext("2d");
1148					window.myPie = new Chart(ctx).Pie(pieData);
1149				});
1150			}
1151			if ($(".graph.doughnut").length>0) {
1152				// Data for doughnut chart
1153				var doughnutData = [
1154					{
1155						value: 120,
1156						color:"#09afdf",
1157						highlight: "#6BD5F4",
1158						label: "Blue"
1159					},
1160					{
1161						value: 120,
1162						color: "#FDB45C",
1163						highlight: "#FFC870",
1164						label: "Yellow"
1165					},
1166					{
1167						value: 120,
1168						color: "#4D5360",
1169						highlight: "#616774",
1170						label: "Dark Grey"
1171					}
1172				];
1173
1174				// Doughnut Chart Initialization
1175				$(window).load(function() {
1176					var ctx = document.getElementById("doughnut-graph").getContext("2d");
1177					window.myDoughnut = new Chart(ctx).Doughnut(doughnutData, {responsive : true});
1178				});
1179			}
1180		};
1181
1182		// Magnific popup
1183		//-----------------------------------------------
1184		if (($(".popup-img").length > 0) || ($(".popup-iframe").length > 0) || ($(".popup-img-single").length > 0)) {
1185			$(".popup-img").magnificPopup({
1186				type:"image",
1187				gallery: {
1188					enabled: true,
1189				}
1190			});
1191			$(".popup-img-single").magnificPopup({
1192				type:"image",
1193				gallery: {
1194					enabled: false,
1195				}
1196			});
1197			$('.popup-iframe').magnificPopup({
1198				disableOn: 700,
1199				type: 'iframe',
1200				preloader: false,
1201				fixedContentPos: false
1202			});
1203		};
1204
1205		// Animations
1206		//-----------------------------------------------
1207		if ($("[data-animation-effect]").length>0) {
1208			$("[data-animation-effect]").each(function() {
1209				if(Modernizr.csstransitions) {
1210					var waypoints = $(this).waypoint(function(direction) {
1211						var appearDelay = $(this.element).attr("data-effect-delay"),
1212						animatedObject = $(this.element);
1213						setTimeout(function() {
1214							animatedObject.addClass('animated object-visible ' + animatedObject.attr("data-animation-effect"));
1215						}, appearDelay);
1216						this.destroy();
1217					},{
1218						offset: '95%'
1219					});
1220				} else {
1221					$(this).addClass('object-visible');
1222				}
1223			});
1224		};
1225
1226		// Text Rotators
1227		//-----------------------------------------------
1228		if ($(".text-rotator").length>0) {
1229			$(".text-rotator").each(function() {
1230				var tr_animationEffect = $(this).attr("data-rotator-animation-effect");
1231				$(this).Morphext({
1232					animation: ""+tr_animationEffect+"", // Overrides default "bounceIn"
1233					separator: ",", // Overrides default ","
1234					speed: 3000 // Overrides default 2000
1235				});
1236			});
1237		};
1238
1239		// Stats Count To
1240		//-----------------------------------------------
1241		if ($(".stats [data-to]").length>0) {
1242			$(".stats [data-to]").each(function() {
1243				var stat_item = $(this),
1244				offset = stat_item.offset().top;
1245				if($(window).scrollTop() > (offset - 800) && !(stat_item.hasClass('counting'))) {
1246					stat_item.addClass('counting');
1247					stat_item.countTo();
1248				};
1249				$(window).scroll(function() {
1250					if($(window).scrollTop() > (offset - 800) && !(stat_item.hasClass('counting'))) {
1251						stat_item.addClass('counting');
1252						stat_item.countTo();
1253					}
1254				});
1255			});
1256		};
1257
1258		// Isotope filters
1259		//-----------------------------------------------
1260		if ($('.isotope-container').length>0 || $('.masonry-grid').length>0 || $('.masonry-grid-fitrows').length>0 || $('.isotope-container-fitrows').length>0) {
1261			$(window).load(function() {
1262				$('.masonry-grid').isotope({
1263					itemSelector: '.masonry-grid-item',
1264					layoutMode: 'masonry'
1265				});
1266				$('.masonry-grid-fitrows').isotope({
1267					itemSelector: '.masonry-grid-item',
1268					layoutMode: 'fitRows'
1269				});
1270				$('.isotope-container').fadeIn();
1271				var $container = $('.isotope-container').isotope({
1272					itemSelector: '.isotope-item',
1273					layoutMode: 'masonry',
1274					transitionDuration: '0.6s',
1275					filter: "*"
1276				});
1277				$('.isotope-container-fitrows').fadeIn();
1278				var $container_fitrows = $('.isotope-container-fitrows').isotope({
1279					itemSelector: '.isotope-item',
1280					layoutMode: 'fitRows',
1281					transitionDuration: '0.6s',
1282					filter: "*"
1283				});
1284				// filter items on button click
1285				$('.filters').on( 'click', 'ul.nav li a', function() {
1286					var filterValue = $(this).attr('data-filter');
1287					$(".filters").find("li.active").removeClass("active");
1288					$(this).parent().addClass("active");
1289					$container.isotope({ filter: filterValue });
1290					$container_fitrows.isotope({ filter: filterValue });
1291					return false;
1292				});
1293			});
1294			$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
1295				$('.tab-pane .masonry-grid-fitrows').isotope({
1296					itemSelector: '.masonry-grid-item',
1297					layoutMode: 'fitRows'
1298				});
1299			});
1300		};
1301
1302		// Animated Progress Bars
1303		//-----------------------------------------------
1304		if ($("[data-animate-width]").length>0) {
1305			$("[data-animate-width]").each(function() {
1306				if (Modernizr.touch || !Modernizr.csstransitions) {
1307					$(this).find("span").hide();
1308				};
1309				var waypoints = $(this).waypoint(function(direction) {
1310					$(this.element).animate({width: $(this.element).attr("data-animate-width")}, 800 );
1311					this.destroy();
1312					if (Modernizr.touch || !Modernizr.csstransitions) {
1313						$(this.element).find("span").show('slow');
1314					};
1315				},{
1316					offset: '90%'
1317				});
1318			});
1319		};
1320
1321		// Animated Circular Progress Bars
1322		//-----------------------------------------------
1323		if ($(".knob").length>0) {
1324
1325			$(".knob").knob();
1326			$(".knob").each(function() {
1327				var animateVal = $(this).attr("data-animate-value");
1328				$(this).animate({animatedVal: animateVal}, {
1329					duration: 2000,
1330					step: function() {
1331						$(this).val(Math.ceil(this.animatedVal)).trigger("change");
1332					}
1333				});
1334			});
1335		}
1336
1337		//Video Background
1338		//-----------------------------------------------
1339		if($(".video-background").length>0) {
1340			if (Modernizr.touch) {
1341				$(".video-background").vide({
1342					mp4: "videos/background-video.mp4",
1343					webm: "videos/background-video.webm",
1344					poster: "videos/video-fallback.jpg"
1345				}, {
1346					volume: 1,
1347					playbackRate: 1,
1348					muted: true,
1349					loop: true,
1350					autoplay: true,
1351					position: "50% 100%", // Similar to the CSS `background-position` property.
1352					posterType: "jpg", // Poster image type. "detect" — auto-detection; "none" — no poster; "jpg", "png", "gif",... - extensions.
1353					resizing: true
1354				});
1355			} else {
1356				$(".video-background").vide({
1357					mp4: "videos/background-video.mp4",
1358					webm: "videos/background-video.webm",
1359					poster: "videos/video-poster.jpg"
1360				}, {
1361					volume: 1,
1362					playbackRate: 1,
1363					muted: true,
1364					loop: true,
1365					autoplay: true,
1366					position: "50% 100%", // Similar to the CSS `background-position` property.
1367					posterType: "jpg", // Poster image type. "detect" — auto-detection; "none" — no poster; "jpg", "png", "gif",... - extensions.
1368					resizing: true
1369				});
1370			};
1371
1372		};
1373		if($(".video-background-banner").length>0) {
1374			if (Modernizr.touch) {
1375				$(".video-background-banner").vide({
1376					mp4: "videos/background-video-banner.mp4",
1377					webm: "videos/background-video-banner.webm",
1378					poster: "videos/video-fallback.jpg"
1379				}, {
1380					volume: 1,
1381					playbackRate: 1,
1382					muted: true,
1383					loop: true,
1384					autoplay: true,
1385					position: "50% 50%", // Similar to the CSS `background-position` property.
1386					posterType: "jpg", // Poster image type. "detect" — auto-detection; "none" — no poster; "jpg", "png", "gif",... - extensions.
1387					resizing: true
1388				});
1389			} else {
1390				$(".video-background-banner").vide({
1391					mp4: "videos/background-video-banner.mp4",
1392					webm: "videos/background-video-banner.webm",
1393					poster: "videos/video-banner-poster.jpg"
1394				}, {
1395					volume: 1,
1396					playbackRate: 1,
1397					muted: true,
1398					loop: true,
1399					autoplay: true,
1400					position: "50% 50%", // Similar to the CSS `background-position` property.
1401					posterType: "jpg", // Poster image type. "detect" — auto-detection; "none" — no poster; "jpg", "png", "gif",... - extensions.
1402					resizing: true
1403				});
1404			};
1405		};
1406		//Scroll totop
1407		//-----------------------------------------------
1408		$(window).scroll(function() {
1409			if($(this).scrollTop() != 0) {
1410				$(".scrollToTop").fadeIn();
1411			} else {
1412				$(".scrollToTop").fadeOut();
1413			}
1414		});
1415
1416		$(".scrollToTop").click(function() {
1417			$("body,html").animate({scrollTop:0},800);
1418		});
1419
1420		//Modal
1421		//-----------------------------------------------
1422		if($(".modal").length>0) {
1423			$(".modal").each(function() {
1424				$(".modal").prependTo( "body" );
1425			});
1426		}
1427
1428		// Pricing tables popovers
1429		//-----------------------------------------------
1430		if ($(".pricing-tables").length>0) {
1431			$(".plan .pt-popover").popover({
1432				trigger: 'hover',
1433				container: 'body'
1434			});
1435		};
1436
1437		// Contact forms validation
1438		//-----------------------------------------------
1439		if($("#contact-form").length>0) {
1440			$("#contact-form").validate({
1441				submitHandler: function(form) {
1442					$('.submit-button').button("loading");
1443					$.ajax({
1444						type: "POST",
1445						url: "php/email-sender.php",
1446						data: {
1447							"name": $("#contact-form #name").val(),
1448							"email": $("#contact-form #email").val(),
1449							"subject": $("#contact-form #subject").val(),
1450							"message": $("#contact-form #message").val()
1451						},
1452						dataType: "json",
1453						success: function (data) {
1454							if (data.sent == "yes") {
1455								$("#MessageSent").removeClass("hidden");
1456								$("#MessageNotSent").addClass("hidden");
1457								$(".submit-button").removeClass("btn-default").addClass("btn-success").prop('value', 'Message Sent');
1458								$("#contact-form .form-control").each(function() {
1459									$(this).prop('value', '').parent().removeClass("has-success").removeClass("has-error");
1460								});
1461							} else {
1462								$("#MessageNotSent").removeClass("hidden");
1463								$("#MessageSent").addClass("hidden");
1464							}
1465						}
1466					});
1467				},
1468				errorPlacement: function(error, element) {
1469					error.insertBefore( element );
1470				},
1471				onkeyup: false,
1472				onclick: false,
1473				rules: {
1474					name: {
1475						required: true,
1476						minlength: 2
1477					},
1478					email: {
1479						required: true,
1480						email: true
1481					},
1482					subject: {
1483						required: true
1484					},
1485					message: {
1486						required: true,
1487						minlength: 10
1488					}
1489				},
1490				messages: {
1491					name: {
1492						required: "Please specify your name",
1493						minlength: "Your name must be longer than 2 characters"
1494					},
1495					email: {
1496						required: "We need your email address to contact you",
1497						email: "Please enter a valid email address e.g. [email protected]"
1498					},
1499					subject: {
1500						required: "Please enter a subject"
1501					},
1502					message: {
1503						required: "Please enter a message",
1504						minlength: "Your message must be longer than 10 characters"
1505					}
1506				},
1507				errorElement: "span",
1508				highlight: function (element) {
1509					$(element).parent().removeClass("has-success").addClass("has-error");
1510					$(element).siblings("label").addClass("hide");
1511				},
1512				success: function (element) {
1513					$(element).parent().removeClass("has-error").addClass("has-success");
1514					$(element).siblings("label").removeClass("hide");
1515				}
1516			});
1517		};
1518
1519		if($("#contact-form-with-recaptcha").length>0) {
1520			$("#contact-form-with-recaptcha").validate({
1521				submitHandler: function(form) {
1522					$('.submit-button').button("loading");
1523					$.ajax({
1524						type: "POST",
1525						url: "php/email-sender-recaptcha.php",
1526						data: {
1527							"name": $("#contact-form-with-recaptcha #name").val(),
1528							"email": $("#contact-form-with-recaptcha #email").val(),
1529							"subject": $("#contact-form-with-recaptcha #subject").val(),
1530							"message": $("#contact-form-with-recaptcha #message").val(),
1531							"g-recaptcha-response": $("#g-recaptcha-response").val()
1532						},
1533						dataType: "json",
1534						success: function (data) {
1535							if (data.sent == "yes") {
1536								$("#MessageSent").removeClass("hidden");
1537								$("#MessageNotSent").addClass("hidden");
1538								$(".submit-button").removeClass("btn-default").addClass("btn-success").prop('value', 'Message Sent');
1539								$("#contact-form-with-recaptcha .form-control").each(function() {
1540									$(this).prop('value', '').parent().removeClass("has-success").removeClass("has-error");
1541								});
1542							} else {
1543								$("#MessageNotSent").removeClass("hidden");
1544								$("#MessageSent").addClass("hidden");
1545							}
1546						}
1547					});
1548				},
1549				errorPlacement: function(error, element) {
1550					error.insertBefore( element );
1551				},
1552				onkeyup: false,
1553				onclick: false,
1554				rules: {
1555					name: {
1556						required: true,
1557						minlength: 2
1558					},
1559					email: {
1560						required: true,
1561						email: true
1562					},
1563					subject: {
1564						required: true
1565					},
1566					message: {
1567						required: true,
1568						minlength: 10
1569					}
1570				},
1571				messages: {
1572					name: {
1573						required: "Please specify your name",
1574						minlength: "Your name must be longer than 2 characters"
1575					},
1576					email: {
1577						required: "We need your email address to contact you",
1578						email: "Please enter a valid email address e.g. [email protected]"
1579					},
1580					subject: {
1581						required: "Please enter a subject"
1582					},
1583					message: {
1584						required: "Please enter a message",
1585						minlength: "Your message must be longer than 10 characters"
1586					}
1587				},
1588				errorElement: "span",
1589				highlight: function (element) {
1590					$(element).parent().removeClass("has-success").addClass("has-error");
1591					$(element).siblings("label").addClass("hide");
1592				},
1593				success: function (element) {
1594					$(element).parent().removeClass("has-error").addClass("has-success");
1595					$(element).siblings("label").removeClass("hide");
1596				}
1597			});
1598		};
1599
1600		if($("#footer-form").length>0) {
1601			$("#footer-form").validate({
1602				submitHandler: function(form) {
1603					$('.submit-button').button("loading");
1604					$.ajax({
1605						type: "POST",
1606						url: "php/email-sender.php",
1607						data: {
1608							"name": $("#footer-form #name2").val(),
1609							"email": $("#footer-form #email2").val(),
1610							"subject": "Message from contact form",
1611							"message": $("#footer-form #message2").val()
1612						},
1613						dataType: "json",
1614						success: function (data) {
1615							if (data.sent == "yes") {
1616								$("#MessageSent2").removeClass("hidden");
1617								$("#MessageNotSent2").addClass("hidden");
1618								$(".submit-button").removeClass("btn-default").addClass("btn-success").prop('value', 'Message Sent');
1619								$("#footer-form .form-control").each(function() {
1620									$(this).prop('value', '').parent().removeClass("has-success").removeClass("has-error");
1621								});
1622							} else {
1623								$("#MessageNotSent2").removeClass("hidden");
1624								$("#MessageSent2").addClass("hidden");
1625							}
1626						}
1627					});
1628				},
1629				errorPlacement: function(error, element) {
1630					error.insertAfter( element );
1631				},
1632				onkeyup: false,
1633				onclick: false,
1634				rules: {
1635					name2: {
1636						required: true,
1637						minlength: 2
1638					},
1639					email2: {
1640						required: true,
1641						email: true
1642					},
1643					message2: {
1644						required: true,
1645						minlength: 10
1646					}
1647				},
1648				messages: {
1649					name2: {
1650						required: "Please specify your name",
1651						minlength: "Your name must be longer than 2 characters"
1652					},
1653					email2: {
1654						required: "We need your email address to contact you",
1655						email: "Please enter a valid email address e.g. [email protected]"
1656					},
1657					message2: {
1658						required: "Please enter a message",
1659						minlength: "Your message must be longer than 10 characters"
1660					}
1661				},
1662				errorElement: "span",
1663				highlight: function (element) {
1664					$(element).parent().removeClass("has-success").addClass("has-error");
1665					$(element).siblings("label").addClass("hide");
1666				},
1667				success: function (element) {
1668					$(element).parent().removeClass("has-error").addClass("has-success");
1669					$(element).siblings("label").removeClass("hide");
1670				}
1671			});
1672		};
1673
1674		if($("#sidebar-form").length>0) {
1675
1676			$("#sidebar-form").validate({
1677				submitHandler: function(form) {
1678					$('.submit-button').button("loading");
1679					$.ajax({
1680						type: "POST",
1681						url: "php/email-sender.php",
1682						data: {
1683							"name": $("#sidebar-form #name3").val(),
1684							"email": $("#sidebar-form #email3").val(),
1685							"subject": "Message from FAQ page",
1686							"category": $("#sidebar-form #category").val(),
1687							"message": $("#sidebar-form #message3").val()
1688						},
1689						dataType: "json",
1690						success: function (data) {
1691							if (data.sent == "yes") {
1692								$("#MessageSent3").removeClass("hidden");
1693								$("#MessageNotSent3").addClass("hidden");
1694								$(".submit-button").removeClass("btn-default").addClass("btn-success").prop('value', 'Message Sent');
1695								$("#sidebar-form .form-control").each(function() {
1696									$(this).prop('value', '').parent().removeClass("has-success").removeClass("has-error");
1697								});
1698							} else {
1699								$("#MessageNotSent3").removeClass("hidden");
1700								$("#MessageSent3").addClass("hidden");
1701							}
1702						}
1703					});
1704				},
1705				errorPlacement: function(error, element) {
1706					error.insertAfter( element );
1707				},
1708				onkeyup: false,
1709				onclick: false,
1710				rules: {
1711					name3: {
1712						required: true,
1713						minlength: 2
1714					},
1715					email3: {
1716						required: true,
1717						email: true
1718					},
1719					message3: {
1720						required: true,
1721						minlength: 10
1722					}
1723				},
1724				messages: {
1725					name3: {
1726						required: "Please specify your name",
1727						minlength: "Your name must be longer than 2 characters"
1728					},
1729					email3: {
1730						required: "We need your email address to contact you",
1731						email: "Please enter a valid email address e.g. [email protected]"
1732					},
1733					message3: {
1734						required: "Please enter a message",
1735						minlength: "Your message must be longer than 10 characters"
1736					}
1737				},
1738				errorElement: "span",
1739				highlight: function (element) {
1740					$(element).parent().removeClass("has-success").addClass("has-error");
1741				},
1742				success: function (element) {
1743					$(element).parent().removeClass("has-error").addClass("has-success");
1744				}
1745			});
1746
1747		};
1748
1749		if($("#rsvp").length>0) {
1750			$("#rsvp").validate({
1751				submitHandler: function(form) {
1752					$('.submit-button').button("loading");
1753					$.ajax({
1754						type: "POST",
1755						url: "php/email-sender.php",
1756						data: {
1757							"name": $("#rsvp #name").val(),
1758							"email": $("#rsvp #email").val(),
1759							"guests": $("#rsvp #guests").val(),
1760							"subject": "RSVP",
1761							"events": $("#rsvp #events").val()
1762						},
1763						dataType: "json",
1764						success: function (data) {
1765							if (data.sent == "yes") {
1766								$("#MessageSent").removeClass("hidden");
1767								$("#MessageNotSent").addClass("hidden");
1768								$(".submit-button").removeClass("btn-default").addClass("btn-success").prop('value', 'Message Sent');
1769								$("#rsvp .form-control").each(function() {
1770									$(this).prop('value', '').parent().removeClass("has-success").removeClass("has-error");
1771								});
1772							} else {
1773								$("#MessageNotSent").removeClass("hidden");
1774								$("#MessageSent").addClass("hidden");
1775							}
1776						}
1777					});
1778				},
1779				errorPlacement: function(error, element) {
1780					error.insertAfter( element );
1781				},
1782				onkeyup: false,
1783				onclick: false,
1784				rules: {
1785					name: {
1786						required: true,
1787						minlength: 2
1788					},
1789					email: {
1790						required: true,
1791						email: true
1792					},
1793					guests: {
1794						required: true
1795					},
1796					events: {
1797						required: true
1798					}
1799				},
1800				messages: {
1801					name: {
1802						required: "Please specify your name",
1803						minlength: "Your name must be longer than 2 characters"
1804					},
1805					email: {
1806						required: "We need your email address to contact you",
1807						email: "Please enter a valid email address e.g. [email protected]"
1808					}
1809				},
1810				errorElement: "span",
1811				highlight: function (element) {
1812					$(element).parent().removeClass("has-success").addClass("has-error");
1813					$(element).siblings("label").addClass("hide");
1814				},
1815				success: function (element) {
1816					$(element).parent().removeClass("has-error").addClass("has-success");
1817					$(element).siblings("label").removeClass("hide");
1818				}
1819			});
1820		};
1821
1822
1823		// Affix Menu
1824		//-----------------------------------------------
1825		if ($(".affix-menu").length>0) {
1826			setTimeout(function () {
1827				var $sideBar = $('.sidebar')
1828
1829				$sideBar.affix({
1830					offset: {
1831						top: function () {
1832							var offsetTop = $sideBar.offset().top
1833							return (this.top = offsetTop - 65)
1834						},
1835						bottom: function () {
1836							var affixBottom = $(".footer").outerHeight(true) + $(".subfooter").outerHeight(true)
1837							if ($(".footer-top").length>0) {
1838								affixBottom = affixBottom + $(".footer-top").outerHeight(true)
1839							}
1840							return (this.bottom = affixBottom+50)
1841						}
1842					}
1843				})
1844			}, 100)
1845		}
1846
1847		//Scroll Spy
1848		//-----------------------------------------------
1849		if($(".scrollspy").length>0) {
1850			$("body").addClass("scroll-spy");
1851			if($(".fixed.header").length>0) {
1852				$('body').scrollspy({
1853					target: '.scrollspy',
1854					offset: 85
1855				});
1856			} else {
1857				$('body').scrollspy({
1858					target: '.scrollspy',
1859					offset: 20
1860				});
1861			}
1862		}
1863
1864		//Smooth Scroll
1865		//-----------------------------------------------
1866		if ($(".smooth-scroll").length>0) {
1867			if(($(".header.fixed").length>0) && (Modernizr.mq('only all and (min-width: 768px)'))) {
1868				$('.smooth-scroll a, a.smooth-scroll').click(function() {
1869					if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
1870						var target = $(this.hash);
1871						target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
1872						if (target.length) {
1873							$('html,body').animate({
1874								scrollTop: target.offset().top-63
1875							}, 1000);
1876							return false;
1877						}
1878					}
1879				});
1880			} else {
1881				$('.smooth-scroll a, a.smooth-scroll').click(function() {
1882					if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
1883						var target = $(this.hash);
1884						target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
1885						if (target.length) {
1886							$('html,body').animate({
1887								scrollTop: target.offset().top
1888							}, 1000);
1889							return false;
1890						}
1891					}
1892				});
1893			}
1894		}
1895
1896		// Offcanvas side navbar
1897		//-----------------------------------------------
1898		if ($("#offcanvas").length>0) {
1899			$('#offcanvas').offcanvas({
1900				canvas: "body",
1901				disableScrolling: false,
1902				toggle: false
1903			});
1904		};
1905
1906		if ($("#offcanvas").length>0) {
1907			$('#offcanvas [data-toggle=dropdown]').on('click', function(event) {
1908			// Avoid following the href location when clicking
1909			event.preventDefault();
1910			// Avoid having the menu to close when clicking
1911			event.stopPropagation();
1912			// close all the siblings
1913			$(this).parent().siblings().removeClass('open');
1914			// close all the submenus of siblings
1915			$(this).parent().siblings().find('[data-toggle=dropdown]').parent().removeClass('open');
1916			// opening the one you clicked on
1917			$(this).parent().toggleClass('open');
1918			});
1919		};
1920
1921		// Parallax section
1922		//-----------------------------------------------
1923		if (($(".parallax").length>0)  && !Modernizr.touch ){
1924			$(".parallax").parallax("50%", 0.2);
1925		};
1926		if (($(".parallax-2").length>0)  && !Modernizr.touch ){
1927			$(".parallax-2").parallax("50%", 0.3);
1928		};
1929		if (($(".parallax-3").length>0)  && !Modernizr.touch ){
1930			$(".parallax-3").parallax("50%", 0.4);
1931		};
1932
1933		// Notify Plugin
1934		//-----------------------------------------------
1935		if ($(".btn-alert").length>0){
1936			$(".btn-alert").on('click', function(event) {
1937				$.notify({
1938					// options
1939					message: 'Great! you have just created this message :-) you can configure this into the template.js file'
1940				},{
1941					// settings
1942					type: 'info',
1943					delay: 4000,
1944					offset : {
1945						y: 100,
1946						x: 20
1947					}
1948				});
1949				return false;
1950			});
1951		};
1952
1953		// Remove Button
1954		//-----------------------------------------------
1955		$(".btn-remove").click(function() {
1956			$(this).closest(".remove-data").remove();
1957		});
1958
1959		// Shipping Checkbox
1960		//-----------------------------------------------
1961		if ($("#shipping-info-check").is(':checked')) {
1962			$("#shipping-information").hide();
1963		}
1964		$("#shipping-info-check").change(function(){
1965			if ($(this).is(':checked')) {
1966				$("#shipping-information").slideToggle();
1967			} else {
1968				$("#shipping-information").slideToggle();
1969			}
1970		});
1971
1972		// Full Width Image Overlay
1973		//-----------------------------------------------
1974		if ($(".full-image-overlay").length>0) {
1975			overlayHeight = $(".full-image-overlay").outerHeight();
1976			$(".full-image-overlay").css("marginTop",-overlayHeight/2);
1977		};
1978
1979		//This will prevent the event from bubbling up and close the dropdown when you type/click on text boxes (Header Top).
1980		//-----------------------------------------------
1981		$('.header-top .dropdown-menu input').click(function(e) {
1982			e.stopPropagation();
1983		});
1984
1985	}); // End document ready
1986
1987})(this.jQuery);
1988
1989if (jQuery(".btn-print").length>0) {
1990	function print_window() {
1991		var mywindow = window;
1992		mywindow.document.close();
1993		mywindow.focus();
1994		mywindow.print();
1995		mywindow.close();
1996	}
1997}

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.