/*
	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
	Available via Academic Free License >= 2.1 OR the modified BSD license.
	see: http://dojotoolkit.org/license for details
*/

/*
	This is a compiled version of Dojo, built for deployment and not for
	development. To get an editable version, please visit:

		http://dojotoolkit.org

	for documentation and information on getting the source.
*/

if(!dojo._hasResource["dojo.colors"]){dojo._hasResource["dojo.colors"]=true;dojo.provide("dojo.colors");(function(){var _1=function(m1,m2,h){if(h<0){++h;}if(h>1){--h;}var h6=6*h;if(h6<1){return m1+(m2-m1)*h6;}if(2*h<1){return m2;}if(3*h<2){return m1+(m2-m1)*(2/3-h)*6;}return m1;};dojo.colorFromRgb=function(_6,_7){var m=_6.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(m){var c=m[2].split(/\s*,\s*/),l=c.length,t=m[1],a;if((t=="rgb"&&l==3)||(t=="rgba"&&l==4)){var r=c[0];if(r.charAt(r.length-1)=="%"){a=dojo.map(c,function(x){return parseFloat(x)*2.56;});if(l==4){a[3]=c[3];}return dojo.colorFromArray(a,_7);}return dojo.colorFromArray(c,_7);}if((t=="hsl"&&l==3)||(t=="hsla"&&l==4)){var H=((parseFloat(c[0])%360)+360)%360/360,S=parseFloat(c[1])/100,L=parseFloat(c[2])/100,m2=L<=0.5?L*(S+1):L+S-L*S,m1=2*L-m2;a=[_1(m1,m2,H+1/3)*256,_1(m1,m2,H)*256,_1(m1,m2,H-1/3)*256,1];if(l==4){a[3]=c[3];}return dojo.colorFromArray(a,_7);}}return null;};var _14=function(c,low,_17){c=Number(c);return isNaN(c)?_17:c<low?low:c>_17?_17:c;};dojo.Color.prototype.sanitize=function(){var t=this;t.r=Math.round(_14(t.r,0,255));t.g=Math.round(_14(t.g,0,255));t.b=Math.round(_14(t.b,0,255));t.a=_14(t.a,0,1);return this;};})();dojo.colors.makeGrey=function(g,a){return dojo.colorFromArray([g,g,g,a]);};dojo.mixin(dojo.Color.named,{aliceblue:[240,248,255],antiquewhite:[250,235,215],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],blanchedalmond:[255,235,205],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],oldlace:[253,245,230],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],thistle:[216,191,216],tomato:[255,99,71],transparent:[0,0,0,0],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],whitesmoke:[245,245,245],yellowgreen:[154,205,50]});}if(!dojo._hasResource["dojo.i18n"]){dojo._hasResource["dojo.i18n"]=true;dojo.provide("dojo.i18n");dojo.i18n.getLocalization=function(_1b,_1c,_1d){_1d=dojo.i18n.normalizeLocale(_1d);var _1e=_1d.split("-");var _1f=[_1b,"nls",_1c].join(".");var _20=dojo._loadedModules[_1f];if(_20){var _21;for(var i=_1e.length;i>0;i--){var loc=_1e.slice(0,i).join("_");if(_20[loc]){_21=_20[loc];break;}}if(!_21){_21=_20.ROOT;}if(_21){var _24=function(){};_24.prototype=_21;return new _24();}}throw new Error("Bundle not found: "+_1c+" in "+_1b+" , locale="+_1d);};dojo.i18n.normalizeLocale=function(_25){var _26=_25?_25.toLowerCase():dojo.locale;if(_26=="root"){_26="ROOT";}return _26;};dojo.i18n._requireLocalization=function(_27,_28,_29,_2a){var _2b=dojo.i18n.normalizeLocale(_29);var _2c=[_27,"nls",_28].join(".");var _2d="";if(_2a){var _2e=_2a.split(",");for(var i=0;i<_2e.length;i++){if(_2b["indexOf"](_2e[i])==0){if(_2e[i].length>_2d.length){_2d=_2e[i];}}}if(!_2d){_2d="ROOT";}}var _30=_2a?_2d:_2b;var _31=dojo._loadedModules[_2c];var _32=null;if(_31){if(dojo.config.localizationComplete&&_31._built){return;}var _33=_30.replace(/-/g,"_");var _34=_2c+"."+_33;_32=dojo._loadedModules[_34];}if(!_32){_31=dojo["provide"](_2c);var _35=dojo._getModuleSymbols(_27);var _36=_35.concat("nls").join("/");var _37;dojo.i18n._searchLocalePath(_30,_2a,function(loc){var _39=loc.replace(/-/g,"_");var _3a=_2c+"."+_39;var _3b=false;if(!dojo._loadedModules[_3a]){dojo["provide"](_3a);var _3c=[_36];if(loc!="ROOT"){_3c.push(loc);}_3c.push(_28);var _3d=_3c.join("/")+".js";_3b=dojo._loadPath(_3d,null,function(_3e){var _3f=function(){};_3f.prototype=_37;_31[_39]=new _3f();for(var j in _3e){_31[_39][j]=_3e[j];}});}else{_3b=true;}if(_3b&&_31[_39]){_37=_31[_39];}else{_31[_39]=_37;}if(_2a){return true;}});}if(_2a&&_2b!=_2d){_31[_2b.replace(/-/g,"_")]=_31[_2d.replace(/-/g,"_")];}};(function(){var _41=dojo.config.extraLocale;if(_41){if(!_41 instanceof Array){_41=[_41];}var req=dojo.i18n._requireLocalization;dojo.i18n._requireLocalization=function(m,b,_45,_46){req(m,b,_45,_46);if(_45){return;}for(var i=0;i<_41.length;i++){req(m,b,_41[i],_46);}};}})();dojo.i18n._searchLocalePath=function(_48,_49,_4a){_48=dojo.i18n.normalizeLocale(_48);var _4b=_48.split("-");var _4c=[];for(var i=_4b.length;i>0;i--){_4c.push(_4b.slice(0,i).join("-"));}_4c.push(false);if(_49){_4c.reverse();}for(var j=_4c.length-1;j>=0;j--){var loc=_4c[j]||"ROOT";var _50=_4a(loc);if(_50){break;}}};dojo.i18n._preloadLocalizations=function(_51,_52){function _53(_54){_54=dojo.i18n.normalizeLocale(_54);dojo.i18n._searchLocalePath(_54,true,function(loc){for(var i=0;i<_52.length;i++){if(_52[i]==loc){dojo["require"](_51+"_"+loc);return true;}}return false;});};_53();var _57=dojo.config.extraLocale||[];for(var i=0;i<_57.length;i++){_53(_57[i]);}};}if(!dojo._hasResource["dijit.ColorPalette"]){dojo._hasResource["dijit.ColorPalette"]=true;dojo.provide("dijit.ColorPalette");dojo.declare("dijit.ColorPalette",[dijit._Widget,dijit._Templated],{defaultTimeout:500,timeoutChangeRate:0.9,palette:"7x10",value:null,_currentFocus:0,_xDim:null,_yDim:null,_palettes:{"7x10":[["white","seashell","cornsilk","lemonchiffon","lightyellow","palegreen","paleturquoise","lightcyan","lavender","plum"],["lightgray","pink","bisque","moccasin","khaki","lightgreen","lightseagreen","lightskyblue","cornflowerblue","violet"],["silver","lightcoral","sandybrown","orange","palegoldenrod","chartreuse","mediumturquoise","skyblue","mediumslateblue","orchid"],["gray","red","orangered","darkorange","yellow","limegreen","darkseagreen","royalblue","slateblue","mediumorchid"],["dimgray","crimson","chocolate","coral","gold","forestgreen","seagreen","blue","blueviolet","darkorchid"],["darkslategray","firebrick","saddlebrown","sienna","olive","green","darkcyan","mediumblue","darkslateblue","darkmagenta"],["black","darkred","maroon","brown","darkolivegreen","darkgreen","midnightblue","navy","indigo","purple"]],"3x4":[["white","lime","green","blue"],["silver","yellow","fuchsia","navy"],["gray","red","purple","black"]]},_imagePaths:{"7x10":dojo.moduleUrl("dijit.themes","a11y/colors7x10.png"),"3x4":dojo.moduleUrl("dijit.themes","a11y/colors3x4.png")},_paletteCoords:{"leftOffset":3,"topOffset":3,"cWidth":20,"cHeight":20},templateString:"<div class=\"dijitInline dijitColorPalette\">\n\t<div class=\"dijitColorPaletteInner\" dojoAttachPoint=\"divNode\" waiRole=\"grid\" tabIndex=\"${tabIndex}\">\n\t\t<img class=\"dijitColorPaletteUnder\" dojoAttachPoint=\"imageNode\" waiRole=\"presentation\">\n\t</div>\t\n</div>\n",_paletteDims:{"7x10":{"width":"206px","height":"145px"},"3x4":{"width":"86px","height":"64px"}},tabIndex:"0",postCreate:function(){dojo.mixin(this.divNode.style,this._paletteDims[this.palette]);this.imageNode.setAttribute("src",this._imagePaths[this.palette]);var _59=this._palettes[this.palette];this.domNode.style.position="relative";this._cellNodes=[];this.colorNames=dojo.i18n.getLocalization("dojo","colors",this.lang);var url=this._blankGif,_5b=new dojo.Color(),_5c=this._paletteCoords;for(var row=0;row<_59.length;row++){for(var col=0;col<_59[row].length;col++){var _5f=_59[row][col],_60=_5b.setColor(dojo.Color.named[_5f]);var _61=dojo.create("span",{"class":"dijitPaletteCell","tabindex":"-1",title:this.colorNames[_5f],style:{top:_5c.topOffset+(row*_5c.cHeight)+"px",left:_5c.leftOffset+(col*_5c.cWidth)+"px"}});var _62=dojo.create("img",{src:url,"class":"dijitPaletteImg",alt:this.colorNames[_5f]},_61);_62.color=_60.toHex();var _63=_62.style;_63.color=_63.backgroundColor=_62.color;dojo.forEach(["Dijitclick","MouseEnter","Focus","Blur"],function(_64){this.connect(_61,"on"+_64.toLowerCase(),"_onCell"+_64);},this);dojo.place(_61,this.divNode);dijit.setWaiRole(_61,"gridcell");_61.index=this._cellNodes.length;this._cellNodes.push(_61);}}this._xDim=_59[0].length;this._yDim=_59.length;this.connect(this.divNode,"onfocus","_onDivNodeFocus");var _65={UP_ARROW:-this._xDim,DOWN_ARROW:this._xDim,RIGHT_ARROW:1,LEFT_ARROW:-1};for(var key in _65){this._connects.push(dijit.typematic.addKeyListener(this.domNode,{charOrCode:dojo.keys[key],ctrlKey:false,altKey:false,shiftKey:false},this,function(){var _67=_65[key];return function(_68){this._navigateByKey(_67,_68);};}(),this.timeoutChangeRate,this.defaultTimeout));}},focus:function(){this._focusFirst();},onChange:function(_69){},_focusFirst:function(){this._currentFocus=0;var _6a=this._cellNodes[this._currentFocus];window.setTimeout(function(){dijit.focus(_6a);},0);},_onDivNodeFocus:function(evt){if(evt.target===this.divNode){this._focusFirst();}},_onFocus:function(){dojo.attr(this.divNode,"tabindex","-1");},_onBlur:function(){this._removeCellHighlight(this._currentFocus);dojo.attr(this.divNode,"tabindex",this.tabIndex);},_onCellDijitclick:function(evt){var _6d=evt.currentTarget;if(this._currentFocus!=_6d.index){this._currentFocus=_6d.index;window.setTimeout(function(){dijit.focus(_6d);},0);}this._selectColor(_6d);dojo.stopEvent(evt);},_onCellMouseEnter:function(evt){var _6f=evt.currentTarget;this._setCurrent(_6f);window.setTimeout(function(){dijit.focus(_6f);},0);},_onCellFocus:function(evt){this._setCurrent(evt.currentTarget);},_setCurrent:function(_71){this._removeCellHighlight(this._currentFocus);this._currentFocus=_71.index;dojo.addClass(_71,"dijitPaletteCellHighlight");},_onCellBlur:function(evt){this._removeCellHighlight(this._currentFocus);},_removeCellHighlight:function(_73){dojo.removeClass(this._cellNodes[_73],"dijitPaletteCellHighlight");},_selectColor:function(_74){var img=_74.getElementsByTagName("img")[0];this.onChange(this.value=img.color);},_navigateByKey:function(_76,_77){if(_77==-1){return;}var _78=this._currentFocus+_76;if(_78<this._cellNodes.length&&_78>-1){var _79=this._cellNodes[_78];_79.focus();}}});}if(!dojo._hasResource["dijit.Declaration"]){dojo._hasResource["dijit.Declaration"]=true;dojo.provide("dijit.Declaration");dojo.declare("dijit.Declaration",dijit._Widget,{_noScript:true,widgetClass:"",defaults:null,mixins:[],buildRendering:function(){var src=this.srcNodeRef.parentNode.removeChild(this.srcNodeRef),_7b=dojo.query("> script[type^='dojo/method'][event]",src).orphan(),_7c=dojo.query("> script[type^='dojo/method']",src).orphan(),_7d=dojo.query("> script[type^='dojo/connect']",src).orphan(),_7e=src.nodeName;var _7f=this.defaults||{};dojo.forEach(_7b,function(s){var evt=s.getAttribute("event"),_82=dojo.parser._functionFromScript(s);_7f[evt]=_82;});this.mixins=this.mixins.length?dojo.map(this.mixins,function(_83){return dojo.getObject(_83);}):[dijit._Widget,dijit._Templated];_7f.widgetsInTemplate=true;_7f._skipNodeCache=true;_7f.templateString="<"+_7e+" class='"+src.className+"' dojoAttachPoint='"+(src.getAttribute("dojoAttachPoint")||"")+"' dojoAttachEvent='"+(src.getAttribute("dojoAttachEvent")||"")+"' >"+src.innerHTML.replace(/\%7B/g,"{").replace(/\%7D/g,"}")+"</"+_7e+">";dojo.query("[dojoType]",src).forEach(function(_84){_84.removeAttribute("dojoType");});var wc=dojo.declare(this.widgetClass,this.mixins,_7f);var _86=_7d.concat(_7c);dojo.forEach(_86,function(s){var evt=s.getAttribute("event")||"postscript",_89=dojo.parser._functionFromScript(s);dojo.connect(wc.prototype,evt,_89);});}});}if(!dojo._hasResource["dojo.dnd.common"]){dojo._hasResource["dojo.dnd.common"]=true;dojo.provide("dojo.dnd.common");dojo.dnd._isMac=navigator.appVersion.indexOf("Macintosh")>=0;dojo.dnd._copyKey=dojo.dnd._isMac?"metaKey":"ctrlKey";dojo.dnd.getCopyKeyState=function(e){return e[dojo.dnd._copyKey];};dojo.dnd._uniqueId=0;dojo.dnd.getUniqueId=function(){var id;do{id=dojo._scopeName+"Unique"+(++dojo.dnd._uniqueId);}while(dojo.byId(id));return id;};dojo.dnd._empty={};dojo.dnd.isFormElement=function(e){var t=e.target;if(t.nodeType==3){t=t.parentNode;}return " button textarea input select option ".indexOf(" "+t.tagName.toLowerCase()+" ")>=0;};dojo.dnd._lmb=dojo.isIE?1:0;dojo.dnd._isLmbPressed=dojo.isIE?function(e){return e.button&1;}:function(e){return e.button===0;};}if(!dojo._hasResource["dojo.dnd.autoscroll"]){dojo._hasResource["dojo.dnd.autoscroll"]=true;dojo.provide("dojo.dnd.autoscroll");dojo.dnd.getViewport=function(){var d=dojo.doc,dd=d.documentElement,w=window,b=dojo.body();if(dojo.isMozilla){return {w:dd.clientWidth,h:w.innerHeight};}else{if(!dojo.isOpera&&w.innerWidth){return {w:w.innerWidth,h:w.innerHeight};}else{if(!dojo.isOpera&&dd&&dd.clientWidth){return {w:dd.clientWidth,h:dd.clientHeight};}else{if(b.clientWidth){return {w:b.clientWidth,h:b.clientHeight};}}}}return null;};dojo.dnd.V_TRIGGER_AUTOSCROLL=32;dojo.dnd.H_TRIGGER_AUTOSCROLL=32;dojo.dnd.V_AUTOSCROLL_VALUE=16;dojo.dnd.H_AUTOSCROLL_VALUE=16;dojo.dnd.autoScroll=function(e){var v=dojo.dnd.getViewport(),dx=0,dy=0;if(e.clientX<dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=-dojo.dnd.H_AUTOSCROLL_VALUE;}else{if(e.clientX>v.w-dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=dojo.dnd.H_AUTOSCROLL_VALUE;}}if(e.clientY<dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=-dojo.dnd.V_AUTOSCROLL_VALUE;}else{if(e.clientY>v.h-dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=dojo.dnd.V_AUTOSCROLL_VALUE;}}window.scrollBy(dx,dy);};dojo.dnd._validNodes={"div":1,"p":1,"td":1};dojo.dnd._validOverflow={"auto":1,"scroll":1};dojo.dnd.autoScrollNodes=function(e){for(var n=e.target;n;){if(n.nodeType==1&&(n.tagName.toLowerCase() in dojo.dnd._validNodes)){var s=dojo.getComputedStyle(n);if(s.overflow.toLowerCase() in dojo.dnd._validOverflow){var b=dojo._getContentBox(n,s),t=dojo._abs(n,true);var w=Math.min(dojo.dnd.H_TRIGGER_AUTOSCROLL,b.w/2),h=Math.min(dojo.dnd.V_TRIGGER_AUTOSCROLL,b.h/2),rx=e.pageX-t.x,ry=e.pageY-t.y,dx=0,dy=0;if(dojo.isWebKit||dojo.isOpera){rx+=dojo.body().scrollLeft,ry+=dojo.body().scrollTop;}if(rx>0&&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 _a3=n.scrollLeft,_a4=n.scrollTop;n.scrollLeft=n.scrollLeft+dx;n.scrollTop=n.scrollTop+dy;if(_a3!=n.scrollLeft||_a4!=n.scrollTop){return;}}}try{n=n.parentNode;}catch(x){n=null;}}dojo.dnd.autoScroll(e);};}if(!dojo._hasResource["dojo.dnd.Mover"]){dojo._hasResource["dojo.dnd.Mover"]=true;dojo.provide("dojo.dnd.Mover");dojo.declare("dojo.dnd.Mover",null,{constructor:function(_a5,e,_a7){this.node=dojo.byId(_a5);this.marginBox={l:e.pageX,t:e.pageY};this.mouseButton=e.button;var h=this.host=_a7,d=_a5.ownerDocument,_aa=dojo.connect(d,"onmousemove",this,"onFirstMove");this.events=[dojo.connect(d,"onmousemove",this,"onMouseMove"),dojo.connect(d,"onmouseup",this,"onMouseUp"),dojo.connect(d,"ondragstart",dojo.stopEvent),dojo.connect(d.body,"onselectstart",dojo.stopEvent),_aa];if(h&&h.onMoveStart){h.onMoveStart(this);}},onMouseMove:function(e){dojo.dnd.autoScroll(e);var m=this.marginBox;this.host.onMove(this,{l:m.l+e.pageX,t:m.t+e.pageY});dojo.stopEvent(e);},onMouseUp:function(e){if(dojo.isWebKit&&dojo.dnd._isMac&&this.mouseButton==2?e.button==0:this.mouseButton==e.button){this.destroy();}dojo.stopEvent(e);},onFirstMove:function(){var s=this.node.style,l,t,h=this.host;switch(s.position){case "relative":case "absolute":l=Math.round(parseFloat(s.left));t=Math.round(parseFloat(s.top));break;default:s.position="absolute";var m=dojo.marginBox(this.node);var b=dojo.doc.body;var bs=dojo.getComputedStyle(b);var bm=dojo._getMarginBox(b,bs);var bc=dojo._getContentBox(b,bs);l=m.l-(bc.l-bm.l);t=m.t-(bc.t-bm.t);break;}this.marginBox.l=l-this.marginBox.l;this.marginBox.t=t-this.marginBox.t;if(h&&h.onFirstMove){h.onFirstMove(this);}dojo.disconnect(this.events.pop());},destroy:function(){dojo.forEach(this.events,dojo.disconnect);var h=this.host;if(h&&h.onMoveStop){h.onMoveStop(this);}this.events=this.node=this.host=null;}});}if(!dojo._hasResource["dojo.dnd.Moveable"]){dojo._hasResource["dojo.dnd.Moveable"]=true;dojo.provide("dojo.dnd.Moveable");dojo.declare("dojo.dnd.Moveable",null,{handle:"",delay:0,skip:false,constructor:function(_b8,_b9){this.node=dojo.byId(_b8);if(!_b9){_b9={};}this.handle=_b9.handle?dojo.byId(_b9.handle):null;if(!this.handle){this.handle=this.node;}this.delay=_b9.delay>0?_b9.delay:0;this.skip=_b9.skip;this.mover=_b9.mover?_b9.mover:dojo.dnd.Mover;this.events=[dojo.connect(this.handle,"onmousedown",this,"onMouseDown"),dojo.connect(this.handle,"ondragstart",this,"onSelectStart"),dojo.connect(this.handle,"onselectstart",this,"onSelectStart")];},markupFactory:function(_ba,_bb){return new dojo.dnd.Moveable(_bb,_ba);},destroy:function(){dojo.forEach(this.events,dojo.disconnect);this.events=this.node=this.handle=null;},onMouseDown:function(e){if(this.skip&&dojo.dnd.isFormElement(e)){return;}if(this.delay){this.events.push(dojo.connect(this.handle,"onmousemove",this,"onMouseMove"),dojo.connect(this.handle,"onmouseup",this,"onMouseUp"));this._lastX=e.pageX;this._lastY=e.pageY;}else{this.onDragDetected(e);}dojo.stopEvent(e);},onMouseMove:function(e){if(Math.abs(e.pageX-this._lastX)>this.delay||Math.abs(e.pageY-this._lastY)>this.delay){this.onMouseUp(e);this.onDragDetected(e);}dojo.stopEvent(e);},onMouseUp:function(e){for(var i=0;i<2;++i){dojo.disconnect(this.events.pop());}dojo.stopEvent(e);},onSelectStart:function(e){if(!this.skip||!dojo.dnd.isFormElement(e)){dojo.stopEvent(e);}},onDragDetected:function(e){new this.mover(this.node,e,this);},onMoveStart:function(_c2){dojo.publish("/dnd/move/start",[_c2]);dojo.addClass(dojo.body(),"dojoMove");dojo.addClass(this.node,"dojoMoveItem");},onMoveStop:function(_c3){dojo.publish("/dnd/move/stop",[_c3]);dojo.removeClass(dojo.body(),"dojoMove");dojo.removeClass(this.node,"dojoMoveItem");},onFirstMove:function(_c4){},onMove:function(_c5,_c6){this.onMoving(_c5,_c6);var s=_c5.node.style;s.left=_c6.l+"px";s.top=_c6.t+"px";this.onMoved(_c5,_c6);},onMoving:function(_c8,_c9){},onMoved:function(_ca,_cb){}});}if(!dojo._hasResource["dojo.dnd.move"]){dojo._hasResource["dojo.dnd.move"]=true;dojo.provide("dojo.dnd.move");dojo.declare("dojo.dnd.move.constrainedMoveable",dojo.dnd.Moveable,{constraints:function(){},within:false,markupFactory:function(_cc,_cd){return new dojo.dnd.move.constrainedMoveable(_cd,_cc);},constructor:function(_ce,_cf){if(!_cf){_cf={};}this.constraints=_cf.constraints;this.within=_cf.within;},onFirstMove:function(_d0){var c=this.constraintBox=this.constraints.call(this,_d0);c.r=c.l+c.w;c.b=c.t+c.h;if(this.within){var mb=dojo.marginBox(_d0.node);c.r-=mb.w;c.b-=mb.h;}},onMove:function(_d3,_d4){var c=this.constraintBox,s=_d3.node.style;s.left=(_d4.l<c.l?c.l:c.r<_d4.l?c.r:_d4.l)+"px";s.top=(_d4.t<c.t?c.t:c.b<_d4.t?c.b:_d4.t)+"px";}});dojo.declare("dojo.dnd.move.boxConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{box:{},markupFactory:function(_d7,_d8){return new dojo.dnd.move.boxConstrainedMoveable(_d8,_d7);},constructor:function(_d9,_da){var box=_da&&_da.box;this.constraints=function(){return box;};}});dojo.declare("dojo.dnd.move.parentConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(_dc,_dd){return new dojo.dnd.move.parentConstrainedMoveable(_dd,_dc);},constructor:function(_de,_df){var _e0=_df&&_df.area;this.constraints=function(){var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);if(_e0=="margin"){return mb;}var t=dojo._getMarginExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(_e0=="border"){return mb;}t=dojo._getBorderExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(_e0=="padding"){return mb;}t=dojo._getPadExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;return mb;};}});dojo.dnd.move.constrainedMover=function(fun,_e6){dojo.deprecated("dojo.dnd.move.constrainedMover, use dojo.dnd.move.constrainedMoveable instead");var _e7=function(_e8,e,_ea){dojo.dnd.Mover.call(this,_e8,e,_ea);};dojo.extend(_e7,dojo.dnd.Mover.prototype);dojo.extend(_e7,{onMouseMove:function(e){dojo.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(){dojo.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(_e6){var mb=dojo.marginBox(this.node);c.r-=mb.w;c.b-=mb.h;}}});return _e7;};dojo.dnd.move.boxConstrainedMover=function(box,_f3){dojo.deprecated("dojo.dnd.move.boxConstrainedMover, use dojo.dnd.move.boxConstrainedMoveable instead");return dojo.dnd.move.constrainedMover(function(){return box;},_f3);};dojo.dnd.move.parentConstrainedMover=function(_f4,_f5){dojo.deprecated("dojo.dnd.move.parentConstrainedMover, use dojo.dnd.move.parentConstrainedMoveable instead");var fun=function(){var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);if(_f4=="margin"){return mb;}var t=dojo._getMarginExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(_f4=="border"){return mb;}t=dojo._getBorderExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(_f4=="padding"){return mb;}t=dojo._getPadExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;return mb;};return dojo.dnd.move.constrainedMover(fun,_f5);};dojo.dnd.constrainedMover=dojo.dnd.move.constrainedMover;dojo.dnd.boxConstrainedMover=dojo.dnd.move.boxConstrainedMover;dojo.dnd.parentConstrainedMover=dojo.dnd.move.parentConstrainedMover;}if(!dojo._hasResource["dojo.dnd.TimedMoveable"]){dojo._hasResource["dojo.dnd.TimedMoveable"]=true;dojo.provide("dojo.dnd.TimedMoveable");(function(){var _fb=dojo.dnd.Moveable.prototype.onMove;dojo.declare("dojo.dnd.TimedMoveable",dojo.dnd.Moveable,{timeout:40,constructor:function(_fc,_fd){if(!_fd){_fd={};}if(_fd.timeout&&typeof _fd.timeout=="number"&&_fd.timeout>=0){this.timeout=_fd.timeout;}},markupFactory:function(_fe,_ff){return new dojo.dnd.TimedMoveable(_ff,_fe);},onMoveStop:function(_100){if(_100._timer){clearTimeout(_100._timer);_fb.call(this,_100,_100._leftTop);}dojo.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);},onMove:function(_101,_102){_101._leftTop=_102;if(!_101._timer){var _t=this;_101._timer=setTimeout(function(){_101._timer=null;_fb.call(_t,_101,_101._leftTop);},this.timeout);}}});})();}if(!dojo._hasResource["dojo.fx.Toggler"]){dojo._hasResource["dojo.fx.Toggler"]=true;dojo.provide("dojo.fx.Toggler");dojo.declare("dojo.fx.Toggler",null,{constructor:function(args){var _t=this;dojo.mixin(_t,args);_t.node=args.node;_t._showArgs=dojo.mixin({},args);_t._showArgs.node=_t.node;_t._showArgs.duration=_t.showDuration;_t.showAnim=_t.showFunc(_t._showArgs);_t._hideArgs=dojo.mixin({},args);_t._hideArgs.node=_t.node;_t._hideArgs.duration=_t.hideDuration;_t.hideAnim=_t.hideFunc(_t._hideArgs);dojo.connect(_t.showAnim,"beforeBegin",dojo.hitch(_t.hideAnim,"stop",true));dojo.connect(_t.hideAnim,"beforeBegin",dojo.hitch(_t.showAnim,"stop",true));},node:null,showFunc:dojo.fadeIn,hideFunc:dojo.fadeOut,showDuration:200,hideDuration:200,show:function(_106){return this.showAnim.play(_106||0);},hide:function(_107){return this.hideAnim.play(_107||0);}});}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");(function(){var d=dojo,_109={_fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[]);}return this;}};var _10c=function(_10d){this._index=-1;this._animations=_10d||[];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(_10c,{_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(_10f,_110){if(!this._current){this._current=this._animations[this._index=0];}if(!_110&&this._current.status()=="playing"){return this;}var _111=d.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_112=d.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_114=d.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);d.disconnect(_111);d.disconnect(_112);d.disconnect(_114);});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(_118,_119){this.pause();var _11a=this.duration*_118;this._current=null;d.some(this._animations,function(a){if(a.duration<=_11a){this._current=a;return true;}_11a-=a.duration;return false;});if(this._current){this._current.gotoPercent(_11a/this._current.duration,_119);}return this;},stop:function(_11c){if(this._current){if(_11c){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(_10c,_109);dojo.fx.chain=function(_11f){return new _10c(_11f);};var _120=function(_121){this._animations=_121||[];this._connects=[];this._finished=0;this.duration=0;d.forEach(_121,function(a){var _123=a.duration;if(a.delay){_123+=a.delay;}if(this.duration<_123){this.duration=_123;}this._connects.push(d.connect(a,"onEnd",this,"_onEnd"));},this);this._pseudoAnimation=new d._Animation({curve:[0,1],duration:this.duration});var self=this;d.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop"],function(evt){self._connects.push(d.connect(self._pseudoAnimation,evt,function(){self._fire(evt,arguments);}));});};d.extend(_120,{_doAction:function(_126,args){d.forEach(this._animations,function(a){a[_126].apply(a,args);});return this;},_onEnd:function(){if(++this._finished==this._animations.length){this._fire("onEnd");}},_call:function(_129,args){var t=this._pseudoAnimation;t[_129].apply(t,args);},play:function(_12c,_12d){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(_12e,_12f){var ms=this.duration*_12e;d.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_12f);});this._call("gotoPercent",arguments);return this;},stop:function(_132){this._doAction("stop",arguments);this._call("stop",arguments);return this;},status:function(){return this._pseudoAnimation.status();},destroy:function(){d.forEach(this._connects,dojo.disconnect);}});d.extend(_120,_109);dojo.fx.combine=function(_133){return new _120(_133);};dojo.fx.wipeIn=function(args){args.node=d.byId(args.node);var node=args.node,s=node.style,o;var anim=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 _139=d.style(node,"height");return Math.max(_139,1);}},end:function(){return node.scrollHeight;}}}},args));d.connect(anim,"onEnd",function(){s.height="auto";s.overflow=o;});return anim;};dojo.fx.wipeOut=function(args){var node=args.node=d.byId(args.node),s=node.style,o;var anim=d.animateProperty(d.mixin({properties:{height:{end:1}}},args));d.connect(anim,"beforeBegin",function(){o=s.overflow;s.overflow="hidden";s.display="";});d.connect(anim,"onEnd",function(){s.overflow=o;s.height="auto";s.display="none";});return anim;};dojo.fx.slideTo=function(args){var node=args.node=d.byId(args.node),top=null,left=null;var init=(function(n){return function(){var cs=d.getComputedStyle(n);var pos=cs.position;top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);left=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);if(pos!="absolute"&&pos!="relative"){var ret=d.coords(n,true);top=ret.y;left=ret.x;n.style.position="absolute";n.style.top=top+"px";n.style.left=left+"px";}};})(node);init();var anim=d.animateProperty(d.mixin({properties:{top:args.top||0,left:args.left||0}},args));d.connect(anim,"beforeBegin",anim,init);return anim;};})();}if(!dojo._hasResource["dijit.form._FormMixin"]){dojo._hasResource["dijit.form._FormMixin"]=true;dojo.provide("dijit.form._FormMixin");dojo.declare("dijit.form._FormMixin",null,{reset:function(){dojo.forEach(this.getDescendants(),function(_149){if(_149.reset){_149.reset();}});},validate:function(){var _14a=false;return dojo.every(dojo.map(this.getDescendants(),function(_14b){_14b._hasBeenBlurred=true;var _14c=_14b.disabled||!_14b.validate||_14b.validate();if(!_14c&&!_14a){dijit.scrollIntoView(_14b.containerNode||_14b.domNode);_14b.focus();_14a=true;}return _14c;}),function(item){return item;});},setValues:function(val){dojo.deprecated(this.declaredClass+"::setValues() is deprecated. Use attr('value', val) instead.","","2.0");return this.attr("value",val);},_setValueAttr:function(obj){var map={};dojo.forEach(this.getDescendants(),function(_151){if(!_151.name){return;}var _152=map[_151.name]||(map[_151.name]=[]);_152.push(_151);});for(var name in map){if(!map.hasOwnProperty(name)){continue;}var _154=map[name],_155=dojo.getObject(name,false,obj);if(_155===undefined){continue;}if(!dojo.isArray(_155)){_155=[_155];}if(typeof _154[0].checked=="boolean"){dojo.forEach(_154,function(w,i){w.attr("value",dojo.indexOf(_155,w.value)!=-1);});}else{if(_154[0]._multiValue){_154[0].attr("value",_155);}else{dojo.forEach(_154,function(w,i){w.attr("value",_155[i]);});}}}},getValues:function(){dojo.deprecated(this.declaredClass+"::getValues() is deprecated. Use attr('value') instead.","","2.0");return this.attr("value");},_getValueAttr:function(){var obj={};dojo.forEach(this.getDescendants(),function(_15b){var name=_15b.name;if(!name||_15b.disabled){return;}var _15d=_15b.attr("value");if(typeof _15b.checked=="boolean"){if(/Radio/.test(_15b.declaredClass)){if(_15d!==false){dojo.setObject(name,_15d,obj);}else{_15d=dojo.getObject(name,false,obj);if(_15d===undefined){dojo.setObject(name,null,obj);}}}else{var ary=dojo.getObject(name,false,obj);if(!ary){ary=[];dojo.setObject(name,ary,obj);}if(_15d!==false){ary.push(_15d);}}}else{dojo.setObject(name,_15d,obj);}});return obj;},isValid:function(){this._invalidWidgets=dojo.filter(this.getDescendants(),function(_15f){return !_15f.disabled&&_15f.isValid&&!_15f.isValid();});return !this._invalidWidgets.length;},onValidStateChange:function(_160){},_widgetChange:function(_161){var _162=this._lastValidState;if(!_161||this._lastValidState===undefined){_162=this.isValid();if(this._lastValidState===undefined){this._lastValidState=_162;}}else{if(_161.isValid){this._invalidWidgets=dojo.filter(this._invalidWidgets||[],function(w){return (w!=_161);},this);if(!_161.isValid()&&!_161.attr("disabled")){this._invalidWidgets.push(_161);}_162=(this._invalidWidgets.length===0);}}if(_162!==this._lastValidState){this._lastValidState=_162;this.onValidStateChange(_162);}},connectChildren:function(){dojo.forEach(this._changeConnections,dojo.hitch(this,"disconnect"));var _164=this;var _165=this._changeConnections=[];dojo.forEach(dojo.filter(this.getDescendants(),function(item){return item.validate;}),function(_167){_165.push(_164.connect(_167,"validate",dojo.hitch(_164,"_widgetChange",_167)));_165.push(_164.connect(_167,"_setDisabledAttr",dojo.hitch(_164,"_widgetChange",_167)));});this._widgetChange(null);},startup:function(){this.inherited(arguments);this._changeConnections=[];this.connectChildren();}});}if(!dojo._hasResource["dijit._DialogMixin"]){dojo._hasResource["dijit._DialogMixin"]=true;dojo.provide("dijit._DialogMixin");dojo.declare("dijit._DialogMixin",null,{attributeMap:dijit._Widget.prototype.attributeMap,execute:function(_168){},onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.attr("value"));},_getFocusItems:function(_169){var _16a=dijit._getTabNavigable(dojo.byId(_169));this._firstFocusItem=_16a.lowest||_16a.first||_169;this._lastFocusItem=_16a.last||_16a.highest||this._firstFocusItem;if(dojo.isMoz&&this._firstFocusItem.tagName.toLowerCase()=="input"&&dojo.attr(this._firstFocusItem,"type").toLowerCase()=="file"){dojo.attr(_169,"tabindex","0");this._firstFocusItem=_169;}}});}if(!dojo._hasResource["dijit.DialogUnderlay"]){dojo._hasResource["dijit.DialogUnderlay"]=true;dojo.provide("dijit.DialogUnderlay");dojo.declare("dijit.DialogUnderlay",[dijit._Widget,dijit._Templated],{templateString:"<div class='dijitDialogUnderlayWrapper'><div class='dijitDialogUnderlay' dojoAttachPoint='node'></div></div>",dialogId:"","class":"",attributeMap:{id:"domNode"},_setDialogIdAttr:function(id){dojo.attr(this.node,"id",id+"_underlay");},_setClassAttr:function(_16c){this.node.className="dijitDialogUnderlay "+_16c;},postCreate:function(){dojo.body().appendChild(this.domNode);this.bgIframe=new dijit.BackgroundIframe(this.domNode);},layout:function(){var is=this.node.style,os=this.domNode.style;os.display="none";var _16f=dijit.getViewport();os.top=_16f.t+"px";os.left=_16f.l+"px";is.width=_16f.w+"px";is.height=_16f.h+"px";os.display="block";},show:function(){this.domNode.style.display="block";this.layout();if(this.bgIframe.iframe){this.bgIframe.iframe.style.display="block";}},hide:function(){this.domNode.style.display="none";if(this.bgIframe.iframe){this.bgIframe.iframe.style.display="none";}},uninitialize:function(){if(this.bgIframe){this.bgIframe.destroy();}}});}if(!dojo._hasResource["dojo.html"]){dojo._hasResource["dojo.html"]=true;dojo.provide("dojo.html");(function(){var _170=0;dojo.html._secureForInnerHtml=function(cont){return cont.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"");};dojo.html._emptyNode=dojo.empty;dojo.html._setNodeContent=function(node,cont,_174){if(_174){dojo.html._emptyNode(node);}if(typeof cont=="string"){var pre="",post="",walk=0,name=node.nodeName.toLowerCase();switch(name){case "tr":pre="<tr>";post="</tr>";walk+=1;case "tbody":case "thead":pre="<tbody>"+pre;post+="</tbody>";walk+=1;case "table":pre="<table>"+pre;post+="</table>";walk+=1;break;}if(walk){var n=node.ownerDocument.createElement("div");n.innerHTML=pre+cont+post;do{n=n.firstChild;}while(--walk);dojo.forEach(n.childNodes,function(n){node.appendChild(n.cloneNode(true));});}else{node.innerHTML=cont;}}else{if(cont.nodeType){node.appendChild(cont);}else{dojo.forEach(cont,function(n){node.appendChild(n.cloneNode(true));});}}return node;};dojo.declare("dojo.html._ContentSetter",null,{node:"",content:"",id:"",cleanContent:false,extractContent:false,parseContent:false,constructor:function(_17c,node){dojo.mixin(this,_17c||{});node=this.node=dojo.byId(this.node||node);if(!this.id){this.id=["Setter",(node)?node.id||node.tagName:"",_170++].join("_");}if(!(this.node||node)){new Error(this.declaredClass+": no node provided to "+this.id);}},set:function(cont,_17f){if(undefined!==cont){this.content=cont;}if(_17f){this._mixin(_17f);}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=dojo.html._setNodeContent(node,this.content);}catch(e){var _181=this.onContentError(e);try{node.innerHTML=_181;}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){dojo.forEach(this.parseResults,function(w){if(w.destroy){w.destroy();}});delete this.parseResults;}dojo.html._emptyNode(this.node);},onBegin:function(){var cont=this.content;if(dojo.isString(cont)){if(this.cleanContent){cont=dojo.html._secureForInnerHtml(cont);}if(this.extractContent){var _184=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_184){cont=_184[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(_186){var _187={},key;for(key in _186){if(key in _187){continue;}this[key]=_186[key];}},_parse:function(){var _189=this.node;try{this.parseResults=dojo.parser.parse(_189,true);}catch(e){this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);}},_onError:function(type,err,_18c){var _18d=this["on"+type+"Error"].call(this,err);if(_18c){console.error(_18c,err);}else{if(_18d){dojo.html._setNodeContent(this.node,_18d,true);}}}});dojo.html.set=function(node,cont,_190){if(undefined==cont){console.warn("dojo.html.set: no cont argument provided, using empty string");cont="";}if(!_190){return dojo.html._setNodeContent(node,cont,true);}else{var op=new dojo.html._ContentSetter(dojo.mixin(_190,{content:cont,node:node}));return op.set();}};})();}if(!dojo._hasResource["dijit.layout.ContentPane"]){dojo._hasResource["dijit.layout.ContentPane"]=true;dojo.provide("dijit.layout.ContentPane");dojo.declare("dijit.layout.ContentPane",dijit._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,postMixInProperties:function(){this.inherited(arguments);var _192=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_192);this.errorMessage=dojo.string.substitute(this.errorMessage,_192);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(!dojo.attr(this.domNode,"role")){dijit.setWaiRole(this.domNode,"group");}dojo.addClass(this.domNode,this.baseClass);},startup:function(){if(this._started){return;}if(this.isLoaded){dojo.forEach(this.getChildren(),function(_193){_193.startup();});if(this.doLayout){this._checkIfSingleChild();}if(!this._singleChild||!dijit._Contained.prototype.getParent.call(this)){this._scheduleLayout();}}this._loadCheck();this.inherited(arguments);},_checkIfSingleChild:function(){var _194=dojo.query(">",this.containerNode),_195=_194.filter(function(node){return dojo.hasAttr(node,"dojoType")||dojo.hasAttr(node,"widgetId");}),_197=dojo.filter(_195.map(dijit.byNode),function(_198){return _198&&_198.domNode&&_198.resize;});if(_194.length==_195.length&&_197.length==1){this._singleChild=_197[0];}else{delete this._singleChild;}},setHref:function(href){dojo.deprecated("dijit.layout.ContentPane.setHref() is deprecated. Use attr('href', ...) instead.","","2.0");return this.attr("href",href);},_setHrefAttr:function(href){this.cancel();this.href=href;if(this._created&&(this.preload||this._isShown())){return this.refresh();}else{this._hrefChanged=true;}},setContent:function(data){dojo.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._setContent(data||"");this._isDownloaded=false;},_getContentAttr:function(){return this.containerNode.innerHTML;},cancel:function(){if(this._xhrDfd&&(this._xhrDfd.fired==-1)){this._xhrDfd.cancel();}delete this._xhrDfd;},uninitialize:function(){if(this._beingDestroyed){this.cancel();}},destroyRecursive:function(_19d){if(this._beingDestroyed){return;}this._beingDestroyed=true;this.inherited(arguments);},resize:function(size){dojo.marginBox(this.domNode,size);var node=this.containerNode,mb=dojo.mixin(dojo.marginBox(node),size||{});var cb=(this._contentBox=dijit.layout.marginBox2contentBox(node,mb));if(this._singleChild&&this._singleChild.resize){this._singleChild.resize({w:cb.w,h:cb.h});}},_isShown:function(){if("open" in this){return this.open;}else{var node=this.domNode;return (node.style.display!="none")&&(node.style.visibility!="hidden")&&!dojo.hasClass(node,"dijitHidden");}},_onShow:function(){if(this._needLayout){this._layoutChildren();}this._loadCheck();if(this.onShow){this.onShow();}},_loadCheck:function(){if((this.href&&!this._xhrDfd)&&(!this.isLoaded||this._hrefChanged||this.refreshOnShow)&&(this.preload||this._isShown())){delete this._hrefChanged;this.refresh();}},refresh:function(){this.cancel();this._setContent(this.onDownloadStart(),true);var self=this;var _1a4={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};if(dojo.isObject(this.ioArgs)){dojo.mixin(_1a4,this.ioArgs);}var hand=(this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_1a4));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;});},_onLoadHandler:function(data){this.isLoaded=true;try{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 _1a9=this._contentSetter;dojo.forEach(this.getChildren(),function(_1aa){if(_1aa.destroyRecursive){_1aa.destroyRecursive();}});if(_1a9){dojo.forEach(_1a9.parseResults,function(_1ab){if(_1ab.destroyRecursive&&_1ab.domNode&&_1ab.domNode.parentNode==dojo.body()){_1ab.destroyRecursive();}});delete _1a9.parseResults;}dojo.html._emptyNode(this.containerNode);},_setContent:function(cont,_1ad){this.destroyDescendants();delete this._singleChild;var _1ae=this._contentSetter;if(!(_1ae&&_1ae instanceof dojo.html._ContentSetter)){_1ae=this._contentSetter=new dojo.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){var _1b0=this.onContentError(e);try{this.containerNode.innerHTML=_1b0;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}})});}var _1b1=dojo.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad},this._contentSetterParams||{});dojo.mixin(_1ae,_1b1);_1ae.set((dojo.isObject(cont)&&cont.domNode)?cont.domNode:cont);delete this._contentSetterParams;if(!_1ad){dojo.forEach(this.getChildren(),function(_1b2){_1b2.startup();});if(this.doLayout){this._checkIfSingleChild();}this._scheduleLayout();this._onLoadHandler(cont);}},_onError:function(type,err,_1b5){var _1b6=this["on"+type+"Error"].call(this,err);if(_1b5){console.error(_1b5,err);}else{if(_1b6){this._setContent(_1b6,true);}}},_scheduleLayout:function(){if(this._isShown()){this._layoutChildren();}else{this._needLayout=true;}},_layoutChildren:function(){if(this._singleChild&&this._singleChild.resize){var cb=this._contentBox||dojo.contentBox(this.containerNode);this._singleChild.resize({w:cb.w,h:cb.h});}else{dojo.forEach(this.getChildren(),function(_1b8){if(_1b8.resize){_1b8.resize();}});}delete this._needLayout;},onLoad:function(data){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage;},onContentError:function(_1ba){},onDownloadError:function(_1bb){return this.errorMessage;},onDownloadEnd:function(){}});}if(!dojo._hasResource["dijit.TooltipDialog"]){dojo._hasResource["dijit.TooltipDialog"]=true;dojo.provide("dijit.TooltipDialog");dojo.declare("dijit.TooltipDialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{title:"",doLayout:false,autofocus:true,baseClass:"dijitTooltipDialog",_firstFocusItem:null,_lastFocusItem:null,templateString:null,templateString:"<div waiRole=\"presentation\">\n\t<div class=\"dijitTooltipContainer\" waiRole=\"presentation\">\n\t\t<div class =\"dijitTooltipContents dijitTooltipFocusNode\" dojoAttachPoint=\"containerNode\" tabindex=\"-1\" waiRole=\"dialog\"></div>\n\t</div>\n\t<div class=\"dijitTooltipConnector\" waiRole=\"presentation\"></div>\n</div>\n",postCreate:function(){this.inherited(arguments);this.connect(this.containerNode,"onkeypress","_onKey");this.containerNode.title=this.title;},orient:function(node,_1bd,_1be){var c=this._currentOrientClass;if(c){dojo.removeClass(this.domNode,c);}c="dijitTooltipAB"+(_1be.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_1be.charAt(0)=="T"?"Below":"Above");dojo.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);dijit.focus(this._firstFocusItem);}},_onKey:function(evt){var node=evt.target;var dk=dojo.keys;if(evt.charOrCode===dk.TAB){this._getFocusItems(this.containerNode);}var _1c4=(this._firstFocusItem==this._lastFocusItem);if(evt.charOrCode==dk.ESCAPE){this.onCancel();dojo.stopEvent(evt);}else{if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){if(!_1c4){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_1c4){dijit.focus(this._firstFocusItem);}dojo.stopEvent(evt);}else{if(evt.charOrCode===dk.TAB){evt.stopPropagation();}}}}}});}if(!dojo._hasResource["dijit.Dialog"]){dojo._hasResource["dijit.Dialog"]=true;dojo.provide("dijit.Dialog");dojo.declare("dijit.Dialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{templateString:null,templateString:"<div class=\"dijitDialog\" tabindex=\"-1\" waiRole=\"dialog\" waiState=\"labelledby-${id}_title\">\n\t<div dojoAttachPoint=\"titleBar\" class=\"dijitDialogTitleBar\">\n\t<span dojoAttachPoint=\"titleNode\" class=\"dijitDialogTitle\" id=\"${id}_title\"></span>\n\t<span dojoAttachPoint=\"closeButtonNode\" class=\"dijitDialogCloseIcon\" dojoAttachEvent=\"onclick: onCancel, onmouseenter: _onCloseEnter, onmouseleave: _onCloseLeave\" title=\"${buttonCancel}\">\n\t\t<span dojoAttachPoint=\"closeText\" class=\"closeText\" title=\"${buttonCancel}\">x</span>\n\t</span>\n\t</div>\n\t\t<div dojoAttachPoint=\"containerNode\" class=\"dijitDialogPaneContent\"></div>\n</div>\n",attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{title:[{node:"titleNode",type:"innerHTML"},{node:"titleBar",type:"attribute"}]}),open:false,duration:dijit.defaultDuration,refocus:true,autofocus:true,_firstFocusItem:null,_lastFocusItem:null,doLayout:false,draggable:true,_fixSizes:true,postMixInProperties:function(){var _1c5=dojo.i18n.getLocalization("dijit","common");dojo.mixin(this,_1c5);this.inherited(arguments);},postCreate:function(){dojo.style(this.domNode,{visibility:"hidden",position:"absolute",display:"",top:"-9999px"});dojo.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){var vp=dijit.getViewport();var p=e._leftTop||dojo.coords(e.node,true);this._relativePosition={t:p.t-vp.t,l:p.l-vp.l};}},_setup:function(){var node=this.domNode;if(this.titleBar&&this.draggable){this._moveable=(dojo.isIE==6)?new dojo.dnd.TimedMoveable(node,{handle:this.titleBar}):new dojo.dnd.Moveable(node,{handle:this.titleBar,timeout:0});dojo.subscribe("/dnd/move/stop",this,"_endDrag");}else{dojo.addClass(node,"dijitDialogFixed");}var _1ca={dialogId:this.id,"class":dojo.map(this["class"].split(/\s/),function(s){return s+"_underlay";}).join(" ")};var _1cc=dijit._underlay;if(!_1cc){_1cc=dijit._underlay=new dijit.DialogUnderlay(_1ca);}this._fadeIn=dojo.fadeIn({node:node,duration:this.duration,beforeBegin:function(){_1cc.attr(_1ca);_1cc.show();},onEnd:dojo.hitch(this,function(){if(this.autofocus){this._getFocusItems(this.domNode);dijit.focus(this._firstFocusItem);}})});this._fadeOut=dojo.fadeOut({node:node,duration:this.duration,onEnd:function(){node.style.visibility="hidden";node.style.top="-9999px";dijit._underlay.hide();}});},uninitialize:function(){var _1cd=false;if(this._fadeIn&&this._fadeIn.status()=="playing"){_1cd=true;this._fadeIn.stop();}if(this._fadeOut&&this._fadeOut.status()=="playing"){_1cd=true;this._fadeOut.stop();}if(this.open||_1cd){dijit._underlay.hide();}if(this._moveable){this._moveable.destroy();}},_size:function(){var mb=dojo.marginBox(this.domNode);var _1cf=dijit.getViewport();if(mb.w>=_1cf.w||mb.h>=_1cf.h){dojo.style(this.containerNode,{width:Math.min(mb.w,Math.floor(_1cf.w*0.75))+"px",height:Math.min(mb.h,Math.floor(_1cf.h*0.75))+"px",overflow:"auto",position:"relative"});}},_position:function(){if(!dojo.hasClass(dojo.body(),"dojoMove")){var node=this.domNode;var _1d1=dijit.getViewport();var p=this._relativePosition;var mb=p?null:dojo.marginBox(node);dojo.style(node,{left:Math.floor(_1d1.l+(p?p.l:(_1d1.w-mb.w)/2))+"px",top:Math.floor(_1d1.t+(p?p.t:(_1d1.h-mb.h)/2))+"px"});}},_onKey:function(evt){if(evt.charOrCode){var dk=dojo.keys;var node=evt.target;if(evt.charOrCode===dk.TAB){this._getFocusItems(this.domNode);}var _1d7=(this._firstFocusItem==this._lastFocusItem);if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){if(!_1d7){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_1d7){dijit.focus(this._firstFocusItem);}dojo.stopEvent(evt);}else{while(node){if(node==this.domNode){if(evt.charOrCode==dk.ESCAPE){this.onCancel();}else{return;}}node=node.parentNode;}if(evt.charOrCode!==dk.TAB){dojo.stopEvent(evt);}else{if(!dojo.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(dojo.connect(window,"onscroll",this,"layout"));this._modalconnects.push(dojo.connect(window,"onresize",this,function(){var _1d8=dijit.getViewport();if(!this._oldViewport||_1d8.h!=this._oldViewport.h||_1d8.w!=this._oldViewport.w){this.layout();this._oldViewport=_1d8;}}));this._modalconnects.push(dojo.connect(dojo.doc.documentElement,"onkeypress",this,"_onKey"));dojo.style(this.domNode,{opacity:0,visibility:""});if(this._fixSizes){dojo.style(this.containerNode,{width:"auto",height:"auto"});}this.open=true;this._onShow();this._size();this._position();this._fadeIn.play();this._savedFocus=dijit.getFocus(this);},hide:function(){if(!this._alreadyInitialized){return;}if(this._fadeIn.status()=="playing"){this._fadeIn.stop();}this._fadeOut.play();if(this._scrollConnected){this._scrollConnected=false;}dojo.forEach(this._modalconnects,dojo.disconnect);this._modalconnects=[];if(this.refocus){this.connect(this._fadeOut,"onEnd",dojo.hitch(dijit,"focus",this._savedFocus));}if(this._relativePosition){delete this._relativePosition;}this.open=false;},layout:function(){if(this.domNode.style.visibility!="hidden"){dijit._underlay.layout();this._position();}},destroy:function(){dojo.forEach(this._modalconnects,dojo.disconnect);if(this.refocus&&this.open){setTimeout(dojo.hitch(dijit,"focus",this._savedFocus),25);}this.inherited(arguments);},_onCloseEnter:function(){dojo.addClass(this.closeButtonNode,"dijitDialogCloseIcon-hover");},_onCloseLeave:function(){dojo.removeClass(this.closeButtonNode,"dijitDialogCloseIcon-hover");}});}if(!dojo._hasResource["dijit._editor.selection"]){dojo._hasResource["dijit._editor.selection"]=true;dojo.provide("dijit._editor.selection");dojo.mixin(dijit._editor.selection,{getType:function(){if(dojo.doc.selection){return dojo.doc.selection.type.toLowerCase();}else{var _1d9="text";var oSel;try{oSel=dojo.global.getSelection();}catch(e){}if(oSel&&oSel.rangeCount==1){var _1db=oSel.getRangeAt(0);if((_1db.startContainer==_1db.endContainer)&&((_1db.endOffset-_1db.startOffset)==1)&&(_1db.startContainer.nodeType!=3)){_1d9="control";}}return _1d9;}},getSelectedText:function(){if(dojo.doc.selection){if(dijit._editor.selection.getType()=="control"){return null;}return dojo.doc.selection.createRange().text;}else{var _1dc=dojo.global.getSelection();if(_1dc){return _1dc.toString();}}return "";},getSelectedHtml:function(){if(dojo.doc.selection){if(dijit._editor.selection.getType()=="control"){return null;}return dojo.doc.selection.createRange().htmlText;}else{var _1dd=dojo.global.getSelection();if(_1dd&&_1dd.rangeCount){var frag=_1dd.getRangeAt(0).cloneContents();var div=dojo.doc.createElement("div");div.appendChild(frag);return div.innerHTML;}return null;}},getSelectedElement:function(){if(dijit._editor.selection.getType()=="control"){if(dojo.doc.selection){var _1e0=dojo.doc.selection.createRange();if(_1e0&&_1e0.item){return dojo.doc.selection.createRange().item(0);}}else{var _1e1=dojo.global.getSelection();return _1e1.anchorNode.childNodes[_1e1.anchorOffset];}}return null;},getParentElement:function(){if(dijit._editor.selection.getType()=="control"){var p=this.getSelectedElement();if(p){return p.parentNode;}}else{if(dojo.doc.selection){var r=dojo.doc.selection.createRange();r.collapse(true);return r.parentElement();}else{var _1e4=dojo.global.getSelection();if(_1e4){var node=_1e4.anchorNode;while(node&&(node.nodeType!=1)){node=node.parentNode;}return node;}}}return null;},hasAncestorElement:function(_1e6){return this.getAncestorElement.apply(this,arguments)!=null;},getAncestorElement:function(_1e7){var node=this.getSelectedElement()||this.getParentElement();return this.getParentOfType(node,arguments);},isTag:function(node,tags){if(node&&node.tagName){var _nlc=node.tagName.toLowerCase();for(var i=0;i<tags.length;i++){var _tlc=String(tags[i]).toLowerCase();if(_nlc==_tlc){return _tlc;}}}return "";},getParentOfType:function(node,tags){while(node){if(this.isTag(node,tags).length){return node;}node=node.parentNode;}return null;},collapse:function(_1f0){if(window["getSelection"]){var _1f1=dojo.global.getSelection();if(_1f1.removeAllRanges){if(_1f0){_1f1.collapseToStart();}else{_1f1.collapseToEnd();}}else{_1f1.collapse(_1f0);}}else{if(dojo.doc.selection){var _1f2=dojo.doc.selection.createRange();_1f2.collapse(_1f0);_1f2.select();}}},remove:function(){var _s=dojo.doc.selection;if(_s){if(_s.type.toLowerCase()!="none"){_s.clear();}return _s;}else{_s=dojo.global.getSelection();_s.deleteFromDocument();return _s;}},selectElementChildren:function(_1f4,_1f5){var _1f6=dojo.global;var _1f7=dojo.doc;_1f4=dojo.byId(_1f4);if(_1f7.selection&&dojo.body().createTextRange){var _1f8=_1f4.ownerDocument.body.createTextRange();_1f8.moveToElementText(_1f4);if(!_1f5){try{_1f8.select();}catch(e){}}}else{if(_1f6.getSelection){var _1f9=_1f6.getSelection();if(_1f9.setBaseAndExtent){_1f9.setBaseAndExtent(_1f4,0,_1f4,_1f4.innerText.length-1);}else{if(_1f9.selectAllChildren){_1f9.selectAllChildren(_1f4);}}}}},selectElement:function(_1fa,_1fb){var _1fc,_1fd=dojo.doc;_1fa=dojo.byId(_1fa);if(_1fd.selection&&dojo.body().createTextRange){try{_1fc=dojo.body().createControlRange();_1fc.addElement(_1fa);if(!_1fb){_1fc.select();}}catch(e){this.selectElementChildren(_1fa,_1fb);}}else{if(dojo.global.getSelection){var _1fe=dojo.global.getSelection();if(_1fe.removeAllRanges){_1fc=_1fd.createRange();_1fc.selectNode(_1fa);_1fe.removeAllRanges();_1fe.addRange(_1fc);}}}}});}if(!dojo._hasResource["dijit._editor.range"]){dojo._hasResource["dijit._editor.range"]=true;dojo.provide("dijit._editor.range");dijit.range={};dijit.range.getIndex=function(node,_200){var ret=[],retR=[];var stop=_200;var _204=node;var _205,n;while(node!=stop){var i=0;_205=node.parentNode;while((n=_205.childNodes[i++])){if(n===node){--i;break;}}if(i>=_205.childNodes.length){dojo.debug("Error finding index of a node in dijit.range.getIndex");}ret.unshift(i);retR.unshift(i-_205.childNodes.length);node=_205;}if(ret.length>0&&_204.nodeType==3){n=_204.previousSibling;while(n&&n.nodeType==3){ret[ret.length-1]--;n=n.previousSibling;}n=_204.nextSibling;while(n&&n.nodeType==3){retR[retR.length-1]++;n=n.nextSibling;}}return {o:ret,r:retR};};dijit.range.getNode=function(_208,_209){if(!dojo.isArray(_208)||_208.length==0){return _209;}var node=_209;dojo.every(_208,function(i){if(i>=0&&i<node.childNodes.length){node=node.childNodes[i];}else{node=null;return false;}return true;});return node;};dijit.range.getCommonAncestor=function(n1,n2){var _20e=function(n){var as=[];while(n){as.unshift(n);if(n.nodeName!="BODY"){n=n.parentNode;}else{break;}}return as;};var n1as=_20e(n1);var n2as=_20e(n2);var m=Math.min(n1as.length,n2as.length);var com=n1as[0];for(var i=1;i<m;i++){if(n1as[i]===n2as[i]){com=n1as[i];}else{break;}}return com;};dijit.range.getAncestor=function(node,_217,root){root=root||node.ownerDocument.body;while(node&&node!==root){var name=node.nodeName.toUpperCase();if(_217.test(name)){return node;}node=node.parentNode;}return null;};dijit.range.BlockTagNames=/^(?:P|DIV|H1|H2|H3|H4|H5|H6|ADDRESS|PRE|OL|UL|LI|DT|DE)$/;dijit.range.getBlockAncestor=function(node,_21b,root){root=root||node.ownerDocument.body;_21b=_21b||dijit.range.BlockTagNames;var _21d=null,_21e;while(node&&node!==root){var name=node.nodeName.toUpperCase();if(!_21d&&_21b.test(name)){_21d=node;}if(!_21e&&(/^(?:BODY|TD|TH|CAPTION)$/).test(name)){_21e=node;}node=node.parentNode;}return {blockNode:_21d,blockContainer:_21e||node.ownerDocument.body};};dijit.range.atBeginningOfContainer=function(_220,node,_222){var _223=false;var _224=(_222==0);if(!_224&&node.nodeType==3){if(dojo.trim(node.nodeValue.substr(0,_222))==0){_224=true;}}if(_224){var _225=node;_223=true;while(_225&&_225!==_220){if(_225.previousSibling){_223=false;break;}_225=_225.parentNode;}}return _223;};dijit.range.atEndOfContainer=function(_226,node,_228){var _229=false;var _22a=(_228==(node.length||node.childNodes.length));if(!_22a&&node.nodeType==3){if(dojo.trim(node.nodeValue.substr(_228))==0){_22a=true;}}if(_22a){var _22b=node;_229=true;while(_22b&&_22b!==_226){if(_22b.nextSibling){_229=false;break;}_22b=_22b.parentNode;}}return _229;};dijit.range.adjacentNoneTextNode=function(_22c,next){var node=_22c;var len=(0-_22c.length)||0;var prop=next?"nextSibling":"previousSibling";while(node){if(node.nodeType!=3){break;}len+=node.length;node=node[prop];}return [node,len];};dijit.range._w3c=Boolean(window["getSelection"]);dijit.range.create=function(){if(dijit.range._w3c){return dojo.doc.createRange();}else{return new dijit.range.W3CRange;}};dijit.range.getSelection=function(win,_232){if(dijit.range._w3c){return win.getSelection();}else{var s=new dijit.range.ie.selection(win);if(!_232){s._getCurrentSelection();}return s;}};if(!dijit.range._w3c){dijit.range.ie={cachedSelection:{},selection:function(win){this._ranges=[];this.addRange=function(r,_236){this._ranges.push(r);if(!_236){r._select();}this.rangeCount=this._ranges.length;};this.removeAllRanges=function(){this._ranges=[];this.rangeCount=0;};var _237=function(){var r=win.document.selection.createRange();var type=win.document.selection.type.toUpperCase();if(type=="CONTROL"){return new dijit.range.W3CRange(dijit.range.ie.decomposeControlRange(r));}else{return new dijit.range.W3CRange(dijit.range.ie.decomposeTextRange(r));}};this.getRangeAt=function(i){return this._ranges[i];};this._getCurrentSelection=function(){this.removeAllRanges();var r=_237();if(r){this.addRange(r,true);}};},decomposeControlRange:function(_23c){var _23d=_23c.item(0),_23e=_23c.item(_23c.length-1);var _23f=_23d.parentNode,_240=_23e.parentNode;var _241=dijit.range.getIndex(_23d,_23f).o;var _242=dijit.range.getIndex(_23e,_240).o+1;return [_23f,_241,_240,_242];},getEndPoint:function(_243,end){var _245=_243.duplicate();_245.collapse(!end);var _246="EndTo"+(end?"End":"Start");var _247=_245.parentElement();var _248,_249,_24a;if(_247.childNodes.length>0){dojo.every(_247.childNodes,function(node,i){var _24d;if(node.nodeType!=3){_245.moveToElementText(node);if(_245.compareEndPoints(_246,_243)>0){_248=node.previousSibling;if(_24a&&_24a.nodeType==3){_248=_24a;_24d=true;}else{_248=_247;_249=i;return false;}}else{if(i==_247.childNodes.length-1){_248=_247;_249=_247.childNodes.length;return false;}}}else{if(i==_247.childNodes.length-1){_248=node;_24d=true;}}if(_24d&&_248){var _24e=dijit.range.adjacentNoneTextNode(_248)[0];if(_24e){_248=_24e.nextSibling;}else{_248=_247.firstChild;}var _24f=dijit.range.adjacentNoneTextNode(_248);_24e=_24f[0];var _250=_24f[1];if(_24e){_245.moveToElementText(_24e);_245.collapse(false);}else{_245.moveToElementText(_247);}_245.setEndPoint(_246,_243);_249=_245.text.length-_250;return false;}_24a=node;return true;});}else{_248=_247;_249=0;}if(!end&&_248.nodeType!=3&&_249==_248.childNodes.length){if(_248.nextSibling&&_248.nextSibling.nodeType==3){_248=_248.nextSibling;_249=0;}}return [_248,_249];},setEndPoint:function(_251,_252,_253){var _254=_251.duplicate(),node,len;if(_252.nodeType!=3){if(_253>0){node=_252.childNodes[_253-1];if(node.nodeType==3){_252=node;_253=node.length;}else{if(node.nextSibling&&node.nextSibling.nodeType==3){_252=node.nextSibling;_253=0;}else{_254.moveToElementText(node.nextSibling?node:_252);var _257=node.parentNode.insertBefore(document.createTextNode(" "),node.nextSibling);_254.collapse(false);_257.parentNode.removeChild(_257);}}}else{_254.moveToElementText(_252);_254.collapse(true);}}if(_252.nodeType==3){var _258=dijit.range.adjacentNoneTextNode(_252);var _259=_258[0];len=_258[1];if(_259){_254.moveToElementText(_259);_254.collapse(false);if(_259.contentEditable!="inherit"){len++;}}else{_254.moveToElementText(_252.parentNode);_254.collapse(true);}_253+=len;if(_253>0){if(_254.move("character",_253)!=_253){console.error("Error when moving!");}}}return _254;},decomposeTextRange:function(_25a){var _25b=dijit.range.ie.getEndPoint(_25a);var _25c=_25b[0],_25d=_25b[1];var _25e=_25b[0],_25f=_25b[1];if(_25a.htmlText.length){if(_25a.htmlText==_25a.text){_25f=_25d+_25a.text.length;}else{_25b=dijit.range.ie.getEndPoint(_25a,true);_25e=_25b[0],_25f=_25b[1];}}return [_25c,_25d,_25e,_25f];},setRange:function(_260,_261,_262,_263,_264,_265){var _266=dijit.range.ie.setEndPoint(_260,_261,_262);_260.setEndPoint("StartToStart",_266);if(!_265){var end=dijit.range.ie.setEndPoint(_260,_263,_264);}_260.setEndPoint("EndToEnd",end||_266);return _260;}};dojo.declare("dijit.range.W3CRange",null,{constructor:function(){if(arguments.length>0){this.setStart(arguments[0][0],arguments[0][1]);this.setEnd(arguments[0][2],arguments[0][3]);}else{this.commonAncestorContainer=null;this.startContainer=null;this.startOffset=0;this.endContainer=null;this.endOffset=0;this.collapsed=true;}},_updateInternal:function(){if(this.startContainer!==this.endContainer){this.commonAncestorContainer=dijit.range.getCommonAncestor(this.startContainer,this.endContainer);}else{this.commonAncestorContainer=this.startContainer;}this.collapsed=(this.startContainer===this.endContainer)&&(this.startOffset==this.endOffset);},setStart:function(node,_269){_269=parseInt(_269);if(this.startContainer===node&&this.startOffset==_269){return;}delete this._cachedBookmark;this.startContainer=node;this.startOffset=_269;if(!this.endContainer){this.setEnd(node,_269);}else{this._updateInternal();}},setEnd:function(node,_26b){_26b=parseInt(_26b);if(this.endContainer===node&&this.endOffset==_26b){return;}delete this._cachedBookmark;this.endContainer=node;this.endOffset=_26b;if(!this.startContainer){this.setStart(node,_26b);}else{this._updateInternal();}},setStartAfter:function(node,_26d){this._setPoint("setStart",node,_26d,1);},setStartBefore:function(node,_26f){this._setPoint("setStart",node,_26f,0);},setEndAfter:function(node,_271){this._setPoint("setEnd",node,_271,1);},setEndBefore:function(node,_273){this._setPoint("setEnd",node,_273,0);},_setPoint:function(what,node,_276,ext){var _278=dijit.range.getIndex(node,node.parentNode).o;this[what](node.parentNode,_278.pop()+ext);},_getIERange:function(){var r=(this._body||this.endContainer.ownerDocument.body).createTextRange();dijit.range.ie.setRange(r,this.startContainer,this.startOffset,this.endContainer,this.endOffset,this.collapsed);return r;},getBookmark:function(body){this._getIERange();return this._cachedBookmark;},_select:function(){var r=this._getIERange();r.select();},deleteContents:function(){var r=this._getIERange();r.pasteHTML("");this.endContainer=this.startContainer;this.endOffset=this.startOffset;this.collapsed=true;},cloneRange:function(){var r=new dijit.range.W3CRange([this.startContainer,this.startOffset,this.endContainer,this.endOffset]);r._body=this._body;return r;},detach:function(){this._body=null;this.commonAncestorContainer=null;this.startContainer=null;this.startOffset=0;this.endContainer=null;this.endOffset=0;this.collapsed=true;}});}}if(!dojo._hasResource["dijit._editor.html"]){dojo._hasResource["dijit._editor.html"]=true;dojo.provide("dijit._editor.html");dijit._editor.escapeXml=function(str,_27f){str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");if(!_27f){str=str.replace(/'/gm,"&#39;");}return str;};dijit._editor.getNodeHtml=function(node){var _281;switch(node.nodeType){case 1:_281="<"+node.nodeName.toLowerCase();var _282=[];if(dojo.isIE&&node.outerHTML){var s=node.outerHTML;s=s.substr(0,s.indexOf(">")).replace(/(['"])[^"']*\1/g,"");var reg=/([^\s=]+)=/g;var m,key;while((m=reg.exec(s))){key=m[1];if(key.substr(0,3)!="_dj"){if(key=="src"||key=="href"){if(node.getAttribute("_djrealurl")){_282.push([key,node.getAttribute("_djrealurl")]);continue;}}var val;switch(key){case "style":val=node.style.cssText.toLowerCase();break;case "class":val=node.className;break;default:val=node.getAttribute(key);}_282.push([key,val.toString()]);}}}else{var attr,i=0;while((attr=node.attributes[i++])){var n=attr.name;if(n.substr(0,3)!="_dj"){var v=attr.value;if(n=="src"||n=="href"){if(node.getAttribute("_djrealurl")){v=node.getAttribute("_djrealurl");}}_282.push([n,v]);}}}_282.sort(function(a,b){return a[0]<b[0]?-1:(a[0]==b[0]?0:1);});var j=0;while((attr=_282[j++])){_281+=" "+attr[0]+"=\""+(dojo.isString(attr[1])?dijit._editor.escapeXml(attr[1],true):attr[1])+"\"";}if(node.childNodes.length){_281+=">"+dijit._editor.getChildrenHtml(node)+"</"+node.nodeName.toLowerCase()+">";}else{_281+=" />";}break;case 3:_281=dijit._editor.escapeXml(node.nodeValue,true);break;case 8:_281="<!--"+dijit._editor.escapeXml(node.nodeValue,true)+"-->";break;default:_281="<!-- Element not recognized - Type: "+node.nodeType+" Name: "+node.nodeName+"-->";}return _281;};dijit._editor.getChildrenHtml=function(dom){var out="";if(!dom){return out;}var _291=dom["childNodes"]||dom;var _292=!dojo.isIE||_291!==dom;var node,i=0;while((node=_291[i++])){if(!_292||node.parentNode==dom){out+=dijit._editor.getNodeHtml(node);}}return out;};}if(!dojo._hasResource["dijit._editor.RichText"]){dojo._hasResource["dijit._editor.RichText"]=true;dojo.provide("dijit._editor.RichText");if(!dojo.config["useXDomain"]||dojo.config["allowXdRichTextSave"]){if(dojo._postLoad){(function(){var _295=dojo.doc.createElement("textarea");_295.id=dijit._scopeName+"._editor.RichText.savedContent";dojo.style(_295,{display:"none",position:"absolute",top:"-100px",height:"3px",width:"3px"});dojo.body().appendChild(_295);})();}else{try{dojo.doc.write("<textarea id=\""+dijit._scopeName+"._editor.RichText.savedContent\" "+"style=\"display:none;position:absolute;top:-100px;left:-100px;height:3px;width:3px;overflow:hidden;\"></textarea>");}catch(e){}}}dojo.declare("dijit._editor.RichText",dijit._Widget,{constructor:function(_296){this.contentPreFilters=[];this.contentPostFilters=[];this.contentDomPreFilters=[];this.contentDomPostFilters=[];this.editingAreaStyleSheets=[];this._keyHandlers={};this.contentPreFilters.push(dojo.hitch(this,"_preFixUrlAttributes"));if(dojo.isMoz){this.contentPreFilters.push(this._fixContentForMoz);this.contentPostFilters.push(this._removeMozBogus);}if(dojo.isSafari){this.contentPostFilters.push(this._removeSafariBogus);}this.onLoadDeferred=new dojo.Deferred();},inheritWidth:false,focusOnLoad:false,name:"",styleSheets:"",_content:"",height:"300px",minHeight:"1em",isClosed:true,isLoaded:false,_SEPARATOR:"@@**%%__RICHTEXTBOUNDRY__%%**@@",onLoadDeferred:null,isTabIndent:false,disableSpellCheck:false,postCreate:function(){if("textarea"==this.domNode.tagName.toLowerCase()){console.warn("RichText should not be used with the TEXTAREA tag.  See dijit._editor.RichText docs.");}dojo.publish(dijit._scopeName+"._editor.RichText::init",[this]);this.open();this.setupDefaultShortcuts();},setupDefaultShortcuts:function(){var exec=dojo.hitch(this,function(cmd,arg){return function(){return !this.execCommand(cmd,arg);};});var _29a={b:exec("bold"),i:exec("italic"),u:exec("underline"),a:exec("selectall"),s:function(){this.save(true);},m:function(){this.isTabIndent=!this.isTabIndent;},"1":exec("formatblock","h1"),"2":exec("formatblock","h2"),"3":exec("formatblock","h3"),"4":exec("formatblock","h4"),"\\":exec("insertunorderedlist")};if(!dojo.isIE){_29a.Z=exec("redo");}for(var key in _29a){this.addKeyHandler(key,true,false,_29a[key]);}},events:["onKeyPress","onKeyDown","onKeyUp","onClick"],captureEvents:[],_editorCommandsLocalized:false,_localizeEditorCommands:function(){if(this._editorCommandsLocalized){return;}this._editorCommandsLocalized=true;var _29c=["div","p","pre","h1","h2","h3","h4","h5","h6","ol","ul","address"];var _29d="",_29e,i=0;while((_29e=_29c[i++])){if(_29e.charAt(1)!="l"){_29d+="<"+_29e+"><span>content</span></"+_29e+"><br/>";}else{_29d+="<"+_29e+"><li>content</li></"+_29e+"><br/>";}}var div=dojo.doc.createElement("div");dojo.style(div,{position:"absolute",top:"-2000px"});dojo.doc.body.appendChild(div);div.innerHTML=_29d;var node=div.firstChild;while(node){dijit._editor.selection.selectElement(node.firstChild);dojo.withGlobal(this.window,"selectElement",dijit._editor.selection,[node.firstChild]);var _2a2=node.tagName.toLowerCase();this._local2NativeFormatNames[_2a2]=document.queryCommandValue("formatblock");this._native2LocalFormatNames[this._local2NativeFormatNames[_2a2]]=_2a2;node=node.nextSibling.nextSibling;}dojo.body().removeChild(div);},open:function(_2a3){if(!this.onLoadDeferred||this.onLoadDeferred.fired>=0){this.onLoadDeferred=new dojo.Deferred();}if(!this.isClosed){this.close();}dojo.publish(dijit._scopeName+"._editor.RichText::open",[this]);this._content="";if(arguments.length==1&&_2a3.nodeName){this.domNode=_2a3;}var dn=this.domNode;var html;if(dn.nodeName&&dn.nodeName.toLowerCase()=="textarea"){var ta=(this.textarea=dn);this.name=ta.name;html=this._preFilterContent(ta.value);dn=this.domNode=dojo.doc.createElement("div");dn.setAttribute("widgetId",this.id);ta.removeAttribute("widgetId");dn.cssText=ta.cssText;dn.className+=" "+ta.className;dojo.place(dn,ta,"before");var _2a7=dojo.hitch(this,function(){dojo.style(ta,{display:"block",position:"absolute",top:"-1000px"});if(dojo.isIE){var s=ta.style;this.__overflow=s.overflow;s.overflow="hidden";}});if(dojo.isIE){setTimeout(_2a7,10);}else{_2a7();}if(ta.form){dojo.connect(ta.form,"onsubmit",this,function(){ta.value=this.getValue();});}}else{html=this._preFilterContent(dijit._editor.getChildrenHtml(dn));dn.innerHTML="";}var _2a9=dojo.contentBox(dn);this._oldHeight=_2a9.h;this._oldWidth=_2a9.w;this.savedContent=html;if(dn.nodeName&&dn.nodeName=="LI"){dn.innerHTML=" <br>";}this.editingArea=dn.ownerDocument.createElement("div");dn.appendChild(this.editingArea);if(this.name!=""&&(!dojo.config["useXDomain"]||dojo.config["allowXdRichTextSave"])){var _2aa=dojo.byId(dijit._scopeName+"._editor.RichText.savedContent");if(_2aa.value!=""){var _2ab=_2aa.value.split(this._SEPARATOR),i=0,dat;while((dat=_2ab[i++])){var data=dat.split(":");if(data[0]==this.name){html=data[1];_2ab.splice(i,1);break;}}}this.connect(window,"onbeforeunload","_saveContent");}this.isClosed=false;if(dojo.isIE||dojo.isWebKit||dojo.isOpera){var ifr=(this.editorObject=this.iframe=dojo.doc.createElement("iframe"));ifr.id=this.id+"_iframe";this._iframeSrc=this._getIframeDocTxt(html);ifr.style.border="none";ifr.style.width="100%";if(this._layoutMode){ifr.style.height="100%";}else{if(dojo.isIE>=7){if(this.height){ifr.style.height=this.height;}if(this.minHeight){ifr.style.minHeight=this.minHeight;}}else{ifr.style.height=this.height?this.height:this.minHeight;}}ifr.frameBorder=0;ifr._loadFunc=dojo.hitch(this,function(win){this.window=win;this.document=this.window.document;if(dojo.isIE){this._localizeEditorCommands();}this.onLoad();this.savedContent=this.getValue(true);});var s="javascript:parent."+dijit._scopeName+".byId(\""+this.id+"\")._iframeSrc";ifr.setAttribute("src",s);this.editingArea.appendChild(ifr);if(dojo.isWebKit){setTimeout(function(){ifr.setAttribute("src",s);},0);}}else{this._drawIframe(html);this.savedContent=this.getValue(true);}if(dn.nodeName=="LI"){dn.lastChild.style.marginTop="-1.2em";}if(this.domNode.nodeName=="LI"){this.domNode.lastChild.style.marginTop="-1.2em";}dojo.addClass(this.domNode,"RichTextEditable");},_local2NativeFormatNames:{},_native2LocalFormatNames:{},_localizedIframeTitles:null,_getIframeDocTxt:function(html){var _cs=dojo.getComputedStyle(this.domNode);if(dojo.isIE||(!this.height&&!dojo.isMoz)){html="<div>"+html+"</div>";}var font=[_cs.fontWeight,_cs.fontSize,_cs.fontFamily].join(" ");var _2b5=_cs.lineHeight;if(_2b5.indexOf("px")>=0){_2b5=parseFloat(_2b5)/parseFloat(_cs.fontSize);}else{if(_2b5.indexOf("em")>=0){_2b5=parseFloat(_2b5);}else{_2b5="1.0";}}var _2b6="";this.style.replace(/(^|;)(line-|font-?)[^;]+/g,function(_2b7){_2b6+=_2b7.replace(/^;/g,"")+";";});var d=dojo.doc;var _2b9=d.charset||d.characterSet||d.defaultCharset||"UTF-8";return [this.isLeftToRight()?"<html><head>":"<html dir='rtl'><head>",(dojo.isMoz?"<title>"+this._localizedIframeTitles.iframeEditTitle+"</title>":""),"<meta http-equiv='Content-Type' content='text/html; charset="+_2b9+"'>","<style>","body,html {","\tbackground:transparent;","\tpadding: 1em 0 0 0;","\tmargin: -1em 0 0 0;","}","body{","\ttop:0px; left:0px; right:0px;","\tfont:",font,";",((this.height||dojo.isOpera)?"":"position: fixed;"),"\tmin-height:",this.minHeight,";","\tline-height:",_2b5,"}","p{ margin: 1em 0 !important; }",(this.height?"":"body,html{overflow-y:hidden;/*for IE*/} body > div {overflow-x:auto;/*FF:horizontal scrollbar*/ overflow-y:hidden;/*safari*/ min-height:"+this.minHeight+";/*safari*/}"),"li > ul:-moz-first-node, li > ol:-moz-first-node{ padding-top: 1.2em; } ","li{ min-height:1.2em; }","</style>",this._applyEditingAreaStyleSheets(),"</head><body onload='frameElement._loadFunc(window,document)' style='"+_2b6+"'>"+html+"</body></html>"].join("");},_drawIframe:function(html){if(!this.iframe){var ifr=(this.iframe=dojo.doc.createElement("iframe"));ifr.id=this.id+"_iframe";var ifrs=ifr.style;ifrs.border="none";ifrs.lineHeight="0";ifrs.verticalAlign="bottom";this.editorObject=this.iframe;this._localizedIframeTitles=dojo.i18n.getLocalization("dijit.form","Textarea");var _2bd=dojo.query("label[for=\""+this.id+"\"]");if(_2bd.length){this._localizedIframeTitles.iframeEditTitle=_2bd[0].innerHTML+" "+this._localizedIframeTitles.iframeEditTitle;}ifr._loadFunc=function(win){};}this.iframe.style.width=this.inheritWidth?this._oldWidth:"100%";if(this._layoutMode){this.iframe.style.height="100%";}else{if(this.height){this.iframe.style.height=this.height;}else{this.iframe.height=this._oldHeight;}}var _2bf;if(this.textarea){_2bf=this.srcNodeRef;}else{_2bf=dojo.doc.createElement("div");_2bf.style.display="none";_2bf.innerHTML=html;this.editingArea.appendChild(_2bf);}this.editingArea.appendChild(this.iframe);var _2c0=dojo.hitch(this,function(){if(!this.editNode){if(!this.document){try{if(this.iframe.contentWindow){this.window=this.iframe.contentWindow;this.document=this.iframe.contentWindow.document;}else{if(this.iframe.contentDocument){this.window=this.iframe.contentDocument.window;this.document=this.iframe.contentDocument;}}}catch(e){}if(!this.document){setTimeout(_2c0,50);return;}var _2c1=this.document;_2c1.open();if(dojo.isAIR){_2c1.body.innerHTML=html;}else{_2c1.write(this._getIframeDocTxt(html));}_2c1.close();dojo.destroy(_2bf);}if(!this.document.body){setTimeout(_2c0,50);return;}this.onLoad();}else{dojo.destroy(_2bf);this.editNode.innerHTML=html;this.onDisplayChanged();}this._preDomFilterContent(this.editNode);});_2c0();},_applyEditingAreaStyleSheets:function(){var _2c2=[];if(this.styleSheets){_2c2=this.styleSheets.split(";");this.styleSheets="";}_2c2=_2c2.concat(this.editingAreaStyleSheets);this.editingAreaStyleSheets=[];var text="",i=0,url;while((url=_2c2[i++])){var _2c6=(new dojo._Url(dojo.global.location,url)).toString();this.editingAreaStyleSheets.push(_2c6);text+="<link rel=\"stylesheet\" type=\"text/css\" href=\""+_2c6+"\"/>";}return text;},addStyleSheet:function(uri){var url=uri.toString();if(url.charAt(0)=="."||(url.charAt(0)!="/"&&!uri.host)){url=(new dojo._Url(dojo.global.location,url)).toString();}if(dojo.indexOf(this.editingAreaStyleSheets,url)>-1){return;}this.editingAreaStyleSheets.push(url);if(this.document.createStyleSheet){this.document.createStyleSheet(url);}else{var head=this.document.getElementsByTagName("head")[0];var _2ca=this.document.createElement("link");_2ca.rel="stylesheet";_2ca.type="text/css";_2ca.href=url;head.appendChild(_2ca);}},removeStyleSheet:function(uri){var url=uri.toString();if(url.charAt(0)=="."||(url.charAt(0)!="/"&&!uri.host)){url=(new dojo._Url(dojo.global.location,url)).toString();}var _2cd=dojo.indexOf(this.editingAreaStyleSheets,url);if(_2cd==-1){return;}delete this.editingAreaStyleSheets[_2cd];dojo.withGlobal(this.window,"query",dojo,["link:[href=\""+url+"\"]"]).orphan();},disabled:false,_mozSettingProps:{"styleWithCSS":false},_setDisabledAttr:function(_2ce){this.disabled=_2ce;if(!this.isLoaded){return;}_2ce=!!_2ce;if(dojo.isIE||dojo.isWebKit||dojo.isOpera){var _2cf=dojo.isIE&&(this.isLoaded||!this.focusOnLoad);if(_2cf){this.editNode.unselectable="on";}this.editNode.contentEditable=!_2ce;if(_2cf){var _2d0=this;setTimeout(function(){_2d0.editNode.unselectable="off";},0);}}else{try{this.document.designMode=(_2ce?"off":"on");}catch(e){return;}if(!_2ce&&this._mozSettingProps){var ps=this._mozSettingProps;for(var n in ps){if(ps.hasOwnProperty(n)){try{this.document.execCommand(n,false,ps[n]);}catch(e){}}}}}this._disabledOK=true;},_isResized:function(){return false;},onLoad:function(e){if(!this.window.__registeredWindow){this.window.__registeredWindow=true;dijit.registerIframe(this.iframe);}if(!dojo.isIE&&(this.height||dojo.isMoz)){this.editNode=this.document.body;}else{this.editNode=this.document.body.firstChild;var _2d4=this;if(dojo.isIE){var _2d5=(this.tabStop=dojo.doc.createElement("<div tabIndex=-1>"));this.editingArea.appendChild(_2d5);this.iframe.onfocus=function(){_2d4.editNode.setActive();};}}this.focusNode=this.editNode;this._preDomFilterContent(this.editNode);var _2d6=this.events.concat(this.captureEvents);var ap=this.iframe?this.document:this.editNode;dojo.forEach(_2d6,function(item){this.connect(ap,item.toLowerCase(),item);},this);if(dojo.isIE){this.connect(this.document,"onmousedown","_onIEMouseDown");this.editNode.style.zoom=1;}if(dojo.isWebKit){this._webkitListener=this.connect(this.document,"onmouseup","onDisplayChanged");}this.isLoaded=true;this.attr("disabled",this.disabled);if(this.onLoadDeferred){this.onLoadDeferred.callback(true);}this.onDisplayChanged(e);if(this.focusOnLoad){dojo.addOnLoad(dojo.hitch(this,function(){setTimeout(dojo.hitch(this,"focus"),this.updateInterval);}));}},onKeyDown:function(e){if(e.keyCode===dojo.keys.TAB&&this.isTabIndent){dojo.stopEvent(e);if(this.queryCommandEnabled((e.shiftKey?"outdent":"indent"))){this.execCommand((e.shiftKey?"outdent":"indent"));}}if(dojo.isIE){if(e.keyCode==dojo.keys.TAB&&!this.isTabIndent){if(e.shiftKey&&!e.ctrlKey&&!e.altKey){this.iframe.focus();}else{if(!e.shiftKey&&!e.ctrlKey&&!e.altKey){this.tabStop.focus();}}}else{if(e.keyCode===dojo.keys.BACKSPACE&&this.document.selection.type==="Control"){dojo.stopEvent(e);this.execCommand("delete");}else{if((65<=e.keyCode&&e.keyCode<=90)||(e.keyCode>=37&&e.keyCode<=40)){e.charCode=e.keyCode;this.onKeyPress(e);}}}}else{if(dojo.isMoz&&!this.isTabIndent){if(e.keyCode==dojo.keys.TAB&&!e.shiftKey&&!e.ctrlKey&&!e.altKey&&this.iframe){var _2da=dojo.isFF<3?this.iframe.contentDocument:this.iframe;_2da.title=this._localizedIframeTitles.iframeFocusTitle;this.iframe.focus();dojo.stopEvent(e);}else{if(e.keyCode==dojo.keys.TAB&&e.shiftKey){if(this.toolbar){this.toolbar.focus();}dojo.stopEvent(e);}}}}return true;},onKeyUp:function(e){return;},setDisabled:function(_2dc){dojo.deprecated("dijit.Editor::setDisabled is deprecated","use dijit.Editor::attr(\"disabled\",boolean) instead",2);this.attr("disabled",_2dc);},_setValueAttr:function(_2dd){this.setValue(_2dd);},_getDisableSpellCheckAttr:function(){return !dojo.attr(this.document.body,"spellcheck");},_setDisableSpellCheckAttr:function(_2de){if(this.document){dojo.attr(this.document.body,"spellcheck",!_2de);}else{this.onLoadDeferred.addCallback(dojo.hitch(this,function(){dojo.attr(this.document.body,"spellcheck",!_2de);}));}},onKeyPress:function(e){var c=(e.keyChar&&e.keyChar.toLowerCase())||e.keyCode;var _2e1=this._keyHandlers[c];var args=arguments;if(_2e1&&!e.altKey){dojo.forEach(_2e1,function(h){if((!!h.shift==!!e.shiftKey)&&(!!h.ctrl==!!e.ctrlKey)){if(!h.handler.apply(this,args)){e.preventDefault();}}},this);}if(!this._onKeyHitch){this._onKeyHitch=dojo.hitch(this,"onKeyPressed");}setTimeout(this._onKeyHitch,1);return true;},addKeyHandler:function(key,ctrl,_2e6,_2e7){if(!dojo.isArray(this._keyHandlers[key])){this._keyHandlers[key]=[];}this._keyHandlers[key].push({shift:_2e6||false,ctrl:ctrl||false,handler:_2e7});},onKeyPressed:function(){this.onDisplayChanged();},onClick:function(e){this.onDisplayChanged(e);},_onIEMouseDown:function(e){if(!this._focused&&!this.disabled){this.focus();}},_onBlur:function(e){this.inherited(arguments);var _c=this.getValue(true);if(_c!=this.savedContent){this.onChange(_c);this.savedContent=_c;}if(dojo.isMoz&&this.iframe){var _2ec=dojo.isFF<3?this.iframe.contentDocument:this.iframe;_2ec.title=this._localizedIframeTitles.iframeEditTitle;}},_onFocus:function(e){if(!this.disabled){if(!this._disabledOK){this.attr("disabled",false);}this.inherited(arguments);}},blur:function(){if(!dojo.isIE&&this.window.document.documentElement&&this.window.document.documentElement.focus){this.window.document.documentElement.focus();}else{if(dojo.doc.body.focus){dojo.doc.body.focus();}}},focus:function(){if(!dojo.isIE){dijit.focus(this.iframe);}else{if(this.editNode&&this.editNode.focus){this.iframe.fireEvent("onfocus",document.createEventObject());}}},updateInterval:200,_updateTimer:null,onDisplayChanged:function(e){if(this._updateTimer){clearTimeout(this._updateTimer);}if(!this._updateHandler){this._updateHandler=dojo.hitch(this,"onNormalizedDisplayChanged");}this._updateTimer=setTimeout(this._updateHandler,this.updateInterval);},onNormalizedDisplayChanged:function(){delete this._updateTimer;},onChange:function(_2ef){},_normalizeCommand:function(cmd){var _2f1=cmd.toLowerCase();if(_2f1=="formatblock"){if(dojo.isSafari){_2f1="heading";}}else{if(_2f1=="hilitecolor"&&!dojo.isMoz){_2f1="backcolor";}}return _2f1;},_qcaCache:{},queryCommandAvailable:function(_2f2){var ca=this._qcaCache[_2f2];if(ca!=undefined){return ca;}return (this._qcaCache[_2f2]=this._queryCommandAvailable(_2f2));},_queryCommandAvailable:function(_2f4){var ie=1;var _2f6=1<<1;var _2f7=1<<2;var _2f8=1<<3;var _2f9=1<<4;var _2fa=dojo.isWebKit;function _2fb(_2fc){return {ie:Boolean(_2fc&ie),mozilla:Boolean(_2fc&_2f6),webkit:Boolean(_2fc&_2f7),webkit420:Boolean(_2fc&_2f9),opera:Boolean(_2fc&_2f8)};};var _2fd=null;switch(_2f4.toLowerCase()){case "bold":case "italic":case "underline":case "subscript":case "superscript":case "fontname":case "fontsize":case "forecolor":case "hilitecolor":case "justifycenter":case "justifyfull":case "justifyleft":case "justifyright":case "delete":case "selectall":case "toggledir":_2fd=_2fb(_2f6|ie|_2f7|_2f8);break;case "createlink":case "unlink":case "removeformat":case "inserthorizontalrule":case "insertimage":case "insertorderedlist":case "insertunorderedlist":case "indent":case "outdent":case "formatblock":case "inserthtml":case "undo":case "redo":case "strikethrough":case "tabindent":_2fd=_2fb(_2f6|ie|_2f8|_2f9);break;case "blockdirltr":case "blockdirrtl":case "dirltr":case "dirrtl":case "inlinedirltr":case "inlinedirrtl":_2fd=_2fb(ie);break;case "cut":case "copy":case "paste":_2fd=_2fb(ie|_2f6|_2f9);break;case "inserttable":_2fd=_2fb(_2f6|ie);break;case "insertcell":case "insertcol":case "insertrow":case "deletecells":case "deletecols":case "deleterows":case "mergecells":case "splitcell":_2fd=_2fb(ie|_2f6);break;default:return false;}return (dojo.isIE&&_2fd.ie)||(dojo.isMoz&&_2fd.mozilla)||(dojo.isWebKit&&_2fd.webkit)||(dojo.isWebKit>420&&_2fd.webkit420)||(dojo.isOpera&&_2fd.opera);},execCommand:function(_2fe,_2ff){var _300;this.focus();_2fe=this._normalizeCommand(_2fe);if(_2ff!=undefined){if(_2fe=="heading"){throw new Error("unimplemented");}else{if((_2fe=="formatblock")&&dojo.isIE){_2ff="<"+_2ff+">";}}}if(_2fe=="inserthtml"){_2ff=this._preFilterContent(_2ff);_300=true;if(dojo.isIE){var _301=this.document.selection.createRange();if(this.document.selection.type.toUpperCase()=="CONTROL"){var n=_301.item(0);while(_301.length){_301.remove(_301.item(0));}n.outerHTML=_2ff;}else{_301.pasteHTML(_2ff);}_301.select();}else{if(dojo.isMoz&&!_2ff.length){this._sCall("remove");}else{_300=this.document.execCommand(_2fe,false,_2ff);}}}else{if((_2fe=="unlink")&&(this.queryCommandEnabled("unlink"))&&(dojo.isMoz||dojo.isWebKit)){var a=this._sCall("getAncestorElement",["a"]);this._sCall("selectElement",[a]);_300=this.document.execCommand("unlink",false,null);}else{if((_2fe=="hilitecolor")&&(dojo.isMoz)){this.document.execCommand("styleWithCSS",false,true);_300=this.document.execCommand(_2fe,false,_2ff);this.document.execCommand("styleWithCSS",false,false);}else{if((dojo.isIE)&&((_2fe=="backcolor")||(_2fe=="forecolor"))){_2ff=arguments.length>1?_2ff:null;_300=this.document.execCommand(_2fe,false,_2ff);}else{_2ff=arguments.length>1?_2ff:null;if(_2ff||_2fe!="createlink"){_300=this.document.execCommand(_2fe,false,_2ff);}}}}}this.onDisplayChanged();return _300;},queryCommandEnabled:function(_304){if(this.disabled||!this._disabledOK){return false;}_304=this._normalizeCommand(_304);if(dojo.isMoz||dojo.isWebKit){if(_304=="unlink"){this._sCall("hasAncestorElement",["a"]);}else{if(_304=="inserttable"){return true;}}}if(dojo.isWebKit){if(_304=="copy"){_304="cut";}else{if(_304=="paste"){return true;}}}var elem=dojo.isIE?this.document.selection.createRange():this.document;return elem.queryCommandEnabled(_304);},queryCommandState:function(_306){if(this.disabled||!this._disabledOK){return false;}_306=this._normalizeCommand(_306);return this.document.queryCommandState(_306);},queryCommandValue:function(_307){if(this.disabled||!this._disabledOK){return false;}var r;_307=this._normalizeCommand(_307);if(dojo.isIE&&_307=="formatblock"){r=this._native2LocalFormatNames[this.document.queryCommandValue(_307)];}else{r=this.document.queryCommandValue(_307);}return r;},_sCall:function(name,args){return dojo.withGlobal(this.window,name,dijit._editor.selection,args);},placeCursorAtStart:function(){this.focus();var _30b=false;if(dojo.isMoz){var _30c=this.editNode.firstChild;while(_30c){if(_30c.nodeType==3){if(_30c.nodeValue.replace(/^\s+|\s+$/g,"").length>0){_30b=true;this._sCall("selectElement",[_30c]);break;}}else{if(_30c.nodeType==1){_30b=true;this._sCall("selectElementChildren",[_30c]);break;}}_30c=_30c.nextSibling;}}else{_30b=true;this._sCall("selectElementChildren",[this.editNode]);}if(_30b){this._sCall("collapse",[true]);}},placeCursorAtEnd:function(){this.focus();var _30d=false;if(dojo.isMoz){var last=this.editNode.lastChild;while(last){if(last.nodeType==3){if(last.nodeValue.replace(/^\s+|\s+$/g,"").length>0){_30d=true;this._sCall("selectElement",[last]);break;}}else{if(last.nodeType==1){_30d=true;if(last.lastChild){this._sCall("selectElement",[last.lastChild]);}else{this._sCall("selectElement",[last]);}break;}}last=last.previousSibling;}}else{_30d=true;this._sCall("selectElementChildren",[this.editNode]);}if(_30d){this._sCall("collapse",[false]);}},getValue:function(_30f){if(this.textarea){if(this.isClosed||!this.isLoaded){return this.textarea.value;}}return this._postFilterContent(null,_30f);},_getValueAttr:function(){return this.getValue();},setValue:function(html){if(!this.isLoaded){this.onLoadDeferred.addCallback(dojo.hitch(this,function(){this.setValue(html);}));return;}if(this.textarea&&(this.isClosed||!this.isLoaded)){this.textarea.value=html;}else{html=this._preFilterContent(html);var node=this.isClosed?this.domNode:this.editNode;node.innerHTML=html;this._preDomFilterContent(node);}this.onDisplayChanged();},replaceValue:function(html){if(this.isClosed){this.setValue(html);}else{if(this.window&&this.window.getSelection&&!dojo.isMoz){this.setValue(html);}else{if(this.window&&this.window.getSelection){html=this._preFilterContent(html);this.execCommand("selectall");if(dojo.isMoz&&!html){html="&nbsp;";}this.execCommand("inserthtml",html);this._preDomFilterContent(this.editNode);}else{if(this.document&&this.document.selection){this.setValue(html);}}}}},_preFilterContent:function(html){var ec=html;dojo.forEach(this.contentPreFilters,function(ef){if(ef){ec=ef(ec);}});return ec;},_preDomFilterContent:function(dom){dom=dom||this.editNode;dojo.forEach(this.contentDomPreFilters,function(ef){if(ef&&dojo.isFunction(ef)){ef(dom);}},this);},_postFilterContent:function(dom,_319){var ec;if(!dojo.isString(dom)){dom=dom||this.editNode;if(this.contentDomPostFilters.length){if(_319){dom=dojo.clone(dom);}dojo.forEach(this.contentDomPostFilters,function(ef){dom=ef(dom);});}ec=dijit._editor.getChildrenHtml(dom);}else{ec=dom;}if(!dojo.trim(ec.replace(/^\xA0\xA0*/,"").replace(/\xA0\xA0*$/,"")).length){ec="";}dojo.forEach(this.contentPostFilters,function(ef){ec=ef(ec);});return ec;},_saveContent:function(e){var _31e=dojo.byId(dijit._scopeName+"._editor.RichText.savedContent");_31e.value+=this._SEPARATOR+this.name+":"+this.getValue();},escapeXml:function(str,_320){str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");if(!_320){str=str.replace(/'/gm,"&#39;");}return str;},getNodeHtml:function(node){dojo.deprecated("dijit.Editor::getNodeHtml is deprecated","use dijit._editor.getNodeHtml instead",2);return dijit._editor.getNodeHtml(node);},getNodeChildrenHtml:function(dom){dojo.deprecated("dijit.Editor::getNodeChildrenHtml is deprecated","use dijit._editor.getChildrenHtml instead",2);return dijit._editor.getChildrenHtml(dom);},close:function(save,_324){if(this.isClosed){return false;}if(!arguments.length){save=true;}this._content=this.getValue();var _325=(this.savedContent!=this._content);if(this.interval){clearInterval(this.interval);}if(this._webkitListener){this.disconnect(this._webkitListener);delete this._webkitListener;}if(dojo.isIE){this.iframe.onfocus=null;}this.iframe._loadFunc=null;if(this.textarea){var s=this.textarea.style;s.position="";s.left=s.top="";if(dojo.isIE){s.overflow=this.__overflow;this.__overflow=null;}this.textarea.value=save?this._content:this.savedContent;dojo.destroy(this.domNode);this.domNode=this.textarea;}else{this.domNode.innerHTML=save?this._content:this.savedContent;}dojo.removeClass(this.domNode,"RichTextEditable");this.isClosed=true;this.isLoaded=false;delete this.editNode;if(this.window&&this.window._frameElement){this.window._frameElement=null;}this.window=null;this.document=null;this.editingArea=null;this.editorObject=null;return _325;},destroyRendering:function(){},destroy:function(){this.destroyRendering();if(!this.isClosed){this.close(false);}this.inherited(arguments);},_removeMozBogus:function(html){return html.replace(/\stype="_moz"/gi,"").replace(/\s_moz_dirty=""/gi,"");},_removeSafariBogus:function(html){return html.replace(/\sclass="webkit-block-placeholder"/gi,"");},_fixContentForMoz:function(html){return html.replace(/<(\/)?strong([ \>])/gi,"<$1b$2").replace(/<(\/)?em([ \>])/gi,"<$1i$2");},_preFixUrlAttributes:function(html){return html.replace(/(?:(<a(?=\s).*?\shref=)("|')(.*?)\2)|(?:(<a\s.*?href=)([^"'][^ >]+))/gi,"$1$4$2$3$5$2 _djrealurl=$2$3$5$2").replace(/(?:(<img(?=\s).*?\ssrc=)("|')(.*?)\2)|(?:(<img\s.*?src=)([^"'][^ >]+))/gi,"$1$4$2$3$5$2 _djrealurl=$2$3$5$2");}});}if(!dojo._hasResource["dijit._KeyNavContainer"]){dojo._hasResource["dijit._KeyNavContainer"]=true;dojo.provide("dijit._KeyNavContainer");dojo.declare("dijit._KeyNavContainer",[dijit._Container],{tabIndex:"0",_keyNavCodes:{},connectKeyNavHandlers:function(_32b,_32c){var _32d=this._keyNavCodes={};var prev=dojo.hitch(this,this.focusPrev);var next=dojo.hitch(this,this.focusNext);dojo.forEach(_32b,function(code){_32d[code]=prev;});dojo.forEach(_32c,function(code){_32d[code]=next;});this.connect(this.domNode,"onkeypress","_onContainerKeypress");this.connect(this.domNode,"onfocus","_onContainerFocus");},startupKeyNavChildren:function(){dojo.forEach(this.getChildren(),dojo.hitch(this,"_startupChild"));},addChild:function(_332,_333){dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);this._startupChild(_332);},focus:function(){this.focusFirstChild();},focusFirstChild:function(){this.focusChild(this._getFirstFocusableChild());},focusNext:function(){if(this.focusedChild&&this.focusedChild.hasNextFocalNode&&this.focusedChild.hasNextFocalNode()){this.focusedChild.focusNext();return;}var _334=this._getNextFocusableChild(this.focusedChild,1);if(_334.getFocalNodes){this.focusChild(_334,_334.getFocalNodes()[0]);}else{this.focusChild(_334);}},focusPrev:function(){if(this.focusedChild&&this.focusedChild.hasPrevFocalNode&&this.focusedChild.hasPrevFocalNode()){this.focusedChild.focusPrev();return;}var _335=this._getNextFocusableChild(this.focusedChild,-1);if(_335.getFocalNodes){var _336=_335.getFocalNodes();this.focusChild(_335,_336[_336.length-1]);}else{this.focusChild(_335);}},focusChild:function(_337,node){if(_337){if(this.focusedChild&&_337!==this.focusedChild){this._onChildBlur(this.focusedChild);}this.focusedChild=_337;if(node&&_337.focusFocalNode){_337.focusFocalNode(node);}else{_337.focus();}}},_startupChild:function(_339){if(_339.getFocalNodes){dojo.forEach(_339.getFocalNodes(),function(node){dojo.attr(node,"tabindex",-1);this._connectNode(node);},this);}else{var node=_339.focusNode||_339.domNode;if(_339.isFocusable()){dojo.attr(node,"tabindex",-1);}this._connectNode(node);}},_connectNode:function(node){this.connect(node,"onfocus","_onNodeFocus");this.connect(node,"onblur","_onNodeBlur");},_onContainerFocus:function(evt){if(evt.target!==this.domNode){return;}this.focusFirstChild();dojo.removeAttr(this.domNode,"tabIndex");},_onBlur:function(evt){if(this.tabIndex){dojo.attr(this.domNode,"tabindex",this.tabIndex);}},_onContainerKeypress:function(evt){if(evt.ctrlKey||evt.altKey){return;}var func=this._keyNavCodes[evt.charOrCode];if(func){func();dojo.stopEvent(evt);}},_onNodeFocus:function(evt){var _342=dijit.getEnclosingWidget(evt.target);if(_342&&_342.isFocusable()){this.focusedChild=_342;}dojo.stopEvent(evt);},_onNodeBlur:function(evt){dojo.stopEvent(evt);},_onChildBlur:function(_344){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1);},_getNextFocusableChild:function(_345,dir){if(_345){_345=this._getSiblingOfChild(_345,dir);}var _347=this.getChildren();for(var i=0;i<_347.length;i++){if(!_345){_345=_347[(dir>0)?0:(_347.length-1)];}if(_345.isFocusable()){return _345;}_345=this._getSiblingOfChild(_345,dir);}return null;}});}if(!dojo._hasResource["dijit.ToolbarSeparator"]){dojo._hasResource["dijit.ToolbarSeparator"]=true;dojo.provide("dijit.ToolbarSeparator");dojo.declare("dijit.ToolbarSeparator",[dijit._Widget,dijit._Templated],{templateString:"<div class=\"dijitToolbarSeparator dijitInline\"></div>",postCreate:function(){dojo.setSelectable(this.domNode,false);},isFocusable:function(){return false;}});}if(!dojo._hasResource["dijit.Toolbar"]){dojo._hasResource["dijit.Toolbar"]=true;dojo.provide("dijit.Toolbar");dojo.declare("dijit.Toolbar",[dijit._Widget,dijit._Templated,dijit._KeyNavContainer],{templateString:"<div class=\"dijit dijitToolbar\" waiRole=\"toolbar\" tabIndex=\"${tabIndex}\" dojoAttachPoint=\"containerNode\">"+"</div>",postCreate:function(){this.connectKeyNavHandlers(this.isLeftToRight()?[dojo.keys.LEFT_ARROW]:[dojo.keys.RIGHT_ARROW],this.isLeftToRight()?[dojo.keys.RIGHT_ARROW]:[dojo.keys.LEFT_ARROW]);},startup:function(){if(this._started){return;}this.startupKeyNavChildren();this.inherited(arguments);}});}if(!dojo._hasResource["dijit.form.Button"]){dojo._hasResource["dijit.form.Button"]=true;dojo.provide("dijit.form.Button");dojo.declare("dijit.form.Button",dijit.form._FormWidget,{label:"",showLabel:true,iconClass:"",type:"button",baseClass:"dijitButton",templateString:"<span class=\"dijit dijitReset dijitLeft dijitInline\"\n\tdojoAttachEvent=\"ondijitclick:_onButtonClick,onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\"\n\t><span class=\"dijitReset dijitRight dijitInline\"\n\t\t><span class=\"dijitReset dijitInline dijitButtonNode\"\n\t\t\t><button class=\"dijitReset dijitStretch dijitButtonContents\"\n\t\t\t\tdojoAttachPoint=\"titleNode,focusNode\" \n\t\t\t\t${nameAttrSetting} type=\"${type}\" value=\"${value}\" waiRole=\"button\" waiState=\"labelledby-${id}_label\"\n\t\t\t\t><span class=\"dijitReset dijitInline\" dojoAttachPoint=\"iconNode\" \n\t\t\t\t\t><span class=\"dijitReset dijitToggleButtonIconChar\">&#10003;</span \n\t\t\t\t></span \n\t\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\" \n\t\t\t\t\tid=\"${id}_label\"  \n\t\t\t\t\tdojoAttachPoint=\"containerNode\"\n\t\t\t\t></span\n\t\t\t></button\n\t\t></span\n\t></span\n></span>\n",attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{label:{node:"containerNode",type:"innerHTML"},iconClass:{node:"iconNode",type:"class"}}),_onClick:function(e){if(this.disabled||this.readOnly){return false;}this._clicked();return this.onClick(e);},_onButtonClick:function(e){if(e.type!="click"&&!(this.type=="submit"||this.type=="reset")){dojo.stopEvent(e);}if(this._onClick(e)===false){e.preventDefault();}else{if(this.type=="submit"&&!this.focusNode.form){for(var node=this.domNode;node.parentNode;node=node.parentNode){var _34c=dijit.byNode(node);if(_34c&&typeof _34c._onSubmit=="function"){_34c._onSubmit(e);break;}}}}},_setValueAttr:function(_34d){var attr=this.attributeMap.value||"";if(this[attr.node||attr||"domNode"].tagName=="BUTTON"){if(_34d!=this.value){}}},_fillContent:function(_34f){if(_34f&&!("label" in this.params)){this.attr("label",_34f.innerHTML);}},postCreate:function(){if(this.showLabel==false){dojo.addClass(this.containerNode,"dijitDisplayNone");}dojo.setSelectable(this.focusNode,false);this.inherited(arguments);},onClick:function(e){return true;},_clicked:function(e){},setLabel:function(_352){dojo.deprecated("dijit.form.Button.setLabel() is deprecated.  Use attr('label', ...) instead.","","2.0");this.attr("label",_352);},_setLabelAttr:function(_353){this.containerNode.innerHTML=this.label=_353;this._layoutHack();if(this.showLabel==false&&!this.params.title){this.titleNode.title=dojo.trim(this.containerNode.innerText||this.containerNode.textContent||"");}}});dojo.declare("dijit.form.DropDownButton",[dijit.form.Button,dijit._Container],{baseClass:"dijitDropDownButton",templateString:"<span class=\"dijit dijitReset dijitLeft dijitInline\"\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse,onclick:_onDropDownClick,onkeydown:_onDropDownKeydown,onblur:_onDropDownBlur,onkeypress:_onKey\"\n\t><span class='dijitReset dijitRight dijitInline'\n\t\t><span class='dijitReset dijitInline dijitButtonNode'\n\t\t\t><button class=\"dijitReset dijitStretch dijitButtonContents\" \n\t\t\t\t${nameAttrSetting} type=\"${type}\" value=\"${value}\"\n\t\t\t\tdojoAttachPoint=\"focusNode,titleNode\" \n\t\t\t\twaiRole=\"button\" waiState=\"haspopup-true,labelledby-${id}_label\"\n\t\t\t\t><span class=\"dijitReset dijitInline\" \n\t\t\t\t\tdojoAttachPoint=\"iconNode\"\n\t\t\t\t></span\n\t\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"  \n\t\t\t\t\tdojoAttachPoint=\"containerNode,popupStateNode\" \n\t\t\t\t\tid=\"${id}_label\"\n\t\t\t\t></span\n\t\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonInner\">&thinsp;</span\n\t\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonChar\">&#9660;</span\n\t\t\t></button\n\t\t></span\n\t></span\n></span>\n",_fillContent:function(){if(this.srcNodeRef){var _354=dojo.query("*",this.srcNodeRef);dijit.form.DropDownButton.superclass._fillContent.call(this,_354[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}if(!this.dropDown){var _355=dojo.query("[widgetId]",this.dropDownContainer)[0];this.dropDown=dijit.byNode(_355);delete this.dropDownContainer;}dijit.popup.prepare(this.dropDown.domNode);this.inherited(arguments);},destroyDescendants:function(){if(this.dropDown){this.dropDown.destroyRecursive();delete this.dropDown;}this.inherited(arguments);},_onArrowClick:function(e){if(this.disabled||this.readOnly){return;}this._toggleDropDown();},_onDropDownClick:function(e){var _358=dojo.isFF&&dojo.isFF<3&&navigator.appVersion.indexOf("Macintosh")!=-1;if(!_358||e.detail!=0||this._seenKeydown){this._onArrowClick(e);}this._seenKeydown=false;},_onDropDownKeydown:function(e){this._seenKeydown=true;},_onDropDownBlur:function(e){this._seenKeydown=false;},_onKey:function(e){if(this.disabled||this.readOnly){return;}if(e.charOrCode==dojo.keys.DOWN_ARROW){if(!this.dropDown||this.dropDown.domNode.style.visibility=="hidden"){dojo.stopEvent(e);this._toggleDropDown();}}},_onBlur:function(){this._closeDropDown();this.inherited(arguments);},_toggleDropDown:function(){if(this.disabled||this.readOnly){return;}dijit.focus(this.popupStateNode);var _35c=this.dropDown;if(!_35c){return;}if(!this._opened){if(_35c.href&&!_35c.isLoaded){var self=this;var _35e=dojo.connect(_35c,"onLoad",function(){dojo.disconnect(_35e);self._openDropDown();});_35c.refresh();return;}else{this._openDropDown();}}else{this._closeDropDown();}},_openDropDown:function(){var _35f=this.dropDown;var _360=_35f.domNode.style.width;var self=this;dijit.popup.open({parent:this,popup:_35f,around:this.domNode,orient:this.isLeftToRight()?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"},onExecute:function(){self._closeDropDown(true);},onCancel:function(){self._closeDropDown(true);},onClose:function(){_35f.domNode.style.width=_360;self.popupStateNode.removeAttribute("popupActive");self._opened=false;}});if(this.domNode.offsetWidth>_35f.domNode.offsetWidth){var _362=null;if(!this.isLeftToRight()){_362=_35f.domNode.parentNode;var _363=_362.offsetLeft+_362.offsetWidth;}dojo.marginBox(_35f.domNode,{w:this.domNode.offsetWidth});if(_362){_362.style.left=_363-this.domNode.offsetWidth+"px";}}this.popupStateNode.setAttribute("popupActive","true");this._opened=true;if(_35f.focus){_35f.focus();}},_closeDropDown:function(_364){if(this._opened){dijit.popup.close(this.dropDown);if(_364){this.focus();}this._opened=false;}}});dojo.declare("dijit.form.ComboButton",dijit.form.DropDownButton,{templateString:"<table class='dijit dijitReset dijitInline dijitLeft'\n\tcellspacing='0' cellpadding='0' waiRole=\"presentation\"\n\t><tbody waiRole=\"presentation\"><tr waiRole=\"presentation\"\n\t\t><td class=\"dijitReset dijitStretch dijitButtonContents dijitButtonNode\"\n\t\t\tdojoAttachEvent=\"ondijitclick:_onButtonClick,onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\"  dojoAttachPoint=\"titleNode\"\n\t\t\twaiRole=\"button\" waiState=\"labelledby-${id}_label\"\n\t\t\t><div class=\"dijitReset dijitInline\" dojoAttachPoint=\"iconNode\" waiRole=\"presentation\"></div\n\t\t\t><div class=\"dijitReset dijitInline dijitButtonText\" id=\"${id}_label\" dojoAttachPoint=\"containerNode\" waiRole=\"presentation\"></div\n\t\t></td\n\t\t><td class='dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton'\n\t\t\tdojoAttachPoint=\"popupStateNode,focusNode\"\n\t\t\tdojoAttachEvent=\"ondijitclick:_onArrowClick, onkeypress:_onKey,onmouseenter:_onMouse,onmouseleave:_onMouse\"\n\t\t\tstateModifier=\"DownArrow\"\n\t\t\ttitle=\"${optionsTitle}\" ${nameAttrSetting}\n\t\t\twaiRole=\"button\" waiState=\"haspopup-true\"\n\t\t\t><div class=\"dijitReset dijitArrowButtonInner\" waiRole=\"presentation\">&thinsp;</div\n\t\t\t><div class=\"dijitReset dijitArrowButtonChar\" waiRole=\"presentation\">&#9660;</div\n\t\t></td\n\t></tr></tbody\n></table>\n",attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{id:"",tabIndex:["focusNode","titleNode"]}),optionsTitle:"",baseClass:"dijitComboButton",_focusedNode:null,postCreate:function(){this.inherited(arguments);this._focalNodes=[this.titleNode,this.popupStateNode];dojo.forEach(this._focalNodes,dojo.hitch(this,function(node){if(dojo.isIE){this.connect(node,"onactivate",this._onNodeFocus);this.connect(node,"ondeactivate",this._onNodeBlur);}else{this.connect(node,"onfocus",this._onNodeFocus);this.connect(node,"onblur",this._onNodeBlur);}}));},focusFocalNode:function(node){this._focusedNode=node;dijit.focus(node);},hasNextFocalNode:function(){return this._focusedNode!==this.getFocalNodes()[1];},focusNext:function(){this._focusedNode=this.getFocalNodes()[this._focusedNode?1:0];dijit.focus(this._focusedNode);},hasPrevFocalNode:function(){return this._focusedNode!==this.getFocalNodes()[0];},focusPrev:function(){this._focusedNode=this.getFocalNodes()[this._focusedNode?0:1];dijit.focus(this._focusedNode);},getFocalNodes:function(){return this._focalNodes;},_onNodeFocus:function(evt){this._focusedNode=evt.currentTarget;var fnc=this._focusedNode==this.focusNode?"dijitDownArrowButtonFocused":"dijitButtonContentsFocused";dojo.addClass(this._focusedNode,fnc);},_onNodeBlur:function(evt){var fnc=evt.currentTarget==this.focusNode?"dijitDownArrowButtonFocused":"dijitButtonContentsFocused";dojo.removeClass(evt.currentTarget,fnc);},_onBlur:function(){this.inherited(arguments);this._focusedNode=null;}});dojo.declare("dijit.form.ToggleButton",dijit.form.Button,{baseClass:"dijitToggleButton",checked:false,attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{checked:"focusNode"}),_clicked:function(evt){this.attr("checked",!this.checked);},_setCheckedAttr:function(_36c){this.checked=_36c;dojo.attr(this.focusNode||this.domNode,"checked",_36c);dijit.setWaiState(this.focusNode||this.domNode,"pressed",_36c);this._setStateClass();this._handleOnChange(_36c,true);},setChecked:function(_36d){dojo.deprecated("setChecked("+_36d+") is deprecated. Use attr('checked',"+_36d+") instead.","","2.0");this.attr("checked",_36d);},reset:function(){this._hasBeenBlurred=false;this.attr("checked",this.params.checked||false);}});}if(!dojo._hasResource["dijit._editor._Plugin"]){dojo._hasResource["dijit._editor._Plugin"]=true;dojo.provide("dijit._editor._Plugin");dojo.declare("dijit._editor._Plugin",null,{constructor:function(args,node){if(args){dojo.mixin(this,args);}this._connects=[];},editor:null,iconClassPrefix:"dijitEditorIcon",button:null,queryCommand:null,command:"",commandArg:null,useDefaultCommand:true,buttonClass:dijit.form.Button,getLabel:function(key){return this.editor.commands[key];},_initButton:function(_371){if(this.command.length){var _372=this.getLabel(this.command);var _373=this.iconClassPrefix+" "+this.iconClassPrefix+this.command.charAt(0).toUpperCase()+this.command.substr(1);if(!this.button){_371=dojo.mixin({label:_372,showLabel:false,iconClass:_373,dropDown:this.dropDown,tabIndex:"-1"},_371||{});this.button=new this.buttonClass(_371);}}},destroy:function(f){dojo.forEach(this._connects,dojo.disconnect);if(this.dropDown){this.dropDown.destroyRecursive();}},connect:function(o,f,tf){this._connects.push(dojo.connect(o,f,this,tf));},updateState:function(){var e=this.editor,c=this.command,_37a,_37b;if(!e||!e.isLoaded||!c.length){return;}if(this.button){try{_37b=e.queryCommandEnabled(c);if(this.enabled!==_37b){this.enabled=_37b;this.button.attr("disabled",!_37b);}if(typeof this.button.checked=="boolean"){_37a=e.queryCommandState(c);if(this.checked!==_37a){this.checked=_37a;this.button.attr("checked",e.queryCommandState(c));}}}catch(e){}}},setEditor:function(_37c){this.editor=_37c;this._initButton();if(this.command.length&&!this.editor.queryCommandAvailable(this.command)){if(this.button){this.button.domNode.style.display="none";}}if(this.button&&this.useDefaultCommand){this.connect(this.button,"onClick",dojo.hitch(this.editor,"execCommand",this.command,this.commandArg));}this.connect(this.editor,"onNormalizedDisplayChanged","updateState");},setToolbar:function(_37d){if(this.button){_37d.addChild(this.button);}}});}if(!dojo._hasResource["dijit._editor.plugins.EnterKeyHandling"]){dojo._hasResource["dijit._editor.plugins.EnterKeyHandling"]=true;dojo.provide("dijit._editor.plugins.EnterKeyHandling");dojo.declare("dijit._editor.plugins.EnterKeyHandling",dijit._editor._Plugin,{blockNodeForEnter:"BR",constructor:function(args){if(args){dojo.mixin(this,args);}},setEditor:function(_37f){this.editor=_37f;if(this.blockNodeForEnter=="BR"){if(dojo.isIE){_37f.contentDomPreFilters.push(dojo.hitch(this,"regularPsToSingleLinePs"));_37f.contentDomPostFilters.push(dojo.hitch(this,"singleLinePsToRegularPs"));_37f.onLoadDeferred.addCallback(dojo.hitch(this,"_fixNewLineBehaviorForIE"));}else{_37f.onLoadDeferred.addCallback(dojo.hitch(this,function(d){try{this.editor.document.execCommand("insertBrOnReturn",false,true);}catch(e){}return d;}));}}else{if(this.blockNodeForEnter){dojo["require"]("dijit._editor.range");var h=dojo.hitch(this,this.handleEnterKey);_37f.addKeyHandler(13,0,0,h);_37f.addKeyHandler(13,0,1,h);this.connect(this.editor,"onKeyPressed","onKeyPressed");}}},connect:function(o,f,tf){if(!this._connects){this._connects=[];}this._connects.push(dojo.connect(o,f,this,tf));},destroy:function(){dojo.forEach(this._connects,dojo.disconnect);this._connects=[];},onKeyPressed:function(e){if(this._checkListLater){if(dojo.withGlobal(this.editor.window,"isCollapsed",dijit)){var _386=dojo.withGlobal(this.editor.window,"getAncestorElement",dijit._editor.selection,["LI"]);if(!_386){dijit._editor.RichText.prototype.execCommand.call(this.editor,"formatblock",this.blockNodeForEnter);var _387=dojo.withGlobal(this.editor.window,"getAncestorElement",dijit._editor.selection,[this.blockNodeForEnter]);if(_387){_387.innerHTML=this.bogusHtmlContent;if(dojo.isIE){var r=this.editor.document.selection.createRange();r.move("character",-1);r.select();}}else{alert("onKeyPressed: Can not find the new block node");}}else{if(dojo.isMoz){if(_386.parentNode.parentNode.nodeName=="LI"){_386=_386.parentNode.parentNode;}}var fc=_386.firstChild;if(fc&&fc.nodeType==1&&(fc.nodeName=="UL"||fc.nodeName=="OL")){_386.insertBefore(fc.ownerDocument.createTextNode(" "),fc);var _38a=dijit.range.create();_38a.setStart(_386.firstChild,0);var _38b=dijit.range.getSelection(this.editor.window,true);_38b.removeAllRanges();_38b.addRange(_38a);}}}this._checkListLater=false;}if(this._pressedEnterInBlock){if(this._pressedEnterInBlock.previousSibling){this.removeTrailingBr(this._pressedEnterInBlock.previousSibling);}delete this._pressedEnterInBlock;}},bogusHtmlContent:"&nbsp;",blockNodes:/^(?:P|H1|H2|H3|H4|H5|H6|LI)$/,handleEnterKey:function(e){if(!this.blockNodeForEnter){return true;}var _38d,_38e,_38f,doc=this.editor.document,br;if(e.shiftKey||this.blockNodeForEnter=="BR"){var _392=dojo.withGlobal(this.editor.window,"getParentElement",dijit._editor.selection);var _393=dijit.range.getAncestor(_392,this.blockNodes);if(_393){if(!e.shiftKey&&_393.tagName=="LI"){return true;}_38d=dijit.range.getSelection(this.editor.window);_38e=_38d.getRangeAt(0);if(!_38e.collapsed){_38e.deleteContents();}if(dijit.range.atBeginningOfContainer(_393,_38e.startContainer,_38e.startOffset)){if(e.shiftKey){br=doc.createElement("br");_38f=dijit.range.create();_393.insertBefore(br,_393.firstChild);_38f.setStartBefore(br.nextSibling);_38d.removeAllRanges();_38d.addRange(_38f);}else{dojo.place(br,_393,"before");}}else{if(dijit.range.atEndOfContainer(_393,_38e.startContainer,_38e.startOffset)){_38f=dijit.range.create();br=doc.createElement("br");if(e.shiftKey){_393.appendChild(br);_393.appendChild(doc.createTextNode(" "));_38f.setStart(_393.lastChild,0);}else{dojo.place(br,_393,"after");_38f.setStartAfter(_393);}_38d.removeAllRanges();_38d.addRange(_38f);}else{return true;}}}else{dijit._editor.RichText.prototype.execCommand.call(this.editor,"inserthtml","<br>");}return false;}var _394=true;_38d=dijit.range.getSelection(this.editor.window);_38e=_38d.getRangeAt(0);if(!_38e.collapsed){_38e.deleteContents();}var _395=dijit.range.getBlockAncestor(_38e.endContainer,null,this.editor.editNode);var _396=_395.blockNode;if((this._checkListLater=(_396&&(_396.nodeName=="LI"||_396.parentNode.nodeName=="LI")))){if(dojo.isMoz){this._pressedEnterInBlock=_396;}if(/^(?:\s|&nbsp;)$/.test(_396.innerHTML)){_396.innerHTML="";}return true;}if(!_395.blockNode||_395.blockNode===this.editor.editNode){dijit._editor.RichText.prototype.execCommand.call(this.editor,"formatblock",this.blockNodeForEnter);_395={blockNode:dojo.withGlobal(this.editor.window,"getAncestorElement",dijit._editor.selection,[this.blockNodeForEnter]),blockContainer:this.editor.editNode};if(_395.blockNode){if(!(_395.blockNode.textContent||_395.blockNode.innerHTML).replace(/^\s+|\s+$/g,"").length){this.removeTrailingBr(_395.blockNode);return false;}}else{_395.blockNode=this.editor.editNode;}_38d=dijit.range.getSelection(this.editor.window);_38e=_38d.getRangeAt(0);}var _397=doc.createElement(this.blockNodeForEnter);_397.innerHTML=this.bogusHtmlContent;this.removeTrailingBr(_395.blockNode);if(dijit.range.atEndOfContainer(_395.blockNode,_38e.endContainer,_38e.endOffset)){if(_395.blockNode===_395.blockContainer){_395.blockNode.appendChild(_397);}else{dojo.place(_397,_395.blockNode,"after");}_394=false;_38f=dijit.range.create();_38f.setStart(_397,0);_38d.removeAllRanges();_38d.addRange(_38f);if(this.editor.height){_397.scrollIntoView(false);}}else{if(dijit.range.atBeginningOfContainer(_395.blockNode,_38e.startContainer,_38e.startOffset)){dojo.place(_397,_395.blockNode,_395.blockNode===_395.blockContainer?"first":"before");if(_397.nextSibling&&this.editor.height){_397.nextSibling.scrollIntoView(false);}_394=false;}else{if(dojo.isMoz){this._pressedEnterInBlock=_395.blockNode;}}}return _394;},removeTrailingBr:function(_398){var para=/P|DIV|LI/i.test(_398.tagName)?_398:dijit._editor.selection.getParentOfType(_398,["P","DIV","LI"]);if(!para){return;}if(para.lastChild){if((para.childNodes.length>1&&para.lastChild.nodeType==3&&/^[\s\xAD]*$/.test(para.lastChild.nodeValue))||(para.lastChild&&para.lastChild.tagName=="BR")){dojo.destroy(para.lastChild);}}if(!para.childNodes.length){para.innerHTML=this.bogusHtmlContent;}},_fixNewLineBehaviorForIE:function(d){if(this.editor.document.__INSERTED_EDITIOR_NEWLINE_CSS===undefined){var _39b="p{margin:0 !important;}";var _39c=function(_39d,doc,URI){if(!_39d){return null;}if(!doc){doc=document;}var _3a0=doc.createElement("style");_3a0.setAttribute("type","text/css");var head=doc.getElementsByTagName("head")[0];if(!head){return null;}else{head.appendChild(_3a0);}if(_3a0.styleSheet){var _3a2=function(){try{_3a0.styleSheet.cssText=_39d;}catch(e){}};if(_3a0.styleSheet.disabled){setTimeout(_3a2,10);}else{_3a2();}}else{var _3a3=doc.createTextNode(_39d);_3a0.appendChild(_3a3);}return _3a0;};_39c(_39b,this.editor.document);this.editor.document.__INSERTED_EDITIOR_NEWLINE_CSS=true;return d;}return null;},regularPsToSingleLinePs:function(_3a4,_3a5){function _3a6(el){function _3a8(_3a9){var newP=_3a9[0].ownerDocument.createElement("p");_3a9[0].parentNode.insertBefore(newP,_3a9[0]);dojo.forEach(_3a9,function(node){newP.appendChild(node);});};var _3ac=0;var _3ad=[];var _3ae;while(_3ac<el.childNodes.length){_3ae=el.childNodes[_3ac];if(_3ae.nodeType==3||(_3ae.nodeType==1&&_3ae.nodeName!="BR"&&dojo.style(_3ae,"display")!="block")){_3ad.push(_3ae);}else{var _3af=_3ae.nextSibling;if(_3ad.length){_3a8(_3ad);_3ac=(_3ac+1)-_3ad.length;if(_3ae.nodeName=="BR"){dojo.destroy(_3ae);}}_3ad=[];}_3ac++;}if(_3ad.length){_3a8(_3ad);}};function _3b0(el){var _3b2=null;var _3b3=[];var _3b4=el.childNodes.length-1;for(var i=_3b4;i>=0;i--){_3b2=el.childNodes[i];if(_3b2.nodeName=="BR"){var newP=_3b2.ownerDocument.createElement("p");dojo.place(newP,el,"after");if(_3b3.length==0&&i!=_3b4){newP.innerHTML="&nbsp;";}dojo.forEach(_3b3,function(node){newP.appendChild(node);});dojo.destroy(_3b2);_3b3=[];}else{_3b3.unshift(_3b2);}}};var _3b8=[];var ps=_3a4.getElementsByTagName("p");dojo.forEach(ps,function(p){_3b8.push(p);});dojo.forEach(_3b8,function(p){if((p.previousSibling)&&(p.previousSibling.nodeName=="P"||dojo.style(p.previousSibling,"display")!="block")){var newP=p.parentNode.insertBefore(this.document.createElement("p"),p);newP.innerHTML=_3a5?"":"&nbsp;";}_3b0(p);},this.editor);_3a6(_3a4);return _3a4;},singleLinePsToRegularPs:function(_3bd){function _3be(node){var ps=node.getElementsByTagName("p");var _3c1=[];for(var i=0;i<ps.length;i++){var p=ps[i];var _3c4=false;for(var k=0;k<_3c1.length;k++){if(_3c1[k]===p.parentNode){_3c4=true;break;}}if(!_3c4){_3c1.push(p.parentNode);}}return _3c1;};function _3c6(node){if(node.nodeType!=1||node.tagName!="P"){return dojo.style(node,"display")=="block";}else{if(!node.childNodes.length||node.innerHTML=="&nbsp;"){return true;}}return false;};var _3c8=_3be(_3bd);for(var i=0;i<_3c8.length;i++){var _3ca=_3c8[i];var _3cb=null;var node=_3ca.firstChild;var _3cd=null;while(node){if(node.nodeType!="1"||node.tagName!="P"){_3cb=null;}else{if(_3c6(node)){_3cd=node;_3cb=null;}else{if(_3cb==null){_3cb=node;}else{if((!_3cb.lastChild||_3cb.lastChild.nodeName!="BR")&&(node.firstChild)&&(node.firstChild.nodeName!="BR")){_3cb.appendChild(this.editor.document.createElement("br"));}while(node.firstChild){_3cb.appendChild(node.firstChild);}_3cd=node;}}}node=node.nextSibling;if(_3cd){dojo.destroy(_3cd);_3cd=null;}}}return _3bd;}});}if(!dojo._hasResource["dijit.Editor"]){dojo._hasResource["dijit.Editor"]=true;dojo.provide("dijit.Editor");dojo.declare("dijit.Editor",dijit._editor.RichText,{plugins:null,extraPlugins:null,constructor:function(){if(!dojo.isArray(this.plugins)){this.plugins=["undo","redo","|","cut","copy","paste","|","bold","italic","underline","strikethrough","|","insertOrderedList","insertUnorderedList","indent","outdent","|","justifyLeft","justifyRight","justifyCenter","justifyFull","dijit._editor.plugins.EnterKeyHandling"];}this._plugins=[];this._editInterval=this.editActionInterval*1000;if(dojo.isIE){this.events.push("onBeforeDeactivate");}},postCreate:function(){if(this.customUndo){dojo["require"]("dijit._editor.range");this._steps=this._steps.slice(0);this._undoedSteps=this._undoedSteps.slice(0);}if(dojo.isArray(this.extraPlugins)){this.plugins=this.plugins.concat(this.extraPlugins);}this.inherited(arguments);this.commands=dojo.i18n.getLocalization("dijit._editor","commands",this.lang);if(!this.toolbar){this.toolbar=new dijit.Toolbar({});dojo.place(this.toolbar.domNode,this.editingArea,"before");}dojo.forEach(this.plugins,this.addPlugin,this);this.onNormalizedDisplayChanged();this.toolbar.startup();},destroy:function(){dojo.forEach(this._plugins,function(p){if(p&&p.destroy){p.destroy();}});this._plugins=[];this.toolbar.destroyRecursive();delete this.toolbar;this.inherited(arguments);},addPlugin:function(_3cf,_3d0){var args=dojo.isString(_3cf)?{name:_3cf}:_3cf;if(!args.setEditor){var o={"args":args,"plugin":null,"editor":this};dojo.publish(dijit._scopeName+".Editor.getPlugin",[o]);if(!o.plugin){var pc=dojo.getObject(args.name);if(pc){o.plugin=new pc(args);}}if(!o.plugin){console.warn("Cannot find plugin",_3cf);return;}_3cf=o.plugin;}if(arguments.length>1){this._plugins[_3d0]=_3cf;}else{this._plugins.push(_3cf);}_3cf.setEditor(this);if(dojo.isFunction(_3cf.setToolbar)){_3cf.setToolbar(this.toolbar);}},startup:function(){},resize:function(size){dijit.layout._LayoutWidget.prototype.resize.apply(this,arguments);},layout:function(){this.editingArea.style.height=(this._contentBox.h-dojo.marginBox(this.toolbar.domNode).h)+"px";if(this.iframe){this.iframe.style.height="100%";}this._layoutMode=true;},_onIEMouseDown:function(e){delete this._savedSelection;if(e.target.tagName=="BODY"){setTimeout(dojo.hitch(this,"placeCursorAtEnd"),0);}this.inherited(arguments);},onBeforeDeactivate:function(e){if(this.customUndo){this.endEditing(true);}this._saveSelection();},customUndo:dojo.isIE,editActionInterval:3,beginEditing:function(cmd){if(!this._inEditing){this._inEditing=true;this._beginEditing(cmd);}if(this.editActionInterval>0){if(this._editTimer){clearTimeout(this._editTimer);}this._editTimer=setTimeout(dojo.hitch(this,this.endEditing),this._editInterval);}},_steps:[],_undoedSteps:[],execCommand:function(cmd){if(this.customUndo&&(cmd=="undo"||cmd=="redo")){return this[cmd]();}else{if(this.customUndo){this.endEditing();this._beginEditing();}try{var r=this.inherited("execCommand",arguments);if(dojo.isWebKit&&cmd=="paste"&&!r){throw {code:1011};}}catch(e){if(e.code==1011&&/copy|cut|paste/.test(cmd)){var sub=dojo.string.substitute,_3db={cut:"X",copy:"C",paste:"V"},_3dc=navigator.userAgent.indexOf("Macintosh")!=-1;alert(sub(this.commands.systemShortcut,[this.commands[cmd],sub(this.commands[_3dc?"appleKey":"ctrlKey"],[_3db[cmd]])]));}r=false;}if(this.customUndo){this._endEditing();}return r;}},queryCommandEnabled:function(cmd){if(this.customUndo&&(cmd=="undo"||cmd=="redo")){return cmd=="undo"?(this._steps.length>1):(this._undoedSteps.length>0);}else{return this.inherited("queryCommandEnabled",arguments);}},focus:function(){var _3de=0;if(this._savedSelection&&dojo.isIE){_3de=dijit._curFocus!=this.editNode;}this.inherited(arguments);if(_3de){this._restoreSelection();}},_moveToBookmark:function(b){var _3e0=b;if(dojo.isIE){if(dojo.isArray(b)){_3e0=[];dojo.forEach(b,function(n){_3e0.push(dijit.range.getNode(n,this.editNode));},this);}}else{var r=dijit.range.create();r.setStart(dijit.range.getNode(b.startContainer,this.editNode),b.startOffset);r.setEnd(dijit.range.getNode(b.endContainer,this.editNode),b.endOffset);_3e0=r;}dojo.withGlobal(this.window,"moveToBookmark",dijit,[_3e0]);},_changeToStep:function(from,to){this.setValue(to.text);var b=to.bookmark;if(!b){return;}this._moveToBookmark(b);},undo:function(){this.endEditing(true);var s=this._steps.pop();if(this._steps.length>0){this.focus();this._changeToStep(s,this._steps[this._steps.length-1]);this._undoedSteps.push(s);this.onDisplayChanged();return true;}return false;},redo:function(){this.endEditing(true);var s=this._undoedSteps.pop();if(s&&this._steps.length>0){this.focus();this._changeToStep(this._steps[this._steps.length-1],s);this._steps.push(s);this.onDisplayChanged();return true;}return false;},endEditing:function(_3e8){if(this._editTimer){clearTimeout(this._editTimer);}if(this._inEditing){this._endEditing(_3e8);this._inEditing=false;}},_getBookmark:function(){var b=dojo.withGlobal(this.window,dijit.getBookmark);var tmp=[];if(dojo.isIE){if(dojo.isArray(b)){dojo.forEach(b,function(n){tmp.push(dijit.range.getIndex(n,this.editNode).o);},this);b=tmp;}}else{tmp=dijit.range.getIndex(b.startContainer,this.editNode).o;b={startContainer:tmp,startOffset:b.startOffset,endContainer:b.endContainer===b.startContainer?tmp:dijit.range.getIndex(b.endContainer,this.editNode).o,endOffset:b.endOffset};}return b;},_beginEditing:function(cmd){if(this._steps.length===0){this._steps.push({"text":this.savedContent,"bookmark":this._getBookmark()});}},_endEditing:function(_3ed){var v=this.getValue(true);this._undoedSteps=[];this._steps.push({text:v,bookmark:this._getBookmark()});},onKeyDown:function(e){if(!dojo.isIE&&!this.iframe&&e.keyCode==dojo.keys.TAB&&!this.tabIndent){this._saveSelection();}if(!this.customUndo){this.inherited(arguments);return;}var k=e.keyCode,ks=dojo.keys;if(e.ctrlKey&&!e.altKey){if(k==90||k==122){dojo.stopEvent(e);this.undo();return;}else{if(k==89||k==121){dojo.stopEvent(e);this.redo();return;}}}this.inherited(arguments);switch(k){case ks.ENTER:case ks.BACKSPACE:case ks.DELETE:this.beginEditing();break;case 88:case 86:if(e.ctrlKey&&!e.altKey&&!e.metaKey){this.endEditing();if(e.keyCode==88){this.beginEditing("cut");setTimeout(dojo.hitch(this,this.endEditing),1);}else{this.beginEditing("paste");setTimeout(dojo.hitch(this,this.endEditing),1);}break;}default:if(!e.ctrlKey&&!e.altKey&&!e.metaKey&&(e.keyCode<dojo.keys.F1||e.keyCode>dojo.keys.F15)){this.beginEditing();break;}case ks.ALT:this.endEditing();break;case ks.UP_ARROW:case ks.DOWN_ARROW:case ks.LEFT_ARROW:case ks.RIGHT_ARROW:case ks.HOME:case ks.END:case ks.PAGE_UP:case ks.PAGE_DOWN:this.endEditing(true);break;case ks.CTRL:case ks.SHIFT:case ks.TAB:break;}},_onBlur:function(){this.inherited("_onBlur",arguments);this.endEditing(true);},_saveSelection:function(){this._savedSelection=this._getBookmark();},_restoreSelection:function(){if(this._savedSelection){if(dojo.withGlobal(this.window,"isCollapsed",dijit)){this._moveToBookmark(this._savedSelection);}delete this._savedSelection;}},_onFocus:function(){setTimeout(dojo.hitch(this,"_restoreSelection"),0);this.inherited(arguments);},onClick:function(){this.endEditing(true);this.inherited(arguments);}});dojo.subscribe(dijit._scopeName+".Editor.getPlugin",null,function(o){if(o.plugin){return;}var args=o.args,p;var _p=dijit._editor._Plugin;var name=args.name;switch(name){case "undo":case "redo":case "cut":case "copy":case "paste":case "insertOrderedList":case "insertUnorderedList":case "indent":case "outdent":case "justifyCenter":case "justifyFull":case "justifyLeft":case "justifyRight":case "delete":case "selectAll":case "removeFormat":case "unlink":case "insertHorizontalRule":p=new _p({command:name});break;case "bold":case "italic":case "underline":case "strikethrough":case "subscript":case "superscript":p=new _p({buttonClass:dijit.form.ToggleButton,command:name});break;case "|":p=new _p({button:new dijit.ToolbarSeparator()});}o.plugin=p;});}if(!dojo._hasResource["dijit.MenuItem"]){dojo._hasResource["dijit.MenuItem"]=true;dojo.provide("dijit.MenuItem");dojo.declare("dijit.MenuItem",[dijit._Widget,dijit._Templated,dijit._Contained],{templateString:"<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" waiRole=\"menuitem\" tabIndex=\"-1\"\n\t\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<td class=\"dijitReset\" waiRole=\"presentation\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuItemIcon\" dojoAttachPoint=\"iconNode\">\n\t</td>\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" dojoAttachPoint=\"containerNode\"></td>\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" dojoAttachPoint=\"accelKeyNode\"></td>\n\t<td class=\"dijitReset dijitMenuArrowCell\" waiRole=\"presentation\">\n\t\t<div dojoAttachPoint=\"arrowWrapper\" style=\"visibility: hidden\">\n\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuExpand\">\n\t\t\t<span class=\"dijitMenuExpandA11y\">+</span>\n\t\t</div>\n\t</td>\n</tr>\n",attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{label:{node:"containerNode",type:"innerHTML"},iconClass:{node:"iconNode",type:"class"}}),label:"",iconClass:"",accelKey:"",disabled:false,_fillContent:function(_3f7){if(_3f7&&!("label" in this.params)){this.attr("label",_3f7.innerHTML);}},postCreate:function(){dojo.setSelectable(this.domNode,false);dojo.attr(this.containerNode,"id",this.id+"_text");dijit.setWaiState(this.domNode,"labelledby",this.id+"_text");},_onHover:function(){dojo.addClass(this.domNode,"dijitMenuItemHover");this.getParent().onItemHover(this);},_onUnhover:function(){dojo.removeClass(this.domNode,"dijitMenuItemHover");this.getParent().onItemUnhover(this);},_onClick:function(evt){this.getParent().onItemClick(this,evt);dojo.stopEvent(evt);},onClick:function(evt){},focus:function(){try{dijit.focus(this.focusNode);}catch(e){}},_onFocus:function(){this._setSelected(true);},_setSelected:function(_3fa){dojo.toggleClass(this.domNode,"dijitMenuItemSelected",_3fa);},setLabel:function(_3fb){dojo.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use attr('label', ...) instead.","","2.0");this.attr("label",_3fb);},setDisabled:function(_3fc){dojo.deprecated("dijit.Menu.setDisabled() is deprecated.  Use attr('disabled', bool) instead.","","2.0");this.attr("disabled",_3fc);},_setDisabledAttr:function(_3fd){this.disabled=_3fd;dojo[_3fd?"addClass":"removeClass"](this.domNode,"dijitMenuItemDisabled");dijit.setWaiState(this.focusNode,"disabled",_3fd?"true":"false");},_setAccelKeyAttr:function(_3fe){this.accelKey=_3fe;this.accelKeyNode.style.display=_3fe?"":"none";this.accelKeyNode.innerHTML=_3fe;dojo.attr(this.containerNode,"colSpan",_3fe?"1":"2");}});}if(!dojo._hasResource["dijit.PopupMenuItem"]){dojo._hasResource["dijit.PopupMenuItem"]=true;dojo.provide("dijit.PopupMenuItem");dojo.declare("dijit.PopupMenuItem",dijit.MenuItem,{_fillContent:function(){if(this.srcNodeRef){var _3ff=dojo.query("*",this.srcNodeRef);dijit.PopupMenuItem.superclass._fillContent.call(this,_3ff[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}this.inherited(arguments);if(!this.popup){var node=dojo.query("[widgetId]",this.dropDownContainer)[0];this.popup=dijit.byNode(node);}dojo.body().appendChild(this.popup.domNode);this.popup.domNode.style.display="none";if(this.arrowWrapper){dojo.style(this.arrowWrapper,"visibility","");}dijit.setWaiState(this.focusNode,"haspopup","true");},destroyDescendants:function(){if(this.popup){this.popup.destroyRecursive();delete this.popup;}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.CheckedMenuItem"]){dojo._hasResource["dijit.CheckedMenuItem"]=true;dojo.provide("dijit.CheckedMenuItem");dojo.declare("dijit.CheckedMenuItem",dijit.MenuItem,{templateString:"<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" waiRole=\"menuitemcheckbox\" tabIndex=\"-1\"\n\t\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<td class=\"dijitReset\" waiRole=\"presentation\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuItemIcon dijitCheckedMenuItemIcon\" dojoAttachPoint=\"iconNode\">\n\t\t<span class=\"dijitCheckedMenuItemIconChar\">&#10003;</span>\n\t</td>\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" dojoAttachPoint=\"containerNode,labelNode\"></td>\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" dojoAttachPoint=\"accelKeyNode\"></td>\n\t<td class=\"dijitReset dijitMenuArrowCell\" waiRole=\"presentation\">\n\t</td>\n</tr>\n",checked:false,_setCheckedAttr:function(_401){dojo.toggleClass(this.domNode,"dijitCheckedMenuItemChecked",_401);dijit.setWaiState(this.domNode,"checked",_401);this.checked=_401;},onChange:function(_402){},_onClick:function(e){if(!this.disabled){this.attr("checked",!this.checked);this.onChange(this.checked);}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.MenuSeparator"]){dojo._hasResource["dijit.MenuSeparator"]=true;dojo.provide("dijit.MenuSeparator");dojo.declare("dijit.MenuSeparator",[dijit._Widget,dijit._Templated,dijit._Contained],{templateString:"<tr class=\"dijitMenuSeparator\">\n\t<td colspan=\"4\">\n\t\t<div class=\"dijitMenuSeparatorTop\"></div>\n\t\t<div class=\"dijitMenuSeparatorBottom\"></div>\n\t</td>\n</tr>\n",postCreate:function(){dojo.setSelectable(this.domNode,false);},isFocusable:function(){return false;}});}if(!dojo._hasResource["dijit.Menu"]){dojo._hasResource["dijit.Menu"]=true;dojo.provide("dijit.Menu");dojo.declare("dijit._MenuBase",[dijit._Widget,dijit._Templated,dijit._KeyNavContainer],{parentMenu:null,popupDelay:500,startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_404){_404.startup();});this.startupKeyNavChildren();this.inherited(arguments);},onExecute:function(){},onCancel:function(_405){},_moveToPopup:function(evt){if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled){this.focusedChild._onClick(evt);}else{var _407=this._getTopMenu();if(_407&&_407._isMenuBar){_407.focusNext();}}},onItemHover:function(item){if(this.isActive){this.focusChild(item);if(this.focusedChild.popup&&!this.focusedChild.disabled&&!this.hover_timer){this.hover_timer=setTimeout(dojo.hitch(this,"_openPopup"),this.popupDelay);}}},_onChildBlur:function(item){item._setSelected(false);dijit.popup.close(item.popup);this._stopPopupTimer();},onItemUnhover:function(item){if(this.isActive){this._stopPopupTimer();}},_stopPopupTimer:function(){if(this.hover_timer){clearTimeout(this.hover_timer);this.hover_timer=null;}},_getTopMenu:function(){for(var top=this;top.parentMenu;top=top.parentMenu){}return top;},onItemClick:function(item,evt){if(item.disabled){return false;}this.focusChild(item);if(item.popup){if(!this.is_open){this._openPopup();}}else{this.onExecute();item.onClick(evt);}},_openPopup:function(){this._stopPopupTimer();var _40e=this.focusedChild;var _40f=_40e.popup;if(_40f.isShowingNow){return;}_40f.parentMenu=this;var self=this;dijit.popup.open({parent:this,popup:_40f,around:_40e.domNode,orient:this._orient||(this.isLeftToRight()?{"TR":"TL","TL":"TR"}:{"TL":"TR","TR":"TL"}),onCancel:function(){dijit.popup.close(_40f);_40e.focus();self.currentPopup=null;},onExecute:dojo.hitch(this,"_onDescendantExecute")});this.currentPopup=_40f;if(_40f.focus){setTimeout(dojo.hitch(_40f,"focus"),0);}},onOpen:function(e){this.isShowingNow=true;},onClose:function(){this._stopPopupTimer();this.parentMenu=null;this.isShowingNow=false;this.currentPopup=null;if(this.focusedChild){this._onChildBlur(this.focusedChild);this.focusedChild=null;}},_onFocus:function(){this.isActive=true;dojo.addClass(this.domNode,"dijitMenuActive");dojo.removeClass(this.domNode,"dijitMenuPassive");this.inherited(arguments);},_onBlur:function(){this.isActive=false;dojo.removeClass(this.domNode,"dijitMenuActive");dojo.addClass(this.domNode,"dijitMenuPassive");this.onClose();this.inherited(arguments);},_onDescendantExecute:function(){this.onClose();}});dojo.declare("dijit.Menu",dijit._MenuBase,{constructor:function(){this._bindings=[];},templateString:"<table class=\"dijit dijitMenu dijitMenuPassive dijitReset dijitMenuTable\" waiRole=\"menu\" tabIndex=\"${tabIndex}\" dojoAttachEvent=\"onkeypress:_onKeyPress\">\n\t<tbody class=\"dijitReset\" dojoAttachPoint=\"containerNode\"></tbody>\n</table>\n",targetNodeIds:[],contextMenuForWindow:false,leftClickToOpen:false,_contextMenuWithMouse:false,postCreate:function(){if(this.contextMenuForWindow){this.bindDomNode(dojo.body());}else{dojo.forEach(this.targetNodeIds,this.bindDomNode,this);}var k=dojo.keys,l=this.isLeftToRight();this._openSubMenuKey=l?k.RIGHT_ARROW:k.LEFT_ARROW;this._closeSubMenuKey=l?k.LEFT_ARROW:k.RIGHT_ARROW;this.connectKeyNavHandlers([k.UP_ARROW],[k.DOWN_ARROW]);},_onKeyPress:function(evt){if(evt.ctrlKey||evt.altKey){return;}switch(evt.charOrCode){case this._openSubMenuKey:this._moveToPopup(evt);dojo.stopEvent(evt);break;case this._closeSubMenuKey:if(this.parentMenu){if(this.parentMenu._isMenuBar){this.parentMenu.focusPrev();}else{this.onCancel(false);}}else{dojo.stopEvent(evt);}break;}},_iframeContentWindow:function(_415){var win=dijit.getDocumentWindow(dijit.Menu._iframeContentDocument(_415))||dijit.Menu._iframeContentDocument(_415)["__parent__"]||(_415.name&&dojo.doc.frames[_415.name])||null;return win;},_iframeContentDocument:function(_417){var doc=_417.contentDocument||(_417.contentWindow&&_417.contentWindow.document)||(_417.name&&dojo.doc.frames[_417.name]&&dojo.doc.frames[_417.name].document)||null;return doc;},bindDomNode:function(node){node=dojo.byId(node);var win=dijit.getDocumentWindow(node.ownerDocument);if(node.tagName.toLowerCase()=="iframe"){win=this._iframeContentWindow(node);node=dojo.withGlobal(win,dojo.body);}var cn=(node==dojo.body()?dojo.doc:node);node[this.id]=this._bindings.push([dojo.connect(cn,(this.leftClickToOpen)?"onclick":"oncontextmenu",this,"_openMyself"),dojo.connect(cn,"onkeydown",this,"_contextKey"),dojo.connect(cn,"onmousedown",this,"_contextMouse")]);},unBindDomNode:function(_41c){var node=dojo.byId(_41c);if(node){var bid=node[this.id]-1,b=this._bindings[bid];dojo.forEach(b,dojo.disconnect);delete this._bindings[bid];}},_contextKey:function(e){this._contextMenuWithMouse=false;if(e.keyCode==dojo.keys.F10){dojo.stopEvent(e);if(e.shiftKey&&e.type=="keydown"){var _e={target:e.target,pageX:e.pageX,pageY:e.pageY};_e.preventDefault=_e.stopPropagation=function(){};window.setTimeout(dojo.hitch(this,function(){this._openMyself(_e);}),1);}}},_contextMouse:function(e){this._contextMenuWithMouse=true;},_openMyself:function(e){if(this.leftClickToOpen&&e.button>0){return;}dojo.stopEvent(e);var x,y;if(dojo.isSafari||this._contextMenuWithMouse){x=e.pageX;y=e.pageY;}else{var _426=dojo.coords(e.target,true);x=_426.x+10;y=_426.y+10;}var self=this;var _428=dijit.getFocus(this);function _429(){dijit.focus(_428);dijit.popup.close(self);};dijit.popup.open({popup:this,x:x,y:y,onExecute:_429,onCancel:_429,orient:this.isLeftToRight()?"L":"R"});this.focus();this._onBlur=function(){this.inherited("_onBlur",arguments);dijit.popup.close(this);};},uninitialize:function(){dojo.forEach(this.targetNodeIds,this.unBindDomNode,this);this.inherited(arguments);}});}if(!dojo._hasResource["dijit.MenuBar"]){dojo._hasResource["dijit.MenuBar"]=true;dojo.provide("dijit.MenuBar");dojo.declare("dijit.MenuBar",dijit._MenuBase,{templateString:"<div class=\"dijitMenuBar dijitMenuPassive\" dojoAttachPoint=\"containerNode\"  waiRole=\"menubar\" tabIndex=\"${tabIndex}\" dojoAttachEvent=\"onkeypress: _onKeyPress\"></div>\n",_isMenuBar:true,constructor:function(){this._orient=this.isLeftToRight()?{BL:"TL"}:{BR:"TR"};},postCreate:function(){var k=dojo.keys,l=this.isLeftToRight();this.connectKeyNavHandlers(l?[k.LEFT_ARROW]:[k.RIGHT_ARROW],l?[k.RIGHT_ARROW]:[k.LEFT_ARROW]);},focusChild:function(item){var _42d=this.focusedChild,_42e=_42d&&_42d.popup&&_42d.popup.isShowingNow;this.inherited(arguments);if(_42e&&!item.disabled){this._openPopup();}},_onKeyPress:function(evt){if(evt.ctrlKey||evt.altKey){return;}switch(evt.charOrCode){case dojo.keys.DOWN_ARROW:this._moveToPopup(evt);dojo.stopEvent(evt);}}});}if(!dojo._hasResource["dijit.MenuBarItem"]){dojo._hasResource["dijit.MenuBarItem"]=true;dojo.provide("dijit.MenuBarItem");dojo.declare("dijit._MenuBarItemMixin",null,{templateString:"<div class=\"dijitReset dijitInline dijitMenuItem dijitMenuItemLabel\" dojoAttachPoint=\"focusNode\" waiRole=\"menuitem\" tabIndex=\"-1\"'\n\t\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<span dojoAttachPoint=\"containerNode\"></span>\n</div>\n",attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{label:{node:"containerNode",type:"innerHTML"}})});dojo.declare("dijit.MenuBarItem",[dijit.MenuItem,dijit._MenuBarItemMixin],{});}if(!dojo._hasResource["dijit.PopupMenuBarItem"]){dojo._hasResource["dijit.PopupMenuBarItem"]=true;dojo.provide("dijit.PopupMenuBarItem");dojo.declare("dijit.PopupMenuBarItem",[dijit.PopupMenuItem,dijit._MenuBarItemMixin],{});}if(!dojo._hasResource["dojo.regexp"]){dojo._hasResource["dojo.regexp"]=true;dojo.provide("dojo.regexp");dojo.regexp.escapeString=function(str,_431){return str.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(ch){if(_431&&_431.indexOf(ch)!=-1){return ch;}return "\\"+ch;});};dojo.regexp.buildGroupRE=function(arr,re,_435){if(!(arr instanceof Array)){return re(arr);}var b=[];for(var i=0;i<arr.length;i++){b.push(re(arr[i]));}return dojo.regexp.group(b.join("|"),_435);};dojo.regexp.group=function(_438,_439){return "("+(_439?"?:":"")+_438+")";};}if(!dojo._hasResource["dojo.number"]){dojo._hasResource["dojo.number"]=true;dojo.provide("dojo.number");dojo.number.format=function(_43a,_43b){_43b=dojo.mixin({},_43b||{});var _43c=dojo.i18n.normalizeLocale(_43b.locale);var _43d=dojo.i18n.getLocalization("dojo.cldr","number",_43c);_43b.customs=_43d;var _43e=_43b.pattern||_43d[(_43b.type||"decimal")+"Format"];if(isNaN(_43a)||Math.abs(_43a)==Infinity){return null;}return dojo.number._applyPattern(_43a,_43e,_43b);};dojo.number._numberPatternRE=/[#0,]*[#0](?:\.0*#*)?/;dojo.number._applyPattern=function(_43f,_440,_441){_441=_441||{};var _442=_441.customs.group;var _443=_441.customs.decimal;var _444=_440.split(";");var _445=_444[0];_440=_444[(_43f<0)?1:0]||("-"+_445);if(_440.indexOf("%")!=-1){_43f*=100;}else{if(_440.indexOf("‰")!=-1){_43f*=1000;}else{if(_440.indexOf("¤")!=-1){_442=_441.customs.currencyGroup||_442;_443=_441.customs.currencyDecimal||_443;_440=_440.replace(/\u00a4{1,3}/,function(_446){var prop=["symbol","currency","displayName"][_446.length-1];return _441[prop]||_441.currency||"";});}else{if(_440.indexOf("E")!=-1){throw new Error("exponential notation not supported");}}}}var _448=dojo.number._numberPatternRE;var _449=_445.match(_448);if(!_449){throw new Error("unable to find a number expression in pattern: "+_440);}if(_441.fractional===false){_441.places=0;}return _440.replace(_448,dojo.number._formatAbsolute(_43f,_449[0],{decimal:_443,group:_442,places:_441.places,round:_441.round}));};dojo.number.round=function(_44a,_44b,_44c){var _44d=10/(_44c||10);return (_44d*+_44a).toFixed(_44b)/_44d;};if((0.9).toFixed()==0){(function(){var _44e=dojo.number.round;dojo.number.round=function(v,p,m){var d=Math.pow(10,-p||0),a=Math.abs(v);if(!v||a>=d||a*Math.pow(10,p+1)<5){d=0;}return _44e(v,p,m)+(v>0?d:-d);};})();}dojo.number._formatAbsolute=function(_454,_455,_456){_456=_456||{};if(_456.places===true){_456.places=0;}if(_456.places===Infinity){_456.places=6;}var _457=_455.split(".");var _458=(_456.places>=0)?_456.places:(_457[1]&&_457[1].length)||0;if(!(_456.round<0)){_454=dojo.number.round(_454,_458,_456.round);}var _459=String(Math.abs(_454)).split(".");var _45a=_459[1]||"";if(_456.places){var _45b=dojo.isString(_456.places)&&_456.places.indexOf(",");if(_45b){_456.places=_456.places.substring(_45b+1);}_459[1]=dojo.string.pad(_45a.substr(0,_456.places),_456.places,"0",true);}else{if(_457[1]&&_456.places!==0){var pad=_457[1].lastIndexOf("0")+1;if(pad>_45a.length){_459[1]=dojo.string.pad(_45a,pad,"0",true);}var _45d=_457[1].length;if(_45d<_45a.length){_459[1]=_45a.substr(0,_45d);}}else{if(_459[1]){_459.pop();}}}var _45e=_457[0].replace(",","");pad=_45e.indexOf("0");if(pad!=-1){pad=_45e.length-pad;if(pad>_459[0].length){_459[0]=dojo.string.pad(_459[0],pad);}if(_45e.indexOf("#")==-1){_459[0]=_459[0].substr(_459[0].length-pad);}}var _45f=_457[0].lastIndexOf(",");var _460,_461;if(_45f!=-1){_460=_457[0].length-_45f-1;var _462=_457[0].substr(0,_45f);_45f=_462.lastIndexOf(",");if(_45f!=-1){_461=_462.length-_45f-1;}}var _463=[];for(var _464=_459[0];_464;){var off=_464.length-_460;_463.push((off>0)?_464.substr(off):_464);_464=(off>0)?_464.slice(0,off):"";if(_461){_460=_461;delete _461;}}_459[0]=_463.reverse().join(_456.group||",");return _459.join(_456.decimal||".");};dojo.number.regexp=function(_466){return dojo.number._parseInfo(_466).regexp;};dojo.number._parseInfo=function(_467){_467=_467||{};var _468=dojo.i18n.normalizeLocale(_467.locale);var _469=dojo.i18n.getLocalization("dojo.cldr","number",_468);var _46a=_467.pattern||_469[(_467.type||"decimal")+"Format"];var _46b=_469.group;var _46c=_469.decimal;var _46d=1;if(_46a.indexOf("%")!=-1){_46d/=100;}else{if(_46a.indexOf("‰")!=-1){_46d/=1000;}else{var _46e=_46a.indexOf("¤")!=-1;if(_46e){_46b=_469.currencyGroup||_46b;_46c=_469.currencyDecimal||_46c;}}}var _46f=_46a.split(";");if(_46f.length==1){_46f.push("-"+_46f[0]);}var re=dojo.regexp.buildGroupRE(_46f,function(_471){_471="(?:"+dojo.regexp.escapeString(_471,".")+")";return _471.replace(dojo.number._numberPatternRE,function(_472){var _473={signed:false,separator:_467.strict?_46b:[_46b,""],fractional:_467.fractional,decimal:_46c,exponent:false};var _474=_472.split(".");var _475=_467.places;if(_474.length==1||_475===0){_473.fractional=false;}else{if(_475===undefined){_475=_467.pattern?_474[1].lastIndexOf("0")+1:Infinity;}if(_475&&_467.fractional==undefined){_473.fractional=true;}if(!_467.places&&(_475<_474[1].length)){_475+=","+_474[1].length;}_473.places=_475;}var _476=_474[0].split(",");if(_476.length>1){_473.groupSize=_476.pop().length;if(_476.length>1){_473.groupSize2=_476.pop().length;}}return "("+dojo.number._realNumberRegexp(_473)+")";});},true);if(_46e){re=re.replace(/([\s\xa0]*)(\u00a4{1,3})([\s\xa0]*)/g,function(_477,_478,_479,_47a){var prop=["symbol","currency","displayName"][_479.length-1];var _47c=dojo.regexp.escapeString(_467[prop]||_467.currency||"");_478=_478?"[\\s\\xa0]":"";_47a=_47a?"[\\s\\xa0]":"";if(!_467.strict){if(_478){_478+="*";}if(_47a){_47a+="*";}return "(?:"+_478+_47c+_47a+")?";}return _478+_47c+_47a;});}return {regexp:re.replace(/[\xa0 ]/g,"[\\s\\xa0]"),group:_46b,decimal:_46c,factor:_46d};};dojo.number.parse=function(_47d,_47e){var info=dojo.number._parseInfo(_47e);var _480=(new RegExp("^"+info.regexp+"$")).exec(_47d);if(!_480){return NaN;}var _481=_480[1];if(!_480[1]){if(!_480[2]){return NaN;}_481=_480[2];info.factor*=-1;}_481=_481.replace(new RegExp("["+info.group+"\\s\\xa0"+"]","g"),"").replace(info.decimal,".");return _481*info.factor;};dojo.number._realNumberRegexp=function(_482){_482=_482||{};if(!("places" in _482)){_482.places=Infinity;}if(typeof _482.decimal!="string"){_482.decimal=".";}if(!("fractional" in _482)||/^0/.test(_482.places)){_482.fractional=[true,false];}if(!("exponent" in _482)){_482.exponent=[true,false];}if(!("eSigned" in _482)){_482.eSigned=[true,false];}var _483=dojo.number._integerRegexp(_482);var _484=dojo.regexp.buildGroupRE(_482.fractional,function(q){var re="";if(q&&(_482.places!==0)){re="\\"+_482.decimal;if(_482.places==Infinity){re="(?:"+re+"\\d+)?";}else{re+="\\d{"+_482.places+"}";}}return re;},true);var _487=dojo.regexp.buildGroupRE(_482.exponent,function(q){if(q){return "([eE]"+dojo.number._integerRegexp({signed:_482.eSigned})+")";}return "";});var _489=_483+_484;if(_484){_489="(?:(?:"+_489+")|(?:"+_484+"))";}return _489+_487;};dojo.number._integerRegexp=function(_48a){_48a=_48a||{};if(!("signed" in _48a)){_48a.signed=[true,false];}if(!("separator" in _48a)){_48a.separator="";}else{if(!("groupSize" in _48a)){_48a.groupSize=3;}}var _48b=dojo.regexp.buildGroupRE(_48a.signed,function(q){return q?"[-+]":"";},true);var _48d=dojo.regexp.buildGroupRE(_48a.separator,function(sep){if(!sep){return "(?:\\d+)";}sep=dojo.regexp.escapeString(sep);if(sep==" "){sep="\\s";}else{if(sep==" "){sep="\\s\\xa0";}}var grp=_48a.groupSize,grp2=_48a.groupSize2;if(grp2){var _491="(?:0|[1-9]\\d{0,"+(grp2-1)+"}(?:["+sep+"]\\d{"+grp2+"})*["+sep+"]\\d{"+grp+"})";return ((grp-grp2)>0)?"(?:"+_491+"|(?:0|[1-9]\\d{0,"+(grp-1)+"}))":_491;}return "(?:0|[1-9]\\d{0,"+(grp-1)+"}(?:["+sep+"]\\d{"+grp+"})*)";},true);return _48b+_48d;};}if(!dojo._hasResource["dijit.ProgressBar"]){dojo._hasResource["dijit.ProgressBar"]=true;dojo.provide("dijit.ProgressBar");dojo.declare("dijit.ProgressBar",[dijit._Widget,dijit._Templated],{progress:"0",maximum:100,places:0,indeterminate:false,templateString:"<div class=\"dijitProgressBar dijitProgressBarEmpty\"\n\t><div waiRole=\"progressbar\" tabindex=\"0\" dojoAttachPoint=\"internalProgress\" class=\"dijitProgressBarFull\"\n\t\t><div class=\"dijitProgressBarTile\"></div\n\t\t><span style=\"visibility:hidden\">&nbsp;</span\n\t></div\n\t><div dojoAttachPoint=\"label\" class=\"dijitProgressBarLabel\" id=\"${id}_label\">&nbsp;</div\n\t><img dojoAttachPoint=\"indeterminateHighContrastImage\" class=\"dijitProgressBarIndeterminateHighContrastImage\"\n\t></img\n></div>\n",_indeterminateHighContrastImagePath:dojo.moduleUrl("dijit","themes/a11y/indeterminate_progress.gif"),postCreate:function(){this.inherited(arguments);this.indeterminateHighContrastImage.setAttribute("src",this._indeterminateHighContrastImagePath);this.update();},update:function(_492){dojo.mixin(this,_492||{});var tip=this.internalProgress;var _494=1,_495;if(this.indeterminate){_495="addClass";dijit.removeWaiState(tip,"valuenow");dijit.removeWaiState(tip,"valuemin");dijit.removeWaiState(tip,"valuemax");}else{_495="removeClass";if(String(this.progress).indexOf("%")!=-1){_494=Math.min(parseFloat(this.progress)/100,1);this.progress=_494*this.maximum;}else{this.progress=Math.min(this.progress,this.maximum);_494=this.progress/this.maximum;}var text=this.report(_494);this.label.firstChild.nodeValue=text;dijit.setWaiState(tip,"describedby",this.label.id);dijit.setWaiState(tip,"valuenow",this.progress);dijit.setWaiState(tip,"valuemin",0);dijit.setWaiState(tip,"valuemax",this.maximum);}dojo[_495](this.domNode,"dijitProgressBarIndeterminate");tip.style.width=(_494*100)+"%";this.onChange();},report:function(_497){return dojo.number.format(_497,{type:"percent",places:this.places,locale:this.lang});},onChange:function(){}});}if(!dojo._hasResource["dijit.TitlePane"]){dojo._hasResource["dijit.TitlePane"]=true;dojo.provide("dijit.TitlePane");dojo.declare("dijit.TitlePane",[dijit.layout.ContentPane,dijit._Templated],{title:"",open:true,duration:dijit.defaultDuration,baseClass:"dijitTitlePane",templateString:"<div class=\"${baseClass}\">\n\t<div dojoAttachEvent=\"onclick:toggle, onkeypress:_onTitleKey, onfocus:_handleFocus, onblur:_handleFocus, onmouseenter:_onTitleEnter, onmouseleave:_onTitleLeave\" tabindex=\"0\"\n\t\t\twaiRole=\"button\" class=\"dijitTitlePaneTitle\" dojoAttachPoint=\"titleBarNode,focusNode\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" dojoAttachPoint=\"arrowNode\" class=\"dijitArrowNode\" waiRole=\"presentation\"\n\t\t><span dojoAttachPoint=\"arrowNodeInner\" class=\"dijitArrowNodeInner\"></span\n\t\t><span dojoAttachPoint=\"titleNode\" class=\"dijitTitlePaneTextNode\"></span>\n\t</div>\n\t<div class=\"dijitTitlePaneContentOuter\" dojoAttachPoint=\"hideNode\">\n\t\t<div class=\"dijitReset\" dojoAttachPoint=\"wipeNode\">\n\t\t\t<div class=\"dijitTitlePaneContentInner\" dojoAttachPoint=\"containerNode\" waiRole=\"region\" tabindex=\"-1\">\n\t\t\t\t<!-- nested divs because wipeIn()/wipeOut() doesn't work right on node w/padding etc.  Put padding on inner div. -->\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n",attributeMap:dojo.delegate(dijit.layout.ContentPane.prototype.attributeMap,{title:{node:"titleNode",type:"innerHTML"}}),postCreate:function(){if(!this.open){this.hideNode.style.display=this.wipeNode.style.display="none";}this._setCss();dojo.setSelectable(this.titleNode,false);dijit.setWaiState(this.containerNode,"labelledby",this.titleNode.id);dijit.setWaiState(this.focusNode,"haspopup","true");var _498=this.hideNode,_499=this.wipeNode;this._wipeIn=dojo.fx.wipeIn({node:this.wipeNode,duration:this.duration,beforeBegin:function(){_498.style.display="";}});this._wipeOut=dojo.fx.wipeOut({node:this.wipeNode,duration:this.duration,onEnd:function(){_498.style.display="none";}});this.inherited(arguments);},_setOpenAttr:function(open){if(this.open!==open){this.toggle();}},_setContentAttr:function(_49b){if(!this.open||!this._wipeOut||this._wipeOut.status()=="playing"){this.inherited(arguments);}else{if(this._wipeIn&&this._wipeIn.status()=="playing"){this._wipeIn.stop();}dojo.marginBox(this.wipeNode,{h:dojo.marginBox(this.wipeNode).h});this.inherited(arguments);if(this._wipeIn){this._wipeIn.play();}else{this.hideNode.style.display="";}}},toggle:function(){dojo.forEach([this._wipeIn,this._wipeOut],function(_49c){if(_49c&&_49c.status()=="playing"){_49c.stop();}});var anim=this[this.open?"_wipeOut":"_wipeIn"];if(anim){anim.play();}else{this.hideNode.style.display=this.open?"":"none";}this.open=!this.open;this._onShow();this._setCss();},_setCss:function(){var _49e=["dijitClosed","dijitOpen"];var _49f=this.open;var node=this.titleBarNode||this.focusNode;dojo.removeClass(node,_49e[!_49f+0]);node.className+=" "+_49e[_49f+0];this.arrowNodeInner.innerHTML=this.open?"-":"+";},_onTitleKey:function(e){if(e.charOrCode==dojo.keys.ENTER||e.charOrCode==" "){this.toggle();}else{if(e.charOrCode==dojo.keys.DOWN_ARROW&&this.open){this.containerNode.focus();e.preventDefault();}}},_onTitleEnter:function(){dojo.addClass(this.focusNode,"dijitTitlePaneTitle-hover");},_onTitleLeave:function(){dojo.removeClass(this.focusNode,"dijitTitlePaneTitle-hover");},_handleFocus:function(e){dojo[(e.type=="focus"?"addClass":"removeClass")](this.focusNode,this.baseClass+"Focused");},setTitle:function(_4a3){dojo.deprecated("dijit.TitlePane.setTitle() is deprecated.  Use attr('title', ...) instead.","","2.0");this.titleNode.innerHTML=_4a3;}});}if(!dojo._hasResource["dijit.Tooltip"]){dojo._hasResource["dijit.Tooltip"]=true;dojo.provide("dijit.Tooltip");dojo.declare("dijit._MasterTooltip",[dijit._Widget,dijit._Templated],{duration:dijit.defaultDuration,templateString:"<div class=\"dijitTooltip dijitTooltipLeft\" id=\"dojoTooltip\">\n\t<div class=\"dijitTooltipContainer dijitTooltipContents\" dojoAttachPoint=\"containerNode\" waiRole='alert'></div>\n\t<div class=\"dijitTooltipConnector\"></div>\n</div>\n",postCreate:function(){dojo.body().appendChild(this.domNode);this.bgIframe=new dijit.BackgroundIframe(this.domNode);this.fadeIn=dojo.fadeIn({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,"_onShow")});this.fadeOut=dojo.fadeOut({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,"_onHide")});},show:function(_4a4,_4a5,_4a6){if(this.aroundNode&&this.aroundNode===_4a5){return;}if(this.fadeOut.status()=="playing"){this._onDeck=arguments;return;}this.containerNode.innerHTML=_4a4;this.domNode.style.top=(this.domNode.offsetTop+1)+"px";var _4a7={};var ltr=this.isLeftToRight();dojo.forEach((_4a6&&_4a6.length)?_4a6:dijit.Tooltip.defaultPosition,function(pos){switch(pos){case "after":_4a7[ltr?"BR":"BL"]=ltr?"BL":"BR";break;case "before":_4a7[ltr?"BL":"BR"]=ltr?"BR":"BL";break;case "below":_4a7[ltr?"BL":"BR"]=ltr?"TL":"TR";_4a7[ltr?"BR":"BL"]=ltr?"TR":"TL";break;case "above":default:_4a7[ltr?"TL":"TR"]=ltr?"BL":"BR";_4a7[ltr?"TR":"TL"]=ltr?"BR":"BL";break;}});var pos=dijit.placeOnScreenAroundElement(this.domNode,_4a5,_4a7,dojo.hitch(this,"orient"));dojo.style(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=true;this.aroundNode=_4a5;},orient:function(node,_4ac,_4ad){node.className="dijitTooltip "+{"BL-TL":"dijitTooltipBelow dijitTooltipABLeft","TL-BL":"dijitTooltipAbove dijitTooltipABLeft","BR-TR":"dijitTooltipBelow dijitTooltipABRight","TR-BR":"dijitTooltipAbove dijitTooltipABRight","BR-BL":"dijitTooltipRight","BL-BR":"dijitTooltipLeft"}[_4ac+"-"+_4ad];},_onShow:function(){if(dojo.isIE){this.domNode.style.filter="";}},hide:function(_4ae){if(this._onDeck&&this._onDeck[1]==_4ae){this._onDeck=null;}else{if(this.aroundNode===_4ae){this.fadeIn.stop();this.isShowingNow=false;this.aroundNode=null;this.fadeOut.play();}else{}}},_onHide:function(){this.domNode.style.cssText="";if(this._onDeck){this.show.apply(this,this._onDeck);this._onDeck=null;}}});dijit.showTooltip=function(_4af,_4b0,_4b1){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.show(_4af,_4b0,_4b1);};dijit.hideTooltip=function(_4b2){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.hide(_4b2);};dojo.declare("dijit.Tooltip",dijit._Widget,{label:"",showDelay:400,connectId:[],position:[],_setConnectIdAttr:function(ids){this._connectNodes=[];this.connectId=dojo.isArrayLike(ids)?ids:[ids];dojo.forEach(this.connectId,function(id){var node=dojo.byId(id);if(node){this._connectNodes.push(node);dojo.forEach(["onMouseEnter","onMouseLeave","onFocus","onBlur"],function(_4b6){this.connect(node,_4b6.toLowerCase(),"_"+_4b6);},this);if(dojo.isIE){node.style.zoom=1;}}},this);},postCreate:function(){dojo.addClass(this.domNode,"dijitTooltipData");},_onMouseEnter:function(e){this._onHover(e);},_onMouseLeave:function(e){this._onUnHover(e);},_onFocus:function(e){this._focus=true;this._onHover(e);this.inherited(arguments);},_onBlur:function(e){this._focus=false;this._onUnHover(e);this.inherited(arguments);},_onHover:function(e){if(!this._showTimer){var _4bc=e.target;this._showTimer=setTimeout(dojo.hitch(this,function(){this.open(_4bc);}),this.showDelay);}},_onUnHover:function(e){if(this._focus){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}this.close();},open:function(_4be){_4be=_4be||this._connectNodes[0];if(!_4be){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}dijit.showTooltip(this.label||this.domNode.innerHTML,_4be,this.position);this._connectNode=_4be;},close:function(){if(this._connectNode){dijit.hideTooltip(this._connectNode);delete this._connectNode;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}},uninitialize:function(){this.close();}});dijit.Tooltip.defaultPosition=["after","before"];}if(!dojo._hasResource["dojo.cookie"]){dojo._hasResource["dojo.cookie"]=true;dojo.provide("dojo.cookie");dojo.cookie=function(name,_4c0,_4c1){var c=document.cookie;if(arguments.length==1){var _4c3=c.match(new RegExp("(?:^|; )"+dojo.regexp.escapeString(name)+"=([^;]*)"));return _4c3?decodeURIComponent(_4c3[1]):undefined;}else{_4c1=_4c1||{};var exp=_4c1.expires;if(typeof exp=="number"){var d=new Date();d.setTime(d.getTime()+exp*24*60*60*1000);exp=_4c1.expires=d;}if(exp&&exp.toUTCString){_4c1.expires=exp.toUTCString();}_4c0=encodeURIComponent(_4c0);var _4c6=name+"="+_4c0,_4c7;for(_4c7 in _4c1){_4c6+="; "+_4c7;var _4c8=_4c1[_4c7];if(_4c8!==true){_4c6+="="+_4c8;}}document.cookie=_4c6;}};dojo.cookie.isSupported=function(){if(!("cookieEnabled" in navigator)){this("__djCookieTest__","CookiesAllowed");navigator.cookieEnabled=this("__djCookieTest__")=="CookiesAllowed";if(navigator.cookieEnabled){this("__djCookieTest__","",{expires:-1});}}return navigator.cookieEnabled;};}if(!dojo._hasResource["dijit.tree.TreeStoreModel"]){dojo._hasResource["dijit.tree.TreeStoreModel"]=true;dojo.provide("dijit.tree.TreeStoreModel");dojo.declare("dijit.tree.TreeStoreModel",null,{store:null,childrenAttrs:["children"],labelAttr:"",root:null,query:null,constructor:function(args){dojo.mixin(this,args);this.connects=[];var _4ca=this.store;if(!_4ca.getFeatures()["dojo.data.api.Identity"]){throw new Error("dijit.Tree: store must support dojo.data.Identity");}if(_4ca.getFeatures()["dojo.data.api.Notification"]){this.connects=this.connects.concat([dojo.connect(_4ca,"onNew",this,"_onNewItem"),dojo.connect(_4ca,"onDelete",this,"_onDeleteItem"),dojo.connect(_4ca,"onSet",this,"_onSetItem")]);}},destroy:function(){dojo.forEach(this.connects,dojo.disconnect);},getRoot:function(_4cb,_4cc){if(this.root){_4cb(this.root);}else{this.store.fetch({query:this.query,onComplete:dojo.hitch(this,function(_4cd){if(_4cd.length!=1){throw new Error(this.declaredClass+": query "+dojo.toJson(this.query)+" returned "+_4cd.length+" items, but must return exactly one item");}this.root=_4cd[0];_4cb(this.root);}),onError:_4cc});}},mayHaveChildren:function(item){return dojo.some(this.childrenAttrs,function(attr){return this.store.hasAttribute(item,attr);},this);},getChildren:function(_4d0,_4d1,_4d2){var _4d3=this.store;var _4d4=[];for(var i=0;i<this.childrenAttrs.length;i++){var vals=_4d3.getValues(_4d0,this.childrenAttrs[i]);_4d4=_4d4.concat(vals);}var _4d7=0;dojo.forEach(_4d4,function(item){if(!_4d3.isItemLoaded(item)){_4d7++;}});if(_4d7==0){_4d1(_4d4);}else{var _4d9=function _4d9(item){if(--_4d7==0){_4d1(_4d4);}};dojo.forEach(_4d4,function(item){if(!_4d3.isItemLoaded(item)){_4d3.loadItem({item:item,onItem:_4d9,onError:_4d2});}});}},getIdentity:function(item){return this.store.getIdentity(item);},getLabel:function(item){if(this.labelAttr){return this.store.getValue(item,this.labelAttr);}else{return this.store.getLabel(item);}},newItem:function(args,_4df){var _4e0={parent:_4df,attribute:this.childrenAttrs[0]};return this.store.newItem(args,_4e0);},pasteItem:function(_4e1,_4e2,_4e3,_4e4,_4e5){var _4e6=this.store,_4e7=this.childrenAttrs[0];if(_4e2){dojo.forEach(this.childrenAttrs,function(attr){if(_4e6.containsValue(_4e2,attr,_4e1)){if(!_4e4){var _4e9=dojo.filter(_4e6.getValues(_4e2,attr),function(x){return x!=_4e1;});_4e6.setValues(_4e2,attr,_4e9);}_4e7=attr;}});}if(_4e3){if(typeof _4e5=="number"){var _4eb=_4e6.getValues(_4e3,_4e7);_4eb.splice(_4e5,0,_4e1);_4e6.setValues(_4e3,_4e7,_4eb);}else{_4e6.setValues(_4e3,_4e7,_4e6.getValues(_4e3,_4e7).concat(_4e1));}}},onChange:function(item){},onChildrenChange:function(_4ed,_4ee){},onDelete:function(_4ef,_4f0){},_onNewItem:function(item,_4f2){if(!_4f2){return;}this.getChildren(_4f2.item,dojo.hitch(this,function(_4f3){this.onChildrenChange(_4f2.item,_4f3);}));},_onDeleteItem:function(item){this.onDelete(item);},_onSetItem:function(item,_4f6,_4f7,_4f8){if(dojo.indexOf(this.childrenAttrs,_4f6)!=-1){this.getChildren(item,dojo.hitch(this,function(_4f9){this.onChildrenChange(item,_4f9);}));}else{this.onChange(item);}}});}if(!dojo._hasResource["dijit.tree.ForestStoreModel"]){dojo._hasResource["dijit.tree.ForestStoreModel"]=true;dojo.provide("dijit.tree.ForestStoreModel");dojo.declare("dijit.tree.ForestStoreModel",dijit.tree.TreeStoreModel,{rootId:"$root$",rootLabel:"ROOT",query:null,constructor:function(_4fa){this.root={store:this,root:true,id:_4fa.rootId,label:_4fa.rootLabel,children:_4fa.rootChildren};},mayHaveChildren:function(item){return item===this.root||this.inherited(arguments);},getChildren:function(_4fc,_4fd,_4fe){if(_4fc===this.root){if(this.root.children){_4fd(this.root.children);}else{this.store.fetch({query:this.query,onComplete:dojo.hitch(this,function(_4ff){this.root.children=_4ff;_4fd(_4ff);}),onError:_4fe});}}else{this.inherited(arguments);}},getIdentity:function(item){return (item===this.root)?this.root.id:this.inherited(arguments);},getLabel:function(item){return (item===this.root)?this.root.label:this.inherited(arguments);},newItem:function(args,_503){if(_503===this.root){this.onNewRootItem(args);return this.store.newItem(args);}else{return this.inherited(arguments);}},onNewRootItem:function(args){},pasteItem:function(_505,_506,_507,_508,_509){if(_506===this.root){if(!_508){this.onLeaveRoot(_505);}}dijit.tree.TreeStoreModel.prototype.pasteItem.call(this,_505,_506===this.root?null:_506,_507===this.root?null:_507,_508,_509);if(_507===this.root){this.onAddToRoot(_505);}},onAddToRoot:function(item){},onLeaveRoot:function(item){},_requeryTop:function(){var _50c=this.root.children||[];this.store.fetch({query:this.query,onComplete:dojo.hitch(this,function(_50d){this.root.children=_50d;if(_50c.length!=_50d.length||dojo.some(_50c,function(item,idx){return _50d[idx]!=item;})){this.onChildrenChange(this.root,_50d);}})});},_onNewItem:function(item,_511){this._requeryTop();this.inherited(arguments);},_onDeleteItem:function(item){if(dojo.indexOf(this.root.children,item)!=-1){this._requeryTop();}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.Tree"]){dojo._hasResource["dijit.Tree"]=true;dojo.provide("dijit.Tree");dojo.declare("dijit._TreeNode",[dijit._Widget,dijit._Templated,dijit._Container,dijit._Contained],{item:null,isTreeNode:true,label:"",isExpandable:null,isExpanded:false,state:"UNCHECKED",templateString:"<div class=\"dijitTreeNode\" waiRole=\"presentation\"\n\t><div dojoAttachPoint=\"rowNode\" class=\"dijitTreeRow\" waiRole=\"presentation\" dojoAttachEvent=\"onmouseenter:_onMouseEnter, onmouseleave:_onMouseLeave\"\n\t\t><img src=\"${_blankGif}\" alt=\"\" dojoAttachPoint=\"expandoNode\" class=\"dijitTreeExpando\" waiRole=\"presentation\"\n\t\t><span dojoAttachPoint=\"expandoNodeText\" class=\"dijitExpandoText\" waiRole=\"presentation\"\n\t\t></span\n\t\t><span dojoAttachPoint=\"contentNode\"\n\t\t\tclass=\"dijitTreeContent\" waiRole=\"presentation\">\n\t\t\t<img src=\"${_blankGif}\" alt=\"\" dojoAttachPoint=\"iconNode\" class=\"dijitTreeIcon\" waiRole=\"presentation\"\n\t\t\t><span dojoAttachPoint=\"labelNode\" class=\"dijitTreeLabel\" wairole=\"treeitem\" tabindex=\"-1\" waiState=\"selected-false\" dojoAttachEvent=\"onfocus:_onLabelFocus, onblur:_onLabelBlur\"></span>\n\t\t</span\n\t></div>\n\t<div dojoAttachPoint=\"containerNode\" class=\"dijitTreeContainer\" waiRole=\"presentation\" style=\"display: none;\"></div>\n</div>\n",postCreate:function(){this.setLabelNode(this.label);this._setExpando();this._updateItemClasses(this.item);if(this.isExpandable){dijit.setWaiState(this.labelNode,"expanded",this.isExpanded);if(this==this.tree.rootNode){dijit.setWaitState(this.tree.domNode,"expanded",this.isExpanded);}}},_setIndentAttr:function(_513){this.indent=_513;var _514=(Math.max(_513,0)*19)+"px";dojo.style(this.domNode,"backgroundPosition",_514+" 0px");dojo.style(this.rowNode,dojo._isBodyLtr()?"paddingLeft":"paddingRight",_514);dojo.forEach(this.getChildren(),function(_515){_515.attr("indent",_513+1);});},markProcessing:function(){this.state="LOADING";this._setExpando(true);},unmarkProcessing:function(){this._setExpando(false);},_updateItemClasses:function(item){var tree=this.tree,_518=tree.model;if(tree._v10Compat&&item===_518.root){item=null;}if(this._iconClass){dojo.removeClass(this.iconNode,this._iconClass);}this._iconClass=tree.getIconClass(item,this.isExpanded);if(this._iconClass){dojo.addClass(this.iconNode,this._iconClass);}dojo.style(this.iconNode,tree.getIconStyle(item,this.isExpanded)||{});if(this._labelClass){dojo.removeClass(this.labelNode,this._labelClass);}this._labelClass=tree.getLabelClass(item,this.isExpanded);if(this._labelClass){dojo.addClass(this.labelNode,this._labelClass);}dojo.style(this.labelNode,tree.getLabelStyle(item,this.isExpanded)||{});},_updateLayout:function(){var _519=this.getParent();if(!_519||_519.rowNode.style.display=="none"){dojo.addClass(this.domNode,"dijitTreeIsRoot");}else{dojo.toggleClass(this.domNode,"dijitTreeIsLast",!this.getNextSibling());}},_setExpando:function(_51a){var _51b=["dijitTreeExpandoLoading","dijitTreeExpandoOpened","dijitTreeExpandoClosed","dijitTreeExpandoLeaf"];var _51c=["*","-","+","*"];var idx=_51a?0:(this.isExpandable?(this.isExpanded?1:2):3);dojo.forEach(_51b,function(s){dojo.removeClass(this.expandoNode,s);},this);dojo.addClass(this.expandoNode,_51b[idx]);this.expandoNodeText.innerHTML=_51c[idx];},expand:function(){if(this.isExpanded){return;}this._wipeOut&&this._wipeOut.stop();this.isExpanded=true;dijit.setWaiState(this.labelNode,"expanded","true");dijit.setWaiRole(this.containerNode,"group");dojo.addClass(this.contentNode,"dijitTreeContentExpanded");this._setExpando();this._updateItemClasses(this.item);if(this==this.tree.rootNode){dijit.setWaiState(this.tree.domNode,"expanded","true");}if(!this._wipeIn){this._wipeIn=dojo.fx.wipeIn({node:this.containerNode,duration:dijit.defaultDuration});}this._wipeIn.play();},collapse:function(){if(!this.isExpanded){return;}this._wipeIn&&this._wipeIn.stop();this.isExpanded=false;dijit.setWaiState(this.labelNode,"expanded","false");if(this==this.tree.rootNode){dijit.setWaiState(this.tree.domNode,"expanded","false");}dojo.removeClass(this.contentNode,"dijitTreeContentExpanded");this._setExpando();this._updateItemClasses(this.item);if(!this._wipeOut){this._wipeOut=dojo.fx.wipeOut({node:this.containerNode,duration:dijit.defaultDuration});}this._wipeOut.play();},setLabelNode:function(_51f){this.labelNode.innerHTML="";this.labelNode.appendChild(dojo.doc.createTextNode(_51f));},indent:0,setChildItems:function(_520){var tree=this.tree,_522=tree.model;this.getChildren().forEach(function(_523){dijit._Container.prototype.removeChild.call(this,_523);},this);this.state="LOADED";if(_520&&_520.length>0){this.isExpandable=true;dojo.forEach(_520,function(item){var id=_522.getIdentity(item),_526=tree._itemNodeMap[id],node=(_526&&!_526.getParent())?_526:this.tree._createTreeNode({item:item,tree:tree,isExpandable:_522.mayHaveChildren(item),label:tree.getLabel(item),indent:this.indent+1});if(_526){_526.attr("indent",this.indent+1);}this.addChild(node);tree._itemNodeMap[id]=node;if(this.tree._state(item)){tree._expandNode(node);}},this);dojo.forEach(this.getChildren(),function(_528,idx){_528._updateLayout();});}else{this.isExpandable=false;}if(this._setExpando){this._setExpando(false);}if(this==tree.rootNode){var fc=this.tree.showRoot?this:this.getChildren()[0];if(fc){fc.setSelected(true);tree.lastFocused=fc;}else{tree.domNode.setAttribute("tabIndex","0");}}},removeChild:function(node){this.inherited(arguments);var _52c=this.getChildren();if(_52c.length==0){this.isExpandable=false;this.collapse();}dojo.forEach(_52c,function(_52d){_52d._updateLayout();});},makeExpandable:function(){this.isExpandable=true;this._setExpando(false);},_onLabelFocus:function(evt){dojo.addClass(this.labelNode,"dijitTreeLabelFocused");this.tree._onNodeFocus(this);},_onLabelBlur:function(evt){dojo.removeClass(this.labelNode,"dijitTreeLabelFocused");},setSelected:function(_530){var _531=this.labelNode;_531.setAttribute("tabIndex",_530?"0":"-1");dijit.setWaiState(_531,"selected",_530);dojo.toggleClass(this.rowNode,"dijitTreeNodeSelected",_530);},_onMouseEnter:function(evt){dojo.addClass(this.rowNode,"dijitTreeNodeHover");this.tree._onNodeMouseEnter(this,evt);},_onMouseLeave:function(evt){dojo.removeClass(this.rowNode,"dijitTreeNodeHover");this.tree._onNodeMouseLeave(this,evt);}});dojo.declare("dijit.Tree",[dijit._Widget,dijit._Templated],{store:null,model:null,query:null,label:"",showRoot:true,childrenAttr:["children"],openOnClick:false,openOnDblClick:false,templateString:"<div class=\"dijitTreeContainer\" waiRole=\"tree\"\n\tdojoAttachEvent=\"onclick:_onClick,onkeypress:_onKeyPress,ondblclick:_onDblClick\">\n</div>\n",isExpandable:true,isTree:true,persist:true,dndController:null,dndParams:["onDndDrop","itemCreator","onDndCancel","checkAcceptance","checkItemAcceptance","dragThreshold","betweenThreshold"],onDndDrop:null,itemCreator:null,onDndCancel:null,checkAcceptance:null,checkItemAcceptance:null,dragThreshold:0,betweenThreshold:0,_publish:function(_534,_535){dojo.publish(this.id,[dojo.mixin({tree:this,event:_534},_535||{})]);},postMixInProperties:function(){this.tree=this;this._itemNodeMap={};if(!this.cookieName){this.cookieName=this.id+"SaveStateCookie";}},postCreate:function(){this._initState();if(!this.model){this._store2model();}this.connect(this.model,"onChange","_onItemChange");this.connect(this.model,"onChildrenChange","_onItemChildrenChange");this.connect(this.model,"onDelete","_onItemDelete");this._load();this.inherited(arguments);if(this.dndController){if(dojo.isString(this.dndController)){this.dndController=dojo.getObject(this.dndController);}var _536={};for(var i=0;i<this.dndParams.length;i++){if(this[this.dndParams[i]]){_536[this.dndParams[i]]=this[this.dndParams[i]];}}this.dndController=new this.dndController(this,_536);}},_store2model:function(){this._v10Compat=true;dojo.deprecated("Tree: from version 2.0, should specify a model object rather than a store/query");var _538={id:this.id+"_ForestStoreModel",store:this.store,query:this.query,childrenAttrs:this.childrenAttr};if(this.params.mayHaveChildren){_538.mayHaveChildren=dojo.hitch(this,"mayHaveChildren");}if(this.params.getItemChildren){_538.getChildren=dojo.hitch(this,function(item,_53a,_53b){this.getItemChildren((this._v10Compat&&item===this.model.root)?null:item,_53a,_53b);});}this.model=new dijit.tree.ForestStoreModel(_538);this.showRoot=Boolean(this.label);},_load:function(){this.model.getRoot(dojo.hitch(this,function(item){var rn=this.rootNode=this.tree._createTreeNode({item:item,tree:this,isExpandable:true,label:this.label||this.getLabel(item),indent:this.showRoot?0:-1});if(!this.showRoot){rn.rowNode.style.display="none";}this.domNode.appendChild(rn.domNode);this._itemNodeMap[this.model.getIdentity(item)]=rn;rn._updateLayout();this._expandNode(rn);}),function(err){console.error(this,": error loading root: ",err);});},mayHaveChildren:function(item){},getItemChildren:function(_540,_541){},getLabel:function(item){return this.model.getLabel(item);},getIconClass:function(item,_544){return (!item||this.model.mayHaveChildren(item))?(_544?"dijitFolderOpened":"dijitFolderClosed"):"dijitLeaf";},getLabelClass:function(item,_546){},getIconStyle:function(item,_548){},getLabelStyle:function(item,_54a){},_onKeyPress:function(e){if(e.altKey){return;}var dk=dojo.keys;var _54d=dijit.getEnclosingWidget(e.target);if(!_54d){return;}var key=e.charOrCode;if(typeof key=="string"){if(!e.altKey&&!e.ctrlKey&&!e.shiftKey&&!e.metaKey){this._onLetterKeyNav({node:_54d,key:key.toLowerCase()});dojo.stopEvent(e);}}else{var map=this._keyHandlerMap;if(!map){map={};map[dk.ENTER]="_onEnterKey";map[this.isLeftToRight()?dk.LEFT_ARROW:dk.RIGHT_ARROW]="_onLeftArrow";map[this.isLeftToRight()?dk.RIGHT_ARROW:dk.LEFT_ARROW]="_onRightArrow";map[dk.UP_ARROW]="_onUpArrow";map[dk.DOWN_ARROW]="_onDownArrow";map[dk.HOME]="_onHomeKey";map[dk.END]="_onEndKey";this._keyHandlerMap=map;}if(this._keyHandlerMap[key]){this[this._keyHandlerMap[key]]({node:_54d,item:_54d.item});dojo.stopEvent(e);}}},_onEnterKey:function(_550){this._publish("execute",{item:_550.item,node:_550.node});this.onClick(_550.item,_550.node);},_onDownArrow:function(_551){var node=this._getNextNode(_551.node);if(node&&node.isTreeNode){this.focusNode(node);}},_onUpArrow:function(_553){var node=_553.node;var _555=node.getPreviousSibling();if(_555){node=_555;while(node.isExpandable&&node.isExpanded&&node.hasChildren()){var _556=node.getChildren();node=_556[_556.length-1];}}else{var _557=node.getParent();if(!(!this.showRoot&&_557===this.rootNode)){node=_557;}}if(node&&node.isTreeNode){this.focusNode(node);}},_onRightArrow:function(_558){var node=_558.node;if(node.isExpandable&&!node.isExpanded){this._expandNode(node);}else{if(node.hasChildren()){node=node.getChildren()[0];if(node&&node.isTreeNode){this.focusNode(node);}}}},_onLeftArrow:function(_55a){var node=_55a.node;if(node.isExpandable&&node.isExpanded){this._collapseNode(node);}else{var _55c=node.getParent();if(_55c&&_55c.isTreeNode&&!(!this.showRoot&&_55c===this.rootNode)){this.focusNode(_55c);}}},_onHomeKey:function(){var node=this._getRootOrFirstNode();if(node){this.focusNode(node);}},_onEndKey:function(_55e){var node=this.rootNode;while(node.isExpanded){var c=node.getChildren();node=c[c.length-1];}if(node&&node.isTreeNode){this.focusNode(node);}},_onLetterKeyNav:function(_561){var node=_561.node,_563=node,key=_561.key;do{node=this._getNextNode(node);if(!node){node=this._getRootOrFirstNode();}}while(node!==_563&&(node.label.charAt(0).toLowerCase()!=key));if(node&&node.isTreeNode){if(node!==_563){this.focusNode(node);}}},_onClick:function(e){var _566=e.target;var _567=dijit.getEnclosingWidget(_566);if(!_567||!_567.isTreeNode){return;}if((this.openOnClick&&_567.isExpandable)||(_566==_567.expandoNode||_566==_567.expandoNodeText)){if(_567.isExpandable){this._onExpandoClick({node:_567});}}else{this._publish("execute",{item:_567.item,node:_567});this.onClick(_567.item,_567);this.focusNode(_567);}dojo.stopEvent(e);},_onDblClick:function(e){var _569=e.target;var _56a=dijit.getEnclosingWidget(_569);if(!_56a||!_56a.isTreeNode){return;}if((this.openOnDblClick&&_56a.isExpandable)||(_569==_56a.expandoNode||_569==_56a.expandoNodeText)){if(_56a.isExpandable){this._onExpandoClick({node:_56a});}}else{this._publish("execute",{item:_56a.item,node:_56a});this.onDblClick(_56a.item,_56a);this.focusNode(_56a);}dojo.stopEvent(e);},_onExpandoClick:function(_56b){var node=_56b.node;this.focusNode(node);if(node.isExpanded){this._collapseNode(node);}else{this._expandNode(node);}},onClick:function(item,node){},onDblClick:function(item,node){},onOpen:function(item,node){},onClose:function(item,node){},_getNextNode:function(node){if(node.isExpandable&&node.isExpanded&&node.hasChildren()){return node.getChildren()[0];}else{while(node&&node.isTreeNode){var _576=node.getNextSibling();if(_576){return _576;}node=node.getParent();}return null;}},_getRootOrFirstNode:function(){return this.showRoot?this.rootNode:this.rootNode.getChildren()[0];},_collapseNode:function(node){if(node.isExpandable){if(node.state=="LOADING"){return;}node.collapse();this.onClose(node.item,node);if(node.item){this._state(node.item,false);this._saveState();}}},_expandNode:function(node){if(!node.isExpandable){return;}var _579=this.model,item=node.item;switch(node.state){case "LOADING":return;case "UNCHECKED":node.markProcessing();var _57b=this;_579.getChildren(item,function(_57c){node.unmarkProcessing();node.setChildItems(_57c);_57b._expandNode(node);},function(err){console.error(_57b,": error loading root children: ",err);});break;default:node.expand();this.onOpen(node.item,node);if(item){this._state(item,true);this._saveState();}}},focusNode:function(node){node.labelNode.focus();},_onNodeFocus:function(node){if(node){if(node!=this.lastFocused){this.lastFocused.setSelected(false);}node.setSelected(true);this.lastFocused=node;}},_onNodeMouseEnter:function(node){},_onNodeMouseLeave:function(node){},_onItemChange:function(item){var _583=this.model,_584=_583.getIdentity(item),node=this._itemNodeMap[_584];if(node){node.setLabelNode(this.getLabel(item));node._updateItemClasses(item);}},_onItemChildrenChange:function(_586,_587){var _588=this.model,_589=_588.getIdentity(_586),_58a=this._itemNodeMap[_589];if(_58a){_58a.setChildItems(_587);}},_onItemDelete:function(item){var _58c=this.model,_58d=_58c.getIdentity(item),node=this._itemNodeMap[_58d];if(node){var _58f=node.getParent();if(_58f){_58f.removeChild(node);}node.destroyRecursive();delete this._itemNodeMap[_58d];}},_initState:function(){if(this.persist){var _590=dojo.cookie(this.cookieName);this._openedItemIds={};if(_590){dojo.forEach(_590.split(","),function(item){this._openedItemIds[item]=true;},this);}}},_state:function(item,_593){if(!this.persist){return false;}var id=this.model.getIdentity(item);if(arguments.length===1){return this._openedItemIds[id];}if(_593){this._openedItemIds[id]=true;}else{delete this._openedItemIds[id];}},_saveState:function(){if(!this.persist){return;}var ary=[];for(var id in this._openedItemIds){ary.push(id);}dojo.cookie(this.cookieName,ary.join(","),{expires:365});},destroy:function(){if(this.rootNode){this.rootNode.destroyRecursive();}if(this.dndController&&!dojo.isString(this.dndController)){this.dndController.destroy();}this.rootNode=null;this.inherited(arguments);},destroyRecursive:function(){this.destroy();},_createTreeNode:function(args){return new dijit._TreeNode(args);}});}if(!dojo._hasResource["dijit.form.TextBox"]){dojo._hasResource["dijit.form.TextBox"]=true;dojo.provide("dijit.form.TextBox");dojo.declare("dijit.form.TextBox",dijit.form._FormValueWidget,{trim:false,uppercase:false,lowercase:false,propercase:false,maxLength:"",templateString:"<input class=\"dijit dijitReset dijitLeft\" dojoAttachPoint='textbox,focusNode'\n\tdojoAttachEvent='onmouseenter:_onMouse,onmouseleave:_onMouse'\n\tautocomplete=\"off\" type=\"${type}\" ${nameAttrSetting}\n\t/>\n",baseClass:"dijitTextBox",attributeMap:dojo.delegate(dijit.form._FormValueWidget.prototype.attributeMap,{maxLength:"focusNode"}),_getValueAttr:function(){return this.parse(this.attr("displayedValue"),this.constraints);},_setValueAttr:function(_598,_599,_59a){var _59b;if(_598!==undefined){_59b=this.filter(_598);if(typeof _59a!="string"){if(_59b!==null&&((typeof _59b!="number")||!isNaN(_59b))){_59a=this.filter(this.format(_59b,this.constraints));}else{_59a="";}}}if(_59a!=null&&_59a!=undefined&&((typeof _59a)!="number"||!isNaN(_59a))&&this.textbox.value!=_59a){this.textbox.value=_59a;}this.inherited(arguments,[_59b,_599]);},displayedValue:"",getDisplayedValue:function(){dojo.deprecated(this.declaredClass+"::getDisplayedValue() is deprecated. Use attr('displayedValue') instead.","","2.0");return this.attr("displayedValue");},_getDisplayedValueAttr:function(){return this.filter(this.textbox.value);},setDisplayedValue:function(_59c){dojo.deprecated(this.declaredClass+"::setDisplayedValue() is deprecated. Use attr('displayedValue', ...) instead.","","2.0");this.attr("displayedValue",_59c);},_setDisplayedValueAttr:function(_59d){if(_59d===null||_59d===undefined){_59d="";}else{if(typeof _59d!="string"){_59d=String(_59d);}}this.textbox.value=_59d;this._setValueAttr(this.attr("value"),undefined,_59d);},format:function(_59e,_59f){return ((_59e==null||_59e==undefined)?"":(_59e.toString?_59e.toString():_59e));},parse:function(_5a0,_5a1){return _5a0;},_refreshState:function(){},_onInput:function(e){if(e&&e.type&&/key/i.test(e.type)&&e.keyCode){switch(e.keyCode){case dojo.keys.SHIFT:case dojo.keys.ALT:case dojo.keys.CTRL:case dojo.keys.TAB:return;}}if(this.intermediateChanges){var _5a3=this;setTimeout(function(){_5a3._handleOnChange(_5a3.attr("value"),false);},0);}this._refreshState();},postCreate:function(){this.textbox.setAttribute("value",this.textbox.value);this.inherited(arguments);if(dojo.isMoz||dojo.isOpera){this.connect(this.textbox,"oninput",this._onInput);}else{this.connect(this.textbox,"onkeydown",this._onInput);this.connect(this.textbox,"onkeyup",this._onInput);this.connect(this.textbox,"onpaste",this._onInput);this.connect(this.textbox,"oncut",this._onInput);}this._layoutHack();},_blankValue:"",filter:function(val){if(val===null){return this._blankValue;}if(typeof val!="string"){return val;}if(this.trim){val=dojo.trim(val);}if(this.uppercase){val=val.toUpperCase();}if(this.lowercase){val=val.toLowerCase();}if(this.propercase){val=val.replace(/[^\s]+/g,function(word){return word.substring(0,1).toUpperCase()+word.substring(1);});}return val;},_setBlurValue:function(){this._setValueAttr(this.attr("value"),true);},_onBlur:function(e){if(this.disabled){return;}this._setBlurValue();this.inherited(arguments);},_onFocus:function(e){if(this.disabled){return;}this._refreshState();this.inherited(arguments);},reset:function(){this.textbox.value="";this.inherited(arguments);}});dijit.selectInputText=function(_5a8,_5a9,stop){var _5ab=dojo.global;var _5ac=dojo.doc;_5a8=dojo.byId(_5a8);if(isNaN(_5a9)){_5a9=0;}if(isNaN(stop)){stop=_5a8.value?_5a8.value.length:0;}_5a8.focus();if(_5ac["selection"]&&dojo.body()["createTextRange"]){if(_5a8.createTextRange){var _5ad=_5a8.createTextRange();with(_5ad){collapse(true);moveStart("character",_5a9);moveEnd("character",stop);select();}}}else{if(_5ab["getSelection"]){var _5ae=_5ab.getSelection();if(_5a8.setSelectionRange){_5a8.setSelectionRange(_5a9,stop);}}}};}if(!dojo._hasResource["dijit.InlineEditBox"]){dojo._hasResource["dijit.InlineEditBox"]=true;dojo.provide("dijit.InlineEditBox");dojo.declare("dijit.InlineEditBox",dijit._Widget,{editing:false,autoSave:true,buttonSave:"",buttonCancel:"",renderAsHtml:false,editor:"dijit.form.TextBox",editorParams:{},onChange:function(_5af){},onCancel:function(){},width:"100%",value:"",noValueIndicator:"<span style='font-family: wingdings; text-decoration: underline;'>&nbsp;&nbsp;&nbsp;&nbsp;&#x270d;&nbsp;&nbsp;&nbsp;&nbsp;</span>",constructor:function(){this.editorParams={};},postMixInProperties:function(){this.inherited(arguments);this.displayNode=this.srcNodeRef;var _5b0={ondijitclick:"_onClick",onmouseover:"_onMouseOver",onmouseout:"_onMouseOut",onfocus:"_onMouseOver",onblur:"_onMouseOut"};for(var name in _5b0){this.connect(this.displayNode,name,_5b0[name]);}dijit.setWaiRole(this.displayNode,"button");if(!this.displayNode.getAttribute("tabIndex")){this.displayNode.setAttribute("tabIndex",0);}this.attr("value",this.value||this.displayNode.innerHTML);},setDisabled:function(_5b2){dojo.deprecated("dijit.InlineEditBox.setDisabled() is deprecated.  Use attr('disabled', bool) instead.","","2.0");this.attr("disabled",_5b2);},_setDisabledAttr:function(_5b3){this.disabled=_5b3;dijit.setWaiState(this.domNode,"disabled",_5b3);},_onMouseOver:function(){dojo.addClass(this.displayNode,this.disabled?"dijitDisabledClickableRegion":"dijitClickableRegion");},_onMouseOut:function(){dojo.removeClass(this.displayNode,this.disabled?"dijitDisabledClickableRegion":"dijitClickableRegion");},_onClick:function(e){if(this.disabled){return;}if(e){dojo.stopEvent(e);}this._onMouseOut();setTimeout(dojo.hitch(this,"edit"),0);},edit:function(){if(this.disabled||this.editing){return;}this.editing=true;var _5b5=(this.renderAsHtml?this.value:this.value.replace(/\s*\r?\n\s*/g,"").replace(/<br\/?>/gi,"\n").replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&").replace(/&quot;/g,"\""));var _5b6=dojo.create("span",null,this.domNode,"before");var ew=this.editWidget=new dijit._InlineEditor({value:dojo.trim(_5b5),autoSave:this.autoSave,buttonSave:this.buttonSave,buttonCancel:this.buttonCancel,renderAsHtml:this.renderAsHtml,editor:this.editor,editorParams:this.editorParams,sourceStyle:dojo.getComputedStyle(this.displayNode),save:dojo.hitch(this,"save"),cancel:dojo.hitch(this,"cancel"),width:this.width},_5b6);var ews=ew.domNode.style;this.displayNode.style.display="none";ews.position="static";ews.visibility="visible";this.domNode=ew.domNode;setTimeout(function(){ew.focus();ew._resetValue=ew.getValue();},100);},_showText:function(_5b9){this.displayNode.style.display="";var ew=this.editWidget;var ews=ew.domNode.style;ews.position="absolute";ews.visibility="hidden";this.domNode=this.displayNode;if(_5b9){dijit.focus(this.displayNode);}ews.display="none";setTimeout(function(){ew.destroy();delete ew;if(dojo.isIE){dijit.focus(dijit.getFocus());}},1000);},save:function(_5bc){if(this.disabled||!this.editing){return;}this.editing=false;var _5bd=this.editWidget.getValue()+"";this.attr("value",this.renderAsHtml?_5bd:_5bd.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;").replace(/\n/g,"<br>"));this.onChange(_5bd);this._showText(_5bc);},setValue:function(val){dojo.deprecated("dijit.InlineEditBox.setValue() is deprecated.  Use attr('value', ...) instead.","","2.0");return this.attr("value",val);},_setValueAttr:function(val){this.value=val;this.displayNode.innerHTML=dojo.trim(val)||this.noValueIndicator;},getValue:function(){dojo.deprecated("dijit.InlineEditBox.getValue() is deprecated.  Use attr('value') instead.","","2.0");return this.attr("value");},cancel:function(_5c0){this.editing=false;this.onCancel();this._showText(_5c0);}});dojo.declare("dijit._InlineEditor",[dijit._Widget,dijit._Templated],{templateString:"<span dojoAttachPoint=\"editNode\" waiRole=\"presentation\" style=\"position: absolute; visibility:hidden\" class=\"dijitReset dijitInline\"\n\tdojoAttachEvent=\"onkeypress: _onKeyPress\" \n\t><span dojoAttachPoint=\"editorPlaceholder\"></span\n\t><span dojoAttachPoint=\"buttonContainer\"\n\t\t><button class='saveButton' dojoAttachPoint=\"saveButton\" dojoType=\"dijit.form.Button\" dojoAttachEvent=\"onClick:save\" disabled=\"true\" label=\"${buttonSave}\"></button\n\t\t><button class='cancelButton' dojoAttachPoint=\"cancelButton\" dojoType=\"dijit.form.Button\" dojoAttachEvent=\"onClick:cancel\" label=\"${buttonCancel}\"></button\n\t></span\n></span>\n",widgetsInTemplate:true,postMixInProperties:function(){this.inherited(arguments);this.messages=dojo.i18n.getLocalization("dijit","common",this.lang);dojo.forEach(["buttonSave","buttonCancel"],function(prop){if(!this[prop]){this[prop]=this.messages[prop];}},this);},postCreate:function(){var cls=dojo.getObject(this.editor);var _5c3=this.sourceStyle;var _5c4="line-height:"+_5c3.lineHeight+";";dojo.forEach(["Weight","Family","Size","Style"],function(prop){_5c4+="font-"+prop+":"+_5c3["font"+prop]+";";},this);dojo.forEach(["marginTop","marginBottom","marginLeft","marginRight"],function(prop){this.domNode.style[prop]=_5c3[prop];},this);if(this.width=="100%"){_5c4+="width:100%;";this.domNode.style.display="block";}else{_5c4+="width:"+(this.width+(Number(this.width)==this.width?"px":""))+";";}this.editorParams.style=_5c4;this.editorParams["displayedValue" in cls.prototype?"displayedValue":"value"]=this.value;var ew=this.editWidget=new cls(this.editorParams,this.editorPlaceholder);this.connect(ew,"onChange","_onChange");this.connect(ew,"onKeyPress","_onKeyPress");this.connect(ew,"onKeyUp","_onKeyPress");if(this.autoSave){this.buttonContainer.style.display="none";}},destroy:function(){this.editWidget.destroy();this.inherited(arguments);},getValue:function(){var ew=this.editWidget;return ew.attr("displayedValue" in ew?"displayedValue":"value");},_onKeyPress:function(e){if(this._exitInProgress){return;}if(this.autoSave){if(e.altKey||e.ctrlKey){return;}if(e.charOrCode==dojo.keys.ESCAPE){dojo.stopEvent(e);this._exitInProgress=true;this.cancel(true);}else{if(e.charOrCode==dojo.keys.ENTER&&this.editWidget.focusNode.tagName=="INPUT"){dojo.stopEvent(e);this._exitInProgress=true;this.save(true);}else{if(e.charOrCode===dojo.keys.TAB){this._exitInProgress=true;setTimeout(dojo.hitch(this,"save",false),0);}}}}else{var _5ca=this;setTimeout(function(){_5ca._onChange();},100);}},_onBlur:function(){this.inherited(arguments);if(this._exitInProgress){return;}if(this.autoSave){this._exitInProgress=true;if(this.getValue()==this._resetValue){this.cancel(false);}else{this.save(false);}}},_onChange:function(){if(this._exitInProgress){return;}if(this.autoSave){this._exitInProgress=true;this.save(true);}else{this.saveButton.attr("disabled",(this.getValue()==this._resetValue)||!this.enableSave());}},enableSave:function(){return this.editWidget.isValid?this.editWidget.isValid():true;},focus:function(){this.editWidget.focus();dijit.selectInputText(this.editWidget.focusNode);}});}if(!dojo._hasResource["dijit.form.CheckBox"]){dojo._hasResource["dijit.form.CheckBox"]=true;dojo.provide("dijit.form.CheckBox");dojo.declare("dijit.form.CheckBox",dijit.form.ToggleButton,{templateString:"<div class=\"dijitReset dijitInline\" waiRole=\"presentation\"\n\t><input\n\t \t${nameAttrSetting} type=\"${type}\" ${checkedAttrSetting}\n\t\tclass=\"dijitReset dijitCheckBoxInput\"\n\t\tdojoAttachPoint=\"focusNode\"\n\t \tdojoAttachEvent=\"onmouseover:_onMouse,onmouseout:_onMouse,onclick:_onClick\"\n/></div>\n",baseClass:"dijitCheckBox",type:"checkbox",value:"on",_setValueAttr:function(_5cb){if(typeof _5cb=="string"){this.value=_5cb;dojo.attr(this.focusNode,"value",_5cb);_5cb=true;}if(this._created){this.attr("checked",_5cb);}},_getValueAttr:function(){return (this.checked?this.value:false);},postMixInProperties:function(){if(this.value==""){this.value="on";}this.checkedAttrSetting=this.checked?"checked":"";this.inherited(arguments);},_fillContent:function(_5cc){},reset:function(){this._hasBeenBlurred=false;this.attr("checked",this.params.checked||false);this.value=this.params.value||"on";dojo.attr(this.focusNode,"value",this.value);},_onFocus:function(){if(this.id){dojo.query("label[for='"+this.id+"']").addClass("dijitFocusedLabel");}},_onBlur:function(){if(this.id){dojo.query("label[for='"+this.id+"']").removeClass("dijitFocusedLabel");}}});dojo.declare("dijit.form.RadioButton",dijit.form.CheckBox,{type:"radio",baseClass:"dijitRadio",_setCheckedAttr:function(_5cd){this.inherited(arguments);if(!this._created){return;}if(_5cd){var _5ce=this;dojo.query("INPUT[type=radio]",this.focusNode.form||dojo.doc).forEach(function(_5cf){if(_5cf.name==_5ce.name&&_5cf!=_5ce.focusNode&&_5cf.form==_5ce.focusNode.form){var _5d0=dijit.getEnclosingWidget(_5cf);if(_5d0&&_5d0.checked){_5d0.attr("checked",false);}}});}},_clicked:function(e){if(!this.checked){this.attr("checked",true);}}});}if(!dojo._hasResource["dijit.form.ValidationTextBox"]){dojo._hasResource["dijit.form.ValidationTextBox"]=true;dojo.provide("dijit.form.ValidationTextBox");dojo.declare("dijit.form.ValidationTextBox",dijit.form.TextBox,{templateString:"<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\n\tid=\"widget_${id}\"\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\" waiRole=\"presentation\"\n\t><div style=\"overflow:hidden;\"\n\t\t><div class=\"dijitReset dijitValidationIcon\"><br></div\n\t\t><div class=\"dijitReset dijitValidationIconText\">&Chi;</div\n\t\t><div class=\"dijitReset dijitInputField\"\n\t\t\t><input class=\"dijitReset\" dojoAttachPoint='textbox,focusNode' autocomplete=\"off\"\n\t\t\t${nameAttrSetting} type='${type}'\n\t\t/></div\n\t></div\n></div>\n",baseClass:"dijitTextBox",required:false,promptMessage:"",invalidMessage:"$_unset_$",constraints:{},regExp:".*",regExpGen:function(_5d2){return this.regExp;},state:"",tooltipPosition:[],_setValueAttr:function(){this.inherited(arguments);this.validate(this._focused);},validator:function(_5d3,_5d4){return (new RegExp("^(?:"+this.regExpGen(_5d4)+")"+(this.required?"":"?")+"$")).test(_5d3)&&(!this.required||!this._isEmpty(_5d3))&&(this._isEmpty(_5d3)||this.parse(_5d3,_5d4)!==undefined);},_isValidSubset:function(){return this.textbox.value.search(this._partialre)==0;},isValid:function(_5d5){return this.validator(this.textbox.value,this.constraints);},_isEmpty:function(_5d6){return /^\s*$/.test(_5d6);},getErrorMessage:function(_5d7){return this.invalidMessage;},getPromptMessage:function(_5d8){return this.promptMessage;},_maskValidSubsetError:true,validate:function(_5d9){var _5da="";var _5db=this.disabled||this.isValid(_5d9);if(_5db){this._maskValidSubsetError=true;}var _5dc=!_5db&&_5d9&&this._isValidSubset();var _5dd=this._isEmpty(this.textbox.value);this.state=(_5db||(!this._hasBeenBlurred&&_5dd)||_5dc)?"":"Error";if(this.state=="Error"){this._maskValidSubsetError=false;}this._setStateClass();dijit.setWaiState(this.focusNode,"invalid",_5db?"false":"true");if(_5d9){if(_5dd){_5da=this.getPromptMessage(true);}if(!_5da&&(this.state=="Error"||(_5dc&&!this._maskValidSubsetError))){_5da=this.getErrorMessage(true);}}this.displayMessage(_5da);return _5db;},_message:"",displayMessage:function(_5de){if(this._message==_5de){return;}this._message=_5de;dijit.hideTooltip(this.domNode);if(_5de){dijit.showTooltip(_5de,this.domNode,this.tooltipPosition);}},_refreshState:function(){this.validate(this._focused);this.inherited(arguments);},constructor:function(){this.constraints={};},postMixInProperties:function(){this.inherited(arguments);this.constraints.locale=this.lang;this.messages=dojo.i18n.getLocalization("dijit.form","validate",this.lang);if(this.invalidMessage=="$_unset_$"){this.invalidMessage=this.messages.invalidMessage;}var p=this.regExpGen(this.constraints);this.regExp=p;var _5e0="";if(p!=".*"){this.regExp.replace(/\\.|\[\]|\[.*?[^\\]{1}\]|\{.*?\}|\(\?[=:!]|./g,function(re){switch(re.charAt(0)){case "{":case "+":case "?":case "*":case "^":case "$":case "|":case "(":_5e0+=re;break;case ")":_5e0+="|$)";break;default:_5e0+="(?:"+re+"|$)";break;}});}try{"".search(_5e0);}catch(e){_5e0=this.regExp;console.warn("RegExp error in "+this.declaredClass+": "+this.regExp);}this._partialre="^(?:"+_5e0+")$";},_setDisabledAttr:function(_5e2){this.inherited(arguments);if(this.valueNode){this.valueNode.disabled=_5e2;}this._refreshState();},_setRequiredAttr:function(_5e3){this.required=_5e3;dijit.setWaiState(this.focusNode,"required",_5e3);this._refreshState();},postCreate:function(){if(dojo.isIE){var s=dojo.getComputedStyle(this.focusNode);if(s){var ff=s.fontFamily;if(ff){this.focusNode.style.fontFamily=ff;}}}this.inherited(arguments);},reset:function(){this._maskValidSubsetError=true;this.inherited(arguments);}});dojo.declare("dijit.form.MappedTextBox",dijit.form.ValidationTextBox,{postMixInProperties:function(){this.inherited(arguments);this.nameAttrSetting="";},serialize:function(val,_5e7){return val.toString?val.toString():"";},toString:function(){var val=this.filter(this.attr("value"));return val!=null?(typeof val=="string"?val:this.serialize(val,this.constraints)):"";},validate:function(){this.valueNode.value=this.toString();return this.inherited(arguments);},buildRendering:function(){this.inherited(arguments);this.valueNode=dojo.create("input",{style:{display:"none"},type:this.type,name:this.name},this.textbox,"after");},_setDisabledAttr:function(_5e9){this.inherited(arguments);dojo.attr(this.valueNode,"disabled",_5e9);},reset:function(){this.valueNode.value="";this.inherited(arguments);}});dojo.declare("dijit.form.RangeBoundTextBox",dijit.form.MappedTextBox,{rangeMessage:"",rangeCheck:function(_5ea,_5eb){var _5ec="min" in _5eb;var _5ed="max" in _5eb;if(_5ec||_5ed){return (!_5ec||this.compare(_5ea,_5eb.min)>=0)&&(!_5ed||this.compare(_5ea,_5eb.max)<=0);}return true;},isInRange:function(_5ee){return this.rangeCheck(this.attr("value"),this.constraints);},_isDefinitelyOutOfRange:function(){var val=this.attr("value");var _5f0=false;var _5f1=false;if("min" in this.constraints){var min=this.constraints.min;val=this.compare(val,((typeof min=="number")&&min>=0&&val!=0)?0:min);_5f0=(typeof val=="number")&&val<0;}if("max" in this.constraints){var max=this.constraints.max;val=this.compare(val,((typeof max!="number")||max>0)?max:0);_5f1=(typeof val=="number")&&val>0;}return _5f0||_5f1;},_isValidSubset:function(){return this.inherited(arguments)&&!this._isDefinitelyOutOfRange();},isValid:function(_5f4){return this.inherited(arguments)&&((this._isEmpty(this.textbox.value)&&!this.required)||this.isInRange(_5f4));},getErrorMessage:function(_5f5){if(dijit.form.RangeBoundTextBox.superclass.isValid.call(this,false)&&!this.isInRange(_5f5)){return this.rangeMessage;}return this.inherited(arguments);},postMixInProperties:function(){this.inherited(arguments);if(!this.rangeMessage){this.messages=dojo.i18n.getLocalization("dijit.form","validate",this.lang);this.rangeMessage=this.messages.rangeMessage;}},postCreate:function(){this.inherited(arguments);if(this.constraints.min!==undefined){dijit.setWaiState(this.focusNode,"valuemin",this.constraints.min);}if(this.constraints.max!==undefined){dijit.setWaiState(this.focusNode,"valuemax",this.constraints.max);}},_setValueAttr:function(_5f6,_5f7){dijit.setWaiState(this.focusNode,"valuenow",_5f6);this.inherited(arguments);}});}if(!dojo._hasResource["dojo.data.util.sorter"]){dojo._hasResource["dojo.data.util.sorter"]=true;dojo.provide("dojo.data.util.sorter");dojo.data.util.sorter.basicComparator=function(a,b){var r=-1;if(a===null){a=undefined;}if(b===null){b=undefined;}if(a==b){r=0;}else{if(a>b||a==null){r=1;}}return r;};dojo.data.util.sorter.createSortFunction=function(_5fb,_5fc){var _5fd=[];function _5fe(attr,dir){return function(_601,_602){var a=_5fc.getValue(_601,attr);var b=_5fc.getValue(_602,attr);var _605=null;if(_5fc.comparatorMap){if(typeof attr!=="string"){attr=_5fc.getIdentity(attr);}_605=_5fc.comparatorMap[attr]||dojo.data.util.sorter.basicComparator;}_605=_605||dojo.data.util.sorter.basicComparator;return dir*_605(a,b);};};var _606;for(var i=0;i<_5fb.length;i++){_606=_5fb[i];if(_606.attribute){var _608=(_606.descending)?-1:1;_5fd.push(_5fe(_606.attribute,_608));}}return function(rowA,rowB){var i=0;while(i<_5fd.length){var ret=_5fd[i++](rowA,rowB);if(ret!==0){return ret;}}return 0;};};}if(!dojo._hasResource["dojo.data.util.simpleFetch"]){dojo._hasResource["dojo.data.util.simpleFetch"]=true;dojo.provide("dojo.data.util.simpleFetch");dojo.data.util.simpleFetch.fetch=function(_60d){_60d=_60d||{};if(!_60d.store){_60d.store=this;}var self=this;var _60f=function(_610,_611){if(_611.onError){var _612=_611.scope||dojo.global;_611.onError.call(_612,_610,_611);}};var _613=function(_614,_615){var _616=_615.abort||null;var _617=false;var _618=_615.start?_615.start:0;var _619=(_615.count&&(_615.count!==Infinity))?(_618+_615.count):_614.length;_615.abort=function(){_617=true;if(_616){_616.call(_615);}};var _61a=_615.scope||dojo.global;if(!_615.store){_615.store=self;}if(_615.onBegin){_615.onBegin.call(_61a,_614.length,_615);}if(_615.sort){_614.sort(dojo.data.util.sorter.createSortFunction(_615.sort,self));}if(_615.onItem){for(var i=_618;(i<_614.length)&&(i<_619);++i){var item=_614[i];if(!_617){_615.onItem.call(_61a,item,_615);}}}if(_615.onComplete&&!_617){var _61d=null;if(!_615.onItem){_61d=_614.slice(_618,_619);}_615.onComplete.call(_61a,_61d,_615);}};this._fetchItems(_60d,_613,_60f);return _60d;};}if(!dojo._hasResource["dojo.data.util.filter"]){dojo._hasResource["dojo.data.util.filter"]=true;dojo.provide("dojo.data.util.filter");dojo.data.util.filter.patternToRegExp=function(_61e,_61f){var rxp="^";var c=null;for(var i=0;i<_61e.length;i++){c=_61e.charAt(i);switch(c){case "\\":rxp+=c;i++;rxp+=_61e.charAt(i);break;case "*":rxp+=".*";break;case "?":rxp+=".";break;case "$":case "^":case "/":case "+":case ".":case "|":case "(":case ")":case "{":case "}":case "[":case "]":rxp+="\\";default:rxp+=c;}}rxp+="$";if(_61f){return new RegExp(rxp,"mi");}else{return new RegExp(rxp,"m");}};}if(!dojo._hasResource["dijit.form.ComboBox"]){dojo._hasResource["dijit.form.ComboBox"]=true;dojo.provide("dijit.form.ComboBox");dojo.declare("dijit.form.ComboBoxMixin",null,{item:null,pageSize:Infinity,store:null,fetchProperties:{},query:{},autoComplete:true,highlightMatch:"first",searchDelay:100,searchAttr:"name",labelAttr:"",labelType:"text",queryExpr:"${0}*",ignoreCase:true,hasDownArrow:true,templateString:"<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\n\tid=\"widget_${id}\"\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\" dojoAttachPoint=\"comboNode\" waiRole=\"combobox\" tabIndex=\"-1\"\n\t><div style=\"overflow:hidden;\"\n\t\t><div class='dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton'\n\t\t\tdojoAttachPoint=\"downArrowNode\" waiRole=\"presentation\"\n\t\t\tdojoAttachEvent=\"onmousedown:_onArrowMouseDown,onmouseup:_onMouse,onmouseenter:_onMouse,onmouseleave:_onMouse\"\n\t\t\t><div class=\"dijitArrowButtonInner\">&thinsp;</div\n\t\t\t><div class=\"dijitArrowButtonChar\">&#9660;</div\n\t\t></div\n\t\t><div class=\"dijitReset dijitValidationIcon\"><br></div\n\t\t><div class=\"dijitReset dijitValidationIconText\">&Chi;</div\n\t\t><div class=\"dijitReset dijitInputField\"\n\t\t\t><input ${nameAttrSetting} type=\"text\" autocomplete=\"off\" class='dijitReset'\n\t\t\tdojoAttachEvent=\"onkeypress:_onKeyPress,compositionend\"\n\t\t\tdojoAttachPoint=\"textbox,focusNode\" waiRole=\"textbox\" waiState=\"haspopup-true,autocomplete-list\"\n\t\t/></div\n\t></div\n></div>\n",baseClass:"dijitComboBox",_getCaretPos:function(_623){var pos=0;if(typeof (_623.selectionStart)=="number"){pos=_623.selectionStart;}else{if(dojo.isIE){var tr=dojo.doc.selection.createRange().duplicate();var ntr=_623.createTextRange();tr.move("character",0);ntr.move("character",0);try{ntr.setEndPoint("EndToEnd",tr);pos=String(ntr.text).replace(/\r/g,"").length;}catch(e){}}}return pos;},_setCaretPos:function(_627,_628){_628=parseInt(_628);dijit.selectInputText(_627,_628,_628);},_setDisabledAttr:function(_629){this.inherited(arguments);dijit.setWaiState(this.comboNode,"disabled",_629);},_onKeyPress:function(evt){var key=evt.charOrCode;if(evt.altKey||(evt.ctrlKey&&(key!="x"&&key!="v"))||evt.key==dojo.keys.SHIFT){return;}var _62c=false;var pw=this._popupWidget;var dk=dojo.keys;var _62f=null;if(this._isShowingNow){pw.handleKey(key);_62f=pw.getHighlightedOption();}switch(key){case dk.PAGE_DOWN:case dk.DOWN_ARROW:if(!this._isShowingNow||this._prev_key_esc){this._arrowPressed();_62c=true;}else{if(_62f){this._announceOption(_62f);}}dojo.stopEvent(evt);this._prev_key_backspace=false;this._prev_key_esc=false;break;case dk.PAGE_UP:case dk.UP_ARROW:if(this._isShowingNow){this._announceOption(_62f);}dojo.stopEvent(evt);this._prev_key_backspace=false;this._prev_key_esc=false;break;case dk.ENTER:if(_62f){if(_62f==pw.nextButton){this._nextSearch(1);dojo.stopEvent(evt);break;}else{if(_62f==pw.previousButton){this._nextSearch(-1);dojo.stopEvent(evt);break;}}}else{this._setDisplayedValueAttr(this.attr("displayedValue"),true);}evt.preventDefault();case dk.TAB:var _630=this.attr("displayedValue");if(pw&&(_630==pw._messages["previousMessage"]||_630==pw._messages["nextMessage"])){break;}if(this._isShowingNow){this._prev_key_backspace=false;this._prev_key_esc=false;if(_62f){pw.attr("value",{target:_62f});}this._lastQuery=null;this._hideResultList();}break;case " ":this._prev_key_backspace=false;this._prev_key_esc=false;if(_62f){dojo.stopEvent(evt);this._selectOption();this._hideResultList();}else{_62c=true;}break;case dk.ESCAPE:this._prev_key_backspace=false;this._prev_key_esc=true;if(this._isShowingNow){dojo.stopEvent(evt);this._hideResultList();}break;case dk.DELETE:case dk.BACKSPACE:this._prev_key_esc=false;this._prev_key_backspace=true;_62c=true;break;case dk.RIGHT_ARROW:case dk.LEFT_ARROW:this._prev_key_backspace=false;this._prev_key_esc=false;break;default:this._prev_key_backspace=false;this._prev_key_esc=false;_62c=typeof key=="string";}if(this.searchTimer){clearTimeout(this.searchTimer);}if(_62c){setTimeout(dojo.hitch(this,"_startSearchFromInput"),1);}},_autoCompleteText:function(text){var fn=this.focusNode;dijit.selectInputText(fn,fn.value.length);var _633=this.ignoreCase?"toLowerCase":"substr";if(text[_633](0).indexOf(this.focusNode.value[_633](0))==0){var cpos=this._getCaretPos(fn);if((cpos+1)>fn.value.length){fn.value=text;dijit.selectInputText(fn,cpos);}}else{fn.value=text;dijit.selectInputText(fn);}},_openResultList:function(_635,_636){if(this.disabled||this.readOnly||(_636.query[this.searchAttr]!=this._lastQuery)){return;}this._popupWidget.clearResultList();if(!_635.length){this._hideResultList();return;}this.item=null;var _637=new String(this.store.getValue(_635[0],this.searchAttr));if(_637&&this.autoComplete&&!this._prev_key_backspace&&(_636.query[this.searchAttr]!="*")){this.item=_635[0];this._autoCompleteText(_637);}_636._maxOptions=this._maxOptions;this._popupWidget.createOptions(_635,_636,dojo.hitch(this,"_getMenuLabelFromItem"));this._showResultList();if(_636.direction){if(1==_636.direction){this._popupWidget.highlightFirstOption();}else{if(-1==_636.direction){this._popupWidget.highlightLastOption();}}this._announceOption(this._popupWidget.getHighlightedOption());}},_showResultList:function(){this._hideResultList();var _638=this._popupWidget.getItems(),_639=Math.min(_638.length,this.maxListLength);this._arrowPressed();this.displayMessage("");dojo.style(this._popupWidget.domNode,{width:"",height:""});var best=this.open();var _63b=dojo.marginBox(this._popupWidget.domNode);this._popupWidget.domNode.style.overflow=((best.h==_63b.h)&&(best.w==_63b.w))?"hidden":"auto";var _63c=best.w;if(best.h<this._popupWidget.domNode.scrollHeight){_63c+=16;}dojo.marginBox(this._popupWidget.domNode,{h:best.h,w:Math.max(_63c,this.domNode.offsetWidth)});dijit.setWaiState(this.comboNode,"expanded","true");},_hideResultList:function(){if(this._isShowingNow){dijit.popup.close(this._popupWidget);this._arrowIdle();this._isShowingNow=false;dijit.setWaiState(this.comboNode,"expanded","false");dijit.removeWaiState(this.focusNode,"activedescendant");}},_setBlurValue:function(){var _63d=this.attr("displayedValue");var pw=this._popupWidget;if(pw&&(_63d==pw._messages["previousMessage"]||_63d==pw._messages["nextMessage"])){this._setValueAttr(this._lastValueReported,true);}else{this.attr("displayedValue",_63d);}},_onBlur:function(){this._hideResultList();this._arrowIdle();this.inherited(arguments);},_announceOption:function(node){if(node==null){return;}var _640;if(node==this._popupWidget.nextButton||node==this._popupWidget.previousButton){_640=node.innerHTML;}else{_640=this.store.getValue(node.item,this.searchAttr);}this.focusNode.value=this.focusNode.value.substring(0,this._getCaretPos(this.focusNode));dijit.setWaiState(this.focusNode,"activedescendant",dojo.attr(node,"id"));this._autoCompleteText(_640);},_selectOption:function(evt){var tgt=null;if(!evt){evt={target:this._popupWidget.getHighlightedOption()};}if(!evt.target){this.attr("displayedValue",this.attr("displayedValue"));return;}else{tgt=evt.target;}if(!evt.noHide){this._hideResultList();this._setCaretPos(this.focusNode,this.store.getValue(tgt.item,this.searchAttr).length);}this._doSelect(tgt);},_doSelect:function(tgt){this.item=tgt.item;this.attr("value",this.store.getValue(tgt.item,this.searchAttr));},_onArrowMouseDown:function(evt){if(this.disabled||this.readOnly){return;}dojo.stopEvent(evt);this.focus();if(this._isShowingNow){this._hideResultList();}else{this._startSearch("");}},_startSearchFromInput:function(){this._startSearch(this.focusNode.value.replace(/([\\\*\?])/g,"\\$1"));},_getQueryString:function(text){return dojo.string.substitute(this.queryExpr,[text]);},_startSearch:function(key){if(!this._popupWidget){var _647=this.id+"_popup";this._popupWidget=new dijit.form._ComboBoxMenu({onChange:dojo.hitch(this,this._selectOption),id:_647});dijit.removeWaiState(this.focusNode,"activedescendant");dijit.setWaiState(this.textbox,"owns",_647);}this.item=null;var _648=dojo.clone(this.query);this._lastInput=key;this._lastQuery=_648[this.searchAttr]=this._getQueryString(key);this.searchTimer=setTimeout(dojo.hitch(this,function(_649,_64a){var _64b={queryOptions:{ignoreCase:this.ignoreCase,deep:true},query:_649,onBegin:dojo.hitch(this,"_setMaxOptions"),onComplete:dojo.hitch(this,"_openResultList"),onError:function(_64c){console.error("dijit.form.ComboBox: "+_64c);dojo.hitch(_64a,"_hideResultList")();},start:0,count:this.pageSize};dojo.mixin(_64b,_64a.fetchProperties);var _64d=_64a.store.fetch(_64b);var _64e=function(_64f,_650){_64f.start+=_64f.count*_650;_64f.direction=_650;this.store.fetch(_64f);};this._nextSearch=this._popupWidget.onPage=dojo.hitch(this,_64e,_64d);},_648,this),this.searchDelay);},_setMaxOptions:function(size,_652){this._maxOptions=size;},_getValueField:function(){return this.searchAttr;},_arrowPressed:function(){if(!this.disabled&&!this.readOnly&&this.hasDownArrow){dojo.addClass(this.downArrowNode,"dijitArrowButtonActive");}},_arrowIdle:function(){if(!this.disabled&&!this.readOnly&&this.hasDownArrow){dojo.removeClass(this.downArrowNode,"dojoArrowButtonPushed");}},compositionend:function(evt){this._onKeyPress({charCode:-1});},constructor:function(){this.query={};this.fetchProperties={};},postMixInProperties:function(){if(!this.hasDownArrow){this.baseClass="dijitTextBox";}if(!this.store){var _654=this.srcNodeRef;this.store=new dijit.form._ComboBoxDataStore(_654);if(!this.value||((typeof _654.selectedIndex=="number")&&_654.selectedIndex.toString()===this.value)){var item=this.store.fetchSelectedItem();if(item){this.value=this.store.getValue(item,this._getValueField());}}}this.inherited(arguments);},postCreate:function(){var _656=dojo.query("label[for=\""+this.id+"\"]");if(_656.length){_656[0].id=(this.id+"_label");var cn=this.comboNode;dijit.setWaiState(cn,"labelledby",_656[0].id);}this.inherited(arguments);},uninitialize:function(){if(this._popupWidget){this._hideResultList();this._popupWidget.destroy();}},_getMenuLabelFromItem:function(item){var _659=this.store.getValue(item,this.labelAttr||this.searchAttr);var _65a=this.labelType;if(this.highlightMatch!="none"&&this.labelType=="text"&&this._lastInput){_659=this.doHighlight(_659,this._escapeHtml(this._lastInput));_65a="html";}return {html:_65a=="html",label:_659};},doHighlight:function(_65b,find){var _65d="i"+(this.highlightMatch=="all"?"g":"");var _65e=this._escapeHtml(_65b);find=dojo.regexp.escapeString(find);var ret=_65e.replace(new RegExp("(^|\\s)("+find+")",_65d),"$1<span class=\"dijitComboBoxHighlightMatch\">$2</span>");return ret;},_escapeHtml:function(str){str=String(str).replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");return str;},open:function(){this._isShowingNow=true;return dijit.popup.open({popup:this._popupWidget,around:this.domNode,parent:this});},reset:function(){this.item=null;this.inherited(arguments);}});dojo.declare("dijit.form._ComboBoxMenu",[dijit._Widget,dijit._Templated],{templateString:"<ul class='dijitReset dijitMenu' dojoAttachEvent='onmousedown:_onMouseDown,onmouseup:_onMouseUp,onmouseover:_onMouseOver,onmouseout:_onMouseOut' tabIndex='-1' style='overflow: \"auto\"; overflow-x: \"hidden\";'>"+"<li class='dijitMenuItem dijitMenuPreviousButton' dojoAttachPoint='previousButton' waiRole='option'></li>"+"<li class='dijitMenuItem dijitMenuNextButton' dojoAttachPoint='nextButton' waiRole='option'></li>"+"</ul>",_messages:null,postMixInProperties:function(){this._messages=dojo.i18n.getLocalization("dijit.form","ComboBox",this.lang);this.inherited(arguments);},_setValueAttr:function(_661){this.value=_661;this.onChange(_661);},onChange:function(_662){},onPage:function(_663){},postCreate:function(){this.previousButton.innerHTML=this._messages["previousMessage"];this.nextButton.innerHTML=this._messages["nextMessage"];this.inherited(arguments);},onClose:function(){this._blurOptionNode();},_createOption:function(item,_665){var _666=_665(item);var _667=dojo.doc.createElement("li");dijit.setWaiRole(_667,"option");if(_666.html){_667.innerHTML=_666.label;}else{_667.appendChild(dojo.doc.createTextNode(_666.label));}if(_667.innerHTML==""){_667.innerHTML="&nbsp;";}_667.item=item;return _667;},createOptions:function(_668,_669,_66a){this.previousButton.style.display=(_669.start==0)?"none":"";dojo.attr(this.previousButton,"id",this.id+"_prev");dojo.forEach(_668,function(item,i){var _66d=this._createOption(item,_66a);_66d.className="dijitReset dijitMenuItem";dojo.attr(_66d,"id",this.id+i);this.domNode.insertBefore(_66d,this.nextButton);},this);var _66e=false;if(_669._maxOptions&&_669._maxOptions!=-1){if((_669.start+_669.count)<_669._maxOptions){_66e=true;}else{if((_669.start+_669.count)>(_669._maxOptions-1)){if(_669.count==_668.length){_66e=true;}}}}else{if(_669.count==_668.length){_66e=true;}}this.nextButton.style.display=_66e?"":"none";dojo.attr(this.nextButton,"id",this.id+"_next");},clearResultList:function(){while(this.domNode.childNodes.length>2){this.domNode.removeChild(this.domNode.childNodes[this.domNode.childNodes.length-2]);}},getItems:function(){return this.domNode.childNodes;},getListLength:function(){return this.domNode.childNodes.length-2;},_onMouseDown:function(evt){dojo.stopEvent(evt);},_onMouseUp:function(evt){if(evt.target===this.domNode){return;}else{if(evt.target==this.previousButton){this.onPage(-1);}else{if(evt.target==this.nextButton){this.onPage(1);}else{var tgt=evt.target;while(!tgt.item){tgt=tgt.parentNode;}this._setValueAttr({target:tgt},true);}}}},_onMouseOver:function(evt){if(evt.target===this.domNode){return;}var tgt=evt.target;if(!(tgt==this.previousButton||tgt==this.nextButton)){while(!tgt.item){tgt=tgt.parentNode;}}this._focusOptionNode(tgt);},_onMouseOut:function(evt){if(evt.target===this.domNode){return;}this._blurOptionNode();},_focusOptionNode:function(node){if(this._highlighted_option!=node){this._blurOptionNode();this._highlighted_option=node;dojo.addClass(this._highlighted_option,"dijitMenuItemSelected");}},_blurOptionNode:function(){if(this._highlighted_option){dojo.removeClass(this._highlighted_option,"dijitMenuItemSelected");this._highlighted_option=null;}},_highlightNextOption:function(){var fc=this.domNode.firstChild;if(!this.getHighlightedOption()){this._focusOptionNode(fc.style.display=="none"?fc.nextSibling:fc);}else{var ns=this._highlighted_option.nextSibling;if(ns&&ns.style.display!="none"){this._focusOptionNode(ns);}}dijit.scrollIntoView(this._highlighted_option);},highlightFirstOption:function(){this._focusOptionNode(this.domNode.firstChild.nextSibling);dijit.scrollIntoView(this._highlighted_option);},highlightLastOption:function(){this._focusOptionNode(this.domNode.lastChild.previousSibling);dijit.scrollIntoView(this._highlighted_option);},_highlightPrevOption:function(){var lc=this.domNode.lastChild;if(!this.getHighlightedOption()){this._focusOptionNode(lc.style.display=="none"?lc.previousSibling:lc);}else{var ps=this._highlighted_option.previousSibling;if(ps&&ps.style.display!="none"){this._focusOptionNode(ps);}}dijit.scrollIntoView(this._highlighted_option);},_page:function(up){var _67b=0;var _67c=this.domNode.scrollTop;var _67d=dojo.style(this.domNode,"height");if(!this.getHighlightedOption()){this._highlightNextOption();}while(_67b<_67d){if(up){if(!this.getHighlightedOption().previousSibling||this._highlighted_option.previousSibling.style.display=="none"){break;}this._highlightPrevOption();}else{if(!this.getHighlightedOption().nextSibling||this._highlighted_option.nextSibling.style.display=="none"){break;}this._highlightNextOption();}var _67e=this.domNode.scrollTop;_67b+=(_67e-_67c)*(up?-1:1);_67c=_67e;}},pageUp:function(){this._page(true);},pageDown:function(){this._page(false);},getHighlightedOption:function(){var ho=this._highlighted_option;return (ho&&ho.parentNode)?ho:null;},handleKey:function(key){switch(key){case dojo.keys.DOWN_ARROW:this._highlightNextOption();break;case dojo.keys.PAGE_DOWN:this.pageDown();break;case dojo.keys.UP_ARROW:this._highlightPrevOption();break;case dojo.keys.PAGE_UP:this.pageUp();break;}}});dojo.declare("dijit.form.ComboBox",[dijit.form.ValidationTextBox,dijit.form.ComboBoxMixin],{_setValueAttr:function(_681,_682){if(!_681){_681="";}dijit.form.ValidationTextBox.prototype._setValueAttr.call(this,_681,_682);}});dojo.declare("dijit.form._ComboBoxDataStore",null,{constructor:function(root){this.root=root;dojo.query("> option",root).forEach(function(node){node.innerHTML=dojo.trim(node.innerHTML);});},getValue:function(item,_686,_687){return (_686=="value")?item.value:(item.innerText||item.textContent||"");},isItemLoaded:function(_688){return true;},getFeatures:function(){return {"dojo.data.api.Read":true,"dojo.data.api.Identity":true};},_fetchItems:function(args,_68a,_68b){if(!args.query){args.query={};}if(!args.query.name){args.query.name="";}if(!args.queryOptions){args.queryOptions={};}var _68c=dojo.data.util.filter.patternToRegExp(args.query.name,args.queryOptions.ignoreCase),_68d=dojo.query("> option",this.root).filter(function(_68e){return (_68e.innerText||_68e.textContent||"").match(_68c);});if(args.sort){_68d.sort(dojo.data.util.sorter.createSortFunction(args.sort,this));}_68a(_68d,args);},close:function(_68f){return;},getLabel:function(item){return item.innerHTML;},getIdentity:function(item){return dojo.attr(item,"value");},fetchItemByIdentity:function(args){var item=dojo.query("option[value='"+args.identity+"']",this.root)[0];args.onItem(item);},fetchSelectedItem:function(){var root=this.root,si=root.selectedIndex;return dojo.query("> option:nth-child("+(si!=-1?si+1:1)+")",root)[0];}});dojo.extend(dijit.form._ComboBoxDataStore,dojo.data.util.simpleFetch);}if(!dojo._hasResource["dojo.cldr.monetary"]){dojo._hasResource["dojo.cldr.monetary"]=true;dojo.provide("dojo.cldr.monetary");dojo.cldr.monetary.getData=function(code){var _697={ADP:0,BHD:3,BIF:0,BYR:0,CLF:0,CLP:0,DJF:0,ESP:0,GNF:0,IQD:3,ITL:0,JOD:3,JPY:0,KMF:0,KRW:0,KWD:3,LUF:0,LYD:3,MGA:0,MGF:0,OMR:3,PYG:0,RWF:0,TND:3,TRL:0,VUV:0,XAF:0,XOF:0,XPF:0};var _698={CHF:5};var _699=_697[code],_69a=_698[code];if(typeof _699=="undefined"){_699=2;}if(typeof _69a=="undefined"){_69a=0;}return {places:_699,round:_69a};};}if(!dojo._hasResource["dojo.currency"]){dojo._hasResource["dojo.currency"]=true;dojo.provide("dojo.currency");dojo.currency._mixInDefaults=function(_69b){_69b=_69b||{};_69b.type="currency";var _69c=dojo.i18n.getLocalization("dojo.cldr","currency",_69b.locale)||{};var iso=_69b.currency;var data=dojo.cldr.monetary.getData(iso);dojo.forEach(["displayName","symbol","group","decimal"],function(prop){data[prop]=_69c[iso+"_"+prop];});data.fractional=[true,false];return dojo.mixin(data,_69b);};dojo.currency.format=function(_6a0,_6a1){return dojo.number.format(_6a0,dojo.currency._mixInDefaults(_6a1));};dojo.currency.regexp=function(_6a2){return dojo.number.regexp(dojo.currency._mixInDefaults(_6a2));};dojo.currency.parse=function(_6a3,_6a4){return dojo.number.parse(_6a3,dojo.currency._mixInDefaults(_6a4));};}if(!dojo._hasResource["dijit.form.NumberTextBox"]){dojo._hasResource["dijit.form.NumberTextBox"]=true;dojo.provide("dijit.form.NumberTextBox");dojo.declare("dijit.form.NumberTextBoxMixin",null,{regExpGen:dojo.number.regexp,value:NaN,editOptions:{pattern:"#.######"},_formatter:dojo.number.format,postMixInProperties:function(){if(typeof this.constraints.max!="number"){this.constraints.max=9000000000000000;}this.inherited(arguments);},_onFocus:function(){if(this.disabled){return;}var val=this.attr("value");if(typeof val=="number"&&!isNaN(val)){var _6a6=this.format(val,this.constraints);if(_6a6!==undefined){this.textbox.value=_6a6;}}this.inherited(arguments);},format:function(_6a7,_6a8){if(typeof _6a7!="number"){return String(_6a7);}if(isNaN(_6a7)){return "";}if(("rangeCheck" in this)&&!this.rangeCheck(_6a7,_6a8)){return String(_6a7);}if(this.editOptions&&this._focused){_6a8=dojo.mixin(dojo.mixin({},this.editOptions),_6a8);}return this._formatter(_6a7,_6a8);},parse:dojo.number.parse,_getDisplayedValueAttr:function(){var v=this.inherited(arguments);return isNaN(v)?this.textbox.value:v;},filter:function(_6aa){return (_6aa===null||_6aa===""||_6aa===undefined)?NaN:this.inherited(arguments);},serialize:function(_6ab,_6ac){return (typeof _6ab!="number"||isNaN(_6ab))?"":this.inherited(arguments);},_setValueAttr:function(_6ad,_6ae,_6af){if(_6ad!==undefined&&_6af===undefined){if(typeof _6ad=="number"){if(isNaN(_6ad)){_6af="";}else{if(("rangeCheck" in this)&&!this.rangeCheck(_6ad,this.constraints)){_6af=String(_6ad);}}}else{if(!_6ad){_6af="";_6ad=NaN;}else{_6af=String(_6ad);_6ad=undefined;}}}this.inherited(arguments,[_6ad,_6ae,_6af]);},_getValueAttr:function(){var v=this.inherited(arguments);if(isNaN(v)&&this.textbox.value!==""){var n=Number(this.textbox.value);return (String(n)===this.textbox.value)?n:undefined;}else{return v;}}});dojo.declare("dijit.form.NumberTextBox",[dijit.form.RangeBoundTextBox,dijit.form.NumberTextBoxMixin],{});}if(!dojo._hasResource["dijit.form.CurrencyTextBox"]){dojo._hasResource["dijit.form.CurrencyTextBox"]=true;dojo.provide("dijit.form.CurrencyTextBox");dojo.declare("dijit.form.CurrencyTextBox",dijit.form.NumberTextBox,{currency:"",regExpGen:dojo.currency.regexp,_formatter:dojo.currency.format,parse:dojo.currency.parse,postMixInProperties:function(){this.constraints.currency=this.currency;this.inherited(arguments);}});}if(!dojo._hasResource["dojo.cldr.supplemental"]){dojo._hasResource["dojo.cldr.supplemental"]=true;dojo.provide("dojo.cldr.supplemental");dojo.cldr.supplemental.getFirstDayOfWeek=function(_6b2){var _6b3={mv:5,ae:6,af:6,bh:6,dj:6,dz:6,eg:6,er:6,et:6,iq:6,ir:6,jo:6,ke:6,kw:6,lb:6,ly:6,ma:6,om:6,qa:6,sa:6,sd:6,so:6,tn:6,ye:6,as:0,au:0,az:0,bw:0,ca:0,cn:0,fo:0,ge:0,gl:0,gu:0,hk:0,ie:0,il:0,is:0,jm:0,jp:0,kg:0,kr:0,la:0,mh:0,mo:0,mp:0,mt:0,nz:0,ph:0,pk:0,sg:0,th:0,tt:0,tw:0,um:0,us:0,uz:0,vi:0,za:0,zw:0,et:0,mw:0,ng:0,tj:0,sy:4};var _6b4=dojo.cldr.supplemental._region(_6b2);var dow=_6b3[_6b4];return (dow===undefined)?1:dow;};dojo.cldr.supplemental._region=function(_6b6){_6b6=dojo.i18n.normalizeLocale(_6b6);var tags=_6b6.split("-");var _6b8=tags[1];if(!_6b8){_6b8={de:"de",en:"us",es:"es",fi:"fi",fr:"fr",he:"il",hu:"hu",it:"it",ja:"jp",ko:"kr",nl:"nl",pt:"br",sv:"se",zh:"cn"}[tags[0]];}else{if(_6b8.length==4){_6b8=tags[2];}}return _6b8;};dojo.cldr.supplemental.getWeekend=function(_6b9){var _6ba={eg:5,il:5,sy:5,"in":0,ae:4,bh:4,dz:4,iq:4,jo:4,kw:4,lb:4,ly:4,ma:4,om:4,qa:4,sa:4,sd:4,tn:4,ye:4};var _6bb={ae:5,bh:5,dz:5,iq:5,jo:5,kw:5,lb:5,ly:5,ma:5,om:5,qa:5,sa:5,sd:5,tn:5,ye:5,af:5,ir:5,eg:6,il:6,sy:6};var _6bc=dojo.cldr.supplemental._region(_6b9);var _6bd=_6ba[_6bc];var end=_6bb[_6bc];if(_6bd===undefined){_6bd=6;}if(end===undefined){end=0;}return {start:_6bd,end:end};};}if(!dojo._hasResource["dojo.date"]){dojo._hasResource["dojo.date"]=true;dojo.provide("dojo.date");dojo.date.getDaysInMonth=function(_6bf){var _6c0=_6bf.getMonth();var days=[31,28,31,30,31,30,31,31,30,31,30,31];if(_6c0==1&&dojo.date.isLeapYear(_6bf)){return 29;}return days[_6c0];};dojo.date.isLeapYear=function(_6c2){var year=_6c2.getFullYear();return !(year%400)||(!(year%4)&&!!(year%100));};dojo.date.getTimezoneName=function(_6c4){var str=_6c4.toString();var tz="";var _6c7;var pos=str.indexOf("(");if(pos>-1){tz=str.substring(++pos,str.indexOf(")"));}else{var pat=/([A-Z\/]+) \d{4}$/;if((_6c7=str.match(pat))){tz=_6c7[1];}else{str=_6c4.toLocaleString();pat=/ ([A-Z\/]+)$/;if((_6c7=str.match(pat))){tz=_6c7[1];}}}return (tz=="AM"||tz=="PM")?"":tz;};dojo.date.compare=function(_6ca,_6cb,_6cc){_6ca=new Date(Number(_6ca));_6cb=new Date(Number(_6cb||new Date()));if(_6cc!=="undefined"){if(_6cc=="date"){_6ca.setHours(0,0,0,0);_6cb.setHours(0,0,0,0);}else{if(_6cc=="time"){_6ca.setFullYear(0,0,0);_6cb.setFullYear(0,0,0);}}}if(_6ca>_6cb){return 1;}if(_6ca<_6cb){return -1;}return 0;};dojo.date.add=function(date,_6ce,_6cf){var sum=new Date(Number(date));var _6d1=false;var _6d2="Date";switch(_6ce){case "day":break;case "weekday":var days,_6d4;var mod=_6cf%5;if(!mod){days=(_6cf>0)?5:-5;_6d4=(_6cf>0)?((_6cf-5)/5):((_6cf+5)/5);}else{days=mod;_6d4=parseInt(_6cf/5);}var strt=date.getDay();var adj=0;if(strt==6&&_6cf>0){adj=1;}else{if(strt==0&&_6cf<0){adj=-1;}}var trgt=strt+days;if(trgt==0||trgt==6){adj=(_6cf>0)?2:-2;}_6cf=(7*_6d4)+days+adj;break;case "year":_6d2="FullYear";_6d1=true;break;case "week":_6cf*=7;break;case "quarter":_6cf*=3;case "month":_6d1=true;_6d2="Month";break;case "hour":case "minute":case "second":case "millisecond":_6d2="UTC"+_6ce.charAt(0).toUpperCase()+_6ce.substring(1)+"s";}if(_6d2){sum["set"+_6d2](sum["get"+_6d2]()+_6cf);}if(_6d1&&(sum.getDate()<date.getDate())){sum.setDate(0);}return sum;};dojo.date.difference=function(_6d9,_6da,_6db){_6da=_6da||new Date();_6db=_6db||"day";var _6dc=_6da.getFullYear()-_6d9.getFullYear();var _6dd=1;switch(_6db){case "quarter":var m1=_6d9.getMonth();var m2=_6da.getMonth();var q1=Math.floor(m1/3)+1;var q2=Math.floor(m2/3)+1;q2+=(_6dc*4);_6dd=q2-q1;break;case "weekday":var days=Math.round(dojo.date.difference(_6d9,_6da,"day"));var _6e3=parseInt(dojo.date.difference(_6d9,_6da,"week"));var mod=days%7;if(mod==0){days=_6e3*5;}else{var adj=0;var aDay=_6d9.getDay();var bDay=_6da.getDay();_6e3=parseInt(days/7);mod=days%7;var _6e8=new Date(_6d9);_6e8.setDate(_6e8.getDate()+(_6e3*7));var _6e9=_6e8.getDay();if(days>0){switch(true){case aDay==6:adj=-1;break;case aDay==0:adj=0;break;case bDay==6:adj=-1;break;case bDay==0:adj=-2;break;case (_6e9+mod)>5:adj=-2;}}else{if(days<0){switch(true){case aDay==6:adj=0;break;case aDay==0:adj=1;break;case bDay==6:adj=2;break;case bDay==0:adj=1;break;case (_6e9+mod)<0:adj=2;}}}days+=adj;days-=(_6e3*2);}_6dd=days;break;case "year":_6dd=_6dc;break;case "month":_6dd=(_6da.getMonth()-_6d9.getMonth())+(_6dc*12);break;case "week":_6dd=parseInt(dojo.date.difference(_6d9,_6da,"day")/7);break;case "day":_6dd/=24;case "hour":_6dd/=60;case "minute":_6dd/=60;case "second":_6dd/=1000;case "millisecond":_6dd*=_6da.getTime()-_6d9.getTime();}return Math.round(_6dd);};}if(!dojo._hasResource["dojo.date.locale"]){dojo._hasResource["dojo.date.locale"]=true;dojo.provide("dojo.date.locale");(function(){function _6ea(_6eb,_6ec,_6ed,_6ee){return _6ee.replace(/([a-z])\1*/ig,function(_6ef){var s,pad;var c=_6ef.charAt(0);var l=_6ef.length;var _6f4=["abbr","wide","narrow"];switch(c){case "G":s=_6ec[(l<4)?"eraAbbr":"eraNames"][_6eb.getFullYear()<0?0:1];break;case "y":s=_6eb.getFullYear();switch(l){case 1:break;case 2:if(!_6ed){s=String(s);s=s.substr(s.length-2);break;}default:pad=true;}break;case "Q":case "q":s=Math.ceil((_6eb.getMonth()+1)/3);pad=true;break;case "M":var m=_6eb.getMonth();if(l<3){s=m+1;pad=true;}else{var _6f6=["months","format",_6f4[l-3]].join("-");s=_6ec[_6f6][m];}break;case "w":var _6f7=0;s=dojo.date.locale._getWeekOfYear(_6eb,_6f7);pad=true;break;case "d":s=_6eb.getDate();pad=true;break;case "D":s=dojo.date.locale._getDayOfYear(_6eb);pad=true;break;case "E":var d=_6eb.getDay();if(l<3){s=d+1;pad=true;}else{var _6f9=["days","format",_6f4[l-3]].join("-");s=_6ec[_6f9][d];}break;case "a":var _6fa=(_6eb.getHours()<12)?"am":"pm";s=_6ec[_6fa];break;case "h":case "H":case "K":case "k":var h=_6eb.getHours();switch(c){case "h":s=(h%12)||12;break;case "H":s=h;break;case "K":s=(h%12);break;case "k":s=h||24;break;}pad=true;break;case "m":s=_6eb.getMinutes();pad=true;break;case "s":s=_6eb.getSeconds();pad=true;break;case "S":s=Math.round(_6eb.getMilliseconds()*Math.pow(10,l-3));pad=true;break;case "v":case "z":s=dojo.date.getTimezoneName(_6eb);if(s){break;}l=4;case "Z":var _6fc=_6eb.getTimezoneOffset();var tz=[(_6fc<=0?"+":"-"),dojo.string.pad(Math.floor(Math.abs(_6fc)/60),2),dojo.string.pad(Math.abs(_6fc)%60,2)];if(l==4){tz.splice(0,0,"GMT");tz.splice(3,0,":");}s=tz.join("");break;default:throw new Error("dojo.date.locale.format: invalid pattern char: "+_6ee);}if(pad){s=dojo.string.pad(s,l);}return s;});};dojo.date.locale.format=function(_6fe,_6ff){_6ff=_6ff||{};var _700=dojo.i18n.normalizeLocale(_6ff.locale);var _701=_6ff.formatLength||"short";var _702=dojo.date.locale._getGregorianBundle(_700);var str=[];var _704=dojo.hitch(this,_6ea,_6fe,_702,_6ff.fullYear);if(_6ff.selector=="year"){var year=_6fe.getFullYear();if(_700.match(/^zh|^ja/)){year+="年";}return year;}if(_6ff.selector!="time"){var _706=_6ff.datePattern||_702["dateFormat-"+_701];if(_706){str.push(_707(_706,_704));}}if(_6ff.selector!="date"){var _708=_6ff.timePattern||_702["timeFormat-"+_701];if(_708){str.push(_707(_708,_704));}}var _709=str.join(" ");return _709;};dojo.date.locale.regexp=function(_70a){return dojo.date.locale._parseInfo(_70a).regexp;};dojo.date.locale._parseInfo=function(_70b){_70b=_70b||{};var _70c=dojo.i18n.normalizeLocale(_70b.locale);var _70d=dojo.date.locale._getGregorianBundle(_70c);var _70e=_70b.formatLength||"short";var _70f=_70b.datePattern||_70d["dateFormat-"+_70e];var _710=_70b.timePattern||_70d["timeFormat-"+_70e];var _711;if(_70b.selector=="date"){_711=_70f;}else{if(_70b.selector=="time"){_711=_710;}else{_711=_70f+" "+_710;}}var _712=[];var re=_707(_711,dojo.hitch(this,_714,_712,_70d,_70b));return {regexp:re,tokens:_712,bundle:_70d};};dojo.date.locale.parse=function(_715,_716){var info=dojo.date.locale._parseInfo(_716);var _718=info.tokens,_719=info.bundle;var re=new RegExp("^"+info.regexp+"$",info.strict?"":"i");var _71b=re.exec(_715);if(!_71b){return null;}var _71c=["abbr","wide","narrow"];var _71d=[1970,0,1,0,0,0,0];var amPm="";var _71f=dojo.every(_71b,function(v,i){if(!i){return true;}var _722=_718[i-1];var l=_722.length;switch(_722.charAt(0)){case "y":if(l!=2&&_716.strict){_71d[0]=v;}else{if(v<100){v=Number(v);var year=""+new Date().getFullYear();var _725=year.substring(0,2)*100;var _726=Math.min(Number(year.substring(2,4))+20,99);var num=(v<_726)?_725+v:_725-100+v;_71d[0]=num;}else{if(_716.strict){return false;}_71d[0]=v;}}break;case "M":if(l>2){var _728=_719["months-format-"+_71c[l-3]].concat();if(!_716.strict){v=v.replace(".","").toLowerCase();_728=dojo.map(_728,function(s){return s.replace(".","").toLowerCase();});}v=dojo.indexOf(_728,v);if(v==-1){return false;}}else{v--;}_71d[1]=v;break;case "E":case "e":var days=_719["days-format-"+_71c[l-3]].concat();if(!_716.strict){v=v.toLowerCase();days=dojo.map(days,function(d){return d.toLowerCase();});}v=dojo.indexOf(days,v);if(v==-1){return false;}break;case "D":_71d[1]=0;case "d":_71d[2]=v;break;case "a":var am=_716.am||_719.am;var pm=_716.pm||_719.pm;if(!_716.strict){var _72e=/\./g;v=v.replace(_72e,"").toLowerCase();am=am.replace(_72e,"").toLowerCase();pm=pm.replace(_72e,"").toLowerCase();}if(_716.strict&&v!=am&&v!=pm){return false;}amPm=(v==pm)?"p":(v==am)?"a":"";break;case "K":if(v==24){v=0;}case "h":case "H":case "k":if(v>23){return false;}_71d[3]=v;break;case "m":_71d[4]=v;break;case "s":_71d[5]=v;break;case "S":_71d[6]=v;}return true;});var _72f=+_71d[3];if(amPm==="p"&&_72f<12){_71d[3]=_72f+12;}else{if(amPm==="a"&&_72f==12){_71d[3]=0;}}var _730=new Date(_71d[0],_71d[1],_71d[2],_71d[3],_71d[4],_71d[5],_71d[6]);if(_716.strict){_730.setFullYear(_71d[0]);}var _731=_718.join(""),_732=_731.indexOf("d")!=-1,_733=_731.indexOf("M")!=-1;if(!_71f||(_733&&_730.getMonth()>_71d[1])||(_732&&_730.getDate()>_71d[2])){return null;}if((_733&&_730.getMonth()<_71d[1])||(_732&&_730.getDate()<_71d[2])){_730=dojo.date.add(_730,"hour",1);}return _730;};function _707(_734,_735,_736,_737){var _738=function(x){return x;};_735=_735||_738;_736=_736||_738;_737=_737||_738;var _73a=_734.match(/(''|[^'])+/g);var _73b=_734.charAt(0)=="'";dojo.forEach(_73a,function(_73c,i){if(!_73c){_73a[i]="";}else{_73a[i]=(_73b?_736:_735)(_73c);_73b=!_73b;}});return _737(_73a.join(""));};function _714(_73e,_73f,_740,_741){_741=dojo.regexp.escapeString(_741);if(!_740.strict){_741=_741.replace(" a"," ?a");}return _741.replace(/([a-z])\1*/ig,function(_742){var s;var c=_742.charAt(0);var l=_742.length;var p2="",p3="";if(_740.strict){if(l>1){p2="0"+"{"+(l-1)+"}";}if(l>2){p3="0"+"{"+(l-2)+"}";}}else{p2="0?";p3="0{0,2}";}switch(c){case "y":s="\\d{2,4}";break;case "M":s=(l>2)?"\\S+?":p2+"[1-9]|1[0-2]";break;case "D":s=p2+"[1-9]|"+p3+"[1-9][0-9]|[12][0-9][0-9]|3[0-5][0-9]|36[0-6]";break;case "d":s="[12]\\d|"+p2+"[1-9]|3[01]";break;case "w":s=p2+"[1-9]|[1-4][0-9]|5[0-3]";break;case "E":s="\\S+";break;case "h":s=p2+"[1-9]|1[0-2]";break;case "k":s=p2+"\\d|1[01]";break;case "H":s=p2+"\\d|1\\d|2[0-3]";break;case "K":s=p2+"[1-9]|1\\d|2[0-4]";break;case "m":case "s":s="[0-5]\\d";break;case "S":s="\\d{"+l+"}";break;case "a":var am=_740.am||_73f.am||"AM";var pm=_740.pm||_73f.pm||"PM";if(_740.strict){s=am+"|"+pm;}else{s=am+"|"+pm;if(am!=am.toLowerCase()){s+="|"+am.toLowerCase();}if(pm!=pm.toLowerCase()){s+="|"+pm.toLowerCase();}if(s.indexOf(".")!=-1){s+="|"+s.replace(/\./g,"");}}s=s.replace(/\./g,"\\.");break;default:s=".*";}if(_73e){_73e.push(_742);}return "("+s+")";}).replace(/[\xa0 ]/g,"[\\s\\xa0]");};})();(function(){var _74a=[];dojo.date.locale.addCustomFormats=function(_74b,_74c){_74a.push({pkg:_74b,name:_74c});};dojo.date.locale._getGregorianBundle=function(_74d){var _74e={};dojo.forEach(_74a,function(desc){var _750=dojo.i18n.getLocalization(desc.pkg,desc.name,_74d);_74e=dojo.mixin(_74e,_750);},this);return _74e;};})();dojo.date.locale.addCustomFormats("dojo.cldr","gregorian");dojo.date.locale.getNames=function(item,type,_753,_754){var _755;var _756=dojo.date.locale._getGregorianBundle(_754);var _757=[item,_753,type];if(_753=="standAlone"){var key=_757.join("-");_755=_756[key];if(_755[0]==1){_755=undefined;}}_757[1]="format";return (_755||_756[_757.join("-")]).concat();};dojo.date.locale.isWeekend=function(_759,_75a){var _75b=dojo.cldr.supplemental.getWeekend(_75a);var day=(_759||new Date()).getDay();if(_75b.end<_75b.start){_75b.end+=7;if(day<_75b.start){day+=7;}}return day>=_75b.start&&day<=_75b.end;};dojo.date.locale._getDayOfYear=function(_75d){return dojo.date.difference(new Date(_75d.getFullYear(),0,1,_75d.getHours()),_75d)+1;};dojo.date.locale._getWeekOfYear=function(_75e,_75f){if(arguments.length==1){_75f=0;}var _760=new Date(_75e.getFullYear(),0,1).getDay();var adj=(_760-_75f+7)%7;var week=Math.floor((dojo.date.locale._getDayOfYear(_75e)+adj-1)/7);if(_760==_75f){week++;}return week;};}if(!dojo._hasResource["dijit._Calendar"]){dojo._hasResource["dijit._Calendar"]=true;dojo.provide("dijit._Calendar");dojo.declare("dijit._Calendar",[dijit._Widget,dijit._Templated],{templateString:"<table cellspacing=\"0\" cellpadding=\"0\" class=\"dijitCalendarContainer\">\n\t<thead>\n\t\t<tr class=\"dijitReset dijitCalendarMonthContainer\" valign=\"top\">\n\t\t\t<th class='dijitReset' dojoAttachPoint=\"decrementMonth\">\n\t\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitCalendarIncrementControl dijitCalendarDecrease\" waiRole=\"presentation\">\n\t\t\t\t<span dojoAttachPoint=\"decreaseArrowNode\" class=\"dijitA11ySideArrow\">-</span>\n\t\t\t</th>\n\t\t\t<th class='dijitReset' colspan=\"5\">\n\t\t\t\t<div dojoAttachPoint=\"monthLabelSpacer\" class=\"dijitCalendarMonthLabelSpacer\"></div>\n\t\t\t\t<div dojoAttachPoint=\"monthLabelNode\" class=\"dijitCalendarMonthLabel\"></div>\n\t\t\t</th>\n\t\t\t<th class='dijitReset' dojoAttachPoint=\"incrementMonth\">\n\t\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitCalendarIncrementControl dijitCalendarIncrease\" waiRole=\"presentation\">\n\t\t\t\t<span dojoAttachPoint=\"increaseArrowNode\" class=\"dijitA11ySideArrow\">+</span>\n\t\t\t</th>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<th class=\"dijitReset dijitCalendarDayLabelTemplate\"><span class=\"dijitCalendarDayLabel\"></span></th>\n\t\t</tr>\n\t</thead>\n\t<tbody dojoAttachEvent=\"onclick: _onDayClick, onmouseover: _onDayMouseOver, onmouseout: _onDayMouseOut\" class=\"dijitReset dijitCalendarBodyContainer\">\n\t\t<tr class=\"dijitReset dijitCalendarWeekTemplate\">\n\t\t\t<td class=\"dijitReset dijitCalendarDateTemplate\"><span class=\"dijitCalendarDateLabel\"></span></td>\n\t\t</tr>\n\t</tbody>\n\t<tfoot class=\"dijitReset dijitCalendarYearContainer\">\n\t\t<tr>\n\t\t\t<td class='dijitReset' valign=\"top\" colspan=\"7\">\n\t\t\t\t<h3 class=\"dijitCalendarYearLabel\">\n\t\t\t\t\t<span dojoAttachPoint=\"previousYearLabelNode\" class=\"dijitInline dijitCalendarPreviousYear\"></span>\n\t\t\t\t\t<span dojoAttachPoint=\"currentYearLabelNode\" class=\"dijitInline dijitCalendarSelectedYear\"></span>\n\t\t\t\t\t<span dojoAttachPoint=\"nextYearLabelNode\" class=\"dijitInline dijitCalendarNextYear\"></span>\n\t\t\t\t</h3>\n\t\t\t</td>\n\t\t</tr>\n\t</tfoot>\n</table>\t\n",value:new Date(),dayWidth:"narrow",setValue:function(_763){dojo.deprecated("dijit.Calendar:setValue() is deprecated.  Use attr('value', ...) instead.","","2.0");this.attr("value",_763);},_getValueAttr:function(_764){var _764=new Date(this.value);_764.setHours(0,0,0,0);if(_764.getDate()<this.value.getDate()){_764=dojo.date.add(_764,"hour",1);}return _764;},_setValueAttr:function(_765){if(!this.value||dojo.date.compare(_765,this.value)){_765=new Date(_765);_765.setHours(1);this.displayMonth=new Date(_765);if(!this.isDisabledDate(_765,this.lang)){this.value=_765;this.onChange(this.attr("value"));}this._populateGrid();}},_setText:function(node,text){while(node.firstChild){node.removeChild(node.firstChild);}node.appendChild(dojo.doc.createTextNode(text));},_populateGrid:function(){var _768=this.displayMonth;_768.setDate(1);var _769=_768.getDay();var _76a=dojo.date.getDaysInMonth(_768);var _76b=dojo.date.getDaysInMonth(dojo.date.add(_768,"month",-1));var _76c=new Date();var _76d=this.value;var _76e=dojo.cldr.supplemental.getFirstDayOfWeek(this.lang);if(_76e>_769){_76e-=7;}dojo.query(".dijitCalendarDateTemplate",this.domNode).forEach(function(_76f,i){i+=_76e;var date=new Date(_768);var _772,_773="dijitCalendar",adj=0;if(i<_769){_772=_76b-_769+i+1;adj=-1;_773+="Previous";}else{if(i>=(_769+_76a)){_772=i-_769-_76a+1;adj=1;_773+="Next";}else{_772=i-_769+1;_773+="Current";}}if(adj){date=dojo.date.add(date,"month",adj);}date.setDate(_772);if(!dojo.date.compare(date,_76c,"date")){_773="dijitCalendarCurrentDate "+_773;}if(!dojo.date.compare(date,_76d,"date")){_773="dijitCalendarSelectedDate "+_773;}if(this.isDisabledDate(date,this.lang)){_773="dijitCalendarDisabledDate "+_773;}var _775=this.getClassForDate(date,this.lang);if(_775){_773=_775+" "+_773;}_76f.className=_773+"Month dijitCalendarDateTemplate";_76f.dijitDateValue=date.valueOf();var _776=dojo.query(".dijitCalendarDateLabel",_76f)[0];this._setText(_776,date.getDate());},this);var _777=dojo.date.locale.getNames("months","wide","standAlone",this.lang);this._setText(this.monthLabelNode,_777[_768.getMonth()]);var y=_768.getFullYear()-1;var d=new Date();dojo.forEach(["previous","current","next"],function(name){d.setFullYear(y++);this._setText(this[name+"YearLabelNode"],dojo.date.locale.format(d,{selector:"year",locale:this.lang}));},this);var _77b=this;var _77c=function(_77d,_77e,adj){_77b._connects.push(dijit.typematic.addMouseListener(_77b[_77d],_77b,function(_780){if(_780>=0){_77b._adjustDisplay(_77e,adj);}},0.8,500));};_77c("incrementMonth","month",1);_77c("decrementMonth","month",-1);_77c("nextYearLabelNode","year",1);_77c("previousYearLabelNode","year",-1);},goToToday:function(){this.attr("value",new Date());},postCreate:function(){this.inherited(arguments);dojo.setSelectable(this.domNode,false);var _781=dojo.hitch(this,function(_782,n){var _784=dojo.query(_782,this.domNode)[0];for(var i=0;i<n;i++){_784.parentNode.appendChild(_784.cloneNode(true));}});_781(".dijitCalendarDayLabelTemplate",6);_781(".dijitCalendarDateTemplate",6);_781(".dijitCalendarWeekTemplate",5);var _786=dojo.date.locale.getNames("days",this.dayWidth,"standAlone",this.lang);var _787=dojo.cldr.supplemental.getFirstDayOfWeek(this.lang);dojo.query(".dijitCalendarDayLabel",this.domNode).forEach(function(_788,i){this._setText(_788,_786[(i+_787)%7]);},this);var _78a=dojo.date.locale.getNames("months","wide","standAlone",this.lang);dojo.forEach(_78a,function(name){var _78c=dojo.create("div",null,this.monthLabelSpacer);this._setText(_78c,name);},this);this.value=null;this.attr("value",new Date());},_adjustDisplay:function(part,_78e){this.displayMonth=dojo.date.add(this.displayMonth,part,_78e);this._populateGrid();},_onDayClick:function(evt){dojo.stopEvent(evt);for(var node=evt.target;node&&!node.dijitDateValue;node=node.parentNode){}if(node&&!dojo.hasClass(node,"dijitCalendarDisabledDate")){this.attr("value",node.dijitDateValue);this.onValueSelected(this.attr("value"));}},_onDayMouseOver:function(evt){var node=evt.target;if(node&&(node.dijitDateValue||node==this.previousYearLabelNode||node==this.nextYearLabelNode)){dojo.addClass(node,"dijitCalendarHoveredDate");this._currentNode=node;}},_onDayMouseOut:function(evt){if(!this._currentNode){return;}for(var node=evt.relatedTarget;node;){if(node==this._currentNode){return;}try{node=node.parentNode;}catch(x){node=null;}}dojo.removeClass(this._currentNode,"dijitCalendarHoveredDate");this._currentNode=null;},onValueSelected:function(date){},onChange:function(date){},isDisabledDate:function(_797,_798){},getClassForDate:function(_799,_79a){}});}if(!dojo._hasResource["dijit.form._DateTimeTextBox"]){dojo._hasResource["dijit.form._DateTimeTextBox"]=true;dojo.provide("dijit.form._DateTimeTextBox");dojo.declare("dijit.form._DateTimeTextBox",dijit.form.RangeBoundTextBox,{regExpGen:dojo.date.locale.regexp,compare:dojo.date.compare,format:function(_79b,_79c){if(!_79b){return "";}return dojo.date.locale.format(_79b,_79c);},parse:function(_79d,_79e){return dojo.date.locale.parse(_79d,_79e)||(this._isEmpty(_79d)?null:undefined);},serialize:dojo.date.stamp.toISOString,value:new Date(""),_blankValue:null,popupClass:"",_selector:"",postMixInProperties:function(){this.inherited(arguments);if(!this.value||this.value.toString()==dijit.form._DateTimeTextBox.prototype.value.toString()){this.value=null;}var _79f=this.constraints;_79f.selector=this._selector;_79f.fullYear=true;var _7a0=dojo.date.stamp.fromISOString;if(typeof _79f.min=="string"){_79f.min=_7a0(_79f.min);}if(typeof _79f.max=="string"){_79f.max=_7a0(_79f.max);}},_onFocus:function(evt){this._open();},_setValueAttr:function(_7a2,_7a3,_7a4){this.inherited(arguments);if(this._picker){if(!_7a2){_7a2=new Date();}this._picker.attr("value",_7a2);}},_open:function(){if(this.disabled||this.readOnly||!this.popupClass){return;}var _7a5=this;if(!this._picker){var _7a6=dojo.getObject(this.popupClass,false);this._picker=new _7a6({onValueSelected:function(_7a7){if(_7a5._tabbingAway){delete _7a5._tabbingAway;}else{_7a5.focus();}setTimeout(dojo.hitch(_7a5,"_close"),1);dijit.form._DateTimeTextBox.superclass._setValueAttr.call(_7a5,_7a7,true);},lang:_7a5.lang,constraints:_7a5.constraints,isDisabledDate:function(date){var _7a9=dojo.date.compare;var _7aa=_7a5.constraints;return _7aa&&(_7aa.min&&(_7a9(_7aa.min,date,"date")>0)||(_7aa.max&&_7a9(_7aa.max,date,"date")<0));}});this._picker.attr("value",this.attr("value")||new Date());}if(!this._opened){dijit.popup.open({parent:this,popup:this._picker,around:this.domNode,onCancel:dojo.hitch(this,this._close),onClose:function(){_7a5._opened=false;}});this._opened=true;}dojo.marginBox(this._picker.domNode,{w:this.domNode.offsetWidth});},_close:function(){if(this._opened){dijit.popup.close(this._picker);this._opened=false;}},_onBlur:function(){this._close();if(this._picker){this._picker.destroy();delete this._picker;}this.inherited(arguments);},_getDisplayedValueAttr:function(){return this.textbox.value;},_setDisplayedValueAttr:function(_7ab,_7ac){this._setValueAttr(this.parse(_7ab,this.constraints),_7ac,_7ab);},destroy:function(){if(this._picker){this._picker.destroy();delete this._picker;}this.inherited(arguments);},postCreate:function(){this.inherited(arguments);this.connect(this.focusNode,"onkeypress",this._onKeyPress);},_onKeyPress:function(e){var p=this._picker,dk=dojo.keys;if(p&&this._opened&&p.handleKey){if(p.handleKey(e)===false){return;}}if(this._opened&&e.charOrCode==dk.ESCAPE&&!e.shiftKey&&!e.ctrlKey&&!e.altKey){this._close();dojo.stopEvent(e);}else{if(!this._opened&&e.charOrCode==dk.DOWN_ARROW){this._open();dojo.stopEvent(e);}else{if(e.charOrCode===dk.TAB){this._tabbingAway=true;}else{if(this._opened&&(e.keyChar||e.charOrCode===dk.BACKSPACE||e.charOrCode==dk.DELETE)){setTimeout(dojo.hitch(this,function(){dijit.placeOnScreenAroundElement(p.domNode.parentNode,this.domNode,{"BL":"TL","TL":"BL"},p.orient?dojo.hitch(p,"orient"):null);}),1);}}}}}});}if(!dojo._hasResource["dijit.form.DateTextBox"]){dojo._hasResource["dijit.form.DateTextBox"]=true;dojo.provide("dijit.form.DateTextBox");dojo.declare("dijit.form.DateTextBox",dijit.form._DateTimeTextBox,{baseClass:"dijitTextBox dijitDateTextBox",popupClass:"dijit._Calendar",_selector:"date",value:new Date("")});}if(!dojo._hasResource["dijit.form.FilteringSelect"]){dojo._hasResource["dijit.form.FilteringSelect"]=true;dojo.provide("dijit.form.FilteringSelect");dojo.declare("dijit.form.FilteringSelect",[dijit.form.MappedTextBox,dijit.form.ComboBoxMixin],{_isvalid:true,required:true,_lastDisplayedValue:"",isValid:function(){return this._isvalid||(!this.required&&this.attr("displayedValue")=="");},_callbackSetLabel:function(_7b0,_7b1,_7b2){if((_7b1&&_7b1.query[this.searchAttr]!=this._lastQuery)||(!_7b1&&_7b0.length&&this.store.getIdentity(_7b0[0])!=this._lastQuery)){return;}if(!_7b0.length){this.valueNode.value="";dijit.form.TextBox.superclass._setValueAttr.call(this,"",_7b2||(_7b2===undefined&&!this._focused));this._isvalid=false;this.validate(this._focused);this.item=null;}else{this._setValueFromItem(_7b0[0],_7b2);}},_openResultList:function(_7b3,_7b4){if(_7b4.query[this.searchAttr]!=this._lastQuery){return;}this._isvalid=_7b3.length!=0;this.validate(true);dijit.form.ComboBoxMixin.prototype._openResultList.apply(this,arguments);},_getValueAttr:function(){return this.valueNode.value;},_getValueField:function(){return "value";},_setValue:function(_7b5,_7b6,_7b7){this.valueNode.value=_7b5;dijit.form.FilteringSelect.superclass._setValueAttr.call(this,_7b5,_7b7,_7b6);this._lastDisplayedValue=_7b6;},_setValueAttr:function(_7b8,_7b9){if(!this._onChangeActive){_7b9=null;}this._lastQuery=_7b8;if(_7b8===null||_7b8===""){this._setDisplayedValueAttr("",_7b9);return;}var self=this;var _7bb=function(item,_7bd){if(item){if(self.store.isItemLoaded(item)){self._callbackSetLabel([item],undefined,_7bd);}else{self.store.loadItem({item:item,onItem:function(_7be,_7bf){self._callbackSetLabel(_7be,_7bf,_7bd);}});}}else{self._isvalid=false;self.validate(false);}};this.store.fetchItemByIdentity({identity:_7b8,onItem:function(item){_7bb(item,_7b9);}});},_setValueFromItem:function(item,_7c2){this._isvalid=true;this.item=item;this._setValue(this.store.getIdentity(item),this.labelFunc(item,this.store),_7c2);},labelFunc:function(item,_7c4){return _7c4.getValue(item,this.searchAttr);},_doSelect:function(tgt){this._setValueFromItem(tgt.item,true);},_setDisplayedValueAttr:function(_7c6,_7c7){if(!this._created){_7c7=false;}if(this.store){var _7c8=dojo.clone(this.query);this._lastQuery=_7c8[this.searchAttr]=_7c6.replace(/([\\\*\?])/g,"\\$1");this.textbox.value=_7c6;this._lastDisplayedValue=_7c6;var _7c9=this;var _7ca={query:_7c8,queryOptions:{ignoreCase:this.ignoreCase,deep:true},onComplete:function(_7cb,_7cc){dojo.hitch(_7c9,"_callbackSetLabel")(_7cb,_7cc,_7c7);},onError:function(_7cd){console.error("dijit.form.FilteringSelect: "+_7cd);dojo.hitch(_7c9,"_setValue")("",_7c6,false);}};dojo.mixin(_7ca,this.fetchProperties);this.store.fetch(_7ca);}},postMixInProperties:function(){this.inherited(arguments);this._isvalid=!this.required;},undo:function(){this.attr("displayedValue",this._lastDisplayedValue);}});}if(!dojo._hasResource["dijit.form._Spinner"]){dojo._hasResource["dijit.form._Spinner"]=true;dojo.provide("dijit.form._Spinner");dojo.declare("dijit.form._Spinner",dijit.form.RangeBoundTextBox,{defaultTimeout:500,timeoutChangeRate:0.9,smallDelta:1,largeDelta:10,templateString:"<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\n\tid=\"widget_${id}\"\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\" waiRole=\"presentation\"\n\t><div class=\"dijitInputLayoutContainer\"\n\t\t><div class=\"dijitReset dijitSpinnerButtonContainer\"\n\t\t\t>&nbsp;<div class=\"dijitReset dijitLeft dijitButtonNode dijitArrowButton dijitUpArrowButton\"\n\t\t\t\tdojoAttachPoint=\"upArrowNode\"\n\t\t\t\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse\"\n\t\t\t\tstateModifier=\"UpArrow\"\n\t\t\t\t><div class=\"dijitArrowButtonInner\">&thinsp;</div\n\t\t\t\t><div class=\"dijitArrowButtonChar\">&#9650;</div\n\t\t\t></div\n\t\t\t><div class=\"dijitReset dijitLeft dijitButtonNode dijitArrowButton dijitDownArrowButton\"\n\t\t\t\tdojoAttachPoint=\"downArrowNode\"\n\t\t\t\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse\"\n\t\t\t\tstateModifier=\"DownArrow\"\n\t\t\t\t><div class=\"dijitArrowButtonInner\">&thinsp;</div\n\t\t\t\t><div class=\"dijitArrowButtonChar\">&#9660;</div\n\t\t\t></div\n\t\t></div\n\t\t><div class=\"dijitReset dijitValidationIcon\"><br></div\n\t\t><div class=\"dijitReset dijitValidationIconText\">&Chi;</div\n\t\t><div class=\"dijitReset dijitInputField\"\n\t\t\t><input class='dijitReset' dojoAttachPoint=\"textbox,focusNode\" type=\"${type}\" dojoAttachEvent=\"onkeypress:_onKeyPress\"\n\t\t\t\twaiRole=\"spinbutton\" autocomplete=\"off\" ${nameAttrSetting}\n\t\t/></div\n\t></div\n></div>\n",baseClass:"dijitSpinner",adjust:function(val,_7cf){return val;},_arrowState:function(node,_7d1){this._active=_7d1;this.stateModifier=node.getAttribute("stateModifier")||"";this._setStateClass();},_arrowPressed:function(_7d2,_7d3,_7d4){if(this.disabled||this.readOnly){return;}this._arrowState(_7d2,true);this._setValueAttr(this.adjust(this.attr("value"),_7d3*_7d4),false);dijit.selectInputText(this.textbox,this.textbox.value.length);},_arrowReleased:function(node){this._wheelTimer=null;if(this.disabled||this.readOnly){return;}this._arrowState(node,false);},_typematicCallback:function(_7d6,node,evt){var inc=this.smallDelta;if(node==this.textbox){var k=dojo.keys;var key=evt.charOrCode;inc=(key==k.PAGE_UP||key==k.PAGE_DOWN)?this.largeDelta:this.smallDelta;node=(key==k.UP_ARROW||key==k.PAGE_UP)?this.upArrowNode:this.downArrowNode;}if(_7d6==-1){this._arrowReleased(node);}else{this._arrowPressed(node,(node==this.upArrowNode)?1:-1,inc);}},_wheelTimer:null,_mouseWheeled:function(evt){dojo.stopEvent(evt);var _7dd=evt.detail?(evt.detail*-1):(evt.wheelDelta/120);if(_7dd!==0){var node=this[(_7dd>0?"upArrowNode":"downArrowNode")];this._arrowPressed(node,_7dd,this.smallDelta);if(!this._wheelTimer){clearTimeout(this._wheelTimer);}this._wheelTimer=setTimeout(dojo.hitch(this,"_arrowReleased",node),50);}},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,!dojo.isMozilla?"onmousewheel":"DOMMouseScroll","_mouseWheeled");this._connects.push(dijit.typematic.addListener(this.upArrowNode,this.textbox,{charOrCode:dojo.keys.UP_ARROW,ctrlKey:false,altKey:false,shiftKey:false},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout));this._connects.push(dijit.typematic.addListener(this.downArrowNode,this.textbox,{charOrCode:dojo.keys.DOWN_ARROW,ctrlKey:false,altKey:false,shiftKey:false},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout));this._connects.push(dijit.typematic.addListener(this.upArrowNode,this.textbox,{charOrCode:dojo.keys.PAGE_UP,ctrlKey:false,altKey:false,shiftKey:false},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout));this._connects.push(dijit.typematic.addListener(this.downArrowNode,this.textbox,{charOrCode:dojo.keys.PAGE_DOWN,ctrlKey:false,altKey:false,shiftKey:false},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout));if(dojo.isIE){var _7df=this;this.connect(this.domNode,"onresize",function(){setTimeout(dojo.hitch(_7df,function(){var sz=this.upArrowNode.parentNode.offsetHeight;if(sz){this.upArrowNode.style.height=sz>>1;this.downArrowNode.style.height=sz-(sz>>1);this.focusNode.parentNode.style.height=sz;}this._setStateClass();}),0);});}}});}if(!dojo._hasResource["dijit.form.NumberSpinner"]){dojo._hasResource["dijit.form.NumberSpinner"]=true;dojo.provide("dijit.form.NumberSpinner");dojo.declare("dijit.form.NumberSpinner",[dijit.form._Spinner,dijit.form.NumberTextBoxMixin],{required:true,adjust:function(val,_7e2){var tc=this.constraints,v=isNaN(val),_7e5=!isNaN(tc.max),_7e6=!isNaN(tc.min);if(v&&_7e2!=0){val=(_7e2>0)?_7e6?tc.min:_7e5?tc.max:0:_7e5?this.constraints.max:_7e6?tc.min:0;}var _7e7=val+_7e2;if(v||isNaN(_7e7)){return val;}if(_7e5&&(_7e7>tc.max)){_7e7=tc.max;}if(_7e6&&(_7e7<tc.min)){_7e7=tc.min;}return _7e7;},_onKeyPress:function(e){if((e.charOrCode==dojo.keys.HOME||e.charOrCode==dojo.keys.END)&&!e.ctrlKey&&!e.altKey){var _7e9=this.constraints[(e.charOrCode==dojo.keys.HOME?"min":"max")];if(_7e9){this._setValueAttr(_7e9,true);}dojo.stopEvent(e);}}});}if(!dojo._hasResource["dijit.form.HorizontalSlider"]){dojo._hasResource["dijit.form.HorizontalSlider"]=true;dojo.provide("dijit.form.HorizontalSlider");dojo.declare("dijit.form.HorizontalSlider",[dijit.form._FormValueWidget,dijit._Container],{templateString:"<table class=\"dijit dijitReset dijitSlider\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" rules=\"none\" dojoAttachEvent=\"onkeypress:_onKeyPress\"\n\t><tr class=\"dijitReset\"\n\t\t><td class=\"dijitReset\" colspan=\"2\"></td\n\t\t><td dojoAttachPoint=\"containerNode,topDecoration\" class=\"dijitReset\" style=\"text-align:center;width:100%;\"></td\n\t\t><td class=\"dijitReset\" colspan=\"2\"></td\n\t></tr\n\t><tr class=\"dijitReset\"\n\t\t><td class=\"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerH\"\n\t\t\t><div class=\"dijitSliderDecrementIconH\" tabIndex=\"-1\" style=\"display:none\" dojoAttachPoint=\"decrementButton\"><span class=\"dijitSliderButtonInner\">-</span></div\n\t\t></td\n\t\t><td class=\"dijitReset\"\n\t\t\t><div class=\"dijitSliderBar dijitSliderBumper dijitSliderBumperH dijitSliderLeftBumper dijitSliderLeftBumper\" dojoAttachEvent=\"onmousedown:_onClkDecBumper\"></div\n\t\t></td\n\t\t><td class=\"dijitReset\"\n\t\t\t><input dojoAttachPoint=\"valueNode\" type=\"hidden\" ${nameAttrSetting}\n\t\t\t/><div class=\"dijitReset dijitSliderBarContainerH\" waiRole=\"presentation\" dojoAttachPoint=\"sliderBarContainer\"\n\t\t\t\t><div waiRole=\"presentation\" dojoAttachPoint=\"progressBar\" class=\"dijitSliderBar dijitSliderBarH dijitSliderProgressBar dijitSliderProgressBarH\" dojoAttachEvent=\"onmousedown:_onBarClick\"\n\t\t\t\t\t><div class=\"dijitSliderMoveable dijitSliderMoveableH\" \n\t\t\t\t\t\t><div dojoAttachPoint=\"sliderHandle,focusNode\" class=\"dijitSliderImageHandle dijitSliderImageHandleH\" dojoAttachEvent=\"onmousedown:_onHandleClick\" waiRole=\"slider\" valuemin=\"${minimum}\" valuemax=\"${maximum}\"></div\n\t\t\t\t\t></div\n\t\t\t\t></div\n\t\t\t\t><div waiRole=\"presentation\" dojoAttachPoint=\"remainingBar\" class=\"dijitSliderBar dijitSliderBarH dijitSliderRemainingBar dijitSliderRemainingBarH\" dojoAttachEvent=\"onmousedown:_onBarClick\"></div\n\t\t\t></div\n\t\t></td\n\t\t><td class=\"dijitReset\"\n\t\t\t><div class=\"dijitSliderBar dijitSliderBumper dijitSliderBumperH dijitSliderRightBumper dijitSliderRightBumper\" dojoAttachEvent=\"onmousedown:_onClkIncBumper\"></div\n\t\t></td\n\t\t><td class=\"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerH\" style=\"right:0px;\"\n\t\t\t><div class=\"dijitSliderIncrementIconH\" tabIndex=\"-1\" style=\"display:none\" dojoAttachPoint=\"incrementButton\"><span class=\"dijitSliderButtonInner\">+</span></div\n\t\t></td\n\t></tr\n\t><tr class=\"dijitReset\"\n\t\t><td class=\"dijitReset\" colspan=\"2\"></td\n\t\t><td dojoAttachPoint=\"containerNode,bottomDecoration\" class=\"dijitReset\" style=\"text-align:center;\"></td\n\t\t><td class=\"dijitReset\" colspan=\"2\"></td\n\t></tr\n></table>\n",value:0,showButtons:true,minimum:0,maximum:100,discreteValues:Infinity,pageIncrement:2,clickSelect:true,slideDuration:dijit.defaultDuration,widgetsInTemplate:true,attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{id:""}),baseClass:"dijitSlider",_mousePixelCoord:"pageX",_pixelCount:"w",_startingPixelCoord:"x",_startingPixelCount:"l",_handleOffsetCoord:"left",_progressPixelSize:"width",_onKeyPress:function(e){if(this.disabled||this.readOnly||e.altKey||e.ctrlKey){return;}switch(e.charOrCode){case dojo.keys.HOME:this._setValueAttr(this.minimum,true);break;case dojo.keys.END:this._setValueAttr(this.maximum,true);break;case ((this._descending||this.isLeftToRight())?dojo.keys.RIGHT_ARROW:dojo.keys.LEFT_ARROW):case (this._descending===false?dojo.keys.DOWN_ARROW:dojo.keys.UP_ARROW):case (this._descending===false?dojo.keys.PAGE_DOWN:dojo.keys.PAGE_UP):this.increment(e);break;case ((this._descending||this.isLeftToRight())?dojo.keys.LEFT_ARROW:dojo.keys.RIGHT_ARROW):case (this._descending===false?dojo.keys.UP_ARROW:dojo.keys.DOWN_ARROW):case (this._descending===false?dojo.keys.PAGE_UP:dojo.keys.PAGE_DOWN):this.decrement(e);break;default:return;}dojo.stopEvent(e);},_onHandleClick:function(e){if(this.disabled||this.readOnly){return;}if(!dojo.isIE){dijit.focus(this.sliderHandle);}dojo.stopEvent(e);},_isReversed:function(){return !this.isLeftToRight();},_onBarClick:function(e){if(this.disabled||this.readOnly||!this.clickSelect){return;}dijit.focus(this.sliderHandle);dojo.stopEvent(e);var _7ed=dojo.coords(this.sliderBarContainer,true);var _7ee=e[this._mousePixelCoord]-_7ed[this._startingPixelCoord];this._setPixelValue(this._isReversed()?(_7ed[this._pixelCount]-_7ee):_7ee,_7ed[this._pixelCount],true);this._movable.onMouseDown(e);},_setPixelValue:function(_7ef,_7f0,_7f1){if(this.disabled||this.readOnly){return;}_7ef=_7ef<0?0:_7f0<_7ef?_7f0:_7ef;var _7f2=this.discreteValues;if(_7f2<=1||_7f2==Infinity){_7f2=_7f0;}_7f2--;var _7f3=_7f0/_7f2;var _7f4=Math.round(_7ef/_7f3);this._setValueAttr((this.maximum-this.minimum)*_7f4/_7f2+this.minimum,_7f1);},_setValueAttr:function(_7f5,_7f6){this.valueNode.value=this.value=_7f5;dijit.setWaiState(this.focusNode,"valuenow",_7f5);this.inherited(arguments);var _7f7=(_7f5-this.minimum)/(this.maximum-this.minimum);var _7f8=(this._descending===false)?this.remainingBar:this.progressBar;var _7f9=(this._descending===false)?this.progressBar:this.remainingBar;if(this._inProgressAnim&&this._inProgressAnim.status!="stopped"){this._inProgressAnim.stop(true);}if(_7f6&&this.slideDuration>0&&_7f8.style[this._progressPixelSize]){var _7fa=this;var _7fb={};var _7fc=parseFloat(_7f8.style[this._progressPixelSize]);var _7fd=this.slideDuration*(_7f7-_7fc/100);if(_7fd==0){return;}if(_7fd<0){_7fd=0-_7fd;}_7fb[this._progressPixelSize]={start:_7fc,end:_7f7*100,units:"%"};this._inProgressAnim=dojo.animateProperty({node:_7f8,duration:_7fd,onAnimate:function(v){_7f9.style[_7fa._progressPixelSize]=(100-parseFloat(v[_7fa._progressPixelSize]))+"%";},onEnd:function(){delete _7fa._inProgressAnim;},properties:_7fb});this._inProgressAnim.play();}else{_7f8.style[this._progressPixelSize]=(_7f7*100)+"%";_7f9.style[this._progressPixelSize]=((1-_7f7)*100)+"%";}},_bumpValue:function(_7ff){if(this.disabled||this.readOnly){return;}var s=dojo.getComputedStyle(this.sliderBarContainer);var c=dojo._getContentBox(this.sliderBarContainer,s);var _802=this.discreteValues;if(_802<=1||_802==Infinity){_802=c[this._pixelCount];}_802--;var _803=(this.value-this.minimum)*_802/(this.maximum-this.minimum)+_7ff;if(_803<0){_803=0;}if(_803>_802){_803=_802;}_803=_803*(this.maximum-this.minimum)/_802+this.minimum;this._setValueAttr(_803,true);},_onClkBumper:function(val){if(this.disabled||this.readOnly||!this.clickSelect){return;}this._setValueAttr(val,true);},_onClkIncBumper:function(){this._onClkBumper(this._descending===false?this.minimum:this.maximum);},_onClkDecBumper:function(){this._onClkBumper(this._descending===false?this.maximum:this.minimum);},decrement:function(e){this._bumpValue(e.charOrCode==dojo.keys.PAGE_DOWN?-this.pageIncrement:-1);},increment:function(e){this._bumpValue(e.charOrCode==dojo.keys.PAGE_UP?this.pageIncrement:1);},_mouseWheeled:function(evt){dojo.stopEvent(evt);var _808=!dojo.isMozilla;var _809=evt[(_808?"wheelDelta":"detail")]*(_808?1:-1);this[(_809<0?"decrement":"increment")](evt);},startup:function(){dojo.forEach(this.getChildren(),function(_80a){if(this[_80a.container]!=this.containerNode){this[_80a.container].appendChild(_80a.domNode);}},this);},_typematicCallback:function(_80b,_80c,e){if(_80b==-1){return;}this[(_80c==(this._descending?this.incrementButton:this.decrementButton))?"decrement":"increment"](e);},postCreate:function(){if(this.showButtons){this.incrementButton.style.display="";this.decrementButton.style.display="";this._connects.push(dijit.typematic.addMouseListener(this.decrementButton,this,"_typematicCallback",25,500));this._connects.push(dijit.typematic.addMouseListener(this.incrementButton,this,"_typematicCallback",25,500));}this.connect(this.domNode,!dojo.isMozilla?"onmousewheel":"DOMMouseScroll","_mouseWheeled");var _80e=this;var _80f=function(){dijit.form._SliderMover.apply(this,arguments);this.widget=_80e;};dojo.extend(_80f,dijit.form._SliderMover.prototype);this._movable=new dojo.dnd.Moveable(this.sliderHandle,{mover:_80f});var _810=dojo.query("label[for=\""+this.id+"\"]");if(_810.length){_810[0].id=(this.id+"_label");dijit.setWaiState(this.focusNode,"labelledby",_810[0].id);}dijit.setWaiState(this.focusNode,"valuemin",this.minimum);dijit.setWaiState(this.focusNode,"valuemax",this.maximum);this.inherited(arguments);},destroy:function(){this._movable.destroy();if(this._inProgressAnim&&this._inProgressAnim.status!="stopped"){this._inProgressAnim.stop(true);}this.inherited(arguments);}});dojo.declare("dijit.form._SliderMover",dojo.dnd.Mover,{onMouseMove:function(e){var _812=this.widget;var _813=_812._abspos;if(!_813){_813=_812._abspos=dojo.coords(_812.sliderBarContainer,true);_812._setPixelValue_=dojo.hitch(_812,"_setPixelValue");_812._isReversed_=_812._isReversed();}var _814=e[_812._mousePixelCoord]-_813[_812._startingPixelCoord];_812._setPixelValue_(_812._isReversed_?(_813[_812._pixelCount]-_814):_814,_813[_812._pixelCount],false);},destroy:function(e){dojo.dnd.Mover.prototype.destroy.apply(this,arguments);var _816=this.widget;_816._abspos=null;_816._setValueAttr(_816.value,true);}});}if(!dojo._hasResource["dijit.form.VerticalSlider"]){dojo._hasResource["dijit.form.VerticalSlider"]=true;dojo.provide("dijit.form.VerticalSlider");dojo.declare("dijit.form.VerticalSlider",dijit.form.HorizontalSlider,{templateString:"<table class=\"dijitReset dijitSlider\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" rules=\"none\" dojoAttachEvent=\"onkeypress:_onKeyPress\"\n><tbody class=\"dijitReset\"\n\t><tr class=\"dijitReset\"\n\t\t><td class=\"dijitReset\"></td\n\t\t><td class=\"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerV\"\n\t\t\t><div class=\"dijitSliderIncrementIconV\" tabIndex=\"-1\" style=\"display:none\" dojoAttachPoint=\"decrementButton\"><span class=\"dijitSliderButtonInner\">+</span></div\n\t\t></td\n\t\t><td class=\"dijitReset\"></td\n\t></tr\n\t><tr class=\"dijitReset\"\n\t\t><td class=\"dijitReset\"></td\n\t\t><td class=\"dijitReset\"\n\t\t\t><center><div class=\"dijitSliderBar dijitSliderBumper dijitSliderBumperV dijitSliderTopBumper dijitSliderTopBumper\" dojoAttachEvent=\"onmousedown:_onClkIncBumper\"></div></center\n\t\t></td\n\t\t><td class=\"dijitReset\"></td\n\t></tr\n\t><tr class=\"dijitReset\"\n\t\t><td dojoAttachPoint=\"leftDecoration\" class=\"dijitReset\" style=\"text-align:center;height:100%;\"></td\n\t\t><td class=\"dijitReset\" style=\"height:100%;\"\n\t\t\t><input dojoAttachPoint=\"valueNode\" type=\"hidden\" ${nameAttrSetting}\n\t\t\t/><center class=\"dijitReset dijitSliderBarContainerV\" waiRole=\"presentation\" dojoAttachPoint=\"sliderBarContainer\"\n\t\t\t\t><div waiRole=\"presentation\" dojoAttachPoint=\"remainingBar\" class=\"dijitSliderBar dijitSliderBarV dijitSliderRemainingBar dijitSliderRemainingBarV\" dojoAttachEvent=\"onmousedown:_onBarClick\"><!--#5629--></div\n\t\t\t\t><div waiRole=\"presentation\" dojoAttachPoint=\"progressBar\" class=\"dijitSliderBar dijitSliderBarV dijitSliderProgressBar dijitSliderProgressBarV\" dojoAttachEvent=\"onmousedown:_onBarClick\"\n\t\t\t\t\t><div class=\"dijitSliderMoveable\" style=\"vertical-align:top;\" \n\t\t\t\t\t\t><div dojoAttachPoint=\"sliderHandle,focusNode\" class=\"dijitSliderImageHandle dijitSliderImageHandleV\" dojoAttachEvent=\"onmousedown:_onHandleClick\" waiRole=\"slider\" valuemin=\"${minimum}\" valuemax=\"${maximum}\"></div\n\t\t\t\t\t></div\n\t\t\t\t></div\n\t\t\t></center\n\t\t></td\n\t\t><td dojoAttachPoint=\"containerNode,rightDecoration\" class=\"dijitReset\" style=\"text-align:center;height:100%;\"></td\n\t></tr\n\t><tr class=\"dijitReset\"\n\t\t><td class=\"dijitReset\"></td\n\t\t><td class=\"dijitReset\"\n\t\t\t><center><div class=\"dijitSliderBar dijitSliderBumper dijitSliderBumperV dijitSliderBottomBumper dijitSliderBottomBumper\" dojoAttachEvent=\"onmousedown:_onClkDecBumper\"></div></center\n\t\t></td\n\t\t><td class=\"dijitReset\"></td\n\t></tr\n\t><tr class=\"dijitReset\"\n\t\t><td class=\"dijitReset\"></td\n\t\t><td class=\"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerV\"\n\t\t\t><div class=\"dijitSliderDecrementIconV\" tabIndex=\"-1\" style=\"display:none\" dojoAttachPoint=\"incrementButton\"><span class=\"dijitSliderButtonInner\">-</span></div\n\t\t></td\n\t\t><td class=\"dijitReset\"></td\n\t></tr\n></tbody></table>\n",_mousePixelCoord:"pageY",_pixelCount:"h",_startingPixelCoord:"y",_startingPixelCount:"t",_handleOffsetCoord:"top",_progressPixelSize:"height",_descending:true,startup:function(){if(this._started){return;}if(!this.isLeftToRight()&&dojo.isMoz){if(this.leftDecoration){this._rtlRectify(this.leftDecoration);}if(this.rightDecoration){this._rtlRectify(this.rightDecoration);}}this.inherited(arguments);},_isReversed:function(){return this._descending;},_rtlRectify:function(_817){var _818=[];while(_817.firstChild){_818.push(_817.firstChild);_817.removeChild(_817.firstChild);}for(var i=_818.length-1;i>=0;i--){if(_818[i]){_817.appendChild(_818[i]);}}}});}if(!dojo._hasResource["dijit.form.HorizontalRule"]){dojo._hasResource["dijit.form.HorizontalRule"]=true;dojo.provide("dijit.form.HorizontalRule");dojo.declare("dijit.form.HorizontalRule",[dijit._Widget,dijit._Templated],{templateString:"<div class=\"dijitRuleContainer dijitRuleContainerH\"></div>",count:3,container:"containerNode",ruleStyle:"",_positionPrefix:"<div class=\"dijitRuleMark dijitRuleMarkH\" style=\"left:",_positionSuffix:"%;",_suffix:"\"></div>",_genHTML:function(pos,ndx){return this._positionPrefix+pos+this._positionSuffix+this.ruleStyle+this._suffix;},_isHorizontal:true,postCreate:function(){var _81c;if(this.count==1){_81c=this._genHTML(50,0);}else{var i;var _81e=100/(this.count-1);if(!this._isHorizontal||this.isLeftToRight()){_81c=this._genHTML(0,0);for(i=1;i<this.count-1;i++){_81c+=this._genHTML(_81e*i,i);}_81c+=this._genHTML(100,this.count-1);}else{_81c=this._genHTML(100,0);for(i=1;i<this.count-1;i++){_81c+=this._genHTML(100-_81e*i,i);}_81c+=this._genHTML(0,this.count-1);}}this.domNode.innerHTML=_81c;}});}if(!dojo._hasResource["dijit.form.VerticalRule"]){dojo._hasResource["dijit.form.VerticalRule"]=true;dojo.provide("dijit.form.VerticalRule");dojo.declare("dijit.form.VerticalRule",dijit.form.HorizontalRule,{templateString:"<div class=\"dijitRuleContainer dijitRuleContainerV\"></div>",_positionPrefix:"<div class=\"dijitRuleMark dijitRuleMarkV\" style=\"top:",_isHorizontal:false});}if(!dojo._hasResource["dijit.form.HorizontalRuleLabels"]){dojo._hasResource["dijit.form.HorizontalRuleLabels"]=true;dojo.provide("dijit.form.HorizontalRuleLabels");dojo.declare("dijit.form.HorizontalRuleLabels",dijit.form.HorizontalRule,{templateString:"<div class=\"dijitRuleContainer dijitRuleContainerH dijitRuleLabelsContainer dijitRuleLabelsContainerH\"></div>",labelStyle:"",labels:[],numericMargin:0,minimum:0,maximum:1,constraints:{pattern:"#%"},_positionPrefix:"<div class=\"dijitRuleLabelContainer dijitRuleLabelContainerH\" style=\"left:",_labelPrefix:"\"><span class=\"dijitRuleLabel dijitRuleLabelH\">",_suffix:"</span></div>",_calcPosition:function(pos){return pos;},_genHTML:function(pos,ndx){return this._positionPrefix+this._calcPosition(pos)+this._positionSuffix+this.labelStyle+this._labelPrefix+this.labels[ndx]+this._suffix;},getLabels:function(){var _822=this.labels;if(!_822.length){_822=dojo.query("> li",this.srcNodeRef).map(function(node){return String(node.innerHTML);});}this.srcNodeRef.innerHTML="";if(!_822.length&&this.count>1){var _824=this.minimum;var inc=(this.maximum-_824)/(this.count-1);for(var i=0;i<this.count;i++){_822.push((i<this.numericMargin||i>=(this.count-this.numericMargin))?"":dojo.number.format(_824,this.constraints));_824+=inc;}}return _822;},postMixInProperties:function(){this.inherited(arguments);this.labels=this.getLabels();this.count=this.labels.length;}});}if(!dojo._hasResource["dijit.form.VerticalRuleLabels"]){dojo._hasResource["dijit.form.VerticalRuleLabels"]=true;dojo.provide("dijit.form.VerticalRuleLabels");dojo.declare("dijit.form.VerticalRuleLabels",dijit.form.HorizontalRuleLabels,{templateString:"<div class=\"dijitRuleContainer dijitRuleContainerV dijitRuleLabelsContainer dijitRuleLabelsContainerV\"></div>",_positionPrefix:"<div class=\"dijitRuleLabelContainer dijitRuleLabelContainerV\" style=\"top:",_labelPrefix:"\"><span class=\"dijitRuleLabel dijitRuleLabelV\">",_calcPosition:function(pos){return 100-pos;},_isHorizontal:false});}if(!dojo._hasResource["dijit.form.SimpleTextarea"]){dojo._hasResource["dijit.form.SimpleTextarea"]=true;dojo.provide("dijit.form.SimpleTextarea");dojo.declare("dijit.form.SimpleTextarea",dijit.form.TextBox,{baseClass:"dijitTextArea",attributeMap:dojo.delegate(dijit.form._FormValueWidget.prototype.attributeMap,{rows:"textbox",cols:"textbox"}),rows:"3",cols:"20",templatePath:null,templateString:"<textarea ${nameAttrSetting} dojoAttachPoint='focusNode,containerNode,textbox' autocomplete='off'></textarea>",postMixInProperties:function(){if(!this.value&&this.srcNodeRef){this.value=this.srcNodeRef.value;}this.inherited(arguments);},filter:function(_828){if(_828){_828=_828.replace(/\r/g,"");}return this.inherited(arguments);},postCreate:function(){this.inherited(arguments);if(dojo.isIE&&this.cols){dojo.addClass(this.domNode,"dijitTextAreaCols");}},_previousValue:"",_onInput:function(e){if(this.maxLength){var _82a=parseInt(this.maxLength);var _82b=this.textbox.value.replace(/\r/g,"");var _82c=_82b.length-_82a;if(_82c>0){dojo.stopEvent(e);var _82d=this.textbox;if(_82d.selectionStart){var pos=_82d.selectionStart;var cr=0;if(dojo.isOpera){cr=(this.textbox.value.substring(0,pos).match(/\r/g)||[]).length;}this.textbox.value=_82b.substring(0,pos-_82c-cr)+_82b.substring(pos-cr);_82d.setSelectionRange(pos-_82c,pos-_82c);}else{if(dojo.doc.selection){_82d.focus();var _830=dojo.doc.selection.createRange();_830.moveStart("character",-_82c);_830.text="";_830.select();}}}this._previousValue=this.textbox.value;}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.form.Textarea"]){dojo._hasResource["dijit.form.Textarea"]=true;dojo.provide("dijit.form.Textarea");dojo.declare("dijit.form.Textarea",dijit.form.SimpleTextarea,{cols:"",_previousNewlines:0,_strictMode:(dojo.doc.compatMode!="BackCompat"),_getHeight:function(_831){var newH=_831.scrollHeight;if(dojo.isIE){newH+=_831.offsetHeight-_831.clientHeight-((dojo.isIE<8&&this._strictMode)?dojo._getPadBorderExtents(_831).h:0);}else{if(dojo.isMoz){newH+=_831.offsetHeight-_831.clientHeight;}else{if(dojo.isWebKit&&!(dojo.isSafari<4)){newH+=dojo._getBorderExtents(_831).h;}else{newH+=dojo._getPadBorderExtents(_831).h;}}}return newH;},_estimateHeight:function(_833){_833.style.maxHeight="";_833.style.height="auto";_833.rows=(_833.value.match(/\n/g)||[]).length+1;},_needsHelpShrinking:dojo.isMoz||dojo.isWebKit,_onInput:function(){this.inherited(arguments);if(this._busyResizing){return;}this._busyResizing=true;var _834=this.textbox;if(_834.scrollHeight){var newH=this._getHeight(_834)+"px";if(_834.style.height!=newH){_834.style.maxHeight=_834.style.height=newH;}if(this._needsHelpShrinking){if(this._setTimeoutHandle){clearTimeout(this._setTimeoutHandle);}this._setTimeoutHandle=setTimeout(dojo.hitch(this,"_shrink"),0);}}else{this._estimateHeight(_834);}this._busyResizing=false;},_busyResizing:false,_shrink:function(){this._setTimeoutHandle=null;if(this._needsHelpShrinking&&!this._busyResizing){this._busyResizing=true;var _836=this.textbox;var _837=false;if(_836.value==""){_836.value=" ";_837=true;}var _838=_836.scrollHeight;if(!_838){this._estimateHeight(_836);}else{var _839=_836.style.paddingBottom;var _83a=dojo._getPadExtents(_836);_83a=_83a.h-_83a.t;_836.style.paddingBottom=_83a+1+"px";var newH=this._getHeight(_836)-1+"px";if(_836.style.maxHeight!=newH){_836.style.paddingBottom=_83a+_838+"px";_836.scrollTop=0;_836.style.maxHeight=this._getHeight(_836)-_838+"px";}_836.style.paddingBottom=_839;}if(_837){_836.value="";}this._busyResizing=false;}},resize:function(){this._onInput();},_setValueAttr:function(){this.inherited(arguments);this.resize();},postCreate:function(){this.inherited(arguments);dojo.style(this.textbox,{overflowY:"hidden",overflowX:"auto",boxSizing:"border-box",MsBoxSizing:"border-box",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box"});this.connect(this.textbox,"onscroll",this._onInput);this.connect(this.textbox,"onresize",this._onInput);this.connect(this.textbox,"onfocus",this._onInput);setTimeout(dojo.hitch(this,"resize"),0);}});}if(!dojo._hasResource["dijit.form.ToggleButton"]){dojo._hasResource["dijit.form.ToggleButton"]=true;dojo.provide("dijit.form.ToggleButton");}if(!dojo._hasResource["dijit.layout.StackController"]){dojo._hasResource["dijit.layout.StackController"]=true;dojo.provide("dijit.layout.StackController");dojo.declare("dijit.layout.StackController",[dijit._Widget,dijit._Templated,dijit._Container],{templateString:"<span wairole='tablist' dojoAttachEvent='onkeypress' class='dijitStackController'></span>",containerId:"",buttonWidget:"dijit.layout._StackButton",postCreate:function(){dijit.setWaiRole(this.domNode,"tablist");this.pane2button={};this.pane2handles={};this.pane2menu={};this._subscriptions=[dojo.subscribe(this.containerId+"-startup",this,"onStartup"),dojo.subscribe(this.containerId+"-addChild",this,"onAddChild"),dojo.subscribe(this.containerId+"-removeChild",this,"onRemoveChild"),dojo.subscribe(this.containerId+"-selectChild",this,"onSelectChild"),dojo.subscribe(this.containerId+"-containerKeyPress",this,"onContainerKeyPress")];},onStartup:function(info){dojo.forEach(info.children,this.onAddChild,this);this.onSelectChild(info.selected);},destroy:function(){for(var pane in this.pane2button){this.onRemoveChild(pane);}dojo.forEach(this._subscriptions,dojo.unsubscribe);this.inherited(arguments);},onAddChild:function(page,_83f){var _840=dojo.doc.createElement("span");this.domNode.appendChild(_840);var cls=dojo.getObject(this.buttonWidget);var _842=new cls({label:page.title,closeButton:page.closable},_840);this.addChild(_842,_83f);this.pane2button[page]=_842;page.controlButton=_842;var _843=[];_843.push(dojo.connect(_842,"onClick",dojo.hitch(this,"onButtonClick",page)));if(page.closable){_843.push(dojo.connect(_842,"onClickCloseButton",dojo.hitch(this,"onCloseButtonClick",page)));var _844=dojo.i18n.getLocalization("dijit","common");var _845=new dijit.Menu({targetNodeIds:[_842.id],id:_842.id+"_Menu"});var _846=new dijit.MenuItem({label:_844.itemClose});_843.push(dojo.connect(_846,"onClick",dojo.hitch(this,"onCloseButtonClick",page)));_845.addChild(_846);this.pane2menu[page]=_845;}this.pane2handles[page]=_843;if(!this._currentChild){_842.focusNode.setAttribute("tabIndex","0");this._currentChild=page;}if(!this.isLeftToRight()&&dojo.isIE&&this._rectifyRtlTabList){this._rectifyRtlTabList();}},onRemoveChild:function(page){if(this._currentChild===page){this._currentChild=null;}dojo.forEach(this.pane2handles[page],dojo.disconnect);delete this.pane2handles[page];var menu=this.pane2menu[page];if(menu){menu.destroyRecursive();delete this.pane2menu[page];}var _849=this.pane2button[page];if(_849){_849.destroy();delete this.pane2button[page];}},onSelectChild:function(page){if(!page){return;}if(this._currentChild){var _84b=this.pane2button[this._currentChild];_84b.attr("checked",false);_84b.focusNode.setAttribute("tabIndex","-1");}var _84c=this.pane2button[page];_84c.attr("checked",true);this._currentChild=page;_84c.focusNode.setAttribute("tabIndex","0");var _84d=dijit.byId(this.containerId);dijit.setWaiState(_84d.containerNode,"labelledby",_84c.id);},onButtonClick:function(page){var _84f=dijit.byId(this.containerId);_84f.selectChild(page);},onCloseButtonClick:function(page){var _851=dijit.byId(this.containerId);_851.closeChild(page);var b=this.pane2button[this._currentChild];if(b){dijit.focus(b.focusNode||b.domNode);}},adjacent:function(_853){if(!this.isLeftToRight()&&(!this.tabPosition||/top|bottom/.test(this.tabPosition))){_853=!_853;}var _854=this.getChildren();var _855=dojo.indexOf(_854,this.pane2button[this._currentChild]);var _856=_853?1:_854.length-1;return _854[(_855+_856)%_854.length];},onkeypress:function(e){if(this.disabled||e.altKey){return;}var _858=null;if(e.ctrlKey||!e._djpage){var k=dojo.keys;switch(e.charOrCode){case k.LEFT_ARROW:case k.UP_ARROW:if(!e._djpage){_858=false;}break;case k.PAGE_UP:if(e.ctrlKey){_858=false;}break;case k.RIGHT_ARROW:case k.DOWN_ARROW:if(!e._djpage){_858=true;}break;case k.PAGE_DOWN:if(e.ctrlKey){_858=true;}break;case k.DELETE:if(this._currentChild.closable){this.onCloseButtonClick(this._currentChild);}dojo.stopEvent(e);break;default:if(e.ctrlKey){if(e.charOrCode===k.TAB){this.adjacent(!e.shiftKey).onClick();dojo.stopEvent(e);}else{if(e.charOrCode=="w"){if(this._currentChild.closable){this.onCloseButtonClick(this._currentChild);}dojo.stopEvent(e);}}}}if(_858!==null){this.adjacent(_858).onClick();dojo.stopEvent(e);}}},onContainerKeyPress:function(info){info.e._djpage=info.page;this.onkeypress(info.e);}});dojo.declare("dijit.layout._StackButton",dijit.form.ToggleButton,{tabIndex:"-1",postCreate:function(evt){dijit.setWaiRole((this.focusNode||this.domNode),"tab");this.inherited(arguments);},onClick:function(evt){dijit.focus(this.focusNode);},onClickCloseButton:function(evt){evt.stopPropagation();}});}if(!dojo._hasResource["dijit.layout.StackContainer"]){dojo._hasResource["dijit.layout.StackContainer"]=true;dojo.provide("dijit.layout.StackContainer");dojo.declare("dijit.layout.StackContainer",dijit.layout._LayoutWidget,{doLayout:true,persist:false,baseClass:"dijitStackContainer",_started:false,postCreate:function(){this.inherited(arguments);dojo.addClass(this.domNode,"dijitLayoutContainer");dijit.setWaiRole(this.containerNode,"tabpanel");this.connect(this.domNode,"onkeypress",this._onKeyPress);},startup:function(){if(this._started){return;}var _85e=this.getChildren();dojo.forEach(_85e,this._setupChild,this);if(this.persist){this.selectedChildWidget=dijit.byId(dojo.cookie(this.id+"_selectedChild"));}else{dojo.some(_85e,function(_85f){if(_85f.selected){this.selectedChildWidget=_85f;}return _85f.selected;},this);}var _860=this.selectedChildWidget;if(!_860&&_85e[0]){_860=this.selectedChildWidget=_85e[0];_860.selected=true;}dojo.publish(this.id+"-startup",[{children:_85e,selected:_860}]);if(_860){this._showChild(_860);}this.inherited(arguments);},_setupChild:function(_861){this.inherited(arguments);dojo.removeClass(_861.domNode,"dijitVisible");dojo.addClass(_861.domNode,"dijitHidden");_861.domNode.title="";return _861;},addChild:function(_862,_863){this.inherited(arguments);if(this._started){dojo.publish(this.id+"-addChild",[_862,_863]);this.layout();if(!this.selectedChildWidget){this.selectChild(_862);}}},removeChild:function(page){this.inherited(arguments);if(this._beingDestroyed){return;}if(this._started){dojo.publish(this.id+"-removeChild",[page]);this.layout();}if(this.selectedChildWidget===page){this.selectedChildWidget=undefined;if(this._started){var _865=this.getChildren();if(_865.length){this.selectChild(_865[0]);}}}},selectChild:function(page){page=dijit.byId(page);if(this.selectedChildWidget!=page){this._transition(page,this.selectedChildWidget);this.selectedChildWidget=page;dojo.publish(this.id+"-selectChild",[page]);if(this.persist){dojo.cookie(this.id+"_selectedChild",this.selectedChildWidget.id);}}},_transition:function(_867,_868){if(_868){this._hideChild(_868);}this._showChild(_867);if(this.doLayout&&_867.resize){_867.resize(this._containerContentBox||this._contentBox);}},_adjacent:function(_869){var _86a=this.getChildren();var _86b=dojo.indexOf(_86a,this.selectedChildWidget);_86b+=_869?1:_86a.length-1;return _86a[_86b%_86a.length];},forward:function(){this.selectChild(this._adjacent(true));},back:function(){this.selectChild(this._adjacent(false));},_onKeyPress:function(e){dojo.publish(this.id+"-containerKeyPress",[{e:e,page:this}]);},layout:function(){if(this.doLayout&&this.selectedChildWidget&&this.selectedChildWidget.resize){this.selectedChildWidget.resize(this._contentBox);}},_showChild:function(page){var _86e=this.getChildren();page.isFirstChild=(page==_86e[0]);page.isLastChild=(page==_86e[_86e.length-1]);page.selected=true;dojo.removeClass(page.domNode,"dijitHidden");dojo.addClass(page.domNode,"dijitVisible");if(page._onShow){page._onShow();}else{if(page.onShow){page.onShow();}}},_hideChild:function(page){page.selected=false;dojo.removeClass(page.domNode,"dijitVisible");dojo.addClass(page.domNode,"dijitHidden");if(page.onHide){page.onHide();}},closeChild:function(page){var _871=page.onClose(this,page);if(_871){this.removeChild(page);page.destroyRecursive();}},destroy:function(){this._beingDestroyed=true;this.inherited(arguments);}});dojo.extend(dijit._Widget,{title:"",selected:false,closable:false,onClose:function(){return true;}});}if(!dojo._hasResource["dijit.layout.AccordionPane"]){dojo._hasResource["dijit.layout.AccordionPane"]=true;dojo.provide("dijit.layout.AccordionPane");dojo.declare("dijit.layout.AccordionPane",dijit.layout.ContentPane,{constructor:function(){dojo.deprecated("dijit.layout.AccordionPane deprecated, use ContentPane instead","","2.0");},onSelected:function(){}});}if(!dojo._hasResource["dijit.layout.AccordionContainer"]){dojo._hasResource["dijit.layout.AccordionContainer"]=true;dojo.provide("dijit.layout.AccordionContainer");dojo.declare("dijit.layout.AccordionContainer",dijit.layout.StackContainer,{duration:dijit.defaultDuration,_verticalSpace:0,baseClass:"dijitAccordionContainer",postCreate:function(){this.domNode.style.overflow="hidden";this.inherited(arguments);dijit.setWaiRole(this.domNode,"tablist");},startup:function(){if(this._started){return;}this.inherited(arguments);if(this.selectedChildWidget){var _872=this.selectedChildWidget.containerNode.style;_872.display="";_872.overflow="auto";this.selectedChildWidget._buttonWidget._setSelectedState(true);}},_getTargetHeight:function(node){var cs=dojo.getComputedStyle(node);return Math.max(this._verticalSpace-dojo._getPadBorderExtents(node,cs).h,0);},layout:function(){var _875=this.selectedChildWidget;var _876=0;dojo.forEach(this.getChildren(),function(_877){_876+=_877._buttonWidget.getTitleHeight();});var _878=this._contentBox;this._verticalSpace=_878.h-_876;this._containerContentBox={h:this._verticalSpace,w:_878.w};if(_875){_875.resize(this._containerContentBox);}},_setupChild:function(_879){_879._buttonWidget=new dijit.layout._AccordionButton({contentWidget:_879,title:_879.title,id:_879.id+"_button",parent:this});dojo.place(_879._buttonWidget.domNode,_879.domNode,"before");this.inherited(arguments);},removeChild:function(_87a){_87a._buttonWidget.destroy();this.inherited(arguments);},getChildren:function(){return dojo.filter(this.inherited(arguments),function(_87b){return _87b.declaredClass!="dijit.layout._AccordionButton";});},destroy:function(){dojo.forEach(this.getChildren(),function(_87c){_87c._buttonWidget.destroy();});this.inherited(arguments);},_transition:function(_87d,_87e){if(this._inTransition){return;}this._inTransition=true;var _87f=[];var _880=this._verticalSpace;if(_87d){_87d._buttonWidget.setSelected(true);this._showChild(_87d);if(this.doLayout&&_87d.resize){_87d.resize(this._containerContentBox);}var _881=_87d.domNode;dojo.addClass(_881,"dijitVisible");dojo.removeClass(_881,"dijitHidden");var _882=_881.style.overflow;_881.style.overflow="hidden";_87f.push(dojo.animateProperty({node:_881,duration:this.duration,properties:{height:{start:1,end:this._getTargetHeight(_881)}},onEnd:dojo.hitch(this,function(){_881.style.overflow=_882;delete this._inTransition;})}));}if(_87e){_87e._buttonWidget.setSelected(false);var _883=_87e.domNode,_884=_883.style.overflow;_883.style.overflow="hidden";_87f.push(dojo.animateProperty({node:_883,duration:this.duration,properties:{height:{start:this._getTargetHeight(_883),end:1}},onEnd:function(){dojo.addClass(_883,"dijitHidden");dojo.removeClass(_883,"dijitVisible");_883.style.overflow=_884;if(_87e.onHide){_87e.onHide();}}}));}dojo.fx.combine(_87f).play();},_onKeyPress:function(e,_886){if(this._inTransition||this.disabled||e.altKey||!(_886||e.ctrlKey)){if(this._inTransition){dojo.stopEvent(e);}return;}var k=dojo.keys,c=e.charOrCode;if((_886&&(c==k.LEFT_ARROW||c==k.UP_ARROW))||(e.ctrlKey&&c==k.PAGE_UP)){this._adjacent(false)._buttonWidget._onTitleClick();dojo.stopEvent(e);}else{if((_886&&(c==k.RIGHT_ARROW||c==k.DOWN_ARROW))||(e.ctrlKey&&(c==k.PAGE_DOWN||c==k.TAB))){this._adjacent(true)._buttonWidget._onTitleClick();dojo.stopEvent(e);}}}});dojo.declare("dijit.layout._AccordionButton",[dijit._Widget,dijit._Templated],{templateString:"<div dojoAttachPoint='titleNode,focusNode' dojoAttachEvent='ondijitclick:_onTitleClick,onkeypress:_onTitleKeyPress,onfocus:_handleFocus,onblur:_handleFocus,onmouseenter:_onTitleEnter,onmouseleave:_onTitleLeave'\n\t\tclass='dijitAccordionTitle' wairole=\"tab\" waiState=\"expanded-false\"\n\t\t><span class='dijitInline dijitAccordionArrow' waiRole=\"presentation\"></span\n\t\t><span class='arrowTextUp' waiRole=\"presentation\">+</span\n\t\t><span class='arrowTextDown' waiRole=\"presentation\">-</span\n\t\t><span waiRole=\"presentation\" dojoAttachPoint='titleTextNode' class='dijitAccordionText'></span>\n</div>\n",attributeMap:dojo.mixin(dojo.clone(dijit.layout.ContentPane.prototype.attributeMap),{title:{node:"titleTextNode",type:"innerHTML"}}),baseClass:"dijitAccordionTitle",getParent:function(){return this.parent;},postCreate:function(){this.inherited(arguments);dojo.setSelectable(this.domNode,false);this.setSelected(this.selected);var _889=dojo.attr(this.domNode,"id").replace(" ","_");dojo.attr(this.titleTextNode,"id",_889+"_title");dijit.setWaiState(this.focusNode,"labelledby",dojo.attr(this.titleTextNode,"id"));},getTitleHeight:function(){return dojo.marginBox(this.titleNode).h;},_onTitleClick:function(){var _88a=this.getParent();if(!_88a._inTransition){_88a.selectChild(this.contentWidget);dijit.focus(this.focusNode);}},_onTitleEnter:function(){dojo.addClass(this.focusNode,"dijitAccordionTitle-hover");},_onTitleLeave:function(){dojo.removeClass(this.focusNode,"dijitAccordionTitle-hover");},_onTitleKeyPress:function(evt){return this.getParent()._onKeyPress(evt,this.contentWidget);},_setSelectedState:function(_88c){this.selected=_88c;dojo[(_88c?"addClass":"removeClass")](this.titleNode,"dijitAccordionTitle-selected");dijit.setWaiState(this.focusNode,"expanded",_88c);dijit.setWaiState(this.focusNode,"selected",_88c);this.focusNode.setAttribute("tabIndex",_88c?"0":"-1");},_handleFocus:function(e){dojo[(e.type=="focus"?"addClass":"removeClass")](this.focusNode,"dijitAccordionFocused");},setSelected:function(_88e){this._setSelectedState(_88e);if(_88e){var cw=this.contentWidget;if(cw.onSelected){cw.onSelected();}}}});}if(!dojo._hasResource["dijit.layout.BorderContainer"]){dojo._hasResource["dijit.layout.BorderContainer"]=true;dojo.provide("dijit.layout.BorderContainer");dojo.declare("dijit.layout.BorderContainer",dijit.layout._LayoutWidget,{design:"headline",gutters:true,liveSplitters:true,persist:false,baseClass:"dijitBorderContainer",_splitterClass:"dijit.layout._Splitter",postMixInProperties:function(){if(!this.gutters){this.baseClass+="NoGutter";}this.inherited(arguments);},postCreate:function(){this.inherited(arguments);this._splitters={};this._splitterThickness={};},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),this._setupChild,this);this.inherited(arguments);},_setupChild:function(_890){var _891=_890.region;if(_891){this.inherited(arguments);dojo.addClass(_890.domNode,this.baseClass+"Pane");var ltr=this.isLeftToRight();if(_891=="leading"){_891=ltr?"left":"right";}if(_891=="trailing"){_891=ltr?"right":"left";}this["_"+_891]=_890.domNode;this["_"+_891+"Widget"]=_890;if((_890.splitter||this.gutters)&&!this._splitters[_891]){var _893=dojo.getObject(_890.splitter?this._splitterClass:"dijit.layout._Gutter");var flip={left:"right",right:"left",top:"bottom",bottom:"top",leading:"trailing",trailing:"leading"};var _895=new _893({container:this,child:_890,region:_891,oppNode:this["_"+flip[_890.region]],live:this.liveSplitters});_895.isSplitter=true;this._splitters[_891]=_895.domNode;dojo.place(this._splitters[_891],_890.domNode,"after");_895.startup();}_890.region=_891;}},_computeSplitterThickness:function(_896){this._splitterThickness[_896]=this._splitterThickness[_896]||dojo.marginBox(this._splitters[_896])[(/top|bottom/.test(_896)?"h":"w")];},layout:function(){for(var _897 in this._splitters){this._computeSplitterThickness(_897);}this._layoutChildren();},addChild:function(_898,_899){this.inherited(arguments);if(this._started){this._layoutChildren();}},removeChild:function(_89a){var _89b=_89a.region;var _89c=this._splitters[_89b];if(_89c){dijit.byNode(_89c).destroy();delete this._splitters[_89b];delete this._splitterThickness[_89b];}this.inherited(arguments);delete this["_"+_89b];delete this["_"+_89b+"Widget"];if(this._started){this._layoutChildren(_89a.region);}dojo.removeClass(_89a.domNode,this.baseClass+"Pane");},getChildren:function(){return dojo.filter(this.inherited(arguments),function(_89d){return !_89d.isSplitter;});},getSplitter:function(_89e){var _89f=this._splitters[_89e];return _89f?dijit.byNode(_89f):null;},resize:function(_8a0,_8a1){if(!this.cs||!this.pe){var node=this.domNode;this.cs=dojo.getComputedStyle(node);this.pe=dojo._getPadExtents(node,this.cs);this.pe.r=dojo._toPixelValue(node,this.cs.paddingRight);this.pe.b=dojo._toPixelValue(node,this.cs.paddingBottom);dojo.style(node,"padding","0px");}this.inherited(arguments);},_layoutChildren:function(_8a3){if(!this._borderBox||!this._borderBox.h){return;}var _8a4=(this.design=="sidebar");var _8a5=0,_8a6=0,_8a7=0,_8a8=0;var _8a9={},_8aa={},_8ab={},_8ac={},_8ad=(this._center&&this._center.style)||{};var _8ae=/left|right/.test(_8a3);var _8af=!_8a3||(!_8ae&&!_8a4);var _8b0=!_8a3||(_8ae&&_8a4);if(this._top){_8a9=_8b0&&this._top.style;_8a5=dojo.marginBox(this._top).h;}if(this._left){_8aa=_8af&&this._left.style;_8a7=dojo.marginBox(this._left).w;}if(this._right){_8ab=_8af&&this._right.style;_8a8=dojo.marginBox(this._right).w;}if(this._bottom){_8ac=_8b0&&this._bottom.style;_8a6=dojo.marginBox(this._bottom).h;}var _8b1=this._splitters;var _8b2=_8b1.top,_8b3=_8b1.bottom,_8b4=_8b1.left,_8b5=_8b1.right;var _8b6=this._splitterThickness;var _8b7=_8b6.top||0,_8b8=_8b6.left||0,_8b9=_8b6.right||0,_8ba=_8b6.bottom||0;if(_8b8>50||_8b9>50){setTimeout(dojo.hitch(this,function(){this._splitterThickness={};for(var _8bb in this._splitters){this._computeSplitterThickness(_8bb);}this._layoutChildren();}),50);return false;}var pe=this.pe;var _8bd={left:(_8a4?_8a7+_8b8:0)+pe.l+"px",right:(_8a4?_8a8+_8b9:0)+pe.r+"px"};if(_8b2){dojo.mixin(_8b2.style,_8bd);_8b2.style.top=_8a5+pe.t+"px";}if(_8b3){dojo.mixin(_8b3.style,_8bd);_8b3.style.bottom=_8a6+pe.b+"px";}_8bd={top:(_8a4?0:_8a5+_8b7)+pe.t+"px",bottom:(_8a4?0:_8a6+_8ba)+pe.b+"px"};if(_8b4){dojo.mixin(_8b4.style,_8bd);_8b4.style.left=_8a7+pe.l+"px";}if(_8b5){dojo.mixin(_8b5.style,_8bd);_8b5.style.right=_8a8+pe.r+"px";}dojo.mixin(_8ad,{top:pe.t+_8a5+_8b7+"px",left:pe.l+_8a7+_8b8+"px",right:pe.r+_8a8+_8b9+"px",bottom:pe.b+_8a6+_8ba+"px"});var _8be={top:_8a4?pe.t+"px":_8ad.top,bottom:_8a4?pe.b+"px":_8ad.bottom};dojo.mixin(_8aa,_8be);dojo.mixin(_8ab,_8be);_8aa.left=pe.l+"px";_8ab.right=pe.r+"px";_8a9.top=pe.t+"px";_8ac.bottom=pe.b+"px";if(_8a4){_8a9.left=_8ac.left=_8a7+_8b8+pe.l+"px";_8a9.right=_8ac.right=_8a8+_8b9+pe.r+"px";}else{_8a9.left=_8ac.left=pe.l+"px";_8a9.right=_8ac.right=pe.r+"px";}var _8bf=this._borderBox.h-pe.t-pe.b,_8c0=_8bf-(_8a5+_8b7+_8a6+_8ba),_8c1=_8a4?_8bf:_8c0;var _8c2=this._borderBox.w-pe.l-pe.r,_8c3=_8c2-(_8a7+_8b8+_8a8+_8b9),_8c4=_8a4?_8c3:_8c2;var dim={top:{w:_8c4,h:_8a5},bottom:{w:_8c4,h:_8a6},left:{w:_8a7,h:_8c1},right:{w:_8a8,h:_8c1},center:{h:_8c0,w:_8c3}};var _8c6=dojo.isIE<8||(dojo.isIE&&dojo.isQuirks)||dojo.some(this.getChildren(),function(_8c7){return _8c7.domNode.tagName=="TEXTAREA"||_8c7.domNode.tagName=="INPUT";});if(_8c6){var _8c8=function(_8c9,_8ca,_8cb){if(_8c9){(_8c9.resize?_8c9.resize(_8ca,_8cb):dojo.marginBox(_8c9.domNode,_8ca));}};if(_8b4){_8b4.style.height=_8c1;}if(_8b5){_8b5.style.height=_8c1;}_8c8(this._leftWidget,{h:_8c1},dim.left);_8c8(this._rightWidget,{h:_8c1},dim.right);if(_8b2){_8b2.style.width=_8c4;}if(_8b3){_8b3.style.width=_8c4;}_8c8(this._topWidget,{w:_8c4},dim.top);_8c8(this._bottomWidget,{w:_8c4},dim.bottom);_8c8(this._centerWidget,dim.center);}else{var _8cc={};if(_8a3){_8cc[_8a3]=_8cc.center=true;if(/top|bottom/.test(_8a3)&&this.design!="sidebar"){_8cc.left=_8cc.right=true;}else{if(/left|right/.test(_8a3)&&this.design=="sidebar"){_8cc.top=_8cc.bottom=true;}}}dojo.forEach(this.getChildren(),function(_8cd){if(_8cd.resize&&(!_8a3||_8cd.region in _8cc)){_8cd.resize(null,dim[_8cd.region]);}},this);}},destroy:function(){for(var _8ce in this._splitters){var _8cf=this._splitters[_8ce];dijit.byNode(_8cf).destroy();dojo.destroy(_8cf);}delete this._splitters;delete this._splitterThickness;this.inherited(arguments);}});dojo.extend(dijit._Widget,{region:"",splitter:false,minSize:0,maxSize:Infinity});dojo.declare("dijit.layout._Splitter",[dijit._Widget,dijit._Templated],{live:true,templateString:"<div class=\"dijitSplitter\" dojoAttachEvent=\"onkeypress:_onKeyPress,onmousedown:_startDrag\" tabIndex=\"0\" waiRole=\"separator\"><div class=\"dijitSplitterThumb\"></div></div>",postCreate:function(){this.inherited(arguments);this.horizontal=/top|bottom/.test(this.region);dojo.addClass(this.domNode,"dijitSplitter"+(this.horizontal?"H":"V"));this._factor=/top|left/.test(this.region)?1:-1;this._minSize=this.child.minSize;this.child.domNode._recalc=true;this.connect(this.container,"resize",function(){this.child.domNode._recalc=true;});this._cookieName=this.container.id+"_"+this.region;if(this.container.persist){var _8d0=dojo.cookie(this._cookieName);if(_8d0){this.child.domNode.style[this.horizontal?"height":"width"]=_8d0;}}},_computeMaxSize:function(){var dim=this.horizontal?"h":"w",_8d2=this.container._splitterThickness[this.region];var _8d3=dojo.contentBox(this.container.domNode)[dim]-(this.oppNode?dojo.marginBox(this.oppNode)[dim]:0)-20-_8d2*2;this._maxSize=Math.min(this.child.maxSize,_8d3);},_startDrag:function(e){if(this.child.domNode._recalc){this._computeMaxSize();this.child.domNode._recalc=false;}if(!this.cover){this.cover=dojo.doc.createElement("div");dojo.addClass(this.cover,"dijitSplitterCover");dojo.place(this.cover,this.child.domNode,"after");}dojo.addClass(this.cover,"dijitSplitterCoverActive");if(this.fake){dojo.destroy(this.fake);}if(!(this._resize=this.live)){(this.fake=this.domNode.cloneNode(true)).removeAttribute("id");dojo.addClass(this.domNode,"dijitSplitterShadow");dojo.place(this.fake,this.domNode,"after");}dojo.addClass(this.domNode,"dijitSplitterActive");var _8d5=this._factor,max=this._maxSize,min=this._minSize||20,_8d8=this.horizontal,axis=_8d8?"pageY":"pageX",_8da=e[axis],_8db=this.domNode.style,dim=_8d8?"h":"w",_8dd=dojo.marginBox(this.child.domNode)[dim],_8de=this.region,_8df=parseInt(this.domNode.style[_8de],10),_8e0=this._resize,mb={},_8e2=this.child.domNode,_8e3=dojo.hitch(this.container,this.container._layoutChildren),de=dojo.doc.body;this._handlers=(this._handlers||[]).concat([dojo.connect(de,"onmousemove",this._drag=function(e,_8e6){var _8e7=e[axis]-_8da,_8e8=_8d5*_8e7+_8dd,_8e9=Math.max(Math.min(_8e8,max),min);if(_8e0||_8e6){mb[dim]=_8e9;dojo.marginBox(_8e2,mb);_8e3(_8de);}_8db[_8de]=_8d5*_8e7+_8df+(_8e9-_8e8)+"px";}),dojo.connect(dojo.doc,"ondragstart",dojo.stopEvent),dojo.connect(dojo.body(),"onselectstart",dojo.stopEvent),dojo.connect(de,"onmouseup",this,"_stopDrag")]);dojo.stopEvent(e);},_stopDrag:function(e){try{if(this.cover){dojo.removeClass(this.cover,"dijitSplitterCoverActive");}if(this.fake){dojo.destroy(this.fake);}dojo.removeClass(this.domNode,"dijitSplitterActive");dojo.removeClass(this.domNode,"dijitSplitterShadow");this._drag(e);this._drag(e,true);}finally{this._cleanupHandlers();if(this.oppNode){this.oppNode._recalc=true;}delete this._drag;}if(this.container.persist){dojo.cookie(this._cookieName,this.child.domNode.style[this.horizontal?"height":"width"],{expires:365});}},_cleanupHandlers:function(){dojo.forEach(this._handlers,dojo.disconnect);delete this._handlers;},_onKeyPress:function(e){if(this.child.domNode._recalc){this._computeMaxSize();this.child.domNode._recalc=false;}this._resize=true;var _8ec=this.horizontal;var tick=1;var dk=dojo.keys;switch(e.charOrCode){case _8ec?dk.UP_ARROW:dk.LEFT_ARROW:tick*=-1;case _8ec?dk.DOWN_ARROW:dk.RIGHT_ARROW:break;default:return;}var _8ef=dojo.marginBox(this.child.domNode)[_8ec?"h":"w"]+this._factor*tick;var mb={};mb[this.horizontal?"h":"w"]=Math.max(Math.min(_8ef,this._maxSize),this._minSize);dojo.marginBox(this.child.domNode,mb);if(this.oppNode){this.oppNode._recalc=true;}this.container._layoutChildren(this.region);dojo.stopEvent(e);},destroy:function(){this._cleanupHandlers();delete this.child;delete this.container;delete this.cover;delete this.fake;this.inherited(arguments);}});dojo.declare("dijit.layout._Gutter",[dijit._Widget,dijit._Templated],{templateString:"<div class=\"dijitGutter\" waiRole=\"presentation\"></div>",postCreate:function(){this.horizontal=/top|bottom/.test(this.region);dojo.addClass(this.domNode,"dijitGutter"+(this.horizontal?"H":"V"));}});}if(!dojo._hasResource["dijit.layout.LayoutContainer"]){dojo._hasResource["dijit.layout.LayoutContainer"]=true;dojo.provide("dijit.layout.LayoutContainer");dojo.declare("dijit.layout.LayoutContainer",dijit.layout._LayoutWidget,{baseClass:"dijitLayoutContainer",constructor:function(){dojo.deprecated("dijit.layout.LayoutContainer is deprecated","use BorderContainer instead",2);},layout:function(){dijit.layout.layoutChildren(this.domNode,this._contentBox,this.getChildren());},addChild:function(_8f1,_8f2){this.inherited(arguments);if(this._started){dijit.layout.layoutChildren(this.domNode,this._contentBox,this.getChildren());}},removeChild:function(_8f3){this.inherited(arguments);if(this._started){dijit.layout.layoutChildren(this.domNode,this._contentBox,this.getChildren());}}});dojo.extend(dijit._Widget,{layoutAlign:"none"});}if(!dojo._hasResource["dijit.layout.LinkPane"]){dojo._hasResource["dijit.layout.LinkPane"]=true;dojo.provide("dijit.layout.LinkPane");dojo.declare("dijit.layout.LinkPane",[dijit.layout.ContentPane,dijit._Templated],{templateString:"<div class=\"dijitLinkPane\" dojoAttachPoint=\"containerNode\"></div>",postMixInProperties:function(){if(this.srcNodeRef){this.title+=this.srcNodeRef.innerHTML;}this.inherited(arguments);},_fillContent:function(_8f4){}});}if(!dojo._hasResource["dijit.layout.SplitContainer"]){dojo._hasResource["dijit.layout.SplitContainer"]=true;dojo.provide("dijit.layout.SplitContainer");dojo.declare("dijit.layout.SplitContainer",dijit.layout._LayoutWidget,{constructor:function(){dojo.deprecated("dijit.layout.SplitContainer is deprecated","use BorderContainer with splitter instead",2);},activeSizing:false,sizerWidth:7,orientation:"horizontal",persist:true,baseClass:"dijitSplitContainer",postMixInProperties:function(){this.inherited("postMixInProperties",arguments);this.isHorizontal=(this.orientation=="horizontal");},postCreate:function(){this.inherited(arguments);this.sizers=[];if(dojo.isMozilla){this.domNode.style.overflow="-moz-scrollbars-none";}if(typeof this.sizerWidth=="object"){try{this.sizerWidth=parseInt(this.sizerWidth.toString());}catch(e){this.sizerWidth=7;}}var _8f5=dojo.doc.createElement("div");this.virtualSizer=_8f5;_8f5.style.position="relative";_8f5.style.zIndex=10;_8f5.className=this.isHorizontal?"dijitSplitContainerVirtualSizerH":"dijitSplitContainerVirtualSizerV";this.domNode.appendChild(_8f5);dojo.setSelectable(_8f5,false);},destroy:function(){delete this.virtualSizer;dojo.forEach(this._ownconnects,dojo.disconnect);this.inherited(arguments);},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_8f6,i,_8f8){this._setupChild(_8f6);if(i<_8f8.length-1){this._addSizer();}},this);if(this.persist){this._restoreState();}this.inherited(arguments);},_setupChild:function(_8f9){this.inherited(arguments);_8f9.domNode.style.position="absolute";dojo.addClass(_8f9.domNode,"dijitSplitPane");},_onSizerMouseDown:function(e){if(e.target.id){for(var i=0;i<this.sizers.length;i++){if(this.sizers[i].id==e.target.id){break;}}if(i<this.sizers.length){this.beginSizing(e,i);}}},_addSizer:function(_8fc){_8fc=_8fc===undefined?this.sizers.length:_8fc;var _8fd=dojo.doc.createElement("div");_8fd.id=dijit.getUniqueId("dijit_layout_SplitterContainer_Splitter");this.sizers.splice(_8fc,0,_8fd);this.domNode.appendChild(_8fd);_8fd.className=this.isHorizontal?"dijitSplitContainerSizerH":"dijitSplitContainerSizerV";var _8fe=dojo.doc.createElement("div");_8fe.className="thumb";_8fe.id=_8fd.id;_8fd.appendChild(_8fe);this.connect(_8fd,"onmousedown","_onSizerMouseDown");dojo.setSelectable(_8fd,false);},removeChild:function(_8ff){if(this.sizers.length){var i=dojo.indexOf(this.getChildren(),_8ff);if(i!=-1){if(i==this.sizers.length){i--;}dojo.destroy(this.sizers[i]);this.sizers.splice(i,1);}}this.inherited(arguments);if(this._started){this.layout();}},addChild:function(_901,_902){this.inherited(arguments);if(this._started){var _903=this.getChildren();if(_903.length>1){this._addSizer(_902);}this.layout();}},layout:function(){this.paneWidth=this._contentBox.w;this.paneHeight=this._contentBox.h;var _904=this.getChildren();if(!_904.length){return;}var _905=this.isHorizontal?this.paneWidth:this.paneHeight;if(_904.length>1){_905-=this.sizerWidth*(_904.length-1);}var _906=0;dojo.forEach(_904,function(_907){_906+=_907.sizeShare;});var _908=_905/_906;var _909=0;dojo.forEach(_904.slice(0,_904.length-1),function(_90a){var size=Math.round(_908*_90a.sizeShare);_90a.sizeActual=size;_909+=size;});_904[_904.length-1].sizeActual=_905-_909;this._checkSizes();var pos=0;var size=_904[0].sizeActual;this._movePanel(_904[0],pos,size);_904[0].position=pos;pos+=size;if(!this.sizers){return;}dojo.some(_904.slice(1),function(_90e,i){if(!this.sizers[i]){return true;}this._moveSlider(this.sizers[i],pos,this.sizerWidth);this.sizers[i].position=pos;pos+=this.sizerWidth;size=_90e.sizeActual;this._movePanel(_90e,pos,size);_90e.position=pos;pos+=size;},this);},_movePanel:function(_910,pos,size){if(this.isHorizontal){_910.domNode.style.left=pos+"px";_910.domNode.style.top=0;var box={w:size,h:this.paneHeight};if(_910.resize){_910.resize(box);}else{dojo.marginBox(_910.domNode,box);}}else{_910.domNode.style.left=0;_910.domNode.style.top=pos+"px";var box={w:this.paneWidth,h:size};if(_910.resize){_910.resize(box);}else{dojo.marginBox(_910.domNode,box);}}},_moveSlider:function(_914,pos,size){if(this.isHorizontal){_914.style.left=pos+"px";_914.style.top=0;dojo.marginBox(_914,{w:size,h:this.paneHeight});}else{_914.style.left=0;_914.style.top=pos+"px";dojo.marginBox(_914,{w:this.paneWidth,h:size});}},_growPane:function(_917,pane){if(_917>0){if(pane.sizeActual>pane.sizeMin){if((pane.sizeActual-pane.sizeMin)>_917){pane.sizeActual=pane.sizeActual-_917;_917=0;}else{_917-=pane.sizeActual-pane.sizeMin;pane.sizeActual=pane.sizeMin;}}}return _917;},_checkSizes:function(){var _919=0;var _91a=0;var _91b=this.getChildren();dojo.forEach(_91b,function(_91c){_91a+=_91c.sizeActual;_919+=_91c.sizeMin;});if(_919<=_91a){var _91d=0;dojo.forEach(_91b,function(_91e){if(_91e.sizeActual<_91e.sizeMin){_91d+=_91e.sizeMin-_91e.sizeActual;_91e.sizeActual=_91e.sizeMin;}});if(_91d>0){var list=this.isDraggingLeft?_91b.reverse():_91b;dojo.forEach(list,function(_920){_91d=this._growPane(_91d,_920);},this);}}else{dojo.forEach(_91b,function(_921){_921.sizeActual=Math.round(_91a*(_921.sizeMin/_919));});}},beginSizing:function(e,i){var _924=this.getChildren();this.paneBefore=_924[i];this.paneAfter=_924[i+1];this.isSizing=true;this.sizingSplitter=this.sizers[i];if(!this.cover){this.cover=dojo.create("div",{style:{position:"absolute",zIndex:5,top:0,left:0,width:"100%",height:"100%"}},this.domNode);}else{this.cover.style.zIndex=5;}this.sizingSplitter.style.zIndex=6;this.originPos=dojo.coords(_924[0].domNode,true);if(this.isHorizontal){var _925=e.layerX||e.offsetX||0;var _926=e.pageX;this.originPos=this.originPos.x;}else{var _925=e.layerY||e.offsetY||0;var _926=e.pageY;this.originPos=this.originPos.y;}this.startPoint=this.lastPoint=_926;this.screenToClientOffset=_926-_925;this.dragOffset=this.lastPoint-this.paneBefore.sizeActual-this.originPos-this.paneBefore.position;if(!this.activeSizing){this._showSizingLine();}this._ownconnects=[];this._ownconnects.push(dojo.connect(dojo.doc.documentElement,"onmousemove",this,"changeSizing"));this._ownconnects.push(dojo.connect(dojo.doc.documentElement,"onmouseup",this,"endSizing"));dojo.stopEvent(e);},changeSizing:function(e){if(!this.isSizing){return;}this.lastPoint=this.isHorizontal?e.pageX:e.pageY;this.movePoint();if(this.activeSizing){this._updateSize();}else{this._moveSizingLine();}dojo.stopEvent(e);},endSizing:function(e){if(!this.isSizing){return;}if(this.cover){this.cover.style.zIndex=-1;}if(!this.activeSizing){this._hideSizingLine();}this._updateSize();this.isSizing=false;if(this.persist){this._saveState(this);}dojo.forEach(this._ownconnects,dojo.disconnect);},movePoint:function(){var p=this.lastPoint-this.screenToClientOffset;var a=p-this.dragOffset;a=this.legaliseSplitPoint(a);p=a+this.dragOffset;this.lastPoint=p+this.screenToClientOffset;},legaliseSplitPoint:function(a){a+=this.sizingSplitter.position;this.isDraggingLeft=!!(a>0);if(!this.activeSizing){var min=this.paneBefore.position+this.paneBefore.sizeMin;if(a<min){a=min;}var max=this.paneAfter.position+(this.paneAfter.sizeActual-(this.sizerWidth+this.paneAfter.sizeMin));if(a>max){a=max;}}a-=this.sizingSplitter.position;this._checkSizes();return a;},_updateSize:function(){var pos=this.lastPoint-this.dragOffset-this.originPos;var _92f=this.paneBefore.position;var _930=this.paneAfter.position+this.paneAfter.sizeActual;this.paneBefore.sizeActual=pos-_92f;this.paneAfter.position=pos+this.sizerWidth;this.paneAfter.sizeActual=_930-this.paneAfter.position;dojo.forEach(this.getChildren(),function(_931){_931.sizeShare=_931.sizeActual;});if(this._started){this.layout();}},_showSizingLine:function(){this._moveSizingLine();dojo.marginBox(this.virtualSizer,this.isHorizontal?{w:this.sizerWidth,h:this.paneHeight}:{w:this.paneWidth,h:this.sizerWidth});this.virtualSizer.style.display="block";},_hideSizingLine:function(){this.virtualSizer.style.display="none";},_moveSizingLine:function(){var pos=(this.lastPoint-this.startPoint)+this.sizingSplitter.position;dojo.style(this.virtualSizer,(this.isHorizontal?"left":"top"),pos+"px");},_getCookieName:function(i){return this.id+"_"+i;},_restoreState:function(){dojo.forEach(this.getChildren(),function(_934,i){var _936=this._getCookieName(i);var _937=dojo.cookie(_936);if(_937){var pos=parseInt(_937);if(typeof pos=="number"){_934.sizeShare=pos;}}},this);},_saveState:function(){if(!this.persist){return;}dojo.forEach(this.getChildren(),function(_939,i){dojo.cookie(this._getCookieName(i),_939.sizeShare,{expires:365});},this);}});dojo.extend(dijit._Widget,{sizeMin:10,sizeShare:10});}if(!dojo._hasResource["dijit.layout.TabController"]){dojo._hasResource["dijit.layout.TabController"]=true;dojo.provide("dijit.layout.TabController");dojo.declare("dijit.layout.TabController",dijit.layout.StackController,{templateString:"<div wairole='tablist' dojoAttachEvent='onkeypress:onkeypress'></div>",tabPosition:"top",doLayout:true,buttonWidget:"dijit.layout._TabButton",_rectifyRtlTabList:function(){if(0>=this.tabPosition.indexOf("-h")){return;}if(!this.pane2button){return;}var _93b=0;for(var pane in this.pane2button){var ow=this.pane2button[pane].innerDiv.scrollWidth;_93b=Math.max(_93b,ow);}for(pane in this.pane2button){this.pane2button[pane].innerDiv.style.width=_93b+"px";}}});dojo.declare("dijit.layout._TabButton",dijit.layout._StackButton,{baseClass:"dijitTab",templateString:"<div waiRole=\"presentation\" dojoAttachEvent='onclick:onClick,onmouseenter:_onMouse,onmouseleave:_onMouse'>\n    <div waiRole=\"presentation\" class='dijitTabInnerDiv' dojoAttachPoint='innerDiv'>\n        <div waiRole=\"presentation\" class='dijitTabContent' dojoAttachPoint='tabContent'>\n\t        <span dojoAttachPoint='containerNode,focusNode' class='tabLabel'>${!label}</span><img class =\"dijitTabButtonSpacer\" src=\"${_blankGif}\" />\n\t        <span class=\"closeButton\" dojoAttachPoint='closeNode'\n\t        \t\tdojoAttachEvent='onclick: onClickCloseButton, onmouseenter: _onCloseButtonEnter, onmouseleave: _onCloseButtonLeave'>\n\t        \t<img src=\"${_blankGif}\" alt=\"\" dojoAttachPoint='closeIcon' class='closeImage' waiRole=\"presentation\"/>\n\t            <span dojoAttachPoint='closeText' class='closeText'>x</span>\n\t        </span>\n        </div>\n    </div>\n</div>\n",scrollOnFocus:false,postCreate:function(){if(this.closeButton){dojo.addClass(this.innerDiv,"dijitClosable");var _93e=dojo.i18n.getLocalization("dijit","common");if(this.closeNode){dojo.attr(this.closeNode,"title",_93e.itemClose);dojo.attr(this.closeIcon,"title",_93e.itemClose);}}else{this.closeNode.style.display="none";}this.inherited(arguments);dojo.setSelectable(this.containerNode,false);},_onCloseButtonEnter:function(){dojo.addClass(this.closeNode,"closeButton-hover");},_onCloseButtonLeave:function(){dojo.removeClass(this.closeNode,"closeButton-hover");}});}if(!dojo._hasResource["dijit.layout.TabContainer"]){dojo._hasResource["dijit.layout.TabContainer"]=true;dojo.provide("dijit.layout.TabContainer");dojo.declare("dijit.layout.TabContainer",[dijit.layout.StackContainer,dijit._Templated],{tabPosition:"top",baseClass:"dijitTabContainer",tabStrip:false,nested:false,templateString:null,templateString:"<div class=\"dijitTabContainer\">\n\t<div dojoAttachPoint=\"tablistNode\"></div>\n\t<div dojoAttachPoint=\"tablistSpacer\" class=\"dijitTabSpacer ${baseClass}-spacer\"></div>\n\t<div class=\"dijitTabPaneWrapper ${baseClass}-container\" dojoAttachPoint=\"containerNode\"></div>\n</div>\n",_controllerWidget:"dijit.layout.TabController",postMixInProperties:function(){this.baseClass+=this.tabPosition.charAt(0).toUpperCase()+this.tabPosition.substr(1).replace(/-.*/,"");this.inherited(arguments);},postCreate:function(){this.inherited(arguments);var _93f=dojo.getObject(this._controllerWidget);this.tablist=new _93f({id:this.id+"_tablist",tabPosition:this.tabPosition,doLayout:this.doLayout,containerId:this.id,"class":this.baseClass+"-tabs"+(this.doLayout?"":" dijitTabNoLayout")},this.tablistNode);if(this.tabStrip){dojo.addClass(this.tablist.domNode,this.baseClass+"Strip");}if(!this.doLayout){dojo.addClass(this.domNode,"dijitTabContainerNoLayout");}if(this.nested){dojo.addClass(this.domNode,"dijitTabContainerNested");dojo.addClass(this.tablist.domNode,"dijitTabContainerTabListNested");dojo.addClass(this.tablistSpacer,"dijitTabContainerSpacerNested");dojo.addClass(this.containerNode,"dijitTabPaneWrapperNested");}},_setupChild:function(tab){dojo.addClass(tab.domNode,"dijitTabPane");this.inherited(arguments);return tab;},startup:function(){if(this._started){return;}this.tablist.startup();this.inherited(arguments);},layout:function(){if(!this.doLayout){return;}var _941=this.tabPosition.replace(/-h/,"");var _942=[{domNode:this.tablist.domNode,layoutAlign:_941},{domNode:this.tablistSpacer,layoutAlign:_941},{domNode:this.containerNode,layoutAlign:"client"}];dijit.layout.layoutChildren(this.domNode,this._contentBox,_942);this._containerContentBox=dijit.layout.marginBox2contentBox(this.containerNode,_942[2]);if(this.selectedChildWidget){this._showChild(this.selectedChildWidget);if(this.doLayout&&this.selectedChildWidget.resize){this.selectedChildWidget.resize(this._containerContentBox);}}},destroy:function(){if(this.tablist){this.tablist.destroy();}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.dijit-all"]){dojo._hasResource["dijit.dijit-all"]=true;console.warn("dijit-all may include much more code than your application actually requires. We strongly recommend that you investigate a custom build or the web build tool");dojo.provide("dijit.dijit-all");}dojo.i18n._preloadLocalizations("dijit.nls.dijit-all",["ROOT","ar","ca","cs","da","de","de-de","el","en","en-gb","en-us","es","es-es","fi","fi-fi","fr","fr-fr","he","he-il","hu","it","it-it","ja","ja-jp","ko","ko-kr","nl","nl-nl","no","pl","pt","pt-br","pt-pt","ru","sk","sl","sv","th","tr","xx","zh","zh-cn","zh-tw"]);
