Warning: Cannot modify header information - headers already sent by (output started at /home/plastkar/ftp/plastkar/wp-config.php:1) in /home/plastkar/ftp/plastkar/wp-content/plugins/w3-total-cache/lib/Minify/Minify.php on line 385

Warning: Cannot modify header information - headers already sent by (output started at /home/plastkar/ftp/plastkar/wp-config.php:1) in /home/plastkar/ftp/plastkar/wp-content/plugins/w3-total-cache/lib/Minify/Minify.php on line 385

Warning: Cannot modify header information - headers already sent by (output started at /home/plastkar/ftp/plastkar/wp-config.php:1) in /home/plastkar/ftp/plastkar/wp-content/plugins/w3-total-cache/lib/Minify/Minify.php on line 385

Warning: Cannot modify header information - headers already sent by (output started at /home/plastkar/ftp/plastkar/wp-config.php:1) in /home/plastkar/ftp/plastkar/wp-content/plugins/w3-total-cache/lib/Minify/Minify.php on line 385

Warning: Cannot modify header information - headers already sent by (output started at /home/plastkar/ftp/plastkar/wp-config.php:1) in /home/plastkar/ftp/plastkar/wp-content/plugins/w3-total-cache/lib/Minify/Minify.php on line 385

Warning: Cannot modify header information - headers already sent by (output started at /home/plastkar/ftp/plastkar/wp-config.php:1) in /home/plastkar/ftp/plastkar/wp-content/plugins/w3-total-cache/lib/Minify/Minify.php on line 385

Warning: Cannot modify header information - headers already sent by (output started at /home/plastkar/ftp/plastkar/wp-config.php:1) in /home/plastkar/ftp/plastkar/wp-content/plugins/w3-total-cache/lib/Minify/Minify.php on line 385
(function(){var elements=document.getElementsByClassName('auto-aspect-ratio');if(elements.length){for(var i=0;i10){this.style.width=newWidth+'px';}}} var resizeFn=resizeElement.bind(element);resizeFn();window.addEventListener('resize',resizeFn)}}})(); ;/*! * Bootstrap v3.1.1 (http://getbootstrap.com) * Copyright 2011-2014 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one(a.support.transition.end,function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b()})}(jQuery),+function(a){"use strict";var b='[data-dismiss="alert"]',c=function(c){a(c).on("click",b,this.close)};c.prototype.close=function(b){function c(){f.trigger("closed.bs.alert").remove()}var d=a(this),e=d.attr("data-target");e||(e=d.attr("href"),e=e&&e.replace(/.*(?=#[^\s]*$)/,""));var f=a(e);b&&b.preventDefault(),f.length||(f=d.hasClass("alert")?d:d.parent()),f.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(f.removeClass("in"),a.support.transition&&f.hasClass("fade")?f.one(a.support.transition.end,c).emulateTransitionEnd(150):c())};var d=a.fn.alert;a.fn.alert=function(b){return this.each(function(){var d=a(this),e=d.data("bs.alert");e||d.data("bs.alert",e=new c(this)),"string"==typeof b&&e[b].call(d)})},a.fn.alert.Constructor=c,a.fn.alert.noConflict=function(){return a.fn.alert=d,this},a(document).on("click.bs.alert.data-api",b,c.prototype.close)}(jQuery),+function(a){"use strict";var b=function(c,d){this.$element=a(c),this.options=a.extend({},b.DEFAULTS,d),this.isLoading=!1};b.DEFAULTS={loadingText:"loading..."},b.prototype.setState=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="Text",f.resetText||d.data("resetText",d[e]()),d[e](f[b]||this.options[b]),setTimeout(a.proxy(function(){"loadingText"==b?(this.isLoading=!0,d.addClass(c).attr(c,c)):this.isLoading&&(this.isLoading=!1,d.removeClass(c).removeAttr(c))},this),0)},b.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")&&(c.prop("checked")&&this.$element.hasClass("active")?a=!1:b.find(".active").removeClass("active")),a&&c.prop("checked",!this.$element.hasClass("active")).trigger("change")}a&&this.$element.toggleClass("active")};var c=a.fn.button;a.fn.button=function(c){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof c&&c;e||d.data("bs.button",e=new b(this,f)),"toggle"==c?e.toggle():c&&e.setState(c)})},a.fn.button.Constructor=b,a.fn.button.noConflict=function(){return a.fn.button=c,this},a(document).on("click.bs.button.data-api","[data-toggle^=button]",function(b){var c=a(b.target);c.hasClass("btn")||(c=c.closest(".btn")),c.button("toggle"),b.preventDefault()})}(jQuery),+function(a){"use strict";var b=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=this.sliding=this.interval=this.$active=this.$items=null,"hover"==this.options.pause&&this.$element.on("mouseenter",a.proxy(this.pause,this)).on("mouseleave",a.proxy(this.cycle,this))};b.DEFAULTS={interval:5e3,pause:"hover",wrap:!0},b.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},b.prototype.getActiveIndex=function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},b.prototype.to=function(b){var c=this,d=this.getActiveIndex();return b>this.$items.length-1||0>b?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){c.to(b)}):d==b?this.pause().cycle():this.slide(b>d?"next":"prev",a(this.$items[b]))},b.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},b.prototype.next=function(){return this.sliding?void 0:this.slide("next")},b.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},b.prototype.slide=function(b,c){var d=this.$element.find(".item.active"),e=c||d[b](),f=this.interval,g="next"==b?"left":"right",h="next"==b?"first":"last",i=this;if(!e.length){if(!this.options.wrap)return;e=this.$element.find(".item")[h]()}if(e.hasClass("active"))return this.sliding=!1;var j=a.Event("slide.bs.carousel",{relatedTarget:e[0],direction:g});return this.$element.trigger(j),j.isDefaultPrevented()?void 0:(this.sliding=!0,f&&this.pause(),this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid.bs.carousel",function(){var b=a(i.$indicators.children()[i.getActiveIndex()]);b&&b.addClass("active")})),a.support.transition&&this.$element.hasClass("slide")?(e.addClass(b),e[0].offsetWidth,d.addClass(g),e.addClass(g),d.one(a.support.transition.end,function(){e.removeClass([b,g].join(" ")).addClass("active"),d.removeClass(["active",g].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger("slid.bs.carousel")},0)}).emulateTransitionEnd(1e3*d.css("transition-duration").slice(0,-1))):(d.removeClass("active"),e.addClass("active"),this.sliding=!1,this.$element.trigger("slid.bs.carousel")),f&&this.cycle(),this)};var c=a.fn.carousel;a.fn.carousel=function(c){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},b.DEFAULTS,d.data(),"object"==typeof c&&c),g="string"==typeof c?c:f.slide;e||d.data("bs.carousel",e=new b(this,f)),"number"==typeof c?e.to(c):g?e[g]():f.interval&&e.pause().cycle()})},a.fn.carousel.Constructor=b,a.fn.carousel.noConflict=function(){return a.fn.carousel=c,this},a(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(b){var c,d=a(this),e=a(d.attr("data-target")||(c=d.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"")),f=a.extend({},e.data(),d.data()),g=d.attr("data-slide-to");g&&(f.interval=!1),e.carousel(f),(g=d.attr("data-slide-to"))&&e.data("bs.carousel").to(g),b.preventDefault()}),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var b=a(this);b.carousel(b.data())})})}(jQuery),+function(a){"use strict";var b=function(c,d){this.$element=a(c),this.options=a.extend({},b.DEFAULTS,d),this.transitioning=null,this.options.parent&&(this.$parent=a(this.options.parent)),this.options.toggle&&this.toggle()};b.DEFAULTS={toggle:!0},b.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},b.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b=a.Event("show.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.$parent&&this.$parent.find("> .panel > .in");if(c&&c.length){var d=c.data("bs.collapse");if(d&&d.transitioning)return;c.collapse("hide"),d||c.data("bs.collapse",null)}var e=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[e](0),this.transitioning=1;var f=function(){this.$element.removeClass("collapsing").addClass("collapse in")[e]("auto"),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return f.call(this);var g=a.camelCase(["scroll",e].join("-"));this.$element.one(a.support.transition.end,a.proxy(f,this)).emulateTransitionEnd(350)[e](this.$element[0][g])}}},b.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var d=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};return a.support.transition?void this.$element[c](0).one(a.support.transition.end,a.proxy(d,this)).emulateTransitionEnd(350):d.call(this)}}},b.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var c=a.fn.collapse;a.fn.collapse=function(c){return this.each(function(){var d=a(this),e=d.data("bs.collapse"),f=a.extend({},b.DEFAULTS,d.data(),"object"==typeof c&&c);!e&&f.toggle&&"show"==c&&(c=!c),e||d.data("bs.collapse",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.collapse.Constructor=b,a.fn.collapse.noConflict=function(){return a.fn.collapse=c,this},a(document).on("click.bs.collapse.data-api","[data-toggle=collapse]",function(b){var c,d=a(this),e=d.attr("data-target")||b.preventDefault()||(c=d.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,""),f=a(e),g=f.data("bs.collapse"),h=g?"toggle":d.data(),i=d.attr("data-parent"),j=i&&a(i);g&&g.transitioning||(j&&j.find('[data-toggle=collapse][data-parent="'+i+'"]').not(d).addClass("collapsed"),d[f.hasClass("in")?"addClass":"removeClass"]("collapsed")),f.collapse(h)})}(jQuery),+function(a){"use strict";function b(b){a(d).remove(),a(e).each(function(){var d=c(a(this)),e={relatedTarget:this};d.hasClass("open")&&(d.trigger(b=a.Event("hide.bs.dropdown",e)),b.isDefaultPrevented()||d.removeClass("open").trigger("hidden.bs.dropdown",e))})}function c(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}var d=".dropdown-backdrop",e="[data-toggle=dropdown]",f=function(b){a(b).on("click.bs.dropdown",this.toggle)};f.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=c(e),g=f.hasClass("open");if(b(),!g){"ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a(''}),b.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),b.prototype.constructor=b,b.prototype.getDefaults=function(){return b.DEFAULTS},b.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content")[this.options.html?"string"==typeof c?"html":"append":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},b.prototype.hasContent=function(){return this.getTitle()||this.getContent()},b.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},b.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},b.prototype.tip=function(){return this.$tip||(this.$tip=a(this.options.template)),this.$tip};var c=a.fn.popover;a.fn.popover=function(c){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof c&&c;(e||"destroy"!=c)&&(e||d.data("bs.popover",e=new b(this,f)),"string"==typeof c&&e[c]())})},a.fn.popover.Constructor=b,a.fn.popover.noConflict=function(){return a.fn.popover=c,this}}(jQuery),+function(a){"use strict";function b(c,d){var e,f=a.proxy(this.process,this);this.$element=a(a(c).is("body")?window:c),this.$body=a("body"),this.$scrollElement=this.$element.on("scroll.bs.scroll-spy.data-api",f),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||(e=a(c).attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.offsets=a([]),this.targets=a([]),this.activeTarget=null,this.refresh(),this.process()}b.DEFAULTS={offset:10},b.prototype.refresh=function(){var b=this.$element[0]==window?"offset":"position";this.offsets=a([]),this.targets=a([]);{var c=this;this.$body.find(this.selector).map(function(){var d=a(this),e=d.data("target")||d.attr("href"),f=/^#./.test(e)&&a(e);return f&&f.length&&f.is(":visible")&&[[f[b]().top+(!a.isWindow(c.$scrollElement.get(0))&&c.$scrollElement.scrollTop()),e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){c.offsets.push(this[0]),c.targets.push(this[1])})}},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,d=c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(b>=d)return g!=(a=f.last()[0])&&this.activate(a);if(g&&b<=e[0])return g!=(a=f[0])&&this.activate(a);for(a=e.length;a--;)g!=f[a]&&b>=e[a]&&(!e[a+1]||b<=e[a+1])&&this.activate(f[a])},b.prototype.activate=function(b){this.activeTarget=b,a(this.selector).parentsUntil(this.options.target,".active").removeClass("active");var c=this.selector+'[data-target="'+b+'"],'+this.selector+'[href="'+b+'"]',d=a(c).parents("li").addClass("active");d.parent(".dropdown-menu").length&&(d=d.closest("li.dropdown").addClass("active")),d.trigger("activate.bs.scrollspy")};var c=a.fn.scrollspy;a.fn.scrollspy=function(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.scrollspy.Constructor=b,a.fn.scrollspy.noConflict=function(){return a.fn.scrollspy=c,this},a(window).on("load",function(){a('[data-spy="scroll"]').each(function(){var b=a(this);b.scrollspy(b.data())})})}(jQuery),+function(a){"use strict";var b=function(b){this.element=a(b)};b.prototype.show=function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.data("target");if(d||(d=b.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,"")),!b.parent("li").hasClass("active")){var e=c.find(".active:last a")[0],f=a.Event("show.bs.tab",{relatedTarget:e});if(b.trigger(f),!f.isDefaultPrevented()){var g=a(d);this.activate(b.parent("li"),c),this.activate(g,g.parent(),function(){b.trigger({type:"shown.bs.tab",relatedTarget:e})})}}},b.prototype.activate=function(b,c,d){function e(){f.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),b.addClass("active"),g?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu")&&b.closest("li.dropdown").addClass("active"),d&&d()}var f=c.find("> .active"),g=d&&a.support.transition&&f.hasClass("fade");g?f.one(a.support.transition.end,e).emulateTransitionEnd(150):e(),f.removeClass("in")};var c=a.fn.tab;a.fn.tab=function(c){return this.each(function(){var d=a(this),e=d.data("bs.tab");e||d.data("bs.tab",e=new b(this)),"string"==typeof c&&e[c]()})},a.fn.tab.Constructor=b,a.fn.tab.noConflict=function(){return a.fn.tab=c,this},a(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(b){b.preventDefault(),a(this).tab("show")})}(jQuery),+function(a){"use strict";var b=function(c,d){this.options=a.extend({},b.DEFAULTS,d),this.$window=a(window).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(c),this.affixed=this.unpin=this.pinnedOffset=null,this.checkPosition()};b.RESET="affix affix-top affix-bottom",b.DEFAULTS={offset:0},b.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(b.RESET).addClass("affix");var a=this.$window.scrollTop(),c=this.$element.offset();return this.pinnedOffset=c.top-a},b.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},b.prototype.checkPosition=function(){if(this.$element.is(":visible")){var c=a(document).height(),d=this.$window.scrollTop(),e=this.$element.offset(),f=this.options.offset,g=f.top,h=f.bottom;"top"==this.affixed&&(e.top+=d),"object"!=typeof f&&(h=g=f),"function"==typeof g&&(g=f.top(this.$element)),"function"==typeof h&&(h=f.bottom(this.$element));var i=null!=this.unpin&&d+this.unpin<=e.top?!1:null!=h&&e.top+this.$element.height()>=c-h?"bottom":null!=g&&g>=d?"top":!1;if(this.affixed!==i){this.unpin&&this.$element.css("top","");var j="affix"+(i?"-"+i:""),k=a.Event(j+".bs.affix");this.$element.trigger(k),k.isDefaultPrevented()||(this.affixed=i,this.unpin="bottom"==i?this.getPinnedOffset():null,this.$element.removeClass(b.RESET).addClass(j).trigger(a.Event(j.replace("affix","affixed"))),"bottom"==i&&this.$element.offset({top:c-h-this.$element.height()}))}}};var c=a.fn.affix;a.fn.affix=function(c){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof c&&c;e||d.data("bs.affix",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.affix.Constructor=b,a.fn.affix.noConflict=function(){return a.fn.affix=c,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var b=a(this),c=b.data();c.offset=c.offset||{},c.offsetBottom&&(c.offset.bottom=c.offsetBottom),c.offsetTop&&(c.offset.top=c.offsetTop),b.affix(c)})})}(jQuery); ;/* _ _ _____ _ _ | | | __ \ | | (_) ___ ___ _ __ ___ | | | |__) |_____ _____ __ _| | _ ___ / __|/ __| '__/ _ \| | | _ // _ \ \ / / _ \/ _` | | | / __| \__ \ (__| | | (_) | | | | \ \ __/\ V / __/ (_| | |_| \__ \ |___/\___|_| \___/|_|_|_| \_\___| \_/ \___|\__,_|_(_) |___/ _/ | |__/ "Declarative on-scroll reveal animations." /*============================================================================= scrollReveal.js is inspired by cbpScroller.js, © 2014, Codrops. Licensed under the MIT license. http://www.opensource.org/licenses/mit-license.php scrollReveal.js, © 2014 https://twitter.com/julianlloyd =============================================================================*/ !function(t){"use strict";function e(){var e=o.clientHeight,i=t.innerHeight;return i>e?i:e}function i(t){var e=0,i=0;do isNaN(t.offsetTop)||(e+=t.offsetTop),isNaN(t.offsetLeft)||(i+=t.offsetLeft);while(t=t.offsetParent);return{top:e,left:i}}function a(a,n){var r=t.pageYOffset,o=r+e(),s=a.offsetHeight,l=i(a).top,u=l+s,n=n||0;return o>=l+s*n&&u>=r}function n(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function r(t){this.options=n(this.defaults,t),this._init()}var o=t.document.documentElement;r.prototype={defaults:{axis:"y",distance:"60px",duration:"0.55s",delay:"0.15s",viewportFactor:.33},_init:function(){var e=this;this.elems=Array.prototype.slice.call(o.querySelectorAll("[data-scrollReveal]")),this.scrolled=!1,this.elems.forEach(function(t){e.animate(t)});var i=function(){e.scrolled||(e.scrolled=!0,setTimeout(function(){e._scrollPage()},60))},a=function(){function t(){e._scrollPage(),e.resizeTimeout=null}e.resizeTimeout&&clearTimeout(e.resizeTimeout),e.resizeTimeout=setTimeout(t,200)};t.addEventListener("scroll",i,!1),t.addEventListener("resize",a,!1)},_scrollPage:function(){var t=this;this.elems.forEach(function(e){a(e,t.options.viewportFactor)&&t.animate(e)}),this.scrolled=!1},parseLanguage:function(t){function e(t){var e=[],i=["from","the","and","then","but"];return t.forEach(function(t){i.indexOf(t)>-1||e.push(t)}),e}var i,a=t.getAttribute("data-scrollreveal").split(/[, ]+/),n={};return a=e(a),a.forEach(function(t,e){switch(t){case"enter":return i=a[e+1],("top"==i||"bottom"==i)&&(n.axis="y"),void(("left"==i||"right"==i)&&(n.axis="x"));case"after":return void(n.delay=a[e+1]);case"wait":return void(n.delay=a[e+1]);case"move":return void(n.distance=a[e+1]);case"over":return void(n.duration=a[e+1]);case"trigger":return void(n.eventName=a[e+1]);default:return}}),("top"==i||"left"==i)&&(n.distance="-"+this.options.distance),n},genCSS:function(t){var e=this.parseLanguage(t),i=e.distance||this.options.distance,a=e.duration||this.options.duration,n=e.delay||this.options.delay,r=e.axis||this.options.axis,o="-webkit-transition: all "+a+" ease "+n+";-moz-transition: all "+a+" ease "+n+";-o-transition: all "+a+" ease "+n+";-ms-transition: all "+a+" ease "+n+";transition: all "+a+" ease "+n+";",s="-webkit-transform: translate"+r+"("+i+");-moz-transform: translate"+r+"("+i+");-ms-transform: translate"+r+"("+i+");transform: translate"+r+"("+i+");opacity: 0;",l="-webkit-transform: translate"+r+"(0);-moz-transform: translate"+r+"(0);-ms-transform: translate"+r+"(0);transform: translate"+r+"(0);opacity: 1;";return{transition:o,initial:s,target:l,totalDuration:1e3*(parseFloat(a)+parseFloat(n))}},animate:function(t){var e=this.genCSS(t);t.getAttribute("data-sr-init")||(t.setAttribute("style",e.initial),t.setAttribute("data-sr-init",!0)),t.getAttribute("data-sr-complete")||a(t,this.options.viewportFactor)&&(t.setAttribute("style",e.target+e.transition),setTimeout(function(){t.removeAttribute("style"),t.setAttribute("data-sr-complete",!0)},e.totalDuration))}},document.addEventListener("DOMContentLoaded",function(){t.scrollReveal=new r})}(window); ;;(function(window,document,undefined){'use strict';var NAME='Parallax';var MAGIC_NUMBER=30;var DEFAULTS={relativeInput:false,clipRelativeInput:false,calibrationThreshold:100,calibrationDelay:500,supportDelay:500,calibrateX:false,calibrateY:true,invertX:true,invertY:true,limitX:false,limitY:false,scalarX:10.0,scalarY:10.0,frictionX:0.1,frictionY:0.1,originX:0.5,originY:0.5};function Parallax(element,options){this.element=element;this.layers=element.getElementsByClassName('layer');var data={calibrateX:this.data(this.element,'calibrate-x'),calibrateY:this.data(this.element,'calibrate-y'),invertX:this.data(this.element,'invert-x'),invertY:this.data(this.element,'invert-y'),limitX:this.data(this.element,'limit-x'),limitY:this.data(this.element,'limit-y'),scalarX:this.data(this.element,'scalar-x'),scalarY:this.data(this.element,'scalar-y'),frictionX:this.data(this.element,'friction-x'),frictionY:this.data(this.element,'friction-y'),originX:this.data(this.element,'origin-x'),originY:this.data(this.element,'origin-y')};for(var key in data){if(data[key]===null)delete data[key];} this.extend(this,DEFAULTS,options,data);this.calibrationTimer=null;this.calibrationFlag=true;this.enabled=false;this.depths=[];this.raf=null;this.bounds=null;this.ex=0;this.ey=0;this.ew=0;this.eh=0;this.ecx=0;this.ecy=0;this.erx=0;this.ery=0;this.cx=0;this.cy=0;this.ix=0;this.iy=0;this.mx=0;this.my=0;this.vx=0;this.vy=0;this.onMouseMove=this.onMouseMove.bind(this);this.onDeviceOrientation=this.onDeviceOrientation.bind(this);this.onOrientationTimer=this.onOrientationTimer.bind(this);this.onCalibrationTimer=this.onCalibrationTimer.bind(this);this.onAnimationFrame=this.onAnimationFrame.bind(this);this.onWindowResize=this.onWindowResize.bind(this);this.initialise();} Parallax.prototype.extend=function(){if(arguments.length>1){var master=arguments[0];for(var i=1,l=arguments.length;i0&&propertyValue!=="none";documentElement.style.overflow=documentOverflow;body.removeChild(element);} break;} return featureSupport;};Parallax.prototype.ww=null;Parallax.prototype.wh=null;Parallax.prototype.wcx=null;Parallax.prototype.wcy=null;Parallax.prototype.wrx=null;Parallax.prototype.wry=null;Parallax.prototype.portrait=null;Parallax.prototype.desktop=!navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry|BB10|mobi|tablet|opera mini|nexus 7)/i);Parallax.prototype.vendors=[null,['-webkit-','webkit'],['-moz-','Moz'],['-o-','O'],['-ms-','ms']];Parallax.prototype.motionSupport=!!window.DeviceMotionEvent;Parallax.prototype.orientationSupport=!!window.DeviceOrientationEvent;Parallax.prototype.orientationStatus=0;Parallax.prototype.transform2DSupport=Parallax.prototype.transformSupport('2D');Parallax.prototype.transform3DSupport=Parallax.prototype.transformSupport('3D');Parallax.prototype.propertyCache={};Parallax.prototype.initialise=function(){if(this.transform3DSupport)this.accelerate(this.element);var style=window.getComputedStyle(this.element);if(style.getPropertyValue('position')==='static'){this.element.style.position='relative';} this.updateLayers();this.updateDimensions();this.enable();this.queueCalibration(this.calibrationDelay);};Parallax.prototype.updateLayers=function(){this.layers=this.element.getElementsByClassName('layer');this.depths=[];for(var i=0,l=this.layers.length;ithis.calibrationThreshold)||(Math.abs(dy)>this.calibrationThreshold)){this.queueCalibration(0);} if(this.portrait){this.mx=this.calibrateX?dy:this.iy;this.my=this.calibrateY?dx:this.ix;}else{this.mx=this.calibrateX?dx:this.ix;this.my=this.calibrateY?dy:this.iy;} this.mx*=this.ew*(this.scalarX/100);this.my*=this.eh*(this.scalarY/100);if(!isNaN(parseFloat(this.limitX))){this.mx=this.clamp(this.mx,-this.limitX,this.limitX);} if(!isNaN(parseFloat(this.limitY))){this.my=this.clamp(this.my,-this.limitY,this.limitY);} this.vx+=(this.mx-this.vx)*this.frictionX;this.vy+=(this.my-this.vy)*this.frictionY;for(var i=0,l=this.layers.length;ithis.ww;if(this.portrait!==portrait){this.portrait=portrait;this.calibrationFlag=true;} if(this.calibrationFlag){this.calibrationFlag=false;this.cx=x;this.cy=y;} this.ix=x;this.iy=y;}};Parallax.prototype.onMouseMove=function(event){var clientX=event.clientX;var clientY=event.clientY;if(!this.orientationSupport&&this.relativeInput){if(this.clipRelativeInput){clientX=Math.max(clientX,this.ex);clientX=Math.min(clientX,this.ex+this.ew);clientY=Math.max(clientY,this.ey);clientY=Math.min(clientY,this.ey+this.eh);} this.ix=(clientX-this.ex-this.ecx)/this.erx;this.iy=(clientY-this.ey-this.ecy)/this.ery;}else{this.ix=(clientX-this.wcx)/this.wrx;this.iy=(clientY-this.wcy)/this.wry;}};window[NAME]=Parallax;})(window,document);;jQuery(document).ready(function(){var zerif_frame=jQuery('iframe.zerif_google_map');var zerif_frameSrc=new Array();if(zerif_frame.length){jQuery.each(zerif_frame,function(i,f){zerif_frameSrc[i]=jQuery(f).attr('src');jQuery(f).attr('src','');});} function zerif_display_iframe_map(){if(zerif_frame.length){jQuery.each(zerif_frame,function(a,x){jQuery(x).attr('src',zerif_frameSrc[a]);});}} jQuery(".status").fadeOut();jQuery(".preloader").delay(1000).fadeOut("slow");setTimeout(zerif_display_iframe_map,500);});jQuery(document).ready(function(){if(jQuery('.fadein-slider .slide-item').length>1){jQuery('.fadein-slider .slide-item:gt(0)').hide();setInterval(function(){jQuery('.fadein-slider :first-child').fadeOut(2000).next('.slide-item').fadeIn(2000).end().appendTo('.fadein-slider');},10000);}});var callback_mobile_dropdown=function(){var navLi=jQuery('#site-navigation li');navLi.each(function(){if(jQuery(this).find('ul').length>0&&!jQuery(this).hasClass('has_children')){jQuery(this).addClass('has_children');jQuery(this).find('a').first().after('');}});jQuery('.dropdownmenu').click(function(){if(jQuery(this).parent('li').hasClass('this-open')){jQuery(this).parent('li').removeClass('this-open');}else{jQuery(this).parent('li').addClass('this-open');}});navLi.find('a').click(function(){jQuery('.navbar-toggle').addClass('collapsed');jQuery('.collapse').removeClass('in');});};jQuery(document).ready(callback_mobile_dropdown);jQuery(document).ready(function(){var thisOpen=false;jQuery('.contact-form .form-control').each(function(){if((typeof jQuery(this).val()!='undefined')&&(jQuery(this).val().length>0)){thisOpen=true;jQuery('.zerif-g-recaptcha').css('display','block').delay(1000).css('opacity','1');return false;}});if(thisOpen==false&&(typeof jQuery('.contact-form textarea').val()!='undefined')&&(jQuery('.contact-form textarea').val().length>0)){thisOpen=true;jQuery('.zerif-g-recaptcha').css('display','block').delay(1000).css('opacity','1');} jQuery('.contact-form input, .contact-form textarea').focus(function(){if(!jQuery('.zerif-g-recaptcha').hasClass('recaptcha-display')){jQuery('.zerif-g-recaptcha').css('display','block').delay(1000).css('opacity','1');}});});if(navigator.userAgent.match(/IEMobile\/10\.0/)){var msViewportStyle=document.createElement('style') msViewportStyle.appendChild(document.createTextNode('@-ms-viewport{width:auto!important}')) document.querySelector('head').appendChild(msViewportStyle);} jQuery(document).ready(function(){var jQuerywindow=jQuery(window);jQuery('div[data-type="background"], header[data-type="background"], section[data-type="background"]').each(function(){var jQuerybgobj=jQuery(this);jQuery(window).scroll(function(){var yPos=-(jQuerywindow.scrollTop()/jQuerybgobj.data('speed'));var coords='50% '+yPos+'px';jQuerybgobj.css({backgroundPosition:coords});});});});jQuery(document).ready(function(){jQuery('#site-navigation a[href*=#]:not([href=#]), header.header a[href*=#]:not([href=#])').bind('click',function(){var headerHeight;var hash=this.hash;var idName=hash.substring(1);var alink=this;if(jQuery('section [id*='+idName+']').length>0&&jQuery(window).width()>=751){jQuery('.current').removeClass('current');jQuery(alink).parent('li').addClass('current');}else{jQuery('.current').removeClass('current');} if(jQuery(window).width()>=751){headerHeight=jQuery('#main-nav').height();}else{headerHeight=0;} if(location.pathname.replace(/^\//,'')==this.pathname.replace(/^\//,'')&&location.hostname==this.hostname){var target=jQuery(this.hash);target=target.length?target:jQuery('[name='+this.hash.slice(1)+']');if(target.length){jQuery('html,body').animate({scrollTop:target.offset().top-headerHeight+5},1200);return false;}}});});jQuery(document).ready(function(){var headerHeight;jQuery('.current').removeClass('current');jQuery('#site-navigation a[href$="'+window.location.hash+'"]').parent('li').addClass('current');if(jQuery(window).width()>=751){headerHeight=jQuery('#main-nav').height();}else{headerHeight=0;} if(location.pathname.replace(/^\//,'')==window.location.pathname.replace(/^\//,'')&&location.hostname==window.location.hostname){var target=jQuery(window.location.hash);if(target.length){jQuery('html,body').animate({scrollTop:target.offset().top-headerHeight+5},1200);return false;}}});function scrolled(){jQuery(this).off('scroll')[0].setTimeout(function(){if(jQuery(window).width()>=751){var zerif_scrollTop=jQuery(window).scrollTop();var headerHeight=jQuery('#main-nav').outerHeight();var isInOneSection='no';jQuery("section").each(function(){var thisID='#'+jQuery(this).attr('id');var zerif_offset=jQuery(this).offset().top;var thisHeight=jQuery(this).outerHeight();var thisBegin=zerif_offset-headerHeight;var thisEnd=zerif_offset+thisHeight-headerHeight;if(zerif_scrollTop>=thisBegin&&zerif_scrollTop<=thisEnd){isInOneSection='yes';jQuery('.current').removeClass('current');jQuery('#site-navigation a[href$="'+thisID+'"]').parent('li').addClass('current');return false;} if(isInOneSection=='no'){jQuery('.current').removeClass('current');}});} jQuery(this).on('scroll',scrolled);},500)} jQuery(window).on('scroll',scrolled);jQuery(window).load(function(){jQuery("form :input").each(function(index,elem){var eId=jQuery(elem).attr("class");if((eId=="sib-email-area")||(eId=="sib-NAME-area")){var label=null;if(eId&&(label=jQuery(elem).parents("form").find("label."+eId)).length==1){jQuery(elem).attr("placeholder",jQuery(label).html());jQuery(label).remove();}}});});jQuery(window).scroll(function(){var zerif_scrollTop=jQuery(window).scrollTop();var zerif_windowHeight=jQuery(window).height();jQuery("section").each(function(){var zerif_offset=jQuery(this).offset();if(zerif_scrollTop<=zerif_offset.top&&(jQuery(this).height()+zerif_offset.top)<(zerif_scrollTop+zerif_windowHeight)){jQuery('ul.nav > li a').each(function(){jQuery(this).removeClass('nav-active');});var zerif_current_id_visible=jQuery(this).attr('id');jQuery('ul.nav > li a').each(function(){if(jQuery(this).attr('href').indexOf(zerif_current_id_visible)>=0){jQuery('ul.nav > li a').each(function(){jQuery(this).removeClass('nav-active');});jQuery(this).addClass('nav-active');}});}});});jQuery(window).load(function(){setminHeightHeader();});jQuery(window).resize(function(){setminHeightHeader();});function setminHeightHeader(){if(jQuery('#main-nav').css('min-height')!=75||jQuery('.header').css('min-height')!=75){jQuery('#main-nav').css('min-height',75);jQuery('.header').css('min-height',75);} if(jQuery(window).width()>750){var minHeight=parseInt(jQuery('#main-nav').height());jQuery('#main-nav').css('min-height',minHeight);jQuery('.header').css('min-height',minHeight);}} jQuery(window).load(function(){fixFooterBottom();});jQuery(window).resize(function(){fixFooterBottom();});function fixFooterBottom(){var header=jQuery('header.header');var footer=jQuery('footer#footer');var content=jQuery('.site-content > .container');content.css('min-height','1px');var headerHeight=header.outerHeight();var footerHeight=footer.outerHeight();var contentHeight=content.outerHeight();var windowHeight=jQuery(window).height();var totalHeight=headerHeight+footerHeight+contentHeight;if(totalHeightcontainerWidth){headerWrap.addClass(classToAdd);} else {if(headerWrap.hasClass(classToAdd)) {headerWrap.removeClass(classToAdd);}}} jQuery(window).load(callback_menu_align);jQuery(window).resize(callback_menu_align);var isMobile={Android:function(){return navigator.userAgent.match(/Android/i);},BlackBerry:function(){return navigator.userAgent.match(/BlackBerry/i);},iOS:function(){return navigator.userAgent.match(/iPhone|iPad|iPod/i);},Opera:function(){return navigator.userAgent.match(/Opera Mini/i);},Windows:function(){return navigator.userAgent.match(/IEMobile/i);},any:function(){return(isMobile.Android()||isMobile.BlackBerry()||isMobile.iOS()||isMobile.Opera()||isMobile.Windows());}};if(isMobile.any()){jQuery('.team-member').on('click',function(){jQuery('.team-member-open').removeClass('team-member-open');jQuery(this).addClass('team-member-open');event.stopPropagation();});jQuery("html").click(function(){jQuery('.team-member-open').removeClass('team-member-open');});jQuery(document).ready(function(){jQuery('.cbp-rfgrid li').prepend('

');});jQuery('.cbp-rfgrid li').on('click',function(){if(!jQuery(this).hasClass('cbp-rfgrid-open')){jQuery('.cbp-rfgrid-tr').css('display','block');jQuery('.cbp-rfgrid-open').removeClass('cbp-rfgrid-open');jQuery(this).addClass('cbp-rfgrid-open');jQuery(this).find('.cbp-rfgrid-tr').css('display','none');event.stopPropagation();}});jQuery("html").click(function(){jQuery('.cbp-rfgrid-tr').css('display','block');jQuery('.cbp-rfgrid-open').removeClass('cbp-rfgrid-open');});} jQuery(window).load(function(){if(jQuery('#carousel-homepage-latestnews').length>0){if(jQuery('#carousel-homepage-latestnews div.item').length<2){jQuery('#carousel-homepage-latestnews > a').css('display','none');} var maxheight=0;jQuery('#carousel-homepage-latestnews div.item').each(function(){if(jQuery(this).height()>maxheight){maxheight=jQuery(this).height();}});jQuery('#carousel-homepage-latestnews div.item').height(maxheight);}});var window_width_old;var exist_class=false;jQuery(document).ready(function(){if(jQuery('.testimonial-masonry').length>0){exist_class=true;window_width_old=jQuery('.container').outerWidth();if(window_width_old<970){jQuery('.testimonial-masonry').zerifgridpinterest({columns:1,selector:'.zerif_testim'});}else{jQuery('.testimonial-masonry').zerifgridpinterest({columns:3,selector:'.zerif_testim'});}}});jQuery(window).resize(function(){if(window_width_old!=jQuery('.container').outerWidth()&&exist_class===true){window_width_old=jQuery('.container').outerWidth();if(window_width_old<970){jQuery('.testimonial-masonry').zerifgridpinterest({columns:1,selector:'.zerif_testim'});}else{jQuery('.testimonial-masonry').zerifgridpinterest({columns:3,selector:'.zerif_testim'});}}});(function($,window,document,undefined){var defaults={columns:3,selector:'div',excludeParentClass:'',};function ZerifGridPinterest(element,options){this.element=element;this.options=$.extend({},defaults,options);this.defaults=defaults;this.init();} ZerifGridPinterest.prototype.init=function(){var self=this,$container=$(this.element);$select_options=$(this.element).children();self.make_magic($container,$select_options);};ZerifGridPinterest.prototype.make_magic=function(container){var self=this;$container=$(container),columns_height=[],prefix='zerif',unique_class=prefix+'_grid_'+self.make_unique();local_class=prefix+'_grid';var classname;var substr_index=this.element.className.indexOf(prefix+'_grid_');if(substr_index>-1){classname=this.element.className.substr(0,this.element.className.length-unique_class.length-local_class.length);}else{classname=this.element.className;} var my_id;if(this.element.id==''){my_id=prefix+'_id_'+self.make_unique();}else{my_id=this.element.id;} $container.after('
');var i;for(i=1;i<=this.options.columns;i++){columns_height.push(0);var first_cols='';var last_cols='';if(i%self.options.columns==1){first_cols=prefix+'_grid_first';} if(i%self.options.columns==0){first_cols=prefix+'_grid_last';} $('.'+unique_class).append('
');} if(this.element.className.indexOf(local_class)<0){$container.children(this.options.selector).each(function(index){var min=Math.min.apply(null,columns_height);var this_index=columns_height.indexOf(min)+1;$(this).attr(prefix+'grid-attr','this-'+index).appendTo('.'+unique_class+' .'+prefix+'_grid_column_'+this_index);columns_height[this_index-1]=$('.'+unique_class+' .'+prefix+'_grid_column_'+this_index).height();});}else{var no_boxes=$container.find(this.options.selector).length;var i;for(i=0;i0){var scene=document.getElementById('parallax_move');var window_width=jQuery(window).outerWidth();jQuery('#parallax_move').css({'width':window_width+120,'margin-left':-60,'margin-top':-60,'position':'absolute',});var h=jQuery('header#home').outerHeight();jQuery('#parallax_move').children().each(function(){jQuery(this).css({'height':h+100,});});if(!isMobile.any()){var parallax=new Parallax(scene);}else{jQuery('#parallax_move').css({'z-index':'0',});jQuery('#parallax_move .layer').css({'position':'absolute','top':'0','left':'0','z-index':'1',});}}}