//  ====================================================================
//	Theme Name: Spando - Multi-purpose Bootstrap Template
//	Theme URI: http://themeforest.net/user/responsiveexperts
//	Description: This javascript file is using as a settings file. This file includes the sub scripts for the javascripts used in this template.
//	Version: 1.0
//	Author: Responsive Experts
//	Author URI: http://themeforest.net/user/responsiveexperts
//	Tags:
//  ====================================================================

//	TABLE OF CONTENTS
//	---------------------------
//	 01. Preloader
//   02. Flexslider
//	 03. Menu Toggle
//   04. pop up
//	 05. Scroll To Top
//   06. Adding fixed position to header

//  ====================================================================

(function() {
	"use strict";
	
	// -------------------- 01. Preloader ---------------------
	// --------------------------------------------------------
	$(window).load(function() {
		$("#loader").fadeOut();
		$("#mask").delay(1000).fadeOut("slow");
	// ------------------- 02. Flexslider ------------------
	// --------------------------------------------------------
		$('#banner-slider').flexslider({
		animation: "fade",
		controlNav: true,
		slideshowSpeed:5000,
		animationSpeed:1000,
		directionNav: true
		});
		$('#testimonial-slider').flexslider({
		animation: "slide",
		controlNav: true,
		slideshowSpeed:6000,
		animationSpeed:2000,
		directionNav: true
		});
	});
	// -------------------- 03. Menu Toggle -------------------
	// --------------------------------------------------------
	$( ".togg-navi" ).on("click",function() {
		$( ".main-nav" ).toggle();
	});
	// -------------------- 04. pop up --------------------
	// --------------------------------------------------------
	$(document).ready(function() {
	$('.blue-solid').magnificPopup({
	  delegate: '.srch',
	  type: 'image',
	  tLoading: 'Loading image',
	  mainClass: 'mfp-img-mobile',
	  gallery: {
		enabled: true,
		navigateByImgClick: true,
		preload: [0,1] // Will preload 0 - before current, and 1 after the current image
	  },
	  image: {
		tError: '<a href="%url%">The image #%curr%</a> could not be loaded.',
		titleSrc: function(item) {
		 // return item.el.attr('title') + '<small>by Marsel Van Oosten</small>';
		}
	  }
	});
  });
	// ------------------- 05. Scroll To Top ------------------
	// --------------------------------------------------------
	$(function() {
		$(document).on("scroll", onScroll);
		$('a[href*=#]:not([href=#])').on("click",function() {
			$('.menu-main li').removeClass('active');
			$(this).parent().addClass('active');
			if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') || location.hostname == this.hostname) {
	
				var target = $(this.hash);
				target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
				if (target.length) {
					$('html,body').animate({
						scrollTop: target.offset().top
					}, 1000);
					return false;
				}
			}
			
		});
	});
	function onScroll(event){
		var scrollPos = $(document).scrollTop();
	// --------- 06. Adding fixed position to header ---------- 
	// --------------------------------------------------------
		if (scrollPos >= 1) {
		  $('.header-area').addClass('navbar-fixed-top');
		} else {
		  $('.header-area').removeClass('navbar-fixed-top');
		}
		$('.menu-main li a[href*=#]:not([href=#])').each(function () {
			var currLink = $(this);
			var refElement = $(currLink.attr("href"));
			if (refElement.position().top <= scrollPos && refElement.position().top + refElement.height() > scrollPos) {
				$('.menu-main li').removeClass("active");
				currLink.parent().addClass("active");
			}
			else{
				currLink.parent().removeClass("active");
			}
		});
	}
})(jQuery);



	
@@ -1,526 +1,4 @@
-//  ====================================================================%0A//%09Theme Name: Spando - Multi-purpose Bootstrap Template%0A//%09Theme URI: http://themeforest.net/user/responsiveexperts%0A//%09Description: This javascript file is using as a settings file. This file includes the sub scripts for the javascripts used in this template.%0A//%09Version: 1.0%0A//%09Author: Responsive Experts%0A//%09Author URI: http://themeforest.net/user/responsiveexperts%0A//%09Tags:%0A//  ====================================================================
 %0A%0A//
@@ -3246,8 +3246,9 @@
 y);%0A%0A%0A%0A%09
+%0A

Update settings.js