DT=window.DT||{};DT.CONSTANTS={LOGGING_LEVEL_OFF:0,LOGGING_LEVEL_DEBUG:1,LOGGING_LEVEL_WARN:2,LOGGING_LEVEL_ERROR:3,LOGGING_LEVEL_LABELS:["OFF","DEBUG","WARN","ERROR"],EVENT_LAYOUT_CHANGED:"layout changed",EVENT_WINDOW_RESIZED:"window resized",EVENT_WINDOW_SCROLLED:"window scrolled",EVENT_INIT_COMPLETE:"initialization complete",EVENT_SETUP_TEARDOWN:"setup complete",EVENT_PARTIAL_REFRESH:"partial refresh"};DT.CORE=(function(g){var d,f,a,h,e,b="1.0 10-04-22",c=(DT.OPTIONS&&DT.OPTIONS.CORE&&DT.OPTIONS.CORE.LOGGING_LEVEL)||DT.CONSTANTS.LOGGING_LEVEL_OFF;c=DT.CONSTANTS.LOGGING_LEVEL_DEBUG;a={};d={};e=[];f=function(j){var m,l,k;l=["Debug","Warn","Error"];m={notify:function(p,r){var q,n,o;o={type:p,data:r,triggeredBy:j};this.logDebug('Notification "'+o.type+'" from "'+j+'"',o);q=a[o.type];if(q){for(n=q.length;n--;){q[n].handler.call(q[n].context,o)}}},listen:function(r,p,o){var n,q;if(typeof r==="string"){r=[r]}for(n=r.length;n--;){q=r[n];this.logDebug(j+' listens to "'+q+'"');if(!a[q]){a[q]=[]}a[q].push({handler:p,context:o})}},log:function(q,p){if(!window.console){return}var n,i;switch(q){case DT.CONSTANTS.LOGGING_LEVEL_DEBUG:n=window.console.log;break;case DT.CONSTANTS.LOGGING_LEVEL_WARN:n=window.console.warn;break;case DT.CONSTANTS.LOGGING_LEVEL_ERROR:n=window.console.error;break}if(!n){n=window.console.log}i=Array.prototype.slice.call(arguments);i.shift();i.unshift("["+j+"]: ");if(c&&q>=c){i.unshift("["+DT.CONSTANTS.LOGGING_LEVEL_LABELS[q]+"]");try{n.apply(this,i)}catch(o){window.console.log(i.join(""))}}},myName:function(){return j}};for(k=l.length;k--;){m["log"+l[k]]=(function(){var i=k+1;return function(){var n=Array.prototype.slice.call(arguments);n.unshift(i);this.log.apply(this,n)}}())}return m};h=f("DT.CORE");return{register:function(j,i){h.logDebug('register: "'+j+'"');if(d[j]!==undefined){h.logWarn('WARNING: redeclaration of "'+j+'"')}d[j]={maker:i,instance:null}},start:function(m){var n,l,k,j;l=d[m];l.instance=l.maker(f(m),g);n=(new Date()).getTime();if(l.instance.init){l.instance.init((DT.OPTIONS&&DT.OPTIONS[m])||[])}if(l.instance.initEach&&DT.OPTIONS&&DT.OPTIONS[m]){j=DT.OPTIONS[m];for(k=j.length;k--;){l.instance.initEach(j[k])}}e.push({name:m,time:(new Date()).getTime()-n})},stop:function(j){var i=d[j];if(i.instance){if(i.instance.destroy){i.instance.destroy()}i.instance=null}},startAll:function(){var i,k,j;j=k=(new Date()).getTime();for(i in d){if(d.hasOwnProperty(i)){this.start(i)}}e.push({name:"DT.CORE.startAll",time:(new Date()).getTime()-k});k=(new Date()).getTime();h.notify(DT.CONSTANTS.EVENT_INIT_COMPLETE);e.push({name:"INIT_COMPLETE event handling",time:(new Date()).getTime()-k});e.push({name:"SETUP",time:(new Date()).getTime()-j});h.notify(DT.CONSTANTS.EVENT_SETUP_TEARDOWN)},stopAll:function(){var i;for(i in d){if(d.hasOwnProperty(i)){this.stop(i)}}},stats:e,version:b}}(jQuery));DT.TOOLKIT=(function(a){return{removeQueryString:function(c){var b=c.indexOf("?");if(b===-1){return c}return c.slice(0,c.indexOf("?"))},anyOfThesePages:function(b){var c,d;if(!(b instanceof Array)){b=[b]}d=document.location.href;d=d.slice(d.lastIndexOf("/")+1,d.lastIndexOf(".")).toLowerCase();for(c=b.length;c--;){if(b[c].toLowerCase()===d){return true}}return false},isBE:document.location.href.indexOf("://axcms.")!==-1,isFE:document.location.href.indexOf("://axcms.")===-1,isIE6:!!(a.browser.msie&&a.browser.version.substr(0,1)==="6"),isIE7:!!(a.browser.msie&&a.browser.version.substr(0,1)==="7")}}(jQuery));jQuery.noConflict();jQuery(document).ready(function(a){DT.CORE.startAll();window.onunload=function(b){DT.CORE.stopAll()}});
