text: ;(function($) {
  	"use strict";
  	var nav_offset_top = $('header').height() + 100;
  	function navbarFixed() {
  		if ($('.header_menu_area, .mobile_menu').length) {
  			$(window).scroll(function() {
  				var scroll = $(window).scrollTop();
  				if (scroll >= nav_offset_top) {
  					$(".header_menu_area, .mobile_menu").addClass("navbar_fixed");
  				} else {
  					$(".header_menu_area, .mobile_menu").removeClass("navbar_fixed");
  				}
  			});
  		}
  		;
  	}
  	;navbarFixed();
  	$('.menu-list li a').each(function() {
  		var $this = $(this);
  		$this.on('click', function(e) {
  			var has = $this.hasClass('open');
  			$('.menu-list li a','.menu-list li div').removeClass('open');
  			if (has) {
  				$this.removeClass('open');
  			} else {
  				$this.addClass('open');
  			}
  		});
  	});
  	if ($('.js-form').length) {
  		$('.js-form').each(function() {
  			$(this).validate({
  				errorClass: 'error wobble-error',
  				submitHandler: function(form) {
  					$.ajax({
  						type: "POST",
  						url: "mail.php",
  						data: $(form).serialize(),
  						success: function() {
  							$('.success-message').show();
  						},
  						error: function() {
  							$('.error-message').show();
  						}
  					});
  				}
  			});
  		});
  	}
  	$(".animsition").animsition({
  		inClass: 'fade-in',
  		outClass: 'fade-out',
  		inDuration: 1000,
  		outDuration: 700,
  		linkElement: '.nav.navbar-nav li a, .menu-list li a',
  		loading: true,
  		loadingParentElement: 'body',
  		loadingClass: 'spinner',
  		loadingInner: '<div class="double-bounce1"></div><div class="double-bounce2"></div>',
  		timeout: false,
  		timeoutCountdown: 4000,
  		onLoadEvent: true,
  		browser: ['animation-duration', '-webkit-animation-duration'],
  		overlay: false,
  		overlayClass: 'animsition-overlay-slide',
  		overlayParentElement: 'body',
  		transition: function(url) {
  			window.location.href = url;
  		}
  	});
  	function photography_slider() {
  		if ($('#home_full_slider').length) {
  			$("#home_full_slider").revolution({
  				sliderType: "standard",
  				sliderLayout: "fullscreen",
  				dottedOverlay: "none",
  				delay: 7000,
  				autoHeight: 'on',
  				minHeight: 480,
  				navigation: {
  					keyboardNavigation: "off",
  					keyboard_direction: "horizontal",
  					onHoverStop: "off",
  					mouseScrollNavigation: "off",
  					mouseScrollReverse: "default",
  					touch: {
  						touchenabled: "on",
  						swipe_threshold: 75,
  						swipe_min_touches: 1,
  						swipe_direction: "horizontal",
  						drag_block_vertical: false
  					},
  					bullets: {
  						enable: true,
  						hide_onmobile: true,
  						direction: "vertical",
  						h_align: "left",
  						v_align: "center",
  						h_offset: 80,
  						v_offset: 0,
  						space: 27
  					}
  				},
  				responsiveLevels: [1920, 1199, 991, 768, 480],
  				visibilityLevels: [1920, 960, 991, 768, 480],
  				gridwidth: [1170, 1024, 991, 768, 480],
  				gridheight: [950, 768, 600, 600, 480],
  				lazyType: "none",
  				shadow: 0,
  				spinner: "off",
  				stopLoop: "on",
  				stopAfterLoops: 0,
  				stopAtSlide: 1,
  				shuffle: "off",
  				autoHeight: "off",
  				fullScreenAutoWidth: "off",
  				fullScreenAlignForce: "off",
  				fullScreenOffsetContainer: "",
  				fullScreenOffset: "",
  				disableProgressBar: "on",
  				hideThumbsOnMobile: "off",
  				hideSliderAtLimit: 0,
  				hideCaptionAtLimit: 0,
  				hideAllCaptionAtLilmit: 0,
  				debugMode: false,
  				fallbacks: {
  					simplifyAll: "off",
  					nextSlideOnWindowFocus: "off",
  					disableFocusListener: false,
  				},
  				parallax: {
  					type: "mouse",
  					origo: "slidercenter",
  					speed: 2000,
  					levels: [2, 3, 4, 5, 6, 7, 12, 16, 10, 50],
  				},
  			})
  		}
  	}
  	photography_slider();
  	function full_page_slider() {
  		if ($('#full_page_slider').length) {
  			$("#full_page_slider").revolution({
  				sliderType: "standard",
  				sliderLayout: 'fullscreen',
  				dottedOverlay: "none",
  				delay: 7000,
  				autoHeight: 'off',
  				minHeight: 480,
  				navigation: {
  					keyboardNavigation: "off",
  					keyboard_direction: "horizontal",
  					onHoverStop: "off",
  					mouseScrollNavigation: "off",
  					mouseScrollReverse: "default",
  					touch: {
  						touchenabled: "on",
  						swipe_threshold: 75,
  						swipe_min_touches: 1,
  						swipe_direction: "horizontal",
  						drag_block_vertical: false
  					},
  					bullets: {
  						enable: false,
  						hide_onmobile: true,
  						direction: "vertical",
  						h_align: "left",
  						v_align: "center",
  						h_offset: 80,
  						v_offset: 0,
  						space: 27
  					},
  				},
  				responsiveLevels: [1920, 1199, 991, 768, 480],
  				visibilityLevels: [1920, 960, 991, 768, 480],
  				gridwidth: [1220, 1024, 991, 768, 480],
  				gridheight: [903, 800, 600, 700, 480],
  				lazyType: "none",
  				shadow: 0,
  				spinner: "off",
  				stopLoop: "on",
  				stopAfterLoops: 0,
  				stopAtSlide: 1,
  				shuffle: "off",
  				autoHeight: "off",
  				fullScreenAutoWidth: "off",
  				fullScreenAlignForce: "off",
  				fullScreenOffsetContainer: "",
  				fullScreenOffset: "80",
  				disableProgressBar: "on",
  				hideThumbsOnMobile: "off",
  				hideSliderAtLimit: 0,
  				hideCaptionAtLimit: 0,
  				hideAllCaptionAtLilmit: 0,
  				debugMode: false,
  				fallbacks: {
  					simplifyAll: "off",
  					nextSlideOnWindowFocus: "off",
  					disableFocusListener: false,
  				},
  			})
  		}
  	}
  	full_page_slider();
  	$(document).ready(function() {
  		$('.popup-with-move-anim').magnificPopup({
  			type: 'inline',
  			fixedContentPos: false,
  			fixedBgPos: true,
  			overflowY: 'auto',
  			closeBtnInside: true,
  			preloader: false,
  			midClick: true,
  			removalDelay: 300,
  			mainClass: 'my-mfp-slide-bottom'
  		});
  	});
  	function fillter_slider() {
  		if ($('.fillter_slider').length) {
  			$('.fillter_slider').owlCarousel({
  				rtl:true,
  				loop: true,
  				margin: 6,
  				items: 4,
  				nav: true,
  				autoplay:true,
  				autoplayHoverPause: true,
  				smartSpeed: 1500,
  				dots: true,
  				navContainer: '.fillter_slider',
  				navText: ['<i class="ion-ios-arrow-left" style="color:#d6d7dd;"></i>', '<i class="ion-ios-arrow-right" style="color:#d6d7dd;"></i>'],
  				responsiveClass: true,
  				responsive: {
  					0: {
  						items: 1,
  					},
  					575: {
  						items: 2,
  					},
  					800: {
  						items: 3,
  					},
  					1200: {
  						items: 4,
  					}
  				}
  			})
  		}
  	}
  	fillter_slider();
  	function testimonials_slider() {
  		if ($('.testimonials_slider').length) {
  			$('.testimonials_slider').owlCarousel({
  				rtl:true,
  				loop: true,
  				margin: 30,
  				items: 2,
  				nav: true,
  				autoplay: true,
  				smartSpeed: 1500,
  				dots: true,
  				navContainerClass: 'testimonials_slider',
  				navText: ['<i class="ion-ios-arrow-right"></i>', '<i class="ion-ios-arrow-left"></i>'],
  				responsiveClass: true,
  				responsive: {
  					0: {
  						items: 1,
  						navText: ['<i class="ion-ios-arrow-left"></i>', '<i class="ion-ios-arrow-right"></i>']
  					},
  					768: {
  						items: 2,
  						navText: ['<i class="ion-ios-arrow-right"></i>', '<i class="ion-ios-arrow-left"></i>']
  					},
  
  				}
  			})
  		}
  	}
  	testimonials_slider();
  	function team_slider() {
  		if ($('.team_slider').length) {
  			$('.team_slider').owlCarousel({
  				rtl:true,
  				loop: true,
  				margin: 30,
  				items: 4,
  				nav: true,
  				autoplay: true,
  				smartSpeed: 1500,
  				dots: true,
  				navContainerClass: 'team_slider',
  				navText: ['<i class="ion-ios-arrow-right"></i>','<i class="ion-ios-arrow-left"></i>'],
  				responsiveClass: true,
  				responsive: {
  					0: {
  						items: 1,
  					},
  					400: {
  						items: 2,
  					},
  					768: {
  						items: 3,
  					},
  					992: {
  						items: 4,
  					}
  				}
  			})
  		}
  	}
  	team_slider();
  	function spec_slider() {
  		if ($('.spec-slider').length) {
  			$('.spec-slider').owlCarousel({
  				loop: true,
  				rt:true,
  				margin: 30,
  				items: 2,
  				nav: true,
  				mouseDrag: false,
  				touchDrag: false,
  				autoplay: true,
  				smartSpeed: 1500,
  				dots: true,
  				navContainerClass: 'row',
  				navText: ['<i class="ion-ios-arrow-left"></i>', '<i class="ion-ios-arrow-right"></i>'],
  				responsiveClass: true,
  				responsive: {
  					0: {
  						items: 1,
  						autoHeight: true,
  						mouseDrag: false,
  						touchDrag: false
  					},
  					400: {
  						items: 2,
  						autoHeight: true,
  						mouseDrag: false,
  						touchDrag: false
  					},
  					768: {
  						items: 3,
  						autoHeight: true,
  						mouseDrag: false,
  						touchDrag: false
  					},
  					992: {
  						items: 2,
  						autoHeight: true,
  						mouseDrag: false,
  						touchDrag: false
  					}
  				}
  			})
  		}
  	}
  	spec_slider();
  	function villa_slider() {
  		if ($('.villa_slider').length) {
  			$('.villa_slider').owlCarousel({
  				loop: true,
  				margin: 0,
  				items: 1,
  				nav: true,
  				autoplay: true,
  				smartSpeed: 1500,
  				dots: true,
  				navContainer: '.villa_slider',
  				navText: ['<i class="ion-ios-arrow-left"></i>', '<i class="ion-ios-arrow-right"></i>'],
  				responsiveClass: true,
  			})
  		}
  	}
  	villa_slider();
  	function single_slider() {
  		if ($('.blog_g_slider').length) {
  			$('.blog_g_slider').owlCarousel({
  				loop: true,
  				margin: 0,
  				items: 1,
  				nav: true,
  				autoplay: true,
  				smartSpeed: 1500,
  				dots: true,
  				navContainer: '.blog_g_slider',
  				navText: ['<i class="ion-ios-arrow-left"></i>', '<i class="ion-ios-arrow-right"></i>'],
  				responsiveClass: true,
  			})
  		}
  	}
  	single_slider();
  	function clients_slider() {
  		if ($('.clients_slider').length) {
  			$('.clients_slider').owlCarousel({
  				rtl:true,
  				loop: true,
  				margin: 30,
  				items: 5,
  				nav: false,
  				autoplay: true,
  				smartSpeed: 2000,
  				dots: true,
  				responsiveClass: true,
  				responsive: {
  					0: {
  						items: 1,
  					},
  					400: {
  						items: 2,
  					},
  					575: {
  						items: 3,
  					},
  					768: {
  						items: 4,
  					},
  					1199: {
  						items: 5,
  					}
  				}
  			})
  		}
  	}
  	clients_slider();
  	$('.portfolio_filter li').on('click', function() {
  		$('.portfolio_filter .active').removeClass('active');
  		$(this).closest('li').addClass('active');
  		var selector = $(this).attr('data-filter');
  		$('.fillter_slider').fadeOut(300);
  		$('.fillter_slider').fadeIn(300);
  		setTimeout(function() {
  			$('.fillter_slider .owl-item').hide();
  			$(selector).closest('.fillter_slider .owl-item').show();
  		}, 300);
  		return false;
  	});
  	if ($('.pagepiling').length > 0) {
  		$('.pagepiling').pagepiling({
  			scrollingSpeed: 280,
  			loopBottom: true,
  			navigation: {
  				'position': 'right_position',
  			},
  			afterLoad: function(anchorLink, index) {
  				if (index == 2 || index == 4 || index == 6) {
  					$('.full_header, .full_footer').removeClass('content-white');
  					$('#pp-nav').removeClass('white');
  				} else {
  					$('.full_header, .full_footer').addClass('content-white');
  					$('#pp-nav').addClass('white');
  				}
  			}
  		});
  		$('.pp-scrollable').on('scroll', function() {
  			var scrollTop = $(this).scrollTop();
  			if (scrollTop > 0) {
  				$('.full_header').removeClass('content-white');
  			} else {
  				$('.full_header').addClass('content-white');
  			}
  		});
  		$('#pp-nav').addClass('white');
  		$('.pp-nav-up').on('click', function() {
  			$.fn.pagepiling.moveSectionUp();
  		});
  		$('.pp-nav-down').on('click', function() {
  			$.fn.pagepiling.moveSectionDown();
  		});
  	}
  	;function latest_project() {
  		if ($('.our_projects_area, .project_full_inner').length) {
  			$(".projects_inner, .project_full_inner").imagesLoaded(function() {
  				$(".projects_inner, .project_full_inner").isotope({
  					layoutMode: 'masonry',
  					animationOptions: {
  						duration: 750,
  						easing: 'linear'
  					},
  
  				});
  			});
  			$(".blog_inner_fillter").imagesLoaded(function() {
  				$(".blog_inner_fillter").isotope({
  					layoutMode: 'fitRows',
  					animationOptions: {
  						duration: 750,
  						easing: 'linear'
  					}
  				});
  			});
  			$(".isotope_fillter li").on('click', function() {
  				$(".isotope_fillter li").removeClass("active");
  				$(this).addClass("active");
  				var selector = $(this).attr("data-filter");
  				$(".projects_inner, .project_full_inner").isotope({
  					filter: selector,
  					animationOptions: {
  						duration: 450,
  						easing: "linear",
  						queue: false,
  					}
  				});
  				return false;
  			});
  		}
  	}
  	latest_project();
  	$(".ms_project_inner").imagesLoaded(function() {
  		$(".ms_project_inner").isotope({
  			layoutMode: 'masonry',
  			itemSelector: '.ms_p_item',
  			percentPosition: true,
  			masonry: {
  				columnWidth: '.gird_sizer',
  			}
  		});
  	});
  	$('.navbar-toggle').on('click', function() {
  		$('body').removeClass('menu-is-closed').addClass('menu-is-opened');
  	});
  	$('.close-menu, .click-capture').on('click', function() {
  		$('body').removeClass('menu-is-opened').addClass('menu-is-closed');
  		$('.menu-list ul').slideUp(300);
  	});
  	var dropToggle = $('.menu-list > li').has('ul').children('a');
  	dropToggle.on('click', function() {
  		dropToggle.not(this).closest('li').find('ul').slideUp(200);
  		$(this).closest('li').children('ul').slideToggle(200);
  		return false;
  	});
  	$('.bar_menu').on('click', function() {
  		$('body').removeClass('menu-is-closed').addClass('menu-is-opened');
  	});
  	$('#pp-nav').remove().appendTo('.animsition').prepend('<div class="pp-nav-up icon-chevron-up"></div>').append('<div class="pp-nav-down icon-chevron-down"></div>').addClass('white right-boxed hidden-xs');
  	// Inline popups
  	$('#inline-popups1').magnificPopup({
  		delegate: 'a',
    removalDelay: 500, //delay removal by X to allow out-animation
    callbacks: {
    	beforeOpen: function() {
    		this.st.mainClass = this.st.el.attr('data-effect');
    	}
    },
    midClick: true // allow opening popup on middle mouse click. Always set it to true if you don't provide alternative source.
  });
  }
  
  )(jQuery)
  