/*
	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:"",replaceVars:true,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;};}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 _a1=n.scrollLeft,_a2=n.scrollTop;n.scrollLeft=n.scrollLeft+dx;n.scrollTop=n.scrollTop+dy;if(_a1!=n.scrollLeft||_a2!=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(_a3,e,_a5){this.node=dojo.byId(_a3);this.marginBox={l:e.pageX,t:e.pageY};this.mouseButton=e.button;var h=this.host=_a5,d=_a3.ownerDocument,_a8=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),_a8];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(_b6,_b7){this.node=dojo.byId(_b6);if(!_b7){_b7={};}this.handle=_b7.handle?dojo.byId(_b7.handle):null;if(!this.handle){this.handle=this.node;}this.delay=_b7.delay>0?_b7.delay:0;this.skip=_b7.skip;this.mover=_b7.mover?_b7.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(_b8,_b9){return new dojo.dnd.Moveable(_b9,_b8);},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(_c0){dojo.publish("/dnd/move/start",[_c0]);dojo.addClass(dojo.body(),"dojoMove");dojo.addClass(this.node,"dojoMoveItem");},onMoveStop:function(_c1){dojo.publish("/dnd/move/stop",[_c1]);dojo.removeClass(dojo.body(),"dojoMove");dojo.removeClass(this.node,"dojoMoveItem");},onFirstMove:function(_c2){},onMove:function(_c3,_c4){this.onMoving(_c3,_c4);var s=_c3.node.style;s.left=_c4.l+"px";s.top=_c4.t+"px";this.onMoved(_c3,_c4);},onMoving:function(_c6,_c7){},onMoved:function(_c8,_c9){}});}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(_ca,_cb){return new dojo.dnd.move.constrainedMoveable(_cb,_ca);},constructor:function(_cc,_cd){if(!_cd){_cd={};}this.constraints=_cd.constraints;this.within=_cd.within;},onFirstMove:function(_ce){var c=this.constraintBox=this.constraints.call(this,_ce);c.r=c.l+c.w;c.b=c.t+c.h;if(this.within){var mb=dojo.marginBox(_ce.node);c.r-=mb.w;c.b-=mb.h;}},onMove:function(_d1,_d2){var c=this.constraintBox,s=_d1.node.style;s.left=(_d2.l<c.l?c.l:c.r<_d2.l?c.r:_d2.l)+"px";s.top=(_d2.t<c.t?c.t:c.b<_d2.t?c.b:_d2.t)+"px";}});dojo.declare("dojo.dnd.move.boxConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{box:{},markupFactory:function(_d5,_d6){return new dojo.dnd.move.boxConstrainedMoveable(_d6,_d5);},constructor:function(_d7,_d8){var box=_d8&&_d8.box;this.constraints=function(){return box;};}});dojo.declare("dojo.dnd.move.parentConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(_da,_db){return new dojo.dnd.move.parentConstrainedMoveable(_db,_da);},constructor:function(_dc,_dd){var _de=_dd&&_dd.area;this.constraints=function(){var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);if(_de=="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(_de=="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(_de=="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,_e4){dojo.deprecated("dojo.dnd.move.constrainedMover, use dojo.dnd.move.constrainedMoveable instead");var _e5=function(_e6,e,_e8){dojo.dnd.Mover.call(this,_e6,e,_e8);};dojo.extend(_e5,dojo.dnd.Mover.prototype);dojo.extend(_e5,{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(_e4){var mb=dojo.marginBox(this.node);c.r-=mb.w;c.b-=mb.h;}}});return _e5;};dojo.dnd.move.boxConstrainedMover=function(box,_f1){dojo.deprecated("dojo.dnd.move.boxConstrainedMover, use dojo.dnd.move.boxConstrainedMoveable instead");return dojo.dnd.move.constrainedMover(function(){return box;},_f1);};dojo.dnd.move.parentConstrainedMover=function(_f2,_f3){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(_f2=="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(_f2=="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(_f2=="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,_f3);};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 _f9=dojo.dnd.Moveable.prototype.onMove;dojo.declare("dojo.dnd.TimedMoveable",dojo.dnd.Moveable,{timeout:40,constructor:function(_fa,_fb){if(!_fb){_fb={};}if(_fb.timeout&&typeof _fb.timeout=="number"&&_fb.timeout>=0){this.timeout=_fb.timeout;}},markupFactory:function(_fc,_fd){return new dojo.dnd.TimedMoveable(_fd,_fc);},onMoveStop:function(_fe){if(_fe._timer){clearTimeout(_fe._timer);_f9.call(this,_fe,_fe._leftTop);}dojo.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);},onMove:function(_ff,_100){_ff._leftTop=_100;if(!_ff._timer){var _t=this;_ff._timer=setTimeout(function(){_ff._timer=null;_f9.call(_t,_ff,_ff._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(_104){return this.showAnim.play(_104||0);},hide:function(_105){return this.hideAnim.play(_105||0);}});}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");(function(){var d=dojo,_107={_fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[]);}return this;}};var _10a=function(_10b){this._index=-1;this._animations=_10b||[];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(_10a,{_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(_10d,_10e){if(!this._current){this._current=this._animations[this._index=0];}if(!_10e&&this._current.status()=="playing"){return this;}var _10f=d.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_110=d.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_112=d.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);d.disconnect(_10f);d.disconnect(_110);d.disconnect(_112);});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(_116,_117){this.pause();var _118=this.duration*_116;this._current=null;d.some(this._animations,function(a){if(a.duration<=_118){this._current=a;return true;}_118-=a.duration;return false;});if(this._current){this._current.gotoPercent(_118/this._current.duration,_117);}return this;},stop:function(_11a){if(this._current){if(_11a){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(_10a,_107);dojo.fx.chain=function(_11d){return new _10a(_11d);};var _11e=function(_11f){this._animations=_11f||[];this._connects=[];this._finished=0;this.duration=0;d.forEach(_11f,function(a){var _121=a.duration;if(a.delay){_121+=a.delay;}if(this.duration<_121){this.duration=_121;}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(_11e,{_doAction:function(_124,args){d.forEach(this._animations,function(a){a[_124].apply(a,args);});return this;},_onEnd:function(){if(++this._finished==this._animations.length){this._fire("onEnd");}},_call:function(_127,args){var t=this._pseudoAnimation;t[_127].apply(t,args);},play:function(_12a,_12b){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(_12c,_12d){var ms=this.duration*_12c;d.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_12d);});this._call("gotoPercent",arguments);return this;},stop:function(_130){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(_11e,_107);dojo.fx.combine=function(_131){return new _11e(_131);};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 _137=d.style(node,"height");return Math.max(_137,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(_147){if(_147.reset){_147.reset();}});},validate:function(){var _148=false;return dojo.every(dojo.map(this.getDescendants(),function(_149){_149._hasBeenBlurred=true;var _14a=_149.disabled||!_149.validate||_149.validate();if(!_14a&&!_148){dijit.scrollIntoView(_149.containerNode||_149.domNode);_149.focus();_148=true;}return _14a;}),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(_14f){if(!_14f.name){return;}var _150=map[_14f.name]||(map[_14f.name]=[]);_150.push(_14f);});for(var name in map){if(!map.hasOwnProperty(name)){continue;}var _152=map[name],_153=dojo.getObject(name,false,obj);if(_153===undefined){continue;}if(!dojo.isArray(_153)){_153=[_153];}if(typeof _152[0].checked=="boolean"){dojo.forEach(_152,function(w,i){w.attr("value",dojo.indexOf(_153,w.value)!=-1);});}else{if(_152[0]._multiValue){_152[0].attr("value",_153);}else{dojo.forEach(_152,function(w,i){w.attr("value",_153[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(_159){var name=_159.name;if(!name||_159.disabled){return;}var _15b=_159.attr("value");if(typeof _159.checked=="boolean"){if(/Radio/.test(_159.declaredClass)){if(_15b!==false){dojo.setObject(name,_15b,obj);}else{_15b=dojo.getObject(name,false,obj);if(_15b===undefined){dojo.setObject(name,null,obj);}}}else{var ary=dojo.getObject(name,false,obj);if(!ary){ary=[];dojo.setObject(name,ary,obj);}if(_15b!==false){ary.push(_15b);}}}else{dojo.setObject(name,_15b,obj);}});return obj;},isValid:function(){this._invalidWidgets=[];return dojo.every(this.getDescendants(),function(_15d){var _15e=_15d.disabled||!_15d.isValid||_15d.isValid();if(!_15e){this._invalidWidgets.push(_15d);}return _15e;},this);},onValidStateChange:function(_15f){},_widgetChange:function(_160){var _161=this._lastValidState;if(!_160||this._lastValidState===undefined){_161=this.isValid();if(this._lastValidState===undefined){this._lastValidState=_161;}}else{if(_160.isValid){this._invalidWidgets=dojo.filter(this._invalidWidgets||[],function(w){return (w!=_160);},this);if(!_160.isValid()&&!_160.attr("disabled")){this._invalidWidgets.push(_160);}_161=(this._invalidWidgets.length===0);}}if(_161!==this._lastValidState){this._lastValidState=_161;this.onValidStateChange(_161);}},connectChildren:function(){dojo.forEach(this._changeConnections,dojo.hitch(this,"disconnect"));var _163=this;var _164=this._changeConnections=[];dojo.forEach(dojo.filter(this.getDescendants(),function(item){return item.validate;}),function(_166){_164.push(_163.connect(_166,"validate",dojo.hitch(_163,"_widgetChange",_166)));_164.push(_163.connect(_166,"_setDisabledAttr",dojo.hitch(_163,"_widgetChange",_166)));});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(_167){},onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.attr("value"));},_getFocusItems:function(_168){var _169=dijit._getTabNavigable(dojo.byId(_168));this._firstFocusItem=_169.lowest||_169.first||_168;this._lastFocusItem=_169.last||_169.highest||this._firstFocusItem;if(dojo.isMoz&&this._firstFocusItem.tagName.toLowerCase()=="input"&&dojo.attr(this._firstFocusItem,"type").toLowerCase()=="file"){dojo.attr(_168,"tabindex","0");this._firstFocusItem=_168;}}});}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(_16b){this.node.className="dijitDialogUnderlay "+_16b;},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 _16e=dijit.getViewport();os.top=_16e.t+"px";os.left=_16e.l+"px";is.width=_16e.w+"px";is.height=_16e.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 _16f=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,_173){if(_173){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(_17b,node){dojo.mixin(this,_17b||{});node=this.node=dojo.byId(this.node||node);if(!this.id){this.id=["Setter",(node)?node.id||node.tagName:"",_16f++].join("_");}if(!(this.node||node)){new Error(this.declaredClass+": no node provided to "+this.id);}},set:function(cont,_17e){if(undefined!==cont){this.content=cont;}if(_17e){this._mixin(_17e);}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 _180=this.onContentError(e);try{node.innerHTML=_180;}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 _183=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_183){cont=_183[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(_185){var _186={},key;for(key in _185){if(key in _186){continue;}this[key]=_185[key];}},_parse:function(){var _188=this.node;try{this.parseResults=dojo.parser.parse(_188,true);}catch(e){this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);}},_onError:function(type,err,_18b){var _18c=this["on"+type+"Error"].call(this,err);if(_18b){console.error(_18b,err);}else{if(_18c){dojo.html._setNodeContent(this.node,_18c,true);}}}});dojo.html.set=function(node,cont,_18f){if(undefined==cont){console.warn("dojo.html.set: no cont argument provided, using empty string");cont="";}if(!_18f){return dojo.html._setNodeContent(node,cont,true);}else{var op=new dojo.html._ContentSetter(dojo.mixin(_18f,{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,dijit._Container,dijit._Contained],{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:{},postMixInProperties:function(){this.inherited(arguments);var _191=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_191);this.errorMessage=dojo.string.substitute(this.errorMessage,_191);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(!dijit.hasWaiRole(this.domNode)){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(_192){_192.startup();});if(this.doLayout){this._checkIfSingleChild();}if(!this._singleChild||!this.getParent()){this._scheduleLayout();}}this._loadCheck();this.inherited(arguments);},_checkIfSingleChild:function(){var _193=dojo.query(">",this.containerNode),_194=_193.filter(function(node){return dojo.hasAttr(node,"dojoType")||dojo.hasAttr(node,"widgetId");}),_196=dojo.filter(_194.map(dijit.byNode),function(_197){return _197&&_197.domNode&&_197.resize;});if(_193.length==_194.length&&_196.length==1){this._singleChild=_196[0];}else{delete this._singleChild;}},setHref:function(href){dojo.deprecated("dijit.layout.ContentPane.setHref() is deprecated.\tUse 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(_19c){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();},_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 _1a3={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};if(dojo.isObject(this.ioArgs)){dojo.mixin(_1a3,this.ioArgs);}var hand=this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_1a3);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 _1a8=this._contentSetter;dojo.forEach(this.getDescendants(true),function(_1a9){if(_1a9.destroyRecursive){_1a9.destroyRecursive();}});if(_1a8){dojo.forEach(_1a8.parseResults,function(_1aa){if(_1aa.destroyRecursive&&_1aa.domNode&&_1aa.domNode.parentNode==dojo.body()){_1aa.destroyRecursive();}});delete _1a8.parseResults;}dojo.html._emptyNode(this.containerNode);},_setContent:function(cont,_1ac){this.destroyDescendants();var _1ad=this._contentSetter;if(!(_1ad&&_1ad instanceof dojo.html._ContentSetter)){_1ad=this._contentSetter=new dojo.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){var _1af=this.onContentError(e);try{this.containerNode.innerHTML=_1af;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}})});}var _1b0=dojo.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad},this._contentSetterParams||{});dojo.mixin(_1ad,_1b0);_1ad.set((dojo.isObject(cont)&&cont.domNode)?cont.domNode:cont);delete this._contentSetterParams;if(!_1ac){dojo.forEach(this.getChildren(),function(_1b1){_1b1.startup();});if(this.doLayout){this._checkIfSingleChild();}this._scheduleLayout();this._onLoadHandler(cont);}},_onError:function(type,err,_1b4){var _1b5=this["on"+type+"Error"].call(this,err);if(_1b4){console.error(_1b4,err);}else{if(_1b5){this._setContent(_1b5,true);}}},getChildren:function(){return this.getDescendants(true);},addChild:function(_1b6,_1b7){this.inherited(arguments);if(this._started&&_1b6.resize){_1b6.resize();}},_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(_1b9){if(_1b9.resize){_1b9.resize();}});}delete this._needLayout;},onLoad:function(data){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage;},onContentError:function(_1bb){},onDownloadError:function(_1bc){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,_1be,_1bf){var c=this._currentOrientClass;if(c){dojo.removeClass(this.domNode,c);}c="dijitTooltipAB"+(_1bf.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_1bf.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 _1c5=(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(!_1c5){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_1c5){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,postMixInProperties:function(){var _1c6=dojo.i18n.getLocalization("dijit","common");dojo.mixin(this,_1c6);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 _1cb={dialogId:this.id,"class":dojo.map(this["class"].split(/\s/),function(s){return s+"_underlay";}).join(" ")};var _1cd=dijit._underlay;if(!_1cd){_1cd=dijit._underlay=new dijit.DialogUnderlay(_1cb);}this._fadeIn=dojo.fadeIn({node:node,duration:this.duration,beforeBegin:function(){_1cd.attr(_1cb);_1cd.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(){if(this._fadeIn&&this._fadeIn.status()=="playing"){this._fadeIn.stop();}if(this._fadeOut&&this._fadeOut.status()=="playing"){this._fadeOut.stop();}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,"layout"));this._modalconnects.push(dojo.connect(dojo.doc.documentElement,"onkeypress",this,"_onKey"));dojo.style(this.domNode,{opacity:0,visibility:""});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 _1d8="text";var oSel;try{oSel=dojo.global.getSelection();}catch(e){}if(oSel&&oSel.rangeCount==1){var _1da=oSel.getRangeAt(0);if((_1da.startContainer==_1da.endContainer)&&((_1da.endOffset-_1da.startOffset)==1)&&(_1da.startContainer.nodeType!=3)){_1d8="control";}}return _1d8;}},getSelectedText:function(){if(dojo.doc.selection){if(dijit._editor.selection.getType()=="control"){return null;}return dojo.doc.selection.createRange().text;}else{var _1db=dojo.global.getSelection();if(_1db){return _1db.toString();}}return "";},getSelectedHtml:function(){if(dojo.doc.selection){if(dijit._editor.selection.getType()=="control"){return null;}return dojo.doc.selection.createRange().htmlText;}else{var _1dc=dojo.global.getSelection();if(_1dc&&_1dc.rangeCount){var frag=_1dc.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 _1df=dojo.doc.selection.createRange();if(_1df&&_1df.item){return dojo.doc.selection.createRange().item(0);}}else{var _1e0=dojo.global.getSelection();return _1e0.anchorNode.childNodes[_1e0.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 _1e3=dojo.global.getSelection();if(_1e3){var node=_1e3.anchorNode;while(node&&(node.nodeType!=1)){node=node.parentNode;}return node;}}}return null;},hasAncestorElement:function(_1e5){return this.getAncestorElement.apply(this,arguments)!=null;},getAncestorElement:function(_1e6){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(_1ef){if(window["getSelection"]){var _1f0=dojo.global.getSelection();if(_1f0.removeAllRanges){if(_1ef){_1f0.collapseToStart();}else{_1f0.collapseToEnd();}}else{_1f0.collapse(_1ef);}}else{if(dojo.doc.selection){var _1f1=dojo.doc.selection.createRange();_1f1.collapse(_1ef);_1f1.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(_1f3,_1f4){var _1f5=dojo.global;var _1f6=dojo.doc;_1f3=dojo.byId(_1f3);if(_1f6.selection&&dojo.body().createTextRange){var _1f7=_1f3.ownerDocument.body.createTextRange();_1f7.moveToElementText(_1f3);if(!_1f4){try{_1f7.select();}catch(e){}}}else{if(_1f5.getSelection){var _1f8=_1f5.getSelection();if(_1f8.setBaseAndExtent){_1f8.setBaseAndExtent(_1f3,0,_1f3,_1f3.innerText.length-1);}else{if(_1f8.selectAllChildren){_1f8.selectAllChildren(_1f3);}}}}},selectElement:function(_1f9,_1fa){var _1fb,_1fc=dojo.doc;_1f9=dojo.byId(_1f9);if(_1fc.selection&&dojo.body().createTextRange){try{_1fb=dojo.body().createControlRange();_1fb.addElement(_1f9);if(!_1fa){_1fb.select();}}catch(e){this.selectElementChildren(_1f9,_1fa);}}else{if(dojo.global.getSelection){var _1fd=dojo.global.getSelection();if(_1fd.removeAllRanges){_1fb=_1fc.createRange();_1fb.selectNode(_1f9);_1fd.removeAllRanges();_1fd.addRange(_1fb);}}}}});}if(!dojo._hasResource["dijit._editor.range"]){dojo._hasResource["dijit._editor.range"]=true;dojo.provide("dijit._editor.range");dijit.range={};dijit.range.getIndex=function(node,_1ff){var ret=[],retR=[];var stop=_1ff;var _203=node;var _204,n;while(node!=stop){var i=0;_204=node.parentNode;while((n=_204.childNodes[i++])){if(n===node){--i;break;}}if(i>=_204.childNodes.length){dojo.debug("Error finding index of a node in dijit.range.getIndex");}ret.unshift(i);retR.unshift(i-_204.childNodes.length);node=_204;}if(ret.length>0&&_203.nodeType==3){n=_203.previousSibling;while(n&&n.nodeType==3){ret[ret.length-1]--;n=n.previousSibling;}n=_203.nextSibling;while(n&&n.nodeType==3){retR[retR.length-1]++;n=n.nextSibling;}}return {o:ret,r:retR};};dijit.range.getNode=function(_207,_208){if(!dojo.isArray(_207)||_207.length==0){return _208;}var node=_208;dojo.every(_207,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 _20d=function(n){var as=[];while(n){as.unshift(n);if(n.nodeName!="BODY"){n=n.parentNode;}else{break;}}return as;};var n1as=_20d(n1);var n2as=_20d(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,_216,root){root=root||node.ownerDocument.body;while(node&&node!==root){var name=node.nodeName.toUpperCase();if(_216.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,_21a,root){root=root||node.ownerDocument.body;_21a=_21a||dijit.range.BlockTagNames;var _21c=null,_21d;while(node&&node!==root){var name=node.nodeName.toUpperCase();if(!_21c&&_21a.test(name)){_21c=node;}if(!_21d&&(/^(?:BODY|TD|TH|CAPTION)$/).test(name)){_21d=node;}node=node.parentNode;}return {blockNode:_21c,blockContainer:_21d||node.ownerDocument.body};};dijit.range.atBeginningOfContainer=function(_21f,node,_221){var _222=false;var _223=(_221==0);if(!_223&&node.nodeType==3){if(dojo.trim(node.nodeValue.substr(0,_221))==0){_223=true;}}if(_223){var _224=node;_222=true;while(_224&&_224!==_21f){if(_224.previousSibling){_222=false;break;}_224=_224.parentNode;}}return _222;};dijit.range.atEndOfContainer=function(_225,node,_227){var _228=false;var _229=(_227==(node.length||node.childNodes.length));if(!_229&&node.nodeType==3){if(dojo.trim(node.nodeValue.substr(_227))==0){_229=true;}}if(_229){var _22a=node;_228=true;while(_22a&&_22a!==_225){if(_22a.nextSibling){_228=false;break;}_22a=_22a.parentNode;}}return _228;};dijit.range.adjacentNoneTextNode=function(_22b,next){var node=_22b;var len=(0-_22b.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,_231){if(dijit.range._w3c){return win.getSelection();}else{var s=new dijit.range.ie.selection(win);if(!_231){s._getCurrentSelection();}return s;}};if(!dijit.range._w3c){dijit.range.ie={cachedSelection:{},selection:function(win){this._ranges=[];this.addRange=function(r,_235){this._ranges.push(r);if(!_235){r._select();}this.rangeCount=this._ranges.length;};this.removeAllRanges=function(){this._ranges=[];this.rangeCount=0;};var _236=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=_236();if(r){this.addRange(r,true);}};},decomposeControlRange:function(_23b){var _23c=_23b.item(0),_23d=_23b.item(_23b.length-1);var _23e=_23c.parentNode,_23f=_23d.parentNode;var _240=dijit.range.getIndex(_23c,_23e).o;var _241=dijit.range.getIndex(_23d,_23f).o+1;return [_23e,_240,_23f,_241];},getEndPoint:function(_242,end){var _244=_242.duplicate();_244.collapse(!end);var _245="EndTo"+(end?"End":"Start");var _246=_244.parentElement();var _247,_248,_249;if(_246.childNodes.length>0){dojo.every(_246.childNodes,function(node,i){var _24c;if(node.nodeType!=3){_244.moveToElementText(node);if(_244.compareEndPoints(_245,_242)>0){_247=node.previousSibling;if(_249&&_249.nodeType==3){_247=_249;_24c=true;}else{_247=_246;_248=i;return false;}}else{if(i==_246.childNodes.length-1){_247=_246;_248=_246.childNodes.length;return false;}}}else{if(i==_246.childNodes.length-1){_247=node;_24c=true;}}if(_24c&&_247){var _24d=dijit.range.adjacentNoneTextNode(_247)[0];if(_24d){_247=_24d.nextSibling;}else{_247=_246.firstChild;}var _24e=dijit.range.adjacentNoneTextNode(_247);_24d=_24e[0];var _24f=_24e[1];if(_24d){_244.moveToElementText(_24d);_244.collapse(false);}else{_244.moveToElementText(_246);}_244.setEndPoint(_245,_242);_248=_244.text.length-_24f;return false;}_249=node;return true;});}else{_247=_246;_248=0;}if(!end&&_247.nodeType!=3&&_248==_247.childNodes.length){if(_247.nextSibling&&_247.nextSibling.nodeType==3){_247=_247.nextSibling;_248=0;}}return [_247,_248];},setEndPoint:function(_250,_251,_252){var _253=_250.duplicate(),node,len;if(_251.nodeType!=3){if(_252>0){node=_251.childNodes[_252-1];if(node.nodeType==3){_251=node;_252=node.length;}else{if(node.nextSibling&&node.nextSibling.nodeType==3){_251=node.nextSibling;_252=0;}else{_253.moveToElementText(node.nextSibling?node:_251);var _256=node.parentNode.insertBefore(document.createTextNode(" "),node.nextSibling);_253.collapse(false);_256.parentNode.removeChild(_256);}}}else{_253.moveToElementText(_251);_253.collapse(true);}}if(_251.nodeType==3){var _257=dijit.range.adjacentNoneTextNode(_251);var _258=_257[0];len=_257[1];if(_258){_253.moveToElementText(_258);_253.collapse(false);if(_258.contentEditable!="inherit"){len++;}}else{_253.moveToElementText(_251.parentNode);_253.collapse(true);}_252+=len;if(_252>0){if(_253.move("character",_252)!=_252){console.error("Error when moving!");}}}return _253;},decomposeTextRange:function(_259){var _25a=dijit.range.ie.getEndPoint(_259);var _25b=_25a[0],_25c=_25a[1];var _25d=_25a[0],_25e=_25a[1];if(_259.htmlText.length){if(_259.htmlText==_259.text){_25e=_25c+_259.text.length;}else{_25a=dijit.range.ie.getEndPoint(_259,true);_25d=_25a[0],_25e=_25a[1];}}return [_25b,_25c,_25d,_25e];},setRange:function(_25f,_260,_261,_262,_263,_264){var _265=dijit.range.ie.setEndPoint(_25f,_260,_261);_25f.setEndPoint("StartToStart",_265);if(!_264){var end=dijit.range.ie.setEndPoint(_25f,_262,_263);}_25f.setEndPoint("EndToEnd",end||_265);return _25f;}};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,_268){_268=parseInt(_268);if(this.startContainer===node&&this.startOffset==_268){return;}delete this._cachedBookmark;this.startContainer=node;this.startOffset=_268;if(!this.endContainer){this.setEnd(node,_268);}else{this._updateInternal();}},setEnd:function(node,_26a){_26a=parseInt(_26a);if(this.endContainer===node&&this.endOffset==_26a){return;}delete this._cachedBookmark;this.endContainer=node;this.endOffset=_26a;if(!this.startContainer){this.setStart(node,_26a);}else{this._updateInternal();}},setStartAfter:function(node,_26c){this._setPoint("setStart",node,_26c,1);},setStartBefore:function(node,_26e){this._setPoint("setStart",node,_26e,0);},setEndAfter:function(node,_270){this._setPoint("setEnd",node,_270,1);},setEndBefore:function(node,_272){this._setPoint("setEnd",node,_272,0);},_setPoint:function(what,node,_275,ext){var _277=dijit.range.getIndex(node,node.parentNode).o;this[what](node.parentNode,_277.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,_27e){str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");if(!_27e){str=str.replace(/'/gm,"&#39;");}return str;};dijit._editor.getNodeHtml=function(node){var _280;switch(node.nodeType){case 1:_280="<"+node.nodeName.toLowerCase();var _281=[];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")){_281.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);}_281.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");}}_281.push([n,v]);}}}_281.sort(function(a,b){return a[0]<b[0]?-1:(a[0]==b[0]?0:1);});var j=0;while((attr=_281[j++])){_280+=" "+attr[0]+"=\""+(dojo.isString(attr[1])?dijit._editor.escapeXml(attr[1],true):attr[1])+"\"";}if(node.childNodes.length){_280+=">"+dijit._editor.getChildrenHtml(node)+"</"+node.nodeName.toLowerCase()+">";}else{_280+=" />";}break;case 3:_280=dijit._editor.escapeXml(node.nodeValue,true);break;case 8:_280="<!--"+dijit._editor.escapeXml(node.nodeValue,true)+"-->";break;default:_280="<!-- Element not recognized - Type: "+node.nodeType+" Name: "+node.nodeName+"-->";}return _280;};dijit._editor.getChildrenHtml=function(dom){var out="";if(!dom){return out;}var _290=dom["childNodes"]||dom;var _291=!dojo.isIE||_290!==dom;var node,i=0;while((node=_290[i++])){if(!_291||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 _294=dojo.doc.createElement("textarea");_294.id=dijit._scopeName+"._editor.RichText.savedContent";dojo.style(_294,{display:"none",position:"absolute",top:"-100px",height:"3px",width:"3px"});dojo.body().appendChild(_294);})();}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(_295){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 _299={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){_299.Z=exec("redo");}for(var key in _299){this.addKeyHandler(key,true,false,_299[key]);}},events:["onKeyPress","onKeyDown","onKeyUp","onClick"],captureEvents:[],_editorCommandsLocalized:false,_localizeEditorCommands:function(){if(this._editorCommandsLocalized){return;}this._editorCommandsLocalized=true;var _29b=["div","p","pre","h1","h2","h3","h4","h5","h6","ol","ul","address"];var _29c="",_29d,i=0;while((_29d=_29b[i++])){if(_29d.charAt(1)!="l"){_29c+="<"+_29d+"><span>content</span></"+_29d+"><br/>";}else{_29c+="<"+_29d+"><li>content</li></"+_29d+"><br/>";}}var div=dojo.doc.createElement("div");dojo.style(div,{position:"absolute",top:"-2000px"});dojo.doc.body.appendChild(div);div.innerHTML=_29c;var node=div.firstChild;while(node){dijit._editor.selection.selectElement(node.firstChild);dojo.withGlobal(this.window,"selectElement",dijit._editor.selection,[node.firstChild]);var _2a1=node.tagName.toLowerCase();this._local2NativeFormatNames[_2a1]=document.queryCommandValue("formatblock");this._native2LocalFormatNames[this._local2NativeFormatNames[_2a1]]=_2a1;node=node.nextSibling.nextSibling;}dojo.body().removeChild(div);},open:function(_2a2){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&&_2a2.nodeName){this.domNode=_2a2;}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 _2a6=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(_2a6,10);}else{_2a6();}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 _2a8=dojo.contentBox(dn);this._oldHeight=_2a8.h;this._oldWidth=_2a8.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 _2a9=dojo.byId(dijit._scopeName+"._editor.RichText.savedContent");if(_2a9.value!=""){var _2aa=_2a9.value.split(this._SEPARATOR),i=0,dat;while((dat=_2aa[i++])){var data=dat.split(":");if(data[0]==this.name){html=data[1];_2aa.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.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 _2b4=_cs.lineHeight;if(_2b4.indexOf("px")>=0){_2b4=parseFloat(_2b4)/parseFloat(_cs.fontSize);}else{if(_2b4.indexOf("em")>=0){_2b4=parseFloat(_2b4);}else{_2b4="1.0";}}var _2b5="";this.style.replace(/(^|;)(line-|font-?)[^;]+/g,function(_2b6){_2b5+=_2b6.replace(/^;/g,"")+";";});return [this.isLeftToRight()?"<html><head>":"<html dir='rtl'><head>",(dojo.isMoz?"<title>"+this._localizedIframeTitles.iframeEditTitle+"</title>":""),"<style>","body,html {","\tbackground:transparent;","\tpadding: 1em 0 0 0;","\tmargin: -1em 0 0 0;","\theight: 100%;","}","body{","\ttop:0px; left:0px; right:0px;","\tfont:",font,";",((this.height||dojo.isOpera)?"":"position: fixed;"),"\tmin-height:",this.minHeight,";","\tline-height:",_2b4,"}","p{ margin: 1em 0 !important; }",(this.height?"":"body,html{height:auto;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='"+_2b5+"'>"+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 _2ba=dojo.query("label[for=\""+this.id+"\"]");if(_2ba.length){this._localizedIframeTitles.iframeEditTitle=_2ba[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 _2bc;if(this.textarea){_2bc=this.srcNodeRef;}else{_2bc=dojo.doc.createElement("div");_2bc.style.display="none";_2bc.innerHTML=html;this.editingArea.appendChild(_2bc);}this.editingArea.appendChild(this.iframe);var _2bd=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(_2bd,50);return;}var _2be=this.document;_2be.open();if(dojo.isAIR){_2be.body.innerHTML=html;}else{_2be.write(this._getIframeDocTxt(html));}_2be.close();dojo.destroy(_2bc);}if(!this.document.body){setTimeout(_2bd,50);return;}this.onLoad();}else{dojo.destroy(_2bc);this.editNode.innerHTML=html;this.onDisplayChanged();}this._preDomFilterContent(this.editNode);});_2bd();},_applyEditingAreaStyleSheets:function(){var _2bf=[];if(this.styleSheets){_2bf=this.styleSheets.split(";");this.styleSheets="";}_2bf=_2bf.concat(this.editingAreaStyleSheets);this.editingAreaStyleSheets=[];var text="",i=0,url;while((url=_2bf[i++])){var _2c3=(new dojo._Url(dojo.global.location,url)).toString();this.editingAreaStyleSheets.push(_2c3);text+="<link rel=\"stylesheet\" type=\"text/css\" href=\""+_2c3+"\"/>";}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 _2c7=this.document.createElement("link");_2c7.rel="stylesheet";_2c7.type="text/css";_2c7.href=url;head.appendChild(_2c7);}},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 _2ca=dojo.indexOf(this.editingAreaStyleSheets,url);if(_2ca==-1){return;}delete this.editingAreaStyleSheets[_2ca];dojo.withGlobal(this.window,"query",dojo,["link:[href=\""+url+"\"]"]).orphan();},disabled:true,_mozSettingProps:["styleWithCSS","insertBrOnReturn"],_setDisabledAttr:function(_2cb){if(!this.editNode||"_delayedDisabled" in this){this._delayedDisabled=_2cb;return;}_2cb=!!_2cb;if(dojo.isIE||dojo.isWebKit||dojo.isOpera){var _2cc=dojo.isIE&&(this.isLoaded||!this.focusOnLoad);if(_2cc){this.editNode.unselectable="on";}this.editNode.contentEditable=!_2cb;if(_2cc){var _2cd=this;setTimeout(function(){_2cd.editNode.unselectable="off";},0);}}else{if(_2cb){this._mozSettings=[false,this.blockNodeForEnter==="BR"];}this.document.designMode=(_2cb?"off":"on");if(!_2cb&&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.disabled=_2cb;},_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 _2d1=this;if(dojo.isIE){var _2d2=(this.tabStop=dojo.doc.createElement("<div tabIndex=-1>"));this.editingArea.appendChild(_2d2);this.iframe.onfocus=function(){_2d1.editNode.setActive();};}}this.focusNode=this.editNode;try{this.attr("disabled",false);}catch(e){var _2d3=dojo.connect(this,"onClick",this,function(){this.attr("disabled",false);dojo.disconnect(_2d3);});}this._preDomFilterContent(this.editNode);var _2d4=this.events.concat(this.captureEvents);var ap=this.iframe?this.document:this.editNode;dojo.forEach(_2d4,function(item){this.connect(ap,item.toLowerCase(),item);},this);if(dojo.isIE){this.connect(this.document,"onmousedown","_onIEMouseDown");this.editNode.style.zoom=1;}if(this.focusOnLoad){dojo.addOnLoad(dojo.hitch(this,"focus"));}this.onDisplayChanged(e);if("_delayedDisabled" in this){var d=this._delayedDisabled;delete this._delayedDisabled;this.attr("disabled",d);}this.isLoaded=true;if(this.onLoadDeferred){this.onLoadDeferred.callback(true);}},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 _2d9=dojo.isFF<3?this.iframe.contentDocument:this.iframe;_2d9.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(_2db){dojo.deprecated("dijit.Editor::setDisabled is deprecated","use dijit.Editor::attr(\"disabled\",boolean) instead",2);this.attr("disabled",_2db);},_setValueAttr:function(_2dc){this.setValue(_2dc);},_getDisableSpellCheckAttr:function(){return !dojo.attr(this.document.body,"spellcheck");},_setDisableSpellCheckAttr:function(_2dd){if(this.document){dojo.attr(this.document.body,"spellcheck",!_2dd);}else{this.onLoadDeferred.addCallback(dojo.hitch(this,function(){dojo.attr(this.document.body,"spellcheck",!_2dd);}));}},onKeyPress:function(e){var c=(e.keyChar&&e.keyChar.toLowerCase())||e.keyCode;var _2e0=this._keyHandlers[c];var args=arguments;if(_2e0){dojo.forEach(_2e0,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,_2e5,_2e6){if(!dojo.isArray(this._keyHandlers[key])){this._keyHandlers[key]=[];}this._keyHandlers[key].push({shift:_2e5||false,ctrl:ctrl||false,handler:_2e6});},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 _2eb=dojo.isFF<3?this.iframe.contentDocument:this.iframe;_2eb.title=this._localizedIframeTitles.iframeEditTitle;}},_initialFocus:true,_onFocus:function(e){if(dojo.isMoz&&this._initialFocus){this._initialFocus=false;if(this.editNode.innerHTML.replace(/^\s+|\s+$/g,"")=="&nbsp;"){this.placeCursorAtStart();}}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(_2ee){},_normalizeCommand:function(cmd){var _2f0=cmd.toLowerCase();if(_2f0=="formatblock"){if(dojo.isSafari){_2f0="heading";}}else{if(_2f0=="hilitecolor"&&!dojo.isMoz){_2f0="backcolor";}}return _2f0;},_qcaCache:{},queryCommandAvailable:function(_2f1){var ca=this._qcaCache[_2f1];if(ca!=undefined){return ca;}return (this._qcaCache[_2f1]=this._queryCommandAvailable(_2f1));},_queryCommandAvailable:function(_2f3){var ie=1;var _2f5=1<<1;var _2f6=1<<2;var _2f7=1<<3;var _2f8=1<<4;var _2f9=dojo.isWebKit;function _2fa(_2fb){return {ie:Boolean(_2fb&ie),mozilla:Boolean(_2fb&_2f5),webkit:Boolean(_2fb&_2f6),webkit420:Boolean(_2fb&_2f8),opera:Boolean(_2fb&_2f7)};};var _2fc=null;switch(_2f3.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":_2fc=_2fa(_2f5|ie|_2f6|_2f7);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":_2fc=_2fa(_2f5|ie|_2f7|_2f8);break;case "blockdirltr":case "blockdirrtl":case "dirltr":case "dirrtl":case "inlinedirltr":case "inlinedirrtl":_2fc=_2fa(ie);break;case "cut":case "copy":case "paste":_2fc=_2fa(ie|_2f5|_2f8);break;case "inserttable":_2fc=_2fa(_2f5|ie);break;case "insertcell":case "insertcol":case "insertrow":case "deletecells":case "deletecols":case "deleterows":case "mergecells":case "splitcell":_2fc=_2fa(ie|_2f5);break;default:return false;}return (dojo.isIE&&_2fc.ie)||(dojo.isMoz&&_2fc.mozilla)||(dojo.isWebKit&&_2fc.webkit)||(dojo.isWebKit>420&&_2fc.webkit420)||(dojo.isOpera&&_2fc.opera);},execCommand:function(_2fd,_2fe){var _2ff;this.focus();_2fd=this._normalizeCommand(_2fd);if(_2fe!=undefined){if(_2fd=="heading"){throw new Error("unimplemented");}else{if((_2fd=="formatblock")&&dojo.isIE){_2fe="<"+_2fe+">";}}}if(_2fd=="inserthtml"){_2fe=this._preFilterContent(_2fe);_2ff=true;if(dojo.isIE){var _300=this.document.selection.createRange();if(this.document.selection.type.toUpperCase()=="CONTROL"){var n=_300.item(0);while(_300.length){_300.remove(_300.item(0));}n.outerHTML=_2fe;}else{_300.pasteHTML(_2fe);}_300.select();}else{if(dojo.isMoz&&!_2fe.length){this._sCall("remove");}else{_2ff=this.document.execCommand(_2fd,false,_2fe);}}}else{if((_2fd=="unlink")&&(this.queryCommandEnabled("unlink"))&&(dojo.isMoz||dojo.isWebKit)){var a=this._sCall("getAncestorElement",["a"]);this._sCall("selectElement",[a]);_2ff=this.document.execCommand("unlink",false,null);}else{if((_2fd=="hilitecolor")&&(dojo.isMoz)){this.document.execCommand("styleWithCSS",false,true);_2ff=this.document.execCommand(_2fd,false,_2fe);this.document.execCommand("styleWithCSS",false,false);}else{if((dojo.isIE)&&((_2fd=="backcolor")||(_2fd=="forecolor"))){_2fe=arguments.length>1?_2fe:null;_2ff=this.document.execCommand(_2fd,false,_2fe);}else{_2fe=arguments.length>1?_2fe:null;if(_2fe||_2fd!="createlink"){_2ff=this.document.execCommand(_2fd,false,_2fe);}}}}}this.onDisplayChanged();return _2ff;},queryCommandEnabled:function(_303){if(this.disabled){return false;}_303=this._normalizeCommand(_303);if(dojo.isMoz||dojo.isWebKit){if(_303=="unlink"){this._sCall("hasAncestorElement",["a"]);}else{if(_303=="inserttable"){return true;}}}if(dojo.isWebKit){if(_303=="copy"){_303="cut";}else{if(_303=="paste"){return true;}}}if(_303=="indent"){var li=this._sCall("getAncestorElement",["li"]);var n=li&&li.previousSibling;while(n){if(n.nodeType==1){return true;}n=n.previousSibling;}return false;}else{if(_303=="outdent"){return this._sCall("hasAncestorElement",["li"]);}}var elem=dojo.isIE?this.document.selection.createRange():this.document;return elem.queryCommandEnabled(_303);},queryCommandState:function(_307){if(this.disabled){return false;}_307=this._normalizeCommand(_307);return this.document.queryCommandState(_307);},queryCommandValue:function(_308){if(this.disabled){return false;}var r;_308=this._normalizeCommand(_308);if(dojo.isIE&&_308=="formatblock"){r=this._native2LocalFormatNames[this.document.queryCommandValue(_308)];}else{r=this.document.queryCommandValue(_308);}return r;},_sCall:function(name,args){return dojo.withGlobal(this.window,name,dijit._editor.selection,args);},placeCursorAtStart:function(){this.focus();var _30c=false;if(dojo.isMoz){var _30d=this.editNode.firstChild;while(_30d){if(_30d.nodeType==3){if(_30d.nodeValue.replace(/^\s+|\s+$/g,"").length>0){_30c=true;this._sCall("selectElement",[_30d]);break;}}else{if(_30d.nodeType==1){_30c=true;this._sCall("selectElementChildren",[_30d]);break;}}_30d=_30d.nextSibling;}}else{_30c=true;this._sCall("selectElementChildren",[this.editNode]);}if(_30c){this._sCall("collapse",[true]);}},placeCursorAtEnd:function(){this.focus();var _30e=false;if(dojo.isMoz){var last=this.editNode.lastChild;while(last){if(last.nodeType==3){if(last.nodeValue.replace(/^\s+|\s+$/g,"").length>0){_30e=true;this._sCall("selectElement",[last]);break;}}else{if(last.nodeType==1){_30e=true;if(last.lastChild){this._sCall("selectElement",[last.lastChild]);}else{this._sCall("selectElement",[last]);}break;}}last=last.previousSibling;}}else{_30e=true;this._sCall("selectElementChildren",[this.editNode]);}if(_30e){this._sCall("collapse",[false]);}},getValue:function(_310){if(this.textarea){if(this.isClosed||!this.isLoaded){return this.textarea.value;}}return this._postFilterContent(null,_310);},_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,_31a){var ec;if(!dojo.isString(dom)){dom=dom||this.editNode;if(this.contentDomPostFilters.length){if(_31a){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 _31f=dojo.byId(dijit._scopeName+"._editor.RichText.savedContent");_31f.value+=this._SEPARATOR+this.name+":"+this.getValue();},escapeXml:function(str,_321){str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");if(!_321){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,_325){if(this.isClosed){return false;}if(!arguments.length){save=true;}this._content=this.getValue();var _326=(this.savedContent!=this._content);if(this.interval){clearInterval(this.interval);}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 _326;},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(_32c,_32d){var _32e=this._keyNavCodes={};var prev=dojo.hitch(this,this.focusPrev);var next=dojo.hitch(this,this.focusNext);dojo.forEach(_32c,function(code){_32e[code]=prev;});dojo.forEach(_32d,function(code){_32e[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(_333,_334){dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);this._startupChild(_333);},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 _335=this._getNextFocusableChild(this.focusedChild,1);if(_335.getFocalNodes){this.focusChild(_335,_335.getFocalNodes()[0]);}else{this.focusChild(_335);}},focusPrev:function(){if(this.focusedChild&&this.focusedChild.hasPrevFocalNode&&this.focusedChild.hasPrevFocalNode()){this.focusedChild.focusPrev();return;}var _336=this._getNextFocusableChild(this.focusedChild,-1);if(_336.getFocalNodes){var _337=_336.getFocalNodes();this.focusChild(_336,_337[_337.length-1]);}else{this.focusChild(_336);}},focusChild:function(_338,node){if(_338){if(this.focusedChild&&_338!==this.focusedChild){this._onChildBlur(this.focusedChild);}this.focusedChild=_338;if(node&&_338.focusFocalNode){_338.focusFocalNode(node);}else{_338.focus();}}},_startupChild:function(_33a){if(_33a.getFocalNodes){dojo.forEach(_33a.getFocalNodes(),function(node){dojo.attr(node,"tabindex",-1);this._connectNode(node);},this);}else{var node=_33a.focusNode||_33a.domNode;if(_33a.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 _343=dijit.getEnclosingWidget(evt.target);if(_343&&_343.isFocusable()){this.focusedChild=_343;}dojo.stopEvent(evt);},_onNodeBlur:function(evt){dojo.stopEvent(evt);},_onChildBlur:function(_345){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1);},_getNextFocusableChild:function(_346,dir){if(_346){_346=this._getSiblingOfChild(_346,dir);}var _348=this.getChildren();for(var i=0;i<_348.length;i++){if(!_346){_346=_348[(dir>0)?0:(_348.length-1)];}if(_346.isFocusable()){return _346;}_346=this._getSiblingOfChild(_346,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\ttype=\"${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 _34d=dijit.byNode(node);if(_34d&&typeof _34d._onSubmit=="function"){_34d._onSubmit(e);break;}}}}},_setValueAttr:function(_34e){var attr=this.attributeMap.value||"";if(this[attr.node||attr||"domNode"].tagName=="BUTTON"){if(_34e!=this.value){}}},_fillContent:function(_350){if(_350&&!("label" in this.params)){this.attr("label",_350.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(_353){dojo.deprecated("dijit.form.Button.setLabel() is deprecated.  Use attr('label', ...) instead.","","2.0");this.attr("label",_353);},_setLabelAttr:function(_354){this.containerNode.innerHTML=this.label=_354;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\ttype=\"${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 _355=dojo.query("*",this.srcNodeRef);dijit.form.DropDownButton.superclass._fillContent.call(this,_355[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}if(!this.dropDown){var _356=dojo.query("[widgetId]",this.dropDownContainer)[0];this.dropDown=dijit.byNode(_356);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 _359=dojo.isFF&&dojo.isFF<3&&navigator.appVersion.indexOf("Macintosh")!=-1;if(!_359||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 _35d=this.dropDown;if(!_35d){return;}if(!this._opened){if(_35d.href&&!_35d.isLoaded){var self=this;var _35f=dojo.connect(_35d,"onLoad",function(){dojo.disconnect(_35f);self._openDropDown();});_35d.refresh();return;}else{this._openDropDown();}}else{this._closeDropDown();}},_openDropDown:function(){var _360=this.dropDown;var _361=_360.domNode.style.width;var self=this;dijit.popup.open({parent:this,popup:_360,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(){_360.domNode.style.width=_361;self.popupStateNode.removeAttribute("popupActive");self._opened=false;}});if(this.domNode.offsetWidth>_360.domNode.offsetWidth){var _363=null;if(!this.isLeftToRight()){_363=_360.domNode.parentNode;var _364=_363.offsetLeft+_363.offsetWidth;}dojo.marginBox(_360.domNode,{w:this.domNode.offsetWidth});if(_363){_363.style.left=_364-this.domNode.offsetWidth+"px";}}this.popupStateNode.setAttribute("popupActive","true");this._opened=true;if(_360.focus){_360.focus();}},_closeDropDown:function(_365){if(this._opened){dijit.popup.close(this.dropDown);if(_365){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}\"\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(_36d){this.checked=_36d;dojo.attr(this.focusNode||this.domNode,"checked",_36d);dijit.setWaiState(this.focusNode||this.domNode,"pressed",_36d);this._setStateClass();this._handleOnChange(_36d,true);},setChecked:function(_36e){dojo.deprecated("setChecked("+_36e+") is deprecated. Use attr('checked',"+_36e+") instead.","","2.0");this.attr("checked",_36e);},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(_372){if(this.command.length){var _373=this.getLabel(this.command);var _374=this.iconClassPrefix+" "+this.iconClassPrefix+this.command.charAt(0).toUpperCase()+this.command.substr(1);if(!this.button){_372=dojo.mixin({label:_373,showLabel:false,iconClass:_374,dropDown:this.dropDown,tabIndex:"-1"},_372||{});this.button=new this.buttonClass(_372);}}},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;var _c=this.command;if(!_e){return;}if(!_e.isLoaded){return;}if(!_c.length){return;}if(this.button){try{var _37b=_e.queryCommandEnabled(_c);if(this.enabled!==_37b){this.enabled=_37b;this.button.attr("disabled",!_37b);}if(typeof this.button.checked=="boolean"){var _37c=_e.queryCommandState(_c);if(this.checked!==_37c){this.checked=_37c;this.button.attr("checked",_e.queryCommandState(_c));}}}catch(e){}}},setEditor:function(_37d){this.editor=_37d;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(_37e){if(this.button){_37e.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(_380){this.editor=_380;if(this.blockNodeForEnter=="BR"){if(dojo.isIE){_380.contentDomPreFilters.push(dojo.hitch(this,"regularPsToSingleLinePs"));_380.contentDomPostFilters.push(dojo.hitch(this,"singleLinePsToRegularPs"));_380.onLoadDeferred.addCallback(dojo.hitch(this,"_fixNewLineBehaviorForIE"));}else{_380.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);_380.addKeyHandler(13,0,0,h);_380.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 _387=dojo.withGlobal(this.editor.window,"getAncestorElement",dijit._editor.selection,["LI"]);if(!_387){dijit._editor.RichText.prototype.execCommand.call(this.editor,"formatblock",this.blockNodeForEnter);var _388=dojo.withGlobal(this.editor.window,"getAncestorElement",dijit._editor.selection,[this.blockNodeForEnter]);if(_388){_388.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(_387.parentNode.parentNode.nodeName=="LI"){_387=_387.parentNode.parentNode;}}var fc=_387.firstChild;if(fc&&fc.nodeType==1&&(fc.nodeName=="UL"||fc.nodeName=="OL")){_387.insertBefore(fc.ownerDocument.createTextNode(" "),fc);var _38b=dijit.range.create();_38b.setStart(_387.firstChild,0);var _38c=dijit.range.getSelection(this.editor.window,true);_38c.removeAllRanges();_38c.addRange(_38b);}}}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 _38e,_38f,_390,doc=this.editor.document,br;if(e.shiftKey||this.blockNodeForEnter=="BR"){var _393=dojo.withGlobal(this.editor.window,"getParentElement",dijit._editor.selection);var _394=dijit.range.getAncestor(_393,this.blockNodes);if(_394){if(!e.shiftKey&&_394.tagName=="LI"){return true;}_38e=dijit.range.getSelection(this.editor.window);_38f=_38e.getRangeAt(0);if(!_38f.collapsed){_38f.deleteContents();}if(dijit.range.atBeginningOfContainer(_394,_38f.startContainer,_38f.startOffset)){if(e.shiftKey){br=doc.createElement("br");_390=dijit.range.create();_394.insertBefore(br,_394.firstChild);_390.setStartBefore(br.nextSibling);_38e.removeAllRanges();_38e.addRange(_390);}else{dojo.place(br,_394,"before");}}else{if(dijit.range.atEndOfContainer(_394,_38f.startContainer,_38f.startOffset)){_390=dijit.range.create();br=doc.createElement("br");if(e.shiftKey){_394.appendChild(br);_394.appendChild(doc.createTextNode(" "));_390.setStart(_394.lastChild,0);}else{dojo.place(br,_394,"after");_390.setStartAfter(_394);}_38e.removeAllRanges();_38e.addRange(_390);}else{return true;}}}else{dijit._editor.RichText.prototype.execCommand.call(this.editor,"inserthtml","<br>");}return false;}var _395=true;_38e=dijit.range.getSelection(this.editor.window);_38f=_38e.getRangeAt(0);if(!_38f.collapsed){_38f.deleteContents();}var _396=dijit.range.getBlockAncestor(_38f.endContainer,null,this.editor.editNode);var _397=_396.blockNode;if((this._checkListLater=(_397&&(_397.nodeName=="LI"||_397.parentNode.nodeName=="LI")))){if(dojo.isMoz){this._pressedEnterInBlock=_397;}if(/^(?:\s|&nbsp;)$/.test(_397.innerHTML)){_397.innerHTML="";}return true;}if(!_396.blockNode||_396.blockNode===this.editor.editNode){dijit._editor.RichText.prototype.execCommand.call(this.editor,"formatblock",this.blockNodeForEnter);_396={blockNode:dojo.withGlobal(this.editor.window,"getAncestorElement",dijit._editor.selection,[this.blockNodeForEnter]),blockContainer:this.editor.editNode};if(_396.blockNode){if(!(_396.blockNode.textContent||_396.blockNode.innerHTML).replace(/^\s+|\s+$/g,"").length){this.removeTrailingBr(_396.blockNode);return false;}}else{_396.blockNode=this.editor.editNode;}_38e=dijit.range.getSelection(this.editor.window);_38f=_38e.getRangeAt(0);}var _398=doc.createElement(this.blockNodeForEnter);_398.innerHTML=this.bogusHtmlContent;this.removeTrailingBr(_396.blockNode);if(dijit.range.atEndOfContainer(_396.blockNode,_38f.endContainer,_38f.endOffset)){if(_396.blockNode===_396.blockContainer){_396.blockNode.appendChild(_398);}else{dojo.place(_398,_396.blockNode,"after");}_395=false;_390=dijit.range.create();_390.setStart(_398,0);_38e.removeAllRanges();_38e.addRange(_390);if(this.editor.height){_398.scrollIntoView(false);}}else{if(dijit.range.atBeginningOfContainer(_396.blockNode,_38f.startContainer,_38f.startOffset)){dojo.place(_398,_396.blockNode,_396.blockNode===_396.blockContainer?"first":"before");if(_398.nextSibling&&this.editor.height){_398.nextSibling.scrollIntoView(false);}_395=false;}else{if(dojo.isMoz){this._pressedEnterInBlock=_396.blockNode;}}}return _395;},removeTrailingBr:function(_399){var para=/P|DIV|LI/i.test(_399.tagName)?_399:dijit._editor.selection.getParentOfType(_399,["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 _39c="p{margin:0 !important;}";var _39d=function(_39e,doc,URI){if(!_39e){return null;}if(!doc){doc=document;}var _3a1=doc.createElement("style");_3a1.setAttribute("type","text/css");var head=doc.getElementsByTagName("head")[0];if(!head){return null;}else{head.appendChild(_3a1);}if(_3a1.styleSheet){var _3a3=function(){try{_3a1.styleSheet.cssText=_39e;}catch(e){}};if(_3a1.styleSheet.disabled){setTimeout(_3a3,10);}else{_3a3();}}else{var _3a4=doc.createTextNode(_39e);_3a1.appendChild(_3a4);}return _3a1;};_39d(_39c,this.editor.document);this.editor.document.__INSERTED_EDITIOR_NEWLINE_CSS=true;return d;}return null;},regularPsToSingleLinePs:function(_3a5,_3a6){function _3a7(el){function _3a9(_3aa){var newP=_3aa[0].ownerDocument.createElement("p");_3aa[0].parentNode.insertBefore(newP,_3aa[0]);dojo.forEach(_3aa,function(node){newP.appendChild(node);});};var _3ad=0;var _3ae=[];var _3af;while(_3ad<el.childNodes.length){_3af=el.childNodes[_3ad];if(_3af.nodeType==3||(_3af.nodeType==1&&_3af.nodeName!="BR"&&dojo.style(_3af,"display")!="block")){_3ae.push(_3af);}else{var _3b0=_3af.nextSibling;if(_3ae.length){_3a9(_3ae);_3ad=(_3ad+1)-_3ae.length;if(_3af.nodeName=="BR"){dojo.destroy(_3af);}}_3ae=[];}_3ad++;}if(_3ae.length){_3a9(_3ae);}};function _3b1(el){var _3b3=null;var _3b4=[];var _3b5=el.childNodes.length-1;for(var i=_3b5;i>=0;i--){_3b3=el.childNodes[i];if(_3b3.nodeName=="BR"){var newP=_3b3.ownerDocument.createElement("p");dojo.place(newP,el,"after");if(_3b4.length==0&&i!=_3b5){newP.innerHTML="&nbsp;";}dojo.forEach(_3b4,function(node){newP.appendChild(node);});dojo.destroy(_3b3);_3b4=[];}else{_3b4.unshift(_3b3);}}};var _3b9=[];var ps=_3a5.getElementsByTagName("p");dojo.forEach(ps,function(p){_3b9.push(p);});dojo.forEach(_3b9,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=_3a6?"":"&nbsp;";}_3b1(p);},this.editor);_3a7(_3a5);return _3a5;},singleLinePsToRegularPs:function(_3be){function _3bf(node){var ps=node.getElementsByTagName("p");var _3c2=[];for(var i=0;i<ps.length;i++){var p=ps[i];var _3c5=false;for(var k=0;k<_3c2.length;k++){if(_3c2[k]===p.parentNode){_3c5=true;break;}}if(!_3c5){_3c2.push(p.parentNode);}}return _3c2;};function _3c7(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 _3c9=_3bf(_3be);for(var i=0;i<_3c9.length;i++){var _3cb=_3c9[i];var _3cc=null;var node=_3cb.firstChild;var _3ce=null;while(node){if(node.nodeType!="1"||node.tagName!="P"){_3cc=null;}else{if(_3c7(node)){_3ce=node;_3cc=null;}else{if(_3cc==null){_3cc=node;}else{if((!_3cc.lastChild||_3cc.lastChild.nodeName!="BR")&&(node.firstChild)&&(node.firstChild.nodeName!="BR")){_3cc.appendChild(this.editor.document.createElement("br"));}while(node.firstChild){_3cc.appendChild(node.firstChild);}_3ce=node;}}}node=node.nextSibling;if(_3ce){dojo.destroy(_3ce);_3ce=null;}}}return _3be;}});}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(_3d0,_3d1){var args=dojo.isString(_3d0)?{name:_3d0}:_3d0;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",_3d0);return;}_3d0=o.plugin;}if(arguments.length>1){this._plugins[_3d1]=_3d0;}else{this._plugins.push(_3d0);}_3d0.setEditor(this);if(dojo.isFunction(_3d0.setToolbar)){_3d0.setToolbar(this.toolbar);}},startup:function(){},resize:function(){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){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){_40f.focus();}},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)){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=Math.log(Math.abs(_44a))/Math.log(10);var _44e=10/(_44c||10);var _44f=Math.pow(10,-14+_44d);return (_44e*(+_44a+(_44a>0?_44f:-_44f))).toFixed(_44b)/_44e;};if((0.9).toFixed()==0){(function(){var _450=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 _450(v,p,m)+(v>0?d:-d);};})();}dojo.number._formatAbsolute=function(_456,_457,_458){_458=_458||{};if(_458.places===true){_458.places=0;}if(_458.places===Infinity){_458.places=6;}var _459=_457.split(".");var _45a=(_458.places>=0)?_458.places:(_459[1]&&_459[1].length)||0;if(!(_458.round<0)){_456=dojo.number.round(_456,_45a,_458.round);}var _45b=String(Math.abs(_456)).split(".");var _45c=_45b[1]||"";if(_458.places){var _45d=dojo.isString(_458.places)&&_458.places.indexOf(",");if(_45d){_458.places=_458.places.substring(_45d+1);}_45b[1]=dojo.string.pad(_45c.substr(0,_458.places),_458.places,"0",true);}else{if(_459[1]&&_458.places!==0){var pad=_459[1].lastIndexOf("0")+1;if(pad>_45c.length){_45b[1]=dojo.string.pad(_45c,pad,"0",true);}var _45f=_459[1].length;if(_45f<_45c.length){_45b[1]=_45c.substr(0,_45f);}}else{if(_45b[1]){_45b.pop();}}}var _460=_459[0].replace(",","");pad=_460.indexOf("0");if(pad!=-1){pad=_460.length-pad;if(pad>_45b[0].length){_45b[0]=dojo.string.pad(_45b[0],pad);}if(_460.indexOf("#")==-1){_45b[0]=_45b[0].substr(_45b[0].length-pad);}}var _461=_459[0].lastIndexOf(",");var _462,_463;if(_461!=-1){_462=_459[0].length-_461-1;var _464=_459[0].substr(0,_461);_461=_464.lastIndexOf(",");if(_461!=-1){_463=_464.length-_461-1;}}var _465=[];for(var _466=_45b[0];_466;){var off=_466.length-_462;_465.push((off>0)?_466.substr(off):_466);_466=(off>0)?_466.slice(0,off):"";if(_463){_462=_463;delete _463;}}_45b[0]=_465.reverse().join(_458.group||",");return _45b.join(_458.decimal||".");};dojo.number.regexp=function(_468){return dojo.number._parseInfo(_468).regexp;};dojo.number._parseInfo=function(_469){_469=_469||{};var _46a=dojo.i18n.normalizeLocale(_469.locale);var _46b=dojo.i18n.getLocalization("dojo.cldr","number",_46a);var _46c=_469.pattern||_46b[(_469.type||"decimal")+"Format"];var _46d=_46b.group;var _46e=_46b.decimal;var _46f=1;if(_46c.indexOf("%")!=-1){_46f/=100;}else{if(_46c.indexOf("‰")!=-1){_46f/=1000;}else{var _470=_46c.indexOf("¤")!=-1;if(_470){_46d=_46b.currencyGroup||_46d;_46e=_46b.currencyDecimal||_46e;}}}var _471=_46c.split(";");if(_471.length==1){_471.push("-"+_471[0]);}var re=dojo.regexp.buildGroupRE(_471,function(_473){_473="(?:"+dojo.regexp.escapeString(_473,".")+")";return _473.replace(dojo.number._numberPatternRE,function(_474){var _475={signed:false,separator:_469.strict?_46d:[_46d,""],fractional:_469.fractional,decimal:_46e,exponent:false};var _476=_474.split(".");var _477=_469.places;if(_476.length==1||_477===0){_475.fractional=false;}else{if(_477===undefined){_477=_469.pattern?_476[1].lastIndexOf("0")+1:Infinity;}if(_477&&_469.fractional==undefined){_475.fractional=true;}if(!_469.places&&(_477<_476[1].length)){_477+=","+_476[1].length;}_475.places=_477;}var _478=_476[0].split(",");if(_478.length>1){_475.groupSize=_478.pop().length;if(_478.length>1){_475.groupSize2=_478.pop().length;}}return "("+dojo.number._realNumberRegexp(_475)+")";});},true);if(_470){re=re.replace(/([\s\xa0]*)(\u00a4{1,3})([\s\xa0]*)/g,function(_479,_47a,_47b,_47c){var prop=["symbol","currency","displayName"][_47b.length-1];var _47e=dojo.regexp.escapeString(_469[prop]||_469.currency||"");_47a=_47a?"[\\s\\xa0]":"";_47c=_47c?"[\\s\\xa0]":"";if(!_469.strict){if(_47a){_47a+="*";}if(_47c){_47c+="*";}return "(?:"+_47a+_47e+_47c+")?";}return _47a+_47e+_47c;});}return {regexp:re.replace(/[\xa0 ]/g,"[\\s\\xa0]"),group:_46d,decimal:_46e,factor:_46f};};dojo.number.parse=function(_47f,_480){var info=dojo.number._parseInfo(_480);var _482=(new RegExp("^"+info.regexp+"$")).exec(_47f);if(!_482){return NaN;}var _483=_482[1];if(!_482[1]){if(!_482[2]){return NaN;}_483=_482[2];info.factor*=-1;}_483=_483.replace(new RegExp("["+info.group+"\\s\\xa0"+"]","g"),"").replace(info.decimal,".");return _483*info.factor;};dojo.number._realNumberRegexp=function(_484){_484=_484||{};if(!("places" in _484)){_484.places=Infinity;}if(typeof _484.decimal!="string"){_484.decimal=".";}if(!("fractional" in _484)||/^0/.test(_484.places)){_484.fractional=[true,false];}if(!("exponent" in _484)){_484.exponent=[true,false];}if(!("eSigned" in _484)){_484.eSigned=[true,false];}var _485=dojo.number._integerRegexp(_484);var _486=dojo.regexp.buildGroupRE(_484.fractional,function(q){var re="";if(q&&(_484.places!==0)){re="\\"+_484.decimal;if(_484.places==Infinity){re="(?:"+re+"\\d+)?";}else{re+="\\d{"+_484.places+"}";}}return re;},true);var _489=dojo.regexp.buildGroupRE(_484.exponent,function(q){if(q){return "([eE]"+dojo.number._integerRegexp({signed:_484.eSigned})+")";}return "";});var _48b=_485+_486;if(_486){_48b="(?:(?:"+_48b+")|(?:"+_486+"))";}return _48b+_489;};dojo.number._integerRegexp=function(_48c){_48c=_48c||{};if(!("signed" in _48c)){_48c.signed=[true,false];}if(!("separator" in _48c)){_48c.separator="";}else{if(!("groupSize" in _48c)){_48c.groupSize=3;}}var _48d=dojo.regexp.buildGroupRE(_48c.signed,function(q){return q?"[-+]":"";},true);var _48f=dojo.regexp.buildGroupRE(_48c.separator,function(sep){if(!sep){return "(?:\\d+)";}sep=dojo.regexp.escapeString(sep);if(sep==" "){sep="\\s";}else{if(sep==" "){sep="\\s\\xa0";}}var grp=_48c.groupSize,grp2=_48c.groupSize2;if(grp2){var _493="(?:0|[1-9]\\d{0,"+(grp2-1)+"}(?:["+sep+"]\\d{"+grp2+"})*["+sep+"]\\d{"+grp+"})";return ((grp-grp2)>0)?"(?:"+_493+"|(?:0|[1-9]\\d{0,"+(grp-1)+"}))":_493;}return "(?:0|[1-9]\\d{0,"+(grp-1)+"}(?:["+sep+"]\\d{"+grp+"})*)";},true);return _48d+_48f;};}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(_494){dojo.mixin(this,_494||{});var tip=this.internalProgress;var _496=1,_497;if(this.indeterminate){_497="addClass";dijit.removeWaiState(tip,"valuenow");dijit.removeWaiState(tip,"valuemin");dijit.removeWaiState(tip,"valuemax");}else{_497="removeClass";if(String(this.progress).indexOf("%")!=-1){_496=Math.min(parseFloat(this.progress)/100,1);this.progress=_496*this.maximum;}else{this.progress=Math.min(this.progress,this.maximum);_496=this.progress/this.maximum;}var text=this.report(_496);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[_497](this.domNode,"dijitProgressBarIndeterminate");tip.style.width=(_496*100)+"%";this.onChange();},report:function(_499){return dojo.number.format(_499,{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 _49a=this.hideNode,_49b=this.wipeNode;this._wipeIn=dojo.fx.wipeIn({node:this.wipeNode,duration:this.duration,beforeBegin:function(){_49a.style.display="";}});this._wipeOut=dojo.fx.wipeOut({node:this.wipeNode,duration:this.duration,onEnd:function(){_49a.style.display="none";}});this.inherited(arguments);},_setOpenAttr:function(open){if(this.open!==open){this.toggle();}},_setContentAttr:function(_49d){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(_49e){if(_49e&&_49e.status()=="playing"){_49e.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 _4a0=["dijitClosed","dijitOpen"];var _4a1=this.open;var node=this.titleBarNode||this.focusNode;dojo.removeClass(node,_4a0[!_4a1+0]);node.className+=" "+_4a0[_4a1+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(_4a5){dojo.deprecated("dijit.TitlePane.setTitle() is deprecated.  Use attr('title', ...) instead.","","2.0");this.titleNode.innerHTML=_4a5;}});}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(_4a6,_4a7,_4a8){if(this.aroundNode&&this.aroundNode===_4a7){return;}if(this.fadeOut.status()=="playing"){this._onDeck=arguments;return;}this.containerNode.innerHTML=_4a6;this.domNode.style.top=(this.domNode.offsetTop+1)+"px";var _4a9={};var ltr=this.isLeftToRight();dojo.forEach((_4a8&&_4a8.length)?_4a8:dijit.Tooltip.defaultPosition,function(pos){switch(pos){case "after":_4a9[ltr?"BR":"BL"]=ltr?"BL":"BR";break;case "before":_4a9[ltr?"BL":"BR"]=ltr?"BR":"BL";break;case "below":_4a9[ltr?"BL":"BR"]=ltr?"TL":"TR";_4a9[ltr?"BR":"BL"]=ltr?"TR":"TL";break;case "above":default:_4a9[ltr?"TL":"TR"]=ltr?"BL":"BR";_4a9[ltr?"TR":"TL"]=ltr?"BR":"BL";break;}});var pos=dijit.placeOnScreenAroundElement(this.domNode,_4a7,_4a9,dojo.hitch(this,"orient"));dojo.style(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=true;this.aroundNode=_4a7;},orient:function(node,_4ae,_4af){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"}[_4ae+"-"+_4af];},_onShow:function(){if(dojo.isIE){this.domNode.style.filter="";}},hide:function(_4b0){if(this._onDeck&&this._onDeck[1]==_4b0){this._onDeck=null;}else{if(this.aroundNode===_4b0){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(_4b1,_4b2,_4b3){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.show(_4b1,_4b2,_4b3);};dijit.hideTooltip=function(_4b4){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.hide(_4b4);};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(_4b8){this.connect(node,_4b8.toLowerCase(),"_"+_4b8);},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 _4be=e.target;this._showTimer=setTimeout(dojo.hitch(this,function(){this.open(_4be);}),this.showDelay);}},_onUnHover:function(e){if(this._focus){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}this.close();},open:function(_4c0){_4c0=_4c0||this._connectNodes[0];if(!_4c0){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}dijit.showTooltip(this.label||this.domNode.innerHTML,_4c0,this.position);this._connectNode=_4c0;},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,_4c2,_4c3){var c=document.cookie;if(arguments.length==1){var _4c5=c.match(new RegExp("(?:^|; )"+dojo.regexp.escapeString(name)+"=([^;]*)"));return _4c5?decodeURIComponent(_4c5[1]):undefined;}else{_4c3=_4c3||{};var exp=_4c3.expires;if(typeof exp=="number"){var d=new Date();d.setTime(d.getTime()+exp*24*60*60*1000);exp=_4c3.expires=d;}if(exp&&exp.toUTCString){_4c3.expires=exp.toUTCString();}_4c2=encodeURIComponent(_4c2);var _4c8=name+"="+_4c2,_4c9;for(_4c9 in _4c3){_4c8+="; "+_4c9;var _4ca=_4c3[_4c9];if(_4ca!==true){_4c8+="="+_4ca;}}document.cookie=_4c8;}};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 _4cc=this.store;if(!_4cc.getFeatures()["dojo.data.api.Identity"]){throw new Error("dijit.Tree: store must support dojo.data.Identity");}if(_4cc.getFeatures()["dojo.data.api.Notification"]){this.connects=this.connects.concat([dojo.connect(_4cc,"onNew",this,"_onNewItem"),dojo.connect(_4cc,"onDelete",this,"_onDeleteItem"),dojo.connect(_4cc,"onSet",this,"_onSetItem")]);}},destroy:function(){dojo.forEach(this.connects,dojo.disconnect);},getRoot:function(_4cd,_4ce){if(this.root){_4cd(this.root);}else{this.store.fetch({query:this.query,onComplete:dojo.hitch(this,function(_4cf){if(_4cf.length!=1){throw new Error(this.declaredClass+": query "+dojo.toJson(this.query)+" returned "+_4cf.length+" items, but must return exactly one item");}this.root=_4cf[0];_4cd(this.root);}),onError:_4ce});}},mayHaveChildren:function(item){return dojo.some(this.childrenAttrs,function(attr){return this.store.hasAttribute(item,attr);},this);},getChildren:function(_4d2,_4d3,_4d4){var _4d5=this.store;var _4d6=[];for(var i=0;i<this.childrenAttrs.length;i++){var vals=_4d5.getValues(_4d2,this.childrenAttrs[i]);_4d6=_4d6.concat(vals);}var _4d9=0;dojo.forEach(_4d6,function(item){if(!_4d5.isItemLoaded(item)){_4d9++;}});if(_4d9==0){_4d3(_4d6);}else{var _4db=function _4db(item){if(--_4d9==0){_4d3(_4d6);}};dojo.forEach(_4d6,function(item){if(!_4d5.isItemLoaded(item)){_4d5.loadItem({item:item,onItem:_4db,onError:_4d4});}});}},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,_4e1){var _4e2={parent:_4e1,attribute:this.childrenAttrs[0]};return this.store.newItem(args,_4e2);},pasteItem:function(_4e3,_4e4,_4e5,_4e6,_4e7){var _4e8=this.store,_4e9=this.childrenAttrs[0];if(_4e4){dojo.forEach(this.childrenAttrs,function(attr){if(_4e8.containsValue(_4e4,attr,_4e3)){if(!_4e6){var _4eb=dojo.filter(_4e8.getValues(_4e4,attr),function(x){return x!=_4e3;});_4e8.setValues(_4e4,attr,_4eb);}_4e9=attr;}});}if(_4e5){if(typeof _4e7=="number"){var _4ed=_4e8.getValues(_4e5,_4e9);_4ed.splice(_4e7,0,_4e3);_4e8.setValues(_4e5,_4e9,_4ed);}else{_4e8.setValues(_4e5,_4e9,_4e8.getValues(_4e5,_4e9).concat(_4e3));}}},onChange:function(item){},onChildrenChange:function(_4ef,_4f0){},onDelete:function(_4f1,_4f2){},_onNewItem:function(item,_4f4){if(!_4f4){return;}this.getChildren(_4f4.item,dojo.hitch(this,function(_4f5){this.onChildrenChange(_4f4.item,_4f5);}));},_onDeleteItem:function(item){this.onDelete(item);},_onSetItem:function(item,_4f8,_4f9,_4fa){if(dojo.indexOf(this.childrenAttrs,_4f8)!=-1){this.getChildren(item,dojo.hitch(this,function(_4fb){this.onChildrenChange(item,_4fb);}));}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(_4fc){this.root={store:this,root:true,id:_4fc.rootId,label:_4fc.rootLabel,children:_4fc.rootChildren};},mayHaveChildren:function(item){return item===this.root||this.inherited(arguments);},getChildren:function(_4fe,_4ff,_500){if(_4fe===this.root){if(this.root.children){_4ff(this.root.children);}else{this.store.fetch({query:this.query,onComplete:dojo.hitch(this,function(_501){this.root.children=_501;_4ff(_501);}),onError:_500});}}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,_505){if(_505===this.root){this.onNewRootItem(args);return this.store.newItem(args);}else{return this.inherited(arguments);}},onNewRootItem:function(args){},pasteItem:function(_507,_508,_509,_50a,_50b){if(_508===this.root){if(!_50a){this.onLeaveRoot(_507);}}dijit.tree.TreeStoreModel.prototype.pasteItem.call(this,_507,_508===this.root?null:_508,_509===this.root?null:_509,_50a,_50b);if(_509===this.root){this.onAddToRoot(_507);}},onAddToRoot:function(item){},onLeaveRoot:function(item){},_requeryTop:function(){var _50e=this.root.children||[];this.store.fetch({query:this.query,onComplete:dojo.hitch(this,function(_50f){this.root.children=_50f;if(_50e.length!=_50f.length||dojo.some(_50e,function(item,idx){return _50f[idx]!=item;})){this.onChildrenChange(this.root,_50f);}})});},_onNewItem:function(item,_513){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(_515){this.indent=_515;var _516=(Math.max(_515,0)*19)+"px";dojo.style(this.domNode,"backgroundPosition",_516+" 0px");dojo.style(this.rowNode,dojo._isBodyLtr()?"paddingLeft":"paddingRight",_516);dojo.forEach(this.getChildren(),function(_517){_517.attr("indent",_515+1);});},markProcessing:function(){this.state="LOADING";this._setExpando(true);},unmarkProcessing:function(){this._setExpando(false);},_updateItemClasses:function(item){var tree=this.tree,_51a=tree.model;if(tree._v10Compat&&item===_51a.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 _51b=this.getParent();if(!_51b||_51b.rowNode.style.display=="none"){dojo.addClass(this.domNode,"dijitTreeIsRoot");}else{dojo.toggleClass(this.domNode,"dijitTreeIsLast",!this.getNextSibling());}},_setExpando:function(_51c){var _51d=["dijitTreeExpandoLoading","dijitTreeExpandoOpened","dijitTreeExpandoClosed","dijitTreeExpandoLeaf"];var _51e=["*","-","+","*"];var idx=_51c?0:(this.isExpandable?(this.isExpanded?1:2):3);dojo.forEach(_51d,function(s){dojo.removeClass(this.expandoNode,s);},this);dojo.addClass(this.expandoNode,_51d[idx]);this.expandoNodeText.innerHTML=_51e[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(_521){this.labelNode.innerHTML="";this.labelNode.appendChild(dojo.doc.createTextNode(_521));},indent:0,setChildItems:function(_522){var tree=this.tree,_524=tree.model;this.getChildren().forEach(function(_525){dijit._Container.prototype.removeChild.call(this,_525);},this);this.state="LOADED";if(_522&&_522.length>0){this.isExpandable=true;dojo.forEach(_522,function(item){var id=_524.getIdentity(item),_528=tree._itemNodeMap[id],node=(_528&&!_528.getParent())?_528:this.tree._createTreeNode({item:item,tree:tree,isExpandable:_524.mayHaveChildren(item),label:tree.getLabel(item),indent:this.indent+1});if(_528){_528.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(_52a,idx){_52a._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 _52e=this.getChildren();if(_52e.length==0){this.isExpandable=false;this.collapse();}dojo.forEach(_52e,function(_52f){_52f._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(_532){var _533=this.labelNode;_533.setAttribute("tabIndex",_532?"0":"-1");dijit.setWaiState(_533,"selected",_532);dojo.toggleClass(this.rowNode,"dijitTreeNodeSelected",_532);},_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(_536,_537){dojo.publish(this.id,[dojo.mixin({tree:this,event:_536},_537||{})]);},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 _538={};for(var i=0;i<this.dndParams.length;i++){if(this[this.dndParams[i]]){_538[this.dndParams[i]]=this[this.dndParams[i]];}}this.dndController=new this.dndController(this,_538);}},_store2model:function(){this._v10Compat=true;dojo.deprecated("Tree: from version 2.0, should specify a model object rather than a store/query");var _53a={id:this.id+"_ForestStoreModel",store:this.store,query:this.query,childrenAttrs:this.childrenAttr};if(this.params.mayHaveChildren){_53a.mayHaveChildren=dojo.hitch(this,"mayHaveChildren");}if(this.params.getItemChildren){_53a.getChildren=dojo.hitch(this,function(item,_53c,_53d){this.getItemChildren((this._v10Compat&&item===this.model.root)?null:item,_53c,_53d);});}this.model=new dijit.tree.ForestStoreModel(_53a);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(_542,_543){},getLabel:function(item){return this.model.getLabel(item);},getIconClass:function(item,_546){return (!item||this.model.mayHaveChildren(item))?(_546?"dijitFolderOpened":"dijitFolderClosed"):"dijitLeaf";},getLabelClass:function(item,_548){},getIconStyle:function(item,_54a){},getLabelStyle:function(item,_54c){},_onKeyPress:function(e){if(e.altKey){return;}var dk=dojo.keys;var _54f=dijit.getEnclosingWidget(e.target);if(!_54f){return;}var key=e.charOrCode;if(typeof key=="string"){if(!e.altKey&&!e.ctrlKey&&!e.shiftKey&&!e.metaKey){this._onLetterKeyNav({node:_54f,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:_54f,item:_54f.item});dojo.stopEvent(e);}}},_onEnterKey:function(_552){this._publish("execute",{item:_552.item,node:_552.node});this.onClick(_552.item,_552.node);},_onDownArrow:function(_553){var node=this._getNextNode(_553.node);if(node&&node.isTreeNode){this.focusNode(node);}},_onUpArrow:function(_555){var node=_555.node;var _557=node.getPreviousSibling();if(_557){node=_557;while(node.isExpandable&&node.isExpanded&&node.hasChildren()){var _558=node.getChildren();node=_558[_558.length-1];}}else{var _559=node.getParent();if(!(!this.showRoot&&_559===this.rootNode)){node=_559;}}if(node&&node.isTreeNode){this.focusNode(node);}},_onRightArrow:function(_55a){var node=_55a.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(_55c){var node=_55c.node;if(node.isExpandable&&node.isExpanded){this._collapseNode(node);}else{var _55e=node.getParent();if(_55e&&_55e.isTreeNode&&!(!this.showRoot&&_55e===this.rootNode)){this.focusNode(_55e);}}},_onHomeKey:function(){var node=this._getRootOrFirstNode();if(node){this.focusNode(node);}},_onEndKey:function(_560){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(_563){var node=_563.node,_565=node,key=_563.key;do{node=this._getNextNode(node);if(!node){node=this._getRootOrFirstNode();}}while(node!==_565&&(node.label.charAt(0).toLowerCase()!=key));if(node&&node.isTreeNode){if(node!==_565){this.focusNode(node);}}},_onClick:function(e){var _568=e.target;var _569=dijit.getEnclosingWidget(_568);if(!_569||!_569.isTreeNode){return;}if((this.openOnClick&&_569.isExpandable)||(_568==_569.expandoNode||_568==_569.expandoNodeText)){if(_569.isExpandable){this._onExpandoClick({node:_569});}}else{this._publish("execute",{item:_569.item,node:_569});this.onClick(_569.item,_569);this.focusNode(_569);}dojo.stopEvent(e);},_onDblClick:function(e){var _56b=e.target;var _56c=dijit.getEnclosingWidget(_56b);if(!_56c||!_56c.isTreeNode){return;}if((this.openOnDblClick&&_56c.isExpandable)||(_56b==_56c.expandoNode||_56b==_56c.expandoNodeText)){if(_56c.isExpandable){this._onExpandoClick({node:_56c});}}else{this._publish("execute",{item:_56c.item,node:_56c});this.onDblClick(_56c.item,_56c);this.focusNode(_56c);}dojo.stopEvent(e);},_onExpandoClick:function(_56d){var node=_56d.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 _578=node.getNextSibling();if(_578){return _578;}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 _57b=this.model,item=node.item;switch(node.state){case "LOADING":return;case "UNCHECKED":node.markProcessing();var _57d=this;_57b.getChildren(item,function(_57e){node.unmarkProcessing();node.setChildItems(_57e);_57d._expandNode(node);},function(err){console.error(_57d,": 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 _585=this.model,_586=_585.getIdentity(item),node=this._itemNodeMap[_586];if(node){node.setLabelNode(this.getLabel(item));node._updateItemClasses(item);}},_onItemChildrenChange:function(_588,_589){var _58a=this.model,_58b=_58a.getIdentity(_588),_58c=this._itemNodeMap[_58b];if(_58c){_58c.setChildItems(_589);}},_onItemDelete:function(item){var _58e=this.model,_58f=_58e.getIdentity(item),node=this._itemNodeMap[_58f];if(node){var _591=node.getParent();if(_591){_591.removeChild(node);}node.destroyRecursive();delete this._itemNodeMap[_58f];}},_initState:function(){if(this.persist){var _592=dojo.cookie(this.cookieName);this._openedItemIds={};if(_592){dojo.forEach(_592.split(","),function(item){this._openedItemIds[item]=true;},this);}}},_state:function(item,_595){if(!this.persist){return false;}var id=this.model.getIdentity(item);if(arguments.length===1){return this._openedItemIds[id];}if(_595){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}\"\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(_59a,_59b,_59c){var _59d;if(_59a!==undefined){_59d=this.filter(_59a);if(_59d!==null&&((typeof _59d!="number")||!isNaN(_59d))){if(typeof _59c!="string"){_59c=this.filter(this.format(_59d,this.constraints));}}else{_59c="";}}if(_59c!=null&&_59c!=undefined&&this.textbox.value!=_59c){this.textbox.value=_59c;}dijit.form.TextBox.superclass._setValueAttr.call(this,_59d,_59b);},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(_59e){dojo.deprecated(this.declaredClass+"::setDisplayedValue() is deprecated. Use attr('displayedValue', ...) instead.","","2.0");this.attr("displayedValue",_59e);},_setDisplayedValueAttr:function(_59f){this.textbox.value=_59f;this._setValueAttr(this.attr("value"),undefined,_59f);},format:function(_5a0,_5a1){return ((_5a0==null||_5a0==undefined)?"":(_5a0.toString?_5a0.toString():_5a0));},parse:function(_5a2,_5a3){return _5a2;},_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 _5a5=this;setTimeout(function(){_5a5._handleOnChange(_5a5.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();},filter:function(val){if(val===null){return "";}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(_5aa,_5ab,stop){var _5ad=dojo.global;var _5ae=dojo.doc;_5aa=dojo.byId(_5aa);if(isNaN(_5ab)){_5ab=0;}if(isNaN(stop)){stop=_5aa.value?_5aa.value.length:0;}_5aa.focus();if(_5ae["selection"]&&dojo.body()["createTextRange"]){if(_5aa.createTextRange){var _5af=_5aa.createTextRange();with(_5af){collapse(true);moveStart("character",_5ab);moveEnd("character",stop);select();}}}else{if(_5ad["getSelection"]){var _5b0=_5ad.getSelection();if(_5aa.setSelectionRange){_5aa.setSelectionRange(_5ab,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(_5b1){},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 _5b2={ondijitclick:"_onClick",onmouseover:"_onMouseOver",onmouseout:"_onMouseOut",onfocus:"_onMouseOver",onblur:"_onMouseOut"};for(var name in _5b2){this.connect(this.displayNode,name,_5b2[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(_5b4){dojo.deprecated("dijit.InlineEditBox.setDisabled() is deprecated.  Use attr('disabled', bool) instead.","","2.0");this.attr("disabled",_5b4);},_setDisabledAttr:function(_5b5){this.disabled=_5b5;dijit.setWaiState(this.domNode,"disabled",_5b5);},_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 _5b7=(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 _5b8=dojo.create("span",null,this.domNode,"before");var ew=this.editWidget=new dijit._InlineEditor({value:dojo.trim(_5b7),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},_5b8);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(_5bb){this.displayNode.style.display="";var ew=this.editWidget;var ews=ew.domNode.style;ews.position="absolute";ews.visibility="hidden";this.domNode=this.displayNode;if(_5bb){dijit.focus(this.displayNode);}ews.display="none";setTimeout(function(){ew.destroy();delete ew;if(dojo.isIE){dijit.focus(dijit.getFocus());}},1000);},save:function(_5be){if(this.disabled||!this.editing){return;}this.editing=false;var _5bf=this.editWidget.getValue()+"";this.attr("value",this.renderAsHtml?_5bf:_5bf.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;").replace(/\n/g,"<br>"));this.onChange(_5bf);this._showText(_5be);},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(_5c2){this.editing=false;this.onCancel();this._showText(_5c2);}});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 _5c5=this.sourceStyle;var _5c6="line-height:"+_5c5.lineHeight+";";dojo.forEach(["Weight","Family","Size","Style"],function(prop){_5c6+="font-"+prop+":"+_5c5["font"+prop]+";";},this);dojo.forEach(["marginTop","marginBottom","marginLeft","marginRight"],function(prop){this.domNode.style[prop]=_5c5[prop];},this);if(this.width=="100%"){_5c6+="width:100%;";this.domNode.style.display="block";}else{_5c6+="width:"+(this.width+(Number(this.width)==this.width?"px":""))+";";}this.editorParams.style=_5c6;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 _5cc=this;setTimeout(function(){_5cc._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 \ttype=\"${type}\"\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(_5cd){if(typeof _5cd=="string"){this.value=_5cd;dojo.attr(this.focusNode,"value",_5cd);_5cd=true;}if(this._created){this.attr("checked",_5cd);}},_getValueAttr:function(){return (this.checked?this.value:false);},postMixInProperties:function(){if(this.value==""){this.value="on";}this.inherited(arguments);},_fillContent:function(_5ce){},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(_5cf){this.inherited(arguments);if(!this._created){return;}if(_5cf){var _5d0=this;dojo.query("INPUT[type=radio][name='"+this.name+"']",this.focusNode.form||dojo.doc).forEach(function(_5d1){if(_5d1!=_5d0.focusNode&&_5d1.form==_5d0.focusNode.form){var _5d2=dijit.getEnclosingWidget(_5d1);if(_5d2&&_5d2.checked){_5d2.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\ttype='${type}'\n\t\t/></div\n\t></div\n></div>\n",baseClass:"dijitTextBox",required:false,promptMessage:"",invalidMessage:"$_unset_$",constraints:{},regExp:".*",regExpGen:function(_5d4){return this.regExp;},state:"",tooltipPosition:[],_setValueAttr:function(){this.inherited(arguments);this.validate(this._focused);},validator:function(_5d5,_5d6){return (new RegExp("^(?:"+this.regExpGen(_5d6)+")"+(this.required?"":"?")+"$")).test(_5d5)&&(!this.required||!this._isEmpty(_5d5))&&(this._isEmpty(_5d5)||this.parse(_5d5,_5d6)!==undefined);},_isValidSubset:function(){return this.textbox.value.search(this._partialre)==0;},isValid:function(_5d7){return this.validator(this.textbox.value,this.constraints);},_isEmpty:function(_5d8){return /^\s*$/.test(_5d8);},getErrorMessage:function(_5d9){return this.invalidMessage;},getPromptMessage:function(_5da){return this.promptMessage;},_maskValidSubsetError:true,validate:function(_5db){var _5dc="";var _5dd=this.disabled||this.isValid(_5db);if(_5dd){this._maskValidSubsetError=true;}var _5de=!_5dd&&_5db&&this._isValidSubset();var _5df=this._isEmpty(this.textbox.value);this.state=(_5dd||(!this._hasBeenBlurred&&_5df)||_5de)?"":"Error";if(this.state=="Error"){this._maskValidSubsetError=false;}this._setStateClass();dijit.setWaiState(this.focusNode,"invalid",_5dd?"false":"true");if(_5db){if(_5df){_5dc=this.getPromptMessage(true);}if(!_5dc&&(this.state=="Error"||(_5de&&!this._maskValidSubsetError))){_5dc=this.getErrorMessage(true);}}this.displayMessage(_5dc);return _5dd;},_message:"",displayMessage:function(_5e0){if(this._message==_5e0){return;}this._message=_5e0;dijit.hideTooltip(this.domNode);if(_5e0){dijit.showTooltip(_5e0,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 _5e2="";if(p!=".*"){this.regExp.replace(/\\.|\[\]|\[.*?[^\\]{1}\]|\{.*?\}|\(\?[=:!]|./g,function(re){switch(re.charAt(0)){case "{":case "+":case "?":case "*":case "^":case "$":case "|":case "(":_5e2+=re;break;case ")":_5e2+="|$)";break;default:_5e2+="(?:"+re+"|$)";break;}});}try{"".search(_5e2);}catch(e){_5e2=this.regExp;console.warn("RegExp error in "+this.declaredClass+": "+this.regExp);}this._partialre="^(?:"+_5e2+")$";},_setDisabledAttr:function(_5e4){this.inherited(arguments);if(this.valueNode){this.valueNode.disabled=_5e4;}this._refreshState();},_setRequiredAttr:function(_5e5){this.required=_5e5;dijit.setWaiState(this.focusNode,"required",_5e5);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,{serialize:function(val,_5e9){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},this.textbox,"after");},_setDisabledAttr:function(_5eb){this.inherited(arguments);dojo.attr(this.valueNode,"disabled",_5eb);},reset:function(){this.valueNode.value="";this.inherited(arguments);}});dojo.declare("dijit.form.RangeBoundTextBox",dijit.form.MappedTextBox,{rangeMessage:"",rangeCheck:function(_5ec,_5ed){var _5ee="min" in _5ed;var _5ef="max" in _5ed;if(_5ee||_5ef){return (!_5ee||this.compare(_5ec,_5ed.min)>=0)&&(!_5ef||this.compare(_5ec,_5ed.max)<=0);}return true;},isInRange:function(_5f0){return this.rangeCheck(this.attr("value"),this.constraints);},_isDefinitelyOutOfRange:function(){var val=this.attr("value");var _5f2=false;var _5f3=false;if("min" in this.constraints){var min=this.constraints.min;val=this.compare(val,((typeof min=="number")&&min>=0&&val!=0)?0:min);_5f2=(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);_5f3=(typeof val=="number")&&val>0;}return _5f2||_5f3;},_isValidSubset:function(){return this.inherited(arguments)&&!this._isDefinitelyOutOfRange();},isValid:function(_5f6){return this.inherited(arguments)&&((this._isEmpty(this.textbox.value)&&!this.required)||this.isInRange(_5f6));},getErrorMessage:function(_5f7){if(dijit.form.RangeBoundTextBox.superclass.isValid.call(this,false)&&!this.isInRange(_5f7)){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(_5f8,_5f9){dijit.setWaiState(this.focusNode,"valuenow",_5f8);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(_5fd,_5fe){var _5ff=[];function _600(attr,dir){return function(_603,_604){var a=_5fe.getValue(_603,attr);var b=_5fe.getValue(_604,attr);var _607=null;if(_5fe.comparatorMap){if(typeof attr!=="string"){attr=_5fe.getIdentity(attr);}_607=_5fe.comparatorMap[attr]||dojo.data.util.sorter.basicComparator;}_607=_607||dojo.data.util.sorter.basicComparator;return dir*_607(a,b);};};var _608;for(var i=0;i<_5fd.length;i++){_608=_5fd[i];if(_608.attribute){var _60a=(_608.descending)?-1:1;_5ff.push(_600(_608.attribute,_60a));}}return function(rowA,rowB){var i=0;while(i<_5ff.length){var ret=_5ff[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(_60f){_60f=_60f||{};if(!_60f.store){_60f.store=this;}var self=this;var _611=function(_612,_613){if(_613.onError){var _614=_613.scope||dojo.global;_613.onError.call(_614,_612,_613);}};var _615=function(_616,_617){var _618=_617.abort||null;var _619=false;var _61a=_617.start?_617.start:0;var _61b=(_617.count&&(_617.count!==Infinity))?(_61a+_617.count):_616.length;_617.abort=function(){_619=true;if(_618){_618.call(_617);}};var _61c=_617.scope||dojo.global;if(!_617.store){_617.store=self;}if(_617.onBegin){_617.onBegin.call(_61c,_616.length,_617);}if(_617.sort){_616.sort(dojo.data.util.sorter.createSortFunction(_617.sort,self));}if(_617.onItem){for(var i=_61a;(i<_616.length)&&(i<_61b);++i){var item=_616[i];if(!_619){_617.onItem.call(_61c,item,_617);}}}if(_617.onComplete&&!_619){var _61f=null;if(!_617.onItem){_61f=_616.slice(_61a,_61b);}_617.onComplete.call(_61c,_61f,_617);}};this._fetchItems(_60f,_615,_611);return _60f;};}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(_620,_621){var rxp="^";var c=null;for(var i=0;i<_620.length;i++){c=_620.charAt(i);switch(c){case "\\":rxp+=c;i++;rxp+=_620.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(_621){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 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(_625){var pos=0;if(typeof (_625.selectionStart)=="number"){pos=_625.selectionStart;}else{if(dojo.isIE){var tr=dojo.doc.selection.createRange().duplicate();var ntr=_625.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(_629,_62a){_62a=parseInt(_62a);dijit.selectInputText(_629,_62a,_62a);},_setDisabledAttr:function(_62b){dijit.setWaiState(this.comboNode,"disabled",_62b);},_onKeyPress:function(evt){var key=evt.charOrCode;if(evt.altKey||(evt.ctrlKey&&(key!="x"&&key!="v"))||evt.key==dojo.keys.SHIFT){return;}var _62e=false;var pw=this._popupWidget;var dk=dojo.keys;var _631=null;if(this._isShowingNow){pw.handleKey(key);_631=pw.getHighlightedOption();}switch(key){case dk.PAGE_DOWN:case dk.DOWN_ARROW:if(!this._isShowingNow||this._prev_key_esc){this._arrowPressed();_62e=true;}else{if(_631){this._announceOption(_631);}}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(_631);}dojo.stopEvent(evt);this._prev_key_backspace=false;this._prev_key_esc=false;break;case dk.ENTER:if(_631){if(_631==pw.nextButton){this._nextSearch(1);dojo.stopEvent(evt);break;}else{if(_631==pw.previousButton){this._nextSearch(-1);dojo.stopEvent(evt);break;}}}else{this._setDisplayedValueAttr(this.attr("displayedValue"),true);}evt.preventDefault();case dk.TAB:var _632=this.attr("displayedValue");if(pw&&(_632==pw._messages["previousMessage"]||_632==pw._messages["nextMessage"])){break;}if(this._isShowingNow){this._prev_key_backspace=false;this._prev_key_esc=false;if(_631){pw.attr("value",{target:_631});}this._lastQuery=null;this._hideResultList();}break;case " ":this._prev_key_backspace=false;this._prev_key_esc=false;if(_631){dojo.stopEvent(evt);this._selectOption();this._hideResultList();}else{_62e=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;_62e=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;_62e=typeof key=="string";}if(this.searchTimer){clearTimeout(this.searchTimer);}if(_62e){setTimeout(dojo.hitch(this,"_startSearchFromInput"),1);}},_autoCompleteText:function(text){var fn=this.focusNode;dijit.selectInputText(fn,fn.value.length);var _635=this.ignoreCase?"toLowerCase":"substr";if(text[_635](0).indexOf(this.focusNode.value[_635](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(_637,_638){if(this.disabled||this.readOnly||(_638.query[this.searchAttr]!=this._lastQuery)){return;}this._popupWidget.clearResultList();if(!_637.length){this._hideResultList();return;}this.item=null;var _639=new String(this.store.getValue(_637[0],this.searchAttr));if(_639&&this.autoComplete&&!this._prev_key_backspace&&(_638.query[this.searchAttr]!="*")){this.item=_637[0];this._autoCompleteText(_639);}_638._maxOptions=this._maxOptions;this._popupWidget.createOptions(_637,_638,dojo.hitch(this,"_getMenuLabelFromItem"));this._showResultList();if(_638.direction){if(1==_638.direction){this._popupWidget.highlightFirstOption();}else{if(-1==_638.direction){this._popupWidget.highlightLastOption();}}this._announceOption(this._popupWidget.getHighlightedOption());}},_showResultList:function(){this._hideResultList();var _63a=this._popupWidget.getItems(),_63b=Math.min(_63a.length,this.maxListLength);this._arrowPressed();this.displayMessage("");dojo.style(this._popupWidget.domNode,{width:"",height:""});var best=this.open();var _63d=dojo.marginBox(this._popupWidget.domNode);this._popupWidget.domNode.style.overflow=((best.h==_63d.h)&&(best.w==_63d.w))?"hidden":"auto";var _63e=best.w;if(best.h<this._popupWidget.domNode.scrollHeight){_63e+=16;}dojo.marginBox(this._popupWidget.domNode,{h:best.h,w:Math.max(_63e,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 _63f=this.attr("displayedValue");var pw=this._popupWidget;if(pw&&(_63f==pw._messages["previousMessage"]||_63f==pw._messages["nextMessage"])){this._setValueAttr(this._lastValueReported,true);}else{this.attr("displayedValue",_63f);}},_onBlur:function(){this._hideResultList();this._arrowIdle();this.inherited(arguments);},_announceOption:function(node){if(node==null){return;}var _642;if(node==this._popupWidget.nextButton||node==this._popupWidget.previousButton){_642=node.innerHTML;}else{_642=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(_642);},_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 _649=this.id+"_popup";this._popupWidget=new dijit.form._ComboBoxMenu({onChange:dojo.hitch(this,this._selectOption),id:_649});dijit.removeWaiState(this.focusNode,"activedescendant");dijit.setWaiState(this.textbox,"owns",_649);}this.item=null;var _64a=dojo.clone(this.query);this._lastInput=key;this._lastQuery=_64a[this.searchAttr]=this._getQueryString(key);this.searchTimer=setTimeout(dojo.hitch(this,function(_64b,_64c){var _64d={queryOptions:{ignoreCase:this.ignoreCase,deep:true},query:_64b,onBegin:dojo.hitch(this,"_setMaxOptions"),onComplete:dojo.hitch(this,"_openResultList"),onError:function(_64e){console.error("dijit.form.ComboBox: "+_64e);dojo.hitch(_64c,"_hideResultList")();},start:0,count:this.pageSize};dojo.mixin(_64d,_64c.fetchProperties);var _64f=_64c.store.fetch(_64d);var _650=function(_651,_652){_651.start+=_651.count*_652;_651.direction=_652;this.store.fetch(_651);};this._nextSearch=this._popupWidget.onPage=dojo.hitch(this,_650,_64f);},_64a,this),this.searchDelay);},_setMaxOptions:function(size,_654){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 _656=this.srcNodeRef;this.store=new dijit.form._ComboBoxDataStore(_656);if(!this.value||((typeof _656.selectedIndex=="number")&&_656.selectedIndex.toString()===this.value)){var item=this.store.fetchSelectedItem();if(item){this.value=this.store.getValue(item,this._getValueField());}}}},_postCreate:function(){var _658=dojo.query("label[for=\""+this.id+"\"]");if(_658.length){_658[0].id=(this.id+"_label");var cn=this.comboNode;dijit.setWaiState(cn,"labelledby",_658[0].id);}},uninitialize:function(){if(this._popupWidget){this._hideResultList();this._popupWidget.destroy();}},_getMenuLabelFromItem:function(item){var _65b=this.store.getValue(item,this.labelAttr||this.searchAttr);var _65c=this.labelType;if(this.highlightMatch!="none"&&this.labelType=="text"&&this._lastInput){_65b=this.doHighlight(_65b,this._escapeHtml(this._lastInput));_65c="html";}return {html:_65c=="html",label:_65b};},doHighlight:function(_65d,find){var _65f="i"+(this.highlightMatch=="all"?"g":"");var _660=this._escapeHtml(_65d);find=dojo.regexp.escapeString(find);var ret=_660.replace(new RegExp("(^|\\s)("+find+")",_65f),"$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(_663){this.value=_663;this.onChange(_663);},onChange:function(_664){},onPage:function(_665){},postCreate:function(){this.previousButton.innerHTML=this._messages["previousMessage"];this.nextButton.innerHTML=this._messages["nextMessage"];this.inherited(arguments);},onClose:function(){this._blurOptionNode();},_createOption:function(item,_667){var _668=_667(item);var _669=dojo.doc.createElement("li");dijit.setWaiRole(_669,"option");if(_668.html){_669.innerHTML=_668.label;}else{_669.appendChild(dojo.doc.createTextNode(_668.label));}if(_669.innerHTML==""){_669.innerHTML="&nbsp;";}_669.item=item;return _669;},createOptions:function(_66a,_66b,_66c){this.previousButton.style.display=(_66b.start==0)?"none":"";dojo.attr(this.previousButton,"id",this.id+"_prev");dojo.forEach(_66a,function(item,i){var _66f=this._createOption(item,_66c);_66f.className="dijitReset dijitMenuItem";dojo.attr(_66f,"id",this.id+i);this.domNode.insertBefore(_66f,this.nextButton);},this);var _670=false;if(_66b._maxOptions&&_66b._maxOptions!=-1){if((_66b.start+_66b.count)<_66b._maxOptions){_670=true;}else{if((_66b.start+_66b.count)>(_66b._maxOptions-1)){if(_66b.count==_66a.length){_670=true;}}}}else{if(_66b.count==_66a.length){_670=true;}}this.nextButton.style.display=_670?"":"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 _67d=0;var _67e=this.domNode.scrollTop;var _67f=dojo.style(this.domNode,"height");if(!this.getHighlightedOption()){this._highlightNextOption();}while(_67d<_67f){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 _680=this.domNode.scrollTop;_67d+=(_680-_67e)*(up?-1:1);_67e=_680;}},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],{postMixInProperties:function(){dijit.form.ComboBoxMixin.prototype.postMixInProperties.apply(this,arguments);dijit.form.ValidationTextBox.prototype.postMixInProperties.apply(this,arguments);},postCreate:function(){dijit.form.ComboBoxMixin.prototype._postCreate.apply(this,arguments);dijit.form.ValidationTextBox.prototype.postCreate.apply(this,arguments);},_setDisabledAttr:function(_683){dijit.form.ValidationTextBox.prototype._setDisabledAttr.apply(this,arguments);dijit.form.ComboBoxMixin.prototype._setDisabledAttr.apply(this,arguments);},_setValueAttr:function(_684,_685){if(!_684){_684="";}dijit.form.ValidationTextBox.prototype._setValueAttr.call(this,_684,_685);}});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,_689,_68a){return (_689=="value")?item.value:(item.innerText||item.textContent||"");},isItemLoaded:function(_68b){return true;},getFeatures:function(){return {"dojo.data.api.Read":true,"dojo.data.api.Identity":true};},_fetchItems:function(args,_68d,_68e){if(!args.query){args.query={};}if(!args.query.name){args.query.name="";}if(!args.queryOptions){args.queryOptions={};}var _68f=dojo.data.util.filter.patternToRegExp(args.query.name,args.queryOptions.ignoreCase),_690=dojo.query("> option",this.root).filter(function(_691){return (_691.innerText||_691.textContent||"").match(_68f);});if(args.sort){_690.sort(dojo.data.util.sorter.createSortFunction(args.sort,this));}_68d(_690,args);},close:function(_692){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 _69a={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 _69b={CHF:5};var _69c=_69a[code],_69d=_69b[code];if(typeof _69c=="undefined"){_69c=2;}if(typeof _69d=="undefined"){_69d=0;}return {places:_69c,round:_69d};};}if(!dojo._hasResource["dojo.currency"]){dojo._hasResource["dojo.currency"]=true;dojo.provide("dojo.currency");dojo.currency._mixInDefaults=function(_69e){_69e=_69e||{};_69e.type="currency";var _69f=dojo.i18n.getLocalization("dojo.cldr","currency",_69e.locale)||{};var iso=_69e.currency;var data=dojo.cldr.monetary.getData(iso);dojo.forEach(["displayName","symbol","group","decimal"],function(prop){data[prop]=_69f[iso+"_"+prop];});data.fractional=[true,false];return dojo.mixin(data,_69e);};dojo.currency.format=function(_6a3,_6a4){return dojo.number.format(_6a3,dojo.currency._mixInDefaults(_6a4));};dojo.currency.regexp=function(_6a5){return dojo.number.regexp(dojo.currency._mixInDefaults(_6a5));};dojo.currency.parse=function(_6a6,_6a7){return dojo.number.parse(_6a6,dojo.currency._mixInDefaults(_6a7));};}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,editOptions:{pattern:"#.######"},_formatter:dojo.number.format,_onFocus:function(){if(this.disabled){return;}var val=this.attr("value");if(typeof val=="number"&&!isNaN(val)){this.textbox.value=this.format(val,this.constraints);}this.inherited(arguments);},format:function(_6a9,_6aa){if(typeof _6a9=="string"){return _6a9;}if(isNaN(_6a9)){return "";}if(this.editOptions&&this._focused){_6aa=dojo.mixin(dojo.mixin({},this.editOptions),this.constraints);}return this._formatter(_6a9,_6aa);},parse:dojo.number.parse,_getDisplayedValueAttr:function(){var v=this.inherited(arguments);return isNaN(v)?this.textbox.value:v;},filter:function(_6ac){return (_6ac===null||_6ac===""||_6ac===undefined)?NaN:this.inherited(arguments);},serialize:function(_6ad,_6ae){return (typeof _6ad!="number"||isNaN(_6ad))?"":this.inherited(arguments);},_getValueAttr:function(){var v=this.inherited(arguments);if(isNaN(v)&&this.textbox.value!==""){return undefined;}return v;},value:NaN});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(){if(this.constraints===dijit.form.ValidationTextBox.prototype.constraints){this.constraints={};}this.constraints.currency=this.currency;dijit.form.CurrencyTextBox.superclass.postMixInProperties.apply(this,arguments);}});}if(!dojo._hasResource["dojo.cldr.supplemental"]){dojo._hasResource["dojo.cldr.supplemental"]=true;dojo.provide("dojo.cldr.supplemental");dojo.cldr.supplemental.getFirstDayOfWeek=function(_6b0){var _6b1={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 _6b2=dojo.cldr.supplemental._region(_6b0);var dow=_6b1[_6b2];return (dow===undefined)?1:dow;};dojo.cldr.supplemental._region=function(_6b4){_6b4=dojo.i18n.normalizeLocale(_6b4);var tags=_6b4.split("-");var _6b6=tags[1];if(!_6b6){_6b6={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(_6b6.length==4){_6b6=tags[2];}}return _6b6;};dojo.cldr.supplemental.getWeekend=function(_6b7){var _6b8={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 _6b9={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 _6ba=dojo.cldr.supplemental._region(_6b7);var _6bb=_6b8[_6ba];var end=_6b9[_6ba];if(_6bb===undefined){_6bb=6;}if(end===undefined){end=0;}return {start:_6bb,end:end};};}if(!dojo._hasResource["dojo.date"]){dojo._hasResource["dojo.date"]=true;dojo.provide("dojo.date");dojo.date.getDaysInMonth=function(_6bd){var _6be=_6bd.getMonth();var days=[31,28,31,30,31,30,31,31,30,31,30,31];if(_6be==1&&dojo.date.isLeapYear(_6bd)){return 29;}return days[_6be];};dojo.date.isLeapYear=function(_6c0){var year=_6c0.getFullYear();return !(year%400)||(!(year%4)&&!!(year%100));};dojo.date.getTimezoneName=function(_6c2){var str=_6c2.toString();var tz="";var _6c5;var pos=str.indexOf("(");if(pos>-1){tz=str.substring(++pos,str.indexOf(")"));}else{var pat=/([A-Z\/]+) \d{4}$/;if((_6c5=str.match(pat))){tz=_6c5[1];}else{str=_6c2.toLocaleString();pat=/ ([A-Z\/]+)$/;if((_6c5=str.match(pat))){tz=_6c5[1];}}}return (tz=="AM"||tz=="PM")?"":tz;};dojo.date.compare=function(_6c8,_6c9,_6ca){_6c8=new Date(Number(_6c8));_6c9=new Date(Number(_6c9||new Date()));if(_6ca!=="undefined"){if(_6ca=="date"){_6c8.setHours(0,0,0,0);_6c9.setHours(0,0,0,0);}else{if(_6ca=="time"){_6c8.setFullYear(0,0,0);_6c9.setFullYear(0,0,0);}}}if(_6c8>_6c9){return 1;}if(_6c8<_6c9){return -1;}return 0;};dojo.date.add=function(date,_6cc,_6cd){var sum=new Date(Number(date));var _6cf=false;var _6d0="Date";switch(_6cc){case "day":break;case "weekday":var days,_6d2;var mod=_6cd%5;if(!mod){days=(_6cd>0)?5:-5;_6d2=(_6cd>0)?((_6cd-5)/5):((_6cd+5)/5);}else{days=mod;_6d2=parseInt(_6cd/5);}var strt=date.getDay();var adj=0;if(strt==6&&_6cd>0){adj=1;}else{if(strt==0&&_6cd<0){adj=-1;}}var trgt=strt+days;if(trgt==0||trgt==6){adj=(_6cd>0)?2:-2;}_6cd=(7*_6d2)+days+adj;break;case "year":_6d0="FullYear";_6cf=true;break;case "week":_6cd*=7;break;case "quarter":_6cd*=3;case "month":_6cf=true;_6d0="Month";break;case "hour":case "minute":case "second":case "millisecond":_6d0="UTC"+_6cc.charAt(0).toUpperCase()+_6cc.substring(1)+"s";}if(_6d0){sum["set"+_6d0](sum["get"+_6d0]()+_6cd);}if(_6cf&&(sum.getDate()<date.getDate())){sum.setDate(0);}return sum;};dojo.date.difference=function(_6d7,_6d8,_6d9){_6d8=_6d8||new Date();_6d9=_6d9||"day";var _6da=_6d8.getFullYear()-_6d7.getFullYear();var _6db=1;switch(_6d9){case "quarter":var m1=_6d7.getMonth();var m2=_6d8.getMonth();var q1=Math.floor(m1/3)+1;var q2=Math.floor(m2/3)+1;q2+=(_6da*4);_6db=q2-q1;break;case "weekday":var days=Math.round(dojo.date.difference(_6d7,_6d8,"day"));var _6e1=parseInt(dojo.date.difference(_6d7,_6d8,"week"));var mod=days%7;if(mod==0){days=_6e1*5;}else{var adj=0;var aDay=_6d7.getDay();var bDay=_6d8.getDay();_6e1=parseInt(days/7);mod=days%7;var _6e6=new Date(_6d7);_6e6.setDate(_6e6.getDate()+(_6e1*7));var _6e7=_6e6.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 (_6e7+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 (_6e7+mod)<0:adj=2;}}}days+=adj;days-=(_6e1*2);}_6db=days;break;case "year":_6db=_6da;break;case "month":_6db=(_6d8.getMonth()-_6d7.getMonth())+(_6da*12);break;case "week":_6db=parseInt(dojo.date.difference(_6d7,_6d8,"day")/7);break;case "day":_6db/=24;case "hour":_6db/=60;case "minute":_6db/=60;case "second":_6db/=1000;case "millisecond":_6db*=_6d8.getTime()-_6d7.getTime();}return Math.round(_6db);};}if(!dojo._hasResource["dojo.date.locale"]){dojo._hasResource["dojo.date.locale"]=true;dojo.provide("dojo.date.locale");(function(){function _6e8(_6e9,_6ea,_6eb,_6ec){return _6ec.replace(/([a-z])\1*/ig,function(_6ed){var s,pad;var c=_6ed.charAt(0);var l=_6ed.length;var _6f2=["abbr","wide","narrow"];switch(c){case "G":s=_6ea[(l<4)?"eraAbbr":"eraNames"][_6e9.getFullYear()<0?0:1];break;case "y":s=_6e9.getFullYear();switch(l){case 1:break;case 2:if(!_6eb){s=String(s);s=s.substr(s.length-2);break;}default:pad=true;}break;case "Q":case "q":s=Math.ceil((_6e9.getMonth()+1)/3);pad=true;break;case "M":var m=_6e9.getMonth();if(l<3){s=m+1;pad=true;}else{var _6f4=["months","format",_6f2[l-3]].join("-");s=_6ea[_6f4][m];}break;case "w":var _6f5=0;s=dojo.date.locale._getWeekOfYear(_6e9,_6f5);pad=true;break;case "d":s=_6e9.getDate();pad=true;break;case "D":s=dojo.date.locale._getDayOfYear(_6e9);pad=true;break;case "E":var d=_6e9.getDay();if(l<3){s=d+1;pad=true;}else{var _6f7=["days","format",_6f2[l-3]].join("-");s=_6ea[_6f7][d];}break;case "a":var _6f8=(_6e9.getHours()<12)?"am":"pm";s=_6ea[_6f8];break;case "h":case "H":case "K":case "k":var h=_6e9.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=_6e9.getMinutes();pad=true;break;case "s":s=_6e9.getSeconds();pad=true;break;case "S":s=Math.round(_6e9.getMilliseconds()*Math.pow(10,l-3));pad=true;break;case "v":case "z":s=dojo.date.getTimezoneName(_6e9);if(s){break;}l=4;case "Z":var _6fa=_6e9.getTimezoneOffset();var tz=[(_6fa<=0?"+":"-"),dojo.string.pad(Math.floor(Math.abs(_6fa)/60),2),dojo.string.pad(Math.abs(_6fa)%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: "+_6ec);}if(pad){s=dojo.string.pad(s,l);}return s;});};dojo.date.locale.format=function(_6fc,_6fd){_6fd=_6fd||{};var _6fe=dojo.i18n.normalizeLocale(_6fd.locale);var _6ff=_6fd.formatLength||"short";var _700=dojo.date.locale._getGregorianBundle(_6fe);var str=[];var _702=dojo.hitch(this,_6e8,_6fc,_700,_6fd.fullYear);if(_6fd.selector=="year"){var year=_6fc.getFullYear();if(_6fe.match(/^zh|^ja/)){year+="年";}return year;}if(_6fd.selector!="time"){var _704=_6fd.datePattern||_700["dateFormat-"+_6ff];if(_704){str.push(_705(_704,_702));}}if(_6fd.selector!="date"){var _706=_6fd.timePattern||_700["timeFormat-"+_6ff];if(_706){str.push(_705(_706,_702));}}var _707=str.join(" ");return _707;};dojo.date.locale.regexp=function(_708){return dojo.date.locale._parseInfo(_708).regexp;};dojo.date.locale._parseInfo=function(_709){_709=_709||{};var _70a=dojo.i18n.normalizeLocale(_709.locale);var _70b=dojo.date.locale._getGregorianBundle(_70a);var _70c=_709.formatLength||"short";var _70d=_709.datePattern||_70b["dateFormat-"+_70c];var _70e=_709.timePattern||_70b["timeFormat-"+_70c];var _70f;if(_709.selector=="date"){_70f=_70d;}else{if(_709.selector=="time"){_70f=_70e;}else{_70f=_70d+" "+_70e;}}var _710=[];var re=_705(_70f,dojo.hitch(this,_712,_710,_70b,_709));return {regexp:re,tokens:_710,bundle:_70b};};dojo.date.locale.parse=function(_713,_714){var info=dojo.date.locale._parseInfo(_714);var _716=info.tokens,_717=info.bundle;var re=new RegExp("^"+info.regexp+"$",info.strict?"":"i");var _719=re.exec(_713);if(!_719){return null;}var _71a=["abbr","wide","narrow"];var _71b=[1970,0,1,0,0,0,0];var amPm="";var _71d=dojo.every(_719,function(v,i){if(!i){return true;}var _720=_716[i-1];var l=_720.length;switch(_720.charAt(0)){case "y":if(l!=2&&_714.strict){_71b[0]=v;}else{if(v<100){v=Number(v);var year=""+new Date().getFullYear();var _723=year.substring(0,2)*100;var _724=Math.min(Number(year.substring(2,4))+20,99);var num=(v<_724)?_723+v:_723-100+v;_71b[0]=num;}else{if(_714.strict){return false;}_71b[0]=v;}}break;case "M":if(l>2){var _726=_717["months-format-"+_71a[l-3]].concat();if(!_714.strict){v=v.replace(".","").toLowerCase();_726=dojo.map(_726,function(s){return s.replace(".","").toLowerCase();});}v=dojo.indexOf(_726,v);if(v==-1){return false;}}else{v--;}_71b[1]=v;break;case "E":case "e":var days=_717["days-format-"+_71a[l-3]].concat();if(!_714.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":_71b[1]=0;case "d":_71b[2]=v;break;case "a":var am=_714.am||_717.am;var pm=_714.pm||_717.pm;if(!_714.strict){var _72c=/\./g;v=v.replace(_72c,"").toLowerCase();am=am.replace(_72c,"").toLowerCase();pm=pm.replace(_72c,"").toLowerCase();}if(_714.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;}_71b[3]=v;break;case "m":_71b[4]=v;break;case "s":_71b[5]=v;break;case "S":_71b[6]=v;}return true;});var _72d=+_71b[3];if(amPm==="p"&&_72d<12){_71b[3]=_72d+12;}else{if(amPm==="a"&&_72d==12){_71b[3]=0;}}var _72e=new Date(_71b[0],_71b[1],_71b[2],_71b[3],_71b[4],_71b[5],_71b[6]);if(_714.strict){_72e.setFullYear(_71b[0]);}var _72f=_716.join("");if(!_71d||(_72f.indexOf("M")!=-1&&_72e.getMonth()!=_71b[1])||(_72f.indexOf("d")!=-1&&_72e.getDate()!=_71b[2])){return null;}return _72e;};function _705(_730,_731,_732,_733){var _734=function(x){return x;};_731=_731||_734;_732=_732||_734;_733=_733||_734;var _736=_730.match(/(''|[^'])+/g);var _737=_730.charAt(0)=="'";dojo.forEach(_736,function(_738,i){if(!_738){_736[i]="";}else{_736[i]=(_737?_732:_731)(_738);_737=!_737;}});return _733(_736.join(""));};function _712(_73a,_73b,_73c,_73d){_73d=dojo.regexp.escapeString(_73d);if(!_73c.strict){_73d=_73d.replace(" a"," ?a");}return _73d.replace(/([a-z])\1*/ig,function(_73e){var s;var c=_73e.charAt(0);var l=_73e.length;var p2="",p3="";if(_73c.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=_73c.am||_73b.am||"AM";var pm=_73c.pm||_73b.pm||"PM";if(_73c.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(_73a){_73a.push(_73e);}return "("+s+")";}).replace(/[\xa0 ]/g,"[\\s\\xa0]");};})();(function(){var _746=[];dojo.date.locale.addCustomFormats=function(_747,_748){_746.push({pkg:_747,name:_748});};dojo.date.locale._getGregorianBundle=function(_749){var _74a={};dojo.forEach(_746,function(desc){var _74c=dojo.i18n.getLocalization(desc.pkg,desc.name,_749);_74a=dojo.mixin(_74a,_74c);},this);return _74a;};})();dojo.date.locale.addCustomFormats("dojo.cldr","gregorian");dojo.date.locale.getNames=function(item,type,_74f,_750){var _751;var _752=dojo.date.locale._getGregorianBundle(_750);var _753=[item,_74f,type];if(_74f=="standAlone"){var key=_753.join("-");_751=_752[key];if(_751[0]==1){_751=undefined;}}_753[1]="format";return (_751||_752[_753.join("-")]).concat();};dojo.date.locale.displayPattern=function(_755,_756){var _757="GyMdkHmsSEDFwWahKzYeugAZvcL",_758=dojo.date.locale._getGregorianBundle(_756).patternChars;return dojo.map(_755,function(c){var i=_757.indexOf(c);return i<0?c:_758.charAt(i);}).join("");};dojo.date.locale.isWeekend=function(_75b,_75c){var _75d=dojo.cldr.supplemental.getWeekend(_75c);var day=(_75b||new Date()).getDay();if(_75d.end<_75d.start){_75d.end+=7;if(day<_75d.start){day+=7;}}return day>=_75d.start&&day<=_75d.end;};dojo.date.locale._getDayOfYear=function(_75f){return dojo.date.difference(new Date(_75f.getFullYear(),0,1,_75f.getHours()),_75f)+1;};dojo.date.locale._getWeekOfYear=function(_760,_761){if(arguments.length==1){_761=0;}var _762=new Date(_760.getFullYear(),0,1).getDay();var adj=(_762-_761+7)%7;var week=Math.floor((dojo.date.locale._getDayOfYear(_760)+adj-1)/7);if(_762==_761){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(_765){dojo.deprecated("dijit.Calendar:setValue() is deprecated.  Use attr('value', ...) instead.","","2.0");this.attr("value",_765);},_setValueAttr:function(_766){if(!this.value||dojo.date.compare(_766,this.value)){_766=new Date(_766);_766.setHours(1);this.displayMonth=new Date(_766);if(!this.isDisabledDate(_766,this.lang)){this.onChange(this.value=_766);}this._populateGrid();}},_setText:function(node,text){while(node.firstChild){node.removeChild(node.firstChild);}node.appendChild(dojo.doc.createTextNode(text));},_populateGrid:function(){var _769=this.displayMonth;_769.setDate(1);var _76a=_769.getDay();var _76b=dojo.date.getDaysInMonth(_769);var _76c=dojo.date.getDaysInMonth(dojo.date.add(_769,"month",-1));var _76d=new Date();var _76e=this.value;var _76f=dojo.cldr.supplemental.getFirstDayOfWeek(this.lang);if(_76f>_76a){_76f-=7;}dojo.query(".dijitCalendarDateTemplate",this.domNode).forEach(function(_770,i){i+=_76f;var date=new Date(_769);var _773,_774="dijitCalendar",adj=0;if(i<_76a){_773=_76c-_76a+i+1;adj=-1;_774+="Previous";}else{if(i>=(_76a+_76b)){_773=i-_76a-_76b+1;adj=1;_774+="Next";}else{_773=i-_76a+1;_774+="Current";}}if(adj){date=dojo.date.add(date,"month",adj);}date.setDate(_773);if(!dojo.date.compare(date,_76d,"date")){_774="dijitCalendarCurrentDate "+_774;}if(!dojo.date.compare(date,_76e,"date")){_774="dijitCalendarSelectedDate "+_774;}if(this.isDisabledDate(date,this.lang)){_774="dijitCalendarDisabledDate "+_774;}var _776=this.getClassForDate(date,this.lang);if(_776){_774=_776+" "+_774;}_770.className=_774+"Month dijitCalendarDateTemplate";_770.dijitDateValue=date.valueOf();var _777=dojo.query(".dijitCalendarDateLabel",_770)[0];this._setText(_777,date.getDate());},this);var _778=dojo.date.locale.getNames("months","wide","standAlone",this.lang);this._setText(this.monthLabelNode,_778[_769.getMonth()]);var y=_769.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 _77c=this;var _77d=function(_77e,_77f,adj){_77c._connects.push(dijit.typematic.addMouseListener(_77c[_77e],_77c,function(_781){if(_781>=0){_77c._adjustDisplay(_77f,adj);}},0.8,500));};_77d("incrementMonth","month",1);_77d("decrementMonth","month",-1);_77d("nextYearLabelNode","year",1);_77d("previousYearLabelNode","year",-1);},goToToday:function(){this.attr("value",new Date());},postCreate:function(){this.inherited(arguments);dojo.setSelectable(this.domNode,false);var _782=dojo.hitch(this,function(_783,n){var _785=dojo.query(_783,this.domNode)[0];for(var i=0;i<n;i++){_785.parentNode.appendChild(_785.cloneNode(true));}});_782(".dijitCalendarDayLabelTemplate",6);_782(".dijitCalendarDateTemplate",6);_782(".dijitCalendarWeekTemplate",5);var _787=dojo.date.locale.getNames("days",this.dayWidth,"standAlone",this.lang);var _788=dojo.cldr.supplemental.getFirstDayOfWeek(this.lang);dojo.query(".dijitCalendarDayLabel",this.domNode).forEach(function(_789,i){this._setText(_789,_787[(i+_788)%7]);},this);var _78b=dojo.date.locale.getNames("months","wide","standAlone",this.lang);dojo.forEach(_78b,function(name){var _78d=dojo.create("div",null,this.monthLabelSpacer);this._setText(_78d,name);},this);this.value=null;this.attr("value",new Date());},_adjustDisplay:function(part,_78f){this.displayMonth=dojo.date.add(this.displayMonth,part,_78f);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.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(_798,_799){},getClassForDate:function(_79a,_79b){}});}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(_79c,_79d){if(!_79c){return "";}return dojo.date.locale.format(_79c,_79d);},parse:function(_79e,_79f){return dojo.date.locale.parse(_79e,_79f)||(this._isEmpty(_79e)?null:undefined);},serialize:dojo.date.stamp.toISOString,value:new Date(""),popupClass:"",_selector:"",postMixInProperties:function(){this.inherited(arguments);if(!this.value||this.value.toString()==dijit.form._DateTimeTextBox.prototype.value.toString()){this.value=null;}var _7a0=this.constraints;_7a0.selector=this._selector;_7a0.fullYear=true;var _7a1=dojo.date.stamp.fromISOString;if(typeof _7a0.min=="string"){_7a0.min=_7a1(_7a0.min);}if(typeof _7a0.max=="string"){_7a0.max=_7a1(_7a0.max);}},_onFocus:function(evt){this._open();},_setValueAttr:function(_7a3,_7a4,_7a5){this.inherited(arguments);if(this._picker){if(!_7a3){_7a3=new Date();}this._picker.attr("value",_7a3);}},_open:function(){if(this.disabled||this.readOnly||!this.popupClass){return;}var _7a6=this;if(!this._picker){var _7a7=dojo.getObject(this.popupClass,false);this._picker=new _7a7({onValueSelected:function(_7a8){if(_7a6._tabbingAway){delete _7a6._tabbingAway;}else{_7a6.focus();}setTimeout(dojo.hitch(_7a6,"_close"),1);dijit.form._DateTimeTextBox.superclass._setValueAttr.call(_7a6,_7a8,true);},lang:_7a6.lang,constraints:_7a6.constraints,isDisabledDate:function(date){var _7aa=dojo.date.compare;var _7ab=_7a6.constraints;return _7ab&&(_7ab.min&&(_7aa(_7ab.min,date,"date")>0)||(_7ab.max&&_7aa(_7ab.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(){_7a6._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(_7ac,_7ad){this._setValueAttr(this.parse(_7ac,this.constraints),_7ad,_7ac);},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"});}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(_7b1,_7b2,_7b3){if((_7b2&&_7b2.query[this.searchAttr]!=this._lastQuery)||(!_7b2&&_7b1.length&&this.store.getIdentity(_7b1[0])!=this._lastQuery)){return;}if(!_7b1.length){if(_7b3||!this._focused){this.valueNode.value="";}dijit.form.TextBox.superclass._setValueAttr.call(this,"",_7b3||!this._focused);this._isvalid=false;this.validate(this._focused);this.item=null;}else{this._setValueFromItem(_7b1[0],_7b3);}},_openResultList:function(_7b4,_7b5){if(_7b5.query[this.searchAttr]!=this._lastQuery){return;}this._isvalid=_7b4.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(_7b6,_7b7,_7b8){this.valueNode.value=_7b6;dijit.form.FilteringSelect.superclass._setValueAttr.call(this,_7b6,_7b8,_7b7);this._lastDisplayedValue=_7b7;},_setValueAttr:function(_7b9,_7ba){if(!this._onChangeActive){_7ba=null;}this._lastQuery=_7b9;if(_7b9===null){this._setDisplayedValueAttr("",_7ba);return;}var self=this;var _7bc=function(item,_7be){if(item){if(self.store.isItemLoaded(item)){self._callbackSetLabel([item],undefined,_7be);}else{self.store.loadItem({item:item,onItem:function(_7bf,_7c0){self._callbackSetLabel(_7bf,_7c0,_7be);}});}}else{self._isvalid=false;self.validate(false);}};this.store.fetchItemByIdentity({identity:_7b9,onItem:function(item){_7bc(item,_7ba);}});},_setValueFromItem:function(item,_7c3){this._isvalid=true;this.item=item;this._setValue(this.store.getIdentity(item),this.labelFunc(item,this.store),_7c3);},labelFunc:function(item,_7c5){return _7c5.getValue(item,this.searchAttr);},_doSelect:function(tgt){this._setValueFromItem(tgt.item,true);},_setDisplayedValueAttr:function(_7c7,_7c8){if(!this._created){_7c8=false;}if(this.store){var _7c9=dojo.clone(this.query);this._lastQuery=_7c9[this.searchAttr]=_7c7.replace(/([\\\*\?])/g,"\\$1");this.textbox.value=_7c7;this._lastDisplayedValue=_7c7;var _7ca=this;var _7cb={query:_7c9,queryOptions:{ignoreCase:this.ignoreCase,deep:true},onComplete:function(_7cc,_7cd){dojo.hitch(_7ca,"_callbackSetLabel")(_7cc,_7cd,_7c8);},onError:function(_7ce){console.error("dijit.form.FilteringSelect: "+_7ce);dojo.hitch(_7ca,"_setValue")("",_7c7,false);}};dojo.mixin(_7cb,this.fetchProperties);this.store.fetch(_7cb);}},postMixInProperties:function(){dijit.form.ComboBoxMixin.prototype.postMixInProperties.apply(this,arguments);dijit.form.MappedTextBox.prototype.postMixInProperties.apply(this,arguments);this._isvalid=!this.required;},postCreate:function(){dijit.form.ComboBoxMixin.prototype._postCreate.apply(this,arguments);dijit.form.MappedTextBox.prototype.postCreate.apply(this,arguments);},_setDisabledAttr:function(attr,_7d0){dijit.form.MappedTextBox.prototype._setDisabledAttr.apply(this,arguments);dijit.form.ComboBoxMixin.prototype._setDisabledAttr.apply(this,arguments);},undo:function(){this.attr("displayedValue",this._lastDisplayedValue);},_valueChanged:function(){return 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\"\n\t\t/></div\n\t></div\n></div>\n",baseClass:"dijitSpinner",adjust:function(val,_7d2){return val;},_arrowState:function(node,_7d4){this._active=_7d4;this.stateModifier=node.getAttribute("stateModifier")||"";this._setStateClass();},_arrowPressed:function(_7d5,_7d6,_7d7){if(this.disabled||this.readOnly){return;}this._arrowState(_7d5,true);this._setValueAttr(this.adjust(this.attr("value"),_7d6*_7d7),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(_7d9,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(_7d9==-1){this._arrowReleased(node);}else{this._arrowPressed(node,(node==this.upArrowNode)?1:-1,inc);}},_wheelTimer:null,_mouseWheeled:function(evt){dojo.stopEvent(evt);var _7e0=evt.detail?(evt.detail*-1):(evt.wheelDelta/120);if(_7e0!==0){var node=this[(_7e0>0?"upArrowNode":"downArrowNode")];this._arrowPressed(node,_7e0,this.smallDelta);if(!this._wheelTimer){clearTimeout(this._wheelTimer);}this._wheelTimer=setTimeout(dojo.hitch(this,"_arrowReleased",node),50);}},postCreate:function(){this.inherited("postCreate",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 _7e2=this;this.connect(this.domNode,"onresize",function(){setTimeout(dojo.hitch(_7e2,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,_7e5){var tc=this.constraints,v=isNaN(val),_7e8=!isNaN(tc.max),_7e9=!isNaN(tc.min);if(v&&_7e5!=0){val=(_7e5>0)?_7e9?tc.min:_7e8?tc.max:0:_7e8?this.constraints.max:_7e9?tc.min:0;}var _7ea=val+_7e5;if(v||isNaN(_7ea)){return val;}if(_7e8&&(_7ea>tc.max)){_7ea=tc.max;}if(_7e9&&(_7ea<tc.min)){_7ea=tc.min;}return _7ea;},_onKeyPress:function(e){if((e.charOrCode==dojo.keys.HOME||e.charOrCode==dojo.keys.END)&&!e.ctrlKey&&!e.altKey){var _7ec=this.constraints[(e.charOrCode==dojo.keys.HOME?"min":"max")];if(_7ec){this._setValueAttr(_7ec,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\"\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 _7f0=dojo.coords(this.sliderBarContainer,true);var _7f1=e[this._mousePixelCoord]-_7f0[this._startingPixelCoord];this._setPixelValue(this._isReversed()?(_7f0[this._pixelCount]-_7f1):_7f1,_7f0[this._pixelCount],true);this._movable.onMouseDown(e);},_setPixelValue:function(_7f2,_7f3,_7f4){if(this.disabled||this.readOnly){return;}_7f2=_7f2<0?0:_7f3<_7f2?_7f3:_7f2;var _7f5=this.discreteValues;if(_7f5<=1||_7f5==Infinity){_7f5=_7f3;}_7f5--;var _7f6=_7f3/_7f5;var _7f7=Math.round(_7f2/_7f6);this._setValueAttr((this.maximum-this.minimum)*_7f7/_7f5+this.minimum,_7f4);},_setValueAttr:function(_7f8,_7f9){this.valueNode.value=this.value=_7f8;dijit.setWaiState(this.focusNode,"valuenow",_7f8);this.inherited(arguments);var _7fa=(_7f8-this.minimum)/(this.maximum-this.minimum);var _7fb=(this._descending===false)?this.remainingBar:this.progressBar;var _7fc=(this._descending===false)?this.progressBar:this.remainingBar;if(this._inProgressAnim&&this._inProgressAnim.status!="stopped"){this._inProgressAnim.stop(true);}if(_7f9&&this.slideDuration>0&&_7fb.style[this._progressPixelSize]){var _7fd=this;var _7fe={};var _7ff=parseFloat(_7fb.style[this._progressPixelSize]);var _800=this.slideDuration*(_7fa-_7ff/100);if(_800==0){return;}if(_800<0){_800=0-_800;}_7fe[this._progressPixelSize]={start:_7ff,end:_7fa*100,units:"%"};this._inProgressAnim=dojo.animateProperty({node:_7fb,duration:_800,onAnimate:function(v){_7fc.style[_7fd._progressPixelSize]=(100-parseFloat(v[_7fd._progressPixelSize]))+"%";},onEnd:function(){delete _7fd._inProgressAnim;},properties:_7fe});this._inProgressAnim.play();}else{_7fb.style[this._progressPixelSize]=(_7fa*100)+"%";_7fc.style[this._progressPixelSize]=((1-_7fa)*100)+"%";}},_bumpValue:function(_802){if(this.disabled||this.readOnly){return;}var s=dojo.getComputedStyle(this.sliderBarContainer);var c=dojo._getContentBox(this.sliderBarContainer,s);var _805=this.discreteValues;if(_805<=1||_805==Infinity){_805=c[this._pixelCount];}_805--;var _806=(this.value-this.minimum)*_805/(this.maximum-this.minimum)+_802;if(_806<0){_806=0;}if(_806>_805){_806=_805;}_806=_806*(this.maximum-this.minimum)/_805+this.minimum;this._setValueAttr(_806,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 _80b=!dojo.isMozilla;var _80c=evt[(_80b?"wheelDelta":"detail")]*(_80b?1:-1);this[(_80c<0?"decrement":"increment")](evt);},startup:function(){dojo.forEach(this.getChildren(),function(_80d){if(this[_80d.container]!=this.containerNode){this[_80d.container].appendChild(_80d.domNode);}},this);},_typematicCallback:function(_80e,_80f,e){if(_80e==-1){return;}this[(_80f==(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 _811=this;var _812=function(){dijit.form._SliderMover.apply(this,arguments);this.widget=_811;};dojo.extend(_812,dijit.form._SliderMover.prototype);this._movable=new dojo.dnd.Moveable(this.sliderHandle,{mover:_812});var _813=dojo.query("label[for=\""+this.id+"\"]");if(_813.length){_813[0].id=(this.id+"_label");dijit.setWaiState(this.focusNode,"labelledby",_813[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 _815=this.widget;var _816=_815._abspos;if(!_816){_816=_815._abspos=dojo.coords(_815.sliderBarContainer,true);_815._setPixelValue_=dojo.hitch(_815,"_setPixelValue");_815._isReversed_=_815._isReversed();}var _817=e[_815._mousePixelCoord]-_816[_815._startingPixelCoord];_815._setPixelValue_(_815._isReversed_?(_816[_815._pixelCount]-_817):_817,_816[_815._pixelCount],false);},destroy:function(e){dojo.dnd.Mover.prototype.destroy.apply(this,arguments);var _819=this.widget;_819._abspos=null;_819._setValueAttr(_819.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\"\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(_81a){var _81b=[];while(_81a.firstChild){_81b.push(_81a.firstChild);_81a.removeChild(_81a.firstChild);}for(var i=_81b.length-1;i>=0;i--){if(_81b[i]){_81a.appendChild(_81b[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 _81f;if(this.count==1){_81f=this._genHTML(50,0);}else{var i;var _821=100/(this.count-1);if(!this._isHorizontal||this.isLeftToRight()){_81f=this._genHTML(0,0);for(i=1;i<this.count-1;i++){_81f+=this._genHTML(_821*i,i);}_81f+=this._genHTML(100,this.count-1);}else{_81f=this._genHTML(100,0);for(i=1;i<this.count-1;i++){_81f+=this._genHTML(100-_821*i,i);}_81f+=this._genHTML(0,this.count-1);}}this.domNode.innerHTML=_81f;}});}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 _825=this.labels;if(!_825.length){_825=dojo.query("> li",this.srcNodeRef).map(function(node){return String(node.innerHTML);});}this.srcNodeRef.innerHTML="";if(!_825.length&&this.count>1){var _827=this.minimum;var inc=(this.maximum-_827)/(this.count-1);for(var i=0;i<this.count;i++){_825.push((i<this.numericMargin||i>=(this.count-this.numericMargin))?"":dojo.number.format(_827,this.constraints));_827+=inc;}}return _825;},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 name='${name}' dojoAttachPoint='focusNode,containerNode,textbox' autocomplete='off'></textarea>",postMixInProperties:function(){if(this.srcNodeRef){this.value=this.srcNodeRef.value;}},filter:function(_82b){if(_82b){_82b=_82b.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 _82d=parseInt(this.maxLength);var _82e=this.textbox.value.replace(/\r/g,"");var _82f=_82e.length-_82d;if(_82f>0){dojo.stopEvent(e);var _830=this.textbox;if(_830.selectionStart){var pos=_830.selectionStart;var cr=0;if(dojo.isOpera){cr=(this.textbox.value.substring(0,pos).match(/\r/g)||[]).length;}this.textbox.value=_82e.substring(0,pos-_82f-cr)+_82e.substring(pos-cr);_830.setSelectionRange(pos-_82f,pos-_82f);}else{if(dojo.doc.selection){_830.focus();var _833=dojo.doc.selection.createRange();_833.moveStart("character",-_82f);_833.text="";_833.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(_834){var newH=_834.scrollHeight;if(dojo.isIE){newH+=_834.offsetHeight-_834.clientHeight-((dojo.isIE<8&&this._strictMode)?dojo._getPadBorderExtents(_834).h:0);}else{if(dojo.isMoz){newH+=_834.offsetHeight-_834.clientHeight;}else{newH+=dojo._getPadBorderExtents(_834).h;}}return newH;},_onInput:function(){this.inherited(arguments);if(this._busyResizing){return;}this._busyResizing=true;var _836=this.domNode;_836.scrollTop=0;var oldH=parseFloat(dojo.getComputedStyle(_836).height);var newH=this._getHeight(_836);if(newH>0&&_836.style.height!=newH){_836.style.maxHeight=_836.style.height=newH+"px";}this._busyResizing=false;if(dojo.isMoz||dojo.isWebKit){var _839=(_836.value.match(/\n/g)||[]).length;if(_839<this._previousNewlines){this._shrink();}this._previousNewlines=_839;}},_busyResizing:false,_shrink:function(){if((dojo.isMoz||dojo.isWebKit)&&!this._busyResizing){this._busyResizing=true;var _83a=this.domNode;var _83b=false;if(_83a.value==""){_83a.value=" ";_83b=true;}var newH=this._getHeight(_83a);if(newH>0){var _83d=_83a.scrollHeight;var _83e=-1;var _83f=dojo.getComputedStyle(_83a).paddingBottom;var _840=dojo._getPadExtents(_83a);var _841=_840.h-_840.t;_83a.style.maxHeight=newH+"px";while(_83e!=_83d){_83e=_83d;_841+=16;_83a.style.paddingBottom=_841+"px";_83a.scrollTop=0;_83d=_83a.scrollHeight;newH-=_83e-_83d;}_83a.style.paddingBottom=_83f;_83a.style.maxHeight=_83a.style.height=newH+"px";}if(_83b){_83a.value="";}this._busyResizing=false;}},resize:function(){this._onInput();this._shrink();},_setValueAttr:function(){this.inherited(arguments);this.resize();},postCreate:function(){this.inherited(arguments);dojo.style(this.domNode,{overflowY:"hidden",overflowX:"auto",boxSizing:"border-box",MsBoxSizing:"border-box",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box"});this.connect(this.domNode,"onscroll",this._onInput);this.connect(this.domNode,"onresize",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,_845){var _846=dojo.doc.createElement("span");this.domNode.appendChild(_846);var cls=dojo.getObject(this.buttonWidget);var _848=new cls({label:page.title,closeButton:page.closable},_846);this.addChild(_848,_845);this.pane2button[page]=_848;page.controlButton=_848;var _849=[];_849.push(dojo.connect(_848,"onClick",dojo.hitch(this,"onButtonClick",page)));if(page.closable){_849.push(dojo.connect(_848,"onClickCloseButton",dojo.hitch(this,"onCloseButtonClick",page)));var _84a=dojo.i18n.getLocalization("dijit","common");var _84b=new dijit.Menu({targetNodeIds:[_848.id],id:_848.id+"_Menu"});var _84c=new dijit.MenuItem({label:_84a.itemClose});_849.push(dojo.connect(_84c,"onClick",dojo.hitch(this,"onCloseButtonClick",page)));_84b.addChild(_84c);this.pane2menu[page]=_84b;}this.pane2handles[page]=_849;if(!this._currentChild){_848.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 _84f=this.pane2button[page];if(_84f){_84f.destroy();delete this.pane2button[page];}},onSelectChild:function(page){if(!page){return;}if(this._currentChild){var _851=this.pane2button[this._currentChild];_851.attr("checked",false);_851.focusNode.setAttribute("tabIndex","-1");}var _852=this.pane2button[page];_852.attr("checked",true);this._currentChild=page;_852.focusNode.setAttribute("tabIndex","0");var _853=dijit.byId(this.containerId);dijit.setWaiState(_853.containerNode,"labelledby",_852.id);},onButtonClick:function(page){var _855=dijit.byId(this.containerId);_855.selectChild(page);},onCloseButtonClick:function(page){var _857=dijit.byId(this.containerId);_857.closeChild(page);var b=this.pane2button[this._currentChild];if(b){dijit.focus(b.focusNode||b.domNode);}},adjacent:function(_859){if(!this.isLeftToRight()&&(!this.tabPosition||/top|bottom/.test(this.tabPosition))){_859=!_859;}var _85a=this.getChildren();var _85b=dojo.indexOf(_85a,this.pane2button[this._currentChild]);var _85c=_859?1:_85a.length-1;return _85a[(_85b+_85c)%_85a.length];},onkeypress:function(e){if(this.disabled||e.altKey){return;}var _85e=null;if(e.ctrlKey||!e._djpage){var k=dojo.keys;switch(e.charOrCode){case k.LEFT_ARROW:case k.UP_ARROW:if(!e._djpage){_85e=false;}break;case k.PAGE_UP:if(e.ctrlKey){_85e=false;}break;case k.RIGHT_ARROW:case k.DOWN_ARROW:if(!e._djpage){_85e=true;}break;case k.PAGE_DOWN:if(e.ctrlKey){_85e=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(_85e!==null){this.adjacent(_85e).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 _864=this.getChildren();dojo.forEach(_864,this._setupChild,this);if(this.persist){this.selectedChildWidget=dijit.byId(dojo.cookie(this.id+"_selectedChild"));}else{dojo.some(_864,function(_865){if(_865.selected){this.selectedChildWidget=_865;}return _865.selected;},this);}var _866=this.selectedChildWidget;if(!_866&&_864[0]){_866=this.selectedChildWidget=_864[0];_866.selected=true;}dojo.publish(this.id+"-startup",[{children:_864,selected:_866}]);this.inherited(arguments);if(_866){this._showChild(_866);}},_setupChild:function(_867){this.inherited(arguments);dojo.removeClass(_867.domNode,"dijitVisible");dojo.addClass(_867.domNode,"dijitHidden");_867.domNode.title="";return _867;},addChild:function(_868,_869){this.inherited(arguments);if(this._started){dojo.publish(this.id+"-addChild",[_868,_869]);this.layout();if(!this.selectedChildWidget){this.selectChild(_868);}}},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 _86b=this.getChildren();if(_86b.length){this.selectChild(_86b[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(_86d,_86e){if(_86e){this._hideChild(_86e);}this._showChild(_86d);if(this.doLayout&&_86d.resize){_86d.resize(this._containerContentBox||this._contentBox);}},_adjacent:function(_86f){var _870=this.getChildren();var _871=dojo.indexOf(_870,this.selectedChildWidget);_871+=_86f?1:_870.length-1;return _870[_871%_870.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 _874=this.getChildren();page.isFirstChild=(page==_874[0]);page.isLastChild=(page==_874[_874.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 _877=page.onClose(this,page);if(_877){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 _878=this.selectedChildWidget.containerNode.style;_878.display="";_878.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 _87b=this.selectedChildWidget;var _87c=0;dojo.forEach(this.getChildren(),function(_87d){_87c+=_87d._buttonWidget.getTitleHeight();});var _87e=this._contentBox;this._verticalSpace=_87e.h-_87c;this._containerContentBox={h:this._verticalSpace,w:_87e.w};if(_87b){_87b.resize(this._containerContentBox);}},_setupChild:function(_87f){_87f._buttonWidget=new dijit.layout._AccordionButton({contentWidget:_87f,title:_87f.title,id:_87f.id+"_button",parent:this});dojo.place(_87f._buttonWidget.domNode,_87f.domNode,"before");this.inherited(arguments);},removeChild:function(_880){_880._buttonWidget.destroy();this.inherited(arguments);},getChildren:function(){return dojo.filter(this.inherited(arguments),function(_881){return _881.declaredClass!="dijit.layout._AccordionButton";});},destroy:function(){dojo.forEach(this.getChildren(),function(_882){_882._buttonWidget.destroy();});this.inherited(arguments);},_transition:function(_883,_884){if(this._inTransition){return;}this._inTransition=true;var _885=[];var _886=this._verticalSpace;if(_883){_883._buttonWidget.setSelected(true);this._showChild(_883);if(this.doLayout&&_883.resize){_883.resize(this._containerContentBox);}var _887=_883.domNode;dojo.addClass(_887,"dijitVisible");dojo.removeClass(_887,"dijitHidden");var _888=_887.style.overflow;_887.style.overflow="hidden";_885.push(dojo.animateProperty({node:_887,duration:this.duration,properties:{height:{start:1,end:this._getTargetHeight(_887)}},onEnd:function(){_887.style.overflow=_888;}}));}if(_884){_884._buttonWidget.setSelected(false);var _889=_884.domNode;var _88a=_889.style.overflow;_889.style.overflow="hidden";_885.push(dojo.animateProperty({node:_889,duration:this.duration,properties:{height:{start:this._getTargetHeight(_889),end:1}},onEnd:function(){dojo.addClass(_889,"dijitHidden");dojo.removeClass(_889,"dijitVisible");_889.style.overflow=_88a;}}));}this._inTransition=false;dojo.fx.combine(_885).play();},_onKeyPress:function(e,_88c){if(this.disabled||e.altKey||!(_88c||e.ctrlKey)){return;}var k=dojo.keys,c=e.charOrCode;if((_88c&&(c==k.LEFT_ARROW||c==k.UP_ARROW))||(e.ctrlKey&&c==k.PAGE_UP)){this._adjacent(false)._buttonWidget._onTitleClick();dojo.stopEvent(e);}else{if((_88c&&(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 _88f=dojo.attr(this.domNode,"id").replace(" ","_");dojo.attr(this.titleTextNode,"id",_88f+"_title");dijit.setWaiState(this.focusNode,"labelledby",dojo.attr(this.titleTextNode,"id"));},getTitleHeight:function(){return dojo.marginBox(this.titleNode).h;},_onTitleClick:function(){var _890=this.getParent();if(!_890._inTransition){_890.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(_892){this.selected=_892;dojo[(_892?"addClass":"removeClass")](this.titleNode,"dijitAccordionTitle-selected");dijit.setWaiState(this.focusNode,"expanded",_892);dijit.setWaiState(this.focusNode,"selected",_892);this.focusNode.setAttribute("tabIndex",_892?"0":"-1");},_handleFocus:function(e){dojo[(e.type=="focus"?"addClass":"removeClass")](this.focusNode,"dijitAccordionFocused");},setSelected:function(_894){this._setSelectedState(_894);if(_894){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(_896){var _897=_896.region;if(_897){this.inherited(arguments);dojo.addClass(_896.domNode,this.baseClass+"Pane");var ltr=this.isLeftToRight();if(_897=="leading"){_897=ltr?"left":"right";}if(_897=="trailing"){_897=ltr?"right":"left";}this["_"+_897]=_896.domNode;this["_"+_897+"Widget"]=_896;if((_896.splitter||this.gutters)&&!this._splitters[_897]){var _899=dojo.getObject(_896.splitter?this._splitterClass:"dijit.layout._Gutter");var flip={left:"right",right:"left",top:"bottom",bottom:"top",leading:"trailing",trailing:"leading"};var _89b=new _899({container:this,child:_896,region:_897,oppNode:this["_"+flip[_896.region]],live:this.liveSplitters});_89b.isSplitter=true;this._splitters[_897]=_89b.domNode;dojo.place(this._splitters[_897],_896.domNode,"after");_89b.startup();}_896.region=_897;}},_computeSplitterThickness:function(_89c){this._splitterThickness[_89c]=this._splitterThickness[_89c]||dojo.marginBox(this._splitters[_89c])[(/top|bottom/.test(_89c)?"h":"w")];},layout:function(){for(var _89d in this._splitters){this._computeSplitterThickness(_89d);}this._layoutChildren();},addChild:function(_89e,_89f){this.inherited(arguments);if(this._started){this._layoutChildren();}},removeChild:function(_8a0){var _8a1=_8a0.region;var _8a2=this._splitters[_8a1];if(_8a2){dijit.byNode(_8a2).destroy();delete this._splitters[_8a1];delete this._splitterThickness[_8a1];}this.inherited(arguments);delete this["_"+_8a1];delete this["_"+_8a1+"Widget"];if(this._started){this._layoutChildren(_8a0.region);}dojo.removeClass(_8a0.domNode,this.baseClass+"Pane");},getChildren:function(){return dojo.filter(this.inherited(arguments),function(_8a3){return !_8a3.isSplitter;});},getSplitter:function(_8a4){var _8a5=this._splitters[_8a4];return _8a5?dijit.byNode(_8a5):null;},resize:function(_8a6,_8a7){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(_8a9){if(!this._borderBox||!this._borderBox.h){return;}var _8aa=(this.design=="sidebar");var _8ab=0,_8ac=0,_8ad=0,_8ae=0;var _8af={},_8b0={},_8b1={},_8b2={},_8b3=(this._center&&this._center.style)||{};var _8b4=/left|right/.test(_8a9);var _8b5=!_8a9||(!_8b4&&!_8aa);var _8b6=!_8a9||(_8b4&&_8aa);if(this._top){_8af=_8b6&&this._top.style;_8ab=dojo.marginBox(this._top).h;}if(this._left){_8b0=_8b5&&this._left.style;_8ad=dojo.marginBox(this._left).w;}if(this._right){_8b1=_8b5&&this._right.style;_8ae=dojo.marginBox(this._right).w;}if(this._bottom){_8b2=_8b6&&this._bottom.style;_8ac=dojo.marginBox(this._bottom).h;}var _8b7=this._splitters;var _8b8=_8b7.top,_8b9=_8b7.bottom,_8ba=_8b7.left,_8bb=_8b7.right;var _8bc=this._splitterThickness;var _8bd=_8bc.top||0,_8be=_8bc.left||0,_8bf=_8bc.right||0,_8c0=_8bc.bottom||0;if(_8be>50||_8bf>50){setTimeout(dojo.hitch(this,function(){this._splitterThickness={};for(var _8c1 in this._splitters){this._computeSplitterThickness(_8c1);}this._layoutChildren();}),50);return false;}var pe=this.pe;var _8c3={left:(_8aa?_8ad+_8be:0)+pe.l+"px",right:(_8aa?_8ae+_8bf:0)+pe.r+"px"};if(_8b8){dojo.mixin(_8b8.style,_8c3);_8b8.style.top=_8ab+pe.t+"px";}if(_8b9){dojo.mixin(_8b9.style,_8c3);_8b9.style.bottom=_8ac+pe.b+"px";}_8c3={top:(_8aa?0:_8ab+_8bd)+pe.t+"px",bottom:(_8aa?0:_8ac+_8c0)+pe.b+"px"};if(_8ba){dojo.mixin(_8ba.style,_8c3);_8ba.style.left=_8ad+pe.l+"px";}if(_8bb){dojo.mixin(_8bb.style,_8c3);_8bb.style.right=_8ae+pe.r+"px";}dojo.mixin(_8b3,{top:pe.t+_8ab+_8bd+"px",left:pe.l+_8ad+_8be+"px",right:pe.r+_8ae+_8bf+"px",bottom:pe.b+_8ac+_8c0+"px"});var _8c4={top:_8aa?pe.t+"px":_8b3.top,bottom:_8aa?pe.b+"px":_8b3.bottom};dojo.mixin(_8b0,_8c4);dojo.mixin(_8b1,_8c4);_8b0.left=pe.l+"px";_8b1.right=pe.r+"px";_8af.top=pe.t+"px";_8b2.bottom=pe.b+"px";if(_8aa){_8af.left=_8b2.left=_8ad+_8be+pe.l+"px";_8af.right=_8b2.right=_8ae+_8bf+pe.r+"px";}else{_8af.left=_8b2.left=pe.l+"px";_8af.right=_8b2.right=pe.r+"px";}var _8c5=this._borderBox.h-pe.t-pe.b,_8c6=_8c5-(_8ab+_8bd+_8ac+_8c0),_8c7=_8aa?_8c5:_8c6;var _8c8=this._borderBox.w-pe.l-pe.r,_8c9=_8c8-(_8ad+_8be+_8ae+_8bf),_8ca=_8aa?_8c9:_8c8;var dim={top:{w:_8ca,h:_8ab},bottom:{w:_8ca,h:_8ac},left:{w:_8ad,h:_8c7},right:{w:_8ae,h:_8c7},center:{h:_8c6,w:_8c9}};var _8cc=dojo.isIE<8||(dojo.isIE&&dojo.isQuirks)||dojo.some(this.getChildren(),function(_8cd){return _8cd.domNode.tagName=="TEXTAREA"||_8cd.domNode.tagName=="INPUT";});if(_8cc){var _8ce=function(_8cf,_8d0,_8d1){if(_8cf){(_8cf.resize?_8cf.resize(_8d0,_8d1):dojo.marginBox(_8cf.domNode,_8d0));}};if(_8ba){_8ba.style.height=_8c7;}if(_8bb){_8bb.style.height=_8c7;}_8ce(this._leftWidget,{h:_8c7},dim.left);_8ce(this._rightWidget,{h:_8c7},dim.right);if(_8b8){_8b8.style.width=_8ca;}if(_8b9){_8b9.style.width=_8ca;}_8ce(this._topWidget,{w:_8ca},dim.top);_8ce(this._bottomWidget,{w:_8ca},dim.bottom);_8ce(this._centerWidget,dim.center);}else{var _8d2={};if(_8a9){_8d2[_8a9]=_8d2.center=true;if(/top|bottom/.test(_8a9)&&this.design!="sidebar"){_8d2.left=_8d2.right=true;}else{if(/left|right/.test(_8a9)&&this.design=="sidebar"){_8d2.top=_8d2.bottom=true;}}}dojo.forEach(this.getChildren(),function(_8d3){if(_8d3.resize&&(!_8a9||_8d3.region in _8d2)){_8d3.resize(null,dim[_8d3.region]);}},this);}},destroy:function(){for(var _8d4 in this._splitters){var _8d5=this._splitters[_8d4];dijit.byNode(_8d5).destroy();dojo.destroy(_8d5);}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 _8d6=dojo.cookie(this._cookieName);if(_8d6){this.child.domNode.style[this.horizontal?"height":"width"]=_8d6;}}},_computeMaxSize:function(){var dim=this.horizontal?"h":"w",_8d8=this.container._splitterThickness[this.region];var _8d9=dojo.contentBox(this.container.domNode)[dim]-(this.oppNode?dojo.marginBox(this.oppNode)[dim]:0)-20-_8d8*2;this._maxSize=Math.min(this.child.maxSize,_8d9);},_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 _8db=this._factor,max=this._maxSize,min=this._minSize||20,_8de=this.horizontal,axis=_8de?"pageY":"pageX",_8e0=e[axis],_8e1=this.domNode.style,dim=_8de?"h":"w",_8e3=dojo.marginBox(this.child.domNode)[dim],_8e4=this.region,_8e5=parseInt(this.domNode.style[_8e4],10),_8e6=this._resize,mb={},_8e8=this.child.domNode,_8e9=dojo.hitch(this.container,this.container._layoutChildren),de=dojo.doc.body;this._handlers=(this._handlers||[]).concat([dojo.connect(de,"onmousemove",this._drag=function(e,_8ec){var _8ed=e[axis]-_8e0,_8ee=_8db*_8ed+_8e3,_8ef=Math.max(Math.min(_8ee,max),min);if(_8e6||_8ec){mb[dim]=_8ef;dojo.marginBox(_8e8,mb);_8e9(_8e4);}_8e1[_8e4]=_8db*_8ed+_8e5+(_8ef-_8ee)+"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 _8f2=this.horizontal;var tick=1;var dk=dojo.keys;switch(e.charOrCode){case _8f2?dk.UP_ARROW:dk.LEFT_ARROW:tick*=-1;case _8f2?dk.DOWN_ARROW:dk.RIGHT_ARROW:break;default:return;}var _8f5=dojo.marginBox(this.child.domNode)[_8f2?"h":"w"]+this._factor*tick;var mb={};mb[this.horizontal?"h":"w"]=Math.max(Math.min(_8f5,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(_8f7,_8f8){this.inherited(arguments);if(this._started){dijit.layout.layoutChildren(this.domNode,this._contentBox,this.getChildren());}},removeChild:function(_8f9){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\"></div>",postCreate:function(){if(this.srcNodeRef){this.title+=this.srcNodeRef.innerHTML;}this.inherited("postCreate",arguments);}});}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 _8fa=dojo.doc.createElement("div");this.virtualSizer=_8fa;_8fa.style.position="relative";_8fa.style.zIndex=10;_8fa.className=this.isHorizontal?"dijitSplitContainerVirtualSizerH":"dijitSplitContainerVirtualSizerV";this.domNode.appendChild(_8fa);dojo.setSelectable(_8fa,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(_8fb,i,_8fd){this._setupChild(_8fb);if(i<_8fd.length-1){this._addSizer();}},this);if(this.persist){this._restoreState();}this.inherited(arguments);},_setupChild:function(_8fe){this.inherited(arguments);_8fe.domNode.style.position="absolute";dojo.addClass(_8fe.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(_901){_901=_901===undefined?this.sizers.length:_901;var _902=dojo.doc.createElement("div");_902.id=dijit.getUniqueId("dijit_layout_SplitterContainer_Splitter");this.sizers.splice(_901,0,_902);this.domNode.appendChild(_902);_902.className=this.isHorizontal?"dijitSplitContainerSizerH":"dijitSplitContainerSizerV";var _903=dojo.doc.createElement("div");_903.className="thumb";_903.id=_902.id;_902.appendChild(_903);this.connect(_902,"onmousedown","_onSizerMouseDown");dojo.setSelectable(_902,false);},removeChild:function(_904){if(this.sizers.length){var i=dojo.indexOf(this.getChildren(),_904);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(_906,_907){this.inherited(arguments);if(this._started){var _908=this.getChildren();if(_908.length>1){this._addSizer(_907);}this.layout();}},layout:function(){this.paneWidth=this._contentBox.w;this.paneHeight=this._contentBox.h;var _909=this.getChildren();if(!_909.length){return;}var _90a=this.isHorizontal?this.paneWidth:this.paneHeight;if(_909.length>1){_90a-=this.sizerWidth*(_909.length-1);}var _90b=0;dojo.forEach(_909,function(_90c){_90b+=_90c.sizeShare;});var _90d=_90a/_90b;var _90e=0;dojo.forEach(_909.slice(0,_909.length-1),function(_90f){var size=Math.round(_90d*_90f.sizeShare);_90f.sizeActual=size;_90e+=size;});_909[_909.length-1].sizeActual=_90a-_90e;this._checkSizes();var pos=0;var size=_909[0].sizeActual;this._movePanel(_909[0],pos,size);_909[0].position=pos;pos+=size;if(!this.sizers){return;}dojo.some(_909.slice(1),function(_913,i){if(!this.sizers[i]){return true;}this._moveSlider(this.sizers[i],pos,this.sizerWidth);this.sizers[i].position=pos;pos+=this.sizerWidth;size=_913.sizeActual;this._movePanel(_913,pos,size);_913.position=pos;pos+=size;},this);},_movePanel:function(_915,pos,size){if(this.isHorizontal){_915.domNode.style.left=pos+"px";_915.domNode.style.top=0;var box={w:size,h:this.paneHeight};if(_915.resize){_915.resize(box);}else{dojo.marginBox(_915.domNode,box);}}else{_915.domNode.style.left=0;_915.domNode.style.top=pos+"px";var box={w:this.paneWidth,h:size};if(_915.resize){_915.resize(box);}else{dojo.marginBox(_915.domNode,box);}}},_moveSlider:function(_919,pos,size){if(this.isHorizontal){_919.style.left=pos+"px";_919.style.top=0;dojo.marginBox(_919,{w:size,h:this.paneHeight});}else{_919.style.left=0;_919.style.top=pos+"px";dojo.marginBox(_919,{w:this.paneWidth,h:size});}},_growPane:function(_91c,pane){if(_91c>0){if(pane.sizeActual>pane.sizeMin){if((pane.sizeActual-pane.sizeMin)>_91c){pane.sizeActual=pane.sizeActual-_91c;_91c=0;}else{_91c-=pane.sizeActual-pane.sizeMin;pane.sizeActual=pane.sizeMin;}}}return _91c;},_checkSizes:function(){var _91e=0;var _91f=0;var _920=this.getChildren();dojo.forEach(_920,function(_921){_91f+=_921.sizeActual;_91e+=_921.sizeMin;});if(_91e<=_91f){var _922=0;dojo.forEach(_920,function(_923){if(_923.sizeActual<_923.sizeMin){_922+=_923.sizeMin-_923.sizeActual;_923.sizeActual=_923.sizeMin;}});if(_922>0){var list=this.isDraggingLeft?_920.reverse():_920;dojo.forEach(list,function(_925){_922=this._growPane(_922,_925);},this);}}else{dojo.forEach(_920,function(_926){_926.sizeActual=Math.round(_91f*(_926.sizeMin/_91e));});}},beginSizing:function(e,i){var _929=this.getChildren();this.paneBefore=_929[i];this.paneAfter=_929[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(_929[0].domNode,true);if(this.isHorizontal){var _92a=e.layerX||e.offsetX||0;var _92b=e.pageX;this.originPos=this.originPos.x;}else{var _92a=e.layerY||e.offsetY||0;var _92b=e.pageY;this.originPos=this.originPos.y;}this.startPoint=this.lastPoint=_92b;this.screenToClientOffset=_92b-_92a;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 _934=this.paneBefore.position;var _935=this.paneAfter.position+this.paneAfter.sizeActual;this.paneBefore.sizeActual=pos-_934;this.paneAfter.position=pos+this.sizerWidth;this.paneAfter.sizeActual=_935-this.paneAfter.position;dojo.forEach(this.getChildren(),function(_936){_936.sizeShare=_936.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(_939,i){var _93b=this._getCookieName(i);var _93c=dojo.cookie(_93b);if(_93c){var pos=parseInt(_93c);if(typeof pos=="number"){_939.sizeShare=pos;}}},this);},_saveState:function(){if(!this.persist){return;}dojo.forEach(this.getChildren(),function(_93e,i){dojo.cookie(this._getCookieName(i),_93e.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 _940=0;for(var pane in this.pane2button){var ow=this.pane2button[pane].innerDiv.scrollWidth;_940=Math.max(_940,ow);}for(pane in this.pane2button){this.pane2button[pane].innerDiv.style.width=_940+"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 _943=dojo.i18n.getLocalization("dijit","common");if(this.closeNode){dojo.attr(this.closeNode,"title",_943.itemClose);dojo.attr(this.closeIcon,"title",_943.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 _944=dojo.getObject(this._controllerWidget);this.tablist=new _944({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 _946=this.tabPosition.replace(/-h/,"");var _947=[{domNode:this.tablist.domNode,layoutAlign:_946},{domNode:this.tablistSpacer,layoutAlign:_946},{domNode:this.containerNode,layoutAlign:"client"}];dijit.layout.layoutChildren(this.domNode,this._contentBox,_947);this._containerContentBox=dijit.layout.marginBox2contentBox(this.containerNode,_947[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"]);
