/*! (c) Blackbaud - JavaScript Namespace v1.1.0 */(function(t){Function.prototype.bind||(Function.prototype.bind=function(e){if("function"!==typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var d=Array.prototype.slice.call(arguments,1),n=this,h=function(){},l=function(){return n.apply(this instanceof h&&e?this:e,d.concat(Array.prototype.slice.call(arguments)))};h.prototype=this.prototype;l.prototype=new h;return l});(function(e){function d(b,a){for(var c in g)delete g[c];g=b;for(var d in a)g[d]= a[d];return g}function n(b,a){if("function"===typeof a)return m[b].push(a),g}function h(c){d(a,{defaults:function(a,g){return f.bind(b).call({},a,g)||!1},options:function(a,b){return f.bind(q).call({},a,b)||!1},settings:function(a,b){return f.bind(r).call({},a,b)||!1},on:n,trigger:l});q="object"===typeof c?c:{};l("preload");k=g.jQuery();r=k.extend(!0,{},b,q);l("init");if("object"===typeof e[r.alias]){c=e[r.alias];for(var h in c)g.hasOwnProperty(h)||(g[h]=c[h]);delete e[r.alias];g.log("[BBI.core.Start] An instance of "+ r.alias+" already exists on the page. For now, the namespace will extend itself to the existing reference; however, it may be a good idea to provide a custom alias to the namespace's initializing function. For example: bbi.init({ alias: 'NewBBI' }).",!1)}e[r.alias]=g;g.isDebugMode()&&g.log("Blackbaud JavaScript namespace set to: window."+r.alias,!1);delete g.on;l("complete")}function l(a,b){if("undefined"!==typeof m[a]){var c=m[a],d=c.length,f;for(f=0;fg&&(d=g/100);var f=0,h=function(){e.setTimeout(function(){if(f++>d)return!1;0";g.length?c(g).append(d):c(f.bbiLogPrependSelector).prepend('

'+f.bbiLogContainerTitle+'

    '+d+'

'+f.bbiLogContainerDisclaimer+"

")}},preparePage:function(){var a=e.document.getElementsByTagName("body")[0],b=k.isPageEditor()?"isEditor":"isViewer";!0===k.isAdminView()&&(b+=" isAdmin");!0===k.isDebugMode()&&(b+=" isDebug"); a.className+=(""==a.className?"":" ")+b;f.loadBBIStyles&&(e.document.createStyleSheet?e.document.createStyleSheet(f.bbiStylesHref):c("head").append(''),!0===k.isDebugMode()&&k.log("BBI stylesheet loaded.",!1))},safeConsole:function(){e.log=function(){log.history=log.history||[];log.history.push(arguments);if(e.console){arguments.callee=arguments.callee.caller;var a=[].slice.call(arguments);"object"===typeof console.log?log.apply.call(console.log, console,a):console.log.apply(console,a)}};var a;try{console.log(),a=e.console}catch(b){a=e.console={}}(function(a){for(var b,c="assert count debug dir dirxml error exception group groupCollapsed groupEnd info log timeStamp profile profileEnd time timeEnd trace warn".split(" "),d=function(){};b=c.pop();)a[b]=a[b]||d})(a)},signGuestBook:function(a){"string"!==typeof a&&(a="namespace");encodeURIComponent(a)}};k.info.version=l.settings("version");(function(){k.signGuestBook();k.safeConsole();k.isPageEditor(); l.jQuery()(function(){k.isAdminView();k.preparePage()})})();return{info:k.info,isAdminView:k.isAdminView,isDebugMode:k.isDebugMode,isPageEditor:k.isPageEditor,isPartEditor:k.isPartEditor,log:k.log,signGuestBook:k.signGuestBook}}});var n=d.instantiate("debug",d.options());d.map("info",n.info);d.map("isAdminView",n.isAdminView);d.map("isDebugMode",n.isDebugMode);d.map("isPageEditor",n.isPageEditor);d.map("isPartEditor",n.isPartEditor);d.map("log",n.log)})}).call({},window,bbiGetInstance());(function(e, d){d.on("init",function(){d.extension({alias:"events",defaults:{},directive:function(d,h,l){d.settings();var c,f=!1;c=h("jQuery").getInstance(0).jQuery;f=c("namespace").fn.jquery!==c("window").fn.jquery;return{trigger:function(d,a){f&&c("namespace")(e.document).trigger(d,[h,l]).unbind(d);c("window")(e.document).trigger(d,[h,l]).unbind(d)}}}});d.instantiate("events")})}).call({},window,bbiGetInstance());(function(e,d){d.on("init",function(){d.extension({alias:"storage",defaults:{},directive:function(d, l,c){var f={},k={clear:function(a){"string"===typeof a?delete f[a]:f={};k.save()},expose:function(){return f},get:function(a){return"undefined"===typeof f[a]||"undefined"===f[a]?null:f[a]},set:function(a,b){f[a]=b;k.save()},objectToString:function(a){return JSON.stringify(a)},stringToObject:function(a){var b;"undefined"===a&&(a="null");if("function"===typeof JSON.parse){!0===l.isDebugMode()&&l.log("[BBI.storage] Parsing storage via JSON.parse.",!1);try{b=JSON.parse(a)}catch(g){b={},l.log("[BBI.Storage] JSON.parse ERROR: ", g)}}else"function"===typeof c.parseJSON?(!0===l.isDebugMode()&&l.log("[BBI.storage] Parsing storage via $.parseJSON.",!1),b=c.parseJSON(a)):(!0===l.isDebugMode()&&l.log("[BBI.storage] Parsing storage via eval().",!1),b=eval("("+a+")"));return b},load:function(){var a=e.sessionStorage,b;for(b in a)"string"===typeof a[b]&&(f[b]=k.stringToObject(a[b]))},save:function(){var a;if("object"!==typeof e.sessvars){e.sessionStorage.clear();for(var b in f)a=k.objectToString(f[b]),e.sessionStorage.setItem(b,a)}}}; k.load();e.onunload=k.save;return{clear:k.clear,expose:k.expose,get:k.get,set:k.set}}});var n=d.instantiate("storage");d.map("storage",n)})}).call({},window,bbiGetInstance());(function(e,d){d.on("init",function(){d.extension({alias:"bbnc",defaults:{partTitleKeyword:"Customization"},directive:function(d,e,c){var f=d.settings(),k,a=!1,b={attach:function(b,d,f){c(function(){c.proxy(b,f)(d)});!0===a&&k.add_endRequest(function(){c.proxy(b,f)(d)})},getPageRequestManager:function(){var b={};if("object"=== typeof k)return k;try{b=Sys.WebForms.PageRequestManager.getInstance(),a=!0}catch(c){!0===e.isDebugMode()&&e.log(c.message,!1)}return b},showPartTitle:function(){b.attach(function(){var a=c("#BodyId");0===a.find(".js-part-label").length&&a.find('[id*="_tdPartName"]:contains("'+f.partTitleKeyword+'")').each(function(){var a=c(this);c("#"+a.attr("id").replace("tdPartName","pnlPart")).prepend('
'+a.text()+" (click to modify)
")})})}};k=b.getPageRequestManager(); e("debug").getInstance(0).isPageEditor()&&b.showPartTitle();return{attach:b.attach,usesMicrosoftAjax:function(){return a}}}});var e=d.instantiate("bbnc");d.map("attach",e.attach)})}).call({},window,bbiGetInstance());(function(e,d){d.on("init",function(){d.extension({alias:"luminate",defaults:{},directive:function(d,h,l){d.settings();var c;return{fetchYahoo:function(d){"function"===typeof c?d(c):("undefined"!==typeof e.Y&&"function"===typeof e.Y.use&&e.Y.use("jquery-ui",function(e){e=h("jQuery").getInstance(0); c=jQuery;e.setLocation("window",c);e.setLocation("luminate",c);d(c)}),d())}}}});d.instantiate("luminate")})}).call({},window,bbiGetInstance());(function(e,d){d.on("init",function(){d.extension({alias:"online-express",defaults:{},directive:function(d,l,c){d.settings();var f=!1,k=!1,a,b,g,q,p=c(e.document),r={init:[],error:[],validate:[],fail:[],submit:[],success:[],beforeUpdate:[],afterUpdate:[]},m={attach:function(a,b,d){c(function(){c.proxy(a,d)(b)});m.on("afterUpdate",function(){c.proxy(a,d)(b)})}, block:function(){g.block({message:"Processing",css:{padding:"10px",border:"none",fontSize:"16px",backgroundColor:"#000",borderRadius:"10px","-webkit-border-radius":"10px","-moz-border-radius":"10px",opacity:.5,color:"#fff"},overlayCSS:{backgroundColor:"#fff",opacity:.5}})},check:function(){f&&k&&p.trigger("olx-ready")},on:function(a,b){if("undefined"===typeof r[a])throw Error('The Online Express event "'+a+'" does not exist.');r[a].push(b)},overrides:function(){var a="";e.BBOXSectionScripts.BBI_NAMESPACE= e.BBOXSectionScripts.BBI_NAMESPACE||{};e.BBOXSectionScripts.BBI_NAMESPACE.presubmit=function(){var a={block:m.block,unblock:m.unblock},b=!0,c=r.validate;l.isDebugMode()&&l.log("Online Express Form has been submitted. Validations in progress...",!1);for(var d=0,g=c.length;d\nIn some instances this error occurs when the namespace is being overwritten by another reference. Double-check that the namespace is only being initialized once on the page.', !1):(c=a[b.app].actions[b.action],"object"===typeof c&&"function"===typeof c.init?h.helper.executeFunctionByName("init",[b.data,b.element],c):h.helper.objectLength(b.data)?h.log("The action, "+b.action+", in the app, "+b.app+", is expecting to receive options but does not have an initializing function. Add an 'init' function to your action to receive options.",!1):h.log("The action, "+b.action+", in the app, "+b.app+", does not exist. Double-check the data-bbi-action and data-bbi-app attributes on your tag.", !1)))},0)},find:function(){var a=l("["+c.dataAttr_app+"], [bbi-app]"),b=a.length,d;if(0