text: 
  // preloader
  $(window).load(function(){
      $('.preloader').fadeOut(1000); // set duration in brackets    
  });
  
  $(document).ready(function() {
  
  	/* Hide mobile menu after clicking on a link
      -----------------------------------------------*/
      $('.navbar-collapse a').click(function(){
          $(".navbar-collapse").collapse('hide');
      });
  
      // jQuery to collapse the navbar on scroll //
  	$(window).scroll(function() {
  	    if ($(".navbar").offset().top > 50) {
  	        $(".navbar-fixed-top").addClass("top-nav-collapse");
  	    } else {
  	        $(".navbar-fixed-top").removeClass("top-nav-collapse");
  	    }
  	});
  	
  	/* FlexSlider
  	-----------------------------*/ 
    	$('.flexslider').flexslider({
        animation: "fade",
        directionNav: false,
    	});
  
    	/* isotope
    	------------------------------*/
    	if ( $('.iso-box-wrapper').length > 0 ) { 
  
  	    var $container 	= $('.iso-box-wrapper'), 
  	    	$imgs 		= $('.iso-box img');
  
  	    $container.imagesLoaded(function () {
  
  	    	$container.isotope({
  				layoutMode: 'fitRows',
  				itemSelector: '.iso-box'
  	    	});
  
  	    	$imgs.load(function(){
  	    		$container.isotope('reLayout');
  	    	})
  
  	    });
  
  	    //filter items on button click
  	    $('.filter-wrapper li a').click(function(){
  
  	        var $this = $(this), filterValue = $this.attr('data-filter');
  
  			$container.isotope({ 
  				filter: filterValue,
  				animationOptions: { 
  				    duration: 750, 
  				    easing: 'linear', 
  				    queue: false, 
  				}              	 
  			});	            
  
  			// don't proceed if already selected 
  			if ( $this.hasClass('selected') ) { 
  				return false; 
  			}
  
  			var filter_wrapper = $this.closest('.filter-wrapper');
  			filter_wrapper.find('.selected').removeClass('selected');
  			$this.addClass('selected');
  
  	      return false;
  	    }); 
  	}
  
  	/* wow
  	-------------------------------*/
  	new WOW().init();
  });
  