var $portfolio;var $masonry_block;var $portfolio_selectors;var $portfolio_selectors_li;var $blog;var hashfilter;$(document).ready(function(){animatecounters();$('.timer').appear();$(document.body).on('appear','.timer',function(e){if(!$(this).hasClass('appear')){animatecounters();$(this).addClass('appear');}});jQuery('.inner-top').smoothScroll({speed:900,offset:-68});SetResizeHeaderMenu();var isMobile=false;var isiPhoneiPad=false;if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){isMobile=true;} if(/iPhone|iPad|iPod/i.test(navigator.userAgent)){isiPhoneiPad=true;} if(!isMobile){jQuery(".top-cart a.shopping-cart, .cart-content").hover(function(){jQuery(".cart-content").css('opacity','1');jQuery(".cart-content").css('visibility','visible');},function(){jQuery(".cart-content").css('opacity','0');jQuery(".cart-content").css('visibility','hidden');});} if(isiPhoneiPad){jQuery(".video-wrapper").css('display','none');} jQuery(".top-cart a.shopping-cart").click(function(){if($('.cart-content').css('visibility')=='visible'){jQuery(".cart-content").css('opacity','0');jQuery(".cart-content").css('visibility','hidden');} else{jQuery(".cart-content").css('opacity','1');jQuery(".cart-content").css('visibility','visible');}});if($(window).scrollTop()>10){$('nav').addClass('shrink-nav');}else{$('nav').removeClass('shrink-nav');} if(Modernizr.touch){$(".close-overlay").removeClass("hidden");$(".porfilio-item").click(function(e){if(!$(this).hasClass("hover")){$(this).addClass("hover");}});$(".close-overlay").click(function(e){e.preventDefault();e.stopPropagation();if($(this).closest(".porfilio-item").hasClass("hover")){$(this).closest(".porfilio-item").removeClass("hover");}});}else{$(".porfilio-item").mouseenter(function(){$(this).addClass("hover");}).mouseleave(function(){$(this).removeClass("hover");});} $portfolio=$('.masonry-items');$portfolio_selectors=$('.portfolio-filter > li > a');$portfolio_selectors_li=$('.portfolio-filter li');hashfilter="*";if(location.hash!=""){var temphashfilter="."+location.hash.substr(1);if(temphashfilter==".*") {temphashfilter="*";} $portfolio_selectors.each(function(){if($(this).attr("data-filter")==temphashfilter){$portfolio_selectors_li.removeClass('active');$portfolio_selectors_li.find('a[data-filter="'+temphashfilter+'"]').parent('li').addClass("active");var autoscrolltoelement=function(){$("html, body").animate({scrollTop:$('.portfolio-filter').parents('section').offset().top-60});};setTimeout(autoscrolltoelement,500);hashfilter=temphashfilter;}});} $portfolio.imagesLoaded(function(){$portfolio.isotope({filter:hashfilter,itemSelector:'li',layoutMode:'masonry'});});$masonry_block=$('.masonry-block-items');$masonry_block.imagesLoaded(function(){$masonry_block.isotope({itemSelector:'li',layoutMode:'masonry'});});$portfolio_selectors.on('click',function(){$portfolio_selectors.parent().removeClass('active');$(this).parent().addClass('active');var selector=$(this).attr('data-filter');$portfolio.isotope({filter:selector});if(selector.substr(1)!=""&&selector.substr(1)!="#") {location.hash=selector.substr(1);} else {location.hash="*";} return false;});$blog=$('.blog-masonry');$blog.imagesLoaded(function(){$blog.isotope({itemSelector:'.blog-listing',layoutMode:'masonry'});});$(window).resize(function(){setTimeout(function(){$portfolio.isotope('layout');$blog.isotope('layout');$masonry_block.isotope('layout');},500);});SetParallax();$("#owl-demo").owlCarousel({navigation:true,autoplay: true,autoPlaySpeed: 5000,autoplayTimeout:1000,autoplayHoverPause: true,slideSpeed:300,paginationSpeed:400,singleItem:true,transitionStyle:"fade",navigationText:["",""]});$("#owl-demo-small").owlCarousel({navigation:true,slideSpeed:300,paginationSpeed:400,singleItem:true,navigationText:["",""]});$("#owl-demo-products").owlCarousel({navigation:true,slideSpeed:300,paginationSpeed:400,singleItem:true,navigationText:["",""]});$("#owl-demo-background").owlCarousel({transitionStyle:"fade",autoPlay:3000,slideSpeed:100,singleItem:true,navigation:false,pagination:false,touchDrag:false,mouseDrag:false});$("#blog-slider-grid").owlCarousel({navigation:true,pagination:false,slideSpeed:300,paginationSpeed:400,singleItem:true,items:1,navigationText:["",""]});$("#blog-slider").owlCarousel({navigation:false,items:3,itemsDesktop:[1200,3],itemsTablet:[800,2],itemsMobile:[700,1]});$("#approach-slider").owlCarousel({navigation:false,items:3,itemsDesktop:[1200,3],itemsTablet:[800,3],itemsMobile:[700,1]});$("#testimonial-slider").owlCarousel({navigation:false,items:3,itemsDesktop:[1200,3],itemsTablet:[800,3],itemsMobile:[700,1]});$("#shop-products").owlCarousel({navigation:true,items:3,itemsDesktop:[1200,3],itemsTablet:[800,3],itemsMobile:[700,1],navigationText:["",""]});$("#owl-demo-brand").owlCarousel({navigation:true,items:4,itemsDesktop:[1200,4],itemsTablet:[800,3],itemsMobile:[700,1],navigationText:["",""]});$('.chart').easyPieChart({barColor:'#fff',trackColor:'#535353',scaleColor:false,easing:'easeOutBounce',scaleLength:1,lineCap:'round',lineWidth:1,size:120,animate:{duration:2000,enabled:true},onStep:function(from,to,percent){$(this.el).find('.percent').text(Math.round(percent));}});$('.chart2').easyPieChart({easing:'easeOutCirc',barColor:'#767676',trackColor:'#c7c7c7',scaleColor:false,easing:'easeOutBounce',scaleLength:1,lineCap:'round',lineWidth:2,size:120,animate:{duration:2000,enabled:true},onStep:function(from,to,percent){$(this.el).find('.percent').text(Math.round(percent));}});$(".owl-pagination > .owl-page").click(function(e){if($(e.target).is('.mfp-close')) return;return false;});$(".owl-buttons > .owl-prev").click(function(e){if($(e.target).is('.mfp-close')) return;return false;});$(".owl-buttons > .owl-next").click(function(e){if($(e.target).is('.mfp-close')) return;return false;});jQuery('.revolution-agency-intro').show().revolution({dottedOverlay:"none",delay:9000,startwidth:1170,startheight:700,hideThumbs:200,thumbWidth:100,thumbHeight:50,thumbAmount:5,navigationType:"none",navigationArrows:"solo",navigationStyle:"preview2",touchenabled:"on",onHoverStop:"off",swipe_velocity:0.7,swipe_min_touches:1,swipe_max_touches:1,drag_block_vertical:false,keyboardNavigation:"on",navigationHAlign:"center",navigationVAlign:"bottom",navigationHOffset:0,navigationVOffset:20,soloArrowLeftHalign:"left",soloArrowLeftValign:"center",soloArrowLeftHOffset:20,soloArrowLeftVOffset:0,soloArrowRightHalign:"right",soloArrowRightValign:"center",soloArrowRightHOffset:20,soloArrowRightVOffset:0,shadow:0,fullWidth:"off",fullScreen:"on",spinner:"spinner1",stopLoop:"off",stopAfterLoops:-1,stopAtSlide:-1,shuffle:"off",forceFullWidth:"off",fullScreenAlignForce:"off",minFullScreenHeight:"400",hideThumbsOnMobile:"off",hideNavDelayOnMobile:1500,hideBulletsOnMobile:"off",hideArrowsOnMobile:"off",hideThumbsUnderResolution:0,hideSliderAtLimit:0,hideCaptionAtLimit:0,hideAllCaptionAtLilmit:0,startWithSlide:0,fullScreenOffsetContainer:".header"});jQuery('.revolution-agency-intro2').show().revolution({dottedOverlay:"none",delay:9000,startwidth:1920,startheight:980,hideThumbs:200,thumbWidth:100,thumbHeight:50,thumbAmount:5,navigationType:"none",navigationArrows:"none",navigationStyle:"none",touchenabled:"on",onHoverStop:"off",swipe_velocity:0.7,swipe_min_touches:1,swipe_max_touches:1,drag_block_vertical:false,keyboardNavigation:"on",navigationHAlign:"center",navigationVAlign:"bottom",navigationHOffset:0,navigationVOffset:20,soloArrowLeftHalign:"left",soloArrowLeftValign:"center",soloArrowLeftHOffset:20,soloArrowLeftVOffset:0,soloArrowRightHalign:"right",soloArrowRightValign:"center",soloArrowRightHOffset:20,soloArrowRightVOffset:0,shadow:0,fullWidth:"off",fullScreen:"on",spinner:"spinner1",stopLoop:"off",stopAfterLoops:-1,stopAtSlide:-1,shuffle:"off",forceFullWidth:"off",fullScreenAlignForce:"off",minFullScreenHeight:"400",hideThumbsOnMobile:"off",hideNavDelayOnMobile:1500,hideBulletsOnMobile:"off",hideArrowsOnMobile:"off",hideThumbsUnderResolution:0,hideSliderAtLimit:0,hideCaptionAtLimit:0,hideAllCaptionAtLilmit:0,startWithSlide:0,fullScreenOffsetContainer:".header"});jQuery('.revolution-product-intro').show().revolution({dottedOverlay:"none",delay:9000,startwidth:1920,startheight:980,hideThumbs:200,thumbWidth:100,thumbHeight:50,thumbAmount:5,navigationType:"none",navigationArrows:"none",navigationStyle:"none",touchenabled:"on",onHoverStop:"off",swipe_velocity:0.7,swipe_min_touches:1,swipe_max_touches:1,drag_block_vertical:false,keyboardNavigation:"on",navigationHAlign:"center",navigationVAlign:"bottom",navigationHOffset:0,navigationVOffset:20,soloArrowLeftHalign:"left",soloArrowLeftValign:"center",soloArrowLeftHOffset:20,soloArrowLeftVOffset:0,soloArrowRightHalign:"right",soloArrowRightValign:"center",soloArrowRightHOffset:20,soloArrowRightVOffset:0,shadow:0,fullWidth:"off",fullScreen:"on",spinner:"spinner1",stopLoop:"off",stopAfterLoops:-1,stopAtSlide:-1,shuffle:"off",forceFullWidth:"off",fullScreenAlignForce:"off",minFullScreenHeight:"400",hideThumbsOnMobile:"off",hideNavDelayOnMobile:1500,hideBulletsOnMobile:"off",hideArrowsOnMobile:"off",hideThumbsUnderResolution:0,hideSliderAtLimit:0,hideCaptionAtLimit:0,hideAllCaptionAtLilmit:0,startWithSlide:0,fullScreenOffsetContainer:".header"});jQuery('.revolution-intro-restaurant').show().revolution({dottedOverlay:"none",delay:9000,startwidth:1920,startheight:980,hideThumbs:200,thumbWidth:100,thumbHeight:50,thumbAmount:5,navigationType:"none",navigationArrows:"none",navigationStyle:"none",touchenabled:"on",onHoverStop:"off",swipe_velocity:0.7,swipe_min_touches:1,swipe_max_touches:1,drag_block_vertical:false,keyboardNavigation:"on",navigationHAlign:"center",navigationVAlign:"bottom",navigationHOffset:0,navigationVOffset:20,soloArrowLeftHalign:"left",soloArrowLeftValign:"center",soloArrowLeftHOffset:20,soloArrowLeftVOffset:0,soloArrowRightHalign:"right",soloArrowRightValign:"center",soloArrowRightHOffset:20,soloArrowRightVOffset:0,shadow:0,fullWidth:"off",fullScreen:"on",spinner:"spinner1",stopLoop:"off",stopAfterLoops:-1,stopAtSlide:-1,shuffle:"off",forceFullWidth:"off",fullScreenAlignForce:"off",minFullScreenHeight:"400",hideThumbsOnMobile:"off",hideNavDelayOnMobile:1500,hideBulletsOnMobile:"off",hideArrowsOnMobile:"off",hideThumbsUnderResolution:0,hideSliderAtLimit:0,hideCaptionAtLimit:0,hideAllCaptionAtLilmit:0,startWithSlide:0,fullScreenOffsetContainer:".header"});jQuery('.revolution-slider-half').show().revolution({dottedOverlay:"none",delay:9000,startwidth:1170,startheight:700,hideThumbs:200,thumbWidth:100,thumbHeight:50,thumbAmount:5,navigationType:"none",navigationArrows:"solo",navigationStyle:"preview1",touchenabled:"on",onHoverStop:"on",swipe_velocity:0.7,swipe_min_touches:1,swipe_max_touches:1,drag_block_vertical:false,keyboardNavigation:"on",navigationHAlign:"center",navigationVAlign:"bottom",navigationHOffset:0,navigationVOffset:20,soloArrowLeftHalign:"left",soloArrowLeftValign:"center",soloArrowLeftHOffset:20,soloArrowLeftVOffset:0,soloArrowRightHalign:"right",soloArrowRightValign:"center",soloArrowRightHOffset:20,soloArrowRightVOffset:0,shadow:0,fullWidth:"on",fullScreen:"off",spinner:"spinner0",stopLoop:"off",stopAfterLoops:-1,stopAtSlide:-1,shuffle:"off",autoHeight:"off",forceFullWidth:"off",hideThumbsOnMobile:"off",hideNavDelayOnMobile:1500,hideBulletsOnMobile:"off",hideArrowsOnMobile:"off",hideThumbsUnderResolution:0,hideSliderAtLimit:0,hideCaptionAtLimit:0,hideAllCaptionAtLilmit:0,startWithSlide:0,parallax:"mouse",parallaxBgFreeze:"on",parallaxLevels:[7,4,3,2,5,4,3,2,1,0],});jQuery('.revolution-slider-full').show().revolution({dottedOverlay:"none",delay:9000,startwidth:1170,startheight:700,hideThumbs:200,thumbWidth:100,thumbHeight:50,thumbAmount:5,navigationType:"none",navigationArrows:"solo",navigationStyle:"preview1",touchenabled:"on",onHoverStop:"on",swipe_velocity:0.7,swipe_min_touches:1,swipe_max_touches:1,drag_block_vertical:false,keyboardNavigation:"on",navigationHAlign:"center",navigationVAlign:"bottom",navigationHOffset:0,navigationVOffset:20,soloArrowLeftHalign:"left",soloArrowLeftValign:"center",soloArrowLeftHOffset:20,soloArrowLeftVOffset:0,soloArrowRightHalign:"right",soloArrowRightValign:"center",soloArrowRightHOffset:20,soloArrowRightVOffset:0,shadow:0,fullWidth:"off",fullScreen:"on",spinner:"spinner0",stopLoop:"off",stopAfterLoops:-1,stopAtSlide:-1,shuffle:"off",forceFullWidth:"off",fullScreenAlignForce:"off",minFullScreenHeight:"400",hideThumbsOnMobile:"off",hideNavDelayOnMobile:1500,hideBulletsOnMobile:"off",hideArrowsOnMobile:"off",hideThumbsUnderResolution:0,hideSliderAtLimit:0,hideCaptionAtLimit:0,hideAllCaptionAtLilmit:0,startWithSlide:0,fullScreenOffsetContainer:".header"});jQuery('.photography-revolution-slider-full').show().revolution({dottedOverlay:"none",delay:9000,startwidth:1170,startheight:700,hideThumbs:200,thumbWidth:100,thumbHeight:50,thumbAmount:5,navigationType:"bullet",navigationArrows:"none",navigationStyle:"preview5",touchenabled:"on",onHoverStop:"on",swipe_velocity:0.7,swipe_min_touches:1,swipe_max_touches:1,drag_block_vertical:false,keyboardNavigation:"on",navigationHAlign:"center",navigationVAlign:"bottom",navigationHOffset:0,navigationVOffset:20,soloArrowLeftHalign:"left",soloArrowLeftValign:"center",soloArrowLeftHOffset:20,soloArrowLeftVOffset:0,soloArrowRightHalign:"right",soloArrowRightValign:"center",soloArrowRightHOffset:20,soloArrowRightVOffset:0,shadow:0,fullWidth:"off",fullScreen:"on",spinner:"spinner0",stopLoop:"off",stopAfterLoops:-1,stopAtSlide:-1,shuffle:"off",forceFullWidth:"off",fullScreenAlignForce:"off",minFullScreenHeight:"400",hideThumbsOnMobile:"off",hideNavDelayOnMobile:1500,hideBulletsOnMobile:"off",hideArrowsOnMobile:"off",hideThumbsUnderResolution:0,hideSliderAtLimit:0,hideCaptionAtLimit:0,hideAllCaptionAtLilmit:0,startWithSlide:0,fullScreenOffsetContainer:".header"});jQuery('.revolution-intro-travel').show().revolution({dottedOverlay:"none",delay:9000,startwidth:1920,startheight:980,hideThumbs:200,thumbWidth:100,thumbHeight:50,thumbAmount:5,navigationType:"none",navigationArrows:"solo",navigationStyle:"preview2",touchenabled:"on",onHoverStop:"off",swipe_velocity:0.7,swipe_min_touches:1,swipe_max_touches:1,drag_block_vertical:false,keyboardNavigation:"on",navigationHAlign:"center",navigationVAlign:"bottom",navigationHOffset:0,navigationVOffset:20,soloArrowLeftHalign:"left",soloArrowLeftValign:"center",soloArrowLeftHOffset:20,soloArrowLeftVOffset:0,soloArrowRightHalign:"right",soloArrowRightValign:"center",soloArrowRightHOffset:20,soloArrowRightVOffset:0,shadow:0,fullWidth:"off",fullScreen:"on",spinner:"spinner1",stopLoop:"off",stopAfterLoops:-1,stopAtSlide:-1,shuffle:"off",forceFullWidth:"off",fullScreenAlignForce:"off",minFullScreenHeight:"400",hideThumbsOnMobile:"off",hideNavDelayOnMobile:1500,hideBulletsOnMobile:"off",hideArrowsOnMobile:"off",hideThumbsUnderResolution:0,hideSliderAtLimit:0,hideCaptionAtLimit:0,hideAllCaptionAtLilmit:0,startWithSlide:0,fullScreenOffsetContainer:".header"});jQuery('.revolution-intro-travel2').show().revolution({dottedOverlay:"none",delay:9000,startwidth:1920,startheight:980,hideThumbs:200,thumbWidth:100,thumbHeight:50,thumbAmount:5,navigationType:"none",navigationArrows:"solo",navigationStyle:"preview2",touchenabled:"on",onHoverStop:"off",swipe_velocity:0.7,swipe_min_touches:1,swipe_max_touches:1,drag_block_vertical:false,keyboardNavigation:"on",navigationHAlign:"center",navigationVAlign:"bottom",navigationHOffset:0,navigationVOffset:20,soloArrowLeftHalign:"left",soloArrowLeftValign:"center",soloArrowLeftHOffset:20,soloArrowLeftVOffset:0,soloArrowRightHalign:"right",soloArrowRightValign:"center",soloArrowRightHOffset:20,soloArrowRightVOffset:0,shadow:0,fullWidth:"off",fullScreen:"on",spinner:"spinner1",stopLoop:"off",stopAfterLoops:-1,stopAtSlide:-1,shuffle:"off",forceFullWidth:"off",fullScreenAlignForce:"off",minFullScreenHeight:"400",hideThumbsOnMobile:"off",hideNavDelayOnMobile:1500,hideBulletsOnMobile:"off",hideArrowsOnMobile:"off",hideThumbsUnderResolution:0,hideSliderAtLimit:0,hideCaptionAtLimit:0,hideAllCaptionAtLilmit:0,startWithSlide:0,fullScreenOffsetContainer:".header",parallax:"mouse",parallaxBgFreeze:"on",parallaxLevels:[7,4,3,2,5,4,3,2,1,0]});jQuery('.revolution-intro-fashion').show().revolution({dottedOverlay:"none",delay:9000,startwidth:1900,startheight:977,hideThumbs:200,thumbWidth:100,thumbHeight:50,thumbAmount:5,navigationType:"none",navigationArrows:"solo",navigationStyle:"preview4",touchenabled:"on",onHoverStop:"off",swipe_velocity:0.7,swipe_min_touches:1,swipe_max_touches:1,drag_block_vertical:false,keyboardNavigation:"on",navigationHAlign:"center",navigationVAlign:"bottom",navigationHOffset:0,navigationVOffset:20,soloArrowLeftHalign:"left",soloArrowLeftValign:"center",soloArrowLeftHOffset:20,soloArrowLeftVOffset:0,soloArrowRightHalign:"right",soloArrowRightValign:"center",soloArrowRightHOffset:20,soloArrowRightVOffset:0,shadow:0,fullWidth:"off",fullScreen:"on",spinner:"spinner1",stopLoop:"off",stopAfterLoops:-1,stopAtSlide:-1,shuffle:"off",forceFullWidth:"off",fullScreenAlignForce:"off",minFullScreenHeight:"400",hideThumbsOnMobile:"off",hideNavDelayOnMobile:1500,hideBulletsOnMobile:"off",hideArrowsOnMobile:"off",hideThumbsUnderResolution:0,hideSliderAtLimit:0,hideCaptionAtLimit:0,hideAllCaptionAtLilmit:0,startWithSlide:0,fullScreenOffsetContainer:".header"});jQuery('.revolution-masonry-portfolio').show().revolution({dottedOverlay:"none",delay:9000,startwidth:1170,startheight:700,hideThumbs:200,thumbWidth:100,thumbHeight:50,thumbAmount:5,navigationType:"none",navigationArrows:"solo",navigationStyle:"preview1",touchenabled:"off",onHoverStop:"off",swipe_velocity:0.7,swipe_min_touches:1,swipe_max_touches:1,drag_block_vertical:false,keyboardNavigation:"off",navigationHAlign:"center",navigationVAlign:"bottom",navigationHOffset:0,navigationVOffset:20,soloArrowLeftHalign:"left",soloArrowLeftValign:"center",soloArrowLeftHOffset:20,soloArrowLeftVOffset:0,soloArrowRightHalign:"right",soloArrowRightValign:"center",soloArrowRightHOffset:20,soloArrowRightVOffset:0,shadow:0,fullWidth:"on",fullScreen:"off",spinner:"spinner0",stopLoop:"on",stopAfterLoops:1,stopAtSlide:1,shuffle:"off",autoHeight:"off",forceFullWidth:"off",hideThumbsOnMobile:"off",hideNavDelayOnMobile:1500,hideBulletsOnMobile:"off",hideArrowsOnMobile:"off",hideThumbsUnderResolution:0,hideSliderAtLimit:0,hideCaptionAtLimit:0,hideAllCaptionAtLilmit:0,startWithSlide:0,parallax:"mouse",parallaxBgFreeze:"on",parallaxLevels:[7,4,3,2,5,4,3,2,1,0],});jQuery('.revolution-onepage-restaurant').show().revolution({dottedOverlay:"none",delay:9000,startwidth:1170,startheight:700,hideThumbs:200,thumbWidth:100,thumbHeight:50,thumbAmount:5,navigationType:"none",navigationArrows:"solo",navigationStyle:"preview2",touchenabled:"on",onHoverStop:"off",swipe_velocity:0.7,swipe_min_touches:1,swipe_max_touches:1,drag_block_vertical:false,keyboardNavigation:"on",navigationHAlign:"center",navigationVAlign:"bottom",navigationHOffset:0,navigationVOffset:20,soloArrowLeftHalign:"left",soloArrowLeftValign:"center",soloArrowLeftHOffset:20,soloArrowLeftVOffset:0,soloArrowRightHalign:"right",soloArrowRightValign:"center",soloArrowRightHOffset:20,soloArrowRightVOffset:0,shadow:0,fullWidth:"off",fullScreen:"on",spinner:"spinner1",stopLoop:"off",stopAfterLoops:-1,stopAtSlide:-1,shuffle:"off",forceFullWidth:"off",fullScreenAlignForce:"off",minFullScreenHeight:"400",hideThumbsOnMobile:"off",hideNavDelayOnMobile:1500,hideBulletsOnMobile:"off",hideArrowsOnMobile:"off",hideThumbsUnderResolution:0,hideSliderAtLimit:0,hideCaptionAtLimit:0,hideAllCaptionAtLilmit:0,startWithSlide:0,fullScreenOffsetContainer:".header"});var wow=new WOW({boxClass:'wow',animateClass:'animated',offset:90,mobile:false,live:true});wow.init();$('.collapse').on('show.bs.collapse',function(){var id=$(this).attr('id');$('a[href="#'+id+'"]').closest('.panel-heading').addClass('active-accordion');$('a[href="#'+id+'"] .panel-title span').html('');});$('.collapse').on('hide.bs.collapse',function(){var id=$(this).attr('id');$('a[href="#'+id+'"]').closest('.panel-heading').removeClass('active-accordion');$('a[href="#'+id+'"] .panel-title span').html('');});$('.nav.navbar-nav a.inner-link').click(function(){$(this).parents('ul.navbar-nav').find('a.inner-link').removeClass('active');$(this).addClass('active');if($('.navbar-header .navbar-toggle').is(':visible')) $(this).parents('.navbar-collapse').collapse('hide');});$('.accordion-style2 .collapse').on('show.bs.collapse',function(){var id=$(this).attr('id');$('a[href="#'+id+'"]').closest('.panel-heading').addClass('active-accordion');$('a[href="#'+id+'"] .panel-title span').html('');});$('.accordion-style2 .collapse').on('hide.bs.collapse',function(){var id=$(this).attr('id');$('a[href="#'+id+'"]').closest('.panel-heading').removeClass('active-accordion');$('a[href="#'+id+'"] .panel-title span').html('');});$('.accordion-style3 .collapse').on('show.bs.collapse',function(){var id=$(this).attr('id');$('a[href="#'+id+'"]').closest('.panel-heading').addClass('active-accordion');$('a[href="#'+id+'"] .panel-title span').html('');});$('.accordion-style3 .collapse').on('hide.bs.collapse',function(){var id=$(this).attr('id');$('a[href="#'+id+'"]').closest('.panel-heading').removeClass('active-accordion');$('a[href="#'+id+'"] .panel-title span').html('');});$('toggles .collapse').on('show.bs.collapse',function(){var id=$(this).attr('id');$('a[href="#'+id+'"]').closest('.panel-heading').addClass('active-accordion');$('a[href="#'+id+'"] .panel-title span').html('');});$('toggles .collapse').on('hide.bs.collapse',function(){var id=$(this).attr('id');$('a[href="#'+id+'"]').closest('.panel-heading').removeClass('active-accordion');$('a[href="#'+id+'"] .panel-title span').html('');});$('.toggles-style2 .collapse').on('show.bs.collapse',function(){var id=$(this).attr('id');$('a[href="#'+id+'"]').closest('.panel-heading').addClass('active-accordion');$('a[href="#'+id+'"] .panel-title span').html('');});$('.toggles-style2 .collapse').on('hide.bs.collapse',function(){var id=$(this).attr('id');$('a[href="#'+id+'"]').closest('.panel-heading').removeClass('active-accordion');$('a[href="#'+id+'"] .panel-title span').html('');});try{$(".fit-videos").fitVids();} catch(err){} $('#map_canvas1').addClass('scrolloff');$('#canvas1').on('click',function(){$('#map_canvas1').removeClass('scrolloff');});$("#map_canvas1").mouseleave(function(){$('#map_canvas1').addClass('scrolloff');});$("input.search-input").bind("keypress",function(event){if(event.which==13&&!isMobile){$("button.search-button").click();event.preventDefault();}});$("input.search-input").bind("keyup",function(event){if($(this).val()==null||$(this).val()==""){$(this).css({"border":"none","border-bottom":"2px solid red"});} else{$(this).css({"border":"none","border-bottom":"2px solid #000"});}});function validationSearchForm(){var error=true;$('#search-header input[type=text]').each(function(index){if(index==0){if($(this).val()==null||$(this).val()==""){$("#search-header").find("input:eq("+index+")").css({"border":"none","border-bottom":"2px solid red"});error=false;} else{$("#search-header").find("input:eq("+index+")").css({"border":"none","border-bottom":"2px solid #000"});}}});return error;} $("form.search-form, form.search-form-result").submit(function(event){var error=validationSearchForm();if(error){var action=$(this).attr('action');action=action=='#'||action==''?'blog-grid-3columns.html':action;action=action+'?'+$(this).serialize();window.location=action;} event.preventDefault();});$('.navbar .navbar-collapse a.dropdown-toggle, .accordion-style1 .panel-heading a, .accordion-style2 .panel-heading a, .accordion-style3 .panel-heading a, .toggles .panel-heading a, .toggles-style2 .panel-heading a, .toggles-style3 .panel-heading a, a.carousel-control, .nav-tabs a[data-toggle="tab"], a.shopping-cart').click(function(e){e.preventDefault();});$('body').on('touchstart click',function(e){if($(window).width()<992){if(!$('.navbar-collapse').has(e.target).is('.navbar-collapse')&&$('.navbar-collapse').hasClass('in')&&!$(e.target).hasClass('navbar-toggle')){$('.navbar-collapse').collapse('hide');}} else{if(!$('.navbar-collapse').has(e.target).is('.navbar-collapse')&&$('.navbar-collapse ul').hasClass('in')){console.log(this);$('.navbar-collapse').find('a.dropdown-toggle').addClass('collapsed');$('.navbar-collapse').find('ul.dropdown-menu').removeClass('in');$('.navbar-collapse a.dropdown-toggle').removeClass('active');}}});$('.navbar-collapse a.dropdown-toggle').on('touchstart',function(e){$('.navbar-collapse a.dropdown-toggle').not(this).removeClass('active');if($(this).hasClass('active')) $(this).removeClass('active');else $(this).addClass('active');});$("button.navbar-toggle").click(function(){if(isMobile){jQuery(".cart-content").css('opacity','0');jQuery(".cart-content").css('visibility','hidden');}});$("a.dropdown-toggle").click(function(){if(isMobile){jQuery(".cart-content").css('opacity','0');jQuery(".cart-content").css('visibility','hidden');}});var $elem=$('#content');$('#scroll_to_top').fadeIn('slow');$('#nav_down').fadeIn('slow');$(window).bind('scrollstart',function(){$('#scroll_to_top,#nav_down').stop().animate({'opacity':'0.2'});});$(window).bind('scrollstop',function(){$('#scroll_to_top,#nav_down').stop().animate({'opacity':'1'});});$('#nav_down').click(function(e){$('html, body').animate({scrollTop:$elem.height()},800);});$('#scroll_to_top').click(function(e){$('html, body').animate({scrollTop:'0px'},800);});$("#success").hide();$("#contact-us-button").click(function(){var error=validationContactUsForm();if(error){$.ajax({type:"POST",url:"contact.php",data:$("#contactusform").serialize(),success:function(result){$('input[type=text],textarea').each(function(){$(this).val('');}) $("#success").html(result);$("#success").fadeIn("slow");$('#success').delay(4000).fadeOut("slow");}});}});function validationContactUsForm(){var error=true;$('#contactusform input[type=text]').each(function(index){if(index==1){if(!(/(.+)@(.+){2,}\.(.+){2,}/.test($(this).val()))){$("#contactusform").find("input:eq("+index+")").css({"border":"1px solid red"});error=false;}else{$("#contactusform").find("input:eq("+index+")").css({"border":"1px solid #dfdfdf"});}} else if(index==0){if($(this).val()==null||$(this).val()==""){$("#contactusform").find("input:eq("+index+")").css({"border":"1px solid red"});error=false;} else{$("#contactusform").find("input:eq("+index+")").css({"border":"1px solid #dfdfdf"});}}});return error;} $("#notifyme-button").click(function(){var error=validationnotifymeForm();if(error){$.ajax({type:"POST",url:"notifyme.php",data:$("#notifymeform").serialize(),success:function(result){$('input[type=text],textarea').each(function(){$(this).val('');}) $("#success").html(result);$("#success").fadeIn("slow");$('#success').delay(4000).fadeOut("slow");}});}});function validationnotifymeForm(){var error=true;$('#notifymeform input[type=text]').each(function(index){if(index==0){if(!(/(.+)@(.+){2,}\.(.+){2,}/.test($(this).val()))){$("#notifymeform").find("input:eq("+index+")").css({"border":"1px solid red"});error=false;}else{$("#notifymeform").find("input:eq("+index+")").css({"border":"1px solid #dfdfdf"});}}});return error;} $("#success-free30daytrial").hide();$("#free30daytrial-button").click(function(){var error=validationfree30daytrialForm();if(error){$.ajax({type:"POST",url:"free30daytrial.php",data:$("#free30daytrialform").serialize(),success:function(result){$('input[type=text],textarea').each(function(){$(this).val('');}) $("#success-free30daytrial").html(result);$("#success-free30daytrial").fadeIn("slow");$('#success-free30daytrial').delay(4000).fadeOut("slow");}});}});function validationfree30daytrialForm(){var error=true;$('#free30daytrialform input[type=text]').each(function(index){if(index==1){if(!(/(.+)@(.+){2,}\.(.+){2,}/.test($(this).val()))){$("#free30daytrialform").find("input:eq("+index+")").css({"border":"1px solid red"});error=false;}else{$("#free30daytrialform").find("input:eq("+index+")").css({"border":"1px solid #dfdfdf"});}} else if(index==0){if($(this).val()==null||$(this).val()==""){$("#free30daytrialform").find("input:eq("+index+")").css({"border":"1px solid red"});error=false;} else{$("#free30daytrialform").find("input:eq("+index+")").css({"border":"1px solid #dfdfdf"});}}});return error;} $("#event-button").click(function(){var error=validationeventForm();if(error){$.ajax({type:"POST",url:"rsvp.php",data:$("#eventform").serialize(),success:function(result){$('input[type=text],textarea').each(function(){$(this).val('');}) $("#success").html(result);$("#success").fadeIn("slow");$('#success').delay(4000).fadeOut("slow");}});}});function validationeventForm(){var error=true;$('#eventform input[type=text]').each(function(index){if(index==0){if($(this).val()==null||$(this).val()==""){$("#eventform").find("input:eq("+index+")").css({"border":"1px solid red"});error=false;} else{$("#eventform").find("input:eq("+index+")").css({"border":"1px solid #dfdfdf"});}}});return error;} $("#careers-button").click(function(){var error=validationcareersForm();if(error){$.ajax({type:"POST",url:"careers.php",data:$("#careersform").serialize(),success:function(result){$('input[type=text],textarea').each(function(){$(this).val('');}) $("#success").html(result);$("#success").fadeIn("slow");$('#success').delay(4000).fadeOut("slow");}});}});function validationcareersForm(){var error=true;$('#careersform input[type=text]').each(function(index){if(index==1){if(!(/(.+)@(.+){2,}\.(.+){2,}/.test($(this).val()))){$("#careersform").find("input:eq("+index+")").css({"border":"1px solid red"});error=false;}else{$("#careersform").find("input:eq("+index+")").css({"border":"1px solid #dfdfdf"});}} else if(index==0){if($(this).val()==null||$(this).val()==""){$("#careersform").find("input:eq("+index+")").css({"border":"1px solid red"});error=false;} else{$("#careersform").find("input:eq("+index+")").css({"border":"1px solid #dfdfdf"});}} else if(index==2){if($(this).val()==null||$(this).val()==""){$("#careersform").find("input:eq("+index+")").css({"border":"1px solid red"});error=false;} else{$("#careersform").find("input:eq("+index+")").css({"border":"1px solid #dfdfdf"});}}});return error;} $('.pull-menu a.inner-link').click(function(e){$('#close-button').click();});});function animatecounters(){$('.timer').each(count);function count(options){var $this=$(this);options=$.extend({},options||{},$this.data('countToOptions')||{});$this.countTo(options);}} var inViewchart=false;var inViewanimnumberpizza=false;var inViewanimnumberclient=false;var inViewanimnumberprojects=false;var inViewanimnumbercomments=false;var inViewcounter1=false;var inViewcounter2=false;var inViewcounter3=false;var inViewcounter4=false;var inViewcounter5=false;var inViewcounter6=false;var inViewcounter7=false;function isScrolledIntoView(elem){try{var docViewTop=$(window).scrollTop();var docViewBottom=docViewTop+$(window).height();var elemTop=$(elem).offset().top;var elemBottom=elemTop+$(elem).height();return((elemTop<=docViewBottom)&&(elemBottom>=docViewTop));} catch(ex){return false;}} $(window).scroll(function(){if($(window).scrollTop()>10){$('nav').addClass('shrink-nav');}else{$('nav').removeClass('shrink-nav');} if(isScrolledIntoView('.chart')){if(inViewchart==false){inViewchart=true;$(".chart").each(function(){try{$(this).data('easyPieChart').update(0);$(this).data('easyPieChart').update($(this).attr("data-percent"));} catch(ex){}});$(".chart2").each(function(){try{$(this).data('easyPieChart').update(0);$(this).data('easyPieChart').update($(this).attr("data-percent"));} catch(ex){}});}}});function SetResizeHeaderMenu(){var width=jQuery('nav.navbar').children('div.container').width();$("ul.mega-menu-full").each(function(){jQuery(this).css('width',width+'px');});} $('.parallax-fix').each(function(){if($(this).children('.parallax-background-img').length){var imgSrc=jQuery(this).children('.parallax-background-img').attr('src');jQuery(this).css('background','url("'+imgSrc+'")');jQuery(this).children('.parallax-background-img').remove();$(this).css('background-position','50% 0%');}});var IsParallaxGenerated=false;function SetParallax(){if($(window).width()>1030&&!IsParallaxGenerated){$('.parallax1').parallax("50%",0.1);$('.parallax2').parallax("50%",0.2);$('.parallax3').parallax("50%",0.3);$('.parallax4').parallax("50%",0.4);$('.parallax5').parallax("50%",0.5);$('.parallax6').parallax("50%",0.6);$('.parallax7').parallax("50%",0.7);$('.parallax8').parallax("50%",0.8);$('.parallax9').parallax("50%",0.05);$('.parallax10').parallax("50%",0.02);$('.parallax11').parallax("50%",0.01);$('.parallax12').parallax("50%",0.099);IsParallaxGenerated=true;}} $('.mobile-toggle').click(function(){$('nav').toggleClass('open-nav');});$('.dropdown-arrow').click(function(){if($('.mobile-toggle').is(":visible")){if($(this).children('.dropdown').hasClass('open-nav')){$(this).children('.dropdown').removeClass('open-nav');}else{$('.dropdown').removeClass('open-nav');$(this).children('.dropdown').addClass('open-nav');}}});$('.dropdown-fullwidth').each(function(){$(this).css('width',$('.row').width());var subNavOffset=-($('nav .row').innerWidth()-$('.menu').innerWidth()-15);$(this).css('left',subNavOffset);});var scrollAnimationTime=1200,scrollAnimation='easeInOutExpo';$('a.scrollto').bind('click.smoothscroll',function(event){event.preventDefault();var target=this.hash;$('html, body').stop().animate({'scrollTop':$(target).offset().top},scrollAnimationTime,scrollAnimation,function(){window.location.hash=target;});});$('.inner-link').smoothScroll({speed:900,offset:-0});$('.section-link').smoothScroll({speed:900,offset:1});function scrollToDown(){var target=$('#features');$('html, body').animate({scrollTop:$(target).offset().top},800);} function scrollToDownSection(){var target=$('#about');$('html, body').animate({scrollTop:$(target).offset().top},800);} function SetResizeContent(){var minheight=$(window).height();$(".full-screen").css('min-height',minheight);var minwidth=$(window).width();$(".full-screen-width").css('min-width',minwidth);} SetResizeContent();$(window).resize(function(){$('.dropdown-fullwidth').each(function(){$(this).css('width',$('.row').width());var subNavOffset=-($('nav .row').innerWidth()-$('.menu').innerWidth()-15);$(this).css('left',subNavOffset);});SetResizeContent();setTimeout(function(){SetResizeHeaderMenu();},200);if($(window).width()>=992&&$('.navbar-collapse').hasClass('in')){$('.navbar-collapse').removeClass('in');$('.navbar-collapse ul.dropdown-menu').each(function(){if($(this).hasClass('in')){$(this).removeClass('in');}});$('ul.navbar-nav > li.dropdown > a.dropdown-toggle').addClass('collapsed');$('.logo').focus();$('.navbar-collapse a.dropdown-toggle').removeClass('active');} setTimeout(function(){SetParallax();},1000);});$('#counter-underconstruction').countdown('2016/12/15 12:00:00').on('update.countdown',function(event){var $this=$(this).html(event.strftime(''+'