/* Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ /* This is a compiled version of Dojo, built for deployment and not for development. To get an editable version, please visit: http://dojotoolkit.org for documentation and information on getting the source. */ if(!dojo._hasResource["dojo.regexp"]){dojo._hasResource["dojo.regexp"]=true;dojo.provide("dojo.regexp");dojo.regexp.escapeString=function(_1,_2){return _1.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(ch){if(_2&&_2.indexOf(ch)!=-1){return ch;}return "\\"+ch;});};dojo.regexp.buildGroupRE=function(_4,re,_6){if(!(_4 instanceof Array)){return re(_4);}var b=[];for(var i=0;i<_4.length;i++){b.push(re(_4[i]));}return dojo.regexp.group(b.join("|"),_6);};dojo.regexp.group=function(_9,_a){return "("+(_a?"?:":"")+_9+")";};}if(!dojo._hasResource["dojo.cookie"]){dojo._hasResource["dojo.cookie"]=true;dojo.provide("dojo.cookie");dojo.cookie=function(_b,_c,_d){var c=document.cookie;if(arguments.length==1){var _f=c.match(new RegExp("(?:^|; )"+dojo.regexp.escapeString(_b)+"=([^;]*)"));return _f?decodeURIComponent(_f[1]):undefined;}else{_d=_d||{};var exp=_d.expires;if(typeof exp=="number"){var d=new Date();d.setTime(d.getTime()+exp*24*60*60*1000);exp=_d.expires=d;}if(exp&&exp.toUTCString){_d.expires=exp.toUTCString();}_c=encodeURIComponent(_c);var _12=_b+"="+_c,_13;for(_13 in _d){_12+="; "+_13;var _14=_d[_13];if(_14!==true){_12+="="+_14;}}document.cookie=_12;}};dojo.cookie.isSupported=function(){if(!("cookieEnabled" in navigator)){this("__djCookieTest__","CookiesAllowed");navigator.cookieEnabled=this("__djCookieTest__")=="CookiesAllowed";if(navigator.cookieEnabled){this("__djCookieTest__","",{expires:-1});}}return navigator.cookieEnabled;};}if(!dojo._hasResource["dojo.fx.easing"]){dojo._hasResource["dojo.fx.easing"]=true;dojo.provide("dojo.fx.easing");dojo.fx.easing={linear:function(n){return n;},quadIn:function(n){return Math.pow(n,2);},quadOut:function(n){return n*(n-2)*-1;},quadInOut:function(n){n=n*2;if(n<1){return Math.pow(n,2)/2;}return -1*((--n)*(n-2)-1)/2;},cubicIn:function(n){return Math.pow(n,3);},cubicOut:function(n){return Math.pow(n-1,3)+1;},cubicInOut:function(n){n=n*2;if(n<1){return Math.pow(n,3)/2;}n-=2;return (Math.pow(n,3)+2)/2;},quartIn:function(n){return Math.pow(n,4);},quartOut:function(n){return -1*(Math.pow(n-1,4)-1);},quartInOut:function(n){n=n*2;if(n<1){return Math.pow(n,4)/2;}n-=2;return -1/2*(Math.pow(n,4)-2);},quintIn:function(n){return Math.pow(n,5);},quintOut:function(n){return Math.pow(n-1,5)+1;},quintInOut:function(n){n=n*2;if(n<1){return Math.pow(n,5)/2;}n-=2;return (Math.pow(n,5)+2)/2;},sineIn:function(n){return -1*Math.cos(n*(Math.PI/2))+1;},sineOut:function(n){return Math.sin(n*(Math.PI/2));},sineInOut:function(n){return -1*(Math.cos(Math.PI*n)-1)/2;},expoIn:function(n){return (n==0)?0:Math.pow(2,10*(n-1));},expoOut:function(n){return (n==1)?1:(-1*Math.pow(2,-10*n)+1);},expoInOut:function(n){if(n==0){return 0;}if(n==1){return 1;}n=n*2;if(n<1){return Math.pow(2,10*(n-1))/2;}--n;return (-1*Math.pow(2,-10*n)+2)/2;},circIn:function(n){return -1*(Math.sqrt(1-Math.pow(n,2))-1);},circOut:function(n){n=n-1;return Math.sqrt(1-Math.pow(n,2));},circInOut:function(n){n=n*2;if(n<1){return -1/2*(Math.sqrt(1-Math.pow(n,2))-1);}n-=2;return 1/2*(Math.sqrt(1-Math.pow(n,2))+1);},backIn:function(n){var s=1.70158;return Math.pow(n,2)*((s+1)*n-s);},backOut:function(n){n=n-1;var s=1.70158;return Math.pow(n,2)*((s+1)*n+s)+1;},backInOut:function(n){var s=1.70158*1.525;n=n*2;if(n<1){return (Math.pow(n,2)*((s+1)*n-s))/2;}n-=2;return (Math.pow(n,2)*((s+1)*n+s)+2)/2;},elasticIn:function(n){if(n==0||n==1){return n;}var p=0.3;var s=p/4;n=n-1;return -1*Math.pow(2,10*n)*Math.sin((n-s)*(2*Math.PI)/p);},elasticOut:function(n){if(n==0||n==1){return n;}var p=0.3;var s=p/4;return Math.pow(2,-10*n)*Math.sin((n-s)*(2*Math.PI)/p)+1;},elasticInOut:function(n){if(n==0){return 0;}n=n*2;if(n==2){return 1;}var p=0.3*1.5;var s=p/4;if(n<1){n-=1;return -0.5*(Math.pow(2,10*n)*Math.sin((n-s)*(2*Math.PI)/p));}n-=1;return 0.5*(Math.pow(2,-10*n)*Math.sin((n-s)*(2*Math.PI)/p))+1;},bounceIn:function(n){return (1-dojo.fx.easing.bounceOut(1-n));},bounceOut:function(n){var s=7.5625;var p=2.75;var l;if(n<(1/p)){l=s*Math.pow(n,2);}else{if(n<(2/p)){n-=(1.5/p);l=s*Math.pow(n,2)+0.75;}else{if(n<(2.5/p)){n-=(2.25/p);l=s*Math.pow(n,2)+0.9375;}else{n-=(2.625/p);l=s*Math.pow(n,2)+0.984375;}}}return l;},bounceInOut:function(n){if(n<0.5){return dojo.fx.easing.bounceIn(n*2)/2;}return (dojo.fx.easing.bounceOut(n*2-1)/2)+0.5;}};}if(!dojo._hasResource["dojo.rpc.RpcService"]){dojo._hasResource["dojo.rpc.RpcService"]=true;dojo.provide("dojo.rpc.RpcService");dojo.declare("dojo.rpc.RpcService",null,{constructor:function(_40){if(_40){if((dojo.isString(_40))||(_40 instanceof dojo._Url)){if(_40 instanceof dojo._Url){var url=_40+"";}else{url=_40;}var def=dojo.xhrGet({url:url,handleAs:"json-comment-optional",sync:true});def.addCallback(this,"processSmd");def.addErrback(function(){throw new Error("Unable to load SMD from "+_40);});}else{if(_40.smdStr){this.processSmd(dojo.eval("("+_40.smdStr+")"));}else{if(_40.serviceUrl){this.serviceUrl=_40.serviceUrl;}this.timeout=_40.timeout||3000;if("strictArgChecks" in _40){this.strictArgChecks=_40.strictArgChecks;}this.processSmd(_40);}}}},strictArgChecks:true,serviceUrl:"",parseResults:function(obj){return obj;},errorCallback:function(_44){return function(_45){_44.errback(_45.message);};},resultCallback:function(_46){var tf=dojo.hitch(this,function(obj){if(obj.error!=null){var err;if(typeof obj.error=="object"){err=new Error(obj.error.message);err.code=obj.error.code;err.error=obj.error.error;}else{err=new Error(obj.error);}err.id=obj.id;err.errorObject=obj;_46.errback(err);}else{_46.callback(this.parseResults(obj));}});return tf;},generateMethod:function(_4a,_4b,url){return dojo.hitch(this,function(){var _4d=new dojo.Deferred();if((this.strictArgChecks)&&(_4b!=null)&&(arguments.length!=_4b.length)){throw new Error("Invalid number of parameters for remote method.");}else{this.bind(_4a,dojo._toArray(arguments),_4d,url);}return _4d;});},processSmd:function(_4e){if(_4e.methods){dojo.forEach(_4e.methods,function(m){if(m&&m.name){this[m.name]=this.generateMethod(m.name,m.parameters,m.url||m.serviceUrl||m.serviceURL);if(!dojo.isFunction(this[m.name])){throw new Error("RpcService: Failed to create"+m.name+"()");}}},this);}this.serviceUrl=_4e.serviceUrl||_4e.serviceURL;this.required=_4e.required;this.smd=_4e;}});}if(!dojo._hasResource["dojo.rpc.JsonService"]){dojo._hasResource["dojo.rpc.JsonService"]=true;dojo.provide("dojo.rpc.JsonService");dojo.declare("dojo.rpc.JsonService",dojo.rpc.RpcService,{bustCache:false,contentType:"application/json-rpc",lastSubmissionId:0,callRemote:function(_50,_51){var _52=new dojo.Deferred();this.bind(_50,_51,_52);return _52;},bind:function(_53,_54,_55,url){var def=dojo.rawXhrPost({url:url||this.serviceUrl,postData:this.createRequest(_53,_54),contentType:this.contentType,timeout:this.timeout,handleAs:"json-comment-optional"});def.addCallbacks(this.resultCallback(_55),this.errorCallback(_55));},createRequest:function(_58,_59){var req={"params":_59,"method":_58,"id":++this.lastSubmissionId};var _5b=dojo.toJson(req);return _5b;},parseResults:function(obj){if(dojo.isObject(obj)){if("result" in obj){return obj.result;}if("Result" in obj){return obj.Result;}if("ResultSet" in obj){return obj.ResultSet;}}return obj;}});}if(!dojo._hasResource["dojo.dnd.common"]){dojo._hasResource["dojo.dnd.common"]=true;dojo.provide("dojo.dnd.common");dojo.dnd._isMac=navigator.appVersion.indexOf("Macintosh")>=0;dojo.dnd._copyKey=dojo.dnd._isMac?"metaKey":"ctrlKey";dojo.dnd.getCopyKeyState=function(e){return e[dojo.dnd._copyKey];};dojo.dnd._uniqueId=0;dojo.dnd.getUniqueId=function(){var id;do{id=dojo._scopeName+"Unique"+(++dojo.dnd._uniqueId);}while(dojo.byId(id));return id;};dojo.dnd._empty={};dojo.dnd.isFormElement=function(e){var t=e.target;if(t.nodeType==3){t=t.parentNode;}return " button textarea input select option ".indexOf(" "+t.tagName.toLowerCase()+" ")>=0;};dojo.dnd._lmb=dojo.isIE?1:0;dojo.dnd._isLmbPressed=dojo.isIE?function(e){return e.button&1;}:function(e){return e.button===0;};}if(!dojo._hasResource["dojo.dnd.autoscroll"]){dojo._hasResource["dojo.dnd.autoscroll"]=true;dojo.provide("dojo.dnd.autoscroll");dojo.dnd.getViewport=function(){var d=dojo.doc,dd=d.documentElement,w=window,b=dojo.body();if(dojo.isMozilla){return {w:dd.clientWidth,h:w.innerHeight};}else{if(!dojo.isOpera&&w.innerWidth){return {w:w.innerWidth,h:w.innerHeight};}else{if(!dojo.isOpera&&dd&&dd.clientWidth){return {w:dd.clientWidth,h:dd.clientHeight};}else{if(b.clientWidth){return {w:b.clientWidth,h:b.clientHeight};}}}}return null;};dojo.dnd.V_TRIGGER_AUTOSCROLL=32;dojo.dnd.H_TRIGGER_AUTOSCROLL=32;dojo.dnd.V_AUTOSCROLL_VALUE=16;dojo.dnd.H_AUTOSCROLL_VALUE=16;dojo.dnd.autoScroll=function(e){var v=dojo.dnd.getViewport(),dx=0,dy=0;if(e.clientXv.w-dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=dojo.dnd.H_AUTOSCROLL_VALUE;}}if(e.clientYv.h-dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=dojo.dnd.V_AUTOSCROLL_VALUE;}}window.scrollBy(dx,dy);};dojo.dnd._validNodes={"div":1,"p":1,"td":1};dojo.dnd._validOverflow={"auto":1,"scroll":1};dojo.dnd.autoScrollNodes=function(e){for(var n=e.target;n;){if(n.nodeType==1&&(n.tagName.toLowerCase() in dojo.dnd._validNodes)){var s=dojo.getComputedStyle(n);if(s.overflow.toLowerCase() in dojo.dnd._validOverflow){var b=dojo._getContentBox(n,s),t=dojo._abs(n,true);var w=Math.min(dojo.dnd.H_TRIGGER_AUTOSCROLL,b.w/2),h=Math.min(dojo.dnd.V_TRIGGER_AUTOSCROLL,b.h/2),rx=e.pageX-t.x,ry=e.pageY-t.y,dx=0,dy=0;if(dojo.isWebKit||dojo.isOpera){rx+=dojo.body().scrollLeft,ry+=dojo.body().scrollTop;}if(rx>0&&rxb.w-w){dx=w;}}}if(ry>0&&ryb.h-h){dy=h;}}}var _76=n.scrollLeft,_77=n.scrollTop;n.scrollLeft=n.scrollLeft+dx;n.scrollTop=n.scrollTop+dy;if(_76!=n.scrollLeft||_77!=n.scrollTop){return;}}}try{n=n.parentNode;}catch(x){n=null;}}dojo.dnd.autoScroll(e);};}if(!dojo._hasResource["dojo.dnd.Mover"]){dojo._hasResource["dojo.dnd.Mover"]=true;dojo.provide("dojo.dnd.Mover");dojo.declare("dojo.dnd.Mover",null,{constructor:function(_78,e,_7a){this.node=dojo.byId(_78);this.marginBox={l:e.pageX,t:e.pageY};this.mouseButton=e.button;var h=this.host=_7a,d=_78.ownerDocument,_7d=dojo.connect(d,"onmousemove",this,"onFirstMove");this.events=[dojo.connect(d,"onmousemove",this,"onMouseMove"),dojo.connect(d,"onmouseup",this,"onMouseUp"),dojo.connect(d,"ondragstart",dojo.stopEvent),dojo.connect(d.body,"onselectstart",dojo.stopEvent),_7d];if(h&&h.onMoveStart){h.onMoveStart(this);}},onMouseMove:function(e){dojo.dnd.autoScroll(e);var m=this.marginBox;this.host.onMove(this,{l:m.l+e.pageX,t:m.t+e.pageY});dojo.stopEvent(e);},onMouseUp:function(e){if(dojo.isWebKit&&dojo.dnd._isMac&&this.mouseButton==2?e.button==0:this.mouseButton==e.button){this.destroy();}dojo.stopEvent(e);},onFirstMove:function(){var s=this.node.style,l,t,h=this.host;switch(s.position){case "relative":case "absolute":l=Math.round(parseFloat(s.left));t=Math.round(parseFloat(s.top));break;default:s.position="absolute";var m=dojo.marginBox(this.node);var b=dojo.doc.body;var bs=dojo.getComputedStyle(b);var bm=dojo._getMarginBox(b,bs);var bc=dojo._getContentBox(b,bs);l=m.l-(bc.l-bm.l);t=m.t-(bc.t-bm.t);break;}this.marginBox.l=l-this.marginBox.l;this.marginBox.t=t-this.marginBox.t;if(h&&h.onFirstMove){h.onFirstMove(this);}dojo.disconnect(this.events.pop());},destroy:function(){dojo.forEach(this.events,dojo.disconnect);var h=this.host;if(h&&h.onMoveStop){h.onMoveStop(this);}this.events=this.node=this.host=null;}});}if(!dojo._hasResource["dojo.dnd.Moveable"]){dojo._hasResource["dojo.dnd.Moveable"]=true;dojo.provide("dojo.dnd.Moveable");dojo.declare("dojo.dnd.Moveable",null,{handle:"",delay:0,skip:false,constructor:function(_8b,_8c){this.node=dojo.byId(_8b);if(!_8c){_8c={};}this.handle=_8c.handle?dojo.byId(_8c.handle):null;if(!this.handle){this.handle=this.node;}this.delay=_8c.delay>0?_8c.delay:0;this.skip=_8c.skip;this.mover=_8c.mover?_8c.mover:dojo.dnd.Mover;this.events=[dojo.connect(this.handle,"onmousedown",this,"onMouseDown"),dojo.connect(this.handle,"ondragstart",this,"onSelectStart"),dojo.connect(this.handle,"onselectstart",this,"onSelectStart")];},markupFactory:function(_8d,_8e){return new dojo.dnd.Moveable(_8e,_8d);},destroy:function(){dojo.forEach(this.events,dojo.disconnect);this.events=this.node=this.handle=null;},onMouseDown:function(e){if(this.skip&&dojo.dnd.isFormElement(e)){return;}if(this.delay){this.events.push(dojo.connect(this.handle,"onmousemove",this,"onMouseMove"),dojo.connect(this.handle,"onmouseup",this,"onMouseUp"));this._lastX=e.pageX;this._lastY=e.pageY;}else{this.onDragDetected(e);}dojo.stopEvent(e);},onMouseMove:function(e){if(Math.abs(e.pageX-this._lastX)>this.delay||Math.abs(e.pageY-this._lastY)>this.delay){this.onMouseUp(e);this.onDragDetected(e);}dojo.stopEvent(e);},onMouseUp:function(e){for(var i=0;i<2;++i){dojo.disconnect(this.events.pop());}dojo.stopEvent(e);},onSelectStart:function(e){if(!this.skip||!dojo.dnd.isFormElement(e)){dojo.stopEvent(e);}},onDragDetected:function(e){new this.mover(this.node,e,this);},onMoveStart:function(_95){dojo.publish("/dnd/move/start",[_95]);dojo.addClass(dojo.body(),"dojoMove");dojo.addClass(this.node,"dojoMoveItem");},onMoveStop:function(_96){dojo.publish("/dnd/move/stop",[_96]);dojo.removeClass(dojo.body(),"dojoMove");dojo.removeClass(this.node,"dojoMoveItem");},onFirstMove:function(_97){},onMove:function(_98,_99){this.onMoving(_98,_99);var s=_98.node.style;s.left=_99.l+"px";s.top=_99.t+"px";this.onMoved(_98,_99);},onMoving:function(_9b,_9c){},onMoved:function(_9d,_9e){}});}if(!dojo._hasResource["dojo.dnd.move"]){dojo._hasResource["dojo.dnd.move"]=true;dojo.provide("dojo.dnd.move");dojo.declare("dojo.dnd.move.constrainedMoveable",dojo.dnd.Moveable,{constraints:function(){},within:false,markupFactory:function(_9f,_a0){return new dojo.dnd.move.constrainedMoveable(_a0,_9f);},constructor:function(_a1,_a2){if(!_a2){_a2={};}this.constraints=_a2.constraints;this.within=_a2.within;},onFirstMove:function(_a3){var c=this.constraintBox=this.constraints.call(this,_a3);c.r=c.l+c.w;c.b=c.t+c.h;if(this.within){var mb=dojo.marginBox(_a3.node);c.r-=mb.w;c.b-=mb.h;}},onMove:function(_a6,_a7){var c=this.constraintBox,s=_a6.node.style;s.left=(_a7.l=0){this.timeout=_d0.timeout;}},markupFactory:function(_d1,_d2){return new dojo.dnd.TimedMoveable(_d2,_d1);},onMoveStop:function(_d3){if(_d3._timer){clearTimeout(_d3._timer);_ce.call(this,_d3,_d3._leftTop);}dojo.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);},onMove:function(_d4,_d5){_d4._leftTop=_d5;if(!_d4._timer){var _t=this;_d4._timer=setTimeout(function(){_d4._timer=null;_ce.call(_t,_d4,_d4._leftTop);},this.timeout);}}});})();}if(!dojo._hasResource["dojo.fx.Toggler"]){dojo._hasResource["dojo.fx.Toggler"]=true;dojo.provide("dojo.fx.Toggler");dojo.declare("dojo.fx.Toggler",null,{constructor:function(_d7){var _t=this;dojo.mixin(_t,_d7);_t.node=_d7.node;_t._showArgs=dojo.mixin({},_d7);_t._showArgs.node=_t.node;_t._showArgs.duration=_t.showDuration;_t.showAnim=_t.showFunc(_t._showArgs);_t._hideArgs=dojo.mixin({},_d7);_t._hideArgs.node=_t.node;_t._hideArgs.duration=_t.hideDuration;_t.hideAnim=_t.hideFunc(_t._hideArgs);dojo.connect(_t.showAnim,"beforeBegin",dojo.hitch(_t.hideAnim,"stop",true));dojo.connect(_t.hideAnim,"beforeBegin",dojo.hitch(_t.showAnim,"stop",true));},node:null,showFunc:dojo.fadeIn,hideFunc:dojo.fadeOut,showDuration:200,hideDuration:200,show:function(_d9){return this.showAnim.play(_d9||0);},hide:function(_da){return this.hideAnim.play(_da||0);}});}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");(function(){var d=dojo,_dc={_fire:function(evt,_de){if(this[evt]){this[evt].apply(this,_de||[]);}return this;}};var _df=function(_e0){this._index=-1;this._animations=_e0||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;d.forEach(this._animations,function(a){this.duration+=a.duration;if(a.delay){this.duration+=a.delay;}},this);};d.extend(_df,{_onAnimate:function(){this._fire("onAnimate",arguments);},_onEnd:function(){d.disconnect(this._onAnimateCtx);d.disconnect(this._onEndCtx);this._onAnimateCtx=this._onEndCtx=null;if(this._index+1==this._animations.length){this._fire("onEnd");}else{this._current=this._animations[++this._index];this._onAnimateCtx=d.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");this._current.play(0,true);}},play:function(_e2,_e3){if(!this._current){this._current=this._animations[this._index=0];}if(!_e3&&this._current.status()=="playing"){return this;}var _e4=d.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_e5=d.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_e7=d.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);d.disconnect(_e4);d.disconnect(_e5);d.disconnect(_e7);});if(this._onAnimateCtx){d.disconnect(this._onAnimateCtx);}this._onAnimateCtx=d.connect(this._current,"onAnimate",this,"_onAnimate");if(this._onEndCtx){d.disconnect(this._onEndCtx);}this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");this._current.play.apply(this._current,arguments);return this;},pause:function(){if(this._current){var e=d.connect(this._current,"onPause",this,function(arg){this._fire("onPause",arguments);d.disconnect(e);});this._current.pause();}return this;},gotoPercent:function(_eb,_ec){this.pause();var _ed=this.duration*_eb;this._current=null;d.some(this._animations,function(a){if(a.duration<=_ed){this._current=a;return true;}_ed-=a.duration;return false;});if(this._current){this._current.gotoPercent(_ed/this._current.duration,_ec);}return this;},stop:function(_ef){if(this._current){if(_ef){for(;this._index+1=_141;i--){var _143=dijit.byId(_140[i]);if(_143){_143._focused=false;_143._hasBeenBlurred=true;if(_143._onBlur){_143._onBlur();}if(_143._setStateClass){_143._setStateClass();}dojo.publish("widgetBlur",[_143]);}}for(i=_141;i<_13f.length;i++){_143=dijit.byId(_13f[i]);if(_143){_143._focused=true;if(_143._onFocus){_143._onFocus();}if(_143._setStateClass){_143._setStateClass();}dojo.publish("widgetFocus",[_143]);}}}});dojo.addOnLoad(function(){dijit.registerWin(window);});}if(!dojo._hasResource["dijit._base.manager"]){dojo._hasResource["dijit._base.manager"]=true;dojo.provide("dijit._base.manager");dojo.declare("dijit.WidgetSet",null,{constructor:function(){this._hash={};},add:function(_144){if(this._hash[_144.id]){throw new Error("Tried to register widget with id=="+_144.id+" but that id is already registered");}this._hash[_144.id]=_144;},remove:function(id){delete this._hash[id];},forEach:function(func){for(var id in this._hash){func(this._hash[id]);}},filter:function(_148){var res=new dijit.WidgetSet();this.forEach(function(_14a){if(_148(_14a)){res.add(_14a);}});return res;},byId:function(id){return this._hash[id];},byClass:function(cls){return this.filter(function(_14d){return _14d.declaredClass==cls;});}});dijit.registry=new dijit.WidgetSet();dijit._widgetTypeCtr={};dijit.getUniqueId=function(_14e){var id;do{id=_14e+"_"+(_14e in dijit._widgetTypeCtr?++dijit._widgetTypeCtr[_14e]:dijit._widgetTypeCtr[_14e]=0);}while(dijit.byId(id));return id;};dijit.findWidgets=function(root){var _151=[];function _152(root){var list=dojo.isIE?root.children:root.childNodes,i=0,node;while(node=list[i++]){if(node.nodeType!=1){continue;}var _157=node.getAttribute("widgetId");if(_157){var _158=dijit.byId(_157);_151.push(_158);}else{_152(node);}}};_152(root);return _151;};if(dojo.isIE){dojo.addOnWindowUnload(function(){dojo.forEach(dijit.findWidgets(dojo.body()),function(_159){if(_159.destroyRecursive){_159.destroyRecursive();}else{if(_159.destroy){_159.destroy();}}});});}dijit.byId=function(id){return (dojo.isString(id))?dijit.registry.byId(id):id;};dijit.byNode=function(node){return dijit.registry.byId(node.getAttribute("widgetId"));};dijit.getEnclosingWidget=function(node){while(node){if(node.getAttribute&&node.getAttribute("widgetId")){return dijit.registry.byId(node.getAttribute("widgetId"));}node=node.parentNode;}return null;};dijit._tabElements={area:true,button:true,input:true,object:true,select:true,textarea:true};dijit._isElementShown=function(elem){var _15e=dojo.style(elem);return (_15e.visibility!="hidden")&&(_15e.visibility!="collapsed")&&(_15e.display!="none")&&(dojo.attr(elem,"type")!="hidden");};dijit.isTabNavigable=function(elem){if(dojo.hasAttr(elem,"disabled")){return false;}var _160=dojo.hasAttr(elem,"tabindex");var _161=dojo.attr(elem,"tabindex");if(_160&&_161>=0){return true;}var name=elem.nodeName.toLowerCase();if(((name=="a"&&dojo.hasAttr(elem,"href"))||dijit._tabElements[name])&&(!_160||_161>=0)){return true;}return false;};dijit._getTabNavigable=function(root){var _164,last,_166,_167,_168,_169;var _16a=function(_16b){dojo.query("> *",_16b).forEach(function(_16c){var _16d=dijit._isElementShown(_16c);if(_16d&&dijit.isTabNavigable(_16c)){var _16e=dojo.attr(_16c,"tabindex");if(!dojo.hasAttr(_16c,"tabindex")||_16e==0){if(!_164){_164=_16c;}last=_16c;}else{if(_16e>0){if(!_166||_16e<_167){_167=_16e;_166=_16c;}if(!_168||_16e>=_169){_169=_16e;_168=_16c;}}}}if(_16d&&_16c.nodeName.toUpperCase()!="SELECT"){_16a(_16c);}});};if(dijit._isElementShown(root)){_16a(root);}return {first:_164,last:last,lowest:_166,highest:_168};};dijit.getFirstInTabbingOrder=function(root){var _170=dijit._getTabNavigable(dojo.byId(root));return _170.lowest?_170.lowest:_170.first;};dijit.getLastInTabbingOrder=function(root){var _172=dijit._getTabNavigable(dojo.byId(root));return _172.last?_172.last:_172.highest;};dijit.defaultDuration=dojo.config["defaultDuration"]||200;}if(!dojo._hasResource["dojo.AdapterRegistry"]){dojo._hasResource["dojo.AdapterRegistry"]=true;dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(_173){this.pairs=[];this.returnWrappers=_173||false;};dojo.extend(dojo.AdapterRegistry,{register:function(name,_175,wrap,_177,_178){this.pairs[((_178)?"unshift":"push")]([name,_175,wrap,_177]);},match:function(){for(var i=0;i0&&_1b9[pi].parent===_1b9[pi-1].widget;pi--){}return _1b9[pi];};_1c7.push(dojo.connect(_1c3,"onkeypress",this,function(evt){if(evt.charOrCode==dojo.keys.ESCAPE&&args.onCancel){dojo.stopEvent(evt);args.onCancel();}else{if(evt.charOrCode===dojo.keys.TAB){dojo.stopEvent(evt);var _1cb=_1c8();if(_1cb&&_1cb.onCancel){_1cb.onCancel();}}}}));if(_1bf.onCancel){_1c7.push(dojo.connect(_1bf,"onCancel",null,args.onCancel));}_1c7.push(dojo.connect(_1bf,_1bf.onExecute?"onExecute":"onChange",null,function(){var _1cc=_1c8();if(_1cc&&_1cc.onExecute){_1cc.onExecute();}}));_1b9.push({wrapper:_1c3,iframe:_1c5,widget:_1bf,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_1c7});if(_1bf.onOpen){_1bf.onOpen(best);}return best;};this.close=function(_1cd){while(dojo.some(_1b9,function(elem){return elem.widget==_1cd;})){var top=_1b9.pop(),_1d0=top.wrapper,_1d1=top.iframe,_1d2=top.widget,_1d3=top.onClose;if(_1d2.onClose){_1d2.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(!_1d2||!_1d2.domNode){return;}this.prepare(_1d2.domNode);_1d1.destroy();dojo.destroy(_1d0);if(_1d3){_1d3();}}};}();dijit._frames=new function(){var _1d4=[];this.pop=function(){var _1d5;if(_1d4.length){_1d5=_1d4.pop();_1d5.style.display="";}else{if(dojo.isIE){var burl=dojo.config["dojoBlankHtmlUrl"]||(dojo.moduleUrl("dojo","resources/blank.html")+"")||"javascript:\"\"";var html="