$window=jQuery(window);jQuery(document).ready(function(){var windowHeight=$window.height();var windowWidth=$window.width();function resize_load(){var windowHeight=$window.height();var windowWidth=$window.width();var form=jQuery('.form-wrap').height();var mainContent=jQuery('.main-content').height();var fmTotal=(form-mainContent)/2;jQuery('.main-content').css({paddingTop:fmTotal,paddingBottom:fmTotal});jQuery('.content-box').each(function(){var contentBoxWrap=jQuery(this).find('.content-box-wrap').height();jQuery(this).find('.content-box-image').height(contentBoxWrap);});}resize_load();$window.resize(function(){resize_load();});jQuery('.menu-item-has-children').each(function(){jQuery(this).prepend('<i class="fa fa-chevron-down toggle-down" /><i class="fa fa-chevron-up toggle-down" />');});jQuery('.toggle-down').click(function(){jQuery(this).parent().toggleClass('active');jQuery(this).parent().find('ul.sub-menu:first').slideToggle(200);});jQuery('.main-nav .navbar-toggle').click(function(){jQuery('#cp-header').toggleClass('active-nav');});jQuery(function(){jQuery('a.scroll[href*=#]:not([href=#])').click(function(){if(location.pathname.replace(/^\//,'')==this.pathname.replace(/^\//,'')&&location.hostname==this.hostname){var target=jQuery(this.hash);target=target.length?target:jQuery('[name='+this.hash.slice(1)+']');if(target.length){jQuery('html,body').animate({scrollTop:target.offset().top},1000);return false;}}});});var offset=0;jQuery(window).scroll(function(){if(jQuery(window).scrollTop()>offset){jQuery('#cp-header').addClass('active');}else{jQuery('#cp-header').removeClass('active');}});var offsetbacktotop=500;jQuery('.backtotop').css({right:'-50px'});jQuery(window).scroll(function(){if(jQuery(window).scrollTop()>offsetbacktotop){jQuery('.backtotop').css({right:'0'});}else{jQuery('.backtotop').css({right:'-50px'});}});});jQuery(window).load(function(){var footerLogo=jQuery('.footer-logo').height();jQuery('.copyright-section').height(footerLogo);new WOW().init();});(function($){"use strict";$(window).load(function(){var $grid=$(".gallery-grid");$grid.imagesLoaded(function(){$grid.isotope({itemSelector:'.gallery-grid-item',layoutMode:'masonry'});$grid.isotope();});});})(jQuery);