var Constructzilla=function(){var siteUrl='';var screenWidth=$(window).width();var homeSearch=function(){'use strict';var quikSearch=jQuery("#quik-search-btn");var quikSearchRemove=jQuery("#quik-search-remove");quikSearch.on('click',function(){jQuery('.dez-quik-search').animate({'width':'100%'});jQuery('.dez-quik-search').delay(500).css({'left':'0'})});quikSearchRemove.on('click',function(){jQuery('.dez-quik-search').animate({'width':'0%','right':'0'});jQuery('.dez-quik-search').css({'left':'auto'})})}
var cartButton=function(){$(".item-close").on('click',function(){$(this).closest(".cart-item").hide('500')});$('.cart-btn').unbind().on('click',function(){$(".cart-list").slideToggle('slow')})}
var onePageLayout=function(){'use strict';var headerHeight=parseInt($('.onepage').css('height'),10);$(".scroll").unbind().on('click',function(event){event.preventDefault();if(this.hash!==""){var hash=this.hash;var seactionPosition=$(hash).offset().top;var headerHeight=parseInt($('.onepage').css('height'),10);$('body').scrollspy({target:".navbar",offset:headerHeight+2});var scrollTopPosition=seactionPosition-(headerHeight);$('html, body').animate({scrollTop:scrollTopPosition},800,function(){})}});$('body').scrollspy({target:".navbar",offset:headerHeight+2})}
var dzTheme=function(){'use strict';var loadingImage='<img src="images/loading.gif">';jQuery('.dzload').each(function(){var dzsrc=siteUrl+$(this).attr('dzsrc');jQuery(this).hide(function(){jQuery(this).on('load',dzsrc,function(){jQuery(this).fadeIn('slow')})})});if(screenWidth<991){var logoData=jQuery('<div>').append($('.mo-left .logo-header').clone()).html();jQuery('.mo-left .header-nav').prepend(logoData);jQuery('.mo-left .header-nav .logo-header > a > img').attr('src','images/logo.png');jQuery('.mo-left.lw .header-nav .logo-header > a > img').attr('src','images/logo-white.png');jQuery('.mo-left .header-nav .logo-header.dark > a > img').attr('src','images/logo-black.png')}}
var MagnificPopup=function(){'use strict';jQuery('.mfp-gallery').magnificPopup({delegate:'.mfp-link',type:'image',tLoading:'Loading image #%curr%...',mainClass:'mfp-img-mobile',gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1]},image:{tError:'<a href="%url%">The image #%curr%</a> could not be loaded.',titleSrc:function(item){return item.el.attr('title')+'<small></small>'}},callbacks:{imageLoadComplete:function(){setTimeout(function(){jQuery('.mfp-gallery').magnificPopup('next')},4000)}}})}
var scrollTop=function(){'use strict';var scrollTop=jQuery("button.scroltop");scrollTop.on('click',function(){jQuery("html, body").animate({scrollTop:0},1000);return!1})
jQuery(window).bind("scroll",function(){var scroll=jQuery(window).scrollTop();if(scroll>900){jQuery("button.scroltop").fadeIn(1000)}else{jQuery("button.scroltop").fadeOut(1000)}})}
var handleAccordian=function(){jQuery('#accordion').on('hidden.bs.collapse',function(e){jQuery(e.target).prev('.panel-heading').find("i.indicator").toggleClass('glyphicon-minus glyphicon-plus')});jQuery('#accordion').on('shown.bs.collapse',function(e){jQuery(e.target).prev('.panel-heading').find("i.indicator").toggleClass('glyphicon-minus glyphicon-plus')})}
var handlePlaceholder=function(){jQuery.support.placeholder=('placeholder' in document.createElement('input'));if(!jQuery.support.placeholder){jQuery("[placeholder]").focus(function(){if(jQuery(this).val()==jQuery(this).attr("placeholder"))jQuery(this).val("")}).blur(function(){if(jQuery(this).val()=="")jQuery(this).val(jQuery(this).attr("placeholder"))}).blur();jQuery("[placeholder]").parents("form").submit(function(){jQuery(this).find('[placeholder]').each(function(){if(jQuery(this).val()==jQuery(this).attr("placeholder")){jQuery(this).val("")}})})}}
var equalHeight=function(container){if(jQuery(container).length==0){return!1}
var currentTallest=0,currentRowStart=0,rowDivs=new Array(),$el,topPosition=0;$(container).each(function(){$el=$(this);$($el).height('auto')
topPostion=$el.position().top;if(currentRowStart!=topPostion){for(currentDiv=0;currentDiv<rowDivs.length;currentDiv++){rowDivs[currentDiv].height(currentTallest)}
rowDivs.length=0;currentRowStart=topPostion;currentTallest=$el.height();rowDivs.push($el)}else{rowDivs.push($el);currentTallest=(currentTallest<$el.height())?($el.height()):(currentTallest)}
for(currentDiv=0;currentDiv<rowDivs.length;currentDiv++){rowDivs[currentDiv].height(currentTallest)}})}
var footerAlign=function(){'use strict';jQuery('.site-footer').css('display','block');jQuery('.site-footer').css('height','auto');var footerHeight=jQuery('.site-footer').outerHeight();jQuery('.footer-fixed > .page-wraper').css('padding-bottom',footerHeight);jQuery('.site-footer').css('height',footerHeight)}
var fileInput=function(){'use strict';jQuery(document).on('change','.btn-file :file',function(){var input=jQuery(this);var numFiles=input.get(0).files?input.get(0).files.length:1;var label=input.val().replace(/\\/g,'https://constructzilla.dexignzone.com/').replace(/.*\//,'');input.trigger('fileselect',[numFiles,label])});jQuery('.btn-file :file').on('fileselect',function(event,numFiles,label){input=jQuery(this).parents('.input-group').find(':text');var log=numFiles>10?numFiles+' files selected':label;if(input.length){input.val(log)}else{if(log)alert(log)}})}
var headerFix=function(){'use strict';jQuery(window).bind('scroll',function(){if(jQuery('.sticky-header').length){var menu=jQuery('.sticky-header');if($(window).scrollTop()>menu.offset().top){menu.addClass('is-fixed')}else{menu.removeClass('is-fixed')}}})}
var masonryBox=function(){'use strict';if(jQuery('#masonry, .masonry').length){var self=$("#masonry, .masonry");if(jQuery('.card-container').length){self.imagesLoaded(function(){self.masonry({gutterWidth:15,isAnimated:!0,itemSelector:".card-container"})})}}
if(jQuery('.filters').length){jQuery(".filters").on('click','li',function(e){e.preventDefault();var filter=$(this).attr("data-filter");self.masonryFilter({filter:function(){if(!filter)return!0;return $(this).hasClass(filter)}})})}}
var handleMasonryFilter=function(){'use strict';if(jQuery('#masonry1').length){var masonry1=$("#masonry1");masonry1.imagesLoaded(function(){masonry1.masonry({gutterWidth:15,isAnimated:!0,itemSelector:".card-container"})});jQuery(".filters1").on('click','li',function(e){e.preventDefault();var filter=$(this).attr("data-filter");masonry1.masonryFilter({filter:function(){if(!filter)return!0;return $(this).hasClass(filter)}})})}
if(jQuery('#masonry2').length){var masonry2=$("#masonry2");masonry2.imagesLoaded(function(){masonry2.masonry({gutterWidth:15,isAnimated:!0,itemSelector:".card-container"})});jQuery(".filters2").on('click','li',function(e){e.preventDefault();var filter=$(this).attr("data-filter");masonry2.masonryFilter({filter:function(){if(!filter)return!0;return $(this).hasClass(filter)}})})}}
var setDivHeight=function(){'use strict';var allHeights=[];jQuery('.dzseth > div, .dzseth .img-cover, .dzseth .seth').each(function(e){allHeights.push(jQuery(this).height())})
jQuery('.dzseth > div, .dzseth .img-cover, .dzseth .seth').each(function(e){var maxHeight=Math.max.apply(Math,allHeights);jQuery(this).css('height',maxHeight)})
allHeights=[];if(screenWidth<991){jQuery('.dzseth > div, .dzseth .img-cover, .dzseth .seth').each(function(e){jQuery(this).css('height','')})}}
var counter=function(){if(jQuery('.counter').length){jQuery('.counter').counterUp({delay:10,time:3000})}}
var handleVideo=function(){jQuery('iframe[src*="youtube.com"]').wrap('<div class="embed-responsive embed-responsive-16by9"></div>');jQuery('iframe[src*="vimeo.com"]').wrap('<div class="embed-responsive embed-responsive-16by9"></div>')}
var handleFilterMasonary=function(){if(jQuery('#image-gallery-mix').length){jQuery('.gallery-filter').find('li').each(function(){$(this).addClass('filter')});jQuery('#image-gallery-mix').mixItUp()};if(jQuery('.gallery-filter.masonary').length){jQuery('.gallery-filter.masonary').on('click','span',function(){var selector=$(this).parent().attr('data-filter');jQuery('.gallery-filter.masonary span').parent().removeClass('active');jQuery(this).parent().addClass('active');jQuery('#image-gallery-isotope').isotope({filter:selector});return!1})}}
var handleBootstrapSelect=function(){if(jQuery('select').length){jQuery('select').selectpicker()}}
var handleBootstrapTouchSpin=function(){jQuery("input[name='demo_vertical2']").TouchSpin({verticalbuttons:!0,verticalupclass:'ti-plus',verticaldownclass:'ti-minus'})}
var handleBannerResize=function(){$(".full-height").css("height",$(window).height())}
var handleCountDown=function(WebsiteLaunchDate){if($(".countdown").length){$('.countdown').countdown({date:WebsiteLaunchDate+' 23:5'},function(){$('.countdown').text('we are live')})}}
var handleCustomScroll=function(){if((screenWidth>768)&&$(".content-scroll").length>0){$(".content-scroll").mCustomScrollbar({setWidth:!1,setHeight:!1,axis:"y"})}}
var wow_animation=function(){if($('.wow').length>0){var wow=new WOW({boxClass:'wow',animateClass:'animated',offset:50,mobile:!1});wow.init()}}
var handleSideBarMenu=function(){$('.openbtn').on('click',function(e){e.preventDefault();if($('#mySidenav').length>0){document.getElementById("mySidenav").style.left="0"}
if($('#mySidenav1').length>0){document.getElementById("mySidenav1").style.right="0"}})
$('.closebtn').on('click',function(e){e.preventDefault();if($('#mySidenav').length>0){document.getElementById("mySidenav").style.left="-300px"}
if($('#mySidenav1').length>0){document.getElementById("mySidenav1").style.right="-820px"}})}
var priceslider=function(){if($(".price-slide, .price-slide-2").length>0){$("#slider-range,#slider-range-2").slider({range:!0,min:300,max:4000,values:[0,5000],slide:function(event,ui){var min=ui.values[0],max=ui.values[1];$('#'+this.id).prev().val("$"+min+" - $"+max)}})}}
var handleBGElements=function(){if(screenWidth>1023){if(jQuery('.bgeffect').length){var s=skrollr.init({edgeStrategy:'set',easing:{WTF:Math.random,inverted:function(p){return 1-p}}})}}}
var boxHover=function(){jQuery('.box-hover').on('mouseenter',function(){jQuery('.box-hover').removeClass('active');jQuery(this).addClass('active')})}
var reposition=function(){'use strict';var modal=jQuery(this),dialog=modal.find('.modal-dialog');modal.css('display','block');dialog.css("margin-top",Math.max(0,(jQuery(window).height()-dialog.height())/2))}
var handelResize=function(){jQuery(window).on('resize',function(){jQuery('.modal:visible').each(reposition);equalHeight('.equal-wraper .equal-col');footerAlign()})}
var handleSupport=function(){var support='<a href="whatsapp://send?text=&phone=+436767756110" target="_blank" class="bt-whatsapp theme-btn"><i class="fa fa-whatsapp"></i><span>WhatsApp</span></a><a href="tel:+4318906648" target="_blank" class="bt-buy-now theme-btn"><i class="fa fa-phone"></i><span>+43 1 890 66 48</span></a><a href="mailto:office@efebau.at" target="_blank" class="bt-support-now theme-btn"><i class="fa fa-envelope"></i><span>office@efebau.at</span></a>';jQuery('body').append(support)}
var WebsiteLaunchDate=new Date();monthNames=["January","February","March","April","May","June","July","August","September","October","November","December"];WebsiteLaunchDate.setMonth(WebsiteLaunchDate.getMonth()+1);WebsiteLaunchDate=WebsiteLaunchDate.getDate()+" "+monthNames[WebsiteLaunchDate.getMonth()]+" "+WebsiteLaunchDate.getFullYear();var lightGallery=function(){if(($('#lightgallery, .lightgallery').length>0)){$('#lightgallery, .lightgallery').lightGallery({selector:'.check-km',loop:!0,thumbnail:!0,exThumbImage:'data-exthumbimage'})}}
return{init:function(){boxHover();wow_animation();priceslider();onePageLayout();dzTheme();homeSearch();MagnificPopup();handleAccordian();scrollTop();handlePlaceholder();footerAlign();fileInput();headerFix();setDivHeight();handleVideo();handleFilterMasonary();handleCountDown(WebsiteLaunchDate);handleCustomScroll();handleSideBarMenu();cartButton();handleBannerResize();handleSupport();handelResize();lightGallery();jQuery('.modal').on('show.bs.modal',reposition)},handleMasonryFilter:function(){handleMasonryFilter()},load:function(){handleBGElements();handleBootstrapSelect();handleBootstrapTouchSpin();equalHeight('.equal-wraper .equal-col');equalHeight('.equal-wraper2 .equal-col');equalHeight('.equal-wraper3 .equal-col');equalHeight('.equal-wraper4 .equal-col');counter();masonryBox()}}}();jQuery(document).ready(function(){$('#lightgallery').lightGallery({selector:'.link'});Constructzilla.init();var screenWidth=jQuery(window).width();if(screenWidth<=991){jQuery('.navbar-nav > li > a, .sub-menu > li > a').on('click',function(e){if(jQuery(this).parent().hasClass('open')){jQuery(this).parent().removeClass('open')}else{jQuery(this).parent().parent().find('li').removeClass('open');jQuery(this).parent().addClass('open')}})}
jQuery('.navicon').on('click',function(){$(this).toggleClass('open')});jQuery('a[data-toggle="tab"]').on('click',function(){$('a[data-toggle="tab"]').on('click',function(){$($(this).attr('href')).show().addClass('show active').siblings().hide()})})});jQuery(window).on("load",function(e){Constructzilla.load();setTimeout(function(){jQuery('#loading-area').remove()},0)});jQuery(document).ready(function(){'use strict';dz_rev_slider_1()})