
//SMOOTH PAGE SCROLL
$(function() {
  $('a[href*=#]:not([href=#])').click(function() {
    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;
      }
    }
  });
});


  $("#owl-carousel").owlCarousel({
 
      autoPlay: 3000, //Set AutoPlay to 3 seconds
 
      items : 4,
      pagination: false,
      itemsDesktop : [1199,3],
      itemsDesktopSmall : [979,3],
      //Pagination
      pagination : true,
      paginationNumbers: false,
      lazyLoad : false,
    lazyFollow : true,
    lazyEffect : "fade",
    responsive: true,
    responsiveRefreshRate : 200,
    responsiveBaseWidth: window
 
  });

  $("#owl-slider").owlCarousel({
      navigation : false,
      pagination : false, 
      navigation : true, // Show next and prev buttons
      slideSpeed : 300,
      paginationSpeed : 400,
      singleItem:true,
      
      // "singleItem:true" is a shortcut for:
      // items : 1, 
      // itemsDesktop : false,
      // itemsDesktopSmall : false,
      // itemsTablet: false,
      // itemsMobile : false


  });

    $("#owl-quotes").owlCarousel({
 
      autoPlay: 4000, //Set AutoPlay to 3 seconds
 
      items : 1,
      pagination: false,
      itemsDesktop : [1199,3],
      itemsDesktopSmall : [979,3],
      //Pagination
      pagination : true,
      paginationNumbers: false,
      lazyLoad : false,
      lazyFollow : true,
      lazyEffect : "fade",
      responsive: true,
      responsiveRefreshRate : 200,
      responsiveBaseWidth: window
 
  });





$(document).ready(

  function() { 

    $("html").niceScroll({
    	cursorcolor:"#000",
    	scrollspeed :"30",
    	cursorborder:"1px solid #000",
    	horizrailenabled: "false",
    	cursorborderradius: "0px"
    });
    
    // portfolio filtering

    $(".project-wrapper").mixItUp();

});

new WOW().init();

    
/*Preloader*/
//<![CDATA[
$(window).load(function() { // makes sure the whole site is loaded
  $('#status').fadeOut(); // will first fade out the loading animation
  $('#preloader').delay(350).fadeOut('slow'); // will fade out the white DIV that covers the website.
  $('body').delay(350).css({'overflow':'visible'});
})
//]]>


