403Webshell
Server IP : 108.170.25.35  /  Your IP : 3.142.98.240
Web Server : Apache/2
System : Linux gains.winzonesoftech.com 4.18.0-513.24.1.el8_9.x86_64 #1 SMP Mon Apr 8 11:23:13 EDT 2024 x86_64
User : brindhavan ( 1477)
PHP Version : 8.1.28
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/brindhavan/public_html/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/brindhavan/public_html/js//all-jquery.js
/*!
 * Bootstrap v3.3.4 (http://getbootstrap.com)
 * Copyright 2011-2015 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(d){var c=d.fn.jquery.split(" ")[0].split(".");if(c[0]<2&&c[1]<9||1==c[0]&&9==c[1]&&c[2]<1){throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}}(jQuery),+function(d){function c(){var f=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var g in e){if(void 0!==f.style[g]){return{end:e[g]}}}return !1}d.fn.emulateTransitionEnd=function(a){var h=!1,g=this;d(this).one("bsTransitionEnd",function(){h=!0});var f=function(){h||d(g).trigger(d.support.transition.end)};return setTimeout(f,a),this},d(function(){d.support.transition=c(),d.support.transition&&(d.event.special.bsTransitionEnd={bindType:d.support.transition.end,delegateType:d.support.transition.end,handle:function(a){return d(a.target).is(this)?a.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),+function(g){function f(a){return this.each(function(){var d=g(this),b=d.data("bs.alert");b||d.data("bs.alert",b=new i(this)),"string"==typeof a&&b[a].call(d)})}var j='[data-dismiss="alert"]',i=function(a){g(a).on("click",j,this.close)};i.VERSION="3.3.4",i.TRANSITION_DURATION=150,i.prototype.close=function(a){function m(){d.detach().trigger("closed.bs.alert").remove()}var l=g(this),k=l.attr("data-target");k||(k=l.attr("href"),k=k&&k.replace(/.*(?=#[^\s]*$)/,""));var d=g(k);a&&a.preventDefault(),d.length||(d=l.closest(".alert")),d.trigger(a=g.Event("close.bs.alert")),a.isDefaultPrevented()||(d.removeClass("in"),g.support.transition&&d.hasClass("fade")?d.one("bsTransitionEnd",m).emulateTransitionEnd(i.TRANSITION_DURATION):m())};var h=g.fn.alert;g.fn.alert=f,g.fn.alert.Constructor=i,g.fn.alert.noConflict=function(){return g.fn.alert=h,this},g(document).on("click.bs.alert.data-api",j,i.prototype.close)}(jQuery),+function(f){function e(a){return this.each(function(){var i=f(this),c=i.data("bs.button"),b="object"==typeof a&&a;c||i.data("bs.button",c=new h(this,b)),"toggle"==a?c.toggle():a&&c.setState(a)})}var h=function(a,c){this.$element=f(a),this.options=f.extend({},h.DEFAULTS,c),this.isLoading=!1};h.VERSION="3.3.4",h.DEFAULTS={loadingText:"loading..."},h.prototype.setState=function(a){var l="disabled",k=this.$element,j=k.is("input")?"val":"html",i=k.data();a+="Text",null==i.resetText&&k.data("resetText",k[j]()),setTimeout(f.proxy(function(){k[j](null==i[a]?this.options[a]:i[a]),"loadingText"==a?(this.isLoading=!0,k.addClass(l).attr(l,l)):this.isLoading&&(this.isLoading=!1,k.removeClass(l).removeAttr(l))},this),0)},h.prototype.toggle=function(){var i=!0,d=this.$element.closest('[data-toggle="buttons"]');if(d.length){var j=this.$element.find("input");"radio"==j.prop("type")&&(j.prop("checked")&&this.$element.hasClass("active")?i=!1:d.find(".active").removeClass("active")),i&&j.prop("checked",!this.$element.hasClass("active")).trigger("change")}else{this.$element.attr("aria-pressed",!this.$element.hasClass("active"))}i&&this.$element.toggleClass("active")};var g=f.fn.button;f.fn.button=e,f.fn.button.Constructor=h,f.fn.button.noConflict=function(){return f.fn.button=g,this},f(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(b){var a=f(b.target);a.hasClass("btn")||(a=a.closest(".btn")),e.call(a,"toggle"),b.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(a){f(a.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(a.type))})}(jQuery),+function(g){function f(a){return this.each(function(){var l=g(this),k=l.data("bs.carousel"),c=g.extend({},j.DEFAULTS,l.data(),"object"==typeof a&&a),b="string"==typeof a?a:c.slide;k||l.data("bs.carousel",k=new j(this,c)),"number"==typeof a?k.to(a):b?k[b]():c.interval&&k.pause().cycle()})}var j=function(a,d){this.$element=g(a),this.$indicators=this.$element.find(".carousel-indicators"),this.options=d,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",g.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart" in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",g.proxy(this.pause,this)).on("mouseleave.bs.carousel",g.proxy(this.cycle,this))};j.VERSION="3.3.4",j.TRANSITION_DURATION=600,j.DEFAULTS={interval:5000,pause:"hover",wrap:!0,keyboard:!0},j.prototype.keydown=function(b){if(!/input|textarea/i.test(b.target.tagName)){switch(b.which){case 37:this.prev();break;case 39:this.next();break;default:return}b.preventDefault()}},j.prototype.cycle=function(a){return a||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(g.proxy(this.next,this),this.options.interval)),this},j.prototype.getItemIndex=function(b){return this.$items=b.parent().children(".item"),this.$items.index(b||this.$active)},j.prototype.getItemForDirection=function(l,k){var p=this.getItemIndex(k),o="prev"==l&&0===p||"next"==l&&p==this.$items.length-1;if(o&&!this.options.wrap){return k}var n="prev"==l?-1:1,m=(p+n)%this.$items.length;return this.$items.eq(m)},j.prototype.to=function(e){var d=this,k=this.getItemIndex(this.$active=this.$element.find(".item.active"));return e>this.$items.length-1||0>e?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){d.to(e)}):k==e?this.pause().cycle():this.slide(e>k?"next":"prev",this.$items.eq(e))},j.prototype.pause=function(a){return a||(this.paused=!0),this.$element.find(".next, .prev").length&&g.support.transition&&(this.$element.trigger(g.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},j.prototype.next=function(){return this.sliding?void 0:this.slide("next")},j.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},j.prototype.slide=function(v,u){var t=this.$element.find(".item.active"),s=u||this.getItemForDirection(v,t),r=this.interval,q="next"==v?"left":"right",p=this;if(s.hasClass("active")){return this.sliding=!1}var o=s[0],n=g.Event("slide.bs.carousel",{relatedTarget:o,direction:q});if(this.$element.trigger(n),!n.isDefaultPrevented()){if(this.sliding=!0,r&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var c=g(this.$indicators.children()[this.getItemIndex(s)]);c&&c.addClass("active")}var a=g.Event("slid.bs.carousel",{relatedTarget:o,direction:q});return g.support.transition&&this.$element.hasClass("slide")?(s.addClass(v),s[0].offsetWidth,t.addClass(q),s.addClass(q),t.one("bsTransitionEnd",function(){s.removeClass([v,q].join(" ")).addClass("active"),t.removeClass(["active",q].join(" ")),p.sliding=!1,setTimeout(function(){p.$element.trigger(a)},0)}).emulateTransitionEnd(j.TRANSITION_DURATION)):(t.removeClass("active"),s.addClass("active"),this.sliding=!1,this.$element.trigger(a)),r&&this.cycle(),this}};var i=g.fn.carousel;g.fn.carousel=f,g.fn.carousel.Constructor=j,g.fn.carousel.noConflict=function(){return g.fn.carousel=i,this};var h=function(n){var m,l=g(this),k=g(l.attr("data-target")||(m=l.attr("href"))&&m.replace(/.*(?=#[^\s]+$)/,""));if(k.hasClass("carousel")){var b=g.extend({},k.data(),l.data()),a=l.attr("data-slide-to");a&&(b.interval=!1),f.call(k,b),a&&k.data("bs.carousel").to(a),n.preventDefault()}};g(document).on("click.bs.carousel.data-api","[data-slide]",h).on("click.bs.carousel.data-api","[data-slide-to]",h),g(window).on("load",function(){g('[data-ride="carousel"]').each(function(){var a=g(this);f.call(a,a.data())})})}(jQuery),+function(g){function f(a){var k,e=a.attr("data-target")||(k=a.attr("href"))&&k.replace(/.*(?=#[^\s]+$)/,"");return g(e)}function j(a){return this.each(function(){var k=g(this),d=k.data("bs.collapse"),b=g.extend({},i.DEFAULTS,k.data(),"object"==typeof a&&a);!d&&b.toggle&&/show|hide/.test(a)&&(b.toggle=!1),d||k.data("bs.collapse",d=new i(this,b)),"string"==typeof a&&d[a]()})}var i=function(a,d){this.$element=g(a),this.options=g.extend({},i.DEFAULTS,d),this.$trigger=g('[data-toggle="collapse"][href="#'+a.id+'"],[data-toggle="collapse"][data-target="#'+a.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};i.VERSION="3.3.4",i.TRANSITION_DURATION=350,i.DEFAULTS={toggle:!0},i.prototype.dimension=function(){var b=this.$element.hasClass("width");return b?"width":"height"},i.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var a,m=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(m&&m.length&&(a=m.data("bs.collapse"),a&&a.transitioning))){var l=g.Event("show.bs.collapse");if(this.$element.trigger(l),!l.isDefaultPrevented()){m&&m.length&&(j.call(m,"hide"),a||m.data("bs.collapse",null));var k=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[k](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var d=function(){this.$element.removeClass("collapsing").addClass("collapse in")[k](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!g.support.transition){return d.call(this)}var c=g.camelCase(["scroll",k].join("-"));this.$element.one("bsTransitionEnd",g.proxy(d,this)).emulateTransitionEnd(i.TRANSITION_DURATION)[k](this.$element[0][c])}}}},i.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var a=g.Event("hide.bs.collapse");if(this.$element.trigger(a),!a.isDefaultPrevented()){var k=this.dimension();this.$element[k](this.$element[k]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var d=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return g.support.transition?void this.$element[k](0).one("bsTransitionEnd",g.proxy(d,this)).emulateTransitionEnd(i.TRANSITION_DURATION):d.call(this)}}},i.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},i.prototype.getParent=function(){return g(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(g.proxy(function(k,b){var a=g(b);this.addAriaAndCollapsedClass(f(a),a)},this)).end()},i.prototype.addAriaAndCollapsedClass=function(e,d){var k=e.hasClass("in");e.attr("aria-expanded",k),d.toggleClass("collapsed",!k).attr("aria-expanded",k)};var h=g.fn.collapse;g.fn.collapse=j,g.fn.collapse.Constructor=i,g.fn.collapse.noConflict=function(){return g.fn.collapse=h,this},g(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(l){var k=g(this);k.attr("data-target")||l.preventDefault();var c=f(k),b=c.data("bs.collapse"),a=b?"toggle":k.data();j.call(c,a)})}(jQuery),+function(j){function i(a){a&&3===a.which||(j(n).remove(),j(m).each(function(){var g=j(this),c=p(g),b={relatedTarget:this};c.hasClass("open")&&(c.trigger(a=j.Event("hide.bs.dropdown",b)),a.isDefaultPrevented()||(g.attr("aria-expanded","false"),c.removeClass("open").trigger("hidden.bs.dropdown",b)))}))}function p(a){var f=a.attr("data-target");f||(f=a.attr("href"),f=f&&/#[A-Za-z]/.test(f)&&f.replace(/.*(?=#[^\s]*$)/,""));var e=f&&j(f);return e&&e.length?e:a.parent()}function o(a){return this.each(function(){var e=j(this),b=e.data("bs.dropdown");b||e.data("bs.dropdown",b=new l(this)),"string"==typeof a&&b[a].call(e)})}var n=".dropdown-backdrop",m='[data-toggle="dropdown"]',l=function(a){j(a).on("click.bs.dropdown",this.toggle)};l.VERSION="3.3.4",l.prototype.toggle=function(r){var q=j(this);if(!q.is(".disabled, :disabled")){var c=p(q),b=c.hasClass("open");if(i(),!b){"ontouchstart" in document.documentElement&&!c.closest(".navbar-nav").length&&j('<div class="dropdown-backdrop"/>').insertAfter(j(this)).on("click",i);var a={relatedTarget:this};if(c.trigger(r=j.Event("show.bs.dropdown",a)),r.isDefaultPrevented()){return}q.trigger("focus").attr("aria-expanded","true"),c.toggleClass("open").trigger("shown.bs.dropdown",a)}return !1}},l.prototype.keydown=function(a){if(/(38|40|27|32)/.test(a.which)&&!/input|textarea/i.test(a.target.tagName)){var t=j(this);if(a.preventDefault(),a.stopPropagation(),!t.is(".disabled, :disabled")){var s=p(t),r=s.hasClass("open");if(!r&&27!=a.which||r&&27==a.which){return 27==a.which&&s.find(m).trigger("focus"),t.trigger("click")}var q=" li:not(.disabled):visible a",f=s.find('[role="menu"]'+q+', [role="listbox"]'+q);if(f.length){var c=f.index(a.target);38==a.which&&c>0&&c--,40==a.which&&c<f.length-1&&c++,~c||(c=0),f.eq(c).trigger("focus")}}}};var k=j.fn.dropdown;j.fn.dropdown=o,j.fn.dropdown.Constructor=l,j.fn.dropdown.noConflict=function(){return j.fn.dropdown=k,this},j(document).on("click.bs.dropdown.data-api",i).on("click.bs.dropdown.data-api",".dropdown form",function(b){b.stopPropagation()}).on("click.bs.dropdown.data-api",m,l.prototype.toggle).on("keydown.bs.dropdown.data-api",m,l.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="menu"]',l.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="listbox"]',l.prototype.keydown)}(jQuery),+function(f){function e(a,c){return this.each(function(){var i=f(this),d=i.data("bs.modal"),b=f.extend({},h.DEFAULTS,i.data(),"object"==typeof a&&a);d||i.data("bs.modal",d=new h(this,b)),"string"==typeof a?d[a](c):b.show&&d.show(c)})}var h=function(a,d){this.options=d,this.$body=f(document.body),this.$element=f(a),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,f.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};h.VERSION="3.3.4",h.TRANSITION_DURATION=300,h.BACKDROP_TRANSITION_DURATION=150,h.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},h.prototype.toggle=function(b){return this.isShown?this.hide():this.show(b)},h.prototype.show=function(a){var i=this,c=f.Event("show.bs.modal",{relatedTarget:a});this.$element.trigger(c),this.isShown||c.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',f.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){i.$element.one("mouseup.dismiss.bs.modal",function(d){f(d.target).is(i.$element)&&(i.ignoreBackdropClick=!0)})}),this.backdrop(function(){var d=f.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),i.adjustDialog(),d&&i.$element[0].offsetWidth,i.$element.addClass("in").attr("aria-hidden",!1),i.enforceFocus();var b=f.Event("shown.bs.modal",{relatedTarget:a});d?i.$dialog.one("bsTransitionEnd",function(){i.$element.trigger("focus").trigger(b)}).emulateTransitionEnd(h.TRANSITION_DURATION):i.$element.trigger("focus").trigger(b)}))},h.prototype.hide=function(a){a&&a.preventDefault(),a=f.Event("hide.bs.modal"),this.$element.trigger(a),this.isShown&&!a.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),f(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),f.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",f.proxy(this.hideModal,this)).emulateTransitionEnd(h.TRANSITION_DURATION):this.hideModal())},h.prototype.enforceFocus=function(){f(document).off("focusin.bs.modal").on("focusin.bs.modal",f.proxy(function(b){this.$element[0]===b.target||this.$element.has(b.target).length||this.$element.trigger("focus")},this))},h.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",f.proxy(function(b){27==b.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},h.prototype.resize=function(){this.isShown?f(window).on("resize.bs.modal",f.proxy(this.handleUpdate,this)):f(window).off("resize.bs.modal")},h.prototype.hideModal=function(){var b=this;this.$element.hide(),this.backdrop(function(){b.$body.removeClass("modal-open"),b.resetAdjustments(),b.resetScrollbar(),b.$element.trigger("hidden.bs.modal")})},h.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},h.prototype.backdrop=function(a){var k=this,j=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var i=f.support.transition&&j;if(this.$backdrop=f('<div class="modal-backdrop '+j+'" />').appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",f.proxy(function(b){return this.ignoreBackdropClick?void (this.ignoreBackdropClick=!1):void (b.target===b.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!a){return}i?this.$backdrop.one("bsTransitionEnd",a).emulateTransitionEnd(h.BACKDROP_TRANSITION_DURATION):a()}else{if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var c=function(){k.removeBackdrop(),a&&a()};f.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",c).emulateTransitionEnd(h.BACKDROP_TRANSITION_DURATION):c()}else{a&&a()}}},h.prototype.handleUpdate=function(){this.adjustDialog()},h.prototype.adjustDialog=function(){var b=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&b?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!b?this.scrollbarWidth:""})},h.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},h.prototype.checkScrollbar=function(){var d=window.innerWidth;if(!d){var c=document.documentElement.getBoundingClientRect();d=c.right-Math.abs(c.left)}this.bodyIsOverflowing=document.body.clientWidth<d,this.scrollbarWidth=this.measureScrollbar()},h.prototype.setScrollbar=function(){var b=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",b+this.scrollbarWidth)},h.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},h.prototype.measureScrollbar=function(){var d=document.createElement("div");d.className="modal-scrollbar-measure",this.$body.append(d);var c=d.offsetWidth-d.clientWidth;return this.$body[0].removeChild(d),c};var g=f.fn.modal;f.fn.modal=e,f.fn.modal.Constructor=h,f.fn.modal.noConflict=function(){return f.fn.modal=g,this},f(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(k){var j=f(this),i=j.attr("href"),b=f(j.attr("data-target")||i&&i.replace(/.*(?=#[^\s]+$)/,"")),a=b.data("bs.modal")?"toggle":f.extend({remote:!/#/.test(i)&&i},b.data(),j.data());j.is("a")&&k.preventDefault(),b.one("show.bs.modal",function(c){c.isDefaultPrevented()||b.one("hidden.bs.modal",function(){j.is(":visible")&&j.trigger("focus")})}),e.call(b,a,this)})}(jQuery),+function(f){function e(a){return this.each(function(){var i=f(this),c=i.data("bs.tooltip"),b="object"==typeof a&&a;(c||!/destroy|hide/.test(a))&&(c||i.data("bs.tooltip",c=new h(this,b)),"string"==typeof a&&c[a]())})}var h=function(d,c){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.init("tooltip",d,c)};h.VERSION="3.3.4",h.TRANSITION_DURATION=150,h.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},h.prototype.init=function(a,p,o){if(this.enabled=!0,this.type=a,this.$element=f(p),this.options=this.getOptions(o),this.$viewport=this.options.viewport&&f(this.options.viewport.selector||this.options.viewport),this.$element[0] instanceof document.constructor&&!this.options.selector){throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!")}for(var n=this.options.trigger.split(" "),m=n.length;m--;){var l=n[m];if("click"==l){this.$element.on("click."+this.type,this.options.selector,f.proxy(this.toggle,this))}else{if("manual"!=l){var k="hover"==l?"mouseenter":"focusin",j="hover"==l?"mouseleave":"focusout";this.$element.on(k+"."+this.type,this.options.selector,f.proxy(this.enter,this)),this.$element.on(j+"."+this.type,this.options.selector,f.proxy(this.leave,this))}}}this.options.selector?this._options=f.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},h.prototype.getDefaults=function(){return h.DEFAULTS},h.prototype.getOptions=function(a){return a=f.extend({},this.getDefaults(),this.$element.data(),a),a.delay&&"number"==typeof a.delay&&(a.delay={show:a.delay,hide:a.delay}),a},h.prototype.getDelegateOptions=function(){var a={},d=this.getDefaults();return this._options&&f.each(this._options,function(b,c){d[b]!=c&&(a[b]=c)}),a},h.prototype.enter=function(a){var d=a instanceof this.constructor?a:f(a.currentTarget).data("bs."+this.type);return d&&d.$tip&&d.$tip.is(":visible")?void (d.hoverState="in"):(d||(d=new this.constructor(a.currentTarget,this.getDelegateOptions()),f(a.currentTarget).data("bs."+this.type,d)),clearTimeout(d.timeout),d.hoverState="in",d.options.delay&&d.options.delay.show?void (d.timeout=setTimeout(function(){"in"==d.hoverState&&d.show()},d.options.delay.show)):d.show())},h.prototype.leave=function(a){var d=a instanceof this.constructor?a:f(a.currentTarget).data("bs."+this.type);return d||(d=new this.constructor(a.currentTarget,this.getDelegateOptions()),f(a.currentTarget).data("bs."+this.type,d)),clearTimeout(d.timeout),d.hoverState="out",d.options.delay&&d.options.delay.hide?void (d.timeout=setTimeout(function(){"out"==d.hoverState&&d.hide()},d.options.delay.hide)):d.hide()},h.prototype.show=function(){var F=f.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(F);var E=f.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(F.isDefaultPrevented()||!E){return}var D=this,C=this.tip(),B=this.getUID(this.type);this.setContent(),C.attr("id",B),this.$element.attr("aria-describedby",B),this.options.animation&&C.addClass("fade");var A="function"==typeof this.options.placement?this.options.placement.call(this,C[0],this.$element[0]):this.options.placement,z=/\s?auto?\s?/i,y=z.test(A);y&&(A=A.replace(z,"")||"top"),C.detach().css({top:0,left:0,display:"block"}).addClass(A).data("bs."+this.type,this),this.options.container?C.appendTo(this.options.container):C.insertAfter(this.$element);var x=this.getPosition(),w=C[0].offsetWidth,v=C[0].offsetHeight;if(y){var u=A,t=this.options.container?f(this.options.container):this.$element.parent(),s=this.getPosition(t);A="bottom"==A&&x.bottom+v>s.bottom?"top":"top"==A&&x.top-v<s.top?"bottom":"right"==A&&x.right+w>s.width?"left":"left"==A&&x.left-w<s.left?"right":A,C.removeClass(u).addClass(A)}var c=this.getCalculatedOffset(A,x,w,v);this.applyPlacement(c,A);var a=function(){var b=D.hoverState;D.$element.trigger("shown.bs."+D.type),D.hoverState=null,"out"==b&&D.leave(D)};f.support.transition&&this.$tip.hasClass("fade")?C.one("bsTransitionEnd",a).emulateTransitionEnd(h.TRANSITION_DURATION):a()}},h.prototype.applyPlacement=function(z,y){var x=this.tip(),w=x[0].offsetWidth,v=x[0].offsetHeight,u=parseInt(x.css("margin-top"),10),t=parseInt(x.css("margin-left"),10);isNaN(u)&&(u=0),isNaN(t)&&(t=0),z.top=z.top+u,z.left=z.left+t,f.offset.setOffset(x[0],f.extend({using:function(b){x.css({top:Math.round(b.top),left:Math.round(b.left)})}},z),0),x.addClass("in");var s=x[0].offsetWidth,r=x[0].offsetHeight;"top"==y&&r!=v&&(z.top=z.top+v-r);var q=this.getViewportAdjustedDelta(y,z,s,r);q.left?z.left+=q.left:z.top+=q.top;var p=/top|bottom/.test(y),o=p?2*q.left-w+s:2*q.top-v+r,a=p?"offsetWidth":"offsetHeight";x.offset(z),this.replaceArrow(o,x[0][a],p)},h.prototype.replaceArrow=function(i,d,j){this.arrow().css(j?"left":"top",50*(1-i/d)+"%").css(j?"top":"left","")},h.prototype.setContent=function(){var d=this.tip(),c=this.getTitle();d.find(".tooltip-inner")[this.options.html?"html":"text"](c),d.removeClass("fade in top bottom left right")},h.prototype.hide=function(a){function k(){"in"!=j.hoverState&&i.detach(),j.$element.removeAttr("aria-describedby").trigger("hidden.bs."+j.type),a&&a()}var j=this,i=f(this.$tip),c=f.Event("hide.bs."+this.type);return this.$element.trigger(c),c.isDefaultPrevented()?void 0:(i.removeClass("in"),f.support.transition&&i.hasClass("fade")?i.one("bsTransitionEnd",k).emulateTransitionEnd(h.TRANSITION_DURATION):k(),this.hoverState=null,this)},h.prototype.fixTitle=function(){var b=this.$element;(b.attr("title")||"string"!=typeof b.attr("data-original-title"))&&b.attr("data-original-title",b.attr("title")||"").attr("title","")},h.prototype.hasContent=function(){return this.getTitle()},h.prototype.getPosition=function(a){a=a||this.$element;var n=a[0],m="BODY"==n.tagName,l=n.getBoundingClientRect();null==l.width&&(l=f.extend({},l,{width:l.right-l.left,height:l.bottom-l.top}));var k=m?{top:0,left:0}:a.offset(),j={scroll:m?document.documentElement.scrollTop||document.body.scrollTop:a.scrollTop()},i=m?{width:f(window).width(),height:f(window).height()}:null;return f.extend({},l,j,i,k)},h.prototype.getCalculatedOffset=function(j,i,l,k){return"bottom"==j?{top:i.top+i.height,left:i.left+i.width/2-l/2}:"top"==j?{top:i.top-k,left:i.left+i.width/2-l/2}:"left"==j?{top:i.top+i.height/2-k/2,left:i.left-l}:{top:i.top+i.height/2-k/2,left:i.left+i.width}},h.prototype.getViewportAdjustedDelta=function(v,u,t,s){var r={top:0,left:0};if(!this.$viewport){return r}var q=this.options.viewport&&this.options.viewport.padding||0,p=this.getPosition(this.$viewport);if(/right|left/.test(v)){var o=u.top-q-p.scroll,n=u.top+q-p.scroll+s;o<p.top?r.top=p.top-o:n>p.top+p.height&&(r.top=p.top+p.height-n)}else{var m=u.left-q,l=u.left+q+t;m<p.left?r.left=p.left-m:l>p.width&&(r.left=p.left+p.width-l)}return r},h.prototype.getTitle=function(){var i,d=this.$element,j=this.options;return i=d.attr("data-original-title")||("function"==typeof j.title?j.title.call(d[0]):j.title)},h.prototype.getUID=function(b){do{b+=~~(1000000*Math.random())}while(document.getElementById(b));return b},h.prototype.tip=function(){return this.$tip=this.$tip||f(this.options.template)},h.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},h.prototype.enable=function(){this.enabled=!0},h.prototype.disable=function(){this.enabled=!1},h.prototype.toggleEnabled=function(){this.enabled=!this.enabled},h.prototype.toggle=function(a){var d=this;a&&(d=f(a.currentTarget).data("bs."+this.type),d||(d=new this.constructor(a.currentTarget,this.getDelegateOptions()),f(a.currentTarget).data("bs."+this.type,d))),d.tip().hasClass("in")?d.leave(d):d.enter(d)},h.prototype.destroy=function(){var b=this;clearTimeout(this.timeout),this.hide(function(){b.$element.off("."+b.type).removeData("bs."+b.type)})};var g=f.fn.tooltip;f.fn.tooltip=e,f.fn.tooltip.Constructor=h,f.fn.tooltip.noConflict=function(){return f.fn.tooltip=g,this}}(jQuery),+function(f){function e(a){return this.each(function(){var i=f(this),c=i.data("bs.popover"),b="object"==typeof a&&a;(c||!/destroy|hide/.test(a))&&(c||i.data("bs.popover",c=new h(this,b)),"string"==typeof a&&c[a]())})}var h=function(d,c){this.init("popover",d,c)};if(!f.fn.tooltip){throw new Error("Popover requires tooltip.js")}h.VERSION="3.3.4",h.DEFAULTS=f.extend({},f.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),h.prototype=f.extend({},f.fn.tooltip.Constructor.prototype),h.prototype.constructor=h,h.prototype.getDefaults=function(){return h.DEFAULTS},h.prototype.setContent=function(){var i=this.tip(),d=this.getTitle(),j=this.getContent();i.find(".popover-title")[this.options.html?"html":"text"](d),i.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof j?"html":"append":"text"](j),i.removeClass("fade top bottom left right in"),i.find(".popover-title").html()||i.find(".popover-title").hide()},h.prototype.hasContent=function(){return this.getTitle()||this.getContent()},h.prototype.getContent=function(){var d=this.$element,c=this.options;return d.attr("data-content")||("function"==typeof c.content?c.content.call(d[0]):c.content)},h.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var g=f.fn.popover;f.fn.popover=e,f.fn.popover.Constructor=h,f.fn.popover.noConflict=function(){return f.fn.popover=g,this}}(jQuery),+function(f){function e(b,a){this.$body=f(document.body),this.$scrollElement=f(f(b).is(document.body)?window:b),this.options=f.extend({},e.DEFAULTS,a),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",f.proxy(this.process,this)),this.refresh(),this.process()}function h(a){return this.each(function(){var i=f(this),c=i.data("bs.scrollspy"),b="object"==typeof a&&a;c||i.data("bs.scrollspy",c=new e(this,b)),"string"==typeof a&&c[a]()})}e.VERSION="3.3.4",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var a=this,j="offset",i=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),f.isWindow(this.$scrollElement[0])||(j="position",i=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var c=f(this),k=c.data("target")||c.attr("href"),d=/^#./.test(k)&&f(k);return d&&d.length&&d.is(":visible")&&[[d[j]().top+i,k]]||null}).sort(function(d,c){return d[0]-c[0]}).each(function(){a.offsets.push(this[0]),a.targets.push(this[1])})},e.prototype.process=function(){var j,i=this.$scrollElement.scrollTop()+this.options.offset,o=this.getScrollHeight(),n=this.options.offset+o-this.$scrollElement.height(),m=this.offsets,l=this.targets,k=this.activeTarget;if(this.scrollHeight!=o&&this.refresh(),i>=n){return k!=(j=l[l.length-1])&&this.activate(j)}if(k&&i<m[0]){return this.activeTarget=null,this.clear()}for(j=m.length;j--;){k!=l[j]&&i>=m[j]&&(void 0===m[j+1]||i<m[j+1])&&this.activate(l[j])}},e.prototype.activate=function(a){this.activeTarget=a,this.clear();var j=this.selector+'[data-target="'+a+'"],'+this.selector+'[href="'+a+'"]',i=f(j).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active")),i.trigger("activate.bs.scrollspy")},e.prototype.clear=function(){f(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var g=f.fn.scrollspy;f.fn.scrollspy=h,f.fn.scrollspy.Constructor=e,f.fn.scrollspy.noConflict=function(){return f.fn.scrollspy=g,this},f(window).on("load.bs.scrollspy.data-api",function(){f('[data-spy="scroll"]').each(function(){var a=f(this);h.call(a,a.data())})})}(jQuery),+function(g){function f(a){return this.each(function(){var c=g(this),b=c.data("bs.tab");b||c.data("bs.tab",b=new j(this)),"string"==typeof a&&b[a]()})}var j=function(a){this.element=g(a)};j.VERSION="3.3.4",j.TRANSITION_DURATION=150,j.prototype.show=function(){var a=this.element,p=a.closest("ul:not(.dropdown-menu)"),o=a.data("target");if(o||(o=a.attr("href"),o=o&&o.replace(/.*(?=#[^\s]*$)/,"")),!a.parent("li").hasClass("active")){var n=p.find(".active:last a"),m=g.Event("hide.bs.tab",{relatedTarget:a[0]}),l=g.Event("show.bs.tab",{relatedTarget:n[0]});if(n.trigger(m),a.trigger(l),!l.isDefaultPrevented()&&!m.isDefaultPrevented()){var k=g(o);this.activate(a.closest("li"),p),this.activate(k,k.parent(),function(){n.trigger({type:"hidden.bs.tab",relatedTarget:a[0]}),a.trigger({type:"shown.bs.tab",relatedTarget:n[0]})})}}},j.prototype.activate=function(a,n,m){function l(){k.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),a.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),c?(a[0].offsetWidth,a.addClass("in")):a.removeClass("fade"),a.parent(".dropdown-menu").length&&a.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),m&&m()}var k=n.find("> .active"),c=m&&g.support.transition&&(k.length&&k.hasClass("fade")||!!n.find("> .fade").length);k.length&&c?k.one("bsTransitionEnd",l).emulateTransitionEnd(j.TRANSITION_DURATION):l(),k.removeClass("in")};var i=g.fn.tab;g.fn.tab=f,g.fn.tab.Constructor=j,g.fn.tab.noConflict=function(){return g.fn.tab=i,this};var h=function(a){a.preventDefault(),f.call(g(this),"show")};g(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',h).on("click.bs.tab.data-api",'[data-toggle="pill"]',h)}(jQuery),+function(f){function e(a){return this.each(function(){var i=f(this),c=i.data("bs.affix"),b="object"==typeof a&&a;c||i.data("bs.affix",c=new h(this,b)),"string"==typeof a&&c[a]()})}var h=function(a,c){this.options=f.extend({},h.DEFAULTS,c),this.$target=f(this.options.target).on("scroll.bs.affix.data-api",f.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",f.proxy(this.checkPositionWithEventLoop,this)),this.$element=f(a),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};h.VERSION="3.3.4",h.RESET="affix affix-top affix-bottom",h.DEFAULTS={offset:0,target:window},h.prototype.getState=function(t,s,r,q){var p=this.$target.scrollTop(),o=this.$element.offset(),n=this.$target.height();if(null!=r&&"top"==this.affixed){return r>p?"top":!1}if("bottom"==this.affixed){return null!=r?p+this.unpin<=o.top?!1:"bottom":t-q>=p+n?!1:"bottom"}var m=null==this.affixed,l=m?p:o.top,k=m?n:s;return null!=r&&r>=p?"top":null!=q&&l+k>=t-q?"bottom":!1},h.prototype.getPinnedOffset=function(){if(this.pinnedOffset){return this.pinnedOffset}this.$element.removeClass(h.RESET).addClass("affix");var d=this.$target.scrollTop(),c=this.$element.offset();return this.pinnedOffset=c.top-d},h.prototype.checkPositionWithEventLoop=function(){setTimeout(f.proxy(this.checkPosition,this),1)},h.prototype.checkPosition=function(){if(this.$element.is(":visible")){var a=this.$element.height(),p=this.options.offset,o=p.top,n=p.bottom,m=f(document.body).height();"object"!=typeof p&&(n=o=p),"function"==typeof o&&(o=p.top(this.$element)),"function"==typeof n&&(n=p.bottom(this.$element));var l=this.getState(m,a,o,n);if(this.affixed!=l){null!=this.unpin&&this.$element.css("top","");var k="affix"+(l?"-"+l:""),c=f.Event(k+".bs.affix");if(this.$element.trigger(c),c.isDefaultPrevented()){return}this.affixed=l,this.unpin="bottom"==l?this.getPinnedOffset():null,this.$element.removeClass(h.RESET).addClass(k).trigger(k.replace("affix","affixed")+".bs.affix")}"bottom"==l&&this.$element.offset({top:m-a-n})}};var g=f.fn.affix;f.fn.affix=e,f.fn.affix.Constructor=h,f.fn.affix.noConflict=function(){return f.fn.affix=g,this},f(window).on("load",function(){f('[data-spy="affix"]').each(function(){var b=f(this),a=b.data();a.offset=a.offset||{},null!=a.offsetBottom&&(a.offset.bottom=a.offsetBottom),null!=a.offsetTop&&(a.offset.top=a.offsetTop),e.call(b,a)})})}(jQuery);


/*!
 * jQuery Cookie Plugin v1.4.1
 * https://github.com/carhartl/jquery-cookie
 *
 * Copyright 2006, 2014 Klaus Hartl
 * Released under the MIT license
 */
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a(require("jquery")):a(jQuery)}(function(g){function k(c){return a.raw?c:encodeURIComponent(c)}function h(c){return a.raw?c:decodeURIComponent(c)}function d(c){return k(a.json?JSON.stringify(c):String(c))}function b(c){0===c.indexOf('"')&&(c=c.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return c=decodeURIComponent(c.replace(j," ")),a.json?JSON.parse(c):c}catch(i){}}function f(l,e){var c=a.raw?l:b(l);return g.isFunction(e)?e(c):c}var j=/\+/g,a=g.cookie=function(z,v,A){if(arguments.length>1&&!g.isFunction(v)){if(A=g.extend({},a.defaults,A),"number"==typeof A.expires){var y=A.expires,u=A.expires=new Date;u.setMilliseconds(u.getMilliseconds()+86400000*y)}return document.cookie=[k(z),"=",d(v),A.expires?"; expires="+A.expires.toUTCString():"",A.path?"; path="+A.path:"",A.domain?"; domain="+A.domain:"",A.secure?"; secure":""].join("")}for(var r=z?void 0:{},e=document.cookie?document.cookie.split("; "):[],n=0,i=e.length;i>n;n++){var w=e[n].split("="),q=h(w.shift()),o=w.join("=");if(z===q){r=f(o,v);break}z||void 0===(o=f(o))||(r[q]=o)}return r};a.defaults={},g.removeCookie=function(e,c){return g.cookie(e,"",g.extend({},c,{expires:-1})),!g.cookie(e)}});


/*!
 * Isotope PACKAGED v2.2.2
 *
 * http://isotope.metafizzy.co
 * Copyright 2015 Metafizzy
 */
!function(f){function e(){}function h(b){function j(a){a.prototype.option||(a.prototype.option=function(c){b.isPlainObject(c)&&(this.options=b.extend(!0,this.options,c))})}function i(a,k){b.fn[a]=function(r){if("string"==typeof r){for(var q=g.call(arguments,1),p=0,o=this.length;o>p;p++){var n=this[p],m=b.data(n,a);if(m){if(b.isFunction(m[r])&&"_"!==r.charAt(0)){var c=m[r].apply(m,q);if(void 0!==c){return c}}else{d("no such method '"+r+"' for "+a+" instance")}}else{d("cannot call methods on "+a+" prior to initialization; attempted to call '"+r+"'")}}return this}return this.each(function(){var l=b.data(this,a);l?(l.option(r),l._init()):(l=new k(this,r),b.data(this,a,l))})}}if(b){var d="undefined"==typeof console?e:function(c){console.error(c)};return b.bridget=function(k,c){j(c),i(k,c)},b.bridget}}var g=Array.prototype.slice;"function"==typeof define&&define.amd?define("jquery-bridget/jquery.bridget",["jquery"],h):h("object"==typeof exports?require("jquery"):f.jQuery)}(window),function(h){function g(a){var d=h.event;return d.target=d.target||d.srcElement||a,d}var l=document.documentElement,k=function(){};l.addEventListener?k=function(e,d,f){e.addEventListener(d,f,!1)}:l.attachEvent&&(k=function(b,f,e){b[f+e]=e.handleEvent?function(){var a=g(b);e.handleEvent.call(e,a)}:function(){var a=g(b);e.call(b,a)},b.attachEvent("on"+f,b[f+e])});var j=function(){};l.removeEventListener?j=function(e,d,f){e.removeEventListener(d,f,!1)}:l.detachEvent&&(j=function(f,e,n){f.detachEvent("on"+e,f[e+n]);try{delete f[e+n]}catch(m){f[e+n]=void 0}});var i={bind:k,unbind:j};"function"==typeof define&&define.amd?define("eventie/eventie",i):"object"==typeof exports?module.exports=i:h.eventie=i}(window),function(){function h(){}function g(e,d){for(var f=e.length;f--;){if(e[f].listener===d){return f}}return -1}function l(b){return function(){return this[b].apply(this,arguments)}}var k=h.prototype,j=this,i=j.EventEmitter;k.getListeners=function(f){var e,n,m=this._getEvents();if(f instanceof RegExp){e={};for(n in m){m.hasOwnProperty(n)&&f.test(n)&&(e[n]=m[n])}}else{e=m[f]||(m[f]=[])}return e},k.flattenListeners=function(e){var d,f=[];for(d=0;d<e.length;d+=1){f.push(e[d].listener)}return f},k.getListenersAsObject=function(e){var d,f=this.getListeners(e);return f instanceof Array&&(d={},d[e]=f),d||f},k.addListener=function(b,p){var o,n=this.getListenersAsObject(b),m="object"==typeof p;for(o in n){n.hasOwnProperty(o)&&-1===g(n[o],p)&&n[o].push(m?p:{listener:p,once:!1})}return this},k.on=l("addListener"),k.addOnceListener=function(d,c){return this.addListener(d,{listener:c,once:!0})},k.once=l("addOnceListener"),k.defineEvent=function(b){return this.getListeners(b),this},k.defineEvents=function(d){for(var c=0;c<d.length;c+=1){this.defineEvent(d[c])}return this},k.removeListener=function(b,p){var o,n,m=this.getListenersAsObject(b);for(n in m){m.hasOwnProperty(n)&&(o=g(m[n],p),-1!==o&&m[n].splice(o,1))}return this},k.off=l("removeListener"),k.addListeners=function(d,c){return this.manipulateListeners(!1,d,c)},k.removeListeners=function(d,c){return this.manipulateListeners(!0,d,c)},k.manipulateListeners=function(n,m,s){var r,q,p=n?this.removeListener:this.addListener,o=n?this.removeListeners:this.addListeners;if("object"!=typeof m||m instanceof RegExp){for(r=s.length;r--;){p.call(this,m,s[r])}}else{for(r in m){m.hasOwnProperty(r)&&(q=m[r])&&("function"==typeof q?p.call(this,r,q):o.call(this,r,q))}}return this},k.removeEvent=function(f){var e,n=typeof f,m=this._getEvents();if("string"===n){delete m[f]}else{if(f instanceof RegExp){for(e in m){m.hasOwnProperty(e)&&f.test(e)&&delete m[e]}}else{delete this._events}}return this},k.removeAllListeners=l("removeEvent"),k.emitEvent=function(n,m){var s,r,q,p,o=this.getListenersAsObject(n);for(q in o){if(o.hasOwnProperty(q)){for(r=o[q].length;r--;){s=o[q][r],s.once===!0&&this.removeListener(n,s.listener),p=s.listener.apply(this,m||[]),p===this._getOnceReturnValue()&&this.removeListener(n,s.listener)}}}return this},k.trigger=l("emitEvent"),k.emit=function(d){var c=Array.prototype.slice.call(arguments,1);return this.emitEvent(d,c)},k.setOnceReturnValue=function(b){return this._onceReturnValue=b,this},k._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},k._getEvents=function(){return this._events||(this._events={})},h.noConflict=function(){return j.EventEmitter=i,h},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return h}):"object"==typeof module&&module.exports?module.exports=h:j.EventEmitter=h}.call(this),function(f){function e(d){if(d){if("string"==typeof g[d]){return d}d=d.charAt(0).toUpperCase()+d.slice(1);for(var c,j=0,i=h.length;i>j;j++){if(c=h[j]+d,"string"==typeof g[c]){return c}}}}var h="Webkit Moz ms Ms O".split(" "),g=document.documentElement.style;"function"==typeof define&&define.amd?define("get-style-property/get-style-property",[],function(){return e}):"object"==typeof exports?module.exports=e:f.getStyleProperty=e}(window),function(j,i){function p(e){var d=parseFloat(e),f=-1===e.indexOf("%")&&!isNaN(d);return f&&d}function o(){}function n(){for(var f={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0,h=k.length;h>e;e++){var g=k[e];f[g]=0}return f}function m(c){function s(){if(!a){a=!0;var v=j.getComputedStyle;if(h=function(){var d=v?function(f){return v(f,null)}:function(f){return f.currentStyle};return function(f){var w=d(f);return w||l("Style returned "+w+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),w}}(),g=c("boxSizing")){var u=document.createElement("div");u.style.width="200px",u.style.padding="1px 2px 3px 4px",u.style.borderStyle="solid",u.style.borderWidth="1px 2px 3px 4px",u.style[g]="border-box";var t=document.body||document.documentElement;t.appendChild(u);var b=h(u);e=200===p(b.width),t.removeChild(u)}}}function r(Q){if(s(),"string"==typeof Q&&(Q=document.querySelector(Q)),Q&&"object"==typeof Q&&Q.nodeType){var P=h(Q);if("none"===P.display){return n()}var O={};O.width=Q.offsetWidth,O.height=Q.offsetHeight;for(var N=O.isBorderBox=!(!g||!P[g]||"border-box"!==P[g]),M=0,L=k.length;L>M;M++){var K=k[M],J=P[K];J=q(Q,J);var I=parseFloat(J);O[K]=isNaN(I)?0:I}var H=O.paddingLeft+O.paddingRight,G=O.paddingTop+O.paddingBottom,F=O.marginLeft+O.marginRight,E=O.marginTop+O.marginBottom,D=O.borderLeftWidth+O.borderRightWidth,C=O.borderTopWidth+O.borderBottomWidth,B=N&&e,A=p(P.width);A!==!1&&(O.width=A+(B?0:H+D));var d=p(P.height);return d!==!1&&(O.height=d+(B?0:G+C)),O.innerWidth=O.width-(H+D),O.innerHeight=O.height-(G+C),O.outerWidth=O.width+F,O.outerHeight=O.height+E,O}}function q(t,y){if(j.getComputedStyle||-1===y.indexOf("%")){return y}var x=t.style,w=x.left,v=t.runtimeStyle,u=v&&v.left;return u&&(v.left=t.currentStyle.left),x.left=y,y=x.pixelLeft,x.left=w,u&&(v.left=u),y}var h,g,e,a=!1;return r}var l="undefined"==typeof console?o:function(b){console.error(b)},k=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];"function"==typeof define&&define.amd?define("get-size/get-size",["get-style-property/get-style-property"],m):"object"==typeof exports?module.exports=m(require("desandro-get-style-property")):j.getSize=m(j.getStyleProperty)}(window),function(i){function h(b){"function"==typeof b&&(h.isReady?b():j.push(b))}function n(b){var d="readystatechange"===b.type&&"complete"!==k.readyState;h.isReady||d||m()}function m(){h.isReady=!0;for(var b=0,f=j.length;f>b;b++){var e=j[b];e()}}function l(a){return"complete"===k.readyState?m():(a.bind(k,"DOMContentLoaded",n),a.bind(k,"readystatechange",n),a.bind(i,"load",n)),h}var k=i.document,j=[];h.isReady=!1,"function"==typeof define&&define.amd?define("doc-ready/doc-ready",["eventie/eventie"],l):"object"==typeof exports?module.exports=l(require("eventie")):i.docReady=l(i.eventie)}(window),function(r){function q(d,c){return d[l](c)}function p(d){if(!d.parentNode){var c=document.createDocumentFragment();c.appendChild(d)}}function o(g,c){p(g);for(var s=g.parentNode.querySelectorAll(c),i=0,h=s.length;h>i;i++){if(s[i]===g){return !0}}return !1}function n(b,c){return p(b),q(b,c)}var m,l=function(){if(r.matches){return"matches"}if(r.matchesSelector){return"matchesSelector"}for(var a=["webkit","moz","ms","o"],s=0,i=a.length;i>s;s++){var h=a[s],g=h+"MatchesSelector";if(r[g]){return g}}}();if(l){var k=document.createElement("div"),j=q(k,"div");m=j?q:n}else{m=o}"function"==typeof define&&define.amd?define("matches-selector/matches-selector",[],function(){return m}):"object"==typeof exports?module.exports=m:window.matchesSelector=m}(Element.prototype),function(d,c){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["doc-ready/doc-ready","matches-selector/matches-selector"],function(b,a){return c(d,b,a)}):"object"==typeof exports?module.exports=c(d,require("doc-ready"),require("desandro-matches-selector")):d.fizzyUIUtils=c(d,d.docReady,d.matchesSelector)}(window,function(h,g,l){var k={};k.extend=function(e,d){for(var f in d){e[f]=d[f]}return e},k.modulo=function(d,c){return(d%c+c)%c};var j=Object.prototype.toString;k.isArray=function(b){return"[object Array]"==j.call(b)},k.makeArray=function(f){var d=[];if(k.isArray(f)){d=f}else{if(f&&"number"==typeof f.length){for(var n=0,m=f.length;m>n;n++){d.push(f[n])}}else{d.push(f)}}return d},k.indexOf=Array.prototype.indexOf?function(d,c){return d.indexOf(c)}:function(f,e){for(var n=0,m=f.length;m>n;n++){if(f[n]===e){return n}}return -1},k.removeFrom=function(e,d){var f=k.indexOf(e,d);-1!=f&&e.splice(f,1)},k.isElement="function"==typeof HTMLElement||"object"==typeof HTMLElement?function(b){return b instanceof HTMLElement}:function(b){return b&&"object"==typeof b&&1==b.nodeType&&"string"==typeof b.nodeName},k.setText=function(){function d(b,e){c=c||(void 0!==document.documentElement.textContent?"textContent":"innerText"),b[c]=e}var c;return d}(),k.getParent=function(d,c){for(;d!=document.body;){if(d=d.parentNode,l(d,c)){return d}}},k.getQueryElement=function(b){return"string"==typeof b?document.querySelector(b):b},k.handleEvent=function(d){var c="on"+d.type;this[c]&&this[c](d)},k.filterFindElements=function(s,r){s=k.makeArray(s);for(var q=[],p=0,o=s.length;o>p;p++){var n=s[p];if(k.isElement(n)){if(r){l(n,r)&&q.push(n);for(var m=n.querySelectorAll(r),d=0,c=m.length;c>d;d++){q.push(m[d])}}else{q.push(n)}}}return q},k.debounceMethod=function(m,f,p){var o=m.prototype[f],n=f+"Timeout";m.prototype[f]=function(){var d=this[n];d&&clearTimeout(d);var c=arguments,e=this;this[n]=setTimeout(function(){o.apply(e,c),delete e[n]},p||100)}},k.toDashed=function(b){return b.replace(/(.)([A-Z])/g,function(e,d,f){return d+"-"+f}).toLowerCase()};var i=h.console;return k.htmlInit=function(b,a){g(function(){for(var w=k.toDashed(a),v=document.querySelectorAll(".js-"+w),u="data-"+w+"-options",t=0,s=v.length;s>t;t++){var r,q=v[t],f=q.getAttribute(u);try{r=f&&JSON.parse(f)}catch(e){i&&i.error("Error parsing "+u+" on "+q.nodeName.toLowerCase()+(q.id?"#"+q.id:"")+": "+e);continue}var d=new b(q,r),c=h.jQuery;c&&c.data(q,a,d)}})},k}),function(d,c){"function"==typeof define&&define.amd?define("outlayer/item",["eventEmitter/EventEmitter","get-size/get-size","get-style-property/get-style-property","fizzy-ui-utils/utils"],function(h,g,b,a){return c(d,h,g,b,a)}):"object"==typeof exports?module.exports=c(d,require("wolfy87-eventemitter"),require("get-size"),require("desandro-get-style-property"),require("fizzy-ui-utils")):(d.Outlayer={},d.Outlayer.Item=c(d,d.EventEmitter,d.getSize,d.getStyleProperty,d.fizzyUIUtils))}(window,function(N,M,L,K,J){function I(d){for(var c in d){return !1}return c=null,!0}function H(d,c){d&&(this.element=d,this.layout=c,this.position={x:0,y:0},this._create())}function G(b){return b.replace(/([A-Z])/g,function(c){return"-"+c.toLowerCase()})}var F=N.getComputedStyle,E=F?function(b){return F(b,null)}:function(b){return b.currentStyle},D=K("transition"),C=K("transform"),B=D&&C,A=!!K("perspective"),z={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"}[D],y=["transform","transition","transitionDuration","transitionProperty"],x=function(){for(var g={},d=0,j=y.length;j>d;d++){var i=y[d],h=K(i);h&&h!==i&&(g[i]=h)}return g}();J.extend(H.prototype,M.prototype),H.prototype._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},H.prototype.handleEvent=function(d){var c="on"+d.type;this[c]&&this[c](d)},H.prototype.getSize=function(){this.size=L(this.element)},H.prototype.css=function(f){var e=this.element.style;for(var h in f){var g=x[h]||h;e[g]=f[h]}},H.prototype.getPosition=function(){var r=E(this.element),q=this.layout.options,p=q.isOriginLeft,o=q.isOriginTop,n=r[p?"left":"right"],m=r[o?"top":"bottom"],l=this.layout.size,k=-1!=n.indexOf("%")?parseFloat(n)/100*l.width:parseInt(n,10),j=-1!=m.indexOf("%")?parseFloat(m)/100*l.height:parseInt(m,10);k=isNaN(k)?0:k,j=isNaN(j)?0:j,k-=p?l.paddingLeft:l.paddingRight,j-=o?l.paddingTop:l.paddingBottom,this.position.x=k,this.position.y=j},H.prototype.layoutPosition=function(){var P=this.layout.size,O=this.layout.options,t={},s=O.isOriginLeft?"paddingLeft":"paddingRight",r=O.isOriginLeft?"left":"right",q=O.isOriginLeft?"right":"left",p=this.position.x+P[s];t[r]=this.getXValue(p),t[q]="";var o=O.isOriginTop?"paddingTop":"paddingBottom",n=O.isOriginTop?"top":"bottom",m=O.isOriginTop?"bottom":"top",l=this.position.y+P[o];t[n]=this.getYValue(l),t[m]="",this.css(t),this.emitEvent("layout",[this])},H.prototype.getXValue=function(d){var c=this.layout.options;return c.percentPosition&&!c.isHorizontal?d/this.layout.size.width*100+"%":d+"px"},H.prototype.getYValue=function(d){var c=this.layout.options;return c.percentPosition&&c.isHorizontal?d/this.layout.size.height*100+"%":d+"px"},H.prototype._transitionTo=function(t,s){this.getPosition();var r=this.position.x,q=this.position.y,p=parseInt(t,10),o=parseInt(s,10),n=p===this.position.x&&o===this.position.y;if(this.setPosition(t,s),n&&!this.isTransitioning){return void this.layoutPosition()}var m=t-r,l=s-q,k={};k.transform=this.getTranslate(m,l),this.transition({to:k,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},H.prototype.getTranslate=function(e,d){var f=this.layout.options;return e=f.isOriginLeft?e:-e,d=f.isOriginTop?d:-d,A?"translate3d("+e+"px, "+d+"px, 0)":"translate("+e+"px, "+d+"px)"},H.prototype.goTo=function(d,c){this.setPosition(d,c),this.layoutPosition()},H.prototype.moveTo=B?H.prototype._transitionTo:H.prototype.goTo,H.prototype.setPosition=function(d,c){this.position.x=parseInt(d,10),this.position.y=parseInt(c,10)},H.prototype._nonTransition=function(d){this.css(d.to),d.isCleaning&&this._removeStyles(d.to);for(var c in d.onTransitionEnd){d.onTransitionEnd[c].call(this)}},H.prototype._transition=function(f){if(!parseFloat(this.layout.options.transitionDuration)){return void this._nonTransition(f)}var e=this._transn;for(var h in f.onTransitionEnd){e.onEnd[h]=f.onTransitionEnd[h]}for(h in f.to){e.ingProperties[h]=!0,f.isCleaning&&(e.clean[h]=!0)}if(f.from){this.css(f.from);var g=this.element.offsetHeight;g=null}this.enableTransition(f.to),this.css(f.to),this.isTransitioning=!0};var w="opacity,"+G(x.transform||"transform");H.prototype.enableTransition=function(){this.isTransitioning||(this.css({transitionProperty:w,transitionDuration:this.layout.options.transitionDuration}),this.element.addEventListener(z,this,!1))},H.prototype.transition=H.prototype[D?"_transition":"_nonTransition"],H.prototype.onwebkitTransitionEnd=function(b){this.ontransitionend(b)},H.prototype.onotransitionend=function(b){this.ontransitionend(b)};var v={"-webkit-transform":"transform","-moz-transform":"transform","-o-transform":"transform"};H.prototype.ontransitionend=function(f){if(f.target===this.element){var e=this._transn,h=v[f.propertyName]||f.propertyName;if(delete e.ingProperties[h],I(e.ingProperties)&&this.disableTransition(),h in e.clean&&(this.element.style[f.propertyName]="",delete e.clean[h]),h in e.onEnd){var g=e.onEnd[h];g.call(this),delete e.onEnd[h]}this.emitEvent("transitionEnd",[this])}},H.prototype.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(z,this,!1),this.isTransitioning=!1},H.prototype._removeStyles=function(e){var d={};for(var f in e){d[f]=""}this.css(d)};var u={transitionProperty:"",transitionDuration:""};return H.prototype.removeTransitionStyles=function(){this.css(u)},H.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},H.prototype.remove=function(){if(!D||!parseFloat(this.layout.options.transitionDuration)){return void this.removeElem()}var b=this;this.once("transitionEnd",function(){b.removeElem()}),this.hide()},H.prototype.reveal=function(){delete this.isHidden,this.css({display:""});var e=this.layout.options,d={},f=this.getHideRevealTransitionEndProperty("visibleStyle");d[f]=this.onRevealTransitionEnd,this.transition({from:e.hiddenStyle,to:e.visibleStyle,isCleaning:!0,onTransitionEnd:d})},H.prototype.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},H.prototype.getHideRevealTransitionEndProperty=function(e){var d=this.layout.options[e];if(d.opacity){return"opacity"}for(var f in d){return f}},H.prototype.hide=function(){this.isHidden=!0,this.css({display:""});var e=this.layout.options,d={},f=this.getHideRevealTransitionEndProperty("hiddenStyle");d[f]=this.onHideTransitionEnd,this.transition({from:e.visibleStyle,to:e.hiddenStyle,isCleaning:!0,onTransitionEnd:d})},H.prototype.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},H.prototype.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},H}),function(d,c){"function"==typeof define&&define.amd?define("outlayer/outlayer",["eventie/eventie","eventEmitter/EventEmitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(j,i,h,b,a){return c(d,j,i,h,b,a)}):"object"==typeof exports?module.exports=c(d,require("eventie"),require("wolfy87-eventemitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):d.Outlayer=c(d,d.eventie,d.EventEmitter,d.getSize,d.fizzyUIUtils,d.Outlayer.Item)}(window,function(x,w,v,u,t,s){function r(f,e){var h=t.getQueryElement(f);if(!h){return void (q&&q.error("Bad element for "+this.constructor.namespace+": "+(h||f)))}this.element=h,p&&(this.$element=p(this.element)),this.options=t.extend({},this.constructor.defaults),this.option(e);var g=++n;this.element.outlayerGUID=g,m[g]=this,this._create(),this.options.isInitLayout&&this.layout()}var q=x.console,p=x.jQuery,o=function(){},n=0,m={};return r.namespace="outlayer",r.Item=s,r.defaults={containerStyle:{position:"relative"},isInitLayout:!0,isOriginLeft:!0,isOriginTop:!0,isResizeBound:!0,isResizingContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}},t.extend(r.prototype,v.prototype),r.prototype.option=function(b){t.extend(this.options,b)},r.prototype._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),t.extend(this.element.style,this.options.containerStyle),this.options.isResizeBound&&this.bindResize()},r.prototype.reloadItems=function(){this.items=this._itemize(this.element.children)},r.prototype._itemize=function(j){for(var i=this._filterFindItemElements(j),B=this.constructor.Item,A=[],z=0,y=i.length;y>z;z++){var l=i[z],k=new B(l,this);A.push(k)}return A},r.prototype._filterFindItemElements=function(b){return t.filterFindElements(b,this.options.itemSelector)},r.prototype.getItemElements=function(){for(var e=[],d=0,f=this.items.length;f>d;d++){e.push(this.items[d].element)}return e},r.prototype.layout=function(){this._resetLayout(),this._manageStamps();var b=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;this.layoutItems(this.items,b),this._isLayoutInited=!0},r.prototype._init=r.prototype.layout,r.prototype._resetLayout=function(){this.getSize()},r.prototype.getSize=function(){this.size=u(this.element)},r.prototype._getMeasurement=function(e,d){var h,g=this.options[e];g?("string"==typeof g?h=this.element.querySelector(g):t.isElement(g)&&(h=g),this[e]=h?u(h)[d]:g):this[e]=0},r.prototype.layoutItems=function(d,c){d=this._getItemsForLayout(d),this._layoutItems(d,c),this._postLayout()},r.prototype._getItemsForLayout=function(g){for(var f=[],j=0,i=g.length;i>j;j++){var h=g[j];h.isIgnored||f.push(h)}return f},r.prototype._layoutItems=function(i,h){if(this._emitCompleteOnItems("layout",i),i&&i.length){for(var z=[],y=0,l=i.length;l>y;y++){var k=i[y],j=this._getItemLayoutPosition(k);j.item=k,j.isInstant=h||k.isLayoutInstant,z.push(j)}this._processLayoutQueue(z)}},r.prototype._getItemLayoutPosition=function(){return{x:0,y:0}},r.prototype._processLayoutQueue=function(f){for(var e=0,h=f.length;h>e;e++){var g=f[e];this._positionItem(g.item,g.x,g.y,g.isInstant)}},r.prototype._positionItem=function(f,e,h,g){g?f.goTo(e,h):f.moveTo(e,h)},r.prototype._postLayout=function(){this.resizeContainer()},r.prototype.resizeContainer=function(){if(this.options.isResizingContainer){var b=this._getContainerSize();b&&(this._setContainerMeasure(b.width,!0),this._setContainerMeasure(b.height,!1))}},r.prototype._getContainerSize=o,r.prototype._setContainerMeasure=function(e,d){if(void 0!==e){var f=this.size;f.isBorderBox&&(e+=d?f.paddingLeft+f.paddingRight+f.borderLeftWidth+f.borderRightWidth:f.paddingBottom+f.paddingTop+f.borderTopWidth+f.borderBottomWidth),e=Math.max(e,0),this.element.style[d?"width":"height"]=e+"px"}},r.prototype._emitCompleteOnItems=function(F,E){function D(){B.dispatchEvent(F+"Complete",null,[E])}function C(){z++,z===A&&D()}var B=this,A=E.length;if(!E||!A){return void D()}for(var z=0,y=0,l=E.length;l>y;y++){var k=E[y];k.once(F,C)}},r.prototype.dispatchEvent=function(g,f,j){var i=f?[f].concat(j):j;if(this.emitEvent(g,i),p){if(this.$element=this.$element||p(this.element),f){var h=p.Event(f);h.type=g,this.$element.trigger(h,j)}else{this.$element.trigger(g,j)}}},r.prototype.ignore=function(d){var c=this.getItem(d);c&&(c.isIgnored=!0)},r.prototype.unignore=function(d){var c=this.getItem(d);c&&delete c.isIgnored},r.prototype.stamp=function(f){if(f=this._find(f)){this.stamps=this.stamps.concat(f);for(var e=0,h=f.length;h>e;e++){var g=f[e];this.ignore(g)}}},r.prototype.unstamp=function(f){if(f=this._find(f)){for(var e=0,h=f.length;h>e;e++){var g=f[e];t.removeFrom(this.stamps,g),this.unignore(g)}}},r.prototype._find=function(b){return b?("string"==typeof b&&(b=this.element.querySelectorAll(b)),b=t.makeArray(b)):void 0},r.prototype._manageStamps=function(){if(this.stamps&&this.stamps.length){this._getBoundingRect();for(var e=0,d=this.stamps.length;d>e;e++){var f=this.stamps[e];this._manageStamp(f)}}},r.prototype._getBoundingRect=function(){var d=this.element.getBoundingClientRect(),c=this.size;this._boundingRect={left:d.left+c.paddingLeft+c.borderLeftWidth,top:d.top+c.paddingTop+c.borderTopWidth,right:d.right-(c.paddingRight+c.borderRightWidth),bottom:d.bottom-(c.paddingBottom+c.borderBottomWidth)}},r.prototype._manageStamp=o,r.prototype._getElementOffset=function(g){var d=g.getBoundingClientRect(),j=this._boundingRect,i=u(g),h={left:d.left-j.left-i.marginLeft,top:d.top-j.top-i.marginTop,right:j.right-d.right-i.marginRight,bottom:j.bottom-d.bottom-i.marginBottom};return h},r.prototype.handleEvent=function(d){var c="on"+d.type;this[c]&&this[c](d)},r.prototype.bindResize=function(){this.isResizeBound||(w.bind(x,"resize",this),this.isResizeBound=!0)},r.prototype.unbindResize=function(){this.isResizeBound&&w.unbind(x,"resize",this),this.isResizeBound=!1},r.prototype.onresize=function(){function d(){c.resize(),delete c.resizeTimeout}this.resizeTimeout&&clearTimeout(this.resizeTimeout);var c=this;this.resizeTimeout=setTimeout(d,100)},r.prototype.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},r.prototype.needsResizeLayout=function(){var d=u(this.element),c=this.size&&d;return c&&d.innerWidth!==this.size.innerWidth},r.prototype.addItems=function(d){var c=this._itemize(d);return c.length&&(this.items=this.items.concat(c)),c},r.prototype.appended=function(d){var c=this.addItems(d);c.length&&(this.layoutItems(c,!0),this.reveal(c))},r.prototype.prepended=function(e){var d=this._itemize(e);if(d.length){var f=this.items.slice(0);this.items=d.concat(f),this._resetLayout(),this._manageStamps(),this.layoutItems(d,!0),this.reveal(d),this.layoutItems(f)}},r.prototype.reveal=function(f){this._emitCompleteOnItems("reveal",f);for(var e=f&&f.length,h=0;e&&e>h;h++){var g=f[h];g.reveal()}},r.prototype.hide=function(f){this._emitCompleteOnItems("hide",f);for(var e=f&&f.length,h=0;e&&e>h;h++){var g=f[h];g.hide()}},r.prototype.revealItemElements=function(d){var c=this.getItems(d);this.reveal(c)},r.prototype.hideItemElements=function(d){var c=this.getItems(d);this.hide(c)},r.prototype.getItem=function(f){for(var e=0,h=this.items.length;h>e;e++){var g=this.items[e];if(g.element===f){return g}}},r.prototype.getItems=function(h){h=t.makeArray(h);for(var e=[],l=0,k=h.length;k>l;l++){var j=h[l],i=this.getItem(j);i&&e.push(i)}return e},r.prototype.remove=function(g){var e=this.getItems(g);if(this._emitCompleteOnItems("remove",e),e&&e.length){for(var j=0,i=e.length;i>j;j++){var h=e[j];h.remove(),t.removeFrom(this.items,h)}}},r.prototype.destroy=function(){var g=this.element.style;g.height="",g.position="",g.width="";for(var f=0,j=this.items.length;j>f;f++){var i=this.items[f];i.destroy()}this.unbindResize();var h=this.element.outlayerGUID;delete m[h],delete this.element.outlayerGUID,p&&p.removeData(this.element,this.constructor.namespace)},r.data=function(d){d=t.getQueryElement(d);var c=d&&d.outlayerGUID;return c&&m[c]},r.create=function(e,d){function f(){r.apply(this,arguments)}return Object.create?f.prototype=Object.create(r.prototype):t.extend(f.prototype,r.prototype),f.prototype.constructor=f,f.defaults=t.extend({},r.defaults),t.extend(f.defaults,d),f.prototype.settings={},f.namespace=e,f.data=r.data,f.Item=function(){s.apply(this,arguments)},f.Item.prototype=new s,t.htmlInit(f,e),p&&p.bridget&&p.bridget(e,f),f},r.Item=s,r}),function(d,c){"function"==typeof define&&define.amd?define("isotope/js/item",["outlayer/outlayer"],c):"object"==typeof exports?module.exports=c(require("outlayer")):(d.Isotope=d.Isotope||{},d.Isotope.Item=c(d.Outlayer))}(window,function(e){function d(){e.Item.apply(this,arguments)}d.prototype=new e.Item,d.prototype._create=function(){this.id=this.layout.itemGUID++,e.Item.prototype._create.call(this),this.sortData={}},d.prototype.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var h=this.layout.options.getSortData,g=this.layout._sorters;for(var j in h){var i=g[j];this.sortData[j]=i(this.element,this)}}};var f=d.prototype.destroy;return d.prototype.destroy=function(){f.apply(this,arguments),this.css({display:""})},d}),function(d,c){"function"==typeof define&&define.amd?define("isotope/js/layout-mode",["get-size/get-size","outlayer/outlayer"],c):"object"==typeof exports?module.exports=c(require("get-size"),require("outlayer")):(d.Isotope=d.Isotope||{},d.Isotope.LayoutMode=c(d.getSize,d.Outlayer))}(window,function(e,d){function f(b){this.isotope=b,b&&(this.options=b.options[this.namespace],this.element=b.element,this.items=b.filteredItems,this.size=b.size)}return function(){function b(g){return function(){return d.prototype[g].apply(this.isotope,arguments)}}for(var j=["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout"],i=0,h=j.length;h>i;i++){var c=j[i];f.prototype[c]=b(c)}}(),f.prototype.needsVerticalResizeLayout=function(){var a=e(this.isotope.element),g=this.isotope.size&&a;return g&&a.innerHeight!=this.isotope.size.innerHeight},f.prototype._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},f.prototype.getColumnWidth=function(){this.getSegmentSize("column","Width")},f.prototype.getRowHeight=function(){this.getSegmentSize("row","Height")},f.prototype.getSegmentSize=function(h,g){var k=h+g,j="outer"+g;if(this._getMeasurement(k,j),!this[k]){var i=this.getFirstItemSize();this[k]=i&&i[j]||this.isotope.size["inner"+g]}},f.prototype.getFirstItemSize=function(){var a=this.isotope.filteredItems[0];return a&&a.element&&e(a.element)},f.prototype.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},f.prototype.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},f.modes={},f.create=function(g,c){function h(){f.apply(this,arguments)}return h.prototype=new f,c&&(h.options=c),h.prototype.namespace=g,f.modes[g]=h,h},f}),function(d,c){"function"==typeof define&&define.amd?define("masonry/masonry",["outlayer/outlayer","get-size/get-size","fizzy-ui-utils/utils"],c):"object"==typeof exports?module.exports=c(require("outlayer"),require("get-size"),require("fizzy-ui-utils")):d.Masonry=c(d.Outlayer,d.getSize,d.fizzyUIUtils)}(window,function(f,e,h){var g=f.create("masonry");return g.prototype._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns();var b=this.cols;for(this.colYs=[];b--;){this.colYs.push(0)}this.maxY=0},g.prototype.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var b=this.items[0],n=b&&b.element;this.columnWidth=n&&e(n).outerWidth||this.containerWidth}var m=this.columnWidth+=this.gutter,l=this.containerWidth+this.gutter,k=l/m,j=m-l%m,i=j&&1>j?"round":"floor";k=Math[i](k),this.cols=Math.max(k,1)},g.prototype.getContainerWidth=function(){var b=this.options.isFitWidth?this.element.parentNode:this.element,d=e(b);this.containerWidth=d&&d.innerWidth},g.prototype._getItemLayoutPosition=function(v){v.getSize();var u=v.size.outerWidth%this.columnWidth,t=u&&1>u?"round":"ceil",s=Math[t](v.size.outerWidth/this.columnWidth);s=Math.min(s,this.cols);for(var r=this._getColGroup(s),q=Math.min.apply(Math,r),p=h.indexOf(r,q),o={x:this.columnWidth*p,y:q},n=q+v.size.outerHeight,m=this.cols+1-r.length,c=0;m>c;c++){this.colYs[p+c]=n}return o},g.prototype._getColGroup=function(j){if(2>j){return this.colYs}for(var i=[],m=this.cols+1-j,l=0;m>l;l++){var k=this.colYs.slice(l,l+j);i[l]=Math.max.apply(Math,k)}return i},g.prototype._manageStamp=function(r){var q=e(r),p=this._getElementOffset(r),o=this.options.isOriginLeft?p.left:p.right,n=o+q.outerWidth,m=Math.floor(o/this.columnWidth);m=Math.max(0,m);var l=Math.floor(n/this.columnWidth);l-=n%this.columnWidth?0:1,l=Math.min(this.cols-1,l);for(var k=(this.options.isOriginTop?p.top:p.bottom)+q.outerHeight,b=m;l>=b;b++){this.colYs[b]=Math.max(k,this.colYs[b])}},g.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var b={height:this.maxY};return this.options.isFitWidth&&(b.width=this._getContainerFitWidth()),b},g.prototype._getContainerFitWidth=function(){for(var d=0,c=this.cols;--c&&0===this.colYs[c];){d++}return(this.cols-d)*this.columnWidth-this.gutter},g.prototype.needsResizeLayout=function(){var b=this.containerWidth;return this.getContainerWidth(),b!==this.containerWidth},g}),function(d,c){"function"==typeof define&&define.amd?define("isotope/js/layout-modes/masonry",["../layout-mode","masonry/masonry"],c):"object"==typeof exports?module.exports=c(require("../layout-mode"),require("masonry-layout")):c(d.Isotope.LayoutMode,d.Masonry)}(window,function(r,q){function p(e,d){for(var f in d){e[f]=d[f]}return e}var o=r.create("masonry"),n=o.prototype._getElementOffset,m=o.prototype.layout,l=o.prototype._getMeasurement;p(o.prototype,q.prototype),o.prototype._getElementOffset=n,o.prototype.layout=m,o.prototype._getMeasurement=l;var k=o.prototype.measureColumns;o.prototype.measureColumns=function(){this.items=this.isotope.filteredItems,k.call(this)};var j=o.prototype._manageStamp;return o.prototype._manageStamp=function(){this.options.isOriginLeft=this.isotope.options.isOriginLeft,this.options.isOriginTop=this.isotope.options.isOriginTop,j.apply(this,arguments)},o}),function(d,c){"function"==typeof define&&define.amd?define("isotope/js/layout-modes/fit-rows",["../layout-mode"],c):"object"==typeof exports?module.exports=c(require("../layout-mode")):c(d.Isotope.LayoutMode)}(window,function(d){var c=d.create("fitRows");return c.prototype._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},c.prototype._getItemLayoutPosition=function(f){f.getSize();var e=f.size.outerWidth+this.gutter,h=this.isotope.size.innerWidth+this.gutter;0!==this.x&&e+this.x>h&&(this.x=0,this.y=this.maxY);var g={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+f.size.outerHeight),this.x+=e,g},c.prototype._getContainerSize=function(){return{height:this.maxY}},c}),function(d,c){"function"==typeof define&&define.amd?define("isotope/js/layout-modes/vertical",["../layout-mode"],c):"object"==typeof exports?module.exports=c(require("../layout-mode")):c(d.Isotope.LayoutMode)}(window,function(d){var c=d.create("vertical",{horizontalAlignment:0});return c.prototype._resetLayout=function(){this.y=0},c.prototype._getItemLayoutPosition=function(f){f.getSize();var e=(this.isotope.size.innerWidth-f.size.outerWidth)*this.options.horizontalAlignment,g=this.y;return this.y+=f.size.outerHeight,{x:e,y:g}},c.prototype._getContainerSize=function(){return{height:this.y}},c}),function(d,c){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","matches-selector/matches-selector","fizzy-ui-utils/utils","isotope/js/item","isotope/js/layout-mode","isotope/js/layout-modes/masonry","isotope/js/layout-modes/fit-rows","isotope/js/layout-modes/vertical"],function(l,k,j,i,b,a){return c(d,l,k,j,i,b,a)}):"object"==typeof exports?module.exports=c(d,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("./item"),require("./layout-mode"),require("./layout-modes/masonry"),require("./layout-modes/fit-rows"),require("./layout-modes/vertical")):d.Isotope=c(d,d.Outlayer,d.getSize,d.matchesSelector,d.fizzyUIUtils,d.Isotope.Item,d.Isotope.LayoutMode)}(window,function(D,C,B,A,z,y,x){function w(d,c){return function(G,F){for(var E=0,o=d.length;o>E;E++){var n=d[E],m=G.sortData[n],l=F.sortData[n];if(m>l||l>m){var b=void 0!==c[n]?c[n]:c,a=b?1:-1;return(m>l?1:-1)*a}}return 0}}var v=D.jQuery,u=String.prototype.trim?function(b){return b.trim()}:function(b){return b.replace(/^\s+|\s+$/g,"")},t=document.documentElement,s=t.textContent?function(b){return b.textContent}:function(b){return b.innerText},r=C.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});r.Item=y,r.LayoutMode=x,r.prototype._create=function(){this.itemGUID=0,this._sorters={},this._getSorters(),C.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"];for(var b in x.modes){this._initLayoutMode(b)}},r.prototype.reloadItems=function(){this.itemGUID=0,C.prototype.reloadItems.call(this)},r.prototype._itemize=function(){for(var b=C.prototype._itemize.apply(this,arguments),h=0,g=b.length;g>h;h++){var f=b[h];f.id=this.itemGUID++}return this._updateItemsSortData(b),b},r.prototype._initLayoutMode=function(e){var d=x.modes[e],f=this.options[e]||{};this.options[e]=d.options?z.extend(d.options,f):f,this.modes[e]=new d(this)},r.prototype.layout=function(){return !this._isLayoutInited&&this.options.isInitLayout?void this.arrange():void this._layout()},r.prototype._layout=function(){var b=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,b),this._isLayoutInited=!0},r.prototype.arrange=function(f){function e(){g.reveal(h.needReveal),g.hide(h.needHide)}this.option(f),this._getIsInstant();var h=this._filter(this.items);this.filteredItems=h.matches;var g=this;this._bindArrangeComplete(),this._isInstant?this._noTransition(e):e(),this._sort(),this._layout()},r.prototype._init=r.prototype.arrange,r.prototype._getIsInstant=function(){var b=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;return this._isInstant=b,b},r.prototype._bindArrangeComplete=function(){function g(){f&&j&&i&&h.dispatchEvent("arrangeComplete",null,[h.filteredItems])}var f,j,i,h=this;this.once("layoutComplete",function(){f=!0,g()}),this.once("hideComplete",function(){j=!0,g()}),this.once("revealComplete",function(){i=!0,g()})},r.prototype._filter=function(I){var H=this.options.filter;H=H||"*";for(var G=[],F=[],E=[],o=this._getFilterTest(H),n=0,m=I.length;m>n;n++){var l=I[n];if(!l.isIgnored){var k=o(l);k&&G.push(l),k&&l.isHidden?F.push(l):k||l.isHidden||E.push(l)}}return{matches:G,needReveal:F,needHide:E}},r.prototype._getFilterTest=function(b){return v&&this.options.isJQueryFiltering?function(a){return v(a.element).is(b)}:"function"==typeof b?function(a){return b(a.element)}:function(a){return A(a.element,b)}},r.prototype.updateSortData=function(d){var c;d?(d=z.makeArray(d),c=this.getItems(d)):c=this.items,this._getSorters(),this._updateItemsSortData(c)},r.prototype._getSorters=function(){var e=this.options.getSortData;for(var d in e){var f=e[d];this._sorters[d]=q(f)}},r.prototype._updateItemsSortData=function(f){for(var e=f&&f.length,h=0;e&&e>h;h++){var g=f[h];g.updateSortData()}};var q=function(){function d(b){if("string"!=typeof b){return b}var n=u(b).split(" "),m=n[0],l=m.match(/^\[(.+)\]$/),k=l&&l[1],j=c(k,m),i=r.sortDataParsers[n[1]];return b=i?function(e){return e&&i(j(e))}:function(e){return e&&j(e)}}function c(f,e){var g;return g=f?function(a){return a.getAttribute(f)}:function(b){var h=b.querySelector(e);return h&&s(h)}}return d}();r.sortDataParsers={parseInt:function(b){return parseInt(b,10)},parseFloat:function(b){return parseFloat(b)}},r.prototype._sort=function(){var e=this.options.sortBy;if(e){var d=[].concat.apply(e,this.sortHistory),f=w(d,this.options.sortAscending);this.filteredItems.sort(f),e!=this.sortHistory[0]&&this.sortHistory.unshift(e)}},r.prototype._mode=function(){var d=this.options.layoutMode,c=this.modes[d];if(!c){throw new Error("No layout mode: "+d)}return c.options=this.options[d],c},r.prototype._resetLayout=function(){C.prototype._resetLayout.call(this),this._mode()._resetLayout()},r.prototype._getItemLayoutPosition=function(b){return this._mode()._getItemLayoutPosition(b)},r.prototype._manageStamp=function(b){this._mode()._manageStamp(b)},r.prototype._getContainerSize=function(){return this._mode()._getContainerSize()},r.prototype.needsResizeLayout=function(){return this._mode().needsResizeLayout()},r.prototype.appended=function(e){var d=this.addItems(e);if(d.length){var f=this._filterRevealAdded(d);this.filteredItems=this.filteredItems.concat(f)}},r.prototype.prepended=function(e){var d=this._itemize(e);if(d.length){this._resetLayout(),this._manageStamps();var f=this._filterRevealAdded(d);this.layoutItems(this.filteredItems),this.filteredItems=f.concat(this.filteredItems),this.items=d.concat(this.items)}},r.prototype._filterRevealAdded=function(d){var c=this._filter(d);return this.hide(c.needHide),this.reveal(c.matches),this.layoutItems(c.matches,!0),c.matches},r.prototype.insert=function(h){var g=this.addItems(h);if(g.length){var l,k,j=g.length;for(l=0;j>l;l++){k=g[l],this.element.appendChild(k.element)}var i=this._filter(g).matches;for(l=0;j>l;l++){g[l].isLayoutInstant=!0}for(this.arrange(),l=0;j>l;l++){delete g[l].isLayoutInstant}this.reveal(i)}};var p=r.prototype.remove;return r.prototype.remove=function(g){g=z.makeArray(g);var e=this.getItems(g);p.call(this,g);var j=e&&e.length;if(j){for(var i=0;j>i;i++){var h=e[i];z.removeFrom(this.filteredItems,h)}}},r.prototype.shuffle=function(){for(var e=0,d=this.items.length;d>e;e++){var f=this.items[e];f.sortData.random=Math.random()}this.options.sortBy="random",this._sort(),this._layout()},r.prototype._noTransition=function(e){var d=this.options.transitionDuration;this.options.transitionDuration=0;var f=e.call(this);return this.options.transitionDuration=d,f},r.prototype.getFilteredItemElements=function(){for(var e=[],d=0,f=this.filteredItems.length;f>d;d++){e.push(this.filteredItems[d].element)}return e},r});!function(t){function m(a){return t(a).filter(function(){return t(this).is(":appeared")})}function l(){q=!1;for(var b=0,h=s.length;b<h;b++){var g=m(s[b]);if(g.trigger("appear",[g]),n[b]){var d=n[b].not(g);d.trigger("disappear",[d])}n[b]=g}}function k(b){s.push(b),n.push()}var s=[],r=!1,q=!1,p={interval:250,force_process:!1},o=t(window),n=[];t.expr[":"].appeared=function(a){var x=t(a);if(!x.is(":visible")){return !1}var w=o.scrollLeft(),v=o.scrollTop(),u=x.offset(),j=u.left,f=u.top;return f+x.height()>=v&&f-(x.data("appear-top-offset")||0)<=v+o.height()&&j+x.width()>=w&&j-(x.data("appear-left-offset")||0)<=w+o.width()},t.fn.extend({appear:function(a){var e=t.extend({},p,a||{}),d=this.selector||this;if(!r){var c=function(){q||(q=!0,setTimeout(l,e.interval))};t(window).scroll(c).resize(c),r=!0}return e.force_process&&setTimeout(l,e.interval),k(d),t(d)}}),t.extend({force_appear:function(){return !!r&&(l(),!0)}})}(function(){return"undefined"!=typeof module?require("jquery"):jQuery}());



/*! 
 * Magnific Popup - v1.1.0 - 2016-02-20
*/
!function(b){"function"==typeof define&&define.amd?define(["jquery"],b):b("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(aQ){var aP,aO,aN,aM,aL,aK,aJ="Close",aI="BeforeClose",aH="AfterClose",aG="BeforeAppend",aF="MarkupParse",aE="Open",aD="Change",aC="mfp",aB="."+aC,aA="mfp-ready",az="mfp-removing",ay="mfp-prevent-close",ax=function(){},aw=!!window.jQuery,av=aQ(window),au=function(b,d){aP.ev.on(aC+b+aB,d)},at=function(a,j,i,h){var g=document.createElement("div");return g.className="mfp-"+a,i&&(g.innerHTML=i),h?j&&j.appendChild(g):(g=aQ(g),j&&g.appendTo(j)),g},ar=function(b,a){aP.ev.triggerHandler(aC+b,a),aP.st.callbacks&&(b=b.charAt(0).toLowerCase()+b.slice(1),aP.st.callbacks[b]&&aP.st.callbacks[b].apply(aP,aQ.isArray(a)?a:[a]))},aq=function(a){return a===aK&&aP.currTemplate.closeBtn||(aP.currTemplate.closeBtn=aQ(aP.st.closeMarkup.replace("%title%",aP.st.tClose)),aK=a),aP.currTemplate.closeBtn},ap=function(){aQ.magnificPopup.instance||(aP=new ax,aP.init(),aQ.magnificPopup.instance=aP)},ao=function(){var d=document.createElement("p").style,c=["ms","O","Moz","Webkit"];if(void 0!==d.transition){return !0}for(;c.length;){if(c.pop()+"Transition" in d){return !0}}return !1};ax.prototype={constructor:ax,init:function(){var a=navigator.appVersion;aP.isLowIE=aP.isIE8=document.all&&!document.addEventListener,aP.isAndroid=/android/gi.test(a),aP.isIOS=/iphone|ipad|ipod/gi.test(a),aP.supportsTransition=ao(),aP.probablyMobile=aP.isAndroid||aP.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),aN=aQ(document),aP.popupsCache={}},open:function(t){var s;if(t.isObj===!1){aP.items=t.items.toArray(),aP.index=0;var q,p=t.items;for(s=0;s<p.length;s++){if(q=p[s],q.parsed&&(q=q.el[0]),q===t.el[0]){aP.index=s;break}}}else{aP.items=aQ.isArray(t.items)?t.items:[t.items],aP.index=t.index||0}if(aP.isOpen){return void aP.updateItemHTML()}aP.types=[],aL="",t.mainEl&&t.mainEl.length?aP.ev=t.mainEl.eq(0):aP.ev=aN,t.key?(aP.popupsCache[t.key]||(aP.popupsCache[t.key]={}),aP.currTemplate=aP.popupsCache[t.key]):aP.currTemplate={},aP.st=aQ.extend(!0,{},aQ.magnificPopup.defaults,t),aP.fixedContentPos="auto"===aP.st.fixedContentPos?!aP.probablyMobile:aP.st.fixedContentPos,aP.st.modal&&(aP.st.closeOnContentClick=!1,aP.st.closeOnBgClick=!1,aP.st.showCloseBtn=!1,aP.st.enableEscapeKey=!1),aP.bgOverlay||(aP.bgOverlay=at("bg").on("click"+aB,function(){aP.close()}),aP.wrap=at("wrap").attr("tabindex",-1).on("click"+aB,function(c){aP._checkIfClose(c.target)&&aP.close()}),aP.container=at("container",aP.wrap)),aP.contentContainer=at("content"),aP.st.preloader&&(aP.preloader=at("preloader",aP.container,aP.st.tLoading));var m=aQ.magnificPopup.modules;for(s=0;s<m.length;s++){var l=m[s];l=l.charAt(0).toUpperCase()+l.slice(1),aP["init"+l].call(aP)}ar("BeforeOpen"),aP.st.showCloseBtn&&(aP.st.closeBtnInside?(au(aF,function(g,e,i,h){i.close_replaceWith=aq(h.type)}),aL+=" mfp-close-btn-in"):aP.wrap.append(aq())),aP.st.alignTop&&(aL+=" mfp-align-top"),aP.fixedContentPos?aP.wrap.css({overflow:aP.st.overflowY,overflowX:"hidden",overflowY:aP.st.overflowY}):aP.wrap.css({top:av.scrollTop(),position:"absolute"}),(aP.st.fixedBgPos===!1||"auto"===aP.st.fixedBgPos&&!aP.fixedContentPos)&&aP.bgOverlay.css({height:aN.height(),position:"absolute"}),aP.st.enableEscapeKey&&aN.on("keyup"+aB,function(c){27===c.keyCode&&aP.close()}),av.on("resize"+aB,function(){aP.updateSize()}),aP.st.closeOnContentClick||(aL+=" mfp-auto-cursor"),aL&&aP.wrap.addClass(aL);var f=aP.wH=av.height(),d={};if(aP.fixedContentPos&&aP._hasScrollBar(f)){var b=aP._getScrollbarSize();b&&(d.marginRight=b)}aP.fixedContentPos&&(aP.isIE7?aQ("body, html").css("overflow","hidden"):d.overflow="hidden");var a=aP.st.mainClass;return aP.isIE7&&(a+=" mfp-ie7"),a&&aP._addClassToMFP(a),aP.updateItemHTML(),ar("BuildControls"),aQ("html").css(d),aP.bgOverlay.add(aP.wrap).prependTo(aP.st.prependTo||aQ(document.body)),aP._lastFocusedEl=document.activeElement,setTimeout(function(){aP.content?(aP._addClassToMFP(aA),aP._setFocus()):aP.bgOverlay.addClass(aA),aN.on("focusin"+aB,aP._onFocusIn)},16),aP.isOpen=!0,aP.updateSize(f),ar(aE),t},close:function(){aP.isOpen&&(ar(aI),aP.isOpen=!1,aP.st.removalDelay&&!aP.isLowIE&&aP.supportsTransition?(aP._addClassToMFP(az),setTimeout(function(){aP._close()},aP.st.removalDelay)):aP._close())},_close:function(){ar(aJ);var b=az+" "+aA+" ";if(aP.bgOverlay.detach(),aP.wrap.detach(),aP.container.empty(),aP.st.mainClass&&(b+=aP.st.mainClass+" "),aP._removeClassFromMFP(b),aP.fixedContentPos){var a={marginRight:""};aP.isIE7?aQ("body, html").css("overflow",""):a.overflow="",aQ("html").css(a)}aN.off("keyup"+aB+" focusin"+aB),aP.ev.off(aB),aP.wrap.attr("class","mfp-wrap").removeAttr("style"),aP.bgOverlay.attr("class","mfp-bg"),aP.container.attr("class","mfp-container"),!aP.st.showCloseBtn||aP.st.closeBtnInside&&aP.currTemplate[aP.currItem.type]!==!0||aP.currTemplate.closeBtn&&aP.currTemplate.closeBtn.detach(),aP.st.autoFocusLast&&aP._lastFocusedEl&&aQ(aP._lastFocusedEl).focus(),aP.currItem=null,aP.content=null,aP.currTemplate=null,aP.prevHeight=0,ar(aH)},updateSize:function(b){if(aP.isIOS){var f=document.documentElement.clientWidth/window.innerWidth,e=window.innerHeight*f;aP.wrap.css("height",e),aP.wH=e}else{aP.wH=b||av.height()}aP.fixedContentPos||aP.wrap.css("height",aP.wH),ar("Resize")},updateItemHTML:function(){var h=aP.items[aP.index];aP.contentContainer.detach(),aP.content&&aP.content.detach(),h.parsed||(h=aP.parseEl(aP.index));var e=h.type;if(ar("BeforeChange",[aP.currItem?aP.currItem.type:"",e]),aP.currItem=h,!aP.currTemplate[e]){var b=aP.st[e]?aP.st[e].markup:!1;ar("FirstMarkupParse",b),b?aP.currTemplate[e]=aQ(b):aP.currTemplate[e]=!0}aM&&aM!==h.type&&aP.container.removeClass("mfp-"+aM+"-holder");var a=aP["get"+e.charAt(0).toUpperCase()+e.slice(1)](h,aP.currTemplate[e]);aP.appendContent(a,e),h.preloaded=!0,ar(aD,h),aM=h.type,aP.container.prepend(aP.contentContainer),ar("AfterChange")},appendContent:function(b,d){aP.content=b,b?aP.st.showCloseBtn&&aP.st.closeBtnInside&&aP.currTemplate[d]===!0?aP.content.find(".mfp-close").length||aP.content.append(aq()):aP.content=b:aP.content="",ar(aG),aP.container.addClass("mfp-"+d+"-holder"),aP.contentContainer.append(aP.content)},parseEl:function(j){var i,h=aP.items[j];if(h.tagName?h={el:aQ(h)}:(i=h.type,h={data:h,src:h.src}),h.el){for(var b=aP.types,a=0;a<b.length;a++){if(h.el.hasClass("mfp-"+b[a])){i=b[a];break}}h.src=h.el.attr("data-mfp-src"),h.src||(h.src=h.el.attr("href"))}return h.type=i||aP.st.type||"inline",h.index=j,h.parsed=!0,aP.items[j]=h,ar("ElementParse",h),aP.items[j]},addGroup:function(b,h){var g=function(a){a.mfpEl=this,aP._openClick(a,b,h)};h||(h={});var f="click.magnificPopup";h.mainEl=b,h.items?(h.isObj=!0,b.off(f).on(f,g)):(h.isObj=!1,h.delegate?b.off(f).on(f,h.delegate,g):(h.items=b,b.off(f).on(f,g)))},_openClick:function(j,i,h){var b=void 0!==h.midClick?h.midClick:aQ.magnificPopup.defaults.midClick;if(b||!(2===j.which||j.ctrlKey||j.metaKey||j.altKey||j.shiftKey)){var a=void 0!==h.disableOn?h.disableOn:aQ.magnificPopup.defaults.disableOn;if(a){if(aQ.isFunction(a)){if(!a.call(aP)){return !0}}else{if(av.width()<a){return !0}}}j.type&&(j.preventDefault(),aP.isOpen&&j.stopPropagation()),h.el=aQ(j.mfpEl),h.delegate&&(h.items=i.find(h.delegate)),aP.open(h)}},updateStatus:function(b,f){if(aP.preloader){aO!==b&&aP.container.removeClass("mfp-s-"+aO),f||"loading"!==b||(f=aP.st.tLoading);var c={status:b,text:f};ar("UpdateStatus",c),b=c.status,f=c.text,aP.preloader.html(f),aP.preloader.find("a").on("click",function(d){d.stopImmediatePropagation()}),aP.container.addClass("mfp-s-"+b),aO=b}},_checkIfClose:function(f){if(!aQ(f).hasClass(ay)){var b=aP.st.closeOnContentClick,a=aP.st.closeOnBgClick;if(b&&a){return !0}if(!aP.content||aQ(f).hasClass("mfp-close")||aP.preloader&&f===aP.preloader[0]){return !0}if(f===aP.content[0]||aQ.contains(aP.content[0],f)){if(b){return !0}}else{if(a&&aQ.contains(document,f)){return !0}}return !1}},_addClassToMFP:function(b){aP.bgOverlay.addClass(b),aP.wrap.addClass(b)},_removeClassFromMFP:function(b){this.bgOverlay.removeClass(b),aP.wrap.removeClass(b)},_hasScrollBar:function(b){return(aP.isIE7?aN.height():document.body.scrollHeight)>(b||av.height())},_setFocus:function(){(aP.st.focus?aP.content.find(aP.st.focus).eq(0):aP.wrap).focus()},_onFocusIn:function(a){return a.target===aP.wrap[0]||aQ.contains(aP.wrap[0],a.target)?void 0:(aP._setFocus(),!1)},_parseMarkup:function(a,h,g){var f;g.data&&(h=aQ.extend(g.data,h)),ar(aF,[a,h,g]),aQ.each(h,function(j,i){if(void 0===i||i===!1){return !0}if(f=j.split("_"),f.length>1){var e=a.find(aB+"-"+f[0]);if(e.length>0){var b=f[1];"replaceWith"===b?e[0]!==i[0]&&e.replaceWith(i):"img"===b?e.is("img")?e.attr("src",i):e.replaceWith(aQ("<img>").attr("src",i).attr("class",e.attr("class"))):e.attr(f[1],i)}}else{a.find(aB+"-"+j).html(i)}})},_getScrollbarSize:function(){if(void 0===aP.scrollbarSize){var b=document.createElement("div");b.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(b),aP.scrollbarSize=b.offsetWidth-b.clientWidth,document.body.removeChild(b)}return aP.scrollbarSize}},aQ.magnificPopup={instance:null,proto:ax.prototype,modules:[],open:function(a,d){return ap(),a=a?aQ.extend(!0,{},a):{},a.isObj=!0,a.index=d||0,this.instance.open(a)},close:function(){return aQ.magnificPopup.instance&&aQ.magnificPopup.instance.close()},registerModule:function(a,d){d.options&&(aQ.magnificPopup.defaults[a]=d.options),aQ.extend(this.proto,d.proto),this.modules.push(a)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&#215;</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},aQ.fn.magnificPopup=function(j){ap();var i=aQ(this);if("string"==typeof j){if("open"===j){var h,b=aw?i.data("magnificPopup"):i[0].magnificPopup,a=parseInt(arguments[1],10)||0;b.items?h=b.items[a]:(h=i,b.delegate&&(h=h.find(b.delegate)),h=h.eq(a)),aP._openClick({mfpEl:h},i,b)}else{aP.isOpen&&aP[j].apply(aP,Array.prototype.slice.call(arguments,1))}}else{j=aQ.extend(!0,{},j),aw?i.data("magnificPopup",j):i[0].magnificPopup=j,aP.addGroup(i,j)}return i};var an,am,al,ak="inline",aj=function(){al&&(am.after(al.addClass(an)).detach(),al=null)};aQ.magnificPopup.registerModule(ak,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){aP.types.push(ak),au(aJ+"."+ak,function(){aj()})},getInline:function(j,i){if(aj(),j.src){var h=aP.st.inline,b=aQ(j.src);if(b.length){var a=b[0].parentNode;a&&a.tagName&&(am||(an=h.hiddenClass,am=at(an),an="mfp-"+an),al=b.after(am).detach().removeClass(an)),aP.updateStatus("ready")}else{aP.updateStatus("error",h.tNotFound),b=aQ("<div>")}return j.inlineElement=b,b}return aP.updateStatus("ready"),aP._parseMarkup(i,{},j),i}}});var ai,ah="ajax",ag=function(){ai&&aQ(document.body).removeClass(ai)},af=function(){ag(),aP.req&&aP.req.abort()};aQ.magnificPopup.registerModule(ah,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){aP.types.push(ah),ai=aP.st.ajax.cursor,au(aJ+"."+ah,af),au("BeforeChange."+ah,af)},getAjax:function(b){ai&&aQ(document.body).addClass(ai),aP.updateStatus("loading");var a=aQ.extend({url:b.src,success:function(j,i,h){var c={data:j,xhr:h};ar("ParseAjax",c),aP.appendContent(aQ(c.data),ah),b.finished=!0,ag(),aP._setFocus(),setTimeout(function(){aP.wrap.addClass(aA)},16),aP.updateStatus("ready"),ar("AjaxContentAdded")},error:function(){ag(),b.finished=b.loadError=!0,aP.updateStatus("error",aP.st.ajax.tError.replace("%url%",b.src))}},aP.st.ajax.settings);return aP.req=aQ.ajax(a),""}}});var ae,ad=function(b){if(b.data&&void 0!==b.data.title){return b.data.title}var a=aP.st.image.titleSrc;if(a){if(aQ.isFunction(a)){return a.call(aP,b)}if(b.el){return b.el.attr(a)||""}}return""};aQ.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var b=aP.st.image,a=".image";aP.types.push("image"),au(aE+a,function(){"image"===aP.currItem.type&&b.cursor&&aQ(document.body).addClass(b.cursor)}),au(aJ+a,function(){b.cursor&&aQ(document.body).removeClass(b.cursor),av.off("resize"+aB)}),au("Resize"+a,aP.resizeImage),aP.isLowIE&&au("AfterChange",aP.resizeImage)},resizeImage:function(){var b=aP.currItem;if(b&&b.img&&aP.st.image.verticalFit){var d=0;aP.isLowIE&&(d=parseInt(b.img.css("padding-top"),10)+parseInt(b.img.css("padding-bottom"),10)),b.img.css("max-height",aP.wH-d)}},_onImageHasSize:function(b){b.img&&(b.hasSize=!0,ae&&clearInterval(ae),b.isCheckingImgSize=!1,ar("ImageHasSize",b),b.imgHidden&&(aP.content&&aP.content.removeClass("mfp-loading"),b.imgHidden=!1))},findImageSize:function(b){var h=0,g=b.img[0],f=function(a){ae&&clearInterval(ae),ae=setInterval(function(){return g.naturalWidth>0?void aP._onImageHasSize(b):(h>200&&clearInterval(ae),h++,void (3===h?f(10):40===h?f(50):100===h&&f(500)))},a)};f(1)},getImage:function(p,o){var n=0,m=function(){p&&(p.img[0].complete?(p.img.off(".mfploader"),p===aP.currItem&&(aP._onImageHasSize(p),aP.updateStatus("ready")),p.hasSize=!0,p.loaded=!0,ar("ImageLoadComplete")):(n++,200>n?setTimeout(m,100):l()))},l=function(){p&&(p.img.off(".mfploader"),p===aP.currItem&&(aP._onImageHasSize(p),aP.updateStatus("error",k.tError.replace("%url%",p.src))),p.hasSize=!0,p.loaded=!0,p.loadError=!0)},k=aP.st.image,b=o.find(".mfp-img");if(b.length){var a=document.createElement("img");a.className="mfp-img",p.el&&p.el.find("img").length&&(a.alt=p.el.find("img").attr("alt")),p.img=aQ(a).on("load.mfploader",m).on("error.mfploader",l),a.src=p.src,b.is("img")&&(p.img=p.img.clone()),a=p.img[0],a.naturalWidth>0?p.hasSize=!0:a.width||(p.hasSize=!1)}return aP._parseMarkup(o,{title:ad(p),img_replaceWith:p.img},p),aP.resizeImage(),p.hasSize?(ae&&clearInterval(ae),p.loadError?(o.addClass("mfp-loading"),aP.updateStatus("error",k.tError.replace("%url%",p.src))):(o.removeClass("mfp-loading"),aP.updateStatus("ready")),o):(aP.updateStatus("loading"),p.loading=!0,p.hasSize||(p.imgHidden=!0,o.addClass("mfp-loading"),aP.findImageSize(p)),o)}}});var ac,ab=function(){return void 0===ac&&(ac=void 0!==document.createElement("p").style.MozTransform),ac};aQ.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(b){return b.is("img")?b:b.find("img")}},proto:{initZoom:function(){var b,p=aP.st.zoom,o=".zoom";if(p.enabled&&aP.supportsTransition){var n,m,l=p.duration,i=function(g){var c=g.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),q="all "+p.duration/1000+"s "+p.easing,k={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},j="transition";return k["-webkit-"+j]=k["-moz-"+j]=k["-o-"+j]=k[j]=q,c.css(k),c},h=function(){aP.content.css("visibility","visible")};au("BuildControls"+o,function(){if(aP._allowZoom()){if(clearTimeout(n),aP.content.css("visibility","hidden"),b=aP._getItemToZoom(),!b){return void h()}m=i(b),m.css(aP._getOffset()),aP.wrap.append(m),n=setTimeout(function(){m.css(aP._getOffset(!0)),n=setTimeout(function(){h(),setTimeout(function(){m.remove(),b=m=null,ar("ZoomAnimationEnded")},16)},l)},16)}}),au(aI+o,function(){if(aP._allowZoom()){if(clearTimeout(n),aP.st.removalDelay=l,!b){if(b=aP._getItemToZoom(),!b){return}m=i(b)}m.css(aP._getOffset(!0)),aP.wrap.append(m),aP.content.css("visibility","hidden"),setTimeout(function(){m.css(aP._getOffset())},16)}}),au(aJ+o,function(){aP._allowZoom()&&(h(),m&&m.remove(),b=null)})}},_allowZoom:function(){return"image"===aP.currItem.type},_getItemToZoom:function(){return aP.currItem.hasSize?aP.currItem.img:!1},_getOffset:function(l){var k;k=l?aP.currItem.img:aP.st.zoom.opener(aP.currItem.el||aP.currItem);var j=k.offset(),i=parseInt(k.css("padding-top"),10),b=parseInt(k.css("padding-bottom"),10);j.top-=aQ(window).scrollTop()-i;var a={width:k.width(),height:(aw?k.innerHeight():k[0].offsetHeight)-b-i};return ab()?a["-moz-transform"]=a.transform="translate("+j.left+"px,"+j.top+"px)":(a.left=j.left,a.top=j.top),a}}});var aa="iframe",Z="//about:blank",Y=function(b){if(aP.currTemplate[aa]){var d=aP.currTemplate[aa].find("iframe");d.length&&(b||(d[0].src=Z),aP.isIE8&&d.css("display",b?"block":"none"))}};aQ.magnificPopup.registerModule(aa,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){aP.types.push(aa),au("BeforeChange",function(e,d,f){d!==f&&(d===aa?Y():f===aa&&Y(!0))}),au(aJ+"."+aa,function(){Y()})},getIframe:function(j,i){var h=j.src,b=aP.st.iframe;aQ.each(b.patterns,function(){return h.indexOf(this.index)>-1?(this.id&&(h="string"==typeof this.id?h.substr(h.lastIndexOf(this.id)+this.id.length,h.length):this.id.call(this,h)),h=this.src.replace("%id%",h),!1):void 0});var a={};return b.srcAction&&(a[b.srcAction]=h),aP._parseMarkup(i,a,j),aP.updateStatus("ready"),i}}});var X=function(b){var d=aP.items.length;return b>d-1?b-d:0>b?d+b:b},W=function(e,d,f){return e.replace(/%curr%/gi,d+1).replace(/%total%/gi,f)};aQ.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var b=aP.st.gallery,a=".mfp-gallery";return aP.direction=!0,b&&b.enabled?(aL+=" mfp-gallery",au(aE+a,function(){b.navigateByImgClick&&aP.wrap.on("click"+a,".mfp-img",function(){return aP.items.length>1?(aP.next(),!1):void 0}),aN.on("keydown"+a,function(c){37===c.keyCode?aP.prev():39===c.keyCode&&aP.next()})}),au("UpdateStatus"+a,function(d,e){e.text&&(e.text=W(e.text,aP.currItem.index,aP.items.length))}),au(aF+a,function(c,k,j,i){var h=aP.items.length;j.counter=h>1?W(b.tCounter,i.index,h):""}),au("BuildControls"+a,function(){if(aP.items.length>1&&b.arrows&&!aP.arrowLeft){var h=b.arrowMarkup,g=aP.arrowLeft=aQ(h.replace(/%title%/gi,b.tPrev).replace(/%dir%/gi,"left")).addClass(ay),c=aP.arrowRight=aQ(h.replace(/%title%/gi,b.tNext).replace(/%dir%/gi,"right")).addClass(ay);g.click(function(){aP.prev()}),c.click(function(){aP.next()}),aP.container.append(g.add(c))}}),au(aD+a,function(){aP._preloadTimeout&&clearTimeout(aP._preloadTimeout),aP._preloadTimeout=setTimeout(function(){aP.preloadNearbyImages(),aP._preloadTimeout=null},16)}),void au(aJ+a,function(){aN.off(a),aP.wrap.off("click"+a),aP.arrowRight=aP.arrowLeft=null})):!1},next:function(){aP.direction=!0,aP.index=X(aP.index+1),aP.updateItemHTML()},prev:function(){aP.direction=!1,aP.index=X(aP.index-1),aP.updateItemHTML()},goTo:function(b){aP.direction=b>=aP.index,aP.index=b,aP.updateItemHTML()},preloadNearbyImages:function(){var b,h=aP.st.gallery.preload,g=Math.min(h[0],aP.items.length),f=Math.min(h[1],aP.items.length);for(b=1;b<=(aP.direction?f:g);b++){aP._preloadItem(aP.index+b)}for(b=1;b<=(aP.direction?g:f);b++){aP._preloadItem(aP.index-b)}},_preloadItem:function(b){if(b=X(b),!aP.items[b].preloaded){var a=aP.items[b];a.parsed||(a=aP.parseEl(b)),ar("LazyLoad",a),"image"===a.type&&(a.img=aQ('<img class="mfp-img" />').on("load.mfploader",function(){a.hasSize=!0}).on("error.mfploader",function(){a.hasSize=!0,a.loadError=!0,ar("LazyLoadError",a)}).attr("src",a.src)),a.preloaded=!0}}}});var V="retina";aQ.magnificPopup.registerModule(V,{options:{replaceSrc:function(b){return b.src.replace(/\.\w+$/,function(c){return"@2x"+c})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var b=aP.st.retina,d=b.ratio;d=isNaN(d)?d():d,d>1&&(au("ImageHasSize."+V,function(e,c){c.img.css({"max-width":c.img[0].naturalWidth/d,width:"100%"})}),au("ElementParse."+V,function(a,c){c.src=b.replaceSrc(c,d)}))}}}}),ap()});


/*!
 * imagesLoaded PACKAGED v3.1.8
 * JavaScript is all like "You images are done yet or what?"
 * MIT License
 */
(function(){function d(){}function b(i,h){for(var j=i.length;j--;){if(i[j].listener===h){return j}}return -1}function g(h){return function(){return this[h].apply(this,arguments)}}var a=d.prototype,c=this,f=c.EventEmitter;a.getListeners=function(k){var j,l,h=this._getEvents();if("object"==typeof k){j={};for(l in h){h.hasOwnProperty(l)&&k.test(l)&&(j[l]=h[l])}}else{j=h[k]||(h[k]=[])}return j},a.flattenListeners=function(i){var h,j=[];for(h=0;h<i.length;h+=1){j.push(i[h].listener)}return j},a.getListenersAsObject=function(i){var h,j=this.getListeners(i);return j instanceof Array&&(h={},h[i]=j),h||j},a.addListener=function(k,m){var h,j=this.getListenersAsObject(k),l="object"==typeof m;for(h in j){j.hasOwnProperty(h)&&-1===b(j[h],m)&&j[h].push(l?m:{listener:m,once:!1})}return this},a.on=g("addListener"),a.addOnceListener=function(i,h){return this.addListener(i,{listener:h,once:!0})},a.once=g("addOnceListener"),a.defineEvent=function(h){return this.getListeners(h),this},a.defineEvents=function(i){for(var h=0;h<i.length;h+=1){this.defineEvent(i[h])}return this},a.removeListener=function(k,m){var h,j,l=this.getListenersAsObject(k);for(j in l){l.hasOwnProperty(j)&&(h=b(l[j],m),-1!==h&&l[j].splice(h,1))}return this},a.off=g("removeListener"),a.addListeners=function(i,h){return this.manipulateListeners(!1,i,h)},a.removeListeners=function(i,h){return this.manipulateListeners(!0,i,h)},a.manipulateListeners=function(m,j,q){var h,l,p=m?this.removeListener:this.addListener,k=m?this.removeListeners:this.addListeners;if("object"!=typeof j||j instanceof RegExp){for(h=q.length;h--;){p.call(this,j,q[h])}}else{for(h in j){j.hasOwnProperty(h)&&(l=j[h])&&("function"==typeof l?p.call(this,h,l):k.call(this,h,l))}}return this},a.removeEvent=function(k){var j,l=typeof k,h=this._getEvents();if("string"===l){delete h[k]}else{if("object"===l){for(j in h){h.hasOwnProperty(j)&&k.test(j)&&delete h[j]}}else{delete this._events}}return this},a.removeAllListeners=g("removeEvent"),a.emitEvent=function(m,j){var q,h,l,p,k=this.getListenersAsObject(m);for(l in k){if(k.hasOwnProperty(l)){for(h=k[l].length;h--;){q=k[l][h],q.once===!0&&this.removeListener(m,q.listener),p=q.listener.apply(this,j||[]),p===this._getOnceReturnValue()&&this.removeListener(m,q.listener)}}}return this},a.trigger=g("emitEvent"),a.emit=function(i){var h=Array.prototype.slice.call(arguments,1);return this.emitEvent(i,h)},a.setOnceReturnValue=function(h){return this._onceReturnValue=h,this},a._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},a._getEvents=function(){return this._events||(this._events={})},d.noConflict=function(){return c.EventEmitter=f,d},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return d}):"object"==typeof module&&module.exports?module.exports=d:this.EventEmitter=d}).call(this),function(d){function b(e){var h=d.event;return h.target=h.target||h.srcElement||e,h}var g=document.documentElement,a=function(){};g.addEventListener?a=function(i,h,j){i.addEventListener(h,j,!1)}:g.attachEvent&&(a=function(j,k,h){j[k+h]=h.handleEvent?function(){var e=b(j);h.handleEvent.call(h,e)}:function(){var e=b(j);h.call(j,e)},j.attachEvent("on"+k,j[k+h])});var c=function(){};g.removeEventListener?c=function(i,h,j){i.removeEventListener(h,j,!1)}:g.detachEvent&&(c=function(k,j,l){k.detachEvent("on"+j,k[j+l]);try{delete k[j+l]}catch(h){k[j+l]=void 0}});var f={bind:a,unbind:c};"function"==typeof define&&define.amd?define("eventie/eventie",f):d.eventie=f}(this),function(b,a){"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(d,c){return a(b,d,c)}):"object"==typeof exports?module.exports=a(b,require("wolfy87-eventemitter"),require("eventie")):b.imagesLoaded=a(b,b.EventEmitter,b.eventie)}(window,function(p,A,j){function k(c,a){for(var d in a){c[d]=a[d]}return c}function b(a){return"[object Array]"===q.call(a)}function g(d){var c=[];if(b(d)){c=d}else{if("number"==typeof d.length){for(var f=0,a=d.length;a>f;f++){c.push(d[f])}}else{c.push(d)}}return c}function B(d,a,f){if(!(this instanceof B)){return new B(d,a)}"string"==typeof d&&(d=document.querySelectorAll(d)),this.elements=g(d),this.options=k({},this.options),"function"==typeof a?f=a:k(this.options,a),f&&this.on("always",f),this.getImages(),x&&(this.jqDeferred=new x.Deferred);var c=this;setTimeout(function(){c.check()})}function m(a){this.img=a}function w(a){this.src=a,y[a]=this}var x=p.jQuery,z=p.console,l="undefined"!=typeof z,q=Object.prototype.toString;B.prototype=new A,B.prototype.options={},B.prototype.getImages=function(){this.images=[];for(var v=0,c=this.elements.length;c>v;v++){var D=this.elements[v];"IMG"===D.nodeName&&this.addImage(D);var a=D.nodeType;if(a&&(1===a||9===a||11===a)){for(var h=D.querySelectorAll("img"),C=0,d=h.length;d>C;C++){var u=h[C];this.addImage(u)}}}},B.prototype.addImage=function(c){var a=new m(c);this.images.push(a)},B.prototype.check=function(){function f(n,i){return c.options.debug&&l&&z.log("confirm",n,i),c.progress(n),s++,s===a&&c.complete(),!0}var c=this,s=0,a=this.images.length;if(this.hasAnyBroken=!1,!a){return void this.complete()}for(var d=0;a>d;d++){var h=this.images[d];h.on("confirm",f),h.check()}},B.prototype.progress=function(c){this.hasAnyBroken=this.hasAnyBroken||!c.isLoaded;var a=this;setTimeout(function(){a.emit("progress",a,c),a.jqDeferred&&a.jqDeferred.notify&&a.jqDeferred.notify(a,c)})},B.prototype.complete=function(){var c=this.hasAnyBroken?"fail":"done";this.isComplete=!0;var a=this;setTimeout(function(){if(a.emit(c,a),a.emit("always",a),a.jqDeferred){var d=a.hasAnyBroken?"reject":"resolve";a.jqDeferred[d](a)}})},x&&(x.fn.imagesLoaded=function(c,a){var d=new B(this,c,a);return d.jqDeferred.promise(x(this))}),m.prototype=new A,m.prototype.check=function(){var c=y[this.img.src]||new w(this.img.src);if(c.isConfirmed){return void this.confirm(c.isLoaded,"cached was confirmed")}if(this.img.complete&&void 0!==this.img.naturalWidth){return void this.confirm(0!==this.img.naturalWidth,"naturalWidth")}var a=this;c.on("confirm",function(d,f){return a.confirm(d.isLoaded,f),!0}),c.check()},m.prototype.confirm=function(c,a){this.isLoaded=c,this.emit("confirm",this,a)};var y={};return w.prototype=new A,w.prototype.check=function(){if(!this.isChecked){var a=new Image;j.bind(a,"load",this),j.bind(a,"error",this),a.src=this.src,this.isChecked=!0}},w.prototype.handleEvent=function(c){var a="on"+c.type;this[a]&&this[a](c)},w.prototype.onload=function(a){this.confirm(!0,"onload"),this.unbindProxyEvents(a)},w.prototype.onerror=function(a){this.confirm(!1,"onerror"),this.unbindProxyEvents(a)},w.prototype.confirm=function(c,a){this.isConfirmed=!0,this.isLoaded=c,this.emit("confirm",this,a)},w.prototype.unbindProxyEvents=function(a){j.unbind(a.target,"load",this),j.unbind(a.target,"error",this)},B});



/*!
 * Stellar.js v0.6.2
 * http://markdalgleish.com/projects/stellar.js
 * This content is released under the MIT license
 * http://markdalgleish.mit-license.org
 */
!function(C,x,q,D){function j(c,a){this.element=c,this.options=C.extend({},b,a),this._defaults=b,this._name=k,this.init()}var k="stellar",b={scrollProperty:"scroll",positionProperty:"position",horizontalScrolling:!0,verticalScrolling:!0,horizontalOffset:0,verticalOffset:0,responsive:!1,parallaxBackgrounds:!0,parallaxElements:!0,hideDistantElements:!0,hideElement:function(a){a.hide()},showElement:function(a){a.show()}},A={scroll:{getLeft:function(a){return a.scrollLeft()},setLeft:function(a,c){a.scrollLeft(c)},getTop:function(a){return a.scrollTop()},setTop:function(a,c){a.scrollTop(c)}},position:{getLeft:function(a){return -1*parseInt(a.css("left"),10)},getTop:function(a){return -1*parseInt(a.css("top"),10)}},margin:{getLeft:function(a){return -1*parseInt(a.css("margin-left"),10)},getTop:function(a){return -1*parseInt(a.css("margin-top"),10)}},transform:{getLeft:function(a){var c=getComputedStyle(a[0])[z];return"none"!==c?-1*parseInt(c.match(/(-?[0-9]+)/g)[4],10):0},getTop:function(a){var c=getComputedStyle(a[0])[z];return"none"!==c?-1*parseInt(c.match(/(-?[0-9]+)/g)[5],10):0}}},m={position:{setLeft:function(a,c){a.css("left",c)},setTop:function(a,c){a.css("top",c)}},transform:{setPosition:function(c,f,a,d,h){c[0].style[z]="translate3d("+(f-a)+"px, "+(d-h)+"px, 0)"}}},w=function(){var d,a=/^(Moz|Webkit|Khtml|O|ms|Icab)(?=[A-Z])/,c=C("script")[0].style,f="";for(d in c){if(a.test(d)){f=d.match(a)[0];break}}return"WebkitOpacity" in c&&(f="Webkit"),"KhtmlOpacity" in c&&(f="Khtml"),function(e){return f+(f.length>0?e.charAt(0).toUpperCase()+e.slice(1):e)}}(),z=w("transform"),v=C("<div />",{style:"background:#fff"}).css("background-position-x")!==D,g=v?function(c,d,a){c.css({"background-position-x":d,"background-position-y":a})}:function(c,d,a){c.css("background-position",d+" "+a)},y=v?function(a){return[a.css("background-position-x"),a.css("background-position-y")]}:function(a){return a.css("background-position").split(" ")},B=x.requestAnimationFrame||x.webkitRequestAnimationFrame||x.mozRequestAnimationFrame||x.oRequestAnimationFrame||x.msRequestAnimationFrame||function(a){setTimeout(a,1000/60)};j.prototype={init:function(){this.options.name=k+"_"+Math.floor(1000000000*Math.random()),this._defineElements(),this._defineGetters(),this._defineSetters(),this._handleWindowLoadAndResize(),this._detectViewport(),this.refresh({firstLoad:!0}),"scroll"===this.options.scrollProperty?this._handleScrollEvent():this._startAnimationLoop()},_defineElements:function(){this.element===q.body&&(this.element=x),this.$scrollElement=C(this.element),this.$element=this.element===x?C("body"):this.$scrollElement,this.$viewportElement=this.options.viewportElement!==D?C(this.options.viewportElement):this.$scrollElement[0]===x||"scroll"===this.options.scrollProperty?this.$scrollElement:this.$scrollElement.parent()},_defineGetters:function(){var a=this,c=A[a.options.scrollProperty];this._getScrollLeft=function(){return c.getLeft(a.$scrollElement)},this._getScrollTop=function(){return c.getTop(a.$scrollElement)}},_defineSetters:function(){var d=this,a=A[d.options.scrollProperty],c=m[d.options.positionProperty],f=a.setLeft,h=a.setTop;this._setScrollLeft="function"==typeof f?function(e){f(d.$scrollElement,e)}:C.noop,this._setScrollTop="function"==typeof h?function(e){h(d.$scrollElement,e)}:C.noop,this._setPosition=c.setPosition||function(l,e,s,u,p){d.options.horizontalScrolling&&c.setLeft(l,e,s),d.options.verticalScrolling&&c.setTop(l,u,p)}},_handleWindowLoadAndResize:function(){var a=this,c=C(x);a.options.responsive&&c.bind("load."+this.name,function(){a.refresh()}),c.bind("resize."+this.name,function(){a._detectViewport(),a.options.responsive&&a.refresh()})},refresh:function(a){var c=this,d=c._getScrollLeft(),e=c._getScrollTop();a&&a.firstLoad||this._reset(),this._setScrollLeft(0),this._setScrollTop(0),this._setOffsets(),this._findParticles(),this._findBackgrounds(),a&&a.firstLoad&&/WebKit/.test(navigator.userAgent)&&C(x).load(function(){var f=c._getScrollLeft(),h=c._getScrollTop();c._setScrollLeft(f+1),c._setScrollTop(h+1),c._setScrollLeft(f),c._setScrollTop(h)}),this._setScrollLeft(d),this._setScrollTop(e)},_detectViewport:function(){var a=this.$viewportElement.offset(),c=null!==a&&a!==D;this.viewportWidth=this.$viewportElement.width(),this.viewportHeight=this.$viewportElement.height(),this.viewportOffsetTop=c?a.top:0,this.viewportOffsetLeft=c?a.left:0},_findParticles:function(){var c=this;this._getScrollLeft(),this._getScrollTop();if(this.particles!==D){for(var a=this.particles.length-1;a>=0;a--){this.particles[a].$element.data("stellar-elementIsActive",D)}}this.particles=[],this.options.parallaxElements&&this.$element.find("[data-stellar-ratio]").each(function(H){var t,E,e,N,G,K,M,I,s,L=C(this),P=0,J=0,F=0,O=0;if(L.data("stellar-elementIsActive")){if(L.data("stellar-elementIsActive")!==this){return}}else{L.data("stellar-elementIsActive",this)}c.options.showElement(L),L.data("stellar-startingLeft")?(L.css("left",L.data("stellar-startingLeft")),L.css("top",L.data("stellar-startingTop"))):(L.data("stellar-startingLeft",L.css("left")),L.data("stellar-startingTop",L.css("top"))),e=L.position().left,N=L.position().top,G="auto"===L.css("margin-left")?0:parseInt(L.css("margin-left"),10),K="auto"===L.css("margin-top")?0:parseInt(L.css("margin-top"),10),I=L.offset().left-G,s=L.offset().top-K,L.parents().each(function(){var d=C(this);return d.data("stellar-offset-parent")===!0?(P=F,J=O,M=d,!1):(F+=d.position().left,void (O+=d.position().top))}),t=L.data("stellar-horizontal-offset")!==D?L.data("stellar-horizontal-offset"):M!==D&&M.data("stellar-horizontal-offset")!==D?M.data("stellar-horizontal-offset"):c.horizontalOffset,E=L.data("stellar-vertical-offset")!==D?L.data("stellar-vertical-offset"):M!==D&&M.data("stellar-vertical-offset")!==D?M.data("stellar-vertical-offset"):c.verticalOffset,c.particles.push({$element:L,$offsetParent:M,isFixed:"fixed"===L.css("position"),horizontalOffset:t,verticalOffset:E,startingPositionLeft:e,startingPositionTop:N,startingOffsetLeft:I,startingOffsetTop:s,parentOffsetLeft:P,parentOffsetTop:J,stellarRatio:L.data("stellar-ratio")!==D?L.data("stellar-ratio"):1,width:L.outerWidth(!0),height:L.outerHeight(!0),isHidden:!1})})},_findBackgrounds:function(){var c,a=this,d=this._getScrollLeft(),f=this._getScrollTop();this.backgrounds=[],this.options.parallaxBackgrounds&&(c=this.$element.find("[data-stellar-background-ratio]"),this.$element.data("stellar-background-ratio")&&(c=c.add(this.$element)),c.each(function(){var E,i,H,o,t,G,p,K=C(this),s=y(K),n=0,J=0,F=0,I=0;if(K.data("stellar-backgroundIsActive")){if(K.data("stellar-backgroundIsActive")!==this){return}}else{K.data("stellar-backgroundIsActive",this)}K.data("stellar-backgroundStartingLeft")?g(K,K.data("stellar-backgroundStartingLeft"),K.data("stellar-backgroundStartingTop")):(K.data("stellar-backgroundStartingLeft",s[0]),K.data("stellar-backgroundStartingTop",s[1])),H="auto"===K.css("margin-left")?0:parseInt(K.css("margin-left"),10),o="auto"===K.css("margin-top")?0:parseInt(K.css("margin-top"),10),t=K.offset().left-H-d,G=K.offset().top-o-f,K.parents().each(function(){var h=C(this);return h.data("stellar-offset-parent")===!0?(n=F,J=I,p=h,!1):(F+=h.position().left,void (I+=h.position().top))}),E=K.data("stellar-horizontal-offset")!==D?K.data("stellar-horizontal-offset"):p!==D&&p.data("stellar-horizontal-offset")!==D?p.data("stellar-horizontal-offset"):a.horizontalOffset,i=K.data("stellar-vertical-offset")!==D?K.data("stellar-vertical-offset"):p!==D&&p.data("stellar-vertical-offset")!==D?p.data("stellar-vertical-offset"):a.verticalOffset,a.backgrounds.push({$element:K,$offsetParent:p,isFixed:"fixed"===K.css("background-attachment"),horizontalOffset:E,verticalOffset:i,startingValueLeft:s[0],startingValueTop:s[1],startingBackgroundPositionLeft:isNaN(parseInt(s[0],10))?0:parseInt(s[0],10),startingBackgroundPositionTop:isNaN(parseInt(s[1],10))?0:parseInt(s[1],10),startingPositionLeft:K.position().left,startingPositionTop:K.position().top,startingOffsetLeft:t,startingOffsetTop:G,parentOffsetLeft:n,parentOffsetTop:J,stellarRatio:K.data("stellar-background-ratio")===D?1:K.data("stellar-background-ratio")})}))},_reset:function(){var c,f,a,d,h;for(h=this.particles.length-1;h>=0;h--){c=this.particles[h],f=c.$element.data("stellar-startingLeft"),a=c.$element.data("stellar-startingTop"),this._setPosition(c.$element,f,f,a,a),this.options.showElement(c.$element),c.$element.data("stellar-startingLeft",null).data("stellar-elementIsActive",null).data("stellar-backgroundIsActive",null)}for(h=this.backgrounds.length-1;h>=0;h--){d=this.backgrounds[h],d.$element.data("stellar-backgroundStartingLeft",null).data("stellar-backgroundStartingTop",null),g(d.$element,d.startingValueLeft,d.startingValueTop)}},destroy:function(){this._reset(),this.$scrollElement.unbind("resize."+this.name).unbind("scroll."+this.name),this._animationLoop=C.noop,C(x).unbind("load."+this.name).unbind("resize."+this.name)},_setOffsets:function(){var a=this,c=C(x);c.unbind("resize.horizontal-"+this.name).unbind("resize.vertical-"+this.name),"function"==typeof this.options.horizontalOffset?(this.horizontalOffset=this.options.horizontalOffset(),c.bind("resize.horizontal-"+this.name,function(){a.horizontalOffset=a.options.horizontalOffset()})):this.horizontalOffset=this.options.horizontalOffset,"function"==typeof this.options.verticalOffset?(this.verticalOffset=this.options.verticalOffset(),c.bind("resize.vertical-"+this.name,function(){a.verticalOffset=a.options.verticalOffset()})):this.verticalOffset=this.options.verticalOffset},_repositionElements:function(){var P,K,H,Q,E,F,p,N,G,J,M=this._getScrollLeft(),I=this._getScrollTop(),L=!0,O=!0;if(this.currentScrollLeft!==M||this.currentScrollTop!==I||this.currentWidth!==this.viewportWidth||this.currentHeight!==this.viewportHeight){for(this.currentScrollLeft=M,this.currentScrollTop=I,this.currentWidth=this.viewportWidth,this.currentHeight=this.viewportHeight,J=this.particles.length-1;J>=0;J--){P=this.particles[J],K=P.isFixed?1:0,this.options.horizontalScrolling?(F=(M+P.horizontalOffset+this.viewportOffsetLeft+P.startingPositionLeft-P.startingOffsetLeft+P.parentOffsetLeft)*-(P.stellarRatio+K-1)+P.startingPositionLeft,N=F-P.startingPositionLeft+P.startingOffsetLeft):(F=P.startingPositionLeft,N=P.startingOffsetLeft),this.options.verticalScrolling?(p=(I+P.verticalOffset+this.viewportOffsetTop+P.startingPositionTop-P.startingOffsetTop+P.parentOffsetTop)*-(P.stellarRatio+K-1)+P.startingPositionTop,G=p-P.startingPositionTop+P.startingOffsetTop):(p=P.startingPositionTop,G=P.startingOffsetTop),this.options.hideDistantElements&&(O=!this.options.horizontalScrolling||N+P.width>(P.isFixed?0:M)&&N<(P.isFixed?0:M)+this.viewportWidth+this.viewportOffsetLeft,L=!this.options.verticalScrolling||G+P.height>(P.isFixed?0:I)&&G<(P.isFixed?0:I)+this.viewportHeight+this.viewportOffsetTop),O&&L?(P.isHidden&&(this.options.showElement(P.$element),P.isHidden=!1),this._setPosition(P.$element,F,P.startingPositionLeft,p,P.startingPositionTop)):P.isHidden||(this.options.hideElement(P.$element),P.isHidden=!0)}for(J=this.backgrounds.length-1;J>=0;J--){H=this.backgrounds[J],K=H.isFixed?0:1,Q=this.options.horizontalScrolling?(M+H.horizontalOffset-this.viewportOffsetLeft-H.startingOffsetLeft+H.parentOffsetLeft-H.startingBackgroundPositionLeft)*(K-H.stellarRatio)+"px":H.startingValueLeft,E=this.options.verticalScrolling?(I+H.verticalOffset-this.viewportOffsetTop-H.startingOffsetTop+H.parentOffsetTop-H.startingBackgroundPositionTop)*(K-H.stellarRatio)+"px":H.startingValueTop,g(H.$element,Q,E)}}},_handleScrollEvent:function(){var c=this,f=!1,a=function(){c._repositionElements(),f=!1},d=function(){f||(B(a),f=!0)};this.$scrollElement.bind("scroll."+this.name,d),d()},_startAnimationLoop:function(){var a=this;this._animationLoop=function(){B(a._animationLoop),a._repositionElements()},this._animationLoop()}},C.fn[k]=function(c){var a=arguments;return c===D||"object"==typeof c?this.each(function(){C.data(this,"plugin_"+k)||C.data(this,"plugin_"+k,new j(this,c))}):"string"==typeof c&&"_"!==c[0]&&"init"!==c?this.each(function(){var d=C.data(this,"plugin_"+k);d instanceof j&&"function"==typeof d[c]&&d[c].apply(d,Array.prototype.slice.call(a,1)),"destroy"===c&&C.data(this,"plugin_"+k,null)}):void 0},C[k]=function(a){var c=C(x);return c.stellar.apply(c,Array.prototype.slice.call(arguments,0))},C[k].scrollProperty=A,C[k].positionProperty=m,x.Stellar=j}(jQuery,this,document);


/*! jQuery Validation Plugin - v1.11.0 - 2/4/2013
* https://github.com/jzaefferer/jquery-validation
* Copyright (c) 2013 Jörn Zaefferer; Licensed MIT */
(function(a){a.extend(a.fn,{validate:function(b){if(!this.length){b&&b.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing.");return}var c=a.data(this[0],"validator");return c?c:(this.attr("novalidate","novalidate"),c=new a.validator(b,this[0]),a.data(this[0],"validator",c),c.settings.onsubmit&&(this.validateDelegate(":submit","click",function(d){c.settings.submitHandler&&(c.submitButton=d.target),a(d.target).hasClass("cancel")&&(c.cancelSubmit=!0)}),this.submit(function(d){function e(){var f;return c.settings.submitHandler?(c.submitButton&&(f=a("<input type='hidden'/>").attr("name",c.submitButton.name).val(c.submitButton.value).appendTo(c.currentForm)),c.settings.submitHandler.call(c,c.currentForm,d),c.submitButton&&f.remove(),!1):!0}return c.settings.debug&&d.preventDefault(),c.cancelSubmit?(c.cancelSubmit=!1,e()):c.form()?c.pendingRequest?(c.formSubmitted=!0,!1):e():(c.focusInvalid(),!1)})),c)},valid:function(){if(a(this[0]).is("form")){return this.validate().form()}var b=!0,c=a(this[0].form).validate();return this.each(function(){b&=c.element(this)}),b},removeAttrs:function(b){var d={},c=this;return a.each(b.split(/\s/),function(g,f){d[f]=c.attr(f),c.removeAttr(f)}),d},rules:function(k,d){var b=this[0];if(k){var e=a.data(b.form,"validator").settings,l=e.rules,c=a.validator.staticRules(b);switch(k){case"add":a.extend(c,a.validator.normalizeRule(d)),l[b.name]=c,d.messages&&(e.messages[b.name]=a.extend(e.messages[b.name],d.messages));break;case"remove":if(!d){return delete l[b.name],c}var j={};return a.each(d.split(/\s/),function(i,f){j[f]=c[f],delete c[f]}),j}}var h=a.validator.normalizeRules(a.extend({},a.validator.classRules(b),a.validator.attributeRules(b),a.validator.dataRules(b),a.validator.staticRules(b)),b);if(h.required){var g=h.required;delete h.required,h=a.extend({required:g},h)}return h}}),a.extend(a.expr[":"],{blank:function(b){return !a.trim(""+b.value)},filled:function(b){return !!a.trim(""+b.value)},unchecked:function(b){return !b.checked}}),a.validator=function(b,c){this.settings=a.extend(!0,{},a.validator.defaults,b),this.currentForm=c,this.init()},a.validator.format=function(b,c){return arguments.length===1?function(){var d=a.makeArray(arguments);return d.unshift(b),a.validator.format.apply(this,d)}:(arguments.length>2&&c.constructor!==Array&&(c=a.makeArray(arguments).slice(1)),c.constructor!==Array&&(c=[c]),a.each(c,function(d,f){b=b.replace(new RegExp("\\{"+d+"\\}","g"),function(){return f})}),b)},a.extend(a.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusInvalid:!0,errorContainer:a([]),errorLabelContainer:a([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(c,b){this.lastActive=c,this.settings.focusCleanup&&!this.blockFocusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,c,this.settings.errorClass,this.settings.validClass),this.addWrapper(this.errorsFor(c)).hide())},onfocusout:function(c,b){!this.checkable(c)&&(c.name in this.submitted||!this.optional(c))&&this.element(c)},onkeyup:function(c,b){if(b.which===9&&this.elementValue(c)===""){return}(c.name in this.submitted||c===this.lastElement)&&this.element(c)},onclick:function(c,b){c.name in this.submitted?this.element(c):c.parentNode.name in this.submitted&&this.element(c.parentNode)},highlight:function(b,d,c){b.type==="radio"?this.findByName(b.name).addClass(d).removeClass(c):a(b).addClass(d).removeClass(c)},unhighlight:function(b,d,c){b.type==="radio"?this.findByName(b.name).removeClass(d).addClass(c):a(b).removeClass(d).addClass(c)}},setDefaults:function(b){a.extend(a.validator.defaults,b)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",maxlength:a.validator.format("Please enter no more than {0} characters."),minlength:a.validator.format("Please enter at least {0} characters."),rangelength:a.validator.format("Please enter a value between {0} and {1} characters long."),range:a.validator.format("Please enter a value between {0} and {1}."),max:a.validator.format("Please enter a value less than or equal to {0}."),min:a.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:!1,prototype:{init:function(){function c(e){var g=a.data(this[0].form,"validator"),f="on"+e.type.replace(/^validate/,"");g.settings[f]&&g.settings[f].call(g,this[0],e)}this.labelContainer=a(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||a(this.currentForm),this.containers=a(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var b=this.groups={};a.each(this.settings.groups,function(f,e){typeof e=="string"&&(e=e.split(/\s/)),a.each(e,function(h,g){b[g]=f})});var d=this.settings.rules;a.each(d,function(e,f){d[e]=a.validator.normalizeRule(f)}),a(this.currentForm).validateDelegate(":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'] ,[type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'] ","focusin focusout keyup",c).validateDelegate("[type='radio'], [type='checkbox'], select, option","click",c),this.settings.invalidHandler&&a(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler)},form:function(){return this.checkForm(),a.extend(this.submitted,this.errorMap),this.invalid=a.extend({},this.errorMap),this.valid()||a(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var c=0,b=this.currentElements=this.elements();b[c];c++){this.check(b[c])}return this.valid()},element:function(b){b=this.validationTargetFor(this.clean(b)),this.lastElement=b,this.prepareElement(b),this.currentElements=a(b);var c=this.check(b)!==!1;return c?delete this.invalid[b.name]:this.invalid[b.name]=!0,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),c},showErrors:function(b){if(b){a.extend(this.errorMap,b),this.errorList=[];for(var c in b){this.errorList.push({message:b[c],element:this.findByName(c)[0]})}this.successList=a.grep(this.successList,function(d){return !(d.name in b)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){a.fn.resetForm&&a(this.currentForm).resetForm(),this.submitted={},this.lastElement=null,this.prepareForm(),this.hideErrors(),this.elements().removeClass(this.settings.errorClass).removeData("previousValue")},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(c){var b=0;for(var d in c){b++}return b},hideErrors:function(){this.addWrapper(this.toHide).hide()},valid:function(){return this.size()===0},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid){try{a(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(b){}}},findLastActive:function(){var b=this.lastActive;return b&&a.grep(this.errorList,function(c){return c.element.name===b.name}).length===1&&b},elements:function(){var b=this,c={};return a(this.currentForm).find("input, select, textarea").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){return !this.name&&b.settings.debug&&window.console&&console.error("%o has no name assigned",this),this.name in c||!b.objectLength(a(this).rules())?!1:(c[this.name]=!0,!0)})},clean:function(b){return a(b)[0]},errors:function(){var b=this.settings.errorClass.replace(" ",".");return a(this.settings.errorElement+"."+b,this.errorContext)},reset:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=a([]),this.toHide=a([]),this.currentElements=a([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(b){this.reset(),this.toHide=this.errorsFor(b)},elementValue:function(b){var d=a(b).attr("type"),c=a(b).val();return d==="radio"||d==="checkbox"?a("input[name='"+a(b).attr("name")+"']:checked").val():typeof c=="string"?c.replace(/\r/g,""):c},check:function(e){e=this.validationTargetFor(this.clean(e));var j=a(e).rules(),g=!1,d=this.elementValue(e),f;for(var h in j){var c={method:h,parameters:j[h]};try{f=a.validator.methods[h].call(this,d,e,c.parameters);if(f==="dependency-mismatch"){g=!0;continue}g=!1;if(f==="pending"){this.toHide=this.toHide.not(this.errorsFor(e));return}if(!f){return this.formatAndAdd(e,c),!1}}catch(b){throw this.settings.debug&&window.console&&console.log("Exception occured when checking element "+e.id+", check the '"+c.method+"' method.",b),b}}if(g){return}return this.objectLength(j)&&this.successList.push(e),!0},customDataMessage:function(b,c){return a(b).data("msg-"+c.toLowerCase())||b.attributes&&a(b).attr("data-msg-"+c.toLowerCase())},customMessage:function(c,b){var d=this.settings.messages[c];return d&&(d.constructor===String?d:d[b])},findDefined:function(){for(var b=0;b<arguments.length;b++){if(arguments[b]!==undefined){return arguments[b]}}return undefined},defaultMessage:function(b,c){return this.findDefined(this.customMessage(b.name,c),this.customDataMessage(b,c),!this.settings.ignoreTitle&&b.title||undefined,a.validator.messages[c],"<strong>Warning: No message defined for "+b.name+"</strong>")},formatAndAdd:function(c,e){var d=this.defaultMessage(c,e.method),b=/\$?\{(\d+)\}/g;typeof d=="function"?d=d.call(this,e.parameters,c):b.test(d)&&(d=a.validator.format(d.replace(b,"{$1}"),e.parameters)),this.errorList.push({message:d,element:c}),this.errorMap[c.name]=d,this.submitted[c.name]=d},addWrapper:function(b){return this.settings.wrapper&&(b=b.add(b.parent(this.settings.wrapper))),b},defaultShowErrors:function(){var c,b;for(c=0;this.errorList[c];c++){var d=this.errorList[c];this.settings.highlight&&this.settings.highlight.call(this,d.element,this.settings.errorClass,this.settings.validClass),this.showLabel(d.element,d.message)}this.errorList.length&&(this.toShow=this.toShow.add(this.containers));if(this.settings.success){for(c=0;this.successList[c];c++){this.showLabel(this.successList[c])}}if(this.settings.unhighlight){for(c=0,b=this.validElements();b[c];c++){this.settings.unhighlight.call(this,b[c],this.settings.errorClass,this.settings.validClass)}}this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return a(this.errorList).map(function(){return this.element})},showLabel:function(b,d){var c=this.errorsFor(b);c.length?(c.removeClass(this.settings.validClass).addClass(this.settings.errorClass),c.html(d)):(c=a("<"+this.settings.errorElement+">").attr("for",this.idOrName(b)).addClass(this.settings.errorClass).html(d||""),this.settings.wrapper&&(c=c.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.append(c).length||(this.settings.errorPlacement?this.settings.errorPlacement(c,a(b)):c.insertAfter(b))),!d&&this.settings.success&&(c.text(""),typeof this.settings.success=="string"?c.addClass(this.settings.success):this.settings.success(c,b)),this.toShow=this.toShow.add(c)},errorsFor:function(b){var c=this.idOrName(b);return this.errors().filter(function(){return a(this).attr("for")===c})},idOrName:function(b){return this.groups[b.name]||(this.checkable(b)?b.name:b.id||b.name)},validationTargetFor:function(b){return this.checkable(b)&&(b=this.findByName(b.name).not(this.settings.ignore)[0]),b},checkable:function(b){return/radio|checkbox/i.test(b.type)},findByName:function(b){return a(this.currentForm).find("[name='"+b+"']")},getLength:function(b,c){switch(c.nodeName.toLowerCase()){case"select":return a("option:selected",c).length;case"input":if(this.checkable(c)){return this.findByName(c.name).filter(":checked").length}}return b.length},depend:function(c,b){return this.dependTypes[typeof c]?this.dependTypes[typeof c](c,b):!0},dependTypes:{"boolean":function(c,b){return c},string:function(b,c){return !!a(b,c.form).length},"function":function(c,b){return c(b)}},optional:function(b){var c=this.elementValue(b);return !a.validator.methods.required.call(this,c,b)&&"dependency-mismatch"},startRequest:function(b){this.pending[b.name]||(this.pendingRequest++,this.pending[b.name]=!0)},stopRequest:function(b,c){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[b.name],c&&this.pendingRequest===0&&this.formSubmitted&&this.form()?(a(this.currentForm).submit(),this.formSubmitted=!1):!c&&this.pendingRequest===0&&this.formSubmitted&&(a(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(b){return a.data(b,"previousValue")||a.data(b,"previousValue",{old:null,valid:!0,message:this.defaultMessage(b,"remote")})}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(b,c){b.constructor===String?this.classRuleSettings[b]=c:a.extend(this.classRuleSettings,b)},classRules:function(b){var d={},c=a(b).attr("class");return c&&a.each(c.split(" "),function(){this in a.validator.classRuleSettings&&a.extend(d,a.validator.classRuleSettings[this])}),d},attributeRules:function(c){var f={},e=a(c);for(var b in a.validator.methods){var d;b==="required"?(d=e.get(0).getAttribute(b),d===""&&(d=!0),d=!!d):d=e.attr(b),d?f[b]=d:e[0].getAttribute("type")===b&&(f[b]=!0)}return f.maxlength&&/-1|2147483647|524288/.test(f.maxlength)&&delete f.maxlength,f},dataRules:function(c){var f,e,b={},d=a(c);for(f in a.validator.methods){e=d.data("rule-"+f.toLowerCase()),e!==undefined&&(b[f]=e)}return b},staticRules:function(b){var d={},c=a.data(b.form,"validator");return c.settings.rules&&(d=a.validator.normalizeRule(c.settings.rules[b.name])||{}),d},normalizeRules:function(b,c){return a.each(b,function(f,d){if(d===!1){delete b[f];return}if(d.param||d.depends){var e=!0;switch(typeof d.depends){case"string":e=!!a(d.depends,c.form).length;break;case"function":e=d.depends.call(c,c)}e?b[f]=d.param!==undefined?d.param:!0:delete b[f]}}),a.each(b,function(e,d){b[e]=a.isFunction(d)?d(c):d}),a.each(["minlength","maxlength"],function(){b[this]&&(b[this]=Number(b[this]))}),a.each(["rangelength"],function(){var d;b[this]&&(a.isArray(b[this])?b[this]=[Number(b[this][0]),Number(b[this][1])]:typeof b[this]=="string"&&(d=b[this].split(/[\s,]+/),b[this]=[Number(d[0]),Number(d[1])]))}),a.validator.autoCreateRanges&&(b.min&&b.max&&(b.range=[b.min,b.max],delete b.min,delete b.max),b.minlength&&b.maxlength&&(b.rangelength=[b.minlength,b.maxlength],delete b.minlength,delete b.maxlength)),b},normalizeRule:function(b){if(typeof b=="string"){var c={};a.each(b.split(/\s/),function(){c[this]=!0}),b=c}return b},addMethod:function(b,d,c){a.validator.methods[b]=d,a.validator.messages[b]=c!==undefined?c:a.validator.messages[b],d.length<3&&a.validator.addClassRules(b,a.validator.normalizeRule(b))},methods:{required:function(c,e,d){if(!this.depend(d,e)){return"dependency-mismatch"}if(e.nodeName.toLowerCase()==="select"){var b=a(e).val();return b&&b.length>0}return this.checkable(e)?this.getLength(c,e)>0:a.trim(c).length>0},remote:function(c,g,e){if(this.optional(g)){return"dependency-mismatch"}var b=this.previousValue(g);this.settings.messages[g.name]||(this.settings.messages[g.name]={}),b.originalMessage=this.settings.messages[g.name].remote,this.settings.messages[g.name].remote=b.message,e=typeof e=="string"&&{url:e}||e;if(b.old===c){return b.valid}b.old=c;var d=this;this.startRequest(g);var f={};return f[g.name]=c,a.ajax(a.extend(!0,{url:e,mode:"abort",port:"validate"+g.name,dataType:"json",data:f,success:function(j){d.settings.messages[g.name].remote=b.originalMessage;var l=j===!0||j==="true";if(l){var i=d.formSubmitted;d.prepareElement(g),d.formSubmitted=i,d.successList.push(g),delete d.invalid[g.name],d.showErrors()}else{var h={},k=j||d.defaultMessage(g,"remote");h[g.name]=b.message=a.isFunction(k)?k(c):k,d.invalid[g.name]=!0,d.showErrors(h)}b.valid=l,d.stopRequest(g,l)}},e)),"pending"},minlength:function(c,e,d){var b=a.isArray(c)?c.length:this.getLength(a.trim(c),e);return this.optional(e)||b>=d},maxlength:function(c,e,d){var b=a.isArray(c)?c.length:this.getLength(a.trim(c),e);return this.optional(e)||b<=d},rangelength:function(c,e,d){var b=a.isArray(c)?c.length:this.getLength(a.trim(c),e);return this.optional(e)||b>=d[0]&&b<=d[1]},min:function(c,b,d){return this.optional(b)||c>=d},max:function(c,b,d){return this.optional(b)||c<=d},range:function(c,b,d){return this.optional(b)||c>=d[0]&&c<=d[1]},email:function(c,b){return this.optional(b)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i.test(c)},url:function(c,b){return this.optional(b)||/^(https?|s?ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(c)},date:function(c,b){return this.optional(b)||!/Invalid|NaN/.test((new Date(c)).toString())},dateISO:function(c,b){return this.optional(b)||/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}$/.test(c)},number:function(c,b){return this.optional(b)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(c)},digits:function(c,b){return this.optional(b)||/^\d+$/.test(c)},creditcard:function(g,c){if(this.optional(c)){return"dependency-mismatch"}if(/[^0-9 \-]+/.test(g)){return !1}var j=0,f=0,b=!1;g=g.replace(/\D/g,"");for(var d=g.length-1;d>=0;d--){var h=g.charAt(d);f=parseInt(h,10),b&&(f*=2)>9&&(f-=9),j+=f,b=!b}return j%10===0},equalTo:function(c,e,d){var b=a(d);return this.settings.onfocusout&&b.unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){a(e).valid()}),c===b.val()}}}),a.format=a.validator.format})(jQuery),function(b){var a={};if(b.ajaxPrefilter){b.ajaxPrefilter(function(g,h,f){var d=g.port;g.mode==="abort"&&(a[d]&&a[d].abort(),a[d]=f)})}else{var c=b.ajax;b.ajax=function(f){var d=("mode" in f?f:b.ajaxSettings).mode,e=("port" in f?f:b.ajaxSettings).port;return d==="abort"?(a[e]&&a[e].abort(),a[e]=c.apply(this,arguments)):c.apply(this,arguments)}}}(jQuery),function(a){a.extend(a.fn,{validateDelegate:function(b,d,c){return this.bind(d,function(f){var e=a(f.target);if(e.is(b)){return c.apply(e,arguments)}})}})}(jQuery);!function(e,d){var f=function(){var D={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",menuArrowClass:"sf-arrows"},C=function(){var c=/^(?![\w\W]*Windows Phone)[\w\W]*(iPhone|iPad|iPod)/i.test(navigator.userAgent);return c&&e("html").css("cursor","pointer").on("click",e.noop),c}(),B=function(){var c=document.documentElement.style;return"behavior" in c&&"fill" in c&&/iemobile/i.test(navigator.userAgent)}(),A=function(){return !!d.PointerEvent}(),z=function(g,c,j){var i,h=D.menuClass;c.cssArrows&&(h+=" "+D.menuArrowClass),i=j?"addClass":"removeClass",g[i](h)},y=function(c,g){return c.find("li."+g.pathClass).slice(0,g.pathLevels).addClass(g.hoverClass+" "+D.bcClass).filter(function(){return e(this).children(g.popUpSelector).hide().show().length}).removeClass(g.pathClass)},x=function(g,c){var h=c?"addClass":"removeClass";g.children("a")[h](D.anchorClass)},w=function(h){var g=h.css("ms-touch-action"),i=h.css("touch-action");i=i||g,i="pan-y"===i?"auto":"pan-y",h.css({"ms-touch-action":i,"touch-action":i})},v=function(c){return c.closest("."+D.menuClass)},u=function(c){return v(c).data("sfOptions")},t=function(){var g=e(this),h=u(g);clearTimeout(h.sfTimer),g.siblings().superfish("hide").end().superfish("show")},s=function(c){c.retainPath=e.inArray(this[0],c.$path)>-1,this.superfish("hide"),this.parents("."+c.hoverClass).length||(c.onIdle.call(v(this)),c.$path.length&&e.proxy(t,c.$path)())},r=function(){var g=e(this),h=u(g);C?e.proxy(s,g,h)():(clearTimeout(h.sfTimer),h.sfTimer=setTimeout(e.proxy(s,g,h),h.delay))},b=function(g){var j=e(this),i=u(j),h=j.siblings(g.data.popUpSelector);return i.onHandleTouch.call(h)===!1?this:void (h.length>0&&h.is(":hidden")&&(j.one("click.superfish",!1),"MSPointerDown"===g.type||"pointerdown"===g.type?j.trigger("focus"):e.proxy(t,j.parent("li"))()))},a=function(i,l){var k="li:has("+l.popUpSelector+")";e.fn.hoverIntent&&!l.disableHI?i.hoverIntent(t,r,k):i.on("mouseenter.superfish",k,t).on("mouseleave.superfish",k,r);var j="MSPointerDown.superfish";A&&(j="pointerdown.superfish"),C||(j+=" touchend.superfish"),B&&(j+=" mousedown.superfish"),i.on("focusin.superfish","li",t).on("focusout.superfish","li",r).on(j,"a",l,b)};return{hide:function(h){if(this.length){var m=this,l=u(m);if(!l){return this}var k=l.retainPath===!0?l.$path:"",j=m.find("li."+l.hoverClass).add(this).not(k).removeClass(l.hoverClass).children(l.popUpSelector),i=l.speedOut;if(h&&(j.show(),i=0),l.retainPath=!1,l.onBeforeHide.call(j)===!1){return this}j.stop(!0,!0).animate(l.animationOut,i,function(){var c=e(this);l.onHide.call(c)})}return this},show:function(){var h=u(this);if(!h){return this}var g=this.addClass(h.hoverClass),i=g.children(h.popUpSelector);return h.onBeforeShow.call(i)===!1?this:(i.stop(!0,!0).animate(h.animation,h.speed,function(){h.onShow.call(i)}),this)},destroy:function(){return this.each(function(){var c,h=e(this),g=h.data("sfOptions");return g?(c=h.find(g.popUpSelector).parent("li"),clearTimeout(g.sfTimer),z(h,g),x(c),w(h),h.off(".superfish").off(".hoverIntent"),c.children(g.popUpSelector).attr("style",function(j,i){return i.replace(/display[^;]+;?/g,"")}),g.$path.removeClass(g.hoverClass+" "+D.bcClass).addClass(g.pathClass),h.find("."+g.hoverClass).removeClass(g.hoverClass),g.onDestroy.call(h),void h.removeData("sfOptions")):!1})},init:function(c){return this.each(function(){var i=e(this);if(i.data("sfOptions")){return !1}var h=e.extend({},e.fn.superfish.defaults,c),g=i.find(h.popUpSelector).parent("li");h.$path=y(i,h),i.data("sfOptions",h),z(i,h,!0),x(g,!0),w(i),a(i,h),g.not("."+D.bcClass).superfish("hide",!0),h.onInit.call(this)})}}}();e.fn.superfish=function(a,c){return f[a]?f[a].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof a&&a?e.error("Method "+a+" does not exist on jQuery.fn.superfish"):f.init.apply(this,arguments)},e.fn.superfish.defaults={popUpSelector:"ul,.sf-mega",hoverClass:"sfHover",pathClass:"overrideThisToUse",pathLevels:1,delay:800,animation:{opacity:"show"},animationOut:{opacity:"hide"},speed:"normal",speedOut:"fast",cssArrows:!0,disableHI:!1,onInit:e.noop,onBeforeShow:e.noop,onShow:e.noop,onBeforeHide:e.noop,onHide:e.noop,onIdle:e.noop,onDestroy:e.noop,onHandleTouch:e.noop}}(jQuery,window);!function(){var a=!1;window.JQClass=function(){},JQClass.classes={},JQClass.extend=function b(g){function c(){!a&&this._init&&this._init.apply(this,arguments)}var e=this.prototype;a=!0;var d=new this;a=!1;for(var f in g){d[f]="function"==typeof g[f]&&"function"==typeof e[f]?function(h,i){return function(){var k=this._super;this._super=function(l){return e[h].apply(this,l||[])};var j=i.apply(this,arguments);return this._super=k,j}}(f,g[f]):g[f]}return c.prototype=d,c.prototype.constructor=c,c.extend=b,c}}(),function($){function camelCase(t){return t.replace(/-([a-z])/g,function(t,e){return e.toUpperCase()})}JQClass.classes.JQPlugin=JQClass.extend({name:"plugin",defaultOptions:{},regionalOptions:{},_getters:[],_getMarker:function(){return"is-"+this.name},_init:function(){$.extend(this.defaultOptions,this.regionalOptions&&this.regionalOptions[""]||{});var t=camelCase(this.name);$[t]=this,$.fn[t]=function(e){var n=Array.prototype.slice.call(arguments,1);return $[t]._isNotChained(e,n)?$[t][e].apply($[t],[this[0]].concat(n)):this.each(function(){if("string"==typeof e){if("_"===e[0]||!$[t][e]){throw"Unknown method: "+e}$[t][e].apply($[t],[this].concat(n))}else{$[t]._attach(this,e)}})}},setDefaults:function(t){$.extend(this.defaultOptions,t||{})},_isNotChained:function(t,e){return"option"===t&&(0===e.length||1===e.length&&"string"==typeof e[0])?!0:$.inArray(t,this._getters)>-1},_attach:function(t,e){if(t=$(t),!t.hasClass(this._getMarker())){t.addClass(this._getMarker()),e=$.extend({},this.defaultOptions,this._getMetadata(t),e||{});var n=$.extend({name:this.name,elem:t,options:e},this._instSettings(t,e));t.data(this.name,n),this._postAttach(t,n),this.option(t,e)}},_instSettings:function(t,e){return{}},_postAttach:function(t,e){},_getMetadata:function(elem){try{var data=elem.data(this.name.toLowerCase())||"";data=data.replace(/'/g,'"'),data=data.replace(/([a-zA-Z0-9]+):/g,function(t,e,n){var a=data.substring(0,n).match(/"/g);return a&&a.length%2!==0?e+":":'"'+e+'":'}),data=$.parseJSON("{"+data+"}");for(var name in data){var value=data[name];"string"==typeof value&&value.match(/^new Date\((.*)\)$/)&&(data[name]=eval(value))}return data}catch(e){return{}}},_getInst:function(t){return $(t).data(this.name)||{}},option:function(t,e,n){t=$(t);var a=t.data(this.name);if(!e||"string"==typeof e&&null==n){var s=(a||{}).options;return s&&e?s[e]:s}if(t.hasClass(this._getMarker())){var s=e||{};"string"==typeof e&&(s={},s[e]=n),this._optionsChanged(t,a,s),$.extend(a.options,s)}},_optionsChanged:function(t,e,n){},destroy:function(t){t=$(t),t.hasClass(this._getMarker())&&(this._preDestroy(t,this._getInst(t)),t.removeData(this.name).removeClass(this._getMarker()))},_preDestroy:function(t,e){}}),$.JQPlugin={createPlugin:function(t,e){"object"==typeof t&&(e=t,t="JQPlugin"),t=camelCase(t);var n=camelCase(e.name);JQClass.classes[n]=JQClass.classes[t].extend(e),new JQClass.classes[n]}}}(jQuery);!function(b,c){"function"==typeof define&&define.amd?define(c):"object"==typeof exports?module.exports=c(require,exports,module):b.CountUp=c()}(this,function(b,c,f){var d=function(w,y,j,v,q,g){for(var h=0,z=["webkit","moz","ms","o"],k=0;k<z.length&&!window.requestAnimationFrame;++k){window.requestAnimationFrame=window[z[k]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[z[k]+"CancelAnimationFrame"]||window[z[k]+"CancelRequestAnimationFrame"]}window.requestAnimationFrame||(window.requestAnimationFrame=function(l,o){var s=(new Date).getTime(),r=Math.max(0,16-(s-h)),m=window.setTimeout(function(){l(s+r)},r);return h=s+r,m}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)});var x=this;x.options={useEasing:!0,useGrouping:!0,separator:",",decimal:".",easingFn:null,formattingFn:null};for(var p in g){g.hasOwnProperty(p)&&(x.options[p]=g[p])}""===x.options.separator&&(x.options.useGrouping=!1),x.options.prefix||(x.options.prefix=""),x.options.suffix||(x.options.suffix=""),x.d="string"==typeof w?document.getElementById(w):w,x.startVal=Number(y),x.endVal=Number(j),x.countDown=x.startVal>x.endVal,x.frameVal=x.startVal,x.decimals=Math.max(0,v||0),x.dec=Math.pow(10,x.decimals),x.duration=1000*Number(q)||2000,x.formatNumber=function(l){l=l.toFixed(x.decimals),l+="";var o,s,r,m;if(o=l.split("."),s=o[0],r=o.length>1?x.options.decimal+o[1]:"",m=/(\d+)(\d{3})/,x.options.useGrouping){for(;m.test(s);){s=s.replace(m,"$1"+x.options.separator+"$2")}}return x.options.prefix+s+r+x.options.suffix},x.easeOutExpo=function(i,l,o,m){return o*(-Math.pow(2,-10*i/m)+1)*1024/1023+l},x.easingFn=x.options.easingFn?x.options.easingFn:x.easeOutExpo,x.formattingFn=x.options.formattingFn?x.options.formattingFn:x.formatNumber,x.version=function(){return"1.7.1"},x.printValue=function(e){var i=x.formattingFn(e);"INPUT"===x.d.tagName?this.d.value=i:"text"===x.d.tagName||"tspan"===x.d.tagName?this.d.textContent=i:this.d.innerHTML=i},x.count=function(e){x.startTime||(x.startTime=e),x.timestamp=e;var i=e-x.startTime;x.remaining=x.duration-i,x.options.useEasing?x.countDown?x.frameVal=x.startVal-x.easingFn(i,0,x.startVal-x.endVal,x.duration):x.frameVal=x.easingFn(i,x.startVal,x.endVal-x.startVal,x.duration):x.countDown?x.frameVal=x.startVal-(x.startVal-x.endVal)*(i/x.duration):x.frameVal=x.startVal+(x.endVal-x.startVal)*(i/x.duration),x.countDown?x.frameVal=x.frameVal<x.endVal?x.endVal:x.frameVal:x.frameVal=x.frameVal>x.endVal?x.endVal:x.frameVal,x.frameVal=Math.round(x.frameVal*x.dec)/x.dec,x.printValue(x.frameVal),i<x.duration?x.rAF=requestAnimationFrame(x.count):x.callback&&x.callback()},x.start=function(e){return x.callback=e,x.rAF=requestAnimationFrame(x.count),!1},x.pauseResume=function(){x.paused?(x.paused=!1,delete x.startTime,x.duration=x.remaining,x.startVal=x.frameVal,requestAnimationFrame(x.count)):(x.paused=!0,cancelAnimationFrame(x.rAF))},x.reset=function(){x.paused=!1,delete x.startTime,x.startVal=y,cancelAnimationFrame(x.rAF),x.printValue(x.startVal)},x.update=function(e){cancelAnimationFrame(x.rAF),x.paused=!1,delete x.startTime,x.startVal=x.frameVal,x.endVal=Number(e),x.countDown=x.startVal>x.endVal,x.rAF=requestAnimationFrame(x.count)},x.printValue(x.startVal)};return d});



/*! jQuery Validation Plugin - v1.15.0 - 2/24/2016
 * http://jqueryvalidation.org/
 * Copyright (c) 2016 Jörn Zaefferer; Licensed MIT */
!function(b){"function"==typeof define&&define.amd?define(["jquery"],b):"object"==typeof module&&module.exports?module.exports=b(require("jquery")):b(jQuery)}(function(e){e.extend(e.fn,{validate:function(a){if(!this.length){return void (a&&a.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing."))}var g=e.data(this[0],"validator");return g?g:(this.attr("novalidate","novalidate"),g=new e.validator(a,this[0]),e.data(this[0],"validator",g),g.settings.onsubmit&&(this.on("click.validate",":submit",function(c){g.settings.submitHandler&&(g.submitButton=c.target),e(this).hasClass("cancel")&&(g.cancelSubmit=!0),void 0!==e(this).attr("formnovalidate")&&(g.cancelSubmit=!0)}),this.on("submit.validate",function(c){function h(){var i,b;return g.settings.submitHandler?(g.submitButton&&(i=e("<input type='hidden'/>").attr("name",g.submitButton.name).val(e(g.submitButton).val()).appendTo(g.currentForm)),b=g.settings.submitHandler.call(g,g.currentForm,c),g.submitButton&&i.remove(),void 0!==b?b:!1):!0}return g.settings.debug&&c.preventDefault(),g.cancelSubmit?(g.cancelSubmit=!1,h()):g.form()?g.pendingRequest?(g.formSubmitted=!0,!1):h():(g.focusInvalid(),!1)})),g)},valid:function(){var a,h,g;return e(this[0]).is("form")?a=this.validate().form():(g=[],a=!0,h=e(this[0].form).validate(),this.each(function(){a=h.element(this)&&a,a||(g=g.concat(h.errorList))}),h.errorList=g),a},rules:function(r,q){if(this.length){var p,o,n,m,l,k,a=this[0];if(r){switch(p=e.data(a.form,"validator").settings,o=p.rules,n=e.validator.staticRules(a),r){case"add":e.extend(n,e.validator.normalizeRule(q)),delete n.messages,o[a.name]=n,q.messages&&(p.messages[a.name]=e.extend(p.messages[a.name],q.messages));break;case"remove":return q?(k={},e.each(q.split(/\s/),function(g,h){k[h]=n[h],delete n[h],"required"===h&&e(a).removeAttr("aria-required")}),k):(delete o[a.name],n)}}return m=e.validator.normalizeRules(e.extend({},e.validator.classRules(a),e.validator.attributeRules(a),e.validator.dataRules(a),e.validator.staticRules(a)),a),m.required&&(l=m.required,delete m.required,m=e.extend({required:l},m),e(a).attr("aria-required","true")),m.remote&&(l=m.remote,delete m.remote,m=e.extend(m,{remote:l})),m}}}),e.extend(e.expr[":"],{blank:function(a){return !e.trim(""+e(a).val())},filled:function(a){var g=e(a).val();return null!==g&&!!e.trim(""+g)},unchecked:function(a){return !e(a).prop("checked")}}),e.validator=function(a,g){this.settings=e.extend(!0,{},e.validator.defaults,a),this.currentForm=g,this.init()},e.validator.format=function(a,g){return 1===arguments.length?function(){var b=e.makeArray(arguments);return b.unshift(a),e.validator.format.apply(this,b)}:void 0===g?a:(arguments.length>2&&g.constructor!==Array&&(g=e.makeArray(arguments).slice(1)),g.constructor!==Array&&(g=[g]),e.each(g,function(b,h){a=a.replace(new RegExp("\\{"+b+"\\}","g"),function(){return h})}),a)},e.extend(e.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",pendingClass:"pending",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:e([]),errorLabelContainer:e([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(b){this.lastActive=b,this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,b,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(b)))},onfocusout:function(b){this.checkable(b)||!(b.name in this.submitted)&&this.optional(b)||this.element(b)},onkeyup:function(a,h){var g=[16,17,18,20,35,36,37,38,39,40,45,144,225];9===h.which&&""===this.elementValue(a)||-1!==e.inArray(h.keyCode,g)||(a.name in this.submitted||a.name in this.invalid)&&this.element(a)},onclick:function(b){b.name in this.submitted?this.element(b):b.parentNode.name in this.submitted&&this.element(b.parentNode)},highlight:function(a,h,g){"radio"===a.type?this.findByName(a.name).addClass(h).removeClass(g):e(a).addClass(h).removeClass(g)},unhighlight:function(a,h,g){"radio"===a.type?this.findByName(a.name).removeClass(h).addClass(g):e(a).removeClass(h).addClass(g)}},setDefaults:function(a){e.extend(e.validator.defaults,a)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date ( ISO ).",number:"Please enter a valid number.",digits:"Please enter only digits.",equalTo:"Please enter the same value again.",maxlength:e.validator.format("Please enter no more than {0} characters."),minlength:e.validator.format("Please enter at least {0} characters."),rangelength:e.validator.format("Please enter a value between {0} and {1} characters long."),range:e.validator.format("Please enter a value between {0} and {1}."),max:e.validator.format("Please enter a value less than or equal to {0}."),min:e.validator.format("Please enter a value greater than or equal to {0}."),step:e.validator.format("Please enter a multiple of {0}.")},autoCreateRanges:!1,prototype:{init:function(){function a(i){var l=e.data(this.form,"validator"),k="on"+i.type.replace(/^validate/,""),j=l.settings;j[k]&&!e(this).is(j.ignore)&&j[k].call(l,this,i)}this.labelContainer=e(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||e(this.currentForm),this.containers=e(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var h,g=this.groups={};e.each(this.settings.groups,function(i,j){"string"==typeof j&&(j=j.split(/\s/)),e.each(j,function(b,k){g[k]=i})}),h=this.settings.rules,e.each(h,function(c,i){h[c]=e.validator.normalizeRule(i)}),e(this.currentForm).on("focusin.validate focusout.validate keyup.validate",":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'], [type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox'], [contenteditable]",a).on("click.validate","select, option, [type='radio'], [type='checkbox']",a),this.settings.invalidHandler&&e(this.currentForm).on("invalid-form.validate",this.settings.invalidHandler),e(this.currentForm).find("[required], [data-rule-required], .required").attr("aria-required","true")},form:function(){return this.checkForm(),e.extend(this.submitted,this.errorMap),this.invalid=e.extend({},this.errorMap),this.valid()||e(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var g=0,c=this.currentElements=this.elements();c[g];g++){this.check(c[g])}return this.valid()},element:function(a){var n,m,l=this.clean(a),k=this.validationTargetFor(l),j=this,i=!0;return void 0===k?delete this.invalid[l.name]:(this.prepareElement(k),this.currentElements=e(k),m=this.groups[k.name],m&&e.each(this.groups,function(g,c){c===m&&g!==k.name&&(l=j.validationTargetFor(j.clean(j.findByName(g))),l&&l.name in j.invalid&&(j.currentElements.push(l),i=i&&j.check(l)))}),n=this.check(k)!==!1,i=i&&n,n?this.invalid[k.name]=!1:this.invalid[k.name]=!0,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),e(a).attr("aria-invalid",!n)),i},showErrors:function(a){if(a){var g=this;e.extend(this.errorMap,a),this.errorList=e.map(this.errorMap,function(h,c){return{message:h,element:g.findByName(c)[0]}}),this.successList=e.grep(this.successList,function(b){return !(b.name in a)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){e.fn.resetForm&&e(this.currentForm).resetForm(),this.invalid={},this.submitted={},this.prepareForm(),this.hideErrors();var a=this.elements().removeData("previousValue").removeAttr("aria-invalid");this.resetElements(a)},resetElements:function(g){var c;if(this.settings.unhighlight){for(c=0;g[c];c++){this.settings.unhighlight.call(this,g[c],this.settings.errorClass,""),this.findByName(g[c].name).removeClass(this.settings.validClass)}}else{g.removeClass(this.settings.errorClass).removeClass(this.settings.validClass)}},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(h){var g,i=0;for(g in h){h[g]&&i++}return i},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(b){b.not(this.containers).text(""),this.addWrapper(b).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid){try{e(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(a){}}},findLastActive:function(){var a=this.lastActive;return a&&1===e.grep(this.errorList,function(b){return b.element.name===a.name}).length&&a},elements:function(){var a=this,g={};return e(this.currentForm).find("input, select, textarea, [contenteditable]").not(":submit, :reset, :image, :disabled").not(this.settings.ignore).filter(function(){var b=this.name||e(this).attr("name");return !b&&a.settings.debug&&window.console&&console.error("%o has no name assigned",this),this.hasAttribute("contenteditable")&&(this.form=e(this).closest("form")[0]),b in g||!a.objectLength(e(this).rules())?!1:(g[b]=!0,!0)})},clean:function(a){return e(a)[0]},errors:function(){var a=this.settings.errorClass.split(" ").join(".");return e(this.settings.errorElement+"."+a,this.errorContext)},resetInternals:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=e([]),this.toHide=e([])},reset:function(){this.resetInternals(),this.currentElements=e([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(b){this.reset(),this.toHide=this.errorsFor(b)},elementValue:function(a){var j,i,h=e(a),g=a.type;return"radio"===g||"checkbox"===g?this.findByName(a.name).filter(":checked").val():"number"===g&&"undefined"!=typeof a.validity?a.validity.badInput?"NaN":h.val():(j=a.hasAttribute("contenteditable")?h.text():h.val(),"file"===g?"C:\\fakepath\\"===j.substr(0,12)?j.substr(12):(i=j.lastIndexOf("/"),i>=0?j.substr(i+1):(i=j.lastIndexOf("\\"),i>=0?j.substr(i+1):j)):"string"==typeof j?j.replace(/\r/g,""):j)},check:function(r){r=this.validationTargetFor(this.clean(r));var q,p,o,n=e(r).rules(),m=e.map(n,function(g,c){return c}).length,l=!1,k=this.elementValue(r);if("function"==typeof n.normalizer){if(k=n.normalizer.call(r,k),"string"!=typeof k){throw new TypeError("The normalizer should return a string value.")}delete n.normalizer}for(p in n){o={method:p,parameters:n[p]};try{if(q=e.validator.methods[p].call(this,k,r,o.parameters),"dependency-mismatch"===q&&1===m){l=!0;continue}if(l=!1,"pending"===q){return void (this.toHide=this.toHide.not(this.errorsFor(r)))}if(!q){return this.formatAndAdd(r,o),!1}}catch(a){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+r.id+", check the '"+o.method+"' method.",a),a instanceof TypeError&&(a.message+=".  Exception occurred when checking element "+r.id+", check the '"+o.method+"' method."),a}}if(!l){return this.objectLength(n)&&this.successList.push(r),!0}},customDataMessage:function(a,g){return e(a).data("msg"+g.charAt(0).toUpperCase()+g.substring(1).toLowerCase())||e(a).data("msg")},customMessage:function(h,g){var i=this.settings.messages[h];return i&&(i.constructor===String?i:i[g])},findDefined:function(){for(var b=0;b<arguments.length;b++){if(void 0!==arguments[b]){return arguments[b]}}},defaultMessage:function(a,i){var h=this.findDefined(this.customMessage(a.name,i.method),this.customDataMessage(a,i.method),!this.settings.ignoreTitle&&a.title||void 0,e.validator.messages[i.method],"<strong>Warning: No message defined for "+a.name+"</strong>"),g=/\$?\{(\d+)\}/g;return"function"==typeof h?h=h.call(this,i.parameters,a):g.test(h)&&(h=e.validator.format(h.replace(g,"{$1}"),i.parameters)),h},formatAndAdd:function(h,g){var i=this.defaultMessage(h,g);this.errorList.push({message:i,element:h,method:g.method}),this.errorMap[h.name]=i,this.submitted[h.name]=i},addWrapper:function(b){return this.settings.wrapper&&(b=b.add(b.parent(this.settings.wrapper))),b},defaultShowErrors:function(){var h,g,i;for(h=0;this.errorList[h];h++){i=this.errorList[h],this.settings.highlight&&this.settings.highlight.call(this,i.element,this.settings.errorClass,this.settings.validClass),this.showLabel(i.element,i.message)}if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success){for(h=0;this.successList[h];h++){this.showLabel(this.successList[h])}}if(this.settings.unhighlight){for(h=0,g=this.validElements();g[h];h++){this.settings.unhighlight.call(this,g[h],this.settings.errorClass,this.settings.validClass)}}this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return e(this.errorList).map(function(){return this.element})},showLabel:function(r,q){var p,o,n,m,l=this.errorsFor(r),k=this.idOrName(r),a=e(r).attr("aria-describedby");l.length?(l.removeClass(this.settings.validClass).addClass(this.settings.errorClass),l.html(q)):(l=e("<"+this.settings.errorElement+">").attr("id",k+"-error").addClass(this.settings.errorClass).html(q||""),p=l,this.settings.wrapper&&(p=l.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(p):this.settings.errorPlacement?this.settings.errorPlacement(p,e(r)):p.insertAfter(r),l.is("label")?l.attr("for",k):0===l.parents("label[for='"+this.escapeCssMeta(k)+"']").length&&(n=l.attr("id"),a?a.match(new RegExp("\\b"+this.escapeCssMeta(n)+"\\b"))||(a+=" "+n):a=n,e(r).attr("aria-describedby",a),o=this.groups[r.name],o&&(m=this,e.each(m.groups,function(g,h){h===o&&e("[name='"+m.escapeCssMeta(g)+"']",m.currentForm).attr("aria-describedby",l.attr("id"))})))),!q&&this.settings.success&&(l.text(""),"string"==typeof this.settings.success?l.addClass(this.settings.success):this.settings.success(l,r)),this.toShow=this.toShow.add(l)},errorsFor:function(a){var i=this.escapeCssMeta(this.idOrName(a)),h=e(a).attr("aria-describedby"),g="label[for='"+i+"'], label[for='"+i+"'] *";return h&&(g=g+", #"+this.escapeCssMeta(h).replace(/\s+/g,", #")),this.errors().filter(g)},escapeCssMeta:function(b){return b.replace(/([\\!"#$%&'()*+,./:;<=>?@\[\]^`{|}~])/g,"\\$1")},idOrName:function(b){return this.groups[b.name]||(this.checkable(b)?b.name:b.id||b.name)},validationTargetFor:function(a){return this.checkable(a)&&(a=this.findByName(a.name)),e(a).not(this.settings.ignore)[0]},checkable:function(b){return/radio|checkbox/i.test(b.type)},findByName:function(a){return e(this.currentForm).find("[name='"+this.escapeCssMeta(a)+"']")},getLength:function(a,g){switch(g.nodeName.toLowerCase()){case"select":return e("option:selected",g).length;case"input":if(this.checkable(g)){return this.findByName(g.name).filter(":checked").length}}return a.length},depend:function(g,c){return this.dependTypes[typeof g]?this.dependTypes[typeof g](g,c):!0},dependTypes:{"boolean":function(b){return b},string:function(a,g){return !!e(a,g.form).length},"function":function(g,c){return g(c)}},optional:function(a){var g=this.elementValue(a);return !e.validator.methods.required.call(this,g,a)&&"dependency-mismatch"},startRequest:function(a){this.pending[a.name]||(this.pendingRequest++,e(a).addClass(this.settings.pendingClass),this.pending[a.name]=!0)},stopRequest:function(a,g){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[a.name],e(a).removeClass(this.settings.pendingClass),g&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(e(this.currentForm).submit(),this.formSubmitted=!1):!g&&0===this.pendingRequest&&this.formSubmitted&&(e(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(a,g){return e.data(a,"previousValue")||e.data(a,"previousValue",{old:null,valid:!0,message:this.defaultMessage(a,{method:g})})},destroy:function(){this.resetForm(),e(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("validate-equalTo-blur")}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(a,g){a.constructor===String?this.classRuleSettings[a]=g:e.extend(this.classRuleSettings,a)},classRules:function(a){var h={},g=e(a).attr("class");return g&&e.each(g.split(" "),function(){this in e.validator.classRuleSettings&&e.extend(h,e.validator.classRuleSettings[this])}),h},normalizeAttributeRule:function(h,g,j,i){/min|max|step/.test(j)&&(null===g||/number|range|text/.test(g))&&(i=Number(i),isNaN(i)&&(i=void 0)),i||0===i?h[j]=i:g===j&&"range"!==g&&(h[j]=!0)},attributeRules:function(a){var l,k,j={},i=e(a),h=a.getAttribute("type");for(l in e.validator.methods){"required"===l?(k=a.getAttribute(l),""===k&&(k=!0),k=!!k):k=i.attr(l),this.normalizeAttributeRule(j,h,l,k)}return j.maxlength&&/-1|2147483647|524288/.test(j.maxlength)&&delete j.maxlength,j},dataRules:function(a){var l,k,j={},i=e(a),h=a.getAttribute("type");for(l in e.validator.methods){k=i.data("rule"+l.charAt(0).toUpperCase()+l.substring(1).toLowerCase()),this.normalizeAttributeRule(j,h,l,k)}return j},staticRules:function(a){var h={},g=e.data(a.form,"validator");return g.settings.rules&&(h=e.validator.normalizeRule(g.settings.rules[a.name])||{}),h},normalizeRules:function(a,g){return e.each(a,function(h,c){if(c===!1){return void delete a[h]}if(c.param||c.depends){var b=!0;switch(typeof c.depends){case"string":b=!!e(c.depends,g.form).length;break;case"function":b=c.depends.call(g,g)}b?a[h]=void 0!==c.param?c.param:!0:(e.data(g.form,"validator").resetElements(e(g)),delete a[h])}}),e.each(a,function(c,b){a[c]=e.isFunction(b)&&"normalizer"!==c?b(g):b}),e.each(["minlength","maxlength"],function(){a[this]&&(a[this]=Number(a[this]))}),e.each(["rangelength","range"],function(){var b;a[this]&&(e.isArray(a[this])?a[this]=[Number(a[this][0]),Number(a[this][1])]:"string"==typeof a[this]&&(b=a[this].replace(/[\[\]]/g,"").split(/[\s,]+/),a[this]=[Number(b[0]),Number(b[1])]))}),e.validator.autoCreateRanges&&(null!=a.min&&null!=a.max&&(a.range=[a.min,a.max],delete a.min,delete a.max),null!=a.minlength&&null!=a.maxlength&&(a.rangelength=[a.minlength,a.maxlength],delete a.minlength,delete a.maxlength)),a},normalizeRule:function(a){if("string"==typeof a){var g={};e.each(a.split(/\s/),function(){g[this]=!0}),a=g}return a},addMethod:function(a,h,g){e.validator.methods[a]=h,e.validator.messages[a]=void 0!==g?g:e.validator.messages[a],h.length<3&&e.validator.addClassRules(a,e.validator.normalizeRule(a))},methods:{required:function(a,i,h){if(!this.depend(h,i)){return"dependency-mismatch"}if("select"===i.nodeName.toLowerCase()){var g=e(i).val();return g&&g.length>0}return this.checkable(i)?this.getLength(a,i)>0:a.length>0},email:function(g,c){return this.optional(c)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(g)},url:function(g,c){return this.optional(c)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(g)},date:function(g,c){return this.optional(c)||!/Invalid|NaN/.test(new Date(g).toString())},dateISO:function(g,c){return this.optional(c)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(g)},number:function(g,c){return this.optional(c)||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(g)},digits:function(g,c){return this.optional(c)||/^\d+$/.test(g)},minlength:function(a,i,h){var g=e.isArray(a)?a.length:this.getLength(a,i);return this.optional(i)||g>=h},maxlength:function(a,i,h){var g=e.isArray(a)?a.length:this.getLength(a,i);return this.optional(i)||h>=g},rangelength:function(a,i,h){var g=e.isArray(a)?a.length:this.getLength(a,i);return this.optional(i)||g>=h[0]&&g<=h[1]},min:function(h,g,i){return this.optional(g)||h>=i},max:function(h,g,i){return this.optional(g)||i>=h},range:function(h,g,i){return this.optional(g)||h>=i[0]&&h<=i[1]},step:function(a,p,o){var n=e(p).attr("type"),m="Step attribute on input type "+n+" is not supported.",l=["text","number","range"],k=new RegExp("\\b"+n+"\\b"),j=n&&!k.test(l.join());if(j){throw new Error(m)}return this.optional(p)||a%o===0},equalTo:function(a,i,h){var g=e(h);return this.settings.onfocusout&&g.not(".validate-equalTo-blur").length&&g.addClass("validate-equalTo-blur").on("blur.validate-equalTo",function(){e(i).valid()}),a===g.val()},remote:function(a,p,o,n){if(this.optional(p)){return"dependency-mismatch"}n="string"==typeof n&&n||"remote";var m,l,k,j=this.previousValue(p,n);return this.settings.messages[p.name]||(this.settings.messages[p.name]={}),j.originalMessage=j.originalMessage||this.settings.messages[p.name][n],this.settings.messages[p.name][n]=j.message,o="string"==typeof o&&{url:o}||o,k=e.param(e.extend({data:a},o.data)),j.old===k?j.valid:(j.old=k,m=this,this.startRequest(p),l={},l[p.name]=a,e.ajax(e.extend(!0,{mode:"abort",port:"validate"+p.name,dataType:"json",data:l,context:m.currentForm,success:function(b){var r,q,i,c=b===!0||"true"===b;m.settings.messages[p.name][n]=j.originalMessage,c?(i=m.formSubmitted,m.resetInternals(),m.toHide=m.errorsFor(p),m.formSubmitted=i,m.successList.push(p),m.invalid[p.name]=!1,m.showErrors()):(r={},q=b||m.defaultMessage(p,{method:n,parameters:a}),r[p.name]=j.message=q,m.invalid[p.name]=!0,m.showErrors(r)),j.valid=c,m.stopRequest(p,c)}},o)),"pending")}}});var d,f={};e.ajaxPrefilter?e.ajaxPrefilter(function(g,c,i){var h=g.port;"abort"===g.mode&&(f[h]&&f[h].abort(),f[h]=i)}):(d=e.ajax,e.ajax=function(c){var b=("mode" in c?c:e.ajaxSettings).mode,a=("port" in c?c:e.ajaxSettings).port;return"abort"===b?(f[a]&&f[a].abort(),f[a]=d.apply(this,arguments),f[a]):d.apply(this,arguments)})});(function(a){if(typeof define==="function"&&define.amd){define(["jquery"],function(b){return a(b)})}else{if(typeof module==="object"&&typeof module.exports==="object"){exports=a(require("jquery"))}else{a(jQuery)}}})(function(f){f.easing.jswing=f.easing.swing;var h=Math.pow,j=Math.sqrt,i=Math.sin,k=Math.cos,l=Math.PI,g=1.70158,e=g*1.525,d=g+1,c=2*l/3,b=2*l/4.5;function a(m){var n=7.5625,o=2.75;if(m<1/o){return n*m*m}else{if(m<2/o){return n*(m-=1.5/o)*m+0.75}else{if(m<2.5/o){return n*(m-=2.25/o)*m+0.9375}else{return n*(m-=2.625/o)*m+0.984375}}}}f.extend(f.easing,{def:"easeOutQuad",swing:function(m){return f.easing[f.easing.def](m)},easeInQuad:function(m){return m*m},easeOutQuad:function(m){return 1-(1-m)*(1-m)},easeInOutQuad:function(m){return m<0.5?2*m*m:1-h(-2*m+2,2)/2},easeInCubic:function(m){return m*m*m},easeOutCubic:function(m){return 1-h(1-m,3)},easeInOutCubic:function(m){return m<0.5?4*m*m*m:1-h(-2*m+2,3)/2},easeInQuart:function(m){return m*m*m*m},easeOutQuart:function(m){return 1-h(1-m,4)},easeInOutQuart:function(m){return m<0.5?8*m*m*m*m:1-h(-2*m+2,4)/2},easeInQuint:function(m){return m*m*m*m*m},easeOutQuint:function(m){return 1-h(1-m,5)},easeInOutQuint:function(m){return m<0.5?16*m*m*m*m*m:1-h(-2*m+2,5)/2},easeInSine:function(m){return 1-k(m*l/2)},easeOutSine:function(m){return i(m*l/2)},easeInOutSine:function(m){return -(k(l*m)-1)/2},easeInExpo:function(m){return m===0?0:h(2,10*m-10)},easeOutExpo:function(m){return m===1?1:1-h(2,-10*m)},easeInOutExpo:function(m){return m===0?0:m===1?1:m<0.5?h(2,20*m-10)/2:(2-h(2,-20*m+10))/2},easeInCirc:function(m){return 1-j(1-h(m,2))},easeOutCirc:function(m){return j(1-h(m-1,2))},easeInOutCirc:function(m){return m<0.5?(1-j(1-h(2*m,2)))/2:(j(1-h(-2*m+2,2))+1)/2},easeInElastic:function(m){return m===0?0:m===1?1:-h(2,10*m-10)*i((m*10-10.75)*c)},easeOutElastic:function(m){return m===0?0:m===1?1:h(2,-10*m)*i((m*10-0.75)*c)+1},easeInOutElastic:function(m){return m===0?0:m===1?1:m<0.5?-(h(2,20*m-10)*i((20*m-11.125)*b))/2:h(2,-20*m+10)*i((20*m-11.125)*b)/2+1},easeInBack:function(m){return d*m*m*m-g*m*m},easeOutBack:function(m){return 1+d*h(m-1,3)+g*h(m-1,2)},easeInOutBack:function(m){return m<0.5?h(2*m,2)*((e+1)*2*m-e)/2:(h(2*m-2,2)*((e+1)*(m*2-2)+e)+2)/2},easeInBounce:function(m){return 1-a(1-m)},easeOutBounce:a,easeInOutBounce:function(m){return m<0.5?(1-a(1-2*m))/2:(1+a(2*m-1))/2}})});



/*! WOW - v1.1.3 - 2016-05-06
* Copyright (c) 2016 Matthieu Aussaguel;*/
(function(){var i,h,n,m,l,k=function(d,c){return function(){return d.apply(c,arguments)}},j=[].indexOf||function(e){for(var d=0,f=this.length;f>d;d++){if(d in this&&this[d]===e){return d}}return -1};h=function(){function b(){}return b.prototype.extend=function(f,e){var o,g;for(o in e){g=e[o],null==f[o]&&(f[o]=g)}return f},b.prototype.isMobile=function(c){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(c)},b.prototype.createEvent=function(g,f,q,p){var o;return null==f&&(f=!1),null==q&&(q=!1),null==p&&(p=null),null!=document.createEvent?(o=document.createEvent("CustomEvent"),o.initCustomEvent(g,f,q,p)):null!=document.createEventObject?(o=document.createEventObject(),o.eventType=g):o.eventName=g,o},b.prototype.emitEvent=function(d,c){return null!=d.dispatchEvent?d.dispatchEvent(c):c in (null!=d)?d[c]():"on"+c in (null!=d)?d["on"+c]():void 0},b.prototype.addEvent=function(e,d,f){return null!=e.addEventListener?e.addEventListener(d,f,!1):null!=e.attachEvent?e.attachEvent("on"+d,f):e[d]=f},b.prototype.removeEvent=function(e,d,f){return null!=e.removeEventListener?e.removeEventListener(d,f,!1):null!=e.detachEvent?e.detachEvent("on"+d,f):delete e[d]},b.prototype.innerHeight=function(){return"innerHeight" in window?window.innerHeight:document.documentElement.clientHeight},b}(),n=this.WeakMap||this.MozWeakMap||(n=function(){function b(){this.keys=[],this.values=[]}return b.prototype.get=function(o){var g,s,r,q,p;for(p=this.keys,g=r=0,q=p.length;q>r;g=++r){if(s=p[g],s===o){return this.values[g]}}},b.prototype.set=function(p,o){var u,t,s,r,q;for(q=this.keys,u=s=0,r=q.length;r>s;u=++s){if(t=q[u],t===p){return void (this.values[u]=o)}}return this.keys.push(p),this.values.push(o)},b}()),i=this.MutationObserver||this.WebkitMutationObserver||this.MozMutationObserver||(i=function(){function b(){"undefined"!=typeof console&&null!==console&&console.warn("MutationObserver is not supported by your browser."),"undefined"!=typeof console&&null!==console&&console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content.")}return b.notSupported=!0,b.prototype.observe=function(){},b}()),m=this.getComputedStyle||function(d,c){return this.getPropertyValue=function(a){var e;return"float"===a&&(a="styleFloat"),l.test(a)&&a.replace(l,function(g,f){return f.toUpperCase()}),(null!=(e=d.currentStyle)?e[a]:void 0)||null},this},l=/(\-([a-z]){1})/g,this.WOW=function(){function a(b){null==b&&(b={}),this.scrollCallback=k(this.scrollCallback,this),this.scrollHandler=k(this.scrollHandler,this),this.resetAnimation=k(this.resetAnimation,this),this.start=k(this.start,this),this.scrolled=!0,this.config=this.util().extend(b,this.defaults),null!=b.scrollContainer&&(this.config.scrollContainer=document.querySelector(b.scrollContainer)),this.animationNameCache=new n,this.wowEvent=this.util().createEvent(this.config.boxClass)}return a.prototype.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0,callback:null,scrollContainer:null},a.prototype.init=function(){var b;return this.element=window.document.documentElement,"interactive"===(b=document.readyState)||"complete"===b?this.start():this.util().addEvent(document,"DOMContentLoaded",this.start),this.finished=[]},a.prototype.start=function(){var f,p,o,g;if(this.stopped=!1,this.boxes=function(){var b,s,r,q;for(r=this.element.querySelectorAll("."+this.config.boxClass),q=[],b=0,s=r.length;s>b;b++){f=r[b],q.push(f)}return q}.call(this),this.all=function(){var b,s,r,q;for(r=this.boxes,q=[],b=0,s=r.length;s>b;b++){f=r[b],q.push(f)}return q}.call(this),this.boxes.length){if(this.disabled()){this.resetStyle()}else{for(g=this.boxes,p=0,o=g.length;o>p;p++){f=g[p],this.applyStyle(f,!0)}}}return this.disabled()||(this.util().addEvent(this.config.scrollContainer||window,"scroll",this.scrollHandler),this.util().addEvent(window,"resize",this.scrollHandler),this.interval=setInterval(this.scrollCallback,50)),this.config.live?new i(function(b){return function(q){var v,u,t,s,r;for(r=[],v=0,u=q.length;u>v;v++){s=q[v],r.push(function(){var w,e,y,x;for(y=s.addedNodes||[],x=[],w=0,e=y.length;e>w;w++){t=y[w],x.push(this.doSync(t))}return x}.call(b))}return r}}(this)).observe(document.body,{childList:!0,subtree:!0}):void 0},a.prototype.stop=function(){return this.stopped=!0,this.util().removeEvent(this.config.scrollContainer||window,"scroll",this.scrollHandler),this.util().removeEvent(window,"resize",this.scrollHandler),null!=this.interval?clearInterval(this.interval):void 0},a.prototype.sync=function(c){return i.notSupported?this.doSync(this.element):void 0},a.prototype.doSync=function(o){var g,s,r,q,p;if(null==o&&(o=this.element),1===o.nodeType){for(o=o.parentNode||o,q=o.querySelectorAll("."+this.config.boxClass),p=[],s=0,r=q.length;r>s;s++){g=q[s],j.call(this.all,g)<0?(this.boxes.push(g),this.all.push(g),this.stopped||this.disabled()?this.resetStyle():this.applyStyle(g,!0),p.push(this.scrolled=!0)):p.push(void 0)}return p}},a.prototype.show=function(b){return this.applyStyle(b),b.className=b.className+" "+this.config.animateClass,null!=this.config.callback&&this.config.callback(b),this.util().emitEvent(b,this.wowEvent),this.util().addEvent(b,"animationend",this.resetAnimation),this.util().addEvent(b,"oanimationend",this.resetAnimation),this.util().addEvent(b,"webkitAnimationEnd",this.resetAnimation),this.util().addEvent(b,"MSAnimationEnd",this.resetAnimation),b},a.prototype.applyStyle=function(g,f){var q,p,o;return p=g.getAttribute("data-wow-duration"),q=g.getAttribute("data-wow-delay"),o=g.getAttribute("data-wow-iteration"),this.animate(function(b){return function(){return b.customStyle(g,f,p,q,o)}}(this))},a.prototype.animate=function(){return"requestAnimationFrame" in window?function(b){return window.requestAnimationFrame(b)}:function(b){return b()}}(),a.prototype.resetStyle=function(){var g,f,q,p,o;for(p=this.boxes,o=[],f=0,q=p.length;q>f;f++){g=p[f],o.push(g.style.visibility="visible")}return o},a.prototype.resetAnimation=function(d){var c;return d.type.toLowerCase().indexOf("animationend")>=0?(c=d.target||d.srcElement,c.className=c.className.replace(this.config.animateClass,"").trim()):void 0},a.prototype.customStyle=function(g,f,q,p,o){return f&&this.cacheAnimationName(g),g.style.visibility=f?"hidden":"visible",q&&this.vendorSet(g.style,{animationDuration:q}),p&&this.vendorSet(g.style,{animationDelay:p}),o&&this.vendorSet(g.style,{animationIterationCount:o}),this.vendorSet(g.style,{animationName:f?"none":this.cachedAnimationName(g)}),g},a.prototype.vendors=["moz","webkit"],a.prototype.vendorSet=function(o,g){var s,r,q,p;r=[];for(s in g){q=g[s],o[""+s]=q,r.push(function(){var c,t,f,e;for(f=this.vendors,e=[],c=0,t=f.length;t>c;c++){p=f[c],e.push(o[""+p+s.charAt(0).toUpperCase()+s.substr(1)]=q)}return e}.call(this))}return r},a.prototype.vendorCSS=function(o,d){var u,t,s,r,q,p;for(q=m(o),r=q.getPropertyCSSValue(d),s=this.vendors,u=0,t=s.length;t>u;u++){p=s[u],r=r||q.getPropertyCSSValue("-"+p+"-"+d)}return r},a.prototype.animationName=function(e){var d;try{d=this.vendorCSS(e,"animation-name").cssText}catch(f){d=m(e).getPropertyValue("animation-name")}return"none"===d?"":d},a.prototype.cacheAnimationName=function(b){return this.animationNameCache.set(b,this.animationName(b))},a.prototype.cachedAnimationName=function(b){return this.animationNameCache.get(b)},a.prototype.scrollHandler=function(){return this.scrolled=!0},a.prototype.scrollCallback=function(){var b;return !this.scrolled||(this.scrolled=!1,this.boxes=function(){var f,p,o,g;for(o=this.boxes,g=[],f=0,p=o.length;p>f;f++){b=o[f],b&&(this.isVisible(b)?this.show(b):g.push(b))}return g}.call(this),this.boxes.length||this.config.live)?void 0:this.stop()},a.prototype.offsetTop=function(d){for(var c;void 0===d.offsetTop;){d=d.parentNode}for(c=d.offsetTop;d=d.offsetParent;){c+=d.offsetTop}return c},a.prototype.isVisible=function(o){var g,s,r,q,p;return s=o.getAttribute("data-wow-offset")||this.config.offset,p=this.config.scrollContainer&&this.config.scrollContainer.scrollTop||window.pageYOffset,q=p+Math.min(this.element.clientHeight,this.util().innerHeight())-s,r=this.offsetTop(o),g=r+o.clientHeight,q>=r&&g>=p},a.prototype.util=function(){return null!=this._util?this._util:this._util=new h},a.prototype.disabled=function(){return !this.config.mobile&&this.util().isMobile(navigator.userAgent)},a}()}).call(this);!function(a){a.flexslider=function(y,E){var B=a(y);B.vars=a.extend({},a.flexslider.defaults,E);var j=B.vars.namespace,w=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture,F=("ontouchstart" in window||w||window.DocumentTouch&&document instanceof DocumentTouch)&&B.vars.touch,b="click touchend MSPointerUp keyup",h="",q,A="vertical"===B.vars.direction,z=B.vars.reverse,D=B.vars.itemWidth>0,C="fade"===B.vars.animation,g=""!==B.vars.asNavFor,k={},x=!0;a.data(y,"flexslider",B),k={init:function(){B.animating=!1,B.currentSlide=parseInt(B.vars.startAt?B.vars.startAt:0,10),isNaN(B.currentSlide)&&(B.currentSlide=0),B.animatingTo=B.currentSlide,B.atEnd=0===B.currentSlide||B.currentSlide===B.last,B.containerSelector=B.vars.selector.substr(0,B.vars.selector.search(" ")),B.slides=a(B.vars.selector,B),B.container=a(B.containerSelector,B),B.count=B.slides.length,B.syncExists=a(B.vars.sync).length>0,"slide"===B.vars.animation&&(B.vars.animation="swing"),B.prop=A?"top":"marginLeft",B.args={},B.manualPause=!1,B.stopped=!1,B.started=!1,B.startTimeout=null,B.transitions=!B.vars.video&&!C&&B.vars.useCSS&&function(){var d=document.createElement("div"),c=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var f in c){if(void 0!==d.style[c[f]]){return B.pfx=c[f].replace("Perspective","").toLowerCase(),B.prop="-"+B.pfx+"-transform",!0}}return !1}(),B.ensureAnimationEnd="",""!==B.vars.controlsContainer&&(B.controlsContainer=a(B.vars.controlsContainer).length>0&&a(B.vars.controlsContainer)),""!==B.vars.manualControls&&(B.manualControls=a(B.vars.manualControls).length>0&&a(B.vars.manualControls)),B.vars.randomize&&(B.slides.sort(function(){return Math.round(Math.random())-0.5}),B.container.empty().append(B.slides)),B.doMath(),B.setup("init"),B.vars.controlNav&&k.controlNav.setup(),B.vars.directionNav&&k.directionNav.setup(),B.vars.keyboard&&(1===a(B.containerSelector).length||B.vars.multipleKeyboard)&&a(document).bind("keyup",function(d){var c=d.keyCode;if(!B.animating&&(39===c||37===c)){var f=39===c?B.getTarget("next"):37===c?B.getTarget("prev"):!1;B.flexAnimate(f,B.vars.pauseOnAction)}}),B.vars.mousewheel&&B.bind("mousewheel",function(l,d,m,c){l.preventDefault();var f=B.getTarget(0>d?"next":"prev");B.flexAnimate(f,B.vars.pauseOnAction)}),B.vars.pausePlay&&k.pausePlay.setup(),B.vars.slideshow&&B.vars.pauseInvisible&&k.pauseInvisible.init(),B.vars.slideshow&&(B.vars.pauseOnHover&&B.hover(function(){B.manualPlay||B.manualPause||B.pause()},function(){B.manualPause||B.manualPlay||B.stopped||B.play()}),B.vars.pauseInvisible&&k.pauseInvisible.isHidden()||(B.vars.initDelay>0?B.startTimeout=setTimeout(B.play,B.vars.initDelay):B.play())),g&&k.asNav.setup(),F&&B.vars.touch&&k.touch(),(!C||C&&B.vars.smoothHeight)&&a(window).bind("resize orientationchange focus",k.resize),B.find("img").attr("draggable","false"),setTimeout(function(){B.vars.start(B)},200)},asNav:{setup:function(){B.asNav=!0,B.animatingTo=Math.floor(B.currentSlide/B.move),B.currentItem=B.currentSlide,B.slides.removeClass(j+"active-slide").eq(B.currentItem).addClass(j+"active-slide"),w?(y._slider=B,B.slides.each(function(){var c=this;c._gesture=new MSGesture,c._gesture.target=c,c.addEventListener("MSPointerDown",function(d){d.preventDefault(),d.currentTarget._gesture&&d.currentTarget._gesture.addPointer(d.pointerId)},!1),c.addEventListener("MSGestureTap",function(f){f.preventDefault();var d=a(this),i=d.index();a(B.vars.asNavFor).data("flexslider").animating||d.hasClass("active")||(B.direction=B.currentItem<i?"next":"prev",B.flexAnimate(i,B.vars.pauseOnAction,!1,!0,!0))})})):B.slides.on(b,function(l){l.preventDefault();var d=a(this),c=d.index(),f=d.offset().left-a(B).scrollLeft();0>=f&&d.hasClass(j+"active-slide")?B.flexAnimate(B.getTarget("prev"),!0):a(B.vars.asNavFor).data("flexslider").animating||d.hasClass(j+"active-slide")||(B.direction=B.currentItem<c?"next":"prev",B.flexAnimate(c,B.vars.pauseOnAction,!1,!0,!0))})}},controlNav:{setup:function(){B.manualControls?k.controlNav.setupManual():k.controlNav.setupPaging()},setupPaging:function(){var o="thumbnails"===B.vars.controlNav?"control-thumbs":"control-paging",m=1,f,n;if(B.controlNavScaffold=a('<ol class="'+j+"control-nav "+j+o+'"></ol>'),B.pagingCount>1){for(var d=0;d<B.pagingCount;d++){if(n=B.slides.eq(d),f="thumbnails"===B.vars.controlNav?'<img src="'+n.attr("data-thumb")+'"/>':"<a>"+m+"</a>","thumbnails"===B.vars.controlNav&&!0===B.vars.thumbCaptions){var p=n.attr("data-thumbcaption");""!=p&&void 0!=p&&(f+='<span class="'+j+'caption">'+p+"</span>")}B.controlNavScaffold.append("<li>"+f+"</li>"),m++}}B.controlsContainer?a(B.controlsContainer).append(B.controlNavScaffold):B.append(B.controlNavScaffold),k.controlNav.set(),k.controlNav.active(),B.controlNavScaffold.delegate("a, img",b,function(r){if(r.preventDefault(),""===h||h===r.type){var l=a(this),c=B.controlNav.index(l);l.hasClass(j+"active")||(B.direction=c>B.currentSlide?"next":"prev",B.flexAnimate(c,B.vars.pauseOnAction))}""===h&&(h=r.type),k.setToClearWatchedEvent()})},setupManual:function(){B.controlNav=B.manualControls,k.controlNav.active(),B.controlNav.bind(b,function(f){if(f.preventDefault(),""===h||h===f.type){var d=a(this),c=B.controlNav.index(d);d.hasClass(j+"active")||(B.direction=c>B.currentSlide?"next":"prev",B.flexAnimate(c,B.vars.pauseOnAction))}""===h&&(h=f.type),k.setToClearWatchedEvent()})},set:function(){var c="thumbnails"===B.vars.controlNav?"img":"a";B.controlNav=a("."+j+"control-nav li "+c,B.controlsContainer?B.controlsContainer:B)},active:function(){B.controlNav.removeClass(j+"active").eq(B.animatingTo).addClass(j+"active")},update:function(d,c){B.pagingCount>1&&"add"===d?B.controlNavScaffold.append(a("<li><a>"+B.count+"</a></li>")):1===B.pagingCount?B.controlNavScaffold.find("li").remove():B.controlNav.eq(c).closest("li").remove(),k.controlNav.set(),B.pagingCount>1&&B.pagingCount!==B.controlNav.length?B.update(c,d):k.controlNav.active()}},directionNav:{setup:function(){var c=a('<ul class="'+j+'direction-nav"><li class="'+j+'nav-prev"><a class="'+j+'prev" href="#">'+B.vars.prevText+'</a></li><li class="'+j+'nav-next"><a class="'+j+'next" href="#">'+B.vars.nextText+"</a></li></ul>");B.controlsContainer?(a(B.controlsContainer).append(c),B.directionNav=a("."+j+"direction-nav li a",B.controlsContainer)):(B.append(c),B.directionNav=a("."+j+"direction-nav li a",B)),k.directionNav.update(),B.directionNav.bind(b,function(f){f.preventDefault();var d;(""===h||h===f.type)&&(d=B.getTarget(a(this).hasClass(j+"next")?"next":"prev"),B.flexAnimate(d,B.vars.pauseOnAction)),""===h&&(h=f.type),k.setToClearWatchedEvent()})},update:function(){var c=j+"disabled";1===B.pagingCount?B.directionNav.addClass(c).attr("tabindex","-1"):B.vars.animationLoop?B.directionNav.removeClass(c).removeAttr("tabindex"):0===B.animatingTo?B.directionNav.removeClass(c).filter("."+j+"prev").addClass(c).attr("tabindex","-1"):B.animatingTo===B.last?B.directionNav.removeClass(c).filter("."+j+"next").addClass(c).attr("tabindex","-1"):B.directionNav.removeClass(c).removeAttr("tabindex")}},pausePlay:{setup:function(){var c=a('<div class="'+j+'pauseplay"><a></a></div>');B.controlsContainer?(B.controlsContainer.append(c),B.pausePlay=a("."+j+"pauseplay a",B.controlsContainer)):(B.append(c),B.pausePlay=a("."+j+"pauseplay a",B)),k.pausePlay.update(B.vars.slideshow?j+"pause":j+"play"),B.pausePlay.bind(b,function(d){d.preventDefault(),(""===h||h===d.type)&&(a(this).hasClass(j+"pause")?(B.manualPause=!0,B.manualPlay=!1,B.pause()):(B.manualPause=!1,B.manualPlay=!0,B.play())),""===h&&(h=d.type),k.setToClearWatchedEvent()})},update:function(c){"play"===c?B.pausePlay.removeClass(j+"pause").addClass(j+"play").html(B.vars.playText):B.pausePlay.removeClass(j+"play").addClass(j+"pause").html(B.vars.pauseText)}},touch:function(){function O(f){B.animating?f.preventDefault():(window.navigator.msPointerEnabled||1===f.touches.length)&&(B.pause(),I=A?B.h:B.w,G=Number(new Date),M=f.touches[0].pageX,K=f.touches[0].pageY,J=D&&z&&B.animatingTo===B.last?0:D&&z?B.limit-(B.itemW+B.vars.itemMargin)*B.move*B.animatingTo:D&&B.currentSlide===B.last?B.limit:D?(B.itemW+B.vars.itemMargin)*B.move*B.currentSlide:z?(B.last-B.currentSlide+B.cloneOffset)*I:(B.currentSlide+B.cloneOffset)*I,d=A?K:M,u=A?M:K,y.addEventListener("touchmove",i,!1),y.addEventListener("touchend",P,!1))}function i(l){M=l.touches[0].pageX,K=l.touches[0].pageY,H=A?d-K:d-M,L=A?Math.abs(H)<Math.abs(M-u):Math.abs(H)<Math.abs(K-u);var f=500;(!L||Number(new Date)-G>f)&&(l.preventDefault(),!C&&B.transitions&&(B.vars.animationLoop||(H/=0===B.currentSlide&&0>H||B.currentSlide===B.last&&H>0?Math.abs(H)/I+2:1),B.setProps(J+H,"setTouch")))}function P(l){if(y.removeEventListener("touchmove",i,!1),B.animatingTo===B.currentSlide&&!L&&null!==H){var f=z?-H:H,m=B.getTarget(f>0?"next":"prev");B.canAdvance(m)&&(Number(new Date)-G<550&&Math.abs(f)>50||Math.abs(f)>I/2)?B.flexAnimate(m,B.vars.pauseOnAction):C||B.flexAnimate(B.currentSlide,B.vars.pauseOnAction,!0)}y.removeEventListener("touchend",P,!1),d=null,u=null,H=null,J=null}function c(f){f.stopPropagation(),B.animating?f.preventDefault():(B.pause(),y._gesture.addPointer(f.pointerId),N=0,I=A?B.h:B.w,G=Number(new Date),J=D&&z&&B.animatingTo===B.last?0:D&&z?B.limit-(B.itemW+B.vars.itemMargin)*B.move*B.animatingTo:D&&B.currentSlide===B.last?B.limit:D?(B.itemW+B.vars.itemMargin)*B.move*B.currentSlide:z?(B.last-B.currentSlide+B.cloneOffset)*I:(B.currentSlide+B.cloneOffset)*I)}function e(m){m.stopPropagation();var f=m.target._slider;if(f){var o=-m.translationX,l=-m.translationY;return N+=A?l:o,H=N,L=A?Math.abs(N)<Math.abs(-o):Math.abs(N)<Math.abs(-l),m.detail===m.MSGESTURE_FLAG_INERTIA?void setImmediate(function(){y._gesture.stop()}):void ((!L||Number(new Date)-G>500)&&(m.preventDefault(),!C&&f.transitions&&(f.vars.animationLoop||(H=N/(0===f.currentSlide&&0>N||f.currentSlide===f.last&&N>0?Math.abs(N)/I+2:1)),f.setProps(J+H,"setTouch"))))}}function v(m){m.stopPropagation();var l=m.target._slider;if(l){if(l.animatingTo===l.currentSlide&&!L&&null!==H){var f=z?-H:H,o=l.getTarget(f>0?"next":"prev");l.canAdvance(o)&&(Number(new Date)-G<550&&Math.abs(f)>50||Math.abs(f)>I/2)?l.flexAnimate(o,l.vars.pauseOnAction):C||l.flexAnimate(l.currentSlide,l.vars.pauseOnAction,!0)}d=null,u=null,H=null,J=null,N=0}}var d,u,J,I,H,G,L=!1,M=0,K=0,N=0;w?(y.style.msTouchAction="none",y._gesture=new MSGesture,y._gesture.target=y,y.addEventListener("MSPointerDown",c,!1),y._slider=B,y.addEventListener("MSGestureChange",e,!1),y.addEventListener("MSGestureEnd",v,!1)):y.addEventListener("touchstart",O,!1)},resize:function(){!B.animating&&B.is(":visible")&&(D||B.doMath(),C?k.smoothHeight():D?(B.slides.width(B.computedW),B.update(B.pagingCount),B.setProps()):A?(B.viewport.height(B.h),B.setProps(B.h,"setTotal")):(B.vars.smoothHeight&&k.smoothHeight(),B.newSlides.width(B.computedW),B.setProps(B.computedW,"setTotal")))},smoothHeight:function(d){if(!A||C){var c=C?B:B.viewport;d?c.animate({height:B.slides.eq(B.animatingTo).height()},d):c.height(B.slides.eq(B.animatingTo).height())}},sync:function(d){var c=a(B.vars.sync).data("flexslider"),f=B.animatingTo;switch(d){case"animate":c.flexAnimate(f,B.vars.pauseOnAction,!1,!0);break;case"play":c.playing||c.asNav||c.play();break;case"pause":c.pause()}},uniqueID:function(c){return c.filter("[id]").add(c.find("[id]")).each(function(){var d=a(this);d.attr("id",d.attr("id")+"_clone")}),c},pauseInvisible:{visProp:null,init:function(){var d=k.pauseInvisible.getHiddenProp();if(d){var c=d.replace(/[H|h]idden/,"")+"visibilitychange";document.addEventListener(c,function(){k.pauseInvisible.isHidden()?B.startTimeout?clearTimeout(B.startTimeout):B.pause():B.started?B.play():B.vars.initDelay>0?setTimeout(B.play,B.vars.initDelay):B.play()})}},isHidden:function(){var c=k.pauseInvisible.getHiddenProp();return c?document[c]:!1},getHiddenProp:function(){var d=["webkit","moz","ms","o"];if("hidden" in document){return"hidden"}for(var c=0;c<d.length;c++){if(d[c]+"Hidden" in document){return d[c]+"Hidden"}}return null}},setToClearWatchedEvent:function(){clearTimeout(q),q=setTimeout(function(){h=""},3000)}},B.flexAnimate=function(G,H,p,c,d){if(B.vars.animationLoop||G===B.currentSlide||(B.direction=G>B.currentSlide?"next":"prev"),g&&1===B.pagingCount&&(B.direction=B.currentItem<G?"next":"prev"),!B.animating&&(B.canAdvance(G,d)||p)&&B.is(":visible")){if(g&&c){var m=a(B.vars.asNavFor).data("flexslider");if(B.atEnd=0===G||G===B.count-1,m.flexAnimate(G,!0,!1,!0,d),B.direction=B.currentItem<G?"next":"prev",m.direction=B.direction,Math.ceil((G+1)/B.visible)-1===B.currentSlide||0===G){return B.currentItem=G,B.slides.removeClass(j+"active-slide").eq(G).addClass(j+"active-slide"),!1}B.currentItem=G,B.slides.removeClass(j+"active-slide").eq(G).addClass(j+"active-slide"),G=Math.floor(G/B.visible)}if(B.animating=!0,B.animatingTo=G,H&&B.pause(),B.vars.before(B),B.syncExists&&!d&&k.sync("animate"),B.vars.controlNav&&k.controlNav.active(),D||B.slides.removeClass(j+"active-slide").eq(G).addClass(j+"active-slide"),B.atEnd=0===G||G===B.last,B.vars.directionNav&&k.directionNav.update(),G===B.last&&(B.vars.end(B),B.vars.animationLoop||B.pause()),C){F?(B.slides.eq(B.currentSlide).css({opacity:0,zIndex:1}),B.slides.eq(G).css({opacity:1,zIndex:2}),B.wrapup(v)):(B.slides.eq(B.currentSlide).css({zIndex:1}).animate({opacity:0},B.vars.animationSpeed,B.vars.easing),B.slides.eq(G).css({zIndex:2}).animate({opacity:1},B.vars.animationSpeed,B.vars.easing,B.wrapup))}else{var v=A?B.slides.filter(":first").height():B.computedW,u,s,n;D?(u=B.vars.itemMargin,n=(B.itemW+u)*B.move*B.animatingTo,s=n>B.limit&&1!==B.visible?B.limit:n):s=0===B.currentSlide&&G===B.count-1&&B.vars.animationLoop&&"next"!==B.direction?z?(B.count+B.cloneOffset)*v:0:B.currentSlide===B.last&&0===G&&B.vars.animationLoop&&"prev"!==B.direction?z?0:(B.count+1)*v:z?(B.count-1-G+B.cloneOffset)*v:(G+B.cloneOffset)*v,B.setProps(s,"",B.vars.animationSpeed),B.transitions?(B.vars.animationLoop&&B.atEnd||(B.animating=!1,B.currentSlide=B.animatingTo),B.container.unbind("webkitTransitionEnd transitionend"),B.container.bind("webkitTransitionEnd transitionend",function(){clearTimeout(B.ensureAnimationEnd),B.wrapup(v)}),clearTimeout(B.ensureAnimationEnd),B.ensureAnimationEnd=setTimeout(function(){B.wrapup(v)},B.vars.animationSpeed+100)):B.container.animate(B.args,B.vars.animationSpeed,B.vars.easing,function(){B.wrapup(v)})}B.vars.smoothHeight&&k.smoothHeight(B.vars.animationSpeed)}},B.wrapup=function(c){C||D||(0===B.currentSlide&&B.animatingTo===B.last&&B.vars.animationLoop?B.setProps(c,"jumpEnd"):B.currentSlide===B.last&&0===B.animatingTo&&B.vars.animationLoop&&B.setProps(c,"jumpStart")),B.animating=!1,B.currentSlide=B.animatingTo,B.vars.after(B)},B.animateSlides=function(){!B.animating&&x&&B.flexAnimate(B.getTarget("next"))},B.pause=function(){clearInterval(B.animatedSlides),B.animatedSlides=null,B.playing=!1,B.vars.pausePlay&&k.pausePlay.update("play"),B.syncExists&&k.sync("pause")},B.play=function(){B.playing&&clearInterval(B.animatedSlides),B.animatedSlides=B.animatedSlides||setInterval(B.animateSlides,B.vars.slideshowSpeed),B.started=B.playing=!0,B.vars.pausePlay&&k.pausePlay.update("pause"),B.syncExists&&k.sync("play")},B.stop=function(){B.pause(),B.stopped=!0},B.canAdvance=function(d,c){var f=g?B.pagingCount-1:B.last;return c?!0:g&&B.currentItem===B.count-1&&0===d&&"prev"===B.direction?!0:g&&0===B.currentItem&&d===B.pagingCount-1&&"next"!==B.direction?!1:d!==B.currentSlide||g?B.vars.animationLoop?!0:B.atEnd&&0===B.currentSlide&&d===f&&"next"!==B.direction?!1:B.atEnd&&B.currentSlide===f&&0===d&&"next"===B.direction?!1:!0:!1},B.getTarget=function(c){return B.direction=c,"next"===c?B.currentSlide===B.last?0:B.currentSlide+1:0===B.currentSlide?B.last:B.currentSlide-1},B.setProps=function(f,d,l){var c=function(){var m=f?f:(B.itemW+B.vars.itemMargin)*B.move*B.animatingTo,e=function(){if(D){return"setTouch"===d?f:z&&B.animatingTo===B.last?0:z?B.limit-(B.itemW+B.vars.itemMargin)*B.move*B.animatingTo:B.animatingTo===B.last?B.limit:m}switch(d){case"setTotal":return z?(B.count-1-B.currentSlide+B.cloneOffset)*f:(B.currentSlide+B.cloneOffset)*f;case"setTouch":return z?f:f;case"jumpEnd":return z?f:B.count*f;case"jumpStart":return z?B.count*f:f;default:return f}}();return -1*e+"px"}();B.transitions&&(c=A?"translate3d(0,"+c+",0)":"translate3d("+c+",0,0)",l=void 0!==l?l/1000+"s":"0s",B.container.css("-"+B.pfx+"-transition-duration",l),B.container.css("transition-duration",l)),B.args[B.prop]=c,(B.transitions||void 0===l)&&B.container.css(B.args),B.container.css("transform",c)},B.setup=function(f){if(C){B.slides.css({width:"100%","float":"left",marginRight:"-100%",position:"relative"}),"init"===f&&(F?B.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+B.vars.animationSpeed/1000+"s ease",zIndex:1}).eq(B.currentSlide).css({opacity:1,zIndex:2}):0==B.vars.fadeFirstSlide?B.slides.css({opacity:0,display:"block",zIndex:1}).eq(B.currentSlide).css({zIndex:2}).css({opacity:1}):B.slides.css({opacity:0,display:"block",zIndex:1}).eq(B.currentSlide).css({zIndex:2}).animate({opacity:1},B.vars.animationSpeed,B.vars.easing)),B.vars.smoothHeight&&k.smoothHeight()}else{var d,c;"init"===f&&(B.viewport=a('<div class="'+j+'viewport"></div>').css({overflow:"hidden",position:"relative"}).appendTo(B).append(B.container),B.cloneCount=0,B.cloneOffset=0,z&&(c=a.makeArray(B.slides).reverse(),B.slides=a(c),B.container.empty().append(B.slides))),B.vars.animationLoop&&!D&&(B.cloneCount=2,B.cloneOffset=1,"init"!==f&&B.container.find(".clone").remove(),B.container.append(k.uniqueID(B.slides.first().clone().addClass("clone")).attr("aria-hidden","true")).prepend(k.uniqueID(B.slides.last().clone().addClass("clone")).attr("aria-hidden","true"))),B.newSlides=a(B.vars.selector,B),d=z?B.count-1-B.currentSlide+B.cloneOffset:B.currentSlide+B.cloneOffset,A&&!D?(B.container.height(200*(B.count+B.cloneCount)+"%").css("position","absolute").width("100%"),setTimeout(function(){B.newSlides.css({display:"block"}),B.doMath(),B.viewport.height(B.h),B.setProps(d*B.h,"init")},"init"===f?100:0)):(B.container.width(200*(B.count+B.cloneCount)+"%"),B.setProps(d*B.computedW,"init"),setTimeout(function(){B.doMath(),B.newSlides.css({width:B.computedW,"float":"left",display:"block"}),B.vars.smoothHeight&&k.smoothHeight()},"init"===f?100:0))}D||B.slides.removeClass(j+"active-slide").eq(B.currentSlide).addClass(j+"active-slide"),B.vars.init(B)},B.doMath=function(){var f=B.slides.first(),d=B.vars.itemMargin,l=B.vars.minItems,c=B.vars.maxItems;B.w=void 0===B.viewport?B.width():B.viewport.width(),B.h=f.height(),B.boxPadding=f.outerWidth()-f.width(),D?(B.itemT=B.vars.itemWidth+d,B.minW=l?l*B.itemT:B.w,B.maxW=c?c*B.itemT-d:B.w,B.itemW=B.minW>B.w?(B.w-d*(l-1))/l:B.maxW<B.w?(B.w-d*(c-1))/c:B.vars.itemWidth>B.w?B.w:B.vars.itemWidth,B.visible=Math.floor(B.w/B.itemW),B.move=B.vars.move>0&&B.vars.move<B.visible?B.vars.move:B.visible,B.pagingCount=Math.ceil((B.count-B.visible)/B.move+1),B.last=B.pagingCount-1,B.limit=1===B.pagingCount?0:B.vars.itemWidth>B.w?B.itemW*(B.count-1)+d*(B.count-1):(B.itemW+d)*B.count-B.w-d):(B.itemW=B.w,B.pagingCount=B.count,B.last=B.count-1),B.computedW=B.itemW-B.boxPadding},B.update=function(d,c){B.doMath(),D||(d<B.currentSlide?B.currentSlide+=1:d<=B.currentSlide&&0!==d&&(B.currentSlide-=1),B.animatingTo=B.currentSlide),B.vars.controlNav&&!B.manualControls&&("add"===c&&!D||B.pagingCount>B.controlNav.length?k.controlNav.update("add"):("remove"===c&&!D||B.pagingCount<B.controlNav.length)&&(D&&B.currentSlide>B.last&&(B.currentSlide-=1,B.animatingTo-=1),k.controlNav.update("remove",B.last))),B.vars.directionNav&&k.directionNav.update()},B.addSlide=function(d,c){var f=a(d);B.count+=1,B.last=B.count-1,A&&z?void 0!==c?B.slides.eq(B.count-c).after(f):B.container.prepend(f):void 0!==c?B.slides.eq(c).before(f):B.container.append(f),B.update(c,"add"),B.slides=a(B.vars.selector+":not(.clone)",B),B.setup(),B.vars.added(B)},B.removeSlide=function(d){var c=isNaN(d)?B.slides.index(a(d)):d;B.count-=1,B.last=B.count-1,isNaN(d)?a(d,B.slides).remove():A&&z?B.slides.eq(B.last).remove():B.slides.eq(d).remove(),B.doMath(),B.update(c,"remove"),B.slides=a(B.vars.selector+":not(.clone)",B),B.setup(),B.vars.removed(B)},k.init()},a(window).blur(function(b){focused=!1}).focus(function(b){focused=!0}),a.flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:!1,animationLoop:!0,smoothHeight:!1,startAt:0,slideshow:!0,slideshowSpeed:7000,animationSpeed:600,initDelay:0,randomize:!1,fadeFirstSlide:!0,thumbCaptions:!1,pauseOnAction:!0,pauseOnHover:!1,pauseInvisible:!0,useCSS:!0,touch:!0,video:!1,controlNav:!0,directionNav:!0,prevText:"Previous",nextText:"Next",keyboard:!0,multipleKeyboard:!1,mousewheel:!1,pausePlay:!1,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:1,maxItems:0,move:0,allowOneSlide:!0,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){},init:function(){}},a.fn.flexslider=function(c){if(void 0===c&&(c={}),"object"==typeof c){return this.each(function(){var e=a(this),d=c.selector?c.selector:".slides > li",f=e.find(d);1===f.length&&c.allowOneSlide===!0||0===f.length?(f.fadeIn(400),c.start&&c.start(e)):void 0===e.data("flexslider")&&new a.flexslider(this,c)})}var b=a(this).data("flexslider");switch(c){case"play":b.play();break;case"pause":b.pause();break;case"stop":b.stop();break;case"next":b.flexAnimate(b.getTarget("next"),!0);break;case"prev":case"previous":b.flexAnimate(b.getTarget("prev"),!0);break;default:"number"==typeof c&&b.flexAnimate(c,!0)}}}(jQuery);(function(a,x,i,u){var k=i("html"),g=i(a),e=i(x),j=i.fancybox=function(){j.open.apply(this,arguments)},o=navigator.userAgent.match(/msie/i),d=null,A=x.createTouch!==u,y=function(b){return b&&b.hasOwnProperty&&b instanceof i},c=function(b){return b&&"string"===i.type(b)},z=function(b){return c(b)&&0<b.indexOf("%")},h=function(b,l){var f=parseInt(b,10)||0;l&&z(b)&&(f*=j.getViewport()[l]/100);return Math.ceil(f)},m=function(l,f){return h(l,f)+"px"};i.extend(j,{version:"2.1.5",defaults:{padding:15,margin:20,width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,pixelRatio:1,autoSize:!0,autoHeight:!1,autoWidth:!1,autoResize:!0,autoCenter:!A,fitToView:!0,aspectRatio:!1,topRatio:0.5,leftRatio:0.5,scrolling:"auto",wrapCSS:"",arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,mouseWheel:!0,autoPlay:!1,playSpeed:3000,preload:3,modal:!1,loop:!0,ajax:{dataType:"html",headers:{"X-fancyBox":!0}},iframe:{scrolling:"auto",preload:!0},swf:{wmode:"transparent",allowfullscreen:"true",allowscriptaccess:"always"},keys:{next:{13:"left",34:"up",39:"left",40:"up"},prev:{8:"right",33:"down",37:"right",38:"down"},close:[27],play:[32],toggle:[70]},direction:{next:"left",prev:"right"},scrollOutside:!0,index:0,type:null,href:null,content:null,title:null,tpl:{wrap:'<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>',image:'<img class="fancybox-image" src="{href}" alt="" />',iframe:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen'+(o?' allowtransparency="true"':"")+"></iframe>",error:'<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>',closeBtn:'<a title="Close" class="fancybox-item fancybox-close" href="javascript:;"></a>',next:'<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',prev:'<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>'},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:i.noop,beforeLoad:i.noop,afterLoad:i.noop,beforeShow:i.noop,afterShow:i.noop,beforeChange:i.noop,beforeClose:i.noop,afterClose:i.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(b,f){if(b&&(i.isPlainObject(f)||(f={}),!1!==j.close(!0))){return i.isArray(b)||(b=y(b)?i(b).get():[b]),i.each(b,function(v,w){var q={},t,s,r,n,p;"object"===i.type(w)&&(w.nodeType&&(w=i(w)),y(w)?(q={href:w.data("fancybox-href")||w.attr("href"),title:w.data("fancybox-title")||w.attr("title"),isDom:!0,element:w},i.metadata&&i.extend(!0,q,w.metadata())):q=w);t=f.href||q.href||(c(w)?w:null);s=f.title!==u?f.title:q.title||"";n=(r=f.content||q.content)?"html":f.type||q.type;!n&&q.isDom&&(n=w.data("fancybox-type"),n||(n=(n=w.prop("class").match(/fancybox\.(\w+)/))?n[1]:null));c(t)&&(n||(j.isImage(t)?n="image":j.isSWF(t)?n="swf":"#"===t.charAt(0)?n="inline":c(w)&&(n="html",r=w)),"ajax"===n&&(p=t.split(/\s+/,2),t=p.shift(),p=p.shift()));r||("inline"===n?t?r=i(c(t)?t.replace(/.*(?=#[^\s]+$)/,""):t):q.isDom&&(r=w):"html"===n?r=t:!n&&(!t&&q.isDom)&&(n="inline",r=w));i.extend(q,{href:t,type:n,content:r,title:s,selector:p});b[v]=q}),j.opts=i.extend(!0,{},j.defaults,f),f.keys!==u&&(j.opts.keys=f.keys?i.extend({},j.defaults.keys,f.keys):!1),j.group=b,j._start(j.opts.index)}},cancel:function(){var b=j.coming;b&&!1!==j.trigger("onCancel")&&(j.hideLoading(),j.ajaxLoad&&j.ajaxLoad.abort(),j.ajaxLoad=null,j.imgPreload&&(j.imgPreload.onload=j.imgPreload.onerror=null),b.wrap&&b.wrap.stop(!0,!0).trigger("onReset").remove(),j.coming=null,j.current||j._afterZoomOut(b))},close:function(b){j.cancel();!1!==j.trigger("beforeClose")&&(j.unbindEvents(),j.isActive&&(!j.isOpen||!0===b?(i(".fancybox-wrap").stop(!0).trigger("onReset").remove(),j._afterZoomOut()):(j.isOpen=j.isOpened=!1,j.isClosing=!0,i(".fancybox-item, .fancybox-nav").remove(),j.wrap.stop(!0,!0).removeClass("fancybox-opened"),j.transitions[j.current.closeMethod]())))},play:function(b){var l=function(){clearTimeout(j.player.timer)},f=function(){l();j.current&&j.player.isActive&&(j.player.timer=setTimeout(j.next,j.current.playSpeed))},n=function(){l();e.unbind(".player");j.player.isActive=!1;j.trigger("onPlayEnd")};if(!0===b||!j.player.isActive&&!1!==b){if(j.current&&(j.current.loop||j.current.index<j.group.length-1)){j.player.isActive=!0,e.bind({"onCancel.player beforeClose.player":n,"onUpdate.player":f,"beforeLoad.player":l}),f(),j.trigger("onPlayStart")}}else{n()}},next:function(b){var f=j.current;f&&(c(b)||(b=f.direction.next),j.jumpto(f.index+1,b,"next"))},prev:function(b){var f=j.current;f&&(c(b)||(b=f.direction.prev),j.jumpto(f.index-1,b,"prev"))},jumpto:function(b,l,f){var n=j.current;n&&(b=h(b),j.direction=l||n.direction[b>=n.index?"next":"prev"],j.router=f||"jumpto",n.loop&&(0>b&&(b=n.group.length+b%n.group.length),b%=n.group.length),n.group[b]!==u&&(j.cancel(),j._start(b)))},reposition:function(b,n){var l=j.current,p=l?l.wrap:null,f;p&&(f=j._getPosition(n),b&&"scroll"===b.type?(delete f.position,p.stop(!0,!0).animate(f,200)):(p.css(f),l.pos=i.extend({},l.dim,f)))},update:function(b){var l=b&&b.type,f=!l||"orientationchange"===l;f&&(clearTimeout(d),d=null);j.isOpen&&!d&&(d=setTimeout(function(){var n=j.current;n&&!j.isClosing&&(j.wrap.removeClass("fancybox-tmp"),(f||"load"===l||"resize"===l&&n.autoResize)&&j._setDimension(),"scroll"===l&&n.canShrink||j.reposition(b),j.trigger("onUpdate"),d=null)},f&&!A?0:300))},toggle:function(b){j.isOpen&&(j.current.fitToView="boolean"===i.type(b)?b:!j.current.fitToView,A&&(j.wrap.removeAttr("style").addClass("fancybox-tmp"),j.trigger("onUpdate")),j.update())},hideLoading:function(){e.unbind(".loading");i("#fancybox-loading").remove()},showLoading:function(){var b,f;j.hideLoading();b=i('<div id="fancybox-loading"><div></div></div>').click(j.cancel).appendTo("body");e.bind("keydown.loading",function(l){if(27===(l.which||l.keyCode)){l.preventDefault(),j.cancel()}});j.defaults.fixed||(f=j.getViewport(),b.css({position:"absolute",top:0.5*f.h+f.y,left:0.5*f.w+f.x}))},getViewport:function(){var b=j.current&&j.current.locked||!1,f={x:g.scrollLeft(),y:g.scrollTop()};b?(f.w=b[0].clientWidth,f.h=b[0].clientHeight):(f.w=A&&a.innerWidth?a.innerWidth:g.width(),f.h=A&&a.innerHeight?a.innerHeight:g.height());return f},unbindEvents:function(){j.wrap&&y(j.wrap)&&j.wrap.unbind(".fb");e.unbind(".fb");g.unbind(".fb")},bindEvents:function(){var b=j.current,f;b&&(g.bind("orientationchange.fb"+(A?"":" resize.fb")+(b.autoCenter&&!b.locked?" scroll.fb":""),j.update),(f=b.keys)&&e.bind("keydown.fb",function(n){var p=n.which||n.keyCode,l=n.target||n.srcElement;if(27===p&&j.coming){return !1}!n.ctrlKey&&(!n.altKey&&!n.shiftKey&&!n.metaKey&&(!l||!l.type&&!i(l).is("[contenteditable]")))&&i.each(f,function(r,q){if(1<b.group.length&&q[p]!==u){return j[r](q[p]),n.preventDefault(),!1}if(-1<i.inArray(p,q)){return j[r](),n.preventDefault(),!1}})}),i.fn.mousewheel&&b.mouseWheel&&j.wrap.bind("mousewheel.fb",function(r,s,l,q){for(var p=i(r.target||null),n=!1;p.length&&!n&&!p.is(".fancybox-skin")&&!p.is(".fancybox-wrap");){n=p[0]&&!(p[0].style.overflow&&"hidden"===p[0].style.overflow)&&(p[0].clientWidth&&p[0].scrollWidth>p[0].clientWidth||p[0].clientHeight&&p[0].scrollHeight>p[0].clientHeight),p=i(p).parent()}if(0!==s&&!n&&1<j.group.length&&!b.canShrink){if(0<q||0<l){j.prev(0<q?"down":"left")}else{if(0>q||0>l){j.next(0>q?"up":"right")}}r.preventDefault()}}))},trigger:function(b,l){var f,n=l||j.coming||j.current;if(n){i.isFunction(n[b])&&(f=n[b].apply(n,Array.prototype.slice.call(arguments,1)));if(!1===f){return !1}n.helpers&&i.each(n.helpers,function(q,p){if(p&&j.helpers[q]&&i.isFunction(j.helpers[q][b])){j.helpers[q][b](i.extend(!0,{},j.helpers[q].defaults,p),n)}});e.trigger(b)}},isImage:function(b){return c(b)&&b.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(b){return c(b)&&b.match(/\.(swf)((\?|#).*)?$/i)},_start:function(b){var l={},f,n;b=h(b);f=j.group[b]||null;if(!f){return !1}l=i.extend(!0,{},j.opts,f);f=l.margin;n=l.padding;"number"===i.type(f)&&(l.margin=[f,f,f,f]);"number"===i.type(n)&&(l.padding=[n,n,n,n]);l.modal&&i.extend(!0,l,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}});l.autoSize&&(l.autoWidth=l.autoHeight=!0);"auto"===l.width&&(l.autoWidth=!0);"auto"===l.height&&(l.autoHeight=!0);l.group=j.group;l.index=b;j.coming=l;if(!1===j.trigger("beforeLoad")){j.coming=null}else{n=l.type;f=l.href;if(!n){return j.coming=null,j.current&&j.router&&"jumpto"!==j.router?(j.current.index=b,j[j.router](j.direction)):!1}j.isActive=!0;if("image"===n||"swf"===n){l.autoHeight=l.autoWidth=!1,l.scrolling="visible"}"image"===n&&(l.aspectRatio=!0);"iframe"===n&&A&&(l.scrolling="scroll");l.wrap=i(l.tpl.wrap).addClass("fancybox-"+(A?"mobile":"desktop")+" fancybox-type-"+n+" fancybox-tmp "+l.wrapCSS).appendTo(l.parent||"body");i.extend(l,{skin:i(".fancybox-skin",l.wrap),outer:i(".fancybox-outer",l.wrap),inner:i(".fancybox-inner",l.wrap)});i.each(["Top","Right","Bottom","Left"],function(q,p){l.skin.css("padding"+p,m(l.padding[q]))});j.trigger("onReady");if("inline"===n||"html"===n){if(!l.content||!l.content.length){return j._error("content")}}else{if(!f){return j._error("href")}}"image"===n?j._loadImage():"ajax"===n?j._loadAjax():"iframe"===n?j._loadIframe():j._afterLoad()}},_error:function(b){i.extend(j.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:b,content:j.coming.tpl.error});j._afterLoad()},_loadImage:function(){var b=j.imgPreload=new Image;b.onload=function(){this.onload=this.onerror=null;j.coming.width=this.width/j.opts.pixelRatio;j.coming.height=this.height/j.opts.pixelRatio;j._afterLoad()};b.onerror=function(){this.onload=this.onerror=null;j._error("image")};b.src=j.coming.href;!0!==b.complete&&j.showLoading()},_loadAjax:function(){var b=j.coming;j.showLoading();j.ajaxLoad=i.ajax(i.extend({},b.ajax,{url:b.href,error:function(f,l){j.coming&&"abort"!==l?j._error("ajax",f):j.hideLoading()},success:function(l,f){"success"===f&&(b.content=l,j._afterLoad())}}))},_loadIframe:function(){var b=j.coming,f=i(b.tpl.iframe.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",A?"auto":b.iframe.scrolling).attr("src",b.href);i(b.wrap).bind("onReset",function(){try{i(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(l){}});b.iframe.preload&&(j.showLoading(),f.one("load",function(){i(this).data("ready",1);A||i(this).bind("load.fb",j.update);i(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show();j._afterLoad()}));b.content=f.appendTo(b.inner);b.iframe.preload||j._afterLoad()},_preloadImages:function(){var b=j.group,q=j.current,p=b.length,r=q.preload?Math.min(q.preload,p-1):0,n,l;for(l=1;l<=r;l+=1){n=b[(q.index+l)%p],"image"===n.type&&n.href&&((new Image).src=n.href)}},_afterLoad:function(){var b=j.coming,q=j.current,p,r,f,n,l;j.hideLoading();if(b&&!1!==j.isActive){if(!1===j.trigger("afterLoad",b,q)){b.wrap.stop(!0).trigger("onReset").remove(),j.coming=null}else{q&&(j.trigger("beforeChange",q),q.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove());j.unbindEvents();p=b.content;r=b.type;f=b.scrolling;i.extend(j,{wrap:b.wrap,skin:b.skin,outer:b.outer,inner:b.inner,current:b,previous:q});n=b.href;switch(r){case"inline":case"ajax":case"html":b.selector?p=i("<div>").html(p).find(b.selector):y(p)&&(p.data("fancybox-placeholder")||p.data("fancybox-placeholder",i('<div class="fancybox-placeholder"></div>').insertAfter(p).hide()),p=p.show().detach(),b.wrap.bind("onReset",function(){i(this).find(p).length&&p.hide().replaceAll(p.data("fancybox-placeholder")).data("fancybox-placeholder",!1)}));break;case"image":p=b.tpl.image.replace("{href}",n);break;case"swf":p='<object id="fancybox-swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="'+n+'"></param>',l="",i.each(b.swf,function(t,s){p+='<param name="'+t+'" value="'+s+'"></param>';l+=" "+t+'="'+s+'"'}),p+='<embed src="'+n+'" type="application/x-shockwave-flash" width="100%" height="100%"'+l+"></embed></object>"}(!y(p)||!p.parent().is(b.inner))&&b.inner.append(p);j.trigger("beforeShow");b.inner.css("overflow","yes"===f?"scroll":"no"===f?"hidden":f);j._setDimension();j.reposition();j.isOpen=!1;j.coming=null;j.bindEvents();if(j.isOpened){if(q.prevMethod){j.transitions[q.prevMethod]()}}else{i(".fancybox-wrap").not(b.wrap).stop(!0).trigger("onReset").remove()}j.transitions[j.isOpened?b.nextMethod:b.openMethod]();j._preloadImages()}}},_setDimension:function(){var ad=j.getViewport(),ab=0,aa=!1,ac=!1,aa=j.wrap,W=j.skin,Z=j.inner,Y=j.current,ac=Y.width,X=Y.height,V=Y.minWidth,K=Y.minHeight,U=Y.maxWidth,T=Y.maxHeight,N=Y.scrolling,R=Y.scrollOutside?Y.scrollbarWidth:0,l=Y.margin,f=h(l[1]+l[3]),P=h(l[0]+l[2]),I,b,L,O,S,J,Q,M,w;aa.add(W).add(Z).width("auto").height("auto").removeClass("fancybox-tmp");l=h(W.outerWidth(!0)-W.width());I=h(W.outerHeight(!0)-W.height());b=f+l;L=P+I;O=z(ac)?(ad.w-b)*h(ac)/100:ac;S=z(X)?(ad.h-L)*h(X)/100:X;if("iframe"===Y.type){if(w=Y.content,Y.autoHeight&&1===w.data("ready")){try{w[0].contentWindow.document.location&&(Z.width(O).height(9999),J=w.contents().find("body"),R&&J.css("overflow-x","hidden"),S=J.outerHeight(!0))}catch(E){}}}else{if(Y.autoWidth||Y.autoHeight){Z.addClass("fancybox-tmp"),Y.autoWidth||Z.width(O),Y.autoHeight||Z.height(S),Y.autoWidth&&(O=Z.width()),Y.autoHeight&&(S=Z.height()),Z.removeClass("fancybox-tmp")}}ac=h(O);X=h(S);M=O/S;V=h(z(V)?h(V,"w")-b:V);U=h(z(U)?h(U,"w")-b:U);K=h(z(K)?h(K,"h")-L:K);T=h(z(T)?h(T,"h")-L:T);J=U;Q=T;Y.fitToView&&(U=Math.min(ad.w-b,U),T=Math.min(ad.h-L,T));b=ad.w-f;P=ad.h-P;Y.aspectRatio?(ac>U&&(ac=U,X=h(ac/M)),X>T&&(X=T,ac=h(X*M)),ac<V&&(ac=V,X=h(ac/M)),X<K&&(X=K,ac=h(X*M))):(ac=Math.max(V,Math.min(ac,U)),Y.autoHeight&&"iframe"!==Y.type&&(Z.width(ac),X=Z.height()),X=Math.max(K,Math.min(X,T)));if(Y.fitToView){if(Z.width(ac).height(X),aa.width(ac+l),ad=aa.width(),f=aa.height(),Y.aspectRatio){for(;(ad>b||f>P)&&(ac>V&&X>K)&&!(19<ab++);){X=Math.max(K,Math.min(T,X-10)),ac=h(X*M),ac<V&&(ac=V,X=h(ac/M)),ac>U&&(ac=U,X=h(ac/M)),Z.width(ac).height(X),aa.width(ac+l),ad=aa.width(),f=aa.height()}}else{ac=Math.max(V,Math.min(ac,ac-(ad-b))),X=Math.max(K,Math.min(X,X-(f-P)))}}R&&("auto"===N&&X<S&&ac+l+R<b)&&(ac+=R);Z.width(ac).height(X);aa.width(ac+l);ad=aa.width();f=aa.height();aa=(ad>b||f>P)&&ac>V&&X>K;ac=Y.aspectRatio?ac<J&&X<Q&&ac<O&&X<S:(ac<J||X<Q)&&(ac<O||X<S);i.extend(Y,{dim:{width:m(ad),height:m(f)},origWidth:O,origHeight:S,canShrink:aa,canExpand:ac,wPadding:l,hPadding:I,wrapSpace:f-W.outerHeight(!0),skinSpace:W.height()-X});!w&&(Y.autoHeight&&X>K&&X<T&&!ac)&&Z.height("auto")},_getPosition:function(b){var q=j.current,p=j.getViewport(),r=q.margin,n=j.wrap.width()+r[1]+r[3],l=j.wrap.height()+r[0]+r[2],r={position:"absolute",top:r[0],left:r[3]};q.autoCenter&&q.fixed&&!b&&l<=p.h&&n<=p.w?r.position="fixed":q.locked||(r.top+=p.y,r.left+=p.x);r.top=m(Math.max(r.top,r.top+(p.h-l)*q.topRatio));r.left=m(Math.max(r.left,r.left+(p.w-n)*q.leftRatio));return r},_afterZoomIn:function(){var b=j.current;b&&(j.isOpen=j.isOpened=!0,j.wrap.css("overflow","visible").addClass("fancybox-opened"),j.update(),(b.closeClick||b.nextClick&&1<j.group.length)&&j.inner.css("cursor","pointer").bind("click.fb",function(f){!i(f.target).is("a")&&!i(f.target).parent().is("a")&&(f.preventDefault(),j[b.closeClick?"close":"next"]())}),b.closeBtn&&i(b.tpl.closeBtn).appendTo(j.skin).bind("click.fb",function(f){f.preventDefault();j.close()}),b.arrows&&1<j.group.length&&((b.loop||0<b.index)&&i(b.tpl.prev).appendTo(j.outer).bind("click.fb",j.prev),(b.loop||b.index<j.group.length-1)&&i(b.tpl.next).appendTo(j.outer).bind("click.fb",j.next)),j.trigger("afterShow"),!b.loop&&b.index===b.group.length-1?j.play(!1):j.opts.autoPlay&&!j.player.isActive&&(j.opts.autoPlay=!1,j.play()))},_afterZoomOut:function(b){b=b||j.current;i(".fancybox-wrap").trigger("onReset").remove();i.extend(j,{group:{},opts:{},router:!1,current:null,isActive:!1,isOpened:!1,isOpen:!1,isClosing:!1,wrap:null,skin:null,outer:null,inner:null});j.trigger("afterClose",b)}});j.transitions={getOrigPosition:function(){var v=j.current,s=v.element,r=v.orig,t={},q=50,p=50,n=v.hPadding,l=v.wPadding,b=j.getViewport();!r&&(v.isDom&&s.is(":visible"))&&(r=s.find("img:first"),r.length||(r=s));y(r)?(t=r.offset(),r.is("img")&&(q=r.outerWidth(),p=r.outerHeight())):(t.top=b.y+(b.h-p)*v.topRatio,t.left=b.x+(b.w-q)*v.leftRatio);if("fixed"===j.wrap.css("position")||v.locked){t.top-=b.y,t.left-=b.x}return t={top:m(t.top-n*v.topRatio),left:m(t.left-l*v.leftRatio),width:m(q+l),height:m(p+n)}},step:function(b,r){var q,s,p=r.prop;s=j.current;var n=s.wrapSpace,l=s.skinSpace;if("width"===p||"height"===p){q=r.end===r.start?1:(b-r.start)/(r.end-r.start),j.isClosing&&(q=1-q),s="width"===p?s.wPadding:s.hPadding,s=b-s,j.skin[p](h("width"===p?s:s-n*q)),j.inner[p](h("width"===p?s:s-n*q-l*q))}},zoomIn:function(){var b=j.current,n=b.pos,l=b.openEffect,p="elastic"===l,f=i.extend({opacity:1},n);delete f.position;p?(n=this.getOrigPosition(),b.openOpacity&&(n.opacity=0.1)):"fade"===l&&(n.opacity=0.1);j.wrap.css(n).animate(f,{duration:"none"===l?0:b.openSpeed,easing:b.openEasing,step:p?this.step:null,complete:j._afterZoomIn})},zoomOut:function(){var b=j.current,l=b.closeEffect,f="elastic"===l,n={opacity:0.1};f&&(n=this.getOrigPosition(),b.closeOpacity&&(n.opacity=0.1));j.wrap.animate(n,{duration:"none"===l?0:b.closeSpeed,easing:b.closeEasing,step:f?this.step:null,complete:j._afterZoomOut})},changeIn:function(){var b=j.current,q=b.nextEffect,p=b.pos,r={opacity:1},n=j.direction,l;p.opacity=0.1;"elastic"===q&&(l="down"===n||"up"===n?"top":"left","down"===n||"right"===n?(p[l]=m(h(p[l])-200),r[l]="+=200px"):(p[l]=m(h(p[l])+200),r[l]="-=200px"));"none"===q?j._afterZoomIn():j.wrap.css(p).animate(r,{duration:b.nextSpeed,easing:b.nextEasing,complete:j._afterZoomIn})},changeOut:function(){var b=j.previous,l=b.prevEffect,f={opacity:0.1},n=j.direction;"elastic"===l&&(f["down"===n||"up"===n?"top":"left"]=("up"===n||"left"===n?"-":"+")+"=200px");b.wrap.animate(f,{duration:"none"===l?0:b.prevSpeed,easing:b.prevEasing,complete:function(){i(this).trigger("onReset").remove()}})}};j.helpers.overlay={defaults:{closeClick:!0,speedOut:200,showEarly:!0,css:{},locked:!A,fixed:!0},overlay:null,fixed:!1,el:i("html"),create:function(b){b=i.extend({},this.defaults,b);this.overlay&&this.close();this.overlay=i('<div class="fancybox-overlay"></div>').appendTo(j.coming?j.coming.parent:b.parent);this.fixed=!1;b.fixed&&j.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(b){var f=this;b=i.extend({},this.defaults,b);this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(b);this.fixed||(g.bind("resize.overlay",i.proxy(this.update,this)),this.update());b.closeClick&&this.overlay.bind("click.overlay",function(l){if(i(l.target).hasClass("fancybox-overlay")){return j.isActive?j.close():f.close(),!1}});this.overlay.css(b.css).show()},close:function(){var l,f;g.unbind("resize.overlay");this.el.hasClass("fancybox-lock")&&(i(".fancybox-margin").removeClass("fancybox-margin"),l=g.scrollTop(),f=g.scrollLeft(),this.el.removeClass("fancybox-lock"),g.scrollTop(l).scrollLeft(f));i(".fancybox-overlay").remove().hide();i.extend(this,{overlay:null,fixed:!1})},update:function(){var l="100%",f;this.overlay.width(l).height("100%");o?(f=Math.max(x.documentElement.offsetWidth,x.body.offsetWidth),e.width()>f&&(l=e.width())):e.width()>g.width()&&(l=e.width());this.overlay.width(l).height(e.height())},onReady:function(l,f){var n=this.overlay;i(".fancybox-overlay").stop(!0,!0);n||this.create(l);l.locked&&(this.fixed&&f.fixed)&&(n||(this.margin=e.height()>g.height()?i("html").css("margin-right").replace("px",""):!1),f.locked=this.overlay.append(f.wrap),f.fixed=!1);!0===l.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(l,f){var n,p;f.locked&&(!1!==this.margin&&(i("*").filter(function(){return"fixed"===i(this).css("position")&&!i(this).hasClass("fancybox-overlay")&&!i(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin")),n=g.scrollTop(),p=g.scrollLeft(),this.el.addClass("fancybox-lock"),g.scrollTop(n).scrollLeft(p));this.open(l)},onUpdate:function(){this.fixed||this.update()},afterClose:function(b){this.overlay&&!j.coming&&this.overlay.fadeOut(b.speedOut,i.proxy(this.close,this))}};j.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(b){var l=j.current,f=l.title,n=b.type;i.isFunction(f)&&(f=f.call(l.element,l));if(c(f)&&""!==i.trim(f)){l=i('<div class="fancybox-title fancybox-title-'+n+'-wrap">'+f+"</div>");switch(n){case"inside":n=j.skin;break;case"outside":n=j.wrap;break;case"over":n=j.inner;break;default:n=j.skin,l.appendTo("body"),o&&l.width(l.width()),l.wrapInner('<span class="child"></span>'),j.current.margin[2]+=Math.abs(h(l.css("margin-bottom")))}l["top"===b.position?"prependTo":"appendTo"](n)}}};i.fn.fancybox=function(b){var n,l=i(this),p=this.selector||"",f=function(v){var t=i(this).blur(),s=n,r,q;!v.ctrlKey&&(!v.altKey&&!v.shiftKey&&!v.metaKey)&&!t.is(".fancybox-wrap")&&(r=b.groupAttr||"data-fancybox-group",q=t.attr(r),q||(r="rel",q=t.get(0)[r]),q&&(""!==q&&"nofollow"!==q)&&(t=p.length?i(p):l,t=t.filter("["+r+'="'+q+'"]'),s=t.index(this)),b.index=s,!1!==j.open(t,b)&&v.preventDefault())};b=b||{};n=b.index||0;!p||!1===b.live?l.unbind("click.fb-start").bind("click.fb-start",f):e.undelegate(p,"click.fb-start").delegate(p+":not('.fancybox-item, .fancybox-nav')","click.fb-start",f);this.filter("[data-fancybox-start=1]").trigger("click");return this};e.ready(function(){var b,l;i.scrollbarWidth===u&&(i.scrollbarWidth=function(){var p=i('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo("body"),n=p.children(),n=n.innerWidth()-n.height(99).innerWidth();p.remove();return n});if(i.support.fixedPosition===u){b=i.support;l=i('<div style="position:fixed;top:20px;"></div>').appendTo("body");var f=20===l[0].offsetTop||15===l[0].offsetTop;l.remove();b.fixedPosition=f}i.extend(j.defaults,{scrollbarWidth:i.scrollbarWidth(),fixed:i.support.fixedPosition,parent:i("body")});b=i(a).width();k.addClass("fancybox-lock-test");l=i(a).width();k.removeClass("fancybox-lock-test");i("<style type='text/css'>.fancybox-margin{margin-right:"+(l-b)+"px;}</style>").appendTo("head")})})(window,document,jQuery);!function(D,C,B,A){function z(a,d){this.settings=null,this.options=D.extend({},z.Defaults,d),this.$element=D(a),this.drag=D.extend({},r),this.state=D.extend({},q),this.e=D.extend({},p),this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._invalidated={},this._pipe=[],D.each(z.Plugins,D.proxy(function(e,c){this._plugins[e[0].toLowerCase()+e.slice(1)]=new c(this)},this)),D.each(z.Pipe,D.proxy(function(e,f){this._pipe.push({filter:f.filter,run:D.proxy(f.run,this)})},this)),this.setup(),this.initialize()}function y(b){if(b.touches!==A){return{x:b.touches[0].pageX,y:b.touches[0].pageY}}if(b.touches===A){if(b.pageX!==A){return{x:b.pageX,y:b.pageY}}if(b.pageX===A){return{x:b.clientX,y:b.clientY}}}}function x(g){var c,j,i=B.createElement("div"),h=g;for(c in h){if(j=h[c],"undefined"!=typeof i.style[j]){return i=null,[j,c]}}return[!1]}function w(){return x(["transition","WebkitTransition","MozTransition","OTransition"])[1]}function v(){return x(["transform","WebkitTransform","MozTransform","OTransform","msTransform"])[0]}function u(){return x(["perspective","webkitPerspective","MozPerspective","OPerspective","MsPerspective"])[0]}function t(){return"ontouchstart" in C||!!navigator.msMaxTouchPoints}function s(){return C.navigator.msPointerEnabled}var r,q,p;r={start:0,startX:0,startY:0,current:0,currentX:0,currentY:0,offsetX:0,offsetY:0,distance:null,startTime:0,endTime:0,updatedX:0,targetEl:null},q={isTouch:!1,isScrolling:!1,isSwiping:!1,direction:!1,inMotion:!1},p={_onDragStart:null,_onDragMove:null,_onDragEnd:null,_transitionEnd:null,_resizer:null,_responsiveCall:null,_goToLoop:null,_checkVisibile:null},z.Defaults={items:3,loop:!1,center:!1,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:C,responsiveClass:!1,fallbackEasing:"swing",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",themeClass:"owl-theme",baseClass:"owl-carousel",itemClass:"owl-item",centerClass:"center",activeClass:"active"},z.Width={Default:"default",Inner:"inner",Outer:"outer"},z.Plugins={},z.Pipe=[{filter:["width","items","settings"],run:function(b){b.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){var d=this._clones,c=this.$stage.children(".cloned");(c.length!==d.length||!this.settings.loop&&d.length>0)&&(this.$stage.children(".cloned").remove(),this._clones=[])}},{filter:["items","settings"],run:function(){var g,f,j=this._clones,i=this._items,h=this.settings.loop?j.length-Math.max(2*this.settings.items,4):0;for(g=0,f=Math.abs(h/2);f>g;g++){h>0?(this.$stage.children().eq(i.length+j.length-1).remove(),j.pop(),this.$stage.children().eq(0).remove(),j.pop()):(j.push(j.length/2),this.$stage.append(i[j[j.length-1]].clone().addClass("cloned")),j.push(i.length-1-(j.length-1)/2),this.$stage.prepend(i[j[j.length-1]].clone().addClass("cloned")))}}},{filter:["width","items","settings"],run:function(){var h,g,l,k=this.settings.rtl?1:-1,j=(this.width()/this.settings.items).toFixed(3),i=0;for(this._coordinates=[],g=0,l=this._clones.length+this._items.length;l>g;g++){h=this._mergers[this.relative(g)],h=this.settings.mergeFit&&Math.min(h,this.settings.items)||h,i+=(this.settings.autoWidth?this._items[this.relative(g)].width()+this.settings.margin:j*h)*k,this._coordinates.push(i)}}},{filter:["width","items","settings"],run:function(){var a,h,g=(this.width()/this.settings.items).toFixed(3),f={width:Math.abs(this._coordinates[this._coordinates.length-1])+2*this.settings.stagePadding,"padding-left":this.settings.stagePadding||"","padding-right":this.settings.stagePadding||""};if(this.$stage.css(f),f={width:this.settings.autoWidth?"auto":g-this.settings.margin},f[this.settings.rtl?"margin-left":"margin-right"]=this.settings.margin,!this.settings.autoWidth&&D.grep(this._mergers,function(b){return b>1}).length>0){for(a=0,h=this._coordinates.length;h>a;a++){f.width=Math.abs(this._coordinates[a])-Math.abs(this._coordinates[a-1]||0)-this.settings.margin,this.$stage.children().eq(a).css(f)}}else{this.$stage.children().css(f)}}},{filter:["width","items","settings"],run:function(b){b.current&&this.reset(this.$stage.children().index(b.current))}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var G,F,E,o,n=this.settings.rtl?1:-1,m=2*this.settings.stagePadding,l=this.coordinates(this.current())+m,k=l+this.width()*n,j=[];for(E=0,o=this._coordinates.length;o>E;E++){G=this._coordinates[E-1]||0,F=Math.abs(this._coordinates[E])+m*n,(this.op(G,"<=",l)&&this.op(G,">",k)||this.op(F,"<",l)&&this.op(F,">",k))&&j.push(E)}this.$stage.children("."+this.settings.activeClass).removeClass(this.settings.activeClass),this.$stage.children(":eq("+j.join("), :eq(")+")").addClass(this.settings.activeClass),this.settings.center&&(this.$stage.children("."+this.settings.centerClass).removeClass(this.settings.centerClass),this.$stage.children().eq(this.current()).addClass(this.settings.centerClass))}}],z.prototype.initialize=function(){if(this.trigger("initialize"),this.$element.addClass(this.settings.baseClass).addClass(this.settings.themeClass).toggleClass("owl-rtl",this.settings.rtl),this.browserSupport(),this.settings.autoWidth&&this.state.imagesLoaded!==!0){var a,f,d;if(a=this.$element.find("img"),f=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:A,d=this.$element.children(f).width(),a.length&&0>=d){return this.preloadAutoWidthImages(a),!1}}this.$element.addClass("owl-loading"),this.$stage=D("<"+this.settings.stageElement+' class="owl-stage"/>').wrap('<div class="owl-stage-outer">'),this.$element.append(this.$stage.parent()),this.replace(this.$element.children().not(this.$stage.parent())),this._width=this.$element.width(),this.refresh(),this.$element.removeClass("owl-loading").addClass("owl-loaded"),this.eventsCall(),this.internalEvents(),this.addTriggerableEvents(),this.trigger("initialized")},z.prototype.setup=function(){var a=this.viewport(),h=this.options.responsive,g=-1,f=null;h?(D.each(h,function(b){a>=b&&b>g&&(g=Number(b))}),f=D.extend({},this.options,h[g]),delete f.responsive,f.responsiveClass&&this.$element.attr("class",function(d,c){return c.replace(/\b owl-responsive-\S+/g,"")}).addClass("owl-responsive-"+g)):f=D.extend({},this.options),(null===this.settings||this._breakpoint!==g)&&(this.trigger("change",{property:{name:"settings",value:f}}),this._breakpoint=g,this.settings=f,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}}))},z.prototype.optionsLogic=function(){this.$element.toggleClass("owl-center",this.settings.center),this.settings.loop&&this._items.length<this.settings.items&&(this.settings.loop=!1),this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},z.prototype.prepare=function(a){var d=this.trigger("prepare",{content:a});return d.data||(d.data=D("<"+this.settings.itemElement+"/>").addClass(this.settings.itemClass).append(a)),this.trigger("prepared",{content:d.data}),d.data},z.prototype.update=function(){for(var a=0,h=this._pipe.length,g=D.proxy(function(b){return this[b]},this._invalidated),f={};h>a;){(this._invalidated.all||D.grep(this._pipe[a].filter,g).length>0)&&this._pipe[a].run(f),a++}this._invalidated={}},z.prototype.width=function(b){switch(b=b||z.Width.Default){case z.Width.Inner:case z.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},z.prototype.refresh=function(){if(0===this._items.length){return !1}(new Date).getTime();this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$stage.addClass("owl-refresh"),this.update(),this.$stage.removeClass("owl-refresh"),this.state.orientation=C.orientation,this.watchVisibility(),this.trigger("refreshed")},z.prototype.eventsCall=function(){this.e._onDragStart=D.proxy(function(b){this.onDragStart(b)},this),this.e._onDragMove=D.proxy(function(b){this.onDragMove(b)},this),this.e._onDragEnd=D.proxy(function(b){this.onDragEnd(b)},this),this.e._onResize=D.proxy(function(b){this.onResize(b)},this),this.e._transitionEnd=D.proxy(function(b){this.transitionEnd(b)},this),this.e._preventClick=D.proxy(function(b){this.preventClick(b)},this)},z.prototype.onThrottledResize=function(){C.clearTimeout(this.resizeTimer),this.resizeTimer=C.setTimeout(this.e._onResize,this.settings.responsiveRefreshRate)},z.prototype.onResize=function(){return this._items.length?this._width===this.$element.width()?!1:this.trigger("resize").isDefaultPrevented()?!1:(this._width=this.$element.width(),this.invalidate("width"),this.refresh(),void this.trigger("resized")):!1},z.prototype.eventsRouter=function(d){var c=d.type;"mousedown"===c||"touchstart"===c?this.onDragStart(d):"mousemove"===c||"touchmove"===c?this.onDragMove(d):"mouseup"===c||"touchend"===c?this.onDragEnd(d):"touchcancel"===c&&this.onDragEnd(d)},z.prototype.internalEvents=function(){var a=(t(),s());this.settings.mouseDrag?(this.$stage.on("mousedown",D.proxy(function(b){this.eventsRouter(b)},this)),this.$stage.on("dragstart",function(){return !1}),this.$stage.get(0).onselectstart=function(){return !1}):this.$element.addClass("owl-text-select-on"),this.settings.touchDrag&&!a&&this.$stage.on("touchstart touchcancel",D.proxy(function(b){this.eventsRouter(b)},this)),this.transitionEndVendor&&this.on(this.$stage.get(0),this.transitionEndVendor,this.e._transitionEnd,!1),this.settings.responsive!==!1&&this.on(C,"resize",D.proxy(this.onThrottledResize,this))},z.prototype.onDragStart=function(j){var f,c,b,a;if(f=j.originalEvent||j||C.event,3===f.which||this.state.isTouch){return !1}if("mousedown"===f.type&&this.$stage.addClass("owl-grab"),this.trigger("drag"),this.drag.startTime=(new Date).getTime(),this.speed(0),this.state.isTouch=!0,this.state.isScrolling=!1,this.state.isSwiping=!1,this.drag.distance=0,c=y(f).x,b=y(f).y,this.drag.offsetX=this.$stage.position().left,this.drag.offsetY=this.$stage.position().top,this.settings.rtl&&(this.drag.offsetX=this.$stage.position().left+this.$stage.width()-this.width()+this.settings.margin),this.state.inMotion&&this.support3d){a=this.getTransformProperty(),this.drag.offsetX=a,this.animate(a),this.state.inMotion=!0}else{if(this.state.inMotion&&!this.support3d){return this.state.inMotion=!1,!1}}this.drag.startX=c-this.drag.offsetX,this.drag.startY=b-this.drag.offsetY,this.drag.start=c-this.drag.startX,this.drag.targetEl=f.target||f.srcElement,this.drag.updatedX=this.drag.start,("IMG"===this.drag.targetEl.tagName||"A"===this.drag.targetEl.tagName)&&(this.drag.targetEl.draggable=!1),D(B).on("mousemove.owl.dragEvents mouseup.owl.dragEvents touchmove.owl.dragEvents touchend.owl.dragEvents",D.proxy(function(d){this.eventsRouter(d)},this))},z.prototype.onDragMove=function(b){var n,m,l,k,f,d;this.state.isTouch&&(this.state.isScrolling||(n=b.originalEvent||b||C.event,m=y(n).x,l=y(n).y,this.drag.currentX=m-this.drag.startX,this.drag.currentY=l-this.drag.startY,this.drag.distance=this.drag.currentX-this.drag.offsetX,this.drag.distance<0?this.state.direction=this.settings.rtl?"right":"left":this.drag.distance>0&&(this.state.direction=this.settings.rtl?"left":"right"),this.settings.loop?this.op(this.drag.currentX,">",this.coordinates(this.minimum()))&&"right"===this.state.direction?this.drag.currentX-=(this.settings.center&&this.coordinates(0))-this.coordinates(this._items.length):this.op(this.drag.currentX,"<",this.coordinates(this.maximum()))&&"left"===this.state.direction&&(this.drag.currentX+=(this.settings.center&&this.coordinates(0))-this.coordinates(this._items.length)):(k=this.coordinates(this.settings.rtl?this.maximum():this.minimum()),f=this.coordinates(this.settings.rtl?this.minimum():this.maximum()),d=this.settings.pullDrag?this.drag.distance/5:0,this.drag.currentX=Math.max(Math.min(this.drag.currentX,k+d),f+d)),(this.drag.distance>8||this.drag.distance<-8)&&(n.preventDefault!==A?n.preventDefault():n.returnValue=!1,this.state.isSwiping=!0),this.drag.updatedX=this.drag.currentX,(this.drag.currentY>16||this.drag.currentY<-16)&&this.state.isSwiping===!1&&(this.state.isScrolling=!0,this.drag.updatedX=this.drag.start),this.animate(this.drag.updatedX)))},z.prototype.onDragEnd=function(a){var h,g,c;if(this.state.isTouch){if("mouseup"===a.type&&this.$stage.removeClass("owl-grab"),this.trigger("dragged"),this.drag.targetEl.removeAttribute("draggable"),this.state.isTouch=!1,this.state.isScrolling=!1,this.state.isSwiping=!1,0===this.drag.distance&&this.state.inMotion!==!0){return this.state.inMotion=!1,!1}this.drag.endTime=(new Date).getTime(),h=this.drag.endTime-this.drag.startTime,g=Math.abs(this.drag.distance),(g>3||h>300)&&this.removeClick(this.drag.targetEl),c=this.closest(this.drag.updatedX),this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(c),this.invalidate("position"),this.update(),this.settings.pullDrag||this.drag.updatedX!==this.coordinates(c)||this.transitionEnd(),this.drag.distance=0,D(B).off(".owl.dragEvents")}},z.prototype.removeClick=function(a){this.drag.targetEl=a,D(a).on("click.preventClick",this.e._preventClick),C.setTimeout(function(){D(a).off("click.preventClick")},300)},z.prototype.preventClick=function(a){a.preventDefault?a.preventDefault():a.returnValue=!1,a.stopPropagation&&a.stopPropagation(),D(a.target).off("click.preventClick")},z.prototype.getTransformProperty=function(){var b,d;return b=C.getComputedStyle(this.$stage.get(0),null).getPropertyValue(this.vendorName+"transform"),b=b.replace(/matrix(3d)?\(|\)/g,"").split(","),d=16===b.length,d!==!0?b[4]:b[12]},z.prototype.closest=function(a){var j=-1,i=30,h=this.width(),g=this.coordinates();return this.settings.freeDrag||D.each(g,D.proxy(function(b,c){return a>c-i&&c+i>a?j=b:this.op(a,"<",c)&&this.op(a,">",g[b+1]||c-h)&&(j="left"===this.state.direction?b+1:b),-1===j},this)),this.settings.loop||(this.op(a,">",g[this.minimum()])?j=a=this.minimum():this.op(a,"<",g[this.maximum()])&&(j=a=this.maximum())),j},z.prototype.animate=function(a){this.trigger("translate"),this.state.inMotion=this.speed()>0,this.support3d?this.$stage.css({transform:"translate3d("+a+"px,0px, 0px)",transition:this.speed()/1000+"s"}):this.state.isTouch?this.$stage.css({left:a+"px"}):this.$stage.animate({left:a},this.speed()/1000,this.settings.fallbackEasing,D.proxy(function(){this.state.inMotion&&this.transitionEnd()},this))},z.prototype.current=function(d){if(d===A){return this._current}if(0===this._items.length){return A}if(d=this.normalize(d),this._current!==d){var c=this.trigger("change",{property:{name:"position",value:d}});c.data!==A&&(d=this.normalize(c.data)),this._current=d,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},z.prototype.invalidate=function(b){this._invalidated[b]=!0},z.prototype.reset=function(b){b=this.normalize(b),b!==A&&(this._speed=0,this._current=b,this.suppress(["translate","translated"]),this.animate(this.coordinates(b)),this.release(["translate","translated"]))},z.prototype.normalize=function(a,f){var d=f?this._items.length:this._items.length+this._clones.length;return !D.isNumeric(a)||1>d?A:a=this._clones.length?(a%d+d)%d:Math.max(this.minimum(f),Math.min(this.maximum(f),a))},z.prototype.relative=function(b){return b=this.normalize(b),b-=this._clones.length/2,this.normalize(b,!0)},z.prototype.maximum=function(h){var g,l,k,j=0,i=this.settings;if(h){return this._items.length-1}if(!i.loop&&i.center){g=this._items.length-1}else{if(i.loop||i.center){if(i.loop||i.center){g=this._items.length+i.items}else{if(!i.autoWidth&&!i.merge){throw"Can not detect maximum absolute position."}for(revert=i.rtl?1:-1,l=this.$stage.width()-this.$element.width();(k=this.coordinates(j))&&!(k*revert>=l);){g=++j}}}else{g=this._items.length-i.items}}return g},z.prototype.minimum=function(b){return b?0:this._clones.length/2},z.prototype.items=function(b){return b===A?this._items.slice():(b=this.normalize(b,!0),this._items[b])},z.prototype.mergers=function(b){return b===A?this._mergers.slice():(b=this.normalize(b,!0),this._mergers[b])},z.prototype.clones=function(a){var h=this._clones.length/2,g=h+this._items.length,d=function(b){return b%2===0?g+b/2:h-(b+1)/2};return a===A?D.map(this._clones,function(e,c){return d(c)}):D.map(this._clones,function(b,e){return b===a?d(e):null})},z.prototype.speed=function(b){return b!==A&&(this._speed=b),this._speed},z.prototype.coordinates=function(a){var d=null;return a===A?D.map(this._coordinates,D.proxy(function(e,c){return this.coordinates(c)},this)):(this.settings.center?(d=this._coordinates[a],d+=(this.width()-d+(this._coordinates[a-1]||0))/2*(this.settings.rtl?-1:1)):d=this._coordinates[a-1]||0,d)},z.prototype.duration=function(e,d,f){return Math.min(Math.max(Math.abs(d-e),1),6)*Math.abs(f||this.settings.smartSpeed)},z.prototype.to=function(E,o){if(this.settings.loop){var n=E-this.relative(this.current()),m=this.current(),l=this.current(),k=this.current()+n,b=0>l-k?!0:!1,a=this._clones.length+this._items.length;k<this.settings.items&&b===!1?(m=l+this._items.length,this.reset(m)):k>=a-this.settings.items&&b===!0&&(m=l-this._items.length,this.reset(m)),C.clearTimeout(this.e._goToLoop),this.e._goToLoop=C.setTimeout(D.proxy(function(){this.speed(this.duration(this.current(),m+n,o)),this.current(m+n),this.update()},this),30)}else{this.speed(this.duration(this.current(),E,o)),this.current(E),this.update()}},z.prototype.next=function(b){b=b||!1,this.to(this.relative(this.current())+1,b)},z.prototype.prev=function(b){b=b||!1,this.to(this.relative(this.current())-1,b)},z.prototype.transitionEnd=function(b){return b!==A&&(b.stopPropagation(),(b.target||b.srcElement||b.originalTarget)!==this.$stage.get(0))?!1:(this.state.inMotion=!1,void this.trigger("translated"))},z.prototype.viewport=function(){var a;if(this.options.responsiveBaseElement!==C){a=D(this.options.responsiveBaseElement).width()}else{if(C.innerWidth){a=C.innerWidth}else{if(!B.documentElement||!B.documentElement.clientWidth){throw"Can not detect viewport width."}a=B.documentElement.clientWidth}}return a},z.prototype.replace=function(a){this.$stage.empty(),this._items=[],a&&(a=a instanceof jQuery?a:D(a)),this.settings.nestedItemSelector&&(a=a.find("."+this.settings.nestedItemSelector)),a.filter(function(){return 1===this.nodeType}).each(D.proxy(function(d,c){c=this.prepare(c),this.$stage.append(c),this._items.push(c),this._mergers.push(1*c.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)},this)),this.reset(D.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},z.prototype.add=function(d,c){c=c===A?this._items.length:this.normalize(c,!0),this.trigger("add",{content:d,position:c}),0===this._items.length||c===this._items.length?(this.$stage.append(d),this._items.push(d),this._mergers.push(1*d.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)):(this._items[c].before(d),this._items.splice(c,0,d),this._mergers.splice(c,0,1*d.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)),this.invalidate("items"),this.trigger("added",{content:d,position:c})},z.prototype.remove=function(b){b=this.normalize(b,!0),b!==A&&(this.trigger("remove",{content:this._items[b],position:b}),this._items[b].remove(),this._items.splice(b,1),this._mergers.splice(b,1),this.invalidate("items"),this.trigger("removed",{content:null,position:b}))},z.prototype.addTriggerableEvents=function(){var a=D.proxy(function(d,e){return D.proxy(function(b){b.relatedTarget!==this&&(this.suppress([e]),d.apply(this,[].slice.call(arguments,1)),this.release([e]))},this)},this);D.each({next:this.next,prev:this.prev,to:this.to,destroy:this.destroy,refresh:this.refresh,replace:this.replace,add:this.add,remove:this.remove},D.proxy(function(b,d){this.$element.on(b+".owl.carousel",a(d,b+".owl.carousel"))},this))},z.prototype.watchVisibility=function(){function b(c){return c.offsetWidth>0&&c.offsetHeight>0}function a(){b(this.$element.get(0))&&(this.$element.removeClass("owl-hidden"),this.refresh(),C.clearInterval(this.e._checkVisibile))}b(this.$element.get(0))||(this.$element.addClass("owl-hidden"),C.clearInterval(this.e._checkVisibile),this.e._checkVisibile=C.setInterval(D.proxy(a,this),500))},z.prototype.preloadAutoWidthImages=function(a){var j,i,h,g;j=0,i=this,a.each(function(c,b){h=D(b),g=new Image,g.onload=function(){j++,h.attr("src",g.src),h.css("opacity",1),j>=a.length&&(i.state.imagesLoaded=!0,i.initialize())},g.src=h.attr("src")||h.attr("data-src")||h.attr("data-src-retina")})},z.prototype.destroy=function(){this.$element.hasClass(this.settings.themeClass)&&this.$element.removeClass(this.settings.themeClass),this.settings.responsive!==!1&&D(C).off("resize.owl.carousel"),this.transitionEndVendor&&this.off(this.$stage.get(0),this.transitionEndVendor,this.e._transitionEnd);for(var a in this._plugins){this._plugins[a].destroy()}(this.settings.mouseDrag||this.settings.touchDrag)&&(this.$stage.off("mousedown touchstart touchcancel"),D(B).off(".owl.dragEvents"),this.$stage.get(0).onselectstart=function(){},this.$stage.off("dragstart",function(){return !1})),this.$element.off(".owl"),this.$stage.children(".cloned").remove(),this.e=null,this.$element.removeData("owlCarousel"),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.unwrap()},z.prototype.op=function(f,e,h){var g=this.settings.rtl;switch(e){case"<":return g?f>h:h>f;case">":return g?h>f:f>h;case">=":return g?h>=f:f>=h;case"<=":return g?f>=h:h>=f}},z.prototype.on=function(f,e,h,g){f.addEventListener?f.addEventListener(e,h,g):f.attachEvent&&f.attachEvent("on"+e,h)},z.prototype.off=function(f,e,h,g){f.removeEventListener?f.removeEventListener(e,h,g):f.detachEvent&&f.detachEvent("on"+e,h)},z.prototype.trigger=function(a,l,k){var j={item:{count:this._items.length,index:this.current()}},i=D.camelCase(D.grep(["on",a,k],function(b){return b}).join("-").toLowerCase()),h=D.Event([a,"owl",k||"carousel"].join(".").toLowerCase(),D.extend({relatedTarget:this},j,l));return this._supress[a]||(D.each(this._plugins,function(d,c){c.onTrigger&&c.onTrigger(h)}),this.$element.trigger(h),this.settings&&"function"==typeof this.settings[i]&&this.settings[i].apply(this,h)),h},z.prototype.suppress=function(a){D.each(a,D.proxy(function(d,c){this._supress[c]=!0},this))},z.prototype.release=function(a){D.each(a,D.proxy(function(d,c){delete this._supress[c]},this))},z.prototype.browserSupport=function(){if(this.support3d=u(),this.support3d){this.transformVendor=v();var b=["transitionend","webkitTransitionEnd","transitionend","oTransitionEnd"];this.transitionEndVendor=b[w()],this.vendorName=this.transformVendor.replace(/Transform/i,""),this.vendorName=""!==this.vendorName?"-"+this.vendorName.toLowerCase()+"-":""}this.state.orientation=C.orientation},D.fn.owlCarousel=function(a){return this.each(function(){D(this).data("owlCarousel")||D(this).data("owlCarousel",new z(this,a))})},D.fn.owlCarousel.Constructor=z}(window.Zepto||window.jQuery,window,document),function(e,d){var f=function(a){this._core=a,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel":e.proxy(function(i){if(i.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(i.property&&"position"==i.property.name||"initialized"==i.type)){for(var o=this._core.settings,n=o.center&&Math.ceil(o.items/2)||o.items,m=o.center&&-1*n||0,l=(i.property&&i.property.value||this._core.current())+m,k=this._core.clones().length,j=e.proxy(function(g,c){this.load(c)},this);m++<n;){this.load(k/2+this._core.relative(l)),k&&e.each(this._core.clones(this._core.relative(l++)),j)}}},this)},this._core.options=e.extend({},f.Defaults,this._core.options),this._core.$element.on(this._handlers)};f.Defaults={lazyLoad:!1},f.prototype.load=function(g){var b=this._core.$stage.children().eq(g),a=b&&b.find(".owl-lazy");!a||e.inArray(b.get(0),this._loaded)>-1||(a.each(e.proxy(function(l,k){var j,i=e(k),h=d.devicePixelRatio>1&&i.attr("data-src-retina")||i.attr("data-src");this._core.trigger("load",{element:i,url:h},"lazy"),i.is("img")?i.one("load.owl.lazy",e.proxy(function(){i.css("opacity",1),this._core.trigger("loaded",{element:i,url:h},"lazy")},this)).attr("src",h):(j=new Image,j.onload=e.proxy(function(){i.css({"background-image":"url("+h+")",opacity:"1"}),this._core.trigger("loaded",{element:i,url:h},"lazy")},this),j.src=h)},this)),this._loaded.push(b.get(0)))},f.prototype.destroy=function(){var g,c;for(g in this.handlers){this._core.$element.off(g,this.handlers[g])}for(c in Object.getOwnPropertyNames(this)){"function"!=typeof this[c]&&(this[c]=null)}},e.fn.owlCarousel.Constructor.Plugins.Lazy=f}(window.Zepto||window.jQuery,window,document),function(d){var c=function(a){this._core=a,this._handlers={"initialized.owl.carousel":d.proxy(function(){this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":d.proxy(function(b){this._core.settings.autoHeight&&"position"==b.property.name&&this.update()},this),"loaded.owl.lazy":d.proxy(function(b){this._core.settings.autoHeight&&b.element.closest("."+this._core.settings.itemClass)===this._core.$stage.children().eq(this._core.current())&&this.update()},this)},this._core.options=d.extend({},c.Defaults,this._core.options),this._core.$element.on(this._handlers)};c.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},c.prototype.update=function(){this._core.$stage.parent().height(this._core.$stage.children().eq(this._core.current()).height()).addClass(this._core.settings.autoHeightClass)},c.prototype.destroy=function(){var f,e;for(f in this._handlers){this._core.$element.off(f,this._handlers[f])}for(e in Object.getOwnPropertyNames(this)){"function"!=typeof this[e]&&(this[e]=null)}},d.fn.owlCarousel.Constructor.Plugins.AutoHeight=c}(window.Zepto||window.jQuery,window,document),function(f,e,h){var g=function(a){this._core=a,this._videos={},this._playing=null,this._fullscreen=!1,this._handlers={"resize.owl.carousel":f.proxy(function(b){this._core.settings.video&&!this.isInFullScreen()&&b.preventDefault()},this),"refresh.owl.carousel changed.owl.carousel":f.proxy(function(){this._playing&&this.stop()},this),"prepared.owl.carousel":f.proxy(function(d){var i=f(d.content).find(".owl-video");i.length&&(i.css("display","none"),this.fetch(i,f(d.content)))},this)},this._core.options=f.extend({},g.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",f.proxy(function(b){this.play(b)},this))};g.Defaults={video:!1,videoHeight:!1,videoWidth:!1},g.prototype.fetch=function(j,i){var o=j.attr("data-vimeo-id")?"vimeo":"youtube",n=j.attr("data-vimeo-id")||j.attr("data-youtube-id"),m=j.attr("data-width")||this._core.settings.videoWidth,l=j.attr("data-height")||this._core.settings.videoHeight,k=j.attr("href");if(!k){throw new Error("Missing video URL.")}if(n=k.match(/(http:|https:|)\/\/(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/),n[3].indexOf("youtu")>-1){o="youtube"}else{if(!(n[3].indexOf("vimeo")>-1)){throw new Error("Video URL not supported.")}o="vimeo"}n=n[6],this._videos[k]={type:o,id:n,width:m,height:l},i.attr("data-video",k),this.thumbnail(j,this._videos[k])},g.prototype.thumbnail=function(v,u){var t,s,r,q=u.width&&u.height?'style="width:'+u.width+"px;height:"+u.height+'px;"':"",p=v.find("img"),o="src",n="",m=this._core.settings,a=function(b){s='<div class="owl-video-play-icon"></div>',t=m.lazyLoad?'<div class="owl-video-tn '+n+'" '+o+'="'+b+'"></div>':'<div class="owl-video-tn" style="opacity:1;background-image:url('+b+')"></div>',v.after(t),v.after(s)};return v.wrap('<div class="owl-video-wrapper"'+q+"></div>"),this._core.settings.lazyLoad&&(o="data-src",n="owl-lazy"),p.length?(a(p.attr(o)),p.remove(),!1):void ("youtube"===u.type?(r="http://img.youtube.com/vi/"+u.id+"/hqdefault.jpg",a(r)):"vimeo"===u.type&&f.ajax({type:"GET",url:"http://vimeo.com/api/v2/video/"+u.id+".json",jsonp:"callback",dataType:"jsonp",success:function(b){r=b[0].thumbnail_large,a(r)}}))},g.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null},g.prototype.play=function(a){this._core.trigger("play",null,"video"),this._playing&&this.stop();var p,o,n=f(a.target||a.srcElement),m=n.closest("."+this._core.settings.itemClass),l=this._videos[m.attr("data-video")],k=l.width||"100%",j=l.height||this._core.$stage.height();"youtube"===l.type?p='<iframe width="'+k+'" height="'+j+'" src="http://www.youtube.com/embed/'+l.id+"?autoplay=1&v="+l.id+'" frameborder="0" allowfullscreen></iframe>':"vimeo"===l.type&&(p='<iframe src="http://player.vimeo.com/video/'+l.id+'?autoplay=1" width="'+k+'" height="'+j+'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>'),m.addClass("owl-video-playing"),this._playing=m,o=f('<div style="height:'+j+"px; width:"+k+'px" class="owl-video-frame">'+p+"</div>"),n.after(o)},g.prototype.isInFullScreen=function(){var a=h.fullscreenElement||h.mozFullScreenElement||h.webkitFullscreenElement;return a&&f(a).parent().hasClass("owl-video-frame")&&(this._core.speed(0),this._fullscreen=!0),a&&this._fullscreen&&this._playing?!1:this._fullscreen?(this._fullscreen=!1,!1):this._playing&&this._core.state.orientation!==e.orientation?(this._core.state.orientation=e.orientation,!1):!0},g.prototype.destroy=function(){var d,c;this._core.$element.off("click.owl.video");for(d in this._handlers){this._core.$element.off(d,this._handlers[d])}for(c in Object.getOwnPropertyNames(this)){"function"!=typeof this[c]&&(this[c]=null)}},f.fn.owlCarousel.Constructor.Plugins.Video=g}(window.Zepto||window.jQuery,window,document),function(g,f,j,i){var h=function(a){this.core=a,this.core.options=g.extend({},h.Defaults,this.core.options),this.swapping=!0,this.previous=i,this.next=i,this.handlers={"change.owl.carousel":g.proxy(function(b){"position"==b.property.name&&(this.previous=this.core.current(),this.next=b.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":g.proxy(function(b){this.swapping="translated"==b.type},this),"translate.owl.carousel":g.proxy(function(){this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};h.Defaults={animateOut:!1,animateIn:!1},h.prototype.swap=function(){if(1===this.core.settings.items&&this.core.support3d){this.core.speed(0);var a,o=g.proxy(this.clear,this),n=this.core.$stage.children().eq(this.previous),m=this.core.$stage.children().eq(this.next),l=this.core.settings.animateIn,k=this.core.settings.animateOut;this.core.current()!==this.previous&&(k&&(a=this.core.coordinates(this.previous)-this.core.coordinates(this.next),n.css({left:a+"px"}).addClass("animated owl-animated-out").addClass(k).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",o)),l&&m.addClass("animated owl-animated-in").addClass(l).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",o))}},h.prototype.clear=function(a){g(a.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.transitionEnd()},h.prototype.destroy=function(){var d,c;for(d in this.handlers){this.core.$element.off(d,this.handlers[d])}for(c in Object.getOwnPropertyNames(this)){"function"!=typeof this[c]&&(this[c]=null)}},g.fn.owlCarousel.Constructor.Plugins.Animate=h}(window.Zepto||window.jQuery,window,document),function(f,e,h){var g=function(a){this.core=a,this.core.options=f.extend({},g.Defaults,this.core.options),this.handlers={"translated.owl.carousel refreshed.owl.carousel":f.proxy(function(){this.autoplay()},this),"play.owl.autoplay":f.proxy(function(i,d,j){this.play(d,j)},this),"stop.owl.autoplay":f.proxy(function(){this.stop()},this),"mouseover.owl.autoplay":f.proxy(function(){this.core.settings.autoplayHoverPause&&this.pause()},this),"mouseleave.owl.autoplay":f.proxy(function(){this.core.settings.autoplayHoverPause&&this.autoplay()},this)},this.core.$element.on(this.handlers)};g.Defaults={autoplay:!1,autoplayTimeout:5000,autoplayHoverPause:!1,autoplaySpeed:!1},g.prototype.autoplay=function(){this.core.settings.autoplay&&!this.core.state.videoPlay?(e.clearInterval(this.interval),this.interval=e.setInterval(f.proxy(function(){this.play()},this),this.core.settings.autoplayTimeout)):e.clearInterval(this.interval)},g.prototype.play=function(){return h.hidden===!0||this.core.state.isTouch||this.core.state.isScrolling||this.core.state.isSwiping||this.core.state.inMotion?void 0:this.core.settings.autoplay===!1?void e.clearInterval(this.interval):void this.core.next(this.core.settings.autoplaySpeed)},g.prototype.stop=function(){e.clearInterval(this.interval)},g.prototype.pause=function(){e.clearInterval(this.interval)},g.prototype.destroy=function(){var b,d;e.clearInterval(this.interval);for(b in this.handlers){this.core.$element.off(b,this.handlers[b])}for(d in Object.getOwnPropertyNames(this)){"function"!=typeof this[d]&&(this[d]=null)}},f.fn.owlCarousel.Constructor.Plugins.autoplay=g}(window.Zepto||window.jQuery,window,document),function(d){var c=function(a){this._core=a,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":d.proxy(function(e){this._core.settings.dotsData&&this._templates.push(d(e.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot"))},this),"add.owl.carousel":d.proxy(function(e){this._core.settings.dotsData&&this._templates.splice(e.position,0,d(e.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot"))},this),"remove.owl.carousel prepared.owl.carousel":d.proxy(function(b){this._core.settings.dotsData&&this._templates.splice(b.position,1)},this),"change.owl.carousel":d.proxy(function(f){if("position"==f.property.name&&!this._core.state.revert&&!this._core.settings.loop&&this._core.settings.navRewind){var e=this._core.current(),h=this._core.maximum(),g=this._core.minimum();f.data=f.property.value>h?e>=h?g:h:f.property.value<g?h:f.property.value}},this),"changed.owl.carousel":d.proxy(function(b){"position"==b.property.name&&this.draw()},this),"refreshed.owl.carousel":d.proxy(function(){this._initialized||(this.initialize(),this._initialized=!0),this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation")},this)},this._core.options=d.extend({},c.Defaults,this._core.options),this.$element.on(this._handlers)};c.Defaults={nav:!1,navRewind:!0,navText:["prev","next"],navSpeed:!1,navElement:"div",navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotData:!1,dotsSpeed:!1,dotsContainer:!1,controlsClass:"owl-controls"},c.prototype.initialize=function(){var a,f,e=this._core.settings;e.dotsData||(this._templates=[d("<div>").addClass(e.dotClass).append(d("<span>")).prop("outerHTML")]),e.navContainer&&e.dotsContainer||(this._controls.$container=d("<div>").addClass(e.controlsClass).appendTo(this.$element)),this._controls.$indicators=e.dotsContainer?d(e.dotsContainer):d("<div>").hide().addClass(e.dotsClass).appendTo(this._controls.$container),this._controls.$indicators.on("click","div",d.proxy(function(g){var h=d(g.target).parent().is(this._controls.$indicators)?d(g.target).index():d(g.target).parent().index();g.preventDefault(),this.to(h,e.dotsSpeed)},this)),a=e.navContainer?d(e.navContainer):d("<div>").addClass(e.navContainerClass).prependTo(this._controls.$container),this._controls.$next=d("<"+e.navElement+">"),this._controls.$previous=this._controls.$next.clone(),this._controls.$previous.addClass(e.navClass[0]).html(e.navText[0]).hide().prependTo(a).on("click",d.proxy(function(){this.prev(e.navSpeed)},this)),this._controls.$next.addClass(e.navClass[1]).html(e.navText[1]).hide().appendTo(a).on("click",d.proxy(function(){this.next(e.navSpeed)},this));for(f in this._overrides){this._core[f]=d.proxy(this[f],this)}},c.prototype.destroy=function(){var f,e,h,g;for(f in this._handlers){this.$element.off(f,this._handlers[f])}for(e in this._controls){this._controls[e].remove()}for(g in this.overides){this._core[g]=this._overrides[g]}for(h in Object.getOwnPropertyNames(this)){"function"!=typeof this[h]&&(this[h]=null)}},c.prototype.update=function(){var i,h,n,m=this._core.settings,l=this._core.clones().length/2,k=l+this._core.items().length,j=m.center||m.autoWidth||m.dotData?1:m.dotsEach||m.items;if("page"!==m.slideBy&&(m.slideBy=Math.min(m.slideBy,m.items)),m.dots||"page"==m.slideBy){for(this._pages=[],i=l,h=0,n=0;k>i;i++){(h>=j||0===h)&&(this._pages.push({start:i-l,end:i-l+j-1}),h=0,++n),h+=this._core.mergers(this._core.relative(i))}}},c.prototype.draw=function(){var a,j,i="",h=this._core.settings,g=(this._core.$stage.children(),this._core.relative(this._core.current()));if(!h.nav||h.loop||h.navRewind||(this._controls.$previous.toggleClass("disabled",0>=g),this._controls.$next.toggleClass("disabled",g>=this._core.maximum())),this._controls.$previous.toggle(h.nav),this._controls.$next.toggle(h.nav),h.dots){if(a=this._pages.length-this._controls.$indicators.children().length,h.dotData&&0!==a){for(j=0;j<this._controls.$indicators.children().length;j++){i+=this._templates[this._core.relative(j)]}this._controls.$indicators.html(i)}else{a>0?(i=new Array(a+1).join(this._templates[0]),this._controls.$indicators.append(i)):0>a&&this._controls.$indicators.children().slice(a).remove()}this._controls.$indicators.find(".active").removeClass("active"),this._controls.$indicators.children().eq(d.inArray(this.current(),this._pages)).addClass("active")}this._controls.$indicators.toggle(h.dots)},c.prototype.onTrigger=function(a){var e=this._core.settings;a.page={index:d.inArray(this.current(),this._pages),count:this._pages.length,size:e&&(e.center||e.autoWidth||e.dotData?1:e.dotsEach||e.items)}},c.prototype.current=function(){var a=this._core.relative(this._core.current());return d.grep(this._pages,function(b){return b.start<=a&&b.end>=a}).pop()},c.prototype.getPosition=function(a){var h,g,f=this._core.settings;return"page"==f.slideBy?(h=d.inArray(this.current(),this._pages),g=this._pages.length,a?++h:--h,h=this._pages[(h%g+g)%g].start):(h=this._core.relative(this._core.current()),g=this._core.items().length,a?h+=f.slideBy:h-=f.slideBy),h},c.prototype.next=function(a){d.proxy(this._overrides.to,this._core)(this.getPosition(!0),a)},c.prototype.prev=function(a){d.proxy(this._overrides.to,this._core)(this.getPosition(!1),a)},c.prototype.to=function(a,h,g){var f;g?d.proxy(this._overrides.to,this._core)(a,h):(f=this._pages.length,d.proxy(this._overrides.to,this._core)(this._pages[(a%f+f)%f].start,h))},d.fn.owlCarousel.Constructor.Plugins.Navigation=c}(window.Zepto||window.jQuery,window,document),function(e,d){var f=function(a){this._core=a,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":e.proxy(function(){"URLHash"==this._core.settings.startPosition&&e(d).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":e.proxy(function(g){var h=e(g.content).find("[data-hash]").andSelf("[data-hash]").attr("data-hash");this._hashes[h]=g.content},this)},this._core.options=e.extend({},f.Defaults,this._core.options),this.$element.on(this._handlers),e(d).on("hashchange.owl.navigation",e.proxy(function(){var b=d.location.hash.substring(1),h=this._core.$stage.children(),g=this._hashes[b]&&h.index(this._hashes[b])||0;return b?void this._core.to(g,!1,!0):!1},this))};f.Defaults={URLhashListener:!1},f.prototype.destroy=function(){var b,a;e(d).off("hashchange.owl.navigation");for(b in this._handlers){this._core.$element.off(b,this._handlers[b])}for(a in Object.getOwnPropertyNames(this)){"function"!=typeof this[a]&&(this[a]=null)}},e.fn.owlCarousel.Constructor.Plugins.Hash=f}(window.Zepto||window.jQuery,window,document);

(function($){"use strict";var F=$.fancybox,format=function(url,rez,params){params=params||'';if($.type(params)==="object"){params=$.param(params,!0)}
$.each(rez,function(key,value){url=url.replace('$'+key,value||'')});if(params.length){url+=(url.indexOf('?')>0?'&':'?')+params}
return url};F.helpers.media={defaults:{youtube:{matcher:/(youtube\.com|youtu\.be|youtube-nocookie\.com)\/(watch\?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*)).*/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:'opaque',enablejsapi:1},type:'iframe',url:'//www.youtube.com/embed/$3'},vimeo:{matcher:/(?:vimeo(?:pro)?.com)\/(?:[^\d]+)?(\d+)(?:.*)/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},type:'iframe',url:'//player.vimeo.com/video/$1'},metacafe:{matcher:/metacafe.com\/(?:watch|fplayer)\/([\w\-]{1,10})/,params:{autoPlay:'yes'},type:'swf',url:function(rez,params,obj){obj.swf.flashVars='playerVars='+$.param(params,!0);return '//www.metacafe.com/fplayer/'+rez[1]+'/.swf'}},dailymotion:{matcher:/dailymotion.com\/video\/(.*)\/?(.*)/,params:{additionalInfos:0,autoStart:1},type:'swf',url:'//www.dailymotion.com/swf/video/$1'},twitvid:{matcher:/twitvid\.com\/([a-zA-Z0-9_\-\?\=]+)/i,params:{autoplay:0},type:'iframe',url:'//www.twitvid.com/embed.php?guid=$1'},twitpic:{matcher:/twitpic\.com\/(?!(?:place|photos|events)\/)([a-zA-Z0-9\?\=\-]+)/i,type:'image',url:'//twitpic.com/show/full/$1/'},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:'image',url:'//$1/p/$2/media/?size=l'},google_maps:{matcher:/maps\.google\.([a-z]{2,3}(\.[a-z]{2})?)\/(\?ll=|maps\?)(.*)/i,type:'iframe',url:function(rez){return '//maps.google.'+rez[1]+'/'+rez[3]+''+rez[4]+'&output='+(rez[4].indexOf('layer=c')>0?'svembed':'embed')}}},beforeLoad:function(opts,obj){var url=obj.href||'',type=!1,what,item,rez,params;for(what in opts){if(opts.hasOwnProperty(what)){item=opts[what];rez=url.match(item.matcher);if(rez){type=item.type;params=$.extend(!0,{},item.params,obj[what]||($.isPlainObject(opts[what])?opts[what].params:null));url=$.type(item.url)==="function"?item.url.call(this,rez,params,obj):format(item.url,rez,params);break}}}
if(type){obj.href=url;obj.type=type;obj.autoHeight=!1}}}}(jQuery))

/*
 * jQuery FlexSlider v2.6.3
 * Copyright 2012 WooThemes
 * Contributing Author: Tyler Smith
 */
 
 !function($){var e=!0;$.flexslider=function(t,a){var n=$(t);n.vars=$.extend({},$.flexslider.defaults,a);var i=n.vars.namespace,s=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture,r=("ontouchstart"in window||s||window.DocumentTouch&&document instanceof DocumentTouch)&&n.vars.touch,o="click touchend MSPointerUp keyup",l="",c,d="vertical"===n.vars.direction,u=n.vars.reverse,v=n.vars.itemWidth>0,p="fade"===n.vars.animation,m=""!==n.vars.asNavFor,f={};$.data(t,"flexslider",n),f={init:function(){n.animating=!1,n.currentSlide=parseInt(n.vars.startAt?n.vars.startAt:0,10),isNaN(n.currentSlide)&&(n.currentSlide=0),n.animatingTo=n.currentSlide,n.atEnd=0===n.currentSlide||n.currentSlide===n.last,n.containerSelector=n.vars.selector.substr(0,n.vars.selector.search(" ")),n.slides=$(n.vars.selector,n),n.container=$(n.containerSelector,n),n.count=n.slides.length,n.syncExists=$(n.vars.sync).length>0,"slide"===n.vars.animation&&(n.vars.animation="swing"),n.prop=d?"top":"marginLeft",n.args={},n.manualPause=!1,n.stopped=!1,n.started=!1,n.startTimeout=null,n.transitions=!n.vars.video&&!p&&n.vars.useCSS&&function(){var e=document.createElement("div"),t=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var a in t)if(void 0!==e.style[t[a]])return n.pfx=t[a].replace("Perspective","").toLowerCase(),n.prop="-"+n.pfx+"-transform",!0;return!1}(),n.ensureAnimationEnd="",""!==n.vars.controlsContainer&&(n.controlsContainer=$(n.vars.controlsContainer).length>0&&$(n.vars.controlsContainer)),""!==n.vars.manualControls&&(n.manualControls=$(n.vars.manualControls).length>0&&$(n.vars.manualControls)),""!==n.vars.customDirectionNav&&(n.customDirectionNav=2===$(n.vars.customDirectionNav).length&&$(n.vars.customDirectionNav)),n.vars.randomize&&(n.slides.sort(function(){return Math.round(Math.random())-.5}),n.container.empty().append(n.slides)),n.doMath(),n.setup("init"),n.vars.controlNav&&f.controlNav.setup(),n.vars.directionNav&&f.directionNav.setup(),n.vars.keyboard&&(1===$(n.containerSelector).length||n.vars.multipleKeyboard)&&$(document).bind("keyup",function(e){var t=e.keyCode;if(!n.animating&&(39===t||37===t)){var a=39===t?n.getTarget("next"):37===t?n.getTarget("prev"):!1;n.flexAnimate(a,n.vars.pauseOnAction)}}),n.vars.mousewheel&&n.bind("mousewheel",function(e,t,a,i){e.preventDefault();var s=0>t?n.getTarget("next"):n.getTarget("prev");n.flexAnimate(s,n.vars.pauseOnAction)}),n.vars.pausePlay&&f.pausePlay.setup(),n.vars.slideshow&&n.vars.pauseInvisible&&f.pauseInvisible.init(),n.vars.slideshow&&(n.vars.pauseOnHover&&n.hover(function(){n.manualPlay||n.manualPause||n.pause()},function(){n.manualPause||n.manualPlay||n.stopped||n.play()}),n.vars.pauseInvisible&&f.pauseInvisible.isHidden()||(n.vars.initDelay>0?n.startTimeout=setTimeout(n.play,n.vars.initDelay):n.play())),m&&f.asNav.setup(),r&&n.vars.touch&&f.touch(),(!p||p&&n.vars.smoothHeight)&&$(window).bind("resize orientationchange focus",f.resize),n.find("img").attr("draggable","false"),setTimeout(function(){n.vars.start(n)},200)},asNav:{setup:function(){n.asNav=!0,n.animatingTo=Math.floor(n.currentSlide/n.move),n.currentItem=n.currentSlide,n.slides.removeClass(i+"active-slide").eq(n.currentItem).addClass(i+"active-slide"),s?(t._slider=n,n.slides.each(function(){var e=this;e._gesture=new MSGesture,e._gesture.target=e,e.addEventListener("MSPointerDown",function(e){e.preventDefault(),e.currentTarget._gesture&&e.currentTarget._gesture.addPointer(e.pointerId)},!1),e.addEventListener("MSGestureTap",function(e){e.preventDefault();var t=$(this),a=t.index();$(n.vars.asNavFor).data("flexslider").animating||t.hasClass("active")||(n.direction=n.currentItem<a?"next":"prev",n.flexAnimate(a,n.vars.pauseOnAction,!1,!0,!0))})})):n.slides.on(o,function(e){e.preventDefault();var t=$(this),a=t.index(),s=t.offset().left-$(n).scrollLeft();0>=s&&t.hasClass(i+"active-slide")?n.flexAnimate(n.getTarget("prev"),!0):$(n.vars.asNavFor).data("flexslider").animating||t.hasClass(i+"active-slide")||(n.direction=n.currentItem<a?"next":"prev",n.flexAnimate(a,n.vars.pauseOnAction,!1,!0,!0))})}},controlNav:{setup:function(){n.manualControls?f.controlNav.setupManual():f.controlNav.setupPaging()},setupPaging:function(){var e="thumbnails"===n.vars.controlNav?"control-thumbs":"control-paging",t=1,a,s;if(n.controlNavScaffold=$('<ol class="'+i+"control-nav "+i+e+'"></ol>'),n.pagingCount>1)for(var r=0;r<n.pagingCount;r++){s=n.slides.eq(r),void 0===s.attr("data-thumb-alt")&&s.attr("data-thumb-alt","");var c=""!==s.attr("data-thumb-alt")?c=' alt="'+s.attr("data-thumb-alt")+'"':"";if(a="thumbnails"===n.vars.controlNav?'<img src="'+s.attr("data-thumb")+'"'+c+"/>":'<a href="#">'+t+"</a>","thumbnails"===n.vars.controlNav&&!0===n.vars.thumbCaptions){var d=s.attr("data-thumbcaption");""!==d&&void 0!==d&&(a+='<span class="'+i+'caption">'+d+"</span>")}n.controlNavScaffold.append("<li>"+a+"</li>"),t++}n.controlsContainer?$(n.controlsContainer).append(n.controlNavScaffold):n.append(n.controlNavScaffold),f.controlNav.set(),f.controlNav.active(),n.controlNavScaffold.delegate("a, img",o,function(e){if(e.preventDefault(),""===l||l===e.type){var t=$(this),a=n.controlNav.index(t);t.hasClass(i+"active")||(n.direction=a>n.currentSlide?"next":"prev",n.flexAnimate(a,n.vars.pauseOnAction))}""===l&&(l=e.type),f.setToClearWatchedEvent()})},setupManual:function(){n.controlNav=n.manualControls,f.controlNav.active(),n.controlNav.bind(o,function(e){if(e.preventDefault(),""===l||l===e.type){var t=$(this),a=n.controlNav.index(t);t.hasClass(i+"active")||(a>n.currentSlide?n.direction="next":n.direction="prev",n.flexAnimate(a,n.vars.pauseOnAction))}""===l&&(l=e.type),f.setToClearWatchedEvent()})},set:function(){var e="thumbnails"===n.vars.controlNav?"img":"a";n.controlNav=$("."+i+"control-nav li "+e,n.controlsContainer?n.controlsContainer:n)},active:function(){n.controlNav.removeClass(i+"active").eq(n.animatingTo).addClass(i+"active")},update:function(e,t){n.pagingCount>1&&"add"===e?n.controlNavScaffold.append($('<li><a href="#">'+n.count+"</a></li>")):1===n.pagingCount?n.controlNavScaffold.find("li").remove():n.controlNav.eq(t).closest("li").remove(),f.controlNav.set(),n.pagingCount>1&&n.pagingCount!==n.controlNav.length?n.update(t,e):f.controlNav.active()}},directionNav:{setup:function(){var e=$('<ul class="'+i+'direction-nav"><li class="'+i+'nav-prev"><a class="'+i+'prev" href="#">'+n.vars.prevText+'</a></li><li class="'+i+'nav-next"><a class="'+i+'next" href="#">'+n.vars.nextText+"</a></li></ul>");n.customDirectionNav?n.directionNav=n.customDirectionNav:n.controlsContainer?($(n.controlsContainer).append(e),n.directionNav=$("."+i+"direction-nav li a",n.controlsContainer)):(n.append(e),n.directionNav=$("."+i+"direction-nav li a",n)),f.directionNav.update(),n.directionNav.bind(o,function(e){e.preventDefault();var t;""!==l&&l!==e.type||(t=$(this).hasClass(i+"next")?n.getTarget("next"):n.getTarget("prev"),n.flexAnimate(t,n.vars.pauseOnAction)),""===l&&(l=e.type),f.setToClearWatchedEvent()})},update:function(){var e=i+"disabled";1===n.pagingCount?n.directionNav.addClass(e).attr("tabindex","-1"):n.vars.animationLoop?n.directionNav.removeClass(e).removeAttr("tabindex"):0===n.animatingTo?n.directionNav.removeClass(e).filter("."+i+"prev").addClass(e).attr("tabindex","-1"):n.animatingTo===n.last?n.directionNav.removeClass(e).filter("."+i+"next").addClass(e).attr("tabindex","-1"):n.directionNav.removeClass(e).removeAttr("tabindex")}},pausePlay:{setup:function(){var e=$('<div class="'+i+'pauseplay"><a href="#"></a></div>');n.controlsContainer?(n.controlsContainer.append(e),n.pausePlay=$("."+i+"pauseplay a",n.controlsContainer)):(n.append(e),n.pausePlay=$("."+i+"pauseplay a",n)),f.pausePlay.update(n.vars.slideshow?i+"pause":i+"play"),n.pausePlay.bind(o,function(e){e.preventDefault(),""!==l&&l!==e.type||($(this).hasClass(i+"pause")?(n.manualPause=!0,n.manualPlay=!1,n.pause()):(n.manualPause=!1,n.manualPlay=!0,n.play())),""===l&&(l=e.type),f.setToClearWatchedEvent()})},update:function(e){"play"===e?n.pausePlay.removeClass(i+"pause").addClass(i+"play").html(n.vars.playText):n.pausePlay.removeClass(i+"play").addClass(i+"pause").html(n.vars.pauseText)}},touch:function(){function e(e){e.stopPropagation(),n.animating?e.preventDefault():(n.pause(),t._gesture.addPointer(e.pointerId),T=0,c=d?n.h:n.w,f=Number(new Date),l=v&&u&&n.animatingTo===n.last?0:v&&u?n.limit-(n.itemW+n.vars.itemMargin)*n.move*n.animatingTo:v&&n.currentSlide===n.last?n.limit:v?(n.itemW+n.vars.itemMargin)*n.move*n.currentSlide:u?(n.last-n.currentSlide+n.cloneOffset)*c:(n.currentSlide+n.cloneOffset)*c)}function a(e){e.stopPropagation();var a=e.target._slider;if(a){var n=-e.translationX,i=-e.translationY;return T+=d?i:n,m=T,y=d?Math.abs(T)<Math.abs(-n):Math.abs(T)<Math.abs(-i),e.detail===e.MSGESTURE_FLAG_INERTIA?void setImmediate(function(){t._gesture.stop()}):void((!y||Number(new Date)-f>500)&&(e.preventDefault(),!p&&a.transitions&&(a.vars.animationLoop||(m=T/(0===a.currentSlide&&0>T||a.currentSlide===a.last&&T>0?Math.abs(T)/c+2:1)),a.setProps(l+m,"setTouch"))))}}function i(e){e.stopPropagation();var t=e.target._slider;if(t){if(t.animatingTo===t.currentSlide&&!y&&null!==m){var a=u?-m:m,n=a>0?t.getTarget("next"):t.getTarget("prev");t.canAdvance(n)&&(Number(new Date)-f<550&&Math.abs(a)>50||Math.abs(a)>c/2)?t.flexAnimate(n,t.vars.pauseOnAction):p||t.flexAnimate(t.currentSlide,t.vars.pauseOnAction,!0)}r=null,o=null,m=null,l=null,T=0}}var r,o,l,c,m,f,g,h,S,y=!1,x=0,b=0,T=0;s?(t.style.msTouchAction="none",t._gesture=new MSGesture,t._gesture.target=t,t.addEventListener("MSPointerDown",e,!1),t._slider=n,t.addEventListener("MSGestureChange",a,!1),t.addEventListener("MSGestureEnd",i,!1)):(g=function(e){n.animating?e.preventDefault():(window.navigator.msPointerEnabled||1===e.touches.length)&&(n.pause(),c=d?n.h:n.w,f=Number(new Date),x=e.touches[0].pageX,b=e.touches[0].pageY,l=v&&u&&n.animatingTo===n.last?0:v&&u?n.limit-(n.itemW+n.vars.itemMargin)*n.move*n.animatingTo:v&&n.currentSlide===n.last?n.limit:v?(n.itemW+n.vars.itemMargin)*n.move*n.currentSlide:u?(n.last-n.currentSlide+n.cloneOffset)*c:(n.currentSlide+n.cloneOffset)*c,r=d?b:x,o=d?x:b,t.addEventListener("touchmove",h,!1),t.addEventListener("touchend",S,!1))},h=function(e){x=e.touches[0].pageX,b=e.touches[0].pageY,m=d?r-b:r-x,y=d?Math.abs(m)<Math.abs(x-o):Math.abs(m)<Math.abs(b-o);var t=500;(!y||Number(new Date)-f>t)&&(e.preventDefault(),!p&&n.transitions&&(n.vars.animationLoop||(m/=0===n.currentSlide&&0>m||n.currentSlide===n.last&&m>0?Math.abs(m)/c+2:1),n.setProps(l+m,"setTouch")))},S=function(e){if(t.removeEventListener("touchmove",h,!1),n.animatingTo===n.currentSlide&&!y&&null!==m){var a=u?-m:m,i=a>0?n.getTarget("next"):n.getTarget("prev");n.canAdvance(i)&&(Number(new Date)-f<550&&Math.abs(a)>50||Math.abs(a)>c/2)?n.flexAnimate(i,n.vars.pauseOnAction):p||n.flexAnimate(n.currentSlide,n.vars.pauseOnAction,!0)}t.removeEventListener("touchend",S,!1),r=null,o=null,m=null,l=null},t.addEventListener("touchstart",g,!1))},resize:function(){!n.animating&&n.is(":visible")&&(v||n.doMath(),p?f.smoothHeight():v?(n.slides.width(n.computedW),n.update(n.pagingCount),n.setProps()):d?(n.viewport.height(n.h),n.setProps(n.h,"setTotal")):(n.vars.smoothHeight&&f.smoothHeight(),n.newSlides.width(n.computedW),n.setProps(n.computedW,"setTotal")))},smoothHeight:function(e){if(!d||p){var t=p?n:n.viewport;e?t.animate({height:n.slides.eq(n.animatingTo).innerHeight()},e):t.innerHeight(n.slides.eq(n.animatingTo).innerHeight())}},sync:function(e){var t=$(n.vars.sync).data("flexslider"),a=n.animatingTo;switch(e){case"animate":t.flexAnimate(a,n.vars.pauseOnAction,!1,!0);break;case"play":t.playing||t.asNav||t.play();break;case"pause":t.pause()}},uniqueID:function(e){return e.filter("[id]").add(e.find("[id]")).each(function(){var e=$(this);e.attr("id",e.attr("id")+"_clone")}),e},pauseInvisible:{visProp:null,init:function(){var e=f.pauseInvisible.getHiddenProp();if(e){var t=e.replace(/[H|h]idden/,"")+"visibilitychange";document.addEventListener(t,function(){f.pauseInvisible.isHidden()?n.startTimeout?clearTimeout(n.startTimeout):n.pause():n.started?n.play():n.vars.initDelay>0?setTimeout(n.play,n.vars.initDelay):n.play()})}},isHidden:function(){var e=f.pauseInvisible.getHiddenProp();return e?document[e]:!1},getHiddenProp:function(){var e=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var t=0;t<e.length;t++)if(e[t]+"Hidden"in document)return e[t]+"Hidden";return null}},setToClearWatchedEvent:function(){clearTimeout(c),c=setTimeout(function(){l=""},3e3)}},n.flexAnimate=function(e,t,a,s,o){if(n.vars.animationLoop||e===n.currentSlide||(n.direction=e>n.currentSlide?"next":"prev"),m&&1===n.pagingCount&&(n.direction=n.currentItem<e?"next":"prev"),!n.animating&&(n.canAdvance(e,o)||a)&&n.is(":visible")){if(m&&s){var l=$(n.vars.asNavFor).data("flexslider");if(n.atEnd=0===e||e===n.count-1,l.flexAnimate(e,!0,!1,!0,o),n.direction=n.currentItem<e?"next":"prev",l.direction=n.direction,Math.ceil((e+1)/n.visible)-1===n.currentSlide||0===e)return n.currentItem=e,n.slides.removeClass(i+"active-slide").eq(e).addClass(i+"active-slide"),!1;n.currentItem=e,n.slides.removeClass(i+"active-slide").eq(e).addClass(i+"active-slide"),e=Math.floor(e/n.visible)}if(n.animating=!0,n.animatingTo=e,t&&n.pause(),n.vars.before(n),n.syncExists&&!o&&f.sync("animate"),n.vars.controlNav&&f.controlNav.active(),v||n.slides.removeClass(i+"active-slide").eq(e).addClass(i+"active-slide"),n.atEnd=0===e||e===n.last,n.vars.directionNav&&f.directionNav.update(),e===n.last&&(n.vars.end(n),n.vars.animationLoop||n.pause()),p)r?(n.slides.eq(n.currentSlide).css({opacity:0,zIndex:1}),n.slides.eq(e).css({opacity:1,zIndex:2}),n.wrapup(c)):(n.slides.eq(n.currentSlide).css({zIndex:1}).animate({opacity:0},n.vars.animationSpeed,n.vars.easing),n.slides.eq(e).css({zIndex:2}).animate({opacity:1},n.vars.animationSpeed,n.vars.easing,n.wrapup));else{var c=d?n.slides.filter(":first").height():n.computedW,g,h,S;v?(g=n.vars.itemMargin,S=(n.itemW+g)*n.move*n.animatingTo,h=S>n.limit&&1!==n.visible?n.limit:S):h=0===n.currentSlide&&e===n.count-1&&n.vars.animationLoop&&"next"!==n.direction?u?(n.count+n.cloneOffset)*c:0:n.currentSlide===n.last&&0===e&&n.vars.animationLoop&&"prev"!==n.direction?u?0:(n.count+1)*c:u?(n.count-1-e+n.cloneOffset)*c:(e+n.cloneOffset)*c,n.setProps(h,"",n.vars.animationSpeed),n.transitions?(n.vars.animationLoop&&n.atEnd||(n.animating=!1,n.currentSlide=n.animatingTo),n.container.unbind("webkitTransitionEnd transitionend"),n.container.bind("webkitTransitionEnd transitionend",function(){clearTimeout(n.ensureAnimationEnd),n.wrapup(c)}),clearTimeout(n.ensureAnimationEnd),n.ensureAnimationEnd=setTimeout(function(){n.wrapup(c)},n.vars.animationSpeed+100)):n.container.animate(n.args,n.vars.animationSpeed,n.vars.easing,function(){n.wrapup(c)})}n.vars.smoothHeight&&f.smoothHeight(n.vars.animationSpeed)}},n.wrapup=function(e){p||v||(0===n.currentSlide&&n.animatingTo===n.last&&n.vars.animationLoop?n.setProps(e,"jumpEnd"):n.currentSlide===n.last&&0===n.animatingTo&&n.vars.animationLoop&&n.setProps(e,"jumpStart")),n.animating=!1,n.currentSlide=n.animatingTo,n.vars.after(n)},n.animateSlides=function(){!n.animating&&e&&n.flexAnimate(n.getTarget("next"))},n.pause=function(){clearInterval(n.animatedSlides),n.animatedSlides=null,n.playing=!1,n.vars.pausePlay&&f.pausePlay.update("play"),n.syncExists&&f.sync("pause")},n.play=function(){n.playing&&clearInterval(n.animatedSlides),n.animatedSlides=n.animatedSlides||setInterval(n.animateSlides,n.vars.slideshowSpeed),n.started=n.playing=!0,n.vars.pausePlay&&f.pausePlay.update("pause"),n.syncExists&&f.sync("play")},n.stop=function(){n.pause(),n.stopped=!0},n.canAdvance=function(e,t){var a=m?n.pagingCount-1:n.last;return t?!0:m&&n.currentItem===n.count-1&&0===e&&"prev"===n.direction?!0:m&&0===n.currentItem&&e===n.pagingCount-1&&"next"!==n.direction?!1:e!==n.currentSlide||m?n.vars.animationLoop?!0:n.atEnd&&0===n.currentSlide&&e===a&&"next"!==n.direction?!1:!n.atEnd||n.currentSlide!==a||0!==e||"next"!==n.direction:!1},n.getTarget=function(e){return n.direction=e,"next"===e?n.currentSlide===n.last?0:n.currentSlide+1:0===n.currentSlide?n.last:n.currentSlide-1},n.setProps=function(e,t,a){var i=function(){var a=e?e:(n.itemW+n.vars.itemMargin)*n.move*n.animatingTo,i=function(){if(v)return"setTouch"===t?e:u&&n.animatingTo===n.last?0:u?n.limit-(n.itemW+n.vars.itemMargin)*n.move*n.animatingTo:n.animatingTo===n.last?n.limit:a;switch(t){case"setTotal":return u?(n.count-1-n.currentSlide+n.cloneOffset)*e:(n.currentSlide+n.cloneOffset)*e;case"setTouch":return u?e:e;case"jumpEnd":return u?e:n.count*e;case"jumpStart":return u?n.count*e:e;default:return e}}();return-1*i+"px"}();n.transitions&&(i=d?"translate3d(0,"+i+",0)":"translate3d("+i+",0,0)",a=void 0!==a?a/1e3+"s":"0s",n.container.css("-"+n.pfx+"-transition-duration",a),n.container.css("transition-duration",a)),n.args[n.prop]=i,(n.transitions||void 0===a)&&n.container.css(n.args),n.container.css("transform",i)},n.setup=function(e){if(p)n.slides.css({width:"100%","float":"left",marginRight:"-100%",position:"relative"}),"init"===e&&(r?n.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+n.vars.animationSpeed/1e3+"s ease",zIndex:1}).eq(n.currentSlide).css({opacity:1,zIndex:2}):0==n.vars.fadeFirstSlide?n.slides.css({opacity:0,display:"block",zIndex:1}).eq(n.currentSlide).css({zIndex:2}).css({opacity:1}):n.slides.css({opacity:0,display:"block",zIndex:1}).eq(n.currentSlide).css({zIndex:2}).animate({opacity:1},n.vars.animationSpeed,n.vars.easing)),n.vars.smoothHeight&&f.smoothHeight();else{var t,a;"init"===e&&(n.viewport=$('<div class="'+i+'viewport"></div>').css({overflow:"hidden",position:"relative"}).appendTo(n).append(n.container),n.cloneCount=0,n.cloneOffset=0,u&&(a=$.makeArray(n.slides).reverse(),n.slides=$(a),n.container.empty().append(n.slides))),n.vars.animationLoop&&!v&&(n.cloneCount=2,n.cloneOffset=1,"init"!==e&&n.container.find(".clone").remove(),n.container.append(f.uniqueID(n.slides.first().clone().addClass("clone")).attr("aria-hidden","true")).prepend(f.uniqueID(n.slides.last().clone().addClass("clone")).attr("aria-hidden","true"))),n.newSlides=$(n.vars.selector,n),t=u?n.count-1-n.currentSlide+n.cloneOffset:n.currentSlide+n.cloneOffset,d&&!v?(n.container.height(200*(n.count+n.cloneCount)+"%").css("position","absolute").width("100%"),setTimeout(function(){n.newSlides.css({display:"block"}),n.doMath(),n.viewport.height(n.h),n.setProps(t*n.h,"init")},"init"===e?100:0)):(n.container.width(200*(n.count+n.cloneCount)+"%"),n.setProps(t*n.computedW,"init"),setTimeout(function(){n.doMath(),n.newSlides.css({width:n.computedW,marginRight:n.computedM,"float":"left",display:"block"}),n.vars.smoothHeight&&f.smoothHeight()},"init"===e?100:0))}v||n.slides.removeClass(i+"active-slide").eq(n.currentSlide).addClass(i+"active-slide"),n.vars.init(n)},n.doMath=function(){var e=n.slides.first(),t=n.vars.itemMargin,a=n.vars.minItems,i=n.vars.maxItems;n.w=void 0===n.viewport?n.width():n.viewport.width(),n.h=e.height(),n.boxPadding=e.outerWidth()-e.width(),v?(n.itemT=n.vars.itemWidth+t,n.itemM=t,n.minW=a?a*n.itemT:n.w,n.maxW=i?i*n.itemT-t:n.w,n.itemW=n.minW>n.w?(n.w-t*(a-1))/a:n.maxW<n.w?(n.w-t*(i-1))/i:n.vars.itemWidth>n.w?n.w:n.vars.itemWidth,n.visible=Math.floor(n.w/n.itemW),n.move=n.vars.move>0&&n.vars.move<n.visible?n.vars.move:n.visible,n.pagingCount=Math.ceil((n.count-n.visible)/n.move+1),n.last=n.pagingCount-1,n.limit=1===n.pagingCount?0:n.vars.itemWidth>n.w?n.itemW*(n.count-1)+t*(n.count-1):(n.itemW+t)*n.count-n.w-t):(n.itemW=n.w,n.itemM=t,n.pagingCount=n.count,n.last=n.count-1),n.computedW=n.itemW-n.boxPadding,n.computedM=n.itemM},n.update=function(e,t){n.doMath(),v||(e<n.currentSlide?n.currentSlide+=1:e<=n.currentSlide&&0!==e&&(n.currentSlide-=1),n.animatingTo=n.currentSlide),n.vars.controlNav&&!n.manualControls&&("add"===t&&!v||n.pagingCount>n.controlNav.length?f.controlNav.update("add"):("remove"===t&&!v||n.pagingCount<n.controlNav.length)&&(v&&n.currentSlide>n.last&&(n.currentSlide-=1,n.animatingTo-=1),f.controlNav.update("remove",n.last))),n.vars.directionNav&&f.directionNav.update()},n.addSlide=function(e,t){var a=$(e);n.count+=1,n.last=n.count-1,d&&u?void 0!==t?n.slides.eq(n.count-t).after(a):n.container.prepend(a):void 0!==t?n.slides.eq(t).before(a):n.container.append(a),n.update(t,"add"),n.slides=$(n.vars.selector+":not(.clone)",n),n.setup(),n.vars.added(n)},n.removeSlide=function(e){var t=isNaN(e)?n.slides.index($(e)):e;n.count-=1,n.last=n.count-1,isNaN(e)?$(e,n.slides).remove():d&&u?n.slides.eq(n.last).remove():n.slides.eq(e).remove(),n.doMath(),n.update(t,"remove"),n.slides=$(n.vars.selector+":not(.clone)",n),n.setup(),n.vars.removed(n)},f.init()},$(window).blur(function(t){e=!1}).focus(function(t){e=!0}),$.flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:!1,animationLoop:!0,smoothHeight:!1,startAt:0,slideshow:!0,slideshowSpeed:7e3,animationSpeed:600,initDelay:0,randomize:!1,fadeFirstSlide:!0,thumbCaptions:!1,pauseOnAction:!0,pauseOnHover:!1,pauseInvisible:!0,useCSS:!0,touch:!0,video:!1,controlNav:!0,directionNav:!0,prevText:"Previous",nextText:"Next",keyboard:!0,multipleKeyboard:!1,mousewheel:!1,pausePlay:!1,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",customDirectionNav:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:1,maxItems:0,move:0,allowOneSlide:!0,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){},init:function(){}},$.fn.flexslider=function(e){if(void 0===e&&(e={}),"object"==typeof e)return this.each(function(){var t=$(this),a=e.selector?e.selector:".slides > li",n=t.find(a);1===n.length&&e.allowOneSlide===!1||0===n.length?(n.fadeIn(400),e.start&&e.start(t)):void 0===t.data("flexslider")&&new $.flexslider(this,e)});var t=$(this).data("flexslider");switch(e){case"play":t.play();break;case"pause":t.pause();break;case"stop":t.stop();break;case"next":t.flexAnimate(t.getTarget("next"),!0);break;case"prev":case"previous":t.flexAnimate(t.getTarget("prev"),!0);break;default:"number"==typeof e&&t.flexAnimate(e,!0)}}}(jQuery);

 /*
 * jQuery Nivo Slider v3.2
 * http://nivo.dev7studios.com
 *
 * Copyright 2012, Dev7studios
 * Free to use and abuse under the MIT license.
 * http://www.opensource.org/licenses/mit-license.php
 */

(function(e){var t=function(t,n){var r=e.extend({},e.fn.nivoSlider.defaults,n);var i={currentSlide:0,currentImage:"",totalSlides:0,running:false,paused:false,stop:false,controlNavEl:false};var s=e(t);s.data("nivo:vars",i).addClass("nivoSlider");var o=s.children();o.each(function(){var t=e(this);var n="";if(!t.is("img")){if(t.is("a")){t.addClass("nivo-imageLink");n=t}t=t.find("img:first")}var r=r===0?t.attr("width"):t.width(),s=s===0?t.attr("height"):t.height();if(n!==""){n.css("display","none")}t.css("display","none");i.totalSlides++});if(r.randomStart){r.startSlide=Math.floor(Math.random()*i.totalSlides)}if(r.startSlide>0){if(r.startSlide>=i.totalSlides){r.startSlide=i.totalSlides-1}i.currentSlide=r.startSlide}if(e(o[i.currentSlide]).is("img")){i.currentImage=e(o[i.currentSlide])}else{i.currentImage=e(o[i.currentSlide]).find("img:first")}if(e(o[i.currentSlide]).is("a")){e(o[i.currentSlide]).css("display","block")}var u=e("<img/>").addClass("nivo-main-image");u.attr("src",i.currentImage.attr("src")).show();s.append(u);e(window).resize(function(){s.children("img").width(s.width());u.attr("src",i.currentImage.attr("src"));u.stop().height("auto");e(".nivo-slice").remove();e(".nivo-box").remove()});s.append(e('<div class="nivo-caption"></div>'));var a=function(t){var n=e(".nivo-caption",s);if(i.currentImage.attr("title")!=""&&i.currentImage.attr("title")!=undefined){var r=i.currentImage.attr("title");if(r.substr(0,1)=="#")r=e(r).html();if(n.css("display")=="block"){setTimeout(function(){n.html(r)},t.animSpeed)}else{n.html(r);n.stop().fadeIn(t.animSpeed)}}else{n.stop().fadeOut(t.animSpeed)}};a(r);var f=0;if(!r.manualAdvance&&o.length>1){f=setInterval(function(){d(s,o,r,false)},r.pauseTime)}if(r.directionNav){s.append('<div class="nivo-directionNav"><a class="nivo-prevNav">'+r.prevText+'</a><a class="nivo-nextNav">'+r.nextText+"</a></div>");e(s).on("click","a.nivo-prevNav",function(){if(i.running){return false}clearInterval(f);f="";i.currentSlide-=2;d(s,o,r,"prev")});e(s).on("click","a.nivo-nextNav",function(){if(i.running){return false}clearInterval(f);f="";d(s,o,r,"next")})}if(r.controlNav){i.controlNavEl=e('<div class="nivo-controlNav"></div>');s.after(i.controlNavEl);for(var l=0;l<o.length;l++){if(r.controlNavThumbs){i.controlNavEl.addClass("nivo-thumbs-enabled");var c=o.eq(l);if(!c.is("img")){c=c.find("img:first")}if(c.attr("data-thumb"))i.controlNavEl.append('<a class="nivo-control" rel="'+l+'"><img src="'+c.attr("data-thumb")+'" alt="" /></a>')}else{i.controlNavEl.append('<a class="nivo-control" rel="'+l+'">'+(l+1)+"</a>")}}e("a:eq("+i.currentSlide+")",i.controlNavEl).addClass("active");e("a",i.controlNavEl).bind("click",function(){if(i.running)return false;if(e(this).hasClass("active"))return false;clearInterval(f);f="";u.attr("src",i.currentImage.attr("src"));i.currentSlide=e(this).attr("rel")-1;d(s,o,r,"control")})}if(r.pauseOnHover){s.hover(function(){i.paused=true;clearInterval(f);f=""},function(){i.paused=false;if(f===""&&!r.manualAdvance){f=setInterval(function(){d(s,o,r,false)},r.pauseTime)}})}s.bind("nivo:animFinished",function(){u.attr("src",i.currentImage.attr("src"));i.running=false;e(o).each(function(){if(e(this).is("a")){e(this).css("display","none")}});if(e(o[i.currentSlide]).is("a")){e(o[i.currentSlide]).css("display","block")}if(f===""&&!i.paused&&!r.manualAdvance){f=setInterval(function(){d(s,o,r,false)},r.pauseTime)}r.afterChange.call(this)});var h=function(t,n,r){if(e(r.currentImage).parent().is("a"))e(r.currentImage).parent().css("display","block");e('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").width(t.width()).css("visibility","hidden").show();var i=e('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").parent().is("a")?e('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").parent().height():e('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").height();for(var s=0;s<n.slices;s++){var o=Math.round(t.width()/n.slices);if(s===n.slices-1){t.append(e('<div class="nivo-slice" name="'+s+'"><img src="'+r.currentImage.attr("src")+'" style="position:absolute; width:'+t.width()+"px; height:auto; display:block !important; top:0; left:-"+(o+s*o-o)+'px;" /></div>').css({left:o*s+"px",width:t.width()-o*s+"px",height:i+"px",opacity:"0",overflow:"hidden"}))}else{t.append(e('<div class="nivo-slice" name="'+s+'"><img src="'+r.currentImage.attr("src")+'" style="position:absolute; width:'+t.width()+"px; height:auto; display:block !important; top:0; left:-"+(o+s*o-o)+'px;" /></div>').css({left:o*s+"px",width:o+"px",height:i+"px",opacity:"0",overflow:"hidden"}))}}e(".nivo-slice",t).height(i);u.stop().animate({height:e(r.currentImage).height()},n.animSpeed)};var p=function(t,n,r){if(e(r.currentImage).parent().is("a"))e(r.currentImage).parent().css("display","block");e('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").width(t.width()).css("visibility","hidden").show();var i=Math.round(t.width()/n.boxCols),s=Math.round(e('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").height()/n.boxRows);for(var o=0;o<n.boxRows;o++){for(var a=0;a<n.boxCols;a++){if(a===n.boxCols-1){t.append(e('<div class="nivo-box" name="'+a+'" rel="'+o+'"><img src="'+r.currentImage.attr("src")+'" style="position:absolute; width:'+t.width()+"px; height:auto; display:block; top:-"+s*o+"px; left:-"+i*a+'px;" /></div>').css({opacity:0,left:i*a+"px",top:s*o+"px",width:t.width()-i*a+"px"}));e('.nivo-box[name="'+a+'"]',t).height(e('.nivo-box[name="'+a+'"] img',t).height()+"px")}else{t.append(e('<div class="nivo-box" name="'+a+'" rel="'+o+'"><img src="'+r.currentImage.attr("src")+'" style="position:absolute; width:'+t.width()+"px; height:auto; display:block; top:-"+s*o+"px; left:-"+i*a+'px;" /></div>').css({opacity:0,left:i*a+"px",top:s*o+"px",width:i+"px"}));e('.nivo-box[name="'+a+'"]',t).height(e('.nivo-box[name="'+a+'"] img',t).height()+"px")}}}u.stop().animate({height:e(r.currentImage).height()},n.animSpeed)};var d=function(t,n,r,i){var s=t.data("nivo:vars");if(s&&s.currentSlide===s.totalSlides-1){r.lastSlide.call(this)}if((!s||s.stop)&&!i){return false}r.beforeChange.call(this);if(!i){u.attr("src",s.currentImage.attr("src"))}else{if(i==="prev"){u.attr("src",s.currentImage.attr("src"))}if(i==="next"){u.attr("src",s.currentImage.attr("src"))}}s.currentSlide++;if(s.currentSlide===s.totalSlides){s.currentSlide=0;r.slideshowEnd.call(this)}if(s.currentSlide<0){s.currentSlide=s.totalSlides-1}if(e(n[s.currentSlide]).is("img")){s.currentImage=e(n[s.currentSlide])}else{s.currentImage=e(n[s.currentSlide]).find("img:first")}if(r.controlNav){e("a",s.controlNavEl).removeClass("active");e("a:eq("+s.currentSlide+")",s.controlNavEl).addClass("active")}a(r);e(".nivo-slice",t).remove();e(".nivo-box",t).remove();var o=r.effect,f="";if(r.effect==="random"){f=new Array("sliceDownRight","sliceDownLeft","sliceUpRight","sliceUpLeft","sliceUpDown","sliceUpDownLeft","fold","fade","boxRandom","boxRain","boxRainReverse","boxRainGrow","boxRainGrowReverse");o=f[Math.floor(Math.random()*(f.length+1))];if(o===undefined){o="fade"}}if(r.effect.indexOf(",")!==-1){f=r.effect.split(",");o=f[Math.floor(Math.random()*f.length)];if(o===undefined){o="fade"}}if(s.currentImage.attr("data-transition")){o=s.currentImage.attr("data-transition")}s.running=true;var l=0,c=0,d="",m="",g="",y="";if(o==="sliceDown"||o==="sliceDownRight"||o==="sliceDownLeft"){h(t,r,s);l=0;c=0;d=e(".nivo-slice",t);if(o==="sliceDownLeft"){d=e(".nivo-slice",t)._reverse()}d.each(function(){var n=e(this);n.css({top:"0px"});if(c===r.slices-1){setTimeout(function(){n.animate({opacity:"1.0"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+l)}else{setTimeout(function(){n.animate({opacity:"1.0"},r.animSpeed)},100+l)}l+=50;c++})}else if(o==="sliceUp"||o==="sliceUpRight"||o==="sliceUpLeft"){h(t,r,s);l=0;c=0;d=e(".nivo-slice",t);if(o==="sliceUpLeft"){d=e(".nivo-slice",t)._reverse()}d.each(function(){var n=e(this);n.css({bottom:"0px"});if(c===r.slices-1){setTimeout(function(){n.animate({opacity:"1.0"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+l)}else{setTimeout(function(){n.animate({opacity:"1.0"},r.animSpeed)},100+l)}l+=50;c++})}else if(o==="sliceUpDown"||o==="sliceUpDownRight"||o==="sliceUpDownLeft"){h(t,r,s);l=0;c=0;var b=0;d=e(".nivo-slice",t);if(o==="sliceUpDownLeft"){d=e(".nivo-slice",t)._reverse()}d.each(function(){var n=e(this);if(c===0){n.css("top","0px");c++}else{n.css("bottom","0px");c=0}if(b===r.slices-1){setTimeout(function(){n.animate({opacity:"1.0"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+l)}else{setTimeout(function(){n.animate({opacity:"1.0"},r.animSpeed)},100+l)}l+=50;b++})}else if(o==="fold"){h(t,r,s);l=0;c=0;e(".nivo-slice",t).each(function(){var n=e(this);var i=n.width();n.css({top:"0px",width:"0px"});if(c===r.slices-1){setTimeout(function(){n.animate({width:i,opacity:"1.0"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+l)}else{setTimeout(function(){n.animate({width:i,opacity:"1.0"},r.animSpeed)},100+l)}l+=50;c++})}else if(o==="fade"){h(t,r,s);m=e(".nivo-slice:first",t);m.css({width:t.width()+"px"});m.animate({opacity:"1.0"},r.animSpeed*2,"",function(){t.trigger("nivo:animFinished")})}else if(o==="slideInRight"){h(t,r,s);m=e(".nivo-slice:first",t);m.css({width:"0px",opacity:"1"});m.animate({width:t.width()+"px"},r.animSpeed*2,"",function(){t.trigger("nivo:animFinished")})}else if(o==="slideInLeft"){h(t,r,s);m=e(".nivo-slice:first",t);m.css({width:"0px",opacity:"1",left:"",right:"0px"});m.animate({width:t.width()+"px"},r.animSpeed*2,"",function(){m.css({left:"0px",right:""});t.trigger("nivo:animFinished")})}else if(o==="boxRandom"){p(t,r,s);g=r.boxCols*r.boxRows;c=0;l=0;y=v(e(".nivo-box",t));y.each(function(){var n=e(this);if(c===g-1){setTimeout(function(){n.animate({opacity:"1"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+l)}else{setTimeout(function(){n.animate({opacity:"1"},r.animSpeed)},100+l)}l+=20;c++})}else if(o==="boxRain"||o==="boxRainReverse"||o==="boxRainGrow"||o==="boxRainGrowReverse"){p(t,r,s);g=r.boxCols*r.boxRows;c=0;l=0;var w=0;var E=0;var S=[];S[w]=[];y=e(".nivo-box",t);if(o==="boxRainReverse"||o==="boxRainGrowReverse"){y=e(".nivo-box",t)._reverse()}y.each(function(){S[w][E]=e(this);E++;if(E===r.boxCols){w++;E=0;S[w]=[]}});for(var x=0;x<r.boxCols*2;x++){var T=x;for(var N=0;N<r.boxRows;N++){if(T>=0&&T<r.boxCols){(function(n,i,s,u,a){var f=e(S[n][i]);var l=f.width();var c=f.height();if(o==="boxRainGrow"||o==="boxRainGrowReverse"){f.width(0).height(0)}if(u===a-1){setTimeout(function(){f.animate({opacity:"1",width:l,height:c},r.animSpeed/1.3,"",function(){t.trigger("nivo:animFinished")})},100+s)}else{setTimeout(function(){f.animate({opacity:"1",width:l,height:c},r.animSpeed/1.3)},100+s)}})(N,T,l,c,g);c++}T--}l+=100}}};var v=function(e){for(var t,n,r=e.length;r;t=parseInt(Math.random()*r,10),n=e[--r],e[r]=e[t],e[t]=n);return e};var m=function(e){if(this.console&&typeof console.log!=="undefined"){console.log(e)}};this.stop=function(){if(!e(t).data("nivo:vars").stop){e(t).data("nivo:vars").stop=true;m("Stop Slider")}};this.start=function(){if(e(t).data("nivo:vars").stop){e(t).data("nivo:vars").stop=false;m("Start Slider")}};r.afterLoad.call(this);return this};e.fn.nivoSlider=function(n){return this.each(function(r,i){var s=e(this);if(s.data("nivoslider")){return s.data("nivoslider")}var o=new t(this,n);s.data("nivoslider",o)})};e.fn.nivoSlider.defaults={effect:"random",slices:15,boxCols:8,boxRows:4,animSpeed:500,pauseTime:3e3,startSlide:0,directionNav:true,controlNav:true,controlNavThumbs:false,pauseOnHover:true,manualAdvance:false,prevText:"Prev",nextText:"Next",randomStart:false,beforeChange:function(){},afterChange:function(){},slideshowEnd:function(){},lastSlide:function(){},afterLoad:function(){}};e.fn._reverse=[].reverse})(jQuery)

/**
 * bxSlider v4.2.12
 * Copyright 2013-2015 Steven Wanderski
 * Written while drinking Belgian ales and listening to jazz
 * Licensed under MIT (http://opensource.org/licenses/MIT)
 */
!function(t){var e={mode:"horizontal",slideSelector:"",infiniteLoop:!0,hideControlOnEnd:!1,speed:500,easing:null,slideMargin:0,startSlide:0,randomStart:!1,captions:!1,ticker:!1,tickerHover:!1,adaptiveHeight:!1,adaptiveHeightSpeed:500,video:!1,useCSS:!0,preloadImages:"visible",responsive:!0,slideZIndex:50,wrapperClass:"bx-wrapper",touchEnabled:!0,swipeThreshold:50,oneToOneTouch:!0,preventDefaultSwipeX:!0,preventDefaultSwipeY:!1,ariaLive:!0,ariaHidden:!0,keyboardEnabled:!1,pager:!0,pagerType:"full",pagerShortSeparator:" / ",pagerSelector:null,buildPager:null,pagerCustom:null,controls:!0,nextText:"Next",prevText:"Prev",nextSelector:null,prevSelector:null,autoControls:!1,startText:"Start",stopText:"Stop",autoControlsCombine:!1,autoControlsSelector:null,auto:!1,pause:4e3,autoStart:!0,autoDirection:"next",stopAutoOnClick:!1,autoHover:!1,autoDelay:0,autoSlideForOnePage:!1,minSlides:1,maxSlides:1,moveSlides:0,slideWidth:0,shrinkItems:!1,onSliderLoad:function(){return!0},onSlideBefore:function(){return!0},onSlideAfter:function(){return!0},onSlideNext:function(){return!0},onSlidePrev:function(){return!0},onSliderResize:function(){return!0}};t.fn.bxSlider=function(n){if(0===this.length)return this;if(this.length>1)return this.each(function(){t(this).bxSlider(n)}),this;var s={},o=this,r=t(window).width(),a=t(window).height();if(!t(o).data("bxSlider")){var l=function(){t(o).data("bxSlider")||(s.settings=t.extend({},e,n),s.settings.slideWidth=parseInt(s.settings.slideWidth),s.children=o.children(s.settings.slideSelector),s.children.length<s.settings.minSlides&&(s.settings.minSlides=s.children.length),s.children.length<s.settings.maxSlides&&(s.settings.maxSlides=s.children.length),s.settings.randomStart&&(s.settings.startSlide=Math.floor(Math.random()*s.children.length)),s.active={index:s.settings.startSlide},s.carousel=s.settings.minSlides>1||s.settings.maxSlides>1,s.carousel&&(s.settings.preloadImages="all"),s.minThreshold=s.settings.minSlides*s.settings.slideWidth+(s.settings.minSlides-1)*s.settings.slideMargin,s.maxThreshold=s.settings.maxSlides*s.settings.slideWidth+(s.settings.maxSlides-1)*s.settings.slideMargin,s.working=!1,s.controls={},s.interval=null,s.animProp="vertical"===s.settings.mode?"top":"left",s.usingCSS=s.settings.useCSS&&"fade"!==s.settings.mode&&function(){for(var t=document.createElement("div"),e=["WebkitPerspective","MozPerspective","OPerspective","msPerspective"],i=0;i<e.length;i++)if(void 0!==t.style[e[i]])return s.cssPrefix=e[i].replace("Perspective","").toLowerCase(),s.animProp="-"+s.cssPrefix+"-transform",!0;return!1}(),"vertical"===s.settings.mode&&(s.settings.maxSlides=s.settings.minSlides),o.data("origStyle",o.attr("style")),o.children(s.settings.slideSelector).each(function(){t(this).data("origStyle",t(this).attr("style"))}),d())},d=function(){var e=s.children.eq(s.settings.startSlide);o.wrap('<div class="'+s.settings.wrapperClass+'"><div class="bx-viewport"></div></div>'),s.viewport=o.parent(),s.settings.ariaLive&&!s.settings.ticker&&s.viewport.attr("aria-live","polite"),s.loader=t('<div class="bx-loading" />'),s.viewport.prepend(s.loader),o.css({width:"horizontal"===s.settings.mode?1e3*s.children.length+215+"%":"auto",position:"relative"}),s.usingCSS&&s.settings.easing?o.css("-"+s.cssPrefix+"-transition-timing-function",s.settings.easing):s.settings.easing||(s.settings.easing="swing"),s.viewport.css({width:"100%",overflow:"hidden",position:"relative"}),s.viewport.parent().css({maxWidth:u()}),s.children.css({float:"horizontal"===s.settings.mode?"left":"none",listStyle:"none",position:"relative"}),s.children.css("width",h()),"horizontal"===s.settings.mode&&s.settings.slideMargin>0&&s.children.css("marginRight",s.settings.slideMargin),"vertical"===s.settings.mode&&s.settings.slideMargin>0&&s.children.css("marginBottom",s.settings.slideMargin),"fade"===s.settings.mode&&(s.children.css({position:"absolute",zIndex:0,display:"none"}),s.children.eq(s.settings.startSlide).css({zIndex:s.settings.slideZIndex,display:"block"})),s.controls.el=t('<div class="bx-controls" />'),s.settings.captions&&P(),s.active.last=s.settings.startSlide===f()-1,s.settings.video&&o.fitVids(),("all"===s.settings.preloadImages||s.settings.ticker)&&(e=s.children),s.settings.ticker?s.settings.pager=!1:(s.settings.controls&&C(),s.settings.auto&&s.settings.autoControls&&T(),s.settings.pager&&w(),(s.settings.controls||s.settings.autoControls||s.settings.pager)&&s.viewport.after(s.controls.el)),c(e,g)},c=function(e,i){var n=e.find('img:not([src=""]), iframe').length,s=0;return 0===n?void i():void e.find('img:not([src=""]), iframe').each(function(){t(this).one("load error",function(){++s===n&&i()}).each(function(){this.complete&&t(this).trigger("load")})})},g=function(){if(s.settings.infiniteLoop&&"fade"!==s.settings.mode&&!s.settings.ticker){var e="vertical"===s.settings.mode?s.settings.minSlides:s.settings.maxSlides,i=s.children.slice(0,e).clone(!0).addClass("bx-clone"),n=s.children.slice(-e).clone(!0).addClass("bx-clone");s.settings.ariaHidden&&(i.attr("aria-hidden",!0),n.attr("aria-hidden",!0)),o.append(i).prepend(n)}s.loader.remove(),m(),"vertical"===s.settings.mode&&(s.settings.adaptiveHeight=!0),s.viewport.height(p()),o.redrawSlider(),s.settings.onSliderLoad.call(o,s.active.index),s.initialized=!0,s.settings.responsive&&t(window).bind("resize",Z),s.settings.auto&&s.settings.autoStart&&(f()>1||s.settings.autoSlideForOnePage)&&H(),s.settings.ticker&&W(),s.settings.pager&&I(s.settings.startSlide),s.settings.controls&&D(),s.settings.touchEnabled&&!s.settings.ticker&&N(),s.settings.keyboardEnabled&&!s.settings.ticker&&t(document).keydown(F)},p=function(){var e=0,n=t();if("vertical"===s.settings.mode||s.settings.adaptiveHeight)if(s.carousel){var o=1===s.settings.moveSlides?s.active.index:s.active.index*x();for(n=s.children.eq(o),i=1;i<=s.settings.maxSlides-1;i++)n=o+i>=s.children.length?n.add(s.children.eq(i-1)):n.add(s.children.eq(o+i))}else n=s.children.eq(s.active.index);else n=s.children;return"vertical"===s.settings.mode?(n.each(function(i){e+=t(this).outerHeight()}),s.settings.slideMargin>0&&(e+=s.settings.slideMargin*(s.settings.minSlides-1))):e=Math.max.apply(Math,n.map(function(){return t(this).outerHeight(!1)}).get()),"border-box"===s.viewport.css("box-sizing")?e+=parseFloat(s.viewport.css("padding-top"))+parseFloat(s.viewport.css("padding-bottom"))+parseFloat(s.viewport.css("border-top-width"))+parseFloat(s.viewport.css("border-bottom-width")):"padding-box"===s.viewport.css("box-sizing")&&(e+=parseFloat(s.viewport.css("padding-top"))+parseFloat(s.viewport.css("padding-bottom"))),e},u=function(){var t="100%";return s.settings.slideWidth>0&&(t="horizontal"===s.settings.mode?s.settings.maxSlides*s.settings.slideWidth+(s.settings.maxSlides-1)*s.settings.slideMargin:s.settings.slideWidth),t},h=function(){var t=s.settings.slideWidth,e=s.viewport.width();if(0===s.settings.slideWidth||s.settings.slideWidth>e&&!s.carousel||"vertical"===s.settings.mode)t=e;else if(s.settings.maxSlides>1&&"horizontal"===s.settings.mode){if(e>s.maxThreshold)return t;e<s.minThreshold?t=(e-s.settings.slideMargin*(s.settings.minSlides-1))/s.settings.minSlides:s.settings.shrinkItems&&(t=Math.floor((e+s.settings.slideMargin)/Math.ceil((e+s.settings.slideMargin)/(t+s.settings.slideMargin))-s.settings.slideMargin))}return t},v=function(){var t=1,e=null;return"horizontal"===s.settings.mode&&s.settings.slideWidth>0?s.viewport.width()<s.minThreshold?t=s.settings.minSlides:s.viewport.width()>s.maxThreshold?t=s.settings.maxSlides:(e=s.children.first().width()+s.settings.slideMargin,t=Math.floor((s.viewport.width()+s.settings.slideMargin)/e)):"vertical"===s.settings.mode&&(t=s.settings.minSlides),t},f=function(){var t=0,e=0,i=0;if(s.settings.moveSlides>0)if(s.settings.infiniteLoop)t=Math.ceil(s.children.length/x());else for(;e<s.children.length;)++t,e=i+v(),i+=s.settings.moveSlides<=v()?s.settings.moveSlides:v();else t=Math.ceil(s.children.length/v());return t},x=function(){return s.settings.moveSlides>0&&s.settings.moveSlides<=v()?s.settings.moveSlides:v()},m=function(){var t,e,i;s.children.length>s.settings.maxSlides&&s.active.last&&!s.settings.infiniteLoop?"horizontal"===s.settings.mode?(e=s.children.last(),t=e.position(),S(-(t.left-(s.viewport.width()-e.outerWidth())),"reset",0)):"vertical"===s.settings.mode&&(i=s.children.length-s.settings.minSlides,t=s.children.eq(i).position(),S(-t.top,"reset",0)):(t=s.children.eq(s.active.index*x()).position(),s.active.index===f()-1&&(s.active.last=!0),void 0!==t&&("horizontal"===s.settings.mode?S(-t.left,"reset",0):"vertical"===s.settings.mode&&S(-t.top,"reset",0)))},S=function(e,i,n,r){var a,l;s.usingCSS?(l="vertical"===s.settings.mode?"translate3d(0, "+e+"px, 0)":"translate3d("+e+"px, 0, 0)",o.css("-"+s.cssPrefix+"-transition-duration",n/1e3+"s"),"slide"===i?(o.css(s.animProp,l),0!==n?o.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(e){t(e.target).is(o)&&(o.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),q())}):q()):"reset"===i?o.css(s.animProp,l):"ticker"===i&&(o.css("-"+s.cssPrefix+"-transition-timing-function","linear"),o.css(s.animProp,l),0!==n?o.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(e){t(e.target).is(o)&&(o.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),S(r.resetValue,"reset",0),L())}):(S(r.resetValue,"reset",0),L()))):(a={},a[s.animProp]=e,"slide"===i?o.animate(a,n,s.settings.easing,function(){q()}):"reset"===i?o.css(s.animProp,e):"ticker"===i&&o.animate(a,n,"linear",function(){S(r.resetValue,"reset",0),L()}))},b=function(){for(var e="",i="",n=f(),o=0;o<n;o++)i="",s.settings.buildPager&&t.isFunction(s.settings.buildPager)||s.settings.pagerCustom?(i=s.settings.buildPager(o),s.pagerEl.addClass("bx-custom-pager")):(i=o+1,s.pagerEl.addClass("bx-default-pager")),e+='<div class="bx-pager-item"><a href="" data-slide-index="'+o+'" class="bx-pager-link">'+i+"</a></div>";s.pagerEl.html(e)},w=function(){s.settings.pagerCustom?s.pagerEl=t(s.settings.pagerCustom):(s.pagerEl=t('<div class="bx-pager" />'),s.settings.pagerSelector?t(s.settings.pagerSelector).html(s.pagerEl):s.controls.el.addClass("bx-has-pager").append(s.pagerEl),b()),s.pagerEl.on("click touchend","a",z)},C=function(){s.controls.next=t('<a class="bx-next" href="">'+s.settings.nextText+"</a>"),s.controls.prev=t('<a class="bx-prev" href="">'+s.settings.prevText+"</a>"),s.controls.next.bind("click touchend",E),s.controls.prev.bind("click touchend",k),s.settings.nextSelector&&t(s.settings.nextSelector).append(s.controls.next),s.settings.prevSelector&&t(s.settings.prevSelector).append(s.controls.prev),s.settings.nextSelector||s.settings.prevSelector||(s.controls.directionEl=t('<div class="bx-controls-direction" />'),s.controls.directionEl.append(s.controls.prev).append(s.controls.next),s.controls.el.addClass("bx-has-controls-direction").append(s.controls.directionEl))},T=function(){s.controls.start=t('<div class="bx-controls-auto-item"><a class="bx-start" href="">'+s.settings.startText+"</a></div>"),s.controls.stop=t('<div class="bx-controls-auto-item"><a class="bx-stop" href="">'+s.settings.stopText+"</a></div>"),s.controls.autoEl=t('<div class="bx-controls-auto" />'),s.controls.autoEl.on("click",".bx-start",M),s.controls.autoEl.on("click",".bx-stop",y),s.settings.autoControlsCombine?s.controls.autoEl.append(s.controls.start):s.controls.autoEl.append(s.controls.start).append(s.controls.stop),s.settings.autoControlsSelector?t(s.settings.autoControlsSelector).html(s.controls.autoEl):s.controls.el.addClass("bx-has-controls-auto").append(s.controls.autoEl),A(s.settings.autoStart?"stop":"start")},P=function(){s.children.each(function(e){var i=t(this).find("img:first").attr("title");void 0!==i&&(""+i).length&&t(this).append('<div class="bx-caption"><span>'+i+"</span></div>")})},E=function(t){t.preventDefault(),s.controls.el.hasClass("disabled")||(s.settings.auto&&s.settings.stopAutoOnClick&&o.stopAuto(),o.goToNextSlide())},k=function(t){t.preventDefault(),s.controls.el.hasClass("disabled")||(s.settings.auto&&s.settings.stopAutoOnClick&&o.stopAuto(),o.goToPrevSlide())},M=function(t){o.startAuto(),t.preventDefault()},y=function(t){o.stopAuto(),t.preventDefault()},z=function(e){var i,n;e.preventDefault(),s.controls.el.hasClass("disabled")||(s.settings.auto&&s.settings.stopAutoOnClick&&o.stopAuto(),i=t(e.currentTarget),void 0!==i.attr("data-slide-index")&&(n=parseInt(i.attr("data-slide-index")),n!==s.active.index&&o.goToSlide(n)))},I=function(e){var i=s.children.length;return"short"===s.settings.pagerType?(s.settings.maxSlides>1&&(i=Math.ceil(s.children.length/s.settings.maxSlides)),void s.pagerEl.html(e+1+s.settings.pagerShortSeparator+i)):(s.pagerEl.find("a").removeClass("active"),void s.pagerEl.each(function(i,n){t(n).find("a").eq(e).addClass("active")}))},q=function(){if(s.settings.infiniteLoop){var t="";0===s.active.index?t=s.children.eq(0).position():s.active.index===f()-1&&s.carousel?t=s.children.eq((f()-1)*x()).position():s.active.index===s.children.length-1&&(t=s.children.eq(s.children.length-1).position()),t&&("horizontal"===s.settings.mode?S(-t.left,"reset",0):"vertical"===s.settings.mode&&S(-t.top,"reset",0))}s.working=!1,s.settings.onSlideAfter.call(o,s.children.eq(s.active.index),s.oldIndex,s.active.index)},A=function(t){s.settings.autoControlsCombine?s.controls.autoEl.html(s.controls[t]):(s.controls.autoEl.find("a").removeClass("active"),s.controls.autoEl.find("a:not(.bx-"+t+")").addClass("active"))},D=function(){1===f()?(s.controls.prev.addClass("disabled"),s.controls.next.addClass("disabled")):!s.settings.infiniteLoop&&s.settings.hideControlOnEnd&&(0===s.active.index?(s.controls.prev.addClass("disabled"),s.controls.next.removeClass("disabled")):s.active.index===f()-1?(s.controls.next.addClass("disabled"),s.controls.prev.removeClass("disabled")):(s.controls.prev.removeClass("disabled"),s.controls.next.removeClass("disabled")))},H=function(){if(s.settings.autoDelay>0){setTimeout(o.startAuto,s.settings.autoDelay)}else o.startAuto(),t(window).focus(function(){o.startAuto()}).blur(function(){o.stopAuto()});s.settings.autoHover&&o.hover(function(){s.interval&&(o.stopAuto(!0),s.autoPaused=!0)},function(){s.autoPaused&&(o.startAuto(!0),s.autoPaused=null)})},W=function(){var e,i,n,r,a,l,d,c,g=0;"next"===s.settings.autoDirection?o.append(s.children.clone().addClass("bx-clone")):(o.prepend(s.children.clone().addClass("bx-clone")),e=s.children.first().position(),g="horizontal"===s.settings.mode?-e.left:-e.top),S(g,"reset",0),s.settings.pager=!1,s.settings.controls=!1,s.settings.autoControls=!1,s.settings.tickerHover&&(s.usingCSS?(r="horizontal"===s.settings.mode?4:5,s.viewport.hover(function(){i=o.css("-"+s.cssPrefix+"-transform"),n=parseFloat(i.split(",")[r]),S(n,"reset",0)},function(){c=0,s.children.each(function(e){c+="horizontal"===s.settings.mode?t(this).outerWidth(!0):t(this).outerHeight(!0)}),a=s.settings.speed/c,l="horizontal"===s.settings.mode?"left":"top",d=a*(c-Math.abs(parseInt(n))),L(d)})):s.viewport.hover(function(){o.stop()},function(){c=0,s.children.each(function(e){c+="horizontal"===s.settings.mode?t(this).outerWidth(!0):t(this).outerHeight(!0)}),a=s.settings.speed/c,l="horizontal"===s.settings.mode?"left":"top",d=a*(c-Math.abs(parseInt(o.css(l)))),L(d)})),L()},L=function(t){var e,i,n,r=t?t:s.settings.speed,a={left:0,top:0},l={left:0,top:0};"next"===s.settings.autoDirection?a=o.find(".bx-clone").first().position():l=s.children.first().position(),e="horizontal"===s.settings.mode?-a.left:-a.top,i="horizontal"===s.settings.mode?-l.left:-l.top,n={resetValue:i},S(e,"ticker",r,n)},O=function(e){var i=t(window),n={top:i.scrollTop(),left:i.scrollLeft()},s=e.offset();return n.right=n.left+i.width(),n.bottom=n.top+i.height(),s.right=s.left+e.outerWidth(),s.bottom=s.top+e.outerHeight(),!(n.right<s.left||n.left>s.right||n.bottom<s.top||n.top>s.bottom)},F=function(t){var e=document.activeElement.tagName.toLowerCase(),i="input|textarea",n=new RegExp(e,["i"]),s=n.exec(i);if(null==s&&O(o)){if(39===t.keyCode)return E(t),!1;if(37===t.keyCode)return k(t),!1}},N=function(){s.touch={start:{x:0,y:0},end:{x:0,y:0}},s.viewport.bind("touchstart MSPointerDown pointerdown",X),s.viewport.on("click",".bxslider a",function(t){s.viewport.hasClass("click-disabled")&&(t.preventDefault(),s.viewport.removeClass("click-disabled"))})},X=function(t){if(s.controls.el.addClass("disabled"),s.working)t.preventDefault(),s.controls.el.removeClass("disabled");else{s.touch.originalPos=o.position();var e=t.originalEvent,i="undefined"!=typeof e.changedTouches?e.changedTouches:[e];s.touch.start.x=i[0].pageX,s.touch.start.y=i[0].pageY,s.viewport.get(0).setPointerCapture&&(s.pointerId=e.pointerId,s.viewport.get(0).setPointerCapture(s.pointerId)),s.viewport.bind("touchmove MSPointerMove pointermove",V),s.viewport.bind("touchend MSPointerUp pointerup",R),s.viewport.bind("MSPointerCancel pointercancel",Y)}},Y=function(t){S(s.touch.originalPos.left,"reset",0),s.controls.el.removeClass("disabled"),s.viewport.unbind("MSPointerCancel pointercancel",Y),s.viewport.unbind("touchmove MSPointerMove pointermove",V),s.viewport.unbind("touchend MSPointerUp pointerup",R),s.viewport.get(0).releasePointerCapture&&s.viewport.get(0).releasePointerCapture(s.pointerId)},V=function(t){var e=t.originalEvent,i="undefined"!=typeof e.changedTouches?e.changedTouches:[e],n=Math.abs(i[0].pageX-s.touch.start.x),o=Math.abs(i[0].pageY-s.touch.start.y),r=0,a=0;3*n>o&&s.settings.preventDefaultSwipeX?t.preventDefault():3*o>n&&s.settings.preventDefaultSwipeY&&t.preventDefault(),"fade"!==s.settings.mode&&s.settings.oneToOneTouch&&("horizontal"===s.settings.mode?(a=i[0].pageX-s.touch.start.x,r=s.touch.originalPos.left+a):(a=i[0].pageY-s.touch.start.y,r=s.touch.originalPos.top+a),S(r,"reset",0))},R=function(t){s.viewport.unbind("touchmove MSPointerMove pointermove",V),s.controls.el.removeClass("disabled");var e=t.originalEvent,i="undefined"!=typeof e.changedTouches?e.changedTouches:[e],n=0,r=0;s.touch.end.x=i[0].pageX,s.touch.end.y=i[0].pageY,"fade"===s.settings.mode?(r=Math.abs(s.touch.start.x-s.touch.end.x),r>=s.settings.swipeThreshold&&(s.touch.start.x>s.touch.end.x?o.goToNextSlide():o.goToPrevSlide(),o.stopAuto())):("horizontal"===s.settings.mode?(r=s.touch.end.x-s.touch.start.x,n=s.touch.originalPos.left):(r=s.touch.end.y-s.touch.start.y,n=s.touch.originalPos.top),!s.settings.infiniteLoop&&(0===s.active.index&&r>0||s.active.last&&r<0)?S(n,"reset",200):Math.abs(r)>=s.settings.swipeThreshold?(r<0?o.goToNextSlide():o.goToPrevSlide(),o.stopAuto()):S(n,"reset",200)),s.viewport.unbind("touchend MSPointerUp pointerup",R),s.viewport.get(0).releasePointerCapture&&s.viewport.get(0).releasePointerCapture(s.pointerId)},Z=function(e){if(s.initialized)if(s.working)window.setTimeout(Z,10);else{var i=t(window).width(),n=t(window).height();r===i&&a===n||(r=i,a=n,o.redrawSlider(),s.settings.onSliderResize.call(o,s.active.index))}},B=function(t){var e=v();s.settings.ariaHidden&&!s.settings.ticker&&(s.children.attr("aria-hidden","true"),s.children.slice(t,t+e).attr("aria-hidden","false"))},U=function(t){return t<0?s.settings.infiniteLoop?f()-1:s.active.index:t>=f()?s.settings.infiniteLoop?0:s.active.index:t};return o.goToSlide=function(e,i){var n,r,a,l,d=!0,c=0,g={left:0,top:0},u=null;if(s.oldIndex=s.active.index,s.active.index=U(e),!s.working&&s.active.index!==s.oldIndex){if(s.working=!0,d=s.settings.onSlideBefore.call(o,s.children.eq(s.active.index),s.oldIndex,s.active.index),"undefined"!=typeof d&&!d)return s.active.index=s.oldIndex,void(s.working=!1);"next"===i?s.settings.onSlideNext.call(o,s.children.eq(s.active.index),s.oldIndex,s.active.index)||(d=!1):"prev"===i&&(s.settings.onSlidePrev.call(o,s.children.eq(s.active.index),s.oldIndex,s.active.index)||(d=!1)),s.active.last=s.active.index>=f()-1,(s.settings.pager||s.settings.pagerCustom)&&I(s.active.index),s.settings.controls&&D(),"fade"===s.settings.mode?(s.settings.adaptiveHeight&&s.viewport.height()!==p()&&s.viewport.animate({height:p()},s.settings.adaptiveHeightSpeed),s.children.filter(":visible").fadeOut(s.settings.speed).css({zIndex:0}),s.children.eq(s.active.index).css("zIndex",s.settings.slideZIndex+1).fadeIn(s.settings.speed,function(){t(this).css("zIndex",s.settings.slideZIndex),q()})):(s.settings.adaptiveHeight&&s.viewport.height()!==p()&&s.viewport.animate({height:p()},s.settings.adaptiveHeightSpeed),!s.settings.infiniteLoop&&s.carousel&&s.active.last?"horizontal"===s.settings.mode?(u=s.children.eq(s.children.length-1),g=u.position(),c=s.viewport.width()-u.outerWidth()):(n=s.children.length-s.settings.minSlides,g=s.children.eq(n).position()):s.carousel&&s.active.last&&"prev"===i?(r=1===s.settings.moveSlides?s.settings.maxSlides-x():(f()-1)*x()-(s.children.length-s.settings.maxSlides),u=o.children(".bx-clone").eq(r),g=u.position()):"next"===i&&0===s.active.index?(g=o.find("> .bx-clone").eq(s.settings.maxSlides).position(),s.active.last=!1):e>=0&&(l=e*parseInt(x()),g=s.children.eq(l).position()),"undefined"!=typeof g?(a="horizontal"===s.settings.mode?-(g.left-c):-g.top,S(a,"slide",s.settings.speed)):s.working=!1),s.settings.ariaHidden&&B(s.active.index*x())}},o.goToNextSlide=function(){if(s.settings.infiniteLoop||!s.active.last){var t=parseInt(s.active.index)+1;o.goToSlide(t,"next")}},o.goToPrevSlide=function(){if(s.settings.infiniteLoop||0!==s.active.index){var t=parseInt(s.active.index)-1;o.goToSlide(t,"prev")}},o.startAuto=function(t){s.interval||(s.interval=setInterval(function(){"next"===s.settings.autoDirection?o.goToNextSlide():o.goToPrevSlide()},s.settings.pause),s.settings.autoControls&&t!==!0&&A("stop"))},o.stopAuto=function(t){s.interval&&(clearInterval(s.interval),s.interval=null,s.settings.autoControls&&t!==!0&&A("start"))},o.getCurrentSlide=function(){return s.active.index},o.getCurrentSlideElement=function(){return s.children.eq(s.active.index)},o.getSlideElement=function(t){return s.children.eq(t)},o.getSlideCount=function(){return s.children.length},o.isWorking=function(){return s.working},o.redrawSlider=function(){s.children.add(o.find(".bx-clone")).outerWidth(h()),s.viewport.css("height",p()),s.settings.ticker||m(),s.active.last&&(s.active.index=f()-1),s.active.index>=f()&&(s.active.last=!0),s.settings.pager&&!s.settings.pagerCustom&&(b(),I(s.active.index)),s.settings.ariaHidden&&B(s.active.index*x())},o.destroySlider=function(){s.initialized&&(s.initialized=!1,t(".bx-clone",this).remove(),s.children.each(function(){void 0!==t(this).data("origStyle")?t(this).attr("style",t(this).data("origStyle")):t(this).removeAttr("style")}),void 0!==t(this).data("origStyle")?this.attr("style",t(this).data("origStyle")):t(this).removeAttr("style"),t(this).unwrap().unwrap(),s.controls.el&&s.controls.el.remove(),s.controls.next&&s.controls.next.remove(),s.controls.prev&&s.controls.prev.remove(),s.pagerEl&&s.settings.controls&&!s.settings.pagerCustom&&s.pagerEl.remove(),t(".bx-caption",this).remove(),s.controls.autoEl&&s.controls.autoEl.remove(),clearInterval(s.interval),s.settings.responsive&&t(window).unbind("resize",Z),s.settings.keyboardEnabled&&t(document).unbind("keydown",F),t(this).removeData("bxSlider"))},o.reloadSlider=function(e){void 0!==e&&(n=e),o.destroySlider(),l(),t(o).data("bxSlider",this)},l(),t(o).data("bxSlider",this),this}}}(jQuery);


/*!

 * Waterwheel Carousel
 * Version 2.3.0
 * http://www.bkosborne.com
 *
 * Copyright 2011-2013 Brian Osborne
 * Dual licensed under GPLv3 or MIT
 * Copies of the licenses have been distributed
 * with this plugin.
 *
 * Plugin written by Brian Osborne
 * for use with the jQuery JavaScript Framework
 * http://www.jquery.com
 */
(function(a){a.fn.waterwheelCarousel=function(r){if(this.length>1){this.each(function(){a(this).waterwheelCarousel(r)});return this}var m=this;var c={};var t={};function j(){t={itemsContainer:a(m),totalItems:a(m).find("img").length,containerWidth:a(m).width(),containerHeight:a(m).height(),currentCenterItem:null,previousCenterItem:null,items:[],calculations:[],carouselRotationsLeft:0,currentlyMoving:false,itemsAnimating:0,currentSpeed:c.speed,intervalTimer:null,currentDirection:"forward",leftItemsCount:0,rightItemsCount:0,performingSetup:true};t.itemsContainer.find("img").removeClass(c.activeClassName)}function l(u){clearTimeout(t.autoPlayTimer);if(!u&&c.autoPlay!==0){t.autoPlayTimer=setTimeout(function(){if(c.autoPlay>0){n("forward")}else{n("backward")}},Math.abs(c.autoPlay))}}function h(x){if(c.preloadImages===false){x();return}var v=t.itemsContainer.find("img"),u=0,w=v.length;v.each(function(){a(this).bind("load",function(){u+=1;if(u===w){x();return}});a(this).attr("src",a(this).attr("src"));if(this.complete){a(this).trigger("load")}})}function d(){t.itemsContainer.find("img").each(function(){if(a(this).data("original_width")==undefined||c.forcedImageWidth>0){a(this).data("original_width",a(this).width())}if(a(this).data("original_height")==undefined||c.forcedImageHeight>0){a(this).data("original_height",a(this).height())}})}function e(){if(c.forcedImageWidth&&c.forcedImageHeight){t.itemsContainer.find("img").each(function(){a(this).width(c.forcedImageWidth);a(this).height(c.forcedImageHeight)})}}function s(){var v=t.itemsContainer.find("img:first");t.calculations[0]={distance:0,offset:0,opacity:1};var u=c.horizonOffset;var x=c.separation;for(var w=1;w<=c.flankingItems+2;w++){if(w>1){u*=c.horizonOffsetMultiplier;x*=c.separationMultiplier}t.calculations[w]={distance:t.calculations[w-1].distance+x,offset:t.calculations[w-1].offset+u,opacity:t.calculations[w-1].opacity*c.opacityMultiplier}}if(c.edgeFadeEnabled){t.calculations[c.flankingItems+1].opacity=0}else{t.calculations[c.flankingItems+1]={distance:0,offset:0,opacity:0}}}function b(){t.items=t.itemsContainer.find("img");for(var u=0;u<t.totalItems;u++){t.items[u]=a(t.items[u])}if(c.horizon===0){if(c.orientation==="horizontal"){c.horizon=t.containerHeight/2}else{c.horizon=t.containerWidth/2}}t.itemsContainer.css("position","relative").find("img").each(function(){var w,v;if(c.orientation==="horizontal"){w=(t.containerWidth/2)-(a(this).data("original_width")/2);v=c.horizon-(a(this).data("original_height")/2)}else{w=c.horizon-(a(this).data("original_width")/2);v=(t.containerHeight/2)-(a(this).data("original_height")/2)}a(this).css({left:w,top:v,visibility:"visible",position:"absolute","z-index":0,opacity:0}).data({top:v,left:w,oldPosition:0,currentPosition:0,depth:0,opacity:0}).show()})}function q(){c.startingItem=(c.startingItem===0)?Math.round(t.totalItems/2):c.startingItem;t.rightItemsCount=Math.ceil((t.totalItems-1)/2);t.leftItemsCount=Math.floor((t.totalItems-1)/2);t.carouselRotationsLeft=1;k(t.items[c.startingItem-1],0);t.items[c.startingItem-1].css("opacity",1);var u=c.startingItem-1;for(var v=1;v<=t.rightItemsCount;v++){(u<t.totalItems-1)?u+=1:u=0;t.items[u].css("opacity",1);k(t.items[u],v)}var u=c.startingItem-1;for(var v=-1;v>=t.leftItemsCount*-1;v--){(u>0)?u-=1:u=t.totalItems-1;t.items[u].css("opacity",1);k(t.items[u],v)}}function f(I,y){var z=Math.abs(y);if(z<c.flankingItems+1){var x=t.calculations[z]}else{var x=t.calculations[c.flankingItems+1]}var A=Math.pow(c.sizeMultiplier,z);var C=A*I.data("original_width");var w=A*I.data("original_height");var v=Math.abs(I.width()-C);var B=Math.abs(I.height()-w);var D=x.offset;var J=x.distance;if(y<0){J*=-1}if(c.orientation=="horizontal"){var u=t.containerWidth/2;var H=u+J-(C/2);var F=c.horizon-D-(w/2)}else{var u=t.containerHeight/2;var H=c.horizon-D-(C/2);var F=u+J-(w/2)}var E;if(y===0){E=1}else{E=x.opacity}var G=c.flankingItems+2-z;I.data("width",C);I.data("height",w);I.data("top",F);I.data("left",H);I.data("oldPosition",I.data("currentPosition"));I.data("depth",G);I.data("opacity",E)}function k(u,v){if(Math.abs(v)<=c.flankingItems+1){f(u,v);t.itemsAnimating++;u.css("z-index",u.data().depth).animate({left:u.data().left,width:u.data().width,height:u.data().height,top:u.data().top,opacity:u.data().opacity},t.currentSpeed,c.animationEasing,function(){g(u,v)})}else{u.data("currentPosition",v);if(u.data("oldPosition")===0){u.css({left:u.data().left,width:u.data().width,height:u.data().height,top:u.data().top,opacity:u.data().opacity,"z-index":u.data().depth})}}}function g(u,v){t.itemsAnimating--;u.data("currentPosition",v);if(v===0){t.currentCenterItem=u}if(t.itemsAnimating===0){t.carouselRotationsLeft-=1;t.currentlyMoving=false;if(t.carouselRotationsLeft>0){p(0)}else{t.currentSpeed=c.speed;t.currentCenterItem.addClass(c.activeClassName);if(t.performingSetup===false){c.movedToCenter(t.currentCenterItem);c.movedFromCenter(t.previousCenterItem)}t.performingSetup=false;l()}}}function p(v){if(t.currentlyMoving===false){t.currentCenterItem.removeClass(c.activeClassName);t.currentlyMoving=true;t.itemsAnimating=0;t.carouselRotationsLeft+=v;if(c.quickerForFurther===true){if(v>1){t.currentSpeed=c.speed/v}t.currentSpeed=(t.currentSpeed<100)?100:t.currentSpeed}for(var y=0;y<t.totalItems;y++){var w=a(t.items[y]);var z=w.data("currentPosition");var x;if(t.currentDirection=="forward"){x=z-1}else{x=z+1}var u=(x>0)?t.rightItemsCount:t.leftItemsCount;if(Math.abs(x)>u){x=z*-1;if(t.totalItems%2==0){x+=1}}k(w,x)}}}a(this).find("img").bind("click",function(){var v=a(this).data().currentPosition;if(c.imageNav==false){return}if(Math.abs(v)>=c.flankingItems+1){return}if(t.currentlyMoving){return}t.previousCenterItem=t.currentCenterItem;l(true);c.autoPlay=0;var u=Math.abs(v);if(v==0){c.clickedCenter(a(this))}else{c.movingFromCenter(t.currentCenterItem);c.movingToCenter(a(this));if(v<0){t.currentDirection="backward";p(u)}else{if(v>0){t.currentDirection="forward";p(u)}}}});a(this).find("a").bind("click",function(u){var v=a(this).find("img").data("currentPosition")==0;if(c.linkHandling===1||(c.linkHandling===2&&!v)){u.preventDefault();return false}});function o(){var u=t.currentCenterItem.next();if(u.length<=0){u=t.currentCenterItem.parent().children().first()}return u}function i(){var u=t.currentCenterItem.prev();if(u.length<=0){u=t.currentCenterItem.parent().children().last()}return u}function n(u){if(t.currentlyMoving===false){t.previousCenterItem=t.currentCenterItem;c.movingFromCenter(t.currentCenterItem);if(u=="backward"){c.movingToCenter(i());t.currentDirection="backward"}else{if(u=="forward"){c.movingToCenter(o());t.currentDirection="forward"}}}p(1)}a(document).keydown(function(u){if(c.keyboardNav){if((u.which===37&&c.orientation=="horizontal")||(u.which===38&&c.orientation=="vertical")){l(true);c.autoPlay=0;n("backward")}else{if((u.which===39&&c.orientation=="horizontal")||(u.which===40&&c.orientation=="vertical")){l(true);c.autoPlay=0;n("forward")}}if(c.keyboardNavOverride&&((c.orientation=="horizontal"&&(u.which===37||u.which===39))||(c.orientation=="vertical"&&(u.which===38||u.which===40)))){u.preventDefault();return false}}});this.reload=function(v){if(typeof v==="object"){var u=v}else{var u={}}c=a.extend({},a.fn.waterwheelCarousel.defaults,v);j();t.itemsContainer.find("img").hide();e();h(function(){d();s();b();q()})};this.next=function(){l(true);c.autoPlay=0;n("forward")};this.prev=function(){l(true);c.autoPlay=0;n("backward")};this.reload(r);return this};a.fn.waterwheelCarousel.defaults={startingItem:1,separation:175,separationMultiplier:0.6,horizonOffset:0,horizonOffsetMultiplier:1,sizeMultiplier:0.7,opacityMultiplier:0.8,horizon:0,flankingItems:3,speed:300,animationEasing:"linear",quickerForFurther:true,edgeFadeEnabled:false,linkHandling:2,autoPlay:0,orientation:"horizontal",activeClassName:"carousel-center",keyboardNav:false,keyboardNavOverride:true,imageNav:true,preloadImages:true,forcedImageWidth:0,forcedImageHeight:0,movingToCenter:a.noop,movedToCenter:a.noop,clickedCenter:a.noop,movingFromCenter:a.noop,movedFromCenter:a.noop}})(jQuery);

// The MIT License (MIT)

// Typed.js | Copyright (c) 2016 Matt Boldt | www.mattboldt.com

// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:


! function(window, document, $) {

	"use strict";

	var Typed = function(el, options) {
		var self = this;

		// chosen element to manipulate text
		this.el = el;

		// options
		this.options = {};
		Object.keys(defaults).forEach(function(key) {
			self.options[key] = defaults[key];
		});
		Object.keys(options).forEach(function(key) {
			self.options[key] = options[key];
		});

		// attribute to type into
		this.isInput = this.el.tagName.toLowerCase() === 'input';
		this.attr = this.options.attr;

		// show cursor
		this.showCursor = this.isInput ? false : this.options.showCursor;

		// text content of element
		this.elContent = this.attr ? this.el.getAttribute(this.attr) : this.el.textContent;

		// html or plain text
		this.contentType = this.options.contentType;

		// typing speed
		this.typeSpeed = this.options.typeSpeed;

		// add a delay before typing starts
		this.startDelay = this.options.startDelay;

		// backspacing speed
		this.backSpeed = this.options.backSpeed;

		// amount of time to wait before backspacing
		this.backDelay = this.options.backDelay;

		// Fade out instead of backspace
		this.fadeOut = this.options.fadeOut;
		this.fadeOutClass = this.options.fadeOutClass;
		this.fadeOutDelay = this.options.fadeOutDelay;

		// div containing strings
		if($ && this.options.stringsElement instanceof $) {
			this.stringsElement = this.options.stringsElement[0]
		} else {
			this.stringsElement = this.options.stringsElement;
		}

		// input strings of text
		this.strings = this.options.strings;

		// character number position of current string
		this.strPos = 0;

		// current array position
		this.arrayPos = 0;

		// number to stop backspacing on.
		// default 0, can change depending on how many chars
		// you want to remove at the time
		this.stopNum = 0;

		// Looping logic
		this.loop = this.options.loop;
		this.loopCount = this.options.loopCount;
		this.curLoop = 0;

		// for stopping
		this.stop = false;

		// custom cursor
		this.cursorChar = this.options.cursorChar;

		// shuffle the strings
		this.shuffle = this.options.shuffle;
		// the order of strings
		this.sequence = [];

		// All systems go!
		this.build();
	};

	Typed.prototype = {

		constructor: Typed,

		init: function() {
			// begin the loop w/ first current string (global self.strings)
			// current string will be passed as an argument each time after this
			var self = this;
			self.timeout = setTimeout(function() {
				for (var i=0;i<self.strings.length;++i) self.sequence[i]=i;

				// shuffle the array if true
				if(self.shuffle) self.sequence = self.shuffleArray(self.sequence);

				// Start typing
				self.typewrite(self.strings[self.sequence[self.arrayPos]], self.strPos);
			}, self.startDelay);
		},

		build: function() {
			var self = this;
			// Insert cursor
			if (this.showCursor === true) {
				this.cursor = document.createElement('span');
				this.cursor.className = 'typed-cursor';
				this.cursor.innerHTML = this.cursorChar;
				this.el.parentNode && this.el.parentNode.insertBefore(this.cursor, this.el.nextSibling);
			}
			if (this.stringsElement) {
				this.strings = [];
				this.stringsElement.style.display = 'none';
				var strings = Array.prototype.slice.apply(this.stringsElement.children);
				strings.forEach(function(stringElement){
					self.strings.push(stringElement.innerHTML);
				});
			}
			this.init();
		},

		// pass current string state to each function, types 1 char per call
		typewrite: function(curString, curStrPos) {
			// exit when stopped
			if (this.stop === true) {
				return;
			}

			if (this.fadeOut && this.el.classList.contains(this.fadeOutClass)) {
				this.el.classList.remove(this.fadeOutClass);
				this.cursor.classList.remove(this.fadeOutClass);
			}

			// varying values for setTimeout during typing
			// can't be global since number changes each time loop is executed
			var humanize = Math.round(Math.random() * (100 - 30)) + this.typeSpeed;
			var self = this;

			// ------------- optional ------------- //
			// backpaces a certain string faster
			// ------------------------------------ //
			// if (self.arrayPos == 1){
			//  self.backDelay = 50;
			// }
			// else{ self.backDelay = 500; }

			// contain typing function in a timeout humanize'd delay
			self.timeout = setTimeout(function() {
				// check for an escape character before a pause value
				// format: \^\d+ .. eg: ^1000 .. should be able to print the ^ too using ^^
				// single ^ are removed from string
				var charPause = 0;
				var substr = curString.substr(curStrPos);
				if (substr.charAt(0) === '^') {
					var skip = 1; // skip atleast 1
					if (/^\^\d+/.test(substr)) {
						substr = /\d+/.exec(substr)[0];
						skip += substr.length;
						charPause = parseInt(substr);
					}

					// strip out the escape character and pause value so they're not printed
					curString = curString.substring(0, curStrPos) + curString.substring(curStrPos + skip);
				}

				if (self.contentType === 'html') {
					// skip over html tags while typing
					var curChar = curString.substr(curStrPos).charAt(0);
					if (curChar === '<' || curChar === '&') {
						var tag = '';
						var endTag = '';
						if (curChar === '<') {
							endTag = '>'
						}
						else {
							endTag = ';'
						}
						while (curString.substr(curStrPos + 1).charAt(0) !== endTag) {
							tag += curString.substr(curStrPos).charAt(0);
							curStrPos++;
							if (curStrPos + 1 > curString.length) { break; }
						}
						curStrPos++;
						tag += endTag;
					}
				}

				// timeout for any pause after a character
				self.timeout = setTimeout(function() {
					if (curStrPos === curString.length) {
						// fires callback function
						self.options.onStringTyped(self.arrayPos);

						// is this the final string
						if (self.arrayPos === self.strings.length - 1) {
							// animation that occurs on the last typed string
							self.options.callback();

							self.curLoop++;

							// quit if we wont loop back
							if (self.loop === false || self.curLoop === self.loopCount)
								return;
						}

						self.timeout = setTimeout(function() {
							self.backspace(curString, curStrPos);
						}, self.backDelay);

					} else {

						/* call before functions if applicable */
						if (curStrPos === 0) {
							self.options.preStringTyped(self.arrayPos);
						}

						// start typing each new char into existing string
						// curString: arg, self.el.html: original text inside element
						var nextString = curString.substr(0, curStrPos + 1);
						if (self.attr) {
							self.el.setAttribute(self.attr, nextString);
						} else {
							if (self.isInput) {
								self.el.value = nextString;
							} else if (self.contentType === 'html') {
								self.el.innerHTML = nextString;
							} else {
								self.el.textContent = nextString;
							}
						}

						// add characters one by one
						curStrPos++;
						// loop the function
						self.typewrite(curString, curStrPos);
					}
					// end of character pause
				}, charPause);

				// humanized value for typing
			}, humanize);

		},

		backspace: function(curString, curStrPos) {
			var self = this;
			// exit when stopped
			if (this.stop === true) {
				return;
			}

			if (this.fadeOut){
				this.initFadeOut();
				return;
			}

			// varying values for setTimeout during typing
			// can't be global since number changes each time loop is executed
			var humanize = Math.round(Math.random() * (100 - 30)) + this.backSpeed;

			self.timeout = setTimeout(function() {

				// ----- this part is optional ----- //
				// check string array position
				// on the first string, only delete one word
				// the stopNum actually represents the amount of chars to
				// keep in the current string. In my case it's 14.
				// if (self.arrayPos == 1){
				//  self.stopNum = 14;
				// }
				//every other time, delete the whole typed string
				// else{
				//  self.stopNum = 0;
				// }

				if (self.contentType === 'html') {
					// skip over html tags while backspacing
					if (curString.substr(curStrPos).charAt(0) === '>') {
						var tag = '';
						while (curString.substr(curStrPos - 1).charAt(0) !== '<') {
							tag -= curString.substr(curStrPos).charAt(0);
							curStrPos--;
							if (curStrPos < 0) { break; }
						}
						curStrPos--;
						tag += '<';
					}
				}

				// ----- continue important stuff ----- //
				// replace text with base text + typed characters
				var nextString = curString.substr(0, curStrPos);
				self.replaceText(nextString);

				// if the number (id of character in current string) is
				// less than the stop number, keep going
				if (curStrPos > self.stopNum) {
					// subtract characters one by one
					curStrPos--;
					// loop the function
					self.backspace(curString, curStrPos);
				}
				// if the stop number has been reached, increase
				// array position to next string
				else if (curStrPos <= self.stopNum) {
					self.arrayPos++;

					if (self.arrayPos === self.strings.length) {
						self.arrayPos = 0;

						// Shuffle sequence again
						if(self.shuffle) self.sequence = self.shuffleArray(self.sequence);

						self.init();
					} else
						self.typewrite(self.strings[self.sequence[self.arrayPos]], curStrPos);
				}

				// humanized value for typing
			}, humanize);

		},

		// Adds a CSS class to fade out current string
		initFadeOut: function(){
			self = this;
			this.el.className += ' ' + this.fadeOutClass;
			this.cursor.className += ' ' + this.fadeOutClass;
			return setTimeout(function() {
				self.arrayPos++;
				self.replaceText('');

				// Resets current string if end of loop reached
				if(self.strings.length > self.arrayPos) {
					self.typewrite(self.strings[self.sequence[self.arrayPos]], 0);
				} else {
					self.typewrite(self.strings[0], 0);
					self.arrayPos = 0;
				}
			}, self.fadeOutDelay);
		},

		// Replaces current text in the HTML element
		replaceText: function(str) {
			if (this.attr) {
				this.el.setAttribute(this.attr, str);
			} else {
				if (this.isInput) {
					this.el.value = str;
				} else if (this.contentType === 'html') {
					this.el.innerHTML = str;
				} else {
					this.el.textContent = str;
				}
			}
		},

		// Shuffles the numbers in the given array.
		shuffleArray: function(array) {
			var tmp, current, top = array.length;
			if(top) while(--top) {
				current = Math.floor(Math.random() * (top + 1));
				tmp = array[current];
				array[current] = array[top];
				array[top] = tmp;
			}
			return array;
		},

		// Start & Stop currently not working

		// , stop: function() {
		//     var self = this;

		//     self.stop = true;
		//     clearInterval(self.timeout);
		// }

		// , start: function() {
		//     var self = this;
		//     if(self.stop === false)
		//        return;

		//     this.stop = false;
		//     this.init();
		// }

		// Reset and rebuild the element
		reset: function() {
			var self = this;
			clearInterval(self.timeout);
			var id = this.el.getAttribute('id');
			this.el.textContent = '';
			if (typeof this.cursor !== 'undefined' && typeof this.cursor.parentNode !== 'undefined') {
				this.cursor.parentNode.removeChild(this.cursor);
			}
			this.strPos = 0;
			this.arrayPos = 0;
			this.curLoop = 0;
			// Send the callback
			this.options.resetCallback();
		}

	};

	Typed.new = function(selector, option) {
		var elements = Array.prototype.slice.apply(document.querySelectorAll(selector));
		elements.forEach(function(element) {
			var instance = element._typed,
			    options = typeof option == 'object' && option;
			if (instance) { instance.reset(); }
			element._typed = instance = new Typed(element, options);
			if (typeof option == 'string') instance[option]();
		});
	};

	if ($) {
		$.fn.typed = function(option) {
			return this.each(function() {
				var $this = $(this),
				    data = $this.data('typed'),
				    options = typeof option == 'object' && option;
				if (data) { data.reset(); }
				$this.data('typed', (data = new Typed(this, options)));
				if (typeof option == 'string') data[option]();
			});
		};
	}

	window.Typed = Typed;

	var defaults = {
		strings: ["These are the default values...", "You know what you should do?", "Use your own!", "Have a great day!"],
		stringsElement: null,
		// typing speed
		typeSpeed: 0,
		// time before typing starts
		startDelay: 0,
		// backspacing speed
		backSpeed: 0,
		// shuffle the strings
		shuffle: false,
		// time before backspacing
		backDelay: 500,
		// Fade out instead of backspace
		fadeOut: false,
		fadeOutClass: 'typed-fade-out',
		fadeOutDelay: 500, // milliseconds
		// loop
		loop: false,
		// false = infinite
		loopCount: false,
		// show cursor
		showCursor: true,
		// character for cursor
		cursorChar: "|",
		// attribute to type (null == text)
		attr: null,
		// either html or text
		contentType: 'html',
		// call when done callback function
		callback: function() {},
		// starting callback function before each string
		preStringTyped: function() {},
		//callback for every typed string
		onStringTyped: function() {},
		// callback for reset
		resetCallback: function() {}
	};


}(window, document, window.jQuery);

// 13 =================

/*!
 * The Final Countdown for jQuery v2.1.0 (http://hilios.github.io/jQuery.countdown/)
 * Copyright (c) 2015 Edson Hilios
 * 
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 * this software and associated documentation files (the "Software"), to deal in
 * the Software without restriction, including without limitation the rights to
 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
 * the Software, and to permit persons to whom the Software is furnished to do so,
 * subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */
!function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){"use strict";function b(a){if(a instanceof Date)return a;if(String(a).match(g))return String(a).match(/^[0-9]*$/)&&(a=Number(a)),String(a).match(/\-/)&&(a=String(a).replace(/\-/g,"/")),new Date(a);throw new Error("Couldn't cast `"+a+"` to a date object.")}function c(a){var b=a.toString().replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1");return new RegExp(b)}function d(a){return function(b){var d=b.match(/%(-|!)?[A-Z]{1}(:[^;]+;)?/gi);if(d)for(var f=0,g=d.length;g>f;++f){var h=d[f].match(/%(-|!)?([a-zA-Z]{1})(:[^;]+;)?/),j=c(h[0]),k=h[1]||"",l=h[3]||"",m=null;h=h[2],i.hasOwnProperty(h)&&(m=i[h],m=Number(a[m])),null!==m&&("!"===k&&(m=e(l,m)),""===k&&10>m&&(m="0"+m.toString()),b=b.replace(j,m.toString()))}return b=b.replace(/%%/,"%")}}function e(a,b){var c="s",d="";return a&&(a=a.replace(/(:|;|\s)/gi,"").split(/\,/),1===a.length?c=a[0]:(d=a[0],c=a[1])),1===Math.abs(b)?d:c}var f=[],g=[],h={precision:100,elapse:!1};g.push(/^[0-9]*$/.source),g.push(/([0-9]{1,2}\/){2}[0-9]{4}( [0-9]{1,2}(:[0-9]{2}){2})?/.source),g.push(/[0-9]{4}([\/\-][0-9]{1,2}){2}( [0-9]{1,2}(:[0-9]{2}){2})?/.source),g=new RegExp(g.join("|"));var i={Y:"years",m:"months",n:"daysToMonth",w:"weeks",d:"daysToWeek",D:"totalDays",H:"hours",M:"minutes",S:"seconds"},j=function(b,c,d){this.el=b,this.$el=a(b),this.interval=null,this.offset={},this.options=a.extend({},h),this.instanceNumber=f.length,f.push(this),this.$el.data("countdown-instance",this.instanceNumber),d&&("function"==typeof d?(this.$el.on("update.countdown",d),this.$el.on("stoped.countdown",d),this.$el.on("finish.countdown",d)):this.options=a.extend({},h,d)),this.setFinalDate(c),this.start()};a.extend(j.prototype,{start:function(){null!==this.interval&&clearInterval(this.interval);var a=this;this.update(),this.interval=setInterval(function(){a.update.call(a)},this.options.precision)},stop:function(){clearInterval(this.interval),this.interval=null,this.dispatchEvent("stoped")},toggle:function(){this.interval?this.stop():this.start()},pause:function(){this.stop()},resume:function(){this.start()},remove:function(){this.stop.call(this),f[this.instanceNumber]=null,delete this.$el.data().countdownInstance},setFinalDate:function(a){this.finalDate=b(a)},update:function(){if(0===this.$el.closest("html").length)return void this.remove();var b,c=void 0!==a._data(this.el,"events"),d=new Date;b=this.finalDate.getTime()-d.getTime(),b=Math.ceil(b/1e3),b=!this.options.elapse&&0>b?0:Math.abs(b),this.totalSecsLeft!==b&&c&&(this.totalSecsLeft=b,this.elapsed=d>=this.finalDate,this.offset={seconds:this.totalSecsLeft%60,minutes:Math.floor(this.totalSecsLeft/60)%60,hours:Math.floor(this.totalSecsLeft/60/60)%24,days:Math.floor(this.totalSecsLeft/60/60/24)%7,daysToWeek:Math.floor(this.totalSecsLeft/60/60/24)%7,daysToMonth:Math.floor(this.totalSecsLeft/60/60/24%30.4368),totalDays:Math.floor(this.totalSecsLeft/60/60/24),weeks:Math.floor(this.totalSecsLeft/60/60/24/7),months:Math.floor(this.totalSecsLeft/60/60/24/30.4368),years:Math.abs(this.finalDate.getFullYear()-d.getFullYear())},this.options.elapse||0!==this.totalSecsLeft?this.dispatchEvent("update"):(this.stop(),this.dispatchEvent("finish")))},dispatchEvent:function(b){var c=a.Event(b+".countdown");c.finalDate=this.finalDate,c.elapsed=this.elapsed,c.offset=a.extend({},this.offset),c.strftime=d(this.offset),this.$el.trigger(c)}}),a.fn.countdown=function(){var b=Array.prototype.slice.call(arguments,0);return this.each(function(){var c=a(this).data("countdown-instance");if(void 0!==c){var d=f[c],e=b[0];j.prototype.hasOwnProperty(e)?d[e].apply(d,b.slice(1)):null===String(e).match(/^[$A-Z_][0-9A-Z_$]*$/i)?(d.setFinalDate.call(d,e),d.start()):a.error("Method %s does not exist on jQuery.countdown".replace(/\%s/gi,e))}else new j(this,b[0],b[1])})}});









Youez - 2016 - github.com/yon3zu
LinuXploit