/*
	Copyright (c) 2004-2008, 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];if((t=="rgb"&&l==3)||(t=="rgba"&&l==4)){var r=c[0];if(r.charAt(r.length-1)=="%"){var 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.Color.named=dojo.mixin({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]},dojo.Color.named);}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 preload(_53){_53=dojo.i18n.normalizeLocale(_53);dojo.i18n._searchLocalePath(_53,true,function(loc){for(var i=0;i<_52.length;i++){if(_52[i]==loc){dojo["require"](_51+"_"+loc);return true;}}return false;});};preload();var _56=dojo.config.extraLocale||[];for(var i=0;i<_56.length;i++){preload(_56[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 _58=this._palettes[this.palette];this.domNode.style.position="relative";this._cellNodes=[];this.colorNames=dojo.i18n.getLocalization("dojo","colors",this.lang);var url=this._blankGif,_5a=new dojo.Color(),_5b=this._paletteCoords;for(var row=0;row<_58.length;row++){for(var col=0;col<_58[row].length;col++){var _5e=dojo.doc.createElement("img");_5e.src=url;dojo.addClass(_5e,"dijitPaletteImg");var _5f=_58[row][col],_60=_5a.setColor(dojo.Color.named[_5f]);_5e.alt=this.colorNames[_5f];_5e.color=_60.toHex();var _61=_5e.style;_61.color=_61.backgroundColor=_5e.color;var _62=dojo.doc.createElement("span");_62.appendChild(_5e);dojo.forEach(["Dijitclick","MouseEnter","Focus","Blur"],function(_63){this.connect(_62,"on"+_63.toLowerCase(),"_onCell"+_63);},this);this.divNode.appendChild(_62);var _64=_62.style;_64.top=_5b.topOffset+(row*_5b.cHeight)+"px";_64.left=_5b.leftOffset+(col*_5b.cWidth)+"px";dojo.attr(_62,"tabindex","-1");_62.title=this.colorNames[_5f];dojo.addClass(_62,"dijitPaletteCell");dijit.setWaiRole(_62,"gridcell");_62.index=this._cellNodes.length;this._cellNodes.push(_62);}}this._xDim=_58[0].length;this._yDim=_58.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='preamble']",src).orphan(),_7c=dojo.query("> script[type^='dojo/method'][event]",src).orphan(),_7d=dojo.query("> script[type^='dojo/method']",src).orphan(),_7e=dojo.query("> script[type^='dojo/connect']",src).orphan(),_7f=src.nodeName;var _80=this.defaults||{};dojo.forEach(_7c,function(s){var evt=s.getAttribute("event"),_83=dojo.parser._functionFromScript(s);_80[evt]=_83;});this.mixins=this.mixins.length?dojo.map(this.mixins,function(_84){return dojo.getObject(_84);}):[dijit._Widget,dijit._Templated];_80.widgetsInTemplate=true;_80._skipNodeCache=true;_80.templateString="<"+_7f+" class='"+src.className+"' dojoAttachPoint='"+(src.getAttribute("dojoAttachPoint")||"")+"' dojoAttachEvent='"+(src.getAttribute("dojoAttachEvent")||"")+"' >"+src.innerHTML.replace(/\%7B/g,"{").replace(/\%7D/g,"}")+"</"+_7f+">";dojo.query("[dojoType]",src).forEach(function(_85){_85.removeAttribute("dojoType");});var wc=dojo.declare(this.widgetClass,this.mixins,_80);var _87=_7e.concat(_7d);dojo.forEach(_87,function(s){var evt=s.getAttribute("event")||"postscript",_8a=dojo.parser._functionFromScript(s);dojo.connect(wc.prototype,evt,_8a);});}});}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.isSafari||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 _a2=n.scrollLeft,_a3=n.scrollTop;n.scrollLeft=n.scrollLeft+dx;n.scrollTop=n.scrollTop+dy;if(_a2!=n.scrollLeft||_a3!=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(_a4,e,_a6){this.node=dojo.byId(_a4);this.marginBox={l:e.pageX,t:e.pageY};this.mouseButton=e.button;var h=this.host=_a6,d=_a4.ownerDocument,_a9=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),_a9];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.isSafari&&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(_b7,_b8){this.node=dojo.byId(_b7);if(!_b8){_b8={};}this.handle=_b8.handle?dojo.byId(_b8.handle):null;if(!this.handle){this.handle=this.node;}this.delay=_b8.delay>0?_b8.delay:0;this.skip=_b8.skip;this.mover=_b8.mover?_b8.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(_b9,_ba){return new dojo.dnd.Moveable(_ba,_b9);},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(_c1){dojo.publish("/dnd/move/start",[_c1]);dojo.addClass(dojo.body(),"dojoMove");dojo.addClass(this.node,"dojoMoveItem");},onMoveStop:function(_c2){dojo.publish("/dnd/move/stop",[_c2]);dojo.removeClass(dojo.body(),"dojoMove");dojo.removeClass(this.node,"dojoMoveItem");},onFirstMove:function(_c3){},onMove:function(_c4,_c5){this.onMoving(_c4,_c5);var s=_c4.node.style;s.left=_c5.l+"px";s.top=_c5.t+"px";this.onMoved(_c4,_c5);},onMoving:function(_c7,_c8){},onMoved:function(_c9,_ca){}});}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(_cb,_cc){return new dojo.dnd.move.constrainedMoveable(_cc,_cb);},constructor:function(_cd,_ce){if(!_ce){_ce={};}this.constraints=_ce.constraints;this.within=_ce.within;},onFirstMove:function(_cf){var c=this.constraintBox=this.constraints.call(this,_cf);c.r=c.l+c.w;c.b=c.t+c.h;if(this.within){var mb=dojo.marginBox(_cf.node);c.r-=mb.w;c.b-=mb.h;}},onMove:function(_d2,_d3){var c=this.constraintBox,s=_d2.node.style;s.left=(_d3.l<c.l?c.l:c.r<_d3.l?c.r:_d3.l)+"px";s.top=(_d3.t<c.t?c.t:c.b<_d3.t?c.b:_d3.t)+"px";}});dojo.declare("dojo.dnd.move.boxConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{box:{},markupFactory:function(_d6,_d7){return new dojo.dnd.move.boxConstrainedMoveable(_d7,_d6);},constructor:function(_d8,_d9){var box=_d9&&_d9.box;this.constraints=function(){return box;};}});dojo.declare("dojo.dnd.move.parentConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(_db,_dc){return new dojo.dnd.move.parentConstrainedMoveable(_dc,_db);},constructor:function(_dd,_de){var _df=_de&&_de.area;this.constraints=function(){var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);if(_df=="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(_df=="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(_df=="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,_e5){dojo.deprecated("dojo.dnd.move.constrainedMover, use dojo.dnd.move.constrainedMoveable instead");var _e6=function(_e7,e,_e9){dojo.dnd.Mover.call(this,_e7,e,_e9);};dojo.extend(_e6,dojo.dnd.Mover.prototype);dojo.extend(_e6,{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(_e5){var mb=dojo.marginBox(this.node);c.r-=mb.w;c.b-=mb.h;}}});return _e6;};dojo.dnd.move.boxConstrainedMover=function(box,_f2){dojo.deprecated("dojo.dnd.move.boxConstrainedMover, use dojo.dnd.move.boxConstrainedMoveable instead");return dojo.dnd.move.constrainedMover(function(){return box;},_f2);};dojo.dnd.move.parentConstrainedMover=function(_f3,_f4){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(_f3=="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(_f3=="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(_f3=="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,_f4);};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 _fa=dojo.dnd.Moveable.prototype.onMove;dojo.declare("dojo.dnd.TimedMoveable",dojo.dnd.Moveable,{timeout:40,constructor:function(_fb,_fc){if(!_fc){_fc={};}if(_fc.timeout&&typeof _fc.timeout=="number"&&_fc.timeout>=0){this.timeout=_fc.timeout;}},markupFactory:function(_fd,_fe){return new dojo.dnd.TimedMoveable(_fe,_fd);},onMoveStop:function(_ff){if(_ff._timer){clearTimeout(_ff._timer);_fa.call(this,_ff,_ff._leftTop);}dojo.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);},onMove:function(_100,_101){_100._leftTop=_101;if(!_100._timer){var _t=this;_100._timer=setTimeout(function(){_100._timer=null;_fa.call(_t,_100,_100._leftTop);},this.timeout);}}});})();}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");dojo.provide("dojo.fx.Toggler");(function(){var _103={_fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[]);}return this;}};var _106=function(_107){this._index=-1;this._animations=_107||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;dojo.forEach(this._animations,function(a){this.duration+=a.duration;if(a.delay){this.duration+=a.delay;}},this);};dojo.extend(_106,{_onAnimate:function(){this._fire("onAnimate",arguments);},_onEnd:function(){dojo.disconnect(this._onAnimateCtx);dojo.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=dojo.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx=dojo.connect(this._current,"onEnd",this,"_onEnd");this._current.play(0,true);}},play:function(_109,_10a){if(!this._current){this._current=this._animations[this._index=0];}if(!_10a&&this._current.status()=="playing"){return this;}var _10b=dojo.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_10c=dojo.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_10e=dojo.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);dojo.disconnect(_10b);dojo.disconnect(_10c);dojo.disconnect(_10e);});if(this._onAnimateCtx){dojo.disconnect(this._onAnimateCtx);}this._onAnimateCtx=dojo.connect(this._current,"onAnimate",this,"_onAnimate");if(this._onEndCtx){dojo.disconnect(this._onEndCtx);}this._onEndCtx=dojo.connect(this._current,"onEnd",this,"_onEnd");this._current.play.apply(this._current,arguments);return this;},pause:function(){if(this._current){var e=dojo.connect(this._current,"onPause",this,function(arg){this._fire("onPause",arguments);dojo.disconnect(e);});this._current.pause();}return this;},gotoPercent:function(_112,_113){this.pause();var _114=this.duration*_112;this._current=null;dojo.some(this._animations,function(a){if(a.duration<=_114){this._current=a;return true;}_114-=a.duration;return false;});if(this._current){this._current.gotoPercent(_114/this._current.duration,_113);}return this;},stop:function(_116){if(this._current){if(_116){for(;this._index+1<this._animations.length;++this._index){this._animations[this._index].stop(true);}this._current=this._animations[this._index];}var e=dojo.connect(this._current,"onStop",this,function(arg){this._fire("onStop",arguments);dojo.disconnect(e);});this._current.stop();}return this;},status:function(){return this._current?this._current.status():"stopped";},destroy:function(){if(this._onAnimateCtx){dojo.disconnect(this._onAnimateCtx);}if(this._onEndCtx){dojo.disconnect(this._onEndCtx);}}});dojo.extend(_106,_103);dojo.fx.chain=function(_119){return new _106(_119);};var _11a=function(_11b){this._animations=_11b||[];this._connects=[];this._finished=0;this.duration=0;dojo.forEach(_11b,function(a){var _11d=a.duration;if(a.delay){_11d+=a.delay;}if(this.duration<_11d){this.duration=_11d;}this._connects.push(dojo.connect(a,"onEnd",this,"_onEnd"));},this);this._pseudoAnimation=new dojo._Animation({curve:[0,1],duration:this.duration});dojo.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop"],function(evt){this._connects.push(dojo.connect(this._pseudoAnimation,evt,dojo.hitch(this,"_fire",evt)));},this);};dojo.extend(_11a,{_doAction:function(_11f,args){dojo.forEach(this._animations,function(a){a[_11f].apply(a,args);});return this;},_onEnd:function(){if(++this._finished==this._animations.length){this._fire("onEnd");}},_call:function(_122,args){var t=this._pseudoAnimation;t[_122].apply(t,args);},play:function(_125,_126){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(_127,_128){var ms=this.duration*_127;dojo.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_128);});this._call("gotoPercent",arguments);return this;},stop:function(_12b){this._doAction("stop",arguments);this._call("stop",arguments);return this;},status:function(){return this._pseudoAnimation.status();},destroy:function(){dojo.forEach(this._connects,dojo.disconnect);}});dojo.extend(_11a,_103);dojo.fx.combine=function(_12c){return new _11a(_12c);};})();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(_12f){return this.showAnim.play(_12f||0);},hide:function(_130){return this.hideAnim.play(_130||0);}});dojo.fx.wipeIn=function(args){args.node=dojo.byId(args.node);var node=args.node,s=node.style,o;var anim=dojo.animateProperty(dojo.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 _136=dojo.style(node,"height");return Math.max(_136,1);}},end:function(){return node.scrollHeight;}}}},args));dojo.connect(anim,"onEnd",function(){s.height="auto";s.overflow=o;});return anim;};dojo.fx.wipeOut=function(args){var node=args.node=dojo.byId(args.node);var s=node.style;var o;var anim=dojo.animateProperty(dojo.mixin({properties:{height:{end:1}}},args));dojo.connect(anim,"beforeBegin",function(){o=s.overflow;s.overflow="hidden";s.display="";});dojo.connect(anim,"onEnd",function(){s.overflow=o;s.height="auto";s.display="none";});return anim;};dojo.fx.slideTo=function(args){var node=(args.node=dojo.byId(args.node));var top=null;var left=null;var init=(function(n){return function(){var cs=dojo.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=dojo.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=dojo.animateProperty(dojo.mixin({properties:{top:{end:args.top||0},left:{end:args.left||0}}},args));dojo.connect(anim,"beforeBegin",anim,init);return anim;};}if(!dojo._hasResource["dojo.html"]){dojo._hasResource["dojo.html"]=true;dojo.provide("dojo.html");(function(){var _146=0;dojo.html._secureForInnerHtml=function(cont){return cont.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"");};dojo.html._emptyNode=function(node){while(node.firstChild){dojo._destroyElement(node.firstChild);}};dojo.html._setNodeContent=function(node,cont,_14b){if(_14b){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(_153,node){dojo.mixin(this,_153||{});node=this.node=dojo.byId(this.node||node);if(!this.id){this.id=["Setter",(node)?node.id||node.tagName:"",_146++].join("_");}if(!(this.node||node)){new Error(this.declaredClass+": no node provided to "+this.id);}},set:function(cont,_156){if(undefined!==cont){this.content=cont;}if(_156){this._mixin(_156);}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 _158=this.onContentError(e);try{node.innerHTML=_158;}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 _15b=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_15b){cont=_15b[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(_15d){var _15e={},key;for(key in _15d){if(key in _15e){continue;}this[key]=_15d[key];}},_parse:function(){var _160=this.node;try{this.parseResults=dojo.parser.parse(_160,true);}catch(e){this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);}},_onError:function(type,err,_163){var _164=this["on"+type+"Error"].call(this,err);if(_163){console.error(_163,err);}else{if(_164){dojo.html._setNodeContent(this.node,_164,true);}}}});dojo.html.set=function(node,cont,_167){if(undefined==cont){console.warn("dojo.html.set: no cont argument provided, using empty string");cont="";}if(!_167){return dojo.html._setNodeContent(node,cont,true);}else{var op=new dojo.html._ContentSetter(dojo.mixin(_167,{content:cont,node:node}));return op.set();}};})();}if(!dojo._hasResource["dijit.layout.ContentPane"]){dojo._hasResource["dijit.layout.ContentPane"]=true;dojo.provide("dijit.layout.ContentPane");dojo.declare("dijit.layout.ContentPane",dijit._Widget,{href:"",extractContent:false,parseOnLoad:true,preventCache:false,preload:false,refreshOnShow:false,loadingMessage:"<span class='dijitContentPaneLoading'>${loadingState}</span>",errorMessage:"<span class='dijitContentPaneError'>${errorState}</span>",isLoaded:false,baseClass:"dijitContentPane",doLayout:true,_isRealContent:true,postMixInProperties:function(){this.inherited(arguments);var _169=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_169);this.errorMessage=dojo.string.substitute(this.errorMessage,_169);},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.doLayout!="false"&&this.doLayout!==false){this._checkIfSingleChild();if(this._singleChild){this._singleChild.startup();}}this._loadCheck();this.inherited(arguments);},_checkIfSingleChild:function(){var _16a=dojo.query(">",this.containerNode),_16b=_16a.filter(function(node){return dojo.hasAttr(node,"dojoType")||dojo.hasAttr(node,"widgetId");}),_16d=dojo.filter(_16b.map(dijit.byNode),function(_16e){return _16e&&_16e.domNode&&_16e.resize;});if(_16a.length==_16b.length&&_16d.length==1){this.isContainer=true;this._singleChild=_16d[0];}else{delete this.isContainer;delete this._singleChild;}},refresh:function(){return this._prepareLoad(true);},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.href=href;if(this._created){return this._prepareLoad();}},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;if(this.doLayout!="false"&&this.doLayout!==false){this._checkIfSingleChild();if(this._singleChild&&this._singleChild.resize){this._singleChild.startup();var cb=this._contentBox||dojo.contentBox(this.containerNode);this._singleChild.resize({w:cb.w,h:cb.h});}}},_getContentAttr:function(){return this.containerNode.innerHTML;},cancel:function(){if(this._xhrDfd&&(this._xhrDfd.fired==-1)){this._xhrDfd.cancel();}delete this._xhrDfd;},destroyRecursive:function(_174){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});}},_prepareLoad:function(_179){this.cancel();this.isLoaded=false;this._loadCheck(_179);},_isShown:function(){if("open" in this){return this.open;}else{var node=this.domNode;return (node.style.display!="none")&&(node.style.visibility!="hidden");}},_loadCheck:function(_17b){var _17c=this._isShown();if(this.href&&(_17b||(this.preload&&!this.isLoaded&&!this._xhrDfd)||(this.refreshOnShow&&_17c&&!this._xhrDfd)||(!this.isLoaded&&_17c&&!this._xhrDfd))){this._downloadExternalContent();}},_downloadExternalContent:function(){this._setContent(this.onDownloadStart(),true);var self=this;var _17e={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};if(dojo.isObject(this.ioArgs)){dojo.mixin(_17e,this.ioArgs);}var hand=this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_17e);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.cancelled){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");}},_onUnloadHandler:function(){this.isLoaded=false;try{this.onUnload();}catch(e){console.error("Error "+this.widgetId+" running custom onUnload code");}},destroyDescendants:function(){if(this._isRealContent){this._onUnloadHandler();}var _183=this._contentSetter;if(_183){_183.empty();}else{this.inherited(arguments);dojo.html._emptyNode(this.containerNode);}},_setContent:function(cont,_185){this.destroyDescendants();this._isRealContent=!_185;var _186=this._contentSetter;if(!(_186&&_186 instanceof dojo.html._ContentSetter)){_186=this._contentSetter=new dojo.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){var _188=this.onContentError(e);try{this.containerNode.innerHTML=_188;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}})});}var _189=dojo.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad},this._contentSetterParams||{});dojo.mixin(_186,_189);_186.set((dojo.isObject(cont)&&cont.domNode)?cont.domNode:cont);delete this._contentSetterParams;if(!_185){this._onLoadHandler(cont);}},_onError:function(type,err,_18c){var _18d=this["on"+type+"Error"].call(this,err);if(_18c){console.error(_18c,err);}else{if(_18d){this._setContent(_18d,true);}}},_createSubWidgets:function(){try{dojo.parser.parse(this.containerNode,true);}catch(e){this._onError("Content",e,"Couldn't create widgets in "+this.id+(this.href?" from "+this.href:""));}},onLoad:function(data){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage;},onContentError:function(_18f){},onDownloadError:function(_190){return this.errorMessage;},onDownloadEnd:function(){}});}if(!dojo._hasResource["dijit.form.Form"]){dojo._hasResource["dijit.form.Form"]=true;dojo.provide("dijit.form.Form");dojo.declare("dijit.form._FormMixin",null,{reset:function(){dojo.forEach(this.getDescendants(),function(_191){if(_191.reset){_191.reset();}});},validate:function(){var _192=false;return dojo.every(dojo.map(this.getDescendants(),function(_193){_193._hasBeenBlurred=true;var _194=_193.disabled||!_193.validate||_193.validate();if(!_194&&!_192){dijit.scrollIntoView(_193.containerNode||_193.domNode);_193.focus();_192=true;}return _194;}),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(_199){if(!_199.name){return;}var _19a=map[_199.name]||(map[_199.name]=[]);_19a.push(_199);});for(var name in map){if(!map.hasOwnProperty(name)){continue;}var _19c=map[name],_19d=dojo.getObject(name,false,obj);if(_19d===undefined){continue;}if(!dojo.isArray(_19d)){_19d=[_19d];}if(typeof _19c[0].checked=="boolean"){dojo.forEach(_19c,function(w,i){w.attr("value",dojo.indexOf(_19d,w.value)!=-1);});}else{if(_19c[0]._multiValue){_19c[0].attr("value",_19d);}else{dojo.forEach(_19c,function(w,i){w.attr("value",_19d[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(_1a3){var name=_1a3.name;if(!name||_1a3.disabled){return;}var _1a5=_1a3.attr("value");if(typeof _1a3.checked=="boolean"){if(/Radio/.test(_1a3.declaredClass)){if(_1a5!==false){dojo.setObject(name,_1a5,obj);}}else{var ary=dojo.getObject(name,false,obj);if(!ary){ary=[];dojo.setObject(name,ary,obj);}if(_1a5!==false){ary.push(_1a5);}}}else{dojo.setObject(name,_1a5,obj);}});return obj;},isValid:function(){this._invalidWidgets=[];return dojo.every(this.getDescendants(),function(_1a7){var _1a8=_1a7.disabled||!_1a7.isValid||_1a7.isValid();if(!_1a8){this._invalidWidgets.push(_1a7);}return _1a8;},this);},onValidStateChange:function(_1a9){},_widgetChange:function(_1aa){var _1ab=this._lastValidState;if(!_1aa||this._lastValidState===undefined){_1ab=this.isValid();if(this._lastValidState===undefined){this._lastValidState=_1ab;}}else{if(_1aa.isValid){this._invalidWidgets=dojo.filter(this._invalidWidgets||[],function(w){return (w!=_1aa);},this);if(!_1aa.isValid()&&!_1aa.attr("disabled")){this._invalidWidgets.push(_1aa);}_1ab=(this._invalidWidgets.length===0);}}if(_1ab!==this._lastValidState){this._lastValidState=_1ab;this.onValidStateChange(_1ab);}},connectChildren:function(){dojo.forEach(this._changeConnections,dojo.hitch(this,"disconnect"));var _1ad=this;var _1ae=this._changeConnections=[];dojo.forEach(dojo.filter(this.getDescendants(),function(item){return item.validate;}),function(_1b0){_1ae.push(_1ad.connect(_1b0,"validate",dojo.hitch(_1ad,"_widgetChange",_1b0)));_1ae.push(_1ad.connect(_1b0,"_setDisabledAttr",dojo.hitch(_1ad,"_widgetChange",_1b0)));});this._widgetChange(null);},startup:function(){this.inherited(arguments);this._changeConnections=[];this.connectChildren();}});dojo.declare("dijit.form.Form",[dijit._Widget,dijit._Templated,dijit.form._FormMixin],{name:"",action:"",method:"",encType:"","accept-charset":"",accept:"",target:"",templateString:"<form dojoAttachPoint='containerNode' dojoAttachEvent='onreset:_onReset,onsubmit:_onSubmit' name='${name}'></form>",attributeMap:dojo.mixin(dojo.clone(dijit._Widget.prototype.attributeMap),{action:"",method:"",encType:"","accept-charset":"",accept:"",target:""}),execute:function(_1b1){},onExecute:function(){},_setEncTypeAttr:function(_1b2){this.encType=_1b2;dojo.attr(this.domNode,"encType",_1b2);if(dojo.isIE){this.domNode.encoding=_1b2;}},postCreate:function(){if(dojo.isIE&&this.srcNodeRef&&this.srcNodeRef.attributes){var item=this.srcNodeRef.attributes.getNamedItem("encType");if(item&&!item.specified&&(typeof item.value=="string")){this.attr("encType",item.value);}}this.inherited(arguments);},onReset:function(e){return true;},_onReset:function(e){var faux={returnValue:true,preventDefault:function(){this.returnValue=false;},stopPropagation:function(){},currentTarget:e.currentTarget,target:e.target};if(!(this.onReset(faux)===false)&&faux.returnValue){this.reset();}dojo.stopEvent(e);return false;},_onSubmit:function(e){var fp=dijit.form.Form.prototype;if(this.execute!=fp.execute||this.onExecute!=fp.onExecute){dojo.deprecated("dijit.form.Form:execute()/onExecute() are deprecated. Use onSubmit() instead.","","2.0");this.onExecute();this.execute(this.getValues());}if(this.onSubmit(e)===false){dojo.stopEvent(e);}},onSubmit:function(e){return this.isValid();},submit:function(){if(!(this.onSubmit()===false)){this.containerNode.submit();}}});}if(!dojo._hasResource["dijit.Dialog"]){dojo._hasResource["dijit.Dialog"]=true;dojo.provide("dijit.Dialog");dojo.declare("dijit.DialogUnderlay",[dijit._Widget,dijit._Templated],{templateString:"<div class='dijitDialogUnderlayWrapper' id='${id}_wrapper'><div class='dijitDialogUnderlay ${class}' id='${id}' dojoAttachPoint='node'></div></div>",attributeMap:{},postCreate:function(){dojo.body().appendChild(this.domNode);this.bgIframe=new dijit.BackgroundIframe(this.domNode);},layout:function(){var _1ba=dijit.getViewport();var is=this.node.style,os=this.domNode.style;os.top=_1ba.t+"px";os.left=_1ba.l+"px";is.width=_1ba.w+"px";is.height=_1ba.h+"px";var _1bd=dijit.getViewport();if(_1ba.w!=_1bd.w){is.width=_1bd.w+"px";}if(_1ba.h!=_1bd.h){is.height=_1bd.h+"px";}},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();}}});dojo.declare("dijit._DialogMixin",null,{attributeMap:dijit._Widget.prototype.attributeMap,execute:function(_1be){},onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.attr("value"));},_getFocusItems:function(_1bf){var _1c0=dijit._getTabNavigable(dojo.byId(_1bf));this._firstFocusItem=_1c0.lowest||_1c0.first||_1bf;this._lastFocusItem=_1c0.last||_1c0.highest||this._firstFocusItem;if(dojo.isMoz&&this._firstFocusItem.tagName.toLowerCase()=="input"&&dojo.attr(this._firstFocusItem,"type").toLowerCase()=="file"){dojo.attr(_1bf,"tabindex","0");this._firstFocusItem=_1bf;}}});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\" 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.mixin(dojo.clone(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 _1c1=dojo.i18n.getLocalization("dijit","common");dojo.mixin(this,_1c1);this.inherited(arguments);},postCreate:function(){var s=this.domNode.style;s.visibility="hidden";s.position="absolute";s.display="";s.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");}this._underlay=new dijit.DialogUnderlay({id:this.id+"_underlay","class":dojo.map(this["class"].split(/\s/),function(s){return s+"_underlay";}).join(" ")});var _1c8=this._underlay;this._fadeIn=dojo.fadeIn({node:node,duration:this.duration,onBegin:dojo.hitch(_1c8,"show")});this._fadeOut=dojo.fadeOut({node:node,duration:this.duration,onEnd:function(){node.style.visibility="hidden";node.style.top="-9999px";_1c8.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._underlay){this._underlay.destroy();}if(this._moveable){this._moveable.destroy();}},_size:function(){var mb=dojo.marginBox(this.domNode);var _1ca=dijit.getViewport();if(mb.w>=_1ca.w||mb.h>=_1ca.h){dojo.style(this.containerNode,{width:Math.min(mb.w,Math.floor(_1ca.w*0.75))+"px",height:Math.min(mb.h,Math.floor(_1ca.h*0.75))+"px",overflow:"auto",position:"relative"});}},_position:function(){if(!dojo.hasClass(dojo.body(),"dojoMove")){var node=this.domNode;var _1cc=dijit.getViewport();var p=this._relativePosition;var mb=p?null:dojo.marginBox(node);dojo.style(node,{left:Math.floor(_1cc.l+(p?p.l:(_1cc.w-mb.w)/2))+"px",top:Math.floor(_1cc.t+(p?p.t:(_1cc.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 _1d2=(this._firstFocusItem==this._lastFocusItem);if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){if(!_1d2){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_1d2){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._loadCheck();this._size();this._position();this._fadeIn.play();this._savedFocus=dijit.getFocus(this);if(this.autofocus){this._getFocusItems(this.domNode);setTimeout(dojo.hitch(dijit,"focus",this._firstFocusItem),50);}},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"){this._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);}});dojo.declare("dijit.TooltipDialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{title:"",doLayout:false,autofocus:true,"class":"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,_1d4,_1d5){this.domNode.className=this["class"]+" dijitTooltipAB"+(_1d5.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_1d5.charAt(0)=="T"?"Below":"Above");},onOpen:function(pos){this.orient(this.domNode,pos.aroundCorner,pos.corner);this._loadCheck();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 _1da=(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(!_1da){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_1da){dijit.focus(this._firstFocusItem);}dojo.stopEvent(evt);}else{if(evt.charOrCode===dk.TAB){evt.stopPropagation();}}}}}});}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 _1db="text";var oSel;try{oSel=dojo.global.getSelection();}catch(e){}if(oSel&&oSel.rangeCount==1){var _1dd=oSel.getRangeAt(0);if((_1dd.startContainer==_1dd.endContainer)&&((_1dd.endOffset-_1dd.startOffset)==1)&&(_1dd.startContainer.nodeType!=3)){_1db="control";}}return _1db;}},getSelectedText:function(){if(dojo.doc.selection){if(dijit._editor.selection.getType()=="control"){return null;}return dojo.doc.selection.createRange().text;}else{var _1de=dojo.global.getSelection();if(_1de){return _1de.toString();}}return "";},getSelectedHtml:function(){if(dojo.doc.selection){if(dijit._editor.selection.getType()=="control"){return null;}return dojo.doc.selection.createRange().htmlText;}else{var _1df=dojo.global.getSelection();if(_1df&&_1df.rangeCount){var frag=_1df.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 _1e2=dojo.doc.selection.createRange();if(_1e2&&_1e2.item){return dojo.doc.selection.createRange().item(0);}}else{var _1e3=dojo.global.getSelection();return _1e3.anchorNode.childNodes[_1e3.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 _1e6=dojo.global.getSelection();if(_1e6){var node=_1e6.anchorNode;while(node&&(node.nodeType!=1)){node=node.parentNode;}return node;}}}return null;},hasAncestorElement:function(_1e8){return this.getAncestorElement.apply(this,arguments)!=null;},getAncestorElement:function(_1e9){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(_1f2){if(window["getSelection"]){var _1f3=dojo.global.getSelection();if(_1f3.removeAllRanges){if(_1f2){_1f3.collapseToStart();}else{_1f3.collapseToEnd();}}else{_1f3.collapse(_1f2);}}else{if(dojo.doc.selection){var _1f4=dojo.doc.selection.createRange();_1f4.collapse(_1f2);_1f4.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(_1f6,_1f7){var _1f8=dojo.global;var _1f9=dojo.doc;_1f6=dojo.byId(_1f6);if(_1f9.selection&&dojo.body().createTextRange){var _1fa=_1f6.ownerDocument.body.createTextRange();_1fa.moveToElementText(_1f6);if(!_1f7){try{_1fa.select();}catch(e){}}}else{if(_1f8.getSelection){var _1fb=_1f8.getSelection();if(_1fb.setBaseAndExtent){_1fb.setBaseAndExtent(_1f6,0,_1f6,_1f6.innerText.length-1);}else{if(_1fb.selectAllChildren){_1fb.selectAllChildren(_1f6);}}}}},selectElement:function(_1fc,_1fd){var _1fe,_1ff=dojo.doc;_1fc=dojo.byId(_1fc);if(_1ff.selection&&dojo.body().createTextRange){try{_1fe=dojo.body().createControlRange();_1fe.addElement(_1fc);if(!_1fd){_1fe.select();}}catch(e){this.selectElementChildren(_1fc,_1fd);}}else{if(dojo.global.getSelection){var _200=dojo.global.getSelection();if(_200.removeAllRanges){_1fe=_1ff.createRange();_1fe.selectNode(_1fc);_200.removeAllRanges();_200.addRange(_1fe);}}}}});}if(!dojo._hasResource["dijit._editor.range"]){dojo._hasResource["dijit._editor.range"]=true;dojo.provide("dijit._editor.range");dijit.range={};dijit.range.getIndex=function(node,_202){var ret=[],retR=[];var stop=_202;var _206=node;var _207,n;while(node!=stop){var i=0;_207=node.parentNode;while((n=_207.childNodes[i++])){if(n===node){--i;break;}}if(i>=_207.childNodes.length){dojo.debug("Error finding index of a node in dijit.range.getIndex");}ret.unshift(i);retR.unshift(i-_207.childNodes.length);node=_207;}if(ret.length>0&&_206.nodeType==3){n=_206.previousSibling;while(n&&n.nodeType==3){ret[ret.length-1]--;n=n.previousSibling;}n=_206.nextSibling;while(n&&n.nodeType==3){retR[retR.length-1]++;n=n.nextSibling;}}return {o:ret,r:retR};};dijit.range.getNode=function(_20a,_20b){if(!dojo.isArray(_20a)||_20a.length==0){return _20b;}var node=_20b;dojo.every(_20a,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 _210=function(n){var as=[];while(n){as.unshift(n);if(n.nodeName!="BODY"){n=n.parentNode;}else{break;}}return as;};var n1as=_210(n1);var n2as=_210(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,_219,root){root=root||node.ownerDocument.body;while(node&&node!==root){var name=node.nodeName.toUpperCase();if(_219.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,_21d,root){root=root||node.ownerDocument.body;_21d=_21d||dijit.range.BlockTagNames;var _21f=null,_220;while(node&&node!==root){var name=node.nodeName.toUpperCase();if(!_21f&&_21d.test(name)){_21f=node;}if(!_220&&(/^(?:BODY|TD|TH|CAPTION)$/).test(name)){_220=node;}node=node.parentNode;}return {blockNode:_21f,blockContainer:_220||node.ownerDocument.body};};dijit.range.atBeginningOfContainer=function(_222,node,_224){var _225=false;var _226=(_224==0);if(!_226&&node.nodeType==3){if(dojo.trim(node.nodeValue.substr(0,_224))==0){_226=true;}}if(_226){var _227=node;_225=true;while(_227&&_227!==_222){if(_227.previousSibling){_225=false;break;}_227=_227.parentNode;}}return _225;};dijit.range.atEndOfContainer=function(_228,node,_22a){var _22b=false;var _22c=(_22a==(node.length||node.childNodes.length));if(!_22c&&node.nodeType==3){if(dojo.trim(node.nodeValue.substr(_22a))==0){_22c=true;}}if(_22c){var _22d=node;_22b=true;while(_22d&&_22d!==_228){if(_22d.nextSibling){_22b=false;break;}_22d=_22d.parentNode;}}return _22b;};dijit.range.adjacentNoneTextNode=function(_22e,next){var node=_22e;var len=(0-_22e.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,_234){if(dijit.range._w3c){return win.getSelection();}else{var s=new dijit.range.ie.selection(win);if(!_234){s._getCurrentSelection();}return s;}};if(!dijit.range._w3c){dijit.range.ie={cachedSelection:{},selection:function(win){this._ranges=[];this.addRange=function(r,_238){this._ranges.push(r);if(!_238){r._select();}this.rangeCount=this._ranges.length;};this.removeAllRanges=function(){this._ranges=[];this.rangeCount=0;};var _239=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=_239();if(r){this.addRange(r,true);}};},decomposeControlRange:function(_23e){var _23f=_23e.item(0),_240=_23e.item(_23e.length-1);var _241=_23f.parentNode,_242=_240.parentNode;var _243=dijit.range.getIndex(_23f,_241).o;var _244=dijit.range.getIndex(_240,_242).o+1;return [[_241,_243],[_242,_244]];},getEndPoint:function(_245,end){var _247=_245.duplicate();_247.collapse(!end);var _248="EndTo"+(end?"End":"Start");var _249=_247.parentElement();var _24a,_24b,_24c;if(_249.childNodes.length>0){dojo.every(_249.childNodes,function(node,i){var _24f;if(node.nodeType!=3){_247.moveToElementText(node);if(_247.compareEndPoints(_248,_245)>0){_24a=node.previousSibling;if(_24c&&_24c.nodeType==3){_24a=_24c;_24f=true;}else{_24a=_249;_24b=i;return false;}}else{if(i==_249.childNodes.length-1){_24a=_249;_24b=_249.childNodes.length;return false;}}}else{if(i==_249.childNodes.length-1){_24a=node;_24f=true;}}if(_24f&&_24a){var _250=dijit.range.adjacentNoneTextNode(_24a)[0];if(_250){_24a=_250.nextSibling;}else{_24a=_249.firstChild;}var _251=dijit.range.adjacentNoneTextNode(_24a);_250=_251[0];var _252=_251[1];if(_250){_247.moveToElementText(_250);_247.collapse(false);}else{_247.moveToElementText(_249);}_247.setEndPoint(_248,_245);_24b=_247.text.length-_252;return false;}_24c=node;return true;});}else{_24a=_249;_24b=0;}if(!end&&_24a.nodeType!=3&&_24b==_24a.childNodes.length){if(_24a.nextSibling&&_24a.nextSibling.nodeType==3){_24a=_24a.nextSibling;_24b=0;}}return [_24a,_24b];},setEndPoint:function(_253,_254,_255){var _256=_253.duplicate(),node,len;if(_254.nodeType!=3){_256.moveToElementText(_254);_256.collapse(true);if(_255==_254.childNodes.length){if(_255>0){node=_254.lastChild;len=0;while(node&&node.nodeType==3){len+=node.length;_254=node;node=node.previousSibling;}if(node){_256.moveToElementText(node);}_256.collapse(false);_255=len;}else{_256.moveToElementText(_254);_256.collapse(true);}}else{if(_255>0){node=_254.childNodes[_255-1];if(node.nodeType==3){_254=node;_255=node.length;}else{_256.moveToElementText(node);_256.collapse(false);}}}}if(_254.nodeType==3){var _259=dijit.range.adjacentNoneTextNode(_254);var _25a=_259[0];len=_259[1];if(_25a){_256.moveToElementText(_25a);_256.collapse(false);if(_25a.contentEditable!="inherit"){len++;}}else{_256.moveToElementText(_254.parentNode);_256.collapse(true);}_255+=len;if(_255>0){if(_256.move("character",_255)!=_255){console.error("Error when moving!");}}}return _256;},decomposeTextRange:function(_25b){var _25c=dijit.range.ie.getEndPoint(_25b);var _25d=_25c[0],_25e=_25c[1];var _25f=_25c[0],_260=_25c[1];if(_25b.htmlText.length){if(_25b.htmlText==_25b.text){_260=_25e+_25b.text.length;}else{_25c=dijit.range.ie.getEndPoint(_25b,true);_25f=_25c[0],_260=_25c[1];}}return [[_25d,_25e],[_25f,_260]];},setRange:function(_261,_262,_263,_264,_265,_266){var _267=dijit.range.ie.setEndPoint(_261,_262,_263);_261.setEndPoint("StartToStart",_267);var _268=_267;if(!_266){_268=dijit.range.ie.setEndPoint(_261,_264,_265);}_261.setEndPoint("EndToEnd",_268);return _261;}};dojo.declare("dijit.range.W3CRange",null,{constructor:function(){if(arguments.length>0){this.setStart(arguments[0][0][0],arguments[0][0][1]);this.setEnd(arguments[0][1][0],arguments[0][1][1]);}else{this.commonAncestorContainer=null;this.startContainer=null;this.startOffset=0;this.endContainer=null;this.endOffset=0;this.collapsed=true;}},_simpleSetEndPoint:function(node,_26a,end){var r=(this._body||node.ownerDocument.body).createTextRange();if(node.nodeType!=1){r.moveToElementText(node.parentNode);}else{r.moveToElementText(node);}r.collapse(true);_26a.setEndPoint(end?"EndToEnd":"StartToStart",r);},_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,_26e){_26e=parseInt(_26e);if(this.startContainer===node&&this.startOffset==_26e){return;}delete this._cachedBookmark;this.startContainer=node;this.startOffset=_26e;if(!this.endContainer){this.setEnd(node,_26e);}else{this._updateInternal();}},setEnd:function(node,_270){_270=parseInt(_270);if(this.endContainer===node&&this.endOffset==_270){return;}delete this._cachedBookmark;this.endContainer=node;this.endOffset=_270;if(!this.startContainer){this.setStart(node,_270);}else{this._updateInternal();}},setStartAfter:function(node,_272){this._setPoint("setStart",node,_272,1);},setStartBefore:function(node,_274){this._setPoint("setStart",node,_274,0);},setEndAfter:function(node,_276){this._setPoint("setEnd",node,_276,1);},setEndBefore:function(node,_278){this._setPoint("setEnd",node,_278,0);},_setPoint:function(what,node,_27b,ext){var _27d=dijit.range.getIndex(node,node.parentNode).o;this[what](node.parentNode,_27d.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,_284){str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");if(!_284){str=str.replace(/'/gm,"&#39;");}return str;};dijit._editor.getNodeHtml=function(node){var _286;switch(node.nodeType){case 1:_286="<"+node.nodeName.toLowerCase();var _287=[];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")){_287.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);}_287.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");}}_287.push([n,v]);}}}_287.sort(function(a,b){return a[0]<b[0]?-1:(a[0]==b[0]?0:1);});var j=0;while((attr=_287[j++])){_286+=" "+attr[0]+"=\""+(dojo.isString(attr[1])?dijit._editor.escapeXml(attr[1],true):attr[1])+"\"";}if(node.childNodes.length){_286+=">"+dijit._editor.getChildrenHtml(node)+"</"+node.nodeName.toLowerCase()+">";}else{_286+=" />";}break;case 3:_286=dijit._editor.escapeXml(node.nodeValue,true);break;case 8:_286="<!--"+dijit._editor.escapeXml(node.nodeValue,true)+"-->";break;default:_286="<!-- Element not recognized - Type: "+node.nodeType+" Name: "+node.nodeName+"-->";}return _286;};dijit._editor.getChildrenHtml=function(dom){var out="";if(!dom){return out;}var _296=dom["childNodes"]||dom;var node,i=0;while((node=_296[i++])){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 _299=dojo.doc.createElement("textarea");_299.id=dijit._scopeName+"._editor.RichText.savedContent";var s=_299.style;s.display="none";s.position="absolute";s.top="-100px";s.left="-100px";s.height="3px";s.width="3px";dojo.body().appendChild(_299);})();}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(_29b){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,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 _29f={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){_29f.Z=exec("redo");}for(var key in _29f){this.addKeyHandler(key,true,false,_29f[key]);}},events:["onKeyPress","onKeyDown","onKeyUp","onClick"],captureEvents:[],_editorCommandsLocalized:false,_localizeEditorCommands:function(){if(this._editorCommandsLocalized){return;}this._editorCommandsLocalized=true;var _2a1=["div","p","pre","h1","h2","h3","h4","h5","h6","ol","ul","address"];var _2a2="",_2a3,i=0;while((_2a3=_2a1[i++])){if(_2a3.charAt(1)!="l"){_2a2+="<"+_2a3+"><span>content</span></"+_2a3+"><br/>";}else{_2a2+="<"+_2a3+"><li>content</li></"+_2a3+"><br/>";}}var div=dojo.doc.createElement("div");dojo.style(div,{position:"absolute",left:"-2000px",top:"-2000px"});dojo.doc.body.appendChild(div);div.innerHTML=_2a2;var node=div.firstChild;while(node){dijit._editor.selection.selectElement(node.firstChild);dojo.withGlobal(this.window,"selectElement",dijit._editor.selection,[node.firstChild]);var _2a7=node.tagName.toLowerCase();this._local2NativeFormatNames[_2a7]=document.queryCommandValue("formatblock");this._native2LocalFormatNames[this._local2NativeFormatNames[_2a7]]=_2a7;node=node.nextSibling.nextSibling;}dojo.body().removeChild(div);},open:function(_2a8){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)&&(_2a8["nodeName"])){this.domNode=_2a8;}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 _2ac=dojo.hitch(this,function(){with(ta.style){display="block";position="absolute";left=top="-1000px";if(dojo.isIE){this.__overflow=overflow;overflow="hidden";}}});if(dojo.isIE){setTimeout(_2ac,10);}else{_2ac();}if(ta.form){dojo.connect(ta.form,"onsubmit",this,function(){ta.value=this.getValue();});}}else{html=this._preFilterContent(dijit._editor.getChildrenHtml(dn));dn.innerHTML="";}if(html==""){html="&nbsp;";}var _2ad=dojo.contentBox(dn);this._oldHeight=_2ad.h;this._oldWidth=_2ad.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 _2ae=dojo.byId(dijit._scopeName+"._editor.RichText.savedContent");if(_2ae.value!=""){var _2af=_2ae.value.split(this._SEPARATOR),i=0,dat;while((dat=_2af[i++])){var data=dat.split(":");if(data[0]==this.name){html=data[1];_2af.splice(i,1);break;}}}this.connect(window,"onbeforeunload","_saveContent");}this.isClosed=false;if(dojo.isIE||dojo.isSafari||dojo.isOpera){var burl=dojo.config["dojoBlankHtmlUrl"]||(dojo.moduleUrl("dojo","resources/blank.html")+"");var ifr=this.editorObject=this.iframe=dojo.doc.createElement("iframe");ifr.id=this.id+"_iframe";ifr.src=burl;ifr.style.border="none";ifr.style.width="100%";ifr.frameBorder=0;this.editingArea.appendChild(ifr);var h=null;var _2b6=dojo.hitch(this,function(){if(h){dojo.disconnect(h);h=null;}this.window=ifr.contentWindow;var d=this.document=this.window.document;d.open();d.write(this._getIframeDocTxt(html));d.close();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;}}if(dojo.isIE){this._localizeEditorCommands();}this.onLoad();this.savedContent=this.getValue(true);});if(dojo.isIE&&dojo.isIE<=7){var t=setInterval(function(){if(ifr.contentWindow.isLoaded){clearInterval(t);_2b6();}},100);}else{h=dojo.connect(((dojo.isIE)?ifr.contentWindow:ifr),"onload",_2b6);}}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 _2bc=_cs.lineHeight;if(_2bc.indexOf("px")>=0){_2bc=parseFloat(_2bc)/parseFloat(_cs.fontSize);}else{if(_2bc.indexOf("em")>=0){_2bc=parseFloat(_2bc);}else{_2bc="1.0";}}var _2bd="";this.style.replace(/(^|;)(line-|font-?)[^;]+/g,function(_2be){_2bd+=_2be.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:",_2bc,"}","p{ margin: 1em 0 !important; }",(this.height?"":"body,html{height:auto;overflow-y:hidden;/*for IE*/} body > div {overflow-x:auto;/*for FF to show vertical scrollbar*/}"),"li > ul:-moz-first-node, li > ol:-moz-first-node{ padding-top: 1.2em; } ","li{ min-height:1.2em; }","</style>",this._applyEditingAreaStyleSheets(),"</head><body style='"+_2bd+"'>"+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 _2c2=dojo.query("label[for=\""+this.id+"\"]");if(_2c2.length){this._localizedIframeTitles.iframeEditTitle=_2c2[0].innerHTML+" "+this._localizedIframeTitles.iframeEditTitle;}}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 _2c3;if(this.textarea){_2c3=this.srcNodeRef;}else{_2c3=dojo.doc.createElement("div");_2c3.style.display="none";_2c3.innerHTML=html;this.editingArea.appendChild(_2c3);}this.editingArea.appendChild(this.iframe);var _2c4=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(_2c4,50);return;}var _2c5=this.document;_2c5.open();if(dojo.isAIR){_2c5.body.innerHTML=html;}else{_2c5.write(this._getIframeDocTxt(html));}_2c5.close();dojo._destroyElement(_2c3);}if(!this.document.body){setTimeout(_2c4,50);return;}this.onLoad();}else{dojo._destroyElement(_2c3);this.editNode.innerHTML=html;this.onDisplayChanged();}this._preDomFilterContent(this.editNode);});_2c4();},_applyEditingAreaStyleSheets:function(){var _2c6=[];if(this.styleSheets){_2c6=this.styleSheets.split(";");this.styleSheets="";}_2c6=_2c6.concat(this.editingAreaStyleSheets);this.editingAreaStyleSheets=[];var text="",i=0,url;while((url=_2c6[i++])){var _2ca=(new dojo._Url(dojo.global.location,url)).toString();this.editingAreaStyleSheets.push(_2ca);text+="<link rel=\"stylesheet\" type=\"text/css\" href=\""+_2ca+"\"/>";}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 _2ce=this.document.createElement("link");with(_2ce){rel="stylesheet";type="text/css";href=url;}head.appendChild(_2ce);}},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 _2d1=dojo.indexOf(this.editingAreaStyleSheets,url);if(_2d1==-1){return;}delete this.editingAreaStyleSheets[_2d1];dojo.withGlobal(this.window,"query",dojo,["link:[href=\""+url+"\"]"]).orphan();},disabled:true,_mozSettingProps:["styleWithCSS","insertBrOnReturn"],_setDisabledAttr:function(_2d2){if(!this.editNode||"_delayedDisabled" in this){this._delayedDisabled=_2d2;return;}_2d2=Boolean(_2d2);if(dojo.isIE||dojo.isSafari||dojo.isOpera){var _2d3=dojo.isIE&&(this.isLoaded||!this.focusOnLoad);if(_2d3){this.editNode.unselectable="on";}this.editNode.contentEditable=!_2d2;if(_2d3){var _2d4=this;setTimeout(function(){_2d4.editNode.unselectable="off";},0);}}else{if(_2d2){this._mozSettings=[false,this.blockNodeForEnter==="BR"];}this.document.designMode=(_2d2?"off":"on");if(!_2d2&&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=_2d2;},_isResized:function(){return false;},onLoad:function(e){if(!this.window.__registeredWindow){this.window.__registeredWindow=true;dijit.registerWin(this.window);}if(!dojo.isIE&&(this.height||dojo.isMoz)){this.editNode=this.document.body;}else{this.editNode=this.document.body.firstChild;var _2d8=this;if(dojo.isIE){var _2d9=this.tabStop=dojo.doc.createElement("<div tabIndex=-1>");this.editingArea.appendChild(_2d9);this.iframe.onfocus=function(){_2d8.editNode.setActive();};}}this.focusNode=this.editNode;try{this.attr("disabled",false);}catch(e){var _2da=dojo.connect(this,"onClick",this,function(){this.attr("disabled",false);dojo.disconnect(_2da);});}this._preDomFilterContent(this.editNode);var _2db=this.events.concat(this.captureEvents);var ap=(this.iframe)?this.document:this.editNode;dojo.forEach(_2db,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 _2e0=dojo.isFF<3?this.iframe.contentDocument:this.iframe;_2e0.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(_2e2){dojo.deprecated("dijit.Editor::setDisabled is deprecated","use dijit.Editor::attr(\"disabled\",boolean) instead",2);this.attr("disabled",_2e2);},_setValueAttr:function(_2e3){this.setValue(_2e3);},onKeyPress:function(e){var c=(e.keyChar&&e.keyChar.toLowerCase())||e.keyCode;var _2e6=this._keyHandlers[c];var args=arguments;if(_2e6){dojo.forEach(_2e6,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,_2eb,_2ec){if(!dojo.isArray(this._keyHandlers[key])){this._keyHandlers[key]=[];}this._keyHandlers[key].push({shift:_2eb||false,ctrl:ctrl||false,handler:_2ec});},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 _2f1=dojo.isFF<3?this.iframe.contentDocument:this.iframe;_2f1.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(_2f4){},_normalizeCommand:function(cmd){var _2f6=cmd.toLowerCase();if(_2f6=="formatblock"){if(dojo.isSafari){_2f6="heading";}}else{if(_2f6=="hilitecolor"&&!dojo.isMoz){_2f6="backcolor";}}return _2f6;},_qcaCache:{},queryCommandAvailable:function(_2f7){var ca=this._qcaCache[_2f7];if(ca!=undefined){return ca;}return this._qcaCache[_2f7]=this._queryCommandAvailable(_2f7);},_queryCommandAvailable:function(_2f9){var ie=1;var _2fb=1<<1;var _2fc=1<<2;var _2fd=1<<3;var _2fe=1<<4;var _2ff=dojo.isSafari;function isSupportedBy(_300){return {ie:Boolean(_300&ie),mozilla:Boolean(_300&_2fb),safari:Boolean(_300&_2fc),safari420:Boolean(_300&_2fe),opera:Boolean(_300&_2fd)};};var _301=null;switch(_2f9.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":_301=isSupportedBy(_2fb|ie|_2fc|_2fd);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":_301=isSupportedBy(_2fb|ie|_2fd|_2fe);break;case "blockdirltr":case "blockdirrtl":case "dirltr":case "dirrtl":case "inlinedirltr":case "inlinedirrtl":_301=isSupportedBy(ie);break;case "cut":case "copy":case "paste":_301=isSupportedBy(ie|_2fb|_2fe);break;case "inserttable":_301=isSupportedBy(_2fb|ie);break;case "insertcell":case "insertcol":case "insertrow":case "deletecells":case "deletecols":case "deleterows":case "mergecells":case "splitcell":_301=isSupportedBy(ie|_2fb);break;default:return false;}return (dojo.isIE&&_301.ie)||(dojo.isMoz&&_301.mozilla)||(dojo.isSafari&&_301.safari)||(_2ff&&_301.safari420)||(dojo.isOpera&&_301.opera);},execCommand:function(_302,_303){var _304;this.focus();_302=this._normalizeCommand(_302);if(_303!=undefined){if(_302=="heading"){throw new Error("unimplemented");}else{if((_302=="formatblock")&&dojo.isIE){_303="<"+_303+">";}}}if(_302=="inserthtml"){_303=this._preFilterContent(_303);_304=true;if(dojo.isIE){var _305=this.document.selection.createRange();if(this.document.selection.type.toUpperCase()=="CONTROL"){var n=_305.item(0);while(_305.length){_305.remove(_305.item(0));}n.outerHTML=_303;}else{_305.pasteHTML(_303);}_305.select();}else{if(dojo.isMoz&&!_303.length){this._sCall("remove");}else{_304=this.document.execCommand(_302,false,_303);}}}else{if((_302=="unlink")&&(this.queryCommandEnabled("unlink"))&&(dojo.isMoz||dojo.isSafari)){var a=this._sCall("getAncestorElement",["a"]);this._sCall("selectElement",[a]);_304=this.document.execCommand("unlink",false,null);}else{if((_302=="hilitecolor")&&(dojo.isMoz)){this.document.execCommand("styleWithCSS",false,true);_304=this.document.execCommand(_302,false,_303);this.document.execCommand("styleWithCSS",false,false);}else{if((dojo.isIE)&&((_302=="backcolor")||(_302=="forecolor"))){_303=arguments.length>1?_303:null;_304=this.document.execCommand(_302,false,_303);}else{_303=arguments.length>1?_303:null;if(_303||_302!="createlink"){_304=this.document.execCommand(_302,false,_303);}}}}}this.onDisplayChanged();return _304;},queryCommandEnabled:function(_308){if(this.disabled){return false;}_308=this._normalizeCommand(_308);if(dojo.isMoz||dojo.isSafari){if(_308=="unlink"){this._sCall("hasAncestorElement",["a"]);}else{if(_308=="inserttable"){return true;}}}if(dojo.isSafari){if(_308=="copy"){_308="cut";}else{if(_308=="paste"){return true;}}}if(_308=="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(_308=="outdent"){return this._sCall("hasAncestorElement",["li"]);}}var elem=dojo.isIE?this.document.selection.createRange():this.document;return elem.queryCommandEnabled(_308);},queryCommandState:function(_30c){if(this.disabled){return false;}_30c=this._normalizeCommand(_30c);return this.document.queryCommandState(_30c);},queryCommandValue:function(_30d){if(this.disabled){return false;}var r;_30d=this._normalizeCommand(_30d);if(dojo.isIE&&_30d=="formatblock"){r=this._native2LocalFormatNames[this.document.queryCommandValue(_30d)];}else{r=this.document.queryCommandValue(_30d);}return r;},_sCall:function(name,args){return dojo.withGlobal(this.window,name,dijit._editor.selection,args);},placeCursorAtStart:function(){this.focus();var _311=false;if(dojo.isMoz){var _312=this.editNode.firstChild;while(_312){if(_312.nodeType==3){if(_312.nodeValue.replace(/^\s+|\s+$/g,"").length>0){_311=true;this._sCall("selectElement",[_312]);break;}}else{if(_312.nodeType==1){_311=true;this._sCall("selectElementChildren",[_312]);break;}}_312=_312.nextSibling;}}else{_311=true;this._sCall("selectElementChildren",[this.editNode]);}if(_311){this._sCall("collapse",[true]);}},placeCursorAtEnd:function(){this.focus();var _313=false;if(dojo.isMoz){var last=this.editNode.lastChild;while(last){if(last.nodeType==3){if(last.nodeValue.replace(/^\s+|\s+$/g,"").length>0){_313=true;this._sCall("selectElement",[last]);break;}}else{if(last.nodeType==1){_313=true;if(last.lastChild){this._sCall("selectElement",[last.lastChild]);}else{this._sCall("selectElement",[last]);}break;}}last=last.previousSibling;}}else{_313=true;this._sCall("selectElementChildren",[this.editNode]);}if(_313){this._sCall("collapse",[false]);}},getValue:function(_315){if(this.textarea){if(this.isClosed||!this.isLoaded){return this.textarea.value;}}return this._postFilterContent(null,_315);},_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,_31f){var ec;if(!dojo.isString(dom)){dom=dom||this.editNode;if(this.contentDomPostFilters.length){if(_31f){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 _324=dojo.byId(dijit._scopeName+"._editor.RichText.savedContent");_324.value+=this._SEPARATOR+this.name+":"+this.getValue();},escapeXml:function(str,_326){str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");if(!_326){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,_32a){if(this.isClosed){return false;}if(!arguments.length){save=true;}this._content=this.getValue();var _32b=(this.savedContent!=this._content);if(this.interval){clearInterval(this.interval);}if(this.textarea){with(this.textarea.style){position="";left=top="";if(dojo.isIE){overflow=this.__overflow;this.__overflow=null;}}this.textarea.value=save?this._content:this.savedContent;dojo._destroyElement(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 _32b;},destroyRendering:function(){},destroy:function(){this.destroyRendering();if(!this.isClosed){this.close(false);}this.inherited("destroy",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.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>",tabIndex:"0",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);}});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.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\tname=\"${name}\" type=\"${type}\" 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.mixin(dojo.clone(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"){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 _333=dijit.byNode(node);if(_333&&typeof _333._onSubmit=="function"){_333._onSubmit(e);break;}}}}},_fillContent:function(_334){if(_334&&!("label" in this.params)){this.attr("label",_334.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(_337){dojo.deprecated("dijit.form.Button.setLabel() is deprecated.  Use attr('label', ...) instead.","","2.0");this.attr("label",_337);},_setLabelAttr:function(_338){this.containerNode.innerHTML=this.label=_338;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}\" name=\"${name}\"\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 _339=dojo.query("*",this.srcNodeRef);dijit.form.DropDownButton.superclass._fillContent.call(this,_339[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}if(!this.dropDown){var _33a=dojo.query("[widgetId]",this.dropDownContainer)[0];this.dropDown=dijit.byNode(_33a);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 _33d=dojo.isFF&&dojo.isFF<3&&navigator.appVersion.indexOf("Macintosh")!=-1;if(!_33d||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 _341=this.dropDown;if(!_341){return;}if(!this._opened){if(_341.href&&!_341.isLoaded){var self=this;var _343=dojo.connect(_341,"onLoad",function(){dojo.disconnect(_343);self._openDropDown();});_341._loadCheck(true);return;}else{this._openDropDown();}}else{this._closeDropDown();}},_openDropDown:function(){var _344=this.dropDown;var _345=_344.domNode.style.width;var self=this;dijit.popup.open({parent:this,popup:_344,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(){_344.domNode.style.width=_345;self.popupStateNode.removeAttribute("popupActive");self._opened=false;}});if(this.domNode.offsetWidth>_344.domNode.offsetWidth){var _347=null;if(!this.isLeftToRight()){_347=_344.domNode.parentNode;var _348=_347.offsetLeft+_347.offsetWidth;}dojo.marginBox(_344.domNode,{w:this.domNode.offsetWidth});if(_347){_347.style.left=_348-this.domNode.offsetWidth+"px";}}this.popupStateNode.setAttribute("popupActive","true");this._opened=true;if(_344.focus){_344.focus();}},_closeDropDown:function(_349){if(this._opened){dijit.popup.close(this.dropDown);if(_349){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}\" name=\"${name}\"\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:"",name:"",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(_351){this.checked=_351;dojo.attr(this.focusNode||this.domNode,"checked",_351);dijit.setWaiState(this.focusNode||this.domNode,"pressed",_351);this._setStateClass();this._handleOnChange(_351,true);},setChecked:function(_352){dojo.deprecated("setChecked("+_352+") is deprecated. Use attr('checked',"+_352+") instead.","","2.0");this.attr("checked",_352);},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(_356){if(this.command.length){var _357=this.getLabel(this.command);var _358=this.iconClassPrefix+" "+this.iconClassPrefix+this.command.charAt(0).toUpperCase()+this.command.substr(1);if(!this.button){_356=dojo.mixin({label:_357,showLabel:false,iconClass:_358,dropDown:this.dropDown,tabIndex:"-1"},_356||{});this.button=new this.buttonClass(_356);}}},destroy:function(f){dojo.forEach(this._connects,dojo.disconnect);},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 _35f=_e.queryCommandEnabled(_c);if(this.enabled!==_35f){this.enabled=_35f;this.button.attr("disabled",!_35f);}if(typeof this.button.checked=="boolean"){var _360=_e.queryCommandState(_c);if(this.checked!==_360){this.checked=_360;this.button.attr("checked",_e.queryCommandState(_c));}}}catch(e){}}},setEditor:function(_361){this.editor=_361;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(_362){if(this.button){_362.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(_364){this.editor=_364;if(this.blockNodeForEnter=="BR"){if(dojo.isIE){_364.contentDomPreFilters.push(dojo.hitch(this,"regularPsToSingleLinePs"));_364.contentDomPostFilters.push(dojo.hitch(this,"singleLinePsToRegularPs"));_364.onLoadDeferred.addCallback(dojo.hitch(this,"_fixNewLineBehaviorForIE"));}else{_364.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);_364.addKeyHandler(13,0,0,h);_364.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 _36b=dojo.withGlobal(this.editor.window,"getAncestorElement",dijit._editor.selection,["LI"]);if(!_36b){dijit._editor.RichText.prototype.execCommand.call(this.editor,"formatblock",this.blockNodeForEnter);var _36c=dojo.withGlobal(this.editor.window,"getAncestorElement",dijit._editor.selection,[this.blockNodeForEnter]);if(_36c){_36c.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(_36b.parentNode.parentNode.nodeName=="LI"){_36b=_36b.parentNode.parentNode;}}var fc=_36b.firstChild;if(fc&&fc.nodeType==1&&(fc.nodeName=="UL"||fc.nodeName=="OL")){_36b.insertBefore(fc.ownerDocument.createTextNode(" "),fc);var _36f=dijit.range.create();_36f.setStart(_36b.firstChild,0);var _370=dijit.range.getSelection(this.editor.window,true);_370.removeAllRanges();_370.addRange(_36f);}}}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 _372,_373,_374,doc=this.editor.document,br;if(e.shiftKey||this.blockNodeForEnter=="BR"){var _377=dojo.withGlobal(this.editor.window,"getParentElement",dijit._editor.selection);var _378=dijit.range.getAncestor(_377,this.blockNodes);if(_378){if(!e.shiftKey&&_378.tagName=="LI"){return true;}_372=dijit.range.getSelection(this.editor.window);_373=_372.getRangeAt(0);if(!_373.collapsed){_373.deleteContents();}if(dijit.range.atBeginningOfContainer(_378,_373.startContainer,_373.startOffset)){if(e.shiftKey){br=doc.createElement("br");_374=dijit.range.create();_378.insertBefore(br,_378.firstChild);_374.setStartBefore(br.nextSibling);_372.removeAllRanges();_372.addRange(_374);}else{dojo.place(br,_378,"before");}}else{if(dijit.range.atEndOfContainer(_378,_373.startContainer,_373.startOffset)){_374=dijit.range.create();br=doc.createElement("br");if(e.shiftKey){_378.appendChild(br);_378.appendChild(doc.createTextNode(" "));_374.setStart(_378.lastChild,0);}else{dojo.place(br,_378,"after");_374.setStartAfter(_378);}_372.removeAllRanges();_372.addRange(_374);}else{return true;}}}else{dijit._editor.RichText.prototype.execCommand.call(this.editor,"inserthtml","<br>");}return false;}var _379=true;_372=dijit.range.getSelection(this.editor.window);_373=_372.getRangeAt(0);if(!_373.collapsed){_373.deleteContents();}var _37a=dijit.range.getBlockAncestor(_373.endContainer,null,this.editor.editNode);var _37b=_37a.blockNode;if((this._checkListLater=(_37b&&(_37b.nodeName=="LI"||_37b.parentNode.nodeName=="LI")))){if(dojo.isMoz){this._pressedEnterInBlock=_37b;}if(/^(?:\s|&nbsp;)$/.test(_37b.innerHTML)){_37b.innerHTML="";}return true;}if(!_37a.blockNode||_37a.blockNode===this.editor.editNode){dijit._editor.RichText.prototype.execCommand.call(this.editor,"formatblock",this.blockNodeForEnter);_37a={blockNode:dojo.withGlobal(this.editor.window,"getAncestorElement",dijit._editor.selection,[this.blockNodeForEnter]),blockContainer:this.editor.editNode};if(_37a.blockNode){if(!(_37a.blockNode.textContent||_37a.blockNode.innerHTML).replace(/^\s+|\s+$/g,"").length){this.removeTrailingBr(_37a.blockNode);return false;}}else{_37a.blockNode=this.editor.editNode;}_372=dijit.range.getSelection(this.editor.window);_373=_372.getRangeAt(0);}var _37c=doc.createElement(this.blockNodeForEnter);_37c.innerHTML=this.bogusHtmlContent;this.removeTrailingBr(_37a.blockNode);if(dijit.range.atEndOfContainer(_37a.blockNode,_373.endContainer,_373.endOffset)){if(_37a.blockNode===_37a.blockContainer){_37a.blockNode.appendChild(_37c);}else{dojo.place(_37c,_37a.blockNode,"after");}_379=false;_374=dijit.range.create();_374.setStart(_37c,0);_372.removeAllRanges();_372.addRange(_374);if(this.editor.height){_37c.scrollIntoView(false);}}else{if(dijit.range.atBeginningOfContainer(_37a.blockNode,_373.startContainer,_373.startOffset)){dojo.place(_37c,_37a.blockNode,_37a.blockNode===_37a.blockContainer?"first":"before");if(_37c.nextSibling&&this.editor.height){_37c.nextSibling.scrollIntoView(false);}_379=false;}else{if(dojo.isMoz){this._pressedEnterInBlock=_37a.blockNode;}}}return _379;},removeTrailingBr:function(_37d){var para=/P|DIV|LI/i.test(_37d.tagName)?_37d:dijit._editor.selection.getParentOfType(_37d,["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._destroyElement(para.lastChild);}}if(!para.childNodes.length){para.innerHTML=this.bogusHtmlContent;}},_fixNewLineBehaviorForIE:function(d){if(this.editor.document.__INSERTED_EDITIOR_NEWLINE_CSS===undefined){var _380="p{margin:0 !important;}";var _381=function(_382,doc,URI){if(!_382){return null;}if(!doc){doc=document;}var _385=doc.createElement("style");_385.setAttribute("type","text/css");var head=doc.getElementsByTagName("head")[0];if(!head){return null;}else{head.appendChild(_385);}if(_385.styleSheet){var _387=function(){try{_385.styleSheet.cssText=_382;}catch(e){}};if(_385.styleSheet.disabled){setTimeout(_387,10);}else{_387();}}else{var _388=doc.createTextNode(_382);_385.appendChild(_388);}return _385;};_381(_380,this.editor.document);this.editor.document.__INSERTED_EDITIOR_NEWLINE_CSS=true;return d;}return null;},regularPsToSingleLinePs:function(_389,_38a){function wrapLinesInPs(el){function wrapNodes(_38c){var newP=_38c[0].ownerDocument.createElement("p");_38c[0].parentNode.insertBefore(newP,_38c[0]);dojo.forEach(_38c,function(node){newP.appendChild(node);});};var _38f=0;var _390=[];var _391;while(_38f<el.childNodes.length){_391=el.childNodes[_38f];if(_391.nodeType==3||(_391.nodeType==1&&_391.nodeName!="BR"&&dojo.style(_391,"display")!="block")){_390.push(_391);}else{var _392=_391.nextSibling;if(_390.length){wrapNodes(_390);_38f=(_38f+1)-_390.length;if(_391.nodeName=="BR"){dojo._destroyElement(_391);}}_390=[];}_38f++;}if(_390.length){wrapNodes(_390);}};function splitP(el){var _394=null;var _395=[];var _396=el.childNodes.length-1;for(var i=_396;i>=0;i--){_394=el.childNodes[i];if(_394.nodeName=="BR"){var newP=_394.ownerDocument.createElement("p");dojo.place(newP,el,"after");if(_395.length==0&&i!=_396){newP.innerHTML="&nbsp;";}dojo.forEach(_395,function(node){newP.appendChild(node);});dojo._destroyElement(_394);_395=[];}else{_395.unshift(_394);}}};var _39a=[];var ps=_389.getElementsByTagName("p");dojo.forEach(ps,function(p){_39a.push(p);});dojo.forEach(_39a,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=_38a?"":"&nbsp;";}splitP(p);},this.editor);wrapLinesInPs(_389);return _389;},singleLinePsToRegularPs:function(_39f){function getParagraphParents(node){var ps=node.getElementsByTagName("p");var _3a2=[];for(var i=0;i<ps.length;i++){var p=ps[i];var _3a5=false;for(var k=0;k<_3a2.length;k++){if(_3a2[k]===p.parentNode){_3a5=true;break;}}if(!_3a5){_3a2.push(p.parentNode);}}return _3a2;};function isParagraphDelimiter(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 _3a8=getParagraphParents(_39f);for(var i=0;i<_3a8.length;i++){var _3aa=_3a8[i];var _3ab=null;var node=_3aa.firstChild;var _3ad=null;while(node){if(node.nodeType!="1"||node.tagName!="P"){_3ab=null;}else{if(isParagraphDelimiter(node)){_3ad=node;_3ab=null;}else{if(_3ab==null){_3ab=node;}else{if((!_3ab.lastChild||_3ab.lastChild.nodeName!="BR")&&(node.firstChild)&&(node.firstChild.nodeName!="BR")){_3ab.appendChild(this.editor.document.createElement("br"));}while(node.firstChild){_3ab.appendChild(node.firstChild);}_3ad=node;}}}node=node.nextSibling;if(_3ad){dojo._destroyElement(_3ad);_3ad=null;}}}return _39f;}});}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.destroy();delete this.toolbar;this.inherited(arguments);},addPlugin:function(_3af,_3b0){var args=dojo.isString(_3af)?{name:_3af}:_3af;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",_3af);return;}_3af=o.plugin;}if(arguments.length>1){this._plugins[_3b0]=_3af;}else{this._plugins.push(_3af);}_3af.setEditor(this);if(dojo.isFunction(_3af.setToolbar)){_3af.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;},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.isSafari&&cmd=="paste"&&!r){var su=dojo.string.substitute,_isM=navigator.userAgent.indexOf("Macintosh")!=-1;alert(su(this.commands.systemShortcut,[this.commands[cmd],su(this.commands[_isM?"appleKey":"ctrlKey"],["V"])]));}}catch(e){if(dojo.isMoz&&/copy|cut|paste/.test(cmd)){var sub=dojo.string.substitute,_3bb={cut:"X",copy:"C",paste:"V"},_3bc=navigator.userAgent.indexOf("Macintosh")!=-1;alert(sub(this.commands.systemShortcutFF,[this.commands[cmd],sub(this.commands[_3bc?"appleKey":"ctrlKey"],[_3bb[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 _3be=0;if(this._savedSelection&&dojo.isIE){_3be=dijit._curFocus!=this.editNode;}this.inherited(arguments);if(_3be){this._restoreSelection();}},_moveToBookmark:function(b){var _3c0=b;if(dojo.isIE){if(dojo.isArray(b)){_3c0=[];dojo.forEach(b,function(n){_3c0.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);_3c0=r;}dojo.withGlobal(this.window,"moveToBookmark",dijit,[_3c0]);},_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(_3c8){if(this._editTimer){clearTimeout(this._editTimer);}if(this._inEditing){this._endEditing(_3c8);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(_3cd){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("onKeyDown",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("onKeyDown",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(){this._restoreSelection();this.inherited(arguments);},onClick:function(){this.endEditing(true);this.inherited("onClick",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.Menu"]){dojo._hasResource["dijit.Menu"]=true;dojo.provide("dijit.Menu");dojo.declare("dijit.Menu",[dijit._Widget,dijit._Templated,dijit._KeyNavContainer],{constructor:function(){this._bindings=[];},templateString:"<table class=\"dijit dijitMenu dijitReset dijitMenuTable\" waiRole=\"menu\" dojoAttachEvent=\"onkeypress:_onKeyPress\">"+"<tbody class=\"dijitReset\" dojoAttachPoint=\"containerNode\"></tbody>"+"</table>",targetNodeIds:[],contextMenuForWindow:false,leftClickToOpen:false,parentMenu:null,popupDelay:500,_contextMenuWithMouse:false,postCreate:function(){if(this.contextMenuForWindow){this.bindDomNode(dojo.body());}else{dojo.forEach(this.targetNodeIds,this.bindDomNode,this);}this.connectKeyNavHandlers([dojo.keys.UP_ARROW],[dojo.keys.DOWN_ARROW]);},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_3d7){_3d7.startup();});this.startupKeyNavChildren();this.inherited(arguments);},onExecute:function(){},onCancel:function(_3d8){},_moveToPopup:function(evt){if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled){this.focusedChild._onClick(evt);}},_onKeyPress:function(evt){if(evt.ctrlKey||evt.altKey){return;}switch(evt.charOrCode){case dojo.keys.RIGHT_ARROW:this._moveToPopup(evt);dojo.stopEvent(evt);break;case dojo.keys.LEFT_ARROW:if(this.parentMenu){this.onCancel(false);}else{dojo.stopEvent(evt);}break;}},onItemHover:function(item){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){dijit.popup.close(item.popup);item._blur();this._stopPopupTimer();},onItemUnhover:function(item){},_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;}if(item.popup){if(!this.is_open){this._openPopup();}}else{this.onExecute();item.onClick(evt);}},_iframeContentWindow:function(_3e1){var win=dijit.getDocumentWindow(dijit.Menu._iframeContentDocument(_3e1))||dijit.Menu._iframeContentDocument(_3e1)["__parent__"]||(_3e1.name&&dojo.doc.frames[_3e1.name])||null;return win;},_iframeContentDocument:function(_3e3){var doc=_3e3.contentDocument||(_3e3.contentWindow&&_3e3.contentWindow.document)||(_3e3.name&&dojo.doc.frames[_3e3.name]&&dojo.doc.frames[_3e3.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(_3e8){var node=dojo.byId(_3e8);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 _3f2=dojo.coords(e.target,true);x=_3f2.x+10;y=_3f2.y+10;}var self=this;var _3f4=dijit.getFocus(this);function closeAndRestoreFocus(){dijit.focus(_3f4);dijit.popup.close(self);};dijit.popup.open({popup:this,x:x,y:y,onExecute:closeAndRestoreFocus,onCancel:closeAndRestoreFocus,orient:this.isLeftToRight()?"L":"R"});this.focus();this._onBlur=function(){this.inherited("_onBlur",arguments);dijit.popup.close(this);};},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;}},_openPopup:function(){this._stopPopupTimer();var _3f6=this.focusedChild;var _3f7=_3f6.popup;if(_3f7.isShowingNow){return;}_3f7.parentMenu=this;var self=this;dijit.popup.open({parent:this,popup:_3f7,around:_3f6.domNode,orient:this.isLeftToRight()?{"TR":"TL","TL":"TR"}:{"TL":"TR","TR":"TL"},onCancel:function(){dijit.popup.close(_3f7);_3f6.focus();self.currentPopup=null;}});this.currentPopup=_3f7;if(_3f7.focus){_3f7.focus();}},uninitialize:function(){dojo.forEach(this.targetNodeIds,this.unBindDomNode,this);this.inherited(arguments);}});dojo.declare("dijit.MenuItem",[dijit._Widget,dijit._Templated,dijit._Contained],{templateString:"<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" waiRole=\"menuitem\" tabIndex=\"-1\""+"dojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">"+"<td class=\"dijitReset\" waiRole=\"presentation\"><div class=\"dijitMenuItemIcon\" dojoAttachPoint=\"iconNode\"></div></td>"+"<td class=\"dijitReset dijitMenuItemLabel\" dojoAttachPoint=\"containerNode\"></td>"+"<td class=\"dijitReset dijitMenuArrowCell\" waiRole=\"presentation\">"+"<div dojoAttachPoint=\"arrowWrapper\" style=\"display: none\">"+"<div class=\"dijitMenuExpand\"></div>"+"<span class=\"dijitMenuExpandA11y\">+</span>"+"</div>"+"</td>"+"</tr>",attributeMap:dojo.mixin(dojo.clone(dijit._Widget.prototype.attributeMap),{label:{node:"containerNode",type:"innerHTML"},iconClass:{node:"iconNode",type:"class"}}),label:"",iconClass:"",disabled:false,_fillContent:function(_3f9){if(_3f9&&!("label" in this.params)){this.attr("label",_3f9.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(){this.getParent().onItemHover(this);},_onUnhover:function(){this.getParent().onItemUnhover(this);},_onClick:function(evt){this.getParent().onItemClick(this,evt);dojo.stopEvent(evt);},onClick:function(evt){},focus:function(){dojo.addClass(this.domNode,"dijitMenuItemHover");try{dijit.focus(this.focusNode);}catch(e){}},_blur:function(){dojo.removeClass(this.domNode,"dijitMenuItemHover");},setLabel:function(_3fc){dojo.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use attr('label', ...) instead.","","2.0");this.attr("label",_3fc);},setDisabled:function(_3fd){dojo.deprecated("dijit.Menu.setDisabled() is deprecated.  Use attr('disabled', bool) instead.","","2.0");this.attr("disabled",_3fd);},_setDisabledAttr:function(_3fe){this.disabled=_3fe;dojo[_3fe?"addClass":"removeClass"](this.domNode,"dijitMenuItemDisabled");dijit.setWaiState(this.focusNode,"disabled",_3fe?"true":"false");}});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";dojo.style(this.arrowWrapper,"display","");dijit.setWaiState(this.focusNode,"haspopup","true");},destroyDescendants:function(){if(this.popup){this.popup.destroyRecursive();delete this.popup;}this.inherited(arguments);}});dojo.declare("dijit.MenuSeparator",[dijit._Widget,dijit._Templated,dijit._Contained],{templateString:"<tr class=\"dijitMenuSeparator\"><td colspan=3>"+"<div class=\"dijitMenuSeparatorTop\"></div>"+"<div class=\"dijitMenuSeparatorBottom\"></div>"+"</td></tr>",postCreate:function(){dojo.setSelectable(this.domNode,false);},isFocusable:function(){return false;}});dojo.declare("dijit.CheckedMenuItem",dijit.MenuItem,{templateString:"<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" waiRole=\"menuitemcheckbox\" tabIndex=\"-1\""+"dojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">"+"<td class=\"dijitReset\" waiRole=\"presentation\"><div class=\"dijitMenuItemIcon dijitCheckedMenuItemIcon\" dojoAttachPoint=\"iconNode\">"+"<div class=\"dijitCheckedMenuItemIconChar\">&#10003;</div>"+"</div></td>"+"<td class=\"dijitReset dijitMenuItemLabel\" dojoAttachPoint=\"containerNode,labelNode\"></td>"+"<td class=\"dijitReset dijitMenuArrowCell\" waiRole=\"presentation\">"+"<div dojoAttachPoint=\"arrowWrapper\" style=\"display: none\">"+"<div class=\"dijitMenuExpand\"></div>"+"<span class=\"dijitMenuExpandA11y\">+</span>"+"</div>"+"</td>"+"</tr>",checked:false,_setCheckedAttr:function(_401){dojo.toggleClass(this.iconNode,"dijitCheckedMenuItemIconChecked",_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["dojo.regexp"]){dojo._hasResource["dojo.regexp"]=true;dojo.provide("dojo.regexp");dojo.regexp.escapeString=function(str,_405){return str.replace(/([\.$?*!=:|{}\(\)\[\]\\\/^])/g,function(ch){if(_405&&_405.indexOf(ch)!=-1){return ch;}return "\\"+ch;});};dojo.regexp.buildGroupRE=function(arr,re,_409){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("|"),_409);};dojo.regexp.group=function(_40c,_40d){return "("+(_40d?"?:":"")+_40c+")";};}if(!dojo._hasResource["dojo.number"]){dojo._hasResource["dojo.number"]=true;dojo.provide("dojo.number");dojo.number.format=function(_40e,_40f){_40f=dojo.mixin({},_40f||{});var _410=dojo.i18n.normalizeLocale(_40f.locale);var _411=dojo.i18n.getLocalization("dojo.cldr","number",_410);_40f.customs=_411;var _412=_40f.pattern||_411[(_40f.type||"decimal")+"Format"];if(isNaN(_40e)){return null;}return dojo.number._applyPattern(_40e,_412,_40f);};dojo.number._numberPatternRE=/[#0,]*[#0](?:\.0*#*)?/;dojo.number._applyPattern=function(_413,_414,_415){_415=_415||{};var _416=_415.customs.group;var _417=_415.customs.decimal;var _418=_414.split(";");var _419=_418[0];_414=_418[(_413<0)?1:0]||("-"+_419);if(_414.indexOf("%")!=-1){_413*=100;}else{if(_414.indexOf("‰")!=-1){_413*=1000;}else{if(_414.indexOf("¤")!=-1){_416=_415.customs.currencyGroup||_416;_417=_415.customs.currencyDecimal||_417;_414=_414.replace(/\u00a4{1,3}/,function(_41a){var prop=["symbol","currency","displayName"][_41a.length-1];return _415[prop]||_415.currency||"";});}else{if(_414.indexOf("E")!=-1){throw new Error("exponential notation not supported");}}}}var _41c=dojo.number._numberPatternRE;var _41d=_419.match(_41c);if(!_41d){throw new Error("unable to find a number expression in pattern: "+_414);}if(_415.fractional===false){_415.places=0;}return _414.replace(_41c,dojo.number._formatAbsolute(_413,_41d[0],{decimal:_417,group:_416,places:_415.places,round:_415.round}));};dojo.number.round=function(_41e,_41f,_420){var _421=String(_41e).split(".");var _422=(_421[1]&&_421[1].length)||0;if(_422>_41f){var _423=Math.pow(10,_41f);if(_420>0){_423*=10/_420;_41f++;}_41e=Math.round(_41e*_423)/_423;_421=String(_41e).split(".");_422=(_421[1]&&_421[1].length)||0;if(_422>_41f){_421[1]=_421[1].substr(0,_41f);_41e=Number(_421.join("."));}}return _41e;};dojo.number._formatAbsolute=function(_424,_425,_426){_426=_426||{};if(_426.places===true){_426.places=0;}if(_426.places===Infinity){_426.places=6;}var _427=_425.split(".");var _428=(_426.places>=0)?_426.places:(_427[1]&&_427[1].length)||0;if(!(_426.round<0)){_424=dojo.number.round(_424,_428,_426.round);}var _429=String(Math.abs(_424)).split(".");var _42a=_429[1]||"";if(_426.places){var _42b=dojo.isString(_426.places)&&_426.places.indexOf(",");if(_42b){_426.places=_426.places.substring(_42b+1);}_429[1]=dojo.string.pad(_42a.substr(0,_426.places),_426.places,"0",true);}else{if(_427[1]&&_426.places!==0){var pad=_427[1].lastIndexOf("0")+1;if(pad>_42a.length){_429[1]=dojo.string.pad(_42a,pad,"0",true);}var _42d=_427[1].length;if(_42d<_42a.length){_429[1]=_42a.substr(0,_42d);}}else{if(_429[1]){_429.pop();}}}var _42e=_427[0].replace(",","");pad=_42e.indexOf("0");if(pad!=-1){pad=_42e.length-pad;if(pad>_429[0].length){_429[0]=dojo.string.pad(_429[0],pad);}if(_42e.indexOf("#")==-1){_429[0]=_429[0].substr(_429[0].length-pad);}}var _42f=_427[0].lastIndexOf(",");var _430,_431;if(_42f!=-1){_430=_427[0].length-_42f-1;var _432=_427[0].substr(0,_42f);_42f=_432.lastIndexOf(",");if(_42f!=-1){_431=_432.length-_42f-1;}}var _433=[];for(var _434=_429[0];_434;){var off=_434.length-_430;_433.push((off>0)?_434.substr(off):_434);_434=(off>0)?_434.slice(0,off):"";if(_431){_430=_431;delete _431;}}_429[0]=_433.reverse().join(_426.group||",");return _429.join(_426.decimal||".");};dojo.number.regexp=function(_436){return dojo.number._parseInfo(_436).regexp;};dojo.number._parseInfo=function(_437){_437=_437||{};var _438=dojo.i18n.normalizeLocale(_437.locale);var _439=dojo.i18n.getLocalization("dojo.cldr","number",_438);var _43a=_437.pattern||_439[(_437.type||"decimal")+"Format"];var _43b=_439.group;var _43c=_439.decimal;var _43d=1;if(_43a.indexOf("%")!=-1){_43d/=100;}else{if(_43a.indexOf("‰")!=-1){_43d/=1000;}else{var _43e=_43a.indexOf("¤")!=-1;if(_43e){_43b=_439.currencyGroup||_43b;_43c=_439.currencyDecimal||_43c;}}}var _43f=_43a.split(";");if(_43f.length==1){_43f.push("-"+_43f[0]);}var re=dojo.regexp.buildGroupRE(_43f,function(_441){_441="(?:"+dojo.regexp.escapeString(_441,".")+")";return _441.replace(dojo.number._numberPatternRE,function(_442){var _443={signed:false,separator:_437.strict?_43b:[_43b,""],fractional:_437.fractional,decimal:_43c,exponent:false};var _444=_442.split(".");var _445=_437.places;if(_444.length==1||_445===0){_443.fractional=false;}else{if(_445===undefined){_445=_437.pattern?_444[1].lastIndexOf("0")+1:Infinity;}if(_445&&_437.fractional==undefined){_443.fractional=true;}if(!_437.places&&(_445<_444[1].length)){_445+=","+_444[1].length;}_443.places=_445;}var _446=_444[0].split(",");if(_446.length>1){_443.groupSize=_446.pop().length;if(_446.length>1){_443.groupSize2=_446.pop().length;}}return "("+dojo.number._realNumberRegexp(_443)+")";});},true);if(_43e){re=re.replace(/([\s\xa0]*)(\u00a4{1,3})([\s\xa0]*)/g,function(_447,_448,_449,_44a){var prop=["symbol","currency","displayName"][_449.length-1];var _44c=dojo.regexp.escapeString(_437[prop]||_437.currency||"");_448=_448?"[\\s\\xa0]":"";_44a=_44a?"[\\s\\xa0]":"";if(!_437.strict){if(_448){_448+="*";}if(_44a){_44a+="*";}return "(?:"+_448+_44c+_44a+")?";}return _448+_44c+_44a;});}return {regexp:re.replace(/[\xa0 ]/g,"[\\s\\xa0]"),group:_43b,decimal:_43c,factor:_43d};};dojo.number.parse=function(_44d,_44e){var info=dojo.number._parseInfo(_44e);var _450=(new RegExp("^"+info.regexp+"$")).exec(_44d);if(!_450){return NaN;}var _451=_450[1];if(!_450[1]){if(!_450[2]){return NaN;}_451=_450[2];info.factor*=-1;}_451=_451.replace(new RegExp("["+info.group+"\\s\\xa0"+"]","g"),"").replace(info.decimal,".");return Number(_451)*info.factor;};dojo.number._realNumberRegexp=function(_452){_452=_452||{};if(!("places" in _452)){_452.places=Infinity;}if(typeof _452.decimal!="string"){_452.decimal=".";}if(!("fractional" in _452)||/^0/.test(_452.places)){_452.fractional=[true,false];}if(!("exponent" in _452)){_452.exponent=[true,false];}if(!("eSigned" in _452)){_452.eSigned=[true,false];}var _453=dojo.number._integerRegexp(_452);var _454=dojo.regexp.buildGroupRE(_452.fractional,function(q){var re="";if(q&&(_452.places!==0)){re="\\"+_452.decimal;if(_452.places==Infinity){re="(?:"+re+"\\d+)?";}else{re+="\\d{"+_452.places+"}";}}return re;},true);var _457=dojo.regexp.buildGroupRE(_452.exponent,function(q){if(q){return "([eE]"+dojo.number._integerRegexp({signed:_452.eSigned})+")";}return "";});var _459=_453+_454;if(_454){_459="(?:(?:"+_459+")|(?:"+_454+"))";}return _459+_457;};dojo.number._integerRegexp=function(_45a){_45a=_45a||{};if(!("signed" in _45a)){_45a.signed=[true,false];}if(!("separator" in _45a)){_45a.separator="";}else{if(!("groupSize" in _45a)){_45a.groupSize=3;}}var _45b=dojo.regexp.buildGroupRE(_45a.signed,function(q){return q?"[-+]":"";},true);var _45d=dojo.regexp.buildGroupRE(_45a.separator,function(sep){if(!sep){return "(?:0|[1-9]\\d*)";}sep=dojo.regexp.escapeString(sep);if(sep==" "){sep="\\s";}else{if(sep==" "){sep="\\s\\xa0";}}var grp=_45a.groupSize,grp2=_45a.groupSize2;if(grp2){var _461="(?:0|[1-9]\\d{0,"+(grp2-1)+"}(?:["+sep+"]\\d{"+grp2+"})*["+sep+"]\\d{"+grp+"})";return ((grp-grp2)>0)?"(?:"+_461+"|(?:0|[1-9]\\d{0,"+(grp-1)+"}))":_461;}return "(?:0|[1-9]\\d{0,"+(grp-1)+"}(?:["+sep+"]\\d{"+grp+"})*)";},true);return _45b+_45d;};}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=\"inteterminateHighContrastImage\" class=\"dijitProgressBarIndeterminateHighContrastImage\"\n\t></img\n></div>\n",_indeterminateHighContrastImagePath:dojo.moduleUrl("dijit","themes/a11y/indeterminate_progress.gif"),postCreate:function(){this.inherited(arguments);this.inteterminateHighContrastImage.setAttribute("src",this._indeterminateHighContrastImagePath);this.update();},update:function(_462){dojo.mixin(this,_462||{});var tip=this.internalProgress;var _464=1,_465;if(this.indeterminate){_465="addClass";dijit.removeWaiState(tip,"valuenow");dijit.removeWaiState(tip,"valuemin");dijit.removeWaiState(tip,"valuemax");}else{_465="removeClass";if(String(this.progress).indexOf("%")!=-1){_464=Math.min(parseFloat(this.progress)/100,1);this.progress=_464*this.maximum;}else{this.progress=Math.min(this.progress,this.maximum);_464=this.progress/this.maximum;}var text=this.report(_464);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[_465](this.domNode,"dijitProgressBarIndeterminate");tip.style.width=(_464*100)+"%";this.onChange();},report:function(_467){return dojo.number.format(_467,{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\" 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.mixin(dojo.clone(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 _468=this.hideNode,_469=this.wipeNode;this._wipeIn=dojo.fx.wipeIn({node:this.wipeNode,duration:this.duration,beforeBegin:function(){_468.style.display="";}});this._wipeOut=dojo.fx.wipeOut({node:this.wipeNode,duration:this.duration,onEnd:function(){_468.style.display="none";}});this.inherited(arguments);},_setOpenAttr:function(open){if(this.open!==open){this.toggle();}},_setContentAttr:function(_46b){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(_46c){if(_46c&&_46c.status()=="playing"){_46c.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._loadCheck();this._setCss();},_setCss:function(){var _46e=["dijitClosed","dijitOpen"];var _46f=this.open;var node=this.titleBarNode||this.focusNode;dojo.removeClass(node,_46e[!_46f+0]);node.className+=" "+_46e[_46f+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();}}},_handleFocus:function(e){dojo[(e.type=="focus"?"addClass":"removeClass")](this.focusNode,this.baseClass+"Focused");},setTitle:function(_473){dojo.deprecated("dijit.TitlePane.setTitle() is deprecated.  Use attr('title', ...) instead.","","2.0");this.titleNode.innerHTML=_473;}});}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(_474,_475,_476){if(this.aroundNode&&this.aroundNode===_475){return;}if(this.fadeOut.status()=="playing"){this._onDeck=arguments;return;}this.containerNode.innerHTML=_474;this.domNode.style.top=(this.domNode.offsetTop+1)+"px";var _477={};var ltr=this.isLeftToRight();dojo.forEach((_476&&_476.length)?_476:dijit.Tooltip.defaultPosition,function(pos){switch(pos){case "after":_477[ltr?"BR":"BL"]=ltr?"BL":"BR";break;case "before":_477[ltr?"BL":"BR"]=ltr?"BR":"BL";break;case "below":_477[ltr?"BL":"BR"]=ltr?"TL":"TR";_477[ltr?"BR":"BL"]=ltr?"TR":"TL";break;case "above":default:_477[ltr?"TL":"TR"]=ltr?"BL":"BR";_477[ltr?"TR":"TL"]=ltr?"BR":"BL";break;}});var pos=dijit.placeOnScreenAroundElement(this.domNode,_475,_477,dojo.hitch(this,"orient"));dojo.style(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=true;this.aroundNode=_475;},orient:function(node,_47c,_47d){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"}[_47c+"-"+_47d];},_onShow:function(){if(dojo.isIE){this.domNode.style.filter="";}},hide:function(_47e){if(this._onDeck&&this._onDeck[1]==_47e){this._onDeck=null;}else{if(this.aroundNode===_47e){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(_47f,_480,_481){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.show(_47f,_480,_481);};dijit.hideTooltip=function(_482){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.hide(_482);};dojo.declare("dijit.Tooltip",dijit._Widget,{label:"",showDelay:400,connectId:[],position:[],postCreate:function(){dojo.addClass(this.domNode,"dijitTooltipData");this._connectNodes=[];dojo.forEach(this.connectId,function(id){var node=dojo.byId(id);if(node){this._connectNodes.push(node);dojo.forEach(["onMouseEnter","onMouseLeave","onFocus","onBlur"],function(_485){this.connect(node,_485.toLowerCase(),"_"+_485);},this);if(dojo.isIE){node.style.zoom=1;}}},this);},_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 _48b=e.target;this._showTimer=setTimeout(dojo.hitch(this,function(){this.open(_48b);}),this.showDelay);}},_onUnHover:function(e){if(this._focus){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}this.close();},open:function(_48d){_48d=_48d||this._connectNodes[0];if(!_48d){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}dijit.showTooltip(this.label||this.domNode.innerHTML,_48d,this.position);this._connectNode=_48d;},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,_48f,_490){var c=document.cookie;if(arguments.length==1){var _492=c.match(new RegExp("(?:^|; )"+dojo.regexp.escapeString(name)+"=([^;]*)"));return _492?decodeURIComponent(_492[1]):undefined;}else{_490=_490||{};var exp=_490.expires;if(typeof exp=="number"){var d=new Date();d.setTime(d.getTime()+exp*24*60*60*1000);exp=_490.expires=d;}if(exp&&exp.toUTCString){_490.expires=exp.toUTCString();}_48f=encodeURIComponent(_48f);var _495=name+"="+_48f,_496;for(_496 in _490){_495+="; "+_496;var _497=_490[_496];if(_497!==true){_495+="="+_497;}}document.cookie=_495;}};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"]){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\"\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\" dojoAttachEvent=\"onmouseenter:_onMouseEnter, onmouseleave:_onMouseLeave\"\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:_onNodeFocus\"></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);}},markProcessing:function(){this.state="LOADING";this._setExpando(true);},unmarkProcessing:function(){this._setExpando(false);},_updateItemClasses:function(item){var tree=this.tree,_49a=tree.model;if(tree._v10Compat&&item===_49a.root){item=null;}this.iconNode.className="dijitTreeIcon "+tree.getIconClass(item,this.isExpanded);this.labelNode.className="dijitTreeLabel "+tree.getLabelClass(item,this.isExpanded);},_updateLayout:function(){var _49b=this.getParent();if(!_49b||_49b.rowNode.style.display=="none"){dojo.addClass(this.domNode,"dijitTreeIsRoot");}else{dojo.toggleClass(this.domNode,"dijitTreeIsLast",!this.getNextSibling());}},_setExpando:function(_49c){var _49d=["dijitTreeExpandoLoading","dijitTreeExpandoOpened","dijitTreeExpandoClosed","dijitTreeExpandoLeaf"];var _49e=["*","-","+","*"];var idx=_49c?0:(this.isExpandable?(this.isExpanded?1:2):3);dojo.forEach(_49d,function(s){dojo.removeClass(this.expandoNode,s);},this);dojo.addClass(this.expandoNode,_49d[idx]);this.expandoNodeText.innerHTML=_49e[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");this.contentNode.className="dijitTreeContent dijitTreeContentExpanded";this._setExpando();this._updateItemClasses(this.item);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");this.contentNode.className="dijitTreeContent";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(_4a1){this.labelNode.innerHTML="";this.labelNode.appendChild(dojo.doc.createTextNode(_4a1));},setChildItems:function(_4a2){var tree=this.tree,_4a4=tree.model;this.getChildren().forEach(function(_4a5){dijit._Container.prototype.removeChild.call(this,_4a5);},this);this.state="LOADED";if(_4a2&&_4a2.length>0){this.isExpandable=true;dojo.forEach(_4a2,function(item){var id=_4a4.getIdentity(item),_4a8=tree._itemNodeMap[id],node=(_4a8&&!_4a8.getParent())?_4a8:this.tree._createTreeNode({item:item,tree:tree,isExpandable:_4a4.mayHaveChildren(item),label:tree.getLabel(item)});this.addChild(node);tree._itemNodeMap[id]=node;if(this.tree.persist){if(tree._openedItemIds[id]){tree._expandNode(node);}}},this);dojo.forEach(this.getChildren(),function(_4aa,idx){_4aa._updateLayout();});}else{this.isExpandable=false;}if(this._setExpando){this._setExpando(false);}if(this==tree.rootNode){var fc=this.tree.showRoot?this:this.getChildren()[0],_4ad=fc?fc.labelNode:this.domNode;_4ad.setAttribute("tabIndex","0");tree.lastFocused=fc;}},removeChild:function(node){this.inherited(arguments);var _4af=this.getChildren();if(_4af.length==0){this.isExpandable=false;this.collapse();}dojo.forEach(_4af,function(_4b0){_4b0._updateLayout();});},makeExpandable:function(){this.isExpandable=true;this._setExpando(false);},_onNodeFocus:function(evt){var node=dijit.getEnclosingWidget(evt.target);this.tree._onTreeFocus(node);},_onMouseEnter:function(evt){dojo.addClass(this.contentNode,"dijitTreeNodeHover");},_onMouseLeave:function(evt){dojo.removeClass(this.contentNode,"dijitTreeNodeHover");}});dojo.declare("dijit.Tree",[dijit._Widget,dijit._Templated],{store:null,model:null,query:null,label:"",showRoot:true,childrenAttr:["children"],openOnClick:false,templateString:"<div class=\"dijitTreeContainer\" waiRole=\"tree\"\n\tdojoAttachEvent=\"onclick:_onClick,onkeypress:_onKeyPress\">\n</div>\n",isExpandable:true,isTree:true,persist:true,dndController:null,dndParams:["onDndDrop","itemCreator","onDndCancel","checkAcceptance","checkItemAcceptance","dragThreshold"],onDndDrop:null,itemCreator:null,onDndCancel:null,checkAcceptance:null,checkItemAcceptance:null,dragThreshold:0,_publish:function(_4b5,_4b6){dojo.publish(this.id,[dojo.mixin({tree:this,event:_4b5},_4b6||{})]);},postMixInProperties:function(){this.tree=this;this._itemNodeMap={};if(!this.cookieName){this.cookieName=this.id+"SaveStateCookie";}},postCreate:function(){if(this.persist){var _4b7=dojo.cookie(this.cookieName);this._openedItemIds={};if(_4b7){dojo.forEach(_4b7.split(","),function(item){this._openedItemIds[item]=true;},this);}}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 _4b9={};for(var i=0;i<this.dndParams.length;i++){if(this[this.dndParams[i]]){_4b9[this.dndParams[i]]=this[this.dndParams[i]];}}this.dndController=new this.dndController(this,_4b9);}},_store2model:function(){this._v10Compat=true;dojo.deprecated("Tree: from version 2.0, should specify a model object rather than a store/query");var _4bb={id:this.id+"_ForestStoreModel",store:this.store,query:this.query,childrenAttrs:this.childrenAttr};if(this.params.mayHaveChildren){_4bb.mayHaveChildren=dojo.hitch(this,"mayHaveChildren");}if(this.params.getItemChildren){_4bb.getChildren=dojo.hitch(this,function(item,_4bd,_4be){this.getItemChildren((this._v10Compat&&item===this.model.root)?null:item,_4bd,_4be);});}this.model=new dijit.tree.ForestStoreModel(_4bb);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)});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(_4c3,_4c4){},getLabel:function(item){return this.model.getLabel(item);},getIconClass:function(item,_4c7){return (!item||this.model.mayHaveChildren(item))?(_4c7?"dijitFolderOpened":"dijitFolderClosed"):"dijitLeaf";},getLabelClass:function(item,_4c9){},_onKeyPress:function(e){if(e.altKey){return;}var dk=dojo.keys;var _4cc=dijit.getEnclosingWidget(e.target);if(!_4cc){return;}var key=e.charOrCode;if(typeof key=="string"){if(!e.altKey&&!e.ctrlKey&&!e.shiftKey&&!e.metaKey){this._onLetterKeyNav({node:_4cc,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:_4cc,item:_4cc.item});dojo.stopEvent(e);}}},_onEnterKey:function(_4cf){this._publish("execute",{item:_4cf.item,node:_4cf.node});this.onClick(_4cf.item,_4cf.node);},_onDownArrow:function(_4d0){var node=this._getNextNode(_4d0.node);if(node&&node.isTreeNode){this.focusNode(node);}},_onUpArrow:function(_4d2){var node=_4d2.node;var _4d4=node.getPreviousSibling();if(_4d4){node=_4d4;while(node.isExpandable&&node.isExpanded&&node.hasChildren()){var _4d5=node.getChildren();node=_4d5[_4d5.length-1];}}else{var _4d6=node.getParent();if(!(!this.showRoot&&_4d6===this.rootNode)){node=_4d6;}}if(node&&node.isTreeNode){this.focusNode(node);}},_onRightArrow:function(_4d7){var node=_4d7.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(_4d9){var node=_4d9.node;if(node.isExpandable&&node.isExpanded){this._collapseNode(node);}else{var _4db=node.getParent();if(_4db&&_4db.isTreeNode&&!(!this.showRoot&&_4db===this.rootNode)){this.focusNode(_4db);}}},_onHomeKey:function(){var node=this._getRootOrFirstNode();if(node){this.focusNode(node);}},_onEndKey:function(_4dd){var node=this;while(node.isExpanded){var c=node.getChildren();node=c[c.length-1];}if(node&&node.isTreeNode){this.focusNode(node);}},_onLetterKeyNav:function(_4e0){var node=_4e0.node,_4e2=node,key=_4e0.key;do{node=this._getNextNode(node);if(!node){node=this._getRootOrFirstNode();}}while(node!==_4e2&&(node.label.charAt(0).toLowerCase()!=key));if(node&&node.isTreeNode){if(node!==_4e2){this.focusNode(node);}}},_onClick:function(e){var _4e5=e.target;var _4e6=dijit.getEnclosingWidget(_4e5);if(!_4e6||!_4e6.isTreeNode){return;}if((this.openOnClick&&_4e6.isExpandable)||(_4e5==_4e6.expandoNode||_4e5==_4e6.expandoNodeText)){if(_4e6.isExpandable){this._onExpandoClick({node:_4e6});}}else{this._publish("execute",{item:_4e6.item,node:_4e6});this.onClick(_4e6.item,_4e6);this.focusNode(_4e6);}dojo.stopEvent(e);},_onExpandoClick:function(_4e7){var node=_4e7.node;this.focusNode(node);if(node.isExpanded){this._collapseNode(node);}else{this._expandNode(node);}},onClick: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 _4f0=node.getNextSibling();if(_4f0){return _4f0;}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(this.persist&&node.item){delete this._openedItemIds[this.model.getIdentity(node.item)];this._saveState();}}},_expandNode:function(node){if(!node.isExpandable){return;}var _4f3=this.model,item=node.item;switch(node.state){case "LOADING":return;case "UNCHECKED":node.markProcessing();var _4f5=this;_4f3.getChildren(item,function(_4f6){node.unmarkProcessing();node.setChildItems(_4f6);_4f5._expandNode(node);},function(err){console.error(_4f5,": error loading root children: ",err);});break;default:node.expand();this.onOpen(node.item,node);if(this.persist&&item){this._openedItemIds[_4f3.getIdentity(item)]=true;this._saveState();}}},blurNode:function(){var node=this.lastFocused;if(!node){return;}var _4f9=node.labelNode;dojo.removeClass(_4f9,"dijitTreeLabelFocused");_4f9.setAttribute("tabIndex","-1");dijit.setWaiState(_4f9,"selected",false);this.lastFocused=null;},focusNode:function(node){node.labelNode.focus();},_onBlur:function(){this.inherited(arguments);if(this.lastFocused){var _4fb=this.lastFocused.labelNode;dojo.removeClass(_4fb,"dijitTreeLabelFocused");}},_onTreeFocus:function(node){if(node){if(node!=this.lastFocused){this.blurNode();}var _4fd=node.labelNode;_4fd.setAttribute("tabIndex","0");dijit.setWaiState(_4fd,"selected",true);dojo.addClass(_4fd,"dijitTreeLabelFocused");this.lastFocused=node;}},_onItemDelete:function(item){var _4ff=this.model.getIdentity(item);var node=this._itemNodeMap[_4ff];if(node){var _501=node.getParent();if(_501){_501.removeChild(node);}delete this._itemNodeMap[_4ff];node.destroyRecursive();}},_onItemChange:function(item){var _503=this.model,_504=_503.getIdentity(item),node=this._itemNodeMap[_504];if(node){node.setLabelNode(this.getLabel(item));node._updateItemClasses(item);}},_onItemChildrenChange:function(_506,_507){var _508=this.model,_509=_508.getIdentity(_506),_50a=this._itemNodeMap[_509];if(_50a){_50a.setChildItems(_507);}},_onItemDelete:function(item){var _50c=this.model,_50d=_50c.getIdentity(item),node=this._itemNodeMap[_50d];if(node){node.destroyRecursive();delete this._itemNodeMap[_50d];}},_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);}});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 _513=this.store;if(!_513.getFeatures()["dojo.data.api.Identity"]){throw new Error("dijit.Tree: store must support dojo.data.Identity");}if(_513.getFeatures()["dojo.data.api.Notification"]){this.connects=this.connects.concat([dojo.connect(_513,"onNew",this,"_onNewItem"),dojo.connect(_513,"onDelete",this,"_onDeleteItem"),dojo.connect(_513,"onSet",this,"_onSetItem")]);}},destroy:function(){dojo.forEach(this.connects,dojo.disconnect);},getRoot:function(_514,_515){if(this.root){_514(this.root);}else{this.store.fetch({query:this.query,onComplete:dojo.hitch(this,function(_516){if(_516.length!=1){throw new Error(this.declaredClass+": query "+dojo.toJson(this.query)+" returned "+_516.length+" items, but must return exactly one item");}this.root=_516[0];_514(this.root);}),onError:_515});}},mayHaveChildren:function(item){return dojo.some(this.childrenAttrs,function(attr){return this.store.hasAttribute(item,attr);},this);},getChildren:function(_519,_51a,_51b){var _51c=this.store;var _51d=[];for(var i=0;i<this.childrenAttrs.length;i++){var vals=_51c.getValues(_519,this.childrenAttrs[i]);_51d=_51d.concat(vals);}var _520=0;dojo.forEach(_51d,function(item){if(!_51c.isItemLoaded(item)){_520++;}});if(_520==0){_51a(_51d);}else{var _522=function _522(item){if(--_520==0){_51a(_51d);}};dojo.forEach(_51d,function(item){if(!_51c.isItemLoaded(item)){_51c.loadItem({item:item,onItem:_522,onError:_51b});}});}},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,_528){var _529={parent:_528,attribute:this.childrenAttrs[0]};return this.store.newItem(args,_529);},pasteItem:function(_52a,_52b,_52c,_52d){var _52e=this.store,_52f=this.childrenAttrs[0];if(_52b){dojo.forEach(this.childrenAttrs,function(attr){if(_52e.containsValue(_52b,attr,_52a)){if(!_52d){var _531=dojo.filter(_52e.getValues(_52b,attr),function(x){return x!=_52a;});_52e.setValues(_52b,attr,_531);}_52f=attr;}});}if(_52c){_52e.setValues(_52c,_52f,_52e.getValues(_52c,_52f).concat(_52a));}},onChange:function(item){},onChildrenChange:function(_534,_535){},onDelete:function(_536,_537){},_onNewItem:function(item,_539){if(!_539){return;}this.getChildren(_539.item,dojo.hitch(this,function(_53a){this.onChildrenChange(_539.item,_53a);}));},_onDeleteItem:function(item){this.onDelete(item);},_onSetItem:function(item,_53d,_53e,_53f){if(dojo.indexOf(this.childrenAttrs,_53d)!=-1){this.getChildren(item,dojo.hitch(this,function(_540){this.onChildrenChange(item,_540);}));}else{this.onChange(item);}}});dojo.declare("dijit.tree.ForestStoreModel",dijit.tree.TreeStoreModel,{rootId:"$root$",rootLabel:"ROOT",query:null,constructor:function(_541){this.root={store:this,root:true,id:_541.rootId,label:_541.rootLabel,children:_541.rootChildren};},mayHaveChildren:function(item){return item===this.root||this.inherited(arguments);},getChildren:function(_543,_544,_545){if(_543===this.root){if(this.root.children){_544(this.root.children);}else{this.store.fetch({query:this.query,onComplete:dojo.hitch(this,function(_546){this.root.children=_546;_544(_546);}),onError:_545});}}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,_54a){if(_54a===this.root){this.onNewRootItem(args);return this.store.newItem(args);}else{return this.inherited(arguments);}},onNewRootItem:function(args){},pasteItem:function(_54c,_54d,_54e,_54f){if(_54d===this.root){if(!_54f){this.onLeaveRoot(_54c);}}dijit.tree.TreeStoreModel.prototype.pasteItem.call(this,_54c,_54d===this.root?null:_54d,_54e===this.root?null:_54e);if(_54e===this.root){this.onAddToRoot(_54c);}},onAddToRoot:function(item){},onLeaveRoot:function(item){},_requeryTop:function(){var _552=this.root.children||[];this.store.fetch({query:this.query,onComplete:dojo.hitch(this,function(_553){this.root.children=_553;if(_552.length!=_553.length||dojo.some(_552,function(item,idx){return _553[idx]!=item;})){this.onChildrenChange(this.root,_553);}})});},_onNewItem:function(item,_557){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.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' name=\"${name}\"\n\tdojoAttachEvent='onmouseenter:_onMouse,onmouseleave:_onMouse,onfocus:_onMouse,onblur:_onMouse,onkeypress:_onKeyPress'\n\tautocomplete=\"off\" type=\"${type}\"\n\t/>\n",baseClass:"dijitTextBox",attributeMap:dojo.mixin(dojo.clone(dijit.form._FormValueWidget.prototype.attributeMap),{maxLength:"focusNode"}),_getValueAttr:function(){return this.parse(this.attr("displayedValue"),this.constraints);},_setValueAttr:function(_559,_55a,_55b){var _55c;if(_559!==undefined){_55c=this.filter(_559);if(_55c!==null&&((typeof _55c!="number")||!isNaN(_55c))){if(typeof _55b!="string"){_55b=this.format(_55c,this.constraints);}}else{_55b="";}}if(_55b!=null&&_55b!=undefined){this.textbox.value=_55b;}dijit.form.TextBox.superclass._setValueAttr.call(this,_55c,_55a);},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(_55d){dojo.deprecated(this.declaredClass+"::setDisplayedValue() is deprecated. Use attr('displayedValue', ...) instead.","","2.0");this.attr("displayedValue",_55d);},_setDisplayedValueAttr:function(_55e){this.textbox.value=_55e;this._setValueAttr(this.attr("value"));},format:function(_55f,_560){return ((_55f==null||_55f==undefined)?"":(_55f.toString?_55f.toString():_55f));},parse:function(_561,_562){return _561;},postCreate:function(){this.textbox.setAttribute("value",this.textbox.value);this.inherited(arguments);this._layoutHack();},filter:function(val){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"),(this.isValid?this.isValid():true));},_onBlur:function(){this._setBlurValue();this.inherited(arguments);}});dijit.selectInputText=function(_565,_566,stop){var _568=dojo.global;var _569=dojo.doc;_565=dojo.byId(_565);if(isNaN(_566)){_566=0;}if(isNaN(stop)){stop=_565.value?_565.value.length:0;}_565.focus();if(_569["selection"]&&dojo.body()["createTextRange"]){if(_565.createTextRange){var _56a=_565.createTextRange();with(_56a){collapse(true);moveStart("character",_566);moveEnd("character",stop);select();}}}else{if(_568["getSelection"]){var _56b=_568.getSelection();if(_565.setSelectionRange){_565.setSelectionRange(_566,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(_56c){},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 _56d={ondijitclick:"_onClick",onmouseover:"_onMouseOver",onmouseout:"_onMouseOut",onfocus:"_onMouseOver",onblur:"_onMouseOut"};for(var name in _56d){this.connect(this.displayNode,name,_56d[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(_56f){dojo.deprecated("dijit.InlineEditBox.setDisabled() is deprecated.  Use attr('disabled', bool) instead.","","2.0");this.attr("disabled",_56f);},_setDisabledAttr:function(_570){this.disabled=_570;dijit.setWaiState(this.domNode,"disabled",_570);},_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 _572=(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 _573=dojo.doc.createElement("span");dojo.place(_573,this.domNode,"before");var ew=this.editWidget=new dijit._InlineEditor({value:dojo.trim(_572),autoSave:this.autoSave,buttonSave:this.buttonSave,buttonCancel:this.buttonCancel,renderAsHtml:this.renderAsHtml,editor:this.editor,editorParams:this.editorParams,style:dojo.getComputedStyle(this.displayNode),save:dojo.hitch(this,"save"),cancel:dojo.hitch(this,"cancel"),width:this.width},_573);var ews=ew.domNode.style;this.displayNode.style.display="none";ews.position="static";ews.visibility="visible";this.domNode=ew.domNode;setTimeout(function(){if(ew.editWidget._resetValue===undefined){ew.editWidget._resetValue=ew.getValue();}ew.focus();},100);},_showText:function(_576){this.displayNode.style.display="";var ew=this.editWidget;var ews=ew.domNode.style;ews.position="absolute";ews.visibility="hidden";this.domNode=this.displayNode;if(_576){dijit.focus(this.displayNode);}ews.display="none";setTimeout(function(){ew.destroy();delete ew;if(dojo.isIE){dijit.focus(dijit.getFocus());}},1000);},save:function(_579){if(this.disabled||!this.editing){return;}this.editing=false;var _57a=this.editWidget.getValue()+"";this.attr("value",this.renderAsHtml?_57a:_57a.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;").replace(/\n/g,"<br>"));this.onChange(_57a);this._showText(_579);},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(_57d){this.editing=false;this.onCancel();this._showText(_57d);}});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 _580=this.style;var _581="line-height:"+_580.lineHeight+";";dojo.forEach(["Weight","Family","Size","Style"],function(prop){_581+="font-"+prop+":"+_580["font"+prop]+";";},this);dojo.forEach(["marginTop","marginBottom","marginLeft","marginRight"],function(prop){this.domNode.style[prop]=_580[prop];},this);if(this.width=="100%"){_581+="width:100%;";this.domNode.style.display="block";}else{_581+="width:"+(this.width+(Number(this.width)==this.width?"px":""))+";";}this.editorParams.style=_581;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");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){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 _587=this;setTimeout(function(){_587.saveButton.attr("disabled",_587.getValue()==_587.editWidget._resetValue);},100);}},_onBlur:function(){this.inherited(arguments);if(this._exitInProgress){return;}if(this.autoSave){this._exitInProgress=true;if(this.getValue()==this.editWidget._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.editWidget._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}\" name=\"${name}\"\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(_588){if(typeof _588=="string"){this.value=_588;dojo.attr(this.focusNode,"value",_588);_588=true;}if(this._created){this.attr("checked",_588);}},_getValueAttr:function(){return (this.checked?this.value:false);},postMixInProperties:function(){if(this.value==""){this.value="on";}this.inherited(arguments);},_fillContent:function(_589){},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(_58a){this.inherited(arguments);if(!this._created){return;}if(_58a){var _58b=this;dojo.query("INPUT[type=radio][name="+this.name+"]",this.focusNode.form||dojo.doc).forEach(function(_58c){if(_58c!=_58b.focusNode&&_58c.form==_58b.focusNode.form){var _58d=dijit.getEnclosingWidget(_58c);if(_58d&&_58d.checked){_58d.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' dojoAttachEvent='onfocus:_update,onkeyup:_update,onblur:_onMouse,onkeypress:_onKeyPress' autocomplete=\"off\"\n\t\t\ttype='${type}' name='${name}'\n\t\t/></div\n\t></div\n></div>\n",baseClass:"dijitTextBox",required:false,promptMessage:"",invalidMessage:"$_unset_$",constraints:{},regExp:".*",regExpGen:function(_58f){return this.regExp;},state:"",tooltipPosition:[],_setValueAttr:function(){this.inherited(arguments);this.validate(this._focused);},validator:function(_590,_591){return (new RegExp("^(?:"+this.regExpGen(_591)+")"+(this.required?"":"?")+"$")).test(_590)&&(!this.required||!this._isEmpty(_590))&&(this._isEmpty(_590)||this.parse(_590,_591)!==undefined);},_isValidSubset:function(){return this.textbox.value.search(this._partialre)==0;},isValid:function(_592){return this.validator(this.textbox.value,this.constraints);},_isEmpty:function(_593){return /^\s*$/.test(_593);},getErrorMessage:function(_594){return this.invalidMessage;},getPromptMessage:function(_595){return this.promptMessage;},_maskValidSubsetError:true,validate:function(_596){var _597="";var _598=this.disabled||this.isValid(_596);if(_598){this._maskValidSubsetError=true;}var _599=!_598&&_596&&this._isValidSubset();var _59a=this._isEmpty(this.textbox.value);this.state=(_598||(!this._hasBeenBlurred&&_59a)||_599)?"":"Error";if(this.state=="Error"){this._maskValidSubsetError=false;}this._setStateClass();dijit.setWaiState(this.focusNode,"invalid",_598?"false":"true");if(_596){if(_59a){_597=this.getPromptMessage(true);}if(!_597&&(this.state=="Error"||(_599&&!this._maskValidSubsetError))){_597=this.getErrorMessage(true);}}this.displayMessage(_597);return _598;},_message:"",displayMessage:function(_59b){if(this._message==_59b){return;}this._message=_59b;dijit.hideTooltip(this.domNode);if(_59b){dijit.showTooltip(_59b,this.domNode,this.tooltipPosition);}},_refreshState:function(){this.validate(this._focused);},_update:function(e){this._refreshState();this._onMouse(e);},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 _59e="";if(p!=".*"){this.regExp.replace(/\\.|\[\]|\[.*?[^\\]{1}\]|\{.*?\}|\(\?[=:!]|./g,function(re){switch(re.charAt(0)){case "{":case "+":case "?":case "*":case "^":case "$":case "|":case "(":_59e+=re;break;case ")":_59e+="|$)";break;default:_59e+="(?:"+re+"|$)";break;}});}try{"".search(_59e);}catch(e){_59e=this.regExp;}this._partialre="^(?:"+_59e+")$";},_setDisabledAttr:function(_5a0){this.inherited(arguments);if(this.valueNode){this.valueNode.disabled=_5a0;}this._refreshState();},_setRequiredAttr:function(_5a1){this.required=_5a1;dijit.setWaiState(this.focusNode,"required",_5a1);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);}});dojo.declare("dijit.form.MappedTextBox",dijit.form.ValidationTextBox,{serialize:function(val,_5a5){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);var _5a7=this.textbox;var _5a8=(this.valueNode=dojo.doc.createElement("input"));_5a8.setAttribute("type",_5a7.type);dojo.style(_5a8,"display","none");this.valueNode.name=this.textbox.name;dojo.place(_5a8,_5a7,"after");this.textbox.name=this.textbox.name+"_displayed_";this.textbox.removeAttribute("name");},_setDisabledAttr:function(_5a9){this.inherited(arguments);dojo.attr(this.valueNode,"disabled",_5a9);}});dojo.declare("dijit.form.RangeBoundTextBox",dijit.form.MappedTextBox,{rangeMessage:"",rangeCheck:function(_5aa,_5ab){var _5ac="min" in _5ab;var _5ad="max" in _5ab;if(_5ac||_5ad){return (!_5ac||this.compare(_5aa,_5ab.min)>=0)&&(!_5ad||this.compare(_5aa,_5ab.max)<=0);}return true;},isInRange:function(_5ae){return this.rangeCheck(this.attr("value"),this.constraints);},_isDefinitelyOutOfRange:function(){var val=this.attr("value");var _5b0=false;var _5b1=false;if("min" in this.constraints){var min=this.constraints.min;val=this.compare(val,((typeof min=="number")&&min>=0&&val!=0)?0:min);_5b0=(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);_5b1=(typeof val=="number")&&val>0;}return _5b0||_5b1;},_isValidSubset:function(){return this.inherited(arguments)&&!this._isDefinitelyOutOfRange();},isValid:function(_5b4){return this.inherited(arguments)&&((this._isEmpty(this.textbox.value)&&!this.required)||this.isInRange(_5b4));},getErrorMessage:function(_5b5){if(dijit.form.RangeBoundTextBox.superclass.isValid.call(this,false)&&!this.isInRange(_5b5)){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(_5b6,_5b7){dijit.setWaiState(this.focusNode,"valuenow",_5b6);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 ret=0;if(a>b||typeof a==="undefined"||a===null){ret=1;}else{if(a<b||typeof b==="undefined"||b===null){ret=-1;}}return ret;};dojo.data.util.sorter.createSortFunction=function(_5bb,_5bc){var _5bd=[];function createSortFunction(attr,dir){return function(_5c0,_5c1){var a=_5bc.getValue(_5c0,attr);var b=_5bc.getValue(_5c1,attr);var _5c4=null;if(_5bc.comparatorMap){if(typeof attr!=="string"){attr=_5bc.getIdentity(attr);}_5c4=_5bc.comparatorMap[attr]||dojo.data.util.sorter.basicComparator;}_5c4=_5c4||dojo.data.util.sorter.basicComparator;return dir*_5c4(a,b);};};var _5c5;for(var i=0;i<_5bb.length;i++){_5c5=_5bb[i];if(_5c5.attribute){var _5c7=(_5c5.descending)?-1:1;_5bd.push(createSortFunction(_5c5.attribute,_5c7));}}return function(rowA,rowB){var i=0;while(i<_5bd.length){var ret=_5bd[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(_5cc){_5cc=_5cc||{};if(!_5cc.store){_5cc.store=this;}var self=this;var _5ce=function(_5cf,_5d0){if(_5d0.onError){var _5d1=_5d0.scope||dojo.global;_5d0.onError.call(_5d1,_5cf,_5d0);}};var _5d2=function(_5d3,_5d4){var _5d5=_5d4.abort||null;var _5d6=false;var _5d7=_5d4.start?_5d4.start:0;var _5d8=(_5d4.count&&(_5d4.count!==Infinity))?(_5d7+_5d4.count):_5d3.length;_5d4.abort=function(){_5d6=true;if(_5d5){_5d5.call(_5d4);}};var _5d9=_5d4.scope||dojo.global;if(!_5d4.store){_5d4.store=self;}if(_5d4.onBegin){_5d4.onBegin.call(_5d9,_5d3.length,_5d4);}if(_5d4.sort){_5d3.sort(dojo.data.util.sorter.createSortFunction(_5d4.sort,self));}if(_5d4.onItem){for(var i=_5d7;(i<_5d3.length)&&(i<_5d8);++i){var item=_5d3[i];if(!_5d6){_5d4.onItem.call(_5d9,item,_5d4);}}}if(_5d4.onComplete&&!_5d6){var _5dc=null;if(!_5d4.onItem){_5dc=_5d3.slice(_5d7,_5d8);}_5d4.onComplete.call(_5d9,_5dc,_5d4);}};this._fetchItems(_5cc,_5d2,_5ce);return _5cc;};}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(_5dd,_5de){var rxp="^";var c=null;for(var i=0;i<_5dd.length;i++){c=_5dd.charAt(i);switch(c){case "\\":rxp+=c;i++;rxp+=_5dd.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(_5de){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\" name=\"${name}\" class='dijitReset'\n\t\t\tdojoAttachEvent=\"onkeypress:_onKeyPress, onfocus:_update, 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(_5e2){var pos=0;if(typeof (_5e2.selectionStart)=="number"){pos=_5e2.selectionStart;}else{if(dojo.isIE){var tr=dojo.doc.selection.createRange().duplicate();var ntr=_5e2.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(_5e6,_5e7){_5e7=parseInt(_5e7);dijit.selectInputText(_5e6,_5e7,_5e7);},_setDisabledAttr:function(_5e8){dijit.setWaiState(this.comboNode,"disabled",_5e8);},_onKeyPress:function(evt){var key=evt.charOrCode;if(evt.altKey||(evt.ctrlKey&&(key!="x"&&key!="v"))||evt.key==dojo.keys.SHIFT){return;}var _5eb=false;var pw=this._popupWidget;var dk=dojo.keys;if(this._isShowingNow){pw.handleKey(key);}switch(key){case dk.PAGE_DOWN:case dk.DOWN_ARROW:if(!this._isShowingNow||this._prev_key_esc){this._arrowPressed();_5eb=true;}else{this._announceOption(pw.getHighlightedOption());}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(pw.getHighlightedOption());}dojo.stopEvent(evt);this._prev_key_backspace=false;this._prev_key_esc=false;break;case dk.ENTER:var _5ee;if(this._isShowingNow&&(_5ee=pw.getHighlightedOption())){if(_5ee==pw.nextButton){this._nextSearch(1);dojo.stopEvent(evt);break;}else{if(_5ee==pw.previousButton){this._nextSearch(-1);dojo.stopEvent(evt);break;}}}else{this._setDisplayedValueAttr(this.attr("displayedValue"),true);}evt.preventDefault();case dk.TAB:var _5ef=this.attr("displayedValue");if(pw&&(_5ef==pw._messages["previousMessage"]||_5ef==pw._messages["nextMessage"])){break;}if(this._isShowingNow){this._prev_key_backspace=false;this._prev_key_esc=false;if(pw.getHighlightedOption()){pw.attr("value",{target:pw.getHighlightedOption()});}this._lastQuery=null;this._hideResultList();}break;case " ":this._prev_key_backspace=false;this._prev_key_esc=false;if(this._isShowingNow&&pw.getHighlightedOption()){dojo.stopEvent(evt);this._selectOption();this._hideResultList();}else{_5eb=true;}break;case dk.ESCAPE:this._prev_key_backspace=false;this._prev_key_esc=true;if(this._isShowingNow){dojo.stopEvent(evt);this._hideResultList();}else{this.inherited(arguments);}break;case dk.DELETE:case dk.BACKSPACE:this._prev_key_esc=false;this._prev_key_backspace=true;_5eb=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;_5eb=typeof key=="string";}if(this.searchTimer){clearTimeout(this.searchTimer);}if(_5eb){setTimeout(dojo.hitch(this,"_startSearchFromInput"),1);}},_autoCompleteText:function(text){var fn=this.focusNode;dijit.selectInputText(fn,fn.value.length);var _5f2=this.ignoreCase?"toLowerCase":"substr";if(text[_5f2](0).indexOf(this.focusNode.value[_5f2](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(_5f4,_5f5){if(this.disabled||this.readOnly||(_5f5.query[this.searchAttr]!=this._lastQuery)){return;}this._popupWidget.clearResultList();if(!_5f4.length){this._hideResultList();return;}var _5f6=new String(this.store.getValue(_5f4[0],this.searchAttr));if(_5f6&&this.autoComplete&&!this._prev_key_backspace&&(_5f5.query[this.searchAttr]!="*")){this._autoCompleteText(_5f6);}_5f5._maxOptions=this._maxOptions;this._popupWidget.createOptions(_5f4,_5f5,dojo.hitch(this,"_getMenuLabelFromItem"));this._showResultList();if(_5f5.direction){if(1==_5f5.direction){this._popupWidget.highlightFirstOption();}else{if(-1==_5f5.direction){this._popupWidget.highlightLastOption();}}this._announceOption(this._popupWidget.getHighlightedOption());}},_showResultList:function(){this._hideResultList();var _5f7=this._popupWidget.getItems(),_5f8=Math.min(_5f7.length,this.maxListLength);this._arrowPressed();this.displayMessage("");dojo.style(this._popupWidget.domNode,{width:"",height:""});var best=this.open();var _5fa=dojo.marginBox(this._popupWidget.domNode);this._popupWidget.domNode.style.overflow=((best.h==_5fa.h)&&(best.w==_5fa.w))?"hidden":"auto";var _5fb=best.w;if(best.h<this._popupWidget.domNode.scrollHeight){_5fb+=16;}dojo.marginBox(this._popupWidget.domNode,{h:best.h,w:Math.max(_5fb,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 _5fc=this.attr("displayedValue");var pw=this._popupWidget;if(pw&&(_5fc==pw._messages["previousMessage"]||_5fc==pw._messages["nextMessage"])){this._setValueAttr(this._lastValueReported,true);}else{this.attr("displayedValue",_5fc);}},_onBlur:function(){this._hideResultList();this._arrowIdle();this.inherited(arguments);},_announceOption:function(node){if(node==null){return;}var _5ff;if(node==this._popupWidget.nextButton||node==this._popupWidget.previousButton){_5ff=node.innerHTML;}else{_5ff=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(_5ff);},_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 _606=this.id+"_popup";this._popupWidget=new dijit.form._ComboBoxMenu({onChange:dojo.hitch(this,this._selectOption),id:_606});dijit.removeWaiState(this.focusNode,"activedescendant");dijit.setWaiState(this.textbox,"owns",_606);}this.item=null;var _607=dojo.clone(this.query);this._lastInput=key;this._lastQuery=_607[this.searchAttr]=this._getQueryString(key);this.searchTimer=setTimeout(dojo.hitch(this,function(_608,_609){var _60a={queryOptions:{ignoreCase:this.ignoreCase,deep:true},query:_608,onBegin:dojo.hitch(this,"_setMaxOptions"),onComplete:dojo.hitch(this,"_openResultList"),onError:function(_60b){console.error("dijit.form.ComboBox: "+_60b);dojo.hitch(_609,"_hideResultList")();},start:0,count:this.pageSize};dojo.mixin(_60a,_609.fetchProperties);var _60c=_609.store.fetch(_60a);var _60d=function(_60e,_60f){_60e.start+=_60e.count*_60f;_60e.direction=_60f;this.store.fetch(_60e);};this._nextSearch=this._popupWidget.onPage=dojo.hitch(this,_60d,_60c);},_607,this),this.searchDelay);},_setMaxOptions:function(size,_611){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 _613=this.srcNodeRef;this.store=new dijit.form._ComboBoxDataStore(_613);if(!this.value||((typeof _613.selectedIndex=="number")&&_613.selectedIndex.toString()===this.value)){var item=this.store.fetchSelectedItem();if(item){this.value=this.store.getValue(item,this._getValueField());}}}},_postCreate:function(){var _615=dojo.query("label[for=\""+this.id+"\"]");if(_615.length){_615[0].id=(this.id+"_label");var cn=this.comboNode;dijit.setWaiState(cn,"labelledby",_615[0].id);}},uninitialize:function(){if(this._popupWidget){this._hideResultList();this._popupWidget.destroy();}},_getMenuLabelFromItem:function(item){var _618=this.store.getValue(item,this.labelAttr||this.searchAttr);var _619=this.labelType;if(this.highlightMatch!="none"&&this.labelType=="text"&&this._lastInput){_618=this.doHighlight(_618,this._escapeHtml(this._lastInput));_619="html";}return {html:_619=="html",label:_618};},doHighlight:function(_61a,find){var _61c="i"+(this.highlightMatch=="all"?"g":"");var _61d=this._escapeHtml(_61a);var ret=_61d.replace(new RegExp("^("+find+")",_61c),"<span class=\"dijitComboBoxHighlightMatch\">$1</span>");if(_61d==ret){ret=_61d.replace(new RegExp(" ("+find+")",_61c)," <span class=\"dijitComboBoxHighlightMatch\">$1</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'></li>"+"<li class='dijitMenuItem dijitMenuNextButton' dojoAttachPoint='nextButton'></li>"+"</ul>",_messages:null,postMixInProperties:function(){this._messages=dojo.i18n.getLocalization("dijit.form","ComboBox",this.lang);this.inherited("postMixInProperties",arguments);},_setValueAttr:function(_620){this.value=_620;this.onChange(_620);},onChange:function(_621){},onPage:function(_622){},postCreate:function(){this.previousButton.innerHTML=this._messages["previousMessage"];this.nextButton.innerHTML=this._messages["nextMessage"];this.inherited(arguments);},onClose:function(){this._blurOptionNode();},_createOption:function(item,_624){var _625=_624(item);var _626=dojo.doc.createElement("li");dijit.setWaiRole(_626,"option");if(_625.html){_626.innerHTML=_625.label;}else{_626.appendChild(dojo.doc.createTextNode(_625.label));}if(_626.innerHTML==""){_626.innerHTML="&nbsp;";}_626.item=item;return _626;},createOptions:function(_627,_628,_629){this.previousButton.style.display=(_628.start==0)?"none":"";dojo.attr(this.previousButton,"id",this.id+"_prev");dojo.forEach(_627,function(item,i){var _62c=this._createOption(item,_629);_62c.className="dijitReset dijitMenuItem";dojo.attr(_62c,"id",this.id+i);this.domNode.insertBefore(_62c,this.nextButton);},this);var _62d=false;if(_628._maxOptions&&_628._maxOptions!=-1){if((_628.start+_628.count)<_628._maxOptions){_62d=true;}else{if((_628.start+_628.count)>(_628._maxOptions-1)){if(_628.count==_627.length){_62d=true;}}}}else{if(_628.count==_627.length){_62d=true;}}this.nextButton.style.display=_62d?"":"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,"dijitMenuItemHover");}},_blurOptionNode:function(){if(this._highlighted_option){dojo.removeClass(this._highlighted_option,"dijitMenuItemHover");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 _63a=0;var _63b=this.domNode.scrollTop;var _63c=dojo.style(this.domNode,"height");if(!this.getHighlightedOption()){this._highlightNextOption();}while(_63a<_63c){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 _63d=this.domNode.scrollTop;_63a+=(_63d-_63b)*(up?-1:1);_63b=_63d;}},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(_640){dijit.form.ValidationTextBox.prototype._setDisabledAttr.apply(this,arguments);dijit.form.ComboBoxMixin.prototype._setDisabledAttr.apply(this,arguments);},_setValueAttr:function(_641,_642){if(!_641){_641="";}dijit.form.ValidationTextBox.prototype._setValueAttr.call(this,_641,_642);}});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,_646,_647){return (_646=="value")?item.value:(item.innerText||item.textContent||"");},isItemLoaded:function(_648){return true;},getFeatures:function(){return {"dojo.data.api.Read":true,"dojo.data.api.Identity":true};},_fetchItems:function(args,_64a,_64b){if(!args.query){args.query={};}if(!args.query.name){args.query.name="";}if(!args.queryOptions){args.queryOptions={};}var _64c=dojo.data.util.filter.patternToRegExp(args.query.name,args.queryOptions.ignoreCase),_64d=dojo.query("> option",this.root).filter(function(_64e){return (_64e.innerText||_64e.textContent||"").match(_64c);});if(args.sort){_64d.sort(dojo.data.util.sorter.createSortFunction(args.sort,this));}_64a(_64d,args);},close:function(_64f){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 _657={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 _658={CHF:5};var _659=_657[code],_65a=_658[code];if(typeof _659=="undefined"){_659=2;}if(typeof _65a=="undefined"){_65a=0;}return {places:_659,round:_65a};};}if(!dojo._hasResource["dojo.currency"]){dojo._hasResource["dojo.currency"]=true;dojo.provide("dojo.currency");dojo.currency._mixInDefaults=function(_65b){_65b=_65b||{};_65b.type="currency";var _65c=dojo.i18n.getLocalization("dojo.cldr","currency",_65b.locale)||{};var iso=_65b.currency;var data=dojo.cldr.monetary.getData(iso);dojo.forEach(["displayName","symbol","group","decimal"],function(prop){data[prop]=_65c[iso+"_"+prop];});data.fractional=[true,false];return dojo.mixin(data,_65b);};dojo.currency.format=function(_660,_661){return dojo.number.format(_660,dojo.currency._mixInDefaults(_661));};dojo.currency.regexp=function(_662){return dojo.number.regexp(dojo.currency._mixInDefaults(_662));};dojo.currency.parse=function(_663,_664){return dojo.number.parse(_663,dojo.currency._mixInDefaults(_664));};}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:"#.######"},_onFocus:function(){this._setValueAttr(this.attr("value"),false);this.inherited(arguments);},_formatter:dojo.number.format,format:function(_665,_666){if(typeof _665=="string"){return _665;}if(isNaN(_665)){return "";}if(this.editOptions&&this._focused){_666=dojo.mixin(dojo.mixin({},this.editOptions),this.constraints);}return this._formatter(_665,_666);},parse:dojo.number.parse,filter:function(_667){return (_667===null||_667===""||_667===undefined)?NaN:this.inherited(arguments);},serialize:function(_668,_669){return (typeof _668!="number"||isNaN(_668))?"":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(_66b){var _66c={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 _66d=dojo.cldr.supplemental._region(_66b);var dow=_66c[_66d];return (dow===undefined)?1:dow;};dojo.cldr.supplemental._region=function(_66f){_66f=dojo.i18n.normalizeLocale(_66f);var tags=_66f.split("-");var _671=tags[1];if(!_671){_671={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(_671.length==4){_671=tags[2];}}return _671;};dojo.cldr.supplemental.getWeekend=function(_672){var _673={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 _674={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 _675=dojo.cldr.supplemental._region(_672);var _676=_673[_675];var end=_674[_675];if(_676===undefined){_676=6;}if(end===undefined){end=0;}return {start:_676,end:end};};}if(!dojo._hasResource["dojo.date"]){dojo._hasResource["dojo.date"]=true;dojo.provide("dojo.date");dojo.date.getDaysInMonth=function(_678){var _679=_678.getMonth();var days=[31,28,31,30,31,30,31,31,30,31,30,31];if(_679==1&&dojo.date.isLeapYear(_678)){return 29;}return days[_679];};dojo.date.isLeapYear=function(_67b){var year=_67b.getFullYear();return !(year%400)||(!(year%4)&&!!(year%100));};dojo.date.getTimezoneName=function(_67d){var str=_67d.toString();var tz="";var _680;var pos=str.indexOf("(");if(pos>-1){tz=str.substring(++pos,str.indexOf(")"));}else{var pat=/([A-Z\/]+) \d{4}$/;if((_680=str.match(pat))){tz=_680[1];}else{str=_67d.toLocaleString();pat=/ ([A-Z\/]+)$/;if((_680=str.match(pat))){tz=_680[1];}}}return (tz=="AM"||tz=="PM")?"":tz;};dojo.date.compare=function(_683,_684,_685){_683=new Date(Number(_683));_684=new Date(Number(_684||new Date()));if(_685!=="undefined"){if(_685=="date"){_683.setHours(0,0,0,0);_684.setHours(0,0,0,0);}else{if(_685=="time"){_683.setFullYear(0,0,0);_684.setFullYear(0,0,0);}}}if(_683>_684){return 1;}if(_683<_684){return -1;}return 0;};dojo.date.add=function(date,_687,_688){var sum=new Date(Number(date));var _68a=false;var _68b="Date";switch(_687){case "day":break;case "weekday":var days,_68d;var mod=_688%5;if(!mod){days=(_688>0)?5:-5;_68d=(_688>0)?((_688-5)/5):((_688+5)/5);}else{days=mod;_68d=parseInt(_688/5);}var strt=date.getDay();var adj=0;if(strt==6&&_688>0){adj=1;}else{if(strt==0&&_688<0){adj=-1;}}var trgt=strt+days;if(trgt==0||trgt==6){adj=(_688>0)?2:-2;}_688=(7*_68d)+days+adj;break;case "year":_68b="FullYear";_68a=true;break;case "week":_688*=7;break;case "quarter":_688*=3;case "month":_68a=true;_68b="Month";break;case "hour":case "minute":case "second":case "millisecond":_68b="UTC"+_687.charAt(0).toUpperCase()+_687.substring(1)+"s";}if(_68b){sum["set"+_68b](sum["get"+_68b]()+_688);}if(_68a&&(sum.getDate()<date.getDate())){sum.setDate(0);}return sum;};dojo.date.difference=function(_692,_693,_694){_693=_693||new Date();_694=_694||"day";var _695=_693.getFullYear()-_692.getFullYear();var _696=1;switch(_694){case "quarter":var m1=_692.getMonth();var m2=_693.getMonth();var q1=Math.floor(m1/3)+1;var q2=Math.floor(m2/3)+1;q2+=(_695*4);_696=q2-q1;break;case "weekday":var days=Math.round(dojo.date.difference(_692,_693,"day"));var _69c=parseInt(dojo.date.difference(_692,_693,"week"));var mod=days%7;if(mod==0){days=_69c*5;}else{var adj=0;var aDay=_692.getDay();var bDay=_693.getDay();_69c=parseInt(days/7);mod=days%7;var _6a1=new Date(_692);_6a1.setDate(_6a1.getDate()+(_69c*7));var _6a2=_6a1.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 (_6a2+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 (_6a2+mod)<0:adj=2;}}}days+=adj;days-=(_69c*2);}_696=days;break;case "year":_696=_695;break;case "month":_696=(_693.getMonth()-_692.getMonth())+(_695*12);break;case "week":_696=parseInt(dojo.date.difference(_692,_693,"day")/7);break;case "day":_696/=24;case "hour":_696/=60;case "minute":_696/=60;case "second":_696/=1000;case "millisecond":_696*=_693.getTime()-_692.getTime();}return Math.round(_696);};}if(!dojo._hasResource["dojo.date.locale"]){dojo._hasResource["dojo.date.locale"]=true;dojo.provide("dojo.date.locale");(function(){function formatPattern(_6a3,_6a4,_6a5,_6a6){return _6a6.replace(/([a-z])\1*/ig,function(_6a7){var s,pad;var c=_6a7.charAt(0);var l=_6a7.length;var _6ac=["abbr","wide","narrow"];switch(c){case "G":s=_6a4[(l<4)?"eraAbbr":"eraNames"][_6a3.getFullYear()<0?0:1];break;case "y":s=_6a3.getFullYear();switch(l){case 1:break;case 2:if(!_6a5){s=String(s);s=s.substr(s.length-2);break;}default:pad=true;}break;case "Q":case "q":s=Math.ceil((_6a3.getMonth()+1)/3);pad=true;break;case "M":var m=_6a3.getMonth();if(l<3){s=m+1;pad=true;}else{var _6ae=["months","format",_6ac[l-3]].join("-");s=_6a4[_6ae][m];}break;case "w":var _6af=0;s=dojo.date.locale._getWeekOfYear(_6a3,_6af);pad=true;break;case "d":s=_6a3.getDate();pad=true;break;case "D":s=dojo.date.locale._getDayOfYear(_6a3);pad=true;break;case "E":var d=_6a3.getDay();if(l<3){s=d+1;pad=true;}else{var _6b1=["days","format",_6ac[l-3]].join("-");s=_6a4[_6b1][d];}break;case "a":var _6b2=(_6a3.getHours()<12)?"am":"pm";s=_6a4[_6b2];break;case "h":case "H":case "K":case "k":var h=_6a3.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=_6a3.getMinutes();pad=true;break;case "s":s=_6a3.getSeconds();pad=true;break;case "S":s=Math.round(_6a3.getMilliseconds()*Math.pow(10,l-3));pad=true;break;case "v":case "z":s=dojo.date.getTimezoneName(_6a3);if(s){break;}l=4;case "Z":var _6b4=_6a3.getTimezoneOffset();var tz=[(_6b4<=0?"+":"-"),dojo.string.pad(Math.floor(Math.abs(_6b4)/60),2),dojo.string.pad(Math.abs(_6b4)%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: "+_6a6);}if(pad){s=dojo.string.pad(s,l);}return s;});};dojo.date.locale.format=function(_6b6,_6b7){_6b7=_6b7||{};var _6b8=dojo.i18n.normalizeLocale(_6b7.locale);var _6b9=_6b7.formatLength||"short";var _6ba=dojo.date.locale._getGregorianBundle(_6b8);var str=[];var _6bc=dojo.hitch(this,formatPattern,_6b6,_6ba,_6b7.fullYear);if(_6b7.selector=="year"){var year=_6b6.getFullYear();if(_6b8.match(/^zh|^ja/)){year+="年";}return year;}if(_6b7.selector!="time"){var _6be=_6b7.datePattern||_6ba["dateFormat-"+_6b9];if(_6be){str.push(_processPattern(_6be,_6bc));}}if(_6b7.selector!="date"){var _6bf=_6b7.timePattern||_6ba["timeFormat-"+_6b9];if(_6bf){str.push(_processPattern(_6bf,_6bc));}}var _6c0=str.join(" ");return _6c0;};dojo.date.locale.regexp=function(_6c1){return dojo.date.locale._parseInfo(_6c1).regexp;};dojo.date.locale._parseInfo=function(_6c2){_6c2=_6c2||{};var _6c3=dojo.i18n.normalizeLocale(_6c2.locale);var _6c4=dojo.date.locale._getGregorianBundle(_6c3);var _6c5=_6c2.formatLength||"short";var _6c6=_6c2.datePattern||_6c4["dateFormat-"+_6c5];var _6c7=_6c2.timePattern||_6c4["timeFormat-"+_6c5];var _6c8;if(_6c2.selector=="date"){_6c8=_6c6;}else{if(_6c2.selector=="time"){_6c8=_6c7;}else{_6c8=_6c6+" "+_6c7;}}var _6c9=[];var re=_processPattern(_6c8,dojo.hitch(this,_buildDateTimeRE,_6c9,_6c4,_6c2));return {regexp:re,tokens:_6c9,bundle:_6c4};};dojo.date.locale.parse=function(_6cb,_6cc){var info=dojo.date.locale._parseInfo(_6cc);var _6ce=info.tokens,_6cf=info.bundle;var re=new RegExp("^"+info.regexp+"$",info.strict?"":"i");var _6d1=re.exec(_6cb);if(!_6d1){return null;}var _6d2=["abbr","wide","narrow"];var _6d3=[1970,0,1,0,0,0,0];var amPm="";var _6d5=dojo.every(_6d1,function(v,i){if(!i){return true;}var _6d8=_6ce[i-1];var l=_6d8.length;switch(_6d8.charAt(0)){case "y":if(l!=2&&_6cc.strict){_6d3[0]=v;}else{if(v<100){v=Number(v);var year=""+new Date().getFullYear();var _6db=year.substring(0,2)*100;var _6dc=Math.min(Number(year.substring(2,4))+20,99);var num=(v<_6dc)?_6db+v:_6db-100+v;_6d3[0]=num;}else{if(_6cc.strict){return false;}_6d3[0]=v;}}break;case "M":if(l>2){var _6de=_6cf["months-format-"+_6d2[l-3]].concat();if(!_6cc.strict){v=v.replace(".","").toLowerCase();_6de=dojo.map(_6de,function(s){return s.replace(".","").toLowerCase();});}v=dojo.indexOf(_6de,v);if(v==-1){return false;}}else{v--;}_6d3[1]=v;break;case "E":case "e":var days=_6cf["days-format-"+_6d2[l-3]].concat();if(!_6cc.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":_6d3[1]=0;case "d":_6d3[2]=v;break;case "a":var am=_6cc.am||_6cf.am;var pm=_6cc.pm||_6cf.pm;if(!_6cc.strict){var _6e4=/\./g;v=v.replace(_6e4,"").toLowerCase();am=am.replace(_6e4,"").toLowerCase();pm=pm.replace(_6e4,"").toLowerCase();}if(_6cc.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;}_6d3[3]=v;break;case "m":_6d3[4]=v;break;case "s":_6d3[5]=v;break;case "S":_6d3[6]=v;}return true;});var _6e5=+_6d3[3];if(amPm==="p"&&_6e5<12){_6d3[3]=_6e5+12;}else{if(amPm==="a"&&_6e5==12){_6d3[3]=0;}}var _6e6=new Date(_6d3[0],_6d3[1],_6d3[2],_6d3[3],_6d3[4],_6d3[5],_6d3[6]);if(_6cc.strict){_6e6.setFullYear(_6d3[0]);}var _6e7=_6ce.join("");if(!_6d5||(_6e7.indexOf("M")!=-1&&_6e6.getMonth()!=_6d3[1])||(_6e7.indexOf("d")!=-1&&_6e6.getDate()!=_6d3[2])){return null;}return _6e6;};function _processPattern(_6e8,_6e9,_6ea,_6eb){var _6ec=function(x){return x;};_6e9=_6e9||_6ec;_6ea=_6ea||_6ec;_6eb=_6eb||_6ec;var _6ee=_6e8.match(/(''|[^'])+/g);var _6ef=_6e8.charAt(0)=="'";dojo.forEach(_6ee,function(_6f0,i){if(!_6f0){_6ee[i]="";}else{_6ee[i]=(_6ef?_6ea:_6e9)(_6f0);_6ef=!_6ef;}});return _6eb(_6ee.join(""));};function _buildDateTimeRE(_6f2,_6f3,_6f4,_6f5){_6f5=dojo.regexp.escapeString(_6f5);if(!_6f4.strict){_6f5=_6f5.replace(" a"," ?a");}return _6f5.replace(/([a-z])\1*/ig,function(_6f6){var s;var c=_6f6.charAt(0);var l=_6f6.length;var p2="",p3="";if(_6f4.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=_6f4.am||_6f3.am||"AM";var pm=_6f4.pm||_6f3.pm||"PM";if(_6f4.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(_6f2){_6f2.push(_6f6);}return "("+s+")";}).replace(/[\xa0 ]/g,"[\\s\\xa0]");};})();(function(){var _6fe=[];dojo.date.locale.addCustomFormats=function(_6ff,_700){_6fe.push({pkg:_6ff,name:_700});};dojo.date.locale._getGregorianBundle=function(_701){var _702={};dojo.forEach(_6fe,function(desc){var _704=dojo.i18n.getLocalization(desc.pkg,desc.name,_701);_702=dojo.mixin(_702,_704);},this);return _702;};})();dojo.date.locale.addCustomFormats("dojo.cldr","gregorian");dojo.date.locale.getNames=function(item,type,use,_708){var _709;var _70a=dojo.date.locale._getGregorianBundle(_708);var _70b=[item,use,type];if(use=="standAlone"){var key=_70b.join("-");_709=_70a[key];if(_709[0]==1){_709=undefined;}}_70b[1]="format";return (_709||_70a[_70b.join("-")]).concat();};dojo.date.locale.isWeekend=function(_70d,_70e){var _70f=dojo.cldr.supplemental.getWeekend(_70e);var day=(_70d||new Date()).getDay();if(_70f.end<_70f.start){_70f.end+=7;if(day<_70f.start){day+=7;}}return day>=_70f.start&&day<=_70f.end;};dojo.date.locale._getDayOfYear=function(_711){return dojo.date.difference(new Date(_711.getFullYear(),0,1,_711.getHours()),_711)+1;};dojo.date.locale._getWeekOfYear=function(_712,_713){if(arguments.length==1){_713=0;}var _714=new Date(_712.getFullYear(),0,1).getDay();var adj=(_714-_713+7)%7;var week=Math.floor((dojo.date.locale._getDayOfYear(_712)+adj-1)/7);if(_714==_713){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<div class=\"dijitInline dijitCalendarIncrementControl dijitCalendarDecrease\"><span dojoAttachPoint=\"decreaseArrowNode\" class=\"dijitA11ySideArrow dijitCalendarIncrementControl dijitCalendarDecreaseInner\">-</span></div>\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<div class=\"dijitInline dijitCalendarIncrementControl dijitCalendarIncrease\"><span dojoAttachPoint=\"increaseArrowNode\" class=\"dijitA11ySideArrow dijitCalendarIncrementControl dijitCalendarIncreaseInner\">+</span></div>\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(_717){dojo.deprecated("dijit.Calendar:setValue() is deprecated.  Use attr('value', ...) instead.","","2.0");this.attr("value",_717);},_setValueAttr:function(_718){if(!this.value||dojo.date.compare(_718,this.value)){_718=new Date(_718);this.displayMonth=new Date(_718);if(!this.isDisabledDate(_718,this.lang)){this.value=_718;this.value.setHours(0,0,0,0);this.onChange(this.value);}this._populateGrid();}},_setText:function(node,text){while(node.firstChild){node.removeChild(node.firstChild);}node.appendChild(dojo.doc.createTextNode(text));},_populateGrid:function(){var _71b=this.displayMonth;_71b.setDate(1);var _71c=_71b.getDay();var _71d=dojo.date.getDaysInMonth(_71b);var _71e=dojo.date.getDaysInMonth(dojo.date.add(_71b,"month",-1));var _71f=new Date();var _720=this.value;var _721=dojo.cldr.supplemental.getFirstDayOfWeek(this.lang);if(_721>_71c){_721-=7;}dojo.query(".dijitCalendarDateTemplate",this.domNode).forEach(function(_722,i){i+=_721;var date=new Date(_71b);var _725,_726="dijitCalendar",adj=0;if(i<_71c){_725=_71e-_71c+i+1;adj=-1;_726+="Previous";}else{if(i>=(_71c+_71d)){_725=i-_71c-_71d+1;adj=1;_726+="Next";}else{_725=i-_71c+1;_726+="Current";}}if(adj){date=dojo.date.add(date,"month",adj);}date.setDate(_725);if(!dojo.date.compare(date,_71f,"date")){_726="dijitCalendarCurrentDate "+_726;}if(!dojo.date.compare(date,_720,"date")){_726="dijitCalendarSelectedDate "+_726;}if(this.isDisabledDate(date,this.lang)){_726="dijitCalendarDisabledDate "+_726;}var _728=this.getClassForDate(date,this.lang);if(_728){_726=_728+" "+_726;}_722.className=_726+"Month dijitCalendarDateTemplate";_722.dijitDateValue=date.valueOf();var _729=dojo.query(".dijitCalendarDateLabel",_722)[0];this._setText(_729,date.getDate());},this);var _72a=dojo.date.locale.getNames("months","wide","standAlone",this.lang);this._setText(this.monthLabelNode,_72a[_71b.getMonth()]);var y=_71b.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 _72e=this;var _72f=function(_730,_731,adj){_72e._connects.push(dijit.typematic.addMouseListener(_72e[_730],_72e,function(_733){if(_733>=0){_72e._adjustDisplay(_731,adj);}},0.8,500));};_72f("incrementMonth","month",1);_72f("decrementMonth","month",-1);_72f("nextYearLabelNode","year",1);_72f("previousYearLabelNode","year",-1);},goToToday:function(){this.attr("value",new Date());},postCreate:function(){this.inherited(arguments);var _734=dojo.hitch(this,function(_735,n){var _737=dojo.query(_735,this.domNode)[0];for(var i=0;i<n;i++){_737.parentNode.appendChild(_737.cloneNode(true));}});_734(".dijitCalendarDayLabelTemplate",6);_734(".dijitCalendarDateTemplate",6);_734(".dijitCalendarWeekTemplate",5);var _739=dojo.date.locale.getNames("days",this.dayWidth,"standAlone",this.lang);var _73a=dojo.cldr.supplemental.getFirstDayOfWeek(this.lang);dojo.query(".dijitCalendarDayLabel",this.domNode).forEach(function(_73b,i){this._setText(_73b,_739[(i+_73a)%7]);},this);var _73d=dojo.date.locale.getNames("months","wide","standAlone",this.lang);dojo.forEach(_73d,function(name){var _73f=dojo.doc.createElement("div");this._setText(_73f,name);this.monthLabelSpacer.appendChild(_73f);},this);this.value=null;this.attr("value",new Date());},_adjustDisplay:function(part,_741){this.displayMonth=dojo.date.add(this.displayMonth,part,_741);this._populateGrid();},_onDayClick:function(evt){var node=evt.target;dojo.stopEvent(evt);while(!node.dijitDateValue){node=node.parentNode;}if(!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(_74a,_74b){},getClassForDate:function(_74c,_74d){}});}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(_74e,_74f){if(!_74e){return "";}return dojo.date.locale.format(_74e,_74f);},parse:function(_750,_751){return dojo.date.locale.parse(_750,_751)||(this._isEmpty(_750)?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 _752=this.constraints;_752.selector=this._selector;_752.fullYear=true;var _753=dojo.date.stamp.fromISOString;if(typeof _752.min=="string"){_752.min=_753(_752.min);}if(typeof _752.max=="string"){_752.max=_753(_752.max);}},_onFocus:function(evt){this._open();},_setValueAttr:function(_755,_756,_757){this.inherited(arguments);if(this._picker){if(!_755){_755=new Date();}this._picker.attr("value",_755);}},_open:function(){if(this.disabled||this.readOnly||!this.popupClass){return;}var _758=this;if(!this._picker){var _759=dojo.getObject(this.popupClass,false);this._picker=new _759({onValueSelected:function(_75a){if(_758._tabbingAway){delete _758._tabbingAway;}else{_758.focus();}setTimeout(dojo.hitch(_758,"_close"),1);dijit.form._DateTimeTextBox.superclass._setValueAttr.call(_758,_75a,true);},lang:_758.lang,constraints:_758.constraints,isDisabledDate:function(date){var _75c=dojo.date.compare;var _75d=_758.constraints;return _75d&&(_75d.min&&(_75c(_75d.min,date,"date")>0)||(_75d.max&&_75c(_75d.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(){_758._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(_75e,_75f){this._setValueAttr(this.parse(_75e,this.constraints),_75f,_75e);},destroy:function(){if(this._picker){this._picker.destroy();delete this._picker;}this.inherited(arguments);},_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(dijit.form._DateTimeTextBox.superclass._onKeyPress.apply(this,arguments)){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(_763,_764,_765){if((_764&&_764.query[this.searchAttr]!=this._lastQuery)||(!_764&&_763.length&&this.store.getIdentity(_763[0])!=this._lastQuery)){return;}if(!_763.length){if(_765||!this._focused){this.valueNode.value="";}dijit.form.TextBox.superclass._setValueAttr.call(this,"",_765||!this._focused);this._isvalid=false;this.validate(this._focused);this.item=null;}else{this._setValueFromItem(_763[0],_765);}},_openResultList:function(_766,_767){if(_767.query[this.searchAttr]!=this._lastQuery){return;}this._isvalid=_766.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(_768,_769,_76a){this.valueNode.value=_768;dijit.form.FilteringSelect.superclass._setValueAttr.call(this,_768,_76a,_769);this._lastDisplayedValue=_769;},_setValueAttr:function(_76b,_76c){if(!this._onChangeActive){_76c=null;}this._lastQuery=_76b;if(_76b===null){this._setDisplayedValueAttr("",_76c);return;}var self=this;var _76e=function(item,_770){if(item){if(self.store.isItemLoaded(item)){self._callbackSetLabel([item],undefined,_770);}else{self.store.loadItem({item:item,onItem:function(_771,_772){self._callbackSetLabel(_771,_772,_770);}});}}else{self._isvalid=false;self.validate(false);}};this.store.fetchItemByIdentity({identity:_76b,onItem:function(item){_76e(item,_76c);}});},_setValueFromItem:function(item,_775){this._isvalid=true;this.item=item;this._setValue(this.store.getIdentity(item),this.labelFunc(item,this.store),_775);},labelFunc:function(item,_777){return _777.getValue(item,this.searchAttr);},_doSelect:function(tgt){this._setValueFromItem(tgt.item,true);},_setDisplayedValueAttr:function(_779,_77a){if(!this._created){_77a=false;}if(this.store){var _77b=dojo.clone(this.query);this._lastQuery=_77b[this.searchAttr]=_779.replace(/([\\\*\?])/g,"\\$1");this.textbox.value=_779;this._lastDisplayedValue=_779;var _77c=this;var _77d={query:_77b,queryOptions:{ignoreCase:this.ignoreCase,deep:true},onComplete:function(_77e,_77f){dojo.hitch(_77c,"_callbackSetLabel")(_77e,_77f,_77a);},onError:function(_780){console.error("dijit.form.FilteringSelect: "+_780);dojo.hitch(_77c,"_setValue")("",_779,false);}};dojo.mixin(_77d,this.fetchProperties);this.store.fetch(_77d);}},postMixInProperties:function(){dijit.form.ComboBoxMixin.prototype.postMixInProperties.apply(this,arguments);dijit.form.MappedTextBox.prototype.postMixInProperties.apply(this,arguments);},postCreate:function(){dijit.form.ComboBoxMixin.prototype._postCreate.apply(this,arguments);dijit.form.MappedTextBox.prototype.postCreate.apply(this,arguments);},_setDisabledAttr:function(attr,_782){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=\"onfocus:_update,onkeyup:_update,onkeypress:_onKeyPress\"\n\t\t\t\twaiRole=\"spinbutton\" autocomplete=\"off\" name=\"${name}\"\n\t\t/></div\n\t></div\n></div>\n",baseClass:"dijitSpinner",adjust:function(val,_784){return val;},_arrowState:function(node,_786){this._active=_786;this.stateModifier=node.getAttribute("stateModifier")||"";this._setStateClass();},_arrowPressed:function(_787,_788,_789){if(this.disabled||this.readOnly){return;}this._arrowState(_787,true);this._setValueAttr(this.adjust(this.attr("value"),_788*_789),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(_78b,node,evt){var inc=this.smallDelta;if(node==this.textbox){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(_78b==-1){this._arrowReleased(node);}else{this._arrowPressed(node,(node==this.upArrowNode)?1:-1,inc);}},_wheelTimer:null,_mouseWheeled:function(evt){dojo.stopEvent(evt);var _791=evt.detail?(evt.detail*-1):(evt.wheelDelta/120);if(_791!==0){var node=this[(_791>0?"upArrowNode":"downArrowNode")];this._arrowPressed(node,_791,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 _793=this;this.connect(this.domNode,"onresize",function(){setTimeout(dojo.hitch(_793,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,_796){if(isNaN(val)&&_796!=0){var _797=(_796>0),_798=(typeof this.constraints.max=="number"),_799=(typeof this.constraints.min=="number");val=_797?(_799?this.constraints.min:(_798?this.constraints.max:0)):(_798?this.constraints.max:(_799?this.constraints.min:0));}var _79a=val+_796;if(isNaN(val)||isNaN(_79a)){return val;}if((typeof this.constraints.max=="number")&&(_79a>this.constraints.max)){_79a=this.constraints.max;}if((typeof this.constraints.min=="number")&&(_79a<this.constraints.min)){_79a=this.constraints.min;}return _79a;},_onKeyPress:function(e){if((e.charOrCode==dojo.keys.HOME||e.charOrCode==dojo.keys.END)&&!e.ctrlKey&&!e.altKey){var _79c=e.charOrCode==dojo.keys.HOME?this.constraints["min"]:this.constraints["max"];if(_79c){this._setValueAttr(_79c,true);}dojo.stopEvent(e);return false;}else{return this.inherited(arguments);}}});}if(!dojo._hasResource["dijit.form.Slider"]){dojo._hasResource["dijit.form.Slider"]=true;dojo.provide("dijit.form.Slider");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=\"onclick:_onClkDecBumper\"></div\n\t\t></td\n\t\t><td class=\"dijitReset\"\n\t\t\t><input dojoAttachPoint=\"valueNode\" type=\"hidden\" name=\"${name}\"\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=\"onclick:_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=\"onclick:_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=\"onclick:_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.mixin(dojo.clone(dijit.form._FormWidget.prototype.attributeMap),{id:"",name:"valueNode"}),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:this.inherited(arguments);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 _7a0=dojo.coords(this.sliderBarContainer,true);var _7a1=e[this._mousePixelCoord]-_7a0[this._startingPixelCoord];this._setPixelValue(this._isReversed()?(_7a0[this._pixelCount]-_7a1):_7a1,_7a0[this._pixelCount],true);},_setPixelValue:function(_7a2,_7a3,_7a4){if(this.disabled||this.readOnly){return;}_7a2=_7a2<0?0:_7a3<_7a2?_7a3:_7a2;var _7a5=this.discreteValues;if(_7a5<=1||_7a5==Infinity){_7a5=_7a3;}_7a5--;var _7a6=_7a3/_7a5;var _7a7=Math.round(_7a2/_7a6);this._setValueAttr((this.maximum-this.minimum)*_7a7/_7a5+this.minimum,_7a4);},_setValueAttr:function(_7a8,_7a9){this.valueNode.value=this.value=_7a8;dijit.setWaiState(this.focusNode,"valuenow",_7a8);this.inherited(arguments);var _7aa=(_7a8-this.minimum)/(this.maximum-this.minimum);var _7ab=(this._descending===false)?this.remainingBar:this.progressBar;var _7ac=(this._descending===false)?this.progressBar:this.remainingBar;if(this._inProgressAnim&&this._inProgressAnim.status!="stopped"){this._inProgressAnim.stop(true);}if(_7a9&&this.slideDuration>0&&_7ab.style[this._progressPixelSize]){var _7ad=this;var _7ae={};var _7af=parseFloat(_7ab.style[this._progressPixelSize]);var _7b0=this.slideDuration*(_7aa-_7af/100);if(_7b0==0){return;}if(_7b0<0){_7b0=0-_7b0;}_7ae[this._progressPixelSize]={start:_7af,end:_7aa*100,units:"%"};this._inProgressAnim=dojo.animateProperty({node:_7ab,duration:_7b0,onAnimate:function(v){_7ac.style[_7ad._progressPixelSize]=(100-parseFloat(v[_7ad._progressPixelSize]))+"%";},onEnd:function(){delete _7ad._inProgressAnim;},properties:_7ae});this._inProgressAnim.play();}else{_7ab.style[this._progressPixelSize]=(_7aa*100)+"%";_7ac.style[this._progressPixelSize]=((1-_7aa)*100)+"%";}},_bumpValue:function(_7b2){if(this.disabled||this.readOnly){return;}var s=dojo.getComputedStyle(this.sliderBarContainer);var c=dojo._getContentBox(this.sliderBarContainer,s);var _7b5=this.discreteValues;if(_7b5<=1||_7b5==Infinity){_7b5=c[this._pixelCount];}_7b5--;var _7b6=(this.value-this.minimum)*_7b5/(this.maximum-this.minimum)+_7b2;if(_7b6<0){_7b6=0;}if(_7b6>_7b5){_7b6=_7b5;}_7b6=_7b6*(this.maximum-this.minimum)/_7b5+this.minimum;this._setValueAttr(_7b6,true);},_onClkIncBumper:function(){this._setValueAttr(this._descending===false?this.minimum:this.maximum,true);},_onClkDecBumper:function(){this._setValueAttr(this._descending===false?this.maximum:this.minimum,true);},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 _7ba=!dojo.isMozilla;var _7bb=evt[(_7ba?"wheelDelta":"detail")]*(_7ba?1:-1);this[(_7bb<0?"decrement":"increment")](evt);},startup:function(){dojo.forEach(this.getChildren(),function(_7bc){if(this[_7bc.container]!=this.containerNode){this[_7bc.container].appendChild(_7bc.domNode);}},this);},_typematicCallback:function(_7bd,_7be,e){if(_7bd==-1){return;}this[(_7be==(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 _7c0=this;var _7c1=function(){dijit.form._SliderMover.apply(this,arguments);this.widget=_7c0;};dojo.extend(_7c1,dijit.form._SliderMover.prototype);this._movable=new dojo.dnd.Moveable(this.sliderHandle,{mover:_7c1});var _7c2=dojo.query("label[for=\""+this.id+"\"]");if(_7c2.length){_7c2[0].id=(this.id+"_label");dijit.setWaiState(this.focusNode,"labelledby",_7c2[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.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=\"onclick:_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\" name=\"${name}\"\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=\"onclick:_onBarClick\"><!--#5629--></div\n\t\t\t\t><div waiRole=\"presentation\" dojoAttachPoint=\"progressBar\" class=\"dijitSliderBar dijitSliderBarV dijitSliderProgressBar dijitSliderProgressBarV\" dojoAttachEvent=\"onclick:_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=\"onclick:_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(_7c3){var _7c4=[];while(_7c3.firstChild){_7c4.push(_7c3.firstChild);_7c3.removeChild(_7c3.firstChild);}for(var i=_7c4.length-1;i>=0;i--){if(_7c4[i]){_7c3.appendChild(_7c4[i]);}}}});dojo.declare("dijit.form._SliderMover",dojo.dnd.Mover,{onMouseMove:function(e){var _7c7=this.widget;var _7c8=_7c7._abspos;if(!_7c8){_7c8=_7c7._abspos=dojo.coords(_7c7.sliderBarContainer,true);_7c7._setPixelValue_=dojo.hitch(_7c7,"_setPixelValue");_7c7._isReversed_=_7c7._isReversed();}var _7c9=e[_7c7._mousePixelCoord]-_7c8[_7c7._startingPixelCoord];_7c7._setPixelValue_(_7c7._isReversed_?(_7c8[_7c7._pixelCount]-_7c9):_7c9,_7c8[_7c7._pixelCount],false);},destroy:function(e){dojo.dnd.Mover.prototype.destroy.apply(this,arguments);var _7cb=this.widget;_7cb._abspos=null;_7cb._setValueAttr(_7cb.value,true);}});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 _7ce;if(this.count==1){_7ce=this._genHTML(50,0);}else{var i;var _7d0=100/(this.count-1);if(!this._isHorizontal||this.isLeftToRight()){_7ce=this._genHTML(0,0);for(i=1;i<this.count-1;i++){_7ce+=this._genHTML(_7d0*i,i);}_7ce+=this._genHTML(100,this.count-1);}else{_7ce=this._genHTML(100,0);for(i=1;i<this.count-1;i++){_7ce+=this._genHTML(100-_7d0*i,i);}_7ce+=this._genHTML(0,this.count-1);}}this.domNode.innerHTML=_7ce;}});dojo.declare("dijit.form.VerticalRule",dijit.form.HorizontalRule,{templateString:"<div class=\"dijitRuleContainer dijitRuleContainerV\"></div>",_positionPrefix:"<div class=\"dijitRuleMark dijitRuleMarkV\" style=\"top:",_isHorizontal:false});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 _7d4=this.labels;if(!_7d4.length){_7d4=dojo.query("> li",this.srcNodeRef).map(function(node){return String(node.innerHTML);});}this.srcNodeRef.innerHTML="";if(!_7d4.length&&this.count>1){var _7d6=this.minimum;var inc=(this.maximum-_7d6)/(this.count-1);for(var i=0;i<this.count;i++){_7d4.push((i<this.numericMargin||i>=(this.count-this.numericMargin))?"":dojo.number.format(_7d6,this.constraints));_7d6+=inc;}}return _7d4;},postMixInProperties:function(){this.inherited(arguments);this.labels=this.getLabels();this.count=this.labels.length;}});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.Textarea"]){dojo._hasResource["dijit.form.Textarea"]=true;dojo.provide("dijit.form.Textarea");dojo.declare("dijit.form.Textarea",dijit.form._FormValueWidget,{attributeMap:dojo.mixin(dojo.clone(dijit.form._FormValueWidget.prototype.attributeMap),{style:"styleNode","class":"styleNode"}),templateString:(dojo.isIE||dojo.isSafari||dojo.isFF)?((dojo.isIE||dojo.isSafari||dojo.isFF>=3)?"<fieldset id=\"${id}\" class=\"dijitInline\" dojoAttachPoint=\"styleNode\" waiRole=\"presentation\"><div dojoAttachPoint=\"editNode,focusNode,eventNode\" dojoAttachEvent=\"onpaste:_changing,oncut:_changing\" waiRole=\"textbox\" waiState=\"multiline-true\" contentEditable=\"true\"></div>":"<span id=\"${id}\" class=\"dijitReset\">"+"<iframe src=\"javascript:<html><head><title>${_iframeEditTitle}</title></head><body><script>var _postCreate=window.frameElement?window.frameElement.postCreate:null;if(_postCreate)_postCreate();</script></body></html>\""+" dojoAttachPoint=\"iframe,styleNode,stateNode\" dojoAttachEvent=\"onblur:_onIframeBlur\" class=\"dijitInline dijitInputField\"></iframe>")+"<textarea name=\"${name}\" value=\"${value}\" dojoAttachPoint=\"formValueNode\" style=\"display:none;\" autocomplete=\"off\"></textarea>"+((dojo.isIE||dojo.isSafari||dojo.isFF>=3)?"</fieldset>":"</span>"):"<textarea id=\"${id}\" name=\"${name}\" value=\"${value}\" dojoAttachPoint=\"formValueNode,editNode,focusNode,styleNode\">"+dojo.isFF+"</textarea>",baseClass:"dijitTextArea",_setDisabledAttr:function(_7da){this.inherited(arguments);this.formValueNode.disabled=this.disabled;this._adjustWritable();},_setReadOnlyAttr:function(_7db){this.readOnly=_7db;this._adjustWritable();},_adjustWritable:function(){if(dojo.isIE||dojo.isSafari||dojo.isFF>=3){this.editNode.contentEditable=(!this.disabled&&!this.readOnly);}else{if(dojo.isFF){this.iframe.contentDocument.designMode=(this.disabled||this.readOnly)?"off":"on";}}},focus:function(){if(!this.disabled&&!this.readOnly){this._changing();}dijit.focus(this.iframe||this.focusNode);},_setValueAttr:function(_7dc,_7dd){var _7de=this.editNode;if(typeof _7dc=="string"){_7de.innerHTML="";if(_7dc.split){var _7df=this;var _7e0=true;dojo.forEach(_7dc.split("\n"),function(line){if(_7e0){_7e0=false;}else{_7de.appendChild(dojo.doc.createElement("BR"));}if(line){_7de.appendChild(dojo.doc.createTextNode(line));}});}else{if(_7dc){_7de.appendChild(dojo.doc.createTextNode(_7dc));}}if(!dojo.isIE){_7de.appendChild(dojo.doc.createElement("BR"));}}else{_7dc=_7de.innerHTML;if(this.iframe){_7dc=_7dc.replace(/<div><\/div>\r?\n?$/i,"");}_7dc=_7dc.replace(/\s*\r?\n|^\s+|\s+$|&nbsp;/g,"").replace(/>\s+</g,"><").replace(/<\/(p|div)>$|^<(p|div)[^>]*>/gi,"").replace(/([^>])<div>/g,"$1\n").replace(/<\/p>\s*<p[^>]*>|<br[^>]*>|<\/div>\s*<div[^>]*>/gi,"\n").replace(/<[^>]*>/g,"").replace(/&amp;/gi,"&").replace(/&lt;/gi,"<").replace(/&gt;/gi,">");if(!dojo.isIE){_7dc=_7dc.replace(/\n$/,"");}}this.value=this.formValueNode.value=_7dc;if(this.iframe){var _7e2=dojo.doc.createElement("div");_7de.appendChild(_7e2);var _7e3=_7e2.offsetTop;if(_7de.scrollWidth>_7de.clientWidth){_7e3+=16;}if(this.lastHeight!=_7e3){if(_7e3==0){_7e3=16;}dojo.contentBox(this.iframe,{h:_7e3});this.lastHeight=_7e3;}_7de.removeChild(_7e2);}dijit.form.Textarea.superclass._setValueAttr.call(this,this.attr("value"),_7dd);},_getValueAttr:function(){return this.value.replace(/\r/g,"");},postMixInProperties:function(){this.inherited(arguments);if(this.srcNodeRef&&this.srcNodeRef.innerHTML!=""){this.value=this.srcNodeRef.innerHTML;this.srcNodeRef.innerHTML="";}if((!this.value||this.value=="")&&this.srcNodeRef&&this.srcNodeRef.value){this.value=this.srcNodeRef.value;}if(!this.value){this.value="";}this.value=this.value.replace(/\r\n/g,"\n").replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&");if(dojo.isFF==2){var _7e4=dojo.i18n.getLocalization("dijit.form","Textarea");this._iframeEditTitle=_7e4.iframeEditTitle;this._iframeFocusTitle=_7e4.iframeFocusTitle;var _7e5=dojo.query("label[for=\""+this.id+"\"]");if(_7e5.length){this._iframeEditTitle=_7e5[0].innerHTML+" "+this._iframeEditTitle;}this.focusNode=this.editNode=dojo.doc.createElement("BODY");}},postCreate:function(){var _7e6="";if(dojo.isIE||dojo.isSafari||dojo.isFF>=3){this.domNode.style.overflowY="hidden";}else{if(dojo.isFF){var w=this.iframe.contentWindow;var _7e8="";try{_7e8=this.iframe.contentDocument.title;}catch(e){}if(!w||!_7e8){this.iframe.postCreate=dojo.hitch(this,this.postCreate);return;}var d=w.document;d.getElementsByTagName("HTML")[0].replaceChild(this.editNode,d.getElementsByTagName("BODY")[0]);if(!this.isLeftToRight()){d.getElementsByTagName("HTML")[0].dir="rtl";}this.iframe.style.overflowY="hidden";this.eventNode=d;w.addEventListener("resize",dojo.hitch(this,this._changed),false);dijit.registerWin(w);_7e6="margin:0px;padding:0px;border:0px;";}else{this.focusNode=this.domNode;}}this.style.replace(/(^|;)(line-|font-?)[^;]+/g,function(_7ea){_7e6+=_7ea.replace(/^;/g,"")+";";});dojo.attr(this.focusNode,"style",_7e6);if(this.eventNode){this.connect(this.eventNode,"keypress",this._onKeyPress);this.connect(this.eventNode,"mousemove",this._changed);this.connect(this.eventNode,"focus",this._focusedEventNode);this.connect(this.eventNode,"blur",this._blurredEventNode);}if(this.editNode){this.connect(this.editNode,"change",this._changed);}this.inherited("postCreate",arguments);},_focusedEventNode:function(e){this._focused=true;this._setStateClass();this._changed(e);},_blurredEventNode:function(e){this._focused=false;this._setStateClass();this._changed(e,true);},_onIframeBlur:function(){this.iframe.contentDocument.title=this._iframeEditTitle;},_onKeyPress:function(e){if(e.charOrCode===dojo.keys.TAB&&!e.shiftKey&&!e.ctrlKey&&!e.altKey&&this.iframe){this.iframe.contentDocument.title=this._iframeFocusTitle;this.iframe.focus();dojo.stopEvent(e);}else{if(e.charOrCode==dojo.keys.ENTER){e.stopPropagation();}else{if(this.inherited("_onKeyPress",arguments)&&this.iframe){var te=dojo.doc.createEvent("KeyEvents");te.initKeyEvent("keypress",true,true,null,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.keyCode,e.charCode);this.iframe.dispatchEvent(te);}}}this._changing();},_changing:function(e){setTimeout(dojo.hitch(this,"_changed",e,false),1);},_changed:function(e,_7f1){if(this.iframe&&this.iframe.contentDocument.designMode!="on"&&!this.disabled&&!this.readOnly){this.iframe.contentDocument.designMode="on";}this._setValueAttr(null,_7f1||false);}});}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,baseClass:"dijitStackContainer",_started:false,postCreate:function(){this.inherited(arguments);dijit.setWaiRole(this.containerNode,"tabpanel");this.connect(this.domNode,"onkeypress",this._onKeyPress);},startup:function(){if(this._started){return;}var _7f2=this.getChildren();dojo.forEach(_7f2,this._setupChild,this);dojo.some(_7f2,function(_7f3){if(_7f3.selected){this.selectedChildWidget=_7f3;}return _7f3.selected;},this);var _7f4=this.selectedChildWidget;if(!_7f4&&_7f2[0]){_7f4=this.selectedChildWidget=_7f2[0];_7f4.selected=true;}if(_7f4){this._showChild(_7f4);}dojo.publish(this.id+"-startup",[{children:_7f2,selected:_7f4}]);this.inherited(arguments);},_setupChild:function(_7f5){this.inherited(arguments);_7f5.domNode.style.display="none";_7f5.domNode.style.position="relative";_7f5.domNode.title="";return _7f5;},addChild:function(_7f6,_7f7){this.inherited(arguments);if(this._started){dojo.publish(this.id+"-addChild",[_7f6,_7f7]);this.layout();if(!this.selectedChildWidget){this.selectChild(_7f6);}}},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 _7f9=this.getChildren();if(_7f9.length){this.selectChild(_7f9[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]);}},_transition:function(_7fb,_7fc){if(_7fc){this._hideChild(_7fc);}this._showChild(_7fb);if(this.doLayout&&_7fb.resize){_7fb.resize(this._containerContentBox||this._contentBox);}},_adjacent:function(_7fd){var _7fe=this.getChildren();var _7ff=dojo.indexOf(_7fe,this.selectedChildWidget);_7ff+=_7fd?1:_7fe.length-1;return _7fe[_7ff%_7fe.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 _802=this.getChildren();page.isFirstChild=(page==_802[0]);page.isLastChild=(page==_802[_802.length-1]);page.selected=true;page.domNode.style.display="";if(page._loadCheck){page._loadCheck();}if(page.onShow){page.onShow();}},_hideChild:function(page){page.selected=false;page.domNode.style.display="none";if(page.onHide){page.onHide();}},closeChild:function(page){var _805=page.onClose(this,page);if(_805){this.removeChild(page);page.destroyRecursive();}},destroy:function(){this._beingDestroyed=true;this.inherited(arguments);}});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,_809){var _80a=dojo.doc.createElement("span");this.domNode.appendChild(_80a);var cls=dojo.getObject(this.buttonWidget);var _80c=new cls({label:page.title,closeButton:page.closable},_80a);this.addChild(_80c,_809);this.pane2button[page]=_80c;page.controlButton=_80c;var _80d=[];_80d.push(dojo.connect(_80c,"onClick",dojo.hitch(this,"onButtonClick",page)));if(page.closable){_80d.push(dojo.connect(_80c,"onClickCloseButton",dojo.hitch(this,"onCloseButtonClick",page)));var _80e=dojo.i18n.getLocalization("dijit","common");var _80f=new dijit.Menu({targetNodeIds:[_80c.id],id:_80c.id+"_Menu"});var _810=new dijit.MenuItem({label:_80e.itemClose});_80d.push(dojo.connect(_810,"onClick",dojo.hitch(this,"onCloseButtonClick",page)));_80f.addChild(_810);this.pane2menu[page]=_80f;}this.pane2handles[page]=_80d;if(!this._currentChild){_80c.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 _813=this.pane2button[page];if(_813){_813.destroy();delete this.pane2button[page];}},onSelectChild:function(page){if(!page){return;}if(this._currentChild){var _815=this.pane2button[this._currentChild];_815.attr("checked",false);_815.focusNode.setAttribute("tabIndex","-1");}var _816=this.pane2button[page];_816.attr("checked",true);this._currentChild=page;_816.focusNode.setAttribute("tabIndex","0");var _817=dijit.byId(this.containerId);dijit.setWaiState(_817.containerNode,"labelledby",_816.id);},onButtonClick:function(page){var _819=dijit.byId(this.containerId);_819.selectChild(page);},onCloseButtonClick:function(page){var _81b=dijit.byId(this.containerId);_81b.closeChild(page);var b=this.pane2button[this._currentChild];if(b){dijit.focus(b.focusNode||b.domNode);}},adjacent:function(_81d){if(!this.isLeftToRight()&&(!this.tabPosition||/top|bottom/.test(this.tabPosition))){_81d=!_81d;}var _81e=this.getChildren();var _81f=dojo.indexOf(_81e,this.pane2button[this._currentChild]);var _820=_81d?1:_81e.length-1;return _81e[(_81f+_820)%_81e.length];},onkeypress:function(e){if(this.disabled||e.altKey){return;}var _822=null;if(e.ctrlKey||!e._djpage){var k=dojo.keys;switch(e.charOrCode){case k.LEFT_ARROW:case k.UP_ARROW:if(!e._djpage){_822=false;}break;case k.PAGE_UP:if(e.ctrlKey){_822=false;}break;case k.RIGHT_ARROW:case k.DOWN_ARROW:if(!e._djpage){_822=true;}break;case k.PAGE_DOWN:if(e.ctrlKey){_822=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(_822!==null){this.adjacent(_822).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();}});dojo.extend(dijit._Widget,{title:"",selected:false,closable:false,onClose:function(){return true;}});}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 _828=this.selectedChildWidget.containerNode.style;_828.display="";_828.overflow="auto";this.selectedChildWidget._setSelectedState(true);}},_getTargetHeight:function(node){var cs=dojo.getComputedStyle(node);return Math.max(this._verticalSpace-dojo._getPadBorderExtents(node,cs).h,0);},layout:function(){var _82b=0;var _82c=this.selectedChildWidget;dojo.forEach(this.getChildren(),function(_82d){_82b+=_82d.getTitleHeight();});var _82e=this._contentBox;this._verticalSpace=_82e.h-_82b;if(_82c){_82c.containerNode.style.height=this._getTargetHeight(_82c.containerNode)+"px";}},_setupChild:function(page){return page;},_transition:function(_830,_831){if(this._inTransition){return;}this._inTransition=true;var _832=[];var _833=this._verticalSpace;if(_830){_830.setSelected(true);var _834=_830.containerNode;_834.style.display="";_833=this._getTargetHeight(_830.containerNode);_832.push(dojo.animateProperty({node:_834,duration:this.duration,properties:{height:{start:1,end:_833}},onEnd:function(){_834.style.overflow="auto";}}));}if(_831){_831.setSelected(false);var _835=_831.containerNode;_835.style.overflow="hidden";_833=this._getTargetHeight(_831.containerNode);_832.push(dojo.animateProperty({node:_835,duration:this.duration,properties:{height:{start:_833,end:"1"}},onEnd:function(){_835.style.display="none";}}));}this._inTransition=false;dojo.fx.combine(_832).play();},_onKeyPress:function(e){if(this.disabled||e.altKey||!(e._dijitWidget||e.ctrlKey)){return;}var k=dojo.keys;var _838=e._dijitWidget;switch(e.charOrCode){case k.LEFT_ARROW:case k.UP_ARROW:if(_838){this._adjacent(false)._onTitleClick();dojo.stopEvent(e);}break;case k.PAGE_UP:if(e.ctrlKey){this._adjacent(false)._onTitleClick();dojo.stopEvent(e);}break;case k.RIGHT_ARROW:case k.DOWN_ARROW:if(_838){this._adjacent(true)._onTitleClick();dojo.stopEvent(e);}break;case k.PAGE_DOWN:if(e.ctrlKey){this._adjacent(true)._onTitleClick();dojo.stopEvent(e);}break;default:if(e.ctrlKey&&e.charOrCode===k.TAB){this._adjacent(e._dijitWidget,!e.shiftKey)._onTitleClick();dojo.stopEvent(e);}}}});dojo.declare("dijit.layout.AccordionPane",[dijit.layout.ContentPane,dijit._Templated,dijit._Contained],{templateString:"<div waiRole=\"presentation\"\n\t><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></div\n\t><div waiRole=\"presentation\"><div dojoAttachPoint='containerNode' style='overflow: hidden; height: 1px; display: none'\n\t\tclass='dijitAccordionBody' wairole=\"tabpanel\"\n\t></div></div>\n</div>\n",attributeMap:dojo.mixin(dojo.clone(dijit.layout.ContentPane.prototype.attributeMap),{title:{node:"titleTextNode",type:"innerHTML"}}),baseClass:"dijitAccordionPane",postCreate:function(){this.inherited(arguments);dojo.setSelectable(this.titleNode,false);this.setSelected(this.selected);dojo.attr(this.titleTextNode,"id",this.domNode.id+"_title");dijit.setWaiState(this.focusNode,"labelledby",dojo.attr(this.titleTextNode,"id"));},getTitleHeight:function(){return dojo.marginBox(this.titleNode).h;},_onTitleClick:function(){var _839=this.getParent();if(!_839._inTransition){_839.selectChild(this);dijit.focus(this.focusNode);}},_onTitleEnter:function(){dojo.addClass(this.focusNode,"dijitAccordionTitle-hover");},_onTitleLeave:function(){dojo.removeClass(this.focusNode,"dijitAccordionTitle-hover");},_onTitleKeyPress:function(evt){evt._dijitWidget=this;return this.getParent()._onKeyPress(evt);},_setSelectedState:function(_83b){this.selected=_83b;dojo[(_83b?"addClass":"removeClass")](this.titleNode,"dijitAccordionTitle-selected");dijit.setWaiState(this.focusNode,"expanded",_83b);this.focusNode.setAttribute("tabIndex",_83b?"0":"-1");},_handleFocus:function(e){dojo[(e.type=="focus"?"addClass":"removeClass")](this.focusNode,"dijitAccordionFocused");},setSelected:function(_83d){this._setSelectedState(_83d);if(_83d){this.onSelected();this._loadCheck();}},onSelected:function(){}});}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(_83e){var _83f=_83e.region;if(_83f){this.inherited(arguments);dojo.addClass(_83e.domNode,this.baseClass+"Pane");var ltr=this.isLeftToRight();if(_83f=="leading"){_83f=ltr?"left":"right";}if(_83f=="trailing"){_83f=ltr?"right":"left";}this["_"+_83f]=_83e.domNode;this["_"+_83f+"Widget"]=_83e;if((_83e.splitter||this.gutters)&&!this._splitters[_83f]){var _841=dojo.getObject(_83e.splitter?this._splitterClass:"dijit.layout._Gutter");var flip={left:"right",right:"left",top:"bottom",bottom:"top",leading:"trailing",trailing:"leading"};var _843=new _841({container:this,child:_83e,region:_83f,oppNode:dojo.query("[region="+flip[_83e.region]+"]",this.domNode)[0],live:this.liveSplitters});_843.isSplitter=true;this._splitters[_83f]=_843.domNode;dojo.place(this._splitters[_83f],_83e.domNode,"after");_843.startup();}_83e.region=_83f;}},_computeSplitterThickness:function(_844){this._splitterThickness[_844]=this._splitterThickness[_844]||dojo.marginBox(this._splitters[_844])[(/top|bottom/.test(_844)?"h":"w")];},layout:function(){for(var _845 in this._splitters){this._computeSplitterThickness(_845);}this._layoutChildren();},addChild:function(_846,_847){this.inherited(arguments);if(this._started){this._layoutChildren();}},removeChild:function(_848){var _849=_848.region;var _84a=this._splitters[_849];if(_84a){dijit.byNode(_84a).destroy();delete this._splitters[_849];delete this._splitterThickness[_849];}this.inherited(arguments);delete this["_"+_849];delete this["_"+_849+"Widget"];if(this._started){this._layoutChildren(_848.region);}dojo.removeClass(_848.domNode,this.baseClass+"Pane");},getChildren:function(){return dojo.filter(this.inherited(arguments),function(_84b){return !_84b.isSplitter;});},getSplitter:function(_84c){var _84d=this._splitters[_84c];return _84d?dijit.byNode(_84d):null;},resize:function(_84e,_84f){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(_851){var _852=(this.design=="sidebar");var _853=0,_854=0,_855=0,_856=0;var _857={},_858={},_859={},_85a={},_85b=(this._center&&this._center.style)||{};var _85c=/left|right/.test(_851);var _85d=!_851||(!_85c&&!_852);var _85e=!_851||(_85c&&_852);if(this._top){_857=_85e&&this._top.style;_853=dojo.marginBox(this._top).h;}if(this._left){_858=_85d&&this._left.style;_855=dojo.marginBox(this._left).w;}if(this._right){_859=_85d&&this._right.style;_856=dojo.marginBox(this._right).w;}if(this._bottom){_85a=_85e&&this._bottom.style;_854=dojo.marginBox(this._bottom).h;}var _85f=this._splitters;var _860=_85f.top,_861=_85f.bottom,_862=_85f.left,_863=_85f.right;var _864=this._splitterThickness;var _865=_864.top||0,_866=_864.left||0,_867=_864.right||0,_868=_864.bottom||0;if(_866>50||_867>50){setTimeout(dojo.hitch(this,function(){this._splitterThickness={};for(var _869 in this._splitters){this._computeSplitterThickness(_869);}this._layoutChildren();}),50);return false;}var pe=this.pe;var _86b={left:(_852?_855+_866:0)+pe.l+"px",right:(_852?_856+_867:0)+pe.r+"px"};if(_860){dojo.mixin(_860.style,_86b);_860.style.top=_853+pe.t+"px";}if(_861){dojo.mixin(_861.style,_86b);_861.style.bottom=_854+pe.b+"px";}_86b={top:(_852?0:_853+_865)+pe.t+"px",bottom:(_852?0:_854+_868)+pe.b+"px"};if(_862){dojo.mixin(_862.style,_86b);_862.style.left=_855+pe.l+"px";}if(_863){dojo.mixin(_863.style,_86b);_863.style.right=_856+pe.r+"px";}dojo.mixin(_85b,{top:pe.t+_853+_865+"px",left:pe.l+_855+_866+"px",right:pe.r+_856+_867+"px",bottom:pe.b+_854+_868+"px"});var _86c={top:_852?pe.t+"px":_85b.top,bottom:_852?pe.b+"px":_85b.bottom};dojo.mixin(_858,_86c);dojo.mixin(_859,_86c);_858.left=pe.l+"px";_859.right=pe.r+"px";_857.top=pe.t+"px";_85a.bottom=pe.b+"px";if(_852){_857.left=_85a.left=_855+_866+pe.l+"px";_857.right=_85a.right=_856+_867+pe.r+"px";}else{_857.left=_85a.left=pe.l+"px";_857.right=_85a.right=pe.r+"px";}var _86d=this._borderBox.h-pe.t-pe.b,_86e=_86d-(_853+_865+_854+_868),_86f=_852?_86d:_86e;var _870=this._borderBox.w-pe.l-pe.r,_871=_870-(_855+_866+_856+_867),_872=_852?_871:_870;var dim={top:{w:_872,h:_853},bottom:{w:_872,h:_854},left:{w:_855,h:_86f},right:{w:_856,h:_86f},center:{h:_86e,w:_871}};var _874=dojo.isIE||dojo.some(this.getChildren(),function(_875){return _875.domNode.tagName=="TEXTAREA"||_875.domNode.tagName=="INPUT";});if(_874){var _876=function(_877,_878,_879){if(_877){(_877.resize?_877.resize(_878,_879):dojo.marginBox(_877.domNode,_878));}};if(_862){_862.style.height=_86f;}if(_863){_863.style.height=_86f;}_876(this._leftWidget,{h:_86f},dim.left);_876(this._rightWidget,{h:_86f},dim.right);if(_860){_860.style.width=_872;}if(_861){_861.style.width=_872;}_876(this._topWidget,{w:_872},dim.top);_876(this._bottomWidget,{w:_872},dim.bottom);_876(this._centerWidget,dim.center);}else{var _87a={};if(_851){_87a[_851]=_87a.center=true;if(/top|bottom/.test(_851)&&this.design!="sidebar"){_87a.left=_87a.right=true;}else{if(/left|right/.test(_851)&&this.design=="sidebar"){_87a.top=_87a.bottom=true;}}}dojo.forEach(this.getChildren(),function(_87b){if(_87b.resize&&(!_851||_87b.region in _87a)){_87b.resize(null,dim[_87b.region]);}},this);}},destroy:function(){for(region in this._splitters){var _87c=this._splitters[region];dijit.byNode(_87c).destroy();dojo._destroyElement(_87c);}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 _87d=dojo.cookie(this._cookieName);if(_87d){this.child.domNode.style[this.horizontal?"height":"width"]=_87d;}}},_computeMaxSize:function(){var dim=this.horizontal?"h":"w",_87f=this.container._splitterThickness[this.region];var _880=dojo.contentBox(this.container.domNode)[dim]-(this.oppNode?dojo.marginBox(this.oppNode)[dim]:0)-20-_87f*2;this._maxSize=Math.min(this.child.maxSize,_880);},_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");}else{this.cover.style.zIndex=1;}if(this.fake){dojo._destroyElement(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 _882=this._factor,max=this._maxSize,min=this._minSize||20,_885=this.horizontal,axis=_885?"pageY":"pageX",_887=e[axis],_888=this.domNode.style,dim=_885?"h":"w",_88a=dojo.marginBox(this.child.domNode)[dim],_88b=this.region,_88c=parseInt(this.domNode.style[_88b],10),_88d=this._resize,mb={},_88f=this.child.domNode,_890=dojo.hitch(this.container,this.container._layoutChildren),de=dojo.doc.body;this._handlers=(this._handlers||[]).concat([dojo.connect(de,"onmousemove",this._drag=function(e,_893){var _894=e[axis]-_887,_895=_882*_894+_88a,_896=Math.max(Math.min(_895,max),min);if(_88d||_893){mb[dim]=_896;dojo.marginBox(_88f,mb);_890(_88b);}_888[_88b]=_882*_894+_88c+(_896-_895)+"px";}),dojo.connect(de,"onmouseup",this,"_stopDrag")]);dojo.stopEvent(e);},_stopDrag:function(e){try{if(this.cover){this.cover.style.zIndex=-1;}if(this.fake){dojo._destroyElement(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 _899=this.horizontal;var tick=1;var dk=dojo.keys;switch(e.charOrCode){case _899?dk.UP_ARROW:dk.LEFT_ARROW:tick*=-1;case _899?dk.DOWN_ARROW:dk.RIGHT_ARROW:break;default:return;}var _89c=dojo.marginBox(this.child.domNode)[_899?"h":"w"]+this._factor*tick;var mb={};mb[this.horizontal?"h":"w"]=Math.max(Math.min(_89c,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.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(_89e,_89f){this.inherited(arguments);if(this._started){dijit.layout.layoutChildren(this.domNode,this._contentBox,this.getChildren());}},removeChild:function(_8a0){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>",buildRendering:function(){this.inherited(arguments);this.containerNode=this.domNode;},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 _8a1=this.virtualSizer=dojo.doc.createElement("div");_8a1.style.position="relative";_8a1.style.zIndex=10;_8a1.className=this.isHorizontal?"dijitSplitContainerVirtualSizerH":"dijitSplitContainerVirtualSizerV";this.domNode.appendChild(_8a1);dojo.setSelectable(_8a1,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(_8a2,i,_8a4){this._setupChild(_8a2);if(i<_8a4.length-1){this._addSizer();}},this);if(this.persist){this._restoreState();}this.inherited(arguments);},_setupChild:function(_8a5){this.inherited(arguments);_8a5.domNode.style.position="absolute";dojo.addClass(_8a5.domNode,"dijitSplitPane");},_addSizer:function(){var i=this.sizers.length;var _8a7=this.sizers[i]=dojo.doc.createElement("div");this.domNode.appendChild(_8a7);_8a7.className=this.isHorizontal?"dijitSplitContainerSizerH":"dijitSplitContainerSizerV";var _8a8=dojo.doc.createElement("div");_8a8.className="thumb";_8a7.appendChild(_8a8);var self=this;var _8aa=(function(){var _8ab=i;return function(e){self.beginSizing(e,_8ab);};})();this.connect(_8a7,"onmousedown",_8aa);dojo.setSelectable(_8a7,false);},removeChild:function(_8ad){if(this.sizers.length){var i=dojo.indexOf(this.getChildren(),_8ad);if(i!=-1){if(i==this.sizers.length){i--;}dojo._destroyElement(this.sizers[i]);this.sizers.splice(i,1);}}this.inherited(arguments);if(this._started){this.layout();}},addChild:function(_8af,_8b0){this.inherited(arguments);if(this._started){var _8b1=this.getChildren();if(_8b1.length>1){this._addSizer();}this.layout();}},layout:function(){this.paneWidth=this._contentBox.w;this.paneHeight=this._contentBox.h;var _8b2=this.getChildren();if(!_8b2.length){return;}var _8b3=this.isHorizontal?this.paneWidth:this.paneHeight;if(_8b2.length>1){_8b3-=this.sizerWidth*(_8b2.length-1);}var _8b4=0;dojo.forEach(_8b2,function(_8b5){_8b4+=_8b5.sizeShare;});var _8b6=_8b3/_8b4;var _8b7=0;dojo.forEach(_8b2.slice(0,_8b2.length-1),function(_8b8){var size=Math.round(_8b6*_8b8.sizeShare);_8b8.sizeActual=size;_8b7+=size;});_8b2[_8b2.length-1].sizeActual=_8b3-_8b7;this._checkSizes();var pos=0;var size=_8b2[0].sizeActual;this._movePanel(_8b2[0],pos,size);_8b2[0].position=pos;pos+=size;if(!this.sizers){return;}dojo.some(_8b2.slice(1),function(_8bc,i){if(!this.sizers[i]){return true;}this._moveSlider(this.sizers[i],pos,this.sizerWidth);this.sizers[i].position=pos;pos+=this.sizerWidth;size=_8bc.sizeActual;this._movePanel(_8bc,pos,size);_8bc.position=pos;pos+=size;},this);},_movePanel:function(_8be,pos,size){if(this.isHorizontal){_8be.domNode.style.left=pos+"px";_8be.domNode.style.top=0;var box={w:size,h:this.paneHeight};if(_8be.resize){_8be.resize(box);}else{dojo.marginBox(_8be.domNode,box);}}else{_8be.domNode.style.left=0;_8be.domNode.style.top=pos+"px";var box={w:this.paneWidth,h:size};if(_8be.resize){_8be.resize(box);}else{dojo.marginBox(_8be.domNode,box);}}},_moveSlider:function(_8c2,pos,size){if(this.isHorizontal){_8c2.style.left=pos+"px";_8c2.style.top=0;dojo.marginBox(_8c2,{w:size,h:this.paneHeight});}else{_8c2.style.left=0;_8c2.style.top=pos+"px";dojo.marginBox(_8c2,{w:this.paneWidth,h:size});}},_growPane:function(_8c5,pane){if(_8c5>0){if(pane.sizeActual>pane.sizeMin){if((pane.sizeActual-pane.sizeMin)>_8c5){pane.sizeActual=pane.sizeActual-_8c5;_8c5=0;}else{_8c5-=pane.sizeActual-pane.sizeMin;pane.sizeActual=pane.sizeMin;}}}return _8c5;},_checkSizes:function(){var _8c7=0;var _8c8=0;var _8c9=this.getChildren();dojo.forEach(_8c9,function(_8ca){_8c8+=_8ca.sizeActual;_8c7+=_8ca.sizeMin;});if(_8c7<=_8c8){var _8cb=0;dojo.forEach(_8c9,function(_8cc){if(_8cc.sizeActual<_8cc.sizeMin){_8cb+=_8cc.sizeMin-_8cc.sizeActual;_8cc.sizeActual=_8cc.sizeMin;}});if(_8cb>0){var list=this.isDraggingLeft?_8c9.reverse():_8c9;dojo.forEach(list,function(_8ce){_8cb=this._growPane(_8cb,_8ce);},this);}}else{dojo.forEach(_8c9,function(_8cf){_8cf.sizeActual=Math.round(_8c8*(_8cf.sizeMin/_8c7));});}},beginSizing:function(e,i){var _8d2=this.getChildren();this.paneBefore=_8d2[i];this.paneAfter=_8d2[i+1];this.isSizing=true;this.sizingSplitter=this.sizers[i];if(!this.cover){this.cover=dojo.doc.createElement("div");this.domNode.appendChild(this.cover);var s=this.cover.style;s.position="absolute";s.zIndex=1;s.top=0;s.left=0;s.width="100%";s.height="100%";}else{this.cover.style.zIndex=1;}this.sizingSplitter.style.zIndex=2;this.originPos=dojo.coords(_8d2[0].domNode,true);if(this.isHorizontal){var _8d4=e.layerX||e.offsetX||0;var _8d5=e.pageX;this.originPos=this.originPos.x;}else{var _8d4=e.layerY||e.offsetY||0;var _8d5=e.pageY;this.originPos=this.originPos.y;}this.startPoint=this.lastPoint=_8d5;this.screenToClientOffset=_8d5-_8d4;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 _8de=this.paneBefore.position;var _8df=this.paneAfter.position+this.paneAfter.sizeActual;this.paneBefore.sizeActual=pos-_8de;this.paneAfter.position=pos+this.sizerWidth;this.paneAfter.sizeActual=_8df-this.paneAfter.position;dojo.forEach(this.getChildren(),function(_8e0){_8e0.sizeShare=_8e0.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(_8e3,i){var _8e5=this._getCookieName(i);var _8e6=dojo.cookie(_8e5);if(_8e6){var pos=parseInt(_8e6);if(typeof pos=="number"){_8e3.sizeShare=pos;}}},this);},_saveState:function(){if(!this.persist){return;}dojo.forEach(this.getChildren(),function(_8e8,i){dojo.cookie(this._getCookieName(i),_8e8.sizeShare,{expires:365});},this);}});dojo.extend(dijit._Widget,{sizeMin:10,sizeShare:10});}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,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 _8ea=dojo.getObject(this._controllerWidget);this.tablist=new _8ea({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");}},_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 _8ec=this.tabPosition.replace(/-h/,"");var _8ed=[{domNode:this.tablist.domNode,layoutAlign:_8ec},{domNode:this.tablistSpacer,layoutAlign:_8ec},{domNode:this.containerNode,layoutAlign:"client"}];dijit.layout.layoutChildren(this.domNode,this._contentBox,_8ed);this._containerContentBox=dijit.layout.marginBox2contentBox(this.containerNode,_8ed[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);}});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 _8ee=0;for(var pane in this.pane2button){var ow=this.pane2button[pane].innerDiv.scrollWidth;_8ee=Math.max(_8ee,ow);}for(pane in this.pane2button){this.pane2button[pane].innerDiv.style.width=_8ee+"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        <div class=\"dijitInline closeNode\" dojoAttachPoint='closeNode' dojoAttachEvent='onclick:onClickCloseButton'>\n\t        \t<img src=\"${_blankGif}\" alt=\"\" dojoAttachPoint='closeButtonNode' class='closeImage' dojoAttachEvent='onmouseenter:_onMouse, onmouseleave:_onMouse' stateModifier='CloseButton' waiRole=\"presentation\"/>\n\t            <span dojoAttachPoint='closeText' class='closeText'>x</span>\n\t        </div>\n        </div>\n    </div>\n</div>\n",_scroll:false,postCreate:function(){if(this.closeButton){dojo.addClass(this.innerDiv,"dijitClosable");var _8f1=dojo.i18n.getLocalization("dijit","common");if(this.closeNode){dojo.attr(this.closeNode,"title",_8f1.itemClose);dojo.attr(this.closeButtonNode,"title",_8f1.itemClose);}}else{this.closeNode.style.display="none";}this.inherited(arguments);dojo.setSelectable(this.containerNode,false);}});}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",["he","nl","tr","no","ko","el","en","en-gb","ROOT","zh-cn","hu","es","fi-fi","pt-br","ca","fi","he-il","xx","ru","it","fr","cs","de-de","fr-fr","it-it","es-es","ja","sk","da","sl","pl","de","sv","pt","pt-pt","nl-nl","zh-tw","ko-kr","ar","en-us","zh","th","ja-jp"]);
