var dm=dm||{};dm.framework=dm.framework||function(){var f,n,t,i,r,u;return f=[],n=[],t=document.addEventListener,String.prototype.contains||(String.prototype.contains=function(){return String.prototype.indexOf.apply(this,arguments)!==-1}),Array.prototype.remove=function(n){for(var t=0;t<this.length;t++)if(this[t]===n){this.splice(t,1);return}},Array.prototype.contains=function(n){for(var t=0,i=this.length;t<i;t++)if(this[t]===n)return!0;return!1},Element.prototype.hasClassName=function(n){return new RegExp("(?:^|\\s+)"+n+"(?:\\s+|$)").test(this.className)},Element.prototype.addClassName=function(n){this.hasClassName(n)||(this.className=this.className?[this.className,n].join(" "):n)},Element.prototype.removeClassName=function(n){if(this.hasClassName(n)){var t=this.className;this.className=t.replace(new RegExp("(?:^|\\s+)"+n+"(?=\\s+|$)","g"),"")}},Number.prototype.toFixedTyped=function(n){return parseFloat(this.toFixed(n))},Date.prototype.addDays=function(n){return this.setDate(this.getDate()+n),this},i=function(){for(var i=0,r=n.length;i<r;i++)n[i]();n=null;t?document.removeEventListener("DOMContentLoaded",this.domReady,!1):window.removeEventListener("load",dm.framework.domReady,!1)},u=function(){return n===null?!0:!1},r=function(i){if(n===null){i();return}n.length===0&&(t?document.addEventListener("DOMContentLoaded",this.domReady,!1):window.addEventListener("load",dm.framework.domReady,!1));n.push(i)},{ready:r,domReady:i,domReadyComplete:u}}();dm=dm||{};dm.search=dm.search||function(){"use strict";var i,n,r,t="#autoCompleteCoreSearch";return i=function(i,u){i.preventDefault();i.stopPropagation();try{r.abort()}catch(f){}u&&u.length>0?(r=n(u),$(t).show()):$(t).hide()},n=function(n){return $.get("/SearchRealtime",{term:n},function(n){$(t).html(n)})},{onKeyPressUp:i,getSearchResults:n}}()