text: /* ===================================================================
  
  	Author       	: Incognito Themes
  	Template Name	: Beam - Creative One Page Parallax Template
  	Version      	: 1.0
  
  	* ================================================================= */
  
  /* ===== LOADER OVERLAY ===== */
  
  jQuery(function ($) {
  	"use strict";
  
  	jQuery(document).ready(function ($) {
  		/* ===== jQuery Varibles ===== */
  
  		mainSlider();
  		ContentSlider();
  		testimonialSlider();
  		testimonialSliderTwo();
  		clientSlider();
  		blogGridSlider();
  		teamSlider();
  		parallaxEffect();
  		parallaxBackground();
  
  		/* ===== PRELOADER  ===== */
  		$(function () {
  			$("#loader-overlay").delay(500).fadeOut();
  			$(".loader").delay(1000).fadeOut("slow");
  
  			$(window).trigger("scroll");
  			$(window).trigger("resize");
  
  			if (window.location.hash) {
  				var hash_offset = $(window.location.hash).offset().top;
  				$("html, body").animate({
  					scrollTop: hash_offset,
  				});
  			}
  		});
  
  		function msieversion() {
  			var ua = window.navigator.userAgent;
  			var msie = ua.indexOf("MSIE ");
  
  			if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./)) {
  				// If Internet Explorer, return version number
  				alert(parseInt(ua.substring(msie + 5, ua.indexOf(".", msie))));
  			} // If another browser, return 0
  			else {
  				alert("otherbrowser");
  			}
  
  			return false;
  		}
  
  		/* ===== COUNTERS  ===== */
  
  		$(".counter").counterUp({
  			delay: 20,
  			time: 4000,
  		});
  
  		/* ===== SKILLS BAR ===== */
  
  		$(".skillbar").skillBars({
  			from: 0,
  			speed: 4000,
  			interval: 100,
  			decimals: 0,
  		});
  
  		/* ===== PIE CHARTS  ===== */
  
  		$(function () {
  			$(".chart-01").easyPieChart({
  				easing: "easeOutBounce",
  				barColor: "#212121",
  				trackColor: "#eeeeee",
  				scaleColor: false,
  				scaleLength: 2,
  				size: 150, //110
  				animate: {
  					duration: 2000,
  					enabled: true,
  				},
  				onStep: function (from, to, percent) {
  					$(this.el).find(".percent").text(Math.round(percent));
  				},
  			});
  
  			$(".chart-02").easyPieChart({
  				easing: "easeOutCirc",
  				barColor: "#ffffff",
  				trackColor: "#212121",
  				scaleColor: false,
  				scaleLength: 2,
  				size: 120, //110
  				animate: {
  					duration: 2000,
  					enabled: true,
  				},
  				onStep: function (from, to, percent) {
  					$(this.el).find(".percent").text(Math.round(percent));
  				},
  			});
  
  			$(".chart-03").easyPieChart({
  				easing: "easeInQuad",
  				barColor: "#56ab2f",
  				trackColor: "#212121",
  				scaleColor: false,
  				scaleLength: 2,
  				size: 140, //110
  				animate: {
  					duration: 2000,
  					enabled: true,
  				},
  				onStep: function (from, to, percent) {
  					$(this.el).find(".percent").text(Math.round(percent));
  				},
  			});
  		});
  
  		/* ===== COUNTDOWN ===== */
  
  		if ($(".countdown").length > 0) {
  			$(".countdown").countdown({
  				date: "21 dec 2018 12:00:00",
  				format: "on",
  			});
  		}
  
  		/* ===== Parallax Stellar ===== */
  
  		var isMobile = {
  			Android: function () {
  				return navigator.userAgent.match(/Android/i);
  			},
  			BlackBerry: function () {
  				return navigator.userAgent.match(/BlackBerry/i);
  			},
  			iOS: function () {
  				return navigator.userAgent.match(/iPhone|iPad|iPod/i);
  			},
  			Opera: function () {
  				return navigator.userAgent.match(/Opera Mini/i);
  			},
  			Windows: function () {
  				return navigator.userAgent.match(/IEMobile/i);
  			},
  			any: function () {
  				return (
  					isMobile.Android() ||
  					isMobile.BlackBerry() ||
  					isMobile.iOS() ||
  					isMobile.Opera() ||
  					isMobile.Windows()
  				);
  			},
  		};
  
  		jQuery(window).stellar({
  			horizontalScrolling: false,
  			hideDistantElements: true,
  			verticalScrolling: !isMobile.any(),
  			scrollProperty: "scroll",
  			responsive: true,
  		});
  
  		/* ===== SLICK SLIDERS ===== */
  
  		/* ~~~ Hero Half Slider ~~~ */
  		function mainSlider() {
  			$(".default-slider").slick({
  				dots: true,
  				infinite: true,
  				centerMode: true,
  				autoplay: true,
  				autoplaySpeed: 7000,
  				slidesToShow: 1,
  				slidesToScroll: 1,
  				centerPadding: "0",
  				responsive: [
  					{
  						breakpoint: 480,
  						settings: {
  							arrows: false,
  						},
  					},
  				],
  			});
  		}
  
  		/* ~~~ Content Slider ~~~ */
  		function ContentSlider() {
  			$(".text-content-slider").slick({
  				dots: true,
  				infinite: true,
  				centerMode: true,
  				autoplay: true,
  				autoplaySpeed: 7000,
  				fade: true,
  				cssEase: "linear",
  				slidesToShow: 1,
  				slidesToScroll: 1,
  				centerPadding: "0",
  				responsive: [
  					{
  						breakpoint: 480,
  						settings: {
  							arrows: false,
  						},
  					},
  				],
  			});
  		}
  
  		/* ~~~ Testimonials Slider ~~~ */
  		function testimonialSlider() {
  			$(".testimonial").slick({
  				dots: true,
  				infinite: true,
  				centerMode: true,
  				slidesToShow: 3,
  				slidesToScroll: 3,
  				centerPadding: "0",
  				responsive: [
  					{
  						breakpoint: 1024,
  						settings: {
  							slidesToShow: 3,
  							slidesToScroll: 3,
  							infinite: true,
  						},
  					},
  					{
  						breakpoint: 600,
  						settings: {
  							slidesToShow: 2,
  							slidesToScroll: 2,
  						},
  					},
  					{
  						breakpoint: 480,
  						settings: {
  							slidesToShow: 1,
  							slidesToScroll: 1,
  						},
  					},
  				],
  			});
  		}
  
  		/* ~~~ Testimonial Slider 2 ~~~ */
  		function testimonialSliderTwo() {
  			$(".testimonial-style-2").slick({
  				dots: true,
  				infinite: true,
  				centerMode: true,
  				autoplay: true,
  				autoplaySpeed: 7000,
  				slidesToShow: 1,
  				slidesToScroll: 1,
  				centerPadding: "0",
  				responsive: [
  					{
  						breakpoint: 480,
  						settings: {
  							arrows: false,
  						},
  					},
  				],
  			});
  		}
  
  		/* ~~~ Client Slider ~~~ */
  		function clientSlider() {
  			$(".client-slider").slick({
  				slidesToShow: 5,
  				slidesToScroll: 1,
  				autoplay: true,
  				autoplaySpeed: 5000,
  				dots: false,
  				prevArrow: false,
  				nextArrow: false,
  				responsive: [
  					{
  						breakpoint: 1024,
  						settings: {
  							slidesToShow: 3,
  							slidesToScroll: 3,
  							infinite: true,
  						},
  					},
  					{
  						breakpoint: 600,
  						settings: {
  							slidesToShow: 2,
  							slidesToScroll: 2,
  						},
  					},
  					{
  						breakpoint: 480,
  						settings: {
  							slidesToShow: 1,
  							slidesToScroll: 1,
  						},
  					},
  				],
  			});
  		}
  
  		/* ~~~ Team Slider ~~~ */
  		function teamSlider() {
  			$(".team-slider").slick({
  				slidesToShow: 3,
  				slidesToScroll: 1,
  				autoplay: true,
  				autoplaySpeed: 4000,
  				dots: false,
  				prevArrow: false,
  				nextArrow: false,
  				responsive: [
  					{
  						breakpoint: 1024,
  						settings: {
  							slidesToShow: 3,
  							slidesToScroll: 3,
  							infinite: true,
  						},
  					},
  					{
  						breakpoint: 600,
  						settings: {
  							slidesToShow: 2,
  							slidesToScroll: 2,
  						},
  					},
  					{
  						breakpoint: 480,
  						settings: {
  							slidesToShow: 1,
  							slidesToScroll: 1,
  						},
  					},
  				],
  			});
  		}
  
  		/* ===== ONE PAGE SCROLLER ===== */
  
  		$("a.page-scroll").on("click", function (event) {
  			var $anchor = $(this);
  			$("html, body")
  				.stop()
  				.animate(
  					{
  						scrollTop: $($anchor.attr("href")).offset().top - 50,
  					},
  					1000,
  					"easeInOutExpo"
  				);
  			event.preventDefault();
  		});
  
  		$(window).on("scroll", function () {
  			var scrollTop = $(window).scrollTop();
  			if (scrollTop > 34) {
  				$(".nav-scrollspy-onepage").addClass("fixed-menu");
  			} else {
  				$(".nav-scrollspy-onepage").removeClass("fixed-menu");
  			}
  		});
  
  		/* ===== FIT VIDEOS ===== */
  		$(".fit-videos").fitVids();
  
  		/* ===== PARALLAX EFFECTS===== */
  		function parallaxEffect() {
  			$(".parallax-effect").parallax();
  		}
  
  		function parallaxBackground() {
  			$(".parallax-bg").parallaxBackground();
  		}
  
  		/* ~~~ Blog Grid Slider ~~~ */
  		function blogGridSlider() {
  			$(".blog-grid-slider").slick({
  				dots: false,
  				infinite: true,
  				centerMode: true,
  				autoplay: true,
  				autoplaySpeed: 5000,
  				slidesToShow: 1,
  				slidesToScroll: 1,
  				centerPadding: "0",
  			});
  		}
  
  		/* ===== SEARCH OVERLAY ===== */
  
  		var wHeight = window.innerHeight;
  		//search bar middle alignment
  		$("#fullscreen-searchform").css("top", wHeight / 2);
  		//reform search bar
  		jQuery(window).resize(function () {
  			wHeight = window.innerHeight;
  			$("#fullscreen-searchform").css("top", wHeight / 2);
  		});
  		// Search
  		$("#search-button").on("click", function () {
  			$("div.fullscreen-search-overlay").addClass(
  				"fullscreen-search-overlay-show"
  			);
  		});
  		$("a.fullscreen-close").on("click", function () {
  			$("div.fullscreen-search-overlay").removeClass(
  				"fullscreen-search-overlay-show"
  			);
  		});
  
  		/* ===== CONTACT FORM ===== */
  
  		$(function () {
  			$("#contact-form").validator();
  
  			$("#contact-form").on("submit", function (e) {
  				if (!e.isDefaultPrevented()) {
  					var url = "assets/php/contact.php";
  					$.ajax({
  						type: "POST",
  						url: url,
  						data: $(this).serialize(),
  						success: function (data) {
  							var messageAlert = data.class;
  							var messageText = data.message;
  
  							var alertBox =
  								'<div class="' +
  								messageAlert +
  								' alert-dismissable"><button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>' +
  								messageText +
  								"</div>";
  							if (messageAlert && messageText) {
  								$("#contact-form").find(".messages").html(alertBox);
  								$("#contact-form")[0].reset();
  							}
  						},
  					});
  					return false;
  				}
  			});
  		});
  
  		/* ===== REVOLUTION SLIDER LANDING ===== */
  
  		var revapi347,
  			tpj = jQuery;
  
  		tpj(document).ready(function () {
  			if ($("#rev_slider_347_1").revolution == undefined) {
  				revslider_showDoubleJqueryError("#rev_slider_347_1");
  			} else {
  				$("#rev_slider_347_1")
  					.show()
  					.revolution({
  						sliderType: "hero",
  						jsFileLocation: "revolution/js/",
  						sliderLayout: "fullscreen",
  						dottedOverlay: "none",
  						delay: 9000,
  						responsiveLevels: [1240, 1240, 778, 480],
  						visibilityLevels: [1240, 1240, 778, 480],
  						gridwidth: [1240, 1240, 778, 480],
  						gridheight: [868, 868, 960, 720],
  						lazyType: "none",
  						parallax: {
  							type: "scroll",
  							origo: "slidercenter",
  							speed: 1000,
  							speedbg: 0,
  							speedls: 2000,
  							levels: [
  								8,
  								16,
  								24,
  								32,
  								-8,
  								-16,
  								-24,
  								-32,
  								36,
  								2,
  								4,
  								6,
  								50,
  								-30,
  								-20,
  								55,
  							],
  						},
  						shadow: 0,
  						spinner: "",
  						autoHeight: "off",
  						fullScreenAutoWidth: "off",
  						fullScreenAlignForce: "off",
  						fullScreenOffsetContainer: "",
  						fullScreenOffset: "",
  						disableProgressBar: "on",
  						hideThumbsOnMobile: "off",
  						hideSliderAtLimit: 0,
  						hideCaptionAtLimit: 0,
  						hideAllCaptionAtLilmit: 0,
  						debugMode: false,
  						fallbacks: {
  							simplifyAll: "off",
  							disableFocusListener: false,
  						},
  					});
  			}
  
  			/* ===== REVOLUTION SLIDER MAIN ===== */
  
  			if (tpj("#rev_slider_1078_1").revolution == undefined) {
  				revslider_showDoubleJqueryError("#rev_slider_1078_1");
  			} else {
  				$("#rev_slider_1078_1")
  					.show()
  					.revolution({
  						sliderType: "standard",
  						jsFileLocation: "revolution/js/",
  						sliderLayout: "fullscreen",
  						dottedOverlay: "none",
  						delay: 9000,
  						navigation: {
  							keyboardNavigation: "off",
  							keyboard_direction: "horizontal",
  							mouseScrollNavigation: "off",
  							mouseScrollReverse: "default",
  							onHoverStop: "off",
  							touch: {
  								touchenabled: "on",
  								swipe_threshold: 75,
  								swipe_min_touches: 1,
  								swipe_direction: "horizontal",
  								drag_block_vertical: false,
  							},
  							arrows: {
  								style: "hades",
  								enable: true,
  								hide_onmobile: true,
  								hide_under: 600,
  								hide_onleave: true,
  								hide_delay: 200,
  								hide_delay_mobile: 1200,
  								tmp:
  									'<div class="tp-arr-allwrapper"><div class="tp-arr-imgholder"></div></div>',
  								left: {
  									h_align: "left",
  									v_align: "center",
  									h_offset: 30,
  									v_offset: 0,
  								},
  								right: {
  									h_align: "right",
  									v_align: "center",
  									h_offset: 30,
  									v_offset: 0,
  								},
  							},
  							bullets: {
  								enable: true,
  								hide_onmobile: false,
  								hide_under: 600,
  								hide_onleave: true,
  								hide_delay: 200,
  								hide_delay_mobile: 1200,
  								direction: "horizontal",
  								h_align: "center",
  								v_align: "bottom",
  								h_offset: 0,
  								v_offset: 30,
  								space: 15,
  								style: "uranus",
  								tmp: '<span class="tp-bullet-inner"></span>',
  							},
  						},
  						viewPort: {
  							enable: false,
  							outof: "pause",
  							visible_area: "80%",
  							presize: false,
  						},
  						responsiveLevels: [1240, 1024, 778, 480],
  						visibilityLevels: [1240, 1024, 778, 480],
  						gridwidth: [1240, 1024, 778, 480],
  						gridheight: [600, 600, 500, 400],
  						lazyType: "none",
  						parallax: {
  							type: "mouse",
  							origo: "slidercenter",
  							speed: 2000,
  							levels: [
  								2,
  								3,
  								4,
  								5,
  								6,
  								7,
  								12,
  								16,
  								10,
  								50,
  								47,
  								48,
  								49,
  								50,
  								51,
  								55,
  							],
  						},
  						shadow: 0,
  						spinner: "off",
  						stopLoop: "off",
  						stopAfterLoops: -1,
  						stopAtSlide: -1,
  						shuffle: "off",
  						autoHeight: "off",
  						hideThumbsOnMobile: "off",
  						hideSliderAtLimit: 0,
  						hideCaptionAtLimit: 0,
  						hideAllCaptionAtLilmit: 0,
  						debugMode: false,
  						fallbacks: {
  							simplifyAll: "off",
  							nextSlideOnWindowFocus: "off",
  							disableFocusListener: false,
  						},
  					});
  			}
  		});
  
  		/* ===== REVOLUTION SLIDER STUDIO ===== */
  
  		if (tpj("#rev_slider_1174_1").revolution == undefined) {
  			revslider_showDoubleJqueryError("#rev_slider_1174_1");
  		} else {
  			$("#rev_slider_1174_1")
  				.show()
  				.revolution({
  					sliderType: "hero",
  					jsFileLocation: "revolution/js/",
  					sliderLayout: "fullscreen",
  					dottedOverlay: "none",
  					delay: 9000,
  					navigation: {},
  					responsiveLevels: [1240, 1024, 778, 480],
  					visibilityLevels: [1240, 1024, 778, 480],
  					gridwidth: [1240, 1024, 778, 480],
  					gridheight: [868, 768, 960, 720],
  					lazyType: "none",
  					parallax: {
  						type: "scroll",
  						origo: "slidercenter",
  						speed: 400,
  						levels: [
  							10,
  							15,
  							20,
  							25,
  							30,
  							35,
  							40,
  							-10,
  							-15,
  							-20,
  							-25,
  							-30,
  							-35,
  							-40,
  							-45,
  							55,
  						],
  					},
  					shadow: 0,
  					spinner: "off",
  					autoHeight: "off",
  					fullScreenAutoWidth: "off",
  					fullScreenAlignForce: "off",
  					fullScreenOffsetContainer: "",
  					fullScreenOffset: "60px",
  					disableProgressBar: "on",
  					hideThumbsOnMobile: "off",
  					hideSliderAtLimit: 0,
  					hideCaptionAtLimit: 0,
  					hideAllCaptionAtLilmit: 0,
  					debugMode: false,
  					fallbacks: {
  						simplifyAll: "off",
  						disableFocusListener: false,
  					},
  				});
  		}
  
  		/* ===== REVOLUTION SLIDER CREATIVE AGENCY ===== */
  
  		if (tpj("#rev_slider_151_1").revolution == undefined) {
  			revslider_showDoubleJqueryError("#rev_slider_151_1");
  		} else {
  			$("#rev_slider_151_1")
  				.show()
  				.revolution({
  					sliderType: "standard",
  					jsFileLocation: "revolution/js/",
  					sliderLayout: "fullscreen",
  					dottedOverlay: "none",
  					delay: 9000,
  					navigation: {
  						keyboardNavigation: "off",
  						keyboard_direction: "vertical",
  						mouseScrollNavigation: "off",
  						mouseScrollReverse: "default",
  						onHoverStop: "off",
  						touch: {
  							touchenabled: "on",
  							swipe_threshold: 75,
  							swipe_min_touches: 1,
  							swipe_direction: "horizontal",
  							drag_block_vertical: false,
  						},
  						arrows: {
  							style: "uranus",
  							enable: true,
  							hide_onmobile: false,
  							hide_over: 479,
  							hide_onleave: false,
  							tmp: "",
  							left: {
  								h_align: "left",
  								v_align: "center",
  								h_offset: 0,
  								v_offset: 0,
  							},
  							right: {
  								h_align: "right",
  								v_align: "center",
  								h_offset: 0,
  								v_offset: 0,
  							},
  						},
  					},
  					responsiveLevels: [1240, 1024, 778, 480],
  					visibilityLevels: [1240, 1024, 778, 480],
  					gridwidth: [1240, 1024, 778, 480],
  					gridheight: [868, 768, 960, 720],
  					lazyType: "none",
  					scrolleffect: {
  						blur: "on",
  						maxblur: "20",
  						on_slidebg: "on",
  						direction: "top",
  						multiplicator: "2",
  						multiplicator_layers: "2",
  						tilt: "10",
  						disable_on_mobile: "off",
  					},
  					parallax: {
  						type: "scroll",
  						origo: "slidercenter",
  						speed: 400,
  						levels: [
  							5,
  							10,
  							15,
  							20,
  							25,
  							30,
  							35,
  							40,
  							45,
  							46,
  							47,
  							48,
  							49,
  							50,
  							51,
  							55,
  						],
  					},
  					shadow: 0,
  					spinner: "",
  					stopLoop: "off",
  					stopAfterLoops: -1,
  					stopAtSlide: -1,
  					shuffle: "off",
  					autoHeight: "off",
  					fullScreenAutoWidth: "off",
  					fullScreenAlignForce: "off",
  					fullScreenOffsetContainer: "",
  					fullScreenOffset: "60px",
  					hideThumbsOnMobile: "off",
  					hideSliderAtLimit: 0,
  					hideCaptionAtLimit: 0,
  					hideAllCaptionAtLilmit: 0,
  					debugMode: false,
  					fallbacks: {
  						simplifyAll: "off",
  						nextSlideOnWindowFocus: "off",
  						disableFocusListener: false,
  					},
  				});
  		}
  
  		/* ===== REVOLUTION SLIDER CLASSIC ===== */
  
  		if (tpj("#rev_slider_1061_1").revolution == undefined) {
  			revslider_showDoubleJqueryError("#rev_slider_1061_1");
  		} else {
  			$("#rev_slider_1061_1")
  				.show()
  				.revolution({
  					sliderType: "standard",
  					jsFileLocation: "revolution/js/",
  					sliderLayout: "fullscreen",
  					dottedOverlay: "none",
  					delay: 9000,
  					navigation: {
  						keyboardNavigation: "off",
  						keyboard_direction: "horizontal",
  						mouseScrollNavigation: "off",
  						mouseScrollReverse: "default",
  						onHoverStop: "off",
  						touch: {
  							touchenabled: "on",
  							swipe_threshold: 75,
  							swipe_min_touches: 50,
  							swipe_direction: "horizontal",
  							drag_block_vertical: false,
  						},
  						tabs: {
  							style: "metis",
  							enable: true,
  							width: 250,
  							height: 40,
  							min_width: 249,
  							wrapper_padding: 0,
  							wrapper_color: "",
  							wrapper_opacity: "0",
  							tmp:
  								'<div class="tp-tab-wrapper"><div class="tp-tab-number">{{param1}}</div><div class="tp-tab-divider"></div><div class="tp-tab-title-mask"><div class="tp-tab-title">{{title}}</div></div></div>',
  							visibleAmount: 5,
  							hide_onmobile: true,
  							hide_under: 800,
  							hide_onleave: false,
  							hide_delay: 200,
  							direction: "vertical",
  							span: true,
  							position: "inner",
  							space: 0,
  							h_align: "left",
  							v_align: "center",
  							h_offset: 0,
  							v_offset: 0,
  						},
  					},
  					responsiveLevels: [1240, 1024, 778, 480],
  					visibilityLevels: [1240, 1024, 778, 480],
  					gridwidth: [1240, 1024, 778, 480],
  					gridheight: [868, 768, 960, 720],
  					lazyType: "none",
  					parallax: {
  						type: "3D",
  						origo: "slidercenter",
  						speed: 1000,
  						levels: [2, 4, 6, 8, 10, 12, 14, 16, 45, 50, 47, 48, 49, 50, 0, 50],
  						ddd_shadow: "off",
  						ddd_bgfreeze: "on",
  						ddd_overflow: "hidden",
  						ddd_layer_overflow: "visible",
  						ddd_z_correction: 100,
  					},
  					spinner: "off",
  					stopLoop: "on",
  					stopAfterLoops: 0,
  					stopAtSlide: 1,
  					shuffle: "off",
  					autoHeight: "off",
  					fullScreenAutoWidth: "off",
  					fullScreenAlignForce: "off",
  					fullScreenOffsetContainer: "",
  					fullScreenOffset: "60px",
  					disableProgressBar: "on",
  					hideThumbsOnMobile: "off",
  					hideSliderAtLimit: 0,
  					hideCaptionAtLimit: 0,
  					hideAllCaptionAtLilmit: 0,
  					debugMode: false,
  					fallbacks: {
  						simplifyAll: "off",
  						nextSlideOnWindowFocus: "off",
  						disableFocusListener: false,
  					},
  				});
  		}
  
  		/* ===== REVOLUTION SLIDER 3D PARALLAX ===== */
  
  		if (tpj("#rev_slider_1079_1").revolution == undefined) {
  			revslider_showDoubleJqueryError("#rev_slider_1079_1");
  		} else {
  			$("#rev_slider_1079_1")
  				.show()
  				.revolution({
  					sliderType: "standard",
  					jsFileLocation: "revolution/js/",
  					sliderLayout: "fullscreen",
  					dottedOverlay: "none",
  					delay: 9000,
  					navigation: {
  						keyboardNavigation: "off",
  						keyboard_direction: "horizontal",
  						mouseScrollNavigation: "off",
  						mouseScrollReverse: "default",
  						onHoverStop: "off",
  						arrows: {
  							style: "uranus",
  							enable: true,
  							hide_onmobile: false,
  							hide_onleave: false,
  							tmp: "",
  							left: {
  								h_align: "center",
  								v_align: "bottom",
  								h_offset: -30,
  								v_offset: 60,
  							},
  							right: {
  								h_align: "center",
  								v_align: "bottom",
  								h_offset: 30,
  								v_offset: 60,
  							},
  						},
  					},
  					responsiveLevels: [1240, 1024, 778, 480],
  					visibilityLevels: [1240, 1024, 778, 480],
  					gridwidth: [1240, 1024, 778, 480],
  					gridheight: [768, 668, 960, 720],
  					lazyType: "single",
  					parallax: {
  						type: "3D",
  						origo: "slidercenter",
  						speed: 400,
  						levels: [
  							50,
  							10,
  							8,
  							15,
  							20,
  							30,
  							35,
  							40,
  							0,
  							50,
  							47,
  							48,
  							49,
  							50,
  							51,
  							55,
  						],
  						ddd_shadow: "off",
  						ddd_bgfreeze: "off",
  						ddd_overflow: "hidden",
  						ddd_layer_overflow: "visible",
  						ddd_z_correction: 65,
  					},
  					spinner: "off",
  					stopLoop: "on",
  					stopAfterLoops: 0,
  					stopAtSlide: 1,
  					shuffle: "off",
  					autoHeight: "off",
  					fullScreenAutoWidth: "off",
  					fullScreenAlignForce: "off",
  					fullScreenOffsetContainer: "",
  					fullScreenOffset: "60px",
  					disableProgressBar: "on",
  					hideThumbsOnMobile: "off",
  					hideSliderAtLimit: 0,
  					hideCaptionAtLimit: 0,
  					hideAllCaptionAtLilmit: 0,
  					debugMode: false,
  					fallbacks: {
  						simplifyAll: "off",
  						nextSlideOnWindowFocus: "off",
  						disableFocusListener: false,
  					},
  				});
  		}
  
  		/* ===== CBP PORTFOLIO ===== */
  
  		$(window).on("load", function () {
  			var wow = new WOW({
  				offset: 100,
  				mobile: false,
  			});
  			wow.init();
  
  			$(".btn-amazing")
  				.on("mouseenter", function (e) {
  					var parentOffset = $(this).offset(),
  						relX = e.pageX - parentOffset.left,
  						relY = e.pageY - parentOffset.top;
  					$(this).find("span").css({ top: relY, left: relX });
  				})
  				.on("mouseout", function (e) {
  					var parentOffset = $(this).offset(),
  						relX = e.pageX - parentOffset.left,
  						relY = e.pageY - parentOffset.top;
  					$(this).find("span").css({ top: relY, left: relX });
  				});
  
  			$("#portfolio-gallery").cubeportfolio({
  				filters: "#portfolio-gallery-filter",
  				layoutMode: "grid",
  				defaultFilter: "*",
  				animationType: "frontRow",
  				gapHorizontal: 0,
  				gapVertical: 0,
  				gridAdjustment: "",
  				mediaQueries: [
  					{
  						width: 1500,
  						cols: 5,
  					},
  					{
  						width: 1100,
  						cols: 4,
  					},
  					{
  						width: 800,
  						cols: 3,
  					},
  					{
  						width: 480,
  						cols: 2,
  					},
  					{
  						width: 320,
  						cols: 1,
  					},
  				],
  				caption: "overlayBottomAlong",
  				displayType: "bottomToTop",
  				displayTypeSpeed: 300,
  
  				// lightbox
  				lightboxDelegate: ".cbp-lightbox",
  				lightboxGallery: true,
  				lightboxTitleSrc: "data-title",
  				lightboxCounter:
  					'<div class="cbp-popup-lightbox-counter">{{current}} of {{total}}</div>',
  			});
  
  			$("#js-grid-masonry-projects").cubeportfolio({
  				filters: "#js-filters-masonry-projects",
  				layoutMode: "grid",
  				defaultFilter: "*",
  				animationType: "foldLeft",
  				gapHorizontal: 0,
  				gapVertical: 0,
  				gridAdjustment: "",
  				mediaQueries: [
  					{
  						width: 1500,
  						cols: 5,
  					},
  					{
  						width: 1100,
  						cols: 4,
  					},
  					{
  						width: 800,
  						cols: 3,
  					},
  					{
  						width: 480,
  						cols: 2,
  					},
  					{
  						width: 320,
  						cols: 1,
  					},
  				],
  				caption: "zoom",
  				displayType: "fadeIn",
  				displayTypeSpeed: 100,
  
  				// lightbox
  				lightboxDelegate: ".cbp-lightbox",
  				lightboxGallery: true,
  				lightboxTitleSrc: "data-title",
  				lightboxCounter:
  					'<div class="cbp-popup-lightbox-counter">{{current}} of {{total}}</div>',
  			});
  		});
  
  		/* === MAGNIFIC POPUP === */
  
  		$(".magnific-lightbox").magnificPopup({
  			type: "image",
  			mainClass: "mfp-fade",
  			removalDelay: 160,
  			fixedContentPos: false,
  			// other options
  		});
  
  		$(".popup-youtube, .popup-vimeo, .popup-gmaps").magnificPopup({
  			disableOn: 700,
  			type: "iframe",
  			mainClass: "mfp-fade",
  			removalDelay: 160,
  			preloader: false,
  			fixedContentPos: false,
  		});
  	});
  
  	/* ===== BACK TO TOP  ===== */
  
  	$(window).on("scroll", function (e) {
  		if ($(this).scrollTop() >= 50) {
  			$("#return-to-top").fadeIn(200);
  		} else {
  			$("#return-to-top").fadeOut(200);
  		}
  	});
  
  	$("#return-to-top").on("click", function (e) {
  		$("body,html").animate(
  			{
  				scrollTop: 0,
  			},
  			500
  		);
  	});
  
  	/* ===== GOOGLE MAPS  ===== */
  
  	/* ~~~ Default Map ~~~ */
  	if ($("#myMap").length > 0) {
  		var $latitude = 42.008315,
  			$longitude = -88.163807,
  			$map_zoom = 12,
  			$marker_url = "assets/images/pin.png",
  			style = [
  				{
  					featureType: "all",
  					elementType: "geometry.fill",
  					stylers: [{ weight: "2.00" }],
  				},
  				{
  					featureType: "all",
  					elementType: "geometry.stroke",
  					stylers: [{ color: "#9c9c9c" }],
  				},
  				{
  					featureType: "all",
  					elementType: "labels.text",
  					stylers: [{ visibility: "on" }],
  				},
  				{
  					featureType: "landscape",
  					elementType: "all",
  					stylers: [{ color: "#f2f2f2" }],
  				},
  				{
  					featureType: "landscape",
  					elementType: "geometry.fill",
  					stylers: [{ color: "#ffffff" }],
  				},
  				{
  					featureType: "landscape.man_made",
  					elementType: "geometry.fill",
  					stylers: [{ color: "#ffffff" }],
  				},
  				{
  					featureType: "poi",
  					elementType: "all",
  					stylers: [{ visibility: "on" }],
  				},
  				{
  					featureType: "road",
  					elementType: "all",
  					stylers: [{ saturation: -100 }, { lightness: 45 }],
  				},
  				{
  					featureType: "road",
  					elementType: "geometry.fill",
  					stylers: [{ color: "#eeeeee" }],
  				},
  				{
  					featureType: "road",
  					elementType: "labels.text.fill",
  					stylers: [{ color: "#7b7b7b" }],
  				},
  				{
  					featureType: "road",
  					elementType: "labels.text.stroke",
  					stylers: [{ color: "#ffffff" }],
  				},
  				{
  					featureType: "road.highway",
  					elementType: "all",
  					stylers: [{ visibility: "simplified" }],
  				},
  				{
  					featureType: "road.arterial",
  					elementType: "labels.icon",
  					stylers: [{ visibility: "on" }],
  				},
  				{
  					featureType: "transit",
  					elementType: "all",
  					stylers: [{ visibility: "on" }],
  				},
  				{
  					featureType: "water",
  					elementType: "all",
  					stylers: [{ color: "#46bcec" }, { visibility: "on" }],
  				},
  				{
  					featureType: "water",
  					elementType: "geometry.fill",
  					stylers: [{ color: "#c8d7d4" }],
  				},
  				{
  					featureType: "water",
  					elementType: "labels.text.fill",
  					stylers: [{ color: "#070707" }],
  				},
  				{
  					featureType: "water",
  					elementType: "labels.text.stroke",
  					stylers: [{ color: "#ffffff" }],
  				},
  			],
  			map_options = {
  				center: new google.maps.LatLng($latitude, $longitude),
  				zoom: $map_zoom,
  				panControl: !0,
  				zoomControl: !0,
  				mapTypeControl: !0,
  				streetViewControl: !0,
  				mapTypeId: google.maps.MapTypeId.ROADMAP,
  				scrollwheel: !1,
  				styles: style,
  			},
  			map = new google.maps.Map(document.getElementById("myMap"), map_options),
  			marker = new google.maps.Marker({
  				position: new google.maps.LatLng($latitude, $longitude),
  				map: map,
  				visible: !0,
  				icon: $marker_url,
  			}),
  			contentString = '<div id="mapcontent"><p>Grandy Studio</p></div>',
  			infowindow = new google.maps.InfoWindow({
  				maxWidth: 320,
  				content: contentString,
  			});
  		google.maps.event.addListener(marker, "click", function () {
  			infowindow.open(map, marker);
  		});
  	}
  
  	/* ~~~ Dark Style Map ~~~ */
  	if ($("#map-style-2").length > 0) {
  		var $latitude = 42.008315,
  			$longitude = -88.163807,
  			$map_zoom = 12,
  			$marker_url = "assets/images/pin.png",
  			style = [
  				{ elementType: "geometry", stylers: [{ color: "#212121" }] },
  				{ elementType: "labels.icon", stylers: [{ visibility: "off" }] },
  				{ elementType: "labels.text.fill", stylers: [{ color: "#757575" }] },
  				{ elementType: "labels.text.stroke", stylers: [{ color: "#212121" }] },
  				{
  					featureType: "administrative",
  					elementType: "geometry",
  					stylers: [{ color: "#757575" }],
  				},
  				{
  					featureType: "administrative.country",
  					elementType: "labels.text.fill",
  					stylers: [{ color: "#9e9e9e" }],
  				},
  				{
  					featureType: "administrative.land_parcel",
  					stylers: [{ visibility: "off" }],
  				},
  				{
  					featureType: "administrative.locality",
  					elementType: "labels.text.fill",
  					stylers: [{ color: "#bdbdbd" }],
  				},
  				{
  					featureType: "poi",
  					elementType: "labels.text.fill",
  					stylers: [{ color: "#757575" }],
  				},
  				{
  					featureType: "poi.park",
  					elementType: "geometry",
  					stylers: [{ color: "#181818" }],
  				},
  				{
  					featureType: "poi.park",
  					elementType: "labels.text.fill",
  					stylers: [{ color: "#616161" }],
  				},
  				{
  					featureType: "poi.park",
  					elementType: "labels.text.stroke",
  					stylers: [{ color: "#1b1b1b" }],
  				},
  				{
  					featureType: "road",
  					elementType: "geometry.fill",
  					stylers: [{ color: "#2c2c2c" }],
  				},
  				{
  					featureType: "road",
  					elementType: "labels.text.fill",
  					stylers: [{ color: "#8a8a8a" }],
  				},
  				{
  					featureType: "road.arterial",
  					elementType: "geometry",
  					stylers: [{ color: "#373737" }],
  				},
  				{
  					featureType: "road.highway",
  					elementType: "geometry",
  					stylers: [{ color: "#3c3c3c" }],
  				},
  				{
  					featureType: "road.highway.controlled_access",
  					elementType: "geometry",
  					stylers: [{ color: "#4e4e4e" }],
  				},
  				{
  					featureType: "road.local",
  					elementType: "labels.text.fill",
  					stylers: [{ color: "#616161" }],
  				},
  				{
  					featureType: "transit",
  					elementType: "labels.text.fill",
  					stylers: [{ color: "#757575" }],
  				},
  				{
  					featureType: "water",
  					elementType: "geometry",
  					stylers: [{ color: "#000000" }],
  				},
  				{
  					featureType: "water",
  					elementType: "labels.text.fill",
  					stylers: [{ color: "#3d3d3d" }],
  				},
  			],
  			map_options = {
  				center: new google.maps.LatLng($latitude, $longitude),
  				zoom: $map_zoom,
  				panControl: !0,
  				zoomControl: !0,
  				mapTypeControl: !0,
  				streetViewControl: !0,
  				mapTypeId: google.maps.MapTypeId.ROADMAP,
  				scrollwheel: !1,
  				styles: style,
  			},
  			map = new google.maps.Map(
  				document.getElementById("map-style-2"),
  				map_options
  			),
  			marker = new google.maps.Marker({
  				position: new google.maps.LatLng($latitude, $longitude),
  				map: map,
  				visible: !0,
  				icon: $marker_url,
  			}),
  			infowindow = new google.maps.InfoWindow({
  				maxWidth: 320,
  				content: contentString,
  			});
  		google.maps.event.addListener(marker, "click", function () {
  			infowindow.open(map, marker);
  		});
  	}
  
  	/* ~~~ Light Style Map ~~~ */
  	if ($("#map-style-3").length > 0) {
  		var $latitude = 42.008315,
  			$longitude = -88.163807,
  			$map_zoom = 12,
  			$marker_url = "assets/images/pin.png",
  			style = [
  				{ elementType: "geometry", stylers: [{ color: "#f5f5f5" }] },
  				{ elementType: "labels.icon", stylers: [{ visibility: "off" }] },
  				{ elementType: "labels.text.fill", stylers: [{ color: "#616161" }] },
  				{ elementType: "labels.text.stroke", stylers: [{ color: "#f5f5f5" }] },
  				{
  					featureType: "administrative.land_parcel",
  					elementType: "labels.text.fill",
  					stylers: [{ color: "#bdbdbd" }],
  				},
  				{
  					featureType: "poi",
  					elementType: "geometry",
  					stylers: [{ color: "#eeeeee" }],
  				},
  				{
  					featureType: "poi",
  					elementType: "labels.text.fill",
  					stylers: [{ color: "#757575" }],
  				},
  				{
  					featureType: "poi.park",
  					elementType: "geometry",
  					stylers: [{ color: "#e5e5e5" }],
  				},
  				{
  					featureType: "poi.park",
  					elementType: "labels.text.fill",
  					stylers: [{ color: "#9e9e9e" }],
  				},
  				{
  					featureType: "road",
  					elementType: "geometry",
  					stylers: [{ color: "#ffffff" }],
  				},
  				{
  					featureType: "road.arterial",
  					elementType: "labels.text.fill",
  					stylers: [{ color: "#757575" }],
  				},
  				{
  					featureType: "road.highway",
  					elementType: "geometry",
  					stylers: [{ color: "#dadada" }],
  				},
  				{
  					featureType: "road.highway",
  					elementType: "labels.text.fill",
  					stylers: [{ color: "#616161" }],
  				},
  				{
  					featureType: "road.local",
  					elementType: "labels.text.fill",
  					stylers: [{ color: "#9e9e9e" }],
  				},
  				{
  					featureType: "transit.line",
  					elementType: "geometry",
  					stylers: [{ color: "#e5e5e5" }],
  				},
  				{
  					featureType: "transit.station",
  					elementType: "geometry",
  					stylers: [{ color: "#eeeeee" }],
  				},
  				{
  					featureType: "water",
  					elementType: "geometry",
  					stylers: [{ color: "#c9c9c9" }],
  				},
  				{
  					featureType: "water",
  					elementType: "labels.text.fill",
  					stylers: [{ color: "#9e9e9e" }],
  				},
  			],
  			map_options = {
  				center: new google.maps.LatLng($latitude, $longitude),
  				zoom: $map_zoom,
  				panControl: !0,
  				zoomControl: !0,
  				mapTypeControl: !0,
  				streetViewControl: !0,
  				mapTypeId: google.maps.MapTypeId.ROADMAP,
  				scrollwheel: !1,
  				styles: style,
  			},
  			map = new google.maps.Map(
  				document.getElementById("map-style-3"),
  				map_options
  			),
  			marker = new google.maps.Marker({
  				position: new google.maps.LatLng($latitude, $longitude),
  				map: map,
  				visible: !0,
  				icon: $marker_url,
  			}),
  			infowindow = new google.maps.InfoWindow({
  				maxWidth: 320,
  				content: contentString,
  			});
  		google.maps.event.addListener(marker, "click", function () {
  			infowindow.open(map, marker);
  		});
  	}
  });
  
  /*End Jquery*/
  