").insertAfter(self.settings.$topbar);self.settings.breakPoint=breakpoint.width(
);breakpoint.remove();self.assemble();if(self.settings.$topbar.parent().hasClass('fixed')){$('body').css('padding-top',self.outerHeight(self.settings.$topbar));}});if(!self.settings.init){this.events();}return this.settings.init;}else{return this[method].call(this,options);}},events:function(){var self=this;var offst=this.outerHeight($('.top-bar, [data-topbar]'));$(this.scope).off('.fndtn.topbar').on('click.fndtn.topbar','.top-bar .toggle-topbar, [data-topbar] .toggle-topbar',function(e){var topbar=$(this).closest('.top-bar, [data-topbar]'),section=topbar.find('section, .section'),titlebar=topbar.children('ul').first();e.preventDefault();if(self.breakpoint()){if(!self.rtl){section.css({left:'0%'});section.find('>.name').css({left:'100%'});}else{section.css({right:'0%'});section.find('>.name').css({right:'100%'});}section.find('li.moved').removeClass('moved');topbar.data('index',0);topbar.toggleClass('expanded').css('min-height','');}if(!topbar.hasClass('expanded')){if(topbar.hasClass(
'fixed')){topbar.parent().addClass('fixed');topbar.removeClass('fixed');$('body').css('padding-top',offst);}}else if(topbar.parent().hasClass('fixed')){topbar.parent().removeClass('fixed');topbar.addClass('fixed');$('body').css('padding-top','0');if(self.settings.scrolltop){window.scrollTo(0,0);}}}).on('mouseenter mouseleave','.top-bar li',function(e){if(!self.settings.is_hover)return;if(/enter|over/i.test(e.type)){$(this).addClass('hover');}else{$(this).removeClass('hover');}}).on('click.fndtn.topbar','.top-bar li.has-dropdown',function(e){if(self.breakpoint())return;var li=$(this),target=$(e.target),topbar=li.closest('[data-topbar], .top-bar'),is_hover=topbar.data('topbar');if(self.settings.is_hover&&!Modernizr.touch)return;e.stopImmediatePropagation();if(target[0].nodeName==='A'&&target.parent().hasClass('has-dropdown')){e.preventDefault();}if(li.hasClass('hover')){li.removeClass('hover').find('li').removeClass('hover');}else{li.addClass('hover');}}).on('click.fndtn.topbar',
'.top-bar .has-dropdown>a, [data-topbar] .has-dropdown>a',function(e){if(self.breakpoint()){e.preventDefault();var $this=$(this),topbar=$this.closest('.top-bar, [data-topbar]'),section=topbar.find('section, .section'),titlebar=topbar.children('ul').first(),dropdownHeight=$this.next('.dropdown').outerHeight(),$selectedLi=$this.closest('li');topbar.data('index',topbar.data('index')+1);$selectedLi.addClass('moved');if(!self.rtl){section.css({left:-(100*topbar.data('index'))+'%'});section.find('>.name').css({left:100*topbar.data('index')+'%'});}else{section.css({right:-(100*topbar.data('index'))+'%'});section.find('>.name').css({right:100*topbar.data('index')+'%'});}topbar.css('min-height',self.height($this.siblings('ul'))+self.outerHeight(titlebar,true));}});$(window).on('resize.fndtn.topbar',function(){if(!self.breakpoint()){$('.top-bar, [data-topbar]').css('min-height','').removeClass('expanded').find('li').removeClass('hover');}}.bind(this));$('body').on('click.fndtn.topbar',function(e
){var parent=$(e.target).closest('[data-topbar], .top-bar');if(parent.length>0){return;}$('.top-bar li, [data-topbar] li').removeClass('hover');});$(this.scope).on('click.fndtn','.top-bar .has-dropdown .back, [data-topbar] .has-dropdown .back',function(e){e.preventDefault();var $this=$(this),topbar=$this.closest('.top-bar, [data-topbar]'),titlebar=topbar.children('ul').first(),section=topbar.find('section, .section'),$movedLi=$this.closest('li.moved'),$previousLevelUl=$movedLi.parent();topbar.data('index',topbar.data('index')-1);if(!self.rtl){section.css({left:-(100*topbar.data('index'))+'%'});section.find('>.name').css({left:100*topbar.data('index')+'%'});}else{section.css({right:-(100*topbar.data('index'))+'%'});section.find('>.name').css({right:100*topbar.data('index')+'%'});}if(topbar.data('index')===0){topbar.css('min-height',0);}else{topbar.css('min-height',self.height($previousLevelUl)+self.outerHeight(titlebar,true));}setTimeout(function(){$movedLi.removeClass('moved');},300);}
);},breakpoint:function(){return $(window).width()<=this.settings.breakPoint||$('html').hasClass('lt-ie9');},assemble:function(){var self=this;this.settings.$section.detach();this.settings.$section.find('.has-dropdown>a').each(function(){var $link=$(this),$dropdown=$link.siblings('.dropdown'),url=$link.attr('href');if(url&&url.length>1){var $titleLi=$('
'+$link.text()+'');}else{var $titleLi=$('
');}if(self.settings.custom_back_text==true){$titleLi.find('h5>a').html('« '+self.settings.back_text);}else{$titleLi.find('h5>a').html('« '+$link.html());}$dropdown.prepend($titleLi);});this.settings.$section.appendTo(this.settings.$topbar);this.sticky();},height:function(ul){var total=0,self=this;ul.find('> li').each(function(){total+=self.outerHeight($(this),true);});return total;},sticky:
function(){var klass='.'+this.settings.stickyClass;if($(klass).length>0){var distance=$(klass).length?$(klass).offset().top:0,$window=$(window);var offst=this.outerHeight($('.top-bar'));$window.scroll(function(){if($window.scrollTop()>=(distance)){$(klass).addClass("fixed");$('body').css('padding-top',offst);}else if($window.scrollTop()
0&&($(e.target).is('[data-dropdown-content]')||$.contains(parent.first()[0],e.target))){e.stopPropagation();return;}self.close.call(self,$('[data-dropdown-content]'));});$(window).on('resize.fndtn.dropdown',self.throttle(function(){self.resize.call(self);},50)).trigger('resize');this.settings.init=true;},close:function(dropdown){var self=this;dropdown.each(function(){if($(this).hasClass(self.settings.activeClass)){$(this).css(Foundation.rtl?'right':'left','-99999px').removeClass(self.settings.activeClass);$(this).trigger('closed');}});},open:function(dropdown,target){this.css(dropdown.addClass(this.settings.activeClass),target);dropdown.trigger('opened');},toggle:function(target){var dropdown=$('#'+target.data('dropdown'));this.close.call(this,$('[data-dropdown-content]').not(dropdown));if(dropdown.hasClass(this.settings.activeClass)){this.close.call(this,dropdown);}else{this.close.call(this,$('[data-dropdown-content]'))
this.open.call(this,dropdown,target);}},resize:function(){var dropdown=$('[data-dropdown-content].open'),target=$("[data-dropdown='"+dropdown.attr('id')+"']");if(dropdown.length&&target.length){this.css(dropdown,target);}},css:function(dropdown,target){var offset_parent=dropdown.offsetParent();if(offset_parent.length>0&&/body/i.test(dropdown.offsetParent()[0].nodeName)){var position=target.offset();position.top-=dropdown.offsetParent().offset().top;position.left-=dropdown.offsetParent().offset().left;}else{var position=target.position();}if(this.small()){dropdown.css({position:'absolute',width:'95%',left:'2.5%','max-width':'none',top:position.top+this.outerHeight(target)});}else{if(!Foundation.rtl&&$(window).width()>this.outerWidth(dropdown)+target.offset().left){var left=position.left;if(dropdown.hasClass('right')){dropdown.removeClass('right');}}else{if(!dropdown.hasClass('right')){dropdown.addClass('right');}var left=position.left-(this.outerWidth(dropdown)-this.outerWidth(target));
}dropdown.attr('style','').css({position:'absolute',top:position.top+this.outerHeight(target),left:left});}return dropdown;},small:function(){return $(window).width()<768||$('html').hasClass('lt-ie9');},off:function(){$(this.scope).off('.fndtn.dropdown');$('html, body').off('.fndtn.dropdown');$(window).off('.fndtn.dropdown');$('[data-dropdown-content]').off('.fndtn.dropdown');this.settings.init=false;},reflow:function(){}};}(Foundation.zj,this,this.document));;(function($,window,document,undefined){'use strict';Foundation.libs.section={name:'section',version:'4.2.0',settings:{deep_linking:false,one_up:true,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(scope,method,options){var self=this;Foundation.inherit(this,'throttle data_options position_right offset_right');if(typeof method==='object'){$.extend(true,self.settings,method);}if(typeof method!='string'){this.set_active_from_hash();this.events();return true;}else{return this[method].call(this,options);}},events:function(){var self=this;$(this.scope).on('click.fndtn.section','[data-section] .title, [data-section] [data-section-title]',function(e){var $this=$(this),section=$this.closest(self.settings.region_selector);if(section.children(self.settings.content_selector).length>0){self.toggle_active.call(this,e,self);self.reflow();}});$(window).on('resize.fndtn.section',self.throttle(function(){self.resize.call(this);},30)).on('hashchange',function(){if(!self.settings.toggled){self.set_active_from_hash();$(this).trigger('resize');}}).trigger('resize');$(document).on('click.fndtn.section',function(e){if($(e.target).closest(self.settings.title_selector).length<1){$(self.settings.
nav_selector).children(self.settings.region_selector).removeClass('active').attr('style','');}});},toggle_active:function(e,self){var $this=$(this),self=Foundation.libs.section,region=$this.closest(self.settings.region_selector),content=$this.siblings(self.settings.content_selector),parent=region.parent(),settings=$.extend({},self.settings,self.data_options(parent)),prev_active_section=parent.children(self.settings.active_region_selector);self.settings.toggled=true;if(!settings.deep_linking&&content.length>0){e.preventDefault();}if(region.hasClass('active')){if(self.small(parent)||self.is_vertical_nav(parent)||self.is_horizontal_nav(parent)||self.is_accordion(parent)){if(prev_active_section[0]!==region[0]||(prev_active_section[0]===region[0]&&!settings.one_up)){region.removeClass('active').attr('style','');}}}else{var prev_active_section=parent.children(self.settings.active_region_selector),title_height=self.outerHeight(region.children(self.settings.title_selector));if(self.small(
parent)||settings.one_up){if(self.small(parent)){prev_active_section.attr('style','');}else{prev_active_section.attr('style','visibility: hidden; padding-top: '+title_height+'px;');}}if(self.small(parent)){region.attr('style','');}else{region.css('padding-top',title_height);}region.addClass('active');if(prev_active_section.length>0){prev_active_section.removeClass('active').attr('style','');}if(self.is_vertical_tabs(parent)){content.css('display','block');if(prev_active_section!==null){prev_active_section.children(self.settings.content_selector).css('display','none');}}}setTimeout(function(){self.settings.toggled=false;},300);settings.callback();},resize:function(){var self=Foundation.libs.section,sections=$(self.settings.section_selector);sections.each(function(){var $this=$(this),active_section=$this.children(self.settings.active_region_selector),settings=$.extend({},self.settings,self.data_options($this));if(active_section.length>1){active_section.not(':first').removeClass('active')
.attr('style','');}else if(active_section.length<1&&!self.is_vertical_nav($this)&&!self.is_horizontal_nav($this)&&!self.is_accordion($this)){var first=$this.children(self.settings.region_selector).first();if(settings.one_up||!self.small($this)){first.addClass('active');}if(self.small($this)){first.attr('style','');}else{first.css('padding-top',self.outerHeight(first.children(self.settings.title_selector)));}}if(self.small($this)){active_section.attr('style','');}else{active_section.css('padding-top',self.outerHeight(active_section.children(self.settings.title_selector)));}self.position_titles($this);if((self.is_horizontal_nav($this)&&!self.small($this))||self.is_vertical_tabs($this)&&!self.small($this)){self.position_content($this);}else{self.position_content($this,false);}});},is_vertical_nav:function(el){return/vertical-nav/i.test(el.data('section'));},is_horizontal_nav:function(el){return/horizontal-nav/i.test(el.data('section'));},is_accordion:function(el){return/accordion/i.test(
el.data('section'));},is_horizontal_tabs:function(el){return/^tabs$/i.test(el.data('section'));},is_vertical_tabs:function(el){return/vertical-tabs/i.test(el.data('section'));},set_active_from_hash:function(){var hash=window.location.hash.substring(1),sections=$('[data-section]'),self=this;sections.each(function(){var section=$(this),settings=$.extend({},self.settings,self.data_options(section));if(hash.length>0&&settings.deep_linking){var regions=section.children(self.settings.region_selector).attr('style','').removeClass('active');var hash_regions=regions.map(function(){var content=$(self.settings.content_selector,this),content_slug=content.data('slug');if(new RegExp(content_slug,'i').test(hash))return content;});var count=hash_regions.length;for(var i=count-1;i>=0;i--){$(hash_regions[i]).parent().addClass('active');}}});},position_titles:function(section,off){var self=this,titles=section.children(this.settings.region_selector).map(function(){return $(this).children(self.settings.
title_selector);}),previous_width=0,previous_height=0,self=this;if(typeof off==='boolean'){titles.attr('style','');}else{titles.each(function(){if(self.is_vertical_tabs(section)){$(this).css('top',previous_height);previous_height+=self.outerHeight($(this));}else{if(!self.rtl){$(this).css('left',previous_width);}else{$(this).css('right',previous_width);}previous_width+=self.outerWidth($(this));}});}},position_content:function(section,off){var self=this,regions=section.children(self.settings.region_selector),titles=regions.map(function(){return $(this).children(self.settings.title_selector);}),content=regions.map(function(){return $(this).children(self.settings.content_selector);});if(typeof off==='boolean'){content.attr('style','');section.attr('style','');}else{if(self.is_vertical_tabs(section)&&!self.small(section)){var content_min_height=0,content_min_width=Number.MAX_VALUE,title_width=null;regions.each(function(){var region=$(this),title=region.children(self.settings.title_selector)
,content=region.children(self.settings.content_selector),content_width=0;title_width=self.outerWidth(title);content_width=self.outerWidth(section)-title_width;if(content_width×'+'
'+'
'+'
'},close_selectors:'.clearing-close',init:false,locked:false},init:function(scope,method,options){var self=this;Foundation.inherit(this,'set_data get_data remove_data throttle data_options');if(typeof method==='object'){options=$.extend(true,this.settings,method);}if(typeof method!='string'){$(this.scope).find('ul[data-clearing]').each(function(){var $el=$(this),options=options||{},lis=$el.find('li'),settings=self.get_data($el);if(!settings&&lis.length>0){options.$parent=$el.parent();self.set_data($el,$.extend({},self.settings,options,self.data_options($el)));self.assemble($el.find('li'));if(!self.settings.init){self.events().swipe_events();}}});
return this.settings.init;}else{return this[method].call(this,options);}},events:function(){var self=this;$(this.scope).on('click.fndtn.clearing','ul[data-clearing] li',function(e,current,target){var current=current||$(this),target=target||current,next=current.next('li'),settings=self.get_data(current.parent()),image=$(e.target);e.preventDefault();if(!settings)self.init();if(target.hasClass('visible')&¤t[0]===target[0]&&next.length>0&&self.is_open(current)){target=next;image=target.find('img');}self.open(image,current,target);self.update_paddles(target);}).on('click.fndtn.clearing','.clearing-main-next',function(e){this.nav(e,'next')}.bind(this)).on('click.fndtn.clearing','.clearing-main-prev',function(e){this.nav(e,'prev')}.bind(this)).on('click.fndtn.clearing',this.settings.close_selectors,function(e){Foundation.libs.clearing.close(e,this)}).on('keydown.fndtn.clearing',function(e){this.keydown(e)}.bind(this));$(window).on('resize.fndtn.clearing',function(){this.resize()}.bind(
this));this.settings.init=true;return this;},swipe_events:function(){var self=this;$(this.scope).on('touchstart.fndtn.clearing','.visible-img',function(e){if(!e.touches){e=e.originalEvent;}var data={start_page_x:e.touches[0].pageX,start_page_y:e.touches[0].pageY,start_time:(new Date()).getTime(),delta_x:0,is_scrolling:undefined};$(this).data('swipe-transition',data);e.stopPropagation();}).on('touchmove.fndtn.clearing','.visible-img',function(e){if(!e.touches){e=e.originalEvent;}if(e.touches.length>1||e.scale&&e.scale!==1)return;var data=$(this).data('swipe-transition');if(typeof data==='undefined'){data={};}data.delta_x=e.touches[0].pageX-data.start_page_x;if(typeof data.is_scrolling==='undefined'){data.is_scrolling=!!(data.is_scrolling||Math.abs(data.delta_x) ');var holder=$('#foundationClearingHolder'),settings=this.get_data($el),grid=$el.detach(),data={grid:'