$(function(){var i=$("#contact-form"),o=$(".form-messege");$(i).submit(function(t){t.preventDefault();var e=$(i).serialize();$.ajax({type:"POST",url:$(i).attr("action"),data:e}).done(function(t){$(o).removeClass("error"),$(o).addClass("success"),$(o).text(t),$("#contact-form input,#contact-form textarea").val("")}).fail(function(t){$(o).removeClass("success"),$(o).addClass("error"),""!==t.responseText?$(o).text(t.responseText):$(o).text("Oops! An error occured and your message could not be sent.")})})}),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(n){"use strict";function i(m){return function(t){var e,i,o,n,s,r,a=t.match(/%(-|!)?[A-Z]{1}(:[^;]+;)?/gi);if(a)for(var l=0,c=a.length;l=this.finalDate,this.offset={seconds:this.totalSecsLeft%60,minutes:Math.floor(this.totalSecsLeft/60)%60,hours:Math.floor(this.totalSecsLeft/60/60)%24,days:Math.floor(this.totalSecsLeft/60/60/24)%7,daysToWeek:Math.floor(this.totalSecsLeft/60/60/24)%7,daysToMonth:Math.floor(this.totalSecsLeft/60/60/24%30.4368),weeks:Math.floor(this.totalSecsLeft/60/60/24/7),weeksToMonth:Math.floor(this.totalSecsLeft/60/60/24/7)%4,months:Math.floor(this.totalSecsLeft/60/60/24/30.4368),years:Math.abs(this.finalDate.getFullYear()-t.getFullYear()),totalDays:Math.floor(this.totalSecsLeft/60/60/24),totalHours:Math.floor(this.totalSecsLeft/60/60),totalMinutes:Math.floor(this.totalSecsLeft/60),totalSeconds:this.totalSecsLeft},void(this.options.elapse||0!==this.totalSecsLeft?this.dispatchEvent("update"):(this.stop(),this.dispatchEvent("finish"))))}this.remove()},dispatchEvent:function(t){var e=n.Event(t+".countdown");e.finalDate=this.finalDate,e.elapsed=this.elapsed,e.offset=n.extend({},this.offset),e.strftime=i(this.offset),this.$el.trigger(e)}}),n.fn.countdown=function(){var o=Array.prototype.slice.call(arguments,0);return this.each(function(){var t,e,i=n(this).data("countdown-instance");void 0!==i?(t=s[i],e=o[0],r.prototype.hasOwnProperty(e)?t[e].apply(t,o.slice(1)):null===String(e).match(/^[$A-Z_][0-9A-Z_$]*$/i)?(t.setFinalDate.call(t,e),t.start()):n.error("Method %s does not exist on jQuery.countdown".replace(/\%s/gi,e))):new r(this,o[0],o[1])})}}),function(t,e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(t){e(t)}):"object"==typeof module&&module.exports?module.exports=t.EasyZoom=e(require("jquery")):t.EasyZoom=e(t.jQuery)}(this,function(o){"use strict";var c,d,u,h,p,f,i={loadingNotice:"Loading image",errorNotice:"The image could not be loaded",errorDuration:2500,linkAttribute:"href",preventClicks:!0,beforeShow:o.noop,beforeHide:o.noop,onShow:o.noop,onHide:o.noop,onMove:o.noop};function n(t,e){this.$target=o(t),this.opts=o.extend({},i,e,this.$target.data()),void 0===this.isOpen&&this._init()}return n.prototype._init=function(){this.$link=this.$target.find("a"),this.$image=this.$target.find("img"),this.$flyout=o('
'),this.$notice=o('
'),this.$target.on({"mousemove.easyzoom touchmove.easyzoom":o.proxy(this._onMove,this),"mouseleave.easyzoom touchend.easyzoom":o.proxy(this._onLeave,this),"mouseenter.easyzoom touchstart.easyzoom":o.proxy(this._onEnter,this)}),this.opts.preventClicks&&this.$target.on("click.easyzoom",function(t){t.preventDefault()})},n.prototype.show=function(t,e){var i=this;if(!1!==this.opts.beforeShow.call(this)){if(!this.isReady)return this._loadImage(this.$link.attr(this.opts.linkAttribute),function(){!i.isMouseOver&&e||i.show(t)});this.$target.append(this.$flyout);var o=this.$target.outerWidth(),n=this.$target.outerHeight(),s=this.$flyout.width(),r=this.$flyout.height(),a=this.$zoom.width(),l=this.$zoom.height();(c=a-s)<0&&(c=0),(d=l-r)<0&&(d=0),u=c/o,h=d/n,this.isOpen=!0,this.opts.onShow.call(this),t&&this._move(t)}},n.prototype._onEnter=function(t){var e=t.originalEvent.touches;this.isMouseOver=!0,e&&1!=e.length||(t.preventDefault(),this.show(t,!0))},n.prototype._onMove=function(t){this.isOpen&&(t.preventDefault(),this._move(t))},n.prototype._onLeave=function(){this.isMouseOver=!1,this.isOpen&&this.hide()},n.prototype._onLoad=function(t){t.currentTarget.width&&(this.isReady=!0,this.$notice.detach(),this.$flyout.html(this.$zoom),this.$target.removeClass("is-loading").addClass("is-ready"),t.data.call&&t.data())},n.prototype._onError=function(){var t=this;this.$notice.text(this.opts.errorNotice),this.$target.removeClass("is-loading").addClass("is-error"),this.detachNotice=setTimeout(function(){t.$notice.detach(),t.detachNotice=null},this.opts.errorDuration)},n.prototype._loadImage=function(t,e){var i=new Image;this.$target.addClass("is-loading").append(this.$notice.text(this.opts.loadingNotice)),this.$zoom=o(i).on("error",o.proxy(this._onError,this)).on("load",e,o.proxy(this._onLoad,this)),i.style.position="absolute",i.src=t},n.prototype._move=function(t){var e;f=0===t.type.indexOf("touch")?(e=t.touches||t.originalEvent.touches,p=e[0].pageX,e[0].pageY):(p=t.pageX||p,t.pageY||f);var i,o,n=this.$target.offset(),s=f-n.top,r=p-n.left,a=Math.ceil(s*h),l=Math.ceil(r*u);l<0||a<0||cS&&(h=h.slice(0,S)),r=document.createDocumentFragment(),null!=this.options.filter&&"function"==typeof this.options.filter&&(h=this._filter(h,this.options.filter)),null!=this.options.template&&"string"==typeof this.options.template){for(a="",I=document.createElement("div"),l=0,w=h.length;l