function NWTDispatcher(){this.register("nwt",window.nwt)}NWTDispatcher.prototype.getDispatcher=function(a,b){var c=new RegExp("("+a+"_)(.[^\\s]*)");return function(d){var e=d.target,f=!1,g=!1;if(e.get("target")=="_blank")return;while(e.get("parentNode")){if(e.get("nodeName").toUpperCase()==="A"||e.get("nodeName").toUpperCase()==="INPUT")g=e;if(!(!e.get("className")||e.get("className").indexOf(a+"_")===-1||e.get("nodeName").toUpperCase()!=="A"&&e.get("nodeName").toUpperCase()!=="INPUT")){var h=c.exec(e.get("className")),i=h[2].split("_"),j=b;b[i[0]][i[1]](g),f=!0;break}if(e._node&&e.hasClass(a+"_event_sink")&&g&&g.get("nodeName").toUpperCase()==="A"){d.stop(),j=b,j=j[e.data("callback")].trapEvent,j(g),f=!0;break}e=e.get("parentNode")}f&&e.get("nodeName").toUpperCase()!=="INPUT"&&d.stop();return}},NWTDispatcher.prototype.register=function(a,b){nwt.one("body").on("click",this.getDispatcher(a,b))},nwt.dispatcher=new NWTDispatcher
