function updateLocale(n,t){$.get("/UpdateLocale",{locale:n},function(){window.location=t})}function detect_autoplay(n){var t,i,r,u;autoplay=!1,t=document.createElement("video"),i=document.createElement("source"),i.src="data:video/mp4;base64,AAAAFGZ0eXBNU05WAAACAE1TTlYAAAOUbW9vdgAAAGxtdmhkAAAAAM9ghv7PYIb+AAACWAAACu8AAQAAAQAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAnh0cmFrAAAAXHRraGQAAAAHz2CG/s9ghv4AAAABAAAAAAAACu8AAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAFAAAAA4AAAAAAHgbWRpYQAAACBtZGhkAAAAAM9ghv7PYIb+AAALuAAANq8AAAAAAAAAIWhkbHIAAAAAbWhscnZpZGVBVlMgAAAAAAABAB4AAAABl21pbmYAAAAUdm1oZAAAAAAAAAAAAAAAAAAAACRkaW5mAAAAHGRyZWYAAAAAAAAAAQAAAAx1cmwgAAAAAQAAAVdzdGJsAAAAp3N0c2QAAAAAAAAAAQAAAJdhdmMxAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAFAAOABIAAAASAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGP//AAAAEmNvbHJuY2xjAAEAAQABAAAAL2F2Y0MBTUAz/+EAGGdNQDOadCk/LgIgAAADACAAAAMA0eMGVAEABGjuPIAAAAAYc3R0cwAAAAAAAAABAAAADgAAA+gAAAAUc3RzcwAAAAAAAAABAAAAAQAAABxzdHNjAAAAAAAAAAEAAAABAAAADgAAAAEAAABMc3RzegAAAAAAAAAAAAAADgAAAE8AAAAOAAAADQAAAA0AAAANAAAADQAAAA0AAAANAAAADQAAAA0AAAANAAAADQAAAA4AAAAOAAAAFHN0Y28AAAAAAAAAAQAAA7AAAAA0d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QEAAYABhYL/QACIhgAPuC/rOgnKGWgQ5TANEBAAEQEAAYABhYL/QACIhgAPuC/rKgnKGWgQ+gANEBAAEQEAAYABhYL/QACIhgAPuC/rOgnKGWgRDtANEBAAEQEAAYABhYL/QACIhgAPuC/rOgnKGWgRI7ANEBAAEQEAAYABhYL/QACIhgAPuC/rIcU7trQOC7jLOBALeH94EB8YIUzLuNs4IBTbeH94EB8YIUzLuNs4ICm7eH94EB8YIUzLuNs4ID6LeH94EB8YIUzLuNs4IFNbeH94EB8YIUzLuNs4IGg7eH94EB8YIUzLuNs4IH0LeH94EB8YIUzLuNs4IJHbeH94EB8YIUzLuNs4IKa7eH94EB8YIUzLuNs4ILuLeH94EB8YIUzLuNs4INBbeH94EB8YIUzLuNs4IOU7eH94EB8YIUzLuNs4IPoLeH94EB8YIUzLuNs4IQ7beH94EB8YIUzLuNs4ISO7eH94EB8YIUzBFNm3SPTbuMU6uEH0O2dVOsghTM",t.appendChild(r),t.appendChild(i),t.id="base64_test_video",t.autoplay=!0,t.style.position="fixed",t.style.left="5000px",document.getElementsByTagName("body")[0].appendChild(t),u=document.getElementById("base64_test_video"),setTimeout(function(){u.paused||(autoplay=!0),document.getElementsByTagName("body")[0].removeChild(t)},n)}var requirejs,require,define,loadFired,autoplay,interval,locBanner,closeAction;!function(){"use strict";var n="undefined"!=typeof exports?exports:"object"==typeof window.global?window.global:window;n.HubsEmbed=n.HubsEmbed||{},n.HubsEmbed.version="1.0.1",n.HubsEmbed.author="Mobile Dev Team @ Flyp Technologies Inc.",n.HubsEmbed.copyright="(c) 2013 Flyp Technologies Inc., all rights reserved.",n.HubsEmbed.root=n,n.Hubs=n.Hubs||{},n.Shared=n.Shared||{},n.JS=n.JS||{},n.Hubs.root=n.HubsEmbed.root}(),function(n,t){"use strict";HubsEmbed.Core=function(i){var r=null,u=null,f=null,e=null;this.config=null,r=n.proxy(function(i){i!==t&&(this.config=n.extend(!0,{},Hubs.Config,i),window.top!==window.self&&(Hubs.isMobile()?window.top.location.href=window.self.location.href:n("body").addClass("iframe")),/inPreview=1/i.test(window.location.search)&&n("body").addClass("inPreview"),Shared.Logger.enabled=this.config.enableDebugger,Shared.Profiler.enabled=this.config.enableProfiler,Hubs.initSpecialEvents(),e(),Hubs.isMobile()&&f(),u(),this.config.enableDebugger||(window.onerror=function(){return!1}))},this),u=function(){Hubs.MS_IE_10&&Shared.$("html").addClass("ie10"),Hubs.ANDROID_3&&Shared.$("html").addClass("android3"),Hubs.ANDROID_FF&&Shared.$("html").addClass("android-ff"),Hubs.AMAZON_SILK&&Shared.$("html").addClass("silk"),Hubs.BB_PLAYBOOK&&Shared.$("html").addClass("playbook")},f=function(){MBP.scaleFix(),MBP.enableActive()},e=n.proxy(function(){this.config.serverUrl.cdn=this.config.filesUrl,this.config.serverUrl.hub=this.config.baseUrl+"h/",this.config.serverUrl.initialLoad=this.config.baseUrl+"hubsFront/embedded_loadInitial/",this.config.serverUrl.lazyLoader=this.config.baseUrl+"hubsFront/embedded_loadItems/"},this),r(i)}}(window.jQuery),function(){"use strict";var n="undefined"!=typeof exports?exports:"object"==typeof window.global?window.global:window;n.Shared=n.Shared||{},n.Shared.author="Mobile Dev Team @ Flyp Technologies Inc.",n.Shared.copyright="(c) 2013 Flyp Technologies Inc., all rights reserved.",n.Shared.root=n,n.AppConst=n.Shared}(),function(){"use strict";Shared.EMPTY=/^\s*$/,Shared.MONTH_NAMES=["January","February","March","April","May","June","July","August","September","October","November","December"],Shared.LVL_DEBUG="debug",Shared.LVL_ERROR="error",Shared.LVL_WARNING="warn",Shared.LVL_INFO="info",Shared.LVL_PROFILER="profiler",Shared.KB_ENTER=13,Shared.KB_ESCAPE=27,Shared.KB_DELETE=46,Shared.MS_IE_10=void 0!==window.navigator.msPointerEnabled,Shared.Chrome=!!window.chrome&&!window.opera,Shared.AMAZON_SILK=new RegExp("(?=.*Silk)(?=.*Mobile)","i").test(window.navigator.userAgent),Shared.ANDROID_3=new RegExp("(?=.*Android 3)","i").test(window.navigator.userAgent),Shared.ANDROID_FF=new RegExp("(?=.*Android)(?=.*Tablet)(?=.*Firefox)","i").test(window.navigator.userAgent),Shared.BB_PLAYBOOK=new RegExp("(?=.*Playbook)(?=.*Webkit)","i").test(window.navigator.userAgent),Shared.CriOS=new RegExp("(?=.*CriOS)","i").test(window.navigator.userAgent),Shared.OPERA_MINI="[object OperaMini]"===Object.prototype.toString.call(window.operamini),Shared.NOKIA_XPRESS=new RegExp("(Nokia311|NokiaX3)","i").test(window.navigator.userAgent),Shared.IOS=new RegExp("(iPad|iPhone);.*CPU.*OS","i").test(window.navigator.userAgent),Shared.IOS6=new RegExp("(iPad|iPhone);.*CPU.*OS 6_","i").test(window.navigator.userAgent),Shared.IOS7=new RegExp("(iPad|iPhone);.*CPU.*OS 7_","i").test(window.navigator.userAgent),Shared.IOS8=new RegExp("(iPad|iPhone);.*CPU.*OS 8_","i").test(window.navigator.userAgent),Shared.IOS8_1=new RegExp("(iPad|iPhone);.*CPU.*OS 8_1","i").test(window.navigator.userAgent),Shared.IOS9=new RegExp("(iPad|iPhone);.*CPU.*OS 9_","i").test(window.navigator.userAgent)}(),function(){"use strict";Hubs.COLLECTION_TYPE_NONE="none",Hubs.COLLECTION_TYPE_FEATURED="featured",Hubs.COLLECTION_TYPE_DOCS="docs",Hubs.COLLECTION_TYPE_VIDEOS="videos",Hubs.COLLECTION_TYPE_SOCIAL="social",Hubs.COLLECTION_TYPE_BLOGS="blogs",Hubs.ITEM_COLLECTION_MAP={uberflip:Hubs.COLLECTION_TYPE_DOCS,vimeo:Hubs.COLLECTION_TYPE_VIDEOS,youtube:Hubs.COLLECTION_TYPE_VIDEOS,wistiar:Hubs.COLLECTION_TYPE_VIDEOS,vidyard:Hubs.COLLECTION_TYPE_VIDEOS,twitter:Hubs.COLLECTION_TYPE_SOCIAL,instagram:Hubs.COLLECTION_TYPE_SOCIAL,blogpost:Hubs.COLLECTION_TYPE_BLOGS,blogs:Hubs.COLLECTION_TYPE_BLOGS},Hubs.PAGE_TYPE_HUB="hub",Hubs.PAGE_TYPE_COLLECTION="collection",Hubs.PAGE_TYPE_ITEM="item",Hubs.PAGE_TYPE_AUTHOR="author",Hubs.PAGE_TYPE_CTA="cta",Hubs.REGEX_FLIPBOOK=/uberflip|flipbook/i,Hubs.SMALL_SCREEN_WIDTH=350,Hubs.SMALL_SCREEN_HEIGHT=500,Hubs.LARGE_IMAGE_WIDTH=150,Hubs.LARGE_IMAGE_HEIGHT=150,Hubs.CLICK_EVENT="click.Hubs",Hubs.TAP_EVENT="click.Hubs",Hubs.SWIPE_UP_EVENT="swipeup.Hubs swiperightup.Hubs swipeleftup.Hubs",Hubs.CLICK_EVENT_CTA_SUBMIT="click.HubsCtaSubmit",Hubs.CHANGE_EVENT_CTA_FIELD="change.HubsCtaField",Hubs.CLICK_EVENT_CTA_FIELD="click.HubsCtaField",Hubs.CLICK_EVENT_CTA_DISMISS="click.HubsCtaDismiss",Hubs.TOUCH_START_EVENT_CTA_FIELD="touchstart.HubsCtaField",Hubs.TOUCH_END_EVENT_CTA_FIELD="touchend.HubsCtaField",Hubs.TOUCH_MOVE_EVENT_CTA_FIELD="touchmove.HubsCtaField",Hubs.CLICK_EVENT_CTA_CANCEL="click.HubsCtaCancel",Hubs.FOCUS_EVENT="focus.Hubs",Hubs.SEARCH_MAX_RECENT=5,Hubs.SEARCH_DISPLAY_INITIAL=5,Hubs.SEARCH_DISPLAY_INTERVAL=20,Hubs.SEARCH_MOBILE_BREAKPOINT=860,Hubs.LAZYLOAD_VERTICAL="vertical",Hubs.LAZYLOAD_HORIZONTAL="horizontal",Hubs.DEBUG_MSG={"app-init":"Hubs:App Initializing","app-init-end":"Hubs:App Complete & Ready","app-post-init":"Hubs:App Post-Initializing","app-post-init-end":"Hubs:App Post-Complete & Ready","app-resize":"Hubs:App Event - Resize","app-resize-end":"Hubs:App Event Complete - Resize","app-reload":"Hubs:App Reloading","app-reload-end":"Hubs:App Reloading Complete","parse-collections":"Hubs:App Parsing Collections into Groups","parse-collections-end":"Hubs:App Parsing Collections Completed","events-init":"Hubs:App Initializing Events","doc-events-init":"Hubs:App Initializing Flipbook-Document Container Events","doc-toggle-fullscreen":"Hubs:App Toggling Fullscreen Flipbook: {{fullscreen}}","nav-desktop-init":"Hubs:App Initializing Desktop Navigation","nav-mobile-init":"Hubs:App Initializing Mobile Navigation","links-override-init":"Hubs:App Overriding Page Links","internal-link-click":"Hubs:App Event - Internal Link Click","external-share-link-click":"Hubs:App Event - External Share-Link Click","cancel-loading":"Hubs:App Cancelling Last Request","build-common":"Hubs:App Building Common Elements","build-common-end":"Hubs:App Completed Common Elements","build-page":"Hubs:App Building Page Elements","build-page-end":"Hubs:App Completed Page Elements","build-menu":"Hubs:App Building Menu Elements","build-menu-end":"Hubs:App Completed Menu Elements","build-sharing":"Hubs:App Building Main Sharing Links","build-sharing-end":"Hubs:App Completed Main Sharing Links","build-featured":"Hubs:App Building Featured Tiles","build-featured-end":"Hubs:App Completed Featured Tiles","build-collections":"Hubs:App Building Collection Tiles","build-collections-end":"Hubs:App Completed Collection Tiles","build-items":"Hubs:App Building Items Tiles","build-items-end":"Hubs:App Completed Item Tiles","build-content":"Hubs:App Building Content","build-content-end":"Hubs:App Completed Content","build-breadcrumbs":"Hubs:App Building BreadCrumbs","build-breadcrumbs-end":"Hubs:App Completed BreadCrumbs","build-related-items":"Hubs:App Building Related Items","build-related-items-end":"Hubs:App Completed Related Items","history-state-change":"Hubs:App Event - History State Change","page-change":"Hubs:App Changing Page Content via Ajax","page-open-modal":"Hubs:App Open Popup Modal with Content via Ajax","page-update-specific":"Hubs:App Updating Page-Type Specific Elements","internal-page-change-request":"Hubs:App Request Internal Page Change","lazy-loader-init":"Hubs:LazyLoader Initializing","lazy-loader-init-end":"Hubs:LazyLoader Complete & Ready","lazy-loader-events-init":"Hubs:LazyLoader Initializing Events","lazy-loader-update":"Hubs:LazyLoader Updating Component","lazy-loader-resize":"Hubs:LazyLoader Event - Resize","lazy-loader-scroll":"Hubs:LazyLoader Event - Scroll","lazy-loader-destroy":"Hubs:LazyLoader Destroying","responsive-resize":"Hubs:Responsive Resizing Image Tiles","responsive-text":"Hubs:Responsive Resizing Text","responsive-header":"Hubs:Responsive Initializing Large Header","responsive-share":"Hubs:Responsive Respositioning Level 3 Share Menu","responsive-small":"Hubs:Responsive Initializing Small Screen Devices","responsive-right-sidebar":"Hubs:Responsive Repositioning Right Sidebar","responsive-resize-header":"Hubs:Responsive Resizing Header Image","search-init":"Hubs:Search Initializing","search-events-init":"Hubs:Search Initializing Events","search-init-end":"Hubs:Search Complete & Ready","search-resize":"Hubs:Search Event - Resize","search-scroll":"Hubs:Search Event - Scroll","search-open":"Hubs:Search Opening Search Input","search-close":"Hubs:Search Closing Search Input/Results","search-open-dropdown":"Hubs:Search Opening Drop-Down Menu","search-close-dropdown":"Hubs:Search Closing Drop-Down Menu","search-hide-dropdown":"Hubs:Search Hiding Drop-Down Menu","search-open-results":"Hubs:Search Opening Search Results","search-close-results":"Hubs:Search Closing Search Results","search-update-results":"Hubs:Search Updating Search Results","search-update-recent":"Hubs:Search Updating Recent Searches","search-update-recommended":"Hubs:Search Updating Recommended Searches","search-update-breadcrumbs":"Hubs:Search Updating Breadcrumbs","search-initiate":"Hubs:Search Initiating Search","search-perform-search":"Hubs:Search Performing Search {{ac}}","search-toggle-section":"Hubs:Search Toggling Section Display","embedded-init":"Hubs:Embedded Initializing","embedded-update-scroll-data":"Hubs:Embedded Updating Scroll Data","embedded-scroll":"Hubs:Embedded Event - Scroll","embedded-scroll-els":"Hubs:Embedded Scrolling Individual Elements","tracking-page":"Hubs:Tracker Page Tracked: {{page}}","tracking-event":"Hubs:Tracker Event Tracked: {{event}}","tracking-post":"Hubs:Tracker Post Tracking Records to Server via Ajax","app-invalid-container":"Hubs:App A valid container element must be supplied for Hubs:App","ajax-failed":"Failed to Fetch Ajax. Reason: {{reason}}","ajax-failed-parse":"Shared.fetchAjax Unable to Parse JSON. Reason: {{reason}}","ajax-failed-receive":"Shared.fetchAjax Failed to receive ajax result from server. Reason: {{reason}}","append-tpl-failed":"Shared.appendFromTemplate Failed to Get Handle to Element: {{reason}}","profiler-display":"Hubs:Profiler (profile: {{name}}) - Elapsed Time: {{elapsed}} seconds"}}(),function(){"use strict";Hubs.Config={hubId:"",hubTitle:"",hubBaseUrl:"",previewOn:0,cookies:{entry:"ufentry"},serverUrl:{hub:"",cdn:"",lazyLoader:"/hubsFront/ajax_loadAdditionalItems/",extraInfo:"/hubsFront/ajax_loadExtraInfo/",search:"/hubsFront/ajax_search/",ctaTracking:"/hubsFront/ajax_trackCta",ctaViewTracking:"/hubsFront/ajax_trackCtaView",ctaSubmit:"/hubsFront/ajax_submitCtaForm",ctaActivate:"/hubsFront/ajax_activateFormCta",ctaLoadValues:"/hubsFront/ajax_loadFormFieldValues",pageViewTracking:"/hubsFront/ajax_trackPageView",socialTracking:"/hubsFront/ajax_trackSocial",signalMetricsTemp:"/hubsFront/signalMetricsTemp",updateMAPUsers:"/hubsFront/ajax_updateMAPUsers"},containers:{app:"#hubs-container",levelThree:".level-three",pageWidth:".page-width",topNav:".top-nav",leftNav:["#left-nav","#left-nav-phone",".left-nav"],largeHeader:".large-header",mainContent:".main",itemContent:"#item-content",loadingOverlay:"#loading-overlay",loadingIndicator:".loading-indicator",pageIdentifier:"#page-type-identifier",returnToHub:"#returnToHub",moveToTop:"#moveToTop",flipbookContainer:".single-uberflip",fullscreenControls:".fullscreen-controls",showMoreLink:".display-more",descWrapper:".full-desc-container",fullDesc:".full-desc",videoPlayer:".single-video",shareContainer:".share-container",timeAgo:"abbr.timeago",nonProxiedImg:"span.non-proxied-image",headerLoading:"#header-loading-overlay",headerMain:".header-main",splashLoader:"#splash-loader",splashChevron:"#splash-chevron",addthisToolbar:".addthis_toolbox",addthisCounter:".addthis_counter",addthisSmartlayers:".addthis-smartlayers",footer:"body > footer",mobileFlipbook:".mobile-flipbook.level-two",visibleApp:"header, footer, .main",date:".date"},cta:{elements:{container:".cta",itemCta:".cta-item-container",formContainer:".cta-form",sprite:".cta-sprite",form:".cta-form",formField:".preview-form-field",hideCancel:".hide-preview-cancel",formBottom:".hidden-cta-fields",formTop:".run-away",submitForm:".cta-submit-form",activateForm:".activate-button",fieldName:".cta-field-name",formError:".cta-form-error",formSuccess:".cta-form-success",allFormContent:".full-cta-form-content",submitting:".submission-loader-container",startFullScreen:".cta-form:not(.full-screen-cta) .preview-form-field",noThanks:".no-thanks a",possibleBlock:".possible-block",blockCta:".block-cta",blockingCta:".blocking-cta",itemBlockCta:".embed-block-body",optIn:".opt-in",optInRequired:".opt-in-required",hiddenEmbed:".hide-embed",possibleHiddenEmbed:".possible-hidden-embed"},storage:"flyptech-hub-",hidePlacementNumDays:7,ufConversionItemId:"uf_conversion_item_id"},carousel:{id:"%name%-items-carousel",name:"",start:1,elements:{container:".carousel",item:".tile",parent:".%name%-container",inner:".carousel-inner",nav:{container:".carousel-nav",prev:"#%name%NavPrev",next:"#%name%NavNext"},loadMore:".load-more"},lazyLoad:{enabled:!1,url:"",limit:10,page:1,before:20},l10n:{"carousel-init":"Shared:Carousel Initializing","carousel-init-end":"Shared:Carousel Complete & Ready","carousel-events-init":"Shared:Carousel Initializing Events","carousel-update":"Shared:Carousel Updating Container","carousel-update-items":"Shared:Carousel Updating Items","carousel-update-nav":"Shared:Carousel Updating Navigation","carousel-scroll-start":"Shared:Carousel Scrolling","carousel-scroll-end":"Shared:Carousel Scrolling Stopped","carousel-resize":"Shared:Carousel Event - Resize","carousel-destroy":"Shared:Carousel Destroying"},eventNamespace:".Hubs.Carousel",itemsUpdated:function(){return!1}},lazyloader:{direction:Hubs.LAZYLOAD_VERTICAL,itemDisplayLimit:20,elements:{container:"#collection-items > ul",notify:"#loading-notifier",item:".tile:not(.cta):not(#loading-notifier)",loadMore:"#load-more"}},search:{enabled:!1,labels:{home:"Home",videos:"Videos",blogs:"Blogs",docs:"Docs",social:"Social",recent:"Recent Searches",noItems:"No Items Found",noItemsStream:"No Items Found in this Stream",seeMore:"See More",searchEntireHub:"Search the rest of the Hub"}},isEmptyHub:!1,isMobile:!1,isIFrame:Hubs.root.top.location!==Hubs.root.self.location,isEmbedded:!1,labOptions:{topMenu:!1,permHeader:!1,noHeader:!1,hideBanner:!1,highlightFirst:!1,stickyFooter:!1,flipbookBreakOut:!1,linkBreakOut:!1},embedOptions:{hideHeader:!1,hideBanner:!1,hideFooter:!1,hidePrimaryNav:!1,hideSecondaryNav:!1,linkBreakOut:!1,revealBehaviour:"fade"},pageType:Hubs.PAGE_TYPE_HUB,trackingDelay:6e4,breakpoints:{mobile1:480,mobile2:560,tablet1:720,tablet2:796,tablet3:980,desktop1:1066,desktop2:1336,desktop3:1606,desktop4:1876,desktop5:9999},bombora:!1,analyticsCodes:[],enablePageTracking:!0,enableProfiler:!1,enableDebugger:!1,itemPreviewButtonLabel:"Continue Reading..."}}(),function(){"use strict";var n="undefined"!=typeof exports?exports:"object"==typeof window.global?window.global:window;n.Shared=n.Shared||{},n.Shared.author="Mobile Dev Team @ Flyp Technologies Inc.",n.Shared.copyright="(c) 2013 Flyp Technologies Inc., all rights reserved.",n.Shared.root=n,n.AppUtil=n.Shared}(),function(n,t){"use strict";Shared.Exception=function(n,t){this.name="Shared.Exception",this.type=Shared.LVL_ERROR,this.msg=n,this.args=t},Shared.jhe=function(t){return n("<div/>").text(t).html()},Shared.lpad=function(n,i,r){return r===t&&(r=" "),n.length<i?Shared.lpad(r+n,i,r):n},Shared.rpad=function(n,i,r){return r===t&&(r=" "),n.length<i?Shared.rpad(n+r,i,r):n},Shared.trim=function(n){return n.replace(/^\s+|\s+$/g,"")},Shared.escapeRegex=function(n){return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},Shared.truncate=function(n,t){return n.length<=t?n:n.substring(0,t)+"..."},Shared.getUUID=function(){for(var n=[],i=4294967295*Math.random()|0,r=4294967295*Math.random()|0,u=4294967295*Math.random()|0,f=4294967295*Math.random()|0,t=0;t<256;t++)n[t]=(t<16?"0":"")+t.toString(16);return n[255&i]+n[i>>8&255]+n[i>>16&255]+n[i>>24&255]+"-"+n[255&r]+n[r>>8&255]+"-"+n[r>>16&15|64]+n[r>>24&255]+"-"+n[63&u|128]+n[u>>8&255]+"-"+n[u>>16&255]+n[u>>24&255]+n[255&f]+n[f>>8&255]+n[f>>16&255]+n[f>>24&255]},Shared.parseQueryParams=function(t){var i={};return n.each(t.substr(1).split("&"),n.proxy(function(n,t){if(""!==t){var i=t.split("=");this[i[0]]=i[1]&&decodeURIComponent(i[1].replace(/\+/g," "))}},i)),i},Shared.parseQueryParamByName=function(n,t){var r=new RegExp("[\\?&]"+t+"=([^&#]*)"),i=r.exec(n);return null===i?"":decodeURIComponent(i[1].replace(/\+/g," "))},Shared.random=function(n,t){return n instanceof Array&&2===n.length&&(t=n[1],n=n[0]),Math.random()*(t-n)+n},Shared.cleanObject=function(t){n.each(t,function(i,r){"object"===n.type(r)?Shared.cleanObject(r):"string"===n.type(r)&&(/^true$/i.test(r.trim())&&(t[i]=!0),/^false$/i.test(r.trim())&&(t[i]=!1))})},Shared.augment=function(n,t){for(var r=null,i=0,u=t.length;i<u;i++)for(r in t[i].prototype)t[i].prototype.hasOwnProperty(r)&&(Object.hasOwnProperty(n.prototype,r)||(n.prototype[r]=t[i].prototype[r]))},Shared.getStorageItem=function(i){var r=null;return Modernizr.localstorage?r=localStorage.getItem(i):(n.cookie!==t&&(r=n.cookie(i)),r===t&&(r=null)),r},Shared.setStorageItem=function(i,r){Modernizr.localstorage?localStorage.setItem(i,r):n.cookie!==t&&n.cookie(i,r,{expires:365})},Shared.setCookie=function(i,r,u){u=u||{},n.cookie!==t&&n.cookie(i,r,u)},Shared.getCookie=function(i){if(n.cookie!==t)return n.cookie(i)},Shared.getTime=Date.now||function(){return(new Date).getTime()},Shared.parseTime=function(n){return new Date(n).getTime()},Shared.onNextEventLoop=function(t,i,r){return Shared.root.setTimeout(n.proxy(t,i||Shared),r||0)},Shared.getQueryParams=function(){return Shared.parseQueryParams(location.search)},Shared.getQueryParamByName=function(n){return Shared.parseQueryParamByName(location.search,n)},Shared.getComputedBodyStyle=function(n){function r(n){var i,r;return/^\d+(px)?$/i.test(n)?parseInt(n,10):(i=t.style.left,r=t.runtimeStyle.left,t.runtimeStyle.left=t.currentStyle.left,t.style.left=n||0,n=t.style.pixelLeft,t.style.left=i,t.runtimeStyle.left=r,n)}var t=document.body,i=0;return i=document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(t,null)[n]:r(t.currentStyle[n]),parseInt(i,10)},Shared.triggerFullscreen=function(t){var i=n(".fullscreen-controls"),r=i.find(".fullscreen-open"),u=i.find(".fullscreen-close");t?(i.addClass("fullscreen"),r.attr("style","display: none"),u.attr("style","display: inline-block")):(i.removeClass("fullscreen"),r.attr("style","display: inline-block"),u.attr("style","display: none"))},Shared.enterFullscreen=function(n){if(n===t&&(n=document.documentElement),n.requestFullscreen)Shared.triggerFullscreen(!0),n.requestFullscreen();else if(n.mozRequestFullScreen)Shared.triggerFullscreen(!0),n.mozRequestFullScreen();else if(n.webkitRequestFullscreen)Shared.triggerFullscreen(!0),n.webkitRequestFullscreen();else{if(!n.msRequestFullscreen)return!1;Shared.triggerFullscreen(!0),n.msRequestFullscreen()}},Shared.exitFullscreen=function(){if(document.exitFullscreen)Shared.triggerFullscreen(!1),document.exitFullscreen();else if(document.mozCancelFullScreen)Shared.triggerFullscreen(!1),document.mozCancelFullScreen();else{if(!document.webkitExitFullscreen)return!1;Shared.triggerFullscreen(!1),document.webkitExitFullscreen()}},Shared.isBrowserFullscreen=function(){var n=document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement;return!!n},Shared.isPseudoFullscreen=function(){return Shared.$("body").hasClass("pseudo-fullscreen")},Shared.insertCSS=function(n){var t=document.createElement("link");t.type="text/css",t.rel="stylesheet",t.href=n,document.getElementsByTagName("head")[0].appendChild(t)},Shared.insertJS=function(n,t){var i=document.createElement("script");i.id="injected-js-"+Shared.getTime(),i.async=0,i.src=n,i.onreadystatechange=i.onload=function(){var n=i.readyState;t.done||n&&!/loaded|complete/.test(n)||(t.done=!0,t.call(null,i.id))},document.getElementsByTagName("head")[0].appendChild(i)},Shared.appendFromTemplate=function(t,i,r){var u="";if(t=n(t),!t.length)throw new Shared.Exception("append-tpl-failed",{reason:"No Container Element Found!"});if(i=n(i),!i.length)throw new Shared.Exception("append-tpl-failed",{reason:"No Template Element Found!"});u=i.html(),"object"==typeof r&&n.each(r,function(n,t){u=u.replace(n,t)}),t.append(u)},Shared.$=function(i){var r=null,u={top:top,window:window,document:document};return"string"==typeof i?((Shared.ElementBank[i]===t||Shared.ElementBank[i].length<1)&&(Shared.ElementBank[i]=u[i]!==t?n(u[i]):n(i)),r=Shared.ElementBank[i]):r=n(i),r},Shared.scrollTop=function(i,r,u){var f=function(){Shared.onNextEventLoop(function(){u.scrollTop()!==i&&"scroll"in window&&window.scroll(0,i)})};return u=u||Shared.$("window"),u=n(u),i===t||null===i?u.scrollTop():void Shared.onNextEventLoop(function(){r&&r>0&&u[0]!==window?u.animate({scrollTop:i},r,f):(u.scrollTop(i),f())},this,10)},Shared.animate=function(n,i,r,u){Modernizr&&Modernizr.csstransitions&&n.transition!==t?n.transition(i,r,"in",u):n.animate(i,r,"swing",u)},Shared.getScrollbarWidth=function(){var n,t,i,r;return n=document.createElement("div"),n.style.visibility="hidden",n.style.width="100px",document.body.appendChild(n),i=n.offsetWidth,n.style.overflow="scroll",t=document.createElement("div"),t.style.width="100%",n.appendChild(t),r=t.offsetWidth,n.parentNode.removeChild(n),i-r},Shared.enableHoverables=function(){n("[data-hover]").each(function(t,i){var r=n(i),u=r.attr("data-hover")||"hover";"true"!==r.data("hoverable")&&(r.on("mouseenter",function(){r.addClass(u)}),r.on("mouseleave",function(){r.removeClass(u)}),r.data("hoverable","true"))})},Shared.enableHoverMenu=function(i){var r,u;if(i.hover!==t&&(i.hover=n(i.hover)),(i.hover||i.hover.length)&&(r=function(i){return function(r){var u,f=0;u=i.menu!==t?"function"==typeof i.menu?i.menu(r,i):n(i.menu):n(r.currentTarget),f=u.data("hoverTimer"),"mouseenter"===r.type?(f&&f>0&&(window.clearTimeout(f),u.data("hoverTimer",0)),"function"==typeof i.hoverOverCallback&&i.hoverOverCallback(r,u),u.addClass("hover")):(f=window.setTimeout(function(){u.data("mouseover")||(u.data("hoverTimer",0),u.removeClass("hover"),"function"==typeof i.hoverOutCallback&&i.hoverOutCallback(r,u))},500),u.data("hoverTimer",f))}},i.hover.on("mouseenter.Shared.Element mouseleave.Shared.Element",r(i)),i.isSeparateMenu!==t)){if("string"!=typeof i.isSeparateMenu){if(i.menu===t)return;i.isSeparateMenu="function"==typeof i.menu?i.menu():i.menu}u=function(t){return function(i){var r=n(i.currentTarget),u=0;"mouseenter"===i.type?r.data("mouseover",!0):(r.data("mouseover",!1),u=window.setTimeout(function(){r.data("mouseover")||(r.data("hoverTimer",0),r.removeClass("hover"),"function"==typeof t.hoverOutCallback&&t.hoverOutCallback(i,r))},500),r.data("hoverTimer",u))}},n("body").on("mouseenter.Shared.Body mouseleave.Shared.Body",i.isSeparateMenu,u(i))}},Shared.ajaxFetch=function(i,r,u,f,e,o){u===t&&(u="POST");var s=Shared.getUUID(),c="POST"!==u&&!Shared.MS_IE_10,h={type:u,url:i,async:!0,cache:c,success:n.proxy(function(n){try{f&&"string"==typeof n&&(n=JSON.parse(n))}catch(t){throw new Shared.Exception("ajax-failed-parse",{reason:t});}finally{"function"==typeof e&&e.call(this,n)}},this),error:n.proxy(function(n,t,i){if("function"==typeof o)o.call(this,n);else if("abort"!==t)throw new Shared.Exception("ajax-failed-receive",{reason:i});},this)};return"object"==typeof r&&(h.data=r),Shared.LastXhr[s]=n.ajax(h,this),s},Shared.cancelAjax=function(n){return!(!n||!Shared.LastXhr[n]||4===Shared.LastXhr[n].readyState)&&(Shared.LastXhr[n].abort(),Shared.LastXhr[n]=null,!0)},Shared.standardAjaxFailure=function(n){n.responseText&&(n=JSON.parse(n.responseText)),n.meta.error.message?saveProgress("error",n.meta.error.message[0]):n.meta.error.generic&&saveProgress("error",n.meta.error.generic[0])},Shared.initSpecialEvents=function(n){var t=[{event:"resize",prefix:"debounced",threshold:n||0}];Shared.registerSpecialEvents(t)},Shared.registerSpecialEvents=function(i){var u,f=n.event,r;if(n.isArray(i)){var e=function(t){return function(){var i=n(this);i.data("special-event-init-"+t.event)||(i.data("special-event-init-"+t.event,!0),i.on(t.event,t.$special.handler))}},o=function(t){return function(){n(this).off(t.event,t.$special.handler)}},s=function(n){return function(t,i){var u=this,e=arguments,r=function(){t.type=n.prefix+n.event,f.dispatch.apply(u,e)};n.eventTimeout&&window.clearTimeout(n.eventTimeout),i?r():n.eventTimeout=window.setTimeout(r,n.$special.threshold)}};for(u=0;u<i.length;u++)r=i[u],r.$special={},r.eventTimeout=0,r.event!==t&&r.event.length&&(r.prefix!==t&&r.prefix.length||(r.prefix="debounced"),(r.threshold===t||r.threshold<10)&&(r.threshold=150),f.special[r.prefix+r.event]||(r.$special=f.special[r.prefix+r.event]={setup:e(r),teardown:o(r),handler:s(r),threshold:r.threshold}))}},Shared.closeOpenBootstrapMenus=function(){n(".btn-group").removeClass("open")},"function"!=typeof n.on&&(n.on=n.bind),Shared.ElementBank={},Shared.LastXhr={}}(window.jQuery||window.Zepto),function(n,t){"use strict";Hubs.lastKnownBodyScroll=!1,Hubs.isMobile=function(){return Hubs.Config.isMobile},Hubs.isIFrame=function(){return Hubs.Config.isIFrame},Hubs.isEmbedded=function(){return Hubs.Config.isEmbedded},Hubs.isKnownUser=function(){var t=!1;return Hubs.Config.feMapData?n.each(Hubs.Config.knownUser,function(n,i){i.isKnown&&(t=!0)}):n.each(Hubs.Config.knownUser,function(n,i){i&&(t=!0)}),t},Hubs.updateMapData=function(n){"object"!=typeof n||_.isEqual(Hubs.Config.knownUser,n)||(Hubs.Config.knownUser=n,"function"==typeof Hubs.onMapDataUpdate&&Hubs.onMapDataUpdate.apply(this,[n]))},Hubs.scrollTop=function(n,t,i){return Shared.scrollTop(n,t,i)},Hubs.isSmallScreen=function(){return n(window).width()<=Hubs.SMALL_SCREEN_WIDTH},Hubs.getShareCountClass=function(n){var i,t,r=0;for(t in n)n.hasOwnProperty(t)&&(i=t.match(/^share_([a-z]+)_enabled$/),i&&i.length>1&&1===parseInt(n[t],10)&&r++);return["zero","one","two","three","four","five"][r]},Hubs.updateVideoSize=function(i){if(i===t||"vidyard"!==i&&"vimeo"!==i){var r=n(Hubs.Config.containers.videoPlayer);r.length&&r.fitVids()}},Hubs.removeHeroHeader=function(t){if(!Hubs.Config.labOptions.permHeader&&!Hubs.Config.labOptions.noHeader){var i=n(Hubs.Config.containers.largeHeader),r=(n(Hubs.Config.containers.leftNav[2]+".desktop"),i.height()),f=r-Shared.scrollTop(),u=function(){i.remove(),Shared.$("header").css("height","auto"),Hubs.isEmbedded()&&"parentIFrame"in window?window.parentIFrame.scroll("top"):Hubs.root.location.hash.length||Shared.scrollTop(Shared.scrollTop()-r)};i.length>0&&(t?(i.css({"margin-top":-f}).css("border-bottom","0"),n(Hubs.Config.containers.headerLoading).css("opacity","0"),window.setTimeout(u,1e3)):(Shared.$("body").off("touchmove.Hubs.preventMove"),u()))}},Hubs.toggleHubSharing=function(t){var i="";i=Hubs.getShareCountClass(t),"zero"===i&&n(".share-toggle").remove()},Hubs.toggleHeight=function(n,i,r){var u=0,f=0;r===t&&(r=0),n?(f=parseInt(i.css("max-height"),10)||r,i.data("max-height",f),u=i.prop("scrollHeight"),i.css({"max-height":u})):i.css({"max-height":i.data("max-height")})},Hubs.closeOpenMenus=function(){var t=Shared.$(".mobile-nav").find("li.expanded");Shared.$(Hubs.Config.containers.leftNav[2]).find("li.collapsed").removeClass("hover"),t.each(function(){var t=n(this);Hubs.toggleHeight(!1,t.find(".collapsable-section")),t.removeClass("expanded").addClass("collapsed")}),Shared.$(".mobile-nav").hide(),n(".share-hub, .share-item").removeClass("hover")},Hubs.updatePageWidthElement=function(){var t=n("header .page-width"),i=n("#hubs-container .page-width");t.length&&i.length&&t.removeClass().addClass(i.attr("class"))},Hubs.positionLeftNav=function(){var n,e,r,i,u,s=Shared.$(Hubs.Config.containers.leftNav[2]),o=s.find(".hover"),f=Shared.$("window").height();o.length&&(n=o.find("> ul"),n.css({top:0}),r=0-Shared.$("window").scrollTop(),i=n.outerHeight(),u=n.offset(),u&&u.top!==t&&(r+=u.top),i>=f&&(i=f-40,n.height(i).css({overflow:"auto"})),r+i+10>f&&(e=r-(f-i)/2,n.css({top:-e})))},Hubs.positionShareNav=function(){var i=Shared.$(".share-hub"),t=Shared.$(".share-toggle");i.length&&t.length&&(n(".share-item").length&&(i=n(".share-item")),Hubs.isEmbedded()?i.css({top:t.offset().top+t.outerHeight()+7,left:t.offset().left+t.outerWidth()-i.outerWidth()}):i.css({left:t.offset().left+t.outerWidth()-i.outerWidth()}))},Hubs.updateImageTiles=function(t,i){var r=imagesLoaded(i);r.on("progress",function(i,r){var u=null;r.isLoaded&&(u=n(r.img),u.height()<=0&&u.width()>0?r.img.onload=function(){t.resizeImageTile(r.img,function(){u.parent().addClass("visible")})}:t.resizeImageTile(r.img,function(){u.parent().addClass("visible")}))}),r.on("always",n.proxy(function(){n(i+":not(.visible)").addClass("visible")},this))},Hubs.fixContentImages=function(t,i){var r=n(i);r.length&&/blogs|blogpost/i.test(t)&&r.find(".entry img").each(function(t,i){var r=n(i);(r.width()>Hubs.LARGE_IMAGE_WIDTH||r.height()>Hubs.LARGE_IMAGE_HEIGHT)&&r.addClass("large"),r.removeAttr("height").css({height:"auto"})})},Hubs.loadNonProxiedImages=function(){n(Hubs.Config.containers.nonProxiedImg).each(function(){var i=n("<img>"),t=n(this);i.attr("src",t.attr("data-imgurl")).load(function(){n(this).addClass(t.attr("data-class")),t.parent().html(this.outerHTML).hide().fadeIn(500)}).error(function(){t.remove()})})},Hubs.fixSafariKeyboardBug=function(t){var r,u=n(t),f=u.attr("data-cta-id"),i=n(n(Hubs.Config.cta.elements.container+'[data-cta-id="'+f+'"]')[0]);i.css({"-webkit-transform":"rotateZ(0deg)"}),r=i[0].offsetHeight,i.css({"-webkit-transform":"none"})},Hubs.setFriendlyTimestamps=function(){n(Hubs.Config.containers.timeAgo).timeago()},Hubs.fixContentLinks=function(t){var i=n(t);i.length&&i.find("a:not(.hooked)").each(function(t,i){var r=n(i);r.attr("target")?r.attr("data-internal","false"):Hubs.isLinkInternal(r.attr("href"))?r.attr("data-internal","standard"):r.attr("href")&&r.attr("href").length&&"#"===r.attr("href").charAt(0)?r.attr({target:"_self","data-internal":"false"}):r.attr({target:"_blank","data-internal":"false"})})},Hubs.isLinkInternal=function(n){if("string"!=typeof n)return!1;var t=new RegExp("^"+location.protocol+"//"+window.location.hostname,"i");return null!==n.match(t)},Hubs.fixPrevNextImages=function(t){var i=n(t),r=null;i.length&&(r=imagesLoaded(t),r.on("always",function(){i.find(".prev-next img").each(function(){var t=n(this),i=t.width(),r=t.parent().width();i>r&&t.css("left",-((i-r)/2))})}))},Hubs.initSplashScreen=function(n){n===Hubs.PAGE_TYPE_HUB?Shared.scrollTop(0):Hubs.removeHeroHeader(!1)},Hubs.finalizeSplashScreen=function(){var t=n(Hubs.Config.containers.splashLoader),r=n(Hubs.Config.containers.splashChevron),i=function(){Hubs.isEmbedded()?n(Hubs.Config.containers.headerLoading).fadeOut(200):n(Hubs.Config.containers.headerLoading).addClass("hide-splash-state"),n(Hubs.Config.containers.largeHeader).find("h2, div.primary-logo").css("opacity",1),n(Hubs.Config.containers.app).removeClass("invisible")};Hubs.isEmbedded()?t.fadeOut(200,i):t.fadeOut(200,function(){r.fadeIn(300,i)})},Hubs.restrictBodyScroll=function(n){Hubs.lastKnownBodyScroll===!1&&(Hubs.lastKnownBodyScroll=Math.max(Shared.scrollTop(),n||0),Shared.scrollTop(0),Shared.$("body").css({top:-Hubs.lastKnownBodyScroll}),Shared.$("body").addClass("noscroll"))},Hubs.restoreBodyScroll=function(){Hubs.lastKnownBodyScroll!==!1&&(Shared.scrollTop(Hubs.lastKnownBodyScroll),Shared.$("body").css({top:0}),Shared.$("body").removeClass("noscroll"),Hubs.lastKnownBodyScroll=!1)},Hubs.setBodyScroll=function(n){Hubs[n?"restoreBodyScroll":"restrictBodyScroll"]()},Hubs.storePageView=function(n,t,i,r){var f=[],l,a,s,o,e,h,c,v,u;if(Hubs.Config.feMapData)for(l in Hubs.Config.knownUser)Hubs.Config.knownUser[l].isKnown&&f.push(l);else for(a in Hubs.Config.knownUser)Hubs.Config.knownUser[a]&&f.push(a);if(f.length){for(s={},o=0;o<f.length;o++)e=Shared.getStorageItem(f[o]),null!==e&&"undefined"!=typeof e&&(e=JSON.parse(e)),e&&_.isArray(e.items)?(e.items.push([t,i]),s[f[o]]=e.items):s[f[o]]=[[t,i]];Shared.ajaxFetch(Hubs.Config.serverUrl.pageViewTracking,{views:s,hiddenBlockingCta:r},"POST",!0,function(n){if(n.response.ok)for(var t=0;t<f.length;t++)Shared.setStorageItem(f[t],JSON.stringify({items:[]}))})}if(h=_.difference(Hubs.Config.integrationsToTrackViews,f),h.length)for(c=0;c<h.length;c++)v=h[c],u=Shared.getStorageItem(v),null===u||"undefined"==typeof u?u={items:[[t,i]]}:(u=JSON.parse(u),_.isArray(u.items)&&(150===u.items.length?u.items=[[t,i]]:u.items.push([t,i]))),Shared.setStorageItem(v,JSON.stringify(u));Hubs.Config.feMapData||Shared.ajaxFetch(Hubs.Config.serverUrl.updateMAPUsers,{},"POST",!0,function(n){n.response.knownUser&&(Hubs.Config.knownUser=n.response.knownUser)})},Hubs.getUrlFragmentId=function(n){var t=0;return t=n.indexOf("?"),t>-1&&(n=n.substr(0,t)),t=n.indexOf("#"),t>-1&&(n=n.substr(0,t)),n=n.substr(n.lastIndexOf("/h")+3).replace(/([c|i|author])\//i,"$1-"),n.length&&(n="ufh-"+n),n},Hubs.initSpecialEvents=function(){Shared.registerSpecialEvents([{event:"keyup",prefix:"debounced",threshold:250},{event:"resize",prefix:"debounced",threshold:150},{event:"scroll",prefix:"debounced",threshold:150}])};var r="Hubs",i=n(window);Hubs.Events={on:function(n,t){return i.on(r+"."+n,function(){var n=Array.prototype.slice.call(arguments,1);t.apply(null,n)}),Hubs.Events},off:function(n){return i.off(r+"."+n),Hubs.Events},trigger:function(){var n=Array.prototype.slice.call(arguments);n[0]=r+"."+n[0],i.trigger.apply(i,n)}}}(window.jQuery),function(){"use strict";var n="undefined"!=typeof exports?exports:"object"==typeof window.global?window.global:window;n.Shared=n.Shared||{},n.Shared.author="Mobile Dev Team @ Flyp Technologies Inc.",n.Shared.copyright="(c) 2013 Flyp Technologies Inc., all rights reserved.",n.Shared.root=n}(),function(n,t){"use strict";Shared.Logger=Shared.Logger||function(){},Shared.Logger.logCount={},Shared.Logger.lastType="",Shared.Logger.l10n={},Shared.Logger.enabled=!0,Shared.Logger.log=function(n){if(Shared.Logger.enabled)return n=Shared.Logger.parse(n),Shared.Logger.output(n.msg,n.type),!/^error$/i.test(n.type)},Shared.Logger.profile=function(n,t){var i=Shared.Logger.enabled;i||(Shared.Logger.enabled=Shared.Profiler.enabled),Shared.Logger.log({msg:"profiler-display",type:Shared.LVL_PROFILER,args:{name:n,elapsed:t/1e3}}),Shared.Logger.enabled=i},Shared.Logger.output=function(n,i){Shared.Logger.enabled&&(Shared.Logger.logCount[i]===t&&(Shared.Logger.logCount[i]=0),Shared.Logger.logCount[i]+=1,n="| "+Shared.lpad(Shared.Logger.logCount[i].toString(),3)+" | "+n,1!==Shared.Logger.logCount[i]&&Shared.Logger.lastType===i||Shared.root.console.log(" _____ "),Shared.root.console.log(n),Shared.Logger.lastType=i,Shared.clearLogDelay&&Shared.root.clearTimeout(Shared.clearLogDelay),Shared.clearLogDelay=Shared.root.setTimeout(function(){var n=null;for(n in Shared.Logger.logCount)Shared.Logger.logCount.hasOwnProperty(n)&&(Shared.Logger.logCount[n]=0)},1500))},Shared.Logger.parse=function(n){var i=null;if("object"!=typeof n&&(n={msg:n}),n.msg===t&&(n.msg=""),n.type===t&&(n.type=Shared.LVL_DEBUG),n.args===t&&(n.args=null),"string"==typeof n.msg&&Shared.Logger.l10n[n.msg]!==t&&(n.msg=Shared.Logger.l10n[n.msg]),n.type&&n.type.length?n.msg="["+n.type+"] "+n.msg:n.type="none",n.args!==t)for(i in n.args)n.args.hasOwnProperty(i)&&(n.msg=n.msg.replace("{{"+i+"}}",n.args[i]));return n},Shared.Logger.setL10N=function(t){Shared.Logger.l10n=n.extend(!0,{},Shared.Logger.l10n,t)}}(window.jQuery||window.Zepto),function(n,t,i,r,u,f,e){n.GoogleAnalyticsObject=u,n[u]=n[u]||function(){(n[u].q=n[u].q||[]).push(arguments)},n[u].l=1*new Date,f=t.createElement(i),e=t.getElementsByTagName(i)[0],f.async=1,f.src=r,e.parentNode.insertBefore(f,e)}(window,document,"script","//www.google-analytics.com/analytics.js","ga"),function(){"use strict";var n="undefined"!=typeof exports?exports:"object"==typeof window.global?window.global:window;n.Shared=n.Shared||{},n.Shared.author="Mobile Dev Team @ Flyp Technologies Inc.",n.Shared.copyright="(c) 2013 Flyp Technologies Inc., all rights reserved.",n.Shared.root=n}(),function(n,t){"use strict";Shared.Tracker=Shared.Tracker||function(){},Shared.Tracker.analyticsCodes=[],Shared.Tracker.trackPage=function(n){var i,r;if(window.ga!==t&&Shared.Tracker.analyticsCodes.length)for(n=n.replace(/^https?:\/\/.*?\//i,"/"),Shared.Logger.log({msg:"tracking-page",args:{page:n},type:Shared.LVL_DEBUG}),i=0,r=Shared.Tracker.analyticsCodes.length;i<r;i++){var u=Shared.Tracker.analyticsCodes[i].replace(/-/g,""),f={trackingId:Shared.Tracker.analyticsCodes[i],cookieDomain:"auto",cookieExpires:31536e3},e="send";i>0&&(e=u+".send",f.name=u),ga("create",f),ga(e,"pageview",n)}},Shared.Tracker.trackEvent=function(n,i,r){var u,e,o,f;if(window.ga!==t&&Shared.Tracker.analyticsCodes.length&&n&&i)for(Shared.Logger.log({msg:"tracking-event",args:{event:"Category:"+n+" Action:"+i+" Label:"+r},type:Shared.LVL_DEBUG}),u=0,e=Shared.Tracker.analyticsCodes.length;u<e;u++)o=Shared.Tracker.analyticsCodes[u].replace(/-/g,""),f="send",u>0&&(f=o+".send"),ga(f,"event",n,i,r)},Shared.Tracker.addAnalyticsCodes=function(n){for(var t=0,i=0,i=n.length;t<i;t++)Shared.Tracker.analyticsCodes.push(n[t])}}(window.jQuery||window.Zepto),function(){"use strict";var n="undefined"!=typeof exports?exports:"object"==typeof window.global?window.global:window;n.Shared=n.Shared||{},n.Shared.author="Mobile Dev Team @ Flyp Technologies Inc.",n.Shared.copyright="(c) 2013 Flyp Technologies Inc., all rights reserved.",n.Shared.root=n}(),function(n,t){"use strict";Shared.Profiler=Shared.Profiler||function(){},Shared.Profiler.profiles={},Shared.Profiler.enabled=!0,Shared.Profiler.start=function(n){Shared.Profiler.enabled&&(Shared.Profiler.profiles[n]={start:(new Date).getTime(),end:0})},Shared.Profiler.end=function(n){Shared.Profiler.enabled&&Shared.Profiler.profiles[n]!==t&&(Shared.Profiler.profiles[n].end=(new Date).getTime())},Shared.Profiler.outputProfile=function(n){Shared.Profiler.enabled&&Shared.Profiler.profiles[n]!==t&&Shared.Logger!==t&&Shared.Logger.profile(n,Shared.Profiler.profiles[n].end-Shared.Profiler.profiles[n].start)},Shared.Profiler.outputAll=function(){var n;if(Shared.Profiler.enabled&&Shared.Logger!==t)for(n in Shared.Profiler.profiles)Shared.Profiler.profiles.hasOwnProperty(n)&&Shared.Profiler.profiles[n].end>0&&Shared.Logger.profile(n,Shared.Profiler.profiles[n].end-Shared.Profiler.profiles[n].start)}}(window.jQuery||window.Zepto),function(n){"use strict";HubsEmbed.LazyLoader=function(t){var i=null,r=null;this.app=t,this.$container=null,this.$loadingNotifier=null,this.$scrollContainer=null,this.collectionId=0,this.containerOffset=0,this.itemSize=0,this.itemCount=0,this.viewportSize=0,this.lastItemBounds=0,this.currentPage=0,this.loadingItems=!1,this.loadUrl=null,this.endOfCollection=!1,i=n.proxy(function(){Shared.Profiler.start("LazyLoader"),HubsEmbed.log("lazy-loader-init"),this.app=t,this.$container=this.app.$appContainer.find(this.app.itemContainerSelector),this.$loadingNotifier=this.app.$appContainer.find(this.app.config.lazyloader.elements.notify),this.$container.length&&(this.$scrollContainer=Shared.$("window"),this.collectionId=this.app.config.collection,this.loadUrl=this.app.config.serverUrl.initialLoad,this.containerOffset=this.app.$appContainer[0].offsetTop,r(),HubsEmbed.log("lazy-loader-init-end"),Shared.Profiler.end("LazyLoader"))},this),r=n.proxy(function(){HubsEmbed.log("lazy-loader-events-init"),Shared.$("window").on("debouncedresize.HubsEmbed.LazyLoader",n.proxy(this.resizeEvent,this)).on("scroll.HubsEmbed.LazyLoader",n.proxy(this.scrollEvent,this)),this.app.$appContainer.parent().on("scroll.HubsEmbed.LazyLoader",n.proxy(this.scrollEvent,this))},this),i()},HubsEmbed.LazyLoader.prototype.resizeEvent=function(){return HubsEmbed.log("lazy-loader-resize"),HubsEmbed.root.setTimeout(n.proxy(this.updateSizes,this),20),!0},HubsEmbed.LazyLoader.prototype.scrollEvent=function(n){if(!this.loadingItems)return this.$scrollContainer=n.currentTarget===HubsEmbed.root?Shared.$("window"):this.app.$appContainer.parent(),this.updateSizes(),this.checkBoundary(!1),!0},HubsEmbed.LazyLoader.prototype.loadItems=function(t,i){var r="",e=this.app.config.enablePageTracking?"0":"1",f=0;if(this.app.config.lazyloader.maxItemsTotal>0&&(this.itemCount>=this.app.config.lazyloader.maxItemsTotal?this.endOfCollection=!0:this.itemCount+this.app.config.lazyloader.itemDisplayLimit>this.app.config.lazyloader.maxItemsTotal&&(f=this.app.config.lazyloader.maxItemsTotal-this.itemCount)),r=this.collectionId+"/"+(this.currentPage+1)+"/"+this.app.config.lazyloader.itemDisplayLimit+"/"+f+"/",this.loadUrl===this.app.config.serverUrl.initialLoad&&(r+=e+"/"),r+=this.app.uuid,!this.loadingItems&&!this.endOfCollection){this.setLoading(!0),this.app.config.previewOn&&(r+="?ignoreLockForPreview=1");try{Shared.insertJS(this.loadUrl+r,n.proxy(function(){var u="",r=HubsEmbed.root["ehr-"+this.app.uuid][HubsEmbed.root["ehr-"+this.app.uuid].length-1];return r.html=Shared.trim(r.html),r.invalid||!r.html.length&&r.initial?(this.setLoading(!1),this.endOfCollection=!0,u='<div class="empty-hub-wrapper"><div class="gear-layer1"><\/div><div class="gear-layer2"><\/div><div class="empty-hub"><div class="display-block"><div class="yowzers"><\/div>',u+="<h2>This Stream is Empty!<\/h2><p>The owner is working on it.<\/p><p>Check back shortly.<\/p><\/div><\/div><\/div>",void this.$container.empty().append(u)):r.html.length?(this.$loadingNotifier.length?this.$loadingNotifier.before(r.html):this.$container.append(r.html),Hubs.updateImageTiles(this.app,".tile .img"),Hubs.setFriendlyTimestamps(),this.app.overrideLinks(),void HubsEmbed.root.setTimeout(n.proxy(function(){this.updateSizes(),this.currentPage++,this.loadUrl=this.app.config.serverUrl.lazyLoader,this.setLoading(!1),t&&this.checkBoundary(!t),"function"==typeof i&&i()},this),100)):(this.setLoading(!1),void(this.endOfCollection=!0))},this))}catch(u){u instanceof Shared.Exception?HubsEmbed.log(u):HubsEmbed.log({msg:"ajax-failed",args:{reason:u},type:Shared.LVL_ERROR})}}},HubsEmbed.LazyLoader.prototype.updateSizes=function(){var t=this.$container.find(this.app.config.lazyloader.elements.item),i=t.length?n(t[t.length-1]):t;i.length&&(this.itemCount=t.length,this.containerOffset=this.app.$appContainer[0].offsetTop,this.viewportSize=Math.max(document.body.clientHeight,window.innerHeight||0),this.itemSize=i.outerHeight(),this.lastItemBounds=this.containerOffset+i[0].offsetTop)},HubsEmbed.LazyLoader.prototype.checkBoundary=function(n){var t=this.$scrollContainer.scrollTop()+this.viewportSize;t>this.lastItemBounds&&this.loadItems(n)},HubsEmbed.LazyLoader.prototype.loadingNotifier=function(){(null!==this.$loadingNotifier&&this.$loadingNotifier.length||(this.$loadingNotifier=this.app.$appContainer.find(this.app.config.lazyloader.elements.notify),this.$loadingNotifier.length))&&(this.loadingItems?this.$loadingNotifier.show():this.$loadingNotifier.hide())},HubsEmbed.LazyLoader.prototype.setLoading=function(n){this.loadingItems=n,this.loadingNotifier()},HubsEmbed.LazyLoader.prototype.reset=function(){this.$container=this.app.$appContainer.find(this.app.itemContainerSelector),this.$loadingNotifier=this.app.$appContainer.find(this.app.config.lazyloader.elements.notify),this.$container.length&&(this.collectionId=this.app.config.collection,this.loadUrl=this.app.config.serverUrl.initialLoad,this.itemSize=0,this.itemCount=0,this.viewportSize=0,this.lastItemBounds=0,this.currentPage=0,this.loadingItems=!1,this.endOfCollection=!1)}}(window.jQuery),function(n,t){"use strict";HubsEmbed.log=Shared.Logger.log,HubsEmbed.App=function(t){HubsEmbed.Core.apply(this,[t]);var i=null,r=null;this.$appContainer=null,this.lazyLoader=null,this.uuid=null,i=n.proxy(function(){return this.$appContainer=n(this.config.containers.app),this.$appContainer.length?(Shared.Logger.setL10N(Hubs.DEBUG_MSG),Shared.Profiler.start("App"),HubsEmbed.log("app-init"),this.uuid=Shared.getUUID(),this.itemContainerSelector=this.config.lazyloader.elements.container.replace("#collection-items",'#collection-items[data-uuid="'+this.uuid+'"]'),this.buildElements(),r(),this.createLazyLoader(),this.lazyLoader.loadItems(!0,n.proxy(this.resizeEvent,this)),Shared.Tracker.addAnalyticsCodes(this.config.analyticsCodes),HubsEmbed.log("app-init-end"),Shared.Profiler.end("App"),void Shared.Profiler.outputAll()):HubsEmbed.log({msg:"app-invalid-container",type:Shared.LVL_ERROR})},this),r=n.proxy(function(){var i=Shared.$("window"),t=Shared.$("#moveToTop");HubsEmbed.log("events-init"),i.on("debouncedresize.HubsEmbed.App orientationchange.HubsEmbed.App",n.proxy(this.resizeEvent,this)),t.length&&(t.addClass("hooked").on(Hubs.TAP_EVENT,n.proxy(function(t){return t.preventDefault(),t.stopPropagation(),n("html, body").animate({scrollTop:0},750),!1},this)),i.scroll(n.proxy(function(){i.scrollTop()>300?t.addClass("show"):t.removeClass("show")},this)))},this),i()},HubsEmbed.App.prototype=new HubsEmbed.Core,HubsEmbed.App.prototype.constructor=HubsEmbed.App,HubsEmbed.App.prototype.buildElements=function(){var n="",i="hubs-embedded";n+='<div id="collection-items" data-uuid="'+this.uuid+'"><ul class="clearfix"><li id="loading-notifier" class="tile single">',n+='<div><img class="loading" src="'+this.config.serverUrl.cdn+'img/hubs/ajax-loader-grey-2x.gif" width="32"><\/div>',n+="<span>Loading More Items...<\/span>",n+="<\/li><\/ul><\/div>",this.config.tileSize!==t&&(i+=" "+this.config.tileSize+"-tiles"),this.$appContainer.addClass(i).html(n)},HubsEmbed.App.prototype.createLazyLoader=function(){this.lazyLoader=new HubsEmbed.LazyLoader(this)},HubsEmbed.App.prototype.resizeEvent=function(){return HubsEmbed.log("app-resize"),HubsEmbed.root.setTimeout(n.proxy(function(){var u=0,f=99,e=0,r=0,i=0,o=this.$appContainer.width(),s=n(this.config.lazyloader.elements.item).eq(0),h=n(this.itemContainerSelector).parent();if(h.length&&s.length){if(Shared.Profiler.start("Resize-App"),this.config.lazyloader.maxTilesPerRow!==t&&this.config.lazyloader.maxTilesPerRow>1&&(f=this.config.lazyloader.maxTilesPerRow),e=s.outerWidth(),r=e+20,i=r*f,o<i)for(u=f-1;u>=0&&(i=r*u,!(o>=i));u--);i<r&&(i=r),h.width(i),HubsEmbed.log("app-resize-end"),Shared.Profiler.end("Resize-App"),Shared.Profiler.outputProfile("Resize-App")}},this),10),!0},HubsEmbed.App.prototype.overrideLinks=function(){HubsEmbed.log("links-override-init"),n("a[data-internal]:not([href^=mailto]):not(.hooked)").each(n.proxy(function(i,r){var u=n(r),f=u.attr("data-internal");f!==t&&"false"!==f&&u.addClass("hooked").on(Hubs.CLICK_EVENT,n.proxy(function(i){var r,u=n(i.currentTarget),e=u.attr("data-internal"),f=u.attr("data-source-url");return HubsEmbed.log("internal-link-click"),i.preventDefault(),i.stopPropagation(),r=u.attr("href"),(Hubs.isMobile()||Shared.$("html").is(".lt-ie8"))&&/uberflip/i.test(e)&&f!==t&&(r=f),"function"==typeof this.config.openLink?this.config.openLink(r):HubsEmbed.root.location.href=r,!1},this))},this)),n("a[data-share]:not(.hooked)").each(n.proxy(function(i,r){var u=n(r),f=u.attr("data-share");f!==t&&"false"!==f&&u.addClass("hooked").on(Hubs.CLICK_EVENT,n.proxy(function(i){var r,u="",f=n(i.currentTarget),o=f.attr("href"),e=f.attr("data-share");return HubsEmbed.log("external-share-link-click"),i.preventDefault(),i.stopPropagation(),Hubs.isMobile()&&"email"===e&&(u="_top"),r=HubsEmbed.root.open(o,u,"left=100,top=100,width=550,height=450,personalbar=0,toolbar=0,scrollbars=1,resizable=1"),Hubs.isMobile()||"email"!==e||HubsEmbed.root.setTimeout(function(){r.location!==t&&"about:blank"!==r.location.href||r.close()},1e3),!1},this))},this))},HubsEmbed.App.prototype.resizeImageTile=function(t,i){if(!Shared.$("html").is(".lt-ie9")){var u=n(t).parent(),o=u.width(),f=u.height(),r=u.find("img"),e=r.height();e<=0||r.hasClass("shorter")||r.hasClass("taller")||(e>=f?(r.addClass("taller"),u.parent(".tile").is(".uberflip")||r.css({"margin-top":-((e-f)/2)})):(Hubs.isMobile()?r.css({height:f,width:"auto"}):r.addClass("shorter"),r.css({"margin-left":-((r.width()-o)/2)})),"function"==typeof i&&i.call(this))}},HubsEmbed.App.prototype.reload=function(){HubsEmbed.root._ufHubConfig!==t&&(Shared.Profiler.start("App-Reload"),HubsEmbed.log("app-reload"),this.config=n.extend(!0,{},Hubs.Config,this.config,HubsEmbed.root._ufHubConfig),HubsEmbed.root.embeddedHubsResponseData=t,this.$appContainer.empty().removeClass("hubs-embedded small-tiles medium-tiles large-tiles"),this.buildElements(),this.lazyLoader.reset(),this.lazyLoader.loadItems(!0,n.proxy(this.resizeEvent,this)),HubsEmbed.log("app-reload-end"),Shared.Profiler.end("App-Reload"),Shared.Profiler.outputProfile("App-Reload"))}}(window.jQuery),function(){"use strict";function t(){}function i(n,t){for(var i=n.length;i--;)if(n[i].listener===t)return i;return-1}var n=t.prototype;n.getListeners=function(n){var r,t,i=this._getEvents();if("object"==typeof n){r={};for(t in i)i.hasOwnProperty(t)&&n.test(t)&&(r[t]=i[t])}else r=i[n]||(i[n]=[]);return r},n.flattenListeners=function(n){for(var i=[],t=0;t<n.length;t+=1)i.push(n[t].listener);return i},n.getListenersAsObject=function(n){var t,i=this.getListeners(n);return i instanceof Array&&(t={},t[n]=i),t||i},n.addListener=function(n,t){var r,u=this.getListenersAsObject(n),f="object"==typeof t;for(r in u)u.hasOwnProperty(r)&&i(u[r],t)===-1&&u[r].push(f?t:{listener:t,once:!1});return this},n.on=n.addListener,n.addOnceListener=function(n,t){return this.addListener(n,{listener:t,once:!0})},n.once=n.addOnceListener,n.defineEvent=function(n){return this.getListeners(n),this},n.defineEvents=function(n){for(var t=0;t<n.length;t+=1)this.defineEvent(n[t]);return this},n.removeListener=function(n,t){var f,r,u=this.getListenersAsObject(n);for(r in u)u.hasOwnProperty(r)&&(f=i(u[r],t),f!==-1&&u[r].splice(f,1));return this},n.off=n.removeListener,n.addListeners=function(n,t){return this.manipulateListeners(!1,n,t)},n.removeListeners=function(n,t){return this.manipulateListeners(!0,n,t)},n.manipulateListeners=function(n,t,i){var r,u,f=n?this.removeListener:this.addListener,e=n?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(r=i.length;r--;)f.call(this,t,i[r]);else for(r in t)t.hasOwnProperty(r)&&(u=t[r])&&("function"==typeof u?f.call(this,r,u):e.call(this,r,u));return this},n.removeEvent=function(n){var t,r=typeof n,i=this._getEvents();if("string"===r)delete i[n];else if("object"===r)for(t in i)i.hasOwnProperty(t)&&n.test(t)&&delete i[t];else delete this._events;return this},n.emitEvent=function(n,t){var f,u,i,e,r=this.getListenersAsObject(n);for(i in r)if(r.hasOwnProperty(i))for(u=r[i].length;u--;)f=r[i][u],e=f.listener.apply(this,t||[]),e!==this._getOnceReturnValue()&&f.once!==!0||this.removeListener(n,r[i][u].listener);return this},n.trigger=n.emitEvent,n.emit=function(n){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(n,t)},n.setOnceReturnValue=function(n){return this._onceReturnValue=n,this},n._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},n._getEvents=function(){return this._events||(this._events={})},"function"==typeof define&&define.amd?define(function(){return t}):"undefined"!=typeof module&&module.exports?module.exports=t:this.EventEmitter=t}.call(this),function(n){"use strict";var t=document.documentElement,r=function(){},i,u;t.addEventListener?r=function(n,t,i){n.addEventListener(t,i,!1)}:t.attachEvent&&(r=function(t,i,r){t[i+r]=r.handleEvent?function(){var t=n.event;t.target=t.target||t.srcElement,r.handleEvent.call(r,t)}:function(){var i=n.event;i.target=i.target||i.srcElement,r.call(t,i)},t.attachEvent("on"+i,t[i+r])}),i=function(){},t.removeEventListener?i=function(n,t,i){n.removeEventListener(t,i,!1)}:t.detachEvent&&(i=function(n,t,i){n.detachEvent("on"+t,n[t+i]);try{delete n[t+i]}catch(r){n[t+i]=void 0}}),u={bind:r,unbind:i},"function"==typeof define&&define.amd?define(u):n.eventie=u}(this),function(n){"use strict";function i(n,t){for(var i in t)n[i]=t[i];return n}function f(n){return"[object Array]"===s.call(n)}function e(n){var t=[],i,r;if(f(n))t=n;else if("number"==typeof n.length)for(i=0,r=n.length;i<r;i++)t.push(n[i]);else t.push(n);return t}function r(n,r){function f(n,r,u){if(!(this instanceof f))return new f(n,r);"string"==typeof n&&(n=t(document).find(n)),this.elements=e(n),this.options=i({},this.options),"function"==typeof r?u=r:i(this.options,r),u&&this.on("always",u),this.getImages(),t&&(this.jqDeferred=new t.Deferred);var o=this;setTimeout(function(){o.check()})}function s(n){this.img=n}f.prototype=new n,f.prototype.options={},f.prototype.getImages=function(){var n,u,i,e;for(this.images=[],n=0,u=this.elements.length;n<u;n++){i=this.elements[n],"IMG"===i.nodeName&&this.addImage(i);for(var f=t(i).find("img"),r=0,o=f.length;r<o;r++)e=f[r],this.addImage(e)}},f.prototype.addImage=function(n){var t=new s(n);this.images.push(t)},f.prototype.check=function(){function e(n,r){return t.options.debug&&o&&u.log("confirm",n,r),t.progress(n),f++,f===i&&t.complete(),!0}var t=this,f=0,i=this.images.length,n,r;if(this.hasAnyBroken=!1,!i)return void this.complete();for(n=0;n<i;n++)r=this.images[n],r.on("confirm",e),r.check()},f.prototype.progress=function(n){var t=this;this.hasAnyBroken=this.hasAnyBroken||!n.isLoaded,setTimeout(function(){t.emit("progress",t,n),t.jqDeferred&&t.jqDeferred.notify(t,n)})},f.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done",n;(this.isComplete=!0,this.emit(t,this),this.emit("always",this),this.jqDeferred)&&(n=this.hasAnyBroken?"reject":"resolve",this.jqDeferred[n](this))},t&&(t.fn.imagesLoaded=function(n,i){var r=new f(this,n,i);return r.jqDeferred.promise(t(this))});var h={};return s.prototype=new n,s.prototype.check=function(){var t=h[this.img.src],n;if(t)return void this.useCached(t);if(h[this.img.src]=this,this.img.complete&&void 0!==this.img.naturalWidth)return void this.confirm(0!==this.img.naturalWidth,"naturalWidth");n=this.proxyImage=new Image,r.bind(n,"load",this),r.bind(n,"error",this),n.src=this.img.src},s.prototype.useCached=function(n){if(n.isConfirmed)this.confirm(n.isLoaded,"cached was confirmed");else{var t=this;n.on("confirm",function(n){return t.confirm(n.isLoaded,"cache emitted confirmed"),!0})}},s.prototype.confirm=function(n,t){this.isConfirmed=!0,this.isLoaded=n,this.emit("confirm",this,t)},s.prototype.handleEvent=function(n){var t="on"+n.type;this[t]&&this[t](n)},s.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindProxyEvents()},s.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindProxyEvents()},s.prototype.unbindProxyEvents=function(){r.unbind(this.proxyImage,"load",this),r.unbind(this.proxyImage,"error",this)},f}var t=n.jQuery,u=n.console,o="undefined"!=typeof u,s=Object.prototype.toString;"function"==typeof define&&define.amd?define(["eventEmitter","eventie"],r):n.imagesLoaded=r(n.EventEmitter,n.eventie)}(window),function(n){"function"==typeof define&&define.amd?define(["jquery"],n):n(jQuery)}(function(n){function r(){var i=e(this),r=t.settings;return isNaN(i.datetime)||(0==r.cutoff||f(i.datetime)<r.cutoff)&&n(this).text(u(i.datetime)),this}function e(i){if(i=n(i),!i.data("timeago")){i.data("timeago",{datetime:t.datetime(i)});var r=n.trim(i.text());t.settings.localeTitle?i.attr("title",i.data("timeago").datetime.toLocaleString()):!(r.length>0)||t.isTime(i)&&i.attr("title")||i.attr("title",r)}return i.data("timeago")}function u(n){return t.inWords(f(n))}function f(n){return(new Date).getTime()-n.getTime()}var t,i;n.timeago=function(t){return u(t instanceof Date?t:"string"==typeof t?n.timeago.parse(t):"number"==typeof t?new Date(t):n.timeago.datetime(t))},t=n.timeago,n.extend(n.timeago,{settings:{refreshMillis:6e4,allowFuture:!1,localeTitle:!1,cutoff:0,strings:{prefixAgo:null,prefixFromNow:null,suffixAgo:"ago",suffixFromNow:"from now",seconds:"less than a minute",minute:"about a minute",minutes:"%d minutes",hour:"about an hour",hours:"about %d hours",day:"a day",days:"%d days",month:"about a month",months:"%d months",year:"about a year",years:"%d years",wordSeparator:" ",numbers:[]}},inWords:function(t){function r(r,u){var f=n.isFunction(r)?r(u,t):r,e=i.numbers&&i.numbers[u]||u;return f.replace(/%d/i,e)}var i=this.settings.strings,s=i.prefixAgo,h=i.suffixAgo;this.settings.allowFuture&&t<0&&(s=i.prefixFromNow,h=i.suffixFromNow);var f=Math.abs(t)/1e3,e=f/60,o=e/60,u=o/24,c=u/365,a=f<45&&r(i.seconds,Math.round(f))||f<90&&r(i.minute,1)||e<45&&r(i.minutes,Math.round(e))||e<90&&r(i.hour,1)||o<24&&r(i.hours,Math.round(o))||o<42&&r(i.day,1)||u<30&&r(i.days,Math.round(u))||u<45&&r(i.month,1)||u<365&&r(i.months,Math.round(u/30))||c<1.5&&r(i.year,1)||r(i.years,Math.round(c)),l=i.wordSeparator||"";return void 0===i.wordSeparator&&(l=" "),n.trim([s,a,h].join(l))},parse:function(t){var i=n.trim(t);return i=i.replace(/\.\d+/,""),i=i.replace(/-/,"/").replace(/-/,"/"),i=i.replace(/T/," ").replace(/Z/," UTC"),i=i.replace(/([\+\-]\d\d)\:?(\d\d)/," $1$2"),new Date(i)},datetime:function(i){var r=t.isTime(i)?n(i).attr("datetime"):n(i).attr("title");return t.parse(r)},isTime:function(t){return"time"===n(t).get(0).tagName.toLowerCase()}}),i={init:function(){var u=n.proxy(r,this),i;u(),i=t.settings,i.refreshMillis>0&&setInterval(u,i.refreshMillis)},update:function(i){n(this).data("timeago",{datetime:t.parse(i)}),r.apply(this)}},n.fn.timeago=function(n,t){var r=n?i[n]:i.init;if(!r)throw new Error("Unknown function name '"+n+"' for timeago");return this.each(function(){r.call(this,t)}),this},document.createElement("abbr"),document.createElement("time")}),function(n){function t(n,t,i,r){if("addEventListener"in n)try{n.addEventListener(t,i,r)}catch(u){if("object"!=typeof i||!i.handleEvent)throw u;n.addEventListener(t,function(n){i.handleEvent.call(i,n)},r)}else"attachEvent"in n&&("object"==typeof i&&i.handleEvent?n.attachEvent("on"+t,function(){i.handleEvent.call(i)}):n.attachEvent("on"+t,i))}function i(n,t,i,r){if("removeEventListener"in n)try{n.removeEventListener(t,i,r)}catch(u){if("object"!=typeof i||!i.handleEvent)throw u;n.removeEventListener(t,function(n){i.handleEvent.call(i,n)},r)}else"detachEvent"in n&&("object"==typeof i&&i.handleEvent?n.detachEvent("on"+t,function(){i.handleEvent.call(i)}):n.detachEvent("on"+t,i))}window.MBP=window.MBP||{},MBP.viewportmeta=n.querySelector&&n.querySelector('meta[name="viewport"]'),MBP.ua=navigator.userAgent,MBP.scaleFix=function(){MBP.viewportmeta&&/iPhone|iPad|iPod/.test(MBP.ua)&&!/Opera Mini/.test(MBP.ua)&&(MBP.viewportmeta.content="width=device-width, minimum-scale=1.0, maximum-scale=1.0",n.addEventListener("gesturestart",MBP.gestureStart,!1))},MBP.gestureStart=function(){MBP.viewportmeta.content="width=device-width, minimum-scale=0.25, maximum-scale=1.6"},MBP.BODY_SCROLL_TOP=!1,MBP.getScrollTop=function(){var i=window,t=n;return i.pageYOffset||"CSS1Compat"===t.compatMode&&t.documentElement.scrollTop||t.body.scrollTop||0},MBP.hideUrlBar=function(){var n=window;location.hash||MBP.BODY_SCROLL_TOP===!1||n.scrollTo(0,1===MBP.BODY_SCROLL_TOP?0:1)},MBP.hideUrlBarOnLoad=function(){var t,n=window,i=n.document;!location.hash&&n.addEventListener&&(window.scrollTo(0,1),MBP.BODY_SCROLL_TOP=1,t=setInterval(function(){i.body&&(clearInterval(t),MBP.BODY_SCROLL_TOP=MBP.getScrollTop(),MBP.hideUrlBar())},15),n.addEventListener("load",function(){setTimeout(function(){MBP.getScrollTop()<20&&MBP.hideUrlBar()},0)}))},MBP.fastButton=function(n,t,i){if(this.handler=t,this.pressedClass="undefined"==typeof i?"pressed":i,n.length&&n.length>1)for(var r in n)this.addClickEvent(n[r]);else this.addClickEvent(n)},MBP.fastButton.prototype.handleEvent=function(n){switch(n=n||window.event,n.type){case"touchstart":this.onTouchStart(n);break;case"touchmove":this.onTouchMove(n);break;case"touchend":this.onClick(n);break;case"click":this.onClick(n)}},MBP.fastButton.prototype.onTouchStart=function(t){var i=t.srcElement;t.stopPropagation(),i.addEventListener("touchend",this,!1),n.body.addEventListener("touchmove",this,!1),this.startX=t.touches[0].clientX,this.startY=t.touches[0].clientY,i.className+=" "+this.pressedClass},MBP.fastButton.prototype.onTouchMove=function(n){(Math.abs(n.touches[0].clientX-this.startX)>10||Math.abs(n.touches[0].clientY-this.startY)>10)&&this.reset(n)},MBP.fastButton.prototype.onClick=function(n){var t,i;n=n||window.event,t=n.srcElement,n.stopPropagation&&n.stopPropagation(),this.reset(n),this.handler.apply(n.currentTarget,[n]),"touchend"==n.type&&MBP.preventGhostClick(this.startX,this.startY),i=new RegExp(" ?"+this.pressedClass,"gi"),t.className=t.className.replace(i,"")},MBP.fastButton.prototype.reset=function(t){var r=t.srcElement,u;i(r,"touchend",this,!1),i(n.body,"touchmove",this,!1),u=new RegExp(" ?"+this.pressedClass,"gi"),r.className=r.className.replace(u,"")},MBP.fastButton.prototype.addClickEvent=function(n){t(n,"touchstart",this,!1),t(n,"click",this,!1)},MBP.preventGhostClick=function(n,t){MBP.coords.push(n,t),window.setTimeout(function(){MBP.coords.splice(0,2)},2500)},MBP.ghostClickHandler=function(n){var t,i,r,u;if(!MBP.hadTouchEvent&&MBP.dodgyAndroid)return n.stopPropagation(),void n.preventDefault();for(t=0,i=MBP.coords.length;t<i;t+=2)r=MBP.coords[t],u=MBP.coords[t+1],Math.abs(n.clientX-r)<25&&Math.abs(n.clientY-u)<25&&(n.stopPropagation(),n.preventDefault())},MBP.dodgyAndroid="ontouchstart"in window&&navigator.userAgent.indexOf("Android 2.3")!=-1,n.addEventListener&&n.addEventListener("click",MBP.ghostClickHandler,!0),t(n.documentElement,"touchstart",function(){MBP.hadTouchEvent=!0},!1),MBP.coords=[],MBP.autogrow=function(n,t){function r(){var n=this.scrollHeight,t=this.clientHeight;n>t&&(this.style.height=n+3*i+"px")}var u=t?t:12,i=n.currentStyle?n.currentStyle.lineHeight:getComputedStyle(n,null).lineHeight;i=i.indexOf("px")==-1?u:parseInt(i,10),n.style.overflow="hidden",n.addEventListener?n.addEventListener("keyup",r,!1):n.attachEvent("onkeyup",r)},MBP.enableActive=function(){n.addEventListener("touchstart",function(){},!1)},MBP.preventScrolling=function(){n.addEventListener("touchmove",function(n){n.preventDefault()},!1)},MBP.preventZoom=function(){for(var i=n.querySelectorAll("input, select, textarea"),r="width=device-width,initial-scale=1,maximum-scale=",t=0,t=0;t<i.length;t++)i[t].onfocus=function(){MBP.viewportmeta.content=r+"1"},i[t].onblur=function(){MBP.viewportmeta.content=r+"10"}},MBP.startupImage=function(){var r,e,u,f,t,i;u=window.devicePixelRatio,f=n.getElementsByTagName("head")[0],"iPad"===navigator.platform?(r=2===u?"img/startup/startup-tablet-portrait-retina.png":"img/startup/startup-tablet-portrait.png",e=2===u?"img/startup/startup-tablet-landscape-retina.png":"img/startup/startup-tablet-landscape.png",t=n.createElement("link"),t.setAttribute("rel","apple-touch-startup-image"),t.setAttribute("media","screen and (orientation: portrait)"),t.setAttribute("href",r),f.appendChild(t),i=n.createElement("link"),i.setAttribute("rel","apple-touch-startup-image"),i.setAttribute("media","screen and (orientation: landscape)"),i.setAttribute("href",e),f.appendChild(i)):(r=2===u?"img/startup/startup-retina.png":"img/startup/startup.png",t=n.createElement("link"),t.setAttribute("rel","apple-touch-startup-image"),t.setAttribute("href",r),f.appendChild(t))}}(document),function(){"use strict";var n="undefined"!=typeof exports?exports:"object"==typeof window.global?window.global:window;n.HubsEmbedLibs=n.HubsEmbedLibs||{},n.HubsEmbedLibs.defined=!0}(),function(n){function l(n){return st.call(n)==="[object Function]"}function a(n){return st.call(n)==="[object Array]"}function f(n,t){if(n)for(var i=0;i<n.length;i+=1)if(n[i]&&t(n[i],i,n))break}function rt(n,t){if(n)for(var i=n.length-1;i>-1;i-=1)if(n[i]&&t(n[i],i,n))break}function r(n,t){return bt.call(n,t)}function i(n,t){return r(n,t)&&n[t]}function h(n,t){var i;for(i in n)if(r(n,i)&&t(n[i],i))break}function ut(n,t,i,u){return t&&h(t,function(t,f){(i||!r(n,f))&&(!u||typeof t!="object"||!t||a(t)||l(t)||t instanceof RegExp?n[f]=t:(n[f]||(n[f]={}),ut(n[f],t,i,u)))}),n}function u(n,t){return function(){return t.apply(n,arguments)}}function ft(){return document.getElementsByTagName("script")}function at(n){throw n;}function vt(t){if(!t)return t;var i=n;return f(t.split("."),function(n){i=i[n]}),i}function c(n,t,i,r){var u=new Error(t+"\nhttp://requirejs.org/docs/errors.html#"+n);return u.requireType=n,u.requireModules=r,i&&(u.originalError=i),u}function ni(e){function pi(n){for(var i,t=0;t<n.length;t++)if(i=n[t],i===".")n.splice(t,1),t-=1;else if(i==="..")if(t===0||t===1&&n[2]===".."||n[t-1]==="..")continue;else t>0&&(n.splice(t-1,2),t-=2)}function it(n,t,r){var w,f,o,e,h,c,l,s,b,a,k,d,u=t&&t.split("/"),y=v.map,p=y&&y["*"];if(n&&(n=n.split("/"),l=n.length-1,v.nodeIdCompat&&g.test(n[l])&&(n[l]=n[l].replace(g,"")),n[0].charAt(0)==="."&&u&&(d=u.slice(0,u.length-1),n=d.concat(n)),pi(n),n=n.join("/")),r&&y&&(u||p)){o=n.split("/");n:for(e=o.length;e>0;e-=1){if(c=o.slice(0,e).join("/"),u)for(h=u.length;h>0;h-=1)if(f=i(y,u.slice(0,h).join("/")),f&&(f=i(f,c),f)){s=f,b=e;break n}!a&&p&&i(p,c)&&(a=i(p,c),k=e)}!s&&a&&(s=a,b=k),s&&(o.splice(0,b,s),n=o.join("/"))}return w=i(v.pkgs,n),w?w:n}function oi(n){o&&f(ft(),function(t){if(t.getAttribute("data-requiremodule")===n&&t.getAttribute("data-requirecontext")===s.contextName)return t.parentNode.removeChild(t),!0})}function ii(n){var t=i(v.paths,n);if(t&&a(t)&&t.length>1)return t.shift(),s.require.undef(n),s.makeRequire(null,{skipMap:!0})([n]),!0}function si(n){var i,t=n?n.indexOf("!"):-1;return t>-1&&(i=n.substring(0,t),n=n.substring(t+1,n.length)),[i,n]}function k(n,t,r,u){var a,h,l,o,f=null,c=t?t.name:null,y=n,v=!0,e="";return n||(v=!1,n="_@r"+(vi+=1)),o=si(n),f=o[0],n=o[1],f&&(f=it(f,c,u),h=i(w,f)),n&&(f?e=h&&h.normalize?h.normalize(n,function(n){return it(n,c,u)}):n.indexOf("!")===-1?it(n,c,u):n:(e=it(n,c,u),o=si(e),f=o[0],e=o[1],r=!0,a=s.nameToUrl(e))),l=f&&!h&&!r?"_unnormalized"+(yi+=1):"",{prefix:f,name:e,parentMap:t,unnormalized:!!l,url:a,originalName:y,isDefine:v,id:(f?f+"!"+e:e)+l}}function ot(n){var r=n.id,t=i(p,r);return t||(t=p[r]=new s.Module(n)),t}function st(n,t,u){var e=n.id,f=i(p,e);if(r(w,e)&&(!f||f.defineEmitComplete))t==="defined"&&u(w[e]);else if(f=ot(n),f.error&&t==="error")u(f.error);else f.on(t,u)}function d(n,r){var e=n.requireModules,u=!1;if(r)r(n);else if(f(e,function(t){var r=i(p,t);r&&(r.error=n,r.events.error&&(u=!0,r.emit("error",n)))}),!u)t.onError(n)}function ri(){nt.length&&(dt.apply(tt,[tt.length,0].concat(nt)),nt=[])}function ui(n){delete p[n],delete kt[n]}function hi(n,t,r){var u=n.map.id;n.error?n.emit("error",n.error):(t[u]=!0,f(n.depMaps,function(u,f){var e=u.id,o=i(p,e);!o||n.depMatched[f]||r[e]||(i(t,e)?(n.defineDep(f,w[e]),n.check()):hi(o,t,r))}),r[u]=!0)}function fi(){var t,u,e=v.waitSeconds*1e3,i=e&&s.startTime+e<(new Date).getTime(),n=[],l=[],r=!1,a=!0;if(!yt){if(yt=!0,h(kt,function(t){var f=t.map,e=f.id;if(t.enabled&&(f.isDefine||l.push(t),!t.error))if(!t.inited&&i)ii(e)?(u=!0,r=!0):(n.push(e),oi(e));else if(!t.inited&&t.fetched&&f.isDefine&&(r=!0,!f.prefix))return a=!1}),i&&n.length)return t=c("timeout","Load timeout for modules: "+n,null,n),t.contextName=s.contextName,d(t);a&&f(l,function(n){hi(n,{},{})}),(!i||u)&&r&&(o||ht)&&!bt&&(bt=setTimeout(function(){bt=0,fi()},50)),yt=!1}}function ei(n){r(w,n[0])||ot(k(n[0],null,!0)).init(n[1],n[2])}function ci(n,t,i,r){n.detachEvent&&!lt?r&&n.detachEvent(r,t):n.removeEventListener(i,t,!1)}function li(n){var t=n.currentTarget||n.srcElement;return ci(t,s.onScriptLoad,"load","onreadystatechange"),ci(t,s.onScriptError,"error"),{node:t,id:t&&t.getAttribute("data-requiremodule")}}function ai(){var n;for(ri();tt.length;){if(n=tt.shift(),n[0]===null)return d(c("mismatch","Mismatched anonymous define() module: "+n[n.length-1]));ei(n)}}var yt,pt,s,et,bt,v={waitSeconds:7,baseUrl:"./",paths:{},bundles:{},pkgs:{},shim:{},config:{}},p={},kt={},ni={},tt=[],w={},ct={},ti={},vi=1,yi=1;return et={require:function(n){return n.require?n.require:n.require=s.makeRequire(n.map)},exports:function(n){return n.usingExports=!0,n.map.isDefine?n.exports?w[n.map.id]=n.exports:n.exports=w[n.map.id]={}:void 0},module:function(n){return n.module?n.module:n.module={id:n.map.id,uri:n.map.url,config:function(){return i(v.config,n.map.id)||{}},exports:n.exports||(n.exports={})}}},pt=function(n){this.events=i(ni,n.id)||{},this.map=n,this.shim=i(v.shim,n.id),this.depExports=[],this.depMaps=[],this.depMatched=[],this.pluginMaps={},this.depCount=0},pt.prototype={init:function(n,t,i,r){if(r=r||{},!this.inited){if(this.factory=t,i)this.on("error",i);else this.events.error&&(i=u(this,function(n){this.emit("error",n)}));this.depMaps=n&&n.slice(0),this.errback=i,this.inited=!0,this.ignore=r.ignore,r.enabled||this.enabled?this.enable():this.check()}},defineDep:function(n,t){this.depMatched[n]||(this.depMatched[n]=!0,this.depCount-=1,this.depExports[n]=t)},fetch:function(){if(!this.fetched){this.fetched=!0,s.startTime=(new Date).getTime();var n=this.map;if(this.shim)s.makeRequire(this.map,{enableBuildCallback:!0})(this.shim.deps||[],u(this,function(){return n.prefix?this.callPlugin():this.load()}));else return n.prefix?this.callPlugin():this.load()}},load:function(){var n=this.map.url;ct[n]||(ct[n]=!0,s.load(this.map.id,n))},check:function(){if(this.enabled&&!this.enabling){var i,f,r=this.map.id,e=this.depExports,n=this.exports,u=this.factory;if(this.inited){if(this.error)this.emit("error",this.error);else if(!this.defining){if(this.defining=!0,this.depCount<1&&!this.defined){if(l(u)){if(this.events.error&&this.map.isDefine||t.onError!==at)try{n=s.execCb(r,u,e,n)}catch(o){i=o}else n=s.execCb(r,u,e,n);if(this.map.isDefine&&n===undefined&&(f=this.module,f?n=f.exports:this.usingExports&&(n=this.exports)),i)return i.requireMap=this.map,i.requireModules=this.map.isDefine?[this.map.id]:null,i.requireType=this.map.isDefine?"define":"require",d(this.error=i)}else n=u;if(this.exports=n,this.map.isDefine&&!this.ignore&&(w[r]=n,t.onResourceLoad))t.onResourceLoad(s,this.map,this.depMaps);ui(r),this.defined=!0}this.defining=!1,this.defined&&!this.defineEmitted&&(this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=!0)}}else this.fetch()}},callPlugin:function(){var n=this.map,f=n.id,e=k(n.prefix);this.depMaps.push(e),st(e,"defined",u(this,function(e){var o,l,a,w=i(ti,this.map.id),y=this.map.name,nt=this.map.parentMap?this.map.parentMap.name:null,g=s.makeRequire(n.parentMap,{enableBuildCallback:!0});if(this.map.unnormalized){if(e.normalize&&(y=e.normalize(y,function(n){return it(n,nt,!0)})||""),l=k(n.prefix+"!"+y,this.map.parentMap),st(l,"defined",u(this,function(n){this.init([],function(){return n},null,{enabled:!0,ignore:!0})})),a=i(p,l.id),a){if(this.depMaps.push(l),this.events.error)a.on("error",u(this,function(n){this.emit("error",n)}));a.enable()}return}if(w){this.map.url=s.nameToUrl(w),this.load();return}o=u(this,function(n){this.init([],function(){return n},null,{enabled:!0})}),o.error=u(this,function(n){this.inited=!0,this.error=n,n.requireModules=[f],h(p,function(n){n.map.id.indexOf(f+"_unnormalized")===0&&ui(n.map.id)}),d(n)}),o.fromText=u(this,function(i,u){var e=n.name,h=k(e),l=b;u&&(i=u),l&&(b=!1),ot(h),r(v.config,f)&&(v.config[e]=v.config[f]);try{t.exec(i)}catch(a){return d(c("fromtexteval","fromText eval for "+f+" failed: "+a,a,[f]))}l&&(b=!0),this.depMaps.push(h),s.completeLoad(e),g([e],o)}),e.load(n.name,g,o,v)})),s.enable(e,this),this.pluginMaps[e.id]=e},enable:function(){kt[this.map.id]=this,this.enabled=!0,this.enabling=!0,f(this.depMaps,u(this,function(n,t){var f,e,o;if(typeof n=="string"){if(n=k(n,this.map.isDefine?this.map:this.map.parentMap,!1,!this.skipMap),this.depMaps[t]=n,o=i(et,n.id),o){this.depExports[t]=o(this);return}this.depCount+=1,st(n,"defined",u(this,function(n){this.undefed||(this.defineDep(t,n),this.check())})),this.errback?st(n,"error",u(this,this.errback)):this.events.error&&st(n,"error",u(this,function(n){this.emit("error",n)}))}f=n.id,e=p[f],r(et,f)||!e||e.enabled||s.enable(n,this)})),h(this.pluginMaps,u(this,function(n){var t=i(p,n.id);t&&!t.enabled&&s.enable(n,this)})),this.enabling=!1,this.check()},on:function(n,t){var i=this.events[n];i||(i=this.events[n]=[]),i.push(t)},emit:function(n,t){f(this.events[n],function(n){n(t)}),n==="error"&&delete this.events[n]}},s={config:v,contextName:e,registry:p,defined:w,urlFetched:ct,defQueue:tt,Module:pt,makeModuleMap:k,nextTick:t.nextTick,onError:d,configure:function(n){n.baseUrl&&n.baseUrl.charAt(n.baseUrl.length-1)!=="/"&&(n.baseUrl+="/");var t=v.shim,i={paths:!0,bundles:!0,config:!0,map:!0};h(n,function(n,t){i[t]?(v[t]||(v[t]={}),ut(v[t],n,!0,!0)):v[t]=n}),n.bundles&&h(n.bundles,function(n,t){f(n,function(n){n!==t&&(ti[n]=t)})}),n.shim&&(h(n.shim,function(n,i){a(n)&&(n={deps:n}),(n.exports||n.init)&&!n.exportsFn&&(n.exportsFn=s.makeShimExports(n)),t[i]=n}),v.shim=t),n.packages&&f(n.packages,function(n){var i,t;n=typeof n=="string"?{name:n}:n,t=n.name,i=n.location,i&&(v.paths[t]=n.location),v.pkgs[t]=n.name+"/"+(n.main||"main").replace(wt,"").replace(g,"")}),h(p,function(n,t){n.inited||n.map.unnormalized||(n.map=k(t,null,!0))}),(n.deps||n.callback)&&s.require(n.deps||[],n.callback)},makeShimExports:function(t){function i(){var i;return t.init&&(i=t.init.apply(n,arguments)),i||t.exports&&vt(t.exports)}return i},makeRequire:function(n,u){function f(i,o,h){var a,y,v;return(u.enableBuildCallback&&o&&l(o)&&(o.__requireJsBuild=!0),typeof i=="string")?l(o)?d(c("requireargs","Invalid require call"),h):n&&r(et,i)?et[i](p[n.id]):t.get?t.get(s,i,n,f):(y=k(i,n,!1,!0),a=y.id,!r(w,a))?d(c("notloaded",'Module name "'+a+'" has not been loaded yet for context: '+e+(n?"":". Use require([])"))):w[a]:(ai(),s.nextTick(function(){ai(),v=ot(k(null,n)),v.skipMap=u.skipMap,v.init(i,o,h,{enabled:!0}),fi()}),f)}return u=u||{},ut(f,{isBrowser:o,toUrl:function(t){var r,i=t.lastIndexOf("."),u=t.split("/")[0],f=u==="."||u==="..";return i!==-1&&(!f||i>1)&&(r=t.substring(i,t.length),t=t.substring(0,i)),s.nameToUrl(it(t,n&&n.id,!0),r,!0)},defined:function(t){return r(w,k(t,n,!1,!0).id)},specified:function(t){return t=k(t,n,!1,!0).id,r(w,t)||r(p,t)}}),n||(f.undef=function(t){ri();var u=k(t,n,!0),r=i(p,t);r.undefed=!0,oi(t),delete w[t],delete ct[u.url],delete ni[t],rt(tt,function(n,i){n[0]===t&&tt.splice(i,1)}),r&&(r.events.defined&&(ni[t]=r.events),ui(t))}),f},enable:function(n){var t=i(p,n.id);t&&ot(n).enable()},completeLoad:function(n){var u,t,f,e=i(v.shim,n)||{},o=e.exports;for(ri();tt.length;){if(t=tt.shift(),t[0]===null){if(t[0]=n,u)break;u=!0}else t[0]===n&&(u=!0);ei(t)}if(f=i(p,n),!u&&!r(w,n)&&f&&!f.inited)if(!v.enforceDefine||o&&vt(o))ei([n,e.deps||[],e.exportsFn]);else return ii(n)?void 0:d(c("nodefine","No define call for "+n,null,[n]));fi()},nameToUrl:function(n,r,u){var l,o,h,y,f,e,c,p=i(v.pkgs,n);if(p&&(n=p),c=i(ti,n),c)return s.nameToUrl(c,r,u);if(t.jsExtRegExp.test(n))f=n+(r||"");else{for(l=v.paths,o=n.split("/"),h=o.length;h>0;h-=1)if(y=o.slice(0,h).join("/"),e=i(l,y),e){a(e)&&(e=e[0]),o.splice(0,h,e);break}f=o.join("/"),f+=r||(/^data\:|\?/.test(f)||u?"":".js"),f=(f.charAt(0)==="/"||f.match(/^[\w\+\.\-]+:/)?"":v.baseUrl)+f}return v.urlArgs?f+((f.indexOf("?")===-1?"?":"&")+v.urlArgs):f},load:function(n,i){t.load(s,n,i)},execCb:function(n,t,i,r){return t.apply(r,i)},onScriptLoad:function(n){if(n.type==="load"||gt.test((n.currentTarget||n.srcElement).readyState)){y=null;var t=li(n);s.completeLoad(t.id)}},onScriptError:function(n){var t=li(n);if(!ii(t.id))return d(c("scripterror","Script error for: "+t.id,n,[t.id]))}},s.require=s.makeRequire(),s}function ti(){return y&&y.readyState==="interactive"?y:(rt(ft(),function(n){if(n.readyState==="interactive")return y=n}),y)}var t,tt,v,p,k,d,y,it,e,et,yt=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,pt=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,g=/\.js$/,wt=/^\.\//,ot=Object.prototype,st=ot.toString,bt=ot.hasOwnProperty,kt=Array.prototype,dt=kt.splice,o=!!(typeof window!="undefined"&&typeof navigator!="undefined"&&window.document),ht=!o&&typeof importScripts!="undefined",gt=o&&navigator.platform==="PLAYSTATION 3"?/^complete$/:/^(complete|loaded)$/,ct="_",lt=typeof opera!="undefined"&&opera.toString()==="[object Opera]",w={},s={},nt=[],b=!1;if(typeof define=="undefined"){if(typeof requirejs!="undefined"){if(l(requirejs))return;s=requirejs,requirejs=undefined}typeof require=="undefined"||l(require)||(s=require,require=undefined),t=requirejs=function(n,r,u,f){var o,e,s=ct;return a(n)||typeof n=="string"||(e=n,a(r)?(n=r,r=u,u=f):n=[]),e&&e.context&&(s=e.context),o=i(w,s),o||(o=w[s]=t.s.newContext(s)),e&&o.configure(e),o.require(n,r,u)},t.config=function(n){return t(n)},t.nextTick=typeof setTimeout!="undefined"?function(n){setTimeout(n,4)}:function(n){n()},require||(require=t),t.version="2.1.18",t.jsExtRegExp=/^\/|:|\?|\.js$/,t.isBrowser=o,tt=t.s={contexts:w,newContext:ni},t({}),f(["toUrl","undef","defined","specified"],function(n){t[n]=function(){var t=w[ct];return t.require[n].apply(t,arguments)}}),o&&(v=tt.head=document.getElementsByTagName("head")[0],p=document.getElementsByTagName("base")[0],p&&(v=tt.head=p.parentNode)),t.onError=at,t.createNode=function(n){var t=n.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):document.createElement("script");return t.type=n.scriptType||"text/javascript",t.charset="utf-8",t.async=!0,t},t.load=function(n,i,r){var f=n&&n.config||{},u;if(o)return u=t.createNode(f,i,r),u.setAttribute("data-requirecontext",n.contextName),u.setAttribute("data-requiremodule",i),!u.attachEvent||u.attachEvent.toString&&u.attachEvent.toString().indexOf("[native code")<0||lt?(u.addEventListener("load",n.onScriptLoad,!1),u.addEventListener("error",n.onScriptError,!1)):(b=!0,u.attachEvent("onreadystatechange",n.onScriptLoad)),u.src=r,it=u,p?v.insertBefore(u,p):v.appendChild(u),it=null,u;if(ht)try{importScripts(r),n.completeLoad(i)}catch(e){n.onError(c("importscripts","importScripts failed for "+i+" at "+r,e,[i]))}},o&&!s.skipDataMain&&rt(ft(),function(n){return v||(v=n.parentNode),k=n.getAttribute("data-main"),k?(e=k,s.baseUrl||(d=e.split("/"),e=d.pop(),et=d.length?d.join("/")+"/":"./",s.baseUrl=et),e=e.replace(g,""),t.jsExtRegExp.test(e)&&(e=k),s.deps=s.deps?s.deps.concat(e):[e],!0):void 0}),define=function(n,t,i){var r,u;typeof n!="string"&&(i=t,t=n,n=null),a(t)||(i=t,t=null),!t&&l(i)&&(t=[],i.length&&(i.toString().replace(yt,"").replace(pt,function(n,i){t.push(i)}),t=(i.length===1?["require"]:["require","exports","module"]).concat(t))),b&&(r=it||ti(),r&&(n||(n=r.getAttribute("data-requiremodule")),u=w[r.getAttribute("data-requirecontext")])),(u?u.defQueue:nt).push([n,t,i])},define.amd={jQuery:!0},t.exec=function(n){return eval(n)},t(s)}}(this),function(n){var u=n(window),o={},f=[],e=[],h,s=null,c="_open",v="_close",i=[],l=null,a,y=/(iPad|iPhone|iPod)/g.test(navigator.userAgent),p="a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]",t={_init:function(i){var r=n(i),u=r.data("popupoptions");e[i.id]=!1,f[i.id]=0,r.data("popup-initialized")||(r.attr("data-popup-initialized","true"),t._initonce(i)),u.autoopen&&setTimeout(function(){t.show(i,0)},0)},_initonce:function(i){var u=n(i),v=n("body"),f,r=u.data("popupoptions"),o,p,w,a,e;if(s=parseInt(v.css("margin-right"),10),l=document.body.style.webkitTransition!==undefined||document.body.style.MozTransition!==undefined||document.body.style.msTransition!==undefined||document.body.style.OTransition!==undefined||document.body.style.transition!==undefined,r.type=="tooltip"&&(r.background=!1,r.scrolllock=!1),r.backgroundactive&&(r.background=!1,r.blur=!1,r.scrolllock=!1),r.scrolllock&&typeof h=="undefined"&&(p=n('<div style="width:50px;height:50px;overflow:auto"><div/><\/div>').appendTo("body"),w=p.children(),h=w.innerWidth()-w.height(99).innerWidth(),p.remove()),u.attr("id")||u.attr("id","j-popup-"+parseInt(Math.random()*1e8,10)),u.addClass("popup_content"),v.prepend(i),u.wrap('<div id="'+i.id+'_wrapper" class="popup_wrapper" />'),f=n("#"+i.id+"_wrapper"),f.css({opacity:0,visibility:"hidden",position:"absolute"}),y&&f.css("cursor","pointer"),r.type=="overlay"&&f.css("overflow","auto"),u.css({opacity:0,visibility:"hidden",display:"inline-block"}),r.setzindex&&!r.autozindex&&f.css("z-index","100001"),r.outline||u.css("outline","none"),r.transition&&(u.css("transition",r.transition),f.css("transition",r.transition)),u.attr("aria-hidden",!0),r.background&&!n("#"+i.id+"_background").length&&(v.prepend('<div id="'+i.id+'_background" class="popup_background"><\/div>'),a=n("#"+i.id+"_background"),a.css({opacity:0,visibility:"hidden",backgroundColor:r.color,position:"fixed",top:0,right:0,bottom:0,left:0}),r.setzindex&&!r.autozindex&&a.css("z-index","100000"),r.transition&&a.css("transition",r.transition)),r.type=="overlay"&&(u.css({textAlign:"left",position:"relative",verticalAlign:"middle"}),o={position:"fixed",width:"100%",height:"100%",top:0,left:0,textAlign:"center"},r.backgroundactive&&(o.position="relative",o.height="0",o.overflow="visible"),f.css(o),f.append('<div class="popup_align" />'),n(".popup_align").css({display:"inline-block",verticalAlign:"middle",height:"100%"})),u.attr("role","dialog"),e=r.openelement?r.openelement:"."+i.id+c,n(e).each(function(t,i){n(i).attr("data-popup-ordinal",t),i.id||n(i).attr("id","open_"+parseInt(Math.random()*1e8,10))}),u.attr("aria-labelledby")||u.attr("aria-label")||u.attr("aria-labelledby",n(e).attr("id")),r.action=="hover"){r.keepfocus=!1;n(e).on("mouseenter",function(){t.show(i,n(this).data("popup-ordinal"))});n(e).on("mouseleave",function(){t.hide(i)})}else n(document).on("click",e,function(r){r.preventDefault();var u=n(this).data("popup-ordinal");setTimeout(function(){t.show(i,u)},0)});r.closebutton&&t.addclosebutton(i),r.detach?u.hide().detach():f.hide()},show:function(o,c){var p=n(o),k,b;if(!p.data("popup-visible")){p.data("popup-initialized")||t._init(o),p.attr("data-popup-initialized","true");var d=n("body"),y=p.data("popupoptions"),w=n("#"+o.id+"_wrapper"),nt=n("#"+o.id+"_background");if(r(o,c,y.beforeopen),e[o.id]=c,setTimeout(function(){i.push(o.id)},0),y.autozindex){var tt=document.getElementsByTagName("*"),it=tt.length,g=0;for(k=0;k<it;k++)b=n(tt[k]).css("z-index"),b!=="auto"&&(b=parseInt(b,10),g<b&&(g=b));f[o.id]=g,y.background&&f[o.id]>0&&n("#"+o.id+"_background").css({zIndex:f[o.id]+1}),f[o.id]>0&&w.css({zIndex:f[o.id]+2})}if(y.detach?(w.prepend(o),p.show()):w.show(),a=setTimeout(function(){w.css({visibility:"visible",opacity:1}),n("html").addClass("popup_visible").addClass("popup_visible_"+o.id),w.addClass("popup_wrapper_visible")},20),y.scrolllock&&(d.css("overflow","hidden"),d.height()>u.height()&&d.css("margin-right",s+h)),y.backgroundactive&&p.css({top:(u.height()-(p.get(0).offsetHeight+parseInt(p.css("margin-top"),10)+parseInt(p.css("margin-bottom"),10)))/2+"px"}),p.css({visibility:"visible",opacity:1}),y.background&&(nt.css({visibility:"visible",opacity:y.opacity}),setTimeout(function(){nt.css({opacity:y.opacity})},0)),p.data("popup-visible",!0),t.reposition(o,c),p.data("focusedelementbeforepopup",document.activeElement),y.keepfocus&&(p.attr("tabindex",-1),setTimeout(function(){y.focuselement==="closebutton"?n("#"+o.id+" ."+o.id+v+":first").focus():y.focuselement?n(y.focuselement).focus():p.focus()},y.focusdelay)),n(y.pagecontainer).attr("aria-hidden",!0),p.attr("aria-hidden",!1),r(o,c,y.onopen),l)w.one("transitionend",function(){r(o,c,y.opentransitionend)});else r(o,c,y.opentransitionend)}},hide:function(t,u){a&&clearTimeout(a);var c=n("body"),f=n(t),o=f.data("popupoptions"),h=n("#"+t.id+"_wrapper"),v=n("#"+t.id+"_background");if(f.data("popup-visible",!1),i.length===1?n("html").removeClass("popup_visible").removeClass("popup_visible_"+t.id):n("html").hasClass("popup_visible_"+t.id)&&n("html").removeClass("popup_visible_"+t.id),i.pop(),h.hasClass("popup_wrapper_visible")&&h.removeClass("popup_wrapper_visible"),o.keepfocus&&!u&&setTimeout(function(){n(f.data("focusedelementbeforepopup")).is(":visible")&&f.data("focusedelementbeforepopup").focus()},0),h.css({visibility:"hidden",opacity:0}),f.css({visibility:"hidden",opacity:0}),o.background&&v.css({visibility:"hidden",opacity:0}),n(o.pagecontainer).attr("aria-hidden",!1),f.attr("aria-hidden",!0),r(t,e[t.id],o.onclose),l&&f.css("transition-duration")!=="0s")f.one("transitionend",function(){f.data("popup-visible")||(o.detach?f.hide().detach():h.hide()),o.scrolllock&&setTimeout(function(){c.css({overflow:"visible","margin-right":s})},10),r(t,e[t.id],o.closetransitionend)});else o.detach?f.hide().detach():h.hide(),o.scrolllock&&setTimeout(function(){c.css({overflow:"visible","margin-right":s})},10),r(t,e[t.id],o.closetransitionend)},toggle:function(i,r){n(i).data("popup-visible")?t.hide(i):setTimeout(function(){t.show(i,r)},0)},reposition:function(t,i){var s=n(t),r=s.data("popupoptions"),f=n("#"+t.id+"_wrapper"),h=n("#"+t.id+"_background"),o,e;i=i||0,r.type=="tooltip"?(f.css({position:"absolute"}),o=r.tooltipanchor?n(r.tooltipanchor):r.openelement?n(r.openelement).filter('[data-popup-ordinal="'+i+'"]'):n("."+t.id+c+'[data-popup-ordinal="'+i+'"]'),e=o.offset(),r.horizontal=="right"?f.css("left",e.left+o.outerWidth()+r.offsetleft):r.horizontal=="leftedge"?f.css("left",e.left+o.outerWidth()-o.outerWidth()+r.offsetleft):r.horizontal=="left"?f.css("right",u.width()-e.left-r.offsetleft):r.horizontal=="rightedge"?f.css("right",u.width()-e.left-o.outerWidth()-r.offsetleft):f.css("left",e.left+o.outerWidth()/2-s.outerWidth()/2-parseFloat(s.css("marginLeft"))+r.offsetleft),r.vertical=="bottom"?f.css("top",e.top+o.outerHeight()+r.offsettop):r.vertical=="bottomedge"?f.css("top",e.top+o.outerHeight()-s.outerHeight()+r.offsettop):r.vertical=="top"?f.css("bottom",u.height()-e.top-r.offsettop):r.vertical=="topedge"?f.css("bottom",u.height()-e.top-s.outerHeight()-r.offsettop):f.css("top",e.top+o.outerHeight()/2-s.outerHeight()/2-parseFloat(s.css("marginTop"))+r.offsettop)):r.type=="overlay"&&(r.horizontal?f.css("text-align",r.horizontal):f.css("text-align","center"),r.vertical?s.css("vertical-align",r.vertical):s.css("vertical-align","middle"))},addclosebutton:function(t){var i;i=n(t).data("popupoptions").closebuttonmarkup?n(o.closebuttonmarkup).addClass(t.id+"_close"):'<button class="popup_close '+t.id+'_close" title="Close" aria-label="Close"><span aria-hidden="true">×<\/span><\/button>',$el.data("popup-initialized")&&$el.append(i)}},r=function(t,i,r){var u=n(t).data("popupoptions"),f=u.openelement?u.openelement:"."+t.id+c,e=n(f+'[data-popup-ordinal="'+i+'"]');typeof r=="function"&&r.call(n(t),t,e)};n(document).on("keydown",function(r){if(i.length){var f=i[i.length-1],u=document.getElementById(f);n(u).data("popupoptions").escape&&r.keyCode==27&&t.hide(u)}});n(document).on("click",function(r){if(i.length){var f=i[i.length-1],u=document.getElementById(f),e=n(u).data("popupoptions").closeelement?n(u).data("popupoptions").closeelement:"."+u.id+v;n(r.target).closest(e).length&&(r.preventDefault(),t.hide(u)),n(u).data("popupoptions").blur&&!n(r.target).closest("#"+f).length&&r.which!==2&&n(r.target).is(":visible")&&(n(u).data("popupoptions").background?(t.hide(u),r.preventDefault()):t.hide(u,!0))}});n(document).on("keydown",function(t){var e,u,f;if(i.length&&t.which==9){var o=i[i.length-1],s=document.getElementById(o),h=n(s).find("*"),r;r=h.filter(p).filter(":visible"),e=n(":focus"),u=r.length,f=r.index(e),t.shiftKey?f===0&&(r.get(u-1).focus(),t.preventDefault()):f==u-1&&(r.get(0).focus(),t.preventDefault())}});n.fn.popup=function(i){return this.each(function(){if($el=n(this),typeof i=="object"){var r=n.extend({},n.fn.popup.defaults,i);$el.data("popupoptions",r),o=$el.data("popupoptions"),t._init(this)}else typeof i=="string"?($el.data("popupoptions")||($el.data("popupoptions",n.fn.popup.defaults),o=$el.data("popupoptions")),t[i].call(this,this)):($el.data("popupoptions")||($el.data("popupoptions",n.fn.popup.defaults),o=$el.data("popupoptions")),t._init(this))})},n.fn.popup.defaults={type:"overlay",autoopen:!1,background:!0,backgroundactive:!1,color:"black",opacity:"0.5",horizontal:"center",vertical:"middle",offsettop:0,offsetleft:0,escape:!0,blur:!0,setzindex:!0,autozindex:!1,scrolllock:!1,closebutton:!1,closebuttonmarkup:null,keepfocus:!0,focuselement:null,focusdelay:50,outline:!1,pagecontainer:null,detach:!1,openelement:null,closeelement:null,transition:null,tooltipanchor:null,beforeopen:null,onclose:null,onopen:null,opentransitionend:null,closetransitionend:null}}(jQuery),define("helper/equalHeights",function(){return $.prototype.equalHeights=function(){var n=0;this.each(function(){var t=$(this);t.outerHeight("auto"),t.outerHeight()>n&&(n=t.outerHeight())}),this.each(function(){$(this).outerHeight(n)})},{setEqualHeights:function(){var i=$('[class*="jsEqualHeights"]'),t=0,n;for($('[class*="jsEqualHeights"]').each(function(){var n=$(this).attr("class").split(" "),i,r;for(i in n)n[i].match(/^jsEqualHeights-\d+$/)&&(r=parseInt(n[i].split("-")[1]),r>t&&(t=r))}),n=1;n<=t;n++)$(".jsEqualHeights-"+[n]).equalHeights()}}}),define("helper/modal",{init:function(){$("#modal").popup({color:"#3a393a",opacity:".9",transition:"all 0.3s",align:"center",transform:"scale(1)",focuselement:"#modal .close"}),$.each($("[href=#modal]"),function(n,t){t=$(t);t.on("click",function(){var n=$(this).next(".content").first(),t,i;$(this).hasClass("profile-photo")&&(n=$(this).parent().find(".content").first()),n.length==0&&(n=$(this).parent().hasClass("pardot")||$(this).parent().hasClass("marketo")?$(this).parent().next(".content").first():$(this).parent().parent().parent().find(".content").first(),n.length>0&&(t=$(n).data("formurl"),t!==""&&(i=$(n).find("iframe"),i.length>0&&$(i).attr("src",t)))),$("#modal .modal-content").html(n.html())})})}}),define("helper/tab",{init:function(){function n(){windowWidth=window.innerWidth!=undefined?window.innerWidth:$(window).width(),mobileBreakpoint=600,windowWidth<=mobileBreakpoint&&$(".tab ul").addClass("hide-li")}function i(){var n=$(".first-level-nav .active").text();$(".first-level-nav .active-section").append(n)}var t=$(".tab-list li");$(".tab-list li:first-child").addClass("active"),$(".tab-content .tab-content-item:first-child").addClass("active"),n();$(t).on("click",function(){$(this).parent().toggleClass("hide-li");var n="active",t=$(this).parent().children().index(this);$(this).addClass(n).siblings("li").removeClass(n),$(".tab-content").children(".tab-content-item").eq(t).addClass(n).siblings(".tab-content-item").removeClass(n)});$(window).resize(function(){n()});$(".first-level-nav .active-section").on("click",function(){$(this).parent().toggleClass("menu-active")});i()}}),define("helper/toggle",{init:function(){trigger=".js-toggle-trigger",toggle=$(".js-toggle-area");$(trigger).on("click",function(n){n.preventDefault(),n.stopPropagation(),$(this).toggleClass("active").parent().toggleClass("show-hidden"),$(this).parent().hasClass("show-hidden")&&$("body").addClass("close-toogle")});$(document).on("click",function(n){$(n.target).closest($(toggle)).length||($(trigger).removeClass("active").parent().removeClass("show-hidden"),$("body").removeClass("close-toogle"))})}}),requirejs(["helper/equalHeights","helper/toggle","helper/tab","helper/modal",],function(n,t,i,r){function u(){$("body").hasClass("no-banner")||($(".banner .tint").removeClass("fadeInLeft  fadeInRight fadeInUp animated"),$(".banner").each(function(){$(this).find(".banner-bg").addClass("animated bannerSlideInUp"),$(this).find(".content-align").addClass("fadeInUp"),$(this).hasClass("banner-content-left")&&Modernizr.mq("only screen and (min-width: 1000px)")&&$(this).find(".tint").addClass("animated fadeInLeft"),$(this).hasClass("banner-content-right")&&Modernizr.mq("only screen and (min-width: 1000px)")&&$(this).find(".tint").addClass("animated fadeInRight"),($(this).hasClass("banner-content-center")||Modernizr.mq("only screen and (max-width: 999px)"))&&$(this).find(".tint").addClass("animated fadeInUp")}))}function f(){if(!$("body").hasClass("no-banner")){var n=$(".banner-bg"),t=$(n).attr("data-small"),i=$(n).attr("data-medium"),r=$(n).attr("data-large");Modernizr.mq("only screen and (min-width: 1025px)")&&$(".banner-bg").css("background-image",'url("'+r+'")'),Modernizr.mq("only screen and (min-width: 601px) and (max-width: 1024px)")&&$(".banner-bg").css("background-image",'url("'+i+'")'),Modernizr.mq("only screen and (max-width: 600px)")&&$(".banner-bg").css("background-image",'url("'+t+'")')}}function e(){n.setEqualHeights()}function o(){Modernizr.mq("only screen and (min-width: 1000px)")?($(".sharing").removeClass("hidden"),$(".sharing").removeClass("slideInUp"),$(".sharing").addClass("slideInRight")):($(".sharing").removeClass("hidden"),$(".sharing").removeClass("slideInRight"),$(".sharing").addClass("slideInUp"))}$(document).ready(function(){t.init(),i.init(),r.init(),$(window).bind("resize",function(){window.resizeEvt,$(window).resize(function(){u(),o(),clearTimeout(window.resizeEvt),window.resizeEvt=setTimeout(function(){e(),f()},260)})})}),loadFired?(e(),u(),o(),f()):($(window).bind("load",e),$(window).bind("load",u),$(window).bind("load",o),$(window).bind("load",f)),String.prototype.replaceAll=function(n,t){return this.split(n).join(t)},$("section").each(function(){var r=$(this).children(".regionallink"),u=$(this).find("a").not(".regionallink"),t,i,n;if(r.length>0)for(t=0,i=0;i<u.length;i++)n=$(u[i]),n.html().startsWith("@@")&&t<r.length&&(n.html(n.html().replaceAll("@@","")),n.attr("href",$(r[t]).attr("href")),t++)})}),loadFired=!1,window.onload=function(){loadFired=!0;var n=function(){return document.all};n()?$("body").addClass("ieIFrame"):$("body").addClass("noieIFrame")},$(".searchterm").focus(function(){}),$(".searchterm").blur(function(){$(".searchterm").val()!=undefined&&$(".searchterm").val().trim()!=""&&$("#search-form").submit()}),!function(n){function o(){n[i].glbl||(f={$wndw:n(window),$html:n("html"),$body:n("body")},t={},u={},r={},n.each([t,u,r],function(n,t){t.add=function(n){n=n.split(" ");for(var i=0,r=n.length;r>i;i++)t[n[i]]=t.mm(n[i])}}),t.mm=function(n){return"mm-"+n},t.add("wrapper menu panels panel nopanel current highest opened subopened navbar hasnavbar title btn prev next listview nolistview inset vertical selected divider spacer hidden fullsubopen"),t.umm=function(n){return"mm-"==n.slice(0,3)&&(n=n.slice(3)),n},u.mm=function(n){return"mm-"+n},u.add("parent sub"),r.mm=function(n){return n+".mm"},r.add("transitionend webkitTransitionEnd mousedown mouseup touchstart touchmove touchend click keydown"),n[i]._c=t,n[i]._d=u,n[i]._e=r,n[i].glbl=f)}var i="mmenu",e="5.4.3",t,u,r,f;n[i]&&n[i].version>e||(n[i]=function(n,t,i){this.$menu=n,this._api=["bind","init","update","setSelected","getInstance","openPanel","closePanel","closeAllPanels"],this.opts=t,this.conf=i,this.vars={},this.cbck={},"function"==typeof this.___deprecated&&this.___deprecated(),this._initMenu(),this._initAnchors();var r=this.$pnls.children();return this._initAddons(),this.init(r),"function"==typeof this.___debug&&this.___debug(),this},n[i].version=e,n[i].addons={},n[i].uniqueId=0,n[i].defaults={extensions:[],navbar:{add:!0,title:"Menu",titleLink:"panel"},onClick:{setSelected:!0},slidingSubmenus:!0},n[i].configuration={classNames:{divider:"Divider",inset:"Inset",panel:"Panel",selected:"Selected",spacer:"Spacer",vertical:"Vertical"},clone:!1,openingInterval:25,panelNodetype:"ul, ol, div",transitionDuration:400},n[i].prototype={init:function(n){n=n.not("."+t.nopanel),n=this._initPanels(n),this.trigger("init",n),this.trigger("update")},update:function(){this.trigger("update")},setSelected:function(n){this.$menu.find("."+t.listview).children().removeClass(t.selected),n.addClass(t.selected),this.trigger("setSelected",n)},openPanel:function(r){var f=r.parent(),e,o,u;if(f.hasClass(t.vertical)){if(e=f.parents("."+t.subopened),e.length)return this.openPanel(e.first());f.addClass(t.opened)}else{if(r.hasClass(t.current))return;o=this.$pnls.children("."+t.panel),u=o.filter("."+t.current),o.removeClass(t.highest).removeClass(t.current).not(r).not(u).not("."+t.vertical).addClass(t.hidden),n[i].support.csstransitions||u.addClass(t.hidden),r.hasClass(t.opened)?r.nextAll("."+t.opened).addClass(t.highest).removeClass(t.opened).removeClass(t.subopened):(r.addClass(t.highest),u.addClass(t.subopened)),r.removeClass(t.hidden).addClass(t.current),setTimeout(function(){r.removeClass(t.subopened).addClass(t.opened)},this.conf.openingInterval)}this.trigger("openPanel",r)},closePanel:function(n){var i=n.parent();i.hasClass(t.vertical)&&(i.removeClass(t.opened),this.trigger("closePanel",n))},closeAllPanels:function(){this.$menu.find("."+t.listview).children().removeClass(t.selected).filter("."+t.vertical).removeClass(t.opened);var i=this.$menu.children("."+t.panel),n=i.first();this.$menu.children("."+t.panel).not(n).removeClass(t.subopened).removeClass(t.opened).removeClass(t.current).removeClass(t.highest).addClass(t.hidden),this.openPanel(n)},togglePanel:function(n){var i=n.parent();i.hasClass(t.vertical)&&this[i.hasClass(t.opened)?"closePanel":"openPanel"](n)},getInstance:function(){return this},bind:function(n,t){this.cbck[n]=this.cbck[n]||[],this.cbck[n].push(t)},trigger:function(){var u=this,i=Array.prototype.slice.call(arguments),t=i.shift(),n,r;if(this.cbck[t])for(n=0,r=this.cbck[t].length;r>n;n++)this.cbck[t][n].apply(u,i)},_initMenu:function(){this.opts.offCanvas&&this.conf.clone&&(this.$menu=this.$menu.clone(!0),this.$menu.add(this.$menu.find("[id]")).filter("[id]").each(function(){n(this).attr("id",t.mm(n(this).attr("id")))})),this.$menu.contents().each(function(){3==n(this)[0].nodeType&&n(this).remove()}),this.$pnls=n('<div class="'+t.panels+'" />').append(this.$menu.children(this.conf.panelNodetype)).prependTo(this.$menu),this.$menu.parent().addClass(t.wrapper);var i=[t.menu];this.opts.slidingSubmenus||i.push(t.vertical),this.opts.extensions=this.opts.extensions.length?"mm-"+this.opts.extensions.join(" mm-"):"",this.opts.extensions&&i.push(this.opts.extensions),this.$menu.addClass(i.join(" "))},_initPanels:function(i){var r=this,c=this.__findAddBack(i,"ul, ol"),o,f,s,l,h,e;return this.__refactorClass(c,this.conf.classNames.inset,"inset").addClass(t.nolistview+" "+t.nopanel),c.not("."+t.nolistview).addClass(t.listview),o=this.__findAddBack(i,"."+t.listview).children(),this.__refactorClass(o,this.conf.classNames.selected,"selected"),this.__refactorClass(o,this.conf.classNames.divider,"divider"),this.__refactorClass(o,this.conf.classNames.spacer,"spacer"),this.__refactorClass(this.__findAddBack(i,"."+this.conf.classNames.panel),this.conf.classNames.panel,"panel"),f=n(),s=i.add(i.find("."+t.panel)).add(this.__findAddBack(i,"."+t.listview).children().children(this.conf.panelNodetype)).not("."+t.nopanel),this.__refactorClass(s,this.conf.classNames.vertical,"vertical"),this.opts.slidingSubmenus||s.addClass(t.vertical),s.each(function(){var i=n(this),u=i,e;i.is("ul, ol")?(i.wrap('<div class="'+t.panel+'" />'),u=i.parent()):u.addClass(t.panel),e=i.attr("id"),i.removeAttr("id"),u.attr("id",e||r.__getUniqueId()),i.hasClass(t.vertical)&&(i.removeClass(r.conf.classNames.vertical),u.add(u.parent()).addClass(t.vertical)),f=f.add(u)}),l=n("."+t.panel,this.$menu),f.each(function(){var f=n(this),i=f.parent(),o=i.children("a, span").first(),h,s,e;if((i.is("."+t.menu)||(i.data(u.sub,f),f.data(u.parent,i)),!i.children("."+t.next).length&&i.parent().is("."+t.listview))&&(e=f.attr("id"),h=n('<a class="'+t.next+'" href="#'+e+'" data-target="#'+e+'" />').insertBefore(o),o.is("span")&&h.addClass(t.fullsubopen)),!f.children("."+t.navbar).length&&!i.hasClass(t.vertical))if(i.parent().is("."+t.listview)?i=i.closest("."+t.panel):(o=i.closest("."+t.panel).find('a[href="#'+f.attr("id")+'"]').first(),i=o.closest("."+t.panel)),s=n('<div class="'+t.navbar+'" />'),i.length){e=i.attr("id");switch(r.opts.navbar.titleLink){case"anchor":_url=o.attr("href");break;case"panel":case"parent":_url="#"+e;break;case"none":default:_url=!1}s.append('<a class="'+t.btn+" "+t.prev+'" href="#'+e+'" data-target="#'+e+'" />').append(n('<a class="'+t.title+'"'+(_url?' href="'+_url+'"':"")+" />").text(o.text())).prependTo(f),r.opts.navbar.add&&f.addClass(t.hasnavbar)}else r.opts.navbar.title&&(s.append('<a class="'+t.title+'">'+r.opts.navbar.title+"<\/a>").prependTo(f),r.opts.navbar.add&&f.addClass(t.hasnavbar))}),h=this.__findAddBack(i,"."+t.listview).children("."+t.selected).removeClass(t.selected).last().addClass(t.selected),h.add(h.parentsUntil("."+t.menu,"li")).filter("."+t.vertical).addClass(t.opened).end().not("."+t.vertical).each(function(){n(this).parentsUntil("."+t.menu,"."+t.panel).not("."+t.vertical).first().addClass(t.opened).parentsUntil("."+t.menu,"."+t.panel).not("."+t.vertical).first().addClass(t.opened).addClass(t.subopened)}),h.children("."+t.panel).not("."+t.vertical).addClass(t.opened).parentsUntil("."+t.menu,"."+t.panel).not("."+t.vertical).first().addClass(t.opened).addClass(t.subopened),e=l.filter("."+t.opened),e.length||(e=f.first()),e.addClass(t.opened).last().addClass(t.current),f.not("."+t.vertical).not(e.last()).addClass(t.hidden).end().appendTo(this.$pnls),f},_initAnchors:function(){var u=this;f.$body.on(r.click+"-oncanvas","a[href]",function(r){var e=n(this),o=!1,c=u.$menu.find(e).length,a,s,l,h;for(a in n[i].addons)if(o=n[i].addons[a].clickAnchor.call(u,e,c))break;if(!o&&c&&(s=e.attr("href"),s.length>1&&"#"==s.slice(0,1)))try{l=n(s,u.$menu),l.is("."+t.panel)&&(o=!0,u[e.parent().hasClass(t.vertical)?"togglePanel":"openPanel"](l))}catch(v){}(o&&r.preventDefault(),o||!c||!e.is("."+t.listview+" > li > a")||e.is('[rel="external"]')||e.is('[target="_blank"]'))||(u.__valueOrFn(u.opts.onClick.setSelected,e)&&u.setSelected(n(r.target).parent()),h=u.__valueOrFn(u.opts.onClick.preventDefault,e,"#"==s.slice(0,1)),h&&r.preventDefault(),u.__valueOrFn(u.opts.onClick.blockUI,e,!h)&&f.$html.addClass(t.blocking),u.__valueOrFn(u.opts.onClick.close,e,h)&&u.close())})},_initAddons:function(){var t;for(t in n[i].addons)n[i].addons[t].add.call(this),n[i].addons[t].add=function(){};for(t in n[i].addons)n[i].addons[t].setup.call(this)},__api:function(){var i=this,t={};return n.each(this._api,function(){var n=this;t[n]=function(){var r=i[n].apply(i,arguments);return"undefined"==typeof r?t:r}}),t},__valueOrFn:function(n,t,i){return"function"==typeof n?n.call(t[0]):"undefined"==typeof n&&"undefined"!=typeof i?i:n},__refactorClass:function(n,i,r){return n.filter("."+i).removeClass(i).addClass(t[r])},__findAddBack:function(n,t){return n.find(t).add(n.filter(t))},__filterListItems:function(n){return n.not("."+t.divider).not("."+t.hidden)},__transitionend:function(n,t,i){var f=!1,u=function(){f||t.call(n[0]),f=!0};n.one(r.transitionend,u),n.one(r.webkitTransitionEnd,u),setTimeout(u,1.1*i)},__getUniqueId:function(){return t.mm(n[i].uniqueId++)}},n.fn[i]=function(t,r){return o(),t=n.extend(!0,{},n[i].defaults,t),r=n.extend(!0,{},n[i].configuration,r),this.each(function(){var u=n(this),f;u.data(i)||(f=new n[i](u,t,r),u.data(i,f.__api()))})},n[i].support={touch:"ontouchstart"in window||navigator.msMaxTouchPoints,csstransitions:function(){var i,t;if("undefined"!=typeof Modernizr)return Modernizr.csstransitions;var u=document.body||document.documentElement,r=u.style,n="transition";if("string"==typeof r[n])return!0;for(i=["Moz","webkit","Webkit","Khtml","O","ms"],n=n.charAt(0).toUpperCase()+n.substr(1),t=0;t<i.length;t++)if("string"==typeof r[i[t]+n])return!0;return!1}()})}(jQuery),!function(n){var u="mmenu",r="offCanvas",i,e,f,t;n[u].addons[r]={setup:function(){var f,e,o;this.opts[r]&&(f=this.opts[r],e=this.conf[r],t=n[u].glbl,this._api=n.merge(this._api,["open","close","setPage"]),("top"==f.position||"bottom"==f.position)&&(f.zposition="front"),"string"!=typeof e.pageSelector&&(e.pageSelector="> "+e.pageNodetype),t.$allMenus=(t.$allMenus||n()).add(this.$menu),this.vars.opened=!1,o=[i.offcanvas],"left"!=f.position&&o.push(i.mm(f.position)),"back"!=f.zposition&&o.push(i.mm(f.zposition)),this.$menu.addClass(o.join(" ")).parent().removeClass(i.wrapper),this.setPage(t.$page),this._initBlocker(),this["_initWindow_"+r](),this.$menu[e.menuInjectMethod+"To"](e.menuWrapperSelector))},add:function(){i=n[u]._c,e=n[u]._d,f=n[u]._e,i.add("offcanvas slideout modal background opening blocker page"),e.add("style"),f.add("resize")},clickAnchor:function(n){var u;return this.opts[r]?(u=this.$menu.attr("id"),u&&u.length&&(this.conf.clone&&(u=i.umm(u)),n.is('[href="#'+u+'"]')))?(this.open(),!0):t.$page?(u=t.$page.first().attr("id"),u&&u.length&&n.is('[href="#'+u+'"]')?(this.close(),!0):!1):void 0:!1}},n[u].defaults[r]={position:"left",zposition:"back",modal:!1,moveBackground:!0},n[u].configuration[r]={pageNodetype:"div",pageSelector:null,noPageSelector:[],wrapPageIfNeeded:!0,menuWrapperSelector:"body",menuInjectMethod:"prepend"},n[u].prototype.open=function(){if(!this.vars.opened){var n=this;this._openSetup(),setTimeout(function(){n._openFinish()},this.conf.openingInterval),this.trigger("open")}},n[u].prototype._openSetup=function(){var o=this,u;this.closeAllOthers(),t.$page.each(function(){n(this).data(e.style,n(this).attr("style")||"")}),t.$wndw.trigger(f.resize+"-offcanvas",[!0]),u=[i.opened],this.opts[r].modal&&u.push(i.modal),this.opts[r].moveBackground&&u.push(i.background),"left"!=this.opts[r].position&&u.push(i.mm(this.opts[r].position)),"back"!=this.opts[r].zposition&&u.push(i.mm(this.opts[r].zposition)),this.opts.extensions&&u.push(this.opts.extensions),t.$html.addClass(u.join(" ")),setTimeout(function(){o.vars.opened=!0},this.conf.openingInterval),this.$menu.addClass(i.current+" "+i.opened)},n[u].prototype._openFinish=function(){var n=this;this.__transitionend(t.$page.first(),function(){n.trigger("opened")},this.conf.transitionDuration),t.$html.addClass(i.opening),this.trigger("opening")},n[u].prototype.close=function(){if(this.vars.opened){var u=this;this.__transitionend(t.$page.first(),function(){u.$menu.removeClass(i.current).removeClass(i.opened),t.$html.removeClass(i.opened).removeClass(i.modal).removeClass(i.background).removeClass(i.mm(u.opts[r].position)).removeClass(i.mm(u.opts[r].zposition)),u.opts.extensions&&t.$html.removeClass(u.opts.extensions),t.$page.each(function(){n(this).attr("style",n(this).data(e.style))}),u.vars.opened=!1,u.trigger("closed")},this.conf.transitionDuration),t.$html.removeClass(i.opening),this.trigger("close"),this.trigger("closing")}},n[u].prototype.closeAllOthers=function(){t.$allMenus.not(this.$menu).each(function(){var t=n(this).data(u);t&&t.close&&t.close()})},n[u].prototype.setPage=function(u){var e=this,f=this.conf[r];u&&u.length||(u=t.$body.find(f.pageSelector),f.noPageSelector.length&&(u=u.not(f.noPageSelector.join(", "))),u.length>1&&f.wrapPageIfNeeded&&(u=u.wrapAll("<"+this.conf[r].pageNodetype+" />").parent())),u.each(function(){n(this).attr("id",n(this).attr("id")||e.__getUniqueId())}),u.addClass(i.page+" "+i.slideout),t.$page=u,this.trigger("setPage",u)},n[u].prototype["_initWindow_"+r]=function(){t.$wndw.off(f.keydown+"-offcanvas").on(f.keydown+"-offcanvas",function(n){if(t.$html.hasClass(i.opened)&&9==n.keyCode)return(n.preventDefault(),!1)});var n=0;t.$wndw.off(f.resize+"-offcanvas").on(f.resize+"-offcanvas",function(r,u){if(1==t.$page.length&&(u||t.$html.hasClass(i.opened))){var f=t.$wndw.height();(u||f!=n)&&(n=f,t.$page.css("minHeight",f))}})},n[u].prototype._initBlocker=function(){var r=this;t.$blck||(t.$blck=n('<div id="'+i.blocker+'" class="'+i.slideout+'" />')),t.$blck.appendTo(t.$body).off(f.touchstart+"-offcanvas "+f.touchmove+"-offcanvas").on(f.touchstart+"-offcanvas "+f.touchmove+"-offcanvas",function(n){n.preventDefault(),n.stopPropagation(),t.$blck.trigger(f.mousedown+"-offcanvas")}).off(f.mousedown+"-offcanvas").on(f.mousedown+"-offcanvas",function(n){n.preventDefault(),t.$html.hasClass(i.modal)||(r.closeAllOthers(),r.close())})}}(jQuery),!function(n){var i="mmenu",r="autoHeight",t,e,u,f;n[i].addons[r]={setup:function(){var s,e,o;if(this.opts.offCanvas){switch(this.opts.offCanvas.position){case"left":case"right":return}s=this,e=this.opts[r],(this.conf[r],f=n[i].glbl,"boolean"==typeof e&&e&&(e={height:"auto"}),"object"!=typeof e&&(e={}),e=this.opts[r]=n.extend(!0,{},n[i].defaults[r],e),"auto"==e.height)&&(this.$menu.addClass(t.autoheight),o=function(n){var i=parseInt(this.$pnls.css("top"),10)||0;_bot=parseInt(this.$pnls.css("bottom"),10)||0,this.$menu.addClass(t.measureheight),n=n||this.$pnls.children("."+t.current),n.is("."+t.vertical)&&(n=n.parents("."+t.panel).not("."+t.vertical).first()),this.$menu.height(n.outerHeight()+i+_bot).removeClass(t.measureheight)},this.bind("update",o),this.bind("openPanel",o),this.bind("closePanel",o),this.bind("open",o),f.$wndw.off(u.resize+"-autoheight").on(u.resize+"-autoheight",function(){o.call(s)}))}},add:function(){t=n[i]._c,e=n[i]._d,u=n[i]._e,t.add("autoheight measureheight"),u.add("resize")},clickAnchor:function(){}},n[i].defaults[r]={height:"default"}}(jQuery),!function(n){var t="mmenu",i="backButton",r,f,e,u;n[t].addons[i]={setup:function(){var e,f,o;this.opts.offCanvas&&(e=this,f=this.opts[i],(this.conf[i],u=n[t].glbl,"boolean"==typeof f&&(f={close:f}),"object"!=typeof f&&(f={}),f=n.extend(!0,{},n[t].defaults[i],f),f.close)&&(o="#"+e.$menu.attr("id"),this.bind("opened",function(){location.hash!=o&&history.pushState(null,document.title,o)}),n(window).on("popstate",function(n){u.$html.hasClass(r.opened)?(n.stopPropagation(),e.close()):location.hash==o&&(n.stopPropagation(),e.open())})))},add:function(){return window.history&&window.history.pushState?(r=n[t]._c,f=n[t]._d,void(e=n[t]._e)):void(n[t].addons[i].setup=function(){})},clickAnchor:function(){}},n[t].defaults[i]={close:!1}}(jQuery),!function(n){var t="mmenu",i="counters",r,u,f,e;n[t].addons[i]={setup:function(){var o=this,f=this.opts[i];this.conf[i],e=n[t].glbl,"boolean"==typeof f&&(f={add:f,update:f}),"object"!=typeof f&&(f={}),f=this.opts[i]=n.extend(!0,{},n[t].defaults[i],f),this.bind("init",function(t){this.__refactorClass(n("em",t),this.conf.classNames[i].counter,"counter")}),f.add&&this.bind("init",function(t){t.each(function(){var t=n(this).data(u.parent);t&&(t.children("em."+r.counter).length||t.prepend(n('<em class="'+r.counter+'" />')))})}),f.update&&this.bind("update",function(){this.$pnls.find("."+r.panel).each(function(){var t=n(this),f=t.data(u.parent),i;f&&(i=f.children("em."+r.counter),i.length&&(t=t.children("."+r.listview),t.length&&i.html(o.__filterListItems(t.children()).length)))})})},add:function(){r=n[t]._c,u=n[t]._d,f=n[t]._e,r.add("counter search noresultsmsg")},clickAnchor:function(){}},n[t].defaults[i]={add:!1,update:!1},n[t].configuration.classNames[i]={counter:"Counter"}}(jQuery),!function(n){var r="mmenu",i="dividers",t,f,u,e;n[r].addons[i]={setup:function(){var s=this,f=this.opts[i],o;(this.conf[i],e=n[r].glbl,"boolean"==typeof f&&(f={add:f,fixed:f}),"object"!=typeof f&&(f={}),f=this.opts[i]=n.extend(!0,{},n[r].defaults[i],f),this.bind("init",function(){this.__refactorClass(n("li",this.$menu),this.conf.classNames[i].collapsed,"collapsed")}),f.add&&this.bind("init",function(i){var r;switch(f.addTo){case"panels":r=i;break;default:r=n(f.addTo,this.$pnls).filter("."+t.panel)}n("."+t.divider,r).remove(),r.find("."+t.listview).not("."+t.vertical).each(function(){var i="";s.__filterListItems(n(this).children()).each(function(){var r=n.trim(n(this).children("a, span").text()).slice(0,1).toLowerCase();r!=i&&r.length&&(i=r,n('<li class="'+t.divider+'">'+r+"<\/li>").insertBefore(this))})})}),f.collapse&&this.bind("init",function(i){n("."+t.divider,i).each(function(){var i=n(this),r=i.nextUntil("."+t.divider,"."+t.collapsed);r.length&&(i.children("."+t.subopen).length||(i.wrapInner("<span />"),i.prepend('<a href="#" class="'+t.subopen+" "+t.fullsubopen+'" />')))})}),f.fixed)&&(o=function(i){var f,r,u;i=i||this.$pnls.children("."+t.current),f=i.find("."+t.divider).not("."+t.hidden),f.length?(this.$menu.addClass(t.hasdividers),r=i.scrollTop()||0,u="",i.is(":visible")&&i.find("."+t.divider).not("."+t.hidden).each(function(){n(this).position().top+r<r+1&&(u=n(this).text())}),this.$fixeddivider.text(u)):this.$menu.removeClass(t.hasdividers)},this.$fixeddivider=n('<ul class="'+t.listview+" "+t.fixeddivider+'"><li class="'+t.divider+'"><\/li><\/ul>').prependTo(this.$pnls).children(),this.bind("openPanel",o),this.bind("init",function(t){t.off(u.scroll+"-dividers "+u.touchmove+"-dividers").on(u.scroll+"-dividers "+u.touchmove+"-dividers",function(){o.call(s,n(this))})}))},add:function(){t=n[r]._c,f=n[r]._d,u=n[r]._e,t.add("collapsed uncollapsed fixeddivider hasdividers"),u.add("scroll")},clickAnchor:function(n,r){var u,f;return this.opts[i].collapse&&r&&(u=n.parent(),u.is("."+t.divider))?(f=u.nextUntil("."+t.divider,"."+t.collapsed),u.toggleClass(t.opened),f[u.hasClass(t.opened)?"addClass":"removeClass"](t.uncollapsed),!0):!1}},n[r].defaults[i]={add:!1,addTo:"panels",fixed:!1,collapse:!1},n[r].configuration.classNames[i]={collapsed:"Collapsed"}}(jQuery),!function(n){function f(n,t,i){return t>n&&(n=t),n>i&&(n=i),n}var i="mmenu",r="dragOpen",u,e,o,t;n[i].addons[r]={setup:function(){var a,nt;if(this.opts.offCanvas){var v=this,o=this.opts[r],p=this.conf[r];if(t=n[i].glbl,"boolean"==typeof o&&(o={open:o}),"object"!=typeof o&&(o={}),o=this.opts[r]=n.extend(!0,{},n[i].defaults[r],o),o.open){var c,y,w,b,k,e={},s=0,d=!1,h=!1,l=0,g=0;switch(this.opts.offCanvas.position){case"left":case"right":e.events="panleft panright",e.typeLower="x",e.typeUpper="X",h="width";break;case"top":case"bottom":e.events="panup pandown",e.typeLower="y",e.typeUpper="Y",h="height"}switch(this.opts.offCanvas.position){case"right":case"bottom":e.negative=!0,b=function(n){n>=t.$wndw[h]()-o.maxStartPos&&(s=1)};break;default:e.negative=!1,b=function(n){n<=o.maxStartPos&&(s=1)}}switch(this.opts.offCanvas.position){case"left":e.open_dir="right",e.close_dir="left";break;case"right":e.open_dir="left",e.close_dir="right";break;case"top":e.open_dir="down",e.close_dir="up";break;case"bottom":e.open_dir="up",e.close_dir="down"}switch(this.opts.offCanvas.zposition){case"front":k=function(){return this.$menu};break;default:k=function(){return n("."+u.slideout)}}a=this.__valueOrFn(o.pageNode,this.$menu,t.$page),"string"==typeof a&&(a=n(a)),nt=new Hammer(a[0],o.vendors.hammer);nt.on("panstart",function(n){b(n.center[e.typeLower]),t.$slideOutNodes=k(),d=e.open_dir}).on(e.events+" panend",function(n){s>0&&n.preventDefault()}).on(e.events,function(n){if(c=n["delta"+e.typeUpper],e.negative&&(c=-c),c!=l&&(d=c>=l?e.open_dir:e.close_dir),l=c,l>o.threshold&&1==s){if(t.$html.hasClass(u.opened))return;s=2,v._openSetup(),v.trigger("opening"),t.$html.addClass(u.dragging),g=f(t.$wndw[h]()*p[h].perc,p[h].min,p[h].max)}2==s&&(y=f(l,10,g)-("front"==v.opts.offCanvas.zposition?g:0),e.negative&&(y=-y),w="translate"+e.typeUpper+"("+y+"px )",t.$slideOutNodes.css({"-webkit-transform":"-webkit-"+w,transform:w}))}).on("panend",function(){2==s&&(t.$html.removeClass(u.dragging),t.$slideOutNodes.css("transform",""),v[d==e.open_dir?"_openFinish":"close"]()),s=0})}}},add:function(){return"function"!=typeof Hammer||Hammer.VERSION<2?void(n[i].addons[r].setup=function(){}):(u=n[i]._c,e=n[i]._d,o=n[i]._e,void u.add("dragging"))},clickAnchor:function(){}},n[i].defaults[r]={open:!1,maxStartPos:100,threshold:50,vendors:{hammer:{}}},n[i].configuration[r]={width:{perc:.8,min:140,max:440},height:{perc:.8,min:140,max:880}}}(jQuery),!function(n){var t="mmenu",i="fixedElements",u,f,e,r;n[t].addons[i]={setup:function(){var u,f;this.opts.offCanvas&&(u=this.opts[i],this.conf[i],r=n[t].glbl,u=this.opts[i]=n.extend(!0,{},n[t].defaults[i],u),f=function(n){var t=this.conf.classNames[i].fixed;this.__refactorClass(n.find("."+t),t,"slideout").appendTo(r.$body)},f.call(this,r.$page),this.bind("setPage",f))},add:function(){u=n[t]._c,f=n[t]._d,e=n[t]._e,u.add("fixed")},clickAnchor:function(){}},n[t].configuration.classNames[i]={fixed:"Fixed"}}(jQuery),!function(n){var i="mmenu",r="iconPanels",t,u,f,e;n[i].addons[r]={setup:function(){var s=this,u=this.opts[r],f,o,h;if(this.conf[r],e=n[i].glbl,"boolean"==typeof u&&(u={add:u}),"number"==typeof u&&(u={add:!0,visible:u}),"object"!=typeof u&&(u={}),u=this.opts[r]=n.extend(!0,{},n[i].defaults[r],u),u.visible++,u.add){for(this.$menu.addClass(t.iconpanel),f=[],o=0;o<=u.visible;o++)f.push(t.iconpanel+"-"+o);f=f.join(" "),h=function(i){var r=s.$pnls.children("."+t.panel).removeClass(f),e=r.filter("."+t.subopened);e.removeClass(t.hidden).add(i).slice(-u.visible).each(function(i){n(this).addClass(t.iconpanel+"-"+i)})},this.bind("openPanel",h),this.bind("init",function(i){h.call(s,s.$pnls.children("."+t.current)),u.hideNavbars&&i.removeClass(t.hasnavbar),i.each(function(){n(this).children("."+t.subblocker).length||n(this).prepend('<a href="#'+n(this).closest("."+t.panel).attr("id")+'" class="'+t.subblocker+'" />')})})}},add:function(){t=n[i]._c,u=n[i]._d,f=n[i]._e,t.add("iconpanel subblocker")},clickAnchor:function(){}},n[i].defaults[r]={add:!1,visible:3,hideNavbars:!1}}(jQuery),!function(n){var i="mmenu",r="navbars",t,u,f,e;n[i].addons[r]={setup:function(){var o=this,f=this.opts[r],h=this.conf[r],u,s;if(e=n[i].glbl,"undefined"!=typeof f){f instanceof Array||(f=[f]),u={},n.each(f,function(e){var s=f[e],c,l,a,y,w,v,p;for("boolean"==typeof s&&s&&(s={}),"object"!=typeof s&&(s={}),"undefined"==typeof s.content&&(s.content=["prev","title"]),s.content instanceof Array||(s.content=[s.content]),s=n.extend(!0,{},o.opts.navbar,s),c=s.position,l=s.height,"number"!=typeof l&&(l=1),l=Math.min(4,Math.max(1,l)),"bottom"!=c&&(c="top"),u[c]||(u[c]=0),u[c]++,a=n("<div />").addClass(t.navbar+" "+t.navbar+"-"+c+" "+t.navbar+"-"+c+"-"+u[c]+" "+t.navbar+"-size-"+l),u[c]+=l-1,y=0,w=s.content.length;w>y;y++)v=n[i].addons[r][s.content[y]]||!1,v?v.call(o,a,s,h):(v=s.content[y],v instanceof n||(v=n(s.content[y])),v.each(function(){a.append(n(this))}));p=Math.ceil(a.children().not("."+t.btn).length/l),p>1&&a.addClass(t.navbar+"-content-"+p),a.children("."+t.btn).length&&a.addClass(t.hasbtns),a.prependTo(o.$menu)});for(s in u)o.$menu.addClass(t.hasnavbar+"-"+s+"-"+u[s])}},add:function(){t=n[i]._c,u=n[i]._d,f=n[i]._e,t.add("close hasbtns")},clickAnchor:function(){}},n[i].configuration[r]={breadcrumbSeparator:"/"},n[i].configuration.classNames[r]={panelTitle:"Title",panelNext:"Next",panelPrev:"Prev"}}(jQuery),function(n){var t="mmenu";n[t].addons["navbars"]["breadcrumbs"]=function(i,r,u){var f=n[t]._c,o=n[t]._d,e;f.add("breadcrumbs separator"),i.append('<span class="'+f.breadcrumbs+'"><\/span>'),this.bind("init",function(t){t.removeClass(f.hasnavbar).each(function(){for(var i,r=[],s=n(this),h=n('<span class="'+f.breadcrumbs+'"><\/span>'),t=n(this).children().first(),e=!0;t&&t.length;)t.is("."+f.panel)||(t=t.closest("."+f.panel)),i=t.children("."+f.navbar).children("."+f.title).text(),r.unshift(e?"<span>"+i+"<\/span>":'<a href="#'+t.attr("id")+'">'+i+"<\/a>"),e=!1,t=t.data(o.parent);h.append(r.join('<span class="'+f.separator+'">'+u.breadcrumbSeparator+"<\/span>")).appendTo(s.children("."+f.navbar))})}),e=function(){var n=this.$pnls.children("."+f.current),t=i.find("."+f.breadcrumbs),r=n.children("."+f.navbar).children("."+f.breadcrumbs);t.html(r.html())},this.bind("openPanel",e),this.bind("init",e)}}(jQuery),function(n){var t="mmenu";n[t].addons["navbars"]["close"]=function(i){var r=n[t]._c,f=n[t].glbl,u;i.append('<a class="'+r.close+" "+r.btn+'" href="#"><\/a>'),u=function(n){i.find("."+r.close).attr("href","#"+n.attr("id"))},u.call(this,f.$page),this.bind("setPage",u)}}(jQuery),function(n){var t="mmenu",i="navbars";n[t].addons[i]["next"]=function(r){var u=n[t]._c,f;r.append('<a class="'+u.next+" "+u.btn+'" href="#"><\/a>'),f=function(n){n=n||this.$pnls.children("."+u.current);var t=r.find("."+u.next),e=n.find("."+this.conf.classNames[i].panelNext),f=e.attr("href"),o=e.html();t[f?"attr":"removeAttr"]("href",f),t[f||o?"removeClass":"addClass"](u.hidden),t.html(o)},this.bind("openPanel",f),this.bind("init",function(){f.call(this)})}}(jQuery),function(n){var t="mmenu",i="navbars";n[t].addons[i]["prev"]=function(r){var u=n[t]._c,f;r.append('<a class="'+u.prev+" "+u.btn+'" href="#"><\/a>'),this.bind("init",function(n){n.removeClass(u.hasnavbar)}),f=function(){var o=this.$pnls.children("."+u.current),f=r.find("."+u.prev),n=o.find("."+this.conf.classNames[i].panelPrev),t,e;n.length||(n=o.children("."+u.navbar).children("."+u.prev)),t=n.attr("href"),e=n.html(),f[t?"attr":"removeAttr"]("href",t),f[t||e?"removeClass":"addClass"](u.hidden),f.html(e)},this.bind("openPanel",f),this.bind("init",f)}}(jQuery),function(n){var t="mmenu";n[t].addons["navbars"]["searchfield"]=function(i){var r=n[t]._c,u=n('<div class="'+r.search+'" />').appendTo(i);"object"!=typeof this.opts.searchfield&&(this.opts.searchfield={}),this.opts.searchfield.add=!0,this.opts.searchfield.addTo=u}}(jQuery),function(n){var t="mmenu",i="navbars";n[t].addons[i]["title"]=function(r,u){var f=n[t]._c,e;r.append('<a class="'+f.title+'"><\/a>'),e=function(n){var e,t,o,s;n=n||this.$pnls.children("."+f.current),e=r.find("."+f.title),t=n.find("."+this.conf.classNames[i].panelTitle),t.length||(t=n.children("."+f.navbar).children("."+f.title)),o=t.attr("href"),s=t.html()||u.title,e[o?"attr":"removeAttr"]("href",o),e[o||s?"removeClass":"addClass"](f.hidden),e.html(s)},this.bind("openPanel",e),this.bind("init",function(){e.call(this)})}}(jQuery),!function(n){var i="mmenu",r="searchfield",t,f,u,e;n[i].addons[r]={setup:function(){var o=this,u=this.opts[r],f=this.conf[r];e=n[i].glbl,"boolean"==typeof u&&(u={add:u}),"object"!=typeof u&&(u={}),u=this.opts[r]=n.extend(!0,{},n[i].defaults[r],u),this.bind("close",function(){this.$menu.find("."+t.search).find("input").blur()}),this.bind("init",function(i){var r;if(u.add){switch(u.addTo){case"panels":r=i;break;default:r=n(u.addTo,this.$menu)}r.each(function(){var i=n(this),h,r,s,c,e;if(!i.is("."+t.panel)||!i.is("."+t.vertical)){if(!i.children("."+t.search).length){if(h="form",r=n("<"+h+' class="'+t.search+'" id="serchForm" method="get" action="/search/"  />'),f.form&&"object"==typeof f.form)for(s in f.form)r.attr(s,f.form[s]);r.append('<button type="submit" class="fa fa-search"><\/button>'),r.append('<input placeholder="'+u.placeholder+'" type="search" autocomplete="off" name="q" />'),i.hasClass(t.search)?i.replaceWith(r):i.prepend(r).addClass(t.hassearch)}u.noResults&&(c=i.closest("."+t.panel).length,(c||(i=o.$pnls.children("."+t.panel).first()),i.children("."+t.noresultsmsg).length)||(e=i.children("."+t.listview).first(),n('<div class="'+t.noresultsmsg+'" />').append(u.noResults)[e.length?"insertAfter":"prependTo"](e.length?e:i)))}})}})},add:function(){t=n[i]._c,f=n[i]._d,u=n[i]._e,t.add("search hassearch noresultsmsg noresults nosubresults fullsubopensearch"),u.add("change keyup")},clickAnchor:function(){}},n[i].defaults[r]={add:!1,addTo:"panels",search:!0,placeholder:"search",noResults:"no results found.",showTextItems:!1,showSubPanels:!0},n[i].configuration[r]={form:!1}}(jQuery),!function(n){var i="mmenu",r="sectionIndexer",t,f,u,e;n[i].addons[r]={setup:function(){var o=this,f=this.opts[r];this.conf[r],e=n[i].glbl,"boolean"==typeof f&&(f={add:f}),"object"!=typeof f&&(f={}),f=this.opts[r]=n.extend(!0,{},n[i].defaults[r],f),this.bind("init",function(i){var r,e;if(f.add){switch(f.addTo){case"panels":r=i;break;default:r=n(f.addTo,this.$menu).filter("."+t.panel)}r.find("."+t.divider).closest("."+t.panel).addClass(t.hasindexer)}!this.$indexer&&this.$pnls.children("."+t.hasindexer).length&&(this.$indexer=n('<div class="'+t.indexer+'" />').prependTo(this.$pnls).append('<a href="#a">a<\/a><a href="#b">b<\/a><a href="#c">c<\/a><a href="#d">d<\/a><a href="#e">e<\/a><a href="#f">f<\/a><a href="#g">g<\/a><a href="#h">h<\/a><a href="#i">i<\/a><a href="#j">j<\/a><a href="#k">k<\/a><a href="#l">l<\/a><a href="#m">m<\/a><a href="#n">n<\/a><a href="#o">o<\/a><a href="#p">p<\/a><a href="#q">q<\/a><a href="#r">r<\/a><a href="#s">s<\/a><a href="#t">t<\/a><a href="#u">u<\/a><a href="#v">v<\/a><a href="#w">w<\/a><a href="#x">x<\/a><a href="#y">y<\/a><a href="#z">z<\/a>'),this.$indexer.children().on(u.mouseover+"-sectionindexer "+t.touchstart+"-sectionindexer",function(){var e=n(this).attr("href").slice(1),i=o.$pnls.children("."+t.current),r=i.find("."+t.listview),u=!1,f=i.scrollTop(),s=r.position().top+parseInt(r.css("margin-top"),10)+parseInt(r.css("padding-top"),10)+f;i.scrollTop(0),r.children("."+t.divider).not("."+t.hidden).each(function(){u===!1&&e==n(this).text().slice(0,1).toLowerCase()&&(u=n(this).position().top+s)}),i.scrollTop(u!==!1?u:f)}),e=function(n){o.$menu[(n.hasClass(t.hasindexer)?"add":"remove")+"Class"](t.hasindexer)},this.bind("openPanel",e),e.call(this,this.$pnls.children("."+t.current)))})},add:function(){t=n[i]._c,f=n[i]._d,u=n[i]._e,t.add("indexer hasindexer"),u.add("mouseover touchstart")},clickAnchor:function(n){if(n.parent().is("."+t.indexer))return!0}},n[i].defaults[r]={add:!1,addTo:"panels"}}(jQuery),!function(n){var t="mmenu",i="toggles",r,u,f,e;n[t].addons[i]={setup:function(){var u=this;this.opts[i],this.conf[i],e=n[t].glbl,this.bind("init",function(t){this.__refactorClass(n("input",t),this.conf.classNames[i].toggle,"toggle"),this.__refactorClass(n("input",t),this.conf.classNames[i].check,"check"),n("input."+r.toggle+", input."+r.check,t).each(function(){var t=n(this),i=t.closest("li"),e=t.hasClass(r.toggle)?"toggle":"check",f=t.attr("id")||u.__getUniqueId();i.children('label[for="'+f+'"]').length||(t.attr("id",f),i.prepend(t),n('<label for="'+f+'" class="'+r[e]+'"><\/label>').insertBefore(i.children("a, span").last()))})})},add:function(){r=n[t]._c,u=n[t]._d,f=n[t]._e,r.add("toggle check")},clickAnchor:function(){}},n[t].configuration.classNames[i]={toggle:"Toggle",check:"Check"}}(jQuery),function(n){var t="mmenu",i="fixedElements",u,f,e,r;n[t].addons[i]={setup:function(){var u;if(this.opts.offCanvas){var e=this,f=this.opts[i],o=this.conf[i];r=n[t].glbl,f=this.opts[i]=n.extend(!0,{},n[t].defaults[i],f),u=function(n){var t=this.conf.classNames[i].fixed;this.__refactorClass(n.find("."+t),t,"slideout").appendTo(r.$body)},u.call(this,r.$page),this.bind("setPage",u)}},add:function(){u=n[t]._c,f=n[t]._d,e=n[t]._e,u.add("fixed")},clickAnchor:function(){}},n[t].configuration.classNames[i]={fixed:"Fixed"}}(jQuery),$(function(){function u(){var n=$(".menu-top").data("mmenu");n.close()}var i,r;$(".menu-top").mmenu({extensions:["effect-slide-menu","pageshadow"],navbars:{content:["searchfield"]},searchfield:!0,counters:!1,panelNodetype:"div",offCanvas:{position:"right"},navbar:{titleLink:"anchor"},onClick:{close:!0}}),$("video").each(function(){$(this).get(0).play()}),$(".mm-menu-icon").click(function(){var n=$(".menu-top").data("mmenu");n.open()}),$(window).resize(function(){Modernizr.mq("(min-width:1001px)")&&u()}),i=$(".mm-title"),$('<i class="icon icon-arrow"><\/i>').appendTo(i);var t=$(".mm-search"),f=$(".mm-navbar.mm-navbar-top.mm-navbar-top-1.mm-navbar-size-1").detach(),n=$(".mm-panels #mm-1 .mm-navbar .mm-title");t!=undefined&&t.length>0&&n!=undefined&&n.length>0&&(r=t.detach(),n.empty(),r.appendTo(n),n.parent().addClass("mmhome-navbar"))}),$("video").hide();var checkInterval=50,lastPlayPos=0,currentPlayPos=0,bufferingDetected=!1,player=document.getElementById("videoPlayer");player!=null?(detect_autoplay(100),interval=setInterval(function(){clearInterval(interval),autoplay?$("video").show():$("body").addClass("no-vid")},150)):$("body").addClass("no-vid"),locBanner=".localisation-banner",closeAction=".localisation-banner-close, .nav-global-utilities, li.regions",$(function(){sessionStorage.alreadyClicked||($(locBanner+".hide").removeClass("hide"),sessionStorage.alreadyClicked=1,setTimeout(function(){$(locBanner).fadeTo(1e3,0,function(){$(locBanner).addClass("hide")})},1e4))});$(document).on("click",closeAction,function(){$(locBanner).fadeTo(300,0,function(){$(locBanner).addClass("hide"),sessionStorage.alreadyClicked=1})});piAId="4942",piCId="51447",function(){function n(){var n=document.createElement("script"),t;n.type="text/javascript",n.src=("https:"==document.location.protocol?"https://pi":"http://cdn")+".pardot.com/pd.js",t=document.getElementsByTagName("script")[0],t.parentNode.insertBefore(n,t)}window.attachEvent?window.attachEvent("onload",n):window.addEventListener("load",n,!1)}()