define(function(){return{create:function(a,e){var f=a.dom.query("#"+e),c=a.dom.query("form"),b=[]; function d(h,g){for(var j=[];g>0;j[--g]=h){}return j.join("");}return{DATA_ATTR:"data-mnx-",getContainer:function(){return f[0]; },addEvent:function(g,i,h){a.dom.on(g,i,h);},addLiveEvent:function(g,i,h){a.dom.live(g,i,h); },click:function(g){return a.dom.on("click",g);},mouseover:function(g,h){return a.dom.on("mouseover",g,h); },mouseout:function(g,h){return a.dom.on("mouseout",g,h);},removeEvent:function(g,i,h){a.dom.off(g,i,h); },getForms:function(){return c;},getForm:function(g){var j,h;for(h in c){if(c.hasOwnProperty(h)&&typeof c[h]!="function"){if(c[h].id==g){j=c[h]; }}}return j;},checkWindowResizeView:function(){a.checkWindowResizeView();},find:function(g,h){if(typeof h==="object"){return a.dom.find(g,h); }else{return f.query(g);}},filter:function(g,h){h=h||f;return a.dom.filter(g,h);},checkMatchMedia:function(g){return a.checkMatchMedia(g); },getCurrentView:function(){return a.getCurrentView();},reloadPage:function(){location.reload(); },getPageErrorElements:function(){var h=document.getElementsByTagName("body")[0]; var g="["+this.DATA_ATTR+"omniture]";return a.dom.find(g,h);},getScript:function(h,i,g){a.getScript(h,i,g); },triggerEvent:function(g,h,i){a.dom.trigger(g,h,i);},isOldieBrowser:function(g,h,i){return a.dom.isOldieBrowser(); },getDocumentClassName:function(g){return a.dom.getDocumentClassName(g);},setCSS:function(g,h){return a.dom.setCSS(g,h); },notify:function(g){if(a.is_obj(g)&&g.type){a.triggerEvent(g);}},ask:function(g){return a.askQuestion(g); },answer:function(g){if(a.is_obj(g)){a.registerQuestions(g,e);}},module_order:function(){return a.moduleOrder(); },setModuleOrder:function(g){if(typeof g=="number"){a.registerModuleOrder(g,e);}},listen:function(g){if(a.is_obj(g)){a.registerEvents(g,e); }},library:function(g,h){if(a.is_obj(g)){g.sb=h;a.library(g,e);}},showInInitialView:function(g){a.showInInitialView(g); },ignore:function(g){a.removeEvents(g,e);},create_element:function(j,g){var h,l,k; if(j){j=a.dom.create(j);}if(g){if(g.text){j.appendChild(document.createTextNode(g.text)); delete g.text;}if(g.children&&a.is_array(g.children)){h=0;while(l=g.children[h]){j.appendChild(l); h++;}delete g.children;}if(g.afterText){j.appendChild(document.createTextNode(g.afterText)); delete g.afterText;}a.dom.apply_attrs(j,g);}return j;},replaceWith:function(g,h){a.dom.replace_with(g,h); },apply_attrs:function(h,g){a.dom.apply_attrs(h,g);},remove_attr:function(h,g){a.dom.remove_attr(h,g); },addClass:function(h,g){a.dom.add_class(h,g);},removeClass:function(h,g){a.dom.remove_class(h,g); },hasClass:function(h,g){return a.dom.has_class(h,g);},is:function(g,h){return a.dom.is(g,h); },scrollTop:function(h,g){return a.dom.scrollTop(h,g);},scroll:function(g){return a.dom.scroll(g); },resize:function(g){return a.dom.resize(g);},offset:function(g,h){return a.offset(g,h); },fadeIn:function(g,h,i){a.effect.fadeIn(g,h,i);},fadeOut:function(g,h,i){a.effect.fadeOut(g,h,i); },slideDown:function(g,h,i){a.effect.slideDown(g,h,i);},slideUp:function(g,h,i){a.effect.slideUp(g,h,i); },slideToggle:function(g,h){a.effect.slideToggle(g,h);},animate:function(h,j,g,i){return a.effect.animate(h,j,g,i); },isTabAnimated:function(g){return a.effect.isTabAnimated(g);},draggable:function(g,h,j,i){return a.draggable(g,h,j,i); },parent:function(j,g){g=g||1;for(var h=0;h=0?"+"+q:q);n=j[3]?j[3]=="0"?"0":j[3].charAt(1):" "; r=j[5]-String(q).length-t.length;g=j[5]?d(n,r):"";h.push(t+(j[4]?q+g:g+q));}else{throw ("Huh ?!"); }}}l=l.substring(j[0].length);}return h.join("");},setCookie:function(g,j,m,l){var k=new Date(),h=[],i; k.setDate(k.getDate()+m);if(typeof l=="undefined"){i=escape(j)+((m==null)?"":"; path=/; expires="+k.toUTCString()); }else{h.push(encodeURIComponent(j));h.push("path="+l);if(m){h.push("expires="+k.toGMTString()); }i=h.join(";");}document.cookie=g+"="+i;},getCookie:function(h){var j,g,l,k=document.cookie.split(";"); for(j=0;j0){var o="application/x-shockwave-flash"; if(navigator.mimeTypes[o]&&navigator.mimeTypes[o].enabledPlugin){var p="Shockwave Flash"; l=navigator.plugins[p].description;}}}if(typeof l!=="undefined"){var j=l.replace(/\D+/g,",").match(/^,?(.+),?$/)[1].split(","); for(k=0,m=j.length;k0?n:[0,0,0]); },hasFlash:function(){var g=this.getFlash();return(parseInt(g.join(""),10)>0);},ajaxSettings:function(){return a.ajaxSettings(); },now:function(){if(!Date.now){return new Date().getTime();}else{return Date.now(); }},debounce:function(i,k,h){var g;var j=null;return function(){var o=this,n=arguments; var m=function(){j=null;if(!h){g=i.apply(o,n);}};var l=h&&!j;clearTimeout(j);j=setTimeout(m,k); if(l){g=i.apply(o,n);}return g;};},bindElementEvents:function(j){var l=0;for(var i in j.events){if(j.events.hasOwnProperty(i)){var h=i.split(" "),k=h[0],g=h[1]; if(j.el[g]!==false&&typeof j.el[g]!=="undefined"){this.removeEvent(j.el[g],k,j[j.events[i]]); this.addEvent(j.el[g],k,j[j.events[i]]);l++;}}}return l;},getNestedProperty:function(j,n,m){var l=j.split(m||"."),k=n||window; for(var h=0,g=l.length;h