/*
	Copyright (c) 2004-2007, The Dojo Foundation
	All Rights Reserved.

	Licensed under the Academic Free License version 2.1 or above OR the
	modified BSD license. For more information on Dojo licensing, see:

		http://dojotoolkit.org/book/dojo-book-0-9/introduction/licensing
*/

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

		http://dojotoolkit.org

	for documentation and information on getting the source.
*/

if(!dojo._hasResource["dojo.colors"]){dojo._hasResource["dojo.colors"]=true;dojo.provide("dojo.colors");(function(){var _1=function(m1,m2,h){if(h<0){++h;}if(h>1){--h;}var h6=6*h;if(h6<1){return m1+(m2-m1)*h6;}if(2*h<1){return m2;}if(3*h<2){return m1+(m2-m1)*(2/3-h)*6;}return m1;};dojo.colorFromRgb=function(_6,_7){var m=_6.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(m){var c=m[2].split(/\s*,\s*/),l=c.length,t=m[1];if((t=="rgb"&&l==3)||(t=="rgba"&&l==4)){var r=c[0];if(r.charAt(r.length-1)=="%"){var a=dojo.map(c,function(x){return parseFloat(x)*2.56;});if(l==4){a[3]=c[3];}return dojo.colorFromArray(a,_7);}return dojo.colorFromArray(c,_7);}if((t=="hsl"&&l==3)||(t=="hsla"&&l==4)){var H=((parseFloat(c[0])%360)+360)%360/360,S=parseFloat(c[1])/100,L=parseFloat(c[2])/100,m2=L<=0.5?L*(S+1):L+S-L*S,m1=2*L-m2,a=[_1(m1,m2,H+1/3)*256,_1(m1,m2,H)*256,_1(m1,m2,H-1/3)*256,1];if(l==4){a[3]=c[3];}return dojo.colorFromArray(a,_7);}}return null;};var _14=function(c,low,_17){c=Number(c);return isNaN(c)?_17:c<low?low:c>_17?_17:c;};dojo.Color.prototype.sanitize=function(){var t=this;t.r=Math.round(_14(t.r,0,255));t.g=Math.round(_14(t.g,0,255));t.b=Math.round(_14(t.b,0,255));t.a=_14(t.a,0,1);return this;};})();dojo.colors.makeGrey=function(g,a){return dojo.colorFromArray([g,g,g,a]);};dojo.Color.named=dojo.mixin({aliceblue:[240,248,255],antiquewhite:[250,235,215],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],blanchedalmond:[255,235,205],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],oldlace:[253,245,230],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],thistle:[216,191,216],tomato:[255,99,71],transparent:[0,0,0,0],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],whitesmoke:[245,245,245],yellowgreen:[154,205,50]},dojo.Color.named);}if(!dojo._hasResource["dojo.i18n"]){dojo._hasResource["dojo.i18n"]=true;dojo.provide("dojo.i18n");dojo.i18n.getLocalization=function(_1b,_1c,_1d){_1d=dojo.i18n.normalizeLocale(_1d);var _1e=_1d.split("-");var _1f=[_1b,"nls",_1c].join(".");var _20=dojo._loadedModules[_1f];if(_20){var _21;for(var i=_1e.length;i>0;i--){var loc=_1e.slice(0,i).join("_");if(_20[loc]){_21=_20[loc];break;}}if(!_21){_21=_20.ROOT;}if(_21){var _24=function(){};_24.prototype=_21;return new _24();}}throw new Error("Bundle not found: "+_1c+" in "+_1b+" , locale="+_1d);};dojo.i18n.normalizeLocale=function(_25){var _26=_25?_25.toLowerCase():dojo.locale;if(_26=="root"){_26="ROOT";}return _26;};dojo.i18n._requireLocalization=function(_27,_28,_29,_2a){var _2b=dojo.i18n.normalizeLocale(_29);var _2c=[_27,"nls",_28].join(".");var _2d="";if(_2a){var _2e=_2a.split(",");for(var i=0;i<_2e.length;i++){if(_2b.indexOf(_2e[i])==0){if(_2e[i].length>_2d.length){_2d=_2e[i];}}}if(!_2d){_2d="ROOT";}}var _30=_2a?_2d:_2b;var _31=dojo._loadedModules[_2c];var _32=null;if(_31){if(djConfig.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=djConfig.extraLocale;if(_41){if(!_41 instanceof Array){_41=[_41];}var req=dojo.i18n._requireLocalization;dojo.i18n._requireLocalization=function(m,b,_45,_46){req(m,b,_45,_46);if(_45){return;}for(var i=0;i<_41.length;i++){req(m,b,_41[i],_46);}};}})();dojo.i18n._searchLocalePath=function(_48,_49,_4a){_48=dojo.i18n.normalizeLocale(_48);var _4b=_48.split("-");var _4c=[];for(var i=_4b.length;i>0;i--){_4c.push(_4b.slice(0,i).join("-"));}_4c.push(false);if(_49){_4c.reverse();}for(var j=_4c.length-1;j>=0;j--){var loc=_4c[j]||"ROOT";var _50=_4a(loc);if(_50){break;}}};dojo.i18n._preloadLocalizations=function(_51,_52){function preload(_53){_53=dojo.i18n.normalizeLocale(_53);dojo.i18n._searchLocalePath(_53,true,function(loc){for(var i=0;i<_52.length;i++){if(_52[i]==loc){dojo["require"](_51+"_"+loc);return true;}}return false;});};preload();var _56=djConfig.extraLocale||[];for(var i=0;i<_56.length;i++){preload(_56[i]);}};}if(!dojo._hasResource["dijit.ColorPalette"]){dojo._hasResource["dijit.ColorPalette"]=true;dojo.provide("dijit.ColorPalette");dojo.declare("dijit.ColorPalette",[dijit._Widget,dijit._Templated],{defaultTimeout:500,timeoutChangeRate:0.9,palette:"7x10",value:null,_currentFocus:0,_xDim:null,_yDim:null,_palettes:{"7x10":[["white","seashell","cornsilk","lemonchiffon","lightyellow","palegreen","paleturquoise","lightcyan","lavender","plum"],["lightgray","pink","bisque","moccasin","khaki","lightgreen","lightseagreen","lightskyblue","cornflowerblue","violet"],["silver","lightcoral","sandybrown","orange","palegoldenrod","chartreuse","mediumturquoise","skyblue","mediumslateblue","orchid"],["gray","red","orangered","darkorange","yellow","limegreen","darkseagreen","royalblue","slateblue","mediumorchid"],["dimgray","crimson","chocolate","coral","gold","forestgreen","seagreen","blue","blueviolet","darkorchid"],["darkslategray","firebrick","saddlebrown","sienna","olive","green","darkcyan","mediumblue","darkslateblue","darkmagenta"],["black","darkred","maroon","brown","darkolivegreen","darkgreen","midnightblue","navy","indigo","purple"]],"3x4":[["white","lime","green","blue"],["silver","yellow","fuchsia","navy"],["gray","red","purple","black"]]},_imagePaths:{"7x10":dojo.moduleUrl("dijit","templates/colors7x10.png"),"3x4":dojo.moduleUrl("dijit","templates/colors3x4.png")},_paletteCoords:{"leftOffset":4,"topOffset":4,"cWidth":20,"cHeight":20},templateString:"<div class=\"dijitInline dijitColorPalette\">\n\t<div class=\"dijitColorPaletteInner\" dojoAttachPoint=\"divNode\" waiRole=\"grid\" tabIndex=\"-1\">\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"}},postCreate:function(){dojo.mixin(this.divNode.style,this._paletteDims[this.palette]);this.imageNode.setAttribute("src",this._imagePaths[this.palette]);var _58=this._palettes[this.palette];this.domNode.style.position="relative";this._highlightNodes=[];this.colorNames=dojo.i18n.getLocalization("dojo","colors",this.lang);var url=dojo.moduleUrl("dijit","templates/blank.gif");var _5a=new dojo.Color(),_5b=this._paletteCoords;for(var row=0;row<_58.length;row++){for(var col=0;col<_58[row].length;col++){var _5e=document.createElement("img");_5e.src=url;dojo.addClass(_5e,"dijitPaletteImg");var _5f=_58[row][col],_60=_5a.setColor(dojo.Color.named[_5f]);_5e.alt=this.colorNames[_5f];_5e.color=_60.toHex();var _61=_5e.style;_61.color=_61.backgroundColor=_5e.color;dojo.forEach(["Dijitclick","MouseOut","MouseOver","Blur","Focus"],function(_62){this.connect(_5e,"on"+_62.toLowerCase(),"_onColor"+_62);},this);this.divNode.appendChild(_5e);_61.top=_5b.topOffset+(row*_5b.cHeight)+"px";_61.left=_5b.leftOffset+(col*_5b.cWidth)+"px";_5e.setAttribute("tabIndex","-1");_5e.title=this.colorNames[_5f];dijit.setWaiRole(_5e,"gridcell");_5e.index=this._highlightNodes.length;this._highlightNodes.push(_5e);}}this._highlightNodes[this._currentFocus].tabIndex=0;this._xDim=_58[0].length;this._yDim=_58.length;var _63={UP_ARROW:-this._xDim,DOWN_ARROW:this._xDim,RIGHT_ARROW:1,LEFT_ARROW:-1};for(var key in _63){this._connects.push(dijit.typematic.addKeyListener(this.domNode,{keyCode:dojo.keys[key],ctrlKey:false,altKey:false,shiftKey:false},this,function(){var _65=_63[key];return function(_66){this._navigateByKey(_65,_66);};}(),this.timeoutChangeRate,this.defaultTimeout));}},focus:function(){dijit.focus(this._highlightNodes[this._currentFocus]);},onChange:function(_67){},_onColorDijitclick:function(evt){var _69=evt.currentTarget;if(this._currentFocus!=_69.index){this._currentFocus=_69.index;dijit.focus(_69);}this._selectColor(_69);dojo.stopEvent(evt);},_onColorMouseOut:function(evt){dojo.removeClass(evt.currentTarget,"dijitPaletteImgHighlight");},_onColorMouseOver:function(evt){var _6c=evt.currentTarget;_6c.tabIndex=0;_6c.focus();},_onColorBlur:function(evt){dojo.removeClass(evt.currentTarget,"dijitPaletteImgHighlight");evt.currentTarget.tabIndex=-1;this._currentFocus=0;this._highlightNodes[0].tabIndex=0;},_onColorFocus:function(evt){if(this._currentFocus!=evt.currentTarget.index){this._highlightNodes[this._currentFocus].tabIndex=-1;}this._currentFocus=evt.currentTarget.index;dojo.addClass(evt.currentTarget,"dijitPaletteImgHighlight");},_selectColor:function(_6f){this.onChange(this.value=_6f.color);},_navigateByKey:function(_70,_71){if(_71==-1){return;}var _72=this._currentFocus+_70;if(_72<this._highlightNodes.length&&_72>-1){var _73=this._highlightNodes[_72];_73.tabIndex=0;_73.focus();}}});}if(!dojo._hasResource["dijit.Declaration"]){dojo._hasResource["dijit.Declaration"]=true;dojo.provide("dijit.Declaration");dojo.declare("dijit.Declaration",dijit._Widget,{_noScript:true,widgetClass:"",replaceVars:true,defaults:null,mixins:[],buildRendering:function(){var src=this.srcNodeRef.parentNode.removeChild(this.srcNodeRef);var _75=dojo.query("> script[type='dojo/method'][event='preamble']",src).orphan();var _76=dojo.query("> script[type^='dojo/']",src).orphan();var _77=src.nodeName;var _78=this.defaults||{};this.mixins=this.mixins.length?dojo.map(this.mixins,function(_79){return dojo.getObject(_79);}):[dijit._Widget,dijit._Templated];if(_75.length){_78.preamble=dojo.parser._functionFromScript(_75[0]);}var _7a=dojo.map(_76,function(s){var evt=s.getAttribute("event")||"postscript";return {event:evt,func:dojo.parser._functionFromScript(s)};});this.mixins.push(function(){dojo.forEach(_7a,function(s){dojo.connect(this,s.event,this,s.func);},this);});_78.widgetsInTemplate=true;_78._skipNodeCache=true;_78.templateString="<"+_77+" class='"+src.className+"' dojoAttachPoint='"+(src.getAttribute("dojoAttachPoint")||"")+"' dojoAttachEvent='"+(src.getAttribute("dojoAttachEvent")||"")+"' >"+src.innerHTML.replace(/\%7B/g,"{").replace(/\%7D/g,"}")+"</"+_77+">";dojo.query("[dojoType]",src).forEach(function(_7e){_7e.removeAttribute("dojoType");});dojo.declare(this.widgetClass,this.mixins,_78);}});}if(!dojo._hasResource["dojo.dnd.common"]){dojo._hasResource["dojo.dnd.common"]=true;dojo.provide("dojo.dnd.common");dojo.dnd._copyKey=navigator.appVersion.indexOf("Macintosh")<0?"ctrlKey":"metaKey";dojo.dnd.getCopyKeyState=function(e){return e[dojo.dnd._copyKey];};dojo.dnd._uniqueId=0;dojo.dnd.getUniqueId=function(){var id;do{id="dojoUnique"+(++dojo.dnd._uniqueId);}while(dojo.byId(id));return id;};dojo.dnd._empty={};dojo.dnd.isFormElement=function(e){var t=e.target;if(t.nodeType==3){t=t.parentNode;}return " button textarea input select option ".indexOf(" "+t.tagName.toLowerCase()+" ")>=0;};}if(!dojo._hasResource["dojo.dnd.autoscroll"]){dojo._hasResource["dojo.dnd.autoscroll"]=true;dojo.provide("dojo.dnd.autoscroll");dojo.dnd.getViewport=function(){var d=dojo.doc,dd=d.documentElement,w=window,b=dojo.body();if(dojo.isMozilla){return {w:dd.clientWidth,h:w.innerHeight};}else{if(!dojo.isOpera&&w.innerWidth){return {w:w.innerWidth,h:w.innerHeight};}else{if(!dojo.isOpera&&dd&&dd.clientWidth){return {w:dd.clientWidth,h:dd.clientHeight};}else{if(b.clientWidth){return {w:b.clientWidth,h:b.clientHeight};}}}}return null;};dojo.dnd.V_TRIGGER_AUTOSCROLL=32;dojo.dnd.H_TRIGGER_AUTOSCROLL=32;dojo.dnd.V_AUTOSCROLL_VALUE=16;dojo.dnd.H_AUTOSCROLL_VALUE=16;dojo.dnd.autoScroll=function(e){var v=dojo.dnd.getViewport(),dx=0,dy=0;if(e.clientX<dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=-dojo.dnd.H_AUTOSCROLL_VALUE;}else{if(e.clientX>v.w-dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=dojo.dnd.H_AUTOSCROLL_VALUE;}}if(e.clientY<dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=-dojo.dnd.V_AUTOSCROLL_VALUE;}else{if(e.clientY>v.h-dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=dojo.dnd.V_AUTOSCROLL_VALUE;}}window.scrollBy(dx,dy);};dojo.dnd._validNodes={"div":1,"p":1,"td":1};dojo.dnd._validOverflow={"auto":1,"scroll":1};dojo.dnd.autoScrollNodes=function(e){for(var n=e.target;n;){if(n.nodeType==1&&(n.tagName.toLowerCase() in dojo.dnd._validNodes)){var s=dojo.getComputedStyle(n);if(s.overflow.toLowerCase() in dojo.dnd._validOverflow){var b=dojo._getContentBox(n,s),t=dojo._abs(n,true);b.l+=t.x+n.scrollLeft;b.t+=t.y+n.scrollTop;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-b.l,ry=e.pageY-b.t,dx=0,dy=0;if(rx>0&&rx<b.w){if(rx<w){dx=-dojo.dnd.H_AUTOSCROLL_VALUE;}else{if(rx>b.w-w){dx=dojo.dnd.H_AUTOSCROLL_VALUE;}}}if(ry>0&&ry<b.h){if(ry<h){dy=-dojo.dnd.V_AUTOSCROLL_VALUE;}else{if(ry>b.h-h){dy=dojo.dnd.V_AUTOSCROLL_VALUE;}}}var _96=n.scrollLeft,_97=n.scrollTop;n.scrollLeft=n.scrollLeft+dx;n.scrollTop=n.scrollTop+dy;if(_96!=n.scrollLeft||_97!=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(_98,e,_9a){this.node=dojo.byId(_98);this.marginBox={l:e.pageX,t:e.pageY};this.mouseButton=e.button;var h=this.host=_9a,d=_98.ownerDocument,_9d=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,"onselectstart",dojo,"stopEvent"),_9d];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});},onMouseUp:function(e){if(this.mouseButton==e.button){this.destroy();}},onFirstMove:function(){this.node.style.position="absolute";var m=dojo.marginBox(this.node);m.l-=this.marginBox.l;m.t-=this.marginBox.t;this.marginBox=m;this.host.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=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(_a3,_a4){this.node=dojo.byId(_a3);if(!_a4){_a4={};}this.handle=_a4.handle?dojo.byId(_a4.handle):null;if(!this.handle){this.handle=this.node;}this.delay=_a4.delay>0?_a4.delay:0;this.skip=_a4.skip;this.mover=_a4.mover?_a4.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(_a5,_a6){return new dojo.dnd.Moveable(_a6,_a5);},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"));this.events.push(dojo.connect(this.handle,"onmouseup",this,"onMouseUp"));this._lastX=e.pageX;this._lastY=e.pageY;}else{new this.mover(this.node,e,this);}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);new this.mover(this.node,e,this);}dojo.stopEvent(e);},onMouseUp:function(e){dojo.disconnect(this.events.pop());dojo.disconnect(this.events.pop());},onSelectStart:function(e){if(!this.skip||!dojo.dnd.isFormElement(e)){dojo.stopEvent(e);}},onMoveStart:function(_ab){dojo.publish("/dnd/move/start",[_ab]);dojo.addClass(dojo.body(),"dojoMove");dojo.addClass(this.node,"dojoMoveItem");},onMoveStop:function(_ac){dojo.publish("/dnd/move/stop",[_ac]);dojo.removeClass(dojo.body(),"dojoMove");dojo.removeClass(this.node,"dojoMoveItem");},onFirstMove:function(_ad){},onMove:function(_ae,_af){this.onMoving(_ae,_af);dojo.marginBox(_ae.node,_af);this.onMoved(_ae,_af);},onMoving:function(_b0,_b1){},onMoved:function(_b2,_b3){}});}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(_b4,_b5){return new dojo.dnd.move.constrainedMoveable(_b5,_b4);},constructor:function(_b6,_b7){if(!_b7){_b7={};}this.constraints=_b7.constraints;this.within=_b7.within;},onFirstMove:function(_b8){var c=this.constraintBox=this.constraints.call(this,_b8),m=_b8.marginBox;c.r=c.l+c.w-(this.within?m.w:0);c.b=c.t+c.h-(this.within?m.h:0);},onMove:function(_bb,_bc){var c=this.constraintBox;_bc.l=_bc.l<c.l?c.l:c.r<_bc.l?c.r:_bc.l;_bc.t=_bc.t<c.t?c.t:c.b<_bc.t?c.b:_bc.t;dojo.marginBox(_bb.node,_bc);}});dojo.declare("dojo.dnd.move.boxConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{box:{},markupFactory:function(_be,_bf){return new dojo.dnd.move.boxConstrainedMoveable(_bf,_be);},constructor:function(_c0,_c1){var box=_c1&&_c1.box;this.constraints=function(){return box;};}});dojo.declare("dojo.dnd.move.parentConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(_c3,_c4){return new dojo.dnd.move.parentConstrainedMoveable(_c4,_c3);},constructor:function(_c5,_c6){var _c7=_c6&&_c6.area;this.constraints=function(){var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);if(_c7=="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(_c7=="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(_c7=="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,_cd){var _ce=function(_cf,e,_d1){dojo.dnd.Mover.call(this,_cf,e,_d1);};dojo.extend(_ce,dojo.dnd.Mover.prototype);dojo.extend(_ce,{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),m=this.marginBox;c.r=c.l+c.w-(_cd?m.w:0);c.b=c.t+c.h-(_cd?m.h:0);}});return _ce;};dojo.dnd.move.boxConstrainedMover=function(box,_da){return dojo.dnd.move.constrainedMover(function(){return box;},_da);};dojo.dnd.move.parentConstrainedMover=function(_db,_dc){var fun=function(){var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);if(_db=="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(_db=="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(_db=="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,_dc);};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.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");dojo.provide("dojo.fx.Toggler");dojo.fx.chain=function(_e2){var _e3=_e2.shift();var _e4=_e3;dojo.forEach(_e2,function(_e5){dojo.connect(_e4,"onEnd",_e5,"play");_e4=_e5;});return _e3;};dojo.fx.combine=function(_e6){var ctr=new dojo._Animation({curve:[0,1]});if(!_e6.length){return ctr;}ctr.duration=_e6[0].duration;dojo.forEach(_e6,function(_e8){dojo.forEach(["play","pause","stop"],function(e){if(_e8[e]){dojo.connect(ctr,e,_e8,e);}});});return ctr;};dojo.declare("dojo.fx.Toggler",null,{constructor:function(_ea){var _t=this;dojo.mixin(_t,_ea);_t.node=_ea.node;_t._showArgs=dojo.mixin({},_ea);_t._showArgs.node=_t.node;_t._showArgs.duration=_t.showDuration;_t.showAnim=_t.showFunc(_t._showArgs);_t._hideArgs=dojo.mixin({},_ea);_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(_ec){return this.showAnim.play(_ec||0);},hide:function(_ed){return this.hideAnim.play(_ed||0);}});dojo.fx.wipeIn=function(_ee){_ee.node=dojo.byId(_ee.node);var _ef=_ee.node,s=_ef.style;var _f1=dojo.animateProperty(dojo.mixin({properties:{height:{start:function(){s.overflow="hidden";if(s.visibility=="hidden"||s.display=="none"){s.height="1px";s.display="";s.visibility="";return 1;}else{var _f2=dojo.style(_ef,"height");return Math.max(_f2,1);}},end:function(){return _ef.scrollHeight;}}}},_ee));dojo.connect(_f1,"onEnd",function(){s.height="auto";});return _f1;};dojo.fx.wipeOut=function(_f3){var _f4=_f3.node=dojo.byId(_f3.node);var s=_f4.style;var _f6=dojo.animateProperty(dojo.mixin({properties:{height:{end:1}}},_f3));dojo.connect(_f6,"beforeBegin",function(){s.overflow="hidden";s.display="";});dojo.connect(_f6,"onEnd",function(){s.height="auto";s.display="none";});return _f6;};dojo.fx.slideTo=function(_f7){var _f8=(_f7.node=dojo.byId(_f7.node));var top=null;var _fa=null;var _fb=(function(n){return function(){var cs=dojo.getComputedStyle(n);var pos=cs.position;top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);_fa=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);if(pos!="absolute"&&pos!="relative"){var ret=dojo.coords(n,true);top=ret.y;_fa=ret.x;n.style.position="absolute";n.style.top=top+"px";n.style.left=_fa+"px";}};})(_f8);_fb();var anim=dojo.animateProperty(dojo.mixin({properties:{top:{end:_f7.top||0},left:{end:_f7.left||0}}},_f7));dojo.connect(anim,"beforeBegin",anim,_fb);return anim;};}if(!dojo._hasResource["dijit.layout.ContentPane"]){dojo._hasResource["dijit.layout.ContentPane"]=true;dojo.provide("dijit.layout.ContentPane");dojo.declare("dijit.layout.ContentPane",dijit._Widget,{href:"",extractContent:false,parseOnLoad:true,preventCache:false,preload:false,refreshOnShow:false,loadingMessage:"<span class='dijitContentPaneLoading'>${loadingState}</span>",errorMessage:"<span class='dijitContentPaneError'>${errorState}</span>",isLoaded:false,"class":"dijitContentPane",postCreate:function(){this.domNode.title="";if(this.preload){this._loadCheck();}var _101=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_101);this.errorMessage=dojo.string.substitute(this.errorMessage,_101);dojo.addClass(this.domNode,this["class"]);},startup:function(){if(this._started){return;}this._checkIfSingleChild();if(this._singleChild){this._singleChild.startup();}this._loadCheck();this._started=true;},_checkIfSingleChild:function(){var _102=dojo.query(">",this.containerNode||this.domNode),_103=_102.filter("[widgetId]");if(_102.length==1&&_103.length==1){this.isContainer=true;this._singleChild=dijit.byNode(_103[0]);}else{delete this.isContainer;delete this._singleChild;}},refresh:function(){return this._prepareLoad(true);},setHref:function(href){this.href=href;return this._prepareLoad();},setContent:function(data){if(!this._isDownloaded){this.href="";this._onUnloadHandler();}this._setContent(data||"");this._isDownloaded=false;if(this.parseOnLoad){this._createSubWidgets();}this._checkIfSingleChild();if(this._singleChild&&this._singleChild.resize){this._singleChild.resize(this._contentBox);}this._onLoadHandler();},cancel:function(){if(this._xhrDfd&&(this._xhrDfd.fired==-1)){this._xhrDfd.cancel();}delete this._xhrDfd;},destroy:function(){if(this._beingDestroyed){return;}this._onUnloadHandler();this._beingDestroyed=true;this.inherited("destroy",arguments);},resize:function(size){dojo.marginBox(this.domNode,size);var node=this.containerNode||this.domNode,mb=dojo.mixin(dojo.marginBox(node),size||{});this._contentBox=dijit.layout.marginBox2contentBox(node,mb);if(this._singleChild&&this._singleChild.resize){this._singleChild.resize(this._contentBox);}},_prepareLoad:function(_109){this.cancel();this.isLoaded=false;this._loadCheck(_109);},_loadCheck:function(_10a){var _10b=((this.open!==false)&&(this.domNode.style.display!="none"));if(this.href&&(_10a||(this.preload&&!this._xhrDfd)||(this.refreshOnShow&&_10b&&!this._xhrDfd)||(!this.isLoaded&&_10b&&!this._xhrDfd))){this._downloadExternalContent();}},_downloadExternalContent:function(){this._onUnloadHandler();this._setContent(this.onDownloadStart.call(this));var self=this;var _10d={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};if(dojo.isObject(this.ioArgs)){dojo.mixin(_10d,this.ioArgs);}var hand=this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_10d);hand.addCallback(function(html){try{self.onDownloadEnd.call(self);self._isDownloaded=true;self.setContent.call(self,html);}catch(err){self._onError.call(self,"Content",err);}delete self._xhrDfd;return html;});hand.addErrback(function(err){if(!hand.cancelled){self._onError.call(self,"Download",err);}delete self._xhrDfd;return err;});},_onLoadHandler:function(){this.isLoaded=true;try{this.onLoad.call(this);}catch(e){console.error("Error "+this.widgetId+" running custom onLoad code");}},_onUnloadHandler:function(){this.isLoaded=false;this.cancel();try{this.onUnload.call(this);}catch(e){console.error("Error "+this.widgetId+" running custom onUnload code");}},_setContent:function(cont){this.destroyDescendants();try{var node=this.containerNode||this.domNode;while(node.firstChild){dojo._destroyElement(node.firstChild);}if(typeof cont=="string"){if(this.extractContent){match=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(match){cont=match[1];}}node.innerHTML=cont;}else{if(cont.nodeType){node.appendChild(cont);}else{dojo.forEach(cont,function(n){node.appendChild(n.cloneNode(true));});}}}catch(e){var _114=this.onContentError(e);try{node.innerHTML=_114;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}}},_onError:function(type,err,_117){var _118=this["on"+type+"Error"].call(this,err);if(_117){console.error(_117,err);}else{if(_118){this._setContent.call(this,_118);}}},_createSubWidgets:function(){var _119=this.containerNode||this.domNode;try{dojo.parser.parse(_119,true);}catch(e){this._onError("Content",e,"Couldn't create widgets in "+this.id+(this.href?" from "+this.href:""));}},onLoad:function(e){},onUnload:function(e){},onDownloadStart:function(){return this.loadingMessage;},onContentError:function(_11c){},onDownloadError:function(_11d){return this.errorMessage;},onDownloadEnd:function(){}});}if(!dojo._hasResource["dijit.form.Form"]){dojo._hasResource["dijit.form.Form"]=true;dojo.provide("dijit.form.Form");dojo.declare("dijit.form._FormMixin",null,{action:"",method:"",enctype:"",name:"","accept-charset":"",accept:"",target:"",attributeMap:dojo.mixin(dojo.clone(dijit._Widget.prototype.attributeMap),{action:"",method:"",enctype:"","accept-charset":"",accept:"",target:""}),execute:function(_11e){},onCancel:function(){},onExecute:function(){},templateString:"<form dojoAttachPoint='containerNode' dojoAttachEvent='onsubmit:_onSubmit' name='${name}' enctype='multipart/form-data'></form>",_onSubmit:function(e){dojo.stopEvent(e);this.onExecute();this.execute(this.getValues());},submit:function(){this.containerNode.submit();},setValues:function(obj){var map={};dojo.forEach(this.getDescendants(),function(_122){if(!_122.name){return;}var _123=map[_122.name]||(map[_122.name]=[]);_123.push(_122);});for(var name in map){var _125=map[name],_126=dojo.getObject(name,false,obj);if(!dojo.isArray(_126)){_126=[_126];}if(_125[0].setChecked){dojo.forEach(_125,function(w,i){w.setChecked(dojo.indexOf(_126,w.value)!=-1);});}else{dojo.forEach(_125,function(w,i){w.setValue(_126[i]);});}}},getValues:function(){var obj={};dojo.forEach(this.getDescendants(),function(_12c){var _12d=_12c.getValue?_12c.getValue():_12c.value;var name=_12c.name;if(!name){return;}if(_12c.setChecked){if(/Radio/.test(_12c.declaredClass)){if(_12c.checked){dojo.setObject(name,_12d,obj);}}else{var ary=dojo.getObject(name,false,obj);if(!ary){ary=[];dojo.setObject(name,ary,obj);}if(_12c.checked){ary.push(_12d);}}}else{dojo.setObject(name,_12d,obj);}});return obj;},isValid:function(){return dojo.every(this.getDescendants(),function(_130){return !_130.isValid||_130.isValid();});}});dojo.declare("dijit.form.Form",[dijit._Widget,dijit._Templated,dijit.form._FormMixin],null);}if(!dojo._hasResource["dijit.Dialog"]){dojo._hasResource["dijit.Dialog"]=true;dojo.provide("dijit.Dialog");dojo.declare("dijit.DialogUnderlay",[dijit._Widget,dijit._Templated],{templateString:"<div class=dijitDialogUnderlayWrapper id='${id}_underlay'><div class=dijitDialogUnderlay dojoAttachPoint='node'></div></div>",postCreate:function(){dojo.body().appendChild(this.domNode);this.bgIframe=new dijit.BackgroundIframe(this.domNode);},layout:function(){var _131=dijit.getViewport();var is=this.node.style,os=this.domNode.style;os.top=_131.t+"px";os.left=_131.l+"px";is.width=_131.w+"px";is.height=_131.h+"px";var _134=dijit.getViewport();if(_131.w!=_134.w){is.width=_134.w+"px";}if(_131.h!=_134.h){is.height=_134.h+"px";}},show:function(){this.domNode.style.display="block";this.layout();if(this.bgIframe.iframe){this.bgIframe.iframe.style.display="block";}this._resizeHandler=this.connect(window,"onresize","layout");},hide:function(){this.domNode.style.display="none";if(this.bgIframe.iframe){this.bgIframe.iframe.style.display="none";}this.disconnect(this._resizeHandler);},uninitialize:function(){if(this.bgIframe){this.bgIframe.destroy();}}});dojo.declare("dijit.Dialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin],{templateString:null,templateString:"<div class=\"dijitDialog\">\n\t<div dojoAttachPoint=\"titleBar\" class=\"dijitDialogTitleBar\" tabindex=\"0\" waiRole=\"dialog\">\n\t<span dojoAttachPoint=\"titleNode\" class=\"dijitDialogTitle\">${title}</span>\n\t<span dojoAttachPoint=\"closeButtonNode\" class=\"dijitDialogCloseIcon\" dojoAttachEvent=\"onclick: hide\">\n\t\t<span dojoAttachPoint=\"closeText\" class=\"closeText\">x</span>\n\t</span>\n\t</div>\n\t\t<div dojoAttachPoint=\"containerNode\" class=\"dijitDialogPaneContent\"></div>\n\t<span dojoAttachPoint=\"tabEnd\" dojoAttachEvent=\"onfocus:_cycleFocus\" tabindex=\"0\"></span>\n</div>\n",open:false,duration:400,_lastFocusItem:null,attributeMap:dojo.mixin(dojo.clone(dijit._Widget.prototype.attributeMap),{title:"titleBar"}),postCreate:function(){dojo.body().appendChild(this.domNode);this.inherited("postCreate",arguments);this.domNode.style.display="none";this.connect(this,"onExecute","hide");this.connect(this,"onCancel","hide");},onLoad:function(){this._position();this.inherited("onLoad",arguments);},_setup:function(){this._modalconnects=[];if(this.titleBar){this._moveable=new dojo.dnd.Moveable(this.domNode,{handle:this.titleBar});}this._underlay=new dijit.DialogUnderlay();var node=this.domNode;this._fadeIn=dojo.fx.combine([dojo.fadeIn({node:node,duration:this.duration}),dojo.fadeIn({node:this._underlay.domNode,duration:this.duration,onBegin:dojo.hitch(this._underlay,"show")})]);this._fadeOut=dojo.fx.combine([dojo.fadeOut({node:node,duration:this.duration,onEnd:function(){node.style.display="none";}}),dojo.fadeOut({node:this._underlay.domNode,duration:this.duration,onEnd:dojo.hitch(this._underlay,"hide")})]);},uninitialize:function(){if(this._underlay){this._underlay.destroy();}},_position:function(){if(dojo.hasClass(dojo.body(),"dojoMove")){return;}var _136=dijit.getViewport();var mb=dojo.marginBox(this.domNode);var _138=this.domNode.style;_138.left=Math.floor((_136.l+(_136.w-mb.w)/2))+"px";_138.top=Math.floor((_136.t+(_136.h-mb.h)/2))+"px";},_findLastFocus:function(evt){this._lastFocused=evt.target;},_cycleFocus:function(evt){if(!this._lastFocusItem){this._lastFocusItem=this._lastFocused;}this.titleBar.focus();},_onKey:function(evt){if(evt.keyCode){var node=evt.target;if(node==this.titleBar&&evt.shiftKey&&evt.keyCode==dojo.keys.TAB){if(this._lastFocusItem){this._lastFocusItem.focus();}dojo.stopEvent(evt);}else{while(node){if(node==this.domNode){if(evt.keyCode==dojo.keys.ESCAPE){this.hide();}else{return;}}node=node.parentNode;}if(evt.keyCode!=dojo.keys.TAB){dojo.stopEvent(evt);}else{if(!dojo.isOpera){try{this.titleBar.focus();}catch(e){}}}}}},show:function(){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(document.documentElement,"onkeypress",this,"_onKey"));var ev=typeof (document.ondeactivate)=="object"?"ondeactivate":"onblur";this._modalconnects.push(dojo.connect(this.containerNode,ev,this,"_findLastFocus"));dojo.style(this.domNode,"opacity",0);this.domNode.style.display="block";this.open=true;this._loadCheck();this._position();this._fadeIn.play();this._savedFocus=dijit.getFocus(this);setTimeout(dojo.hitch(this,function(){dijit.focus(this.titleBar);}),50);},hide:function(){if(!this._alreadyInitialized){return;}if(this._fadeIn.status()=="playing"){this._fadeIn.stop();}this._fadeOut.play();if(this._scrollConnected){this._scrollConnected=false;}dojo.forEach(this._modalconnects,dojo.disconnect);this._modalconnects=[];this.connect(this._fadeOut,"onEnd",dojo.hitch(this,function(){dijit.focus(this._savedFocus);}));this.open=false;},layout:function(){if(this.domNode.style.display=="block"){this._underlay.layout();this._position();}}});dojo.declare("dijit.TooltipDialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin],{title:"",_lastFocusItem:null,templateString:null,templateString:"<div class=\"dijitTooltipDialog\" >\n\t<div class=\"dijitTooltipContainer\">\n\t\t<div class =\"dijitTooltipContents dijitTooltipFocusNode\" dojoAttachPoint=\"containerNode\" tabindex=\"0\" waiRole=\"dialog\"></div>\n\t</div>\n\t<span dojoAttachPoint=\"tabEnd\" tabindex=\"0\" dojoAttachEvent=\"focus:_cycleFocus\"></span>\n\t<div class=\"dijitTooltipConnector\" ></div>\n</div>\n",postCreate:function(){this.inherited("postCreate",arguments);this.connect(this.containerNode,"onkeypress","_onKey");var ev=typeof (document.ondeactivate)=="object"?"ondeactivate":"onblur";this.connect(this.containerNode,ev,"_findLastFocus");this.containerNode.title=this.title;},orient:function(_13f){this.domNode.className="dijitTooltipDialog "+" dijitTooltipAB"+(_13f.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_13f.charAt(0)=="T"?"Below":"Above");},onOpen:function(pos){this.orient(pos.corner);this._loadCheck();this.containerNode.focus();},_onKey:function(evt){if(evt.keyCode==dojo.keys.ESCAPE){this.onCancel();}else{if(evt.target==this.containerNode&&evt.shiftKey&&evt.keyCode==dojo.keys.TAB){if(this._lastFocusItem){this._lastFocusItem.focus();}dojo.stopEvent(evt);}else{if(evt.keyCode==dojo.keys.TAB){evt.stopPropagation();}}}},_findLastFocus:function(evt){this._lastFocused=evt.target;},_cycleFocus:function(evt){if(!this._lastFocusItem){this._lastFocusItem=this._lastFocused;}this.containerNode.focus();}});}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 _144="text";var oSel;try{oSel=dojo.global.getSelection();}catch(e){}if(oSel&&oSel.rangeCount==1){var _146=oSel.getRangeAt(0);if((_146.startContainer==_146.endContainer)&&((_146.endOffset-_146.startOffset)==1)&&(_146.startContainer.nodeType!=3)){_144="control";}}return _144;}},getSelectedText:function(){if(dojo.doc["selection"]){if(dijit._editor.selection.getType()=="control"){return null;}return dojo.doc.selection.createRange().text;}else{var _147=dojo.global.getSelection();if(_147){return _147.toString();}}},getSelectedHtml:function(){if(dojo.doc["selection"]){if(dijit._editor.selection.getType()=="control"){return null;}return dojo.doc.selection.createRange().htmlText;}else{var _148=dojo.global.getSelection();if(_148&&_148.rangeCount){var frag=_148.getRangeAt(0).cloneContents();var div=document.createElement("div");div.appendChild(frag);return div.innerHTML;}return null;}},getSelectedElement:function(){if(this.getType()=="control"){if(dojo.doc["selection"]){var _14b=dojo.doc.selection.createRange();if(_14b&&_14b.item){return dojo.doc.selection.createRange().item(0);}}else{var _14c=dojo.global.getSelection();return _14c.anchorNode.childNodes[_14c.anchorOffset];}}},getParentElement:function(){if(this.getType()=="control"){var p=this.getSelectedElement();if(p){return p.parentNode;}}else{if(dojo.doc["selection"]){return dojo.doc.selection.createRange().parentElement();}else{var _14e=dojo.global.getSelection();if(_14e){var node=_14e.anchorNode;while(node&&(node.nodeType!=1)){node=node.parentNode;}return node;}}}},hasAncestorElement:function(_150){return (this.getAncestorElement.apply(this,arguments)!=null);},getAncestorElement:function(_151){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;},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(_15b,_15c){var _15d=dojo.global;var _15e=dojo.doc;_15b=dojo.byId(_15b);if(_15e.selection&&dojo.body().createTextRange){var _15f=_15b.ownerDocument.body.createTextRange();_15f.moveToElementText(_15b);if(!_15c){_15f.select();}}else{if(_15d["getSelection"]){var _160=_15d.getSelection();if(_160["setBaseAndExtent"]){_160.setBaseAndExtent(_15b,0,_15b,_15b.innerText.length-1);}else{if(_160["selectAllChildren"]){_160.selectAllChildren(_15b);}}}}},selectElement:function(_161,_162){var _163=dojo.doc;_161=dojo.byId(_161);if(_163.selection&&dojo.body().createTextRange){try{var _164=dojo.body().createControlRange();_164.addElement(_161);if(!_162){_164.select();}}catch(e){this.selectElementChildren(_161,_162);}}else{if(dojo.global["getSelection"]){var _165=dojo.global.getSelection();if(_165["removeAllRanges"]){var _164=_163.createRange();_164.selectNode(_161);_165.removeAllRanges();_165.addRange(_164);}}}}});}if(!dojo._hasResource["dijit._editor.RichText"]){dojo._hasResource["dijit._editor.RichText"]=true;dojo.provide("dijit._editor.RichText");if(!djConfig["useXDomain"]||djConfig["allowXdRichTextSave"]){if(dojo._postLoad){(function(){var _166=dojo.doc.createElement("textarea");_166.id="dijit._editor.RichText.savedContent";var s=_166.style;s.display="none";s.position="absolute";s.top="-100px";s.left="-100px";s.height="3px";s.width="3px";dojo.body().appendChild(_166);})();}else{try{dojo.doc.write("<textarea id=\"dijit._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(){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.onLoadDeferred=new dojo.Deferred();},inheritWidth:false,focusOnLoad:false,name:"",styleSheets:"",_content:"",height:"300px",minHeight:"1em",isClosed:true,isLoaded:false,_SEPARATOR:"@@**%%__RICHTEXTBOUNDRY__%%**@@",onLoadDeferred:null,postCreate:function(){dojo.publish("dijit._editor.RichText::init",[this]);this.open();this.setupDefaultShortcuts();},setupDefaultShortcuts:function(){var ctrl=this.KEY_CTRL;var exec=function(cmd,arg){return arguments.length==1?function(){this.execCommand(cmd);}:function(){this.execCommand(cmd,arg);};};this.addKeyHandler("b",ctrl,exec("bold"));this.addKeyHandler("i",ctrl,exec("italic"));this.addKeyHandler("u",ctrl,exec("underline"));this.addKeyHandler("a",ctrl,exec("selectall"));this.addKeyHandler("s",ctrl,function(){this.save(true);});this.addKeyHandler("1",ctrl,exec("formatblock","h1"));this.addKeyHandler("2",ctrl,exec("formatblock","h2"));this.addKeyHandler("3",ctrl,exec("formatblock","h3"));this.addKeyHandler("4",ctrl,exec("formatblock","h4"));this.addKeyHandler("\\",ctrl,exec("insertunorderedlist"));if(!dojo.isIE){this.addKeyHandler("Z",ctrl,exec("redo"));}},events:["onKeyPress","onKeyDown","onKeyUp","onClick"],captureEvents:[],_editorCommandsLocalized:false,_localizeEditorCommands:function(){if(this._editorCommandsLocalized){return;}this._editorCommandsLocalized=true;var _16c=["p","pre","address","h1","h2","h3","h4","h5","h6","ol","div","ul"];var _16d="",_16e,i=0;while((_16e=_16c[i++])){if(_16e.charAt(1)!="l"){_16d+="<"+_16e+"><span>content</span></"+_16e+">";}else{_16d+="<"+_16e+"><li>content</li></"+_16e+">";}}var div=document.createElement("div");div.style.position="absolute";div.style.left="-2000px";div.style.top="-2000px";document.body.appendChild(div);div.innerHTML=_16d;var node=div.firstChild;while(node){dijit._editor.selection.selectElement(node.firstChild);dojo.withGlobal(this.window,"selectElement",dijit._editor.selection,[node.firstChild]);var _172=node.tagName.toLowerCase();this._local2NativeFormatNames[_172]=document.queryCommandValue("formatblock");this._native2LocalFormatNames[this._local2NativeFormatNames[_172]]=_172;node=node.nextSibling;}document.body.removeChild(div);},open:function(_173){if((!this.onLoadDeferred)||(this.onLoadDeferred.fired>=0)){this.onLoadDeferred=new dojo.Deferred();}if(!this.isClosed){this.close();}dojo.publish("dijit._editor.RichText::open",[this]);this._content="";if((arguments.length==1)&&(_173["nodeName"])){this.domNode=_173;}if((this.domNode["nodeName"])&&(this.domNode.nodeName.toLowerCase()=="textarea")){this.textarea=this.domNode;this.name=this.textarea.name;var html=this._preFilterContent(this.textarea.value);this.domNode=dojo.doc.createElement("div");this.domNode.setAttribute("widgetId",this.id);this.textarea.removeAttribute("widgetId");this.domNode.cssText=this.textarea.cssText;this.domNode.className+=" "+this.textarea.className;dojo.place(this.domNode,this.textarea,"before");var _175=dojo.hitch(this,function(){with(this.textarea.style){display="block";position="absolute";left=top="-1000px";if(dojo.isIE){this.__overflow=overflow;overflow="hidden";}}});if(dojo.isIE){setTimeout(_175,10);}else{_175();}}else{var html=this._preFilterContent(this.getNodeChildrenHtml(this.domNode));this.domNode.innerHTML="";}if(html==""){html="&nbsp;";}var _176=dojo.contentBox(this.domNode);this._oldHeight=_176.h;this._oldWidth=_176.w;this.savedContent=html;if((this.domNode["nodeName"])&&(this.domNode.nodeName=="LI")){this.domNode.innerHTML=" <br>";}this.editingArea=dojo.doc.createElement("div");this.domNode.appendChild(this.editingArea);if(this.name!=""&&(!djConfig["useXDomain"]||djConfig["allowXdRichTextSave"])){var _177=dojo.byId("dijit._editor.RichText.savedContent");if(_177.value!=""){var _178=_177.value.split(this._SEPARATOR),i=0,dat;while((dat=_178[i++])){var data=dat.split(":");if(data[0]==this.name){html=data[1];_178.splice(i,1);break;}}}dojo.connect(window,"onbeforeunload",this,"_saveContent");}this.isClosed=false;if(dojo.isIE||dojo.isSafari||dojo.isOpera){var ifr=this.iframe=dojo.doc.createElement("iframe");ifr.src="javascript:void(0)";this.editorObject=ifr;ifr.style.border="none";ifr.style.width="100%";ifr.frameBorder=0;this.editingArea.appendChild(ifr);this.window=ifr.contentWindow;this.document=this.window.document;this.document.open();this.document.write(this._getIframeDocTxt(html));this.document.close();if(dojo.isIE>=7){if(this.height){ifr.style.height=this.height;}if(this.minHeight){ifr.style.minHeight=this.minHeight;}}else{ifr.style.height=this.height?this.height:this.minHeight;}if(dojo.isIE){this._localizeEditorCommands();}this.onLoad();}else{this._drawIframe(html);}if(this.domNode.nodeName=="LI"){this.domNode.lastChild.style.marginTop="-1.2em";}this.domNode.className+=" RichTextEditable";},_local2NativeFormatNames:{},_native2LocalFormatNames:{},_localizedIframeTitles:null,_getIframeDocTxt:function(html){var _cs=dojo.getComputedStyle(this.domNode);if(!this.height&&!dojo.isMoz){html="<div>"+html+"</div>";}var font=[_cs.fontWeight,_cs.fontSize,_cs.fontFamily].join(" ");var _180=_cs.lineHeight;if(_180.indexOf("px")>=0){_180=parseFloat(_180)/parseFloat(_cs.fontSize);}else{if(_180.indexOf("em")>=0){_180=parseFloat(_180);}else{_180="1.0";}}return [this.isLeftToRight()?"<html><head>":"<html dir='rtl'><head>",(dojo.isMoz?"<title>"+this._localizedIframeTitles.iframeEditTitle+"</title>":""),"<style>","body,html {","\tbackground:transparent;","\tfont:",font,";","\tpadding: 1em 0 0 0;","\tmargin: -1em 0 0 0;","\theight: 100%;","}","body{","\ttop:0px; left:0px; right:0px;",((this.height||dojo.isOpera)?"":"position: fixed;"),"\tmin-height:",this.minHeight,";","\tline-height:",_180,"}","p{ margin: 1em 0 !important; }",(this.height?"":"body,html{height:auto;overflow-y:hidden;/*for IE*/} body > div {overflow-x:auto;/*for FF to show vertical scrollbar*/}"),"li > ul:-moz-first-node, li > ol:-moz-first-node{ padding-top: 1.2em; } ","li{ min-height:1.2em; }","</style>",this._applyEditingAreaStyleSheets(),"</head><body>"+html+"</body></html>"].join("");},_drawIframe:function(html){if(!this.iframe){var ifr=this.iframe=dojo.doc.createElement("iframe");var ifrs=ifr.style;ifrs.border="none";ifrs.lineHeight="0";ifrs.verticalAlign="bottom";this.editorObject=this.iframe;this._localizedIframeTitles=dojo.i18n.getLocalization("dijit","Textarea");var _184=dojo.query("label[for=\""+this.id+"\"]");if(_184.length){this._localizedIframeTitles.iframeEditTitle=_184[0].innerHTML+" "+this._localizedIframeTitles.iframeEditTitle;}}this.iframe.style.width=this.inheritWidth?this._oldWidth:"100%";if(this.height){this.iframe.style.height=this.height;}else{this.iframe.height=this._oldHeight;}if(this.textarea){var _185=this.srcNodeRef;}else{var _185=dojo.doc.createElement("div");_185.style.display="none";_185.innerHTML=html;this.editingArea.appendChild(_185);}this.editingArea.appendChild(this.iframe);var _186=false;var _187=this.iframe.contentDocument;_187.open();_187.write(this._getIframeDocTxt(html));_187.close();var _188=dojo.hitch(this,function(){if(!_186){_186=true;}else{return;}if(!this.editNode){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;}}if(!this.document.body){throw "Error";}}catch(e){setTimeout(_188,500);_186=false;return;}dojo._destroyElement(_185);this.onLoad();}else{dojo._destroyElement(_185);this.editNode.innerHTML=html;this.onDisplayChanged();}this._preDomFilterContent(this.editNode);});_188();},_applyEditingAreaStyleSheets:function(){var _189=[];if(this.styleSheets){_189=this.styleSheets.split(";");this.styleSheets="";}_189=_189.concat(this.editingAreaStyleSheets);this.editingAreaStyleSheets=[];var text="",i=0,url;while((url=_189[i++])){var _18d=(new dojo._Url(dojo.global.location,url)).toString();this.editingAreaStyleSheets.push(_18d);text+="<link rel=\"stylesheet\" type=\"text/css\" href=\""+_18d+"\"/>";}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 _191=this.document.createElement("link");with(_191){rel="stylesheet";type="text/css";href=url;}head.appendChild(_191);}},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 _194=dojo.indexOf(this.editingAreaStyleSheets,url);if(_194==-1){return;}delete this.editingAreaStyleSheets[_194];dojo.withGlobal(this.window,"query",dojo,["link:[href=\""+url+"\"]"]).orphan();},disabled:true,_mozSettingProps:["styleWithCSS","insertBrOnReturn"],setDisabled:function(_195){if(dojo.isIE||dojo.isSafari||dojo.isOpera){if(dojo.isIE){this.editNode.unselectable="on";}this.editNode.contentEditable=!_195;if(dojo.isIE){var _196=this;setTimeout(function(){_196.editNode.unselectable="off";},0);}}else{if(_195){this._mozSettings=[false,this.blockNodeForEnter==="BR"];}this.document.designMode=(_195?"off":"on");if(!_195&&this._mozSettings){dojo.forEach(this._mozSettingProps,function(s,i){this.document.execCommand(s,false,this._mozSettings[i]);},this);}}this.disabled=_195;},_isResized:function(){return false;},onLoad:function(e){this.isLoaded=true;if(!this.window.__registeredWindow){this.window.__registeredWindow=true;dijit.registerWin(this.window);}if(this.height||dojo.isMoz){this.editNode=this.document.body;}else{this.editNode=this.document.body.firstChild;}try{this.setDisabled(false);}catch(e){var _19a=dojo.connect(this,"onClick",this,function(){this.setDisabled(false);dojo.disconnect(_19a);});}this._preDomFilterContent(this.editNode);var _19b=this.events.concat(this.captureEvents),i=0,et;while((et=_19b[i++])){this.connect(this.document,et.toLowerCase(),et);}if(!dojo.isIE){try{this.document.execCommand("styleWithCSS",false,false);}catch(e2){}}else{this.editNode.style.zoom=1;}if(this.focusOnLoad){setTimeout(dojo.hitch(this,"focus"),0);}this.onDisplayChanged(e);if(this.onLoadDeferred){this.onLoadDeferred.callback(true);}},onKeyDown:function(e){if(dojo.isIE){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){if(e.keyCode==dojo.keys.TAB&&!e.shiftKey&&!e.ctrlKey&&!e.altKey&&this.iframe){this.iframe.contentDocument.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);}}}}},onKeyUp:function(e){return;},KEY_CTRL:1,KEY_SHIFT:2,onKeyPress:function(e){var _1a1=e.ctrlKey&&!e.altKey?this.KEY_CTRL:0|e.shiftKey?this.KEY_SHIFT:0;var key=e.keyChar||e.keyCode;if(this._keyHandlers[key]){var _1a3=this._keyHandlers[key],i=0,h;while((h=_1a3[i++])){if(_1a1==h.modifiers){if(!h.handler.apply(this,arguments)){e.preventDefault();}break;}}}setTimeout(dojo.hitch(this,function(){this.onKeyPressed(e);}),1);},addKeyHandler:function(key,_1a7,_1a8){if(!dojo.isArray(this._keyHandlers[key])){this._keyHandlers[key]=[];}this._keyHandlers[key].push({modifiers:_1a7||0,handler:_1a8});},onKeyPressed:function(e){this.onDisplayChanged();},onClick:function(e){this.onDisplayChanged(e);},_onBlur:function(e){var _c=this.getValue(true);if(_c!=this.savedContent){this.onChange(_c);this.savedContent=_c;}if(dojo.isMoz&&this.iframe){this.iframe.contentDocument.title=this._localizedIframeTitles.iframeEditTitle;}},_initialFocus:true,_onFocus:function(e){if((dojo.isMoz)&&(this._initialFocus)){this._initialFocus=false;if(this.editNode.innerHTML.replace(/^\s+|\s+$/g,"")=="&nbsp;"){this.placeCursorAtStart();}}},blur:function(){if(this.iframe){this.window.blur();}else{if(this.editNode){this.editNode.blur();}}},focus:function(){if(this.iframe&&!dojo.isIE){dijit.focus(this.iframe);}else{if(this.editNode&&this.editNode.focus){dijit.focus(this.editNode);}else{console.debug("Have no idea how to focus into the editor!");}}},updateInterval:200,_updateTimer:null,onDisplayChanged:function(e){if(!this._updateTimer){if(this._updateTimer){clearTimeout(this._updateTimer);}this._updateTimer=setTimeout(dojo.hitch(this,this.onNormalizedDisplayChanged),this.updateInterval);}},onNormalizedDisplayChanged:function(){this._updateTimer=null;},onChange:function(_1af){},_normalizeCommand:function(cmd){var _1b1=cmd.toLowerCase();if(_1b1=="formatblock"){if(dojo.isSafari){_1b1="heading";}}else{if(_1b1=="hilitecolor"&&!dojo.isMoz){_1b1="backcolor";}}return _1b1;},queryCommandAvailable:function(_1b2){var ie=1;var _1b4=1<<1;var _1b5=1<<2;var _1b6=1<<3;var _1b7=1<<4;var _1b8=dojo.isSafari;function isSupportedBy(_1b9){return {ie:Boolean(_1b9&ie),mozilla:Boolean(_1b9&_1b4),safari:Boolean(_1b9&_1b5),safari420:Boolean(_1b9&_1b7),opera:Boolean(_1b9&_1b6)};};var _1ba=null;switch(_1b2.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":_1ba=isSupportedBy(_1b4|ie|_1b5|_1b6);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":_1ba=isSupportedBy(_1b4|ie|_1b6|_1b7);break;case "blockdirltr":case "blockdirrtl":case "dirltr":case "dirrtl":case "inlinedirltr":case "inlinedirrtl":_1ba=isSupportedBy(ie);break;case "cut":case "copy":case "paste":_1ba=isSupportedBy(ie|_1b4|_1b7);break;case "inserttable":_1ba=isSupportedBy(_1b4|ie);break;case "insertcell":case "insertcol":case "insertrow":case "deletecells":case "deletecols":case "deleterows":case "mergecells":case "splitcell":_1ba=isSupportedBy(ie|_1b4);break;default:return false;}return (dojo.isIE&&_1ba.ie)||(dojo.isMoz&&_1ba.mozilla)||(dojo.isSafari&&_1ba.safari)||(_1b8&&_1ba.safari420)||(dojo.isOpera&&_1ba.opera);},execCommand:function(_1bb,_1bc){var _1bd;this.focus();_1bb=this._normalizeCommand(_1bb);if(_1bc!=undefined){if(_1bb=="heading"){throw new Error("unimplemented");}else{if((_1bb=="formatblock")&&dojo.isIE){_1bc="<"+_1bc+">";}}}if(_1bb=="inserthtml"){_1bc=this._preFilterContent(_1bc);if(dojo.isIE){var _1be=this.document.selection.createRange();_1be.pasteHTML(_1bc);_1be.select();_1bd=true;}else{if(dojo.isMoz&&!_1bc.length){dojo.withGlobal(this.window,"remove",dijit._editor.selection);_1bd=true;}else{_1bd=this.document.execCommand(_1bb,false,_1bc);}}}else{if((_1bb=="unlink")&&(this.queryCommandEnabled("unlink"))&&(dojo.isMoz||dojo.isSafari)){var _1bf=this.window.getSelection();var a=dojo.withGlobal(this.window,"getAncestorElement",dijit._editor.selection,["a"]);dojo.withGlobal(this.window,"selectElement",dijit._editor.selection,[a]);_1bd=this.document.execCommand("unlink",false,null);}else{if((_1bb=="hilitecolor")&&(dojo.isMoz)){this.document.execCommand("styleWithCSS",false,true);_1bd=this.document.execCommand(_1bb,false,_1bc);this.document.execCommand("styleWithCSS",false,false);}else{if((dojo.isIE)&&((_1bb=="backcolor")||(_1bb=="forecolor"))){_1bc=arguments.length>1?_1bc:null;_1bd=this.document.execCommand(_1bb,false,_1bc);}else{_1bc=arguments.length>1?_1bc:null;if(_1bc||_1bb!="createlink"){_1bd=this.document.execCommand(_1bb,false,_1bc);}}}}}this.onDisplayChanged();return _1bd;},queryCommandEnabled:function(_1c1){if(this.disabled){return false;}_1c1=this._normalizeCommand(_1c1);if(dojo.isMoz||dojo.isSafari){if(_1c1=="unlink"){return dojo.withGlobal(this.window,"hasAncestorElement",dijit._editor.selection,["a"]);}else{if(_1c1=="inserttable"){return true;}}}if(dojo.isSafari){if(_1c1=="copy"){_1c1="cut";}else{if(_1c1=="paste"){return true;}}}var elem=(dojo.isIE)?this.document.selection.createRange():this.document;return elem.queryCommandEnabled(_1c1);},queryCommandState:function(_1c3){if(this.disabled){return false;}_1c3=this._normalizeCommand(_1c3);return this.document.queryCommandState(_1c3);},queryCommandValue:function(_1c4){if(this.disabled){return false;}_1c4=this._normalizeCommand(_1c4);if(dojo.isIE&&_1c4=="formatblock"){return this._local2NativeFormatNames[this.document.queryCommandValue(_1c4)];}return this.document.queryCommandValue(_1c4);},placeCursorAtStart:function(){this.focus();var _1c5=false;if(dojo.isMoz){var _1c6=this.editNode.firstChild;while(_1c6){if(_1c6.nodeType==3){if(_1c6.nodeValue.replace(/^\s+|\s+$/g,"").length>0){_1c5=true;dojo.withGlobal(this.window,"selectElement",dijit._editor.selection,[_1c6]);break;}}else{if(_1c6.nodeType==1){_1c5=true;dojo.withGlobal(this.window,"selectElementChildren",dijit._editor.selection,[_1c6]);break;}}_1c6=_1c6.nextSibling;}}else{_1c5=true;dojo.withGlobal(this.window,"selectElementChildren",dijit._editor.selection,[this.editNode]);}if(_1c5){dojo.withGlobal(this.window,"collapse",dijit._editor.selection,[true]);}},placeCursorAtEnd:function(){this.focus();var _1c7=false;if(dojo.isMoz){var last=this.editNode.lastChild;while(last){if(last.nodeType==3){if(last.nodeValue.replace(/^\s+|\s+$/g,"").length>0){_1c7=true;dojo.withGlobal(this.window,"selectElement",dijit._editor.selection,[last]);break;}}else{if(last.nodeType==1){_1c7=true;if(last.lastChild){dojo.withGlobal(this.window,"selectElement",dijit._editor.selection,[last.lastChild]);}else{dojo.withGlobal(this.window,"selectElement",dijit._editor.selection,[last]);}break;}}last=last.previousSibling;}}else{_1c7=true;dojo.withGlobal(this.window,"selectElementChildren",dijit._editor.selection,[this.editNode]);}if(_1c7){dojo.withGlobal(this.window,"collapse",dijit._editor.selection,[false]);}},getValue:function(_1c9){if(this.textarea){if(this.isClosed||!this.isLoaded){return this.textarea.value;}}return this._postFilterContent(null,_1c9);},setValue:function(html){if(this.textarea&&(this.isClosed||!this.isLoaded)){this.textarea.value=html;}else{html=this._preFilterContent(html);if(this.isClosed){this.domNode.innerHTML=html;this._preDomFilterContent(this.domNode);}else{this.editNode.innerHTML=html;this._preDomFilterContent(this.editNode);}}},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,_1d2){dom=dom||this.editNode;if(this.contentDomPostFilters.length){if(_1d2&&dom["cloneNode"]){dom=dom.cloneNode(true);}dojo.forEach(this.contentDomPostFilters,function(ef){dom=ef(dom);});}var ec=this.getNodeChildrenHtml(dom);if(!ec.replace(/^(?:\s|\xA0)+/g,"").replace(/(?:\s|\xA0)+$/g,"").length){ec="";}dojo.forEach(this.contentPostFilters,function(ef){ec=ef(ec);});return ec;},_saveContent:function(e){var _1d7=dojo.byId("dijit._editor.RichText.savedContent");_1d7.value+=this._SEPARATOR+this.name+":"+this.getValue();},escapeXml:function(str,_1d9){str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");if(!_1d9){str=str.replace(/'/gm,"&#39;");}return str;},getNodeHtml:function(node){switch(node.nodeType){case 1:var _1db="<"+node.tagName.toLowerCase();if(dojo.isMoz){if(node.getAttribute("type")=="_moz"){node.removeAttribute("type");}if(node.getAttribute("_moz_dirty")!=undefined){node.removeAttribute("_moz_dirty");}}var _1dc=[];if(dojo.isIE){var s=node.outerHTML;s=s.substr(0,s.indexOf(">"));s=s.replace(/(?:['"])[^"']*\1/g,"");var reg=/([^\s=]+)=/g;var m,key;while((m=reg.exec(s))!=undefined){key=m[1];if(key.substr(0,3)!="_dj"){if(key=="src"||key=="href"){if(node.getAttribute("_djrealurl")){_1dc.push([key,node.getAttribute("_djrealurl")]);continue;}}if(key=="class"){_1dc.push([key,node.className]);}else{_1dc.push([key,node.getAttribute(key)]);}}}}else{var attr,i=0,_1e3=node.attributes;while((attr=_1e3[i++])){if(attr.name.substr(0,3)!="_dj"){var v=attr.value;if(attr.name=="src"||attr.name=="href"){if(node.getAttribute("_djrealurl")){v=node.getAttribute("_djrealurl");}}_1dc.push([attr.name,v]);}}}_1dc.sort(function(a,b){return a[0]<b[0]?-1:(a[0]==b[0]?0:1);});i=0;while((attr=_1dc[i++])){_1db+=" "+attr[0]+"=\""+attr[1]+"\"";}if(node.childNodes.length){_1db+=">"+this.getNodeChildrenHtml(node)+"</"+node.tagName.toLowerCase()+">";}else{_1db+=" />";}break;case 3:var _1db=this.escapeXml(node.nodeValue,true);break;case 8:var _1db="<!--"+this.escapeXml(node.nodeValue,true)+"-->";break;default:var _1db="Element not recognized - Type: "+node.nodeType+" Name: "+node.nodeName;}return _1db;},getNodeChildrenHtml:function(dom){var out="";if(!dom){return out;}var _1e9=dom["childNodes"]||dom;var i=0;var node;while((node=_1e9[i++])){out+=this.getNodeHtml(node);}return out;},close:function(save,_1ed){if(this.isClosed){return false;}if(!arguments.length){save=true;}this._content=this.getValue();var _1ee=(this.savedContent!=this._content);if(this.interval){clearInterval(this.interval);}if(this.textarea){with(this.textarea.style){position="";left=top="";if(dojo.isIE){overflow=this.__overflow;this.__overflow=null;}}if(save){this.textarea.value=this._content;}else{this.textarea.value=this.savedContent;}dojo._destroyElement(this.domNode);this.domNode=this.textarea;}else{if(save){this.domNode.innerHTML=this._content;}else{this.domNode.innerHTML=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 _1ee;},destroyRendering:function(){},destroy:function(){this.destroyRendering();if(!this.isClosed){this.close(false);}this.inherited("destroy",arguments);},_fixContentForMoz:function(html){html=html.replace(/<(\/)?strong([ \>])/gi,"<$1b$2");html=html.replace(/<(\/)?em([ \>])/gi,"<$1i$2");return html;},_srcInImgRegex:/(?:(<img(?=\s).*?\ssrc=)("|')(.*?)\2)|(?:(<img\s.*?src=)([^"'][^ >]+))/gi,_hrefInARegex:/(?:(<a(?=\s).*?\shref=)("|')(.*?)\2)|(?:(<a\s.*?href=)([^"'][^ >]+))/gi,_preFixUrlAttributes:function(html){html=html.replace(this._hrefInARegex,"$1$4$2$3$5$2 _djrealurl=$2$3$5$2");html=html.replace(this._srcInImgRegex,"$1$4$2$3$5$2 _djrealurl=$2$3$5$2");return html;}});}if(!dojo._hasResource["dijit.Toolbar"]){dojo._hasResource["dijit.Toolbar"]=true;dojo.provide("dijit.Toolbar");dojo.declare("dijit.Toolbar",[dijit._Widget,dijit._Templated,dijit._KeyNavContainer],{templateString:"<div class=\"dijit dijitToolbar\" waiRole=\"toolbar\" tabIndex=\"${tabIndex}\" dojoAttachPoint=\"containerNode\">"+"</div>",tabIndex:"0",postCreate:function(){this.connectKeyNavHandlers(this.isLeftToRight()?[dojo.keys.LEFT_ARROW]:[dojo.keys.RIGHT_ARROW],this.isLeftToRight()?[dojo.keys.RIGHT_ARROW]:[dojo.keys.LEFT_ARROW]);},startup:function(){this.startupKeyNavChildren();}});dojo.declare("dijit.ToolbarSeparator",[dijit._Widget,dijit._Templated],{templateString:"<div class=\"dijitToolbarSeparator dijitInline\"></div>",postCreate:function(){dojo.setSelectable(this.domNode,false);},isFocusable:function(){return false;}});}if(!dojo._hasResource["dijit.form.Button"]){dojo._hasResource["dijit.form.Button"]=true;dojo.provide("dijit.form.Button");dojo.declare("dijit.form.Button",dijit.form._FormWidget,{label:"",showLabel:true,iconClass:"",type:"button",baseClass:"dijitButton",templateString:"<div class=\"dijit dijitLeft dijitInline dijitButton\"\n\tdojoAttachEvent=\"onclick:_onButtonClick,onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\"\n\t><div class='dijitRight'\n\t\t><button class=\"dijitStretch dijitButtonNode dijitButtonContents\" dojoAttachPoint=\"focusNode,titleNode\"\n\t\t\ttype=\"${type}\" waiRole=\"button\" waiState=\"labelledby-${id}_label\"\n\t\t\t><span class=\"dijitInline ${iconClass}\" dojoAttachPoint=\"iconNode\" \n \t\t\t\t><span class=\"dijitToggleButtonIconChar\">&#10003</span \n\t\t\t></span\n\t\t\t><span class=\"dijitButtonText\" id=\"${id}_label\" dojoAttachPoint=\"containerNode\">${label}</span\n\t\t></button\n\t></div\n></div>\n",_onClick:function(e){if(this.disabled){return false;}this._clicked();return this.onClick(e);},_onButtonClick:function(e){dojo.stopEvent(e);var _1f3=this._onClick(e)!==false;if(this.type=="submit"&&_1f3){for(var node=this.domNode;node;node=node.parentNode){var _1f5=dijit.byNode(node);if(_1f5&&_1f5._onSubmit){_1f5._onSubmit(e);break;}if(node.tagName.toLowerCase()=="form"){if(!node.onsubmit||node.onsubmit()){node.submit();}break;}}}},postCreate:function(){if(this.showLabel==false){var _1f6="";this.label=this.containerNode.innerHTML;_1f6=dojo.trim(this.containerNode.innerText||this.containerNode.textContent);this.titleNode.title=_1f6;dojo.addClass(this.containerNode,"dijitDisplayNone");}this.inherited(arguments);},onClick:function(e){return true;},_clicked:function(e){},setLabel:function(_1f9){this.containerNode.innerHTML=this.label=_1f9;if(dojo.isMozilla){var _1fa=dojo.getComputedStyle(this.domNode).display;this.domNode.style.display="none";var _1fb=this;setTimeout(function(){_1fb.domNode.style.display=_1fa;},1);}if(this.showLabel==false){this.titleNode.title=dojo.trim(this.containerNode.innerText||this.containerNode.textContent);}}});dojo.declare("dijit.form.DropDownButton",[dijit.form.Button,dijit._Container],{baseClass:"dijitDropDownButton",templateString:"<div class=\"dijit dijitLeft dijitInline\"\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse,onclick:_onDropDownClick,onkeydown:_onDropDownKeydown,onblur:_onDropDownBlur,onkeypress:_onKey\"\n\t><div class='dijitRight'>\n\t<button class=\"dijitStretch dijitButtonNode dijitButtonContents\" type=\"${type}\"\n\t\tdojoAttachPoint=\"focusNode,titleNode\" waiRole=\"button\" waiState=\"haspopup-true,labelledby-${id}_label\"\n\t\t><div class=\"dijitInline ${iconClass}\" dojoAttachPoint=\"iconNode\"></div\n\t\t><span class=\"dijitButtonText\" \tdojoAttachPoint=\"containerNode,popupStateNode\"\n\t\tid=\"${id}_label\">${label}</span\n\t\t><span class='dijitA11yDownArrow'>&#9660;</span>\n\t</button>\n</div></div>\n",_fillContent:function(){if(this.srcNodeRef){var _1fc=dojo.query("*",this.srcNodeRef);dijit.form.DropDownButton.superclass._fillContent.call(this,_1fc[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(!this.dropDown){var _1fd=dojo.query("[widgetId]",this.dropDownContainer)[0];this.dropDown=dijit.byNode(_1fd);delete this.dropDownContainer;}dojo.body().appendChild(this.dropDown.domNode);this.dropDown.domNode.style.display="none";},_onArrowClick:function(e){if(this.disabled){return;}this._toggleDropDown();},_onDropDownClick:function(e){var _200=dojo.isFF&&dojo.isFF<3&&navigator.appVersion.indexOf("Macintosh")!=-1;if(!_200||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){return;}if(e.keyCode==dojo.keys.DOWN_ARROW){if(!this.dropDown||this.dropDown.domNode.style.display=="none"){dojo.stopEvent(e);return this._toggleDropDown();}}},_onBlur:function(){this._closeDropDown();},_toggleDropDown:function(){if(this.disabled){return;}dijit.focus(this.popupStateNode);var _204=this.dropDown;if(!_204){return false;}if(!_204.isShowingNow){if(_204.href&&!_204.isLoaded){var self=this;var _206=dojo.connect(_204,"onLoad",function(){dojo.disconnect(_206);self._openDropDown();});_204._loadCheck(true);return;}else{this._openDropDown();}}else{this._closeDropDown();}},_openDropDown:function(){var _207=this.dropDown;var _208=_207.domNode.style.width;var self=this;dijit.popup.open({parent:this,popup:_207,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(){_207.domNode.style.width=_208;self.popupStateNode.removeAttribute("popupActive");this._opened=false;}});if(this.domNode.offsetWidth>_207.domNode.offsetWidth){var _20a=null;if(!this.isLeftToRight()){_20a=_207.domNode.parentNode;var _20b=_20a.offsetLeft+_20a.offsetWidth;}dojo.marginBox(_207.domNode,{w:this.domNode.offsetWidth});if(_20a){_20a.style.left=_20b-this.domNode.offsetWidth+"px";}}this.popupStateNode.setAttribute("popupActive","true");this._opened=true;if(_207.focus){_207.focus();}},_closeDropDown:function(_20c){if(this._opened){dijit.popup.close(this.dropDown);if(_20c){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'\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\">\n\t<tr>\n\t\t<td\tclass=\"dijitStretch dijitButtonContents dijitButtonNode\"\n\t\t\ttabIndex=\"${tabIndex}\"\n\t\t\tdojoAttachEvent=\"ondijitclick:_onButtonClick\"  dojoAttachPoint=\"titleNode\"\n\t\t\twaiRole=\"button\" waiState=\"labelledby-${id}_label\">\n\t\t\t<div class=\"dijitInline ${iconClass}\" dojoAttachPoint=\"iconNode\"></div>\n\t\t\t<span class=\"dijitButtonText\" id=\"${id}_label\" dojoAttachPoint=\"containerNode\">${label}</span>\n\t\t</td>\n\t\t<td class='dijitReset dijitRight dijitButtonNode dijitDownArrowButton'\n\t\t\tdojoAttachPoint=\"popupStateNode,focusNode\"\n\t\t\tdojoAttachEvent=\"ondijitclick:_onArrowClick, onkeypress:_onKey\"\n\t\t\tstateModifier=\"DownArrow\"\n\t\t\ttitle=\"${optionsTitle}\" name=\"${name}\"\n\t\t\twaiRole=\"button\" waiState=\"haspopup-true\"\n\t\t><div waiRole=\"presentation\">&#9660;</div>\n\t</td></tr>\n</table>\n",attributeMap:dojo.mixin(dojo.clone(dijit.form._FormWidget.prototype.attributeMap),{id:"",name:""}),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);}else{this.connect(node,"onfocus",this._onNodeFocus);}}));},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;},_onBlur:function(evt){this.inherited(arguments);this._focusedNode=null;}});dojo.declare("dijit.form.ToggleButton",dijit.form.Button,{baseClass:"dijitToggleButton",checked:false,_clicked:function(evt){this.setChecked(!this.checked);},setChecked:function(_212){this.checked=_212;dijit.setWaiState(this.focusNode||this.domNode,"pressed",this.checked);this._setStateClass();this.onChange(_212);}});}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);}},editor:null,iconClassPrefix:"dijitEditorIcon",button:null,queryCommand:null,command:"",commandArg:null,useDefaultCommand:true,buttonClass:dijit.form.Button,updateInterval:200,_initButton:function(){if(this.command.length){var _215=this.editor.commands[this.command];var _216="dijitEditorIcon "+this.iconClassPrefix+this.command.charAt(0).toUpperCase()+this.command.substr(1);if(!this.button){var _217={label:_215,showLabel:false,iconClass:_216,dropDown:this.dropDown};this.button=new this.buttonClass(_217);}}},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 _21a=_e.queryCommandEnabled(_c);this.button.setDisabled(!_21a);if(this.button.setChecked){this.button.setChecked(_e.queryCommandState(_c));}}catch(e){console.debug(e);}}},setEditor:function(_21b){this.editor=_21b;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){dojo.connect(this.button,"onClick",dojo.hitch(this.editor,"execCommand",this.command,this.commandArg));}dojo.connect(this.editor,"onNormalizedDisplayChanged",this,"updateState");},setToolbar:function(_21c){if(this.button){_21c.addChild(this.button);}}});}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(){this.plugins=["undo","redo","|","cut","copy","paste","|","bold","italic","underline","strikethrough","|","insertOrderedList","insertUnorderedList","indent","outdent","|","justifyLeft","justifyRight","justifyCenter","justifyFull"];this._plugins=[];this._editInterval=this.editActionInterval*1000;},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);}dijit.Editor.superclass.postCreate.apply(this,arguments);this.commands=dojo.i18n.getLocalization("dijit._editor","commands",this.lang);if(!this.toolbar){var _21d=dojo.doc.createElement("div");dojo.place(_21d,this.editingArea,"before");this.toolbar=new dijit.Toolbar({},_21d);}dojo.forEach(this.plugins,this.addPlugin,this);this.onNormalizedDisplayChanged();},destroy:function(){dojo.forEach(this._plugins,function(p){if(p.destroy){p.destroy();}});this._plugins=[];this.toolbar.destroy();delete this.toolbar;this.inherited("destroy",arguments);},addPlugin:function(_21f,_220){var args=dojo.isString(_21f)?{name:_21f}:_21f;if(!args.setEditor){var o={"args":args,"plugin":null,"editor":this};dojo.publish("dijit.Editor.getPlugin",[o]);if(!o.plugin){var pc=dojo.getObject(args.name);if(pc){o.plugin=new pc(args);}}if(!o.plugin){console.debug("Cannot find plugin",_21f);return;}_21f=o.plugin;}if(arguments.length>1){this._plugins[_220]=_21f;}else{this._plugins.push(_21f);}_21f.setEditor(this);if(dojo.isFunction(_21f.setToolbar)){_21f.setToolbar(this.toolbar);}},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{try{if(this.customUndo){this.endEditing();this._beginEditing();}var r=this.inherited("execCommand",arguments);if(this.customUndo){this._endEditing();}return r;}catch(e){if(dojo.isMoz&&/copy|cut|paste/.test(cmd)){var sub=dojo.string.substitute,_228={cut:"X",copy:"C",paste:"V"},_229=navigator.userAgent.indexOf("Macintosh")!=-1;alert(sub(this.commands.systemShortcutFF,[this.commands[cmd],sub(this.commands[_229?"appleKey":"ctrlKey"],[_228[cmd]])]));}return false;}}},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);}},_changeToStep:function(from,to){this.setValue(to.text);var b=to.bookmark;if(!b){return;}if(dojo.isIE){if(dojo.isArray(b)){var tmp=[];dojo.forEach(b,function(n){tmp.push(dijit.range.getNode(n,this.editNode));},this);b=tmp;}}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);b=r;}dojo.withGlobal(this.window,"moveToBookmark",dijit,[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(_233){if(this._editTimer){clearTimeout(this._editTimer);}if(this._inEditing){this._endEditing(_233);this._inEditing=false;}},_getBookmark:function(){var b=dojo.withGlobal(this.window,dijit.getBookmark);if(dojo.isIE){if(dojo.isArray(b)){var tmp=[];dojo.forEach(b,function(n){tmp.push(dijit.range.getIndex(n,this.editNode).o);},this);b=tmp;}}else{var 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(_238){var v=this.getValue(true);this._undoedSteps=[];this._steps.push({"text":v,"bookmark":this._getBookmark()});},onKeyDown:function(e){if(!this.customUndo){this.inherited("onKeyDown",arguments);return;}var k=e.keyCode,ks=dojo.keys;if(e.ctrlKey&&!e.altKey){if(k===90||k===122){dojo.stopEvent(e);this.undo();return;}else{if(k===89||k===121){dojo.stopEvent(e);this.redo();return;}}}this.inherited("onKeyDown",arguments);switch(k){case ks.ENTER:this.beginEditing();break;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);},onClick:function(){this.endEditing(true);this.inherited("onClick",arguments);}});dojo.subscribe("dijit.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":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()});break;case "createLink":case "insertImage":p=new dijit._editor.plugins.LinkDialog({command:name});break;case "foreColor":case "hiliteColor":p=new dijit._editor.plugins.TextColor({command:name});break;case "fontName":case "fontSize":case "formatBlock":p=new dijit._editor.plugins.FontChoice({command:name});}o.plugin=p;});}if(!dojo._hasResource["dijit.Menu"]){dojo._hasResource["dijit.Menu"]=true;dojo.provide("dijit.Menu");dojo.declare("dijit.Menu",[dijit._Widget,dijit._Templated,dijit._KeyNavContainer],{constructor:function(){this._bindings=[];},templateString:"<table class=\"dijit dijitMenu dijitReset dijitMenuTable\" waiRole=\"menu\" dojoAttachEvent=\"onkeypress:_onKeyPress\">"+"<tbody class=\"dijitReset\" dojoAttachPoint=\"containerNode\"></tbody>"+"</table>",targetNodeIds:[],contextMenuForWindow:false,parentMenu:null,popupDelay:500,_contextMenuWithMouse:false,postCreate:function(){if(this.contextMenuForWindow){this.bindDomNode(dojo.body());}else{dojo.forEach(this.targetNodeIds,this.bindDomNode,this);}this.connectKeyNavHandlers([dojo.keys.UP_ARROW],[dojo.keys.DOWN_ARROW]);},startup:function(){dojo.forEach(this.getChildren(),function(_242){_242.startup();});this.startupKeyNavChildren();},onExecute:function(){},onCancel:function(_243){},_moveToPopup:function(evt){if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled){this.focusedChild._onClick(evt);}},_onKeyPress:function(evt){if(evt.ctrlKey||evt.altKey){return;}switch(evt.keyCode){case dojo.keys.RIGHT_ARROW:this._moveToPopup(evt);dojo.stopEvent(evt);break;case dojo.keys.LEFT_ARROW:if(this.parentMenu){this.onCancel(false);}else{dojo.stopEvent(evt);}break;}},onItemHover:function(item){this.focusChild(item);if(this.focusedChild.popup&&!this.focusedChild.disabled&&!this.hover_timer){this.hover_timer=setTimeout(dojo.hitch(this,"_openPopup"),this.popupDelay);}},_onChildBlur:function(item){dijit.popup.close(item.popup);item._blur();this._stopPopupTimer();},onItemUnhover:function(item){},_stopPopupTimer:function(){if(this.hover_timer){clearTimeout(this.hover_timer);this.hover_timer=null;}},_getTopMenu:function(){for(var top=this;top.parentMenu;top=top.parentMenu){}return top;},onItemClick:function(item){if(item.disabled){return false;}if(item.popup){if(!this.is_open){this._openPopup();}}else{this.onExecute();item.onClick();}},_iframeContentWindow:function(_24b){var win=dijit.getDocumentWindow(dijit.Menu._iframeContentDocument(_24b))||dijit.Menu._iframeContentDocument(_24b)["__parent__"]||(_24b.name&&document.frames[_24b.name])||null;return win;},_iframeContentDocument:function(_24d){var doc=_24d.contentDocument||(_24d.contentWindow&&_24d.contentWindow.document)||(_24d.name&&document.frames[_24d.name]&&document.frames[_24d.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,"oncontextmenu",this,"_openMyself"),dojo.connect(cn,"onkeydown",this,"_contextKey"),dojo.connect(cn,"onmousedown",this,"_contextMouse")]);},unBindDomNode:function(_252){var node=dojo.byId(_252);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){dojo.stopEvent(e);var x,y;if(dojo.isSafari||this._contextMenuWithMouse){x=e.pageX;y=e.pageY;}else{var _25c=dojo.coords(e.target,true);x=_25c.x+10;y=_25c.y+10;}var self=this;var _25e=dijit.getFocus(this);function closeAndRestoreFocus(){dijit.focus(_25e);dijit.popup.close(self);};dijit.popup.open({popup:this,x:x,y:y,onExecute:closeAndRestoreFocus,onCancel:closeAndRestoreFocus,orient:this.isLeftToRight()?"L":"R"});this.focus();this._onBlur=function(){dijit.popup.close(this);};},onOpen:function(e){this.isShowingNow=true;},onClose:function(){this._stopPopupTimer();this.parentMenu=null;this.isShowingNow=false;this.currentPopup=null;if(this.focusedChild){this._onChildBlur(this.focusedChild);this.focusedChild=null;}},_openPopup:function(){this._stopPopupTimer();var _260=this.focusedChild;var _261=_260.popup;if(_261.isShowingNow){return;}_261.parentMenu=this;var self=this;dijit.popup.open({parent:this,popup:_261,around:_260.arrowCell,orient:this.isLeftToRight()?{"TR":"TL","TL":"TR"}:{"TL":"TR","TR":"TL"},onCancel:function(){dijit.popup.close(_261);_260.focus();self.currentPopup=null;}});this.currentPopup=_261;if(_261.focus){_261.focus();}}});dojo.declare("dijit.MenuItem",[dijit._Widget,dijit._Templated,dijit._Contained],{templateString:"<tr class=\"dijitReset dijitMenuItem\""+"dojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">"+"<td class=\"dijitReset\"><div class=\"dijitMenuItemIcon ${iconClass}\" dojoAttachPoint=\"iconNode\" ></div></td>"+"<td tabIndex=\"-1\" class=\"dijitReset dijitMenuItemLabel\" dojoAttachPoint=\"containerNode\" waiRole=\"menuitem\"></td>"+"<td class=\"dijitReset\" dojoAttachPoint=\"arrowCell\">"+"<div class=\"dijitMenuExpand\" dojoAttachPoint=\"expand\" style=\"display:none\">"+"<span class=\"dijitInline dijitArrowNode dijitMenuExpandInner\">+</span>"+"</div>"+"</td>"+"</tr>",label:"",iconClass:"",disabled:false,postCreate:function(){dojo.setSelectable(this.domNode,false);this.setDisabled(this.disabled);if(this.label){this.containerNode.innerHTML=this.label;}},_onHover:function(){this.getParent().onItemHover(this);},_onUnhover:function(){this.getParent().onItemUnhover(this);},_onClick:function(evt){this.getParent().onItemClick(this);dojo.stopEvent(evt);},onClick:function(){},focus:function(){dojo.addClass(this.domNode,"dijitMenuItemHover");try{dijit.focus(this.containerNode);}catch(e){}},_blur:function(){dojo.removeClass(this.domNode,"dijitMenuItemHover");},setDisabled:function(_264){this.disabled=_264;dojo[_264?"addClass":"removeClass"](this.domNode,"dijitMenuItemDisabled");dijit.setWaiState(this.containerNode,"disabled",_264?"true":"false");}});dojo.declare("dijit.PopupMenuItem",dijit.MenuItem,{_fillContent:function(){if(this.srcNodeRef){var _265=dojo.query("*",this.srcNodeRef);dijit.PopupMenuItem.superclass._fillContent.call(this,_265[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(!this.popup){var node=dojo.query("[widgetId]",this.dropDownContainer)[0];this.popup=dijit.byNode(node);}dojo.body().appendChild(this.popup.domNode);this.popup.domNode.style.display="none";dojo.addClass(this.expand,"dijitMenuExpandEnabled");dojo.style(this.expand,"display","");dijit.setWaiState(this.containerNode,"haspopup","true");}});dojo.declare("dijit.MenuSeparator",[dijit._Widget,dijit._Templated,dijit._Contained],{templateString:"<tr class=\"dijitMenuSeparator\"><td colspan=3>"+"<div class=\"dijitMenuSeparatorTop\"></div>"+"<div class=\"dijitMenuSeparatorBottom\"></div>"+"</td></tr>",postCreate:function(){dojo.setSelectable(this.domNode,false);},isFocusable:function(){return false;}});}if(!dojo._hasResource["dojo.regexp"]){dojo._hasResource["dojo.regexp"]=true;dojo.provide("dojo.regexp");dojo.regexp.escapeString=function(str,_268){return str.replace(/([\.$?*!=:|{}\(\)\[\]\\\/^])/g,function(ch){if(_268&&_268.indexOf(ch)!=-1){return ch;}return "\\"+ch;});};dojo.regexp.buildGroupRE=function(arr,re,_26c){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("|"),_26c);};dojo.regexp.group=function(_26f,_270){return "("+(_270?"?:":"")+_26f+")";};}if(!dojo._hasResource["dojo.number"]){dojo._hasResource["dojo.number"]=true;dojo.provide("dojo.number");dojo.number.format=function(_271,_272){_272=dojo.mixin({},_272||{});var _273=dojo.i18n.normalizeLocale(_272.locale);var _274=dojo.i18n.getLocalization("dojo.cldr","number",_273);_272.customs=_274;var _275=_272.pattern||_274[(_272.type||"decimal")+"Format"];if(isNaN(_271)){return null;}return dojo.number._applyPattern(_271,_275,_272);};dojo.number._numberPatternRE=/[#0,]*[#0](?:\.0*#*)?/;dojo.number._applyPattern=function(_276,_277,_278){_278=_278||{};var _279=_278.customs.group;var _27a=_278.customs.decimal;var _27b=_277.split(";");var _27c=_27b[0];_277=_27b[(_276<0)?1:0]||("-"+_27c);if(_277.indexOf("%")!=-1){_276*=100;}else{if(_277.indexOf("‰")!=-1){_276*=1000;}else{if(_277.indexOf("¤")!=-1){_279=_278.customs.currencyGroup||_279;_27a=_278.customs.currencyDecimal||_27a;_277=_277.replace(/\u00a4{1,3}/,function(_27d){var prop=["symbol","currency","displayName"][_27d.length-1];return _278[prop]||_278.currency||"";});}else{if(_277.indexOf("E")!=-1){throw new Error("exponential notation not supported");}}}}var _27f=dojo.number._numberPatternRE;var _280=_27c.match(_27f);if(!_280){throw new Error("unable to find a number expression in pattern: "+_277);}return _277.replace(_27f,dojo.number._formatAbsolute(_276,_280[0],{decimal:_27a,group:_279,places:_278.places}));};dojo.number.round=function(_281,_282,_283){var _284=String(_281).split(".");var _285=(_284[1]&&_284[1].length)||0;if(_285>_282){var _286=Math.pow(10,_282);if(_283>0){_286*=10/_283;_282++;}_281=Math.round(_281*_286)/_286;_284=String(_281).split(".");_285=(_284[1]&&_284[1].length)||0;if(_285>_282){_284[1]=_284[1].substr(0,_282);_281=Number(_284.join("."));}}return _281;};dojo.number._formatAbsolute=function(_287,_288,_289){_289=_289||{};if(_289.places===true){_289.places=0;}if(_289.places===Infinity){_289.places=6;}var _28a=_288.split(".");var _28b=(_289.places>=0)?_289.places:(_28a[1]&&_28a[1].length)||0;if(!(_289.round<0)){_287=dojo.number.round(_287,_28b,_289.round);}var _28c=String(Math.abs(_287)).split(".");var _28d=_28c[1]||"";if(_289.places){_28c[1]=dojo.string.pad(_28d.substr(0,_289.places),_289.places,"0",true);}else{if(_28a[1]&&_289.places!==0){var pad=_28a[1].lastIndexOf("0")+1;if(pad>_28d.length){_28c[1]=dojo.string.pad(_28d,pad,"0",true);}var _28f=_28a[1].length;if(_28f<_28d.length){_28c[1]=_28d.substr(0,_28f);}}else{if(_28c[1]){_28c.pop();}}}var _290=_28a[0].replace(",","");pad=_290.indexOf("0");if(pad!=-1){pad=_290.length-pad;if(pad>_28c[0].length){_28c[0]=dojo.string.pad(_28c[0],pad);}if(_290.indexOf("#")==-1){_28c[0]=_28c[0].substr(_28c[0].length-pad);}}var _291=_28a[0].lastIndexOf(",");var _292,_293;if(_291!=-1){_292=_28a[0].length-_291-1;var _294=_28a[0].substr(0,_291);_291=_294.lastIndexOf(",");if(_291!=-1){_293=_294.length-_291-1;}}var _295=[];for(var _296=_28c[0];_296;){var off=_296.length-_292;_295.push((off>0)?_296.substr(off):_296);_296=(off>0)?_296.slice(0,off):"";if(_293){_292=_293;delete _293;}}_28c[0]=_295.reverse().join(_289.group||",");return _28c.join(_289.decimal||".");};dojo.number.regexp=function(_298){return dojo.number._parseInfo(_298).regexp;};dojo.number._parseInfo=function(_299){_299=_299||{};var _29a=dojo.i18n.normalizeLocale(_299.locale);var _29b=dojo.i18n.getLocalization("dojo.cldr","number",_29a);var _29c=_299.pattern||_29b[(_299.type||"decimal")+"Format"];var _29d=_29b.group;var _29e=_29b.decimal;var _29f=1;if(_29c.indexOf("%")!=-1){_29f/=100;}else{if(_29c.indexOf("‰")!=-1){_29f/=1000;}else{var _2a0=_29c.indexOf("¤")!=-1;if(_2a0){_29d=_29b.currencyGroup||_29d;_29e=_29b.currencyDecimal||_29e;}}}var _2a1=_29c.split(";");if(_2a1.length==1){_2a1.push("-"+_2a1[0]);}var re=dojo.regexp.buildGroupRE(_2a1,function(_2a3){_2a3="(?:"+dojo.regexp.escapeString(_2a3,".")+")";return _2a3.replace(dojo.number._numberPatternRE,function(_2a4){var _2a5={signed:false,separator:_299.strict?_29d:[_29d,""],fractional:_299.fractional,decimal:_29e,exponent:false};var _2a6=_2a4.split(".");var _2a7=_299.places;if(_2a6.length==1||_2a7===0){_2a5.fractional=false;}else{if(typeof _2a7=="undefined"){_2a7=_2a6[1].lastIndexOf("0")+1;}if(_2a7&&_299.fractional==undefined){_2a5.fractional=true;}if(!_299.places&&(_2a7<_2a6[1].length)){_2a7+=","+_2a6[1].length;}_2a5.places=_2a7;}var _2a8=_2a6[0].split(",");if(_2a8.length>1){_2a5.groupSize=_2a8.pop().length;if(_2a8.length>1){_2a5.groupSize2=_2a8.pop().length;}}return "("+dojo.number._realNumberRegexp(_2a5)+")";});},true);if(_2a0){re=re.replace(/(\s*)(\u00a4{1,3})(\s*)/g,function(_2a9,_2aa,_2ab,_2ac){var prop=["symbol","currency","displayName"][_2ab.length-1];var _2ae=dojo.regexp.escapeString(_299[prop]||_299.currency||"");_2aa=_2aa?"\\s":"";_2ac=_2ac?"\\s":"";if(!_299.strict){if(_2aa){_2aa+="*";}if(_2ac){_2ac+="*";}return "(?:"+_2aa+_2ae+_2ac+")?";}return _2aa+_2ae+_2ac;});}return {regexp:re.replace(/[\xa0 ]/g,"[\\s\\xa0]"),group:_29d,decimal:_29e,factor:_29f};};dojo.number.parse=function(_2af,_2b0){var info=dojo.number._parseInfo(_2b0);var _2b2=(new RegExp("^"+info.regexp+"$")).exec(_2af);if(!_2b2){return NaN;}var _2b3=_2b2[1];if(!_2b2[1]){if(!_2b2[2]){return NaN;}_2b3=_2b2[2];info.factor*=-1;}_2b3=_2b3.replace(new RegExp("["+info.group+"\\s\\xa0"+"]","g"),"").replace(info.decimal,".");return Number(_2b3)*info.factor;};dojo.number._realNumberRegexp=function(_2b4){_2b4=_2b4||{};if(typeof _2b4.places=="undefined"){_2b4.places=Infinity;}if(typeof _2b4.decimal!="string"){_2b4.decimal=".";}if(typeof _2b4.fractional=="undefined"||/^0/.test(_2b4.places)){_2b4.fractional=[true,false];}if(typeof _2b4.exponent=="undefined"){_2b4.exponent=[true,false];}if(typeof _2b4.eSigned=="undefined"){_2b4.eSigned=[true,false];}var _2b5=dojo.number._integerRegexp(_2b4);var _2b6=dojo.regexp.buildGroupRE(_2b4.fractional,function(q){var re="";if(q&&(_2b4.places!==0)){re="\\"+_2b4.decimal;if(_2b4.places==Infinity){re="(?:"+re+"\\d+)?";}else{re+="\\d{"+_2b4.places+"}";}}return re;},true);var _2b9=dojo.regexp.buildGroupRE(_2b4.exponent,function(q){if(q){return "([eE]"+dojo.number._integerRegexp({signed:_2b4.eSigned})+")";}return "";});var _2bb=_2b5+_2b6;if(_2b6){_2bb="(?:(?:"+_2bb+")|(?:"+_2b6+"))";}return _2bb+_2b9;};dojo.number._integerRegexp=function(_2bc){_2bc=_2bc||{};if(typeof _2bc.signed=="undefined"){_2bc.signed=[true,false];}if(typeof _2bc.separator=="undefined"){_2bc.separator="";}else{if(typeof _2bc.groupSize=="undefined"){_2bc.groupSize=3;}}var _2bd=dojo.regexp.buildGroupRE(_2bc.signed,function(q){return q?"[-+]":"";},true);var _2bf=dojo.regexp.buildGroupRE(_2bc.separator,function(sep){if(!sep){return "(?:0|[1-9]\\d*)";}sep=dojo.regexp.escapeString(sep);if(sep==" "){sep="\\s";}else{if(sep==" "){sep="\\s\\xa0";}}var grp=_2bc.groupSize,grp2=_2bc.groupSize2;if(grp2){var _2c3="(?:0|[1-9]\\d{0,"+(grp2-1)+"}(?:["+sep+"]\\d{"+grp2+"})*["+sep+"]\\d{"+grp+"})";return ((grp-grp2)>0)?"(?:"+_2c3+"|(?:0|[1-9]\\d{0,"+(grp-1)+"}))":_2c3;}return "(?:0|[1-9]\\d{0,"+(grp-1)+"}(?:["+sep+"]\\d{"+grp+"})*)";},true);return _2bd+_2bf;};}if(!dojo._hasResource["dijit.ProgressBar"]){dojo._hasResource["dijit.ProgressBar"]=true;dojo.provide("dijit.ProgressBar");dojo.declare("dijit.ProgressBar",[dijit._Widget,dijit._Templated],{progress:"0",maximum:100,places:0,indeterminate:false,templateString:"<div class=\"dijitProgressBar dijitProgressBarEmpty\"\n\t><div waiRole=\"progressbar\" tabindex=\"0\" dojoAttachPoint=\"internalProgress\" class=\"dijitProgressBarFull\"\n\t\t><div class=\"dijitProgressBarTile\"></div\n\t\t><span style=\"visibility:hidden\">&nbsp;</span\n\t></div\n\t><div dojoAttachPoint=\"label\" class=\"dijitProgressBarLabel\" id=\"${id}_label\">&nbsp;</div\n\t><img dojoAttachPoint=\"inteterminateHighContrastImage\" class=\"dijitProgressBarIndeterminateHighContrastImage\"\n\t></img\n></div>\n",_indeterminateHighContrastImagePath:dojo.moduleUrl("dijit","themes/a11y/indeterminate_progress.gif"),postCreate:function(){this.inherited("postCreate",arguments);this.inteterminateHighContrastImage.setAttribute("src",this._indeterminateHighContrastImagePath);this.update();},update:function(_2c4){dojo.mixin(this,_2c4||{});var _2c5=1,_2c6;if(this.indeterminate){_2c6="addClass";dijit.removeWaiState(this.internalProgress,"valuenow");dijit.removeWaiState(this.internalProgress,"valuemin");dijit.removeWaiState(this.internalProgress,"valuemax");}else{_2c6="removeClass";if(String(this.progress).indexOf("%")!=-1){_2c5=Math.min(parseFloat(this.progress)/100,1);this.progress=_2c5*this.maximum;}else{this.progress=Math.min(this.progress,this.maximum);_2c5=this.progress/this.maximum;}var text=this.report(_2c5);this.label.firstChild.nodeValue=text;dijit.setWaiState(this.internalProgress,"describedby",this.label.id);dijit.setWaiState(this.internalProgress,"valuenow",this.progress);dijit.setWaiState(this.internalProgress,"valuemin",0);dijit.setWaiState(this.internalProgress,"valuemax",this.maximum);}dojo[_2c6](this.domNode,"dijitProgressBarIndeterminate");this.internalProgress.style.width=(_2c5*100)+"%";this.onChange();},report:function(_2c8){return dojo.number.format(_2c8,{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:250,baseClass:"dijitTitlePane",templateString:"<div class=\"dijitTitlePane\">\n\t<div dojoAttachEvent=\"onclick:toggle,onkeypress: _onTitleKey,onfocus:_handleFocus,onblur:_handleFocus\" tabindex=\"0\"\n\t\t\twaiRole=\"button\" class=\"dijitTitlePaneTitle\" dojoAttachPoint=\"focusNode\">\n\t\t<div dojoAttachPoint=\"arrowNode\" class=\"dijitInline dijitArrowNode\"><span dojoAttachPoint=\"arrowNodeInner\" class=\"dijitArrowNodeInner\"></span></div>\n\t\t<div dojoAttachPoint=\"titleNode\" class=\"dijitTitlePaneTextNode\"></div>\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",postCreate:function(){this.setTitle(this.title);if(!this.open){this.hideNode.style.display=this.wipeNode.style.display="none";}this._setCss();dojo.setSelectable(this.titleNode,false);this.inherited("postCreate",arguments);dijit.setWaiState(this.containerNode,"labelledby",this.titleNode.id);dijit.setWaiState(this.focusNode,"haspopup","true");var _2c9=this.hideNode,_2ca=this.wipeNode;this._wipeIn=dojo.fx.wipeIn({node:this.wipeNode,duration:this.duration,beforeBegin:function(){_2c9.style.display="";}});this._wipeOut=dojo.fx.wipeOut({node:this.wipeNode,duration:this.duration,onEnd:function(){_2c9.style.display="none";}});},setContent:function(_2cb){if(this._wipeOut.status()=="playing"){this.inherited("setContent",arguments);}else{if(this._wipeIn.status()=="playing"){this._wipeIn.stop();}dojo.marginBox(this.wipeNode,{h:dojo.marginBox(this.wipeNode).h});this.inherited("setContent",arguments);this._wipeIn.play();}},toggle:function(){dojo.forEach([this._wipeIn,this._wipeOut],function(_2cc){if(_2cc.status()=="playing"){_2cc.stop();}});this[this.open?"_wipeOut":"_wipeIn"].play();this.open=!this.open;this._loadCheck();this._setCss();},_setCss:function(){var _2cd=["dijitClosed","dijitOpen"];var _2ce=this.open;dojo.removeClass(this.focusNode,_2cd[!_2ce+0]);this.focusNode.className+=" "+_2cd[_2ce+0];this.arrowNodeInner.innerHTML=this.open?"-":"+";},_onTitleKey:function(e){if(e.keyCode==dojo.keys.ENTER||e.charCode==dojo.keys.SPACE){this.toggle();}else{if(e.keyCode==dojo.keys.DOWN_ARROW){if(this.open){this.containerNode.focus();e.preventDefault();}}}},_handleFocus:function(e){dojo[(e.type=="focus"?"addClass":"removeClass")](this.focusNode,this.baseClass+"Focused");},setTitle:function(_2d1){this.titleNode.innerHTML=_2d1;}});}if(!dojo._hasResource["dijit.Tooltip"]){dojo._hasResource["dijit.Tooltip"]=true;dojo.provide("dijit.Tooltip");dojo.declare("dijit._MasterTooltip",[dijit._Widget,dijit._Templated],{duration:200,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(_2d2,_2d3){if(this.aroundNode&&this.aroundNode===_2d3){return;}if(this.fadeOut.status()=="playing"){this._onDeck=arguments;return;}this.containerNode.innerHTML=_2d2;this.domNode.style.top=(this.domNode.offsetTop+1)+"px";var _2d4=this.isLeftToRight()?{"BR":"BL","BL":"BR"}:{"BL":"BR","BR":"BL"};var pos=dijit.placeOnScreenAroundElement(this.domNode,_2d3,_2d4);this.domNode.className="dijitTooltip dijitTooltip"+(pos.corner=="BL"?"Right":"Left");dojo.style(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=true;this.aroundNode=_2d3;},_onShow:function(){if(dojo.isIE){this.domNode.style.filter="";}},hide:function(_2d6){if(!this.aroundNode||this.aroundNode!==_2d6){return;}if(this._onDeck){this._onDeck=null;return;}this.fadeIn.stop();this.isShowingNow=false;this.aroundNode=null;this.fadeOut.play();},_onHide:function(){this.domNode.style.cssText="";if(this._onDeck){this.show.apply(this,this._onDeck);this._onDeck=null;}}});dijit.showTooltip=function(_2d7,_2d8){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.show(_2d7,_2d8);};dijit.hideTooltip=function(_2d9){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.hide(_2d9);};dojo.declare("dijit.Tooltip",dijit._Widget,{label:"",showDelay:400,connectId:[],postCreate:function(){if(this.srcNodeRef){this.srcNodeRef.style.display="none";}this._connectNodes=[];dojo.forEach(this.connectId,function(id){var node=dojo.byId(id);if(node){this._connectNodes.push(node);dojo.forEach(["onMouseOver","onMouseOut","onFocus","onBlur","onHover","onUnHover"],function(_2dc){this.connect(node,_2dc.toLowerCase(),"_"+_2dc);},this);if(dojo.isIE){node.style.zoom=1;}}},this);},_onMouseOver:function(e){this._onHover(e);},_onMouseOut:function(e){if(dojo.isDescendant(e.relatedTarget,e.target)){return;}this._onUnHover(e);},_onFocus:function(e){this._focus=true;this._onHover(e);},_onBlur:function(e){this._focus=false;this._onUnHover(e);},_onHover:function(e){if(!this._showTimer){var _2e2=e.target;this._showTimer=setTimeout(dojo.hitch(this,function(){this.open(_2e2);}),this.showDelay);}},_onUnHover:function(e){if(this._focus){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}this.close();},open:function(_2e4){_2e4=_2e4||this._connectNodes[0];if(!_2e4){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}dijit.showTooltip(this.label||this.domNode.innerHTML,_2e4);this._connectNode=_2e4;},close:function(){dijit.hideTooltip(this._connectNode);delete this._connectNode;if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}},uninitialize:function(){this.close();}});}if(!dojo._hasResource["dojo.cookie"]){dojo._hasResource["dojo.cookie"]=true;dojo.provide("dojo.cookie");dojo.cookie=function(name,_2e6,_2e7){var c=document.cookie;if(arguments.length==1){var idx=c.lastIndexOf(name+"=");if(idx==-1){return null;}var _2ea=idx+name.length+1;var end=c.indexOf(";",idx+name.length+1);if(end==-1){end=c.length;}return decodeURIComponent(c.substring(_2ea,end));}else{_2e7=_2e7||{};_2e6=encodeURIComponent(_2e6);if(typeof (_2e7.expires)=="number"){var d=new Date();d.setTime(d.getTime()+(_2e7.expires*24*60*60*1000));_2e7.expires=d;}document.cookie=name+"="+_2e6+(_2e7.expires?"; expires="+_2e7.expires.toUTCString():"")+(_2e7.path?"; path="+_2e7.path:"")+(_2e7.domain?"; domain="+_2e7.domain:"")+(_2e7.secure?"; secure":"");return null;}};}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 dijitTreeExpandLeaf dijitTreeChildrenNo\" waiRole=\"presentation\"\n\t><span dojoAttachPoint=\"expandoNode\" class=\"dijitTreeExpando\" waiRole=\"presentation\"\n\t></span\n\t><span dojoAttachPoint=\"expandoNodeText\" class=\"dijitExpandoText\" waiRole=\"presentation\"\n\t></span\n\t>\n\t<div dojoAttachPoint=\"contentNode\" class=\"dijitTreeContent\" waiRole=\"presentation\">\n\t\t<div dojoAttachPoint=\"iconNode\" class=\"dijitInline dijitTreeIcon\" waiRole=\"presentation\"></div>\n\t\t<span dojoAttachPoint=\"labelNode\" class=\"dijitTreeLabel\" wairole=\"treeitem\" tabindex=\"-1\"></span>\n\t</div>\n</div>\n",postCreate:function(){this.setLabelNode(this.label);this._setExpando();this._updateItemClasses(this.item);if(this.isExpandable){dijit.setWaiState(this.labelNode,"expanded",this.isExpanded);}},markProcessing:function(){this.state="LOADING";this._setExpando(true);},unmarkProcessing:function(){this._setExpando(false);},_updateItemClasses:function(item){this.iconNode.className="dijitInline dijitTreeIcon "+this.tree.getIconClass(item);this.labelNode.className="dijitTreeLabel "+this.tree.getLabelClass(item);},_updateLayout:function(){var _2ee=this.getParent();if(_2ee&&_2ee.isTree&&_2ee._hideRoot){dojo.addClass(this.domNode,"dijitTreeIsRoot");}else{dojo.toggleClass(this.domNode,"dijitTreeIsLast",!this.getNextSibling());}},_setExpando:function(_2ef){var _2f0=["dijitTreeExpandoLoading","dijitTreeExpandoOpened","dijitTreeExpandoClosed","dijitTreeExpandoLeaf"];var idx=_2ef?0:(this.isExpandable?(this.isExpanded?1:2):3);dojo.forEach(_2f0,function(s){dojo.removeClass(this.expandoNode,s);},this);dojo.addClass(this.expandoNode,_2f0[idx]);this.expandoNodeText.innerHTML=_2ef?"*":(this.isExpandable?(this.isExpanded?"-":"+"):"*");},expand:function(){if(this.isExpanded){return;}if(this._wipeOut.status()=="playing"){this._wipeOut.stop();}this.isExpanded=true;dijit.setWaiState(this.labelNode,"expanded","true");dijit.setWaiRole(this.containerNode,"group");this._setExpando();this._wipeIn.play();},collapse:function(){if(!this.isExpanded){return;}if(this._wipeIn.status()=="playing"){this._wipeIn.stop();}this.isExpanded=false;dijit.setWaiState(this.labelNode,"expanded","false");this._setExpando();this._wipeOut.play();},setLabelNode:function(_2f3){this.labelNode.innerHTML="";this.labelNode.appendChild(document.createTextNode(_2f3));},_setChildren:function(_2f4){this.destroyDescendants();this.state="LOADED";var _2f5={};if(_2f4&&_2f4.length>0){this.isExpandable=true;if(!this.containerNode){this.containerNode=this.tree.containerNodeTemplate.cloneNode(true);this.domNode.appendChild(this.containerNode);}dojo.forEach(_2f4,function(_2f6){var _2f7=new dijit._TreeNode(dojo.mixin({tree:this.tree,label:this.tree.getLabel(_2f6.item)},_2f6));this.addChild(_2f7);var _2f8=this.tree.store.getIdentity(_2f6.item);_2f5[_2f8]=_2f7;if(this.tree.persist){if(this.tree._openedItemIds[_2f8]){this.tree._expandNode(_2f7);}}},this);dojo.forEach(this.getChildren(),function(_2f9,idx){_2f9._updateLayout();});}else{this.isExpandable=false;}if(this._setExpando){this._setExpando(false);}if(this.isTree&&this._hideRoot){var fc=this.getChildren()[0];var _2fc=fc?fc.labelNode:this.domNode;_2fc.setAttribute("tabIndex","0");}if(this.containerNode&&!this._wipeIn){this._wipeIn=dojo.fx.wipeIn({node:this.containerNode,duration:150});this._wipeOut=dojo.fx.wipeOut({node:this.containerNode,duration:150});}return _2f5;},_addChildren:function(_2fd){var _2fe={};if(_2fd&&_2fd.length>0){dojo.forEach(_2fd,function(_2ff){var _300=new dijit._TreeNode(dojo.mixin({tree:this.tree,label:this.tree.getLabel(_2ff.item)},_2ff));this.addChild(_300);_2fe[this.tree.store.getIdentity(_2ff.item)]=_300;},this);dojo.forEach(this.getChildren(),function(_301,idx){_301._updateLayout();});}return _2fe;},deleteNode:function(node){node.destroy();var _304=this.getChildren();if(_304.length==0){this.isExpandable=false;this.collapse();}dojo.forEach(_304,function(_305){_305._updateLayout();});},makeExpandable:function(){this.isExpandable=true;this._setExpando(false);}});dojo.declare("dijit.Tree",dijit._TreeNode,{store:null,query:null,childrenAttr:["children"],templateString:"<div class=\"dijitTreeContainer\" style=\"\" waiRole=\"tree\"\n\tdojoAttachEvent=\"onclick:_onClick,onkeypress:_onKeyPress\">\n\t<div class=\"dijitTreeNode  dijitTreeIsRoot dijitTreeExpandLeaf dijitTreeChildrenNo\" waiRole=\"presentation\"\n\t\tdojoAttachPoint=\"rowNode\"\n\t\t><span dojoAttachPoint=\"expandoNode\" class=\"dijitTreeExpando\" waiRole=\"presentation\"\n\t\t></span\n\t\t><span dojoAttachPoint=\"expandoNodeText\" class=\"dijitExpandoText\" waiRole=\"presentation\"\n\t\t></span\n\t\t>\n\t\t<div dojoAttachPoint=\"contentNode\" class=\"dijitTreeContent\" waiRole=\"presentation\">\n\t\t\t<div dojoAttachPoint=\"iconNode\" class=\"dijitInline dijitTreeIcon\" waiRole=\"presentation\"></div>\n\t\t\t<span dojoAttachPoint=\"labelNode\" class=\"dijitTreeLabel\" wairole=\"treeitem\" tabindex=\"0\"></span>\n\t\t</div>\n\t</div>\n</div>\n",isExpandable:true,isTree:true,persist:true,dndController:null,dndParams:["onDndDrop","itemCreator","onDndCancel","checkAcceptance","checkItemAcceptance"],onDndDrop:null,itemCreator:null,onDndCancel:null,checkAcceptance:null,checkItemAcceptance:null,_publish:function(_306,_307){dojo.publish(this.id,[dojo.mixin({tree:this,event:_306},_307||{})]);},postMixInProperties:function(){this.tree=this;this.lastFocused=this.labelNode;this._itemNodeMap={};this._hideRoot=!this.label;if(!this.store.getFeatures()["dojo.data.api.Identity"]){throw new Error("dijit.tree requires access to a store supporting the dojo.data Identity api");}if(!this.cookieName){this.cookieName=this.id+"SaveStateCookie";}if(this.store.getFeatures()["dojo.data.api.Notification"]){this.connect(this.store,"onNew","_onNewItem");this.connect(this.store,"onDelete","_onDeleteItem");this.connect(this.store,"onSet","_onSetItem");}},postCreate:function(){if(this.persist){var _308=dojo.cookie(this.cookieName);this._openedItemIds={};if(_308){dojo.forEach(_308.split(","),function(item){this._openedItemIds[item]=true;},this);}}var div=document.createElement("div");div.style.display="none";div.className="dijitTreeContainer";dijit.setWaiRole(div,"presentation");this.containerNodeTemplate=div;if(this._hideRoot){this.rowNode.style.display="none";}this.inherited("postCreate",arguments);this._expandNode(this);if(this.dndController){if(dojo.isString(this.dndController)){this.dndController=dojo.getObject(this.dndController);}var _30b={};for(var i=0;i<this.dndParams.length;i++){if(this[this.dndParams[i]]){_30b[this.dndParams[i]]=this[this.dndParams[i]];}}this.dndController=new this.dndController(this,_30b);}if(dojo.isIE){this.connect(this.domNode,"onactivate","_onTreeFocus");}else{if((dojo.isFF>2)||dojo.isSafari){this.connect(this.domNode,"onclick","_onTreeFocus");this.connect(this.domNode,"onkeyup","_onTreeFocus");}else{this.connect(this.domNode,"onfocus","_onTreeFocus");}}},mayHaveChildren:function(item){return dojo.some(this.childrenAttr,function(attr){return this.store.hasAttribute(item,attr);},this);},getItemChildren:function(_30f,_310){var _311=this.store;if(_30f==null){_311.fetch({query:this.query,onComplete:_310});}else{var _312=[];for(var i=0;i<this.childrenAttr.length;i++){_312=_312.concat(_311.getValues(_30f,this.childrenAttr[i]));}var _314=0;dojo.forEach(_312,function(item){if(!_311.isItemLoaded(item)){_314++;}});if(_314==0){_310(_312);}else{function onItem(item){if(--_314==0){_310(_312);}};dojo.forEach(_312,function(item){if(!_311.isItemLoaded(item)){_311.loadItem({item:item,onItem:onItem});}});}}},getItemParentIdentity:function(item,_319){return this.store.getIdentity(_319.item);},getLabel:function(item){return this.store.getLabel(item);},getIconClass:function(item){},getLabelClass:function(item){},_onLoadAllItems:function(node,_31e){var _31f=dojo.map(_31e,function(item){return {item:item,isExpandable:this.mayHaveChildren(item)};},this);dojo.mixin(this._itemNodeMap,node._setChildren(_31f));this._expandNode(node);},_onKeyPress:function(e){if(e.altKey){return;}var _322=dijit.getEnclosingWidget(e.target);if(!_322){return;}if(e.charCode){var _323=e.charCode;if(!e.altKey&&!e.ctrlKey&&!e.shiftKey&&!e.metaKey){_323=(String.fromCharCode(_323)).toLowerCase();this._onLetterKeyNav({node:_322,key:_323});dojo.stopEvent(e);}}else{var map=this._keyHandlerMap;if(!map){map={};map[dojo.keys.ENTER]="_onEnterKey";map[dojo.keys.LEFT_ARROW]="_onLeftArrow";map[dojo.keys.RIGHT_ARROW]="_onRightArrow";map[dojo.keys.UP_ARROW]="_onUpArrow";map[dojo.keys.DOWN_ARROW]="_onDownArrow";map[dojo.keys.HOME]="_onHomeKey";map[dojo.keys.END]="_onEndKey";this._keyHandlerMap=map;}if(this._keyHandlerMap[e.keyCode]){this[this._keyHandlerMap[e.keyCode]]({node:_322,item:_322.item});dojo.stopEvent(e);}}},_onEnterKey:function(_325){this._publish("execute",{item:_325.item,node:_325.node});this.onClick(_325.item,_325.node);},_onDownArrow:function(_326){var _327=this._navToNextNode(_326.node);if(_327&&_327.isTreeNode){_327.tree.focusNode(_327);return _327;}},_onUpArrow:function(_328){var _329=_328.node;var _32a=_329;var _32b=_329.getPreviousSibling();if(_32b){_329=_32b;while(_329.isExpandable&&_329.isExpanded&&_329.hasChildren()){_32a=_329;var _32c=_329.getChildren();_329=_32c[_32c.length-1];}}else{var _32d=_329.getParent();if(!(this._hideRoot&&_32d===this)){_329=_32d;}}if(_329&&_329.isTreeNode){_32a=_329;}if(_32a&&_32a.isTreeNode){_32a.tree.focusNode(_32a);return _32a;}},_onRightArrow:function(_32e){var _32f=_32e.node;var _330=_32f;if(_32f.isExpandable&&!_32f.isExpanded){this._expandNode(_32f);}else{if(_32f.hasChildren()){_32f=_32f.getChildren()[0];}}if(_32f&&_32f.isTreeNode){_330=_32f;}if(_330&&_330.isTreeNode){_330.tree.focusNode(_330);return _330;}},_onLeftArrow:function(_331){var node=_331.node;var _333=node;if(node.isExpandable&&node.isExpanded){this._collapseNode(node);}else{node=node.getParent();}if(node&&node.isTreeNode){_333=node;}if(_333&&_333.isTreeNode){_333.tree.focusNode(_333);return _333;}},_onHomeKey:function(){var _334=this._navToRootOrFirstNode();if(_334){_334.tree.focusNode(_334);return _334;}},_onEndKey:function(_335){var _336=_335.node.tree;var _337=_336;while(_337.isExpanded){var c=_337.getChildren();_337=c[c.length-1];if(_337.isTreeNode){_336=_337;}}if(_336&&_336.isTreeNode){_336.tree.focusNode(_336);return _336;}},_onLetterKeyNav:function(_339){var node=startNode=_339.node;var key=_339.key;do{node=this._navToNextNode(node);if(!node){node=this._navToRootOrFirstNode();}}while(node!==startNode&&(node.label.charAt(0).toLowerCase()!=key));if(node&&node.isTreeNode){if(node!==startNode){node.tree.focusNode(node);}return node;}},_onClick:function(e){var _33d=e.target;var _33e=dijit.getEnclosingWidget(_33d);if(!_33e||!_33e.isTreeNode){return;}if(_33d==_33e.expandoNode||_33d==_33e.expandoNodeText){if(_33e.isExpandable){this._onExpandoClick({node:_33e});}}else{this._publish("execute",{item:_33e.item,node:_33e});this.onClick(_33e.item,_33e);this.focusNode(_33e);}dojo.stopEvent(e);},_onExpandoClick:function(_33f){var node=_33f.node;if(node.isExpanded){this._collapseNode(node);}else{this._expandNode(node);}},onClick:function(item,node){},_navToNextNode:function(node){var _344;if(node.isExpandable&&node.isExpanded&&node.hasChildren()){_344=node.getChildren()[0];}else{while(node&&node.isTreeNode){_344=node.getNextSibling();if(_344){break;}node=node.getParent();}}return _344;},_navToRootOrFirstNode:function(){if(!this._hideRoot){return this;}else{var _345=this.getChildren()[0];if(_345&&_345.isTreeNode){return _345;}}},_collapseNode:function(node){if(node.isExpandable){if(node.state=="LOADING"){return;}if(this.lastFocused){if(dojo.isDescendant(this.lastFocused.domNode,node.domNode)){this.focusNode(node);}else{this.focusNode(this.lastFocused);}}node.collapse();if(this.persist&&node.item){delete this._openedItemIds[this.store.getIdentity(node.item)];this._saveState();}}},_expandNode:function(node){var t=node.tree;if(t.lastFocused){t.focusNode(t.lastFocused);}if(!node.isExpandable){return;}var _349=this.store;var _34a=this.store.getValue;switch(node.state){case "LOADING":return;case "UNCHECKED":node.markProcessing();var _34b=this;var _34c=function(_34d){node.unmarkProcessing();_34b._onLoadAllItems(node,_34d);};this.getItemChildren(node.item,_34c);break;default:if(node.expand){node.expand();if(this.persist&&node.item){this._openedItemIds[this.store.getIdentity(node.item)]=true;this._saveState();}}break;}},blurNode:function(){var node=this.lastFocused;if(!node){return;}var _34f=node.labelNode;dojo.removeClass(_34f,"dijitTreeLabelFocused");_34f.setAttribute("tabIndex","-1");this.lastFocused=null;},focusNode:function(node){node.labelNode.focus();},_onBlur:function(){if(this.lastFocused){var _351=this.lastFocused.labelNode;dojo.removeClass(_351,"dijitTreeLabelFocused");}},_onTreeFocus:function(evt){var node=dijit.getEnclosingWidget(evt.target);if(node!=this.lastFocused){this.blurNode();}var _354=node.labelNode;_354.setAttribute("tabIndex","0");dojo.addClass(_354,"dijitTreeLabelFocused");this.lastFocused=node;},_onNewItem:function(item,_356){var _357;if(_356){var _358=this._itemNodeMap[this.getItemParentIdentity(item,_356)];if(!_358||dojo.indexOf(this.childrenAttr,_356.attribute)==-1){return;}}var _359={item:item,isExpandable:this.mayHaveChildren(item)};if(_358){if(!_358.isExpandable){_358.makeExpandable();}if(_358.state=="LOADED"||_358.isExpanded){var _35a=_358._addChildren([_359]);}}else{var _35a=this._addChildren([_359]);}if(_35a){dojo.mixin(this._itemNodeMap,_35a);}},_onDeleteItem:function(item){var _35c=this.store.getIdentity(item);var node=this._itemNodeMap[_35c];if(node){var _35e=node.getParent();_35e.deleteNode(node);this._itemNodeMap[_35c]=null;}},_onSetItem:function(item){var _360=this.store.getIdentity(item);node=this._itemNodeMap[_360];if(node){node.setLabelNode(this.getLabel(item));node._updateItemClasses(item);}},_saveState:function(){if(!this.persist){return;}var ary=[];for(var id in this._openedItemIds){ary.push(id);}dojo.cookie(this.cookieName,ary.join(","));}});}if(!dojo._hasResource["dijit.form.TextBox"]){dojo._hasResource["dijit.form.TextBox"]=true;dojo.provide("dijit.form.TextBox");dojo.declare("dijit.form.TextBox",dijit.form._FormWidget,{trim:false,uppercase:false,lowercase:false,propercase:false,maxLength:"",templateString:"<input class=\"dojoTextBox\" dojoAttachPoint='textbox,focusNode' name=\"${name}\"\n\tdojoAttachEvent='onmouseenter:_onMouse,onmouseleave:_onMouse,onfocus:_onMouse,onblur:_onMouse,onkeyup,onkeypress:_onKeyPress'\n\tautocomplete=\"off\" type=\"${type}\"\n\t/>\n",baseClass:"dijitTextBox",attributeMap:dojo.mixin(dojo.clone(dijit.form._FormWidget.prototype.attributeMap),{maxLength:"focusNode"}),getDisplayedValue:function(){return this.filter(this.textbox.value);},getValue:function(){return this.parse(this.getDisplayedValue(),this.constraints);},setValue:function(_363,_364,_365){var _366=this.filter(_363);if((typeof _366==typeof _363)&&(_365==null||_365==undefined)){_365=this.format(_366,this.constraints);}if(_365!=null&&_365!=undefined){this.textbox.value=_365;}dijit.form.TextBox.superclass.setValue.call(this,_366,_364);},setDisplayedValue:function(_367){this.textbox.value=_367;this.setValue(this.getValue(),true);},forWaiValuenow:function(){return this.getDisplayedValue();},format:function(_368,_369){return ((_368==null||_368==undefined)?"":(_368.toString?_368.toString():_368));},parse:function(_36a,_36b){return _36a;},postCreate:function(){this.textbox.setAttribute("value",this.getDisplayedValue());this.inherited("postCreate",arguments);if(this.srcNodeRef){dojo.style(this.textbox,"cssText",this.style);this.textbox.className+=" "+this["class"];}this._layoutHack();},_layoutHack:function(){if(dojo.isFF==2&&this.domNode.tagName=="TABLE"){var node=this.domNode;var old=node.style.opacity;node.style.opacity="0.999";setTimeout(function(){node.style.opacity=old;},0);}},filter:function(val){if(val==undefined||val==null){return "";}else{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;},_onBlur:function(){this.setValue(this.getValue(),(this.isValid?this.isValid():true));},onkeyup:function(){}});}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(_370){},width:"100%",value:"",noValueIndicator:"<span style='font-family: wingdings; text-decoration: underline;'>&nbsp;&nbsp;&nbsp;&nbsp;&#x270d;&nbsp;&nbsp;&nbsp;&nbsp;</span>",postMixInProperties:function(){this.inherited("postMixInProperties",arguments);this.displayNode=this.srcNodeRef;var _371={ondijitclick:"_onClick",onmouseover:"_onMouseOver",onmouseout:"_onMouseOut",onfocus:"_onMouseOver",onblur:"_onMouseOut"};for(var name in _371){this.connect(this.displayNode,name,_371[name]);}dijit.setWaiRole(this.displayNode,"button");if(!this.displayNode.getAttribute("tabIndex")){this.displayNode.setAttribute("tabIndex",0);}if(!this.value){this.value=this.displayNode.innerHTML;}this._setDisplayValue(this.value);},_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(){this.editing=true;var _374=(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,"&"));var _375=document.createElement("span");dojo.place(_375,this.domNode,"before");var ew=this.editWidget=new dijit._InlineEditor({value:dojo.trim(_374),autoSave:this.autoSave,buttonSave:this.buttonSave,buttonCancel:this.buttonCancel,renderAsHtml:this.renderAsHtml,editor:this.editor,editorParams:this.editorParams,style:dojo.getComputedStyle(this.displayNode),save:dojo.hitch(this,"save"),cancel:dojo.hitch(this,"cancel"),width:this.width},_375);var ews=ew.domNode.style;this.displayNode.style.display="none";ews.position="static";ews.visibility="visible";this.domNode=ew.domNode;setTimeout(function(){ew.focus();},100);},_showText:function(_378){this.displayNode.style.display="";var ews=this.editWidget.domNode.style;ews.position="absolute";ews.visibility="hidden";this.domNode=this.displayNode;var _37a=this;setTimeout(function(){if(_378){dijit.focus(_37a.displayNode);}_37a.editWidget.destroy();delete _37a.editWidget;},100);},save:function(_37b){this.editing=false;this.value=this.editWidget.getValue()+"";if(this.renderAsHtml){this.value=this.value.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;").replace("\n","<br>");}this._setDisplayValue(this.value);this.onChange(this.value);this._showText(_37b);},_setDisplayValue:function(val){this.displayNode.innerHTML=val||this.noValueIndicator;},cancel:function(_37d){this.editing=false;this._showText(_37d);}});dojo.declare("dijit._InlineEditor",[dijit._Widget,dijit._Templated],{templateString:"<fieldset dojoAttachPoint=\"editNode\" waiRole=\"presentation\" style=\"position: absolute; visibility:hidden\" class=\"dijitReset dijitInline\"\n\tdojoAttachEvent=\"onkeypress: _onKeyPress\" \n\t><input dojoAttachPoint=\"editorPlaceholder\"\n\t/><span dojoAttachPoint=\"buttonContainer\"\n\t\t><button class='saveButton' dojoAttachPoint=\"saveButton\" dojoType=\"dijit.form.Button\" dojoAttachEvent=\"onClick:save\">${buttonSave}</button\n\t\t><button class='cancelButton' dojoAttachPoint=\"cancelButton\" dojoType=\"dijit.form.Button\" dojoAttachEvent=\"onClick:cancel\">${buttonCancel}</button\n\t></span\n></fieldset>\n",widgetsInTemplate:true,postMixInProperties:function(){this.inherited("postMixInProperties",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 ew=this.editWidget=new cls(this.editorParams,this.editorPlaceholder);var _381=this.style;dojo.forEach(["fontWeight","fontFamily","fontSize","fontStyle"],function(prop){ew.focusNode.style[prop]=_381[prop];},this);dojo.forEach(["marginTop","marginBottom","marginLeft","marginRight"],function(prop){this.domNode.style[prop]=_381[prop];},this);if(this.width=="100%"){ew.domNode.style.width="100%";this.domNode.style.display="block";}else{ew.domNode.style.width=this.width+(Number(this.width)==this.width?"px":"");}this.connect(this.editWidget,"onChange","_onChange");this._ignoreNextOnChange=true;(this.editWidget.setDisplayedValue||this.editWidget.setValue).call(this.editWidget,this.value);this._initialText=this.getValue();if(this.autoSave){this.buttonContainer.style.display="none";}},destroy:function(){this.editWidget.destroy();this.inherited(arguments);},getValue:function(){var ew=this.editWidget;return ew.getDisplayedValue?ew.getDisplayedValue():ew.getValue();},_onKeyPress:function(e){if(this._exitInProgress){return;}if(this.autoSave){if(e.keyCode==dojo.keys.ESCAPE){dojo.stopEvent(e);this._exitInProgress=true;this.cancel(true);}else{if(e.keyCode==dojo.keys.ENTER){dojo.stopEvent(e);this._exitInProgress=true;this.save(true);}}}else{var _386=this;setTimeout(function(){_386.saveButton.setDisabled(_386.getValue()==_386._initialText);},100);}},_onBlur:function(){if(this._exitInProgress){return;}if(this.autoSave){this._exitInProgress=true;if(this.getValue()==this._initialText){this.cancel(false);}else{this.save(false);}}},enableSave:function(){return this.editWidget.isValid?this.editWidget.isValid():true;},_onChange:function(){if(this._ignoreNextOnChange){delete this._ignoreNextOnChange;return;}if(this._exitInProgress){return;}if(this.autoSave){this._exitInProgress=true;this.save(true);}else{this.saveButton.setDisabled((this.getValue()==this._initialText)||!this.enableSave());}},enableSave:function(){return this.editWidget.isValid?this.editWidget.isValid():true;},focus:function(){this.editWidget.focus();dijit.selectInputText(this.editWidget.focusNode);}});dijit.selectInputText=function(_387){var _388=dojo.global;var _389=dojo.doc;_387=dojo.byId(_387);if(_389["selection"]&&dojo.body()["createTextRange"]){if(_387.createTextRange){var _38a=_387.createTextRange();_38a.moveStart("character",0);_38a.moveEnd("character",_387.value.length);_38a.select();}}else{if(_388["getSelection"]){var _38b=_388.getSelection();if(_387.setSelectionRange){_387.setSelectionRange(0,_387.value.length);}}}_387.focus();};}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:"<fieldset class=\"dijitReset dijitInline\" waiRole=\"presentation\"\n\t><input\n\t \ttype=\"${type}\" name=\"${name}\"\n\t\tclass=\"dijitReset dijitCheckBoxInput\"\n\t\tdojoAttachPoint=\"inputNode,focusNode\"\n\t \tdojoAttachEvent=\"onmouseover:_onMouse,onmouseout:_onMouse,onclick:_onClick\"\n/></fieldset>\n",baseClass:"dijitCheckBox",type:"checkbox",value:"on",postCreate:function(){dojo.setSelectable(this.inputNode,false);this.setChecked(this.checked);this.inherited(arguments);},setChecked:function(_38c){if(dojo.isIE){if(_38c){this.inputNode.setAttribute("checked","checked");}else{this.inputNode.removeAttribute("checked");}}else{this.inputNode.checked=_38c;}this.inherited(arguments);},setValue:function(_38d){if(_38d==null){_38d="";}this.inputNode.value=_38d;dijit.form.CheckBox.superclass.setValue.call(this,_38d);}});dojo.declare("dijit.form.RadioButton",dijit.form.CheckBox,{type:"radio",baseClass:"dijitRadio",_groups:{},postCreate:function(){(this._groups[this.name]=this._groups[this.name]||[]).push(this);this.inherited(arguments);},uninitialize:function(){dojo.forEach(this._groups[this.name],function(_38e,i,arr){if(_38e===this){arr.splice(i,1);return;}},this);},setChecked:function(_391){if(_391){dojo.forEach(this._groups[this.name],function(_392){if(_392!=this&&_392.checked){_392.setChecked(false);}},this);}this.inherited(arguments);},_clicked:function(e){if(!this.checked){this.setChecked(true);}}});}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(_394,_395){var rxp="^";var c=null;for(var i=0;i<_394.length;i++){c=_394.charAt(i);switch(c){case "\\":rxp+=c;i++;rxp+=_394.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(_395){return new RegExp(rxp,"i");}else{return new RegExp(rxp);}};}if(!dojo._hasResource["dojo.data.util.sorter"]){dojo._hasResource["dojo.data.util.sorter"]=true;dojo.provide("dojo.data.util.sorter");dojo.data.util.sorter.basicComparator=function(a,b){var ret=0;if(a>b||typeof a==="undefined"||a===null){ret=1;}else{if(a<b||typeof b==="undefined"||b===null){ret=-1;}}return ret;};dojo.data.util.sorter.createSortFunction=function(_39c,_39d){var _39e=[];function createSortFunction(attr,dir){return function(_3a1,_3a2){var a=_39d.getValue(_3a1,attr);var b=_39d.getValue(_3a2,attr);var _3a5=null;if(_39d.comparatorMap){if(typeof attr!=="string"){attr=_39d.getIdentity(attr);}_3a5=_39d.comparatorMap[attr]||dojo.data.util.sorter.basicComparator;}_3a5=_3a5||dojo.data.util.sorter.basicComparator;return dir*_3a5(a,b);};};for(var i=0;i<_39c.length;i++){sortAttribute=_39c[i];if(sortAttribute.attribute){var _3a7=(sortAttribute.descending)?-1:1;_39e.push(createSortFunction(sortAttribute.attribute,_3a7));}}return function(rowA,rowB){var i=0;while(i<_39e.length){var ret=_39e[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(_3ac){_3ac=_3ac||{};if(!_3ac.store){_3ac.store=this;}var self=this;var _3ae=function(_3af,_3b0){if(_3b0.onError){var _3b1=_3b0.scope||dojo.global;_3b0.onError.call(_3b1,_3af,_3b0);}};var _3b2=function(_3b3,_3b4){var _3b5=_3b4.abort||null;var _3b6=false;var _3b7=_3b4.start?_3b4.start:0;var _3b8=_3b4.count?(_3b7+_3b4.count):_3b3.length;_3b4.abort=function(){_3b6=true;if(_3b5){_3b5.call(_3b4);}};var _3b9=_3b4.scope||dojo.global;if(!_3b4.store){_3b4.store=self;}if(_3b4.onBegin){_3b4.onBegin.call(_3b9,_3b3.length,_3b4);}if(_3b4.sort){_3b3.sort(dojo.data.util.sorter.createSortFunction(_3b4.sort,self));}if(_3b4.onItem){for(var i=_3b7;(i<_3b3.length)&&(i<_3b8);++i){var item=_3b3[i];if(!_3b6){_3b4.onItem.call(_3b9,item,_3b4);}}}if(_3b4.onComplete&&!_3b6){var _3bc=null;if(!_3b4.onItem){_3bc=_3b3.slice(_3b7,_3b8);}_3b4.onComplete.call(_3b9,_3bc,_3b4);}};this._fetchItems(_3ac,_3b2,_3ae);return _3ac;};}if(!dojo._hasResource["dojo.data.ItemFileReadStore"]){dojo._hasResource["dojo.data.ItemFileReadStore"]=true;dojo.provide("dojo.data.ItemFileReadStore");dojo.declare("dojo.data.ItemFileReadStore",null,{constructor:function(_3bd){this._arrayOfAllItems=[];this._arrayOfTopLevelItems=[];this._loadFinished=false;this._jsonFileUrl=_3bd.url;this._jsonData=_3bd.data;this._datatypeMap=_3bd.typeMap||{};if(!this._datatypeMap["Date"]){this._datatypeMap["Date"]={type:Date,deserialize:function(_3be){return dojo.date.stamp.fromISOString(_3be);}};}this._features={"dojo.data.api.Read":true,"dojo.data.api.Identity":true};this._itemsByIdentity=null;this._storeRefPropName="_S";this._itemNumPropName="_0";this._rootItemPropName="_RI";this._loadInProgress=false;this._queuedFetches=[];},url:"",_assertIsItem:function(item){if(!this.isItem(item)){throw new Error("dojo.data.ItemFileReadStore: Invalid item argument.");}},_assertIsAttribute:function(_3c0){if(typeof _3c0!=="string"){throw new Error("dojo.data.ItemFileReadStore: Invalid attribute argument.");}},getValue:function(item,_3c2,_3c3){var _3c4=this.getValues(item,_3c2);return (_3c4.length>0)?_3c4[0]:_3c3;},getValues:function(item,_3c6){this._assertIsItem(item);this._assertIsAttribute(_3c6);return item[_3c6]||[];},getAttributes:function(item){this._assertIsItem(item);var _3c8=[];for(var key in item){if((key!==this._storeRefPropName)&&(key!==this._itemNumPropName)&&(key!==this._rootItemPropName)){_3c8.push(key);}}return _3c8;},hasAttribute:function(item,_3cb){return this.getValues(item,_3cb).length>0;},containsValue:function(item,_3cd,_3ce){var _3cf=undefined;if(typeof _3ce==="string"){_3cf=dojo.data.util.filter.patternToRegExp(_3ce,false);}return this._containsValue(item,_3cd,_3ce,_3cf);},_containsValue:function(item,_3d1,_3d2,_3d3){return dojo.some(this.getValues(item,_3d1),function(_3d4){if(_3d4!==null&&!dojo.isObject(_3d4)&&_3d3){if(_3d4.toString().match(_3d3)){return true;}}else{if(_3d2===_3d4){return true;}}});},isItem:function(_3d5){if(_3d5&&_3d5[this._storeRefPropName]===this){if(this._arrayOfAllItems[_3d5[this._itemNumPropName]]===_3d5){return true;}}return false;},isItemLoaded:function(_3d6){return this.isItem(_3d6);},loadItem:function(_3d7){this._assertIsItem(_3d7.item);},getFeatures:function(){return this._features;},getLabel:function(item){if(this._labelAttr&&this.isItem(item)){return this.getValue(item,this._labelAttr);}return undefined;},getLabelAttributes:function(item){if(this._labelAttr){return [this._labelAttr];}return null;},_fetchItems:function(_3da,_3db,_3dc){var self=this;var _3de=function(_3df,_3e0){var _3e1=[];if(_3df.query){var _3e2=_3df.queryOptions?_3df.queryOptions.ignoreCase:false;var _3e3={};for(var key in _3df.query){var _3e5=_3df.query[key];if(typeof _3e5==="string"){_3e3[key]=dojo.data.util.filter.patternToRegExp(_3e5,_3e2);}}for(var i=0;i<_3e0.length;++i){var _3e7=true;var _3e8=_3e0[i];if(_3e8===null){_3e7=false;}else{for(var key in _3df.query){var _3e5=_3df.query[key];if(!self._containsValue(_3e8,key,_3e5,_3e3[key])){_3e7=false;}}}if(_3e7){_3e1.push(_3e8);}}_3db(_3e1,_3df);}else{for(var i=0;i<_3e0.length;++i){var item=_3e0[i];if(item!==null){_3e1.push(item);}}_3db(_3e1,_3df);}};if(this._loadFinished){_3de(_3da,this._getItemsArray(_3da.queryOptions));}else{if(this._jsonFileUrl){if(this._loadInProgress){this._queuedFetches.push({args:_3da,filter:_3de});}else{this._loadInProgress=true;var _3ea={url:self._jsonFileUrl,handleAs:"json-comment-optional"};var _3eb=dojo.xhrGet(_3ea);_3eb.addCallback(function(data){try{self._getItemsFromLoadedData(data);self._loadFinished=true;self._loadInProgress=false;_3de(_3da,self._getItemsArray(_3da.queryOptions));self._handleQueuedFetches();}catch(e){self._loadFinished=true;self._loadInProgress=false;_3dc(e,_3da);}});_3eb.addErrback(function(_3ed){self._loadInProgress=false;_3dc(_3ed,_3da);});}}else{if(this._jsonData){try{this._loadFinished=true;this._getItemsFromLoadedData(this._jsonData);this._jsonData=null;_3de(_3da,this._getItemsArray(_3da.queryOptions));}catch(e){_3dc(e,_3da);}}else{_3dc(new Error("dojo.data.ItemFileReadStore: No JSON source data was provided as either URL or a nested Javascript object."),_3da);}}}},_handleQueuedFetches:function(){if(this._queuedFetches.length>0){for(var i=0;i<this._queuedFetches.length;i++){var _3ef=this._queuedFetches[i];var _3f0=_3ef.args;var _3f1=_3ef.filter;if(_3f1){_3f1(_3f0,this._getItemsArray(_3f0.queryOptions));}else{this.fetchItemByIdentity(_3f0);}}this._queuedFetches=[];}},_getItemsArray:function(_3f2){if(_3f2&&_3f2.deep){return this._arrayOfAllItems;}return this._arrayOfTopLevelItems;},close:function(_3f3){},_getItemsFromLoadedData:function(_3f4){function valueIsAnItem(_3f5){var _3f6=((_3f5!=null)&&(typeof _3f5=="object")&&(!dojo.isArray(_3f5))&&(!dojo.isFunction(_3f5))&&(_3f5.constructor==Object)&&(typeof _3f5._reference=="undefined")&&(typeof _3f5._type=="undefined")&&(typeof _3f5._value=="undefined"));return _3f6;};var self=this;function addItemAndSubItemsToArrayOfAllItems(_3f8){self._arrayOfAllItems.push(_3f8);for(var _3f9 in _3f8){var _3fa=_3f8[_3f9];if(_3fa){if(dojo.isArray(_3fa)){var _3fb=_3fa;for(var k=0;k<_3fb.length;++k){var _3fd=_3fb[k];if(valueIsAnItem(_3fd)){addItemAndSubItemsToArrayOfAllItems(_3fd);}}}else{if(valueIsAnItem(_3fa)){addItemAndSubItemsToArrayOfAllItems(_3fa);}}}}};this._labelAttr=_3f4.label;var i;var item;this._arrayOfAllItems=[];this._arrayOfTopLevelItems=_3f4.items;for(i=0;i<this._arrayOfTopLevelItems.length;++i){item=this._arrayOfTopLevelItems[i];addItemAndSubItemsToArrayOfAllItems(item);item[this._rootItemPropName]=true;}var _400={};var key;for(i=0;i<this._arrayOfAllItems.length;++i){item=this._arrayOfAllItems[i];for(key in item){if(key!==this._rootItemPropName){var _402=item[key];if(_402!==null){if(!dojo.isArray(_402)){item[key]=[_402];}}else{item[key]=[null];}}_400[key]=key;}}while(_400[this._storeRefPropName]){this._storeRefPropName+="_";}while(_400[this._itemNumPropName]){this._itemNumPropName+="_";}var _403;var _404=_3f4.identifier;if(_404){this._itemsByIdentity={};this._features["dojo.data.api.Identity"]=_404;for(i=0;i<this._arrayOfAllItems.length;++i){item=this._arrayOfAllItems[i];_403=item[_404];var _405=_403[0];if(!this._itemsByIdentity[_405]){this._itemsByIdentity[_405]=item;}else{if(this._jsonFileUrl){throw new Error("dojo.data.ItemFileReadStore:  The json data as specified by: ["+this._jsonFileUrl+"] is malformed.  Items within the list have identifier: ["+_404+"].  Value collided: ["+_405+"]");}else{if(this._jsonData){throw new Error("dojo.data.ItemFileReadStore:  The json data provided by the creation arguments is malformed.  Items within the list have identifier: ["+_404+"].  Value collided: ["+_405+"]");}}}}}else{this._features["dojo.data.api.Identity"]=Number;}for(i=0;i<this._arrayOfAllItems.length;++i){item=this._arrayOfAllItems[i];item[this._storeRefPropName]=this;item[this._itemNumPropName]=i;}for(i=0;i<this._arrayOfAllItems.length;++i){item=this._arrayOfAllItems[i];for(key in item){_403=item[key];for(var j=0;j<_403.length;++j){_402=_403[j];if(_402!==null&&typeof _402=="object"){if(_402._type&&_402._value){var type=_402._type;var _408=this._datatypeMap[type];if(!_408){throw new Error("dojo.data.ItemFileReadStore: in the typeMap constructor arg, no object class was specified for the datatype '"+type+"'");}else{if(dojo.isFunction(_408)){_403[j]=new _408(_402._value);}else{if(dojo.isFunction(_408.deserialize)){_403[j]=_408.deserialize(_402._value);}else{throw new Error("dojo.data.ItemFileReadStore: Value provided in typeMap was neither a constructor, nor a an object with a deserialize function");}}}}if(_402._reference){var _409=_402._reference;if(dojo.isString(_409)){_403[j]=this._itemsByIdentity[_409];}else{for(var k=0;k<this._arrayOfAllItems.length;++k){var _40b=this._arrayOfAllItems[k];var _40c=true;for(var _40d in _409){if(_40b[_40d]!=_409[_40d]){_40c=false;}}if(_40c){_403[j]=_40b;}}}}}}}}},getIdentity:function(item){var _40f=this._features["dojo.data.api.Identity"];if(_40f===Number){return item[this._itemNumPropName];}else{var _410=item[_40f];if(_410){return _410[0];}}return null;},fetchItemByIdentity:function(_411){if(!this._loadFinished){var self=this;if(this._jsonFileUrl){if(this._loadInProgress){this._queuedFetches.push({args:_411});}else{this._loadInProgress=true;var _413={url:self._jsonFileUrl,handleAs:"json-comment-optional"};var _414=dojo.xhrGet(_413);_414.addCallback(function(data){var _416=_411.scope?_411.scope:dojo.global;try{self._getItemsFromLoadedData(data);self._loadFinished=true;self._loadInProgress=false;var item=self._getItemByIdentity(_411.identity);if(_411.onItem){_411.onItem.call(_416,item);}self._handleQueuedFetches();}catch(error){self._loadInProgress=false;if(_411.onError){_411.onError.call(_416,error);}}});_414.addErrback(function(_418){self._loadInProgress=false;if(_411.onError){var _419=_411.scope?_411.scope:dojo.global;_411.onError.call(_419,_418);}});}}else{if(this._jsonData){self._getItemsFromLoadedData(self._jsonData);self._jsonData=null;self._loadFinished=true;var item=self._getItemByIdentity(_411.identity);if(_411.onItem){var _41b=_411.scope?_411.scope:dojo.global;_411.onItem.call(_41b,item);}}}}else{var item=this._getItemByIdentity(_411.identity);if(_411.onItem){var _41b=_411.scope?_411.scope:dojo.global;_411.onItem.call(_41b,item);}}},_getItemByIdentity:function(_41c){var item=null;if(this._itemsByIdentity){item=this._itemsByIdentity[_41c];}else{item=this._arrayOfAllItems[_41c];}if(item===undefined){item=null;}return item;},getIdentityAttributes:function(item){var _41f=this._features["dojo.data.api.Identity"];if(_41f===Number){return null;}else{return [_41f];}},_forceLoad:function(){var self=this;if(this._jsonFileUrl){var _421={url:self._jsonFileUrl,handleAs:"json-comment-optional",sync:true};var _422=dojo.xhrGet(_421);_422.addCallback(function(data){try{if(self._loadInProgress!==true&&!self._loadFinished){self._getItemsFromLoadedData(data);self._loadFinished=true;}}catch(e){console.log(e);throw e;}});_422.addErrback(function(_424){throw _424;});}else{if(this._jsonData){self._getItemsFromLoadedData(self._jsonData);self._jsonData=null;self._loadFinished=true;}}}});dojo.extend(dojo.data.ItemFileReadStore,dojo.data.util.simpleFetch);}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:"<table style=\"display: -moz-inline-stack;\" class=\"dijit dijitReset dijitInlineTable\" cellspacing=\"0\" cellpadding=\"0\"\n\tid=\"widget_${id}\" name=\"${name}\"\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse\" waiRole=\"presentation\"\n\t><tr class=\"dijitReset\"\n\t\t><td class=\"dijitReset dijitInputField\" width=\"100%\"\n\t\t\t><input dojoAttachPoint='textbox,focusNode' dojoAttachEvent='onfocus,onblur:_onMouse,onkeyup,onkeypress:_onKeyPress' autocomplete=\"off\"\n\t\t\ttype='${type}' name='${name}'\n\t\t/></td\n\t\t><td class=\"dijitReset dijitValidationIconField\" width=\"0%\"\n\t\t\t><div dojoAttachPoint='iconNode' class='dijitValidationIcon'></div><div class='dijitValidationIconText'>&Chi;</div\n\t\t></td\n\t></tr\n></table>\n",baseClass:"dijitTextBox",required:false,promptMessage:"",invalidMessage:"$_unset_$",constraints:{},regExp:".*",regExpGen:function(_425){return this.regExp;},state:"",setValue:function(){this.inherited("setValue",arguments);this.validate(false);},validator:function(_426,_427){return (new RegExp("^("+this.regExpGen(_427)+")"+(this.required?"":"?")+"$")).test(_426)&&(!this.required||!this._isEmpty(_426))&&(this._isEmpty(_426)||this.parse(_426,_427)!==null);},isValid:function(_428){return this.validator(this.textbox.value,this.constraints);},_isEmpty:function(_429){return /^\s*$/.test(_429);},getErrorMessage:function(_42a){return this.invalidMessage;},getPromptMessage:function(_42b){return this.promptMessage;},validate:function(_42c){var _42d="";var _42e=this.isValid(_42c);var _42f=this._isEmpty(this.textbox.value);this.state=(_42e||(!this._hasBeenBlurred&&_42f))?"":"Error";this._setStateClass();dijit.setWaiState(this.focusNode,"invalid",(_42e?"false":"true"));if(_42c){if(_42f){_42d=this.getPromptMessage(true);}if(!_42d&&!_42e){_42d=this.getErrorMessage(true);}}this._displayMessage(_42d);},_message:"",_displayMessage:function(_430){if(this._message==_430){return;}this._message=_430;this.displayMessage(_430);},displayMessage:function(_431){if(_431){dijit.showTooltip(_431,this.domNode);}else{dijit.hideTooltip(this.domNode);}},_hasBeenBlurred:false,_onBlur:function(evt){this._hasBeenBlurred=true;this.validate(false);this.inherited("_onBlur",arguments);},onfocus:function(evt){this.validate(true);this._onMouse(evt);},onkeyup:function(evt){this.onfocus(evt);},constructor:function(){this.constraints={};},postMixInProperties:function(){this.inherited("postMixInProperties",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;}});dojo.declare("dijit.form.MappedTextBox",dijit.form.ValidationTextBox,{serialize:function(val,_437){return (val.toString?val.toString():"");},toString:function(){var val=this.filter(this.getValue());return (val!=null)?((typeof val=="string")?val:this.serialize(val,this.constraints)):"";},validate:function(){this.valueNode.value=this.toString();this.inherited("validate",arguments);},postCreate:function(){var _439=this.textbox;var _43a=(this.valueNode=document.createElement("input"));_43a.setAttribute("type",_439.type);_43a.setAttribute("value",this.toString());dojo.style(_43a,"display","none");_43a.name=this.textbox.name;this.textbox.name="_"+this.textbox.name+"_displayed_";this.textbox.removeAttribute("name");dojo.place(_43a,_439,"after");this.inherited("postCreate",arguments);}});dojo.declare("dijit.form.RangeBoundTextBox",dijit.form.MappedTextBox,{rangeMessage:"",compare:function(val1,val2){return val1-val2;},rangeCheck:function(_43d,_43e){var _43f=(typeof _43e.min!="undefined");var _440=(typeof _43e.max!="undefined");if(_43f||_440){return (!_43f||this.compare(_43d,_43e.min)>=0)&&(!_440||this.compare(_43d,_43e.max)<=0);}else{return true;}},isInRange:function(_441){return this.rangeCheck(this.getValue(),this.constraints);},isValid:function(_442){return this.inherited("isValid",arguments)&&((this._isEmpty(this.textbox.value)&&!this.required)||this.isInRange(_442));},getErrorMessage:function(_443){if(dijit.form.RangeBoundTextBox.superclass.isValid.call(this,false)&&!this.isInRange(_443)){return this.rangeMessage;}else{return this.inherited("getErrorMessage",arguments);}},postMixInProperties:function(){this.inherited("postMixInProperties",arguments);if(!this.rangeMessage){this.messages=dojo.i18n.getLocalization("dijit.form","validate",this.lang);this.rangeMessage=this.messages.rangeMessage;}},postCreate:function(){this.inherited("postCreate",arguments);if(typeof this.constraints.min!="undefined"){dijit.setWaiState(this.focusNode,"valuemin",this.constraints.min);}if(typeof this.constraints.max!="undefined"){dijit.setWaiState(this.focusNode,"valuemax",this.constraints.max);}}});}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,query:{},autoComplete:true,searchDelay:100,searchAttr:"name",ignoreCase:true,hasDownArrow:true,_hasFocus:false,templateString:"<table class=\"dijit dijitReset dijitInlineTable dijitLeft\" cellspacing=\"0\" cellpadding=\"0\"\n\tid=\"widget_${id}\" name=\"${name}\" dojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse\" waiRole=\"presentation\"\n\t><tr class=\"dijitReset\"\n\t\t><td class='dijitReset dijitStretch dijitInputField' width=\"100%\"\n\t\t\t><input type=\"text\" autocomplete=\"off\" name=\"${name}\"\n\t\t\tdojoAttachEvent=\"onkeypress, onkeyup, onfocus, compositionend\"\n\t\t\tdojoAttachPoint=\"textbox,focusNode\" waiRole=\"combobox\"\n\t\t/></td\n\t\t><td class=\"dijitReset dijitValidationIconField\" width=\"0%\"\n\t\t\t><div dojoAttachPoint='iconNode' class='dijitValidationIcon'></div\n\t\t\t><div class='dijitValidationIconText'>&Chi;</div\n\t\t></td\n\t\t><td class='dijitReset dijitRight dijitButtonNode dijitDownArrowButton' width=\"0%\"\n\t\t\tdojoAttachPoint=\"downArrowNode\"\n\t\t\tdojoAttachEvent=\"onmousedown:_onArrowMouseDown,onmouseup:_onMouse,onmouseenter:_onMouse,onmouseleave:_onMouse\"\n\t\t\t><div class=\"dijitDownArrowButtonInner\" waiRole=\"presentation\"\n\t\t\t\t><div class=\"dijitDownArrowButtonChar\">&#9660;</div\n\t\t\t></div\n\t\t></td\t\n\t></tr\n></table>\n",baseClass:"dijitComboBox",_lastDisplayedValue:"",getValue:function(){return dijit.form.TextBox.superclass.getValue.apply(this,arguments);},setDisplayedValue:function(_444){this._lastDisplayedValue=_444;this.setValue(_444,true);},_getCaretPos:function(_445){if(typeof (_445.selectionStart)=="number"){return _445.selectionStart;}else{if(dojo.isIE){var tr=document.selection.createRange().duplicate();var ntr=_445.createTextRange();tr.move("character",0);ntr.move("character",0);try{ntr.setEndPoint("EndToEnd",tr);return String(ntr.text).replace(/\r/g,"").length;}catch(e){return 0;}}}},_setCaretPos:function(_448,_449){_449=parseInt(_449);this._setSelectedRange(_448,_449,_449);},_setSelectedRange:function(_44a,_44b,end){if(!end){end=_44a.value.length;}if(_44a.setSelectionRange){dijit.focus(_44a);_44a.setSelectionRange(_44b,end);}else{if(_44a.createTextRange){var _44d=_44a.createTextRange();with(_44d){collapse(true);moveEnd("character",end);moveStart("character",_44b);select();}}else{_44a.value=_44a.value;_44a.blur();dijit.focus(_44a);var dist=parseInt(_44a.value.length)-end;var _44f=String.fromCharCode(37);var tcc=_44f.charCodeAt(0);for(var x=0;x<dist;x++){var te=document.createEvent("KeyEvents");te.initKeyEvent("keypress",true,true,null,false,false,false,false,tcc,tcc);_44a.dispatchEvent(te);}}}},onkeypress:function(evt){if(evt.altKey||(evt.ctrlKey&&evt.charCode!=118)){return;}var _454=false;this.item=null;if(this._isShowingNow){this._popupWidget.handleKey(evt);}switch(evt.keyCode){case dojo.keys.PAGE_DOWN:case dojo.keys.DOWN_ARROW:if(!this._isShowingNow||this._prev_key_esc){this._arrowPressed();_454=true;}else{this._announceOption(this._popupWidget.getHighlightedOption());}dojo.stopEvent(evt);this._prev_key_backspace=false;this._prev_key_esc=false;break;case dojo.keys.PAGE_UP:case dojo.keys.UP_ARROW:if(this._isShowingNow){this._announceOption(this._popupWidget.getHighlightedOption());}dojo.stopEvent(evt);this._prev_key_backspace=false;this._prev_key_esc=false;break;case dojo.keys.ENTER:var _455;if(this._isShowingNow&&(_455=this._popupWidget.getHighlightedOption())){if(_455==this._popupWidget.nextButton){this._nextSearch(1);dojo.stopEvent(evt);break;}else{if(_455==this._popupWidget.previousButton){this._nextSearch(-1);dojo.stopEvent(evt);break;}}}else{this.setDisplayedValue(this.getDisplayedValue());}evt.preventDefault();case dojo.keys.TAB:var _456=this.getDisplayedValue();if(this._popupWidget&&(_456==this._popupWidget._messages["previousMessage"]||_456==this._popupWidget._messages["nextMessage"])){break;}if(this._isShowingNow){this._prev_key_backspace=false;this._prev_key_esc=false;if(this._popupWidget.getHighlightedOption()){this._popupWidget.setValue({target:this._popupWidget.getHighlightedOption()},true);}this._hideResultList();}break;case dojo.keys.SPACE:this._prev_key_backspace=false;this._prev_key_esc=false;if(this._isShowingNow&&this._popupWidget.getHighlightedOption()){dojo.stopEvent(evt);this._selectOption();this._hideResultList();}else{_454=true;}break;case dojo.keys.ESCAPE:this._prev_key_backspace=false;this._prev_key_esc=true;this._hideResultList();if(this._lastDisplayedValue!=this.getDisplayedValue()){this.setDisplayedValue(this._lastDisplayedValue);dojo.stopEvent(evt);}else{this.setValue(this.getValue(),false);}break;case dojo.keys.DELETE:case dojo.keys.BACKSPACE:this._prev_key_esc=false;this._prev_key_backspace=true;_454=true;break;case dojo.keys.RIGHT_ARROW:case dojo.keys.LEFT_ARROW:this._prev_key_backspace=false;this._prev_key_esc=false;break;default:this._prev_key_backspace=false;this._prev_key_esc=false;if(dojo.isIE||evt.charCode!=0){_454=true;}}if(this.searchTimer){clearTimeout(this.searchTimer);}if(_454){this.searchTimer=setTimeout(dojo.hitch(this,this._startSearchFromInput),this.searchDelay);}},_autoCompleteText:function(text){this._setSelectedRange(this.focusNode,this.focusNode.value.length,this.focusNode.value.length);if(new RegExp("^"+escape(this.focusNode.value),this.ignoreCase?"i":"").test(escape(text))){var cpos=this._getCaretPos(this.focusNode);if((cpos+1)>this.focusNode.value.length){this.focusNode.value=text;this._setSelectedRange(this.focusNode,cpos,this.focusNode.value.length);dijit.setWaiState(this.focusNode,"valuenow",text);}}else{this.focusNode.value=text;this._setSelectedRange(this.focusNode,0,this.focusNode.value.length);dijit.setWaiState(this.focusNode,"valuenow",text);}},_openResultList:function(_459,_45a){if(this.disabled||_45a.query[this.searchAttr]!=this._lastQuery){return;}this._popupWidget.clearResultList();if(!_459.length){this._hideResultList();return;}var _45b=new String(this.store.getValue(_459[0],this.searchAttr));if(_45b&&this.autoComplete&&!this._prev_key_backspace&&(_45a.query[this.searchAttr]!="*")){this._autoCompleteText(_45b);dijit.setWaiState(this.focusNode||this.domNode,"valuenow",_45b);}this._popupWidget.createOptions(_459,_45a,dojo.hitch(this,this._getMenuLabelFromItem));this._showResultList();if(_45a.direction){if(_45a.direction==1){this._popupWidget.highlightFirstOption();}else{if(_45a.direction==-1){this._popupWidget.highlightLastOption();}}this._announceOption(this._popupWidget.getHighlightedOption());}},_showResultList:function(){this._hideResultList();var _45c=this._popupWidget.getItems(),_45d=Math.min(_45c.length,this.maxListLength);this._arrowPressed();this._displayMessage("");with(this._popupWidget.domNode.style){width="";height="";}var best=this.open();var _45f=dojo.marginBox(this._popupWidget.domNode);this._popupWidget.domNode.style.overflow=((best.h==_45f.h)&&(best.w==_45f.w))?"hidden":"auto";var _460=best.w;if(best.h<this._popupWidget.domNode.scrollHeight){_460+=16;}dojo.marginBox(this._popupWidget.domNode,{h:best.h,w:Math.max(_460,this.domNode.offsetWidth)});},_hideResultList:function(){if(this._isShowingNow){dijit.popup.close(this._popupWidget);this._arrowIdle();this._isShowingNow=false;}},_onBlur:function(){this._hasFocus=false;this._hasBeenBlurred=true;this._hideResultList();this._arrowIdle();var _461=this.getDisplayedValue();if(this._popupWidget&&(_461==this._popupWidget._messages["previousMessage"]||_461==this._popupWidget._messages["nextMessage"])){this.setValue(this._lastValueReported,true);}else{this.setDisplayedValue(_461);}},onfocus:function(evt){this._hasFocus=true;this._onMouse(evt);},_announceOption:function(node){if(node==null){return;}var _464;if(node==this._popupWidget.nextButton||node==this._popupWidget.previousButton){_464=node.innerHTML;}else{_464=this.store.getValue(node.item,this.searchAttr);}this.focusNode.value=this.focusNode.value.substring(0,this._getCaretPos(this.focusNode));this._autoCompleteText(_464);},_selectOption:function(evt){var tgt=null;if(!evt){evt={target:this._popupWidget.getHighlightedOption()};}if(!evt.target){this.setDisplayedValue(this.getDisplayedValue());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.setValue(this.store.getValue(tgt.item,this.searchAttr),true);},_onArrowMouseDown:function(evt){if(this.disabled){return;}dojo.stopEvent(evt);this.focus();if(this._isShowingNow){this._hideResultList();}else{this._startSearch("");}},_startSearchFromInput:function(){this._startSearch(this.focusNode.value);},_startSearch:function(key){if(!this._popupWidget){this._popupWidget=new dijit.form._ComboBoxMenu({onChange:dojo.hitch(this,this._selectOption)});}var _46a=this.query;this._lastQuery=_46a[this.searchAttr]=key+"*";var _46b=this.store.fetch({queryOptions:{ignoreCase:this.ignoreCase,deep:true},query:_46a,onComplete:dojo.hitch(this,"_openResultList"),start:0,count:this.pageSize});function nextSearch(_46c,_46d){_46c.start+=_46c.count*_46d;_46c.direction=_46d;_46c.store.fetch(_46c);};this._nextSearch=this._popupWidget.onPage=dojo.hitch(this,nextSearch,_46b);},_getValueField:function(){return this.searchAttr;},_arrowPressed:function(){if(!this.disabled&&this.hasDownArrow){dojo.addClass(this.downArrowNode,"dijitArrowButtonActive");}},_arrowIdle:function(){if(!this.disabled&&this.hasDownArrow){dojo.removeClass(this.downArrowNode,"dojoArrowButtonPushed");}},compositionend:function(evt){this.onkeypress({charCode:-1});},constructor:function(){this.query={};},postMixInProperties:function(){if(!this.hasDownArrow){this.baseClass="dijitTextBox";}if(!this.store){var _46f=this.srcNodeRef?dojo.query("> option",this.srcNodeRef).map(function(node){node.style.display="none";return {value:node.getAttribute("value"),name:String(node.innerHTML)};}):{};this.store=new dojo.data.ItemFileReadStore({data:{identifier:this._getValueField(),items:_46f}});if(_46f&&_46f.length&&!this.value){this.value=_46f[this.srcNodeRef.selectedIndex!=-1?this.srcNodeRef.selectedIndex:0][this._getValueField()];}}},uninitialize:function(){if(this._popupWidget){this._hideResultList();this._popupWidget.destroy();}},_getMenuLabelFromItem:function(item){return {html:false,label:this.store.getValue(item,this.searchAttr)};},open:function(){this._isShowingNow=true;return dijit.popup.open({popup:this._popupWidget,around:this.domNode,parent:this});}});dojo.declare("dijit.form._ComboBoxMenu",[dijit._Widget,dijit._Templated],{templateString:"<div class='dijitMenu' dojoAttachEvent='onmousedown,onmouseup,onmouseover,onmouseout' tabIndex='-1' style='overflow:\"auto\";'>"+"<div class='dijitMenuItem dijitMenuPreviousButton' dojoAttachPoint='previousButton'></div>"+"<div class='dijitMenuItem dijitMenuNextButton' dojoAttachPoint='nextButton'></div>"+"</div>",_messages:null,postMixInProperties:function(){this._messages=dojo.i18n.getLocalization("dijit.form","ComboBox",this.lang);this.inherited("postMixInProperties",arguments);},setValue:function(_472){this.value=_472;this.onChange(_472);},onChange:function(_473){},onPage:function(_474){},postCreate:function(){this.previousButton.innerHTML=this._messages["previousMessage"];this.nextButton.innerHTML=this._messages["nextMessage"];this.inherited("postCreate",arguments);},onClose:function(){this._blurOptionNode();},_createOption:function(item,_476){var _477=_476(item);var _478=document.createElement("div");if(_477.html){_478.innerHTML=_477.label;}else{_478.appendChild(document.createTextNode(_477.label));}if(_478.innerHTML==""){_478.innerHTML="&nbsp;";}_478.item=item;return _478;},createOptions:function(_479,_47a,_47b){this.previousButton.style.display=_47a.start==0?"none":"";var _47c=this;dojo.forEach(_479,function(item){var _47e=_47c._createOption(item,_47b);_47e.className="dijitMenuItem";_47c.domNode.insertBefore(_47e,_47c.nextButton);});this.nextButton.style.display=_47a.count==_479.length?"":"none";},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.setValue({target:tgt},true);}}}},onmouseover:function(evt){if(evt.target===this.domNode){return;}var tgt=evt.target;if(!(tgt==this.previousButton||tgt==this.nextButton)){while(!tgt.item){tgt=tgt.parentNode;}}this._focusOptionNode(tgt);},onmouseout:function(evt){if(evt.target===this.domNode){return;}this._blurOptionNode();},_focusOptionNode:function(node){if(this._highlighted_option!=node){this._blurOptionNode();this._highlighted_option=node;dojo.addClass(this._highlighted_option,"dijitMenuItemHover");}},_blurOptionNode:function(){if(this._highlighted_option){dojo.removeClass(this._highlighted_option,"dijitMenuItemHover");this._highlighted_option=null;}},_highlightNextOption:function(){if(!this.getHighlightedOption()){this._focusOptionNode(this.domNode.firstChild.style.display=="none"?this.domNode.firstChild.nextSibling:this.domNode.firstChild);}else{if(this._highlighted_option.nextSibling&&this._highlighted_option.nextSibling.style.display!="none"){this._focusOptionNode(this._highlighted_option.nextSibling);}}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(){if(!this.getHighlightedOption()){this._focusOptionNode(this.domNode.lastChild.style.display=="none"?this.domNode.lastChild.previousSibling:this.domNode.lastChild);}else{if(this._highlighted_option.previousSibling&&this._highlighted_option.previousSibling.style.display!="none"){this._focusOptionNode(this._highlighted_option.previousSibling);}}dijit.scrollIntoView(this._highlighted_option);},_page:function(up){var _487=0;var _488=this.domNode.scrollTop;var _489=parseInt(dojo.getComputedStyle(this.domNode).height);if(!this.getHighlightedOption()){this._highlightNextOption();}while(_487<_489){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 _48a=this.domNode.scrollTop;_487+=(_48a-_488)*(up?-1:1);_488=_48a;}},pageUp:function(){this._page(true);},pageDown:function(){this._page(false);},getHighlightedOption:function(){return this._highlighted_option&&this._highlighted_option.parentNode?this._highlighted_option:null;},handleKey:function(evt){switch(evt.keyCode){case dojo.keys.DOWN_ARROW:this._highlightNextOption();break;case dojo.keys.PAGE_DOWN:this.pageDown();break;case dojo.keys.UP_ARROW:this._highlightPrevOption();break;case dojo.keys.PAGE_UP:this.pageUp();break;}}});dojo.declare("dijit.form.ComboBox",[dijit.form.ValidationTextBox,dijit.form.ComboBoxMixin],{postMixInProperties:function(){dijit.form.ComboBoxMixin.prototype.postMixInProperties.apply(this,arguments);dijit.form.ValidationTextBox.prototype.postMixInProperties.apply(this,arguments);}});}if(!dojo._hasResource["dojo.cldr.monetary"]){dojo._hasResource["dojo.cldr.monetary"]=true;dojo.provide("dojo.cldr.monetary");dojo.cldr.monetary.getData=function(code){var _48d={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 _48e={CHF:5};var _48f=_48d[code],_490=_48e[code];if(typeof _48f=="undefined"){_48f=2;}if(typeof _490=="undefined"){_490=0;}return {places:_48f,round:_490};};}if(!dojo._hasResource["dojo.currency"]){dojo._hasResource["dojo.currency"]=true;dojo.provide("dojo.currency");dojo.currency._mixInDefaults=function(_491){_491=_491||{};_491.type="currency";var _492=dojo.i18n.getLocalization("dojo.cldr","currency",_491.locale)||{};var iso=_491.currency;var data=dojo.cldr.monetary.getData(iso);dojo.forEach(["displayName","symbol","group","decimal"],function(prop){data[prop]=_492[iso+"_"+prop];});data.fractional=[true,false];return dojo.mixin(data,_491);};dojo.currency.format=function(_496,_497){return dojo.number.format(_496,dojo.currency._mixInDefaults(_497));};dojo.currency.regexp=function(_498){return dojo.number.regexp(dojo.currency._mixInDefaults(_498));};dojo.currency.parse=function(_499,_49a){return dojo.number.parse(_499,dojo.currency._mixInDefaults(_49a));};}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,format:function(_49b,_49c){if(isNaN(_49b)){return "";}return dojo.number.format(_49b,_49c);},parse:dojo.number.parse,filter:function(_49d){if(typeof _49d=="string"){return this.inherited("filter",arguments);}return (isNaN(_49d)?"":_49d);},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,format: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(_49e){var _49f={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,gb:0,sy:4};var _4a0=dojo.cldr.supplemental._region(_49e);var dow=_49f[_4a0];return (typeof dow=="undefined")?1:dow;};dojo.cldr.supplemental._region=function(_4a2){_4a2=dojo.i18n.normalizeLocale(_4a2);var tags=_4a2.split("-");var _4a4=tags[1];if(!_4a4){_4a4={de:"de",en:"us",es:"es",fi:"fi",fr:"fr",hu:"hu",it:"it",ja:"jp",ko:"kr",nl:"nl",pt:"br",sv:"se",zh:"cn"}[tags[0]];}else{if(_4a4.length==4){_4a4=tags[2];}}return _4a4;};dojo.cldr.supplemental.getWeekend=function(_4a5){var _4a6={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 _4a7={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 _4a8=dojo.cldr.supplemental._region(_4a5);var _4a9=_4a6[_4a8];var end=_4a7[_4a8];if(typeof _4a9=="undefined"){_4a9=6;}if(typeof end=="undefined"){end=0;}return {start:_4a9,end:end};};}if(!dojo._hasResource["dojo.date"]){dojo._hasResource["dojo.date"]=true;dojo.provide("dojo.date");dojo.date.getDaysInMonth=function(_4ab){var _4ac=_4ab.getMonth();var days=[31,28,31,30,31,30,31,31,30,31,30,31];if(_4ac==1&&dojo.date.isLeapYear(_4ab)){return 29;}return days[_4ac];};dojo.date.isLeapYear=function(_4ae){var year=_4ae.getFullYear();return !(year%400)||(!(year%4)&&!!(year%100));};dojo.date.getTimezoneName=function(_4b0){var str=_4b0.toString();var tz="";var _4b3;var pos=str.indexOf("(");if(pos>-1){tz=str.substring(++pos,str.indexOf(")"));}else{var pat=/([A-Z\/]+) \d{4}$/;if((_4b3=str.match(pat))){tz=_4b3[1];}else{str=_4b0.toLocaleString();pat=/ ([A-Z\/]+)$/;if((_4b3=str.match(pat))){tz=_4b3[1];}}}return (tz=="AM"||tz=="PM")?"":tz;};dojo.date.compare=function(_4b6,_4b7,_4b8){_4b6=new Date(Number(_4b6));_4b7=new Date(Number(_4b7||new Date()));if(typeof _4b8!=="undefined"){if(_4b8=="date"){_4b6.setHours(0,0,0,0);_4b7.setHours(0,0,0,0);}else{if(_4b8=="time"){_4b6.setFullYear(0,0,0);_4b7.setFullYear(0,0,0);}}}if(_4b6>_4b7){return 1;}if(_4b6<_4b7){return -1;}return 0;};dojo.date.add=function(date,_4ba,_4bb){var sum=new Date(Number(date));var _4bd=false;var _4be="Date";switch(_4ba){case "day":break;case "weekday":var days,_4c0;var adj=0;var mod=_4bb%5;if(!mod){days=(_4bb>0)?5:-5;_4c0=(_4bb>0)?((_4bb-5)/5):((_4bb+5)/5);}else{days=mod;_4c0=parseInt(_4bb/5);}var strt=date.getDay();if(strt==6&&_4bb>0){adj=1;}else{if(strt==0&&_4bb<0){adj=-1;}}var trgt=strt+days;if(trgt==0||trgt==6){adj=(_4bb>0)?2:-2;}_4bb=7*_4c0+days+adj;break;case "year":_4be="FullYear";_4bd=true;break;case "week":_4bb*=7;break;case "quarter":_4bb*=3;case "month":_4bd=true;_4be="Month";break;case "hour":case "minute":case "second":case "millisecond":_4be="UTC"+_4ba.charAt(0).toUpperCase()+_4ba.substring(1)+"s";}if(_4be){sum["set"+_4be](sum["get"+_4be]()+_4bb);}if(_4bd&&(sum.getDate()<date.getDate())){sum.setDate(0);}return sum;};dojo.date.difference=function(_4c5,_4c6,_4c7){_4c6=_4c6||new Date();_4c7=_4c7||"day";var _4c8=_4c6.getFullYear()-_4c5.getFullYear();var _4c9=1;switch(_4c7){case "quarter":var m1=_4c5.getMonth();var m2=_4c6.getMonth();var q1=Math.floor(m1/3)+1;var q2=Math.floor(m2/3)+1;q2+=(_4c8*4);_4c9=q2-q1;break;case "weekday":var days=Math.round(dojo.date.difference(_4c5,_4c6,"day"));var _4cf=parseInt(dojo.date.difference(_4c5,_4c6,"week"));var mod=days%7;if(mod==0){days=_4cf*5;}else{var adj=0;var aDay=_4c5.getDay();var bDay=_4c6.getDay();_4cf=parseInt(days/7);mod=days%7;var _4d4=new Date(_4c5);_4d4.setDate(_4d4.getDate()+(_4cf*7));var _4d5=_4d4.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 (_4d5+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 (_4d5+mod)<0:adj=2;}}}days+=adj;days-=(_4cf*2);}_4c9=days;break;case "year":_4c9=_4c8;break;case "month":_4c9=(_4c6.getMonth()-_4c5.getMonth())+(_4c8*12);break;case "week":_4c9=parseInt(dojo.date.difference(_4c5,_4c6,"day")/7);break;case "day":_4c9/=24;case "hour":_4c9/=60;case "minute":_4c9/=60;case "second":_4c9/=1000;case "millisecond":_4c9*=_4c6.getTime()-_4c5.getTime();}return Math.round(_4c9);};}if(!dojo._hasResource["dojo.date.locale"]){dojo._hasResource["dojo.date.locale"]=true;dojo.provide("dojo.date.locale");(function(){function formatPattern(_4d6,_4d7,_4d8){return _4d8.replace(/([a-z])\1*/ig,function(_4d9){var s;var c=_4d9.charAt(0);var l=_4d9.length;var pad;var _4de=["abbr","wide","narrow"];switch(c){case "G":s=_4d7[(l<4)?"eraAbbr":"eraNames"][_4d6.getFullYear()<0?0:1];break;case "y":s=_4d6.getFullYear();switch(l){case 1:break;case 2:s=String(s);s=s.substr(s.length-2);break;default:pad=true;}break;case "Q":case "q":s=Math.ceil((_4d6.getMonth()+1)/3);pad=true;break;case "M":case "L":var m=_4d6.getMonth();var _4e0;switch(l){case 1:case 2:s=m+1;pad=true;break;case 3:case 4:case 5:_4e0=_4de[l-3];break;}if(_4e0){var type=(c=="L")?"standalone":"format";var prop=["months",type,_4e0].join("-");s=_4d7[prop][m];}break;case "w":var _4e3=0;s=dojo.date.locale._getWeekOfYear(_4d6,_4e3);pad=true;break;case "d":s=_4d6.getDate();pad=true;break;case "D":s=dojo.date.locale._getDayOfYear(_4d6);pad=true;break;case "E":case "e":case "c":var d=_4d6.getDay();var _4e0;switch(l){case 1:case 2:if(c=="e"){var _4e5=dojo.cldr.supplemental.getFirstDayOfWeek(options.locale);d=(d-_4e5+7)%7;}if(c!="c"){s=d+1;pad=true;break;}case 3:case 4:case 5:_4e0=_4de[l-3];break;}if(_4e0){var type=(c=="c")?"standalone":"format";var prop=["days",type,_4e0].join("-");s=_4d7[prop][d];}break;case "a":var _4e6=(_4d6.getHours()<12)?"am":"pm";s=_4d7[_4e6];break;case "h":case "H":case "K":case "k":var h=_4d6.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=_4d6.getMinutes();pad=true;break;case "s":s=_4d6.getSeconds();pad=true;break;case "S":s=Math.round(_4d6.getMilliseconds()*Math.pow(10,l-3));pad=true;break;case "v":case "z":s=dojo.date.getTimezoneName(_4d6);if(s){break;}l=4;case "Z":var _4e8=_4d6.getTimezoneOffset();var tz=[(_4e8<=0?"+":"-"),dojo.string.pad(Math.floor(Math.abs(_4e8)/60),2),dojo.string.pad(Math.abs(_4e8)%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: "+_4d8);}if(pad){s=dojo.string.pad(s,l);}return s;});};dojo.date.locale.format=function(_4ea,_4eb){_4eb=_4eb||{};var _4ec=dojo.i18n.normalizeLocale(_4eb.locale);var _4ed=_4eb.formatLength||"short";var _4ee=dojo.date.locale._getGregorianBundle(_4ec);var str=[];var _4f0=dojo.hitch(this,formatPattern,_4ea,_4ee);if(_4eb.selector=="year"){var year=_4ea.getFullYear();if(_4ec.match(/^zh|^ja/)){year+="年";}return year;}if(_4eb.selector!="time"){var _4f2=_4eb.datePattern||_4ee["dateFormat-"+_4ed];if(_4f2){str.push(_processPattern(_4f2,_4f0));}}if(_4eb.selector!="date"){var _4f3=_4eb.timePattern||_4ee["timeFormat-"+_4ed];if(_4f3){str.push(_processPattern(_4f3,_4f0));}}var _4f4=str.join(" ");return _4f4;};dojo.date.locale.regexp=function(_4f5){return dojo.date.locale._parseInfo(_4f5).regexp;};dojo.date.locale._parseInfo=function(_4f6){_4f6=_4f6||{};var _4f7=dojo.i18n.normalizeLocale(_4f6.locale);var _4f8=dojo.date.locale._getGregorianBundle(_4f7);var _4f9=_4f6.formatLength||"short";var _4fa=_4f6.datePattern||_4f8["dateFormat-"+_4f9];var _4fb=_4f6.timePattern||_4f8["timeFormat-"+_4f9];var _4fc;if(_4f6.selector=="date"){_4fc=_4fa;}else{if(_4f6.selector=="time"){_4fc=_4fb;}else{_4fc=_4fa+" "+_4fb;}}var _4fd=[];var re=_processPattern(_4fc,dojo.hitch(this,_buildDateTimeRE,_4fd,_4f8,_4f6));return {regexp:re,tokens:_4fd,bundle:_4f8};};dojo.date.locale.parse=function(_4ff,_500){var info=dojo.date.locale._parseInfo(_500);var _502=info.tokens,_503=info.bundle;var re=new RegExp("^"+info.regexp+"$");var _505=re.exec(_4ff);if(!_505){return null;}var _506=["abbr","wide","narrow"];var _507=new Date(1972,0);var _508={};var amPm="";dojo.forEach(_505,function(v,i){if(!i){return;}var _50c=_502[i-1];var l=_50c.length;switch(_50c.charAt(0)){case "y":if(l!=2){_507.setFullYear(v);_508.year=v;}else{if(v<100){v=Number(v);var year=""+new Date().getFullYear();var _50f=year.substring(0,2)*100;var _510=Number(year.substring(2,4));var _511=Math.min(_510+20,99);var num=(v<_511)?_50f+v:_50f-100+v;_507.setFullYear(num);_508.year=num;}else{if(_500.strict){return null;}_507.setFullYear(v);_508.year=v;}}break;case "M":if(l>2){var _513=_503["months-format-"+_506[l-3]].concat();if(!_500.strict){v=v.replace(".","").toLowerCase();_513=dojo.map(_513,function(s){return s.replace(".","").toLowerCase();});}v=dojo.indexOf(_513,v);if(v==-1){return null;}}else{v--;}_507.setMonth(v);_508.month=v;break;case "E":case "e":var days=_503["days-format-"+_506[l-3]].concat();if(!_500.strict){v=v.toLowerCase();days=dojo.map(days,"".toLowerCase);}v=dojo.indexOf(days,v);if(v==-1){return null;}break;case "d":_507.setDate(v);_508.date=v;break;case "D":_507.setMonth(0);_507.setDate(v);break;case "a":var am=_500.am||_503.am;var pm=_500.pm||_503.pm;if(!_500.strict){var _518=/\./g;v=v.replace(_518,"").toLowerCase();am=am.replace(_518,"").toLowerCase();pm=pm.replace(_518,"").toLowerCase();}if(_500.strict&&v!=am&&v!=pm){return null;}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 null;}_507.setHours(v);break;case "m":_507.setMinutes(v);break;case "s":_507.setSeconds(v);break;case "S":_507.setMilliseconds(v);}});var _519=_507.getHours();if(amPm==="p"&&_519<12){_507.setHours(_519+12);}else{if(amPm==="a"&&_519==12){_507.setHours(0);}}if(_508.year&&_507.getFullYear()!=_508.year){return null;}if(_508.month&&_507.getMonth()!=_508.month){return null;}if(_508.date&&_507.getDate()!=_508.date){return null;}return _507;};function _processPattern(_51a,_51b,_51c,_51d){var _51e=function(x){return x;};_51b=_51b||_51e;_51c=_51c||_51e;_51d=_51d||_51e;var _520=_51a.match(/(''|[^'])+/g);var _521=false;dojo.forEach(_520,function(_522,i){if(!_522){_520[i]="";}else{_520[i]=(_521?_51c:_51b)(_522);_521=!_521;}});return _51d(_520.join(""));};function _buildDateTimeRE(_524,_525,_526,_527){_527=dojo.regexp.escapeString(_527);if(!_526.strict){_527=_527.replace(" a"," ?a");}return _527.replace(/([a-z])\1*/ig,function(_528){var s;var c=_528.charAt(0);var l=_528.length;var p2="",p3="";if(_526.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=p2+"[1-9]|[12]\\d|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=_526.am||_525.am||"AM";var pm=_526.pm||_525.pm||"PM";if(_526.strict){s=am+"|"+pm;}else{s=am+"|"+pm;if(am!=am.toLowerCase()){s+="|"+am.toLowerCase();}if(pm!=pm.toLowerCase()){s+="|"+pm.toLowerCase();}}break;default:s=".*";}if(_524){_524.push(_528);}return "("+s+")";}).replace(/[\xa0 ]/g,"[\\s\\xa0]");};})();(function(){var _530=[];dojo.date.locale.addCustomFormats=function(_531,_532){_530.push({pkg:_531,name:_532});};dojo.date.locale._getGregorianBundle=function(_533){var _534={};dojo.forEach(_530,function(desc){var _536=dojo.i18n.getLocalization(desc.pkg,desc.name,_533);_534=dojo.mixin(_534,_536);},this);return _534;};})();dojo.date.locale.addCustomFormats("dojo.cldr","gregorian");dojo.date.locale.getNames=function(item,type,use,_53a){var _53b;var _53c=dojo.date.locale._getGregorianBundle(_53a);var _53d=[item,use,type];if(use=="standAlone"){_53b=_53c[_53d.join("-")];}_53d[1]="format";return (_53b||_53c[_53d.join("-")]).concat();};dojo.date.locale.isWeekend=function(_53e,_53f){var _540=dojo.cldr.supplemental.getWeekend(_53f);var day=(_53e||new Date()).getDay();if(_540.end<_540.start){_540.end+=7;if(day<_540.start){day+=7;}}return day>=_540.start&&day<=_540.end;};dojo.date.locale._getDayOfYear=function(_542){return dojo.date.difference(new Date(_542.getFullYear(),0,1),_542)+1;};dojo.date.locale._getWeekOfYear=function(_543,_544){if(arguments.length==1){_544=0;}var _545=new Date(_543.getFullYear(),0,1).getDay();var adj=(_545-_544+7)%7;var week=Math.floor((dojo.date.locale._getDayOfYear(_543)+adj-1)/7);if(_545==_544){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<span class=\"dijitInline dijitCalendarIncrementControl dijitCalendarDecrease\"><span dojoAttachPoint=\"decreaseArrowNode\" class=\"dijitA11ySideArrow dijitCalendarIncrementControl dijitCalendarDecreaseInner\">-</span></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=\"dijitCalendarMonth\"></div>\n\t\t\t</th>\n\t\t\t<th class='dijitReset' dojoAttachPoint=\"incrementMonth\">\n\t\t\t\t<div class=\"dijitInline dijitCalendarIncrementControl dijitCalendarIncrease\"><span dojoAttachPoint=\"increaseArrowNode\" class=\"dijitA11ySideArrow dijitCalendarIncrementControl dijitCalendarIncreaseInner\">+</span></div>\n\t\t\t</th>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<th class=\"dijitReset dijitCalendarDayLabelTemplate\"><span class=\"dijitCalendarDayLabel\"></span></th>\n\t\t</tr>\n\t</thead>\n\t<tbody dojoAttachEvent=\"onclick: _onDayClick\" 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(_548){if(!this.value||dojo.date.compare(_548,this.value)){_548=new Date(_548);this.displayMonth=new Date(_548);if(!this.isDisabledDate(_548,this.lang)){this.value=_548;this.value.setHours(0,0,0,0);this.onChange(this.value);}this._populateGrid();}},_setText:function(node,text){while(node.firstChild){node.removeChild(node.firstChild);}node.appendChild(document.createTextNode(text));},_populateGrid:function(){var _54b=this.displayMonth;_54b.setDate(1);var _54c=_54b.getDay();var _54d=dojo.date.getDaysInMonth(_54b);var _54e=dojo.date.getDaysInMonth(dojo.date.add(_54b,"month",-1));var _54f=new Date();var _550=this.value;var _551=dojo.cldr.supplemental.getFirstDayOfWeek(this.lang);if(_551>_54c){_551-=7;}dojo.query(".dijitCalendarDateTemplate",this.domNode).forEach(function(_552,i){i+=_551;var date=new Date(_54b);var _555,_556="dijitCalendar",adj=0;if(i<_54c){_555=_54e-_54c+i+1;adj=-1;_556+="Previous";}else{if(i>=(_54c+_54d)){_555=i-_54c-_54d+1;adj=1;_556+="Next";}else{_555=i-_54c+1;_556+="Current";}}if(adj){date=dojo.date.add(date,"month",adj);}date.setDate(_555);if(!dojo.date.compare(date,_54f,"date")){_556="dijitCalendarCurrentDate "+_556;}if(!dojo.date.compare(date,_550,"date")){_556="dijitCalendarSelectedDate "+_556;}if(this.isDisabledDate(date,this.lang)){_556="dijitCalendarDisabledDate "+_556;}_552.className=_556+"Month dijitCalendarDateTemplate";_552.dijitDateValue=date.valueOf();var _558=dojo.query(".dijitCalendarDateLabel",_552)[0];this._setText(_558,date.getDate());},this);var _559=dojo.date.locale.getNames("months","wide","standAlone",this.lang);this._setText(this.monthLabelNode,_559[_54b.getMonth()]);var y=_54b.getFullYear()-1;dojo.forEach(["previous","current","next"],function(name){this._setText(this[name+"YearLabelNode"],dojo.date.locale.format(new Date(y++,0),{selector:"year",locale:this.lang}));},this);var _55c=this;var _55d=function(_55e,_55f,adj){dijit.typematic.addMouseListener(_55c[_55e],_55c,function(_561){if(_561>=0){_55c._adjustDisplay(_55f,adj);}},0.8,500);};_55d("incrementMonth","month",1);_55d("decrementMonth","month",-1);_55d("nextYearLabelNode","year",1);_55d("previousYearLabelNode","year",-1);},postCreate:function(){dijit._Calendar.superclass.postCreate.apply(this);var _562=dojo.hitch(this,function(_563,n){var _565=dojo.query(_563,this.domNode)[0];for(var i=0;i<n;i++){_565.parentNode.appendChild(_565.cloneNode(true));}});_562(".dijitCalendarDayLabelTemplate",6);_562(".dijitCalendarDateTemplate",6);_562(".dijitCalendarWeekTemplate",5);var _567=dojo.date.locale.getNames("days",this.dayWidth,"standAlone",this.lang);var _568=dojo.cldr.supplemental.getFirstDayOfWeek(this.lang);dojo.query(".dijitCalendarDayLabel",this.domNode).forEach(function(_569,i){this._setText(_569,_567[(i+_568)%7]);},this);var _56b=dojo.date.locale.getNames("months","wide","standAlone",this.lang);dojo.forEach(_56b,function(name){var _56d=dojo.doc.createElement("div");this._setText(_56d,name);this.monthLabelSpacer.appendChild(_56d);},this);this.value=null;this.setValue(new Date());},_adjustDisplay:function(part,_56f){this.displayMonth=dojo.date.add(this.displayMonth,part,_56f);this._populateGrid();},_onDayClick:function(evt){var node=evt.target;dojo.stopEvent(evt);while(!node.dijitDateValue){node=node.parentNode;}if(!dojo.hasClass(node,"dijitCalendarDisabledDate")){this.setValue(node.dijitDateValue);this.onValueSelected(this.value);}},onValueSelected:function(date){},onChange:function(date){},isDisabledDate:function(_574,_575){return false;}});}if(!dojo._hasResource["dijit._TimePicker"]){dojo._hasResource["dijit._TimePicker"]=true;dojo.provide("dijit._TimePicker");dojo.declare("dijit._TimePicker",[dijit._Widget,dijit._Templated],{templateString:"<div id=\"widget_${id}\" class=\"dijitMenu\"\n    ><div dojoAttachPoint=\"upArrow\" class=\"dijitButtonNode\"><span class=\"dijitTimePickerA11yText\">&#9650;</span></div\n    ><div dojoAttachPoint=\"timeMenu,focusNode\" dojoAttachEvent=\"onclick:_onOptionSelected,onmouseover,onmouseout\"></div\n    ><div dojoAttachPoint=\"downArrow\" class=\"dijitButtonNode\"><span class=\"dijitTimePickerA11yText\">&#9660;</span></div\n></div>\n",baseClass:"dijitTimePicker",clickableIncrement:"T00:15:00",visibleIncrement:"T01:00:00",visibleRange:"T05:00:00",value:new Date(),_visibleIncrement:2,_clickableIncrement:1,_totalIncrements:10,constraints:{},serialize:dojo.date.stamp.toISOString,setValue:function(date,_577){this.value=date;this._showText();},isDisabledDate:function(_578,_579){return false;},_showText:function(){this.timeMenu.innerHTML="";var _57a=dojo.date.stamp.fromISOString;this._clickableIncrementDate=_57a(this.clickableIncrement);this._visibleIncrementDate=_57a(this.visibleIncrement);this._visibleRangeDate=_57a(this.visibleRange);var _57b=function(date){return date.getHours()*60*60+date.getMinutes()*60+date.getSeconds();};var _57d=_57b(this._clickableIncrementDate);var _57e=_57b(this._visibleIncrementDate);var _57f=_57b(this._visibleRangeDate);var time=this.value.getTime();this._refDate=new Date(time-time%(_57e*1000));this._clickableIncrement=1;this._totalIncrements=_57f/_57d;this._visibleIncrement=_57e/_57d;for(var i=-this._totalIncrements/2;i<=this._totalIncrements/2;i+=this._clickableIncrement){var div=this._createOption(i);this.timeMenu.appendChild(div);}},postCreate:function(){if(this.constraints===dijit._TimePicker.prototype.constraints){this.constraints={};}if(!this.constraints.locale){this.constraints.locale=this.lang;}this.connect(this.timeMenu,dojo.isIE?"onmousewheel":"DOMMouseScroll","_mouseWheeled");dijit.typematic.addMouseListener(this.upArrow,this,this._onArrowUp,0.8,500);dijit.typematic.addMouseListener(this.downArrow,this,this._onArrowDown,0.8,500);this.inherited("postCreate",arguments);this.setValue(this.value);},_createOption:function(_583){var div=document.createElement("div");var date=(div.date=new Date(this._refDate));div.index=_583;var _586=this._clickableIncrementDate;date.setHours(date.getHours()+_586.getHours()*_583,date.getMinutes()+_586.getMinutes()*_583,date.getSeconds()+_586.getSeconds()*_583);var _587=document.createElement("div");dojo.addClass(div,this.baseClass+"Item");dojo.addClass(_587,this.baseClass+"ItemInner");_587.innerHTML=dojo.date.locale.format(date,this.constraints);div.appendChild(_587);if(_583%this._visibleIncrement<1&&_583%this._visibleIncrement>-1){dojo.addClass(div,this.baseClass+"Marker");}else{if(_583%this._clickableIncrement==0){dojo.addClass(div,this.baseClass+"Tick");}}if(this.isDisabledDate(date)){dojo.addClass(div,this.baseClass+"ItemDisabled");}if(dojo.date.compare(this.value,date,this.constraints.selector)==0){div.selected=true;dojo.addClass(div,this.baseClass+"ItemSelected");}return div;},_onOptionSelected:function(tgt){var _589=tgt.target.date||tgt.target.parentNode.date;if(!_589||this.isDisabledDate(_589)){return;}this.setValue(_589);this.onValueSelected(_589);},onValueSelected:function(_58a){},onmouseover:function(e){var tgr=(e.target.parentNode===this.timeMenu)?e.target:e.target.parentNode;this._highlighted_option=tgr;dojo.addClass(tgr,this.baseClass+"ItemHover");},onmouseout:function(e){var tgr=(e.target.parentNode===this.timeMenu)?e.target:e.target.parentNode;if(this._highlighted_option===tgr){dojo.removeClass(tgr,this.baseClass+"ItemHover");}},_mouseWheeled:function(e){dojo.stopEvent(e);var _590=(dojo.isIE?e.wheelDelta:-e.detail);this[(_590>0?"_onArrowUp":"_onArrowDown")]();},_onArrowUp:function(){var _591=this.timeMenu.childNodes[0].index-1;var div=this._createOption(_591);this.timeMenu.removeChild(this.timeMenu.childNodes[this.timeMenu.childNodes.length-1]);this.timeMenu.insertBefore(div,this.timeMenu.childNodes[0]);},_onArrowDown:function(){var _593=this.timeMenu.childNodes[this.timeMenu.childNodes.length-1].index+1;var div=this._createOption(_593);this.timeMenu.removeChild(this.timeMenu.childNodes[0]);this.timeMenu.appendChild(div);}});}if(!dojo._hasResource["dijit.form.TimeTextBox"]){dojo._hasResource["dijit.form.TimeTextBox"]=true;dojo.provide("dijit.form.TimeTextBox");dojo.declare("dijit.form.TimeTextBox",dijit.form.RangeBoundTextBox,{regExpGen:dojo.date.locale.regexp,compare:dojo.date.compare,format:function(_595,_596){if(!_595||_595.toString()==this._invalid){return null;}return dojo.date.locale.format(_595,_596);},parse:dojo.date.locale.parse,serialize:dojo.date.stamp.toISOString,value:new Date(""),_invalid:(new Date("")).toString(),_popupClass:"dijit._TimePicker",postMixInProperties:function(){this.inherited("postMixInProperties",arguments);var _597=this.constraints;_597.selector="time";if(typeof _597.min=="string"){_597.min=dojo.date.stamp.fromISOString(_597.min);}if(typeof _597.max=="string"){_597.max=dojo.date.stamp.fromISOString(_597.max);}},_onFocus:function(evt){this._open();},setValue:function(_599,_59a){this.inherited("setValue",arguments);if(this._picker){if(!_599||_599.toString()==this._invalid){_599=new Date();}this._picker.setValue(_599);}},_open:function(){if(this.disabled){return;}var self=this;if(!this._picker){var _59c=dojo.getObject(this._popupClass,false);this._picker=new _59c({onValueSelected:function(_59d){self.focus();setTimeout(dojo.hitch(self,"_close"),1);dijit.form.TimeTextBox.superclass.setValue.call(self,_59d,true);},lang:this.lang,constraints:this.constraints,isDisabledDate:function(date){return self.constraints&&(dojo.date.compare(self.constraints.min,date)>0||dojo.date.compare(self.constraints.max,date)<0);}});this._picker.setValue(this.getValue()||new Date());}if(!this._opened){dijit.popup.open({parent:this,popup:this._picker,around:this.domNode,onCancel:dojo.hitch(this,this._close),onClose:function(){self._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();this.inherited("_onBlur",arguments);},getDisplayedValue:function(){return this.textbox.value;},setDisplayedValue:function(_59f){this.textbox.value=_59f;}});}if(!dojo._hasResource["dijit.form.DateTextBox"]){dojo._hasResource["dijit.form.DateTextBox"]=true;dojo.provide("dijit.form.DateTextBox");dojo.declare("dijit.form.DateTextBox",dijit.form.TimeTextBox,{_popupClass:"dijit._Calendar",postMixInProperties:function(){this.inherited("postMixInProperties",arguments);this.constraints.selector="date";}});}if(!dojo._hasResource["dijit.form.FilteringSelect"]){dojo._hasResource["dijit.form.FilteringSelect"]=true;dojo.provide("dijit.form.FilteringSelect");dojo.declare("dijit.form.FilteringSelect",[dijit.form.MappedTextBox,dijit.form.ComboBoxMixin],{labelAttr:"",labelType:"text",_isvalid:true,isValid:function(){return this._isvalid;},_callbackSetLabel:function(_5a0,_5a1,_5a2){if(_5a1&&_5a1.query[this.searchAttr]!=this._lastQuery){return;}if(!_5a0.length){if(!this._hasFocus){this.valueNode.value="";}dijit.form.TextBox.superclass.setValue.call(this,undefined,!this._hasFocus);this._isvalid=false;this.validate(this._hasFocus);}else{this._setValueFromItem(_5a0[0],_5a2);}},_openResultList:function(_5a3,_5a4){if(_5a4.query[this.searchAttr]!=this._lastQuery){return;}this._isvalid=_5a3.length!=0;this.validate(true);dijit.form.ComboBoxMixin.prototype._openResultList.apply(this,arguments);},getValue:function(){return this.valueNode.value;},_getValueField:function(){return "value";},_setValue:function(_5a5,_5a6,_5a7){this.valueNode.value=_5a5;dijit.form.FilteringSelect.superclass.setValue.call(this,_5a5,_5a7,_5a6);this._lastDisplayedValue=_5a6;},setValue:function(_5a8,_5a9){var self=this;var _5ab=function(item,_5ad){if(item){if(self.store.isItemLoaded(item)){self._callbackSetLabel([item],undefined,_5ad);}else{self.store.loadItem({item:item,onItem:function(_5ae,_5af){self._callbackSetLabel(_5ae,_5af,_5ad);}});}}else{self._isvalid=false;self.validate(false);}};this.store.fetchItemByIdentity({identity:_5a8,onItem:function(item){_5ab(item,_5a9);}});},_setValueFromItem:function(item,_5b2){this._isvalid=true;this._setValue(this.store.getIdentity(item),this.labelFunc(item,this.store),_5b2);},labelFunc:function(item,_5b4){return _5b4.getValue(item,this.searchAttr);},onkeyup:function(evt){},_doSelect:function(tgt){this.item=tgt.item;this._setValueFromItem(tgt.item,true);},setDisplayedValue:function(_5b7){if(this.store){var _5b8={};this._lastQuery=_5b8[this.searchAttr]=_5b7;this.textbox.value=_5b7;this._lastDisplayedValue=_5b7;this.store.fetch({query:_5b8,queryOptions:{ignoreCase:this.ignoreCase,deep:true},onComplete:dojo.hitch(this,this._callbackSetLabel)});}},_getMenuLabelFromItem:function(item){if(this.labelAttr){return {html:this.labelType=="html",label:this.store.getValue(item,this.labelAttr)};}else{return dijit.form.ComboBoxMixin.prototype._getMenuLabelFromItem.apply(this,arguments);}},postMixInProperties:function(){dijit.form.ComboBoxMixin.prototype.postMixInProperties.apply(this,arguments);dijit.form.MappedTextBox.prototype.postMixInProperties.apply(this,arguments);}});}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:"<table class=\"dijit dijitReset dijitInlineTable dijitLeft\" cellspacing=\"0\" cellpadding=\"0\"\n\tid=\"widget_${id}\" name=\"${name}\"\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onkeypress:_onKeyPress\"\n\twaiRole=\"presentation\"\n\t><tr class=\"dijitReset\"\n\t\t><td rowspan=\"2\" class=\"dijitReset dijitStretch dijitInputField\" width=\"100%\"\n\t\t\t><input dojoAttachPoint=\"textbox,focusNode\" type=\"${type}\" dojoAttachEvent=\"onfocus,onkeyup\"\n\t\t\t\twaiRole=\"spinbutton\" autocomplete=\"off\" name=\"${name}\"\n\t\t></td\n\t\t><td rowspan=\"2\" class=\"dijitReset dijitValidationIconField\" width=\"0%\" \n\t\t\t><div dojoAttachPoint='iconNode' class='dijitValidationIcon'></div\n\t\t></td\n\t\t><td class=\"dijitReset dijitRight dijitButtonNode dijitUpArrowButton\" width=\"0%\"\n\t\t\t\tdojoAttachPoint=\"upArrowNode\"\n\t\t\t\tdojoAttachEvent=\"onmousedown:_handleUpArrowEvent,onmouseup:_handleUpArrowEvent,onmouseover:_handleUpArrowEvent,onmouseout:_handleUpArrowEvent\"\n\t\t\t\tstateModifier=\"UpArrow\"\n\t\t\t><div class=\"dijitA11yUpArrow\">&#9650;</div\n\t\t></td\n\t></tr\n\t><tr class=\"dijitReset\"\n\t\t><td class=\"dijitReset dijitRight dijitButtonNode dijitDownArrowButton\" width=\"0%\"\n\t\t\t\tdojoAttachPoint=\"downArrowNode\"\n\t\t\t\tdojoAttachEvent=\"onmousedown:_handleDownArrowEvent,onmouseup:_handleDownArrowEvent,onmouseover:_handleDownArrowEvent,onmouseout:_handleDownArrowEvent\"\n\t\t\t\tstateModifier=\"DownArrow\"\n\t\t\t><div class=\"dijitA11yDownArrow\">&#9660;</div\n\t\t></td\n\t></tr\n></table>\n\n",baseClass:"dijitSpinner",adjust:function(val,_5bb){return val;},_handleUpArrowEvent:function(e){this._onMouse(e,this.upArrowNode);},_handleDownArrowEvent:function(e){this._onMouse(e,this.downArrowNode);},_arrowPressed:function(_5be,_5bf){if(this.disabled){return;}dojo.addClass(_5be,"dijitSpinnerButtonActive");this.setValue(this.adjust(this.getValue(),_5bf*this.smallDelta),false);},_arrowReleased:function(node){if(this.disabled){return;}this._wheelTimer=null;dijit.focus(this.textbox);dojo.removeClass(node,"dijitSpinnerButtonActive");},_typematicCallback:function(_5c1,node,evt){if(node==this.textbox){node=(evt.keyCode==dojo.keys.UP_ARROW)?this.upArrowNode:this.downArrowNode;}if(_5c1==-1){this._arrowReleased(node);}else{this._arrowPressed(node,(node==this.upArrowNode)?1:-1);}},_wheelTimer:null,_mouseWheeled:function(evt){dojo.stopEvent(evt);var _5c5=0;if(typeof evt.wheelDelta=="number"){_5c5=evt.wheelDelta;}else{if(typeof evt.detail=="number"){_5c5=-evt.detail;}}if(_5c5>0){var node=this.upArrowNode;var dir=+1;}else{if(_5c5<0){var node=this.downArrowNode;var dir=-1;}else{return;}}this._arrowPressed(node,dir);if(this._wheelTimer!=null){clearTimeout(this._wheelTimer);}var _5c8=this;this._wheelTimer=setTimeout(function(){_5c8._arrowReleased(node);},50);},postCreate:function(){this.inherited("postCreate",arguments);this.connect(this.textbox,dojo.isIE?"onmousewheel":"DOMMouseScroll","_mouseWheeled");dijit.typematic.addListener(this.upArrowNode,this.textbox,{keyCode:dojo.keys.UP_ARROW,ctrlKey:false,altKey:false,shiftKey:false},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout);dijit.typematic.addListener(this.downArrowNode,this.textbox,{keyCode:dojo.keys.DOWN_ARROW,ctrlKey:false,altKey:false,shiftKey:false},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout);}});}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,_5ca){var _5cb=val+_5ca;if(isNaN(val)||isNaN(_5cb)){return val;}if((typeof this.constraints.max=="number")&&(_5cb>this.constraints.max)){_5cb=this.constraints.max;}if((typeof this.constraints.min=="number")&&(_5cb<this.constraints.min)){_5cb=this.constraints.min;}return _5cb;}});}if(!dojo._hasResource["dijit.form.Slider"]){dojo._hasResource["dijit.form.Slider"]=true;dojo.provide("dijit.form.Slider");dojo.declare("dijit.form.HorizontalSlider",[dijit.form._FormWidget,dijit._Container],{templateString:"<table class=\"dijit dijitReset dijitSlider\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" rules=\"none\"\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 dijitHorizontalSliderButtonContainer\"\n\t\t\t><div class=\"dijitHorizontalSliderDecrementIcon\" tabIndex=\"-1\" style=\"display:none\" dojoAttachPoint=\"decrementButton\" dojoAttachEvent=\"onclick: decrement\"><span class=\"dijitSliderButtonInner\">-</span></div\n\t\t></td\n\t\t><td class=\"dijitReset\"\n\t\t\t><div class=\"dijitSliderBar dijitSliderBumper dijitHorizontalSliderBumper dijitSliderLeftBumper dijitHorizontalSliderLeftBumper\"></div\n\t\t></td\n\t\t><td class=\"dijitReset\"\n\t\t\t><input dojoAttachPoint=\"valueNode\" type=\"hidden\" name=\"${name}\"\n\t\t\t/><div style=\"position:relative;\" dojoAttachPoint=\"sliderBarContainer\"\n\t\t\t\t><div dojoAttachPoint=\"progressBar\" class=\"dijitSliderBar dijitHorizontalSliderBar dijitSliderProgressBar dijitHorizontalSliderProgressBar\" dojoAttachEvent=\"onclick:_onBarClick\"\n\t\t\t\t\t><div dojoAttachPoint=\"sliderHandle,focusNode\" class=\"dijitSliderMoveable dijitHorizontalSliderMoveable\" dojoAttachEvent=\"onkeypress:_onKeyPress,onclick:_onHandleClick\" waiRole=\"slider\" valuemin=\"${minimum}\" valuemax=\"${maximum}\"\n\t\t\t\t\t\t><div class=\"dijitSliderImageHandle dijitHorizontalSliderImageHandle\"></div\n\t\t\t\t\t></div\n\t\t\t\t></div\n\t\t\t\t><div dojoAttachPoint=\"remainingBar\" class=\"dijitSliderBar dijitHorizontalSliderBar dijitSliderRemainingBar dijitHorizontalSliderRemainingBar\" dojoAttachEvent=\"onclick:_onBarClick\"></div\n\t\t\t></div\n\t\t></td\n\t\t><td class=\"dijitReset\"\n\t\t\t><div class=\"dijitSliderBar dijitSliderBumper dijitHorizontalSliderBumper dijitSliderRightBumper dijitHorizontalSliderRightBumper\"></div\n\t\t></td\n\t\t><td class=\"dijitReset dijitSliderButtonContainer dijitHorizontalSliderButtonContainer\" style=\"right:0px;\"\n\t\t\t><div class=\"dijitHorizontalSliderIncrementIcon\" tabIndex=\"-1\" style=\"display:none\" dojoAttachPoint=\"incrementButton\" dojoAttachEvent=\"onclick: increment\"><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,widgetsInTemplate:true,attributeMap:dojo.mixin(dojo.clone(dijit.form._FormWidget.prototype.attributeMap),{id:"",name:"valueNode"}),baseClass:"dijitSlider",_mousePixelCoord:"pageX",_pixelCount:"w",_startingPixelCoord:"x",_startingPixelCount:"l",_handleOffsetCoord:"left",_progressPixelSize:"width",_upsideDown:false,_onKeyPress:function(e){if(this.disabled||e.altKey||e.ctrlKey){return;}switch(e.keyCode){case dojo.keys.HOME:this.setValue(this.minimum,false);break;case dojo.keys.END:this.setValue(this.maximum,false);break;case dojo.keys.UP_ARROW:case (this._isReversed()?dojo.keys.LEFT_ARROW:dojo.keys.RIGHT_ARROW):case dojo.keys.PAGE_UP:this.increment(e);break;case dojo.keys.DOWN_ARROW:case (this._isReversed()?dojo.keys.RIGHT_ARROW:dojo.keys.LEFT_ARROW):case dojo.keys.PAGE_DOWN:this.decrement(e);break;default:this.inherited("_onKeyPress",arguments);return;}dojo.stopEvent(e);},_onHandleClick:function(e){if(this.disabled){return;}if(!dojo.isIE){dijit.focus(this.sliderHandle);}dojo.stopEvent(e);},_isReversed:function(){return !(this._upsideDown||this.isLeftToRight());},_onBarClick:function(e){if(this.disabled||!this.clickSelect){return;}dijit.focus(this.sliderHandle);dojo.stopEvent(e);var _5cf=dojo.coords(this.sliderBarContainer,true);var _5d0=e[this._mousePixelCoord]-_5cf[this._startingPixelCoord];this._setPixelValue(this._isReversed()||this._upsideDown?(_5cf[this._pixelCount]-_5d0):_5d0,_5cf[this._pixelCount],true);},_setPixelValue:function(_5d1,_5d2,_5d3){if(this.disabled){return;}_5d1=_5d1<0?0:_5d2<_5d1?_5d2:_5d1;var _5d4=this.discreteValues;if(_5d4<=1||_5d4==Infinity){_5d4=_5d2;}_5d4--;var _5d5=_5d2/_5d4;var _5d6=Math.round(_5d1/_5d5);this.setValue((this.maximum-this.minimum)*_5d6/_5d4+this.minimum,_5d3);},setValue:function(_5d7,_5d8){this.valueNode.value=this.value=_5d7;this.inherited("setValue",arguments);var _5d9=(_5d7-this.minimum)/(this.maximum-this.minimum);this.progressBar.style[this._progressPixelSize]=(_5d9*100)+"%";this.remainingBar.style[this._progressPixelSize]=((1-_5d9)*100)+"%";},_bumpValue:function(_5da){if(this.disabled){return;}var s=dojo.getComputedStyle(this.sliderBarContainer);var c=dojo._getContentBox(this.sliderBarContainer,s);var _5dd=this.discreteValues;if(_5dd<=1||_5dd==Infinity){_5dd=c[this._pixelCount];}_5dd--;var _5de=(this.value-this.minimum)*_5dd/(this.maximum-this.minimum)+_5da;if(_5de<0){_5de=0;}if(_5de>_5dd){_5de=_5dd;}_5de=_5de*(this.maximum-this.minimum)/_5dd+this.minimum;this.setValue(_5de,true);},decrement:function(e){this._bumpValue(e.keyCode==dojo.keys.PAGE_DOWN?-this.pageIncrement:-1);},increment:function(e){this._bumpValue(e.keyCode==dojo.keys.PAGE_UP?this.pageIncrement:1);},_mouseWheeled:function(evt){dojo.stopEvent(evt);var _5e2=0;if(typeof evt.wheelDelta=="number"){_5e2=evt.wheelDelta;}else{if(typeof evt.detail=="number"){_5e2=-evt.detail;}}if(_5e2>0){this.increment(evt);}else{if(_5e2<0){this.decrement(evt);}}},startup:function(){dojo.forEach(this.getChildren(),function(_5e3){if(this[_5e3.container]!=this.containerNode){this[_5e3.container].appendChild(_5e3.domNode);}},this);},_onBlur:function(){dijit.form.HorizontalSlider.superclass.setValue.call(this,this.value,true);},postCreate:function(){if(this.showButtons){this.incrementButton.style.display="";this.decrementButton.style.display="";}this.connect(this.domNode,dojo.isIE?"onmousewheel":"DOMMouseScroll","_mouseWheeled");var _5e4=this;var _5e5=function(){dijit.form._SliderMover.apply(this,arguments);this.widget=_5e4;};dojo.extend(_5e5,dijit.form._SliderMover.prototype);this._movable=new dojo.dnd.Moveable(this.sliderHandle,{mover:_5e5});this.inherited("postCreate",arguments);},destroy:function(){this._movable.destroy();this.inherited("destroy",arguments);}});dojo.declare("dijit.form.VerticalSlider",dijit.form.HorizontalSlider,{templateString:"<table class=\"dijitReset dijitSlider\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" rules=\"none\"\n><tbody class=\"dijitReset\"\n\t><tr class=\"dijitReset\"\n\t\t><td class=\"dijitReset\"></td\n\t\t><td class=\"dijitReset dijitSliderButtonContainer dijitVerticalSliderButtonContainer\"\n\t\t\t><div class=\"dijitVerticalSliderIncrementIcon\" tabIndex=\"-1\" style=\"display:none\" dojoAttachPoint=\"incrementButton\" dojoAttachEvent=\"onclick: increment\"><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 dijitVerticalSliderBumper dijitSliderTopBumper dijitVerticalSliderTopBumper\"></div></center\n\t\t></td\n\t\t><td class=\"dijitReset\"></td\n\t></tr\n\t><tr class=\"dijitReset\"\n\t\t><td dojoAttachPoint=\"leftDecoration\" class=\"dijitReset\" style=\"text-align:center;height:100%;\"></td\n\t\t><td class=\"dijitReset\" style=\"height:100%;\"\n\t\t\t><input dojoAttachPoint=\"valueNode\" type=\"hidden\" name=\"${name}\"\n\t\t\t/><center style=\"position:relative;height:100%;\" dojoAttachPoint=\"sliderBarContainer\"\n\t\t\t\t><div dojoAttachPoint=\"remainingBar\" class=\"dijitSliderBar dijitVerticalSliderBar dijitSliderRemainingBar dijitVerticalSliderRemainingBar\" dojoAttachEvent=\"onclick:_onBarClick\"></div\n\t\t\t\t><div dojoAttachPoint=\"progressBar\" class=\"dijitSliderBar dijitVerticalSliderBar dijitSliderProgressBar dijitVerticalSliderProgressBar\" dojoAttachEvent=\"onclick:_onBarClick\"\n\t\t\t\t\t><div dojoAttachPoint=\"sliderHandle,focusNode\" class=\"dijitSliderMoveable\" dojoAttachEvent=\"onkeypress:_onKeyPress,onclick:_onHandleClick\" style=\"vertical-align:top;\" waiRole=\"slider\" valuemin=\"${minimum}\" valuemax=\"${maximum}\"\n\t\t\t\t\t\t><div class=\"dijitSliderImageHandle dijitVerticalSliderImageHandle\"></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 dijitVerticalSliderBumper dijitSliderBottomBumper dijitVerticalSliderBottomBumper\"></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 dijitVerticalSliderButtonContainer\"\n\t\t\t><div class=\"dijitVerticalSliderDecrementIcon\" tabIndex=\"-1\" style=\"display:none\" dojoAttachPoint=\"decrementButton\" dojoAttachEvent=\"onclick: decrement\"><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",_upsideDown:true});dojo.declare("dijit.form._SliderMover",dojo.dnd.Mover,{onMouseMove:function(e){var _5e7=this.widget;var c=this.constraintBox;if(!c){var _5e9=_5e7.sliderBarContainer;var s=dojo.getComputedStyle(_5e9);var c=dojo._getContentBox(_5e9,s);c[_5e7._startingPixelCount]=0;this.constraintBox=c;}var m=this.marginBox;var _5ec=_5e7._isReversed()?e[_5e7._mousePixelCoord]-dojo._abs(_5e7.sliderBarContainer).x:m[_5e7._startingPixelCount]+e[_5e7._mousePixelCoord];dojo.hitch(_5e7,"_setPixelValue")(_5e7._isReversed()||_5e7._upsideDown?(c[_5e7._pixelCount]-_5ec):_5ec,c[_5e7._pixelCount]);},destroy:function(e){var _5ee=this.widget;_5ee.setValue(_5ee.value,true);dojo.dnd.Mover.prototype.destroy.call(this);}});dojo.declare("dijit.form.HorizontalRule",[dijit._Widget,dijit._Templated],{templateString:"<div class=\"RuleContainer HorizontalRuleContainer\"></div>",count:3,container:"containerNode",ruleStyle:"",_positionPrefix:"<div class=\"RuleMark HorizontalRuleMark\" style=\"left:",_positionSuffix:"%;",_suffix:"\"></div>",_genHTML:function(pos,ndx){return this._positionPrefix+pos+this._positionSuffix+this.ruleStyle+this._suffix;},_isHorizontal:true,postCreate:function(){if(this.count==1){var _5f1=this._genHTML(50,0);}else{var _5f2=100/(this.count-1);if(!this._isHorizontal||this.isLeftToRight()){var _5f1=this._genHTML(0,0);for(var i=1;i<this.count-1;i++){_5f1+=this._genHTML(_5f2*i,i);}_5f1+=this._genHTML(100,this.count-1);}else{var _5f1=this._genHTML(100,0);for(var i=1;i<this.count-1;i++){_5f1+=this._genHTML(100-_5f2*i,i);}_5f1+=this._genHTML(0,this.count-1);}}this.domNode.innerHTML=_5f1;}});dojo.declare("dijit.form.VerticalRule",dijit.form.HorizontalRule,{templateString:"<div class=\"RuleContainer VerticalRuleContainer\"></div>",_positionPrefix:"<div class=\"RuleMark VerticalRuleMark\" style=\"top:",_isHorizontal:false});dojo.declare("dijit.form.HorizontalRuleLabels",dijit.form.HorizontalRule,{templateString:"<div class=\"RuleContainer HorizontalRuleContainer\"></div>",labelStyle:"",labels:[],numericMargin:0,minimum:0,maximum:1,constraints:{pattern:"#%"},_positionPrefix:"<div class=\"RuleLabelContainer HorizontalRuleLabelContainer\" style=\"left:",_labelPrefix:"\"><span class=\"RuleLabel HorizontalRuleLabel\">",_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 _5f7=this.labels;if(!_5f7.length){_5f7=dojo.query("> li",this.srcNodeRef).map(function(node){return String(node.innerHTML);});}this.srcNodeRef.innerHTML="";if(!_5f7.length&&this.count>1){var _5f9=this.minimum;var inc=(this.maximum-_5f9)/(this.count-1);for(var i=0;i<this.count;i++){_5f7.push((i<this.numericMargin||i>=(this.count-this.numericMargin))?"":dojo.number.format(_5f9,this.constraints));_5f9+=inc;}}return _5f7;},postMixInProperties:function(){this.inherited("postMixInProperties",arguments);this.labels=this.getLabels();this.count=this.labels.length;}});dojo.declare("dijit.form.VerticalRuleLabels",dijit.form.HorizontalRuleLabels,{templateString:"<div class=\"RuleContainer VerticalRuleContainer\"></div>",_positionPrefix:"<div class=\"RuleLabelContainer VerticalRuleLabelContainer\" style=\"top:",_labelPrefix:"\"><span class=\"RuleLabel VerticalRuleLabel\">",_calcPosition:function(pos){return 100-pos;},_isHorizontal:false});}if(!dojo._hasResource["dijit.form.Textarea"]){dojo._hasResource["dijit.form.Textarea"]=true;dojo.provide("dijit.form.Textarea");dojo.declare("dijit.form.Textarea",dijit.form._FormWidget,{attributeMap:dojo.mixin(dojo.clone(dijit.form._FormWidget.prototype.attributeMap),{style:"styleNode","class":"styleNode"}),templateString:(dojo.isIE||dojo.isSafari||dojo.isMozilla)?((dojo.isIE||dojo.isSafari)?"<fieldset id=\"${id}\" class=\"dijitInline dijitInputField dijitTextArea\" dojoAttachPoint=\"styleNode\" waiRole=\"presentation\"><div dojoAttachPoint=\"editNode,focusNode,eventNode\" dojoAttachEvent=\"onpaste:_changing,oncut:_changing\" waiRole=\"textarea\" style=\"text-decoration:none;_padding-bottom:16px;display:block;overflow:auto;\" contentEditable=\"true\"></div>":"<span id=\"${id}\" class=\"dijitReset\">"+"<iframe src=\"javascript:<html><head><title>${_iframeEditTitle}</title></head><body><script>var _postCreate=window.frameElement?window.frameElement.postCreate:null;if(_postCreate)_postCreate();</script></body></html>\""+" dojoAttachPoint=\"iframe,styleNode\" dojoAttachEvent=\"onblur:_onIframeBlur\" class=\"dijitInline dijitInputField dijitTextArea\"></iframe>")+"<textarea name=\"${name}\" value=\"${value}\" dojoAttachPoint=\"formValueNode\" style=\"display:none;\"></textarea>"+((dojo.isIE||dojo.isSafari)?"</fieldset>":"</span>"):"<textarea id=\"${id}\" name=\"${name}\" value=\"${value}\" dojoAttachPoint=\"formValueNode,editNode,focusNode,styleNode\" class=\"dijitInputField dijitTextArea\"></textarea>",focus:function(){if(!this.disabled){this._changing();}if(dojo.isMozilla){dijit.focus(this.iframe);}else{dijit.focus(this.focusNode);}},setValue:function(_5fd,_5fe){var _5ff=this.editNode;if(typeof _5fd=="string"){_5ff.innerHTML="";if(_5fd.split){var _600=this;var _601=true;dojo.forEach(_5fd.split("\n"),function(line){if(_601){_601=false;}else{_5ff.appendChild(document.createElement("BR"));}_5ff.appendChild(document.createTextNode(line));});}else{_5ff.appendChild(document.createTextNode(_5fd));}}else{_5fd=_5ff.innerHTML;if(this.iframe){_5fd=_5fd.replace(/<div><\/div>\r?\n?$/i,"");}_5fd=_5fd.replace(/\s*\r?\n|^\s+|\s+$|&nbsp;/g,"").replace(/>\s+</g,"><").replace(/<\/(p|div)>$|^<(p|div)[^>]*>/gi,"").replace(/([^>])<div>/g,"$1\n").replace(/<\/p>\s*<p[^>]*>|<br[^>]*>/gi,"\n").replace(/<[^>]*>/g,"").replace(/&amp;/gi,"&").replace(/&lt;/gi,"<").replace(/&gt;/gi,">");}this.value=this.formValueNode.value=_5fd;if(this.iframe){var _603=document.createElement("div");_5ff.appendChild(_603);var _604=_603.offsetTop;if(_5ff.scrollWidth>_5ff.clientWidth){_604+=16;}if(this.lastHeight!=_604){if(_604==0){_604=16;}dojo.contentBox(this.iframe,{h:_604});this.lastHeight=_604;}_5ff.removeChild(_603);}dijit.form.Textarea.superclass.setValue.call(this,this.getValue(),_5fe);},getValue:function(){return this.formValueNode.value.replace(/\r/g,"");},postMixInProperties:function(){dijit.form.Textarea.superclass.postMixInProperties.apply(this,arguments);if(this.srcNodeRef&&this.srcNodeRef.innerHTML!=""){this.value=this.srcNodeRef.innerHTML;this.srcNodeRef.innerHTML="";}if((!this.value||this.value=="")&&this.srcNodeRef&&this.srcNodeRef.value){this.value=this.srcNodeRef.value;}if(!this.value){this.value="";}this.value=this.value.replace(/\r\n/g,"\n").replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&");if(dojo.isMozilla){var _605=dojo.i18n.getLocalization("dijit","Textarea");this._iframeEditTitle=_605.iframeEditTitle;this._iframeFocusTitle=_605.iframeFocusTitle;var _606=dojo.query("label[for=\""+this.id+"\"]");if(_606.length){this._iframeEditTitle=_606[0].innerHTML+" "+this._iframeEditTitle;}var body=this.focusNode=this.editNode=document.createElement("BODY");body.style.margin="0px";body.style.padding="0px";body.style.border="0px";}},postCreate:function(){if(dojo.isIE||dojo.isSafari){this.domNode.style.overflowY="hidden";}else{if(dojo.isMozilla){var w=this.iframe.contentWindow;try{var _609=this.iframe.contentDocument.title;}catch(e){var _609="";}if(!w||!_609){this.iframe.postCreate=dojo.hitch(this,this.postCreate);return;}var d=w.document;d.getElementsByTagName("HTML")[0].replaceChild(this.editNode,d.getElementsByTagName("BODY")[0]);if(!this.isLeftToRight()){d.getElementsByTagName("HTML")[0].dir="rtl";}this.iframe.style.overflowY="hidden";this.eventNode=d;w.addEventListener("resize",dojo.hitch(this,this._changed),false);}else{this.focusNode=this.domNode;}}if(this.eventNode){this.connect(this.eventNode,"keypress",this._onKeyPress);this.connect(this.eventNode,"mousemove",this._changed);this.connect(this.eventNode,"focus",this._focused);this.connect(this.eventNode,"blur",this._blurred);}if(this.editNode){this.connect(this.editNode,"change",this._changed);}this.inherited("postCreate",arguments);},_focused:function(e){dojo.addClass(this.iframe||this.domNode,"dijitInputFieldFocused");this._changed(e);},_blurred:function(e){dojo.removeClass(this.iframe||this.domNode,"dijitInputFieldFocused");this._changed(e,true);},_onIframeBlur:function(){this.iframe.contentDocument.title=this._iframeEditTitle;},_onKeyPress:function(e){if(e.keyCode==dojo.keys.TAB&&!e.shiftKey&&!e.ctrlKey&&!e.altKey&&this.iframe){this.iframe.contentDocument.title=this._iframeFocusTitle;this.iframe.focus();dojo.stopEvent(e);}else{if(e.keyCode==dojo.keys.ENTER){e.stopPropagation();}else{if(this.inherited("_onKeyPress",arguments)&&this.iframe){var te=document.createEvent("KeyEvents");te.initKeyEvent("keypress",true,true,null,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.keyCode,e.charCode);this.iframe.dispatchEvent(te);}}}this._changing();},_changing:function(e){setTimeout(dojo.hitch(this,"_changed",e,false),1);},_changed:function(e,_611){if(this.iframe&&this.iframe.contentDocument.designMode!="on"){this.iframe.contentDocument.designMode="on";}this.setValue(null,_611);}});}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,_started:false,postCreate:function(){dijit.setWaiRole((this.containerNode||this.domNode),"tabpanel");this.connect(this.domNode,"onkeypress",this._onKeyPress);},startup:function(){if(this._started){return;}var _612=this.getChildren();dojo.forEach(_612,this._setupChild,this);dojo.some(_612,function(_613){if(_613.selected){this.selectedChildWidget=_613;}return _613.selected;},this);var _614=this.selectedChildWidget;if(!_614&&_612[0]){_614=this.selectedChildWidget=_612[0];_614.selected=true;}if(_614){this._showChild(_614);}dojo.publish(this.id+"-startup",[{children:_612,selected:_614}]);this.inherited("startup",arguments);this._started=true;},_setupChild:function(page){page.domNode.style.display="none";page.domNode.style.position="relative";return page;},addChild:function(_616,_617){dijit._Container.prototype.addChild.apply(this,arguments);_616=this._setupChild(_616);if(this._started){this.layout();dojo.publish(this.id+"-addChild",[_616,_617]);if(!this.selectedChildWidget){this.selectChild(_616);}}},removeChild:function(page){dijit._Container.prototype.removeChild.apply(this,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 _619=this.getChildren();if(_619.length){this.selectChild(_619[0]);}}}},selectChild:function(page){page=dijit.byId(page);if(this.selectedChildWidget!=page){this._transition(page,this.selectedChildWidget);this.selectedChildWidget=page;dojo.publish(this.id+"-selectChild",[page]);}},_transition:function(_61b,_61c){if(_61c){this._hideChild(_61c);}this._showChild(_61b);if(this.doLayout&&_61b.resize){_61b.resize(this._containerContentBox||this._contentBox);}},_adjacent:function(_61d){var _61e=this.getChildren();var _61f=dojo.indexOf(_61e,this.selectedChildWidget);_61f+=_61d?1:_61e.length-1;return _61e[_61f%_61e.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 _622=this.getChildren();page.isFirstChild=(page==_622[0]);page.isLastChild=(page==_622[_622.length-1]);page.selected=true;page.domNode.style.display="";if(page._loadCheck){page._loadCheck();}if(page.onShow){page.onShow();}},_hideChild:function(page){page.selected=false;page.domNode.style.display="none";if(page.onHide){page.onHide();}},closeChild:function(page){var _625=page.onClose(this,page);if(_625){this.removeChild(page);page.destroy();}},destroy:function(){this._beingDestroyed=true;this.inherited("destroy",arguments);}});dojo.declare("dijit.layout.StackController",[dijit._Widget,dijit._Templated,dijit._Container],{templateString:"<span wairole='tablist' dojoAttachEvent='onkeypress' class='dijitStackController'></span>",containerId:"",buttonWidget:"dijit.layout._StackButton",postCreate:function(){dijit.setWaiRole(this.domNode,"tablist");this.pane2button={};this._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(){dojo.forEach(this._subscriptions,dojo.unsubscribe);this.inherited("destroy",arguments);},onAddChild:function(page,_628){var _629=document.createElement("span");this.domNode.appendChild(_629);var cls=dojo.getObject(this.buttonWidget);var _62b=new cls({label:page.title,closeButton:page.closable},_629);this.addChild(_62b,_628);this.pane2button[page]=_62b;page.controlButton=_62b;dojo.connect(_62b,"onClick",dojo.hitch(this,"onButtonClick",page));dojo.connect(_62b,"onClickCloseButton",dojo.hitch(this,"onCloseButtonClick",page));if(!this._currentChild){_62b.focusNode.setAttribute("tabIndex","0");this._currentChild=page;}},onRemoveChild:function(page){if(this._currentChild===page){this._currentChild=null;}var _62d=this.pane2button[page];if(_62d){_62d.destroy();}this.pane2button[page]=null;},onSelectChild:function(page){if(!page){return;}if(this._currentChild){var _62f=this.pane2button[this._currentChild];_62f.setChecked(false);_62f.focusNode.setAttribute("tabIndex","-1");}var _630=this.pane2button[page];_630.setChecked(true);this._currentChild=page;_630.focusNode.setAttribute("tabIndex","0");},onButtonClick:function(page){var _632=dijit.byId(this.containerId);_632.selectChild(page);},onCloseButtonClick:function(page){var _634=dijit.byId(this.containerId);_634.closeChild(page);var b=this.pane2button[this._currentChild];if(b){dijit.focus(b.focusNode||b.domNode);}},adjacent:function(_636){var _637=this.getChildren();var _638=dojo.indexOf(_637,this.pane2button[this._currentChild]);var _639=_636?1:_637.length-1;return _637[(_638+_639)%_637.length];},onkeypress:function(e){if(this.disabled||e.altKey){return;}var _63b=true;if(e.ctrlKey||!e._djpage){var k=dojo.keys;switch(e.keyCode){case k.LEFT_ARROW:case k.UP_ARROW:case k.PAGE_UP:_63b=false;case k.RIGHT_ARROW:case k.DOWN_ARROW:case k.PAGE_DOWN:this.adjacent(_63b).onClick();dojo.stopEvent(e);break;case k.DELETE:if(this._currentChild.closable){this.onCloseButtonClick(this._currentChild);}dojo.stopEvent(e);break;default:if(e.ctrlKey){if(e.keyCode==k.TAB){this.adjacent(!e.shiftKey).onClick();dojo.stopEvent(e);}else{if(e.keyChar=="w"){if(this._currentChild.closable){this.onCloseButtonClick(this._currentChild);}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("postCreate",arguments);},onClick:function(evt){dijit.focus(this.focusNode);},onClickCloseButton:function(evt){evt.stopPropagation();}});dojo.extend(dijit._Widget,{title:"",selected:false,closable:false,onClose:function(){return true;}});}if(!dojo._hasResource["dijit.layout.AccordionContainer"]){dojo._hasResource["dijit.layout.AccordionContainer"]=true;dojo.provide("dijit.layout.AccordionContainer");dojo.declare("dijit.layout.AccordionContainer",dijit.layout.StackContainer,{duration:250,_verticalSpace:0,postCreate:function(){this.domNode.style.overflow="hidden";this.inherited("postCreate",arguments);dijit.setWaiRole(this.domNode,"tablist");dojo.addClass(this.domNode,"dijitAccordionContainer");},startup:function(){if(this._started){return;}this.inherited("startup",arguments);if(this.selectedChildWidget){var _641=this.selectedChildWidget.containerNode.style;_641.display="";_641.overflow="auto";this.selectedChildWidget._setSelectedState(true);}},layout:function(){var _642=0;var _643=this.selectedChildWidget;dojo.forEach(this.getChildren(),function(_644){_642+=_644.getTitleHeight();});var _645=this._contentBox;this._verticalSpace=(_645.h-_642);if(_643){_643.containerNode.style.height=this._verticalSpace+"px";}},_setupChild:function(page){return page;},_transition:function(_647,_648){if(this._inTransition){return;}this._inTransition=true;var _649=[];var _64a=this._verticalSpace;if(_647){_647.setSelected(true);var _64b=_647.containerNode;_64b.style.display="";_649.push(dojo.animateProperty({node:_64b,duration:this.duration,properties:{height:{start:"1",end:_64a}},onEnd:function(){_64b.style.overflow="auto";}}));}if(_648){_648.setSelected(false);var _64c=_648.containerNode;_64c.style.overflow="hidden";_649.push(dojo.animateProperty({node:_64c,duration:this.duration,properties:{height:{start:_64a,end:"1"}},onEnd:function(){_64c.style.display="none";}}));}this._inTransition=false;dojo.fx.combine(_649).play();},_onKeyPress:function(e){if(this.disabled||e.altKey){return;}var k=dojo.keys;switch(e.keyCode){case k.LEFT_ARROW:case k.UP_ARROW:case k.PAGE_UP:this._adjacent(false)._onTitleClick();dojo.stopEvent(e);break;case k.RIGHT_ARROW:case k.DOWN_ARROW:case k.PAGE_DOWN:this._adjacent(true)._onTitleClick();dojo.stopEvent(e);break;default:if(e.ctrlKey&&e.keyCode==k.TAB){this._adjacent(e._dijitWidget,!e.shiftKey)._onTitleClick();dojo.stopEvent(e);}}}});dojo.declare("dijit.layout.AccordionPane",[dijit.layout.ContentPane,dijit._Templated,dijit._Contained],{templateString:"<div class='dijitAccordionPane'\n\t><div dojoAttachPoint='titleNode,focusNode' dojoAttachEvent='ondijitclick:_onTitleClick,onkeypress:_onTitleKeyPress,onfocus:_handleFocus,onblur:_handleFocus'\n\t\tclass='dijitAccordionTitle' wairole=\"tab\"\n\t\t><div class='dijitAccordionArrow'></div\n\t\t><div class='arrowTextUp' waiRole=\"presentation\">&#9650;</div\n\t\t><div class='arrowTextDown' waiRole=\"presentation\">&#9660;</div\n\t\t><div dojoAttachPoint='titleTextNode' class='dijitAccordionText'>${title}</div></div\n\t><div><div dojoAttachPoint='containerNode' style='overflow: hidden; height: 1px; display: none'\n\t\tclass='dijitAccordionBody' wairole=\"tabpanel\"\n\t></div></div>\n</div>\n",postCreate:function(){this.inherited("postCreate",arguments);dojo.setSelectable(this.titleNode,false);this.setSelected(this.selected);},getTitleHeight:function(){return dojo.marginBox(this.titleNode).h;},_onTitleClick:function(){var _64f=this.getParent();if(!_64f._inTransition){_64f.selectChild(this);dijit.focus(this.focusNode);}},_onTitleKeyPress:function(evt){evt._dijitWidget=this;return this.getParent()._onKeyPress(evt);},_setSelectedState:function(_651){this.selected=_651;dojo[(_651?"addClass":"removeClass")](this.domNode,"dijitAccordionPane-selected");this.focusNode.setAttribute("tabIndex",_651?"0":"-1");},_handleFocus:function(e){dojo[(e.type=="focus"?"addClass":"removeClass")](this.focusNode,"dijitAccordionPaneFocused");},setSelected:function(_653){this._setSelectedState(_653);if(_653){this.onSelected();}},onSelected:function(){}});}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,{layout:function(){dijit.layout.layoutChildren(this.domNode,this._contentBox,this.getChildren());},addChild:function(_654,_655){dijit._Container.prototype.addChild.apply(this,arguments);if(this._started){dijit.layout.layoutChildren(this.domNode,this._contentBox,this.getChildren());}},removeChild:function(_656){dijit._Container.prototype.removeChild.apply(this,arguments);if(this._started){dijit.layout.layoutChildren(this.domNode,this._contentBox,this.getChildren());}}});dojo.extend(dijit._Widget,{layoutAlign:"none"});}if(!dojo._hasResource["dijit.layout.LinkPane"]){dojo._hasResource["dijit.layout.LinkPane"]=true;dojo.provide("dijit.layout.LinkPane");dojo.declare("dijit.layout.LinkPane",[dijit.layout.ContentPane,dijit._Templated],{templateString:"<div class=\"dijitLinkPane\"></div>",postCreate:function(){if(this.srcNodeRef){this.title+=this.srcNodeRef.innerHTML;}this.inherited("postCreate",arguments);}});}if(!dojo._hasResource["dijit.layout.SplitContainer"]){dojo._hasResource["dijit.layout.SplitContainer"]=true;dojo.provide("dijit.layout.SplitContainer");dojo.declare("dijit.layout.SplitContainer",dijit.layout._LayoutWidget,{activeSizing:false,sizerWidth:7,orientation:"horizontal",persist:true,postMixInProperties:function(){this.inherited("postMixInProperties",arguments);this.isHorizontal=(this.orientation=="horizontal");},postCreate:function(){this.inherited("postCreate",arguments);this.sizers=[];dojo.addClass(this.domNode,"dijitSplitContainer");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 _657=this.virtualSizer=document.createElement("div");_657.style.position="relative";_657.style.zIndex=10;_657.className=this.isHorizontal?"dijitSplitContainerVirtualSizerH":"dijitSplitContainerVirtualSizerV";this.domNode.appendChild(_657);dojo.setSelectable(_657,false);},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_658,i,_65a){this._injectChild(_658);if(i<_65a.length-1){this._addSizer();}},this);if(this.persist){this._restoreState();}this.inherited("startup",arguments);this._started=true;},_injectChild:function(_65b){_65b.domNode.style.position="absolute";dojo.addClass(_65b.domNode,"dijitSplitPane");},_addSizer:function(){var i=this.sizers.length;var _65d=this.sizers[i]=document.createElement("div");_65d.className=this.isHorizontal?"dijitSplitContainerSizerH":"dijitSplitContainerSizerV";var _65e=document.createElement("div");_65e.className="thumb";_65d.appendChild(_65e);var self=this;var _660=(function(){var _661=i;return function(e){self.beginSizing(e,_661);};})();dojo.connect(_65d,"onmousedown",_660);this.domNode.appendChild(_65d);dojo.setSelectable(_65d,false);},removeChild:function(_663){if(this.sizers.length&&dojo.indexOf(this.getChildren(),_663)!=-1){var i=this.sizers.length-1;dojo._destroyElement(this.sizers[i]);this.sizers.length--;}this.inherited("removeChild",arguments);if(this._started){this.layout();}},addChild:function(_665,_666){this.inherited("addChild",arguments);if(this._started){this._injectChild(_665);var _667=this.getChildren();if(_667.length>1){this._addSizer();}this.layout();}},layout:function(){this.paneWidth=this._contentBox.w;this.paneHeight=this._contentBox.h;var _668=this.getChildren();if(!_668.length){return;}var _669=this.isHorizontal?this.paneWidth:this.paneHeight;if(_668.length>1){_669-=this.sizerWidth*(_668.length-1);}var _66a=0;dojo.forEach(_668,function(_66b){_66a+=_66b.sizeShare;});var _66c=_669/_66a;var _66d=0;dojo.forEach(_668.slice(0,_668.length-1),function(_66e){var size=Math.round(_66c*_66e.sizeShare);_66e.sizeActual=size;_66d+=size;});_668[_668.length-1].sizeActual=_669-_66d;this._checkSizes();var pos=0;var size=_668[0].sizeActual;this._movePanel(_668[0],pos,size);_668[0].position=pos;pos+=size;if(!this.sizers){return;}dojo.some(_668.slice(1),function(_672,i){if(!this.sizers[i]){return true;}this._moveSlider(this.sizers[i],pos,this.sizerWidth);this.sizers[i].position=pos;pos+=this.sizerWidth;size=_672.sizeActual;this._movePanel(_672,pos,size);_672.position=pos;pos+=size;},this);},_movePanel:function(_674,pos,size){if(this.isHorizontal){_674.domNode.style.left=pos+"px";_674.domNode.style.top=0;var box={w:size,h:this.paneHeight};if(_674.resize){_674.resize(box);}else{dojo.marginBox(_674.domNode,box);}}else{_674.domNode.style.left=0;_674.domNode.style.top=pos+"px";var box={w:this.paneWidth,h:size};if(_674.resize){_674.resize(box);}else{dojo.marginBox(_674.domNode,box);}}},_moveSlider:function(_678,pos,size){if(this.isHorizontal){_678.style.left=pos+"px";_678.style.top=0;dojo.marginBox(_678,{w:size,h:this.paneHeight});}else{_678.style.left=0;_678.style.top=pos+"px";dojo.marginBox(_678,{w:this.paneWidth,h:size});}},_growPane:function(_67b,pane){if(_67b>0){if(pane.sizeActual>pane.sizeMin){if((pane.sizeActual-pane.sizeMin)>_67b){pane.sizeActual=pane.sizeActual-_67b;_67b=0;}else{_67b-=pane.sizeActual-pane.sizeMin;pane.sizeActual=pane.sizeMin;}}}return _67b;},_checkSizes:function(){var _67d=0;var _67e=0;var _67f=this.getChildren();dojo.forEach(_67f,function(_680){_67e+=_680.sizeActual;_67d+=_680.sizeMin;});if(_67d<=_67e){var _681=0;dojo.forEach(_67f,function(_682){if(_682.sizeActual<_682.sizeMin){_681+=_682.sizeMin-_682.sizeActual;_682.sizeActual=_682.sizeMin;}});if(_681>0){var list=this.isDraggingLeft?_67f.reverse():_67f;dojo.forEach(list,function(_684){_681=this._growPane(_681,_684);},this);}}else{dojo.forEach(_67f,function(_685){_685.sizeActual=Math.round(_67e*(_685.sizeMin/_67d));});}},beginSizing:function(e,i){var _688=this.getChildren();this.paneBefore=_688[i];this.paneAfter=_688[i+1];this.isSizing=true;this.sizingSplitter=this.sizers[i];if(!this.cover){this.cover=dojo.doc.createElement("div");this.domNode.appendChild(this.cover);var s=this.cover.style;s.position="absolute";s.zIndex=1;s.top=0;s.left=0;s.width="100%";s.height="100%";}else{this.cover.style.zIndex=1;}this.sizingSplitter.style.zIndex=2;this.originPos=dojo.coords(_688[0].domNode,true);if(this.isHorizontal){var _68a=(e.layerX?e.layerX:e.offsetX);var _68b=e.pageX;this.originPos=this.originPos.x;}else{var _68a=(e.layerY?e.layerY:e.offsetY);var _68b=e.pageY;this.originPos=this.originPos.y;}this.startPoint=this.lastPoint=_68b;this.screenToClientOffset=_68b-_68a;this.dragOffset=this.lastPoint-this.paneBefore.sizeActual-this.originPos-this.paneBefore.position;if(!this.activeSizing){this._showSizingLine();}this._connects=[];this._connects.push(dojo.connect(document.documentElement,"onmousemove",this,"changeSizing"));this._connects.push(dojo.connect(document.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._connects,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 _694=this.paneBefore.position;var _695=this.paneAfter.position+this.paneAfter.sizeActual;this.paneBefore.sizeActual=pos-_694;this.paneAfter.position=pos+this.sizerWidth;this.paneAfter.sizeActual=_695-this.paneAfter.position;dojo.forEach(this.getChildren(),function(_696){_696.sizeShare=_696.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(_699,i){var _69b=this._getCookieName(i);var _69c=dojo.cookie(_69b);if(_69c){var pos=parseInt(_69c);if(typeof pos=="number"){_699.sizeShare=pos;}}},this);},_saveState:function(){dojo.forEach(this.getChildren(),function(_69e,i){dojo.cookie(this._getCookieName(i),_69e.sizeShare);},this);}});dojo.extend(dijit._Widget,{sizeMin:10,sizeShare:10});}if(!dojo._hasResource["dijit.layout.TabContainer"]){dojo._hasResource["dijit.layout.TabContainer"]=true;dojo.provide("dijit.layout.TabContainer");dojo.declare("dijit.layout.TabContainer",[dijit.layout.StackContainer,dijit._Templated],{tabPosition:"top",templateString:null,templateString:"<div class=\"dijitTabContainer\">\n\t<div dojoAttachPoint=\"tablistNode\"></div>\n\t<div class=\"dijitTabPaneWrapper\" dojoAttachPoint=\"containerNode\"></div>\n</div>\n",postCreate:function(){dijit.layout.TabContainer.superclass.postCreate.apply(this,arguments);this.tablist=new dijit.layout.TabController({id:this.id+"_tablist",tabPosition:this.tabPosition,doLayout:this.doLayout,containerId:this.id},this.tablistNode);},_setupChild:function(tab){dojo.addClass(tab.domNode,"dijitTabPane");this.inherited("_setupChild",arguments);return tab;},startup:function(){if(this._started){return;}this.tablist.startup();this.inherited("startup",arguments);if(dojo.isSafari){setTimeout(dojo.hitch(this,"layout"),0);}},layout:function(){if(!this.doLayout){return;}var _6a1=this.tabPosition.replace(/-h/,"");var _6a2=[{domNode:this.tablist.domNode,layoutAlign:_6a1},{domNode:this.containerNode,layoutAlign:"client"}];dijit.layout.layoutChildren(this.domNode,this._contentBox,_6a2);this._containerContentBox=dijit.layout.marginBox2contentBox(this.containerNode,_6a2[1]);if(this.selectedChildWidget){this._showChild(this.selectedChildWidget);if(this.doLayout&&this.selectedChildWidget.resize){this.selectedChildWidget.resize(this._containerContentBox);}}},destroy:function(){this.tablist.destroy();this.inherited("destroy",arguments);}});dojo.declare("dijit.layout.TabController",dijit.layout.StackController,{templateString:"<div wairole='tablist' dojoAttachEvent='onkeypress:onkeypress'></div>",tabPosition:"top",doLayout:true,buttonWidget:"dijit.layout._TabButton",postMixInProperties:function(){this["class"]="dijitTabLabels-"+this.tabPosition+(this.doLayout?"":" dijitTabNoLayout");this.inherited("postMixInProperties",arguments);}});dojo.declare("dijit.layout._TabButton",dijit.layout._StackButton,{baseClass:"dijitTab",templateString:"<div dojoAttachEvent='onclick:onClick,onmouseenter:_onMouse,onmouseleave:_onMouse'>\n    <div class='dijitTabInnerDiv' dojoAttachPoint='innerDiv'>\n        <span dojoAttachPoint='containerNode,focusNode'>${!label}</span>\n        <span dojoAttachPoint='closeButtonNode' class='closeImage' dojoAttachEvent='onmouseenter:_onMouse, onmouseleave:_onMouse, onclick:onClickCloseButton' stateModifier='CloseButton'>\n            <span dojoAttachPoint='closeText' class='closeText'>x</span>\n        </span>\n    </div>\n</div>\n",postCreate:function(){if(this.closeButton){dojo.addClass(this.innerDiv,"dijitClosable");}else{this.closeButtonNode.style.display="none";}this.inherited("postCreate",arguments);dojo.setSelectable(this.containerNode,false);}});}if(!dojo._hasResource["dijit.dijit-all"]){dojo._hasResource["dijit.dijit-all"]=true;console.warn("dijit-all may include much more code than your application actually requires. We strongly recommend that you investigate a custom build or the web build tool");dojo.provide("dijit.dijit-all");}dojo.i18n._preloadLocalizations("dijit.nls.dijit-all",["es-es","es","hu","it-it","de","pt-br","pl","fr-fr","zh-cn","pt","en-us","zh","ru","xx","fr","zh-tw","it","cs","en-gb","de-de","ja-jp","ko-kr","ko","en","ROOT","ja"]);
