function repeatFieldCare(){$(".Fieldset_About-the-Care-Recipient .repeat").removeClass(function(n,t){return(t.match(/(^|\s)repeatText\S+/g)||[]).join(" ")}),$(".Fieldset_About-the-Care-Recipient .repeat .repeatTitle").remove(),$(".Fieldset_About-the-Care-Recipient .repeat").each(function(n){$(this).addClass("repeatText"+(n+1)),$(this).prepend('<h4 class="repeatTitle">Care Recipient <\/h4>'),$(this).find(".repeatTitle").append(n+1)})}function repeatFieldDelete(){$(".Fieldset_About-the-Care-Recipient .delete-button").on("click",function(){repeatFieldCare(),DOB()})}function DOB(){$("#FormCreator_5257 .clsDateBox").each(function(){$(this).datepicker("option","maxDate","Dec 31, "+((new Date).getFullYear()-1).toString())})}if(function(n){n.fn.fitVids=function(t){var i={customSelector:null,ignore:null};if(!document.getElementById("fit-vids-style")){var u=document.head||document.getElementsByTagName("head")[0],f=".fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}",r=document.createElement("div");r.innerHTML='<p>x<\/p><style id="fit-vids-style">'+f+"<\/style>",u.appendChild(r.childNodes[1])}return t&&n.extend(i,t),this.each(function(){var u=["iframe[src*='player.vimeo.com']","iframe[src*='youtube.com']","iframe[src*='youtube-nocookie.com']","iframe[src*='kickstarter.com'][src*='video.html']","object","embed"],r,t;i.customSelector&&u.push(i.customSelector),r=".fitvidsignore",i.ignore&&(r=r+", "+i.ignore),t=n(this).find(u.join(",")),t=t.not("object object"),t=t.not(r),t.each(function(){var t=n(this),i;if(!(t.parents(r).length>0)&&(this.tagName.toLowerCase()!=="embed"||!t.parent("object").length)&&!t.parent(".fluid-width-video-wrapper").length){!t.css("height")&&!t.css("width")&&(isNaN(t.attr("height"))||isNaN(t.attr("width")))&&(t.attr("height",9),t.attr("width",16));var u=this.tagName.toLowerCase()==="object"||t.attr("height")&&!isNaN(parseInt(t.attr("height"),10))?parseInt(t.attr("height"),10):t.height(),f=isNaN(parseInt(t.attr("width"),10))?t.width():parseInt(t.attr("width"),10),e=u/f;t.attr("id")||(i="fitvid"+Math.floor(Math.random()*999999),t.attr("id",i)),t.wrap('<div class="fluid-width-video-wrapper"><\/div>').parent(".fluid-width-video-wrapper").css("padding-top",e*100+"%"),t.removeAttr("height").removeAttr("width")}})})}}(window.jQuery||window.Zepto),function(){function n(r){if(!r)throw new Error("No options passed to Waypoint constructor");if(!r.element)throw new Error("No element option passed to Waypoint constructor");if(!r.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+i,this.options=n.Adapter.extend({},n.defaults,r),this.element=this.options.element,this.adapter=new n.Adapter(this.element),this.callback=r.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=n.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=n.Context.findOrCreateByElement(this.options.context),n.offsetAliases[this.options.offset]&&(this.options.offset=n.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),t[this.key]=this,i+=1}var i=0,t={};n.prototype.queueTrigger=function(n){this.group.queueTrigger(this,n)},n.prototype.trigger=function(n){this.enabled&&this.callback&&this.callback.apply(this,n)},n.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete t[this.key]},n.prototype.disable=function(){return this.enabled=!1,this},n.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},n.prototype.next=function(){return this.group.next(this)},n.prototype.previous=function(){return this.group.previous(this)},n.invokeAll=function(n){var r=[],u,i,f;for(u in t)r.push(t[u]);for(i=0,f=r.length;i<f;i++)r[i][n]()},n.destroyAll=function(){n.invokeAll("destroy")},n.disableAll=function(){n.invokeAll("disable")},n.enableAll=function(){n.Context.refreshAll();for(var i in t)t[i].enabled=!0;return this},n.refreshAll=function(){n.Context.refreshAll()},n.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},n.viewportWidth=function(){return document.documentElement.clientWidth},n.adapters=[],n.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},n.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=n}(),function(){function f(n){window.setTimeout(n,1e3/60)}function n(u){this.element=u,this.Adapter=t.Adapter,this.adapter=new this.Adapter(u),this.key="waypoint-context-"+r,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},u.waypointContextKey=this.key,i[u.waypointContextKey]=this,r+=1,t.windowContext||(t.windowContext=!0,t.windowContext=new n(window)),this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}var r=0,i={},t=window.Waypoint,u=window.onload;n.prototype.add=function(n){var t=n.options.horizontal?"horizontal":"vertical";this.waypoints[t][n.key]=n,this.refresh()},n.prototype.checkEmpty=function(){var n=this.Adapter.isEmptyObject(this.waypoints.horizontal),t=this.Adapter.isEmptyObject(this.waypoints.vertical),r=this.element==this.element.window;n&&t&&!r&&(this.adapter.off(".waypoints"),delete i[this.key])},n.prototype.createThrottledResizeHandler=function(){function i(){n.handleResize(),n.didResize=!1}var n=this;this.adapter.on("resize.waypoints",function(){n.didResize||(n.didResize=!0,t.requestAnimationFrame(i))})},n.prototype.createThrottledScrollHandler=function(){function i(){n.handleScroll(),n.didScroll=!1}var n=this;this.adapter.on("scroll.waypoints",function(){(!n.didScroll||t.isTouch)&&(n.didScroll=!0,t.requestAnimationFrame(i))})},n.prototype.handleResize=function(){t.Context.refreshAll()},n.prototype.handleScroll=function(){var u={},i={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}},r,f,n,s;for(r in i){var t=i[r],h=t.newScroll>t.oldScroll,c=h?t.forward:t.backward;for(f in this.waypoints[r])if(n=this.waypoints[r][f],n.triggerPoint!==null){var e=t.oldScroll<n.triggerPoint,o=t.newScroll>=n.triggerPoint,l=e&&o,a=!e&&!o;(l||a)&&(n.queueTrigger(c),u[n.group.id]=n.group)}}for(s in u)u[s].flushTriggers();this.oldScroll={x:i.horizontal.newScroll,y:i.vertical.newScroll}},n.prototype.innerHeight=function(){return this.element==this.element.window?t.viewportHeight():this.adapter.innerHeight()},n.prototype.remove=function(n){delete this.waypoints[n.axis][n.key],this.checkEmpty()},n.prototype.innerWidth=function(){return this.element==this.element.window?t.viewportWidth():this.adapter.innerWidth()},n.prototype.destroy=function(){var t=[],i,r,n,u;for(i in this.waypoints)for(r in this.waypoints[i])t.push(this.waypoints[i][r]);for(n=0,u=t.length;n<u;n++)t[n].destroy()},n.prototype.refresh=function(){var u=this.element==this.element.window,l=u?undefined:this.adapter.offset(),f={},o,e,i,a;this.handleScroll(),o={horizontal:{contextOffset:u?0:l.left,contextScroll:u?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:u?0:l.top,contextScroll:u?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};for(e in o){i=o[e];for(a in this.waypoints[e]){var n=this.waypoints[e][a],r=n.options.offset,v=n.triggerPoint,y=0,s=v==null,p,h,c,w,b;n.element!==n.element.window&&(y=n.adapter.offset()[i.offsetProp]),typeof r=="function"?r=r.apply(n):typeof r=="string"&&(r=parseFloat(r),n.options.offset.indexOf("%")>-1&&(r=Math.ceil(i.contextDimension*r/100))),p=i.contextScroll-i.contextOffset,n.triggerPoint=Math.floor(y+p-r),h=v<i.oldScroll,c=n.triggerPoint>=i.oldScroll,w=h&&c,b=!h&&!c,!s&&w?(n.queueTrigger(i.backward),f[n.group.id]=n.group):!s&&b?(n.queueTrigger(i.forward),f[n.group.id]=n.group):s&&i.oldScroll>=n.triggerPoint&&(n.queueTrigger(i.forward),f[n.group.id]=n.group)}}return t.requestAnimationFrame(function(){for(var n in f)f[n].flushTriggers()}),this},n.findOrCreateByElement=function(t){return n.findByElement(t)||new n(t)},n.refreshAll=function(){for(var n in i)i[n].refresh()},n.findByElement=function(n){return i[n.waypointContextKey]},window.onload=function(){u&&u(),n.refreshAll()},t.requestAnimationFrame=function(n){var t=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||f;t.call(window,n)},t.Context=n}(),function(){function i(n,t){return n.triggerPoint-t.triggerPoint}function u(n,t){return t.triggerPoint-n.triggerPoint}function n(n){this.name=n.name,this.axis=n.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),r[this.axis][this.name]=this}var r={vertical:{},horizontal:{}},t=window.Waypoint;n.prototype.add=function(n){this.waypoints.push(n)},n.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},n.prototype.flushTriggers=function(){var n,t,e,r,o,f;for(n in this.triggerQueues)for(t=this.triggerQueues[n],e=n==="up"||n==="left",t.sort(e?u:i),r=0,o=t.length;r<o;r+=1)f=t[r],(f.options.continuous||r===t.length-1)&&f.trigger([n]);this.clearTriggerQueues()},n.prototype.next=function(n){this.waypoints.sort(i);var r=t.Adapter.inArray(n,this.waypoints),u=r===this.waypoints.length-1;return u?null:this.waypoints[r+1]},n.prototype.previous=function(n){this.waypoints.sort(i);var r=t.Adapter.inArray(n,this.waypoints);return r?this.waypoints[r-1]:null},n.prototype.queueTrigger=function(n,t){this.triggerQueues[t].push(n)},n.prototype.remove=function(n){var i=t.Adapter.inArray(n,this.waypoints);i>-1&&this.waypoints.splice(i,1)},n.prototype.first=function(){return this.waypoints[0]},n.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},n.findOrCreate=function(t){return r[t.axis][t.name]||new n(t)},t.Group=n}(),function(){function t(t){this.$element=n(t)}var n=window.jQuery,i=window.Waypoint;n.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(n,i){t.prototype[i]=function(){var n=Array.prototype.slice.call(arguments);return this.$element[i].apply(this.$element,n)}}),n.each(["extend","inArray","isEmptyObject"],function(i,r){t[r]=n[r]}),i.adapters.push({name:"jquery",Adapter:t}),i.Adapter=t}(),function(){function n(n){return function(){var r=[],i=arguments[0];return n.isFunction(arguments[0])&&(i=n.extend({},arguments[1]),i.handler=arguments[0]),this.each(function(){var u=n.extend({},i,{element:this});typeof u.context=="string"&&(u.context=n(this).closest(u.context)[0]),r.push(new t(u))}),r}}var t=window.Waypoint;window.jQuery&&(window.jQuery.fn.waypoint=n(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=n(window.Zepto))}(),!function(n,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():n.ScrollMagic=t()}(this,function(){function t(){}var r,u,i,n;return t.version="2.0.8","undefined"!=typeof window&&window.addEventListener("mousewheel",void 0),r="data-scrollmagic-pin-spacer",t.Controller=function(i){function k(){var t,i,r;v&&s&&(t=n.type.Array(s)?s:o.slice(0),s=!1,i=p,0!=(r=(p=e.scrollPos())-i)&&(l=0<r?"FORWARD":tt),l===tt&&t.reverse(),t.forEach(function(n){n.update(!0)}))}function d(){g=n.rAF(k)}function b(n){if(n.length<=1)return n;var t=n.slice(0);return t.sort(function(n,t){return n.scrollOffset()>t.scrollOffset()?1:-1}),t}var g,nt,tt="REVERSE",it="PAUSED",y=u.defaults,e=this,f=n.extend({},y,i),o=[],s=!1,p=0,l=it,h=!0,a=0,v=!0,rt=function(){0<f.refreshInterval&&(nt=window.setTimeout(et,f.refreshInterval))},ut=function(){return f.vertical?n.get.scrollTop(f.container):n.get.scrollLeft(f.container)},w=function(){return f.vertical?n.get.height(f.container):n.get.width(f.container)},ft=this._setScrollPos=function(t){f.vertical?h?window.scrollTo(n.get.scrollLeft(),t):f.container.scrollTop=t:h?window.scrollTo(t,n.get.scrollTop()):f.container.scrollLeft=t},c=function(n){"resize"==n.type&&(a=w(),l=it),!0!==s&&(s=!0,d())},et=function(){if(!h&&a!=w()){var n;try{n=new Event("resize",{bubbles:!1,cancelable:!1})}catch(t){(n=document.createEvent("Event")).initEvent("resize",!1,!1)}f.container.dispatchEvent(n)}o.forEach(function(n){n.refresh()}),rt()};return this._options=f,this.addScene=function(i){if(n.type.Array(i))i.forEach(function(n){e.addScene(n)});else if(i instanceof t.Scene)if(i.controller()!==e)i.addTo(e);else if(!~o.indexOf(i))for(var r in o.push(i),o=b(o),i.on("shift.controller_sort",function(){o=b(o)}),f.globalSceneOptions)i[r]&&i[r].call(i,f.globalSceneOptions[r]);return e},this.removeScene=function(t){var i;return n.type.Array(t)?t.forEach(function(n){e.removeScene(n)}):-1<(i=o.indexOf(t))&&(t.off("shift.controller_sort"),o.splice(i,1),t.remove()),e},this.updateScene=function(i,r){return n.type.Array(i)?i.forEach(function(n){e.updateScene(n,r)}):r?i.update(!0):!0!==s&&i instanceof t.Scene&&(~(s=s||[]).indexOf(i)||s.push(i),s=b(s),d()),e},this.update=function(n){return c({type:"resize"}),n&&k(),e},this.scrollTo=function(i,u){var o;if(n.type.Number(i))ft.call(f.container,i,u);else if(i instanceof t.Scene)i.controller()===e&&e.scrollTo(i.scrollOffset(),u);else if(n.type.Function(i))ft=i;else if(o=n.get.elements(i)[0],o){for(;o.parentNode.hasAttribute(r);)o=o.parentNode;var s=f.vertical?"top":"left",c=n.get.offset(f.container),l=n.get.offset(o);h||(c[s]-=e.scrollPos()),e.scrollTo(l[s]-c[s],u)}return e},this.scrollPos=function(t){return arguments.length?(n.type.Function(t)&&(ut=t),e):ut.call(e)},this.info=function(n){var t={size:a,vertical:f.vertical,scrollPos:p,scrollDirection:l,container:f.container,isDocument:h};return arguments.length?void 0!==t[n]?t[n]:void 0:t},this.loglevel=function(){return e},this.enabled=function(n){return arguments.length?(v!=n&&(v=!!n,e.updateScene(o,!0)),e):v},this.destroy=function(t){window.clearTimeout(nt);for(var i=o.length;i--;)o[i].destroy(t);return f.container.removeEventListener("resize",c),f.container.removeEventListener("scroll",c),n.cAF(g),null},function(){var t,i;for(t in f)y.hasOwnProperty(t)||delete f[t];if(f.container=n.get.elements(f.container)[0],!f.container)throw"ScrollMagic.Controller init failed.";(h=f.container===window||f.container===document.body||!document.body.contains(f.container))&&(f.container=window),a=w(),f.container.addEventListener("resize",c),f.container.addEventListener("scroll",c),i=parseInt(f.refreshInterval,10),f.refreshInterval=n.type.Number(i)?i:y.refreshInterval,rt()}(),e},u={defaults:{container:window,vertical:!0,globalSceneOptions:{},loglevel:2,refreshInterval:100}},t.Controller.addOption=function(n,t){u.defaults[n]=t},t.Controller.extend=function(i){var r=this;t.Controller=function(){return r.apply(this,arguments),this.$super=n.extend({},this),i.apply(this,arguments)||this},n.extend(t.Controller,r),t.Controller.prototype=r.prototype,t.Controller.prototype.constructor=t.Controller},t.Scene=function(u){function rt(){o&&e&&c===l&&!o.info("isDocument")&&y()}function vt(){o&&e&&c===l&&((s.relSize.width||s.relSize.autoFullWidth)&&n.get.width(window)!=n.get.width(s.spacer.parentNode)||s.relSize.height&&n.get.height(window)!=n.get.height(s.spacer.parentNode))&&k()}function ut(n){o&&e&&c===l&&!o.info("isDocument")&&(n.preventDefault(),o._setScrollPos(o.info("scrollPos")-((n.wheelDelta||n[o.info("vertical")?"wheelDeltaY":"wheelDeltaX"])/3||30*-n.detail)))}var p,o,w="BEFORE",l="DURING",nt="AFTER",tt=i.defaults,f=this,h=n.extend({},tt,u),c=w,a=0,v={start:0,end:0},g=0,it=!0,b={},y,k,ft,d;this.on=function(t,i){return n.type.Function(i)&&(t=t.trim().split(" ")).forEach(function(n){var r=n.split("."),t=r[0],u=r[1];"*"!=t&&(b[t]||(b[t]=[]),b[t].push({namespace:u||"",callback:i}))}),f},this.off=function(n,t){return n&&(n=n.trim().split(" ")).forEach(function(n){var r=n.split("."),u=r[0],f=r[1]||"";("*"===u?Object.keys(b):[u]).forEach(function(n){for(var u,i=b[n]||[],r=i.length;r--;)u=i[r],!u||f!==u.namespace&&"*"!==f||t&&t!=u.callback||i.splice(r,1);i.length||delete b[n]})}),f},this.trigger=function(n,i){var r,u,e,o;return n&&(r=n.trim().split("."),u=r[0],e=r[1],(o=b[u])&&o.forEach(function(n){e&&e!==n.namespace||n.callback.call(f,new t.Event(u,n.namespace,f,i))})),f},f.on("change.internal",function(n){"loglevel"!==n.what&&"tweenChanges"!==n.what&&("triggerElement"===n.what?et():"reverse"===n.what&&f.update())}).on("shift.internal",function(){ht(),f.update()}),this.addTo=function(n){return n instanceof t.Controller&&o!=n&&(o&&o.removeScene(f),o=n,st(),ct(!0),et(!0),ht(),o.info("container").addEventListener("resize",lt),n.addScene(f),f.trigger("add",{controller:o}),f.update()),f},this.enabled=function(n){return arguments.length?(it!=n&&(it=!!n,f.update(!0)),f):it},this.remove=function(){var n;return o&&(o.info("container").removeEventListener("resize",lt),n=o,o=void 0,n.removeScene(f),f.trigger("remove")),f},this.destroy=function(n){return f.trigger("destroy",{reset:n}),f.remove(),f.off("*.*"),null},this.update=function(n){var t,i;return o&&(n?o.enabled()&&it?(t=o.info("scrollPos"),i=0<h.duration?(t-v.start)/(v.end-v.start):t>=v.start?1:0,f.trigger("update",{startPos:v.start,endPos:v.end,scrollPos:t}),f.progress(i)):e&&c===l&&y(!0):o.updateScene(f,!1)),f},this.refresh=function(){return ct(),et(),f},this.progress=function(n){if(arguments.length){var e,s,t,i=!1,u=c,v=o?o.info("scrollDirection"):"PAUSED",r=h.reverse||a<=n;return 0===h.duration?(i=a!=n,c=0==(a=n<1&&r?0:1)?w:l):n<0&&c!==w&&r?(c=w,i=!(a=0)):0<=n&&n<1&&r?(a=n,c=l,i=!0):1<=n&&c!==nt?(a=1,c=nt,i=!0):c!==l||r||y(),i&&(e={progress:a,state:c,scrollDirection:v},t=function(n){f.trigger(n,e)},(s=c!=u)&&u!==l&&(t("enter"),t(u===w?"start":"end")),t("progress"),s&&c!==l&&(t(c===w?"start":"end"),t("leave"))),f}return a};var e,s,ht=function(){v={start:g+h.offset},o&&h.triggerElement&&(v.start-=o.info("size")*h.triggerHook),v.end=v.start+h.duration},ct=function(n){var t;p&&at(t="duration",p.call(f))&&!n&&(f.trigger("change",{what:t,newval:h[t]}),f.trigger("shift",{reason:t}))},et=function(t){var u=0,i=h.triggerElement,l,a;if(o&&(i||0<g)){if(i)if(i.parentNode){for(var e=o.info(),c=n.get.offset(e.container),s=e.vertical?"top":"left";i.parentNode.hasAttribute(r);)i=i.parentNode;l=n.get.offset(i),e.isDocument||(c[s]-=o.scrollPos()),u=l[s]-c[s]}else f.triggerElement(void 0);a=u!=g,g=u,a&&!t&&f.trigger("shift",{reason:"triggerElementPosition"})}},lt=function(){0<h.triggerHook&&f.trigger("shift",{reason:"containerResize"})},ot=n.extend(i.validate,{duration:function(t){var i;if(n.type.String(t)&&t.match(/^(\.|\d)*\d+%$/)&&(i=parseFloat(t)/100,t=function(){return o?o.info("size")*i:0}),n.type.Function(t)){p=t;try{t=parseFloat(p.call(f))}catch(i){t=-1}}if(t=parseFloat(t),!n.type.Number(t)||t<0)throw p=p&&void 0,0;return t}}),st=function(n){(n=arguments.length?[n]:Object.keys(ot)).forEach(function(n){var i;if(ot[n])try{i=ot[n](h[n])}catch(t){i=tt[n]}finally{h[n]=i}})},at=function(n,t){var i=!1,r=h[n];return h[n]!=t&&(h[n]=t,st(n),i=r!=h[n]),i},yt=function(n){f[n]||(f[n]=function(t){return arguments.length?("duration"===n&&(p=void 0),at(n,t)&&(f.trigger("change",{what:n,newval:h[n]}),~i.shifts.indexOf(n)&&f.trigger("shift",{reason:n})),f):h[n]})};return this.controller=function(){return o},this.state=function(){return c},this.scrollOffset=function(){return v.start},this.triggerPosition=function(){var n=h.offset;return o&&(n+=h.triggerElement?g:o.info("size")*f.triggerHook()),n},f.on("shift.internal",function(n){var t="duration"===n.reason;(c===nt&&t||c===l&&0===h.duration)&&y(),t&&k()}).on("progress.internal",function(){y()}).on("add.internal",function(){k()}).on("destroy.internal",function(n){f.removePin(n.reset)}),y=function(t){var r,i,u,y,f,p;e&&o&&(r=o.info(),i=s.spacer.firstChild,t||c!==l?(u={position:s.inFlow?"relative":"absolute",top:0,left:0},y=n.css(i,"position")!=u.position,s.pushFollowers?0<h.duration&&(c===nt&&0===parseFloat(n.css(s.spacer,"padding-top"))||c===w&&0===parseFloat(n.css(s.spacer,"padding-bottom")))&&(y=!0):u[r.vertical?"top":"left"]=h.duration*a,n.css(i,u),y&&k()):("fixed"!=n.css(i,"position")&&(n.css(i,{position:"fixed"}),k()),f=n.get.offset(s.spacer,!0),p=h.reverse||0===h.duration?r.scrollPos-v.start:Math.round(a*h.duration*10)/10,f[r.vertical?"top":"left"]+=p,n.css(s.spacer.firstChild,{top:f.top,left:f.left})))},k=function(){var i,r,u,f,t;e&&o&&s.inFlow&&(i=c===l,r=o.info("vertical"),u=s.spacer.firstChild,f=n.isMarginCollapseType(n.css(s.spacer,"display")),t={},s.relSize.width||s.relSize.autoFullWidth?i?n.css(e,{width:n.get.width(s.spacer)}):n.css(e,{width:"100%"}):(t["min-width"]=n.get.width(r?e:u,!0,!0),t.width=i?t["min-width"]:"auto"),s.relSize.height?i?n.css(e,{height:n.get.height(s.spacer)-(s.pushFollowers?h.duration:0)}):n.css(e,{height:"100%"}):(t["min-height"]=n.get.height(r?u:e,!0,!f),t.height=i?t["min-height"]:"auto"),s.pushFollowers&&(t["padding"+(r?"Top":"Left")]=h.duration*a,t["padding"+(r?"Bottom":"Right")]=h.duration*(1-a)),n.css(s.spacer,t))},this.setPin=function(t,i){var a,c,p,u,l;if((i=n.extend({},{pushFollowers:!0,spacerClass:"scrollmagic-pin-spacer"},i),!(t=n.get.elements(t)[0]))||"fixed"===n.css(t,"position"))return f;if(e){if(e===t)return f;f.removePin()}a=(e=t).parentNode.style.display,c=["top","left","bottom","right","margin","marginLeft","marginRight","marginTop","marginBottom"],e.parentNode.style.display="none";var o="absolute"!=n.css(e,"position"),v=n.css(e,c.concat(["display"])),h=n.css(e,["width","height"]);return e.parentNode.style.display=a,!o&&i.pushFollowers&&(i.pushFollowers=!1),u=e.parentNode.insertBefore(document.createElement("div"),e),l=n.extend(v,{position:o?"relative":"absolute",boxSizing:"content-box",mozBoxSizing:"content-box",webkitBoxSizing:"content-box"}),o||n.extend(l,n.css(e,["width","height"])),n.css(u,l),u.setAttribute(r,""),n.addClass(u,i.spacerClass),s={spacer:u,relSize:{width:"%"===h.width.slice(-1),height:"%"===h.height.slice(-1),autoFullWidth:"auto"===h.width&&o&&n.isMarginCollapseType(v.display)},pushFollowers:i.pushFollowers,inFlow:o},e.___origStyle||(e.___origStyle={},p=e.style,c.concat(["width","height","position","boxSizing","mozBoxSizing","webkitBoxSizing"]).forEach(function(n){e.___origStyle[n]=p[n]||""})),s.relSize.width&&n.css(u,{width:h.width}),s.relSize.height&&n.css(u,{height:h.height}),u.appendChild(e),n.css(e,{position:o?"relative":"absolute",margin:"auto",top:"auto",left:"auto",bottom:"auto",right:"auto"}),(s.relSize.width||s.relSize.autoFullWidth)&&n.css(e,{boxSizing:"border-box",mozBoxSizing:"border-box",webkitBoxSizing:"border-box"}),window.addEventListener("scroll",rt),window.addEventListener("resize",rt),window.addEventListener("resize",vt),e.addEventListener("mousewheel",ut),e.addEventListener("DOMMouseScroll",ut),y(),f},this.removePin=function(t){var i,h,u;return e&&(c===l&&y(!0),!t&&o||((i=s.spacer.firstChild).hasAttribute(r)&&(h=s.spacer.style,u={},["margin","marginLeft","marginRight","marginTop","marginBottom"].forEach(function(n){u[n]=h[n]||""}),n.css(i,u)),s.spacer.parentNode.insertBefore(i,s.spacer),s.spacer.parentNode.removeChild(s.spacer),e.parentNode.hasAttribute(r)||(n.css(e,e.___origStyle),delete e.___origStyle)),window.removeEventListener("scroll",rt),window.removeEventListener("resize",rt),window.removeEventListener("resize",vt),e.removeEventListener("mousewheel",ut),e.removeEventListener("DOMMouseScroll",ut),e=void 0),f},d=[],f.on("destroy.internal",function(n){f.removeClassToggle(n.reset)}),this.setClassToggle=function(t,i){var r=n.get.elements(t);return 0!==r.length&&n.type.String(i)&&(0<d.length&&f.removeClassToggle(),ft=i,d=r,f.on("enter.internal_class leave.internal_class",function(t){var i="enter"===t.type?n.addClass:n.removeClass;d.forEach(function(n){i(n,ft)})})),f},this.removeClassToggle=function(t){return t&&d.forEach(function(t){n.removeClass(t,ft)}),f.off("start.internal_class end.internal_class"),ft=void 0,d=[],f},function(){var n,t;for(n in h)tt.hasOwnProperty(n)||delete h[n];for(t in tt)yt(t);st()}(),f},i={defaults:{duration:0,offset:0,triggerElement:void 0,triggerHook:.5,reverse:!0,loglevel:2},validate:{offset:function(t){if(t=parseFloat(t),!n.type.Number(t))throw 0;return t},triggerElement:function(t){if(t=t||void 0){var i=n.get.elements(t)[0];if(!i||!i.parentNode)throw 0;t=i}return t},triggerHook:function(t){var i={onCenter:.5,onEnter:1,onLeave:0};if(n.type.Number(t))t=Math.max(0,Math.min(parseFloat(t),1));else{if(!(t in i))throw 0;t=i[t]}return t},reverse:function(n){return!!n}},shifts:["duration","offset","triggerHook"]},t.Scene.addOption=function(n,t,r,u){n in i.defaults||(i.defaults[n]=t,i.validate[n]=r,u&&i.shifts.push(n))},t.Scene.extend=function(i){var r=this;t.Scene=function(){return r.apply(this,arguments),this.$super=n.extend({},this),i.apply(this,arguments)||this},n.extend(t.Scene,r),t.Scene.prototype=r.prototype,t.Scene.prototype.constructor=t.Scene},t.Event=function(n,t,i,r){for(var u in r=r||{})this[u]=r[u];return this.type=n,this.target=this.currentTarget=i,this.namespace=t||"",this.timeStamp=this.timestamp=Date.now(),this},n=t._util=function(n){function e(n){return parseFloat(n)||0}function s(t){return t.currentStyle?t.currentStyle:n.getComputedStyle(t)}function l(i,r,u,f){if((r=r===document?n:r)===n)f=!1;else if(!t.DomElement(r))return 0;i=i[0].toUpperCase()+i.substr(1).toLowerCase();var o,h=(u?r["offset"+i]||r["outer"+i]:r["client"+i]||r["inner"+i])||0;return u&&f&&(o=s(r),h+="Height"===i?e(o.marginTop)+e(o.marginBottom):e(o.marginLeft)+e(o.marginRight)),h}function h(n){return n.replace(/^[^a-z]+([a-z])/g,"$1").replace(/-([a-z])/g,function(n){return n[1].toUpperCase()})}var r={},t,u;r.extend=function(n){for(n=n||{},i=1;i<arguments.length;i++)if(arguments[i])for(var t in arguments[i])arguments[i].hasOwnProperty(t)&&(n[t]=arguments[i][t]);return n},r.isMarginCollapseType=function(n){return!!~["block","flex","list-item","table","-webkit-box"].indexOf(n)};for(var a=0,c=["ms","moz","webkit","o"],f=n.requestAnimationFrame,o=n.cancelAnimationFrame,i=0;!f&&i<4;++i)f=n[c[i]+"RequestAnimationFrame"],o=n[c[i]+"CancelAnimationFrame"]||n[c[i]+"CancelRequestAnimationFrame"];return f=f||function(t){var i=+new Date,r=Math.max(0,16-(i-a)),u=n.setTimeout(function(){t(i+r)},r);return a=i+r,u},o=o||function(t){n.clearTimeout(t)},r.rAF=f.bind(n),r.cAF=o.bind(n),t=r.type=function(n){return Object.prototype.toString.call(n).replace(/^\[object (.+)\]$/,"$1").toLowerCase()},t.String=function(n){return"string"===t(n)},t.Function=function(n){return"function"===t(n)},t.Array=function(n){return Array.isArray(n)},t.Number=function(n){return!t.Array(n)&&0<=n-parseFloat(n)+1},t.DomElement=function(n){return"object"==typeof HTMLElement||"function"==typeof HTMLElement?n instanceof HTMLElement||n instanceof SVGElement:n&&"object"==typeof n&&null!==n&&1===n.nodeType&&"string"==typeof n.nodeName},u=r.get={},u.elements=function(i){var r=[],f,o,e;if(t.String(i))try{i=document.querySelectorAll(i)}catch(i){return r}if("nodelist"===t(i)||t.Array(i)||i instanceof NodeList)for(f=0,o=r.length=i.length;f<o;f++)e=i[f],r[f]=t.DomElement(e)?e:u.elements(e);else(t.DomElement(i)||i===document||i===n)&&(r=[i]);return r},u.scrollTop=function(t){return t&&"number"==typeof t.scrollTop?t.scrollTop:n.pageYOffset||0},u.scrollLeft=function(t){return t&&"number"==typeof t.scrollLeft?t.scrollLeft:n.pageXOffset||0},u.width=function(n,t,i){return l("width",n,t,i)},u.height=function(n,t,i){return l("height",n,t,i)},u.offset=function(n,t){var r,i={top:0,left:0};return n&&n.getBoundingClientRect&&(r=n.getBoundingClientRect(),i.top=r.top,i.left=r.left,t||(i.top+=u.scrollTop(),i.left+=u.scrollLeft())),i},r.addClass=function(n,t){t&&(n.classList?n.classList.add(t):n.className+=" "+t)},r.removeClass=function(n,t){t&&(n.classList?n.classList.remove(t):n.className=n.className.replace(RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," "))},r.css=function(n,i){var u,e,f,r;if(t.String(i))return s(n)[h(i)];if(t.Array(i))return u={},e=s(n),i.forEach(function(n){u[n]=e[h(n)]}),u;for(f in i)r=i[f],r==parseFloat(r)&&(r+="px"),n.style[h(f)]=r},r}(window||{}),t}),!function(n){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.enquire=n()}}(function(){return function n(t,i,r){function u(f,o){var h,c,s;if(!i[f]){if(!t[f]){if(h="function"==typeof require&&require,!o&&h)return h(f,!0);if(e)return e(f,!0);c=new Error("Cannot find module '"+f+"'");throw c.code="MODULE_NOT_FOUND",c;}s=i[f]={exports:{}},t[f][0].call(s.exports,function(n){var i=t[f][1][n];return u(i?i:n)},s,s.exports,n,t,i,r)}return i[f].exports}for(var e="function"==typeof require&&require,f=0;f<r.length;f++)u(r[f]);return u}({1:[function(n,t){function r(n,t){this.query=n,this.isUnconditional=t,this.handlers=[],this.mql=window.matchMedia(n);var i=this;this.listener=function(n){i.mql=n.currentTarget||n,i.assess()},this.mql.addListener(this.listener)}var f=n(3),u=n(4).each;r.prototype={constuctor:r,addHandler:function(n){var t=new f(n);this.handlers.push(t),this.matches()&&t.on()},removeHandler:function(n){var t=this.handlers;u(t,function(i,r){if(i.equals(n))return i.destroy(),!t.splice(r,1)})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){u(this.handlers,function(n){n.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var n=this.matches()?"on":"off";u(this.handlers,function(t){t[n]()})}},t.exports=r},{3:3,4:4}],2:[function(n,t){function r(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}var e=n(1),u=n(4),o=u.each,f=u.isFunction,s=u.isArray;r.prototype={constructor:r,register:function(n,t,i){var r=this.queries,u=i&&this.browserIsIncapable;return r[n]||(r[n]=new e(n,u)),f(t)&&(t={match:t}),s(t)||(t=[t]),o(t,function(t){f(t)&&(t={match:t}),r[n].addHandler(t)}),this},unregister:function(n,t){var i=this.queries[n];return i&&(t?i.removeHandler(t):(i.clear(),delete this.queries[n])),this}},t.exports=r},{1:1,4:4}],3:[function(n,t){function r(n){this.options=n,n.deferSetup||this.setup()}r.prototype={constructor:r,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){this.initialised||this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(n){return this.options===n||this.options.match===n}},t.exports=r},{}],4:[function(n,t){function r(n,t){var i=0,r=n.length;for(i;i<r&&t(n[i],i)!==!1;i++);}function u(n){return"[object Array]"===Object.prototype.toString.apply(n)}function f(n){return"function"==typeof n}t.exports={isFunction:f,isArray:u,each:r}},{}],5:[function(n,t){var r=n(2);t.exports=new r},{2:2}]},{},[5])(5)}),"undefined"==typeof jQuery)throw new Error("Bootstrap requires jQuery");+function(n){"use strict";function t(){var i=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},n;for(n in t)if(void 0!==i.style[n])return{end:t[n]}}n.fn.emulateTransitionEnd=function(t){var i=!1,u=this,r;n(this).one(n.support.transition.end,function(){i=!0});return r=function(){i||n(u).trigger(n.support.transition.end)},setTimeout(r,t),this},n(function(){n.support.transition=t()})}(window.jQuery),+function(n){"use strict";var i='[data-dismiss="alert"]',t=function(t){n(t).on("click",i,this.close)},r;t.prototype.close=function(t){function f(){i.trigger("closed.bs.alert").remove()}var u=n(this),r=u.attr("data-target"),i;r||(r=u.attr("href"),r=r&&r.replace(/.*(?=#[^\s]*$)/,"")),i=n(r),t&&t.preventDefault(),i.length||(i=u.hasClass("alert")?u:u.parent()),i.trigger(t=n.Event("close.bs.alert")),t.isDefaultPrevented()||(i.removeClass("in"),n.support.transition&&i.hasClass("fade")?i.one(n.support.transition.end,f).emulateTransitionEnd(150):f())},r=n.fn.alert,n.fn.alert=function(i){return this.each(function(){var r=n(this),u=r.data("bs.alert");u||r.data("bs.alert",u=new t(this)),"string"==typeof i&&u[i].call(r)})},n.fn.alert.Constructor=t,n.fn.alert.noConflict=function(){return n.fn.alert=r,this},n(document).on("click.bs.alert.data-api",i,t.prototype.close)}(window.jQuery),+function(n){"use strict";var t=function(i,r){this.$element=n(i),this.options=n.extend({},t.DEFAULTS,r)},i;t.DEFAULTS={loadingText:"loading..."},t.prototype.setState=function(n){var i="disabled",t=this.$element,r=t.is("input")?"val":"html",u=t.data();n+="Text",u.resetText||t.data("resetText",t[r]()),t[r](u[n]||this.options[n]),setTimeout(function(){"loadingText"==n?t.addClass(i).attr(i,i):t.removeClass(i).removeAttr(i)},0)},t.prototype.toggle=function(){var n=this.$element.closest('[data-toggle="buttons"]'),t;n.length&&(t=this.$element.find("input").prop("checked",!this.$element.hasClass("active")).trigger("change"),"radio"===t.prop("type")&&n.find(".active").removeClass("active")),this.$element.toggleClass("active")},i=n.fn.button,n.fn.button=function(i){return this.each(function(){var u=n(this),r=u.data("bs.button"),f="object"==typeof i&&i;r||u.data("bs.button",r=new t(this,f)),"toggle"==i?r.toggle():i&&r.setState(i)})},n.fn.button.Constructor=t,n.fn.button.noConflict=function(){return n.fn.button=i,this},n(document).on("click.bs.button.data-api","[data-toggle^=button]",function(t){var i=n(t.target);i.hasClass("btn")||(i=i.closest(".btn")),i.button("toggle"),t.preventDefault()})}(window.jQuery),+function(n){"use strict";var t=function(t,i){this.$element=n(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=i,this.paused=this.sliding=this.interval=this.$active=this.$items=null,"hover"==this.options.pause&&this.$element.on("mouseenter",n.proxy(this.pause,this)).on("mouseleave",n.proxy(this.cycle,this))},i;t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0},t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(n.proxy(this.next,this),this.options.interval)),this},t.prototype.getActiveIndex=function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},t.prototype.to=function(t){var r=this,i=this.getActiveIndex();if(!(t>this.$items.length-1)&&!(0>t))return this.sliding?this.$element.one("slid",function(){r.to(t)}):i==t?this.pause().cycle():this.slide(t>i?"next":"prev",n(this.$items[t]))},t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&n.support.transition.end&&(this.$element.trigger(n.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},t.prototype.next=function(){if(!this.sliding)return this.slide("next")},t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},t.prototype.slide=function(t,i){var u=this.$element.find(".item.active"),r=i||u[t](),s=this.interval,f="next"==t?"left":"right",h="next"==t?"first":"last",o=this,e;if(!r.length){if(!this.options.wrap)return;r=this.$element.find(".item")[h]()}if(this.sliding=!0,s&&this.pause(),e=n.Event("slide.bs.carousel",{relatedTarget:r[0],direction:f}),!r.hasClass("active")){if(this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid",function(){var t=n(o.$indicators.children()[o.getActiveIndex()]);t&&t.addClass("active")})),n.support.transition&&this.$element.hasClass("slide")){if(this.$element.trigger(e),e.isDefaultPrevented())return;r.addClass(t),r[0].offsetWidth,u.addClass(f),r.addClass(f),u.one(n.support.transition.end,function(){r.removeClass([t,f].join(" ")).addClass("active"),u.removeClass(["active",f].join(" ")),o.sliding=!1,setTimeout(function(){o.$element.trigger("slid")},0)}).emulateTransitionEnd(600)}else{if(this.$element.trigger(e),e.isDefaultPrevented())return;u.removeClass("active"),r.addClass("active"),this.sliding=!1,this.$element.trigger("slid")}return s&&this.cycle(),this}},i=n.fn.carousel,n.fn.carousel=function(i){return this.each(function(){var u=n(this),r=u.data("bs.carousel"),f=n.extend({},t.DEFAULTS,u.data(),"object"==typeof i&&i),e="string"==typeof i?i:f.slide;r||u.data("bs.carousel",r=new t(this,f)),"number"==typeof i?r.to(i):e?r[e]():f.interval&&r.pause().cycle()})},n.fn.carousel.Constructor=t,n.fn.carousel.noConflict=function(){return n.fn.carousel=i,this},n(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(t){var f,i=n(this),r=n(i.attr("data-target")||(f=i.attr("href"))&&f.replace(/.*(?=#[^\s]+$)/,"")),e=n.extend({},r.data(),i.data()),u=i.attr("data-slide-to");u&&(e.interval=!1),r.carousel(e),(u=i.attr("data-slide-to"))&&r.data("bs.carousel").to(u),t.preventDefault()}),n(window).on("load",function(){n('[data-ride="carousel"]').each(function(){var t=n(this);t.carousel(t.data())})})}(window.jQuery),+function(n){"use strict";var t=function(i,r){this.$element=n(i),this.options=n.extend({},t.DEFAULTS,r),this.transitioning=null,this.options.parent&&(this.$parent=n(this.options.parent)),this.options.toggle&&this.toggle()},i;t.DEFAULTS={toggle:!0},t.prototype.dimension=function(){var n=this.$element.hasClass("width");return n?"width":"height"},t.prototype.show=function(){var u,t,r,i,f,e;if(!this.transitioning&&!this.$element.hasClass("in")&&(u=n.Event("show.bs.collapse"),this.$element.trigger(u),!u.isDefaultPrevented())){if(t=this.$parent&&this.$parent.find("> .panel > .in"),t&&t.length){if(r=t.data("bs.collapse"),r&&r.transitioning)return;t.collapse("hide"),r||t.data("bs.collapse",null)}if(i=this.dimension(),this.$element.removeClass("collapse").addClass("collapsing")[i](0),this.transitioning=1,f=function(){this.$element.removeClass("collapsing").addClass("in")[i]("auto"),this.transitioning=0,this.$element.trigger("shown.bs.collapse")},!n.support.transition)return f.call(this);e=n.camelCase(["scroll",i].join("-")),this.$element.one(n.support.transition.end,n.proxy(f,this)).emulateTransitionEnd(350)[i](this.$element[0][e])}},t.prototype.hide=function(){var i,t,r;if(!this.transitioning&&this.$element.hasClass("in")&&(i=n.Event("hide.bs.collapse"),this.$element.trigger(i),!i.isDefaultPrevented()))return t=this.dimension(),this.$element[t](this.$element[t]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1,r=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")},n.support.transition?(this.$element[t](0).one(n.support.transition.end,n.proxy(r,this)).emulateTransitionEnd(350),void 0):r.call(this)},t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},i=n.fn.collapse,n.fn.collapse=function(i){return this.each(function(){var r=n(this),u=r.data("bs.collapse"),f=n.extend({},t.DEFAULTS,r.data(),"object"==typeof i&&i);u||r.data("bs.collapse",u=new t(this,f)),"string"==typeof i&&u[i]()})},n.fn.collapse.Constructor=t,n.fn.collapse.noConflict=function(){return n.fn.collapse=i,this},n(document).on("click.bs.collapse.data-api","[data-toggle=collapse]",function(t){var e,i=n(this),s=i.attr("data-target")||t.preventDefault()||(e=i.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,""),r=n(s),u=r.data("bs.collapse"),h=u?"toggle":i.data(),f=i.attr("data-parent"),o=f&&n(f);u&&u.transitioning||(o&&o.find('[data-toggle=collapse][data-parent="'+f+'"]').not(i).addClass("collapsed"),i[r.hasClass("in")?"addClass":"removeClass"]("collapsed")),r.collapse(h)})}(window.jQuery),+function(n){"use strict";function r(){n(e).remove(),n(i).each(function(t){var i=u(n(this));i.hasClass("open")&&(i.trigger(t=n.Event("hide.bs.dropdown")),t.isDefaultPrevented()||i.removeClass("open").trigger("hidden.bs.dropdown"))})}function u(t){var i=t.attr("data-target"),r;return i||(i=t.attr("href"),i=i&&/#/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,"")),r=i&&n(i),r&&r.length?r:t.parent()}var e=".dropdown-backdrop",i="[data-toggle=dropdown]",t=function(t){n(t).on("click.bs.dropdown",this.toggle)},f;t.prototype.toggle=function(t){var f=n(this),i,e;if(!f.is(".disabled, :disabled")){if(i=u(f),e=i.hasClass("open"),r(),!e){if("ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length&&n('<div class="dropdown-backdrop"/>').insertAfter(n(this)).on("click",r),i.trigger(t=n.Event("show.bs.dropdown")),t.isDefaultPrevented())return;i.toggleClass("open").trigger("shown.bs.dropdown"),f.focus()}return!1}},t.prototype.keydown=function(t){var e,o,s,f,r;if(/(38|40|27)/.test(t.keyCode)&&(e=n(this),t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled"))){if(o=u(e),s=o.hasClass("open"),!s||s&&27==t.keyCode)return 27==t.which&&o.find(i).focus(),e.click();f=n("[role=menu] li:not(.divider):visible a",o),f.length&&(r=f.index(f.filter(":focus")),38==t.keyCode&&r>0&&r--,40==t.keyCode&&r<f.length-1&&r++,~r||(r=0),f.eq(r).focus())}},f=n.fn.dropdown,n.fn.dropdown=function(i){return this.each(function(){var r=n(this),u=r.data("dropdown");u||r.data("dropdown",u=new t(this)),"string"==typeof i&&u[i].call(r)})},n.fn.dropdown.Constructor=t,n.fn.dropdown.noConflict=function(){return n.fn.dropdown=f,this},n(document).on("click.bs.dropdown.data-api",r).on("click.bs.dropdown.data-api",".dropdown form",function(n){n.stopPropagation()}).on("click.bs.dropdown.data-api",i,t.prototype.toggle).on("keydown.bs.dropdown.data-api",i+", [role=menu]",t.prototype.keydown)}(window.jQuery),+function(n){"use strict";var t=function(t,i){this.options=i,this.$element=n(t),this.$backdrop=this.isShown=null,this.options.remote&&this.$element.load(this.options.remote)},i;t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},t.prototype.toggle=function(n){return this[this.isShown?"hide":"show"](n)},t.prototype.show=function(t){var i=this,r=n.Event("show.bs.modal",{relatedTarget:t});this.$element.trigger(r),this.isShown||r.isDefaultPrevented()||(this.isShown=!0,this.escape(),this.$element.on("click.dismiss.modal",'[data-dismiss="modal"]',n.proxy(this.hide,this)),this.backdrop(function(){var u=n.support.transition&&i.$element.hasClass("fade"),r;i.$element.parent().length||i.$element.appendTo(document.body),i.$element.show(),u&&i.$element[0].offsetWidth,i.$element.addClass("in").attr("aria-hidden",!1),i.enforceFocus(),r=n.Event("shown.bs.modal",{relatedTarget:t}),u?i.$element.find(".modal-dialog").one(n.support.transition.end,function(){i.$element.focus().trigger(r)}).emulateTransitionEnd(300):i.$element.focus().trigger(r)}))},t.prototype.hide=function(t){t&&t.preventDefault(),t=n.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),n(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.modal"),n.support.transition&&this.$element.hasClass("fade")?this.$element.one(n.support.transition.end,n.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())},t.prototype.enforceFocus=function(){n(document).off("focusin.bs.modal").on("focusin.bs.modal",n.proxy(function(n){this.$element[0]===n.target||this.$element.has(n.target).length||this.$element.focus()},this))},t.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.bs.modal",n.proxy(function(n){27==n.which&&this.hide()},this)):this.isShown||this.$element.off("keyup.dismiss.bs.modal")},t.prototype.hideModal=function(){var n=this;this.$element.hide(),this.backdrop(function(){n.removeBackdrop(),n.$element.trigger("hidden.bs.modal")})},t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},t.prototype.backdrop=function(t){var r=this.$element.hasClass("fade")?"fade":"",i;if(this.isShown&&this.options.backdrop){if(i=n.support.transition&&r,this.$backdrop=n('<div class="modal-backdrop '+r+'" />').appendTo(document.body),this.$element.on("click.dismiss.modal",n.proxy(function(n){n.target===n.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;i?this.$backdrop.one(n.support.transition.end,t).emulateTransitionEnd(150):t()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),n.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(n.support.transition.end,t).emulateTransitionEnd(150):t()):t&&t()},i=n.fn.modal,n.fn.modal=function(i,r){return this.each(function(){var f=n(this),u=f.data("bs.modal"),e=n.extend({},t.DEFAULTS,f.data(),"object"==typeof i&&i);u||f.data("bs.modal",u=new t(this,e)),"string"==typeof i?u[i](r):e.show&&u.show(r)})},n.fn.modal.Constructor=t,n.fn.modal.noConflict=function(){return n.fn.modal=i,this},n(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var i=n(this),r=i.attr("href"),u=n(i.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,"")),f=u.data("modal")?"toggle":n.extend({remote:!/#/.test(r)&&r},u.data(),i.data());t.preventDefault(),u.modal(f,this).one("hide",function(){i.is(":visible")&&i.focus()})}),n(document).on("show.bs.modal",".modal",function(){n(document.body).addClass("modal-open")}).on("hidden.bs.modal",".modal",function(){n(document.body).removeClass("modal-open")})}(window.jQuery),+function(n){"use strict";var t=function(n,t){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",n,t)},i;t.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip"><div class="tooltip-arrow"><\/div><div class="tooltip-inner"><\/div><\/div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1},t.prototype.init=function(t,i,r){var f,e,u,o,s;for(this.enabled=!0,this.type=t,this.$element=n(i),this.options=this.getOptions(r),f=this.options.trigger.split(" "),e=f.length;e--;)if(u=f[e],"click"==u)this.$element.on("click."+this.type,this.options.selector,n.proxy(this.toggle,this));else"manual"!=u&&(o="hover"==u?"mouseenter":"focus",s="hover"==u?"mouseleave":"blur",this.$element.on(o+"."+this.type,this.options.selector,n.proxy(this.enter,this)),this.$element.on(s+"."+this.type,this.options.selector,n.proxy(this.leave,this)));this.options.selector?this._options=n.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.getOptions=function(t){return t=n.extend({},this.getDefaults(),this.$element.data(),t),t.delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},t.prototype.getDelegateOptions=function(){var t={},i=this.getDefaults();return this._options&&n.each(this._options,function(n,r){i[n]!=r&&(t[n]=r)}),t},t.prototype.enter=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);return clearTimeout(i.timeout),i.hoverState="in",i.options.delay&&i.options.delay.show?(i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show),void 0):i.show()},t.prototype.leave=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);return clearTimeout(i.timeout),i.hoverState="out",i.options.delay&&i.options.delay.hide?(i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide),void 0):i.hide()},t.prototype.show=function(){var o=n.Event("show.bs."+this.type),i,l;if(this.hasContent()&&this.enabled){if(this.$element.trigger(o),o.isDefaultPrevented())return;i=this.tip(),this.setContent(),this.options.animation&&i.addClass("fade");var t="function"==typeof this.options.placement?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,s=/\s?auto?\s?/i,h=s.test(t);h&&(t=t.replace(s,"")||"top"),i.detach().css({top:0,left:0,display:"block"}).addClass(t),this.options.container?i.appendTo(this.options.container):i.insertAfter(this.$element);var r=this.getPosition(),u=i[0].offsetWidth,f=i[0].offsetHeight;if(h){var e=this.$element.parent(),a=t,c=document.documentElement.scrollTop||document.body.scrollTop,v="body"==this.options.container?window.innerWidth:e.outerWidth(),y="body"==this.options.container?window.innerHeight:e.outerHeight(),p="body"==this.options.container?0:e.offset().left;t="bottom"==t&&r.top+r.height+f-c>y?"top":"top"==t&&r.top-c-f<0?"bottom":"right"==t&&r.right+u>v?"left":"left"==t&&r.left-u<p?"right":t,i.removeClass(a).addClass(t)}l=this.getCalculatedOffset(t,r,u,f),this.applyPlacement(l,t),this.$element.trigger("shown.bs."+this.type)}},t.prototype.applyPlacement=function(n,t){var h,i=this.tip(),c=i[0].offsetWidth,f=i[0].offsetHeight,e=parseInt(i.css("margin-top"),10),o=parseInt(i.css("margin-left"),10),u,r,s;isNaN(e)&&(e=0),isNaN(o)&&(o=0),n.top=n.top+e,n.left=n.left+o,i.offset(n).addClass("in"),u=i[0].offsetWidth,r=i[0].offsetHeight,("top"==t&&r!=f&&(h=!0,n.top=n.top+f-r),/bottom|top/.test(t))?(s=0,n.left<0&&(s=-2*n.left,n.left=0,i.offset(n),u=i[0].offsetWidth,r=i[0].offsetHeight),this.replaceArrow(s-c+u,u,"left")):this.replaceArrow(r-f,r,"top"),h&&i.offset(n)},t.prototype.replaceArrow=function(n,t,i){this.arrow().css(i,n?50*(1-n/t)+"%":"")},t.prototype.setContent=function(){var n=this.tip(),t=this.getTitle();n.find(".tooltip-inner")[this.options.html?"html":"text"](t),n.removeClass("fade in top bottom left right")},t.prototype.hide=function(){function i(){"in"!=u.hoverState&&t.detach()}var u=this,t=this.tip(),r=n.Event("hide.bs."+this.type);return this.$element.trigger(r),r.isDefaultPrevented()?void 0:(t.removeClass("in"),n.support.transition&&this.$tip.hasClass("fade")?t.one(n.support.transition.end,i).emulateTransitionEnd(150):i(),this.$element.trigger("hidden.bs."+this.type),this)},t.prototype.fixTitle=function(){var n=this.$element;(n.attr("title")||"string"!=typeof n.attr("data-original-title"))&&n.attr("data-original-title",n.attr("title")||"").attr("title","")},t.prototype.hasContent=function(){return this.getTitle()},t.prototype.getPosition=function(){var t=this.$element[0];return n.extend({},"function"==typeof t.getBoundingClientRect?t.getBoundingClientRect():{width:t.offsetWidth,height:t.offsetHeight},this.$element.offset())},t.prototype.getCalculatedOffset=function(n,t,i,r){return"bottom"==n?{top:t.top+t.height,left:t.left+t.width/2-i/2}:"top"==n?{top:t.top-r,left:t.left+t.width/2-i/2}:"left"==n?{top:t.top+t.height/2-r/2,left:t.left-i}:{top:t.top+t.height/2-r/2,left:t.left+t.width}},t.prototype.getTitle=function(){var i,t=this.$element,n=this.options;return i=t.attr("data-original-title")||("function"==typeof n.title?n.title.call(t[0]):n.title)},t.prototype.tip=function(){return this.$tip=this.$tip||n(this.options.template)},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},t.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},t.prototype.enable=function(){this.enabled=!0},t.prototype.disable=function(){this.enabled=!1},t.prototype.toggleEnabled=function(){this.enabled=!this.enabled},t.prototype.toggle=function(t){var i=t?n(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type):this;i.tip().hasClass("in")?i.leave(i):i.enter(i)},t.prototype.destroy=function(){this.hide().$element.off("."+this.type).removeData("bs."+this.type)},i=n.fn.tooltip,n.fn.tooltip=function(i){return this.each(function(){var u=n(this),r=u.data("bs.tooltip"),f="object"==typeof i&&i;r||u.data("bs.tooltip",r=new t(this,f)),"string"==typeof i&&r[i]()})},n.fn.tooltip.Constructor=t,n.fn.tooltip.noConflict=function(){return n.fn.tooltip=i,this}}(window.jQuery),+function(n){"use strict";var t=function(n,t){this.init("popover",n,t)},i;if(!n.fn.tooltip)throw new Error("Popover requires tooltip.js");t.DEFAULTS=n.extend({},n.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover"><div class="arrow"><\/div><h3 class="popover-title"><\/h3><div class="popover-content"><\/div><\/div>'}),t.prototype=n.extend({},n.fn.tooltip.Constructor.prototype),t.prototype.constructor=t,t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.setContent=function(){var n=this.tip(),t=this.getTitle(),i=this.getContent();n.find(".popover-title")[this.options.html?"html":"text"](t),n.find(".popover-content")[this.options.html?"html":"text"](i),n.removeClass("fade top bottom left right in"),n.find(".popover-title").html()||n.find(".popover-title").hide()},t.prototype.hasContent=function(){return this.getTitle()||this.getContent()},t.prototype.getContent=function(){var t=this.$element,n=this.options;return t.attr("data-content")||("function"==typeof n.content?n.content.call(t[0]):n.content)},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},t.prototype.tip=function(){return this.$tip||(this.$tip=n(this.options.template)),this.$tip},i=n.fn.popover,n.fn.popover=function(i){return this.each(function(){var u=n(this),r=u.data("bs.popover"),f="object"==typeof i&&i;r||u.data("bs.popover",r=new t(this,f)),"string"==typeof i&&r[i]()})},n.fn.popover.Constructor=t,n.fn.popover.noConflict=function(){return n.fn.popover=i,this}}(window.jQuery),+function(n){"use strict";function t(i,r){var u,f=n.proxy(this.process,this);this.$element=n(i).is("body")?n(window):n(i),this.$body=n("body"),this.$scrollElement=this.$element.on("scroll.bs.scroll-spy.data-api",f),this.options=n.extend({},t.DEFAULTS,r),this.selector=(this.options.target||(u=n(i).attr("href"))&&u.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.offsets=n([]),this.targets=n([]),this.activeTarget=null,this.refresh(),this.process()}t.DEFAULTS={offset:10},t.prototype.refresh=function(){var i=this.$element[0]==window?"offset":"position",t;this.offsets=n([]),this.targets=n([]),t=this,this.$body.find(this.selector).map(function(){var f=n(this),r=f.data("target")||f.attr("href"),u=/^#\w/.test(r)&&n(r);return u&&u.length&&[[u[i]().top+(!n.isWindow(t.$scrollElement.get(0))&&t.$scrollElement.scrollTop()),r]]||null}).sort(function(n,t){return n[0]-t[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},t.prototype.process=function(){var n,i=this.$scrollElement.scrollTop()+this.options.offset,f=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,e=f-this.$scrollElement.height(),t=this.offsets,r=this.targets,u=this.activeTarget;if(i>=e)return u!=(n=r.last()[0])&&this.activate(n);for(n=t.length;n--;)u!=r[n]&&i>=t[n]&&(!t[n+1]||i<=t[n+1])&&this.activate(r[n])},t.prototype.activate=function(t){this.activeTarget=t,n(this.selector).parents(".active").removeClass("active");var r=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',i=n(r).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active")),i.trigger("activate")};var i=n.fn.scrollspy;n.fn.scrollspy=function(i){return this.each(function(){var u=n(this),r=u.data("bs.scrollspy"),f="object"==typeof i&&i;r||u.data("bs.scrollspy",r=new t(this,f)),"string"==typeof i&&r[i]()})},n.fn.scrollspy.Constructor=t,n.fn.scrollspy.noConflict=function(){return n.fn.scrollspy=i,this},n(window).on("load",function(){n('[data-spy="scroll"]').each(function(){var t=n(this);t.scrollspy(t.data())})})}(window.jQuery),+function(n){"use strict";var t=function(t){this.element=n(t)},i;t.prototype.show=function(){var t=this.element,e=t.closest("ul:not(.dropdown-menu)"),i=t.data("target"),r,u,f;(i||(i=t.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),t.parent("li").hasClass("active"))||(r=e.find(".active:last a")[0],u=n.Event("show.bs.tab",{relatedTarget:r}),(t.trigger(u),u.isDefaultPrevented())||(f=n(i),this.activate(t.parent("li"),e),this.activate(f,f.parent(),function(){t.trigger({type:"shown.bs.tab",relatedTarget:r})})))},t.prototype.activate=function(t,i,r){function f(){u.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),t.addClass("active"),e?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu")&&t.closest("li.dropdown").addClass("active"),r&&r()}var u=i.find("> .active"),e=r&&n.support.transition&&u.hasClass("fade");e?u.one(n.support.transition.end,f).emulateTransitionEnd(150):f(),u.removeClass("in")},i=n.fn.tab,n.fn.tab=function(i){return this.each(function(){var u=n(this),r=u.data("bs.tab");r||u.data("bs.tab",r=new t(this)),"string"==typeof i&&r[i]()})},n.fn.tab.Constructor=t,n.fn.tab.noConflict=function(){return n.fn.tab=i,this},n(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(t){t.preventDefault(),n(this).tab("show")})}(window.jQuery),+function(n){"use strict";var t=function(i,r){this.options=n.extend({},t.DEFAULTS,r),this.$window=n(window).on("scroll.bs.affix.data-api",n.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",n.proxy(this.checkPositionWithEventLoop,this)),this.$element=n(i),this.affixed=this.unpin=null,this.checkPosition()},i;t.RESET="affix affix-top affix-bottom",t.DEFAULTS={offset:0},t.prototype.checkPositionWithEventLoop=function(){setTimeout(n.proxy(this.checkPosition,this),1)},t.prototype.checkPosition=function(){var i;if(this.$element.is(":visible")){var s=n(document).height(),e=this.$window.scrollTop(),o=this.$element.offset(),r=this.options.offset,f=r.top,u=r.bottom;"object"!=typeof r&&(u=f=r),"function"==typeof f&&(f=r.top()),"function"==typeof u&&(u=r.bottom()),i=null!=this.unpin&&e+this.unpin<=o.top?!1:null!=u&&o.top+this.$element.height()>=s-u?"bottom":null!=f&&f>=e?"top":!1,this.affixed!==i&&(this.unpin&&this.$element.css("top",""),this.affixed=i,this.unpin="bottom"==i?o.top-e:null,this.$element.removeClass(t.RESET).addClass("affix"+(i?"-"+i:"")),"bottom"==i&&this.$element.offset({top:document.body.offsetHeight-u-this.$element.height()}))}},i=n.fn.affix,n.fn.affix=function(i){return this.each(function(){var u=n(this),r=u.data("bs.affix"),f="object"==typeof i&&i;r||u.data("bs.affix",r=new t(this,f)),"string"==typeof i&&r[i]()})},n.fn.affix.Constructor=t,n.fn.affix.noConflict=function(){return n.fn.affix=i,this},n(window).on("load",function(){n('[data-spy="affix"]').each(function(){var i=n(this),t=i.data();t.offset=t.offset||{},t.offsetBottom&&(t.offset.bottom=t.offsetBottom),t.offsetTop&&(t.offset.top=t.offsetTop),i.affix(t)})})}(window.jQuery);var windowWidth=$(window).width(),controller=new ScrollMagic.Controller;$(document).ready(function(){var f,n,t,e,i,o,u,r;$(".info-blocks > div > article").each(function(){var n=$(this);n.html().replace(/\s| /g,"").length==0&&n.hide()}),$('<div class="job-search-privacy"><p><u><i>Privacy Collection Notice<\/i><\/u><\/p><p><i>The Benevolent Society collects personal information about you in order to assist you with your job search enquiry and for purposes otherwise set out in our <a href="https://www.benevolent.org.au/about-us/legal-and-privacy-policy" target="_blank">privacy policy<\/a>.  The information you provide will be collected by or on behalf of us and may be shared with third parties that assist us in dealing with your enquiry. If you do not provide this information we may not be able to respond to your enquiry.<\/i><\/p><p><i>Our <a href="https://www.benevolent.org.au/about-us/legal-and-privacy-policy" target="_blank">privacy policy<\/a> explains: (i) how we store and use, and how you may access and correct your personal information; (ii) how you lodge a complaint regarding the handling of your personal information; and (iii) how we will handle any complaint. If you would like any further information about our privacy practices, please contact us <a href="mailto:privacy@benevolent.org.au">privacy@benevolent.org.au<\/a>.<\/i><\/p>').insertBefore(".ajb-search-widget .ajb-search-widget-buttons"),$("select.form-control").parent().addClass("select-field"),document.getElementById("Widget1597")&&$("#Widget1597 .metadata-level2").each(function(){var n='<p><a class="btn section" href="'+$(this).html()+'">View Newsletter online<\/a><\/p>';$(this).html(n),$(this).unwrap(),$(this).contents().unwrap()}),$("#banner-home.campaign .row.landingformHolder>div>div.form-bg").filter(function(){return $.trim($(this).html())===""}).remove(),$(".RefineWidgetLinkText").hasClass("RefineSelected")&&$("h1.title span").text($(".RefineWidgetLinkText.RefineSelected").text());$(".skip-link a").on("click",function(n){n.preventDefault();var t=$(this).attr("href");$("html,body").animate({scrollTop:$(t).offset().top-75},"slow"),$(t).attr("tabindex",-1).on("blur focusout",function(){$(this).removeAttr("tabindex")}).focus()});$("#header-search .form-control").attr("placeholder","Search site"),$("#header-search .form-control").attr("autocomplete","off"),$("#header-search #close-results").attr("href","#"),$("#main-nav .hmenu > li:not(.first) > a").each(function(){$(this).attr("aria-expanded","false"),$(this).attr("aria-haspopup","true"),$('<span class="toggle" aria-expanded="false" aria-haspopup="true"><span class="sr-only">toggle sub items<\/span><\/span>').insertAfter($(this))});$("#main-nav .hmenu > li > .toggle").on("click",function(){windowWidth<=1023&&($(this).parent().toggleClass("open"),$(this).attr("aria-expanded")=="false"?($(this).attr("aria-expanded","true"),$(this).next("ul").attr("aria-expanded","true").addClass("open")):($(this).attr("aria-expanded","false"),$(this).next("ul").attr("aria-expanded","false").removeClass("open")))});$("#main-nav .hmenu > li > ul").each(function(){$(this).attr("aria-expanded","false"),$(this).attr("aria-hidden","true")}),$("#main-nav .hmenu li.selected").parentsUntil(".hmenu").addClass("selected"),$("#main-nav .hmenu > li").hover(function(){windowWidth>1023&&($(this).addClass("open"),$(this).children("a").attr("aria-expanded","true"),$(this).children("ul").attr("aria-expanded","true").addClass("open"),$(this).children("ul").attr("aria-hidden","false"))},function(){windowWidth>1023&&($(this).removeClass("open"),$(this).children("a").attr("aria-expanded","false"),$(this).children("ul").attr("aria-expanded","false").removeClass("open"),$(this).children("ul").attr("aria-hidden","true"))}),$("#main-nav .hmenu > li").focusin(function(){windowWidth>1023&&($(this).addClass("open"),$(this).children("a").attr("aria-expanded","true"),$(this).children("ul").attr("aria-expanded","true").addClass("open"),$(this).children("ul").attr("aria-hidden","false"))}),$("#main-nav .hmenu > li").focusout(function(){windowWidth>1023&&($(this).removeClass("open"),$(this).children("a").attr("aria-expanded","false"),$(this).children("ul").attr("aria-expanded","false").removeClass("open"),$(this).children("ul").attr("aria-hidden","true"))});$("#header #site-tools .icon-eye").on("click",function(){$(this).toggleClass("active"),$("body").toggleClass("contrast"),$(this).attr("aria-pressed")=="false"?($(this).attr("aria-pressed","true"),Cookies.set("tbs-contrast","on")):($(this).attr("aria-pressed","false"),Cookies.set("tbs-contrast","off"))});$("#header #site-tools .icon-sound").on("click",function(){$(this).toggleClass("active"),$(this).attr("aria-pressed")=="false"?$(this).attr("aria-pressed","true"):$(this).attr("aria-pressed","false")});$("#header .icon-cog").on("click",function(){$(this).toggleClass("active"),$(this).attr("aria-pressed")=="false"?$(this).attr("aria-pressed","true"):$(this).attr("aria-pressed","false")});$("#toggle-menu").on("click",function(){$(this).children("span").toggleClass("hide")});$(".mobile-collapse").on("click",function(){$(this).toggleClass("open")});if(document.getElementById("LeftMenu")){$("#LeftMenu .panelbar a.MenuItemOne").each(function(){$(this).attr("href","#")});$("#LeftMenu .panelbar a.MenuItemOne").on("click",function(n){n.preventDefault()});$("#LeftMenu .panelbar a.MenuItemOne").on("webkitmouseforcewillbegin",function(n){n.preventDefault()});$("#LeftMenu .panelbar a.MenuItemOne").on("touchstart",function(n){n.preventDefault()})}$('iframe[src*="youtube.com"]').length>0&&($(".video").fitVids(),$('iframe[src*="youtube.com"]').parent().fitVids()),$("article.image").each(function(){var n=$(this).children("img:not(.img-hover)"),t="url("+n.attr("src")+")";$(this).css("background-image",t),n.hide(),$(this).find(".img-hover").length&&$(this).hover(function(){var n=$(this).children("img.img-hover"),t="url("+n.attr("src")+")";$(this).css("background-image",t),n.hide()},function(){var n=$(this).children("img:not(.img-hover)"),t="url("+n.attr("src")+")";$(this).css("background-image",t),n.hide()})}),$(".clsDateBox").addClass("notranslate").attr("translate","no"),setTimeout(function(){$(".ui-datepicker").addClass("notranslate").attr("translate","no")},2e3),$("section.image").each(function(){var n=$(this).find("img"),t="url("+n.attr("src")+")";$(this).css("background-image",t),n.remove()}),f=3,n=0,$(".fontChange").click(function(){var i=$("#page-content"),r=i.css("fontSize"),t=parseFloat(r,10),u=r.slice(-2);this.id=="large"&&n<f?(t*=1.1,n=n+1):this.id=="small"&&n>0&&(t/=1.1,n=n-1),i.css("fontSize",Math.round(t)+u)});$("#scroll-top a").on("click",function(n){n.preventDefault();var t=$(this).attr("href");$("html,body").animate({scrollTop:$(t).offset().top-75},"slow"),$(t).attr("tabindex",-1).on("blur focusout",function(){$(this).removeAttr("tabindex")}).focus()});if(document.getElementById("main")&&$("#main article").contents().length<5&&$("#main .ZoneContainer").length==0&&$("#main").hide(),document.getElementById("toc")){t='<nav role="navigation" class="table-of-contents border-top thin padding-top-mid padding-bottom-full"><h2>Jump to content on this page<\/h2><ul>',$('#content-area h2:not([class="no-toc"])').each(function(n){i=$(this),i.children("span.no-toc").length==0&&(o=i.text(),u="heading"+n,i.attr("id",u),e='<li><a href="#'+u+'">'+o+"<\/a><\/li>",t+=e)}),t+="<\/ul><\/nav>",$("#toc").prepend(t);$(".table-of-contents a").on("click",function(n){n.preventDefault();var t=$(this).attr("href");$("html,body").animate({scrollTop:$(t).offset().top-225},"slow"),$(t).attr("tabindex",-1).on("blur focusout",function(){$(this).removeAttr("tabindex")}).focus()})}$('#content-area a[href^="#"]').on("click",function(n){n.preventDefault();var t=$(this).attr("href");$("html,body").animate({scrollTop:$(t).offset().top-75},"slow"),$(t).attr("tabindex",-1).on("blur focusout",function(){$(this).removeAttr("tabindex")}).focus()});document.getElementById("Widget616")&&(r=window.location.href,$("#Widget616 ul li a").each(function(){$(this).attr("href")==r&&$(this).parent().addClass("current")})),document.getElementById("Widget1124")&&(r=window.location.href,$("#Widget1124 ul li a").each(function(){$(this).attr("href")==r&&$(this).parent().addClass("current")})),$(".content-area .table").each(function(){$(this).wrap('<div class="table-responsive"><\/div>')}),document.getElementById("main-nav")&&windowWidth>1023&&document.getElementById("page-content")&&new ScrollMagic.Scene({triggerElement:"#page-content",triggerHook:"onLeave"}).setClassToggle("body","stick").addTo(controller),document.getElementById("searchResultsInfo")&&($(".SearchLeft").addClass("col-lg-4 col-md-4 col-sm-12 col-xs-12 no-padding-left"),$(".SearchLeft #TBRefineHead").addClass("bg section lighter padding-all-mid smaller"),$(".SearchResults").addClass("col-lg-8 col-md-8 col-sm-12 col-xs-12 no-padding-right padding-bottom-full")),document.getElementById("filter-taxon")&&$(".refinewidget:not(.refine-search)").each(function(){$(this).insertBefore("#filter-taxon > p")}),document.getElementById("filter-search")&&$(".refine-search").each(function(){$(this).appendTo("#filter-search")}),document.getElementById("funding-other")&&$("#funding-other ul").length<1&&$("#funding-other").hide(),document.getElementById("widget-team")&&$("#widget-team .custom-metadata").each(function(){$(this).children("li").length==1?$(this).children("li").addClass("pop"):$(this).children("li").eq(1).addClass("pop")}),document.getElementById("divDocListResults")&&($("#divDocListResults .clsSearchParameters").removeClass("form-inline").addClass("padding-all-mid bg section border-rad margin-bottom"),$("#divDocListResults .clsSearchParameters .search-parameters").removeClass("col-lg-3 col-md-3 col-sm-6 col-xs-12"),$("#divDocListResults .clsSearchParameters .clsFormResultsSearchButton").removeClass("col-lg-12 col-md-12 col-sm-12 col-xs-12"),$("#divDocListResults .clsSearchParameters .clsFormResultsSearchButton .btn").addClass("inverse"),$("#divDocListResults #tableDocList_filter").addClass("padding-all-mid bg section border-rad margin-bottom"),$("#divDocListResults #tableDocList_filter input").addClass("form-control")),document.getElementById("ratings")&&$(".RatingContainer > ul > li > a").each(function(){$(this).attr("role","button")}),document.getElementById("related-content")&&$("#related-content .rss article").each(function(){$(this).find("img").unwrap(),$(this).find("p:last a").removeClass("btn").addClass("entire").wrapInner('<span class="btn"><\/span>')}),$(".mejs-container").each(function(){$(this).parent().addClass("mejs-wrapper")}),$(".clsMandatory:contains('*')").html(function(n,t){return t.split("*").join("<span class='mandatory-indictator'>*<\/span>")}),$("section.customErrorpage").length>0&&$("nav#main-nav").addClass("noSubmenu"),$("#banner-home .form-bg").children().length==0&&$(".form-bg").hide()}),$("#main-nav .hmenu li.iFOL234 a").attr("href","/services-and-programs/disability-services/disability-services-in-australia"),$("#related-content .row").not(':has("div.rss")').parents("#related-content").hide(),$("#section-nav > div").filter(function(){return $.trim($(this).html())===""}).hide(),$(".specialtywidget .item ul.custom-metadata li.metadata-level2").each(function(){var n=$(this).text();$(this).parent().parent().parent().addClass(n)}),DOB(),repeatFieldCare(),repeatFieldDelete(),DOB();$(".Fieldset_About-the-Care-Recipient #repeat-add").on("click",function(){repeatFieldCare(),setTimeout(function(){repeatFieldDelete(),DOB()},1e3)});$("#main-nav .hmenu li.iFOL234 a").attr("href","/services-and-programs/disability-services/disability-services-in-australia"),$(".btn-expression a").length>0&&$(".btn-expression a").appendTo(".ajb-search-widget-buttons"),$('.clsFormCreator  div[id$="userfeedback"].feedback.error-message').length&&$("html, body").animate({scrollTop:$('.clsFormCreator  div[id$="userfeedback"].feedback.error-message').offset().top-236},1e3),$("#main-nav .hmenu li.iFOL234 a").attr("href","/services-and-programs/disability-services/disability-services-in-australia"),enquire.register("screen and (max-width:1023px)",{match:function(){$("#contact-btn").insertAfter($("#site-nav")),$("#header-donate").insertAfter($("#site-nav")),$("#header-search").insertBefore($("#site-nav"))},unmatch:function(){$("#contact-btn").appendTo($("#header > div:eq(2) > .row > div:eq(0)")),$("#header-donate").appendTo($("#header > div:eq(2) > .row > div:eq(2)")),$("#header-search").appendTo($("#header > div:eq(2) > .row > div:eq(2)"))}}),enquire.register("screen and (max-width:991px)",{match:function(){$("#toczone #section-nav").appendTo("#toczone"),$(".mediaSidebar .mediawid-movetop").prependTo(".mediawidgetmobile")},unmatch:function(){$("#toczone #section-nav").prependTo("#toczone"),$(".mediawidgetmobile .mediawid-movetop").prependTo(".mediaSidebar")}}),$(window).resize(function(){windowWidth=$(window).width()}),$(document).keyup(function(n){windowWidth<=1023&&n.keyCode==27&&$("#main-nav").hasClass("in")&&$("#toggle-menu").trigger("click")});$(window).on("load",function(){if(DOB(),window.location.hash){var n=window.location.hash;$(n).length&&$("html, body").animate({scrollTop:$(n).offset().top-75},500,"swing")}})