;window.Modernizr=function(a,b,c){function y(a){j.cssText=a}function z(a,b){return y(m.join(a+";")+(b||""))}function A(a,b){return typeof a===b}function B(a,b){return!!~(""+a).indexOf(b)}function C(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:A(f,"function")?f.bind(d||b):f}return!1}var d="2.6.2",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k,l={}.toString,m=" -webkit- -moz- -o- -ms- ".split(" "),n={svg:"http://www.w3.org/2000/svg"},o={},p={},q={},r=[],s=r.slice,t,u=function(a,c,d,e){var f,i,j,k,l=b.createElement("div"),m=b.body,n=m||b.createElement("body");if(parseInt(d,10))while(d--)j=b.createElement("div"),j.id=e?e[d]:h+(d+1),l.appendChild(j);return f=["­",'"].join(""),l.id=h,(m?l:n).innerHTML+=f,n.appendChild(l),m||(n.style.background="",n.style.overflow="hidden",k=g.style.overflow,g.style.overflow="hidden",g.appendChild(n)),i=c(l,a),m?l.parentNode.removeChild(l):(n.parentNode.removeChild(n),g. style.overflow=k),!!i},v=function(b){var c=a.matchMedia||a.msMatchMedia;if(c)return c(b).matches;var d;return u("@media "+b+" { #"+h+" { position: absolute; } }",function(b){d=(a.getComputedStyle?getComputedStyle(b,null):b.currentStyle)["position"]=="absolute"}),d},w={}.hasOwnProperty,x;!A(w,"undefined")&&!A(w.call,"undefined")?x=function(a,b){return w.call(a,b)}:x=function(a,b){return b in a&&A(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=s.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(s.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(s.call(arguments)))};return e}),o.touch=function(){var c;return"ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch?c=!0:u(["@media (",m.join("touch-enabled),("),h,")","{#modernizr{top:9px;position:absolute}}"].join(""), function(a){c=a.offsetTop===9}),c},o.svg=function(){return!!b.createElementNS&&!!b.createElementNS(n.svg,"svg").createSVGRect},o.inlinesvg=function(){var a=b.createElement("div");return a.innerHTML="",(a.firstChild&&a.firstChild.namespaceURI)==n.svg},o.svgclippaths=function(){return!!b.createElementNS&&/SVGClipPath/.test(l.call(b.createElementNS(n.svg,"clipPath")))};for(var D in o)x(o,D)&&(t=D.toLowerCase(),e[t]=o[D](),r.push((e[t]?"":"no-")+t));return e.addTest=function(a,b){if(typeof a=="object")for(var d in a)x(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,typeof f!="undefined"&&f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},y(""),i=k=null,function(a,b){function k(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x",d.insertBefore(c.lastChild,d.firstChild)}function l(){var a=r.elements;return typeof a=="string"?a.split(" "):a}function m(a){var b =i[a[g]];return b||(b={},h++,a[g]=h,i[h]=b),b}function n(a,c,f){c||(c=b);if(j)return c.createElement(a);f||(f=m(c));var g;return f.cache[a]?g=f.cache[a].cloneNode():e.test(a)?g=(f.cache[a]=f.createElem(a)).cloneNode():g=f.createElem(a),g.canHaveChildren&&!d.test(a)?f.frag.appendChild(g):g}function o(a,c){a||(a=b);if(j)return a.createDocumentFragment();c=c||m(a);var d=c.frag.cloneNode(),e=0,f=l(),g=f.length;for(;e",f="hidden"in a,j=a.childNodes.length==1||function(){b.createElement("a");var a=b.createDocumentFragment();return typeof a.cloneNode=="undefined"||typeof a.createDocumentFragment=="undefined"||typeof a.createElement=="undefined"}()}catch(c){f=!0,j=!0}})();var r={elements:c.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:c.shivCSS!==!1,supportsUnknownElements:j,shivMethods:c.shivMethods!==!1,type:"default",shivDocument:q,createElement:n, createDocumentFragment:o};a.html5=r,q(b)}(this,b),e._version=d,e._prefixes=m,e.mq=v,e.testStyles=u,g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+r.join(" "):""),e}(this,this.document),function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img" !=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f0;FastClick.prototype.deviceIsIOS=/iP(ad|hone|od)/.test(navigator.userAgent);FastClick.prototype.deviceIsIOS4=FastClick.prototype.deviceIsIOS&&(/OS 4_\d(_\d)?/).test(navigator.userAgent);FastClick.prototype.deviceIsIOSWithBadTarget=FastClick.prototype.deviceIsIOS&&(/OS ([6-9]|\d{2})_\d/).test(navigator.userAgent);FastClick.prototype.needsClick=function(target){'use strict';switch(target.nodeName.toLowerCase()){case'button':case'select':case'textarea':if(target.disabled){return true;}break;case'input':if((this.deviceIsIOS&&target.type==='file')||target.disabled){return true;}break;case'label':case'video':return true;}return(/\bneedsclick\b/).test(target.className);};FastClick.prototype.needsFocus=function(target){'use strict';switch(target.nodeName.toLowerCase()){case'textarea':case'select':return true;case'input': switch(target.type){case'button':case'checkbox':case'file':case'image':case'radio':case'submit':return false;}return!target.disabled&&!target.readOnly;default:return(/\bneedsfocus\b/).test(target.className);}};FastClick.prototype.sendClick=function(targetElement,event){'use strict';var clickEvent,touch;if(document.activeElement&&document.activeElement!==targetElement){document.activeElement.blur();}touch=event.changedTouches[0];clickEvent=document.createEvent('MouseEvents');clickEvent.initMouseEvent('click',true,true,window,1,touch.screenX,touch.screenY,touch.clientX,touch.clientY,false,false,false,false,0,null);clickEvent.forwardedTouchEvent=true;targetElement.dispatchEvent(clickEvent);};FastClick.prototype.focus=function(targetElement){'use strict';var length;if(this.deviceIsIOS&&targetElement.setSelectionRange){length=targetElement.value.length;targetElement.setSelectionRange(length,length);}else{targetElement.focus();}};FastClick.prototype.updateScrollParent=function(targetElement) {'use strict';var scrollParent,parentElement;scrollParent=targetElement.fastClickScrollParent;if(!scrollParent||!scrollParent.contains(targetElement)){parentElement=targetElement;do{if(parentElement.scrollHeight>parentElement.offsetHeight){scrollParent=parentElement;targetElement.fastClickScrollParent=parentElement;break;}parentElement=parentElement.parentElement;}while(parentElement);}if(scrollParent){scrollParent.fastClickLastScrollTop=scrollParent.scrollTop;}};FastClick.prototype.getTargetElementFromEventTarget=function(eventTarget){'use strict';if(eventTarget.nodeType===Node.TEXT_NODE){return eventTarget.parentNode;}return eventTarget;};FastClick.prototype.onTouchStart=function(event){'use strict';var targetElement,touch,selection;if(event.targetTouches.length>1){return true;}targetElement=this.getTargetElementFromEventTarget(event.target);touch=event.targetTouches[0];if(this.deviceIsIOS){selection=window.getSelection();if(selection.rangeCount&&!selection.isCollapsed){return true;} if(!this.deviceIsIOS4){if(touch.identifier===this.lastTouchIdentifier){event.preventDefault();return false;}this.lastTouchIdentifier=touch.identifier;this.updateScrollParent(targetElement);}}this.trackingClick=true;this.trackingClickStart=event.timeStamp;this.targetElement=targetElement;this.touchStartX=touch.pageX;this.touchStartY=touch.pageY;if((event.timeStamp-this.lastClickTime)<200){event.preventDefault();}return true;};FastClick.prototype.touchHasMoved=function(event){'use strict';var touch=event.changedTouches[0],boundary=this.touchBoundary;if(Math.abs(touch.pageX-this.touchStartX)>boundary||Math.abs(touch.pageY-this.touchStartY)>boundary){return true;}return false;};FastClick.prototype.findControl=function(labelElement){'use strict';if(labelElement.control!==undefined){return labelElement.control;}if(labelElement.htmlFor){return document.getElementById(labelElement.htmlFor);}return labelElement.querySelector( 'button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea');};FastClick.prototype.onTouchEnd=function(event){'use strict';var forElement,trackingClickStart,targetTagName,scrollParent,touch,targetElement=this.targetElement;if(this.touchHasMoved(event)){this.trackingClick=false;this.targetElement=null;}if(!this.trackingClick){return true;}if((event.timeStamp-this.lastClickTime)<200){this.cancelNextClick=true;return true;}this.lastClickTime=event.timeStamp;trackingClickStart=this.trackingClickStart;this.trackingClick=false;this.trackingClickStart=0;if(this.deviceIsIOSWithBadTarget){touch=event.changedTouches[0];targetElement=document.elementFromPoint(touch.pageX-window.pageXOffset,touch.pageY-window.pageYOffset);}targetTagName=targetElement.tagName.toLowerCase();if(targetTagName==='label'){forElement=this.findControl(targetElement);if(forElement){this.focus(targetElement);if(this.deviceIsAndroid){return false;}targetElement=forElement;}}else if(this.needsFocus( targetElement)){if((event.timeStamp-trackingClickStart)>100||(this.deviceIsIOS&&window.top!==window&&targetTagName==='input')){this.targetElement=null;return false;}this.focus(targetElement);if(!this.deviceIsIOS4||targetTagName!=='select'){this.targetElement=null;event.preventDefault();}return false;}if(this.deviceIsIOS&&!this.deviceIsIOS4){scrollParent=targetElement.fastClickScrollParent;if(scrollParent&&scrollParent.fastClickLastScrollTop!==scrollParent.scrollTop){return true;}}if(!this.needsClick(targetElement)){event.preventDefault();this.sendClick(targetElement,event);}return false;};FastClick.prototype.onTouchCancel=function(){'use strict';this.trackingClick=false;this.targetElement=null;};FastClick.prototype.onMouse=function(event){'use strict';if(!this.targetElement){return true;}if(event.forwardedTouchEvent){return true;}if(!event.cancelable){return true;}if(!this.needsClick(this.targetElement)||this.cancelNextClick){if(event.stopImmediatePropagation){event. stopImmediatePropagation();}else{event.propagationStopped=true;}event.stopPropagation();event.preventDefault();return false;}return true;};FastClick.prototype.onClick=function(event){'use strict';var permitted;if(this.trackingClick){this.targetElement=null;this.trackingClick=false;return true;}if(event.target.type==='submit'&&event.detail===0){return true;}permitted=this.onMouse(event);if(!permitted){this.targetElement=null;}return permitted;};FastClick.prototype.destroy=function(){'use strict';var layer=this.layer;if(this.deviceIsAndroid){layer.removeEventListener('mouseover',this.onMouse,true);layer.removeEventListener('mousedown',this.onMouse,true);layer.removeEventListener('mouseup',this.onMouse,true);}layer.removeEventListener('click',this.onClick,true);layer.removeEventListener('touchstart',this.onTouchStart,false);layer.removeEventListener('touchend',this.onTouchEnd,false);layer.removeEventListener('touchcancel',this.onTouchCancel,false);};FastClick.notNeeded=function(layer){ 'use strict';var metaViewport;if(typeof window.ontouchstart==='undefined'){return true;}if((/Chrome\/[0-9]+/).test(navigator.userAgent)){if(FastClick.prototype.deviceIsAndroid){metaViewport=document.querySelector('meta[name=viewport]');if(metaViewport&&metaViewport.content.indexOf('user-scalable=no')!==-1){return true;}}else{return true;}}if(layer.style.msTouchAction==='none'){return true;}return false;};FastClick.attach=function(layer){'use strict';return new FastClick(layer);};if(typeof define!=='undefined'&&define.amd){define(function(){'use strict';return FastClick;});}else if(typeof module!=='undefined'&&module.exports){module.exports=FastClick.attach;module.exports.FastClick=FastClick;}else{window.FastClick=FastClick;}$(document).ready(function(){var switched=false;var updateTables=function(){if(($(window).width()<767)&&!switched){switched=true;$("table.responsive").each(function(i,element){splitTable($(element));});return true;}else if(switched&&($(window).width()>767)){switched =false;$("table.responsive").each(function(i,element){unsplitTable($(element));});}};$(window).load(updateTables);$(window).on("redraw",function(){switched=false;updateTables();});$(window).on("resize",updateTables);function splitTable(original){original.wrap("
");var copy=original.clone();copy.find("td:not(:first-child), th:not(:first-child)").css("display","none");copy.removeClass("responsive");original.closest(".table-wrapper").append(copy);copy.wrap("
");original.wrap("
");setCellHeights(original,copy);}function unsplitTable(original){original.closest(".table-wrapper").find(".pinned").remove();original.unwrap();original.unwrap();}function setCellHeights(original,copy){var tr=original.find('tr'),tr_copy=copy.find('tr'),heights=[];tr.each(function(index){var self=$(this),tx=self.find('th, td');tx.each(function(){var height=$(this).outerHeight(true);heights[index]=heights[index]||0;if(height>heights[index]) heights[index]=height;});});tr_copy.each(function(index){$(this).height(heights[index]);});}});var libFuncName=null;if(typeof jQuery==="undefined"&&typeof Zepto==="undefined"&&typeof $==="function"){libFuncName=$;}else if(typeof jQuery==="function"){libFuncName=jQuery;}else if(typeof Zepto==="function"){libFuncName=Zepto;}else{throw new TypeError();}(function($,window,document,undefined){'use strict';window.matchMedia=window.matchMedia||(function(doc,undefined){"use strict";var bool,docElem=doc.documentElement,refNode=docElem.firstElementChild||docElem.firstChild,fakeBody=doc.createElement("body"),div=doc.createElement("div");div.id="mq-test-1";div.style.cssText="position:absolute;top:-100em";fakeBody.style.background="none";fakeBody.appendChild(div);return function(q){div.innerHTML="­";docElem.insertBefore(fakeBody,refNode);bool=div.offsetWidth===42;docElem.removeChild(fakeBody);return{matches:bool,media:q};};}(document)); if(!Array.prototype.filter){Array.prototype.filter=function(fun){"use strict";if(this==null){throw new TypeError();}var t=Object(this),len=t.length>>>0;if(typeof fun!="function"){return;}var res=[],thisp=arguments[1];for(var i=0;i>>0;if(len===0){return-1;}var n=0;if(arguments.length>1){n=Number(arguments[1]);if(n!=n){n=0;}else if(n!=0&&n!=Infinity&&n!=-Infinity){n=(n>0||-1)*Math.floor(Math.abs(n));}}if(n>=len){return-1;}var k=n>=0?n:Math.max(len-Math.abs(n),0);for(;k0){for(var i=library_arr.length-1;i>=0;i--){responses.push(this.init_lib(library_arr[i],args));}}}else{if(/reflow/i.test(libraries))args[1]='reflow';for(var lib in this.libs){responses.push(this.init_lib(lib,args));}}if (typeof libraries==='function'){args.unshift(libraries);}return this.response_obj(responses,args);},response_obj:function(response_arr,args){for(var i=0,len=args.length;i=0;i--){if(this.lib_methods.hasOwnProperty(methods_arr[i])){this.libs[scope.name][methods_arr[i]]=this. lib_methods[methods_arr[i]];}}},random_str:function(length){var chars='0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz'.split('');if(!length){length=Math.floor(Math.random()*chars.length);}var str='';for(var i=0;i=0;ii--){p=opts_arr[ii].split(':');if(/true/i.test(p[1]))p[1]=true;if(/false/i.test(p[1]))p[1]=false;if(isNumber(p[1]))p[1]=parseInt(p[1],10);if(p.length===2&&p[0].length>0){opts[trim(p[0])]=trim(p[1]);}}return opts;},delay:function(fun,delay){return setTimeout(fun,delay);},scrollTo:function(el,to,duration){if(duration<0)return;var difference=to-$(window).scrollTop();var perTick=difference/duration*10;this.scrollToTimerCache=setTimeout(function(){if(!isNaN(parseInt(perTick,10))){window.scrollTo(0,$(window).scrollTop()+perTick);this.scrollTo(el,to,duration-10);}}.bind(this),10);},scrollLeft:function(el){if(!el.length)return;return( 'scrollLeft'in el[0])?el[0].scrollLeft:el[0].pageXOffset;},empty:function(obj){if(obj.length&&obj.length>0)return false;if(obj.length&&obj.length===0)return true;for(var key in obj){if(hasOwnProperty.call(obj,key))return false;}return true;}},fix_outer:function(lib){lib.outerHeight=function(el,bool){if(typeof Zepto==='function'){return el.height();}if(typeof bool!=='undefined'){return el.outerHeight(bool);}return el.outerHeight();};lib.outerWidth=function(el){if(typeof Zepto==='function'){return el.width();}if(typeof bool!=='undefined'){return el.outerWidth(bool);}return el.outerWidth();};},error:function(error){return error.name+' '+error.message+'; '+error.more;},off:function(){$(this.scope).off('.fndtn');$(window).off('.fndtn');return true;},zj:function(){if(typeof Zepto!=='undefined'){return Zepto;}else{return jQuery;}}()};$.fn.foundation=function(){var args=Array.prototype.slice.call(arguments,0);return this.each(function(){Foundation.init.apply(Foundation,[this].concat(args)); return this;});};}(libFuncName,this,this.document));;(function($,window,document,undefined){'use strict';Foundation.libs.topbar={name:'topbar',version:'4.2.0',settings:{index:0,stickyClass:'sticky',custom_back_text:true,back_text:'Back',is_hover:true,scrolltop:true,init:false},init:function(section,method,options){Foundation.inherit(this,'data_options');var self=this;if(typeof method==='object'){$.extend(true,this.settings,method);}else if(typeof options!=='undefined'){$.extend(true,this.settings,options);}if(typeof method!='string'){$('.top-bar, [data-topbar]').each(function(){$.extend(true,self.settings,self.data_options($(this)));self.settings.$w=$(window);self.settings.$topbar=$(this);self.settings.$section=self.settings.$topbar.find('section');self.settings.$titlebar=self.settings.$topbar.children('ul').first();self.settings.$topbar.data('index',0);var breakpoint=$("
").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:'',viewing:settings.templates.viewing},wrapper='
    '+data.viewing+data.grid+'
    ';return holder.after(wrapper).remove();},open:function($image,current,target){var root=target.closest('.clearing-assembled'),container=root.find('div').first(),visible_image=container.find('.visible-img'),image=visible_image.find('img').not($image);if(!this.locked()){image.attr('src',this.load($image)).css('visibility','hidden');this.loaded(image,function(){image.css('visibility','visible');root.addClass('clearing-blackout');container.addClass('clearing-container');visible_image.show();this.fix_height(target).caption( visible_image.find('.clearing-caption'),$image).center(image).shift(current,target,function(){target.siblings().removeClass('visible');target.addClass('visible');});}.bind(this));}},close:function(e,el){e.preventDefault();var root=(function(target){if(/blackout/.test(target.selector)){return target;}else{return target.closest('.clearing-blackout');}}($(el))),container,visible_image;if(el===e.target&&root){container=root.find('div').first();visible_image=container.find('.visible-img');this.settings.prev_index=0;root.find('ul[data-clearing]').attr('style','').closest('.clearing-blackout').removeClass('clearing-blackout');container.removeClass('clearing-container');visible_image.hide();}return false;},is_open:function(current){return current.parent().attr('style').length>0;},keydown:function(e){var clearing=$('.clearing-blackout').find('ul[data-clearing]');if(e.which===39)this.go(clearing,'next');if(e.which===37)this.go(clearing,'prev');if(e.which===27)$('a.clearing-close').trigger( 'click');},nav:function(e,direction){var clearing=$('.clearing-blackout').find('ul[data-clearing]');e.preventDefault();this.go(clearing,direction);},resize:function(){var image=$('.clearing-blackout .visible-img').find('img');if(image.length){this.center(image);}},fix_height:function(target){var lis=target.parent().children(),self=this;lis.each(function(){var li=$(this),image=li.find('img');if(li.height()>self.outerHeight(image)){li.addClass('fix-height');}}).closest('ul').width(lis.length*100+'%');return this;},update_paddles:function(target){var visible_image=target.closest('.carousel').siblings('.visible-img');if(target.next().length>0){visible_image.find('.clearing-main-next').removeClass('disabled');}else{visible_image.find('.clearing-main-next').addClass('disabled');}if(target.prev().length>0){visible_image.find('.clearing-main-prev').removeClass('disabled');}else{visible_image.find('.clearing-main-prev').addClass('disabled');}},center:function(target){if(!this.rtl){target.css({ marginLeft:-(this.outerWidth(target)/2),marginTop:-(this.outerHeight(target)/2)});}else{target.css({marginRight:-(this.outerWidth(target)/2),marginTop:-(this.outerHeight(target)/2)});}return this;},load:function($image){if($image[0].nodeName==="A"){var href=$image.attr('href');}else{var href=$image.parent().attr('href');}this.preload($image);if(href)return href;return $image.attr('src');},preload:function($image){this.img($image.closest('li').next()).img($image.closest('li').prev());},loaded:function(image,callback){function loaded(){callback();}function bindLoad(){this.one('load',loaded);if(/MSIE (\d+\.\d+);/.test(navigator.userAgent)){var src=this.attr('src'),param=src.match(/\?/)?'&':'?';param+='random='+(new Date()).getTime();this.attr('src',src+param);}}if(!image.attr('src')){loaded();return;}if(image[0].complete||image[0].readyState===4){loaded();}else{bindLoad.call(image);}},img:function(img){if(img.length){var new_img=new Image(),new_a=img.find('a');if(new_a.length){new_img.src =new_a.attr('href');}else{new_img.src=img.find('img').attr('src');}}return this;},caption:function(container,$image){var caption=$image.data('caption');if(caption){container.html(caption).show();}else{container.text('').hide();}return this;},go:function($ul,direction){var current=$ul.find('.visible'),target=current[direction]();if(target.length){target.find('img').trigger('click',[current,target]);}},shift:function(current,target,callback){var clearing=target.parent(),old_index=this.settings.prev_index||target.index(),direction=this.direction(clearing,current,target),left=parseInt(clearing.css('left'),10),width=this.outerWidth(target),skip_shift;if(target.index()!==old_index&&!/skip/.test(direction)){if(/left/.test(direction)){this.lock();clearing.animate({left:left+width},300,this.unlock());}else if(/right/.test(direction)){this.lock();clearing.animate({left:left-width},300,this.unlock());}}else if(/skip/.test(direction)){skip_shift=target.index()-this.settings.up_count;this.lock();if (skip_shift>0){clearing.animate({left:-(skip_shift*width)},300,this.unlock());}else{clearing.animate({left:0},300,this.unlock());}}callback();},direction:function($el,current,target){var lis=$el.find('li'),li_width=this.outerWidth(lis)+(this.outerWidth(lis)/4),up_count=Math.floor(this.outerWidth($('.clearing-container'))/li_width)-1,target_index=lis.index(target),response;this.settings.up_count=up_count;if(this.adjacent(this.settings.prev_index,target_index)){if((target_index>up_count)&&target_index>this.settings.prev_index){response='right';}else if((target_index>up_count-1)&&target_index<=this.settings.prev_index){response='left';}else{response=false;}}else{response='skip';}this.settings.prev_index=target_index;return response;},adjacent:function(current_index,target_index){for(var i=target_index+1;i>=target_index-1;i--){if(i===current_index)return true;}return false;},lock:function(){this.settings.locked=true;},unlock:function(){this.settings.locked=false;},locked:function(){return this .settings.locked;},outerHTML:function(el){return el.outerHTML||new XMLSerializer().serializeToString(el);},off:function(){$(this.scope).off('.fndtn.clearing');$(window).off('.fndtn.clearing');this.remove_data();this.settings.init=false;},reflow:function(){this.init();}};}(Foundation.zj,this,this.document));(function($,document,undefined){var pluses=/\+/g;function raw(s){return s;}function decoded(s){return decodeURIComponent(s.replace(pluses,' '));}var config=$.cookie=function(key,value,options){if(value!==undefined){options=$.extend({},config.defaults,options);if(value===null){options.expires=-1;}if(typeof options.expires==='number'){var days=options.expires,t=options.expires=new Date();t.setDate(t.getDate()+days);}value=config.json?JSON.stringify(value):String(value);return(document.cookie=[encodeURIComponent(key),'=',config.raw?value:encodeURIComponent(value),options.expires?'; expires='+options.expires.toUTCString():'',options.path?'; path='+options.path:'',options.domain? '; domain='+options.domain:'',options.secure?'; secure':''].join(''));}var decode=config.raw?raw:decoded;var cookies=document.cookie.split('; ');for(var i=0,l=cookies.length;i').attr($.extend(args(this),{'type':'text'}));}$replacement.removeAttr('name').data({'placeholder-password':true,'placeholder-id':id}).bind('focus.placeholder',clearPlaceholder);$input.data({'placeholder-textinput':$replacement,'placeholder-id':id}).before($replacement);}$input=$input.removeAttr('id').hide().prev().attr('id',id).show();}$input.addClass('placeholder');$input[0].value=$input.attr('placeholder');}else{$input.removeClass('placeholder');}}}(this,document,Foundation.zj));(function($,window,document,undefined){'use strict';Foundation.libs.forms={name:'forms',version:'4.2.1',cache:{},settings:{disable_class:'no-custom',last_combo:null},init:function(scope,method,options){if(typeof method==='object'){$.extend(true,this.settings,method);}if(typeof method!='string'){if(!this.settings.init){this.events();}this.assemble();return this.settings.init;}else{return this[ method].call(this,options);}},assemble:function(){$('form.custom input[type="radio"]',$(this.scope)).not('[data-customforms="disabled"]').each(this.append_custom_markup);$('form.custom input[type="checkbox"]',$(this.scope)).not('[data-customforms="disabled"]').each(this.append_custom_markup);$('form.custom select',$(this.scope)).not('[data-customforms="disabled"]').not('[multiple=multiple]').each(this.append_custom_select);},events:function(){var self=this;$(this.scope).on('click.fndtn.forms','form.custom span.custom.checkbox',function(e){e.preventDefault();e.stopPropagation();self.toggle_checkbox($(this));}).on('click.fndtn.forms','form.custom span.custom.radio',function(e){e.preventDefault();e.stopPropagation();self.toggle_radio($(this));}).on('change.fndtn.forms','form.custom select:not([data-customforms="disabled"])',function(e,force_refresh){self.refresh_custom_select($(this),force_refresh);}).on('click.fndtn.forms','form.custom label',function(e){if($(e.target).is('label')){var $associatedElement=$('#'+self.escape($(this).attr('for'))+':not([data-customforms="disabled"])'),$customCheckbox,$customRadio;if($associatedElement.length!==0){if($associatedElement.attr('type')==='checkbox'){e.preventDefault();$customCheckbox=$(this).find('span.custom.checkbox');if($customCheckbox.length==0){$customCheckbox=$associatedElement.add(this).siblings('span.custom.checkbox').first();}self.toggle_checkbox($customCheckbox);}else if($associatedElement.attr('type')==='radio'){e.preventDefault();$customRadio=$(this).find('span.custom.radio');if($customRadio.length==0){$customRadio=$associatedElement.add(this).siblings('span.custom.radio').first();}self.toggle_radio($customRadio);}}}}).on('mousedown.fndtn.forms','form.custom div.custom.dropdown',function(){return false;}).on('click.fndtn.forms','form.custom div.custom.dropdown a.current, form.custom div.custom.dropdown a.selector',function(e){var $this=$(this),$dropdown=$this.closest('div.custom.dropdown'),$select= getFirstPrevSibling($dropdown,'select');if(!$dropdown.hasClass('open'))$(self.scope).trigger('click');e.preventDefault();if(false===$select.is(':disabled')){$dropdown.toggleClass('open');if($dropdown.hasClass('open')){$(self.scope).on('click.fndtn.forms.customdropdown',function(){$dropdown.removeClass('open');$(self.scope).off('.fndtn.forms.customdropdown');});}else{$(self.scope).on('.fndtn.forms.customdropdown');}return false;}}).on('click.fndtn.forms touchend.fndtn.forms','form.custom div.custom.dropdown li',function(e){var $this=$(this),$customDropdown=$this.closest('div.custom.dropdown'),$select=getFirstPrevSibling($customDropdown,'select'),selectedIndex=0;e.preventDefault();e.stopPropagation();if(!$(this).hasClass('disabled')){$('div.dropdown').not($customDropdown).removeClass('open');var $oldThis=$this.closest('ul').find('li.selected');$oldThis.removeClass('selected');$this.addClass('selected');$customDropdown.removeClass('open').find('a.current').text($this.text());$this.closest ('ul').find('li').each(function(index){if($this[0]==this){selectedIndex=index;}});$select[0].selectedIndex=selectedIndex;$select.data('prevalue',$oldThis.html());$select.trigger('change');}});$(window).on('keydown',function(e){var focus=document.activeElement,self=Foundation.libs.forms,dropdown=$('.custom.dropdown.open');if(dropdown.length>0){e.preventDefault();if(e.which===13){dropdown.find('li.selected').trigger('click');}if(e.which===27){dropdown.removeClass('open');}if(e.which>=65&&e.which<=90){var next=self.go_to(dropdown,e.which),current=dropdown.find('li.selected');if(next){current.removeClass('selected');self.scrollTo(next.addClass('selected'),300);}}if(e.which===38){var current=dropdown.find('li.selected'),prev=current.prev(':not(.disabled)');if(prev.length>0){prev.parent()[0].scrollTop=prev.parent().scrollTop()-self.outerHeight(prev);current.removeClass('selected');prev.addClass('selected');}}else if(e.which===40){var current=dropdown.find('li.selected'),next=current.next( ':not(.disabled)');if(next.length>0){next.parent()[0].scrollTop=next.parent().scrollTop()+self.outerHeight(next);current.removeClass('selected');next.addClass('selected');}}}});this.settings.init=true;},go_to:function(dropdown,character){var lis=dropdown.find('li'),count=lis.length;if(count>0){for(var i=0;i').insertAfter($this);}$span.toggleClass('checked',$this.is(':checked'));$span.toggleClass('disabled',$this.is(':disabled'));},append_custom_select:function(idx,sel){var self=Foundation.libs.forms,$this=$(sel),$customSelect=$this.next('div.custom.dropdown'),$customList=$customSelect.find('ul'),$selectCurrent=$customSelect.find(".current"),$selector=$customSelect.find(".selector"),$options=$this.find('option'),$selectedOption=$options.filter(':selected'),copyClasses=$this.attr('class')?$this.attr('class').split(' '):[],maxWidth=0,liHtml='',$listItems,$currentSelect=false;if($this.hasClass(self.settings.disable_class))return;if($customSelect.length===0){var customSelectSize=$this.hasClass('small')?'small':$this.hasClass('medium')?'medium':$this.hasClass('large')?'large':$this.hasClass('expand')?'expand':'';$customSelect=$('
      ');$selector=$customSelect.find(".selector");$customList=$customSelect.find("ul");liHtml=$options.map(function(){var copyClasses=$(this).attr('class')?$(this).attr('class'):'';return"
    • "+$(this).html()+"
    • ";}).get().join('');$customList.append(liHtml);$currentSelect=$customSelect.prepend(''+$selectedOption.html()+'').find(".current");$this.after($customSelect).addClass('hidden-field');}else{liHtml=$options.map(function(){return"
    • "+$(this).html()+"
    • ";}).get().join('');$customList.html('').append(liHtml);}self.assign_id($this,$customSelect);$customSelect.toggleClass('disabled',$this.is(':disabled'));$listItems=$customList.find('li');self.cache[$customSelect.data('id')]=$listItems.length;$options.each(function(index){if(this.selected){$listItems.eq(index).addClass('selected');if($currentSelect){$currentSelect.html($(this).html());}} if($(this).is(':disabled')){$listItems.eq(index).addClass('disabled');}});if(!$customSelect.is('.small, .medium, .large, .expand')){$customSelect.addClass('open');var self=Foundation.libs.forms;self.hidden_fix.adjust($customList);maxWidth=(self.outerWidth($listItems)>maxWidth)?self.outerWidth($listItems):maxWidth;Foundation.libs.forms.hidden_fix.reset();$customSelect.removeClass('open');}},assign_id:function($select,$customSelect){var id=[+new Date(),Foundation.random_str(5)].join('-');$select.attr('data-id',id);$customSelect.attr('data-id',id);},refresh_custom_select:function($select,force_refresh){var self=this;var maxWidth=0,$customSelect=$select.next(),$options=$select.find('option'),$listItems=$customSelect.find('li');if($listItems.length!=this.cache[$customSelect.data('id')]||force_refresh){$customSelect.find('ul').html('');$options.each(function(){var $li=$('
    • '+$(this).html()+'
    • ');$customSelect.find('ul').append($li);});$options.each(function(index){if(this.selected){ $customSelect.find('li').eq(index).addClass('selected');$customSelect.find('.current').html($(this).html());}if($(this).is(':disabled')){$customSelect.find('li').eq(index).addClass('disabled');}});$customSelect.removeAttr('style').find('ul').removeAttr('style');$customSelect.find('li').each(function(){$customSelect.addClass('open');if(self.outerWidth($(this))>maxWidth){maxWidth=self.outerWidth($(this));}$customSelect.removeClass('open');});$listItems=$customSelect.find('li');this.cache[$customSelect.data('id')]=$listItems.length;}},toggle_checkbox:function($element){var $input=$element.prev(),input=$input[0];if(false===$input.is(':disabled')){input.checked=((input.checked)?false:true);$element.toggleClass('checked');$input.trigger('change');}},toggle_radio:function($element){var $input=$element.prev(),$form=$input.closest('form.custom'),input=$input[0];if(false===$input.is(':disabled')){$form.find('input[type="radio"][name="'+this.escape($input.attr('name'))+'"]').next().not($element). removeClass('checked');if(!$element.hasClass('checked')){$element.toggleClass('checked');}input.checked=$element.hasClass('checked');$input.trigger('change');}},escape:function(text){return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");},hidden_fix:{tmp:[],hidden:null,adjust:function($child){var _self=this;_self.hidden=$child.parents();_self.hidden=_self.hidden.add($child).filter(":hidden");_self.hidden.each(function(){var $elem=$(this);_self.tmp.push($elem.attr('style'));$elem.css({'visibility':'hidden','display':'block'});});},reset:function(){var _self=this;_self.hidden.each(function(i){var $elem=$(this),_tmp=_self.tmp[i];if(_tmp===undefined)$elem.removeAttr('style');else $elem.attr('style',_tmp);});_self.tmp=[];_self.hidden=null;}},off:function(){$(this.scope).off('.fndtn.forms');},reflow:function(){}};var getFirstPrevSibling=function($el,selector){var $el=$el.prev();while($el.length){if($el.is(selector))return $el;$el=$el.prev();}return $();};}(Foundation.zj,this,this.document)) ;;(function($,window,document,undefined){'use strict';Foundation.libs.alerts={name:'alerts',version:'4.0.0',settings:{speed:300,callback:function(){}},init:function(scope,method,options){this.scope=scope||this.scope;if(typeof method==='object'){$.extend(true,this.settings,method);}if(typeof method!='string'){if(!this.settings.init)this.events();return this.settings.init;}else{return this[method].call(this,options);}},events:function(){var self=this;$(this.scope).on('click.fndtn.alerts','[data-alert] a.close',function(e){e.preventDefault();$(this).closest("[data-alert]").fadeOut(self.speed,function(){$(this).remove();self.settings.callback();});});this.settings.init=true;},off:function(){$(this.scope).off('.fndtn.alerts');},reflow:function(){}};}(Foundation.zj,this,this.document));jQuery(document).ready(function(){if(!jQuery.support.cssFloat){jQuery('html').addClass('lt-ie9').addClass('no-js');}jQuery(document).foundation(function(response){if(window.console)console.log(response.errors) ;});jQuery("#pt-notifications").prependTo("#echo-notifications");jQuery('[id^=ca-nstab] a').prepend('
      ') jQuery('li#ca-talk a').prepend('
      ') jQuery('li#ca-edit a').prepend('
      ') jQuery('li#ca-viewsource a').prepend('
      ') jQuery('li#ca-form_edit a').prepend('
      ') jQuery('li#ca-history a').prepend('
      ') jQuery('li#ca-delete a').prepend('
      ') jQuery('li#ca-move a').prepend('
      ') jQuery('li#ca-protect a').prepend('
      ') jQuery('li#ca-unprotect a').prepend('
      ') jQuery('li#ca-watch a').prepend('
      ') jQuery('li#ca-unwatch a').prepend('
      ') jQuery('li#ca-purge a').prepend('
      ') jQuery('li#ca-undelete a').prepend('
      ') jQuery('li#ca-ask_delete_permanently a').prepend('
      ') if(jQuery('#ca-addsection').length){jQuery('li#ca-addsection a').html('
      '+jQuery('li#ca-addsection a').attr('title').replace(/\[.+/g,""))}jQuery('li#pt-uls a').prepend('
      ') jQuery('li#pt-userpage a').prepend('
      ') jQuery('li#pt-mytalk a').prepend('
      ') jQuery('li#pt-adminlinks a').prepend('
      ') jQuery('li#pt-preferences a').prepend('
      ') jQuery('li#pt-watchlist a').prepend('
      ') jQuery('li#pt-mycontris a').prepend('
      ') jQuery('li#pt-logout a').prepend('
      ') jQuery('li#t-smwbrowselink a').prepend('
      ') jQuery('li#t-whatlinkshere a').prepend('
      ') jQuery('li#t-blockip a').prepend('
      ') jQuery('li#t-recentchangeslinked a').prepend('
      ') jQuery('li#t-contributions a').prepend('
      ') jQuery('li#t-log a').prepend('
      ') jQuery('li#t-emailuser a').prepend('
      ') jQuery('li#t-userrights a').prepend('
      ') jQuery('li#t-upload a').prepend('
      ') jQuery('li#t-specialpages a').prepend('
      ') jQuery('li#t-print a').prepend('
      ') jQuery('li#t-permalink a').prepend('
      ') jQuery('li#t-info a').prepend('
      ') jQuery('li#feedlinks a').prepend('
      ') jQuery('ul#toolbox-dropdown.dropdown>li#n-recentchanges a').prepend('
      ') jQuery('ul#toolbox-dropdown.dropdown>li#n-help a').prepend('
      ') jQuery('#mw-normal-catlinks ul li a').addClass('label');jQuery('a.button.dropdown').mouseenter(function(){jQuery('ul#drop1').addClass('open').addClass('right').css('top','32px').css('left','785px');});jQuery('ul#drop1').mouseleave(function(){jQuery('ul#drop1').removeClass('open').css('top','-9999px').css('left','785px');});});;mw.loader.state({"skins.foreground":"ready"}); /* cache key: epdraft:resourceloader:filter:minify-js:7:c025427b143f5f850f2ecfb915637787 */