(function ($) {
	"use strict";

    jQuery(document).ready(function($){

		$(".menuIcon").click(function(){
			$(".clickMenu").toggleClass("showMenu")
		})


		$("#wrapper").click( function() {
			$(".icon").toggleClass("close");
		});
	

		$(".searchIcon").click(function(){
			$(".searchBar").addClass("showSearch")
		})

		$(".remove").click(function(){
			$(".searchBar").removeClass("showSearch")
		})


       
 /*---------- menu js start---------*/  
     $('.stellarnav').stellarNav({
				theme: 'dark',
				breakpoint: 660,
				position: 'left',
				phoneBtn: false,
				locationBtn: false,
				sticky:false,
				showArrows:true,
				openingSpeed: 500,
				closingDelay: 500,
               
         });
        
        window.onscroll = function() {myFunction()};

			var header = document.getElementById("myHeader");
			var sticky = header.offsetTop;

			function myFunction() {
			  if (window.pageYOffset > sticky) {
			    header.classList.add("sticky");
			  } else {
			    header.classList.remove("sticky");
			  }
			}
        
/*---------- menu js End---------*/  

$(".sec-tow-list").owlCarousel({
	loop:false,
	dots:false,
	nav:true,
	margin:15,
	autoplay:true,
	autoHeight: true,
	smartSpeed: 1000,
	autoplayTimeout:5000,
	navText:["<i Class='las la-angle-left'></i>", 
			  "<i Class='las la-angle-right'></i>"],
	responsiveClass: true,
	responsive: {
	  0: {
		items: 1,
	  },
	  480: {
		items: 2,
	  },
	  768: {
		items: 3,
	  },
	  1000: {
		items:3,
	  }
	}

});	
		

$(".themesBazaphoto5").owlCarousel({
	loop:false,
	dots:true,
	nav:false,
	margin:10,
	autoplay:true,
	smartSpeed: 1000,
	autoplayTimeout:5000,
	navText:["<i Class='fas fa-angle-left'></i>", 
			  "<i Class='fas fa-angle-right'></i>"],
	responsiveClass: true,
	responsive: {
	  0: {
		items: 3,
	  },
	  480: {
		items: 4,
	  },
	  768: {
		items: 5,
	  },
	  1000: {
		items:5,
	  }
	}

});	
		





  $('.popup').magnificPopup({
		type: 'iframe'
	});


       $("img.lazyload").lazyload();
        
       $( "#wordpress" ).datepicker();		
     
    
    
	   $('.video-popup').magnificPopup({
		type: 'iframe'
	  });
  

	  $('.themesbazar').magnificPopup({
		type: 'image',
	  mainClass: 'mfp-with-zoom', 
	  gallery:{
				enabled:true
			},
	
	  zoom: {
		enabled: true, 
	
		duration: 500, // duration of the effect, in milliseconds
		easing: 'ease-in-out', // CSS transition easing function
	
		opener: function(openerElement) {
	
		  return openerElement.is('img') ? openerElement : openerElement.find('img');
	  }
	}
	
	});


	  // Modal js start *******
			  $('.modal-live').magnificPopup({
				type:'inline',
				closeBtnInside:true,
				autoFocusLast: true,
				focus:".modal-titles",
			  });
					

		
        $(window).scroll(function(){
		        if ($(this).scrollTop() > 100) {
		            $('.scrollToTop').fadeIn();
		        } else {
		            $('.scrollToTop').fadeOut();
		        }
		    });

		    //Click event to scroll to top
		    $('.scrollToTop').on('click', function(){
		        $('html, body').animate({scrollTop : 0},800);
		        return false;
		    });
        
//        

    });




}(jQuery));	