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

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

		http://dojotoolkit.org

	for documentation and information on getting the source.
*/

if(!dojo._hasResource["dojo.colors"]){dojo._hasResource["dojo.colors"]=true;dojo.provide("dojo.colors");(function(){var _1=function(m1,m2,h){if(h<0){++h;}if(h>1){--h;}var h6=6*h;if(h6<1){return m1+(m2-m1)*h6;}if(2*h<1){return m2;}if(3*h<2){return m1+(m2-m1)*(2/3-h)*6;}return m1;};dojo.colorFromRgb=function(_6,_7){var m=_6.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(m){var c=m[2].split(/\s*,\s*/),l=c.length,t=m[1],a;if((t=="rgb"&&l==3)||(t=="rgba"&&l==4)){var r=c[0];if(r.charAt(r.length-1)=="%"){a=dojo.map(c,function(x){return parseFloat(x)*2.56;});if(l==4){a[3]=c[3];}return dojo.colorFromArray(a,_7);}return dojo.colorFromArray(c,_7);}if((t=="hsl"&&l==3)||(t=="hsla"&&l==4)){var H=((parseFloat(c[0])%360)+360)%360/360,S=parseFloat(c[1])/100,L=parseFloat(c[2])/100,m2=L<=0.5?L*(S+1):L+S-L*S,m1=2*L-m2;a=[_1(m1,m2,H+1/3)*256,_1(m1,m2,H)*256,_1(m1,m2,H-1/3)*256,1];if(l==4){a[3]=c[3];}return dojo.colorFromArray(a,_7);}}return null;};var _14=function(c,low,_17){c=Number(c);return isNaN(c)?_17:c<low?low:c>_17?_17:c;};dojo.Color.prototype.sanitize=function(){var t=this;t.r=Math.round(_14(t.r,0,255));t.g=Math.round(_14(t.g,0,255));t.b=Math.round(_14(t.b,0,255));t.a=_14(t.a,0,1);return this;};})();dojo.colors.makeGrey=function(g,a){return dojo.colorFromArray([g,g,g,a]);};dojo.mixin(dojo.Color.named,{aliceblue:[240,248,255],antiquewhite:[250,235,215],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],blanchedalmond:[255,235,205],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],oldlace:[253,245,230],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],thistle:[216,191,216],tomato:[255,99,71],transparent:[0,0,0,0],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],whitesmoke:[245,245,245],yellowgreen:[154,205,50]});}if(!dojo._hasResource["dojo.i18n"]){dojo._hasResource["dojo.i18n"]=true;dojo.provide("dojo.i18n");dojo.i18n.getLocalization=function(_1b,_1c,_1d){_1d=dojo.i18n.normalizeLocale(_1d);var _1e=_1d.split("-");var _1f=[_1b,"nls",_1c].join(".");var _20=dojo._loadedModules[_1f];if(_20){var _21;for(var i=_1e.length;i>0;i--){var loc=_1e.slice(0,i).join("_");if(_20[loc]){_21=_20[loc];break;}}if(!_21){_21=_20.ROOT;}if(_21){var _24=function(){};_24.prototype=_21;return new _24();}}throw new Error("Bundle not found: "+_1c+" in "+_1b+" , locale="+_1d);};dojo.i18n.normalizeLocale=function(_25){var _26=_25?_25.toLowerCase():dojo.locale;if(_26=="root"){_26="ROOT";}return _26;};dojo.i18n._requireLocalization=function(_27,_28,_29,_2a){var _2b=dojo.i18n.normalizeLocale(_29);var _2c=[_27,"nls",_28].join(".");var _2d="";if(_2a){var _2e=_2a.split(",");for(var i=0;i<_2e.length;i++){if(_2b["indexOf"](_2e[i])==0){if(_2e[i].length>_2d.length){_2d=_2e[i];}}}if(!_2d){_2d="ROOT";}}var _30=_2a?_2d:_2b;var _31=dojo._loadedModules[_2c];var _32=null;if(_31){if(dojo.config.localizationComplete&&_31._built){return;}var _33=_30.replace(/-/g,"_");var _34=_2c+"."+_33;_32=dojo._loadedModules[_34];}if(!_32){_31=dojo["provide"](_2c);var _35=dojo._getModuleSymbols(_27);var _36=_35.concat("nls").join("/");var _37;dojo.i18n._searchLocalePath(_30,_2a,function(loc){var _39=loc.replace(/-/g,"_");var _3a=_2c+"."+_39;var _3b=false;if(!dojo._loadedModules[_3a]){dojo["provide"](_3a);var _3c=[_36];if(loc!="ROOT"){_3c.push(loc);}_3c.push(_28);var _3d=_3c.join("/")+".js";_3b=dojo._loadPath(_3d,null,function(_3e){var _3f=function(){};_3f.prototype=_37;_31[_39]=new _3f();for(var j in _3e){_31[_39][j]=_3e[j];}});}else{_3b=true;}if(_3b&&_31[_39]){_37=_31[_39];}else{_31[_39]=_37;}if(_2a){return true;}});}if(_2a&&_2b!=_2d){_31[_2b.replace(/-/g,"_")]=_31[_2d.replace(/-/g,"_")];}};(function(){var _41=dojo.config.extraLocale;if(_41){if(!_41 instanceof Array){_41=[_41];}var req=dojo.i18n._requireLocalization;dojo.i18n._requireLocalization=function(m,b,_45,_46){req(m,b,_45,_46);if(_45){return;}for(var i=0;i<_41.length;i++){req(m,b,_41[i],_46);}};}})();dojo.i18n._searchLocalePath=function(_48,_49,_4a){_48=dojo.i18n.normalizeLocale(_48);var _4b=_48.split("-");var _4c=[];for(var i=_4b.length;i>0;i--){_4c.push(_4b.slice(0,i).join("-"));}_4c.push(false);if(_49){_4c.reverse();}for(var j=_4c.length-1;j>=0;j--){var loc=_4c[j]||"ROOT";var _50=_4a(loc);if(_50){break;}}};dojo.i18n._preloadLocalizations=function(_51,_52){function _53(_54){_54=dojo.i18n.normalizeLocale(_54);dojo.i18n._searchLocalePath(_54,true,function(loc){for(var i=0;i<_52.length;i++){if(_52[i]==loc){dojo["require"](_51+"_"+loc);return true;}}return false;});};_53();var _57=dojo.config.extraLocale||[];for(var i=0;i<_57.length;i++){_53(_57[i]);}};}if(!dojo._hasResource["dijit.ColorPalette"]){dojo._hasResource["dijit.ColorPalette"]=true;dojo.provide("dijit.ColorPalette");dojo.declare("dijit.ColorPalette",[dijit._Widget,dijit._Templated],{defaultTimeout:500,timeoutChangeRate:0.9,palette:"7x10",value:null,_currentFocus:0,_xDim:null,_yDim:null,_palettes:{"7x10":[["white","seashell","cornsilk","lemonchiffon","lightyellow","palegreen","paleturquoise","lightcyan","lavender","plum"],["lightgray","pink","bisque","moccasin","khaki","lightgreen","lightseagreen","lightskyblue","cornflowerblue","violet"],["silver","lightcoral","sandybrown","orange","palegoldenrod","chartreuse","mediumturquoise","skyblue","mediumslateblue","orchid"],["gray","red","orangered","darkorange","yellow","limegreen","darkseagreen","royalblue","slateblue","mediumorchid"],["dimgray","crimson","chocolate","coral","gold","forestgreen","seagreen","blue","blueviolet","darkorchid"],["darkslategray","firebrick","saddlebrown","sienna","olive","green","darkcyan","mediumblue","darkslateblue","darkmagenta"],["black","darkred","maroon","brown","darkolivegreen","darkgreen","midnightblue","navy","indigo","purple"]],"3x4":[["white","lime","green","blue"],["silver","yellow","fuchsia","navy"],["gray","red","purple","black"]]},_imagePaths:{"7x10":dojo.moduleUrl("dijit.themes","a11y/colors7x10.png"),"3x4":dojo.moduleUrl("dijit.themes","a11y/colors3x4.png")},_paletteCoords:{"leftOffset":3,"topOffset":3,"cWidth":20,"cHeight":20},templateString:"<div class=\"dijitInline dijitColorPalette\">\n\t<div class=\"dijitColorPaletteInner\" dojoAttachPoint=\"divNode\" waiRole=\"grid\" tabIndex=\"${tabIndex}\">\n\t\t<img class=\"dijitColorPaletteUnder\" dojoAttachPoint=\"imageNode\" waiRole=\"presentation\">\n\t</div>\t\n</div>\n",_paletteDims:{"7x10":{"width":"206px","height":"145px"},"3x4":{"width":"86px","height":"64px"}},tabIndex:"0",postCreate:function(){dojo.mixin(this.divNode.style,this._paletteDims[this.palette]);this.imageNode.setAttribute("src",this._imagePaths[this.palette]);var _59=this._palettes[this.palette];this.domNode.style.position="relative";this._cellNodes=[];this.colorNames=dojo.i18n.getLocalization("dojo","colors",this.lang);var url=this._blankGif,_5b=new dojo.Color(),_5c=this._paletteCoords;for(var row=0;row<_59.length;row++){for(var col=0;col<_59[row].length;col++){var _5f=_59[row][col],_60=_5b.setColor(dojo.Color.named[_5f]);var _61=dojo.create("span",{"class":"dijitPaletteCell","tabindex":"-1",title:this.colorNames[_5f],style:{top:_5c.topOffset+(row*_5c.cHeight)+"px",left:_5c.leftOffset+(col*_5c.cWidth)+"px"}});var _62=dojo.create("img",{src:url,"class":"dijitPaletteImg",alt:this.colorNames[_5f]},_61);_62.color=_60.toHex();var _63=_62.style;_63.color=_63.backgroundColor=_62.color;dojo.forEach(["Dijitclick","MouseEnter","Focus","Blur"],function(_64){this.connect(_61,"on"+_64.toLowerCase(),"_onCell"+_64);},this);dojo.place(_61,this.divNode);dijit.setWaiRole(_61,"gridcell");_61.index=this._cellNodes.length;this._cellNodes.push(_61);}}this._xDim=_59[0].length;this._yDim=_59.length;this.connect(this.divNode,"onfocus","_onDivNodeFocus");var _65={UP_ARROW:-this._xDim,DOWN_ARROW:this._xDim,RIGHT_ARROW:1,LEFT_ARROW:-1};for(var key in _65){this._connects.push(dijit.typematic.addKeyListener(this.domNode,{charOrCode:dojo.keys[key],ctrlKey:false,altKey:false,shiftKey:false},this,function(){var _67=_65[key];return function(_68){this._navigateByKey(_67,_68);};}(),this.timeoutChangeRate,this.defaultTimeout));}},focus:function(){this._focusFirst();},onChange:function(_69){},_focusFirst:function(){this._currentFocus=0;var _6a=this._cellNodes[this._currentFocus];window.setTimeout(function(){dijit.focus(_6a);},0);},_onDivNodeFocus:function(evt){if(evt.target===this.divNode){this._focusFirst();}},_onFocus:function(){dojo.attr(this.divNode,"tabindex","-1");},_onBlur:function(){this._removeCellHighlight(this._currentFocus);dojo.attr(this.divNode,"tabindex",this.tabIndex);},_onCellDijitclick:function(evt){var _6d=evt.currentTarget;if(this._currentFocus!=_6d.index){this._currentFocus=_6d.index;window.setTimeout(function(){dijit.focus(_6d);},0);}this._selectColor(_6d);dojo.stopEvent(evt);},_onCellMouseEnter:function(evt){var _6f=evt.currentTarget;this._setCurrent(_6f);window.setTimeout(function(){dijit.focus(_6f);},0);},_onCellFocus:function(evt){this._setCurrent(evt.currentTarget);},_setCurrent:function(_71){this._removeCellHighlight(this._currentFocus);this._currentFocus=_71.index;dojo.addClass(_71,"dijitPaletteCellHighlight");},_onCellBlur:function(evt){this._removeCellHighlight(this._currentFocus);},_removeCellHighlight:function(_73){dojo.removeClass(this._cellNodes[_73],"dijitPaletteCellHighlight");},_selectColor:function(_74){var img=_74.getElementsByTagName("img")[0];this.onChange(this.value=img.color);},_navigateByKey:function(_76,_77){if(_77==-1){return;}var _78=this._currentFocus+_76;if(_78<this._cellNodes.length&&_78>-1){var _79=this._cellNodes[_78];_79.focus();}}});}if(!dojo._hasResource["dijit.Declaration"]){dojo._hasResource["dijit.Declaration"]=true;dojo.provide("dijit.Declaration");dojo.declare("dijit.Declaration",dijit._Widget,{_noScript:true,widgetClass:"",defaults:null,mixins:[],buildRendering:function(){var src=this.srcNodeRef.parentNode.removeChild(this.srcNodeRef),_7b=dojo.query("> script[type^='dojo/method'][event]",src).orphan(),_7c=dojo.query("> script[type^='dojo/method']",src).orphan(),_7d=dojo.query("> script[type^='dojo/connect']",src).orphan(),_7e=src.nodeName;var _7f=this.defaults||{};dojo.forEach(_7b,function(s){var evt=s.getAttribute("event"),_82=dojo.parser._functionFromScript(s);_7f[evt]=_82;});this.mixins=this.mixins.length?dojo.map(this.mixins,function(_83){return dojo.getObject(_83);}):[dijit._Widget,dijit._Templated];_7f.widgetsInTemplate=true;_7f._skipNodeCache=true;_7f.templateString="<"+_7e+" class='"+src.className+"' dojoAttachPoint='"+(src.getAttribute("dojoAttachPoint")||"")+"' dojoAttachEvent='"+(src.getAttribute("dojoAttachEvent")||"")+"' >"+src.innerHTML.replace(/\%7B/g,"{").replace(/\%7D/g,"}")+"</"+_7e+">";dojo.query("[dojoType]",src).forEach(function(_84){_84.removeAttribute("dojoType");});var wc=dojo.declare(this.widgetClass,this.mixins,_7f);var _86=_7d.concat(_7c);dojo.forEach(_86,function(s){var evt=s.getAttribute("event")||"postscript",_89=dojo.parser._functionFromScript(s);dojo.connect(wc.prototype,evt,_89);});}});}if(!dojo._hasResource["dojo.dnd.common"]){dojo._hasResource["dojo.dnd.common"]=true;dojo.provide("dojo.dnd.common");dojo.dnd._isMac=navigator.appVersion.indexOf("Macintosh")>=0;dojo.dnd._copyKey=dojo.dnd._isMac?"metaKey":"ctrlKey";dojo.dnd.getCopyKeyState=function(e){return e[dojo.dnd._copyKey];};dojo.dnd._uniqueId=0;dojo.dnd.getUniqueId=function(){var id;do{id=dojo._scopeName+"Unique"+(++dojo.dnd._uniqueId);}while(dojo.byId(id));return id;};dojo.dnd._empty={};dojo.dnd.isFormElement=function(e){var t=e.target;if(t.nodeType==3){t=t.parentNode;}return " button textarea input select option ".indexOf(" "+t.tagName.toLowerCase()+" ")>=0;};dojo.dnd._lmb=dojo.isIE?1:0;dojo.dnd._isLmbPressed=dojo.isIE?function(e){return e.button&1;}:function(e){return e.button===0;};}if(!dojo._hasResource["dojo.dnd.autoscroll"]){dojo._hasResource["dojo.dnd.autoscroll"]=true;dojo.provide("dojo.dnd.autoscroll");dojo.dnd.getViewport=function(){var d=dojo.doc,dd=d.documentElement,w=window,b=dojo.body();if(dojo.isMozilla){return {w:dd.clientWidth,h:w.innerHeight};}else{if(!dojo.isOpera&&w.innerWidth){return {w:w.innerWidth,h:w.innerHeight};}else{if(!dojo.isOpera&&dd&&dd.clientWidth){return {w:dd.clientWidth,h:dd.clientHeight};}else{if(b.clientWidth){return {w:b.clientWidth,h:b.clientHeight};}}}}return null;};dojo.dnd.V_TRIGGER_AUTOSCROLL=32;dojo.dnd.H_TRIGGER_AUTOSCROLL=32;dojo.dnd.V_AUTOSCROLL_VALUE=16;dojo.dnd.H_AUTOSCROLL_VALUE=16;dojo.dnd.autoScroll=function(e){var v=dojo.dnd.getViewport(),dx=0,dy=0;if(e.clientX<dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=-dojo.dnd.H_AUTOSCROLL_VALUE;}else{if(e.clientX>v.w-dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=dojo.dnd.H_AUTOSCROLL_VALUE;}}if(e.clientY<dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=-dojo.dnd.V_AUTOSCROLL_VALUE;}else{if(e.clientY>v.h-dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=dojo.dnd.V_AUTOSCROLL_VALUE;}}window.scrollBy(dx,dy);};dojo.dnd._validNodes={"div":1,"p":1,"td":1};dojo.dnd._validOverflow={"auto":1,"scroll":1};dojo.dnd.autoScrollNodes=function(e){for(var n=e.target;n;){if(n.nodeType==1&&(n.tagName.toLowerCase() in dojo.dnd._validNodes)){var s=dojo.getComputedStyle(n);if(s.overflow.toLowerCase() in dojo.dnd._validOverflow){var b=dojo._getContentBox(n,s),t=dojo._abs(n,true);var w=Math.min(dojo.dnd.H_TRIGGER_AUTOSCROLL,b.w/2),h=Math.min(dojo.dnd.V_TRIGGER_AUTOSCROLL,b.h/2),rx=e.pageX-t.x,ry=e.pageY-t.y,dx=0,dy=0;if(dojo.isWebKit||dojo.isOpera){rx+=dojo.body().scrollLeft,ry+=dojo.body().scrollTop;}if(rx>0&&rx<b.w){if(rx<w){dx=-w;}else{if(rx>b.w-w){dx=w;}}}if(ry>0&&ry<b.h){if(ry<h){dy=-h;}else{if(ry>b.h-h){dy=h;}}}var _a3=n.scrollLeft,_a4=n.scrollTop;n.scrollLeft=n.scrollLeft+dx;n.scrollTop=n.scrollTop+dy;if(_a3!=n.scrollLeft||_a4!=n.scrollTop){return;}}}try{n=n.parentNode;}catch(x){n=null;}}dojo.dnd.autoScroll(e);};}if(!dojo._hasResource["dojo.dnd.Mover"]){dojo._hasResource["dojo.dnd.Mover"]=true;dojo.provide("dojo.dnd.Mover");dojo.declare("dojo.dnd.Mover",null,{constructor:function(_a5,e,_a7){this.node=dojo.byId(_a5);this.marginBox={l:e.pageX,t:e.pageY};this.mouseButton=e.button;var h=this.host=_a7,d=_a5.ownerDocument,_aa=dojo.connect(d,"onmousemove",this,"onFirstMove");this.events=[dojo.connect(d,"onmousemove",this,"onMouseMove"),dojo.connect(d,"onmouseup",this,"onMouseUp"),dojo.connect(d,"ondragstart",dojo.stopEvent),dojo.connect(d.body,"onselectstart",dojo.stopEvent),_aa];if(h&&h.onMoveStart){h.onMoveStart(this);}},onMouseMove:function(e){dojo.dnd.autoScroll(e);var m=this.marginBox;this.host.onMove(this,{l:m.l+e.pageX,t:m.t+e.pageY});dojo.stopEvent(e);},onMouseUp:function(e){if(dojo.isWebKit&&dojo.dnd._isMac&&this.mouseButton==2?e.button==0:this.mouseButton==e.button){this.destroy();}dojo.stopEvent(e);},onFirstMove:function(){var s=this.node.style,l,t,h=this.host;switch(s.position){case "relative":case "absolute":l=Math.round(parseFloat(s.left));t=Math.round(parseFloat(s.top));break;default:s.position="absolute";var m=dojo.marginBox(this.node);var b=dojo.doc.body;var bs=dojo.getComputedStyle(b);var bm=dojo._getMarginBox(b,bs);var bc=dojo._getContentBox(b,bs);l=m.l-(bc.l-bm.l);t=m.t-(bc.t-bm.t);break;}this.marginBox.l=l-this.marginBox.l;this.marginBox.t=t-this.marginBox.t;if(h&&h.onFirstMove){h.onFirstMove(this);}dojo.disconnect(this.events.pop());},destroy:function(){dojo.forEach(this.events,dojo.disconnect);var h=this.host;if(h&&h.onMoveStop){h.onMoveStop(this);}this.events=this.node=this.host=null;}});}if(!dojo._hasResource["dojo.dnd.Moveable"]){dojo._hasResource["dojo.dnd.Moveable"]=true;dojo.provide("dojo.dnd.Moveable");dojo.declare("dojo.dnd.Moveable",null,{handle:"",delay:0,skip:false,constructor:function(_b8,_b9){this.node=dojo.byId(_b8);if(!_b9){_b9={};}this.handle=_b9.handle?dojo.byId(_b9.handle):null;if(!this.handle){this.handle=this.node;}this.delay=_b9.delay>0?_b9.delay:0;this.skip=_b9.skip;this.mover=_b9.mover?_b9.mover:dojo.dnd.Mover;this.events=[dojo.connect(this.handle,"onmousedown",this,"onMouseDown"),dojo.connect(this.handle,"ondragstart",this,"onSelectStart"),dojo.connect(this.handle,"onselectstart",this,"onSelectStart")];},markupFactory:function(_ba,_bb){return new dojo.dnd.Moveable(_bb,_ba);},destroy:function(){dojo.forEach(this.events,dojo.disconnect);this.events=this.node=this.handle=null;},onMouseDown:function(e){if(this.skip&&dojo.dnd.isFormElement(e)){return;}if(this.delay){this.events.push(dojo.connect(this.handle,"onmousemove",this,"onMouseMove"),dojo.connect(this.handle,"onmouseup",this,"onMouseUp"));this._lastX=e.pageX;this._lastY=e.pageY;}else{this.onDragDetected(e);}dojo.stopEvent(e);},onMouseMove:function(e){if(Math.abs(e.pageX-this._lastX)>this.delay||Math.abs(e.pageY-this._lastY)>this.delay){this.onMouseUp(e);this.onDragDetected(e);}dojo.stopEvent(e);},onMouseUp:function(e){for(var i=0;i<2;++i){dojo.disconnect(this.events.pop());}dojo.stopEvent(e);},onSelectStart:function(e){if(!this.skip||!dojo.dnd.isFormElement(e)){dojo.stopEvent(e);}},onDragDetected:function(e){new this.mover(this.node,e,this);},onMoveStart:function(_c2){dojo.publish("/dnd/move/start",[_c2]);dojo.addClass(dojo.body(),"dojoMove");dojo.addClass(this.node,"dojoMoveItem");},onMoveStop:function(_c3){dojo.publish("/dnd/move/stop",[_c3]);dojo.removeClass(dojo.body(),"dojoMove");dojo.removeClass(this.node,"dojoMoveItem");},onFirstMove:function(_c4){},onMove:function(_c5,_c6){this.onMoving(_c5,_c6);var s=_c5.node.style;s.left=_c6.l+"px";s.top=_c6.t+"px";this.onMoved(_c5,_c6);},onMoving:function(_c8,_c9){},onMoved:function(_ca,_cb){}});}if(!dojo._hasResource["dojo.dnd.move"]){dojo._hasResource["dojo.dnd.move"]=true;dojo.provide("dojo.dnd.move");dojo.declare("dojo.dnd.move.constrainedMoveable",dojo.dnd.Moveable,{constraints:function(){},within:false,markupFactory:function(_cc,_cd){return new dojo.dnd.move.constrainedMoveable(_cd,_cc);},constructor:function(_ce,_cf){if(!_cf){_cf={};}this.constraints=_cf.constraints;this.within=_cf.within;},onFirstMove:function(_d0){var c=this.constraintBox=this.constraints.call(this,_d0);c.r=c.l+c.w;c.b=c.t+c.h;if(this.within){var mb=dojo.marginBox(_d0.node);c.r-=mb.w;c.b-=mb.h;}},onMove:function(_d3,_d4){var c=this.constraintBox,s=_d3.node.style;s.left=(_d4.l<c.l?c.l:c.r<_d4.l?c.r:_d4.l)+"px";s.top=(_d4.t<c.t?c.t:c.b<_d4.t?c.b:_d4.t)+"px";}});dojo.declare("dojo.dnd.move.boxConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{box:{},markupFactory:function(_d7,_d8){return new dojo.dnd.move.boxConstrainedMoveable(_d8,_d7);},constructor:function(_d9,_da){var box=_da&&_da.box;this.constraints=function(){return box;};}});dojo.declare("dojo.dnd.move.parentConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(_dc,_dd){return new dojo.dnd.move.parentConstrainedMoveable(_dd,_dc);},constructor:function(_de,_df){var _e0=_df&&_df.area;this.constraints=function(){var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);if(_e0=="margin"){return mb;}var t=dojo._getMarginExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(_e0=="border"){return mb;}t=dojo._getBorderExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(_e0=="padding"){return mb;}t=dojo._getPadExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;return mb;};}});dojo.dnd.move.constrainedMover=function(fun,_e6){dojo.deprecated("dojo.dnd.move.constrainedMover, use dojo.dnd.move.constrainedMoveable instead");var _e7=function(_e8,e,_ea){dojo.dnd.Mover.call(this,_e8,e,_ea);};dojo.extend(_e7,dojo.dnd.Mover.prototype);dojo.extend(_e7,{onMouseMove:function(e){dojo.dnd.autoScroll(e);var m=this.marginBox,c=this.constraintBox,l=m.l+e.pageX,t=m.t+e.pageY;l=l<c.l?c.l:c.r<l?c.r:l;t=t<c.t?c.t:c.b<t?c.b:t;this.host.onMove(this,{l:l,t:t});},onFirstMove:function(){dojo.dnd.Mover.prototype.onFirstMove.call(this);var c=this.constraintBox=fun.call(this);c.r=c.l+c.w;c.b=c.t+c.h;if(_e6){var mb=dojo.marginBox(this.node);c.r-=mb.w;c.b-=mb.h;}}});return _e7;};dojo.dnd.move.boxConstrainedMover=function(box,_f3){dojo.deprecated("dojo.dnd.move.boxConstrainedMover, use dojo.dnd.move.boxConstrainedMoveable instead");return dojo.dnd.move.constrainedMover(function(){return box;},_f3);};dojo.dnd.move.parentConstrainedMover=function(_f4,_f5){dojo.deprecated("dojo.dnd.move.parentConstrainedMover, use dojo.dnd.move.parentConstrainedMoveable instead");var fun=function(){var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);if(_f4=="margin"){return mb;}var t=dojo._getMarginExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(_f4=="border"){return mb;}t=dojo._getBorderExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(_f4=="padding"){return mb;}t=dojo._getPadExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;return mb;};return dojo.dnd.move.constrainedMover(fun,_f5);};dojo.dnd.constrainedMover=dojo.dnd.move.constrainedMover;dojo.dnd.boxConstrainedMover=dojo.dnd.move.boxConstrainedMover;dojo.dnd.parentConstrainedMover=dojo.dnd.move.parentConstrainedMover;}if(!dojo._hasResource["dojo.dnd.TimedMoveable"]){dojo._hasResource["dojo.dnd.TimedMoveable"]=true;dojo.provide("dojo.dnd.TimedMoveable");(function(){var _fb=dojo.dnd.Moveable.prototype.onMove;dojo.declare("dojo.dnd.TimedMoveable",dojo.dnd.Moveable,{timeout:40,constructor:function(_fc,_fd){if(!_fd){_fd={};}if(_fd.timeout&&typeof _fd.timeout=="number"&&_fd.timeout>=0){this.timeout=_fd.timeout;}},markupFactory:function(_fe,_ff){return new dojo.dnd.TimedMoveable(_ff,_fe);},onMoveStop:function(_100){if(_100._timer){clearTimeout(_100._timer);_fb.call(this,_100,_100._leftTop);}dojo.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);},onMove:function(_101,_102){_101._leftTop=_102;if(!_101._timer){var _t=this;_101._timer=setTimeout(function(){_101._timer=null;_fb.call(_t,_101,_101._leftTop);},this.timeout);}}});})();}if(!dojo._hasResource["dojo.fx.Toggler"]){dojo._hasResource["dojo.fx.Toggler"]=true;dojo.provide("dojo.fx.Toggler");dojo.declare("dojo.fx.Toggler",null,{constructor:function(args){var _t=this;dojo.mixin(_t,args);_t.node=args.node;_t._showArgs=dojo.mixin({},args);_t._showArgs.node=_t.node;_t._showArgs.duration=_t.showDuration;_t.showAnim=_t.showFunc(_t._showArgs);_t._hideArgs=dojo.mixin({},args);_t._hideArgs.node=_t.node;_t._hideArgs.duration=_t.hideDuration;_t.hideAnim=_t.hideFunc(_t._hideArgs);dojo.connect(_t.showAnim,"beforeBegin",dojo.hitch(_t.hideAnim,"stop",true));dojo.connect(_t.hideAnim,"beforeBegin",dojo.hitch(_t.showAnim,"stop",true));},node:null,showFunc:dojo.fadeIn,hideFunc:dojo.fadeOut,showDuration:200,hideDuration:200,show:function(_106){return this.showAnim.play(_106||0);},hide:function(_107){return this.hideAnim.play(_107||0);}});}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");(function(){var d=dojo,_109={_fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[]);}return this;}};var _10c=function(_10d){this._index=-1;this._animations=_10d||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;d.forEach(this._animations,function(a){this.duration+=a.duration;if(a.delay){this.duration+=a.delay;}},this);};d.extend(_10c,{_onAnimate:function(){this._fire("onAnimate",arguments);},_onEnd:function(){d.disconnect(this._onAnimateCtx);d.disconnect(this._onEndCtx);this._onAnimateCtx=this._onEndCtx=null;if(this._index+1==this._animations.length){this._fire("onEnd");}else{this._current=this._animations[++this._index];this._onAnimateCtx=d.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");this._current.play(0,true);}},play:function(_10f,_110){if(!this._current){this._current=this._animations[this._index=0];}if(!_110&&this._current.status()=="playing"){return this;}var _111=d.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_112=d.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_114=d.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);d.disconnect(_111);d.disconnect(_112);d.disconnect(_114);});if(this._onAnimateCtx){d.disconnect(this._onAnimateCtx);}this._onAnimateCtx=d.connect(this._current,"onAnimate",this,"_onAnimate");if(this._onEndCtx){d.disconnect(this._onEndCtx);}this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");this._current.play.apply(this._current,arguments);return this;},pause:function(){if(this._current){var e=d.connect(this._current,"onPause",this,function(arg){this._fire("onPause",arguments);d.disconnect(e);});this._current.pause();}return this;},gotoPercent:function(_118,_119){this.pause();var _11a=this.duration*_118;this._current=null;d.some(this._animations,function(a){if(a.duration<=_11a){this._current=a;return true;}_11a-=a.duration;return false;});if(this._current){this._current.gotoPercent(_11a/this._current.duration,_119);}return this;},stop:function(_11c){if(this._current){if(_11c){for(;this._index+1<this._animations.length;++this._index){this._animations[this._index].stop(true);}this._current=this._animations[this._index];}var e=d.connect(this._current,"onStop",this,function(arg){this._fire("onStop",arguments);d.disconnect(e);});this._current.stop();}return this;},status:function(){return this._current?this._current.status():"stopped";},destroy:function(){if(this._onAnimateCtx){d.disconnect(this._onAnimateCtx);}if(this._onEndCtx){d.disconnect(this._onEndCtx);}}});d.extend(_10c,_109);dojo.fx.chain=function(_11f){return new _10c(_11f);};var _120=function(_121){this._animations=_121||[];this._connects=[];this._finished=0;this.duration=0;d.forEach(_121,function(a){var _123=a.duration;if(a.delay){_123+=a.delay;}if(this.duration<_123){this.duration=_123;}this._connects.push(d.connect(a,"onEnd",this,"_onEnd"));},this);this._pseudoAnimation=new d._Animation({curve:[0,1],duration:this.duration});var self=this;d.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop"],function(evt){self._connects.push(d.connect(self._pseudoAnimation,evt,function(){self._fire(evt,arguments);}));});};d.extend(_120,{_doAction:function(_126,args){d.forEach(this._animations,function(a){a[_126].apply(a,args);});return this;},_onEnd:function(){if(++this._finished==this._animations.length){this._fire("onEnd");}},_call:function(_129,args){var t=this._pseudoAnimation;t[_129].apply(t,args);},play:function(_12c,_12d){this._finished=0;this._doAction("play",arguments);this._call("play",arguments);return this;},pause:function(){this._doAction("pause",arguments);this._call("pause",arguments);return this;},gotoPercent:function(_12e,_12f){var ms=this.duration*_12e;d.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_12f);});this._call("gotoPercent",arguments);return this;},stop:function(_132){this._doAction("stop",arguments);this._call("stop",arguments);return this;},status:function(){return this._pseudoAnimation.status();},destroy:function(){d.forEach(this._connects,dojo.disconnect);}});d.extend(_120,_109);dojo.fx.combine=function(_133){return new _120(_133);};dojo.fx.wipeIn=function(args){args.node=d.byId(args.node);var node=args.node,s=node.style,o;var anim=d.animateProperty(d.mixin({properties:{height:{start:function(){o=s.overflow;s.overflow="hidden";if(s.visibility=="hidden"||s.display=="none"){s.height="1px";s.display="";s.visibility="";return 1;}else{var _139=d.style(node,"height");return Math.max(_139,1);}},end:function(){return node.scrollHeight;}}}},args));d.connect(anim,"onEnd",function(){s.height="auto";s.overflow=o;});return anim;};dojo.fx.wipeOut=function(args){var node=args.node=d.byId(args.node),s=node.style,o;var anim=d.animateProperty(d.mixin({properties:{height:{end:1}}},args));d.connect(anim,"beforeBegin",function(){o=s.overflow;s.overflow="hidden";s.display="";});d.connect(anim,"onEnd",function(){s.overflow=o;s.height="auto";s.display="none";});return anim;};dojo.fx.slideTo=function(args){var node=args.node=d.byId(args.node),top=null,left=null;var init=(function(n){return function(){var cs=d.getComputedStyle(n);var pos=cs.position;top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);left=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);if(pos!="absolute"&&pos!="relative"){var ret=d.coords(n,true);top=ret.y;left=ret.x;n.style.position="absolute";n.style.top=top+"px";n.style.left=left+"px";}};})(node);init();var anim=d.animateProperty(d.mixin({properties:{top:args.top||0,left:args.left||0}},args));d.connect(anim,"beforeBegin",anim,init);return anim;};})();}if(!dojo._hasResource["dijit.form._FormMixin"]){dojo._hasResource["dijit.form._FormMixin"]=true;dojo.provide("dijit.form._FormMixin");dojo.declare("dijit.form._FormMixin",null,{reset:function(){dojo.forEach(this.getDescendants(),function(_149){if(_149.reset){_149.reset();}});},validate:function(){var _14a=false;return dojo.every(dojo.map(this.getDescendants(),function(_14b){_14b._hasBeenBlurred=true;var _14c=_14b.disabled||!_14b.validate||_14b.validate();if(!_14c&&!_14a){dijit.scrollIntoView(_14b.containerNode||_14b.domNode);_14b.focus();_14a=true;}return _14c;}),function(item){return item;});},setValues:function(val){dojo.deprecated(this.declaredClass+"::setValues() is deprecated. Use attr('value', val) instead.","","2.0");return this.attr("value",val);},_setValueAttr:function(obj){var map={};dojo.forEach(this.getDescendants(),function(_151){if(!_151.name){return;}var _152=map[_151.name]||(map[_151.name]=[]);_152.push(_151);});for(var name in map){if(!map.hasOwnProperty(name)){continue;}var _154=map[name],_155=dojo.getObject(name,false,obj);if(_155===undefined){continue;}if(!dojo.isArray(_155)){_155=[_155];}if(typeof _154[0].checked=="boolean"){dojo.forEach(_154,function(w,i){w.attr("value",dojo.indexOf(_155,w.value)!=-1);});}else{if(_154[0]._multiValue){_154[0].attr("value",_155);}else{dojo.forEach(_154,function(w,i){w.attr("value",_155[i]);});}}}},getValues:function(){dojo.deprecated(this.declaredClass+"::getValues() is deprecated. Use attr('value') instead.","","2.0");return this.attr("value");},_getValueAttr:function(){var obj={};dojo.forEach(this.getDescendants(),function(_15b){var name=_15b.name;if(!name||_15b.disabled){return;}var _15d=_15b.attr("value");if(typeof _15b.checked=="boolean"){if(/Radio/.test(_15b.declaredClass)){if(_15d!==false){dojo.setObject(name,_15d,obj);}else{_15d=dojo.getObject(name,false,obj);if(_15d===undefined){dojo.setObject(name,null,obj);}}}else{var ary=dojo.getObject(name,false,obj);if(!ary){ary=[];dojo.setObject(name,ary,obj);}if(_15d!==false){ary.push(_15d);}}}else{dojo.setObject(name,_15d,obj);}});return obj;},isValid:function(){this._invalidWidgets=[];return dojo.every(this.getDescendants(),function(_15f){var _160=_15f.disabled||!_15f.isValid||_15f.isValid();if(!_160){this._invalidWidgets.push(_15f);}return _160;},this);},onValidStateChange:function(_161){},_widgetChange:function(_162){var _163=this._lastValidState;if(!_162||this._lastValidState===undefined){_163=this.isValid();if(this._lastValidState===undefined){this._lastValidState=_163;}}else{if(_162.isValid){this._invalidWidgets=dojo.filter(this._invalidWidgets||[],function(w){return (w!=_162);},this);if(!_162.isValid()&&!_162.attr("disabled")){this._invalidWidgets.push(_162);}_163=(this._invalidWidgets.length===0);}}if(_163!==this._lastValidState){this._lastValidState=_163;this.onValidStateChange(_163);}},connectChildren:function(){dojo.forEach(this._changeConnections,dojo.hitch(this,"disconnect"));var _165=this;var _166=this._changeConnections=[];dojo.forEach(dojo.filter(this.getDescendants(),function(item){return item.validate;}),function(_168){_166.push(_165.connect(_168,"validate",dojo.hitch(_165,"_widgetChange",_168)));_166.push(_165.connect(_168,"_setDisabledAttr",dojo.hitch(_165,"_widgetChange",_168)));});this._widgetChange(null);},startup:function(){this.inherited(arguments);this._changeConnections=[];this.connectChildren();}});}if(!dojo._hasResource["dijit._DialogMixin"]){dojo._hasResource["dijit._DialogMixin"]=true;dojo.provide("dijit._DialogMixin");dojo.declare("dijit._DialogMixin",null,{attributeMap:dijit._Widget.prototype.attributeMap,execute:function(_169){},onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.attr("value"));},_getFocusItems:function(_16a){var _16b=dijit._getTabNavigable(dojo.byId(_16a));this._firstFocusItem=_16b.lowest||_16b.first||_16a;this._lastFocusItem=_16b.last||_16b.highest||this._firstFocusItem;if(dojo.isMoz&&this._firstFocusItem.tagName.toLowerCase()=="input"&&dojo.attr(this._firstFocusItem,"type").toLowerCase()=="file"){dojo.attr(_16a,"tabindex","0");this._firstFocusItem=_16a;}}});}if(!dojo._hasResource["dijit.DialogUnderlay"]){dojo._hasResource["dijit.DialogUnderlay"]=true;dojo.provide("dijit.DialogUnderlay");dojo.declare("dijit.DialogUnderlay",[dijit._Widget,dijit._Templated],{templateString:"<div class='dijitDialogUnderlayWrapper'><div class='dijitDialogUnderlay' dojoAttachPoint='node'></div></div>",dialogId:"","class":"",attributeMap:{id:"domNode"},_setDialogIdAttr:function(id){dojo.attr(this.node,"id",id+"_underlay");},_setClassAttr:function(_16d){this.node.className="dijitDialogUnderlay "+_16d;},postCreate:function(){dojo.body().appendChild(this.domNode);this.bgIframe=new dijit.BackgroundIframe(this.domNode);},layout:function(){var is=this.node.style,os=this.domNode.style;os.display="none";var _170=dijit.getViewport();os.top=_170.t+"px";os.left=_170.l+"px";is.width=_170.w+"px";is.height=_170.h+"px";os.display="block";},show:function(){this.domNode.style.display="block";this.layout();if(this.bgIframe.iframe){this.bgIframe.iframe.style.display="block";}},hide:function(){this.domNode.style.display="none";if(this.bgIframe.iframe){this.bgIframe.iframe.style.display="none";}},uninitialize:function(){if(this.bgIframe){this.bgIframe.destroy();}}});}if(!dojo._hasResource["dojo.html"]){dojo._hasResource["dojo.html"]=true;dojo.provide("dojo.html");(function(){var _171=0;dojo.html._secureForInnerHtml=function(cont){return cont.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"");};dojo.html._emptyNode=dojo.empty;dojo.html._setNodeContent=function(node,cont,_175){if(_175){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(_17d,node){dojo.mixin(this,_17d||{});node=this.node=dojo.byId(this.node||node);if(!this.id){this.id=["Setter",(node)?node.id||node.tagName:"",_171++].join("_");}if(!(this.node||node)){new Error(this.declaredClass+": no node provided to "+this.id);}},set:function(cont,_180){if(undefined!==cont){this.content=cont;}if(_180){this._mixin(_180);}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 _182=this.onContentError(e);try{node.innerHTML=_182;}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 _185=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_185){cont=_185[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(_187){var _188={},key;for(key in _187){if(key in _188){continue;}this[key]=_187[key];}},_parse:function(){var _18a=this.node;try{this.parseResults=dojo.parser.parse(_18a,true);}catch(e){this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);}},_onError:function(type,err,_18d){var _18e=this["on"+type+"Error"].call(this,err);if(_18d){console.error(_18d,err);}else{if(_18e){dojo.html._setNodeContent(this.node,_18e,true);}}}});dojo.html.set=function(node,cont,_191){if(undefined==cont){console.warn("dojo.html.set: no cont argument provided, using empty string");cont="";}if(!_191){return dojo.html._setNodeContent(node,cont,true);}else{var op=new dojo.html._ContentSetter(dojo.mixin(_191,{content:cont,node:node}));return op.set();}};})();}if(!dojo._hasResource["dijit.layout.ContentPane"]){dojo._hasResource["dijit.layout.ContentPane"]=true;dojo.provide("dijit.layout.ContentPane");dojo.declare("dijit.layout.ContentPane",[dijit._Widget,dijit._Container,dijit._Contained],{href:"",extractContent:false,parseOnLoad:true,preventCache:false,preload:false,refreshOnShow:false,loadingMessage:"<span class='dijitContentPaneLoading'>${loadingState}</span>",errorMessage:"<span class='dijitContentPaneError'>${errorState}</span>",isLoaded:false,baseClass:"dijitContentPane",doLayout:true,ioArgs:{},postMixInProperties:function(){this.inherited(arguments);var _193=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_193);this.errorMessage=dojo.string.substitute(this.errorMessage,_193);if(!this.href&&this.srcNodeRef&&this.srcNodeRef.innerHTML){this.isLoaded=true;}},buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},postCreate:function(){this.domNode.title="";if(!dijit.hasWaiRole(this.domNode)){dijit.setWaiRole(this.domNode,"group");}dojo.addClass(this.domNode,this.baseClass);},startup:function(){if(this._started){return;}if(this.isLoaded){dojo.forEach(this.getChildren(),function(_194){_194.startup();});if(this.doLayout){this._checkIfSingleChild();}if(!this._singleChild||!this.getParent()){this._scheduleLayout();}}this._loadCheck();this.inherited(arguments);},_checkIfSingleChild:function(){var _195=dojo.query(">",this.containerNode),_196=_195.filter(function(node){return dojo.hasAttr(node,"dojoType")||dojo.hasAttr(node,"widgetId");}),_198=dojo.filter(_196.map(dijit.byNode),function(_199){return _199&&_199.domNode&&_199.resize;});if(_195.length==_196.length&&_198.length==1){this._singleChild=_198[0];}else{delete this._singleChild;}},setHref:function(href){dojo.deprecated("dijit.layout.ContentPane.setHref() is deprecated.\tUse attr('href', ...) instead.","","2.0");return this.attr("href",href);},_setHrefAttr:function(href){this.cancel();this.href=href;if(this._created&&(this.preload||this._isShown())){return this.refresh();}else{this._hrefChanged=true;}},setContent:function(data){dojo.deprecated("dijit.layout.ContentPane.setContent() is deprecated.  Use attr('content', ...) instead.","","2.0");this.attr("content",data);},_setContentAttr:function(data){this.href="";this.cancel();this._setContent(data||"");this._isDownloaded=false;},_getContentAttr:function(){return this.containerNode.innerHTML;},cancel:function(){if(this._xhrDfd&&(this._xhrDfd.fired==-1)){this._xhrDfd.cancel();}delete this._xhrDfd;},uninitialize:function(){if(this._beingDestroyed){this.cancel();}},destroyRecursive:function(_19e){if(this._beingDestroyed){return;}this._beingDestroyed=true;this.inherited(arguments);},resize:function(size){dojo.marginBox(this.domNode,size);var node=this.containerNode,mb=dojo.mixin(dojo.marginBox(node),size||{});var cb=this._contentBox=dijit.layout.marginBox2contentBox(node,mb);if(this._singleChild&&this._singleChild.resize){this._singleChild.resize({w:cb.w,h:cb.h});}},_isShown:function(){if("open" in this){return this.open;}else{var node=this.domNode;return (node.style.display!="none")&&(node.style.visibility!="hidden")&&!dojo.hasClass(node,"dijitHidden");}},_onShow:function(){if(this._needLayout){this._layoutChildren();}this._loadCheck();if(this.onShow){this.onShow();}},_loadCheck:function(){if((this.href&&!this._xhrDfd)&&(!this.isLoaded||this._hrefChanged||this.refreshOnShow)&&(this.preload||this._isShown())){delete this._hrefChanged;this.refresh();}},refresh:function(){this.cancel();this._setContent(this.onDownloadStart(),true);var self=this;var _1a5={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};if(dojo.isObject(this.ioArgs)){dojo.mixin(_1a5,this.ioArgs);}var hand=this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_1a5);hand.addCallback(function(html){try{self._isDownloaded=true;self._setContent(html,false);self.onDownloadEnd();}catch(err){self._onError("Content",err);}delete self._xhrDfd;return html;});hand.addErrback(function(err){if(!hand.canceled){self._onError("Download",err);}delete self._xhrDfd;return err;});},_onLoadHandler:function(data){this.isLoaded=true;try{this.onLoad(data);}catch(e){console.error("Error "+this.widgetId+" running custom onLoad code: "+e.message);}},_onUnloadHandler:function(){this.isLoaded=false;try{this.onUnload();}catch(e){console.error("Error "+this.widgetId+" running custom onUnload code: "+e.message);}},destroyDescendants:function(){if(this.isLoaded){this._onUnloadHandler();}var _1aa=this._contentSetter;dojo.forEach(this.getDescendants(true),function(_1ab){if(_1ab.destroyRecursive){_1ab.destroyRecursive();}});if(_1aa){dojo.forEach(_1aa.parseResults,function(_1ac){if(_1ac.destroyRecursive&&_1ac.domNode&&_1ac.domNode.parentNode==dojo.body()){_1ac.destroyRecursive();}});delete _1aa.parseResults;}dojo.html._emptyNode(this.containerNode);},_setContent:function(cont,_1ae){this.destroyDescendants();var _1af=this._contentSetter;if(!(_1af&&_1af instanceof dojo.html._ContentSetter)){_1af=this._contentSetter=new dojo.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){var _1b1=this.onContentError(e);try{this.containerNode.innerHTML=_1b1;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}})});}var _1b2=dojo.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad},this._contentSetterParams||{});dojo.mixin(_1af,_1b2);_1af.set((dojo.isObject(cont)&&cont.domNode)?cont.domNode:cont);delete this._contentSetterParams;if(!_1ae){dojo.forEach(this.getChildren(),function(_1b3){_1b3.startup();});if(this.doLayout){this._checkIfSingleChild();}this._scheduleLayout();this._onLoadHandler(cont);}},_onError:function(type,err,_1b6){var _1b7=this["on"+type+"Error"].call(this,err);if(_1b6){console.error(_1b6,err);}else{if(_1b7){this._setContent(_1b7,true);}}},getChildren:function(){return this.getDescendants(true);},addChild:function(_1b8,_1b9){this.inherited(arguments);if(this._started&&_1b8.resize){_1b8.resize();}},_scheduleLayout:function(){if(this._isShown()){this._layoutChildren();}else{this._needLayout=true;}},_layoutChildren:function(){if(this._singleChild&&this._singleChild.resize){var cb=this._contentBox||dojo.contentBox(this.containerNode);this._singleChild.resize({w:cb.w,h:cb.h});}else{dojo.forEach(this.getChildren(),function(_1bb){if(_1bb.resize){_1bb.resize();}});}delete this._needLayout;},onLoad:function(data){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage;},onContentError:function(_1bd){},onDownloadError:function(_1be){return this.errorMessage;},onDownloadEnd:function(){}});}if(!dojo._hasResource["dijit.TooltipDialog"]){dojo._hasResource["dijit.TooltipDialog"]=true;dojo.provide("dijit.TooltipDialog");dojo.declare("dijit.TooltipDialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{title:"",doLayout:false,autofocus:true,baseClass:"dijitTooltipDialog",_firstFocusItem:null,_lastFocusItem:null,templateString:null,templateString:"<div waiRole=\"presentation\">\n\t<div class=\"dijitTooltipContainer\" waiRole=\"presentation\">\n\t\t<div class =\"dijitTooltipContents dijitTooltipFocusNode\" dojoAttachPoint=\"containerNode\" tabindex=\"-1\" waiRole=\"dialog\"></div>\n\t</div>\n\t<div class=\"dijitTooltipConnector\" waiRole=\"presentation\"></div>\n</div>\n",postCreate:function(){this.inherited(arguments);this.connect(this.containerNode,"onkeypress","_onKey");this.containerNode.title=this.title;},orient:function(node,_1c0,_1c1){var c=this._currentOrientClass;if(c){dojo.removeClass(this.domNode,c);}c="dijitTooltipAB"+(_1c1.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_1c1.charAt(0)=="T"?"Below":"Above");dojo.addClass(this.domNode,c);this._currentOrientClass=c;},onOpen:function(pos){this.orient(this.domNode,pos.aroundCorner,pos.corner);this._onShow();if(this.autofocus){this._getFocusItems(this.containerNode);dijit.focus(this._firstFocusItem);}},_onKey:function(evt){var node=evt.target;var dk=dojo.keys;if(evt.charOrCode===dk.TAB){this._getFocusItems(this.containerNode);}var _1c7=(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(!_1c7){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_1c7){dijit.focus(this._firstFocusItem);}dojo.stopEvent(evt);}else{if(evt.charOrCode===dk.TAB){evt.stopPropagation();}}}}}});}if(!dojo._hasResource["dijit.Dialog"]){dojo._hasResource["dijit.Dialog"]=true;dojo.provide("dijit.Dialog");dojo.declare("dijit.Dialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{templateString:null,templateString:"<div class=\"dijitDialog\" tabindex=\"-1\" waiRole=\"dialog\" waiState=\"labelledby-${id}_title\">\n\t<div dojoAttachPoint=\"titleBar\" class=\"dijitDialogTitleBar\">\n\t<span dojoAttachPoint=\"titleNode\" class=\"dijitDialogTitle\" id=\"${id}_title\"></span>\n\t<span dojoAttachPoint=\"closeButtonNode\" class=\"dijitDialogCloseIcon\" dojoAttachEvent=\"onclick: onCancel, onmouseenter: _onCloseEnter, onmouseleave: _onCloseLeave\" title=\"${buttonCancel}\">\n\t\t<span dojoAttachPoint=\"closeText\" class=\"closeText\" title=\"${buttonCancel}\">x</span>\n\t</span>\n\t</div>\n\t\t<div dojoAttachPoint=\"containerNode\" class=\"dijitDialogPaneContent\"></div>\n</div>\n",attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{title:[{node:"titleNode",type:"innerHTML"},{node:"titleBar",type:"attribute"}]}),open:false,duration:dijit.defaultDuration,refocus:true,autofocus:true,_firstFocusItem:null,_lastFocusItem:null,doLayout:false,draggable:true,postMixInProperties:function(){var _1c8=dojo.i18n.getLocalization("dijit","common");dojo.mixin(this,_1c8);this.inherited(arguments);},postCreate:function(){dojo.style(this.domNode,{visibility:"hidden",position:"absolute",display:"",top:"-9999px"});dojo.body().appendChild(this.domNode);this.inherited(arguments);this.connect(this,"onExecute","hide");this.connect(this,"onCancel","hide");this._modalconnects=[];},onLoad:function(){this._position();this.inherited(arguments);},_endDrag:function(e){if(e&&e.node&&e.node===this.domNode){var vp=dijit.getViewport();var p=e._leftTop||dojo.coords(e.node,true);this._relativePosition={t:p.t-vp.t,l:p.l-vp.l};}},_setup:function(){var node=this.domNode;if(this.titleBar&&this.draggable){this._moveable=(dojo.isIE==6)?new dojo.dnd.TimedMoveable(node,{handle:this.titleBar}):new dojo.dnd.Moveable(node,{handle:this.titleBar,timeout:0});dojo.subscribe("/dnd/move/stop",this,"_endDrag");}else{dojo.addClass(node,"dijitDialogFixed");}var _1cd={dialogId:this.id,"class":dojo.map(this["class"].split(/\s/),function(s){return s+"_underlay";}).join(" ")};var _1cf=dijit._underlay;if(!_1cf){_1cf=dijit._underlay=new dijit.DialogUnderlay(_1cd);}this._fadeIn=dojo.fadeIn({node:node,duration:this.duration,beforeBegin:function(){_1cf.attr(_1cd);_1cf.show();},onEnd:dojo.hitch(this,function(){if(this.autofocus){this._getFocusItems(this.domNode);dijit.focus(this._firstFocusItem);}})});this._fadeOut=dojo.fadeOut({node:node,duration:this.duration,onEnd:function(){node.style.visibility="hidden";node.style.top="-9999px";dijit._underlay.hide();}});},uninitialize:function(){if(this._fadeIn&&this._fadeIn.status()=="playing"){this._fadeIn.stop();}if(this._fadeOut&&this._fadeOut.status()=="playing"){this._fadeOut.stop();}if(this._moveable){this._moveable.destroy();}},_size:function(){var mb=dojo.marginBox(this.domNode);var _1d1=dijit.getViewport();if(mb.w>=_1d1.w||mb.h>=_1d1.h){dojo.style(this.containerNode,{width:Math.min(mb.w,Math.floor(_1d1.w*0.75))+"px",height:Math.min(mb.h,Math.floor(_1d1.h*0.75))+"px",overflow:"auto",position:"relative"});}},_position:function(){if(!dojo.hasClass(dojo.body(),"dojoMove")){var node=this.domNode;var _1d3=dijit.getViewport();var p=this._relativePosition;var mb=p?null:dojo.marginBox(node);dojo.style(node,{left:Math.floor(_1d3.l+(p?p.l:(_1d3.w-mb.w)/2))+"px",top:Math.floor(_1d3.t+(p?p.t:(_1d3.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 _1d9=(this._firstFocusItem==this._lastFocusItem);if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){if(!_1d9){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_1d9){dijit.focus(this._firstFocusItem);}dojo.stopEvent(evt);}else{while(node){if(node==this.domNode){if(evt.charOrCode==dk.ESCAPE){this.onCancel();}else{return;}}node=node.parentNode;}if(evt.charOrCode!==dk.TAB){dojo.stopEvent(evt);}else{if(!dojo.isOpera){try{this._firstFocusItem.focus();}catch(e){}}}}}}},show:function(){if(this.open){return;}if(!this._alreadyInitialized){this._setup();this._alreadyInitialized=true;}if(this._fadeOut.status()=="playing"){this._fadeOut.stop();}this._modalconnects.push(dojo.connect(window,"onscroll",this,"layout"));this._modalconnects.push(dojo.connect(window,"onresize",this,"layout"));this._modalconnects.push(dojo.connect(dojo.doc.documentElement,"onkeypress",this,"_onKey"));dojo.style(this.domNode,{opacity:0,visibility:""});this.open=true;this._onShow();this._size();this._position();this._fadeIn.play();this._savedFocus=dijit.getFocus(this);},hide:function(){if(!this._alreadyInitialized){return;}if(this._fadeIn.status()=="playing"){this._fadeIn.stop();}this._fadeOut.play();if(this._scrollConnected){this._scrollConnected=false;}dojo.forEach(this._modalconnects,dojo.disconnect);this._modalconnects=[];if(this.refocus){this.connect(this._fadeOut,"onEnd",dojo.hitch(dijit,"focus",this._savedFocus));}if(this._relativePosition){delete this._relativePosition;}this.open=false;},layout:function(){if(this.domNode.style.visibility!="hidden"){dijit._underlay.layout();this._position();}},destroy:function(){dojo.forEach(this._modalconnects,dojo.disconnect);if(this.refocus&&this.open){setTimeout(dojo.hitch(dijit,"focus",this._savedFocus),25);}this.inherited(arguments);},_onCloseEnter:function(){dojo.addClass(this.closeButtonNode,"dijitDialogCloseIcon-hover");},_onCloseLeave:function(){dojo.removeClass(this.closeButtonNode,"dijitDialogCloseIcon-hover");}});}if(!dojo._hasResource["dijit._editor.selection"]){dojo._hasResource["dijit._editor.selection"]=true;dojo.provide("dijit._editor.selection");dojo.mixin(dijit._editor.selection,{getType:function(){if(dojo.doc.selection){return dojo.doc.selection.type.toLowerCase();}else{var _1da="text";var oSel;try{oSel=dojo.global.getSelection();}catch(e){}if(oSel&&oSel.rangeCount==1){var _1dc=oSel.getRangeAt(0);if((_1dc.startContainer==_1dc.endContainer)&&((_1dc.endOffset-_1dc.startOffset)==1)&&(_1dc.startContainer.nodeType!=3)){_1da="control";}}return _1da;}},getSelectedText:function(){if(dojo.doc.selection){if(dijit._editor.selection.getType()=="control"){return null;}return dojo.doc.selection.createRange().text;}else{var _1dd=dojo.global.getSelection();if(_1dd){return _1dd.toString();}}return "";},getSelectedHtml:function(){if(dojo.doc.selection){if(dijit._editor.selection.getType()=="control"){return null;}return dojo.doc.selection.createRange().htmlText;}else{var _1de=dojo.global.getSelection();if(_1de&&_1de.rangeCount){var frag=_1de.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 _1e1=dojo.doc.selection.createRange();if(_1e1&&_1e1.item){return dojo.doc.selection.createRange().item(0);}}else{var _1e2=dojo.global.getSelection();return _1e2.anchorNode.childNodes[_1e2.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 _1e5=dojo.global.getSelection();if(_1e5){var node=_1e5.anchorNode;while(node&&(node.nodeType!=1)){node=node.parentNode;}return node;}}}return null;},hasAncestorElement:function(_1e7){return this.getAncestorElement.apply(this,arguments)!=null;},getAncestorElement:function(_1e8){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(_1f1){if(window["getSelection"]){var _1f2=dojo.global.getSelection();if(_1f2.removeAllRanges){if(_1f1){_1f2.collapseToStart();}else{_1f2.collapseToEnd();}}else{_1f2.collapse(_1f1);}}else{if(dojo.doc.selection){var _1f3=dojo.doc.selection.createRange();_1f3.collapse(_1f1);_1f3.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(_1f5,_1f6){var _1f7=dojo.global;var _1f8=dojo.doc;_1f5=dojo.byId(_1f5);if(_1f8.selection&&dojo.body().createTextRange){var _1f9=_1f5.ownerDocument.body.createTextRange();_1f9.moveToElementText(_1f5);if(!_1f6){try{_1f9.select();}catch(e){}}}else{if(_1f7.getSelection){var _1fa=_1f7.getSelection();if(_1fa.setBaseAndExtent){_1fa.setBaseAndExtent(_1f5,0,_1f5,_1f5.innerText.length-1);}else{if(_1fa.selectAllChildren){_1fa.selectAllChildren(_1f5);}}}}},selectElement:function(_1fb,_1fc){var _1fd,_1fe=dojo.doc;_1fb=dojo.byId(_1fb);if(_1fe.selection&&dojo.body().createTextRange){try{_1fd=dojo.body().createControlRange();_1fd.addElement(_1fb);if(!_1fc){_1fd.select();}}catch(e){this.selectElementChildren(_1fb,_1fc);}}else{if(dojo.global.getSelection){var _1ff=dojo.global.getSelection();if(_1ff.removeAllRanges){_1fd=_1fe.createRange();_1fd.selectNode(_1fb);_1ff.removeAllRanges();_1ff.addRange(_1fd);}}}}});}if(!dojo._hasResource["dijit._editor.range"]){dojo._hasResource["dijit._editor.range"]=true;dojo.provide("dijit._editor.range");dijit.range={};dijit.range.getIndex=function(node,_201){var ret=[],retR=[];var stop=_201;var _205=node;var _206,n;while(node!=stop){var i=0;_206=node.parentNode;while((n=_206.childNodes[i++])){if(n===node){--i;break;}}if(i>=_206.childNodes.length){dojo.debug("Error finding index of a node in dijit.range.getIndex");}ret.unshift(i);retR.unshift(i-_206.childNodes.length);node=_206;}if(ret.length>0&&_205.nodeType==3){n=_205.previousSibling;while(n&&n.nodeType==3){ret[ret.length-1]--;n=n.previousSibling;}n=_205.nextSibling;while(n&&n.nodeType==3){retR[retR.length-1]++;n=n.nextSibling;}}return {o:ret,r:retR};};dijit.range.getNode=function(_209,_20a){if(!dojo.isArray(_209)||_209.length==0){return _20a;}var node=_20a;dojo.every(_209,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 _20f=function(n){var as=[];while(n){as.unshift(n);if(n.nodeName!="BODY"){n=n.parentNode;}else{break;}}return as;};var n1as=_20f(n1);var n2as=_20f(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,_218,root){root=root||node.ownerDocument.body;while(node&&node!==root){var name=node.nodeName.toUpperCase();if(_218.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,_21c,root){root=root||node.ownerDocument.body;_21c=_21c||dijit.range.BlockTagNames;var _21e=null,_21f;while(node&&node!==root){var name=node.nodeName.toUpperCase();if(!_21e&&_21c.test(name)){_21e=node;}if(!_21f&&(/^(?:BODY|TD|TH|CAPTION)$/).test(name)){_21f=node;}node=node.parentNode;}return {blockNode:_21e,blockContainer:_21f||node.ownerDocument.body};};dijit.range.atBeginningOfContainer=function(_221,node,_223){var _224=false;var _225=(_223==0);if(!_225&&node.nodeType==3){if(dojo.trim(node.nodeValue.substr(0,_223))==0){_225=true;}}if(_225){var _226=node;_224=true;while(_226&&_226!==_221){if(_226.previousSibling){_224=false;break;}_226=_226.parentNode;}}return _224;};dijit.range.atEndOfContainer=function(_227,node,_229){var _22a=false;var _22b=(_229==(node.length||node.childNodes.length));if(!_22b&&node.nodeType==3){if(dojo.trim(node.nodeValue.substr(_229))==0){_22b=true;}}if(_22b){var _22c=node;_22a=true;while(_22c&&_22c!==_227){if(_22c.nextSibling){_22a=false;break;}_22c=_22c.parentNode;}}return _22a;};dijit.range.adjacentNoneTextNode=function(_22d,next){var node=_22d;var len=(0-_22d.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,_233){if(dijit.range._w3c){return win.getSelection();}else{var s=new dijit.range.ie.selection(win);if(!_233){s._getCurrentSelection();}return s;}};if(!dijit.range._w3c){dijit.range.ie={cachedSelection:{},selection:function(win){this._ranges=[];this.addRange=function(r,_237){this._ranges.push(r);if(!_237){r._select();}this.rangeCount=this._ranges.length;};this.removeAllRanges=function(){this._ranges=[];this.rangeCount=0;};var _238=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=_238();if(r){this.addRange(r,true);}};},decomposeControlRange:function(_23d){var _23e=_23d.item(0),_23f=_23d.item(_23d.length-1);var _240=_23e.parentNode,_241=_23f.parentNode;var _242=dijit.range.getIndex(_23e,_240).o;var _243=dijit.range.getIndex(_23f,_241).o+1;return [_240,_242,_241,_243];},getEndPoint:function(_244,end){var _246=_244.duplicate();_246.collapse(!end);var _247="EndTo"+(end?"End":"Start");var _248=_246.parentElement();var _249,_24a,_24b;if(_248.childNodes.length>0){dojo.every(_248.childNodes,function(node,i){var _24e;if(node.nodeType!=3){_246.moveToElementText(node);if(_246.compareEndPoints(_247,_244)>0){_249=node.previousSibling;if(_24b&&_24b.nodeType==3){_249=_24b;_24e=true;}else{_249=_248;_24a=i;return false;}}else{if(i==_248.childNodes.length-1){_249=_248;_24a=_248.childNodes.length;return false;}}}else{if(i==_248.childNodes.length-1){_249=node;_24e=true;}}if(_24e&&_249){var _24f=dijit.range.adjacentNoneTextNode(_249)[0];if(_24f){_249=_24f.nextSibling;}else{_249=_248.firstChild;}var _250=dijit.range.adjacentNoneTextNode(_249);_24f=_250[0];var _251=_250[1];if(_24f){_246.moveToElementText(_24f);_246.collapse(false);}else{_246.moveToElementText(_248);}_246.setEndPoint(_247,_244);_24a=_246.text.length-_251;return false;}_24b=node;return true;});}else{_249=_248;_24a=0;}if(!end&&_249.nodeType!=3&&_24a==_249.childNodes.length){if(_249.nextSibling&&_249.nextSibling.nodeType==3){_249=_249.nextSibling;_24a=0;}}return [_249,_24a];},setEndPoint:function(_252,_253,_254){var _255=_252.duplicate(),node,len;if(_253.nodeType!=3){if(_254>0){node=_253.childNodes[_254-1];if(node.nodeType==3){_253=node;_254=node.length;}else{if(node.nextSibling&&node.nextSibling.nodeType==3){_253=node.nextSibling;_254=0;}else{_255.moveToElementText(node.nextSibling?node:_253);var _258=node.parentNode.insertBefore(document.createTextNode(" "),node.nextSibling);_255.collapse(false);_258.parentNode.removeChild(_258);}}}else{_255.moveToElementText(_253);_255.collapse(true);}}if(_253.nodeType==3){var _259=dijit.range.adjacentNoneTextNode(_253);var _25a=_259[0];len=_259[1];if(_25a){_255.moveToElementText(_25a);_255.collapse(false);if(_25a.contentEditable!="inherit"){len++;}}else{_255.moveToElementText(_253.parentNode);_255.collapse(true);}_254+=len;if(_254>0){if(_255.move("character",_254)!=_254){console.error("Error when moving!");}}}return _255;},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);if(!_266){var end=dijit.range.ie.setEndPoint(_261,_264,_265);}_261.setEndPoint("EndToEnd",end||_267);return _261;}};dojo.declare("dijit.range.W3CRange",null,{constructor:function(){if(arguments.length>0){this.setStart(arguments[0][0],arguments[0][1]);this.setEnd(arguments[0][2],arguments[0][3]);}else{this.commonAncestorContainer=null;this.startContainer=null;this.startOffset=0;this.endContainer=null;this.endOffset=0;this.collapsed=true;}},_updateInternal:function(){if(this.startContainer!==this.endContainer){this.commonAncestorContainer=dijit.range.getCommonAncestor(this.startContainer,this.endContainer);}else{this.commonAncestorContainer=this.startContainer;}this.collapsed=(this.startContainer===this.endContainer)&&(this.startOffset==this.endOffset);},setStart:function(node,_26a){_26a=parseInt(_26a);if(this.startContainer===node&&this.startOffset==_26a){return;}delete this._cachedBookmark;this.startContainer=node;this.startOffset=_26a;if(!this.endContainer){this.setEnd(node,_26a);}else{this._updateInternal();}},setEnd:function(node,_26c){_26c=parseInt(_26c);if(this.endContainer===node&&this.endOffset==_26c){return;}delete this._cachedBookmark;this.endContainer=node;this.endOffset=_26c;if(!this.startContainer){this.setStart(node,_26c);}else{this._updateInternal();}},setStartAfter:function(node,_26e){this._setPoint("setStart",node,_26e,1);},setStartBefore:function(node,_270){this._setPoint("setStart",node,_270,0);},setEndAfter:function(node,_272){this._setPoint("setEnd",node,_272,1);},setEndBefore:function(node,_274){this._setPoint("setEnd",node,_274,0);},_setPoint:function(what,node,_277,ext){var _279=dijit.range.getIndex(node,node.parentNode).o;this[what](node.parentNode,_279.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,_280){str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");if(!_280){str=str.replace(/'/gm,"&#39;");}return str;};dijit._editor.getNodeHtml=function(node){var _282;switch(node.nodeType){case 1:_282="<"+node.nodeName.toLowerCase();var _283=[];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")){_283.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);}_283.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");}}_283.push([n,v]);}}}_283.sort(function(a,b){return a[0]<b[0]?-1:(a[0]==b[0]?0:1);});var j=0;while((attr=_283[j++])){_282+=" "+attr[0]+"=\""+(dojo.isString(attr[1])?dijit._editor.escapeXml(attr[1],true):attr[1])+"\"";}if(node.childNodes.length){_282+=">"+dijit._editor.getChildrenHtml(node)+"</"+node.nodeName.toLowerCase()+">";}else{_282+=" />";}break;case 3:_282=dijit._editor.escapeXml(node.nodeValue,true);break;case 8:_282="<!--"+dijit._editor.escapeXml(node.nodeValue,true)+"-->";break;default:_282="<!-- Element not recognized - Type: "+node.nodeType+" Name: "+node.nodeName+"-->";}return _282;};dijit._editor.getChildrenHtml=function(dom){var out="";if(!dom){return out;}var _292=dom["childNodes"]||dom;var _293=!dojo.isIE||_292!==dom;var node,i=0;while((node=_292[i++])){if(!_293||node.parentNode==dom){out+=dijit._editor.getNodeHtml(node);}}return out;};}if(!dojo._hasResource["dijit._editor.RichText"]){dojo._hasResource["dijit._editor.RichText"]=true;dojo.provide("dijit._editor.RichText");if(!dojo.config["useXDomain"]||dojo.config["allowXdRichTextSave"]){if(dojo._postLoad){(function(){var _296=dojo.doc.createElement("textarea");_296.id=dijit._scopeName+"._editor.RichText.savedContent";dojo.style(_296,{display:"none",position:"absolute",top:"-100px",height:"3px",width:"3px"});dojo.body().appendChild(_296);})();}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(_297){this.contentPreFilters=[];this.contentPostFilters=[];this.contentDomPreFilters=[];this.contentDomPostFilters=[];this.editingAreaStyleSheets=[];this._keyHandlers={};this.contentPreFilters.push(dojo.hitch(this,"_preFixUrlAttributes"));if(dojo.isMoz){this.contentPreFilters.push(this._fixContentForMoz);this.contentPostFilters.push(this._removeMozBogus);}if(dojo.isSafari){this.contentPostFilters.push(this._removeSafariBogus);}this.onLoadDeferred=new dojo.Deferred();},inheritWidth:false,focusOnLoad:false,name:"",styleSheets:"",_content:"",height:"300px",minHeight:"1em",isClosed:true,isLoaded:false,_SEPARATOR:"@@**%%__RICHTEXTBOUNDRY__%%**@@",onLoadDeferred:null,isTabIndent:false,disableSpellCheck:false,postCreate:function(){if("textarea"==this.domNode.tagName.toLowerCase()){console.warn("RichText should not be used with the TEXTAREA tag.  See dijit._editor.RichText docs.");}dojo.publish(dijit._scopeName+"._editor.RichText::init",[this]);this.open();this.setupDefaultShortcuts();},setupDefaultShortcuts:function(){var exec=dojo.hitch(this,function(cmd,arg){return function(){return !this.execCommand(cmd,arg);};});var _29b={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){_29b.Z=exec("redo");}for(var key in _29b){this.addKeyHandler(key,true,false,_29b[key]);}},events:["onKeyPress","onKeyDown","onKeyUp","onClick"],captureEvents:[],_editorCommandsLocalized:false,_localizeEditorCommands:function(){if(this._editorCommandsLocalized){return;}this._editorCommandsLocalized=true;var _29d=["div","p","pre","h1","h2","h3","h4","h5","h6","ol","ul","address"];var _29e="",_29f,i=0;while((_29f=_29d[i++])){if(_29f.charAt(1)!="l"){_29e+="<"+_29f+"><span>content</span></"+_29f+"><br/>";}else{_29e+="<"+_29f+"><li>content</li></"+_29f+"><br/>";}}var div=dojo.doc.createElement("div");dojo.style(div,{position:"absolute",top:"-2000px"});dojo.doc.body.appendChild(div);div.innerHTML=_29e;var node=div.firstChild;while(node){dijit._editor.selection.selectElement(node.firstChild);dojo.withGlobal(this.window,"selectElement",dijit._editor.selection,[node.firstChild]);var _2a3=node.tagName.toLowerCase();this._local2NativeFormatNames[_2a3]=document.queryCommandValue("formatblock");this._native2LocalFormatNames[this._local2NativeFormatNames[_2a3]]=_2a3;node=node.nextSibling.nextSibling;}dojo.body().removeChild(div);},open:function(_2a4){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&&_2a4.nodeName){this.domNode=_2a4;}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 _2a8=dojo.hitch(this,function(){dojo.style(ta,{display:"block",position:"absolute",top:"-1000px"});if(dojo.isIE){var s=ta.style;this.__overflow=s.overflow;s.overflow="hidden";}});if(dojo.isIE){setTimeout(_2a8,10);}else{_2a8();}if(ta.form){dojo.connect(ta.form,"onsubmit",this,function(){ta.value=this.getValue();});}}else{html=this._preFilterContent(dijit._editor.getChildrenHtml(dn));dn.innerHTML="";}var _2aa=dojo.contentBox(dn);this._oldHeight=_2aa.h;this._oldWidth=_2aa.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 _2ab=dojo.byId(dijit._scopeName+"._editor.RichText.savedContent");if(_2ab.value!=""){var _2ac=_2ab.value.split(this._SEPARATOR),i=0,dat;while((dat=_2ac[i++])){var data=dat.split(":");if(data[0]==this.name){html=data[1];_2ac.splice(i,1);break;}}}this.connect(window,"onbeforeunload","_saveContent");}this.isClosed=false;if(dojo.isIE||dojo.isWebKit||dojo.isOpera){var ifr=(this.editorObject=this.iframe=dojo.doc.createElement("iframe"));ifr.id=this.id+"_iframe";this._iframeSrc=this._getIframeDocTxt(html);ifr.style.border="none";ifr.style.width="100%";if(this._layoutMode){ifr.style.height="100%";}else{if(dojo.isIE>=7){if(this.height){ifr.style.height=this.height;}if(this.minHeight){ifr.style.minHeight=this.minHeight;}}else{ifr.style.height=this.height?this.height:this.minHeight;}}ifr.frameBorder=0;ifr._loadFunc=dojo.hitch(this,function(win){this.window=win;this.document=this.window.document;if(dojo.isIE){this._localizeEditorCommands();}this.onLoad();this.savedContent=this.getValue(true);});var s="javascript:parent.dijit.byId(\""+this.id+"\")._iframeSrc";ifr.setAttribute("src",s);this.editingArea.appendChild(ifr);if(dojo.isWebKit){setTimeout(function(){ifr.setAttribute("src",s);},0);}}else{this._drawIframe(html);this.savedContent=this.getValue(true);}if(dn.nodeName=="LI"){dn.lastChild.style.marginTop="-1.2em";}if(this.domNode.nodeName=="LI"){this.domNode.lastChild.style.marginTop="-1.2em";}dojo.addClass(this.domNode,"RichTextEditable");},_local2NativeFormatNames:{},_native2LocalFormatNames:{},_localizedIframeTitles:null,_getIframeDocTxt:function(html){var _cs=dojo.getComputedStyle(this.domNode);if(dojo.isIE||(!this.height&&!dojo.isMoz)){html="<div>"+html+"</div>";}var font=[_cs.fontWeight,_cs.fontSize,_cs.fontFamily].join(" ");var _2b6=_cs.lineHeight;if(_2b6.indexOf("px")>=0){_2b6=parseFloat(_2b6)/parseFloat(_cs.fontSize);}else{if(_2b6.indexOf("em")>=0){_2b6=parseFloat(_2b6);}else{_2b6="1.0";}}var _2b7="";this.style.replace(/(^|;)(line-|font-?)[^;]+/g,function(_2b8){_2b7+=_2b8.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:",_2b6,"}","p{ margin: 1em 0 !important; }",(this.height?"":"body,html{height:auto;overflow-y:hidden;/*for IE*/} body > div {overflow-x:auto;/*FF:horizontal scrollbar*/ overflow-y:hidden;/*safari*/ min-height:"+this.minHeight+";/*safari*/}"),"li > ul:-moz-first-node, li > ol:-moz-first-node{ padding-top: 1.2em; } ","li{ min-height:1.2em; }","</style>",this._applyEditingAreaStyleSheets(),"</head><body onload='frameElement._loadFunc(window,document)' style='"+_2b7+"'>"+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 _2bc=dojo.query("label[for=\""+this.id+"\"]");if(_2bc.length){this._localizedIframeTitles.iframeEditTitle=_2bc[0].innerHTML+" "+this._localizedIframeTitles.iframeEditTitle;}ifr._loadFunc=function(win){};}this.iframe.style.width=this.inheritWidth?this._oldWidth:"100%";if(this._layoutMode){this.iframe.style.height="100%";}else{if(this.height){this.iframe.style.height=this.height;}else{this.iframe.height=this._oldHeight;}}var _2be;if(this.textarea){_2be=this.srcNodeRef;}else{_2be=dojo.doc.createElement("div");_2be.style.display="none";_2be.innerHTML=html;this.editingArea.appendChild(_2be);}this.editingArea.appendChild(this.iframe);var _2bf=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(_2bf,50);return;}var _2c0=this.document;_2c0.open();if(dojo.isAIR){_2c0.body.innerHTML=html;}else{_2c0.write(this._getIframeDocTxt(html));}_2c0.close();dojo.destroy(_2be);}if(!this.document.body){setTimeout(_2bf,50);return;}this.onLoad();}else{dojo.destroy(_2be);this.editNode.innerHTML=html;this.onDisplayChanged();}this._preDomFilterContent(this.editNode);});_2bf();},_applyEditingAreaStyleSheets:function(){var _2c1=[];if(this.styleSheets){_2c1=this.styleSheets.split(";");this.styleSheets="";}_2c1=_2c1.concat(this.editingAreaStyleSheets);this.editingAreaStyleSheets=[];var text="",i=0,url;while((url=_2c1[i++])){var _2c5=(new dojo._Url(dojo.global.location,url)).toString();this.editingAreaStyleSheets.push(_2c5);text+="<link rel=\"stylesheet\" type=\"text/css\" href=\""+_2c5+"\"/>";}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 _2c9=this.document.createElement("link");_2c9.rel="stylesheet";_2c9.type="text/css";_2c9.href=url;head.appendChild(_2c9);}},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 _2cc=dojo.indexOf(this.editingAreaStyleSheets,url);if(_2cc==-1){return;}delete this.editingAreaStyleSheets[_2cc];dojo.withGlobal(this.window,"query",dojo,["link:[href=\""+url+"\"]"]).orphan();},disabled:false,_mozSettingProps:["styleWithCSS","insertBrOnReturn"],_setDisabledAttr:function(_2cd){this.disabled=_2cd;if(!this.isLoaded){return;}_2cd=!!_2cd;if(dojo.isIE||dojo.isWebKit||dojo.isOpera){var _2ce=dojo.isIE&&(this.isLoaded||!this.focusOnLoad);if(_2ce){this.editNode.unselectable="on";}this.editNode.contentEditable=!_2cd;if(_2ce){var _2cf=this;setTimeout(function(){_2cf.editNode.unselectable="off";},0);}}else{if(_2cd){this._mozSettings=[false,this.blockNodeForEnter==="BR"];}try{this.document.designMode=(_2cd?"off":"on");}catch(e){return;}if(!_2cd&&this._mozSettingProps){var ps=this._mozSettingProps;for(var n in ps){if(ps.hasOwnProperty(n)){try{this.document.execCommand(n,false,ps[n]);}catch(e){}}}}}this._disabledOK=true;},_isResized:function(){return false;},onLoad:function(e){if(!this.window.__registeredWindow){this.window.__registeredWindow=true;dijit.registerIframe(this.iframe);}if(!dojo.isIE&&(this.height||dojo.isMoz)){this.editNode=this.document.body;}else{this.editNode=this.document.body.firstChild;var _2d3=this;if(dojo.isIE){var _2d4=(this.tabStop=dojo.doc.createElement("<div tabIndex=-1>"));this.editingArea.appendChild(_2d4);this.iframe.onfocus=function(){_2d3.editNode.setActive();};}}this.focusNode=this.editNode;this._preDomFilterContent(this.editNode);var _2d5=this.events.concat(this.captureEvents);var ap=this.iframe?this.document:this.editNode;dojo.forEach(_2d5,function(item){this.connect(ap,item.toLowerCase(),item);},this);if(dojo.isIE){this.connect(this.document,"onmousedown","_onIEMouseDown");this.editNode.style.zoom=1;}this.isLoaded=true;this.attr("disabled",this.disabled);if(this.onLoadDeferred){this.onLoadDeferred.callback(true);}this.onDisplayChanged(e);if(this.focusOnLoad){dojo.addOnLoad(dojo.hitch(this,function(){setTimeout(dojo.hitch(this,"focus"),this.updateInterval);}));}},onKeyDown:function(e){if(e.keyCode===dojo.keys.TAB&&this.isTabIndent){dojo.stopEvent(e);if(this.queryCommandEnabled((e.shiftKey?"outdent":"indent"))){this.execCommand((e.shiftKey?"outdent":"indent"));}}if(dojo.isIE){if(e.keyCode==dojo.keys.TAB&&!this.isTabIndent){if(e.shiftKey&&!e.ctrlKey&&!e.altKey){this.iframe.focus();}else{if(!e.shiftKey&&!e.ctrlKey&&!e.altKey){this.tabStop.focus();}}}else{if(e.keyCode===dojo.keys.BACKSPACE&&this.document.selection.type==="Control"){dojo.stopEvent(e);this.execCommand("delete");}else{if((65<=e.keyCode&&e.keyCode<=90)||(e.keyCode>=37&&e.keyCode<=40)){e.charCode=e.keyCode;this.onKeyPress(e);}}}}else{if(dojo.isMoz&&!this.isTabIndent){if(e.keyCode==dojo.keys.TAB&&!e.shiftKey&&!e.ctrlKey&&!e.altKey&&this.iframe){var _2d9=dojo.isFF<3?this.iframe.contentDocument:this.iframe;_2d9.title=this._localizedIframeTitles.iframeFocusTitle;this.iframe.focus();dojo.stopEvent(e);}else{if(e.keyCode==dojo.keys.TAB&&e.shiftKey){if(this.toolbar){this.toolbar.focus();}dojo.stopEvent(e);}}}}return true;},onKeyUp:function(e){return;},setDisabled:function(_2db){dojo.deprecated("dijit.Editor::setDisabled is deprecated","use dijit.Editor::attr(\"disabled\",boolean) instead",2);this.attr("disabled",_2db);},_setValueAttr:function(_2dc){this.setValue(_2dc);},_getDisableSpellCheckAttr:function(){return !dojo.attr(this.document.body,"spellcheck");},_setDisableSpellCheckAttr:function(_2dd){if(this.document){dojo.attr(this.document.body,"spellcheck",!_2dd);}else{this.onLoadDeferred.addCallback(dojo.hitch(this,function(){dojo.attr(this.document.body,"spellcheck",!_2dd);}));}},onKeyPress:function(e){var c=(e.keyChar&&e.keyChar.toLowerCase())||e.keyCode;var _2e0=this._keyHandlers[c];var args=arguments;if(_2e0){dojo.forEach(_2e0,function(h){if((!!h.shift==!!e.shiftKey)&&(!!h.ctrl==!!e.ctrlKey)){if(!h.handler.apply(this,args)){e.preventDefault();}}},this);}if(!this._onKeyHitch){this._onKeyHitch=dojo.hitch(this,"onKeyPressed");}setTimeout(this._onKeyHitch,1);return true;},addKeyHandler:function(key,ctrl,_2e5,_2e6){if(!dojo.isArray(this._keyHandlers[key])){this._keyHandlers[key]=[];}this._keyHandlers[key].push({shift:_2e5||false,ctrl:ctrl||false,handler:_2e6});},onKeyPressed:function(){this.onDisplayChanged();},onClick:function(e){this.onDisplayChanged(e);},_onIEMouseDown:function(e){if(!this._focused&&!this.disabled){this.focus();}},_onBlur:function(e){this.inherited(arguments);var _c=this.getValue(true);if(_c!=this.savedContent){this.onChange(_c);this.savedContent=_c;}if(dojo.isMoz&&this.iframe){var _2eb=dojo.isFF<3?this.iframe.contentDocument:this.iframe;_2eb.title=this._localizedIframeTitles.iframeEditTitle;}},_onFocus:function(e){if(!this.disabled){if(!this._disabledOK){this.attr("disabled",false);}this.inherited(arguments);}},blur:function(){if(!dojo.isIE&&this.window.document.documentElement&&this.window.document.documentElement.focus){this.window.document.documentElement.focus();}else{if(dojo.doc.body.focus){dojo.doc.body.focus();}}},focus:function(){if(!dojo.isIE){dijit.focus(this.iframe);}else{if(this.editNode&&this.editNode.focus){this.iframe.fireEvent("onfocus",document.createEventObject());}}},updateInterval:200,_updateTimer:null,onDisplayChanged:function(e){if(this._updateTimer){clearTimeout(this._updateTimer);}if(!this._updateHandler){this._updateHandler=dojo.hitch(this,"onNormalizedDisplayChanged");}this._updateTimer=setTimeout(this._updateHandler,this.updateInterval);},onNormalizedDisplayChanged:function(){delete this._updateTimer;},onChange:function(_2ee){},_normalizeCommand:function(cmd){var _2f0=cmd.toLowerCase();if(_2f0=="formatblock"){if(dojo.isSafari){_2f0="heading";}}else{if(_2f0=="hilitecolor"&&!dojo.isMoz){_2f0="backcolor";}}return _2f0;},_qcaCache:{},queryCommandAvailable:function(_2f1){var ca=this._qcaCache[_2f1];if(ca!=undefined){return ca;}return (this._qcaCache[_2f1]=this._queryCommandAvailable(_2f1));},_queryCommandAvailable:function(_2f3){var ie=1;var _2f5=1<<1;var _2f6=1<<2;var _2f7=1<<3;var _2f8=1<<4;var _2f9=dojo.isWebKit;function _2fa(_2fb){return {ie:Boolean(_2fb&ie),mozilla:Boolean(_2fb&_2f5),webkit:Boolean(_2fb&_2f6),webkit420:Boolean(_2fb&_2f8),opera:Boolean(_2fb&_2f7)};};var _2fc=null;switch(_2f3.toLowerCase()){case "bold":case "italic":case "underline":case "subscript":case "superscript":case "fontname":case "fontsize":case "forecolor":case "hilitecolor":case "justifycenter":case "justifyfull":case "justifyleft":case "justifyright":case "delete":case "selectall":case "toggledir":_2fc=_2fa(_2f5|ie|_2f6|_2f7);break;case "createlink":case "unlink":case "removeformat":case "inserthorizontalrule":case "insertimage":case "insertorderedlist":case "insertunorderedlist":case "indent":case "outdent":case "formatblock":case "inserthtml":case "undo":case "redo":case "strikethrough":case "tabindent":_2fc=_2fa(_2f5|ie|_2f7|_2f8);break;case "blockdirltr":case "blockdirrtl":case "dirltr":case "dirrtl":case "inlinedirltr":case "inlinedirrtl":_2fc=_2fa(ie);break;case "cut":case "copy":case "paste":_2fc=_2fa(ie|_2f5|_2f8);break;case "inserttable":_2fc=_2fa(_2f5|ie);break;case "insertcell":case "insertcol":case "insertrow":case "deletecells":case "deletecols":case "deleterows":case "mergecells":case "splitcell":_2fc=_2fa(ie|_2f5);break;default:return false;}return (dojo.isIE&&_2fc.ie)||(dojo.isMoz&&_2fc.mozilla)||(dojo.isWebKit&&_2fc.webkit)||(dojo.isWebKit>420&&_2fc.webkit420)||(dojo.isOpera&&_2fc.opera);},execCommand:function(_2fd,_2fe){var _2ff;this.focus();_2fd=this._normalizeCommand(_2fd);if(_2fe!=undefined){if(_2fd=="heading"){throw new Error("unimplemented");}else{if((_2fd=="formatblock")&&dojo.isIE){_2fe="<"+_2fe+">";}}}if(_2fd=="inserthtml"){_2fe=this._preFilterContent(_2fe);_2ff=true;if(dojo.isIE){var _300=this.document.selection.createRange();if(this.document.selection.type.toUpperCase()=="CONTROL"){var n=_300.item(0);while(_300.length){_300.remove(_300.item(0));}n.outerHTML=_2fe;}else{_300.pasteHTML(_2fe);}_300.select();}else{if(dojo.isMoz&&!_2fe.length){this._sCall("remove");}else{_2ff=this.document.execCommand(_2fd,false,_2fe);}}}else{if((_2fd=="unlink")&&(this.queryCommandEnabled("unlink"))&&(dojo.isMoz||dojo.isWebKit)){var a=this._sCall("getAncestorElement",["a"]);this._sCall("selectElement",[a]);_2ff=this.document.execCommand("unlink",false,null);}else{if((_2fd=="hilitecolor")&&(dojo.isMoz)){this.document.execCommand("styleWithCSS",false,true);_2ff=this.document.execCommand(_2fd,false,_2fe);this.document.execCommand("styleWithCSS",false,false);}else{if((dojo.isIE)&&((_2fd=="backcolor")||(_2fd=="forecolor"))){_2fe=arguments.length>1?_2fe:null;_2ff=this.document.execCommand(_2fd,false,_2fe);}else{_2fe=arguments.length>1?_2fe:null;if(_2fe||_2fd!="createlink"){_2ff=this.document.execCommand(_2fd,false,_2fe);}}}}}this.onDisplayChanged();return _2ff;},queryCommandEnabled:function(_303){if(this.disabled||!this._disabledOK){return false;}_303=this._normalizeCommand(_303);if(dojo.isMoz||dojo.isWebKit){if(_303=="unlink"){this._sCall("hasAncestorElement",["a"]);}else{if(_303=="inserttable"){return true;}}}if(dojo.isWebKit){if(_303=="copy"){_303="cut";}else{if(_303=="paste"){return true;}}}if(_303=="indent"){var li=this._sCall("getAncestorElement",["li"]);var n=li&&li.previousSibling;while(n){if(n.nodeType==1){return true;}n=n.previousSibling;}return false;}else{if(_303=="outdent"){return this._sCall("hasAncestorElement",["li"]);}}var elem=dojo.isIE?this.document.selection.createRange():this.document;return elem.queryCommandEnabled(_303);},queryCommandState:function(_307){if(this.disabled||!this._disabledOK){return false;}_307=this._normalizeCommand(_307);return this.document.queryCommandState(_307);},queryCommandValue:function(_308){if(this.disabled||!this._disabledOK){return false;}var r;_308=this._normalizeCommand(_308);if(dojo.isIE&&_308=="formatblock"){r=this._native2LocalFormatNames[this.document.queryCommandValue(_308)];}else{r=this.document.queryCommandValue(_308);}return r;},_sCall:function(name,args){return dojo.withGlobal(this.window,name,dijit._editor.selection,args);},placeCursorAtStart:function(){this.focus();var _30c=false;if(dojo.isMoz){var _30d=this.editNode.firstChild;while(_30d){if(_30d.nodeType==3){if(_30d.nodeValue.replace(/^\s+|\s+$/g,"").length>0){_30c=true;this._sCall("selectElement",[_30d]);break;}}else{if(_30d.nodeType==1){_30c=true;this._sCall("selectElementChildren",[_30d]);break;}}_30d=_30d.nextSibling;}}else{_30c=true;this._sCall("selectElementChildren",[this.editNode]);}if(_30c){this._sCall("collapse",[true]);}},placeCursorAtEnd:function(){this.focus();var _30e=false;if(dojo.isMoz){var last=this.editNode.lastChild;while(last){if(last.nodeType==3){if(last.nodeValue.replace(/^\s+|\s+$/g,"").length>0){_30e=true;this._sCall("selectElement",[last]);break;}}else{if(last.nodeType==1){_30e=true;if(last.lastChild){this._sCall("selectElement",[last.lastChild]);}else{this._sCall("selectElement",[last]);}break;}}last=last.previousSibling;}}else{_30e=true;this._sCall("selectElementChildren",[this.editNode]);}if(_30e){this._sCall("collapse",[false]);}},getValue:function(_310){if(this.textarea){if(this.isClosed||!this.isLoaded){return this.textarea.value;}}return this._postFilterContent(null,_310);},_getValueAttr:function(){return this.getValue();},setValue:function(html){if(!this.isLoaded){this.onLoadDeferred.addCallback(dojo.hitch(this,function(){this.setValue(html);}));return;}if(this.textarea&&(this.isClosed||!this.isLoaded)){this.textarea.value=html;}else{html=this._preFilterContent(html);var node=this.isClosed?this.domNode:this.editNode;node.innerHTML=html;this._preDomFilterContent(node);}this.onDisplayChanged();},replaceValue:function(html){if(this.isClosed){this.setValue(html);}else{if(this.window&&this.window.getSelection&&!dojo.isMoz){this.setValue(html);}else{if(this.window&&this.window.getSelection){html=this._preFilterContent(html);this.execCommand("selectall");if(dojo.isMoz&&!html){html="&nbsp;";}this.execCommand("inserthtml",html);this._preDomFilterContent(this.editNode);}else{if(this.document&&this.document.selection){this.setValue(html);}}}}},_preFilterContent:function(html){var ec=html;dojo.forEach(this.contentPreFilters,function(ef){if(ef){ec=ef(ec);}});return ec;},_preDomFilterContent:function(dom){dom=dom||this.editNode;dojo.forEach(this.contentDomPreFilters,function(ef){if(ef&&dojo.isFunction(ef)){ef(dom);}},this);},_postFilterContent:function(dom,_31a){var ec;if(!dojo.isString(dom)){dom=dom||this.editNode;if(this.contentDomPostFilters.length){if(_31a){dom=dojo.clone(dom);}dojo.forEach(this.contentDomPostFilters,function(ef){dom=ef(dom);});}ec=dijit._editor.getChildrenHtml(dom);}else{ec=dom;}if(!dojo.trim(ec.replace(/^\xA0\xA0*/,"").replace(/\xA0\xA0*$/,"")).length){ec="";}dojo.forEach(this.contentPostFilters,function(ef){ec=ef(ec);});return ec;},_saveContent:function(e){var _31f=dojo.byId(dijit._scopeName+"._editor.RichText.savedContent");_31f.value+=this._SEPARATOR+this.name+":"+this.getValue();},escapeXml:function(str,_321){str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");if(!_321){str=str.replace(/'/gm,"&#39;");}return str;},getNodeHtml:function(node){dojo.deprecated("dijit.Editor::getNodeHtml is deprecated","use dijit._editor.getNodeHtml instead",2);return dijit._editor.getNodeHtml(node);},getNodeChildrenHtml:function(dom){dojo.deprecated("dijit.Editor::getNodeChildrenHtml is deprecated","use dijit._editor.getChildrenHtml instead",2);return dijit._editor.getChildrenHtml(dom);},close:function(save,_325){if(this.isClosed){return false;}if(!arguments.length){save=true;}this._content=this.getValue();var _326=(this.savedContent!=this._content);if(this.interval){clearInterval(this.interval);}if(this.textarea){var s=this.textarea.style;s.position="";s.left=s.top="";if(dojo.isIE){s.overflow=this.__overflow;this.__overflow=null;}this.textarea.value=save?this._content:this.savedContent;dojo.destroy(this.domNode);this.domNode=this.textarea;}else{this.domNode.innerHTML=save?this._content:this.savedContent;}dojo.removeClass(this.domNode,"RichTextEditable");this.isClosed=true;this.isLoaded=false;delete this.editNode;if(this.window&&this.window._frameElement){this.window._frameElement=null;}this.window=null;this.document=null;this.editingArea=null;this.editorObject=null;return _326;},destroyRendering:function(){},destroy:function(){this.destroyRendering();if(!this.isClosed){this.close(false);}this.inherited(arguments);},_removeMozBogus:function(html){return html.replace(/\stype="_moz"/gi,"").replace(/\s_moz_dirty=""/gi,"");},_removeSafariBogus:function(html){return html.replace(/\sclass="webkit-block-placeholder"/gi,"");},_fixContentForMoz:function(html){return html.replace(/<(\/)?strong([ \>])/gi,"<$1b$2").replace(/<(\/)?em([ \>])/gi,"<$1i$2");},_preFixUrlAttributes:function(html){return html.replace(/(?:(<a(?=\s).*?\shref=)("|')(.*?)\2)|(?:(<a\s.*?href=)([^"'][^ >]+))/gi,"$1$4$2$3$5$2 _djrealurl=$2$3$5$2").replace(/(?:(<img(?=\s).*?\ssrc=)("|')(.*?)\2)|(?:(<img\s.*?src=)([^"'][^ >]+))/gi,"$1$4$2$3$5$2 _djrealurl=$2$3$5$2");}});}if(!dojo._hasResource["dijit._KeyNavContainer"]){dojo._hasResource["dijit._KeyNavContainer"]=true;dojo.provide("dijit._KeyNavContainer");dojo.declare("dijit._KeyNavContainer",[dijit._Container],{tabIndex:"0",_keyNavCodes:{},connectKeyNavHandlers:function(_32c,_32d){var _32e=this._keyNavCodes={};var prev=dojo.hitch(this,this.focusPrev);var next=dojo.hitch(this,this.focusNext);dojo.forEach(_32c,function(code){_32e[code]=prev;});dojo.forEach(_32d,function(code){_32e[code]=next;});this.connect(this.domNode,"onkeypress","_onContainerKeypress");this.connect(this.domNode,"onfocus","_onContainerFocus");},startupKeyNavChildren:function(){dojo.forEach(this.getChildren(),dojo.hitch(this,"_startupChild"));},addChild:function(_333,_334){dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);this._startupChild(_333);},focus:function(){this.focusFirstChild();},focusFirstChild:function(){this.focusChild(this._getFirstFocusableChild());},focusNext:function(){if(this.focusedChild&&this.focusedChild.hasNextFocalNode&&this.focusedChild.hasNextFocalNode()){this.focusedChild.focusNext();return;}var _335=this._getNextFocusableChild(this.focusedChild,1);if(_335.getFocalNodes){this.focusChild(_335,_335.getFocalNodes()[0]);}else{this.focusChild(_335);}},focusPrev:function(){if(this.focusedChild&&this.focusedChild.hasPrevFocalNode&&this.focusedChild.hasPrevFocalNode()){this.focusedChild.focusPrev();return;}var _336=this._getNextFocusableChild(this.focusedChild,-1);if(_336.getFocalNodes){var _337=_336.getFocalNodes();this.focusChild(_336,_337[_337.length-1]);}else{this.focusChild(_336);}},focusChild:function(_338,node){if(_338){if(this.focusedChild&&_338!==this.focusedChild){this._onChildBlur(this.focusedChild);}this.focusedChild=_338;if(node&&_338.focusFocalNode){_338.focusFocalNode(node);}else{_338.focus();}}},_startupChild:function(_33a){if(_33a.getFocalNodes){dojo.forEach(_33a.getFocalNodes(),function(node){dojo.attr(node,"tabindex",-1);this._connectNode(node);},this);}else{var node=_33a.focusNode||_33a.domNode;if(_33a.isFocusable()){dojo.attr(node,"tabindex",-1);}this._connectNode(node);}},_connectNode:function(node){this.connect(node,"onfocus","_onNodeFocus");this.connect(node,"onblur","_onNodeBlur");},_onContainerFocus:function(evt){if(evt.target!==this.domNode){return;}this.focusFirstChild();dojo.removeAttr(this.domNode,"tabIndex");},_onBlur:function(evt){if(this.tabIndex){dojo.attr(this.domNode,"tabindex",this.tabIndex);}},_onContainerKeypress:function(evt){if(evt.ctrlKey||evt.altKey){return;}var func=this._keyNavCodes[evt.charOrCode];if(func){func();dojo.stopEvent(evt);}},_onNodeFocus:function(evt){var _343=dijit.getEnclosingWidget(evt.target);if(_343&&_343.isFocusable()){this.focusedChild=_343;}dojo.stopEvent(evt);},_onNodeBlur:function(evt){dojo.stopEvent(evt);},_onChildBlur:function(_345){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1);},_getNextFocusableChild:function(_346,dir){if(_346){_346=this._getSiblingOfChild(_346,dir);}var _348=this.getChildren();for(var i=0;i<_348.length;i++){if(!_346){_346=_348[(dir>0)?0:(_348.length-1)];}if(_346.isFocusable()){return _346;}_346=this._getSiblingOfChild(_346,dir);}return null;}});}if(!dojo._hasResource["dijit.ToolbarSeparator"]){dojo._hasResource["dijit.ToolbarSeparator"]=true;dojo.provide("dijit.ToolbarSeparator");dojo.declare("dijit.ToolbarSeparator",[dijit._Widget,dijit._Templated],{templateString:"<div class=\"dijitToolbarSeparator dijitInline\"></div>",postCreate:function(){dojo.setSelectable(this.domNode,false);},isFocusable:function(){return false;}});}if(!dojo._hasResource["dijit.Toolbar"]){dojo._hasResource["dijit.Toolbar"]=true;dojo.provide("dijit.Toolbar");dojo.declare("dijit.Toolbar",[dijit._Widget,dijit._Templated,dijit._KeyNavContainer],{templateString:"<div class=\"dijit dijitToolbar\" waiRole=\"toolbar\" tabIndex=\"${tabIndex}\" dojoAttachPoint=\"containerNode\">"+"</div>",postCreate:function(){this.connectKeyNavHandlers(this.isLeftToRight()?[dojo.keys.LEFT_ARROW]:[dojo.keys.RIGHT_ARROW],this.isLeftToRight()?[dojo.keys.RIGHT_ARROW]:[dojo.keys.LEFT_ARROW]);},startup:function(){if(this._started){return;}this.startupKeyNavChildren();this.inherited(arguments);}});}if(!dojo._hasResource["dijit.form.Button"]){dojo._hasResource["dijit.form.Button"]=true;dojo.provide("dijit.form.Button");dojo.declare("dijit.form.Button",dijit.form._FormWidget,{label:"",showLabel:true,iconClass:"",type:"button",baseClass:"dijitButton",templateString:"<span class=\"dijit dijitReset dijitLeft dijitInline\"\n\tdojoAttachEvent=\"ondijitclick:_onButtonClick,onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\"\n\t><span class=\"dijitReset dijitRight dijitInline\"\n\t\t><span class=\"dijitReset dijitInline dijitButtonNode\"\n\t\t\t><button class=\"dijitReset dijitStretch dijitButtonContents\"\n\t\t\t\tdojoAttachPoint=\"titleNode,focusNode\" \n\t\t\t\t${nameAttrSetting} type=\"${type}\" value=\"${value}\" waiRole=\"button\" waiState=\"labelledby-${id}_label\"\n\t\t\t\t><span class=\"dijitReset dijitInline\" dojoAttachPoint=\"iconNode\" \n\t\t\t\t\t><span class=\"dijitReset dijitToggleButtonIconChar\">&#10003;</span \n\t\t\t\t></span \n\t\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\" \n\t\t\t\t\tid=\"${id}_label\"  \n\t\t\t\t\tdojoAttachPoint=\"containerNode\"\n\t\t\t\t></span\n\t\t\t></button\n\t\t></span\n\t></span\n></span>\n",attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{label:{node:"containerNode",type:"innerHTML"},iconClass:{node:"iconNode",type:"class"}}),_onClick:function(e){if(this.disabled||this.readOnly){return false;}this._clicked();return this.onClick(e);},_onButtonClick:function(e){if(e.type!="click"&&!(this.type=="submit"||this.type=="reset")){dojo.stopEvent(e);}if(this._onClick(e)===false){e.preventDefault();}else{if(this.type=="submit"&&!this.focusNode.form){for(var node=this.domNode;node.parentNode;node=node.parentNode){var _34d=dijit.byNode(node);if(_34d&&typeof _34d._onSubmit=="function"){_34d._onSubmit(e);break;}}}}},_setValueAttr:function(_34e){var attr=this.attributeMap.value||"";if(this[attr.node||attr||"domNode"].tagName=="BUTTON"){if(_34e!=this.value){}}},_fillContent:function(_350){if(_350&&!("label" in this.params)){this.attr("label",_350.innerHTML);}},postCreate:function(){if(this.showLabel==false){dojo.addClass(this.containerNode,"dijitDisplayNone");}dojo.setSelectable(this.focusNode,false);this.inherited(arguments);},onClick:function(e){return true;},_clicked:function(e){},setLabel:function(_353){dojo.deprecated("dijit.form.Button.setLabel() is deprecated.  Use attr('label', ...) instead.","","2.0");this.attr("label",_353);},_setLabelAttr:function(_354){this.containerNode.innerHTML=this.label=_354;this._layoutHack();if(this.showLabel==false&&!this.params.title){this.titleNode.title=dojo.trim(this.containerNode.innerText||this.containerNode.textContent||"");}}});dojo.declare("dijit.form.DropDownButton",[dijit.form.Button,dijit._Container],{baseClass:"dijitDropDownButton",templateString:"<span class=\"dijit dijitReset dijitLeft dijitInline\"\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse,onclick:_onDropDownClick,onkeydown:_onDropDownKeydown,onblur:_onDropDownBlur,onkeypress:_onKey\"\n\t><span class='dijitReset dijitRight dijitInline'\n\t\t><span class='dijitReset dijitInline dijitButtonNode'\n\t\t\t><button class=\"dijitReset dijitStretch dijitButtonContents\" \n\t\t\t\t${nameAttrSetting} type=\"${type}\" value=\"${value}\"\n\t\t\t\tdojoAttachPoint=\"focusNode,titleNode\" \n\t\t\t\twaiRole=\"button\" waiState=\"haspopup-true,labelledby-${id}_label\"\n\t\t\t\t><span class=\"dijitReset dijitInline\" \n\t\t\t\t\tdojoAttachPoint=\"iconNode\"\n\t\t\t\t></span\n\t\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"  \n\t\t\t\t\tdojoAttachPoint=\"containerNode,popupStateNode\" \n\t\t\t\t\tid=\"${id}_label\"\n\t\t\t\t></span\n\t\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonInner\">&thinsp;</span\n\t\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonChar\">&#9660;</span\n\t\t\t></button\n\t\t></span\n\t></span\n></span>\n",_fillContent:function(){if(this.srcNodeRef){var _355=dojo.query("*",this.srcNodeRef);dijit.form.DropDownButton.superclass._fillContent.call(this,_355[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}if(!this.dropDown){var _356=dojo.query("[widgetId]",this.dropDownContainer)[0];this.dropDown=dijit.byNode(_356);delete this.dropDownContainer;}dijit.popup.prepare(this.dropDown.domNode);this.inherited(arguments);},destroyDescendants:function(){if(this.dropDown){this.dropDown.destroyRecursive();delete this.dropDown;}this.inherited(arguments);},_onArrowClick:function(e){if(this.disabled||this.readOnly){return;}this._toggleDropDown();},_onDropDownClick:function(e){var _359=dojo.isFF&&dojo.isFF<3&&navigator.appVersion.indexOf("Macintosh")!=-1;if(!_359||e.detail!=0||this._seenKeydown){this._onArrowClick(e);}this._seenKeydown=false;},_onDropDownKeydown:function(e){this._seenKeydown=true;},_onDropDownBlur:function(e){this._seenKeydown=false;},_onKey:function(e){if(this.disabled||this.readOnly){return;}if(e.charOrCode==dojo.keys.DOWN_ARROW){if(!this.dropDown||this.dropDown.domNode.style.visibility=="hidden"){dojo.stopEvent(e);this._toggleDropDown();}}},_onBlur:function(){this._closeDropDown();this.inherited(arguments);},_toggleDropDown:function(){if(this.disabled||this.readOnly){return;}dijit.focus(this.popupStateNode);var _35d=this.dropDown;if(!_35d){return;}if(!this._opened){if(_35d.href&&!_35d.isLoaded){var self=this;var _35f=dojo.connect(_35d,"onLoad",function(){dojo.disconnect(_35f);self._openDropDown();});_35d.refresh();return;}else{this._openDropDown();}}else{this._closeDropDown();}},_openDropDown:function(){var _360=this.dropDown;var _361=_360.domNode.style.width;var self=this;dijit.popup.open({parent:this,popup:_360,around:this.domNode,orient:this.isLeftToRight()?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"},onExecute:function(){self._closeDropDown(true);},onCancel:function(){self._closeDropDown(true);},onClose:function(){_360.domNode.style.width=_361;self.popupStateNode.removeAttribute("popupActive");self._opened=false;}});if(this.domNode.offsetWidth>_360.domNode.offsetWidth){var _363=null;if(!this.isLeftToRight()){_363=_360.domNode.parentNode;var _364=_363.offsetLeft+_363.offsetWidth;}dojo.marginBox(_360.domNode,{w:this.domNode.offsetWidth});if(_363){_363.style.left=_364-this.domNode.offsetWidth+"px";}}this.popupStateNode.setAttribute("popupActive","true");this._opened=true;if(_360.focus){_360.focus();}},_closeDropDown:function(_365){if(this._opened){dijit.popup.close(this.dropDown);if(_365){this.focus();}this._opened=false;}}});dojo.declare("dijit.form.ComboButton",dijit.form.DropDownButton,{templateString:"<table class='dijit dijitReset dijitInline dijitLeft'\n\tcellspacing='0' cellpadding='0' waiRole=\"presentation\"\n\t><tbody waiRole=\"presentation\"><tr waiRole=\"presentation\"\n\t\t><td class=\"dijitReset dijitStretch dijitButtonContents dijitButtonNode\"\n\t\t\tdojoAttachEvent=\"ondijitclick:_onButtonClick,onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\"  dojoAttachPoint=\"titleNode\"\n\t\t\twaiRole=\"button\" waiState=\"labelledby-${id}_label\"\n\t\t\t><div class=\"dijitReset dijitInline\" dojoAttachPoint=\"iconNode\" waiRole=\"presentation\"></div\n\t\t\t><div class=\"dijitReset dijitInline dijitButtonText\" id=\"${id}_label\" dojoAttachPoint=\"containerNode\" waiRole=\"presentation\"></div\n\t\t></td\n\t\t><td class='dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton'\n\t\t\tdojoAttachPoint=\"popupStateNode,focusNode\"\n\t\t\tdojoAttachEvent=\"ondijitclick:_onArrowClick, onkeypress:_onKey,onmouseenter:_onMouse,onmouseleave:_onMouse\"\n\t\t\tstateModifier=\"DownArrow\"\n\t\t\ttitle=\"${optionsTitle}\" ${nameAttrSetting}\n\t\t\twaiRole=\"button\" waiState=\"haspopup-true\"\n\t\t\t><div class=\"dijitReset dijitArrowButtonInner\" waiRole=\"presentation\">&thinsp;</div\n\t\t\t><div class=\"dijitReset dijitArrowButtonChar\" waiRole=\"presentation\">&#9660;</div\n\t\t></td\n\t></tr></tbody\n></table>\n",attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{id:"",tabIndex:["focusNode","titleNode"]}),optionsTitle:"",baseClass:"dijitComboButton",_focusedNode:null,postCreate:function(){this.inherited(arguments);this._focalNodes=[this.titleNode,this.popupStateNode];dojo.forEach(this._focalNodes,dojo.hitch(this,function(node){if(dojo.isIE){this.connect(node,"onactivate",this._onNodeFocus);this.connect(node,"ondeactivate",this._onNodeBlur);}else{this.connect(node,"onfocus",this._onNodeFocus);this.connect(node,"onblur",this._onNodeBlur);}}));},focusFocalNode:function(node){this._focusedNode=node;dijit.focus(node);},hasNextFocalNode:function(){return this._focusedNode!==this.getFocalNodes()[1];},focusNext:function(){this._focusedNode=this.getFocalNodes()[this._focusedNode?1:0];dijit.focus(this._focusedNode);},hasPrevFocalNode:function(){return this._focusedNode!==this.getFocalNodes()[0];},focusPrev:function(){this._focusedNode=this.getFocalNodes()[this._focusedNode?0:1];dijit.focus(this._focusedNode);},getFocalNodes:function(){return this._focalNodes;},_onNodeFocus:function(evt){this._focusedNode=evt.currentTarget;var fnc=this._focusedNode==this.focusNode?"dijitDownArrowButtonFocused":"dijitButtonContentsFocused";dojo.addClass(this._focusedNode,fnc);},_onNodeBlur:function(evt){var fnc=evt.currentTarget==this.focusNode?"dijitDownArrowButtonFocused":"dijitButtonContentsFocused";dojo.removeClass(evt.currentTarget,fnc);},_onBlur:function(){this.inherited(arguments);this._focusedNode=null;}});dojo.declare("dijit.form.ToggleButton",dijit.form.Button,{baseClass:"dijitToggleButton",checked:false,attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{checked:"focusNode"}),_clicked:function(evt){this.attr("checked",!this.checked);},_setCheckedAttr:function(_36d){this.checked=_36d;dojo.attr(this.focusNode||this.domNode,"checked",_36d);dijit.setWaiState(this.focusNode||this.domNode,"pressed",_36d);this._setStateClass();this._handleOnChange(_36d,true);},setChecked:function(_36e){dojo.deprecated("setChecked("+_36e+") is deprecated. Use attr('checked',"+_36e+") instead.","","2.0");this.attr("checked",_36e);},reset:function(){this._hasBeenBlurred=false;this.attr("checked",this.params.checked||false);}});}if(!dojo._hasResource["dijit._editor._Plugin"]){dojo._hasResource["dijit._editor._Plugin"]=true;dojo.provide("dijit._editor._Plugin");dojo.declare("dijit._editor._Plugin",null,{constructor:function(args,node){if(args){dojo.mixin(this,args);}this._connects=[];},editor:null,iconClassPrefix:"dijitEditorIcon",button:null,queryCommand:null,command:"",commandArg:null,useDefaultCommand:true,buttonClass:dijit.form.Button,getLabel:function(key){return this.editor.commands[key];},_initButton:function(_372){if(this.command.length){var _373=this.getLabel(this.command);var _374=this.iconClassPrefix+" "+this.iconClassPrefix+this.command.charAt(0).toUpperCase()+this.command.substr(1);if(!this.button){_372=dojo.mixin({label:_373,showLabel:false,iconClass:_374,dropDown:this.dropDown,tabIndex:"-1"},_372||{});this.button=new this.buttonClass(_372);}}},destroy:function(f){dojo.forEach(this._connects,dojo.disconnect);if(this.dropDown){this.dropDown.destroyRecursive();}},connect:function(o,f,tf){this._connects.push(dojo.connect(o,f,this,tf));},updateState:function(){var _e=this.editor;var _c=this.command;if(!_e){return;}if(!_e.isLoaded){return;}if(!_c.length){return;}if(this.button){try{var _37b=_e.queryCommandEnabled(_c);if(this.enabled!==_37b){this.enabled=_37b;this.button.attr("disabled",!_37b);}if(typeof this.button.checked=="boolean"){var _37c=_e.queryCommandState(_c);if(this.checked!==_37c){this.checked=_37c;this.button.attr("checked",_e.queryCommandState(_c));}}}catch(e){}}},setEditor:function(_37d){this.editor=_37d;this._initButton();if(this.command.length&&!this.editor.queryCommandAvailable(this.command)){if(this.button){this.button.domNode.style.display="none";}}if(this.button&&this.useDefaultCommand){this.connect(this.button,"onClick",dojo.hitch(this.editor,"execCommand",this.command,this.commandArg));}this.connect(this.editor,"onNormalizedDisplayChanged","updateState");},setToolbar:function(_37e){if(this.button){_37e.addChild(this.button);}}});}if(!dojo._hasResource["dijit._editor.plugins.EnterKeyHandling"]){dojo._hasResource["dijit._editor.plugins.EnterKeyHandling"]=true;dojo.provide("dijit._editor.plugins.EnterKeyHandling");dojo.declare("dijit._editor.plugins.EnterKeyHandling",dijit._editor._Plugin,{blockNodeForEnter:"BR",constructor:function(args){if(args){dojo.mixin(this,args);}},setEditor:function(_380){this.editor=_380;if(this.blockNodeForEnter=="BR"){if(dojo.isIE){_380.contentDomPreFilters.push(dojo.hitch(this,"regularPsToSingleLinePs"));_380.contentDomPostFilters.push(dojo.hitch(this,"singleLinePsToRegularPs"));_380.onLoadDeferred.addCallback(dojo.hitch(this,"_fixNewLineBehaviorForIE"));}else{_380.onLoadDeferred.addCallback(dojo.hitch(this,function(d){try{this.editor.document.execCommand("insertBrOnReturn",false,true);}catch(e){}return d;}));}}else{if(this.blockNodeForEnter){dojo["require"]("dijit._editor.range");var h=dojo.hitch(this,this.handleEnterKey);_380.addKeyHandler(13,0,0,h);_380.addKeyHandler(13,0,1,h);this.connect(this.editor,"onKeyPressed","onKeyPressed");}}},connect:function(o,f,tf){if(!this._connects){this._connects=[];}this._connects.push(dojo.connect(o,f,this,tf));},destroy:function(){dojo.forEach(this._connects,dojo.disconnect);this._connects=[];},onKeyPressed:function(e){if(this._checkListLater){if(dojo.withGlobal(this.editor.window,"isCollapsed",dijit)){var _387=dojo.withGlobal(this.editor.window,"getAncestorElement",dijit._editor.selection,["LI"]);if(!_387){dijit._editor.RichText.prototype.execCommand.call(this.editor,"formatblock",this.blockNodeForEnter);var _388=dojo.withGlobal(this.editor.window,"getAncestorElement",dijit._editor.selection,[this.blockNodeForEnter]);if(_388){_388.innerHTML=this.bogusHtmlContent;if(dojo.isIE){var r=this.editor.document.selection.createRange();r.move("character",-1);r.select();}}else{alert("onKeyPressed: Can not find the new block node");}}else{if(dojo.isMoz){if(_387.parentNode.parentNode.nodeName=="LI"){_387=_387.parentNode.parentNode;}}var fc=_387.firstChild;if(fc&&fc.nodeType==1&&(fc.nodeName=="UL"||fc.nodeName=="OL")){_387.insertBefore(fc.ownerDocument.createTextNode(" "),fc);var _38b=dijit.range.create();_38b.setStart(_387.firstChild,0);var _38c=dijit.range.getSelection(this.editor.window,true);_38c.removeAllRanges();_38c.addRange(_38b);}}}this._checkListLater=false;}if(this._pressedEnterInBlock){if(this._pressedEnterInBlock.previousSibling){this.removeTrailingBr(this._pressedEnterInBlock.previousSibling);}delete this._pressedEnterInBlock;}},bogusHtmlContent:"&nbsp;",blockNodes:/^(?:P|H1|H2|H3|H4|H5|H6|LI)$/,handleEnterKey:function(e){if(!this.blockNodeForEnter){return true;}var _38e,_38f,_390,doc=this.editor.document,br;if(e.shiftKey||this.blockNodeForEnter=="BR"){var _393=dojo.withGlobal(this.editor.window,"getParentElement",dijit._editor.selection);var _394=dijit.range.getAncestor(_393,this.blockNodes);if(_394){if(!e.shiftKey&&_394.tagName=="LI"){return true;}_38e=dijit.range.getSelection(this.editor.window);_38f=_38e.getRangeAt(0);if(!_38f.collapsed){_38f.deleteContents();}if(dijit.range.atBeginningOfContainer(_394,_38f.startContainer,_38f.startOffset)){if(e.shiftKey){br=doc.createElement("br");_390=dijit.range.create();_394.insertBefore(br,_394.firstChild);_390.setStartBefore(br.nextSibling);_38e.removeAllRanges();_38e.addRange(_390);}else{dojo.place(br,_394,"before");}}else{if(dijit.range.atEndOfContainer(_394,_38f.startContainer,_38f.startOffset)){_390=dijit.range.create();br=doc.createElement("br");if(e.shiftKey){_394.appendChild(br);_394.appendChild(doc.createTextNode(" "));_390.setStart(_394.lastChild,0);}else{dojo.place(br,_394,"after");_390.setStartAfter(_394);}_38e.removeAllRanges();_38e.addRange(_390);}else{return true;}}}else{dijit._editor.RichText.prototype.execCommand.call(this.editor,"inserthtml","<br>");}return false;}var _395=true;_38e=dijit.range.getSelection(this.editor.window);_38f=_38e.getRangeAt(0);if(!_38f.collapsed){_38f.deleteContents();}var _396=dijit.range.getBlockAncestor(_38f.endContainer,null,this.editor.editNode);var _397=_396.blockNode;if((this._checkListLater=(_397&&(_397.nodeName=="LI"||_397.parentNode.nodeName=="LI")))){if(dojo.isMoz){this._pressedEnterInBlock=_397;}if(/^(?:\s|&nbsp;)$/.test(_397.innerHTML)){_397.innerHTML="";}return true;}if(!_396.blockNode||_396.blockNode===this.editor.editNode){dijit._editor.RichText.prototype.execCommand.call(this.editor,"formatblock",this.blockNodeForEnter);_396={blockNode:dojo.withGlobal(this.editor.window,"getAncestorElement",dijit._editor.selection,[this.blockNodeForEnter]),blockContainer:this.editor.editNode};if(_396.blockNode){if(!(_396.blockNode.textContent||_396.blockNode.innerHTML).replace(/^\s+|\s+$/g,"").length){this.removeTrailingBr(_396.blockNode);return false;}}else{_396.blockNode=this.editor.editNode;}_38e=dijit.range.getSelection(this.editor.window);_38f=_38e.getRangeAt(0);}var _398=doc.createElement(this.blockNodeForEnter);_398.innerHTML=this.bogusHtmlContent;this.removeTrailingBr(_396.blockNode);if(dijit.range.atEndOfContainer(_396.blockNode,_38f.endContainer,_38f.endOffset)){if(_396.blockNode===_396.blockContainer){_396.blockNode.appendChild(_398);}else{dojo.place(_398,_396.blockNode,"after");}_395=false;_390=dijit.range.create();_390.setStart(_398,0);_38e.removeAllRanges();_38e.addRange(_390);if(this.editor.height){_398.scrollIntoView(false);}}else{if(dijit.range.atBeginningOfContainer(_396.blockNode,_38f.startContainer,_38f.startOffset)){dojo.place(_398,_396.blockNode,_396.blockNode===_396.blockContainer?"first":"before");if(_398.nextSibling&&this.editor.height){_398.nextSibling.scrollIntoView(false);}_395=false;}else{if(dojo.isMoz){this._pressedEnterInBlock=_396.blockNode;}}}return _395;},removeTrailingBr:function(_399){var para=/P|DIV|LI/i.test(_399.tagName)?_399:dijit._editor.selection.getParentOfType(_399,["P","DIV","LI"]);if(!para){return;}if(para.lastChild){if((para.childNodes.length>1&&para.lastChild.nodeType==3&&/^[\s\xAD]*$/.test(para.lastChild.nodeValue))||(para.lastChild&&para.lastChild.tagName=="BR")){dojo.destroy(para.lastChild);}}if(!para.childNodes.length){para.innerHTML=this.bogusHtmlContent;}},_fixNewLineBehaviorForIE:function(d){if(this.editor.document.__INSERTED_EDITIOR_NEWLINE_CSS===undefined){var _39c="p{margin:0 !important;}";var _39d=function(_39e,doc,URI){if(!_39e){return null;}if(!doc){doc=document;}var _3a1=doc.createElement("style");_3a1.setAttribute("type","text/css");var head=doc.getElementsByTagName("head")[0];if(!head){return null;}else{head.appendChild(_3a1);}if(_3a1.styleSheet){var _3a3=function(){try{_3a1.styleSheet.cssText=_39e;}catch(e){}};if(_3a1.styleSheet.disabled){setTimeout(_3a3,10);}else{_3a3();}}else{var _3a4=doc.createTextNode(_39e);_3a1.appendChild(_3a4);}return _3a1;};_39d(_39c,this.editor.document);this.editor.document.__INSERTED_EDITIOR_NEWLINE_CSS=true;return d;}return null;},regularPsToSingleLinePs:function(_3a5,_3a6){function _3a7(el){function _3a9(_3aa){var newP=_3aa[0].ownerDocument.createElement("p");_3aa[0].parentNode.insertBefore(newP,_3aa[0]);dojo.forEach(_3aa,function(node){newP.appendChild(node);});};var _3ad=0;var _3ae=[];var _3af;while(_3ad<el.childNodes.length){_3af=el.childNodes[_3ad];if(_3af.nodeType==3||(_3af.nodeType==1&&_3af.nodeName!="BR"&&dojo.style(_3af,"display")!="block")){_3ae.push(_3af);}else{var _3b0=_3af.nextSibling;if(_3ae.length){_3a9(_3ae);_3ad=(_3ad+1)-_3ae.length;if(_3af.nodeName=="BR"){dojo.destroy(_3af);}}_3ae=[];}_3ad++;}if(_3ae.length){_3a9(_3ae);}};function _3b1(el){var _3b3=null;var _3b4=[];var _3b5=el.childNodes.length-1;for(var i=_3b5;i>=0;i--){_3b3=el.childNodes[i];if(_3b3.nodeName=="BR"){var newP=_3b3.ownerDocument.createElement("p");dojo.place(newP,el,"after");if(_3b4.length==0&&i!=_3b5){newP.innerHTML="&nbsp;";}dojo.forEach(_3b4,function(node){newP.appendChild(node);});dojo.destroy(_3b3);_3b4=[];}else{_3b4.unshift(_3b3);}}};var _3b9=[];var ps=_3a5.getElementsByTagName("p");dojo.forEach(ps,function(p){_3b9.push(p);});dojo.forEach(_3b9,function(p){if((p.previousSibling)&&(p.previousSibling.nodeName=="P"||dojo.style(p.previousSibling,"display")!="block")){var newP=p.parentNode.insertBefore(this.document.createElement("p"),p);newP.innerHTML=_3a6?"":"&nbsp;";}_3b1(p);},this.editor);_3a7(_3a5);return _3a5;},singleLinePsToRegularPs:function(_3be){function _3bf(node){var ps=node.getElementsByTagName("p");var _3c2=[];for(var i=0;i<ps.length;i++){var p=ps[i];var _3c5=false;for(var k=0;k<_3c2.length;k++){if(_3c2[k]===p.parentNode){_3c5=true;break;}}if(!_3c5){_3c2.push(p.parentNode);}}return _3c2;};function _3c7(node){if(node.nodeType!=1||node.tagName!="P"){return dojo.style(node,"display")=="block";}else{if(!node.childNodes.length||node.innerHTML=="&nbsp;"){return true;}}return false;};var _3c9=_3bf(_3be);for(var i=0;i<_3c9.length;i++){var _3cb=_3c9[i];var _3cc=null;var node=_3cb.firstChild;var _3ce=null;while(node){if(node.nodeType!="1"||node.tagName!="P"){_3cc=null;}else{if(_3c7(node)){_3ce=node;_3cc=null;}else{if(_3cc==null){_3cc=node;}else{if((!_3cc.lastChild||_3cc.lastChild.nodeName!="BR")&&(node.firstChild)&&(node.firstChild.nodeName!="BR")){_3cc.appendChild(this.editor.document.createElement("br"));}while(node.firstChild){_3cc.appendChild(node.firstChild);}_3ce=node;}}}node=node.nextSibling;if(_3ce){dojo.destroy(_3ce);_3ce=null;}}}return _3be;}});}if(!dojo._hasResource["dijit.Editor"]){dojo._hasResource["dijit.Editor"]=true;dojo.provide("dijit.Editor");dojo.declare("dijit.Editor",dijit._editor.RichText,{plugins:null,extraPlugins:null,constructor:function(){if(!dojo.isArray(this.plugins)){this.plugins=["undo","redo","|","cut","copy","paste","|","bold","italic","underline","strikethrough","|","insertOrderedList","insertUnorderedList","indent","outdent","|","justifyLeft","justifyRight","justifyCenter","justifyFull","dijit._editor.plugins.EnterKeyHandling"];}this._plugins=[];this._editInterval=this.editActionInterval*1000;if(dojo.isIE){this.events.push("onBeforeDeactivate");}},postCreate:function(){if(this.customUndo){dojo["require"]("dijit._editor.range");this._steps=this._steps.slice(0);this._undoedSteps=this._undoedSteps.slice(0);}if(dojo.isArray(this.extraPlugins)){this.plugins=this.plugins.concat(this.extraPlugins);}this.inherited(arguments);this.commands=dojo.i18n.getLocalization("dijit._editor","commands",this.lang);if(!this.toolbar){this.toolbar=new dijit.Toolbar({});dojo.place(this.toolbar.domNode,this.editingArea,"before");}dojo.forEach(this.plugins,this.addPlugin,this);this.onNormalizedDisplayChanged();this.toolbar.startup();},destroy:function(){dojo.forEach(this._plugins,function(p){if(p&&p.destroy){p.destroy();}});this._plugins=[];this.toolbar.destroyRecursive();delete this.toolbar;this.inherited(arguments);},addPlugin:function(_3d0,_3d1){var args=dojo.isString(_3d0)?{name:_3d0}:_3d0;if(!args.setEditor){var o={"args":args,"plugin":null,"editor":this};dojo.publish(dijit._scopeName+".Editor.getPlugin",[o]);if(!o.plugin){var pc=dojo.getObject(args.name);if(pc){o.plugin=new pc(args);}}if(!o.plugin){console.warn("Cannot find plugin",_3d0);return;}_3d0=o.plugin;}if(arguments.length>1){this._plugins[_3d1]=_3d0;}else{this._plugins.push(_3d0);}_3d0.setEditor(this);if(dojo.isFunction(_3d0.setToolbar)){_3d0.setToolbar(this.toolbar);}},startup:function(){},resize:function(size){dijit.layout._LayoutWidget.prototype.resize.apply(this,arguments);},layout:function(){this.editingArea.style.height=(this._contentBox.h-dojo.marginBox(this.toolbar.domNode).h)+"px";if(this.iframe){this.iframe.style.height="100%";}this._layoutMode=true;},_onIEMouseDown:function(e){delete this._savedSelection;if(e.target.tagName=="BODY"){setTimeout(dojo.hitch(this,"placeCursorAtEnd"),0);}this.inherited(arguments);},onBeforeDeactivate:function(e){if(this.customUndo){this.endEditing(true);}this._saveSelection();},customUndo:dojo.isIE,editActionInterval:3,beginEditing:function(cmd){if(!this._inEditing){this._inEditing=true;this._beginEditing(cmd);}if(this.editActionInterval>0){if(this._editTimer){clearTimeout(this._editTimer);}this._editTimer=setTimeout(dojo.hitch(this,this.endEditing),this._editInterval);}},_steps:[],_undoedSteps:[],execCommand:function(cmd){if(this.customUndo&&(cmd=="undo"||cmd=="redo")){return this[cmd]();}else{if(this.customUndo){this.endEditing();this._beginEditing();}try{var r=this.inherited("execCommand",arguments);if(dojo.isWebKit&&cmd=="paste"&&!r){throw {code:1011};}}catch(e){if(e.code==1011&&/copy|cut|paste/.test(cmd)){var sub=dojo.string.substitute,_3dc={cut:"X",copy:"C",paste:"V"},_3dd=navigator.userAgent.indexOf("Macintosh")!=-1;alert(sub(this.commands.systemShortcut,[this.commands[cmd],sub(this.commands[_3dd?"appleKey":"ctrlKey"],[_3dc[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 _3df=0;if(this._savedSelection&&dojo.isIE){_3df=dijit._curFocus!=this.editNode;}this.inherited(arguments);if(_3df){this._restoreSelection();}},_moveToBookmark:function(b){var _3e1=b;if(dojo.isIE){if(dojo.isArray(b)){_3e1=[];dojo.forEach(b,function(n){_3e1.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);_3e1=r;}dojo.withGlobal(this.window,"moveToBookmark",dijit,[_3e1]);},_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(_3e9){if(this._editTimer){clearTimeout(this._editTimer);}if(this._inEditing){this._endEditing(_3e9);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(_3ee){var v=this.getValue(true);this._undoedSteps=[];this._steps.push({text:v,bookmark:this._getBookmark()});},onKeyDown:function(e){if(!dojo.isIE&&!this.iframe&&e.keyCode==dojo.keys.TAB&&!this.tabIndent){this._saveSelection();}if(!this.customUndo){this.inherited(arguments);return;}var k=e.keyCode,ks=dojo.keys;if(e.ctrlKey&&!e.altKey){if(k==90||k==122){dojo.stopEvent(e);this.undo();return;}else{if(k==89||k==121){dojo.stopEvent(e);this.redo();return;}}}this.inherited(arguments);switch(k){case ks.ENTER:case ks.BACKSPACE:case ks.DELETE:this.beginEditing();break;case 88:case 86:if(e.ctrlKey&&!e.altKey&&!e.metaKey){this.endEditing();if(e.keyCode==88){this.beginEditing("cut");setTimeout(dojo.hitch(this,this.endEditing),1);}else{this.beginEditing("paste");setTimeout(dojo.hitch(this,this.endEditing),1);}break;}default:if(!e.ctrlKey&&!e.altKey&&!e.metaKey&&(e.keyCode<dojo.keys.F1||e.keyCode>dojo.keys.F15)){this.beginEditing();break;}case ks.ALT:this.endEditing();break;case ks.UP_ARROW:case ks.DOWN_ARROW:case ks.LEFT_ARROW:case ks.RIGHT_ARROW:case ks.HOME:case ks.END:case ks.PAGE_UP:case ks.PAGE_DOWN:this.endEditing(true);break;case ks.CTRL:case ks.SHIFT:case ks.TAB:break;}},_onBlur:function(){this.inherited("_onBlur",arguments);this.endEditing(true);},_saveSelection:function(){this._savedSelection=this._getBookmark();},_restoreSelection:function(){if(this._savedSelection){this._moveToBookmark(this._savedSelection);delete this._savedSelection;}},_onFocus:function(){setTimeout(dojo.hitch(this,"_restoreSelection"),0);this.inherited(arguments);},onClick:function(){this.endEditing(true);this.inherited(arguments);}});dojo.subscribe(dijit._scopeName+".Editor.getPlugin",null,function(o){if(o.plugin){return;}var args=o.args,p;var _p=dijit._editor._Plugin;var name=args.name;switch(name){case "undo":case "redo":case "cut":case "copy":case "paste":case "insertOrderedList":case "insertUnorderedList":case "indent":case "outdent":case "justifyCenter":case "justifyFull":case "justifyLeft":case "justifyRight":case "delete":case "selectAll":case "removeFormat":case "unlink":case "insertHorizontalRule":p=new _p({command:name});break;case "bold":case "italic":case "underline":case "strikethrough":case "subscript":case "superscript":p=new _p({buttonClass:dijit.form.ToggleButton,command:name});break;case "|":p=new _p({button:new dijit.ToolbarSeparator()});}o.plugin=p;});}if(!dojo._hasResource["dijit.MenuItem"]){dojo._hasResource["dijit.MenuItem"]=true;dojo.provide("dijit.MenuItem");dojo.declare("dijit.MenuItem",[dijit._Widget,dijit._Templated,dijit._Contained],{templateString:"<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" waiRole=\"menuitem\" tabIndex=\"-1\"\n\t\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<td class=\"dijitReset\" waiRole=\"presentation\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuItemIcon\" dojoAttachPoint=\"iconNode\">\n\t</td>\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" dojoAttachPoint=\"containerNode\"></td>\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" dojoAttachPoint=\"accelKeyNode\"></td>\n\t<td class=\"dijitReset dijitMenuArrowCell\" waiRole=\"presentation\">\n\t\t<div dojoAttachPoint=\"arrowWrapper\" style=\"visibility: hidden\">\n\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuExpand\">\n\t\t\t<span class=\"dijitMenuExpandA11y\">+</span>\n\t\t</div>\n\t</td>\n</tr>\n",attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{label:{node:"containerNode",type:"innerHTML"},iconClass:{node:"iconNode",type:"class"}}),label:"",iconClass:"",accelKey:"",disabled:false,_fillContent:function(_3f8){if(_3f8&&!("label" in this.params)){this.attr("label",_3f8.innerHTML);}},postCreate:function(){dojo.setSelectable(this.domNode,false);dojo.attr(this.containerNode,"id",this.id+"_text");dijit.setWaiState(this.domNode,"labelledby",this.id+"_text");},_onHover:function(){dojo.addClass(this.domNode,"dijitMenuItemHover");this.getParent().onItemHover(this);},_onUnhover:function(){dojo.removeClass(this.domNode,"dijitMenuItemHover");this.getParent().onItemUnhover(this);},_onClick:function(evt){this.getParent().onItemClick(this,evt);dojo.stopEvent(evt);},onClick:function(evt){},focus:function(){try{dijit.focus(this.focusNode);}catch(e){}},_onFocus:function(){this._setSelected(true);},_setSelected:function(_3fb){dojo.toggleClass(this.domNode,"dijitMenuItemSelected",_3fb);},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");},_setAccelKeyAttr:function(_3ff){this.accelKey=_3ff;this.accelKeyNode.style.display=_3ff?"":"none";this.accelKeyNode.innerHTML=_3ff;dojo.attr(this.containerNode,"colSpan",_3ff?"1":"2");}});}if(!dojo._hasResource["dijit.PopupMenuItem"]){dojo._hasResource["dijit.PopupMenuItem"]=true;dojo.provide("dijit.PopupMenuItem");dojo.declare("dijit.PopupMenuItem",dijit.MenuItem,{_fillContent:function(){if(this.srcNodeRef){var _400=dojo.query("*",this.srcNodeRef);dijit.PopupMenuItem.superclass._fillContent.call(this,_400[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}this.inherited(arguments);if(!this.popup){var node=dojo.query("[widgetId]",this.dropDownContainer)[0];this.popup=dijit.byNode(node);}dojo.body().appendChild(this.popup.domNode);this.popup.domNode.style.display="none";if(this.arrowWrapper){dojo.style(this.arrowWrapper,"visibility","");}dijit.setWaiState(this.focusNode,"haspopup","true");},destroyDescendants:function(){if(this.popup){this.popup.destroyRecursive();delete this.popup;}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.CheckedMenuItem"]){dojo._hasResource["dijit.CheckedMenuItem"]=true;dojo.provide("dijit.CheckedMenuItem");dojo.declare("dijit.CheckedMenuItem",dijit.MenuItem,{templateString:"<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" waiRole=\"menuitemcheckbox\" tabIndex=\"-1\"\n\t\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<td class=\"dijitReset\" waiRole=\"presentation\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuItemIcon dijitCheckedMenuItemIcon\" dojoAttachPoint=\"iconNode\">\n\t\t<span class=\"dijitCheckedMenuItemIconChar\">&#10003;</span>\n\t</td>\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" dojoAttachPoint=\"containerNode,labelNode\"></td>\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" dojoAttachPoint=\"accelKeyNode\"></td>\n\t<td class=\"dijitReset dijitMenuArrowCell\" waiRole=\"presentation\">\n\t</td>\n</tr>\n",checked:false,_setCheckedAttr:function(_402){dojo.toggleClass(this.domNode,"dijitCheckedMenuItemChecked",_402);dijit.setWaiState(this.domNode,"checked",_402);this.checked=_402;},onChange:function(_403){},_onClick:function(e){if(!this.disabled){this.attr("checked",!this.checked);this.onChange(this.checked);}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.MenuSeparator"]){dojo._hasResource["dijit.MenuSeparator"]=true;dojo.provide("dijit.MenuSeparator");dojo.declare("dijit.MenuSeparator",[dijit._Widget,dijit._Templated,dijit._Contained],{templateString:"<tr class=\"dijitMenuSeparator\">\n\t<td colspan=\"4\">\n\t\t<div class=\"dijitMenuSeparatorTop\"></div>\n\t\t<div class=\"dijitMenuSeparatorBottom\"></div>\n\t</td>\n</tr>\n",postCreate:function(){dojo.setSelectable(this.domNode,false);},isFocusable:function(){return false;}});}if(!dojo._hasResource["dijit.Menu"]){dojo._hasResource["dijit.Menu"]=true;dojo.provide("dijit.Menu");dojo.declare("dijit._MenuBase",[dijit._Widget,dijit._Templated,dijit._KeyNavContainer],{parentMenu:null,popupDelay:500,startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_405){_405.startup();});this.startupKeyNavChildren();this.inherited(arguments);},onExecute:function(){},onCancel:function(_406){},_moveToPopup:function(evt){if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled){this.focusedChild._onClick(evt);}else{var _408=this._getTopMenu();if(_408&&_408._isMenuBar){_408.focusNext();}}},onItemHover:function(item){if(this.isActive){this.focusChild(item);if(this.focusedChild.popup&&!this.focusedChild.disabled&&!this.hover_timer){this.hover_timer=setTimeout(dojo.hitch(this,"_openPopup"),this.popupDelay);}}},_onChildBlur:function(item){item._setSelected(false);dijit.popup.close(item.popup);this._stopPopupTimer();},onItemUnhover:function(item){if(this.isActive){this._stopPopupTimer();}},_stopPopupTimer:function(){if(this.hover_timer){clearTimeout(this.hover_timer);this.hover_timer=null;}},_getTopMenu:function(){for(var top=this;top.parentMenu;top=top.parentMenu){}return top;},onItemClick:function(item,evt){if(item.disabled){return false;}this.focusChild(item);if(item.popup){if(!this.is_open){this._openPopup();}}else{this.onExecute();item.onClick(evt);}},_openPopup:function(){this._stopPopupTimer();var _40f=this.focusedChild;var _410=_40f.popup;if(_410.isShowingNow){return;}_410.parentMenu=this;var self=this;dijit.popup.open({parent:this,popup:_410,around:_40f.domNode,orient:this._orient||(this.isLeftToRight()?{"TR":"TL","TL":"TR"}:{"TL":"TR","TR":"TL"}),onCancel:function(){dijit.popup.close(_410);_40f.focus();self.currentPopup=null;},onExecute:dojo.hitch(this,"_onDescendantExecute")});this.currentPopup=_410;if(_410.focus){setTimeout(dojo.hitch(_410,"focus"),0);}},onOpen:function(e){this.isShowingNow=true;},onClose:function(){this._stopPopupTimer();this.parentMenu=null;this.isShowingNow=false;this.currentPopup=null;if(this.focusedChild){this._onChildBlur(this.focusedChild);this.focusedChild=null;}},_onFocus:function(){this.isActive=true;dojo.addClass(this.domNode,"dijitMenuActive");dojo.removeClass(this.domNode,"dijitMenuPassive");this.inherited(arguments);},_onBlur:function(){this.isActive=false;dojo.removeClass(this.domNode,"dijitMenuActive");dojo.addClass(this.domNode,"dijitMenuPassive");this.onClose();this.inherited(arguments);},_onDescendantExecute:function(){this.onClose();}});dojo.declare("dijit.Menu",dijit._MenuBase,{constructor:function(){this._bindings=[];},templateString:"<table class=\"dijit dijitMenu dijitMenuPassive dijitReset dijitMenuTable\" waiRole=\"menu\" tabIndex=\"${tabIndex}\" dojoAttachEvent=\"onkeypress:_onKeyPress\">\n\t<tbody class=\"dijitReset\" dojoAttachPoint=\"containerNode\"></tbody>\n</table>\n",targetNodeIds:[],contextMenuForWindow:false,leftClickToOpen:false,_contextMenuWithMouse:false,postCreate:function(){if(this.contextMenuForWindow){this.bindDomNode(dojo.body());}else{dojo.forEach(this.targetNodeIds,this.bindDomNode,this);}var k=dojo.keys,l=this.isLeftToRight();this._openSubMenuKey=l?k.RIGHT_ARROW:k.LEFT_ARROW;this._closeSubMenuKey=l?k.LEFT_ARROW:k.RIGHT_ARROW;this.connectKeyNavHandlers([k.UP_ARROW],[k.DOWN_ARROW]);},_onKeyPress:function(evt){if(evt.ctrlKey||evt.altKey){return;}switch(evt.charOrCode){case this._openSubMenuKey:this._moveToPopup(evt);dojo.stopEvent(evt);break;case this._closeSubMenuKey:if(this.parentMenu){if(this.parentMenu._isMenuBar){this.parentMenu.focusPrev();}else{this.onCancel(false);}}else{dojo.stopEvent(evt);}break;}},_iframeContentWindow:function(_416){var win=dijit.getDocumentWindow(dijit.Menu._iframeContentDocument(_416))||dijit.Menu._iframeContentDocument(_416)["__parent__"]||(_416.name&&dojo.doc.frames[_416.name])||null;return win;},_iframeContentDocument:function(_418){var doc=_418.contentDocument||(_418.contentWindow&&_418.contentWindow.document)||(_418.name&&dojo.doc.frames[_418.name]&&dojo.doc.frames[_418.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(_41d){var node=dojo.byId(_41d);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 _427=dojo.coords(e.target,true);x=_427.x+10;y=_427.y+10;}var self=this;var _429=dijit.getFocus(this);function _42a(){dijit.focus(_429);dijit.popup.close(self);};dijit.popup.open({popup:this,x:x,y:y,onExecute:_42a,onCancel:_42a,orient:this.isLeftToRight()?"L":"R"});this.focus();this._onBlur=function(){this.inherited("_onBlur",arguments);dijit.popup.close(this);};},uninitialize:function(){dojo.forEach(this.targetNodeIds,this.unBindDomNode,this);this.inherited(arguments);}});}if(!dojo._hasResource["dijit.MenuBar"]){dojo._hasResource["dijit.MenuBar"]=true;dojo.provide("dijit.MenuBar");dojo.declare("dijit.MenuBar",dijit._MenuBase,{templateString:"<div class=\"dijitMenuBar dijitMenuPassive\" dojoAttachPoint=\"containerNode\"  waiRole=\"menubar\" tabIndex=\"${tabIndex}\" dojoAttachEvent=\"onkeypress: _onKeyPress\"></div>\n",_isMenuBar:true,constructor:function(){this._orient=this.isLeftToRight()?{BL:"TL"}:{BR:"TR"};},postCreate:function(){var k=dojo.keys,l=this.isLeftToRight();this.connectKeyNavHandlers(l?[k.LEFT_ARROW]:[k.RIGHT_ARROW],l?[k.RIGHT_ARROW]:[k.LEFT_ARROW]);},focusChild:function(item){var _42e=this.focusedChild,_42f=_42e&&_42e.popup&&_42e.popup.isShowingNow;this.inherited(arguments);if(_42f&&!item.disabled){this._openPopup();}},_onKeyPress:function(evt){if(evt.ctrlKey||evt.altKey){return;}switch(evt.charOrCode){case dojo.keys.DOWN_ARROW:this._moveToPopup(evt);dojo.stopEvent(evt);}}});}if(!dojo._hasResource["dijit.MenuBarItem"]){dojo._hasResource["dijit.MenuBarItem"]=true;dojo.provide("dijit.MenuBarItem");dojo.declare("dijit._MenuBarItemMixin",null,{templateString:"<div class=\"dijitReset dijitInline dijitMenuItem dijitMenuItemLabel\" dojoAttachPoint=\"focusNode\" waiRole=\"menuitem\" tabIndex=\"-1\"'\n\t\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<span dojoAttachPoint=\"containerNode\"></span>\n</div>\n",attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{label:{node:"containerNode",type:"innerHTML"}})});dojo.declare("dijit.MenuBarItem",[dijit.MenuItem,dijit._MenuBarItemMixin],{});}if(!dojo._hasResource["dijit.PopupMenuBarItem"]){dojo._hasResource["dijit.PopupMenuBarItem"]=true;dojo.provide("dijit.PopupMenuBarItem");dojo.declare("dijit.PopupMenuBarItem",[dijit.PopupMenuItem,dijit._MenuBarItemMixin],{});}if(!dojo._hasResource["dojo.regexp"]){dojo._hasResource["dojo.regexp"]=true;dojo.provide("dojo.regexp");dojo.regexp.escapeString=function(str,_432){return str.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(ch){if(_432&&_432.indexOf(ch)!=-1){return ch;}return "\\"+ch;});};dojo.regexp.buildGroupRE=function(arr,re,_436){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("|"),_436);};dojo.regexp.group=function(_439,_43a){return "("+(_43a?"?:":"")+_439+")";};}if(!dojo._hasResource["dojo.number"]){dojo._hasResource["dojo.number"]=true;dojo.provide("dojo.number");dojo.number.format=function(_43b,_43c){_43c=dojo.mixin({},_43c||{});var _43d=dojo.i18n.normalizeLocale(_43c.locale);var _43e=dojo.i18n.getLocalization("dojo.cldr","number",_43d);_43c.customs=_43e;var _43f=_43c.pattern||_43e[(_43c.type||"decimal")+"Format"];if(isNaN(_43b)||Math.abs(_43b)==Infinity){return null;}return dojo.number._applyPattern(_43b,_43f,_43c);};dojo.number._numberPatternRE=/[#0,]*[#0](?:\.0*#*)?/;dojo.number._applyPattern=function(_440,_441,_442){_442=_442||{};var _443=_442.customs.group;var _444=_442.customs.decimal;var _445=_441.split(";");var _446=_445[0];_441=_445[(_440<0)?1:0]||("-"+_446);if(_441.indexOf("%")!=-1){_440*=100;}else{if(_441.indexOf("‰")!=-1){_440*=1000;}else{if(_441.indexOf("¤")!=-1){_443=_442.customs.currencyGroup||_443;_444=_442.customs.currencyDecimal||_444;_441=_441.replace(/\u00a4{1,3}/,function(_447){var prop=["symbol","currency","displayName"][_447.length-1];return _442[prop]||_442.currency||"";});}else{if(_441.indexOf("E")!=-1){throw new Error("exponential notation not supported");}}}}var _449=dojo.number._numberPatternRE;var _44a=_446.match(_449);if(!_44a){throw new Error("unable to find a number expression in pattern: "+_441);}if(_442.fractional===false){_442.places=0;}return _441.replace(_449,dojo.number._formatAbsolute(_440,_44a[0],{decimal:_444,group:_443,places:_442.places,round:_442.round}));};dojo.number.round=function(_44b,_44c,_44d){var _44e=10/(_44d||10);return (_44e*+_44b).toFixed(_44c)/_44e;};if((0.9).toFixed()==0){(function(){var _44f=dojo.number.round;dojo.number.round=function(v,p,m){var d=Math.pow(10,-p||0),a=Math.abs(v);if(!v||a>=d||a*Math.pow(10,p+1)<5){d=0;}return _44f(v,p,m)+(v>0?d:-d);};})();}dojo.number._formatAbsolute=function(_455,_456,_457){_457=_457||{};if(_457.places===true){_457.places=0;}if(_457.places===Infinity){_457.places=6;}var _458=_456.split(".");var _459=(_457.places>=0)?_457.places:(_458[1]&&_458[1].length)||0;if(!(_457.round<0)){_455=dojo.number.round(_455,_459,_457.round);}var _45a=String(Math.abs(_455)).split(".");var _45b=_45a[1]||"";if(_457.places){var _45c=dojo.isString(_457.places)&&_457.places.indexOf(",");if(_45c){_457.places=_457.places.substring(_45c+1);}_45a[1]=dojo.string.pad(_45b.substr(0,_457.places),_457.places,"0",true);}else{if(_458[1]&&_457.places!==0){var pad=_458[1].lastIndexOf("0")+1;if(pad>_45b.length){_45a[1]=dojo.string.pad(_45b,pad,"0",true);}var _45e=_458[1].length;if(_45e<_45b.length){_45a[1]=_45b.substr(0,_45e);}}else{if(_45a[1]){_45a.pop();}}}var _45f=_458[0].replace(",","");pad=_45f.indexOf("0");if(pad!=-1){pad=_45f.length-pad;if(pad>_45a[0].length){_45a[0]=dojo.string.pad(_45a[0],pad);}if(_45f.indexOf("#")==-1){_45a[0]=_45a[0].substr(_45a[0].length-pad);}}var _460=_458[0].lastIndexOf(",");var _461,_462;if(_460!=-1){_461=_458[0].length-_460-1;var _463=_458[0].substr(0,_460);_460=_463.lastIndexOf(",");if(_460!=-1){_462=_463.length-_460-1;}}var _464=[];for(var _465=_45a[0];_465;){var off=_465.length-_461;_464.push((off>0)?_465.substr(off):_465);_465=(off>0)?_465.slice(0,off):"";if(_462){_461=_462;delete _462;}}_45a[0]=_464.reverse().join(_457.group||",");return _45a.join(_457.decimal||".");};dojo.number.regexp=function(_467){return dojo.number._parseInfo(_467).regexp;};dojo.number._parseInfo=function(_468){_468=_468||{};var _469=dojo.i18n.normalizeLocale(_468.locale);var _46a=dojo.i18n.getLocalization("dojo.cldr","number",_469);var _46b=_468.pattern||_46a[(_468.type||"decimal")+"Format"];var _46c=_46a.group;var _46d=_46a.decimal;var _46e=1;if(_46b.indexOf("%")!=-1){_46e/=100;}else{if(_46b.indexOf("‰")!=-1){_46e/=1000;}else{var _46f=_46b.indexOf("¤")!=-1;if(_46f){_46c=_46a.currencyGroup||_46c;_46d=_46a.currencyDecimal||_46d;}}}var _470=_46b.split(";");if(_470.length==1){_470.push("-"+_470[0]);}var re=dojo.regexp.buildGroupRE(_470,function(_472){_472="(?:"+dojo.regexp.escapeString(_472,".")+")";return _472.replace(dojo.number._numberPatternRE,function(_473){var _474={signed:false,separator:_468.strict?_46c:[_46c,""],fractional:_468.fractional,decimal:_46d,exponent:false};var _475=_473.split(".");var _476=_468.places;if(_475.length==1||_476===0){_474.fractional=false;}else{if(_476===undefined){_476=_468.pattern?_475[1].lastIndexOf("0")+1:Infinity;}if(_476&&_468.fractional==undefined){_474.fractional=true;}if(!_468.places&&(_476<_475[1].length)){_476+=","+_475[1].length;}_474.places=_476;}var _477=_475[0].split(",");if(_477.length>1){_474.groupSize=_477.pop().length;if(_477.length>1){_474.groupSize2=_477.pop().length;}}return "("+dojo.number._realNumberRegexp(_474)+")";});},true);if(_46f){re=re.replace(/([\s\xa0]*)(\u00a4{1,3})([\s\xa0]*)/g,function(_478,_479,_47a,_47b){var prop=["symbol","currency","displayName"][_47a.length-1];var _47d=dojo.regexp.escapeString(_468[prop]||_468.currency||"");_479=_479?"[\\s\\xa0]":"";_47b=_47b?"[\\s\\xa0]":"";if(!_468.strict){if(_479){_479+="*";}if(_47b){_47b+="*";}return "(?:"+_479+_47d+_47b+")?";}return _479+_47d+_47b;});}return {regexp:re.replace(/[\xa0 ]/g,"[\\s\\xa0]"),group:_46c,decimal:_46d,factor:_46e};};dojo.number.parse=function(_47e,_47f){var info=dojo.number._parseInfo(_47f);var _481=(new RegExp("^"+info.regexp+"$")).exec(_47e);if(!_481){return NaN;}var _482=_481[1];if(!_481[1]){if(!_481[2]){return NaN;}_482=_481[2];info.factor*=-1;}_482=_482.replace(new RegExp("["+info.group+"\\s\\xa0"+"]","g"),"").replace(info.decimal,".");return _482*info.factor;};dojo.number._realNumberRegexp=function(_483){_483=_483||{};if(!("places" in _483)){_483.places=Infinity;}if(typeof _483.decimal!="string"){_483.decimal=".";}if(!("fractional" in _483)||/^0/.test(_483.places)){_483.fractional=[true,false];}if(!("exponent" in _483)){_483.exponent=[true,false];}if(!("eSigned" in _483)){_483.eSigned=[true,false];}var _484=dojo.number._integerRegexp(_483);var _485=dojo.regexp.buildGroupRE(_483.fractional,function(q){var re="";if(q&&(_483.places!==0)){re="\\"+_483.decimal;if(_483.places==Infinity){re="(?:"+re+"\\d+)?";}else{re+="\\d{"+_483.places+"}";}}return re;},true);var _488=dojo.regexp.buildGroupRE(_483.exponent,function(q){if(q){return "([eE]"+dojo.number._integerRegexp({signed:_483.eSigned})+")";}return "";});var _48a=_484+_485;if(_485){_48a="(?:(?:"+_48a+")|(?:"+_485+"))";}return _48a+_488;};dojo.number._integerRegexp=function(_48b){_48b=_48b||{};if(!("signed" in _48b)){_48b.signed=[true,false];}if(!("separator" in _48b)){_48b.separator="";}else{if(!("groupSize" in _48b)){_48b.groupSize=3;}}var _48c=dojo.regexp.buildGroupRE(_48b.signed,function(q){return q?"[-+]":"";},true);var _48e=dojo.regexp.buildGroupRE(_48b.separator,function(sep){if(!sep){return "(?:\\d+)";}sep=dojo.regexp.escapeString(sep);if(sep==" "){sep="\\s";}else{if(sep==" "){sep="\\s\\xa0";}}var grp=_48b.groupSize,grp2=_48b.groupSize2;if(grp2){var _492="(?:0|[1-9]\\d{0,"+(grp2-1)+"}(?:["+sep+"]\\d{"+grp2+"})*["+sep+"]\\d{"+grp+"})";return ((grp-grp2)>0)?"(?:"+_492+"|(?:0|[1-9]\\d{0,"+(grp-1)+"}))":_492;}return "(?:0|[1-9]\\d{0,"+(grp-1)+"}(?:["+sep+"]\\d{"+grp+"})*)";},true);return _48c+_48e;};}if(!dojo._hasResource["dijit.ProgressBar"]){dojo._hasResource["dijit.ProgressBar"]=true;dojo.provide("dijit.ProgressBar");dojo.declare("dijit.ProgressBar",[dijit._Widget,dijit._Templated],{progress:"0",maximum:100,places:0,indeterminate:false,templateString:"<div class=\"dijitProgressBar dijitProgressBarEmpty\"\n\t><div waiRole=\"progressbar\" tabindex=\"0\" dojoAttachPoint=\"internalProgress\" class=\"dijitProgressBarFull\"\n\t\t><div class=\"dijitProgressBarTile\"></div\n\t\t><span style=\"visibility:hidden\">&nbsp;</span\n\t></div\n\t><div dojoAttachPoint=\"label\" class=\"dijitProgressBarLabel\" id=\"${id}_label\">&nbsp;</div\n\t><img dojoAttachPoint=\"indeterminateHighContrastImage\" class=\"dijitProgressBarIndeterminateHighContrastImage\"\n\t></img\n></div>\n",_indeterminateHighContrastImagePath:dojo.moduleUrl("dijit","themes/a11y/indeterminate_progress.gif"),postCreate:function(){this.inherited(arguments);this.indeterminateHighContrastImage.setAttribute("src",this._indeterminateHighContrastImagePath);this.update();},update:function(_493){dojo.mixin(this,_493||{});var tip=this.internalProgress;var _495=1,_496;if(this.indeterminate){_496="addClass";dijit.removeWaiState(tip,"valuenow");dijit.removeWaiState(tip,"valuemin");dijit.removeWaiState(tip,"valuemax");}else{_496="removeClass";if(String(this.progress).indexOf("%")!=-1){_495=Math.min(parseFloat(this.progress)/100,1);this.progress=_495*this.maximum;}else{this.progress=Math.min(this.progress,this.maximum);_495=this.progress/this.maximum;}var text=this.report(_495);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[_496](this.domNode,"dijitProgressBarIndeterminate");tip.style.width=(_495*100)+"%";this.onChange();},report:function(_498){return dojo.number.format(_498,{type:"percent",places:this.places,locale:this.lang});},onChange:function(){}});}if(!dojo._hasResource["dijit.TitlePane"]){dojo._hasResource["dijit.TitlePane"]=true;dojo.provide("dijit.TitlePane");dojo.declare("dijit.TitlePane",[dijit.layout.ContentPane,dijit._Templated],{title:"",open:true,duration:dijit.defaultDuration,baseClass:"dijitTitlePane",templateString:"<div class=\"${baseClass}\">\n\t<div dojoAttachEvent=\"onclick:toggle, onkeypress:_onTitleKey, onfocus:_handleFocus, onblur:_handleFocus, onmouseenter:_onTitleEnter, onmouseleave:_onTitleLeave\" tabindex=\"0\"\n\t\t\twaiRole=\"button\" class=\"dijitTitlePaneTitle\" dojoAttachPoint=\"titleBarNode,focusNode\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" dojoAttachPoint=\"arrowNode\" class=\"dijitArrowNode\" waiRole=\"presentation\"\n\t\t><span dojoAttachPoint=\"arrowNodeInner\" class=\"dijitArrowNodeInner\"></span\n\t\t><span dojoAttachPoint=\"titleNode\" class=\"dijitTitlePaneTextNode\"></span>\n\t</div>\n\t<div class=\"dijitTitlePaneContentOuter\" dojoAttachPoint=\"hideNode\">\n\t\t<div class=\"dijitReset\" dojoAttachPoint=\"wipeNode\">\n\t\t\t<div class=\"dijitTitlePaneContentInner\" dojoAttachPoint=\"containerNode\" waiRole=\"region\" tabindex=\"-1\">\n\t\t\t\t<!-- nested divs because wipeIn()/wipeOut() doesn't work right on node w/padding etc.  Put padding on inner div. -->\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n",attributeMap:dojo.delegate(dijit.layout.ContentPane.prototype.attributeMap,{title:{node:"titleNode",type:"innerHTML"}}),postCreate:function(){if(!this.open){this.hideNode.style.display=this.wipeNode.style.display="none";}this._setCss();dojo.setSelectable(this.titleNode,false);dijit.setWaiState(this.containerNode,"labelledby",this.titleNode.id);dijit.setWaiState(this.focusNode,"haspopup","true");var _499=this.hideNode,_49a=this.wipeNode;this._wipeIn=dojo.fx.wipeIn({node:this.wipeNode,duration:this.duration,beforeBegin:function(){_499.style.display="";}});this._wipeOut=dojo.fx.wipeOut({node:this.wipeNode,duration:this.duration,onEnd:function(){_499.style.display="none";}});this.inherited(arguments);},_setOpenAttr:function(open){if(this.open!==open){this.toggle();}},_setContentAttr:function(_49c){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(_49d){if(_49d&&_49d.status()=="playing"){_49d.stop();}});var anim=this[this.open?"_wipeOut":"_wipeIn"];if(anim){anim.play();}else{this.hideNode.style.display=this.open?"":"none";}this.open=!this.open;this._onShow();this._setCss();},_setCss:function(){var _49f=["dijitClosed","dijitOpen"];var _4a0=this.open;var node=this.titleBarNode||this.focusNode;dojo.removeClass(node,_49f[!_4a0+0]);node.className+=" "+_49f[_4a0+0];this.arrowNodeInner.innerHTML=this.open?"-":"+";},_onTitleKey:function(e){if(e.charOrCode==dojo.keys.ENTER||e.charOrCode==" "){this.toggle();}else{if(e.charOrCode==dojo.keys.DOWN_ARROW&&this.open){this.containerNode.focus();e.preventDefault();}}},_onTitleEnter:function(){dojo.addClass(this.focusNode,"dijitTitlePaneTitle-hover");},_onTitleLeave:function(){dojo.removeClass(this.focusNode,"dijitTitlePaneTitle-hover");},_handleFocus:function(e){dojo[(e.type=="focus"?"addClass":"removeClass")](this.focusNode,this.baseClass+"Focused");},setTitle:function(_4a4){dojo.deprecated("dijit.TitlePane.setTitle() is deprecated.  Use attr('title', ...) instead.","","2.0");this.titleNode.innerHTML=_4a4;}});}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(_4a5,_4a6,_4a7){if(this.aroundNode&&this.aroundNode===_4a6){return;}if(this.fadeOut.status()=="playing"){this._onDeck=arguments;return;}this.containerNode.innerHTML=_4a5;this.domNode.style.top=(this.domNode.offsetTop+1)+"px";var _4a8={};var ltr=this.isLeftToRight();dojo.forEach((_4a7&&_4a7.length)?_4a7:dijit.Tooltip.defaultPosition,function(pos){switch(pos){case "after":_4a8[ltr?"BR":"BL"]=ltr?"BL":"BR";break;case "before":_4a8[ltr?"BL":"BR"]=ltr?"BR":"BL";break;case "below":_4a8[ltr?"BL":"BR"]=ltr?"TL":"TR";_4a8[ltr?"BR":"BL"]=ltr?"TR":"TL";break;case "above":default:_4a8[ltr?"TL":"TR"]=ltr?"BL":"BR";_4a8[ltr?"TR":"TL"]=ltr?"BR":"BL";break;}});var pos=dijit.placeOnScreenAroundElement(this.domNode,_4a6,_4a8,dojo.hitch(this,"orient"));dojo.style(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=true;this.aroundNode=_4a6;},orient:function(node,_4ad,_4ae){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"}[_4ad+"-"+_4ae];},_onShow:function(){if(dojo.isIE){this.domNode.style.filter="";}},hide:function(_4af){if(this._onDeck&&this._onDeck[1]==_4af){this._onDeck=null;}else{if(this.aroundNode===_4af){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(_4b0,_4b1,_4b2){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.show(_4b0,_4b1,_4b2);};dijit.hideTooltip=function(_4b3){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.hide(_4b3);};dojo.declare("dijit.Tooltip",dijit._Widget,{label:"",showDelay:400,connectId:[],position:[],_setConnectIdAttr:function(ids){this._connectNodes=[];this.connectId=dojo.isArrayLike(ids)?ids:[ids];dojo.forEach(this.connectId,function(id){var node=dojo.byId(id);if(node){this._connectNodes.push(node);dojo.forEach(["onMouseEnter","onMouseLeave","onFocus","onBlur"],function(_4b7){this.connect(node,_4b7.toLowerCase(),"_"+_4b7);},this);if(dojo.isIE){node.style.zoom=1;}}},this);},postCreate:function(){dojo.addClass(this.domNode,"dijitTooltipData");},_onMouseEnter:function(e){this._onHover(e);},_onMouseLeave:function(e){this._onUnHover(e);},_onFocus:function(e){this._focus=true;this._onHover(e);this.inherited(arguments);},_onBlur:function(e){this._focus=false;this._onUnHover(e);this.inherited(arguments);},_onHover:function(e){if(!this._showTimer){var _4bd=e.target;this._showTimer=setTimeout(dojo.hitch(this,function(){this.open(_4bd);}),this.showDelay);}},_onUnHover:function(e){if(this._focus){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}this.close();},open:function(_4bf){_4bf=_4bf||this._connectNodes[0];if(!_4bf){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}dijit.showTooltip(this.label||this.domNode.innerHTML,_4bf,this.position);this._connectNode=_4bf;},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,_4c1,_4c2){var c=document.cookie;if(arguments.length==1){var _4c4=c.match(new RegExp("(?:^|; )"+dojo.regexp.escapeString(name)+"=([^;]*)"));return _4c4?decodeURIComponent(_4c4[1]):undefined;}else{_4c2=_4c2||{};var exp=_4c2.expires;if(typeof exp=="number"){var d=new Date();d.setTime(d.getTime()+exp*24*60*60*1000);exp=_4c2.expires=d;}if(exp&&exp.toUTCString){_4c2.expires=exp.toUTCString();}_4c1=encodeURIComponent(_4c1);var _4c7=name+"="+_4c1,_4c8;for(_4c8 in _4c2){_4c7+="; "+_4c8;var _4c9=_4c2[_4c8];if(_4c9!==true){_4c7+="="+_4c9;}}document.cookie=_4c7;}};dojo.cookie.isSupported=function(){if(!("cookieEnabled" in navigator)){this("__djCookieTest__","CookiesAllowed");navigator.cookieEnabled=this("__djCookieTest__")=="CookiesAllowed";if(navigator.cookieEnabled){this("__djCookieTest__","",{expires:-1});}}return navigator.cookieEnabled;};}if(!dojo._hasResource["dijit.tree.TreeStoreModel"]){dojo._hasResource["dijit.tree.TreeStoreModel"]=true;dojo.provide("dijit.tree.TreeStoreModel");dojo.declare("dijit.tree.TreeStoreModel",null,{store:null,childrenAttrs:["children"],labelAttr:"",root:null,query:null,constructor:function(args){dojo.mixin(this,args);this.connects=[];var _4cb=this.store;if(!_4cb.getFeatures()["dojo.data.api.Identity"]){throw new Error("dijit.Tree: store must support dojo.data.Identity");}if(_4cb.getFeatures()["dojo.data.api.Notification"]){this.connects=this.connects.concat([dojo.connect(_4cb,"onNew",this,"_onNewItem"),dojo.connect(_4cb,"onDelete",this,"_onDeleteItem"),dojo.connect(_4cb,"onSet",this,"_onSetItem")]);}},destroy:function(){dojo.forEach(this.connects,dojo.disconnect);},getRoot:function(_4cc,_4cd){if(this.root){_4cc(this.root);}else{this.store.fetch({query:this.query,onComplete:dojo.hitch(this,function(_4ce){if(_4ce.length!=1){throw new Error(this.declaredClass+": query "+dojo.toJson(this.query)+" returned "+_4ce.length+" items, but must return exactly one item");}this.root=_4ce[0];_4cc(this.root);}),onError:_4cd});}},mayHaveChildren:function(item){return dojo.some(this.childrenAttrs,function(attr){return this.store.hasAttribute(item,attr);},this);},getChildren:function(_4d1,_4d2,_4d3){var _4d4=this.store;var _4d5=[];for(var i=0;i<this.childrenAttrs.length;i++){var vals=_4d4.getValues(_4d1,this.childrenAttrs[i]);_4d5=_4d5.concat(vals);}var _4d8=0;dojo.forEach(_4d5,function(item){if(!_4d4.isItemLoaded(item)){_4d8++;}});if(_4d8==0){_4d2(_4d5);}else{var _4da=function _4da(item){if(--_4d8==0){_4d2(_4d5);}};dojo.forEach(_4d5,function(item){if(!_4d4.isItemLoaded(item)){_4d4.loadItem({item:item,onItem:_4da,onError:_4d3});}});}},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,_4e0){var _4e1={parent:_4e0,attribute:this.childrenAttrs[0]};return this.store.newItem(args,_4e1);},pasteItem:function(_4e2,_4e3,_4e4,_4e5,_4e6){var _4e7=this.store,_4e8=this.childrenAttrs[0];if(_4e3){dojo.forEach(this.childrenAttrs,function(attr){if(_4e7.containsValue(_4e3,attr,_4e2)){if(!_4e5){var _4ea=dojo.filter(_4e7.getValues(_4e3,attr),function(x){return x!=_4e2;});_4e7.setValues(_4e3,attr,_4ea);}_4e8=attr;}});}if(_4e4){if(typeof _4e6=="number"){var _4ec=_4e7.getValues(_4e4,_4e8);_4ec.splice(_4e6,0,_4e2);_4e7.setValues(_4e4,_4e8,_4ec);}else{_4e7.setValues(_4e4,_4e8,_4e7.getValues(_4e4,_4e8).concat(_4e2));}}},onChange:function(item){},onChildrenChange:function(_4ee,_4ef){},onDelete:function(_4f0,_4f1){},_onNewItem:function(item,_4f3){if(!_4f3){return;}this.getChildren(_4f3.item,dojo.hitch(this,function(_4f4){this.onChildrenChange(_4f3.item,_4f4);}));},_onDeleteItem:function(item){this.onDelete(item);},_onSetItem:function(item,_4f7,_4f8,_4f9){if(dojo.indexOf(this.childrenAttrs,_4f7)!=-1){this.getChildren(item,dojo.hitch(this,function(_4fa){this.onChildrenChange(item,_4fa);}));}else{this.onChange(item);}}});}if(!dojo._hasResource["dijit.tree.ForestStoreModel"]){dojo._hasResource["dijit.tree.ForestStoreModel"]=true;dojo.provide("dijit.tree.ForestStoreModel");dojo.declare("dijit.tree.ForestStoreModel",dijit.tree.TreeStoreModel,{rootId:"$root$",rootLabel:"ROOT",query:null,constructor:function(_4fb){this.root={store:this,root:true,id:_4fb.rootId,label:_4fb.rootLabel,children:_4fb.rootChildren};},mayHaveChildren:function(item){return item===this.root||this.inherited(arguments);},getChildren:function(_4fd,_4fe,_4ff){if(_4fd===this.root){if(this.root.children){_4fe(this.root.children);}else{this.store.fetch({query:this.query,onComplete:dojo.hitch(this,function(_500){this.root.children=_500;_4fe(_500);}),onError:_4ff});}}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,_504){if(_504===this.root){this.onNewRootItem(args);return this.store.newItem(args);}else{return this.inherited(arguments);}},onNewRootItem:function(args){},pasteItem:function(_506,_507,_508,_509,_50a){if(_507===this.root){if(!_509){this.onLeaveRoot(_506);}}dijit.tree.TreeStoreModel.prototype.pasteItem.call(this,_506,_507===this.root?null:_507,_508===this.root?null:_508,_509,_50a);if(_508===this.root){this.onAddToRoot(_506);}},onAddToRoot:function(item){},onLeaveRoot:function(item){},_requeryTop:function(){var _50d=this.root.children||[];this.store.fetch({query:this.query,onComplete:dojo.hitch(this,function(_50e){this.root.children=_50e;if(_50d.length!=_50e.length||dojo.some(_50d,function(item,idx){return _50e[idx]!=item;})){this.onChildrenChange(this.root,_50e);}})});},_onNewItem:function(item,_512){this._requeryTop();this.inherited(arguments);},_onDeleteItem:function(item){if(dojo.indexOf(this.root.children,item)!=-1){this._requeryTop();}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.Tree"]){dojo._hasResource["dijit.Tree"]=true;dojo.provide("dijit.Tree");dojo.declare("dijit._TreeNode",[dijit._Widget,dijit._Templated,dijit._Container,dijit._Contained],{item:null,isTreeNode:true,label:"",isExpandable:null,isExpanded:false,state:"UNCHECKED",templateString:"<div class=\"dijitTreeNode\" waiRole=\"presentation\"\n\t><div dojoAttachPoint=\"rowNode\" class=\"dijitTreeRow\" waiRole=\"presentation\" dojoAttachEvent=\"onmouseenter:_onMouseEnter, onmouseleave:_onMouseLeave\"\n\t\t><img src=\"${_blankGif}\" alt=\"\" dojoAttachPoint=\"expandoNode\" class=\"dijitTreeExpando\" waiRole=\"presentation\"\n\t\t><span dojoAttachPoint=\"expandoNodeText\" class=\"dijitExpandoText\" waiRole=\"presentation\"\n\t\t></span\n\t\t><span dojoAttachPoint=\"contentNode\"\n\t\t\tclass=\"dijitTreeContent\" waiRole=\"presentation\">\n\t\t\t<img src=\"${_blankGif}\" alt=\"\" dojoAttachPoint=\"iconNode\" class=\"dijitTreeIcon\" waiRole=\"presentation\"\n\t\t\t><span dojoAttachPoint=\"labelNode\" class=\"dijitTreeLabel\" wairole=\"treeitem\" tabindex=\"-1\" waiState=\"selected-false\" dojoAttachEvent=\"onfocus:_onLabelFocus, onblur:_onLabelBlur\"></span>\n\t\t</span\n\t></div>\n\t<div dojoAttachPoint=\"containerNode\" class=\"dijitTreeContainer\" waiRole=\"presentation\" style=\"display: none;\"></div>\n</div>\n",postCreate:function(){this.setLabelNode(this.label);this._setExpando();this._updateItemClasses(this.item);if(this.isExpandable){dijit.setWaiState(this.labelNode,"expanded",this.isExpanded);if(this==this.tree.rootNode){dijit.setWaitState(this.tree.domNode,"expanded",this.isExpanded);}}},_setIndentAttr:function(_514){this.indent=_514;var _515=(Math.max(_514,0)*19)+"px";dojo.style(this.domNode,"backgroundPosition",_515+" 0px");dojo.style(this.rowNode,dojo._isBodyLtr()?"paddingLeft":"paddingRight",_515);dojo.forEach(this.getChildren(),function(_516){_516.attr("indent",_514+1);});},markProcessing:function(){this.state="LOADING";this._setExpando(true);},unmarkProcessing:function(){this._setExpando(false);},_updateItemClasses:function(item){var tree=this.tree,_519=tree.model;if(tree._v10Compat&&item===_519.root){item=null;}if(this._iconClass){dojo.removeClass(this.iconNode,this._iconClass);}this._iconClass=tree.getIconClass(item,this.isExpanded);if(this._iconClass){dojo.addClass(this.iconNode,this._iconClass);}dojo.style(this.iconNode,tree.getIconStyle(item,this.isExpanded)||{});if(this._labelClass){dojo.removeClass(this.labelNode,this._labelClass);}this._labelClass=tree.getLabelClass(item,this.isExpanded);if(this._labelClass){dojo.addClass(this.labelNode,this._labelClass);}dojo.style(this.labelNode,tree.getLabelStyle(item,this.isExpanded)||{});},_updateLayout:function(){var _51a=this.getParent();if(!_51a||_51a.rowNode.style.display=="none"){dojo.addClass(this.domNode,"dijitTreeIsRoot");}else{dojo.toggleClass(this.domNode,"dijitTreeIsLast",!this.getNextSibling());}},_setExpando:function(_51b){var _51c=["dijitTreeExpandoLoading","dijitTreeExpandoOpened","dijitTreeExpandoClosed","dijitTreeExpandoLeaf"];var _51d=["*","-","+","*"];var idx=_51b?0:(this.isExpandable?(this.isExpanded?1:2):3);dojo.forEach(_51c,function(s){dojo.removeClass(this.expandoNode,s);},this);dojo.addClass(this.expandoNode,_51c[idx]);this.expandoNodeText.innerHTML=_51d[idx];},expand:function(){if(this.isExpanded){return;}this._wipeOut&&this._wipeOut.stop();this.isExpanded=true;dijit.setWaiState(this.labelNode,"expanded","true");dijit.setWaiRole(this.containerNode,"group");dojo.addClass(this.contentNode,"dijitTreeContentExpanded");this._setExpando();this._updateItemClasses(this.item);if(this==this.tree.rootNode){dijit.setWaiState(this.tree.domNode,"expanded","true");}if(!this._wipeIn){this._wipeIn=dojo.fx.wipeIn({node:this.containerNode,duration:dijit.defaultDuration});}this._wipeIn.play();},collapse:function(){if(!this.isExpanded){return;}this._wipeIn&&this._wipeIn.stop();this.isExpanded=false;dijit.setWaiState(this.labelNode,"expanded","false");if(this==this.tree.rootNode){dijit.setWaiState(this.tree.domNode,"expanded","false");}dojo.removeClass(this.contentNode,"dijitTreeContentExpanded");this._setExpando();this._updateItemClasses(this.item);if(!this._wipeOut){this._wipeOut=dojo.fx.wipeOut({node:this.containerNode,duration:dijit.defaultDuration});}this._wipeOut.play();},setLabelNode:function(_520){this.labelNode.innerHTML="";this.labelNode.appendChild(dojo.doc.createTextNode(_520));},indent:0,setChildItems:function(_521){var tree=this.tree,_523=tree.model;this.getChildren().forEach(function(_524){dijit._Container.prototype.removeChild.call(this,_524);},this);this.state="LOADED";if(_521&&_521.length>0){this.isExpandable=true;dojo.forEach(_521,function(item){var id=_523.getIdentity(item),_527=tree._itemNodeMap[id],node=(_527&&!_527.getParent())?_527:this.tree._createTreeNode({item:item,tree:tree,isExpandable:_523.mayHaveChildren(item),label:tree.getLabel(item),indent:this.indent+1});if(_527){_527.attr("indent",this.indent+1);}this.addChild(node);tree._itemNodeMap[id]=node;if(this.tree._state(item)){tree._expandNode(node);}},this);dojo.forEach(this.getChildren(),function(_529,idx){_529._updateLayout();});}else{this.isExpandable=false;}if(this._setExpando){this._setExpando(false);}if(this==tree.rootNode){var fc=this.tree.showRoot?this:this.getChildren()[0];if(fc){fc.setSelected(true);tree.lastFocused=fc;}else{tree.domNode.setAttribute("tabIndex","0");}}},removeChild:function(node){this.inherited(arguments);var _52d=this.getChildren();if(_52d.length==0){this.isExpandable=false;this.collapse();}dojo.forEach(_52d,function(_52e){_52e._updateLayout();});},makeExpandable:function(){this.isExpandable=true;this._setExpando(false);},_onLabelFocus:function(evt){dojo.addClass(this.labelNode,"dijitTreeLabelFocused");this.tree._onNodeFocus(this);},_onLabelBlur:function(evt){dojo.removeClass(this.labelNode,"dijitTreeLabelFocused");},setSelected:function(_531){var _532=this.labelNode;_532.setAttribute("tabIndex",_531?"0":"-1");dijit.setWaiState(_532,"selected",_531);dojo.toggleClass(this.rowNode,"dijitTreeNodeSelected",_531);},_onMouseEnter:function(evt){dojo.addClass(this.rowNode,"dijitTreeNodeHover");this.tree._onNodeMouseEnter(this,evt);},_onMouseLeave:function(evt){dojo.removeClass(this.rowNode,"dijitTreeNodeHover");this.tree._onNodeMouseLeave(this,evt);}});dojo.declare("dijit.Tree",[dijit._Widget,dijit._Templated],{store:null,model:null,query:null,label:"",showRoot:true,childrenAttr:["children"],openOnClick:false,openOnDblClick:false,templateString:"<div class=\"dijitTreeContainer\" waiRole=\"tree\"\n\tdojoAttachEvent=\"onclick:_onClick,onkeypress:_onKeyPress,ondblclick:_onDblClick\">\n</div>\n",isExpandable:true,isTree:true,persist:true,dndController:null,dndParams:["onDndDrop","itemCreator","onDndCancel","checkAcceptance","checkItemAcceptance","dragThreshold","betweenThreshold"],onDndDrop:null,itemCreator:null,onDndCancel:null,checkAcceptance:null,checkItemAcceptance:null,dragThreshold:0,betweenThreshold:0,_publish:function(_535,_536){dojo.publish(this.id,[dojo.mixin({tree:this,event:_535},_536||{})]);},postMixInProperties:function(){this.tree=this;this._itemNodeMap={};if(!this.cookieName){this.cookieName=this.id+"SaveStateCookie";}},postCreate:function(){this._initState();if(!this.model){this._store2model();}this.connect(this.model,"onChange","_onItemChange");this.connect(this.model,"onChildrenChange","_onItemChildrenChange");this.connect(this.model,"onDelete","_onItemDelete");this._load();this.inherited(arguments);if(this.dndController){if(dojo.isString(this.dndController)){this.dndController=dojo.getObject(this.dndController);}var _537={};for(var i=0;i<this.dndParams.length;i++){if(this[this.dndParams[i]]){_537[this.dndParams[i]]=this[this.dndParams[i]];}}this.dndController=new this.dndController(this,_537);}},_store2model:function(){this._v10Compat=true;dojo.deprecated("Tree: from version 2.0, should specify a model object rather than a store/query");var _539={id:this.id+"_ForestStoreModel",store:this.store,query:this.query,childrenAttrs:this.childrenAttr};if(this.params.mayHaveChildren){_539.mayHaveChildren=dojo.hitch(this,"mayHaveChildren");}if(this.params.getItemChildren){_539.getChildren=dojo.hitch(this,function(item,_53b,_53c){this.getItemChildren((this._v10Compat&&item===this.model.root)?null:item,_53b,_53c);});}this.model=new dijit.tree.ForestStoreModel(_539);this.showRoot=Boolean(this.label);},_load:function(){this.model.getRoot(dojo.hitch(this,function(item){var rn=this.rootNode=this.tree._createTreeNode({item:item,tree:this,isExpandable:true,label:this.label||this.getLabel(item),indent:this.showRoot?0:-1});if(!this.showRoot){rn.rowNode.style.display="none";}this.domNode.appendChild(rn.domNode);this._itemNodeMap[this.model.getIdentity(item)]=rn;rn._updateLayout();this._expandNode(rn);}),function(err){console.error(this,": error loading root: ",err);});},mayHaveChildren:function(item){},getItemChildren:function(_541,_542){},getLabel:function(item){return this.model.getLabel(item);},getIconClass:function(item,_545){return (!item||this.model.mayHaveChildren(item))?(_545?"dijitFolderOpened":"dijitFolderClosed"):"dijitLeaf";},getLabelClass:function(item,_547){},getIconStyle:function(item,_549){},getLabelStyle:function(item,_54b){},_onKeyPress:function(e){if(e.altKey){return;}var dk=dojo.keys;var _54e=dijit.getEnclosingWidget(e.target);if(!_54e){return;}var key=e.charOrCode;if(typeof key=="string"){if(!e.altKey&&!e.ctrlKey&&!e.shiftKey&&!e.metaKey){this._onLetterKeyNav({node:_54e,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:_54e,item:_54e.item});dojo.stopEvent(e);}}},_onEnterKey:function(_551){this._publish("execute",{item:_551.item,node:_551.node});this.onClick(_551.item,_551.node);},_onDownArrow:function(_552){var node=this._getNextNode(_552.node);if(node&&node.isTreeNode){this.focusNode(node);}},_onUpArrow:function(_554){var node=_554.node;var _556=node.getPreviousSibling();if(_556){node=_556;while(node.isExpandable&&node.isExpanded&&node.hasChildren()){var _557=node.getChildren();node=_557[_557.length-1];}}else{var _558=node.getParent();if(!(!this.showRoot&&_558===this.rootNode)){node=_558;}}if(node&&node.isTreeNode){this.focusNode(node);}},_onRightArrow:function(_559){var node=_559.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(_55b){var node=_55b.node;if(node.isExpandable&&node.isExpanded){this._collapseNode(node);}else{var _55d=node.getParent();if(_55d&&_55d.isTreeNode&&!(!this.showRoot&&_55d===this.rootNode)){this.focusNode(_55d);}}},_onHomeKey:function(){var node=this._getRootOrFirstNode();if(node){this.focusNode(node);}},_onEndKey:function(_55f){var node=this.rootNode;while(node.isExpanded){var c=node.getChildren();node=c[c.length-1];}if(node&&node.isTreeNode){this.focusNode(node);}},_onLetterKeyNav:function(_562){var node=_562.node,_564=node,key=_562.key;do{node=this._getNextNode(node);if(!node){node=this._getRootOrFirstNode();}}while(node!==_564&&(node.label.charAt(0).toLowerCase()!=key));if(node&&node.isTreeNode){if(node!==_564){this.focusNode(node);}}},_onClick:function(e){var _567=e.target;var _568=dijit.getEnclosingWidget(_567);if(!_568||!_568.isTreeNode){return;}if((this.openOnClick&&_568.isExpandable)||(_567==_568.expandoNode||_567==_568.expandoNodeText)){if(_568.isExpandable){this._onExpandoClick({node:_568});}}else{this._publish("execute",{item:_568.item,node:_568});this.onClick(_568.item,_568);this.focusNode(_568);}dojo.stopEvent(e);},_onDblClick:function(e){var _56a=e.target;var _56b=dijit.getEnclosingWidget(_56a);if(!_56b||!_56b.isTreeNode){return;}if((this.openOnDblClick&&_56b.isExpandable)||(_56a==_56b.expandoNode||_56a==_56b.expandoNodeText)){if(_56b.isExpandable){this._onExpandoClick({node:_56b});}}else{this._publish("execute",{item:_56b.item,node:_56b});this.onDblClick(_56b.item,_56b);this.focusNode(_56b);}dojo.stopEvent(e);},_onExpandoClick:function(_56c){var node=_56c.node;this.focusNode(node);if(node.isExpanded){this._collapseNode(node);}else{this._expandNode(node);}},onClick:function(item,node){},onDblClick:function(item,node){},onOpen:function(item,node){},onClose:function(item,node){},_getNextNode:function(node){if(node.isExpandable&&node.isExpanded&&node.hasChildren()){return node.getChildren()[0];}else{while(node&&node.isTreeNode){var _577=node.getNextSibling();if(_577){return _577;}node=node.getParent();}return null;}},_getRootOrFirstNode:function(){return this.showRoot?this.rootNode:this.rootNode.getChildren()[0];},_collapseNode:function(node){if(node.isExpandable){if(node.state=="LOADING"){return;}node.collapse();this.onClose(node.item,node);if(node.item){this._state(node.item,false);this._saveState();}}},_expandNode:function(node){if(!node.isExpandable){return;}var _57a=this.model,item=node.item;switch(node.state){case "LOADING":return;case "UNCHECKED":node.markProcessing();var _57c=this;_57a.getChildren(item,function(_57d){node.unmarkProcessing();node.setChildItems(_57d);_57c._expandNode(node);},function(err){console.error(_57c,": error loading root children: ",err);});break;default:node.expand();this.onOpen(node.item,node);if(item){this._state(item,true);this._saveState();}}},focusNode:function(node){node.labelNode.focus();},_onNodeFocus:function(node){if(node){if(node!=this.lastFocused){this.lastFocused.setSelected(false);}node.setSelected(true);this.lastFocused=node;}},_onNodeMouseEnter:function(node){},_onNodeMouseLeave:function(node){},_onItemChange:function(item){var _584=this.model,_585=_584.getIdentity(item),node=this._itemNodeMap[_585];if(node){node.setLabelNode(this.getLabel(item));node._updateItemClasses(item);}},_onItemChildrenChange:function(_587,_588){var _589=this.model,_58a=_589.getIdentity(_587),_58b=this._itemNodeMap[_58a];if(_58b){_58b.setChildItems(_588);}},_onItemDelete:function(item){var _58d=this.model,_58e=_58d.getIdentity(item),node=this._itemNodeMap[_58e];if(node){var _590=node.getParent();if(_590){_590.removeChild(node);}node.destroyRecursive();delete this._itemNodeMap[_58e];}},_initState:function(){if(this.persist){var _591=dojo.cookie(this.cookieName);this._openedItemIds={};if(_591){dojo.forEach(_591.split(","),function(item){this._openedItemIds[item]=true;},this);}}},_state:function(item,_594){if(!this.persist){return false;}var id=this.model.getIdentity(item);if(arguments.length===1){return this._openedItemIds[id];}if(_594){this._openedItemIds[id]=true;}else{delete this._openedItemIds[id];}},_saveState:function(){if(!this.persist){return;}var ary=[];for(var id in this._openedItemIds){ary.push(id);}dojo.cookie(this.cookieName,ary.join(","),{expires:365});},destroy:function(){if(this.rootNode){this.rootNode.destroyRecursive();}if(this.dndController&&!dojo.isString(this.dndController)){this.dndController.destroy();}this.rootNode=null;this.inherited(arguments);},destroyRecursive:function(){this.destroy();},_createTreeNode:function(args){return new dijit._TreeNode(args);}});}if(!dojo._hasResource["dijit.form.TextBox"]){dojo._hasResource["dijit.form.TextBox"]=true;dojo.provide("dijit.form.TextBox");dojo.declare("dijit.form.TextBox",dijit.form._FormValueWidget,{trim:false,uppercase:false,lowercase:false,propercase:false,maxLength:"",templateString:"<input class=\"dijit dijitReset dijitLeft\" dojoAttachPoint='textbox,focusNode'\n\tdojoAttachEvent='onmouseenter:_onMouse,onmouseleave:_onMouse'\n\tautocomplete=\"off\" type=\"${type}\" ${nameAttrSetting}\n\t/>\n",baseClass:"dijitTextBox",attributeMap:dojo.delegate(dijit.form._FormValueWidget.prototype.attributeMap,{maxLength:"focusNode"}),_getValueAttr:function(){return this.parse(this.attr("displayedValue"),this.constraints);},_setValueAttr:function(_599,_59a,_59b){var _59c;if(_599!==undefined){_59c=this.filter(_599);if(_59c!==null&&((typeof _59c!="number")||!isNaN(_59c))){if(typeof _59b!="string"){_59b=this.filter(this.format(_59c,this.constraints));}}else{_59b="";}}if(_59b!=null&&_59b!=undefined&&this.textbox.value!=_59b){this.textbox.value=_59b;}dijit.form.TextBox.superclass._setValueAttr.call(this,_59c,_59a);},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(_59d){dojo.deprecated(this.declaredClass+"::setDisplayedValue() is deprecated. Use attr('displayedValue', ...) instead.","","2.0");this.attr("displayedValue",_59d);},_setDisplayedValueAttr:function(_59e){this.textbox.value=_59e;this._setValueAttr(this.attr("value"),undefined,_59e);},format:function(_59f,_5a0){return ((_59f==null||_59f==undefined)?"":(_59f.toString?_59f.toString():_59f));},parse:function(_5a1,_5a2){return _5a1;},_refreshState:function(){},_onInput:function(e){if(e&&e.type&&/key/i.test(e.type)&&e.keyCode){switch(e.keyCode){case dojo.keys.SHIFT:case dojo.keys.ALT:case dojo.keys.CTRL:case dojo.keys.TAB:return;}}if(this.intermediateChanges){var _5a4=this;setTimeout(function(){_5a4._handleOnChange(_5a4.attr("value"),false);},0);}this._refreshState();},postCreate:function(){this.textbox.setAttribute("value",this.textbox.value);this.inherited(arguments);if(dojo.isMoz||dojo.isOpera){this.connect(this.textbox,"oninput",this._onInput);}else{this.connect(this.textbox,"onkeydown",this._onInput);this.connect(this.textbox,"onkeyup",this._onInput);this.connect(this.textbox,"onpaste",this._onInput);this.connect(this.textbox,"oncut",this._onInput);}this._layoutHack();},filter:function(val){if(val===null){return "";}if(typeof val!="string"){return val;}if(this.trim){val=dojo.trim(val);}if(this.uppercase){val=val.toUpperCase();}if(this.lowercase){val=val.toLowerCase();}if(this.propercase){val=val.replace(/[^\s]+/g,function(word){return word.substring(0,1).toUpperCase()+word.substring(1);});}return val;},_setBlurValue:function(){this._setValueAttr(this.attr("value"),true);},_onBlur:function(e){if(this.disabled){return;}this._setBlurValue();this.inherited(arguments);},_onFocus:function(e){if(this.disabled){return;}this._refreshState();this.inherited(arguments);},reset:function(){this.textbox.value="";this.inherited(arguments);}});dijit.selectInputText=function(_5a9,_5aa,stop){var _5ac=dojo.global;var _5ad=dojo.doc;_5a9=dojo.byId(_5a9);if(isNaN(_5aa)){_5aa=0;}if(isNaN(stop)){stop=_5a9.value?_5a9.value.length:0;}_5a9.focus();if(_5ad["selection"]&&dojo.body()["createTextRange"]){if(_5a9.createTextRange){var _5ae=_5a9.createTextRange();with(_5ae){collapse(true);moveStart("character",_5aa);moveEnd("character",stop);select();}}}else{if(_5ac["getSelection"]){var _5af=_5ac.getSelection();if(_5a9.setSelectionRange){_5a9.setSelectionRange(_5aa,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(_5b0){},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 _5b1={ondijitclick:"_onClick",onmouseover:"_onMouseOver",onmouseout:"_onMouseOut",onfocus:"_onMouseOver",onblur:"_onMouseOut"};for(var name in _5b1){this.connect(this.displayNode,name,_5b1[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(_5b3){dojo.deprecated("dijit.InlineEditBox.setDisabled() is deprecated.  Use attr('disabled', bool) instead.","","2.0");this.attr("disabled",_5b3);},_setDisabledAttr:function(_5b4){this.disabled=_5b4;dijit.setWaiState(this.domNode,"disabled",_5b4);},_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 _5b6=(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 _5b7=dojo.create("span",null,this.domNode,"before");var ew=this.editWidget=new dijit._InlineEditor({value:dojo.trim(_5b6),autoSave:this.autoSave,buttonSave:this.buttonSave,buttonCancel:this.buttonCancel,renderAsHtml:this.renderAsHtml,editor:this.editor,editorParams:this.editorParams,sourceStyle:dojo.getComputedStyle(this.displayNode),save:dojo.hitch(this,"save"),cancel:dojo.hitch(this,"cancel"),width:this.width},_5b7);var ews=ew.domNode.style;this.displayNode.style.display="none";ews.position="static";ews.visibility="visible";this.domNode=ew.domNode;setTimeout(function(){ew.focus();ew._resetValue=ew.getValue();},100);},_showText:function(_5ba){this.displayNode.style.display="";var ew=this.editWidget;var ews=ew.domNode.style;ews.position="absolute";ews.visibility="hidden";this.domNode=this.displayNode;if(_5ba){dijit.focus(this.displayNode);}ews.display="none";setTimeout(function(){ew.destroy();delete ew;if(dojo.isIE){dijit.focus(dijit.getFocus());}},1000);},save:function(_5bd){if(this.disabled||!this.editing){return;}this.editing=false;var _5be=this.editWidget.getValue()+"";this.attr("value",this.renderAsHtml?_5be:_5be.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;").replace(/\n/g,"<br>"));this.onChange(_5be);this._showText(_5bd);},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(_5c1){this.editing=false;this.onCancel();this._showText(_5c1);}});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 _5c4=this.sourceStyle;var _5c5="line-height:"+_5c4.lineHeight+";";dojo.forEach(["Weight","Family","Size","Style"],function(prop){_5c5+="font-"+prop+":"+_5c4["font"+prop]+";";},this);dojo.forEach(["marginTop","marginBottom","marginLeft","marginRight"],function(prop){this.domNode.style[prop]=_5c4[prop];},this);if(this.width=="100%"){_5c5+="width:100%;";this.domNode.style.display="block";}else{_5c5+="width:"+(this.width+(Number(this.width)==this.width?"px":""))+";";}this.editorParams.style=_5c5;this.editorParams["displayedValue" in cls.prototype?"displayedValue":"value"]=this.value;var ew=this.editWidget=new cls(this.editorParams,this.editorPlaceholder);this.connect(ew,"onChange","_onChange");this.connect(ew,"onKeyPress","_onKeyPress");this.connect(ew,"onKeyUp","_onKeyPress");if(this.autoSave){this.buttonContainer.style.display="none";}},destroy:function(){this.editWidget.destroy();this.inherited(arguments);},getValue:function(){var ew=this.editWidget;return ew.attr("displayedValue" in ew?"displayedValue":"value");},_onKeyPress:function(e){if(this._exitInProgress){return;}if(this.autoSave){if(e.altKey||e.ctrlKey){return;}if(e.charOrCode==dojo.keys.ESCAPE){dojo.stopEvent(e);this._exitInProgress=true;this.cancel(true);}else{if(e.charOrCode==dojo.keys.ENTER&&this.editWidget.focusNode.tagName=="INPUT"){dojo.stopEvent(e);this._exitInProgress=true;this.save(true);}else{if(e.charOrCode===dojo.keys.TAB){this._exitInProgress=true;setTimeout(dojo.hitch(this,"save",false),0);}}}}else{var _5cb=this;setTimeout(function(){_5cb._onChange();},100);}},_onBlur:function(){this.inherited(arguments);if(this._exitInProgress){return;}if(this.autoSave){this._exitInProgress=true;if(this.getValue()==this._resetValue){this.cancel(false);}else{this.save(false);}}},_onChange:function(){if(this._exitInProgress){return;}if(this.autoSave){this._exitInProgress=true;this.save(true);}else{this.saveButton.attr("disabled",(this.getValue()==this._resetValue)||!this.enableSave());}},enableSave:function(){return this.editWidget.isValid?this.editWidget.isValid():true;},focus:function(){this.editWidget.focus();dijit.selectInputText(this.editWidget.focusNode);}});}if(!dojo._hasResource["dijit.form.CheckBox"]){dojo._hasResource["dijit.form.CheckBox"]=true;dojo.provide("dijit.form.CheckBox");dojo.declare("dijit.form.CheckBox",dijit.form.ToggleButton,{templateString:"<div class=\"dijitReset dijitInline\" waiRole=\"presentation\"\n\t><input\n\t \t${nameAttrSetting} type=\"${type}\" ${checkedAttrSetting}\n\t\tclass=\"dijitReset dijitCheckBoxInput\"\n\t\tdojoAttachPoint=\"focusNode\"\n\t \tdojoAttachEvent=\"onmouseover:_onMouse,onmouseout:_onMouse,onclick:_onClick\"\n/></div>\n",baseClass:"dijitCheckBox",type:"checkbox",value:"on",_setValueAttr:function(_5cc){if(typeof _5cc=="string"){this.value=_5cc;dojo.attr(this.focusNode,"value",_5cc);_5cc=true;}if(this._created){this.attr("checked",_5cc);}},_getValueAttr:function(){return (this.checked?this.value:false);},postMixInProperties:function(){if(this.value==""){this.value="on";}this.checkedAttrSetting=this.checked?"checked":"";this.inherited(arguments);},_fillContent:function(_5cd){},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(_5ce){this.inherited(arguments);if(!this._created){return;}if(_5ce){var _5cf=this;dojo.query("INPUT[type=radio]",this.focusNode.form||dojo.doc).forEach(function(_5d0){if(_5d0.name==_5cf.name&&_5d0!=_5cf.focusNode&&_5d0.form==_5cf.focusNode.form){var _5d1=dijit.getEnclosingWidget(_5d0);if(_5d1&&_5d1.checked){_5d1.attr("checked",false);}}});}},_clicked:function(e){if(!this.checked){this.attr("checked",true);}}});}if(!dojo._hasResource["dijit.form.ValidationTextBox"]){dojo._hasResource["dijit.form.ValidationTextBox"]=true;dojo.provide("dijit.form.ValidationTextBox");dojo.declare("dijit.form.ValidationTextBox",dijit.form.TextBox,{templateString:"<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\n\tid=\"widget_${id}\"\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\" waiRole=\"presentation\"\n\t><div style=\"overflow:hidden;\"\n\t\t><div class=\"dijitReset dijitValidationIcon\"><br></div\n\t\t><div class=\"dijitReset dijitValidationIconText\">&Chi;</div\n\t\t><div class=\"dijitReset dijitInputField\"\n\t\t\t><input class=\"dijitReset\" dojoAttachPoint='textbox,focusNode' autocomplete=\"off\"\n\t\t\t${nameAttrSetting} type='${type}'\n\t\t/></div\n\t></div\n></div>\n",baseClass:"dijitTextBox",required:false,promptMessage:"",invalidMessage:"$_unset_$",constraints:{},regExp:".*",regExpGen:function(_5d3){return this.regExp;},state:"",tooltipPosition:[],_setValueAttr:function(){this.inherited(arguments);this.validate(this._focused);},validator:function(_5d4,_5d5){return (new RegExp("^(?:"+this.regExpGen(_5d5)+")"+(this.required?"":"?")+"$")).test(_5d4)&&(!this.required||!this._isEmpty(_5d4))&&(this._isEmpty(_5d4)||this.parse(_5d4,_5d5)!==undefined);},_isValidSubset:function(){return this.textbox.value.search(this._partialre)==0;},isValid:function(_5d6){return this.validator(this.textbox.value,this.constraints);},_isEmpty:function(_5d7){return /^\s*$/.test(_5d7);},getErrorMessage:function(_5d8){return this.invalidMessage;},getPromptMessage:function(_5d9){return this.promptMessage;},_maskValidSubsetError:true,validate:function(_5da){var _5db="";var _5dc=this.disabled||this.isValid(_5da);if(_5dc){this._maskValidSubsetError=true;}var _5dd=!_5dc&&_5da&&this._isValidSubset();var _5de=this._isEmpty(this.textbox.value);this.state=(_5dc||(!this._hasBeenBlurred&&_5de)||_5dd)?"":"Error";if(this.state=="Error"){this._maskValidSubsetError=false;}this._setStateClass();dijit.setWaiState(this.focusNode,"invalid",_5dc?"false":"true");if(_5da){if(_5de){_5db=this.getPromptMessage(true);}if(!_5db&&(this.state=="Error"||(_5dd&&!this._maskValidSubsetError))){_5db=this.getErrorMessage(true);}}this.displayMessage(_5db);return _5dc;},_message:"",displayMessage:function(_5df){if(this._message==_5df){return;}this._message=_5df;dijit.hideTooltip(this.domNode);if(_5df){dijit.showTooltip(_5df,this.domNode,this.tooltipPosition);}},_refreshState:function(){this.validate(this._focused);this.inherited(arguments);},constructor:function(){this.constraints={};},postMixInProperties:function(){this.inherited(arguments);this.constraints.locale=this.lang;this.messages=dojo.i18n.getLocalization("dijit.form","validate",this.lang);if(this.invalidMessage=="$_unset_$"){this.invalidMessage=this.messages.invalidMessage;}var p=this.regExpGen(this.constraints);this.regExp=p;var _5e1="";if(p!=".*"){this.regExp.replace(/\\.|\[\]|\[.*?[^\\]{1}\]|\{.*?\}|\(\?[=:!]|./g,function(re){switch(re.charAt(0)){case "{":case "+":case "?":case "*":case "^":case "$":case "|":case "(":_5e1+=re;break;case ")":_5e1+="|$)";break;default:_5e1+="(?:"+re+"|$)";break;}});}try{"".search(_5e1);}catch(e){_5e1=this.regExp;console.warn("RegExp error in "+this.declaredClass+": "+this.regExp);}this._partialre="^(?:"+_5e1+")$";},_setDisabledAttr:function(_5e3){this.inherited(arguments);if(this.valueNode){this.valueNode.disabled=_5e3;}this._refreshState();},_setRequiredAttr:function(_5e4){this.required=_5e4;dijit.setWaiState(this.focusNode,"required",_5e4);this._refreshState();},postCreate:function(){if(dojo.isIE){var s=dojo.getComputedStyle(this.focusNode);if(s){var ff=s.fontFamily;if(ff){this.focusNode.style.fontFamily=ff;}}}this.inherited(arguments);},reset:function(){this._maskValidSubsetError=true;this.inherited(arguments);}});dojo.declare("dijit.form.MappedTextBox",dijit.form.ValidationTextBox,{postMixInProperties:function(){this.inherited(arguments);this.nameAttrSetting="";},serialize:function(val,_5e8){return val.toString?val.toString():"";},toString:function(){var val=this.filter(this.attr("value"));return val!=null?(typeof val=="string"?val:this.serialize(val,this.constraints)):"";},validate:function(){this.valueNode.value=this.toString();return this.inherited(arguments);},buildRendering:function(){this.inherited(arguments);this.valueNode=dojo.create("input",{style:{display:"none"},type:this.type,name:this.name},this.textbox,"after");},_setDisabledAttr:function(_5ea){this.inherited(arguments);dojo.attr(this.valueNode,"disabled",_5ea);},reset:function(){this.valueNode.value="";this.inherited(arguments);}});dojo.declare("dijit.form.RangeBoundTextBox",dijit.form.MappedTextBox,{rangeMessage:"",rangeCheck:function(_5eb,_5ec){var _5ed="min" in _5ec;var _5ee="max" in _5ec;if(_5ed||_5ee){return (!_5ed||this.compare(_5eb,_5ec.min)>=0)&&(!_5ee||this.compare(_5eb,_5ec.max)<=0);}return true;},isInRange:function(_5ef){return this.rangeCheck(this.attr("value"),this.constraints);},_isDefinitelyOutOfRange:function(){var val=this.attr("value");var _5f1=false;var _5f2=false;if("min" in this.constraints){var min=this.constraints.min;val=this.compare(val,((typeof min=="number")&&min>=0&&val!=0)?0:min);_5f1=(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);_5f2=(typeof val=="number")&&val>0;}return _5f1||_5f2;},_isValidSubset:function(){return this.inherited(arguments)&&!this._isDefinitelyOutOfRange();},isValid:function(_5f5){return this.inherited(arguments)&&((this._isEmpty(this.textbox.value)&&!this.required)||this.isInRange(_5f5));},getErrorMessage:function(_5f6){if(dijit.form.RangeBoundTextBox.superclass.isValid.call(this,false)&&!this.isInRange(_5f6)){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(_5f7,_5f8){dijit.setWaiState(this.focusNode,"valuenow",_5f7);this.inherited(arguments);}});}if(!dojo._hasResource["dojo.data.util.sorter"]){dojo._hasResource["dojo.data.util.sorter"]=true;dojo.provide("dojo.data.util.sorter");dojo.data.util.sorter.basicComparator=function(a,b){var r=-1;if(a===null){a=undefined;}if(b===null){b=undefined;}if(a==b){r=0;}else{if(a>b||a==null){r=1;}}return r;};dojo.data.util.sorter.createSortFunction=function(_5fc,_5fd){var _5fe=[];function _5ff(attr,dir){return function(_602,_603){var a=_5fd.getValue(_602,attr);var b=_5fd.getValue(_603,attr);var _606=null;if(_5fd.comparatorMap){if(typeof attr!=="string"){attr=_5fd.getIdentity(attr);}_606=_5fd.comparatorMap[attr]||dojo.data.util.sorter.basicComparator;}_606=_606||dojo.data.util.sorter.basicComparator;return dir*_606(a,b);};};var _607;for(var i=0;i<_5fc.length;i++){_607=_5fc[i];if(_607.attribute){var _609=(_607.descending)?-1:1;_5fe.push(_5ff(_607.attribute,_609));}}return function(rowA,rowB){var i=0;while(i<_5fe.length){var ret=_5fe[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(_60e){_60e=_60e||{};if(!_60e.store){_60e.store=this;}var self=this;var _610=function(_611,_612){if(_612.onError){var _613=_612.scope||dojo.global;_612.onError.call(_613,_611,_612);}};var _614=function(_615,_616){var _617=_616.abort||null;var _618=false;var _619=_616.start?_616.start:0;var _61a=(_616.count&&(_616.count!==Infinity))?(_619+_616.count):_615.length;_616.abort=function(){_618=true;if(_617){_617.call(_616);}};var _61b=_616.scope||dojo.global;if(!_616.store){_616.store=self;}if(_616.onBegin){_616.onBegin.call(_61b,_615.length,_616);}if(_616.sort){_615.sort(dojo.data.util.sorter.createSortFunction(_616.sort,self));}if(_616.onItem){for(var i=_619;(i<_615.length)&&(i<_61a);++i){var item=_615[i];if(!_618){_616.onItem.call(_61b,item,_616);}}}if(_616.onComplete&&!_618){var _61e=null;if(!_616.onItem){_61e=_615.slice(_619,_61a);}_616.onComplete.call(_61b,_61e,_616);}};this._fetchItems(_60e,_614,_610);return _60e;};}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(_61f,_620){var rxp="^";var c=null;for(var i=0;i<_61f.length;i++){c=_61f.charAt(i);switch(c){case "\\":rxp+=c;i++;rxp+=_61f.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(_620){return new RegExp(rxp,"mi");}else{return new RegExp(rxp,"m");}};}if(!dojo._hasResource["dijit.form.ComboBox"]){dojo._hasResource["dijit.form.ComboBox"]=true;dojo.provide("dijit.form.ComboBox");dojo.declare("dijit.form.ComboBoxMixin",null,{item:null,pageSize:Infinity,store:null,fetchProperties:{},query:{},autoComplete:true,highlightMatch:"first",searchDelay:100,searchAttr:"name",labelAttr:"",labelType:"text",queryExpr:"${0}*",ignoreCase:true,hasDownArrow:true,templateString:"<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\n\tid=\"widget_${id}\"\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\" dojoAttachPoint=\"comboNode\" waiRole=\"combobox\" tabIndex=\"-1\"\n\t><div style=\"overflow:hidden;\"\n\t\t><div class='dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton'\n\t\t\tdojoAttachPoint=\"downArrowNode\" waiRole=\"presentation\"\n\t\t\tdojoAttachEvent=\"onmousedown:_onArrowMouseDown,onmouseup:_onMouse,onmouseenter:_onMouse,onmouseleave:_onMouse\"\n\t\t\t><div class=\"dijitArrowButtonInner\">&thinsp;</div\n\t\t\t><div class=\"dijitArrowButtonChar\">&#9660;</div\n\t\t></div\n\t\t><div class=\"dijitReset dijitValidationIcon\"><br></div\n\t\t><div class=\"dijitReset dijitValidationIconText\">&Chi;</div\n\t\t><div class=\"dijitReset dijitInputField\"\n\t\t\t><input ${nameAttrSetting} type=\"text\" autocomplete=\"off\" class='dijitReset'\n\t\t\tdojoAttachEvent=\"onkeypress:_onKeyPress,compositionend\"\n\t\t\tdojoAttachPoint=\"textbox,focusNode\" waiRole=\"textbox\" waiState=\"haspopup-true,autocomplete-list\"\n\t\t/></div\n\t></div\n></div>\n",baseClass:"dijitComboBox",_getCaretPos:function(_624){var pos=0;if(typeof (_624.selectionStart)=="number"){pos=_624.selectionStart;}else{if(dojo.isIE){var tr=dojo.doc.selection.createRange().duplicate();var ntr=_624.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(_628,_629){_629=parseInt(_629);dijit.selectInputText(_628,_629,_629);},_setDisabledAttr:function(_62a){this.inherited(arguments);dijit.setWaiState(this.comboNode,"disabled",_62a);},_onKeyPress:function(evt){var key=evt.charOrCode;if(evt.altKey||(evt.ctrlKey&&(key!="x"&&key!="v"))||evt.key==dojo.keys.SHIFT){return;}var _62d=false;var pw=this._popupWidget;var dk=dojo.keys;var _630=null;if(this._isShowingNow){pw.handleKey(key);_630=pw.getHighlightedOption();}switch(key){case dk.PAGE_DOWN:case dk.DOWN_ARROW:if(!this._isShowingNow||this._prev_key_esc){this._arrowPressed();_62d=true;}else{if(_630){this._announceOption(_630);}}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(_630);}dojo.stopEvent(evt);this._prev_key_backspace=false;this._prev_key_esc=false;break;case dk.ENTER:if(_630){if(_630==pw.nextButton){this._nextSearch(1);dojo.stopEvent(evt);break;}else{if(_630==pw.previousButton){this._nextSearch(-1);dojo.stopEvent(evt);break;}}}else{this._setDisplayedValueAttr(this.attr("displayedValue"),true);}evt.preventDefault();case dk.TAB:var _631=this.attr("displayedValue");if(pw&&(_631==pw._messages["previousMessage"]||_631==pw._messages["nextMessage"])){break;}if(this._isShowingNow){this._prev_key_backspace=false;this._prev_key_esc=false;if(_630){pw.attr("value",{target:_630});}this._lastQuery=null;this._hideResultList();}break;case " ":this._prev_key_backspace=false;this._prev_key_esc=false;if(_630){dojo.stopEvent(evt);this._selectOption();this._hideResultList();}else{_62d=true;}break;case dk.ESCAPE:this._prev_key_backspace=false;this._prev_key_esc=true;if(this._isShowingNow){dojo.stopEvent(evt);this._hideResultList();}break;case dk.DELETE:case dk.BACKSPACE:this._prev_key_esc=false;this._prev_key_backspace=true;_62d=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;_62d=typeof key=="string";}if(this.searchTimer){clearTimeout(this.searchTimer);}if(_62d){setTimeout(dojo.hitch(this,"_startSearchFromInput"),1);}},_autoCompleteText:function(text){var fn=this.focusNode;dijit.selectInputText(fn,fn.value.length);var _634=this.ignoreCase?"toLowerCase":"substr";if(text[_634](0).indexOf(this.focusNode.value[_634](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(_636,_637){if(this.disabled||this.readOnly||(_637.query[this.searchAttr]!=this._lastQuery)){return;}this._popupWidget.clearResultList();if(!_636.length){this._hideResultList();return;}this.item=null;var _638=new String(this.store.getValue(_636[0],this.searchAttr));if(_638&&this.autoComplete&&!this._prev_key_backspace&&(_637.query[this.searchAttr]!="*")){this.item=_636[0];this._autoCompleteText(_638);}_637._maxOptions=this._maxOptions;this._popupWidget.createOptions(_636,_637,dojo.hitch(this,"_getMenuLabelFromItem"));this._showResultList();if(_637.direction){if(1==_637.direction){this._popupWidget.highlightFirstOption();}else{if(-1==_637.direction){this._popupWidget.highlightLastOption();}}this._announceOption(this._popupWidget.getHighlightedOption());}},_showResultList:function(){this._hideResultList();var _639=this._popupWidget.getItems(),_63a=Math.min(_639.length,this.maxListLength);this._arrowPressed();this.displayMessage("");dojo.style(this._popupWidget.domNode,{width:"",height:""});var best=this.open();var _63c=dojo.marginBox(this._popupWidget.domNode);this._popupWidget.domNode.style.overflow=((best.h==_63c.h)&&(best.w==_63c.w))?"hidden":"auto";var _63d=best.w;if(best.h<this._popupWidget.domNode.scrollHeight){_63d+=16;}dojo.marginBox(this._popupWidget.domNode,{h:best.h,w:Math.max(_63d,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 _63e=this.attr("displayedValue");var pw=this._popupWidget;if(pw&&(_63e==pw._messages["previousMessage"]||_63e==pw._messages["nextMessage"])){this._setValueAttr(this._lastValueReported,true);}else{this.attr("displayedValue",_63e);}},_onBlur:function(){this._hideResultList();this._arrowIdle();this.inherited(arguments);},_announceOption:function(node){if(node==null){return;}var _641;if(node==this._popupWidget.nextButton||node==this._popupWidget.previousButton){_641=node.innerHTML;}else{_641=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(_641);},_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 _648=this.id+"_popup";this._popupWidget=new dijit.form._ComboBoxMenu({onChange:dojo.hitch(this,this._selectOption),id:_648});dijit.removeWaiState(this.focusNode,"activedescendant");dijit.setWaiState(this.textbox,"owns",_648);}this.item=null;var _649=dojo.clone(this.query);this._lastInput=key;this._lastQuery=_649[this.searchAttr]=this._getQueryString(key);this.searchTimer=setTimeout(dojo.hitch(this,function(_64a,_64b){var _64c={queryOptions:{ignoreCase:this.ignoreCase,deep:true},query:_64a,onBegin:dojo.hitch(this,"_setMaxOptions"),onComplete:dojo.hitch(this,"_openResultList"),onError:function(_64d){console.error("dijit.form.ComboBox: "+_64d);dojo.hitch(_64b,"_hideResultList")();},start:0,count:this.pageSize};dojo.mixin(_64c,_64b.fetchProperties);var _64e=_64b.store.fetch(_64c);var _64f=function(_650,_651){_650.start+=_650.count*_651;_650.direction=_651;this.store.fetch(_650);};this._nextSearch=this._popupWidget.onPage=dojo.hitch(this,_64f,_64e);},_649,this),this.searchDelay);},_setMaxOptions:function(size,_653){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 _655=this.srcNodeRef;this.store=new dijit.form._ComboBoxDataStore(_655);if(!this.value||((typeof _655.selectedIndex=="number")&&_655.selectedIndex.toString()===this.value)){var item=this.store.fetchSelectedItem();if(item){this.value=this.store.getValue(item,this._getValueField());}}}this.inherited(arguments);},postCreate:function(){var _657=dojo.query("label[for=\""+this.id+"\"]");if(_657.length){_657[0].id=(this.id+"_label");var cn=this.comboNode;dijit.setWaiState(cn,"labelledby",_657[0].id);}this.inherited(arguments);},uninitialize:function(){if(this._popupWidget){this._hideResultList();this._popupWidget.destroy();}},_getMenuLabelFromItem:function(item){var _65a=this.store.getValue(item,this.labelAttr||this.searchAttr);var _65b=this.labelType;if(this.highlightMatch!="none"&&this.labelType=="text"&&this._lastInput){_65a=this.doHighlight(_65a,this._escapeHtml(this._lastInput));_65b="html";}return {html:_65b=="html",label:_65a};},doHighlight:function(_65c,find){var _65e="i"+(this.highlightMatch=="all"?"g":"");var _65f=this._escapeHtml(_65c);find=dojo.regexp.escapeString(find);var ret=_65f.replace(new RegExp("(^|\\s)("+find+")",_65e),"$1<span class=\"dijitComboBoxHighlightMatch\">$2</span>");return ret;},_escapeHtml:function(str){str=String(str).replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");return str;},open:function(){this._isShowingNow=true;return dijit.popup.open({popup:this._popupWidget,around:this.domNode,parent:this});},reset:function(){this.item=null;this.inherited(arguments);}});dojo.declare("dijit.form._ComboBoxMenu",[dijit._Widget,dijit._Templated],{templateString:"<ul class='dijitReset dijitMenu' dojoAttachEvent='onmousedown:_onMouseDown,onmouseup:_onMouseUp,onmouseover:_onMouseOver,onmouseout:_onMouseOut' tabIndex='-1' style='overflow: \"auto\"; overflow-x: \"hidden\";'>"+"<li class='dijitMenuItem dijitMenuPreviousButton' dojoAttachPoint='previousButton' waiRole='option'></li>"+"<li class='dijitMenuItem dijitMenuNextButton' dojoAttachPoint='nextButton' waiRole='option'></li>"+"</ul>",_messages:null,postMixInProperties:function(){this._messages=dojo.i18n.getLocalization("dijit.form","ComboBox",this.lang);this.inherited(arguments);},_setValueAttr:function(_662){this.value=_662;this.onChange(_662);},onChange:function(_663){},onPage:function(_664){},postCreate:function(){this.previousButton.innerHTML=this._messages["previousMessage"];this.nextButton.innerHTML=this._messages["nextMessage"];this.inherited(arguments);},onClose:function(){this._blurOptionNode();},_createOption:function(item,_666){var _667=_666(item);var _668=dojo.doc.createElement("li");dijit.setWaiRole(_668,"option");if(_667.html){_668.innerHTML=_667.label;}else{_668.appendChild(dojo.doc.createTextNode(_667.label));}if(_668.innerHTML==""){_668.innerHTML="&nbsp;";}_668.item=item;return _668;},createOptions:function(_669,_66a,_66b){this.previousButton.style.display=(_66a.start==0)?"none":"";dojo.attr(this.previousButton,"id",this.id+"_prev");dojo.forEach(_669,function(item,i){var _66e=this._createOption(item,_66b);_66e.className="dijitReset dijitMenuItem";dojo.attr(_66e,"id",this.id+i);this.domNode.insertBefore(_66e,this.nextButton);},this);var _66f=false;if(_66a._maxOptions&&_66a._maxOptions!=-1){if((_66a.start+_66a.count)<_66a._maxOptions){_66f=true;}else{if((_66a.start+_66a.count)>(_66a._maxOptions-1)){if(_66a.count==_669.length){_66f=true;}}}}else{if(_66a.count==_669.length){_66f=true;}}this.nextButton.style.display=_66f?"":"none";dojo.attr(this.nextButton,"id",this.id+"_next");},clearResultList:function(){while(this.domNode.childNodes.length>2){this.domNode.removeChild(this.domNode.childNodes[this.domNode.childNodes.length-2]);}},getItems:function(){return this.domNode.childNodes;},getListLength:function(){return this.domNode.childNodes.length-2;},_onMouseDown:function(evt){dojo.stopEvent(evt);},_onMouseUp:function(evt){if(evt.target===this.domNode){return;}else{if(evt.target==this.previousButton){this.onPage(-1);}else{if(evt.target==this.nextButton){this.onPage(1);}else{var tgt=evt.target;while(!tgt.item){tgt=tgt.parentNode;}this._setValueAttr({target:tgt},true);}}}},_onMouseOver:function(evt){if(evt.target===this.domNode){return;}var tgt=evt.target;if(!(tgt==this.previousButton||tgt==this.nextButton)){while(!tgt.item){tgt=tgt.parentNode;}}this._focusOptionNode(tgt);},_onMouseOut:function(evt){if(evt.target===this.domNode){return;}this._blurOptionNode();},_focusOptionNode:function(node){if(this._highlighted_option!=node){this._blurOptionNode();this._highlighted_option=node;dojo.addClass(this._highlighted_option,"dijitMenuItemSelected");}},_blurOptionNode:function(){if(this._highlighted_option){dojo.removeClass(this._highlighted_option,"dijitMenuItemSelected");this._highlighted_option=null;}},_highlightNextOption:function(){var fc=this.domNode.firstChild;if(!this.getHighlightedOption()){this._focusOptionNode(fc.style.display=="none"?fc.nextSibling:fc);}else{var ns=this._highlighted_option.nextSibling;if(ns&&ns.style.display!="none"){this._focusOptionNode(ns);}}dijit.scrollIntoView(this._highlighted_option);},highlightFirstOption:function(){this._focusOptionNode(this.domNode.firstChild.nextSibling);dijit.scrollIntoView(this._highlighted_option);},highlightLastOption:function(){this._focusOptionNode(this.domNode.lastChild.previousSibling);dijit.scrollIntoView(this._highlighted_option);},_highlightPrevOption:function(){var lc=this.domNode.lastChild;if(!this.getHighlightedOption()){this._focusOptionNode(lc.style.display=="none"?lc.previousSibling:lc);}else{var ps=this._highlighted_option.previousSibling;if(ps&&ps.style.display!="none"){this._focusOptionNode(ps);}}dijit.scrollIntoView(this._highlighted_option);},_page:function(up){var _67c=0;var _67d=this.domNode.scrollTop;var _67e=dojo.style(this.domNode,"height");if(!this.getHighlightedOption()){this._highlightNextOption();}while(_67c<_67e){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 _67f=this.domNode.scrollTop;_67c+=(_67f-_67d)*(up?-1:1);_67d=_67f;}},pageUp:function(){this._page(true);},pageDown:function(){this._page(false);},getHighlightedOption:function(){var ho=this._highlighted_option;return (ho&&ho.parentNode)?ho:null;},handleKey:function(key){switch(key){case dojo.keys.DOWN_ARROW:this._highlightNextOption();break;case dojo.keys.PAGE_DOWN:this.pageDown();break;case dojo.keys.UP_ARROW:this._highlightPrevOption();break;case dojo.keys.PAGE_UP:this.pageUp();break;}}});dojo.declare("dijit.form.ComboBox",[dijit.form.ValidationTextBox,dijit.form.ComboBoxMixin],{_setValueAttr:function(_682,_683){if(!_682){_682="";}dijit.form.ValidationTextBox.prototype._setValueAttr.call(this,_682,_683);}});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,_687,_688){return (_687=="value")?item.value:(item.innerText||item.textContent||"");},isItemLoaded:function(_689){return true;},getFeatures:function(){return {"dojo.data.api.Read":true,"dojo.data.api.Identity":true};},_fetchItems:function(args,_68b,_68c){if(!args.query){args.query={};}if(!args.query.name){args.query.name="";}if(!args.queryOptions){args.queryOptions={};}var _68d=dojo.data.util.filter.patternToRegExp(args.query.name,args.queryOptions.ignoreCase),_68e=dojo.query("> option",this.root).filter(function(_68f){return (_68f.innerText||_68f.textContent||"").match(_68d);});if(args.sort){_68e.sort(dojo.data.util.sorter.createSortFunction(args.sort,this));}_68b(_68e,args);},close:function(_690){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 _698={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 _699={CHF:5};var _69a=_698[code],_69b=_699[code];if(typeof _69a=="undefined"){_69a=2;}if(typeof _69b=="undefined"){_69b=0;}return {places:_69a,round:_69b};};}if(!dojo._hasResource["dojo.currency"]){dojo._hasResource["dojo.currency"]=true;dojo.provide("dojo.currency");dojo.currency._mixInDefaults=function(_69c){_69c=_69c||{};_69c.type="currency";var _69d=dojo.i18n.getLocalization("dojo.cldr","currency",_69c.locale)||{};var iso=_69c.currency;var data=dojo.cldr.monetary.getData(iso);dojo.forEach(["displayName","symbol","group","decimal"],function(prop){data[prop]=_69d[iso+"_"+prop];});data.fractional=[true,false];return dojo.mixin(data,_69c);};dojo.currency.format=function(_6a1,_6a2){return dojo.number.format(_6a1,dojo.currency._mixInDefaults(_6a2));};dojo.currency.regexp=function(_6a3){return dojo.number.regexp(dojo.currency._mixInDefaults(_6a3));};dojo.currency.parse=function(_6a4,_6a5){return dojo.number.parse(_6a4,dojo.currency._mixInDefaults(_6a5));};}if(!dojo._hasResource["dijit.form.NumberTextBox"]){dojo._hasResource["dijit.form.NumberTextBox"]=true;dojo.provide("dijit.form.NumberTextBox");dojo.declare("dijit.form.NumberTextBoxMixin",null,{regExpGen:dojo.number.regexp,editOptions:{pattern:"#.######"},_formatter:dojo.number.format,_onFocus:function(){if(this.disabled){return;}var val=this.attr("value");if(typeof val=="number"&&!isNaN(val)){this.textbox.value=this.format(val,this.constraints);}this.inherited(arguments);},format:function(_6a7,_6a8){if(typeof _6a7=="string"){return _6a7;}if(isNaN(_6a7)){return "";}if(this.editOptions&&this._focused){_6a8=dojo.mixin(dojo.mixin({},this.editOptions),this.constraints);}return this._formatter(_6a7,_6a8);},parse:dojo.number.parse,_getDisplayedValueAttr:function(){var v=this.inherited(arguments);return isNaN(v)?this.textbox.value:v;},filter:function(_6aa){return (_6aa===null||_6aa===""||_6aa===undefined)?NaN:this.inherited(arguments);},serialize:function(_6ab,_6ac){return (typeof _6ab!="number"||isNaN(_6ab))?"":this.inherited(arguments);},_getValueAttr:function(){var v=this.inherited(arguments);return (isNaN(v)&&this.textbox.value!=="")?undefined: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(_6ae){var _6af={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 _6b0=dojo.cldr.supplemental._region(_6ae);var dow=_6af[_6b0];return (dow===undefined)?1:dow;};dojo.cldr.supplemental._region=function(_6b2){_6b2=dojo.i18n.normalizeLocale(_6b2);var tags=_6b2.split("-");var _6b4=tags[1];if(!_6b4){_6b4={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(_6b4.length==4){_6b4=tags[2];}}return _6b4;};dojo.cldr.supplemental.getWeekend=function(_6b5){var _6b6={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 _6b7={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 _6b8=dojo.cldr.supplemental._region(_6b5);var _6b9=_6b6[_6b8];var end=_6b7[_6b8];if(_6b9===undefined){_6b9=6;}if(end===undefined){end=0;}return {start:_6b9,end:end};};}if(!dojo._hasResource["dojo.date"]){dojo._hasResource["dojo.date"]=true;dojo.provide("dojo.date");dojo.date.getDaysInMonth=function(_6bb){var _6bc=_6bb.getMonth();var days=[31,28,31,30,31,30,31,31,30,31,30,31];if(_6bc==1&&dojo.date.isLeapYear(_6bb)){return 29;}return days[_6bc];};dojo.date.isLeapYear=function(_6be){var year=_6be.getFullYear();return !(year%400)||(!(year%4)&&!!(year%100));};dojo.date.getTimezoneName=function(_6c0){var str=_6c0.toString();var tz="";var _6c3;var pos=str.indexOf("(");if(pos>-1){tz=str.substring(++pos,str.indexOf(")"));}else{var pat=/([A-Z\/]+) \d{4}$/;if((_6c3=str.match(pat))){tz=_6c3[1];}else{str=_6c0.toLocaleString();pat=/ ([A-Z\/]+)$/;if((_6c3=str.match(pat))){tz=_6c3[1];}}}return (tz=="AM"||tz=="PM")?"":tz;};dojo.date.compare=function(_6c6,_6c7,_6c8){_6c6=new Date(Number(_6c6));_6c7=new Date(Number(_6c7||new Date()));if(_6c8!=="undefined"){if(_6c8=="date"){_6c6.setHours(0,0,0,0);_6c7.setHours(0,0,0,0);}else{if(_6c8=="time"){_6c6.setFullYear(0,0,0);_6c7.setFullYear(0,0,0);}}}if(_6c6>_6c7){return 1;}if(_6c6<_6c7){return -1;}return 0;};dojo.date.add=function(date,_6ca,_6cb){var sum=new Date(Number(date));var _6cd=false;var _6ce="Date";switch(_6ca){case "day":break;case "weekday":var days,_6d0;var mod=_6cb%5;if(!mod){days=(_6cb>0)?5:-5;_6d0=(_6cb>0)?((_6cb-5)/5):((_6cb+5)/5);}else{days=mod;_6d0=parseInt(_6cb/5);}var strt=date.getDay();var adj=0;if(strt==6&&_6cb>0){adj=1;}else{if(strt==0&&_6cb<0){adj=-1;}}var trgt=strt+days;if(trgt==0||trgt==6){adj=(_6cb>0)?2:-2;}_6cb=(7*_6d0)+days+adj;break;case "year":_6ce="FullYear";_6cd=true;break;case "week":_6cb*=7;break;case "quarter":_6cb*=3;case "month":_6cd=true;_6ce="Month";break;case "hour":case "minute":case "second":case "millisecond":_6ce="UTC"+_6ca.charAt(0).toUpperCase()+_6ca.substring(1)+"s";}if(_6ce){sum["set"+_6ce](sum["get"+_6ce]()+_6cb);}if(_6cd&&(sum.getDate()<date.getDate())){sum.setDate(0);}return sum;};dojo.date.difference=function(_6d5,_6d6,_6d7){_6d6=_6d6||new Date();_6d7=_6d7||"day";var _6d8=_6d6.getFullYear()-_6d5.getFullYear();var _6d9=1;switch(_6d7){case "quarter":var m1=_6d5.getMonth();var m2=_6d6.getMonth();var q1=Math.floor(m1/3)+1;var q2=Math.floor(m2/3)+1;q2+=(_6d8*4);_6d9=q2-q1;break;case "weekday":var days=Math.round(dojo.date.difference(_6d5,_6d6,"day"));var _6df=parseInt(dojo.date.difference(_6d5,_6d6,"week"));var mod=days%7;if(mod==0){days=_6df*5;}else{var adj=0;var aDay=_6d5.getDay();var bDay=_6d6.getDay();_6df=parseInt(days/7);mod=days%7;var _6e4=new Date(_6d5);_6e4.setDate(_6e4.getDate()+(_6df*7));var _6e5=_6e4.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 (_6e5+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 (_6e5+mod)<0:adj=2;}}}days+=adj;days-=(_6df*2);}_6d9=days;break;case "year":_6d9=_6d8;break;case "month":_6d9=(_6d6.getMonth()-_6d5.getMonth())+(_6d8*12);break;case "week":_6d9=parseInt(dojo.date.difference(_6d5,_6d6,"day")/7);break;case "day":_6d9/=24;case "hour":_6d9/=60;case "minute":_6d9/=60;case "second":_6d9/=1000;case "millisecond":_6d9*=_6d6.getTime()-_6d5.getTime();}return Math.round(_6d9);};}if(!dojo._hasResource["dojo.date.locale"]){dojo._hasResource["dojo.date.locale"]=true;dojo.provide("dojo.date.locale");(function(){function _6e6(_6e7,_6e8,_6e9,_6ea){return _6ea.replace(/([a-z])\1*/ig,function(_6eb){var s,pad;var c=_6eb.charAt(0);var l=_6eb.length;var _6f0=["abbr","wide","narrow"];switch(c){case "G":s=_6e8[(l<4)?"eraAbbr":"eraNames"][_6e7.getFullYear()<0?0:1];break;case "y":s=_6e7.getFullYear();switch(l){case 1:break;case 2:if(!_6e9){s=String(s);s=s.substr(s.length-2);break;}default:pad=true;}break;case "Q":case "q":s=Math.ceil((_6e7.getMonth()+1)/3);pad=true;break;case "M":var m=_6e7.getMonth();if(l<3){s=m+1;pad=true;}else{var _6f2=["months","format",_6f0[l-3]].join("-");s=_6e8[_6f2][m];}break;case "w":var _6f3=0;s=dojo.date.locale._getWeekOfYear(_6e7,_6f3);pad=true;break;case "d":s=_6e7.getDate();pad=true;break;case "D":s=dojo.date.locale._getDayOfYear(_6e7);pad=true;break;case "E":var d=_6e7.getDay();if(l<3){s=d+1;pad=true;}else{var _6f5=["days","format",_6f0[l-3]].join("-");s=_6e8[_6f5][d];}break;case "a":var _6f6=(_6e7.getHours()<12)?"am":"pm";s=_6e8[_6f6];break;case "h":case "H":case "K":case "k":var h=_6e7.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=_6e7.getMinutes();pad=true;break;case "s":s=_6e7.getSeconds();pad=true;break;case "S":s=Math.round(_6e7.getMilliseconds()*Math.pow(10,l-3));pad=true;break;case "v":case "z":s=dojo.date.getTimezoneName(_6e7);if(s){break;}l=4;case "Z":var _6f8=_6e7.getTimezoneOffset();var tz=[(_6f8<=0?"+":"-"),dojo.string.pad(Math.floor(Math.abs(_6f8)/60),2),dojo.string.pad(Math.abs(_6f8)%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: "+_6ea);}if(pad){s=dojo.string.pad(s,l);}return s;});};dojo.date.locale.format=function(_6fa,_6fb){_6fb=_6fb||{};var _6fc=dojo.i18n.normalizeLocale(_6fb.locale);var _6fd=_6fb.formatLength||"short";var _6fe=dojo.date.locale._getGregorianBundle(_6fc);var str=[];var _700=dojo.hitch(this,_6e6,_6fa,_6fe,_6fb.fullYear);if(_6fb.selector=="year"){var year=_6fa.getFullYear();if(_6fc.match(/^zh|^ja/)){year+="年";}return year;}if(_6fb.selector!="time"){var _702=_6fb.datePattern||_6fe["dateFormat-"+_6fd];if(_702){str.push(_703(_702,_700));}}if(_6fb.selector!="date"){var _704=_6fb.timePattern||_6fe["timeFormat-"+_6fd];if(_704){str.push(_703(_704,_700));}}var _705=str.join(" ");return _705;};dojo.date.locale.regexp=function(_706){return dojo.date.locale._parseInfo(_706).regexp;};dojo.date.locale._parseInfo=function(_707){_707=_707||{};var _708=dojo.i18n.normalizeLocale(_707.locale);var _709=dojo.date.locale._getGregorianBundle(_708);var _70a=_707.formatLength||"short";var _70b=_707.datePattern||_709["dateFormat-"+_70a];var _70c=_707.timePattern||_709["timeFormat-"+_70a];var _70d;if(_707.selector=="date"){_70d=_70b;}else{if(_707.selector=="time"){_70d=_70c;}else{_70d=_70b+" "+_70c;}}var _70e=[];var re=_703(_70d,dojo.hitch(this,_710,_70e,_709,_707));return {regexp:re,tokens:_70e,bundle:_709};};dojo.date.locale.parse=function(_711,_712){var info=dojo.date.locale._parseInfo(_712);var _714=info.tokens,_715=info.bundle;var re=new RegExp("^"+info.regexp+"$",info.strict?"":"i");var _717=re.exec(_711);if(!_717){return null;}var _718=["abbr","wide","narrow"];var _719=[1970,0,1,0,0,0,0];var amPm="";var _71b=dojo.every(_717,function(v,i){if(!i){return true;}var _71e=_714[i-1];var l=_71e.length;switch(_71e.charAt(0)){case "y":if(l!=2&&_712.strict){_719[0]=v;}else{if(v<100){v=Number(v);var year=""+new Date().getFullYear();var _721=year.substring(0,2)*100;var _722=Math.min(Number(year.substring(2,4))+20,99);var num=(v<_722)?_721+v:_721-100+v;_719[0]=num;}else{if(_712.strict){return false;}_719[0]=v;}}break;case "M":if(l>2){var _724=_715["months-format-"+_718[l-3]].concat();if(!_712.strict){v=v.replace(".","").toLowerCase();_724=dojo.map(_724,function(s){return s.replace(".","").toLowerCase();});}v=dojo.indexOf(_724,v);if(v==-1){return false;}}else{v--;}_719[1]=v;break;case "E":case "e":var days=_715["days-format-"+_718[l-3]].concat();if(!_712.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":_719[1]=0;case "d":_719[2]=v;break;case "a":var am=_712.am||_715.am;var pm=_712.pm||_715.pm;if(!_712.strict){var _72a=/\./g;v=v.replace(_72a,"").toLowerCase();am=am.replace(_72a,"").toLowerCase();pm=pm.replace(_72a,"").toLowerCase();}if(_712.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;}_719[3]=v;break;case "m":_719[4]=v;break;case "s":_719[5]=v;break;case "S":_719[6]=v;}return true;});var _72b=+_719[3];if(amPm==="p"&&_72b<12){_719[3]=_72b+12;}else{if(amPm==="a"&&_72b==12){_719[3]=0;}}var _72c=new Date(_719[0],_719[1],_719[2],_719[3],_719[4],_719[5],_719[6]);if(_712.strict){_72c.setFullYear(_719[0]);}var _72d=_714.join("");if(!_71b||(_72d.indexOf("M")!=-1&&_72c.getMonth()!=_719[1])||(_72d.indexOf("d")!=-1&&_72c.getDate()!=_719[2])){return null;}return _72c;};function _703(_72e,_72f,_730,_731){var _732=function(x){return x;};_72f=_72f||_732;_730=_730||_732;_731=_731||_732;var _734=_72e.match(/(''|[^'])+/g);var _735=_72e.charAt(0)=="'";dojo.forEach(_734,function(_736,i){if(!_736){_734[i]="";}else{_734[i]=(_735?_730:_72f)(_736);_735=!_735;}});return _731(_734.join(""));};function _710(_738,_739,_73a,_73b){_73b=dojo.regexp.escapeString(_73b);if(!_73a.strict){_73b=_73b.replace(" a"," ?a");}return _73b.replace(/([a-z])\1*/ig,function(_73c){var s;var c=_73c.charAt(0);var l=_73c.length;var p2="",p3="";if(_73a.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=_73a.am||_739.am||"AM";var pm=_73a.pm||_739.pm||"PM";if(_73a.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(_738){_738.push(_73c);}return "("+s+")";}).replace(/[\xa0 ]/g,"[\\s\\xa0]");};})();(function(){var _744=[];dojo.date.locale.addCustomFormats=function(_745,_746){_744.push({pkg:_745,name:_746});};dojo.date.locale._getGregorianBundle=function(_747){var _748={};dojo.forEach(_744,function(desc){var _74a=dojo.i18n.getLocalization(desc.pkg,desc.name,_747);_748=dojo.mixin(_748,_74a);},this);return _748;};})();dojo.date.locale.addCustomFormats("dojo.cldr","gregorian");dojo.date.locale.getNames=function(item,type,_74d,_74e){var _74f;var _750=dojo.date.locale._getGregorianBundle(_74e);var _751=[item,_74d,type];if(_74d=="standAlone"){var key=_751.join("-");_74f=_750[key];if(_74f[0]==1){_74f=undefined;}}_751[1]="format";return (_74f||_750[_751.join("-")]).concat();};dojo.date.locale.displayPattern=function(_753,_754){var _755="GyMdkHmsSEDFwWahKzYeugAZvcL",_756=dojo.date.locale._getGregorianBundle(_754).patternChars;return dojo.map(_753,function(c){var i=_755.indexOf(c);return i<0?c:_756.charAt(i);}).join("");};dojo.date.locale.isWeekend=function(_759,_75a){var _75b=dojo.cldr.supplemental.getWeekend(_75a);var day=(_759||new Date()).getDay();if(_75b.end<_75b.start){_75b.end+=7;if(day<_75b.start){day+=7;}}return day>=_75b.start&&day<=_75b.end;};dojo.date.locale._getDayOfYear=function(_75d){return dojo.date.difference(new Date(_75d.getFullYear(),0,1,_75d.getHours()),_75d)+1;};dojo.date.locale._getWeekOfYear=function(_75e,_75f){if(arguments.length==1){_75f=0;}var _760=new Date(_75e.getFullYear(),0,1).getDay();var adj=(_760-_75f+7)%7;var week=Math.floor((dojo.date.locale._getDayOfYear(_75e)+adj-1)/7);if(_760==_75f){week++;}return week;};}if(!dojo._hasResource["dijit._Calendar"]){dojo._hasResource["dijit._Calendar"]=true;dojo.provide("dijit._Calendar");dojo.declare("dijit._Calendar",[dijit._Widget,dijit._Templated],{templateString:"<table cellspacing=\"0\" cellpadding=\"0\" class=\"dijitCalendarContainer\">\n\t<thead>\n\t\t<tr class=\"dijitReset dijitCalendarMonthContainer\" valign=\"top\">\n\t\t\t<th class='dijitReset' dojoAttachPoint=\"decrementMonth\">\n\t\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitCalendarIncrementControl dijitCalendarDecrease\" waiRole=\"presentation\">\n\t\t\t\t<span dojoAttachPoint=\"decreaseArrowNode\" class=\"dijitA11ySideArrow\">-</span>\n\t\t\t</th>\n\t\t\t<th class='dijitReset' colspan=\"5\">\n\t\t\t\t<div dojoAttachPoint=\"monthLabelSpacer\" class=\"dijitCalendarMonthLabelSpacer\"></div>\n\t\t\t\t<div dojoAttachPoint=\"monthLabelNode\" class=\"dijitCalendarMonthLabel\"></div>\n\t\t\t</th>\n\t\t\t<th class='dijitReset' dojoAttachPoint=\"incrementMonth\">\n\t\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitCalendarIncrementControl dijitCalendarIncrease\" waiRole=\"presentation\">\n\t\t\t\t<span dojoAttachPoint=\"increaseArrowNode\" class=\"dijitA11ySideArrow\">+</span>\n\t\t\t</th>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<th class=\"dijitReset dijitCalendarDayLabelTemplate\"><span class=\"dijitCalendarDayLabel\"></span></th>\n\t\t</tr>\n\t</thead>\n\t<tbody dojoAttachEvent=\"onclick: _onDayClick, onmouseover: _onDayMouseOver, onmouseout: _onDayMouseOut\" class=\"dijitReset dijitCalendarBodyContainer\">\n\t\t<tr class=\"dijitReset dijitCalendarWeekTemplate\">\n\t\t\t<td class=\"dijitReset dijitCalendarDateTemplate\"><span class=\"dijitCalendarDateLabel\"></span></td>\n\t\t</tr>\n\t</tbody>\n\t<tfoot class=\"dijitReset dijitCalendarYearContainer\">\n\t\t<tr>\n\t\t\t<td class='dijitReset' valign=\"top\" colspan=\"7\">\n\t\t\t\t<h3 class=\"dijitCalendarYearLabel\">\n\t\t\t\t\t<span dojoAttachPoint=\"previousYearLabelNode\" class=\"dijitInline dijitCalendarPreviousYear\"></span>\n\t\t\t\t\t<span dojoAttachPoint=\"currentYearLabelNode\" class=\"dijitInline dijitCalendarSelectedYear\"></span>\n\t\t\t\t\t<span dojoAttachPoint=\"nextYearLabelNode\" class=\"dijitInline dijitCalendarNextYear\"></span>\n\t\t\t\t</h3>\n\t\t\t</td>\n\t\t</tr>\n\t</tfoot>\n</table>\t\n",value:new Date(),dayWidth:"narrow",setValue:function(_763){dojo.deprecated("dijit.Calendar:setValue() is deprecated.  Use attr('value', ...) instead.","","2.0");this.attr("value",_763);},_setValueAttr:function(_764){if(!this.value||dojo.date.compare(_764,this.value)){_764=new Date(_764);_764.setHours(1);this.displayMonth=new Date(_764);if(!this.isDisabledDate(_764,this.lang)){this.onChange(this.value=_764);}this._populateGrid();}},_setText:function(node,text){while(node.firstChild){node.removeChild(node.firstChild);}node.appendChild(dojo.doc.createTextNode(text));},_populateGrid:function(){var _767=this.displayMonth;_767.setDate(1);var _768=_767.getDay();var _769=dojo.date.getDaysInMonth(_767);var _76a=dojo.date.getDaysInMonth(dojo.date.add(_767,"month",-1));var _76b=new Date();var _76c=this.value;var _76d=dojo.cldr.supplemental.getFirstDayOfWeek(this.lang);if(_76d>_768){_76d-=7;}dojo.query(".dijitCalendarDateTemplate",this.domNode).forEach(function(_76e,i){i+=_76d;var date=new Date(_767);var _771,_772="dijitCalendar",adj=0;if(i<_768){_771=_76a-_768+i+1;adj=-1;_772+="Previous";}else{if(i>=(_768+_769)){_771=i-_768-_769+1;adj=1;_772+="Next";}else{_771=i-_768+1;_772+="Current";}}if(adj){date=dojo.date.add(date,"month",adj);}date.setDate(_771);if(!dojo.date.compare(date,_76b,"date")){_772="dijitCalendarCurrentDate "+_772;}if(!dojo.date.compare(date,_76c,"date")){_772="dijitCalendarSelectedDate "+_772;}if(this.isDisabledDate(date,this.lang)){_772="dijitCalendarDisabledDate "+_772;}var _774=this.getClassForDate(date,this.lang);if(_774){_772=_774+" "+_772;}_76e.className=_772+"Month dijitCalendarDateTemplate";_76e.dijitDateValue=date.valueOf();var _775=dojo.query(".dijitCalendarDateLabel",_76e)[0];this._setText(_775,date.getDate());},this);var _776=dojo.date.locale.getNames("months","wide","standAlone",this.lang);this._setText(this.monthLabelNode,_776[_767.getMonth()]);var y=_767.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 _77a=this;var _77b=function(_77c,_77d,adj){_77a._connects.push(dijit.typematic.addMouseListener(_77a[_77c],_77a,function(_77f){if(_77f>=0){_77a._adjustDisplay(_77d,adj);}},0.8,500));};_77b("incrementMonth","month",1);_77b("decrementMonth","month",-1);_77b("nextYearLabelNode","year",1);_77b("previousYearLabelNode","year",-1);},goToToday:function(){this.attr("value",new Date());},postCreate:function(){this.inherited(arguments);dojo.setSelectable(this.domNode,false);var _780=dojo.hitch(this,function(_781,n){var _783=dojo.query(_781,this.domNode)[0];for(var i=0;i<n;i++){_783.parentNode.appendChild(_783.cloneNode(true));}});_780(".dijitCalendarDayLabelTemplate",6);_780(".dijitCalendarDateTemplate",6);_780(".dijitCalendarWeekTemplate",5);var _785=dojo.date.locale.getNames("days",this.dayWidth,"standAlone",this.lang);var _786=dojo.cldr.supplemental.getFirstDayOfWeek(this.lang);dojo.query(".dijitCalendarDayLabel",this.domNode).forEach(function(_787,i){this._setText(_787,_785[(i+_786)%7]);},this);var _789=dojo.date.locale.getNames("months","wide","standAlone",this.lang);dojo.forEach(_789,function(name){var _78b=dojo.create("div",null,this.monthLabelSpacer);this._setText(_78b,name);},this);this.value=null;this.attr("value",new Date());},_adjustDisplay:function(part,_78d){this.displayMonth=dojo.date.add(this.displayMonth,part,_78d);this._populateGrid();},_onDayClick:function(evt){dojo.stopEvent(evt);for(var node=evt.target;node&&!node.dijitDateValue;node=node.parentNode){}if(node&&!dojo.hasClass(node,"dijitCalendarDisabledDate")){this.attr("value",node.dijitDateValue);this.onValueSelected(this.value);}},_onDayMouseOver:function(evt){var node=evt.target;if(node&&(node.dijitDateValue||node==this.previousYearLabelNode||node==this.nextYearLabelNode)){dojo.addClass(node,"dijitCalendarHoveredDate");this._currentNode=node;}},_onDayMouseOut:function(evt){if(!this._currentNode){return;}for(var node=evt.relatedTarget;node;){if(node==this._currentNode){return;}try{node=node.parentNode;}catch(x){node=null;}}dojo.removeClass(this._currentNode,"dijitCalendarHoveredDate");this._currentNode=null;},onValueSelected:function(date){},onChange:function(date){},isDisabledDate:function(_796,_797){},getClassForDate:function(_798,_799){}});}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(_79a,_79b){if(!_79a){return "";}return dojo.date.locale.format(_79a,_79b);},parse:function(_79c,_79d){return dojo.date.locale.parse(_79c,_79d)||(this._isEmpty(_79c)?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 _79e=this.constraints;_79e.selector=this._selector;_79e.fullYear=true;var _79f=dojo.date.stamp.fromISOString;if(typeof _79e.min=="string"){_79e.min=_79f(_79e.min);}if(typeof _79e.max=="string"){_79e.max=_79f(_79e.max);}},_onFocus:function(evt){this._open();},_setValueAttr:function(_7a1,_7a2,_7a3){this.inherited(arguments);if(this._picker){if(!_7a1){_7a1=new Date();}this._picker.attr("value",_7a1);}},_open:function(){if(this.disabled||this.readOnly||!this.popupClass){return;}var _7a4=this;if(!this._picker){var _7a5=dojo.getObject(this.popupClass,false);this._picker=new _7a5({onValueSelected:function(_7a6){if(_7a4._tabbingAway){delete _7a4._tabbingAway;}else{_7a4.focus();}setTimeout(dojo.hitch(_7a4,"_close"),1);dijit.form._DateTimeTextBox.superclass._setValueAttr.call(_7a4,_7a6,true);},lang:_7a4.lang,constraints:_7a4.constraints,isDisabledDate:function(date){var _7a8=dojo.date.compare;var _7a9=_7a4.constraints;return _7a9&&(_7a9.min&&(_7a8(_7a9.min,date,"date")>0)||(_7a9.max&&_7a8(_7a9.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(){_7a4._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(_7aa,_7ab){this._setValueAttr(this.parse(_7aa,this.constraints),_7ab,_7aa);},destroy:function(){if(this._picker){this._picker.destroy();delete this._picker;}this.inherited(arguments);},postCreate:function(){this.inherited(arguments);this.connect(this.focusNode,"onkeypress",this._onKeyPress);},_onKeyPress:function(e){var p=this._picker,dk=dojo.keys;if(p&&this._opened&&p.handleKey){if(p.handleKey(e)===false){return;}}if(this._opened&&e.charOrCode==dk.ESCAPE&&!e.shiftKey&&!e.ctrlKey&&!e.altKey){this._close();dojo.stopEvent(e);}else{if(!this._opened&&e.charOrCode==dk.DOWN_ARROW){this._open();dojo.stopEvent(e);}else{if(e.charOrCode===dk.TAB){this._tabbingAway=true;}else{if(this._opened&&(e.keyChar||e.charOrCode===dk.BACKSPACE||e.charOrCode==dk.DELETE)){setTimeout(dojo.hitch(this,function(){dijit.placeOnScreenAroundElement(p.domNode.parentNode,this.domNode,{"BL":"TL","TL":"BL"},p.orient?dojo.hitch(p,"orient"):null);}),1);}}}}}});}if(!dojo._hasResource["dijit.form.DateTextBox"]){dojo._hasResource["dijit.form.DateTextBox"]=true;dojo.provide("dijit.form.DateTextBox");dojo.declare("dijit.form.DateTextBox",dijit.form._DateTimeTextBox,{baseClass:"dijitTextBox dijitDateTextBox",popupClass:"dijit._Calendar",_selector:"date",value:new Date("")});}if(!dojo._hasResource["dijit.form.FilteringSelect"]){dojo._hasResource["dijit.form.FilteringSelect"]=true;dojo.provide("dijit.form.FilteringSelect");dojo.declare("dijit.form.FilteringSelect",[dijit.form.MappedTextBox,dijit.form.ComboBoxMixin],{_isvalid:true,required:true,_lastDisplayedValue:"",isValid:function(){return this._isvalid||(!this.required&&this.attr("displayedValue")=="");},_callbackSetLabel:function(_7af,_7b0,_7b1){if((_7b0&&_7b0.query[this.searchAttr]!=this._lastQuery)||(!_7b0&&_7af.length&&this.store.getIdentity(_7af[0])!=this._lastQuery)){return;}if(!_7af.length){if(_7b1||!this._focused){this.valueNode.value="";}dijit.form.TextBox.superclass._setValueAttr.call(this,"",_7b1||!this._focused);this._isvalid=false;this.validate(this._focused);this.item=null;}else{this._setValueFromItem(_7af[0],_7b1);}},_openResultList:function(_7b2,_7b3){if(_7b3.query[this.searchAttr]!=this._lastQuery){return;}this._isvalid=_7b2.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(_7b4,_7b5,_7b6){this.valueNode.value=_7b4;dijit.form.FilteringSelect.superclass._setValueAttr.call(this,_7b4,_7b6,_7b5);this._lastDisplayedValue=_7b5;},_setValueAttr:function(_7b7,_7b8){if(!this._onChangeActive){_7b8=null;}this._lastQuery=_7b7;if(_7b7===null||_7b7===""){this._setDisplayedValueAttr("",_7b8);return;}var self=this;var _7ba=function(item,_7bc){if(item){if(self.store.isItemLoaded(item)){self._callbackSetLabel([item],undefined,_7bc);}else{self.store.loadItem({item:item,onItem:function(_7bd,_7be){self._callbackSetLabel(_7bd,_7be,_7bc);}});}}else{self._isvalid=false;self.validate(false);}};this.store.fetchItemByIdentity({identity:_7b7,onItem:function(item){_7ba(item,_7b8);}});},_setValueFromItem:function(item,_7c1){this._isvalid=true;this.item=item;this._setValue(this.store.getIdentity(item),this.labelFunc(item,this.store),_7c1);},labelFunc:function(item,_7c3){return _7c3.getValue(item,this.searchAttr);},_doSelect:function(tgt){this._setValueFromItem(tgt.item,true);},_setDisplayedValueAttr:function(_7c5,_7c6){if(!this._created){_7c6=false;}if(this.store){var _7c7=dojo.clone(this.query);this._lastQuery=_7c7[this.searchAttr]=_7c5.replace(/([\\\*\?])/g,"\\$1");this.textbox.value=_7c5;this._lastDisplayedValue=_7c5;var _7c8=this;var _7c9={query:_7c7,queryOptions:{ignoreCase:this.ignoreCase,deep:true},onComplete:function(_7ca,_7cb){dojo.hitch(_7c8,"_callbackSetLabel")(_7ca,_7cb,_7c6);},onError:function(_7cc){console.error("dijit.form.FilteringSelect: "+_7cc);dojo.hitch(_7c8,"_setValue")("",_7c5,false);}};dojo.mixin(_7c9,this.fetchProperties);this.store.fetch(_7c9);}},postMixInProperties:function(){this.inherited(arguments);this._isvalid=!this.required;},undo:function(){this.attr("displayedValue",this._lastDisplayedValue);}});}if(!dojo._hasResource["dijit.form._Spinner"]){dojo._hasResource["dijit.form._Spinner"]=true;dojo.provide("dijit.form._Spinner");dojo.declare("dijit.form._Spinner",dijit.form.RangeBoundTextBox,{defaultTimeout:500,timeoutChangeRate:0.9,smallDelta:1,largeDelta:10,templateString:"<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\n\tid=\"widget_${id}\"\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\" waiRole=\"presentation\"\n\t><div class=\"dijitInputLayoutContainer\"\n\t\t><div class=\"dijitReset dijitSpinnerButtonContainer\"\n\t\t\t>&nbsp;<div class=\"dijitReset dijitLeft dijitButtonNode dijitArrowButton dijitUpArrowButton\"\n\t\t\t\tdojoAttachPoint=\"upArrowNode\"\n\t\t\t\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse\"\n\t\t\t\tstateModifier=\"UpArrow\"\n\t\t\t\t><div class=\"dijitArrowButtonInner\">&thinsp;</div\n\t\t\t\t><div class=\"dijitArrowButtonChar\">&#9650;</div\n\t\t\t></div\n\t\t\t><div class=\"dijitReset dijitLeft dijitButtonNode dijitArrowButton dijitDownArrowButton\"\n\t\t\t\tdojoAttachPoint=\"downArrowNode\"\n\t\t\t\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse\"\n\t\t\t\tstateModifier=\"DownArrow\"\n\t\t\t\t><div class=\"dijitArrowButtonInner\">&thinsp;</div\n\t\t\t\t><div class=\"dijitArrowButtonChar\">&#9660;</div\n\t\t\t></div\n\t\t></div\n\t\t><div class=\"dijitReset dijitValidationIcon\"><br></div\n\t\t><div class=\"dijitReset dijitValidationIconText\">&Chi;</div\n\t\t><div class=\"dijitReset dijitInputField\"\n\t\t\t><input class='dijitReset' dojoAttachPoint=\"textbox,focusNode\" type=\"${type}\" dojoAttachEvent=\"onkeypress:_onKeyPress\"\n\t\t\t\twaiRole=\"spinbutton\" autocomplete=\"off\" ${nameAttrSetting}\n\t\t/></div\n\t></div\n></div>\n",baseClass:"dijitSpinner",adjust:function(val,_7ce){return val;},_arrowState:function(node,_7d0){this._active=_7d0;this.stateModifier=node.getAttribute("stateModifier")||"";this._setStateClass();},_arrowPressed:function(_7d1,_7d2,_7d3){if(this.disabled||this.readOnly){return;}this._arrowState(_7d1,true);this._setValueAttr(this.adjust(this.attr("value"),_7d2*_7d3),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(_7d5,node,evt){var inc=this.smallDelta;if(node==this.textbox){var k=dojo.keys;var key=evt.charOrCode;inc=(key==k.PAGE_UP||key==k.PAGE_DOWN)?this.largeDelta:this.smallDelta;node=(key==k.UP_ARROW||key==k.PAGE_UP)?this.upArrowNode:this.downArrowNode;}if(_7d5==-1){this._arrowReleased(node);}else{this._arrowPressed(node,(node==this.upArrowNode)?1:-1,inc);}},_wheelTimer:null,_mouseWheeled:function(evt){dojo.stopEvent(evt);var _7dc=evt.detail?(evt.detail*-1):(evt.wheelDelta/120);if(_7dc!==0){var node=this[(_7dc>0?"upArrowNode":"downArrowNode")];this._arrowPressed(node,_7dc,this.smallDelta);if(!this._wheelTimer){clearTimeout(this._wheelTimer);}this._wheelTimer=setTimeout(dojo.hitch(this,"_arrowReleased",node),50);}},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,!dojo.isMozilla?"onmousewheel":"DOMMouseScroll","_mouseWheeled");this._connects.push(dijit.typematic.addListener(this.upArrowNode,this.textbox,{charOrCode:dojo.keys.UP_ARROW,ctrlKey:false,altKey:false,shiftKey:false},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout));this._connects.push(dijit.typematic.addListener(this.downArrowNode,this.textbox,{charOrCode:dojo.keys.DOWN_ARROW,ctrlKey:false,altKey:false,shiftKey:false},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout));this._connects.push(dijit.typematic.addListener(this.upArrowNode,this.textbox,{charOrCode:dojo.keys.PAGE_UP,ctrlKey:false,altKey:false,shiftKey:false},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout));this._connects.push(dijit.typematic.addListener(this.downArrowNode,this.textbox,{charOrCode:dojo.keys.PAGE_DOWN,ctrlKey:false,altKey:false,shiftKey:false},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout));if(dojo.isIE){var _7de=this;this.connect(this.domNode,"onresize",function(){setTimeout(dojo.hitch(_7de,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,_7e1){var tc=this.constraints,v=isNaN(val),_7e4=!isNaN(tc.max),_7e5=!isNaN(tc.min);if(v&&_7e1!=0){val=(_7e1>0)?_7e5?tc.min:_7e4?tc.max:0:_7e4?this.constraints.max:_7e5?tc.min:0;}var _7e6=val+_7e1;if(v||isNaN(_7e6)){return val;}if(_7e4&&(_7e6>tc.max)){_7e6=tc.max;}if(_7e5&&(_7e6<tc.min)){_7e6=tc.min;}return _7e6;},_onKeyPress:function(e){if((e.charOrCode==dojo.keys.HOME||e.charOrCode==dojo.keys.END)&&!e.ctrlKey&&!e.altKey){var _7e8=this.constraints[(e.charOrCode==dojo.keys.HOME?"min":"max")];if(_7e8){this._setValueAttr(_7e8,true);}dojo.stopEvent(e);}}});}if(!dojo._hasResource["dijit.form.HorizontalSlider"]){dojo._hasResource["dijit.form.HorizontalSlider"]=true;dojo.provide("dijit.form.HorizontalSlider");dojo.declare("dijit.form.HorizontalSlider",[dijit.form._FormValueWidget,dijit._Container],{templateString:"<table class=\"dijit dijitReset dijitSlider\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" rules=\"none\" dojoAttachEvent=\"onkeypress:_onKeyPress\"\n\t><tr class=\"dijitReset\"\n\t\t><td class=\"dijitReset\" colspan=\"2\"></td\n\t\t><td dojoAttachPoint=\"containerNode,topDecoration\" class=\"dijitReset\" style=\"text-align:center;width:100%;\"></td\n\t\t><td class=\"dijitReset\" colspan=\"2\"></td\n\t></tr\n\t><tr class=\"dijitReset\"\n\t\t><td class=\"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerH\"\n\t\t\t><div class=\"dijitSliderDecrementIconH\" tabIndex=\"-1\" style=\"display:none\" dojoAttachPoint=\"decrementButton\"><span class=\"dijitSliderButtonInner\">-</span></div\n\t\t></td\n\t\t><td class=\"dijitReset\"\n\t\t\t><div class=\"dijitSliderBar dijitSliderBumper dijitSliderBumperH dijitSliderLeftBumper dijitSliderLeftBumper\" dojoAttachEvent=\"onmousedown:_onClkDecBumper\"></div\n\t\t></td\n\t\t><td class=\"dijitReset\"\n\t\t\t><input dojoAttachPoint=\"valueNode\" type=\"hidden\" ${nameAttrSetting}\n\t\t\t/><div class=\"dijitReset dijitSliderBarContainerH\" waiRole=\"presentation\" dojoAttachPoint=\"sliderBarContainer\"\n\t\t\t\t><div waiRole=\"presentation\" dojoAttachPoint=\"progressBar\" class=\"dijitSliderBar dijitSliderBarH dijitSliderProgressBar dijitSliderProgressBarH\" dojoAttachEvent=\"onmousedown:_onBarClick\"\n\t\t\t\t\t><div class=\"dijitSliderMoveable dijitSliderMoveableH\" \n\t\t\t\t\t\t><div dojoAttachPoint=\"sliderHandle,focusNode\" class=\"dijitSliderImageHandle dijitSliderImageHandleH\" dojoAttachEvent=\"onmousedown:_onHandleClick\" waiRole=\"slider\" valuemin=\"${minimum}\" valuemax=\"${maximum}\"></div\n\t\t\t\t\t></div\n\t\t\t\t></div\n\t\t\t\t><div waiRole=\"presentation\" dojoAttachPoint=\"remainingBar\" class=\"dijitSliderBar dijitSliderBarH dijitSliderRemainingBar dijitSliderRemainingBarH\" dojoAttachEvent=\"onmousedown:_onBarClick\"></div\n\t\t\t></div\n\t\t></td\n\t\t><td class=\"dijitReset\"\n\t\t\t><div class=\"dijitSliderBar dijitSliderBumper dijitSliderBumperH dijitSliderRightBumper dijitSliderRightBumper\" dojoAttachEvent=\"onmousedown:_onClkIncBumper\"></div\n\t\t></td\n\t\t><td class=\"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerH\" style=\"right:0px;\"\n\t\t\t><div class=\"dijitSliderIncrementIconH\" tabIndex=\"-1\" style=\"display:none\" dojoAttachPoint=\"incrementButton\"><span class=\"dijitSliderButtonInner\">+</span></div\n\t\t></td\n\t></tr\n\t><tr class=\"dijitReset\"\n\t\t><td class=\"dijitReset\" colspan=\"2\"></td\n\t\t><td dojoAttachPoint=\"containerNode,bottomDecoration\" class=\"dijitReset\" style=\"text-align:center;\"></td\n\t\t><td class=\"dijitReset\" colspan=\"2\"></td\n\t></tr\n></table>\n",value:0,showButtons:true,minimum:0,maximum:100,discreteValues:Infinity,pageIncrement:2,clickSelect:true,slideDuration:dijit.defaultDuration,widgetsInTemplate:true,attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{id:""}),baseClass:"dijitSlider",_mousePixelCoord:"pageX",_pixelCount:"w",_startingPixelCoord:"x",_startingPixelCount:"l",_handleOffsetCoord:"left",_progressPixelSize:"width",_onKeyPress:function(e){if(this.disabled||this.readOnly||e.altKey||e.ctrlKey){return;}switch(e.charOrCode){case dojo.keys.HOME:this._setValueAttr(this.minimum,true);break;case dojo.keys.END:this._setValueAttr(this.maximum,true);break;case ((this._descending||this.isLeftToRight())?dojo.keys.RIGHT_ARROW:dojo.keys.LEFT_ARROW):case (this._descending===false?dojo.keys.DOWN_ARROW:dojo.keys.UP_ARROW):case (this._descending===false?dojo.keys.PAGE_DOWN:dojo.keys.PAGE_UP):this.increment(e);break;case ((this._descending||this.isLeftToRight())?dojo.keys.LEFT_ARROW:dojo.keys.RIGHT_ARROW):case (this._descending===false?dojo.keys.UP_ARROW:dojo.keys.DOWN_ARROW):case (this._descending===false?dojo.keys.PAGE_UP:dojo.keys.PAGE_DOWN):this.decrement(e);break;default:return;}dojo.stopEvent(e);},_onHandleClick:function(e){if(this.disabled||this.readOnly){return;}if(!dojo.isIE){dijit.focus(this.sliderHandle);}dojo.stopEvent(e);},_isReversed:function(){return !this.isLeftToRight();},_onBarClick:function(e){if(this.disabled||this.readOnly||!this.clickSelect){return;}dijit.focus(this.sliderHandle);dojo.stopEvent(e);var _7ec=dojo.coords(this.sliderBarContainer,true);var _7ed=e[this._mousePixelCoord]-_7ec[this._startingPixelCoord];this._setPixelValue(this._isReversed()?(_7ec[this._pixelCount]-_7ed):_7ed,_7ec[this._pixelCount],true);this._movable.onMouseDown(e);},_setPixelValue:function(_7ee,_7ef,_7f0){if(this.disabled||this.readOnly){return;}_7ee=_7ee<0?0:_7ef<_7ee?_7ef:_7ee;var _7f1=this.discreteValues;if(_7f1<=1||_7f1==Infinity){_7f1=_7ef;}_7f1--;var _7f2=_7ef/_7f1;var _7f3=Math.round(_7ee/_7f2);this._setValueAttr((this.maximum-this.minimum)*_7f3/_7f1+this.minimum,_7f0);},_setValueAttr:function(_7f4,_7f5){this.valueNode.value=this.value=_7f4;dijit.setWaiState(this.focusNode,"valuenow",_7f4);this.inherited(arguments);var _7f6=(_7f4-this.minimum)/(this.maximum-this.minimum);var _7f7=(this._descending===false)?this.remainingBar:this.progressBar;var _7f8=(this._descending===false)?this.progressBar:this.remainingBar;if(this._inProgressAnim&&this._inProgressAnim.status!="stopped"){this._inProgressAnim.stop(true);}if(_7f5&&this.slideDuration>0&&_7f7.style[this._progressPixelSize]){var _7f9=this;var _7fa={};var _7fb=parseFloat(_7f7.style[this._progressPixelSize]);var _7fc=this.slideDuration*(_7f6-_7fb/100);if(_7fc==0){return;}if(_7fc<0){_7fc=0-_7fc;}_7fa[this._progressPixelSize]={start:_7fb,end:_7f6*100,units:"%"};this._inProgressAnim=dojo.animateProperty({node:_7f7,duration:_7fc,onAnimate:function(v){_7f8.style[_7f9._progressPixelSize]=(100-parseFloat(v[_7f9._progressPixelSize]))+"%";},onEnd:function(){delete _7f9._inProgressAnim;},properties:_7fa});this._inProgressAnim.play();}else{_7f7.style[this._progressPixelSize]=(_7f6*100)+"%";_7f8.style[this._progressPixelSize]=((1-_7f6)*100)+"%";}},_bumpValue:function(_7fe){if(this.disabled||this.readOnly){return;}var s=dojo.getComputedStyle(this.sliderBarContainer);var c=dojo._getContentBox(this.sliderBarContainer,s);var _801=this.discreteValues;if(_801<=1||_801==Infinity){_801=c[this._pixelCount];}_801--;var _802=(this.value-this.minimum)*_801/(this.maximum-this.minimum)+_7fe;if(_802<0){_802=0;}if(_802>_801){_802=_801;}_802=_802*(this.maximum-this.minimum)/_801+this.minimum;this._setValueAttr(_802,true);},_onClkBumper:function(val){if(this.disabled||this.readOnly||!this.clickSelect){return;}this._setValueAttr(val,true);},_onClkIncBumper:function(){this._onClkBumper(this._descending===false?this.minimum:this.maximum);},_onClkDecBumper:function(){this._onClkBumper(this._descending===false?this.maximum:this.minimum);},decrement:function(e){this._bumpValue(e.charOrCode==dojo.keys.PAGE_DOWN?-this.pageIncrement:-1);},increment:function(e){this._bumpValue(e.charOrCode==dojo.keys.PAGE_UP?this.pageIncrement:1);},_mouseWheeled:function(evt){dojo.stopEvent(evt);var _807=!dojo.isMozilla;var _808=evt[(_807?"wheelDelta":"detail")]*(_807?1:-1);this[(_808<0?"decrement":"increment")](evt);},startup:function(){dojo.forEach(this.getChildren(),function(_809){if(this[_809.container]!=this.containerNode){this[_809.container].appendChild(_809.domNode);}},this);},_typematicCallback:function(_80a,_80b,e){if(_80a==-1){return;}this[(_80b==(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 _80d=this;var _80e=function(){dijit.form._SliderMover.apply(this,arguments);this.widget=_80d;};dojo.extend(_80e,dijit.form._SliderMover.prototype);this._movable=new dojo.dnd.Moveable(this.sliderHandle,{mover:_80e});var _80f=dojo.query("label[for=\""+this.id+"\"]");if(_80f.length){_80f[0].id=(this.id+"_label");dijit.setWaiState(this.focusNode,"labelledby",_80f[0].id);}dijit.setWaiState(this.focusNode,"valuemin",this.minimum);dijit.setWaiState(this.focusNode,"valuemax",this.maximum);this.inherited(arguments);},destroy:function(){this._movable.destroy();if(this._inProgressAnim&&this._inProgressAnim.status!="stopped"){this._inProgressAnim.stop(true);}this.inherited(arguments);}});dojo.declare("dijit.form._SliderMover",dojo.dnd.Mover,{onMouseMove:function(e){var _811=this.widget;var _812=_811._abspos;if(!_812){_812=_811._abspos=dojo.coords(_811.sliderBarContainer,true);_811._setPixelValue_=dojo.hitch(_811,"_setPixelValue");_811._isReversed_=_811._isReversed();}var _813=e[_811._mousePixelCoord]-_812[_811._startingPixelCoord];_811._setPixelValue_(_811._isReversed_?(_812[_811._pixelCount]-_813):_813,_812[_811._pixelCount],false);},destroy:function(e){dojo.dnd.Mover.prototype.destroy.apply(this,arguments);var _815=this.widget;_815._abspos=null;_815._setValueAttr(_815.value,true);}});}if(!dojo._hasResource["dijit.form.VerticalSlider"]){dojo._hasResource["dijit.form.VerticalSlider"]=true;dojo.provide("dijit.form.VerticalSlider");dojo.declare("dijit.form.VerticalSlider",dijit.form.HorizontalSlider,{templateString:"<table class=\"dijitReset dijitSlider\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" rules=\"none\" dojoAttachEvent=\"onkeypress:_onKeyPress\"\n><tbody class=\"dijitReset\"\n\t><tr class=\"dijitReset\"\n\t\t><td class=\"dijitReset\"></td\n\t\t><td class=\"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerV\"\n\t\t\t><div class=\"dijitSliderIncrementIconV\" tabIndex=\"-1\" style=\"display:none\" dojoAttachPoint=\"decrementButton\"><span class=\"dijitSliderButtonInner\">+</span></div\n\t\t></td\n\t\t><td class=\"dijitReset\"></td\n\t></tr\n\t><tr class=\"dijitReset\"\n\t\t><td class=\"dijitReset\"></td\n\t\t><td class=\"dijitReset\"\n\t\t\t><center><div class=\"dijitSliderBar dijitSliderBumper dijitSliderBumperV dijitSliderTopBumper dijitSliderTopBumper\" dojoAttachEvent=\"onmousedown:_onClkIncBumper\"></div></center\n\t\t></td\n\t\t><td class=\"dijitReset\"></td\n\t></tr\n\t><tr class=\"dijitReset\"\n\t\t><td dojoAttachPoint=\"leftDecoration\" class=\"dijitReset\" style=\"text-align:center;height:100%;\"></td\n\t\t><td class=\"dijitReset\" style=\"height:100%;\"\n\t\t\t><input dojoAttachPoint=\"valueNode\" type=\"hidden\" ${nameAttrSetting}\n\t\t\t/><center class=\"dijitReset dijitSliderBarContainerV\" waiRole=\"presentation\" dojoAttachPoint=\"sliderBarContainer\"\n\t\t\t\t><div waiRole=\"presentation\" dojoAttachPoint=\"remainingBar\" class=\"dijitSliderBar dijitSliderBarV dijitSliderRemainingBar dijitSliderRemainingBarV\" dojoAttachEvent=\"onmousedown:_onBarClick\"><!--#5629--></div\n\t\t\t\t><div waiRole=\"presentation\" dojoAttachPoint=\"progressBar\" class=\"dijitSliderBar dijitSliderBarV dijitSliderProgressBar dijitSliderProgressBarV\" dojoAttachEvent=\"onmousedown:_onBarClick\"\n\t\t\t\t\t><div class=\"dijitSliderMoveable\" style=\"vertical-align:top;\" \n\t\t\t\t\t\t><div dojoAttachPoint=\"sliderHandle,focusNode\" class=\"dijitSliderImageHandle dijitSliderImageHandleV\" dojoAttachEvent=\"onmousedown:_onHandleClick\" waiRole=\"slider\" valuemin=\"${minimum}\" valuemax=\"${maximum}\"></div\n\t\t\t\t\t></div\n\t\t\t\t></div\n\t\t\t></center\n\t\t></td\n\t\t><td dojoAttachPoint=\"containerNode,rightDecoration\" class=\"dijitReset\" style=\"text-align:center;height:100%;\"></td\n\t></tr\n\t><tr class=\"dijitReset\"\n\t\t><td class=\"dijitReset\"></td\n\t\t><td class=\"dijitReset\"\n\t\t\t><center><div class=\"dijitSliderBar dijitSliderBumper dijitSliderBumperV dijitSliderBottomBumper dijitSliderBottomBumper\" dojoAttachEvent=\"onmousedown:_onClkDecBumper\"></div></center\n\t\t></td\n\t\t><td class=\"dijitReset\"></td\n\t></tr\n\t><tr class=\"dijitReset\"\n\t\t><td class=\"dijitReset\"></td\n\t\t><td class=\"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerV\"\n\t\t\t><div class=\"dijitSliderDecrementIconV\" tabIndex=\"-1\" style=\"display:none\" dojoAttachPoint=\"incrementButton\"><span class=\"dijitSliderButtonInner\">-</span></div\n\t\t></td\n\t\t><td class=\"dijitReset\"></td\n\t></tr\n></tbody></table>\n",_mousePixelCoord:"pageY",_pixelCount:"h",_startingPixelCoord:"y",_startingPixelCount:"t",_handleOffsetCoord:"top",_progressPixelSize:"height",_descending:true,startup:function(){if(this._started){return;}if(!this.isLeftToRight()&&dojo.isMoz){if(this.leftDecoration){this._rtlRectify(this.leftDecoration);}if(this.rightDecoration){this._rtlRectify(this.rightDecoration);}}this.inherited(arguments);},_isReversed:function(){return this._descending;},_rtlRectify:function(_816){var _817=[];while(_816.firstChild){_817.push(_816.firstChild);_816.removeChild(_816.firstChild);}for(var i=_817.length-1;i>=0;i--){if(_817[i]){_816.appendChild(_817[i]);}}}});}if(!dojo._hasResource["dijit.form.HorizontalRule"]){dojo._hasResource["dijit.form.HorizontalRule"]=true;dojo.provide("dijit.form.HorizontalRule");dojo.declare("dijit.form.HorizontalRule",[dijit._Widget,dijit._Templated],{templateString:"<div class=\"dijitRuleContainer dijitRuleContainerH\"></div>",count:3,container:"containerNode",ruleStyle:"",_positionPrefix:"<div class=\"dijitRuleMark dijitRuleMarkH\" style=\"left:",_positionSuffix:"%;",_suffix:"\"></div>",_genHTML:function(pos,ndx){return this._positionPrefix+pos+this._positionSuffix+this.ruleStyle+this._suffix;},_isHorizontal:true,postCreate:function(){var _81b;if(this.count==1){_81b=this._genHTML(50,0);}else{var i;var _81d=100/(this.count-1);if(!this._isHorizontal||this.isLeftToRight()){_81b=this._genHTML(0,0);for(i=1;i<this.count-1;i++){_81b+=this._genHTML(_81d*i,i);}_81b+=this._genHTML(100,this.count-1);}else{_81b=this._genHTML(100,0);for(i=1;i<this.count-1;i++){_81b+=this._genHTML(100-_81d*i,i);}_81b+=this._genHTML(0,this.count-1);}}this.domNode.innerHTML=_81b;}});}if(!dojo._hasResource["dijit.form.VerticalRule"]){dojo._hasResource["dijit.form.VerticalRule"]=true;dojo.provide("dijit.form.VerticalRule");dojo.declare("dijit.form.VerticalRule",dijit.form.HorizontalRule,{templateString:"<div class=\"dijitRuleContainer dijitRuleContainerV\"></div>",_positionPrefix:"<div class=\"dijitRuleMark dijitRuleMarkV\" style=\"top:",_isHorizontal:false});}if(!dojo._hasResource["dijit.form.HorizontalRuleLabels"]){dojo._hasResource["dijit.form.HorizontalRuleLabels"]=true;dojo.provide("dijit.form.HorizontalRuleLabels");dojo.declare("dijit.form.HorizontalRuleLabels",dijit.form.HorizontalRule,{templateString:"<div class=\"dijitRuleContainer dijitRuleContainerH dijitRuleLabelsContainer dijitRuleLabelsContainerH\"></div>",labelStyle:"",labels:[],numericMargin:0,minimum:0,maximum:1,constraints:{pattern:"#%"},_positionPrefix:"<div class=\"dijitRuleLabelContainer dijitRuleLabelContainerH\" style=\"left:",_labelPrefix:"\"><span class=\"dijitRuleLabel dijitRuleLabelH\">",_suffix:"</span></div>",_calcPosition:function(pos){return pos;},_genHTML:function(pos,ndx){return this._positionPrefix+this._calcPosition(pos)+this._positionSuffix+this.labelStyle+this._labelPrefix+this.labels[ndx]+this._suffix;},getLabels:function(){var _821=this.labels;if(!_821.length){_821=dojo.query("> li",this.srcNodeRef).map(function(node){return String(node.innerHTML);});}this.srcNodeRef.innerHTML="";if(!_821.length&&this.count>1){var _823=this.minimum;var inc=(this.maximum-_823)/(this.count-1);for(var i=0;i<this.count;i++){_821.push((i<this.numericMargin||i>=(this.count-this.numericMargin))?"":dojo.number.format(_823,this.constraints));_823+=inc;}}return _821;},postMixInProperties:function(){this.inherited(arguments);this.labels=this.getLabels();this.count=this.labels.length;}});}if(!dojo._hasResource["dijit.form.VerticalRuleLabels"]){dojo._hasResource["dijit.form.VerticalRuleLabels"]=true;dojo.provide("dijit.form.VerticalRuleLabels");dojo.declare("dijit.form.VerticalRuleLabels",dijit.form.HorizontalRuleLabels,{templateString:"<div class=\"dijitRuleContainer dijitRuleContainerV dijitRuleLabelsContainer dijitRuleLabelsContainerV\"></div>",_positionPrefix:"<div class=\"dijitRuleLabelContainer dijitRuleLabelContainerV\" style=\"top:",_labelPrefix:"\"><span class=\"dijitRuleLabel dijitRuleLabelV\">",_calcPosition:function(pos){return 100-pos;},_isHorizontal:false});}if(!dojo._hasResource["dijit.form.SimpleTextarea"]){dojo._hasResource["dijit.form.SimpleTextarea"]=true;dojo.provide("dijit.form.SimpleTextarea");dojo.declare("dijit.form.SimpleTextarea",dijit.form.TextBox,{baseClass:"dijitTextArea",attributeMap:dojo.delegate(dijit.form._FormValueWidget.prototype.attributeMap,{rows:"textbox",cols:"textbox"}),rows:"3",cols:"20",templatePath:null,templateString:"<textarea ${nameAttrSetting} dojoAttachPoint='focusNode,containerNode,textbox' autocomplete='off'></textarea>",postMixInProperties:function(){if(!this.value&&this.srcNodeRef){this.value=this.srcNodeRef.value;}this.inherited(arguments);},filter:function(_827){if(_827){_827=_827.replace(/\r/g,"");}return this.inherited(arguments);},postCreate:function(){this.inherited(arguments);if(dojo.isIE&&this.cols){dojo.addClass(this.domNode,"dijitTextAreaCols");}},_previousValue:"",_onInput:function(e){if(this.maxLength){var _829=parseInt(this.maxLength);var _82a=this.textbox.value.replace(/\r/g,"");var _82b=_82a.length-_829;if(_82b>0){dojo.stopEvent(e);var _82c=this.textbox;if(_82c.selectionStart){var pos=_82c.selectionStart;var cr=0;if(dojo.isOpera){cr=(this.textbox.value.substring(0,pos).match(/\r/g)||[]).length;}this.textbox.value=_82a.substring(0,pos-_82b-cr)+_82a.substring(pos-cr);_82c.setSelectionRange(pos-_82b,pos-_82b);}else{if(dojo.doc.selection){_82c.focus();var _82f=dojo.doc.selection.createRange();_82f.moveStart("character",-_82b);_82f.text="";_82f.select();}}}this._previousValue=this.textbox.value;}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.form.Textarea"]){dojo._hasResource["dijit.form.Textarea"]=true;dojo.provide("dijit.form.Textarea");dojo.declare("dijit.form.Textarea",dijit.form.SimpleTextarea,{cols:"",_previousNewlines:0,_strictMode:(dojo.doc.compatMode!="BackCompat"),_getHeight:function(_830){var newH=_830.scrollHeight;if(dojo.isIE){newH+=_830.offsetHeight-_830.clientHeight-((dojo.isIE<8&&this._strictMode)?dojo._getPadBorderExtents(_830).h:0);}else{if(dojo.isMoz){newH+=_830.offsetHeight-_830.clientHeight;}else{newH+=dojo._getPadBorderExtents(_830).h;}}return newH;},_onInput:function(){this.inherited(arguments);if(this._busyResizing){return;}this._busyResizing=true;var _832=this.domNode;_832.scrollTop=0;var oldH=parseFloat(dojo.getComputedStyle(_832).height);var newH=this._getHeight(_832);if(newH>0&&_832.style.height!=newH){_832.style.maxHeight=_832.style.height=newH+"px";}this._busyResizing=false;if(dojo.isMoz||dojo.isWebKit){var _835=(_832.value.match(/\n/g)||[]).length;if(_835<this._previousNewlines){this._shrink();}this._previousNewlines=_835;}},_busyResizing:false,_shrink:function(){if((dojo.isMoz||dojo.isSafari)&&!this._busyResizing){this._busyResizing=true;var _836=this.domNode;var _837=false;if(_836.value==""){_836.value=" ";_837=true;}var newH=this._getHeight(_836);if(newH>0){var _839=_836.scrollHeight;var _83a=-1;var _83b=dojo.getComputedStyle(_836).paddingBottom;var _83c=dojo._getPadExtents(_836);var _83d=_83c.h-_83c.t;_836.style.maxHeight=newH+"px";while(_83a!=_839){_83a=_839;_83d+=16;_836.style.paddingBottom=_83d+"px";_836.scrollTop=0;_839=_836.scrollHeight;newH-=_83a-_839;}_836.style.paddingBottom=_83b;_836.style.maxHeight=_836.style.height=newH+"px";}if(_837){_836.value="";}this._busyResizing=false;}},resize:function(){this._onInput();this._shrink();},_setValueAttr:function(){this.inherited(arguments);this.resize();},postCreate:function(){this.inherited(arguments);dojo.style(this.domNode,{overflowY:"hidden",overflowX:"auto",boxSizing:"border-box",MsBoxSizing:"border-box",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box"});this.connect(this.domNode,"onscroll",this._onInput);this.connect(this.domNode,"onresize",this._onInput);setTimeout(dojo.hitch(this,"resize"),0);}});}if(!dojo._hasResource["dijit.form.ToggleButton"]){dojo._hasResource["dijit.form.ToggleButton"]=true;dojo.provide("dijit.form.ToggleButton");}if(!dojo._hasResource["dijit.layout.StackController"]){dojo._hasResource["dijit.layout.StackController"]=true;dojo.provide("dijit.layout.StackController");dojo.declare("dijit.layout.StackController",[dijit._Widget,dijit._Templated,dijit._Container],{templateString:"<span wairole='tablist' dojoAttachEvent='onkeypress' class='dijitStackController'></span>",containerId:"",buttonWidget:"dijit.layout._StackButton",postCreate:function(){dijit.setWaiRole(this.domNode,"tablist");this.pane2button={};this.pane2handles={};this.pane2menu={};this._subscriptions=[dojo.subscribe(this.containerId+"-startup",this,"onStartup"),dojo.subscribe(this.containerId+"-addChild",this,"onAddChild"),dojo.subscribe(this.containerId+"-removeChild",this,"onRemoveChild"),dojo.subscribe(this.containerId+"-selectChild",this,"onSelectChild"),dojo.subscribe(this.containerId+"-containerKeyPress",this,"onContainerKeyPress")];},onStartup:function(info){dojo.forEach(info.children,this.onAddChild,this);this.onSelectChild(info.selected);},destroy:function(){for(var pane in this.pane2button){this.onRemoveChild(pane);}dojo.forEach(this._subscriptions,dojo.unsubscribe);this.inherited(arguments);},onAddChild:function(page,_841){var _842=dojo.doc.createElement("span");this.domNode.appendChild(_842);var cls=dojo.getObject(this.buttonWidget);var _844=new cls({label:page.title,closeButton:page.closable},_842);this.addChild(_844,_841);this.pane2button[page]=_844;page.controlButton=_844;var _845=[];_845.push(dojo.connect(_844,"onClick",dojo.hitch(this,"onButtonClick",page)));if(page.closable){_845.push(dojo.connect(_844,"onClickCloseButton",dojo.hitch(this,"onCloseButtonClick",page)));var _846=dojo.i18n.getLocalization("dijit","common");var _847=new dijit.Menu({targetNodeIds:[_844.id],id:_844.id+"_Menu"});var _848=new dijit.MenuItem({label:_846.itemClose});_845.push(dojo.connect(_848,"onClick",dojo.hitch(this,"onCloseButtonClick",page)));_847.addChild(_848);this.pane2menu[page]=_847;}this.pane2handles[page]=_845;if(!this._currentChild){_844.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 _84b=this.pane2button[page];if(_84b){_84b.destroy();delete this.pane2button[page];}},onSelectChild:function(page){if(!page){return;}if(this._currentChild){var _84d=this.pane2button[this._currentChild];_84d.attr("checked",false);_84d.focusNode.setAttribute("tabIndex","-1");}var _84e=this.pane2button[page];_84e.attr("checked",true);this._currentChild=page;_84e.focusNode.setAttribute("tabIndex","0");var _84f=dijit.byId(this.containerId);dijit.setWaiState(_84f.containerNode,"labelledby",_84e.id);},onButtonClick:function(page){var _851=dijit.byId(this.containerId);_851.selectChild(page);},onCloseButtonClick:function(page){var _853=dijit.byId(this.containerId);_853.closeChild(page);var b=this.pane2button[this._currentChild];if(b){dijit.focus(b.focusNode||b.domNode);}},adjacent:function(_855){if(!this.isLeftToRight()&&(!this.tabPosition||/top|bottom/.test(this.tabPosition))){_855=!_855;}var _856=this.getChildren();var _857=dojo.indexOf(_856,this.pane2button[this._currentChild]);var _858=_855?1:_856.length-1;return _856[(_857+_858)%_856.length];},onkeypress:function(e){if(this.disabled||e.altKey){return;}var _85a=null;if(e.ctrlKey||!e._djpage){var k=dojo.keys;switch(e.charOrCode){case k.LEFT_ARROW:case k.UP_ARROW:if(!e._djpage){_85a=false;}break;case k.PAGE_UP:if(e.ctrlKey){_85a=false;}break;case k.RIGHT_ARROW:case k.DOWN_ARROW:if(!e._djpage){_85a=true;}break;case k.PAGE_DOWN:if(e.ctrlKey){_85a=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(_85a!==null){this.adjacent(_85a).onClick();dojo.stopEvent(e);}}},onContainerKeyPress:function(info){info.e._djpage=info.page;this.onkeypress(info.e);}});dojo.declare("dijit.layout._StackButton",dijit.form.ToggleButton,{tabIndex:"-1",postCreate:function(evt){dijit.setWaiRole((this.focusNode||this.domNode),"tab");this.inherited(arguments);},onClick:function(evt){dijit.focus(this.focusNode);},onClickCloseButton:function(evt){evt.stopPropagation();}});}if(!dojo._hasResource["dijit.layout.StackContainer"]){dojo._hasResource["dijit.layout.StackContainer"]=true;dojo.provide("dijit.layout.StackContainer");dojo.declare("dijit.layout.StackContainer",dijit.layout._LayoutWidget,{doLayout:true,persist:false,baseClass:"dijitStackContainer",_started:false,postCreate:function(){this.inherited(arguments);dojo.addClass(this.domNode,"dijitLayoutContainer");dijit.setWaiRole(this.containerNode,"tabpanel");this.connect(this.domNode,"onkeypress",this._onKeyPress);},startup:function(){if(this._started){return;}var _860=this.getChildren();dojo.forEach(_860,this._setupChild,this);if(this.persist){this.selectedChildWidget=dijit.byId(dojo.cookie(this.id+"_selectedChild"));}else{dojo.some(_860,function(_861){if(_861.selected){this.selectedChildWidget=_861;}return _861.selected;},this);}var _862=this.selectedChildWidget;if(!_862&&_860[0]){_862=this.selectedChildWidget=_860[0];_862.selected=true;}dojo.publish(this.id+"-startup",[{children:_860,selected:_862}]);this.inherited(arguments);if(_862){this._showChild(_862);}},_setupChild:function(_863){this.inherited(arguments);dojo.removeClass(_863.domNode,"dijitVisible");dojo.addClass(_863.domNode,"dijitHidden");_863.domNode.title="";return _863;},addChild:function(_864,_865){this.inherited(arguments);if(this._started){dojo.publish(this.id+"-addChild",[_864,_865]);this.layout();if(!this.selectedChildWidget){this.selectChild(_864);}}},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 _867=this.getChildren();if(_867.length){this.selectChild(_867[0]);}}}},selectChild:function(page){page=dijit.byId(page);if(this.selectedChildWidget!=page){this._transition(page,this.selectedChildWidget);this.selectedChildWidget=page;dojo.publish(this.id+"-selectChild",[page]);if(this.persist){dojo.cookie(this.id+"_selectedChild",this.selectedChildWidget.id);}}},_transition:function(_869,_86a){if(_86a){this._hideChild(_86a);}this._showChild(_869);if(this.doLayout&&_869.resize){_869.resize(this._containerContentBox||this._contentBox);}},_adjacent:function(_86b){var _86c=this.getChildren();var _86d=dojo.indexOf(_86c,this.selectedChildWidget);_86d+=_86b?1:_86c.length-1;return _86c[_86d%_86c.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 _870=this.getChildren();page.isFirstChild=(page==_870[0]);page.isLastChild=(page==_870[_870.length-1]);page.selected=true;dojo.removeClass(page.domNode,"dijitHidden");dojo.addClass(page.domNode,"dijitVisible");if(page._onShow){page._onShow();}else{if(page.onShow){page.onShow();}}},_hideChild:function(page){page.selected=false;dojo.removeClass(page.domNode,"dijitVisible");dojo.addClass(page.domNode,"dijitHidden");if(page.onHide){page.onHide();}},closeChild:function(page){var _873=page.onClose(this,page);if(_873){this.removeChild(page);page.destroyRecursive();}},destroy:function(){this._beingDestroyed=true;this.inherited(arguments);}});dojo.extend(dijit._Widget,{title:"",selected:false,closable:false,onClose:function(){return true;}});}if(!dojo._hasResource["dijit.layout.AccordionPane"]){dojo._hasResource["dijit.layout.AccordionPane"]=true;dojo.provide("dijit.layout.AccordionPane");dojo.declare("dijit.layout.AccordionPane",dijit.layout.ContentPane,{constructor:function(){dojo.deprecated("dijit.layout.AccordionPane deprecated, use ContentPane instead","","2.0");},onSelected:function(){}});}if(!dojo._hasResource["dijit.layout.AccordionContainer"]){dojo._hasResource["dijit.layout.AccordionContainer"]=true;dojo.provide("dijit.layout.AccordionContainer");dojo.declare("dijit.layout.AccordionContainer",dijit.layout.StackContainer,{duration:dijit.defaultDuration,_verticalSpace:0,baseClass:"dijitAccordionContainer",postCreate:function(){this.domNode.style.overflow="hidden";this.inherited(arguments);dijit.setWaiRole(this.domNode,"tablist");},startup:function(){if(this._started){return;}this.inherited(arguments);if(this.selectedChildWidget){var _874=this.selectedChildWidget.containerNode.style;_874.display="";_874.overflow="auto";this.selectedChildWidget._buttonWidget._setSelectedState(true);}},_getTargetHeight:function(node){var cs=dojo.getComputedStyle(node);return Math.max(this._verticalSpace-dojo._getPadBorderExtents(node,cs).h,0);},layout:function(){var _877=this.selectedChildWidget;var _878=0;dojo.forEach(this.getChildren(),function(_879){_878+=_879._buttonWidget.getTitleHeight();});var _87a=this._contentBox;this._verticalSpace=_87a.h-_878;this._containerContentBox={h:this._verticalSpace,w:_87a.w};if(_877){_877.resize(this._containerContentBox);}},_setupChild:function(_87b){_87b._buttonWidget=new dijit.layout._AccordionButton({contentWidget:_87b,title:_87b.title,id:_87b.id+"_button",parent:this});dojo.place(_87b._buttonWidget.domNode,_87b.domNode,"before");this.inherited(arguments);},removeChild:function(_87c){_87c._buttonWidget.destroy();this.inherited(arguments);},getChildren:function(){return dojo.filter(this.inherited(arguments),function(_87d){return _87d.declaredClass!="dijit.layout._AccordionButton";});},destroy:function(){dojo.forEach(this.getChildren(),function(_87e){_87e._buttonWidget.destroy();});this.inherited(arguments);},_transition:function(_87f,_880){if(this._inTransition){return;}this._inTransition=true;var _881=[];var _882=this._verticalSpace;if(_87f){_87f._buttonWidget.setSelected(true);this._showChild(_87f);if(this.doLayout&&_87f.resize){_87f.resize(this._containerContentBox);}var _883=_87f.domNode;dojo.addClass(_883,"dijitVisible");dojo.removeClass(_883,"dijitHidden");var _884=_883.style.overflow;_883.style.overflow="hidden";_881.push(dojo.animateProperty({node:_883,duration:this.duration,properties:{height:{start:1,end:this._getTargetHeight(_883)}},onEnd:function(){_883.style.overflow=_884;}}));}if(_880){_880._buttonWidget.setSelected(false);var _885=_880.domNode;var _886=_885.style.overflow;_885.style.overflow="hidden";_881.push(dojo.animateProperty({node:_885,duration:this.duration,properties:{height:{start:this._getTargetHeight(_885),end:1}},onEnd:function(){dojo.addClass(_885,"dijitHidden");dojo.removeClass(_885,"dijitVisible");_885.style.overflow=_886;}}));}this._inTransition=false;dojo.fx.combine(_881).play();},_onKeyPress:function(e,_888){if(this.disabled||e.altKey||!(_888||e.ctrlKey)){return;}var k=dojo.keys,c=e.charOrCode;if((_888&&(c==k.LEFT_ARROW||c==k.UP_ARROW))||(e.ctrlKey&&c==k.PAGE_UP)){this._adjacent(false)._buttonWidget._onTitleClick();dojo.stopEvent(e);}else{if((_888&&(c==k.RIGHT_ARROW||c==k.DOWN_ARROW))||(e.ctrlKey&&(c==k.PAGE_DOWN||c==k.TAB))){this._adjacent(true)._buttonWidget._onTitleClick();dojo.stopEvent(e);}}}});dojo.declare("dijit.layout._AccordionButton",[dijit._Widget,dijit._Templated],{templateString:"<div dojoAttachPoint='titleNode,focusNode' dojoAttachEvent='ondijitclick:_onTitleClick,onkeypress:_onTitleKeyPress,onfocus:_handleFocus,onblur:_handleFocus,onmouseenter:_onTitleEnter,onmouseleave:_onTitleLeave'\n\t\tclass='dijitAccordionTitle' wairole=\"tab\" waiState=\"expanded-false\"\n\t\t><span class='dijitInline dijitAccordionArrow' waiRole=\"presentation\"></span\n\t\t><span class='arrowTextUp' waiRole=\"presentation\">+</span\n\t\t><span class='arrowTextDown' waiRole=\"presentation\">-</span\n\t\t><span waiRole=\"presentation\" dojoAttachPoint='titleTextNode' class='dijitAccordionText'></span>\n</div>\n",attributeMap:dojo.mixin(dojo.clone(dijit.layout.ContentPane.prototype.attributeMap),{title:{node:"titleTextNode",type:"innerHTML"}}),baseClass:"dijitAccordionTitle",getParent:function(){return this.parent;},postCreate:function(){this.inherited(arguments);dojo.setSelectable(this.domNode,false);this.setSelected(this.selected);var _88b=dojo.attr(this.domNode,"id").replace(" ","_");dojo.attr(this.titleTextNode,"id",_88b+"_title");dijit.setWaiState(this.focusNode,"labelledby",dojo.attr(this.titleTextNode,"id"));},getTitleHeight:function(){return dojo.marginBox(this.titleNode).h;},_onTitleClick:function(){var _88c=this.getParent();if(!_88c._inTransition){_88c.selectChild(this.contentWidget);dijit.focus(this.focusNode);}},_onTitleEnter:function(){dojo.addClass(this.focusNode,"dijitAccordionTitle-hover");},_onTitleLeave:function(){dojo.removeClass(this.focusNode,"dijitAccordionTitle-hover");},_onTitleKeyPress:function(evt){return this.getParent()._onKeyPress(evt,this.contentWidget);},_setSelectedState:function(_88e){this.selected=_88e;dojo[(_88e?"addClass":"removeClass")](this.titleNode,"dijitAccordionTitle-selected");dijit.setWaiState(this.focusNode,"expanded",_88e);dijit.setWaiState(this.focusNode,"selected",_88e);this.focusNode.setAttribute("tabIndex",_88e?"0":"-1");},_handleFocus:function(e){dojo[(e.type=="focus"?"addClass":"removeClass")](this.focusNode,"dijitAccordionFocused");},setSelected:function(_890){this._setSelectedState(_890);if(_890){var cw=this.contentWidget;if(cw.onSelected){cw.onSelected();}}}});}if(!dojo._hasResource["dijit.layout.BorderContainer"]){dojo._hasResource["dijit.layout.BorderContainer"]=true;dojo.provide("dijit.layout.BorderContainer");dojo.declare("dijit.layout.BorderContainer",dijit.layout._LayoutWidget,{design:"headline",gutters:true,liveSplitters:true,persist:false,baseClass:"dijitBorderContainer",_splitterClass:"dijit.layout._Splitter",postMixInProperties:function(){if(!this.gutters){this.baseClass+="NoGutter";}this.inherited(arguments);},postCreate:function(){this.inherited(arguments);this._splitters={};this._splitterThickness={};},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),this._setupChild,this);this.inherited(arguments);},_setupChild:function(_892){var _893=_892.region;if(_893){this.inherited(arguments);dojo.addClass(_892.domNode,this.baseClass+"Pane");var ltr=this.isLeftToRight();if(_893=="leading"){_893=ltr?"left":"right";}if(_893=="trailing"){_893=ltr?"right":"left";}this["_"+_893]=_892.domNode;this["_"+_893+"Widget"]=_892;if((_892.splitter||this.gutters)&&!this._splitters[_893]){var _895=dojo.getObject(_892.splitter?this._splitterClass:"dijit.layout._Gutter");var flip={left:"right",right:"left",top:"bottom",bottom:"top",leading:"trailing",trailing:"leading"};var _897=new _895({container:this,child:_892,region:_893,oppNode:this["_"+flip[_892.region]],live:this.liveSplitters});_897.isSplitter=true;this._splitters[_893]=_897.domNode;dojo.place(this._splitters[_893],_892.domNode,"after");_897.startup();}_892.region=_893;}},_computeSplitterThickness:function(_898){this._splitterThickness[_898]=this._splitterThickness[_898]||dojo.marginBox(this._splitters[_898])[(/top|bottom/.test(_898)?"h":"w")];},layout:function(){for(var _899 in this._splitters){this._computeSplitterThickness(_899);}this._layoutChildren();},addChild:function(_89a,_89b){this.inherited(arguments);if(this._started){this._layoutChildren();}},removeChild:function(_89c){var _89d=_89c.region;var _89e=this._splitters[_89d];if(_89e){dijit.byNode(_89e).destroy();delete this._splitters[_89d];delete this._splitterThickness[_89d];}this.inherited(arguments);delete this["_"+_89d];delete this["_"+_89d+"Widget"];if(this._started){this._layoutChildren(_89c.region);}dojo.removeClass(_89c.domNode,this.baseClass+"Pane");},getChildren:function(){return dojo.filter(this.inherited(arguments),function(_89f){return !_89f.isSplitter;});},getSplitter:function(_8a0){var _8a1=this._splitters[_8a0];return _8a1?dijit.byNode(_8a1):null;},resize:function(_8a2,_8a3){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(_8a5){if(!this._borderBox||!this._borderBox.h){return;}var _8a6=(this.design=="sidebar");var _8a7=0,_8a8=0,_8a9=0,_8aa=0;var _8ab={},_8ac={},_8ad={},_8ae={},_8af=(this._center&&this._center.style)||{};var _8b0=/left|right/.test(_8a5);var _8b1=!_8a5||(!_8b0&&!_8a6);var _8b2=!_8a5||(_8b0&&_8a6);if(this._top){_8ab=_8b2&&this._top.style;_8a7=dojo.marginBox(this._top).h;}if(this._left){_8ac=_8b1&&this._left.style;_8a9=dojo.marginBox(this._left).w;}if(this._right){_8ad=_8b1&&this._right.style;_8aa=dojo.marginBox(this._right).w;}if(this._bottom){_8ae=_8b2&&this._bottom.style;_8a8=dojo.marginBox(this._bottom).h;}var _8b3=this._splitters;var _8b4=_8b3.top,_8b5=_8b3.bottom,_8b6=_8b3.left,_8b7=_8b3.right;var _8b8=this._splitterThickness;var _8b9=_8b8.top||0,_8ba=_8b8.left||0,_8bb=_8b8.right||0,_8bc=_8b8.bottom||0;if(_8ba>50||_8bb>50){setTimeout(dojo.hitch(this,function(){this._splitterThickness={};for(var _8bd in this._splitters){this._computeSplitterThickness(_8bd);}this._layoutChildren();}),50);return false;}var pe=this.pe;var _8bf={left:(_8a6?_8a9+_8ba:0)+pe.l+"px",right:(_8a6?_8aa+_8bb:0)+pe.r+"px"};if(_8b4){dojo.mixin(_8b4.style,_8bf);_8b4.style.top=_8a7+pe.t+"px";}if(_8b5){dojo.mixin(_8b5.style,_8bf);_8b5.style.bottom=_8a8+pe.b+"px";}_8bf={top:(_8a6?0:_8a7+_8b9)+pe.t+"px",bottom:(_8a6?0:_8a8+_8bc)+pe.b+"px"};if(_8b6){dojo.mixin(_8b6.style,_8bf);_8b6.style.left=_8a9+pe.l+"px";}if(_8b7){dojo.mixin(_8b7.style,_8bf);_8b7.style.right=_8aa+pe.r+"px";}dojo.mixin(_8af,{top:pe.t+_8a7+_8b9+"px",left:pe.l+_8a9+_8ba+"px",right:pe.r+_8aa+_8bb+"px",bottom:pe.b+_8a8+_8bc+"px"});var _8c0={top:_8a6?pe.t+"px":_8af.top,bottom:_8a6?pe.b+"px":_8af.bottom};dojo.mixin(_8ac,_8c0);dojo.mixin(_8ad,_8c0);_8ac.left=pe.l+"px";_8ad.right=pe.r+"px";_8ab.top=pe.t+"px";_8ae.bottom=pe.b+"px";if(_8a6){_8ab.left=_8ae.left=_8a9+_8ba+pe.l+"px";_8ab.right=_8ae.right=_8aa+_8bb+pe.r+"px";}else{_8ab.left=_8ae.left=pe.l+"px";_8ab.right=_8ae.right=pe.r+"px";}var _8c1=this._borderBox.h-pe.t-pe.b,_8c2=_8c1-(_8a7+_8b9+_8a8+_8bc),_8c3=_8a6?_8c1:_8c2;var _8c4=this._borderBox.w-pe.l-pe.r,_8c5=_8c4-(_8a9+_8ba+_8aa+_8bb),_8c6=_8a6?_8c5:_8c4;var dim={top:{w:_8c6,h:_8a7},bottom:{w:_8c6,h:_8a8},left:{w:_8a9,h:_8c3},right:{w:_8aa,h:_8c3},center:{h:_8c2,w:_8c5}};var _8c8=dojo.isIE<8||(dojo.isIE&&dojo.isQuirks)||dojo.some(this.getChildren(),function(_8c9){return _8c9.domNode.tagName=="TEXTAREA"||_8c9.domNode.tagName=="INPUT";});if(_8c8){var _8ca=function(_8cb,_8cc,_8cd){if(_8cb){(_8cb.resize?_8cb.resize(_8cc,_8cd):dojo.marginBox(_8cb.domNode,_8cc));}};if(_8b6){_8b6.style.height=_8c3;}if(_8b7){_8b7.style.height=_8c3;}_8ca(this._leftWidget,{h:_8c3},dim.left);_8ca(this._rightWidget,{h:_8c3},dim.right);if(_8b4){_8b4.style.width=_8c6;}if(_8b5){_8b5.style.width=_8c6;}_8ca(this._topWidget,{w:_8c6},dim.top);_8ca(this._bottomWidget,{w:_8c6},dim.bottom);_8ca(this._centerWidget,dim.center);}else{var _8ce={};if(_8a5){_8ce[_8a5]=_8ce.center=true;if(/top|bottom/.test(_8a5)&&this.design!="sidebar"){_8ce.left=_8ce.right=true;}else{if(/left|right/.test(_8a5)&&this.design=="sidebar"){_8ce.top=_8ce.bottom=true;}}}dojo.forEach(this.getChildren(),function(_8cf){if(_8cf.resize&&(!_8a5||_8cf.region in _8ce)){_8cf.resize(null,dim[_8cf.region]);}},this);}},destroy:function(){for(var _8d0 in this._splitters){var _8d1=this._splitters[_8d0];dijit.byNode(_8d1).destroy();dojo.destroy(_8d1);}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 _8d2=dojo.cookie(this._cookieName);if(_8d2){this.child.domNode.style[this.horizontal?"height":"width"]=_8d2;}}},_computeMaxSize:function(){var dim=this.horizontal?"h":"w",_8d4=this.container._splitterThickness[this.region];var _8d5=dojo.contentBox(this.container.domNode)[dim]-(this.oppNode?dojo.marginBox(this.oppNode)[dim]:0)-20-_8d4*2;this._maxSize=Math.min(this.child.maxSize,_8d5);},_startDrag:function(e){if(this.child.domNode._recalc){this._computeMaxSize();this.child.domNode._recalc=false;}if(!this.cover){this.cover=dojo.doc.createElement("div");dojo.addClass(this.cover,"dijitSplitterCover");dojo.place(this.cover,this.child.domNode,"after");}dojo.addClass(this.cover,"dijitSplitterCoverActive");if(this.fake){dojo.destroy(this.fake);}if(!(this._resize=this.live)){(this.fake=this.domNode.cloneNode(true)).removeAttribute("id");dojo.addClass(this.domNode,"dijitSplitterShadow");dojo.place(this.fake,this.domNode,"after");}dojo.addClass(this.domNode,"dijitSplitterActive");var _8d7=this._factor,max=this._maxSize,min=this._minSize||20,_8da=this.horizontal,axis=_8da?"pageY":"pageX",_8dc=e[axis],_8dd=this.domNode.style,dim=_8da?"h":"w",_8df=dojo.marginBox(this.child.domNode)[dim],_8e0=this.region,_8e1=parseInt(this.domNode.style[_8e0],10),_8e2=this._resize,mb={},_8e4=this.child.domNode,_8e5=dojo.hitch(this.container,this.container._layoutChildren),de=dojo.doc.body;this._handlers=(this._handlers||[]).concat([dojo.connect(de,"onmousemove",this._drag=function(e,_8e8){var _8e9=e[axis]-_8dc,_8ea=_8d7*_8e9+_8df,_8eb=Math.max(Math.min(_8ea,max),min);if(_8e2||_8e8){mb[dim]=_8eb;dojo.marginBox(_8e4,mb);_8e5(_8e0);}_8dd[_8e0]=_8d7*_8e9+_8e1+(_8eb-_8ea)+"px";}),dojo.connect(dojo.doc,"ondragstart",dojo.stopEvent),dojo.connect(dojo.body(),"onselectstart",dojo.stopEvent),dojo.connect(de,"onmouseup",this,"_stopDrag")]);dojo.stopEvent(e);},_stopDrag:function(e){try{if(this.cover){dojo.removeClass(this.cover,"dijitSplitterCoverActive");}if(this.fake){dojo.destroy(this.fake);}dojo.removeClass(this.domNode,"dijitSplitterActive");dojo.removeClass(this.domNode,"dijitSplitterShadow");this._drag(e);this._drag(e,true);}finally{this._cleanupHandlers();if(this.oppNode){this.oppNode._recalc=true;}delete this._drag;}if(this.container.persist){dojo.cookie(this._cookieName,this.child.domNode.style[this.horizontal?"height":"width"],{expires:365});}},_cleanupHandlers:function(){dojo.forEach(this._handlers,dojo.disconnect);delete this._handlers;},_onKeyPress:function(e){if(this.child.domNode._recalc){this._computeMaxSize();this.child.domNode._recalc=false;}this._resize=true;var _8ee=this.horizontal;var tick=1;var dk=dojo.keys;switch(e.charOrCode){case _8ee?dk.UP_ARROW:dk.LEFT_ARROW:tick*=-1;case _8ee?dk.DOWN_ARROW:dk.RIGHT_ARROW:break;default:return;}var _8f1=dojo.marginBox(this.child.domNode)[_8ee?"h":"w"]+this._factor*tick;var mb={};mb[this.horizontal?"h":"w"]=Math.max(Math.min(_8f1,this._maxSize),this._minSize);dojo.marginBox(this.child.domNode,mb);if(this.oppNode){this.oppNode._recalc=true;}this.container._layoutChildren(this.region);dojo.stopEvent(e);},destroy:function(){this._cleanupHandlers();delete this.child;delete this.container;delete this.cover;delete this.fake;this.inherited(arguments);}});dojo.declare("dijit.layout._Gutter",[dijit._Widget,dijit._Templated],{templateString:"<div class=\"dijitGutter\" waiRole=\"presentation\"></div>",postCreate:function(){this.horizontal=/top|bottom/.test(this.region);dojo.addClass(this.domNode,"dijitGutter"+(this.horizontal?"H":"V"));}});}if(!dojo._hasResource["dijit.layout.LayoutContainer"]){dojo._hasResource["dijit.layout.LayoutContainer"]=true;dojo.provide("dijit.layout.LayoutContainer");dojo.declare("dijit.layout.LayoutContainer",dijit.layout._LayoutWidget,{baseClass:"dijitLayoutContainer",constructor:function(){dojo.deprecated("dijit.layout.LayoutContainer is deprecated","use BorderContainer instead",2);},layout:function(){dijit.layout.layoutChildren(this.domNode,this._contentBox,this.getChildren());},addChild:function(_8f3,_8f4){this.inherited(arguments);if(this._started){dijit.layout.layoutChildren(this.domNode,this._contentBox,this.getChildren());}},removeChild:function(_8f5){this.inherited(arguments);if(this._started){dijit.layout.layoutChildren(this.domNode,this._contentBox,this.getChildren());}}});dojo.extend(dijit._Widget,{layoutAlign:"none"});}if(!dojo._hasResource["dijit.layout.LinkPane"]){dojo._hasResource["dijit.layout.LinkPane"]=true;dojo.provide("dijit.layout.LinkPane");dojo.declare("dijit.layout.LinkPane",[dijit.layout.ContentPane,dijit._Templated],{templateString:"<div class=\"dijitLinkPane\" dojoAttachPoint=\"containerNode\"></div>",postMixInProperties:function(){if(this.srcNodeRef){this.title+=this.srcNodeRef.innerHTML;}this.inherited(arguments);},_fillContent:function(_8f6){}});}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 _8f7=dojo.doc.createElement("div");this.virtualSizer=_8f7;_8f7.style.position="relative";_8f7.style.zIndex=10;_8f7.className=this.isHorizontal?"dijitSplitContainerVirtualSizerH":"dijitSplitContainerVirtualSizerV";this.domNode.appendChild(_8f7);dojo.setSelectable(_8f7,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(_8f8,i,_8fa){this._setupChild(_8f8);if(i<_8fa.length-1){this._addSizer();}},this);if(this.persist){this._restoreState();}this.inherited(arguments);},_setupChild:function(_8fb){this.inherited(arguments);_8fb.domNode.style.position="absolute";dojo.addClass(_8fb.domNode,"dijitSplitPane");},_onSizerMouseDown:function(e){if(e.target.id){for(var i=0;i<this.sizers.length;i++){if(this.sizers[i].id==e.target.id){break;}}if(i<this.sizers.length){this.beginSizing(e,i);}}},_addSizer:function(_8fe){_8fe=_8fe===undefined?this.sizers.length:_8fe;var _8ff=dojo.doc.createElement("div");_8ff.id=dijit.getUniqueId("dijit_layout_SplitterContainer_Splitter");this.sizers.splice(_8fe,0,_8ff);this.domNode.appendChild(_8ff);_8ff.className=this.isHorizontal?"dijitSplitContainerSizerH":"dijitSplitContainerSizerV";var _900=dojo.doc.createElement("div");_900.className="thumb";_900.id=_8ff.id;_8ff.appendChild(_900);this.connect(_8ff,"onmousedown","_onSizerMouseDown");dojo.setSelectable(_8ff,false);},removeChild:function(_901){if(this.sizers.length){var i=dojo.indexOf(this.getChildren(),_901);if(i!=-1){if(i==this.sizers.length){i--;}dojo.destroy(this.sizers[i]);this.sizers.splice(i,1);}}this.inherited(arguments);if(this._started){this.layout();}},addChild:function(_903,_904){this.inherited(arguments);if(this._started){var _905=this.getChildren();if(_905.length>1){this._addSizer(_904);}this.layout();}},layout:function(){this.paneWidth=this._contentBox.w;this.paneHeight=this._contentBox.h;var _906=this.getChildren();if(!_906.length){return;}var _907=this.isHorizontal?this.paneWidth:this.paneHeight;if(_906.length>1){_907-=this.sizerWidth*(_906.length-1);}var _908=0;dojo.forEach(_906,function(_909){_908+=_909.sizeShare;});var _90a=_907/_908;var _90b=0;dojo.forEach(_906.slice(0,_906.length-1),function(_90c){var size=Math.round(_90a*_90c.sizeShare);_90c.sizeActual=size;_90b+=size;});_906[_906.length-1].sizeActual=_907-_90b;this._checkSizes();var pos=0;var size=_906[0].sizeActual;this._movePanel(_906[0],pos,size);_906[0].position=pos;pos+=size;if(!this.sizers){return;}dojo.some(_906.slice(1),function(_910,i){if(!this.sizers[i]){return true;}this._moveSlider(this.sizers[i],pos,this.sizerWidth);this.sizers[i].position=pos;pos+=this.sizerWidth;size=_910.sizeActual;this._movePanel(_910,pos,size);_910.position=pos;pos+=size;},this);},_movePanel:function(_912,pos,size){if(this.isHorizontal){_912.domNode.style.left=pos+"px";_912.domNode.style.top=0;var box={w:size,h:this.paneHeight};if(_912.resize){_912.resize(box);}else{dojo.marginBox(_912.domNode,box);}}else{_912.domNode.style.left=0;_912.domNode.style.top=pos+"px";var box={w:this.paneWidth,h:size};if(_912.resize){_912.resize(box);}else{dojo.marginBox(_912.domNode,box);}}},_moveSlider:function(_916,pos,size){if(this.isHorizontal){_916.style.left=pos+"px";_916.style.top=0;dojo.marginBox(_916,{w:size,h:this.paneHeight});}else{_916.style.left=0;_916.style.top=pos+"px";dojo.marginBox(_916,{w:this.paneWidth,h:size});}},_growPane:function(_919,pane){if(_919>0){if(pane.sizeActual>pane.sizeMin){if((pane.sizeActual-pane.sizeMin)>_919){pane.sizeActual=pane.sizeActual-_919;_919=0;}else{_919-=pane.sizeActual-pane.sizeMin;pane.sizeActual=pane.sizeMin;}}}return _919;},_checkSizes:function(){var _91b=0;var _91c=0;var _91d=this.getChildren();dojo.forEach(_91d,function(_91e){_91c+=_91e.sizeActual;_91b+=_91e.sizeMin;});if(_91b<=_91c){var _91f=0;dojo.forEach(_91d,function(_920){if(_920.sizeActual<_920.sizeMin){_91f+=_920.sizeMin-_920.sizeActual;_920.sizeActual=_920.sizeMin;}});if(_91f>0){var list=this.isDraggingLeft?_91d.reverse():_91d;dojo.forEach(list,function(_922){_91f=this._growPane(_91f,_922);},this);}}else{dojo.forEach(_91d,function(_923){_923.sizeActual=Math.round(_91c*(_923.sizeMin/_91b));});}},beginSizing:function(e,i){var _926=this.getChildren();this.paneBefore=_926[i];this.paneAfter=_926[i+1];this.isSizing=true;this.sizingSplitter=this.sizers[i];if(!this.cover){this.cover=dojo.create("div",{style:{position:"absolute",zIndex:5,top:0,left:0,width:"100%",height:"100%"}},this.domNode);}else{this.cover.style.zIndex=5;}this.sizingSplitter.style.zIndex=6;this.originPos=dojo.coords(_926[0].domNode,true);if(this.isHorizontal){var _927=e.layerX||e.offsetX||0;var _928=e.pageX;this.originPos=this.originPos.x;}else{var _927=e.layerY||e.offsetY||0;var _928=e.pageY;this.originPos=this.originPos.y;}this.startPoint=this.lastPoint=_928;this.screenToClientOffset=_928-_927;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 _931=this.paneBefore.position;var _932=this.paneAfter.position+this.paneAfter.sizeActual;this.paneBefore.sizeActual=pos-_931;this.paneAfter.position=pos+this.sizerWidth;this.paneAfter.sizeActual=_932-this.paneAfter.position;dojo.forEach(this.getChildren(),function(_933){_933.sizeShare=_933.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(_936,i){var _938=this._getCookieName(i);var _939=dojo.cookie(_938);if(_939){var pos=parseInt(_939);if(typeof pos=="number"){_936.sizeShare=pos;}}},this);},_saveState:function(){if(!this.persist){return;}dojo.forEach(this.getChildren(),function(_93b,i){dojo.cookie(this._getCookieName(i),_93b.sizeShare,{expires:365});},this);}});dojo.extend(dijit._Widget,{sizeMin:10,sizeShare:10});}if(!dojo._hasResource["dijit.layout.TabController"]){dojo._hasResource["dijit.layout.TabController"]=true;dojo.provide("dijit.layout.TabController");dojo.declare("dijit.layout.TabController",dijit.layout.StackController,{templateString:"<div wairole='tablist' dojoAttachEvent='onkeypress:onkeypress'></div>",tabPosition:"top",doLayout:true,buttonWidget:"dijit.layout._TabButton",_rectifyRtlTabList:function(){if(0>=this.tabPosition.indexOf("-h")){return;}if(!this.pane2button){return;}var _93d=0;for(var pane in this.pane2button){var ow=this.pane2button[pane].innerDiv.scrollWidth;_93d=Math.max(_93d,ow);}for(pane in this.pane2button){this.pane2button[pane].innerDiv.style.width=_93d+"px";}}});dojo.declare("dijit.layout._TabButton",dijit.layout._StackButton,{baseClass:"dijitTab",templateString:"<div waiRole=\"presentation\" dojoAttachEvent='onclick:onClick,onmouseenter:_onMouse,onmouseleave:_onMouse'>\n    <div waiRole=\"presentation\" class='dijitTabInnerDiv' dojoAttachPoint='innerDiv'>\n        <div waiRole=\"presentation\" class='dijitTabContent' dojoAttachPoint='tabContent'>\n\t        <span dojoAttachPoint='containerNode,focusNode' class='tabLabel'>${!label}</span><img class =\"dijitTabButtonSpacer\" src=\"${_blankGif}\" />\n\t        <span class=\"closeButton\" dojoAttachPoint='closeNode'\n\t        \t\tdojoAttachEvent='onclick: onClickCloseButton, onmouseenter: _onCloseButtonEnter, onmouseleave: _onCloseButtonLeave'>\n\t        \t<img src=\"${_blankGif}\" alt=\"\" dojoAttachPoint='closeIcon' class='closeImage' waiRole=\"presentation\"/>\n\t            <span dojoAttachPoint='closeText' class='closeText'>x</span>\n\t        </span>\n        </div>\n    </div>\n</div>\n",scrollOnFocus:false,postCreate:function(){if(this.closeButton){dojo.addClass(this.innerDiv,"dijitClosable");var _940=dojo.i18n.getLocalization("dijit","common");if(this.closeNode){dojo.attr(this.closeNode,"title",_940.itemClose);dojo.attr(this.closeIcon,"title",_940.itemClose);}}else{this.closeNode.style.display="none";}this.inherited(arguments);dojo.setSelectable(this.containerNode,false);},_onCloseButtonEnter:function(){dojo.addClass(this.closeNode,"closeButton-hover");},_onCloseButtonLeave:function(){dojo.removeClass(this.closeNode,"closeButton-hover");}});}if(!dojo._hasResource["dijit.layout.TabContainer"]){dojo._hasResource["dijit.layout.TabContainer"]=true;dojo.provide("dijit.layout.TabContainer");dojo.declare("dijit.layout.TabContainer",[dijit.layout.StackContainer,dijit._Templated],{tabPosition:"top",baseClass:"dijitTabContainer",tabStrip:false,nested:false,templateString:null,templateString:"<div class=\"dijitTabContainer\">\n\t<div dojoAttachPoint=\"tablistNode\"></div>\n\t<div dojoAttachPoint=\"tablistSpacer\" class=\"dijitTabSpacer ${baseClass}-spacer\"></div>\n\t<div class=\"dijitTabPaneWrapper ${baseClass}-container\" dojoAttachPoint=\"containerNode\"></div>\n</div>\n",_controllerWidget:"dijit.layout.TabController",postMixInProperties:function(){this.baseClass+=this.tabPosition.charAt(0).toUpperCase()+this.tabPosition.substr(1).replace(/-.*/,"");this.inherited(arguments);},postCreate:function(){this.inherited(arguments);var _941=dojo.getObject(this._controllerWidget);this.tablist=new _941({id:this.id+"_tablist",tabPosition:this.tabPosition,doLayout:this.doLayout,containerId:this.id,"class":this.baseClass+"-tabs"+(this.doLayout?"":" dijitTabNoLayout")},this.tablistNode);if(this.tabStrip){dojo.addClass(this.tablist.domNode,this.baseClass+"Strip");}if(!this.doLayout){dojo.addClass(this.domNode,"dijitTabContainerNoLayout");}if(this.nested){dojo.addClass(this.domNode,"dijitTabContainerNested");dojo.addClass(this.tablist.domNode,"dijitTabContainerTabListNested");dojo.addClass(this.tablistSpacer,"dijitTabContainerSpacerNested");dojo.addClass(this.containerNode,"dijitTabPaneWrapperNested");}},_setupChild:function(tab){dojo.addClass(tab.domNode,"dijitTabPane");this.inherited(arguments);return tab;},startup:function(){if(this._started){return;}this.tablist.startup();this.inherited(arguments);},layout:function(){if(!this.doLayout){return;}var _943=this.tabPosition.replace(/-h/,"");var _944=[{domNode:this.tablist.domNode,layoutAlign:_943},{domNode:this.tablistSpacer,layoutAlign:_943},{domNode:this.containerNode,layoutAlign:"client"}];dijit.layout.layoutChildren(this.domNode,this._contentBox,_944);this._containerContentBox=dijit.layout.marginBox2contentBox(this.containerNode,_944[2]);if(this.selectedChildWidget){this._showChild(this.selectedChildWidget);if(this.doLayout&&this.selectedChildWidget.resize){this.selectedChildWidget.resize(this._containerContentBox);}}},destroy:function(){if(this.tablist){this.tablist.destroy();}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.dijit-all"]){dojo._hasResource["dijit.dijit-all"]=true;console.warn("dijit-all may include much more code than your application actually requires. We strongly recommend that you investigate a custom build or the web build tool");dojo.provide("dijit.dijit-all");}dojo.i18n._preloadLocalizations("dijit.nls.dijit-all",["ROOT","ar","ca","cs","da","de","de-de","el","en","en-gb","en-us","es","es-es","fi","fi-fi","fr","fr-fr","he","he-il","hu","it","it-it","ja","ja-jp","ko","ko-kr","nl","nl-nl","no","pl","pt","pt-br","pt-pt","ru","sk","sl","sv","th","tr","xx","zh","zh-cn","zh-tw"]);
