function insertParam(n,t){var i,r,u;if(n=escape(n),t=escape(t),i=document.location.search.substr(1).split("&"),i=="")document.location.search="?"+n+"="+t;else{for(r=i.length;r--;)if(u=i[r].split("="),u[0]==n){u[1]=t;i[r]=u.join("=");break}r<0&&(i[i.length]=[n,t].join("="));document.location.search=i.join("&")}}function addUrlParam(n,t){if(n!=undefined||t!=undefined){var i={};location.search&&(i=JSON.parse('{"'+location.search.substring(1).replace(/&/g,'","').replace(/=/g,'":"')+'"}',function(n,t){return t}));i[n]=t;location.search=decodeURIComponent($.param(i))}}function ajaxAppend(n,t){$.get(n,function(n){$(t).append(n)})}function NewPopupWindow(n){settings="width=450,height=500,top=20,left=0,scrollbars=yes,location=no,directories=no,status=yes,menubar=no,toolbar=no,resizable=yes";win=window.open(n,"popupWinhelp",settings);win.focus()}var dm=dm||{},win;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>3?(r=n(u),$(t).show()):$(t).hide()},n=function(n){return $.get("/SearchRealtime",{term:n},function(n){$(t).html(n)})},{onKeyPressUp:i,getSearchResults:n}}();win=null