text: var libFuncName=null;if("undefined"==typeof jQuery&&"undefined"==typeof Zepto&&"function"==typeof $)libFuncName=$;else if("function"==typeof jQuery)libFuncName=jQuery;else{if("function"!=typeof Zepto)throw new TypeError;libFuncName=Zepto}!function(a,b,c,d){"use strict";b.matchMedia=b.matchMedia||function(a,b){var c,d=a.documentElement,e=d.firstElementChild||d.firstChild,f=a.createElement("body"),g=a.createElement("div");return g.id="mq-test-1",g.style.cssText="position:absolute;top:-100em",f.style.background="none",f.appendChild(g),function(a){return g.innerHTML='&shy;<style media="'+a+'"> #mq-test-1 { width: 42px; }</style>',d.insertBefore(f,e),c=42===g.offsetWidth,d.removeChild(f),{matches:c,media:a}}}(c),Array.prototype.filter||(Array.prototype.filter=function(a){if(null==this)throw new TypeError;var b=Object(this),c=b.length>>>0;if("function"==typeof a){for(var d=[],e=arguments[1],f=0;c>f;f++)if(f in b){var g=b[f];a&&a.call(e,g,f,b)&&d.push(g)}return d}}),Function.prototype.bind||(Function.prototype.bind=function(a){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var b=Array.prototype.slice.call(arguments,1),c=this,d=function(){},e=function(){return c.apply(this instanceof d&&a?this:a,b.concat(Array.prototype.slice.call(arguments)))};return d.prototype=this.prototype,e.prototype=new d,e}),Array.prototype.indexOf||(Array.prototype.indexOf=function(a){if(null==this)throw new TypeError;var b=Object(this),c=b.length>>>0;if(0===c)return-1;var d=0;if(arguments.length>1&&(d=Number(arguments[1]),d!=d?d=0:0!=d&&d!=1/0&&d!=-(1/0)&&(d=(d>0||-1)*Math.floor(Math.abs(d)))),d>=c)return-1;for(var e=d>=0?d:Math.max(c-Math.abs(d),0);c>e;e++)if(e in b&&b[e]===a)return e;return-1}),a.fn.stop=a.fn.stop||function(){return this},b.Foundation={name:"Foundation",version:"4.2.0",cache:{},init:function(b,c,d,e,f,g){var h,i=[b,d,e,f],j=[],g=g||!1;if(g&&(this.nc=g),this.rtl=/rtl/i.test(a("html").attr("dir")),this.scope=b||this.scope,c&&"string"==typeof c&&!/reflow/i.test(c)){if(/off/i.test(c))return this.off();if(h=c.split(" "),h.length>0)for(var k=h.length-1;k>=0;k--)j.push(this.init_lib(h[k],i))}else{/reflow/i.test(c)&&(i[1]="reflow");for(var l in this.libs)j.push(this.init_lib(l,i))}return"function"==typeof c&&i.unshift(c),this.response_obj(j,i)},response_obj:function(a,b){for(var c=0,d=b.length;d>c;c++)if("function"==typeof b[c])return b[c]({errors:a.filter(function(a){return"string"==typeof a?a:void 0})});return a},init_lib:function(a,b){return this.trap(function(){return this.libs.hasOwnProperty(a)?(this.patch(this.libs[a]),this.libs[a].init.apply(this.libs[a],b)):function(){}}.bind(this),a)},trap:function(a,b){if(!this.nc)try{return a()}catch(c){return this.error({name:b,message:"could not be initialized",more:c.name+" "+c.message})}return a()},patch:function(a){this.fix_outer(a),a.scope=this.scope,a.rtl=this.rtl},inherit:function(a,b){for(var c=b.split(" "),d=c.length-1;d>=0;d--)this.lib_methods.hasOwnProperty(c[d])&&(this.libs[a.name][c[d]]=this.lib_methods[c[d]])},random_str:function(a){var b="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz".split("");a||(a=Math.floor(Math.random()*b.length));for(var c="",d=0;a>d;d++)c+=b[Math.floor(Math.random()*b.length)];return c},libs:{},lib_methods:{set_data:function(a,b){var c=[this.name,+new Date,Foundation.random_str(5)].join("-");return Foundation.cache[c]=b,a.attr("data-"+this.name+"-id",c),b},get_data:function(a){return Foundation.cache[a.attr("data-"+this.name+"-id")]},remove_data:function(b){b?(delete Foundation.cache[b.attr("data-"+this.name+"-id")],b.attr("data-"+this.name+"-id","")):a("[data-"+this.name+"-id]").each(function(){delete Foundation.cache[a(this).attr("data-"+this.name+"-id")],a(this).attr("data-"+this.name+"-id","")})},throttle:function(a,b){var c=null;return function(){var d=this,e=arguments;clearTimeout(c),c=setTimeout(function(){a.apply(d,e)},b)}},data_options:function(b){function c(a){return!isNaN(a-0)&&null!==a&&""!==a&&a!==!1&&a!==!0}function d(b){return"string"==typeof b?a.trim(b):b}var e,f,g={},h=(b.attr("data-options")||":").split(";"),i=h.length;for(e=i-1;e>=0;e--)f=h[e].split(":"),/true/i.test(f[1])&&(f[1]=!0),/false/i.test(f[1])&&(f[1]=!1),c(f[1])&&(f[1]=parseInt(f[1],10)),2===f.length&&f[0].length>0&&(g[d(f[0])]=d(f[1]));return g},delay:function(a,b){return setTimeout(a,b)},scrollTo:function(c,d,e){if(!(0>e)){var f=d-a(b).scrollTop(),g=f/e*10;this.scrollToTimerCache=setTimeout(function(){isNaN(parseInt(g,10))||(b.scrollTo(0,a(b).scrollTop()+g),this.scrollTo(c,d,e-10))}.bind(this),10)}},scrollLeft:function(a){return a.length?"scrollLeft"in a[0]?a[0].scrollLeft:a[0].pageXOffset:void 0},empty:function(a){if(a.length&&a.length>0)return!1;if(a.length&&0===a.length)return!0;for(var b in a)if(hasOwnProperty.call(a,b))return!1;return!0}},fix_outer:function(a){a.outerHeight=function(a,b){return"function"==typeof Zepto?a.height():"undefined"!=typeof b?a.outerHeight(b):a.outerHeight()},a.outerWidth=function(a){return"function"==typeof Zepto?a.width():"undefined"!=typeof bool?a.outerWidth(bool):a.outerWidth()}},error:function(a){return a.name+" "+a.message+"; "+a.more},off:function(){return a(this.scope).off(".fndtn"),a(b).off(".fndtn"),!0},zj:function(){return"undefined"!=typeof Zepto?Zepto:jQuery}()},a.fn.foundation=function(){var a=Array.prototype.slice.call(arguments,0);return this.each(function(){return Foundation.init.apply(Foundation,[this].concat(a)),this})}}(libFuncName,this,this.document),function(a,b,c,d){"use strict";Foundation.libs.alerts={name:"alerts",version:"4.0.0",settings:{speed:300,callback:function(){}},init:function(b,c,d){return this.scope=b||this.scope,"object"==typeof c&&a.extend(!0,this.settings,c),"string"!=typeof c?(this.settings.init||this.events(),this.settings.init):this[c].call(this,d)},events:function(){var b=this;a(this.scope).on("click.fndtn.alerts","[data-alert] a.close",function(c){c.preventDefault(),a(this).closest("[data-alert]").fadeOut(b.speed,function(){a(this).remove(),b.settings.callback()})}),this.settings.init=!0},off:function(){a(this.scope).off(".fndtn.alerts")},reflow:function(){}}}(Foundation.zj,this,this.document),function(a,b,c,d){"use strict";Foundation.libs.clearing={name:"clearing",version:"4.1.3",settings:{templates:{viewing:'<a href="#" class="clearing-close">&times;</a><div class="visible-img" style="display: none"><img src="//:0"><p class="clearing-caption"></p><a href="#" class="clearing-main-prev"><span></span></a><a href="#" class="clearing-main-next"><span></span></a></div>'},close_selectors:".clearing-close",init:!1,locked:!1},init:function(b,c,d){var e=this;return Foundation.inherit(this,"set_data get_data remove_data throttle data_options"),"object"==typeof c&&(d=a.extend(!0,this.settings,c)),"string"!=typeof c?(a(this.scope).find("ul[data-clearing]").each(function(){var b=a(this),c=c||{},d=b.find("li"),f=e.get_data(b);!f&&d.length>0&&(c.$parent=b.parent(),e.set_data(b,a.extend({},e.settings,c,e.data_options(b))),e.assemble(b.find("li")),e.settings.init||e.events().swipe_events())}),this.settings.init):this[c].call(this,d)},events:function(){var c=this;return a(this.scope).on("click.fndtn.clearing","ul[data-clearing] li",function(b,d,e){var d=d||a(this),e=e||d,f=d.next("li"),g=c.get_data(d.parent()),h=a(b.target);b.preventDefault(),g||c.init(),e.hasClass("visible")&&d[0]===e[0]&&f.length>0&&c.is_open(d)&&(e=f,h=e.find("img")),c.open(h,d,e),c.update_paddles(e)}).on("click.fndtn.clearing",".clearing-main-next",function(a){this.nav(a,"next")}.bind(this)).on("click.fndtn.clearing",".clearing-main-prev",function(a){this.nav(a,"prev")}.bind(this)).on("click.fndtn.clearing",this.settings.close_selectors,function(a){Foundation.libs.clearing.close(a,this)}).on("keydown.fndtn.clearing",function(a){this.keydown(a)}.bind(this)),a(b).on("resize.fndtn.clearing",function(){this.resize()}.bind(this)),this.settings.init=!0,this},swipe_events:function(){var b=this;a(this.scope).on("touchstart.fndtn.clearing",".visible-img",function(b){b.touches||(b=b.originalEvent);var c={start_page_x:b.touches[0].pageX,start_page_y:b.touches[0].pageY,start_time:(new Date).getTime(),delta_x:0,is_scrolling:d};a(this).data("swipe-transition",c),b.stopPropagation()}).on("touchmove.fndtn.clearing",".visible-img",function(c){if(c.touches||(c=c.originalEvent),!(c.touches.length>1||c.scale&&1!==c.scale)){var d=a(this).data("swipe-transition");if("undefined"==typeof d&&(d={}),d.delta_x=c.touches[0].pageX-d.start_page_x,"undefined"==typeof d.is_scrolling&&(d.is_scrolling=!!(d.is_scrolling||Math.abs(d.delta_x)<Math.abs(c.touches[0].pageY-d.start_page_y))),!d.is_scrolling&&!d.active){c.preventDefault();var e=d.delta_x<0?"next":"prev";d.active=!0,b.nav(c,e)}}}).on("touchend.fndtn.clearing",".visible-img",function(b){a(this).data("swipe-transition",{}),b.stopPropagation()})},assemble:function(b){var c=b.parent();c.after('<div id="foundationClearingHolder"></div>');var d=a("#foundationClearingHolder"),e=this.get_data(c),f=c.detach(),g={grid:'<div class="carousel">'+this.outerHTML(f[0])+"</div>",viewing:e.templates.viewing},h='<div class="clearing-assembled"><div>'+g.viewing+g.grid+"</div></div>";return d.after(h).remove()},open:function(a,b,c){var d=c.closest(".clearing-assembled"),e=d.find("div").first(),f=e.find(".visible-img"),g=f.find("img").not(a);this.locked()||(g.attr("src",this.load(a)).css("visibility","hidden"),this.loaded(g,function(){g.css("visibility","visible"),d.addClass("clearing-blackout"),e.addClass("clearing-container"),f.show(),this.fix_height(c).caption(f.find(".clearing-caption"),a).center(g).shift(b,c,function(){c.siblings().removeClass("visible"),c.addClass("visible")})}.bind(this)))},close:function(b,c){b.preventDefault();var d,e,f=function(a){return/blackout/.test(a.selector)?a:a.closest(".clearing-blackout")}(a(c));return c===b.target&&f&&(d=f.find("div").first(),e=d.find(".visible-img"),this.settings.prev_index=0,f.find("ul[data-clearing]").attr("style","").closest(".clearing-blackout").removeClass("clearing-blackout"),d.removeClass("clearing-container"),e.hide()),!1},is_open:function(a){return a.parent().attr("style").length>0},keydown:function(b){var c=a(".clearing-blackout").find("ul[data-clearing]");39===b.which&&this.go(c,"next"),37===b.which&&this.go(c,"prev"),27===b.which&&a("a.clearing-close").trigger("click")},nav:function(b,c){var d=a(".clearing-blackout").find("ul[data-clearing]");b.preventDefault(),this.go(d,c)},resize:function(){var b=a(".clearing-blackout .visible-img").find("img");b.length&&this.center(b)},fix_height:function(b){var c=b.parent().children(),d=this;return c.each(function(){var b=a(this),c=b.find("img");b.height()>d.outerHeight(c)&&b.addClass("fix-height")}).closest("ul").width(100*c.length+"%"),this},update_paddles:function(a){var b=a.closest(".carousel").siblings(".visible-img");a.next().length>0?b.find(".clearing-main-next").removeClass("disabled"):b.find(".clearing-main-next").addClass("disabled"),a.prev().length>0?b.find(".clearing-main-prev").removeClass("disabled"):b.find(".clearing-main-prev").addClass("disabled")},center:function(a){return this.rtl?a.css({marginRight:-(this.outerWidth(a)/2),marginTop:-(this.outerHeight(a)/2)}):a.css({marginLeft:-(this.outerWidth(a)/2),marginTop:-(this.outerHeight(a)/2)}),this},load:function(a){if("A"===a[0].nodeName)var b=a.attr("href");else var b=a.parent().attr("href");return this.preload(a),b?b:a.attr("src")},preload:function(a){this.img(a.closest("li").next()).img(a.closest("li").prev())},loaded:function(a,b){function c(){b()}function d(){if(this.one("load",c),/MSIE (\d+\.\d+);/.test(navigator.userAgent)){var a=this.attr("src"),b=a.match(/\?/)?"&":"?";b+="random="+(new Date).getTime(),this.attr("src",a+b)}}return a.attr("src")?void(a[0].complete||4===a[0].readyState?c():d.call(a)):void c()},img:function(a){if(a.length){var b=new Image,c=a.find("a");c.length?b.src=c.attr("href"):b.src=a.find("img").attr("src")}return this},caption:function(a,b){var c=b.data("caption");return c?a.html(c).show():a.text("").hide(),this},go:function(a,b){var c=a.find(".visible"),d=c[b]();d.length&&d.find("img").trigger("click",[c,d])},shift:function(a,b,c){var d,e=b.parent(),f=this.settings.prev_index||b.index(),g=this.direction(e,a,b),h=parseInt(e.css("left"),10),i=this.outerWidth(b);b.index()===f||/skip/.test(g)?/skip/.test(g)&&(d=b.index()-this.settings.up_count,this.lock(),d>0?e.animate({left:-(d*i)},300,this.unlock()):e.animate({left:0},300,this.unlock())):/left/.test(g)?(this.lock(),e.animate({left:h+i},300,this.unlock())):/right/.test(g)&&(this.lock(),e.animate({left:h-i},300,this.unlock())),c()},direction:function(b,c,d){var e,f=b.find("li"),g=this.outerWidth(f)+this.outerWidth(f)/4,h=Math.floor(this.outerWidth(a(".clearing-container"))/g)-1,i=f.index(d);return this.settings.up_count=h,e=this.adjacent(this.settings.prev_index,i)?i>h&&i>this.settings.prev_index?"right":i>h-1&&i<=this.settings.prev_index?"left":!1:"skip",this.settings.prev_index=i,e},adjacent:function(a,b){for(var c=b+1;c>=b-1;c--)if(c===a)return!0;return!1},lock:function(){this.settings.locked=!0},unlock:function(){this.settings.locked=!1},locked:function(){return this.settings.locked},outerHTML:function(a){return a.outerHTML||(new XMLSerializer).serializeToString(a)},off:function(){a(this.scope).off(".fndtn.clearing"),a(b).off(".fndtn.clearing"),this.remove_data(),this.settings.init=!1},reflow:function(){this.init()}}}(Foundation.zj,this,this.document),function(a,b,c){function d(a){return a}function e(a){return decodeURIComponent(a.replace(f," "))}var f=/\+/g,g=a.cookie=function(f,h,i){if(h!==c){if(i=a.extend({},g.defaults,i),null===h&&(i.expires=-1),"number"==typeof i.expires){var j=i.expires,k=i.expires=new Date;k.setDate(k.getDate()+j)}return h=g.json?JSON.stringify(h):String(h),b.cookie=[encodeURIComponent(f),"=",g.raw?h:encodeURIComponent(h),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}for(var l=g.raw?d:e,m=b.cookie.split("; "),n=0,o=m.length;o>n;n++){var p=m[n].split("=");if(l(p.shift())===f){var q=l(p.join("="));return g.json?JSON.parse(q):q}}return null};g.defaults={},a.removeCookie=function(b,c){return null!==a.cookie(b)?(a.cookie(b,null,c),!0):!1}}(Foundation.zj,document),function(a,b,c,d){"use strict";Foundation.libs.dropdown={name:"dropdown",version:"4.2.0",settings:{activeClass:"open",is_hover:!1,opened:function(){},closed:function(){}},init:function(b,c,d){return this.scope=b||this.scope,Foundation.inherit(this,"throttle scrollLeft data_options"),"object"==typeof c&&a.extend(!0,this.settings,c),"string"!=typeof c?(this.settings.init||this.events(),this.settings.init):this[c].call(this,d)},events:function(){var c=this;a(this.scope).on("click.fndtn.dropdown","[data-dropdown]",function(b){var d=a.extend({},c.settings,c.data_options(a(this)));b.preventDefault(),d.is_hover||c.toggle(a(this))}).on("mouseenter","[data-dropdown]",function(b){var d=a.extend({},c.settings,c.data_options(a(this)));d.is_hover&&c.toggle(a(this))}).on("mouseleave","[data-dropdown-content]",function(b){var d=a('[data-dropdown="'+a(this).attr("id")+'"]'),e=a.extend({},c.settings,c.data_options(d));e.is_hover&&c.close.call(c,a(this))}).on("opened.fndtn.dropdown","[data-dropdown-content]",this.settings.opened).on("closed.fndtn.dropdown","[data-dropdown-content]",this.settings.closed),a("body").on("click.fndtn.dropdown",function(b){var d=a(b.target).closest("[data-dropdown-content]");if(!a(b.target).data("dropdown"))return d.length>0&&(a(b.target).is("[data-dropdown-content]")||a.contains(d.first()[0],b.target))?void b.stopPropagation():void c.close.call(c,a("[data-dropdown-content]"))}),a(b).on("resize.fndtn.dropdown",c.throttle(function(){c.resize.call(c)},50)).trigger("resize"),this.settings.init=!0},close:function(b){var c=this;b.each(function(){a(this).hasClass(c.settings.activeClass)&&(a(this).css(Foundation.rtl?"right":"left","-99999px").removeClass(c.settings.activeClass),a(this).trigger("closed"))})},open:function(a,b){this.css(a.addClass(this.settings.activeClass),b),a.trigger("opened")},toggle:function(b){var c=a("#"+b.data("dropdown"));this.close.call(this,a("[data-dropdown-content]").not(c)),c.hasClass(this.settings.activeClass)?this.close.call(this,c):(this.close.call(this,a("[data-dropdown-content]")),this.open.call(this,c,b))},resize:function(){var b=a("[data-dropdown-content].open"),c=a("[data-dropdown='"+b.attr("id")+"']");b.length&&c.length&&this.css(b,c)},css:function(c,d){var e=c.offsetParent();if(e.length>0&&/body/i.test(c.offsetParent()[0].nodeName)){var f=d.offset();f.top-=c.offsetParent().offset().top,f.left-=c.offsetParent().offset().left}else var f=d.position();if(this.small())c.css({position:"absolute",width:"95%",left:"2.5%","max-width":"none",top:f.top+this.outerHeight(d)});else{if(!Foundation.rtl&&a(b).width()>this.outerWidth(c)+d.offset().left){var g=f.left;c.hasClass("right")&&c.removeClass("right")}else{c.hasClass("right")||c.addClass("right");var g=f.left-(this.outerWidth(c)-this.outerWidth(d))}c.attr("style","").css({position:"absolute",top:f.top+this.outerHeight(d),left:g})}return c},small:function(){return a(b).width()<768||a("html").hasClass("lt-ie9")},off:function(){a(this.scope).off(".fndtn.dropdown"),a("html, body").off(".fndtn.dropdown"),a(b).off(".fndtn.dropdown"),a("[data-dropdown-content]").off(".fndtn.dropdown"),this.settings.init=!1},reflow:function(){}}}(Foundation.zj,this,this.document),function(a,b,c,d){"use strict";Foundation.libs.forms={name:"forms",version:"4.2.1",cache:{},settings:{disable_class:"no-custom",last_combo:null},init:function(b,c,d){return"object"==typeof c&&a.extend(!0,this.settings,c),"string"!=typeof c?(this.settings.init||this.events(),this.assemble(),this.settings.init):this[c].call(this,d)},assemble:function(){a('form.custom input[type="radio"]',a(this.scope)).not('[data-customforms="disabled"]').each(this.append_custom_markup),a('form.custom input[type="checkbox"]',a(this.scope)).not('[data-customforms="disabled"]').each(this.append_custom_markup),a("form.custom select",a(this.scope)).not('[data-customforms="disabled"]').not("[multiple=multiple]").each(this.append_custom_select)},events:function(){var d=this;a(this.scope).on("click.fndtn.forms","form.custom span.custom.checkbox",function(b){b.preventDefault(),b.stopPropagation(),d.toggle_checkbox(a(this))}).on("click.fndtn.forms","form.custom span.custom.radio",function(b){b.preventDefault(),b.stopPropagation(),d.toggle_radio(a(this))}).on("change.fndtn.forms",'form.custom select:not([data-customforms="disabled"])',function(b,c){d.refresh_custom_select(a(this),c)}).on("click.fndtn.forms","form.custom label",function(b){if(a(b.target).is("label")){var c,e,f=a("#"+d.escape(a(this).attr("for"))+':not([data-customforms="disabled"])');0!==f.length&&("checkbox"===f.attr("type")?(b.preventDefault(),c=a(this).find("span.custom.checkbox"),0==c.length&&(c=f.add(this).siblings("span.custom.checkbox").first()),d.toggle_checkbox(c)):"radio"===f.attr("type")&&(b.preventDefault(),e=a(this).find("span.custom.radio"),0==e.length&&(e=f.add(this).siblings("span.custom.radio").first()),d.toggle_radio(e)))}}).on("mousedown.fndtn.forms","form.custom div.custom.dropdown",function(){return!1}).on("click.fndtn.forms","form.custom div.custom.dropdown a.current, form.custom div.custom.dropdown a.selector",function(b){var c=a(this),f=c.closest("div.custom.dropdown"),g=e(f,"select");return f.hasClass("open")||a(d.scope).trigger("click"),b.preventDefault(),!1===g.is(":disabled")?(f.toggleClass("open"),f.hasClass("open")?a(d.scope).on("click.fndtn.forms.customdropdown",function(){f.removeClass("open"),a(d.scope).off(".fndtn.forms.customdropdown")}):a(d.scope).on(".fndtn.forms.customdropdown"),!1):void 0}).on("click.fndtn.forms touchend.fndtn.forms","form.custom div.custom.dropdown li",function(b){var c=a(this),d=c.closest("div.custom.dropdown"),f=e(d,"select"),g=0;if(b.preventDefault(),b.stopPropagation(),!a(this).hasClass("disabled")){a("div.dropdown").not(d).removeClass("open");var h=c.closest("ul").find("li.selected");h.removeClass("selected"),c.addClass("selected"),d.removeClass("open").find("a.current").text(c.text()),c.closest("ul").find("li").each(function(a){c[0]==this&&(g=a)}),f[0].selectedIndex=g,f.data("prevalue",h.html()),f.trigger("change")}}),a(b).on("keydown",function(b){var d=(c.activeElement,Foundation.libs.forms),e=a(".custom.dropdown.open");if(e.length>0){if(b.preventDefault(),13===b.which&&e.find("li.selected").trigger("click"),27===b.which&&e.removeClass("open"),b.which>=65&&b.which<=90){var f=d.go_to(e,b.which),g=e.find("li.selected");f&&(g.removeClass("selected"),d.scrollTo(f.addClass("selected"),300))}if(38===b.which){var g=e.find("li.selected"),h=g.prev(":not(.disabled)");h.length>0&&(h.parent()[0].scrollTop=h.parent().scrollTop()-d.outerHeight(h),g.removeClass("selected"),h.addClass("selected"))}else if(40===b.which){var g=e.find("li.selected"),f=g.next(":not(.disabled)");f.length>0&&(f.parent()[0].scrollTop=f.parent().scrollTop()+d.outerHeight(f),g.removeClass("selected"),f.addClass("selected"))}}}),this.settings.init=!0},go_to:function(a,b){var c=a.find("li"),d=c.length;if(d>0)for(var e=0;d>e;e++){var f=c.eq(e).text().charAt(0).toLowerCase();if(f===String.fromCharCode(b).toLowerCase())return c.eq(e)}},scrollTo:function(a,b){if(!(0>b)){var c=a.parent(),d=this.outerHeight(a),e=d*a.index()-c.scrollTop(),f=e/b*10;this.scrollToTimerCache=setTimeout(function(){isNaN(parseInt(f,10))||(c[0].scrollTop=c.scrollTop()+f,this.scrollTo(a,b-10))}.bind(this),10)}},append_custom_markup:function(b,c){var d=a(c),e=d.attr("type"),f=d.next("span.custom."+e);0===f.length&&(f=a('<span class="custom '+e+'"></span>').insertAfter(d)),f.toggleClass("checked",d.is(":checked")),f.toggleClass("disabled",d.is(":disabled"))},append_custom_select:function(b,c){var d,e=Foundation.libs.forms,f=a(c),g=f.next("div.custom.dropdown"),h=g.find("ul"),i=(g.find(".current"),g.find(".selector")),j=f.find("option"),k=j.filter(":selected"),l=f.attr("class")?f.attr("class").split(" "):[],m=0,n="",o=!1;if(!f.hasClass(e.settings.disable_class)){if(0===g.length){var p=f.hasClass("small")?"small":f.hasClass("medium")?"medium":f.hasClass("large")?"large":f.hasClass("expand")?"expand":"";g=a('<div class="'+["custom","dropdown",p].concat(l).filter(function(a,b,c){return""==a?!1:c.indexOf(a)==b}).join(" ")+'"><a href="#" class="selector"></a><ul /></div>'),i=g.find(".selector"),h=g.find("ul"),n=j.map(function(){var b=a(this).attr("class")?a(this).attr("class"):"";return"<li class='"+b+"'>"+a(this).html()+"</li>"}).get().join(""),h.append(n),o=g.prepend('<a href="#" class="current">'+k.html()+"</a>").find(".current"),f.after(g).addClass("hidden-field")}else n=j.map(function(){return"<li>"+a(this).html()+"</li>"}).get().join(""),h.html("").append(n);if(e.assign_id(f,g),g.toggleClass("disabled",f.is(":disabled")),d=h.find("li"),e.cache[g.data("id")]=d.length,j.each(function(b){this.selected&&(d.eq(b).addClass("selected"),o&&o.html(a(this).html())),a(this).is(":disabled")&&d.eq(b).addClass("disabled")}),!g.is(".small, .medium, .large, .expand")){g.addClass("open");var e=Foundation.libs.forms;e.hidden_fix.adjust(h),m=e.outerWidth(d)>m?e.outerWidth(d):m,Foundation.libs.forms.hidden_fix.reset(),g.removeClass("open")}}},assign_id:function(a,b){var c=[+new Date,Foundation.random_str(5)].join("-");a.attr("data-id",c),b.attr("data-id",c)},refresh_custom_select:function(b,c){var d=this,e=0,f=b.next(),g=b.find("option"),h=f.find("li");(h.length!=this.cache[f.data("id")]||c)&&(f.find("ul").html(""),g.each(function(){var b=a("<li>"+a(this).html()+"</li>");f.find("ul").append(b)}),g.each(function(b){this.selected&&(f.find("li").eq(b).addClass("selected"),f.find(".current").html(a(this).html())),a(this).is(":disabled")&&f.find("li").eq(b).addClass("disabled")}),f.removeAttr("style").find("ul").removeAttr("style"),f.find("li").each(function(){f.addClass("open"),d.outerWidth(a(this))>e&&(e=d.outerWidth(a(this))),f.removeClass("open")}),h=f.find("li"),this.cache[f.data("id")]=h.length)},toggle_checkbox:function(a){var b=a.prev(),c=b[0];!1===b.is(":disabled")&&(c.checked=c.checked?!1:!0,a.toggleClass("checked"),b.trigger("change"))},toggle_radio:function(a){var b=a.prev(),c=b.closest("form.custom"),d=b[0];!1===b.is(":disabled")&&(c.find('input[type="radio"][name="'+this.escape(b.attr("name"))+'"]').next().not(a).removeClass("checked"),a.hasClass("checked")||a.toggleClass("checked"),d.checked=a.hasClass("checked"),b.trigger("change"))},escape:function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},hidden_fix:{tmp:[],hidden:null,adjust:function(b){var c=this;c.hidden=b.parents(),c.hidden=c.hidden.add(b).filter(":hidden"),c.hidden.each(function(){var b=a(this);c.tmp.push(b.attr("style")),b.css({visibility:"hidden",display:"block"})})},reset:function(){var b=this;b.hidden.each(function(c){var e=a(this),f=b.tmp[c];f===d?e.removeAttr("style"):e.attr("style",f)}),b.tmp=[],b.hidden=null}},off:function(){a(this.scope).off(".fndtn.forms")},reflow:function(){}};var e=function(b,c){for(var b=b.prev();b.length;){if(b.is(c))return b;b=b.prev()}return a()}}(Foundation.zj,this,this.document),function(a,b,c,d){"use strict";Foundation.libs.joyride={name:"joyride",version:"4.2.0",defaults:{expose:!1,modal:!1,tipLocation:"bottom",nubPosition:"auto",scrollSpeed:300,timer:0,startTimerOnClick:!0,startOffset:0,nextButton:!0,tipAnimation:"fade",pauseAfter:[],exposed:[],tipAnimationFadeSpeed:300,cookieMonster:!1,cookieName:"joyride",cookieDomain:!1,cookieExpires:365,tipContainer:"body",postRideCallback:function(){},postStepCallback:function(){},preStepCallback:function(){},preRideCallback:function(){},postExposeCallback:function(){},template:{link:'<a href="#close" class="joyride-close-tip">&times;</a>',timer:'<div class="joyride-timer-indicator-wrap"><span class="joyride-timer-indicator"></span></div>',tip:'<div class="joyride-tip-guide"><span class="joyride-nub"></span></div>',wrapper:'<div class="joyride-content-wrapper"></div>',button:'<a href="#" class="small button joyride-next-tip"></a>',modal:'<div class="joyride-modal-bg"></div>',expose:'<div class="joyride-expose-wrapper"></div>',exposeCover:'<div class="joyride-expose-cover"></div>'},exposeAddClass:""},settings:{},init:function(b,c,d){return this.scope=b||this.scope,Foundation.inherit(this,"throttle data_options scrollTo scrollLeft delay"),"object"==typeof c?a.extend(!0,this.settings,this.defaults,c):a.extend(!0,this.settings,this.defaults,d),"string"!=typeof c?(this.settings.init||this.events(),this.settings.init):this[c].call(this,d)},events:function(){var c=this;a(this.scope).on("click.joyride",".joyride-next-tip, .joyride-modal-bg",function(a){a.preventDefault(),this.settings.$li.next().length<1?this.end():this.settings.timer>0?(clearTimeout(this.settings.automate),this.hide(),this.show(),this.startTimer()):(this.hide(),this.show())}.bind(this)).on("click.joyride",".joyride-close-tip",function(a){a.preventDefault(),this.end()}.bind(this)),a(b).on("resize.fndtn.joyride",c.throttle(function(){if(a("[data-joyride]").length>0&&c.settings.$next_tip){if(c.settings.exposed.length>0){var b=a(c.settings.exposed);b.each(function(){var b=a(this);c.un_expose(b),c.expose(b)})}c.is_phone()?c.pos_phone():c.pos_default(!1,!0)}},100)),this.settings.init=!0},start:function(){var b=this,c=a(this.scope).find("[data-joyride]"),d=["timer","scrollSpeed","startOffset","tipAnimationFadeSpeed","cookieExpires"],e=d.length;this.settings.init||this.init(),this.settings.$content_el=c,this.settings.$body=a(this.settings.tipContainer),this.settings.body_offset=a(this.settings.tipContainer).position(),this.settings.$tip_content=this.settings.$content_el.find("> li"),this.settings.paused=!1,this.settings.attempts=0,this.settings.tipLocationPatterns={top:["bottom"],bottom:[],left:["right","top","bottom"],right:["left","top","bottom"]},"function"!=typeof a.cookie&&(this.settings.cookieMonster=!1),(!this.settings.cookieMonster||this.settings.cookieMonster&&null===a.cookie(this.settings.cookieName))&&(this.settings.$tip_content.each(function(c){var f=a(this);a.extend(!0,b.settings,b.data_options(f));for(var g=e-1;g>=0;g--)b.settings[d[g]]=parseInt(b.settings[d[g]],10);b.create({$li:f,index:c})}),!this.settings.startTimerOnClick&&this.settings.timer>0?(this.show("init"),this.startTimer()):this.show("init"))},resume:function(){this.set_li(),this.show()},tip_template:function(b){var c,d;return b.tip_class=b.tip_class||"",c=a(this.settings.template.tip).addClass(b.tip_class),d=a.trim(a(b.li).html())+this.button_text(b.button_text)+this.settings.template.link+this.timer_instance(b.index),c.append(a(this.settings.template.wrapper)),c.first().attr("data-index",b.index),a(".joyride-content-wrapper",c).append(d),c[0]},timer_instance:function(b){var c;return c=0===b&&this.settings.startTimerOnClick&&this.settings.timer>0||0===this.settings.timer?"":this.outerHTML(a(this.settings.template.timer)[0])},button_text:function(b){return this.settings.nextButton?(b=a.trim(b)||"Next",b=this.outerHTML(a(this.settings.template.button).append(b)[0])):b="",b},create:function(b){var c=b.$li.attr("data-button")||b.$li.attr("data-text"),d=b.$li.attr("class"),e=a(this.tip_template({tip_class:d,index:b.index,button_text:c,li:b.$li}));a(this.settings.tipContainer).append(e)},show:function(b){var c=null;this.settings.$li===d||-1===a.inArray(this.settings.$li.index(),this.settings.pauseAfter)?(this.settings.paused?this.settings.paused=!1:this.set_li(b),this.settings.attempts=0,this.settings.$li.length&&this.settings.$target.length>0?(b&&(this.settings.preRideCallback(this.settings.$li.index(),this.settings.$next_tip),this.settings.modal&&this.show_modal()),this.settings.preStepCallback(this.settings.$li.index(),this.settings.$next_tip),this.settings.modal&&this.settings.expose&&this.expose(),this.settings.tipSettings=a.extend(this.settings,this.data_options(this.settings.$li)),this.settings.timer=parseInt(this.settings.timer,10),this.settings.tipSettings.tipLocationPattern=this.settings.tipLocationPatterns[this.settings.tipSettings.tipLocation],/body/i.test(this.settings.$target.selector)||this.scroll_to(),this.is_phone()?this.pos_phone(!0):this.pos_default(!0),c=this.settings.$next_tip.find(".joyride-timer-indicator"),/pop/i.test(this.settings.tipAnimation)?(c.width(0),this.settings.timer>0?(this.settings.$next_tip.show(),this.delay(function(){c.animate({width:c.parent().width()},this.settings.timer,"linear")}.bind(this),this.settings.tipAnimationFadeSpeed)):this.settings.$next_tip.show()):/fade/i.test(this.settings.tipAnimation)&&(c.width(0),this.settings.timer>0?(this.settings.$next_tip.fadeIn(this.settings.tipAnimationFadeSpeed).show(),this.delay(function(){c.animate({width:c.parent().width()},this.settings.timer,"linear")}.bind(this),this.settings.tipAnimationFadeSpeed)):this.settings.$next_tip.fadeIn(this.settings.tipAnimationFadeSpeed)),this.settings.$current_tip=this.settings.$next_tip):this.settings.$li&&this.settings.$target.length<1?this.show():this.end()):this.settings.paused=!0},is_phone:function(){return Modernizr?Modernizr.mq("only screen and (max-width: 767px)")||a(".lt-ie9").length>0:this.settings.$window.width()<767},hide:function(){this.settings.modal&&this.settings.expose&&this.un_expose(),this.settings.modal||a(".joyride-modal-bg").hide(),this.settings.$current_tip.hide(),this.settings.postStepCallback(this.settings.$li.index(),this.settings.$current_tip)},set_li:function(a){a?(this.settings.$li=this.settings.$tip_content.eq(this.settings.startOffset),this.set_next_tip(),this.settings.$current_tip=this.settings.$next_tip):(this.settings.$li=this.settings.$li.next(),this.set_next_tip()),this.set_target()},set_next_tip:function(){this.settings.$next_tip=a(".joyride-tip-guide[data-index='"+this.settings.$li.index()+"']"),this.settings.$next_tip.data("closed","");
  },set_target:function(){var b=this.settings.$li.attr("data-class"),d=this.settings.$li.attr("data-id"),e=function(){return d?a(c.getElementById(d)):b?a("."+b).first():a("body")};this.settings.$target=e()},scroll_to:function(){var c,d;c=a(b).height()/2,d=Math.ceil(this.settings.$target.offset().top-c+this.outerHeight(this.settings.$next_tip)),d>0&&this.scrollTo(a("html, body"),d,this.settings.scrollSpeed)},paused:function(){return-1===a.inArray(this.settings.$li.index()+1,this.settings.pauseAfter)},restart:function(){this.hide(),this.settings.$li=d,this.show("init")},pos_default:function(c,d){var e=(Math.ceil(a(b).height()/2),this.settings.$next_tip.offset(),this.settings.$next_tip.find(".joyride-nub")),f=Math.ceil(this.outerWidth(e)/2),g=Math.ceil(this.outerHeight(e)/2),h=c||!1;if(h&&(this.settings.$next_tip.css("visibility","hidden"),this.settings.$next_tip.show()),"undefined"==typeof d&&(d=!1),/body/i.test(this.settings.$target.selector))this.settings.$li.length&&this.pos_modal(e);else{if(this.bottom()){var i=this.settings.$target.offset().left;Foundation.rtl&&(i=this.settings.$target.offset().width-this.settings.$next_tip.width()+i),this.settings.$next_tip.css({top:this.settings.$target.offset().top+g+this.outerHeight(this.settings.$target),left:i}),this.nub_position(e,this.settings.tipSettings.nubPosition,"top")}else if(this.top()){var i=this.settings.$target.offset().left;Foundation.rtl&&(i=this.settings.$target.offset().width-this.settings.$next_tip.width()+i),this.settings.$next_tip.css({top:this.settings.$target.offset().top-this.outerHeight(this.settings.$next_tip)-g,left:i}),this.nub_position(e,this.settings.tipSettings.nubPosition,"bottom")}else this.right()?(this.settings.$next_tip.css({top:this.settings.$target.offset().top,left:this.outerWidth(this.settings.$target)+this.settings.$target.offset().left+f}),this.nub_position(e,this.settings.tipSettings.nubPosition,"left")):this.left()&&(this.settings.$next_tip.css({top:this.settings.$target.offset().top,left:this.settings.$target.offset().left-this.outerWidth(this.settings.$next_tip)-f}),this.nub_position(e,this.settings.tipSettings.nubPosition,"right"));!this.visible(this.corners(this.settings.$next_tip))&&this.settings.attempts<this.settings.tipSettings.tipLocationPattern.length&&(e.removeClass("bottom").removeClass("top").removeClass("right").removeClass("left"),this.settings.tipSettings.tipLocation=this.settings.tipSettings.tipLocationPattern[this.settings.attempts],this.settings.attempts++,this.pos_default())}h&&(this.settings.$next_tip.hide(),this.settings.$next_tip.css("visibility","visible"))},pos_phone:function(b){var c=this.outerHeight(this.settings.$next_tip),d=(this.settings.$next_tip.offset(),this.outerHeight(this.settings.$target)),e=a(".joyride-nub",this.settings.$next_tip),f=Math.ceil(this.outerHeight(e)/2),g=b||!1;e.removeClass("bottom").removeClass("top").removeClass("right").removeClass("left"),g&&(this.settings.$next_tip.css("visibility","hidden"),this.settings.$next_tip.show()),/body/i.test(this.settings.$target.selector)?this.settings.$li.length&&this.pos_modal(e):this.top()?(this.settings.$next_tip.offset({top:this.settings.$target.offset().top-c-f}),e.addClass("bottom")):(this.settings.$next_tip.offset({top:this.settings.$target.offset().top+d+f}),e.addClass("top")),g&&(this.settings.$next_tip.hide(),this.settings.$next_tip.css("visibility","visible"))},pos_modal:function(a){this.center(),a.hide(),this.show_modal()},show_modal:function(){if(!this.settings.$next_tip.data("closed")){var b=a(".joyride-modal-bg");b.length<1&&a("body").append(this.settings.template.modal).show(),/pop/i.test(this.settings.tipAnimation)?b.show():b.fadeIn(this.settings.tipAnimationFadeSpeed)}},expose:function(){var c,d,e,f,g,h="expose-"+Math.floor(1e4*Math.random());if(arguments.length>0&&arguments[0]instanceof a)e=arguments[0];else{if(!this.settings.$target||/body/i.test(this.settings.$target.selector))return!1;e=this.settings.$target}return e.length<1?(b.console&&console.error("element not valid",e),!1):(c=a(this.settings.template.expose),this.settings.$body.append(c),c.css({top:e.offset().top,left:e.offset().left,width:this.outerWidth(e,!0),height:this.outerHeight(e,!0)}),d=a(this.settings.template.exposeCover),f={zIndex:e.css("z-index"),position:e.css("position")},g=null==e.attr("class")?"":e.attr("class"),e.css("z-index",parseInt(c.css("z-index"))+1),"static"==f.position&&e.css("position","relative"),e.data("expose-css",f),e.data("orig-class",g),e.attr("class",g+" "+this.settings.exposeAddClass),d.css({top:e.offset().top,left:e.offset().left,width:this.outerWidth(e,!0),height:this.outerHeight(e,!0)}),this.settings.$body.append(d),c.addClass(h),d.addClass(h),e.data("expose",h),this.settings.postExposeCallback(this.settings.$li.index(),this.settings.$next_tip,e),this.add_exposed(e),void 0)},un_expose:function(){var c,d,e,f,g,h=!1;if(arguments.length>0&&arguments[0]instanceof a)d=arguments[0];else{if(!this.settings.$target||/body/i.test(this.settings.$target.selector))return!1;d=this.settings.$target}return d.length<1?(b.console&&console.error("element not valid",d),!1):(c=d.data("expose"),e=a("."+c),arguments.length>1&&(h=arguments[1]),h===!0?a(".joyride-expose-wrapper,.joyride-expose-cover").remove():e.remove(),f=d.data("expose-css"),"auto"==f.zIndex?d.css("z-index",""):d.css("z-index",f.zIndex),f.position!=d.css("position")&&("static"==f.position?d.css("position",""):d.css("position",f.position)),g=d.data("orig-class"),d.attr("class",g),d.removeData("orig-classes"),d.removeData("expose"),d.removeData("expose-z-index"),this.remove_exposed(d),void 0)},add_exposed:function(b){this.settings.exposed=this.settings.exposed||[],b instanceof a||"object"==typeof b?this.settings.exposed.push(b[0]):"string"==typeof b&&this.settings.exposed.push(b)},remove_exposed:function(b){var c,d;b instanceof a?c=b[0]:"string"==typeof b&&(c=b),this.settings.exposed=this.settings.exposed||[],d=this.settings.exposed.length;for(var e=0;d>e;e++)if(this.settings.exposed[e]==c)return void this.settings.exposed.splice(e,1)},center:function(){var c=a(b);return this.settings.$next_tip.css({top:(c.height()-this.outerHeight(this.settings.$next_tip))/2+c.scrollTop(),left:(c.width()-this.outerWidth(this.settings.$next_tip))/2+this.scrollLeft(c)}),!0},bottom:function(){return/bottom/i.test(this.settings.tipSettings.tipLocation)},top:function(){return/top/i.test(this.settings.tipSettings.tipLocation)},right:function(){return/right/i.test(this.settings.tipSettings.tipLocation)},left:function(){return/left/i.test(this.settings.tipSettings.tipLocation)},corners:function(c){var d=a(b),e=d.height()/2,f=Math.ceil(this.settings.$target.offset().top-e+this.settings.$next_tip.outerHeight()),g=d.width()+this.scrollLeft(d),h=d.height()+f,i=d.height()+d.scrollTop(),j=d.scrollTop();return j>f&&(j=0>f?0:f),h>i&&(i=h),[c.offset().top<j,g<c.offset().left+c.outerWidth(),i<c.offset().top+c.outerHeight(),this.scrollLeft(d)>c.offset().left]},visible:function(a){for(var b=a.length;b--;)if(a[b])return!1;return!0},nub_position:function(a,b,c){"auto"===b?a.addClass(c):a.addClass(b)},startTimer:function(){this.settings.$li.length?this.settings.automate=setTimeout(function(){this.hide(),this.show(),this.startTimer()}.bind(this),this.settings.timer):clearTimeout(this.settings.automate)},end:function(){this.settings.cookieMonster&&a.cookie(this.settings.cookieName,"ridden",{expires:this.settings.cookieExpires,domain:this.settings.cookieDomain}),this.settings.timer>0&&clearTimeout(this.settings.automate),this.settings.modal&&this.settings.expose&&this.un_expose(),this.settings.$next_tip.data("closed",!0),a(".joyride-modal-bg").hide(),this.settings.$current_tip.hide(),this.settings.postStepCallback(this.settings.$li.index(),this.settings.$current_tip),this.settings.postRideCallback(this.settings.$li.index(),this.settings.$current_tip),a(".joyride-tip-guide").remove()},outerHTML:function(a){return a.outerHTML||(new XMLSerializer).serializeToString(a)},off:function(){a(this.scope).off(".joyride"),a(b).off(".joyride"),a(".joyride-close-tip, .joyride-next-tip, .joyride-modal-bg").off(".joyride"),a(".joyride-tip-guide, .joyride-modal-bg").remove(),clearTimeout(this.settings.automate),this.settings={}},reflow:function(){}}}(Foundation.zj,this,this.document),function(a,b,c,d){"use strict";Foundation.libs.magellan={name:"magellan",version:"4.2.0",settings:{activeClass:"active"},init:function(b,c,d){return this.scope=b||this.scope,Foundation.inherit(this,"data_options"),"object"==typeof c&&a.extend(!0,this.settings,c),"string"!=typeof c?(this.settings.init||(this.fixed_magellan=a("[data-magellan-expedition]"),this.set_threshold(),this.last_destination=a("[data-magellan-destination]").last(),this.events()),this.settings.init):this[c].call(this,d)},events:function(){var c=this;a(this.scope).on("arrival.fndtn.magellan","[data-magellan-arrival]",function(b){var d=a(this),e=d.closest("[data-magellan-expedition]"),f=e.attr("data-magellan-active-class")||c.settings.activeClass;d.closest("[data-magellan-expedition]").find("[data-magellan-arrival]").not(d).removeClass(f),d.addClass(f)}),this.fixed_magellan.on("update-position.fndtn.magellan",function(){a(this)}).trigger("update-position"),a(b).on("resize.fndtn.magellan",function(){this.fixed_magellan.trigger("update-position")}.bind(this)).on("scroll.fndtn.magellan",function(){var d=a(b).scrollTop();c.fixed_magellan.each(function(){var b=a(this);"undefined"==typeof b.data("magellan-top-offset")&&b.data("magellan-top-offset",b.offset().top),"undefined"==typeof b.data("magellan-fixed-position")&&b.data("magellan-fixed-position",!1);var e=d+c.settings.threshold>b.data("magellan-top-offset"),f=b.attr("data-magellan-top-offset");b.data("magellan-fixed-position")!=e&&(b.data("magellan-fixed-position",e),e?b.css({position:"fixed",top:0}):b.css({position:"",top:""}),e&&"undefined"!=typeof f&&0!=f&&b.css({position:"fixed",top:f+"px"}))})}),this.last_destination.length>0&&a(b).on("scroll.fndtn.magellan",function(d){var e=a(b).scrollTop(),f=e+a(b).height(),g=Math.ceil(c.last_destination.offset().top);a("[data-magellan-destination]").each(function(){var b=a(this),d=b.attr("data-magellan-destination"),h=b.offset().top-e;h<=c.settings.threshold&&a("[data-magellan-arrival='"+d+"']").trigger("arrival"),f>=a(c.scope).height()&&g>e&&f>g&&a("[data-magellan-arrival]").last().trigger("arrival")})}),this.settings.init=!0},set_threshold:function(){this.settings.threshold||(this.settings.threshold=this.fixed_magellan.length>0?this.outerHeight(this.fixed_magellan,!0):0)},off:function(){a(this.scope).off(".fndtn.magellan")},reflow:function(){}}}(Foundation.zj,this,this.document),function(a,b,c,d){"use strict";Foundation.libs=Foundation.libs||{},Foundation.libs.orbit={name:"orbit",version:"4.2.0",settings:{timer_speed:1e4,pause_on_hover:!0,resume_on_mouseout:!1,animation_speed:500,bullets:!0,stack_on_small:!0,navigation_arrows:!0,slide_number:!0,container_class:"orbit-container",stack_on_small_class:"orbit-stack-on-small",next_class:"orbit-next",prev_class:"orbit-prev",timer_container_class:"orbit-timer",timer_paused_class:"paused",timer_progress_class:"orbit-progress",slides_container_class:"orbit-slides-container",bullets_container_class:"orbit-bullets",bullets_active_class:"active",slide_number_class:"orbit-slide-number",caption_class:"orbit-caption",active_slide_class:"active",orbit_transition_class:"orbit-transitioning"},init:function(b,c,d){var e=this;if(Foundation.inherit(e,"data_options"),"object"==typeof c&&a.extend(!0,e.settings,c),a(b).is("[data-orbit]")){var f=a.extend(!0,{},e);f._init(idx,el)}a("[data-orbit]",b).each(function(b,c){var d=a.extend(!0,{},e);d._init(b,c)})},_container_html:function(){var a=this;return'<div class="'+a.settings.container_class+'"></div>'},_bullets_container_html:function(b){var c=this,d=a('<ol class="'+c.settings.bullets_container_class+'"></ol>');return b.each(function(b,e){var f=a('<li data-orbit-slide-number="'+(b+1)+'" class=""></li>');0===b&&f.addClass(c.settings.bullets_active_class),d.append(f)}),d},_slide_number_html:function(b,c){var d=this,e=a('<div class="'+d.settings.slide_number_class+'"></div>');return e.append("<span>"+b+"</span> of <span>"+c+"</span>"),e},_timer_html:function(){var a=this;return"number"==typeof a.settings.timer_speed&&a.settings.timer_speed>0?'<div class="'+a.settings.timer_container_class+'"><span></span><div class="'+a.settings.timer_progress_class+'"></div></div>':""},_next_html:function(){var a=this;return'<a href="#" class="'+a.settings.next_class+'">Next <span></span></a>'},_prev_html:function(){var a=this;return'<a href="#" class="'+a.settings.prev_class+'">Prev <span></span></a>'},_init:function(b,c){var d=this,e=a(c),f=e.wrap(d._container_html()).parent(),g=e.children();a.extend(!0,d.settings,d.data_options(e)),d.settings.navigation_arrows&&(f.append(d._prev_html()),f.append(d._next_html())),e.addClass(d.settings.slides_container_class),d.settings.stack_on_small&&f.addClass(d.settings.stack_on_small_class),d.settings.slide_number&&f.append(d._slide_number_html(1,g.length)),f.append(d._timer_html()),d.settings.bullets&&f.after(d._bullets_container_html(g)),e.append(g.first().clone().attr("data-orbit-slide","")),e.prepend(g.last().clone().attr("data-orbit-slide","")),e.css(Foundation.rtl?"marginRight":"marginLeft","-100%"),g.first().addClass(d.settings.active_slide_class),d._init_events(e),d._init_dimensions(e),d._start_timer(e)},_init_events:function(e){var f=this,g=e.parent();a(b).on("load.fndtn.orbit",function(){e.height(""),e.height(e.height(g.height())),e.trigger("orbit:ready")}).on("resize.fndtn.orbit",function(){e.height(""),e.height(e.height(g.height()))}),a(c).on("click.fndtn.orbit","[data-orbit-link]",function(b){b.preventDefault();var c=a(b.currentTarget).attr("data-orbit-link"),d=e.find("[data-orbit-slide="+c+"]").first();1===d.length&&(f._reset_timer(e,!0),f._goto(e,d.index(),function(){}))}),g.siblings("."+f.settings.bullets_container_class).on("click.fndtn.orbit","[data-orbit-slide-number]",function(b){b.preventDefault(),f._reset_timer(e,!0),f._goto(e,a(b.currentTarget).data("orbit-slide-number"),function(){})}),g.on("mouseenter.fndtn.orbit",function(a){f.settings.pause_on_hover&&f._stop_timer(e)}).on("mouseleave.fndtn.orbit",function(a){f.settings.resume_on_mouseout&&f._start_timer(e)}).on("orbit:after-slide-change.fndtn.orbit",function(a,b){var c=g.find("."+f.settings.slide_number_class);1===c.length&&c.replaceWith(f._slide_number_html(b.slide_number,b.total_slides))}).on("orbit:next-slide.fndtn.orbit click.fndtn.orbit","."+f.settings.next_class,function(a){a.preventDefault(),f._reset_timer(e,!0),f._goto(e,"next",function(){})}).on("orbit:prev-slide.fndtn.orbit click.fndtn.orbit","."+f.settings.prev_class,function(a){a.preventDefault(),f._reset_timer(e,!0),f._goto(e,"prev",function(){})}).on("orbit:toggle-play-pause.fndtn.orbit click.fndtn.orbit touchstart.fndtn.orbit","."+f.settings.timer_container_class,function(b){b.preventDefault();var c=a(b.currentTarget).toggleClass(f.settings.timer_paused_class),d=c.closest("."+f.settings.container_class).find("."+f.settings.slides_container_class);c.hasClass(f.settings.timer_paused_class)?f._stop_timer(d):f._start_timer(d)}).on("touchstart.fndtn.orbit",function(a){a.touches||(a=a.originalEvent);var b={start_page_x:a.touches[0].pageX,start_page_y:a.touches[0].pageY,start_time:(new Date).getTime(),delta_x:0,is_scrolling:d};g.data("swipe-transition",b),a.stopPropagation()}).on("touchmove.fndtn.orbit",function(a){if(a.touches||(a=a.originalEvent),!(a.touches.length>1||a.scale&&1!==a.scale)){var b=g.data("swipe-transition");if("undefined"==typeof b&&(b={}),b.delta_x=a.touches[0].pageX-b.start_page_x,"undefined"==typeof b.is_scrolling&&(b.is_scrolling=!!(b.is_scrolling||Math.abs(b.delta_x)<Math.abs(a.touches[0].pageY-b.start_page_y))),!b.is_scrolling&&!b.active){a.preventDefault(),f._stop_timer(e);var c=b.delta_x<0?"next":"prev";b.active=!0,f._goto(e,c,function(){})}}}).on("touchend.fndtn.orbit",function(a){g.data("swipe-transition",{}),a.stopPropagation()})},_init_dimensions:function(a){var b=a.parent(),c=a.children();a.css("width",100*c.length+"%"),c.css("width",100/c.length+"%"),a.height(b.height()),a.css("width",100*c.length+"%")},_start_timer:function(a){var b=this,c=a.parent(),d=function(){b._reset_timer(a,!1),b._goto(a,"next",function(){b._start_timer(a)})},e=c.find("."+b.settings.timer_container_class),f=e.find("."+b.settings.timer_progress_class),g=f.width()/e.width(),h=b.settings.timer_speed-g*b.settings.timer_speed;f.animate({width:"100%"},h,"linear",d),a.trigger("orbit:timer-started")},_stop_timer:function(a){var b=this,c=a.parent(),d=c.find("."+b.settings.timer_container_class),e=d.find("."+b.settings.timer_progress_class),f=e.width()/d.width();b._rebuild_timer(c,100*f+"%"),a.trigger("orbit:timer-stopped"),d=c.find("."+b.settings.timer_container_class),d.addClass(b.settings.timer_paused_class)},_reset_timer:function(a,b){var c=this,d=a.parent();if(c._rebuild_timer(d,"0%"),"boolean"==typeof b&&b){var e=d.find("."+c.settings.timer_container_class);e.addClass(c.settings.timer_paused_class)}},_rebuild_timer:function(b,c){var d=this,e=b.find("."+d.settings.timer_container_class),f=a(d._timer_html()),g=f.find("."+d.settings.timer_progress_class);if("function"==typeof Zepto)e.remove(),b.append(f),g.css("width",c);else if("function"==typeof jQuery){var h=e.find("."+d.settings.timer_progress_class);h.css("width",c),h.stop()}},_goto:function(b,c,d){var e=this,f=b.parent(),g=b.children(),h=b.find("."+e.settings.active_slide_class),i=h.index(),j=Foundation.rtl?"marginRight":"marginLeft";if(f.hasClass(e.settings.orbit_transition_class))return!1;"prev"===c?0===i?i=g.length-1:i--:"next"===c?i=(i+1)%g.length:"number"==typeof c&&(i=c%g.length),i===g.length-1&&"next"===c?(b.css(j,"0%"),i=1):0===i&&"prev"===c&&(b.css(j,"-"+100*(g.length-1)+"%"),i=g.length-2),f.addClass(e.settings.orbit_transition_class),h.removeClass(e.settings.active_slide_class),a(g[i]).addClass(e.settings.active_slide_class);var k=f.siblings("."+e.settings.bullets_container_class);1===k.length&&(k.children().removeClass(e.settings.bullets_active_class),a(k.children()[i-1]).addClass(e.settings.bullets_active_class));var l="-"+100*i+"%";if(b.trigger("orbit:before-slide-change"),b.css(j)===l)f.removeClass(e.settings.orbit_transition_class),b.trigger("orbit:after-slide-change",[{slide_number:i,total_slides:b.children().length-2}]),d();else{var m={};m[j]=l,b.animate(m,e.settings.animation_speed,"linear",function(){f.removeClass(e.settings.orbit_transition_class),b.trigger("orbit:after-slide-change",[{slide_number:i,total_slides:b.children().length-2}]),d()})}}}}(Foundation.zj,this,this.document),function(a,b,c){function d(a){var b={},d=/^jQuery\d+$/;return c.each(a.attributes,function(a,c){c.specified&&!d.test(c.name)&&(b[c.name]=c.value)}),b}function e(a,d){var e=this,f=c(e);if(e.value==f.attr("placeholder")&&f.hasClass("placeholder"))if(f.data("placeholder-password")){if(f=f.hide().next().show().attr("id",f.removeAttr("id").data("placeholder-id")),a===!0)return f[0].value=d;f.focus()}else e.value="",f.removeClass("placeholder"),e==b.activeElement&&e.select()}function f(){var a,b=this,f=c(b),g=this.id;if(""==b.value){if("password"==b.type){if(!f.data("placeholder-textinput")){try{a=f.clone().attr({type:"text"})}catch(h){a=c("<input>").attr(c.extend(d(this),{type:"text"}))}a.removeAttr("name").data({"placeholder-password":!0,"placeholder-id":g}).bind("focus.placeholder",e),f.data({"placeholder-textinput":a,"placeholder-id":g}).before(a)}f=f.removeAttr("id").hide().prev().attr("id",g).show()}f.addClass("placeholder"),f[0].value=f.attr("placeholder")}else f.removeClass("placeholder")}var g,h,i="placeholder"in b.createElement("input"),j="placeholder"in b.createElement("textarea"),k=c.fn,l=c.valHooks;i&&j?(h=k.placeholder=function(){return this},h.input=h.textarea=!0):(h=k.placeholder=function(){var a=this;return a.filter((i?"textarea":":input")+"[placeholder]").not(".placeholder").bind({"focus.placeholder":e,"blur.placeholder":f}).data("placeholder-enabled",!0).trigger("blur.placeholder"),a},h.input=i,h.textarea=j,g={get:function(a){var b=c(a);return b.data("placeholder-enabled")&&b.hasClass("placeholder")?"":a.value},set:function(a,d){var g=c(a);return g.data("placeholder-enabled")?(""==d?(a.value=d,a!=b.activeElement&&f.call(a)):g.hasClass("placeholder")?e.call(a,!0,d)||(a.value=d):a.value=d,g):a.value=d}},i||(l.input=g),j||(l.textarea=g),c(function(){c(b).delegate("form","submit.placeholder",function(){var a=c(".placeholder",this).each(e);setTimeout(function(){a.each(f)},10)})}),c(a).bind("beforeunload.placeholder",function(){c(".placeholder").each(function(){this.value=""})}))}(this,document,Foundation.zj),function(a,b,c,d){"use strict";Foundation.libs.reveal={name:"reveal",version:"4.2.0",locked:!1,settings:{animation:"fadeAndPop",animationSpeed:250,closeOnBackgroundClick:!0,closeOnEsc:!0,dismissModalClass:"close-reveal-modal",bgClass:"reveal-modal-bg",open:function(){},opened:function(){},close:function(){},closed:function(){},bg:a(".reveal-modal-bg"),css:{open:{opacity:0,visibility:"visible",display:"block"},close:{opacity:1,visibility:"hidden",display:"none"}}},init:function(b,c,d){return Foundation.inherit(this,"data_options delay"),"object"==typeof c?a.extend(!0,this.settings,c):"undefined"!=typeof d&&a.extend(!0,this.settings,d),"string"!=typeof c?(this.events(),this.settings.init):this[c].call(this,d)},events:function(){var b=this;return a(this.scope).off(".fndtn.reveal").on("click.fndtn.reveal","[data-reveal-id]",function(c){if(c.preventDefault(),!b.locked){var d=a(this),e=d.data("reveal-ajax");if(b.locked=!0,"undefined"==typeof e)b.open.call(b,d);else{var f=e===!0?d.attr("href"):e;b.open.call(b,d,{url:f})}}}).on("click.fndtn.reveal touchend.click.fndtn.reveal",this.close_targets(),function(c){if(c.preventDefault(),!b.locked){var d=a.extend({},b.settings,b.data_options(a(".reveal-modal.open")));if(a(c.target)[0]===a("."+d.bgClass)[0]&&!d.closeOnBackgroundClick)return;b.locked=!0,b.close.call(b,a(this).closest(".reveal-modal"))}}).on("open.fndtn.reveal",".reveal-modal",this.settings.open).on("opened.fndtn.reveal",".reveal-modal",this.settings.opened).on("opened.fndtn.reveal",".reveal-modal",this.open_video).on("close.fndtn.reveal",".reveal-modal",this.settings.close).on("closed.fndtn.reveal",".reveal-modal",this.settings.closed).on("closed.fndtn.reveal",".reveal-modal",this.close_video),a("body").bind("keyup.reveal",function(c){var d=a(".reveal-modal.open"),e=a.extend({},b.settings,b.data_options(d));27===c.which&&e.closeOnEsc&&d.foundation("reveal","close")}),!0},open:function(b,c){if(b)if("undefined"!=typeof b.selector)var d=a("#"+b.data("reveal-id"));else{var d=a(this.scope);c=b}else var d=a(this.scope);if(!d.hasClass("open")){var e=a(".reveal-modal.open");if("undefined"==typeof d.data("css-top")&&d.data("css-top",parseInt(d.css("top"),10)).data("offset",this.cache_offset(d)),d.trigger("open"),e.length<1&&this.toggle_bg(d),"undefined"!=typeof c&&c.url){var f=this,g="undefined"!=typeof c.success?c.success:null;a.extend(c,{success:function(b,c,h){a.isFunction(g)&&g(b,c,h),d.html(b),a(d).foundation("section","reflow"),f.hide(e,f.settings.css.close),f.show(d,f.settings.css.open)}}),a.ajax(c)}else this.hide(e,this.settings.css.close),this.show(d,this.settings.css.open)}},close:function(b){var b=b&&b.length?b:a(this.scope),c=a(".reveal-modal.open");c.length>0&&(this.locked=!0,b.trigger("close"),this.toggle_bg(b),this.hide(c,this.settings.css.close))},close_targets:function(){var a="."+this.settings.dismissModalClass;return this.settings.closeOnBackgroundClick?a+", ."+this.settings.bgClass:a},toggle_bg:function(b){0===a(".reveal-modal-bg").length&&(this.settings.bg=a("<div />",{"class":this.settings.bgClass}).appendTo("body")),this.settings.bg.filter(":visible").length>0?this.hide(this.settings.bg):this.show(this.settings.bg)},show:function(c,d){if(d){if(/pop/i.test(this.settings.animation)){d.top=a(b).scrollTop()-c.data("offset")+"px";var e={top:a(b).scrollTop()+c.data("css-top")+"px",opacity:1};return this.delay(function(){return c.css(d).animate(e,this.settings.animationSpeed,"linear",function(){this.locked=!1,c.trigger("opened")}.bind(this)).addClass("open")}.bind(this),this.settings.animationSpeed/2)}if(/fade/i.test(this.settings.animation)){var e={opacity:1};return this.delay(function(){return c.css(d).animate(e,this.settings.animationSpeed,"linear",function(){this.locked=!1,c.trigger("opened")}.bind(this)).addClass("open")}.bind(this),this.settings.animationSpeed/2)}return c.css(d).show().css({opacity:1}).addClass("open").trigger("opened")}return/fade/i.test(this.settings.animation)?c.fadeIn(this.settings.animationSpeed/2):c.show()},hide:function(c,d){if(d){if(/pop/i.test(this.settings.animation)){var e={top:-a(b).scrollTop()-c.data("offset")+"px",opacity:0};return this.delay(function(){return c.animate(e,this.settings.animationSpeed,"linear",function(){this.locked=!1,c.css(d).trigger("closed")}.bind(this)).removeClass("open")}.bind(this),this.settings.animationSpeed/2)}if(/fade/i.test(this.settings.animation)){var e={opacity:0};return this.delay(function(){return c.animate(e,this.settings.animationSpeed,"linear",function(){this.locked=!1,c.css(d).trigger("closed")}.bind(this)).removeClass("open")}.bind(this),this.settings.animationSpeed/2)}return c.hide().css(d).removeClass("open").trigger("closed")}return/fade/i.test(this.settings.animation)?c.fadeOut(this.settings.animationSpeed/2):c.hide()},close_video:function(b){var c=a(this).find(".flex-video"),d=c.find("iframe");d.length>0&&(d.attr("data-src",d[0].src),d.attr("src","about:blank"),c.hide())},open_video:function(b){var c=a(this).find(".flex-video"),e=c.find("iframe");if(e.length>0){var f=e.attr("data-src");if("string"==typeof f)e[0].src=e.attr("data-src");else{var g=e[0].src;e[0].src=d,e[0].src=g}c.show()}},cache_offset:function(a){var b=a.show().height()+parseInt(a.css("top"),10);return a.hide(),b},off:function(){a(this.scope).off(".fndtn.reveal")},reflow:function(){}}}(Foundation.zj,this,this.document),function(a,b,c,d){"use strict";Foundation.libs.section={name:"section",version:"4.2.0",settings:{deep_linking:!1,one_up:!0,section_selector:"[data-section]",region_selector:"section, .section, [data-section-region]",title_selector:".title, [data-section-title]",active_region_selector:"section.active, .section.active, .active[data-section-region]",content_selector:".content, [data-section-content]",nav_selector:'[data-section="vertical-nav"], [data-section="horizontal-nav"]',callback:function(){}},init:function(b,c,d){var e=this;return Foundation.inherit(this,"throttle data_options position_right offset_right"),"object"==typeof c&&a.extend(!0,e.settings,c),"string"!=typeof c?(this.set_active_from_hash(),this.events(),!0):this[c].call(this,d)},events:function(){var d=this;a(this.scope).on("click.fndtn.section","[data-section] .title, [data-section] [data-section-title]",function(b){var c=a(this),e=c.closest(d.settings.region_selector);e.children(d.settings.content_selector).length>0&&(d.toggle_active.call(this,b,d),d.reflow())}),a(b).on("resize.fndtn.section",d.throttle(function(){d.resize.call(this)},30)).on("hashchange",function(){d.settings.toggled||(d.set_active_from_hash(),a(this).trigger("resize"))}).trigger("resize"),a(c).on("click.fndtn.section",function(b){a(b.target).closest(d.settings.title_selector).length<1&&a(d.settings.nav_selector).children(d.settings.region_selector).removeClass("active").attr("style","")})},toggle_active:function(b,c){var d=a(this),c=Foundation.libs.section,e=d.closest(c.settings.region_selector),f=d.siblings(c.settings.content_selector),g=e.parent(),h=a.extend({},c.settings,c.data_options(g)),i=g.children(c.settings.active_region_selector);if(c.settings.toggled=!0,!h.deep_linking&&f.length>0&&b.preventDefault(),e.hasClass("active"))(c.small(g)||c.is_vertical_nav(g)||c.is_horizontal_nav(g)||c.is_accordion(g))&&(i[0]!==e[0]||i[0]===e[0]&&!h.one_up)&&e.removeClass("active").attr("style","");else{var i=g.children(c.settings.active_region_selector),j=c.outerHeight(e.children(c.settings.title_selector));(c.small(g)||h.one_up)&&(c.small(g)?i.attr("style",""):i.attr("style","visibility: hidden; padding-top: "+j+"px;")),c.small(g)?e.attr("style",""):e.css("padding-top",j),e.addClass("active"),i.length>0&&i.removeClass("active").attr("style",""),c.is_vertical_tabs(g)&&(f.css("display","block"),null!==i&&i.children(c.settings.content_selector).css("display","none"))}setTimeout(function(){c.settings.toggled=!1},300),h.callback()},resize:function(){var b=Foundation.libs.section,c=a(b.settings.section_selector);c.each(function(){var c=a(this),d=c.children(b.settings.active_region_selector),e=a.extend({},b.settings,b.data_options(c));if(d.length>1)d.not(":first").removeClass("active").attr("style","");else if(d.length<1&&!b.is_vertical_nav(c)&&!b.is_horizontal_nav(c)&&!b.is_accordion(c)){var f=c.children(b.settings.region_selector).first();(e.one_up||!b.small(c))&&f.addClass("active"),b.small(c)?f.attr("style",""):f.css("padding-top",b.outerHeight(f.children(b.settings.title_selector)))}b.small(c)?d.attr("style",""):d.css("padding-top",b.outerHeight(d.children(b.settings.title_selector))),b.position_titles(c),b.is_horizontal_nav(c)&&!b.small(c)||b.is_vertical_tabs(c)&&!b.small(c)?b.position_content(c):b.position_content(c,!1)})},is_vertical_nav:function(a){return/vertical-nav/i.test(a.data("section"))},is_horizontal_nav:function(a){return/horizontal-nav/i.test(a.data("section"))},is_accordion:function(a){return/accordion/i.test(a.data("section"))},is_horizontal_tabs:function(a){return/^tabs$/i.test(a.data("section"))},is_vertical_tabs:function(a){return/vertical-tabs/i.test(a.data("section"))},set_active_from_hash:function(){var c=b.location.hash.substring(1),d=a("[data-section]"),e=this;d.each(function(){var b=a(this),d=a.extend({},e.settings,e.data_options(b));if(c.length>0&&d.deep_linking)for(var f=b.children(e.settings.region_selector).attr("style","").removeClass("active"),g=f.map(function(){var b=a(e.settings.content_selector,this),d=b.data("slug");return new RegExp(d,"i").test(c)?b:void 0}),h=g.length,i=h-1;i>=0;i--)a(g[i]).parent().addClass("active")})},position_titles:function(b,c){var d=this,e=b.children(this.settings.region_selector).map(function(){return a(this).children(d.settings.title_selector)}),f=0,g=0,d=this;"boolean"==typeof c?e.attr("style",""):e.each(function(){d.is_vertical_tabs(b)?(a(this).css("top",g),g+=d.outerHeight(a(this))):(d.rtl?a(this).css("right",f):a(this).css("left",f),f+=d.outerWidth(a(this)))})},position_content:function(b,c){var d=this,e=b.children(d.settings.region_selector),f=e.map(function(){return a(this).children(d.settings.title_selector)}),g=e.map(function(){return a(this).children(d.settings.content_selector)});if("boolean"==typeof c)g.attr("style",""),b.attr("style","");else if(d.is_vertical_tabs(b)&&!d.small(b)){var h=0,i=Number.MAX_VALUE,j=null;e.each(function(){var c=a(this),e=c.children(d.settings.title_selector),f=c.children(d.settings.content_selector),g=0;j=d.outerWidth(e),g=d.outerWidth(b)-j,i>g&&(i=g),h+=d.outerHeight(e),a(this).hasClass("active")||f.css("display","none")}),e.each(function(){var b=a(this).children(d.settings.content_selector);b.css("minHeight",h),b.css("maxWidth",i-2)})}else e.each(function(){var b=a(this),c=b.children(d.settings.title_selector),e=b.children(d.settings.content_selector);d.rtl?e.css({right:d.position_right(c)+1,top:d.outerHeight(c)-2}):e.css({left:c.position().left-1,top:d.outerHeight(c)-2})}),"function"==typeof Zepto?b.height(this.outerHeight(a(f[0]))):b.height(this.outerHeight(a(f[0]))-2)},position_right:function(b){var c=this,d=b.closest(this.settings.section_selector),e=d.children(this.settings.region_selector),f=b.closest(this.settings.section_selector).width(),g=e.map(function(){return a(this).children(c.settings.title_selector);
  }).length;return f-b.position().left-b.width()*(b.index()+1)-g},reflow:function(b){var b=b||c;a(this.settings.section_selector,b).trigger("resize")},small:function(b){a.extend({},this.settings,this.data_options(b));return this.is_horizontal_tabs(b)?!1:b&&this.is_accordion(b)?!0:a("html").hasClass("lt-ie9")?!0:a("html").hasClass("ie8compat")?!0:a(this.scope).width()<768},off:function(){a(this.scope).off(".fndtn.section"),a(b).off(".fndtn.section"),a(c).off(".fndtn.section")}}}(Foundation.zj,this,this.document),function(a,b,c,d){"use strict";Foundation.libs.tooltips={name:"tooltips",version:"4.2.0",settings:{selector:".has-tip",additionalInheritableClasses:[],tooltipClass:".tooltip",appendTo:"body","disable-for-touch":!1,tipTemplate:function(a,b){return'<span data-selector="'+a+'" class="'+Foundation.libs.tooltips.settings.tooltipClass.substring(1)+'">'+b+'<span class="nub"></span></span>'}},cache:{},init:function(b,c,d){Foundation.inherit(this,"data_options");var e=this;return"object"==typeof c?a.extend(!0,this.settings,c):"undefined"!=typeof d&&a.extend(!0,this.settings,d),"string"==typeof c?this[c].call(this,d):void(Modernizr.touch?a(this.scope).on("click.fndtn.tooltip touchstart.fndtn.tooltip touchend.fndtn.tooltip","[data-tooltip]",function(b){var c=a.extend({},e.settings,e.data_options(a(this)));c["disable-for-touch"]||(b.preventDefault(),a(c.tooltipClass).hide(),e.showOrCreateTip(a(this)))}).on("click.fndtn.tooltip touchstart.fndtn.tooltip touchend.fndtn.tooltip",this.settings.tooltipClass,function(b){b.preventDefault(),a(this).fadeOut(150)}):a(this.scope).on("mouseenter.fndtn.tooltip mouseleave.fndtn.tooltip","[data-tooltip]",function(b){var c=a(this);/enter|over/i.test(b.type)?e.showOrCreateTip(c):("mouseout"===b.type||"mouseleave"===b.type)&&e.hide(c)}))},showOrCreateTip:function(a){var b=this.getTip(a);return b&&b.length>0?this.show(a):this.create(a)},getTip:function(b){var c=this.selector(b),d=null;return c&&(d=a('span[data-selector="'+c+'"]'+this.settings.tooltipClass)),"object"==typeof d?d:!1},selector:function(a){var b=a.attr("id"),c=a.attr("data-tooltip")||a.attr("data-selector");return(b&&b.length<1||!b)&&"string"!=typeof c&&(c="tooltip"+Math.random().toString(36).substring(7),a.attr("data-selector",c)),b&&b.length>0?b:c},create:function(b){var c=a(this.settings.tipTemplate(this.selector(b),a("<div></div>").html(b.attr("title")).html())),d=this.inheritable_classes(b);c.addClass(d).appendTo(this.settings.appendTo),Modernizr.touch&&c.append('<span class="tap-to-close">tap to close </span>'),b.removeAttr("title").attr("title",""),this.show(b)},reposition:function(c,d,e){var f,g,h,i,j;if(d.css("visibility","hidden").show(),f=c.data("width"),g=d.children(".nub"),h=this.outerHeight(g),i=this.outerHeight(g),(j=function(a,b,c,d,e,f){return a.css({top:b?b:"auto",bottom:d?d:"auto",left:e?e:"auto",right:c?c:"auto",width:f?f:"auto"}).end()})(d,c.offset().top+this.outerHeight(c)+10,"auto","auto",c.offset().left,f),a(b).width()<767)j(d,c.offset().top+this.outerHeight(c)+10,"auto","auto",12.5,a(this.scope).width()),d.addClass("tip-override"),j(g,-h,"auto","auto",c.offset().left);else{var k=c.offset().left;Foundation.rtl&&(k=c.offset().left+c.offset().width-this.outerWidth(d)),j(d,c.offset().top+this.outerHeight(c)+10,"auto","auto",k,f),d.removeClass("tip-override"),e&&e.indexOf("tip-top")>-1?j(d,c.offset().top-this.outerHeight(d),"auto","auto",k,f).removeClass("tip-override"):e&&e.indexOf("tip-left")>-1?j(d,c.offset().top+this.outerHeight(c)/2-2.5*h,"auto","auto",c.offset().left-this.outerWidth(d)-h,f).removeClass("tip-override"):e&&e.indexOf("tip-right")>-1&&j(d,c.offset().top+this.outerHeight(c)/2-2.5*h,"auto","auto",c.offset().left+this.outerWidth(c)+h,f).removeClass("tip-override")}d.css("visibility","visible").hide()},inheritable_classes:function(b){var c=["tip-top","tip-left","tip-bottom","tip-right","noradius"].concat(this.settings.additionalInheritableClasses),d=b.attr("class"),e=d?a.map(d.split(" "),function(b,d){return-1!==a.inArray(b,c)?b:void 0}).join(" "):"";return a.trim(e)},show:function(a){var b=this.getTip(a);this.reposition(a,b,a.attr("class")),b.fadeIn(150)},hide:function(a){var b=this.getTip(a);b.fadeOut(150)},reload:function(){var b=a(this);return b.data("fndtn-tooltips")?b.foundationTooltips("destroy").foundationTooltips("init"):b.foundationTooltips("init")},off:function(){a(this.scope).off(".fndtn.tooltip"),a(this.settings.tooltipClass).each(function(b){a("[data-tooltip]").get(b).attr("title",a(this).text())}).remove()},reflow:function(){}}}(Foundation.zj,this,this.document),function(a,b,c,d){"use strict";Foundation.libs.topbar={name:"topbar",version:"4.2.0",settings:{index:0,stickyClass:"sticky",custom_back_text:!0,back_text:"Back",is_hover:!0,scrolltop:!0,init:!1},init:function(c,d,e){Foundation.inherit(this,"data_options");var f=this;return"object"==typeof d?a.extend(!0,this.settings,d):"undefined"!=typeof e&&a.extend(!0,this.settings,e),"string"!=typeof d?(a(".top-bar, [data-topbar]").each(function(){a.extend(!0,f.settings,f.data_options(a(this))),f.settings.$w=a(b),f.settings.$topbar=a(this),f.settings.$section=f.settings.$topbar.find("section"),f.settings.$titlebar=f.settings.$topbar.children("ul").first(),f.settings.$topbar.data("index",0);var c=a("<div class='top-bar-js-breakpoint'/>").insertAfter(f.settings.$topbar);f.settings.breakPoint=c.width(),c.remove(),f.assemble(),f.settings.$topbar.parent().hasClass("fixed")&&a("body").css("padding-top",f.outerHeight(f.settings.$topbar))}),f.settings.init||this.events(),this.settings.init):this[d].call(this,e)},events:function(){var c=this,d=this.outerHeight(a(".top-bar, [data-topbar]"));a(this.scope).off(".fndtn.topbar").on("click.fndtn.topbar",".top-bar .toggle-topbar, [data-topbar] .toggle-topbar",function(e){var f=a(this).closest(".top-bar, [data-topbar]"),g=f.find("section, .section");f.children("ul").first();e.preventDefault(),c.breakpoint()&&(c.rtl?(g.css({right:"0%"}),g.find(">.name").css({right:"100%"})):(g.css({left:"0%"}),g.find(">.name").css({left:"100%"})),g.find("li.moved").removeClass("moved"),f.data("index",0),f.toggleClass("expanded").css("min-height","")),f.hasClass("expanded")?f.parent().hasClass("fixed")&&(f.parent().removeClass("fixed"),f.addClass("fixed"),a("body").css("padding-top","0"),c.settings.scrolltop&&b.scrollTo(0,0)):f.hasClass("fixed")&&(f.parent().addClass("fixed"),f.removeClass("fixed"),a("body").css("padding-top",d))}).on("mouseenter mouseleave",".top-bar li",function(b){c.settings.is_hover&&(/enter|over/i.test(b.type)?a(this).addClass("hover"):a(this).removeClass("hover"))}).on("click.fndtn.topbar",".top-bar li.has-dropdown",function(b){if(!c.breakpoint()){var d=a(this),e=a(b.target),f=d.closest("[data-topbar], .top-bar");f.data("topbar");(!c.settings.is_hover||Modernizr.touch)&&(b.stopImmediatePropagation(),"A"===e[0].nodeName&&e.parent().hasClass("has-dropdown")&&b.preventDefault(),d.hasClass("hover")?d.removeClass("hover").find("li").removeClass("hover"):d.addClass("hover"))}}).on("click.fndtn.topbar",".top-bar .has-dropdown>a, [data-topbar] .has-dropdown>a",function(b){if(c.breakpoint()){b.preventDefault();var d=a(this),e=d.closest(".top-bar, [data-topbar]"),f=e.find("section, .section"),g=e.children("ul").first(),h=(d.next(".dropdown").outerHeight(),d.closest("li"));e.data("index",e.data("index")+1),h.addClass("moved"),c.rtl?(f.css({right:-(100*e.data("index"))+"%"}),f.find(">.name").css({right:100*e.data("index")+"%"})):(f.css({left:-(100*e.data("index"))+"%"}),f.find(">.name").css({left:100*e.data("index")+"%"})),e.css("min-height",c.height(d.siblings("ul"))+c.outerHeight(g,!0))}}),a(b).on("resize.fndtn.topbar",function(){c.breakpoint()||a(".top-bar, [data-topbar]").css("min-height","").removeClass("expanded").find("li").removeClass("hover")}.bind(this)),a("body").on("click.fndtn.topbar",function(b){var c=a(b.target).closest("[data-topbar], .top-bar");c.length>0||a(".top-bar li, [data-topbar] li").removeClass("hover")}),a(this.scope).on("click.fndtn",".top-bar .has-dropdown .back, [data-topbar] .has-dropdown .back",function(b){b.preventDefault();var d=a(this),e=d.closest(".top-bar, [data-topbar]"),f=e.children("ul").first(),g=e.find("section, .section"),h=d.closest("li.moved"),i=h.parent();e.data("index",e.data("index")-1),c.rtl?(g.css({right:-(100*e.data("index"))+"%"}),g.find(">.name").css({right:100*e.data("index")+"%"})):(g.css({left:-(100*e.data("index"))+"%"}),g.find(">.name").css({left:100*e.data("index")+"%"})),0===e.data("index")?e.css("min-height",0):e.css("min-height",c.height(i)+c.outerHeight(f,!0)),setTimeout(function(){h.removeClass("moved")},300)})},breakpoint:function(){return a(b).width()<=this.settings.breakPoint||a("html").hasClass("lt-ie9")},assemble:function(){var b=this;this.settings.$section.detach(),this.settings.$section.find(".has-dropdown>a").each(function(){var c=a(this),d=c.siblings(".dropdown"),e=c.attr("href");if(e&&e.length>1)var f=a('<li class="title back js-generated"><h5><a href="#"></a></h5></li><li><a class="parent-link js-generated" href="'+e+'">'+c.text()+"</a></li>");else var f=a('<li class="title back js-generated"><h5><a href="#"></a></h5></li>');1==b.settings.custom_back_text?f.find("h5>a").html("&laquo; "+b.settings.back_text):f.find("h5>a").html("&laquo; "+c.html()),d.prepend(f)}),this.settings.$section.appendTo(this.settings.$topbar),this.sticky()},height:function(b){var c=0,d=this;return b.find("> li").each(function(){c+=d.outerHeight(a(this),!0)}),c},sticky:function(){var c="."+this.settings.stickyClass;if(a(c).length>0){var d=a(c).length?a(c).offset().top:0,e=a(b),f=this.outerHeight(a(".top-bar"));e.scroll(function(){e.scrollTop()>=d?(a(c).addClass("fixed"),a("body").css("padding-top",f)):e.scrollTop()<d&&(a(c).removeClass("fixed"),a("body").css("padding-top","0"))})}},off:function(){a(this.scope).off(".fndtn.topbar"),a(b).off(".fndtn.topbar")},reflow:function(){}}}(Foundation.zj,this,this.document),function(a,b,c,d){"use strict";Foundation.libs.interchange={name:"interchange",version:"4.2.1",cache:{},settings:{load_attr:"interchange",named_queries:{"default":"only screen and (min-width: 1px)",small:"only screen and (min-width: 768px)",medium:"only screen and (min-width: 1280px)",large:"only screen and (min-width: 1440px)",landscape:"only screen and (orientation: landscape)",portrait:"only screen and (orientation: portrait)",retina:"only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2),only screen and (min-resolution: 192dpi),only screen and (min-resolution: 2dppx)"},directives:{replace:function(a,b){if(/IMG/.test(a[0].nodeName)){var c=b.split("/"),d=c[c.length-1],e=a[0].src;if(new RegExp(d,"i").test(a[0].src))return;return a[0].src=b,a.trigger("replace",[a[0].src,e])}}}},init:function(b,c,d){return Foundation.inherit(this,"throttle"),"object"==typeof c&&a.extend(!0,this.settings,c),this.events(),this.images(),"string"!=typeof c?this.settings.init:this[c].call(this,d)},events:function(){var c=this;a(b).on("resize.fndtn.interchange",c.throttle(function(){c.resize.call(c)},50))},resize:function(){var a=this.cache;for(var b in a)if(a.hasOwnProperty(b)){var c=this.results(b,a[b]);c&&this.settings.directives[c.scenario[1]](c.el,c.scenario[0])}},results:function(b,c){var d=c.length;if(d>0)for(var e=a('[data-uuid="'+b+'"]'),f=d-1;f>=0;f--){var g=c[f][2];if(this.settings.named_queries.hasOwnProperty(g))var h=matchMedia(this.settings.named_queries[g]);else var h=matchMedia(c[f][2]);if(h.matches)return{el:e,scenario:c[f]}}return!1},images:function(a){return"undefined"==typeof this.cached_images||a?this.update_images():this.cached_images},update_images:function(){var b=c.getElementsByTagName("img"),d=b.length,e="data-"+this.settings.load_attr;this.cached_images=[];for(var f=d-1;f>=0;f--)this.loaded(a(b[f]),0===f,function(a,b){if(a){var c=a.getAttribute(e)||"";c.length>0&&this.cached_images.push(a)}b&&this.enhance()}.bind(this));return"deferred"},loaded:function(a,b,c){function d(){c(a[0],b)}function e(){if(this.one("load",d),/MSIE (\d+\.\d+);/.test(navigator.userAgent)){var a=this.attr("src"),b=a.match(/\?/)?"&":"?";b+="random="+(new Date).getTime(),this.attr("src",a+b)}}return a.attr("src")?void(a[0].complete||4===a[0].readyState?d():e.call(a)):void d()},enhance:function(){for(var c=this.images().length,d=c-1;d>=0;d--)this._object(a(this.images()[d]));return a(b).trigger("resize")},parse_params:function(a,b,c){return[this.trim(a),this.convert_directive(b),this.trim(c)]},convert_directive:function(a){var b=this.trim(a);return b.length>0?b:"replace"},_object:function(a){var b=this.parse_data_attr(a),c=[],d=b.length;if(d>0)for(var e=d-1;e>=0;e--){var f=b[e].split(/\((.*?)(\))$/);if(f.length>1){var g=f[0].split(","),h=this.parse_params(g[0],g[1],f[1]);c.push(h)}}return this.store(a,c)},uuid:function(a){function b(){return(65536*(1+Math.random())|0).toString(16).substring(1)}var c=a||"-";return b()+b()+c+b()+c+b()+c+b()+c+b()+b()+b()},store:function(a,b){var c=this.uuid(),d=a.data("uuid");return d?this.cache[d]:(a.attr("data-uuid",c),this.cache[c]=b)},trim:function(b){return"string"==typeof b?a.trim(b):b},parse_data_attr:function(a){for(var b=a.data(this.settings.load_attr).split(/\[(.*?)\]/),c=b.length,d=[],e=c-1;e>=0;e--)b[e].replace(/[\W\d]+/,"").length>4&&d.push(b[e]);return d},reflow:function(){this.images(!0)}}}(Foundation.zj,this,this.document);