PageSourceSearch

https://www.chorverband-cbs.de/static/js/yy_template.js

js chorverband-cbs.de collected 2026-10-04 13:32:29 UTC 44,966 bytes, 1,563 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.0.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        $('#datepickerStart, #datepickerEnd').datepicker({
15            dateFormat: 'dd.mm.yy',
16            altFormat: 'dd.mm.yy',
17            //showOn: 'both',
18            maxDate: '+1Y',
19            beforeShow: customRange,
20            firstDay: 1,
21            changeFirstDay: false
22        });
23
24		if ($('.boxed .fullscreen-bg').length>0) {
25			$("body").addClass("transparent-page-wrapper");
26		};
27
28		$(window).load(function() {
29			$("body").removeClass("no-trans");
30		});
31		// Enable Smooth Scroll only on Chrome and only on Win and Linux Systems
32		var platform = navigator.platform.toLowerCase();
33		if ((platform.indexOf('win') == 0 || platform.indexOf('linux') == 0) && !Modernizr.touch) {
34			if ($.browser.webkit) {
35				// $.webkitSmoothScroll();
36				console.log("hello webkit");
37			}
38		};
39		//Show dropdown on hover only for desktop devices
40		//-----------------------------------------------
41		var delay=0, setTimeoutConst;
42		if ((Modernizr.mq('only all and (min-width: 768px)') && !Modernizr.touch) || $("html.ie8").length>0) {
43			$('.main-navigation:not(.onclick) .navbar-nav>li.dropdown, .main-navigation:not(.onclick) li.dropdown>ul>li.dropdown').hover(
44			function(){
45				var $this = $(this);
46				setTimeoutConst = setTimeout(function(){
47					$this.addClass('open').slideDown();
48					$this.find('.dropdown-toggle').addClass('disabled');
49				}, delay);
50
51			},	function(){ 
52				clearTimeout(setTimeoutConst );
53				$(this).removeClass('open');
54				$(this).find('.dropdown-toggle').removeClass('disabled');
55			});
56		};
57
58		//Show dropdown on click only for mobile devices
59		//-----------------------------------------------
60		if (Modernizr.mq('only all and (max-width: 767px)') || Modernizr.touch || $(".main-navigation.onclick").length>0 ) {
61			$('.main-navigation [data-toggle=dropdown], .header-top [data-toggle=dropdown]').on('click', function(event) {
62			// Avoid following the href location when clicking
63			event.preventDefault(); 
64			// Avoid having the menu to close when clicking
65			event.stopPropagation(); 
66			// close all the siblings
67			$(this).parent().siblings().removeClass('open');
68			// close all the submenus of siblings
69			$(this).parent().siblings().find('[data-toggle=dropdown]').parent().removeClass('open');
70			// opening the one you clicked on
71			$(this).parent().toggleClass('open');
72			});
73		};
74
75		//Transparent Header Calculations
76		var timer_tr;
77		if ($(".transparent-header").length>0) {
78			$(window).load(function() {
79				trHeaderHeight = $("header.header").outerHeight();
80				$(".transparent-header .tp-bannertimer").css("marginTop", (trHeaderHeight)+"px");
81			});
82			$(window).resize(function() {
83				if ($(this).scrollTop()  < headerTopHeight + headerHeight -5) {
84					trHeaderHeight = $("header.header").outerHeight();
85					$(".transparent-header .tp-bannertimer").css("marginTop", (trHeaderHeight)+"px");
86				}
87			});
88			$(window).scroll(function() {
89				if ($(this).scrollTop() == 0 ) { 
90					if(timer_tr) {
91						window.clearTimeout(timer_tr);
92					};
93					timer_tr = window.setTimeout(function() {
94						trHeaderHeight = $("header.header").outerHeight();
95						$(".transparent-header .tp-bannertimer").css("marginTop", (trHeaderHeight)+"px");
96					}, 300);
97				};
98			});
99		}
100
101		if ($(".transparent-header .slideshow").length>0) { 
102			$(".header-container header.header").addClass("transparent-header-on");
103		} else {
104			$(".header-container header.header").removeClass("transparent-header-on");
105		}
106
107		//Full Width Slider with Transparent Header Calculations
108		if ($(".transparent-header .slider-banner-fullwidth-big-height").length>0) {
109			if (Modernizr.mq('only all and (max-width: 991px)')) {
110				$("body").removeClass("transparent-header");
111				$(".header-container header.header").removeClass("transparent-header-on");
112				$(".tp-bannertimer").css("marginTop", "0px");
113				$("body").addClass("slider-banner-fullwidth-big-height-removed");
114			} else {
115				$("body").addClass("transparent-header");
116				$(".header-container header.header").addClass("transparent-header-on");
117				$("body").removeClass("slider-banner-fullwidth-big-height-removed");
118			}
119		};
120
121		if ($(".transparent-header .slider-banner-fullwidth-big-height").length>0 || $(".slider-banner-fullwidth-big-height-removed").length>0) {
122			$(window).resize(function() { 
123				if (Modernizr.mq('only all and (max-width: 991px)')) {
124					$("body").removeClass("transparent-header");
125					$(".header-container header.header").removeClass("transparent-header-on");
126					$(".tp-bannertimer").css("marginTop", "0px");
127				} else {
128					$("body").addClass("transparent-header");
129					$(".header-container header.header").addClass("transparent-header-on");
130				}
131			});
132		};
133
134		//Revolution Slider
135		if ($(".slider-banner-container").length>0) {
136			
137			$(".tp-bannertimer").show();
138			
139			$('body:not(.transparent-header) .slider-banner-container .slider-banner-fullscreen').show().revolution({
140				delay:8000,
141				startwidth:1140,
142				startheight:520,
143				fullWidth:"off",
144				fullScreen:"on",
145				fullScreenOffsetContainer: ".header-container",
146				fullScreenOffset: "0",
147
148				navigationArrows:"solo",
149				
150				navigationStyle: "preview2",
151				navigationHAlign:"center",
152				navigationVAlign:"bottom",
153				navigationHOffset:0,
154				navigationVOffset:20,
155
156				soloArrowLeftHalign:"left",
157				soloArrowLeftValign:"center",
158				soloArrowLeftHOffset:0,
159				soloArrowLeftVOffset:0,
160
161				soloArrowRightHalign:"right",
162				soloArrowRightValign:"center",
163				soloArrowRightHOffset:0,
164				soloArrowRightVOffset:0,
165
166				spinner:"spinner2",
167				
168				stopLoop:"off",
169				stopAfterLoops:-1,
170				stopAtSlide:-1,
171				onHoverStop: "off",
172
173				shuffle:"off",
174				hideTimerBar:"off",
175
176				autoHeight:"off",
177				forceFullWidth:"off",
178
179				hideThumbsOnMobile:"off",
180				hideNavDelayOnMobile:1500,
181				hideBulletsOnMobile:"off",
182				hideArrowsOnMobile:"off",
183				hideThumbsUnderResolution:0,
184				
185				hideSliderAtLimit:0,
186				hideCaptionAtLimit:0,
187				hideAllCaptionAtLilmit:0,
188				startWithSlide:0
189			});
190			$('.transparent-header .slider-banner-container .slider-banner-fullscreen').show().revolution({
191				delay:8000,
192				startwidth:1140,
193				startheight:520,
194				fullWidth:"off",
195				fullScreen:"on",
196				fullScreenOffsetContainer: ".header-top",
197				fullScreenOffset: "",
198
199				navigationArrows:"solo",
200				
201				navigationStyle: "preview2",
202				navigationHAlign:"center",
203				navigationVAlign:"bottom",
204				navigationHOffset:0,
205				navigationVOffset:20,
206
207				soloArrowLeftHalign:"left",
208				soloArrowLeftValign:"center",
209				soloArrowLeftHOffset:0,
210				soloArrowLeftVOffset:0,
211
212				soloArrowRightHalign:"right",
213				soloArrowRightValign:"center",
214				soloArrowRightHOffset:0,
215				soloArrowRightVOffset:0,
216
217				spinner:"spinner2",
218				
219				stopLoop:"off",
220				stopAfterLoops:-1,
221				stopAtSlide:-1,
222				onHoverStop: "off",
223
224				shuffle:"off",
225				hideTimerBar:"off",
226
227				autoHeight:"off",						
228				forceFullWidth:"off",						
229										
230				hideThumbsOnMobile:"off",
231				hideNavDelayOnMobile:1500,						
232				hideBulletsOnMobile:"off",
233				hideArrowsOnMobile:"off",
234				hideThumbsUnderResolution:0,
235				
236				hideSliderAtLimit:0,
237				hideCaptionAtLimit:0,
238				hideAllCaptionAtLilmit:0,
239				startWithSlide:0
240			});
241
242			$('.slider-banner-container .slider-banner-fullwidth').show().revolution({
243				delay:8000,
244				startwidth:1140,
245				startheight:450,
246				
247				navigationArrows:"solo",
248				
249				navigationStyle: "preview2",
250				navigationHAlign:"center",
251				navigationVAlign:"bottom",
252				navigationHOffset:0,
253				navigationVOffset:20,
254
255				soloArrowLeftHalign:"left",
256				soloArrowLeftValign:"center",
257				soloArrowLeftHOffset:0,
258				soloArrowLeftVOffset:0,
259
260				soloArrowRightHalign:"right",
261				soloArrowRightValign:"center",
262				soloArrowRightHOffset:0,
263				soloArrowRightVOffset:0,
264
265				fullWidth:"on",
266
267				spinner:"spinner2",
268				
269				stopLoop:"off",
270				stopAfterLoops:-1,
271				stopAtSlide:-1,
272				onHoverStop: "off",
273
274				shuffle:"off",
275				
276				autoHeight:"off",						
277				forceFullWidth:"off",						
278										
279				hideThumbsOnMobile:"off",
280				hideNavDelayOnMobile:1500,						
281				hideBulletsOnMobile:"off",
282				hideArrowsOnMobile:"off",
283				hideThumbsUnderResolution:0,
284				
285				hideSliderAtLimit:0,
286				hideCaptionAtLimit:0,
287				hideAllCaptionAtLilmit:0,
288				startWithSlide:0
289			});
290
291			$('.slider-banner-container .slider-banner-fullwidth-big-height').show().revolution({
292				delay:8000,
293				startwidth:1140,
294				startheight:650,
295				
296				navigationArrows:"solo",
297				
298				navigationStyle: "preview2",
299				navigationHAlign:"center",
300				navigationVAlign:"bottom",
301				navigationHOffset:0,
302				navigationVOffset:20,
303
304				soloArrowLeftHalign:"left",
305				soloArrowLeftValign:"center",
306				soloArrowLeftHOffset:0,
307				soloArrowLeftVOffset:0,
308
309				soloArrowRightHalign:"right",
310				soloArrowRightValign:"center",
311				soloArrowRightHOffset:0,
312				soloArrowRightVOffset:0,
313
314				fullWidth:"on",
315
316				spinner:"spinner2",
317				
318				stopLoop:"off",
319				stopAfterLoops:-1,
320				stopAtSlide:-1,
321				onHoverStop: "off",
322
323				shuffle:"off",
324				
325				autoHeight:"off",						
326				forceFullWidth:"off",						
327										
328				hideThumbsOnMobile:"off",
329				hideNavDelayOnMobile:1500,						
330				hideBulletsOnMobile:"off",
331				hideArrowsOnMobile:"off",
332				hideThumbsUnderResolution:0,
333				
334				hideSliderAtLimit:0,
335				hideCaptionAtLimit:0,
336				hideAllCaptionAtLilmit:0,
337				startWithSlide:0
338			});
339
340			$('.banner:not(.dark-bg) .slider-banner-container .slider-banner-boxedwidth').show().revolution({
341				delay:8000,
342				startwidth:1140,
343				startheight:450,
344				
345				navigationArrows:"solo",
346				
347				navigationStyle: "preview2",
348				navigationHAlign:"center",
349				navigationVAlign:"bottom",
350				navigationHOffset:0,
351				navigationVOffset:20,
352
353				soloArrowLeftHalign:"left",
354				soloArrowLeftValign:"center",
355				soloArrowLeftHOffset:0,
356				soloArrowLeftVOffset:0,
357
358				soloArrowRightHalign:"right",
359				soloArrowRightValign:"center",
360				soloArrowRightHOffset:0,
361				soloArrowRightVOffset:0,
362
363				fullWidth:"off",
364
365				spinner:"spinner2",
366				shadow: 1,
367				
368				stopLoop:"off",
369				stopAfterLoops:-1,
370				stopAtSlide:-1,
371				onHoverStop: "off",
372
373				shuffle:"off",
374				
375				autoHeight:"off",						
376				forceFullWidth:"off",						
377										
378				hideThumbsOnMobile:"off",
379				hideNavDelayOnMobile:1500,						
380				hideBulletsOnMobile:"off",
381				hideArrowsOnMobile:"off",
382				hideThumbsUnderResolution:0,
383				
384				hideSliderAtLimit:0,
385				hideCaptionAtLimit:0,
386				hideAllCaptionAtLilmit:0,
387				startWithSlide:0
388			});
389
390			$('.banner.dark-bg .slider-banner-container .slider-banner-boxedwidth').show().revolution({
391				delay:8000,
392				startwidth:1140,
393				startheight:450,
394				
395				navigationArrows:"solo",
396				
397				navigationStyle: "preview2",
398				navigationHAlign:"center",
399				navigationVAlign:"bottom",
400				navigationHOffset:0,
401				navigationVOffset:20,
402
403				soloArrowLeftHalign:"left",
404				soloArrowLeftValign:"center",
405				soloArrowLeftHOffset:0,
406				soloArrowLeftVOffset:0,
407
408				soloArrowRightHalign:"right",
409				soloArrowRightValign:"center",
410				soloArrowRightHOffset:0,
411				soloArrowRightVOffset:0,
412
413				fullWidth:"off",
414
415				spinner:"spinner2",
416				shadow: 3,
417				
418				stopLoop:"off",
419				stopAfterLoops:-1,
420				stopAtSlide:-1,
421				onHoverStop: "off",
422
423				shuffle:"off",
424				
425				autoHeight:"off",						
426				forceFullWidth:"off",						
427										
428				hideThumbsOnMobile:"off",
429				hideNavDelayOnMobile:1500,						
430				hideBulletsOnMobile:"off",
431				hideArrowsOnMobile:"off",
432				hideThumbsUnderResolution:0,
433				
434				hideSliderAtLimit:0,
435				hideCaptionAtLimit:0,
436				hideAllCaptionAtLilmit:0,
437				startWithSlide:0
438			});
439
440			$('.banner:not(.dark-bg) .slider-banner-container .slider-banner-boxedwidth-stopped').show().revolution({
441				delay:8000,
442				startwidth:1140,
443				startheight:450,
444				
445				navigationArrows:"solo",
446				
447				navigationStyle: "preview2",
448				navigationHAlign:"center",
449				navigationVAlign:"bottom",
450				navigationHOffset:0,
451				navigationVOffset:20,
452
453				soloArrowLeftHalign:"left",
454				soloArrowLeftValign:"center",
455				soloArrowLeftHOffset:0,
456				soloArrowLeftVOffset:0,
457
458				soloArrowRightHalign:"right",
459				soloArrowRightValign:"center",
460				soloArrowRightHOffset:0,
461				soloArrowRightVOffset:0,
462
463				fullWidth:"off",
464
465				spinner:"spinner2",
466				shadow: 1,
467				
468				stopLoop:"off",
469				stopAfterLoops:0,
470				stopAtSlide:1,
471				onHoverStop: "off",
472
473				shuffle:"off",
474				
475				autoHeight:"off",						
476				forceFullWidth:"off",						
477										
478				hideThumbsOnMobile:"off",
479				hideNavDelayOnMobile:1500,						
480				hideBulletsOnMobile:"off",
481				hideArrowsOnMobile:"off",
482				hideThumbsUnderResolution:0,
483				
484				hideSliderAtLimit:0,
485				hideCaptionAtLimit:0,
486				hideAllCaptionAtLilmit:0,
487				startWithSlide:0
488			});
489
490			$('.banner.dark-bg .slider-banner-container .slider-banner-boxedwidth-stopped').show().revolution({
491				delay:8000,
492				startwidth:1140,
493				startheight:450,
494				
495				navigationArrows:"solo",
496				
497				navigationStyle: "preview2",
498				navigationHAlign:"center",
499				navigationVAlign:"bottom",
500				navigationHOffset:0,
501				navigationVOffset:20,
502
503				soloArrowLeftHalign:"left",
504				soloArrowLeftValign:"center",
505				soloArrowLeftHOffset:0,
506				soloArrowLeftVOffset:0,
507
508				soloArrowRightHalign:"right",
509				soloArrowRightValign:"center",
510				soloArrowRightHOffset:0,
511				soloArrowRightVOffset:0,
512
513				fullWidth:"off",
514
515				spinner:"spinner2",
516				shadow: 3,
517				
518				stopLoop:"off",
519				stopAfterLoops:0,
520				stopAtSlide:1,
521				onHoverStop: "off",
522
523				shuffle:"off",
524				
525				autoHeight:"off",						
526				forceFullWidth:"off",						
527										
528				hideThumbsOnMobile:"off",
529				hideNavDelayOnMobile:1500,						
530				hideBulletsOnMobile:"off",
531				hideArrowsOnMobile:"off",
532				hideThumbsUnderResolution:0,
533				
534				hideSliderAtLimit:0,
535				hideCaptionAtLimit:0,
536				hideAllCaptionAtLilmit:0,
537				startWithSlide:0
538			});
539
540		};
541
542		//Owl carousel
543		//-----------------------------------------------
544		if ($('.owl-carousel').length>0) {
545			$(".owl-carousel.carousel").owlCarousel({
546				items: 4,
547				pagination: false,
548				navigation: true,
549				navigationText: false
550			});
551			$(".owl-carousel.carousel-autoplay").owlCarousel({
552				items: 4,
553				autoPlay: 5000,
554				pagination: false,
555				navigation: true,
556				navigationText: false
557			});
558			$(".owl-carousel.clients").owlCarousel({
559				items: 6,
560				autoPlay: true,
561				pagination: false,
562				itemsDesktopSmall: [992,4],
563				itemsTablet: [768,4],
564				itemsMobile: [479,3]
565			});
566			$(".owl-carousel.content-slider").owlCarousel({
567				singleItem: true,
568				autoPlay: 5000,
569				navigation: false,
570				navigationText: false,
571				pagination: false
572			});	
573			$(".owl-carousel.content-slider-with-controls").owlCarousel({
574				singleItem: true,
575				autoPlay: false,
576				navigation: true,
577				pagination: true
578			});
579			$(".owl-carousel.content-slider-with-large-controls").owlCarousel({
580				singleItem: true,
581				autoPlay: false,
582				navigation: true,
583				pagination: true
584			});	
585			$(".owl-carousel.content-slider-with-controls-autoplay").owlCarousel({
586				singleItem: true,
587				autoPlay: 5000,
588				navigation: true,
589				pagination: true
590			});
591			$(".owl-carousel.content-slider-with-large-controls-autoplay").owlCarousel({
592				singleItem: true,
593				autoPlay: 5000,
594				navigation: true,
595				pagination: true
596			});
597			$(".owl-carousel.content-slider-with-controls-autoplay-hover-stop").owlCarousel({
598				singleItem: true,
599				autoPlay: 5000,
600				navigation: true,
601				pagination: true,
602				stopOnHover: true
603			});
604		};
605
606		// Fixed header
607		//-----------------------------------------------
608		headerTopHeight = $(".header-top").outerHeight(),
609		headerHeight = $("header.header.fixed").outerHeight();
610		$(window).resize(function() {
611			if(($(this).scrollTop() < headerTopHeight + headerHeight -5 ) && ($(window).width() > 767)) {
612				headerTopHeight = $(".header-top").outerHeight(),
613				headerHeight = $("header.header.fixed").outerHeight();
614			}
615		});
616		
617		$(window).scroll(function() {
618			if (($(".header.fixed").length > 0)  && !($(".transparent-header .slideshow").length>0)) {
619				if (($(this).scrollTop() > headerTopHeight + headerHeight) && ($(window).width() > 767)) {
620					$("body").addClass("fixed-header-on");
621					$(".header.fixed").addClass('animated object-visible fadeInDown');
622					$(".header-container").css("paddingBottom", (headerHeight)+"px");
623				} else {
624					$("body").removeClass("fixed-header-on");
625					$(".header-container").css("paddingBottom", (0)+"px");
626					$(".header.fixed").removeClass('animated object-visible fadeInDown');
627				}
628			} else if ($(".header.fixed").length > 0) {
629				if (($(this).scrollTop() > headerTopHeight + headerHeight) && ($(window).width() > 767)) {
630					$("body").addClass("fixed-header-on");
631					$(".header.fixed").addClass('animated object-visible fadeInDown');
632				} else {
633					$("body").removeClass("fixed-header-on");
634					$(".header.fixed").removeClass('animated object-visible fadeInDown');
635				}
636			};
637		});
638
639		// Charts
640		//-----------------------------------------------
641		if ($(".graph").length>0) {
642			// Creates random numbers you don't need this for real graphs
643			var randomScalingFactor = function(){ return Math.round(Math.random()*500)};
644
645			if ($(".graph.line").length>0) {
646				// Data for line charts
647				var lineChartData = {
648					labels : ["January","February","March","April","May","June","July"],
649					datasets : [
650					{
651						label: "First dataset",
652						fillColor : "rgba(188,188,188,0.2)",
653						strokeColor : "rgba(188,188,188,1)",
654						pointColor : "rgba(188,188,188,1)",
655						pointStrokeColor : "#fff",
656						pointHighlightFill : "#fff",
657						pointHighlightStroke : "rgba(188,188,188,1)",
658						data : [250,300,250,200,250,300,250]
659					},
660					{
661						label: "Second dataset",
662						fillColor : "rgba(126,187,205,0.2)",
663						strokeColor : "rgba(126,187,205,1)",
664						pointColor : "rgba(126,187,205,1)",
665						pointStrokeColor : "#fff",
666						pointHighlightFill : "#fff",
667						pointHighlightStroke : "rgba(126,187,205,1)",
668						data : [300,250,200,250,300,250,200]
669					},
670					{
671						label: "Third dataset",
672						fillColor : "rgba(98,187,205,0.2)",
673						strokeColor : "rgba(98,187,205,1)",
674						pointColor : "rgba(98,187,205,1)",
675						pointStrokeColor : "#fff",
676						pointHighlightFill : "#fff",
677						pointHighlightStroke : "rgba(98,187,205,1)",
678						data : [0,100,200,300,400,500,400]
679					}
680					]
681				}
682
683				// Line Charts Initialization
684				$(window).load(function() {
685					var ctx = document.getElementById("lines-graph").getContext("2d");
686					window.newLine = new Chart(ctx).Line(lineChartData, {
687						responsive: true,
688						bezierCurve : false
689					});
690				});
691			}
692			if ($(".graph.bar").length>0) {
693				// Data for bar charts
694				var barChartData = {
695					labels : ["January","February","March","April","May","June","July"],
696					datasets : [
697						{
698							fillColor : "rgba(188,188,188,0.5)",
699							strokeColor : "rgba(188,188,188,0.8)",
700							highlightFill: "rgba(188,188,188,0.75)",
701							highlightStroke: "rgba(188,188,188,1)",
702							data : [randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor()]
703						},
704						{
705							fillColor : "rgba(168,187,205,0.5)",
706							strokeColor : "rgba(168,187,205,0.8)",
707							highlightFill : "rgba(168,187,205,0.75)",
708							highlightStroke : "rgba(168,187,205,1)",
709							data : [randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor()]
710						}
711					]
712				}
713				
714				// Bar Charts Initialization		
715				$(window).load(function() {
716					var ctx = document.getElementById("bars-graph").getContext("2d");
717					window.myBar = new Chart(ctx).Bar(barChartData, {
718						responsive : true
719					});
720				});
721			}
722			if ($(".graph.pie").length>0) {			
723				// Data for pie chart
724				var pieData = [
725					{
726						value: 120,
727						color:"#09afdf",
728						highlight: "#6BD5F4",
729						label: "Blue"
730					},
731					{
732						value: 120,
733						color: "#FDB45C",
734						highlight: "#FFC870",
735						label: "Yellow"
736					},
737					{
738						value: 120,
739						color: "#4D5360",
740						highlight: "#616774",
741						label: "Dark Grey"
742					}
743				];
744
745				// Pie Chart Initialization
746				$(window).load(function() {
747					var ctx = document.getElementById("pie-graph").getContext("2d");
748					window.myPie = new Chart(ctx).Pie(pieData);
749				});
750			}
751			if ($(".graph.doughnut").length>0) {	
752				// Data for doughnut chart
753				var doughnutData = [
754					{
755						value: 120,
756						color:"#09afdf",
757						highlight: "#6BD5F4",
758						label: "Blue"
759					},
760					{
761						value: 120,
762						color: "#FDB45C",
763						highlight: "#FFC870",
764						label: "Yellow"
765					},
766					{
767						value: 120,
768						color: "#4D5360",
769						highlight: "#616774",
770						label: "Dark Grey"
771					}
772				];
773				
774				// Doughnut Chart Initialization
775				$(window).load(function() {
776					var ctx = document.getElementById("doughnut-graph").getContext("2d");
777					window.myDoughnut = new Chart(ctx).Doughnut(doughnutData, {responsive : true});
778				});
779			}
780		};
781
782		// Magnific popup
783		//-----------------------------------------------
784		if (($(".popup-img").length > 0) || ($(".popup-iframe").length > 0) || ($(".popup-img-single").length > 0)) { 		
785			$(".popup-img").magnificPopup({
786				type:"image",
787				gallery: {
788					enabled: true,
789				}
790			});
791			$(".popup-img-single").magnificPopup({
792				type:"image",
793				gallery: {
794					enabled: false,
795				}
796			});
797			$('.popup-iframe').magnificPopup({
798				disableOn: 700,
799				type: 'iframe',
800				preloader: false,
801				fixedContentPos: false
802			});
803		};
804
805		// Animations
806		//-----------------------------------------------
807		if (($("[data-animation-effect]").length>0) && !Modernizr.touch) {
808			$("[data-animation-effect]").each(function() {
809				if(Modernizr.mq('only all and (min-width: 768px)') && Modernizr.csstransitions) {
810					var waypoints = $(this).waypoint(function(direction) {
811						var appearDelay = $(this.element).attr("data-effect-delay"),
812						animatedObject = $(this.element);
813						setTimeout(function() {
814							animatedObject.addClass('animated object-visible ' + animatedObject.attr("data-animation-effect"));
815						}, appearDelay);
816						this.destroy();
817					},{
818						offset: '90%'
819					});
820				} else {
821					$(this).addClass('object-visible');
822				}
823			});
824		};
825
826		// Text Rotators
827		//-----------------------------------------------
828		if ($(".text-rotator").length>0) {
829			$(".text-rotator").each(function() {
830				var tr_animationEffect = $(this).attr("data-rotator-animation-effect");
831				$(this).Morphext({
832					animation: ""+tr_animationEffect+"", // Overrides default "bounceIn"
833					separator: ",", // Overrides default ","
834					speed: 3000 // Overrides default 2000
835				});
836			});
837		};
838
839		// Stats Count To
840		//-----------------------------------------------
841		if ($(".stats [data-to]").length>0) {
842			$(".stats [data-to]").each(function() {
843				var stat_item = $(this),
844				offset = stat_item.offset().top;
845				if($(window).scrollTop() > (offset - 800) && !(stat_item.hasClass('counting'))) {
846					stat_item.addClass('counting');
847					stat_item.countTo();
848				};
849				$(window).scroll(function() {
850					if($(window).scrollTop() > (offset - 800) && !(stat_item.hasClass('counting'))) {
851						stat_item.addClass('counting');
852						stat_item.countTo();
853					}
854				});
855			});
856		};
857
858		// Isotope filters
859		//-----------------------------------------------
860		if ($('.isotope-container').length>0 || $('.masonry-grid').length>0 || $('.masonry-grid-fitrows').length>0 || $('.isotope-container-fitrows').length>0) {
861			$(window).load(function() {
862				$('.masonry-grid').isotope({
863					itemSelector: '.masonry-grid-item',
864					layoutMode: 'masonry'
865				});
866				$('.masonry-grid-fitrows').isotope({
867					itemSelector: '.masonry-grid-item',
868					layoutMode: 'fitRows'
869				});
870				$('.isotope-container').fadeIn();
871				var $container = $('.isotope-container').isotope({
872					itemSelector: '.isotope-item',
873					layoutMode: 'masonry',
874					transitionDuration: '0.6s',
875					filter: "*"
876				});
877				$('.isotope-container-fitrows').fadeIn();
878				var $container_fitrows = $('.isotope-container-fitrows').isotope({
879					itemSelector: '.isotope-item',
880					layoutMode: 'fitRows',
881					transitionDuration: '0.6s',
882					filter: "*"
883				});				
884				// filter items on button click
885				$('.filters').on( 'click', 'ul.nav li a', function() {
886					var filterValue = $(this).attr('data-filter');
887					$(".filters").find("li.active").removeClass("active");
888					$(this).parent().addClass("active");
889					$container.isotope({ filter: filterValue });
890					$container_fitrows.isotope({ filter: filterValue });
891					return false;
892				});
893			});
894			$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
895				$('.tab-pane .masonry-grid-fitrows').isotope({
896					itemSelector: '.masonry-grid-item',
897					layoutMode: 'fitRows'
898				});
899			});
900		};
901
902		// Animated Progress Bars
903		//-----------------------------------------------
904		if ($("[data-animate-width]").length>0) {
905			$("[data-animate-width]").each(function() {
906				if (Modernizr.touch || !Modernizr.csstransitions) {
907					$(this).find("span").hide();
908				};
909				var waypoints = $(this).waypoint(function(direction) {
910					$(this.element).animate({width: $(this.element).attr("data-animate-width")}, 800 );
911					this.destroy();
912					if (Modernizr.touch || !Modernizr.csstransitions) {
913						$(this.element).find("span").show('slow');
914					};
915				},{
916					offset: '90%'
917				});
918			});
919		};
920
921		// Animated Circular Progress Bars
922		//-----------------------------------------------
923		if ($(".knob").length>0) {
924
925			$(".knob").knob();
926			$(".knob").each(function() {
927				var animateVal = $(this).attr("data-animate-value");
928				$(this).animate({animatedVal: animateVal}, {
929					duration: 2000,
930					step: function() {
931						$(this).val(Math.ceil(this.animatedVal)).trigger("change"); 
932					}
933				});
934			});
935		}
936
937		//Video Background
938		//-----------------------------------------------		
939		if($(".video-background").length>0) {
940			if (Modernizr.touch) {
941				$(".video-background").vide({
942					mp4: "videos/background-video.mp4",
943					webm: "videos/background-video.webm",
944					poster: "videos/video-fallback.jpg"
945				}, {
946					volume: 1,
947					playbackRate: 1,
948					muted: true,
949					loop: true,
950					autoplay: true,
951					position: "50% 100%", // Similar to the CSS `background-position` property.
952					posterType: "jpg", // Poster image type. "detect" — auto-detection; "none" — no poster; "jpg", "png", "gif",... - extensions.
953					resizing: true 
954				});
955			} else {
956				$(".video-background").vide({
957					mp4: "videos/background-video.mp4",
958					webm: "videos/background-video.webm",
959					poster: "videos/video-poster.jpg"
960				}, {
961					volume: 1,
962					playbackRate: 1,
963					muted: true,
964					loop: true,
965					autoplay: true,
966					position: "50% 100%", // Similar to the CSS `background-position` property.
967					posterType: "jpg", // Poster image type. "detect" — auto-detection; "none" — no poster; "jpg", "png", "gif",... - extensions.
968					resizing: true 
969				});
970			};
971
972		};
973		if($(".video-background-banner").length>0) {
974			if (Modernizr.touch) {
975				$(".video-background-banner").vide({
976					mp4: "videos/background-video-banner.mp4",
977					webm: "videos/background-video-banner.webm",
978					poster: "videos/video-fallback.jpg"
979				}, {
980					volume: 1,
981					playbackRate: 1,
982					muted: true,
983					loop: true,
984					autoplay: true,
985					position: "50% 50%", // Similar to the CSS `background-position` property.
986					posterType: "jpg", // Poster image type. "detect" — auto-detection; "none" — no poster; "jpg", "png", "gif",... - extensions.
987					resizing: true 
988				});
989			} else {			
990				$(".video-background-banner").vide({
991					mp4: "videos/background-video-banner.mp4",
992					webm: "videos/background-video-banner.webm",
993					poster: "videos/video-banner-poster.jpg"
994				}, {
995					volume: 1,
996					playbackRate: 1,
997					muted: true,
998					loop: true,
999					autoplay: true,
1000					position: "50% 50%", // Similar to the CSS `background-position` property.
1001					posterType: "jpg", // Poster image type. "detect" — auto-detection; "none" — no poster; "jpg", "png", "gif",... - extensions.
1002					resizing: true 
1003				});
1004			};
1005		};
1006		//Scroll totop
1007		//-----------------------------------------------
1008		$(window).scroll(function() {
1009			if($(this).scrollTop() != 0) {
1010				$(".scrollToTop").fadeIn();	
1011			} else {
1012				$(".scrollToTop").fadeOut();
1013			}
1014		});
1015		
1016		$(".scrollToTop").click(function() {
1017			$("body,html").animate({scrollTop:0},800);
1018		});
1019		
1020		//Modal
1021		//-----------------------------------------------
1022		if($(".modal").length>0) {
1023			$(".modal").each(function() {
1024				$(".modal").prependTo( "body" );
1025			});
1026		}
1027		
1028		// Pricing tables popovers
1029		//-----------------------------------------------
1030		if ($(".pricing-tables").length>0) {
1031			$(".plan .pt-popover").popover({
1032				trigger: 'hover',
1033				container: 'body'
1034			});
1035		};
1036
1037		// Contact forms validation
1038		//-----------------------------------------------		
1039		if($("#contact-form").length>0) {
1040			$("#contact-form").validate({
1041				submitHandler: function(form) {
1042					$('.submit-button').button("loading");
1043					$.ajax({
1044						type: "POST",
1045						url: "php/email-sender.php",
1046						data: {
1047							"name": $("#contact-form #name").val(),
1048							"email": $("#contact-form #email").val(),
1049							"subject": $("#contact-form #subject").val(),
1050							"message": $("#contact-form #message").val()
1051						},
1052						dataType: "json",
1053						success: function (data) {
1054							if (data.sent == "yes") {
1055								$("#MessageSent").removeClass("hidden");
1056								$("#MessageNotSent").addClass("hidden");
1057								$(".submit-button").removeClass("btn-default").addClass("btn-success").prop('value', 'Message Sent');
1058								$("#contact-form .form-control").each(function() { 
1059									$(this).prop('value', '').parent().removeClass("has-success").removeClass("has-error");
1060								});
1061							} else {
1062								$("#MessageNotSent").removeClass("hidden");
1063								$("#MessageSent").addClass("hidden");
1064							}
1065						}
1066					});
1067				},				
1068				// debug: true,
1069				errorPlacement: function(error, element) {
1070					error.insertBefore( element );
1071				},
1072				onkeyup: false,
1073				onclick: false,
1074				rules: {
1075					name: {
1076						required: true,
1077						minlength: 2
1078					},
1079					email: {
1080						required: true,
1081						email: true
1082					},
1083					subject: {
1084						required: true
1085					},
1086					message: {
1087						required: true,
1088						minlength: 10
1089					}
1090				},
1091				messages: {
1092					name: {
1093						required: "Please specify your name",
1094						minlength: "Your name must be longer than 2 characters"
1095					},
1096					email: {
1097						required: "We need your email address to contact you",
1098						email: "Please enter a valid email address e.g. [email protected]"
1099					},
1100					subject: {
1101						required: "Please enter a subject"
1102					},
1103					message: {
1104						required: "Please enter a message",
1105						minlength: "Your message must be longer than 10 characters"
1106					}					
1107				},
1108				errorElement: "span",
1109				highlight: function (element) {
1110					$(element).parent().removeClass("has-success").addClass("has-error");
1111					$(element).siblings("label").addClass("hide"); 
1112				},
1113				success: function (element) {
1114					$(element).parent().removeClass("has-error").addClass("has-success");
1115					$(element).siblings("label").removeClass("hide"); 
1116				}
1117			});
1118		};
1119
1120		if($("#footer-form").length>0) {
1121			$("#footer-form").validate({
1122				submitHandler: function(form) {
1123					$('.submit-button').button("loading");
1124					$.ajax({
1125						type: "POST",
1126						url: "php/email-sender.php",
1127						data: {
1128							"name": $("#footer-form #name2").val(),
1129							"email": $("#footer-form #email2").val(),
1130							"subject": "Message from contact form",
1131							"message": $("#footer-form #message2").val()
1132						},
1133						dataType: "json",
1134						success: function (data) {
1135							if (data.sent == "yes") {
1136								$("#MessageSent2").removeClass("hidden");
1137								$("#MessageNotSent2").addClass("hidden");
1138								$(".submit-button").removeClass("btn-default").addClass("btn-success").prop('value', 'Message Sent');
1139								$("#footer-form .form-control").each(function() { 
1140									$(this).prop('value', '').parent().removeClass("has-success").removeClass("has-error");
1141								});
1142							} else {
1143								$("#MessageNotSent2").removeClass("hidden");
1144								$("#MessageSent2").addClass("hidden");
1145							}
1146						}
1147					});
1148				},				
1149				// debug: true,
1150				errorPlacement: function(error, element) {
1151					error.insertAfter( element );
1152				},
1153				onkeyup: false,
1154				onclick: false,
1155				rules: {
1156					name2: {
1157						required: true,
1158						minlength: 2
1159					},
1160					email2: {
1161						required: true,
1162						email: true
1163					},
1164					message2: {
1165						required: true,
1166						minlength: 10
1167					}
1168				},
1169				messages: {
1170					name2: {
1171						required: "Please specify your name",
1172						minlength: "Your name must be longer than 2 characters"
1173					},
1174					email2: {
1175						required: "We need your email address to contact you",
1176						email: "Please enter a valid email address e.g. [email protected]"
1177					},
1178					message2: {
1179						required: "Please enter a message",
1180						minlength: "Your message must be longer than 10 characters"
1181					}
1182				},
1183				errorElement: "span",
1184				highlight: function (element) {
1185					$(element).parent().removeClass("has-success").addClass("has-error");
1186					$(element).siblings("label").addClass("hide"); 
1187				},
1188				success: function (element) {
1189					$(element).parent().removeClass("has-error").addClass("has-success");
1190					$(element).siblings("label").removeClass("hide"); 
1191				}
1192			});
1193		};
1194
1195		if($("#sidebar-form").length>0) {
1196
1197			$("#sidebar-form").validate({
1198				submitHandler: function(form) {
1199					$('.submit-button').button("loading");
1200					$.ajax({
1201						type: "POST",
1202						url: "php/email-sender.php",
1203						data: {
1204							"name": $("#sidebar-form #name3").val(),
1205							"email": $("#sidebar-form #email3").val(),
1206							"subject": "Message from FAQ page",
1207							"category": $("#sidebar-form #category").val(),
1208							"message": $("#sidebar-form #message3").val()
1209						},
1210						dataType: "json",
1211						success: function (data) {
1212							if (data.sent == "yes") {
1213								$("#MessageSent3").removeClass("hidden");
1214								$("#MessageNotSent3").addClass("hidden");
1215								$(".submit-button").removeClass("btn-default").addClass("btn-success").prop('value', 'Message Sent');
1216								$("#sidebar-form .form-control").each(function() { 
1217									$(this).prop('value', '').parent().removeClass("has-success").removeClass("has-error");
1218								});
1219							} else {
1220								$("#MessageNotSent3").removeClass("hidden");
1221								$("#MessageSent3").addClass("hidden");
1222							}
1223						}
1224					});
1225				},				
1226				// debug: true,
1227				errorPlacement: function(error, element) {
1228					error.insertAfter( element );
1229				},
1230				onkeyup: false,
1231				onclick: false,
1232				rules: {
1233					name3: {
1234						required: true,
1235						minlength: 2
1236					},
1237					email3: {
1238						required: true,
1239						email: true
1240					},
1241					message3: {
1242						required: true,
1243						minlength: 10
1244					}
1245				},
1246				messages: {
1247					name3: {
1248						required: "Please specify your name",
1249						minlength: "Your name must be longer than 2 characters"
1250					},
1251					email3: {
1252						required: "We need your email address to contact you",
1253						email: "Please enter a valid email address e.g. [email protected]"
1254					},
1255					message3: {
1256						required: "Please enter a message",
1257						minlength: "Your message must be longer than 10 characters"
1258					}					
1259				},
1260				errorElement: "span",
1261				highlight: function (element) {
1262					$(element).parent().removeClass("has-success").addClass("has-error");
1263				},
1264				success: function (element) {
1265					$(element).parent().removeClass("has-error").addClass("has-success");
1266				}
1267			});
1268
1269		};
1270
1271		if($("#rsvp").length>0) {
1272			$("#rsvp").validate({
1273				submitHandler: function(form) {
1274					$('.submit-button').button("loading");
1275					$.ajax({
1276						type: "POST",
1277						url: "php/email-sender.php",
1278						data: {
1279							"name": $("#rsvp #name").val(),
1280							"email": $("#rsvp #email").val(),
1281							"guests": $("#rsvp #guests").val(),
1282							"subject": "RSVP",
1283							"events": $("#rsvp #events").val()
1284						},
1285						dataType: "json",
1286						success: function (data) {
1287							if (data.sent == "yes") {
1288								$("#MessageSent").removeClass("hidden");
1289								$("#MessageNotSent").addClass("hidden");
1290								$(".submit-button").removeClass("btn-default").addClass("btn-success").prop('value', 'Message Sent');
1291								$("#rsvp .form-control").each(function() { 
1292									$(this).prop('value', '').parent().removeClass("has-success").removeClass("has-error");
1293								});
1294							} else {
1295								$("#MessageNotSent").removeClass("hidden");
1296								$("#MessageSent").addClass("hidden");
1297							}
1298						}
1299					});
1300				},				
1301				// debug: true,
1302				errorPlacement: function(error, element) {
1303					error.insertAfter( element );
1304				},
1305				onkeyup: false,
1306				onclick: false,
1307				rules: {
1308					name: {
1309						required: true,
1310						minlength: 2
1311					},
1312					email: {
1313						required: true,
1314						email: true
1315					},
1316					guests: {
1317						required: true
1318					},
1319					events: {
1320						required: true
1321					}
1322				},
1323				messages: {
1324					name: {
1325						required: "Please specify your name",
1326						minlength: "Your name must be longer than 2 characters"
1327					},
1328					email: {
1329						required: "We need your email address to contact you",
1330						email: "Please enter a valid email address e.g. [email protected]"
1331					}					
1332				},
1333				errorElement: "span",
1334				highlight: function (element) {
1335					$(element).parent().removeClass("has-success").addClass("has-error");
1336					$(element).siblings("label").addClass("hide"); 
1337				},
1338				success: function (element) {
1339					$(element).parent().removeClass("has-error").addClass("has-success");
1340					$(element).siblings("label").removeClass("hide"); 
1341				}
1342			});
1343		};
1344
1345
1346		// Affix Menu
1347		//-----------------------------------------------
1348		if ($(".affix-menu").length>0) {
1349			setTimeout(function () {
1350				var $sideBar = $('.sidebar')
1351
1352				$sideBar.affix({
1353					offset: {
1354						top: function () {
1355							var offsetTop = $sideBar.offset().top
1356							return (this.top = offsetTop - 65)
1357						},
1358						bottom: function () {
1359							var affixBottom = $(".footer").outerHeight(true) + $(".subfooter").outerHeight(true)
1360							if ($(".footer-top").length>0) {
1361								affixBottom = affixBottom + $(".footer-top").outerHeight(true)
1362							}						
1363							return (this.bottom = affixBottom+50)
1364						}
1365					}
1366				})
1367			}, 100)
1368		}
1369
1370		//Scroll Spy
1371		//-----------------------------------------------
1372		if($(".scrollspy").length>0) {
1373			$("body").addClass("scroll-spy");
1374			if($(".fixed.header").length>0) {
1375				$('body').scrollspy({ 
1376					target: '.scrollspy',
1377					offset: 85
1378				});
1379			} else {
1380				$('body').scrollspy({ 
1381					target: '.scrollspy',
1382					offset: 20
1383				});
1384			}
1385		}
1386
1387		//Smooth Scroll
1388		//-----------------------------------------------
1389		if ($(".smooth-scroll").length>0) {
1390			if(($(".header.fixed").length>0) && (Modernizr.mq('only all and (min-width: 768px)'))) {
1391				$('.smooth-scroll a[href*=#]:not([href=#]), a[href*=#]:not([href=#]).smooth-scroll').click(function() {
1392					if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
1393						var target = $(this.hash);
1394						target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
1395						if (target.length) {
1396							$('html,body').animate({
1397								scrollTop: target.offset().top-64
1398							}, 1000);
1399							return false;
1400						}
1401					}
1402				});
1403			} else {
1404				$('.smooth-scroll a[href*=#]:not([href=#]), a[href*=#]:not([href=#]).smooth-scroll').click(function() {
1405					if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
1406						var target = $(this.hash);
1407						target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
1408						if (target.length) {
1409							$('html,body').animate({
1410								scrollTop: target.offset().top
1411							}, 1000);
1412							return false;
1413						}
1414					}
1415				});
1416			}
1417		}
1418
1419		// Offcanvas side navbar
1420		//-----------------------------------------------
1421		if ($("#offcanvas").length>0) {
1422			$('#offcanvas').offcanvas({
1423				canvas: "body",
1424				disableScrolling: false,
1425				toggle: false
1426			});
1427		};
1428
1429		if ($("#offcanvas").length>0) {
1430			$('#offcanvas [data-toggle=dropdown]').on('click', function(event) {
1431			// Avoid following the href location when clicking
1432			event.preventDefault(); 
1433			// Avoid having the menu to close when clicking
1434			event.stopPropagation(); 
1435			// close all the siblings
1436			$(this).parent().siblings().removeClass('open');
1437			// close all the submenus of siblings
1438			$(this).parent().siblings().find('[data-toggle=dropdown]').parent().removeClass('open');
1439			// opening the one you clicked on
1440			$(this).parent().toggleClass('open');
1441			});
1442		};
1443
1444		// Parallax section
1445		//-----------------------------------------------
1446		if (($(".parallax").length>0)  && !Modernizr.touch ){
1447			$(".parallax").parallax("50%", 0.2);
1448		};
1449		if (($(".parallax-2").length>0)  && !Modernizr.touch ){
1450			$(".parallax-2").parallax("50%", 0.3);
1451		};		
1452		if (($(".parallax-3").length>0)  && !Modernizr.touch ){
1453			$(".parallax-3").parallax("50%", 0.4);
1454		};
1455
1456		// Notify Plugin
1457		//-----------------------------------------------
1458		if (($(".main-navigation.onclick").length>0) && !Modernizr.touch ){
1459			$.notify({
1460				// options
1461				message: 'The Dropdowns of the Main Menu, are now open with click on Parent Items. Click "Home" to checkout this behavior.'
1462			},{
1463				// settings
1464				type: 'info',
1465				delay: 10000,
1466				offset : {
1467					y: 150,
1468					x: 20
1469				}
1470			});
1471		};
1472		if (!($(".main-navigation.animated").length>0) && !Modernizr.touch && $(".main-navigation").length>0){
1473			$.notify({
1474				// options
1475				message: 'The animations of main menu are disabled.'
1476			},{
1477				// settings
1478				type: 'info',
1479				delay: 10000,
1480				offset : {
1481					y: 150,
1482					x: 20
1483				}
1484			});
1485		};
1486		if ($(".btn-alert").length>0){
1487			$(".btn-alert").on('click', function(event) {
1488				$.notify({
1489					// options
1490					message: 'Great! you have just created this message :-) you can configure this into the template.js file'
1491				},{
1492					// settings
1493					type: 'info',
1494					delay: 4000,
1495					offset : {
1496						y: 100,
1497						x: 20
1498					}
1499				});
1500				return false;
1501			});
1502		};		
1503
1504		// Remove Button
1505		//-----------------------------------------------
1506		$(".btn-remove").click(function() {
1507			$(this).closest(".remove-data").remove();
1508		});
1509
1510		// Shipping Checkbox
1511		//-----------------------------------------------
1512		if ($("#shipping-info-check").is(':checked')) {
1513			$("#shipping-information").hide();
1514		}
1515		$("#shipping-info-check").change(function(){
1516			if ($(this).is(':checked')) {
1517				$("#shipping-information").slideToggle();
1518			} else {
1519				$("#shipping-information").slideToggle();
1520			}
1521		});
1522
1523		// Full Width Image Overlay
1524		//-----------------------------------------------
1525		if ($(".full-image-overlay").length>0) {
1526			overlayHeight = $(".full-image-overlay").outerHeight();
1527			$(".full-image-overlay").css("marginTop",-overlayHeight/2);
1528		};
1529
1530		//This will prevent the event from bubbling up and close the dropdown when you type/click on text boxes (Header Top).
1531		//-----------------------------------------------
1532		$('.header-top .dropdown-menu input').click(function(e) {
1533			e.stopPropagation(); 
1534		});
1535
1536	}); // End document ready
1537
1538})(this.jQuery);
1539
1540if (jQuery(".btn-print").length>0) {
1541	function print_window() {
1542		var mywindow = window;
1543		mywindow.document.close();
1544		mywindow.focus();
1545		mywindow.print();
1546		mywindow.close();
1547	}
1548}
1549
1550function customRange(input) {
1551    if (input.id == 'datepickerEnd') {
1552        return {
1553            minDate: jQuery('#datepickerStart').datepicker("getDate")
1554        };
1555    } else if (input.id == 'datepickerStart') {
1556        return {
1557            maxDate: jQuery('#datepickerEnd').datepicker("getDate")
1558        };
1559    }
1560}
1561
1562function new_win_bmm(){window.open("http://ea.sendcockpit.com/_s.php?&fid=28197&fpw=f2840aa2b3dcec7e8e0fa44fd38af5dc","newwindow","width=535,height=390,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=no,resizable=yes,top=5,left=5")}
1563function new_win_mib(){window.open("http://ea.sendcockpit.com/_s.php?&fid=34723&fpw=be41c62be9f3aa7d45f7562f37c0ebba","newwindow","width=535,height=390,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=no,resizable=yes,top=5,left=5")}

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.