function AJAXy(){$(window).trigger("resize"),loadAJAX("return"),loadAJAX("cookie"),loadAJAX("contact"),loadAJAX("l")}!function(){function o(){$(".title").css("display","block")}function a(){$(".title").css("display","none")}function n(e,t){$("form").css("margin-left",e+"%"),$("form").css("margin-top",t+"px !important"),$(".postCard").css("max-width","70%"),$(".leftColumn").css("width","40%")}function i(){$("form").css("margin-left","0px"),$("form").css("margin-top","80px"),$(".postCard").css("max-width","100%"),$(".leftColumn").css("width","100%")}function s(){var s=window.innerHeight,r=window.innerWidth,l=$("form").width(),c=($(".title").width(),100*((r-l)/2)/r),u=$("form").height(),m=(s-u)/2;990>r?a():o(),820>r&&r>700?$("form").css("margin-top","50px"):700>r?i():n(c,m),840>r?(e.smaller(),t.addToPage(t.socialToolbar(),1)):(e.normal(),t.addToPage(t.showroom(),0)),$("img.lazy").lazy({combined:!0,effect:"fadeIn",effectTime:1500})}function l(){$(".leftColumn").eq(0).css("width","40%"),$("input").addClass("goschi"),$("textarea").addClass("goschi"),$(".heading").addClass("justHand"),loadAJAX("contact"),$("#submit").tooltip(!0),$("#footer").addClass("orbitron"),$("body").eq(0).addClass("coda"),$("img[alt='MARKII']").addClass("animated bounceIn"),$(".postCard").addClass("animated rotateInDownLeft"),$(".postCard").css("display","block"),$("footer").addClass("animated fadeInUp"),$("nav").addClass("animated fadeInDown"),window.innerWidth<990?a():o(),setTimeout(function(){correctSVG("svg","gif")},1e3)}function u(){$(".captcha b.first").text(d),$(".captcha b.secound").text(f)}function m(){var e=$("#BotBootInput").val();return e==c?!0:($("#BotBootInput").focus(),alert("Pomnóż obie liczny - Multiply, zamiast dodawania, instead of Adding them!"),!1)}function p(e,t){var o=$(e).val();return o?!0:(alert(t),e.focus(),!1)}function g(e,t){var o=/^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;return $(e).val().match(o)?!0:(alert(t),e.focus(),!1)}function w(e,t){var o=/^[a-zA-Z ]*$/,a=$(e).val().toString();return console.log(a),a.match(o)?!0:(alert(t),e.focus(),!1)}function v(e,t){var o=/^[0-9]+$/,a=$(e).val();return a.match(o)?!0:(alert(t),e.focus(),!1)}function h(e,t,o){var a=$(e).val(),n=a.toString().length;return console.log("elementLenght: ",n),n>=t&&o>=n?!0:(alert("Musisz podać od "+t+", do "+o+" znaków."),e.focus(),!1)}function C(){var e=$("form #name"),t=$("form #email"),o=$("form #number"),a=$("form #msg");return w(e,"Jest coś nie tak z twoim imieniem.")?void(g(t,"Nie podano poprawnego adresu...")&&v(o,"Nie poprawny numer telefonu.")&&h(o,7,11)&&p(a,"Napisz cos do mnie.")&&m()&&(b=!0)):!1}cookieAlert();var e=new menuBars,t=new socialMenu;$(window).bind("resize",function(){s()}),console.log(""===document.createElement("detect").style.mixBlendMode?"supports blending modes":"does not supports blending modes"),$(window).on("mousemove",function(e){$("body").css("backgroundPosition","-"+e.pageX/12+"px")});var d=Math.ceil(10*Math.random()),f=Math.ceil(10*Math.random()),c=d*f,b=!1;$("#form").on("submit",function(e){b||(e.preventDefault(),C())}),$(window).load(function(){u(),l(),$(window).trigger("resize")})}();