/*
	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.
*/

dojo._xdResourceLoaded(function(_1,_2,_3){return {depends:[["provide","dojo.dnd.common"],["provide","dojo.dnd.autoscroll"],["provide","dojo.dnd.Mover"],["provide","dojo.dnd.Moveable"],["provide","dojo.dnd.move"],["provide","dojo.dnd.TimedMoveable"],["provide","dojo.fx.Toggler"],["provide","dojo.fx"],["provide","dijit._base.manager"],["provide","dijit._base.focus"],["provide","dojo.AdapterRegistry"],["provide","dijit._base.place"],["provide","dijit._base.window"],["provide","dijit._base.popup"],["provide","dijit._base.scroll"],["provide","dijit._base.sniff"],["provide","dijit._base.typematic"],["provide","dijit._base.wai"],["provide","dijit._base"],["provide","dijit._Widget"],["require","dijit._base"],["provide","dojo.string"],["provide","dojo.date.stamp"],["provide","dojo.parser"],["provide","dojo.cache"],["provide","dijit._Templated"],["provide","dijit.form._FormMixin"],["provide","dijit._DialogMixin"],["provide","dijit.DialogUnderlay"],["provide","dijit._Contained"],["provide","dijit._Container"],["provide","dijit.layout._LayoutWidget"],["provide","dojo.html"],["provide","dijit.layout.ContentPane"],["provide","dijit.TooltipDialog"],["provide","dijit.Dialog"],["provide","delijn.pluggable.PluggableRouteplannerDeLijn"],["i18n._preloadLocalizations","delijn.nls.pluggableRP",["ROOT","nl","xx"]]],defineResource:function(_4,_5,_6){if(!_4._hasResource["dojo.dnd.common"]){_4._hasResource["dojo.dnd.common"]=true;_4.provide("dojo.dnd.common");_4.dnd._uniqueId=0;_4.dnd.getUniqueId=function(){var id;do{id=_4._scopeName+"Unique"+(++_4.dnd._uniqueId);}while(_4.byId(id));return id;};_4.dnd._empty={};_4.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;};}if(!_4._hasResource["dojo.dnd.autoscroll"]){_4._hasResource["dojo.dnd.autoscroll"]=true;_4.provide("dojo.dnd.autoscroll");_4.dnd.getViewport=function(){var d=_4.doc,dd=d.documentElement,w=window,b=_4.body();if(_4.isMozilla){return {w:dd.clientWidth,h:w.innerHeight};}else{if(!_4.isOpera&&w.innerWidth){return {w:w.innerWidth,h:w.innerHeight};}else{if(!_4.isOpera&&dd&&dd.clientWidth){return {w:dd.clientWidth,h:dd.clientHeight};}else{if(b.clientWidth){return {w:b.clientWidth,h:b.clientHeight};}}}}return null;};_4.dnd.V_TRIGGER_AUTOSCROLL=32;_4.dnd.H_TRIGGER_AUTOSCROLL=32;_4.dnd.V_AUTOSCROLL_VALUE=16;_4.dnd.H_AUTOSCROLL_VALUE=16;_4.dnd.autoScroll=function(e){var v=_4.dnd.getViewport(),dx=0,dy=0;if(e.clientX<_4.dnd.H_TRIGGER_AUTOSCROLL){dx=-_4.dnd.H_AUTOSCROLL_VALUE;}else{if(e.clientX>v.w-_4.dnd.H_TRIGGER_AUTOSCROLL){dx=_4.dnd.H_AUTOSCROLL_VALUE;}}if(e.clientY<_4.dnd.V_TRIGGER_AUTOSCROLL){dy=-_4.dnd.V_AUTOSCROLL_VALUE;}else{if(e.clientY>v.h-_4.dnd.V_TRIGGER_AUTOSCROLL){dy=_4.dnd.V_AUTOSCROLL_VALUE;}}window.scrollBy(dx,dy);};_4.dnd._validNodes={"div":1,"p":1,"td":1};_4.dnd._validOverflow={"auto":1,"scroll":1};_4.dnd.autoScrollNodes=function(e){for(var n=e.target;n;){if(n.nodeType==1&&(n.tagName.toLowerCase() in _4.dnd._validNodes)){var s=_4.getComputedStyle(n);if(s.overflow.toLowerCase() in _4.dnd._validOverflow){var b=_4._getContentBox(n,s),t=_4.position(n,true);var w=Math.min(_4.dnd.H_TRIGGER_AUTOSCROLL,b.w/2),h=Math.min(_4.dnd.V_TRIGGER_AUTOSCROLL,b.h/2),rx=e.pageX-t.x,ry=e.pageY-t.y,dx=0,dy=0;if(_4.isWebKit||_4.isOpera){rx+=_4.body().scrollLeft,ry+=_4.body().scrollTop;}if(rx>0&&rx<b.w){if(rx<w){dx=-w;}else{if(rx>b.w-w){dx=w;}}}if(ry>0&&ry<b.h){if(ry<h){dy=-h;}else{if(ry>b.h-h){dy=h;}}}var _7=n.scrollLeft,_8=n.scrollTop;n.scrollLeft=n.scrollLeft+dx;n.scrollTop=n.scrollTop+dy;if(_7!=n.scrollLeft||_8!=n.scrollTop){return;}}}try{n=n.parentNode;}catch(x){n=null;}}_4.dnd.autoScroll(e);};}if(!_4._hasResource["dojo.dnd.Mover"]){_4._hasResource["dojo.dnd.Mover"]=true;_4.provide("dojo.dnd.Mover");_4.declare("dojo.dnd.Mover",null,{constructor:function(_9,e,_a){this.node=_4.byId(_9);this.marginBox={l:e.pageX,t:e.pageY};this.mouseButton=e.button;var h=this.host=_a,d=_9.ownerDocument,_b=_4.connect(d,"onmousemove",this,"onFirstMove");this.events=[_4.connect(d,"onmousemove",this,"onMouseMove"),_4.connect(d,"onmouseup",this,"onMouseUp"),_4.connect(d,"ondragstart",_4.stopEvent),_4.connect(d.body,"onselectstart",_4.stopEvent),_b];if(h&&h.onMoveStart){h.onMoveStart(this);}},onMouseMove:function(e){_4.dnd.autoScroll(e);var m=this.marginBox;this.host.onMove(this,{l:m.l+e.pageX,t:m.t+e.pageY});_4.stopEvent(e);},onMouseUp:function(e){if(_4.isWebKit&&_4.isMac&&this.mouseButton==2?e.button==0:this.mouseButton==e.button){this.destroy();}_4.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=_4.marginBox(this.node);var b=_4.doc.body;var bs=_4.getComputedStyle(b);var bm=_4._getMarginBox(b,bs);var bc=_4._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);}_4.disconnect(this.events.pop());},destroy:function(){_4.forEach(this.events,_4.disconnect);var h=this.host;if(h&&h.onMoveStop){h.onMoveStop(this);}this.events=this.node=this.host=null;}});}if(!_4._hasResource["dojo.dnd.Moveable"]){_4._hasResource["dojo.dnd.Moveable"]=true;_4.provide("dojo.dnd.Moveable");_4.declare("dojo.dnd.Moveable",null,{handle:"",delay:0,skip:false,constructor:function(_c,_d){this.node=_4.byId(_c);if(!_d){_d={};}this.handle=_d.handle?_4.byId(_d.handle):null;if(!this.handle){this.handle=this.node;}this.delay=_d.delay>0?_d.delay:0;this.skip=_d.skip;this.mover=_d.mover?_d.mover:_4.dnd.Mover;this.events=[_4.connect(this.handle,"onmousedown",this,"onMouseDown"),_4.connect(this.handle,"ondragstart",this,"onSelectStart"),_4.connect(this.handle,"onselectstart",this,"onSelectStart")];},markupFactory:function(_e,_f){return new _4.dnd.Moveable(_f,_e);},destroy:function(){_4.forEach(this.events,_4.disconnect);this.events=this.node=this.handle=null;},onMouseDown:function(e){if(this.skip&&_4.dnd.isFormElement(e)){return;}if(this.delay){this.events.push(_4.connect(this.handle,"onmousemove",this,"onMouseMove"),_4.connect(this.handle,"onmouseup",this,"onMouseUp"));this._lastX=e.pageX;this._lastY=e.pageY;}else{this.onDragDetected(e);}_4.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);}_4.stopEvent(e);},onMouseUp:function(e){for(var i=0;i<2;++i){_4.disconnect(this.events.pop());}_4.stopEvent(e);},onSelectStart:function(e){if(!this.skip||!_4.dnd.isFormElement(e)){_4.stopEvent(e);}},onDragDetected:function(e){new this.mover(this.node,e,this);},onMoveStart:function(_10){_4.publish("/dnd/move/start",[_10]);_4.addClass(_4.body(),"dojoMove");_4.addClass(this.node,"dojoMoveItem");},onMoveStop:function(_11){_4.publish("/dnd/move/stop",[_11]);_4.removeClass(_4.body(),"dojoMove");_4.removeClass(this.node,"dojoMoveItem");},onFirstMove:function(_12){},onMove:function(_13,_14){this.onMoving(_13,_14);var s=_13.node.style;s.left=_14.l+"px";s.top=_14.t+"px";this.onMoved(_13,_14);},onMoving:function(_15,_16){},onMoved:function(_17,_18){}});}if(!_4._hasResource["dojo.dnd.move"]){_4._hasResource["dojo.dnd.move"]=true;_4.provide("dojo.dnd.move");_4.declare("dojo.dnd.move.constrainedMoveable",_4.dnd.Moveable,{constraints:function(){},within:false,markupFactory:function(_19,_1a){return new _4.dnd.move.constrainedMoveable(_1a,_19);},constructor:function(_1b,_1c){if(!_1c){_1c={};}this.constraints=_1c.constraints;this.within=_1c.within;},onFirstMove:function(_1d){var c=this.constraintBox=this.constraints.call(this,_1d);c.r=c.l+c.w;c.b=c.t+c.h;if(this.within){var mb=_4.marginBox(_1d.node);c.r-=mb.w;c.b-=mb.h;}},onMove:function(_1e,_1f){var c=this.constraintBox,s=_1e.node.style;s.left=(_1f.l<c.l?c.l:c.r<_1f.l?c.r:_1f.l)+"px";s.top=(_1f.t<c.t?c.t:c.b<_1f.t?c.b:_1f.t)+"px";}});_4.declare("dojo.dnd.move.boxConstrainedMoveable",_4.dnd.move.constrainedMoveable,{box:{},markupFactory:function(_20,_21){return new _4.dnd.move.boxConstrainedMoveable(_21,_20);},constructor:function(_22,_23){var box=_23&&_23.box;this.constraints=function(){return box;};}});_4.declare("dojo.dnd.move.parentConstrainedMoveable",_4.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(_24,_25){return new _4.dnd.move.parentConstrainedMoveable(_25,_24);},constructor:function(_26,_27){var _28=_27&&_27.area;this.constraints=function(){var n=this.node.parentNode,s=_4.getComputedStyle(n),mb=_4._getMarginBox(n,s);if(_28=="margin"){return mb;}var t=_4._getMarginExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(_28=="border"){return mb;}t=_4._getBorderExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(_28=="padding"){return mb;}t=_4._getPadExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;return mb;};}});_4.dnd.move.constrainedMover=function(fun,_29){_4.deprecated("dojo.dnd.move.constrainedMover, use dojo.dnd.move.constrainedMoveable instead");var _2a=function(_2b,e,_2c){_4.dnd.Mover.call(this,_2b,e,_2c);};_4.extend(_2a,_4.dnd.Mover.prototype);_4.extend(_2a,{onMouseMove:function(e){_4.dnd.autoScroll(e);var m=this.marginBox,c=this.constraintBox,l=m.l+e.pageX,t=m.t+e.pageY;l=l<c.l?c.l:c.r<l?c.r:l;t=t<c.t?c.t:c.b<t?c.b:t;this.host.onMove(this,{l:l,t:t});},onFirstMove:function(){_4.dnd.Mover.prototype.onFirstMove.call(this);var c=this.constraintBox=fun.call(this);c.r=c.l+c.w;c.b=c.t+c.h;if(_29){var mb=_4.marginBox(this.node);c.r-=mb.w;c.b-=mb.h;}}});return _2a;};_4.dnd.move.boxConstrainedMover=function(box,_2d){_4.deprecated("dojo.dnd.move.boxConstrainedMover, use dojo.dnd.move.boxConstrainedMoveable instead");return _4.dnd.move.constrainedMover(function(){return box;},_2d);};_4.dnd.move.parentConstrainedMover=function(_2e,_2f){_4.deprecated("dojo.dnd.move.parentConstrainedMover, use dojo.dnd.move.parentConstrainedMoveable instead");var fun=function(){var n=this.node.parentNode,s=_4.getComputedStyle(n),mb=_4._getMarginBox(n,s);if(_2e=="margin"){return mb;}var t=_4._getMarginExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(_2e=="border"){return mb;}t=_4._getBorderExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(_2e=="padding"){return mb;}t=_4._getPadExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;return mb;};return _4.dnd.move.constrainedMover(fun,_2f);};_4.dnd.constrainedMover=_4.dnd.move.constrainedMover;_4.dnd.boxConstrainedMover=_4.dnd.move.boxConstrainedMover;_4.dnd.parentConstrainedMover=_4.dnd.move.parentConstrainedMover;}if(!_4._hasResource["dojo.dnd.TimedMoveable"]){_4._hasResource["dojo.dnd.TimedMoveable"]=true;_4.provide("dojo.dnd.TimedMoveable");(function(){var _30=_4.dnd.Moveable.prototype.onMove;_4.declare("dojo.dnd.TimedMoveable",_4.dnd.Moveable,{timeout:40,constructor:function(_31,_32){if(!_32){_32={};}if(_32.timeout&&typeof _32.timeout=="number"&&_32.timeout>=0){this.timeout=_32.timeout;}},markupFactory:function(_33,_34){return new _4.dnd.TimedMoveable(_34,_33);},onMoveStop:function(_35){if(_35._timer){clearTimeout(_35._timer);_30.call(this,_35,_35._leftTop);}_4.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);},onMove:function(_36,_37){_36._leftTop=_37;if(!_36._timer){var _38=this;_36._timer=setTimeout(function(){_36._timer=null;_30.call(_38,_36,_36._leftTop);},this.timeout);}}});})();}if(!_4._hasResource["dojo.fx.Toggler"]){_4._hasResource["dojo.fx.Toggler"]=true;_4.provide("dojo.fx.Toggler");_4.declare("dojo.fx.Toggler",null,{node:null,showFunc:_4.fadeIn,hideFunc:_4.fadeOut,showDuration:200,hideDuration:200,constructor:function(_39){var _3a=this;_4.mixin(_3a,_39);_3a.node=_39.node;_3a._showArgs=_4.mixin({},_39);_3a._showArgs.node=_3a.node;_3a._showArgs.duration=_3a.showDuration;_3a.showAnim=_3a.showFunc(_3a._showArgs);_3a._hideArgs=_4.mixin({},_39);_3a._hideArgs.node=_3a.node;_3a._hideArgs.duration=_3a.hideDuration;_3a.hideAnim=_3a.hideFunc(_3a._hideArgs);_4.connect(_3a.showAnim,"beforeBegin",_4.hitch(_3a.hideAnim,"stop",true));_4.connect(_3a.hideAnim,"beforeBegin",_4.hitch(_3a.showAnim,"stop",true));},show:function(_3b){return this.showAnim.play(_3b||0);},hide:function(_3c){return this.hideAnim.play(_3c||0);}});}if(!_4._hasResource["dojo.fx"]){_4._hasResource["dojo.fx"]=true;_4.provide("dojo.fx");(function(){var d=_4,_3d={_fire:function(evt,_3e){if(this[evt]){this[evt].apply(this,_3e||[]);}return this;}};var _3f=function(_40){this._index=-1;this._animations=_40||[];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(_3f,{_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(_41,_42){if(!this._current){this._current=this._animations[this._index=0];}if(!_42&&this._current.status()=="playing"){return this;}var _43=d.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_44=d.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_45=d.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);d.disconnect(_43);d.disconnect(_44);d.disconnect(_45);});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(_46,_47){this.pause();var _48=this.duration*_46;this._current=null;d.some(this._animations,function(a){if(a.duration<=_48){this._current=a;return true;}_48-=a.duration;return false;});if(this._current){this._current.gotoPercent(_48/this._current.duration,_47);}return this;},stop:function(_49){if(this._current){if(_49){for(;this._index+1<this._animations.length;++this._index){this._animations[this._index].stop(true);}this._current=this._animations[this._index];}var e=d.connect(this._current,"onStop",this,function(arg){this._fire("onStop",arguments);d.disconnect(e);});this._current.stop();}return this;},status:function(){return this._current?this._current.status():"stopped";},destroy:function(){if(this._onAnimateCtx){d.disconnect(this._onAnimateCtx);}if(this._onEndCtx){d.disconnect(this._onEndCtx);}}});d.extend(_3f,_3d);_4.fx.chain=function(_4a){return new _3f(_4a);};var _4b=function(_4c){this._animations=_4c||[];this._connects=[];this._finished=0;this.duration=0;d.forEach(_4c,function(a){var _4d=a.duration;if(a.delay){_4d+=a.delay;}if(this.duration<_4d){this.duration=_4d;}this._connects.push(d.connect(a,"onEnd",this,"_onEnd"));},this);this._pseudoAnimation=new d.Animation({curve:[0,1],duration:this.duration});var _4e=this;d.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop","onEnd"],function(evt){_4e._connects.push(d.connect(_4e._pseudoAnimation,evt,function(){_4e._fire(evt,arguments);}));});};d.extend(_4b,{_doAction:function(_4f,_50){d.forEach(this._animations,function(a){a[_4f].apply(a,_50);});return this;},_onEnd:function(){if(++this._finished>this._animations.length){this._fire("onEnd");}},_call:function(_51,_52){var t=this._pseudoAnimation;t[_51].apply(t,_52);},play:function(_53,_54){this._finished=0;this._doAction("play",arguments);this._call("play",arguments);return this;},pause:function(){this._doAction("pause",arguments);this._call("pause",arguments);return this;},gotoPercent:function(_55,_56){var ms=this.duration*_55;d.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_56);});this._call("gotoPercent",arguments);return this;},stop:function(_57){this._doAction("stop",arguments);this._call("stop",arguments);return this;},status:function(){return this._pseudoAnimation.status();},destroy:function(){d.forEach(this._connects,_4.disconnect);}});d.extend(_4b,_3d);_4.fx.combine=function(_58){return new _4b(_58);};_4.fx.wipeIn=function(_59){var _5a=_59.node=d.byId(_59.node),s=_5a.style,o;var _5b=d.animateProperty(d.mixin({properties:{height:{start:function(){o=s.overflow;s.overflow="hidden";if(s.visibility=="hidden"||s.display=="none"){s.height="1px";s.display="";s.visibility="";return 1;}else{var _5c=d.style(_5a,"height");return Math.max(_5c,1);}},end:function(){return _5a.scrollHeight;}}}},_59));d.connect(_5b,"onEnd",function(){s.height="auto";s.overflow=o;});return _5b;};_4.fx.wipeOut=function(_5d){var _5e=_5d.node=d.byId(_5d.node),s=_5e.style,o;var _5f=d.animateProperty(d.mixin({properties:{height:{end:1}}},_5d));d.connect(_5f,"beforeBegin",function(){o=s.overflow;s.overflow="hidden";s.display="";});d.connect(_5f,"onEnd",function(){s.overflow=o;s.height="auto";s.display="none";});return _5f;};_4.fx.slideTo=function(_60){var _61=_60.node=d.byId(_60.node),top=null,_62=null;var _63=(function(n){return function(){var cs=d.getComputedStyle(n);var pos=cs.position;top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);_62=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);if(pos!="absolute"&&pos!="relative"){var ret=d.position(n,true);top=ret.y;_62=ret.x;n.style.position="absolute";n.style.top=top+"px";n.style.left=_62+"px";}};})(_61);_63();var _64=d.animateProperty(d.mixin({properties:{top:_60.top||0,left:_60.left||0}},_60));d.connect(_64,"beforeBegin",_64,_63);return _64;};})();}if(!_4._hasResource["dijit._base.manager"]){_4._hasResource["dijit._base.manager"]=true;_4.provide("dijit._base.manager");_4.declare("dijit.WidgetSet",null,{constructor:function(){this._hash={};this.length=0;},add:function(_65){if(this._hash[_65.id]){throw new Error("Tried to register widget with id=="+_65.id+" but that id is already registered");}this._hash[_65.id]=_65;this.length++;},remove:function(id){if(this._hash[id]){delete this._hash[id];this.length--;}},forEach:function(_66,_67){_67=_67||_4.global;var i=0,id;for(id in this._hash){_66.call(_67,this._hash[id],i++,this._hash);}return this;},filter:function(_68,_69){_69=_69||_4.global;var res=new _5.WidgetSet(),i=0,id;for(id in this._hash){var w=this._hash[id];if(_68.call(_69,w,i++,this._hash)){res.add(w);}}return res;},byId:function(id){return this._hash[id];},byClass:function(cls){var res=new _5.WidgetSet(),id,_6a;for(id in this._hash){_6a=this._hash[id];if(_6a.declaredClass==cls){res.add(_6a);}}return res;},toArray:function(){var ar=[];for(var id in this._hash){ar.push(this._hash[id]);}return ar;},map:function(_6b,_6c){return _4.map(this.toArray(),_6b,_6c);},every:function(_6d,_6e){_6e=_6e||_4.global;var x=0,i;for(i in this._hash){if(!_6d.call(_6e,this._hash[i],x++,this._hash)){return false;}}return true;},some:function(_6f,_70){_70=_70||_4.global;var x=0,i;for(i in this._hash){if(_6f.call(_70,this._hash[i],x++,this._hash)){return true;}}return false;}});_5.registry=new _5.WidgetSet();_5._widgetTypeCtr={};_5.getUniqueId=function(_71){var id;do{id=_71+"_"+(_71 in _5._widgetTypeCtr?++_5._widgetTypeCtr[_71]:_5._widgetTypeCtr[_71]=0);}while(_5.byId(id));return id;};_5.findWidgets=function(_72){var _73=[];function _74(_75){for(var _76=_75.firstChild;_76;_76=_76.nextSibling){if(_76.nodeType==1){var _77=_76.getAttribute("widgetId");if(_77){var _78=_5.byId(_77);_73.push(_78);}else{_74(_76);}}}};_74(_72);return _73;};_5._destroyAll=function(){_5._curFocus=null;_5._prevFocus=null;_5._activeStack=[];_4.forEach(_5.findWidgets(_4.body()),function(_79){if(!_79._destroyed){if(_79.destroyRecursive){_79.destroyRecursive();}else{if(_79.destroy){_79.destroy();}}}});};if(_4.isIE){_4.addOnWindowUnload(function(){_5._destroyAll();});}_5.byId=function(id){return typeof id=="string"?_5.registry._hash[id]:id;};_5.byNode=function(_7a){return _5.registry.byId(_7a.getAttribute("widgetId"));};_5.getEnclosingWidget=function(_7b){while(_7b){var id=_7b.getAttribute&&_7b.getAttribute("widgetId");if(id){return _5.byId(id);}_7b=_7b.parentNode;}return null;};_5._isElementShown=function(_7c){var _7d=_4.style(_7c);return (_7d.visibility!="hidden")&&(_7d.visibility!="collapsed")&&(_7d.display!="none")&&(_4.attr(_7c,"type")!="hidden");};_5.isTabNavigable=function(_7e){if(_4.attr(_7e,"disabled")){return false;}else{if(_4.hasAttr(_7e,"tabIndex")){return _4.attr(_7e,"tabIndex")>=0;}else{switch(_7e.nodeName.toLowerCase()){case "a":return _4.hasAttr(_7e,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":if(_4.isMoz){return _7e.contentDocument.designMode=="on";}else{if(_4.isWebKit){var doc=_7e.contentDocument,_7f=doc&&doc.body;return _7f&&_7f.contentEditable=="true";}else{doc=_7e.contentWindow.document;_7f=doc&&doc.body;return _7f&&_7f.firstChild&&_7f.firstChild.contentEditable=="true";}}default:return _7e.contentEditable=="true";}}}};_5._getTabNavigable=function(_80){var _81,_82,_83,_84,_85,_86;var _87=function(_88){_4.query("> *",_88).forEach(function(_89){var _8a=_5._isElementShown(_89);if(_8a&&_5.isTabNavigable(_89)){var _8b=_4.attr(_89,"tabIndex");if(!_4.hasAttr(_89,"tabIndex")||_8b==0){if(!_81){_81=_89;}_82=_89;}else{if(_8b>0){if(!_83||_8b<_84){_84=_8b;_83=_89;}if(!_85||_8b>=_86){_86=_8b;_85=_89;}}}}if(_8a&&_89.nodeName.toUpperCase()!="SELECT"){_87(_89);}});};if(_5._isElementShown(_80)){_87(_80);}return {first:_81,last:_82,lowest:_83,highest:_85};};_5.getFirstInTabbingOrder=function(_8c){var _8d=_5._getTabNavigable(_4.byId(_8c));return _8d.lowest?_8d.lowest:_8d.first;};_5.getLastInTabbingOrder=function(_8e){var _8f=_5._getTabNavigable(_4.byId(_8e));return _8f.last?_8f.last:_8f.highest;};_5.defaultDuration=_4.config["defaultDuration"]||200;}if(!_4._hasResource["dijit._base.focus"]){_4._hasResource["dijit._base.focus"]=true;_4.provide("dijit._base.focus");_4.mixin(_5,{_curFocus:null,_prevFocus:null,isCollapsed:function(){return _5.getBookmark().isCollapsed;},getBookmark:function(){var bm,rg,tg,sel=_4.doc.selection,cf=_5._curFocus;if(_4.global.getSelection){sel=_4.global.getSelection();if(sel){if(sel.isCollapsed){tg=cf?cf.tagName:"";if(tg){tg=tg.toLowerCase();if(tg=="textarea"||(tg=="input"&&(!cf.type||cf.type.toLowerCase()=="text"))){sel={start:cf.selectionStart,end:cf.selectionEnd,node:cf,pRange:true};return {isCollapsed:(sel.end<=sel.start),mark:sel};}}bm={isCollapsed:true};}else{rg=sel.getRangeAt(0);bm={isCollapsed:false,mark:rg.cloneRange()};}}}else{if(sel){tg=cf?cf.tagName:"";tg=tg.toLowerCase();if(cf&&tg&&(tg=="button"||tg=="textarea"||tg=="input")){if(sel.type&&sel.type.toLowerCase()=="none"){return {isCollapsed:true,mark:null};}else{rg=sel.createRange();return {isCollapsed:rg.text&&rg.text.length?false:true,mark:{range:rg,pRange:true}};}}bm={};try{rg=sel.createRange();bm.isCollapsed=!(sel.type=="Text"?rg.htmlText.length:rg.length);}catch(e){bm.isCollapsed=true;return bm;}if(sel.type.toUpperCase()=="CONTROL"){if(rg.length){bm.mark=[];var i=0,len=rg.length;while(i<len){bm.mark.push(rg.item(i++));}}else{bm.isCollapsed=true;bm.mark=null;}}else{bm.mark=rg.getBookmark();}}else{console.warn("No idea how to store the current selection for this browser!");}}return bm;},moveToBookmark:function(_90){var _91=_4.doc,_92=_90.mark;if(_92){if(_4.global.getSelection){var sel=_4.global.getSelection();if(sel&&sel.removeAllRanges){if(_92.pRange){var r=_92;var n=r.node;n.selectionStart=r.start;n.selectionEnd=r.end;}else{sel.removeAllRanges();sel.addRange(_92);}}else{console.warn("No idea how to restore selection for this browser!");}}else{if(_91.selection&&_92){var rg;if(_92.pRange){rg=_92.range;}else{if(_4.isArray(_92)){rg=_91.body.createControlRange();_4.forEach(_92,function(n){rg.addElement(n);});}else{rg=_91.body.createTextRange();rg.moveToBookmark(_92);}}rg.select();}}}},getFocus:function(_93,_94){var _95=!_5._curFocus||(_93&&_4.isDescendant(_5._curFocus,_93.domNode))?_5._prevFocus:_5._curFocus;return {node:_95,bookmark:(_95==_5._curFocus)&&_4.withGlobal(_94||_4.global,_5.getBookmark),openedForWindow:_94};},focus:function(_96){if(!_96){return;}var _97="node" in _96?_96.node:_96,_98=_96.bookmark,_99=_96.openedForWindow,_9a=_98?_98.isCollapsed:false;if(_97){var _9b=(_97.tagName.toLowerCase()=="iframe")?_97.contentWindow:_97;if(_9b&&_9b.focus){try{_9b.focus();}catch(e){}}_5._onFocusNode(_97);}if(_98&&_4.withGlobal(_99||_4.global,_5.isCollapsed)&&!_9a){if(_99){_99.focus();}try{_4.withGlobal(_99||_4.global,_5.moveToBookmark,null,[_98]);}catch(e2){}}},_activeStack:[],registerIframe:function(_9c){return _5.registerWin(_9c.contentWindow,_9c);},unregisterIframe:function(_9d){_5.unregisterWin(_9d);},registerWin:function(_9e,_9f){var _a0=function(evt){_5._justMouseDowned=true;setTimeout(function(){_5._justMouseDowned=false;},0);_5._onTouchNode(_9f||evt.target||evt.srcElement,"mouse");};var doc=_4.isIE?_9e.document.documentElement:_9e.document;if(doc){if(_4.isIE){doc.attachEvent("onmousedown",_a0);var _a1=function(evt){if(evt.srcElement.tagName.toLowerCase()!="#document"&&_5.isTabNavigable(evt.srcElement)){_5._onFocusNode(_9f||evt.srcElement);}else{_5._onTouchNode(_9f||evt.srcElement);}};doc.attachEvent("onactivate",_a1);var _a2=function(evt){_5._onBlurNode(_9f||evt.srcElement);};doc.attachEvent("ondeactivate",_a2);return function(){doc.detachEvent("onmousedown",_a0);doc.detachEvent("onactivate",_a1);doc.detachEvent("ondeactivate",_a2);doc=null;};}else{doc.addEventListener("mousedown",_a0,true);var _a3=function(evt){_5._onFocusNode(_9f||evt.target);};doc.addEventListener("focus",_a3,true);var _a4=function(evt){_5._onBlurNode(_9f||evt.target);};doc.addEventListener("blur",_a4,true);return function(){doc.removeEventListener("mousedown",_a0,true);doc.removeEventListener("focus",_a3,true);doc.removeEventListener("blur",_a4,true);doc=null;};}}},unregisterWin:function(_a5){_a5&&_a5();},_onBlurNode:function(_a6){_5._prevFocus=_5._curFocus;_5._curFocus=null;if(_5._justMouseDowned){return;}if(_5._clearActiveWidgetsTimer){clearTimeout(_5._clearActiveWidgetsTimer);}_5._clearActiveWidgetsTimer=setTimeout(function(){delete _5._clearActiveWidgetsTimer;_5._setStack([]);_5._prevFocus=null;},100);},_onTouchNode:function(_a7,by){if(_5._clearActiveWidgetsTimer){clearTimeout(_5._clearActiveWidgetsTimer);delete _5._clearActiveWidgetsTimer;}var _a8=[];try{while(_a7){var _a9=_4.attr(_a7,"dijitPopupParent");if(_a9){_a7=_5.byId(_a9).domNode;}else{if(_a7.tagName&&_a7.tagName.toLowerCase()=="body"){if(_a7===_4.body()){break;}_a7=_5.getDocumentWindow(_a7.ownerDocument).frameElement;}else{var id=_a7.getAttribute&&_a7.getAttribute("widgetId");if(id){_a8.unshift(id);}_a7=_a7.parentNode;}}}}catch(e){}_5._setStack(_a8,by);},_onFocusNode:function(_aa){if(!_aa){return;}if(_aa.nodeType==9){return;}_5._onTouchNode(_aa);if(_aa==_5._curFocus){return;}if(_5._curFocus){_5._prevFocus=_5._curFocus;}_5._curFocus=_aa;_4.publish("focusNode",[_aa]);},_setStack:function(_ab,by){var _ac=_5._activeStack;_5._activeStack=_ab;for(var _ad=0;_ad<Math.min(_ac.length,_ab.length);_ad++){if(_ac[_ad]!=_ab[_ad]){break;}}var _ae;for(var i=_ac.length-1;i>=_ad;i--){_ae=_5.byId(_ac[i]);if(_ae){_ae._focused=false;_ae._hasBeenBlurred=true;if(_ae._onBlur){_ae._onBlur(by);}if(_ae._setStateClass){_ae._setStateClass();}_4.publish("widgetBlur",[_ae,by]);}}for(i=_ad;i<_ab.length;i++){_ae=_5.byId(_ab[i]);if(_ae){_ae._focused=true;if(_ae._onFocus){_ae._onFocus(by);}if(_ae._setStateClass){_ae._setStateClass();}_4.publish("widgetFocus",[_ae,by]);}}}});_4.addOnLoad(function(){var _af=_5.registerWin(window);if(_4.isIE){_4.addOnWindowUnload(function(){_5.unregisterWin(_af);_af=null;});}});}if(!_4._hasResource["dojo.AdapterRegistry"]){_4._hasResource["dojo.AdapterRegistry"]=true;_4.provide("dojo.AdapterRegistry");_4.AdapterRegistry=function(_b0){this.pairs=[];this.returnWrappers=_b0||false;};_4.extend(_4.AdapterRegistry,{register:function(_b1,_b2,_b3,_b4,_b5){this.pairs[((_b5)?"unshift":"push")]([_b1,_b2,_b3,_b4]);},match:function(){for(var i=0;i<this.pairs.length;i++){var _b6=this.pairs[i];if(_b6[1].apply(this,arguments)){if((_b6[3])||(this.returnWrappers)){return _b6[2];}else{return _b6[2].apply(this,arguments);}}}throw new Error("No match found");},unregister:function(_b7){for(var i=0;i<this.pairs.length;i++){var _b8=this.pairs[i];if(_b8[0]==_b7){this.pairs.splice(i,1);return true;}}return false;}});}if(!_4._hasResource["dijit._base.place"]){_4._hasResource["dijit._base.place"]=true;_4.provide("dijit._base.place");_5.getViewport=function(){var _b9=(_4.doc.compatMode=="BackCompat")?_4.body():_4.doc.documentElement;var _ba=_4._docScroll();return {w:_b9.clientWidth,h:_b9.clientHeight,l:_ba.x,t:_ba.y};};_5.placeOnScreen=function(_bb,pos,_bc,_bd){var _be=_4.map(_bc,function(_bf){var c={corner:_bf,pos:{x:pos.x,y:pos.y}};if(_bd){c.pos.x+=_bf.charAt(1)=="L"?_bd.x:-_bd.x;c.pos.y+=_bf.charAt(0)=="T"?_bd.y:-_bd.y;}return c;});return _5._place(_bb,_be);};_5._place=function(_c0,_c1,_c2){var _c3=_5.getViewport();if(!_c0.parentNode||String(_c0.parentNode.tagName).toLowerCase()!="body"){_4.body().appendChild(_c0);}var _c4=null;_4.some(_c1,function(_c5){var _c6=_c5.corner;var pos=_c5.pos;if(_c2){_c2(_c0,_c5.aroundCorner,_c6);}var _c7=_c0.style;var _c8=_c7.display;var _c9=_c7.visibility;_c7.visibility="hidden";_c7.display="";var mb=_4.marginBox(_c0);_c7.display=_c8;_c7.visibility=_c9;var _ca=Math.max(_c3.l,_c6.charAt(1)=="L"?pos.x:(pos.x-mb.w)),_cb=Math.max(_c3.t,_c6.charAt(0)=="T"?pos.y:(pos.y-mb.h)),_cc=Math.min(_c3.l+_c3.w,_c6.charAt(1)=="L"?(_ca+mb.w):pos.x),_cd=Math.min(_c3.t+_c3.h,_c6.charAt(0)=="T"?(_cb+mb.h):pos.y),_ce=_cc-_ca,_cf=_cd-_cb,_d0=(mb.w-_ce)+(mb.h-_cf);if(_c4==null||_d0<_c4.overflow){_c4={corner:_c6,aroundCorner:_c5.aroundCorner,x:_ca,y:_cb,w:_ce,h:_cf,overflow:_d0};}return !_d0;});_c0.style.left=_c4.x+"px";_c0.style.top=_c4.y+"px";if(_c4.overflow&&_c2){_c2(_c0,_c4.aroundCorner,_c4.corner);}return _c4;};_5.placeOnScreenAroundNode=function(_d1,_d2,_d3,_d4){_d2=_4.byId(_d2);var _d5=_d2.style.display;_d2.style.display="";var _d6=_4.position(_d2,true);_d2.style.display=_d5;return _5._placeOnScreenAroundRect(_d1,_d6.x,_d6.y,_d6.w,_d6.h,_d3,_d4);};_5.placeOnScreenAroundRectangle=function(_d7,_d8,_d9,_da){return _5._placeOnScreenAroundRect(_d7,_d8.x,_d8.y,_d8.width,_d8.height,_d9,_da);};_5._placeOnScreenAroundRect=function(_db,x,y,_dc,_dd,_de,_df){var _e0=[];for(var _e1 in _de){_e0.push({aroundCorner:_e1,corner:_de[_e1],pos:{x:x+(_e1.charAt(1)=="L"?0:_dc),y:y+(_e1.charAt(0)=="T"?0:_dd)}});}return _5._place(_db,_e0,_df);};_5.placementRegistry=new _4.AdapterRegistry();_5.placementRegistry.register("node",function(n,x){return typeof x=="object"&&typeof x.offsetWidth!="undefined"&&typeof x.offsetHeight!="undefined";},_5.placeOnScreenAroundNode);_5.placementRegistry.register("rect",function(n,x){return typeof x=="object"&&"x" in x&&"y" in x&&"width" in x&&"height" in x;},_5.placeOnScreenAroundRectangle);_5.placeOnScreenAroundElement=function(_e2,_e3,_e4,_e5){return _5.placementRegistry.match.apply(_5.placementRegistry,arguments);};_5.getPopupAlignment=function(_e6,_e7){var _e8={};_4.forEach(_e6,function(pos){switch(pos){case "after":_e8[_e7?"BR":"BL"]=_e7?"BL":"BR";break;case "before":_e8[_e7?"BL":"BR"]=_e7?"BR":"BL";break;case "below":_e8[_e7?"BL":"BR"]=_e7?"TL":"TR";_e8[_e7?"BR":"BL"]=_e7?"TR":"TL";break;case "above":default:_e8[_e7?"TL":"TR"]=_e7?"BL":"BR";_e8[_e7?"TR":"TL"]=_e7?"BR":"BL";break;}});return _e8;};_5.getPopupAroundAlignment=function(_e9,_ea){var _eb={};_4.forEach(_e9,function(pos){switch(pos){case "after":_eb[_ea?"BR":"BL"]=_ea?"BL":"BR";break;case "before":_eb[_ea?"BL":"BR"]=_ea?"BR":"BL";break;case "below":_eb[_ea?"BL":"BR"]=_ea?"TL":"TR";_eb[_ea?"BR":"BL"]=_ea?"TR":"TL";break;case "above":default:_eb[_ea?"TL":"TR"]=_ea?"BL":"BR";_eb[_ea?"TR":"TL"]=_ea?"BR":"BL";break;}});return _eb;};}if(!_4._hasResource["dijit._base.window"]){_4._hasResource["dijit._base.window"]=true;_4.provide("dijit._base.window");_5.getDocumentWindow=function(doc){if(_4.isIE&&window!==document.parentWindow&&!doc._parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc._parentWindow||doc.parentWindow||doc.defaultView;};}if(!_4._hasResource["dijit._base.popup"]){_4._hasResource["dijit._base.popup"]=true;_4.provide("dijit._base.popup");_5.popup=new function(){var _ec=[],_ed=1000,_ee=1;this.moveOffScreen=function(_ef){var s=_ef.style;s.visibility="hidden";s.position="absolute";s.top="-9999px";if(s.display=="none"){s.display="";}_4.body().appendChild(_ef);};var _f0=function(){for(var pi=_ec.length-1;pi>0&&_ec[pi].parent===_ec[pi-1].widget;pi--){}return _ec[pi];};var _f1=[];this.open=function(_f2){var _f3=_f2.popup,_f4=_f2.orient||(_4._isBodyLtr()?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"}),_f5=_f2.around,id=(_f2.around&&_f2.around.id)?(_f2.around.id+"_dropdown"):("popup_"+_ee++);var _f6=_f1.pop(),_f7,_f8;if(!_f6){_f7=_4.create("div",{"class":"dijitPopup"},_4.body());_5.setWaiRole(_f7,"presentation");}else{_f7=_f6[0];_f8=_f6[1];}_4.attr(_f7,{id:id,style:{zIndex:_ed+_ec.length,visibility:"hidden",top:"-9999px"},dijitPopupParent:_f2.parent?_f2.parent.id:""});var s=_f3.domNode.style;s.display="";s.visibility="";s.position="";s.top="0px";_f7.appendChild(_f3.domNode);if(!_f8){_f8=new _5.BackgroundIframe(_f7);}else{_f8.resize(_f7);}var _f9=_f5?_5.placeOnScreenAroundElement(_f7,_f5,_f4,_f3.orient?_4.hitch(_f3,"orient"):null):_5.placeOnScreen(_f7,_f2,_f4=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],_f2.padding);_f7.style.visibility="visible";var _fa=[];_fa.push(_4.connect(_f7,"onkeypress",this,function(evt){if(evt.charOrCode==_4.keys.ESCAPE&&_f2.onCancel){_4.stopEvent(evt);_f2.onCancel();}else{if(evt.charOrCode===_4.keys.TAB){_4.stopEvent(evt);var _fb=_f0();if(_fb&&_fb.onCancel){_fb.onCancel();}}}}));if(_f3.onCancel){_fa.push(_4.connect(_f3,"onCancel",_f2.onCancel));}_fa.push(_4.connect(_f3,_f3.onExecute?"onExecute":"onChange",function(){var _fc=_f0();if(_fc&&_fc.onExecute){_fc.onExecute();}}));_ec.push({wrapper:_f7,iframe:_f8,widget:_f3,parent:_f2.parent,onExecute:_f2.onExecute,onCancel:_f2.onCancel,onClose:_f2.onClose,handlers:_fa});if(_f3.onOpen){_f3.onOpen(_f9);}return _f9;};this.close=function(_fd){while(_4.some(_ec,function(_fe){return _fe.widget==_fd;})){var top=_ec.pop(),_ff=top.wrapper,_100=top.iframe,_101=top.widget,_102=top.onClose;if(_101.onClose){_101.onClose();}_4.forEach(top.handlers,_4.disconnect);if(_101&&_101.domNode){this.moveOffScreen(_101.domNode);}_ff.style.top="-9999px";_ff.style.visibility="hidden";_f1.push([_ff,_100]);if(_102){_102();}}};}();_5._frames=new function(){var _103=[];this.pop=function(){var _104;if(_103.length){_104=_103.pop();_104.style.display="";}else{if(_4.isIE){var burl=_4.config["dojoBlankHtmlUrl"]||(_4.moduleUrl("dojo","resources/blank.html")+"")||"javascript:\"\"";var html="<iframe src='"+burl+"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_104=_4.doc.createElement(html);}else{_104=_4.create("iframe");_104.src="javascript:\"\"";_104.className="dijitBackgroundIframe";_4.style(_104,"opacity",0.1);}_104.tabIndex=-1;}return _104;};this.push=function(_105){_105.style.display="none";_103.push(_105);};}();_5.BackgroundIframe=function(node){if(!node.id){throw new Error("no id");}if(_4.isIE||_4.isMoz){var _106=_5._frames.pop();node.appendChild(_106);if(_4.isIE<7){this.resize(node);this._conn=_4.connect(node,"onresize",this,function(){this.resize(node);});}else{_4.style(_106,{width:"100%",height:"100%"});}this.iframe=_106;}};_4.extend(_5.BackgroundIframe,{resize:function(node){if(this.iframe&&_4.isIE<7){_4.style(this.iframe,{width:node.offsetWidth+"px",height:node.offsetHeight+"px"});}},destroy:function(){if(this._conn){_4.disconnect(this._conn);this._conn=null;}if(this.iframe){_5._frames.push(this.iframe);delete this.iframe;}}});}if(!_4._hasResource["dijit._base.scroll"]){_4._hasResource["dijit._base.scroll"]=true;_4.provide("dijit._base.scroll");_5.scrollIntoView=function(node,pos){try{node=_4.byId(node);var doc=node.ownerDocument||_4.doc,body=doc.body||_4.body(),html=doc.documentElement||body.parentNode,isIE=_4.isIE,isWK=_4.isWebKit;if((!(_4.isMoz||isIE||isWK)||node==body||node==html)&&(typeof node.scrollIntoView!="undefined")){node.scrollIntoView(false);return;}var _107=doc.compatMode=="BackCompat",_108=_107?body:html,_109=isWK?body:_108,_10a=_108.clientWidth,_10b=_108.clientHeight,rtl=!_4._isBodyLtr(),_10c=pos||_4.position(node),el=node.parentNode,_10d=function(el){return ((isIE<=6||(isIE&&_107))?false:(_4.style(el,"position").toLowerCase()=="fixed"));};if(_10d(node)){return;}while(el){if(el==body){el=_109;}var _10e=_4.position(el),_10f=_10d(el);with(_10e){if(el==_109){w=_10a,h=_10b;if(_109==html&&isIE&&rtl){x+=_109.offsetWidth-w;}if(x<0||!isIE){x=0;}if(y<0||!isIE){y=0;}}else{var pb=_4._getPadBorderExtents(el);w-=pb.w;h-=pb.h;x+=pb.l;y+=pb.t;}with(el){if(el!=_109){var _110=clientWidth,_111=w-_110;if(_110>0&&_111>0){w=_110;if(isIE&&rtl){x+=_111;}}_110=clientHeight;_111=h-_110;if(_110>0&&_111>0){h=_110;}}if(_10f){if(y<0){h+=y,y=0;}if(x<0){w+=x,x=0;}if(y+h>_10b){h=_10b-y;}if(x+w>_10a){w=_10a-x;}}var l=_10c.x-x,t=_10c.y-Math.max(y,0),r=l+_10c.w-w,bot=t+_10c.h-h;if(r*l>0){var s=Math[l<0?"max":"min"](l,r);_10c.x+=scrollLeft;scrollLeft+=(isIE>=8&&!_107&&rtl)?-s:s;_10c.x-=scrollLeft;}if(bot*t>0){_10c.y+=scrollTop;scrollTop+=Math[t<0?"max":"min"](t,bot);_10c.y-=scrollTop;}}}el=(el!=_109)&&!_10f&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);node.scrollIntoView(false);}};}if(!_4._hasResource["dijit._base.sniff"]){_4._hasResource["dijit._base.sniff"]=true;_4.provide("dijit._base.sniff");(function(){var d=_4,html=d.doc.documentElement,ie=d.isIE,_112=d.isOpera,maj=Math.floor,ff=d.isFF,_113=d.boxModel.replace(/-/,""),_114={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_ie8:maj(ie)==8,dj_iequirks:ie&&d.isQuirks,dj_opera:_112,dj_khtml:d.isKhtml,dj_webkit:d.isWebKit,dj_safari:d.isSafari,dj_chrome:d.isChrome,dj_gecko:d.isMozilla,dj_ff3:maj(ff)==3};_114["dj_"+_113]=true;for(var p in _114){if(_114[p]){if(html.className){html.className+=" "+p;}else{html.className=p;}}}_4._loaders.unshift(function(){if(!_4._isBodyLtr()){html.className+=" dijitRtl";for(var p in _114){if(_114[p]){html.className+=" "+p+"-rtl";}}}});})();}if(!_4._hasResource["dijit._base.typematic"]){_4._hasResource["dijit._base.typematic"]=true;_4.provide("dijit._base.typematic");_5.typematic={_fireEventAndReload:function(){this._timer=null;this._callback(++this._count,this._node,this._evt);this._currentTimeout=Math.max(this._currentTimeout<0?this._initialDelay:(this._subsequentDelay>1?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay)),10);this._timer=setTimeout(_4.hitch(this,"_fireEventAndReload"),this._currentTimeout);},trigger:function(evt,_115,node,_116,obj,_117,_118){if(obj!=this._obj){this.stop();this._initialDelay=_118||500;this._subsequentDelay=_117||0.9;this._obj=obj;this._evt=evt;this._node=node;this._currentTimeout=-1;this._count=-1;this._callback=_4.hitch(_115,_116);this._fireEventAndReload();}},stop:function(){if(this._timer){clearTimeout(this._timer);this._timer=null;}if(this._obj){this._callback(-1,this._node,this._evt);this._obj=null;}},addKeyListener:function(node,_119,_11a,_11b,_11c,_11d){if(_119.keyCode){_119.charOrCode=_119.keyCode;_4.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_119.charCode){_119.charOrCode=String.fromCharCode(_119.charCode);_4.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}}return [_4.connect(node,"onkeypress",this,function(evt){if(evt.charOrCode==_119.charOrCode&&(_119.ctrlKey===undefined||_119.ctrlKey==evt.ctrlKey)&&(_119.altKey===undefined||_119.altKey==evt.altKey)&&(_119.metaKey===undefined||_119.metaKey==(evt.metaKey||false))&&(_119.shiftKey===undefined||_119.shiftKey==evt.shiftKey)){_4.stopEvent(evt);_5.typematic.trigger(_119,_11a,node,_11b,_119,_11c,_11d);}else{if(_5.typematic._obj==_119){_5.typematic.stop();}}}),_4.connect(node,"onkeyup",this,function(evt){if(_5.typematic._obj==_119){_5.typematic.stop();}})];},addMouseListener:function(node,_11e,_11f,_120,_121){var dc=_4.connect;return [dc(node,"mousedown",this,function(evt){_4.stopEvent(evt);_5.typematic.trigger(evt,_11e,node,_11f,node,_120,_121);}),dc(node,"mouseup",this,function(evt){_4.stopEvent(evt);_5.typematic.stop();}),dc(node,"mouseout",this,function(evt){_4.stopEvent(evt);_5.typematic.stop();}),dc(node,"mousemove",this,function(evt){_4.stopEvent(evt);}),dc(node,"dblclick",this,function(evt){_4.stopEvent(evt);if(_4.isIE){_5.typematic.trigger(evt,_11e,node,_11f,node,_120,_121);setTimeout(_4.hitch(this,_5.typematic.stop),50);}})];},addListener:function(_122,_123,_124,_125,_126,_127,_128){return this.addKeyListener(_123,_124,_125,_126,_127,_128).concat(this.addMouseListener(_122,_125,_126,_127,_128));}};}if(!_4._hasResource["dijit._base.wai"]){_4._hasResource["dijit._base.wai"]=true;_4.provide("dijit._base.wai");_5.wai={onload:function(){var div=_4.create("div",{id:"a11yTestNode",style:{cssText:"border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+(_4.config.blankGif||_4.moduleUrl("dojo","resources/blank.gif"))+"\");"}},_4.body());var cs=_4.getComputedStyle(div);if(cs){var _129=cs.backgroundImage;var _12a=(cs.borderTopColor==cs.borderRightColor)||(_129!=null&&(_129=="none"||_129=="url(invalid-url:)"));_4[_12a?"addClass":"removeClass"](_4.body(),"dijit_a11y");if(_4.isIE){div.outerHTML="";}else{_4.body().removeChild(div);}}}};if(_4.isIE||_4.isMoz){_4._loaders.unshift(_5.wai.onload);}_4.mixin(_5,{_XhtmlRoles:/banner|contentinfo|definition|main|navigation|search|note|secondary|seealso/,hasWaiRole:function(elem,role){var _12b=this.getWaiRole(elem);return role?(_12b.indexOf(role)>-1):(_12b.length>0);},getWaiRole:function(elem){return _4.trim((_4.attr(elem,"role")||"").replace(this._XhtmlRoles,"").replace("wairole:",""));},setWaiRole:function(elem,role){var _12c=_4.attr(elem,"role")||"";if(!this._XhtmlRoles.test(_12c)){_4.attr(elem,"role",role);}else{if((" "+_12c+" ").indexOf(" "+role+" ")<0){var _12d=_4.trim(_12c.replace(this._XhtmlRoles,""));var _12e=_4.trim(_12c.replace(_12d,""));_4.attr(elem,"role",_12e+(_12e?" ":"")+role);}}},removeWaiRole:function(elem,role){var _12f=_4.attr(elem,"role");if(!_12f){return;}if(role){var t=_4.trim((" "+_12f+" ").replace(" "+role+" "," "));_4.attr(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,_130){return elem.hasAttribute?elem.hasAttribute("aria-"+_130):!!elem.getAttribute("aria-"+_130);},getWaiState:function(elem,_131){return elem.getAttribute("aria-"+_131)||"";},setWaiState:function(elem,_132,_133){elem.setAttribute("aria-"+_132,_133);},removeWaiState:function(elem,_134){elem.removeAttribute("aria-"+_134);}});}if(!_4._hasResource["dijit._base"]){_4._hasResource["dijit._base"]=true;_4.provide("dijit._base");}if(!_4._hasResource["dijit._Widget"]){_4._hasResource["dijit._Widget"]=true;_4.provide("dijit._Widget");_4.require("dijit._base");_4.connect(_4,"_connect",function(_135,_136){if(_135&&_4.isFunction(_135._onConnect)){_135._onConnect(_136);}});_5._connectOnUseEventHandler=function(_137){};_5._lastKeyDownNode=null;if(_4.isIE){(function(){var _138=function(evt){_5._lastKeyDownNode=evt.srcElement;};_4.doc.attachEvent("onkeydown",_138);_4.addOnWindowUnload(function(){_4.doc.detachEvent("onkeydown",_138);});})();}else{_4.doc.addEventListener("keydown",function(evt){_5._lastKeyDownNode=evt.target;},true);}(function(){var _139={},_13a=function(_13b){var dc=_13b.declaredClass;if(!_139[dc]){var r=[],_13c,_13d=_13b.constructor.prototype;for(var _13e in _13d){if(_4.isFunction(_13d[_13e])&&(_13c=_13e.match(/^_set([a-zA-Z]*)Attr$/))&&_13c[1]){r.push(_13c[1].charAt(0).toLowerCase()+_13c[1].substr(1));}}_139[dc]=r;}return _139[dc]||[];};_4.declare("dijit._Widget",null,{id:"",lang:"",dir:"","class":"",style:"",title:"",tooltip:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},_deferredConnects:{onClick:"",onDblClick:"",onKeyDown:"",onKeyPress:"",onKeyUp:"",onMouseMove:"",onMouseDown:"",onMouseOut:"",onMouseOver:"",onMouseLeave:"",onMouseEnter:"",onMouseUp:""},onClick:_5._connectOnUseEventHandler,onDblClick:_5._connectOnUseEventHandler,onKeyDown:_5._connectOnUseEventHandler,onKeyPress:_5._connectOnUseEventHandler,onKeyUp:_5._connectOnUseEventHandler,onMouseDown:_5._connectOnUseEventHandler,onMouseMove:_5._connectOnUseEventHandler,onMouseOut:_5._connectOnUseEventHandler,onMouseOver:_5._connectOnUseEventHandler,onMouseLeave:_5._connectOnUseEventHandler,onMouseEnter:_5._connectOnUseEventHandler,onMouseUp:_5._connectOnUseEventHandler,_blankGif:(_4.config.blankGif||_4.moduleUrl("dojo","resources/blank.gif")).toString(),postscript:function(_13f,_140){this.create(_13f,_140);},create:function(_141,_142){this.srcNodeRef=_4.byId(_142);this._connects=[];this._subscribes=[];this._deferredConnects=_4.clone(this._deferredConnects);for(var attr in this.attributeMap){delete this._deferredConnects[attr];}for(attr in this._deferredConnects){if(this[attr]!==_5._connectOnUseEventHandler){delete this._deferredConnects[attr];}}if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_141){this.params=_141;_4.mixin(this,_141);}this.postMixInProperties();if(!this.id){this.id=_5.getUniqueId(this.declaredClass.replace(/\./g,"_"));}_5.registry.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();var _143=this.srcNodeRef;if(_143&&_143.parentNode){_143.parentNode.replaceChild(this.domNode,_143);}for(attr in this.params){this._onConnect(attr);}}if(this.domNode){this.domNode.setAttribute("widgetId",this.id);}this.postCreate();if(this.srcNodeRef&&!this.srcNodeRef.parentNode){delete this.srcNodeRef;}this._created=true;},_applyAttributes:function(){var _144=function(attr,_145){if((_145.params&&attr in _145.params)||_145[attr]){_145.attr(attr,_145[attr]);}};for(var attr in this.attributeMap){_144(attr,this);}_4.forEach(_13a(this),function(a){if(!(a in this.attributeMap)){_144(a,this);}},this);},postMixInProperties:function(){},buildRendering:function(){this.domNode=this.srcNodeRef||_4.create("div");},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(_146){this._beingDestroyed=true;this.destroyDescendants(_146);this.destroy(_146);},destroy:function(_147){this._beingDestroyed=true;this.uninitialize();var d=_4,dfe=d.forEach,dun=d.unsubscribe;dfe(this._connects,function(_148){dfe(_148,d.disconnect);});dfe(this._subscribes,function(_149){dun(_149);});dfe(this._supportingWidgets||[],function(w){if(w.destroyRecursive){w.destroyRecursive();}else{if(w.destroy){w.destroy();}}});this.destroyRendering(_147);_5.registry.remove(this.id);this._destroyed=true;},destroyRendering:function(_14a){if(this.bgIframe){this.bgIframe.destroy(_14a);delete this.bgIframe;}if(this.domNode){if(_14a){_4.removeAttr(this.domNode,"widgetId");}else{_4.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_14a){_4.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_14b){_4.forEach(this.getChildren(),function(_14c){if(_14c.destroyRecursive){_14c.destroyRecursive(_14b);}});},uninitialize:function(){return false;},onFocus:function(){},onBlur:function(){},_onFocus:function(e){this.onFocus();},_onBlur:function(){this.onBlur();},_onConnect:function(_14d){if(_14d in this._deferredConnects){var _14e=this[this._deferredConnects[_14d]||"domNode"];this.connect(_14e,_14d.toLowerCase(),_14d);delete this._deferredConnects[_14d];}},_setClassAttr:function(_14f){var _150=this[this.attributeMap["class"]||"domNode"];_4.removeClass(_150,this["class"]);this["class"]=_14f;_4.addClass(_150,_14f);},_setStyleAttr:function(_151){var _152=this[this.attributeMap.style||"domNode"];if(_4.isObject(_151)){_4.style(_152,_151);}else{if(_152.style.cssText){_152.style.cssText+="; "+_151;}else{_152.style.cssText=_151;}}this.style=_151;},setAttribute:function(attr,_153){_4.deprecated(this.declaredClass+"::setAttribute() is deprecated. Use attr() instead.","","2.0");this.attr(attr,_153);},_attrToDom:function(attr,_154){var _155=this.attributeMap[attr];_4.forEach(_4.isArray(_155)?_155:[_155],function(_156){var _157=this[_156.node||_156||"domNode"];var type=_156.type||"attribute";switch(type){case "attribute":if(_4.isFunction(_154)){_154=_4.hitch(this,_154);}var _158=_156.attribute?_156.attribute:(/^on[A-Z][a-zA-Z]*$/.test(attr)?attr.toLowerCase():attr);_4.attr(_157,_158,_154);break;case "innerText":_157.innerHTML="";_157.appendChild(_4.doc.createTextNode(_154));break;case "innerHTML":_157.innerHTML=_154;break;case "class":_4.removeClass(_157,this[attr]);_4.addClass(_157,_154);break;}},this);this[attr]=_154;},attr:function(name,_159){var args=arguments.length;if(args==1&&!_4.isString(name)){for(var x in name){this.attr(x,name[x]);}return this;}var _15a=this._getAttrNames(name);if(args>=2){if(this[_15a.s]){args=_4._toArray(arguments,1);return this[_15a.s].apply(this,args)||this;}else{if(name in this.attributeMap){this._attrToDom(name,_159);}this[name]=_159;}return this;}else{return this[_15a.g]?this[_15a.g]():this[name];}},_attrPairNames:{},_getAttrNames:function(name){var apn=this._attrPairNames;if(apn[name]){return apn[name];}var uc=name.charAt(0).toUpperCase()+name.substr(1);return (apn[name]={n:name+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr"});},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getDescendants:function(){return this.containerNode?_4.query("[widgetId]",this.containerNode).map(_5.byNode):[];},getChildren:function(){return this.containerNode?_5.findWidgets(this.containerNode):[];},nodesWithKeyClick:["input","button"],connect:function(obj,_15b,_15c){var d=_4,dc=d._connect,_15d=[];if(_15b=="ondijitclick"){if(!this.nodesWithKeyClick[obj.tagName.toLowerCase()]){var m=d.hitch(this,_15c);_15d.push(dc(obj,"onkeydown",this,function(e){if((e.keyCode==d.keys.ENTER||e.keyCode==d.keys.SPACE)&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){_5._lastKeyDownNode=e.target;d.stopEvent(e);}}),dc(obj,"onkeyup",this,function(e){if((e.keyCode==d.keys.ENTER||e.keyCode==d.keys.SPACE)&&e.target===_5._lastKeyDownNode&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){_5._lastKeyDownNode=null;return m(e);}}));}_15b="onclick";}_15d.push(dc(obj,_15b,this,_15c));this._connects.push(_15d);return _15d;},disconnect:function(_15e){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_15e){_4.forEach(_15e,_4.disconnect);this._connects.splice(i,1);return;}}},subscribe:function(_15f,_160){var d=_4,_161=d.subscribe(_15f,this,_160);this._subscribes.push(_161);return _161;},unsubscribe:function(_162){for(var i=0;i<this._subscribes.length;i++){if(this._subscribes[i]==_162){_4.unsubscribe(_162);this._subscribes.splice(i,1);return;}}},isLeftToRight:function(){return _4._isBodyLtr();},isFocusable:function(){return this.focus&&(_4.style(this.domNode,"display")!="none");},placeAt:function(_163,_164){if(_163.declaredClass&&_163.addChild){_163.addChild(this,_164);}else{_4.place(this.domNode,_163,_164);}return this;},_onShow:function(){this.onShow();},onShow:function(){},onHide:function(){}});})();}if(!_4._hasResource["dojo.string"]){_4._hasResource["dojo.string"]=true;_4.provide("dojo.string");_4.string.rep=function(str,num){if(num<=0||!str){return "";}var buf=[];for(;;){if(num&1){buf.push(str);}if(!(num>>=1)){break;}str+=str;}return buf.join("");};_4.string.pad=function(text,size,ch,end){if(!ch){ch="0";}var out=String(text),pad=_4.string.rep(ch,Math.ceil((size-out.length)/ch.length));return end?out+pad:pad+out;};_4.string.substitute=function(_165,map,_166,_167){_167=_167||_4.global;_166=_166?_4.hitch(_167,_166):function(v){return v;};return _165.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_168,key,_169){var _16a=_4.getObject(key,false,map);if(_169){_16a=_4.getObject(_169,false,_167).call(_167,_16a,key);}return _166(_16a,key).toString();});};_4.string.trim=String.prototype.trim?_4.trim:function(str){str=str.replace(/^\s+/,"");for(var i=str.length-1;i>=0;i--){if(/\S/.test(str.charAt(i))){str=str.substring(0,i+1);break;}}return str;};}if(!_4._hasResource["dojo.date.stamp"]){_4._hasResource["dojo.date.stamp"]=true;_4.provide("dojo.date.stamp");_4.date.stamp.fromISOString=function(_16b,_16c){if(!_4.date.stamp._isoRegExp){_4.date.stamp._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/;}var _16d=_4.date.stamp._isoRegExp.exec(_16b),_16e=null;if(_16d){_16d.shift();if(_16d[1]){_16d[1]--;}if(_16d[6]){_16d[6]*=1000;}if(_16c){_16c=new Date(_16c);_4.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){return _16c["get"+prop]();}).forEach(function(_16f,_170){if(_16d[_170]===undefined){_16d[_170]=_16f;}});}_16e=new Date(_16d[0]||1970,_16d[1]||0,_16d[2]||1,_16d[3]||0,_16d[4]||0,_16d[5]||0,_16d[6]||0);if(_16d[0]<100){_16e.setFullYear(_16d[0]||1970);}var _171=0,_172=_16d[7]&&_16d[7].charAt(0);if(_172!="Z"){_171=((_16d[8]||0)*60)+(Number(_16d[9])||0);if(_172!="-"){_171*=-1;}}if(_172){_171-=_16e.getTimezoneOffset();}if(_171){_16e.setTime(_16e.getTime()+_171*60000);}}return _16e;};_4.date.stamp.toISOString=function(_173,_174){var _175=function(n){return (n<10)?"0"+n:n;};_174=_174||{};var _176=[],_177=_174.zulu?"getUTC":"get",date="";if(_174.selector!="time"){var year=_173[_177+"FullYear"]();date=["0000".substr((year+"").length)+year,_175(_173[_177+"Month"]()+1),_175(_173[_177+"Date"]())].join("-");}_176.push(date);if(_174.selector!="date"){var time=[_175(_173[_177+"Hours"]()),_175(_173[_177+"Minutes"]()),_175(_173[_177+"Seconds"]())].join(":");var _178=_173[_177+"Milliseconds"]();if(_174.milliseconds){time+="."+(_178<100?"0":"")+_175(_178);}if(_174.zulu){time+="Z";}else{if(_174.selector!="time"){var _179=_173.getTimezoneOffset();var _17a=Math.abs(_179);time+=(_179>0?"-":"+")+_175(Math.floor(_17a/60))+":"+_175(_17a%60);}}_176.push(time);}return _176.join("T");};}if(!_4._hasResource["dojo.parser"]){_4._hasResource["dojo.parser"]=true;_4.provide("dojo.parser");_4.parser=new function(){var d=_4;this._attrName=d._scopeName+"Type";this._query="["+this._attrName+"]";function _17b(_17c){if(d.isString(_17c)){return "string";}if(typeof _17c=="number"){return "number";}if(typeof _17c=="boolean"){return "boolean";}if(d.isFunction(_17c)){return "function";}if(d.isArray(_17c)){return "array";}if(_17c instanceof Date){return "date";}if(_17c instanceof d._Url){return "url";}return "object";};function _17d(_17e,type){switch(type){case "string":return _17e;case "number":return _17e.length?Number(_17e):NaN;case "boolean":return typeof _17e=="boolean"?_17e:!(_17e.toLowerCase()=="false");case "function":if(d.isFunction(_17e)){_17e=_17e.toString();_17e=d.trim(_17e.substring(_17e.indexOf("{")+1,_17e.length-1));}try{if(_17e.search(/[^\w\.]+/i)!=-1){return new Function(_17e);}else{return d.getObject(_17e,false);}}catch(e){return new Function();}case "array":return _17e?_17e.split(/\s*,\s*/):[];case "date":switch(_17e){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_17e);}case "url":return d.baseUrl+_17e;default:return d.fromJson(_17e);}};var _17f={};_4.connect(_4,"extend",function(){_17f={};});function _180(_181){if(!_17f[_181]){var cls=d.getObject(_181);if(!d.isFunction(cls)){throw new Error("Could not load class '"+_181+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");}var _182=cls.prototype;var _183={},_184={};for(var name in _182){if(name.charAt(0)=="_"){continue;}if(name in _184){continue;}var _185=_182[name];_183[name]=_17b(_185);}_17f[_181]={cls:cls,params:_183};}return _17f[_181];};this._functionFromScript=function(_186){var _187="";var _188="";var _189=_186.getAttribute("args");if(_189){d.forEach(_189.split(/\s*,\s*/),function(part,idx){_187+="var "+part+" = arguments["+idx+"]; ";});}var _18a=_186.getAttribute("with");if(_18a&&_18a.length){d.forEach(_18a.split(/\s*,\s*/),function(part){_187+="with("+part+"){";_188+="}";});}return new Function(_187+_186.innerHTML+_188);};this.instantiate=function(_18b,_18c,args){var _18d=[],dp=_4.parser;_18c=_18c||{};args=args||{};d.forEach(_18b,function(node){if(!node){return;}var type=dp._attrName in _18c?_18c[dp._attrName]:node.getAttribute(dp._attrName);if(!type||!type.length){return;}var _18e=_180(type),_18f=_18e.cls,ps=_18f._noScript||_18f.prototype._noScript;var _190={},_191=node.attributes;for(var name in _18e.params){var item=name in _18c?{value:_18c[name],specified:true}:_191.getNamedItem(name);if(!item||(!item.specified&&(!_4.isIE||name.toLowerCase()!="value"))){continue;}var _192=item.value;switch(name){case "class":_192="className" in _18c?_18c.className:node.className;break;case "style":_192="style" in _18c?_18c.style:(node.style&&node.style.cssText);}var _193=_18e.params[name];if(typeof _192=="string"){_190[name]=_17d(_192,_193);}else{_190[name]=_192;}}if(!ps){var _194=[],_195=[];d.query("> script[type^='dojo/']",node).orphan().forEach(function(_196){var _197=_196.getAttribute("event"),type=_196.getAttribute("type"),nf=d.parser._functionFromScript(_196);if(_197){if(type=="dojo/connect"){_194.push({event:_197,func:nf});}else{_190[_197]=nf;}}else{_195.push(nf);}});}var _198=_18f.markupFactory||_18f.prototype&&_18f.prototype.markupFactory;var _199=_198?_198(_190,node,_18f):new _18f(_190,node);_18d.push(_199);var _19a=node.getAttribute("jsId");if(_19a){d.setObject(_19a,_199);}if(!ps){d.forEach(_194,function(_19b){d.connect(_199,_19b.event,null,_19b.func);});d.forEach(_195,function(func){func.call(_199);});}});if(!_18c._started){d.forEach(_18d,function(_19c){if(!args.noStart&&_19c&&_19c.startup&&!_19c._started&&(!_19c.getParent||!_19c.getParent())){_19c.startup();}});}return _18d;};this.parse=function(_19d,args){var root;if(!args&&_19d&&_19d.rootNode){args=_19d;root=args.rootNode;}else{root=_19d;}var list=d.query(this._query,root);return this.instantiate(list,null,args);};}();(function(){var _19e=function(){if(_4.config.parseOnLoad){_4.parser.parse();}};if(_4.exists("dijit.wai.onload")&&(_5.wai.onload===_4._loaders[0])){_4._loaders.splice(1,0,_19e);}else{_4._loaders.unshift(_19e);}})();}if(!_4._hasResource["dojo.cache"]){_4._hasResource["dojo.cache"]=true;_4.provide("dojo.cache");(function(){var _19f={};_4.cache=function(_1a0,url,_1a1){if(typeof _1a0=="string"){var _1a2=_4.moduleUrl(_1a0,url);}else{_1a2=_1a0;_1a1=url;}var key=_1a2.toString();var val=_1a1;if(_1a1!==undefined&&!_4.isString(_1a1)){val=("value" in _1a1?_1a1.value:undefined);}var _1a3=_1a1&&_1a1.sanitize?true:false;if(val||val===null){if(val==null){delete _19f[key];}else{val=_19f[key]=_1a3?_4.cache._sanitize(val):val;}}else{if(!(key in _19f)){val=_4._getText(key);_19f[key]=_1a3?_4.cache._sanitize(val):val;}val=_19f[key];}return val;};_4.cache._sanitize=function(val){if(val){val=val.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _1a4=val.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_1a4){val=_1a4[1];}}else{val="";}return val;};})();}if(!_4._hasResource["dijit._Templated"]){_4._hasResource["dijit._Templated"]=true;_4.provide("dijit._Templated");_4.declare("dijit._Templated",null,{templateString:null,templatePath:null,widgetsInTemplate:false,_skipNodeCache:false,_earlyTemplatedStartup:false,_stringRepl:function(tmpl){var _1a5=this.declaredClass,_1a6=this;return _4.string.substitute(tmpl,this,function(_1a7,key){if(key.charAt(0)=="!"){_1a7=_4.getObject(key.substr(1),false,_1a6);}if(typeof _1a7=="undefined"){throw new Error(_1a5+" template:"+key);}if(_1a7==null){return "";}return key.charAt(0)=="!"?_1a7:_1a7.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){this._attachPoints=[];var _1a8=_5._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(_4.isString(_1a8)){node=_4._toDom(this._stringRepl(_1a8));if(node.nodeType!=1){throw new Error("Invalid template: "+_1a8);}}else{node=_1a8.cloneNode(true);}this.domNode=node;this._attachTemplateNodes(node);if(this.widgetsInTemplate){var _1a9=_4.parser,qry,attr;if(_1a9._query!="[dojoType]"){qry=_1a9._query;attr=_1a9._attrName;_1a9._query="[dojoType]";_1a9._attrName="dojoType";}var cw=(this._startupWidgets=_4.parser.parse(node,{noStart:!this._earlyTemplatedStartup}));if(qry){_1a9._query=qry;_1a9._attrName=attr;}this._supportingWidgets=_5.findWidgets(node);this._attachTemplateNodes(cw,function(n,p){return n[p];});}this._fillContent(this.srcNodeRef);},_fillContent:function(_1aa){var dest=this.containerNode;if(_1aa&&dest){while(_1aa.hasChildNodes()){dest.appendChild(_1aa.firstChild);}}},_attachTemplateNodes:function(_1ab,_1ac){_1ac=_1ac||function(n,p){return n.getAttribute(p);};var _1ad=_4.isArray(_1ab)?_1ab:(_1ab.all||_1ab.getElementsByTagName("*"));var x=_4.isArray(_1ab)?0:-1;for(;x<_1ad.length;x++){var _1ae=(x==-1)?_1ab:_1ad[x];if(this.widgetsInTemplate&&_1ac(_1ae,"dojoType")){continue;}var _1af=_1ac(_1ae,"dojoAttachPoint");if(_1af){var _1b0,_1b1=_1af.split(/\s*,\s*/);while((_1b0=_1b1.shift())){if(_4.isArray(this[_1b0])){this[_1b0].push(_1ae);}else{this[_1b0]=_1ae;}this._attachPoints.push(_1b0);}}var _1b2=_1ac(_1ae,"dojoAttachEvent");if(_1b2){var _1b3,_1b4=_1b2.split(/\s*,\s*/);var trim=_4.trim;while((_1b3=_1b4.shift())){if(_1b3){var _1b5=null;if(_1b3.indexOf(":")!=-1){var _1b6=_1b3.split(":");_1b3=trim(_1b6[0]);_1b5=trim(_1b6[1]);}else{_1b3=trim(_1b3);}if(!_1b5){_1b5=_1b3;}this.connect(_1ae,_1b3,_1b5);}}}var role=_1ac(_1ae,"waiRole");if(role){_5.setWaiRole(_1ae,role);}var _1b7=_1ac(_1ae,"waiState");if(_1b7){_4.forEach(_1b7.split(/\s*,\s*/),function(_1b8){if(_1b8.indexOf("-")!=-1){var pair=_1b8.split("-");_5.setWaiState(_1ae,pair[0],pair[1]);}});}}},startup:function(){_4.forEach(this._startupWidgets,function(w){if(w&&!w._started&&w.startup){w.startup();}});this.inherited(arguments);},destroyRendering:function(){_4.forEach(this._attachPoints,function(_1b9){delete this[_1b9];},this);this._attachPoints=[];this.inherited(arguments);}});_5._Templated._templateCache={};_5._Templated.getCachedTemplate=function(_1ba,_1bb,_1bc){var _1bd=_5._Templated._templateCache;var key=_1bb||_1ba;var _1be=_1bd[key];if(_1be){try{if(!_1be.ownerDocument||_1be.ownerDocument==_4.doc){return _1be;}}catch(e){}_4.destroy(_1be);}if(!_1bb){_1bb=_4.cache(_1ba,{sanitize:true});}_1bb=_4.string.trim(_1bb);if(_1bc||_1bb.match(/\$\{([^\}]+)\}/g)){return (_1bd[key]=_1bb);}else{var node=_4._toDom(_1bb);if(node.nodeType!=1){throw new Error("Invalid template: "+_1bb);}return (_1bd[key]=node);}};if(_4.isIE){_4.addOnWindowUnload(function(){var _1bf=_5._Templated._templateCache;for(var key in _1bf){var _1c0=_1bf[key];if(typeof _1c0=="object"){_4.destroy(_1c0);}delete _1bf[key];}});}_4.extend(_5._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});}if(!_4._hasResource["dijit.form._FormMixin"]){_4._hasResource["dijit.form._FormMixin"]=true;_4.provide("dijit.form._FormMixin");_4.declare("dijit.form._FormMixin",null,{reset:function(){_4.forEach(this.getDescendants(),function(_1c1){if(_1c1.reset){_1c1.reset();}});},validate:function(){var _1c2=false;return _4.every(_4.map(this.getDescendants(),function(_1c3){_1c3._hasBeenBlurred=true;var _1c4=_1c3.disabled||!_1c3.validate||_1c3.validate();if(!_1c4&&!_1c2){_5.scrollIntoView(_1c3.containerNode||_1c3.domNode);_1c3.focus();_1c2=true;}return _1c4;}),function(item){return item;});},setValues:function(val){_4.deprecated(this.declaredClass+"::setValues() is deprecated. Use attr('value', val) instead.","","2.0");return this.attr("value",val);},_setValueAttr:function(obj){var map={};_4.forEach(this.getDescendants(),function(_1c5){if(!_1c5.name){return;}var _1c6=map[_1c5.name]||(map[_1c5.name]=[]);_1c6.push(_1c5);});for(var name in map){if(!map.hasOwnProperty(name)){continue;}var _1c7=map[name],_1c8=_4.getObject(name,false,obj);if(_1c8===undefined){continue;}if(!_4.isArray(_1c8)){_1c8=[_1c8];}if(typeof _1c7[0].checked=="boolean"){_4.forEach(_1c7,function(w,i){w.attr("value",_4.indexOf(_1c8,w.value)!=-1);});}else{if(_1c7[0].multiple){_1c7[0].attr("value",_1c8);}else{_4.forEach(_1c7,function(w,i){w.attr("value",_1c8[i]);});}}}},getValues:function(){_4.deprecated(this.declaredClass+"::getValues() is deprecated. Use attr('value') instead.","","2.0");return this.attr("value");},_getValueAttr:function(){var obj={};_4.forEach(this.getDescendants(),function(_1c9){var name=_1c9.name;if(!name||_1c9.disabled){return;}var _1ca=_1c9.attr("value");if(typeof _1c9.checked=="boolean"){if(/Radio/.test(_1c9.declaredClass)){if(_1ca!==false){_4.setObject(name,_1ca,obj);}else{_1ca=_4.getObject(name,false,obj);if(_1ca===undefined){_4.setObject(name,null,obj);}}}else{var ary=_4.getObject(name,false,obj);if(!ary){ary=[];_4.setObject(name,ary,obj);}if(_1ca!==false){ary.push(_1ca);}}}else{var prev=_4.getObject(name,false,obj);if(typeof prev!="undefined"){if(_4.isArray(prev)){prev.push(_1ca);}else{_4.setObject(name,[prev,_1ca],obj);}}else{_4.setObject(name,_1ca,obj);}}});return obj;},isValid:function(){this._invalidWidgets=_4.filter(this.getDescendants(),function(_1cb){return !_1cb.disabled&&_1cb.isValid&&!_1cb.isValid();});return !this._invalidWidgets.length;},onValidStateChange:function(_1cc){},_widgetChange:function(_1cd){var _1ce=this._lastValidState;if(!_1cd||this._lastValidState===undefined){_1ce=this.isValid();if(this._lastValidState===undefined){this._lastValidState=_1ce;}}else{if(_1cd.isValid){this._invalidWidgets=_4.filter(this._invalidWidgets||[],function(w){return (w!=_1cd);},this);if(!_1cd.isValid()&&!_1cd.attr("disabled")){this._invalidWidgets.push(_1cd);}_1ce=(this._invalidWidgets.length===0);}}if(_1ce!==this._lastValidState){this._lastValidState=_1ce;this.onValidStateChange(_1ce);}},connectChildren:function(){_4.forEach(this._changeConnections,_4.hitch(this,"disconnect"));var _1cf=this;var _1d0=this._changeConnections=[];_4.forEach(_4.filter(this.getDescendants(),function(item){return item.validate;}),function(_1d1){_1d0.push(_1cf.connect(_1d1,"validate",_4.hitch(_1cf,"_widgetChange",_1d1)));_1d0.push(_1cf.connect(_1d1,"_setDisabledAttr",_4.hitch(_1cf,"_widgetChange",_1d1)));});this._widgetChange(null);},startup:function(){this.inherited(arguments);this._changeConnections=[];this.connectChildren();}});}if(!_4._hasResource["dijit._DialogMixin"]){_4._hasResource["dijit._DialogMixin"]=true;_4.provide("dijit._DialogMixin");_4.declare("dijit._DialogMixin",null,{attributeMap:_5._Widget.prototype.attributeMap,execute:function(_1d2){},onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.attr("value"));},_getFocusItems:function(_1d3){var _1d4=_5._getTabNavigable(_4.byId(_1d3));this._firstFocusItem=_1d4.lowest||_1d4.first||_1d3;this._lastFocusItem=_1d4.last||_1d4.highest||this._firstFocusItem;if(_4.isMoz&&this._firstFocusItem.tagName.toLowerCase()=="input"&&_4.getNodeProp(this._firstFocusItem,"type").toLowerCase()=="file"){_4.attr(_1d3,"tabIndex","0");this._firstFocusItem=_1d3;}}});}if(!_4._hasResource["dijit.DialogUnderlay"]){_4._hasResource["dijit.DialogUnderlay"]=true;_4.provide("dijit.DialogUnderlay");_4.declare("dijit.DialogUnderlay",[_5._Widget,_5._Templated],{templateString:"<div class='dijitDialogUnderlayWrapper'><div class='dijitDialogUnderlay' dojoAttachPoint='node'></div></div>",dialogId:"","class":"",attributeMap:{id:"domNode"},_setDialogIdAttr:function(id){_4.attr(this.node,"id",id+"_underlay");},_setClassAttr:function(_1d5){this.node.className="dijitDialogUnderlay "+_1d5;},postCreate:function(){_4.body().appendChild(this.domNode);},layout:function(){var is=this.node.style,os=this.domNode.style;os.display="none";var _1d6=_5.getViewport();os.top=_1d6.t+"px";os.left=_1d6.l+"px";is.width=_1d6.w+"px";is.height=_1d6.h+"px";os.display="block";},show:function(){this.domNode.style.display="block";this.layout();this.bgIframe=new _5.BackgroundIframe(this.domNode);},hide:function(){this.bgIframe.destroy();this.domNode.style.display="none";},uninitialize:function(){if(this.bgIframe){this.bgIframe.destroy();}this.inherited(arguments);}});}if(!_4._hasResource["dijit._Contained"]){_4._hasResource["dijit._Contained"]=true;_4.provide("dijit._Contained");_4.declare("dijit._Contained",null,{getParent:function(){var _1d7=_5.getEnclosingWidget(this.domNode.parentNode);return _1d7&&_1d7.isContainer?_1d7:null;},_getSibling:function(_1d8){var node=this.domNode;do{node=node[_1d8+"Sibling"];}while(node&&node.nodeType!=1);return node&&_5.byNode(node);},getPreviousSibling:function(){return this._getSibling("previous");},getNextSibling:function(){return this._getSibling("next");},getIndexInParent:function(){var p=this.getParent();if(!p||!p.getIndexOfChild){return -1;}return p.getIndexOfChild(this);}});}if(!_4._hasResource["dijit._Container"]){_4._hasResource["dijit._Container"]=true;_4.provide("dijit._Container");_4.declare("dijit._Container",null,{isContainer:true,buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},addChild:function(_1d9,_1da){var _1db=this.containerNode;if(_1da&&typeof _1da=="number"){var _1dc=this.getChildren();if(_1dc&&_1dc.length>=_1da){_1db=_1dc[_1da-1].domNode;_1da="after";}}_4.place(_1d9.domNode,_1db,_1da);if(this._started&&!_1d9._started){_1d9.startup();}},removeChild:function(_1dd){if(typeof _1dd=="number"&&_1dd>0){_1dd=this.getChildren()[_1dd];}if(_1dd&&_1dd.domNode){var node=_1dd.domNode;node.parentNode.removeChild(node);}},getChildren:function(){return _4.query("> [widgetId]",this.containerNode).map(_5.byNode);},hasChildren:function(){return _4.query("> [widgetId]",this.containerNode).length>0;},destroyDescendants:function(_1de){_4.forEach(this.getChildren(),function(_1df){_1df.destroyRecursive(_1de);});},_getSiblingOfChild:function(_1e0,dir){var node=_1e0.domNode,_1e1=(dir>0?"nextSibling":"previousSibling");do{node=node[_1e1];}while(node&&(node.nodeType!=1||!_5.byNode(node)));return node&&_5.byNode(node);},getIndexOfChild:function(_1e2){return _4.indexOf(this.getChildren(),_1e2);},startup:function(){if(this._started){return;}_4.forEach(this.getChildren(),function(_1e3){_1e3.startup();});this.inherited(arguments);}});}if(!_4._hasResource["dijit.layout._LayoutWidget"]){_4._hasResource["dijit.layout._LayoutWidget"]=true;_4.provide("dijit.layout._LayoutWidget");_4.declare("dijit.layout._LayoutWidget",[_5._Widget,_5._Container,_5._Contained],{baseClass:"dijitLayoutContainer",isLayoutContainer:true,postCreate:function(){_4.addClass(this.domNode,"dijitContainer");_4.addClass(this.domNode,this.baseClass);this.inherited(arguments);},startup:function(){if(this._started){return;}this.inherited(arguments);var _1e4=this.getParent&&this.getParent();if(!(_1e4&&_1e4.isLayoutContainer)){this.resize();this.connect(_4.isIE?this.domNode:_4.global,"onresize",function(){this.resize();});}},resize:function(_1e5,_1e6){var node=this.domNode;if(_1e5){_4.marginBox(node,_1e5);if(_1e5.t){node.style.top=_1e5.t+"px";}if(_1e5.l){node.style.left=_1e5.l+"px";}}var mb=_1e6||{};_4.mixin(mb,_1e5||{});if(!("h" in mb)||!("w" in mb)){mb=_4.mixin(_4.marginBox(node),mb);}var cs=_4.getComputedStyle(node);var me=_4._getMarginExtents(node,cs);var be=_4._getBorderExtents(node,cs);var bb=(this._borderBox={w:mb.w-(me.w+be.w),h:mb.h-(me.h+be.h)});var pe=_4._getPadExtents(node,cs);this._contentBox={l:_4._toPixelValue(node,cs.paddingLeft),t:_4._toPixelValue(node,cs.paddingTop),w:bb.w-pe.w,h:bb.h-pe.h};this.layout();},layout:function(){},_setupChild:function(_1e7){_4.addClass(_1e7.domNode,this.baseClass+"-child");if(_1e7.baseClass){_4.addClass(_1e7.domNode,this.baseClass+"-"+_1e7.baseClass);}},addChild:function(_1e8,_1e9){this.inherited(arguments);if(this._started){this._setupChild(_1e8);}},removeChild:function(_1ea){_4.removeClass(_1ea.domNode,this.baseClass+"-child");if(_1ea.baseClass){_4.removeClass(_1ea.domNode,this.baseClass+"-"+_1ea.baseClass);}this.inherited(arguments);}});_5.layout.marginBox2contentBox=function(node,mb){var cs=_4.getComputedStyle(node);var me=_4._getMarginExtents(node,cs);var pb=_4._getPadBorderExtents(node,cs);return {l:_4._toPixelValue(node,cs.paddingLeft),t:_4._toPixelValue(node,cs.paddingTop),w:mb.w-(me.w+pb.w),h:mb.h-(me.h+pb.h)};};(function(){var _1eb=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_1ec,dim){_1ec.resize?_1ec.resize(dim):_4.marginBox(_1ec.domNode,dim);_4.mixin(_1ec,_4.marginBox(_1ec.domNode));_4.mixin(_1ec,dim);};_5.layout.layoutChildren=function(_1ed,dim,_1ee){dim=_4.mixin({},dim);_4.addClass(_1ed,"dijitLayoutContainer");_1ee=_4.filter(_1ee,function(item){return item.layoutAlign!="client";}).concat(_4.filter(_1ee,function(item){return item.layoutAlign=="client";}));_4.forEach(_1ee,function(_1ef){var elm=_1ef.domNode,pos=_1ef.layoutAlign;var _1f0=elm.style;_1f0.left=dim.l+"px";_1f0.top=dim.t+"px";_1f0.bottom=_1f0.right="auto";_4.addClass(elm,"dijitAlign"+_1eb(pos));if(pos=="top"||pos=="bottom"){size(_1ef,{w:dim.w});dim.h-=_1ef.h;if(pos=="top"){dim.t+=_1ef.h;}else{_1f0.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){size(_1ef,{h:dim.h});dim.w-=_1ef.w;if(pos=="left"){dim.l+=_1ef.w;}else{_1f0.left=dim.l+dim.w+"px";}}else{if(pos=="client"){size(_1ef,dim);}}}});};})();}if(!_4._hasResource["dojo.html"]){_4._hasResource["dojo.html"]=true;_4.provide("dojo.html");(function(){var _1f1=0,d=_4;_4.html._secureForInnerHtml=function(cont){return cont.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"");};_4.html._emptyNode=_4.empty;_4.html._setNodeContent=function(node,cont){d.empty(node);if(cont){if(typeof cont=="string"){cont=d._toDom(cont,node.ownerDocument);}if(!cont.nodeType&&d.isArrayLike(cont)){for(var _1f2=cont.length,i=0;i<cont.length;i=_1f2==cont.length?i+1:0){d.place(cont[i],node,"last");}}else{d.place(cont,node,"last");}}return node;};_4.declare("dojo.html._ContentSetter",null,{node:"",content:"",id:"",cleanContent:false,extractContent:false,parseContent:false,constructor:function(_1f3,node){_4.mixin(this,_1f3||{});node=this.node=_4.byId(this.node||node);if(!this.id){this.id=["Setter",(node)?node.id||node.tagName:"",_1f1++].join("_");}if(!(this.node||node)){new Error(this.declaredClass+": no node provided to "+this.id);}},set:function(cont,_1f4){if(undefined!==cont){this.content=cont;}if(_1f4){this._mixin(_1f4);}this.onBegin();this.setContent();this.onEnd();return this.node;},setContent:function(){var node=this.node;if(!node){console.error("setContent given no node");}try{node=_4.html._setNodeContent(node,this.content);}catch(e){var _1f5=this.onContentError(e);try{node.innerHTML=_1f5;}catch(e){console.error("Fatal "+this.declaredClass+".setContent could not change content due to "+e.message,e);}}this.node=node;},empty:function(){if(this.parseResults&&this.parseResults.length){_4.forEach(this.parseResults,function(w){if(w.destroy){w.destroy();}});delete this.parseResults;}_4.html._emptyNode(this.node);},onBegin:function(){var cont=this.content;if(_4.isString(cont)){if(this.cleanContent){cont=_4.html._secureForInnerHtml(cont);}if(this.extractContent){var _1f6=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_1f6){cont=_1f6[1];}}}this.empty();this.content=cont;return this.node;},onEnd:function(){if(this.parseContent){this._parse();}return this.node;},tearDown:function(){delete this.parseResults;delete this.node;delete this.content;},onContentError:function(err){return "Error occured setting content: "+err;},_mixin:function(_1f7){var _1f8={},key;for(key in _1f7){if(key in _1f8){continue;}this[key]=_1f7[key];}},_parse:function(){var _1f9=this.node;try{this.parseResults=_4.parser.parse(_1f9,true);}catch(e){this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);}},_onError:function(type,err,_1fa){var _1fb=this["on"+type+"Error"].call(this,err);if(_1fa){console.error(_1fa,err);}else{if(_1fb){_4.html._setNodeContent(this.node,_1fb,true);}}}});_4.html.set=function(node,cont,_1fc){if(undefined==cont){console.warn("dojo.html.set: no cont argument provided, using empty string");cont="";}if(!_1fc){return _4.html._setNodeContent(node,cont,true);}else{var op=new _4.html._ContentSetter(_4.mixin(_1fc,{content:cont,node:node}));return op.set();}};})();}if(!_4._hasResource["dijit.layout.ContentPane"]){_4._hasResource["dijit.layout.ContentPane"]=true;_4.provide("dijit.layout.ContentPane");_4.declare("dijit.layout.ContentPane",_5._Widget,{href:"",extractContent:false,parseOnLoad:true,preventCache:false,preload:false,refreshOnShow:false,loadingMessage:"<span class='dijitContentPaneLoading'>${loadingState}</span>",errorMessage:"<span class='dijitContentPaneError'>${errorState}</span>",isLoaded:false,baseClass:"dijitContentPane",doLayout:true,ioArgs:{},isContainer:true,isLayoutContainer:true,onLoadDeferred:null,attributeMap:_4.delegate(_5._Widget.prototype.attributeMap,{title:[]}),postMixInProperties:function(){this.inherited(arguments);var _1fd=_4.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=_4.string.substitute(this.loadingMessage,_1fd);this.errorMessage=_4.string.substitute(this.errorMessage,_1fd);if(!this.href&&this.srcNodeRef&&this.srcNodeRef.innerHTML){this.isLoaded=true;}},buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},postCreate:function(){this.domNode.title="";if(!_4.attr(this.domNode,"role")){_5.setWaiRole(this.domNode,"group");}_4.addClass(this.domNode,this.baseClass);},startup:function(){if(this._started){return;}var _1fe=_5._Contained.prototype.getParent.call(this);this._childOfLayoutWidget=_1fe&&_1fe.isLayoutContainer;this._needLayout=!this._childOfLayoutWidget;if(this.isLoaded){_4.forEach(this.getChildren(),function(_1ff){_1ff.startup();});}if(this._isShown()||this.preload){this._onShow();}this.inherited(arguments);},_checkIfSingleChild:function(){var _200=_4.query("> *",this.containerNode).filter(function(node){return node.tagName!=="SCRIPT";}),_201=_200.filter(function(node){return _4.hasAttr(node,"dojoType")||_4.hasAttr(node,"widgetId");}),_202=_4.filter(_201.map(_5.byNode),function(_203){return _203&&_203.domNode&&_203.resize;});if(_200.length==_201.length&&_202.length==1){this._singleChild=_202[0];}else{delete this._singleChild;}_4.toggleClass(this.containerNode,this.baseClass+"SingleChild",!!this._singleChild);},setHref:function(href){_4.deprecated("dijit.layout.ContentPane.setHref() is deprecated. Use attr('href', ...) instead.","","2.0");return this.attr("href",href);},_setHrefAttr:function(href){this.cancel();this.onLoadDeferred=new _4.Deferred(_4.hitch(this,"cancel"));this.href=href;if(this._created&&(this.preload||this._isShown())){this._load();}else{this._hrefChanged=true;}return this.onLoadDeferred;},setContent:function(data){_4.deprecated("dijit.layout.ContentPane.setContent() is deprecated.  Use attr('content', ...) instead.","","2.0");this.attr("content",data);},_setContentAttr:function(data){this.href="";this.cancel();this.onLoadDeferred=new _4.Deferred(_4.hitch(this,"cancel"));this._setContent(data||"");this._isDownloaded=false;return this.onLoadDeferred;},_getContentAttr:function(){return this.containerNode.innerHTML;},cancel:function(){if(this._xhrDfd&&(this._xhrDfd.fired==-1)){this._xhrDfd.cancel();}delete this._xhrDfd;this.onLoadDeferred=null;},uninitialize:function(){if(this._beingDestroyed){this.cancel();}this.inherited(arguments);},destroyRecursive:function(_204){if(this._beingDestroyed){return;}this.inherited(arguments);},resize:function(_205,_206){if(!this._wasShown){this._onShow();}this._resizeCalled=true;if(_205){_4.marginBox(this.domNode,_205);}var cn=this.containerNode;if(cn===this.domNode){var mb=_206||{};_4.mixin(mb,_205||{});if(!("h" in mb)||!("w" in mb)){mb=_4.mixin(_4.marginBox(cn),mb);}this._contentBox=_5.layout.marginBox2contentBox(cn,mb);}else{this._contentBox=_4.contentBox(cn);}this._layoutChildren();},_isShown:function(){if(this._childOfLayoutWidget){if(this._resizeCalled&&"open" in this){return this.open;}return this._resizeCalled;}else{if("open" in this){return this.open;}else{var node=this.domNode;return (node.style.display!="none")&&(node.style.visibility!="hidden")&&!_4.hasClass(node,"dijitHidden");}}},_onShow:function(){if(this.href){if(!this._xhrDfd&&(!this.isLoaded||this._hrefChanged||this.refreshOnShow)){this.refresh();}}else{if(!this._childOfLayoutWidget&&this._needLayout){this._layoutChildren();}}this.inherited(arguments);this._wasShown=true;},refresh:function(){this.cancel();this.onLoadDeferred=new _4.Deferred(_4.hitch(this,"cancel"));this._load();return this.onLoadDeferred;},_load:function(){this._setContent(this.onDownloadStart(),true);var self=this;var _207={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};if(_4.isObject(this.ioArgs)){_4.mixin(_207,this.ioArgs);}var hand=(this._xhrDfd=(this.ioMethod||_4.xhrGet)(_207));hand.addCallback(function(html){try{self._isDownloaded=true;self._setContent(html,false);self.onDownloadEnd();}catch(err){self._onError("Content",err);}delete self._xhrDfd;return html;});hand.addErrback(function(err){if(!hand.canceled){self._onError("Download",err);}delete self._xhrDfd;return err;});delete this._hrefChanged;},_onLoadHandler:function(data){this.isLoaded=true;try{this.onLoadDeferred.callback(data);this.onLoad(data);}catch(e){console.error("Error "+this.widgetId+" running custom onLoad code: "+e.message);}},_onUnloadHandler:function(){this.isLoaded=false;try{this.onUnload();}catch(e){console.error("Error "+this.widgetId+" running custom onUnload code: "+e.message);}},destroyDescendants:function(){if(this.isLoaded){this._onUnloadHandler();}var _208=this._contentSetter;_4.forEach(this.getChildren(),function(_209){if(_209.destroyRecursive){_209.destroyRecursive();}});if(_208){_4.forEach(_208.parseResults,function(_20a){if(_20a.destroyRecursive&&_20a.domNode&&_20a.domNode.parentNode==_4.body()){_20a.destroyRecursive();}});delete _208.parseResults;}_4.html._emptyNode(this.containerNode);delete this._singleChild;},_setContent:function(cont,_20b){this.destroyDescendants();var _20c=this._contentSetter;if(!(_20c&&_20c instanceof _4.html._ContentSetter)){_20c=this._contentSetter=new _4.html._ContentSetter({node:this.containerNode,_onError:_4.hitch(this,this._onError),onContentError:_4.hitch(this,function(e){var _20d=this.onContentError(e);try{this.containerNode.innerHTML=_20d;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}})});}var _20e=_4.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad},this._contentSetterParams||{});_4.mixin(_20c,_20e);_20c.set((_4.isObject(cont)&&cont.domNode)?cont.domNode:cont);delete this._contentSetterParams;if(!_20b){_4.forEach(this.getChildren(),function(_20f){if(!this.parseOnLoad||_20f.getParent){_20f.startup();}},this);this._scheduleLayout();this._onLoadHandler(cont);}},_onError:function(type,err,_210){this.onLoadDeferred.errback(err);var _211=this["on"+type+"Error"].call(this,err);if(_210){console.error(_210,err);}else{if(_211){this._setContent(_211,true);}}},_scheduleLayout:function(){if(this._isShown()){this._layoutChildren();}else{this._needLayout=true;}},_layoutChildren:function(){if(this.doLayout){this._checkIfSingleChild();}if(this._singleChild&&this._singleChild.resize){var cb=this._contentBox||_4.contentBox(this.containerNode);this._singleChild.resize({w:cb.w,h:cb.h});}else{_4.forEach(this.getChildren(),function(_212){if(_212.resize){_212.resize();}});}delete this._needLayout;},onLoad:function(data){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage;},onContentError:function(_213){},onDownloadError:function(_214){return this.errorMessage;},onDownloadEnd:function(){}});}if(!_4._hasResource["dijit.TooltipDialog"]){_4._hasResource["dijit.TooltipDialog"]=true;_4.provide("dijit.TooltipDialog");_4.declare("dijit.TooltipDialog",[_5.layout.ContentPane,_5._Templated,_5.form._FormMixin,_5._DialogMixin],{title:"",doLayout:false,autofocus:true,baseClass:"dijitTooltipDialog",_firstFocusItem:null,_lastFocusItem:null,templateString:_4.cache("dijit","templates/TooltipDialog.html","<div waiRole=\"presentation\">\r\n\t<div class=\"dijitTooltipContainer\" waiRole=\"presentation\">\r\n\t\t<div class =\"dijitTooltipContents dijitTooltipFocusNode\" dojoAttachPoint=\"containerNode\" tabindex=\"-1\" waiRole=\"dialog\"></div>\r\n\t</div>\r\n\t<div class=\"dijitTooltipConnector\" waiRole=\"presentation\"></div>\r\n</div>\r\n"),postCreate:function(){this.inherited(arguments);this.connect(this.containerNode,"onkeypress","_onKey");this.containerNode.title=this.title;},orient:function(node,_215,_216){var c=this._currentOrientClass;if(c){_4.removeClass(this.domNode,c);}c="dijitTooltipAB"+(_216.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_216.charAt(0)=="T"?"Below":"Above");_4.addClass(this.domNode,c);this._currentOrientClass=c;},onOpen:function(pos){this.orient(this.domNode,pos.aroundCorner,pos.corner);this._onShow();if(this.autofocus){this._getFocusItems(this.containerNode);_5.focus(this._firstFocusItem);}},onClose:function(){this.onHide();},_onKey:function(evt){var node=evt.target;var dk=_4.keys;if(evt.charOrCode===dk.TAB){this._getFocusItems(this.containerNode);}var _217=(this._firstFocusItem==this._lastFocusItem);if(evt.charOrCode==dk.ESCAPE){setTimeout(_4.hitch(this,"onCancel"),0);_4.stopEvent(evt);}else{if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){if(!_217){_5.focus(this._lastFocusItem);}_4.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_217){_5.focus(this._firstFocusItem);}_4.stopEvent(evt);}else{if(evt.charOrCode===dk.TAB){evt.stopPropagation();}}}}}});}if(!_4._hasResource["dijit.Dialog"]){_4._hasResource["dijit.Dialog"]=true;_4.provide("dijit.Dialog");_4.declare("dijit._DialogBase",[_5._Templated,_5.form._FormMixin,_5._DialogMixin],{templateString:_4.cache("dijit","templates/Dialog.html","<div class=\"dijitDialog\" tabindex=\"-1\" waiRole=\"dialog\" waiState=\"labelledby-${id}_title\">\r\n\t<div dojoAttachPoint=\"titleBar\" class=\"dijitDialogTitleBar\">\r\n\t<span dojoAttachPoint=\"titleNode\" class=\"dijitDialogTitle\" id=\"${id}_title\"></span>\r\n\t<span dojoAttachPoint=\"closeButtonNode\" class=\"dijitDialogCloseIcon\" dojoAttachEvent=\"onclick: onCancel, onmouseenter: _onCloseEnter, onmouseleave: _onCloseLeave\" title=\"${buttonCancel}\">\r\n\t\t<span dojoAttachPoint=\"closeText\" class=\"closeText\" title=\"${buttonCancel}\">x</span>\r\n\t</span>\r\n\t</div>\r\n\t\t<div dojoAttachPoint=\"containerNode\" class=\"dijitDialogPaneContent\"></div>\r\n</div>\r\n"),attributeMap:_4.delegate(_5._Widget.prototype.attributeMap,{title:[{node:"titleNode",type:"innerHTML"},{node:"titleBar",type:"attribute"}],"aria-describedby":""}),open:false,duration:_5.defaultDuration,refocus:true,autofocus:true,_firstFocusItem:null,_lastFocusItem:null,doLayout:false,draggable:true,"aria-describedby":"",postMixInProperties:function(){var _218=_4.i18n.getLocalization("dijit","common");_4.mixin(this,_218);this.inherited(arguments);},postCreate:function(){_4.style(this.domNode,{display:"none",position:"absolute"});_4.body().appendChild(this.domNode);this.inherited(arguments);this.connect(this,"onExecute","hide");this.connect(this,"onCancel","hide");this._modalconnects=[];},onLoad:function(){this._position();this.inherited(arguments);},_endDrag:function(e){if(e&&e.node&&e.node===this.domNode){this._relativePosition=_4.position(e.node);}},_setup:function(){var node=this.domNode;if(this.titleBar&&this.draggable){this._moveable=(_4.isIE==6)?new _4.dnd.TimedMoveable(node,{handle:this.titleBar}):new _4.dnd.Moveable(node,{handle:this.titleBar,timeout:0});_4.subscribe("/dnd/move/stop",this,"_endDrag");}else{_4.addClass(node,"dijitDialogFixed");}this.underlayAttrs={dialogId:this.id,"class":_4.map(this["class"].split(/\s/),function(s){return s+"_underlay";}).join(" ")};this._fadeIn=_4.fadeIn({node:node,duration:this.duration,beforeBegin:_4.hitch(this,function(){var _219=_5._underlay;if(!_219){_219=_5._underlay=new _5.DialogUnderlay(this.underlayAttrs);}else{_219.attr(this.underlayAttrs);}var _21a=948+_5._dialogStack.length*2;_4.style(_5._underlay.domNode,"zIndex",_21a);_4.style(this.domNode,"zIndex",_21a+1);_219.show();}),onEnd:_4.hitch(this,function(){if(this.autofocus){this._getFocusItems(this.domNode);_5.focus(this._firstFocusItem);}})});this._fadeOut=_4.fadeOut({node:node,duration:this.duration,onEnd:_4.hitch(this,function(){node.style.display="none";var ds=_5._dialogStack;if(ds.length==0){_5._underlay.hide();}else{_4.style(_5._underlay.domNode,"zIndex",948+ds.length*2);_5._underlay.attr(ds[ds.length-1].underlayAttrs);}if(this.refocus){var _21b=this._savedFocus;if(ds.length>0){var pd=ds[ds.length-1];if(!_4.isDescendant(_21b.node,pd.domNode)){pd._getFocusItems(pd.domNode);_21b=pd._firstFocusItem;}}_5.focus(_21b);}})});},uninitialize:function(){var _21c=false;if(this._fadeIn&&this._fadeIn.status()=="playing"){_21c=true;this._fadeIn.stop();}if(this._fadeOut&&this._fadeOut.status()=="playing"){_21c=true;this._fadeOut.stop();}if(this.open||_21c){_5._underlay.hide();}if(this._moveable){this._moveable.destroy();}this.inherited(arguments);},_size:function(){this._checkIfSingleChild();if(this._singleChild){if(this._singleChildOriginalStyle){this._singleChild.domNode.style.cssText=this._singleChildOriginalStyle;}delete this._singleChildOriginalStyle;}else{_4.style(this.containerNode,{width:"auto",height:"auto"});}var mb=_4.marginBox(this.domNode);var _21d=_5.getViewport();if(mb.w>=_21d.w||mb.h>=_21d.h){var w=Math.min(mb.w,Math.floor(_21d.w*0.75)),h=Math.min(mb.h,Math.floor(_21d.h*0.75));if(this._singleChild&&this._singleChild.resize){this._singleChildOriginalStyle=this._singleChild.domNode.style.cssText;this._singleChild.resize({w:w,h:h});}else{_4.style(this.containerNode,{width:w+"px",height:h+"px",overflow:"auto",position:"relative"});}}else{if(this._singleChild&&this._singleChild.resize){this._singleChild.resize();}}},_position:function(){if(!_4.hasClass(_4.body(),"dojoMove")){var node=this.domNode,_21e=_5.getViewport(),p=this._relativePosition,bb=p?null:_4._getBorderBox(node),l=Math.floor(_21e.l+(p?p.x:(_21e.w-bb.w)/2)),t=Math.floor(_21e.t+(p?p.y:(_21e.h-bb.h)/2));_4.style(node,{left:l+"px",top:t+"px"});}},_onKey:function(evt){var ds=_5._dialogStack;if(ds[ds.length-1]!=this){return;}if(evt.charOrCode){var dk=_4.keys;var node=evt.target;if(evt.charOrCode===dk.TAB){this._getFocusItems(this.domNode);}var _21f=(this._firstFocusItem==this._lastFocusItem);if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){if(!_21f){_5.focus(this._lastFocusItem);}_4.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_21f){_5.focus(this._firstFocusItem);}_4.stopEvent(evt);}else{while(node){if(node==this.domNode||_4.hasClass(node,"dijitPopup")){if(evt.charOrCode==dk.ESCAPE){this.onCancel();}else{return;}}node=node.parentNode;}if(evt.charOrCode!==dk.TAB){_4.stopEvent(evt);}else{if(!_4.isOpera){try{this._firstFocusItem.focus();}catch(e){}}}}}}},show:function(){if(this.open){return;}if(!this._alreadyInitialized){this._setup();this._alreadyInitialized=true;}if(this._fadeOut.status()=="playing"){this._fadeOut.stop();}this._modalconnects.push(_4.connect(window,"onscroll",this,"layout"));this._modalconnects.push(_4.connect(window,"onresize",this,function(){var _220=_5.getViewport();if(!this._oldViewport||_220.h!=this._oldViewport.h||_220.w!=this._oldViewport.w){this.layout();this._oldViewport=_220;}}));this._modalconnects.push(_4.connect(_4.doc.documentElement,"onkeypress",this,"_onKey"));_4.style(this.domNode,{opacity:0,display:""});this.open=true;this._onShow();this._size();this._position();_5._dialogStack.push(this);this._fadeIn.play();this._savedFocus=_5.getFocus(this);},hide:function(){var ds=_5._dialogStack;if(!this._alreadyInitialized||this!=ds[ds.length-1]){return;}if(this._fadeIn.status()=="playing"){this._fadeIn.stop();}ds.pop();this._fadeOut.play();if(this._scrollConnected){this._scrollConnected=false;}_4.forEach(this._modalconnects,_4.disconnect);this._modalconnects=[];if(this._relativePosition){delete this._relativePosition;}this.open=false;this.onHide();},layout:function(){if(this.domNode.style.display!="none"){if(_5._underlay){_5._underlay.layout();}this._position();}},destroy:function(){_4.forEach(this._modalconnects,_4.disconnect);if(this.refocus&&this.open){setTimeout(_4.hitch(_5,"focus",this._savedFocus),25);}this.inherited(arguments);},_onCloseEnter:function(){_4.addClass(this.closeButtonNode,"dijitDialogCloseIcon-hover");},_onCloseLeave:function(){_4.removeClass(this.closeButtonNode,"dijitDialogCloseIcon-hover");}});_4.declare("dijit.Dialog",[_5.layout.ContentPane,_5._DialogBase],{});_5._dialogStack=[];}if(!_4._hasResource["delijn.pluggable.PluggableRouteplannerDeLijn"]){_4._hasResource["delijn.pluggable.PluggableRouteplannerDeLijn"]=true;_4.provide("delijn.pluggable.PluggableRouteplannerDeLijn");_4.declare("delijn.pluggable.PluggableRouteplannerDeLijn",null,{_mandatoryFields:["vertrekGemeente","vertrekStraat","vertrekHerkenningspunt","aankomstGemeente","aankomstStraat","aankomstHerkenningspunt"],_streetNrFields:["vertrekNr","aankomstNr"],_queryFields:["vertrekGemeente","vertrekStraat","vertrekHerkenningspunt","vertrekNr","aankomstGemeente","aankomstStraat","aankomstHerkenningspunt","aankomstNr","datum","uur","minuten"],_queryCheckedFields:["vertrekOpBasisVanStraat","vertrekOpBasisVanHerkenningspunt","aankomstOpBasisVanStraat","aankomstOpBasisVanHerkenningspunt","vertrekkenOfAankomen"],_swapFields:["Gemeente","Straat","Herkenningspunt","Nr"],_oriFiedls:["vertrekHerkenningspunt","aankomstHerkenningspunt","vertrekOpBasisVanStraat","vertrekOpBasisVanHerkenningspunt","aankomstOpBasisVanStraat","aankomstOpBasisVanHerkenningspunt"],_wandelRouteDialog:null,_notaDialog:null,_dwrMethod:null,_pluggableRPCCHost:null,_contentLine1:"<div id=\"loadingDiv\" class=\"dl-waitMessage\"><div class=\"dl-icon-loader dl-left\"></div>",_contentLine2:"<div class=\"dl-right\">Uw route wordt berekend. Dit kan even duren.</div></div>",_contentLine3:"<div id=\"dialoogWrapperId\">",_contentLine4:"<div id=\"reisadviesId\"></div>",_contentLine5:"</div>",_footerLine:"<hr><div id=\"reisadviesFooterId\" class=\"dl-footer\"><a href=\"#\">Sluiten</a></div>",_footerLine1:"<hr><div id=\"wandelFooterId\" class=\"dl-footer\"><a href=\"#\">Sluiten</a></div>",_footerLine2:"<div id=\"notaFooterId\" class=\"dl-footer\"><a href=\"#\">Sluiten</a></div>",_loadingDialog:null,_reisAdviesDialog:null,_inactive:"dl-inactive",_active:"dl-active",_focused:"dl-focused",_valueLabels:[],_value2label:null,_metOri:null,constructor:function(_221){console.debug("in constructor");this._wandelRouteDialog=new _5.Dialog({title:"Instructies voor de Wandelroute",duration:500});_4.addClass(this._wandelRouteDialog.domNode,"dl-wandelRouteDialog");_4.attr(this._wandelRouteDialog,"content","<div id=\"dialoogWandelWrapperId\">"+"<div id=\"wandelRouteId\"></div>"+this._footerLine1+this._contentLine5);this._notaDialog=new _5.Dialog({title:"Opgelet",duration:500});_4.addClass(this._notaDialog.domNode,"dl-notaDialog");_4.attr(this._notaDialog,"content","<div id=\"dialoogNotaWrapperId\">"+"<div id=\"notaId\"></div>"+this._footerLine2+this._contentLine5);this._loadingDialog=new _5.Dialog({title:"Even geduld",id:"loadingDialog",duration:1500});_4.attr(this._loadingDialog,"content",this._contentLine1+this._contentLine2);_4.addClass(this._loadingDialog.domNode,"dl-loadingDialog");this._reisAdviesDialog=new _5.Dialog({title:"Routeplanner",id:"reisadviesDialog",duration:750});_4.attr(this._reisAdviesDialog,"content","<div id=\"dialoogAdviesWrapperId\">"+this._contentLine4+this._contentLine5);_4.addClass(this._reisAdviesDialog.domNode,"dl-body");_4.addClass(this._reisAdviesDialog.domNode,"dl-scroll");_4.addClass(this._reisAdviesDialog.domNode,"dl-reisAdviesDialog");this._dwrMethod=_221.dwrMethod;this._pluggableRPCCHost=_221.pluggableRPCCHost;this._value2label=_221.value2label;},init:function(){console.log("start init");this._metOri=_4.byId("vertrekHerkenningspunt")!=null;console.log("pagina met herkenninspunt is : "+this._metOri);this.switchImageOff();_4.removeClass(_4.body(),"yui-skin-delijn");_4.addClass(_4.body(),"yui-skin-delijnPluggable");_4.addClass(_4.body(),"nihilo");_4.query("#wrapperId input").attr("autocomplete","off");if(_4.byId("uur")){var _222=new Date();_4.byId("uur").selectedIndex=_222.getHours();var m=_222.getMinutes();_4.byId("minuten").selectedIndex=(m-(m%5))/5;}_4.byId("datum").value=this.formatDate(new Date());this.cleanErrorIndications();this.label2value();this.parseQueryParameters();this.toggleOpBasisVanVertrek();this.toggleOpBasisVanAankomst();_4.connect(_4.byId("vertrekOpBasisVanStraat"),"onclick",this,"toggleOpBasisVanVertrek");_4.connect(_4.byId("vertrekOpBasisVanHerkenningspunt"),"onclick",this,"toggleOpBasisVanVertrek");_4.connect(_4.byId("aankomstOpBasisVanStraat"),"onclick",this,"toggleOpBasisVanAankomst");_4.connect(_4.byId("aankomstOpBasisVanHerkenningspunt"),"onclick",this,"toggleOpBasisVanAankomst");_4.connect(_4.byId("berekenButtonId"),"onclick",this,"displayReisAdvies");_4.connect(_4.byId("swapId"),"onclick",this,"swapLocatie");_4.connect(_4.byId("swapId"),"onmouseover",this,"swapLocatieMouseOver");_4.connect(_4.byId("swapId"),"onmouseout",this,"swapLocatieMouseOut");_4.forEach(this.getMandatoryFields(),function(_223){_4.connect(_4.byId(_223),"onblur",this,function(e){this.checkVerplichtVeld(_223);});_4.connect(_4.byId(_223),"onfocus",this,function(e){this.resetVerplichtVeld(_223);});},this);ReisAdvies._path=this._pluggableRPCCHost+"/routeplannerPluggable/dwr";_4.byId("idAanvrager2").value=document.referrer;console.log("end init");},label2value:function(){console.log("start of label2value");if(!this._value2label){return;}this._valueLabels["vertrekGemeente"]="Vul de gemeente in";this._valueLabels["vertrekStraat"]="Vul de straat in";this._valueLabels["vertrekNr"]="Vul het huisnummer in ";this._valueLabels["vertrekHerkenningspunt"]="Vul het herkenningspunt in";this._valueLabels["aankomstGemeente"]="Vul de gemeente in";this._valueLabels["aankomstStraat"]="Vul de straat in";this._valueLabels["aankomstNr"]="Vul het huisnummer in ";this._valueLabels["aankomstHerkenningspunt"]="Vul het herkenningspunt in";_4.query("#wrapperId label").forEach(function(item,_224,_225){var obj=null;var _226=_4.attr(item,"for");if(_226){obj=_4.byId(_226);}if(obj&&_4.attr(obj,"type")!="radio"&&_4.attr(obj,"type")!="checkbox"){_4.addClass(item,"dl-hidden");var text=this._valueLabels[obj.id];if(text){_4.addClass(obj,this._inactive);obj.value=text;_4.connect(obj,"onfocus",this,function(){this.label2valueFocus(obj,text);});_4.connect(obj,"onblur",this,function(){this.label2valueBlur(obj,text);});}}},this);_4.query(".dl-label-size-radio").addClass("dl-hidden");console.log("end of label2value");},label2valueFocus:function(obj,text){console.log("label2valueFocus voor "+obj.id);if(!text){return;}_4.addClass(obj,this._focused);_4.removeClass(obj,this._active);_4.removeClass(obj,this._inactive);if(obj.value==text){obj.value="";}},label2valueBlur:function(obj,text){console.log("label2valueBlur voor "+obj.id+" text");if(!text){return;}_4.removeClass(obj,this._focused);if(obj.value==""){obj.value=text;_4.addClass(obj,this._inactive);}else{_4.addClass(obj,this._active);}},parseQueryParameters:function(){console.log("start of parseQueryParameters");var _227={params:_4.queryToObject(window.location.search.replace("?","")),callback:function(_228){if(_4.byId(_228)&&this.params[_228]){_4.byId(_228).value=this.params[_228];}}};var _229={params:_4.queryToObject(window.location.search.replace("?","")),callback:function(_22a){if(_4.byId(_22a)&&this.params[_22a]==="true"){console.debug(_4.byId(_22a).checked);console.debug(this.params[_22a]);_4.byId(_22a).checked=this.params[_22a];console.debug(_4.byId(_22a).checked);}}};_4.forEach(this._queryFields,_4.hitch(_227,"callback"));_4.forEach(this._queryCheckedFields,_4.hitch(_229,"callback"));console.log("end of parseQueryParameters");},cleanErrorIndications:function(){_4.query("div .dl-error-box").forEach(function(item,_22b,_22c){this.toggleClass(item,"dl-visible","dl-hidden");},this);_4.query(".dl-icon-error").forEach(function(item,_22d,_22e){this.toggleClass(item,"dl-visible","dl-hidden");},this);_4.query(".dl-error-mandatory").forEach(function(item,_22f,_230){this.toggleClass(item,"dl-error-mandatory","dl-input-border");},this);var bd=_4.byId("foutBoodschapId");bd.innerHTML="";this.toggleClass(bd,"dl-visible","dl-hidden");_4.removeClass(bd,"dl-error");},toggleClass:function(_231,_232,_233){_4.removeClass(_231,_232);_4.addClass(_231,_233);},getLabelValueFor:function(id){if(!this._value2label){return "";}var text=this._valueLabels[id];if(!text){return "";}return text;},addLabelAndClassInactive:function(id){_4.byId(id).value=this.getLabelValueFor(id);if(this.isInputValueEqualLabel(id)){_4.addClass(_4.byId(id),this._inactive);_4.removeClass(_4.byId(id),this._active);}},isPaginaMetHerkenningsPunt:function(){return this._metOri;},toggleOpBasisVanVertrek:function(){console.log("begin toggleOpBasisVanVertrek");if(!this.isPaginaMetHerkenningsPunt()){return;}if(_4.byId("vertrekOpBasisVanStraat").checked){this.toggleClass("vertrekHerkenningspuntId","dl-visible","dl-hidden");this.toggleClass("vertrekHerkenningspuntNrId","dl-invisible","dl-hidden");this.toggleClass("vertrekStraatId","dl-hidden","dl-visible");this.toggleClass("vertrekNrId","dl-hidden","dl-visible");this.resetVerplichtVeld("vertrekHerkenningspunt");if(this._value2label){this.addLabelAndClassInactive("vertrekHerkenningspunt");}}else{this.toggleClass("vertrekHerkenningspuntId","dl-hidden","dl-visible");this.toggleClass("vertrekHerkenningspuntNrId","dl-hidden","dl-invisible");this.toggleClass("vertrekStraatId","dl-visible","dl-hidden");this.toggleClass("vertrekNrId","dl-visible","dl-hidden");this.resetVerplichtVeld("vertrekStraat");this.resetVerplichtVeld("vertrekNr");if(this._value2label){this.addLabelAndClassInactive("vertrekStraat");}}console.log("end toggleOpBasisVanVertrek");},toggleOpBasisVanAankomst:function(){console.log("begin toggleOpBasisVanAankomst");if(!this.isPaginaMetHerkenningsPunt()){return;}if(_4.byId("aankomstOpBasisVanStraat").checked){this.toggleClass("aankomstHerkenningspuntId","dl-visible","dl-hidden");this.toggleClass("aankomstHerkenningspuntNrId","dl-invisible","dl-hidden");this.toggleClass("aankomstStraatId","dl-hidden","dl-visible");this.toggleClass("aankomstNrId","dl-hidden","dl-visible");this.resetVerplichtVeld("aankomstHerkenningspunt");if(this._value2label){this.addLabelAndClassInactive("aankomstHerkenningspunt");}}else{this.toggleClass("aankomstHerkenningspuntId","dl-hidden","dl-visible");this.toggleClass("aankomstHerkenningspuntNrId","dl-hidden","dl-invisible");this.toggleClass("aankomstStraatId","dl-visible","dl-hidden");this.toggleClass("aankomstNrId","dl-visible","dl-hidden");_4.byId("aankomstStraat").value=this.getLabelValueFor("aankomstStraat");this.resetVerplichtVeld("aankomstStraat");this.resetVerplichtVeld("aankomstNr");if(this._value2label){this.addLabelAndClassInactive("aankomstStraat");}}console.log("end toggleOpBasisVanAankomst");},removeLabelsFromInputFields:function(){console.log("start removeLabelsFromInputFields");if(!this._value2label){return "";}_4.forEach(this.getMandatoryFields().concat(this._streetNrFields),function(item){if(this.isInputValueEqualLabel(item)){_4.byId(item).value="";}},this);console.log("end removeLabelsFromInputFields");},displayReisAdvies:function(){console.log("start displayReisAdvies");this.switchImageOn();this.checkVerplichteVelden();if(_4.query(".dl-error-mandatory").length!=0){this.switchImageOff();return;}this.removeLabelsFromInputFields();this.cleanErrorIndications();var _234=_4.formToJson(_4.byId("routeplanAanvraagFormId"));console.log(_234);this._dwrMethod(_234,{callback:_4.hitch(this,"callbackReisadvies"),errorHandler:_4.hitch(this,"displayBackEndError")});console.log("end displayReisAdvies");},callbackReisadvies:function(data){console.log("start displayReisAdvies callback");if(data.indexOf("dl-error")==-1){_4.byId("reisadviesId").innerHTML=data;this.replaceLoadingDialogByResult();}else{this.displayFoutBoodschap(data,false);this.switchImageOff();}console.log("  start query prErrors");_4.query(".prErrors").forEach(function(item,_235,_236){var _237=_4.string.trim(item.innerHTML);this.toggleClass(_4.byId("errorIcon"+_237),"dl-hidden","dl-visible");this.toggleClass(_4.byId("errorBoodschap"+_237),"dl-hidden","dl-visible");},this);_4.query(".prPagErrors").forEach(function(item,_238,_239){this.toggleClass(_4.byId("errorIconDatum"),"dl-hidden","dl-visible");this.toggleClass(_4.byId("errorBoodschapDatum"),"dl-hidden","dl-visible");_4.byId("errorBoodschapDatum").innerHTML=_4.string.trim(item.innerHTML);},this);_4.query(".dl-collapse").forEach(function(item,_23a,_23b){_4.connect(item,"onclick",this,function(e){e.preventDefault();this.collapsExpand(item.id);});},this);_4.query(".dl-icon-walk").forEach(function(item,_23c,_23d){_4.connect(item.parentNode,"onclick",this,function(e){e.preventDefault();this.displayWandelRoute(item.id);});},this);_4.query("td.dl-icon-nota").forEach(function(item,_23e,_23f){_4.connect(item.parentNode,"onclick",this,function(e){e.preventDefault();this.displayNota(item.id);});},this);_4.connect(_4.byId("reisadviesFooterId"),"onclick",this._reisAdviesDialog,"onCancel");console.log("end displayReisAdvies callback");},replaceLoadingDialogByResult:function(){this.switchImageOff();this._reisAdviesDialog.show();},collapsExpand:function(id){var _240=id.replace("reisadviesInstructieId","reisadviesBoxContentId");var _241=_4.query("#"+_240+".dl-hidden");if(_241.length>0){this.toggleClass(_241[0].id,"dl-hidden","dl-visible");_4.byId(id.replace("reisadviesInstructieId","reisadviesInstructieTextId")).innerHTML="Sluit details";}else{_4.query("#"+_240+".dl-visible").forEach(function(item){this.toggleClass(item.id,"dl-visible","dl-hidden");},this);_4.byId(id.replace("reisadviesInstructieId","reisadviesInstructieTextId")).innerHTML="Open details";}},displayBackEndError:function(msg,_242){this.switchImageOff();this.toggleClass(_4.byId("errorIconDatum"),"dl-visible","dl-hidden");this.displayFoutBoodschap("Onze excuses, we kunnen momenteel deze vraag niet afhandelen.",true);console.log("Oeps");console.error(msg);console.error(_242);},displayFoutBoodschap:function(msg,_243){var bd=_4.byId("foutBoodschapId");bd.innerHTML=msg;this.toggleClass(bd,"dl-hidden","dl-visible");if(_243){_4.addClass(bd,"dl-error");}},switchImageOff:function(){this._loadingDialog.hide();},switchImageOn:function(){this._loadingDialog.show();},isInputValueEqualLabel:function(id){var text=this.getLabelValueFor(id);return _4.byId(id).value==text;},checkVerplichtVeld:function(id){var elem=_4.byId(id);if(!elem){return;}if(elem.value.length==0||this.isInputValueEqualLabel(id)){this.toggleClass(elem,"dl-input-border","dl-error-mandatory");}else{this.toggleClass(elem,"dl-error-mandatory","dl-input-border");var _244=id.substring(0,1).toUpperCase()+id.substring(1,id.length);this.toggleClass("errorBoodschap"+_244,"dl-visible","dl-hidden");this.toggleClass("errorIcon"+_244,"dl-visible","dl-hidden");}if(_4.query(".dl-error-mandatory").length==0){_4.byId("reisadviesId").innerHTML="";_4.removeClass(_4.byId("reisadviesId"),"dl-error");}},checkVerplichteVelden:function(){_4.forEach(this.getMandatoryFields(),function(_245){this.checkVerplichtVeld(_245);},this);if(!this.isPaginaMetHerkenningsPunt()){return;}if(_4.byId("aankomstOpBasisVanStraat").checked){this.toggleClass("aankomstHerkenningspunt","dl-error-mandatory","dl-input-border");}else{this.toggleClass("aankomstStraat","dl-error-mandatory","dl-input-border");}if(_4.byId("vertrekOpBasisVanStraat").checked){this.toggleClass("vertrekHerkenningspunt","dl-error-mandatory","dl-input-border");}else{this.toggleClass("vertrekStraat","dl-error-mandatory","dl-input-border");}},resetVerplichtVeld:function(id){this.toggleClass(id,"dl-error-mandatory","dl-input-border");},displayWandelRoute:function(id){console.log("start displayWandelRoute");_4.byId("wandelRouteId").innerHTML=_4.byId(id+"Boodschap").innerHTML;this._wandelRouteDialog.show();this._wandelRouteDialog.connect(_4.byId("wandelFooterId"),"onclick","onCancel");console.log("end displayWandelRoute");},displayNota:function(id){console.log("start displayNota");_4.byId("notaId").innerHTML=_4.byId(id+"Boodschap").innerHTML;this._notaDialog.show();this._notaDialog.connect(_4.byId("notaFooterId"),"onclick","onCancel");console.log("end displayNota");},swapLocatieMouseOver:function(){this.toggleClass(_4.byId("swapId"),"dl-icon-swap-onMouseOut","dl-icon-swap-onMouseOver");},swapLocatieMouseOut:function(){this.toggleClass(_4.byId("swapId"),"dl-icon-swap-onMouseOver","dl-icon-swap-onMouseOut");},swapLocatie:function(){console.log("start swapLocatie");_4.forEach(this.getSwapFields(),function(_246){var _247=_4.byId("vertrek"+_246).value;_4.byId("vertrek"+_246).value=_4.byId("aankomst"+_246).value;_4.byId("aankomst"+_246).value=_247;});if(!this.isPaginaMetHerkenningsPunt()){return;}var _248=_4.byId("vertrekOpBasisVanStraat").checked;if(_4.byId("aankomstOpBasisVanStraat").checked){_4.byId("vertrekOpBasisVanStraat").checked=true;}else{_4.byId("vertrekOpBasisVanHerkenningspunt").checked=true;}if(_248){_4.byId("aankomstOpBasisVanStraat").checked=_248;}else{_4.byId("aankomstOpBasisVanHerkenningspunt").checked=true;}this.toggleOpBasisVanVertrek();this.toggleOpBasisVanAankomst();console.log("end swapLocatie");},getMandatoryFields:function(){console.log("start getMandatoryFields");if(this.isPaginaMetHerkenningsPunt()){return this._mandatoryFields;}var _249=[];_4.forEach(this._mandatoryFields,function(_24a){var _24b=false;_4.forEach(this._oriFields,function(_24c){if(item==this){_24c=true;}},item);if(_24b){_24a.push(item);}},this);console.log("end getMandatoryFields");return _249;},getSwapFields:function(){console.log("start getSwapFields");if(this.isPaginaMetHerkenningsPunt()){return this._swapFields;}var _24d=[];_4.forEach(this._swapFields,function(item){if(item!="Herkenningspunt"){this.push(item);}},_24d);console.log("end getSwapFields");return _24d;},formatDate:function(_24e){return ((_24e.getDate()<10?"0":"")+_24e.getDate()+"/"+(_24e.getMonth()<9?"0":"")+(_24e.getMonth()+1)+"/"+_24e.getFullYear());}});}}};});
