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(a,d,b,c){a("head").append('<meta class="foundation-mq-small">');a("head").append('<meta class="foundation-mq-medium">');a("head").append('<meta class="foundation-mq-large">');d.matchMedia=d.matchMedia||(function(g,k){var e,h=g.documentElement,j=h.firstElementChild||h.firstChild,i=g.createElement("body"),f=g.createElement("div");f.id="mq-test-1";f.style.cssText="position:absolute;top:-100em";i.style.background="none";i.appendChild(f);return function(l){f.innerHTML='&shy;<style media="'+l+'"> #mq-test-1 { width: 42px; }</style>';h.insertBefore(i,j);e=f.offsetWidth===42;h.removeChild(i);return{matches:e,media:l}}}(b));if(!Array.prototype.filter){Array.prototype.filter=function(e){if(this==null){throw new TypeError()}var j=Object(this),g=j.length>>>0;if(typeof e!=="function"){return}var h=[],k=arguments[1];for(var f=0;f<g;f++){if(f in j){var l=j[f];if(e&&e.call(k,l,f,j)){h.push(l)}}}return h}}if(!Function.prototype.bind){Function.prototype.bind=function(i){if(typeof this!=="function"){throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable")}var e=Array.prototype.slice.call(arguments,1),h=this,g=function(){},f=function(){return h.apply(this instanceof g&&i?this:i,e.concat(Array.prototype.slice.call(arguments)))};g.prototype=this.prototype;f.prototype=new g();return f}}if(!Array.prototype.indexOf){Array.prototype.indexOf=function(h){if(this==null){throw new TypeError()}var i=Object(this);var f=i.length>>>0;if(f===0){return -1}var g=0;if(arguments.length>1){g=Number(arguments[1]);if(g!=g){g=0}else{if(g!=0&&g!=Infinity&&g!=-Infinity){g=(g>0||-1)*Math.floor(Math.abs(g))}}}if(g>=f){return -1}var e=g>=0?g:Math.max(f-Math.abs(g),0);for(;e<f;e++){if(e in i&&i[e]===h){return e}}return -1}}a.fn.stop=a.fn.stop||function(){return this};d.Foundation={name:"Foundation",version:"4.3.2",cache:{},media_queries:{small:a(".foundation-mq-small").css("font-family").replace(/\'/g,""),medium:a(".foundation-mq-medium").css("font-family").replace(/\'/g,""),large:a(".foundation-mq-large").css("font-family").replace(/\'/g,"")},stylesheet:a("<style></style>").appendTo("head")[0].sheet,init:function(p,h,k,m,n,l){var j,e=[p,k,m,n],o=[],l=l||false;if(l){this.nc=l}this.rtl=/rtl/i.test(a("html").attr("dir"));this.scope=p||this.scope;if(h&&typeof h==="string"&&!/reflow/i.test(h)){if(/off/i.test(h)){return this.off()}j=h.split(" ");if(j.length>0){for(var f=j.length-1;f>=0;f--){o.push(this.init_lib(j[f],e))}}}else{if(/reflow/i.test(h)){e[1]="reflow"}for(var g in this.libs){o.push(this.init_lib(g,e))}}if(typeof h==="function"){e.unshift(h)}return this.response_obj(o,e)},response_obj:function(h,e){for(var f=0,g=e.length;f<g;f++){if(typeof e[f]==="function"){return e[f]({errors:h.filter(function(i){if(typeof i==="string"){return i}})})}}return h},init_lib:function(f,e){return this.trap(function(){if(this.libs.hasOwnProperty(f)){this.patch(this.libs[f]);return this.libs[f].init.apply(this.libs[f],e)}else{return function(){}}}.bind(this),f)},trap:function(g,h){if(!this.nc){try{return g()}catch(f){return this.error({name:h,message:"could not be initialized",more:f.name+" "+f.message})}}return g()},patch:function(e){this.fix_outer(e);e.scope=this.scope;e.rtl=this.rtl},inherit:function(h,f){var g=f.split(" ");for(var e=g.length-1;e>=0;e--){if(this.lib_methods.hasOwnProperty(g[e])){this.libs[h.name][g[e]]=this.lib_methods[g[e]]}}},random_str:function(g){var e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");if(!g){g=Math.floor(Math.random()*e.length)}var h="";for(var f=0;f<g;f++){h+=e[Math.floor(Math.random()*e.length)]}return h},libs:{},lib_methods:{set_data:function(g,e){var f=[this.name,+new Date(),Foundation.random_str(5)].join("-");Foundation.cache[f]=e;g.attr("data-"+this.name+"-id",f);return e},get_data:function(e){return Foundation.cache[e.attr("data-"+this.name+"-id")]},remove_data:function(e){if(e){delete Foundation.cache[e.attr("data-"+this.name+"-id")];e.attr("data-"+this.name+"-id","")}else{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(f,e){var g=null;return function(){var i=this,h=arguments;clearTimeout(g);g=setTimeout(function(){f.apply(i,h)},e)}},data_options:function(e){var h={},f,k,i=(e.attr("data-options")||":").split(";"),j=i.length;function g(m){return !isNaN(m-0)&&m!==null&&m!==""&&m!==false&&m!==true}function l(m){if(typeof m==="string"){return a.trim(m)}return m}for(f=j-1;f>=0;f--){k=i[f].split(":");if(/true/i.test(k[1])){k[1]=true}if(/false/i.test(k[1])){k[1]=false}if(g(k[1])){k[1]=parseInt(k[1],10)}if(k.length===2&&k[0].length>0){h[l(k[0])]=l(k[1])}}return h},delay:function(f,e){return setTimeout(f,e)},scrollTo:function(g,i,f){if(f<0){return}var e=i-a(d).scrollTop();var h=e/f*10;this.scrollToTimerCache=setTimeout(function(){if(!isNaN(parseInt(h,10))){d.scrollTo(0,a(d).scrollTop()+h);this.scrollTo(g,i,f-10)}}.bind(this),10)},scrollLeft:function(e){if(!e.length){return}return("scrollLeft" in e[0])?e[0].scrollLeft:e[0].pageXOffset},empty:function(f){if(f.length&&f.length>0){return false}if(f.length&&f.length===0){return true}for(var e in f){if(hasOwnProperty.call(f,e)){return false}}return true},addCustomRule:function(g,e){if(e===c){Foundation.stylesheet.insertRule(g,Foundation.stylesheet.cssRules.length)}else{var f=Foundation.media_queries[e];if(f!==c){Foundation.stylesheet.insertRule("@media "+Foundation.media_queries[e]+"{ "+g+" }")}}}},fix_outer:function(e){e.outerHeight=function(g,f){if(typeof Zepto==="function"){return g.height()}if(typeof f!=="undefined"){return g.outerHeight(f)}return g.outerHeight()};e.outerWidth=function(g,f){if(typeof Zepto==="function"){return g.width()}if(typeof f!=="undefined"){return g.outerWidth(f)}return g.outerWidth()}},error:function(e){return e.name+" "+e.message+"; "+e.more},off:function(){a(this.scope).off(".fndtn");a(d).off(".fndtn");return true},zj:a};a.fn.foundation=function(){var e=Array.prototype.slice.call(arguments,0);return this.each(function(){Foundation.init.apply(Foundation,[this].concat(e));return this})}}(libFuncName,this,this.document));(function(a,d,b,c){Foundation.libs.alerts={name:"alerts",version:"4.3.2",settings:{animation:"fadeOut",speed:300,callback:function(){}},init:function(g,e,f){this.scope=g||this.scope;Foundation.inherit(this,"data_options");if(typeof e==="object"){a.extend(true,this.settings,e)}if(typeof e!=="string"){if(!this.settings.init){this.events()}return this.settings.init}else{return this[e].call(this,f)}},events:function(){var e=this;a(this.scope).on("click.fndtn.alerts","[data-alert] a.close",function(g){var f=a(this).closest("[data-alert]"),h=a.extend({},e.settings,e.data_options(f));g.preventDefault();f[h.animation](h.speed,function(){a(this).remove();h.callback()})});this.settings.init=true},off:function(){a(this.scope).off(".fndtn.alerts")},reflow:function(){}}}(Foundation.zj,this,this.document));(function(a,d,b,c){Foundation.libs.clearing={name:"clearing",version:"4.3.2",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:false,locked:false},init:function(g,e,f){var h=this;Foundation.inherit(this,"set_data get_data remove_data throttle data_options");if(typeof e==="object"){f=a.extend(true,this.settings,e)}if(typeof e!=="string"){a(this.scope).find("ul[data-clearing]").each(function(){var i=a(this),k=k||{},j=i.find("li"),l=h.get_data(i);if(!l&&j.length>0){k.$parent=i.parent();h.set_data(i,a.extend({},h.settings,k,h.data_options(i)));h.assemble(i.find("li"));if(!h.settings.init){h.events().swipe_events()}}});return this.settings.init}else{return this[e].call(this,f)}},events:function(){var e=this;a(this.scope).on("click.fndtn.clearing","ul[data-clearing] li",function(g,f,k){var f=f||a(this),k=k||f,i=f.next("li"),j=e.get_data(f.parent()),h=a(g.target);g.preventDefault();if(!j){e.init()}if(k.hasClass("visible")&&f[0]===k[0]&&i.length>0&&e.is_open(f)){k=i;h=k.find("img")}e.open(h,f,k);e.update_paddles(k)}).on("click.fndtn.clearing",".clearing-main-next",function(f){this.nav(f,"next")}.bind(this)).on("click.fndtn.clearing",".clearing-main-prev",function(f){this.nav(f,"prev")}.bind(this)).on("click.fndtn.clearing",this.settings.close_selectors,function(f){Foundation.libs.clearing.close(f,this)}).on("keydown.fndtn.clearing",function(f){this.keydown(f)}.bind(this));a(d).on("resize.fndtn.clearing",function(){this.resize()}.bind(this));this.settings.init=true;return this},swipe_events:function(){var e=this;a(this.scope).on("touchstart.fndtn.clearing",".visible-img",function(g){if(!g.touches){g=g.originalEvent}var f={start_page_x:g.touches[0].pageX,start_page_y:g.touches[0].pageY,start_time:(new Date()).getTime(),delta_x:0,is_scrolling:c};a(this).data("swipe-transition",f);g.stopPropagation()}).on("touchmove.fndtn.clearing",".visible-img",function(h){if(!h.touches){h=h.originalEvent}if(h.touches.length>1||h.scale&&h.scale!==1){return}var f=a(this).data("swipe-transition");if(typeof f==="undefined"){f={}}f.delta_x=h.touches[0].pageX-f.start_page_x;if(typeof f.is_scrolling==="undefined"){f.is_scrolling=!!(f.is_scrolling||Math.abs(f.delta_x)<Math.abs(h.touches[0].pageY-f.start_page_y))}if(!f.is_scrolling&&!f.active){h.preventDefault();var g=(f.delta_x<0)?"next":"prev";f.active=true;e.nav(h,g)}}).on("touchend.fndtn.clearing",".visible-img",function(f){a(this).data("swipe-transition",{});f.stopPropagation()})},assemble:function(f){var e=f.parent();e.after('<div id="foundationClearingHolder"></div>');var i=a("#foundationClearingHolder"),j=this.get_data(e),h=e.detach(),g={grid:'<div class="carousel">'+this.outerHTML(h[0])+"</div>",viewing:j.templates.viewing},k='<div class="clearing-assembled"><div>'+g.viewing+g.grid+"</div></div>";return i.after(k).remove()},open:function(e,g,j){var i=j.closest(".clearing-assembled"),f=i.find("div").first(),k=f.find(".visible-img"),h=k.find("img").not(e);if(!this.locked()){h.attr("src",this.load(e)).css("visibility","hidden");this.loaded(h,function(){h.css("visibility","visible");i.addClass("clearing-blackout");f.addClass("clearing-container");k.show();this.fix_height(j).caption(k.find(".clearing-caption"),e).center(h).shift(g,j,function(){j.siblings().removeClass("visible");j.addClass("visible")})}.bind(this))}},close:function(g,h){g.preventDefault();var i=(function(e){if(/blackout/.test(e.selector)){return e}else{return e.closest(".clearing-blackout")}}(a(h))),f,j;if(h===g.target&&i){f=i.find("div").first();j=f.find(".visible-img");this.settings.prev_index=0;i.find("ul[data-clearing]").attr("style","").closest(".clearing-blackout").removeClass("clearing-blackout");f.removeClass("clearing-container");j.hide()}return false},is_open:function(e){return e.parent().prop("style").length>0},keydown:function(g){var f=a(".clearing-blackout").find("ul[data-clearing]");if(g.which===39){this.go(f,"next")}if(g.which===37){this.go(f,"prev")}if(g.which===27){a("a.clearing-close").trigger("click")}},nav:function(h,g){var f=a(".clearing-blackout").find("ul[data-clearing]");h.preventDefault();this.go(f,g)},resize:function(){var e=a(".clearing-blackout .visible-img").find("img");if(e.length){this.center(e)}},fix_height:function(g){var e=g.parent().children(),f=this;e.each(function(){var i=a(this),h=i.find("img");if(i.height()>f.outerHeight(h)){i.addClass("fix-height")}}).closest("ul").width(e.length*100+"%");return this},update_paddles:function(e){var f=e.closest(".carousel").siblings(".visible-img");if(e.next().length>0){f.find(".clearing-main-next").removeClass("disabled")}else{f.find(".clearing-main-next").addClass("disabled")}if(e.prev().length>0){f.find(".clearing-main-prev").removeClass("disabled")}else{f.find(".clearing-main-prev").addClass("disabled")}},center:function(e){if(!this.rtl){e.css({marginLeft:-(this.outerWidth(e)/2),marginTop:-(this.outerHeight(e)/2)})}else{e.css({marginRight:-(this.outerWidth(e)/2),marginTop:-(this.outerHeight(e)/2)})}return this},load:function(e){if(e[0].nodeName==="A"){var f=e.attr("href")}else{var f=e.parent().attr("href")}this.preload(e);if(f){return f}return e.attr("src")},preload:function(e){this.img(e.closest("li").next()).img(e.closest("li").prev())},loaded:function(g,f){function h(){f()}function e(){this.one("load",h);if(/MSIE (\d+\.\d+);/.test(navigator.userAgent)){var j=this.attr("src"),i=j.match(/\?/)?"&":"?";i+="random="+(new Date()).getTime();this.attr("src",j+i)}}if(!g.attr("src")){h();return}if(g[0].complete||g[0].readyState===4){h()}else{e.call(g)}},img:function(e){if(e.length){var g=new Image(),f=e.find("a");if(f.length){g.src=f.attr("href")}else{g.src=e.find("img").attr("src")}}return this},caption:function(g,e){var f=e.data("caption");if(f){g.html(f).show()}else{g.text("").hide()}return this},go:function(e,g){var f=e.find(".visible"),h=f[g]();if(h.length){h.find("img").trigger("click",[f,h])}},shift:function(g,l,e){var f=l.parent(),j=this.settings.prev_index||l.index(),h=this.direction(f,g,l),i=parseInt(f.css("left"),10),m=this.outerWidth(l),k;if(l.index()!==j&&!/skip/.test(h)){if(/left/.test(h)){this.lock();f.animate({left:i+m},300,this.unlock())}else{if(/right/.test(h)){this.lock();f.animate({left:i-m},300,this.unlock())}}}else{if(/skip/.test(h)){k=l.index()-this.settings.up_count;this.lock();if(k>0){f.animate({left:-(k*m)},300,this.unlock())}else{f.animate({left:0},300,this.unlock())}}}e()},direction:function(e,f,j){var h=e.find("li"),g=this.outerWidth(h)+(this.outerWidth(h)/4),l=Math.floor(this.outerWidth(a(".clearing-container"))/g)-1,k=h.index(j),i;this.settings.up_count=l;if(this.adjacent(this.settings.prev_index,k)){if((k>l)&&k>this.settings.prev_index){i="right"}else{if((k>l-1)&&k<=this.settings.prev_index){i="left"}else{i=false}}}else{i="skip"}this.settings.prev_index=k;return i},adjacent:function(e,g){for(var f=g+1;f>=g-1;f--){if(f===e){return true}}return false},lock:function(){this.settings.locked=true},unlock:function(){this.settings.locked=false},locked:function(){return this.settings.locked},outerHTML:function(e){return e.outerHTML||new XMLSerializer().serializeToString(e)},off:function(){a(this.scope).off(".fndtn.clearing");a(d).off(".fndtn.clearing");this.remove_data();this.settings.init=false},reflow:function(){this.init()}}}(Foundation.zj,this,this.document));
/*
 * jQuery Cookie Plugin v1.3
 * https://github.com/carhartl/jquery-cookie
 *
 * Copyright 2011, Klaus Hartl
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.opensource.org/licenses/GPL-2.0
 *
 * Modified to work with Zepto.js by ZURB
 */
(function(a,d,g){var e=/\+/g;function f(h){return h}function c(h){return decodeURIComponent(h.replace(e," "))}var b=a.cookie=function(o,u,q){if(u!==g){q=a.extend({},b.defaults,q);if(u===null){q.expires=-1}if(typeof q.expires==="number"){var k=q.expires,s=q.expires=new Date();s.setDate(s.getDate()+k)}u=b.json?JSON.stringify(u):String(u);return(d.cookie=[encodeURIComponent(o),"=",b.raw?u:encodeURIComponent(u),q.expires?"; expires="+q.expires.toUTCString():"",q.path?"; path="+q.path:"",q.domain?"; domain="+q.domain:"",q.secure?"; secure":""].join(""))}var m=b.raw?f:c;var j=d.cookie.split("; ");for(var n=0,p=j.length;n<p;n++){var r=j[n].split("=");if(m(r.shift())===o){var h=m(r.join("="));return b.json?JSON.parse(h):h}}return null};b.defaults={};a.removeCookie=function(h,i){if(a.cookie(h)!==null){a.cookie(h,null,i);return true}return false}})(Foundation.zj,document);(function(a,d,b,c){Foundation.libs.dropdown={name:"dropdown",version:"4.3.2",settings:{activeClass:"open",is_hover:false,opened:function(){},closed:function(){}},init:function(g,e,f){this.scope=g||this.scope;Foundation.inherit(this,"throttle scrollLeft data_options");if(typeof e==="object"){a.extend(true,this.settings,e)}if(typeof e!=="string"){if(!this.settings.init){this.events()}return this.settings.init}else{return this[e].call(this,f)}},events:function(){var e=this;a(this.scope).on("click.fndtn.dropdown","[data-dropdown]",function(f){var g=a.extend({},e.settings,e.data_options(a(this)));f.preventDefault();if(!g.is_hover){e.toggle(a(this))}}).on("mouseenter","[data-dropdown]",function(f){var g=a.extend({},e.settings,e.data_options(a(this)));if(g.is_hover){e.toggle(a(this))}}).on("mouseleave","[data-dropdown-content]",function(f){var h=a('[data-dropdown="'+a(this).attr("id")+'"]'),g=a.extend({},e.settings,e.data_options(h));if(g.is_hover){e.close.call(e,a(this))}}).on("opened.fndtn.dropdown","[data-dropdown-content]",this.settings.opened).on("closed.fndtn.dropdown","[data-dropdown-content]",this.settings.closed);a(b).on("click.fndtn.dropdown",function(f){var g=a(f.target).closest("[data-dropdown-content]");if(a(f.target).data("dropdown")||a(f.target).parent().data("dropdown")){return}if(!(a(f.target).data("revealId"))&&(g.length>0&&(a(f.target).is("[data-dropdown-content]")||a.contains(g.first()[0],f.target)))){f.stopPropagation();return}e.close.call(e,a("[data-dropdown-content]"))});a(d).on("resize.fndtn.dropdown",e.throttle(function(){e.resize.call(e)},50)).trigger("resize");this.settings.init=true},close:function(e){var f=this;e.each(function(){if(a(this).hasClass(f.settings.activeClass)){a(this).css(Foundation.rtl?"right":"left","-99999px").removeClass(f.settings.activeClass);a(this).trigger("closed")}})},open:function(e,f){this.css(e.addClass(this.settings.activeClass),f);e.trigger("opened")},toggle:function(f){var e=a("#"+f.data("dropdown"));if(e.length===0){return}this.close.call(this,a("[data-dropdown-content]").not(e));if(e.hasClass(this.settings.activeClass)){this.close.call(this,e)}else{this.close.call(this,a("[data-dropdown-content]"));this.open.call(this,e,f)}},resize:function(){var e=a("[data-dropdown-content].open"),f=a("[data-dropdown='"+e.attr("id")+"']");if(e.length&&f.length){this.css(e,f)}},css:function(e,i){var g=e.offsetParent();var h=i.offset();h.top-=g.offset().top;h.left-=g.offset().left;if(this.small()){e.css({position:"absolute",width:"95%","max-width":"none",top:h.top+this.outerHeight(i)});e.css(Foundation.rtl?"right":"left","2.5%")}else{if(!Foundation.rtl&&a(d).width()>this.outerWidth(e)+i.offset().left&&!this.data_options(i).align_right){var f=h.left;if(e.hasClass("right")){e.removeClass("right")}}else{if(!e.hasClass("right")){e.addClass("right")}var f=h.left-(this.outerWidth(e)-this.outerWidth(i))}e.attr("style","").css({position:"absolute",top:h.top+this.outerHeight(i),left:f})}return e},small:function(){return a(d).width()<768||a("html").hasClass("lt-ie9")},off:function(){a(this.scope).off(".fndtn.dropdown");a("html, body").off(".fndtn.dropdown");a(d).off(".fndtn.dropdown");a("[data-dropdown-content]").off(".fndtn.dropdown");this.settings.init=false},reflow:function(){}}}(Foundation.zj,this,this.document));(function(a,e,b,d){Foundation.libs.forms={name:"forms",version:"4.3.2",cache:{},settings:{disable_class:"no-custom",last_combo:null},init:function(h,f,g){if(typeof f==="object"){a.extend(true,this.settings,f)}if(typeof f!=="string"){if(!this.settings.init){this.events()}this.assemble();return this.settings.init}else{return this[f].call(this,g)}},assemble:function(){var f=this;a('form.custom input[type="radio"],[type="checkbox"]',a(this.scope)).not('[data-customforms="disabled"]').not("."+this.settings.disable_class).each(function(g,h){f.set_custom_markup(h)}).change(function(){f.set_custom_markup(this)});a("form.custom select",a(this.scope)).not('[data-customforms="disabled"]').not("."+this.settings.disable_class).not("[multiple=multiple]").each(this.append_custom_select)},events:function(){var f=this;a(this.scope).on("click.fndtn.forms","form.custom span.custom.checkbox",function(g){g.preventDefault();g.stopPropagation();f.toggle_checkbox(a(this))}).on("click.fndtn.forms","form.custom span.custom.radio",function(g){g.preventDefault();g.stopPropagation();f.toggle_radio(a(this))}).on("change.fndtn.forms","form.custom select",function(g,h){if(a(this).is('[data-customforms="disabled"]')){return}f.refresh_custom_select(a(this),h)}).on("click.fndtn.forms","form.custom label",function(j){if(a(j.target).is("label")){var g=a("#"+f.escape(a(this).attr("for"))).not('[data-customforms="disabled"]'),h,i;if(g.length!==0){if(g.attr("type")==="checkbox"){j.preventDefault();h=a(this).find("span.custom.checkbox");if(h.length===0){h=g.add(this).siblings("span.custom.checkbox").first()}f.toggle_checkbox(h)}else{if(g.attr("type")==="radio"){j.preventDefault();i=a(this).find("span.custom.radio");if(i.length===0){i=g.add(this).siblings("span.custom.radio").first()}f.toggle_radio(i)}}}}}).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(j){var i=a(this),g=i.closest("div.custom.dropdown"),h=c(g,"select");if(!g.hasClass("open")){a(f.scope).trigger("click")}j.preventDefault();if(false===h.is(":disabled")){g.toggleClass("open");if(g.hasClass("open")){a(f.scope).on("click.fndtn.forms.customdropdown",function(){g.removeClass("open");a(f.scope).off(".fndtn.forms.customdropdown")})}else{a(f.scope).on(".fndtn.forms.customdropdown")}return false}}).on("click.fndtn.forms touchend.fndtn.forms","form.custom div.custom.dropdown li",function(k){var j=a(this),g=j.closest("div.custom.dropdown"),i=c(g,"select"),m=0;k.preventDefault();k.stopPropagation();if(!a(this).hasClass("disabled")){a("div.dropdown").not(g).removeClass("open");var h=j.closest("ul").find("li.selected");h.removeClass("selected");j.addClass("selected");g.removeClass("open").find("a.current").text(j.text());j.closest("ul").find("li").each(function(n){if(j[0]===this){m=n}});i[0].selectedIndex=m;i.data("prevalue",h.html());if(typeof(b.createEvent)!="undefined"){var l=b.createEvent("HTMLEvents");l.initEvent("change",true,true);i[0].dispatchEvent(l)}else{i[0].fireEvent("onchange")}}});a(e).on("keydown",function(i){var j=b.activeElement,o=Foundation.libs.forms,h=a(".custom.dropdown"),n=c(h,"select"),k=a("input,select,textarea,button");if(h.length>0&&h.hasClass("open")){i.preventDefault();if(i.which===9){a(k[a(k).index(n)+1]).focus();h.removeClass("open")}if(i.which===13){h.find("li.selected").trigger("click")}if(i.which===27){h.removeClass("open")}if(i.which>=65&&i.which<=90){var l=o.go_to(h,i.which),g=h.find("li.selected");if(l){g.removeClass("selected");o.scrollTo(l.addClass("selected"),300)}}if(i.which===38){var g=h.find("li.selected"),m=g.prev(":not(.disabled)");if(m.length>0){m.parent()[0].scrollTop=m.parent().scrollTop()-o.outerHeight(m);g.removeClass("selected");m.addClass("selected")}}else{if(i.which===40){var g=h.find("li.selected"),l=g.next(":not(.disabled)");if(l.length>0){l.parent()[0].scrollTop=l.parent().scrollTop()+o.outerHeight(l);g.removeClass("selected");l.addClass("selected")}}}}});a(e).on("keyup",function(h){var i=b.activeElement,g=a(".custom.dropdown");if(i===g.find(".current")[0]){g.find(".selector").focus().click()}});this.settings.init=true},go_to:function(h,f){var l=h.find("li"),g=l.length;if(g>0){for(var k=0;k<g;k++){var j=l.eq(k).text().charAt(0).toLowerCase();if(j===String.fromCharCode(f).toLowerCase()){return l.eq(k)}}}},scrollTo:function(h,g){if(g<0){return}var j=h.parent();var i=this.outerHeight(h);var f=(i*(h.index()))-j.scrollTop();var k=f/g*10;this.scrollToTimerCache=setTimeout(function(){if(!isNaN(parseInt(k,10))){j[0].scrollTop=j.scrollTop()+k;this.scrollTo(h,g-10)}}.bind(this),10)},set_custom_markup:function(h){var g=a(h),i=g.attr("type"),f=g.next("span.custom."+i);if(!g.parent().hasClass("switch")){g.addClass("hidden-field")}if(f.length===0){f=a('<span class="custom '+i+'"></span>').insertAfter(g)}f.toggleClass("checked",g.is(":checked"));f.toggleClass("disabled",g.is(":disabled"))},append_custom_select:function(q,t){var u=Foundation.libs.forms,n=a(t),h=n.next("div.custom.dropdown"),g=h.find("ul"),k=h.find(".current"),m=h.find(".selector"),j=n.find("option"),l=j.filter(":selected"),o=n.attr("class")?n.attr("class").split(" "):[],s=0,r="",i,f=false;if(h.length===0){var p=n.hasClass("small")?"small":n.hasClass("medium")?"medium":n.hasClass("large")?"large":n.hasClass("expand")?"expand":"";h=a('<div class="'+["custom","dropdown",p].concat(o).filter(function(x,w,v){if(x===""){return false}return v.indexOf(x)===w}).join(" ")+'"><a href="#" class="selector"></a><ul /></div>');m=h.find(".selector");g=h.find("ul");r=j.map(function(){var v=a(this).attr("class")?a(this).attr("class"):"";return"<li class='"+v+"'>"+a(this).html()+"</li>"}).get().join("");g.append(r);f=h.prepend('<a href="#" class="current">'+(l.html()||"")+"</a>").find(".current");n.after(h).addClass("hidden-field")}else{r=j.map(function(){return"<li>"+a(this).html()+"</li>"}).get().join("");g.html("").append(r)}u.assign_id(n,h);h.toggleClass("disabled",n.is(":disabled"));i=g.find("li");u.cache[h.data("id")]=i.length;j.each(function(v){if(this.selected){i.eq(v).addClass("selected");if(f){f.html(a(this).html())}}if(a(this).is(":disabled")){i.eq(v).addClass("disabled")}});if(!h.is(".small, .medium, .large, .expand")){h.addClass("open");var u=Foundation.libs.forms;u.hidden_fix.adjust(g);s=(u.outerWidth(i)>s)?u.outerWidth(i):s;Foundation.libs.forms.hidden_fix.reset();h.removeClass("open")}},assign_id:function(g,f){var h=[+new Date(),Foundation.random_str(5)].join("-");g.attr("data-id",h);f.attr("data-id",h)},refresh_custom_select:function(j,l){var n=this;var m=0,g=j.next(),i=j.find("option"),f=g.find("ul"),h=g.find("li");if(i.length!==this.cache[g.data("id")]||l){f.html("");var k="";i.each(function(){var o=a(this),p=o.html(),q=this.selected;k+='<li class="'+(q?" selected ":"")+(o.is(":disabled")?" disabled ":"")+'">'+p+"</li>";if(q){g.find(".current").html(p)}});f.html(k);g.removeAttr("style");f.removeAttr("style");g.find("li").each(function(){g.addClass("open");if(n.outerWidth(a(this))>m){m=n.outerWidth(a(this))}g.removeClass("open")});h=g.find("li");this.cache[g.data("id")]=h.length}},refresh_custom_selection:function(f){var g=a("option:selected",f).text();a("a.current",f.next()).text(g)},toggle_checkbox:function(f){var g=f.prev(),h=g[0];if(false===g.is(":disabled")){h.checked=((h.checked)?false:true);f.toggleClass("checked");g.trigger("change")}},toggle_radio:function(f){var h=f.prev(),g=h.closest("form.custom"),i=h[0];if(false===h.is(":disabled")){g.find('input[type="radio"][name="'+this.escape(h.attr("name"))+'"]').next().not(f).removeClass("checked");if(!f.hasClass("checked")){f.toggleClass("checked")}i.checked=f.hasClass("checked");h.trigger("change")}},escape:function(f){if(!f){return""}return f.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},hidden_fix:{tmp:[],hidden:null,adjust:function(f){var g=this;g.hidden=f.parents();g.hidden=g.hidden.add(f).filter(":hidden");g.hidden.each(function(){var h=a(this);g.tmp.push(h.attr("style"));h.css({visibility:"hidden",display:"block"})})},reset:function(){var f=this;f.hidden.each(function(j){var g=a(this),h=f.tmp[j];if(h===d){g.removeAttr("style")}else{g.attr("style",h)}});f.tmp=[];f.hidden=null}},off:function(){a(this.scope).off(".fndtn.forms")},reflow:function(){}};var c=function(f,g){var f=f.prev();while(f.length){if(f.is(g)){return f}f=f.prev()}return a()}}(Foundation.zj,this,this.document));(function(a,d,b,c){Foundation.libs.interchange={name:"interchange",version:"4.2.4",cache:{},images_loaded:false,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(e,g){if(/IMG/.test(e[0].nodeName)){var f=e[0].src;if(new RegExp(g,"i").test(f)){return}e[0].src=g;return e.trigger("replace",[e[0].src,f])}}}},init:function(g,e,f){Foundation.inherit(this,"throttle");if(typeof e==="object"){a.extend(true,this.settings,e)}this.events();this.images();if(typeof e!=="string"){return this.settings.init}else{return this[e].call(this,f)}},events:function(){var e=this;a(d).on("resize.fndtn.interchange",e.throttle(function(){e.resize.call(e)},50))},resize:function(){var e=this.cache;if(!this.images_loaded){setTimeout(a.proxy(this.resize,this),50);return}for(var g in e){if(e.hasOwnProperty(g)){var f=this.results(g,e[g]);if(f){this.settings.directives[f.scenario[1]](f.el,f.scenario[0])}}}},results:function(l,k){var e=k.length;if(e>0){var f=a('[data-uuid="'+l+'"]');for(var g=e-1;g>=0;g--){var h,j=k[g][2];if(this.settings.named_queries.hasOwnProperty(j)){h=matchMedia(this.settings.named_queries[j])}else{h=matchMedia(j)}if(h.matches){return{el:f,scenario:k[g]}}}}return false},images:function(e){if(typeof this.cached_images==="undefined"||e){return this.update_images()}return this.cached_images},update_images:function(){var h=b.getElementsByTagName("img"),e=h.length,j=0,f="data-"+this.settings.load_attr;this.cached_images=[];this.images_loaded=false;for(var g=e-1;g>=0;g--){this.loaded(a(h[g]),function(i){j++;if(i){var k=i.getAttribute(f)||"";if(k.length>0){this.cached_images.push(i)}}if(j===e){this.images_loaded=true;this.enhance()}}.bind(this))}return"deferred"},loaded:function(g,f){function h(){f(g[0])}function e(){this.one("load",h);if(/MSIE (\d+\.\d+);/.test(navigator.userAgent)){var j=this.attr("src"),i=j.match(/\?/)?"&":"?";i+="random="+(new Date()).getTime();this.attr("src",j+i)}}if(!g.attr("src")){h();return}if(g[0].complete||g[0].readyState===4){h()}else{e.call(g)}},enhance:function(){var e=this.images().length;for(var f=e-1;f>=0;f--){this._object(a(this.images()[f]))}return a(d).trigger("resize")},parse_params:function(g,e,f){return[this.trim(g),this.convert_directive(e),this.trim(f)]},convert_directive:function(e){var f=this.trim(e);if(f.length>0){return f}return"replace"},_object:function(g){var k=this.parse_data_attr(g),l=[],f=k.length;if(f>0){for(var h=f-1;h>=0;h--){var m=k[h].split(/\((.*?)(\))$/);if(m.length>1){var e=m[0].split(","),j=this.parse_params(e[0],e[1],m[1]);l.push(j)}}}return this.store(g,l)},uuid:function(g){var e=g||"-";function f(){return(((1+Math.random())*65536)|0).toString(16).substring(1)}return(f()+f()+e+f()+e+f()+e+f()+e+f()+f()+f())},store:function(f,g){var h=this.uuid(),e=f.data("uuid");if(e){return this.cache[e]}f.attr("data-uuid",h);return this.cache[h]=g},trim:function(e){if(typeof e==="string"){return a.trim(e)}return e},parse_data_attr:function(f){var j=f.data(this.settings.load_attr).split(/\[(.*?)\]/),e=j.length,h=[];for(var g=e-1;g>=0;g--){if(j[g].replace(/[\W\d]+/,"").length>4){h.push(j[g])}}return h},reflow:function(){this.images(true)}}}(Foundation.zj,this,this.document));(function(a,i,b,h){var d=function(){};var e=function(n,s){if(n.hasClass(s.slides_container_class)){return this}var r=this,m,t=n,q,l,v,o=0,k,u,p=false,j=false;t.children().first().addClass(s.active_slide_class);r.update_slide_number=function(w){if(s.slide_number){q.find("span:first").text(parseInt(w)+1);q.find("span:last").text(t.children().length)}if(s.bullets){l.children().removeClass(s.bullets_active_class);a(l.children().get(w)).addClass(s.bullets_active_class)}};r.update_active_link=function(w){var x=a('a[data-orbit-link="'+t.children().eq(w).attr("data-orbit-slide")+'"]');x.parents("ul").find("[data-orbit-link]").removeClass(s.bullets_active_class);x.addClass(s.bullets_active_class)};r.build_markup=function(){t.wrap('<div class="'+s.container_class+'"></div>');m=t.parent();t.addClass(s.slides_container_class);if(s.navigation_arrows){m.append(a('<a href="#"><span></span></a>').addClass(s.prev_class));m.append(a('<a href="#"><span></span></a>').addClass(s.next_class))}if(s.timer){v=a("<div>").addClass(s.timer_container_class);v.append("<span>");v.append(a("<div>").addClass(s.timer_progress_class));v.addClass(s.timer_paused_class);m.append(v)}if(s.slide_number){q=a("<div>").addClass(s.slide_number_class);q.append("<span></span> "+s.slide_number_text+" <span></span>");m.append(q)}if(s.bullets){l=a("<ol>").addClass(s.bullets_container_class);m.append(l);t.children().each(function(y,x){var w=a("<li>").attr("data-orbit-slide",y);l.append(w)})}if(s.stack_on_small){m.addClass(s.stack_on_small_class)}r.update_slide_number(0);r.update_active_link(0)};r._goto=function(A,D){if(A===o){return false}if(typeof u==="object"){u.restart()}var B=t.children();var y="next";p=true;if(A<o){y="prev"}if(A>=B.length){A=0}else{if(A<0){A=B.length-1}}var x=a(B.get(o));var z=a(B.get(A));x.css("zIndex",2);x.removeClass(s.active_slide_class);z.css("zIndex",4).addClass(s.active_slide_class);t.trigger("orbit:before-slide-change");s.before_slide_change();r.update_active_link(A);var w=function(){var E=function(){o=A;p=false;if(D===true){u=r.create_timer();u.start()}r.update_slide_number(o);t.trigger("orbit:after-slide-change",[{slide_number:o,total_slides:B.length}]);s.after_slide_change(o,B.length)};if(t.height()!=z.height()&&s.variable_height){t.animate({height:z.height()},250,"linear",E)}else{E()}};if(B.length===1){w();return false}var C=function(){if(y==="next"){k.next(x,z,w)}if(y==="prev"){k.prev(x,z,w)}};if(z.height()>t.height()&&s.variable_height){t.animate({height:z.height()},250,"linear",C)}else{C()}};r.next=function(w){w.stopImmediatePropagation();w.preventDefault();r._goto(o+1)};r.prev=function(w){w.stopImmediatePropagation();w.preventDefault();r._goto(o-1)};r.link_custom=function(w){w.preventDefault();var x=a(this).attr("data-orbit-link");if((typeof x==="string")&&(x=a.trim(x))!=""){var y=m.find("[data-orbit-slide="+x+"]");if(y.index()!=-1){r._goto(y.index())}}};r.link_bullet=function(w){var x=a(this).attr("data-orbit-slide");if((typeof x==="string")&&(x=a.trim(x))!=""){r._goto(parseInt(x))}};r.timer_callback=function(){r._goto(o+1,true)};r.compute_dimensions=function(){var w=a(t.children().get(o));var x=w.height();if(!s.variable_height){t.children().each(function(){if(a(this).height()>x){x=a(this).height()}})}t.height(x)};r.create_timer=function(){var w=new g(m.find("."+s.timer_container_class),s,r.timer_callback);return w};r.stop_timer=function(){if(typeof u==="object"){u.stop()}};r.toggle_timer=function(){var w=m.find("."+s.timer_container_class);if(w.hasClass(s.timer_paused_class)){if(typeof u==="undefined"){u=r.create_timer()}u.start()}else{if(typeof u==="object"){u.stop()}}};r.init=function(){r.build_markup();if(s.timer){u=r.create_timer();u.start()}k=new c(s,t);if(s.animation==="slide"){k=new f(s,t)}m.on("click","."+s.next_class,r.next);m.on("click","."+s.prev_class,r.prev);m.on("click","[data-orbit-slide]",r.link_bullet);m.on("click",r.toggle_timer);if(s.swipe){m.on("touchstart.fndtn.orbit",function(x){if(!x.touches){x=x.originalEvent}var w={start_page_x:x.touches[0].pageX,start_page_y:x.touches[0].pageY,start_time:(new Date()).getTime(),delta_x:0,is_scrolling:h};m.data("swipe-transition",w);x.stopPropagation()}).on("touchmove.fndtn.orbit",function(y){if(!y.touches){y=y.originalEvent}if(y.touches.length>1||y.scale&&y.scale!==1){return}var w=m.data("swipe-transition");if(typeof w==="undefined"){w={}}w.delta_x=y.touches[0].pageX-w.start_page_x;if(typeof w.is_scrolling==="undefined"){w.is_scrolling=!!(w.is_scrolling||Math.abs(w.delta_x)<Math.abs(y.touches[0].pageY-w.start_page_y))}if(!w.is_scrolling&&!w.active){y.preventDefault();var x=(w.delta_x<0)?(o+1):(o-1);w.active=true;r._goto(x)}}).on("touchend.fndtn.orbit",function(w){m.data("swipe-transition",{});w.stopPropagation()})}m.on("mouseenter.fndtn.orbit",function(w){if(s.timer&&s.pause_on_hover){r.stop_timer()}}).on("mouseleave.fndtn.orbit",function(w){if(s.timer&&s.resume_on_mouseout){u.start()}});a(b).on("click","[data-orbit-link]",r.link_custom);a(i).on("resize",r.compute_dimensions);a(i).on("load",r.compute_dimensions);a(i).on("load",function(){m.prev(".preloader").css("display","none")});t.trigger("orbit:ready")};r.init()};var g=function(l,p,j){var o=this,k=p.timer_speed,n=l.find("."+p.timer_progress_class),q,r,m=-1;this.update_progress=function(t){var s=n.clone();s.attr("style","");s.css("width",t+"%");n.replaceWith(s);n=s};this.restart=function(){clearTimeout(r);l.addClass(p.timer_paused_class);m=-1;o.update_progress(0)};this.start=function(){if(!l.hasClass(p.timer_paused_class)){return true}m=(m===-1)?k:m;l.removeClass(p.timer_paused_class);q=new Date().getTime();n.animate({width:"100%"},m,"linear");r=setTimeout(function(){o.restart();j()},m);l.trigger("orbit:timer-started")};this.stop=function(){if(l.hasClass(p.timer_paused_class)){return true}clearTimeout(r);l.addClass(p.timer_paused_class);var s=new Date().getTime();m=m-(s-q);var t=100-((m/k)*100);o.update_progress(t);l.trigger("orbit:timer-stopped")}};var f=function(o,k){var l=o.animation_speed;var m=(a("html[dir=rtl]").length===1);var n=m?"marginRight":"marginLeft";var j={};j[n]="0%";this.next=function(q,r,p){r.animate(j,l,"linear",function(){q.css(n,"100%");p()})};this.prev=function(q,r,p){r.css(n,"-100%");r.animate(j,l,"linear",function(){q.css(n,"100%");p()})}};var c=function(n,j){var k=n.animation_speed;var l=(a("html[dir=rtl]").length===1);var m=l?"marginRight":"marginLeft";this.next=function(p,q,o){q.css({margin:"0%",opacity:"0.01"});q.animate({opacity:"1"},k,"linear",function(){p.css("margin","100%");o()})};this.prev=function(p,q,o){q.css({margin:"0%",opacity:"0.01"});q.animate({opacity:"1"},k,"linear",function(){p.css("margin","100%");o()})}};Foundation.libs=Foundation.libs||{};Foundation.libs.orbit={name:"orbit",version:"4.3.2",settings:{animation:"slide",timer_speed:10000,pause_on_hover:true,resume_on_mouseout:false,animation_speed:500,stack_on_small:false,navigation_arrows:true,slide_number:true,slide_number_text:"of",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",bullets:true,timer:true,variable_height:false,swipe:true,before_slide_change:d,after_slide_change:d},init:function(n,k,l){var o=this;Foundation.inherit(o,"data_options");if(typeof k==="object"){a.extend(true,o.settings,k)}if(a(n).is("[data-orbit]")){var j=a(n);var m=o.data_options(j);new e(j,a.extend({},o.settings,m))}a("[data-orbit]",n).each(function(r,q){var p=a(q);var s=o.data_options(p);new e(p,a.extend({},o.settings,s))})}}}(Foundation.zj,this,this.document));(function(c){function a(f,g,h){if(f.addEventListener){return f.addEventListener(g,h,false)}if(f.attachEvent){return f.attachEvent("on"+g,h)}}function d(f,h){var g,j;for(g=0,j=f.length;g<j;g++){if(f[g]===h){return true}}return false}function e(f,g){var h;if(f.createTextRange){h=f.createTextRange();h.move("character",g);h.select()}else{if(f.selectionStart){f.focus();f.setSelectionRange(g,g)}}}function b(g,h){try{g.type=h;return true}catch(f){return false}}c.Placeholders={Utils:{addEventListener:a,inArray:d,moveCaret:e,changeType:b}}}(this));(function(o){var S=["text","search","url","tel","email","password","number","textarea"],h=[27,33,34,35,36,37,38,39,40,8,46],J="#ccc",H="placeholdersjs",j=new RegExp("(?:^|\\s)"+H+"(?!\\S)"),u,P,b="data-placeholder-value",a="data-placeholder-active",e="data-placeholder-type",d="data-placeholder-submit",c="data-placeholder-bound",f="data-placeholder-focus",g="data-placeholder-live",O=document.createElement("input"),q=document.getElementsByTagName("head")[0],K=document.documentElement,I=o.Placeholders,R=I.Utils,r,x,v,M,N,G,Q,n,l,w,t;function F(){}function s(i){var T;if(i.value===i.getAttribute(b)&&i.getAttribute(a)==="true"){i.setAttribute(a,"false");i.value="";i.className=i.className.replace(j,"");T=i.getAttribute(e);if(T){i.type=T}return true}return false}function L(i){var T,U=i.getAttribute(b);if(i.value===""&&U){i.setAttribute(a,"true");i.value=U;i.className+=" "+H;T=i.getAttribute(e);if(T){i.type="text"}else{if(i.type==="password"){if(R.changeType(i,"text")){i.setAttribute(e,"password")}}}return true}return false}function p(Z,T){var V,W,U,Y,X;if(Z&&Z.getAttribute(b)){T(Z)}else{V=Z?Z.getElementsByTagName("input"):u;W=Z?Z.getElementsByTagName("textarea"):P;for(X=0,Y=V.length+W.length;X<Y;X++){U=X<V.length?V[X]:W[X-V.length];T(U)}}}function k(i){p(i,s)}function m(i){p(i,L)}function A(i){return function(){if(r&&i.value===i.getAttribute(b)&&i.getAttribute(a)==="true"){R.moveCaret(i,0)}else{s(i)}}}function y(i){return function(){L(i)}}function B(i){return function(T){v=i.value;if(i.getAttribute(a)==="true"){if(v===i.getAttribute(b)&&R.inArray(h,T.keyCode)){if(T.preventDefault){T.preventDefault()}return false}}}}function C(i){return function(){var T;if(i.getAttribute(a)==="true"&&i.value!==v){i.className=i.className.replace(j,"");i.value=i.value.replace(i.getAttribute(b),"");i.setAttribute(a,false);T=i.getAttribute(e);if(T){i.type=T}}if(i.value===""){i.blur();R.moveCaret(i,0)}}}function z(i){return function(){if(i===document.activeElement&&i.value===i.getAttribute(b)&&i.getAttribute(a)==="true"){R.moveCaret(i,0)}}}function D(i){return function(){k(i)}}function E(i){if(i.form){n=i.form;if(!n.getAttribute(d)){R.addEventListener(n,"submit",D(n));n.setAttribute(d,"true")}}R.addEventListener(i,"focus",A(i));R.addEventListener(i,"blur",y(i));if(r){R.addEventListener(i,"keydown",B(i));R.addEventListener(i,"keyup",C(i));R.addEventListener(i,"click",z(i))}i.setAttribute(c,"true");i.setAttribute(b,G);L(i)}I.nativeSupport=O.placeholder!==void 0;if(!I.nativeSupport){u=document.getElementsByTagName("input");P=document.getElementsByTagName("textarea");r=K.getAttribute(f)==="false";x=K.getAttribute(g)!=="false";M=document.createElement("style");M.type="text/css";N=document.createTextNode("."+H+" { color:"+J+"; }");if(M.styleSheet){M.styleSheet.cssText=N.nodeValue}else{M.appendChild(N)}q.insertBefore(M,q.firstChild);for(t=0,w=u.length+P.length;t<w;t++){l=t<u.length?u[t]:P[t-u.length];G=l.attributes.placeholder;if(G){G=G.nodeValue;if(G&&R.inArray(S,l.type)){E(l)}}}Q=setInterval(function(){for(t=0,w=u.length+P.length;t<w;t++){l=t<u.length?u[t]:P[t-u.length];G=l.attributes.placeholder;if(G){G=G.nodeValue;if(G&&R.inArray(S,l.type)){if(!l.getAttribute(c)){E(l)}if(G!==l.getAttribute(b)||(l.type==="password"&&!l.getAttribute(e))){if(l.type==="password"&&!l.getAttribute(e)&&R.changeType(l,"text")){l.setAttribute(e,"password")}if(l.value===l.getAttribute(b)){l.value=G}l.setAttribute(b,G)}}}}if(!x){clearInterval(Q)}},100)}I.disable=I.nativeSupport?F:k;I.enable=I.nativeSupport?F:m}(this));(function(a,d,b,c){Foundation.libs.reveal={name:"reveal",version:"4.3.2",locked:false,settings:{animation:"fadeAndPop",animationSpeed:250,closeOnBackgroundClick:true,closeOnEsc:true,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(g,e,f){Foundation.inherit(this,"data_options delay");if(typeof e==="object"){a.extend(true,this.settings,e)}else{if(typeof f!=="undefined"){a.extend(true,this.settings,f)}}if(typeof e!=="string"){this.events();return this.settings.init}else{return this[e].call(this,f)}},events:function(){var e=this;a(this.scope).off(".fndtn.reveal").on("click.fndtn.reveal","[data-reveal-id]",function(g){g.preventDefault();if(!e.locked){var h=a(this),f=h.data("reveal-ajax");e.locked=true;if(typeof f==="undefined"){e.open.call(e,h)}else{var i=f===true?h.attr("href"):f;e.open.call(e,h,{url:i})}}}).on("click.fndtn.reveal touchend",this.close_targets(),function(g){g.preventDefault();if(!e.locked){var h=a.extend({},e.settings,e.data_options(a(".reveal-modal.open"))),f=a(g.target)[0]===a("."+h.bgClass)[0];if(f&&!h.closeOnBackgroundClick){return}e.locked=true;e.close.call(e,f?a(".reveal-modal.open"):a(this).closest(".reveal-modal"))}});if(a(this.scope).hasClass("reveal-modal")){a(this.scope).on("open.fndtn.reveal",this.settings.open).on("opened.fndtn.reveal",this.settings.opened).on("opened.fndtn.reveal",this.open_video).on("close.fndtn.reveal",this.settings.close).on("closed.fndtn.reveal",this.settings.closed).on("closed.fndtn.reveal",this.close_video)}else{a(this.scope).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(f){var g=a(".reveal-modal.open"),h=a.extend({},e.settings,e.data_options(g));if(f.which===27&&h.closeOnEsc){g.foundation("reveal","close")}});return true},open:function(j,e){if(j){if(typeof j.selector!=="undefined"){var f=a("#"+j.data("reveal-id"))}else{var f=a(this.scope);e=j}}else{var f=a(this.scope)}if(!f.hasClass("open")){var h=a(".reveal-modal.open");if(typeof f.data("css-top")==="undefined"){f.data("css-top",parseInt(f.css("top"),10)).data("offset",this.cache_offset(f))}f.trigger("open");if(h.length<1){this.toggle_bg()}if(typeof e==="undefined"||!e.url){this.hide(h,this.settings.css.close);this.show(f,this.settings.css.open)}else{var i=this,g=typeof e.success!=="undefined"?e.success:null;a.extend(e,{success:function(k,m,l){if(a.isFunction(g)){g(k,m,l)}f.html(k);a(f).foundation("section","reflow");i.hide(h,i.settings.css.close);i.show(f,i.settings.css.open)}});a.ajax(e)}}},close:function(e){var e=e&&e.length?e:a(this.scope),f=a(".reveal-modal.open");if(f.length>0){this.locked=true;e.trigger("close");this.toggle_bg();this.hide(f,this.settings.css.close)}},close_targets:function(){var e="."+this.settings.dismissModalClass;if(this.settings.closeOnBackgroundClick){return e+", ."+this.settings.bgClass}return e},toggle_bg:function(){if(a("."+this.settings.bgClass).length===0){this.settings.bg=a("<div />",{"class":this.settings.bgClass}).appendTo("body")}if(this.settings.bg.filter(":visible").length>0){this.hide(this.settings.bg)}else{this.show(this.settings.bg)}},show:function(f,e){if(e){if(f.parent("body").length===0){var h=f.wrap('<div style="display: none;" />').parent();f.on("closed.fndtn.reveal.wrapped",function(){f.detach().appendTo(h);f.unwrap().unbind("closed.fndtn.reveal.wrapped")});f.detach().appendTo("body")}if(/pop/i.test(this.settings.animation)){e.top=a(d).scrollTop()-f.data("offset")+"px";var g={top:a(d).scrollTop()+f.data("css-top")+"px",opacity:1};return this.delay(function(){return f.css(e).animate(g,this.settings.animationSpeed,"linear",function(){this.locked=false;f.trigger("opened")}.bind(this)).addClass("open")}.bind(this),this.settings.animationSpeed/2)}if(/fade/i.test(this.settings.animation)){var g={opacity:1};return this.delay(function(){return f.css(e).animate(g,this.settings.animationSpeed,"linear",function(){this.locked=false;f.trigger("opened")}.bind(this)).addClass("open")}.bind(this),this.settings.animationSpeed/2)}return f.css(e).show().css({opacity:1}).addClass("open").trigger("opened")}if(/fade/i.test(this.settings.animation)){return f.fadeIn(this.settings.animationSpeed/2)}return f.show()},hide:function(f,e){if(e){if(/pop/i.test(this.settings.animation)){var g={top:-a(d).scrollTop()-f.data("offset")+"px",opacity:0};return this.delay(function(){return f.animate(g,this.settings.animationSpeed,"linear",function(){this.locked=false;f.css(e).trigger("closed")}.bind(this)).removeClass("open")}.bind(this),this.settings.animationSpeed/2)}if(/fade/i.test(this.settings.animation)){var g={opacity:0};return this.delay(function(){return f.animate(g,this.settings.animationSpeed,"linear",function(){this.locked=false;f.css(e).trigger("closed")}.bind(this)).removeClass("open")}.bind(this),this.settings.animationSpeed/2)}return f.hide().css(e).removeClass("open").trigger("closed")}if(/fade/i.test(this.settings.animation)){return f.fadeOut(this.settings.animationSpeed/2)}return f.hide()},close_video:function(f){var h=a(this).find(".flex-video"),g=h.find("iframe");if(g.length>0){g.attr("data-src",g[0].src);g.attr("src","about:blank");h.hide()}},open_video:function(g){var j=a(this).find(".flex-video"),h=j.find("iframe");if(h.length>0){var f=h.attr("data-src");if(typeof f==="string"){h[0].src=h.attr("data-src")}else{var i=h[0].src;h[0].src=c;h[0].src=i}j.show()}},cache_offset:function(e){var f=e.show().height()+parseInt(e.css("top"),10);e.hide();return f},off:function(){a(this.scope).off(".fndtn.reveal")},reflow:function(){}}}(Foundation.zj,this,this.document));(function(a,c,b){Foundation.libs.section={name:"section",version:"4.3.2",settings:{deep_linking:false,small_breakpoint:768,one_up:true,multi_expand:false,section_selector:"[data-section]",region_selector:"section, .section, [data-section-region]",title_selector:".title, [data-section-title]",resized_data_attr:"data-section-resized",small_style_data_attr:"data-section-small-style",content_selector:".content, [data-section-content]",nav_selector:'[data-section="vertical-nav"], [data-section="horizontal-nav"]',active_class:"active",callback:function(){}},init:function(f,d,e){var g=this;Foundation.inherit(this,"throttle data_options position_right offset_right");if(typeof d==="object"){a.extend(true,g.settings,d)}if(typeof d!=="string"){this.events();return true}else{return this[d].call(this,e)}},events:function(){var n=this;var d=[],m=n.settings.section_selector,l=n.settings.region_selector.split(","),p=n.settings.title_selector.split(",");for(var e=0,g=l.length;e<g;e++){var k=l[e];for(var f=0,h=p.length;f<h;f++){var o=m+">"+k+">"+p[f];d.push(o+" a");d.push(o)}}a(n.scope).on("click.fndtn.section",d.join(","),function(i){var j=a(this).closest(n.settings.title_selector);n.close_navs(j);if(j.siblings(n.settings.content_selector).length>0){n.toggle_active.call(j[0],i)}});a(c).on("resize.fndtn.section",n.throttle(function(){n.resize()},30)).on("hashchange.fndtn.section",n.set_active_from_hash);a(b).on("click.fndtn.section",function(i){if(i.isPropagationStopped&&i.isPropagationStopped()){return}if(i.target===b){return}n.close_navs(a(i.target).closest(n.settings.title_selector))});a(c).triggerHandler("resize.fndtn.section");a(c).triggerHandler("hashchange.fndtn.section")},close_navs:function(d){var g=Foundation.libs.section,e=a(g.settings.nav_selector).filter(function(){return !a.extend({},g.settings,g.data_options(a(this))).one_up});if(d.length>0){var f=d.parent().parent();if(g.is_horizontal_nav(f)||g.is_vertical_nav(f)){e=e.filter(function(){return this!==f[0]})}}e.children(g.settings.region_selector).removeClass(g.settings.active_class)},toggle_active:function(g){var d=a(this),k=Foundation.libs.section,i=d.parent(),f=d.siblings(k.settings.content_selector),j=i.parent(),l=a.extend({},k.settings,k.data_options(j)),h=j.children(k.settings.region_selector).filter("."+k.settings.active_class);if(!l.deep_linking&&f.length>0){g.preventDefault()}g.stopPropagation();if(!i.hasClass(k.settings.active_class)){if(!k.is_accordion(j)||(k.is_accordion(j)&&!k.settings.multi_expand)){h.removeClass(k.settings.active_class);h.trigger("closed.fndtn.section")}i.addClass(k.settings.active_class);k.resize(i.find(k.settings.section_selector).not("["+k.settings.resized_data_attr+"]"),true);i.trigger("opened.fndtn.section")}else{if(i.hasClass(k.settings.active_class)&&k.is_accordion(j)||!l.one_up&&(k.small(j)||k.is_vertical_nav(j)||k.is_horizontal_nav(j)||k.is_accordion(j))){i.removeClass(k.settings.active_class);i.trigger("closed.fndtn.section")}}l.callback(j)},check_resize_timer:null,resize:function(g,d){var h=Foundation.libs.section,f=a(h.settings.section_selector),e=h.small(f),i=function(k,j){return !h.is_accordion(k)&&!k.is("["+h.settings.resized_data_attr+"]")&&(!e||h.is_horizontal_tabs(k))&&j===(k.css("display")==="none"||!k.parent().is(":visible"))};g=g||a(h.settings.section_selector);clearTimeout(h.check_resize_timer);if(!e){g.removeAttr(h.settings.small_style_data_attr)}g.filter(function(){return i(a(this),false)}).each(function(){var n=a(this),m=n.children(h.settings.region_selector),p=m.children(h.settings.title_selector),j=m.children(h.settings.content_selector),q=0;if(d&&n.children(h.settings.region_selector).filter("."+h.settings.active_class).length==0){var o=a.extend({},h.settings,h.data_options(n));if(!o.deep_linking&&(o.one_up||!h.is_horizontal_nav(n)&&!h.is_vertical_nav(n)&&!h.is_accordion(n))){m.filter(":visible").first().addClass(h.settings.active_class)}}if(h.is_horizontal_tabs(n)||h.is_auto(n)){var t=0;p.each(function(){var u=a(this);if(u.is(":visible")){u.css(!h.rtl?"left":"right",t);var v=parseInt(u.css("border-"+(h.rtl?"left":"right")+"-width"),10);if(v.toString()==="Nan"){v=0}t+=h.outerWidth(u)-v;q=Math.max(q,h.outerHeight(u))}});p.css("height",q);m.each(function(){var v=a(this),w=v.children(h.settings.content_selector),u=parseInt(w.css("border-top-width"),10);if(u.toString()==="Nan"){u=0}v.css("padding-top",q-u)});n.css("min-height",q)}else{if(h.is_horizontal_nav(n)){var k=true;p.each(function(){q=Math.max(q,h.outerHeight(a(this)))});m.each(function(){var u=a(this);u.css("margin-left","-"+(k?n:u.children(h.settings.title_selector)).css("border-left-width"));k=false});m.css("margin-top","-"+n.css("border-top-width"));p.css("height",q);j.css("top",q);n.css("min-height",q)}else{if(h.is_vertical_tabs(n)){var s=0;p.each(function(){var u=a(this);if(u.is(":visible")){u.css("top",s);var v=parseInt(u.css("border-top-width"),10);if(v.toString()==="Nan"){v=0}s+=h.outerHeight(u)-v}});j.css("min-height",s+1)}else{if(h.is_vertical_nav(n)){var r=0,l=true;p.each(function(){r=Math.max(r,h.outerWidth(a(this)))});m.each(function(){var u=a(this);u.css("margin-top","-"+(l?n:u.children(h.settings.title_selector)).css("border-top-width"));l=false});p.css("width",r);j.css(!h.rtl?"left":"right",r);n.css("width",r)}}}}n.attr(h.settings.resized_data_attr,true)});if(a(h.settings.section_selector).filter(function(){return i(a(this),true)}).length>0){h.check_resize_timer=setTimeout(function(){h.resize(g.filter(function(){return i(a(this),false)}),true)},700)}if(e){g.attr(h.settings.small_style_data_attr,true)}},is_vertical_nav:function(d){return/vertical-nav/i.test(d.data("section"))},is_horizontal_nav:function(d){return/horizontal-nav/i.test(d.data("section"))},is_accordion:function(d){return/accordion/i.test(d.data("section"))},is_horizontal_tabs:function(d){return/^tabs$/i.test(d.data("section"))},is_vertical_tabs:function(d){return/vertical-tabs/i.test(d.data("section"))},is_auto:function(e){var d=e.data("section");return d===""||/auto/i.test(d)},set_active_from_hash:function(){var g=Foundation.libs.section,d=c.location.hash.substring(1),e=a(g.settings.section_selector);var f;e.each(function(){var i=a(this),h=i.children(g.settings.region_selector);h.each(function(){var k=a(this),j=k.children(g.settings.content_selector).data("slug");if(new RegExp(j,"i").test(d)){f=i;return false}});if(f!=null){return false}});if(f!=null){e.each(function(){if(f==a(this)){var i=a(this),l=a.extend({},g.settings,g.data_options(i)),h=i.children(g.settings.region_selector),k=l.deep_linking&&d.length>0,j=false;h.each(function(){var n=a(this);if(j){n.removeClass(g.settings.active_class)}else{if(k){var m=n.children(g.settings.content_selector).data("slug");if(m&&new RegExp(m,"i").test(d)){if(!n.hasClass(g.settings.active_class)){n.addClass(g.settings.active_class)}j=true}else{n.removeClass(g.settings.active_class)}}else{if(n.hasClass(g.settings.active_class)){j=true}}}});if(!j&&(l.one_up||!g.is_horizontal_nav(i)&&!g.is_vertical_nav(i)&&!g.is_accordion(i))){h.filter(":visible").first().addClass(g.settings.active_class)}}})}},reflow:function(){var d=Foundation.libs.section;a(d.settings.section_selector).removeAttr(d.settings.resized_data_attr);d.throttle(function(){d.resize()},30)()},small:function(d){var e=a.extend({},this.settings,this.data_options(d));if(this.is_horizontal_tabs(d)){return false}if(d&&this.is_accordion(d)){return true}if(a("html").hasClass("lt-ie9")){return true}if(a("html").hasClass("ie8compat")){return true}return a(this.scope).width()<e.small_breakpoint},off:function(){a(this.scope).off(".fndtn.section");a(c).off(".fndtn.section");a(b).off(".fndtn.section")}};a.fn.reflow_section=function(d){var e=this,f=Foundation.libs.section;e.removeAttr(f.settings.resized_data_attr);f.throttle(function(){f.resize(e,d)},30)();return this}}(Foundation.zj,window,document));(function(a,d,b,c){Foundation.libs.tooltips={name:"tooltips",version:"4.3.2",settings:{selector:".has-tip",additionalInheritableClasses:[],tooltipClass:".tooltip",touchCloseText:"tap to close",appendTo:"body","disable-for-touch":false,tipTemplate:function(f,e){return'<span data-selector="'+f+'" class="'+Foundation.libs.tooltips.settings.tooltipClass.substring(1)+'">'+e+'<span class="nub"></span></span>'}},cache:{},init:function(g,e,f){Foundation.inherit(this,"data_options");var h=this;if(typeof e==="object"){a.extend(true,this.settings,e)}else{if(typeof f!=="undefined"){a.extend(true,this.settings,f)}}if(typeof e!=="string"){if(Modernizr.touch){a(this.scope).on("click.fndtn.tooltip touchstart.fndtn.tooltip touchend.fndtn.tooltip","[data-tooltip]",function(i){var j=a.extend({},h.settings,h.data_options(a(this)));if(!j["disable-for-touch"]){i.preventDefault();a(j.tooltipClass).hide();h.showOrCreateTip(a(this))}}).on("click.fndtn.tooltip touchstart.fndtn.tooltip touchend.fndtn.tooltip",this.settings.tooltipClass,function(i){i.preventDefault();a(this).fadeOut(150)})}else{a(this.scope).on("mouseenter.fndtn.tooltip mouseleave.fndtn.tooltip","[data-tooltip]",function(j){var i=a(this);if(/enter|over/i.test(j.type)){h.showOrCreateTip(i)}else{if(j.type==="mouseout"||j.type==="mouseleave"){h.hide(i)}}})}}else{return this[e].call(this,f)}},showOrCreateTip:function(e){var f=this.getTip(e);if(f&&f.length>0){return this.show(e)}return this.create(e)},getTip:function(e){var f=this.selector(e),g=null;if(f){g=a('span[data-selector="'+f+'"]'+this.settings.tooltipClass)}return(typeof g==="object")?g:false},selector:function(e){var g=e.attr("id"),f=e.attr("data-tooltip")||e.attr("data-selector");if((g&&g.length<1||!g)&&typeof f!="string"){f="tooltip"+Math.random().toString(36).substring(7);e.attr("data-selector",f)}return(g&&g.length>0)?g:f},create:function(e){var f=a(this.settings.tipTemplate(this.selector(e),a("<div></div>").html(e.attr("title")).html())),g=this.inheritable_classes(e);f.addClass(g).appendTo(this.settings.appendTo);if(Modernizr.touch){f.append('<span class="tap-to-close">'+this.settings.touchCloseText+"</span>")}e.removeAttr("title").attr("title","");this.show(e)},reposition:function(l,m,e){var n,h,i,j,f,k;m.css("visibility","hidden").show();n=l.data("width");h=m.children(".nub");i=this.outerHeight(h);j=this.outerHeight(h);k=function(q,s,r,o,p,t){return q.css({top:(s)?s:"auto",bottom:(o)?o:"auto",left:(p)?p:"auto",right:(r)?r:"auto",width:(t)?t:"auto"}).end()};k(m,(l.offset().top+this.outerHeight(l)+10),"auto","auto",l.offset().left,n);if(a(d).width()<767){k(m,(l.offset().top+this.outerHeight(l)+10),"auto","auto",12.5,a(this.scope).width());m.addClass("tip-override");k(h,-i,"auto","auto",l.offset().left)}else{var g=l.offset().left;if(Foundation.rtl){g=l.offset().left+l.offset().width-this.outerWidth(m)}k(m,(l.offset().top+this.outerHeight(l)+10),"auto","auto",g,n);m.removeClass("tip-override");if(e&&e.indexOf("tip-top")>-1){k(m,(l.offset().top-this.outerHeight(m)),"auto","auto",g,n).removeClass("tip-override")}else{if(e&&e.indexOf("tip-left")>-1){k(m,(l.offset().top+(this.outerHeight(l)/2)-i*2.5),"auto","auto",(l.offset().left-this.outerWidth(m)-i),n).removeClass("tip-override")}else{if(e&&e.indexOf("tip-right")>-1){k(m,(l.offset().top+(this.outerHeight(l)/2)-i*2.5),"auto","auto",(l.offset().left+this.outerWidth(l)+i),n).removeClass("tip-override")}}}}m.css("visibility","visible").hide()},inheritable_classes:function(h){var g=["tip-top","tip-left","tip-bottom","tip-right","noradius"].concat(this.settings.additionalInheritableClasses),e=h.attr("class"),f=e?a.map(e.split(" "),function(j,k){if(a.inArray(j,g)!==-1){return j}}).join(" "):"";return a.trim(f)},show:function(e){var f=this.getTip(e);this.reposition(e,f,e.attr("class"));f.fadeIn(150)},hide:function(e){var f=this.getTip(e);f.fadeOut(150)},reload:function(){var e=a(this);return(e.data("fndtn-tooltips"))?e.foundationTooltips("destroy").foundationTooltips("init"):e.foundationTooltips("init")},off:function(){a(this.scope).off(".fndtn.tooltip");a(this.settings.tooltipClass).each(function(e){a("[data-tooltip]").get(e).attr("title",a(this).text())}).remove()},reflow:function(){}}}(Foundation.zj,this,this.document));(function(a,d,b,c){Foundation.libs.topbar={name:"topbar",version:"4.3.2",settings:{index:0,stickyClass:"sticky",custom_back_text:true,back_text:"Back",is_hover:true,mobile_show_parent_link:false,scrolltop:true,init:false},init:function(g,e,f){Foundation.inherit(this,"data_options addCustomRule");var h=this;if(typeof e==="object"){a.extend(true,this.settings,e)}else{if(typeof f!=="undefined"){a.extend(true,this.settings,f)}}if(typeof e!=="string"){a(".top-bar, [data-topbar]").each(function(){a.extend(true,h.settings,h.data_options(a(this)));h.settings.$w=a(d);h.settings.$topbar=a(this);h.settings.$section=h.settings.$topbar.find("section");h.settings.$titlebar=h.settings.$topbar.children("ul").first();h.settings.$topbar.data("index",0);var j=h.settings.$topbar.parent();if(j.hasClass("fixed")||j.hasClass(h.settings.stickyClass)){h.settings.$topbar.data("height",h.outerHeight(j));h.settings.$topbar.data("stickyoffset",j.offset().top)}else{h.settings.$topbar.data("height",h.outerHeight(h.settings.$topbar))}var i=a("<div class='top-bar-js-breakpoint'/>").insertAfter(h.settings.$topbar);h.settings.breakPoint=i.width();i.remove();h.assemble();if(h.settings.is_hover){h.settings.$topbar.find(".has-dropdown").addClass("not-click")}h.addCustomRule(".f-topbar-fixed { padding-top: "+h.settings.$topbar.data("height")+"px }");if(h.settings.$topbar.parent().hasClass("fixed")){a("body").addClass("f-topbar-fixed")}});if(!h.settings.init){this.events()}return this.settings.init}else{return this[e].call(this,f)}},toggle:function(){var f=this;var g=a(".top-bar, [data-topbar]"),e=g.find("section, .section");if(f.breakpoint()){if(!f.rtl){e.css({left:"0%"});e.find(">.name").css({left:"100%"})}else{e.css({right:"0%"});e.find(">.name").css({right:"100%"})}e.find("li.moved").removeClass("moved");g.data("index",0);g.toggleClass("expanded").css("height","")}if(f.settings.scrolltop){if(!g.hasClass("expanded")){if(g.hasClass("fixed")){g.parent().addClass("fixed");g.removeClass("fixed");a("body").addClass("f-topbar-fixed")}}else{if(g.parent().hasClass("fixed")){if(f.settings.scrolltop){g.parent().removeClass("fixed");g.addClass("fixed");a("body").removeClass("f-topbar-fixed");d.scrollTo(0,0)}else{g.parent().removeClass("expanded")}}}}else{if(g.parent().hasClass(f.settings.stickyClass)){g.parent().addClass("fixed")}if(g.parent().hasClass("fixed")){if(!g.hasClass("expanded")){g.removeClass("fixed");g.parent().removeClass("expanded");f.updateStickyPositioning()}else{g.addClass("fixed");g.parent().addClass("expanded")}}}},timer:null,events:function(){var e=this;a(this.scope).off(".fndtn.topbar").on("click.fndtn.topbar",".top-bar .toggle-topbar, [data-topbar] .toggle-topbar",function(f){f.preventDefault();e.toggle()}).on("click.fndtn.topbar",".top-bar li.has-dropdown",function(f){var h=a(this),i=a(f.target),j=h.closest("[data-topbar], .top-bar"),g=j.data("topbar");if(i.data("revealId")){e.toggle();return}if(e.breakpoint()){return}if(e.settings.is_hover&&!Modernizr.touch){return}f.stopImmediatePropagation();if(i[0].nodeName==="A"&&i.parent().hasClass("has-dropdown")){f.preventDefault()}if(h.hasClass("hover")){h.removeClass("hover").find("li").removeClass("hover");h.parents("li.hover").removeClass("hover")}else{h.addClass("hover")}}).on("click.fndtn.topbar",".top-bar .has-dropdown>a, [data-topbar] .has-dropdown>a",function(i){if(e.breakpoint()&&a(d).width()!=e.settings.breakPoint){i.preventDefault();var g=a(this),k=g.closest(".top-bar, [data-topbar]"),j=k.find("section, .section"),h=g.next(".dropdown").outerHeight(),f=g.closest("li");k.data("index",k.data("index")+1);f.addClass("moved");if(!e.rtl){j.css({left:-(100*k.data("index"))+"%"});j.find(">.name").css({left:100*k.data("index")+"%"})}else{j.css({right:-(100*k.data("index"))+"%"});j.find(">.name").css({right:100*k.data("index")+"%"})}k.css("height",e.outerHeight(g.siblings("ul"),true)+e.settings.$topbar.data("height"))}});a(d).on("resize.fndtn.topbar",function(){if(typeof e.settings.$topbar==="undefined"){return}var g=e.settings.$topbar.parent("."+this.settings.stickyClass);var h;if(!e.breakpoint()){var f=e.settings.$topbar.hasClass("expanded");a(".top-bar, [data-topbar]").css("height","").removeClass("expanded").find("li").removeClass("hover");if(f){e.toggle()}}if(g.length>0){if(g.hasClass("fixed")){g.removeClass("fixed");h=g.offset().top;if(a(b.body).hasClass("f-topbar-fixed")){h-=e.settings.$topbar.data("height")}e.settings.$topbar.data("stickyoffset",h);g.addClass("fixed")}else{h=g.offset().top;e.settings.$topbar.data("stickyoffset",h)}}}.bind(this));a("body").on("click.fndtn.topbar",function(f){var g=a(f.target).closest("li").closest("li.hover");if(g.length>0){return}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(i){i.preventDefault();var h=a(this),k=h.closest(".top-bar, [data-topbar]"),j=k.find("section, .section"),f=h.closest("li.moved"),g=f.parent();k.data("index",k.data("index")-1);if(!e.rtl){j.css({left:-(100*k.data("index"))+"%"});j.find(">.name").css({left:100*k.data("index")+"%"})}else{j.css({right:-(100*k.data("index"))+"%"});j.find(">.name").css({right:100*k.data("index")+"%"})}if(k.data("index")===0){k.css("height","")}else{k.css("height",e.outerHeight(g,true)+e.settings.$topbar.data("height"))}setTimeout(function(){f.removeClass("moved")},300)})},breakpoint:function(){return a(b).width()<=this.settings.breakPoint||a("html").hasClass("lt-ie9")},assemble:function(){var e=this;this.settings.$section.detach();this.settings.$section.find(".has-dropdown>a").each(function(){var g=a(this),f=g.siblings(".dropdown"),i=g.attr("href");if(e.settings.mobile_show_parent_link&&i&&i.length>1){var h=a('<li class="title back js-generated"><h5><a href="#"></a></h5></li><li><a class="parent-link js-generated" href="'+i+'">'+g.text()+"</a></li>")}else{var h=a('<li class="title back js-generated"><h5><a href="#"></a></h5></li>')}if(e.settings.custom_back_text==true){h.find("h5>a").html(e.settings.back_text)}else{h.find("h5>a").html("&laquo; "+g.html())}f.prepend(h)});this.settings.$section.appendTo(this.settings.$topbar);this.sticky()},height:function(g){var f=0,e=this;g.find("> li").each(function(){f+=e.outerHeight(a(this),true)});return f},sticky:function(){var e=a(d),f=this;e.scroll(function(){f.updateStickyPositioning()})},updateStickyPositioning:function(){var g="."+this.settings.stickyClass;var e=a(d);if(a(g).length>0){var f=this.settings.$topbar.data("stickyoffset");if(!a(g).hasClass("expanded")){if(e.scrollTop()>(f)){if(!a(g).hasClass("fixed")){a(g).addClass("fixed");a("body").addClass("f-topbar-fixed")}}else{if(e.scrollTop()<=f){if(a(g).hasClass("fixed")){a(g).removeClass("fixed");a("body").removeClass("f-topbar-fixed")}}}}}},off:function(){a(this.scope).off(".fndtn.topbar");a(d).off(".fndtn.topbar")},reflow:function(){}}}(Foundation.zj,this,this.document));
/* jQuery UI - v1.10.3 - 2013-10-14
* http://jqueryui.com
* Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.position.js, jquery.ui.autocomplete.js, jquery.ui.menu.js, jquery.ui.slider.js
* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
(function(c,h){function d(n,j){var m,e,k,l=n.nodeName.toLowerCase();return"area"===l?(m=n.parentNode,e=m.name,n.href&&e&&"map"===m.nodeName.toLowerCase()?(k=c("img[usemap=#"+e+"]")[0],!!k&&f(k)):!1):(/input|select|textarea|button|object/.test(l)?!n.disabled:"a"===l?n.href||j:j)&&f(n)}function f(a){return c.expr.filters.visible(a)&&!c(a).parents().addBack().filter(function(){return"hidden"===c.css(this,"visibility")}).length}var g=0,b=/^ui-id-\d+$/;c.ui=c.ui||{},c.extend(c.ui,{version:"1.10.3",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),c.fn.extend({focus:function(a){return function(e,j){return"number"==typeof e?this.each(function(){var i=this;setTimeout(function(){c(i).focus(),j&&j.call(i)},e)}):a.apply(this,arguments)}}(c.fn.focus),scrollParent:function(){var a;return a=c.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(c.css(this,"position"))&&/(auto|scroll)/.test(c.css(this,"overflow")+c.css(this,"overflow-y")+c.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(c.css(this,"overflow")+c.css(this,"overflow-y")+c.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!a.length?c(document):a},zIndex:function(j){if(j!==h){return this.css("zIndex",j)}if(this.length){for(var k,l,e=c(this[0]);e.length&&e[0]!==document;){if(k=e.css("position"),("absolute"===k||"relative"===k||"fixed"===k)&&(l=parseInt(e.css("zIndex"),10),!isNaN(l)&&0!==l)){return l}e=e.parent()}}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++g)})},removeUniqueId:function(){return this.each(function(){b.test(this.id)&&c(this).removeAttr("id")})}}),c.extend(c.expr[":"],{data:c.expr.createPseudo?c.expr.createPseudo(function(a){return function(e){return !!c.data(e,a)}}):function(j,a,e){return !!c.data(j,e[3])},focusable:function(a){return d(a,!isNaN(c.attr(a,"tabindex")))},tabbable:function(i){var a=c.attr(i,"tabindex"),e=isNaN(a);return(e||a>=0)&&d(i,!e)}}),c("<a>").outerWidth(1).jquery||c.each(["Width","Height"],function(j,k){function p(r,a,o,q){return c.each(e,function(){a-=parseFloat(c.css(r,"padding"+this))||0,o&&(a-=parseFloat(c.css(r,"border"+this+"Width"))||0),q&&(a-=parseFloat(c.css(r,"margin"+this))||0)}),a}var e="Width"===k?["Left","Right"]:["Top","Bottom"],l=k.toLowerCase(),m={innerWidth:c.fn.innerWidth,innerHeight:c.fn.innerHeight,outerWidth:c.fn.outerWidth,outerHeight:c.fn.outerHeight};c.fn["inner"+k]=function(a){return a===h?m["inner"+k].call(this):this.each(function(){c(this).css(l,p(this,a)+"px")})},c.fn["outer"+k]=function(n,a){return"number"!=typeof n?m["outer"+k].call(this,n):this.each(function(){c(this).css(l,p(this,n,!0,a)+"px")})}}),c.fn.addBack||(c.fn.addBack=function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}),c("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(c.fn.removeData=function(a){return function(e){return arguments.length?a.call(this,c.camelCase(e)):a.call(this)}}(c.fn.removeData)),c.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),c.support.selectstart="onselectstart" in document.createElement("div"),c.fn.extend({disableSelection:function(){return this.bind((c.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),c.extend(c.ui,{plugin:{add:function(m,j,k){var l,e=c.ui[m].prototype;for(l in k){e.plugins[l]=e.plugins[l]||[],e.plugins[l].push([j,k[l]])}},call:function(a,m,j){var k,l=a.plugins[m];if(l&&a.element[0].parentNode&&11!==a.element[0].parentNode.nodeType){for(k=0;l.length>k;k++){a.options[l[k][0]]&&l[k][1].apply(a.element,j)}}}},hasScroll:function(k,a){if("hidden"===c(k).css("overflow")){return !1}var e=a&&"left"===a?"scrollLeft":"scrollTop",j=!1;return k[e]>0?!0:(k[e]=1,j=k[e]>0,k[e]=0,j)}})})(jQuery);(function(f,a){var b=0,d=Array.prototype.slice,c=f.cleanData;f.cleanData=function(g){for(var h,k=0;null!=(h=g[k]);k++){try{f(h).triggerHandler("remove")}catch(j){}}c(g)},f.widget=function(k,u,p){var q,e,t,j,m={},g=k.split(".")[0];k=k.split(".")[1],q=g+"-"+k,p||(p=u,u=f.Widget),f.expr[":"][q.toLowerCase()]=function(h){return !!f.data(h,q)},f[g]=f[g]||{},e=f[g][k],t=f[g][k]=function(l,h){return this._createWidget?(arguments.length&&this._createWidget(l,h),a):new t(l,h)},f.extend(t,e,{version:p.version,_proto:f.extend({},p),_childConstructors:[]}),j=new u,j.options=f.widget.extend({},j.options),f.each(p,function(h,l){return f.isFunction(l)?(m[h]=function(){var n=function(){return u.prototype[h].apply(this,arguments)},i=function(o){return u.prototype[h].apply(this,o)};return function(){var r,w=this._super,v=this._superApply;return this._super=n,this._superApply=i,r=l.apply(this,arguments),this._super=w,this._superApply=v,r}}(),a):(m[h]=l,a)}),t.prototype=f.widget.extend(j,{widgetEventPrefix:e?j.widgetEventPrefix:k},m,{constructor:t,namespace:g,widgetName:k,widgetFullName:q}),e?(f.each(e._childConstructors,function(h,l){var n=l.prototype;f.widget(n.namespace+"."+n.widgetName,t,l._proto)}),delete e._childConstructors):u._childConstructors.push(t),f.widget.bridge(k,t)},f.widget.extend=function(j){for(var k,l,e=d.call(arguments,1),m=0,g=e.length;g>m;m++){for(k in e[m]){l=e[m][k],e[m].hasOwnProperty(k)&&l!==a&&(j[k]=f.isPlainObject(l)?f.isPlainObject(j[k])?f.widget.extend({},j[k],l):f.widget.extend({},l):l)}}return j},f.widget.bridge=function(e,g){var h=g.prototype.widgetFullName||e;f.fn[e]=function(i){var m="string"==typeof i,j=d.call(arguments,1),k=this;return i=!m&&j.length?f.widget.extend.apply(null,[i].concat(j)):i,m?this.each(function(){var o,l=f.data(this,h);return l?f.isFunction(l[i])&&"_"!==i.charAt(0)?(o=l[i].apply(l,j),o!==l&&o!==a?(k=o&&o.jquery?k.pushStack(o.get()):o,!1):a):f.error("no such method '"+i+"' for "+e+" widget instance"):f.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+i+"'")}):this.each(function(){var l=f.data(this,h);l?l.option(i||{})._init():f.data(this,h,new g(i,this))}),k}},f.Widget=function(){},f.Widget._childConstructors=[],f.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(g,h){h=f(h||this.defaultElement||this)[0],this.element=f(h),this.uuid=b++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=f.widget.extend({},this.options,this._getCreateOptions(),g),this.bindings=f(),this.hoverable=f(),this.focusable=f(),h!==this&&(f.data(h,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===h&&this.destroy()}}),this.document=f(h.style?h.ownerDocument:h.document||h),this.window=f(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:f.noop,_getCreateEventData:f.noop,_create:f.noop,_init:f.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(f.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:f.noop,widget:function(){return this.element},option:function(g,l){var h,j,e,k=g;if(0===arguments.length){return f.widget.extend({},this.options)}if("string"==typeof g){if(k={},h=g.split("."),g=h.shift(),h.length){for(j=k[g]=f.widget.extend({},this.options[g]),e=0;h.length-1>e;e++){j[h[e]]=j[h[e]]||{},j=j[h[e]]}if(g=h.pop(),l===a){return j[g]===a?null:j[g]}j[g]=l}else{if(l===a){return this.options[g]===a?null:this.options[g]}k[g]=l}}return this._setOptions(k),this},_setOptions:function(h){var g;for(g in h){this._setOption(g,h[g])}return this},_setOption:function(h,g){return this.options[h]=g,"disabled"===h&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!g).attr("aria-disabled",g),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(g,k,h){var j,e=this;"boolean"!=typeof g&&(h=k,k=g,g=!1),h?(k=j=f(k),this.bindings=this.bindings.add(k)):(h=k,k=this.element,j=this.widget()),f.each(h,function(p,q){function m(){return g||e.options.disabled!==!0&&!f(this).hasClass("ui-state-disabled")?("string"==typeof q?e[q]:q).apply(e,arguments):a}"string"!=typeof q&&(m.guid=q.guid=q.guid||m.guid||f.guid++);var o=p.match(/^(\w+)\s*(.*)$/),i=o[1]+e.eventNamespace,s=o[2];s?j.delegate(s,i,m):k.bind(i,m)})},_off:function(h,g){g=(g||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,h.unbind(g).undelegate(g)},_delay:function(k,g){function h(){return("string"==typeof k?j[k]:k).apply(j,arguments)}var j=this;return setTimeout(h,g||0)},_hoverable:function(g){this.hoverable=this.hoverable.add(g),this._on(g,{mouseenter:function(h){f(h.currentTarget).addClass("ui-state-hover")},mouseleave:function(h){f(h.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(g){this.focusable=this.focusable.add(g),this._on(g,{focusin:function(h){f(h.currentTarget).addClass("ui-state-focus")},focusout:function(h){f(h.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(h,j,m){var k,l,g=this.options[h];if(m=m||{},j=f.Event(j),j.type=(h===this.widgetEventPrefix?h:this.widgetEventPrefix+h).toLowerCase(),j.target=this.element[0],l=j.originalEvent){for(k in l){k in j||(j[k]=l[k])}}return this.element.trigger(j,m),!(f.isFunction(g)&&g.apply(this.element[0],[j].concat(m))===!1||j.isDefaultPrevented())}},f.each({show:"fadeIn",hide:"fadeOut"},function(g,h){f.Widget.prototype["_"+g]=function(l,i,j){"string"==typeof i&&(i={effect:i});var e,k=i?i===!0||"number"==typeof i?h:i.effect||h:g;i=i||{},"number"==typeof i&&(i={duration:i}),e=!f.isEmptyObject(i),i.complete=j,i.delay&&l.delay(i.delay),e&&f.effects&&f.effects.effect[k]?l[g](i):k!==g&&l[k]?l[k](i.duration,i.easing,j):l.queue(function(m){f(this)[g](),j&&j.call(l[0]),m()})}})})(jQuery);(function(b){var a=!1;b(document).mouseup(function(){a=!1}),b.widget("ui.mouse",{version:"1.10.3",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var c=this;this.element.bind("mousedown."+this.widgetName,function(d){return c._mouseDown(d)}).bind("click."+this.widgetName,function(d){return !0===b.data(d.target,c.widgetName+".preventClickEvent")?(b.removeData(d.target,c.widgetName+".preventClickEvent"),d.stopImmediatePropagation(),!1):undefined}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&b(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(d){if(!a){this._mouseStarted&&this._mouseUp(d),this._mouseDownEvent=d;var f=this,e=1===d.which,c="string"==typeof this.options.cancel&&d.target.nodeName?b(d.target).closest(this.options.cancel).length:!1;return e&&!c&&this._mouseCapture(d)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){f.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(d)&&this._mouseDelayMet(d)&&(this._mouseStarted=this._mouseStart(d)!==!1,!this._mouseStarted)?(d.preventDefault(),!0):(!0===b.data(d.target,this.widgetName+".preventClickEvent")&&b.removeData(d.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(g){return f._mouseMove(g)},this._mouseUpDelegate=function(g){return f._mouseUp(g)},b(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),d.preventDefault(),a=!0,!0)):!0}},_mouseMove:function(c){return b.ui.ie&&(!document.documentMode||9>document.documentMode)&&!c.button?this._mouseUp(c):this._mouseStarted?(this._mouseDrag(c),c.preventDefault()):(this._mouseDistanceMet(c)&&this._mouseDelayMet(c)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,c)!==!1,this._mouseStarted?this._mouseDrag(c):this._mouseUp(c)),!this._mouseStarted)},_mouseUp:function(c){return b(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,c.target===this._mouseDownEvent.target&&b.data(c.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(c)),!1},_mouseDistanceMet:function(c){return Math.max(Math.abs(this._mouseDownEvent.pageX-c.pageX),Math.abs(this._mouseDownEvent.pageY-c.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return !0}})})(jQuery);(function(C,k){function v(d,a,c){return[parseFloat(d[0])*(z.test(d[0])?a/100:1),parseFloat(d[1])*(z.test(d[1])?c/100:1)]}function B(a,c){return parseInt(C.css(a,c),10)||0}function x(a){var c=a[0];return 9===c.nodeType?{width:a.width(),height:a.height(),offset:{top:0,left:0}}:C.isWindow(c)?{width:a.width(),height:a.height(),offset:{top:a.scrollTop(),left:a.scrollLeft()}}:c.preventDefault?{width:0,height:0,offset:{top:c.pageY,left:c.pageX}}:{width:a.outerWidth(),height:a.outerHeight(),offset:a.offset()}}C.ui=C.ui||{};var b,y=Math.max,A=Math.abs,w=Math.round,q=/left|center|right/,g=/top|center|bottom/,D=/[\+\-]\d+(\.[\d]+)?%?/,j=/^\w+/,z=/%$/,m=C.fn.position;C.position={scrollbarWidth:function(){if(b!==k){return b}var a,e,c=C("<div style='display:block;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),d=c.children()[0];return C("body").append(c),a=d.offsetWidth,c.css("overflow","scroll"),e=d.offsetWidth,a===e&&(e=c[0].clientWidth),c.remove(),b=a-e},getScrollInfo:function(d){var f=d.isWindow?"":d.element.css("overflow-x"),l=d.isWindow?"":d.element.css("overflow-y"),h="scroll"===f||"auto"===f&&d.width<d.element[0].scrollWidth,c="scroll"===l||"auto"===l&&d.height<d.element[0].scrollHeight;return{width:c?C.position.scrollbarWidth():0,height:h?C.position.scrollbarWidth():0}},getWithinInfo:function(a){var c=C(a||window),d=C.isWindow(c[0]);return{element:c,isWindow:d,offset:c.offset()||{left:0,top:0},scrollLeft:c.scrollLeft(),scrollTop:c.scrollTop(),width:d?c.width():c.outerWidth(),height:d?c.height():c.outerHeight()}}},C.fn.position=function(i){if(!i||!i.of){return m.apply(this,arguments)}i=C.extend({},i);var d,r,l,o,s,c,f=C(i.of),u=C.position.getWithinInfo(i.within),n=C.position.getScrollInfo(u),t=(i.collision||"flip").split(" "),h={};return c=x(f),f[0].preventDefault&&(i.at="left top"),r=c.width,l=c.height,o=c.offset,s=C.extend({},o),C.each(["my","at"],function(){var p,a,e=(i[this]||"").split(" ");1===e.length&&(e=q.test(e[0])?e.concat(["center"]):g.test(e[0])?["center"].concat(e):["center","center"]),e[0]=q.test(e[0])?e[0]:"center",e[1]=g.test(e[1])?e[1]:"center",p=D.exec(e[0]),a=D.exec(e[1]),h[this]=[p?p[0]:0,a?a[0]:0],i[this]=[j.exec(e[0])[0],j.exec(e[1])[0]]}),1===t.length&&(t[1]=t[0]),"right"===i.at[0]?s.left+=r:"center"===i.at[0]&&(s.left+=r/2),"bottom"===i.at[1]?s.top+=l:"center"===i.at[1]&&(s.top+=l/2),d=v(h.at,r,l),s.left+=d[0],s.top+=d[1],this.each(function(){var I,G,e=C(this),K=e.outerWidth(),E=e.outerHeight(),F=B(this,"marginLeft"),a=B(this,"marginTop"),L=K+F+B(this,"marginRight")+n.width,p=E+a+B(this,"marginBottom")+n.height,H=C.extend({},s),J=v(h.my,e.outerWidth(),e.outerHeight());"right"===i.my[0]?H.left-=K:"center"===i.my[0]&&(H.left-=K/2),"bottom"===i.my[1]?H.top-=E:"center"===i.my[1]&&(H.top-=E/2),H.left+=J[0],H.top+=J[1],C.support.offsetFractions||(H.left=w(H.left),H.top=w(H.top)),I={marginLeft:F,marginTop:a},C.each(["left","top"],function(M,N){C.ui.position[t[M]]&&C.ui.position[t[M]][N](H,{targetWidth:r,targetHeight:l,elemWidth:K,elemHeight:E,collisionPosition:I,collisionWidth:L,collisionHeight:p,offset:[d[0]+J[0],d[1]+J[1]],my:i.my,at:i.at,within:u,elem:e})}),i.using&&(G=function(R){var N=o.left-H.left,Q=N+r-K,P=o.top-H.top,M=P+l-E,O={target:{element:f,left:o.left,top:o.top,width:r,height:l},element:{element:e,left:H.left,top:H.top,width:K,height:E},horizontal:0>Q?"left":N>0?"right":"center",vertical:0>M?"top":P>0?"bottom":"middle"};K>r&&r>A(N+Q)&&(O.horizontal="center"),E>l&&l>A(P+M)&&(O.vertical="middle"),O.important=y(A(N),A(Q))>y(A(P),A(M))?"horizontal":"vertical",i.using.call(this,R,O)}),e.offset(C.extend(H,{using:G}))})},C.ui.position={fit:{left:function(G,d){var o,F=d.within,u=F.isWindow?F.scrollLeft:F.offset.left,c=F.width,E=G.left-d.collisionPosition.marginLeft,p=u-E,f=E+d.collisionWidth-c-u;d.collisionWidth>c?p>0&&0>=f?(o=G.left+p+d.collisionWidth-c-u,G.left+=p-o):G.left=f>0&&0>=p?u:p>f?u+c-d.collisionWidth:u:p>0?G.left+=p:f>0?G.left-=f:G.left=y(G.left-E,G.left)},top:function(G,d){var o,F=d.within,u=F.isWindow?F.scrollTop:F.offset.top,c=d.within.height,E=G.top-d.collisionPosition.marginTop,p=u-E,f=E+d.collisionHeight-c-u;d.collisionHeight>c?p>0&&0>=f?(o=G.top+p+d.collisionHeight-c-u,G.top+=p-o):G.top=f>0&&0>=p?u:p>f?u+c-d.collisionHeight:u:p>0?G.top+=p:f>0?G.top-=f:G.top=y(G.top-E,G.top)}},flip:{left:function(P,G){var J,O,L=G.within,r=L.offset.left+L.scrollLeft,M=L.width,K=L.isWindow?L.scrollLeft:L.offset.left,I=P.left-G.collisionPosition.marginLeft,E=I-K,Q=I+G.collisionWidth-M-K,F="left"===G.my[0]?-G.elemWidth:"right"===G.my[0]?G.elemWidth:0,N="left"===G.at[0]?G.targetWidth:"right"===G.at[0]?-G.targetWidth:0,H=-2*G.offset[0];0>E?(J=P.left+F+N+H+G.collisionWidth-M-r,(0>J||A(E)>J)&&(P.left+=F+N+H)):Q>0&&(O=P.left-G.collisionPosition.marginLeft+F+N+H-K,(O>0||Q>A(O))&&(P.left+=F+N+H))},top:function(Q,G){var K,P,M=G.within,r=M.offset.top+M.scrollTop,N=M.height,L=M.isWindow?M.scrollTop:M.offset.top,J=Q.top-G.collisionPosition.marginTop,E=J-L,R=J+G.collisionHeight-N-L,F="top"===G.my[1],O=F?-G.elemHeight:"bottom"===G.my[1]?G.elemHeight:0,H="top"===G.at[1]?G.targetHeight:"bottom"===G.at[1]?-G.targetHeight:0,I=-2*G.offset[1];0>E?(P=Q.top+O+H+I+G.collisionHeight-N-r,Q.top+O+H+I>E&&(0>P||A(E)>P)&&(Q.top+=O+H+I)):R>0&&(K=Q.top-G.collisionPosition.marginTop+O+H+I-L,Q.top+O+H+I>R&&(K>0||R>A(K))&&(Q.top+=O+H+I))}},flipfit:{left:function(){C.ui.position.flip.left.apply(this,arguments),C.ui.position.fit.left.apply(this,arguments)},top:function(){C.ui.position.flip.top.apply(this,arguments),C.ui.position.fit.top.apply(this,arguments)}}},function(){var d,f,t,h,c,l=document.getElementsByTagName("body")[0],p=document.createElement("div");d=document.createElement(l?"div":"body"),t={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},l&&C.extend(t,{position:"absolute",left:"-1000px",top:"-1000px"});for(c in t){d.style[c]=t[c]}d.appendChild(p),f=l||document.documentElement,f.insertBefore(d,f.firstChild),p.style.cssText="position: absolute; left: 10.7432222px;",h=C(p).offset().left,C.support.offsetFractions=h>10&&11>h,d.innerHTML="",f.removeChild(d)}()})(jQuery);(function(a){var b=0;a.widget("ui.autocomplete",{version:"1.10.3",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},pending:0,_create:function(){var h,d,g,e=this.element[0].nodeName.toLowerCase(),c="textarea"===e,f="input"===e;this.isMultiLine=c?!0:f?!1:this.element.prop("isContentEditable"),this.valueMethod=this.element[c||f?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(j){if(this.element.prop("readOnly")){return h=!0,g=!0,d=!0,undefined}h=!1,g=!1,d=!1;var i=a.ui.keyCode;switch(j.keyCode){case i.PAGE_UP:h=!0,this._move("previousPage",j);break;case i.PAGE_DOWN:h=!0,this._move("nextPage",j);break;case i.UP:h=!0,this._keyEvent("previous",j);break;case i.DOWN:h=!0,this._keyEvent("next",j);break;case i.ENTER:case i.NUMPAD_ENTER:this.menu.active&&(h=!0,j.preventDefault(),this.menu.select(j));break;case i.TAB:this.menu.active&&this.menu.select(j);break;case i.ESCAPE:this.menu.element.is(":visible")&&(this._value(this.term),this.close(j),j.preventDefault());break;default:d=!0,this._searchTimeout(j)}},keypress:function(j){if(h){return h=!1,(!this.isMultiLine||this.menu.element.is(":visible"))&&j.preventDefault(),undefined}if(!d){var i=a.ui.keyCode;switch(j.keyCode){case i.PAGE_UP:this._move("previousPage",j);break;case i.PAGE_DOWN:this._move("nextPage",j);break;case i.UP:this._keyEvent("previous",j);break;case i.DOWN:this._keyEvent("next",j)}}},input:function(i){return g?(g=!1,i.preventDefault(),undefined):(this._searchTimeout(i),undefined)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(i){return this.cancelBlur?(delete this.cancelBlur,undefined):(clearTimeout(this.searching),this.close(i),this._change(i),undefined)}}),this._initSource(),this.menu=a("<ul>").addClass("ui-autocomplete ui-front").appendTo(this._appendTo()).menu({role:null}).hide().data("ui-menu"),this._on(this.menu.element,{mousedown:function(k){k.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur});var j=this.menu.element[0];a(k.target).closest(".ui-menu-item").length||this._delay(function(){var i=this;this.document.one("mousedown",function(l){l.target===i.element[0]||l.target===j||a.contains(j,l.target)||i.close()})})},menufocus:function(l,j){if(this.isNewMenu&&(this.isNewMenu=!1,l.originalEvent&&/^mouse/.test(l.originalEvent.type))){return this.menu.blur(),this.document.one("mousemove",function(){a(l.target).trigger(l.originalEvent)}),undefined}var k=j.item.data("ui-autocomplete-item");!1!==this._trigger("focus",l,{item:k})?l.originalEvent&&/^key/.test(l.originalEvent.type)&&this._value(k.value):this.liveRegion.text(k.value)},menuselect:function(j,m){var k=m.item.data("ui-autocomplete-item"),l=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.focus(),this.previous=l,this._delay(function(){this.previous=l,this.selectedItem=k})),!1!==this._trigger("select",j,{item:k})&&this._value(k.value),this.term=this._value(),this.close(j),this.selectedItem=k}}),this.liveRegion=a("<span>",{role:"status","aria-live":"polite"}).addClass("ui-helper-hidden-accessible").insertBefore(this.element),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(c,d){this._super(c,d),"source"===c&&this._initSource(),"appendTo"===c&&this.menu.element.appendTo(this._appendTo()),"disabled"===c&&d&&this.xhr&&this.xhr.abort()},_appendTo:function(){var c=this.options.appendTo;return c&&(c=c.jquery||c.nodeType?a(c):this.document.find(c).eq(0)),c||(c=this.element.closest(".ui-front")),c.length||(c=this.document[0].body),c},_initSource:function(){var e,c,d=this;a.isArray(this.options.source)?(e=this.options.source,this.source=function(f,g){g(a.ui.autocomplete.filter(e,f.term))}):"string"==typeof this.options.source?(c=this.options.source,this.source=function(g,f){d.xhr&&d.xhr.abort(),d.xhr=a.ajax({url:c,data:g,dataType:"json",success:function(h){f(h)},error:function(){f([])}})}):this.source=this.options.source},_searchTimeout:function(c){clearTimeout(this.searching),this.searching=this._delay(function(){this.term!==this._value()&&(this.selectedItem=null,this.search(null,c))},this.options.delay)},search:function(c,d){return c=null!=c?c:this._value(),this.term=this._value(),c.length<this.options.minLength?this.close(d):this._trigger("search",d)!==!1?this._search(c):undefined},_search:function(c){this.pending++,this.element.addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:c},this._response())},_response:function(){var c=this,d=++b;return function(e){d===b&&c.__response(e),c.pending--,c.pending||c.element.removeClass("ui-autocomplete-loading")}},__response:function(c){c&&(c=this._normalize(c)),this._trigger("response",null,{content:c}),!this.options.disabled&&c&&c.length&&!this.cancelSearch?(this._suggest(c),this._trigger("open")):this._close()},close:function(c){this.cancelSearch=!0,this._close(c)},_close:function(c){this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",c))},_change:function(c){this.previous!==this._value()&&this._trigger("change",c,{item:this.selectedItem})},_normalize:function(c){return c.length&&c[0].label&&c[0].value?c:a.map(c,function(d){return"string"==typeof d?{label:d,value:d}:a.extend({label:d.label||d.value,value:d.value||d.label},d)})},_suggest:function(d){var c=this.menu.element.empty();this._renderMenu(c,d),this.isNewMenu=!0,this.menu.refresh(),c.show(),this._resizeMenu(),c.position(a.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next()},_resizeMenu:function(){var c=this.menu.element;c.outerWidth(Math.max(c.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,c){var d=this;a.each(c,function(f,g){d._renderItemData(e,g)})},_renderItemData:function(c,d){return this._renderItem(c,d).data("ui-autocomplete-item",d)},_renderItem:function(d,c){return a("<li>").append(a("<a>").text(c.label)).appendTo(d)},_move:function(c,d){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(c)||this.menu.isLastItem()&&/^next/.test(c)?(this._value(this.term),this.menu.blur(),undefined):(this.menu[c](d),undefined):(this.search(null,d),undefined)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(c,d){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(c,d),d.preventDefault())}}),a.extend(a.ui.autocomplete,{escapeRegex:function(c){return c.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,c){var d=RegExp(a.ui.autocomplete.escapeRegex(c),"i");return a.grep(e,function(f){return d.test(f.label||f.value||f)})}}),a.widget("ui.autocomplete",a.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(c){return c+(c>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(c){var d;this._superApply(arguments),this.options.disabled||this.cancelSearch||(d=c&&c.length?this.options.messages.results(c.length):this.options.messages.noResults,this.liveRegion.text(d))}})})(jQuery);(function(a){a.widget("ui.menu",{version:"1.10.3",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}).bind("click"+this.eventNamespace,a.proxy(function(b){this.options.disabled&&b.preventDefault()},this)),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item > a":function(b){b.preventDefault()},"click .ui-state-disabled > a":function(b){b.preventDefault()},"click .ui-menu-item:has(a)":function(b){var c=a(b.target).closest(".ui-menu-item");!this.mouseHandled&&c.not(".ui-state-disabled").length&&(this.mouseHandled=!0,this.select(b),c.has(".ui-menu").length?this.expand(b):this.element.is(":focus")||(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(b){var c=a(b.currentTarget);c.siblings().children(".ui-state-active").removeClass("ui-state-active"),this.focus(b,c)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(d,b){var c=this.active||this.element.children(".ui-menu-item").eq(0);b||this.focus(d,c)},blur:function(b){this._delay(function(){a.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(b)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(b){a(b.target).closest(".ui-menu").length||this.collapseAll(b),this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var b=a(this);b.data("ui-menu-submenu-carat")&&b.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(c){function d(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}var k,g,b,h,j,f=!0;switch(c.keyCode){case a.ui.keyCode.PAGE_UP:this.previousPage(c);break;case a.ui.keyCode.PAGE_DOWN:this.nextPage(c);break;case a.ui.keyCode.HOME:this._move("first","first",c);break;case a.ui.keyCode.END:this._move("last","last",c);break;case a.ui.keyCode.UP:this.previous(c);break;case a.ui.keyCode.DOWN:this.next(c);break;case a.ui.keyCode.LEFT:this.collapse(c);break;case a.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(c);break;case a.ui.keyCode.ENTER:case a.ui.keyCode.SPACE:this._activate(c);break;case a.ui.keyCode.ESCAPE:this.collapse(c);break;default:f=!1,g=this.previousFilter||"",b=String.fromCharCode(c.keyCode),h=!1,clearTimeout(this.filterTimer),b===g?h=!0:b=g+b,j=RegExp("^"+d(b),"i"),k=this.activeMenu.children(".ui-menu-item").filter(function(){return j.test(a(this).children("a").text())}),k=h&&-1!==k.index(this.active.next())?this.active.nextAll(".ui-menu-item"):k,k.length||(b=String.fromCharCode(c.keyCode),j=RegExp("^"+d(b),"i"),k=this.activeMenu.children(".ui-menu-item").filter(function(){return j.test(a(this).children("a").text())})),k.length?(this.focus(c,k),k.length>1?(this.previousFilter=b,this.filterTimer=this._delay(function(){delete this.previousFilter},1000)):delete this.previousFilter):delete this.previousFilter}f&&c.preventDefault()},_activate:function(b){this.active.is(".ui-state-disabled")||(this.active.children("a[aria-haspopup='true']").length?this.expand(b):this.select(b))},refresh:function(){var b,c=this.options.icons.submenu,d=this.element.find(this.options.menus);d.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-corner-all").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var f=a(this),h=f.prev("a"),g=a("<span>").addClass("ui-menu-icon ui-icon "+c).data("ui-menu-submenu-carat",!0);h.attr("aria-haspopup","true").prepend(g),f.attr("aria-labelledby",h.attr("id"))}),b=d.add(this.element),b.children(":not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","presentation").children("a").uniqueId().addClass("ui-corner-all").attr({tabIndex:-1,role:this._itemRole()}),b.children(":not(.ui-menu-item)").each(function(){var f=a(this);/[^\-\u2014\u2013\s]/.test(f.text())||f.addClass("ui-widget-content ui-menu-divider")}),b.children(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!a.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(c,b){"icons"===c&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(b.submenu),this._super(c,b)},focus:function(f,b){var c,d;this.blur(f,f&&"focus"===f.type),this._scrollIntoView(b),this.active=b.first(),d=this.active.children("a").addClass("ui-state-focus"),this.options.role&&this.element.attr("aria-activedescendant",d.attr("id")),this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active"),f&&"keydown"===f.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),c=b.children(".ui-menu"),c.length&&/^mouse/.test(f.type)&&this._startOpening(c),this.activeMenu=b.parent(),this._trigger("focus",f,{item:b})},_scrollIntoView:function(c){var d,j,f,b,g,h;this._hasScroll()&&(d=parseFloat(a.css(this.activeMenu[0],"borderTopWidth"))||0,j=parseFloat(a.css(this.activeMenu[0],"paddingTop"))||0,f=c.offset().top-this.activeMenu.offset().top-d-j,b=this.activeMenu.scrollTop(),g=this.activeMenu.height(),h=c.height(),0>f?this.activeMenu.scrollTop(b+f):f+h>g&&this.activeMenu.scrollTop(b+f-g+h))},blur:function(c,b){b||clearTimeout(this.timer),this.active&&(this.active.children("a").removeClass("ui-state-focus"),this.active=null,this._trigger("blur",c,{item:this.active}))},_startOpening:function(b){clearTimeout(this.timer),"true"===b.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(b)},this.delay))},_open:function(b){var c=a.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(b.parents(".ui-menu")).hide().attr("aria-hidden","true"),b.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(c)},collapseAll:function(b,c){clearTimeout(this.timer),this.timer=this._delay(function(){var d=c?this.element:a(b&&b.target).closest(this.element.find(".ui-menu"));d.length||(d=this.element),this._close(d),this.blur(b),this.activeMenu=d},this.delay)},_close:function(b){b||(b=this.active?this.active.parent():this.element),b.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.ui-state-active").removeClass("ui-state-active")},collapse:function(c){var b=this.active&&this.active.parent().closest(".ui-menu-item",this.element);b&&b.length&&(this._close(),this.focus(c,b))},expand:function(c){var b=this.active&&this.active.children(".ui-menu ").children(".ui-menu-item").first();b&&b.length&&(this._open(b.parent()),this._delay(function(){this.focus(c,b)}))},next:function(b){this._move("next","first",b)},previous:function(b){this._move("prev","last",b)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(f,b,c){var d;this.active&&(d="first"===f||"last"===f?this.active["first"===f?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[f+"All"](".ui-menu-item").eq(0)),d&&d.length&&this.active||(d=this.activeMenu.children(".ui-menu-item")[b]()),this.focus(c,d)},nextPage:function(b){var c,f,d;return this.active?(this.isLastItem()||(this._hasScroll()?(f=this.active.offset().top,d=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return c=a(this),0>c.offset().top-f-d}),this.focus(b,c)):this.focus(b,this.activeMenu.children(".ui-menu-item")[this.active?"last":"first"]())),undefined):(this.next(b),undefined)},previousPage:function(b){var c,f,d;return this.active?(this.isFirstItem()||(this._hasScroll()?(f=this.active.offset().top,d=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return c=a(this),c.offset().top-f+d>0}),this.focus(b,c)):this.focus(b,this.activeMenu.children(".ui-menu-item").first())),undefined):(this.next(b),undefined)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(b){this.active=this.active||a(b.target).closest(".ui-menu-item");var c={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(b,!0),this._trigger("select",b,c)}})})(jQuery);(function(b){var a=5;b.widget("ui.slider",b.ui.mouse,{version:"1.10.3",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"),this._refresh(),this._setOption("disabled",this.options.disabled),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var d,f,j=this.options,g=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),c="<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>",h=[];for(f=j.values&&j.values.length||1,g.length>f&&(g.slice(f).remove(),g=g.slice(0,f)),d=g.length;f>d;d++){h.push(c)}this.handles=g.add(b(h.join("")).appendTo(this.element)),this.handle=this.handles.eq(0),this.handles.each(function(i){b(this).data("ui-slider-handle-index",i)})},_createRange:function(){var c=this.options,d="";c.range?(c.range===!0&&(c.values?c.values.length&&2!==c.values.length?c.values=[c.values[0],c.values[0]]:b.isArray(c.values)&&(c.values=c.values.slice(0)):c.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?this.range.removeClass("ui-slider-range-min ui-slider-range-max").css({left:"",bottom:""}):(this.range=b("<div></div>").appendTo(this.element),d="ui-slider-range ui-widget-header ui-corner-all"),this.range.addClass(d+("min"===c.range||"max"===c.range?" ui-slider-range-"+c.range:""))):this.range=b([])},_setupEvents:function(){var c=this.handles.add(this.range).filter("a");this._off(c),this._on(c,this._handleEvents),this._hoverable(c),this._focusable(c)},_destroy:function(){this.handles.remove(),this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-widget ui-widget-content ui-corner-all"),this._mouseDestroy()},_mouseCapture:function(g){var k,v,p,d,q,t,m,j,w=this,f=this.options;return f.disabled?!1:(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),k={x:g.pageX,y:g.pageY},v=this._normValueFromMouse(k),p=this._valueMax()-this._valueMin()+1,this.handles.each(function(c){var h=Math.abs(v-w.values(c));(p>h||p===h&&(c===w._lastChangedValue||w.values(c)===f.min))&&(p=h,d=b(this),q=c)}),t=this._start(g,q),t===!1?!1:(this._mouseSliding=!0,this._handleIndex=q,d.addClass("ui-state-active").focus(),m=d.offset(),j=!b(g.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=j?{left:0,top:0}:{left:g.pageX-m.left-d.width()/2,top:g.pageY-m.top-d.height()/2-(parseInt(d.css("borderTopWidth"),10)||0)-(parseInt(d.css("borderBottomWidth"),10)||0)+(parseInt(d.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(g,q,v),this._animateOff=!0,!0))},_mouseStart:function(){return !0},_mouseDrag:function(f){var c={x:f.pageX,y:f.pageY},d=this._normValueFromMouse(c);return this._slide(f,this._handleIndex,d),!1},_mouseStop:function(c){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(c,this._handleIndex),this._change(c,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(j){var d,f,h,g,c;return"horizontal"===this.orientation?(d=this.elementSize.width,f=j.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(d=this.elementSize.height,f=j.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),h=f/d,h>1&&(h=1),0>h&&(h=0),"vertical"===this.orientation&&(h=1-h),g=this._valueMax()-this._valueMin(),c=this._valueMin()+h*g,this._trimAlignValue(c)},_start:function(f,c){var d={handle:this.handles[c],value:this.value()};return this.options.values&&this.options.values.length&&(d.value=this.values(c),d.values=this.values()),this._trigger("start",f,d)},_slide:function(j,d,f){var h,g,c;this.options.values&&this.options.values.length?(h=this.values(d?0:1),2===this.options.values.length&&this.options.range===!0&&(0===d&&f>h||1===d&&h>f)&&(f=h),f!==this.values(d)&&(g=this.values(),g[d]=f,c=this._trigger("slide",j,{handle:this.handles[d],value:f,values:g}),h=this.values(d?0:1),c!==!1&&this.values(d,f,!0))):f!==this.value()&&(c=this._trigger("slide",j,{handle:this.handles[d],value:f}),c!==!1&&this.value(f))},_stop:function(f,c){var d={handle:this.handles[c],value:this.value()};this.options.values&&this.options.values.length&&(d.value=this.values(c),d.values=this.values()),this._trigger("stop",f,d)},_change:function(f,c){if(!this._keySliding&&!this._mouseSliding){var d={handle:this.handles[c],value:this.value()};this.options.values&&this.options.values.length&&(d.value=this.values(c),d.values=this.values()),this._lastChangedValue=c,this._trigger("change",f,d)}},value:function(c){return arguments.length?(this.options.value=this._trimAlignValue(c),this._refreshValue(),this._change(null,0),undefined):this._value()},values:function(d,f){var h,g,c;if(arguments.length>1){return this.options.values[d]=this._trimAlignValue(f),this._refreshValue(),this._change(null,d),undefined}if(!arguments.length){return this._values()}if(!b.isArray(arguments[0])){return this.options.values&&this.options.values.length?this._values(d):this.value()}for(h=this.options.values,g=arguments[0],c=0;h.length>c;c+=1){h[c]=this._trimAlignValue(g[c]),this._change(null,c)}this._refreshValue()},_setOption:function(c,d){var g,f=0;switch("range"===c&&this.options.range===!0&&("min"===d?(this.options.value=this._values(0),this.options.values=null):"max"===d&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),b.isArray(this.options.values)&&(f=this.options.values.length),b.Widget.prototype._setOption.apply(this,arguments),c){case"orientation":this._detectOrientation(),this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation),this._refreshValue();break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),g=0;f>g;g+=1){this._change(null,g)}this._animateOff=!1;break;case"min":case"max":this._animateOff=!0,this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_value:function(){var c=this.options.value;return c=this._trimAlignValue(c)},_values:function(g){var c,d,f;if(arguments.length){return c=this.options.values[g],c=this._trimAlignValue(c)}if(this.options.values&&this.options.values.length){for(d=this.options.values.slice(),f=0;d.length>f;f+=1){d[f]=this._trimAlignValue(d[f])}return d}return[]},_trimAlignValue:function(g){if(this._valueMin()>=g){return this._valueMin()}if(g>=this._valueMax()){return this._valueMax()}var c=this.options.step>0?this.options.step:1,d=(g-this._valueMin())%c,f=g-d;return 2*Math.abs(d)>=c&&(f+=d>0?c:-c),parseFloat(f.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var d,g,q,k,c,m=this.options.range,p=this.options,j=this,f=this._animateOff?!1:p.animate,t={};this.options.values&&this.options.values.length?this.handles.each(function(e){g=100*((j.values(e)-j._valueMin())/(j._valueMax()-j._valueMin())),t["horizontal"===j.orientation?"left":"bottom"]=g+"%",b(this).stop(1,1)[f?"animate":"css"](t,p.animate),j.options.range===!0&&("horizontal"===j.orientation?(0===e&&j.range.stop(1,1)[f?"animate":"css"]({left:g+"%"},p.animate),1===e&&j.range[f?"animate":"css"]({width:g-d+"%"},{queue:!1,duration:p.animate})):(0===e&&j.range.stop(1,1)[f?"animate":"css"]({bottom:g+"%"},p.animate),1===e&&j.range[f?"animate":"css"]({height:g-d+"%"},{queue:!1,duration:p.animate}))),d=g}):(q=this.value(),k=this._valueMin(),c=this._valueMax(),g=c!==k?100*((q-k)/(c-k)):0,t["horizontal"===this.orientation?"left":"bottom"]=g+"%",this.handle.stop(1,1)[f?"animate":"css"](t,p.animate),"min"===m&&"horizontal"===this.orientation&&this.range.stop(1,1)[f?"animate":"css"]({width:g+"%"},p.animate),"max"===m&&"horizontal"===this.orientation&&this.range[f?"animate":"css"]({width:100-g+"%"},{queue:!1,duration:p.animate}),"min"===m&&"vertical"===this.orientation&&this.range.stop(1,1)[f?"animate":"css"]({height:g+"%"},p.animate),"max"===m&&"vertical"===this.orientation&&this.range[f?"animate":"css"]({height:100-g+"%"},{queue:!1,duration:p.animate}))},_handleEvents:{keydown:function(d){var h,e,c,f,g=b(d.target).data("ui-slider-handle-index");switch(d.keyCode){case b.ui.keyCode.HOME:case b.ui.keyCode.END:case b.ui.keyCode.PAGE_UP:case b.ui.keyCode.PAGE_DOWN:case b.ui.keyCode.UP:case b.ui.keyCode.RIGHT:case b.ui.keyCode.DOWN:case b.ui.keyCode.LEFT:if(d.preventDefault(),!this._keySliding&&(this._keySliding=!0,b(d.target).addClass("ui-state-active"),h=this._start(d,g),h===!1)){return}}switch(f=this.options.step,e=c=this.options.values&&this.options.values.length?this.values(g):this.value(),d.keyCode){case b.ui.keyCode.HOME:c=this._valueMin();break;case b.ui.keyCode.END:c=this._valueMax();break;case b.ui.keyCode.PAGE_UP:c=this._trimAlignValue(e+(this._valueMax()-this._valueMin())/a);break;case b.ui.keyCode.PAGE_DOWN:c=this._trimAlignValue(e-(this._valueMax()-this._valueMin())/a);break;case b.ui.keyCode.UP:case b.ui.keyCode.RIGHT:if(e===this._valueMax()){return}c=this._trimAlignValue(e+f);break;case b.ui.keyCode.DOWN:case b.ui.keyCode.LEFT:if(e===this._valueMin()){return}c=this._trimAlignValue(e-f)}this._slide(d,g,c)},click:function(c){c.preventDefault()},keyup:function(c){var d=b(c.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(c,d),this._change(c,d),b(c.target).removeClass("ui-state-active"))}}})})(jQuery);
/*
 * jQuery Tools v1.2.7 - The missing UI library for the Web
 * 
 * tabs/tabs.js
 * tooltip/tooltip.js
 * tooltip/tooltip.dynamic.js
 * tooltip/tooltip.slide.js
 * 
 * NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
 * 
 * http://flowplayer.org/tools/
 * 
 */
jQuery.browser={};jQuery.browser.mozilla=/mozilla/.test(navigator.userAgent.toLowerCase())&&!/webkit/.test(navigator.userAgent.toLowerCase());jQuery.browser.webkit=/webkit/.test(navigator.userAgent.toLowerCase());jQuery.browser.opera=/opera/.test(navigator.userAgent.toLowerCase());jQuery.browser.msie=/msie/.test(navigator.userAgent.toLowerCase());(function(f){f.tools=f.tools||{version:"v1.2.7"},f.tools.tabs={conf:{tabs:"a",current:"current",onBeforeClick:null,onClick:null,effect:"default",initialEffect:!1,initialIndex:0,event:"click",rotate:!1,slideUpSpeed:400,slideDownSpeed:400,history:!1},addEffect:function(b,d){g[b]=d}};var g={"default":function(c,d){this.getPanes().hide().eq(c).show(),d.call()},fade:function(k,l){var m=this.getConf(),n=m.fadeOutSpeed,o=this.getPanes();n?o.fadeOut(n):o.hide(),o.eq(k).fadeIn(m.fadeInSpeed,l)},slide:function(d,e){var k=this.getConf();this.getPanes().slideUp(k.slideUpSpeed),this.getPanes().eq(d).slideDown(k.slideDownSpeed,e)},ajax:function(c,d){this.getPanes().eq(0).load(this.getTabs().eq(c).attr("href"),d)}},h,i;f.tools.tabs.addEffect("horizontal",function(a,c){if(!h){var d=this.getPanes().eq(a),k=this.getCurrentPane();i||(i=this.getPanes().eq(0).width()),h=!0,d.show(),k.animate({width:0},{step:function(b){d.css("width",i-b)},complete:function(){f(this).hide(),c.call(),h=!1}}),k.length||(c.call(),h=!1)}});function j(a,b,k){var l=this,m=a.add(this),n=a.find(k.tabs),o=b.jquery?b:a.children(b),p;n.length||(n=a.children()),o.length||(o=a.parent().find(b)),o.length||(o=f(b)),f.extend(this,{click:function(c,e){var q=n.eq(c),r=!a.data("tabs");typeof c=="string"&&c.replace("#","")&&(q=n.filter('[href*="'+c.replace("#","")+'"]'),c=Math.max(n.index(q),0));if(k.rotate){var s=n.length-1;if(c<0){return l.click(s,e)}if(c>s){return l.click(0,e)}}if(!q.length){if(p>=0){return l}c=k.initialIndex,q=n.eq(c)}if(c===p){return l}e=e||f.Event(),e.type="onBeforeClick",m.trigger(e,[c]);if(!e.isDefaultPrevented()){var t=r?k.initialEffect&&k.effect||"default":k.effect;g[t].call(l,c,function(){p=c,e.type="onClick",m.trigger(e,[c])}),n.removeClass(k.current),q.addClass(k.current);return l}},getConf:function(){return k},getTabs:function(){return n},getPanes:function(){return o},getCurrentPane:function(){return o.eq(p)},getCurrentTab:function(){return n.eq(p)},getIndex:function(){return p},next:function(){return l.click(p+1)},prev:function(){return l.click(p-1)},destroy:function(){n.off(k.event).removeClass(k.current),o.find('a[href^="#"]').off("click.T");return l}}),f.each("onBeforeClick,onClick".split(","),function(d,e){f.isFunction(k[e])&&f(l).on(e,k[e]),l[e]=function(c){c&&f(l).on(e,c);return l}}),k.history&&f.fn.history&&(f.tools.history.init(n),k.event="history"),n.each(function(c){f(this).on(k.event,function(d){l.click(c,d);return d.preventDefault()})}),o.find('a[href^="#"]').on("click.T",function(c){l.click(f(this).attr("href"),c)}),location.hash&&k.tabs=="a"&&a.find('[href="'+location.hash+'"]').length?l.click(location.hash):(k.initialIndex===0||k.initialIndex>0)&&l.click(k.initialIndex)}f.fn.tabs=function(a,e){var k=this.data("tabs");k&&(k.destroy(),this.removeData("tabs")),f.isFunction(e)&&(e={onBeforeClick:e}),e=f.extend({},f.tools.tabs.conf,e),this.each(function(){k=new j(f(this),a,e),f(this).data("tabs",k)});return e.api?k:this}})(jQuery);(function(e){e.tools=e.tools||{version:"v1.2.7"},e.tools.tooltip={conf:{effect:"toggle",fadeOutSpeed:"fast",predelay:0,delay:30,opacity:1,tip:0,fadeIE:!1,position:["top","center"],offset:[0,0],relative:!1,cancelDefault:!0,events:{def:"mouseenter,mouseleave",input:"focus,blur",widget:"focus mouseenter,blur mouseleave",tooltip:"mouseenter,mouseleave"},layout:"<div/>",tipClass:"tooltip"},addEffect:function(b,i,j){f[b]=[i,j]}};var f={toggle:[function(i){var j=this.getConf(),k=this.getTip(),l=j.opacity;l<1&&k.css({opacity:l}),k.show(),i.call()},function(b){this.getTip().hide(),b.call()}],fade:[function(a){var d=this.getConf();!e.browser.msie||d.fadeIE?this.getTip().fadeTo(d.fadeInSpeed,d.opacity,a):(this.getTip().show(),a())},function(a){var d=this.getConf();!e.browser.msie||d.fadeIE?this.getTip().fadeOut(d.fadeOutSpeed,a):(this.getTip().hide(),a())}]};function g(a,j,k){var l=k.relative?a.position().top:a.offset().top,m=k.relative?a.position().left:a.offset().left,n=k.position[0];l-=j.outerHeight()-k.offset[0],m+=a.outerWidth()+k.offset[1];var o=j.outerHeight()+a.outerHeight();n=="center"&&(l+=o/2),n=="bottom"&&(l+=o),n=k.position[1];var p=j.outerWidth()+a.outerWidth();n=="center"&&(m-=p/2),n=="left"&&(m-=p);return{top:l,left:m}}function h(a,b){var c=this,s=a.add(c),t,u=0,v=0,w=a.attr("title"),x=a.attr("data-tooltip"),y=f[b.effect],z,A=a.is(":input"),B=A&&a.is(":checkbox, :radio, select, :button, :submit"),C=a.attr("type"),D=b.events[C]||b.events[A?B?"widget":"input":"def"];if(!y){throw'Nonexistent effect "'+b.effect+'"'}D=D.split(/,\s*/);if(D.length!=2){throw"Tooltip: bad events configuration for "+C}a.on(D[0],function(d){clearTimeout(u),b.predelay?v=setTimeout(function(){c.show(d)},b.predelay):c.show(d)}).on(D[1],function(d){clearTimeout(v),b.delay?u=setTimeout(function(){c.hide(d)},b.delay):c.hide(d)}),w&&b.cancelDefault&&(a.removeAttr("title"),a.data("title",w)),e.extend(c,{show:function(d){if(!t){x?t=e(x):b.tip?t=e(b.tip).eq(0):w?t=e(b.layout).addClass(b.tipClass).appendTo(document.body).hide().append(w):(t=a.next(),t.length||(t=a.parent().next()));if(!t.length){throw"Cannot find tooltip for "+a}}if(c.isShown()){return c}t.stop(!0,!0);var i=g(a,t,b);b.tip&&t.html(a.data("title")),d=e.Event(),d.type="onBeforeShow",s.trigger(d,[i]);if(d.isDefaultPrevented()){return c}i=g(a,t,b),t.css({position:"absolute",top:i.top,left:i.left}),z=!0,y[0].call(c,function(){d.type="onShow",z="full",s.trigger(d)});var j=b.events.tooltip.split(/,\s*/);t.data("__set")||(t.off(j[0]).on(j[0],function(){clearTimeout(u),clearTimeout(v)}),j[1]&&!a.is("input:not(:checkbox, :radio), textarea")&&t.off(j[1]).on(j[1],function(k){k.relatedTarget!=a[0]&&a.trigger(D[1].split(" ")[0])}),b.tip||t.data("__set",!0));return c},hide:function(d){if(!t||!c.isShown()){return c}d=e.Event(),d.type="onBeforeHide",s.trigger(d);if(!d.isDefaultPrevented()){z=!1,f[b.effect][1].call(c,function(){d.type="onHide",s.trigger(d)});return c}},isShown:function(d){return d?z=="full":z},getConf:function(){return b},getTip:function(){return t},getTrigger:function(){return a}}),e.each("onHide,onBeforeShow,onShow,onBeforeHide".split(","),function(d,i){e.isFunction(b[i])&&e(c).on(i,b[i]),c[i]=function(j){j&&e(c).on(i,j);return c}})}e.fn.tooltip=function(a){var d=this.data("tooltip");if(d){return d}a=e.extend(!0,{},e.tools.tooltip.conf,a),typeof a.position=="string"&&(a.position=a.position.split(/,?\s/)),this.each(function(){d=new h(e(this),a),e(this).data("tooltip",d)});return a.api?d:this}})(jQuery);(function(e){var f=e.tools.tooltip;f.dynamic={conf:{classNames:"top right bottom left"}};function g(a){var i=e(window),j=i.width()+i.scrollLeft(),k=i.height()+i.scrollTop();return[a.offset().top<=i.scrollTop(),j<=a.offset().left+a.width(),k<=a.offset().top+a.height(),i.scrollLeft()>=a.offset().left]}function h(c){var d=c.length;while(d--){if(c[d]){return !1}}return !0}e.fn.dynamic=function(a){typeof a=="number"&&(a={speed:a}),a=e.extend({},f.dynamic.conf,a);var b=e.extend(!0,{},a),c=a.classNames.split(/\s/),d;this.each(function(){var i=e(this).tooltip().onBeforeShow(function(m,n){var o=this.getTip(),p=this.getConf();d||(d=[p.position[0],p.position[1],p.offset[0],p.offset[1],e.extend({},p)]),e.extend(p,d[4]),p.position=[d[0],d[1]],p.offset=[d[2],d[3]],o.css({visibility:"hidden",position:"absolute",top:n.top,left:n.left}).show();var q=e.extend(!0,{},b),r=g(o);if(!h(r)){r[2]&&(e.extend(p,q.top),p.position[0]="top",o.addClass(c[0])),r[3]&&(e.extend(p,q.right),p.position[1]="right",o.addClass(c[1])),r[0]&&(e.extend(p,q.bottom),p.position[0]="bottom",o.addClass(c[2])),r[1]&&(e.extend(p,q.left),p.position[1]="left",o.addClass(c[3]));if(r[0]||r[2]){p.offset[0]*=-1}if(r[1]||r[3]){p.offset[1]*=-1}}o.css({visibility:"visible"}).hide()});i.onBeforeShow(function(){var j=this.getConf(),k=this.getTip();setTimeout(function(){j.position=[d[0],d[1]],j.offset=[d[2],d[3]]},0)}),i.onHide(function(){var j=this.getTip();j.removeClass(a.classNames)}),ret=i});return a.api?ret:this}})(jQuery);(function(d){var e=d.tools.tooltip;d.extend(e.conf,{direction:"up",bounce:!1,slideOffset:10,slideInSpeed:200,slideOutSpeed:200,slideFade:!d.browser.msie});var f={up:["-","top"],down:["+","top"],left:["-","left"],right:["+","left"]};e.addEffect("slide",function(c){var g=this.getConf(),h=this.getTip(),i=g.slideFade?{opacity:g.opacity}:{},j=f[g.direction]||f.up;i[j[1]]=j[0]+"="+g.slideOffset,g.slideFade&&h.css({opacity:0}),h.show().animate(i,g.slideInSpeed,c)},function(a){var c=this.getConf(),i=c.slideOffset,j=c.slideFade?{opacity:0}:{},k=f[c.direction]||f.up,l=""+k[0];c.bounce&&(l=l=="+"?"-":"+"),j[k[1]]=l+"="+i,this.getTip().animate(j,c.slideOutSpeed,function(){d(this).hide(),a.call()})})})(jQuery);(function(a){if(typeof define==="function"&&define.amd){define(["jquery"],a)}else{a(jQuery)}})(function(o,O){var G=6,e=o.event.add,v=o.event.remove,M=function(R,S,Q){o.event.trigger(S,Q,R)},B=(function(){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(R,Q){return window.setTimeout(function(){R()},25)})})(),m={textarea:true,input:true,select:true,button:true},r={move:"mousemove",cancel:"mouseup dragstart",end:"mouseup"},J={move:"touchmove",cancel:"touchend",end:"touchend"};function H(S){var R=S,Q=false,T=false;function U(V){if(Q){R();B(U);T=true;Q=false}else{T=false}}this.kick=function(V){Q=true;if(!T){U()}};this.end=function(W){var V=R;if(!W){return}if(!T){W()}else{R=Q?function(){V();W()}:W;Q=true}}}function D(){return true}function C(){return false}function t(Q){Q.preventDefault()}function u(Q){if(m[Q.target.tagName.toLowerCase()]){return}Q.preventDefault()}function n(Q){return(Q.which===1&&!Q.ctrlKey&&!Q.altKey)}function l(T,R){var Q,S;if(T.identifiedTouch){return T.identifiedTouch(R)}Q=-1;S=T.length;while(++Q<S){if(T[Q].identifier===R){return T[Q]}}}function g(Q,R){var S=l(Q.changedTouches,R.identifier);if(!S){return}if(S.pageX===R.pageX&&S.pageY===R.pageY){return}return S}function p(R){var Q;if(!n(R)){return}Q={target:R.target,startX:R.pageX,startY:R.pageY,timeStamp:R.timeStamp};e(document,r.move,s,Q);e(document,r.cancel,q,Q)}function s(R){var Q=R.data;h(R,Q,R,z)}function q(Q){z()}function z(){v(document,r.move,s);v(document,r.cancel,z)}function L(Q){var S,R;if(m[Q.target.tagName.toLowerCase()]){return}S=Q.changedTouches[0];R={target:S.target,startX:S.pageX,startY:S.pageY,timeStamp:Q.timeStamp,identifier:S.identifier};e(document,J.move+"."+S.identifier,K,R);e(document,J.cancel+"."+S.identifier,I,R)}function K(R){var Q=R.data,S=g(R,Q);if(!S){return}h(R,Q,S,A)}function I(Q){var R=Q.data,S=l(Q.changedTouches,R.identifier);if(!S){return}A(R.identifier)}function A(Q){v(document,"."+Q,K);v(document,"."+Q,I)}function h(S,U,V,T){var Q=V.pageX-U.startX,R=V.pageY-U.startY;if((Q*Q)+(R*R)<(G*G)){return}N(S,U,V,Q,R,T)}function k(){this._handled=D;return false}function j(Q){Q._handled()}function N(S,V,X,Q,R,T){var U=V.target,Y,W;Y=S.targetTouches;W=S.timeStamp-V.timeStamp;V.type="movestart";V.distX=Q;V.distY=R;V.deltaX=Q;V.deltaY=R;V.pageX=X.pageX;V.pageY=X.pageY;V.velocityX=Q/W;V.velocityY=R/W;V.targetTouches=Y;V.finger=Y?Y.length:1;V._handled=k;V._preventTouchmoveDefault=function(){S.preventDefault()};M(V.target,V);T(V.identifier)}function b(Q){var R=Q.data.event,S=Q.data.timer;P(R,Q,Q.timeStamp,S)}function a(Q){var R=Q.data.event,S=Q.data.timer;w();i(R,S,function(){setTimeout(function(){v(R.target,"click",C)},0)})}function w(Q){v(document,r.move,b);v(document,r.end,a)}function d(Q){var R=Q.data.event,S=Q.data.timer,T=g(Q,R);if(!T){return}Q.preventDefault();R.targetTouches=Q.targetTouches;P(R,T,Q.timeStamp,S)}function c(Q){var R=Q.data.event,S=Q.data.timer,T=l(Q.changedTouches,R.identifier);if(!T){return}x(R);i(R,S)}function x(Q){v(document,"."+Q.identifier,d);v(document,"."+Q.identifier,c)}function P(Q,U,T,S){var R=T-Q.timeStamp;Q.type="move";Q.distX=U.pageX-Q.startX;Q.distY=U.pageY-Q.startY;Q.deltaX=U.pageX-Q.pageX;Q.deltaY=U.pageY-Q.pageY;Q.velocityX=0.3*Q.velocityX+0.7*Q.deltaX/R;Q.velocityY=0.3*Q.velocityY+0.7*Q.deltaY/R;Q.pageX=U.pageX;Q.pageY=U.pageY;S.kick()}function i(Q,S,R){S.end(function(){Q.type="moveend";M(Q.target,Q);return R&&R()})}function E(Q,S,R){e(this,"movestart.move",j);return true}function F(Q){v(this,"dragstart drag",t);v(this,"mousedown touchstart",u);v(this,"movestart",j);return true}function f(Q){if(Q.namespace==="move"||Q.namespace==="moveend"){return}e(this,"dragstart."+Q.guid+" drag."+Q.guid,t,O,Q.selector);e(this,"mousedown."+Q.guid,u,O,Q.selector)}function y(Q){if(Q.namespace==="move"||Q.namespace==="moveend"){return}v(this,"dragstart."+Q.guid+" drag."+Q.guid);v(this,"mousedown."+Q.guid)}o.event.special.movestart={setup:E,teardown:F,add:f,remove:y,_default:function(R){var S,Q;if(!R._handled()){return}S={target:R.target,startX:R.startX,startY:R.startY,pageX:R.pageX,pageY:R.pageY,distX:R.distX,distY:R.distY,deltaX:R.deltaX,deltaY:R.deltaY,velocityX:R.velocityX,velocityY:R.velocityY,timeStamp:R.timeStamp,identifier:R.identifier,targetTouches:R.targetTouches,finger:R.finger};Q={event:S,timer:new H(function(T){M(R.target,S)})};if(R.identifier===O){e(R.target,"click",C);e(document,r.move,b,Q);e(document,r.end,a,Q)}else{R._preventTouchmoveDefault();e(document,J.move+"."+R.identifier,d,Q);e(document,J.end+"."+R.identifier,c,Q)}}};o.event.special.move={setup:function(){e(this,"movestart.move",o.noop)},teardown:function(){v(this,"movestart.move",o.noop)}};o.event.special.moveend={setup:function(){e(this,"movestart.moveend",o.noop)},teardown:function(){v(this,"movestart.moveend",o.noop)}};e(document,"mousedown.move",p);e(document,"touchstart.move",L);if(typeof Array.prototype.indexOf==="function"){(function(Q,T){var S=["changedTouches","targetTouches"],R=S.length;while(R--){if(Q.event.props.indexOf(S[R])===-1){Q.event.props.push(S[R])}}})(o)}});(function(a){if(typeof define==="function"&&define.amd){define(["jquery"],a)}else{a(jQuery)}})(function(c,h){var a=c.event.add,e=c.event.remove,g=function(j,k,i){c.event.trigger(k,i,j)},f={threshold:0.4,sensitivity:6};function d(i){var l,k,j;l=i.target.offsetWidth;k=i.target.offsetHeight;j={distX:i.distX,distY:i.distY,velocityX:i.velocityX,velocityY:i.velocityY,finger:i.finger};if(i.distX>i.distY){if(i.distX>-i.distY){if(i.distX/l>f.threshold||i.velocityX*i.distX/l*f.sensitivity>1){j.type="swiperight";g(i.currentTarget,j)}}else{if(-i.distY/k>f.threshold||i.velocityY*i.distY/l*f.sensitivity>1){j.type="swipeup";g(i.currentTarget,j)}}}else{if(i.distX>-i.distY){if(i.distY/k>f.threshold||i.velocityY*i.distY/l*f.sensitivity>1){j.type="swipedown";g(i.currentTarget,j)}}else{if(-i.distX/l>f.threshold||i.velocityX*i.distX/l*f.sensitivity>1){j.type="swipeleft";g(i.currentTarget,j)}}}}function b(j){var i=c.data(j,"event_swipe");if(!i){i={count:0};c.data(j,"event_swipe",i)}return i}c.event.special.swipe=c.event.special.swipeleft=c.event.special.swiperight=c.event.special.swipeup=c.event.special.swipedown={setup:function(i,k,j){var i=b(this);if(i.count++>0){return}a(this,"moveend",d);return true},teardown:function(){var i=b(this);if(--i.count>0){return}e(this,"moveend",d);return true},settings:f}});
/*
 * jQuery UI Touch Punch 0.2.2
 *
 * Copyright 2011, Dave Furfero
 * Dual licensed under the MIT or GPL Version 2 licenses.
 *
 * Depends:
 *  jquery.ui.widget.js
 *  jquery.ui.mouse.js
 */
(function(a){a.support.touch="ontouchend" in document;if(!a.support.touch){return}var c=a.ui.mouse.prototype,b=c._mouseInit,e;function d(f,h){if(f.originalEvent.touches.length>1){return}f.preventDefault();var i=f.originalEvent.changedTouches[0],g=document.createEvent("MouseEvents");g.initMouseEvent(h,true,true,window,1,i.screenX,i.screenY,i.clientX,i.clientY,false,false,false,false,0,null);f.target.dispatchEvent(g)}c._touchStart=function(f){var g=this;if(e||!g._mouseCapture(f.originalEvent.changedTouches[0])){return}e=true;g._touchMoved=false;d(f,"mouseover");d(f,"mousemove");d(f,"mousedown")};c._touchMove=function(f){if(!e){return}this._touchMoved=true;d(f,"mousemove")};c._touchEnd=function(f){if(!e){return}d(f,"mouseup");d(f,"mouseout");if(!this._touchMoved){d(f,"click")}e=false};c._mouseInit=function(){var f=this;f.element.bind("touchstart",a.proxy(f,"_touchStart")).bind("touchmove",a.proxy(f,"_touchMove")).bind("touchend",a.proxy(f,"_touchEnd"));b.call(f)}})(jQuery);if(typeof JSON!=="object"){JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||"null"}v=partial.length===0?"[]":gap?"[\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"]":"["+partial.join(",")+"]";gap=mind;return v}if(rep&&typeof rep==="object"){length=rep.length;for(i=0;i<length;i+=1){if(typeof rep[i]==="string"){k=rep[i];v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}else{for(k in value){if(Object.prototype.hasOwnProperty.call(value,k)){v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}v=partial.length===0?"{}":gap?"{\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"}":"{"+partial.join(",")+"}";gap=mind;return v}}if(typeof JSON.stringify!=="function"){JSON.stringify=function(value,replacer,space){var i;gap="";indent="";if(typeof space==="number"){for(i=0;i<space;i+=1){indent+=" "}}else{if(typeof space==="string"){indent=space}}rep=replacer;if(replacer&&typeof replacer!=="function"&&(typeof replacer!=="object"||typeof replacer.length!=="number")){throw new Error("JSON.stringify")}return str("",{"":value})}}if(typeof JSON.parse!=="function"){JSON.parse=function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==="object"){for(k in value){if(Object.prototype.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v}else{delete value[k]}}}}return reviver.call(holder,key,value)}text=String(text);cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})}if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){j=eval("("+text+")");return typeof reviver==="function"?walk({"":j},""):j}throw new SyntaxError("JSON.parse")}}}());(function(d,c){var a=d.History=d.History||{},b=d.jQuery;if(typeof a.Adapter!=="undefined"){throw new Error("History.js Adapter has already been loaded...")}a.Adapter={bind:function(f,g,e){b(f).bind(g,e)},trigger:function(e,f,g){b(e).trigger(f,g)},extractEventData:function(g,e,f){var h=(e&&e.originalEvent&&e.originalEvent[g])||(f&&f[g])||c;return h},onDomLoad:function(e){b(e)}};if(typeof a.init!=="undefined"){a.init()}})(window);(function(g,f){var b=g.document,e=g.setTimeout||e,a=g.clearTimeout||a,d=g.setInterval||d,c=g.History=g.History||{};if(typeof c.initHtml4!=="undefined"){throw new Error("History.js HTML4 Support has already been loaded...")}c.initHtml4=function(){if(typeof c.initHtml4.initialized!=="undefined"){return false}else{c.initHtml4.initialized=true}c.enabled=true;c.savedHashes=[];c.isLastHash=function(i){var j=c.getHashByIndex(),h;h=i===j;return h};c.isHashEqual=function(h,i){h=encodeURIComponent(h).replace(/%25/g,"%");i=encodeURIComponent(i).replace(/%25/g,"%");return h===i};c.saveHash=function(h){if(c.isLastHash(h)){return false}c.savedHashes.push(h);return true};c.getHashByIndex=function(i){var h=null;if(typeof i==="undefined"){h=c.savedHashes[c.savedHashes.length-1]}else{if(i<0){h=c.savedHashes[c.savedHashes.length+i]}else{h=c.savedHashes[i]}}return h};c.discardedHashes={};c.discardedStates={};c.discardState=function(i,l,h){var j=c.getHashByState(i),k;k={discardedState:i,backState:h,forwardState:l};c.discardedStates[j]=k;return true};c.discardHash=function(i,k,h){var j={discardedHash:i,backState:h,forwardState:k};c.discardedHashes[i]=j;return true};c.discardedState=function(i){var j=c.getHashByState(i),h;h=c.discardedStates[j]||false;return h};c.discardedHash=function(i){var h=c.discardedHashes[i]||false;return h};c.recycleState=function(h){var i=c.getHashByState(h);if(c.discardedState(h)){delete c.discardedStates[i]}return true};if(c.emulated.hashChange){c.hashChangeInit=function(){c.checkerFunction=null;var k="",j,i,l,h,m=Boolean(c.getHash());if(c.isInternetExplorer()){j="historyjs-iframe";i=b.createElement("iframe");i.setAttribute("id",j);i.setAttribute("src","#");i.style.display="none";b.body.appendChild(i);i.contentWindow.document.open();i.contentWindow.document.close();l="";h=false;c.checkerFunction=function(){if(h){return false}h=true;var n=c.getHash(),o=c.getHash(i.contentWindow.document);if(n!==k){k=n;if(o!==n){l=o=n;i.contentWindow.document.open();i.contentWindow.document.close();i.contentWindow.document.location.hash=c.escapeHash(n)}c.Adapter.trigger(g,"hashchange")}else{if(o!==l){l=o;if(m&&o===""){c.back()}else{c.setHash(o,false)}}}h=false;return true}}else{c.checkerFunction=function(){var n=c.getHash()||"";if(n!==k){k=n;c.Adapter.trigger(g,"hashchange")}return true}}c.intervalList.push(d(c.checkerFunction,c.options.hashChangeInterval));return true};c.Adapter.onDomLoad(c.hashChangeInit)}if(c.emulated.pushState){c.onHashChange=function(n){var l=((n&&n.newURL)||c.getLocationHref()),h=c.getHashByUrl(l),i=null,j=null,k=null,m;if(c.isLastHash(h)){c.busy(false);return false}c.doubleCheckComplete();c.saveHash(h);if(h&&c.isTraditionalAnchor(h)){c.Adapter.trigger(g,"anchorchange");c.busy(false);return false}i=c.extractState(c.getFullUrl(h||c.getLocationHref()),true);if(c.isLastSavedState(i)){c.busy(false);return false}j=c.getHashByState(i);m=c.discardedState(i);if(m){if(c.getHashByIndex(-2)===c.getHashByState(m.forwardState)){c.back(false)}else{c.forward(false)}return false}c.pushState(i.data,i.title,encodeURI(i.url),false);return true};c.Adapter.bind(g,"hashchange",c.onHashChange);c.pushState=function(h,o,p,n){p=encodeURI(p).replace(/%25/g,"%");if(c.getHashByUrl(p)){throw new Error("History.js does not support states with fragment-identifiers (hashes/anchors).")}if(n!==false&&c.busy()){c.pushQueue({scope:c,callback:c.pushState,args:arguments,queue:n});return false}c.busy(true);var j=c.createStateObject(h,o,p),k=c.getHashByState(j),l=c.getState(false),m=c.getHashByState(l),i=c.getHash(),q=c.expectedStateId==j.id;c.storeState(j);c.expectedStateId=j.id;c.recycleState(j);c.setTitle(j);if(k===m){c.busy(false);return false}c.saveState(j);if(!q){c.Adapter.trigger(g,"statechange")}if(!c.isHashEqual(k,i)&&!c.isHashEqual(k,c.getShortUrl(c.getLocationHref()))){c.setHash(k,false)}c.busy(false);return true};c.replaceState=function(h,o,p,n){p=encodeURI(p).replace(/%25/g,"%");if(c.getHashByUrl(p)){throw new Error("History.js does not support states with fragment-identifiers (hashes/anchors).")}if(n!==false&&c.busy()){c.pushQueue({scope:c,callback:c.replaceState,args:arguments,queue:n});return false}c.busy(true);var i=c.createStateObject(h,o,p),j=c.getHashByState(i),k=c.getState(false),l=c.getHashByState(k),m=c.getStateByIndex(-2);c.discardState(k,i,m);if(j===l){c.storeState(i);c.expectedStateId=i.id;c.recycleState(i);c.setTitle(i);c.saveState(i);c.Adapter.trigger(g,"statechange");c.busy(false)}else{c.pushState(i.data,i.title,i.url,false)}return true}}if(c.emulated.pushState){if(c.getHash()&&!c.emulated.hashChange){c.Adapter.onDomLoad(function(){c.Adapter.trigger(g,"hashchange")})}}};if(typeof c.init!=="undefined"){c.init()}})(window);(function(p,o){var d=p.console||o,f=p.document,k=p.navigator,l=p.sessionStorage||false,n=p.setTimeout,c=p.clearTimeout,m=p.setInterval,b=p.clearInterval,j=p.JSON,a=p.alert,i=p.History=p.History||{},h=p.history;try{l.setItem("TEST","1");l.removeItem("TEST")}catch(g){l=false}j.stringify=j.stringify||j.encode;j.parse=j.parse||j.decode;if(typeof i.init!=="undefined"){throw new Error("History.js Core has already been loaded...")}i.init=function(e){if(typeof i.Adapter==="undefined"){return false}if(typeof i.initCore!=="undefined"){i.initCore()}if(typeof i.initHtml4!=="undefined"){i.initHtml4()}return true};i.initCore=function(r){if(typeof i.initCore.initialized!=="undefined"){return false}else{i.initCore.initialized=true}i.options=i.options||{};i.options.hashChangeInterval=i.options.hashChangeInterval||100;i.options.safariPollInterval=i.options.safariPollInterval||500;i.options.doubleCheckInterval=i.options.doubleCheckInterval||500;i.options.disableSuid=i.options.disableSuid||false;i.options.storeInterval=i.options.storeInterval||1000;i.options.busyDelay=i.options.busyDelay||250;i.options.debug=i.options.debug||false;i.options.initialTitle=i.options.initialTitle||f.title;i.options.html4Mode=i.options.html4Mode||false;i.options.delayInit=i.options.delayInit||false;i.intervalList=[];i.clearAllIntervals=function(){var s,t=i.intervalList;if(typeof t!=="undefined"&&t!==null){for(s=0;s<t.length;s++){b(t[s])}i.intervalList=null}};i.debug=function(){if((i.options.debug||false)){i.log.apply(i,arguments)}};i.log=function(){var u=!(typeof d==="undefined"||typeof d.log==="undefined"||typeof d.log.apply==="undefined"),z=f.getElementById("log"),x,w,y,t,s;if(u){t=Array.prototype.slice.call(arguments);x=t.shift();if(typeof d.debug!=="undefined"){d.debug.apply(d,[x,t])}else{d.log.apply(d,[x,t])}}else{x=("\n"+arguments[0]+"\n")}for(w=1,y=arguments.length;w<y;++w){s=arguments[w];if(typeof s==="object"&&typeof j!=="undefined"){try{s=j.stringify(s)}catch(v){}}x+="\n"+s+"\n"}if(z){z.value+=x+"\n-----\n";z.scrollTop=z.scrollHeight-z.clientHeight}else{if(!u){a(x)}}return true};i.getInternetExplorerMajorVersion=function(){var s=i.getInternetExplorerMajorVersion.cached=(typeof i.getInternetExplorerMajorVersion.cached!=="undefined")?i.getInternetExplorerMajorVersion.cached:(function(){var w=3,u=f.createElement("div"),t=u.getElementsByTagName("i");while((u.innerHTML="<!--[if gt IE "+(++w)+"]><i></i><![endif]-->")&&t[0]){}return(w>4)?w:false})();return s};i.isInternetExplorer=function(){var s=i.isInternetExplorer.cached=(typeof i.isInternetExplorer.cached!=="undefined")?i.isInternetExplorer.cached:Boolean(i.getInternetExplorerMajorVersion());return s};if(i.options.html4Mode){i.emulated={pushState:true,hashChange:true}}else{i.emulated={pushState:!Boolean(p.history&&p.history.pushState&&p.history.replaceState&&!((/ Mobile\/([1-7][a-z]|(8([abcde]|f(1[0-8]))))/i).test(k.userAgent)||(/AppleWebKit\/5([0-2]|3[0-2])/i).test(k.userAgent))),hashChange:Boolean(!(("onhashchange" in p)||("onhashchange" in f))||(i.isInternetExplorer()&&i.getInternetExplorerMajorVersion()<8))}}i.enabled=!i.emulated.pushState;i.bugs={setHash:Boolean(!i.emulated.pushState&&k.vendor==="Apple Computer, Inc."&&/AppleWebKit\/5([0-2]|3[0-3])/.test(k.userAgent)),safariPoll:Boolean(!i.emulated.pushState&&k.vendor==="Apple Computer, Inc."&&/AppleWebKit\/5([0-2]|3[0-3])/.test(k.userAgent)),ieDoubleCheck:Boolean(i.isInternetExplorer()&&i.getInternetExplorerMajorVersion()<8),hashEscape:Boolean(i.isInternetExplorer()&&i.getInternetExplorerMajorVersion()<7)};i.isEmptyObject=function(t){for(var s in t){if(t.hasOwnProperty(s)){return false}}return true};i.cloneObject=function(u){var s,t;if(u){s=j.stringify(u);t=j.parse(s)}else{t={}}return t};i.getRootUrl=function(){var s=f.location.protocol+"//"+(f.location.hostname||f.location.host);if(f.location.port||false){s+=":"+f.location.port}s+="/";return s};i.getBaseHref=function(){var t=f.getElementsByTagName("base"),s=null,u="";if(t.length===1){s=t[0];u=s.href.replace(/[^\/]+$/,"")}u=u.replace(/\/+$/,"");if(u){u+="/"}return u};i.getBaseUrl=function(){var s=i.getBaseHref()||i.getBasePageUrl()||i.getRootUrl();return s};i.getPageUrl=function(){var t=i.getState(false,false),u=(t||{}).url||i.getLocationHref(),s;s=u.replace(/\/+$/,"").replace(/[^\/]+$/,function(w,v,x){return(/\./).test(w)?w:w+"/"});return s};i.getBasePageUrl=function(){var s=(i.getLocationHref()).replace(/[#\?].*/,"").replace(/[^\/]+$/,function(u,t,v){return(/[^\/]$/).test(u)?"":u}).replace(/\/+$/,"")+"/";return s};i.getFullUrl=function(v,s){var u=v,t=v.substring(0,1);s=(typeof s==="undefined")?true:s;if(/[a-z]+\:\/\//.test(v)){}else{if(t==="/"){u=i.getRootUrl()+v.replace(/^\/+/,"")}else{if(t==="#"){u=i.getPageUrl().replace(/#.*/,"")+v}else{if(t==="?"){u=i.getPageUrl().replace(/[\?#].*/,"")+v}else{if(s){u=i.getBaseUrl()+v.replace(/^(\.\/)+/,"")}else{u=i.getBasePageUrl()+v.replace(/^(\.\/)+/,"")}}}}}return u.replace(/\#$/,"")};i.getShortUrl=function(v){var u=v,s=i.getBaseUrl(),t=i.getRootUrl();if(i.emulated.pushState){u=u.replace(s,"")}u=u.replace(t,"/");if(i.isTraditionalAnchor(u)){u="./"+u}u=u.replace(/^(\.\/)+/g,"./").replace(/\#$/,"");return u};i.getLocationHref=function(s){s=s||f;if(s.URL===s.location.href){return s.location.href}if(s.location.href===decodeURIComponent(s.URL)){return s.URL}if(s.location.hash&&decodeURIComponent(s.location.href.replace(/^[^#]+/,""))===s.location.hash){return s.location.href}if(s.URL.indexOf("#")==-1&&s.location.href.indexOf("#")!=-1){return s.location.href}return s.URL||s.location.href};i.store={};i.idToState=i.idToState||{};i.stateToId=i.stateToId||{};i.urlToId=i.urlToId||{};i.storedStates=i.storedStates||[];i.savedStates=i.savedStates||[];i.normalizeStore=function(){i.store.idToState=i.store.idToState||{};i.store.urlToId=i.store.urlToId||{};i.store.stateToId=i.store.stateToId||{}};i.getState=function(t,s){if(typeof t==="undefined"){t=true}if(typeof s==="undefined"){s=true}var u=i.getLastSavedState();if(!u&&s){u=i.createStateObject()}if(t){u=i.cloneObject(u);u.url=u.cleanUrl||u.url}return u};i.getIdByState=function(t){var s=i.extractId(t.url),u;if(!s){u=i.getStateString(t);if(typeof i.stateToId[u]!=="undefined"){s=i.stateToId[u]}else{if(typeof i.store.stateToId[u]!=="undefined"){s=i.store.stateToId[u]}else{while(true){s=(new Date()).getTime()+String(Math.random()).replace(/\D/g,"");if(typeof i.idToState[s]==="undefined"&&typeof i.store.idToState[s]==="undefined"){break}}i.stateToId[u]=s;i.idToState[s]=t}}}return s};i.normalizeState=function(u){var t,s;if(!u||(typeof u!=="object")){u={}}if(typeof u.normalized!=="undefined"){return u}if(!u.data||(typeof u.data!=="object")){u.data={}}t={};t.normalized=true;t.title=u.title||"";t.url=i.getFullUrl(u.url?u.url:(i.getLocationHref()));t.hash=i.getShortUrl(t.url);t.data=i.cloneObject(u.data);t.id=i.getIdByState(t);t.cleanUrl=t.url.replace(/\??\&_suid.*/,"");t.url=t.cleanUrl;s=!i.isEmptyObject(t.data);if((t.title||s)&&i.options.disableSuid!==true){t.hash=i.getShortUrl(t.url).replace(/\??\&_suid.*/,"");if(!/\?/.test(t.hash)){t.hash+="?"}t.hash+="&_suid="+t.id}t.hashedUrl=i.getFullUrl(t.hash);if((i.emulated.pushState||i.bugs.safariPoll)&&i.hasUrlDuplicate(t)){t.url=t.hashedUrl}return t};i.createStateObject=function(s,u,v){var t={data:s,title:u,url:v};t=i.normalizeState(t);return t};i.getStateById=function(s){s=String(s);var t=i.idToState[s]||i.store.idToState[s]||o;return t};i.getStateString=function(t){var u,s,v;u=i.normalizeState(t);s={data:u.data,title:t.title,url:t.url};v=j.stringify(s);return v};i.getStateId=function(t){var u,s;u=i.normalizeState(t);s=u.id;return s};i.getHashByState=function(t){var u,s;u=i.normalizeState(t);s=u.hash;return s};i.extractId=function(w){var s,t,v,u;if(w.indexOf("#")!=-1){u=w.split("#")[0]}else{u=w}t=/(.*)\&_suid=([0-9]+)$/.exec(u);v=t?(t[1]||w):w;s=t?String(t[2]||""):"";return s||false};i.isTraditionalAnchor=function(t){var s=!(/[\/\?\.]/.test(t));return s};i.extractState=function(w,s){var u=null,t,v;s=s||false;t=i.extractId(w);if(t){u=i.getStateById(t)}if(!u){v=i.getFullUrl(w);t=i.getIdByUrl(v)||false;if(t){u=i.getStateById(t)}if(!u&&s&&!i.isTraditionalAnchor(w)){u=i.createStateObject(null,null,v)}}return u};i.getIdByUrl=function(t){var s=i.urlToId[t]||i.store.urlToId[t]||o;return s};i.getLastSavedState=function(){return i.savedStates[i.savedStates.length-1]||o};i.getLastStoredState=function(){return i.storedStates[i.storedStates.length-1]||o};i.hasUrlDuplicate=function(t){var s=false,u;u=i.extractState(t.url);s=u&&u.id!==t.id;return s};i.storeState=function(s){i.urlToId[s.url]=s.id;i.storedStates.push(i.cloneObject(s));return s};i.isLastSavedState=function(u){var s=false,t,w,v;if(i.savedStates.length){t=u.id;w=i.getLastSavedState();v=w.id;s=(t===v)}return s};i.saveState=function(s){if(i.isLastSavedState(s)){return false}i.savedStates.push(i.cloneObject(s));return true};i.getStateByIndex=function(s){var t=null;if(typeof s==="undefined"){t=i.savedStates[i.savedStates.length-1]}else{if(s<0){t=i.savedStates[i.savedStates.length+s]}else{t=i.savedStates[s]}}return t};i.getCurrentIndex=function(){var s=null;if(i.savedStates.length<1){s=0}else{s=i.savedStates.length-1}return s};i.getHash=function(s){var u=i.getLocationHref(s),t;t=i.getHashByUrl(u);return t};i.unescapeHash=function(s){var t=i.normalizeHash(s);t=decodeURIComponent(t);return t};i.normalizeHash=function(s){var t=s.replace(/[^#]*#/,"").replace(/#.*/,"");return t};i.setHash=function(s,u){var v,t;if(u!==false&&i.busy()){i.pushQueue({scope:i,callback:i.setHash,args:arguments,queue:u});return false}i.busy(true);v=i.extractState(s,true);if(v&&!i.emulated.pushState){i.pushState(v.data,v.title,v.url,false)}else{if(i.getHash()!==s){if(i.bugs.setHash){t=i.getPageUrl();i.pushState(null,null,t+"#"+s,false)}else{f.location.hash=s}}}return i};i.escapeHash=function(s){var t=i.normalizeHash(s);t=p.encodeURIComponent(t);if(!i.bugs.hashEscape){t=t.replace(/\%21/g,"!").replace(/\%26/g,"&").replace(/\%3D/g,"=").replace(/\%3F/g,"?")}return t};i.getHashByUrl=function(t){var s=String(t).replace(/([^#]*)#?([^#]*)#?(.*)/,"$2");s=i.unescapeHash(s);return s};i.setTitle=function(u){var v=u.title,t;if(!v){t=i.getStateByIndex(0);if(t&&t.url===u.url){v=t.title||i.options.initialTitle}}try{f.getElementsByTagName("title")[0].innerHTML=v.replace("<","&lt;").replace(">","&gt;").replace(" & "," &amp; ")}catch(s){}f.title=v;return i};i.queues=[];i.busy=function(t){if(typeof t!=="undefined"){i.busy.flag=t}else{if(typeof i.busy.flag==="undefined"){i.busy.flag=false}}if(!i.busy.flag){c(i.busy.timeout);var s=function(){var u,w,v;if(i.busy.flag){return}for(u=i.queues.length-1;u>=0;--u){w=i.queues[u];if(w.length===0){continue}v=w.shift();i.fireQueueItem(v);i.busy.timeout=n(s,i.options.busyDelay)}};i.busy.timeout=n(s,i.options.busyDelay)}return i.busy.flag};i.busy.flag=false;i.fireQueueItem=function(s){return s.callback.apply(s.scope||i,s.args||[])};i.pushQueue=function(s){i.queues[s.queue||0]=i.queues[s.queue||0]||[];i.queues[s.queue||0].push(s);return i};i.queue=function(s,t){if(typeof s==="function"){s={callback:s}}if(typeof t!=="undefined"){s.queue=t}if(i.busy()){i.pushQueue(s)}else{i.fireQueueItem(s)}return i};i.clearQueue=function(){i.busy.flag=false;i.queues=[];return i};i.stateChanged=false;i.doubleChecker=false;i.doubleCheckComplete=function(){i.stateChanged=true;i.doubleCheckClear();return i};i.doubleCheckClear=function(){if(i.doubleChecker){c(i.doubleChecker);i.doubleChecker=false}return i};i.doubleCheck=function(s){i.stateChanged=false;i.doubleCheckClear();if(i.bugs.ieDoubleCheck){i.doubleChecker=n(function(){i.doubleCheckClear();if(!i.stateChanged){s()}return true},i.options.doubleCheckInterval)}return i};i.safariStatePoll=function(){var t=i.extractState(i.getLocationHref()),s;if(!i.isLastSavedState(t)){s=t}else{return}if(!s){s=i.createStateObject()}i.Adapter.trigger(p,"popstate");return i};i.back=function(s){if(s!==false&&i.busy()){i.pushQueue({scope:i,callback:i.back,args:arguments,queue:s});return false}i.busy(true);i.doubleCheck(function(){i.back(false)});h.go(-1);return true};i.forward=function(s){if(s!==false&&i.busy()){i.pushQueue({scope:i,callback:i.forward,args:arguments,queue:s});return false}i.busy(true);i.doubleCheck(function(){i.forward(false)});h.go(1);return true};i.go=function(t,u){var s;if(t>0){for(s=1;s<=t;++s){i.forward(u)}}else{if(t<0){for(s=-1;s>=t;--s){i.back(u)}}else{throw new Error("History.go: History.go requires a positive or negative integer passed.")}}return i};if(i.emulated.pushState){var e=function(){};i.pushState=i.pushState||e;i.replaceState=i.replaceState||e}else{i.onPopState=function(u,v){var x=false,w=false,s,t;i.doubleCheckComplete();s=i.getHash();if(s){t=i.extractState(s||i.getLocationHref(),true);if(t){i.replaceState(t.data,t.title,t.url,false)}else{i.Adapter.trigger(p,"anchorchange");i.busy(false)}i.expectedStateId=false;return false}x=i.Adapter.extractEventData("state",u,v)||false;if(x){w=i.getStateById(x)}else{if(i.expectedStateId){w=i.getStateById(i.expectedStateId)}else{w=i.extractState(i.getLocationHref())}}if(!w){w=i.createStateObject(null,null,i.getLocationHref())}i.expectedStateId=false;if(i.isLastSavedState(w)){i.busy(false);return false}i.storeState(w);i.saveState(w);i.setTitle(w);i.Adapter.trigger(p,"statechange");i.busy(false);return true};i.Adapter.bind(p,"popstate",i.onPopState);i.pushState=function(s,v,w,u){if(i.getHashByUrl(w)&&i.emulated.pushState){throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).")}if(u!==false&&i.busy()){i.pushQueue({scope:i,callback:i.pushState,args:arguments,queue:u});return false}i.busy(true);var t=i.createStateObject(s,v,w);if(i.isLastSavedState(t)){i.busy(false)}else{i.storeState(t);i.expectedStateId=t.id;h.pushState(t.id,t.title,t.url);i.Adapter.trigger(p,"popstate")}return true};i.replaceState=function(s,v,w,u){if(i.getHashByUrl(w)&&i.emulated.pushState){throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).")}if(u!==false&&i.busy()){i.pushQueue({scope:i,callback:i.replaceState,args:arguments,queue:u});return false}i.busy(true);var t=i.createStateObject(s,v,w);if(i.isLastSavedState(t)){i.busy(false)}else{i.storeState(t);i.expectedStateId=t.id;h.replaceState(t.id,t.title,t.url);i.Adapter.trigger(p,"popstate")}return true}}if(l){try{i.store=j.parse(l.getItem("History.store"))||{}}catch(q){i.store={}}i.normalizeStore()}else{i.store={};i.normalizeStore()}i.Adapter.bind(p,"unload",i.clearAllIntervals);i.saveState(i.storeState(i.extractState(i.getLocationHref(),true)));if(l){i.onUnload=function(){var s,w,t;try{s=j.parse(l.getItem("History.store"))||{}}catch(v){s={}}s.idToState=s.idToState||{};s.urlToId=s.urlToId||{};s.stateToId=s.stateToId||{};for(w in i.idToState){if(!i.idToState.hasOwnProperty(w)){continue}s.idToState[w]=i.idToState[w]}for(w in i.urlToId){if(!i.urlToId.hasOwnProperty(w)){continue}s.urlToId[w]=i.urlToId[w]}for(w in i.stateToId){if(!i.stateToId.hasOwnProperty(w)){continue}s.stateToId[w]=i.stateToId[w]}i.store=s;i.normalizeStore();t=j.stringify(s);try{l.setItem("History.store",t)}catch(u){if(u.code===DOMException.QUOTA_EXCEEDED_ERR){if(l.length){l.removeItem("History.store");l.setItem("History.store",t)}else{}}else{throw u}}};i.intervalList.push(m(i.onUnload,i.options.storeInterval));i.Adapter.bind(p,"beforeunload",i.onUnload);i.Adapter.bind(p,"unload",i.onUnload)}if(!i.emulated.pushState){if(i.bugs.safariPoll){i.intervalList.push(m(i.safariStatePoll,i.options.safariPollInterval))}if(k.vendor==="Apple Computer, Inc."||(k.appCodeName||"")==="Mozilla"){i.Adapter.bind(p,"hashchange",function(){i.Adapter.trigger(p,"popstate")});if(i.getHash()){i.Adapter.onDomLoad(function(){i.Adapter.trigger(p,"hashchange")})}}}};if(!i.options||!i.options.delayInit){i.init()}})(window);(function(l){var k=navigator.userAgent;if(!(/iPhone|iPad|iPod/.test(navigator.platform)&&/OS [1-5]_[0-9_]* like Mac OS X/i.test(k)&&k.indexOf("AppleWebKit")>-1)){return}var e=l.document;if(!e.querySelector){return}var i=e.querySelector("meta[name=viewport]"),h=i&&i.getAttribute("content"),c=h+",maximum-scale=1",g=h+",maximum-scale=10",f=true,m,n,o,a;if(!i){return}function j(){i.setAttribute("content",g);f=true}function d(){i.setAttribute("content",c);f=false}function b(p){a=p.accelerationIncludingGravity;m=Math.abs(a.x);n=Math.abs(a.y);o=Math.abs(a.z);if((!l.orientation||l.orientation===180)&&(m>7||((o>6&&n<8||o<8&&n>6)&&m>5))){if(f){d()}}else{if(!f){j()}}}l.addEventListener("orientationchange",j,false);l.addEventListener("devicemotion",b,false)})(this);(function(a){if(typeof define==="function"&&define.amd&&define.amd.jQuery){define(["jquery"],a)}else{a(jQuery)}}(function(a){var k="left",u="right",z="up",g="down",i="in",n="out",m="none",c="auto",w="swipe",s="pinch",x="tap",e="doubletap",l="longtap",h="horizontal",A="vertical",b="all",f=10,r="start",q="move",p="end",o="cancel",v="ontouchstart" in window,t="TouchSwipe";var d={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,triggerOnTouchEnd:true,triggerOnTouchLeave:false,allowPageScroll:"auto",fallbackToMouseEvents:true,excludedElements:"label, button, input, select, textarea, a, .noSwipe"};a.fn.swipe=function(C){var B=a(this),D=B.data(t);if(D&&typeof C==="string"){if(D[C]){return D[C].apply(this,Array.prototype.slice.call(arguments,1))}else{a.error("Method "+C+" does not exist on jQuery.swipe")}}else{if(!D&&(typeof C==="object"||!C)){return j.apply(this,arguments)}}return B};a.fn.swipe.defaults=d;a.fn.swipe.phases={PHASE_START:r,PHASE_MOVE:q,PHASE_END:p,PHASE_CANCEL:o};a.fn.swipe.directions={LEFT:k,RIGHT:u,UP:z,DOWN:g,IN:i,OUT:n};a.fn.swipe.pageScroll={NONE:m,HORIZONTAL:h,VERTICAL:A,AUTO:c};a.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,ALL:b};function j(B){if(B&&(B.allowPageScroll===undefined&&(B.swipe!==undefined||B.swipeStatus!==undefined))){B.allowPageScroll=m}if(B.click!==undefined&&B.tap===undefined){B.tap=B.click}if(!B){B={}}B=a.extend({},a.fn.swipe.defaults,B);return this.each(function(){var C=a(this);var D=C.data(t);if(!D){D=new y(this,B);C.data(t,D)}})}function y(aa,ay){var aV=(v||!ay.fallbackToMouseEvents),aJ=aV?"touchstart":"mousedown",ax=aV?"touchmove":"mousemove",ab=aV?"touchend":"mouseup",av=aV?null:"mouseleave",J="touchcancel";var W=0,V=null,Y=0,aM=0,ad=0,aC=1,aB=0,aA=0,aw=null;var B=a(aa);var az="start";var ae=0;var af=null;var aL=0,ac=0,aD=0,aE=0,X=0;var aI=null;try{B.bind(aJ,aR);B.bind(J,aN)}catch(Z){a.error("events not supported "+aJ+","+J+" on jQuery.swipe")}this.enable=function(){B.bind(aJ,aR);B.bind(J,aN);return B};this.disable=function(){aF();return B};this.destroy=function(){aF();B.data(t,null);return B};this.option=function(a7,a8){if(ay[a7]!==undefined){if(a8===undefined){return ay[a7]}else{ay[a7]=a8}}else{a.error("Option "+a7+" does not exist on jQuery.swipe.options")}return null};function aR(a9){if(al()){return}if(a(a9.target).closest(ay.excludedElements,B).length>0){return}var a7=a9.originalEvent?a9.originalEvent:a9;var ba,a8=v?a7.touches[0]:a7;az=r;if(v){ae=a7.touches.length}else{a9.preventDefault()}W=0;V=null;aA=null;Y=0;aM=0;ad=0;aC=1;aB=0;af=L();aw=N();K();if(!v||(ae===ay.fingers||ay.fingers===b)||ao()){M(0,a8);aL=ak();if(ae==2){M(1,a7.touches[1]);aM=ad=I(af[0].start,af[1].start)}if(ay.swipeStatus||ay.pinchStatus){ba=aS(a7,az)}}else{ba=false}if(ba===false){az=o;aS(a7,az);return ba}else{aH(true)}return null}function aQ(bc){var a9=bc.originalEvent?bc.originalEvent:bc;if(az===p||az===o||at()){return}var bd,ba=v?a9.touches[0]:a9;var a8=aU(ba);ac=ak();if(v){ae=a9.touches.length}az=q;if(ae==2){if(aM==0){M(1,a9.touches[1]);aM=ad=I(af[0].start,af[1].start)}else{aU(a9.touches[1]);ad=I(af[0].end,af[1].end);aA=G(af[0].end,af[1].end)}aC=H(aM,ad);aB=Math.abs(aM-ad)}if((ae===ay.fingers||ay.fingers===b)||!v||ao()){V=D(a8.start,a8.end);aW(bc,V);W=E(a8.start,a8.end);Y=F();aG(V,W);if(ay.swipeStatus||ay.pinchStatus){bd=aS(a9,az)}if(!ay.triggerOnTouchEnd||ay.triggerOnTouchLeave){var bb=true;if(ay.triggerOnTouchLeave){var a7=ag(this);bb=au(a8.end,a7)}if(!ay.triggerOnTouchEnd&&bb){az=aj(q)}else{if(ay.triggerOnTouchLeave&&!bb){az=aj(p)}}if(az==o||az==p){aS(a9,az)}}}else{az=o;aS(a9,az)}if(bd===false){az=o;aS(a9,az)}}function aO(a8){var a7=a8.originalEvent;if(v){if(a7.touches.length>0){aK();return true}}if(at()){ae=aE}a8.preventDefault();ac=ak();Y=F();if(T()){az=o;aS(a7,az)}else{if(ay.triggerOnTouchEnd||(ay.triggerOnTouchEnd==false&&az===q)){az=p;aS(a7,az)}else{if(!ay.triggerOnTouchEnd&&aq()){az=p;aT(a7,az,x)}else{if(az===q){az=o;aS(a7,az)}}}}aH(false);return null}function aN(){ae=0;ac=0;aL=0;aM=0;ad=0;aC=1;K();aH(false)}function aP(a8){var a7=a8.originalEvent;if(ay.triggerOnTouchLeave){az=aj(p);aS(a7,az)}}function aF(){B.unbind(aJ,aR);B.unbind(J,aN);B.unbind(ax,aQ);B.unbind(ab,aO);if(av){B.unbind(av,aP)}aH(false)}function aj(a7){var a9=a7;var bb=a5();var ba=a4();var a8=T();if(!bb||a8){a9=o}else{if(ba&&a7==q&&(!ay.triggerOnTouchEnd||ay.triggerOnTouchLeave)){a9=p}else{if(!ba&&a7==p&&ay.triggerOnTouchLeave){a9=o}}}return a9}function aS(a7,a8){var a9=undefined;if(S()||ap()){a9=aT(a7,a8,w)}else{if((R()||ao())&&a9!==false){a9=aT(a7,a8,s)}}if(P()&&a9!==false){a9=aT(a7,a8,e)}else{if(Q()&&a9!==false){a9=aT(a7,a8,l)}else{if(U()&&a9!==false){a9=aT(a7,a8,x)}}}if(a8===o){aN(a7)}if(a8===p){if(v){if(a7.touches.length==0){aN(a7)}}else{aN(a7)}}return a9}function aT(a7,a9,a8){var ba=undefined;if(a8==w){B.trigger("swipeStatus",[a9,V||null,W||0,Y||0,ae]);if(ay.swipeStatus){ba=ay.swipeStatus.call(B,a7,a9,V||null,W||0,Y||0,ae);if(ba===false){return false}}if(a9==p&&a3()){B.trigger("swipe",[V,W,Y,ae]);if(ay.swipe){ba=ay.swipe.call(B,a7,V,W,Y,ae);if(ba===false){return false}}switch(V){case k:B.trigger("swipeLeft",[V,W,Y,ae]);if(ay.swipeLeft){ba=ay.swipeLeft.call(B,a7,V,W,Y,ae)}break;case u:B.trigger("swipeRight",[V,W,Y,ae]);if(ay.swipeRight){ba=ay.swipeRight.call(B,a7,V,W,Y,ae)}break;case z:B.trigger("swipeUp",[V,W,Y,ae]);if(ay.swipeUp){ba=ay.swipeUp.call(B,a7,V,W,Y,ae)}break;case g:B.trigger("swipeDown",[V,W,Y,ae]);if(ay.swipeDown){ba=ay.swipeDown.call(B,a7,V,W,Y,ae)}break}}}if(a8==s){B.trigger("pinchStatus",[a9,aA||null,aB||0,Y||0,ae,aC]);if(ay.pinchStatus){ba=ay.pinchStatus.call(B,a7,a9,aA||null,aB||0,Y||0,ae,aC);if(ba===false){return false}}if(a9==p&&a1()){switch(aA){case i:B.trigger("pinchIn",[aA||null,aB||0,Y||0,ae,aC]);if(ay.pinchIn){ba=ay.pinchIn.call(B,a7,aA||null,aB||0,Y||0,ae,aC)}break;case n:B.trigger("pinchOut",[aA||null,aB||0,Y||0,ae,aC]);if(ay.pinchOut){ba=ay.pinchOut.call(B,a7,aA||null,aB||0,Y||0,ae,aC)}break}}}if(a8==x){if(a9===o||a9===p){clearTimeout(aI);if(am()&&!ar()){X=ak();aI=setTimeout(a.proxy(function(){X=null;B.trigger("tap",[a7.target]);if(ay.tap){ba=ay.tap.call(B,a7,a7.target)}},this),ay.doubleTapThreshold)}else{X=null;B.trigger("tap",[a7.target]);if(ay.tap){ba=ay.tap.call(B,a7,a7.target)}}}}else{if(a8==e){if(a9===o||a9===p){clearTimeout(aI);X=null;B.trigger("doubletap",[a7.target]);if(ay.doubleTap){ba=ay.doubleTap.call(B,a7,a7.target)}}}else{if(a8==l){if(a9===o||a9===p){clearTimeout(aI);X=null;B.trigger("longtap",[a7.target]);if(ay.longTap){ba=ay.longTap.call(B,a7,a7.target)}}}}}return ba}function a4(){var a7=true;if(ay.threshold!==null){a7=W>=ay.threshold}return a7}function T(){var a7=false;if(ay.cancelThreshold!==null&&V!==null){a7=(ai(V)-W)>=ay.cancelThreshold}return a7}function a2(){if(ay.pinchThreshold!==null){return aB>=ay.pinchThreshold}return true}function a5(){var a7;if(ay.maxTimeThreshold){if(Y>=ay.maxTimeThreshold){a7=false}else{a7=true}}else{a7=true}return a7}function aW(a9,a8){if(ay.allowPageScroll===m||ao()){a9.preventDefault()}else{var a7=ay.allowPageScroll===c;switch(a8){case k:if((ay.swipeLeft&&a7)||(!a7&&ay.allowPageScroll!=h)){a9.preventDefault()}break;case u:if((ay.swipeRight&&a7)||(!a7&&ay.allowPageScroll!=h)){a9.preventDefault()}break;case z:if((ay.swipeUp&&a7)||(!a7&&ay.allowPageScroll!=A)){a9.preventDefault()}break;case g:if((ay.swipeDown&&a7)||(!a7&&ay.allowPageScroll!=A)){a9.preventDefault()}break}}}function a1(){var a8=aZ();var a9=aY();var a7=a2();return a8&&a9&&a7}function ao(){return !!(ay.pinchStatus||ay.pinchIn||ay.pinchOut)}function R(){return !!(a1()&&ao())}function a3(){var bb=a5();var ba=a4();var a8=aZ();var a9=aY();var a7=T();var bc=!a7&&a9&&a8&&ba&&bb;return bc}function ap(){return !!(ay.swipe||ay.swipeStatus||ay.swipeLeft||ay.swipeRight||ay.swipeUp||ay.swipeDown)}function S(){return !!(a3()&&ap())}function aZ(){return((ae===ay.fingers||ay.fingers===b)||!v)}function aY(){return af[0].end.x!==0}function aq(){return !!(ay.tap)}function am(){return !!(ay.doubleTap)}function an(){return !!(ay.longTap)}function aX(){if(X==null){return false}var a7=ak();return(am()&&((a7-X)<=ay.doubleTapThreshold))}function ar(){return aX()}function a6(){return((ae===1||!v)&&(isNaN(W)||W===0))}function a0(){return((Y>ay.longTapThreshold)&&(W<f))}function U(){return !!(a6()&&aq())}function P(){return !!(aX()&&am())}function Q(){return !!(a0()&&an())}function aK(){aD=ak();aE=event.touches.length+1}function K(){aD=0;aE=0}function at(){var a8=false;if(aD){var a7=ak()-aD;if(a7<=ay.fingerReleaseThreshold){a8=true}}return a8}function al(){return !!(B.data(t+"_intouch")===true)}function aH(a7){if(a7===true){B.bind(ax,aQ);B.bind(ab,aO);if(av){B.bind(av,aP)}}else{B.unbind(ax,aQ,false);B.unbind(ab,aO,false);if(av){B.unbind(av,aP,false)}}B.data(t+"_intouch",a7===true)}function M(a9,a7){var a8=a7.identifier!==undefined?a7.identifier:0;af[a9].identifier=a8;af[a9].start.x=af[a9].end.x=a7.pageX||a7.clientX;af[a9].start.y=af[a9].end.y=a7.pageY||a7.clientY;return af[a9]}function aU(a7){var a9=a7.identifier!==undefined?a7.identifier:0;var a8=ah(a9);a8.end.x=a7.pageX||a7.clientX;a8.end.y=a7.pageY||a7.clientY;return a8}function ah(a8){for(var a7=0;a7<af.length;a7++){if(af[a7].identifier==a8){return af[a7]}}}function L(){var a7=[];for(var a8=0;a8<=5;a8++){a7.push({start:{x:0,y:0},end:{x:0,y:0},identifier:0})}return a7}function aG(a7,a8){a8=Math.max(a8,ai(a7));aw[a7].distance=a8}function ai(a7){if(aw[a7]){return aw[a7].distance}return undefined}function N(){var a7={};a7[k]=O(k);a7[u]=O(u);a7[z]=O(z);a7[g]=O(g);return a7}function O(a7){return{direction:a7,distance:0}}function F(){return ac-aL}function I(ba,a9){var a7=Math.abs(ba.x-a9.x);var a8=Math.abs(ba.y-a9.y);return Math.round(Math.sqrt(a7*a7+a8*a8))}function H(a9,a7){var a8=(a7/a9)*1;return a8.toFixed(2)}function G(){if(aC<1){return n}else{return i}}function E(a8,a7){return Math.round(Math.sqrt(Math.pow(a7.x-a8.x,2)+Math.pow(a7.y-a8.y,2)))}function C(ba,a8){var bb=ba.x-a8.x;var bc=a8.y-ba.y;var a9=Math.atan2(bc,bb);var a7=Math.round(a9*180/Math.PI);if(a7<0){a7=360-Math.abs(a7)}return a7}function D(a9,a8){var a7=C(a9,a8);if((a7<=45)&&(a7>=0)){return k}else{if((a7<=360)&&(a7>=315)){return k}else{if((a7>=135)&&(a7<=225)){return u}else{if((a7>45)&&(a7<135)){return g}else{return z}}}}}function ak(){var a7=new Date();return a7.getTime()}function ag(a8){a8=a(a8);var a9=a8.offset();var a7={left:a9.left,right:a9.left+a8.outerWidth(),top:a9.top,bottom:a9.top+a8.outerHeight()};return a7}function au(a8,a7){return(a8.x>a7.left&&a8.x<a7.right&&a8.y>a7.top&&a8.y<a7.bottom)}}}));
/*
 * imagesLoaded PACKAGED v3.1.7
 * JavaScript is all like "You images are done yet or what?"
 * MIT License
 */
/*
 * EventEmitter v4.2.6 - git.io/ee
 * Oliver Caldwell
 * MIT license
 * @preserve
 */
(function(){function k(){}var t=k.prototype;var l=this;var s=l.EventEmitter;function p(A,z){var y=A.length;while(y--){if(A[y].listener===z){return y}}return -1}function f(z){return function y(){return this[z].apply(this,arguments)}}t.getListeners=function n(z){var y=this._getEvents();var B;var A;if(typeof z==="object"){B={};for(A in y){if(y.hasOwnProperty(A)&&z.test(A)){B[A]=y[A]}}}else{B=y[z]||(y[z]=[])}return B};t.flattenListeners=function m(A){var y=[];var z;for(z=0;z<A.length;z+=1){y.push(A[z].listener)}return y};t.getListenersAsObject=function o(y){var z=this.getListeners(y);var A;if(z instanceof Array){A={};A[y]=z}return A||z};t.addListener=function c(y,A){var C=this.getListenersAsObject(y);var B=typeof A==="object";var z;for(z in C){if(C.hasOwnProperty(z)&&p(C[z],A)===-1){C[z].push(B?A:{listener:A,once:false})}}return this};t.on=f("addListener");t.addOnceListener=function e(y,z){return this.addListener(y,{listener:z,once:true})};t.once=f("addOnceListener");t.defineEvent=function g(y){this.getListeners(y);return this};t.defineEvents=function h(y){for(var z=0;z<y.length;z+=1){this.defineEvent(y[z])}return this};t.removeListener=function v(y,B){var C=this.getListenersAsObject(y);var z;var A;for(A in C){if(C.hasOwnProperty(A)){z=p(C[A],B);if(z!==-1){C[A].splice(z,1)}}}return this};t.off=f("removeListener");t.addListeners=function d(y,z){return this.manipulateListeners(false,y,z)};t.removeListeners=function w(y,z){return this.manipulateListeners(true,y,z)};t.manipulateListeners=function q(C,y,A){var z;var E;var D=C?this.removeListener:this.addListener;var B=C?this.removeListeners:this.addListeners;if(typeof y==="object"&&!(y instanceof RegExp)){for(z in y){if(y.hasOwnProperty(z)&&(E=y[z])){if(typeof E==="function"){D.call(this,z,E)}else{B.call(this,z,E)}}}}else{z=A.length;while(z--){D.call(this,y,A[z])}}return this};t.removeEvent=function u(z){var B=typeof z;var y=this._getEvents();var A;if(B==="string"){delete y[z]}else{if(B==="object"){for(A in y){if(y.hasOwnProperty(A)&&z.test(A)){delete y[A]}}}else{delete this._events}}return this};t.removeAllListeners=f("removeEvent");t.emitEvent=function j(z,y){var D=this.getListenersAsObject(z);var C;var A;var B;var E;for(B in D){if(D.hasOwnProperty(B)){A=D[B].length;while(A--){C=D[B][A];if(C.once===true){this.removeListener(z,C.listener)}E=C.listener.apply(this,y||[]);if(E===this._getOnceReturnValue()){this.removeListener(z,C.listener)}}}}return this};t.trigger=f("emitEvent");t.emit=function i(z){var y=Array.prototype.slice.call(arguments,1);return this.emitEvent(z,y)};t.setOnceReturnValue=function x(y){this._onceReturnValue=y;return this};t._getOnceReturnValue=function b(){if(this.hasOwnProperty("_onceReturnValue")){return this._onceReturnValue}else{return true}};t._getEvents=function a(){return this._events||(this._events={})};k.noConflict=function r(){l.EventEmitter=s;return k};if(typeof define==="function"&&define.amd){define("eventEmitter/EventEmitter",[],function(){return k})}else{if(typeof module==="object"&&module.exports){module.exports=k}else{this.EventEmitter=k}}}.call(this));
/*
 * eventie v1.0.4
 * event binding helper
 *   eventie.bind( elem, 'click', myFn )
 *   eventie.unbind( elem, 'click', myFn )
 */
(function(f){var b=document.documentElement;var a=function(){};function d(h){var g=f.event;g.target=g.target||g.srcElement||h;return g}if(b.addEventListener){a=function(h,i,g){h.addEventListener(i,g,false)}}else{if(b.attachEvent){a=function(h,i,g){h[i+g]=g.handleEvent?function(){var j=d(h);g.handleEvent.call(g,j)}:function(){var j=d(h);g.call(h,j)};h.attachEvent("on"+i,h[i+g])}}}var e=function(){};if(b.removeEventListener){e=function(h,i,g){h.removeEventListener(i,g,false)}}else{if(b.detachEvent){e=function(i,j,h){i.detachEvent("on"+j,i[j+h]);try{delete i[j+h]}catch(g){i[j+h]=undefined}}}}var c={bind:a,unbind:e};if(typeof define==="function"&&define.amd){define("eventie/eventie",c)}else{f.eventie=c}})(this);
/*
 * imagesLoaded v3.1.7
 * JavaScript is all like "You images are done yet or what?"
 * MIT License
 */
(function(b,a){if(typeof define==="function"&&define.amd){define(["eventEmitter/EventEmitter","eventie/eventie"],function(c,d){return a(b,c,d)})}else{if(typeof exports==="object"){module.exports=a(b,require("eventEmitter"),require("eventie"))}else{b.imagesLoaded=a(b,b.EventEmitter,b.eventie)}}})(window,function factory(n,d,e){var a=n.jQuery;var c=n.console;var g=typeof c!=="undefined";function f(o,p){for(var q in p){o[q]=p[q]}return o}var l=Object.prototype.toString;function i(o){return l.call(o)==="[object Array]"}function k(r){var o=[];if(i(r)){o=r}else{if(typeof r.length==="number"){for(var p=0,q=r.length;p<q;p++){o.push(r[p])}}else{o.push(r)}}return o}function h(p,r,q){if(!(this instanceof h)){return new h(p,r)}if(typeof p==="string"){p=document.querySelectorAll(p)}this.elements=k(p);this.options=f({},this.options);if(typeof r==="function"){q=r}else{f(this.options,r)}if(q){this.on("always",q)}this.getImages();if(a){this.jqDeferred=new a.Deferred()}var o=this;setTimeout(function(){o.check()})}h.prototype=new d();h.prototype.options={};h.prototype.getImages=function(){this.images=[];for(var q=0,u=this.elements.length;q<u;q++){var p=this.elements[q];if(p.nodeName==="IMG"){this.addImage(p)}var v=p.nodeType;if(!v||!(v===1||v===9||v===11)){continue}var o=p.querySelectorAll("img");for(var s=0,t=o.length;s<t;s++){var r=o[s];this.addImage(r)}}};h.prototype.addImage=function(o){var p=new j(o);this.images.push(p)};h.prototype.check=function(){var o=this;var p=0;var r=this.images.length;this.hasAnyBroken=false;if(!r){this.complete();return}function t(u,v){if(o.options.debug&&g){c.log("confirm",u,v)}o.progress(u);p++;if(p===r){o.complete()}return true}for(var q=0;q<r;q++){var s=this.images[q];s.on("confirm",t);s.check()}};h.prototype.progress=function(p){this.hasAnyBroken=this.hasAnyBroken||!p.isLoaded;var o=this;setTimeout(function(){o.emit("progress",o,p);if(o.jqDeferred&&o.jqDeferred.notify){o.jqDeferred.notify(o,p)}})};h.prototype.complete=function(){var p=this.hasAnyBroken?"fail":"done";this.isComplete=true;var o=this;setTimeout(function(){o.emit(p,o);o.emit("always",o);if(o.jqDeferred){var q=o.hasAnyBroken?"reject":"resolve";o.jqDeferred[q](o)}})};if(a){a.fn.imagesLoaded=function(q,o){var p=new h(this,q,o);return p.jqDeferred.promise(a(this))}}function j(o){this.img=o}j.prototype=new d();j.prototype.check=function(){var p=b[this.img.src]||new m(this.img.src);if(p.isConfirmed){this.confirm(p.isLoaded,"cached was confirmed");return}if(this.img.complete&&this.img.naturalWidth!==undefined){this.confirm(this.img.naturalWidth!==0,"naturalWidth");return}var o=this;p.on("confirm",function(r,q){o.confirm(r.isLoaded,q);return true});p.check()};j.prototype.confirm=function(o,p){this.isLoaded=o;this.emit("confirm",this,p)};var b={};function m(o){this.src=o;b[o]=this}m.prototype=new d();m.prototype.check=function(){if(this.isChecked){return}var o=new Image();e.bind(o,"load",this);e.bind(o,"error",this);o.src=this.src;this.isChecked=true};m.prototype.handleEvent=function(o){var p="on"+o.type;if(this[p]){this[p](o)}};m.prototype.onload=function(o){this.confirm(true,"onload");this.unbindProxyEvents(o)};m.prototype.onerror=function(o){this.confirm(false,"onerror");this.unbindProxyEvents(o)};m.prototype.confirm=function(o,p){this.isConfirmed=true;this.isLoaded=o;this.emit("confirm",this,p)};m.prototype.unbindProxyEvents=function(o){e.unbind(o.target,"load",this);e.unbind(o.target,"error",this)};return h});(function(a){var b=a.event,c,d;c=b.special.debouncedresize={setup:function(){a(this).on("resize",c.handler)},teardown:function(){a(this).off("resize",c.handler)},handler:function(h,i){var f=this,e=arguments,g=function(){h.type="debouncedresize";b.dispatch.apply(f,e)};if(d){clearTimeout(d)}i?g():d=setTimeout(g,c.threshold)},threshold:150}})(jQuery);
/* URI.js v1.13.2 http://medialize.github.io/URI.js/ */
(function(R){function W(b){throw RangeError(Y[b])}function ab(d,e){for(var f=d.length;f--;){d[f]=e(d[f])}return d}function P(c,d){return ab(c.split(T),d).join(".")}function L(e){for(var f=[],g=0,k=e.length,l,n;g<k;){l=e.charCodeAt(g++),55296<=l&&56319>=l&&g<k?(n=e.charCodeAt(g++),56320==(n&64512)?f.push(((l&1023)<<10)+(n&1023)+65536):(f.push(l),g--)):f.push(l)}return f}function ac(b){return ab(b,function(c){var d="";65535<c&&(c-=65536,d+=Z(c>>>10&1023|55296),c=56320|c&1023);return d+=Z(c)}).join("")}function q(c,d){return c+22+75*(26>c)-((0!=d)<<5)}function ad(e,f,g){var h=0;e=g?j(e/U):e>>1;for(e+=j(e/f);e>ag*ah>>1;h+=aa){e=j(e/ag)}return j(h+(ag+1)*e/(e+V))}function ai(a){var k=[],p=a.length,u,x=0,r=Q,A=S,s,y,t,z,v;s=a.lastIndexOf(i);0>s&&(s=0);for(y=0;y<s;++y){128<=a.charCodeAt(y)&&W("not-basic"),k.push(a.charCodeAt(y))}for(s=0<s?s+1:0;s<p;){y=x;u=1;for(t=aa;;t+=aa){s>=p&&W("invalid-input");z=a.charCodeAt(s++);z=10>z-48?z-22:26>z-65?z-65:26>z-97?z-97:aa;(z>=aa||z>j((af-x)/u))&&W("overflow");x+=z*u;v=t<=A?ae:t>=A+ah?ah:t-A;if(z<v){break}z=aa-v;u>j(af/z)&&W("overflow");u*=z}u=k.length+1;A=ad(x-y,u,0==y);j(x/u)>af-r&&W("overflow");r+=j(x/u);x%=u;k.splice(x++,0,r)}return ac(k)}function O(a){var d,t,v,k,C,n,p,B,u,x=[],A,D,E;a=L(a);A=a.length;d=Q;t=0;C=S;for(n=0;n<A;++n){u=a[n],128>u&&x.push(Z(u))}for((v=k=x.length)&&x.push(i);v<A;){p=af;for(n=0;n<A;++n){u=a[n],u>=d&&u<p&&(p=u)}D=v+1;p-d>j((af-t)/D)&&W("overflow");t+=(p-d)*D;d=p;for(n=0;n<A;++n){if(u=a[n],u<d&&++t>af&&W("overflow"),u==d){B=t;for(p=aa;;p+=aa){u=p<=C?ae:p>=C+ah?ah:p-C;if(B<u){break}E=B-u;B=aa-u;x.push(Z(q(u+E%B,0)));B=j(E/B)}x.push(Z(q(B,0)));C=ad(t,D,v==k);t=0;++v}}++t;++d}return x.join("")}var K="object"==typeof exports&&exports,M="object"==typeof module&&module&&module.exports==K&&module,aj="object"==typeof global&&global;if(aj.global===aj||aj.window===aj){R=aj}var N,af=2147483647,aa=36,ae=1,ah=26,V=38,U=700,S=72,Q=128,i="-",o=/^xn--/,J=/[^ -~]/,T=/\x2E|\u3002|\uFF0E|\uFF61/g,Y={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ag=aa-ae,j=Math.floor,Z=String.fromCharCode,X;N={version:"1.2.3",ucs2:{decode:L,encode:ac},decode:ai,encode:O,toASCII:function(b){return P(b,function(c){return J.test(c)?"xn--"+O(c):c})},toUnicode:function(b){return P(b,function(c){return o.test(c)?ai(c.slice(4).toLowerCase()):c})}};if("function"==typeof define&&"object"==typeof define.amd&&define.amd){define(function(){return N})}else{if(K&&!K.nodeType){if(M){M.exports=N}else{for(X in N){N.hasOwnProperty(X)&&(K[X]=N[X])}}}else{R.punycode=N}}})(this);(function(a,b){"object"===typeof exports?module.exports=b():"function"===typeof define&&define.amd?define(b):a.SecondLevelDomains=b(a)})(this,function(a){var b=a&&a.SecondLevelDomains,c={list:{ac:" com gov mil net org ",ae:" ac co gov mil name net org pro sch ",af:" com edu gov net org ",al:" com edu gov mil net org ",ao:" co ed gv it og pb ",ar:" com edu gob gov int mil net org tur ",at:" ac co gv or ",au:" asn com csiro edu gov id net org ",ba:" co com edu gov mil net org rs unbi unmo unsa untz unze ",bb:" biz co com edu gov info net org store tv ",bh:" biz cc com edu gov info net org ",bn:" com edu gov net org ",bo:" com edu gob gov int mil net org tv ",br:" adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg ",bs:" com edu gov net org ",bz:" du et om ov rg ",ca:" ab bc mb nb nf nl ns nt nu on pe qc sk yk ",ck:" biz co edu gen gov info net org ",cn:" ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj ",co:" com edu gov mil net nom org ",cr:" ac c co ed fi go or sa ",cy:" ac biz com ekloges gov ltd name net org parliament press pro tm ","do":" art com edu gob gov mil net org sld web ",dz:" art asso com edu gov net org pol ",ec:" com edu fin gov info med mil net org pro ",eg:" com edu eun gov mil name net org sci ",er:" com edu gov ind mil net org rochest w ",es:" com edu gob nom org ",et:" biz com edu gov info name net org ",fj:" ac biz com info mil name net org pro ",fk:" ac co gov net nom org ",fr:" asso com f gouv nom prd presse tm ",gg:" co net org ",gh:" com edu gov mil org ",gn:" ac com gov net org ",gr:" com edu gov mil net org ",gt:" com edu gob ind mil net org ",gu:" com edu gov net org ",hk:" com edu gov idv net org ",id:" ac co go mil net or sch web ",il:" ac co gov idf k12 muni net org ","in":" ac co edu ernet firm gen gov i ind mil net nic org res ",iq:" com edu gov i mil net org ",ir:" ac co dnssec gov i id net org sch ",it:" edu gov ",je:" co net org ",jo:" com edu gov mil name net org sch ",jp:" ac ad co ed go gr lg ne or ",ke:" ac co go info me mobi ne or sc ",kh:" com edu gov mil net org per ",ki:" biz com de edu gov info mob net org tel ",km:" asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire ",kn:" edu gov net org ",kr:" ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan ",kw:" com edu gov net org ",ky:" com edu gov net org ",kz:" com edu gov mil net org ",lb:" com edu gov net org ",lk:" assn com edu gov grp hotel int ltd net ngo org sch soc web ",lr:" com edu gov net org ",lv:" asn com conf edu gov id mil net org ",ly:" com edu gov id med net org plc sch ",ma:" ac co gov m net org press ",mc:" asso tm ",me:" ac co edu gov its net org priv ",mg:" com edu gov mil nom org prd tm ",mk:" com edu gov inf name net org pro ",ml:" com edu gov net org presse ",mn:" edu gov org ",mo:" com edu gov net org ",mt:" com edu gov net org ",mv:" aero biz com coop edu gov info int mil museum name net org pro ",mw:" ac co com coop edu gov int museum net org ",mx:" com edu gob net org ",my:" com edu gov mil name net org sch ",nf:" arts com firm info net other per rec store web ",ng:" biz com edu gov mil mobi name net org sch ",ni:" ac co com edu gob mil net nom org ",np:" com edu gov mil net org ",nr:" biz com edu gov info net org ",om:" ac biz co com edu gov med mil museum net org pro sch ",pe:" com edu gob mil net nom org sld ",ph:" com edu gov i mil net ngo org ",pk:" biz com edu fam gob gok gon gop gos gov net org web ",pl:" art bialystok biz com edu gda gdansk gorzow gov info katowice krakow lodz lublin mil net ngo olsztyn org poznan pwr radom slupsk szczecin torun warszawa waw wroc wroclaw zgora ",pr:" ac biz com edu est gov info isla name net org pro prof ",ps:" com edu gov net org plo sec ",pw:" belau co ed go ne or ",ro:" arts com firm info nom nt org rec store tm www ",rs:" ac co edu gov in org ",sb:" com edu gov net org ",sc:" com edu gov net org ",sh:" co com edu gov net nom org ",sl:" com edu gov net org ",st:" co com consulado edu embaixada gov mil net org principe saotome store ",sv:" com edu gob org red ",sz:" ac co org ",tr:" av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web ",tt:" aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel ",tw:" club com ebiz edu game gov idv mil net org ",mu:" ac co com gov net or org ",mz:" ac co edu gov org ",na:" co com ",nz:" ac co cri geek gen govt health iwi maori mil net org parliament school ",pa:" abo ac com edu gob ing med net nom org sld ",pt:" com edu gov int net nome org publ ",py:" com edu gov mil net org ",qa:" com edu gov mil net org ",re:" asso com nom ",ru:" ac adygeya altai amur arkhangelsk astrakhan bashkiria belgorod bir bryansk buryatia cbg chel chelyabinsk chita chukotka chuvashia com dagestan e-burg edu gov grozny int irkutsk ivanovo izhevsk jar joshkar-ola kalmykia kaluga kamchatka karelia kazan kchr kemerovo khabarovsk khakassia khv kirov koenig komi kostroma kranoyarsk kuban kurgan kursk lipetsk magadan mari mari-el marine mil mordovia mosreg msk murmansk nalchik net nnov nov novosibirsk nsk omsk orenburg org oryol penza perm pp pskov ptz rnd ryazan sakhalin samara saratov simbirsk smolensk spb stavropol stv surgut tambov tatarstan tom tomsk tsaritsyn tsk tula tuva tver tyumen udm udmurtia ulan-ude vladikavkaz vladimir vladivostok volgograd vologda voronezh vrn vyatka yakutia yamal yekaterinburg yuzhno-sakhalinsk ",rw:" ac co com edu gouv gov int mil net ",sa:" com edu gov med net org pub sch ",sd:" com edu gov info med net org tv ",se:" a ac b bd c d e f g h i k l m n o org p parti pp press r s t tm u w x y z ",sg:" com edu gov idn net org per ",sn:" art com edu gouv org perso univ ",sy:" com edu gov mil net news org ",th:" ac co go in mi net or ",tj:" ac biz co com edu go gov info int mil name net nic org test web ",tn:" agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism ",tz:" ac co go ne or ",ua:" biz cherkassy chernigov chernovtsy ck cn co com crimea cv dn dnepropetrovsk donetsk dp edu gov if in ivano-frankivsk kh kharkov kherson khmelnitskiy kiev kirovograd km kr ks kv lg lugansk lutsk lviv me mk net nikolaev od odessa org pl poltava pp rovno rv sebastopol sumy te ternopil uzhgorod vinnica vn zaporizhzhe zhitomir zp zt ",ug:" ac co go ne or org sc ",uk:" ac bl british-library co cym gov govt icnet jet lea ltd me mil mod national-library-scotland nel net nhs nic nls org orgn parliament plc police sch scot soc ",us:" dni fed isa kids nsn ",uy:" com edu gub mil net org ",ve:" co com edu gob info mil net org web ",vi:" co com k12 net org ",vn:" ac biz com edu gov health info int name net org pro ",ye:" co com gov ltd me net org plc ",yu:" ac co edu gov org ",za:" ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web ",zm:" ac co com edu gov net org sch "},has:function(h){var e=h.lastIndexOf(".");if(0>=e||e>=h.length-1){return !1}var i=h.lastIndexOf(".",e-1);if(0>=i||i>=e-1){return !1}var j=c.list[h.slice(e+1)];return j?0<=j.indexOf(" "+h.slice(i+1,e)+" "):!1},is:function(h){var e=h.lastIndexOf(".");if(0>=e||e>=h.length-1||0<=h.lastIndexOf(".",e-1)){return !1}var i=c.list[h.slice(e+1)];return i?0<=i.indexOf(" "+h.slice(0,e)+" "):!1},get:function(h){var e=h.lastIndexOf(".");if(0>=e||e>=h.length-1){return null}var i=h.lastIndexOf(".",e-1);if(0>=i||i>=e-1){return null}var j=c.list[h.slice(e+1)];return !j||0>j.indexOf(" "+h.slice(i+1,e)+" ")?null:h.slice(i+1)},noConflict:function(){a.SecondLevelDomains===this&&(a.SecondLevelDomains=b);return this}};return c});(function(a,b){"object"===typeof exports?module.exports=b(require("./punycode"),require("./IPv6"),require("./SecondLevelDomains")):"function"===typeof define&&define.amd?define(["./punycode","./IPv6","./SecondLevelDomains"],b):a.URI=b(a.punycode,a.IPv6,a.SecondLevelDomains,a)})(this,function(n,A,K,l){function c(d,e){if(!(this instanceof c)){return new c(d,e)}void 0===d&&(d="undefined"!==typeof location?location.href+"":"");this.href(d);return void 0!==e?this.absoluteTo(e):this}function L(d){return d.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function a(d){return void 0===d?"Undefined":String(Object.prototype.toString.call(d)).slice(8,-1)}function M(d){return"Array"===a(d)}function Q(e,f){var g,k;if(M(f)){g=0;for(k=f.length;g<k;g++){if(!Q(e,f[g])){return !1}}return !0}var p=a(f);g=0;for(k=e.length;g<k;g++){if("RegExp"===p){if("string"===typeof e[g]&&e[g].match(f)){return !0}}else{if(e[g]===f){return !0}}}return !1}function j(e,f){if(!M(e)||!M(f)||e.length!==f.length){return !1}e.sort();f.sort();for(var g=0,k=e.length;g<k;g++){if(e[g]!==f[g]){return !1}}return !0}function b(d){return escape(d)}function h(d){return encodeURIComponent(d).replace(/[!'()*]/g,b).replace(/\*/g,"%2A")}var R=l&&l.URI;c.version="1.13.2";var i=c.prototype,O=Object.prototype.hasOwnProperty;c._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,duplicateQueryParameters:c.duplicateQueryParameters,escapeQuerySpace:c.escapeQuerySpace}};c.duplicateQueryParameters=!1;c.escapeQuerySpace=!0;c.protocol_expression=/^[a-z][a-z0-9.+-]*$/i;c.idn_expression=/[^a-z0-9\.-]/i;c.punycode_expression=/(xn--)/i;c.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/;c.ip6_expression=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;c.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?\u00ab\u00bb\u201c\u201d\u2018\u2019]))/ig;c.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?\u00ab\u00bb\u201c\u201d\u201e\u2018\u2019]+$/};c.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"};c.invalid_hostname_characters=/[^a-zA-Z0-9\.-]/;c.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src"};c.getDomAttribute=function(d){if(d&&d.nodeName){var e=d.nodeName.toLowerCase();return"input"===e&&"image"!==d.type?void 0:c.domAttributes[e]}};c.encode=h;c.decode=decodeURIComponent;c.iso8859=function(){c.encode=escape;c.decode=unescape};c.unicode=function(){c.encode=h;c.decode=decodeURIComponent};c.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/ig,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/ig,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}}};c.encodeQuery=function(d,e){var f=c.encode(d+"");void 0===e&&(e=c.escapeQuerySpace);return e?f.replace(/%20/g,"+"):f};c.decodeQuery=function(d,e){d+="";void 0===e&&(e=c.escapeQuerySpace);try{return c.decode(e?d.replace(/\+/g,"%20"):d)}catch(f){return d}};c.recodePath=function(d){d=(d+"").split("/");for(var e=0,f=d.length;e<f;e++){d[e]=c.encodePathSegment(c.decode(d[e]))}return d.join("/")};c.decodePath=function(d){d=(d+"").split("/");for(var e=0,f=d.length;e<f;e++){d[e]=c.decodePathSegment(d[e])}return d.join("/")};var J={encode:"encode",decode:"decode"},N,P=function(d,e){return function(f){return c[e](f+"").replace(c.characters[d][e].expression,function(g){return c.characters[d][e].map[g]})}};for(N in J){c[N+"PathSegment"]=P("pathname",J[N])}c.encodeReserved=P("reserved","encode");c.parse=function(d,e){var f;e||(e={});f=d.indexOf("#");-1<f&&(e.fragment=d.substring(f+1)||null,d=d.substring(0,f));f=d.indexOf("?");-1<f&&(e.query=d.substring(f+1)||null,d=d.substring(0,f));"//"===d.substring(0,2)?(e.protocol=null,d=d.substring(2),d=c.parseAuthority(d,e)):(f=d.indexOf(":"),-1<f&&(e.protocol=d.substring(0,f)||null,e.protocol&&!e.protocol.match(c.protocol_expression)?e.protocol=void 0:"file"===e.protocol?d=d.substring(f+3):"//"===d.substring(f+1,f+3)?(d=d.substring(f+3),d=c.parseAuthority(d,e)):(d=d.substring(f+1),e.urn=!0)));e.path=d;return e};c.parseHost=function(e,f){var g=e.indexOf("/"),k;-1===g&&(g=e.length);"["===e.charAt(0)?(k=e.indexOf("]"),f.hostname=e.substring(1,k)||null,f.port=e.substring(k+2,g)||null,"/"===f.port&&(f.port=null)):e.indexOf(":")!==e.lastIndexOf(":")?(f.hostname=e.substring(0,g)||null,f.port=null):(k=e.substring(0,g).split(":"),f.hostname=k[0]||null,f.port=k[1]||null);f.hostname&&"/"!==e.substring(g).charAt(0)&&(g++,e="/"+e);return e.substring(g)||"/"};c.parseAuthority=function(d,e){d=c.parseUserinfo(d,e);return c.parseHost(d,e)};c.parseUserinfo=function(d,e){var f=d.indexOf("/"),g=-1<f?d.lastIndexOf("@",f):d.indexOf("@");-1<g&&(-1===f||g<f)?(f=d.substring(0,g).split(":"),e.username=f[0]?c.decode(f[0]):null,f.shift(),e.password=f[0]?c.decode(f.join(":")):null,d=d.substring(g+1)):(e.username=null,e.password=null);return d};c.parseQuery=function(d,k){if(!d){return{}}d=d.replace(/&+/g,"&").replace(/^\?*&*|&+$/g,"");if(!d){return{}}for(var p={},u=d.split("&"),v=u.length,r,s,t=0;t<v;t++){r=u[t].split("="),s=c.decodeQuery(r.shift(),k),r=r.length?c.decodeQuery(r.join("="),k):null,p[s]?("string"===typeof p[s]&&(p[s]=[p[s]]),p[s].push(r)):p[s]=r}return p};c.build=function(d){var e="";d.protocol&&(e+=d.protocol+":");d.urn||!e&&!d.hostname||(e+="//");e+=c.buildAuthority(d)||"";"string"===typeof d.path&&("/"!==d.path.charAt(0)&&"string"===typeof d.hostname&&(e+="/"),e+=d.path);"string"===typeof d.query&&d.query&&(e+="?"+d.query);"string"===typeof d.fragment&&d.fragment&&(e+="#"+d.fragment);return e};c.buildHost=function(d){var e="";if(d.hostname){e=c.ip6_expression.test(d.hostname)?e+("["+d.hostname+"]"):e+d.hostname}else{return""}d.port&&(e+=":"+d.port);return e};c.buildAuthority=function(d){return c.buildUserinfo(d)+c.buildHost(d)};c.buildUserinfo=function(d){var e="";d.username&&(e+=c.encode(d.username),d.password&&(e+=":"+c.encode(d.password)),e+="@");return e};c.buildQuery=function(d,k,p){var u="",v,r,s,t;for(r in d){if(O.call(d,r)&&r){if(M(d[r])){for(v={},s=0,t=d[r].length;s<t;s++){void 0!==d[r][s]&&void 0===v[d[r][s]+""]&&(u+="&"+c.buildQueryParameter(r,d[r][s],p),!0!==k&&(v[d[r][s]+""]=!0))}}else{void 0!==d[r]&&(u+="&"+c.buildQueryParameter(r,d[r],p))}}}return u.substring(1)};c.buildQueryParameter=function(d,e,f){return c.encodeQuery(d,f)+(null!==e?"="+c.encodeQuery(e,f):"")};c.addQuery=function(d,e,f){if("object"===typeof e){for(var g in e){O.call(e,g)&&c.addQuery(d,g,e[g])}}else{if("string"===typeof e){void 0===d[e]?d[e]=f:("string"===typeof d[e]&&(d[e]=[d[e]]),M(f)||(f=[f]),d[e]=d[e].concat(f))}else{throw new TypeError("URI.addQuery() accepts an object, string as the name parameter")}}};c.removeQuery=function(d,g,k){var s;if(M(g)){for(k=0,s=g.length;k<s;k++){d[g[k]]=void 0}}else{if("object"===typeof g){for(s in g){O.call(g,s)&&c.removeQuery(d,s,g[s])}}else{if("string"===typeof g){if(void 0!==k){if(d[g]===k){d[g]=void 0}else{if(M(d[g])){s=d[g];var t={},p,r;if(M(k)){for(p=0,r=k.length;p<r;p++){t[k[p]]=!0}}else{t[k]=!0}p=0;for(r=s.length;p<r;p++){void 0!==t[s[p]]&&(s.splice(p,1),r--,p--)}d[g]=s}}}else{d[g]=void 0}}else{throw new TypeError("URI.addQuery() accepts an object, string as the first parameter")}}}};c.hasQuery=function(d,f,g,p){if("object"===typeof f){for(var k in f){if(O.call(f,k)&&!c.hasQuery(d,k,f[k])){return !1}}return !0}if("string"!==typeof f){throw new TypeError("URI.hasQuery() accepts an object, string as the name parameter")}switch(a(g)){case"Undefined":return f in d;case"Boolean":return d=Boolean(M(d[f])?d[f].length:d[f]),g===d;case"Function":return !!g(d[f],f,d);case"Array":return M(d[f])?(p?Q:j)(d[f],g):!1;case"RegExp":return M(d[f])?p?Q(d[f],g):!1:Boolean(d[f]&&d[f].match(g));case"Number":g=String(g);case"String":return M(d[f])?p?Q(d[f],g):!1:d[f]===g;default:throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter")}};c.commonPath=function(e,f){var g=Math.min(e.length,f.length),k;for(k=0;k<g;k++){if(e.charAt(k)!==f.charAt(k)){k--;break}}if(1>k){return e.charAt(0)===f.charAt(0)&&"/"===e.charAt(0)?"/":""}if("/"!==e.charAt(k)||"/"!==f.charAt(k)){k=e.substring(0,k).lastIndexOf("/")}return e.substring(0,k+1)};c.withinString=function(d,p,r){r||(r={});var v=r.start||c.findUri.start,s=r.end||c.findUri.end,t=r.trim||c.findUri.trim,u=/[a-z0-9-]=["']?$/i;for(v.lastIndex=0;;){var z=v.exec(d);if(!z){break}z=z.index;if(r.ignoreHtml){var y=d.slice(Math.max(z-3,0),z);if(y&&u.test(y)){continue}}var y=z+d.slice(z).search(s),x=d.slice(z,y).replace(t,"");r.ignore&&r.ignore.test(x)||(y=z+x.length,x=p(x,z,y,d),d=d.slice(0,z)+x+d.slice(y),v.lastIndex=z+x.length)}v.lastIndex=0;return d};c.ensureValidHostname=function(d){if(d.match(c.invalid_hostname_characters)){if(!n){throw new TypeError('Hostname "'+d+'" contains characters other than [A-Z0-9.-] and Punycode.js is not available')}if(n.toASCII(d).match(c.invalid_hostname_characters)){throw new TypeError('Hostname "'+d+'" contains characters other than [A-Z0-9.-]')}}};c.noConflict=function(d){if(d){return d={URI:this.noConflict()},l.URITemplate&&"function"===typeof l.URITemplate.noConflict&&(d.URITemplate=l.URITemplate.noConflict()),l.IPv6&&"function"===typeof l.IPv6.noConflict&&(d.IPv6=l.IPv6.noConflict()),l.SecondLevelDomains&&"function"===typeof l.SecondLevelDomains.noConflict&&(d.SecondLevelDomains=l.SecondLevelDomains.noConflict()),d}l.URI===this&&(l.URI=R);return this};i.build=function(d){if(!0===d){this._deferred_build=!0}else{if(void 0===d||this._deferred_build){this._string=c.build(this._parts),this._deferred_build=!1}}return this};i.clone=function(){return new c(this)};i.valueOf=i.toString=function(){return this.build(!1)._string};J={protocol:"protocol",username:"username",password:"password",hostname:"hostname",port:"port"};P=function(d){return function(e,f){if(void 0===e){return this._parts[d]||""}this._parts[d]=e||null;this.build(!f);return this}};for(N in J){i[N]=P(J[N])}J={query:"?",fragment:"#"};P=function(d,e){return function(f,g){if(void 0===f){return this._parts[d]||""}null!==f&&(f+="",f.charAt(0)===e&&(f=f.substring(1)));this._parts[d]=f;this.build(!g);return this}};for(N in J){i[N]=P(N,J[N])}J={search:["?","query"],hash:["#","fragment"]};P=function(d,e){return function(f,g){var k=this[d](f,g);return"string"===typeof k&&k.length?e+k:k}};for(N in J){i[N]=P(J[N][1],J[N][0])}i.pathname=function(d,e){if(void 0===d||!0===d){var f=this._parts.path||(this._parts.hostname?"/":"");return d?c.decodePath(f):f}this._parts.path=d?c.recodePath(d):"/";this.build(!e);return this};i.path=i.pathname;i.href=function(d,f){var g;if(void 0===d){return this.toString()}this._string="";this._parts=c._parts();var p=d instanceof c,k="object"===typeof d&&(d.hostname||d.path||d.pathname);d.nodeName&&(k=c.getDomAttribute(d),d=d[k]||"",k=!1);!p&&k&&void 0!==d.pathname&&(d=d.toString());if("string"===typeof d){this._parts=c.parse(d,this._parts)}else{if(p||k){for(g in p=p?d._parts:d,p){O.call(this._parts,g)&&(this._parts[g]=p[g])}}else{throw new TypeError("invalid input")}}this.build(!f);return this};i.is=function(d){var p=!1,r=!1,v=!1,s=!1,t=!1,u=!1,x=!1,y=!this._parts.urn;this._parts.hostname&&(y=!1,r=c.ip4_expression.test(this._parts.hostname),v=c.ip6_expression.test(this._parts.hostname),p=r||v,t=(s=!p)&&K&&K.has(this._parts.hostname),u=s&&c.idn_expression.test(this._parts.hostname),x=s&&c.punycode_expression.test(this._parts.hostname));switch(d.toLowerCase()){case"relative":return y;case"absolute":return !y;case"domain":case"name":return s;case"sld":return t;case"ip":return p;case"ip4":case"ipv4":case"inet4":return r;case"ip6":case"ipv6":case"inet6":return v;case"idn":return u;case"url":return !this._parts.urn;case"urn":return !!this._parts.urn;case"punycode":return x}return null};var w=i.protocol,q=i.port,o=i.hostname;i.protocol=function(d,e){if(void 0!==d&&d&&(d=d.replace(/:(\/\/)?$/,""),!d.match(c.protocol_expression))){throw new TypeError('Protocol "'+d+"\" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]")}return w.call(this,d,e)};i.scheme=i.protocol;i.port=function(d,e){if(this._parts.urn){return void 0===d?"":this}if(void 0!==d&&(0===d&&(d=null),d&&(d+="",":"===d.charAt(0)&&(d=d.substring(1)),d.match(/[^0-9]/)))){throw new TypeError('Port "'+d+'" contains characters other than [0-9]')}return q.call(this,d,e)};i.hostname=function(d,e){if(this._parts.urn){return void 0===d?"":this}if(void 0!==d){var f={};c.parseHost(d,f);d=f.hostname}return o.call(this,d,e)};i.host=function(d,e){if(this._parts.urn){return void 0===d?"":this}if(void 0===d){return this._parts.hostname?c.buildHost(this._parts):""}c.parseHost(d,this._parts);this.build(!e);return this};i.authority=function(d,e){if(this._parts.urn){return void 0===d?"":this}if(void 0===d){return this._parts.hostname?c.buildAuthority(this._parts):""}c.parseAuthority(d,this._parts);this.build(!e);return this};i.userinfo=function(d,e){if(this._parts.urn){return void 0===d?"":this}if(void 0===d){if(!this._parts.username){return""}var f=c.buildUserinfo(this._parts);return f.substring(0,f.length-1)}"@"!==d[d.length-1]&&(d+="@");c.parseUserinfo(d,this._parts);this.build(!e);return this};i.resource=function(d,e){var f;if(void 0===d){return this.path()+this.search()+this.hash()}f=c.parse(d);this._parts.path=f.path;this._parts.query=f.query;this._parts.fragment=f.fragment;this.build(!e);return this};i.subdomain=function(d,e){if(this._parts.urn){return void 0===d?"":this}if(void 0===d){if(!this._parts.hostname||this.is("IP")){return""}var f=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,f)||""}f=this._parts.hostname.length-this.domain().length;f=this._parts.hostname.substring(0,f);f=new RegExp("^"+L(f));d&&"."!==d.charAt(d.length-1)&&(d+=".");d&&c.ensureValidHostname(d);this._parts.hostname=this._parts.hostname.replace(f,d);this.build(!e);return this};i.domain=function(d,e){if(this._parts.urn){return void 0===d?"":this}"boolean"===typeof d&&(e=d,d=void 0);if(void 0===d){if(!this._parts.hostname||this.is("IP")){return""}var f=this._parts.hostname.match(/\./g);if(f&&2>f.length){return this._parts.hostname}f=this._parts.hostname.length-this.tld(e).length-1;f=this._parts.hostname.lastIndexOf(".",f-1)+1;return this._parts.hostname.substring(f)||""}if(!d){throw new TypeError("cannot set domain empty")}c.ensureValidHostname(d);!this._parts.hostname||this.is("IP")?this._parts.hostname=d:(f=new RegExp(L(this.domain())+"$"),this._parts.hostname=this._parts.hostname.replace(f,d));this.build(!e);return this};i.tld=function(d,e){if(this._parts.urn){return void 0===d?"":this}"boolean"===typeof d&&(e=d,d=void 0);if(void 0===d){if(!this._parts.hostname||this.is("IP")){return""}var f=this._parts.hostname.lastIndexOf("."),f=this._parts.hostname.substring(f+1);return !0!==e&&K&&K.list[f.toLowerCase()]?K.get(this._parts.hostname)||f:f}if(d){if(d.match(/[^a-zA-Z0-9-]/)){if(K&&K.is(d)){f=new RegExp(L(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(f,d)}else{throw new TypeError('TLD "'+d+'" contains characters other than [A-Z0-9]')}}else{if(!this._parts.hostname||this.is("IP")){throw new ReferenceError("cannot set TLD on non-domain host")}f=new RegExp(L(this.tld())+"$");this._parts.hostname=this._parts.hostname.replace(f,d)}}else{throw new TypeError("cannot set TLD empty")}this.build(!e);return this};i.directory=function(d,e){if(this._parts.urn){return void 0===d?"":this}if(void 0===d||!0===d){if(!this._parts.path&&!this._parts.hostname){return""}if("/"===this._parts.path){return"/"}var f=this._parts.path.length-this.filename().length-1,f=this._parts.path.substring(0,f)||(this._parts.hostname?"/":"");return d?c.decodePath(f):f}f=this._parts.path.length-this.filename().length;f=this._parts.path.substring(0,f);f=new RegExp("^"+L(f));this.is("relative")||(d||(d="/"),"/"!==d.charAt(0)&&(d="/"+d));d&&"/"!==d.charAt(d.length-1)&&(d+="/");d=c.recodePath(d);this._parts.path=this._parts.path.replace(f,d);this.build(!e);return this};i.filename=function(d,e){if(this._parts.urn){return void 0===d?"":this}if(void 0===d||!0===d){if(!this._parts.path||"/"===this._parts.path){return""}var f=this._parts.path.lastIndexOf("/"),f=this._parts.path.substring(f+1);return d?c.decodePathSegment(f):f}f=!1;"/"===d.charAt(0)&&(d=d.substring(1));d.match(/\.?\//)&&(f=!0);var g=new RegExp(L(this.filename())+"$");d=c.recodePath(d);this._parts.path=this._parts.path.replace(g,d);f?this.normalizePath(e):this.build(!e);return this};i.suffix=function(d,e){if(this._parts.urn){return void 0===d?"":this}if(void 0===d||!0===d){if(!this._parts.path||"/"===this._parts.path){return""}var f=this.filename(),g=f.lastIndexOf(".");if(-1===g){return""}f=f.substring(g+1);f=/^[a-z0-9%]+$/i.test(f)?f:"";return d?c.decodePathSegment(f):f}"."===d.charAt(0)&&(d=d.substring(1));if(f=this.suffix()){g=d?new RegExp(L(f)+"$"):new RegExp(L("."+f)+"$")}else{if(!d){return this}this._parts.path+="."+c.recodePath(d)}g&&(d=c.recodePath(d),this._parts.path=this._parts.path.replace(g,d));this.build(!e);return this};i.segment=function(k,p,r){var s=this._parts.urn?":":"/",t=this.path(),u="/"===t.substring(0,1),t=t.split(s);void 0!==k&&"number"!==typeof k&&(r=p,p=k,k=void 0);if(void 0!==k&&"number"!==typeof k){throw Error('Bad segment "'+k+'", must be 0-based integer')}u&&t.shift();0>k&&(k=Math.max(t.length+k,0));if(void 0===p){return void 0===k?t:t[k]}if(null===k||void 0===t[k]){if(M(p)){t=[];k=0;for(var v=p.length;k<v;k++){if(p[k].length||t.length&&t[t.length-1].length){t.length&&!t[t.length-1].length&&t.pop(),t.push(p[k])}}}else{if(p||"string"===typeof p){""===t[t.length-1]?t[t.length-1]=p:t.push(p)}}}else{p||"string"===typeof p&&p.length?t[k]=p:t.splice(k,1)}u&&t.unshift("");return this.path(t.join(s),r)};i.segmentCoded=function(d,g,k){var p,r;"number"!==typeof d&&(k=g,g=d,d=void 0);if(void 0===g){d=this.segment(d,g,k);if(M(d)){for(p=0,r=d.length;p<r;p++){d[p]=c.decode(d[p])}}else{d=void 0!==d?c.decode(d):void 0}return d}if(M(g)){for(p=0,r=g.length;p<r;p++){g[p]=c.decode(g[p])}}else{g="string"===typeof g?c.encode(g):g}return this.segment(d,g,k)};var m=i.query;i.query=function(d,f){if(!0===d){return c.parseQuery(this._parts.query,this._parts.escapeQuerySpace)}if("function"===typeof d){var g=c.parseQuery(this._parts.query,this._parts.escapeQuerySpace),k=d.call(this,g);this._parts.query=c.buildQuery(k||g,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace);this.build(!f);return this}return void 0!==d&&"string"!==typeof d?(this._parts.query=c.buildQuery(d,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!f),this):m.call(this,d,f)};i.setQuery=function(d,g,k){var p=c.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("object"===typeof d){for(var r in d){O.call(d,r)&&(p[r]=d[r])}}else{if("string"===typeof d){p[d]=void 0!==g?g:null}else{throw new TypeError("URI.addQuery() accepts an object, string as the name parameter")}}this._parts.query=c.buildQuery(p,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace);"string"!==typeof d&&(k=g);this.build(!k);return this};i.addQuery=function(d,f,g){var k=c.parseQuery(this._parts.query,this._parts.escapeQuerySpace);c.addQuery(k,d,void 0===f?null:f);this._parts.query=c.buildQuery(k,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace);"string"!==typeof d&&(g=f);this.build(!g);return this};i.removeQuery=function(d,f,g){var k=c.parseQuery(this._parts.query,this._parts.escapeQuerySpace);c.removeQuery(k,d,f);this._parts.query=c.buildQuery(k,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace);"string"!==typeof d&&(g=f);this.build(!g);return this};i.hasQuery=function(d,f,g){var k=c.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return c.hasQuery(k,d,f,g)};i.setSearch=i.setQuery;i.addSearch=i.addQuery;i.removeSearch=i.removeQuery;i.hasSearch=i.hasQuery;i.normalize=function(){return this._parts.urn?this.normalizeProtocol(!1).normalizeQuery(!1).normalizeFragment(!1).build():this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build()};i.normalizeProtocol=function(d){"string"===typeof this._parts.protocol&&(this._parts.protocol=this._parts.protocol.toLowerCase(),this.build(!d));return this};i.normalizeHostname=function(d){this._parts.hostname&&(this.is("IDN")&&n?this._parts.hostname=n.toASCII(this._parts.hostname):this.is("IPv6")&&A&&(this._parts.hostname=A.best(this._parts.hostname)),this._parts.hostname=this._parts.hostname.toLowerCase(),this.build(!d));return this};i.normalizePort=function(d){"string"===typeof this._parts.protocol&&this._parts.port===c.defaultPorts[this._parts.protocol]&&(this._parts.port=null,this.build(!d));return this};i.normalizePath=function(d){if(this._parts.urn||!this._parts.path||"/"===this._parts.path){return this}var k,p=this._parts.path,r="",s,t;"/"!==p.charAt(0)&&(k=!0,p="/"+p);p=p.replace(/(\/(\.\/)+)|(\/\.$)/g,"/").replace(/\/{2,}/g,"/");k&&(r=p.substring(1).match(/^(\.\.\/)+/)||"")&&(r=r[0]);for(;;){s=p.indexOf("/..");if(-1===s){break}else{if(0===s){p=p.substring(3);continue}}t=p.substring(0,s).lastIndexOf("/");-1===t&&(t=s);p=p.substring(0,t)+p.substring(s+3)}k&&this.is("relative")&&(p=r+p.substring(1));p=c.recodePath(p);this._parts.path=p;this.build(!d);return this};i.normalizePathname=i.normalizePath;i.normalizeQuery=function(d){"string"===typeof this._parts.query&&(this._parts.query.length?this.query(c.parseQuery(this._parts.query,this._parts.escapeQuerySpace)):this._parts.query=null,this.build(!d));return this};i.normalizeFragment=function(d){this._parts.fragment||(this._parts.fragment=null,this.build(!d));return this};i.normalizeSearch=i.normalizeQuery;i.normalizeHash=i.normalizeFragment;i.iso8859=function(){var d=c.encode,e=c.decode;c.encode=escape;c.decode=decodeURIComponent;this.normalize();c.encode=d;c.decode=e;return this};i.unicode=function(){var d=c.encode,e=c.decode;c.encode=h;c.decode=unescape;this.normalize();c.encode=d;c.decode=e;return this};i.readable=function(){var d=this.clone();d.username("").password("").normalize();var g="";d._parts.protocol&&(g+=d._parts.protocol+"://");d._parts.hostname&&(d.is("punycode")&&n?(g+=n.toUnicode(d._parts.hostname),d._parts.port&&(g+=":"+d._parts.port)):g+=d.host());d._parts.hostname&&d._parts.path&&"/"!==d._parts.path.charAt(0)&&(g+="/");g+=d.path(!0);if(d._parts.query){for(var r="",s=0,t=d._parts.query.split("&"),u=t.length;s<u;s++){var v=(t[s]||"").split("="),r=r+("&"+c.decodeQuery(v[0],this._parts.escapeQuerySpace).replace(/&/g,"%26"));void 0!==v[1]&&(r+="="+c.decodeQuery(v[1],this._parts.escapeQuerySpace).replace(/&/g,"%26"))}g+="?"+r.substring(1)}return g+=c.decodeQuery(d.hash(),!0)};i.absoluteTo=function(d){var g=this.clone(),k=["protocol","username","password","hostname","port"],p,r;if(this._parts.urn){throw Error("URNs do not have any generally defined hierarchical components")}d instanceof c||(d=new c(d));g._parts.protocol||(g._parts.protocol=d._parts.protocol);if(this._parts.hostname){return g}for(p=0;r=k[p];p++){g._parts[r]=d._parts[r]}g._parts.path?".."===g._parts.path.substring(-2)&&(g._parts.path+="/"):(g._parts.path=d._parts.path,g._parts.query||(g._parts.query=d._parts.query));"/"!==g.path().charAt(0)&&(d=d.directory(),g._parts.path=(d?d+"/":"")+g._parts.path,g.normalizePath());g.build();return g};i.relativeTo=function(d){var k=this.clone().normalize(),p,r,s,t;if(k._parts.urn){throw Error("URNs do not have any generally defined hierarchical components")}d=(new c(d)).normalize();p=k._parts;r=d._parts;s=k.path();t=d.path();if("/"!==s.charAt(0)){throw Error("URI is already relative")}if("/"!==t.charAt(0)){throw Error("Cannot calculate a URI relative to another relative URI")}p.protocol===r.protocol&&(p.protocol=null);if(p.username===r.username&&p.password===r.password&&null===p.protocol&&null===p.username&&null===p.password&&p.hostname===r.hostname&&p.port===r.port){p.hostname=null,p.port=null}else{return k.build()}if(s===t){return p.path="",k.build()}d=c.commonPath(k.path(),d.path());if(!d){return k.build()}r=r.path.substring(d.length).replace(/[^\/]*$/,"").replace(/.*?\//g,"../");p.path=r+p.path.substring(d.length);return k.build()};i.equals=function(d){var k=this.clone();d=new c(d);var p={},r={},s={},t;k.normalize();d.normalize();if(k.toString()===d.toString()){return !0}p=k.query();r=d.query();k.query("");d.query("");if(k.toString()!==d.toString()||p.length!==r.length){return !1}p=c.parseQuery(p,this._parts.escapeQuerySpace);r=c.parseQuery(r,this._parts.escapeQuerySpace);for(t in p){if(O.call(p,t)){if(!M(p[t])){if(p[t]!==r[t]){return !1}}else{if(!j(p[t],r[t])){return !1}}s[t]=!0}}for(t in r){if(O.call(r,t)&&!s[t]){return !1}}return !0};i.duplicateQueryParameters=function(d){this._parts.duplicateQueryParameters=!!d;return this};i.escapeQuerySpace=function(d){this._parts.escapeQuerySpace=!!d;return this};return c});(function(a,b){a.fn.equalHeight=function(l){var c=this,d=a(b),m=a.extend({},a.fn.equalHeight.defaults,l);var e=(function(){var n=0;return function(o,p){clearTimeout(n);n=setTimeout(o,p)}}());var f=function(p){var o=0;var q=function(){o=Math.max(o,this.offsetHeight)};var n=function(){var r=this.offsetHeight;if(r>o){a(this).css("height",o-(r-o))}};p.css("height","auto").each(q).css("height",o).each(n)};var h=function(q){var r=0,o=0,n=Math.ceil(q.length/m.cluster),p;for(p=0;p<n;p++){o+=m.cluster;f(q.slice(r,o));r=o}};var i=function(q){var o,r,n,p;if(q&&q.length>0){o=q[0];r=a(o).offset().top;n=[o];q.slice(1).each(function(){if(r===(r=a(this).offset().top)){n.push(this)}else{return false}return true});p=q.slice(n.length);f(a(n));if(p.length){i(p)}}};var g=function(p){var n=[];var o=function(s){var q,r;for(r=0;q=n[r];r++){if(q.top===s){return q}}return null};p.each(function(s,t){var r=a(t);var u=parseInt(r.offset().top,10);var q=o(u);if(q!==null){q.elements.push(r[0])}else{n.push({top:u,elements:[r[0]]})}});a.each(n,function(r,q){f(a(q.elements))})};var j=function(){if(m.cluster){if(m.cluster==="auto"){g(c)}else{if(m.cluster==="sequentially"){i(c)}else{h(c)}}}else{f(c)}m.callback()};if(m.imagesLoaded){c.imagesLoaded(j)}else{j()}if(m.onResize){var k=function(){e(j,m.resizeInterval)};a(b).on("debouncedresize.equalHeight",k)}return c};a.fn.equalHeight.defaults={callback:a.noop,cluster:"auto",onResize:true,resizeInterval:40,imagesLoaded:false}}(jQuery,window));(function(a){a.fn.renavigation=function(s){var u=-1,z=false,v=1,t=767,y=200,B=this,g=a(B),c,h=a(">ul",g),A=a(window).width(),d,b=a(".mobile-in-main-menu"),e=a(".menu-text"),k=true,q,n,i,j;if(document.querySelector){q=document.querySelector("meta[name=viewport]");n=q&&q.getAttribute("content");i=n+",maximum-scale=1";j=n+",maximum-scale=10"}else{k=false}var f=a("#page");var l="",p="";if(s.hideMenuText!==undefined){l=s.hideMenuText}if(s.menuText!==undefined){p=s.menuText}if(s.breakpoint!==undefined){t=s.breakpoint}var w=function(o){e=a(".menu-text");if(!o){e.html(" "+p)}else{e.html(" "+l)}};var x="top";if(s.sliteInType!==undefined){if(s.sliteInType==="left"){x=s.sliteInType;g.addClass("slide-type-left")}}var r={reset:function(){a(".sub_nav",g).unbind("click").remove()},full:function(){u=0;c.hide();w(false);h.show();d.hide();f.css({"margin-left":"0",width:"100%"});b.show()},mobile:function(){b.hide();c.show();u=1;d.hide();h.hide();w(false)}};var m={initResize:function(){a(window).bind("load resize",function(){A=a(window).width();if(A<=t){if(u===1){return}r.reset();r.mobile()}else{if(u===2){return}r.reset();r.full()}})},initMenu:function(){var o=a('<div id="mobileHandle" class="mobile_handle" style="display:none;"><span class="menu-icon">&nbsp;</span><span class="menu-text">'+p+"&nbsp;</span></div>");var C=a("#renavigationPlaceholder");if(C.length>0){o.appendTo(C)}else{o.insertBefore(h)}c=a("#mobileHandle");if(a(".sub_nav",d).length<1){a("li",d).each(function(){var E=a(this);if(E.children("ul").length>0&&E.children("ul").first().children("li").length>0){a('<a class="sub_nav"><div class="arrow_down">&nbsp;</div></a>').appendTo(E)}});d.children("div").attr("class","arrow_down")}if(z===false){a(d).delegate(".sub_nav","click",function(){var F=a(this);var E=F.children("div");F.siblings("ul").slideToggle(y);if(E.hasClass("arrow_down")){E.attr("class","arrow_up")}else{E.attr("class","arrow_down")}});z=true}var D=function(F){var G=d.is(":visible");var E=A;if(F&&!G){return}var J=G?A:"0";w(!G);var H=a(".mobile_handle .menu-text").width()+a(".mobile_handle .menu-icon").width()+30;if(G){E=0}else{E-=H}if(x==="left"){var I=y;if(!G){if(k){q.setAttribute("content",i)}d.css({position:"fixed",left:"0px",top:"0px","z-index":"999999",display:"block",width:(J-(H+40))+"px"})}else{if(k){q.setAttribute("content",j)}}a(">li",d).css("white-space","nowrap");d.animate({width:E+"px"},I,function(){if(G){d.attr("style","display:none;")}});if(!G){d.slideDown(y*2)}else{d.slideUp(y*2)}f.css("width",A+"px").animate({"margin-left":E+"px"},I,function(){if(G){f.css({"margin-left":"0",width:"100%"})}})}else{d.slideToggle(y,function(){})}};a("body").on("click",function(F){var E=a(F.target);if(E.closest("#mainMobileMenu").length<1&&E.closest("#renavigationPlaceholder").length<1){D(true)}});a(".menu-icon, .menu-text",c).on("click",function(){D();var F=a(this);var E=F.children("div");if(E.hasClass("arrow_down")){E.attr("class","arrow_up")}else{E.attr("class","arrow_down")}if(v===0||v===undefined){v=1;a("#selected",g).slideDown(y).parentsUntil(g,"ul").each(function(){var H=a(this);var G=H.children().children().children("div");H.slideDown(y);if(G.hasClass("arrow_down")){G.attr("class","arrow_up")}})}});this.initResize()},stripQueryString:function(C){if(!C){return C}C=C.toLowerCase();var o=C.indexOf("?");if(o!==-1){return C.substring(0,o)}return C},checkLinks:function(o){var F=this;var C=null;var D=a("a:first",o);if(D.length>0){var E=F.stripQueryString(D.attr("href"));a("li",d).each(function(){var G=a(this);var H=a("a:first",G);if(H.length>0){var I=F.stripQueryString(H.attr("href"))+"/";if(E.indexOf(I)!==-1){C=G}}})}if(C!==null){return C}return d},importLists:function(){var o=this;if(b.length>0){b.each(function(){var D=a(this);var F=D.hasClass("lower");var C=a("ul:first",D).clone();var E=a(">li",C);if(E.length>0){var G=o.checkLinks(E);if(G===d){a("li",C).removeClass().addClass("imported");if(F){a("li:first",C).addClass("imported-first-node");E.appendTo(d)}else{a(">li:last",C).addClass("imported-last-node");E.prependTo(d)}}}})}this.initMenu()},cloneMenu:function(){console.log(h);d=h.clone().removeClass("hide-for-small");d.attr("id","mainMobileMenu");if(x==="left"){d.hide().prependTo(f)}else{d.hide().insertBefore(g)}d=a("#mainMobileMenu");a("li",d).each(function(){if(a(this).attr("class").indexOf("imported")==-1){a(this).remove()}});this.importLists()}};m.cloneMenu();return B}}(jQuery));window.site=window.site||{};window.site.settings=window.site.settings||{};if(typeof String.prototype.trim!=="function"){String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}}(function(q,c,a,r){var j=(function(){var t=(" "+c.body.className+" ").replace(/[\n\t\r]/g," ");return function(u){return(t.indexOf(" p-"+u+" ")>-1)}}());var i=(function(){var t=(" "+c.body.className+" ").replace(/[\n\t\r]/g," ");return function(u){return(t.indexOf(" t-"+u+" ")>-1)}}());var h=(function(){var t=(" "+c.body.className+" ").replace(/[\n\t\r]/g," ");return function(u){return(t.indexOf(" a-"+u+" ")>-1)}}());var l=function(t){t.append('<div class="loading"></div>')};var d=function(t){var w=function(z){var x,y;for(x=0;y=z[x];x++){t(a(y))}};var u=function(y,x){if(v.get_isInAsyncPostBack()){w(x.get_panelsUpdated())}};var v=r.WebForms.PageRequestManager.getInstance();if(v){v.add_pageLoaded(u)}};var e=function(){var t=function(){if(u.get_isInAsyncPostBack()){q.foundation.reapplyFoundationForms()}};var u=r.WebForms.PageRequestManager.getInstance();if(u){u.add_pageLoaded(t)}};var g=function(w,u,v,t){if(!w||j(w)){if(u){a(c).ready(function(){u()})}if(t){d(t)}if(v){a(window).load(function(){v()})}}};var k=function(x){var w=x.link,A=x.url||w.attr("href"),z=x.target,v=x.forceReload,t=!!x.cache,u=x.callBack,y=function(B){z.html(B).data("loaded",true);if(u){u()}};if(v||!z.data("loaded")){a.ajax({url:A,cache:t}).done(y)}};var m=(function(){var t=function(u){a("html").toggleClass("openmodal",u)};return{opened:function(){t(true)},closed:function(){t(false)}}}());var o=function(x,w,v){v.preventDefault();var t=a(".reveal-modal"+(w.length?"."+w:""));if(t.length===0){t=a("<div>").addClass("reveal-modal "+w).appendTo("body")}var u=x;a.ajax({url:u.attr("href"),cache:false}).done(function(y){var z=t.empty().html(y).append('<a class="close-reveal-modal">&#215;</a>').foundation("reveal","open");Foundation.libs.forms.init();return z})};var p=function(w,u){u.preventDefault();var t=a("<div>").addClass("reveal-modal").appendTo("body");var v=t.empty().html(w.text()).append('<a class="close-reveal-modal">&#215;</a>').foundation("reveal","open");Foundation.libs.forms.init();return v};var n=function(u,x,v,t){v.preventDefault();var w=u.closest("form");var y=w.serialize();a.ajax({url:u.attr("href"),cache:false,data:y,type:"POST"}).done(function(z,B,A){if(A.getResponseHeader("x-savesuccess")){if(t){t(A)}}else{a(x).replaceWith(z)}Foundation.libs.forms.init()})};var b=function(){a(".reveal-modal").foundation("reveal","close")};var f=function(){var t=a("#minicart-shoppingcart");var u=null;a("#toolbar").on("mouseenter","#minicart",function(){window.clearTimeout(u);t.fadeIn(150)});a("#toolbar").on("mouseleave","#minicart",function(){window.clearTimeout(u);u=window.setTimeout(function(){t.fadeOut(150)},500)})};q.framework={initPage:g,linkLoader:k,loadingMessage:l,isAccelerator:h,showModal:o,showModalWithText:p,showEditModal:n,closeModal:b,initMiniCart:f,isPageTemplate:i};a(c).foundation();a(c).foundation("reveal",m);if(typeof(WebForm_RestoreScrollPosition)=="function"&&a("#__SCROLLPOSITIONX").length>0){WebForm_RestoreScrollPosition()}var s=navigator.userAgent;a("#navprimary").renavigation({desktopdropdown:0,mobileshowselected:1,sliteInType:"left",toggleSearch:(!(/iPad/.test(navigator.platform)&&/OS [1-5]_[0-9_]* like Mac OS X/i.test(s)&&s.indexOf("AppleWebKit")>-1))});e()}(window.site||{},window.document,jQuery,window.Sys));(function(b,a){a.widget("custom.catcomplete",a.ui.autocomplete,{_renderMenu:function(f,d){var e=this,c="";a.each(d,function(g,h){if(h.category&&h.category!=c){f.append("<li class='ui-autocomplete-category'>"+h.category+"</li>");c=h.category}e._renderItemData(f,h)})}});(function(f,c,e){var d=false;a("#searchbutton").click(function(){var g=a("#searchfield").val();if(g.length>0){a(window.location).attr("href",f+"?CMS_SearchString="+encodeURIComponent(g))}});a("#searchfield").catcomplete({delay:250,minLength:1,source:function(g,h){if(typeof ga!=="undefined"){ga("send","_trackPageview","/ajaxsearch?CMS_SearchString="+g.term)}if(typeof _gaq!=="undefined"){_gaq.push(["_trackPageview","/ajaxsearch?CMS_SearchString="+g.term])}a.ajax({url:"/Site/CMS/Ajax/"+c+"/Search.ashx",style:"full",dataType:"jsonp",data:{Id:e,CMS_SearchString:g.term},success:function(i){h(a.map(i.results,function(j){return{label:j.label,value:j.label,url:j.url,category:j.category}}))}})},select:function(g,h){g.preventDefault();if(!h.item.url){return}d=true;a(window.location).attr("href",h.item.url)},}).keypress(function(g){if(g.keyCode===13){if(!d){g.preventDefault();a("#searchbutton").click()}}})}(b.settings.searchUrl,b.settings.acceleratorType,b.settings.webSiteId))}(window.site||{},jQuery));(function(n,p,h,a){var l=Sys.WebForms.PageRequestManager.getInstance();l.add_endRequest(i);function i(r,q){n.cart.onAjaxReloadMiniShoppingCart()}var b=null,f=null;var m=function(){refreshMiniCart()};var k=function(){a.ajax({url:"/Site/CMS/Ajax/MiniCart.aspx?PageID="+n.settings.pageId,cache:false}).done(o)};var o=function(s){var q=a("#minicart");if(q.length>0){var r=a(".minicartdisplay",q);if(r.length>0){r.html(s)}}var t=a("#small-checkoutlink");if(t.length){t.html(s)}};var e=function(r){var s,t,u="#addedtocartmessage";var q=function(){if(f){p.clearTimeout(f)}if(s){s.hide()}else{if(t){t.hide()}}};s=r.data("tooltip");q();if(!s){r.tooltip({effect:"slide",tip:u,events:{def:"change,change"}}).dynamic({bottom:{direction:"down",bounce:true}});s=r.data("tooltip")}s.show();if(!t){t=a(u)}f=p.setTimeout(function(){q()},2000)};var c=function(r,u){var s=function(v){if(n.cart.addArticleHandler){if(!n.cart.addArticleHandler(function(){e(u)})){return}}m();if(u){e(u)}};var t=function(){if(r){if(isNaN(r.quantity)){r.quantity=1}return r.articleId&&r.productId&&r.languageId&&r.quantity>0}return false};function q(B,y,A,z){var v="";var x=arguments.length;if(x>4){for(var w=4;w<x-1;w+=2){if(v.length!=0){v+=","}v+='"'+arguments[w]+'":"'+arguments[w+1]+'"'}}a.ajax({type:"POST",url:B+"/"+y,data:"{"+v+"}",contentType:"application/json; charset=utf-8",dataType:"json",success:A,fail:z})}if(t()){a.ajax({type:"POST",url:"/Site/CMS/Ajax/ShoppingCartService.asmx/AddArticleToCart",data:r}).done(s)}};var g=function(s){var q=a("#quantityLargerThanStockAmount");if(q.length>0){var r=q.html();if(r.indexOf("AMOUNT")!=-1){q.html(r.replace(new RegExp("AMOUNT","g"),s))}q.foundation("reveal","open")}};var d=function(s){var q=a(this),r=q.data("cart"),t;s.preventDefault();if(r.quantityElementId){t=a("#"+r.quantityElementId);if(t.length){r.quantity=t.val()}}c(r,q);return false};var j=function(){a(h).on("click",'a[data-role="buybutton"]:not(.disabled)',d)};n.framework.initPage(false,j);n.framework.initMiniCart();n.cart={addArticleHandler:b,reloadMiniShoppingCart:m,onAjaxReloadMiniShoppingCart:k,displayInvalidQuantityAmountMessage:g};a(".gift-wrap-checkbox").change(function(){if(a(this).siblings(".checkbox").hasClass("checked")){a(".gift-wrap-comment").show()}else{a(".gift-wrap-comment").hide()}})}(window.site||{},window,window.document,jQuery));(function(m,c,a){var o=a(window).width(),n=a(window).height()-10;var b={width:"50%",height:"50%",top:"0",right:"0",bottom:"0",left:"0",transition:"none"},i,h="modal2",l=function(){i.addClass(h)},j=function(){a("#colorbox,#cboxOverlay").hide()},k=function(){i.removeClass(h)},f=false;var e=function(){if(f){return}i=a("html");a(c).bind({cbox_complete:l,cbox_cleanup:j,cbox_closed:k});f=true};var g=function(p,q,r){var s=a.extend({},b,q);if(!r){p.colorbox(s)}else{p.on("click.modal",r,function(u){u.preventDefault();var v=a(this).attr("href");var t=v.indexOf("?")!=-1?"&_=":"?_=";t+=a.now();a(this).attr("href",v+t);a(this).colorbox(s)})}};a.fn.modal=function(p,q){e();if(arguments.length===1&&typeof p==="string"){q=p;p={}}g(this,p,q);return this};a.fn.editpopup=function(q,r,p){e();d(this,q,r,p);return this};var d=function(q,r,s,p){var t=a.extend({},b,r);q.on("click.editpopup",s,function(u){u.preventDefault();var v=a(this).closest("form");var w=v.serialize();a.post(this.href,w,function(x,z,y){if(y.status===204){if(p){p()}}else{t=a.extend({},t,{html:x});a.colorbox(t)}},"html")})}}(window.site,window.document,jQuery));(function(l,d,a,g){var e=100,h=".navgroup",b="active",k="popup",j="mouseenter.nav",i="mouseleave.nav",c=g.touch;var f=function(o){var q=o.find(">ul>li").has("a[role=button]"),p=o.outerHeight(),n=q.children("a");var m=function(){var y,B=a(this),w=B.children("a");var v=function(){if(y&&y.length){y.css("margin-top",p)}};var s=function(){w.removeClass(b);B.removeClass(b);y.fadeOut(e,function(){y.removeClass(b)});return false};var r=function(){y.addClass(b).find(".column").equalHeight()};var C=function(){var D=o.find(h).not(y);if(y.hasClass(b)){D.removeClass(b);s()}else{y.fadeIn(e,function(){D.removeClass(b);r();D.hide()});n.not(w).removeClass(b);w.addClass(b);B.addClass(b+" "+k);q.not(B).removeClass(b+" "+k)}};var u=function(D,F,E){if(D&&E&&E.status===200){y=a(a.trim(D));B.append(y);v();C()}};var x=function(){var G=w.data("page");var H=w.data("productgroup");var E=w.data("currentpage");var I=w.data("tagmenu");var J,F,D=true;if(E){if(I){J=location.protocol+"//"+location.host+"/Site/CMS/Ajax/ProductByFieldMenu.aspx";F="PageID="+G}else{if(H){J=location.protocol+"//"+location.host+"/Site/CMS/Ajax/ProductGroupMenu.aspx";F="id="+H+"&PageID="+E}else{J=location.protocol+"//"+location.host+"/Site/CMS/Ajax/PageMenu.aspx";F="id="+G+"&PageID="+E}}a.ajax({url:J,data:F,success:u,dataType:"html",cache:D});return true}return false};var z=function(){if(y){C()}else{return !x()}return false};if(w.length){if(c){w.click(z)}else{var A=null,t=null;B.bind(j,function(D){D.stopPropagation();D.preventDefault();if(!B.hasClass(b)){B.bind(i,function(){l.clearTimeout(A);t=l.setTimeout(function(){l.clearTimeout(A);l.clearTimeout(t);if(B.hasClass(b)){s()}},300)});A=l.setTimeout(function(){l.clearTimeout(t);w.unbind(i);z();l.clearTimeout(A)},50)}})}}};q.each(m)};a(d).ready(function(){f(a("#navprimary"))})}(window,window.document,jQuery,Modernizr));(function(e,g,a){var f=function(){var h=function(){var j=a(this).children().eq(0).attr("href");if(j.substr(0,1)!=="#"){var i=a(this).parent().find(".content").children("div");e.framework.linkLoader({url:j,target:i,callBack:e.foundation.reapplyFoundationForms})}};a("p.title").on("click",h)};var d=function(i){var h=i.find(".notice");if(h.length){g.setTimeout(function(){h.slideUp()},2000)}};var c=function(m,l){var h=a(m.address),k=a(m.zipCode),i=a(m.city),j=a(m.country);var n=function(s,o,r,p,q){if(s){o.val(h.val());r.val(k.val());p.val(i.val());q.val(j.val())}else{o.val("");r.val("");p.val("");q.val(0)}};a(document.body).on("change",".deliveryaddresstoggle",function(){var o=a(l.address),r=a(l.zipCode),p=a(l.city),q=a(l.country);n(a(this).is(":checked"),o,r,p,q)})};var b=function(){f();d(a("#content"));e.orderhistory.init("#orderhistory");e.persons.init("#persons");e.addresses.init("#addresses")};e.mypage={initAddressFields:c};e.framework.initPage("mypage",b,false,d)}(window.site||{},window,jQuery));(function(f,g,b,a){var d=function(h,l){a(b.body).on("click.cancelbutton",l+" .cancelbutton",j);a(b.body).on("click.approvebutton",l+" .approvebutton",i);function j(o){o.preventDefault();var n=a(this);var p=n.data("message");var m=confirm(p);if(m){k(n)}}function i(n){n.preventDefault();var m=a(this);k(m)}function k(m){f.framework.linkLoader({link:m,target:a(l),forceReload:true,callBack:function(){if(a(".paging a.active").length>0){a(".paging a.active").click()}else{f.framework.linkLoader({link:a("div[data-section] .active p[data-section-title] a"),target:a(h),forceReload:true})}}})}a(b.body).on("click.reorderbutton",l+" .reorderbutton",function(o){o.preventDefault();var p=a(this).attr("message");var m=confirm(p);if(m){var n=a(this);a.post(this.href,function(){f.cart.reloadMiniShoppingCart();f.orderhistory.orderUpdatedNotification(n,"#reordermessage")},"html")}})};var e=function(){a(b.body).on("click",".printbutton",function(){g.print()})};var c=function(h){d(h,"#orderdetails");e()};f.order={init:c};f.framework.initPage("order",c)}(window.site||{},window,window.document,jQuery));(function(f,a){var e=null;var d=function(i,l){var j;var k=a(l).text();var h=i.attr("title");var g=function(){if(e){window.clearTimeout(e)}if(j){j.hide()}};j=i.data("tooltip");g();i.attr("title",k);if(!j){i.tooltip({tipClass:"reordermessage",effect:"slide",events:{def:"change,change"}}).dynamic({bottom:{direction:"down",bounce:true}});j=i.data("tooltip")}j.show();i.attr("title",h);e=window.setTimeout(function(){g()},2000)};var c=function(g){a(g).each(function(){var h=a(this);h.on("click",".paging a",function(i){i.preventDefault();f.framework.linkLoader({link:a(this),target:h,forceReload:true,callBack:function(){f.foundation.reapplyFoundationForms();if(a(document).scrollTop()>h.offset().top){a(window).scrollTop(h.offset().top)}}})});h.on("change.myorders",".myorders",function(i){f.framework.linkLoader({link:a(this),target:h,forceReload:true,callBack:f.foundation.reapplyFoundationForms})});h.on("click.approvebutton",".approvebutton",function(k){k.preventDefault();var j=a(this);var m=j.data("order");var l=j.data("message");var i=confirm(l);if(i){a.post(this.href,m,function(n){d(j,"#orderapprovedmessage");h.html(n);f.foundation.reapplyFoundationForms()},"html")}});h.on("click.reorderbutton",".reorderbutton",function(k){k.preventDefault();var j=a(this);var m=j.data("order");var l=j.data("message");var i=confirm(l);if(i){a.post(this.href,m,function(){f.cart.reloadMiniShoppingCart();d(j,"#reordermessage")},"html")}});h.on("click.cancelbutton",".cancelbutton",function(k){k.preventDefault();var j=a(this);var m=j.data("order");var l=j.data("message");var i=confirm(l);if(i){a.post(this.href,m,function(n){h.html(n);f.foundation.reapplyFoundationForms()},"html")}});h.on("click.order-link",".order-link",function(i){f.framework.showModal(a(this),"orderpopup",i)})})};var b=function(g){c(g);f.order.init(g)};f.orderhistory={init:b,orderUpdatedNotification:d};f.framework.initPage("orderhistory",b)}(window.site||{},jQuery));(function(g,a,k,h){var f=function(p,m,l){var s;if(!m){m=k.document}a(".modal").on("click",function(u){g.framework.showModal(a(this),"externalAttributes",u)});s=a("article.product-list-item",m);if(s.length){var o=function(){s.find(".imagewrapper").equalHeight({imagesLoaded:true,callback:n,onResize:false})};var n=function(){s.find(".hgroup").equalHeight({callback:q,onResize:false})};var q=function(){s.find(".pricearea").equalHeight({callback:t,onResize:false})};var t=function(){s.find(".variantselectioncontainer").equalHeight({callback:r,onResize:false})};var r=function(){s.equalHeight({onResize:false,callback:l})};s.imagesLoaded(function(){s.equalHeight({imagesLoaded:false,callback:o,onResize:!!p})});return true}else{return false}};var b=function(){f(true);Foundation.libs.section.settings.callback=f};var c={productdata:function(){var l=a("#productdata > section");if(l.length){l.children("[data-section-title]").children("a").append('<span class="icon">&nbsp;</span>');if(l.filter("active").length===0){l.first().addClass("active")}}},init:function(){if(!g.framework.isPageTemplate("product1")){return}this.productdata()}};var i=(!(k.history&&k.history.pushState))?a.noop:function(l){var m=URI();if(l>1){}else{m.removeSearch("Page")}k.history.replaceState(null,"",m.resource())};var j=function(l){var n;var m=a("a.searchresult-toggle.current");if(m.length){n=new URI(m.attr("href"));n.setSearch("Page",l);m.attr("href",n.toString())}};var d={selector:".lazyload-list",ids:[],lazyLoad:{onLoad:function(n,m){var l=m.find(d.selector+":visible");if(l.length){l.append(a('<div class="loading"/>'));n.parent().addClass("lazyload-loading")}},init:function(l){a(k.document.body).on("click.lazyload",".lazyload-button",function(){d.lazyLoad.onLoad(a(this),a("#"+l))})},markAddedProducts:function(l,m){var n=l.find(d.selector).children(":nth-last-child(-n+"+m+")");if(n.length){a("html,body").animate({scrollTop:n.first().offset().top-20},500)}}},init:function(l){d.ids.push(l);d.lazyLoad.init(l)},update:function(p,n,o){var l=a("#"+p);var m=function(){d.lazyLoad.markAddedProducts(l,o);i(n);j(n);setTimeout(function(){a(k).trigger("resize")},1000)};if(!f(false,l,m)){m()}}};g.product={setProductHeight:f,initProductList:d.init,updateProductList:d.update};var e=function(m){var l=d.ids.indexOf(m.attr("id"))!==-1;if(!l){f(true)}};a("a[href*=#]:not([href=#])").click(function(){var l=a(this.hash);if(this.hash=="#findStore"){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")||location.hostname==this.hostname){l=l.length?l:a("[name="+this.hash.slice(1)+"]");if(l.length){a("html,body").animate({scrollTop:(l.offset().top-a("#toolbar").height())},1000);return false}}}});g.framework.initPage("productgroup",null,b,e);g.framework.initPage("brand",null,b,e);g.framework.initPage("productcatalog",null,b,e);g.framework.initPage("productsetpage",null,b,e);g.framework.initPage("productbyfieldlist",null,b,e);g.framework.initPage("startpage",null,b,e);g.framework.initPage("searchresult",null,b,e);g.framework.initPage("guide",null,b,e);g.framework.initPage("recipe",null,b,e);g.framework.initPage("checkout",null,b,e);g.framework.initPage("campaign",null,b,e);c.init()}(window.site||{},jQuery,window));(function(e,a){var d=function(){a("div#startpage-news, div#startpage-product-of-the-month").equalHeight()};var c=function(){if(a("#startpage-club-info iframe").length){var f=a("#startpage-club-info iframe").outerHeight()+30;a("div#startpage-big-teaser, div#startpage-club-info").css("height",f)}else{a("div#startpage-big-teaser, div#startpage-club-info").equalHeight()}};var b=function(){d();c()};e.framework.initPage("startpage",null,b,b)}(window.site||{},jQuery));(function(l,n,a){var b=n.History;var d=function(){a(".productlist").each(function(){a(this).on("click",".paging a",function(o){o.preventDefault();h(a(this).attr("href"))})})};var c=function(){a(".ajax").each(function(){a(this).on("click","a",function(o){o.preventDefault();var p=a(this).attr("href");if(p!="#"){h(a(this).attr("href"))}});a(this).on("change","select",function(o){o.preventDefault();h(this.value)})})};var j=function(p,o){if(typeof fromPrice==="undefined"||fromPrice<p){fromPrice=p}if(typeof toPrice==="undefined"||toPrice>o){toPrice=o}a("#slider-range").slider({range:true,min:p,max:o,values:[fromPrice,toPrice],slide:function(q,r){a(".fromPrice").text(r.values[0]+" "+currencySymbol);a(".toPrice").text(r.values[1]+" "+currencySymbol)},change:function(q,s){var r=a("#slider-range").attr("data-sliderurl");if(s.values[0]!==p){r=r+"&FromPrice="+s.values[0]}if(s.values[1]!==o){r=r+"&ToPrice="+s.values[1]}if(s.values[0]==p&&s.values[1]==o){r=r+"&FromPrice="+s.values[0]+"&ToPrice="+s.values[1]}h(r)}});a(".fromPrice").text(fromPrice+" "+currencySymbol);a(".toPrice").text(toPrice+" "+currencySymbol)};var f=function(){if(!a("#slider-range").length){return}var o=a("#slider-range").attr("data-pageurl");if((typeof minPrice==="undefined")||(typeof maxPrice==="undefined")){a.ajax({url:o,cache:false}).done(function(p){if(p.MinPrice!=null||p.MaxPrice!=null){j(p.MinPrice,p.MaxPrice)}else{a(".slider-conteiner").hide()}})}else{j(minPrice,maxPrice)}};var h=function(o){if(b.enabled){b.pushState(o,null,o)}else{i(o)}};var i=function(o){a("form:first").attr("action",o);l.framework.loadingMessage(a(".productlist"));a(".productsearchbutton").click()};var e=function(){d();c();f();setTimeout(function(){a(n).trigger("resize")},1000)};var k=function(){d();c();f();a("form:first").attr("action",n.location.href)};var g=true;a(n).bind("statechange",function(){m()});function m(){if(g===true){var o=b.getState(),p=o.url;i(p);g=false;setTimeout(function(){g=true},300)}}l.searchResult={init:e};l.framework.initPage("searchresult",false,e,k);l.framework.initPage("productgroup",false,e,k);l.framework.initPage("productcatalog",false,e,k);l.framework.initPage("productsetpage",false,e,k);l.framework.initPage("productbyfieldlist",false,e,k)}(window.site||{},window,jQuery));(function(m,a){var c;var b=function(){var n=a(".altAddressContainer");var o=function(){var p=a(".altAddressVisibilitySwitcher input");if(p.is(":checked")){n.find(".error").each(function(){this.enabled=true})}else{n.find(".error").each(function(){ValidatorEnable(this,false)})}};o();a(".altAddressVisibilitySwitcher input").on("change",function(){o();n.toggle(a(this).is(":checked"))})};var f=function(n,p){var o=function(){var q=a("#"+n),r=a("#"+p);if(q.is(":checked")){r.removeAttr("disabled");r.removeClass("disabled")}else{r.attr("disabled","disabled");r.addClass("disabled")}};o();a("#"+n).on("change",function(){o()})};var k=function(){a("#termsandconditionslink").click(function(n){m.framework.showModalWithText(a("#textandagreementcontainer"),n)})};var g=function(){a(document.body).on("click",".billingaddressaddeditlinkpopup",function(n){m.framework.showModal(a(this),"billingaddressaddeditpopup",n)});a(document.body).on("click",".billingaddressaddeditpopup .saveaddress",function(n){m.framework.showEditModal(a(this),".addresspopup",n,function(p){var o=p.getResponseHeader("x-addressid");var q=a(".dropDownListBillingAddresses").val();m.framework.closeModal();if(o==q){setInterval(function(){__doPostBack("AddressChanged","")},300)}else{__doPostBack(a("#updatePanelContainer > div").attr("id"),o)}})});a(document.body).on("click",".billingaddressaddeditpopup .closepopup",function(){m.framework.closeModal()});a(document.body).on("click",".deliveryaddressaddeditlinkpopup",function(n){c=a(this);m.framework.showModal(a(this),"deliveryaddressaddeditpopup",n)});a(document.body).on("click",".deliveryaddressaddeditpopup .saveaddress",function(n){m.framework.showEditModal(a(this),".addresspopup",n,function(r){var o=r.getResponseHeader("x-addressid");var q=c.closest(".deliverymethod").find("input[type='hidden']").val();var p=o+"#"+q;m.framework.closeModal();setInterval(function(){__doPostBack("AddressChanged",p)},300)})});a(document.body).on("click",".deliveryaddressaddeditpopup .closepopup",function(){m.framework.closeModal()});a(document.body).on("click",".deliveryaddressaddlinlpopup",function(n){c=a(this);m.framework.showModal(a(this),"deliveryaddressaddpopup",n)});a(document.body).on("click",".deliveryaddressaddpopup .saveaddress",function(n){m.framework.showEditModal(a(this),".addresspopup",n,function(r){var o=r.getResponseHeader("x-addressid");var q=c.closest(".deliverymethod").find("input[type='hidden']").val();var p=o+"#"+q;m.framework.closeModal();setInterval(function(){__doPostBack("AddressChanged",p)},300)})});a(document.body).on("click",".deliveryaddressaddpopup .closepopup",function(){m.framework.closeModal()})};var h=function(n,o){a("#"+n).click(function(){a(this).attr("disabled","disabled");__doPostBack(o,"")})};var j=function(){a(".paymentmethodspopupcontainer").on("click",".paymentmethod",function(n){a(".paymentmethod").removeClass("selected");a(this).addClass("selected");var o=a('input[type="radio"]',a(this));a("span",o.parent()).addClass("checked");if(o.data("a")!="1"){o.data("a","1");o.click();o.data("a","")}});a(".paymentmethodspopupcontainer").foundation("reveal",{opened:function(){a(this).appendTo("form")}});a(document.body).on("click",".paymentmethodspopuplink",function(n){n.preventDefault();a(".paymentmethodspopupcontainer").foundation("reveal","open")})};var i=function(){a(".deliverymethodspopupcontainer").on("click",".deliverymethod",function(n){a(".deliverymethod").removeClass("selected");a(this).addClass("selected");var o=a('input[type="radio"]',a(this));a("span",o.parent()).addClass("checked");if(o.data("a")!="1"){o.data("a","1");o.click();o.data("a","")}});a(".deliverymethodspopupcontainer").foundation("reveal",{opened:function(){a(this).appendTo("form")}});a(document.body).on("click",".deliverymethodspopuplink",function(n){n.preventDefault();a(".deliverymethodspopupcontainer").foundation("reveal","open")})};var d=function(){if(a(".showdeliveryrow").val()=="true"){a(".hidedeliveryrows").show();a(".deliveryrowscontainer").show();a(".showdeliveryrows").hide()}else{a(".showdeliveryrows").show();a(".hidedeliveryrows").hide();a(".deliveryrowscontainer").hide()}a(".hidedeliveryrows").click(function(n){n.preventDefault();a(".showdeliveryrows").toggle();a(".hidedeliveryrows").toggle();a(".deliveryrowscontainer").toggle();a(".showdeliveryrow").val("false")});a(".showdeliveryrows").click(function(n){n.preventDefault();a(".showdeliveryrows").toggle();a(".hidedeliveryrows").toggle();a(".deliveryrowscontainer").toggle();a(".showdeliveryrow").val("true")})};var l=function(u,p){var o=a(u);var t=o.siblings("input.quantity"),s;if(t.length){s=parseInt(t.val(),10);if(s<1){var n=confirm(p);if(!n){var r=t.data("quantity");t.val(r);return false}}}return true};var e=function(){b();g();k();m.foundation.fixCustomMarkup();j();i();m.cart.addArticleHandler=function(n){window.setTimeout(function(){__doPostBack("addproduct","")},500);n();return false};d();a(".orderrowquantity").change(function(){var n=a(this).val();if(n!=0){a(this).data("quantity",n)}});a(document).ready(function(){a(".confirmorder").bind("click",function(n){n.preventDefault();if(m.validation.validateOnClick("CheckoutValidationDetails")==false){a(".confirmorder").removeClass("confirmorder-loading");a(".confirmorder").attr({disabled:false});return false}if(m.validation.validateOnClick("CheckoutValidationDetails")==true){a(".confirmorder").attr({disabled:true});a(".confirmorder").addClass("confirmorder-loading");a(".realConfirmButton").click()}})})};m.checkout={altAddressVisibilitySwitcher:b,initAcceptConditions:f,initConfirmButtonActions:h,reduceQuantityToZeroConfirm:l};m.framework.initPage("checkout",e);m.framework.initPage("addeditaddress",e)}(window.site||{},jQuery));(function(d,a){var c=function(e){a(e).each(function(){var f=a(this);f.on("click",".paging a",function(g){g.preventDefault();d.framework.linkLoader({link:a(this),target:f,forceReload:true,callBack:function(){if(a(document).scrollTop()>f.offset().top){a(window).scrollTop(f.offset().top)}}})});f.on("click.deleteperson",".deleteperson",function(h){h.preventDefault();var i=a(this).attr("message");var g=confirm(i);if(g){d.framework.linkLoader({link:a(this),target:f,forceReload:true})}})});a(e).on("click.addeditperson",".addeditperson",function(f){d.framework.showModal(a(this),"personrevealpopup",f)})};var b=function(e){var f=e||".personlist";c(f);d.person.init(f)};d.persons={init:b};d.framework.initPage("persons",b)}(window.site||{},jQuery));(function(e,f,b,a){var d=function(g,h){a(b.body).on("click",h+" .saveperson",function(i){e.framework.showEditModal(a(this),h,i,function(){var j;if(a(g+" .paging a.active").length>0){j=a(g+" .paging a.active")}else{j=a("div[data-section] .active p[data-section-title] a")}e.framework.linkLoader({link:j,target:a(g),forceReload:true,callBack:function(){e.framework.closeModal()}})})});a(b.body).on("click",h+" .closepopup",function(i){i.preventDefault();e.framework.closeModal()})};var c=function(g){d(g,"#personpopup")};e.person={init:c};e.framework.initPage("person",c)}(window.site||{},window,window.document,jQuery));(function(e,a){var b;var d=function(f,g){a(f).each(function(){var h=a(this);h.on("click",".paging a",function(i){i.preventDefault();e.framework.linkLoader({link:a(this),target:h,forceReload:true,callBack:function(){if(a(document).scrollTop()>h.offset().top){a(window).scrollTop(h.offset().top)}}})});h.on("click.deleteaddress",".deleteaddress",function(j){j.preventDefault();var k=a(this).attr("message");var i=confirm(k);if(i){e.framework.linkLoader({link:a(this),target:h,forceReload:true})}});h.on("click",".addeditaddress",function(i){e.framework.showModal(a(this),"addressrevealpopup",i)})});a(document.body).on("click",g+" .saveaddress",function(h){e.framework.showEditModal(a(this),g,h,function(){var i;if(a(f+" .paging a.active").length>0){i=a(f+" .paging a.active")}else{i=a("div[data-section] .active p[data-section-title] a")}e.framework.linkLoader({link:i,target:a(f),forceReload:true,callBack:function(){e.framework.closeModal()}})})});a(document.body).on("click",g+" .closepopup",function(h){e.framework.closeModal()})};var c=function(f){b=f||".addresslist";d(f,".addresspopup")};e.addresses={init:c};e.framework.initPage("addresses",c)}(window.site||{},jQuery));(function(e,a){var d=function(){a("div.cp-store-storeimage, div.cp-store-openinghours").equalHeight()};var c=function(){a("div.cp-store-currentinfo, div.mapWrapper").equalHeight()};var b=function(){d();c()};e.framework.initPage("store",null,b,b)}(window.site||{},jQuery));(function(f,a){var d=function(){a('form.custom input[type="radio"]').not('[data-customforms="disabled"]').each(b);a('form.custom input[type="checkbox"]').not('[data-customforms="disabled"]').each(b)};var b=function(i,j){var h=a(j);h.css({display:"none"});if(h.attr("type")==="radio"){h.on("change",function(k){k.preventDefault();g(a(this))})}};var g=function(h){var j=h,i=j.closest("form.custom");if(false===j.is(":disabled")){var l=h.parent().attr("data-customformname");if(typeof(l)!=="undefined"){l=this.escape(h.parent().attr("data-customformname"));var k=h.next();i.find('span[data-customformname="'+l+'"]').children("span.custom").not(k).removeClass("checked")}j.click()}};var c=function(){d()};var e=function(){a(document).foundation("forms");d()};f.foundation={fixCustomMarkup:c,reapplyFoundationForms:e}}(window.site||{},jQuery));(function(c,a){var d=function(j){var f="ErrorValidation";var h=window.Page_ClientValidate(j);if(!h){var e;var g;for(g=0;g<window.Page_Validators.length;g++){e=a("#"+window.Page_Validators[g].controltovalidate);e.removeClass(f)}for(g=0;g<window.Page_Validators.length;g++){e=a("#"+window.Page_Validators[g].controltovalidate);if(!window.Page_Validators[g].isvalid){e.addClass(f)}}}window.Page_BlockSubmit=false;return h};var b=function(){var e=window.ValidationSummaryOnSubmit;window.ValidationSummaryOnSubmit=function(){var f;f=window.scrollTo;window.scrollTo=function(){};e.apply(this,arguments);window.scrollTo=f}};c.validation={validateOnClick:d};c.framework.initPage(null,b)}(window.site||{},jQuery));$(document).ready(function(){$(".content-block-faq-head,.content-block-guide-head").bind("click",function(){$(this).toggleClass("active").next(".content-block-toggle").slideToggle()})});$(document.body).on("click",".js-expandable-header",function(){$(this).next(".js-expandable-content").slideToggle()});function PrintElem(a){$(a).printElement({pageTitle:"Print",overrideElementCSS:["/ui/css/printelement.css"],printMode:"popup"})}
/* jQuery printElement - v2.0.1 - 2014-08-22
* https://github.com/erikzaadi/jQuery.printElement
* Copyright (c) 2014 erikzaadi; Licensed MIT, GPL */
(function(i,h){var g=i.document;var a=i.jQuery;a.fn.printElement=function(k){var j=a.extend({},a.fn.printElement.defaults,k);if(j.printMode==="iframe"){if(/chrome/.test(navigator.userAgent.toLowerCase())){j.printMode="popup"}}a("[id^='printElement_']").remove();return this.each(function(){var l=a.meta?a.extend({},j,a(this).data()):j;f(a(this),l)})};a.fn.printElement.defaults={printMode:"iframe",pageTitle:"",overrideElementCSS:null,printBodyOptions:{styleToAdd:"padding:10px;margin:10px;",classNameToAdd:""},leaveOpen:false,iframeElementOptions:{styleToAdd:"border:none;position:absolute;width:0px;height:0px;bottom:0px;left:0px;",classNameToAdd:""}};a.fn.printElement.cssElement={href:"",media:""};function f(k,n){var l=e(k,n);var o=null;var j=null;if(n.printMode.toLowerCase()==="popup"){o=i.open("about:blank","printElementWindow","width=650,height=440,scrollbars=yes");j=o.document}else{var p="printElement_"+(Math.round(Math.random()*99999)).toString();var m=g.createElement("IFRAME");a(m).attr({style:n.iframeElementOptions.styleToAdd,id:p,className:n.iframeElementOptions.classNameToAdd,frameBorder:0,scrolling:"no",src:"about:blank"});g.body.appendChild(m);j=(m.contentWindow||m.contentDocument);if(j.document){j=j.document}m=g.frames?g.frames[p]:g.getElementById(p);o=m.contentWindow||m}focus();j.open();j.write(l);j.close();b(o)}function b(j){if(j&&j.printPage){j.printPage()}else{setTimeout(function(){b(j)},50)}}function d(k){var j=a(k);a(":checked",j).each(function(){this.setAttribute("checked","checked")});a("input[type='text'],input[type='number']",j).each(function(){this.setAttribute("value",a(this).val())});a("select",j).each(function(){var m=a(this);a("option",m).each(function(){if(m.val()===a(this).val()){this.setAttribute("selected","selected")}})});a("textarea",j).each(function(){var m=a(this).attr("value");if(this.firstChild){this.firstChild.textContent=m}else{this.innerHTML=m}});var l=a("<div></div>").append(j.clone()).html();return l}function c(){var j=(i.location.port)?":"+i.location.port:"";return i.location.protocol+"//"+i.location.hostname+j+i.location.pathname}function e(l,p){var j=a(l);var m=d(l);var n=[];n.push("<html><head><title>"+p.pageTitle+"</title>");if(p.overrideElementCSS){if(p.overrideElementCSS.length>0){for(var q=0;q<p.overrideElementCSS.length;q+=1){var k=p.overrideElementCSS[q];if(typeof(k)==="string"){n.push('<link type="text/css" rel="stylesheet" href="'+k+'" >')}else{var o=k.media||"";n.push('<link type="text/css" rel="stylesheet" href="'+k.href+'" media="'+o+'" >')}}}}else{a("link",g).filter(function(){return a(this).attr("rel").toLowerCase()==="stylesheet"}).each(function(){var r=a(this).attr("media")||"";n.push('<link type="text/css" rel="stylesheet" href="'+a(this).attr("href")+'" media="'+r+'" >')})}n.push('<base href="'+c()+'" />');n.push('</head><body style="'+p.printBodyOptions.styleToAdd+'" class="'+p.printBodyOptions.classNameToAdd+'">');n.push('<div class="'+j.attr("class")+'">'+m+"</div>");n.push('<script type="text/javascript">function printPage(){focus();print();'+((!p.leaveOpen&&p.printMode.toLowerCase()==="popup")?"close();":"")+"}</script>");n.push("</body></html>");return n.join("")}}(window));$("#toolbar-user").click(function(){$("#toolbar-user-menu").slideToggle()});$(document).mouseup(function(c){var a=$("#toolbar-user-menu");var b=$("#toolbar-user");if(!a.is(c.target)&&!b.is(c.target)&&a.has(c.target).length===0){$("#toolbar-user-menu").slideUp()}});$(".description-toggle").click(function(){$(".description").toggleClass("description-part description-full");$(".description-toggle-readmore").toggle();$(".description-toggle-readless").toggle()});$(document).ready(function(){var a='<span class="sub-collaps-icon">&nbsp;</span>';$("#subnav>ul>li>ul").hide();$("#subnav>ul>li>ul>li>ul").hide();$("#subnav>ul>li>ul>li>ul>li>ul").hide();$("#subnav>ul>li>ul>li>ul>li>ul>li>ul").hide();$("#subnav>ul>li>ul>li>ul>li>ul>li>ul>li>ul").hide();$("#subnav>ul>li>ul>li>ul>li>ul>li>ul>li>ul>li>ul").hide();$("#subnav>ul>li>ul>li").parent("ul").parent("li").children("a").append(a);$("#subnav>ul>li>ul>li>ul>li").parent("ul").parent("li").children("a").append(a);$("#subnav>ul>li>ul>li>ul>li>ul>li").parent("ul").parent("li").children("a").append(a);$("#subnav>ul>li>ul>li>ul>li>ul>li>ul>li").parent("ul").parent("li").children("a").append(a);$("#subnav>ul>li>ul>li>ul>li>ul>li>ul>li>ul>li").parent("ul").parent("li").children("a").append(a);$("#subnav>ul>li>ul>li>ul>li>ul>li>ul>li>ul>li>ul>li").parent("ul").parent("li").children("a").append(a);$("#subnav>ul>li>ul>li.selected").parent("ul").show();$("#subnav>ul>li>ul>li>ul>li.selected").parent("ul").show();$("#subnav>ul>li>ul>li>ul>li>ul>li.selected").parent("ul").show();$("#subnav>ul>li>ul>li>ul>li>ul>li>ul>li.selected").parent("ul").show();$("#subnav>ul>li>ul>li>ul>li>ul>li>ul>li>ul>li.selected").parent("ul").show();$("#subnav>ul>li>ul>li>ul>li>ul>li>ul>li>ul>li>ul>li.selected").parent("ul").show();$("#subnav>ul>li.selected>ul").show();$("#subnav>ul>li>ul>li.selected>ul").show();$("#subnav>ul>li>ul>li>ul>li.selected>ul").show();$("#subnav>ul>li>ul>li>ul>li>ul>li.selected>ul").show();$("#subnav>ul>li>ul>li>ul>li>ul>li>ul>li.selected>ul").show();$("#subnav>ul>li>ul>li>ul>li>ul>li>ul>li>ul>li.selected>ul").show();$("#subnav>ul>li>ul>li>ul>li>ul>li>ul>li>ul>li>ul>li.selected>ul").show();$("#subnav>ul>li>ul>li.selectedparent").parent("ul").show();$("#subnav>ul>li>ul>li>ul>li.selectedparent").parent("ul").show();$("#subnav>ul>li>ul>li>ul>li>ul>li.selectedparent").parent("ul").show();$("#subnav>ul>li>ul>li>ul>li>ul>li>ul>li.selectedparent").parent("ul").show();$("#subnav>ul>li>ul>li>ul>li>ul>li>ul>li>ul>li.selectedparent").parent("ul").show();$("#subnav>ul>li>ul>li>ul>li>ul>li>ul>li>ul>li>ul>li.selectedparent").parent("ul").show();$("#subnav>ul>li.selectedparent>a>span").addClass("sub-collaps-icon-minus");$("#subnav>ul>li>ul>li.selectedparent>a>span").addClass("sub-collaps-icon-minus");$("#subnav>ul>li>ul>li>ul>li.selectedparent>a>span").addClass("sub-collaps-icon-minus");$("#subnav>ul>li>ul>li>ul>li>ul>li.selectedparent>a>span").addClass("sub-collaps-icon-minus");$("#subnav>ul>li>ul>li>ul>li>ul>li>ul>li.selectedparent>a>span").addClass("sub-collaps-icon-minus");$("#subnav>ul>li>ul>li>ul>li>ul>li>ul>li>ul>li.selectedparent>a>span").addClass("sub-collaps-icon-minus");$("#subnav>ul>li.selected>a>span").addClass("sub-collaps-icon-minus");$("#subnav>ul>li>ul>li.selected>a>span").addClass("sub-collaps-icon-minus");$("#subnav>ul>li>ul>li>ul>li.selected>a>span").addClass("sub-collaps-icon-minus");$("#subnav>ul>li>ul>li>ul>li>ul>li.selected>a>span").addClass("sub-collaps-icon-minus");$("#subnav>ul>li>ul>li>ul>li>ul>li>ul>li.selected>a>span").addClass("sub-collaps-icon-minus");$("#subnav>ul>li>ul>li>ul>li>ul>li>ul>li>ul>li.selected>a>span").addClass("sub-collaps-icon-minus");$("#subnav ul li a span").click(function(c){var b=$(this);b.toggleClass("sub-collaps-icon-minus");b.parent("a").siblings().slideToggle();c.preventDefault()});$("#subnav ul li a").click(function(b){})});$(".product-list-swipeable").each(function(a,b){productSwListSwipeableID="product-list-swipeable-"+a;$(this).attr("id",productSwListSwipeableID);productSwLayout(productSwListSwipeableID)});function productSwLayout(j){function c(y,x){return(" "+y.className+" ").indexOf(" "+x+" ")>-1}var k=j;var p;var t;var h;var i;var g;var m;var n;var l;var f;var o;g=$("#"+k+" > .product-list-row > .product-list-container > .product-list-item").size();var b=document.getElementById(k);if(c(b,"product-list-large-1-columns")){h=1}else{if(c(b,"product-list-large-2-columns")){h=2}else{if(c(b,"product-list-large-3-columns")){h=3}else{if(c(b,"product-list-large-4-columns")){h=4}else{if(c(b,"product-list-large-5-columns")){h=5}else{if(c(b,"product-list-large-6-columns")){h=6}}}}}}i=h;$("#"+k).append('<span class="product-list-row-swipeable-control-previous"> </span>');$("#"+k+" > .product-list-row-swipeable-control-previous").click(function(){e();return false});$("#"+k).append('<span class="product-list-row-swipeable-control-next"> </span>');$("#"+k+" > .product-list-row-swipeable-control-next").click(function(){d();return false});function r(){var x=$(window).width();if(x<400){if(h==1){i=1}else{if(h==2){i=1}else{if(h==3){i=1}else{if(h==4){i=1}else{if(h==5){i=1}else{if(h==6){i=1}}}}}}}else{if($(window).width()<600){if(h==1){i=1}else{if(h==2){i=2}else{if(h==3){i=2}else{if(h==4){i=2}else{if(h==5){i=2}else{if(h==6){i=2}}}}}}}else{if(h==1){i=1}else{if(h==2){i=2}else{if(h==3){i=3}else{if(h==4){i=4}else{if(h==5){i=5}else{if(h==6){i=6}}}}}}}}}function q(){m=100/g;$("#"+k+" > .product-list-row > .product-list-container > .product-list-item").css("width",m+"%");o=(100/i)*g;$("#"+k+" > .product-list-row > .product-list-container").css("width",o+"%");n=$("#"+k+" > .product-list-row > .product-list-container > .product-list-item").outerWidth();l=g-(i-1)}function s(){o=(100/i)*g;$("#"+k+" > .product-list-row > .product-list-container").css("width",o+"%");n=$("#"+k+" > .product-list-row > .product-list-container > .product-list-item").outerWidth();l=g-(i-1);a()}r();q();f=0;t=500;var v={triggerOnTouchEnd:true,swipeStatus:w,allowPageScroll:"vertical",threshold:75};$(function(){p=$("#"+k+" > .product-list-row > .product-list-container");p.swipe(v)});$(window).resize(function(){r();s()});function w(A,B,x,y){if(B=="move"&&(x=="left"||x=="right")){var z=0;if(x=="left"){u((n*f)+y,z)}else{if(x=="right"){u((n*f)-y,z)}}}else{if(B=="cancel"){u(n*f,t)}else{if(B=="end"){if(x=="right"&&y>50){e()}else{if(x=="left"&&y>50){d()}else{a()}}}}}}function a(){u(n*f,t)}function e(){f=Math.max(f-1,0);u(n*f,t)}function d(){f=Math.min(f+1,l-1);u(n*f,t)}function u(x,y){p.css("-webkit-transition","all "+(y/1000).toFixed(1)+"s").css("-moz-transition","all "+(y/1000).toFixed(1)+"s").css("-ms-transition","all "+(y/1000).toFixed(1)+"s").css("-o-transition","all "+(y/1000).toFixed(1)+"s").css("transition","all "+(y/1000).toFixed(1)+"s");var z=(x<0?"":"-")+Math.abs(x).toString();p.css("-webkit-transform","translate("+z+"px,0px)").css("-moz-transform","translate("+z+"px,0px)").css("-ms-transform","translate("+z+"px,0px)").css("-o-transform","translate("+z+"px,0px)").css("transform","translate("+z+"px,0px)")}};