(function(n){"use strict";n.fn.foundationAccordion=function(){var i=function(n){return n.hasClass("hover")&&!Modernizr.touch};n(document).on("mouseenter",".accordion li",function(){var r=n(this).parent(),t;i(r)&&(t=n(this).children(".content").first(),n(".content",r).not(t).hide().parent("li").removeClass("active"),t.show(0,function(){t.parent("li").addClass("active")}))});n(document).on("click.fndtn",".accordion li .title",function(){var t=n(this).closest("li"),r=t.parent(),u;i(r)||(u=t.children(".content").first(),t.hasClass("active")?r.children("li").removeClass("active"):(n(".content",r).not(u).parent("li").removeClass("active"),u.parent("li").addClass("active")))})}})(jQuery,this),function(n){"use strict";n.fn.foundationAlerts=function(t){var i=n.extend({callback:n.noop},t);n(document).on("click",".alert-box a.close",function(t){t.preventDefault(),n(this).closest(".alert-box").fadeOut(function(){n(this).remove(),i.callback()})})}}(jQuery,this),function(n,t,i){"use strict";n.fn.foundationButtons=function(t){var u=n(document),r=n.extend({dropdownAsToggle:!1,activeClass:"active"},t),f=function(t){n(".button.dropdown").find("ul").not(t).removeClass("show-dropdown")},e=function(t){var i=n(".button.dropdown").not(t);i.add(n("> span."+r.activeClass,i)).removeClass(r.activeClass)};u.on("click.fndtn",".button.disabled",function(n){n.preventDefault()});n(".button.dropdown > ul",this).addClass("no-hover");u.on("click.fndtn",".button.dropdown:not(.split), .button.dropdown.split span",function(t){var i=n(this),u=i.closest(".button.dropdown"),o=n("> ul",u);n.inArray(t.target.nodeName,["A","BUTTON"])&&t.preventDefault(),setTimeout(function(){f(r.dropdownAsToggle?"":o),o.toggleClass("show-dropdown"),r.dropdownAsToggle&&(e(u),i.toggleClass(r.activeClass))},0)});u.on("click.fndtn","body, html",function(t){i!=t.originalEvent&&(n(t.originalEvent.target).is(".button.dropdown:not(.split), .button.dropdown.split span")||(f(),r.dropdownAsToggle&&e()))});var o=n(".button.dropdown:not(.large):not(.small):not(.tiny):visible",this).outerHeight()-1,s=n(".button.large.dropdown:visible",this).outerHeight()-1,h=n(".button.small.dropdown:visible",this).outerHeight()-1,c=n(".button.tiny.dropdown:visible",this).outerHeight()-1;n(".button.dropdown:not(.large):not(.small):not(.tiny) > ul",this).css("top",o),n(".button.dropdown.large > ul",this).css("top",s),n(".button.dropdown.small > ul",this).css("top",h),n(".button.dropdown.tiny > ul",this).css("top",c),n(".button.dropdown.up:not(.large):not(.small):not(.tiny) > ul",this).css("top","auto").css("bottom",o-2),n(".button.dropdown.up.large > ul",this).css("top","auto").css("bottom",s-2),n(".button.dropdown.up.small > ul",this).css("top","auto").css("bottom",h-2),n(".button.dropdown.up.tiny > ul",this).css("top","auto").css("bottom",c-2)}}(jQuery,this),function(n,t,i){"use strict";var f={templates:{viewing:'<a href="#" class="clearing-close">&times;<\/a><div class="visible-img" style="display: none"><img src="#"><p class="clearing-caption"><\/p><a href="#" class="clearing-main-left"><\/a><a href="#" class="clearing-main-right"><\/a><\/div>'},close_selectors:"a.clearing-close",initialized:!1,locked:!1},u={init:function(){return this.find("ul[data-clearing]").each(function(){var s=n(i),t=n(this),r=r||{},e=e||{},o=t.data("fndtn.clearing.settings");o||(r.$parent=t.parent(),t.data("fndtn.clearing.settings",n.extend({},f,r)),u.assemble(t.find("li")),f.initialized||(u.events(t),Modernizr.touch&&u.swipe_events()))})},events:function(r){var e=r.data("fndtn.clearing.settings");n(i).on("click.fndtn.clearing","ul[data-clearing] li",function(t,i,r){var i=i||n(this),r=r||i,f=i.parent().data("fndtn.clearing.settings");t.preventDefault(),f||i.parent().foundationClearing(),u.open(n(t.target),i,r),u.update_paddles(r)}).on("click.fndtn.clearing",".clearing-main-right",function(n){u.nav(n,"next")}).on("click.fndtn.clearing",".clearing-main-left",function(n){u.nav(n,"prev")}).on("click.fndtn.clearing",e.close_selectors,this.close).on("keydown.fndtn.clearing",this.keydown);n(t).on("resize.fndtn.clearing",this.resize);f.initialized=!0},swipe_events:function(){n(i).bind("swipeleft","ul[data-clearing]",function(n){u.nav(n,"next")}).bind("swiperight","ul[data-clearing]",function(n){u.nav(n,"prev")}).bind("movestart","ul[data-clearing]",function(n){(n.distX>n.distY&&n.distX<-n.distY||n.distX<n.distY&&n.distX>-n.distY)&&n.preventDefault()})},assemble:function(n){var t=n.parent(),i=t.data("fndtn.clearing.settings"),u=t.detach(),r={grid:'<div class="carousel">'+this.outerHTML(u[0])+"<\/div>",viewing:i.templates.viewing},f='<div class="clearing-assembled"><div>'+r.viewing+r.grid+"<\/div><\/div>";return i.$parent.append(f)},open:function(n,t,i){var e=i.closest(".clearing-assembled"),o=e.find("div:first"),r=o.find(".visible-img"),f=r.find("img").not(n);u.locked()||(f.attr("src",this.load(n)),f.loaded(function(){e.addClass("clearing-blackout"),o.addClass("clearing-container"),this.caption(r.find(".clearing-caption"),n),r.show(),this.fix_height(i),this.center(f),this.shift(t,i,function(){i.siblings().removeClass("visible"),i.addClass("visible")})}.bind(this)))},close:function(t){t.preventDefault();var i=function(n){return/blackout/.test(n.selector)?n:n.closest(".clearing-blackout")}(n(this)),r,u;return this===t.target&&i&&(r=i.find("div:first"),u=r.find(".visible-img"),f.prev_index=0,i.find("ul[data-clearing]").attr("style",""),i.removeClass("clearing-blackout"),r.removeClass("clearing-container"),u.hide()),!1},keydown:function(t){var i=n(".clearing-blackout").find("ul[data-clearing]");t.which===39&&u.go(i,"next"),t.which===37&&u.go(i,"prev"),t.which===27&&n("a.clearing-close").trigger("click")},nav:function(t,i){var r=n(".clearing-blackout").find("ul[data-clearing]");t.preventDefault(),this.go(r,i)},resize:function(){var t=n(".clearing-blackout .visible-img").find("img");t.length>0&&u.center(t)},fix_height:function(t){var i=t.siblings();i.each(function(){var t=n(this),i=t.find("img");t.height()>i.outerHeight()&&t.addClass("fix-height")}).closest("ul").width(i.length*100+"%")},update_paddles:function(n){var t=n.closest(".carousel").siblings(".visible-img");n.next().length>0?t.find(".clearing-main-right").removeClass("disabled"):t.find(".clearing-main-right").addClass("disabled"),n.prev().length>0?t.find(".clearing-main-left").removeClass("disabled"):t.find(".clearing-main-left").addClass("disabled")},load:function(n){var t=n.parent().attr("href");return(this.preload(n),t)?t:n.attr("src")},preload:function(n){this.img(n.closest("li").next()),this.img(n.closest("li").prev())},img:function(n){if(n.length>0){var t=new Image,i=n.find("a");t.src=i.length>0?i.attr("href"):n.find("img").attr("src")}},caption:function(n,t){var i=t.data("caption");i?n.text(i).show():n.text("").hide()},go:function(n,t){var r=n.find(".visible"),i=r[t]();i.length>0&&i.find("img").trigger("click",[r,i])},shift:function(n,t,i){var r=t.parent(),h=f.prev_index,u=this.direction(r,n,t),s=parseInt(r.css("left"),10),e=t.outerWidth(),o;t.index()===h||/skip/.test(u)?/skip/.test(u)&&(o=t.index()-f.up_count,this.lock(),o>0?r.animate({left:-(o*e)},300,this.unlock):r.animate({left:0},300,this.unlock)):/left/.test(u)?(this.lock(),r.animate({left:s+e},300,this.unlock)):/right/.test(u)&&(this.lock(),r.animate({left:s-e},300,this.unlock)),i()},lock:function(){f.locked=!0},unlock:function(){f.locked=!1},locked:function(){return f.locked},direction:function(t,i,r){var o=t.find("li"),h=o.outerWidth()+o.outerWidth()/4,s=Math.floor(n(".clearing-container").outerWidth()/h)-1,u=o.index(r),e;return f.up_count=s,e=this.adjacent(f.prev_index,u)?u>s&&u>f.prev_index?"right":u>s-1&&u<=f.prev_index?"left":!1:"skip",f.prev_index=u,e},adjacent:function(n,t){for(var i=t+1;i>=t-1;i--)if(i===n)return!0;return!1},center:function(n){n.css({marginLeft:-(n.outerWidth()/2),marginTop:-(n.outerHeight()/2)})},outerHTML:function(n){return n.outerHTML||(new XMLSerializer).serializeToString(n)}};n.fn.foundationClearing=function(t){if(u[t])return u[t].apply(this,Array.prototype.slice.call(arguments,1));if(typeof t!="object"&&t)n.error("Method "+t+" does not exist on jQuery.foundationClearing");else return u.init.apply(this,arguments)},function(n){n.fn.loaded=function(t,i){function r(){f-=1,f||t()}function o(){this.one("load",r);if(n.browser.msie){var t=this.attr("src"),i=t.match(/\?/)?"&":"?";i+=e.cachePrefix+"="+ +new Date,this.attr("src",t+i)}}var e=n.extend({},n.fn.loaded.defaults,i),u=this.find("img").add(this.filter("img")),f=u.length;return u.each(function(){var t=n(this);if(!t.attr("src")){r();return}this.complete||this.readyState===4?r():o.call(t)})},n.fn.loaded.defaults={cachePrefix:"random"}}(jQuery)}(jQuery,this,this.document),function(n){var r=function(){return{tmp:[],hidden:null,adjust:function(t){var i=this;i.hidden=t.parents().andSelf().filter(":hidden"),i.hidden.each(function(){var t=n(this);i.tmp.push(t.attr("style")),t.css({visibility:"hidden",display:"block"})})},reset:function(){var t=this;t.hidden.each(function(i){var r=n(this),u=t.tmp[i];u===undefined?r.removeAttr("style"):r.attr("style",u)}),t.tmp=[],t.hidden=null}}};jQuery.foundation=jQuery.foundation||{},jQuery.foundation.customForms=jQuery.foundation.customForms||{},n.foundation.customForms.appendCustomMarkup=function(t){function i(t,i){var r=n(i).hide(),f=r.attr("type"),u=r.next("span.custom."+f);u.length===0&&(u=n('<span class="custom '+f+'"><\/span>').insertAfter(r)),u.toggleClass("checked",r.is(":checked")),u.toggleClass("disabled",r.is(":disabled"))}function f(i,u){var v=r(),e=n(u),f=e.next("div.custom.dropdown"),o=f.find("ul"),b=f.find(".current"),p=f.find(".selector"),h=e.find("option"),w=h.filter(":selected"),s=0,c="",l,a=!1,y;e.hasClass(t.disable_class)||(f.length===0?(y=e.hasClass("small")?"small":e.hasClass("medium")?"medium":e.hasClass("large")?"large":e.hasClass("expand")?"expand":"",f=n('<div class="'+["custom","dropdown",y].join(" ")+'"><a href="#" class="selector"><\/a><ul /><\/div>'),p=f.find(".selector"),o=f.find("ul"),c=h.map(function(){return"<li>"+n(this).html()+"<\/li>"}).get().join(""),o.append(c),a=f.prepend('<a href="#" class="current">'+w.html()+"<\/a>").find(".current"),e.after(f).hide()):(c=h.map(function(){return"<li>"+n(this).html()+"<\/li>"}).get().join(""),o.html("").append(c)),f.toggleClass("disabled",e.is(":disabled")),l=o.find("li"),h.each(function(t){this.selected&&(l.eq(t).addClass("selected"),a&&a.html(n(this).html()))}),o.css("width","auto"),f.css("width","auto"),f.is(".small, .medium, .large, .expand")||(f.addClass("open"),v.adjust(o),s=l.outerWidth()>s?l.outerWidth():s,v.reset(),f.removeClass("open"),f.width(s+18),o.width(s+16)))}var u={disable_class:"no-custom"};t=n.extend(u,t),n("form.custom input:radio[data-customforms!=disabled]").each(i),n("form.custom input:checkbox[data-customforms!=disabled]").each(i),n("form.custom select[data-customforms!=disabled]").each(f)};var u=function(t){var r=0,i=t.next();$options=t.find("option"),i.find("ul").html(""),$options.each(function(){$li=n("<li>"+n(this).html()+"<\/li>"),i.find("ul").append($li)}),$options.each(function(t){this.selected&&(i.find("li").eq(t).addClass("selected"),i.find(".current").html(n(this).html()))}),i.removeAttr("style").find("ul").removeAttr("style"),i.find("li").each(function(){i.addClass("open"),n(this).outerWidth()>r&&(r=n(this).outerWidth()),i.removeClass("open")}),i.css("width",r+18+"px"),i.find("ul").css("width",r+16+"px")},t=function(n){var t=n.prev(),i=t[0];!1===t.is(":disabled")&&(i.checked=i.checked?!1:!0,n.toggleClass("checked"),t.trigger("change"))},i=function(n){var t=n.prev(),i=t.closest("form.custom"),r=t[0];!1===t.is(":disabled")&&(i.find('input:radio[name="'+t.attr("name")+'"]').next().not(n).removeClass("checked"),n.hasClass("checked")||n.toggleClass("checked"),r.checked=n.hasClass("checked"),t.trigger("change"))};n(document).on("click","form.custom span.custom.checkbox",function(i){i.preventDefault(),i.stopPropagation(),t(n(this))});n(document).on("click","form.custom span.custom.radio",function(t){t.preventDefault(),t.stopPropagation(),i(n(this))});n(document).on("change","form.custom select[data-customforms!=disabled]",function(){u(n(this))});n(document).on("click","form.custom label",function(r){var e=n("#"+n(this).attr("for")+"[data-customforms!=disabled]"),u,f;e.length!==0&&(e.attr("type")==="checkbox"?(r.preventDefault(),u=n(this).find("span.custom.checkbox"),u.length==0&&(u=n(this).next("span.custom.checkbox")),u.length==0&&(u=n(this).prev("span.custom.checkbox")),t(u)):e.attr("type")==="radio"&&(r.preventDefault(),f=n(this).find("span.custom.radio"),f.length==0&&(f=n(this).next("span.custom.radio")),f.length==0&&(f=n(this).prev("span.custom.radio")),i(f)))});n(document).on("click","form.custom div.custom.dropdown a.current, form.custom div.custom.dropdown a.selector",function(t){var r=n(this),i=r.closest("div.custom.dropdown"),u=i.prev();return t.preventDefault(),n("div.dropdown").removeClass("open"),!1===u.is(":disabled")?(i.toggleClass("open"),i.hasClass("open")?n(document).bind("click.customdropdown",function(){i.removeClass("open"),n(document).unbind(".customdropdown")}):n(document).unbind(".customdropdown"),!1):void 0});n(document).on("click","form.custom div.custom.dropdown li",function(t){var i=n(this),r=i.closest("div.custom.dropdown"),u=r.prev(),f=0;t.preventDefault(),t.stopPropagation(),n("div.dropdown").removeClass("open"),i.closest("ul").find("li").removeClass("selected"),i.addClass("selected"),r.removeClass("open").find("a.current").html(i.html()),i.closest("ul").find("li").each(function(n){i[0]==this&&(f=n)}),u[0].selectedIndex=f,u.trigger("change")});n.fn.foundationCustomForms=n.foundation.customForms.appendCustomMarkup}(jQuery),function(n,t,i){"use strict";var e={version:"2.0.3",tipLocation:"bottom",nubPosition:"auto",scrollSpeed:300,timer:0,startTimerOnClick:!0,startOffset:0,nextButton:!0,tipAnimation:"fade",pauseAfter:[],tipAnimationFadeSpeed:300,cookieMonster:!1,cookieName:"joyride",cookieDomain:!1,tipContainer:"body",postRideCallback:n.noop,postStepCallback:n.noop,template:{link:'<a href="#close" class="joyride-close-tip">X<\/a>',timer:'<div class="joyride-timer-indicator-wrap"><span class="joyride-timer-indicator"><\/span><\/div>',tip:'<div class="joyride-tip-guide"><span class="joyride-nub"><\/span><\/div>',wrapper:'<div class="joyride-content-wrapper"><\/div>',button:'<a href="#" class="small button joyride-next-tip"><\/a>'}},f=f||!1,r={},u={init:function(i){return this.each(function(){if(n.isEmptyObject(r)){r=n.extend(!0,e,i),r.document=t.document,r.$document=n(r.document),r.$window=n(t),r.$content_el=n(this),r.body_offset=n(r.tipContainer).position(),r.$tip_content=n("> li",r.$content_el),r.paused=!1,r.attempts=0,r.tipLocationPatterns={top:["bottom"],bottom:[],left:["right","top","bottom"],right:["left","top","bottom"]},u.jquery_check(),n.isFunction(n.cookie)||(r.cookieMonster=!1),r.cookieMonster&&n.cookie(r.cookieName)||(r.$tip_content.each(function(t){u.create({$li:n(this),index:t})}),!r.startTimerOnClick&&r.timer>0?(u.show("init"),u.startTimer()):u.show("init"));r.$document.on("click.joyride",".joyride-next-tip, .joyride-modal-bg",function(n){n.preventDefault(),r.$li.next().length<1?u.end():r.timer>0?(clearTimeout(r.automate),u.hide(),u.show(),u.startTimer()):(u.hide(),u.show())});r.$document.on("click.joyride",".joyride-close-tip",function(n){n.preventDefault(),u.end()});r.$window.bind("resize.joyride",function(){u.is_phone()?u.pos_phone():u.pos_default()})}else u.restart()})},resume:function(){u.set_li(),u.show()},tip_template:function(t){var i,f;return t.tip_class=t.tip_class||"",i=n(r.template.tip).addClass(t.tip_class),f=n.trim(n(t.li).html())+u.button_text(t.button_text)+r.template.link+u.timer_instance(t.index),i.append(n(r.template.wrapper)),i.first().attr("data-index",t.index),n(".joyride-content-wrapper",i).append(f),i[0]},timer_instance:function(t){var i;return i=t===0&&r.startTimerOnClick&&r.timer>0||r.timer===0?"":u.outerHTML(n(r.template.timer)[0])},button_text:function(t){return r.nextButton?(t=n.trim(t)||"Next",t=u.outerHTML(n(r.template.button).append(t)[0])):t="",t},create:function(t){var i=t.$li.attr("data-button")||t.$li.attr("data-text"),f=t.$li.attr("class"),e=n(u.tip_template({tip_class:f,index:t.index,button_text:i,li:t.$li}));n(r.tipContainer).append(e)},show:function(t){var h={},e,s=[],c=0,o,f=null;if(r.$li===i||n.inArray(r.$li.index(),r.pauseAfter)===-1)if(r.paused?r.paused=!1:u.set_li(t),r.attempts=0,r.$li.length&&r.$target.length>0){for(s=(r.$li.data("options")||":").split(";"),c=s.length,e=c-1;e>=0;e--)o=s[e].split(":"),o.length===2&&(h[n.trim(o[0])]=n.trim(o[1]));r.tipSettings=n.extend({},r,h),r.tipSettings.tipLocationPattern=r.tipLocationPatterns[r.tipSettings.tipLocation],/body/i.test(r.$target.selector)||u.scroll_to(),u.is_phone()?u.pos_phone(!0):u.pos_default(!0),f=n(".joyride-timer-indicator",r.$next_tip),/pop/i.test(r.tipAnimation)?(f.outerWidth(0),r.timer>0?(r.$next_tip.show(),f.animate({width:n(".joyride-timer-indicator-wrap",r.$next_tip).outerWidth()},r.timer)):r.$next_tip.show()):/fade/i.test(r.tipAnimation)&&(f.outerWidth(0),r.timer>0?(r.$next_tip.fadeIn(r.tipAnimationFadeSpeed),r.$next_tip.show(),f.animate({width:n(".joyride-timer-indicator-wrap",r.$next_tip).outerWidth()},r.timer)):r.$next_tip.fadeIn(r.tipAnimationFadeSpeed)),r.$current_tip=r.$next_tip}else r.$li&&r.$target.length<1?u.show():u.end();else r.paused=!0},is_phone:function(){return f?f.mq("only screen and (max-width: 767px)"):r.$window.width()<767?!0:!1},hide:function(){r.postStepCallback(r.$li.index(),r.$current_tip),n(".joyride-modal-bg").hide(),r.$current_tip.hide()},set_li:function(n){n?(r.$li=r.$tip_content.eq(r.startOffset),u.set_next_tip(),r.$current_tip=r.$next_tip):(r.$li=r.$li.next(),u.set_next_tip()),u.set_target()},set_next_tip:function(){r.$next_tip=n(".joyride-tip-guide[data-index="+r.$li.index()+"]")},set_target:function(){var t=r.$li.attr("data-class"),i=r.$li.attr("data-id"),u=function(){return i?n(r.document.getElementById(i)):t?n("."+t).first():n("body")};r.$target=u()},scroll_to:function(){var t,i;t=r.$window.height()/2,i=Math.ceil(r.$target.offset().top-t+r.$next_tip.outerHeight()),n("html, body").stop().animate({scrollTop:i},r.scrollSpeed)},paused:function(){return n.inArray(r.$li.index()+1,r.pauseAfter)===-1?!0:!1},destroy:function(){r.$document.off(".joyride"),n(t).off(".joyride"),n(".joyride-close-tip, .joyride-next-tip, .joyride-modal-bg").off(".joyride"),n(".joyride-tip-guide, .joyride-modal-bg").remove(),clearTimeout(r.automate),r={}},restart:function(){u.hide(),r.$li=i,u.show("init")},pos_default:function(t){var o=Math.ceil(r.$window.height()/2),s=r.$next_tip.offset(),i=n(".joyride-nub",r.$next_tip),f=Math.ceil(i.outerHeight()/2),e=t||!1;e&&(r.$next_tip.css("visibility","hidden"),r.$next_tip.show()),/body/i.test(r.$target.selector)?r.$li.length&&u.pos_modal(i):(u.bottom()?(r.$next_tip.css({top:r.$target.offset().top+f+r.$target.outerHeight(),left:r.$target.offset().left}),u.nub_position(i,r.tipSettings.nubPosition,"top")):u.top()?(r.$next_tip.css({top:r.$target.offset().top-r.$next_tip.outerHeight()-f,left:r.$target.offset().left}),u.nub_position(i,r.tipSettings.nubPosition,"bottom")):u.right()?(r.$next_tip.css({top:r.$target.offset().top,left:r.$target.outerWidth()+r.$target.offset().left}),u.nub_position(i,r.tipSettings.nubPosition,"left")):u.left()&&(r.$next_tip.css({top:r.$target.offset().top,left:r.$target.offset().left-r.$next_tip.outerWidth()-f}),u.nub_position(i,r.tipSettings.nubPosition,"right")),!u.visible(u.corners(r.$next_tip))&&r.attempts<r.tipSettings.tipLocationPattern.length&&(i.removeClass("bottom").removeClass("top").removeClass("right").removeClass("left"),r.tipSettings.tipLocation=r.tipSettings.tipLocationPattern[r.attempts],r.attempts++,u.pos_default(!0))),e&&(r.$next_tip.hide(),r.$next_tip.css("visibility","visible"))},pos_phone:function(t){var o=r.$next_tip.outerHeight(),h=r.$next_tip.offset(),s=r.$target.outerHeight(),i=n(".joyride-nub",r.$next_tip),f=Math.ceil(i.outerHeight()/2),e=t||!1;i.removeClass("bottom").removeClass("top").removeClass("right").removeClass("left"),e&&(r.$next_tip.css("visibility","hidden"),r.$next_tip.show()),/body/i.test(r.$target.selector)?r.$li.length&&u.pos_modal(i):u.top()?(r.$next_tip.offset({top:r.$target.offset().top-o-f}),i.addClass("bottom")):(r.$next_tip.offset({top:r.$target.offset().top+s+f}),i.addClass("top")),e&&(r.$next_tip.hide(),r.$next_tip.css("visibility","visible"))},pos_modal:function(t){u.center(),t.hide(),n(".joyride-modal-bg").length<1&&n("body").append('<div class="joyride-modal-bg">').show(),/pop/i.test(r.tipAnimation)?n(".joyride-modal-bg").show():n(".joyride-modal-bg").fadeIn(r.tipAnimationFadeSpeed)},center:function(){var n=r.$window;return r.$next_tip.css({top:(n.height()-r.$next_tip.outerHeight())/2+n.scrollTop(),left:(n.width()-r.$next_tip.outerWidth())/2+n.scrollLeft()}),!0},bottom:function(){return/bottom/i.test(r.tipSettings.tipLocation)},top:function(){return/top/i.test(r.tipSettings.tipLocation)},right:function(){return/right/i.test(r.tipSettings.tipLocation)},left:function(){return/left/i.test(r.tipSettings.tipLocation)},corners:function(n){var t=r.$window,i=t.width()+t.scrollLeft(),u=t.width()+t.scrollTop();return[n.offset().top<=t.scrollTop(),i<=n.offset().left+n.outerWidth(),u<=n.offset().top+n.outerHeight(),t.scrollLeft()>=n.offset().left]},visible:function(n){for(var t=n.length;t--;)if(n[t])return!1;return!0},nub_position:function(n,t,i){t==="auto"?n.addClass(i):n.addClass(t)},startTimer:function(){r.$li.length?r.automate=setTimeout(function(){u.hide(),u.show(),u.startTimer()},r.timer):clearTimeout(r.automate)},end:function(){r.cookieMonster&&n.cookie(r.cookieName,"ridden",{expires:365,domain:r.cookieDomain}),r.timer>0&&clearTimeout(r.automate),n(".joyride-modal-bg").hide(),r.$current_tip.hide(),r.postStepCallback(r.$li.index(),r.$current_tip),r.postRideCallback(r.$li.index(),r.$current_tip)},jquery_check:function(){return n.isFunction(n.fn.on)?!0:(n.fn.on=function(n,t,i){return this.delegate(t,n,i)},n.fn.off=function(n,t,i){return this.undelegate(t,n,i)},!1)},outerHTML:function(n){return n.outerHTML||(new XMLSerializer).serializeToString(n)},version:function(){return r.version}};n.fn.joyride=function(t){if(u[t])return u[t].apply(this,Array.prototype.slice.call(arguments,1));if(typeof t!="object"&&t)n.error("Method "+t+" does not exist on jQuery.joyride");else return u.init.apply(this,arguments)}}(jQuery,this),function(n,t){"use strict";n.fn.foundationMagellan=function(i){var r=n(t),o=n(document),u=n("[data-magellan-expedition=fixed]"),s={threshold:u.length?u.outerHeight(!0):0,activeClass:"active"},i=n.extend({},s,i),f,e;o.on("magellan.arrival","[data-magellan-arrival]",function(){var r=n(this),f=r.closest("[data-magellan-expedition]"),u=f.attr("data-magellan-active-class")||i.activeClass;r.closest("[data-magellan-expedition]").find("[data-magellan-arrival]").not(this).removeClass(u),r.addClass(u)});f=n("[data-magellan-expedition]"),f.find("[data-magellan-arrival]:first").addClass(f.attr("data-magellan-active-class")||i.activeClass),u.on("magellan.update-position",function(){var t=n(this);t.data("magellan-fixed-position",""),t.data("magellan-top-offset","")}).trigger("magellan.update-position");r.on("resize.magellan",function(){u.trigger("magellan.update-position")});r.on("scroll.magellan",function(){var t=r.scrollTop();u.each(function(){var r=n(this),u;r.data("magellan-top-offset")===""&&r.data("magellan-top-offset",r.offset().top),u=t+i.threshold>r.data("magellan-top-offset"),r.data("magellan-fixed-position")!=u&&(r.data("magellan-fixed-position",u),u?r.css({position:"fixed",top:0}):r.css({position:"",top:""}))})});if(e=n("[data-magellan-destination]:last"),e.length>0)r.on("scroll.magellan",function(){var u=r.scrollTop(),f=u+r.outerHeight(!0),s=Math.ceil(e.offset().top);n("[data-magellan-destination]").each(function(){var t=n(this),r=t.attr("data-magellan-destination"),e=t.offset().top-u;e<=i.threshold&&n("[data-magellan-arrival="+r+"]").trigger("magellan.arrival"),f>=o.outerHeight(!0)&&s>u&&s<f&&n("[data-magellan-arrival]:last").trigger("magellan.arrival")})})}}(jQuery,this),function(n){"use strict";n.fn.foundationMediaQueryViewer=function(t){var i=n.extend(t,{toggleKey:77}),r=n(document);r.on("keyup.mediaQueryViewer",":input",function(n){n.which===i.toggleKey&&n.stopPropagation()});r.on("keyup.mediaQueryViewer",function(t){var r=n("#fqv");t.which===i.toggleKey&&(r.length>0?r.remove():n("body").prepend('<div id="fqv" style="position:fixed;top:4px;left:4px;z-index:999;color:#fff;"><p style="font-size:12px;background:rgba(0,0,0,0.75);padding:5px;margin-bottom:1px;line-height:1.2;"><span class="left">Media:<\/span> <span style="font-weight:bold;" class="show-for-xlarge">Extra Large<\/span><span style="font-weight:bold;" class="show-for-large">Large<\/span><span style="font-weight:bold;" class="show-for-medium">Medium<\/span><span style="font-weight:bold;" class="show-for-small">Small<\/span><span style="font-weight:bold;" class="show-for-landscape">Landscape<\/span><span style="font-weight:bold;" class="show-for-portrait">Portrait<\/span><span style="font-weight:bold;" class="show-for-touch">Touch<\/span><\/p><\/div>'))})}}(jQuery,this),function(n){"use strict";n.fn.foundationNavigation=function(){var i=!1;if(Modernizr.touch||navigator.userAgent.match(/Windows Phone/i)){n(document).on("click.fndtn touchstart.fndtn",".nav-bar a.flyout-toggle",function(t){t.preventDefault();var r=n(this).siblings(".flyout").first();i===!1&&(n(".nav-bar .flyout").not(r).slideUp(500),r.slideToggle(500,function(){i=!1})),i=!0});n(".nav-bar>li.has-flyout",this).addClass("is-touch")}else n(".nav-bar>li.has-flyout",this).on("mouseenter mouseleave",function(t){if(t.type=="mouseenter"&&(n(".nav-bar").find(".flyout").hide(),n(this).children(".flyout").show()),t.type=="mouseleave"){var i=n(this).children(".flyout"),r=i.find("input"),u=function(t){var i;return t.length>0?(t.each(function(){n(this).is(":focus")&&(i=!0)}),i):!1};u(r)||n(this).children(".flyout").hide()}})}}(jQuery,this),function(n){"use strict";n.fn.findFirstImage=function(){return this.first().find("img").andSelf().filter("img").first()};var t={defaults:{animation:"horizontal-push",animationSpeed:600,timer:!0,advanceSpeed:4e3,pauseOnHover:!1,startClockOnMouseOut:!1,startClockOnMouseOutAfter:1e3,directionalNav:!0,directionalNavRightText:"Right",directionalNavLeftText:"Left",captions:!0,captionAnimation:"fade",captionAnimationSpeed:600,resetTimerOnClick:!1,bullets:!1,bulletThumbs:!1,bulletThumbLocation:"",bulletThumbsHideOnSmall:!0,afterSlideChange:n.noop,afterLoadComplete:n.noop,fluid:!0,centerBullets:!0,singleCycle:!1,slideNumber:!1,stackOnSmall:!1},activeSlide:0,numberSlides:0,orbitWidth:null,orbitHeight:null,locked:null,timerRunning:null,degrees:0,wrapperHTML:'<div class="orbit-wrapper" />',timerHTML:'<div class="timer"><span class="mask"><span class="rotator"><\/span><\/span><span class="pause"><\/span><\/div>',captionHTML:'<div class="orbit-caption"><\/div>',directionalNavHTML:'<div class="slider-nav hide-for-small"><span class="right"><\/span><span class="left"><\/span><\/div>',bulletHTML:'<ul class="orbit-bullets"><\/ul>',slideNumberHTML:'<span class="orbit-slide-counter"><\/span>',init:function(t,i){var u,f=0,r=this;this.clickTimer=n.proxy(this.clickTimer,this),this.addBullet=n.proxy(this.addBullet,this),this.resetAndUnlock=n.proxy(this.resetAndUnlock,this),this.stopClock=n.proxy(this.stopClock,this),this.startTimerAfterMouseLeave=n.proxy(this.startTimerAfterMouseLeave,this),this.clearClockMouseLeaveTimer=n.proxy(this.clearClockMouseLeaveTimer,this),this.rotateTimer=n.proxy(this.rotateTimer,this),this.options=n.extend({},this.defaults,i),this.options.timer==="false"&&(this.options.timer=!1),this.options.captions==="false"&&(this.options.captions=!1),this.options.directionalNav==="false"&&(this.options.directionalNav=!1),this.$element=n(t),this.$wrapper=this.$element.wrap(this.wrapperHTML).parent(),this.$slides=this.$element.children("img, a, div, figure, li");this.$element.on("movestart",function(n){(n.distX>n.distY&&n.distX<-n.distY||n.distX<n.distY&&n.distX>-n.distY)&&n.preventDefault()});this.$element.bind("orbit.next",function(){r.shift("next")}),this.$element.bind("orbit.prev",function(){r.shift("prev")}),this.$element.bind("swipeleft",function(){n(this).trigger("orbit.next")}),this.$element.bind("swiperight",function(){n(this).trigger("orbit.prev")}),this.$element.bind("orbit.goto",function(n,t){r.shift(t)}),this.$element.bind("orbit.start",function(){r.startClock()}),this.$element.bind("orbit.stop",function(){r.stopClock()}),u=this.$slides.filter("img"),u.length===0?this.loaded():u.bind("imageready",function(){f+=1,f===u.length&&r.loaded()})},loaded:function(){this.$element.addClass("orbit").css({width:"1px",height:"1px"}),this.options.stackOnSmall&&this.$element.addClass("orbit-stack-on-small"),this.$slides.addClass("orbit-slide").css({opacity:0}),this.setDimentionsFromLargestSlide(),this.updateOptionsIfOnlyOneSlide(),this.setupFirstSlide(),this.notifySlideChange(),this.options.timer&&(this.setupTimer(),this.startClock()),this.options.captions&&this.setupCaptions(),this.options.directionalNav&&this.setupDirectionalNav(),this.options.bullets&&(this.setupBulletNav(),this.setActiveBullet()),this.options.afterLoadComplete.call(this),Holder.run()},currentSlide:function(){return this.$slides.eq(this.activeSlide)},notifySlideChange:function(){var t,i;this.options.slideNumber&&(t=this.activeSlide+1+" of "+this.$slides.length,this.$element.trigger("orbit.change",{slideIndex:this.activeSlide,slideCount:this.$slides.length}),this.$counter===undefined?(i=n(this.slideNumberHTML).html(t),this.$counter=i,this.$wrapper.append(this.$counter)):this.$counter.html(t))},setDimentionsFromLargestSlide:function(){var t=this,i;t.$element.add(t.$wrapper).width(this.$slides.first().outerWidth()),t.$element.add(t.$wrapper).height(this.$slides.first().height()),t.orbitWidth=this.$slides.first().outerWidth(),t.orbitHeight=this.$slides.first().height(),i=this.$slides.first().findFirstImage().clone(),this.$slides.each(function(){var r=n(this),u=r.outerWidth(),f=r.height();u>t.$element.outerWidth()&&(t.$element.add(t.$wrapper).width(u),t.orbitWidth=t.$element.outerWidth()),f>t.$element.height()&&(t.$element.add(t.$wrapper).height(f),t.orbitHeight=t.$element.height(),i=n(this).findFirstImage().clone()),t.numberSlides+=1}),this.options.fluid&&(typeof this.options.fluid=="string"&&(i=n("<img>").attr("data-src","holder.js/"+this.options.fluid)),t.$element.prepend(i),i.addClass("fluid-placeholder"),t.$element.add(t.$wrapper).css({width:"inherit"}),t.$element.add(t.$wrapper).css({height:"inherit"}),n(window).bind("resize",function(){t.orbitWidth=t.$element.outerWidth(),t.orbitHeight=t.$element.height()}))},lock:function(){this.locked=!0},unlock:function(){this.locked=!1},updateOptionsIfOnlyOneSlide:function(){this.$slides.length===1&&(this.options.directionalNav=!1,this.options.timer=!1,this.options.bullets=!1)},setupFirstSlide:function(){var n=this;this.$slides.first().css({"z-index":3,opacity:1}).fadeIn(function(){n.$slides.css({display:"block"})})},startClock:function(){var n=this;if(!this.options.timer)return!1;this.$timer.is(":hidden")?this.clock=setInterval(function(){n.$element.trigger("orbit.next")},this.options.advanceSpeed):(this.timerRunning=!0,this.$pause.removeClass("active"),this.clock=setInterval(this.rotateTimer,this.options.advanceSpeed/180,!1))},rotateTimer:function(n){var t="rotate("+this.degrees+"deg)";this.degrees+=2,this.$rotator.css({"-webkit-transform":t,"-moz-transform":t,"-o-transform":t,"-ms-transform":t}),n&&(this.degrees=0,this.$rotator.removeClass("move"),this.$mask.removeClass("move")),this.degrees>180&&(this.$rotator.addClass("move"),this.$mask.addClass("move")),this.degrees>360&&(this.$rotator.removeClass("move"),this.$mask.removeClass("move"),this.degrees=0,this.$element.trigger("orbit.next"))},stopClock:function(){if(this.options.timer)this.timerRunning=!1,clearInterval(this.clock),this.$pause.addClass("active");else return!1},setupTimer:function(){this.$timer=n(this.timerHTML),this.$wrapper.append(this.$timer),this.$rotator=this.$timer.find(".rotator"),this.$mask=this.$timer.find(".mask"),this.$pause=this.$timer.find(".pause"),this.$timer.click(this.clickTimer),this.options.startClockOnMouseOut&&(this.$wrapper.mouseleave(this.startTimerAfterMouseLeave),this.$wrapper.mouseenter(this.clearClockMouseLeaveTimer)),this.options.pauseOnHover&&this.$wrapper.mouseenter(this.stopClock)},startTimerAfterMouseLeave:function(){var n=this;this.outTimer=setTimeout(function(){n.timerRunning||n.startClock()},this.options.startClockOnMouseOutAfter)},clearClockMouseLeaveTimer:function(){clearTimeout(this.outTimer)},clickTimer:function(){this.timerRunning?this.stopClock():this.startClock()},setupCaptions:function(){this.$caption=n(this.captionHTML),this.$wrapper.append(this.$caption),this.setCaption()},setCaption:function(){var t=this.currentSlide().attr("data-caption"),i;if(!this.options.captions)return!1;if(t){if(n.trim(n(t).text()).length<1)return!1;t.charAt(0)=="#"&&(t=t.substring(1,t.length)),i=n("#"+t).html(),this.$caption.attr("id",t).html(i);switch(this.options.captionAnimation){case"none":this.$caption.show();break;case"fade":this.$caption.fadeIn(this.options.captionAnimationSpeed);break;case"slideOpen":this.$caption.slideDown(this.options.captionAnimationSpeed)}}else switch(this.options.captionAnimation){case"none":this.$caption.hide();break;case"fade":this.$caption.fadeOut(this.options.captionAnimationSpeed);break;case"slideOpen":this.$caption.slideUp(this.options.captionAnimationSpeed)}},setupDirectionalNav:function(){var t=this,i=n(this.directionalNavHTML);i.find(".right").html(this.options.directionalNavRightText),i.find(".left").html(this.options.directionalNavLeftText),this.$wrapper.append(i),this.$wrapper.find(".left").click(function(){t.stopClock(),t.options.resetTimerOnClick&&(t.rotateTimer(!0),t.startClock()),t.$element.trigger("orbit.prev")}),this.$wrapper.find(".right").click(function(){t.stopClock(),t.options.resetTimerOnClick&&(t.rotateTimer(!0),t.startClock()),t.$element.trigger("orbit.next")})},setupBulletNav:function(){this.$bullets=n(this.bulletHTML),this.$wrapper.append(this.$bullets),this.$slides.each(this.addBullet),this.$element.addClass("with-bullets"),this.options.centerBullets&&this.$bullets.css("margin-left",-this.$bullets.outerWidth()/2),this.options.bulletThumbsHideOnSmall&&this.$bullets.addClass("hide-for-small")},addBullet:function(t,i){var e=t+1,r=n("<li>"+e+"<\/li>"),f,u=this;this.options.bulletThumbs&&(f=n(i).attr("data-thumb"),f&&r.addClass("has-thumb").css({background:"url("+this.options.bulletThumbLocation+f+") no-repeat"})),this.$bullets.append(r),r.data("index",t),r.click(function(){u.stopClock(),u.options.resetTimerOnClick&&(u.rotateTimer(!0),u.startClock()),u.$element.trigger("orbit.goto",[r.data("index")])})},setActiveBullet:function(){if(this.options.bullets)this.$bullets.find("li").removeClass("active").eq(this.activeSlide).addClass("active");else return!1},resetAndUnlock:function(){this.$slides.eq(this.prevActiveSlide).css({"z-index":1}),this.unlock(),this.options.afterSlideChange.call(this,this.$slides.eq(this.prevActiveSlide),this.$slides.eq(this.activeSlide))},shift:function(t){var i=t;if((this.prevActiveSlide=this.activeSlide,this.prevActiveSlide==i)||this.$slides.length=="1")return!1;this.locked||(this.lock(),t=="next"?(this.activeSlide++,this.activeSlide==this.numberSlides&&(this.activeSlide=0)):t=="prev"?(this.activeSlide--,this.activeSlide<0&&(this.activeSlide=this.numberSlides-1)):(this.activeSlide=t,this.prevActiveSlide<this.activeSlide?i="next":this.prevActiveSlide>this.activeSlide&&(i="prev")),this.setActiveBullet(),this.notifySlideChange(),this.$slides.eq(this.prevActiveSlide).css({"z-index":2}),this.options.animation=="fade"&&(this.$slides.eq(this.activeSlide).css({opacity:0,"z-index":3}).animate({opacity:1},this.options.animationSpeed,this.resetAndUnlock),this.$slides.eq(this.prevActiveSlide).animate({opacity:0},this.options.animationSpeed)),this.options.animation=="horizontal-slide"&&(i=="next"&&this.$slides.eq(this.activeSlide).css({left:this.orbitWidth,"z-index":3}).css("opacity",1).animate({left:0},this.options.animationSpeed,this.resetAndUnlock),i=="prev"&&this.$slides.eq(this.activeSlide).css({left:-this.orbitWidth,"z-index":3}).css("opacity",1).animate({left:0},this.options.animationSpeed,this.resetAndUnlock),this.$slides.eq(this.prevActiveSlide).css("opacity",0)),this.options.animation=="vertical-slide"&&(i=="prev"&&(this.$slides.eq(this.activeSlide).css({top:this.orbitHeight,"z-index":3}).css("opacity",1).animate({top:0},this.options.animationSpeed,this.resetAndUnlock),this.$slides.eq(this.prevActiveSlide).css("opacity",0)),i=="next"&&this.$slides.eq(this.activeSlide).css({top:-this.orbitHeight,"z-index":3}).css("opacity",1).animate({top:0},this.options.animationSpeed,this.resetAndUnlock),this.$slides.eq(this.prevActiveSlide).css("opacity",0)),this.options.animation=="horizontal-push"&&(i=="next"&&(this.$slides.eq(this.activeSlide).css({left:this.orbitWidth,"z-index":3}).animate({left:0,opacity:1},this.options.animationSpeed,this.resetAndUnlock),this.$slides.eq(this.prevActiveSlide).animate({left:-this.orbitWidth},this.options.animationSpeed,"",function(){n(this).css({opacity:0})})),i=="prev"&&(this.$slides.eq(this.activeSlide).css({left:-this.orbitWidth,"z-index":3}).animate({left:0,opacity:1},this.options.animationSpeed,this.resetAndUnlock),this.$slides.eq(this.prevActiveSlide).animate({left:this.orbitWidth},this.options.animationSpeed,"",function(){n(this).css({opacity:0})}))),this.options.animation=="vertical-push"&&(i=="next"&&(this.$slides.eq(this.activeSlide).css({top:-this.orbitHeight,"z-index":3}).css("opacity",1).animate({top:0,opacity:1},this.options.animationSpeed,this.resetAndUnlock),this.$slides.eq(this.prevActiveSlide).css("opacity",0).animate({top:this.orbitHeight},this.options.animationSpeed,"")),i=="prev"&&(this.$slides.eq(this.activeSlide).css({top:this.orbitHeight,"z-index":3}).css("opacity",1).animate({top:0},this.options.animationSpeed,this.resetAndUnlock),this.$slides.eq(this.prevActiveSlide).css("opacity",0).animate({top:-this.orbitHeight},this.options.animationSpeed))),this.setCaption()),this.activeSlide===this.$slides.length-1&&this.options.singleCycle&&this.stopClock()}};n.fn.orbit=function(i){return this.each(function(){var r=n.extend({},t);r.init(this,i)})}}(jQuery),function(n){function i(t,i){var r=n(t);r.bind("load.imageready",function(){i.apply(t,arguments),r.unbind("load.imageready")})}var t={};n.event.special.imageready={setup:function(n){t=n||t},add:function(r){var u=n(this),f;this.nodeType===1&&this.tagName.toLowerCase()==="img"&&this.src!==""&&(t.forceLoad?(f=u.attr("src"),u.attr("src",""),i(this,r.handler),u.attr("src",f)):this.complete||this.readyState===4?r.handler.apply(this,arguments):i(this,r.handler))},teardown:function(){n(this).unbind(".imageready")}}}(jQuery);var Holder=Holder||{};(function(n,t){function c(n,t){var o="complete",s="readystatechange",r=!1,h=r,c=!0,i=n.document,l=i.documentElement,e=i.addEventListener?"addEventListener":"attachEvent",v=i.addEventListener?"removeEventListener":"detachEvent",f=i.addEventListener?"":"on",u=function(e){(e.type!=s||i.readyState==o)&&((e.type=="load"?n:i)[v](f+e.type,u,r),!h&&(h=!0)&&t.call(n,null))},a=function(){try{l.doScroll("left")}catch(n){setTimeout(a,50);return}u("poll")};if(i.readyState==o)t.call(n,"lazy");else{if(i.createEventObject&&l.doScroll){try{c=!n.frameElement}catch(y){}c&&a()}i[e](f+"DOMContentLoaded",u,r),i[e](f+s,u,r),n[e](f+"load",u,r)}}function f(n){n=n.match(/^(\W)?(.*)/);var t=document["getElement"+(n[1]?n[1]=="#"?"ById":"sByClassName":"sByTagName")](n[2]),i=[];return t!=null&&(i=t.length?t:t.length==0?t:[t]),i}function e(n,t){var i={},r,u;for(r in n)i[r]=n[r];for(u in t)i[u]=t[u];return i}function l(n,t,r){var e=[t.height,t.width].sort(),o=Math.round(e[1]/16),s=Math.round(e[0]/16),u=Math.max(r.size,o),f;return i.width=t.width,i.height=t.height,n.textAlign="center",n.textBaseline="middle",n.fillStyle=r.background,n.fillRect(0,0,t.width,t.height),n.fillStyle=r.foreground,n.font="bold "+u+"px sans-serif",f=r.text?r.text:t.width+"x"+t.height,Math.round(n.measureText(f).width)/t.width>1&&(u=Math.max(s,r.size)),n.font="bold "+u+"px sans-serif",n.fillText(f,t.width/2,t.height/2,t.width),i.toDataURL("image/png")}var h=!1,u=!1,i=document.createElement("canvas"),o,r,s;i.getContext?i.toDataURL("image/png").indexOf("data:image/png")<0?u=!0:o=i.getContext("2d"):u=!0,r={domain:"holder.js",images:"img",themes:{gray:{background:"#eee",foreground:"#aaa",size:12},social:{background:"#3a5a97",foreground:"#fff",size:12},industrial:{background:"#434A52",foreground:"#C2F200",size:12}}},n.flags={dimensions:{regex:/([0-9]+)x([0-9]+)/,output:function(n){var t=this.regex.exec(n);return{width:+t[1],height:+t[2]}}},colors:{regex:/#([0-9a-f]{3,})\:#([0-9a-f]{3,})/i,output:function(n){var t=this.regex.exec(n);return{size:r.themes.gray.size,foreground:"#"+t[2],background:"#"+t[1]}}},text:{regex:/text\:(.*)/,output:function(n){return this.regex.exec(n)[1]}}};for(s in n.flags)n.flags[s].match=function(n){return n.match(this.regex)};n.add_theme=function(t,i){return t!=null&&i!=null&&(r.themes[t]=i),n},n.add_image=function(t,i){var u=f(i),r,o,e;if(u.length)for(r=0,o=u.length;r<o;r++)e=document.createElement("img"),e.setAttribute("data-src",t),u[r].appendChild(e);return n},n.run=function(t){for(var a=e(r,t),c=f(a.images),d=!0,v,w,i,b=c.length,s=0;s<b;s++)if(i=r.themes.gray,v=c[s].getAttribute("data-src")||c[s].getAttribute("src"),v&&!!~v.indexOf(a.domain)){var k=!1,p=null,y=null,h=v.substr(v.indexOf(a.domain)+a.domain.length+1).split("/");for(sl=h.length,j=0;j<sl;j++)n.flags.dimensions.match(h[j])?(k=!0,p=n.flags.dimensions.output(h[j])):n.flags.colors.match(h[j])?i=n.flags.colors.output(h[j]):a.themes[h[j]]?i=a.themes[h[j]]:n.flags.text.match(h[j])&&(y=n.flags.text.output(h[j]));k&&(c[s].setAttribute("data-src",v),w=p.width+"x"+p.height,c[s].setAttribute("alt",y?y:i.text?i.text+" ["+w+"]":w),c[s].style.backgroundColor=i.background,i=y?e(i,{text:y}):i,u||c[s].setAttribute("src",l(o,p,i)))}return n},c(t,function(){h||n.run()})})(Holder,window),function(n){"use strict";var t=!1;n(document).on("click","a[data-reveal-id]",function(t){t.preventDefault();var i=n(this).attr("data-reveal-id");n("#"+i).reveal(n(this).data())});n.fn.reveal=function(i){var r=n(document),u={animation:"fadeAndPop",animationSpeed:300,closeOnBackgroundClick:!0,dismissModalClass:"close-reveal-modal",open:n.noop,opened:n.noop,close:n.noop,closed:n.noop};return i=n.extend({},u,i),this.not(".reveal-modal.open").each(function(){function a(){s=!1}function l(){s=!0}function v(){var i=n(".reveal-modal.open");i.length===1&&(t=!0,i.trigger("reveal:close"))}function y(){s||(l(),v(),u.addClass("open"),i.animation==="fadeAndPop"&&(e.open.top=r.scrollTop()-h,e.open.opacity=0,u.css(e.open),f.fadeIn(i.animationSpeed/2),u.delay(i.animationSpeed/2).animate({top:r.scrollTop()+o+"px",opacity:1},i.animationSpeed,function(){u.trigger("reveal:opened")})),i.animation==="fade"&&(e.open.top=r.scrollTop()+o,e.open.opacity=0,u.css(e.open),f.fadeIn(i.animationSpeed/2),u.delay(i.animationSpeed/2).animate({opacity:1},i.animationSpeed,function(){u.trigger("reveal:opened")})),i.animation==="none"&&(e.open.top=r.scrollTop()+o,e.open.opacity=1,u.css(e.open),f.css({display:"block"}),u.trigger("reveal:opened")))}function p(){var t=u.find(".flex-video"),n=t.find("iframe");n.length>0&&(n.attr("src",n.data("src")),t.fadeIn(100))}function w(){s||(l(),u.removeClass("open"),i.animation==="fadeAndPop"&&(u.animate({top:r.scrollTop()-h+"px",opacity:0},i.animationSpeed/2,function(){u.css(e.close)}),t?u.trigger("reveal:closed"):f.delay(i.animationSpeed).fadeOut(i.animationSpeed,function(){u.trigger("reveal:closed")})),i.animation==="fade"&&(u.animate({opacity:0},i.animationSpeed,function(){u.css(e.close)}),t?u.trigger("reveal:closed"):f.delay(i.animationSpeed).fadeOut(i.animationSpeed,function(){u.trigger("reveal:closed")})),i.animation==="none"&&(u.css(e.close),t||f.css({display:"none"}),u.trigger("reveal:closed")),t=!1)}function b(){u.unbind(".reveal"),f.unbind(".reveal"),c.unbind(".reveal"),n("body").unbind(".reveal")}function k(){var t=u.find(".flex-video"),n=t.find("iframe");n.length>0&&(n.data("src",n.attr("src")),n.attr("src",""),t.fadeOut(100))}var u=n(this),o=parseInt(u.css("top"),10),h=u.height()+o,s=!1,f=n(".reveal-modal-bg"),e={open:{top:0,opacity:0,visibility:"visible",display:"block"},close:{top:o,opacity:1,visibility:"hidden",display:"none"}},c;f.length===0&&(f=n("<div />",{"class":"reveal-modal-bg"}).insertAfter(u),f.fadeTo("fast",.8)),u.bind("reveal:open.reveal",y),u.bind("reveal:open.reveal",p),u.bind("reveal:close.reveal",w),u.bind("reveal:closed.reveal",k),u.bind("reveal:opened.reveal reveal:closed.reveal",a),u.bind("reveal:closed.reveal",b),u.bind("reveal:open.reveal",i.open),u.bind("reveal:opened.reveal",i.opened),u.bind("reveal:close.reveal",i.close),u.bind("reveal:closed.reveal",i.closed),u.trigger("reveal:open"),c=n("."+i.dismissModalClass).bind("click.reveal",function(){u.trigger("reveal:close")}),i.closeOnBackgroundClick&&(f.css({cursor:"pointer"}),f.bind("click.reveal",function(){u.trigger("reveal:close")})),n("body").bind("keyup.reveal",function(n){n.which===27&&u.trigger("reveal:close")})})}}(jQuery),function(n,t,i){"use strict";var u={callback:n.noop,deep_linking:!0,init:!1},f={init:function(t){return u=n.extend({},u,t),this.each(function(){u.init||f.events(),u.deep_linking&&f.from_hash()})},events:function(){n(i).on("click.fndtn",".tabs a",function(t){f.set_tab(n(this).parent("dd, li"),t)});u.init=!0},set_tab:function(t,i){var e=t.closest("dl, ul").find(".active"),f=t.children("a").attr("href"),o=/^#/.test(f),r=n(f+"Tab");o&&r.length>0&&(i&&!u.deep_linking&&i.preventDefault(),r.closest(".tabs-content").children("li").removeClass("active").hide(),r.css("display","block").addClass("active")),e.removeClass("active"),t.addClass("active"),u.callback()},from_hash:function(){var i=t.location.hash,r=n('a[href="'+i+'"]');r.trigger("click.fndtn")}};n.fn.foundationTabs=function(t){if(f[t])return f[t].apply(this,Array.prototype.slice.call(arguments,1));if(typeof t!="object"&&t)n.error("Method "+t+" does not exist on jQuery.foundationTabs");else return f.init.apply(this,arguments)}}(jQuery,this,this.document),function(n,t,i){"use strict";var r={bodyHeight:0,selector:".has-tip",additionalInheritableClasses:[],tooltipClass:".tooltip",tipTemplate:function(n,t){return'<span data-selector="'+n+'" class="'+r.tooltipClass.substring(1)+'">'+t+'<span class="nub"><\/span><\/span>'}},u={init:function(t){return r=n.extend(r,t),r.selector=r.targetClass?r.targetClass:r.selector,this.each(function(){var t=n("body");if(Modernizr.touch){t.on("click.tooltip touchstart.tooltip touchend.tooltip",r.selector,function(t){t.preventDefault(),n(r.tooltipClass).hide(),u.showOrCreateTip(n(this))});t.on("click.tooltip touchstart.tooltip touchend.tooltip",r.tooltipClass,function(t){t.preventDefault(),n(this).fadeOut(150)})}else t.on("mouseenter.tooltip mouseleave.tooltip",r.selector,function(t){var i=n(this);t.type==="mouseenter"?u.showOrCreateTip(i):t.type==="mouseleave"&&u.hide(i)});n(this).data("tooltips",!0)})},showOrCreateTip:function(n,t){var i=u.getTip(n);i&&i.length>0?u.show(n):u.create(n,t)},getTip:function(t){var f=u.selector(t),i=null;return f&&(i=n("span[data-selector="+f+"]"+r.tooltipClass)),i.length>0?i:!1},selector:function(n){var r=n.attr("id"),t=n.data("selector");return r===i&&t===i&&(t="tooltip"+Math.random().toString(36).substring(7),n.attr("data-selector",t)),r?r:t},create:function(t,i){var f=n(r.tipTemplate(u.selector(t),n("<div>").html(i?i:t.attr("title")).html())),e=u.inheritable_classes(t);f.addClass(e).appendTo("body"),Modernizr.touch&&f.append('<span class="tap-to-close">tap to close <\/span>'),t.removeAttr("title"),u.show(t)},reposition:function(i,r,u){var s,o,f,l,h,e,c;r.css("visibility","hidden").show(),s=i.data("width"),o=r.children(".nub"),f=o.outerHeight(),l=o.outerWidth(),e=function(n,t,i,r,u,f){return n.css({top:t,bottom:r,left:u,right:i,"max-width":f?f:"auto"}).end()},e(r,i.offset().top+i.outerHeight()+10,"auto","auto",i.offset().left,s),e(o,-f,"auto","auto",10),n(t).width()<767?(i.data("mobile-width")?r.width(i.data("mobile-width")).css("left",15).addClass("tip-override"):(h=i.closest(".columns"),h.length<0&&(h=n("body")),h.outerWidth()?r.width(h.outerWidth()-25).css("left",15).addClass("tip-override"):(c=Math.ceil(n(t).width()*.9),r.width(c).css("left",15).addClass("tip-override"))),e(o,-f,"auto","auto",i.offset().left)):u&&u.indexOf("tip-top")>-1?(e(r,i.offset().top-r.outerHeight()-f,"auto","auto",i.offset().left,s).removeClass("tip-override"),e(o,"auto","auto",-f,"auto")):u&&u.indexOf("tip-left")>-1?(e(r,i.offset().top+i.outerHeight()/2-f,"auto","auto",i.offset().left-r.outerWidth()-10,s).removeClass("tip-override"),e(o,r.outerHeight()/2-f/2,-f,"auto","auto")):u&&u.indexOf("tip-right")>-1?(e(r,i.offset().top+i.outerHeight()/2-f,"auto","auto",i.offset().left+i.outerWidth()+10,s).removeClass("tip-override"),e(o,r.outerHeight()/2-f/2,"auto","auto",-f)):u&&u.indexOf("tip-centered-top")>-1?(e(r,i.offset().top-r.outerHeight()-f,"auto","auto",i.offset().left+(i.outerWidth()-r.outerWidth())/2,s).removeClass("tip-override"),e(o,"auto",r.outerWidth()/2-f/2,-f,"auto")):u&&u.indexOf("tip-centered-bottom")>-1&&(e(r,i.offset().top+i.outerHeight()+10,"auto","auto",i.offset().left+(i.outerWidth()-r.outerWidth())/2,s).removeClass("tip-override"),e(o,-f,r.outerWidth()/2-f/2,"auto","auto")),r.css("visibility","visible").hide()},inheritable_classes:function(t){var u=["tip-top","tip-left","tip-bottom","tip-right","tip-centered-top","tip-centered-bottom","noradius"].concat(r.additionalInheritableClasses),i=t.attr("class"),f=i?n.map(i.split(" "),function(t){if(n.inArray(t,u)!==-1)return t}).join(" "):"";return n.trim(f)},show:function(n){var t=u.getTip(n);u.reposition(n,t,n.attr("class")),t.fadeIn(150)},hide:function(n){var t=u.getTip(n);t.fadeOut(150)},reload:function(){var t=n(this);return t.data("tooltips")?t.foundationTooltips("destroy").foundationTooltips("init"):t.foundationTooltips("init")},destroy:function(){return this.each(function(){n(t).off(".tooltip"),n(r.selector).off(".tooltip"),n(r.tooltipClass).each(function(t){n(n(r.selector).get(t)).attr("title",n(this).text())}).remove()})}};n.fn.foundationTooltips=function(t){if(u[t])return u[t].apply(this,Array.prototype.slice.call(arguments,1));if(typeof t!="object"&&t)n.error("Method "+t+" does not exist on jQuery.foundationTooltips");else return u.init.apply(this,arguments)}}(jQuery,this),function(n,t){"use strict";var r={index:0,initialized:!1},u={init:function(i){return this.each(function(){r=n.extend(r,i),r.$w=n(t),r.$topbar=n("nav.top-bar"),r.$section=r.$topbar.find("section"),r.$titlebar=r.$topbar.children("ul:first");var f=n("<div class='top-bar-js-breakpoint'/>").appendTo("body");r.breakPoint=f.width(),f.remove(),r.initialized||(u.assemble(),r.initialized=!0),r.height||u.largestUL(),r.$topbar.parent().hasClass("fixed")&&n("body").css("padding-top",r.$topbar.outerHeight());n(".top-bar .toggle-topbar").off("click.fndtn").on("click.fndtn",function(n){n.preventDefault(),u.breakpoint()&&(r.$topbar.toggleClass("expanded"),r.$topbar.css("min-height","")),r.$topbar.hasClass("expanded")||(r.$section.css({left:"0%"}),r.$section.find(">.name").css({left:"100%"}),r.$section.find("li.moved").removeClass("moved"),r.index=0)});n(".top-bar .has-dropdown>a").off("click.fndtn").on("click.fndtn",function(t){if((Modernizr.touch||u.breakpoint())&&t.preventDefault(),u.breakpoint()){var i=n(this),f=i.closest("li");r.index+=1,f.addClass("moved"),r.$section.css({left:-(100*r.index)+"%"}),r.$section.find(">.name").css({left:100*r.index+"%"}),i.siblings("ul").height(r.height+r.$titlebar.outerHeight(!0)),r.$topbar.css("min-height",r.height+r.$titlebar.outerHeight(!0)*2)}});n(t).on("resize.fndtn.topbar",function(){u.breakpoint()||r.$topbar.css("min-height","")});n(".top-bar .has-dropdown .back").off("click.fndtn").on("click.fndtn",function(t){t.preventDefault();var u=n(this),i=u.closest("li.moved"),f=i.parent();r.index-=1,r.$section.css({left:-(100*r.index)+"%"}),r.$section.find(">.name").css({left:100*r.index+"%"}),r.index===0&&r.$topbar.css("min-height",0),setTimeout(function(){i.removeClass("moved")},300)})})},breakpoint:function(){return r.$w.width()<r.breakPoint},assemble:function(){r.$section.detach(),r.$section.find(".has-dropdown>a").each(function(){var t=n(this),r=t.siblings(".dropdown"),i=n('<li class="title back js-generated"><h5><a href="#"><\/a><\/h5><\/li>');i.find("h5>a").html(t.html()),r.prepend(i)}),r.$section.appendTo(r.$topbar)},largestUL:function(){var i=r.$topbar.find("section ul ul"),t=i.first(),u=0;i.each(function(){n(this).children("li").length>t.children("li").length&&(t=n(this))}),t.children("li").each(function(){u+=n(this).outerHeight(!0)}),r.height=u}},e,f;n.fn.foundationTopBar=function(t){if(u[t])return u[t].apply(this,Array.prototype.slice.call(arguments,1));if(typeof t!="object"&&t)n.error("Method "+t+" does not exist on jQuery.foundationTopBar");else return u.init.apply(this,arguments)},n(".sticky").length>0&&(e=n(".sticky").length?n(".sticky").offset().top:0,f=n(t),f.scroll(function(){f.scrollTop()>=e?n(".sticky").addClass("fixed"):f.scrollTop()<e&&n(".sticky").removeClass("fixed")}))}(jQuery,this),function(n){n.fn.hoverIntent=function(t,i,r){var u={interval:100,sensitivity:7,timeout:0};u=typeof t=="object"?n.extend(u,t):n.isFunction(i)?n.extend(u,{over:t,out:i,selector:r}):n.extend(u,{over:t,out:t,selector:i});var f,e,o,s,h=function(n){f=n.pageX,e=n.pageY},c=function(t,i){if(i.hoverIntent_t=clearTimeout(i.hoverIntent_t),Math.abs(o-f)+Math.abs(s-e)<u.sensitivity)return n(i).off("mousemove.hoverIntent",h),i.hoverIntent_s=1,u.over.apply(i,[t]);o=f,s=e,i.hoverIntent_t=setTimeout(function(){c(t,i)},u.interval)},a=function(n,t){return t.hoverIntent_t=clearTimeout(t.hoverIntent_t),t.hoverIntent_s=0,u.out.apply(t,[n])},l=function(t){var r=jQuery.extend({},t),i=this;if(i.hoverIntent_t&&(i.hoverIntent_t=clearTimeout(i.hoverIntent_t)),t.type=="mouseenter"){o=r.pageX,s=r.pageY;n(i).on("mousemove.hoverIntent",h);i.hoverIntent_s!=1&&(i.hoverIntent_t=setTimeout(function(){c(r,i)},u.interval))}else n(i).off("mousemove.hoverIntent",h),i.hoverIntent_s==1&&(i.hoverIntent_t=setTimeout(function(){a(r,i)},u.timeout))};return this.on({"mouseenter.hoverIntent":l,"mouseleave.hoverIntent":l},u.selector)}}(jQuery),function(n,t){function i(t,i){var u,f,e,o=t.nodeName.toLowerCase();return"area"===o?(u=t.parentNode,f=u.name,!t.href||!f||u.nodeName.toLowerCase()!=="map")?!1:(e=n("img[usemap=#"+f+"]")[0],!!e&&r(e)):(/input|select|textarea|button|object/.test(o)?!t.disabled:"a"===o?t.href||i:i)&&r(t)}function r(t){return n.expr.filters.visible(t)&&!n(t).parents().addBack().filter(function(){return n.css(this,"visibility")==="hidden"}).length}var u=0,f=/^ui-id-\d+$/;(n.ui=n.ui||{},n.ui.version)||(n.extend(n.ui,{version:"1.10.1",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}}),n.fn.extend({_focus:n.fn.focus,focus:function(t,i){return typeof t=="number"?this.each(function(){var r=this;setTimeout(function(){n(r).focus(),i&&i.call(r)},t)}):this._focus.apply(this,arguments)},scrollParent:function(){var t;return t=n.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(n.css(this,"position"))&&/(auto|scroll)/.test(n.css(this,"overflow")+n.css(this,"overflow-y")+n.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(n.css(this,"overflow")+n.css(this,"overflow-y")+n.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!t.length?n(document):t},zIndex:function(i){if(i!==t)return this.css("zIndex",i);if(this.length)for(var r=n(this[0]),u,f;r.length&&r[0]!==document;){if(u=r.css("position"),(u==="absolute"||u==="relative"||u==="fixed")&&(f=parseInt(r.css("zIndex"),10),!isNaN(f)&&f!==0))return f;r=r.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++u)})},removeUniqueId:function(){return this.each(function(){f.test(this.id)&&n(this).removeAttr("id")})}}),n.extend(n.expr[":"],{data:n.expr.createPseudo?n.expr.createPseudo(function(t){return function(i){return!!n.data(i,t)}}):function(t,i,r){return!!n.data(t,r[3])},focusable:function(t){return i(t,!isNaN(n.attr(t,"tabindex")))},tabbable:function(t){var r=n.attr(t,"tabindex"),u=isNaN(r);return(u||r>=0)&&i(t,!u)}}),n("<a>").outerWidth(1).jquery||n.each(["Width","Height"],function(i,r){function e(t,i,r,u){return n.each(o,function(){i-=parseFloat(n.css(t,"padding"+this))||0,r&&(i-=parseFloat(n.css(t,"border"+this+"Width"))||0),u&&(i-=parseFloat(n.css(t,"margin"+this))||0)}),i}var o=r==="Width"?["Left","Right"]:["Top","Bottom"],u=r.toLowerCase(),f={innerWidth:n.fn.innerWidth,innerHeight:n.fn.innerHeight,outerWidth:n.fn.outerWidth,outerHeight:n.fn.outerHeight};n.fn["inner"+r]=function(i){return i===t?f["inner"+r].call(this):this.each(function(){n(this).css(u,e(this,i)+"px")})},n.fn["outer"+r]=function(t,i){return typeof t!="number"?f["outer"+r].call(this,t):this.each(function(){n(this).css(u,e(this,t,!0,i)+"px")})}}),n.fn.addBack||(n.fn.addBack=function(n){return this.add(n==null?this.prevObject:this.prevObject.filter(n))}),n("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(n.fn.removeData=function(t){return function(i){return arguments.length?t.call(this,n.camelCase(i)):t.call(this)}}(n.fn.removeData)),n.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),n.support.selectstart="onselectstart"in document.createElement("div"),n.fn.extend({disableSelection:function(){return this.bind((n.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(n){n.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),n.extend(n.ui,{plugin:{add:function(t,i,r){var u,f=n.ui[t].prototype;for(u in r)f.plugins[u]=f.plugins[u]||[],f.plugins[u].push([i,r[u]])},call:function(n,t,i){var r,u=n.plugins[t];if(u&&n.element[0].parentNode&&n.element[0].parentNode.nodeType!==11)for(r=0;r<u.length;r++)n.options[u[r][0]]&&u[r][1].apply(n.element,i)}},hasScroll:function(t,i){if(n(t).css("overflow")==="hidden")return!1;var r=i&&i==="left"?"scrollLeft":"scrollTop",u=!1;return t[r]>0?!0:(t[r]=1,u=t[r]>0,t[r]=0,u)}}))}(jQuery),function(n,t){var r=0,i=Array.prototype.slice,u=n.cleanData;n.cleanData=function(t){for(var i=0,r;(r=t[i])!=null;i++)try{n(r).triggerHandler("remove")}catch(f){}u(t)},n.widget=function(t,i,r){var s,f,u,o,h={},e=t.split(".")[0];t=t.split(".")[1],s=e+"-"+t,r||(r=i,i=n.Widget),n.expr[":"][s.toLowerCase()]=function(t){return!!n.data(t,s)},n[e]=n[e]||{},f=n[e][t],u=n[e][t]=function(n,t){if(!this._createWidget)return new u(n,t);arguments.length&&this._createWidget(n,t)},n.extend(u,f,{version:r.version,_proto:n.extend({},r),_childConstructors:[]}),o=new i,o.options=n.widget.extend({},o.options),n.each(r,function(t,r){if(!n.isFunction(r)){h[t]=r;return}h[t]=function(){var n=function(){return i.prototype[t].apply(this,arguments)},u=function(n){return i.prototype[t].apply(this,n)};return function(){var i=this._super,f=this._superApply,t;return this._super=n,this._superApply=u,t=r.apply(this,arguments),this._super=i,this._superApply=f,t}}()}),u.prototype=n.widget.extend(o,{widgetEventPrefix:f?o.widgetEventPrefix:t},h,{constructor:u,namespace:e,widgetName:t,widgetFullName:s}),f?(n.each(f._childConstructors,function(t,i){var r=i.prototype;n.widget(r.namespace+"."+r.widgetName,u,i._proto)}),delete f._childConstructors):i._childConstructors.push(u),n.widget.bridge(t,u)},n.widget.extend=function(r){for(var o=i.call(arguments,1),e=0,s=o.length,u,f;e<s;e++)for(u in o[e])f=o[e][u],o[e].hasOwnProperty(u)&&f!==t&&(r[u]=n.isPlainObject(f)?n.isPlainObject(r[u])?n.widget.extend({},r[u],f):n.widget.extend({},f):f);return r},n.widget.bridge=function(r,u){var f=u.prototype.widgetFullName||r;n.fn[r]=function(e){var h=typeof e=="string",o=i.call(arguments,1),s=this;return e=!h&&o.length?n.widget.extend.apply(null,[e].concat(o)):e,h?this.each(function(){var i,u=n.data(this,f);return u?!n.isFunction(u[e])||e.charAt(0)==="_"?n.error("no such method '"+e+"' for "+r+" widget instance"):(i=u[e].apply(u,o),i!==u&&i!==t?(s=i&&i.jquery?s.pushStack(i.get()):i,!1):void 0):n.error("cannot call methods on "+r+" prior to initialization; attempted to call method '"+e+"'")}):this.each(function(){var t=n.data(this,f);t?t.option(e||{})._init():n.data(this,f,new u(e,this))}),s}},n.Widget=function(){},n.Widget._childConstructors=[],n.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(t,i){i=n(i||this.defaultElement||this)[0],this.element=n(i),this.uuid=r++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=n.widget.extend({},this.options,this._getCreateOptions(),t),this.bindings=n(),this.hoverable=n(),this.focusable=n(),i!==this&&(n.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(n){n.target===i&&this.destroy()}}),this.document=n(i.style?i.ownerDocument:i.document||i),this.window=n(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:n.noop,_getCreateEventData:n.noop,_create:n.noop,_init:n.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(n.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:n.noop,widget:function(){return this.element},option:function(i,r){var o=i,u,f,e;if(arguments.length===0)return n.widget.extend({},this.options);if(typeof i=="string")if(o={},u=i.split("."),i=u.shift(),u.length){for(f=o[i]=n.widget.extend({},this.options[i]),e=0;e<u.length-1;e++)f[u[e]]=f[u[e]]||{},f=f[u[e]];if(i=u.pop(),r===t)return f[i]===t?null:f[i];f[i]=r}else{if(r===t)return this.options[i]===t?null:this.options[i];o[i]=r}return this._setOptions(o),this},_setOptions:function(n){var t;for(t in n)this._setOption(t,n[t]);return this},_setOption:function(n,t){return this.options[n]=t,n==="disabled"&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!t).attr("aria-disabled",t),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(t,i,r){var f,u=this;typeof t!="boolean"&&(r=i,i=t,t=!1),r?(i=f=n(i),this.bindings=this.bindings.add(i)):(r=i,i=this.element,f=this.widget()),n.each(r,function(r,e){function o(){if(t||u.options.disabled!==!0&&!n(this).hasClass("ui-state-disabled"))return(typeof e=="string"?u[e]:e).apply(u,arguments)}typeof e!="string"&&(o.guid=e.guid=e.guid||o.guid||n.guid++);var s=r.match(/^(\w+)\s*(.*)$/),h=s[1]+u.eventNamespace,c=s[2];c?f.delegate(c,h,o):i.bind(h,o)})},_off:function(n,t){t=(t||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,n.unbind(t).undelegate(t)},_delay:function(n,t){function r(){return(typeof n=="string"?i[n]:n).apply(i,arguments)}var i=this;return setTimeout(r,t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){n(t.currentTarget).addClass("ui-state-hover")},mouseleave:function(t){n(t.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){n(t.currentTarget).addClass("ui-state-focus")},focusout:function(t){n(t.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(t,i,r){var u,f,e=this.options[t];if(r=r||{},i=n.Event(i),i.type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),i.target=this.element[0],f=i.originalEvent,f)for(u in f)u in i||(i[u]=f[u]);return this.element.trigger(i,r),!(n.isFunction(e)&&e.apply(this.element[0],[i].concat(r))===!1||i.isDefaultPrevented())}},n.each({show:"fadeIn",hide:"fadeOut"},function(t,i){n.Widget.prototype["_"+t]=function(r,u,f){typeof u=="string"&&(u={effect:u});var o,e=u?u===!0||typeof u=="number"?i:u.effect||i:t;u=u||{},typeof u=="number"&&(u={duration:u}),o=!n.isEmptyObject(u),u.complete=f,u.delay&&r.delay(u.delay),o&&n.effects&&n.effects.effect[e]?r[t](u):e!==t&&r[e]?r[e](u.duration,u.easing,f):r.queue(function(i){n(this)[t](),f&&f.call(r[0]),i()})}})}(jQuery),function(n){var i=!1;n(document).mouseup(function(){i=!1}),n.widget("ui.mouse",{version:"1.10.1",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.bind("mousedown."+this.widgetName,function(n){return t._mouseDown(n)}).bind("click."+this.widgetName,function(i){if(!0===n.data(i.target,t.widgetName+".preventClickEvent"))return n.removeData(i.target,t.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&n(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(t){if(!i){this._mouseStarted&&this._mouseUp(t),this._mouseDownEvent=t;var r=this,u=t.which===1,f=typeof this.options.cancel=="string"&&t.target.nodeName?n(t.target).closest(this.options.cancel).length:!1;return!u||f||!this._mouseCapture(t)?!0:(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){r.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=this._mouseStart(t)!==!1,!this._mouseStarted))?(t.preventDefault(),!0):(!0===n.data(t.target,this.widgetName+".preventClickEvent")&&n.removeData(t.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(n){return r._mouseMove(n)},this._mouseUpDelegate=function(n){return r._mouseUp(n)},n(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),t.preventDefault(),i=!0,!0)}},_mouseMove:function(t){return n.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button?this._mouseUp(t):this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,t)!==!1,this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){return n(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&n.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),!1},_mouseDistanceMet:function(n){return Math.max(Math.abs(this._mouseDownEvent.pageX-n.pageX),Math.abs(this._mouseDownEvent.pageY-n.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}(jQuery),function(n,t){function e(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},n.extend(this._defaults,this.regional[""]),this.dpDiv=o(n("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'><\/div>"))}function o(t){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.delegate(i,"mouseout",function(){n(this).removeClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!==-1&&n(this).removeClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!==-1&&n(this).removeClass("ui-datepicker-next-hover")}).delegate(i,"mouseover",function(){n.datepicker._isDisabledDatepicker(f.inline?t.parent()[0]:f.input[0])||(n(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),n(this).addClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!==-1&&n(this).addClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!==-1&&n(this).addClass("ui-datepicker-next-hover"))})}function u(t,i){n.extend(t,i);for(var r in i)i[r]==null&&(t[r]=i[r]);return t}n.extend(n.ui,{datepicker:{version:"1.10.1"}});var i="datepicker",r=+new Date,f;n.extend(e.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(n){return u(this._defaults,n||{}),this},_attachDatepicker:function(t,i){var r,f,u;r=t.nodeName.toLowerCase(),f=r==="div"||r==="span",t.id||(this.uuid+=1,t.id="dp"+this.uuid),u=this._newInst(n(t),f),u.settings=n.extend({},i||{}),r==="input"?this._connectDatepicker(t,u):f&&this._inlineDatepicker(t,u)},_newInst:function(t,i){var r=t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:r,input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?o(n("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'><\/div>")):this.dpDiv}},_connectDatepicker:function(t,r){var u=n(t);(r.append=n([]),r.trigger=n([]),u.hasClass(this.markerClassName))||(this._attachments(u,r),u.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp),this._autoSize(r),n.data(t,i,r),r.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,i){var u,r,f,e=this._get(i,"appendText"),o=this._get(i,"isRTL");i.append&&i.append.remove(),e&&(i.append=n("<span class='"+this._appendClass+"'>"+e+"<\/span>"),t[o?"before":"after"](i.append)),t.unbind("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),u=this._get(i,"showOn"),(u==="focus"||u==="both")&&t.focus(this._showDatepicker),(u==="button"||u==="both")&&(r=this._get(i,"buttonText"),f=this._get(i,"buttonImage"),i.trigger=n(this._get(i,"buttonImageOnly")?n("<img/>").addClass(this._triggerClass).attr({src:f,alt:r,title:r}):n("<button type='button'><\/button>").addClass(this._triggerClass).html(f?n("<img/>").attr({src:f,alt:r,title:r}):r)),t[o?"before":"after"](i.trigger),i.trigger.click(function(){return n.datepicker._datepickerShowing&&n.datepicker._lastInput===t[0]?n.datepicker._hideDatepicker():n.datepicker._datepickerShowing&&n.datepicker._lastInput!==t[0]?(n.datepicker._hideDatepicker(),n.datepicker._showDatepicker(t[0])):n.datepicker._showDatepicker(t[0]),!1}))},_autoSize:function(n){if(this._get(n,"autoSize")&&!n.inline){var r,u,f,t,i=new Date(2009,11,20),e=this._get(n,"dateFormat");e.match(/[DM]/)&&(r=function(n){for(u=0,f=0,t=0;t<n.length;t++)n[t].length>u&&(u=n[t].length,f=t);return f},i.setMonth(r(this._get(n,e.match(/MM/)?"monthNames":"monthNamesShort"))),i.setDate(r(this._get(n,e.match(/DD/)?"dayNames":"dayNamesShort"))+20-i.getDay())),n.input.attr("size",this._formatDate(n,i).length)}},_inlineDatepicker:function(t,r){var u=n(t);u.hasClass(this.markerClassName)||(u.addClass(this.markerClassName).append(r.dpDiv),n.data(t,i,r),this._setDate(r,this._getDefaultDate(r),!0),this._updateDatepicker(r),this._updateAlternate(r),r.settings.disabled&&this._disableDatepicker(t),r.dpDiv.css("display","block"))},_dialogDatepicker:function(t,r,f,e,o){var h,c,l,a,v,s=this._dialogInst;return s||(this.uuid+=1,h="dp"+this.uuid,this._dialogInput=n("<input type='text' id='"+h+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.keydown(this._doKeyDown),n("body").append(this._dialogInput),s=this._dialogInst=this._newInst(this._dialogInput,!1),s.settings={},n.data(this._dialogInput[0],i,s)),u(s.settings,e||{}),r=r&&r.constructor===Date?this._formatDate(s,r):r,this._dialogInput.val(r),this._pos=o?o.length?o:[o.pageX,o.pageY]:null,this._pos||(c=document.documentElement.clientWidth,l=document.documentElement.clientHeight,a=document.documentElement.scrollLeft||document.body.scrollLeft,v=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[c/2-100+a,l/2-150+v]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),s.settings.onSelect=f,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),n.blockUI&&n.blockUI(this.dpDiv),n.data(this._dialogInput[0],i,s),this},_destroyDatepicker:function(t){var r,u=n(t),f=n.data(t,i);u.hasClass(this.markerClassName)&&(r=t.nodeName.toLowerCase(),n.removeData(t,i),r==="input"?(f.append.remove(),f.trigger.remove(),u.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):(r==="div"||r==="span")&&u.removeClass(this.markerClassName).empty())},_enableDatepicker:function(t){var r,u,f=n(t),e=n.data(t,i);f.hasClass(this.markerClassName)&&(r=t.nodeName.toLowerCase(),r==="input"?(t.disabled=!1,e.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):(r==="div"||r==="span")&&(u=f.children("."+this._inlineClass),u.children().removeClass("ui-state-disabled"),u.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=n.map(this._disabledInputs,function(n){return n===t?null:n}))},_disableDatepicker:function(t){var r,u,f=n(t),e=n.data(t,i);f.hasClass(this.markerClassName)&&(r=t.nodeName.toLowerCase(),r==="input"?(t.disabled=!0,e.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):(r==="div"||r==="span")&&(u=f.children("."+this._inlineClass),u.children().addClass("ui-state-disabled"),u.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=n.map(this._disabledInputs,function(n){return n===t?null:n}),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(n){if(!n)return!1;for(var t=0;t<this._disabledInputs.length;t++)if(this._disabledInputs[t]===n)return!0;return!1},_getInst:function(t){try{return n.data(t,i)}catch(r){throw"Missing instance data for this datepicker";}},_optionDatepicker:function(i,r,f){var o,c,s,h,e=this._getInst(i);if(arguments.length===2&&typeof r=="string")return r==="defaults"?n.extend({},n.datepicker._defaults):e?r==="all"?n.extend({},e.settings):this._get(e,r):null;o=r||{},typeof r=="string"&&(o={},o[r]=f),e&&(this._curInst===e&&this._hideDatepicker(),c=this._getDateDatepicker(i,!0),s=this._getMinMaxDate(e,"min"),h=this._getMinMaxDate(e,"max"),u(e.settings,o),s!==null&&o.dateFormat!==t&&o.minDate===t&&(e.settings.minDate=this._formatDate(e,s)),h!==null&&o.dateFormat!==t&&o.maxDate===t&&(e.settings.maxDate=this._formatDate(e,h)),"disabled"in o&&(o.disabled?this._disableDatepicker(i):this._enableDatepicker(i)),this._attachments(n(i),e),this._autoSize(e),this._setDate(e,c),this._updateAlternate(e),this._updateDatepicker(e))},_changeDatepicker:function(n,t,i){this._optionDatepicker(n,t,i)},_refreshDatepicker:function(n){var t=this._getInst(n);t&&this._updateDatepicker(t)},_setDateDatepicker:function(n,t){var i=this._getInst(n);i&&(this._setDate(i,t),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(n,t){var i=this._getInst(n);return i&&!i.inline&&this._setDateFromField(i,t),i?this._getDate(i):null},_doKeyDown:function(t){var u,e,f,i=n.datepicker._getInst(t.target),r=!0,o=i.dpDiv.is(".ui-datepicker-rtl");if(i._keyEvent=!0,n.datepicker._datepickerShowing)switch(t.keyCode){case 9:n.datepicker._hideDatepicker(),r=!1;break;case 13:return f=n("td."+n.datepicker._dayOverClass+":not(."+n.datepicker._currentClass+")",i.dpDiv),f[0]&&n.datepicker._selectDay(t.target,i.selectedMonth,i.selectedYear,f[0]),u=n.datepicker._get(i,"onSelect"),u?(e=n.datepicker._formatDate(i),u.apply(i.input?i.input[0]:null,[e,i])):n.datepicker._hideDatepicker(),!1;case 27:n.datepicker._hideDatepicker();break;case 33:n.datepicker._adjustDate(t.target,t.ctrlKey?-n.datepicker._get(i,"stepBigMonths"):-n.datepicker._get(i,"stepMonths"),"M");break;case 34:n.datepicker._adjustDate(t.target,t.ctrlKey?+n.datepicker._get(i,"stepBigMonths"):+n.datepicker._get(i,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&n.datepicker._clearDate(t.target),r=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&n.datepicker._gotoToday(t.target),r=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&n.datepicker._adjustDate(t.target,o?1:-1,"D"),r=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&n.datepicker._adjustDate(t.target,t.ctrlKey?-n.datepicker._get(i,"stepBigMonths"):-n.datepicker._get(i,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&n.datepicker._adjustDate(t.target,-7,"D"),r=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&n.datepicker._adjustDate(t.target,o?-1:1,"D"),r=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&n.datepicker._adjustDate(t.target,t.ctrlKey?+n.datepicker._get(i,"stepBigMonths"):+n.datepicker._get(i,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&n.datepicker._adjustDate(t.target,7,"D"),r=t.ctrlKey||t.metaKey;break;default:r=!1}else t.keyCode===36&&t.ctrlKey?n.datepicker._showDatepicker(this):r=!1;r&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var i,r,u=n.datepicker._getInst(t.target);if(n.datepicker._get(u,"constrainInput"))return i=n.datepicker._possibleChars(n.datepicker._get(u,"dateFormat")),r=String.fromCharCode(t.charCode==null?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||r<" "||!i||i.indexOf(r)>-1},_doKeyUp:function(t){var r,i=n.datepicker._getInst(t.target);if(i.input.val()!==i.lastVal)try{r=n.datepicker.parseDate(n.datepicker._get(i,"dateFormat"),i.input?i.input.val():null,n.datepicker._getFormatConfig(i)),r&&(n.datepicker._setDateFromField(i),n.datepicker._updateAlternate(i),n.datepicker._updateDatepicker(i))}catch(u){}return!0},_showDatepicker:function(t){if(t=t.target||t,t.nodeName.toLowerCase()!=="input"&&(t=n("input",t.parentNode)[0]),!n.datepicker._isDisabledDatepicker(t)&&n.datepicker._lastInput!==t){var i,o,s,r,f,e,h;(i=n.datepicker._getInst(t),n.datepicker._curInst&&n.datepicker._curInst!==i&&(n.datepicker._curInst.dpDiv.stop(!0,!0),i&&n.datepicker._datepickerShowing&&n.datepicker._hideDatepicker(n.datepicker._curInst.input[0])),o=n.datepicker._get(i,"beforeShow"),s=o?o.apply(t,[t,i]):{},s!==!1)&&(u(i.settings,s),i.lastVal=null,n.datepicker._lastInput=t,n.datepicker._setDateFromField(i),n.datepicker._inDialog&&(t.value=""),n.datepicker._pos||(n.datepicker._pos=n.datepicker._findPos(t),n.datepicker._pos[1]+=t.offsetHeight),r=!1,n(t).parents().each(function(){return r|=n(this).css("position")==="fixed",!r}),f={left:n.datepicker._pos[0],top:n.datepicker._pos[1]},n.datepicker._pos=null,i.dpDiv.empty(),i.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),n.datepicker._updateDatepicker(i),f=n.datepicker._checkOffset(i,f,r),i.dpDiv.css({position:n.datepicker._inDialog&&n.blockUI?"static":r?"fixed":"absolute",display:"none",left:f.left+"px",top:f.top+"px"}),i.inline||(e=n.datepicker._get(i,"showAnim"),h=n.datepicker._get(i,"duration"),i.dpDiv.zIndex(n(t).zIndex()+1),n.datepicker._datepickerShowing=!0,n.effects&&n.effects.effect[e]?i.dpDiv.show(e,n.datepicker._get(i,"showOptions"),h):i.dpDiv[e||"show"](e?h:null),i.input.is(":visible")&&!i.input.is(":disabled")&&i.input.focus(),n.datepicker._curInst=i))}},_updateDatepicker:function(t){this.maxRows=4,f=t,t.dpDiv.empty().append(this._generateHTML(t)),this._attachHandlers(t),t.dpDiv.find("."+this._dayOverClass+" a").mouseover();var i,r=this._getNumberOfMonths(t),u=r[1],e=17;t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),u>1&&t.dpDiv.addClass("ui-datepicker-multi-"+u).css("width",e*u+"em"),t.dpDiv[(r[0]!==1||r[1]!==1?"add":"remove")+"Class"]("ui-datepicker-multi"),t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),t===n.datepicker._curInst&&n.datepicker._datepickerShowing&&t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&t.input[0]!==document.activeElement&&t.input.focus(),t.yearshtml&&(i=t.yearshtml,setTimeout(function(){i===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year:first").replaceWith(t.yearshtml),i=t.yearshtml=null},0))},_getBorders:function(n){var t=function(n){return{thin:1,medium:2,thick:3}[n]||n};return[parseFloat(t(n.css("border-left-width"))),parseFloat(t(n.css("border-top-width")))]},_checkOffset:function(t,i,r){var u=t.dpDiv.outerWidth(),f=t.dpDiv.outerHeight(),h=t.input?t.input.outerWidth():0,o=t.input?t.input.outerHeight():0,e=document.documentElement.clientWidth+(r?0:n(document).scrollLeft()),s=document.documentElement.clientHeight+(r?0:n(document).scrollTop());return i.left-=this._get(t,"isRTL")?u-h:0,i.left-=r&&i.left===t.input.offset().left?n(document).scrollLeft():0,i.top-=r&&i.top===t.input.offset().top+o?n(document).scrollTop():0,i.left-=Math.min(i.left,i.left+u>e&&e>u?Math.abs(i.left+u-e):0),i.top-=Math.min(i.top,i.top+f>s&&s>f?Math.abs(f+o):0),i},_findPos:function(t){for(var i,r=this._getInst(t),u=this._get(r,"isRTL");t&&(t.type==="hidden"||t.nodeType!==1||n.expr.filters.hidden(t));)t=t[u?"previousSibling":"nextSibling"];return i=n(t).offset(),[i.left,i.top]},_hideDatepicker:function(t){var u,e,f,o,r=this._curInst;r&&(!t||r===n.data(t,i))&&this._datepickerShowing&&(u=this._get(r,"showAnim"),e=this._get(r,"duration"),f=function(){n.datepicker._tidyDialog(r)},n.effects&&(n.effects.effect[u]||n.effects[u])?r.dpDiv.hide(u,n.datepicker._get(r,"showOptions"),e,f):r.dpDiv[u==="slideDown"?"slideUp":u==="fadeIn"?"fadeOut":"hide"](u?e:null,f),u||f(),this._datepickerShowing=!1,o=this._get(r,"onClose"),o&&o.apply(r.input?r.input[0]:null,[r.input?r.input.val():"",r]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),n.blockUI&&(n.unblockUI(),n("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(n){n.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(t){if(n.datepicker._curInst){var i=n(t.target),r=n.datepicker._getInst(i[0]);(i[0].id===n.datepicker._mainDivId||i.parents("#"+n.datepicker._mainDivId).length!==0||i.hasClass(n.datepicker.markerClassName)||i.closest("."+n.datepicker._triggerClass).length||!n.datepicker._datepickerShowing||n.datepicker._inDialog&&n.blockUI)&&(!i.hasClass(n.datepicker.markerClassName)||n.datepicker._curInst===r)||n.datepicker._hideDatepicker()}},_adjustDate:function(t,i,r){var f=n(t),u=this._getInst(f[0]);this._isDisabledDatepicker(f[0])||(this._adjustInstDate(u,i+(r==="M"?this._get(u,"showCurrentAtPos"):0),r),this._updateDatepicker(u))},_gotoToday:function(t){var r,u=n(t),i=this._getInst(u[0]);this._get(i,"gotoCurrent")&&i.currentDay?(i.selectedDay=i.currentDay,i.drawMonth=i.selectedMonth=i.currentMonth,i.drawYear=i.selectedYear=i.currentYear):(r=new Date,i.selectedDay=r.getDate(),i.drawMonth=i.selectedMonth=r.getMonth(),i.drawYear=i.selectedYear=r.getFullYear()),this._notifyChange(i),this._adjustDate(u)},_selectMonthYear:function(t,i,r){var f=n(t),u=this._getInst(f[0]);u["selected"+(r==="M"?"Month":"Year")]=u["draw"+(r==="M"?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(u),this._adjustDate(f)},_selectDay:function(t,i,r,u){var f,e=n(t);n(u).hasClass(this._unselectableClass)||this._isDisabledDatepicker(e[0])||(f=this._getInst(e[0]),f.selectedDay=f.currentDay=n("a",u).html(),f.selectedMonth=f.currentMonth=i,f.selectedYear=f.currentYear=r,this._selectDate(t,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear)))},_clearDate:function(t){var i=n(t);this._selectDate(i,"")},_selectDate:function(t,i){var u,f=n(t),r=this._getInst(f[0]);i=i!=null?i:this._formatDate(r),r.input&&r.input.val(i),this._updateAlternate(r),u=this._get(r,"onSelect"),u?u.apply(r.input?r.input[0]:null,[i,r]):r.input&&r.input.trigger("change"),r.inline?this._updateDatepicker(r):(this._hideDatepicker(),this._lastInput=r.input[0],typeof r.input[0]!="object"&&r.input.focus(),this._lastInput=null)},_updateAlternate:function(t){var i,r,u,f=this._get(t,"altField");f&&(i=this._get(t,"altFormat")||this._get(t,"dateFormat"),r=this._getDate(t),u=this.formatDate(i,r,this._getFormatConfig(t)),n(f).each(function(){n(this).val(u)}))},noWeekends:function(n){var t=n.getDay();return[t>0&&t<6,""]},iso8601Week:function(n){var i,t=new Date(n.getTime());return t.setDate(t.getDate()+4-(t.getDay()||7)),i=t.getTime(),t.setMonth(0),t.setDate(1),Math.floor(Math.round((i-t)/864e5)/7)+1},parseDate:function(t,i,r){if(t==null||i==null)throw"Invalid arguments";if(i=typeof i=="object"?i.toString():i+"",i==="")return null;for(var a,v,f=0,y=(r?r.shortYearCutoff:null)||this._defaults.shortYearCutoff,d=typeof y!="string"?y:(new Date).getFullYear()%100+parseInt(y,10),g=(r?r.dayNamesShort:null)||this._defaults.dayNamesShort,nt=(r?r.dayNames:null)||this._defaults.dayNames,tt=(r?r.monthNamesShort:null)||this._defaults.monthNamesShort,it=(r?r.monthNames:null)||this._defaults.monthNames,e=-1,o=-1,h=-1,p=-1,w=!1,u,l=function(n){var i=s+1<t.length&&t.charAt(s+1)===n;return i&&s++,i},c=function(n){var r=l(n),u=n==="@"?14:n==="!"?20:n==="y"&&r?4:n==="o"?3:2,e=new RegExp("^\\d{1,"+u+"}"),t=i.substring(f).match(e);if(!t)throw"Missing number at position "+f;return f+=t[0].length,parseInt(t[0],10)},k=function(t,r,u){var e=-1,o=n.map(l(t)?u:r,function(n,t){return[[t,n]]}).sort(function(n,t){return-(n[1].length-t[1].length)});if(n.each(o,function(n,t){var r=t[1];if(i.substr(f,r.length).toLowerCase()===r.toLowerCase())return e=t[0],f+=r.length,!1}),e!==-1)return e+1;throw"Unknown name at position "+f;},b=function(){if(i.charAt(f)!==t.charAt(s))throw"Unexpected literal at position "+f;f++},s=0;s<t.length;s++)if(w)t.charAt(s)!=="'"||l("'")?b():w=!1;else switch(t.charAt(s)){case"d":h=c("d");break;case"D":k("D",g,nt);break;case"o":p=c("o");break;case"m":o=c("m");break;case"M":o=k("M",tt,it);break;case"y":e=c("y");break;case"@":u=new Date(c("@")),e=u.getFullYear(),o=u.getMonth()+1,h=u.getDate();break;case"!":u=new Date((c("!")-this._ticksTo1970)/1e4),e=u.getFullYear(),o=u.getMonth()+1,h=u.getDate();break;case"'":l("'")?b():w=!0;break;default:b()}if(f<i.length&&(v=i.substr(f),!/^\s+/.test(v)))throw"Extra/unparsed characters found in date: "+v;if(e===-1?e=(new Date).getFullYear():e<100&&(e+=(new Date).getFullYear()-(new Date).getFullYear()%100+(e<=d?0:-100)),p>-1){o=1,h=p;do{if(a=this._getDaysInMonth(e,o-1),h<=a)break;o++,h-=a}while(1)}if(u=this._daylightSavingAdjust(new Date(e,o-1,h)),u.getFullYear()!==e||u.getMonth()+1!==o||u.getDate()!==h)throw"Invalid date";return u},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(1970/4)-Math.floor(1970/100)+Math.floor(1970/400))*864e9,formatDate:function(n,t,i){if(!t)return"";var u,h=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,c=(i?i.dayNames:null)||this._defaults.dayNames,l=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,a=(i?i.monthNames:null)||this._defaults.monthNames,f=function(t){var i=u+1<n.length&&n.charAt(u+1)===t;return i&&u++,i},e=function(n,t,i){var r=""+t;if(f(n))while(r.length<i)r="0"+r;return r},s=function(n,t,i,r){return f(n)?r[t]:i[t]},r="",o=!1;if(t)for(u=0;u<n.length;u++)if(o)n.charAt(u)!=="'"||f("'")?r+=n.charAt(u):o=!1;else switch(n.charAt(u)){case"d":r+=e("d",t.getDate(),2);break;case"D":r+=s("D",t.getDay(),h,c);break;case"o":r+=e("o",Math.round((+new Date(t.getFullYear(),t.getMonth(),t.getDate())-+new Date(t.getFullYear(),0,0))/864e5),3);break;case"m":r+=e("m",t.getMonth()+1,2);break;case"M":r+=s("M",t.getMonth(),l,a);break;case"y":r+=f("y")?t.getFullYear():(t.getYear()%100<10?"0":"")+t.getYear()%100;break;case"@":r+=t.getTime();break;case"!":r+=t.getTime()*1e4+this._ticksTo1970;break;case"'":f("'")?r+="'":o=!0;break;default:r+=n.charAt(u)}return r},_possibleChars:function(n){for(var i="",r=!1,u=function(i){var r=t+1<n.length&&n.charAt(t+1)===i;return r&&t++,r},t=0;t<n.length;t++)if(r)n.charAt(t)!=="'"||u("'")?i+=n.charAt(t):r=!1;else switch(n.charAt(t)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":u("'")?i+="'":r=!0;break;default:i+=n.charAt(t)}return i},_get:function(n,i){return n.settings[i]!==t?n.settings[i]:this._defaults[i]},_setDateFromField:function(n,t){if(n.input.val()!==n.lastVal){var f=this._get(n,"dateFormat"),r=n.lastVal=n.input?n.input.val():null,u=this._getDefaultDate(n),i=u,e=this._getFormatConfig(n);try{i=this.parseDate(f,r,e)||u}catch(o){r=t?"":r}n.selectedDay=i.getDate(),n.drawMonth=n.selectedMonth=i.getMonth(),n.drawYear=n.selectedYear=i.getFullYear(),n.currentDay=r?i.getDate():0,n.currentMonth=r?i.getMonth():0,n.currentYear=r?i.getFullYear():0,this._adjustInstDate(n)}},_getDefaultDate:function(n){return this._restrictMinMax(n,this._determineDate(n,this._get(n,"defaultDate"),new Date))},_determineDate:function(t,i,r){var f=function(n){var t=new Date;return t.setDate(t.getDate()+n),t},e=function(i){try{return n.datepicker.parseDate(n.datepicker._get(t,"dateFormat"),i,n.datepicker._getFormatConfig(t))}catch(h){}for(var o=(i.toLowerCase().match(/^c/)?n.datepicker._getDate(t):null)||new Date,f=o.getFullYear(),e=o.getMonth(),r=o.getDate(),s=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,u=s.exec(i);u;){switch(u[2]||"d"){case"d":case"D":r+=parseInt(u[1],10);break;case"w":case"W":r+=parseInt(u[1],10)*7;break;case"m":case"M":e+=parseInt(u[1],10),r=Math.min(r,n.datepicker._getDaysInMonth(f,e));break;case"y":case"Y":f+=parseInt(u[1],10),r=Math.min(r,n.datepicker._getDaysInMonth(f,e))}u=s.exec(i)}return new Date(f,e,r)},u=i==null||i===""?r:typeof i=="string"?e(i):typeof i=="number"?isNaN(i)?r:f(i):new Date(i.getTime());return u=u&&u.toString()==="Invalid Date"?r:u,u&&(u.setHours(0),u.setMinutes(0),u.setSeconds(0),u.setMilliseconds(0)),this._daylightSavingAdjust(u)},_daylightSavingAdjust:function(n){return n?(n.setHours(n.getHours()>12?n.getHours()+2:0),n):null},_setDate:function(n,t,i){var u=!t,f=n.selectedMonth,e=n.selectedYear,r=this._restrictMinMax(n,this._determineDate(n,t,new Date));n.selectedDay=n.currentDay=r.getDate(),n.drawMonth=n.selectedMonth=n.currentMonth=r.getMonth(),n.drawYear=n.selectedYear=n.currentYear=r.getFullYear(),f===n.selectedMonth&&e===n.selectedYear||i||this._notifyChange(n),this._adjustInstDate(n),n.input&&n.input.val(u?"":this._formatDate(n))},_getDate:function(n){return!n.currentYear||n.input&&n.input.val()===""?null:this._daylightSavingAdjust(new Date(n.currentYear,n.currentMonth,n.currentDay))},_attachHandlers:function(t){var u=this._get(t,"stepMonths"),i="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map(function(){var t={prev:function(){window["DP_jQuery_"+r].datepicker._adjustDate(i,-u,"M")},next:function(){window["DP_jQuery_"+r].datepicker._adjustDate(i,+u,"M")},hide:function(){window["DP_jQuery_"+r].datepicker._hideDatepicker()},today:function(){window["DP_jQuery_"+r].datepicker._gotoToday(i)},selectDay:function(){return window["DP_jQuery_"+r].datepicker._selectDay(i,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return window["DP_jQuery_"+r].datepicker._selectMonthYear(i,this,"M"),!1},selectYear:function(){return window["DP_jQuery_"+r].datepicker._selectMonthYear(i,this,"Y"),!1}};n(this).bind(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(n){var b,s,rt,h,ut,k,ft,et,ri,c,ot,ui,fi,ei,oi,st,g,si,ht,nt,f,y,ct,p,lt,l,u,at,vt,yt,pt,tt,wt,i,bt,kt,d,a,it,dt=new Date,gt=this._daylightSavingAdjust(new Date(dt.getFullYear(),dt.getMonth(),dt.getDate())),e=this._get(n,"isRTL"),li=this._get(n,"showButtonPanel"),hi=this._get(n,"hideIfNoPrevNext"),ni=this._get(n,"navigationAsDateFormat"),o=this._getNumberOfMonths(n),ai=this._get(n,"showCurrentAtPos"),ci=this._get(n,"stepMonths"),ti=o[0]!==1||o[1]!==1,ii=this._daylightSavingAdjust(n.currentDay?new Date(n.currentYear,n.currentMonth,n.currentDay):new Date(9999,9,9)),w=this._getMinMaxDate(n,"min"),v=this._getMinMaxDate(n,"max"),t=n.drawMonth-ai,r=n.drawYear;if(t<0&&(t+=12,r--),v)for(b=this._daylightSavingAdjust(new Date(v.getFullYear(),v.getMonth()-o[0]*o[1]+1,v.getDate())),b=w&&b<w?w:b;this._daylightSavingAdjust(new Date(r,t,1))>b;)t--,t<0&&(t=11,r--);for(n.drawMonth=t,n.drawYear=r,s=this._get(n,"prevText"),s=ni?this.formatDate(s,this._daylightSavingAdjust(new Date(r,t-ci,1)),this._getFormatConfig(n)):s,rt=this._canAdjustMonth(n,-1,r,t)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+s+"'><span class='ui-icon ui-icon-circle-triangle-"+(e?"e":"w")+"'>"+s+"<\/span><\/a>":hi?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+s+"'><span class='ui-icon ui-icon-circle-triangle-"+(e?"e":"w")+"'>"+s+"<\/span><\/a>",h=this._get(n,"nextText"),h=ni?this.formatDate(h,this._daylightSavingAdjust(new Date(r,t+ci,1)),this._getFormatConfig(n)):h,ut=this._canAdjustMonth(n,1,r,t)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+h+"'><span class='ui-icon ui-icon-circle-triangle-"+(e?"w":"e")+"'>"+h+"<\/span><\/a>":hi?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+h+"'><span class='ui-icon ui-icon-circle-triangle-"+(e?"w":"e")+"'>"+h+"<\/span><\/a>",k=this._get(n,"currentText"),ft=this._get(n,"gotoCurrent")&&n.currentDay?ii:gt,k=ni?this.formatDate(k,ft,this._getFormatConfig(n)):k,et=n.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(n,"closeText")+"<\/button>",ri=li?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(e?et:"")+(this._isInRange(n,ft)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+k+"<\/button>":"")+(e?"":et)+"<\/div>":"",c=parseInt(this._get(n,"firstDay"),10),c=isNaN(c)?0:c,ot=this._get(n,"showWeek"),ui=this._get(n,"dayNames"),fi=this._get(n,"dayNamesMin"),ei=this._get(n,"monthNames"),oi=this._get(n,"monthNamesShort"),st=this._get(n,"beforeShowDay"),g=this._get(n,"showOtherMonths"),si=this._get(n,"selectOtherMonths"),ht=this._getDefaultDate(n),nt="",f,y=0;y<o[0];y++){for(ct="",this.maxRows=4,p=0;p<o[1];p++){if(lt=this._daylightSavingAdjust(new Date(r,t,n.selectedDay)),l=" ui-corner-all",u="",ti){if(u+="<div class='ui-datepicker-group",o[1]>1)switch(p){case 0:u+=" ui-datepicker-group-first",l=" ui-corner-"+(e?"right":"left");break;case o[1]-1:u+=" ui-datepicker-group-last",l=" ui-corner-"+(e?"left":"right");break;default:u+=" ui-datepicker-group-middle",l=""}u+="'>"}for(u+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+l+"'>"+(/all|left/.test(l)&&y===0?e?ut:rt:"")+(/all|right/.test(l)&&y===0?e?rt:ut:"")+this._generateMonthYearHeader(n,t,r,w,v,y>0||p>0,ei,oi)+"<\/div><table class='ui-datepicker-calendar'><thead><tr>",at=ot?"<th class='ui-datepicker-week-col'>"+this._get(n,"weekHeader")+"<\/th>":"",f=0;f<7;f++)vt=(f+c)%7,at+="<th"+((f+c+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+ui[vt]+"'>"+fi[vt]+"<\/span><\/th>";for(u+=at+"<\/tr><\/thead><tbody>",yt=this._getDaysInMonth(r,t),r===n.selectedYear&&t===n.selectedMonth&&(n.selectedDay=Math.min(n.selectedDay,yt)),pt=(this._getFirstDayOfMonth(r,t)-c+7)%7,tt=Math.ceil((pt+yt)/7),wt=ti?this.maxRows>tt?this.maxRows:tt:tt,this.maxRows=wt,i=this._daylightSavingAdjust(new Date(r,t,1-pt)),bt=0;bt<wt;bt++){for(u+="<tr>",kt=ot?"<td class='ui-datepicker-week-col'>"+this._get(n,"calculateWeek")(i)+"<\/td>":"",f=0;f<7;f++)d=st?st.apply(n.input?n.input[0]:null,[i]):[!0,""],a=i.getMonth()!==t,it=a&&!si||!d[0]||w&&i<w||v&&i>v,kt+="<td class='"+((f+c+6)%7>=5?" ui-datepicker-week-end":"")+(a?" ui-datepicker-other-month":"")+(i.getTime()===lt.getTime()&&t===n.selectedMonth&&n._keyEvent||ht.getTime()===i.getTime()&&ht.getTime()===lt.getTime()?" "+this._dayOverClass:"")+(it?" "+this._unselectableClass+" ui-state-disabled":"")+(a&&!g?"":" "+d[1]+(i.getTime()===ii.getTime()?" "+this._currentClass:"")+(i.getTime()===gt.getTime()?" ui-datepicker-today":""))+"'"+((!a||g)&&d[2]?" title='"+d[2].replace(/'/g,"&#39;")+"'":"")+(it?"":" data-handler='selectDay' data-event='click' data-month='"+i.getMonth()+"' data-year='"+i.getFullYear()+"'")+">"+(a&&!g?"&#xa0;":it?"<span class='ui-state-default'>"+i.getDate()+"<\/span>":"<a class='ui-state-default"+(i.getTime()===gt.getTime()?" ui-state-highlight":"")+(i.getTime()===ii.getTime()?" ui-state-active":"")+(a?" ui-priority-secondary":"")+"' href='#'>"+i.getDate()+"<\/a>")+"<\/td>",i.setDate(i.getDate()+1),i=this._daylightSavingAdjust(i);u+=kt+"<\/tr>"}t++,t>11&&(t=0,r++),u+="<\/tbody><\/table>"+(ti?"<\/div>"+(o[0]>0&&p===o[1]-1?"<div class='ui-datepicker-row-break'><\/div>":""):""),ct+=u}nt+=ct}return nt+=ri,n._keyEvent=!1,nt},_generateMonthYearHeader:function(n,t,i,r,u,f,e,o){var k,d,h,v,y,p,s,a,w=this._get(n,"changeMonth"),b=this._get(n,"changeYear"),g=this._get(n,"showMonthAfterYear"),c="<div class='ui-datepicker-title'>",l="";if(f||!w)l+="<span class='ui-datepicker-month'>"+e[t]+"<\/span>";else{for(k=r&&r.getFullYear()===i,d=u&&u.getFullYear()===i,l+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",h=0;h<12;h++)(!k||h>=r.getMonth())&&(!d||h<=u.getMonth())&&(l+="<option value='"+h+"'"+(h===t?" selected='selected'":"")+">"+o[h]+"<\/option>");l+="<\/select>"}if(g||(c+=l+(f||!(w&&b)?"&#xa0;":"")),!n.yearshtml)if(n.yearshtml="",f||!b)c+="<span class='ui-datepicker-year'>"+i+"<\/span>";else{for(v=this._get(n,"yearRange").split(":"),y=(new Date).getFullYear(),p=function(n){var t=n.match(/c[+\-].*/)?i+parseInt(n.substring(1),10):n.match(/[+\-].*/)?y+parseInt(n,10):parseInt(n,10);return isNaN(t)?y:t},s=p(v[0]),a=Math.max(s,p(v[1]||"")),s=r?Math.max(s,r.getFullYear()):s,a=u?Math.min(a,u.getFullYear()):a,n.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";s<=a;s++)n.yearshtml+="<option value='"+s+"'"+(s===i?" selected='selected'":"")+">"+s+"<\/option>";n.yearshtml+="<\/select>",c+=n.yearshtml,n.yearshtml=null}return c+=this._get(n,"yearSuffix"),g&&(c+=(f||!(w&&b)?"&#xa0;":"")+l),c+="<\/div>"},_adjustInstDate:function(n,t,i){var u=n.drawYear+(i==="Y"?t:0),f=n.drawMonth+(i==="M"?t:0),e=Math.min(n.selectedDay,this._getDaysInMonth(u,f))+(i==="D"?t:0),r=this._restrictMinMax(n,this._daylightSavingAdjust(new Date(u,f,e)));n.selectedDay=r.getDate(),n.drawMonth=n.selectedMonth=r.getMonth(),n.drawYear=n.selectedYear=r.getFullYear(),(i==="M"||i==="Y")&&this._notifyChange(n)},_restrictMinMax:function(n,t){var i=this._getMinMaxDate(n,"min"),r=this._getMinMaxDate(n,"max"),u=i&&t<i?i:t;return r&&u>r?r:u},_notifyChange:function(n){var t=this._get(n,"onChangeMonthYear");t&&t.apply(n.input?n.input[0]:null,[n.selectedYear,n.selectedMonth+1,n])},_getNumberOfMonths:function(n){var t=this._get(n,"numberOfMonths");return t==null?[1,1]:typeof t=="number"?[1,t]:t},_getMinMaxDate:function(n,t){return this._determineDate(n,this._get(n,t+"Date"),null)},_getDaysInMonth:function(n,t){return 32-this._daylightSavingAdjust(new Date(n,t,32)).getDate()},_getFirstDayOfMonth:function(n,t){return new Date(n,t,1).getDay()},_canAdjustMonth:function(n,t,i,r){var f=this._getNumberOfMonths(n),u=this._daylightSavingAdjust(new Date(i,r+(t<0?t:f[0]*f[1]),1));return t<0&&u.setDate(this._getDaysInMonth(u.getFullYear(),u.getMonth())),this._isInRange(n,u)},_isInRange:function(n,t){var i,f,e=this._getMinMaxDate(n,"min"),o=this._getMinMaxDate(n,"max"),r=null,u=null,s=this._get(n,"yearRange");return s&&(i=s.split(":"),f=(new Date).getFullYear(),r=parseInt(i[0],10),u=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(r+=f),i[1].match(/[+\-].*/)&&(u+=f)),(!e||t.getTime()>=e.getTime())&&(!o||t.getTime()<=o.getTime())&&(!r||t.getFullYear()>=r)&&(!u||t.getFullYear()<=u)},_getFormatConfig:function(n){var t=this._get(n,"shortYearCutoff");return t=typeof t!="string"?t:(new Date).getFullYear()%100+parseInt(t,10),{shortYearCutoff:t,dayNamesShort:this._get(n,"dayNamesShort"),dayNames:this._get(n,"dayNames"),monthNamesShort:this._get(n,"monthNamesShort"),monthNames:this._get(n,"monthNames")}},_formatDate:function(n,t,i,r){t||(n.currentDay=n.selectedDay,n.currentMonth=n.selectedMonth,n.currentYear=n.selectedYear);var u=t?typeof t=="object"?t:this._daylightSavingAdjust(new Date(r,i,t)):this._daylightSavingAdjust(new Date(n.currentYear,n.currentMonth,n.currentDay));return this.formatDate(this._get(n,"dateFormat"),u,this._getFormatConfig(n))}}),n.fn.datepicker=function(t){if(!this.length)return this;n.datepicker.initialized||(n(document).mousedown(n.datepicker._checkExternalClick),n.datepicker.initialized=!0),n("#"+n.datepicker._mainDivId).length===0&&n("body").append(n.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return typeof t=="string"&&(t==="isDisabled"||t==="getDate"||t==="widget")?n.datepicker["_"+t+"Datepicker"].apply(n.datepicker,[this[0]].concat(i)):t==="option"&&arguments.length===2&&typeof arguments[1]=="string"?n.datepicker["_"+t+"Datepicker"].apply(n.datepicker,[this[0]].concat(i)):this.each(function(){typeof t=="string"?n.datepicker["_"+t+"Datepicker"].apply(n.datepicker,[this].concat(i)):n.datepicker._attachDatepicker(this,t)})},n.datepicker=new e,n.datepicker.initialized=!1,n.datepicker.uuid=+new Date,n.datepicker.version="1.10.1",window["DP_jQuery_"+r]=n}(jQuery),function(n){var i=5;n.widget("ui.slider",n.ui.mouse,{version:"1.10.1",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 r,i,u=this.options,t=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),e="<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'><\/a>",f=[];for(i=u.values&&u.values.length||1,t.length>i&&(t.slice(i).remove(),t=t.slice(0,i)),r=t.length;r<i;r++)f.push(e);this.handles=t.add(n(f.join("")).appendTo(this.element)),this.handle=this.handles.eq(0),this.handles.each(function(t){n(this).data("ui-slider-handle-index",t)})},_createRange:function(){var t=this.options,i="";t.range?(t.range===!0&&(t.values?t.values.length&&t.values.length!==2?t.values=[t.values[0],t.values[0]]:n.isArray(t.values)&&(t.values=t.values.slice(0)):t.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=n("<div><\/div>").appendTo(this.element),i="ui-slider-range ui-widget-header ui-corner-all"),this.range.addClass(i+(t.range==="min"||t.range==="max"?" ui-slider-range-"+t.range:""))):this.range=n([])},_setupEvents:function(){var n=this.handles.add(this.range).filter("a");this._off(n),this._on(n,this._handleEvents),this._hoverable(n),this._focusable(n)},_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(t){var s,f,r,i,u,h,e,c,o=this,l=this.options;return l.disabled?!1:(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),s={x:t.pageX,y:t.pageY},f=this._normValueFromMouse(s),r=this._valueMax()-this._valueMin()+1,this.handles.each(function(t){var e=Math.abs(f-o.values(t));(r>e||r===e&&(t===o._lastChangedValue||o.values(t)===l.min))&&(r=e,i=n(this),u=t)}),h=this._start(t,u),h===!1)?!1:(this._mouseSliding=!0,this._handleIndex=u,i.addClass("ui-state-active").focus(),e=i.offset(),c=!n(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=c?{left:0,top:0}:{left:t.pageX-e.left-i.width()/2,top:t.pageY-e.top-i.height()/2-(parseInt(i.css("borderTopWidth"),10)||0)-(parseInt(i.css("borderBottomWidth"),10)||0)+(parseInt(i.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(t,u,f),this._animateOff=!0,!0)},_mouseStart:function(){return!0},_mouseDrag:function(n){var t={x:n.pageX,y:n.pageY},i=this._normValueFromMouse(t);return this._slide(n,this._handleIndex,i),!1},_mouseStop:function(n){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(n,this._handleIndex),this._change(n,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(n){var i,r,t,u,f;return this.orientation==="horizontal"?(i=this.elementSize.width,r=n.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(i=this.elementSize.height,r=n.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),t=r/i,t>1&&(t=1),t<0&&(t=0),this.orientation==="vertical"&&(t=1-t),u=this._valueMax()-this._valueMin(),f=this._valueMin()+t*u,this._trimAlignValue(f)},_start:function(n,t){var i={handle:this.handles[t],value:this.value()};return this.options.values&&this.options.values.length&&(i.value=this.values(t),i.values=this.values()),this._trigger("start",n,i)},_slide:function(n,t,i){var r,f,u;this.options.values&&this.options.values.length?(r=this.values(t?0:1),this.options.values.length===2&&this.options.range===!0&&(t===0&&i>r||t===1&&i<r)&&(i=r),i!==this.values(t)&&(f=this.values(),f[t]=i,u=this._trigger("slide",n,{handle:this.handles[t],value:i,values:f}),r=this.values(t?0:1),u!==!1&&this.values(t,i,!0))):i!==this.value()&&(u=this._trigger("slide",n,{handle:this.handles[t],value:i}),u!==!1&&this.value(i))},_stop:function(n,t){var i={handle:this.handles[t],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(t),i.values=this.values()),this._trigger("stop",n,i)},_change:function(n,t){if(!this._keySliding&&!this._mouseSliding){var i={handle:this.handles[t],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(t),i.values=this.values()),this._lastChangedValue=t,this._trigger("change",n,i)}},value:function(n){if(arguments.length){this.options.value=this._trimAlignValue(n),this._refreshValue(),this._change(null,0);return}return this._value()},values:function(t,i){var u,f,r;if(arguments.length>1){this.options.values[t]=this._trimAlignValue(i),this._refreshValue(),this._change(null,t);return}if(arguments.length)if(n.isArray(arguments[0])){for(u=this.options.values,f=arguments[0],r=0;r<u.length;r+=1)u[r]=this._trimAlignValue(f[r]),this._change(null,r);this._refreshValue()}else return this.options.values&&this.options.values.length?this._values(t):this.value();else return this._values()},_setOption:function(t,i){var r,u=0;t==="range"&&this.options.range===!0&&(i==="min"?(this.options.value=this._values(0),this.options.values=null):i==="max"&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),n.isArray(this.options.values)&&(u=this.options.values.length),n.Widget.prototype._setOption.apply(this,arguments);switch(t){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(),r=0;r<u;r+=1)this._change(null,r);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 n=this.options.value;return n=this._trimAlignValue(n)},_values:function(n){var r,t,i;if(arguments.length)return r=this.options.values[n],r=this._trimAlignValue(r);if(this.options.values&&this.options.values.length){for(t=this.options.values.slice(),i=0;i<t.length;i+=1)t[i]=this._trimAlignValue(t[i]);return t}return[]},_trimAlignValue:function(n){if(n<=this._valueMin())return this._valueMin();if(n>=this._valueMax())return this._valueMax();var t=this.options.step>0?this.options.step:1,i=(n-this._valueMin())%t,r=n-i;return Math.abs(i)*2>=t&&(r+=i>0?t:-t),parseFloat(r.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var s,t,c,f,h,e=this.options.range,i=this.options,r=this,u=this._animateOff?!1:i.animate,o={};this.options.values&&this.options.values.length?this.handles.each(function(f){t=(r.values(f)-r._valueMin())/(r._valueMax()-r._valueMin())*100,o[r.orientation==="horizontal"?"left":"bottom"]=t+"%",n(this).stop(1,1)[u?"animate":"css"](o,i.animate),r.options.range===!0&&(r.orientation==="horizontal"?(f===0&&r.range.stop(1,1)[u?"animate":"css"]({left:t+"%"},i.animate),f===1&&r.range[u?"animate":"css"]({width:t-s+"%"},{queue:!1,duration:i.animate})):(f===0&&r.range.stop(1,1)[u?"animate":"css"]({bottom:t+"%"},i.animate),f===1&&r.range[u?"animate":"css"]({height:t-s+"%"},{queue:!1,duration:i.animate}))),s=t}):(c=this.value(),f=this._valueMin(),h=this._valueMax(),t=h!==f?(c-f)/(h-f)*100:0,o[this.orientation==="horizontal"?"left":"bottom"]=t+"%",this.handle.stop(1,1)[u?"animate":"css"](o,i.animate),e==="min"&&this.orientation==="horizontal"&&this.range.stop(1,1)[u?"animate":"css"]({width:t+"%"},i.animate),e==="max"&&this.orientation==="horizontal"&&this.range[u?"animate":"css"]({width:100-t+"%"},{queue:!1,duration:i.animate}),e==="min"&&this.orientation==="vertical"&&this.range.stop(1,1)[u?"animate":"css"]({height:t+"%"},i.animate),e==="max"&&this.orientation==="vertical"&&this.range[u?"animate":"css"]({height:100-t+"%"},{queue:!1,duration:i.animate}))},_handleEvents:{keydown:function(t){var o,u,r,f,e=n(t.target).data("ui-slider-handle-index");switch(t.keyCode){case n.ui.keyCode.HOME:case n.ui.keyCode.END:case n.ui.keyCode.PAGE_UP:case n.ui.keyCode.PAGE_DOWN:case n.ui.keyCode.UP:case n.ui.keyCode.RIGHT:case n.ui.keyCode.DOWN:case n.ui.keyCode.LEFT:if(t.preventDefault(),!this._keySliding&&(this._keySliding=!0,n(t.target).addClass("ui-state-active"),o=this._start(t,e),o===!1))return}f=this.options.step,u=this.options.values&&this.options.values.length?r=this.values(e):r=this.value();switch(t.keyCode){case n.ui.keyCode.HOME:r=this._valueMin();break;case n.ui.keyCode.END:r=this._valueMax();break;case n.ui.keyCode.PAGE_UP:r=this._trimAlignValue(u+(this._valueMax()-this._valueMin())/i);break;case n.ui.keyCode.PAGE_DOWN:r=this._trimAlignValue(u-(this._valueMax()-this._valueMin())/i);break;case n.ui.keyCode.UP:case n.ui.keyCode.RIGHT:if(u===this._valueMax())return;r=this._trimAlignValue(u+f);break;case n.ui.keyCode.DOWN:case n.ui.keyCode.LEFT:if(u===this._valueMin())return;r=this._trimAlignValue(u-f)}this._slide(t,e,r)},click:function(n){n.preventDefault()},keyup:function(t){var i=n(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,i),this._change(t,i),n(t.target).removeClass("ui-state-active"))}}})}(jQuery),function(n,t,i,r){var v=n("<div>")[0],y=/url\(["']?(.*?)["']?\)/,c=[],l={top:0,left:0,bottom:1,right:1,center:.5};if(!("backgroundSize"in v.style)||n.debugBGS){n.cssHooks.backgroundSize={set:function(t,i){var e=!n.data(t,"bgsImg"),r,u,f;n.data(t,"bgsValue",i),e?(c.push(t),n.refreshBackgroundDimensions(t,!0),u=n("<div>").css({position:"absolute",zIndex:-1,top:0,right:0,left:0,bottom:0,overflow:"hidden"}),f=n("<img>").css({position:"absolute"}).appendTo(u),u.prependTo(t),n.data(t,"bgsImg",f[0]),r=(n.css(t,"backgroundPosition")||n.css(t,"backgroundPositionX")+" "+n.css(t,"backgroundPositionY")).split(" "),n.data(t,"bgsPos",[l[r[0]]||parseFloat(r[0])/100,l[r[1]]||parseFloat(r[1])/100]),n.css(t,"zIndex")=="auto"&&(t.style.zIndex=0),n.css(t,"position")=="static"&&(t.style.position="relative"),n.refreshBackgroundImage(t)):n.refreshBackground(t)},get:function(t){return n.data(t,"bgsValue")||""}},n.cssHooks.backgroundImage={set:function(t,i){return n.data(t,"bgsImg")?n.refreshBackgroundImage(t,i):i}},n.refreshBackgroundDimensions=function(t,i){var f=n(t),r={width:f.innerWidth(),height:f.innerHeight()},u=n.data(t,"bgsDim"),e=!u||r.width!=u.width||r.height!=u.height;n.data(t,"bgsDim",r),e&&!i&&n.refreshBackground(t)},n.refreshBackgroundImage=function(t,i){var r=n.data(t,"bgsImg"),u=(y.exec(i||n.css(t,"backgroundImage"))||[])[1],f=r&&r.src,e=u!=f,o,s;e&&(r.style.height=r.style.width="auto",r.onload=function(){var i={width:r.width,height:r.height};(i.width!=1||i.height!=1)&&(n.data(t,"bgsImgDim",i),n.data(t,"bgsConstrain",!1),n.refreshBackground(t),r.style.visibility="visible",r.onload=null)},r.style.visibility="hidden",r.src=u,(r.readyState||r.complete)&&(r.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==",r.src=u),t.style.backgroundImage="none")},n.refreshBackground=function(t){var c=n.data(t,"bgsValue"),i=n.data(t,"bgsDim"),l=n.data(t,"bgsImgDim"),u=n(n.data(t,"bgsImg")),s=n.data(t,"bgsPos"),h=n.data(t,"bgsConstrain"),f,a=i.width/i.height,o=l.width/l.height,e;c=="contain"?o>a?(n.data(t,"bgsConstrain",f="width"),e=r.floor((i.height-i.width/o)*s[1]),u.css({top:e}),f!=h&&u.css({width:"100%",height:"auto",left:0})):(n.data(t,"bgsConstrain",f="height"),e=r.floor((i.width-i.height*o)*s[0]),u.css({left:e}),f!=h&&u.css({height:"100%",width:"auto",top:0})):c=="cover"&&(o>a?(n.data(t,"bgsConstrain",f="height"),e=r.floor((i.height*o-i.width)*s[0]),u.css({left:-e}),f!=h&&u.css({height:"100%",width:"auto",top:0})):(n.data(t,"bgsConstrain",f="width"),e=r.floor((i.width/o-i.height)*s[1]),u.css({top:-e}),f!=h&&u.css({width:"100%",height:"auto",left:0})))};var a=n.event,e,o={_:0},f=0,s,h;e=a.special.throttledresize={setup:function(){n(this).on("resize",e.handler)},teardown:function(){n(this).off("resize",e.handler)},handler:function(t,i){var r=this,u=arguments;s=!0,h||(n(o).animate(o,{duration:Infinity,step:function(){f++,(f>e.threshold&&s||i)&&(t.type="throttledresize",a.dispatch.apply(r,u),s=!1,f=0),f>9&&(n(o).stop(),h=!1,f=0)}}),h=!0)},threshold:1};n(t).on("throttledresize",function(){n(c).each(function(){n.refreshBackgroundDimensions(this)})})}}(jQuery,window,document,Math),function(n){n.fn.hoverIntent=function(t,i,r){var u={interval:100,sensitivity:7,timeout:0};u=typeof t=="object"?n.extend(u,t):n.isFunction(i)?n.extend(u,{over:t,out:i,selector:r}):n.extend(u,{over:t,out:t,selector:i});var f,e,o,s,h=function(n){f=n.pageX,e=n.pageY},c=function(t,i){if(i.hoverIntent_t=clearTimeout(i.hoverIntent_t),Math.abs(o-f)+Math.abs(s-e)<u.sensitivity)return n(i).off("mousemove.hoverIntent",h),i.hoverIntent_s=1,u.over.apply(i,[t]);o=f,s=e,i.hoverIntent_t=setTimeout(function(){c(t,i)},u.interval)},a=function(n,t){return t.hoverIntent_t=clearTimeout(t.hoverIntent_t),t.hoverIntent_s=0,u.out.apply(t,[n])},l=function(t){var r=jQuery.extend({},t),i=this;if(i.hoverIntent_t&&(i.hoverIntent_t=clearTimeout(i.hoverIntent_t)),t.type=="mouseenter"){o=r.pageX,s=r.pageY;n(i).on("mousemove.hoverIntent",h);i.hoverIntent_s!=1&&(i.hoverIntent_t=setTimeout(function(){c(r,i)},u.interval))}else n(i).off("mousemove.hoverIntent",h),i.hoverIntent_s==1&&(i.hoverIntent_t=setTimeout(function(){a(r,i)},u.timeout))};return this.on({"mouseenter.hoverIntent":l,"mouseleave.hoverIntent":l},u.selector)}}(jQuery),function(){var t=[].indexOf||function(n){for(var t=0,i=this.length;t<i;t++)if(t in this&&this[t]===n)return t;return-1},n=[].slice;(function(n,t){return typeof define=="function"&&define.amd?define("waypoints",["jquery"],function(i){return t(i,n)}):t(n.jQuery,n)})(this,function(i,r){var a,b,v,o,k,h,s,y,u,f,p,w,d,l,c,e;return a=i(r),y=t.call(r,"ontouchstart")>=0,o={horizontal:{},vertical:{}},k=1,s={},h="waypoints-context-id",p="resize.waypoints",w="scroll.waypoints",d=1,l="waypoints-waypoint-ids",c="waypoint",e="waypoints",b=function(){function n(n){var t=this;this.$element=n,this.element=n[0],this.didResize=!1,this.didScroll=!1,this.id="context"+k++,this.oldScroll={x:n.scrollLeft(),y:n.scrollTop()},this.waypoints={horizontal:{},vertical:{}},n.data(h,this.id),s[this.id]=this,n.bind(w,function(){var n;if(!t.didScroll&&!y)return t.didScroll=!0,n=function(){return t.doScroll(),t.didScroll=!1},r.setTimeout(n,i[e].settings.scrollThrottle)}),n.bind(p,function(){var n;if(!t.didResize)return t.didResize=!0,n=function(){return i[e]("refresh"),t.didResize=!1},r.setTimeout(n,i[e].settings.resizeThrottle)})}return n.prototype.doScroll=function(){var n,t=this;return n={horizontal:{newScroll:this.$element.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.$element.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}},!y||n.vertical.oldScroll&&n.vertical.newScroll||i[e]("refresh"),i.each(n,function(n,r){var e,f,u;return u=[],f=r.newScroll>r.oldScroll,e=f?r.forward:r.backward,i.each(t.waypoints[n],function(n,t){var i,f;return r.oldScroll<(i=t.offset)&&i<=r.newScroll?u.push(t):r.newScroll<(f=t.offset)&&f<=r.oldScroll?u.push(t):void 0}),u.sort(function(n,t){return n.offset-t.offset}),f||u.reverse(),i.each(u,function(n,t){if(t.options.continuous||n===u.length-1)return t.trigger([e])})}),this.oldScroll={x:n.horizontal.newScroll,y:n.vertical.newScroll}},n.prototype.refresh=function(){var r,t,n,u=this;return n=i.isWindow(this.element),t=this.$element.offset(),this.doScroll(),r={horizontal:{contextOffset:n?0:t.left,contextScroll:n?0:this.oldScroll.x,contextDimension:this.$element.width(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:n?0:t.top,contextScroll:n?0:this.oldScroll.y,contextDimension:n?i[e]("viewportHeight"):this.$element.height(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}},i.each(r,function(n,t){return i.each(u.waypoints[n],function(n,r){var u,e,f,o,s;if(u=r.options.offset,f=r.offset,e=i.isWindow(r.element)?0:r.$element.offset()[t.offsetProp],i.isFunction(u)?u=u.apply(r.element):typeof u=="string"&&(u=parseFloat(u),r.options.offset.indexOf("%")>-1&&(u=Math.ceil(t.contextDimension*u/100))),r.offset=e-t.contextOffset+t.contextScroll-u,(!r.options.onlyOnScroll||f==null)&&r.enabled)return f!==null&&f<(o=t.oldScroll)&&o<=r.offset?r.trigger([t.backward]):f!==null&&f>(s=t.oldScroll)&&s>=r.offset?r.trigger([t.forward]):f===null&&t.oldScroll>=r.offset?r.trigger([t.forward]):void 0})})},n.prototype.checkEmpty=function(){if(i.isEmptyObject(this.waypoints.horizontal)&&i.isEmptyObject(this.waypoints.vertical))return this.$element.unbind([p,w].join(" ")),delete s[this.id]},n}(),v=function(){function n(n,t,r){var u,f;r=i.extend({},i.fn[c].defaults,r),r.offset==="bottom-in-view"&&(r.offset=function(){var n;return n=i[e]("viewportHeight"),i.isWindow(t.element)||(n=t.$element.height()),n-i(this).outerHeight()}),this.$element=n,this.element=n[0],this.axis=r.horizontal?"horizontal":"vertical",this.callback=r.handler,this.context=t,this.enabled=r.enabled,this.id="waypoints"+d++,this.offset=null,this.options=r,t.waypoints[this.axis][this.id]=this,o[this.axis][this.id]=this,u=(f=n.data(l))!=null?f:[],u.push(this.id),n.data(l,u)}return n.prototype.trigger=function(n){if(this.enabled)return this.callback!=null&&this.callback.apply(this.element,n),this.options.triggerOnce?this.destroy():void 0},n.prototype.disable=function(){return this.enabled=!1},n.prototype.enable=function(){return this.context.refresh(),this.enabled=!0},n.prototype.destroy=function(){return delete o[this.axis][this.id],delete this.context.waypoints[this.axis][this.id],this.context.checkEmpty()},n.getWaypointsByElement=function(n){var r,t;return(t=i(n).data(l),!t)?[]:(r=i.extend({},o.horizontal,o.vertical),i.map(t,function(n){return r[n]}))},n}(),f={init:function(n,t){var r;return t==null&&(t={}),(r=t.handler)==null&&(t.handler=n),this.each(function(){var u,r,n,f;return u=i(this),n=(f=t.context)!=null?f:i.fn[c].defaults.context,i.isWindow(n)||(n=u.closest(n)),n=i(n),r=s[n.data(h)],r||(r=new b(n)),new v(u,r,t)}),i[e]("refresh"),this},disable:function(){return f._invoke(this,"disable")},enable:function(){return f._invoke(this,"enable")},destroy:function(){return f._invoke(this,"destroy")},prev:function(n,t){return f._traverse.call(this,n,t,function(n,t,i){if(t>0)return n.push(i[t-1])})},next:function(n,t){return f._traverse.call(this,n,t,function(n,t,i){if(t<i.length-1)return n.push(i[t+1])})},_traverse:function(n,t,f){var e,o;return n==null&&(n="vertical"),t==null&&(t=r),o=u.aggregate(t),e=[],this.each(function(){var t;return t=i.inArray(this,o[n]),f(e,t,o[n])}),this.pushStack(e)},_invoke:function(n,t){return n.each(function(){var n;return n=v.getWaypointsByElement(this),i.each(n,function(n,i){return i[t](),!0})}),this}},i.fn[c]=function(){var r,t;return t=arguments[0],r=2<=arguments.length?n.call(arguments,1):[],f[t]?f[t].apply(this,r):i.isFunction(t)?f.init.apply(this,arguments):i.isPlainObject(t)?f.init.apply(this,[null,t]):t?i.error("The "+t+" method does not exist in jQuery Waypoints."):i.error("jQuery Waypoints needs a callback function or handler option.")},i.fn[c].defaults={context:r,continuous:!0,enabled:!0,horizontal:!1,offset:0,triggerOnce:!1},u={refresh:function(){return i.each(s,function(n,t){return t.refresh()})},viewportHeight:function(){var n;return(n=r.innerHeight)!=null?n:a.height()},aggregate:function(n){var r,t,u;return(r=o,n&&(r=(u=s[i(n).data(h)])!=null?u.waypoints:void 0),!r)?[]:(t={horizontal:[],vertical:[]},i.each(t,function(n,u){return i.each(r[n],function(n,t){return u.push(t)}),u.sort(function(n,t){return n.offset-t.offset}),t[n]=i.map(u,function(n){return n.element}),t[n]=i.unique(t[n])}),t)},above:function(n){return n==null&&(n=r),u._filter(n,"vertical",function(n,t){return t.offset<=n.oldScroll.y})},below:function(n){return n==null&&(n=r),u._filter(n,"vertical",function(n,t){return t.offset>n.oldScroll.y})},left:function(n){return n==null&&(n=r),u._filter(n,"horizontal",function(n,t){return t.offset<=n.oldScroll.x})},right:function(n){return n==null&&(n=r),u._filter(n,"horizontal",function(n,t){return t.offset>n.oldScroll.x})},enable:function(){return u._invoke("enable")},disable:function(){return u._invoke("disable")},destroy:function(){return u._invoke("destroy")},extendFn:function(n,t){return f[n]=t},_invoke:function(n){var t;return t=i.extend({},o.vertical,o.horizontal),i.each(t,function(t,i){return i[n](),!0})},_filter:function(n,t,r){var u,f;return(u=s[i(n).data(h)],!u)?[]:(f=[],i.each(u.waypoints[t],function(n,t){if(r(u,t))return f.push(t)}),f.sort(function(n,t){return n.offset-t.offset}),i.map(f,function(n){return n.element}))}},i[e]=function(){var i,t;return t=arguments[0],i=2<=arguments.length?n.call(arguments,1):[],u[t]?u[t].apply(null,i):u.aggregate.call(null,t)},i[e].settings={resizeThrottle:100,scrollThrottle:30},a.load(function(){return i[e]("refresh")})})}.call(this),function(){(function(n,t){return typeof define=="function"&&define.amd?define(["jquery","waypoints"],t):t(n.jQuery)})(this,function(n){var t,i;return t={wrapper:'<div class="sticky-wrapper" />',stuckClass:"stuck"},i=function(t,i){return t.wrap(i.wrapper),t.each(function(){var t;return t=n(this),t.parent().height(t.outerHeight()),!0}),t.parent()},n.waypoints("extendFn","sticky",function(r){var f,u;return r=n.extend({},n.fn.waypoint.defaults,t,r),f=i(this,r),u=r.handler,r.handler=function(t){var i,f;return i=n(this).children(":first"),f=t==="down"||t==="right",i.toggleClass(r.stuckClass,f),u!=null?u.call(this,t):void 0},f.waypoint(r),this})})}.call(this),jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(n,t,i,r,u){return jQuery.easing[jQuery.easing.def](n,t,i,r,u)},easeInQuad:function(n,t,i,r,u){return r*(t/=u)*t+i},easeOutQuad:function(n,t,i,r,u){return-r*(t/=u)*(t-2)+i},easeInOutQuad:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t+i:-r/2*(--t*(t-2)-1)+i},easeInCubic:function(n,t,i,r,u){return r*(t/=u)*t*t+i},easeOutCubic:function(n,t,i,r,u){return r*((t=t/u-1)*t*t+1)+i},easeInOutCubic:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t+i:r/2*((t-=2)*t*t+2)+i},easeInQuart:function(n,t,i,r,u){return r*(t/=u)*t*t*t+i},easeOutQuart:function(n,t,i,r,u){return-r*((t=t/u-1)*t*t*t-1)+i},easeInOutQuart:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t*t+i:-r/2*((t-=2)*t*t*t-2)+i},easeInQuint:function(n,t,i,r,u){return r*(t/=u)*t*t*t*t+i},easeOutQuint:function(n,t,i,r,u){return r*((t=t/u-1)*t*t*t*t+1)+i},easeInOutQuint:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t*t*t+i:r/2*((t-=2)*t*t*t*t+2)+i},easeInSine:function(n,t,i,r,u){return-r*Math.cos(t/u*(Math.PI/2))+r+i},easeOutSine:function(n,t,i,r,u){return r*Math.sin(t/u*(Math.PI/2))+i},easeInOutSine:function(n,t,i,r,u){return-r/2*(Math.cos(Math.PI*t/u)-1)+i},easeInExpo:function(n,t,i,r,u){return t==0?i:r*Math.pow(2,10*(t/u-1))+i},easeOutExpo:function(n,t,i,r,u){return t==u?i+r:r*(-Math.pow(2,-10*t/u)+1)+i},easeInOutExpo:function(n,t,i,r,u){return t==0?i:t==u?i+r:(t/=u/2)<1?r/2*Math.pow(2,10*(t-1))+i:r/2*(-Math.pow(2,-10*--t)+2)+i},easeInCirc:function(n,t,i,r,u){return-r*(Math.sqrt(1-(t/=u)*t)-1)+i},easeOutCirc:function(n,t,i,r,u){return r*Math.sqrt(1-(t=t/u-1)*t)+i},easeInOutCirc:function(n,t,i,r,u){return(t/=u/2)<1?-r/2*(Math.sqrt(1-t*t)-1)+i:r/2*(Math.sqrt(1-(t-=2)*t)+1)+i},easeInElastic:function(n,t,i,r,u){var o=1.70158,f=0,e=r;return t==0?i:(t/=u)==1?i+r:(f||(f=u*.3),e<Math.abs(r)?(e=r,o=f/4):o=f/(2*Math.PI)*Math.asin(r/e),-(e*Math.pow(2,10*(t-=1))*Math.sin((t*u-o)*2*Math.PI/f))+i)},easeOutElastic:function(n,t,i,r,u){var o=1.70158,f=0,e=r;return t==0?i:(t/=u)==1?i+r:(f||(f=u*.3),e<Math.abs(r)?(e=r,o=f/4):o=f/(2*Math.PI)*Math.asin(r/e),e*Math.pow(2,-10*t)*Math.sin((t*u-o)*2*Math.PI/f)+r+i)},easeInOutElastic:function(n,t,i,r,u){var o=1.70158,f=0,e=r;return t==0?i:(t/=u/2)==2?i+r:(f||(f=u*.3*1.5),e<Math.abs(r)?(e=r,o=f/4):o=f/(2*Math.PI)*Math.asin(r/e),t<1)?-.5*e*Math.pow(2,10*(t-=1))*Math.sin((t*u-o)*2*Math.PI/f)+i:e*Math.pow(2,-10*(t-=1))*Math.sin((t*u-o)*2*Math.PI/f)*.5+r+i},easeInBack:function(n,t,i,r,u,f){return f==undefined&&(f=1.70158),r*(t/=u)*t*((f+1)*t-f)+i},easeOutBack:function(n,t,i,r,u,f){return f==undefined&&(f=1.70158),r*((t=t/u-1)*t*((f+1)*t+f)+1)+i},easeInOutBack:function(n,t,i,r,u,f){return(f==undefined&&(f=1.70158),(t/=u/2)<1)?r/2*t*t*(((f*=1.525)+1)*t-f)+i:r/2*((t-=2)*t*(((f*=1.525)+1)*t+f)+2)+i},easeInBounce:function(n,t,i,r,u){return r-jQuery.easing.easeOutBounce(n,u-t,0,r,u)+i},easeOutBounce:function(n,t,i,r,u){return(t/=u)<1/2.75?r*7.5625*t*t+i:t<2/2.75?r*(7.5625*(t-=1.5/2.75)*t+.75)+i:t<2.5/2.75?r*(7.5625*(t-=2.25/2.75)*t+.9375)+i:r*(7.5625*(t-=2.625/2.75)*t+.984375)+i},easeInOutBounce:function(n,t,i,r,u){return t<u/2?jQuery.easing.easeInBounce(n,t*2,0,r,u)*.5+i:jQuery.easing.easeOutBounce(n,t*2-u,0,r,u)*.5+r*.5+i}}),function(n){n.flexslider=function(t,i){var r=n(t),u=n.extend({},n.flexslider.defaults,i),f=u.namespace,l="ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch,v=l?"touchend":"click",h=u.direction==="vertical",s=u.reverse,o=u.itemWidth>0,c=u.animation==="fade",a=u.asNavFor!=="",e={};n.data(t,"flexslider",r),e={init:function(){r.animating=!1,r.currentSlide=u.startAt,r.animatingTo=r.currentSlide,r.atEnd=r.currentSlide===0||r.currentSlide===r.last,r.containerSelector=u.selector.substr(0,u.selector.search(" ")),r.slides=n(u.selector,r),r.container=n(r.containerSelector,r),r.count=r.slides.length,r.syncExists=n(u.sync).length>0,u.animation==="slide"&&(u.animation="swing"),r.prop=h?"top":"marginLeft",r.args={},r.manualPause=!1,r.transitions=!u.video&&!c&&u.useCSS&&function(){var i=document.createElement("div"),n=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"],t;for(t in n)if(i.style[n[t]]!==undefined)return r.pfx=n[t].replace("Perspective","").toLowerCase(),r.prop="-"+r.pfx+"-transform",!0;return!1}(),u.controlsContainer!==""&&(r.controlsContainer=n(u.controlsContainer).length>0&&n(u.controlsContainer)),u.manualControls!==""&&(r.manualControls=n(u.manualControls).length>0&&n(u.manualControls)),u.randomize&&(r.slides.sort(function(){return Math.round(Math.random())-.5}),r.container.empty().append(r.slides)),r.doMath(),a&&e.asNav.setup(),r.setup("init"),u.controlNav&&e.controlNav.setup(),u.directionNav&&e.directionNav.setup(),u.keyboard&&(n(r.containerSelector).length===1||u.multipleKeyboard)&&n(document).bind("keyup",function(n){var t=n.keyCode,i;r.animating||t!==39&&t!==37||(i=t===39?r.getTarget("next"):t===37?r.getTarget("prev"):!1,r.flexAnimate(i,u.pauseOnAction))}),u.mousewheel&&r.bind("mousewheel",function(n,t){n.preventDefault();var e=t<0?r.getTarget("next"):r.getTarget("prev");r.flexAnimate(e,u.pauseOnAction)}),u.pausePlay&&e.pausePlay.setup(),u.slideshow&&(u.pauseOnHover&&r.hover(function(){r.manualPlay||r.manualPause||r.pause()},function(){r.manualPause||r.manualPlay||r.play()}),u.initDelay>0?setTimeout(r.play,u.initDelay):r.play()),l&&u.touch&&e.touch(),(!c||c&&u.smoothHeight)&&n(window).bind("resize focus",e.resize),setTimeout(function(){u.start(r)},200)},asNav:{setup:function(){r.asNav=!0,r.animatingTo=Math.floor(r.currentSlide/r.move),r.currentItem=r.currentSlide,r.slides.removeClass(f+"active-slide").eq(r.currentItem).addClass(f+"active-slide"),r.slides.click(function(t){t.preventDefault();var i=n(this),f=i.index();n(u.asNavFor).data("flexslider").animating||i.hasClass("active")||(r.direction=r.currentItem<f?"next":"prev",r.flexAnimate(f,u.pauseOnAction,!1,!0,!0))})}},controlNav:{setup:function(){r.manualControls?e.controlNav.setupManual():e.controlNav.setupPaging()},setupPaging:function(){var s=u.controlNav==="thumbnails"?"control-thumbs":"control-paging",i=1,o,t;if(r.controlNavScaffold=n('<ol class="'+f+"control-nav "+f+s+'"><\/ol>'),r.pagingCount>1)for(t=0;t<r.pagingCount;t++)o=u.controlNav==="thumbnails"?'<img src="'+r.slides.eq(t).attr("data-thumb")+'"/>':"<a>"+i+"<\/a>",r.controlNavScaffold.append("<li>"+o+"<\/li>"),i++;r.controlsContainer?n(r.controlsContainer).append(r.controlNavScaffold):r.append(r.controlNavScaffold),e.controlNav.set(),e.controlNav.active(),r.controlNavScaffold.delegate("a, img",v,function(t){t.preventDefault();var i=n(this),e=r.controlNav.index(i);i.hasClass(f+"active")||(r.direction=e>r.currentSlide?"next":"prev",r.flexAnimate(e,u.pauseOnAction))}),l&&r.controlNavScaffold.delegate("a","click touchstart",function(n){n.preventDefault()})},setupManual:function(){r.controlNav=r.manualControls,e.controlNav.active(),r.controlNav.live(v,function(t){t.preventDefault();var i=n(this),e=r.controlNav.index(i);i.hasClass(f+"active")||(r.direction=e>r.currentSlide?"next":"prev",r.flexAnimate(e,u.pauseOnAction))}),l&&r.controlNav.live("click touchstart",function(n){n.preventDefault()})},set:function(){var t=u.controlNav==="thumbnails"?"img":"a";r.controlNav=n("."+f+"control-nav li "+t,r.controlsContainer?r.controlsContainer:r)},active:function(){r.controlNav.removeClass(f+"active").eq(r.animatingTo).addClass(f+"active")},update:function(t,i){r.pagingCount>1&&t==="add"?r.controlNavScaffold.append(n("<li><a>"+r.count+"<\/a><\/li>")):r.pagingCount===1?r.controlNavScaffold.find("li").remove():r.controlNav.eq(i).closest("li").remove(),e.controlNav.set(),r.pagingCount>1&&r.pagingCount!==r.controlNav.length?r.update(i,t):e.controlNav.active()}},directionNav:{setup:function(){var t=n('<ul class="'+f+'direction-nav"><li><a class="'+f+'prev" href="#">'+u.prevText+'<\/a><\/li><li><a class="'+f+'next" href="#">'+u.nextText+"<\/a><\/li><\/ul>");r.controlsContainer?(n(r.controlsContainer).append(t),r.directionNav=n("."+f+"direction-nav li a",r.controlsContainer)):(r.append(t),r.directionNav=n("."+f+"direction-nav li a",r)),e.directionNav.update(),r.directionNav.bind(v,function(t){t.preventDefault();var i=n(this).hasClass(f+"next")?r.getTarget("next"):r.getTarget("prev");r.flexAnimate(i,u.pauseOnAction)}),l&&r.directionNav.bind("click touchstart",function(n){n.preventDefault()})},update:function(){var n=f+"disabled";r.pagingCount===1?r.directionNav.addClass(n):u.animationLoop?r.directionNav.removeClass(n):r.animatingTo===0?r.directionNav.removeClass(n).filter("."+f+"prev").addClass(n):r.animatingTo===r.last?r.directionNav.removeClass(n).filter("."+f+"next").addClass(n):r.directionNav.removeClass(n)}},pausePlay:{setup:function(){var t=n('<div class="'+f+'pauseplay"><a><\/a><\/div>');r.controlsContainer?(r.controlsContainer.append(t),r.pausePlay=n("."+f+"pauseplay a",r.controlsContainer)):(r.append(t),r.pausePlay=n("."+f+"pauseplay a",r)),e.pausePlay.update(u.slideshow?f+"pause":f+"play"),r.pausePlay.bind(v,function(t){t.preventDefault(),n(this).hasClass(f+"pause")?(r.manualPause=!0,r.manualPlay=!1,r.pause()):(r.manualPause=!1,r.manualPlay=!0,r.play())}),l&&r.pausePlay.bind("click touchstart",function(n){n.preventDefault()})},update:function(n){n==="play"?r.pausePlay.removeClass(f+"pause").addClass(f+"play").text(u.playText):r.pausePlay.removeClass(f+"play").addClass(f+"pause").text(u.pauseText)}},touch:function(){function w(n){r.animating?n.preventDefault():n.touches.length===1&&(r.pause(),i=h?r.h:r.w,a=Number(new Date),l=o&&s&&r.animatingTo===r.last?0:o&&s?r.limit-(r.itemW+u.itemMargin)*r.move*r.animatingTo:o&&r.currentSlide===r.last?r.limit:o?(r.itemW+u.itemMargin)*r.move*r.currentSlide:s?(r.last-r.currentSlide+r.cloneOffset)*i:(r.currentSlide+r.cloneOffset)*i,f=h?n.touches[0].pageY:n.touches[0].pageX,e=h?n.touches[0].pageX:n.touches[0].pageY,t.addEventListener("touchmove",y,!1),t.addEventListener("touchend",p,!1))}function y(t){n=h?f-t.touches[0].pageY:f-t.touches[0].pageX,v=h?Math.abs(n)<Math.abs(t.touches[0].pageX-e):Math.abs(n)<Math.abs(t.touches[0].pageY-e),(!v||Number(new Date)-a>500)&&(t.preventDefault(),!c&&r.transitions&&(u.animationLoop||(n=n/(r.currentSlide===0&&n<0||r.currentSlide===r.last&&n>0?Math.abs(n)/i+2:1)),r.setProps(l+n,"setTouch")))}function p(){if(t.removeEventListener("touchmove",y,!1),r.animatingTo===r.currentSlide&&!v&&!(n===null)){var h=s?-n:n,w=h>0?r.getTarget("next"):r.getTarget("prev");r.canAdvance(w)&&(Number(new Date)-a<550&&Math.abs(h)>50||Math.abs(h)>i/2)?r.flexAnimate(w,u.pauseOnAction):c||r.flexAnimate(r.currentSlide,u.pauseOnAction,!0)}t.removeEventListener("touchend",p,!1),f=null,e=null,n=null,l=null}var f,e,l,i,n,a,v=!1;t.addEventListener("touchstart",w,!1)},resize:function(){!r.animating&&r.is(":visible")&&(o||r.doMath(),c?e.smoothHeight():o?(r.slides.width(r.computedW),r.update(r.pagingCount),r.setProps()):h?(r.viewport.height(r.h),r.setProps(r.h,"setTotal")):(u.smoothHeight&&e.smoothHeight(),r.newSlides.width(r.computedW),r.setProps(r.computedW,"setTotal")))},smoothHeight:function(n){if(!h||c){var t=c?r:r.viewport;n?t.animate({height:r.slides.eq(r.animatingTo).height()},n):t.height(r.slides.eq(r.animatingTo).height())}},sync:function(t){var i=n(u.sync).data("flexslider"),f=r.animatingTo;switch(t){case"animate":i.flexAnimate(f,u.pauseOnAction,!1,!0);break;case"play":i.playing||i.asNav||i.play();break;case"pause":i.pause()}}},r.flexAnimate=function(t,i,v,y,p){var k,w,g,b,d;if(a&&r.pagingCount===1&&(r.direction=r.currentItem<t?"next":"prev"),!r.animating&&(r.canAdvance(t,p)||v)&&r.is(":visible")){if(a&&y)if(k=n(u.asNavFor).data("flexslider"),r.atEnd=t===0||t===r.count-1,k.flexAnimate(t,!0,!1,!0,p),r.direction=r.currentItem<t?"next":"prev",k.direction=r.direction,Math.ceil((t+1)/r.visible)-1!==r.currentSlide&&t!==0)r.currentItem=t,r.slides.removeClass(f+"active-slide").eq(t).addClass(f+"active-slide"),t=Math.floor(t/r.visible);else return r.currentItem=t,r.slides.removeClass(f+"active-slide").eq(t).addClass(f+"active-slide"),!1;r.animating=!0,r.animatingTo=t,u.before(r),i&&r.pause(),r.syncExists&&!p&&e.sync("animate"),u.controlNav&&e.controlNav.active(),o||r.slides.removeClass(f+"active-slide").eq(t).addClass(f+"active-slide"),r.atEnd=t===0||t===r.last,u.directionNav&&e.directionNav.update(),t===r.last&&(u.end(r),u.animationLoop||r.pause()),c?l?(r.slides.eq(r.currentSlide).css({opacity:0,zIndex:1}),r.slides.eq(t).css({opacity:1,zIndex:2}),r.slides.unbind("webkitTransitionEnd transitionend"),r.slides.eq(r.currentSlide).bind("webkitTransitionEnd transitionend",function(){u.after(r)}),r.animating=!1,r.currentSlide=r.animatingTo):(r.slides.eq(r.currentSlide).fadeOut(u.animationSpeed,u.easing),r.slides.eq(t).fadeIn(u.animationSpeed,u.easing,r.wrapup)):(w=h?r.slides.filter(":first").height():r.computedW,o?(g=u.itemWidth>r.w?u.itemMargin*2:u.itemMargin,d=(r.itemW+g)*r.move*r.animatingTo,b=d>r.limit&&r.visible!==1?r.limit:d):b=r.currentSlide===0&&t===r.count-1&&u.animationLoop&&r.direction!=="next"?s?(r.count+r.cloneOffset)*w:0:r.currentSlide===r.last&&t===0&&u.animationLoop&&r.direction!=="prev"?s?0:(r.count+1)*w:s?(r.count-1-t+r.cloneOffset)*w:(t+r.cloneOffset)*w,r.setProps(b,"",u.animationSpeed),r.transitions?(u.animationLoop&&r.atEnd||(r.animating=!1,r.currentSlide=r.animatingTo),r.container.unbind("webkitTransitionEnd transitionend"),r.container.bind("webkitTransitionEnd transitionend",function(){r.wrapup(w)})):r.container.animate(r.args,u.animationSpeed,u.easing,function(){r.wrapup(w)})),u.smoothHeight&&e.smoothHeight(u.animationSpeed)}},r.wrapup=function(n){c||o||(r.currentSlide===0&&r.animatingTo===r.last&&u.animationLoop?r.setProps(n,"jumpEnd"):r.currentSlide===r.last&&r.animatingTo===0&&u.animationLoop&&r.setProps(n,"jumpStart")),r.animating=!1,r.currentSlide=r.animatingTo,u.after(r)},r.animateSlides=function(){r.animating||r.flexAnimate(r.getTarget("next"))},r.pause=function(){clearInterval(r.animatedSlides),r.playing=!1,u.pausePlay&&e.pausePlay.update("play"),r.syncExists&&e.sync("pause")},r.play=function(){r.animatedSlides=setInterval(r.animateSlides,u.slideshowSpeed),r.playing=!0,u.pausePlay&&e.pausePlay.update("pause"),r.syncExists&&e.sync("play")},r.canAdvance=function(n,t){var i=a?r.pagingCount-1:r.last;return t?!0:a&&r.currentItem===r.count-1&&n===0&&r.direction==="prev"?!0:a&&r.currentItem===0&&n===r.pagingCount-1&&r.direction!=="next"?!1:n===r.currentSlide&&!a?!1:u.animationLoop?!0:r.atEnd&&r.currentSlide===0&&n===i&&r.direction!=="next"?!1:r.atEnd&&r.currentSlide===i&&n===0&&r.direction==="next"?!1:!0},r.getTarget=function(n){return r.direction=n,n==="next"?r.currentSlide===r.last?0:r.currentSlide+1:r.currentSlide===0?r.last:r.currentSlide-1},r.setProps=function(n,t,i){var f=function(){var i=n?n:(r.itemW+u.itemMargin)*r.move*r.animatingTo,f=function(){if(o)return t==="setTouch"?n:s&&r.animatingTo===r.last?0:s?r.limit-(r.itemW+u.itemMargin)*r.move*r.animatingTo:r.animatingTo===r.last?r.limit:i;switch(t){case"setTotal":return s?(r.count-1-r.currentSlide+r.cloneOffset)*n:(r.currentSlide+r.cloneOffset)*n;case"setTouch":return s?n:n;case"jumpEnd":return s?n:r.count*n;case"jumpStart":return s?r.count*n:n;default:return n}}();return f*-1+"px"}();r.transitions&&(f=h?"translate3d(0,"+f+",0)":"translate3d("+f+",0,0)",i=i!==undefined?i/1e3+"s":"0s",r.container.css("-"+r.pfx+"-transition-duration",i)),r.args[r.prop]=f,(r.transitions||i===undefined)&&r.container.css(r.args)},r.setup=function(t){if(c)r.slides.css({width:"100%",float:"left",marginRight:"-100%",position:"relative"}),t==="init"&&(l?r.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+u.animationSpeed/1e3+"s ease",zIndex:1}).eq(r.currentSlide).css({opacity:1,zIndex:2}):r.slides.eq(r.currentSlide).fadeIn(u.animationSpeed,u.easing)),u.smoothHeight&&e.smoothHeight();else{var i,a;t==="init"&&(r.viewport=n('<div class="'+f+'viewport"><\/div>').css({overflow:"hidden",position:"relative"}).appendTo(r).append(r.container),r.cloneCount=0,r.cloneOffset=0,s&&(a=n.makeArray(r.slides).reverse(),r.slides=n(a),r.container.empty().append(r.slides))),u.animationLoop&&!o&&(r.cloneCount=2,r.cloneOffset=1,t!=="init"&&r.container.find(".clone").remove(),r.container.append(r.slides.first().clone().addClass("clone")).prepend(r.slides.last().clone().addClass("clone"))),r.newSlides=n(u.selector,r),i=s?r.count-1-r.currentSlide+r.cloneOffset:r.currentSlide+r.cloneOffset,h&&!o?(r.container.height((r.count+r.cloneCount)*200+"%").css("position","absolute").width("100%"),setTimeout(function(){r.newSlides.css({display:"block"}),r.doMath(),r.viewport.height(r.h),r.setProps(i*r.h,"init")},t==="init"?100:0)):(r.container.width((r.count+r.cloneCount)*200+"%"),r.setProps(i*r.computedW,"init"),setTimeout(function(){r.doMath(),r.newSlides.css({width:r.computedW,float:"left",display:"block"}),u.smoothHeight&&e.smoothHeight()},t==="init"?100:0))}o||r.slides.removeClass(f+"active-slide").eq(r.currentSlide).addClass(f+"active-slide")},r.doMath=function(){var f=r.slides.first(),n=u.itemMargin,t=u.minItems,i=u.maxItems;r.w=r.width(),r.h=f.height(),r.boxPadding=f.outerWidth()-f.width(),o?(r.itemT=u.itemWidth+n,r.minW=t?t*r.itemT:r.w,r.maxW=i?i*r.itemT:r.w,r.itemW=r.minW>r.w?(r.w-n*t)/t:r.maxW<r.w?(r.w-n*i)/i:u.itemWidth>r.w?r.w:u.itemWidth,r.visible=Math.floor(r.w/(r.itemW+n)),r.move=u.move>0&&u.move<r.visible?u.move:r.visible,r.pagingCount=Math.ceil((r.count-r.visible)/r.move+1),r.last=r.pagingCount-1,r.limit=r.pagingCount===1?0:u.itemWidth>r.w?(r.itemW+n*2)*r.count-r.w-n:(r.itemW+n)*r.count-r.w-n):(r.itemW=r.w,r.pagingCount=r.count,r.last=r.count-1),r.computedW=r.itemW-r.boxPadding+1},r.update=function(n,t){r.doMath(),o||(n<r.currentSlide?r.currentSlide+=1:n<=r.currentSlide&&n!==0&&(r.currentSlide-=1),r.animatingTo=r.currentSlide),u.controlNav&&!r.manualControls&&(t==="add"&&!o||r.pagingCount>r.controlNav.length?e.controlNav.update("add"):(t==="remove"&&!o||r.pagingCount<r.controlNav.length)&&(o&&r.currentSlide>r.last&&(r.currentSlide-=1,r.animatingTo-=1),e.controlNav.update("remove",r.last))),u.directionNav&&e.directionNav.update()},r.addSlide=function(t,i){var f=n(t);r.count+=1,r.last=r.count-1,h&&s?i!==undefined?r.slides.eq(r.count-i).after(f):r.container.prepend(f):i!==undefined?r.slides.eq(i).before(f):r.container.append(f),r.update(i,"add"),r.slides=n(u.selector+":not(.clone)",r),r.setup(),u.added(r)},r.removeSlide=function(t){var i=isNaN(t)?r.slides.index(n(t)):t;r.count-=1,r.last=r.count-1,isNaN(t)?n(t,r.slides).remove():h&&s?r.slides.eq(r.last).remove():r.slides.eq(t).remove(),r.doMath(),r.update(i,"remove"),r.slides=n(u.selector+":not(.clone)",r),r.setup(),u.removed(r)},e.init()},n.flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:!1,animationLoop:!0,smoothHeight:!1,startAt:0,slideshow:!0,slideshowSpeed:12e3,animationSpeed:600,initDelay:0,randomize:!1,pauseOnAction:!0,pauseOnHover:!1,useCSS:!0,touch:!0,video:!1,controlNav:!0,directionNav:!0,prevText:"Previous",nextText:"Next",keyboard:!0,multipleKeyboard:!1,mousewheel:!1,pausePlay:!1,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:0,maxItems:0,move:0,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){}},n.fn.flexslider=function(t){if(t===undefined&&(t={}),typeof t=="object")return this.each(function(){var i=n(this),u=t.selector?t.selector:".slides > li",r=i.find(u);r.length===1?(r.fadeIn(400),t.start&&t.start(i)):i.data("flexslider")==undefined&&new n.flexslider(this,t)});var i=n(this).data("flexslider");switch(t){case"play":i.play();break;case"pause":i.pause();break;case"next":i.flexAnimate(i.getTarget("next"),!0);break;case"prev":case"previous":i.flexAnimate(i.getTarget("prev"),!0);break;default:typeof t=="number"&&i.flexAnimate(t,!0)}}}(jQuery),function(n){n.fn.fitText=function(t,i){var u=t||1,r=n.extend({minFontSize:Number.NEGATIVE_INFINITY,maxFontSize:Number.POSITIVE_INFINITY},i);return this.each(function(){var t=n(this),i=function(){t.css("font-size",Math.max(Math.min(t.width()/(u*10),parseFloat(r.maxFontSize)),parseFloat(r.minFontSize)))};i();n(window).on("resize.fittext orientationchange.fittext",i)})}}(jQuery),function(n){"use strict";n.fn.fitVids=function(t){var i={customSelector:null},r=document.createElement("div"),u=document.getElementsByTagName("base")[0]||document.getElementsByTagName("script")[0];return r.className="fit-vids-style",r.innerHTML="&shy;<style>               .fluid-width-video-wrapper {                 width: 100%;                              position: relative;                       padding: 0;                            }                                                                                   .fluid-width-video-wrapper iframe,        .fluid-width-video-wrapper object,        .fluid-width-video-wrapper embed {           position: absolute;                       top: 0;                                   left: 0;                                  width: 100%;                              height: 100%;                          }                                       <\/style>",u.parentNode.insertBefore(r,u),t&&n.extend(i,t),this.each(function(){var t=["iframe[src*='player.vimeo.com']","iframe[src*='youtube.com']","iframe[src*='youtube-nocookie.com']","iframe[src*='kickstarter.com']","iframe[src*='maps.google.com']","object","embed"],r;i.customSelector&&t.push(i.customSelector),r=n(this).find(t.join(",")),r.each(function(){var t=n(this),i;if((this.tagName.toLowerCase()!=="embed"||!t.parent("object").length)&&!t.parent(".fluid-width-video-wrapper").length){var r=this.tagName.toLowerCase()==="object"||t.attr("height")&&!isNaN(parseInt(t.attr("height"),10))?parseInt(t.attr("height"),10):t.height(),u=isNaN(parseInt(t.attr("width"),10))?t.width():parseInt(t.attr("width"),10),f=r/u;t.attr("id")||(i="fitvid"+Math.floor(Math.random()*999999),t.attr("id",i)),t.wrap('<div class="fluid-width-video-wrapper"><\/div>').parent(".fluid-width-video-wrapper").css("padding-top",f*100+"%"),t.removeAttr("height").removeAttr("width")}})})}}(jQuery),Number.prototype.formatMoney=function(n,t,i){var u=this,n=isNaN(n=Math.abs(n))?2:n,t=t==undefined?",":t,i=i==undefined?".":i,e=u<0?"-":"",f=parseInt(u=Math.abs(+u||0).toFixed(n))+"",r=(r=f.length)>3?r%3:0;return e+(r?f.substr(0,r)+i:"")+f.substr(r).replace(/(\d{3})(?=\d)/g,"$1"+i)+(n?t+Math.abs(u-f).toFixed(n).slice(2):"")},(window._gsQueue||(window._gsQueue=[])).push(function(){"use strict";window._gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(n,t,i){var h=[].slice,r=function(n,t,r){i.call(this,n,t,r),this._cycle=0,this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._dirty=!0},c=function(n){return n.jquery||n.length&&n!==window&&n[0]&&(n[0]===window||n[0].nodeType&&n[0].style&&!n.nodeType)},u=r.prototype=i.to({},.1,{}),f=[],e,o,s;return r.version="1.10.1",u.constructor=r,u.kill()._gc=!1,r.killTweensOf=r.killDelayedCallsTo=i.killTweensOf,r.getTweensOf=i.getTweensOf,r.ticker=i.ticker,u.invalidate=function(){return this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),i.prototype.invalidate.call(this)},u.updateTo=function(n,t){var u,s=this.ratio,f,e,o,r;t&&this.timeline&&this._startTime<this._timeline._time&&(this._startTime=this._timeline._time,this._uncache(!1),this._gc?this._enabled(!0,!1):this._timeline.insert(this,this._startTime-this._delay));for(u in n)this.vars[u]=n[u];if(this._initted)if(t)this._initted=!1;else if(this._notifyPluginsOfEnabled&&this._firstPT&&i._onPluginEvent("_onDisable",this),this._time/this._duration>.998)f=this._time,this.render(0,!0,!1),this._initted=!1,this.render(f,!0,!1);else if(this._time>0)for(this._initted=!1,this._init(),o=1/(1-s),r=this._firstPT;r;)e=r.s+r.c,r.c*=o,r.s=e-r.c,r=r._next;return this},u.render=function(n,t,i){var s,e,u,c,r,o,h,a=this._dirty?this.totalDuration():this._totalDuration,v=this._time,l=this._totalTime,y=this._cycle;if(n>=a?(this._totalTime=a,this._cycle=this._repeat,this._yoyo&&0!=(1&this._cycle)?(this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0):(this._time=this._duration,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1),this._reversed||(s=!0,e="onComplete"),0===this._duration&&((0===n||0>this._rawPrevTime)&&this._rawPrevTime!==n&&(i=!0,this._rawPrevTime>0&&(e="onReverseComplete",t&&(n=-1))),this._rawPrevTime=n)):1e-7>n?(this._totalTime=this._time=this._cycle=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==l||0===this._duration&&this._rawPrevTime>0)&&(e="onReverseComplete",s=this._reversed),0>n?(this._active=!1,0===this._duration&&(this._rawPrevTime>=0&&(i=!0),this._rawPrevTime=n)):this._initted||(i=!0)):(this._totalTime=this._time=n,0!==this._repeat&&(c=this._duration+this._repeatDelay,this._cycle=this._totalTime/c>>0,0!==this._cycle&&this._cycle===this._totalTime/c&&this._cycle--,this._time=this._totalTime-this._cycle*c,this._yoyo&&0!=(1&this._cycle)&&(this._time=this._duration-this._time),this._time>this._duration?this._time=this._duration:0>this._time&&(this._time=0)),this._easeType?(r=this._time/this._duration,o=this._easeType,h=this._easePower,(1===o||3===o&&r>=.5)&&(r=1-r),3===o&&(r*=2),1===h?r*=r:2===h?r*=r*r:3===h?r*=r*r*r:4===h&&(r*=r*r*r*r),this.ratio=1===o?1-r:2===o?r:.5>this._time/this._duration?r/2:1-r/2):this.ratio=this._ease.getRatio(this._time/this._duration)),v===this._time&&!i)return l!==this._totalTime&&this._onUpdate&&(t||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||f)),void 0;if(!this._initted){if(this._init(),!this._initted)return;this._time&&!s?this.ratio=this._ease.getRatio(this._time/this._duration):s&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(this._active||!this._paused&&this._time!==v&&n>=0&&(this._active=!0),0===l&&(this._startAt&&(n>=0?this._startAt.render(n,t,i):e||(e="_dummyGS")),this.vars.onStart&&(0!==this._totalTime||0===this._duration)&&(t||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||f))),u=this._firstPT;u;)u.f?u.t[u.p](u.c*this.ratio+u.s):u.t[u.p]=u.c*this.ratio+u.s,u=u._next;this._onUpdate&&(0>n&&this._startAt&&this._startAt.render(n,t,i),t||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||f)),this._cycle!==y&&(t||this._gc||this.vars.onRepeat&&this.vars.onRepeat.apply(this.vars.onRepeatScope||this,this.vars.onRepeatParams||f)),e&&(this._gc||(0>n&&this._startAt&&!this._onUpdate&&this._startAt.render(n,t,i),s&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!t&&this.vars[e]&&this.vars[e].apply(this.vars[e+"Scope"]||this,this.vars[e+"Params"]||f)))},r.to=function(n,t,i){return new r(n,t,i)},r.from=function(n,t,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new r(n,t,i)},r.fromTo=function(n,t,i,u){return u.startAt=i,u.immediateRender=0!=u.immediateRender&&0!=i.immediateRender,new r(n,t,u)},r.staggerTo=r.allTo=function(n,t,u,e,o,s,l){e=e||0;var y,v,a,p,w=u.delay||0,b=[],k=function(){u.onComplete&&u.onComplete.apply(u.onCompleteScope||this,arguments),o.apply(l||this,s||f)};for(n instanceof Array||("string"==typeof n&&(n=i.selector(n)||n),c(n)&&(n=h.call(n,0))),y=n.length,a=0;y>a;a++){v={};for(p in u)v[p]=u[p];v.delay=w,a===y-1&&o&&(v.onComplete=k),b[a]=new r(n[a],t,v),w+=e}return b},r.staggerFrom=r.allFrom=function(n,t,i,u,f,e,o){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,r.staggerTo(n,t,i,u,f,e,o)},r.staggerFromTo=r.allFromTo=function(n,t,i,u,f,e,o,s){return u.startAt=i,u.immediateRender=0!=u.immediateRender&&0!=i.immediateRender,r.staggerTo(n,t,u,f,e,o,s)},r.delayedCall=function(n,t,i,u,f){return new r(t,0,{delay:n,onComplete:t,onCompleteParams:i,onCompleteScope:u,onReverseComplete:t,onReverseCompleteParams:i,onReverseCompleteScope:u,immediateRender:!1,useFrames:f,overwrite:0})},r.set=function(n,t){return new r(n,0,t)},r.isTweening=function(n){for(var t,r=i.getTweensOf(n),u=r.length;--u>-1;)if(t=r[u],t._active||t._startTime===t._timeline._time&&t._timeline._active)return!0;return!1},e=function(n,t){for(var u=[],f=0,r=n._first;r;)r instanceof i?u[f++]=r:(t&&(u[f++]=r),u=u.concat(e(r,t)),f=u.length),r=r._next;return u},o=r.getAllTweens=function(t){return e(n._rootTimeline,t).concat(e(n._rootFramesTimeline,t))},r.killAll=function(n,i,r,u){null==i&&(i=!0),null==r&&(r=!0);for(var s,f,h=o(0!=u),c=h.length,l=i&&r&&u,e=0;c>e;e++)f=h[e],(l||f instanceof t||(s=f.target===f.vars.onComplete)&&r||i&&!s)&&(n?f.totalTime(f.totalDuration()):f._enabled(!1,!1))},r.killChildTweensOf=function(n,t){if(null!=n){var f,e,o,u,l,s=i._tweenLookup;if("string"==typeof n&&(n=i.selector(n)||n),c(n)&&(n=h(n,0)),n instanceof Array)for(u=n.length;--u>-1;)r.killChildTweensOf(n[u],t);else{f=[];for(o in s)for(e=s[o].target.parentNode;e;)e===n&&(f=f.concat(s[o].tweens)),e=e.parentNode;for(l=f.length,u=0;l>u;u++)t&&f[u].totalTime(f[u].totalDuration()),f[u]._enabled(!1,!1)}}},s=function(n,i,r,u){i=i!==!1,r=r!==!1,u=u!==!1;for(var e,f,s=o(u),c=i&&r&&u,h=s.length;--h>-1;)f=s[h],(c||f instanceof t||(e=f.target===f.vars.onComplete)&&r||i&&!e)&&f.paused(n)},r.pauseAll=function(n,t,i){s(!0,n,t,i)},r.resumeAll=function(n,t,i){s(!1,n,t,i)},u.progress=function(n){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!=(1&this._cycle)?1-n:n)+this._cycle*(this._duration+this._repeatDelay),!1):this._time/this.duration()},u.totalProgress=function(n){return arguments.length?this.totalTime(this.totalDuration()*n,!1):this._totalTime/this.totalDuration()},u.time=function(n,t){return arguments.length?(this._dirty&&this.totalDuration(),n>this._duration&&(n=this._duration),this._yoyo&&0!=(1&this._cycle)?n=this._duration-n+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(n+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(n,t)):this._time},u.duration=function(t){return arguments.length?n.prototype.duration.call(this,t):this._duration},u.totalDuration=function(n){return arguments.length?-1===this._repeat?this:this.duration((n-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration)},u.repeat=function(n){return arguments.length?(this._repeat=n,this._uncache(!0)):this._repeat},u.repeatDelay=function(n){return arguments.length?(this._repeatDelay=n,this._uncache(!0)):this._repeatDelay},u.yoyo=function(n){return arguments.length?(this._yoyo=n,this):this._yoyo},r},!0),window._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(n,t,i){var u=function(n){t.call(this,n),this._labels={},this.autoRemoveChildren=this.vars.autoRemoveChildren===!0,this.smoothChildTiming=this.vars.smoothChildTiming===!0,this._sortChildren=!0,this._onUpdate=this.vars.onUpdate;var r,u,i=this.vars;for(u in i)r=i[u],r instanceof Array&&-1!==r.join("").indexOf("{self}")&&(i[u]=this._swapSelfInParams(r));i.tweens instanceof Array&&this.add(i.tweens,0,i.align,i.stagger)},f=[],e=function(n){var t,i={};for(t in n)i[t]=n[t];return i},o=function(n,t,i,r){n._timeline.pause(n._startTime),t&&t.apply(r||n._timeline,i||f)},s=f.slice,r=u.prototype=new t;return u.version="1.10.1",r.constructor=u,r.kill()._gc=!1,r.to=function(n,t,r,u){return t?this.add(new i(n,t,r),u):this.set(n,r,u)},r.from=function(n,t,r,u){return this.add(i.from(n,t,r),u)},r.fromTo=function(n,t,r,u,f){return t?this.add(i.fromTo(n,t,r,u),f):this.set(n,u,f)},r.staggerTo=function(n,t,r,f,o,h,c,l){var a,v=new u({onComplete:h,onCompleteParams:c,onCompleteScope:l});for("string"==typeof n&&(n=i.selector(n)||n),!(n instanceof Array)&&n.length&&n!==window&&n[0]&&(n[0]===window||n[0].nodeType&&n[0].style&&!n.nodeType)&&(n=s.call(n,0)),f=f||0,a=0;n.length>a;a++)r.startAt&&(r.startAt=e(r.startAt)),v.to(n[a],t,e(r),a*f);return this.add(v,o)},r.staggerFrom=function(n,t,i,r,u,f,e,o){return i.immediateRender=0!=i.immediateRender,i.runBackwards=!0,this.staggerTo(n,t,i,r,u,f,e,o)},r.staggerFromTo=function(n,t,i,r,u,f,e,o,s){return r.startAt=i,r.immediateRender=0!=r.immediateRender&&0!=i.immediateRender,this.staggerTo(n,t,r,u,f,e,o,s)},r.call=function(n,t,r,u){return this.add(i.delayedCall(0,n,t,r),u)},r.set=function(n,t,r){return r=this._parseTimeOrLabel(r,0,!0),null==t.immediateRender&&(t.immediateRender=r===this._time&&!this._paused),this.add(new i(n,0,t),r)},u.exportRoot=function(n,t){n=n||{},null==n.smoothChildTiming&&(n.smoothChildTiming=!0);var r,o,f=new u(n),e=f._timeline;for(null==t&&(t=!0),e._remove(f,!0),f._startTime=0,f._rawPrevTime=f._time=f._totalTime=e._time,r=e._first;r;)o=r._next,t&&r instanceof i&&r.target===r.vars.onComplete||f.add(r,r._startTime-r._delay),r=o;return e.add(f,0),f},r.add=function(r,f,e,o){var c,a,l,s,h;if("number"!=typeof f&&(f=this._parseTimeOrLabel(f,0,!0,r)),!(r instanceof n)){if(r instanceof Array){for(e=e||"normal",o=o||0,c=f,a=r.length,l=0;a>l;l++)(s=r[l])instanceof Array&&(s=new u({tweens:s})),this.add(s,c),"string"!=typeof s&&"function"!=typeof s&&("sequence"===e?c=s._startTime+s.totalDuration()/s._timeScale:"start"===e&&(s._startTime-=s.delay())),c+=o;return this._uncache(!0)}if("string"==typeof r)return this.addLabel(r,f);if("function"!=typeof r)throw"Cannot add "+r+" into the timeline; it is neither a tween, timeline, function, nor a string.";r=i.delayedCall(0,r)}if(t.prototype.add.call(this,r,f),this._gc&&!this._paused&&this._time===this._duration&&this._time<this.duration())for(h=this;h._gc&&h._timeline;)h._timeline.smoothChildTiming?h.totalTime(h._totalTime,!0):h._enabled(!0,!1),h=h._timeline;return this},r.remove=function(t){if(t instanceof n)return this._remove(t,!1);if(t instanceof Array){for(var i=t.length;--i>-1;)this.remove(t[i]);return this}return"string"==typeof t?this.removeLabel(t):this.kill(null,t)},r._remove=function(n,i){return t.prototype._remove.call(this,n,i),this._last?this._time>this._last._startTime&&(this._time=this.duration(),this._totalTime=this._totalDuration):this._time=this._totalTime=0,this},r.append=function(n,t){return this.add(n,this._parseTimeOrLabel(null,t,!0,n))},r.insert=r.insertMultiple=function(n,t,i,r){return this.add(n,t||0,i,r)},r.appendMultiple=function(n,t,i,r){return this.add(n,this._parseTimeOrLabel(null,t,!0,n),i,r)},r.addLabel=function(n,t){return this._labels[n]=this._parseTimeOrLabel(t),this},r.addPause=function(n,t,i,r){return this.call(o,["{self}",t,i,r],this,n)},r.removeLabel=function(n){return delete this._labels[n],this},r.getLabelTime=function(n){return null!=this._labels[n]?this._labels[n]:-1},r._parseTimeOrLabel=function(t,i,r,u){var f;if(u instanceof n&&u.timeline===this)this.remove(u);else if(u instanceof Array)for(f=u.length;--f>-1;)u[f]instanceof n&&u[f].timeline===this&&this.remove(u[f]);if("string"==typeof i)return this._parseTimeOrLabel(i,r&&"number"==typeof t&&null==this._labels[i]?t-this.duration():0,r);if(i=i||0,"string"==typeof t&&(isNaN(t)||null!=this._labels[t])){if(f=t.indexOf("="),-1===f)return null==this._labels[t]?r?this._labels[t]=this.duration()+i:i:this._labels[t]+i;i=parseInt(t.charAt(f-1)+"1",10)*Number(t.substr(f+1)),t=f>1?this._parseTimeOrLabel(t.substr(0,f-1),0,r):this.duration()}else null==t&&(t=this.duration());return Number(t)+i},r.seek=function(n,t){return this.totalTime("number"==typeof n?n:this._parseTimeOrLabel(n),t!==!1)},r.stop=function(){return this.paused(!0)},r.gotoAndPlay=function(n,t){return this.play(n,t)},r.gotoAndStop=function(n,t){return this.pause(n,t)},r.render=function(n,t,i){this._gc&&this._enabled(!0,!1);var r,c,o,u,s,h=this._dirty?this.totalDuration():this._totalDuration,e=this._time,a=this._startTime,v=this._timeScale,l=this._paused;if(n>=h?(this._totalTime=this._time=h,this._reversed||this._hasPausedChild()||(c=!0,u="onComplete",0===this._duration&&(0===n||0>this._rawPrevTime)&&this._rawPrevTime!==n&&this._first&&(s=!0,this._rawPrevTime>0&&(u="onReverseComplete"))),this._rawPrevTime=n,n=h+1e-6):1e-7>n?(this._totalTime=this._time=0,(0!==e||0===this._duration&&this._rawPrevTime>0)&&(u="onReverseComplete",c=this._reversed),0>n?(this._active=!1,0===this._duration&&this._rawPrevTime>=0&&this._first&&(s=!0)):this._initted||(s=!0),this._rawPrevTime=n,n=0):this._totalTime=this._time=this._rawPrevTime=n,this._time!==e&&this._first||i||s){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==e&&n>0&&(this._active=!0),0===e&&this.vars.onStart&&0!==this._time&&(t||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||f)),this._time>=e)for(r=this._first;r&&(o=r._next,!this._paused||l);)(r._active||r._startTime<=this._time&&!r._paused&&!r._gc)&&(r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(n-r._startTime)*r._timeScale,t,i):r.render((n-r._startTime)*r._timeScale,t,i)),r=o;else for(r=this._last;r&&(o=r._prev,!this._paused||l);)(r._active||e>=r._startTime&&!r._paused&&!r._gc)&&(r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(n-r._startTime)*r._timeScale,t,i):r.render((n-r._startTime)*r._timeScale,t,i)),r=o;this._onUpdate&&(t||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||f)),u&&(this._gc||(a===this._startTime||v!==this._timeScale)&&(0===this._time||h>=this.totalDuration())&&(c&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!t&&this.vars[u]&&this.vars[u].apply(this.vars[u+"Scope"]||this,this.vars[u+"Params"]||f)))}},r._hasPausedChild=function(){for(var n=this._first;n;){if(n._paused||n instanceof u&&n._hasPausedChild())return!0;n=n._next}return!1},r.getChildren=function(n,t,r,u){u=u||-9999999999;for(var e=[],f=this._first,o=0;f;)u>f._startTime||(f instanceof i?t!==!1&&(e[o++]=f):(r!==!1&&(e[o++]=f),n!==!1&&(e=e.concat(f.getChildren(!0,t,r)),o=e.length))),f=f._next;return e},r.getTweensOf=function(n,t){for(var r=i.getTweensOf(n),u=r.length,f=[],e=0;--u>-1;)(r[u].timeline===this||t&&this._contains(r[u]))&&(f[e++]=r[u]);return f},r._contains=function(n){for(var t=n.timeline;t;){if(t===this)return!0;t=t.timeline}return!1},r.shiftChildren=function(n,t,i){i=i||0;for(var u,r=this._first,f=this._labels;r;)r._startTime>=i&&(r._startTime+=n),r=r._next;if(t)for(u in f)f[u]>=i&&(f[u]+=n);return this._uncache(!0)},r._kill=function(n,t){if(!n&&!t)return this._enabled(!1,!1);for(var i=t?this.getTweensOf(t):this.getChildren(!0,!0,!1),r=i.length,u=!1;--r>-1;)i[r]._kill(n,t)&&(u=!0);return u},r.clear=function(n){var t=this.getChildren(!1,!0,!0),i=t.length;for(this._time=this._totalTime=0;--i>-1;)t[i]._enabled(!1,!1);return n!==!1&&(this._labels={}),this._uncache(!0)},r.invalidate=function(){for(var n=this._first;n;)n.invalidate(),n=n._next;return this},r._enabled=function(n,i){if(n===this._gc)for(var r=this._first;r;)r._enabled(n,!0),r=r._next;return t.prototype._enabled.call(this,n,i)},r.progress=function(n){return arguments.length?this.totalTime(this.duration()*n,!1):this._time/this.duration()},r.duration=function(n){return arguments.length?(0!==this.duration()&&0!==n&&this.timeScale(this._duration/n),this):(this._dirty&&this.totalDuration(),this._duration)},r.totalDuration=function(n){if(!arguments.length){if(this._dirty){for(var f,r,i=0,t=this._last,u=999999999999;t;)f=t._prev,t._dirty&&t.totalDuration(),t._startTime>u&&this._sortChildren&&!t._paused?this.add(t,t._startTime-t._delay):u=t._startTime,0>t._startTime&&!t._paused&&(i-=t._startTime,this._timeline.smoothChildTiming&&(this._startTime+=t._startTime/this._timeScale),this.shiftChildren(-t._startTime,!1,-9999999999),u=0),r=t._startTime+t._totalDuration/t._timeScale,r>i&&(i=r),t=f;this._duration=this._totalDuration=i,this._dirty=!1}return this._totalDuration}return 0!==this.totalDuration()&&0!==n&&this.timeScale(this._totalDuration/n),this},r.usesFrames=function(){for(var t=this._timeline;t._timeline;)t=t._timeline;return t===n._rootFramesTimeline},r.rawTime=function(){return this._paused||0!==this._totalTime&&this._totalTime!==this._totalDuration?this._totalTime:(this._timeline.rawTime()-this._startTime)*this._timeScale},u},!0),window._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(n,t,i){var f=function(t){n.call(this,t),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=this.vars.yoyo===!0,this._dirty=!0},u=[],e=new i(null,null,1,0),o=function(n){for(;n;){if(n._paused)return!0;n=n._timeline}return!1},r=f.prototype=new n;return r.constructor=f,r.kill()._gc=!1,f.version="1.10.1",r.invalidate=function(){return this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),n.prototype.invalidate.call(this)},r.addCallback=function(n,i,r,u){return this.add(t.delayedCall(0,n,r,u),i)},r.removeCallback=function(n,t){if(n)if(null==t)this._kill(null,n);else for(var i=this.getTweensOf(n,!1),r=i.length,u=this._parseTimeOrLabel(t);--r>-1;)i[r]._startTime===u&&i[r]._enabled(!1,!1);return this},r.tweenTo=function(n,i){i=i||{};var o,r,f={ease:e,overwrite:2,useFrames:this.usesFrames(),immediateRender:!1};for(o in i)f[o]=i[o];return f.time=this._parseTimeOrLabel(n),r=new t(this,Math.abs(Number(f.time)-this._time)/this._timeScale||.001,f),f.onStart=function(){r.target.paused(!0),r.vars.time!==r.target.time()&&r.duration(Math.abs(r.vars.time-r.target.time())/r.target._timeScale),i.onStart&&i.onStart.apply(i.onStartScope||r,i.onStartParams||u)},r},r.tweenFromTo=function(n,t,i){i=i||{},n=this._parseTimeOrLabel(n),i.startAt={onComplete:this.seek,onCompleteParams:[n],onCompleteScope:this},i.immediateRender=i.immediateRender!==!1;var r=this.tweenTo(t,i);return r.duration(Math.abs(r.vars.time-n)/this._timeScale||.001)},r.render=function(n,t,i){this._gc&&this._enabled(!0,!1);var r,v,c,o,l,a,y=this._dirty?this.totalDuration():this._totalDuration,f=this._duration,e=this._time,p=this._totalTime,k=this._startTime,d=this._timeScale,b=this._rawPrevTime,w=this._paused,s=this._cycle;if(n>=y?(this._locked||(this._totalTime=y,this._cycle=this._repeat),this._reversed||this._hasPausedChild()||(v=!0,o="onComplete",0===f&&(0===n||0>this._rawPrevTime)&&this._rawPrevTime!==n&&this._first&&(l=!0,this._rawPrevTime>0&&(o="onReverseComplete"))),this._rawPrevTime=n,this._yoyo&&0!=(1&this._cycle)?this._time=n=0:(this._time=f,n=f+1e-6)):1e-7>n?(this._locked||(this._totalTime=this._cycle=0),this._time=0,(0!==e||0===f&&this._rawPrevTime>0&&!this._locked)&&(o="onReverseComplete",v=this._reversed),0>n?(this._active=!1,0===f&&this._rawPrevTime>=0&&this._first&&(l=!0)):this._initted||(l=!0),this._rawPrevTime=n,n=0):(this._time=this._rawPrevTime=n,this._locked||(this._totalTime=n,0!==this._repeat&&(a=f+this._repeatDelay,this._cycle=this._totalTime/a>>0,0!==this._cycle&&this._cycle===this._totalTime/a&&this._cycle--,this._time=this._totalTime-this._cycle*a,this._yoyo&&0!=(1&this._cycle)&&(this._time=f-this._time),this._time>f?(this._time=f,n=f+1e-6):0>this._time?this._time=n=0:n=this._time))),this._cycle!==s&&!this._locked){var h=this._yoyo&&0!=(1&s),g=h===(this._yoyo&&0!=(1&this._cycle)),nt=this._totalTime,tt=this._cycle,it=this._rawPrevTime,rt=this._time;if(this._totalTime=s*f,s>this._cycle?h=!h:this._totalTime+=f,this._time=e,this._rawPrevTime=0===f?b-1e-5:b,this._cycle=s,this._locked=!0,e=h?0:f,this.render(e,t,0===f),t||this._gc||this.vars.onRepeat&&this.vars.onRepeat.apply(this.vars.onRepeatScope||this,this.vars.onRepeatParams||u),g&&(e=h?f+1e-6:-1e-6,this.render(e,!0,!1)),this._locked=!1,this._paused&&!w)return;this._time=rt,this._totalTime=nt,this._cycle=tt,this._rawPrevTime=it}if(!(this._time!==e&&this._first||i||l))return p!==this._totalTime&&this._onUpdate&&(t||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||u)),void 0;if(this._initted||(this._initted=!0),this._active||!this._paused&&this._totalTime!==p&&n>0&&(this._active=!0),0===p&&this.vars.onStart&&0!==this._totalTime&&(t||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||u)),this._time>=e)for(r=this._first;r&&(c=r._next,!this._paused||w);)(r._active||r._startTime<=this._time&&!r._paused&&!r._gc)&&(r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(n-r._startTime)*r._timeScale,t,i):r.render((n-r._startTime)*r._timeScale,t,i)),r=c;else for(r=this._last;r&&(c=r._prev,!this._paused||w);)(r._active||e>=r._startTime&&!r._paused&&!r._gc)&&(r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(n-r._startTime)*r._timeScale,t,i):r.render((n-r._startTime)*r._timeScale,t,i)),r=c;this._onUpdate&&(t||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||u)),o&&(this._locked||this._gc||(k===this._startTime||d!==this._timeScale)&&(0===this._time||y>=this.totalDuration())&&(v&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!t&&this.vars[o]&&this.vars[o].apply(this.vars[o+"Scope"]||this,this.vars[o+"Params"]||u)))},r.getActive=function(n,t,i){null==n&&(n=!0),null==t&&(t=!0),null==i&&(i=!1);for(var r,f=[],e=this.getChildren(n,t,i),s=0,h=e.length,u=0;h>u;u++)r=e[u],r._paused||r._timeline._time>=r._startTime&&r._timeline._time<r._startTime+r._totalDuration/r._timeScale&&(o(r._timeline)||(f[s++]=r));return f},r.getLabelAfter=function(n){n||0!==n&&(n=this._time);for(var i=this.getLabelsArray(),r=i.length,t=0;r>t;t++)if(i[t].time>n)return i[t].name;return null},r.getLabelBefore=function(n){null==n&&(n=this._time);for(var t=this.getLabelsArray(),i=t.length;--i>-1;)if(n>t[i].time)return t[i].name;return null},r.getLabelsArray=function(){var n,t=[],i=0;for(n in this._labels)t[i++]={time:this._labels[n],name:n};return t.sort(function(n,t){return n.time-t.time}),t},r.progress=function(n){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!=(1&this._cycle)?1-n:n)+this._cycle*(this._duration+this._repeatDelay),!1):this._time/this.duration()},r.totalProgress=function(n){return arguments.length?this.totalTime(this.totalDuration()*n,!1):this._totalTime/this.totalDuration()},r.totalDuration=function(t){return arguments.length?-1===this._repeat?this:this.duration((t-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(n.prototype.totalDuration.call(this),this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration)},r.time=function(n,t){return arguments.length?(this._dirty&&this.totalDuration(),n>this._duration&&(n=this._duration),this._yoyo&&0!=(1&this._cycle)?n=this._duration-n+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(n+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(n,t)):this._time},r.repeat=function(n){return arguments.length?(this._repeat=n,this._uncache(!0)):this._repeat},r.repeatDelay=function(n){return arguments.length?(this._repeatDelay=n,this._uncache(!0)):this._repeatDelay},r.yoyo=function(n){return arguments.length?(this._yoyo=n,this):this._yoyo},r.currentLabel=function(n){return arguments.length?this.seek(n,!0):this.getLabelBefore(this._time+1e-8)},f},!0),function(){var h=180/Math.PI,c=Math.PI/180,n=[],t=[],i=[],f={},u=function(n,t,i,r){this.a=n,this.b=t,this.c=i,this.d=r,this.da=r-n,this.ca=i-n,this.ba=t-n},l=",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",e=function(n,t,i,r){var e={a:n},u={},f={},o={c:r},s=(n+t)/2,a=(t+i)/2,h=(i+r)/2,c=(s+a)/2,l=(a+h)/2,v=(l-c)/8;return e.b=s+(n-s)/4,u.b=c+v,e.c=u.a=(e.b+u.b)/2,u.c=f.a=(c+l)/2,f.b=l-v,o.b=h+(r-h)/4,f.c=o.a=(f.b+o.b)/2,[e,u,f,o]},a=function(r,u,f,o,s){for(var v,c,nt,h,y,b,g,tt,l,k,d,it,rt=r.length-1,p=0,a=r[0].a,w=0;rt>w;w++)h=r[p],v=h.a,c=h.d,nt=r[p+1].d,s?(k=n[w],d=t[w],it=.25*(d+k)*u/(o?.5:i[w]||.5),y=c-(c-v)*(o?.5*u:0!==k?it/k:0),b=c+(nt-c)*(o?.5*u:0!==d?it/d:0),g=c-(y+((b-y)*(3*k/(k+d)+.5)/4||0))):(y=c-.5*(c-v)*u,b=c+.5*(nt-c)*u,g=c-(y+b)/2),y+=g,b+=g,h.c=tt=y,h.b=0!==w?a:a=h.a+.6*(h.c-h.a),h.da=c-v,h.ca=tt-v,h.ba=a-v,f?(l=e(v,a,tt,c),r.splice(p,1,l[0],l[1],l[2],l[3]),p+=4):p++,a=b;h=r[p],h.b=a,h.c=a+.4*(h.d-a),h.da=h.d-h.a,h.ca=h.c-h.a,h.ba=a-h.a,f&&(l=e(h.a,a,h.c,h.d),r.splice(p,1,l[0],l[1],l[2],l[3]))},v=function(i,r,f,e){var c,o,l,s,v,a,h=[];if(e)for(i=[e].concat(i),o=i.length;--o>-1;)"string"==typeof(a=i[o][r])&&"="===a.charAt(1)&&(i[o][r]=e[r]+Number(a.charAt(0)+a.substr(2)));if(c=i.length-2,0>c)return h[0]=new u(i[0][r],0,0,i[-1>c?0:1][r]),h;for(o=0;c>o;o++)l=i[o][r],s=i[o+1][r],h[o]=new u(l,0,0,s),f&&(v=i[o+2][r],n[o]=(n[o]||0)+(s-l)*(s-l),t[o]=(t[o]||0)+(v-s)*(v-s));return h[o]=new u(i[o][r],0,0,i[o+1][r]),h},o=function(r,u,e,o,s,h){var c,y,w,p,g,nt,k,tt,d={},b=[],it=h||r[0];s="string"==typeof s?","+s+",":l,null==u&&(u=1);for(y in r[0])b.push(y);if(r.length>1){for(tt=r[r.length-1],k=!0,c=b.length;--c>-1;)if(y=b[c],Math.abs(it[y]-tt[y])>.05){k=!1;break}k&&(r=r.concat(),h&&r.unshift(h),r.push(r[1]),h=r[r.length-3])}for(n.length=t.length=i.length=0,c=b.length;--c>-1;)y=b[c],f[y]=-1!==s.indexOf(","+y+","),d[y]=v(r,y,f[y],h);for(c=n.length;--c>-1;)n[c]=Math.sqrt(n[c]),t[c]=Math.sqrt(t[c]);if(!o){for(c=b.length;--c>-1;)if(f[y])for(w=d[b[c]],nt=w.length-1,p=0;nt>p;p++)g=w[p+1].da/t[p]+w[p].da/n[p],i[p]=(i[p]||0)+g*g;for(c=i.length;--c>-1;)i[c]=Math.sqrt(i[c])}for(c=b.length,p=e?4:1;--c>-1;)y=b[c],w=d[y],a(w,u,e,o,f[y]),k&&(w.splice(0,p),w.splice(w.length-p,p));return d},y=function(n,t,i){t=t||"soft";var o,a,v,w,f,y,r,c,s,e,h,b={},l="cubic"===t?3:2,k="soft"===t,p=[];if(k&&i&&(n=[i].concat(n)),null==n||l+1>n.length)throw"invalid Bezier data";for(s in n[0])p.push(s);for(y=p.length;--y>-1;){for(s=p[y],b[s]=f=[],e=0,c=n.length,r=0;c>r;r++)o=null==i?n[r][s]:"string"==typeof(h=n[r][s])&&"="===h.charAt(1)?i[s]+Number(h.charAt(0)+h.substr(2)):Number(h),k&&r>1&&c-1>r&&(f[e++]=(o+f[e-2])/2),f[e++]=o;for(c=e-l+1,e=0,r=0;c>r;r+=l)o=f[r],a=f[r+1],v=f[r+2],w=2===l?0:f[r+3],f[e++]=h=3===l?new u(o,a,v,w):new u(o,(2*a+o)/3,(2*a+v)/3,v);f.length=e}return b},p=function(n,t,i){for(var e,s,o,a,v,y,r,u,h,f,c,p=1/i,l=n.length;--l>-1;)for(f=n[l],o=f.a,a=f.d-o,v=f.c-o,y=f.b-o,e=s=0,u=1;i>=u;u++)r=p*u,h=1-r,e=s-(s=(r*r*a+3*h*(r*v+h*y))*r),c=l*i+u-1,t[c]=(t[c]||0)+e*e},w=function(n,t){t=t>>0||6;var s,i,h,r,f=[],c=[],u=0,e=0,a=t-1,l=[],o=[];for(s in n)p(n[s],f,t);for(h=f.length,i=0;h>i;i++)u+=Math.sqrt(f[i]),r=i%t,o[r]=u,r===a&&(e+=u,r=i/t>>0,l[r]=o,c[r]=e,u=0,o=[]);return{length:e,lengths:c,segments:l}},r=window._gsDefine.plugin({propName:"bezier",priority:-1,API:2,global:!0,init:function(n,t,i){var c;this._target=n,t instanceof Array&&(t={values:t}),this._func={},this._round={},this._props=[],this._timeRes=null==t.timeResolution?6:parseInt(t.timeResolution,10);var r,a,f,e,l,s=t.values||[],h={},v=s[0],u=t.autoRotate||i.vars.orientToBezier;this._autoRotate=u?u instanceof Array?u:[["x","y","rotation",u===!0?0:Number(u)||0]]:null;for(r in v)this._props.push(r);for(f=this._props.length;--f>-1;)r=this._props[f],this._overwriteProps.push(r),a=this._func[r]="function"==typeof n[r],h[r]=a?n[r.indexOf("set")||"function"!=typeof n["get"+r.substr(3)]?r:"get"+r.substr(3)]():parseFloat(n[r]),l||h[r]!==s[0][r]&&(l=h);if((this._beziers="cubic"!==t.type&&"quadratic"!==t.type&&"soft"!==t.type?o(s,isNaN(t.curviness)?1:t.curviness,!1,"thruBasic"===t.type,t.correlate,l):y(s,t.type,h),this._segCount=this._beziers[r].length,this._timeRes)&&(c=w(this._beziers,this._timeRes),this._length=c.length,this._lengths=c.lengths,this._segments=c.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curSeg=this._segments[0],this._s2=this._curSeg[0],this._prec=1/this._curSeg.length),u=this._autoRotate)for(u[0]instanceof Array||(this._autoRotate=u=[u]),f=u.length;--f>-1;)for(e=0;3>e;e++)r=u[f][e],this._func[r]="function"==typeof n[r]?n[r.indexOf("set")||"function"!=typeof n["get"+r.substr(3)]?r:"get"+r.substr(3)]:!1;return!0},set:function(n){var c,d,t,e,i,r,o,p,a,u,l=this._segCount,g=this._func,w=this._target,f,b,k,v,y,nt,tt,s;if(this._timeRes){if(a=this._lengths,u=this._curSeg,n*=this._length,t=this._li,n>this._l2&&l-1>t){for(p=l-1;p>t&&n>=(this._l2=a[++t]););this._l1=a[t-1],this._li=t,this._curSeg=u=this._segments[t],this._s2=u[this._s1=this._si=0]}else if(this._l1>n&&t>0){for(;t>0&&(this._l1=a[--t])>=n;);0===t&&this._l1>n?this._l1=0:t++,this._l2=a[t],this._li=t,this._curSeg=u=this._segments[t],this._s1=u[(this._si=u.length-1)-1]||0,this._s2=u[this._si]}if(c=t,n-=this._l1,t=this._si,n>this._s2&&u.length-1>t){for(p=u.length-1;p>t&&n>=(this._s2=u[++t]););this._s1=u[t-1],this._si=t}else if(this._s1>n&&t>0){for(;t>0&&(this._s1=u[--t])>=n;);0===t&&this._s1>n?this._s1=0:t++,this._s2=u[t],this._si=t}r=(t+(n-this._s1)/(this._s2-this._s1))*this._prec}else c=0>n?0:n>=1?l-1:l*n>>0,r=(n-c*(1/l))*l;for(d=1-r,t=this._props.length;--t>-1;)e=this._props[t],i=this._beziers[e][c],o=(r*r*i.da+3*d*(r*i.ca+d*i.ba))*r+i.a,this._round[e]&&(o=o+(o>0?.5:-.5)>>0),g[e]?w[e](o):w[e]=o;if(this._autoRotate)for(s=this._autoRotate,t=s.length;--t>-1;)e=s[t][2],nt=s[t][3]||0,tt=s[t][4]===!0?1:h,i=this._beziers[s[t][0]],f=this._beziers[s[t][1]],i&&f&&(i=i[c],f=f[c],b=i.a+(i.b-i.a)*r,v=i.b+(i.c-i.b)*r,b+=(v-b)*r,v+=(i.c+(i.d-i.c)*r-v)*r,k=f.a+(f.b-f.a)*r,y=f.b+(f.c-f.b)*r,k+=(y-k)*r,y+=(f.c+(f.d-f.c)*r-y)*r,o=Math.atan2(y-k,v-b)*tt+nt,g[e]?w[e](o):w[e]=o)}}),s=r.prototype;r.bezierThrough=o,r.cubicToQuadratic=e,r._autoCSS=!0,r.quadraticToCubic=function(n,t,i){return new u(n,(2*t+n)/3,(2*t+i)/3,i)},r._cssRegister=function(){var t=window._gsDefine.globals.CSSPlugin;if(t){var n=t._internals,i=n._parseToProxy,u=n._setPluginRatio,f=n.CSSPropTween;n._registerComplexSpecialProp("bezier",{parser:function(n,t,e,o,s,h){t instanceof Array&&(t={values:t}),h=new r;var a,y,v,w=t.values,p=w.length-1,b=[],l={};if(0>p)return s;for(a=0;p>=a;a++)v=i(n,w[a],o,s,h,p!==a),b[a]=v.end;for(y in t)l[y]=t[y];return l.values=b,s=new f(n,"bezier",0,0,v.pt,2),s.data=v,s.plugin=h,s.setRatio=u,0===l.autoRotate&&(l.autoRotate=!0),!l.autoRotate||l.autoRotate instanceof Array||(a=l.autoRotate===!0?0:Number(l.autoRotate)*c,l.autoRotate=null!=v.end.left?[["left","top","rotation",a,!0]]:null!=v.end.x?[["x","y","rotation",a,!0]]:!1),l.autoRotate&&(o._transform||o._enableTransforms(!1),v.autoRotate=o._target._gsTransform),h._onInitTween(v.proxy,l,o._tween),s}})}},s._roundProps=function(n,t){for(var i=this._overwriteProps,r=i.length;--r>-1;)(n[i[r]]||n.bezier||n.bezierThrough)&&(this._round[i[r]]=t)},s._kill=function(n){var t,i,r=this._props;for(t in this._beziers)if(t in n)for(delete this._beziers[t],delete this._func[t],i=r.length;--i>-1;)r[i]===t&&r.splice(i,1);return this._super._kill.call(this,n)}}(),window._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(n,t){var nt,yt,u,pt,o=function(){n.call(this,"css"),this._overwriteProps.length=0},c={},i=o.prototype=new n("css"),er,si,or,sr,st;i.constructor=o,o.version="1.10.1",o.API=2,o.defaultTransformPerspective=0,i="px",o.suffixMap={top:i,right:i,bottom:i,left:i,width:i,height:i,fontSize:i,padding:i,margin:i,perspective:i};var wt,hi,bt,kt,ci,tt,ht=/(?:\d|\-\d|\.\d|\-\.\d)+/g,li=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,dt=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,ct=/[^\d\-\.]/g,gt=/(?:\d|\-|\+|=|#|\.)*/g,ni=/opacity *= *([^)]*)/,hr=/opacity:([^;]*)/,cr=/alpha\(opacity *=.+?\)/i,ai=/^(rgb|hsl)/,vi=/([A-Z])/g,yi=/-([a-z])/gi,lr=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,pi=function(n,t){return t.toUpperCase()},ar=/(?:Left|Right|Width)/i,vr=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,yr=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,l=/,(?=[^\)]*(?:\(|$))/gi,wi=Math.PI/180,p=180/Math.PI,lt={},b=document,it=b.createElement("div"),ti=b.createElement("img"),at=o._internals={_specialProps:c},v=navigator.userAgent,k=function(){var n,t=v.indexOf("Android"),i=b.createElement("div");return bt=-1!==v.indexOf("Safari")&&-1===v.indexOf("Chrome")&&(-1===t||Number(v.substr(t+8,1))>3),ci=bt&&6>Number(v.substr(v.indexOf("Version/")+8,1)),kt=-1!==v.indexOf("Firefox"),/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(v),tt=parseFloat(RegExp.$1),i.innerHTML="<a style='top:1px;opacity:.55;'>a<\/a>",n=i.getElementsByTagName("a")[0],n?/^0.55/.test(n.style.opacity):!1}(),bi=function(n){return ni.test("string"==typeof n?n:(n.currentStyle?n.currentStyle.filter:n.style.filter)||"")?parseFloat(RegExp.$1)/100:1},ki=function(n){window.console&&console.log(n)},di="",ii="",rt=function(n,t){t=t||it;var r,i,u=t.style;if(void 0!==u[n])return n;for(n=n.charAt(0).toUpperCase()+n.substr(1),r=["O","Moz","ms","Ms","Webkit"],i=5;--i>-1&&void 0===u[r[i]+n];);return i>=0?(ii=3===i?"ms":r[i],di="-"+ii.toLowerCase()+"-",ii+n):null},ut=b.defaultView?b.defaultView.getComputedStyle:function(){},r=o.getStyle=function(n,t,i,r,u){var f;return k||"opacity"!==t?(!r&&n.style[t]?f=n.style[t]:(i=i||ut(n,null))?(n=i.getPropertyValue(t.replace(vi,"-$1").toLowerCase()),f=n||i.length?n:i[t]):n.currentStyle&&(f=n.currentStyle[t]),null==u||f&&"none"!==f&&"auto"!==f&&"auto auto"!==f?f:u):bi(n)},a=function(n,t,i,r,u){if("px"===r||!r)return i;if("auto"===r||!i)return 0;var f,e=ar.test(t),o=n,s=it.style,h=0>i;return h&&(i=-i),"%"===r&&-1!==t.indexOf("border")?f=i/100*(e?n.clientWidth:n.clientHeight):(s.cssText="border-style:solid; border-width:0; position:absolute; line-height:0;","%"!==r&&o.appendChild?s[e?"borderLeftWidth":"borderTopWidth"]=i+r:(o=n.parentNode||b.body,s[e?"width":"height"]=i+r),o.appendChild(it),f=parseFloat(it[e?"offsetWidth":"offsetHeight"]),o.removeChild(it),0!==f||u||(f=a(n,t,i,r,!0))),h?-f:f},gi=function(n,t,i){if("absolute"!==r(n,"position",i))return 0;var u="left"===t?"Left":"Top",f=r(n,"margin"+u,i);return n["offset"+u]-(a(n,t,parseFloat(f),f.replace(gt,""))||0)},ft=function(n,t){var u,r,i={};if(t=t||ut(n,null))if(u=t.length)for(;--u>-1;)i[t[u].replace(yi,pi)]=t.getPropertyValue(t[u]);else for(u in t)i[u]=t[u];else if(t=n.currentStyle||n.style)for(u in t)i[u.replace(yi,pi)]=t[u];return k||(i.opacity=bi(n)),r=ot(n,t,!1),i.rotation=r.rotation*p,i.skewX=r.skewX*p,i.scaleX=r.scaleX,i.scaleY=r.scaleY,i.x=r.x,i.y=r.y,y&&(i.z=r.z,i.rotationX=r.rotationX*p,i.rotationY=r.rotationY*p,i.scaleZ=r.scaleZ),i.filters&&delete i.filters,i},ri=function(n,t,i,r,u){var e,f,o,s={},h=n.style;for(f in i)"cssText"!==f&&"length"!==f&&isNaN(f)&&(t[f]!==(e=i[f])||u&&u[f])&&-1===f.indexOf("Origin")&&("number"==typeof e||"string"==typeof e)&&(s[f]="auto"!==e||"left"!==f&&"top"!==f?""!==e&&"auto"!==e&&"none"!==e||"string"!=typeof t[f]||""===t[f].replace(ct,"")?e:0:gi(n,f),void 0!==h[f]&&(o=new oi(h,f,h[f],o)));if(r)for(f in r)"className"!==f&&(s[f]=r[f]);return{difs:s,firstMPT:o}},pr={width:["Left","Right"],height:["Top","Bottom"]},wr=["marginLeft","marginRight","marginTop","marginBottom"],br=function(n,t,i){var u=parseFloat("width"===t?n.offsetWidth:n.offsetHeight),f=pr[t],e=f.length;for(i=i||ut(n,null);--e>-1;)u-=parseFloat(r(n,"padding"+f[e],i,!0))||0,u-=parseFloat(r(n,"border"+f[e]+"Width",i,!0))||0;return u},ui=function(n,t){(null==n||""===n||"auto"===n||"auto auto"===n)&&(n="0 0");var u=n.split(" "),i=-1!==n.indexOf("left")?"0%":-1!==n.indexOf("right")?"100%":u[0],r=-1!==n.indexOf("top")?"0%":-1!==n.indexOf("bottom")?"100%":u[1];return null==r?r="0":"center"===r&&(r="50%"),("center"===i||isNaN(parseFloat(i))&&-1===(i+"").indexOf("="))&&(i="50%"),t&&(t.oxp=-1!==i.indexOf("%"),t.oyp=-1!==r.indexOf("%"),t.oxr="="===i.charAt(1),t.oyr="="===r.charAt(1),t.ox=parseFloat(i.replace(ct,"")),t.oy=parseFloat(r.replace(ct,""))),i+" "+r+(u.length>2?" "+u[2]:"")},nr=function(n,t){return"string"==typeof n&&"="===n.charAt(1)?parseInt(n.charAt(0)+"1",10)*parseFloat(n.substr(2)):parseFloat(n)-parseFloat(t)},w=function(n,t){return null==n?t:"string"==typeof n&&"="===n.charAt(1)?parseInt(n.charAt(0)+"1",10)*Number(n.substr(2))+t:parseFloat(n)},et=function(n,t,i,r){var f,o,u,e,s=1e-6;return null==n?e=t:"number"==typeof n?e=n*wi:(f=2*Math.PI,o=n.split("_"),u=Number(o[0].replace(ct,""))*(-1===n.indexOf("rad")?wi:1)-("="===n.charAt(1)?0:t),o.length&&(r&&(r[i]=t+u),-1!==n.indexOf("short")&&(u%=f,u!==u%(f/2)&&(u=0>u?u+f:u-f)),-1!==n.indexOf("_cw")&&0>u?u=(u+9999999999*f)%f-(0|u/f)*f:-1!==n.indexOf("ccw")&&u>0&&(u=(u-9999999999*f)%f-(0|u/f)*f)),e=t+u),s>e&&e>-s&&(e=0),e},d={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},fi=function(n,t,i){return n=0>n?n+1:n>1?n-1:n,0|255*(1>6*n?t+6*(i-t)*n:.5>n?i:2>3*n?t+6*(i-t)*(2/3-n):t)+.5},ei=function(n){var i,t,e,u,f,r;return n&&""!==n?"number"==typeof n?[n>>16,255&n>>8,255&n]:(","===n.charAt(n.length-1)&&(n=n.substr(0,n.length-1)),d[n]?d[n]:"#"===n.charAt(0)?(4===n.length&&(i=n.charAt(1),t=n.charAt(2),e=n.charAt(3),n="#"+i+i+t+t+e+e),n=parseInt(n.substr(1),16),[n>>16,255&n>>8,255&n]):"hsl"===n.substr(0,3)?(n=n.match(ht),u=Number(n[0])%360/360,f=Number(n[1])/100,r=Number(n[2])/100,t=.5>=r?r*(f+1):r+f-r*f,i=2*r-t,n.length>3&&(n[3]=Number(n[3])),n[0]=fi(u+1/3,i,t),n[1]=fi(u,i,t),n[2]=fi(u-1/3,i,t),n):(n=n.match(ht)||d.transparent,n[0]=Number(n[0]),n[1]=Number(n[1]),n[2]=Number(n[2]),n.length>3&&(n[3]=Number(n[3])),n)):d.black},g="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#.+?\\b";for(i in d)g+="|"+i+"\\b";g=RegExp(g+")","gi");var tr=function(n,t,i,r){if(null==n)return function(n){return n};var e,s=t?(n.match(g)||[""])[0]:"",f=n.split(s).join("").match(dt)||[],h=n.substr(0,n.indexOf(f[0])),c=")"===n.charAt(n.length-1)?")":"",o=-1!==n.indexOf(" ")?" ":",",u=f.length,a=u>0?f[0].replace(ht,""):"";return u?e=t?function(n){var p,v,t,y;if("number"==typeof n)n+=a;else if(r&&l.test(n)){for(y=n.replace(l,"|").split("|"),t=0;y.length>t;t++)y[t]=e(y[t]);return y.join(",")}if(p=(n.match(g)||[s])[0],v=n.split(p).join("").match(dt)||[],t=v.length,u>t--)for(;u>++t;)v[t]=i?v[0|(t-1)/2]:f[t];return h+v.join(o)+o+p+c+(-1!==n.indexOf("inset")?" inset":"")}:function(n){var s,v,t;if("number"==typeof n)n+=a;else if(r&&l.test(n)){for(v=n.replace(l,"|").split("|"),t=0;v.length>t;t++)v[t]=e(v[t]);return v.join(",")}if(s=n.match(dt)||[],t=s.length,u>t--)for(;u>++t;)s[t]=i?s[0|(t-1)/2]:f[t];return h+s.join(o)+c}:function(n){return n}},ir=function(n){return n=n.split(","),function(t,i,r,u,f,e,o){var s,h=(i+"").split(" ");for(o={},s=0;4>s;s++)o[n[s]]=h[s]=h[s]||h[(s-1)/2>>0];return u.parse(t,o,f,e)}},oi=(at._setPluginRatio=function(n){this.plugin.setRatio(n);for(var r,t,u,e,f=this.data,o=f.proxy,i=f.firstMPT,s=1e-6;i;)r=o[i.v],i.r?r=r>0?0|r+.5:0|r-.5:s>r&&r>-s&&(r=0),i.t[i.p]=r,i=i._next;if(f.autoRotate&&(f.autoRotate.rotation=o.rotation),1===n)for(i=f.firstMPT;i;){if(t=i.t,t.type){if(1===t.type){for(e=t.xs0+t.s+t.xs1,u=1;t.l>u;u++)e+=t["xn"+u]+t["xs"+(u+1)];t.e=e}}else t.e=t.s+t.xs0;i=i._next}},function(n,t,i,r,u){this.t=n,this.p=t,this.v=i,this.r=u,r&&(r._prev=this,this._next=r)}),e=(at._parseToProxy=function(n,t,i,r,u,f){var c,e,o,s,v,h=r,l={},a={},y=i._transform,p=lt;for(i._transform=null,lt=t,r=v=i.parse(n,t,r,u),lt=p,f&&(i._transform=y,h&&(h._prev=null,h._prev&&(h._prev._next=null)));r&&r!==h;){if(1>=r.type&&(e=r.p,a[e]=r.s+r.c,l[e]=r.s,f||(s=new oi(r,"s",e,s,r.r),r.c=0),1===r.type))for(c=r.l;--c>0;)o="xn"+c,e=r.p+"_"+o,a[e]=r.data[o],l[e]=r[o],f||(s=new oi(r,o,e,s,r.rxp[o]));r=r._next}return{proxy:l,end:a,firstMPT:s,pt:v}},at.CSSPropTween=function(n,t,i,r,u,f,o,s,h,c,l){this.t=n,this.p=t,this.s=i,this.c=r,this.n=o||t,n instanceof e||pt.push(this.n),this.r=s,this.type=f||0,h&&(this.pr=h,nt=!0),this.b=void 0===c?i:c,this.e=void 0===l?i+r:l,u&&(this._next=u,u._prev=this)}),vt=o.parseComplex=function(n,t,i,r,u,f,o,s,h,c){i=i||f||"",o=new e(n,t,0,0,o,c?2:1,null,!1,s,i,r),r+="";var y,w,b,a,v,ut,ft,it,g,et,nt,tt,p=i.split(", ").join(",").split(" "),rt=r.split(", ").join(",").split(" "),ot=p.length,st=wt!==!1;for((-1!==r.indexOf(",")||-1!==i.indexOf(","))&&(p=p.join(" ").replace(l,", ").split(" "),rt=rt.join(" ").replace(l,", ").split(" "),ot=p.length),ot!==rt.length&&(p=(f||"").split(" "),ot=p.length),o.plugin=h,o.setRatio=c,y=0;ot>y;y++)if(a=p[y],v=rt[y],it=parseFloat(a),it||0===it)o.appendXtra("",it,nr(v,it),v.replace(li,""),st&&-1!==v.indexOf("px"),!0);else if(u&&("#"===a.charAt(0)||d[a]||ai.test(a)))tt=","===v.charAt(v.length-1)?"),":")",a=ei(a),v=ei(v),g=a.length+v.length>6,g&&!k&&0===v[3]?(o["xs"+o.l]+=o.l?" transparent":"transparent",o.e=o.e.split(rt[y]).join("transparent")):(k||(g=!1),o.appendXtra(g?"rgba(":"rgb(",a[0],v[0]-a[0],",",!0,!0).appendXtra("",a[1],v[1]-a[1],",",!0).appendXtra("",a[2],v[2]-a[2],g?",":tt,!0),g&&(a=4>a.length?1:a[3],o.appendXtra("",a,(4>v.length?1:v[3])-a,tt,!1)));else if(ut=a.match(ht)){if(ft=v.match(li),!ft||ft.length!==ut.length)return o;for(b=0,w=0;ut.length>w;w++)nt=ut[w],et=a.indexOf(nt,b),o.appendXtra(a.substr(b,et-b),Number(nt),nr(ft[w],nt),"",st&&"px"===a.substr(et+nt.length,2),0===w),b=et+nt.length;o["xs"+o.l]+=a.substr(b)}else o["xs"+o.l]+=o.l?" "+a:a;if(-1!==r.indexOf("=")&&o.data){for(tt=o.xs0+o.data.s,y=1;o.l>y;y++)tt+=o["xs"+y]+o.data["xn"+y];o.e=tt+o["xs"+y]}return o.l||(o.type=-1,o.xs0=o.e),o.xfirst||o},s=9;for(i=e.prototype,i.l=i.pr=0;--s>0;)i["xn"+s]=0,i["xs"+s]="";i.xs0="",i._next=i._prev=i.xfirst=i.data=i.plugin=i.setRatio=i.rxp=null,i.appendXtra=function(n,t,i,r,u,f){var o=this,s=o.l;return o["xs"+s]+=f&&s?" "+n:n||"",i||0===s||o.plugin?(o.l++,o.type=o.setRatio?2:1,o["xs"+o.l]=r||"",s>0?(o.data["xn"+s]=t+i,o.rxp["xn"+s]=u,o["xn"+s]=t,o.plugin||(o.xfirst=new e(o,"xn"+s,t,i,o.xfirst||o,0,o.n,u,o.pr),o.xfirst.xs0=0),o):(o.data={s:t+i},o.rxp={},o.s=t,o.c=i,o.r=u,o)):(o["xs"+s]+=t+(r||""),o)};var rr=function(n,t){t=t||{},this.p=t.prefix?rt(n)||n:n,c[n]=c[this.p]=this,this.format=t.formatter||tr(t.defaultValue,t.color,t.collapsible,t.multi),t.parser&&(this.parse=t.parser),this.clrs=t.color,this.multi=t.multi,this.keyword=t.keyword,this.dflt=t.defaultValue,this.pr=t.priority||0},f=at._registerComplexSpecialProp=function(n,t,i){"object"!=typeof t&&(t={parser:i});var r,e,u=n.split(","),f=t.defaultValue;for(i=i||[f],r=0;u.length>r;r++)t.prefix=0===r&&t.prefix,t.defaultValue=i[r]||f,e=new rr(u[r],t)},kr=function(n){if(!c[n]){var t=n.charAt(0).toUpperCase()+n.substr(1)+"Plugin";f(n,{parser:function(n,i,r,u,f,e,o){var s=(window.GreenSockGlobals||window).com.greensock.plugins[t];return s?(s._cssRegister(),c[r].parse(n,i,r,u,f,e,o)):(ki("Error: "+t+" js file not loaded."),f)}})}};i=rr.prototype,i.parseComplex=function(n,t,i,r,u,f){var o,s,e,a,v,c,h=this.keyword;if(this.multi&&(l.test(i)||l.test(t)?(s=t.replace(l,"|").split("|"),e=i.replace(l,"|").split("|")):h&&(s=[t],e=[i])),e){for(a=e.length>s.length?e.length:s.length,o=0;a>o;o++)t=s[o]=s[o]||this.dflt,i=e[o]=e[o]||this.dflt,h&&(v=t.indexOf(h),c=i.indexOf(h),v!==c&&(i=-1===c?e:s,i[o]+=" "+h));t=s.join(", "),i=e.join(", ")}return vt(n,this.p,t,i,this.clrs,this.dflt,r,this.pr,u,f)},i.parse=function(n,t,i,f,e,o){return this.parseComplex(n.style,this.format(r(n,this.p,u,!1,this.dflt)),this.format(t),e,o)},o.registerSpecialProp=function(n,t,i){f(n,{parser:function(n,r,u,f,o,s){var h=new e(n,u,0,0,o,2,u,!1,i);return h.plugin=s,h.setRatio=t(n,r,f._tween,u),h},priority:i})};var ur="scaleX,scaleY,scaleZ,x,y,z,skewX,rotation,rotationX,rotationY,perspective".split(","),h=rt("transform"),dr=di+"transform",fr=rt("transformOrigin"),y=null!==rt("perspective"),ot=function(n,t,i,u){if(n._gsTransform&&i&&!u)return n._gsTransform;var a,e,d,st,ii,lt,at,it,g,ri,ui,vt,yt,f=i?n._gsTransform||{skewY:0}:{skewY:0},li=0>f.scaleX,ut=2e-5,v=1e5,ht=-Math.PI+.0001,ct=Math.PI-.0001,ai=y?parseFloat(r(n,fr,t,!1,"0 0 0").split(" ")[2])||f.zOrigin||0:0;for(h?a=r(n,dr,t,!0):n.currentStyle&&(a=n.currentStyle.filter.match(vr),a=a&&4===a.length?[a[0].substr(4),Number(a[2].substr(4)),Number(a[1].substr(4)),a[3].substr(4),f.x||0,f.y||0].join(","):""),e=(a||"").match(/(?:\-|\b)[\d\-\.e]+\b/gi)||[],d=e.length;--d>-1;)st=Number(e[d]),e[d]=(ii=st-(st|=0))?(0|ii*v+(0>ii?-.5:.5))/v+st:st;if(16===e.length){var ft=e[8],w=e[9],p=e[10],oi=e[12],si=e[13],et=e[14];if(f.zOrigin&&(et=-f.zOrigin,oi=ft*et-e[12],si=w*et-e[13],et=p*et+f.zOrigin-e[14]),!i||u||null==f.rotationX){var pt,ot,wt,s,c,fi,ei,rt=e[0],b=e[1],bt=e[2],vi=e[3],kt=e[4],k=e[5],nt=e[6],yi=e[7],tt=e[11],l=f.rotationX=Math.atan2(nt,p),hi=ht>l||l>ct;l&&(s=Math.cos(-l),c=Math.sin(-l),pt=kt*s+ft*c,ot=k*s+w*c,wt=nt*s+p*c,ft=kt*-c+ft*s,w=k*-c+w*s,p=nt*-c+p*s,tt=yi*-c+tt*s,kt=pt,k=ot,nt=wt),l=f.rotationY=Math.atan2(ft,rt),l&&(fi=ht>l||l>ct,s=Math.cos(-l),c=Math.sin(-l),pt=rt*s-ft*c,ot=b*s-w*c,wt=bt*s-p*c,w=b*c+w*s,p=bt*c+p*s,tt=vi*c+tt*s,rt=pt,b=ot,bt=wt),l=f.rotation=Math.atan2(b,k),l&&(ei=ht>l||l>ct,s=Math.cos(-l),c=Math.sin(-l),rt=rt*s+kt*c,ot=b*s+k*c,k=b*-c+k*s,nt=bt*-c+nt*s,b=ot),ei&&hi?f.rotation=f.rotationX=0:ei&&fi?f.rotation=f.rotationY=0:fi&&hi&&(f.rotationY=f.rotationX=0),f.scaleX=(0|Math.sqrt(rt*rt+b*b)*v+.5)/v,f.scaleY=(0|Math.sqrt(k*k+w*w)*v+.5)/v,f.scaleZ=(0|Math.sqrt(nt*nt+p*p)*v+.5)/v,f.skewX=0,f.perspective=tt?1/(0>tt?-tt:tt):0,f.x=oi,f.y=si,f.z=et}}else if(!(y&&!u&&e.length&&f.x===e[4]&&f.y===e[5]&&(f.rotationX||f.rotationY)||void 0!==f.x&&"none"===r(n,"display",t))){var ci=e.length>=6,dt=ci?e[0]:1,gt=e[1]||0,ni=e[2]||0,ti=ci?e[3]:1;f.x=e[4]||0,f.y=e[5]||0,lt=Math.sqrt(dt*dt+gt*gt),at=Math.sqrt(ti*ti+ni*ni),it=dt||gt?Math.atan2(gt,dt):f.rotation||0,g=ni||ti?Math.atan2(ni,ti)+it:f.skewX||0,ri=lt-Math.abs(f.scaleX||0),ui=at-Math.abs(f.scaleY||0),Math.abs(g)>Math.PI/2&&Math.abs(g)<1.5*Math.PI&&(li?(lt*=-1,g+=0>=it?Math.PI:-Math.PI,it+=0>=it?Math.PI:-Math.PI):(at*=-1,g+=0>=g?Math.PI:-Math.PI)),vt=(it-f.rotation)%Math.PI,yt=(g-f.skewX)%Math.PI,(void 0===f.skewX||ri>ut||-ut>ri||ui>ut||-ut>ui||vt>ht&&ct>vt&&!1|vt*v||yt>ht&&ct>yt&&!1|yt*v)&&(f.scaleX=lt,f.scaleY=at,f.rotation=it,f.skewX=g),y&&(f.rotationX=f.rotationY=f.z=0,f.perspective=parseFloat(o.defaultTransformPerspective)||0,f.scaleZ=1)}f.zOrigin=ai;for(d in f)ut>f[d]&&f[d]>-ut&&(f[d]=0);return i&&(n._gsTransform=f),f},gr=function(n){var c,p,t=this.data,g=-t.rotation,rt=g+t.skewX,e=1e5,o=(0|Math.cos(g)*t.scaleX*e)/e,u=(0|Math.sin(g)*t.scaleX*e)/e,f=(0|Math.sin(rt)*-t.scaleY*e)/e,h=(0|Math.cos(rt)*t.scaleY*e)/e,k=this.t.style,d=this.t.currentStyle,b,y,ft,et;if(d){p=u,u=-f,f=-p,c=d.filter,k.filter="";var i,r,l=this.t.offsetWidth,v=this.t.offsetHeight,ut="absolute"!==d.position,w="progid:DXImageTransform.Microsoft.Matrix(M11="+o+", M12="+u+", M21="+f+", M22="+h,nt=t.x,it=t.y;if(null!=t.ox&&(i=(t.oxp?.01*l*t.ox:t.ox)-l/2,r=(t.oyp?.01*v*t.oy:t.oy)-v/2,nt+=i-(i*o+r*u),it+=r-(i*f+r*h)),ut)i=l/2,r=v/2,w+=", Dx="+(i-(i*o+r*u)+nt)+", Dy="+(r-(i*f+r*h)+it)+")";else{for(et=8>tt?1:-1,i=t.ieOffsetX||0,r=t.ieOffsetY||0,t.ieOffsetX=Math.round((l-((0>o?-o:o)*l+(0>u?-u:u)*v))/2+nt),t.ieOffsetY=Math.round((v-((0>h?-h:h)*v+(0>f?-f:f)*l))/2+it),s=0;4>s;s++)y=wr[s],b=d[y],p=-1!==b.indexOf("px")?parseFloat(b):a(this.t,y,parseFloat(b),b.replace(gt,""))||0,ft=p!==t[y]?2>s?-t.ieOffsetX:-t.ieOffsetY:2>s?i-t.ieOffsetX:r-t.ieOffsetY,k[y]=(t[y]=Math.round(p-ft*(0===s||2===s?1:et)))+"px";w+=", sizingMethod='auto expand')"}k.filter=-1!==c.indexOf("DXImageTransform.Microsoft.Matrix(")?c.replace(yr,w):w+" "+c,(0===n||1===n)&&1===o&&0===u&&0===f&&1===h&&(ut&&-1===w.indexOf("Dx=0, Dy=0")||ni.test(c)&&100!==parseFloat(RegExp.$1)||-1===c.indexOf("gradient(")&&k.removeAttribute("filter"))}},nu=function(){var d,p,c,l,g,w,a,v,ft,nt,s,o,et,tt,y,rt,ot,n,i,u,f,ct,lt,at,ht,st,vt,t=this.data,ut=this.t.style,e=t.rotation,b=t.scaleX,k=t.scaleY,it=t.scaleZ;if(kt&&(ht=ut.top?"top":ut.bottom?"bottom":parseFloat(r(this.t,"top",null,!1))?"bottom":"top",f=r(this.t,ht,null,!1),st=parseFloat(f)||0,vt=f.substr((st+"").length)||"px",t._ffFix=!t._ffFix,ut[ht]=(t._ffFix?st+.05:st-.05)+vt),e||t.skewX)i=Math.cos(e),u=Math.sin(e),d=i,g=u,t.skewX&&(e-=t.skewX,i=Math.cos(e),u=Math.sin(e)),p=-u,w=i;else{if(!t.rotationY&&!t.rotationX&&1===it)return ut[h]="translate3d("+t.x+"px,"+t.y+"px,"+t.z+"px)"+(1!==b||1!==k?" scale("+b+","+k+")":""),void 0;d=w=1,p=g=0}s=1,c=l=a=v=ft=nt=o=et=tt=0,rt=t.perspective,y=rt?-1/rt:0,ot=t.zOrigin,n=1e5,e=t.rotationY,e&&(i=Math.cos(e),u=Math.sin(e),ft=s*-u,et=y*-u,c=d*u,a=g*u,s*=i,y*=i,d*=i,g*=i),e=t.rotationX,e&&(i=Math.cos(e),u=Math.sin(e),f=p*i+c*u,ct=w*i+a*u,lt=nt*i+s*u,at=tt*i+y*u,c=p*-u+c*i,a=w*-u+a*i,s=nt*-u+s*i,y=tt*-u+y*i,p=f,w=ct,nt=lt,tt=at),1!==it&&(c*=it,a*=it,s*=it,y*=it),1!==k&&(p*=k,w*=k,nt*=k,tt*=k),1!==b&&(d*=b,g*=b,ft*=b,et*=b),ot&&(o-=ot,l=c*o,v=a*o,o=s*o+ot),l=(f=(l+=t.x)-(l|=0))?(0|f*n+(0>f?-.5:.5))/n+l:l,v=(f=(v+=t.y)-(v|=0))?(0|f*n+(0>f?-.5:.5))/n+v:v,o=(f=(o+=t.z)-(o|=0))?(0|f*n+(0>f?-.5:.5))/n+o:o,ut[h]="matrix3d("+[(0|d*n)/n,(0|g*n)/n,(0|ft*n)/n,(0|et*n)/n,(0|p*n)/n,(0|w*n)/n,(0|nt*n)/n,(0|tt*n)/n,(0|c*n)/n,(0|a*n)/n,(0|s*n)/n,(0|y*n)/n,l,v,o,rt?1+-o/rt:1].join(",")+")"},tu=function(){var e,o,u,v,f,s,t,c,l,n=this.data,a=this.t,i=a.style;kt&&(e=i.top?"top":i.bottom?"bottom":parseFloat(r(a,"top",null,!1))?"bottom":"top",o=r(a,e,null,!1),u=parseFloat(o)||0,v=o.substr((u+"").length)||"px",n._ffFix=!n._ffFix,i[e]=(n._ffFix?u+.05:u-.05)+v),n.rotation||n.skewX?(f=n.rotation,s=f-n.skewX,t=1e5,c=n.scaleX*t,l=n.scaleY*t,i[h]="matrix("+(0|Math.cos(f)*c)/t+","+(0|Math.sin(f)*c)/t+","+(0|Math.sin(s)*-l)/t+","+(0|Math.cos(s)*l)/t+","+n.x+","+n.y+")"):i[h]="matrix("+n.scaleX+",0,0,"+n.scaleY+","+n.x+","+n.y+")"};for(f("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,transformPerspective,directionalRotation,parseTransform,force3D",{parser:function(n,t,i,f,o,s,c){if(f._transform)return o;var b,rt,k,v,tt,it,g,a=f._transform=ot(n,u,!0,c.parseTransform),d=n.style,ut=1e-6,ft=ur.length,l=c,nt={};if("string"==typeof l.transform&&h)k=d.cssText,d[h]=l.transform,d.display="block",b=ot(n,null,!1),d.cssText=k;else if("object"==typeof l){if(b={scaleX:w(null!=l.scaleX?l.scaleX:l.scale,a.scaleX),scaleY:w(null!=l.scaleY?l.scaleY:l.scale,a.scaleY),scaleZ:w(null!=l.scaleZ?l.scaleZ:l.scale,a.scaleZ),x:w(l.x,a.x),y:w(l.y,a.y),z:w(l.z,a.z),perspective:w(l.transformPerspective,a.perspective)},g=l.directionalRotation,null!=g)if("object"==typeof g)for(k in g)l[k]=g[k];else l.rotation=g;b.rotation=et("rotation"in l?l.rotation:"shortRotation"in l?l.shortRotation+"_short":"rotationZ"in l?l.rotationZ:a.rotation*p,a.rotation,"rotation",nt),y&&(b.rotationX=et("rotationX"in l?l.rotationX:"shortRotationX"in l?l.shortRotationX+"_short":a.rotationX*p||0,a.rotationX,"rotationX",nt),b.rotationY=et("rotationY"in l?l.rotationY:"shortRotationY"in l?l.shortRotationY+"_short":a.rotationY*p||0,a.rotationY,"rotationY",nt)),b.skewX=null==l.skewX?a.skewX:et(l.skewX,a.skewX),b.skewY=null==l.skewY?a.skewY:et(l.skewY,a.skewY),(rt=b.skewY-a.skewY)&&(b.skewX+=rt,b.rotation+=rt)}for(null!=l.force3D&&(a.force3D=l.force3D,it=!0),tt=a.force3D||a.z||a.rotationX||a.rotationY||b.z||b.rotationX||b.rotationY||b.perspective,tt||null==l.scale||(b.scaleZ=1);--ft>-1;)i=ur[ft],v=b[i]-a[i],(v>ut||-ut>v||null!=lt[i])&&(it=!0,o=new e(a,i,a[i],v,o),i in nt&&(o.e=nt[i]),o.xs0=0,o.plugin=s,f._overwriteProps.push(o.n));return v=l.transformOrigin,(v||y&&tt&&a.zOrigin)&&(h?(it=!0,i=fr,v=(v||r(n,i,u,!1,"50% 50%"))+"",o=new e(d,i,0,0,o,-1,"transformOrigin"),o.b=d[i],o.plugin=s,y?(k=a.zOrigin,v=v.split(" "),a.zOrigin=(v.length>2&&(0===k||"0px"!==v[2])?parseFloat(v[2]):k)||0,o.xs0=o.e=d[i]=v[0]+" "+(v[1]||"50%")+" 0px",o=new e(a,"zOrigin",0,0,o,-1,o.n),o.b=k,o.xs0=o.e=a.zOrigin):o.xs0=o.e=d[i]=v):ui(v+"",a)),it&&(f._transformType=tt||3===this._transformType?3:2),o},prefix:!0}),f("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),f("borderRadius",{defaultValue:"0px",parser:function(n,t,i,f,e){t=this.format(t);var tt,l,d,h,o,s,w,v,it,ut,c,y,g,b,k,nt,p=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],ft=n.style;for(it=parseFloat(n.offsetWidth),ut=parseFloat(n.offsetHeight),tt=t.split(" "),l=0;p.length>l;l++)this.p.indexOf("border")&&(p[l]=rt(p[l])),o=h=r(n,p[l],u,!1,"0px"),-1!==o.indexOf(" ")&&(h=o.split(" "),o=h[0],h=h[1]),s=d=tt[l],w=parseFloat(o),y=o.substr((w+"").length),g="="===s.charAt(1),g?(v=parseInt(s.charAt(0)+"1",10),s=s.substr(2),v*=parseFloat(s),c=s.substr((v+"").length-(0>v?1:0))||""):(v=parseFloat(s),c=s.substr((v+"").length)),""===c&&(c=yt[i]||y),c!==y&&(b=a(n,"borderLeft",w,y),k=a(n,"borderTop",w,y),"%"===c?(o=100*(b/it)+"%",h=100*(k/ut)+"%"):"em"===c?(nt=a(n,"borderLeft",1,"em"),o=b/nt+"em",h=k/nt+"em"):(o=b+"px",h=k+"px"),g&&(s=parseFloat(o)+v+c,d=parseFloat(h)+v+c)),e=vt(ft,p[l],o+" "+h,s+" "+d,!1,"0px",e);return e},prefix:!0,formatter:tr("0px 0px 0px 0px",!1,!0)}),f("backgroundPosition",{defaultValue:"0 0",parser:function(n,t,i,f,e,o){var c,b,h,v,y,l,p="background-position",a=u||ut(n,null),s=this.format((a?tt?a.getPropertyValue(p+"-x")+" "+a.getPropertyValue(p+"-y"):a.getPropertyValue(p):n.currentStyle.backgroundPositionX+" "+n.currentStyle.backgroundPositionY)||"0 0"),w=this.format(t);if(-1!==s.indexOf("%")!=(-1!==w.indexOf("%"))&&(l=r(n,"backgroundImage").replace(lr,""),l&&"none"!==l)){for(c=s.split(" "),b=w.split(" "),ti.setAttribute("src",l),h=2;--h>-1;)s=c[h],v=-1!==s.indexOf("%"),v!==(-1!==b[h].indexOf("%"))&&(y=0===h?n.offsetWidth-ti.width:n.offsetHeight-ti.height,c[h]=v?parseFloat(s)/100*y+"px":100*(parseFloat(s)/y)+"%");s=c.join(" ")}return this.parseComplex(n.style,s,w,e,o)},formatter:ui}),f("backgroundSize",{defaultValue:"0 0",formatter:ui}),f("perspective",{defaultValue:"0px",prefix:!0}),f("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),f("transformStyle",{prefix:!0}),f("backfaceVisibility",{prefix:!0}),f("margin",{parser:ir("marginTop,marginRight,marginBottom,marginLeft")}),f("padding",{parser:ir("paddingTop,paddingRight,paddingBottom,paddingLeft")}),f("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(n,t,i,f,e,o){var c,s,h;return 9>tt?(s=n.currentStyle,h=8>tt?" ":",",c="rect("+s.clipTop+h+s.clipRight+h+s.clipBottom+h+s.clipLeft+")",t=this.format(t).split(",").join(h)):(c=this.format(r(n,this.p,u,!1,this.dflt)),t=this.format(t)),this.parseComplex(n.style,c,t,e,o)}}),f("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),f("autoRound,strictUnits",{parser:function(n,t,i,r,u){return u}}),f("border",{defaultValue:"0px solid #000",parser:function(n,t,i,f,e,o){return this.parseComplex(n.style,this.format(r(n,"borderTopWidth",u,!1,"0px")+" "+r(n,"borderTopStyle",u,!1,"solid")+" "+r(n,"borderTopColor",u,!1,"#000")),this.format(t),e,o)},color:!0,formatter:function(n){var t=n.split(" ");return t[0]+" "+(t[1]||"solid")+" "+(n.match(g)||["#000"])[0]}}),f("float,cssFloat,styleFloat",{parser:function(n,t,i,r,u){var f=n.style,o="cssFloat"in f?"cssFloat":"styleFloat";return new e(f,o,0,0,u,-1,i,!1,0,f[o],t)}}),er=function(n){var f,i=this.t,t=i.filter||r(this.data,"filter"),u=0|this.s+this.c*n;100===u&&(-1===t.indexOf("atrix(")&&-1===t.indexOf("radient(")?(i.removeAttribute("filter"),f=!r(this.data,"filter")):(i.filter=t.replace(cr,""),f=!0)),f||(this.xn1&&(i.filter=t=t||"alpha(opacity="+u+")"),-1===t.indexOf("opacity")?0===u&&this.xn1||(i.filter+=" alpha(opacity="+u+")"):i.filter=t.replace(ni,"opacity="+u))},f("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(n,t,i,f,o,s){var h=parseFloat(r(n,"opacity",u,!1,"1")),c=n.style,l="autoAlpha"===i;return t=parseFloat(t),l&&1===h&&"hidden"===r(n,"visibility",u)&&0!==t&&(h=0),k?o=new e(c,"opacity",h,t-h,o):(o=new e(c,"opacity",100*h,100*(t-h),o),o.xn1=l?1:0,c.zoom=1,o.type=2,o.b="alpha(opacity="+o.s+")",o.e="alpha(opacity="+(o.s+o.c)+")",o.data=n,o.plugin=s,o.setRatio=er),l&&(o=new e(c,"visibility",0,0,o,-1,null,!1,0,0!==h?"visible":"hidden",0===t?"hidden":"visible"),o.xs0="visible",f._overwriteProps.push(o.n)),o}}),si=function(n,t){t&&(n.removeProperty?n.removeProperty(t.replace(vi,"-$1").toLowerCase()):n.removeAttribute(t))},or=function(n){if(this.t._gsClassPT=this,1===n||0===n){this.t.className=0===n?this.b:this.e;for(var t=this.data,i=this.t.style;t;)t.v?i[t.p]=t.v:si(i,t.p),t=t._next;1===n&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.className!==this.e&&(this.t.className=this.e)},f("className",{parser:function(n,t,i,r,f,o,s){var c,y,l,a,h,v=n.className,p=n.style.cssText;if(f=r._classNamePT=new e(n,i,0,0,f,2),f.setRatio=or,f.pr=-11,nt=!0,f.b=v,y=ft(n,u),l=n._gsClassPT){for(a={},h=l.data;h;)a[h.p]=1,h=h._next;l.setRatio(1)}return n._gsClassPT=f,f.e="="!==t.charAt(1)?t:v.replace(RegExp("\\s*\\b"+t.substr(2)+"\\b"),"")+("+"===t.charAt(0)?" "+t.substr(2):""),r._tween._duration&&(n.className=f.e,c=ri(n,y,ft(n),s,a),n.className=v,f.data=c.firstMPT,n.style.cssText=p,f=f.xfirst=r.parse(n,c.difs,f,o)),f}}),sr=function(n){if((1===n||0===n)&&this.data._totalTime===this.data._totalDuration){if("all"===this.e)return this.t.style.cssText="",this.t._gsTransform&&delete this.t._gsTransform,void 0;for(var t,u=this.t.style,i=this.e.split(","),r=i.length,f=c.transform.parse;--r>-1;)t=i[r],c[t]&&(t=c[t].parse===f?h:c[t].p),si(u,t)}},f("clearProps",{parser:function(n,t,i,r,u){return u=new e(n,i,0,0,u,2),u.setRatio=sr,u.e=t,u.pr=-10,u.data=r._tween,nt=!0,u}}),i="bezier,throwProps,physicsProps,physics2D".split(","),s=i.length;s--;)kr(i[s]);return i=o.prototype,i._firstPT=null,i._onInitTween=function(n,t,i){if(!n.nodeType)return!1;this._target=n,this._tween=i,this._vars=t,wt=t.autoRound,nt=!1,yt=t.suffixMap||o.suffixMap,u=ut(n,""),pt=this._overwriteProps;var l,s,f,a,b,d,p,v,w,c=n.style;if(hi&&""===c.zIndex&&(l=r(n,"zIndex",u),("auto"===l||""===l)&&(c.zIndex=0)),"string"==typeof t&&(a=c.cssText,l=ft(n,u),c.cssText=a+";"+t,l=ri(n,l,ft(n)).difs,!k&&hr.test(t)&&(l.opacity=parseFloat(RegExp.$1)),t=l,c.cssText=a),this._firstPT=s=this.parse(n,t,null),this._transformType){for(w=3===this._transformType,h?bt&&(hi=!0,""===c.zIndex&&(p=r(n,"zIndex",u),("auto"===p||""===p)&&(c.zIndex=0)),ci&&(c.WebkitBackfaceVisibility=this._vars.WebkitBackfaceVisibility||(w?"visible":"hidden"))):c.zoom=1,f=s;f&&f._next;)f=f._next;v=new e(n,"transform",0,0,null,2),this._linkCSSP(v,null,f),v.setRatio=w&&y?nu:h?tu:gr,v.data=this._transform||ot(n,u,!0),pt.pop()}if(nt){for(;s;){for(d=s._next,f=a;f&&f.pr>s.pr;)f=f._next;(s._prev=f?f._prev:b)?s._prev._next=s:a=s,(s._next=f)?f._prev=s:b=s,s=d}this._firstPT=a}return!0},i.parse=function(n,t,i,f){var o,d,h,l,y,s,p,v,w,b,k=n.style;for(o in t)s=t[o],d=c[o],d?i=d.parse(n,s,o,this,i,f,t):(y=r(n,o,u)+"",w="string"==typeof s,"color"===o||"fill"===o||"stroke"===o||-1!==o.indexOf("Color")||w&&ai.test(s)?(w||(s=ei(s),s=(s.length>3?"rgba(":"rgb(")+s.join(",")+")"),i=vt(k,o,y,s,!0,"transparent",i,0,f)):!w||-1===s.indexOf(" ")&&-1===s.indexOf(",")?(h=parseFloat(y),p=h||0===h?y.substr((h+"").length):"",(""===y||"auto"===y)&&("width"===o||"height"===o?(h=br(n,o,u),p="px"):"left"===o||"top"===o?(h=gi(n,o,u),p="px"):(h="opacity"!==o?0:1,p="")),b=w&&"="===s.charAt(1),b?(l=parseInt(s.charAt(0)+"1",10),s=s.substr(2),l*=parseFloat(s),v=s.replace(gt,"")):(l=parseFloat(s),v=w?s.substr((l+"").length)||"":""),""===v&&(v=yt[o]||p),s=l||0===l?(b?l+h:l)+v:t[o],p!==v&&""!==v&&(l||0===l)&&(h||0===h)&&(h=a(n,o,h,p),"%"===v?(h/=a(n,o,100,"%")/100,h>100&&(h=100),t.strictUnits!==!0&&(y=h+"%")):"em"===v?h/=a(n,o,1,"em"):(l=a(n,o,l,v),v="px"),b&&(l||0===l)&&(s=l+h+v)),b&&(l+=h),!h&&0!==h||!l&&0!==l?void 0!==k[o]&&(s||"NaN"!=s+""&&null!=s)?(i=new e(k,o,l||h||0,0,i,-1,o,!1,0,y,s),i.xs0="none"!==s||"display"!==o&&-1===o.indexOf("Style")?s:y):ki("invalid "+o+" tween value: "+t[o]):(i=new e(k,o,h,l-h,i,0,o,wt!==!1&&("px"===v||"zIndex"===o),0,y,s),i.xs0=v)):i=vt(k,o,y,s,!0,null,i,0,f)),f&&i&&!i.plugin&&(i.plugin=f);return i},i.setRatio=function(n){var i,u,r,t=this._firstPT,f=1e-6;if(1!==n||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(n||this._tween._time!==this._tween._duration&&0!==this._tween._time||this._tween._rawPrevTime===-1e-6)for(;t;){if(i=t.c*n+t.s,t.r?i=i>0?0|i+.5:0|i-.5:f>i&&i>-f&&(i=0),t.type)if(1===t.type)if(r=t.l,2===r)t.t[t.p]=t.xs0+i+t.xs1+t.xn1+t.xs2;else if(3===r)t.t[t.p]=t.xs0+i+t.xs1+t.xn1+t.xs2+t.xn2+t.xs3;else if(4===r)t.t[t.p]=t.xs0+i+t.xs1+t.xn1+t.xs2+t.xn2+t.xs3+t.xn3+t.xs4;else if(5===r)t.t[t.p]=t.xs0+i+t.xs1+t.xn1+t.xs2+t.xn2+t.xs3+t.xn3+t.xs4+t.xn4+t.xs5;else{for(u=t.xs0+i+t.xs1,r=1;t.l>r;r++)u+=t["xn"+r]+t["xs"+(r+1)];t.t[t.p]=u}else-1===t.type?t.t[t.p]=t.xs0:t.setRatio&&t.setRatio(n);else t.t[t.p]=i+t.xs0;t=t._next}else for(;t;)2!==t.type?t.t[t.p]=t.b:t.setRatio(n),t=t._next;else for(;t;)2!==t.type?t.t[t.p]=t.e:t.setRatio(n),t=t._next},i._enableTransforms=function(n){this._transformType=n||3===this._transformType?3:2,this._transform=this._transform||ot(this._target,u,!0)},i._linkCSSP=function(n,t,i,r){return n&&(t&&(t._prev=n),n._next&&(n._next._prev=n._prev),i?i._next=n:r||null!==this._firstPT||(this._firstPT=n),n._prev?n._prev._next=n._next:this._firstPT===n&&(this._firstPT=n._next),n._next=t,n._prev=i),n},i._kill=function(t){var i,f,r,u=t;if(t.autoAlpha||t.alpha){u={};for(f in t)u[f]=t[f];u.opacity=1,u.autoAlpha&&(u.visibility=1)}return t.className&&(i=this._classNamePT)&&(r=i.xfirst,r&&r._prev?this._linkCSSP(r._prev,i._next,r._prev._prev):r===this._firstPT&&(this._firstPT=i._next),i._next&&this._linkCSSP(i._next,i._next._next,r._prev),this._classNamePT=null),n.prototype._kill.call(this,u)},st=function(n,t,i){var e,u,r,f;if(n.slice)for(u=n.length;--u>-1;)st(n[u],t,i);else for(e=n.childNodes,u=e.length;--u>-1;)r=e[u],f=r.type,r.style&&(t.push(ft(r)),i&&i.push(r)),1!==f&&9!==f&&11!==f||!r.childNodes.length||st(r,t,i)},o.cascadeTo=function(n,i,r){var u,f,o,e=t.to(n,i,r),h=[e],c=[],l=[],s=[],a=t._internals.reservedProps;for(n=e._targets||e.target,st(n,c,s),e.render(i,!0),st(n,l),e.render(0,!0),e._enabled(!0),u=s.length;--u>-1;)if(f=ri(s[u],c[u],l[u]),f.firstMPT){f=f.difs;for(o in r)a[o]&&(f[o]=r[o]);h.push(t.to(s[u],i,f))}return h},n.activate([o]),o},!0),function(){var t=window._gsDefine.plugin({propName:"roundProps",priority:-1,API:2,init:function(n,t,i){return this._tween=i,!0}}),n=t.prototype;n._onInitAllProps=function(){for(var u,n,i,t=this._tween,f=t.vars.roundProps instanceof Array?t.vars.roundProps:t.vars.roundProps.split(","),r=f.length,e={},o=t._propLookup.roundProps;--r>-1;)e[f[r]]=1;for(r=f.length;--r>-1;)for(u=f[r],n=t._firstPT;n;)i=n._next,n.pg?n.t._roundProps(e,!0):n.n===u&&(this._add(n.t,u,n.s,n.c),i&&(i._prev=n._prev),n._prev?n._prev._next=i:t._firstPT===n&&(t._firstPT=i),n._next=n._prev=null,t._propLookup[u]=o),n=i;return!1},n._add=function(n,t,i,r){this._addTween(n,t,i,i+r,t,!0),this._overwriteProps.push(t)}}(),window._gsDefine.plugin({propName:"attr",API:2,init:function(n,t){var i;if("function"!=typeof n.setAttribute)return!1;this._target=n,this._proxy={};for(i in t)this._addTween(this._proxy,i,parseFloat(n.getAttribute(i)),t[i],i)&&this._overwriteProps.push(i);return!0},set:function(n){this._super.setRatio.call(this,n);for(var t,i=this._overwriteProps,r=i.length;--r>-1;)t=i[r],this._target.setAttribute(t,this._proxy[t]+"")}}),window._gsDefine.plugin({propName:"directionalRotation",API:2,init:function(n,t){"object"!=typeof t&&(t={rotation:t}),this.finals={};var r,f,e,s,i,o,u=t.useRadians===!0?2*Math.PI:360,h=1e-6;for(r in t)"useRadians"!==r&&(o=(t[r]+"").split("_"),f=o[0],e=parseFloat("function"!=typeof n[r]?n[r]:n[r.indexOf("set")||"function"!=typeof n["get"+r.substr(3)]?r:"get"+r.substr(3)]()),s=this.finals[r]="string"==typeof f&&"="===f.charAt(1)?e+parseInt(f.charAt(0)+"1",10)*Number(f.substr(2)):Number(f)||0,i=s-e,o.length&&(f=o.join("_"),-1!==f.indexOf("short")&&(i%=u,i!==i%(u/2)&&(i=0>i?i+u:i-u)),-1!==f.indexOf("_cw")&&0>i?i=(i+9999999999*u)%u-(0|i/u)*u:-1!==f.indexOf("ccw")&&i>0&&(i=(i-9999999999*u)%u-(0|i/u)*u)),(i>h||-h>i)&&(this._addTween(n,r,e,e+i,r),this._overwriteProps.push(r)));return!0},set:function(n){var t;if(1!==n)this._super.setRatio.call(this,n);else for(t=this._firstPT;t;)t.f?t.t[t.p](this.finals[t.p]):t.t[t.p]=this.finals[t.p],t=t._next}})._autoCSS=!0,window._gsDefine("easing.Back",["easing.Ease"],function(n){var f,u,h,v=window.GreenSockGlobals||window,p=v.com.greensock,s=2*Math.PI,y=Math.PI/2,r=p._class,t=function(t,i){var u=r("easing."+t,function(){},!0),f=u.prototype=new n;return f.constructor=u,f.getRatio=i,u},c=n.register||function(){},e=function(n,t,i,u){var f=r("easing."+n,{easeOut:new t,easeIn:new i,easeInOut:new u},!0);return c(f,n),f},l=function(n,t,i){this.t=n,this.v=t,i&&(this.next=i,i.prev=this,this.c=i.v-t,this.gap=i.t-n)},a=function(t,i){var u=r("easing."+t,function(n){this._p1=n||0===n?n:1.70158,this._p2=1.525*this._p1},!0),f=u.prototype=new n;return f.constructor=u,f.getRatio=i,f.config=function(n){return new u(n)},u},w=e("Back",a("BackOut",function(n){return(n-=1)*n*((this._p1+1)*n+this._p1)+1}),a("BackIn",function(n){return n*n*((this._p1+1)*n-this._p1)}),a("BackInOut",function(n){return 1>(n*=2)?.5*n*n*((this._p2+1)*n-this._p2):.5*((n-=2)*n*((this._p2+1)*n+this._p2)+2)})),o=r("easing.SlowMo",function(n,t,i){t=t||0===t?t:.7,null==n?n=.7:n>1&&(n=1),this._p=1!==n?t:0,this._p1=(1-n)/2,this._p2=n,this._p3=this._p1+this._p2,this._calcEnd=i===!0},!0),i=o.prototype=new n;return i.constructor=o,i.getRatio=function(n){var t=n+(.5-n)*this._p;return this._p1>n?this._calcEnd?1-(n=1-n/this._p1)*n:t-(n=1-n/this._p1)*n*n*n*t:n>this._p3?this._calcEnd?1-(n=(n-this._p3)/this._p1)*n:t+(n-t)*(n=(n-this._p3)/this._p1)*n*n*n:this._calcEnd?1:t},o.ease=new o(.7,.7),i.config=o.config=function(n,t,i){return new o(n,t,i)},f=r("easing.SteppedEase",function(n){n=n||1,this._p1=1/n,this._p2=n+1},!0),i=f.prototype=new n,i.constructor=f,i.getRatio=function(n){return 0>n?n=0:n>=1&&(n=.999999999),(this._p2*n>>0)*this._p1},i.config=f.config=function(n){return new f(n)},u=r("easing.RoughEase",function(t){t=t||{};for(var i,r,u,f,h,e,c=t.taper||"none",a=[],w=0,v=0|(t.points||20),o=v,y=t.randomize!==!1,b=t.clamp===!0,p=t.template instanceof n?t.template:null,s="number"==typeof t.strength?.4*t.strength:.4;--o>-1;)i=y?Math.random():1/v*o,r=p?p.getRatio(i):i,"none"===c?u=s:"out"===c?(f=1-i,u=f*f*s):"in"===c?u=i*i*s:.5>i?(f=2*i,u=.5*f*f*s):(f=2*(1-i),u=.5*f*f*s),y?r+=Math.random()*u-.5*u:o%2?r+=.5*u:r-=.5*u,b&&(r>1?r=1:0>r&&(r=0)),a[w++]={x:i,y:r};for(a.sort(function(n,t){return n.x-t.x}),e=new l(1,1,null),o=v;--o>-1;)h=a[o],e=new l(h.x,h.y,e);this._prev=new l(0,0,0!==e.t?e:e.next)},!0),i=u.prototype=new n,i.constructor=u,i.getRatio=function(n){var t=this._prev;if(n>t.t){for(;t.next&&n>=t.t;)t=t.next;t=t.prev}else for(;t.prev&&t.t>=n;)t=t.prev;return this._prev=t,t.v+(n-t.t)/t.gap*t.c},i.config=function(n){return new u(n)},u.ease=new u,e("Bounce",t("BounceOut",function(n){return 1/2.75>n?7.5625*n*n:2/2.75>n?7.5625*(n-=1.5/2.75)*n+.75:2.5/2.75>n?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375}),t("BounceIn",function(n){return 1/2.75>(n=1-n)?1-7.5625*n*n:2/2.75>n?1-(7.5625*(n-=1.5/2.75)*n+.75):2.5/2.75>n?1-(7.5625*(n-=2.25/2.75)*n+.9375):1-(7.5625*(n-=2.625/2.75)*n+.984375)}),t("BounceInOut",function(n){var t=.5>n;return n=t?1-2*n:2*n-1,n=1/2.75>n?7.5625*n*n:2/2.75>n?7.5625*(n-=1.5/2.75)*n+.75:2.5/2.75>n?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375,t?.5*(1-n):.5*n+.5})),e("Circ",t("CircOut",function(n){return Math.sqrt(1-(n-=1)*n)}),t("CircIn",function(n){return-(Math.sqrt(1-n*n)-1)}),t("CircInOut",function(n){return 1>(n*=2)?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)})),h=function(t,i,u){var f=r("easing."+t,function(n,t){this._p1=n||1,this._p2=t||u,this._p3=this._p2/s*(Math.asin(1/this._p1)||0)},!0),e=f.prototype=new n;return e.constructor=f,e.getRatio=i,e.config=function(n,t){return new f(n,t)},f},e("Elastic",h("ElasticOut",function(n){return this._p1*Math.pow(2,-10*n)*Math.sin((n-this._p3)*s/this._p2)+1},.3),h("ElasticIn",function(n){return-(this._p1*Math.pow(2,10*(n-=1))*Math.sin((n-this._p3)*s/this._p2))},.3),h("ElasticInOut",function(n){return 1>(n*=2)?-.5*this._p1*Math.pow(2,10*(n-=1))*Math.sin((n-this._p3)*s/this._p2):.5*this._p1*Math.pow(2,-10*(n-=1))*Math.sin((n-this._p3)*s/this._p2)+1},.45)),e("Expo",t("ExpoOut",function(n){return 1-Math.pow(2,-10*n)}),t("ExpoIn",function(n){return Math.pow(2,10*(n-1))-.001}),t("ExpoInOut",function(n){return 1>(n*=2)?.5*Math.pow(2,10*(n-1)):.5*(2-Math.pow(2,-10*(n-1)))})),e("Sine",t("SineOut",function(n){return Math.sin(n*y)}),t("SineIn",function(n){return-Math.cos(n*y)+1}),t("SineInOut",function(n){return-.5*(Math.cos(Math.PI*n)-1)})),r("easing.EaseLookup",{find:function(t){return n.map[t]}},!0),c(v.SlowMo,"SlowMo","ease,"),c(u,"RoughEase","ease,"),c(f,"SteppedEase","ease,"),w},!0)}),function(n){"use strict";var e,u,t,r,o,nt=n.GreenSockGlobals||n,st=function(n){for(var r=n.split("."),i=nt,t=0;r.length>t;t++)i[r[t]]=i=i[r[t]]||{};return i},l=st("com.greensock"),ht=[].slice,ct=function(){},w={},lt=function(t,i,r,u){this.sc=w[t]?w[t].sc:[],w[t]=this,this.gsClass=null,this.func=r;var f=[];this.check=function(e){for(var h,c,l,s,o=i.length,a=o;--o>-1;)(h=w[i[o]]||new lt(i[o],[])).gsClass?(f[o]=h.gsClass,a--):e&&h.sc.push(this);if(0===a&&r)for(c=("com.greensock."+t).split("."),l=c.pop(),s=st(c.join("."))[l]=this.gsClass=r.apply(r,f),u&&(nt[l]=s,"function"==typeof define&&define.amd?define((n.GreenSockAMDPath?n.GreenSockAMDPath+"/":"")+t.split(".").join("/"),[],function(){return s}):"undefined"!=typeof module&&module.exports&&(module.exports=s)),o=0;this.sc.length>o;o++)this.sc[o].check()},this.check(!0)},tt=n._gsDefine=function(n,t,i,r){return new lt(n,t,i,r)},h=l._class=function(n,t,i){return t=t||function(){},tt(n,[],function(){return t},i),t},ut,f,d,s;tt.globals=nt;var at=[0,0,1,1],it=[],c=h("easing.Ease",function(n,t,i,r){this._func=n,this._type=i||0,this._power=r||0,this._params=t?at.concat(t):at},!0),b=c.map={},rt=c.register=function(n,t,i,r){for(var o,u,e,f,s=t.split(","),c=s.length,a=(i||"easeIn,easeOut,easeInOut").split(",");--c>-1;)for(u=s[c],o=r?h("easing."+u,null,!0):l.easing[u]||{},e=a.length;--e>-1;)f=a[e],b[u+"."+f]=b[f+u]=o[f]=n.getRatio?n:n[f]||new n};for(t=c.prototype,t._calcEnd=!1,t.getRatio=function(n){if(this._func)return this._params[0]=n,this._func.apply(null,this._params);var i=this._type,r=this._power,t=1===i?1-n:2===i?n:.5>n?2*n:2*(1-n);return 1===r?t*=t:2===r?t*=t*t:3===r?t*=t*t*t:4===r&&(t*=t*t*t*t),1===i?1-t:2===i?t:.5>n?t/2:1-t/2},e=["Linear","Quad","Cubic","Quart","Quint,Strong"],u=e.length;--u>-1;)t=e[u]+",Power"+u,rt(new c(null,null,1,u),t,"easeOut",!0),rt(new c(null,null,2,u),t,"easeIn"+(0===u?",easeNone":"")),rt(new c(null,null,3,u),t,"easeInOut");b.linear=l.easing.Linear.easeIn,b.swing=l.easing.Quad.easeInOut,ut=h("events.EventDispatcher",function(n){this._listeners={},this._eventTarget=n||this}),t=ut.prototype,t.addEventListener=function(n,t,i,u,f){f=f||0;var h,s,e=this._listeners[n],c=0;for(null==e&&(this._listeners[n]=e=[]),s=e.length;--s>-1;)h=e[s],h.c===t&&h.s===i?e.splice(s,1):0===c&&f>h.pr&&(c=s+1);e.splice(c,0,{c:t,s:i,up:u,pr:f}),this!==r||o||r.wake()},t.removeEventListener=function(n,t){var i,r=this._listeners[n];if(r)for(i=r.length;--i>-1;)if(r[i].c===t)return r.splice(i,1),void 0},t.dispatchEvent=function(n){var r,i,t,u=this._listeners[n];if(u)for(r=u.length,i=this._eventTarget;--r>-1;)t=u[r],t.up?t.c.call(t.s||i,{type:n,target:i}):t.c.call(t.s||i)};var k=n.requestAnimationFrame,ft=n.cancelAnimationFrame,vt=Date.now||function(){return+new Date};for(e=["ms","moz","webkit","o"],u=e.length;--u>-1&&!k;)k=n[e[u]+"RequestAnimationFrame"],ft=n[e[u]+"CancelAnimationFrame"]||n[e[u]+"CancelRequestAnimationFrame"];h("Ticker",function(n,t){var f,c,u,s,h,i=this,a=vt(),e=t!==!1&&k,l=function(n){i.time=(vt()-a)/1e3;var r=u,t=i.time-h;(!f||t>0||n===!0)&&(i.frame++,h+=t+(t>=s?.004:s-t),i.dispatchEvent("tick")),n!==!0&&r===u&&(u=c(l))};ut.call(i),this.time=this.frame=0,this.tick=function(){l(!0)},this.sleep=function(){null!=u&&(e&&ft?ft(u):clearTimeout(u),c=ct,u=null,i===r&&(o=!1))},this.wake=function(){null!==u&&i.sleep(),c=0===f?ct:e&&k?k:function(n){return setTimeout(n,0|1e3*(h-i.time)+1)},i===r&&(o=!0),l(2)},this.fps=function(n){return arguments.length?(f=n,s=1/(f||60),h=this.time+s,i.wake(),void 0):f},this.useRAF=function(n){return arguments.length?(i.sleep(),e=n,i.fps(f),void 0):e},i.fps(n),setTimeout(function(){e&&(!u||5>i.frame)&&i.useRAF(!1)},1500)}),t=l.Ticker.prototype=new l.events.EventDispatcher,t.constructor=l.Ticker,f=h("core.Animation",function(n,t){if(this.vars=t||{},this._duration=this._totalDuration=n||0,this._delay=Number(this.vars.delay)||0,this._timeScale=1,this._active=this.vars.immediateRender===!0,this.data=this.vars.data,this._reversed=this.vars.reversed===!0,a){o||r.wake();var i=this.vars.useFrames?p:a;i.add(this,i._time),this.vars.paused&&this.paused(!0)}}),r=f.ticker=new l.Ticker,t=f.prototype,t._dirty=t._gc=t._initted=t._paused=!1,t._totalTime=t._time=0,t._rawPrevTime=-1,t._next=t._last=t._onUpdate=t._timeline=t.timeline=null,t._paused=!1,t.play=function(n,t){return arguments.length&&this.seek(n,t),this.reversed(!1).paused(!1)},t.pause=function(n,t){return arguments.length&&this.seek(n,t),this.paused(!0)},t.resume=function(n,t){return arguments.length&&this.seek(n,t),this.paused(!1)},t.seek=function(n,t){return this.totalTime(Number(n),t!==!1)},t.restart=function(n,t){return this.reversed(!1).paused(!1).totalTime(n?-this._delay:0,t!==!1,!0)},t.reverse=function(n,t){return arguments.length&&this.seek(n||this.totalDuration(),t),this.reversed(!0).paused(!1)},t.render=function(){},t.invalidate=function(){return this},t._enabled=function(n,t){return o||r.wake(),this._gc=!n,this._active=n&&!this._paused&&this._totalTime>0&&this._totalTime<this._totalDuration,t!==!0&&(n&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!n&&this.timeline&&this._timeline._remove(this,!0)),!1},t._kill=function(){return this._enabled(!1,!1)},t.kill=function(n,t){return this._kill(n,t),this},t._uncache=function(n){for(var t=n?this:this.timeline;t;)t._dirty=!0,t=t.timeline;return this},t._swapSelfInParams=function(n){for(var t=n.length,i=n.concat();--t>-1;)"{self}"===n[t]&&(i[t]=this);return i},t.eventCallback=function(n,t,i,r){if("on"===(n||"").substr(0,2)){var u=this.vars;if(1===arguments.length)return u[n];null==t?delete u[n]:(u[n]=t,u[n+"Params"]=i instanceof Array&&-1!==i.join("").indexOf("{self}")?this._swapSelfInParams(i):i,u[n+"Scope"]=r),"onUpdate"===n&&(this._onUpdate=t)}return this},t.delay=function(n){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+n-this._delay),this._delay=n,this):this._delay},t.duration=function(n){return arguments.length?(this._duration=this._totalDuration=n,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._time<this._duration&&0!==n&&this.totalTime(this._totalTime*(n/this._duration),!0),this):(this._dirty=!1,this._duration)},t.totalDuration=function(n){return this._dirty=!1,arguments.length?this.duration(n):this._totalDuration},t.time=function(n,t){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(n>this._duration?this._duration:n,t)):this._time},t.totalTime=function(n,t,i){if(o||r.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(0>n&&!i&&(n+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var f=this._totalDuration,u=this._timeline;if(n>f&&!i&&(n=f),this._startTime=(this._paused?this._pauseTime:u._time)-(this._reversed?f-n:n)/this._timeScale,u._dirty||this._uncache(!1),u._timeline)for(;u._timeline;)u._timeline._time!==(u._startTime+u._totalTime)/u._timeScale&&u.totalTime(u._totalTime,!0),u=u._timeline}this._gc&&this._enabled(!0,!1),this._totalTime!==n&&this.render(n,t,!1)}return this},t.startTime=function(n){return arguments.length?(n!==this._startTime&&(this._startTime=n,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,n-this._delay)),this):this._startTime},t.timeScale=function(n){if(!arguments.length)return this._timeScale;if(n=n||1e-6,this._timeline&&this._timeline.smoothChildTiming){var t=this._pauseTime,i=t||0===t?t:this._timeline.totalTime();this._startTime=i-(i-this._startTime)*this._timeScale/n}return this._timeScale=n,this._uncache(!1)},t.reversed=function(n){return arguments.length?(n!=this._reversed&&(this._reversed=n,this.totalTime(this._totalTime,!0)),this):this._reversed},t.paused=function(n){if(!arguments.length)return this._paused;if(n!=this._paused&&this._timeline){o||n||r.wake();var t=this._timeline,i=t.rawTime(),u=i-this._pauseTime;!n&&t.smoothChildTiming&&(this._startTime+=u,this._uncache(!1)),this._pauseTime=n?i:null,this._paused=n,this._active=!n&&this._totalTime>0&&this._totalTime<this._totalDuration,n||0===u||0===this._duration||this.render(t.smoothChildTiming?this._totalTime:(i-this._startTime)/this._timeScale,!0,!0)}return this._gc&&!n&&this._enabled(!0,!1),this},d=h("core.SimpleTimeline",function(n){f.call(this,0,n),this.autoRemoveChildren=this.smoothChildTiming=!0}),t=d.prototype=new f,t.constructor=d,t.kill()._gc=!1,t._first=t._last=null,t._sortChildren=!1,t.add=t.insert=function(n,t){var i,r;if(n._startTime=Number(t||0)+n._delay,n._paused&&this!==n._timeline&&(n._pauseTime=n._startTime+(this.rawTime()-n._startTime)/n._timeScale),n.timeline&&n.timeline._remove(n,!0),n.timeline=n._timeline=this,n._gc&&n._enabled(!0,!0),i=this._last,this._sortChildren)for(r=n._startTime;i&&i._startTime>r;)i=i._prev;return i?(n._next=i._next,i._next=n):(n._next=this._first,this._first=n),n._next?n._next._prev=n:this._last=n,n._prev=i,this._timeline&&this._uncache(!0),this},t._remove=function(n,t){return n.timeline===this&&(t||n._enabled(!1,!0),n.timeline=null,n._prev?n._prev._next=n._next:this._first===n&&(this._first=n._next),n._next?n._next._prev=n._prev:this._last===n&&(this._last=n._prev),this._timeline&&this._uncache(!0)),this},t.render=function(n,t,i){var u,r=this._first;for(this._totalTime=this._time=this._rawPrevTime=n;r;)u=r._next,(r._active||n>=r._startTime&&!r._paused)&&(r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(n-r._startTime)*r._timeScale,t,i):r.render((n-r._startTime)*r._timeScale,t,i)),r=u},t.rawTime=function(){return o||r.wake(),this._totalTime};var i=h("TweenLite",function(t,r,u){if(f.call(this,r,u),null==t)throw"Cannot tween a null target.";this.target=t="string"!=typeof t?t:i.selector(t)||t;var o,e,s,c=t.jquery||t.length&&t!==n&&t[0]&&(t[0]===n||t[0].nodeType&&t[0].style&&!t.nodeType),h=this.vars.overwrite;if(this._overwrite=h=null==h?pt[i.defaultOverwrite]:"number"==typeof h?h>>0:pt[h],(c||t instanceof Array)&&"number"!=typeof t[0])for(this._targets=s=ht.call(t,0),this._propLookup=[],this._siblings=[],o=0;s.length>o;o++)e=s[o],e?"string"!=typeof e?e.length&&e!==n&&e[0]&&(e[0]===n||e[0].nodeType&&e[0].style&&!e.nodeType)?(s.splice(o--,1),this._targets=s=s.concat(ht.call(e,0))):(this._siblings[o]=g(e,this,!1),1===h&&this._siblings[o].length>1&&ot(e,this,null,1,this._siblings[o])):(e=s[o--]=i.selector(e),"string"==typeof e&&s.splice(o+1,1)):s.splice(o--,1);else this._propLookup={},this._siblings=g(t,this,!1),1===h&&this._siblings.length>1&&ot(t,this,null,1,this._siblings);(this.vars.immediateRender||0===r&&0===this._delay&&this.vars.immediateRender!==!1)&&this.render(-this._delay,!1,!0)},!0),yt=function(t){return t.length&&t!==n&&t[0]&&(t[0]===n||t[0].nodeType&&t[0].style&&!t.nodeType)},bt=function(n,t){var i,r={};for(i in n)et[i]||i in t&&"x"!==i&&"y"!==i&&"width"!==i&&"height"!==i&&"className"!==i&&"border"!==i||!(!v[i]||v[i]&&v[i]._autoCSS)||(r[i]=n[i],delete n[i]);n.css=r};t=i.prototype=new f,t.constructor=i,t.kill()._gc=!1,t.ratio=0,t._firstPT=t._targets=t._overwrittenProps=t._startAt=null,t._notifyPluginsOfEnabled=!1,i.version="1.10.1",i.defaultEase=t._ease=new c(null,null,1,1),i.defaultOverwrite="auto",i.ticker=r,i.autoSleep=!0,i.selector=n.$||n.jQuery||function(t){return n.$?(i.selector=n.$,n.$(t)):n.document?n.document.getElementById("#"===t.charAt(0)?t.substr(1):t):t};var kt=i._internals={},v=i._plugins={},y=i._tweenLookup={},dt=0,et=kt.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1},pt={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},p=f._rootFramesTimeline=new d,a=f._rootTimeline=new d;a._startTime=r.time,p._startTime=r.frame,a._active=p._active=!0,f._updateRoot=function(){if(a.render((r.time-a._startTime)*a._timeScale,!1,!1),p.render((r.frame-p._startTime)*p._timeScale,!1,!1),!(r.frame%120)){var u,t,n;for(n in y){for(t=y[n].tweens,u=t.length;--u>-1;)t[u]._gc&&t.splice(u,1);0===t.length&&delete y[n]}if(n=a._first,(!n||n._paused)&&i.autoSleep&&!p._first&&1===r._listeners.tick.length){for(;n&&n._paused;)n=n._next;n||r.sleep()}}},r.addEventListener("tick",f._updateRoot);var g=function(n,t,i){var r,f,u=n._gsTweenID;if(y[u||(n._gsTweenID=u="t"+dt++)]||(y[u]={target:n,tweens:[]}),t&&(r=y[u].tweens,r[f=r.length]=t,i))for(;--f>-1;)r[f]===t&&r.splice(f,1);return y[u].tweens},ot=function(n,t,i,r,u){var e,o,f,v;if(1===r||r>=4){for(v=u.length,e=0;v>e;e++)if((f=u[e])!==t)f._gc||f._enabled(!1,!1)&&(o=!0);else if(5===r)break;return o}var s,h=t._startTime+1e-10,c=[],l=0,a=0===t._duration;for(e=u.length;--e>-1;)(f=u[e])===t||f._gc||f._paused||(f._timeline!==t._timeline?(s=s||wt(t,0,a),0===wt(f,s,a)&&(c[l++]=f)):h>=f._startTime&&f._startTime+f.totalDuration()/f._timeScale+1e-10>h&&((a||!f._initted)&&2e-10>=h-f._startTime||(c[l++]=f)));for(e=l;--e>-1;)f=c[e],2===r&&f._kill(i,n)&&(o=!0),(2!==r||!f._firstPT&&f._initted)&&f._enabled(!1,!1)&&(o=!0);return o},wt=function(n,t,i){for(var u=n._timeline,e=u._timeScale,r=n._startTime,f=1e-10;u._timeline;){if(r+=u._startTime,e*=u._timeScale,u._paused)return-100;u=u._timeline}return r/=e,r>t?r-t:i&&r===t||!n._initted&&2*f>r-t?f:(r+=n.totalDuration()/n._timeScale/e)>t+f?0:r-t-f};if(t._init=function(){var u,o,t,f,n=this.vars,e=this._overwrittenProps,s=this._duration,r=n.ease;if(n.startAt){if(n.startAt.overwrite=0,n.startAt.immediateRender=!0,this._startAt=i.to(this.target,0,n.startAt),n.immediateRender&&(this._startAt=null,0===this._time&&0!==s))return}else if(n.runBackwards&&n.immediateRender&&0!==s)if(this._startAt)this._startAt.render(-1,!0),this._startAt=null;else if(0===this._time){t={};for(f in n)et[f]&&"autoCSS"!==f||(t[f]=n[f]);return t.overwrite=0,this._startAt=i.to(this.target,0,t),void 0}if(this._ease=r?r instanceof c?n.easeParams instanceof Array?r.config.apply(r,n.easeParams):r:"function"==typeof r?new c(r,n.easeParams):b[r]||i.defaultEase:i.defaultEase,this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(u=this._targets.length;--u>-1;)this._initProps(this._targets[u],this._propLookup[u]={},this._siblings[u],e?e[u]:null)&&(o=!0);else o=this._initProps(this.target,this._propLookup,this._siblings,e);if(o&&i._onPluginEvent("_onInitAllProps",this),e&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),n.runBackwards)for(t=this._firstPT;t;)t.s+=t.c,t.c=-t.c,t=t._next;this._onUpdate=n.onUpdate,this._initted=!0},t._initProps=function(t,i,r,u){var f,h,c,s,e,o;if(null==t)return!1;this.vars.css||t.style&&t!==n&&t.nodeType&&v.css&&this.vars.autoCSS!==!1&&bt(this.vars,t);for(f in this.vars){if(o=this.vars[f],et[f])o instanceof Array&&-1!==o.join("").indexOf("{self}")&&(this.vars[f]=o=this._swapSelfInParams(o,this));else if(v[f]&&(s=new v[f])._onInitTween(t,this.vars[f],this)){for(this._firstPT=e={_next:this._firstPT,t:s,p:"setRatio",s:0,c:1,f:!0,n:f,pg:!0,pr:s._priority},h=s._overwriteProps.length;--h>-1;)i[s._overwriteProps[h]]=this._firstPT;(s._priority||s._onInitAllProps)&&(c=!0),(s._onDisable||s._onEnable)&&(this._notifyPluginsOfEnabled=!0)}else this._firstPT=i[f]=e={_next:this._firstPT,t:t,p:f,f:"function"==typeof t[f],n:f,pg:!1,pr:0},e.s=e.f?t[f.indexOf("set")||"function"!=typeof t["get"+f.substr(3)]?f:"get"+f.substr(3)]():parseFloat(t[f]),e.c="string"==typeof o&&"="===o.charAt(1)?parseInt(o.charAt(0)+"1",10)*Number(o.substr(2)):Number(o)-e.s||0;e&&e._next&&(e._next._prev=e)}return u&&this._kill(u,t)?this._initProps(t,i,r,u):this._overwrite>1&&this._firstPT&&r.length>1&&ot(t,this,i,this._overwrite,r)?(this._kill(i,t),this._initProps(t,i,r,u)):c},t.render=function(n,t,i){var e,f,u,s=this._time;if(n>=this._duration)this._totalTime=this._time=this._duration,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(e=!0,f="onComplete"),0===this._duration&&((0===n||0>this._rawPrevTime)&&this._rawPrevTime!==n&&(i=!0,this._rawPrevTime>0&&(f="onReverseComplete",t&&(n=-1))),this._rawPrevTime=n);else if(1e-7>n)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==s||0===this._duration&&this._rawPrevTime>0)&&(f="onReverseComplete",e=this._reversed),0>n?(this._active=!1,0===this._duration&&(this._rawPrevTime>=0&&(i=!0),this._rawPrevTime=n)):this._initted||(i=!0);else if(this._totalTime=this._time=n,this._easeType){var r=n/this._duration,o=this._easeType,h=this._easePower;(1===o||3===o&&r>=.5)&&(r=1-r),3===o&&(r*=2),1===h?r*=r:2===h?r*=r*r:3===h?r*=r*r*r:4===h&&(r*=r*r*r*r),this.ratio=1===o?1-r:2===o?r:.5>n/this._duration?r/2:1-r/2}else this.ratio=this._ease.getRatio(n/this._duration);if(this._time!==s||i){if(!this._initted){if(this._init(),!this._initted)return;this._time&&!e?this.ratio=this._ease.getRatio(this._time/this._duration):e&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(this._active||!this._paused&&this._time!==s&&n>=0&&(this._active=!0),0===s&&(this._startAt&&(n>=0?this._startAt.render(n,t,i):f||(f="_dummyGS")),this.vars.onStart&&(0!==this._time||0===this._duration)&&(t||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||it))),u=this._firstPT;u;)u.f?u.t[u.p](u.c*this.ratio+u.s):u.t[u.p]=u.c*this.ratio+u.s,u=u._next;this._onUpdate&&(0>n&&this._startAt&&this._startAt.render(n,t,i),t||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||it)),f&&(this._gc||(0>n&&this._startAt&&!this._onUpdate&&this._startAt.render(n,t,i),e&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!t&&this.vars[f]&&this.vars[f].apply(this.vars[f+"Scope"]||this,this.vars[f+"Params"]||it)))}},t._kill=function(n,t){if("all"===n&&(n=null),null==n&&(null==t||t===this.target))return this._enabled(!1,!1);t="string"!=typeof t?t||this._targets||this.target:i.selector(t)||t;var u,e,o,r,f,s,h,c;if((t instanceof Array||yt(t))&&"number"!=typeof t[0])for(u=t.length;--u>-1;)this._kill(n,t[u])&&(s=!0);else{if(this._targets){for(u=this._targets.length;--u>-1;)if(t===this._targets[u]){f=this._propLookup[u]||{},this._overwrittenProps=this._overwrittenProps||[],e=this._overwrittenProps[u]=n?this._overwrittenProps[u]||{}:"all";break}}else{if(t!==this.target)return!1;f=this._propLookup,e=this._overwrittenProps=n?this._overwrittenProps||{}:"all"}if(f){h=n||f,c=n!==e&&"all"!==e&&n!==f&&(null==n||n._tempKill!==!0);for(o in h)(r=f[o])&&(r.pg&&r.t._kill(h)&&(s=!0),r.pg&&0!==r.t._overwriteProps.length||(r._prev?r._prev._next=r._next:r===this._firstPT&&(this._firstPT=r._next),r._next&&(r._next._prev=r._prev),r._next=r._prev=null),delete f[o]),c&&(e[o]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return s},t.invalidate=function(){return this._notifyPluginsOfEnabled&&i._onPluginEvent("_onDisable",this),this._firstPT=null,this._overwrittenProps=null,this._onUpdate=null,this._startAt=null,this._initted=this._active=this._notifyPluginsOfEnabled=!1,this._propLookup=this._targets?{}:[],this},t._enabled=function(n,t){if(o||r.wake(),n&&this._gc){var u,e=this._targets;if(e)for(u=e.length;--u>-1;)this._siblings[u]=g(e[u],this,!0);else this._siblings=g(this.target,this,!0)}return f.prototype._enabled.call(this,n,t),this._notifyPluginsOfEnabled&&this._firstPT?i._onPluginEvent(n?"_onEnable":"_onDisable",this):!1},i.to=function(n,t,r){return new i(n,t,r)},i.from=function(n,t,r){return r.runBackwards=!0,r.immediateRender=0!=r.immediateRender,new i(n,t,r)},i.fromTo=function(n,t,r,u){return u.startAt=r,u.immediateRender=0!=u.immediateRender&&0!=r.immediateRender,new i(n,t,u)},i.delayedCall=function(n,t,r,u,f){return new i(t,0,{delay:n,onComplete:t,onCompleteParams:r,onCompleteScope:u,onReverseComplete:t,onReverseCompleteParams:r,onReverseCompleteScope:u,immediateRender:!1,useFrames:f,overwrite:0})},i.set=function(n,t){return new i(n,0,t)},i.killTweensOf=i.killDelayedCallsTo=function(n,t){for(var r=i.getTweensOf(n),u=r.length;--u>-1;)r[u]._kill(t,n)},i.getTweensOf=function(n){if(null==n)return[];n="string"!=typeof n?n:i.selector(n)||n;var t,r,u,f;if((n instanceof Array||yt(n))&&"number"!=typeof n[0]){for(t=n.length,r=[];--t>-1;)r=r.concat(i.getTweensOf(n[t]));for(t=r.length;--t>-1;)for(f=r[t],u=t;--u>-1;)f===r[u]&&r.splice(t,1)}else for(r=g(n).concat(),t=r.length;--t>-1;)r[t]._gc&&r.splice(t,1);return r},s=h("plugins.TweenPlugin",function(n,t){this._overwriteProps=(n||"").split(","),this._propName=this._overwriteProps[0],this._priority=t||0,this._super=s.prototype},!0),t=s.prototype,s.version="1.10.1",s.API=2,t._firstPT=null,t._addTween=function(n,t,i,r,u,f){var o,e;if(null!=r&&(o="number"==typeof r||"="!==r.charAt(1)?Number(r)-i:parseInt(r.charAt(0)+"1",10)*Number(r.substr(2))))return this._firstPT=e={_next:this._firstPT,t:n,p:t,s:i,c:o,f:"function"==typeof n[t],n:u||t,r:f},e._next&&(e._next._prev=e),e},t.setRatio=function(n){for(var i,t=this._firstPT,r=1e-6;t;)i=t.c*n+t.s,t.r?i=0|i+(i>0?.5:-.5):r>i&&i>-r&&(i=0),t.f?t.t[t.p](i):t.t[t.p]=i,t=t._next},t._kill=function(n){var i,r=this._overwriteProps,t=this._firstPT;if(null!=n[this._propName])this._overwriteProps=[];else for(i=r.length;--i>-1;)null!=n[r[i]]&&r.splice(i,1);for(;t;)null!=n[t.n]&&(t._next&&(t._next._prev=t._prev),t._prev?(t._prev._next=t._next,t._prev=null):this._firstPT===t&&(this._firstPT=t._next)),t=t._next;return!1},t._roundProps=function(n,t){for(var i=this._firstPT;i;)(n[this._propName]||null!=i.n&&n[i.n.split(this._propName+"_").join("")])&&(i.r=t),i=i._next},i._onPluginEvent=function(n,t){var f,r,u,e,o,i=t._firstPT;if("_onInitAllProps"===n){for(;i;){for(o=i._next,r=u;r&&r.pr>i.pr;)r=r._next;(i._prev=r?r._prev:e)?i._prev._next=i:u=i,(i._next=r)?r._prev=i:e=i,i=o}i=t._firstPT=u}for(;i;)i.pg&&"function"==typeof i.t[n]&&i.t[n]()&&(f=!0),i=i._next;return f},s.activate=function(n){for(var t=n.length;--t>-1;)n[t].API===s.API&&(v[(new n[t])._propName]=n[t]);return!0},tt.plugin=function(n){if(!(n&&n.propName&&n.init&&n.API))throw"illegal plugin definition.";var i,r=n.propName,e=n.priority||0,o=n.overwriteProps,u={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_roundProps",initAll:"_onInitAllProps"},t=h("plugins."+r.charAt(0).toUpperCase()+r.substr(1)+"Plugin",function(){s.call(this,r,e),this._overwriteProps=o||[]},n.global===!0),f=t.prototype=new s(r);f.constructor=t,t.API=n.API;for(i in u)"function"==typeof n[i]&&(f[u[i]]=n[i]);return t.version=n.version,s.activate([t]),t},e=n._gsQueue){for(u=0;e.length>u;u++)e[u]();for(t in w)w[t].func||n.console.log("GSAP encountered missing dependency: com.greensock."+t)}o=!1}(window),function(n){n.superscrollorama=function(t){function p(){s.scroll(function(){h=!0}),TweenLite.ticker.addEventListener("tick",w)}function l(n){var t={top:parseFloat(n.css("top")),left:parseFloat(n.css("left"))};return isNaN(t.top)&&(t.top=0),isNaN(t.left)&&(t.left=0),t}function w(){h&&(v(),h=!1)}function a(n){n.el.css("position",n.origPositioning.pos),n.el.css("top",n.origPositioning.top),n.el.css("left",n.origPositioning.left)}function f(n,t){n&&(n.totalProgress?n.totalProgress(t).pause():n.progress(t).pause())}function v(){for(var v=i.settings.isVertical?s.scrollTop()+r.y:s.scrollLeft()+r.x,ft=i.settings.triggerAtCenter?i.settings.isVertical?-s.height()/2:-s.width()/2:0,c,p,ct=e.length,it,g,et,t,y,ot,st,k,nt,rt,ut,d,ht,w=0;w<ct;w++){var h=e[w],b=h.target,tt=h.offset;typeof b=="string"?(o=n(b).offset(),c=i.settings.isVertical?o.top+r.y:o.left+r.x,tt+=ft):typeof b=="number"?c=b:n.isFunction(b)?c=b.call(this):(o=b.offset(),c=i.settings.isVertical?o.top+r.y:o.left+r.x,tt+=ft),c+=tt,p=c+h.dur,v>c&&v<p&&h.state!=="TWEENING"&&(h.state="TWEENING",h.start=c,h.end=p),v<c&&h.state!=="BEFORE"&&h.reverse?(i.settings.playoutAnimations||h.dur===0?h.tween.reverse():f(h.tween,0),h.state="BEFORE"):v>p&&h.state!=="AFTER"?(i.settings.playoutAnimations||h.dur===0?h.tween.play():f(h.tween,1),h.state="AFTER"):h.state==="TWEENING"&&(it=!1,h.tween.repeat&&(it=h.tween.repeat()===-1),it?(g=h.tween.totalProgress(),(h.playeadLastPosition===null||g===h.playeadLastPosition)&&(g===1?h.tween.yoyo()?h.tween.reverse():h.tween.totalProgress(0).play():h.tween.play()),h.playeadLastPosition=g):f(h.tween,(v-h.start)/(h.end-h.start)))}for(et=u.length,w=0;w<et;w++){if(t=u[w],y=t.el,t.state!=="PINNED"&&(t.state==="UPDATE"&&a(t),c=i.settings.isVertical?t.spacer.offset().top+r.y:t.spacer.offset().left+r.x,c+=t.offset,p=c+t.dur,ot=v>p&&t.state==="BEFORE"||v<c&&t.state==="AFTER",st=v>c&&v<p,st||ot)){if(t.pushFollowers&&y.css("position")==="static"&&y.css("position","relative"),t.origPositioning={pos:y.css("position"),top:t.spacer.css("top"),left:t.spacer.css("left")},t.fixedPositioning={top:i.settings.isVertical?-t.offset:t.spacer.offset().top,left:i.settings.isVertical?t.spacer.offset().left:-t.offset},y.css("position","fixed"),y.css("top",t.fixedPositioning.top),y.css("left",t.fixedPositioning.left),t.pinStart=c,t.pinEnd=p,t.pushFollowers?i.settings.isVertical?t.spacer.height(t.dur+y.outerHeight()):t.spacer.width(t.dur+y.outerWidth()):t.origPositioning.pos==="absolute"?(t.spacer.width(0),t.spacer.height(0)):i.settings.isVertical?t.spacer.height(y.outerHeight()):t.spacer.width(y.outerWidth()),t.state==="UPDATE")t.anim&&f(t.anim,0);else if(t.onPin)t.onPin(t.state==="AFTER");t.state="PINNED"}if(t.state==="PINNED")if(v<t.pinStart||v>t.pinEnd){if(k=v<t.pinStart,t.state=k?"BEFORE":"AFTER",f(t.anim,k?0:1),nt=k?0:t.dur,i.settings.isVertical?t.spacer.height(t.pushFollowers?nt:0):t.spacer.width(t.pushFollowers?nt:0),rt=t.fixedPositioning.top-l(t.el).top,ut=t.fixedPositioning.left-l(t.el).left,a(t),t.pushFollowers&&t.origPositioning.pos!=="absolute"||(t.origPositioning.pos==="relative"?(d=i.settings.isVertical?parseFloat(t.origPositioning.top):parseFloat(t.origPositioning.left),isNaN(d)&&(d=0)):d=i.settings.isVertical?t.spacer.position().top:t.spacer.position().left,ht=i.settings.isVertical?"top":"left",t.el.css(ht,d+nt)),rt!==0&&t.el.css("top",l(t.el).top-rt),ut!==0&&t.el.css("left",l(t.el).left-ut),t.onUnpin)t.onUnpin(!k)}else t.anim&&f(t.anim,(v-t.pinStart)/(t.pinEnd-t.pinStart))}}var i=this,y={isVertical:!0,triggerAtCenter:!0,playoutAnimations:!0,reverse:!0};i.settings=n.extend({},y,t);var s=n(window),e=[],u=[],r={x:0,y:0},h=!1,o,c;return i.addTween=function(n,t,r,u,f){return t.pause(),e.push({target:n,tween:t,offset:u||0,dur:r||0,reverse:typeof f!="undefined"?f:i.settings.reverse,state:"BEFORE"}),i},i.pin=function(t,r,f){var o,e;return typeof t=="string"&&(t=n(t)),o={offset:-140,pushFollowers:!0},f=n.extend({},o,f),f.anim&&f.anim.pause(),e=n('<div class="superscrollorama-pin-spacer"><\/div>'),e.css("position","relative"),e.css("top",t.css("top")),e.css("left",t.css("left")),t.before(e),u.push({el:t,state:"BEFORE",dur:r,offset:f.offset,anim:f.anim,pushFollowers:f.pushFollowers,spacer:e,onPin:f.onPin,onUnpin:f.onUnpin}),i},i.updatePin=function(t,r,f){var o,e;for(typeof t=="string"&&(t=n(t)),f.anim&&f.anim.pause(),o=u.length,c=0;c<o;c++)e=u[c],t.get(0)===e.el.get(0)&&(r&&(e.dur=r),f.anim&&(e.anim=f.anim),f.offset&&(e.offset=f.offset),typeof f.pushFollowers!="undefined"&&(e.pushFollowers=f.pushFollowers),f.onPin&&(e.onPin=f.onPin),f.onUnpin&&(e.onUnpin=f.onUnpin),(r||f.anim||f.offset)&&e.state==="PINNED"&&(e.state="UPDATE",v()));return i},i.removeTween=function(n,t,r){var s=e.length,u,o;for(typeof r=="undefined"&&(r=!0),u=0;u<s;u++)o=e[u],o.target!==n||t&&o.tween!==t||(e.splice(u,1),r&&f(o.tween,0),s--,u--);return i},i.removePin=function(t,r){var s,e,o;for(typeof t=="string"&&(t=n(t)),typeof r=="undefined"&&(r=!0),s=u.length,e=0;e<s;e++)o=u[e],o.el.is(t)&&(u.splice(e,1),r&&(o.spacer.remove(),a(o),o.anim&&f(o.anim,0)),s--,e--);return i},i.setScrollContainerOffset=function(n,t){return r.x=n,r.y=t,i},i.triggerCheckAnim=function(n){return n?v():h=!0,i},p(),i}}(jQuery),function(n){"use strict";n.fn.scrollTo=function(t){var i={offset:0,speed:"slow",override:null,easing:null};return t&&(t.override&&(t.override=override("#")!=-1?t.override:"#"+t.override),n.extend(i,t)),this.each(function(t,r){n(r).click(function(t){var u;n(r).attr("href").match(/#/)!==null&&(t.preventDefault(),u=i.override?i.override:n(r).attr("href"),history.pushState?(history.pushState(null,null,u),n("html,body").stop().animate({scrollTop:n(u).offset().top+i.offset},i.speed,i.easing)):n("html,body").stop().animate({scrollTop:n(u).offset().top+i.offset},i.speed,i.easing,function(){window.location.hash=u}))})})}}(jQuery),function(n){var t={upKey:38,downKey:40,easing:"linear",scrollTime:600,activeClass:"active",onPageChange:null};n.scrollIt=function(i){var r=n.extend(t,i),u=0,e=n("[data-scroll-index]:last").attr("data-scroll-index"),f=function(t){if(!(t<0)&&!(t>e)){var i=n("[data-scroll-index="+t+"]").offset().top;n("html,body").animate({scrollTop:i,easing:r.easing},r.scrollTime)}},o=function(t){if(r.onPageChange&&t&&u!=t)r.onPageChange(t);u=t,n("[data-scroll-nav]").removeClass(r.activeClass),n("[data-scroll-nav="+t+"]").addClass(r.activeClass)},s=function(){var t=n(window).scrollTop(),i=n("[data-scroll-index]").filter(function(i,r){return t>=n(r).offset().top&&t<n(r).offset().top+n(r).outerHeight()}),r=i.first().attr("data-scroll-index");o(r)};n(window).scroll(s).scroll(),n(window).keydown(function(n){var t=n.which;return t==r.upKey&&u>0?(f(parseInt(u)-1),!1):t==r.downKey&&u<e?(f(parseInt(u)+1),!1):!0}),n("[data-scroll-nav], [data-scroll-goto]").click(function(t){var i=n(t.target).attr("data-scroll-nav")||n(t.target).attr("data-scroll-goto");f(i)})}}(jQuery),function(n){function b(){var n=document.getElementsByTagName("script"),t=n[n.length-1].src.split("?")[0];return t.split("/").length>0?t.split("/").slice(0,-1).join("/")+"/":""}function tt(n,t,i){for(var r=0;r<t.length;r++)i(n,t[r])}var o=!1,c=!1,it=!1,p=5e3,w=2e3,u=0,t=n,k=b(),f,e;Array.prototype.forEach||(Array.prototype.forEach=function(n,t){for(var i=0,r=this.length;i<r;++i)n.call(t,this[i],i,this)});var d=["ms","moz","webkit","o"],i=window.requestAnimationFrame||!1,r=window.cancelAnimationFrame||!1;d.forEach(function(n){i||(i=window[n+"RequestAnimationFrame"]),r||(r=window[n+"CancelAnimationFrame"]||window[n+"CancelRequestAnimationFrame"])});var s=window.MutationObserver||window.WebKitMutationObserver||!1,v={zindex:"auto",cursoropacitymin:0,cursoropacitymax:1,cursorcolor:"#424242",cursorwidth:"5px",cursorborder:"1px solid #fff",cursorborderradius:"1px",scrollspeed:130,mousescrollstep:40,touchbehavior:!1,hwacceleration:!0,usetransition:!0,boxzoom:!1,dblclickzoom:!0,gesturezoom:!0,grabcursorenabled:!0,autohidemode:!0,background:"",iframeautoresize:!0,cursorminheight:32,preservenativescrolling:!0,railoffset:!1,bouncescroll:!0,spacebarenabled:!0,railpadding:{top:0,right:0,left:0,bottom:0},disableoutline:!0,horizrailenabled:!0,railalign:"right",railvalign:"bottom",enabletranslate3d:!0,enablemousewheel:!0,enablekeyboard:!0,smoothscroll:!0,sensitiverail:!0,enablemouselockapi:!0,cursorfixedheight:!1,directionlockdeadzone:6,hidecursordelay:400,nativeparentscrolling:!0,enablescrollonselection:!0,overflowx:!0,overflowy:!0,cursordragspeed:.3,rtlmode:!1,cursordragontouch:!1},l=!1,g=function(){function e(){var u=["-moz-grab","-webkit-grab","grab"],i,r;for((n.ischrome&&!n.ischrome22||n.isie)&&(u=[]),i=0;i<u.length;i++)if(r=u[i],t.style.cursor=r,t.style.cursor==r)return r;return"url(http://www.google.com/intl/en_ALL/mapfiles/openhand.cur),n-resize"}var t,n,r,i;if(l)return l;for(t=document.createElement("DIV"),n={},n.haspointerlock=("pointerLockElement"in document)||("mozPointerLockElement"in document)||("webkitPointerLockElement"in document),n.isopera=("opera"in window),n.isopera12=n.isopera&&("getUserMedia"in navigator),n.isie=("all"in document)&&("attachEvent"in t)&&!n.isopera,n.isieold=n.isie&&!("msInterpolationMode"in t.style),n.isie7=n.isie&&!n.isieold&&(!("documentMode"in document)||document.documentMode==7),n.isie8=n.isie&&("documentMode"in document)&&document.documentMode==8,n.isie9=n.isie&&("performance"in window)&&document.documentMode>=9,n.isie10=n.isie&&("performance"in window)&&document.documentMode>=10,n.isie9mobile=/iemobile.9/i.test(navigator.userAgent),n.isie9mobile&&(n.isie9=!1),n.isie7mobile=!n.isie9mobile&&n.isie7&&/iemobile/i.test(navigator.userAgent),n.ismozilla=("MozAppearance"in t.style),n.iswebkit=("WebkitAppearance"in t.style),n.ischrome=("chrome"in window),n.ischrome22=n.ischrome&&n.haspointerlock,n.ischrome26=n.ischrome&&("transition"in t.style),n.cantouch=("ontouchstart"in document.documentElement)||("ontouchstart"in window),n.hasmstouch=window.navigator.msPointerEnabled||!1,n.ismac=/^mac$/i.test(navigator.platform),n.isios=n.cantouch&&/iphone|ipad|ipod/i.test(navigator.platform),n.isios4=n.isios&&!("seal"in Object),n.isandroid=/android/i.test(navigator.userAgent),n.trstyle=!1,n.hastransform=!1,n.hastranslate3d=!1,n.transitionstyle=!1,n.hastransition=!1,n.transitionend=!1,r=["transform","msTransform","webkitTransform","MozTransform","OTransform"],i=0;i<r.length;i++)if(typeof t.style[r[i]]!="undefined"){n.trstyle=r[i];break}n.hastransform=n.trstyle!=!1,n.hastransform&&(t.style[n.trstyle]="translate3d(1px,2px,3px)",n.hastranslate3d=/translate3d/.test(t.style[n.trstyle])),n.transitionstyle=!1,n.prefixstyle="",n.transitionend=!1;var r=["transition","webkitTransition","MozTransition","OTransition","OTransition","msTransition","KhtmlTransition"],u=["","-webkit-","-moz-","-o-","-o","-ms-","-khtml-"],f=["transitionend","webkitTransitionEnd","transitionend","otransitionend","oTransitionEnd","msTransitionEnd","KhtmlTransitionEnd"];for(i=0;i<r.length;i++)if(r[i]in t.style){n.transitionstyle=r[i],n.prefixstyle=u[i],n.transitionend=f[i];break}return n.ischrome26&&(n.prefixstyle=u[1]),n.hastransition=n.transitionstyle,n.cursorgrabvalue=e(),n.hasmousecapture="setCapture"in t,n.hasMutationObserver=s!==!1,t=null,l=n,n},nt=function(n,f){function it(){var n=e.win,t;if("zIndex"in n)return n.zIndex();while(n.length>0){if(n[0].nodeType==9)return!1;if(t=n.css("zIndex"),!isNaN(t)&&t!=0)return parseInt(t);n=n.parent()}return!1}function l(n,t,i){var u=n.css(t),r=parseFloat(u),f;return isNaN(r)?(r=d[u]||0,f=r==3?i?e.win.outerHeight()-e.win.innerHeight():e.win.outerWidth()-e.win.innerWidth():1,e.isie8&&r&&(r+=1),f?r:0):r}function nt(n,t,i,r){e._bind(n,t,function(r){var r=r?r:window.event,u={original:r,target:r.target||r.srcElement,type:"wheel",deltaMode:r.type=="MozMousePixelScroll"?0:1,deltaX:0,deltaZ:0,preventDefault:function(){return r.preventDefault?r.preventDefault():r.returnValue=!1,!1},stopImmediatePropagation:function(){r.stopImmediatePropagation?r.stopImmediatePropagation():r.cancelBubble=!0}};return t=="mousewheel"?(u.deltaY=-1/40*r.wheelDelta,r.wheelDeltaX&&(u.deltaX=-1/40*r.wheelDeltaX)):u.deltaY=r.detail,i.call(n,u)},r)}function tt(n,t,i){var u,r,f=1;if(n.deltaMode==0?(u=-Math.floor(n.deltaX*(e.opt.mousescrollstep/54)),r=-Math.floor(n.deltaY*(e.opt.mousescrollstep/54))):n.deltaMode==1&&(u=-Math.floor(n.deltaX*e.opt.mousescrollstep),r=-Math.floor(n.deltaY*e.opt.mousescrollstep)),t&&u==0&&r&&(u=r,r=0),u&&(e.scrollmom&&e.scrollmom.stop(),e.lastdeltax+=u,e.debounced("mousewheelx",function(){var n=e.lastdeltax;e.lastdeltax=0,e.rail.drag||e.doScrollLeftBy(n)},120)),r){if(e.opt.nativeparentscrolling&&i&&!e.ispage&&!e.zoomactive)if(r<0){if(e.getScrollTop()>=e.page.maxh)return!0}else if(e.getScrollTop()<=0)return!0;e.scrollmom&&e.scrollmom.stop(),e.lastdeltay+=r,e.debounced("mousewheely",function(){var n=e.lastdeltay;e.lastdeltay=0,e.rail.drag||e.doScrollBy(n)},120)}return n.stopImmediatePropagation(),n.preventDefault()}var e=this,a,h,d;if(this.version="3.4.0",this.name="nicescroll",this.me=f,this.opt={doc:t("body"),win:!1},t.extend(this.opt,v),this.opt.snapbackspeed=80,n||!1)for(a in e.opt)typeof n[a]!="undefined"&&(e.opt[a]=n[a]);this.doc=e.opt.doc,this.iddoc=this.doc&&this.doc[0]?this.doc[0].id||"":"",this.ispage=/BODY|HTML/.test(e.opt.win?e.opt.win[0].nodeName:this.doc[0].nodeName),this.haswrapper=e.opt.win!==!1,this.win=e.opt.win||(this.ispage?t(window):this.doc),this.docscroll=this.ispage&&!this.haswrapper?t(window):this.win,this.body=t("body"),this.viewport=!1,this.isfixed=!1,this.iframe=!1,this.isiframe=this.doc[0].nodeName=="IFRAME"&&this.win[0].nodeName=="IFRAME",this.istextarea=this.win[0].nodeName=="TEXTAREA",this.forcescreen=!1,this.canshowonmouseevent=e.opt.autohidemode!="scroll",this.onmousedown=!1,this.onmouseup=!1,this.onmousemove=!1,this.onmousewheel=!1,this.onkeypress=!1,this.ongesturezoom=!1,this.onclick=!1,this.onscrollstart=!1,this.onscrollend=!1,this.onscrollcancel=!1,this.onzoomin=!1,this.onzoomout=!1,this.view=!1,this.page=!1,this.scroll={x:0,y:0},this.scrollratio={x:0,y:0},this.cursorheight=20,this.scrollvaluemax=0,this.checkrtlmode=!1,this.scrollrunning=!1,this.scrollmom=!1,this.observer=!1,this.observerremover=!1;do this.id="ascrail"+w++;while(document.getElementById(this.id));if(this.rail=!1,this.cursor=!1,this.cursorfreezed=!1,this.selectiondrag=!1,this.zoom=!1,this.zoomactive=!1,this.hasfocus=!1,this.hasmousefocus=!1,this.visibility=!0,this.locked=!1,this.hidden=!1,this.cursoractive=!0,this.overflowx=e.opt.overflowx,this.overflowy=e.opt.overflowy,this.nativescrollingarea=!1,this.checkarea=0,this.events=[],this.saved={},this.delaylist={},this.synclist={},this.lastdeltax=0,this.lastdeltay=0,this.detected=g(),h=t.extend({},this.detected),this.canhwscroll=h.hastransform&&e.opt.hwacceleration,this.ishwscroll=this.canhwscroll&&e.haswrapper,this.istouchcapable=!1,h.cantouch&&h.ischrome&&!h.isios&&!h.isandroid&&(this.istouchcapable=!0,h.cantouch=!1),h.cantouch&&h.ismozilla&&!h.isios&&(this.istouchcapable=!0,h.cantouch=!1),e.opt.enablemouselockapi||(h.hasmousecapture=!1,h.haspointerlock=!1),this.delayed=function(n,t,i,r){var u=e.delaylist[n],f=+new Date;if(!r&&u&&u.tt)return!1;u&&u.tt&&clearTimeout(u.tt),u&&u.last+i>f&&!u.tt?e.delaylist[n]={last:f+i,tt:setTimeout(function(){e.delaylist[n].tt=0,t.call()},i)}:u&&u.tt||(e.delaylist[n]={last:f,tt:0},setTimeout(function(){t.call()},0))},this.debounced=function(n,t,i){var r=e.delaylist[n],u=+new Date;e.delaylist[n]=t,r||setTimeout(function(){var t=e.delaylist[n];e.delaylist[n]=!1,t.call()},i)},this.synched=function(n,t){function r(){e.onsync||(i(function(){e.onsync=!1;for(n in e.synclist){var t=e.synclist[n];t&&t.call(e),e.synclist[n]=!1}}),e.onsync=!0)}return e.synclist[n]=t,r(),n},this.unsynched=function(n){e.synclist[n]&&(e.synclist[n]=!1)},this.css=function(n,t){for(var i in t)e.saved.css.push([n,i,n.css(i)]),n.css(i,t[i])},this.scrollTop=function(n){return typeof n=="undefined"?e.getScrollTop():e.setScrollTop(n)},this.scrollLeft=function(n){return typeof n=="undefined"?e.getScrollLeft():e.setScrollLeft(n)},BezierClass=function(n,t,i,r,u,f,e){this.st=n,this.ed=t,this.spd=i,this.p1=r||0,this.p2=u||1,this.p3=f||0,this.p4=e||1,this.ts=+new Date,this.df=this.ed-this.st},BezierClass.prototype={B2:function(n){return 3*n*n*(1-n)},B3:function(n){return 3*n*(1-n)*(1-n)},B4:function(n){return(1-n)*(1-n)*(1-n)},getNow:function(){var t=+new Date,n=1-(t-this.ts)/this.spd,i=this.B2(n)+this.B3(n)+this.B4(n);return n<0?this.ed:this.st+Math.round(this.df*i)},update:function(n,t){return this.st=this.getNow(),this.ed=n,this.spd=t,this.ts=+new Date,this.df=this.ed-this.st,this}},this.ishwscroll){this.doc.translate={x:0,y:0,tx:"0px",ty:"0px"},h.hastranslate3d&&h.isios&&this.doc.css("-webkit-backface-visibility","hidden");function b(){var n=e.doc.css(h.trstyle);return n&&n.substr(0,6)=="matrix"?n.replace(/^.*\((.*)\)$/g,"$1").replace(/px/g,"").split(/, +/):!1}this.getScrollTop=function(n){if(!n){var t=b();if(t)return t.length==16?-t[13]:-t[5];if(e.timerscroll&&e.timerscroll.bz)return e.timerscroll.bz.getNow()}return e.doc.translate.y},this.getScrollLeft=function(n){if(!n){var t=b();if(t)return t.length==16?-t[12]:-t[4];if(e.timerscroll&&e.timerscroll.bh)return e.timerscroll.bh.getNow()}return e.doc.translate.x},this.notifyScrollEvent=document.createEvent?function(n){var t=document.createEvent("UIEvents");t.initUIEvent("scroll",!1,!0,window,1),n.dispatchEvent(t)}:document.fireEvent?function(n){var t=document.createEventObject();n.fireEvent("onscroll"),t.cancelBubble=!0}:function(){},h.hastranslate3d&&e.opt.enabletranslate3d?(this.setScrollTop=function(n,t){e.doc.translate.y=n,e.doc.translate.ty=n*-1+"px",e.doc.css(h.trstyle,"translate3d("+e.doc.translate.tx+","+e.doc.translate.ty+",0px)"),t||e.notifyScrollEvent(e.win[0])},this.setScrollLeft=function(n,t){e.doc.translate.x=n,e.doc.translate.tx=n*-1+"px",e.doc.css(h.trstyle,"translate3d("+e.doc.translate.tx+","+e.doc.translate.ty+",0px)"),t||e.notifyScrollEvent(e.win[0])}):(this.setScrollTop=function(n,t){e.doc.translate.y=n,e.doc.translate.ty=n*-1+"px",e.doc.css(h.trstyle,"translate("+e.doc.translate.tx+","+e.doc.translate.ty+")"),t||e.notifyScrollEvent(e.win[0])},this.setScrollLeft=function(n,t){e.doc.translate.x=n,e.doc.translate.tx=n*-1+"px",e.doc.css(h.trstyle,"translate("+e.doc.translate.tx+","+e.doc.translate.ty+")"),t||e.notifyScrollEvent(e.win[0])})}else this.getScrollTop=function(){return e.docscroll.scrollTop()},this.setScrollTop=function(n){return e.docscroll.scrollTop(n)},this.getScrollLeft=function(){return e.docscroll.scrollLeft()},this.setScrollLeft=function(n){return e.docscroll.scrollLeft(n)};this.getTarget=function(n){return n?n.target?n.target:n.srcElement?n.srcElement:!1:!1},this.hasParent=function(n,t){if(!n)return!1;for(var i=n.target||n.srcElement||n||!1;i&&i.id!=t;)i=i.parentNode||!1;return i!==!1},d={thin:1,medium:3,thick:5},this.getOffset=function(){if(e.isfixed)return{top:parseFloat(e.win.css("top")),left:parseFloat(e.win.css("left"))};if(!e.viewport)return e.win.offset();var n=e.win.offset(),t=e.viewport.offset();return{top:n.top-t.top+e.viewport.scrollTop(),left:n.left-t.left+e.viewport.scrollLeft()}},this.updateScrollBar=function(n){var r,t,u,i;if(e.ishwscroll)e.rail.css({height:e.win.innerHeight()}),e.railh&&e.railh.css({width:e.win.innerWidth()});else if(r=e.getOffset(),t={top:r.top,left:r.left},t.top+=l(e.win,"border-top-width",!0),u=(e.win.outerWidth()-e.win.innerWidth())/2,t.left+=e.rail.align?e.win.outerWidth()-l(e.win,"border-right-width")-e.rail.width:l(e.win,"border-left-width"),i=e.opt.railoffset,i&&(i.top&&(t.top+=i.top),e.rail.align&&i.left&&(t.left+=i.left)),e.locked||e.rail.css({top:t.top,left:t.left,height:n?n.h:e.win.innerHeight()}),e.zoom&&e.zoom.css({top:t.top+1,left:e.rail.align==1?t.left-20:t.left+e.rail.width+4}),e.railh&&!e.locked){var t={top:r.top,left:r.left},f=e.railh.align?t.top+l(e.win,"border-top-width",!0)+e.win.innerHeight()-e.railh.height:t.top+l(e.win,"border-top-width",!0),o=t.left+l(e.win,"border-left-width");e.railh.css({top:f,left:o,width:e.railh.width})}},this.doRailClick=function(n,t,i){var r,f,u,o;e.locked||(e.cancelEvent(n),t?(r=i?e.doScrollLeft:e.doScrollTop,u=i?(n.pageX-e.railh.offset().left-e.cursorwidth/2)*e.scrollratio.x:(n.pageY-e.rail.offset().top-e.cursorheight/2)*e.scrollratio.y,r(u)):(r=i?e.doScrollLeftBy:e.doScrollBy,u=i?e.scroll.x:e.scroll.y,o=i?n.pageX-e.railh.offset().left:n.pageY-e.rail.offset().top,f=i?e.view.w:e.view.h,u>=o?r(f):r(-f)))},e.hasanimationframe=i,e.hascancelanimationframe=r,e.hasanimationframe?e.hascancelanimationframe||(r=function(){e.cancelAnimationFrame=!0}):(i=function(n){return setTimeout(n,15-Math.floor(+new Date/1e3)%16)},r=clearInterval),this.init=function(){var f,n,b,l,d,tt,a,r,i,v,w,g,nt,rt,ft,et;if(e.saved.css=[],h.isie7mobile)return!0;if(h.hasmstouch&&e.css(e.ispage?t("html"):e.win,{"-ms-touch-action":"none"}),e.zindex="auto",e.zindex=e.ispage||e.opt.zindex!="auto"?e.opt.zindex:it()||"auto",e.ispage||e.zindex=="auto"||e.zindex>u&&(u=e.zindex),e.isie&&e.zindex==0&&e.opt.zindex=="auto"&&(e.zindex="auto"),!e.ispage||!h.cantouch&&!h.isieold&&!h.isie9mobile){f=e.docscroll,e.ispage&&(f=e.haswrapper?e.win:e.doc),h.isie9mobile||e.css(f,{"overflow-y":"hidden"}),e.ispage&&h.isie7&&(e.doc[0].nodeName=="BODY"?e.css(t("html"),{"overflow-y":"hidden"}):e.doc[0].nodeName=="HTML"&&e.css(t("body"),{"overflow-y":"hidden"})),!h.isios||e.ispage||e.haswrapper||e.css(t("body"),{"-webkit-overflow-scrolling":"touch"}),r=t(document.createElement("div")),r.css({position:"relative",top:0,float:"right",width:e.opt.cursorwidth,height:"0px","background-color":e.opt.cursorcolor,border:e.opt.cursorborder,"background-clip":"padding-box","-webkit-border-radius":e.opt.cursorborderradius,"-moz-border-radius":e.opt.cursorborderradius,"border-radius":e.opt.cursorborderradius}),r.hborder=parseFloat(r.outerHeight()-r.innerHeight()),e.cursor=r,n=t(document.createElement("div")),n.attr("id",e.id),n.addClass("nicescroll-rails"),d=["left","right"];for(tt in d)l=d[tt],b=e.opt.railpadding[l],b?n.css("padding-"+l,b+"px"):e.opt.railpadding[l]=0;if(n.append(r),n.width=Math.max(parseFloat(e.opt.cursorwidth),r.outerWidth())+e.opt.railpadding.left+e.opt.railpadding.right,n.css({width:n.width+"px",zIndex:e.zindex,background:e.opt.background,cursor:"default"}),n.visibility=!0,n.scrollable=!0,n.align=e.opt.railalign=="left"?0:1,e.rail=n,e.rail.drag=!1,a=!1,!e.opt.boxzoom||e.ispage||h.isieold||(a=document.createElement("div"),e.bind(a,"click",e.doZoom),e.zoom=t(a),e.zoom.css({cursor:"pointer","z-index":e.zindex,backgroundImage:"url("+k+"zoomico.png)",height:18,width:18,backgroundPosition:"0px 0px"}),e.opt.dblclickzoom&&e.bind(e.win,"dblclick",e.doZoom),h.cantouch&&e.opt.gesturezoom&&(e.ongesturezoom=function(n){return n.scale>1.5&&e.doZoomIn(n),n.scale<.8&&e.doZoomOut(n),e.cancelEvent(n)},e.bind(e.win,"gestureend",e.ongesturezoom))),e.railh=!1,e.opt.horizrailenabled&&(e.css(f,{"overflow-x":"hidden"}),r=t(document.createElement("div")),r.css({position:"relative",top:0,height:e.opt.cursorwidth,width:"0px","background-color":e.opt.cursorcolor,border:e.opt.cursorborder,"background-clip":"padding-box","-webkit-border-radius":e.opt.cursorborderradius,"-moz-border-radius":e.opt.cursorborderradius,"border-radius":e.opt.cursorborderradius}),r.wborder=parseFloat(r.outerWidth()-r.innerWidth()),e.cursorh=r,i=t(document.createElement("div")),i.attr("id",e.id+"-hr"),i.addClass("nicescroll-rails"),i.height=Math.max(parseFloat(e.opt.cursorwidth),r.outerHeight()),i.css({height:i.height+"px",zIndex:e.zindex,background:e.opt.background}),i.append(r),i.visibility=!0,i.scrollable=!0,i.align=e.opt.railvalign=="top"?0:1,e.railh=i,e.railh.drag=!1),e.ispage?(n.css({position:"fixed",top:"0px",height:"100%"}),n.align?n.css({right:"0px"}):n.css({left:"0px"}),e.body.append(n),e.railh&&(i.css({position:"fixed",left:"0px",width:"100%"}),i.align?i.css({bottom:"0px"}):i.css({top:"0px"}),e.body.append(i))):(e.ishwscroll?(e.win.css("position")=="static"&&e.css(e.win,{position:"relative"}),v=e.win[0].nodeName=="HTML"?e.body:e.win,e.zoom&&(e.zoom.css({position:"absolute",top:1,right:0,"margin-right":n.width+4}),v.append(e.zoom)),n.css({position:"absolute",top:0}),n.align?n.css({right:0}):n.css({left:0}),v.append(n),i&&(i.css({position:"absolute",left:0,bottom:0}),i.align?i.css({bottom:0}):i.css({top:0}),v.append(i))):(e.isfixed=e.win.css("position")=="fixed",w=e.isfixed?"fixed":"absolute",e.isfixed||(e.viewport=e.getViewport(e.win[0])),e.viewport&&(e.body=e.viewport,/relative|absolute/.test(e.viewport.css("position"))==!1&&e.css(e.viewport,{position:"relative"})),n.css({position:w}),e.zoom&&e.zoom.css({position:w}),e.updateScrollBar(),e.body.append(n),e.zoom&&e.body.append(e.zoom),e.railh&&(i.css({position:w}),e.body.append(i))),h.isios&&e.css(e.win,{"-webkit-tap-highlight-color":"rgba(0,0,0,0)","-webkit-touch-callout":"none"}),h.isie&&e.opt.disableoutline&&e.win.attr("hideFocus","true"),h.iswebkit&&e.opt.disableoutline&&e.win.css({outline:"none"})),e.opt.autohidemode===!1?(e.autohidedom=!1,e.rail.css({opacity:e.opt.cursoropacitymax}),e.railh&&e.railh.css({opacity:e.opt.cursoropacitymax})):e.opt.autohidemode===!0?(e.autohidedom=t().add(e.rail),h.isie8&&(e.autohidedom=e.autohidedom.add(e.cursor)),e.railh&&(e.autohidedom=e.autohidedom.add(e.railh)),e.railh&&h.isie8&&(e.autohidedom=e.autohidedom.add(e.cursorh))):e.opt.autohidemode=="scroll"?(e.autohidedom=t().add(e.rail),e.railh&&(e.autohidedom=e.autohidedom.add(e.railh))):e.opt.autohidemode=="cursor"?(e.autohidedom=t().add(e.cursor),e.railh&&(e.autohidedom=e.autohidedom.add(e.cursorh))):e.opt.autohidemode=="hidden"&&(e.autohidedom=!1,e.hide(),e.locked=!1),h.isie9mobile)e.scrollmom=new y(e),e.onmangotouch=function(){var t=e.getScrollTop(),i=e.getScrollLeft(),l,h;if(t==e.scrollmom.lastscrolly&&i==e.scrollmom.lastscrollx)return!0;var u=t-e.mangotouch.sy,f=i-e.mangotouch.sx,c=Math.round(Math.sqrt(Math.pow(f,2)+Math.pow(u,2)));if(c!=0){var o=u<0?-1:1,s=f<0?-1:1,r=+new Date;e.mangotouch.lazy&&clearTimeout(e.mangotouch.lazy),r-e.mangotouch.tm>80||e.mangotouch.dry!=o||e.mangotouch.drx!=s?(e.scrollmom.stop(),e.scrollmom.reset(i,t),e.mangotouch.sy=t,e.mangotouch.ly=t,e.mangotouch.sx=i,e.mangotouch.lx=i,e.mangotouch.dry=o,e.mangotouch.drx=s,e.mangotouch.tm=r):(e.scrollmom.stop(),e.scrollmom.update(e.mangotouch.sx-f,e.mangotouch.sy-u),l=r-e.mangotouch.tm,e.mangotouch.tm=r,h=Math.max(Math.abs(e.mangotouch.ly-t),Math.abs(e.mangotouch.lx-i)),e.mangotouch.ly=t,e.mangotouch.lx=i,h>2&&(e.mangotouch.lazy=setTimeout(function(){e.mangotouch.lazy=!1,e.mangotouch.dry=0,e.mangotouch.drx=0,e.mangotouch.tm=0,e.scrollmom.doMomentum(30)},100)))}},g=e.getScrollTop(),nt=e.getScrollLeft(),e.mangotouch={sy:g,ly:g,dry:0,sx:nt,lx:nt,drx:0,lazy:!1,tm:0},e.bind(e.docscroll,"scroll",e.onmangotouch);else{if((h.cantouch||e.istouchcapable||e.opt.touchbehavior||h.hasmstouch)&&(e.scrollmom=new y(e),e.ontouchstart=function(n){var r,i,o,u,n,f,l;if(n.pointerType&&n.pointerType!=2)return!1;if(!e.locked){if(h.hasmstouch)for(i=n.target?n.target:!1;i;){if(r=t(i).getNiceScroll(),r.length>0&&r[0].me==e.me)break;if(r.length>0)return!1;if(i.nodeName=="DIV"&&i.id==e.id)break;i=i.parentNode?i.parentNode:!1}if(e.cancelScroll(),i=e.getTarget(n),i&&(o=/INPUT/i.test(i.nodeName)&&/range/i.test(i.type),o))return e.stopPropagation(n);if(!("clientX"in n)&&"changedTouches"in n&&(n.clientX=n.changedTouches[0].clientX,n.clientY=n.changedTouches[0].clientY),e.forcescreen&&(u=n,n={original:n.original?n.original:n},n.clientX=u.screenX,n.clientY=u.screenY),e.rail.drag={x:n.clientX,y:n.clientY,sx:e.scroll.x,sy:e.scroll.y,st:e.getScrollTop(),sl:e.getScrollLeft(),pt:2,dl:!1},e.ispage||!e.opt.directionlockdeadzone)e.rail.drag.dl="f";else{var s={w:t(window).width(),h:t(window).height()},c={w:Math.max(document.body.scrollWidth,document.documentElement.scrollWidth),h:Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},a=Math.max(0,c.h-s.h),v=Math.max(0,c.w-s.w);e.rail.drag.ck=!e.rail.scrollable&&e.railh.scrollable?a>0?"v":!1:e.rail.scrollable&&!e.railh.scrollable?v>0?"h":!1:!1,e.rail.drag.ck||(e.rail.drag.dl="f")}if(e.opt.touchbehavior&&e.isiframe&&h.isie&&(f=e.win.position(),e.rail.drag.x+=f.left,e.rail.drag.y+=f.top),e.hasmoving=!1,e.lastmouseup=!1,e.scrollmom.reset(n.clientX,n.clientY),!h.cantouch&&!this.istouchcapable&&!h.hasmstouch){if(l=i?/INPUT|SELECT|TEXTAREA/i.test(i.nodeName):!1,!l)return!e.ispage&&h.hasmousecapture&&i.setCapture(),e.cancelEvent(n);/SUBMIT|CANCEL|BUTTON/i.test(t(i).attr("type"))&&(pc={tg:i,click:!1},e.preventclick=pc)}}},e.ontouchend=function(n){return n.pointerType&&n.pointerType!=2?!1:e.rail.drag&&e.rail.drag.pt==2&&(e.scrollmom.doMomentum(),e.rail.drag=!1,e.hasmoving&&(e.hasmoving=!1,e.lastmouseup=!0,e.hideCursor(),h.hasmousecapture&&document.releaseCapture(),!h.cantouch))?e.cancelEvent(n):void 0},rt=e.opt.touchbehavior&&e.isiframe&&!h.hasmousecapture,e.ontouchmove=function(n,i){var w,a,n,v,y,u,s;if(n.pointerType&&n.pointerType!=2)return!1;if(e.rail.drag&&e.rail.drag.pt==2){if(h.cantouch&&typeof n.original=="undefined")return!0;e.hasmoving=!0,e.preventclick&&!e.preventclick.click&&(e.preventclick.click=e.preventclick.tg.onclick||!1,e.preventclick.tg.onclick=e.onpreventclick),w=t.extend({original:n},n),n=w,"changedTouches"in n&&(n.clientX=n.changedTouches[0].clientX,n.clientY=n.changedTouches[0].clientY),e.forcescreen&&(a=n,n={original:n.original?n.original:n},n.clientX=a.screenX,n.clientY=a.screenY),v=ofy=0,rt&&!i&&(y=e.win.position(),v=-y.left,ofy=-y.top);var f=n.clientY+ofy,b=f-e.rail.drag.y,o=n.clientX+v,k=o-e.rail.drag.x,r=e.rail.drag.st-b;if(e.ishwscroll&&e.opt.bouncescroll?r<0?r=Math.round(r/2):r>e.page.maxh&&(r=e.page.maxh+Math.round((r-e.page.maxh)/2)):(r<0&&(r=0,f=0),r>e.page.maxh&&(r=e.page.maxh,f=0)),e.railh&&e.railh.scrollable&&(u=e.rail.drag.sl-k,e.ishwscroll&&e.opt.bouncescroll?u<0?u=Math.round(u/2):u>e.page.maxw&&(u=e.page.maxw+Math.round((u-e.page.maxw)/2)):(u<0&&(u=0,o=0),u>e.page.maxw&&(u=e.page.maxw,o=0))),s=!1,e.rail.drag.dl)s=!0,e.rail.drag.dl=="v"?u=e.rail.drag.sl:e.rail.drag.dl=="h"&&(r=e.rail.drag.st);else{var c=Math.abs(b),p=Math.abs(k),l=e.opt.directionlockdeadzone;if(e.rail.drag.ck=="v"){if(c>l&&p<=c*.3)return e.rail.drag=!1,!0;p>l&&(e.rail.drag.dl="f",t("body").scrollTop(t("body").scrollTop()))}else if(e.rail.drag.ck=="h"){if(p>l&&c<=az*.3)return e.rail.drag=!1,!0;c>l&&(e.rail.drag.dl="f",t("body").scrollLeft(t("body").scrollLeft()))}}if(e.synched("touchmove",function(){e.rail.drag&&e.rail.drag.pt==2&&(e.prepareTransition&&e.prepareTransition(0),e.rail.scrollable&&e.setScrollTop(r),e.scrollmom.update(o,f),e.railh&&e.railh.scrollable?(e.setScrollLeft(u),e.showCursor(r,u)):e.showCursor(r),h.isie10&&document.selection.clear())}),h.ischrome&&e.istouchcapable&&(s=!1),s)return e.cancelEvent(n)}}),e.onmousedown=function(n,t){if(!e.rail.drag||e.rail.drag.pt==1){if(e.locked)return e.cancelEvent(n);e.cancelScroll(),e.rail.drag={x:n.clientX,y:n.clientY,sx:e.scroll.x,sy:e.scroll.y,pt:1,hr:!!t};var i=e.getTarget(n);return!e.ispage&&h.hasmousecapture&&i.setCapture(),e.isiframe&&!h.hasmousecapture&&(e.saved.csspointerevents=e.doc.css("pointer-events"),e.css(e.doc,{"pointer-events":"none"})),e.cancelEvent(n)}},e.onmouseup=function(n){if(e.rail.drag)return(h.hasmousecapture&&document.releaseCapture(),e.isiframe&&!h.hasmousecapture&&e.doc.css("pointer-events",e.saved.csspointerevents),e.rail.drag.pt!=1)?void 0:(e.rail.drag=!1,e.cancelEvent(n))},e.onmousemove=function(n){var t,i;if(e.rail.drag)return e.rail.drag.pt!=1?void 0:h.ischrome&&n.which==0?e.onmouseup(n):(e.cursorfreezed=!0,e.rail.drag.hr?(e.scroll.x=e.rail.drag.sx+(n.clientX-e.rail.drag.x),e.scroll.x<0&&(e.scroll.x=0),t=e.scrollvaluemaxw,e.scroll.x>t&&(e.scroll.x=t)):(e.scroll.y=e.rail.drag.sy+(n.clientY-e.rail.drag.y),e.scroll.y<0&&(e.scroll.y=0),i=e.scrollvaluemax,e.scroll.y>i&&(e.scroll.y=i)),e.synched("mousemove",function(){e.rail.drag&&e.rail.drag.pt==1&&(e.showCursor(),e.rail.drag.hr?e.doScrollLeft(Math.round(e.scroll.x*e.scrollratio.x),e.opt.cursordragspeed):e.doScrollTop(Math.round(e.scroll.y*e.scrollratio.y),e.opt.cursordragspeed))}),e.cancelEvent(n))},h.cantouch||e.opt.touchbehavior)e.onpreventclick=function(n){if(e.preventclick)return e.preventclick.tg.onclick=e.preventclick.click,e.preventclick=!1,e.cancelEvent(n)},e.bind(e.win,"mousedown",e.ontouchstart),e.onclick=h.isios?!1:function(n){return e.lastmouseup?(e.lastmouseup=!1,e.cancelEvent(n)):!0},e.opt.grabcursorenabled&&h.cursorgrabvalue&&(e.css(e.ispage?e.doc:e.win,{cursor:h.cursorgrabvalue}),e.css(e.rail,{cursor:h.cursorgrabvalue}));else{function ut(n){var i,t,r;e.selectiondrag&&(n&&(i=e.win.outerHeight(),t=n.pageY-e.selectiondrag.top,t>0&&t<i&&(t=0),t>=i&&(t-=i),e.selectiondrag.df=t),e.selectiondrag.df!=0)&&(r=-Math.floor(e.selectiondrag.df/6)*2,e.doScrollBy(r),e.debounced("doselectionscroll",function(){ut()},50))}e.hasTextSelected="getSelection"in document?function(){return document.getSelection().rangeCount>0}:"selection"in document?function(){return document.selection.type!="None"}:function(){return!1},e.onselectionstart=function(){e.ispage||(e.selectiondrag=e.win.offset())},e.onselectionend=function(){e.selectiondrag=!1},e.onselectiondrag=function(n){e.selectiondrag&&e.hasTextSelected()&&e.debounced("selectionscroll",function(){ut(n)},250)}}h.hasmstouch&&(e.css(e.rail,{"-ms-touch-action":"none"}),e.css(e.cursor,{"-ms-touch-action":"none"}),e.bind(e.win,"MSPointerDown",e.ontouchstart),e.bind(document,"MSPointerUp",e.ontouchend),e.bind(document,"MSPointerMove",e.ontouchmove),e.bind(e.cursor,"MSGestureHold",function(n){n.preventDefault()}),e.bind(e.cursor,"contextmenu",function(n){n.preventDefault()})),this.istouchcapable&&(e.bind(e.win,"touchstart",e.ontouchstart),e.bind(document,"touchend",e.ontouchend),e.bind(document,"touchcancel",e.ontouchend),e.bind(document,"touchmove",e.ontouchmove)),e.bind(e.cursor,"mousedown",e.onmousedown),e.bind(e.cursor,"mouseup",e.onmouseup),e.railh&&(e.bind(e.cursorh,"mousedown",function(n){e.onmousedown(n,!0)}),e.bind(e.cursorh,"mouseup",function(n){if(!e.rail.drag||e.rail.drag.pt!=2)return e.rail.drag=!1,e.hasmoving=!1,e.hideCursor(),h.hasmousecapture&&document.releaseCapture(),e.cancelEvent(n)})),!e.opt.cursordragontouch&&(h.cantouch||e.opt.touchbehavior)||(e.rail.css({cursor:"default"}),e.railh&&e.railh.css({cursor:"default"}),e.jqbind(e.rail,"mouseenter",function(){e.canshowonmouseevent&&e.showCursor(),e.rail.active=!0}),e.jqbind(e.rail,"mouseleave",function(){e.rail.active=!1,e.rail.drag||e.hideCursor()}),e.opt.sensitiverail&&(e.bind(e.rail,"click",function(n){e.doRailClick(n,!1,!1)}),e.bind(e.rail,"dblclick",function(n){e.doRailClick(n,!0,!1)}),e.bind(e.cursor,"click",function(n){e.cancelEvent(n)}),e.bind(e.cursor,"dblclick",function(n){e.cancelEvent(n)})),e.railh&&(e.jqbind(e.railh,"mouseenter",function(){e.canshowonmouseevent&&e.showCursor(),e.rail.active=!0}),e.jqbind(e.railh,"mouseleave",function(){e.rail.active=!1,e.rail.drag||e.hideCursor()}),e.opt.sensitiverail&&(e.bind(e.railh,"click",function(n){e.doRailClick(n,!1,!0)}),e.bind(e.railh,"dblclick",function(n){e.doRailClick(n,!0,!0)}),e.bind(e.cursorh,"click",function(n){e.cancelEvent(n)}),e.bind(e.cursorh,"dblclick",function(n){e.cancelEvent(n)})))),h.cantouch||e.opt.touchbehavior?(e.bind(h.hasmousecapture?e.win:document,"mouseup",e.ontouchend),e.bind(document,"mousemove",e.ontouchmove),e.onclick&&e.bind(document,"click",e.onclick),e.opt.cursordragontouch&&(e.bind(e.cursor,"mousedown",e.onmousedown),e.bind(e.cursor,"mousemove",e.onmousemove),e.cursorh&&e.bind(e.cursorh,"mousedown",e.onmousedown),e.cursorh&&e.bind(e.cursorh,"mousemove",e.onmousemove))):(e.bind(h.hasmousecapture?e.win:document,"mouseup",e.onmouseup),e.bind(document,"mousemove",e.onmousemove),e.onclick&&e.bind(document,"click",e.onclick),!e.ispage&&e.opt.enablescrollonselection&&(e.bind(e.win[0],"mousedown",e.onselectionstart),e.bind(document,"mouseup",e.onselectionend),e.bind(e.cursor,"mouseup",e.onselectionend),e.cursorh&&e.bind(e.cursorh,"mouseup",e.onselectionend),e.bind(document,"mousemove",e.onselectiondrag)),e.zoom&&(e.jqbind(e.zoom,"mouseenter",function(){e.canshowonmouseevent&&e.showCursor(),e.rail.active=!0}),e.jqbind(e.zoom,"mouseleave",function(){e.rail.active=!1,e.rail.drag||e.hideCursor()}))),e.opt.enablemousewheel&&(e.isiframe||e.bind(h.isie&&e.ispage?document:e.docscroll,"mousewheel",e.onmousewheel),e.bind(e.rail,"mousewheel",e.onmousewheel),e.railh&&e.bind(e.railh,"mousewheel",e.onmousewheelhr)),e.ispage||h.cantouch||/HTML|BODY/.test(e.win[0].nodeName)||(e.win.attr("tabindex")||e.win.attr({tabindex:p++}),e.jqbind(e.win,"focus",function(n){o=e.getTarget(n).id||!0,e.hasfocus=!0,e.canshowonmouseevent&&e.noticeCursor()}),e.jqbind(e.win,"blur",function(){o=!1,e.hasfocus=!1}),e.jqbind(e.win,"mouseenter",function(n){c=e.getTarget(n).id||!0,e.hasmousefocus=!0,e.canshowonmouseevent&&e.noticeCursor()}),e.jqbind(e.win,"mouseleave",function(){c=!1,e.hasmousefocus=!1}))}e.onkeypress=function(n){var i,f,u;if(e.locked&&e.page.maxh==0||(n=n?n:window.e,i=e.getTarget(n),i&&/INPUT|TEXTAREA|SELECT|OPTION/.test(i.nodeName)&&(f=i.getAttribute("type")||i.type||!1,!f||!/submit|button|cancel/i.tp)))return!0;if(e.hasfocus||e.hasmousefocus&&!o||e.ispage&&!o&&!c){if(u=n.keyCode,e.locked&&u!=27)return e.cancelEvent(n);var r=n.ctrlKey||!1,s=n.shiftKey||!1,t=!1;switch(u){case 38:case 63233:e.doScrollBy(72),t=!0;break;case 40:case 63235:e.doScrollBy(-72),t=!0;break;case 37:case 63232:e.railh&&(r?e.doScrollLeft(0):e.doScrollLeftBy(72),t=!0);break;case 39:case 63234:e.railh&&(r?e.doScrollLeft(e.page.maxw):e.doScrollLeftBy(-72),t=!0);break;case 33:case 63276:e.doScrollBy(e.view.h),t=!0;break;case 34:case 63277:e.doScrollBy(-e.view.h),t=!0;break;case 36:case 63273:e.railh&&r?e.doScrollPos(0,0):e.doScrollTo(0),t=!0;break;case 35:case 63275:e.railh&&r?e.doScrollPos(e.page.maxw,e.page.maxh):e.doScrollTo(e.page.maxh),t=!0;break;case 32:e.opt.spacebarenabled&&(s?e.doScrollBy(e.view.h):e.doScrollBy(-e.view.h),t=!0);break;case 27:e.zoomactive&&(e.doZoom(),t=!0)}if(t)return e.cancelEvent(n)}},e.opt.enablekeyboard&&e.bind(document,h.isopera&&!h.isopera12?"keypress":"keydown",e.onkeypress),e.bind(window,"resize",e.lazyResize),e.bind(window,"orientationchange",e.lazyResize),e.bind(window,"load",e.lazyResize),!h.ischrome||e.ispage||e.haswrapper||(ft=e.win.attr("style"),et=parseFloat(e.win.css("width"))+1,e.win.css("width",et),e.synched("chromefix",function(){e.win.attr("style",ft)})),e.onAttributeChange=function(){e.lazyResize(250)},e.ispage||e.haswrapper||(s!==!1?(e.observer=new s(function(n){n.forEach(e.onAttributeChange)}),e.observer.observe(e.win[0],{childList:!0,characterData:!1,attributes:!0,subtree:!1}),e.observerremover=new s(function(n){n.forEach(function(n){if(n.removedNodes.length>0)for(var t in n.removedNodes)if(n.removedNodes[t]==e.win[0])return e.remove()})}),e.observerremover.observe(e.win[0].parentNode,{childList:!0,characterData:!1,attributes:!1,subtree:!1})):(e.bind(e.win,h.isie&&!h.isie9?"propertychange":"DOMAttrModified",e.onAttributeChange),h.isie9&&e.win[0].attachEvent("onpropertychange",e.onAttributeChange),e.bind(e.win,"DOMNodeRemoved",function(n){n.target==e.win[0]&&e.remove()}))),!e.ispage&&e.opt.boxzoom&&e.bind(window,"resize",e.resizeZoom),e.istextarea&&e.bind(e.win,"mouseup",e.lazyResize),e.checkrtlmode=!0,e.lazyResize(30)}if(this.doc[0].nodeName=="IFRAME"){function ot(){var i,u,r;e.iframexd=!1;try{i="contentDocument"in this?this.contentDocument:this.contentWindow.document,u=i.domain}catch(n){e.iframexd=!0,i=!1}if(e.iframexd)return"console"in window&&console.log("NiceScroll error: policy restriced iframe"),!0;e.forcescreen=!0,e.isiframe&&(e.iframe={doc:t(i),html:e.doc.contents().find("html")[0],body:e.doc.contents().find("body")[0]},e.getContentSize=function(){return{w:Math.max(e.iframe.html.scrollWidth,e.iframe.body.scrollWidth),h:Math.max(e.iframe.html.scrollHeight,e.iframe.body.scrollHeight)}},e.docscroll=t(e.iframe.body)),h.isios||!e.opt.iframeautoresize||e.isiframe||(e.win.scrollTop(0),e.doc.height(""),r=Math.max(i.getElementsByTagName("html")[0].scrollHeight,i.body.scrollHeight),e.doc.height(r)),e.lazyResize(30),h.isie7&&e.css(t(e.iframe.html),{"overflow-y":"hidden"}),e.css(t(e.iframe.body),{"overflow-y":"hidden"}),"contentWindow"in this?e.bind(this.contentWindow,"scroll",e.onscroll):e.bind(i,"scroll",e.onscroll),e.opt.enablemousewheel&&e.bind(i,"mousewheel",e.onmousewheel),e.opt.enablekeyboard&&e.bind(i,h.isopera?"keypress":"keydown",e.onkeypress),(h.cantouch||e.opt.touchbehavior)&&(e.bind(i,"mousedown",e.onmousedown),e.bind(i,"mousemove",function(n){e.onmousemove(n,!0)}),e.opt.grabcursorenabled&&h.cursorgrabvalue&&e.css(t(i.body),{cursor:h.cursorgrabvalue})),e.bind(i,"mouseup",e.onmouseup),e.zoom&&(e.opt.dblclickzoom&&e.bind(i,"dblclick",e.doZoom),e.ongesturezoom&&e.bind(i,"gestureend",e.ongesturezoom))}this.doc[0].readyState&&this.doc[0].readyState=="complete"&&setTimeout(function(){ot.call(e.doc[0],!1)},500),e.bind(this.doc,"load",ot)}},this.showCursor=function(n,t){(e.cursortimeout&&(clearTimeout(e.cursortimeout),e.cursortimeout=0),e.rail)&&(e.autohidedom&&(e.autohidedom.stop().css({opacity:e.opt.cursoropacitymax}),e.cursoractive=!0),e.rail.drag&&e.rail.drag.pt==1||(typeof n!="undefined"&&n!==!1&&(e.scroll.y=Math.round(n*1/e.scrollratio.y)),typeof t!="undefined"&&(e.scroll.x=Math.round(t*1/e.scrollratio.x))),e.cursor.css({height:e.cursorheight,top:e.scroll.y}),e.cursorh&&(!e.rail.align&&e.rail.visibility?e.cursorh.css({width:e.cursorwidth,left:e.scroll.x+e.rail.width}):e.cursorh.css({width:e.cursorwidth,left:e.scroll.x}),e.cursoractive=!0),e.zoom&&e.zoom.stop().css({opacity:e.opt.cursoropacitymax}))},this.hideCursor=function(n){e.cursortimeout||e.rail&&e.autohidedom&&(e.cursortimeout=setTimeout(function(){e.rail.active&&e.showonmouseevent||(e.autohidedom.stop().animate({opacity:e.opt.cursoropacitymin}),e.zoom&&e.zoom.stop().animate({opacity:e.opt.cursoropacitymin}),e.cursoractive=!1),e.cursortimeout=0},n||e.opt.hidecursordelay))},this.noticeCursor=function(n,t,i){e.showCursor(t,i),e.rail.active||e.hideCursor(n)},this.getContentSize=e.ispage?function(){return{w:Math.max(document.body.scrollWidth,document.documentElement.scrollWidth),h:Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}}:e.haswrapper?function(){return{w:e.doc.outerWidth()+parseInt(e.win.css("paddingLeft"))+parseInt(e.win.css("paddingRight")),h:e.doc.outerHeight()+parseInt(e.win.css("paddingTop"))+parseInt(e.win.css("paddingBottom"))}}:function(){return{w:e.docscroll[0].scrollWidth,h:e.docscroll[0].scrollHeight}},this.onResize=function(n,t){var i,r,u;if(!e.win)return!1;if(!e.haswrapper&&!e.ispage){if(e.win.css("display")=="none")return e.visibility&&e.hideRail().hideRailHr(),!1;e.hidden||e.visibility||e.showRail().showRailHr()}var f=e.page.maxh,o=e.page.maxw,s={h:e.view.h,w:e.view.w};if(e.view={w:e.ispage?e.win.width():parseInt(e.win[0].clientWidth),h:e.ispage?e.win.height():parseInt(e.win[0].clientHeight)},e.page=t?t:e.getContentSize(),e.page.maxh=Math.max(0,e.page.h-e.view.h),e.page.maxw=Math.max(0,e.page.w-e.view.w),e.page.maxh==f&&e.page.maxw==o&&e.view.w==s.w){if(e.ispage||(i=e.win.offset(),e.lastposition&&(r=e.lastposition,r.top==i.top&&r.left==i.left)))return e;e.lastposition=i}return(e.page.maxh==0?(e.hideRail(),e.scrollvaluemax=0,e.scroll.y=0,e.scrollratio.y=0,e.cursorheight=0,e.setScrollTop(0),e.rail.scrollable=!1):e.rail.scrollable=!0,e.page.maxw==0?(e.hideRailHr(),e.scrollvaluemaxw=0,e.scroll.x=0,e.scrollratio.x=0,e.cursorwidth=0,e.setScrollLeft(0),e.railh.scrollable=!1):e.railh.scrollable=!0,e.locked=e.page.maxh==0&&e.page.maxw==0,e.locked)?(e.ispage||e.updateScrollBar(e.view),!1):(e.hidden||e.visibility?e.hidden||e.railh.visibility||e.showRailHr():e.showRail().showRailHr(),e.istextarea&&e.win.css("resize")&&e.win.css("resize")!="none"&&(e.view.h-=20),e.cursorheight=Math.min(e.view.h,Math.round(e.view.h*(e.view.h/e.page.h))),e.cursorheight=e.opt.cursorfixedheight?e.opt.cursorfixedheight:Math.max(e.opt.cursorminheight,e.cursorheight),e.cursorwidth=Math.min(e.view.w,Math.round(e.view.w*(e.view.w/e.page.w))),e.cursorwidth=e.opt.cursorfixedheight?e.opt.cursorfixedheight:Math.max(e.opt.cursorminheight,e.cursorwidth),e.scrollvaluemax=e.view.h-e.cursorheight-e.cursor.hborder,e.railh&&(e.railh.width=e.page.maxh>0?e.view.w-e.rail.width:e.view.w,e.scrollvaluemaxw=e.railh.width-e.cursorwidth-e.cursorh.wborder),e.checkrtlmode&&e.railh&&(e.checkrtlmode=!1,e.opt.rtlmode&&e.scroll.x==0&&e.setScrollLeft(e.page.maxw)),e.ispage||e.updateScrollBar(e.view),e.scrollratio={x:e.page.maxw/e.scrollvaluemaxw,y:e.page.maxh/e.scrollvaluemax},u=e.getScrollTop(),u>e.page.maxh?e.doScrollTop(e.page.maxh):(e.scroll.y=Math.round(e.getScrollTop()*(1/e.scrollratio.y)),e.scroll.x=Math.round(e.getScrollLeft()*(1/e.scrollratio.x)),e.cursoractive&&e.noticeCursor()),e.scroll.y&&e.getScrollTop()==0&&e.doScrollTo(Math.floor(e.scroll.y*e.scrollratio.y)),e)},this.resize=e.onResize,this.lazyResize=function(n){return n=isNaN(n)?30:n,e.delayed("resize",e.resize,n),e},this._bind=function(n,t,i,r){e.events.push({e:n,n:t,f:i,b:r,q:!1}),n.addEventListener?n.addEventListener(t,i,r||!1):n.attachEvent?n.attachEvent("on"+t,i):n["on"+t]=i},this.jqbind=function(n,i,r){e.events.push({e:n,n:i,f:r,q:!0}),t(n).bind(i,r)},this.bind=function(n,t,i,r){var u="jquery"in n?n[0]:n,f,o;t=="mousewheel"?"onwheel"in e.win?e._bind(u,"wheel",i,r||!1):(f=typeof document.onmousewheel!="undefined"?"mousewheel":"DOMMouseScroll",nt(u,f,i,r||!1),f=="DOMMouseScroll"&&nt(u,"MozMousePixelScroll",i,r||!1)):u.addEventListener?(h.cantouch&&/mouseup|mousedown|mousemove/.test(t)&&(o=t=="mousedown"?"touchstart":t=="mouseup"?"touchend":"touchmove",e._bind(u,o,function(n){var t;n.touches?n.touches.length<2&&(t=n.touches.length?n.touches[0]:n,t.original=n,i.call(this,t)):n.changedTouches&&(t=n.changedTouches[0],t.original=n,i.call(this,t))},r||!1)),e._bind(u,t,i,r||!1),h.cantouch&&t=="mouseup"&&e._bind(u,"touchcancel",i,r||!1)):e._bind(u,t,function(n){return n=n||window.event||!1,n&&n.srcElement&&(n.target=n.srcElement),"pageY"in n||(n.pageX=n.clientX+document.documentElement.scrollLeft,n.pageY=n.clientY+document.documentElement.scrollTop),i.call(u,n)===!1||r===!1?e.cancelEvent(n):!0})},this._unbind=function(n,t,i,r){n.removeEventListener?n.removeEventListener(t,i,r):n.detachEvent?n.detachEvent("on"+t,i):n["on"+t]=!1},this.unbindAll=function(){for(var n,t=0;t<e.events.length;t++)n=e.events[t],n.q?n.e.unbind(n.n,n.f):e._unbind(n.e,n.n,n.f,n.b)},this.cancelEvent=function(n){var n=n.original?n.original:n?n:window.event||!1;return n?(n.preventDefault&&n.preventDefault(),n.stopPropagation&&n.stopPropagation(),n.preventManipulation&&n.preventManipulation(),n.cancelBubble=!0,n.cancel=!0,n.returnValue=!1,!1):!1},this.stopPropagation=function(n){var n=n.original?n.original:n?n:window.event||!1;return n?n.stopPropagation?n.stopPropagation():(n.cancelBubble&&(n.cancelBubble=!0),!1):!1},this.showRail=function(){return e.page.maxh!=0&&(e.ispage||e.win.css("display")!="none")&&(e.visibility=!0,e.rail.visibility=!0,e.rail.css("display","block")),e},this.showRailHr=function(){return e.railh?(e.page.maxw!=0&&(e.ispage||e.win.css("display")!="none")&&(e.railh.visibility=!0,e.railh.css("display","block")),e):e},this.hideRail=function(){return e.visibility=!1,e.rail.visibility=!1,e.rail.css("display","none"),e},this.hideRailHr=function(){return e.railh?(e.railh.visibility=!1,e.railh.css("display","none"),e):e},this.show=function(){return e.hidden=!1,e.locked=!1,e.showRail().showRailHr()},this.hide=function(){return e.hidden=!0,e.locked=!0,e.hideRail().hideRailHr()},this.toggle=function(){return e.hidden?e.show():e.hide()},this.remove=function(){var t,n;for(e.stop(),e.cursortimeout&&clearTimeout(e.cursortimeout),e.doZoomOut(),e.unbindAll(),e.observer!==!1&&e.observer.disconnect(),e.observerremover!==!1&&e.observerremover.disconnect(),e.events=[],e.cursor&&(e.cursor.remove(),e.cursor=null),e.cursorh&&(e.cursorh.remove(),e.cursorh=null),e.rail&&(e.rail.remove(),e.rail=null),e.railh&&(e.railh.remove(),e.railh=null),e.zoom&&(e.zoom.remove(),e.zoom=null),t=0;t<e.saved.css.length;t++)n=e.saved.css[t],n[0].css(n[1],typeof n[2]=="undefined"?"":n[2]);return e.saved=!1,e.me.data("__nicescroll",""),e.me=null,e.doc=null,e.docscroll=null,e.win=null,e},this.scrollstart=function(n){return this.onscrollstart=n,e},this.scrollend=function(n){return this.onscrollend=n,e},this.scrollcancel=function(n){return this.onscrollcancel=n,e},this.zoomin=function(n){return this.onzoomin=n,e},this.zoomout=function(n){return this.onzoomout=n,e},this.isScrollable=function(n){var i=n.target?n.target:n,r,u;if(i.nodeName=="OPTION")return!0;while(i&&i.nodeType==1&&!/BODY|HTML/.test(i.nodeName)){if(r=t(i),u=r.css("overflowY")||r.css("overflowX")||r.css("overflow")||"",/scroll|auto/.test(u))return i.clientHeight!=i.scrollHeight;i=i.parentNode?i.parentNode:!1}return!1},this.getViewport=function(n){for(var i=n&&n.parentNode?n.parentNode:!1,r,u;i&&i.nodeType==1&&!/BODY|HTML/.test(i.nodeName);){if((r=t(i),u=r.css("overflowY")||r.css("overflowX")||r.css("overflow")||"",/scroll|auto/.test(u)&&i.clientHeight!=i.scrollHeight)||r.getNiceScroll().length>0)return r;i=i.parentNode?i.parentNode:!1}return!1},this.onmousewheel=function(n){var t,i,r;return e.locked?!0:e.rail.drag?e.cancelEvent(n):e.rail.scrollable?(t=+new Date,i=!1,e.opt.preservenativescrolling&&e.checkarea+600<t&&(e.nativescrollingarea=e.isScrollable(n),i=!0),e.checkarea=t,e.nativescrollingarea)?!0:(r=tt(n,!1,i),r&&(e.checkarea=0),r):e.railh&&e.railh.scrollable?e.onmousewheelhr(n):!0},this.onmousewheelhr=function(n){if(e.locked||!e.railh.scrollable)return!0;if(e.rail.drag)return e.cancelEvent(n);var t=+new Date,i=!1;return(e.opt.preservenativescrolling&&e.checkarea+600<t&&(e.nativescrollingarea=e.isScrollable(n),i=!0),e.checkarea=t,e.nativescrollingarea)?!0:e.locked?e.cancelEvent(n):tt(n,!0,i)},this.stop=function(){return e.cancelScroll(),e.scrollmon&&e.scrollmon.stop(),e.cursorfreezed=!1,e.scroll.y=Math.round(e.getScrollTop()*(1/e.scrollratio.y)),e.noticeCursor(),e},this.getTransitionSpeed=function(n){var i=Math.round(e.opt.scrollspeed*10),t=Math.min(i,Math.round(n/20*e.opt.scrollspeed));return t>20?t:0},e.opt.smoothscroll?e.ishwscroll&&h.hastransition&&e.opt.usetransition?(this.prepareTransition=function(n,t){var i=t?n>20?n:0:e.getTransitionSpeed(n),r=i?h.prefixstyle+"transform "+i+"ms ease-out":"";return e.lasttransitionstyle&&e.lasttransitionstyle==r||(e.lasttransitionstyle=r,e.doc.css(h.transitionstyle,r)),i},this.doScrollLeft=function(n,t){var i=e.scrollrunning?e.newscrolly:e.getScrollTop();e.doScrollPos(n,i,t)},this.doScrollTop=function(n,t){var i=e.scrollrunning?e.newscrollx:e.getScrollLeft();e.doScrollPos(i,n,t)},this.doScrollPos=function(n,t,i){var r=e.getScrollTop(),u=e.getScrollLeft();if((((e.newscrolly-r)*(t-r)<0||(e.newscrollx-u)*(n-u)<0)&&e.cancelScroll(),e.opt.bouncescroll==!1&&(t<0?t=0:t>e.page.maxh&&(t=e.page.maxh),n<0?n=0:n>e.page.maxw&&(n=e.page.maxw)),e.scrollrunning&&n==e.newscrollx&&t==e.newscrolly)||(e.newscrolly=t,e.newscrollx=n,e.newscrollspeed=i||!1,e.timer))return!1;e.timer=setTimeout(function(){var u=e.getScrollTop(),f=e.getScrollLeft(),r={},o,i,s,c,l;r.x=n-f,r.y=t-u,r.px=f,r.py=u,o=Math.round(Math.sqrt(Math.pow(r.x,2)+Math.pow(r.y,2))),i=e.newscrollspeed&&e.newscrollspeed>1?e.newscrollspeed:e.getTransitionSpeed(o),e.newscrollspeed&&e.newscrollspeed<=1&&(i*=e.newscrollspeed),e.prepareTransition(i,!0),e.timerscroll&&e.timerscroll.tm&&clearInterval(e.timerscroll.tm),i>0&&(!e.scrollrunning&&e.onscrollstart&&(s={type:"scrollstart",current:{x:f,y:u},request:{x:n,y:t},end:{x:e.newscrollx,y:e.newscrolly},speed:i},e.onscrollstart.call(e,s)),h.transitionend?e.scrollendtrapped||(e.scrollendtrapped=!0,e.bind(e.doc,h.transitionend,e.onScrollEnd,!1)):(e.scrollendtrapped&&clearTimeout(e.scrollendtrapped),e.scrollendtrapped=setTimeout(e.onScrollEnd,i)),c=u,l=f,e.timerscroll={bz:new BezierClass(c,e.newscrolly,i,0,0,.58,1),bh:new BezierClass(l,e.newscrollx,i,0,0,.58,1)},e.cursorfreezed||(e.timerscroll.tm=setInterval(function(){e.showCursor(e.getScrollTop(),e.getScrollLeft())},60))),e.synched("doScroll-set",function(){e.timer=0,e.scrollendtrapped&&(e.scrollrunning=!0),e.setScrollTop(e.newscrolly),e.setScrollLeft(e.newscrollx),e.scrollendtrapped||e.onScrollEnd()})},50)},this.cancelScroll=function(){if(!e.scrollendtrapped)return!0;var n=e.getScrollTop(),t=e.getScrollLeft();return e.scrollrunning=!1,h.transitionend||clearTimeout(h.transitionend),e.scrollendtrapped=!1,e._unbind(e.doc,h.transitionend,e.onScrollEnd),e.prepareTransition(0),e.setScrollTop(n),e.railh&&e.setScrollLeft(t),e.timerscroll&&e.timerscroll.tm&&clearInterval(e.timerscroll.tm),e.timerscroll=!1,e.cursorfreezed=!1,e.showCursor(n,t),e},this.onScrollEnd=function(){var n,t,i;if(e.scrollendtrapped&&e._unbind(e.doc,h.transitionend,e.onScrollEnd),e.scrollendtrapped=!1,e.prepareTransition(0),e.timerscroll&&e.timerscroll.tm&&clearInterval(e.timerscroll.tm),e.timerscroll=!1,n=e.getScrollTop(),t=e.getScrollLeft(),e.setScrollTop(n),e.railh&&e.setScrollLeft(t),e.noticeCursor(!1,n,t),e.cursorfreezed=!1,n<0?n=0:n>e.page.maxh&&(n=e.page.maxh),t<0?t=0:t>e.page.maxw&&(t=e.page.maxw),n!=e.newscrolly||t!=e.newscrollx)return e.doScrollPos(t,n,e.opt.snapbackspeed);e.onscrollend&&e.scrollrunning&&(i={type:"scrollend",current:{x:t,y:n},end:{x:e.newscrollx,y:e.newscrolly}},e.onscrollend.call(e,i)),e.scrollrunning=!1}):(this.doScrollLeft=function(n,t){var i=e.scrollrunning?e.newscrolly:e.getScrollTop();e.doScrollPos(n,i,t)},this.doScrollTop=function(n,t){var i=e.scrollrunning?e.newscrollx:e.getScrollLeft();e.doScrollPos(i,n,t)},this.doScrollPos=function(n,t,u){function v(){var r,n,t,u,f;if(e.cancelAnimationFrame)return!0;if(e.scrollrunning=!0,a=1-a,a)return e.timer=i(v)||1;r=0,n=sy=e.getScrollTop(),e.dst.ay?(n=e.bzscroll?e.dst.py+e.bzscroll.getNow()*e.dst.ay:e.newscrolly,u=n-sy,(u<0&&n<e.newscrolly||u>0&&n>e.newscrolly)&&(n=e.newscrolly),e.setScrollTop(n),n==e.newscrolly&&(r=1)):r=1,t=sx=e.getScrollLeft(),e.dst.ax?(t=e.bzscroll?e.dst.px+e.bzscroll.getNow()*e.dst.ax:e.newscrollx,u=t-sx,(u<0&&t<e.newscrollx||u>0&&t>e.newscrollx)&&(t=e.newscrollx),e.setScrollLeft(t),t==e.newscrollx&&(r+=1)):r+=1,r==2?(e.timer=0,e.cursorfreezed=!1,e.bzscroll=!1,e.scrollrunning=!1,n<0?n=0:n>e.page.maxh&&(n=e.page.maxh),t<0?t=0:t>e.page.maxw&&(t=e.page.maxw),t!=e.newscrollx||n!=e.newscrolly?e.doScrollPos(t,n):e.onscrollend&&(f={type:"scrollend",current:{x:sx,y:sy},end:{x:e.newscrollx,y:e.newscrolly}},e.onscrollend.call(e,f))):e.timer=i(v)||1}var t=typeof t=="undefined"||t===!1?e.getScrollTop(!0):t,f,o,h,l,c,s,a,y;if(e.timer&&e.newscrolly==t&&e.newscrollx==n)return!0;(e.timer&&r(e.timer),e.timer=0,f=e.getScrollTop(),o=e.getScrollLeft(),((e.newscrolly-f)*(t-f)<0||(e.newscrollx-o)*(n-o)<0)&&e.cancelScroll(),e.newscrolly=t,e.newscrollx=n,e.bouncescroll&&e.rail.visibility||(e.newscrolly<0?e.newscrolly=0:e.newscrolly>e.page.maxh&&(e.newscrolly=e.page.maxh)),e.bouncescroll&&e.railh.visibility||(e.newscrollx<0?e.newscrollx=0:e.newscrollx>e.page.maxw&&(e.newscrollx=e.page.maxw)),e.dst={},e.dst.x=n-o,e.dst.y=t-f,e.dst.px=o,e.dst.py=f,h=Math.round(Math.sqrt(Math.pow(e.dst.x,2)+Math.pow(e.dst.y,2))),e.dst.ax=e.dst.x/h,e.dst.ay=e.dst.y/h,l=0,c=h,e.dst.x==0?(l=f,c=t,e.dst.ay=1,e.dst.py=0):e.dst.y==0&&(l=o,c=n,e.dst.ax=1,e.dst.px=0),s=e.getTransitionSpeed(h),u&&u<=1&&(s*=u),e.bzscroll=s>0?e.bzscroll?e.bzscroll.update(c,s):new BezierClass(l,c,s,0,1,0,1):!1,e.timer)||((f==e.page.maxh&&t>=e.page.maxh||o==e.page.maxw&&n>=e.page.maxw)&&e.checkContentSize(),a=1,e.cancelAnimationFrame=!1,e.timer=1,e.onscrollstart&&!e.scrollrunning&&(y={type:"scrollstart",current:{x:o,y:f},request:{x:n,y:t},end:{x:e.newscrollx,y:e.newscrolly},speed:s},e.onscrollstart.call(e,y)),v(),(f==e.page.maxh&&t>=f||o==e.page.maxw&&n>=o)&&e.checkContentSize(),e.noticeCursor())},this.cancelScroll=function(){return e.timer&&r(e.timer),e.timer=0,e.bzscroll=!1,e.scrollrunning=!1,e}):(this.doScrollLeft=function(n,t){var i=e.getScrollTop();e.doScrollPos(n,i,t)},this.doScrollTop=function(n,t){var i=e.getScrollLeft();e.doScrollPos(i,n,t)},this.doScrollPos=function(n,t){var u=n>e.page.maxw?e.page.maxw:n,r;u<0&&(u=0),r=t>e.page.maxh?e.page.maxh:t,r<0&&(r=0),e.synched("scroll",function(){e.setScrollTop(r),e.setScrollLeft(u)})},this.cancelScroll=function(){}),this.doScrollBy=function(n,t){var i=0,u,r;if(t?i=Math.floor((e.scroll.y-n)*e.scrollratio.y):(u=e.timer?e.newscrolly:e.getScrollTop(!0),i=u-n),e.bouncescroll&&(r=Math.round(e.view.h/2),i<-r?i=-r:i>e.page.maxh+r&&(i=e.page.maxh+r)),e.cursorfreezed=!1,py=e.getScrollTop(!0),i<0&&py<=0)return e.noticeCursor();if(i>e.page.maxh&&py>=e.page.maxh)return e.checkContentSize(),e.noticeCursor();e.doScrollTop(i)},this.doScrollLeftBy=function(n,t){var i=0,u,r;if((t?i=Math.floor((e.scroll.x-n)*e.scrollratio.x):(u=e.timer?e.newscrollx:e.getScrollLeft(!0),i=u-n),e.bouncescroll&&(r=Math.round(e.view.w/2),i<-r?i=-r:i>e.page.maxw+r&&(i=e.page.maxw+r)),e.cursorfreezed=!1,px=e.getScrollLeft(!0),i<0&&px<=0)||i>e.page.maxw&&px>=e.page.maxw)return e.noticeCursor();e.doScrollLeft(i)},this.doScrollTo=function(n,t){var i=t?Math.round(n*e.scrollratio.y):n;i<0?i=0:i>e.page.maxh&&(i=e.page.maxh),e.cursorfreezed=!1,e.doScrollTop(n)},this.checkContentSize=function(){var n=e.getContentSize();(n.h!=e.page.h||n.w!=e.page.w)&&e.resize(!1,n)},e.onscroll=function(){e.rail.drag||e.cursorfreezed||e.synched("scroll",function(){e.scroll.y=Math.round(e.getScrollTop()*(1/e.scrollratio.y)),e.railh&&(e.scroll.x=Math.round(e.getScrollLeft()*(1/e.scrollratio.x))),e.noticeCursor()})},e.bind(e.docscroll,"scroll",e.onscroll),this.doZoomIn=function(n){var r,f,s,i,o;if(!e.zoomactive){e.zoomactive=!0,e.zoomrestore={style:{}},r=["position","top","left","zIndex","backgroundColor","marginTop","marginBottom","marginLeft","marginRight"],f=e.win[0].style;for(s in r)i=r[s],e.zoomrestore.style[i]=typeof f[i]!="undefined"?f[i]:"";return e.zoomrestore.style.width=e.win.css("width"),e.zoomrestore.style.height=e.win.css("height"),e.zoomrestore.padding={w:e.win.outerWidth()-e.win.width(),h:e.win.outerHeight()-e.win.height()},h.isios4&&(e.zoomrestore.scrollTop=t(window).scrollTop(),t(window).scrollTop(0)),e.win.css({position:h.isios4?"absolute":"fixed",top:0,left:0,"z-index":u+100,margin:"0px"}),o=e.win.css("backgroundColor"),(o==""||/transparent|rgba\(0, 0, 0, 0\)|rgba\(0,0,0,0\)/.test(o))&&e.win.css("backgroundColor","#fff"),e.rail.css({"z-index":u+101}),e.zoom.css({"z-index":u+102}),e.zoom.css("backgroundPosition","0px -18px"),e.resizeZoom(),e.onzoomin&&e.onzoomin.call(e),e.cancelEvent(n)}},this.doZoomOut=function(n){if(e.zoomactive)return e.zoomactive=!1,e.win.css("margin",""),e.win.css(e.zoomrestore.style),h.isios4&&t(window).scrollTop(e.zoomrestore.scrollTop),e.rail.css({"z-index":e.zindex}),e.zoom.css({"z-index":e.zindex}),e.zoomrestore=!1,e.zoom.css("backgroundPosition","0px 0px"),e.onResize(),e.onzoomout&&e.onzoomout.call(e),e.cancelEvent(n)},this.doZoom=function(n){return e.zoomactive?e.doZoomOut(n):e.doZoomIn(n)},this.resizeZoom=function(){if(e.zoomactive){var n=e.getScrollTop();e.win.css({width:t(window).width()-e.zoomrestore.padding.w+"px",height:t(window).height()-e.zoomrestore.padding.h+"px"}),e.onResize(),e.setScrollTop(Math.min(e.page.maxh,n))}},this.init(),t.nicescroll.push(this)},y=function(n){var t=this;this.nc=n,this.lastx=0,this.lasty=0,this.speedx=0,this.speedy=0,this.lasttime=0,this.steptime=0,this.snapx=!1,this.snapy=!1,this.demulx=0,this.demuly=0,this.lastscrollx=-1,this.lastscrolly=-1,this.chkx=0,this.chky=0,this.timer=0,this.time=function(){return+new Date},this.reset=function(n,i){t.stop();var r=t.time();t.steptime=0,t.lasttime=r,t.speedx=0,t.speedy=0,t.lastx=n,t.lasty=i,t.lastscrollx=-1,t.lastscrolly=-1},this.update=function(n,i){var r=t.time();t.steptime=r-t.lasttime,t.lasttime=r;var u=i-t.lasty,f=n-t.lastx,s=t.nc.getScrollTop(),h=t.nc.getScrollLeft(),e=s+u,o=h+f;t.snapx=o<0||o>t.nc.page.maxw,t.snapy=e<0||e>t.nc.page.maxh,t.speedx=f,t.speedy=u,t.lastx=n,t.lasty=i},this.stop=function(){t.nc.unsynched("domomentum2d"),t.timer&&clearTimeout(t.timer),t.timer=0,t.lastscrollx=-1,t.lastscrolly=-1},this.doSnapy=function(n,i){var r=!1;i<0?(i=0,r=!0):i>t.nc.page.maxh&&(i=t.nc.page.maxh,r=!0),n<0?(n=0,r=!0):n>t.nc.page.maxw&&(n=t.nc.page.maxw,r=!0),r&&t.nc.doScrollPos(n,i,t.nc.opt.snapbackspeed)},this.doMomentum=function(n){var e=t.time(),c=n?e+n:t.lasttime,l=t.nc.getScrollLeft(),a=t.nc.getScrollTop(),o=t.nc.page.maxh,s=t.nc.page.maxw,f,v,y,u,h;if(t.speedx=s>0?Math.min(60,t.speedx):0,t.speedy=o>0?Math.min(60,t.speedy):0,f=c&&e-c<=50,(a<0||a>o||l<0||l>s)&&(f=!1),v=t.speedy&&f?t.speedy:!1,y=t.speedx&&f?t.speedx:!1,v||y){u=Math.max(16,t.steptime),u>50&&(h=u/50,t.speedx*=h,t.speedy*=h,u=50),t.demulxy=0,t.lastscrollx=t.nc.getScrollLeft(),t.chkx=t.lastscrollx,t.lastscrolly=t.nc.getScrollTop(),t.chky=t.lastscrolly;var i=t.lastscrollx,r=t.lastscrolly,p=function(){var n=t.time()-e>600?.04:.02;t.speedx&&(i=Math.floor(t.lastscrollx-t.speedx*(1-t.demulxy)),t.lastscrollx=i,(i<0||i>s)&&(n=.1)),t.speedy&&(r=Math.floor(t.lastscrolly-t.speedy*(1-t.demulxy)),t.lastscrolly=r,(r<0||r>o)&&(n=.1)),t.demulxy=Math.min(1,t.demulxy+n),t.nc.synched("domomentum2d",function(){var n,u;t.speedx&&(n=t.nc.getScrollLeft(),n!=t.chkx&&t.stop(),t.chkx=i,t.nc.setScrollLeft(i)),t.speedy&&(u=t.nc.getScrollTop(),u!=t.chky&&t.stop(),t.chky=r,t.nc.setScrollTop(r)),t.timer||(t.nc.hideCursor(),t.doSnapy(i,r))}),t.demulxy<1?t.timer=setTimeout(p,u):(t.stop(),t.nc.hideCursor(),t.doSnapy(i,r))};p()}else t.doSnapy(t.nc.getScrollLeft(),t.nc.getScrollTop())}},h=n.fn.scrollTop;n.cssHooks.pageYOffset={get:function(n){var u=t.data(n,"__nicescroll")||!1;return u&&u.ishwscroll?u.getScrollTop():h.call(n)},set:function(n,i){var r=t.data(n,"__nicescroll")||!1;return r&&r.ishwscroll?r.setScrollTop(parseInt(i)):h.call(n,i),this}},n.fn.scrollTop=function(n){if(typeof n=="undefined"){var i=this[0]?t.data(this[0],"__nicescroll")||!1:!1;return i&&i.ishwscroll?i.getScrollTop():h.call(this)}return this.each(function(){var i=t.data(this,"__nicescroll")||!1;i&&i.ishwscroll?i.setScrollTop(parseInt(n)):h.call(t(this),n)})},f=n.fn.scrollLeft,t.cssHooks.pageXOffset={get:function(n){var u=t.data(n,"__nicescroll")||!1;return u&&u.ishwscroll?u.getScrollLeft():f.call(n)},set:function(n,i){var r=t.data(n,"__nicescroll")||!1;return r&&r.ishwscroll?r.setScrollLeft(parseInt(i)):f.call(n,i),this}},n.fn.scrollLeft=function(n){if(typeof n=="undefined"){var i=this[0]?t.data(this[0],"__nicescroll")||!1:!1;return i&&i.ishwscroll?i.getScrollLeft():f.call(this)}return this.each(function(){var i=t.data(this,"__nicescroll")||!1;i&&i.ishwscroll?i.setScrollLeft(parseInt(n)):f.call(t(this),n)})},e=function(n){var i=this,r;if(this.length=0,this.name="nicescrollarray",this.each=function(n){for(var t=0;t<i.length;t++)n.call(i[t]);return i},this.push=function(n){i[i.length]=n,i.length++},this.eq=function(n){return i[n]},n)for(a=0;a<n.length;a++)r=t.data(n[a],"__nicescroll")||!1,r&&(this[this.length]=r,this.length++);return this},tt(e.prototype,["show","hide","toggle","onResize","resize","remove","stop","doScrollPos"],function(n,t){n[t]=function(){var n=arguments;return this.each(function(){this[t].apply(this,n)})}}),n.fn.getNiceScroll=function(n){return typeof n=="undefined"?new e(this):t.data(this[n],"__nicescroll")||!1},n.extend(n.expr[":"],{nicescroll:function(n){return t.data(n,"__nicescroll")?!0:!1}}),t.fn.niceScroll=function(n,i){var r,u;return typeof i=="undefined"&&(typeof n!="object"||"jquery"in n||(i=n,n=!1)),r=new e,typeof i=="undefined"&&(i={}),(n||!1)&&(i.doc=t(n),i.win=t(this)),u=!("doc"in i),u||"win"in i||(i.win=t(this)),this.each(function(){var n=t(this).data("__nicescroll")||!1;n||(i.doc=u?t(this):i.doc,n=new nt(i,t(this)),t(this).data("__nicescroll",n)),r.push(n)}),r.length==1?r[0]:r},window.NiceScroll={getjQuery:function(){return n}},t.nicescroll||(t.nicescroll=new e,t.nicescroll.options=v)}(jQuery),function(n,t){"use strict";function e(){return t.innerWidth<600?1:t.innerWidth<1024?3:4}function s(){setTimeout(function(){console.log("Enable pins"),o.append([TweenMax.to(n("#info-a0"),.4,{css:{right:"+=1500px",ease:Strong.easeInOut},delay:0}),TweenMax.to(n("#info-a1"),.7,{css:{right:"+=2600px",ease:Strong.easeInOut},delay:0}),TweenMax.to(n("#info-a2"),.75,{css:{right:"+=3100px",ease:Strong.easeInOut},delay:.32}),TweenMax.to(n("#info-a3"),.7,{css:{right:"+=2200px",ease:Strong.easeInOut},delay:.5})],0).append([TweenMax.to(n("#slide-a1"),1.1,{css:{right:"+=2500px",ease:Strong.easeInOut},delay:.1}),TweenMax.to(n("#slide-a2"),.9,{css:{right:"+=2500px",ease:Strong.easeInOut},delay:.09}),TweenMax.to(n("#slide-a3"),1.1,{css:{right:"+=4000px",ease:Strong.easeInOut},delay:.11}),TweenMax.to(n("#slide-a4"),1.1,{css:{right:"+=4380px",ease:Strong.easeInOut},delay:.1}),TweenMax.to(n("#slide-a5"),1.2,{css:{right:"+=5000px",ease:Strong.easeInOut},delay:.1}),TweenMax.to(n("#slide-a6"),1.2,{css:{right:"+=5000px",ease:Strong.easeInOut},delay:.1})],-1.4),f.pin(n("#pin1"),h,{anim:o,onPin:function(){},onUnpin:function(){}}),f.pin(n("#pin2"),4700,{anim:(new TimelineLite).append([TweenMax.to(n("#zoom-b1"),.6,{css:{right:"+=2400px",ease:Strong.easeInOut},delay:0}),TweenMax.to(n("#zoom-b1"),.6,{css:{backgroundPosition:"1800px 50%"},delay:0})],0).append([TweenMax.to(n("#info-b1"),.8,{css:{right:"+=2200px",ease:Strong.easeInOut},delay:0}),TweenMax.to(n("#slide-b1"),1,{css:{right:"+=2200px",ease:Strong.easeInOut},delay:.2}),TweenMax.to(n("#info-b2"),.6,{css:{right:"+=3400px",ease:Strong.easeInOut},delay:.12}),TweenMax.to(n("#slide-b2"),1,{css:{right:"+=3800px",ease:Strong.easeInOut},delay:.1}),TweenMax.to(n("#info-b3"),.49,{css:{right:"+=3200px",ease:Strong.easeInOut},delay:.3}),TweenMax.to(n("#slide-b3"),1,{css:{right:"+=3300px",ease:Strong.easeInOut},delay:0}),TweenMax.to(n("#slide-b4"),.95,{css:{right:"+=3600px",ease:Strong.easeInOut},delay:0}),TweenMax.to(n("#slide-b5"),1,{css:{right:"+=3700px",ease:Strong.easeInOut},delay:0}),TweenMax.to(n("#info-b4"),.9,{css:{right:"+=2200px",ease:Strong.easeInOut},delay:.34})],-.5)}),f.pin(n("#pin3"),5e3,{anim:(new TimelineLite).append([TweenMax.to(n("#zoom-c1"),1.4,{css:{right:"+=2600px",ease:Strong.easeInOut},delay:0}),TweenMax.to(n("#zoom-c1"),1.4,{css:{backgroundPosition:"1600px 50%"},delay:0}),TweenMax.to(n("#info-c1"),1.8,{css:{right:"+=2200px",ease:Strong.easeInOut},delay:.37})],0).append([TweenMax.to(n("#slide-c1"),2,{css:{right:"+=1600px",ease:Strong.easeInOut},delay:.1}),TweenMax.to(n("#slide-c2"),2,{css:{right:"+=2200px",ease:Strong.easeInOut},delay:.15}),TweenMax.to(n("#slide-c4"),2,{css:{right:"+=4200px",ease:Strong.easeInOut},delay:.15}),TweenMax.to(n("#slide-c5"),2,{css:{right:"+=4200px",ease:Strong.easeInOut},delay:.1}),TweenMax.to(n("#slide-c6"),2,{css:{right:"+=5200px",ease:Strong.easeInOut},delay:.2}),TweenMax.to(n("#slide-c7"),2,{css:{right:"+=5200px",ease:Strong.easeInOut},delay:.19}),TweenMax.to(n("#info-c2"),2,{css:{right:"+=1600px",ease:Strong.easeInOut},delay:.6})],-1.7)}),f.pin(n("#pin4"),4e3,{anim:(new TimelineLite).append([TweenMax.to(n("#zoom-d1"),.4,{css:{right:"+=3200px",ease:Strong.easeInOut},delay:0}),TweenMax.to(n("#zoom-d1"),.4,{css:{backgroundPosition:"1600px 50%"},delay:.1}),TweenMax.to(n("#slide-d1"),1.2,{css:{right:"+=2200px",ease:Strong.easeInOut},delay:.15}),TweenMax.to(n("#slide-d2"),1.2,{css:{right:"+=2400px",ease:Strong.easeInOut},delay:0}),TweenMax.to(n("#slide-d3"),1.1,{css:{right:"+=3800px",ease:Strong.easeInOut},delay:.02}),TweenMax.to(n("#slide-d4"),1.1,{css:{right:"+=5800px",ease:Strong.easeInOut},delay:.2}),TweenMax.to(n("#slide-d5"),1.1,{css:{right:"+=6000px",ease:Strong.easeInOut},delay:.22}),TweenMax.to(n("#slide-d6"),1,{css:{right:"+=6200px",ease:Strong.easeInOut},delay:.1})],0).append([TweenMax.to(n("#info-d1"),1,{css:{right:"+=2200px",ease:Strong.easeInOut},delay:.28}),TweenMax.to(n("#info-d2"),.9,{css:{right:"+=2600px",ease:Strong.easeInOut},delay:.22}),TweenMax.to(n("#info-d3"),.8,{css:{right:"+=2900px",ease:Strong.easeInOut},delay:.68}),TweenMax.to(n("#info-d4"),.9,{css:{right:"+=2000px",ease:Strong.easeInOut},delay:.85})],-1.7)}),f.pin(n("#pin5"),3500,{anim:(new TimelineLite).append([TweenMax.to(n("#slide-e1"),1,{css:{right:"+=1600px",ease:Strong.easeInOut},delay:.01}),TweenMax.to(n("#slide-e2"),1.16,{css:{right:"+=2400px",ease:Strong.easeInOut},delay:0}),TweenMax.to(n("#slide-e3"),1.15,{css:{right:"+=2400px",ease:Strong.easeInOut},delay:.001}),TweenMax.to(n("#slide-e4"),1.15,{css:{right:"+=2400px",ease:Strong.easeInOut},delay:.001})],0).append([TweenMax.to(n("#info-e1"),.6,{css:{right:"+=2200px",ease:Strong.easeInOut},delay:.2}),TweenMax.to(n("#info-e2"),.9,{css:{right:"+=2600px",ease:Strong.easeInOut},delay:.3}),TweenMax.to(n("#info-e3"),.8,{css:{right:"+=1600px",ease:Strong.easeInOut},delay:.8}),],-1.5)})},1e3)}var u=n(document),r=t.Modernizr;t.flexslider={vars:{}},n(document).ready(function(){n.fn.foundationAlerts?u.foundationAlerts():null,n.fn.foundationButtons?u.foundationButtons():null,n.fn.foundationAccordion?u.foundationAccordion():null,n.fn.foundationCustomForms?u.foundationCustomForms():null,n.fn.foundationTabs?u.foundationTabs({callback:n.foundation.customForms.appendCustomMarkup}):null,n.fn.placeholder?n("input, textarea").placeholder():null}),n(".block-grid.two-up>li:nth-child(2n+1)").css({clear:"both"}),n(".block-grid.three-up>li:nth-child(3n+1)").css({clear:"both"}),n(".block-grid.four-up>li:nth-child(4n+1)").css({clear:"both"}),n(".block-grid.five-up>li:nth-child(5n+1)").css({clear:"both"}),r.touch&&!t.location.hash&&n(t).load(function(){setTimeout(function(){n(t).scrollTop()<20&&t.scrollTo(0,1)},0)}),n(".masthead-slider .flexslider").flexslider({animation:"slide",slideshow:!0,slideshowSpeed:8e4,controlsContainer:".flex-control-container",after:function(t){var f=t.slides[t.currentSlide],e=t.slides[t.getTarget("prev")],i=n(f).find(".button-set"),u=n(e).find(".button-set");r.csstransitions?(i.addClass("slide-up"),u.removeClass("slide-up")):(i.animate({bottom:"0px"}),u.animate({bottom:"-64px"}))}}),n(".modal-slider .flexslider").flexslider({animation:"slide",controlNav:!1,directionNav:!1,slideshow:!1});n(".modal-slider .custom-navigation a").on("click",function(t){t.preventDefault();var i=n(this).attr("href");n(".modal-slider .flexslider").flexslider(i),console.log("next prev is happening!!!")});n(".sub-content .modal-slider .flexslider .slides li.module.module-large").length==1&&n(".sub-content .modal-slider .flex-prev, .sub-content .modal-slider .flex-next").css({visibility:"hidden"}),n(".flexslider").flexslider({animation:"slide",controlNav:!1,slideshow:!0}),n(".video, .map").fitVids(),n("#price-slider-range-activities").length>0&&(n("#price-slider-range-activities").slider({range:!0,min:0,max:1e3,step:50,values:[0,300],slide:function(t,i){n(".price .range").html("$"+i.values[0].formatMoney(0,".",",")+" - $"+i.values[1].formatMoney(0,".",","))}}),n(".price .range").html("$"+n("#price-slider-range-activities").slider("values",0).formatMoney(0,".",",")+" - $"+n("#price-slider-range-activities").slider("values",1).formatMoney(0,".",","))),n("#price-slider-range").length>0&&(n("#price-slider-range").slider({range:!0,min:0,max:25e3,step:100,values:[0,7500],slide:function(t,i){n(".price .range").html("$"+i.values[0].formatMoney(0,".",",")+" - $"+i.values[1].formatMoney(0,".",","))}}),n(".price .range").html("$"+n("#price-slider-range").slider("values",0).formatMoney(0,".",",")+" - $"+n("#price-slider-range").slider("values",1).formatMoney(0,".",","))),n("#night-slider-range").length>0&&(n("#night-slider-range").slider({range:!0,min:5,max:15,step:1,values:[5,7],slide:function(t,i){n(".nights .range").html(i.values[0]+" - "+i.values[1])}}),n(".nights .range").html(n("#night-slider-range").slider("values",0)+" - "+n("#night-slider-range").slider("values",1))),n(".main-nav").hoverIntent({over:function(){n(".main-header").addClass("hover")},out:function(){n(".main-header").removeClass("hover")},timeout:550}),n("#masthead-slider").hover(function(){n(this).addClass("hover")},function(){n(this).removeClass("hover")}),n(".main-nav > ul > li:not(.name)").hoverIntent({over:function(){n(this).find("> a").css("background-image","url(/Content/images/icon/pointer.png)"),n(this).find(".nav-sub").delay(200).slideDown(300,"easeInCubic")},out:function(){n(this).find("> a").css("background-image","none"),n(this).find(".nav-sub").slideUp(300,"easeInCubic")},timeout:150,interval:150}),n(".dropdown").hoverIntent({over:function(){n(this).find("li > ul").slideDown(250,"easeInCubic")},out:function(){n(this).find("li > ul").slideUp(250,"easeInCubic")},timeout:"250"}),n(".main-header").waypoint("sticky",{offset:function(){return-42}}),n("header.page-header").waypoint({offset:"60%",handler:function(t){n("#filtersMenu").hasClass("is-open")||(t=="down"?n("#filtersMenuTrigger").css({opacity:1}):n("#filtersMenuTrigger").css({opacity:0}))}}),n(".main-content").waypoint({offset:"bottom-in-view",handler:function(t){n("#filtersMenu").hasClass("is-open")||(t=="down"?n("#filtersMenuTrigger").css({opacity:0}):n("#filtersMenuTrigger").css({opacity:1}))}}),n(".jumpMenu-header").waypoint({offset:"bottom-in-view",handler:function(t){t=="down"?n(".mobileFixedButton").css({opacity:1}):n(".mobileFixedButton").css({opacity:0})}}),n(".fine-details").waypoint({offset:"bottom-in-view",handler:function(t){t=="down"?n(".mobileFixedButton").css({opacity:0}):n(".mobileFixedButton").css({opacity:1})}}),n("#about-tahiti-sticky-wrap").waypoint("sticky",{offset:function(){return 70}}),n(".full-bleed-info").waypoint({handler:function(){n(".full-bleed-info #content-wrap").addClass("show")},offset:"35%"}),n("#wypoint").waypoint({handler:function(){n(".full-bleed-about #reveal").addClass("show")},offset:-300});n(".search-toggle a").on("click",function(t){t.preventDefault();var i=n(this).parent();i.hasClass("expanded-start")?(n("li.header-request-btn").removeClass("hidden"),i.addClass("expanded-setup-stop"),i.addClass("expanded-stop"),i.removeClass("expanded-setup-start"),i.removeClass("expanded-start"),n(".header-phone").addClass("live-chat")):i.hasClass("expanded-stop")?(n("li.header-request-btn").addClass("hidden"),i.addClass("expanded-setup-start"),i.addClass("expanded-start"),i.removeClass("expanded-setup-stop"),i.removeClass("expanded-stop"),n(".header-phone").removeClass("live-chat")):(i.addClass("expanded-setup-start"),i.addClass("expanded-start"),n("li.header-request-btn").addClass("hidden")),r.csstransitions||(i.hasClass("expanded-start")?(i.find(".button-arrow").animate({width:"32px"},250,"easeInCubic"),i.find(".search").animate({width:"240px",padding:"6px 6px 6px 40px"},500,"easeInCubic")):(i.find(".search").animate({width:"0",padding:"0"},500,"easeInCubic"),i.find(".button-arrow").animate({width:"0"},200,"easeInCubic")))});n("html").on("click",function(){n(".modal").hasClass("visible")&&(n(".modal").removeClass("visible"),n(".modal-toggle").removeClass("modal-open"))});n(".modal").on("click",function(n){n.stopPropagation()});n(".modal-toggle").on("click",function(t){t.preventDefault();var i=n(this).next(".modal");setTimeout(function(){n(".modal").not(i).removeClass("visible"),i.toggleClass("visible")},0),i.hasClass("visible")?n(this).removeClass("modal-open"):n(this).addClass("modal-open"),t.stopPropagation()});n(".modal-toggle, #filtersMenuTrigger").on("click",function(){setTimeout(function(){n(".modal").hasClass("visible")||n("#filtersMenu").hasClass("is-open")?n(".close-section").css({opacity:1,"pointer-events":"initial"}):n(".close-section").css({opacity:0,"pointer-events":"none"})},100)});n(".close-section").click(function(){n(this).css({opacity:0,"pointer-events":"none"}),n(".modal-toggle").removeClass("modal-open"),n("#filtersMenu").toggleClass("is-open"),n("#modal-scroll-bg").remove()}),n("#carousel1").flexslider({animation:"slide",slideshow:!1,animationLoop:!0,directionNav:!0,controlNav:!1,itemWidth:275,itemMargin:5,minItems:1,maxItems:1,controlsContainer:"#carousel-controls1",start:function(n){console.log("slider",n)},before:function(){var t=n(".module-additional-info");t.length&&(t.not(t).removeClass("visible"),r.csstransitions||n(".module-additional-info").not(t).slideUp())},after:function(){}}),n("#carousel2").flexslider({animation:"slide",slideshow:!1,animationLoop:!0,directionNav:!0,controlNav:!1,itemWidth:275,itemMargin:5,minItems:e(),maxItems:e(),controlsContainer:"#carousel-controls2",start:function(n){console.log("slider",n)},before:function(){var t=n(".module-additional-info");t.length&&(t.not(t).removeClass("visible"),r.csstransitions||n(".module-additional-info").not(t).slideUp())},after:function(){}}),n("#carousel3").flexslider({animation:"slide",slideshow:!1,animationLoop:!0,directionNav:!0,controlNav:!1,itemWidth:275,itemMargin:5,minItems:e(),maxItems:e(),controlsContainer:"#carousel-controls3",start:function(){},before:function(){var t=n(".module-additional-info");t.length&&(t.not(t).removeClass("visible"),r.csstransitions||n(".module-additional-info").not(t).slideUp())},after:function(){}});n(".module-toggle").on("click",function(t){t.preventDefault();var i=n(this).parent().parent().next(".module-additional-info");n(this).toggleClass("visible"),setTimeout(function(){n(".module-additional-info").not(i).removeClass("visible"),i.toggleClass("visible"),r.csstransitions||n(".module-additional-info").not(i).slideUp()},0),r.csstransitions||i.slideToggle()});n(".modal").on("click","#button-upgrade",function(t){t.preventDefault();var i=n(this).closest(".modal"),r='<div class="confirmation"><h4 class="header">Your selection has been saved.<\/h4><a class="button radius secondary" href="#">REQUEST A QUOTE<\/a><\/div>';i.html(r)});n(".amenities .accordion .title").on("click",function(){var t=n(this).next(".content");r.csstransitions||t.slideToggle()});n(".package .accordion .title").on("click",function(){var t=n(this).next(".content");r.csstransitions||t.slideToggle()});n("html").hasClass("touch")&&n(".package-details-touch").css("display","block"),n(".module-large .title").fitText(1.1,{minFontSize:"17px",maxFontSize:"24px"}),n(".module-medium .title").fitText(1.1,{minFontSize:"17px",maxFontSize:"24px"});var f=n.superscrollorama({triggerAtCenter:!1,playoutAnimations:!0}),h=3500,o=new TimelineLite;s()}(jQuery,this),$(document).ready(function(){function r(t){var i=$(".main-footer ul.accordion > li"),r=$(".preparing-section ul.accordion > li"),u=$(".package-content ul.accordion > li"),f=$(".package .hotels-detail ul.accordion > li"),e=$(".seasons-popup .seasons-item").length;t.matches?(i.addClass("active"),r.addClass("active"),u.addClass("active"),f.addClass("active"),$("#filtersMenu").removeClass("is-open"),$('div[ng-controller="PackageListController"]').prepend(n),$('div[ng-controller="ActivityListController"]').prepend(n),$('div[ng-controller="HotelListController"]').prepend(n),$(".seasons-popup .seasons-item").css({height:"auto"})):(n.detach(),i.removeClass("active"),r.removeClass("active"),u.removeClass("active"),f.removeClass("active"),$("#filtersMenu").append(n),$(".seasons-popup .seasons-item").css({height:"calc(100vh / "+e+")"}))}function u(n){var t=$(".mobile-menu"),i=$("#nav-icon2");n.matches&&(t.removeClass("visible"),i.removeClass("open"))}function f(){var n=$(".module-medium").eq(0).height();$(".module-additional").css("height",n)}$(".dropdownListItems li").click(function(){var n=$(this).find("a").text();$(".dropdownListTitle").text(n),$(".dropdownListItems").css({display:"none"})}),$(".filterGridTags li").click(function(){$(this).hasClass("selected")?$(this).removeClass("selected"):$(this).addClass("selected")}),$(".flex-direction-nav a").click(function(){}),$(".module-toggle").click(function(){$("a.module-toggle").hasClass("visible")?($("a.module-toggle").removeClass("arr-up").addClass("arr-down"),$(this).removeClass("arr-down").addClass("arr-up")):($("a.module-toggle").removeClass("arr-up").addClass("arr-down"),$(this).removeClass("arr-up").addClass("arr-down"))}),$(".seasons.modal-toggle").click(function(){$("#seasonsModal").toggleClass("new-visible")});$("html").on("click",function(){$("#seasonsModal").hasClass("new-visible")&&$("#seasonsModal").removeClass("new-visible")});var t=window.matchMedia("(min-width: 768px)"),i=window.matchMedia("(min-width: 1024px)"),n=$("#packageFilterMenu");matchMedia&&(t.addListener(r),r(t),i.addListener(u),u(i)),r(t),u(i),$("#filtersMenuTrigger").click(function(t){t.preventDefault(),$("#filtersMenu").toggleClass("is-open"),$("#filtersMenu").prepend(n),$("#filtersMenu").hasClass("is-open")?$("body").append('<div id="modal-scroll-bg" class="tan"><\/div>'):$("#modal-scroll-bg").remove()}),$(".close-modal").click(function(n){n.preventDefault(),$(this).closest(".modal").removeClass("visible"),$("#seasonsModal").removeClass("new-visible")}),$(".vertical.tabs a").click(function(n){n.preventDefault()}),$(".hamburger").click(function(n){n.preventDefault(),$("#nav-icon2").toggleClass("open"),$("#nav-icon2").hasClass("open")?($(".mobile-menu").addClass("visible"),$("body").append('<div id="modal-scroll-bg" class="black"><\/div>')):($(".mobile-menu").removeClass("visible"),$("#modal-scroll-bg").remove())});$(".mobile-menu .vertical.tabs").on("click","a",function(){var n=$(this).attr("href")+"Tab";$(".tabs-content li").removeClass("active"),$(".tabs-content").find(n).addClass("active")});$("#searchTrigger").click(function(){$(".full-width-search").toggleClass("is-open"),$('.full-width-search input[type="text"]').focus()}),$(".main-header .close-button").click(function(){$(".full-width-search").removeClass("is-open")}),$(window).resize(function(){f()}),$(".module-medium img").load(f()),$(".split-description ul").removeClass("accordion")}),function(n,t,i,r){var v=n("<div>")[0],y=/url\(["']?(.*?)["']?\)/,c=[],l={top:0,left:0,bottom:1,right:1,center:.5};if(!("backgroundSize"in v.style)||n.debugBGS){n.cssHooks.backgroundSize={set:function(t,i){var e=!n.data(t,"bgsImg"),r,u,f;n.data(t,"bgsValue",i),e?(c.push(t),n.refreshBackgroundDimensions(t,!0),u=n("<div>").css({position:"absolute",zIndex:-1,top:0,right:0,left:0,bottom:0,overflow:"hidden"}),f=n("<img>").css({position:"absolute"}).appendTo(u),u.prependTo(t),n.data(t,"bgsImg",f[0]),r=(n.css(t,"backgroundPosition")||n.css(t,"backgroundPositionX")+" "+n.css(t,"backgroundPositionY")).split(" "),n.data(t,"bgsPos",[l[r[0]]||parseFloat(r[0])/100,l[r[1]]||parseFloat(r[1])/100]),n.css(t,"zIndex")=="auto"&&(t.style.zIndex=0),n.css(t,"position")=="static"&&(t.style.position="relative"),n.refreshBackgroundImage(t)):n.refreshBackground(t)},get:function(t){return n.data(t,"bgsValue")||""}},n.cssHooks.backgroundImage={set:function(t,i){return n.data(t,"bgsImg")?n.refreshBackgroundImage(t,i):i}},n.refreshBackgroundDimensions=function(t,i){var f=n(t),r={width:f.innerWidth(),height:f.innerHeight()},u=n.data(t,"bgsDim"),e=!u||r.width!=u.width||r.height!=u.height;n.data(t,"bgsDim",r),e&&!i&&n.refreshBackground(t)},n.refreshBackgroundImage=function(t,i){var r=n.data(t,"bgsImg"),u=(y.exec(i||n.css(t,"backgroundImage"))||[])[1],f=r&&r.src,e=u!=f,o,s;e&&(r.style.height=r.style.width="auto",r.onload=function(){var i={width:r.width,height:r.height};(i.width!=1||i.height!=1)&&(n.data(t,"bgsImgDim",i),n.data(t,"bgsConstrain",!1),n.refreshBackground(t),r.style.visibility="visible",r.onload=null)},r.style.visibility="hidden",r.src=u,(r.readyState||r.complete)&&(r.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==",r.src=u),t.style.backgroundImage="none")},n.refreshBackground=function(t){var c=n.data(t,"bgsValue"),i=n.data(t,"bgsDim"),l=n.data(t,"bgsImgDim"),u=n(n.data(t,"bgsImg")),s=n.data(t,"bgsPos"),h=n.data(t,"bgsConstrain"),f,a=i.width/i.height,o=l.width/l.height,e;c=="contain"?o>a?(n.data(t,"bgsConstrain",f="width"),e=r.floor((i.height-i.width/o)*s[1]),u.css({top:e}),f!=h&&u.css({width:"100%",height:"auto",left:0})):(n.data(t,"bgsConstrain",f="height"),e=r.floor((i.width-i.height*o)*s[0]),u.css({left:e}),f!=h&&u.css({height:"100%",width:"auto",top:0})):c=="cover"&&(o>a?(n.data(t,"bgsConstrain",f="height"),e=r.floor((i.height*o-i.width)*s[0]),u.css({left:-e}),f!=h&&u.css({height:"100%",width:"auto",top:0})):(n.data(t,"bgsConstrain",f="width"),e=r.floor((i.width/o-i.height)*s[1]),u.css({top:-e}),f!=h&&u.css({width:"100%",height:"auto",left:0})))};var a=n.event,e,o={_:0},f=0,s,h;e=a.special.throttledresize={setup:function(){n(this).on("resize",e.handler)},teardown:function(){n(this).off("resize",e.handler)},handler:function(t,i){var r=this,u=arguments;s=!0,h||(n(o).animate(o,{duration:Infinity,step:function(){f++,(f>e.threshold&&s||i)&&(t.type="throttledresize",a.dispatch.apply(r,u),s=!1,f=0),f>9&&(n(o).stop(),h=!1,f=0)}}),h=!0)},threshold:1};n(t).on("throttledresize",function(){n(c).each(function(){n.refreshBackgroundDimensions(this)})})}}(jQuery,window,document,Math),function(n,t,i){function f(n){return n}function e(n){return decodeURIComponent(n.replace(u," "))}var u=/\+/g,r=n.cookie=function(u,o,s){var p,c,l,a,h,w,v,y;if(o!==i)return s=n.extend({},r.defaults,s),o===null&&(s.expires=-1),typeof s.expires=="number"&&(p=s.expires,c=s.expires=new Date,c.setDate(c.getDate()+p)),o=r.json?JSON.stringify(o):String(o),t.cookie=[encodeURIComponent(u),"=",r.raw?o:encodeURIComponent(o),s.expires?"; expires="+s.expires.toUTCString():"",s.path?"; path="+s.path:"",s.domain?"; domain="+s.domain:"",s.secure?"; secure":""].join("");for(l=r.raw?f:e,a=t.cookie.split("; "),h=0,w=a.length;h<w;h++)if(v=a[h].split("="),l(v.shift())===u)return y=l(v.join("=")),r.json?JSON.parse(y):y;return null};r.defaults={},n.removeCookie=function(t,i){return n.cookie(t)!==null?(n.cookie(t,null,i),!0):!1}}(jQuery,document),function(n){"use strict";function t(n){return(n||"").toLowerCase()}var i="20130205";n.fn.cycle=function(i){var r;return this.length===0&&!n.isReady?(r={s:this.selector,c:this.context},n.fn.cycle.log("requeuing slideshow (dom not ready)"),n(function(){n(r.s,r.c).cycle(i)}),this):this.each(function(){var f,r,h,o,u=n(this),s=n.fn.cycle.log,e;if(!u.data("cycle.opts")){(u.data("cycle-log")===!1||i&&i.log===!1||r&&r.log===!1)&&(s=n.noop),s("--c2 init--"),f=u.data();for(e in f)f.hasOwnProperty(e)&&/^cycle[A-Z]+/.test(e)&&(o=f[e],h=e.match(/^cycle(.*)/)[1].replace(/^[A-Z]/,t),s(h+":",o,"("+typeof o+")"),f[h]=o);r=n.extend({},n.fn.cycle.defaults,f,i||{}),r.timeoutId=0,r.paused=r.paused||!1,r.container=u,r._maxZ=r.maxZ,r.API=n.extend({_container:u},n.fn.cycle.API),r.API.log=s,r.API.trigger=function(n,t){return r.container.trigger(n,t),r.API},u.data("cycle.opts",r),u.data("cycle.API",r.API),r.API.trigger("cycle-bootstrap",[r,r.API]),r.API.addInitialSlides(),r.API.preInitSlideshow(),r.slides.length&&r.API.initSlideshow()}})},n.fn.cycle.API={opts:function(){return this._container.data("cycle.opts")},addInitialSlides:function(){var t=this.opts(),i=t.slides;t.slideCount=0,t.slides=n(),i=i.jquery?i:t.container.find(i),t.random&&i.sort(function(){return Math.random()-.5}),t.API.add(i)},preInitSlideshow:function(){var t=this.opts(),i;t.API.trigger("cycle-pre-initialize",[t]),i=n.fn.cycle.transitions[t.fx],i&&n.isFunction(i.preInit)&&i.preInit(t),t._preInitialized=!0},postInitSlideshow:function(){var t=this.opts(),i;t.API.trigger("cycle-post-initialize",[t]),i=n.fn.cycle.transitions[t.fx],i&&n.isFunction(i.postInit)&&i.postInit(t)},initSlideshow:function(){var t=this.opts(),i=t.container;t.API.calcFirstSlide(),t.container.css("position")=="static"&&t.container.css("position","relative"),n(t.slides[t.currSlide]).css("opacity",1).show(),t.API.stackSlides(t.slides[t.currSlide],t.slides[t.nextSlide],!t.reverse),t.pauseOnHover&&(t.pauseOnHover!==!0&&(i=n(t.pauseOnHover)),i.hover(function(){t.hoverPaused=!0,t.paused||t.API.trigger("cycle-paused",[t])},function(){t.hoverPaused=!1,t.paused||t.API.trigger("cycle-resumed",[t])})),t.timeout&&(t.timeoutId=setTimeout(function(){t.API.prepareTx(!1,!t.reverse)},t.timeout+t.delay)),t._initialized=!0,t.API.updateView(!0);t.container.on("cycle-paused cycle-resumed",function(n){t.container[n.type==="cycle-paused"?"addClass":"removeClass"]("cycle-paused")});t.API.trigger("cycle-initialized",[t]),t.API.postInitSlideshow()},add:function(t,i){var r=this.opts(),e=r.slideCount,u=!1,f;n.type(t)=="string"&&(t=n.trim(t)),n(t).each(function(){var f,u=n(this);i?r.container.prepend(u):r.container.append(u),r.slideCount++,f=r.API.buildSlideOpts(u),r.slides=i?n(u).add(r.slides):r.slides.add(u),r.API.initSlide(f,u,--r._maxZ),u.data("cycle.opts",f),r.API.trigger("cycle-slide-added",[r,f,u])}),r.API.updateView(!0),u=r._preInitialized&&e<2&&r.slideCount>=1,u&&(r._initialized?r.timeout&&(f=r.slides.length,r.nextSlide=r.reverse?f-1:1,r.timeoutId||r.API.queueTransition(r)):r.API.initSlideshow())},calcFirstSlide:function(){var n=this.opts(),t;t=parseInt(n.startingSlide||0,10),(t>=n.slides.length||t<0)&&(t=0),n.currSlide=t,n.reverse?(n.nextSlide=t-1,n.nextSlide<0&&(n.nextSlide=n.slides.length-1)):(n.nextSlide=t+1,n.nextSlide==n.slides.length&&(n.nextSlide=0))},calcNextSlide:function(){var n=this.opts(),t;n.reverse?(t=n.nextSlide-1<0,n.nextSlide=t?n.slideCount-1:n.nextSlide-1,n.currSlide=t?0:n.nextSlide+1):(t=n.nextSlide+1==n.slides.length,n.nextSlide=t?0:n.nextSlide+1,n.currSlide=t?n.slides.length-1:n.nextSlide-1)},calcTx:function(t,i){var u=t,r;return i&&u.manualFx&&(r=n.fn.cycle.transitions[u.manualFx]),r||(r=n.fn.cycle.transitions[u.fx]),r||(r=n.fn.cycle.transitions.fade,u.API.log('Transition "'+u.fx+'" not found.  Using fade.')),r},prepareTx:function(n,t){var i=this.opts(),o,f,e,r,u;if(i.slideCount<2){i.timeoutId=0;return}(n&&(!i.busy||i.manualTrump)&&(i.API.stopTransition(),i.busy=!1,clearTimeout(i.timeoutId),i.timeoutId=0),i.busy)||(i.timeoutId!==0||n)&&(f=i.slides[i.currSlide],e=i.slides[i.nextSlide],r=i.API.getSlideOpts(i.nextSlide),u=i.API.calcTx(r,n),i._tx=u,n&&r.manualSpeed!==undefined&&(r.speed=r.manualSpeed),i.nextSlide!=i.currSlide&&(n||!i.paused&&!i.hoverPaused&&i.timeout)?(i.API.trigger("cycle-before",[r,f,e,t]),u.before&&u.before(r,f,e,t),o=function(){(i.busy=!1,i.container.data("cycle.opts"))&&(u.after&&u.after(r,f,e,t),i.API.trigger("cycle-after",[r,f,e,t]),i.API.queueTransition(r),i.API.updateView(!0))},i.busy=!0,u.transition?u.transition(r,f,e,t,o):i.API.doTransition(r,f,e,t,o),i.API.calcNextSlide(),i.updateView<0&&i.API.updateView()):i.API.queueTransition(r))},doTransition:function(t,i,r,u,f){var e=t,o=n(i),s=n(r),h=function(){s.animate(e.animIn||{opacity:1},e.speed,e.easeIn||e.easing,f)};s.css(e.cssBefore||{}),o.animate(e.animOut||{},e.speed,e.easeOut||e.easing,function(){o.css(e.cssAfter||{}),e.sync||h()}),e.sync&&h()},queueTransition:function(n){var t=this.opts();if(t.nextSlide===0&&--t.loop==0){t.API.log("terminating; loop=0"),t.timeout=0,t.API.trigger("cycle-finished",[t]),t.nextSlide=t.currSlide;return}n.timeout&&(t.timeoutId=setTimeout(function(){t.API.prepareTx(!1,!t.reverse)},n.timeout))},stopTransition:function(){var n=this.opts();n.slides.filter(":animated").length&&(n.slides.stop(!1,!0),n.API.trigger("cycle-transition-stopped",[n])),n._tx&&n._tx.stopTransition&&n._tx.stopTransition(n)},advanceSlide:function(n){var t=this.opts();return clearTimeout(t.timeoutId),t.timeoutId=0,t.nextSlide=t.currSlide+n,t.nextSlide<0?t.nextSlide=t.slides.length-1:t.nextSlide>=t.slides.length&&(t.nextSlide=0),t.API.prepareTx(!0,n>=0),!1},buildSlideOpts:function(i){var f=this.opts(),e,o,r=i.data()||{},u;for(u in r)r.hasOwnProperty(u)&&/^cycle[A-Z]+/.test(u)&&(e=r[u],o=u.match(/^cycle(.*)/)[1].replace(/^[A-Z]/,t),f.API.log("["+(f.slideCount-1)+"]",o+":",e,"("+typeof e+")"),r[o]=e);r=n.extend({},n.fn.cycle.defaults,f,r),r.slideNum=f.slideCount;try{delete r.API,delete r.slideCount,delete r.currSlide,delete r.nextSlide,delete r.slides}catch(s){}return r},getSlideOpts:function(t){var i=this.opts(),r,u;return t===undefined&&(t=i.currSlide),r=i.slides[t],u=n(r).data("cycle.opts"),n.extend({},i,u)},initSlide:function(t,i,r){var u=this.opts();i.css(t.slideCss||{}),r>0&&i.css("zIndex",r),isNaN(t.speed)&&(t.speed=n.fx.speeds[t.speed]||n.fx.speeds._default),t.sync||(t.speed=t.speed/2),i.addClass(u.slideClass)},updateView:function(n){var t=this.opts(),i,r;t._initialized&&(i=t.API.getSlideOpts(),r=t.slides[t.currSlide],t.slideActiveClass&&t.slides.removeClass(t.slideActiveClass).eq(t.currSlide).addClass(t.slideActiveClass),n&&t.hideNonActive&&t.slides.filter(":not(."+t.slideActiveClass+")").hide(),t.API.trigger("cycle-update-view",[t,i,r]))},getComponent:function(t){var r=this.opts(),i=r[t];return typeof i=="string"?/^\s*\>/.test(i)?r.container.find(i):n(i):i.jquery?i:n(i)},stackSlides:function(t,i,r){var u=this.opts(),f,e,o;if(t||(t=u.slides[u.currSlide],i=u.slides[u.nextSlide],r=!u.reverse),n(t).css("zIndex",u.maxZ),e=u.maxZ-2,o=u.slideCount,r){for(f=u.currSlide+1;f<o;f++)n(u.slides[f]).css("zIndex",e--);for(f=0;f<u.currSlide;f++)n(u.slides[f]).css("zIndex",e--)}else{for(f=u.currSlide-1;f>=0;f--)n(u.slides[f]).css("zIndex",e--);for(f=o-1;f>u.currSlide;f--)n(u.slides[f]).css("zIndex",e--)}n(i).css("zIndex",u.maxZ-1)},getSlideIndex:function(n){return this.opts().slides.index(n)}},n.fn.cycle.log=function(){window.console&&console.log&&console.log("[cycle2] "+Array.prototype.join.call(arguments," "))},n.fn.cycle.version=function(){return"Cycle2: "+i},n.fn.cycle.transitions={custom:{},none:{before:function(n,t,i,r){n.API.stackSlides(i,t,r),n.cssBefore={opacity:1,display:"block"}}},fade:{before:function(t,i,r,u){var f=t.API.getSlideOpts(t.nextSlide).slideCss||{};t.API.stackSlides(i,r,u),t.cssBefore=n.extend(f,{opacity:0,display:"block"}),t.animIn={opacity:1},t.animOut={opacity:0}}},fadeout:{before:function(t,i,r,u){var f=t.API.getSlideOpts(t.nextSlide).slideCss||{};t.API.stackSlides(i,r,u),t.cssBefore=n.extend(f,{opacity:1,display:"block"}),t.animOut={opacity:0}}},scrollHorz:{before:function(n,t,i,r){n.API.stackSlides(t,i,r);var u=n.container.css("overflow","hidden").width();n.cssBefore={left:r?u:-u,top:0,opacity:1,display:"block"},n.cssAfter={zIndex:n._maxZ-2,left:0},n.animIn={left:0},n.animOut={left:r?-u:u}}}},n.fn.cycle.defaults={allowWrap:!0,autoSelector:".cycle-slideshow[data-cycle-auto-init!=false]",delay:0,easing:null,fx:"fade",hideNonActive:!0,loop:0,manualFx:undefined,manualSpeed:undefined,manualTrump:!0,maxZ:100,pauseOnHover:!1,reverse:!1,slideActiveClass:"cycle-slide-active",slideClass:"cycle-slide",slideCss:{position:"absolute",top:0,left:0},slides:"> img",speed:500,startingSlide:0,sync:!0,timeout:4e3,updateView:-1},n(document).ready(function(){n(n.fn.cycle.defaults.autoSelector).cycle()})}(jQuery),function(n){"use strict";n.extend(n.fn.cycle.defaults,{autoHeight:0});n(document).on("cycle-initialized",function(t,i){function o(){i.container.height(i.container.width()/f)}var r=i.autoHeight,e=-1,u,f;if(r==="calc"||n.type(r)=="number"&&r>=0)r==="calc"?i.slides.each(function(t){var i=n(this).height();i>e&&(e=i,r=t)}):r>=i.slides.length&&(r=0),u=n(i.slides[r]).clone(),u.removeAttr("id name rel").find("[id],[name],[rel]").removeAttr("id name rel"),u.css({position:"static",visibility:"hidden",display:"block"}).prependTo(i.container).removeClass().addClass("cycle-sentinel cycle-slide"),u.find("*").css("visibility","hidden"),i._sentinel=u;else if(n.type(r)=="string"&&/\d+\:\d+/.test(r)){f=r.match(/(\d+)\:(\d+)/),f=f[1]/f[2];n(window).on("resize",o);i._autoHeightOnResize=o,setTimeout(function(){n(window).triggerHandler("resize")},15)}});n(document).on("cycle-destroyed",function(t,i){i._sentinel&&i._sentinel.remove(),i._autoHeightOnResize&&n(window).off("resize",i._autoHeightOnResize)})}(jQuery),function(n){"use strict";n.extend(n.fn.cycle.defaults,{caption:"> .cycle-caption",captionTemplate:"{{slideNum}} / {{slideCount}}",overlay:"> .cycle-overlay",overlayTemplate:"<div>{{title}}<\/div><div>{{desc}}<\/div>"});n(document).on("cycle-update-view",function(t,i,r,u){var f;n.each(["caption","overlay"],function(){var t=this,f=r[t+"Template"],n=i.API.getComponent(t);n.length&&f?(n.html(i.API.tmpl(f,r,i,u)),n.show()):n.hide()})});n(document).on("cycle-destroyed",function(t,i){var r;n.each(["caption","overlay"],function(){var n=this,t=i[n+"Template"];i[n]&&t&&(r=i.API.getComponent("caption"),r.empty())})})}(jQuery),function(n){"use strict";var t=n.fn.cycle;n.fn.cycle=function(i){var r,f,u,e=n.makeArray(arguments);return n.type(i)=="number"?this.cycle("goto",i):n.type(i)=="string"?this.each(function(){var o;if(r=i,u=n(this).data("cycle.opts"),u===undefined){t.log('slideshow must be initialized before sending commands; "'+r+'" ignored');return}if(r=r=="goto"?"jump":r,f=u.API[r],n.isFunction(f))return o=n.makeArray(e),o.shift(),f.apply(u.API,o);t.log("unknown command: ",r)}):t.apply(this,arguments)},n.extend(n.fn.cycle,t),n.extend(t.API,{next:function(){var n=this.opts(),t;(!n.busy||n.manualTrump)&&((t=n.reverse?-1:1,n.allowWrap===!1&&n.currSlide+t>=n.slideCount)||(n.API.advanceSlide(t),n.API.trigger("cycle-next",[n]).log("cycle-next")))},prev:function(){var n=this.opts(),t;(!n.busy||n.manualTrump)&&((t=n.reverse?1:-1,n.allowWrap===!1&&n.currSlide+t<0)||(n.API.advanceSlide(t),n.API.trigger("cycle-prev",[n]).log("cycle-prev")))},destroy:function(){var n=this.opts();clearTimeout(n.timeoutId),n.timeoutId=0,n.API.stop(),n.API.trigger("cycle-destroyed",[n]).log("cycle-destroyed"),n.container.removeData("cycle.opts"),n.retainStylesOnDestroy||(n.container.removeAttr("style"),n.slides.removeAttr("style"),n.slides.removeClass("cycle-slide-active"))},jump:function(n){var r,t=this.opts(),i;if(!t.busy||t.manualTrump){if(i=parseInt(n,10),isNaN(i)||i<0||i>=t.slides.length){t.API.log("goto: invalid slide index: "+i);return}if(i==t.currSlide){t.API.log("goto: skipping, already on slide",i);return}t.nextSlide=i,clearTimeout(t.timeoutId),t.timeoutId=0,t.API.log("goto: ",i," (zero-index)"),r=t.currSlide<t.nextSlide,t.API.prepareTx(!0,r)}},stop:function(){var t=this.opts(),i=t.container;clearTimeout(t.timeoutId),t.timeoutId=0,t.API.stopTransition(),t.pauseOnHover&&(t.pauseOnHover!==!0&&(i=n(t.pauseOnHover)),i.off("mouseenter mouseleave")),t.API.trigger("cycle-stopped",[t]).log("cycle-stopped")},pause:function(){var n=this.opts();n.paused=!0,n.API.trigger("cycle-paused",[n]).log("cycle-paused")},resume:function(){var n=this.opts();n.paused=!1,n.API.trigger("cycle-resumed",[n]).log("cycle-resumed")},reinit:function(){var n=this.opts();n.API.destroy(),n.container.cycle()},remove:function(t){for(var i=this.opts(),u,f,e=[],o=1,r=0;r<i.slides.length;r++)u=i.slides[r],r==t?f=u:(e.push(u),n(u).data("cycle.opts").slideNum=o,o++);f&&(i.slides=n(e),i.slideCount--,n(f).remove(),t==i.currSlide&&i.API.advanceSlide(1),i.API.trigger("cycle-slide-removed",[i,t,f]).log("cycle-slide-removed"),i.API.updateView())}});n(document).on("click.cycle","[data-cycle-cmd]",function(t){t.preventDefault();var i=n(this),r=i.data("cycle-cmd"),u=i.data("cycle-context")||".cycle-slideshow";n(u).cycle(r,i.data("cycle-arg"))})}(jQuery),function(n){"use strict";function t(t,i){var r;if(t._hashFence){t._hashFence=!1;return}r=window.location.hash.substring(1),t.slides.each(function(u){if(n(this).data("cycle-hash")==r)return i===!0?t.startingSlide=u:(t.nextSlide=u,t.API.prepareTx(!0,!1)),!1})}n(document).on("cycle-pre-initialize",function(i,r){t(r,!0),r._onHashChange=function(){t(r,!1)};n(window).on("hashchange",r._onHashChange)});n(document).on("cycle-update-view",function(n,t,i){i.hash&&(t._hashFence=!0,window.location.hash=i.hash)});n(document).on("cycle-destroyed",function(t,i){i._onHashChange&&n(window).off("hashchange",i._onHashChange)})}(jQuery),function(n){"use strict";n.extend(n.fn.cycle.defaults,{loader:!1});n(document).on("cycle-bootstrap",function(t,i){function u(t,u){function o(t){var o;i.loader=="wait"?(e.push(t),f===0&&(e.sort(s),r.apply(i.API,[e,u]),i.container.removeClass("cycle-loading"))):(o=n(i.slides[i.currSlide]),r.apply(i.API,[t,u]),o.show(),i.container.removeClass("cycle-loading"))}function s(n,t){return n.data("index")-t.data("index")}var e=[],f;typeof t=="string"&&(t=n.trim(t)),t=n(t),f=t.length,t.hide().appendTo("body").each(function(t){function l(){--c==0&&(--f,o(s))}var c=0,s=n(this),h=s.is("img")?s:s.find("img");if(s.data("index",t),h=h.filter(":not(.cycle-loader-ignore)"),!h.length){--f,e.push(s);return}c=h.length,h.each(function(){this.complete?l():n(this).load(function(){l()}).error(function(){--c==0&&(i.API.log("slide skipped; img not loaded:",this.src),--f==0&&i.loader=="wait"&&r.apply(i.API,[e,u]))})})}),f&&i.container.addClass("cycle-loading")}var r;i.loader&&(r=i.API.add,i.API.add=u)})}(jQuery),function(n){"use strict";function t(t,i,r){var u,f=t.API.getComponent("pager");f.each(function(){var f=n(this),e;i.pagerTemplate?(e=t.API.tmpl(i.pagerTemplate,i,t,r[0]),u=n(e).appendTo(f)):u=f.children().eq(t.slideCount-1);u.on(t.pagerEvent,function(n){n.preventDefault(),t.API.page(f,n.currentTarget)})})}function i(n,t){var i=this.opts();if(!i.busy||i.manualTrump){var u=n.children().index(t),r=u,f=i.currSlide<r;i.currSlide!=r&&(i.nextSlide=r,i.API.prepareTx(!0,f),i.API.trigger("cycle-pager-activated",[i,n,t]))}}n.extend(n.fn.cycle.defaults,{pager:"> .cycle-pager",pagerActiveClass:"cycle-pager-active",pagerEvent:"click.cycle",pagerTemplate:"<span>&bull;<\/span>"});n(document).on("cycle-bootstrap",function(n,i,r){r.buildPagerLink=t});n(document).on("cycle-slide-added",function(n,t,r,u){t.pager&&(t.API.buildPagerLink(t,r,u),t.API.page=i)});n(document).on("cycle-slide-removed",function(t,i,r){if(i.pager){var f=i.API.getComponent("pager");f.each(function(){var t=n(this);n(t.children()[r]).remove()})}});n(document).on("cycle-update-view",function(t,i){var u;i.pager&&(u=i.API.getComponent("pager"),u.each(function(){n(this).children().removeClass(i.pagerActiveClass).eq(i.currSlide).addClass(i.pagerActiveClass)}))});n(document).on("cycle-destroyed",function(n,t){var i;t.pager&&t.pagerTemplate&&(i=t.API.getComponent("pager"),i.empty())})}(jQuery),function(n){"use strict";n.extend(n.fn.cycle.defaults,{next:"> .cycle-next",nextEvent:"click.cycle",disabledClass:"disabled",prev:"> .cycle-prev",prevEvent:"click.cycle",swipe:!1});n(document).on("cycle-initialized",function(n,t){t.API.getComponent("next").off(t.nextEvent).on(t.nextEvent,function(n){n.preventDefault(),t.API.next()});t.API.getComponent("prev").off(t.prevEvent).on(t.prevEvent,function(n){n.preventDefault(),t.API.prev()});if(t.swipe){var i=t.swipeVert?"swipeUp.cycle":"swipeLeft.cycle swipeleft.cycle",r=t.swipeVert?"swipeDown.cycle":"swipeRight.cycle swiperight.cycle";t.container.on(i,function(){t.API.next()});t.container.on(r,function(){t.API.prev()})}});n(document).on("cycle-update-view",function(n,t){if(!t.allowWrap){var u=t.disabledClass,f=t.API.getComponent("next"),e=t.API.getComponent("prev"),o=t._prevBoundry||0,s=t._nextBoundry||t.slideCount-1;t.currSlide==s?f.addClass(u).prop("disabled",!0):f.removeClass(u).prop("disabled",!1),t.currSlide===o?e.addClass(u).prop("disabled",!0):e.removeClass(u).prop("disabled",!1)}});n(document).on("cycle-destroyed",function(t,i){n(i.next).off(i.nextEvent),n(i.prev).off(i.prevEvent),i.container.off("swipeleft.cycle swiperight.cycle swipeLeft.cycle swipeRight.cycle swipeUp.cycle swipeDown.cycle")})}(jQuery),function(n){"use strict";n.extend(n.fn.cycle.defaults,{progressive:!1});n(document).on("cycle-pre-initialize",function(t,i){if(i.progressive){var u=i.API,f=u.next,s=u.prev,e=u.prepareTx,h=n.type(i.progressive),r,o;if(h=="array")r=i.progressive;else if(n.isFunction(i.progressive))r=i.progressive(i);else if(h=="string"){if(o=n(i.progressive),r=n.trim(o.html()),!r)return;if(/^(\[)/.test(r))try{r=n.parseJSON(r)}catch(c){u.log("error parsing progressive slides",c);return}else r=r.split(new RegExp(o.data("cycle-split")||"\n")),r[r.length-0]||r.pop()}e&&(u.prepareTx=function(n,t){var f,u;if(n||r.length===0){e.apply(i.API,[n,t]);return}if(t&&i.currSlide==i.slideCount-1){u=r[0],r=r.slice(1);i.container.one("cycle-slide-added",function(n,t){setTimeout(function(){t.API.advanceSlide(1)},50)});i.API.add(u)}else if(t||i.currSlide!==0)e.apply(i.API,[n,t]);else{f=r.length-1,u=r[f],r=r.slice(0,f);i.container.one("cycle-slide-added",function(n,t){setTimeout(function(){t.currSlide=1,t.API.advanceSlide(-1)},50)});i.API.add(u,!0)}}),f&&(u.next=function(){var n=this.opts(),t;if(r.length&&n.currSlide==n.slideCount-1){t=r[0],r=r.slice(1);n.container.one("cycle-slide-added",function(n,t){f.apply(t.API),t.container.removeClass("cycle-loading")});n.container.addClass("cycle-loading"),n.API.add(t)}else f.apply(n.API)}),s&&(u.prev=function(){var n=this.opts(),t,i;if(r.length&&n.currSlide===0){t=r.length-1,i=r[t],r=r.slice(0,t);n.container.one("cycle-slide-added",function(n,t){t.currSlide=1,t.API.advanceSlide(-1),t.container.removeClass("cycle-loading")});n.container.addClass("cycle-loading"),n.API.add(i,!0)}else s.apply(n.API)})}})}(jQuery),function(n){"use strict";n.extend(n.fn.cycle.defaults,{tmplRegex:"{{((.)?.*?)}}"}),n.extend(n.fn.cycle.API,{tmpl:function(t,i){var u=new RegExp(i.tmplRegex||n.fn.cycle.defaults.tmplRegex,"g"),r=n.makeArray(arguments);return r.shift(),t.replace(u,function(t,i){for(var e,f,u,s=i.split("."),o=0;o<r.length;o++)if(f=r[o],f){if(s.length>1)for(u=f,e=0;e<s.length;e++)f=u,u=u[s[e]]||i;else u=f[i];if(n.isFunction(u))return u.apply(f,r);if(u!==undefined&&u!==null&&u!=i)return u}return i})}})}(jQuery),jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(n,t,i,r,u){return jQuery.easing[jQuery.easing.def](n,t,i,r,u)},easeInQuad:function(n,t,i,r,u){return r*(t/=u)*t+i},easeOutQuad:function(n,t,i,r,u){return-r*(t/=u)*(t-2)+i},easeInOutQuad:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t+i:-r/2*(--t*(t-2)-1)+i},easeInCubic:function(n,t,i,r,u){return r*(t/=u)*t*t+i},easeOutCubic:function(n,t,i,r,u){return r*((t=t/u-1)*t*t+1)+i},easeInOutCubic:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t+i:r/2*((t-=2)*t*t+2)+i},easeInQuart:function(n,t,i,r,u){return r*(t/=u)*t*t*t+i},easeOutQuart:function(n,t,i,r,u){return-r*((t=t/u-1)*t*t*t-1)+i},easeInOutQuart:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t*t+i:-r/2*((t-=2)*t*t*t-2)+i},easeInQuint:function(n,t,i,r,u){return r*(t/=u)*t*t*t*t+i},easeOutQuint:function(n,t,i,r,u){return r*((t=t/u-1)*t*t*t*t+1)+i},easeInOutQuint:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t*t*t+i:r/2*((t-=2)*t*t*t*t+2)+i},easeInSine:function(n,t,i,r,u){return-r*Math.cos(t/u*(Math.PI/2))+r+i},easeOutSine:function(n,t,i,r,u){return r*Math.sin(t/u*(Math.PI/2))+i},easeInOutSine:function(n,t,i,r,u){return-r/2*(Math.cos(Math.PI*t/u)-1)+i},easeInExpo:function(n,t,i,r,u){return t==0?i:r*Math.pow(2,10*(t/u-1))+i},easeOutExpo:function(n,t,i,r,u){return t==u?i+r:r*(-Math.pow(2,-10*t/u)+1)+i},easeInOutExpo:function(n,t,i,r,u){return t==0?i:t==u?i+r:(t/=u/2)<1?r/2*Math.pow(2,10*(t-1))+i:r/2*(-Math.pow(2,-10*--t)+2)+i},easeInCirc:function(n,t,i,r,u){return-r*(Math.sqrt(1-(t/=u)*t)-1)+i},easeOutCirc:function(n,t,i,r,u){return r*Math.sqrt(1-(t=t/u-1)*t)+i},easeInOutCirc:function(n,t,i,r,u){return(t/=u/2)<1?-r/2*(Math.sqrt(1-t*t)-1)+i:r/2*(Math.sqrt(1-(t-=2)*t)+1)+i},easeInElastic:function(n,t,i,r,u){var o=1.70158,f=0,e=r;return t==0?i:(t/=u)==1?i+r:(f||(f=u*.3),e<Math.abs(r)?(e=r,o=f/4):o=f/(2*Math.PI)*Math.asin(r/e),-(e*Math.pow(2,10*(t-=1))*Math.sin((t*u-o)*2*Math.PI/f))+i)},easeOutElastic:function(n,t,i,r,u){var o=1.70158,f=0,e=r;return t==0?i:(t/=u)==1?i+r:(f||(f=u*.3),e<Math.abs(r)?(e=r,o=f/4):o=f/(2*Math.PI)*Math.asin(r/e),e*Math.pow(2,-10*t)*Math.sin((t*u-o)*2*Math.PI/f)+r+i)},easeInOutElastic:function(n,t,i,r,u){var o=1.70158,f=0,e=r;return t==0?i:(t/=u/2)==2?i+r:(f||(f=u*.3*1.5),e<Math.abs(r)?(e=r,o=f/4):o=f/(2*Math.PI)*Math.asin(r/e),t<1)?-.5*e*Math.pow(2,10*(t-=1))*Math.sin((t*u-o)*2*Math.PI/f)+i:e*Math.pow(2,-10*(t-=1))*Math.sin((t*u-o)*2*Math.PI/f)*.5+r+i},easeInBack:function(n,t,i,r,u,f){return f==undefined&&(f=1.70158),r*(t/=u)*t*((f+1)*t-f)+i},easeOutBack:function(n,t,i,r,u,f){return f==undefined&&(f=1.70158),r*((t=t/u-1)*t*((f+1)*t+f)+1)+i},easeInOutBack:function(n,t,i,r,u,f){return(f==undefined&&(f=1.70158),(t/=u/2)<1)?r/2*t*t*(((f*=1.525)+1)*t-f)+i:r/2*((t-=2)*t*(((f*=1.525)+1)*t+f)+2)+i},easeInBounce:function(n,t,i,r,u){return r-jQuery.easing.easeOutBounce(n,u-t,0,r,u)+i},easeOutBounce:function(n,t,i,r,u){return(t/=u)<1/2.75?r*7.5625*t*t+i:t<2/2.75?r*(7.5625*(t-=1.5/2.75)*t+.75)+i:t<2.5/2.75?r*(7.5625*(t-=2.25/2.75)*t+.9375)+i:r*(7.5625*(t-=2.625/2.75)*t+.984375)+i},easeInOutBounce:function(n,t,i,r,u){return t<u/2?jQuery.easing.easeInBounce(n,t*2,0,r,u)*.5+i:jQuery.easing.easeOutBounce(n,t*2-u,0,r,u)*.5+r*.5+i}}),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):n(jQuery)}(function(n,t){function ot(n){function u(){t?(r(),et(u),i=!0,t=!1):i=!1}var r=n,t=!1,i=!1;this.kick=function(){t=!0,i||u()},this.end=function(n){var u=r;n&&(i?(r=t?function(){u(),n()}:n,t=!0):n())}}function st(){return!0}function l(){return!1}function a(n){n.preventDefault()}function v(n){c[n.target.tagName.toLowerCase()]||n.preventDefault()}function ht(n){return n.which===1&&!n.ctrlKey&&!n.altKey}function o(n,t){var i,r;if(n.identifiedTouch)return n.identifiedTouch(t);for(i=-1,r=n.length;++i<r;)if(n[i].identifier===t)return n[i]}function y(n,t){var i=o(n.changedTouches,t.identifier);if(i)return i.pageX===t.pageX&&i.pageY===t.pageY?void 0:i}function ct(n){var t;ht(n)&&(t={target:n.target,startX:n.pageX,startY:n.pageY,timeStamp:n.timeStamp},i(document,u.move,p,t),i(document,u.cancel,lt,t))}function p(n){var t=n.data;d(n,t,n,s)}function lt(){s()}function s(){r(document,u.move,p),r(document,u.cancel,s)}function at(n){var t,r;c[n.target.tagName.toLowerCase()]||(t=n.changedTouches[0],r={target:t.target,startX:t.pageX,startY:t.pageY,timeStamp:n.timeStamp,identifier:t.identifier},i(document,f.move+"."+t.identifier,w,r),i(document,f.cancel+"."+t.identifier,b,r))}function w(n){var t=n.data,i=y(n,t);i&&d(n,t,i,k)}function b(n){var t=n.data,i=o(n.changedTouches,t.identifier);i&&k(t.identifier)}function k(n){r(document,"."+n,w),r(document,"."+n,b)}function d(n,t,i,r){var u=i.pageX-t.startX,f=i.pageY-t.startY;u*u+f*f<h*h||yt(n,t,i,u,f,r)}function vt(){return this._handled=st,!1}function g(n){n._handled()}function yt(n,t,i,r,u,f){var h=t.target,o,s;o=n.targetTouches,s=n.timeStamp-t.timeStamp,t.type="movestart",t.distX=r,t.distY=u,t.deltaX=r,t.deltaY=u,t.pageX=i.pageX,t.pageY=i.pageY,t.velocityX=r/s,t.velocityY=u/s,t.targetTouches=o,t.finger=o?o.length:1,t._handled=vt,t._preventTouchmoveDefault=function(){n.preventDefault()},e(t.target,t),f(t.identifier)}function nt(n){var t=n.data.event,i=n.data.timer;ut(t,n,n.timeStamp,i)}function tt(n){var t=n.data.event,i=n.data.timer;pt(),ft(t,i,function(){setTimeout(function(){r(t.target,"click",l)},0)})}function pt(){r(document,u.move,nt),r(document,u.end,tt)}function it(n){var t=n.data.event,r=n.data.timer,i=y(n,t);i&&(n.preventDefault(),t.targetTouches=n.targetTouches,ut(t,i,n.timeStamp,r))}function rt(n){var t=n.data.event,i=n.data.timer,r=o(n.changedTouches,t.identifier);r&&(wt(t),ft(t,i))}function wt(n){r(document,"."+n.identifier,it),r(document,"."+n.identifier,rt)}function ut(n,t,i,r){var u=i-n.timeStamp;n.type="move",n.distX=t.pageX-n.startX,n.distY=t.pageY-n.startY,n.deltaX=t.pageX-n.pageX,n.deltaY=t.pageY-n.pageY,n.velocityX=.3*n.velocityX+.7*n.deltaX/u,n.velocityY=.3*n.velocityY+.7*n.deltaY/u,n.pageX=t.pageX,n.pageY=t.pageY,r.kick()}function ft(n,t,i){t.end(function(){return n.type="moveend",e(n.target,n),i&&i()})}function bt(){return i(this,"movestart.move",g),!0}function kt(){return r(this,"dragstart drag",a),r(this,"mousedown touchstart",v),r(this,"movestart",g),!0}function dt(n){n.namespace!=="move"&&n.namespace!=="moveend"&&(i(this,"dragstart."+n.guid+" drag."+n.guid,a,t,n.selector),i(this,"mousedown."+n.guid,v,t,n.selector))}function gt(n){n.namespace!=="move"&&n.namespace!=="moveend"&&(r(this,"dragstart."+n.guid+" drag."+n.guid),r(this,"mousedown."+n.guid))}var h=6,i=n.event.add,r=n.event.remove,e=function(t,i,r){n.event.trigger(i,r,t)},et=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(n){return window.setTimeout(function(){n()},25)}}(),c={textarea:!0,input:!0,select:!0,button:!0},u={move:"mousemove",cancel:"mouseup dragstart",end:"mouseup"},f={move:"touchmove",cancel:"touchend",end:"touchend"};n.event.special.movestart={setup:bt,teardown:kt,add:dt,remove:gt,_default:function(n){var o,r;n._handled()&&(o={target:n.target,startX:n.startX,startY:n.startY,pageX:n.pageX,pageY:n.pageY,distX:n.distX,distY:n.distY,deltaX:n.deltaX,deltaY:n.deltaY,velocityX:n.velocityX,velocityY:n.velocityY,timeStamp:n.timeStamp,identifier:n.identifier,targetTouches:n.targetTouches,finger:n.finger},r={event:o,timer:new ot(function(){e(n.target,o)})},n.identifier===t?(i(n.target,"click",l),i(document,u.move,nt,r),i(document,u.end,tt,r)):(n._preventTouchmoveDefault(),i(document,f.move+"."+n.identifier,it,r),i(document,f.end+"."+n.identifier,rt,r)))}},n.event.special.move={setup:function(){i(this,"movestart.move",n.noop)},teardown:function(){r(this,"movestart.move",n.noop)}},n.event.special.moveend={setup:function(){i(this,"movestart.moveend",n.noop)},teardown:function(){r(this,"movestart.moveend",n.noop)}},i(document,"mousedown.move",ct),i(document,"touchstart.move",at),typeof Array.prototype.indexOf=="function"&&function(n){for(var i=["changedTouches","targetTouches"],r=i.length;r--;)n.event.props.indexOf(i[r])===-1&&n.event.props.push(i[r])}(n)}),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):n(jQuery)}(function(n){function u(n){var u,f,t;u=n.target.offsetWidth,f=n.target.offsetHeight,t={distX:n.distX,distY:n.distY,velocityX:n.velocityX,velocityY:n.velocityY,finger:n.finger},n.distX>n.distY?n.distX>-n.distY?(n.distX/u>i.threshold||n.velocityX*n.distX/u*i.sensitivity>1)&&(t.type="swiperight",r(n.currentTarget,t)):(-n.distY/f>i.threshold||n.velocityY*n.distY/u*i.sensitivity>1)&&(t.type="swipeup",r(n.currentTarget,t)):n.distX>-n.distY?(n.distY/f>i.threshold||n.velocityY*n.distY/u*i.sensitivity>1)&&(t.type="swipedown",r(n.currentTarget,t)):(-n.distX/u>i.threshold||n.velocityX*n.distX/u*i.sensitivity>1)&&(t.type="swipeleft",r(n.currentTarget,t))}function f(t){var i=n.data(t,"event_swipe");return i||(i={count:0},n.data(t,"event_swipe",i)),i}var e=n.event.add,o=n.event.remove,r=function(t,i,r){n.event.trigger(i,r,t)},i={threshold:.4,sensitivity:6};n.event.special.swipe=n.event.special.swipeleft=n.event.special.swiperight=n.event.special.swipeup=n.event.special.swipedown={setup:function(n){var n=f(this);if(!(n.count++>0))return e(this,"moveend",u),!0},teardown:function(){var n=f(this);if(!(--n.count>0))return o(this,"moveend",u),!0},settings:i}}),function(n){n.fn.fitText=function(t,i){var u=t||1,r=n.extend({minFontSize:Number.NEGATIVE_INFINITY,maxFontSize:Number.POSITIVE_INFINITY},i);return this.each(function(){var t=n(this),i=function(){t.css("font-size",Math.max(Math.min(t.width()/(u*10),parseFloat(r.maxFontSize)),parseFloat(r.minFontSize)))};i();n(window).on("resize.fittext orientationchange.fittext",i)})}}(jQuery),function(n){"use strict";n.fn.fitVids=function(t){var i={customSelector:null},r=document.createElement("div"),u=document.getElementsByTagName("base")[0]||document.getElementsByTagName("script")[0];return r.className="fit-vids-style",r.innerHTML="&shy;<style>               .fluid-width-video-wrapper {                 width: 100%;                              position: relative;                       padding: 0;                            }                                                                                   .fluid-width-video-wrapper iframe,        .fluid-width-video-wrapper object,        .fluid-width-video-wrapper embed {           position: absolute;                       top: 0;                                   left: 0;                                  width: 100%;                              height: 100%;                          }                                       <\/style>",u.parentNode.insertBefore(r,u),t&&n.extend(i,t),this.each(function(){var t=["iframe[src*='player.vimeo.com']","iframe[src*='youtube.com']","iframe[src*='youtube-nocookie.com']","iframe[src*='kickstarter.com']","iframe[src*='maps.google.com']","object","embed"],r;i.customSelector&&t.push(i.customSelector),r=n(this).find(t.join(",")),r.each(function(){var t=n(this),i;if((this.tagName.toLowerCase()!=="embed"||!t.parent("object").length)&&!t.parent(".fluid-width-video-wrapper").length){var r=this.tagName.toLowerCase()==="object"||t.attr("height")&&!isNaN(parseInt(t.attr("height"),10))?parseInt(t.attr("height"),10):t.height(),u=isNaN(parseInt(t.attr("width"),10))?t.width():parseInt(t.attr("width"),10),f=r/u;t.attr("id")||(i="fitvid"+Math.floor(Math.random()*999999),t.attr("id",i)),t.wrap('<div class="fluid-width-video-wrapper"><\/div>').parent(".fluid-width-video-wrapper").css("padding-top",f*100+"%"),t.removeAttr("height").removeAttr("width")}})})}}(jQuery),function(n){var t=!0;n.flexslider=function(i,r){var u=n(i);u.vars=n.extend({},n.flexslider.defaults,r);var e=u.vars.namespace,y=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture,p=("ontouchstart"in window||y||window.DocumentTouch&&document instanceof DocumentTouch)&&u.vars.touch,v="click touchend MSPointerUp keyup",h="",w,c=u.vars.direction==="vertical",s=u.vars.reverse,o=u.vars.itemWidth>0,l=u.vars.animation==="fade",a=u.vars.asNavFor!=="",f={};n.data(i,"flexslider",u),f={init:function(){u.animating=!1,u.currentSlide=parseInt(u.vars.startAt?u.vars.startAt:0,10),isNaN(u.currentSlide)&&(u.currentSlide=0),u.animatingTo=u.currentSlide,u.atEnd=u.currentSlide===0||u.currentSlide===u.last,u.containerSelector=u.vars.selector.substr(0,u.vars.selector.search(" ")),u.slides=n(u.vars.selector,u),u.container=n(u.containerSelector,u),u.count=u.slides.length,u.syncExists=n(u.vars.sync).length>0,u.vars.animation==="slide"&&(u.vars.animation="swing"),u.prop=c?"top":"marginLeft",u.args={},u.manualPause=!1,u.stopped=!1,u.started=!1,u.startTimeout=null,u.transitions=!u.vars.video&&!l&&u.vars.useCSS&&function(){var i=document.createElement("div"),n=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"],t;for(t in n)if(i.style[n[t]]!==undefined)return u.pfx=n[t].replace("Perspective","").toLowerCase(),u.prop="-"+u.pfx+"-transform",!0;return!1}(),u.ensureAnimationEnd="",u.vars.controlsContainer!==""&&(u.controlsContainer=n(u.vars.controlsContainer).length>0&&n(u.vars.controlsContainer)),u.vars.manualControls!==""&&(u.manualControls=n(u.vars.manualControls).length>0&&n(u.vars.manualControls)),u.vars.customDirectionNav!==""&&(u.customDirectionNav=n(u.vars.customDirectionNav).length===2&&n(u.vars.customDirectionNav)),u.vars.randomize&&(u.slides.sort(function(){return Math.round(Math.random())-.5}),u.container.empty().append(u.slides)),u.doMath(),u.setup("init"),u.vars.controlNav&&f.controlNav.setup(),u.vars.directionNav&&f.directionNav.setup(),u.vars.keyboard&&(n(u.containerSelector).length===1||u.vars.multipleKeyboard)&&n(document).bind("keyup",function(n){var t=n.keyCode,i;u.animating||t!==39&&t!==37||(i=t===39?u.getTarget("next"):t===37?u.getTarget("prev"):!1,u.flexAnimate(i,u.vars.pauseOnAction))}),u.vars.mousewheel&&u.bind("mousewheel",function(n,t){n.preventDefault();var f=t<0?u.getTarget("next"):u.getTarget("prev");u.flexAnimate(f,u.vars.pauseOnAction)}),u.vars.pausePlay&&f.pausePlay.setup(),u.vars.slideshow&&u.vars.pauseInvisible&&f.pauseInvisible.init(),u.vars.slideshow&&(u.vars.pauseOnHover&&u.hover(function(){u.manualPlay||u.manualPause||u.pause()},function(){u.manualPause||u.manualPlay||u.stopped||u.play()}),u.vars.pauseInvisible&&f.pauseInvisible.isHidden()||(u.vars.initDelay>0?u.startTimeout=setTimeout(u.play,u.vars.initDelay):u.play())),a&&f.asNav.setup(),p&&u.vars.touch&&f.touch(),(!l||l&&u.vars.smoothHeight)&&n(window).bind("resize orientationchange focus",f.resize),u.find("img").attr("draggable","false"),setTimeout(function(){u.vars.start(u)},200)},asNav:{setup:function(){if(u.asNav=!0,u.animatingTo=Math.floor(u.currentSlide/u.move),u.currentItem=u.currentSlide,u.slides.removeClass(e+"active-slide").eq(u.currentItem).addClass(e+"active-slide"),y)i._slider=u,u.slides.each(function(){var t=this;t._gesture=new MSGesture,t._gesture.target=t,t.addEventListener("MSPointerDown",function(n){n.preventDefault(),n.currentTarget._gesture&&n.currentTarget._gesture.addPointer(n.pointerId)},!1),t.addEventListener("MSGestureTap",function(t){t.preventDefault();var i=n(this),r=i.index();n(u.vars.asNavFor).data("flexslider").animating||i.hasClass("active")||(u.direction=u.currentItem<r?"next":"prev",u.flexAnimate(r,u.vars.pauseOnAction,!1,!0,!0))})});else u.slides.on(v,function(t){t.preventDefault();var i=n(this),r=i.index(),f=i.offset().left-n(u).scrollLeft();f<=0&&i.hasClass(e+"active-slide")?u.flexAnimate(u.getTarget("prev"),!0):n(u.vars.asNavFor).data("flexslider").animating||i.hasClass(e+"active-slide")||(u.direction=u.currentItem<r?"next":"prev",u.flexAnimate(r,u.vars.pauseOnAction,!1,!0,!0))})}},controlNav:{setup:function(){u.manualControls?f.controlNav.setupManual():f.controlNav.setupPaging()},setupPaging:function(){var l=u.vars.controlNav==="thumbnails"?"control-thumbs":"control-paging",c=1,o,t,i,s,r;if(u.controlNavScaffold=n('<ol class="'+e+"control-nav "+e+l+'"><\/ol>'),u.pagingCount>1)for(i=0;i<u.pagingCount;i++)t=u.slides.eq(i),undefined===t.attr("data-thumb-alt")&&t.attr("data-thumb-alt",""),s=""!==t.attr("data-thumb-alt")?s=' alt="'+t.attr("data-thumb-alt")+'"':"",o=u.vars.controlNav==="thumbnails"?'<img src="'+t.attr("data-thumb")+'"'+s+"/>":'<a href="#">'+c+"<\/a>","thumbnails"===u.vars.controlNav&&!0===u.vars.thumbCaptions&&(r=t.attr("data-thumbcaption"),""!==r&&undefined!==r&&(o+='<span class="'+e+'caption">'+r+"<\/span>")),u.controlNavScaffold.append("<li>"+o+"<\/li>"),c++;u.controlsContainer?n(u.controlsContainer).append(u.controlNavScaffold):u.append(u.controlNavScaffold),f.controlNav.set(),f.controlNav.active(),u.controlNavScaffold.delegate("a, img",v,function(t){if(t.preventDefault(),h===""||h===t.type){var i=n(this),r=u.controlNav.index(i);i.hasClass(e+"active")||(u.direction=r>u.currentSlide?"next":"prev",u.flexAnimate(r,u.vars.pauseOnAction))}h===""&&(h=t.type),f.setToClearWatchedEvent()})},setupManual:function(){u.controlNav=u.manualControls,f.controlNav.active(),u.controlNav.bind(v,function(t){if(t.preventDefault(),h===""||h===t.type){var i=n(this),r=u.controlNav.index(i);i.hasClass(e+"active")||(u.direction=r>u.currentSlide?"next":"prev",u.flexAnimate(r,u.vars.pauseOnAction))}h===""&&(h=t.type),f.setToClearWatchedEvent()})},set:function(){var t=u.vars.controlNav==="thumbnails"?"img":"a";u.controlNav=n("."+e+"control-nav li "+t,u.controlsContainer?u.controlsContainer:u)},active:function(){u.controlNav.removeClass(e+"active").eq(u.animatingTo).addClass(e+"active")},update:function(t,i){u.pagingCount>1&&t==="add"?u.controlNavScaffold.append(n('<li><a href="#">'+u.count+"<\/a><\/li>")):u.pagingCount===1?u.controlNavScaffold.find("li").remove():u.controlNav.eq(i).closest("li").remove(),f.controlNav.set(),u.pagingCount>1&&u.pagingCount!==u.controlNav.length?u.update(i,t):f.controlNav.active()}},directionNav:{setup:function(){var t=n('<ul class="'+e+'direction-nav"><li class="'+e+'nav-prev"><a class="'+e+'prev" href="#">'+u.vars.prevText+'<\/a><\/li><li class="'+e+'nav-next"><a class="'+e+'next" href="#">'+u.vars.nextText+"<\/a><\/li><\/ul>");u.customDirectionNav?u.directionNav=u.customDirectionNav:u.controlsContainer?(n(u.controlsContainer).append(t),u.directionNav=n("."+e+"direction-nav li a",u.controlsContainer)):(u.append(t),u.directionNav=n("."+e+"direction-nav li a",u)),f.directionNav.update(),u.directionNav.bind(v,function(t){t.preventDefault();var i;(h===""||h===t.type)&&(i=n(this).hasClass(e+"next")?u.getTarget("next"):u.getTarget("prev"),u.flexAnimate(i,u.vars.pauseOnAction)),h===""&&(h=t.type),f.setToClearWatchedEvent()})},update:function(){var n=e+"disabled";u.pagingCount===1?u.directionNav.addClass(n).attr("tabindex","-1"):u.vars.animationLoop?u.directionNav.removeClass(n).removeAttr("tabindex"):u.animatingTo===0?u.directionNav.removeClass(n).filter("."+e+"prev").addClass(n).attr("tabindex","-1"):u.animatingTo===u.last?u.directionNav.removeClass(n).filter("."+e+"next").addClass(n).attr("tabindex","-1"):u.directionNav.removeClass(n).removeAttr("tabindex")}},pausePlay:{setup:function(){var t=n('<div class="'+e+'pauseplay"><a href="#"><\/a><\/div>');u.controlsContainer?(u.controlsContainer.append(t),u.pausePlay=n("."+e+"pauseplay a",u.controlsContainer)):(u.append(t),u.pausePlay=n("."+e+"pauseplay a",u)),f.pausePlay.update(u.vars.slideshow?e+"pause":e+"play"),u.pausePlay.bind(v,function(t){t.preventDefault(),(h===""||h===t.type)&&(n(this).hasClass(e+"pause")?(u.manualPause=!0,u.manualPlay=!1,u.pause()):(u.manualPause=!1,u.manualPlay=!0,u.play())),h===""&&(h=t.type),f.setToClearWatchedEvent()})},update:function(n){n==="play"?u.pausePlay.removeClass(e+"pause").addClass(e+"play").html(u.vars.playText):u.pausePlay.removeClass(e+"play").addClass(e+"pause").html(u.vars.pauseText)}},touch:function(){var p,w,f,r,n,e,d,b,k,h=!1,a=0,v=0,t=0;if(y){i.style.msTouchAction="none",i._gesture=new MSGesture,i._gesture.target=i,i.addEventListener("MSPointerDown",g,!1),i._slider=u,i.addEventListener("MSGestureChange",nt,!1),i.addEventListener("MSGestureEnd",tt,!1);function g(n){n.stopPropagation(),u.animating?n.preventDefault():(u.pause(),i._gesture.addPointer(n.pointerId),t=0,r=c?u.h:u.w,e=Number(new Date),f=o&&s&&u.animatingTo===u.last?0:o&&s?u.limit-(u.itemW+u.vars.itemMargin)*u.move*u.animatingTo:o&&u.currentSlide===u.last?u.limit:o?(u.itemW+u.vars.itemMargin)*u.move*u.currentSlide:s?(u.last-u.currentSlide+u.cloneOffset)*r:(u.currentSlide+u.cloneOffset)*r)}function nt(u){var o,s,a;if(u.stopPropagation(),o=u.target._slider,o){if(s=-u.translationX,a=-u.translationY,t=t+(c?a:s),n=t,h=c?Math.abs(t)<Math.abs(-s):Math.abs(t)<Math.abs(-a),u.detail===u.MSGESTURE_FLAG_INERTIA){setImmediate(function(){i._gesture.stop()});return}(!h||Number(new Date)-e>500)&&(u.preventDefault(),!l&&o.transitions&&(o.vars.animationLoop||(n=t/(o.currentSlide===0&&t<0||o.currentSlide===o.last&&t>0?Math.abs(t)/r+2:1)),o.setProps(f+n,"setTouch")))}}function tt(i){var u,o,c;(i.stopPropagation(),u=i.target._slider,u)&&(u.animatingTo!==u.currentSlide||h||n===null||(o=s?-n:n,c=o>0?u.getTarget("next"):u.getTarget("prev"),u.canAdvance(c)&&(Number(new Date)-e<550&&Math.abs(o)>50||Math.abs(o)>r/2)?u.flexAnimate(c,u.vars.pauseOnAction):l||u.flexAnimate(u.currentSlide,u.vars.pauseOnAction,!0)),p=null,w=null,n=null,f=null,t=0)}}else d=function(n){u.animating?n.preventDefault():(window.navigator.msPointerEnabled||n.touches.length===1)&&(u.pause(),r=c?u.h:u.w,e=Number(new Date),a=n.touches[0].pageX,v=n.touches[0].pageY,f=o&&s&&u.animatingTo===u.last?0:o&&s?u.limit-(u.itemW+u.vars.itemMargin)*u.move*u.animatingTo:o&&u.currentSlide===u.last?u.limit:o?(u.itemW+u.vars.itemMargin)*u.move*u.currentSlide:s?(u.last-u.currentSlide+u.cloneOffset)*r:(u.currentSlide+u.cloneOffset)*r,p=c?v:a,w=c?a:v,i.addEventListener("touchmove",b,!1),i.addEventListener("touchend",k,!1))},b=function(t){a=t.touches[0].pageX,v=t.touches[0].pageY,n=c?p-v:p-a,h=c?Math.abs(n)<Math.abs(a-w):Math.abs(n)<Math.abs(v-w);var i=500;(!h||Number(new Date)-e>i)&&(t.preventDefault(),!l&&u.transitions&&(u.vars.animationLoop||(n=n/(u.currentSlide===0&&n<0||u.currentSlide===u.last&&n>0?Math.abs(n)/r+2:1)),u.setProps(f+n,"setTouch")))},k=function(){if(i.removeEventListener("touchmove",b,!1),u.animatingTo===u.currentSlide&&!h&&!(n===null)){var o=s?-n:n,c=o>0?u.getTarget("next"):u.getTarget("prev");u.canAdvance(c)&&(Number(new Date)-e<550&&Math.abs(o)>50||Math.abs(o)>r/2)?u.flexAnimate(c,u.vars.pauseOnAction):l||u.flexAnimate(u.currentSlide,u.vars.pauseOnAction,!0)}i.removeEventListener("touchend",k,!1),p=null,w=null,n=null,f=null},i.addEventListener("touchstart",d,!1)},resize:function(){!u.animating&&u.is(":visible")&&(o||u.doMath(),l?f.smoothHeight():o?(u.slides.width(u.computedW),u.update(u.pagingCount),u.setProps()):c?(u.viewport.height(u.h),u.setProps(u.h,"setTotal")):(u.vars.smoothHeight&&f.smoothHeight(),u.newSlides.width(u.computedW),u.setProps(u.computedW,"setTotal")))},smoothHeight:function(n){if(!c||l){var t=l?u:u.viewport;n?t.animate({height:u.slides.eq(u.animatingTo).innerHeight()},n):t.innerHeight(u.slides.eq(u.animatingTo).innerHeight())}},sync:function(t){var i=n(u.vars.sync).data("flexslider"),r=u.animatingTo;switch(t){case"animate":i.flexAnimate(r,u.vars.pauseOnAction,!1,!0);break;case"play":i.playing||i.asNav||i.play();break;case"pause":i.pause()}},uniqueID:function(t){return t.filter("[id]").add(t.find("[id]")).each(function(){var t=n(this);t.attr("id",t.attr("id")+"_clone")}),t},pauseInvisible:{visProp:null,init:function(){var n=f.pauseInvisible.getHiddenProp(),t;n&&(t=n.replace(/[H|h]idden/,"")+"visibilitychange",document.addEventListener(t,function(){f.pauseInvisible.isHidden()?u.startTimeout?clearTimeout(u.startTimeout):u.pause():u.started?u.play():u.vars.initDelay>0?setTimeout(u.play,u.vars.initDelay):u.play()}))},isHidden:function(){var n=f.pauseInvisible.getHiddenProp();return n?document[n]:!1},getHiddenProp:function(){var t=["webkit","moz","ms","o"],n;if("hidden"in document)return"hidden";for(n=0;n<t.length;n++)if(t[n]+"Hidden"in document)return t[n]+"Hidden";return null}},setToClearWatchedEvent:function(){clearTimeout(w),w=setTimeout(function(){h=""},3e3)}},u.flexAnimate=function(t,i,r,h,v){var b,y,d,w,k;if(u.vars.animationLoop||t===u.currentSlide||(u.direction=t>u.currentSlide?"next":"prev"),a&&u.pagingCount===1&&(u.direction=u.currentItem<t?"next":"prev"),!u.animating&&(u.canAdvance(t,v)||r)&&u.is(":visible")){if(a&&h)if(b=n(u.vars.asNavFor).data("flexslider"),u.atEnd=t===0||t===u.count-1,b.flexAnimate(t,!0,!1,!0,v),u.direction=u.currentItem<t?"next":"prev",b.direction=u.direction,Math.ceil((t+1)/u.visible)-1!==u.currentSlide&&t!==0)u.currentItem=t,u.slides.removeClass(e+"active-slide").eq(t).addClass(e+"active-slide"),t=Math.floor(t/u.visible);else return u.currentItem=t,u.slides.removeClass(e+"active-slide").eq(t).addClass(e+"active-slide"),!1;u.animating=!0,u.animatingTo=t,i&&u.pause(),u.vars.before(u),u.syncExists&&!v&&f.sync("animate"),u.vars.controlNav&&f.controlNav.active(),o||u.slides.removeClass(e+"active-slide").eq(t).addClass(e+"active-slide"),u.atEnd=t===0||t===u.last,u.vars.directionNav&&f.directionNav.update(),t===u.last&&(u.vars.end(u),u.vars.animationLoop||u.pause()),l?p?(u.slides.eq(u.currentSlide).css({opacity:0,zIndex:1}),u.slides.eq(t).css({opacity:1,zIndex:2}),u.wrapup(y)):(u.slides.eq(u.currentSlide).css({zIndex:1}).animate({opacity:0},u.vars.animationSpeed,u.vars.easing),u.slides.eq(t).css({zIndex:2}).animate({opacity:1},u.vars.animationSpeed,u.vars.easing,u.wrapup)):(y=c?u.slides.filter(":first").height():u.computedW,o?(d=u.vars.itemMargin,k=(u.itemW+d)*u.move*u.animatingTo,w=k>u.limit&&u.visible!==1?u.limit:k):w=u.currentSlide===0&&t===u.count-1&&u.vars.animationLoop&&u.direction!=="next"?s?(u.count+u.cloneOffset)*y:0:u.currentSlide===u.last&&t===0&&u.vars.animationLoop&&u.direction!=="prev"?s?0:(u.count+1)*y:s?(u.count-1-t+u.cloneOffset)*y:(t+u.cloneOffset)*y,u.setProps(w,"",u.vars.animationSpeed),u.transitions?(u.vars.animationLoop&&u.atEnd||(u.animating=!1,u.currentSlide=u.animatingTo),u.container.unbind("webkitTransitionEnd transitionend"),u.container.bind("webkitTransitionEnd transitionend",function(){clearTimeout(u.ensureAnimationEnd),u.wrapup(y)}),clearTimeout(u.ensureAnimationEnd),u.ensureAnimationEnd=setTimeout(function(){u.wrapup(y)},u.vars.animationSpeed+100)):u.container.animate(u.args,u.vars.animationSpeed,u.vars.easing,function(){u.wrapup(y)})),u.vars.smoothHeight&&f.smoothHeight(u.vars.animationSpeed)}},u.wrapup=function(n){l||o||(u.currentSlide===0&&u.animatingTo===u.last&&u.vars.animationLoop?u.setProps(n,"jumpEnd"):u.currentSlide===u.last&&u.animatingTo===0&&u.vars.animationLoop&&u.setProps(n,"jumpStart")),u.animating=!1,u.currentSlide=u.animatingTo,u.vars.after(u)},u.animateSlides=function(){!u.animating&&t&&u.flexAnimate(u.getTarget("next"))},u.pause=function(){clearInterval(u.animatedSlides),u.animatedSlides=null,u.playing=!1,u.vars.pausePlay&&f.pausePlay.update("play"),u.syncExists&&f.sync("pause")},u.play=function(){u.playing&&clearInterval(u.animatedSlides),u.animatedSlides=u.animatedSlides||setInterval(u.animateSlides,u.vars.slideshowSpeed),u.started=u.playing=!0,u.vars.pausePlay&&f.pausePlay.update("pause"),u.syncExists&&f.sync("play")},u.stop=function(){u.pause(),u.stopped=!0},u.canAdvance=function(n,t){var i=a?u.pagingCount-1:u.last;return t?!0:a&&u.currentItem===u.count-1&&n===0&&u.direction==="prev"?!0:a&&u.currentItem===0&&n===u.pagingCount-1&&u.direction!=="next"?!1:n===u.currentSlide&&!a?!1:u.vars.animationLoop?!0:u.atEnd&&u.currentSlide===0&&n===i&&u.direction!=="next"?!1:u.atEnd&&u.currentSlide===i&&n===0&&u.direction==="next"?!1:!0},u.getTarget=function(n){return u.direction=n,n==="next"?u.currentSlide===u.last?0:u.currentSlide+1:u.currentSlide===0?u.last:u.currentSlide-1},u.setProps=function(n,t,i){var r=function(){var i=n?n:(u.itemW+u.vars.itemMargin)*u.move*u.animatingTo,r=function(){if(o)return t==="setTouch"?n:s&&u.animatingTo===u.last?0:s?u.limit-(u.itemW+u.vars.itemMargin)*u.move*u.animatingTo:u.animatingTo===u.last?u.limit:i;switch(t){case"setTotal":return s?(u.count-1-u.currentSlide+u.cloneOffset)*n:(u.currentSlide+u.cloneOffset)*n;case"setTouch":return s?n:n;case"jumpEnd":return s?n:u.count*n;case"jumpStart":return s?u.count*n:n;default:return n}}();return r*-1+"px"}();u.transitions&&(r=c?"translate3d(0,"+r+",0)":"translate3d("+r+",0,0)",i=i!==undefined?i/1e3+"s":"0s",u.container.css("-"+u.pfx+"-transition-duration",i),u.container.css("transition-duration",i)),u.args[u.prop]=r,(u.transitions||i===undefined)&&u.container.css(u.args),u.container.css("transform",r)},u.setup=function(t){if(l)u.slides.css({width:"100%",float:"left",marginRight:"-100%",position:"relative"}),t==="init"&&(p?u.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+u.vars.animationSpeed/1e3+"s ease",zIndex:1}).eq(u.currentSlide).css({opacity:1,zIndex:2}):u.vars.fadeFirstSlide==!1?u.slides.css({opacity:0,display:"block",zIndex:1}).eq(u.currentSlide).css({zIndex:2}).css({opacity:1}):u.slides.css({opacity:0,display:"block",zIndex:1}).eq(u.currentSlide).css({zIndex:2}).animate({opacity:1},u.vars.animationSpeed,u.vars.easing)),u.vars.smoothHeight&&f.smoothHeight();else{var i,r;t==="init"&&(u.viewport=n('<div class="'+e+'viewport"><\/div>').css({overflow:"hidden",position:"relative"}).appendTo(u).append(u.container),u.cloneCount=0,u.cloneOffset=0,s&&(r=n.makeArray(u.slides).reverse(),u.slides=n(r),u.container.empty().append(u.slides))),u.vars.animationLoop&&!o&&(u.cloneCount=2,u.cloneOffset=1,t!=="init"&&u.container.find(".clone").remove(),u.container.append(f.uniqueID(u.slides.first().clone().addClass("clone")).attr("aria-hidden","true")).prepend(f.uniqueID(u.slides.last().clone().addClass("clone")).attr("aria-hidden","true"))),u.newSlides=n(u.vars.selector,u),i=s?u.count-1-u.currentSlide+u.cloneOffset:u.currentSlide+u.cloneOffset,c&&!o?(u.container.height((u.count+u.cloneCount)*200+"%").css("position","absolute").width("100%"),setTimeout(function(){u.newSlides.css({display:"block"}),u.doMath(),u.viewport.height(u.h),u.setProps(i*u.h,"init")},t==="init"?100:0)):(u.container.width((u.count+u.cloneCount)*200+"%"),u.setProps(i*u.computedW,"init"),setTimeout(function(){u.doMath(),u.newSlides.css({width:u.computedW,marginRight:u.computedM,float:"left",display:"block"}),u.vars.smoothHeight&&f.smoothHeight()},t==="init"?100:0))}o||u.slides.removeClass(e+"active-slide").eq(u.currentSlide).addClass(e+"active-slide"),u.vars.init(u)},u.doMath=function(){var r=u.slides.first(),n=u.vars.itemMargin,t=u.vars.minItems,i=u.vars.maxItems;u.w=u.viewport===undefined?u.width():u.viewport.width(),u.h=r.height(),u.boxPadding=r.outerWidth()-r.width(),o?(u.itemT=u.vars.itemWidth+n,u.itemM=n,u.minW=t?t*u.itemT:u.w,u.maxW=i?i*u.itemT-n:u.w,u.itemW=u.minW>u.w?(u.w-n*(t-1))/t:u.maxW<u.w?(u.w-n*(i-1))/i:u.vars.itemWidth>u.w?u.w:u.vars.itemWidth,u.visible=Math.floor(u.w/u.itemW),u.move=u.vars.move>0&&u.vars.move<u.visible?u.vars.move:u.visible,u.pagingCount=Math.ceil((u.count-u.visible)/u.move+1),u.last=u.pagingCount-1,u.limit=u.pagingCount===1?0:u.vars.itemWidth>u.w?u.itemW*(u.count-1)+n*(u.count-1):(u.itemW+n)*u.count-u.w-n):(u.itemW=u.w,u.itemM=n,u.pagingCount=u.count,u.last=u.count-1),u.computedW=u.itemW-u.boxPadding,u.computedM=u.itemM},u.update=function(n,t){u.doMath(),o||(n<u.currentSlide?u.currentSlide+=1:n<=u.currentSlide&&n!==0&&(u.currentSlide-=1),u.animatingTo=u.currentSlide),u.vars.controlNav&&!u.manualControls&&(t==="add"&&!o||u.pagingCount>u.controlNav.length?f.controlNav.update("add"):(t==="remove"&&!o||u.pagingCount<u.controlNav.length)&&(o&&u.currentSlide>u.last&&(u.currentSlide-=1,u.animatingTo-=1),f.controlNav.update("remove",u.last))),u.vars.directionNav&&f.directionNav.update()},u.setOpts=function(n){for(var t in n)vars[t]=n[t];u.setup()},u.addSlide=function(t,i){var r=n(t);u.count+=1,u.last=u.count-1,c&&s?i!==undefined?u.slides.eq(u.count-i).after(r):u.container.prepend(r):i!==undefined?u.slides.eq(i).before(r):u.container.append(r),u.update(i,"add"),u.slides=n(u.vars.selector+":not(.clone)",u),u.setup(),u.vars.added(u)},u.removeSlide=function(t){var i=isNaN(t)?u.slides.index(n(t)):t;u.count-=1,u.last=u.count-1,isNaN(t)?n(t,u.slides).remove():c&&s?u.slides.eq(u.last).remove():u.slides.eq(t).remove(),u.doMath(),u.update(i,"remove"),u.slides=n(u.vars.selector+":not(.clone)",u),u.setup(),u.vars.removed(u)},u.getOpts=function(){return vars},f.init()},n(window).blur(function(){t=!1}).focus(function(){t=!0}),n.flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:!1,animationLoop:!0,smoothHeight:!1,startAt:0,slideshow:!0,slideshowSpeed:7e3,animationSpeed:600,initDelay:0,randomize:!1,fadeFirstSlide:!0,thumbCaptions:!1,pauseOnAction:!0,pauseOnHover:!1,pauseInvisible:!0,useCSS:!0,touch:!0,video:!1,controlNav:!0,directionNav:!0,prevText:"Previous",nextText:"Next",keyboard:!0,multipleKeyboard:!1,mousewheel:!1,pausePlay:!1,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",customDirectionNav:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:1,maxItems:0,move:0,allowOneSlide:!0,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){},init:function(){}},n.fn.flexslider=function(t){if(t===undefined&&(t={}),typeof t=="object")return this.each(function(){var i=n(this),u=t.selector?t.selector:".slides > li",r=i.find(u);r.length===1&&t.allowOneSlide===!1||r.length===0?(r.fadeIn(400),t.start&&t.start(i)):i.data("flexslider")===undefined&&new n.flexslider(this,t)});var i=n(this).data("flexslider");switch(t){case"play":i.play();break;case"pause":i.pause();break;case"stop":i.stop();break;case"next":i.flexAnimate(i.getTarget("next"),!0);break;case"prev":case"previous":i.flexAnimate(i.getTarget("prev"),!0);break;default:typeof t=="number"&&i.flexAnimate(t,!0)}}}(jQuery),typeof JSON!="object"&&(JSON={}),function(){"use strict";function i(n){return n<10?"0"+n:n}function f(n){return o.lastIndex=0,o.test(n)?'"'+n.replace(o,function(n){var t=s[n];return typeof t=="string"?t:"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+n+'"'}function r(i,e){var s,l,h,a,v=n,c,o=e[i];o&&typeof o=="object"&&typeof o.toJSON=="function"&&(o=o.toJSON(i)),typeof t=="function"&&(o=t.call(e,i,o));switch(typeof o){case"string":return f(o);case"number":return isFinite(o)?String(o):"null";case"boolean":case"null":return String(o);case"object":if(!o)return"null";if(n+=u,c=[],Object.prototype.toString.apply(o)==="[object Array]"){for(a=o.length,s=0;s<a;s+=1)c[s]=r(s,o)||"null";return h=c.length===0?"[]":n?"[\n"+n+c.join(",\n"+n)+"\n"+v+"]":"["+c.join(",")+"]",n=v,h}if(t&&typeof t=="object")for(a=t.length,s=0;s<a;s+=1)typeof t[s]=="string"&&(l=t[s],h=r(l,o),h&&c.push(f(l)+(n?": ":":")+h));else for(l in o)Object.prototype.hasOwnProperty.call(o,l)&&(h=r(l,o),h&&c.push(f(l)+(n?": ":":")+h));return h=c.length===0?"{}":n?"{\n"+n+c.join(",\n"+n)+"\n"+v+"}":"{"+c.join(",")+"}",n=v,h}}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+i(this.getUTCMonth()+1)+"-"+i(this.getUTCDate())+"T"+i(this.getUTCHours())+":"+i(this.getUTCMinutes())+":"+i(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()});var e=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,o=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n,u,s={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},t;typeof JSON.stringify!="function"&&(JSON.stringify=function(i,f,e){var o;if(n="",u="",typeof e=="number")for(o=0;o<e;o+=1)u+=" ";else typeof e=="string"&&(u=e);if(t=f,!f||typeof f=="function"||typeof f=="object"&&typeof f.length=="number")return r("",{"":i});throw new Error("JSON.stringify");}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){function walk(n,t){var r,u,i=n[t];if(i&&typeof i=="object")for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(u=walk(i,r),u!==undefined?i[r]=u:delete i[r]);return reviver.call(n,t,i)}var j;if(text=String(text),e.lastIndex=0,e.test(text)&&(text=text.replace(e,function(n){return"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\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,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse");})}(),function(n,t){"use strict";var i=n.History=n.History||{},r=n.jQuery;if(typeof i.Adapter!="undefined")throw new Error("History.js Adapter has already been loaded...");i.Adapter={bind:function(n,t,i){r(n).bind(t,i)},trigger:function(n,t,i){r(n).trigger(t,i)},extractEventData:function(n,i,r){return i&&i.originalEvent&&i.originalEvent[n]||r&&r[n]||t},onDomLoad:function(n){r(n)}},typeof i.init!="undefined"&&i.init()}(window),function(n){"use strict";var r=n.document,f=n.setTimeout||f,e=n.clearTimeout||e,u=n.setInterval||u,i=n.History=n.History||{};if(typeof i.initHtml4!="undefined")throw new Error("History.js HTML4 Support has already been loaded...");i.initHtml4=function(){if(typeof i.initHtml4.initialized!="undefined")return!1;i.initHtml4.initialized=!0,i.enabled=!0,i.savedHashes=[],i.isLastHash=function(n){var r=i.getHashByIndex(),t;return t=n===r,t},i.isHashEqual=function(n,t){return n=encodeURIComponent(n).replace(/%25/g,"%"),t=encodeURIComponent(t).replace(/%25/g,"%"),n===t},i.saveHash=function(n){return i.isLastHash(n)?!1:(i.savedHashes.push(n),!0)},i.getHashByIndex=function(n){var t=null;return t=typeof n=="undefined"?i.savedHashes[i.savedHashes.length-1]:n<0?i.savedHashes[i.savedHashes.length+n]:i.savedHashes[n],t},i.discardedHashes={},i.discardedStates={},i.discardState=function(n,t,r){var f=i.getHashByState(n),u;return u={discardedState:n,backState:r,forwardState:t},i.discardedStates[f]=u,!0},i.discardHash=function(n,t,r){var u={discardedHash:n,backState:r,forwardState:t};return i.discardedHashes[n]=u,!0},i.discardedState=function(n){var r=i.getHashByState(n),t;return t=i.discardedStates[r]||!1,t},i.discardedHash=function(n){return i.discardedHashes[n]||!1},i.recycleState=function(n){var t=i.getHashByState(n);return i.discardedState(n)&&delete i.discardedStates[t],!0},i.emulated.hashChange&&(i.hashChangeInit=function(){i.checkerFunction=null;var f="",s,t,e,o,h=Boolean(i.getHash());return i.isInternetExplorer()?(s="historyjs-iframe",t=r.createElement("iframe"),t.setAttribute("id",s),t.setAttribute("src","#"),t.style.display="none",r.body.appendChild(t),t.contentWindow.document.open(),t.contentWindow.document.close(),e="",o=!1,i.checkerFunction=function(){if(o)return!1;o=!0;var u=i.getHash(),r=i.getHash(t.contentWindow.document);return u!==f?(f=u,r!==u&&(e=r=u,t.contentWindow.document.open(),t.contentWindow.document.close(),t.contentWindow.document.location.hash=i.escapeHash(u)),i.Adapter.trigger(n,"hashchange")):r!==e&&(e=r,h&&r===""?i.back():i.setHash(r,!1)),o=!1,!0}):i.checkerFunction=function(){var t=i.getHash()||"";return t!==f&&(f=t,i.Adapter.trigger(n,"hashchange")),!0},i.intervalList.push(u(i.checkerFunction,i.options.hashChangeInterval)),!0},i.Adapter.onDomLoad(i.hashChangeInit)),i.emulated.pushState&&(i.onHashChange=function(t){var e=t&&t.newURL||i.getLocationHref(),u=i.getHashByUrl(e),r=null,o=null,s=null,f;return i.isLastHash(u)?(i.busy(!1),!1):(i.doubleCheckComplete(),i.saveHash(u),u&&i.isTraditionalAnchor(u)?(i.Adapter.trigger(n,"anchorchange"),i.busy(!1),!1):(r=i.extractState(i.getFullUrl(u||i.getLocationHref()),!0),i.isLastSavedState(r)?(i.busy(!1),!1):(o=i.getHashByState(r),f=i.discardedState(r),f?(i.getHashByIndex(-2)===i.getHashByState(f.forwardState)?i.back(!1):i.forward(!1),!1):(i.pushState(r.data,r.title,encodeURI(r.url),!1),!0))))},i.Adapter.bind(n,"hashchange",i.onHashChange),i.pushState=function(t,r,u,f){if(u=encodeURI(u).replace(/%25/g,"%"),i.getHashByUrl(u))throw new Error("History.js does not support states with fragment-identifiers (hashes/anchors).");if(f!==!1&&i.busy())return i.pushQueue({scope:i,callback:i.pushState,args:arguments,queue:f}),!1;i.busy(!0);var e=i.createStateObject(t,r,u),o=i.getHashByState(e),s=i.getState(!1),h=i.getHashByState(s),c=i.getHash(),l=i.expectedStateId==e.id;return i.storeState(e),i.expectedStateId=e.id,i.recycleState(e),i.setTitle(e),o===h?(i.busy(!1),!1):(i.saveState(e),l||i.Adapter.trigger(n,"statechange"),!i.isHashEqual(o,c)&&!i.isHashEqual(o,i.getShortUrl(i.getLocationHref()))&&i.setHash(o,!1),i.busy(!1),!0)},i.replaceState=function(t,r,u,f){if(u=encodeURI(u).replace(/%25/g,"%"),i.getHashByUrl(u))throw new Error("History.js does not support states with fragment-identifiers (hashes/anchors).");if(f!==!1&&i.busy())return i.pushQueue({scope:i,callback:i.replaceState,args:arguments,queue:f}),!1;i.busy(!0);var e=i.createStateObject(t,r,u),s=i.getHashByState(e),o=i.getState(!1),h=i.getHashByState(o),c=i.getStateByIndex(-2);return i.discardState(o,e,c),s===h?(i.storeState(e),i.expectedStateId=e.id,i.recycleState(e),i.setTitle(e),i.saveState(e),i.Adapter.trigger(n,"statechange"),i.busy(!1)):i.pushState(e.data,e.title,e.url,!1),!0}),i.emulated.pushState&&i.getHash()&&!i.emulated.hashChange&&i.Adapter.onDomLoad(function(){i.Adapter.trigger(n,"hashchange")})},typeof i.init!="undefined"&&i.init()}(window),function(n,t){"use strict";var e=n.console||t,r=n.document,o=n.navigator,f=n.sessionStorage||!1,h=n.setTimeout,c=n.clearTimeout,l=n.setInterval,a=n.clearInterval,u=n.JSON,v=n.alert,i=n.History=n.History||{},s=n.history;try{f.setItem("TEST","1"),f.removeItem("TEST")}catch(y){f=!1}if(u.stringify=u.stringify||u.encode,u.parse=u.parse||u.decode,typeof i.init!="undefined")throw new Error("History.js Core has already been loaded...");i.init=function(){return typeof i.Adapter=="undefined"?!1:(typeof i.initCore!="undefined"&&i.initCore(),typeof i.initHtml4!="undefined"&&i.initHtml4(),!0)},i.initCore=function(){if(typeof i.initCore.initialized!="undefined")return!1;if(i.initCore.initialized=!0,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||!1,i.options.storeInterval=i.options.storeInterval||1e3,i.options.busyDelay=i.options.busyDelay||250,i.options.debug=i.options.debug||!1,i.options.initialTitle=i.options.initialTitle||r.title,i.options.html4Mode=i.options.html4Mode||!1,i.options.delayInit=i.options.delayInit||!1,i.intervalList=[],i.clearAllIntervals=function(){var n,t=i.intervalList;if(typeof t!="undefined"&&t!==null){for(n=0;n<t.length;n++)a(t[n]);i.intervalList=null}},i.debug=function(){(i.options.debug||!1)&&i.log.apply(i,arguments)},i.log=function(){var s=typeof e!="undefined"&&typeof e.log!="undefined"&&typeof e.log.apply!="undefined",t=r.getElementById("log"),n,f,h,o,i;for(s?(o=Array.prototype.slice.call(arguments),n=o.shift(),typeof e.debug!="undefined"?e.debug.apply(e,[n,o]):e.log.apply(e,[n,o])):n="\n"+arguments[0]+"\n",f=1,h=arguments.length;f<h;++f){if(i=arguments[f],typeof i=="object"&&typeof u!="undefined")try{i=u.stringify(i)}catch(c){}n+="\n"+i+"\n"}return t?(t.value+=n+"\n-----\n",t.scrollTop=t.scrollHeight-t.clientHeight):s||v(n),!0},i.getInternetExplorerMajorVersion=function(){return i.getInternetExplorerMajorVersion.cached=typeof i.getInternetExplorerMajorVersion.cached!="undefined"?i.getInternetExplorerMajorVersion.cached:function(){for(var n=3,t=r.createElement("div"),i=t.getElementsByTagName("i");(t.innerHTML="<!--[if gt IE "+ ++n+"]><i><\/i><![endif]-->")&&i[0];);return n>4?n:!1}()},i.isInternetExplorer=function(){return i.isInternetExplorer.cached=typeof i.isInternetExplorer.cached!="undefined"?i.isInternetExplorer.cached:Boolean(i.getInternetExplorerMajorVersion())},i.emulated=i.options.html4Mode?{pushState:!0,hashChange:!0}:{pushState:!Boolean(n.history&&n.history.pushState&&n.history.replaceState&&!/ Mobile\/([1-7][a-z]|(8([abcde]|f(1[0-8]))))/i.test(o.userAgent)&&!/AppleWebKit\/5([0-2]|3[0-2])/i.test(o.userAgent)),hashChange:Boolean(!("onhashchange"in n||"onhashchange"in r)||i.isInternetExplorer()&&i.getInternetExplorerMajorVersion()<8)},i.enabled=!i.emulated.pushState,i.bugs={setHash:Boolean(!i.emulated.pushState&&o.vendor==="Apple Computer, Inc."&&/AppleWebKit\/5([0-2]|3[0-3])/.test(o.userAgent)),safariPoll:Boolean(!i.emulated.pushState&&o.vendor==="Apple Computer, Inc."&&/AppleWebKit\/5([0-2]|3[0-3])/.test(o.userAgent)),ieDoubleCheck:Boolean(i.isInternetExplorer()&&i.getInternetExplorerMajorVersion()<8),hashEscape:Boolean(i.isInternetExplorer()&&i.getInternetExplorerMajorVersion()<7)},i.isEmptyObject=function(n){for(var t in n)if(n.hasOwnProperty(t))return!1;return!0},i.cloneObject=function(n){var i,t;return n?(i=u.stringify(n),t=u.parse(i)):t={},t},i.getRootUrl=function(){var n=r.location.protocol+"//"+(r.location.hostname||r.location.host);return(r.location.port||!1)&&(n+=":"+r.location.port),n+="/",n},i.getBaseHref=function(){var t=r.getElementsByTagName("base"),i=null,n="";return t.length===1&&(i=t[0],n=i.href.replace(/[^\/]+$/,"")),n=n.replace(/\/+$/,""),n&&(n+="/"),n},i.getBaseUrl=function(){return i.getBaseHref()||i.getBasePageUrl()||i.getRootUrl()},i.getPageUrl=function(){var t=i.getState(!1,!1),r=(t||{}).url||i.getLocationHref(),n;return n=r.replace(/\/+$/,"").replace(/[^\/]+$/,function(n){return/\./.test(n)?n:n+"/"}),n},i.getBasePageUrl=function(){return i.getLocationHref().replace(/[#\?].*/,"").replace(/[^\/]+$/,function(n){return/[^\/]$/.test(n)?"":n}).replace(/\/+$/,"")+"/"},i.getFullUrl=function(n,t){var r=n,u=n.substring(0,1);return t=typeof t=="undefined"?!0:t,/[a-z]+\:\/\//.test(n)||(r=u==="/"?i.getRootUrl()+n.replace(/^\/+/,""):u==="#"?i.getPageUrl().replace(/#.*/,"")+n:u==="?"?i.getPageUrl().replace(/[\?#].*/,"")+n:t?i.getBaseUrl()+n.replace(/^(\.\/)+/,""):i.getBasePageUrl()+n.replace(/^(\.\/)+/,"")),r.replace(/\#$/,"")},i.getShortUrl=function(n){var t=n,r=i.getBaseUrl(),u=i.getRootUrl();return i.emulated.pushState&&(t=t.replace(r,"")),t=t.replace(u,"/"),i.isTraditionalAnchor(t)&&(t="./"+t),t=t.replace(/^(\.\/)+/g,"./").replace(/\#$/,""),t},i.getLocationHref=function(n){return n=n||r,n.URL===n.location.href?n.location.href:n.location.href===decodeURIComponent(n.URL)?n.URL:n.location.hash&&decodeURIComponent(n.location.href.replace(/^[^#]+/,""))===n.location.hash?n.location.href:n.URL.indexOf("#")==-1&&n.location.href.indexOf("#")!=-1?n.location.href:n.URL||n.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(n,t){typeof n=="undefined"&&(n=!0),typeof t=="undefined"&&(t=!0);var r=i.getLastSavedState();return!r&&t&&(r=i.createStateObject()),n&&(r=i.cloneObject(r),r.url=r.cleanUrl||r.url),r},i.getIdByState=function(n){var t=i.extractId(n.url),r;if(!t)if(r=i.getStateString(n),typeof i.stateToId[r]!="undefined")t=i.stateToId[r];else if(typeof i.store.stateToId[r]!="undefined")t=i.store.stateToId[r];else{for(;;)if(t=+new Date+String(Math.random()).replace(/\D/g,""),typeof i.idToState[t]=="undefined"&&typeof i.store.idToState[t]=="undefined")break;i.stateToId[r]=t,i.idToState[t]=n}return t},i.normalizeState=function(n){var t,r;return(n&&typeof n=="object"||(n={}),typeof n.normalized!="undefined")?n:(n.data&&typeof n.data=="object"||(n.data={}),t={},t.normalized=!0,t.title=n.title||"",t.url=i.getFullUrl(n.url?n.url:i.getLocationHref()),t.hash=i.getShortUrl(t.url),t.data=i.cloneObject(n.data),t.id=i.getIdByState(t),t.cleanUrl=t.url.replace(/\??\&_suid.*/,""),t.url=t.cleanUrl,r=!i.isEmptyObject(t.data),(t.title||r)&&i.options.disableSuid!==!0&&(t.hash=i.getShortUrl(t.url).replace(/\??\&_suid.*/,""),/\?/.test(t.hash)||(t.hash+="?"),t.hash+="&_suid="+t.id),t.hashedUrl=i.getFullUrl(t.hash),(i.emulated.pushState||i.bugs.safariPoll)&&i.hasUrlDuplicate(t)&&(t.url=t.hashedUrl),t)},i.createStateObject=function(n,t,r){var u={data:n,title:t,url:r};return u=i.normalizeState(u),u},i.getStateById=function(n){n=String(n);return i.idToState[n]||i.store.idToState[n]||t},i.getStateString=function(n){var t,r,f;return t=i.normalizeState(n),r={data:t.data,title:n.title,url:n.url},f=u.stringify(r),f},i.getStateId=function(n){var t,r;return t=i.normalizeState(n),r=t.id,r},i.getHashByState=function(n){var t,r;return t=i.normalizeState(n),r=t.hash,r},i.extractId=function(n){var r,t,u,i;return i=n.indexOf("#")!=-1?n.split("#")[0]:n,t=/(.*)\&_suid=([0-9]+)$/.exec(i),u=t?t[1]||n:n,r=t?String(t[2]||""):"",r||!1},i.isTraditionalAnchor=function(n){return!/[\/\?\.]/.test(n)},i.extractState=function(n,t){var r=null,u,f;return t=t||!1,u=i.extractId(n),u&&(r=i.getStateById(u)),r||(f=i.getFullUrl(n),u=i.getIdByUrl(f)||!1,u&&(r=i.getStateById(u)),!r&&t&&!i.isTraditionalAnchor(n)&&(r=i.createStateObject(null,null,f))),r},i.getIdByUrl=function(n){return i.urlToId[n]||i.store.urlToId[n]||t},i.getLastSavedState=function(){return i.savedStates[i.savedStates.length-1]||t},i.getLastStoredState=function(){return i.storedStates[i.storedStates.length-1]||t},i.hasUrlDuplicate=function(n){var r=!1,t;return t=i.extractState(n.url),r=t&&t.id!==n.id,r},i.storeState=function(n){return i.urlToId[n.url]=n.id,i.storedStates.push(i.cloneObject(n)),n},i.isLastSavedState=function(n){var t=!1,r,u,f;return i.savedStates.length&&(r=n.id,u=i.getLastSavedState(),f=u.id,t=r===f),t},i.saveState=function(n){return i.isLastSavedState(n)?!1:(i.savedStates.push(i.cloneObject(n)),!0)},i.getStateByIndex=function(n){var t=null;return t=typeof n=="undefined"?i.savedStates[i.savedStates.length-1]:n<0?i.savedStates[i.savedStates.length+n]:i.savedStates[n],t},i.getCurrentIndex=function(){var n=null;return n=i.savedStates.length<1?0:i.savedStates.length-1,n},i.getHash=function(n){var r=i.getLocationHref(n),t;return t=i.getHashByUrl(r),t},i.unescapeHash=function(n){var t=i.normalizeHash(n);return t=decodeURIComponent(t),t},i.normalizeHash=function(n){return n.replace(/[^#]*#/,"").replace(/#.*/,"")},i.setHash=function(n,t){var u,f;return t!==!1&&i.busy()?(i.pushQueue({scope:i,callback:i.setHash,args:arguments,queue:t}),!1):(i.busy(!0),u=i.extractState(n,!0),u&&!i.emulated.pushState?i.pushState(u.data,u.title,u.url,!1):i.getHash()!==n&&(i.bugs.setHash?(f=i.getPageUrl(),i.pushState(null,null,f+"#"+n,!1)):r.location.hash=n),i)},i.escapeHash=function(t){var r=i.normalizeHash(t);return r=n.encodeURIComponent(r),i.bugs.hashEscape||(r=r.replace(/\%21/g,"!").replace(/\%26/g,"&").replace(/\%3D/g,"=").replace(/\%3F/g,"?")),r},i.getHashByUrl=function(n){var t=String(n).replace(/([^#]*)#?([^#]*)#?(.*)/,"$2");return t=i.unescapeHash(t),t},i.setTitle=function(n){var t=n.title,u;t||(u=i.getStateByIndex(0),u&&u.url===n.url&&(t=u.title||i.options.initialTitle));try{r.getElementsByTagName("title")[0].innerHTML=t.replace("<","&lt;").replace(">","&gt;").replace(" & "," &amp; ")}catch(f){}return r.title=t,i},i.queues=[],i.busy=function(n){if(typeof n!="undefined"?i.busy.flag=n:typeof i.busy.flag=="undefined"&&(i.busy.flag=!1),!i.busy.flag){c(i.busy.timeout);var t=function(){var n,r,u;if(!i.busy.flag)for(n=i.queues.length-1;n>=0;--n)(r=i.queues[n],r.length!==0)&&(u=r.shift(),i.fireQueueItem(u),i.busy.timeout=h(t,i.options.busyDelay))};i.busy.timeout=h(t,i.options.busyDelay)}return i.busy.flag},i.busy.flag=!1,i.fireQueueItem=function(n){return n.callback.apply(n.scope||i,n.args||[])},i.pushQueue=function(n){return i.queues[n.queue||0]=i.queues[n.queue||0]||[],i.queues[n.queue||0].push(n),i},i.queue=function(n,t){return typeof n=="function"&&(n={callback:n}),typeof t!="undefined"&&(n.queue=t),i.busy()?i.pushQueue(n):i.fireQueueItem(n),i},i.clearQueue=function(){return i.busy.flag=!1,i.queues=[],i},i.stateChanged=!1,i.doubleChecker=!1,i.doubleCheckComplete=function(){return i.stateChanged=!0,i.doubleCheckClear(),i},i.doubleCheckClear=function(){return i.doubleChecker&&(c(i.doubleChecker),i.doubleChecker=!1),i},i.doubleCheck=function(n){return i.stateChanged=!1,i.doubleCheckClear(),i.bugs.ieDoubleCheck&&(i.doubleChecker=h(function(){return i.doubleCheckClear(),i.stateChanged||n(),!0},i.options.doubleCheckInterval)),i},i.safariStatePoll=function(){var r=i.extractState(i.getLocationHref()),t;if(!i.isLastSavedState(r))return t=r,t||(t=i.createStateObject()),i.Adapter.trigger(n,"popstate"),i},i.back=function(n){return n!==!1&&i.busy()?(i.pushQueue({scope:i,callback:i.back,args:arguments,queue:n}),!1):(i.busy(!0),i.doubleCheck(function(){i.back(!1)}),s.go(-1),!0)},i.forward=function(n){return n!==!1&&i.busy()?(i.pushQueue({scope:i,callback:i.forward,args:arguments,queue:n}),!1):(i.busy(!0),i.doubleCheck(function(){i.forward(!1)}),s.go(1),!0)},i.go=function(n,t){var r;if(n>0)for(r=1;r<=n;++r)i.forward(t);else{if(!(n<0))throw new Error("History.go: History.go requires a positive or negative integer passed.");for(r=-1;r>=n;--r)i.back(t)}return i},i.emulated.pushState){var p=function(){};i.pushState=i.pushState||p,i.replaceState=i.replaceState||p}else i.onPopState=function(t,r){var e=!1,u=!1,o,f;return i.doubleCheckComplete(),o=i.getHash(),o?(f=i.extractState(o||i.getLocationHref(),!0),f?i.replaceState(f.data,f.title,f.url,!1):(i.Adapter.trigger(n,"anchorchange"),i.busy(!1)),i.expectedStateId=!1,!1):(e=i.Adapter.extractEventData("state",t,r)||!1,u=e?i.getStateById(e):i.expectedStateId?i.getStateById(i.expectedStateId):i.extractState(i.getLocationHref()),u||(u=i.createStateObject(null,null,i.getLocationHref())),i.expectedStateId=!1,i.isLastSavedState(u)?(i.busy(!1),!1):(i.storeState(u),i.saveState(u),i.setTitle(u),i.Adapter.trigger(n,"statechange"),i.busy(!1),!0))},i.Adapter.bind(n,"popstate",i.onPopState),i.pushState=function(t,r,u,f){if(i.getHashByUrl(u)&&i.emulated.pushState)throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(f!==!1&&i.busy())return i.pushQueue({scope:i,callback:i.pushState,args:arguments,queue:f}),!1;i.busy(!0);var e=i.createStateObject(t,r,u);return i.isLastSavedState(e)?i.busy(!1):(i.storeState(e),i.expectedStateId=e.id,s.pushState(e.id,e.title,e.url),i.Adapter.trigger(n,"popstate")),!0},i.replaceState=function(t,r,u,f){if(i.getHashByUrl(u)&&i.emulated.pushState)throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(f!==!1&&i.busy())return i.pushQueue({scope:i,callback:i.replaceState,args:arguments,queue:f}),!1;i.busy(!0);var e=i.createStateObject(t,r,u);return i.isLastSavedState(e)?i.busy(!1):(i.storeState(e),i.expectedStateId=e.id,s.replaceState(e.id,e.title,e.url),i.Adapter.trigger(n,"popstate")),!0};if(f){try{i.store=u.parse(f.getItem("History.store"))||{}}catch(w){i.store={}}i.normalizeStore()}else i.store={},i.normalizeStore();i.Adapter.bind(n,"unload",i.clearAllIntervals),i.saveState(i.storeState(i.extractState(i.getLocationHref(),!0))),f&&(i.onUnload=function(){var n,t,r;try{n=u.parse(f.getItem("History.store"))||{}}catch(e){n={}}n.idToState=n.idToState||{},n.urlToId=n.urlToId||{},n.stateToId=n.stateToId||{};for(t in i.idToState)i.idToState.hasOwnProperty(t)&&(n.idToState[t]=i.idToState[t]);for(t in i.urlToId)i.urlToId.hasOwnProperty(t)&&(n.urlToId[t]=i.urlToId[t]);for(t in i.stateToId)i.stateToId.hasOwnProperty(t)&&(n.stateToId[t]=i.stateToId[t]);i.store=n,i.normalizeStore(),r=u.stringify(n);try{f.setItem("History.store",r)}catch(o){if(o.code!==DOMException.QUOTA_EXCEEDED_ERR)throw o;f.length&&(f.removeItem("History.store"),f.setItem("History.store",r))}},i.intervalList.push(l(i.onUnload,i.options.storeInterval)),i.Adapter.bind(n,"beforeunload",i.onUnload),i.Adapter.bind(n,"unload",i.onUnload)),i.emulated.pushState||(i.bugs.safariPoll&&i.intervalList.push(l(i.safariStatePoll,i.options.safariPollInterval)),(o.vendor==="Apple Computer, Inc."||(o.appCodeName||"")==="Mozilla")&&(i.Adapter.bind(n,"hashchange",function(){i.Adapter.trigger(n,"popstate")}),i.getHash()&&i.Adapter.onDomLoad(function(){i.Adapter.trigger(n,"hashchange")})))},(!i.options||!i.options.delayInit)&&i.init()}(window),function(n){n.fn.hoverIntent=function(t,i,r){var u={interval:100,sensitivity:7,timeout:0};u=typeof t=="object"?n.extend(u,t):n.isFunction(i)?n.extend(u,{over:t,out:i,selector:r}):n.extend(u,{over:t,out:t,selector:i});var f,e,o,s,h=function(n){f=n.pageX,e=n.pageY},c=function(t,i){if(i.hoverIntent_t=clearTimeout(i.hoverIntent_t),Math.abs(o-f)+Math.abs(s-e)<u.sensitivity)return n(i).off("mousemove.hoverIntent",h),i.hoverIntent_s=1,u.over.apply(i,[t]);o=f,s=e,i.hoverIntent_t=setTimeout(function(){c(t,i)},u.interval)},a=function(n,t){return t.hoverIntent_t=clearTimeout(t.hoverIntent_t),t.hoverIntent_s=0,u.out.apply(t,[n])},l=function(t){var r=jQuery.extend({},t),i=this;if(i.hoverIntent_t&&(i.hoverIntent_t=clearTimeout(i.hoverIntent_t)),t.type=="mouseenter"){o=r.pageX,s=r.pageY;n(i).on("mousemove.hoverIntent",h);i.hoverIntent_s!=1&&(i.hoverIntent_t=setTimeout(function(){c(r,i)},u.interval))}else n(i).off("mousemove.hoverIntent",h),i.hoverIntent_s==1&&(i.hoverIntent_t=setTimeout(function(){a(r,i)},u.timeout))};return this.on({"mouseenter.hoverIntent":l,"mouseleave.hoverIntent":l},u.selector)}}(jQuery),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof exports=="object"?module.exports=n:n(jQuery)}(function(n){function f(i){var u=i||window.event,l=[].slice.call(arguments,1),f=0,e=0,o=0,h=0,c=0,s;return i=n.event.fix(u),i.type="mousewheel",u.wheelDelta&&(f=u.wheelDelta),u.detail&&(f=u.detail*-1),u.deltaY&&(o=u.deltaY*-1,f=o),u.deltaX&&(e=u.deltaX,f=e*-1),u.wheelDeltaY!==undefined&&(o=u.wheelDeltaY),u.wheelDeltaX!==undefined&&(e=u.wheelDeltaX*-1),h=Math.abs(f),(!r||h<r)&&(r=h),c=Math.max(Math.abs(o),Math.abs(e)),(!t||c<t)&&(t=c),s=f>0?"floor":"ceil",f=Math[s](f/r),e=Math[s](e/t),o=Math[s](o/t),l.unshift(i,f,e,o),(n.event.dispatch||n.event.handle).apply(this,l)}var e=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],i="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],r,t,u;if(n.event.fixHooks)for(u=e.length;u;)n.event.fixHooks[e[--u]]=n.event.mouseHooks;n.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var n=i.length;n;)this.addEventListener(i[--n],f,!1);else this.onmousewheel=f},teardown:function(){if(this.removeEventListener)for(var n=i.length;n;)this.removeEventListener(i[--n],f,!1);else this.onmousewheel=null}},n.fn.extend({mousewheel:function(n){return n?this.bind("mousewheel",n):this.trigger("mousewheel")},unmousewheel:function(n){return this.unbind("mousewheel",n)}})}),function(n){function b(){var n=document.getElementsByTagName("script"),t=n[n.length-1].src.split("?")[0];return t.split("/").length>0?t.split("/").slice(0,-1).join("/")+"/":""}function tt(n,t,i){for(var r=0;r<t.length;r++)i(n,t[r])}var o=!1,c=!1,it=!1,p=5e3,w=2e3,u=0,t=n,k=b(),f,e;Array.prototype.forEach||(Array.prototype.forEach=function(n,t){for(var i=0,r=this.length;i<r;++i)n.call(t,this[i],i,this)});var d=["ms","moz","webkit","o"],i=window.requestAnimationFrame||!1,r=window.cancelAnimationFrame||!1;d.forEach(function(n){i||(i=window[n+"RequestAnimationFrame"]),r||(r=window[n+"CancelAnimationFrame"]||window[n+"CancelRequestAnimationFrame"])});var s=window.MutationObserver||window.WebKitMutationObserver||!1,v={zindex:"auto",cursoropacitymin:0,cursoropacitymax:1,cursorcolor:"#424242",cursorwidth:"5px",cursorborder:"1px solid #fff",cursorborderradius:"1px",scrollspeed:130,mousescrollstep:40,touchbehavior:!1,hwacceleration:!0,usetransition:!0,boxzoom:!1,dblclickzoom:!0,gesturezoom:!0,grabcursorenabled:!0,autohidemode:!0,background:"",iframeautoresize:!0,cursorminheight:32,preservenativescrolling:!0,railoffset:!1,bouncescroll:!0,spacebarenabled:!0,railpadding:{top:0,right:0,left:0,bottom:0},disableoutline:!0,horizrailenabled:!0,railalign:"right",railvalign:"bottom",enabletranslate3d:!0,enablemousewheel:!0,enablekeyboard:!0,smoothscroll:!0,sensitiverail:!0,enablemouselockapi:!0,cursorfixedheight:!1,directionlockdeadzone:6,hidecursordelay:400,nativeparentscrolling:!0,enablescrollonselection:!0,overflowx:!0,overflowy:!0,cursordragspeed:.3,rtlmode:!1,cursordragontouch:!1},l=!1,g=function(){function e(){var u=["-moz-grab","-webkit-grab","grab"],i,r;for((n.ischrome&&!n.ischrome22||n.isie)&&(u=[]),i=0;i<u.length;i++)if(r=u[i],t.style.cursor=r,t.style.cursor==r)return r;return"url(http://www.google.com/intl/en_ALL/mapfiles/openhand.cur),n-resize"}var t,n,r,i;if(l)return l;for(t=document.createElement("DIV"),n={},n.haspointerlock=("pointerLockElement"in document)||("mozPointerLockElement"in document)||("webkitPointerLockElement"in document),n.isopera=("opera"in window),n.isopera12=n.isopera&&("getUserMedia"in navigator),n.isie=("all"in document)&&("attachEvent"in t)&&!n.isopera,n.isieold=n.isie&&!("msInterpolationMode"in t.style),n.isie7=n.isie&&!n.isieold&&(!("documentMode"in document)||document.documentMode==7),n.isie8=n.isie&&("documentMode"in document)&&document.documentMode==8,n.isie9=n.isie&&("performance"in window)&&document.documentMode>=9,n.isie10=n.isie&&("performance"in window)&&document.documentMode>=10,n.isie9mobile=/iemobile.9/i.test(navigator.userAgent),n.isie9mobile&&(n.isie9=!1),n.isie7mobile=!n.isie9mobile&&n.isie7&&/iemobile/i.test(navigator.userAgent),n.ismozilla=("MozAppearance"in t.style),n.iswebkit=("WebkitAppearance"in t.style),n.ischrome=("chrome"in window),n.ischrome22=n.ischrome&&n.haspointerlock,n.ischrome26=n.ischrome&&("transition"in t.style),n.cantouch=("ontouchstart"in document.documentElement)||("ontouchstart"in window),n.hasmstouch=window.navigator.msPointerEnabled||!1,n.ismac=/^mac$/i.test(navigator.platform),n.isios=n.cantouch&&/iphone|ipad|ipod/i.test(navigator.platform),n.isios4=n.isios&&!("seal"in Object),n.isandroid=/android/i.test(navigator.userAgent),n.trstyle=!1,n.hastransform=!1,n.hastranslate3d=!1,n.transitionstyle=!1,n.hastransition=!1,n.transitionend=!1,r=["transform","msTransform","webkitTransform","MozTransform","OTransform"],i=0;i<r.length;i++)if(typeof t.style[r[i]]!="undefined"){n.trstyle=r[i];break}n.hastransform=n.trstyle!=!1,n.hastransform&&(t.style[n.trstyle]="translate3d(1px,2px,3px)",n.hastranslate3d=/translate3d/.test(t.style[n.trstyle])),n.transitionstyle=!1,n.prefixstyle="",n.transitionend=!1;var r=["transition","webkitTransition","MozTransition","OTransition","OTransition","msTransition","KhtmlTransition"],u=["","-webkit-","-moz-","-o-","-o","-ms-","-khtml-"],f=["transitionend","webkitTransitionEnd","transitionend","otransitionend","oTransitionEnd","msTransitionEnd","KhtmlTransitionEnd"];for(i=0;i<r.length;i++)if(r[i]in t.style){n.transitionstyle=r[i],n.prefixstyle=u[i],n.transitionend=f[i];break}return n.ischrome26&&(n.prefixstyle=u[1]),n.hastransition=n.transitionstyle,n.cursorgrabvalue=e(),n.hasmousecapture="setCapture"in t,n.hasMutationObserver=s!==!1,t=null,l=n,n},nt=function(n,f){function it(){var n=e.win,t;if("zIndex"in n)return n.zIndex();while(n.length>0){if(n[0].nodeType==9)return!1;if(t=n.css("zIndex"),!isNaN(t)&&t!=0)return parseInt(t);n=n.parent()}return!1}function l(n,t,i){var u=n.css(t),r=parseFloat(u),f;return isNaN(r)?(r=d[u]||0,f=r==3?i?e.win.outerHeight()-e.win.innerHeight():e.win.outerWidth()-e.win.innerWidth():1,e.isie8&&r&&(r+=1),f?r:0):r}function nt(n,t,i,r){e._bind(n,t,function(r){var r=r?r:window.event,u={original:r,target:r.target||r.srcElement,type:"wheel",deltaMode:r.type=="MozMousePixelScroll"?0:1,deltaX:0,deltaZ:0,preventDefault:function(){return r.preventDefault?r.preventDefault():r.returnValue=!1,!1},stopImmediatePropagation:function(){r.stopImmediatePropagation?r.stopImmediatePropagation():r.cancelBubble=!0}};return t=="mousewheel"?(u.deltaY=-1/40*r.wheelDelta,r.wheelDeltaX&&(u.deltaX=-1/40*r.wheelDeltaX)):u.deltaY=r.detail,i.call(n,u)},r)}function tt(n,t,i){var u,r,f=1;if(n.deltaMode==0?(u=-Math.floor(n.deltaX*(e.opt.mousescrollstep/54)),r=-Math.floor(n.deltaY*(e.opt.mousescrollstep/54))):n.deltaMode==1&&(u=-Math.floor(n.deltaX*e.opt.mousescrollstep),r=-Math.floor(n.deltaY*e.opt.mousescrollstep)),t&&u==0&&r&&(u=r,r=0),u&&(e.scrollmom&&e.scrollmom.stop(),e.lastdeltax+=u,e.debounced("mousewheelx",function(){var n=e.lastdeltax;e.lastdeltax=0,e.rail.drag||e.doScrollLeftBy(n)},120)),r){if(e.opt.nativeparentscrolling&&i&&!e.ispage&&!e.zoomactive)if(r<0){if(e.getScrollTop()>=e.page.maxh)return!0}else if(e.getScrollTop()<=0)return!0;e.scrollmom&&e.scrollmom.stop(),e.lastdeltay+=r,e.debounced("mousewheely",function(){var n=e.lastdeltay;e.lastdeltay=0,e.rail.drag||e.doScrollBy(n)},120)}return n.stopImmediatePropagation(),n.preventDefault()}var e=this,a,h,d;if(this.version="3.4.0",this.name="nicescroll",this.me=f,this.opt={doc:t("body"),win:!1},t.extend(this.opt,v),this.opt.snapbackspeed=80,n||!1)for(a in e.opt)typeof n[a]!="undefined"&&(e.opt[a]=n[a]);this.doc=e.opt.doc,this.iddoc=this.doc&&this.doc[0]?this.doc[0].id||"":"",this.ispage=/BODY|HTML/.test(e.opt.win?e.opt.win[0].nodeName:this.doc[0].nodeName),this.haswrapper=e.opt.win!==!1,this.win=e.opt.win||(this.ispage?t(window):this.doc),this.docscroll=this.ispage&&!this.haswrapper?t(window):this.win,this.body=t("body"),this.viewport=!1,this.isfixed=!1,this.iframe=!1,this.isiframe=this.doc[0].nodeName=="IFRAME"&&this.win[0].nodeName=="IFRAME",this.istextarea=this.win[0].nodeName=="TEXTAREA",this.forcescreen=!1,this.canshowonmouseevent=e.opt.autohidemode!="scroll",this.onmousedown=!1,this.onmouseup=!1,this.onmousemove=!1,this.onmousewheel=!1,this.onkeypress=!1,this.ongesturezoom=!1,this.onclick=!1,this.onscrollstart=!1,this.onscrollend=!1,this.onscrollcancel=!1,this.onzoomin=!1,this.onzoomout=!1,this.view=!1,this.page=!1,this.scroll={x:0,y:0},this.scrollratio={x:0,y:0},this.cursorheight=20,this.scrollvaluemax=0,this.checkrtlmode=!1,this.scrollrunning=!1,this.scrollmom=!1,this.observer=!1,this.observerremover=!1;do this.id="ascrail"+w++;while(document.getElementById(this.id));if(this.rail=!1,this.cursor=!1,this.cursorfreezed=!1,this.selectiondrag=!1,this.zoom=!1,this.zoomactive=!1,this.hasfocus=!1,this.hasmousefocus=!1,this.visibility=!0,this.locked=!1,this.hidden=!1,this.cursoractive=!0,this.overflowx=e.opt.overflowx,this.overflowy=e.opt.overflowy,this.nativescrollingarea=!1,this.checkarea=0,this.events=[],this.saved={},this.delaylist={},this.synclist={},this.lastdeltax=0,this.lastdeltay=0,this.detected=g(),h=t.extend({},this.detected),this.canhwscroll=h.hastransform&&e.opt.hwacceleration,this.ishwscroll=this.canhwscroll&&e.haswrapper,this.istouchcapable=!1,h.cantouch&&h.ischrome&&!h.isios&&!h.isandroid&&(this.istouchcapable=!0,h.cantouch=!1),h.cantouch&&h.ismozilla&&!h.isios&&(this.istouchcapable=!0,h.cantouch=!1),e.opt.enablemouselockapi||(h.hasmousecapture=!1,h.haspointerlock=!1),this.delayed=function(n,t,i,r){var u=e.delaylist[n],f=+new Date;if(!r&&u&&u.tt)return!1;u&&u.tt&&clearTimeout(u.tt),u&&u.last+i>f&&!u.tt?e.delaylist[n]={last:f+i,tt:setTimeout(function(){e.delaylist[n].tt=0,t.call()},i)}:u&&u.tt||(e.delaylist[n]={last:f,tt:0},setTimeout(function(){t.call()},0))},this.debounced=function(n,t,i){var r=e.delaylist[n],u=+new Date;e.delaylist[n]=t,r||setTimeout(function(){var t=e.delaylist[n];e.delaylist[n]=!1,t.call()},i)},this.synched=function(n,t){function r(){e.onsync||(i(function(){e.onsync=!1;for(n in e.synclist){var t=e.synclist[n];t&&t.call(e),e.synclist[n]=!1}}),e.onsync=!0)}return e.synclist[n]=t,r(),n},this.unsynched=function(n){e.synclist[n]&&(e.synclist[n]=!1)},this.css=function(n,t){for(var i in t)e.saved.css.push([n,i,n.css(i)]),n.css(i,t[i])},this.scrollTop=function(n){return typeof n=="undefined"?e.getScrollTop():e.setScrollTop(n)},this.scrollLeft=function(n){return typeof n=="undefined"?e.getScrollLeft():e.setScrollLeft(n)},BezierClass=function(n,t,i,r,u,f,e){this.st=n,this.ed=t,this.spd=i,this.p1=r||0,this.p2=u||1,this.p3=f||0,this.p4=e||1,this.ts=+new Date,this.df=this.ed-this.st},BezierClass.prototype={B2:function(n){return 3*n*n*(1-n)},B3:function(n){return 3*n*(1-n)*(1-n)},B4:function(n){return(1-n)*(1-n)*(1-n)},getNow:function(){var t=+new Date,n=1-(t-this.ts)/this.spd,i=this.B2(n)+this.B3(n)+this.B4(n);return n<0?this.ed:this.st+Math.round(this.df*i)},update:function(n,t){return this.st=this.getNow(),this.ed=n,this.spd=t,this.ts=+new Date,this.df=this.ed-this.st,this}},this.ishwscroll){this.doc.translate={x:0,y:0,tx:"0px",ty:"0px"},h.hastranslate3d&&h.isios&&this.doc.css("-webkit-backface-visibility","hidden");function b(){var n=e.doc.css(h.trstyle);return n&&n.substr(0,6)=="matrix"?n.replace(/^.*\((.*)\)$/g,"$1").replace(/px/g,"").split(/, +/):!1}this.getScrollTop=function(n){if(!n){var t=b();if(t)return t.length==16?-t[13]:-t[5];if(e.timerscroll&&e.timerscroll.bz)return e.timerscroll.bz.getNow()}return e.doc.translate.y},this.getScrollLeft=function(n){if(!n){var t=b();if(t)return t.length==16?-t[12]:-t[4];if(e.timerscroll&&e.timerscroll.bh)return e.timerscroll.bh.getNow()}return e.doc.translate.x},this.notifyScrollEvent=document.createEvent?function(n){var t=document.createEvent("UIEvents");t.initUIEvent("scroll",!1,!0,window,1),n.dispatchEvent(t)}:document.fireEvent?function(n){var t=document.createEventObject();n.fireEvent("onscroll"),t.cancelBubble=!0}:function(){},h.hastranslate3d&&e.opt.enabletranslate3d?(this.setScrollTop=function(n,t){e.doc.translate.y=n,e.doc.translate.ty=n*-1+"px",e.doc.css(h.trstyle,"translate3d("+e.doc.translate.tx+","+e.doc.translate.ty+",0px)"),t||e.notifyScrollEvent(e.win[0])},this.setScrollLeft=function(n,t){e.doc.translate.x=n,e.doc.translate.tx=n*-1+"px",e.doc.css(h.trstyle,"translate3d("+e.doc.translate.tx+","+e.doc.translate.ty+",0px)"),t||e.notifyScrollEvent(e.win[0])}):(this.setScrollTop=function(n,t){e.doc.translate.y=n,e.doc.translate.ty=n*-1+"px",e.doc.css(h.trstyle,"translate("+e.doc.translate.tx+","+e.doc.translate.ty+")"),t||e.notifyScrollEvent(e.win[0])},this.setScrollLeft=function(n,t){e.doc.translate.x=n,e.doc.translate.tx=n*-1+"px",e.doc.css(h.trstyle,"translate("+e.doc.translate.tx+","+e.doc.translate.ty+")"),t||e.notifyScrollEvent(e.win[0])})}else this.getScrollTop=function(){return e.docscroll.scrollTop()},this.setScrollTop=function(n){return e.docscroll.scrollTop(n)},this.getScrollLeft=function(){return e.docscroll.scrollLeft()},this.setScrollLeft=function(n){return e.docscroll.scrollLeft(n)};this.getTarget=function(n){return n?n.target?n.target:n.srcElement?n.srcElement:!1:!1},this.hasParent=function(n,t){if(!n)return!1;for(var i=n.target||n.srcElement||n||!1;i&&i.id!=t;)i=i.parentNode||!1;return i!==!1},d={thin:1,medium:3,thick:5},this.getOffset=function(){if(e.isfixed)return{top:parseFloat(e.win.css("top")),left:parseFloat(e.win.css("left"))};if(!e.viewport)return e.win.offset();var n=e.win.offset(),t=e.viewport.offset();return{top:n.top-t.top+e.viewport.scrollTop(),left:n.left-t.left+e.viewport.scrollLeft()}},this.updateScrollBar=function(n){var r,t,u,i;if(e.ishwscroll)e.rail.css({height:e.win.innerHeight()}),e.railh&&e.railh.css({width:e.win.innerWidth()});else if(r=e.getOffset(),t={top:r.top,left:r.left},t.top+=l(e.win,"border-top-width",!0),u=(e.win.outerWidth()-e.win.innerWidth())/2,t.left+=e.rail.align?e.win.outerWidth()-l(e.win,"border-right-width")-e.rail.width:l(e.win,"border-left-width"),i=e.opt.railoffset,i&&(i.top&&(t.top+=i.top),e.rail.align&&i.left&&(t.left+=i.left)),e.locked||e.rail.css({top:t.top,left:t.left,height:n?n.h:e.win.innerHeight()}),e.zoom&&e.zoom.css({top:t.top+1,left:e.rail.align==1?t.left-20:t.left+e.rail.width+4}),e.railh&&!e.locked){var t={top:r.top,left:r.left},f=e.railh.align?t.top+l(e.win,"border-top-width",!0)+e.win.innerHeight()-e.railh.height:t.top+l(e.win,"border-top-width",!0),o=t.left+l(e.win,"border-left-width");e.railh.css({top:f,left:o,width:e.railh.width})}},this.doRailClick=function(n,t,i){var r,f,u,o;e.locked||(e.cancelEvent(n),t?(r=i?e.doScrollLeft:e.doScrollTop,u=i?(n.pageX-e.railh.offset().left-e.cursorwidth/2)*e.scrollratio.x:(n.pageY-e.rail.offset().top-e.cursorheight/2)*e.scrollratio.y,r(u)):(r=i?e.doScrollLeftBy:e.doScrollBy,u=i?e.scroll.x:e.scroll.y,o=i?n.pageX-e.railh.offset().left:n.pageY-e.rail.offset().top,f=i?e.view.w:e.view.h,u>=o?r(f):r(-f)))},e.hasanimationframe=i,e.hascancelanimationframe=r,e.hasanimationframe?e.hascancelanimationframe||(r=function(){e.cancelAnimationFrame=!0}):(i=function(n){return setTimeout(n,15-Math.floor(+new Date/1e3)%16)},r=clearInterval),this.init=function(){var f,n,b,l,d,tt,a,r,i,v,w,g,nt,rt,ft,et;if(e.saved.css=[],h.isie7mobile)return!0;if(h.hasmstouch&&e.css(e.ispage?t("html"):e.win,{"-ms-touch-action":"none"}),e.zindex="auto",e.zindex=e.ispage||e.opt.zindex!="auto"?e.opt.zindex:it()||"auto",e.ispage||e.zindex=="auto"||e.zindex>u&&(u=e.zindex),e.isie&&e.zindex==0&&e.opt.zindex=="auto"&&(e.zindex="auto"),!e.ispage||!h.cantouch&&!h.isieold&&!h.isie9mobile){f=e.docscroll,e.ispage&&(f=e.haswrapper?e.win:e.doc),h.isie9mobile||e.css(f,{"overflow-y":"hidden"}),e.ispage&&h.isie7&&(e.doc[0].nodeName=="BODY"?e.css(t("html"),{"overflow-y":"hidden"}):e.doc[0].nodeName=="HTML"&&e.css(t("body"),{"overflow-y":"hidden"})),!h.isios||e.ispage||e.haswrapper||e.css(t("body"),{"-webkit-overflow-scrolling":"touch"}),r=t(document.createElement("div")),r.css({position:"relative",top:0,float:"right",width:e.opt.cursorwidth,height:"0px","background-color":e.opt.cursorcolor,border:e.opt.cursorborder,"background-clip":"padding-box","-webkit-border-radius":e.opt.cursorborderradius,"-moz-border-radius":e.opt.cursorborderradius,"border-radius":e.opt.cursorborderradius}),r.hborder=parseFloat(r.outerHeight()-r.innerHeight()),e.cursor=r,n=t(document.createElement("div")),n.attr("id",e.id),n.addClass("nicescroll-rails"),d=["left","right"];for(tt in d)l=d[tt],b=e.opt.railpadding[l],b?n.css("padding-"+l,b+"px"):e.opt.railpadding[l]=0;if(n.append(r),n.width=Math.max(parseFloat(e.opt.cursorwidth),r.outerWidth())+e.opt.railpadding.left+e.opt.railpadding.right,n.css({width:n.width+"px",zIndex:e.zindex,background:e.opt.background,cursor:"default"}),n.visibility=!0,n.scrollable=!0,n.align=e.opt.railalign=="left"?0:1,e.rail=n,e.rail.drag=!1,a=!1,!e.opt.boxzoom||e.ispage||h.isieold||(a=document.createElement("div"),e.bind(a,"click",e.doZoom),e.zoom=t(a),e.zoom.css({cursor:"pointer","z-index":e.zindex,backgroundImage:"url("+k+"zoomico.png)",height:18,width:18,backgroundPosition:"0px 0px"}),e.opt.dblclickzoom&&e.bind(e.win,"dblclick",e.doZoom),h.cantouch&&e.opt.gesturezoom&&(e.ongesturezoom=function(n){return n.scale>1.5&&e.doZoomIn(n),n.scale<.8&&e.doZoomOut(n),e.cancelEvent(n)},e.bind(e.win,"gestureend",e.ongesturezoom))),e.railh=!1,e.opt.horizrailenabled&&(e.css(f,{"overflow-x":"hidden"}),r=t(document.createElement("div")),r.css({position:"relative",top:0,height:e.opt.cursorwidth,width:"0px","background-color":e.opt.cursorcolor,border:e.opt.cursorborder,"background-clip":"padding-box","-webkit-border-radius":e.opt.cursorborderradius,"-moz-border-radius":e.opt.cursorborderradius,"border-radius":e.opt.cursorborderradius}),r.wborder=parseFloat(r.outerWidth()-r.innerWidth()),e.cursorh=r,i=t(document.createElement("div")),i.attr("id",e.id+"-hr"),i.addClass("nicescroll-rails"),i.height=Math.max(parseFloat(e.opt.cursorwidth),r.outerHeight()),i.css({height:i.height+"px",zIndex:e.zindex,background:e.opt.background}),i.append(r),i.visibility=!0,i.scrollable=!0,i.align=e.opt.railvalign=="top"?0:1,e.railh=i,e.railh.drag=!1),e.ispage?(n.css({position:"fixed",top:"0px",height:"100%"}),n.align?n.css({right:"0px"}):n.css({left:"0px"}),e.body.append(n),e.railh&&(i.css({position:"fixed",left:"0px",width:"100%"}),i.align?i.css({bottom:"0px"}):i.css({top:"0px"}),e.body.append(i))):(e.ishwscroll?(e.win.css("position")=="static"&&e.css(e.win,{position:"relative"}),v=e.win[0].nodeName=="HTML"?e.body:e.win,e.zoom&&(e.zoom.css({position:"absolute",top:1,right:0,"margin-right":n.width+4}),v.append(e.zoom)),n.css({position:"absolute",top:0}),n.align?n.css({right:0}):n.css({left:0}),v.append(n),i&&(i.css({position:"absolute",left:0,bottom:0}),i.align?i.css({bottom:0}):i.css({top:0}),v.append(i))):(e.isfixed=e.win.css("position")=="fixed",w=e.isfixed?"fixed":"absolute",e.isfixed||(e.viewport=e.getViewport(e.win[0])),e.viewport&&(e.body=e.viewport,/relative|absolute/.test(e.viewport.css("position"))==!1&&e.css(e.viewport,{position:"relative"})),n.css({position:w}),e.zoom&&e.zoom.css({position:w}),e.updateScrollBar(),e.body.append(n),e.zoom&&e.body.append(e.zoom),e.railh&&(i.css({position:w}),e.body.append(i))),h.isios&&e.css(e.win,{"-webkit-tap-highlight-color":"rgba(0,0,0,0)","-webkit-touch-callout":"none"}),h.isie&&e.opt.disableoutline&&e.win.attr("hideFocus","true"),h.iswebkit&&e.opt.disableoutline&&e.win.css({outline:"none"})),e.opt.autohidemode===!1?(e.autohidedom=!1,e.rail.css({opacity:e.opt.cursoropacitymax}),e.railh&&e.railh.css({opacity:e.opt.cursoropacitymax})):e.opt.autohidemode===!0?(e.autohidedom=t().add(e.rail),h.isie8&&(e.autohidedom=e.autohidedom.add(e.cursor)),e.railh&&(e.autohidedom=e.autohidedom.add(e.railh)),e.railh&&h.isie8&&(e.autohidedom=e.autohidedom.add(e.cursorh))):e.opt.autohidemode=="scroll"?(e.autohidedom=t().add(e.rail),e.railh&&(e.autohidedom=e.autohidedom.add(e.railh))):e.opt.autohidemode=="cursor"?(e.autohidedom=t().add(e.cursor),e.railh&&(e.autohidedom=e.autohidedom.add(e.cursorh))):e.opt.autohidemode=="hidden"&&(e.autohidedom=!1,e.hide(),e.locked=!1),h.isie9mobile)e.scrollmom=new y(e),e.onmangotouch=function(){var t=e.getScrollTop(),i=e.getScrollLeft(),l,h;if(t==e.scrollmom.lastscrolly&&i==e.scrollmom.lastscrollx)return!0;var u=t-e.mangotouch.sy,f=i-e.mangotouch.sx,c=Math.round(Math.sqrt(Math.pow(f,2)+Math.pow(u,2)));if(c!=0){var o=u<0?-1:1,s=f<0?-1:1,r=+new Date;e.mangotouch.lazy&&clearTimeout(e.mangotouch.lazy),r-e.mangotouch.tm>80||e.mangotouch.dry!=o||e.mangotouch.drx!=s?(e.scrollmom.stop(),e.scrollmom.reset(i,t),e.mangotouch.sy=t,e.mangotouch.ly=t,e.mangotouch.sx=i,e.mangotouch.lx=i,e.mangotouch.dry=o,e.mangotouch.drx=s,e.mangotouch.tm=r):(e.scrollmom.stop(),e.scrollmom.update(e.mangotouch.sx-f,e.mangotouch.sy-u),l=r-e.mangotouch.tm,e.mangotouch.tm=r,h=Math.max(Math.abs(e.mangotouch.ly-t),Math.abs(e.mangotouch.lx-i)),e.mangotouch.ly=t,e.mangotouch.lx=i,h>2&&(e.mangotouch.lazy=setTimeout(function(){e.mangotouch.lazy=!1,e.mangotouch.dry=0,e.mangotouch.drx=0,e.mangotouch.tm=0,e.scrollmom.doMomentum(30)},100)))}},g=e.getScrollTop(),nt=e.getScrollLeft(),e.mangotouch={sy:g,ly:g,dry:0,sx:nt,lx:nt,drx:0,lazy:!1,tm:0},e.bind(e.docscroll,"scroll",e.onmangotouch);else{if((h.cantouch||e.istouchcapable||e.opt.touchbehavior||h.hasmstouch)&&(e.scrollmom=new y(e),e.ontouchstart=function(n){var r,i,o,u,n,f,l;if(n.pointerType&&n.pointerType!=2)return!1;if(!e.locked){if(h.hasmstouch)for(i=n.target?n.target:!1;i;){if(r=t(i).getNiceScroll(),r.length>0&&r[0].me==e.me)break;if(r.length>0)return!1;if(i.nodeName=="DIV"&&i.id==e.id)break;i=i.parentNode?i.parentNode:!1}if(e.cancelScroll(),i=e.getTarget(n),i&&(o=/INPUT/i.test(i.nodeName)&&/range/i.test(i.type),o))return e.stopPropagation(n);if(!("clientX"in n)&&"changedTouches"in n&&(n.clientX=n.changedTouches[0].clientX,n.clientY=n.changedTouches[0].clientY),e.forcescreen&&(u=n,n={original:n.original?n.original:n},n.clientX=u.screenX,n.clientY=u.screenY),e.rail.drag={x:n.clientX,y:n.clientY,sx:e.scroll.x,sy:e.scroll.y,st:e.getScrollTop(),sl:e.getScrollLeft(),pt:2,dl:!1},e.ispage||!e.opt.directionlockdeadzone)e.rail.drag.dl="f";else{var s={w:t(window).width(),h:t(window).height()},c={w:Math.max(document.body.scrollWidth,document.documentElement.scrollWidth),h:Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},a=Math.max(0,c.h-s.h),v=Math.max(0,c.w-s.w);e.rail.drag.ck=!e.rail.scrollable&&e.railh.scrollable?a>0?"v":!1:e.rail.scrollable&&!e.railh.scrollable?v>0?"h":!1:!1,e.rail.drag.ck||(e.rail.drag.dl="f")}if(e.opt.touchbehavior&&e.isiframe&&h.isie&&(f=e.win.position(),e.rail.drag.x+=f.left,e.rail.drag.y+=f.top),e.hasmoving=!1,e.lastmouseup=!1,e.scrollmom.reset(n.clientX,n.clientY),!h.cantouch&&!this.istouchcapable&&!h.hasmstouch){if(l=i?/INPUT|SELECT|TEXTAREA/i.test(i.nodeName):!1,!l)return!e.ispage&&h.hasmousecapture&&i.setCapture(),e.cancelEvent(n);/SUBMIT|CANCEL|BUTTON/i.test(t(i).attr("type"))&&(pc={tg:i,click:!1},e.preventclick=pc)}}},e.ontouchend=function(n){return n.pointerType&&n.pointerType!=2?!1:e.rail.drag&&e.rail.drag.pt==2&&(e.scrollmom.doMomentum(),e.rail.drag=!1,e.hasmoving&&(e.hasmoving=!1,e.lastmouseup=!0,e.hideCursor(),h.hasmousecapture&&document.releaseCapture(),!h.cantouch))?e.cancelEvent(n):void 0},rt=e.opt.touchbehavior&&e.isiframe&&!h.hasmousecapture,e.ontouchmove=function(n,i){var w,a,n,v,y,u,s;if(n.pointerType&&n.pointerType!=2)return!1;if(e.rail.drag&&e.rail.drag.pt==2){if(h.cantouch&&typeof n.original=="undefined")return!0;e.hasmoving=!0,e.preventclick&&!e.preventclick.click&&(e.preventclick.click=e.preventclick.tg.onclick||!1,e.preventclick.tg.onclick=e.onpreventclick),w=t.extend({original:n},n),n=w,"changedTouches"in n&&(n.clientX=n.changedTouches[0].clientX,n.clientY=n.changedTouches[0].clientY),e.forcescreen&&(a=n,n={original:n.original?n.original:n},n.clientX=a.screenX,n.clientY=a.screenY),v=ofy=0,rt&&!i&&(y=e.win.position(),v=-y.left,ofy=-y.top);var f=n.clientY+ofy,b=f-e.rail.drag.y,o=n.clientX+v,k=o-e.rail.drag.x,r=e.rail.drag.st-b;if(e.ishwscroll&&e.opt.bouncescroll?r<0?r=Math.round(r/2):r>e.page.maxh&&(r=e.page.maxh+Math.round((r-e.page.maxh)/2)):(r<0&&(r=0,f=0),r>e.page.maxh&&(r=e.page.maxh,f=0)),e.railh&&e.railh.scrollable&&(u=e.rail.drag.sl-k,e.ishwscroll&&e.opt.bouncescroll?u<0?u=Math.round(u/2):u>e.page.maxw&&(u=e.page.maxw+Math.round((u-e.page.maxw)/2)):(u<0&&(u=0,o=0),u>e.page.maxw&&(u=e.page.maxw,o=0))),s=!1,e.rail.drag.dl)s=!0,e.rail.drag.dl=="v"?u=e.rail.drag.sl:e.rail.drag.dl=="h"&&(r=e.rail.drag.st);else{var c=Math.abs(b),p=Math.abs(k),l=e.opt.directionlockdeadzone;if(e.rail.drag.ck=="v"){if(c>l&&p<=c*.3)return e.rail.drag=!1,!0;p>l&&(e.rail.drag.dl="f",t("body").scrollTop(t("body").scrollTop()))}else if(e.rail.drag.ck=="h"){if(p>l&&c<=az*.3)return e.rail.drag=!1,!0;c>l&&(e.rail.drag.dl="f",t("body").scrollLeft(t("body").scrollLeft()))}}if(e.synched("touchmove",function(){e.rail.drag&&e.rail.drag.pt==2&&(e.prepareTransition&&e.prepareTransition(0),e.rail.scrollable&&e.setScrollTop(r),e.scrollmom.update(o,f),e.railh&&e.railh.scrollable?(e.setScrollLeft(u),e.showCursor(r,u)):e.showCursor(r),h.isie10&&document.selection.clear())}),h.ischrome&&e.istouchcapable&&(s=!1),s)return e.cancelEvent(n)}}),e.onmousedown=function(n,t){if(!e.rail.drag||e.rail.drag.pt==1){if(e.locked)return e.cancelEvent(n);e.cancelScroll(),e.rail.drag={x:n.clientX,y:n.clientY,sx:e.scroll.x,sy:e.scroll.y,pt:1,hr:!!t};var i=e.getTarget(n);return!e.ispage&&h.hasmousecapture&&i.setCapture(),e.isiframe&&!h.hasmousecapture&&(e.saved.csspointerevents=e.doc.css("pointer-events"),e.css(e.doc,{"pointer-events":"none"})),e.cancelEvent(n)}},e.onmouseup=function(n){if(e.rail.drag)return(h.hasmousecapture&&document.releaseCapture(),e.isiframe&&!h.hasmousecapture&&e.doc.css("pointer-events",e.saved.csspointerevents),e.rail.drag.pt!=1)?void 0:(e.rail.drag=!1,e.cancelEvent(n))},e.onmousemove=function(n){var t,i;if(e.rail.drag)return e.rail.drag.pt!=1?void 0:h.ischrome&&n.which==0?e.onmouseup(n):(e.cursorfreezed=!0,e.rail.drag.hr?(e.scroll.x=e.rail.drag.sx+(n.clientX-e.rail.drag.x),e.scroll.x<0&&(e.scroll.x=0),t=e.scrollvaluemaxw,e.scroll.x>t&&(e.scroll.x=t)):(e.scroll.y=e.rail.drag.sy+(n.clientY-e.rail.drag.y),e.scroll.y<0&&(e.scroll.y=0),i=e.scrollvaluemax,e.scroll.y>i&&(e.scroll.y=i)),e.synched("mousemove",function(){e.rail.drag&&e.rail.drag.pt==1&&(e.showCursor(),e.rail.drag.hr?e.doScrollLeft(Math.round(e.scroll.x*e.scrollratio.x),e.opt.cursordragspeed):e.doScrollTop(Math.round(e.scroll.y*e.scrollratio.y),e.opt.cursordragspeed))}),e.cancelEvent(n))},h.cantouch||e.opt.touchbehavior)e.onpreventclick=function(n){if(e.preventclick)return e.preventclick.tg.onclick=e.preventclick.click,e.preventclick=!1,e.cancelEvent(n)},e.bind(e.win,"mousedown",e.ontouchstart),e.onclick=h.isios?!1:function(n){return e.lastmouseup?(e.lastmouseup=!1,e.cancelEvent(n)):!0},e.opt.grabcursorenabled&&h.cursorgrabvalue&&(e.css(e.ispage?e.doc:e.win,{cursor:h.cursorgrabvalue}),e.css(e.rail,{cursor:h.cursorgrabvalue}));else{function ut(n){var i,t,r;e.selectiondrag&&(n&&(i=e.win.outerHeight(),t=n.pageY-e.selectiondrag.top,t>0&&t<i&&(t=0),t>=i&&(t-=i),e.selectiondrag.df=t),e.selectiondrag.df!=0)&&(r=-Math.floor(e.selectiondrag.df/6)*2,e.doScrollBy(r),e.debounced("doselectionscroll",function(){ut()},50))}e.hasTextSelected="getSelection"in document?function(){return document.getSelection().rangeCount>0}:"selection"in document?function(){return document.selection.type!="None"}:function(){return!1},e.onselectionstart=function(){e.ispage||(e.selectiondrag=e.win.offset())},e.onselectionend=function(){e.selectiondrag=!1},e.onselectiondrag=function(n){e.selectiondrag&&e.hasTextSelected()&&e.debounced("selectionscroll",function(){ut(n)},250)}}h.hasmstouch&&(e.css(e.rail,{"-ms-touch-action":"none"}),e.css(e.cursor,{"-ms-touch-action":"none"}),e.bind(e.win,"MSPointerDown",e.ontouchstart),e.bind(document,"MSPointerUp",e.ontouchend),e.bind(document,"MSPointerMove",e.ontouchmove),e.bind(e.cursor,"MSGestureHold",function(n){n.preventDefault()}),e.bind(e.cursor,"contextmenu",function(n){n.preventDefault()})),this.istouchcapable&&(e.bind(e.win,"touchstart",e.ontouchstart),e.bind(document,"touchend",e.ontouchend),e.bind(document,"touchcancel",e.ontouchend),e.bind(document,"touchmove",e.ontouchmove)),e.bind(e.cursor,"mousedown",e.onmousedown),e.bind(e.cursor,"mouseup",e.onmouseup),e.railh&&(e.bind(e.cursorh,"mousedown",function(n){e.onmousedown(n,!0)}),e.bind(e.cursorh,"mouseup",function(n){if(!e.rail.drag||e.rail.drag.pt!=2)return e.rail.drag=!1,e.hasmoving=!1,e.hideCursor(),h.hasmousecapture&&document.releaseCapture(),e.cancelEvent(n)})),!e.opt.cursordragontouch&&(h.cantouch||e.opt.touchbehavior)||(e.rail.css({cursor:"default"}),e.railh&&e.railh.css({cursor:"default"}),e.jqbind(e.rail,"mouseenter",function(){e.canshowonmouseevent&&e.showCursor(),e.rail.active=!0}),e.jqbind(e.rail,"mouseleave",function(){e.rail.active=!1,e.rail.drag||e.hideCursor()}),e.opt.sensitiverail&&(e.bind(e.rail,"click",function(n){e.doRailClick(n,!1,!1)}),e.bind(e.rail,"dblclick",function(n){e.doRailClick(n,!0,!1)}),e.bind(e.cursor,"click",function(n){e.cancelEvent(n)}),e.bind(e.cursor,"dblclick",function(n){e.cancelEvent(n)})),e.railh&&(e.jqbind(e.railh,"mouseenter",function(){e.canshowonmouseevent&&e.showCursor(),e.rail.active=!0}),e.jqbind(e.railh,"mouseleave",function(){e.rail.active=!1,e.rail.drag||e.hideCursor()}),e.opt.sensitiverail&&(e.bind(e.railh,"click",function(n){e.doRailClick(n,!1,!0)}),e.bind(e.railh,"dblclick",function(n){e.doRailClick(n,!0,!0)}),e.bind(e.cursorh,"click",function(n){e.cancelEvent(n)}),e.bind(e.cursorh,"dblclick",function(n){e.cancelEvent(n)})))),h.cantouch||e.opt.touchbehavior?(e.bind(h.hasmousecapture?e.win:document,"mouseup",e.ontouchend),e.bind(document,"mousemove",e.ontouchmove),e.onclick&&e.bind(document,"click",e.onclick),e.opt.cursordragontouch&&(e.bind(e.cursor,"mousedown",e.onmousedown),e.bind(e.cursor,"mousemove",e.onmousemove),e.cursorh&&e.bind(e.cursorh,"mousedown",e.onmousedown),e.cursorh&&e.bind(e.cursorh,"mousemove",e.onmousemove))):(e.bind(h.hasmousecapture?e.win:document,"mouseup",e.onmouseup),e.bind(document,"mousemove",e.onmousemove),e.onclick&&e.bind(document,"click",e.onclick),!e.ispage&&e.opt.enablescrollonselection&&(e.bind(e.win[0],"mousedown",e.onselectionstart),e.bind(document,"mouseup",e.onselectionend),e.bind(e.cursor,"mouseup",e.onselectionend),e.cursorh&&e.bind(e.cursorh,"mouseup",e.onselectionend),e.bind(document,"mousemove",e.onselectiondrag)),e.zoom&&(e.jqbind(e.zoom,"mouseenter",function(){e.canshowonmouseevent&&e.showCursor(),e.rail.active=!0}),e.jqbind(e.zoom,"mouseleave",function(){e.rail.active=!1,e.rail.drag||e.hideCursor()}))),e.opt.enablemousewheel&&(e.isiframe||e.bind(h.isie&&e.ispage?document:e.docscroll,"mousewheel",e.onmousewheel),e.bind(e.rail,"mousewheel",e.onmousewheel),e.railh&&e.bind(e.railh,"mousewheel",e.onmousewheelhr)),e.ispage||h.cantouch||/HTML|BODY/.test(e.win[0].nodeName)||(e.win.attr("tabindex")||e.win.attr({tabindex:p++}),e.jqbind(e.win,"focus",function(n){o=e.getTarget(n).id||!0,e.hasfocus=!0,e.canshowonmouseevent&&e.noticeCursor()}),e.jqbind(e.win,"blur",function(){o=!1,e.hasfocus=!1}),e.jqbind(e.win,"mouseenter",function(n){c=e.getTarget(n).id||!0,e.hasmousefocus=!0,e.canshowonmouseevent&&e.noticeCursor()}),e.jqbind(e.win,"mouseleave",function(){c=!1,e.hasmousefocus=!1}))}e.onkeypress=function(n){var i,f,u;if(e.locked&&e.page.maxh==0||(n=n?n:window.e,i=e.getTarget(n),i&&/INPUT|TEXTAREA|SELECT|OPTION/.test(i.nodeName)&&(f=i.getAttribute("type")||i.type||!1,!f||!/submit|button|cancel/i.tp)))return!0;if(e.hasfocus||e.hasmousefocus&&!o||e.ispage&&!o&&!c){if(u=n.keyCode,e.locked&&u!=27)return e.cancelEvent(n);var r=n.ctrlKey||!1,s=n.shiftKey||!1,t=!1;switch(u){case 38:case 63233:e.doScrollBy(72),t=!0;break;case 40:case 63235:e.doScrollBy(-72),t=!0;break;case 37:case 63232:e.railh&&(r?e.doScrollLeft(0):e.doScrollLeftBy(72),t=!0);break;case 39:case 63234:e.railh&&(r?e.doScrollLeft(e.page.maxw):e.doScrollLeftBy(-72),t=!0);break;case 33:case 63276:e.doScrollBy(e.view.h),t=!0;break;case 34:case 63277:e.doScrollBy(-e.view.h),t=!0;break;case 36:case 63273:e.railh&&r?e.doScrollPos(0,0):e.doScrollTo(0),t=!0;break;case 35:case 63275:e.railh&&r?e.doScrollPos(e.page.maxw,e.page.maxh):e.doScrollTo(e.page.maxh),t=!0;break;case 32:e.opt.spacebarenabled&&(s?e.doScrollBy(e.view.h):e.doScrollBy(-e.view.h),t=!0);break;case 27:e.zoomactive&&(e.doZoom(),t=!0)}if(t)return e.cancelEvent(n)}},e.opt.enablekeyboard&&e.bind(document,h.isopera&&!h.isopera12?"keypress":"keydown",e.onkeypress),e.bind(window,"resize",e.lazyResize),e.bind(window,"orientationchange",e.lazyResize),e.bind(window,"load",e.lazyResize),!h.ischrome||e.ispage||e.haswrapper||(ft=e.win.attr("style"),et=parseFloat(e.win.css("width"))+1,e.win.css("width",et),e.synched("chromefix",function(){e.win.attr("style",ft)})),e.onAttributeChange=function(){e.lazyResize(250)},e.ispage||e.haswrapper||(s!==!1?(e.observer=new s(function(n){n.forEach(e.onAttributeChange)}),e.observer.observe(e.win[0],{childList:!0,characterData:!1,attributes:!0,subtree:!1}),e.observerremover=new s(function(n){n.forEach(function(n){if(n.removedNodes.length>0)for(var t in n.removedNodes)if(n.removedNodes[t]==e.win[0])return e.remove()})}),e.observerremover.observe(e.win[0].parentNode,{childList:!0,characterData:!1,attributes:!1,subtree:!1})):(e.bind(e.win,h.isie&&!h.isie9?"propertychange":"DOMAttrModified",e.onAttributeChange),h.isie9&&e.win[0].attachEvent("onpropertychange",e.onAttributeChange),e.bind(e.win,"DOMNodeRemoved",function(n){n.target==e.win[0]&&e.remove()}))),!e.ispage&&e.opt.boxzoom&&e.bind(window,"resize",e.resizeZoom),e.istextarea&&e.bind(e.win,"mouseup",e.lazyResize),e.checkrtlmode=!0,e.lazyResize(30)}if(this.doc[0].nodeName=="IFRAME"){function ot(){var i,u,r;e.iframexd=!1;try{i="contentDocument"in this?this.contentDocument:this.contentWindow.document,u=i.domain}catch(n){e.iframexd=!0,i=!1}if(e.iframexd)return"console"in window&&console.log("NiceScroll error: policy restriced iframe"),!0;e.forcescreen=!0,e.isiframe&&(e.iframe={doc:t(i),html:e.doc.contents().find("html")[0],body:e.doc.contents().find("body")[0]},e.getContentSize=function(){return{w:Math.max(e.iframe.html.scrollWidth,e.iframe.body.scrollWidth),h:Math.max(e.iframe.html.scrollHeight,e.iframe.body.scrollHeight)}},e.docscroll=t(e.iframe.body)),h.isios||!e.opt.iframeautoresize||e.isiframe||(e.win.scrollTop(0),e.doc.height(""),r=Math.max(i.getElementsByTagName("html")[0].scrollHeight,i.body.scrollHeight),e.doc.height(r)),e.lazyResize(30),h.isie7&&e.css(t(e.iframe.html),{"overflow-y":"hidden"}),e.css(t(e.iframe.body),{"overflow-y":"hidden"}),"contentWindow"in this?e.bind(this.contentWindow,"scroll",e.onscroll):e.bind(i,"scroll",e.onscroll),e.opt.enablemousewheel&&e.bind(i,"mousewheel",e.onmousewheel),e.opt.enablekeyboard&&e.bind(i,h.isopera?"keypress":"keydown",e.onkeypress),(h.cantouch||e.opt.touchbehavior)&&(e.bind(i,"mousedown",e.onmousedown),e.bind(i,"mousemove",function(n){e.onmousemove(n,!0)}),e.opt.grabcursorenabled&&h.cursorgrabvalue&&e.css(t(i.body),{cursor:h.cursorgrabvalue})),e.bind(i,"mouseup",e.onmouseup),e.zoom&&(e.opt.dblclickzoom&&e.bind(i,"dblclick",e.doZoom),e.ongesturezoom&&e.bind(i,"gestureend",e.ongesturezoom))}this.doc[0].readyState&&this.doc[0].readyState=="complete"&&setTimeout(function(){ot.call(e.doc[0],!1)},500),e.bind(this.doc,"load",ot)}},this.showCursor=function(n,t){(e.cursortimeout&&(clearTimeout(e.cursortimeout),e.cursortimeout=0),e.rail)&&(e.autohidedom&&(e.autohidedom.stop().css({opacity:e.opt.cursoropacitymax}),e.cursoractive=!0),e.rail.drag&&e.rail.drag.pt==1||(typeof n!="undefined"&&n!==!1&&(e.scroll.y=Math.round(n*1/e.scrollratio.y)),typeof t!="undefined"&&(e.scroll.x=Math.round(t*1/e.scrollratio.x))),e.cursor.css({height:e.cursorheight,top:e.scroll.y}),e.cursorh&&(!e.rail.align&&e.rail.visibility?e.cursorh.css({width:e.cursorwidth,left:e.scroll.x+e.rail.width}):e.cursorh.css({width:e.cursorwidth,left:e.scroll.x}),e.cursoractive=!0),e.zoom&&e.zoom.stop().css({opacity:e.opt.cursoropacitymax}))},this.hideCursor=function(n){e.cursortimeout||e.rail&&e.autohidedom&&(e.cursortimeout=setTimeout(function(){e.rail.active&&e.showonmouseevent||(e.autohidedom.stop().animate({opacity:e.opt.cursoropacitymin}),e.zoom&&e.zoom.stop().animate({opacity:e.opt.cursoropacitymin}),e.cursoractive=!1),e.cursortimeout=0},n||e.opt.hidecursordelay))},this.noticeCursor=function(n,t,i){e.showCursor(t,i),e.rail.active||e.hideCursor(n)},this.getContentSize=e.ispage?function(){return{w:Math.max(document.body.scrollWidth,document.documentElement.scrollWidth),h:Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}}:e.haswrapper?function(){return{w:e.doc.outerWidth()+parseInt(e.win.css("paddingLeft"))+parseInt(e.win.css("paddingRight")),h:e.doc.outerHeight()+parseInt(e.win.css("paddingTop"))+parseInt(e.win.css("paddingBottom"))}}:function(){return{w:e.docscroll[0].scrollWidth,h:e.docscroll[0].scrollHeight}},this.onResize=function(n,t){var i,r,u;if(!e.win)return!1;if(!e.haswrapper&&!e.ispage){if(e.win.css("display")=="none")return e.visibility&&e.hideRail().hideRailHr(),!1;e.hidden||e.visibility||e.showRail().showRailHr()}var f=e.page.maxh,o=e.page.maxw,s={h:e.view.h,w:e.view.w};if(e.view={w:e.ispage?e.win.width():parseInt(e.win[0].clientWidth),h:e.ispage?e.win.height():parseInt(e.win[0].clientHeight)},e.page=t?t:e.getContentSize(),e.page.maxh=Math.max(0,e.page.h-e.view.h),e.page.maxw=Math.max(0,e.page.w-e.view.w),e.page.maxh==f&&e.page.maxw==o&&e.view.w==s.w){if(e.ispage||(i=e.win.offset(),e.lastposition&&(r=e.lastposition,r.top==i.top&&r.left==i.left)))return e;e.lastposition=i}return(e.page.maxh==0?(e.hideRail(),e.scrollvaluemax=0,e.scroll.y=0,e.scrollratio.y=0,e.cursorheight=0,e.setScrollTop(0),e.rail.scrollable=!1):e.rail.scrollable=!0,e.page.maxw==0?(e.hideRailHr(),e.scrollvaluemaxw=0,e.scroll.x=0,e.scrollratio.x=0,e.cursorwidth=0,e.setScrollLeft(0),e.railh.scrollable=!1):e.railh.scrollable=!0,e.locked=e.page.maxh==0&&e.page.maxw==0,e.locked)?(e.ispage||e.updateScrollBar(e.view),!1):(e.hidden||e.visibility?e.hidden||e.railh.visibility||e.showRailHr():e.showRail().showRailHr(),e.istextarea&&e.win.css("resize")&&e.win.css("resize")!="none"&&(e.view.h-=20),e.cursorheight=Math.min(e.view.h,Math.round(e.view.h*(e.view.h/e.page.h))),e.cursorheight=e.opt.cursorfixedheight?e.opt.cursorfixedheight:Math.max(e.opt.cursorminheight,e.cursorheight),e.cursorwidth=Math.min(e.view.w,Math.round(e.view.w*(e.view.w/e.page.w))),e.cursorwidth=e.opt.cursorfixedheight?e.opt.cursorfixedheight:Math.max(e.opt.cursorminheight,e.cursorwidth),e.scrollvaluemax=e.view.h-e.cursorheight-e.cursor.hborder,e.railh&&(e.railh.width=e.page.maxh>0?e.view.w-e.rail.width:e.view.w,e.scrollvaluemaxw=e.railh.width-e.cursorwidth-e.cursorh.wborder),e.checkrtlmode&&e.railh&&(e.checkrtlmode=!1,e.opt.rtlmode&&e.scroll.x==0&&e.setScrollLeft(e.page.maxw)),e.ispage||e.updateScrollBar(e.view),e.scrollratio={x:e.page.maxw/e.scrollvaluemaxw,y:e.page.maxh/e.scrollvaluemax},u=e.getScrollTop(),u>e.page.maxh?e.doScrollTop(e.page.maxh):(e.scroll.y=Math.round(e.getScrollTop()*(1/e.scrollratio.y)),e.scroll.x=Math.round(e.getScrollLeft()*(1/e.scrollratio.x)),e.cursoractive&&e.noticeCursor()),e.scroll.y&&e.getScrollTop()==0&&e.doScrollTo(Math.floor(e.scroll.y*e.scrollratio.y)),e)},this.resize=e.onResize,this.lazyResize=function(n){return n=isNaN(n)?30:n,e.delayed("resize",e.resize,n),e},this._bind=function(n,t,i,r){e.events.push({e:n,n:t,f:i,b:r,q:!1}),n.addEventListener?n.addEventListener(t,i,r||!1):n.attachEvent?n.attachEvent("on"+t,i):n["on"+t]=i},this.jqbind=function(n,i,r){e.events.push({e:n,n:i,f:r,q:!0}),t(n).bind(i,r)},this.bind=function(n,t,i,r){var u="jquery"in n?n[0]:n,f,o;t=="mousewheel"?"onwheel"in e.win?e._bind(u,"wheel",i,r||!1):(f=typeof document.onmousewheel!="undefined"?"mousewheel":"DOMMouseScroll",nt(u,f,i,r||!1),f=="DOMMouseScroll"&&nt(u,"MozMousePixelScroll",i,r||!1)):u.addEventListener?(h.cantouch&&/mouseup|mousedown|mousemove/.test(t)&&(o=t=="mousedown"?"touchstart":t=="mouseup"?"touchend":"touchmove",e._bind(u,o,function(n){var t;n.touches?n.touches.length<2&&(t=n.touches.length?n.touches[0]:n,t.original=n,i.call(this,t)):n.changedTouches&&(t=n.changedTouches[0],t.original=n,i.call(this,t))},r||!1)),e._bind(u,t,i,r||!1),h.cantouch&&t=="mouseup"&&e._bind(u,"touchcancel",i,r||!1)):e._bind(u,t,function(n){return n=n||window.event||!1,n&&n.srcElement&&(n.target=n.srcElement),"pageY"in n||(n.pageX=n.clientX+document.documentElement.scrollLeft,n.pageY=n.clientY+document.documentElement.scrollTop),i.call(u,n)===!1||r===!1?e.cancelEvent(n):!0})},this._unbind=function(n,t,i,r){n.removeEventListener?n.removeEventListener(t,i,r):n.detachEvent?n.detachEvent("on"+t,i):n["on"+t]=!1},this.unbindAll=function(){for(var n,t=0;t<e.events.length;t++)n=e.events[t],n.q?n.e.unbind(n.n,n.f):e._unbind(n.e,n.n,n.f,n.b)},this.cancelEvent=function(n){var n=n.original?n.original:n?n:window.event||!1;return n?(n.preventDefault&&n.preventDefault(),n.stopPropagation&&n.stopPropagation(),n.preventManipulation&&n.preventManipulation(),n.cancelBubble=!0,n.cancel=!0,n.returnValue=!1,!1):!1},this.stopPropagation=function(n){var n=n.original?n.original:n?n:window.event||!1;return n?n.stopPropagation?n.stopPropagation():(n.cancelBubble&&(n.cancelBubble=!0),!1):!1},this.showRail=function(){return e.page.maxh!=0&&(e.ispage||e.win.css("display")!="none")&&(e.visibility=!0,e.rail.visibility=!0,e.rail.css("display","block")),e},this.showRailHr=function(){return e.railh?(e.page.maxw!=0&&(e.ispage||e.win.css("display")!="none")&&(e.railh.visibility=!0,e.railh.css("display","block")),e):e},this.hideRail=function(){return e.visibility=!1,e.rail.visibility=!1,e.rail.css("display","none"),e},this.hideRailHr=function(){return e.railh?(e.railh.visibility=!1,e.railh.css("display","none"),e):e},this.show=function(){return e.hidden=!1,e.locked=!1,e.showRail().showRailHr()},this.hide=function(){return e.hidden=!0,e.locked=!0,e.hideRail().hideRailHr()},this.toggle=function(){return e.hidden?e.show():e.hide()},this.remove=function(){var t,n;for(e.stop(),e.cursortimeout&&clearTimeout(e.cursortimeout),e.doZoomOut(),e.unbindAll(),e.observer!==!1&&e.observer.disconnect(),e.observerremover!==!1&&e.observerremover.disconnect(),e.events=[],e.cursor&&(e.cursor.remove(),e.cursor=null),e.cursorh&&(e.cursorh.remove(),e.cursorh=null),e.rail&&(e.rail.remove(),e.rail=null),e.railh&&(e.railh.remove(),e.railh=null),e.zoom&&(e.zoom.remove(),e.zoom=null),t=0;t<e.saved.css.length;t++)n=e.saved.css[t],n[0].css(n[1],typeof n[2]=="undefined"?"":n[2]);return e.saved=!1,e.me.data("__nicescroll",""),e.me=null,e.doc=null,e.docscroll=null,e.win=null,e},this.scrollstart=function(n){return this.onscrollstart=n,e},this.scrollend=function(n){return this.onscrollend=n,e},this.scrollcancel=function(n){return this.onscrollcancel=n,e},this.zoomin=function(n){return this.onzoomin=n,e},this.zoomout=function(n){return this.onzoomout=n,e},this.isScrollable=function(n){var i=n.target?n.target:n,r,u;if(i.nodeName=="OPTION")return!0;while(i&&i.nodeType==1&&!/BODY|HTML/.test(i.nodeName)){if(r=t(i),u=r.css("overflowY")||r.css("overflowX")||r.css("overflow")||"",/scroll|auto/.test(u))return i.clientHeight!=i.scrollHeight;i=i.parentNode?i.parentNode:!1}return!1},this.getViewport=function(n){for(var i=n&&n.parentNode?n.parentNode:!1,r,u;i&&i.nodeType==1&&!/BODY|HTML/.test(i.nodeName);){if((r=t(i),u=r.css("overflowY")||r.css("overflowX")||r.css("overflow")||"",/scroll|auto/.test(u)&&i.clientHeight!=i.scrollHeight)||r.getNiceScroll().length>0)return r;i=i.parentNode?i.parentNode:!1}return!1},this.onmousewheel=function(n){var t,i,r;return e.locked?!0:e.rail.drag?e.cancelEvent(n):e.rail.scrollable?(t=+new Date,i=!1,e.opt.preservenativescrolling&&e.checkarea+600<t&&(e.nativescrollingarea=e.isScrollable(n),i=!0),e.checkarea=t,e.nativescrollingarea)?!0:(r=tt(n,!1,i),r&&(e.checkarea=0),r):e.railh&&e.railh.scrollable?e.onmousewheelhr(n):!0},this.onmousewheelhr=function(n){if(e.locked||!e.railh.scrollable)return!0;if(e.rail.drag)return e.cancelEvent(n);var t=+new Date,i=!1;return(e.opt.preservenativescrolling&&e.checkarea+600<t&&(e.nativescrollingarea=e.isScrollable(n),i=!0),e.checkarea=t,e.nativescrollingarea)?!0:e.locked?e.cancelEvent(n):tt(n,!0,i)},this.stop=function(){return e.cancelScroll(),e.scrollmon&&e.scrollmon.stop(),e.cursorfreezed=!1,e.scroll.y=Math.round(e.getScrollTop()*(1/e.scrollratio.y)),e.noticeCursor(),e},this.getTransitionSpeed=function(n){var i=Math.round(e.opt.scrollspeed*10),t=Math.min(i,Math.round(n/20*e.opt.scrollspeed));return t>20?t:0},e.opt.smoothscroll?e.ishwscroll&&h.hastransition&&e.opt.usetransition?(this.prepareTransition=function(n,t){var i=t?n>20?n:0:e.getTransitionSpeed(n),r=i?h.prefixstyle+"transform "+i+"ms ease-out":"";return e.lasttransitionstyle&&e.lasttransitionstyle==r||(e.lasttransitionstyle=r,e.doc.css(h.transitionstyle,r)),i},this.doScrollLeft=function(n,t){var i=e.scrollrunning?e.newscrolly:e.getScrollTop();e.doScrollPos(n,i,t)},this.doScrollTop=function(n,t){var i=e.scrollrunning?e.newscrollx:e.getScrollLeft();e.doScrollPos(i,n,t)},this.doScrollPos=function(n,t,i){var r=e.getScrollTop(),u=e.getScrollLeft();if((((e.newscrolly-r)*(t-r)<0||(e.newscrollx-u)*(n-u)<0)&&e.cancelScroll(),e.opt.bouncescroll==!1&&(t<0?t=0:t>e.page.maxh&&(t=e.page.maxh),n<0?n=0:n>e.page.maxw&&(n=e.page.maxw)),e.scrollrunning&&n==e.newscrollx&&t==e.newscrolly)||(e.newscrolly=t,e.newscrollx=n,e.newscrollspeed=i||!1,e.timer))return!1;e.timer=setTimeout(function(){var u=e.getScrollTop(),f=e.getScrollLeft(),r={},o,i,s,c,l;r.x=n-f,r.y=t-u,r.px=f,r.py=u,o=Math.round(Math.sqrt(Math.pow(r.x,2)+Math.pow(r.y,2))),i=e.newscrollspeed&&e.newscrollspeed>1?e.newscrollspeed:e.getTransitionSpeed(o),e.newscrollspeed&&e.newscrollspeed<=1&&(i*=e.newscrollspeed),e.prepareTransition(i,!0),e.timerscroll&&e.timerscroll.tm&&clearInterval(e.timerscroll.tm),i>0&&(!e.scrollrunning&&e.onscrollstart&&(s={type:"scrollstart",current:{x:f,y:u},request:{x:n,y:t},end:{x:e.newscrollx,y:e.newscrolly},speed:i},e.onscrollstart.call(e,s)),h.transitionend?e.scrollendtrapped||(e.scrollendtrapped=!0,e.bind(e.doc,h.transitionend,e.onScrollEnd,!1)):(e.scrollendtrapped&&clearTimeout(e.scrollendtrapped),e.scrollendtrapped=setTimeout(e.onScrollEnd,i)),c=u,l=f,e.timerscroll={bz:new BezierClass(c,e.newscrolly,i,0,0,.58,1),bh:new BezierClass(l,e.newscrollx,i,0,0,.58,1)},e.cursorfreezed||(e.timerscroll.tm=setInterval(function(){e.showCursor(e.getScrollTop(),e.getScrollLeft())},60))),e.synched("doScroll-set",function(){e.timer=0,e.scrollendtrapped&&(e.scrollrunning=!0),e.setScrollTop(e.newscrolly),e.setScrollLeft(e.newscrollx),e.scrollendtrapped||e.onScrollEnd()})},50)},this.cancelScroll=function(){if(!e.scrollendtrapped)return!0;var n=e.getScrollTop(),t=e.getScrollLeft();return e.scrollrunning=!1,h.transitionend||clearTimeout(h.transitionend),e.scrollendtrapped=!1,e._unbind(e.doc,h.transitionend,e.onScrollEnd),e.prepareTransition(0),e.setScrollTop(n),e.railh&&e.setScrollLeft(t),e.timerscroll&&e.timerscroll.tm&&clearInterval(e.timerscroll.tm),e.timerscroll=!1,e.cursorfreezed=!1,e.showCursor(n,t),e},this.onScrollEnd=function(){var n,t,i;if(e.scrollendtrapped&&e._unbind(e.doc,h.transitionend,e.onScrollEnd),e.scrollendtrapped=!1,e.prepareTransition(0),e.timerscroll&&e.timerscroll.tm&&clearInterval(e.timerscroll.tm),e.timerscroll=!1,n=e.getScrollTop(),t=e.getScrollLeft(),e.setScrollTop(n),e.railh&&e.setScrollLeft(t),e.noticeCursor(!1,n,t),e.cursorfreezed=!1,n<0?n=0:n>e.page.maxh&&(n=e.page.maxh),t<0?t=0:t>e.page.maxw&&(t=e.page.maxw),n!=e.newscrolly||t!=e.newscrollx)return e.doScrollPos(t,n,e.opt.snapbackspeed);e.onscrollend&&e.scrollrunning&&(i={type:"scrollend",current:{x:t,y:n},end:{x:e.newscrollx,y:e.newscrolly}},e.onscrollend.call(e,i)),e.scrollrunning=!1}):(this.doScrollLeft=function(n,t){var i=e.scrollrunning?e.newscrolly:e.getScrollTop();e.doScrollPos(n,i,t)},this.doScrollTop=function(n,t){var i=e.scrollrunning?e.newscrollx:e.getScrollLeft();e.doScrollPos(i,n,t)},this.doScrollPos=function(n,t,u){function v(){var r,n,t,u,f;if(e.cancelAnimationFrame)return!0;if(e.scrollrunning=!0,a=1-a,a)return e.timer=i(v)||1;r=0,n=sy=e.getScrollTop(),e.dst.ay?(n=e.bzscroll?e.dst.py+e.bzscroll.getNow()*e.dst.ay:e.newscrolly,u=n-sy,(u<0&&n<e.newscrolly||u>0&&n>e.newscrolly)&&(n=e.newscrolly),e.setScrollTop(n),n==e.newscrolly&&(r=1)):r=1,t=sx=e.getScrollLeft(),e.dst.ax?(t=e.bzscroll?e.dst.px+e.bzscroll.getNow()*e.dst.ax:e.newscrollx,u=t-sx,(u<0&&t<e.newscrollx||u>0&&t>e.newscrollx)&&(t=e.newscrollx),e.setScrollLeft(t),t==e.newscrollx&&(r+=1)):r+=1,r==2?(e.timer=0,e.cursorfreezed=!1,e.bzscroll=!1,e.scrollrunning=!1,n<0?n=0:n>e.page.maxh&&(n=e.page.maxh),t<0?t=0:t>e.page.maxw&&(t=e.page.maxw),t!=e.newscrollx||n!=e.newscrolly?e.doScrollPos(t,n):e.onscrollend&&(f={type:"scrollend",current:{x:sx,y:sy},end:{x:e.newscrollx,y:e.newscrolly}},e.onscrollend.call(e,f))):e.timer=i(v)||1}var t=typeof t=="undefined"||t===!1?e.getScrollTop(!0):t,f,o,h,l,c,s,a,y;if(e.timer&&e.newscrolly==t&&e.newscrollx==n)return!0;(e.timer&&r(e.timer),e.timer=0,f=e.getScrollTop(),o=e.getScrollLeft(),((e.newscrolly-f)*(t-f)<0||(e.newscrollx-o)*(n-o)<0)&&e.cancelScroll(),e.newscrolly=t,e.newscrollx=n,e.bouncescroll&&e.rail.visibility||(e.newscrolly<0?e.newscrolly=0:e.newscrolly>e.page.maxh&&(e.newscrolly=e.page.maxh)),e.bouncescroll&&e.railh.visibility||(e.newscrollx<0?e.newscrollx=0:e.newscrollx>e.page.maxw&&(e.newscrollx=e.page.maxw)),e.dst={},e.dst.x=n-o,e.dst.y=t-f,e.dst.px=o,e.dst.py=f,h=Math.round(Math.sqrt(Math.pow(e.dst.x,2)+Math.pow(e.dst.y,2))),e.dst.ax=e.dst.x/h,e.dst.ay=e.dst.y/h,l=0,c=h,e.dst.x==0?(l=f,c=t,e.dst.ay=1,e.dst.py=0):e.dst.y==0&&(l=o,c=n,e.dst.ax=1,e.dst.px=0),s=e.getTransitionSpeed(h),u&&u<=1&&(s*=u),e.bzscroll=s>0?e.bzscroll?e.bzscroll.update(c,s):new BezierClass(l,c,s,0,1,0,1):!1,e.timer)||((f==e.page.maxh&&t>=e.page.maxh||o==e.page.maxw&&n>=e.page.maxw)&&e.checkContentSize(),a=1,e.cancelAnimationFrame=!1,e.timer=1,e.onscrollstart&&!e.scrollrunning&&(y={type:"scrollstart",current:{x:o,y:f},request:{x:n,y:t},end:{x:e.newscrollx,y:e.newscrolly},speed:s},e.onscrollstart.call(e,y)),v(),(f==e.page.maxh&&t>=f||o==e.page.maxw&&n>=o)&&e.checkContentSize(),e.noticeCursor())},this.cancelScroll=function(){return e.timer&&r(e.timer),e.timer=0,e.bzscroll=!1,e.scrollrunning=!1,e}):(this.doScrollLeft=function(n,t){var i=e.getScrollTop();e.doScrollPos(n,i,t)},this.doScrollTop=function(n,t){var i=e.getScrollLeft();e.doScrollPos(i,n,t)},this.doScrollPos=function(n,t){var u=n>e.page.maxw?e.page.maxw:n,r;u<0&&(u=0),r=t>e.page.maxh?e.page.maxh:t,r<0&&(r=0),e.synched("scroll",function(){e.setScrollTop(r),e.setScrollLeft(u)})},this.cancelScroll=function(){}),this.doScrollBy=function(n,t){var i=0,u,r;if(t?i=Math.floor((e.scroll.y-n)*e.scrollratio.y):(u=e.timer?e.newscrolly:e.getScrollTop(!0),i=u-n),e.bouncescroll&&(r=Math.round(e.view.h/2),i<-r?i=-r:i>e.page.maxh+r&&(i=e.page.maxh+r)),e.cursorfreezed=!1,py=e.getScrollTop(!0),i<0&&py<=0)return e.noticeCursor();if(i>e.page.maxh&&py>=e.page.maxh)return e.checkContentSize(),e.noticeCursor();e.doScrollTop(i)},this.doScrollLeftBy=function(n,t){var i=0,u,r;if((t?i=Math.floor((e.scroll.x-n)*e.scrollratio.x):(u=e.timer?e.newscrollx:e.getScrollLeft(!0),i=u-n),e.bouncescroll&&(r=Math.round(e.view.w/2),i<-r?i=-r:i>e.page.maxw+r&&(i=e.page.maxw+r)),e.cursorfreezed=!1,px=e.getScrollLeft(!0),i<0&&px<=0)||i>e.page.maxw&&px>=e.page.maxw)return e.noticeCursor();e.doScrollLeft(i)},this.doScrollTo=function(n,t){var i=t?Math.round(n*e.scrollratio.y):n;i<0?i=0:i>e.page.maxh&&(i=e.page.maxh),e.cursorfreezed=!1,e.doScrollTop(n)},this.checkContentSize=function(){var n=e.getContentSize();(n.h!=e.page.h||n.w!=e.page.w)&&e.resize(!1,n)},e.onscroll=function(){e.rail.drag||e.cursorfreezed||e.synched("scroll",function(){e.scroll.y=Math.round(e.getScrollTop()*(1/e.scrollratio.y)),e.railh&&(e.scroll.x=Math.round(e.getScrollLeft()*(1/e.scrollratio.x))),e.noticeCursor()})},e.bind(e.docscroll,"scroll",e.onscroll),this.doZoomIn=function(n){var r,f,s,i,o;if(!e.zoomactive){e.zoomactive=!0,e.zoomrestore={style:{}},r=["position","top","left","zIndex","backgroundColor","marginTop","marginBottom","marginLeft","marginRight"],f=e.win[0].style;for(s in r)i=r[s],e.zoomrestore.style[i]=typeof f[i]!="undefined"?f[i]:"";return e.zoomrestore.style.width=e.win.css("width"),e.zoomrestore.style.height=e.win.css("height"),e.zoomrestore.padding={w:e.win.outerWidth()-e.win.width(),h:e.win.outerHeight()-e.win.height()},h.isios4&&(e.zoomrestore.scrollTop=t(window).scrollTop(),t(window).scrollTop(0)),e.win.css({position:h.isios4?"absolute":"fixed",top:0,left:0,"z-index":u+100,margin:"0px"}),o=e.win.css("backgroundColor"),(o==""||/transparent|rgba\(0, 0, 0, 0\)|rgba\(0,0,0,0\)/.test(o))&&e.win.css("backgroundColor","#fff"),e.rail.css({"z-index":u+101}),e.zoom.css({"z-index":u+102}),e.zoom.css("backgroundPosition","0px -18px"),e.resizeZoom(),e.onzoomin&&e.onzoomin.call(e),e.cancelEvent(n)}},this.doZoomOut=function(n){if(e.zoomactive)return e.zoomactive=!1,e.win.css("margin",""),e.win.css(e.zoomrestore.style),h.isios4&&t(window).scrollTop(e.zoomrestore.scrollTop),e.rail.css({"z-index":e.zindex}),e.zoom.css({"z-index":e.zindex}),e.zoomrestore=!1,e.zoom.css("backgroundPosition","0px 0px"),e.onResize(),e.onzoomout&&e.onzoomout.call(e),e.cancelEvent(n)},this.doZoom=function(n){return e.zoomactive?e.doZoomOut(n):e.doZoomIn(n)},this.resizeZoom=function(){if(e.zoomactive){var n=e.getScrollTop();e.win.css({width:t(window).width()-e.zoomrestore.padding.w+"px",height:t(window).height()-e.zoomrestore.padding.h+"px"}),e.onResize(),e.setScrollTop(Math.min(e.page.maxh,n))}},this.init(),t.nicescroll.push(this)},y=function(n){var t=this;this.nc=n,this.lastx=0,this.lasty=0,this.speedx=0,this.speedy=0,this.lasttime=0,this.steptime=0,this.snapx=!1,this.snapy=!1,this.demulx=0,this.demuly=0,this.lastscrollx=-1,this.lastscrolly=-1,this.chkx=0,this.chky=0,this.timer=0,this.time=function(){return+new Date},this.reset=function(n,i){t.stop();var r=t.time();t.steptime=0,t.lasttime=r,t.speedx=0,t.speedy=0,t.lastx=n,t.lasty=i,t.lastscrollx=-1,t.lastscrolly=-1},this.update=function(n,i){var r=t.time();t.steptime=r-t.lasttime,t.lasttime=r;var u=i-t.lasty,f=n-t.lastx,s=t.nc.getScrollTop(),h=t.nc.getScrollLeft(),e=s+u,o=h+f;t.snapx=o<0||o>t.nc.page.maxw,t.snapy=e<0||e>t.nc.page.maxh,t.speedx=f,t.speedy=u,t.lastx=n,t.lasty=i},this.stop=function(){t.nc.unsynched("domomentum2d"),t.timer&&clearTimeout(t.timer),t.timer=0,t.lastscrollx=-1,t.lastscrolly=-1},this.doSnapy=function(n,i){var r=!1;i<0?(i=0,r=!0):i>t.nc.page.maxh&&(i=t.nc.page.maxh,r=!0),n<0?(n=0,r=!0):n>t.nc.page.maxw&&(n=t.nc.page.maxw,r=!0),r&&t.nc.doScrollPos(n,i,t.nc.opt.snapbackspeed)},this.doMomentum=function(n){var e=t.time(),c=n?e+n:t.lasttime,l=t.nc.getScrollLeft(),a=t.nc.getScrollTop(),o=t.nc.page.maxh,s=t.nc.page.maxw,f,v,y,u,h;if(t.speedx=s>0?Math.min(60,t.speedx):0,t.speedy=o>0?Math.min(60,t.speedy):0,f=c&&e-c<=50,(a<0||a>o||l<0||l>s)&&(f=!1),v=t.speedy&&f?t.speedy:!1,y=t.speedx&&f?t.speedx:!1,v||y){u=Math.max(16,t.steptime),u>50&&(h=u/50,t.speedx*=h,t.speedy*=h,u=50),t.demulxy=0,t.lastscrollx=t.nc.getScrollLeft(),t.chkx=t.lastscrollx,t.lastscrolly=t.nc.getScrollTop(),t.chky=t.lastscrolly;var i=t.lastscrollx,r=t.lastscrolly,p=function(){var n=t.time()-e>600?.04:.02;t.speedx&&(i=Math.floor(t.lastscrollx-t.speedx*(1-t.demulxy)),t.lastscrollx=i,(i<0||i>s)&&(n=.1)),t.speedy&&(r=Math.floor(t.lastscrolly-t.speedy*(1-t.demulxy)),t.lastscrolly=r,(r<0||r>o)&&(n=.1)),t.demulxy=Math.min(1,t.demulxy+n),t.nc.synched("domomentum2d",function(){var n,u;t.speedx&&(n=t.nc.getScrollLeft(),n!=t.chkx&&t.stop(),t.chkx=i,t.nc.setScrollLeft(i)),t.speedy&&(u=t.nc.getScrollTop(),u!=t.chky&&t.stop(),t.chky=r,t.nc.setScrollTop(r)),t.timer||(t.nc.hideCursor(),t.doSnapy(i,r))}),t.demulxy<1?t.timer=setTimeout(p,u):(t.stop(),t.nc.hideCursor(),t.doSnapy(i,r))};p()}else t.doSnapy(t.nc.getScrollLeft(),t.nc.getScrollTop())}},h=n.fn.scrollTop;n.cssHooks.pageYOffset={get:function(n){var u=t.data(n,"__nicescroll")||!1;return u&&u.ishwscroll?u.getScrollTop():h.call(n)},set:function(n,i){var r=t.data(n,"__nicescroll")||!1;return r&&r.ishwscroll?r.setScrollTop(parseInt(i)):h.call(n,i),this}},n.fn.scrollTop=function(n){if(typeof n=="undefined"){var i=this[0]?t.data(this[0],"__nicescroll")||!1:!1;return i&&i.ishwscroll?i.getScrollTop():h.call(this)}return this.each(function(){var i=t.data(this,"__nicescroll")||!1;i&&i.ishwscroll?i.setScrollTop(parseInt(n)):h.call(t(this),n)})},f=n.fn.scrollLeft,t.cssHooks.pageXOffset={get:function(n){var u=t.data(n,"__nicescroll")||!1;return u&&u.ishwscroll?u.getScrollLeft():f.call(n)},set:function(n,i){var r=t.data(n,"__nicescroll")||!1;return r&&r.ishwscroll?r.setScrollLeft(parseInt(i)):f.call(n,i),this}},n.fn.scrollLeft=function(n){if(typeof n=="undefined"){var i=this[0]?t.data(this[0],"__nicescroll")||!1:!1;return i&&i.ishwscroll?i.getScrollLeft():f.call(this)}return this.each(function(){var i=t.data(this,"__nicescroll")||!1;i&&i.ishwscroll?i.setScrollLeft(parseInt(n)):f.call(t(this),n)})},e=function(n){var i=this,r;if(this.length=0,this.name="nicescrollarray",this.each=function(n){for(var t=0;t<i.length;t++)n.call(i[t]);return i},this.push=function(n){i[i.length]=n,i.length++},this.eq=function(n){return i[n]},n)for(a=0;a<n.length;a++)r=t.data(n[a],"__nicescroll")||!1,r&&(this[this.length]=r,this.length++);return this},tt(e.prototype,["show","hide","toggle","onResize","resize","remove","stop","doScrollPos"],function(n,t){n[t]=function(){var n=arguments;return this.each(function(){this[t].apply(this,n)})}}),n.fn.getNiceScroll=function(n){return typeof n=="undefined"?new e(this):t.data(this[n],"__nicescroll")||!1},n.extend(n.expr[":"],{nicescroll:function(n){return t.data(n,"__nicescroll")?!0:!1}}),t.fn.niceScroll=function(n,i){var r,u;return typeof i=="undefined"&&(typeof n!="object"||"jquery"in n||(i=n,n=!1)),r=new e,typeof i=="undefined"&&(i={}),(n||!1)&&(i.doc=t(n),i.win=t(this)),u=!("doc"in i),u||"win"in i||(i.win=t(this)),this.each(function(){var n=t(this).data("__nicescroll")||!1;n||(i.doc=u?t(this):i.doc,n=new nt(i,t(this)),t(this).data("__nicescroll",n)),r.push(n)}),r.length==1?r[0]:r},window.NiceScroll={getjQuery:function(){return n}},t.nicescroll||(t.nicescroll=new e,t.nicescroll.options=v)}(jQuery),function(n,t,i){var u=i("#topMenu"),r="click.fndtn",f,e,o;if(u.length>0&&u.css("margin-top",u.height()*-1),f=i("#sidebarButton"),f.length>0)i("#sidebarButton").on(r,function(n){n.preventDefault(),i("body").toggleClass("active")});if(e=i("#menuButton"),e.length>0)i("#menuButton").on(r,function(n){n.preventDefault(),i("body").toggleClass("active-menu")});if(o=i("#switchPanels"),o.length>0)i("#switchPanels dd").on(r,function(n){n.preventDefault();var t=i(this).children("a").attr("href"),r=i(t).index();i(this).toggleClass("active").siblings().removeClass("active"),i(t).parent().css("left",r*-100+"%")});i("#nav li a").on(r,function(n){n.preventDefault();var t=i(this).attr("href"),r=i(t);i("html, body").animate({scrollTop:r.offset().top},300)})}(this,document,jQuery),function(n,t,i){function l(n){var t={},r=/^jQuery\d+$/;return i.each(n.attributes,function(n,i){i.specified&&!r.test(i.name)&&(t[i.name]=i.value)}),t}function f(n,r){var f=this,u=i(f);if(f.value==u.attr("placeholder")&&u.hasClass("placeholder"))if(u.data("placeholder-password")){if(u=u.hide().next().show().attr("id",u.removeAttr("id").data("placeholder-id")),n===!0)return u[0].value=r;u.focus()}else f.value="",u.removeClass("placeholder"),f==t.activeElement&&f.select()}function s(){var t,r=this,n=i(r),e=n,u=this.id;if(r.value==""){if(r.type=="password"){if(!n.data("placeholder-textinput")){try{t=n.clone().attr({type:"text"})}catch(o){t=i("<input>").attr(i.extend(l(this),{type:"text"}))}t.removeAttr("name").data({"placeholder-password":!0,"placeholder-id":u}).bind("focus.placeholder",f),n.data({"placeholder-textinput":t,"placeholder-id":u}).before(t)}n=n.removeAttr("id").hide().prev().attr("id",u).show()}n.addClass("placeholder"),n[0].value=n.attr("placeholder")}else n.removeClass("placeholder")}var u="placeholder"in t.createElement("input"),e="placeholder"in t.createElement("textarea"),h=i.fn,c=i.valHooks,o,r;u&&e?(r=h.placeholder=function(){return this},r.input=r.textarea=!0):(r=h.placeholder=function(){var n=this;return n.filter((u?"textarea":":input")+"[placeholder]").not(".placeholder").bind({"focus.placeholder":f,"blur.placeholder":s}).data("placeholder-enabled",!0).trigger("blur.placeholder"),n},r.input=u,r.textarea=e,o={get:function(n){var t=i(n);return t.data("placeholder-enabled")&&t.hasClass("placeholder")?"":n.value},set:function(n,r){var u=i(n);return u.data("placeholder-enabled")?(r==""?(n.value=r,n!=t.activeElement&&s.call(n)):u.hasClass("placeholder")?f.call(n,!0,r)||(n.value=r):n.value=r,u):n.value=r}},u||(c.input=o),e||(c.textarea=o),i(function(){i(t).delegate("form","submit.placeholder",function(){var n=i(".placeholder",this).each(f);setTimeout(function(){n.each(s)},10)})}),i(n).bind("beforeunload.placeholder",function(){i(".placeholder").each(function(){this.value=""})}))}(this,document,jQuery),function(n){n.superscrollorama=function(t){function p(){s.scroll(function(){h=!0}),TweenLite.ticker.addEventListener("tick",w)}function l(n){var t={top:parseFloat(n.css("top")),left:parseFloat(n.css("left"))};return isNaN(t.top)&&(t.top=0),isNaN(t.left)&&(t.left=0),t}function w(){h&&(v(),h=!1)}function a(n){n.el.css("position",n.origPositioning.pos),n.el.css("top",n.origPositioning.top),n.el.css("left",n.origPositioning.left)}function f(n,t){n&&(n.totalProgress?n.totalProgress(t).pause():n.progress(t).pause())}function v(){for(var v=i.settings.isVertical?s.scrollTop()+r.y:s.scrollLeft()+r.x,ft=i.settings.triggerAtCenter?i.settings.isVertical?-s.height()/2:-s.width()/2:0,c,p,ct=e.length,it,g,et,t,y,ot,st,k,nt,rt,ut,d,ht,w=0;w<ct;w++){var h=e[w],b=h.target,tt=h.offset;typeof b=="string"?(o=n(b).offset(),c=i.settings.isVertical?o.top+r.y:o.left+r.x,tt+=ft):typeof b=="number"?c=b:n.isFunction(b)?c=b.call(this):(o=b.offset(),c=i.settings.isVertical?o.top+r.y:o.left+r.x,tt+=ft),c+=tt,p=c+h.dur,v>c&&v<p&&h.state!=="TWEENING"&&(h.state="TWEENING",h.start=c,h.end=p),v<c&&h.state!=="BEFORE"&&h.reverse?(i.settings.playoutAnimations||h.dur===0?h.tween.reverse():f(h.tween,0),h.state="BEFORE"):v>p&&h.state!=="AFTER"?(i.settings.playoutAnimations||h.dur===0?h.tween.play():f(h.tween,1),h.state="AFTER"):h.state==="TWEENING"&&(it=!1,h.tween.repeat&&(it=h.tween.repeat()===-1),it?(g=h.tween.totalProgress(),(h.playeadLastPosition===null||g===h.playeadLastPosition)&&(g===1?h.tween.yoyo()?h.tween.reverse():h.tween.totalProgress(0).play():h.tween.play()),h.playeadLastPosition=g):f(h.tween,(v-h.start)/(h.end-h.start)))}for(et=u.length,w=0;w<et;w++){if(t=u[w],y=t.el,t.state!=="PINNED"&&(t.state==="UPDATE"&&a(t),c=i.settings.isVertical?t.spacer.offset().top+r.y:t.spacer.offset().left+r.x,c+=t.offset,p=c+t.dur,ot=v>p&&t.state==="BEFORE"||v<c&&t.state==="AFTER",st=v>c&&v<p,st||ot)){if(t.pushFollowers&&y.css("position")==="static"&&y.css("position","relative"),t.origPositioning={pos:y.css("position"),top:t.spacer.css("top"),left:t.spacer.css("left")},t.fixedPositioning={top:i.settings.isVertical?-t.offset:t.spacer.offset().top,left:i.settings.isVertical?t.spacer.offset().left:-t.offset},y.css("position","fixed"),y.css("top",t.fixedPositioning.top),y.css("left",t.fixedPositioning.left),t.pinStart=c,t.pinEnd=p,t.pushFollowers?i.settings.isVertical?t.spacer.height(t.dur+y.outerHeight()):t.spacer.width(t.dur+y.outerWidth()):t.origPositioning.pos==="absolute"?(t.spacer.width(0),t.spacer.height(0)):i.settings.isVertical?t.spacer.height(y.outerHeight()):t.spacer.width(y.outerWidth()),t.state==="UPDATE")t.anim&&f(t.anim,0);else if(t.onPin)t.onPin(t.state==="AFTER");t.state="PINNED"}if(t.state==="PINNED")if(v<t.pinStart||v>t.pinEnd){if(k=v<t.pinStart,t.state=k?"BEFORE":"AFTER",f(t.anim,k?0:1),nt=k?0:t.dur,i.settings.isVertical?t.spacer.height(t.pushFollowers?nt:0):t.spacer.width(t.pushFollowers?nt:0),rt=t.fixedPositioning.top-l(t.el).top,ut=t.fixedPositioning.left-l(t.el).left,a(t),t.pushFollowers&&t.origPositioning.pos!=="absolute"||(t.origPositioning.pos==="relative"?(d=i.settings.isVertical?parseFloat(t.origPositioning.top):parseFloat(t.origPositioning.left),isNaN(d)&&(d=0)):d=i.settings.isVertical?t.spacer.position().top:t.spacer.position().left,ht=i.settings.isVertical?"top":"left",t.el.css(ht,d+nt)),rt!==0&&t.el.css("top",l(t.el).top-rt),ut!==0&&t.el.css("left",l(t.el).left-ut),t.onUnpin)t.onUnpin(!k)}else t.anim&&f(t.anim,(v-t.pinStart)/(t.pinEnd-t.pinStart))}}var i=this,y={isVertical:!0,triggerAtCenter:!0,playoutAnimations:!0,reverse:!0};i.settings=n.extend({},y,t);var s=n(window),e=[],u=[],r={x:0,y:0},h=!1,o,c;return i.addTween=function(n,t,r,u,f){return t.pause(),e.push({target:n,tween:t,offset:u||0,dur:r||0,reverse:typeof f!="undefined"?f:i.settings.reverse,state:"BEFORE"}),i},i.pin=function(t,r,f){var o,e;return typeof t=="string"&&(t=n(t)),o={offset:-140,pushFollowers:!0},f=n.extend({},o,f),f.anim&&f.anim.pause(),e=n('<div class="superscrollorama-pin-spacer"><\/div>'),e.css("position","relative"),e.css("top",t.css("top")),e.css("left",t.css("left")),t.before(e),u.push({el:t,state:"BEFORE",dur:r,offset:f.offset,anim:f.anim,pushFollowers:f.pushFollowers,spacer:e,onPin:f.onPin,onUnpin:f.onUnpin}),i},i.updatePin=function(t,r,f){var o,e;for(typeof t=="string"&&(t=n(t)),f.anim&&f.anim.pause(),o=u.length,c=0;c<o;c++)e=u[c],t.get(0)===e.el.get(0)&&(r&&(e.dur=r),f.anim&&(e.anim=f.anim),f.offset&&(e.offset=f.offset),typeof f.pushFollowers!="undefined"&&(e.pushFollowers=f.pushFollowers),f.onPin&&(e.onPin=f.onPin),f.onUnpin&&(e.onUnpin=f.onUnpin),(r||f.anim||f.offset)&&e.state==="PINNED"&&(e.state="UPDATE",v()));return i},i.removeTween=function(n,t,r){var s=e.length,u,o;for(typeof r=="undefined"&&(r=!0),u=0;u<s;u++)o=e[u],o.target!==n||t&&o.tween!==t||(e.splice(u,1),r&&f(o.tween,0),s--,u--);return i},i.removePin=function(t,r){var s,e,o;for(typeof t=="string"&&(t=n(t)),typeof r=="undefined"&&(r=!0),s=u.length,e=0;e<s;e++)o=u[e],o.el.is(t)&&(u.splice(e,1),r&&(o.spacer.remove(),a(o),o.anim&&f(o.anim,0)),s--,e--);return i},i.setScrollContainerOffset=function(n,t){return r.x=n,r.y=t,i},i.triggerCheckAnim=function(n){return n?v():h=!0,i},p(),i}}(jQuery),function(){(function(n,t){return typeof define=="function"&&define.amd?define(["jquery","waypoints"],t):t(n.jQuery)})(this,function(n){var t,i;return t={wrapper:'<div class="sticky-wrapper" />',stuckClass:"stuck"},i=function(t,i){return t.wrap(i.wrapper),t.each(function(){var t;return t=n(this),t.parent().height(t.outerHeight()),!0}),t.parent()},n.waypoints("extendFn","sticky",function(r){var f,u;return r=n.extend({},n.fn.waypoint.defaults,t,r),f=i(this,r),u=r.handler,r.handler=function(t){var i,f;return i=n(this).children(":first"),f=t==="down"||t==="right",i.toggleClass(r.stuckClass,f),u!=null?u.call(this,t):void 0},f.waypoint(r),this})})}.call(this),function(){var t=[].indexOf||function(n){for(var t=0,i=this.length;t<i;t++)if(t in this&&this[t]===n)return t;return-1},n=[].slice;(function(n,t){return typeof define=="function"&&define.amd?define("waypoints",["jquery"],function(i){return t(i,n)}):t(n.jQuery,n)})(this,function(i,r){var a,b,v,o,k,h,s,y,u,f,p,w,d,l,c,e;return a=i(r),y=t.call(r,"ontouchstart")>=0,o={horizontal:{},vertical:{}},k=1,s={},h="waypoints-context-id",p="resize.waypoints",w="scroll.waypoints",d=1,l="waypoints-waypoint-ids",c="waypoint",e="waypoints",b=function(){function n(n){var t=this;this.$element=n,this.element=n[0],this.didResize=!1,this.didScroll=!1,this.id="context"+k++,this.oldScroll={x:n.scrollLeft(),y:n.scrollTop()},this.waypoints={horizontal:{},vertical:{}},n.data(h,this.id),s[this.id]=this,n.bind(w,function(){var n;if(!t.didScroll&&!y)return t.didScroll=!0,n=function(){return t.doScroll(),t.didScroll=!1},r.setTimeout(n,i[e].settings.scrollThrottle)}),n.bind(p,function(){var n;if(!t.didResize)return t.didResize=!0,n=function(){return i[e]("refresh"),t.didResize=!1},r.setTimeout(n,i[e].settings.resizeThrottle)})}return n.prototype.doScroll=function(){var n,t=this;return n={horizontal:{newScroll:this.$element.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.$element.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}},!y||n.vertical.oldScroll&&n.vertical.newScroll||i[e]("refresh"),i.each(n,function(n,r){var e,f,u;return u=[],f=r.newScroll>r.oldScroll,e=f?r.forward:r.backward,i.each(t.waypoints[n],function(n,t){var i,f;return r.oldScroll<(i=t.offset)&&i<=r.newScroll?u.push(t):r.newScroll<(f=t.offset)&&f<=r.oldScroll?u.push(t):void 0}),u.sort(function(n,t){return n.offset-t.offset}),f||u.reverse(),i.each(u,function(n,t){if(t.options.continuous||n===u.length-1)return t.trigger([e])})}),this.oldScroll={x:n.horizontal.newScroll,y:n.vertical.newScroll}},n.prototype.refresh=function(){var r,t,n,u=this;return n=i.isWindow(this.element),t=this.$element.offset(),this.doScroll(),r={horizontal:{contextOffset:n?0:t.left,contextScroll:n?0:this.oldScroll.x,contextDimension:this.$element.width(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:n?0:t.top,contextScroll:n?0:this.oldScroll.y,contextDimension:n?i[e]("viewportHeight"):this.$element.height(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}},i.each(r,function(n,t){return i.each(u.waypoints[n],function(n,r){var u,e,f,o,s;if(u=r.options.offset,f=r.offset,e=i.isWindow(r.element)?0:r.$element.offset()[t.offsetProp],i.isFunction(u)?u=u.apply(r.element):typeof u=="string"&&(u=parseFloat(u),r.options.offset.indexOf("%")>-1&&(u=Math.ceil(t.contextDimension*u/100))),r.offset=e-t.contextOffset+t.contextScroll-u,(!r.options.onlyOnScroll||f==null)&&r.enabled)return f!==null&&f<(o=t.oldScroll)&&o<=r.offset?r.trigger([t.backward]):f!==null&&f>(s=t.oldScroll)&&s>=r.offset?r.trigger([t.forward]):f===null&&t.oldScroll>=r.offset?r.trigger([t.forward]):void 0})})},n.prototype.checkEmpty=function(){if(i.isEmptyObject(this.waypoints.horizontal)&&i.isEmptyObject(this.waypoints.vertical))return this.$element.unbind([p,w].join(" ")),delete s[this.id]},n}(),v=function(){function n(n,t,r){var u,f;r=i.extend({},i.fn[c].defaults,r),r.offset==="bottom-in-view"&&(r.offset=function(){var n;return n=i[e]("viewportHeight"),i.isWindow(t.element)||(n=t.$element.height()),n-i(this).outerHeight()}),this.$element=n,this.element=n[0],this.axis=r.horizontal?"horizontal":"vertical",this.callback=r.handler,this.context=t,this.enabled=r.enabled,this.id="waypoints"+d++,this.offset=null,this.options=r,t.waypoints[this.axis][this.id]=this,o[this.axis][this.id]=this,u=(f=n.data(l))!=null?f:[],u.push(this.id),n.data(l,u)}return n.prototype.trigger=function(n){if(this.enabled)return this.callback!=null&&this.callback.apply(this.element,n),this.options.triggerOnce?this.destroy():void 0},n.prototype.disable=function(){return this.enabled=!1},n.prototype.enable=function(){return this.context.refresh(),this.enabled=!0},n.prototype.destroy=function(){return delete o[this.axis][this.id],delete this.context.waypoints[this.axis][this.id],this.context.checkEmpty()},n.getWaypointsByElement=function(n){var r,t;return(t=i(n).data(l),!t)?[]:(r=i.extend({},o.horizontal,o.vertical),i.map(t,function(n){return r[n]}))},n}(),f={init:function(n,t){var r;return t==null&&(t={}),(r=t.handler)==null&&(t.handler=n),this.each(function(){var u,r,n,f;return u=i(this),n=(f=t.context)!=null?f:i.fn[c].defaults.context,i.isWindow(n)||(n=u.closest(n)),n=i(n),r=s[n.data(h)],r||(r=new b(n)),new v(u,r,t)}),i[e]("refresh"),this},disable:function(){return f._invoke(this,"disable")},enable:function(){return f._invoke(this,"enable")},destroy:function(){return f._invoke(this,"destroy")},prev:function(n,t){return f._traverse.call(this,n,t,function(n,t,i){if(t>0)return n.push(i[t-1])})},next:function(n,t){return f._traverse.call(this,n,t,function(n,t,i){if(t<i.length-1)return n.push(i[t+1])})},_traverse:function(n,t,f){var e,o;return n==null&&(n="vertical"),t==null&&(t=r),o=u.aggregate(t),e=[],this.each(function(){var t;return t=i.inArray(this,o[n]),f(e,t,o[n])}),this.pushStack(e)},_invoke:function(n,t){return n.each(function(){var n;return n=v.getWaypointsByElement(this),i.each(n,function(n,i){return i[t](),!0})}),this}},i.fn[c]=function(){var r,t;return t=arguments[0],r=2<=arguments.length?n.call(arguments,1):[],f[t]?f[t].apply(this,r):i.isFunction(t)?f.init.apply(this,arguments):i.isPlainObject(t)?f.init.apply(this,[null,t]):t?i.error("The "+t+" method does not exist in jQuery Waypoints."):i.error("jQuery Waypoints needs a callback function or handler option.")},i.fn[c].defaults={context:r,continuous:!0,enabled:!0,horizontal:!1,offset:0,triggerOnce:!1},u={refresh:function(){return i.each(s,function(n,t){return t.refresh()})},viewportHeight:function(){var n;return(n=r.innerHeight)!=null?n:a.height()},aggregate:function(n){var r,t,u;return(r=o,n&&(r=(u=s[i(n).data(h)])!=null?u.waypoints:void 0),!r)?[]:(t={horizontal:[],vertical:[]},i.each(t,function(n,u){return i.each(r[n],function(n,t){return u.push(t)}),u.sort(function(n,t){return n.offset-t.offset}),t[n]=i.map(u,function(n){return n.element}),t[n]=i.unique(t[n])}),t)},above:function(n){return n==null&&(n=r),u._filter(n,"vertical",function(n,t){return t.offset<=n.oldScroll.y})},below:function(n){return n==null&&(n=r),u._filter(n,"vertical",function(n,t){return t.offset>n.oldScroll.y})},left:function(n){return n==null&&(n=r),u._filter(n,"horizontal",function(n,t){return t.offset<=n.oldScroll.x})},right:function(n){return n==null&&(n=r),u._filter(n,"horizontal",function(n,t){return t.offset>n.oldScroll.x})},enable:function(){return u._invoke("enable")},disable:function(){return u._invoke("disable")},destroy:function(){return u._invoke("destroy")},extendFn:function(n,t){return f[n]=t},_invoke:function(n){var t;return t=i.extend({},o.vertical,o.horizontal),i.each(t,function(t,i){return i[n](),!0})},_filter:function(n,t,r){var u,f;return(u=s[i(n).data(h)],!u)?[]:(f=[],i.each(u.waypoints[t],function(n,t){if(r(u,t))return f.push(t)}),f.sort(function(n,t){return n.offset-t.offset}),i.map(f,function(n){return n.element}))}},i[e]=function(){var i,t;return t=arguments[0],i=2<=arguments.length?n.call(arguments,1):[],u[t]?u[t].apply(null,i):u.aggregate.call(null,t)},i[e].settings={resizeThrottle:100,scrollThrottle:30},a.load(function(){return i[e]("refresh")})})}.call(this)