jQuery(function($){"use strict";jQuery('.menu > ul').superfish({delay:500,animation:{opacity:'show',height:'show'},speed:'fast'});jQuery('.search-box span i').click(function(){jQuery(".serach_outer").toggle();});});function openNav(){document.getElementById("mySidenav").style.width="250px";}
function closeNav(){document.getElementById("mySidenav").style.width="0";}
jQuery(".toggle-accordion").on("click",function(){var accordionId=jQuery(this).attr("accordion-id"),numPanelOpen=jQuery(accordionId+' .collapse.in').length;jQuery(this).toggleClass("active");if(numPanelOpen==0){openAllPanels(accordionId);}else{closeAllPanels(accordionId);}})
openAllPanels=function(aId){console.log("setAllPanelOpen");jQuery(aId+' .panel-collapse:not(".in")').collapse('show');}
closeAllPanels=function(aId){console.log("setAllPanelclose");jQuery(aId+' .panel-collapse.in').collapse('hide');}
jQuery('document').ready(function(){var owl=jQuery('#our_work .owl-carousel');owl.owlCarousel({margin:25,nav:true,autoplay:true,lazyLoad:true,autoplayTimeout:5000,loop:false,navText:['<i class="fa fa-chevron-left" aria-hidden="true"></i>','<i class="fa fa-chevron-right" aria-hidden="true"></i>'],responsive:{0:{items:1},600:{items:2},1000:{items:3}},autoplayHoverPause:true,mouseDrag:true});var owl=jQuery('#our_steps .owl-carousel');owl.owlCarousel({margin:0,nav:true,autoplay:true,lazyLoad:true,autoplayTimeout:3000,loop:false,navText:['<i class="fa fa-chevron-left" aria-hidden="true"></i>','<i class="fa fa-chevron-right" aria-hidden="true"></i>'],responsive:{0:{items:1},600:{items:2},1000:{items:4}},autoplayHoverPause:true,mouseDrag:true});var owl=jQuery('#team .owl-carousel');owl.owlCarousel({margin:0,nav:true,autoplay:true,lazyLoad:true,autoplayTimeout:8000,loop:false,navText:['<i class="fa fa-chevron-left" aria-hidden="true"></i>','<i class="fa fa-chevron-right" aria-hidden="true"></i>'],responsive:{0:{items:1},600:{items:2},1000:{items:4}},autoplayHoverPause:true,mouseDrag:true});var owl=jQuery('#testimonials .owl-carousel');owl.owlCarousel({margin:0,nav:true,autoplay:true,lazyLoad:true,autoplayTimeout:8000,loop:false,navText:['<i class="fa fa-chevron-left" aria-hidden="true"></i>','<i class="fa fa-chevron-right" aria-hidden="true"></i>'],responsive:{0:{items:1},600:{items:1},1000:{items:1}},autoplayHoverPause:true,mouseDrag:true});var owl=jQuery('#our_records .owl-carousel');owl.owlCarousel({margin:0,nav:true,autoplay:true,lazyLoad:true,autoplayTimeout:8000,loop:false,navText:['<i class="fa fa-chevron-left" aria-hidden="true"></i>','<i class="fa fa-chevron-right" aria-hidden="true"></i>'],responsive:{0:{items:1},600:{items:2},1000:{items:4}},autoplayHoverPause:true,mouseDrag:true});var owl=jQuery('#our_partners .owl-carousel');owl.owlCarousel({margin:0,nav:true,autoplay:true,lazyLoad:true,autoplayTimeout:8000,loop:false,navText:['<i class="fa fa-chevron-left" aria-hidden="true"></i>','<i class="fa fa-chevron-right" aria-hidden="true"></i>'],responsive:{0:{items:1},600:{items:2},1000:{items:4}},autoplayHoverPause:true,mouseDrag:true});var owl=jQuery('#latest_post .owl-carousel');owl.owlCarousel({margin:25,nav:true,autoplay:true,lazyLoad:true,autoplayTimeout:5000,loop:false,navText:['<i class="fa fa-chevron-left" aria-hidden="true"></i>','<i class="fa fa-chevron-right" aria-hidden="true"></i>'],responsive:{0:{items:1},600:{items:1},1000:{items:1}},autoplayHoverPause:true,mouseDrag:true});});jQuery(window).scroll(function(){jQuery('.work_inner').each(function(){var imagePos=jQuery(this).offset().top;var topOfWindow=jQuery(window).scrollTop();if(imagePos<topOfWindow+400){jQuery(this).addClass("fadeInRight");}});jQuery('#about .container').each(function(){var imagePos=jQuery(this).offset().top;var topOfWindow=jQuery(window).scrollTop();if(imagePos<topOfWindow+400){jQuery(this).addClass("fadeInLeft");}});});

var interval=null;
function show_loading_box()
{
  jQuery(".vw-loading-box").css("display","none");
  clearInterval(interval);
}
jQuery('document').ready(function(){   

  interval = setInterval(show_loading_box,1000);

  // ------------ Scroll Top ---------------

  jQuery(window).scroll(function() {
    if (jQuery(this).scrollTop() >= 50) {        // If page is scrolled more than 50px
      jQuery('#return-to-top').fadeIn(200);    // Fade in the arrow
    } else {
      jQuery('#return-to-top').fadeOut(200);   // Else fade out the arrow
    }
  });
  jQuery('#return-to-top').click(function() {      // When arrow is clicked
    jQuery('body,html').animate({
      scrollTop : 0                       // Scroll to top of body
    }, 2000);
  });
  
  });
jQuery(document).ready(function(){
 var stickyon=jQuery('#vw-sticky-onoff').text().trim();
  var a1=stickyon.length;
  window.onscroll = function() {
    if(a1==3){
      myScrollNav();
    }
    
  }

  var navbar = document.getElementById("vw-sticky-menu");
  var sticky = navbar.offsetTop;
  function myScrollNav() {
    // alert("Hii");
    if (window.pageYOffset > sticky) {
      //alert(window.pageYOffset);
      navbar.classList.add("sticky");
      navbar.classList.add("stickynavbar");
    } else {
      navbar.classList.remove("sticky");
      navbar.classList.remove("stickynavbar");
    }
  }
});
/* Mobile responsive Menu*/

document.getElementById("open_nav").addEventListener("click", open);
    function open() {
        document.getElementById("sidebar1").style.width = "250px";
        document.getElementById("sidebar1").style.display = "block";
        document.body.style.backgroundColor = "rgba(0,0,0,0.4)";
}
document.getElementById("close_nav").addEventListener("click", close);
    function close() {
         document.getElementById("sidebar1").style.width = "0";
        document.getElementById("sidebar1").style.display = "none";
        document.body.style.backgroundColor = "white";
}