;(function($){'use strict';$(function(){document.addEventListener("touchstart",function(){},false);if('ontouchstart'in document.documentElement){$('body').css('cursor','pointer');}if($('#calc-item').length){$(window).on('load resize',function(){var hitem=$("#calc-item").height()/1.99;$("#calc-item").css('margin-top',hitem*-1);});}if($('#header').hasClass('style-2')){if($('#rev-slider').length){jQuery("#rev-slider").revolution({sliderType:"standard",spinner:"spinner3",responsiveLevels:[4096,1024,778,480],delay:6000,navigation:{arrows:{enable:true,left:{container:"slider",h_align:"left",v_align:"center",h_offset:30,v_offset:50},right:{container:"slider",h_align:"right",v_align:"center",h_offset:30,v_offset:50}},bullets:{style:"",enable:false,container:"slider",hide_onmobile:false,hide_onleave:false,hide_delay:200,hide_under:0,hide_over:9999,tmp:'',direction:"horisontal",space:10,h_align:"center",v_align:"bottom",v_offset:60}},gridwidth:1200,gridheight:765});}}else{if($('#rev-slider').length){jQuery("#rev-slider").revolution({sliderType:"standard",spinner:"spinner3",responsiveLevels:[4096,1024,778,480],delay:6000,navigation:{arrows:{enable:true,left:{container:"slider",h_align:"left",v_align:"center",h_offset:30,v_offset:0},right:{container:"slider",h_align:"right",v_align:"center",h_offset:30,v_offset:0}},bullets:{style:"",enable:false,container:"slider",hide_onmobile:false,hide_onleave:false,hide_delay:200,hide_under:0,hide_over:9999,tmp:'',direction:"horisontal",space:10,h_align:"center",v_align:"bottom",v_offset:60}},gridwidth:1200,gridheight:635});}}$(window).on('load',function(){var $container=$('.isotope');$('#filters button').on('click',function(){var $this=$(this);if(!$this.hasClass('is-checked')){$this.parents('#options').find('.is-checked').removeClass('is-checked');$this.addClass('is-checked');}var selector=$this.attr('data-filter');$container.isotope({itemSelector:'.item',filter:selector});return false;});$.mad_core.isotope();});var pageCarousel=$('.owl-carousel');if(pageCarousel.length){$('.owl-carousel').not('#thumbnails').each(function(){var max_items=$(this).data('max-items');var tablet_items=max_items;if(max_items>1){tablet_items=max_items-1;}var mobile_items=1;var autoplay_carousel=$(this).data('autoplay');var center_carousel=$(this).data('center');var item_margin=$(this).data('item-margin');$(this).owlCarousel({smartSpeed:450,nav:true,loop:true,autoplay:autoplay_carousel,center:center_carousel,autoplayTimeout:3000,navText:false,margin:item_margin,lazyLoad:true,rtl:$.mad_core.SUPPORT.ISRTL?true:false,responsiveClass:true,responsive:{0:{items:mobile_items},481:{items:tablet_items},992:{items:max_items}}});});$('.custom-owl-prev').on('click',function(){$('.owl-carousel').trigger('prev.owl.carousel');return false;});$('.custom-owl-next').on('click',function(){$('.owl-carousel').trigger('next.owl.carousel');return false;});if($('#thumbnails').length){$('#thumbnails').each(function(){var data=$(this).data();var max_items=$(this).data('max-items');var tablet_items=max_items;if(max_items>1){tablet_items=max_items-1;}var mobile_items=1;var autoplay_carousel=$(this).data('autoplay');$(this).owlCarousel({items:max_items,URLhashListener:false,navSpeed:800,nav:false,loop:false,rtl:$.mad_core.SUPPORT.ISRTL?true:false,navText:false,responsive:{0:{items:tablet_items},481:{items:max_items},1200:{items:max_items}}});});}}try{$.browserSelector();var $html=$('html');if($html.hasClass('chrome')||$html.hasClass('ie11')||$html.hasClass('ie10')){$.smoothScroll();}}catch(err){}if($('.custom-select').length){$('.custom-select').madCustomSelect();}$(window).on("load",function(){var tabs=$('.tabs-section');if(tabs.length){tabs.tabs({beforeActivate:function(event,ui){var hash=ui.newTab.children("li a").attr("href");},hide:{effect:"fadeOut",duration:450},show:{effect:"fadeIn",duration:450},updateHash:false});}var tabs=$('.mad-tabs');if(tabs.length){tabs.MadTabs({easing:'easeOutQuint',speed:600,cssPrefix:'mad-'});}});var subscribe=$('[id^="newsletter"]');subscribe.append('
');var message=$('.message-container-subscribe'),text;subscribe.on('submit',function(e){var self=$(this);if(self.find('input[type="email"]').val()==''){text="Please enter your e-mail!";message.html(''+text+'
'+text+'
'+text+'
'+text+'
'+text+'
Connection to server failed!