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); ;/*!jQuery Knob*/ /** * Downward compatible, touchable dial * * Version: 1.2.0 (15/07/2012) * Requires: jQuery v1.7+ * * Copyright (c) 2012 Anthony Terrien * Under MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * Thanks to vor, eskimoblood, spiffistan, FabrizioC */ !function(t){"use strict";var i={},s=Math.max,h=Math.min;i.c={},i.c.d=t(document),i.c.t=function(t){return t.originalEvent.touches.length-1},i.o=function(){var s=this;this.o=null,this.$=null,this.i=null,this.g=null,this.v=null,this.cv=null,this.x=0,this.y=0,this.w=0,this.h=0,this.$c=null,this.c=null,this.t=0,this.isInit=!1,this.fgColor=null,this.pColor=null,this.dH=null,this.cH=null,this.eH=null,this.rH=null,this.scale=1,this.relative=!1,this.relativeWidth=!1,this.relativeHeight=!1,this.$div=null,this.run=function(){var i=function(t,i){var h;for(h in i)s.o[h]=i[h];s.init(),s._configure()._draw()};if(!this.$.data("kontroled"))return this.$.data("kontroled",!0),this.extend(),this.o=t.extend({min:this.$.data("min")||0,max:this.$.data("max")||100,stopper:!0,readOnly:this.$.data("readonly")||"readonly"==this.$.attr("readonly"),cursor:this.$.data("cursor")===!0&&30||this.$.data("cursor")||0,thickness:this.$.data("thickness")&&Math.max(Math.min(this.$.data("thickness"),1),.01)||.35,lineCap:this.$.data("linecap")||"butt",width:this.$.data("width")||200,height:this.$.data("height")||200,displayInput:null==this.$.data("displayinput")||this.$.data("displayinput"),displayPrevious:this.$.data("displayprevious"),fgColor:this.$.data("fgcolor")||"#87CEEB",inputColor:this.$.data("inputcolor"),font:this.$.data("font")||"Arial",fontWeight:this.$.data("font-weight")||"bold",inline:!1,step:this.$.data("step")||1,draw:null,change:null,cancel:null,release:null,error:null},this.o),this.o.inputColor||(this.o.inputColor=this.o.fgColor),this.$.is("fieldset")?(this.v={},this.i=this.$.find("input"),this.i.each(function(i){var h=t(this);s.i[i]=h,s.v[i]=h.val(),h.bind("change keyup",function(){var t={};t[i]=h.val(),s.val(t)})}),this.$.find("legend").remove()):(this.i=this.$,this.v=this.$.val(),""==this.v&&(this.v=this.o.min),this.$.bind("change keyup",function(){s.val(s._validate(s.$.val()))})),!this.o.displayInput&&this.$.hide(),this.$c=t(document.createElement("canvas")),"undefined"!=typeof G_vmlCanvasManager&&G_vmlCanvasManager.initElement(this.$c[0]),this.c=this.$c[0].getContext?this.$c[0].getContext("2d"):null,this.c?(this.scale=(window.devicePixelRatio||1)/(this.c.webkitBackingStorePixelRatio||this.c.mozBackingStorePixelRatio||this.c.msBackingStorePixelRatio||this.c.oBackingStorePixelRatio||this.c.backingStorePixelRatio||1),this.relativeWidth=this.o.width%1!==0&&this.o.width.indexOf("%"),this.relativeHeight=this.o.height%1!==0&&this.o.height.indexOf("%"),this.relative=this.relativeWidth||this.relativeHeight,this.$div=t('
'),this.$.wrap(this.$div).before(this.$c),this.$div=this.$.parent(),this._carve(),this.v instanceof Object?(this.cv={},this.copy(this.v,this.cv)):this.cv=this.v,this.$.bind("configure",i).parent().bind("configure",i),this._listen()._configure()._xy().init(),this.isInit=!0,this._draw(),this):void(this.o.error&&this.o.error())},this._carve=function(){if(this.relative){var t=this.relativeWidth?this.$div.parent().width()*parseInt(this.o.width)/100:this.$div.parent().width(),i=this.relativeHeight?this.$div.parent().height()*parseInt(this.o.height)/100:this.$div.parent().height();this.w=this.h=Math.min(t,i)}else this.w=this.o.width,this.h=this.o.height;return this.$div.css({width:this.w+"px",height:this.h+"px"}),this.$c.attr({width:this.w,height:this.h}),1!==this.scale&&(this.$c[0].width=this.$c[0].width*this.scale,this.$c[0].height=this.$c[0].height*this.scale,this.$c.width(this.w),this.$c.height(this.h)),this},this._draw=function(){var t=!0;s.g=s.c,s.clear(),s.dH&&(t=s.dH()),t!==!1&&s.draw()},this._touch=function(t){var h=function(t){var i=s.xy2val(t.originalEvent.touches[s.t].pageX,t.originalEvent.touches[s.t].pageY);s.change(s._validate(i)),s._draw()};return this.t=i.c.t(t),h(t),i.c.d.bind("touchmove.k",h).bind("touchend.k",function(){i.c.d.unbind("touchmove.k touchend.k"),s.rH&&s.rH(s.cv)===!1||s.val(s.cv)}),this},this._mouse=function(t){var h=function(t){var i=s.xy2val(t.pageX,t.pageY);s.change(s._validate(i)),s._draw()};return h(t),i.c.d.bind("mousemove.k",h).bind("keyup.k",function(t){if(27===t.keyCode){if(i.c.d.unbind("mouseup.k mousemove.k keyup.k"),s.eH&&s.eH()===!1)return;s.cancel()}}).bind("mouseup.k",function(){i.c.d.unbind("mousemove.k mouseup.k keyup.k"),s.rH&&s.rH(s.cv)===!1||s.val(s.cv)}),this},this._xy=function(){var t=this.$c.offset();return this.x=t.left,this.y=t.top,this},this._listen=function(){return this.o.readOnly?this.$.attr("readonly","readonly"):(this.$c.bind("mousedown",function(t){t.preventDefault(),s._xy()._mouse(t)}).bind("touchstart",function(t){t.preventDefault(),s._xy()._touch(t)}),this.listen()),this.relative&&t(window).resize(function(){s._carve().init(),s._draw()}),this},this._configure=function(){return this.o.draw&&(this.dH=this.o.draw),this.o.change&&(this.cH=this.o.change),this.o.cancel&&(this.eH=this.o.cancel),this.o.release&&(this.rH=this.o.release),this.o.displayPrevious?(this.pColor=this.h2rgba(this.o.fgColor,"0.4"),this.fgColor=this.h2rgba(this.o.fgColor,"0.6")):this.fgColor=this.o.fgColor,this},this._clear=function(){this.$c[0].width=this.$c[0].width},this._validate=function(t){return~~((0>t?-.5:.5)+t/this.o.step)*this.o.step},this.listen=function(){},this.extend=function(){},this.init=function(){},this.change=function(){},this.val=function(){},this.xy2val=function(){},this.draw=function(){},this.clear=function(){this._clear()},this.h2rgba=function(t,i){var s;return t=t.substring(1,7),s=[parseInt(t.substring(0,2),16),parseInt(t.substring(2,4),16),parseInt(t.substring(4,6),16)],"rgba("+s[0]+","+s[1]+","+s[2]+","+i+")"},this.copy=function(t,i){for(var s in t)i[s]=t[s]}},i.Dial=function(){i.o.call(this),this.startAngle=null,this.xy=null,this.radius=null,this.lineWidth=null,this.cursorExt=null,this.w2=null,this.PI2=2*Math.PI,this.extend=function(){this.o=t.extend({bgColor:this.$.data("bgcolor")||"#EEEEEE",angleOffset:this.$.data("angleoffset")||0,angleArc:this.$.data("anglearc")||360,inline:!0},this.o)},this.val=function(t){return null==t?this.v:(this.cv=this.o.stopper?s(h(t,this.o.max),this.o.min):t,this.v=this.cv,this.$.val(this.v),this._draw(),void 0)},this.xy2val=function(t,i){var n,e;return n=Math.atan2(t-(this.x+this.w2),-(i-this.y-this.w2))-this.angleOffset,this.angleArc!=this.PI2&&0>n&&n>-.5?n=0:0>n&&(n+=this.PI2),e=~~(.5+n*(this.o.max-this.o.min)/this.angleArc)+this.o.min,this.o.stopper&&(e=s(h(e,this.o.max),this.o.min)),e},this.listen=function(){var i,n,e,a,o=this,r=function(t){t.preventDefault();var e=t.originalEvent,a=e.detail||e.wheelDeltaX,r=e.detail||e.wheelDeltaY,l=o._validate(o.$.val())+(a>0||r>0?o.o.step:0>a||0>r?-o.o.step:0);l=s(h(l,o.o.max),o.o.min),o.val(l),o.rH&&(clearTimeout(i),i=setTimeout(function(){o.rH(l),i=null},100),n||(n=setTimeout(function(){i&&o.rH(l),n=null},200)))},l=1,c={37:-o.o.step,38:o.o.step,39:o.o.step,40:-o.o.step};this.$.bind("keydown",function(i){var n=i.keyCode;if(n>=96&&105>=n&&(n=i.keyCode=n-48),e=parseInt(String.fromCharCode(n)),isNaN(e)&&(13!==n&&8!==n&&9!==n&&189!==n&&i.preventDefault(),t.inArray(n,[37,38,39,40])>-1)){i.preventDefault();var r=parseInt(o.$.val())+c[n]*l;o.o.stopper&&(r=s(h(r,o.o.max),o.o.min)),o.change(r),o._draw(),a=window.setTimeout(function(){l*=2},30)}}).bind("keyup",function(){isNaN(e)?a&&(window.clearTimeout(a),a=null,l=1,o.val(o.$.val())):o.$.val()>o.o.max&&o.$.val(o.o.max)||o.$.val()this.o.max)&&(this.v=this.o.min),this.$.val(this.v),this.w2=this.w/2,this.cursorExt=this.o.cursor/100,this.xy=this.w2*this.scale,this.lineWidth=this.xy*this.o.thickness,this.lineCap=this.o.lineCap,this.radius=this.xy-this.lineWidth/2,this.o.angleOffset&&(this.o.angleOffset=isNaN(this.o.angleOffset)?0:this.o.angleOffset),this.o.angleArc&&(this.o.angleArc=isNaN(this.o.angleArc)?this.PI2:this.o.angleArc),this.angleOffset=this.o.angleOffset*Math.PI/180,this.angleArc=this.o.angleArc*Math.PI/180,this.startAngle=1.5*Math.PI+this.angleOffset,this.endAngle=1.5*Math.PI+this.angleOffset+this.angleArc;var t=s(String(Math.abs(this.o.max)).length,String(Math.abs(this.o.min)).length,2)+2;this.o.displayInput&&this.i.css({width:(this.w/2+4>>0)+"px",height:(this.w/3>>0)+"px",position:"absolute","vertical-align":"middle","margin-top":(this.w/3>>0)+"px","margin-left":"-"+(3*this.w/4+2>>0)+"px",border:0,background:"none",font:this.o.fontWeight+" "+(this.w/t>>0)+"px "+this.o.font,"text-align":"center",color:this.o.inputColor||this.o.fgColor,padding:"0px","-webkit-appearance":"none"})||this.i.css({width:"0px",visibility:"hidden"})},this.change=function(t){t!=this.cv&&(this.cv=t,this.cH&&this.cH(t)===!1)},this.angle=function(t){return(t-this.o.min)*this.angleArc/(this.o.max-this.o.min)},this.draw=function(){var t,i,s=this.g,h=this.angle(this.cv),n=this.startAngle,e=n+h,a=1;s.lineWidth=this.lineWidth,s.lineCap=this.lineCap,this.o.cursor&&(n=e-this.cursorExt)&&(e+=this.cursorExt),s.beginPath(),s.strokeStyle=this.o.bgColor,s.arc(this.xy,this.xy,this.radius,this.endAngle-1e-5,this.startAngle+1e-5,!0),s.stroke(),this.o.displayPrevious&&(i=this.startAngle+this.angle(this.v),t=this.startAngle,this.o.cursor&&(t=i-this.cursorExt)&&(i+=this.cursorExt),s.beginPath(),s.strokeStyle=this.pColor,s.arc(this.xy,this.xy,this.radius,t-1e-5,i+1e-5,!1),s.stroke(),a=this.cv==this.v),s.beginPath(),s.strokeStyle=a?this.o.fgColor:this.fgColor,s.arc(this.xy,this.xy,this.radius,n-1e-5,e+1e-5,!1),s.stroke()},this.cancel=function(){this.val(this.v)}},t.fn.dial=t.fn.knob=function(s){return this.each(function(){var h=new i.Dial;h.o=s,h.$=t(this),h.run()}).parent()}}(jQuery); jQuery(document).ready(function() { /* KNOB */ jQuery(".skill1").knob({ 'max':100, 'width': 64, 'readOnly':true, 'inputColor':' #FFFFFF ', 'bgColor':' #222222 ', 'fgColor':' #e96656 ' }); jQuery(".skill2").knob({ 'max':100, 'width': 64, 'readOnly':true, 'inputColor':' #FFFFFF ', 'bgColor':' #222222 ', 'fgColor':' #34d293 ' }); jQuery(".skill3").knob({ 'max': 100, 'width': 64, 'readOnly': true, 'inputColor':' #FFFFFF ', 'bgColor':' #222222 ', 'fgColor':' #3ab0e2 ' }); jQuery(".skill4").knob({ 'max': 100, 'width': 64, 'readOnly': true, 'inputColor':' #FFFFFF ', 'bgColor':' #222222 ', 'fgColor':' #E7AC44 ' }); }); ;// SmoothScroll v0.9.9 // Licensed under the terms of the MIT license. // People involved // - Balazs Galambosi: maintainer (CHANGELOG.txt) // - Patrick Brunner (patrickb1991@gmail.com) // - Michael Herf: ssc_pulse Algorithm function ssc_init(){if(document.body){var e=document.body,s=document.documentElement,c=window.innerHeight,t=e.scrollHeight;if(ssc_root=document.compatMode.indexOf("CSS")>=0?s:e,ssc_activeElement=e,ssc_initdone=!0,top!=self)ssc_frame=!0;else if(t>c&&(e.offsetHeight<=c||s.offsetHeight<=c)&&(ssc_root.style.height="auto",ssc_root.offsetHeight<=c)){var o=document.createElement("div");o.style.clear="both",e.appendChild(o)}ssc_fixedback||(e.style.backgroundAttachment="scroll",s.style.backgroundAttachment="scroll"),ssc_keyboardsupport&&ssc_addEvent("keydown",ssc_keydown)}}function ssc_scrollArray(e,s,c,t){if(t||(t=1e3),ssc_directionCheck(s,c),ssc_que.push({x:s,y:c,lastX:0>s?.99:-.99,lastY:0>c?.99:-.99,start:+new Date}),!ssc_pending){var o=function(){for(var r=+new Date,n=0,a=0,i=0;i=ssc_animtime,d=u?1:_/ssc_animtime;ssc_pulseAlgorithm&&(d=ssc_pulse(d));var f=l.x*d-l.lastX>>0,m=l.y*d-l.lastY>>0;n+=f,a+=m,l.lastX+=f,l.lastY+=m,u&&(ssc_que.splice(i,1),i--)}if(s){var h=e.scrollLeft;e.scrollLeft+=n,n&&e.scrollLeft===h&&(s=0)}if(c){var p=e.scrollTop;e.scrollTop+=a,a&&e.scrollTop===p&&(c=0)}s||c||(ssc_que=[]),ssc_que.length?setTimeout(o,t/ssc_framerate+1):ssc_pending=!1};setTimeout(o,0),ssc_pending=!0}}function ssc_wheel(e){ssc_initdone||ssc_init();var s=e.target,c=ssc_overflowingAncestor(s);if(!c||e.defaultPrevented||ssc_isNodeName(ssc_activeElement,"embed")||ssc_isNodeName(s,"embed")&&/\.pdf/i.test(s.src))return!0;var t=e.wheelDeltaX||0,o=e.wheelDeltaY||0;t||o||(o=e.wheelDelta||0),Math.abs(t)>1.2&&(t*=ssc_stepsize/120),Math.abs(o)>1.2&&(o*=ssc_stepsize/120),ssc_scrollArray(c,-t,-o),e.preventDefault()}function ssc_keydown(e){var s=e.target,c=e.ctrlKey||e.altKey||e.metaKey;if(/input|textarea|embed/i.test(s.nodeName)||s.isContentEditable||e.defaultPrevented||c)return!0;if(ssc_isNodeName(s,"button")&&e.keyCode===ssc_key.spacebar)return!0;var t,o=0,r=0,n=ssc_overflowingAncestor(ssc_activeElement),a=n.clientHeight;switch(n==document.body&&(a=window.innerHeight),e.keyCode){case ssc_key.up:r=-ssc_arrowscroll;break;case ssc_key.down:r=ssc_arrowscroll;break;case ssc_key.spacebar:t=e.shiftKey?1:-1,r=-t*a*.9;break;case ssc_key.pageup:r=.9*-a;break;case ssc_key.pagedown:r=.9*a;break;case ssc_key.home:r=-n.scrollTop;break;case ssc_key.end:var i=n.scrollHeight-n.scrollTop-a;r=i>0?i+10:0;break;case ssc_key.left:o=-ssc_arrowscroll;break;case ssc_key.right:o=ssc_arrowscroll;break;default:return!0}ssc_scrollArray(n,o,r),e.preventDefault()}function ssc_mousedown(e){ssc_activeElement=e.target}function ssc_setCache(e,s){for(var c=e.length;c--;)ssc_cache[ssc_uniqueID(e[c])]=s;return s}function ssc_overflowingAncestor(e){var s=[],c=ssc_root.scrollHeight;do{var t=ssc_cache[ssc_uniqueID(e)];if(t)return ssc_setCache(s,t);if(s.push(e),c===e.scrollHeight){if(!ssc_frame||ssc_root.clientHeight+100?1:-1,s=s>0?1:-1,(ssc_direction.x!==e||ssc_direction.y!==s)&&(ssc_direction.x=e,ssc_direction.y=s,ssc_que=[])}function ssc_pulse_(e){var s,c,t;return e*=ssc_pulseScale,1>e?s=e-(1-Math.exp(-e)):(c=Math.exp(-1),e-=1,t=1-Math.exp(-e),s=c+t*(1-c)),s*ssc_pulseNormalize}function ssc_pulse(e){return e>=1?1:0>=e?0:(1==ssc_pulseNormalize&&(ssc_pulseNormalize/=ssc_pulse_(1)),ssc_pulse_(e))}var ssc_framerate=150,ssc_animtime=500,ssc_stepsize=150,ssc_pulseAlgorithm=!0,ssc_pulseScale=6,ssc_pulseNormalize=1,ssc_keyboardsupport=!0,ssc_arrowscroll=50,ssc_frame=!1,ssc_direction={x:0,y:0},ssc_initdone=!1,ssc_fixedback=!0,ssc_root=document.documentElement,ssc_activeElement,ssc_key={left:37,up:38,right:39,down:40,spacebar:32,pageup:33,pagedown:34,end:35,home:36},ssc_que=[],ssc_pending=!1,ssc_cache={};setInterval(function(){ssc_cache={}},1e4);var ssc_uniqueID=function(){var e=0;return function(s){return s.ssc_uniqueID||(s.ssc_uniqueID=e++)}}(),ischrome=/chrome/.test(navigator.userAgent.toLowerCase());ischrome&&(ssc_addEvent("mousedown",ssc_mousedown),ssc_addEvent("mousewheel",ssc_wheel),ssc_addEvent("load",ssc_init)); ;/* _ _ _____ _ _ | | | __ \ | | (_) ___ ___ _ __ ___ | | | |__) |_____ _____ __ _| | _ ___ / __|/ __| '__/ _ \| | | _ // _ \ \ / / _ \/ _` | | | / __| \__ \ (__| | | (_) | | | | \ \ __/\ 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',});}}}