Commits

Anonymous committed b6762ec

updated to dojo 1.3.2

Comments (0)

Files changed (82)

tw/dojo/static/dijit/Editor.js

 this._savedSelection=this._getBookmark();
 },_restoreSelection:function(){
 if(this._savedSelection){
+if(dojo.withGlobal(this.window,"isCollapsed",dijit)){
 this._moveToBookmark(this._savedSelection);
+}
 delete this._savedSelection;
 }
 },_onFocus:function(){

tw/dojo/static/dijit/_Calendar.js

 },_getValueAttr:function(_2){
 var _2=new Date(this.value);
 _2.setHours(0,0,0,0);
+if(_2.getDate()<this.value.getDate()){
+_2=dojo.date.add(_2,"hour",1);
+}
 return _2;
 },_setValueAttr:function(_3){
 if(!this.value||dojo.date.compare(_3,this.value)){

tw/dojo/static/dijit/_editor/RichText.js

 this.onLoad();
 this.savedContent=this.getValue(true);
 });
-var s="javascript:parent.dijit.byId(\""+this.id+"\")._iframeSrc";
+var s="javascript:parent."+dijit._scopeName+".byId(\""+this.id+"\")._iframeSrc";
 ifr.setAttribute("src",s);
 this.editingArea.appendChild(ifr);
 if(dojo.isWebKit){
 this.style.replace(/(^|;)(line-|font-?)[^;]+/g,function(_23){
 _22+=_23.replace(/^;/g,"")+";";
 });
-return [this.isLeftToRight()?"<html><head>":"<html dir='rtl'><head>",(dojo.isMoz?"<title>"+this._localizedIframeTitles.iframeEditTitle+"</title>":""),"<style>","body,html {","\tbackground:transparent;","\tpadding: 1em 0 0 0;","\tmargin: -1em 0 0 0;","}","body{","\ttop:0px; left:0px; right:0px;","\tfont:",_20,";",((this.height||dojo.isOpera)?"":"position: fixed;"),"\tmin-height:",this.minHeight,";","\tline-height:",_21,"}","p{ margin: 1em 0 !important; }",(this.height?"":"body,html{overflow-y:hidden;/*for IE*/} body > div {overflow-x:auto;/*FF:horizontal scrollbar*/ overflow-y:hidden;/*safari*/ min-height:"+this.minHeight+";/*safari*/}"),"li > ul:-moz-first-node, li > ol:-moz-first-node{ padding-top: 1.2em; } ","li{ min-height:1.2em; }","</style>",this._applyEditingAreaStyleSheets(),"</head><body onload='frameElement._loadFunc(window,document)' style='"+_22+"'>"+_1e+"</body></html>"].join("");
-},_drawIframe:function(_24){
+var d=dojo.doc;
+var _25=d.charset||d.characterSet||d.defaultCharset||"UTF-8";
+return [this.isLeftToRight()?"<html><head>":"<html dir='rtl'><head>",(dojo.isMoz?"<title>"+this._localizedIframeTitles.iframeEditTitle+"</title>":""),"<meta http-equiv='Content-Type' content='text/html; charset="+_25+"'>","<style>","body,html {","\tbackground:transparent;","\tpadding: 1em 0 0 0;","\tmargin: -1em 0 0 0;","}","body{","\ttop:0px; left:0px; right:0px;","\tfont:",_20,";",((this.height||dojo.isOpera)?"":"position: fixed;"),"\tmin-height:",this.minHeight,";","\tline-height:",_21,"}","p{ margin: 1em 0 !important; }",(this.height?"":"body,html{overflow-y:hidden;/*for IE*/} body > div {overflow-x:auto;/*FF:horizontal scrollbar*/ overflow-y:hidden;/*safari*/ min-height:"+this.minHeight+";/*safari*/}"),"li > ul:-moz-first-node, li > ol:-moz-first-node{ padding-top: 1.2em; } ","li{ min-height:1.2em; }","</style>",this._applyEditingAreaStyleSheets(),"</head><body onload='frameElement._loadFunc(window,document)' style='"+_22+"'>"+_1e+"</body></html>"].join("");
+},_drawIframe:function(_26){
 if(!this.iframe){
 var ifr=(this.iframe=dojo.doc.createElement("iframe"));
 ifr.id=this.id+"_iframe";
-var _26=ifr.style;
-_26.border="none";
-_26.lineHeight="0";
-_26.verticalAlign="bottom";
+var _28=ifr.style;
+_28.border="none";
+_28.lineHeight="0";
+_28.verticalAlign="bottom";
 this.editorObject=this.iframe;
 this._localizedIframeTitles=dojo.i18n.getLocalization("dijit.form","Textarea");
-var _27=dojo.query("label[for=\""+this.id+"\"]");
-if(_27.length){
-this._localizedIframeTitles.iframeEditTitle=_27[0].innerHTML+" "+this._localizedIframeTitles.iframeEditTitle;
+var _29=dojo.query("label[for=\""+this.id+"\"]");
+if(_29.length){
+this._localizedIframeTitles.iframeEditTitle=_29[0].innerHTML+" "+this._localizedIframeTitles.iframeEditTitle;
 }
 ifr._loadFunc=function(win){
 };
 this.iframe.height=this._oldHeight;
 }
 }
-var _29;
+var _2b;
 if(this.textarea){
-_29=this.srcNodeRef;
+_2b=this.srcNodeRef;
 }else{
-_29=dojo.doc.createElement("div");
-_29.style.display="none";
-_29.innerHTML=_24;
-this.editingArea.appendChild(_29);
+_2b=dojo.doc.createElement("div");
+_2b.style.display="none";
+_2b.innerHTML=_26;
+this.editingArea.appendChild(_2b);
 }
 this.editingArea.appendChild(this.iframe);
-var _2a=dojo.hitch(this,function(){
+var _2c=dojo.hitch(this,function(){
 if(!this.editNode){
 if(!this.document){
 try{
 catch(e){
 }
 if(!this.document){
-setTimeout(_2a,50);
+setTimeout(_2c,50);
 return;
 }
-var _2b=this.document;
-_2b.open();
+var _2d=this.document;
+_2d.open();
 if(dojo.isAIR){
-_2b.body.innerHTML=_24;
+_2d.body.innerHTML=_26;
 }else{
-_2b.write(this._getIframeDocTxt(_24));
+_2d.write(this._getIframeDocTxt(_26));
 }
-_2b.close();
-dojo.destroy(_29);
+_2d.close();
+dojo.destroy(_2b);
 }
 if(!this.document.body){
-setTimeout(_2a,50);
+setTimeout(_2c,50);
 return;
 }
 this.onLoad();
 }else{
-dojo.destroy(_29);
-this.editNode.innerHTML=_24;
+dojo.destroy(_2b);
+this.editNode.innerHTML=_26;
 this.onDisplayChanged();
 }
 this._preDomFilterContent(this.editNode);
 });
-_2a();
+_2c();
 },_applyEditingAreaStyleSheets:function(){
-var _2c=[];
+var _2e=[];
 if(this.styleSheets){
-_2c=this.styleSheets.split(";");
+_2e=this.styleSheets.split(";");
 this.styleSheets="";
 }
-_2c=_2c.concat(this.editingAreaStyleSheets);
+_2e=_2e.concat(this.editingAreaStyleSheets);
 this.editingAreaStyleSheets=[];
-var _2d="",i=0,url;
-while((url=_2c[i++])){
-var _30=(new dojo._Url(dojo.global.location,url)).toString();
-this.editingAreaStyleSheets.push(_30);
-_2d+="<link rel=\"stylesheet\" type=\"text/css\" href=\""+_30+"\"/>";
+var _2f="",i=0,url;
+while((url=_2e[i++])){
+var _32=(new dojo._Url(dojo.global.location,url)).toString();
+this.editingAreaStyleSheets.push(_32);
+_2f+="<link rel=\"stylesheet\" type=\"text/css\" href=\""+_32+"\"/>";
 }
-return _2d;
+return _2f;
 },addStyleSheet:function(uri){
 var url=uri.toString();
 if(url.charAt(0)=="."||(url.charAt(0)!="/"&&!uri.host)){
 if(this.document.createStyleSheet){
 this.document.createStyleSheet(url);
 }else{
-var _33=this.document.getElementsByTagName("head")[0];
-var _34=this.document.createElement("link");
-_34.rel="stylesheet";
-_34.type="text/css";
-_34.href=url;
-_33.appendChild(_34);
+var _35=this.document.getElementsByTagName("head")[0];
+var _36=this.document.createElement("link");
+_36.rel="stylesheet";
+_36.type="text/css";
+_36.href=url;
+_35.appendChild(_36);
 }
 },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 _37=dojo.indexOf(this.editingAreaStyleSheets,url);
-if(_37==-1){
+var _39=dojo.indexOf(this.editingAreaStyleSheets,url);
+if(_39==-1){
 return;
 }
-delete this.editingAreaStyleSheets[_37];
+delete this.editingAreaStyleSheets[_39];
 dojo.withGlobal(this.window,"query",dojo,["link:[href=\""+url+"\"]"]).orphan();
-},disabled:false,_mozSettingProps:["styleWithCSS","insertBrOnReturn"],_setDisabledAttr:function(_38){
-this.disabled=_38;
+},disabled:false,_mozSettingProps:{"styleWithCSS":false},_setDisabledAttr:function(_3a){
+this.disabled=_3a;
 if(!this.isLoaded){
 return;
 }
-_38=!!_38;
+_3a=!!_3a;
 if(dojo.isIE||dojo.isWebKit||dojo.isOpera){
-var _39=dojo.isIE&&(this.isLoaded||!this.focusOnLoad);
-if(_39){
+var _3b=dojo.isIE&&(this.isLoaded||!this.focusOnLoad);
+if(_3b){
 this.editNode.unselectable="on";
 }
-this.editNode.contentEditable=!_38;
-if(_39){
-var _3a=this;
+this.editNode.contentEditable=!_3a;
+if(_3b){
+var _3c=this;
 setTimeout(function(){
-_3a.editNode.unselectable="off";
+_3c.editNode.unselectable="off";
 },0);
 }
 }else{
-if(_38){
-this._mozSettings=[false,this.blockNodeForEnter==="BR"];
-}
 try{
-this.document.designMode=(_38?"off":"on");
+this.document.designMode=(_3a?"off":"on");
 }
 catch(e){
 return;
 }
-if(!_38&&this._mozSettingProps){
+if(!_3a&&this._mozSettingProps){
 var ps=this._mozSettingProps;
 for(var n in ps){
 if(ps.hasOwnProperty(n)){
 this.editNode=this.document.body;
 }else{
 this.editNode=this.document.body.firstChild;
-var _3e=this;
+var _40=this;
 if(dojo.isIE){
-var _3f=(this.tabStop=dojo.doc.createElement("<div tabIndex=-1>"));
-this.editingArea.appendChild(_3f);
+var _41=(this.tabStop=dojo.doc.createElement("<div tabIndex=-1>"));
+this.editingArea.appendChild(_41);
 this.iframe.onfocus=function(){
-_3e.editNode.setActive();
+_40.editNode.setActive();
 };
 }
 }
 this.focusNode=this.editNode;
 this._preDomFilterContent(this.editNode);
-var _40=this.events.concat(this.captureEvents);
+var _42=this.events.concat(this.captureEvents);
 var ap=this.iframe?this.document:this.editNode;
-dojo.forEach(_40,function(_42){
-this.connect(ap,_42.toLowerCase(),_42);
+dojo.forEach(_42,function(_44){
+this.connect(ap,_44.toLowerCase(),_44);
 },this);
 if(dojo.isIE){
 this.connect(this.document,"onmousedown","_onIEMouseDown");
 this.editNode.style.zoom=1;
 }
+if(dojo.isWebKit){
+this._webkitListener=this.connect(this.document,"onmouseup","onDisplayChanged");
+}
 this.isLoaded=true;
 this.attr("disabled",this.disabled);
 if(this.onLoadDeferred){
 }else{
 if(dojo.isMoz&&!this.isTabIndent){
 if(e.keyCode==dojo.keys.TAB&&!e.shiftKey&&!e.ctrlKey&&!e.altKey&&this.iframe){
-var _44=dojo.isFF<3?this.iframe.contentDocument:this.iframe;
-_44.title=this._localizedIframeTitles.iframeFocusTitle;
+var _46=dojo.isFF<3?this.iframe.contentDocument:this.iframe;
+_46.title=this._localizedIframeTitles.iframeFocusTitle;
 this.iframe.focus();
 dojo.stopEvent(e);
 }else{
 return true;
 },onKeyUp:function(e){
 return;
-},setDisabled:function(_46){
+},setDisabled:function(_48){
 dojo.deprecated("dijit.Editor::setDisabled is deprecated","use dijit.Editor::attr(\"disabled\",boolean) instead",2);
-this.attr("disabled",_46);
-},_setValueAttr:function(_47){
-this.setValue(_47);
+this.attr("disabled",_48);
+},_setValueAttr:function(_49){
+this.setValue(_49);
 },_getDisableSpellCheckAttr:function(){
 return !dojo.attr(this.document.body,"spellcheck");
-},_setDisableSpellCheckAttr:function(_48){
+},_setDisableSpellCheckAttr:function(_4a){
 if(this.document){
-dojo.attr(this.document.body,"spellcheck",!_48);
+dojo.attr(this.document.body,"spellcheck",!_4a);
 }else{
 this.onLoadDeferred.addCallback(dojo.hitch(this,function(){
-dojo.attr(this.document.body,"spellcheck",!_48);
+dojo.attr(this.document.body,"spellcheck",!_4a);
 }));
 }
 },onKeyPress:function(e){
 var c=(e.keyChar&&e.keyChar.toLowerCase())||e.keyCode;
-var _4b=this._keyHandlers[c];
-var _4c=arguments;
-if(_4b&&!e.altKey){
-dojo.forEach(_4b,function(h){
+var _4d=this._keyHandlers[c];
+var _4e=arguments;
+if(_4d&&!e.altKey){
+dojo.forEach(_4d,function(h){
 if((!!h.shift==!!e.shiftKey)&&(!!h.ctrl==!!e.ctrlKey)){
-if(!h.handler.apply(this,_4c)){
+if(!h.handler.apply(this,_4e)){
 e.preventDefault();
 }
 }
 }
 setTimeout(this._onKeyHitch,1);
 return true;
-},addKeyHandler:function(key,_4f,_50,_51){
+},addKeyHandler:function(key,_51,_52,_53){
 if(!dojo.isArray(this._keyHandlers[key])){
 this._keyHandlers[key]=[];
 }
-this._keyHandlers[key].push({shift:_50||false,ctrl:_4f||false,handler:_51});
+this._keyHandlers[key].push({shift:_52||false,ctrl:_51||false,handler:_53});
 },onKeyPressed:function(){
 this.onDisplayChanged();
 },onClick:function(e){
 this.savedContent=_c;
 }
 if(dojo.isMoz&&this.iframe){
-var _56=dojo.isFF<3?this.iframe.contentDocument:this.iframe;
-_56.title=this._localizedIframeTitles.iframeEditTitle;
+var _58=dojo.isFF<3?this.iframe.contentDocument:this.iframe;
+_58.title=this._localizedIframeTitles.iframeEditTitle;
 }
 },_onFocus:function(e){
 if(!this.disabled){
 this._updateTimer=setTimeout(this._updateHandler,this.updateInterval);
 },onNormalizedDisplayChanged:function(){
 delete this._updateTimer;
-},onChange:function(_59){
+},onChange:function(_5b){
 },_normalizeCommand:function(cmd){
-var _5b=cmd.toLowerCase();
-if(_5b=="formatblock"){
+var _5d=cmd.toLowerCase();
+if(_5d=="formatblock"){
 if(dojo.isSafari){
-_5b="heading";
+_5d="heading";
 }
 }else{
-if(_5b=="hilitecolor"&&!dojo.isMoz){
-_5b="backcolor";
+if(_5d=="hilitecolor"&&!dojo.isMoz){
+_5d="backcolor";
 }
 }
-return _5b;
-},_qcaCache:{},queryCommandAvailable:function(_5c){
-var ca=this._qcaCache[_5c];
+return _5d;
+},_qcaCache:{},queryCommandAvailable:function(_5e){
+var ca=this._qcaCache[_5e];
 if(ca!=undefined){
 return ca;
 }
-return (this._qcaCache[_5c]=this._queryCommandAvailable(_5c));
-},_queryCommandAvailable:function(_5e){
+return (this._qcaCache[_5e]=this._queryCommandAvailable(_5e));
+},_queryCommandAvailable:function(_60){
 var ie=1;
-var _60=1<<1;
-var _61=1<<2;
-var _62=1<<3;
-var _63=1<<4;
-var _64=dojo.isWebKit;
-function _65(_66){
-return {ie:Boolean(_66&ie),mozilla:Boolean(_66&_60),webkit:Boolean(_66&_61),webkit420:Boolean(_66&_63),opera:Boolean(_66&_62)};
+var _62=1<<1;
+var _63=1<<2;
+var _64=1<<3;
+var _65=1<<4;
+var _66=dojo.isWebKit;
+function _67(_68){
+return {ie:Boolean(_68&ie),mozilla:Boolean(_68&_62),webkit:Boolean(_68&_63),webkit420:Boolean(_68&_65),opera:Boolean(_68&_64)};
 };
-var _67=null;
-switch(_5e.toLowerCase()){
+var _69=null;
+switch(_60.toLowerCase()){
 case "bold":
 case "italic":
 case "underline":
 case "delete":
 case "selectall":
 case "toggledir":
-_67=_65(_60|ie|_61|_62);
+_69=_67(_62|ie|_63|_64);
 break;
 case "createlink":
 case "unlink":
 case "redo":
 case "strikethrough":
 case "tabindent":
-_67=_65(_60|ie|_62|_63);
+_69=_67(_62|ie|_64|_65);
 break;
 case "blockdirltr":
 case "blockdirrtl":
 case "dirrtl":
 case "inlinedirltr":
 case "inlinedirrtl":
-_67=_65(ie);
+_69=_67(ie);
 break;
 case "cut":
 case "copy":
 case "paste":
-_67=_65(ie|_60|_63);
+_69=_67(ie|_62|_65);
 break;
 case "inserttable":
-_67=_65(_60|ie);
+_69=_67(_62|ie);
 break;
 case "insertcell":
 case "insertcol":
 case "deleterows":
 case "mergecells":
 case "splitcell":
-_67=_65(ie|_60);
+_69=_67(ie|_62);
 break;
 default:
 return false;
 }
-return (dojo.isIE&&_67.ie)||(dojo.isMoz&&_67.mozilla)||(dojo.isWebKit&&_67.webkit)||(dojo.isWebKit>420&&_67.webkit420)||(dojo.isOpera&&_67.opera);
-},execCommand:function(_68,_69){
-var _6a;
+return (dojo.isIE&&_69.ie)||(dojo.isMoz&&_69.mozilla)||(dojo.isWebKit&&_69.webkit)||(dojo.isWebKit>420&&_69.webkit420)||(dojo.isOpera&&_69.opera);
+},execCommand:function(_6a,_6b){
+var _6c;
 this.focus();
-_68=this._normalizeCommand(_68);
-if(_69!=undefined){
-if(_68=="heading"){
+_6a=this._normalizeCommand(_6a);
+if(_6b!=undefined){
+if(_6a=="heading"){
 throw new Error("unimplemented");
 }else{
-if((_68=="formatblock")&&dojo.isIE){
-_69="<"+_69+">";
+if((_6a=="formatblock")&&dojo.isIE){
+_6b="<"+_6b+">";
 }
 }
 }
-if(_68=="inserthtml"){
-_69=this._preFilterContent(_69);
-_6a=true;
+if(_6a=="inserthtml"){
+_6b=this._preFilterContent(_6b);
+_6c=true;
 if(dojo.isIE){
-var _6b=this.document.selection.createRange();
+var _6d=this.document.selection.createRange();
 if(this.document.selection.type.toUpperCase()=="CONTROL"){
-var n=_6b.item(0);
-while(_6b.length){
-_6b.remove(_6b.item(0));
+var n=_6d.item(0);
+while(_6d.length){
+_6d.remove(_6d.item(0));
 }
-n.outerHTML=_69;
+n.outerHTML=_6b;
 }else{
-_6b.pasteHTML(_69);
+_6d.pasteHTML(_6b);
 }
-_6b.select();
+_6d.select();
 }else{
-if(dojo.isMoz&&!_69.length){
+if(dojo.isMoz&&!_6b.length){
 this._sCall("remove");
 }else{
-_6a=this.document.execCommand(_68,false,_69);
+_6c=this.document.execCommand(_6a,false,_6b);
 }
 }
 }else{
-if((_68=="unlink")&&(this.queryCommandEnabled("unlink"))&&(dojo.isMoz||dojo.isWebKit)){
+if((_6a=="unlink")&&(this.queryCommandEnabled("unlink"))&&(dojo.isMoz||dojo.isWebKit)){
 var a=this._sCall("getAncestorElement",["a"]);
 this._sCall("selectElement",[a]);
-_6a=this.document.execCommand("unlink",false,null);
+_6c=this.document.execCommand("unlink",false,null);
 }else{
-if((_68=="hilitecolor")&&(dojo.isMoz)){
+if((_6a=="hilitecolor")&&(dojo.isMoz)){
 this.document.execCommand("styleWithCSS",false,true);
-_6a=this.document.execCommand(_68,false,_69);
+_6c=this.document.execCommand(_6a,false,_6b);
 this.document.execCommand("styleWithCSS",false,false);
 }else{
-if((dojo.isIE)&&((_68=="backcolor")||(_68=="forecolor"))){
-_69=arguments.length>1?_69:null;
-_6a=this.document.execCommand(_68,false,_69);
+if((dojo.isIE)&&((_6a=="backcolor")||(_6a=="forecolor"))){
+_6b=arguments.length>1?_6b:null;
+_6c=this.document.execCommand(_6a,false,_6b);
 }else{
-_69=arguments.length>1?_69:null;
-if(_69||_68!="createlink"){
-_6a=this.document.execCommand(_68,false,_69);
+_6b=arguments.length>1?_6b:null;
+if(_6b||_6a!="createlink"){
+_6c=this.document.execCommand(_6a,false,_6b);
 }
 }
 }
 }
 }
 this.onDisplayChanged();
-return _6a;
-},queryCommandEnabled:function(_6e){
+return _6c;
+},queryCommandEnabled:function(_70){
 if(this.disabled||!this._disabledOK){
 return false;
 }
-_6e=this._normalizeCommand(_6e);
+_70=this._normalizeCommand(_70);
 if(dojo.isMoz||dojo.isWebKit){
-if(_6e=="unlink"){
+if(_70=="unlink"){
 this._sCall("hasAncestorElement",["a"]);
 }else{
-if(_6e=="inserttable"){
+if(_70=="inserttable"){
 return true;
 }
 }
 }
 if(dojo.isWebKit){
-if(_6e=="copy"){
-_6e="cut";
+if(_70=="copy"){
+_70="cut";
 }else{
-if(_6e=="paste"){
+if(_70=="paste"){
 return true;
 }
 }
 }
-if(_6e=="indent"){
-var li=this._sCall("getAncestorElement",["li"]);
-var n=li&&li.previousSibling;
-while(n){
-if(n.nodeType==1){
-return true;
-}
-n=n.previousSibling;
-}
-return false;
-}else{
-if(_6e=="outdent"){
-return this._sCall("hasAncestorElement",["li"]);
-}
-}
 var _71=dojo.isIE?this.document.selection.createRange():this.document;
-return _71.queryCommandEnabled(_6e);
+return _71.queryCommandEnabled(_70);
 },queryCommandState:function(_72){
 if(this.disabled||!this._disabledOK){
 return false;
 if(this.interval){
 clearInterval(this.interval);
 }
+if(this._webkitListener){
+this.disconnect(this._webkitListener);
+delete this._webkitListener;
+}
+if(dojo.isIE){
+this.iframe.onfocus=null;
+}
+this.iframe._loadFunc=null;
 if(this.textarea){
 var s=this.textarea.style;
 s.position="";

tw/dojo/static/dijit/_editor/nls/ca/commands.js

-({"removeFormat":"Elimina el format","copy":"Copia","paste":"Enganxa","selectAll":"Selecciona-ho tot","insertOrderedList":"Llista numerada","insertTable":"Insereix/edita la taula","underline":"Subratllat","foreColor":"Color de primer pla","htmlToggle":"Font HTML","formatBlock":"Estil de paràgraf","insertHorizontalRule":"Regla horitzontal","delete":"Suprimeix","insertUnorderedList":"Llista de pics","tableProp":"Propietats de la taula","insertImage":"Insereix una imatge","superscript":"Superíndex","subscript":"Subíndex","createLink":"Crea un enllaç","undo":"Desfés","italic":"Cursiva","fontName":"Nom del tipus de lletra","justifyLeft":"Alineació esquerra","unlink":"Elimina l'enllaç","toggleTableBorder":"Inverteix els contorns de taula","fontSize":"Mida de la lletra","indent":"Sagna","redo":"Refés","strikethrough":"Ratllat","justifyFull":"Justificació","justifyCenter":"Alineació centrada","hiliteColor":"Color de fons","deleteTable":"Suprimeix la taula","outdent":"Sagna a l'esquerra","cut":"Retalla","plainFormatBlock":"Estil de paràgraf","toggleDir":"Inverteix la direcció","bold":"Negreta","systemShortcutFF":"L'acció \"${0}\" només està disponible per a Mozilla Firefox amb la drecera del teclat. Feu servir ${1}.","justifyRight":"Alineació dreta","appleKey":"⌘${0}","ctrlKey":"ctrl+${0}","systemShortcut":"The \"${0}\" action is only available in your browser using a keyboard shortcut. Use ${1}.","tabIndent":"Tab Indent"})
+({"removeFormat":"Elimina el format","copy":"Copia","paste":"Enganxa","selectAll":"Selecciona-ho tot","insertOrderedList":"Llista numerada","insertTable":"Insereix/edita la taula","underline":"Subratllat","foreColor":"Color de primer pla","htmlToggle":"Font HTML","formatBlock":"Estil de paràgraf","insertHorizontalRule":"Regle horitzontal","delete":"Suprimeix","insertUnorderedList":"Llista de vinyetes","tableProp":"Propietat de taula","insertImage":"Insereix imatge","superscript":"Superíndex","subscript":"Subíndex","createLink":"Crea un enllaç","undo":"Desfés","italic":"Cursiva","fontName":"Nom del tipus de lletra","justifyLeft":"Alinea a la esquerra","unlink":"Elimina l'enllaç","toggleTableBorder":"Inverteix els contorns de taula","ctrlKey":"control+${0}","fontSize":"Cos de la lletra","systemShortcut":"L'acció \"${0}\" és l'única disponible al navegador utilitzant una drecera del teclat. Utilitzeu ${1}.","indent":"Sagnat","redo":"Refés","strikethrough":"Ratllat","justifyFull":"Justifica","justifyCenter":"Centra","hiliteColor":"Color de fons","deleteTable":"Suprimeix la taula","outdent":"Sagna a l'esquerra","cut":"Retalla","plainFormatBlock":"Estil de paràgraf","toggleDir":"Inverteix la direcció","bold":"Negreta","tabIndent":"Sagnat","justifyRight":"Alinea a la dreta","appleKey":"⌘${0}"})

tw/dojo/static/dijit/_editor/nls/ja/commands.js

-({"removeFormat":"形式の除去","copy":"コピー","paste":"貼り付け","selectAll":"すべて選択","insertOrderedList":"番号付きリスト","insertTable":"テーブルの挿入/編集","underline":"下線","foreColor":"前景色","htmlToggle":"HTML ソース","formatBlock":"段落スタイル","insertHorizontalRule":"水平罫線","delete":"削除","insertUnorderedList":"黒丸付きリスト","tableProp":"テーブル・プロパティー","insertImage":"イメージの挿入","superscript":"上付き文字","subscript":"下付き文字","createLink":"リンクの作成","undo":"元に戻す","italic":"イタリック","fontName":"フォント名","justifyLeft":"左揃え","unlink":"リンクの除去","toggleTableBorder":"テーブル・ボーダーの切り替え","fontSize":"フォント・サイズ","systemShortcut":"\"${0}\" アクションを使用できるのは、ブラウザーでキーボード・ショートカットを使用する場合のみです。 ${1} を使用してください。","indent":"インデント","redo":"やり直し","strikethrough":"取り消し線","justifyFull":"両端揃え","justifyCenter":"中央揃え","hiliteColor":"背景色","deleteTable":"テーブルの削除","outdent":"アウトデント","cut":"切り取り","plainFormatBlock":"段落スタイル","toggleDir":"方向の切り替え","bold":"太字","tabIndent":"タブ・インデント","justifyRight":"右揃え","appleKey":"⌘${0}","ctrlKey":"ctrl+${0}"})
+({"removeFormat":"形式の除去","copy":"コピー","paste":"貼り付け","selectAll":"すべて選択","insertOrderedList":"番号付きリスト","insertTable":"テーブルの挿入/編集","underline":"下線","foreColor":"テキストの色","htmlToggle":"HTML ソース","formatBlock":"段落スタイル","insertHorizontalRule":"水平罫線","delete":"削除","insertUnorderedList":"黒丸付きリスト","tableProp":"テーブル・プロパティー","insertImage":"イメージの挿入","superscript":"上付き文字","subscript":"下付き文字","createLink":"リンクの作成","undo":"元に戻す","italic":"イタリック","fontName":"フォント名","justifyLeft":"左揃え","unlink":"リンクの除去","toggleTableBorder":"テーブル・ボーダーの切り替え","fontSize":"フォント・サイズ","systemShortcut":"\"${0}\" アクションを使用できるのは、ブラウザーでキーボード・ショートカットを使用する場合のみです。 ${1} を使用してください。","indent":"インデント","redo":"やり直し","strikethrough":"取り消し線","justifyFull":"両端揃え","justifyCenter":"中央揃え","hiliteColor":"マーカー","deleteTable":"テーブルの削除","outdent":"アウトデント","cut":"切り取り","plainFormatBlock":"段落スタイル","toggleDir":"方向の切り替え","bold":"太字","tabIndent":"タブ・インデント","justifyRight":"右揃え","appleKey":"⌘${0}","ctrlKey":"ctrl+${0}"})

tw/dojo/static/dijit/_editor/nls/sk/commands.js

-({"removeFormat":"Odstrániť formátovanie","copy":"Kopírovať","paste":"Prilepiť","selectAll":"Vybrať všetko","insertOrderedList":"Číslovaný zoznam","insertTable":"Vložiť/upraviť tabuľku","underline":"Podčiarknuté","foreColor":"Farba popredia","htmlToggle":"Zdrojový kód HTML","formatBlock":"Štýl odseku","insertHorizontalRule":"Horizontálna čiara","delete":"Vymazať","insertUnorderedList":"Zoznam s odrážkami","tableProp":"Vlastnosť tabuľky","insertImage":"Vložiť obrázok","superscript":"Horný index","subscript":"Dolný index","createLink":"Vytvoriť odkaz","undo":"Späť","italic":"Kurzíva","fontName":"Názov písma","justifyLeft":"Zarovnať vľavo","unlink":"Odstrániť odkaz","toggleTableBorder":"Prepnúť ohraničenie tabuľky","fontSize":"Veľkosť písma","indent":"Odsadiť","redo":"Opakovať","strikethrough":"Prečiarknuté","justifyFull":"Zarovnať k okrajom","justifyCenter":"Zarovnať na stred","hiliteColor":"Farba pozadia","deleteTable":"Vymazať tabuľku","outdent":"Zrušiť odsadenie","cut":"Vystrihnúť","plainFormatBlock":"Štýl odseku","toggleDir":"Prepnúť smer","bold":"Tučné","systemShortcutFF":"Akcia \"${0}\" je dostupná len v prehliadači Mozilla Firefox prostredníctvom klávesovej skratky. Použite ${1}.","justifyRight":"Zarovnať vpravo","appleKey":"⌘${0}","ctrlKey":"ctrl+${0}","systemShortcut":"The \"${0}\" action is only available in your browser using a keyboard shortcut. Use ${1}.","tabIndent":"Tab Indent"})
+({"removeFormat":"Odstrániť formát","copy":"Kopírovať","paste":"Nalepiť","selectAll":"Vybrať všetko","insertOrderedList":"Číslovaný zoznam","insertTable":"Vložiť/upraviť tabuľku","underline":"Podčiarknuť","foreColor":"Farba popredia","htmlToggle":"Zdroj HTML","formatBlock":"Štýl odseku","insertHorizontalRule":"Horizontálna čiara","delete":"Vymazať","insertUnorderedList":"Zoznam s odrážkami","tableProp":"Vlastnosť tabuľky","insertImage":"Vložiť obrázok","superscript":"Horný index","subscript":"Dolný index","createLink":"Vytvoriť prepojenie","undo":"Vrátiť späť","italic":"Kurzíva","fontName":"Názov písma","justifyLeft":"Zarovnať doľava","unlink":"Odstrániť prepojenie","toggleTableBorder":"Prepnúť rámček tabuľky","fontSize":"Veľkosť písma","systemShortcut":"Akcia \"${0}\" je vo vašom prehliadači dostupná len s použitím klávesovej skratky. Použite ${1}.","indent":"Odsadiť","redo":"Znova vykonať","strikethrough":"Prečiarknuť","justifyFull":"Zarovnať podľa okraja","justifyCenter":"Zarovnať na stred","hiliteColor":"Farba pozadia","deleteTable":"Vymazať tabuľku","outdent":"Predsadiť","cut":"Vystrihnúť","plainFormatBlock":"Štýl odseku","toggleDir":"Prepnúť smer","bold":"Tučné písmo","tabIndent":"Odsadenie tabulátora","justifyRight":"Zarovnať doprava","appleKey":"⌘${0}","ctrlKey":"ctrl+${0}"})

tw/dojo/static/dijit/_editor/nls/sl/commands.js

-({"removeFormat":"Odstrani oblikovanje","copy":"Prekopiraj","paste":"Prilepi","selectAll":"Izberi vse","insertOrderedList":"Oštevilčen seznam","insertTable":"Vstavi/uredi tabelo","underline":"Podčrtano","foreColor":"Barva ospredja","htmlToggle":"Izvorna HTML koda","formatBlock":"Slog odstavka","insertHorizontalRule":"Vodoravno ravnilo","delete":"Izbriši","insertUnorderedList":"Seznam z oznakami","tableProp":"Lastnost tabele","insertImage":"Vstavi sliko","superscript":"Nadpisano","subscript":"Podpisano","createLink":"Ustvari povezavo","undo":"Razveljavi","italic":"Ležeče","fontName":"Ime pisave","justifyLeft":"Poravnaj levo","unlink":"Odstrani povezavo","toggleTableBorder":"Preklopi obrobo tabele","fontSize":"Velikost pisave","indent":"Zamakni","redo":"Ponovno uveljavi","strikethrough":"Prečrtano","justifyFull":"Poravnaj obojestransko","justifyCenter":"Poravnaj na sredino","hiliteColor":"Barva ozadja","deleteTable":"Izbriši tabelo","outdent":"Zamakni navzven","cut":"Izreži","plainFormatBlock":"Slog odstavka","toggleDir":"Preklopi smer","bold":"Krepko","systemShortcutFF":"Dejanje \"${0}\" je na voljo samo v brskalniku Mozilla Firefox prek bližnjic na tipkovnici. Uporabite ${1}.","justifyRight":"Poravnaj desno","appleKey":"⌘${0}","ctrlKey":"ctrl+${0}","systemShortcut":"The \"${0}\" action is only available in your browser using a keyboard shortcut. Use ${1}.","tabIndent":"Tab Indent"})
+({"removeFormat":"Odstrani obliko zapisa","copy":"Prekopiraj","paste":"Prilepi","selectAll":"Izberi vse","insertOrderedList":"Oštevilčen seznam","insertTable":"Vstavi/Uredi tabelo","underline":"Podčrtano","foreColor":"Barva ospredja","htmlToggle":"Izvor HTML","formatBlock":"Slog odstavka","insertHorizontalRule":"Horizontalno pravilo","delete":"Izbriši","insertUnorderedList":"Naštevni seznam","tableProp":"Lastnost tabele","insertImage":"Vstavi sliko","superscript":"Nadpisano","subscript":"Podpisano","createLink":"Izdelaj povezavo","undo":"Razveljavi","italic":"Ležeče","fontName":"Ime pisave","justifyLeft":"Poravnaj levo","unlink":"Odstrani povezavo","toggleTableBorder":"Preklopi na rob tabele","fontSize":"Velikost pisave","systemShortcut":"Dejanje \"${0}\" lahko v vašem brskalniku uporabite samo z bližnjico na tipkovnici. Uporabite ${1}.","indent":"Zamik","redo":"Znova uveljavi","strikethrough":"Prečrtano","justifyFull":"Obojestranka poravnava","justifyCenter":"Sredinska poravnava","hiliteColor":"Barva ozadja","deleteTable":"Izbriši tabelo","outdent":"Zamik navzven","cut":"Izreži","plainFormatBlock":"Slog odstavka","toggleDir":"Preklopi na usmeritev","bold":"Krepko","tabIndent":"Zamik tabulatorja","justifyRight":"Poravnaj desno","appleKey":"⌘${0}","ctrlKey":"ctrl+${0}"})

tw/dojo/static/dijit/_editor/nls/th/commands.js

-({"removeFormat":"ลบรูปแบบ","copy":"คัดลอก","paste":"วาง","selectAll":"เลือกทั้งหมด","insertOrderedList":"รายการแบบตัวเลข","insertTable":"แทรก/แก้ไขตาราง","underline":"ขีดเส้นใต้","foreColor":"สีพื้นหน้า","htmlToggle":"ซอร์ส HTML","formatBlock":"ลักษณะย่อหน้า","insertHorizontalRule":"ไม้บรรทัดแนวนอน","delete":"ลบ","insertUnorderedList":"รายการสัญลักษณ์แสดงหัวข้อย่อย","tableProp":"คุณสมบัติตาราง","insertImage":"แทรกอิมเมจ","superscript":"ตัวยก","subscript":"ตัวห้อย","createLink":"สร้างลิงก์","undo":"เลิกทำ","italic":"ตัวเอียง","fontName":"ชื่อฟอนต์","justifyLeft":"ชิดขอบซ้าย","unlink":"ลบลิงก์","toggleTableBorder":"สลับเส้นขอบตาราง","fontSize":"ขนาดฟอนต์","indent":"ย่อหน้า","redo":"ทำซ้ำ","strikethrough":"ขีดคั่น","justifyFull":"ชิดขอบ","justifyCenter":"จัดกึ่งกลาง","hiliteColor":"สีพื้นหลัง","deleteTable":"ลบตาราง","outdent":"ขยับย่อหน้าออก","cut":"ตัด","plainFormatBlock":"ลักษณะย่อหน้า","toggleDir":"ทิศทางการสลับ","bold":"ตัวหนา","systemShortcutFF":"การดำเนินการ \"${0}\" สามารถใช้งานได้เฉพาะใน Mozilla Firefox โดยใช้แป้นพิมพ์ลัด ใช้ ${1}","justifyRight":"ชิดขอบขวา","appleKey":"⌘${0}","ctrlKey":"ctrl+${0}","systemShortcut":"The \"${0}\" action is only available in your browser using a keyboard shortcut. Use ${1}.","tabIndent":"Tab Indent"})
+({"removeFormat":"ลบรูปแบบออก","copy":"คัดลอก","paste":"วาง","selectAll":"เลือกทั้งหมด","insertOrderedList":"ลำดับเลข","insertTable":"แทรก/แก้ไข ตาราง","underline":"ขีดเส้นใต้","foreColor":"สีพื้นหน้า","htmlToggle":"ซอร์ส HTML","formatBlock":"ลักษณะย่อหน้า","insertHorizontalRule":"ไม้บรรทัดแนวนอน","delete":"ลบ","insertUnorderedList":"หัวข้อย่อย","tableProp":"คุณสมบัติตาราง","insertImage":"แทรกอิมเมจ","superscript":"ตัวยก","subscript":"ตัวห้อย","createLink":"สร้างลิงก์","undo":"เลิกทำ","italic":"ตัวเอียง","fontName":"ชื่อฟอนต์","justifyLeft":"จัดชิดซ้าย","unlink":"ลบลิงก์ออก","toggleTableBorder":"สลับเส้นขอบตาราง","fontSize":"ขนาดฟอนต์","systemShortcut":"แอ็กชัน \"${0}\" ใช้งานได้เฉพาะกับเบราว์เซอร์ของคุณโดยใช้แป้นพิมพ์ลัด ใช้ ${1}","indent":"เพิ่มการเยื้อง","redo":"ทำซ้ำ","strikethrough":"ขีดทับ","justifyFull":"จัดชิดขอบ","justifyCenter":"จัดกึ่งกลาง","hiliteColor":"สีพื้นหลัง","deleteTable":"ลบตาราง","outdent":"ลดการเยื้อง","cut":"ตัด","plainFormatBlock":"ลักษณะย่อหน้า","toggleDir":"สลับทิศทาง","bold":"ตัวหนา","tabIndent":"เยื้องแท็บ","justifyRight":"จัดชิดขวา","appleKey":"⌘${0}","ctrlKey":"ctrl+${0}"})

tw/dojo/static/dijit/_editor/nls/zh/LinkDialog.js

-({"set":"集合","text":"描述:","insertImageTitle":"图像属性","url":"URL:","createLinkTitle":"链接属性"})
+({"set":"设置","text":"说明:","insertImageTitle":"图像属性","url":"URL:","createLinkTitle":"链接属性"})

tw/dojo/static/dijit/dijit-all.js

 	for documentation and information on getting the source.
 */
 
-if(!dojo._hasResource["dojo.colors"]){dojo._hasResource["dojo.colors"]=true;dojo.provide("dojo.colors");(function(){var _1=function(m1,m2,h){if(h<0){++h;}if(h>1){--h;}var h6=6*h;if(h6<1){return m1+(m2-m1)*h6;}if(2*h<1){return m2;}if(3*h<2){return m1+(m2-m1)*(2/3-h)*6;}return m1;};dojo.colorFromRgb=function(_6,_7){var m=_6.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(m){var c=m[2].split(/\s*,\s*/),l=c.length,t=m[1],a;if((t=="rgb"&&l==3)||(t=="rgba"&&l==4)){var r=c[0];if(r.charAt(r.length-1)=="%"){a=dojo.map(c,function(x){return parseFloat(x)*2.56;});if(l==4){a[3]=c[3];}return dojo.colorFromArray(a,_7);}return dojo.colorFromArray(c,_7);}if((t=="hsl"&&l==3)||(t=="hsla"&&l==4)){var H=((parseFloat(c[0])%360)+360)%360/360,S=parseFloat(c[1])/100,L=parseFloat(c[2])/100,m2=L<=0.5?L*(S+1):L+S-L*S,m1=2*L-m2;a=[_1(m1,m2,H+1/3)*256,_1(m1,m2,H)*256,_1(m1,m2,H-1/3)*256,1];if(l==4){a[3]=c[3];}return dojo.colorFromArray(a,_7);}}return null;};var _14=function(c,low,_17){c=Number(c);return isNaN(c)?_17:c<low?low:c>_17?_17:c;};dojo.Color.prototype.sanitize=function(){var t=this;t.r=Math.round(_14(t.r,0,255));t.g=Math.round(_14(t.g,0,255));t.b=Math.round(_14(t.b,0,255));t.a=_14(t.a,0,1);return this;};})();dojo.colors.makeGrey=function(g,a){return dojo.colorFromArray([g,g,g,a]);};dojo.mixin(dojo.Color.named,{aliceblue:[240,248,255],antiquewhite:[250,235,215],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],blanchedalmond:[255,235,205],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],oldlace:[253,245,230],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],thistle:[216,191,216],tomato:[255,99,71],transparent:[0,0,0,0],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],whitesmoke:[245,245,245],yellowgreen:[154,205,50]});}if(!dojo._hasResource["dojo.i18n"]){dojo._hasResource["dojo.i18n"]=true;dojo.provide("dojo.i18n");dojo.i18n.getLocalization=function(_1b,_1c,_1d){_1d=dojo.i18n.normalizeLocale(_1d);var _1e=_1d.split("-");var _1f=[_1b,"nls",_1c].join(".");var _20=dojo._loadedModules[_1f];if(_20){var _21;for(var i=_1e.length;i>0;i--){var loc=_1e.slice(0,i).join("_");if(_20[loc]){_21=_20[loc];break;}}if(!_21){_21=_20.ROOT;}if(_21){var _24=function(){};_24.prototype=_21;return new _24();}}throw new Error("Bundle not found: "+_1c+" in "+_1b+" , locale="+_1d);};dojo.i18n.normalizeLocale=function(_25){var _26=_25?_25.toLowerCase():dojo.locale;if(_26=="root"){_26="ROOT";}return _26;};dojo.i18n._requireLocalization=function(_27,_28,_29,_2a){var _2b=dojo.i18n.normalizeLocale(_29);var _2c=[_27,"nls",_28].join(".");var _2d="";if(_2a){var _2e=_2a.split(",");for(var i=0;i<_2e.length;i++){if(_2b["indexOf"](_2e[i])==0){if(_2e[i].length>_2d.length){_2d=_2e[i];}}}if(!_2d){_2d="ROOT";}}var _30=_2a?_2d:_2b;var _31=dojo._loadedModules[_2c];var _32=null;if(_31){if(dojo.config.localizationComplete&&_31._built){return;}var _33=_30.replace(/-/g,"_");var _34=_2c+"."+_33;_32=dojo._loadedModules[_34];}if(!_32){_31=dojo["provide"](_2c);var _35=dojo._getModuleSymbols(_27);var _36=_35.concat("nls").join("/");var _37;dojo.i18n._searchLocalePath(_30,_2a,function(loc){var _39=loc.replace(/-/g,"_");var _3a=_2c+"."+_39;var _3b=false;if(!dojo._loadedModules[_3a]){dojo["provide"](_3a);var _3c=[_36];if(loc!="ROOT"){_3c.push(loc);}_3c.push(_28);var _3d=_3c.join("/")+".js";_3b=dojo._loadPath(_3d,null,function(_3e){var _3f=function(){};_3f.prototype=_37;_31[_39]=new _3f();for(var j in _3e){_31[_39][j]=_3e[j];}});}else{_3b=true;}if(_3b&&_31[_39]){_37=_31[_39];}else{_31[_39]=_37;}if(_2a){return true;}});}if(_2a&&_2b!=_2d){_31[_2b.replace(/-/g,"_")]=_31[_2d.replace(/-/g,"_")];}};(function(){var _41=dojo.config.extraLocale;if(_41){if(!_41 instanceof Array){_41=[_41];}var req=dojo.i18n._requireLocalization;dojo.i18n._requireLocalization=function(m,b,_45,_46){req(m,b,_45,_46);if(_45){return;}for(var i=0;i<_41.length;i++){req(m,b,_41[i],_46);}};}})();dojo.i18n._searchLocalePath=function(_48,_49,_4a){_48=dojo.i18n.normalizeLocale(_48);var _4b=_48.split("-");var _4c=[];for(var i=_4b.length;i>0;i--){_4c.push(_4b.slice(0,i).join("-"));}_4c.push(false);if(_49){_4c.reverse();}for(var j=_4c.length-1;j>=0;j--){var loc=_4c[j]||"ROOT";var _50=_4a(loc);if(_50){break;}}};dojo.i18n._preloadLocalizations=function(_51,_52){function _53(_54){_54=dojo.i18n.normalizeLocale(_54);dojo.i18n._searchLocalePath(_54,true,function(loc){for(var i=0;i<_52.length;i++){if(_52[i]==loc){dojo["require"](_51+"_"+loc);return true;}}return false;});};_53();var _57=dojo.config.extraLocale||[];for(var i=0;i<_57.length;i++){_53(_57[i]);}};}if(!dojo._hasResource["dijit.ColorPalette"]){dojo._hasResource["dijit.ColorPalette"]=true;dojo.provide("dijit.ColorPalette");dojo.declare("dijit.ColorPalette",[dijit._Widget,dijit._Templated],{defaultTimeout:500,timeoutChangeRate:0.9,palette:"7x10",value:null,_currentFocus:0,_xDim:null,_yDim:null,_palettes:{"7x10":[["white","seashell","cornsilk","lemonchiffon","lightyellow","palegreen","paleturquoise","lightcyan","lavender","plum"],["lightgray","pink","bisque","moccasin","khaki","lightgreen","lightseagreen","lightskyblue","cornflowerblue","violet"],["silver","lightcoral","sandybrown","orange","palegoldenrod","chartreuse","mediumturquoise","skyblue","mediumslateblue","orchid"],["gray","red","orangered","darkorange","yellow","limegreen","darkseagreen","royalblue","slateblue","mediumorchid"],["dimgray","crimson","chocolate","coral","gold","forestgreen","seagreen","blue","blueviolet","darkorchid"],["darkslategray","firebrick","saddlebrown","sienna","olive","green","darkcyan","mediumblue","darkslateblue","darkmagenta"],["black","darkred","maroon","brown","darkolivegreen","darkgreen","midnightblue","navy","indigo","purple"]],"3x4":[["white","lime","green","blue"],["silver","yellow","fuchsia","navy"],["gray","red","purple","black"]]},_imagePaths:{"7x10":dojo.moduleUrl("dijit.themes","a11y/colors7x10.png"),"3x4":dojo.moduleUrl("dijit.themes","a11y/colors3x4.png")},_paletteCoords:{"leftOffset":3,"topOffset":3,"cWidth":20,"cHeight":20},templateString:"<div class=\"dijitInline dijitColorPalette\">\n\t<div class=\"dijitColorPaletteInner\" dojoAttachPoint=\"divNode\" waiRole=\"grid\" tabIndex=\"${tabIndex}\">\n\t\t<img class=\"dijitColorPaletteUnder\" dojoAttachPoint=\"imageNode\" waiRole=\"presentation\">\n\t</div>\t\n</div>\n",_paletteDims:{"7x10":{"width":"206px","height":"145px"},"3x4":{"width":"86px","height":"64px"}},tabIndex:"0",postCreate:function(){dojo.mixin(this.divNode.style,this._paletteDims[this.palette]);this.imageNode.setAttribute("src",this._imagePaths[this.palette]);var _59=this._palettes[this.palette];this.domNode.style.position="relative";this._cellNodes=[];this.colorNames=dojo.i18n.getLocalization("dojo","colors",this.lang);var url=this._blankGif,_5b=new dojo.Color(),_5c=this._paletteCoords;for(var row=0;row<_59.length;row++){for(var col=0;col<_59[row].length;col++){var _5f=_59[row][col],_60=_5b.setColor(dojo.Color.named[_5f]);var _61=dojo.create("span",{"class":"dijitPaletteCell","tabindex":"-1",title:this.colorNames[_5f],style:{top:_5c.topOffset+(row*_5c.cHeight)+"px",left:_5c.leftOffset+(col*_5c.cWidth)+"px"}});var _62=dojo.create("img",{src:url,"class":"dijitPaletteImg",alt:this.colorNames[_5f]},_61);_62.color=_60.toHex();var _63=_62.style;_63.color=_63.backgroundColor=_62.color;dojo.forEach(["Dijitclick","MouseEnter","Focus","Blur"],function(_64){this.connect(_61,"on"+_64.toLowerCase(),"_onCell"+_64);},this);dojo.place(_61,this.divNode);dijit.setWaiRole(_61,"gridcell");_61.index=this._cellNodes.length;this._cellNodes.push(_61);}}this._xDim=_59[0].length;this._yDim=_59.length;this.connect(this.divNode,"onfocus","_onDivNodeFocus");var _65={UP_ARROW:-this._xDim,DOWN_ARROW:this._xDim,RIGHT_ARROW:1,LEFT_ARROW:-1};for(var key in _65){this._connects.push(dijit.typematic.addKeyListener(this.domNode,{charOrCode:dojo.keys[key],ctrlKey:false,altKey:false,shiftKey:false},this,function(){var _67=_65[key];return function(_68){this._navigateByKey(_67,_68);};}(),this.timeoutChangeRate,this.defaultTimeout));}},focus:function(){this._focusFirst();},onChange:function(_69){},_focusFirst:function(){this._currentFocus=0;var _6a=this._cellNodes[this._currentFocus];window.setTimeout(function(){dijit.focus(_6a);},0);},_onDivNodeFocus:function(evt){if(evt.target===this.divNode){this._focusFirst();}},_onFocus:function(){dojo.attr(this.divNode,"tabindex","-1");},_onBlur:function(){this._removeCellHighlight(this._currentFocus);dojo.attr(this.divNode,"tabindex",this.tabIndex);},_onCellDijitclick:function(evt){var _6d=evt.currentTarget;if(this._currentFocus!=_6d.index){this._currentFocus=_6d.index;window.setTimeout(function(){dijit.focus(_6d);},0);}this._selectColor(_6d);dojo.stopEvent(evt);},_onCellMouseEnter:function(evt){var _6f=evt.currentTarget;this._setCurrent(_6f);window.setTimeout(function(){dijit.focus(_6f);},0);},_onCellFocus:function(evt){this._setCurrent(evt.currentTarget);},_setCurrent:function(_71){this._removeCellHighlight(this._currentFocus);this._currentFocus=_71.index;dojo.addClass(_71,"dijitPaletteCellHighlight");},_onCellBlur:function(evt){this._removeCellHighlight(this._currentFocus);},_removeCellHighlight:function(_73){dojo.removeClass(this._cellNodes[_73],"dijitPaletteCellHighlight");},_selectColor:function(_74){var img=_74.getElementsByTagName("img")[0];this.onChange(this.value=img.color);},_navigateByKey:function(_76,_77){if(_77==-1){return;}var _78=this._currentFocus+_76;if(_78<this._cellNodes.length&&_78>-1){var _79=this._cellNodes[_78];_79.focus();}}});}if(!dojo._hasResource["dijit.Declaration"]){dojo._hasResource["dijit.Declaration"]=true;dojo.provide("dijit.Declaration");dojo.declare("dijit.Declaration",dijit._Widget,{_noScript:true,widgetClass:"",defaults:null,mixins:[],buildRendering:function(){var src=this.srcNodeRef.parentNode.removeChild(this.srcNodeRef),_7b=dojo.query("> script[type^='dojo/method'][event]",src).orphan(),_7c=dojo.query("> script[type^='dojo/method']",src).orphan(),_7d=dojo.query("> script[type^='dojo/connect']",src).orphan(),_7e=src.nodeName;var _7f=this.defaults||{};dojo.forEach(_7b,function(s){var evt=s.getAttribute("event"),_82=dojo.parser._functionFromScript(s);_7f[evt]=_82;});this.mixins=this.mixins.length?dojo.map(this.mixins,function(_83){return dojo.getObject(_83);}):[dijit._Widget,dijit._Templated];_7f.widgetsInTemplate=true;_7f._skipNodeCache=true;_7f.templateString="<"+_7e+" class='"+src.className+"' dojoAttachPoint='"+(src.getAttribute("dojoAttachPoint")||"")+"' dojoAttachEvent='"+(src.getAttribute("dojoAttachEvent")||"")+"' >"+src.innerHTML.replace(/\%7B/g,"{").replace(/\%7D/g,"}")+"</"+_7e+">";dojo.query("[dojoType]",src).forEach(function(_84){_84.removeAttribute("dojoType");});var wc=dojo.declare(this.widgetClass,this.mixins,_7f);var _86=_7d.concat(_7c);dojo.forEach(_86,function(s){var evt=s.getAttribute("event")||"postscript",_89=dojo.parser._functionFromScript(s);dojo.connect(wc.prototype,evt,_89);});}});}if(!dojo._hasResource["dojo.dnd.common"]){dojo._hasResource["dojo.dnd.common"]=true;dojo.provide("dojo.dnd.common");dojo.dnd._isMac=navigator.appVersion.indexOf("Macintosh")>=0;dojo.dnd._copyKey=dojo.dnd._isMac?"metaKey":"ctrlKey";dojo.dnd.getCopyKeyState=function(e){return e[dojo.dnd._copyKey];};dojo.dnd._uniqueId=0;dojo.dnd.getUniqueId=function(){var id;do{id=dojo._scopeName+"Unique"+(++dojo.dnd._uniqueId);}while(dojo.byId(id));return id;};dojo.dnd._empty={};dojo.dnd.isFormElement=function(e){var t=e.target;if(t.nodeType==3){t=t.parentNode;}return " button textarea input select option ".indexOf(" "+t.tagName.toLowerCase()+" ")>=0;};dojo.dnd._lmb=dojo.isIE?1:0;dojo.dnd._isLmbPressed=dojo.isIE?function(e){return e.button&1;}:function(e){return e.button===0;};}if(!dojo._hasResource["dojo.dnd.autoscroll"]){dojo._hasResource["dojo.dnd.autoscroll"]=true;dojo.provide("dojo.dnd.autoscroll");dojo.dnd.getViewport=function(){var d=dojo.doc,dd=d.documentElement,w=window,b=dojo.body();if(dojo.isMozilla){return {w:dd.clientWidth,h:w.innerHeight};}else{if(!dojo.isOpera&&w.innerWidth){return {w:w.innerWidth,h:w.innerHeight};}else{if(!dojo.isOpera&&dd&&dd.clientWidth){return {w:dd.clientWidth,h:dd.clientHeight};}else{if(b.clientWidth){return {w:b.clientWidth,h:b.clientHeight};}}}}return null;};dojo.dnd.V_TRIGGER_AUTOSCROLL=32;dojo.dnd.H_TRIGGER_AUTOSCROLL=32;dojo.dnd.V_AUTOSCROLL_VALUE=16;dojo.dnd.H_AUTOSCROLL_VALUE=16;dojo.dnd.autoScroll=function(e){var v=dojo.dnd.getViewport(),dx=0,dy=0;if(e.clientX<dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=-dojo.dnd.H_AUTOSCROLL_VALUE;}else{if(e.clientX>v.w-dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=dojo.dnd.H_AUTOSCROLL_VALUE;}}if(e.clientY<dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=-dojo.dnd.V_AUTOSCROLL_VALUE;}else{if(e.clientY>v.h-dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=dojo.dnd.V_AUTOSCROLL_VALUE;}}window.scrollBy(dx,dy);};dojo.dnd._validNodes={"div":1,"p":1,"td":1};dojo.dnd._validOverflow={"auto":1,"scroll":1};dojo.dnd.autoScrollNodes=function(e){for(var n=e.target;n;){if(n.nodeType==1&&(n.tagName.toLowerCase() in dojo.dnd._validNodes)){var s=dojo.getComputedStyle(n);if(s.overflow.toLowerCase() in dojo.dnd._validOverflow){var b=dojo._getContentBox(n,s),t=dojo._abs(n,true);var w=Math.min(dojo.dnd.H_TRIGGER_AUTOSCROLL,b.w/2),h=Math.min(dojo.dnd.V_TRIGGER_AUTOSCROLL,b.h/2),rx=e.pageX-t.x,ry=e.pageY-t.y,dx=0,dy=0;if(dojo.isWebKit||dojo.isOpera){rx+=dojo.body().scrollLeft,ry+=dojo.body().scrollTop;}if(rx>0&&rx<b.w){if(rx<w){dx=-w;}else{if(rx>b.w-w){dx=w;}}}if(ry>0&&ry<b.h){if(ry<h){dy=-h;}else{if(ry>b.h-h){dy=h;}}}var _a3=n.scrollLeft,_a4=n.scrollTop;n.scrollLeft=n.scrollLeft+dx;n.scrollTop=n.scrollTop+dy;if(_a3!=n.scrollLeft||_a4!=n.scrollTop){return;}}}try{n=n.parentNode;}catch(x){n=null;}}dojo.dnd.autoScroll(e);};}if(!dojo._hasResource["dojo.dnd.Mover"]){dojo._hasResource["dojo.dnd.Mover"]=true;dojo.provide("dojo.dnd.Mover");dojo.declare("dojo.dnd.Mover",null,{constructor:function(_a5,e,_a7){this.node=dojo.byId(_a5);this.marginBox={l:e.pageX,t:e.pageY};this.mouseButton=e.button;var h=this.host=_a7,d=_a5.ownerDocument,_aa=dojo.connect(d,"onmousemove",this,"onFirstMove");this.events=[dojo.connect(d,"onmousemove",this,"onMouseMove"),dojo.connect(d,"onmouseup",this,"onMouseUp"),dojo.connect(d,"ondragstart",dojo.stopEvent),dojo.connect(d.body,"onselectstart",dojo.stopEvent),_aa];if(h&&h.onMoveStart){h.onMoveStart(this);}},onMouseMove:function(e){dojo.dnd.autoScroll(e);var m=this.marginBox;this.host.onMove(this,{l:m.l+e.pageX,t:m.t+e.pageY});dojo.stopEvent(e);},onMouseUp:function(e){if(dojo.isWebKit&&dojo.dnd._isMac&&this.mouseButton==2?e.button==0:this.mouseButton==e.button){this.destroy();}dojo.stopEvent(e);},onFirstMove:function(){var s=this.node.style,l,t,h=this.host;switch(s.position){case "relative":case "absolute":l=Math.round(parseFloat(s.left));t=Math.round(parseFloat(s.top));break;default:s.position="absolute";var m=dojo.marginBox(this.node);var b=dojo.doc.body;var bs=dojo.getComputedStyle(b);var bm=dojo._getMarginBox(b,bs);var bc=dojo._getContentBox(b,bs);l=m.l-(bc.l-bm.l);t=m.t-(bc.t-bm.t);break;}this.marginBox.l=l-this.marginBox.l;this.marginBox.t=t-this.marginBox.t;if(h&&h.onFirstMove){h.onFirstMove(this);}dojo.disconnect(this.events.pop());},destroy:function(){dojo.forEach(this.events,dojo.disconnect);var h=this.host;if(h&&h.onMoveStop){h.onMoveStop(this);}this.events=this.node=this.host=null;}});}if(!dojo._hasResource["dojo.dnd.Moveable"]){dojo._hasResource["dojo.dnd.Moveable"]=true;dojo.provide("dojo.dnd.Moveable");dojo.declare("dojo.dnd.Moveable",null,{handle:"",delay:0,skip:false,constructor:function(_b8,_b9){this.node=dojo.byId(_b8);if(!_b9){_b9={};}this.handle=_b9.handle?dojo.byId(_b9.handle):null;if(!this.handle){this.handle=this.node;}this.delay=_b9.delay>0?_b9.delay:0;this.skip=_b9.skip;this.mover=_b9.mover?_b9.mover:dojo.dnd.Mover;this.events=[dojo.connect(this.handle,"onmousedown",this,"onMouseDown"),dojo.connect(this.handle,"ondragstart",this,"onSelectStart"),dojo.connect(this.handle,"onselectstart",this,"onSelectStart")];},markupFactory:function(_ba,_bb){return new dojo.dnd.Moveable(_bb,_ba);},destroy:function(){dojo.forEach(this.events,dojo.disconnect);this.events=this.node=this.handle=null;},onMouseDown:function(e){if(this.skip&&dojo.dnd.isFormElement(e)){return;}if(this.delay){this.events.push(dojo.connect(this.handle,"onmousemove",this,"onMouseMove"),dojo.connect(this.handle,"onmouseup",this,"onMouseUp"));this._lastX=e.pageX;this._lastY=e.pageY;}else{this.onDragDetected(e);}dojo.stopEvent(e);},onMouseMove:function(e){if(Math.abs(e.pageX-this._lastX)>this.delay||Math.abs(e.pageY-this._lastY)>this.delay){this.onMouseUp(e);this.onDragDetected(e);}dojo.stopEvent(e);},onMouseUp:function(e){for(var i=0;i<2;++i){dojo.disconnect(this.events.pop());}dojo.stopEvent(e);},onSelectStart:function(e){if(!this.skip||!dojo.dnd.isFormElement(e)){dojo.stopEvent(e);}},onDragDetected:function(e){new this.mover(this.node,e,this);},onMoveStart:function(_c2){dojo.publish("/dnd/move/start",[_c2]);dojo.addClass(dojo.body(),"dojoMove");dojo.addClass(this.node,"dojoMoveItem");},onMoveStop:function(_c3){dojo.publish("/dnd/move/stop",[_c3]);dojo.removeClass(dojo.body(),"dojoMove");dojo.removeClass(this.node,"dojoMoveItem");},onFirstMove:function(_c4){},onMove:function(_c5,_c6){this.onMoving(_c5,_c6);var s=_c5.node.style;s.left=_c6.l+"px";s.top=_c6.t+"px";this.onMoved(_c5,_c6);},onMoving:function(_c8,_c9){},onMoved:function(_ca,_cb){}});}if(!dojo._hasResource["dojo.dnd.move"]){dojo._hasResource["dojo.dnd.move"]=true;dojo.provide("dojo.dnd.move");dojo.declare("dojo.dnd.move.constrainedMoveable",dojo.dnd.Moveable,{constraints:function(){},within:false,markupFactory:function(_cc,_cd){return new dojo.dnd.move.constrainedMoveable(_cd,_cc);},constructor:function(_ce,_cf){if(!_cf){_cf={};}this.constraints=_cf.constraints;this.within=_cf.within;},onFirstMove:function(_d0){var c=this.constraintBox=this.constraints.call(this,_d0);c.r=c.l+c.w;c.b=c.t+c.h;if(this.within){var mb=dojo.marginBox(_d0.node);c.r-=mb.w;c.b-=mb.h;}},onMove:function(_d3,_d4){var c=this.constraintBox,s=_d3.node.style;s.left=(_d4.l<c.l?c.l:c.r<_d4.l?c.r:_d4.l)+"px";s.top=(_d4.t<c.t?c.t:c.b<_d4.t?c.b:_d4.t)+"px";}});dojo.declare("dojo.dnd.move.boxConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{box:{},markupFactory:function(_d7,_d8){return new dojo.dnd.move.boxConstrainedMoveable(_d8,_d7);},constructor:function(_d9,_da){var box=_da&&_da.box;this.constraints=function(){return box;};}});dojo.declare("dojo.dnd.move.parentConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(_dc,_dd){return new dojo.dnd.move.parentConstrainedMoveable(_dd,_dc);},constructor:function(_de,_df){var _e0=_df&&_df.area;this.constraints=function(){var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);if(_e0=="margin"){return mb;}var t=dojo._getMarginExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(_e0=="border"){return mb;}t=dojo._getBorderExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(_e0=="padding"){return mb;}t=dojo._getPadExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;return mb;};}});dojo.dnd.move.constrainedMover=function(fun,_e6){dojo.deprecated("dojo.dnd.move.constrainedMover, use dojo.dnd.move.constrainedMoveable instead");var _e7=function(_e8,e,_ea){dojo.dnd.Mover.call(this,_e8,e,_ea);};dojo.extend(_e7,dojo.dnd.Mover.prototype);dojo.extend(_e7,{onMouseMove:function(e){dojo.dnd.autoScroll(e);var m=this.marginBox,c=this.constraintBox,l=m.l+e.pageX,t=m.t+e.pageY;l=l<c.l?c.l:c.r<l?c.r:l;t=t<c.t?c.t:c.b<t?c.b:t;this.host.onMove(this,{l:l,t:t});},onFirstMove:function(){dojo.dnd.Mover.prototype.onFirstMove.call(this);var c=this.constraintBox=fun.call(this);c.r=c.l+c.w;c.b=c.t+c.h;if(_e6){var mb=dojo.marginBox(this.node);c.r-=mb.w;c.b-=mb.h;}}});return _e7;};dojo.dnd.move.boxConstrainedMover=function(box,_f3){dojo.deprecated("dojo.dnd.move.boxConstrainedMover, use dojo.dnd.move.boxConstrainedMoveable instead");return dojo.dnd.move.constrainedMover(function(){return box;},_f3);};dojo.dnd.move.parentConstrainedMover=function(_f4,_f5){dojo.deprecated("dojo.dnd.move.parentConstrainedMover, use dojo.dnd.move.parentConstrainedMoveable instead");var fun=function(){var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);if(_f4=="margin"){return mb;}var t=dojo._getMarginExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(_f4=="border"){return mb;}t=dojo._getBorderExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(_f4=="padding"){return mb;}t=dojo._getPadExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;return mb;};return dojo.dnd.move.constrainedMover(fun,_f5);};dojo.dnd.constrainedMover=dojo.dnd.move.constrainedMover;dojo.dnd.boxConstrainedMover=dojo.dnd.move.boxConstrainedMover;dojo.dnd.parentConstrainedMover=dojo.dnd.move.parentConstrainedMover;}if(!dojo._hasResource["dojo.dnd.TimedMoveable"]){dojo._hasResource["dojo.dnd.TimedMoveable"]=true;dojo.provide("dojo.dnd.TimedMoveable");(function(){var _fb=dojo.dnd.Moveable.prototype.onMove;dojo.declare("dojo.dnd.TimedMoveable",dojo.dnd.Moveable,{timeout:40,constructor:function(_fc,_fd){if(!_fd){_fd={};}if(_fd.timeout&&typeof _fd.timeout=="number"&&_fd.timeout>=0){this.timeout=_fd.timeout;}},markupFactory:function(_fe,_ff){return new dojo.dnd.TimedMoveable(_ff,_fe);},onMoveStop:function(_100){if(_100._timer){clearTimeout(_100._timer);_fb.call(this,_100,_100._leftTop);}dojo.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);},onMove:function(_101,_102){_101._leftTop=_102;if(!_101._timer){var _t=this;_101._timer=setTimeout(function(){_101._timer=null;_fb.call(_t,_101,_101._leftTop);},this.timeout);}}});})();}if(!dojo._hasResource["dojo.fx.Toggler"]){dojo._hasResource["dojo.fx.Toggler"]=true;dojo.provide("dojo.fx.Toggler");dojo.declare("dojo.fx.Toggler",null,{constructor:function(args){var _t=this;dojo.mixin(_t,args);_t.node=args.node;_t._showArgs=dojo.mixin({},args);_t._showArgs.node=_t.node;_t._showArgs.duration=_t.showDuration;_t.showAnim=_t.showFunc(_t._showArgs);_t._hideArgs=dojo.mixin({},args);_t._hideArgs.node=_t.node;_t._hideArgs.duration=_t.hideDuration;_t.hideAnim=_t.hideFunc(_t._hideArgs);dojo.connect(_t.showAnim,"beforeBegin",dojo.hitch(_t.hideAnim,"stop",true));dojo.connect(_t.hideAnim,"beforeBegin",dojo.hitch(_t.showAnim,"stop",true));},node:null,showFunc:dojo.fadeIn,hideFunc:dojo.fadeOut,showDuration:200,hideDuration:200,show:function(_106){return this.showAnim.play(_106||0);},hide:function(_107){return this.hideAnim.play(_107||0);}});}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");(function(){var d=dojo,_109={_fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[]);}return this;}};var _10c=function(_10d){this._index=-1;this._animations=_10d||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;d.forEach(this._animations,function(a){this.duration+=a.duration;if(a.delay){this.duration+=a.delay;}},this);};d.extend(_10c,{_onAnimate:function(){this._fire("onAnimate",arguments);},_onEnd:function(){d.disconnect(this._onAnimateCtx);d.disconnect(this._onEndCtx);this._onAnimateCtx=this._onEndCtx=null;if(this._index+1==this._animations.length){this._fire("onEnd");}else{this._current=this._animations[++this._index];this._onAnimateCtx=d.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");this._current.play(0,true);}},play:function(_10f,_110){if(!this._current){this._current=this._animations[this._index=0];}if(!_110&&this._current.status()=="playing"){return this;}var _111=d.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_112=d.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_114=d.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);d.disconnect(_111);d.disconnect(_112);d.disconnect(_114);});if(this._onAnimateCtx){d.disconnect(this._onAnimateCtx);}this._onAnimateCtx=d.connect(this._current,"onAnimate",this,"_onAnimate");if(this._onEndCtx){d.disconnect(this._onEndCtx);}this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");this._current.play.apply(this._current,arguments);return this;},pause:function(){if(this._current){var e=d.connect(this._current,"onPause",this,function(arg){this._fire("onPause",arguments);d.disconnect(e);});this._current.pause();}return this;},gotoPercent:function(_118,_119){this.pause();var _11a=this.duration*_118;this._current=null;d.some(this._animations,function(a){if(a.duration<=_11a){this._current=a;return true;}_11a-=a.duration;return false;});if(this._current){this._current.gotoPercent(_11a/this._current.duration,_119);}return this;},stop:function(_11c){if(this._current){if(_11c){for(;this._index+1<this._animations.length;++this._index){this._animations[this._index].stop(true);}this._current=this._animations[this._index];}var e=d.connect(this._current,"onStop",this,function(arg){this._fire("onStop",arguments);d.disconnect(e);});this._current.stop();}return this;},status:function(){return this._current?this._current.status():"stopped";},destroy:function(){if(this._onAnimateCtx){d.disconnect(this._onAnimateCtx);}if(this._onEndCtx){d.disconnect(this._onEndCtx);}}});d.extend(_10c,_109);dojo.fx.chain=function(_11f){return new _10c(_11f);};var _120=function(_121){this._animations=_121||[];this._connects=[];this._finished=0;this.duration=0;d.forEach(_121,function(a){var _123=a.duration;if(a.delay){_123+=a.delay;}if(this.duration<_123){this.duration=_123;}this._connects.push(d.connect(a,"onEnd",this,"_onEnd"));},this);this._pseudoAnimation=new d._Animation({curve:[0,1],duration:this.duration});var self=this;d.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop"],function(evt){self._connects.push(d.connect(self._pseudoAnimation,evt,function(){self._fire(evt,arguments);}));});};d.extend(_120,{_doAction:function(_126,args){d.forEach(this._animations,function(a){a[_126].apply(a,args);});return this;},_onEnd:function(){if(++this._finished==this._animations.length){this._fire("onEnd");}},_call:function(_129,args){var t=this._pseudoAnimation;t[_129].apply(t,args);},play:function(_12c,_12d){this._finished=0;this._doAction("play",arguments);this._call("play",arguments);return this;},pause:function(){this._doAction("pause",arguments);this._call("pause",arguments);return this;},gotoPercent:function(_12e,_12f){var ms=this.duration*_12e;d.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_12f);});this._call("gotoPercent",arguments);return this;},stop:function(_132){this._doAction("stop",arguments);this._call("stop",arguments);return this;},status:function(){return this._pseudoAnimation.status();},destroy:function(){d.forEach(this._connects,dojo.disconnect);}});d.extend(_120,_109);dojo.fx.combine=function(_133){return new _120(_133);};dojo.fx.wipeIn=function(args){args.node=d.byId(args.node);var node=args.node,s=node.style,o;var anim=d.animateProperty(d.mixin({properties:{height:{start:function(){o=s.overflow;s.overflow="hidden";if(s.visibility=="hidden"||s.display=="none"){s.height="1px";s.display="";s.visibility="";return 1;}else{var _139=d.style(node,"height");return Math.max(_139,1);}},end:function(){return node.scrollHeight;}}}},args));d.connect(anim,"onEnd",function(){s.height="auto";s.overflow=o;});return anim;};dojo.fx.wipeOut=function(args){var node=args.node=d.byId(args.node),s=node.style,o;var anim=d.animateProperty(d.mixin({properties:{height:{end:1}}},args));d.connect(anim,"beforeBegin",function(){o=s.overflow;s.overflow="hidden";s.display="";});d.connect(anim,"onEnd",function(){s.overflow=o;s.height="auto";s.display="none";});return anim;};dojo.fx.slideTo=function(args){var node=args.node=d.byId(args.node),top=null,left=null;var init=(function(n){return function(){var cs=d.getComputedStyle(n);var pos=cs.position;top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);left=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);if(pos!="absolute"&&pos!="relative"){var ret=d.coords(n,true);top=ret.y;left=ret.x;n.style.position="absolute";n.style.top=top+"px";n.style.left=left+"px";}};})(node);init();var anim=d.animateProperty(d.mixin({properties:{top:args.top||0,left:args.left||0}},args));d.connect(anim,"beforeBegin",anim,init);return anim;};})();}if(!dojo._hasResource["dijit.form._FormMixin"]){dojo._hasResource["dijit.form._FormMixin"]=true;dojo.provide("dijit.form._FormMixin");dojo.declare("dijit.form._FormMixin",null,{reset:function(){dojo.forEach(this.getDescendants(),function(_149){if(_149.reset){_149.reset();}});},validate:function(){var _14a=false;return dojo.every(dojo.map(this.getDescendants(),function(_14b){_14b._hasBeenBlurred=true;var _14c=_14b.disabled||!_14b.validate||_14b.validate();if(!_14c&&!_14a){dijit.scrollIntoView(_14b.containerNode||_14b.domNode);_14b.focus();_14a=true;}return _14c;}),function(item){return item;});},setValues:function(val){dojo.deprecated(this.declaredClass+"::setValues() is deprecated. Use attr('value', val) instead.","","2.0");return this.attr("value",val);},_setValueAttr:function(obj){var map={};dojo.forEach(this.getDescendants(),function(_151){if(!_151.name){return;}var _152=map[_151.name]||(map[_151.name]=[]);_152.push(_151);});for(var name in map){if(!map.hasOwnProperty(name)){continue;}var _154=map[name],_155=dojo.getObject(name,false,obj);if(_155===undefined){continue;}if(!dojo.isArray(_155)){_155=[_155];}if(typeof _154[0].checked=="boolean"){dojo.forEach(_154,function(w,i){w.attr("value",dojo.indexOf(_155,w.value)!=-1);});}else{if(_154[0]._multiValue){_154[0].attr("value",_155);}else{dojo.forEach(_154,function(w,i){w.attr("value",_155[i]);});}}}},getValues:function(){dojo.deprecated(this.declaredClass+"::getValues() is deprecated. Use attr('value') instead.","","2.0");return this.attr("value");},_getValueAttr:function(){var obj={};dojo.forEach(this.getDescendants(),function(_15b){var name=_15b.name;if(!name||_15b.disabled){return;}var _15d=_15b.attr("value");if(typeof _15b.checked=="boolean"){if(/Radio/.test(_15b.declaredClass)){if(_15d!==false){dojo.setObject(name,_15d,obj);}else{_15d=dojo.getObject(name,false,obj);if(_15d===undefined){dojo.setObject(name,null,obj);}}}else{var ary=dojo.getObject(name,false,obj);if(!ary){ary=[];dojo.setObject(name,ary,obj);}if(_15d!==false){ary.push(_15d);}}}else{dojo.setObject(name,_15d,obj);}});return obj;},isValid:function(){this._invalidWidgets=dojo.filter(this.getDescendants(),function(_15f){return !_15f.disabled&&_15f.isValid&&!_15f.isValid();});return !this._invalidWidgets.length;},onValidStateChange:function(_160){},_widgetChange:function(_161){var _162=this._lastValidState;if(!_161||this._lastValidState===undefined){_162=this.isValid();if(this._lastValidState===undefined){this._lastValidState=_162;}}else{if(_161.isValid){this._invalidWidgets=dojo.filter(this._invalidWidgets||[],function(w){return (w!=_161);},this);if(!_161.isValid()&&!_161.attr("disabled")){this._invalidWidgets.push(_161);}_162=(this._invalidWidgets.length===0);}}if(_162!==this._lastValidState){this._lastValidState=_162;this.onValidStateChange(_162);}},connectChildren:function(){dojo.forEach(this._changeConnections,dojo.hitch(this,"disconnect"));var _164=this;var _165=this._changeConnections=[];dojo.forEach(dojo.filter(this.getDescendants(),function(item){return item.validate;}),function(_167){_165.push(_164.connect(_167,"validate",dojo.hitch(_164,"_widgetChange",_167)));_165.push(_164.connect(_167,"_setDisabledAttr",dojo.hitch(_164,"_widgetChange",_167)));});this._widgetChange(null);},startup:function(){this.inherited(arguments);this._changeConnections=[];this.connectChildren();}});}if(!dojo._hasResource["dijit._DialogMixin"]){dojo._hasResource["dijit._DialogMixin"]=true;dojo.provide("dijit._DialogMixin");dojo.declare("dijit._DialogMixin",null,{attributeMap:dijit._Widget.prototype.attributeMap,execute:function(_168){},onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.attr("value"));},_getFocusItems:function(_169){var _16a=dijit._getTabNavigable(dojo.byId(_169));this._firstFocusItem=_16a.lowest||_16a.first||_169;this._lastFocusItem=_16a.last||_16a.highest||this._firstFocusItem;if(dojo.isMoz&&this._firstFocusItem.tagName.toLowerCase()=="input"&&dojo.attr(this._firstFocusItem,"type").toLowerCase()=="file"){dojo.attr(_169,"tabindex","0");this._firstFocusItem=_169;}}});}if(!dojo._hasResource["dijit.DialogUnderlay"]){dojo._hasResource["dijit.DialogUnderlay"]=true;dojo.provide("dijit.DialogUnderlay");dojo.declare("dijit.DialogUnderlay",[dijit._Widget,dijit._Templated],{templateString:"<div class='dijitDialogUnderlayWrapper'><div class='dijitDialogUnderlay' dojoAttachPoint='node'></div></div>",dialogId:"","class":"",attributeMap:{id:"domNode"},_setDialogIdAttr:function(id){dojo.attr(this.node,"id",id+"_underlay");},_setClassAttr:function(_16c){this.node.className="dijitDialogUnderlay "+_16c;},postCreate:function(){dojo.body().appendChild(this.domNode);this.bgIframe=new dijit.BackgroundIframe(this.domNode);},layout:function(){var is=this.node.style,os=this.domNode.style;os.display="none";var _16f=dijit.getViewport();os.top=_16f.t+"px";os.left=_16f.l+"px";is.width=_16f.w+"px";is.height=_16f.h+"px";os.display="block";},show:function(){this.domNode.style.display="block";this.layout();if(this.bgIframe.iframe){this.bgIframe.iframe.style.display="block";}},hide:function(){this.domNode.style.display="none";if(this.bgIframe.iframe){this.bgIframe.iframe.style.display="none";}},uninitialize:function(){if(this.bgIframe){this.bgIframe.destroy();}}});}if(!dojo._hasResource["dojo.html"]){dojo._hasResource["dojo.html"]=true;dojo.provide("dojo.html");(function(){var _170=0;dojo.html._secureForInnerHtml=function(cont){return cont.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"");};dojo.html._emptyNode=dojo.empty;dojo.html._setNodeContent=function(node,cont,_174){if(_174){dojo.html._emptyNode(node);}if(typeof cont=="string"){var pre="",post="",walk=0,name=node.nodeName.toLowerCase();switch(name){case "tr":pre="<tr>";post="</tr>";walk+=1;case "tbody":case "thead":pre="<tbody>"+pre;post+="</tbody>";walk+=1;case "table":pre="<table>"+pre;post+="</table>";walk+=1;break;}if(walk){var n=node.ownerDocument.createElement("div");n.innerHTML=pre+cont+post;do{n=n.firstChild;}while(--walk);dojo.forEach(n.childNodes,function(n){node.appendChild(n.cloneNode(true));});}else{node.innerHTML=cont;}}else{if(cont.nodeType){node.appendChild(cont);}else{dojo.forEach(cont,function(n){node.appendChild(n.cloneNode(true));});}}return node;};dojo.declare("dojo.html._ContentSetter",null,{node:"",content:"",id:"",cleanContent:false,extractContent:false,parseContent:false,constructor:function(_17c,node){dojo.mixin(this,_17c||{});node=this.node=dojo.byId(this.node||node);if(!this.id){this.id=["Setter",(node)?node.id||node.tagName:"",_170++].join("_");}if(!(this.node||node)){new Error(this.declaredClass+": no node provided to "+this.id);}},set:function(cont,_17f){if(undefined!==cont){this.content=cont;}if(_17f){this._mixin(_17f);}this.onBegin();this.setContent();this.onEnd();return this.node;},setContent:function(){var node=this.node;if(!node){console.error("setContent given no node");}try{node=dojo.html._setNodeContent(node,this.content);}catch(e){var _181=this.onContentError(e);try{node.innerHTML=_181;}catch(e){console.error("Fatal "+this.declaredClass+".setContent could not change content due to "+e.message,e);}}this.node=node;},empty:function(){if(this.parseResults&&this.parseResults.length){dojo.forEach(this.parseResults,function(w){if(w.destroy){w.destroy();}});delete this.parseResults;}dojo.html._emptyNode(this.node);},onBegin:function(){var cont=this.content;if(dojo.isString(cont)){if(this.cleanContent){cont=dojo.html._secureForInnerHtml(cont);}if(this.extractContent){var _184=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_184){cont=_184[1];}}}this.empty();this.content=cont;return this.node;},onEnd:function(){if(this.parseContent){this._parse();}return this.node;},tearDown:function(){delete this.parseResults;delete this.node;delete this.content;},onContentError:function(err){return "Error occured setting content: "+err;},_mixin:function(_186){var _187={},key;for(key in _186){if(key in _187){continue;}this[key]=_186[key];}},_parse:function(){var _189=this.node;try{this.parseResults=dojo.parser.parse(_189,true);}catch(e){this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);}},_onError:function(type,err,_18c){var _18d=this["on"+type+"Error"].call(this,err);if(_18c){console.error(_18c,err);}else{if(_18d){dojo.html._setNodeContent(this.node,_18d,true);}}}});dojo.html.set=function(node,cont,_190){if(undefined==cont){console.warn("dojo.html.set: no cont argument provided, using empty string");cont="";}if(!_190){return dojo.html._setNodeContent(node,cont,true);}else{var op=new dojo.html._ContentSetter(dojo.mixin(_190,{content:cont,node:node}));return op.set();}};})();}if(!dojo._hasResource["dijit.layout.ContentPane"]){dojo._hasResource["dijit.layout.ContentPane"]=true;dojo.provide("dijit.layout.ContentPane");dojo.declare("dijit.layout.ContentPane",dijit._Widget,{href:"",extractContent:false,parseOnLoad:true,preventCache:false,preload:false,refreshOnShow:false,loadingMessage:"<span class='dijitContentPaneLoading'>${loadingState}</span>",errorMessage:"<span class='dijitContentPaneError'>${errorState}</span>",isLoaded:false,baseClass:"dijitContentPane",doLayout:true,ioArgs:{},isContainer:true,postMixInProperties:function(){this.inherited(arguments);var _192=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_192);this.errorMessage=dojo.string.substitute(this.errorMessage,_192);if(!this.href&&this.srcNodeRef&&this.srcNodeRef.innerHTML){this.isLoaded=true;}},buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},postCreate:function(){this.domNode.title="";if(!dojo.attr(this.domNode,"role")){dijit.setWaiRole(this.domNode,"group");}dojo.addClass(this.domNode,this.baseClass);},startup:function(){if(this._started){return;}if(this.isLoaded){dojo.forEach(this.getChildren(),function(_193){_193.startup();});if(this.doLayout){this._checkIfSingleChild();}if(!this._singleChild||!dijit._Contained.prototype.getParent.call(this)){this._scheduleLayout();}}this._loadCheck();this.inherited(arguments);},_checkIfSingleChild:function(){var _194=dojo.query(">",this.containerNode),_195=_194.filter(function(node){return dojo.hasAttr(node,"dojoType")||dojo.hasAttr(node,"widgetId");}),_197=dojo.filter(_195.map(dijit.byNode),function(_198){return _198&&_198.domNode&&_198.resize;});if(_194.length==_195.length&&_197.length==1){this._singleChild=_197[0];}else{delete this._singleChild;}},setHref:function(href){dojo.deprecated("dijit.layout.ContentPane.setHref() is deprecated. Use attr('href', ...) instead.","","2.0");return this.attr("href",href);},_setHrefAttr:function(href){this.cancel();this.href=href;if(this._created&&(this.preload||this._isShown())){return this.refresh();}else{this._hrefChanged=true;}},setContent:function(data){dojo.deprecated("dijit.layout.ContentPane.setContent() is deprecated.  Use attr('content', ...) instead.","","2.0");this.attr("content",data);},_setContentAttr:function(data){this.href="";this.cancel();this._setContent(data||"");this._isDownloaded=false;},_getContentAttr:function(){return this.containerNode.innerHTML;},cancel:function(){if(this._xhrDfd&&(this._xhrDfd.fired==-1)){this._xhrDfd.cancel();}delete this._xhrDfd;},uninitialize:function(){if(this._beingDestroyed){this.cancel();}},destroyRecursive:function(_19d){if(this._beingDestroyed){return;}this._beingDestroyed=true;this.inherited(arguments);},resize:function(size){dojo.marginBox(this.domNode,size);var node=this.containerNode,mb=dojo.mixin(dojo.marginBox(node),size||{});var cb=(this._contentBox=dijit.layout.marginBox2contentBox(node,mb));if(this._singleChild&&this._singleChild.resize){this._singleChild.resize({w:cb.w,h:cb.h});}},_isShown:function(){if("open" in this){return this.open;}else{var node=this.domNode;return (node.style.display!="none")&&(node.style.visibility!="hidden")&&!dojo.hasClass(node,"dijitHidden");}},_onShow:function(){if(this._needLayout){this._layoutChildren();}this._loadCheck();if(this.onShow){this.onShow();}},_loadCheck:function(){if((this.href&&!this._xhrDfd)&&(!this.isLoaded||this._hrefChanged||this.refreshOnShow)&&(this.preload||this._isShown())){delete this._hrefChanged;this.refresh();}},refresh:function(){this.cancel();this._setContent(this.onDownloadStart(),true);var self=this;var _1a4={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};if(dojo.isObject(this.ioArgs)){dojo.mixin(_1a4,this.ioArgs);}var hand=(this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_1a4));hand.addCallback(function(html){try{self._isDownloaded=true;self._setContent(html,false);self.onDownloadEnd();}catch(err){self._onError("Content",err);}delete self._xhrDfd;return html;});hand.addErrback(function(err){if(!hand.canceled){self._onError("Download",err);}delete self._xhrDfd;return err;});},_onLoadHandler:function(data){this.isLoaded=true;try{this.onLoad(data);}catch(e){console.error("Error "+this.widgetId+" running custom onLoad code: "+e.message);}},_onUnloadHandler:function(){this.isLoaded=false;try{this.onUnload();}catch(e){console.error("Error "+this.widgetId+" running custom onUnload code: "+e.message);}},destroyDescendants:function(){if(this.isLoaded){this._onUnloadHandler();}var _1a9=this._contentSetter;dojo.forEach(this.getChildren(),function(_1aa){if(_1aa.destroyRecursive){_1aa.destroyRecursive();}});if(_1a9){dojo.forEach(_1a9.parseResults,function(_1ab){if(_1ab.destroyRecursive&&_1ab.domNode&&_1ab.domNode.parentNode==dojo.body()){_1ab.destroyRecursive();}});delete _1a9.parseResults;}dojo.html._emptyNode(this.containerNode);},_setContent:function(cont,_1ad){this.destroyDescendants();delete this._singleChild;var _1ae=this._contentSetter;if(!(_1ae&&_1ae instanceof dojo.html._ContentSetter)){_1ae=this._contentSetter=new dojo.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){var _1b0=this.onContentError(e);try{this.containerNode.innerHTML=_1b0;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}})});}var _1b1=dojo.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad},this._contentSetterParams||{});dojo.mixin(_1ae,_1b1);_1ae.set((dojo.isObject(cont)&&cont.domNode)?cont.domNode:cont);delete this._contentSetterParams;if(!_1ad){dojo.forEach(this.getChildren(),function(_1b2){_1b2.startup();});if(this.doLayout){this._checkIfSingleChild();}this._scheduleLayout();this._onLoadHandler(cont);}},_onError:function(type,err,_1b5){var _1b6=this["on"+type+"Error"].call(this,err);if(_1b5){console.error(_1b5,err);}else{if(_1b6){this._setContent(_1b6,true);}}},_scheduleLayout:function(){if(this._isShown()){this._layoutChildren();}else{this._needLayout=true;}},_layoutChildren:function(){if(this._singleChild&&this._singleChild.resize){var cb=this._contentBox||dojo.contentBox(this.containerNode);this._singleChild.resize({w:cb.w,h:cb.h});}else{dojo.forEach(this.getChildren(),function(_1b8){if(_1b8.resize){_1b8.resize();}});}delete this._needLayout;},onLoad:function(data){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage;},onContentError:function(_1ba){},onDownloadError:function(_1bb){return this.errorMessage;},onDownloadEnd:function(){}});}if(!dojo._hasResource["dijit.TooltipDialog"]){dojo._hasResource["dijit.TooltipDialog"]=true;dojo.provide("dijit.TooltipDialog");dojo.declare("dijit.TooltipDialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{title:"",doLayout:false,autofocus:true,baseClass:"dijitTooltipDialog",_firstFocusItem:null,_lastFocusItem:null,templateString:null,templateString:"<div waiRole=\"presentation\">\n\t<div class=\"dijitTooltipContainer\" waiRole=\"presentation\">\n\t\t<div class =\"dijitTooltipContents dijitTooltipFocusNode\" dojoAttachPoint=\"containerNode\" tabindex=\"-1\" waiRole=\"dialog\"></div>\n\t</div>\n\t<div class=\"dijitTooltipConnector\" waiRole=\"presentation\"></div>\n</div>\n",postCreate:function(){this.inherited(arguments);this.connect(this.containerNode,"onkeypress","_onKey");this.containerNode.title=this.title;},orient:function(node,_1bd,_1be){var c=this._currentOrientClass;if(c){dojo.removeClass(this.domNode,c);}c="dijitTooltipAB"+(_1be.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_1be.charAt(0)=="T"?"Below":"Above");dojo.addClass(this.domNode,c);this._currentOrientClass=c;},onOpen:function(pos){this.orient(this.domNode,pos.aroundCorner,pos.corner);this._onShow();if(this.autofocus){this._getFocusItems(this.containerNode);dijit.focus(this._firstFocusItem);}},_onKey:function(evt){var node=evt.target;var dk=dojo.keys;if(evt.charOrCode===dk.TAB){this._getFocusItems(this.containerNode);}var _1c4=(this._firstFocusItem==this._lastFocusItem);if(evt.charOrCode==dk.ESCAPE){this.onCancel();dojo.stopEvent(evt);}else{if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){if(!_1c4){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_1c4){dijit.focus(this._firstFocusItem);}dojo.stopEvent(evt);}else{if(evt.charOrCode===dk.TAB){evt.stopPropagation();}}}}}});}if(!dojo._hasResource["dijit.Dialog"]){dojo._hasResource["dijit.Dialog"]=true;dojo.provide("dijit.Dialog");dojo.declare("dijit.Dialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{templateString:null,templateString:"<div class=\"dijitDialog\" tabindex=\"-1\" waiRole=\"dialog\" waiState=\"labelledby-${id}_title\">\n\t<div dojoAttachPoint=\"titleBar\" class=\"dijitDialogTitleBar\">\n\t<span dojoAttachPoint=\"titleNode\" class=\"dijitDialogTitle\" id=\"${id}_title\"></span>\n\t<span dojoAttachPoint=\"closeButtonNode\" class=\"dijitDialogCloseIcon\" dojoAttachEvent=\"onclick: onCancel, onmouseenter: _onCloseEnter, onmouseleave: _onCloseLeave\" title=\"${buttonCancel}\">\n\t\t<span dojoAttachPoint=\"closeText\" class=\"closeText\" title=\"${buttonCancel}\">x</span>\n\t</span>\n\t</div>\n\t\t<div dojoAttachPoint=\"containerNode\" class=\"dijitDialogPaneContent\"></div>\n</div>\n",attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{title:[{node:"titleNode",type:"innerHTML"},{node:"titleBar",type:"attribute"}]}),open:false,duration:dijit.defaultDuration,refocus:true,autofocus:true,_firstFocusItem:null,_lastFocusItem:null,doLayout:false,draggable:true,_fixSizes:true,postMixInProperties:function(){var _1c5=dojo.i18n.getLocalization("dijit","common");dojo.mixin(this,_1c5);this.inherited(arguments);},postCreate:function(){dojo.style(this.domNode,{visibility:"hidden",position:"absolute",display:"",top:"-9999px"});dojo.body().appendChild(this.domNode);this.inherited(arguments);this.connect(this,"onExecute","hide");this.connect(this,"onCancel","hide");this._modalconnects=[];},onLoad:function(){this._position();this.inherited(arguments);},_endDrag:function(e){if(e&&e.node&&e.node===this.domNode){var vp=dijit.getViewport();var p=e._leftTop||dojo.coords(e.node,true);this._relativePosition={t:p.t-vp.t,l:p.l-vp.l};}},_setup:function(){var node=this.domNode;if(this.titleBar&&this.draggable){this._moveable=(dojo.isIE==6)?new dojo.dnd.TimedMoveable(node,{handle:this.titleBar}):new dojo.dnd.Moveable(node,{handle:this.titleBar,timeout:0});dojo.subscribe("/dnd/move/stop",this,"_endDrag");}else{dojo.addClass(node,"dijitDialogFixed");}var _1ca={dialogId:this.id,"class":dojo.map(this["class"].split(/\s/),function(s){return s+"_underlay";}).join(" ")};var _1cc=dijit._underlay;if(!_1cc){_1cc=dijit._underlay=new dijit.DialogUnderlay(_1ca);}this._fadeIn=dojo.fadeIn({node:node,duration:this.duration,beforeBegin:function(){_1cc.attr(_1ca);_1cc.show();},onEnd:dojo.hitch(this,function(){if(this.autofocus){this._getFocusItems(this.domNode);dijit.focus(this._firstFocusItem);}})});this._fadeOut=dojo.fadeOut({node:node,duration:this.duration,onEnd:function(){node.style.visibility="hidden";node.style.top="-9999px";dijit._underlay.hide();}});},uninitialize:function(){var _1cd=false;if(this._fadeIn&&this._fadeIn.status()=="playing"){_1cd=true;this._fadeIn.stop();}if(this._fadeOut&&this._fadeOut.status()=="playing"){_1cd=true;this._fadeOut.stop();}if(this.open||_1cd){dijit._underlay.hide();}if(this._moveable){this._moveable.destroy();}},_size:function(){var mb=dojo.marginBox(this.domNode);var _1cf=dijit.getViewport();if(mb.w>=_1cf.w||mb.h>=_1cf.h){dojo.style(this.containerNode,{width:Math.min(mb.w,Math.floor(_1cf.w*0.75))+"px",height:Math.min(mb.h,Math.floor(_1cf.h*0.75))+"px",overflow:"auto",position:"relative"});}},_position:function(){if(!dojo.hasClass(dojo.body(),"dojoMove")){var node=this.domNode;var _1d1=dijit.getViewport();var p=this._relativePosition;var mb=p?null:dojo.marginBox(node);dojo.style(node,{left:Math.floor(_1d1.l+(p?p.l:(_1d1.w-mb.w)/2))+"px",top:Math.floor(_1d1.t+(p?p.t:(_1d1.h-mb.h)/2))+"px"});}},_onKey:function(evt){if(evt.charOrCode){var dk=dojo.keys;var node=evt.target;if(evt.charOrCode===dk.TAB){this._getFocusItems(this.domNode);}var _1d7=(this._firstFocusItem==this._lastFocusItem);if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){if(!_1d7){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_1d7){dijit.focus(this._firstFocusItem);}dojo.stopEvent(evt);}else{while(node){if(node==this.domNode){if(evt.charOrCode==dk.ESCAPE){this.onCancel();}else{return;}}node=node.parentNode;}if(evt.charOrCode!==dk.TAB){dojo.stopEvent(evt);}else{if(!dojo.isOpera){try{this._firstFocusItem.focus();}catch(e){}}}}}}},show:function(){if(this.open){return;}if(!this._alreadyInitialized){this._setup();this._alreadyInitialized=true;}if(this._fadeOut.status()=="playing"){this._fadeOut.stop();}this._modalconnects.push(dojo.connect(window,"onscroll",this,"layout"));this._modalconnects.push(dojo.connect(window,"onresize",this,function(){var _1d8=dijit.getViewport();if(!this._oldViewport||_1d8.h!=this._oldViewport.h||_1d8.w!=this._oldViewport.w){this.layout();this._oldViewport=_1d8;}}));this._modalconnects.push(dojo.connect(dojo.doc.documentElement,"onkeypress",this,"_onKey"));dojo.style(this.domNode,{opacity:0,visibility:""});if(this._fixSizes){dojo.style(this.containerNode,{width:"auto",height:"auto"});}this.open=true;this._onShow();this._size();this._position();this._fadeIn.play();this._savedFocus=dijit.getFocus(this);},hide:function(){if(!this._alreadyInitialized){return;}if(this._fadeIn.status()=="playing"){this._fadeIn.stop();}this._fadeOut.play();if(this._scrollConnected){this._scrollConnected=false;}dojo.forEach(this._modalconnects,dojo.disconnect);this._modalconnects=[];if(this.refocus){this.connect(this._fadeOut,"onEnd",dojo.hitch(dijit,"focus",this._savedFocus));}if(this._relativePosition){delete this._relativePosition;}this.open=false;},layout:function(){if(this.domNode.style.visibility!="hidden"){dijit._underlay.layout();this._position();}},destroy:function(){dojo.forEach(this._modalconnects,dojo.disconnect);if(this.refocus&&this.open){setTimeout(dojo.hitch(dijit,"focus",this._savedFocus),25);}this.inherited(arguments);},_onCloseEnter:function(){dojo.addClass(this.closeButtonNode,"dijitDialogCloseIcon-hover");},_onCloseLeave:function(){dojo.removeClass(this.closeButtonNode,"dijitDialogCloseIcon-hover");}});}if(!dojo._hasResource["dijit._editor.selection"]){dojo._hasResource["dijit._editor.selection"]=true;dojo.provide("dijit._editor.selection");dojo.mixin(dijit._editor.selection,{getType:function(){if(dojo.doc.selection){return dojo.doc.selection.type.toLowerCase();}else{var _1d9="text";var oSel;try{oSel=dojo.global.getSelection();}catch(e){}if(oSel&&oSel.rangeCount==1){var _1db=oSel.getRangeAt(0);if((_1db.startContainer==_1db.endContainer)&&((_1db.endOffset-_1db.startOffset)==1)&&(_1db.startContainer.nodeType!=3)){_1d9="control";}}return _1d9;}},getSelectedText:function(){if(dojo.doc.selection){if(dijit._editor.selection.getType()=="control"){return null;}return dojo.doc.selection.createRange().text;}else{var _1dc=dojo.global.getSelection();if(_1dc){return _1dc.toString();}}return "";},getSelectedHtml:function(){if(dojo.doc.selection){if(dijit._editor.selection.getType()=="control"){return null;}return dojo.doc.selection.createRange().htmlText;}else{var _1dd=dojo.global.getSelection();if(_1dd&&_1dd.rangeCount){var frag=_1dd.getRangeAt(0).cloneContents();var div=dojo.doc.createElement("div");div.appendChild(frag);return div.innerHTML;}return null;}},getSelectedElement:function(){if(dijit._editor.selection.getType()=="control"){if(dojo.doc.selection){var _1e0=dojo.doc.selection.createRange();if(_1e0&&_1e0.item){return dojo.doc.selection.createRange().item(0);}}else{var _1e1=dojo.global.getSelection();return _1e1.anchorNode.childNodes[_1e1.anchorOffset];}}return null;},getParentElement:function(){if(dijit._editor.selection.getType()=="control"){var p=this.getSelectedElement();if(p){return p.parentNode;}}else{if(dojo.doc.selection){var r=dojo.doc.selection.createRange();r.collapse(true);return r.parentElement();}else{var _1e4=dojo.global.getSelection();if(_1e4){var node=_1e4.anchorNode;while(node&&(node.nodeType!=1)){node=node.parentNode;}return node;}}}return null;},hasAncestorElement:function(_1e6){return this.getAncestorElement.apply(this,arguments)!=null;},getAncestorElement:function(_1e7){var node=this.getSelectedElement()||this.getParentElement();return this.getParentOfType(node,arguments);},isTag:function(node,tags){if(node&&node.tagName){var _nlc=node.tagName.toLowerCase();for(var i=0;i<tags.length;i++){var _tlc=String(tags[i]).toLowerCase();if(_nlc==_tlc){return _tlc;}}}return "";},getParentOfType:function(node,tags){while(node){if(this.isTag(node,tags).length){return node;}node=node.parentNode;}return null;},collapse:function(_1f0){if(window["getSelection"]){var _1f1=dojo.global.getSelection();if(_1f1.removeAllRanges){if(_1f0){_1f1.collapseToStart();}else{_1f1.collapseToEnd();}}else{_1f1.collapse(_1f0);}}else{if(dojo.doc.selection){var _1f2=dojo.doc.selection.createRange();_1f2.collapse(_1f0);_1f2.select();}}},remove:function(){var _s=dojo.doc.selection;if(_s){if(_s.type.toLowerCase()!="none"){_s.clear();}return _s;}else{_s=dojo.global.getSelection();_s.deleteFromDocument();return _s;}},selectElementChildren:function(_1f4,_1f5){var _1f6=dojo.global;var _1f7=dojo.doc;_1f4=dojo.byId(_1f4);if(_1f7.selection&&dojo.body().createTextRange){var _1f8=_1f4.ownerDocument.body.createTextRange();_1f8.moveToElementText(_1f4);if(!_1f5){try{_1f8.select();}catch(e){}}}else{if(_1f6.getSelection){var _1f9=_1f6.getSelection();if(_1f9.setBaseAndExtent){_1f9.setBaseAndExtent(_1f4,0,_1f4,_1f4.innerText.length-1);}else{if(_1f9.selectAllChildren){_1f9.selectAllChildren(_1f4);}}}}},selectElement:function(_1fa,_1fb){var _1fc,_1fd=dojo.doc;_1fa=dojo.byId(_1fa);if(_1fd.selection&&dojo.body().createTextRange){try{_1fc=dojo.body().createControlRange();_1fc.addElement(_1fa);if(!_1fb){_1fc.select();}}catch(e){this.selectElementChildren(_1fa,_1fb);}}else{if(dojo.global.getSelection){var _1fe=dojo.global.getSelection();if(_1fe.removeAllRanges){_1fc=_1fd.createRange();_1fc.selectNode(_1fa);_1fe.removeAllRanges();_1fe.addRange(_1fc);}}}}});}if(!dojo._hasResource["dijit._editor.range"]){dojo._hasResource["dijit._editor.range"]=true;dojo.provide("dijit._editor.range");dijit.range={};dijit.range.getIndex=function(node,_200){var ret=[],retR=[];var stop=_200;var _204=node;var _205,n;while(node!=stop){var i=0;_205=node.parentNode;while((n=_205.childNodes[i++])){if(n===node){--i;break;}}if(i>=_205.childNodes.length){dojo.debug("Error finding index of a node in dijit.range.getIndex");}ret.unshift(i);retR.unshift(i-_205.childNodes.length);node=_205;}if(ret.length>0&&_204.nodeType==3){n=_204.previousSibling;while(n&&n.nodeType==3){ret[ret.length-1]--;n=n.previousSibling;}n=_204.nextSibling;while(n&&n.nodeType==3){retR[retR.length-1]++;n=n.nextSibling;}}return {o:ret,r:retR};};dijit.range.getNode=function(_208,_209){if(!dojo.isArray(_208)||_208.length==0){return _209;}var node=_209;dojo.every(_208,function(i){if(i>=0&&i<node.childNodes.length){node=node.childNodes[i];}else{node=null;return false;}return true;});return node;};dijit.range.getCommonAncestor=function(n1,n2){var _20e=function(n){var as=[];while(n){as.unshift(n);if(n.nodeName!="BODY"){n=n.parentNode;}else{break;}}return as;};var n1as=_20e(n1);var n2as=_20e(n2);var m=Math.min(n1as.length,n2as.length);var com=n1as[0];for(var i=1;i<m;i++){if(n1as[i]===n2as[i]){com=n1as[i];}else{break;}}return com;};dijit.range.getAncestor=function(node,_217,root){root=root||node.ownerDocument.body;while(node&&node!==root){var name=node.nodeName.toUpperCase();if(_217.test(name)){return node;}node=node.parentNode;}return null;};dijit.range.BlockTagNames=/^(?:P|DIV|H1|H2|H3|H4|H5|H6|ADDRESS|PRE|OL|UL|LI|DT|DE)$/;dijit.range.getBlockAncestor=function(node,_21b,root){root=root||node.ownerDocument.body;_21b=_21b||dijit.range.BlockTagNames;var _21d=null,_21e;while(node&&node!==root){var name=node.nodeName.toUpperCase();if(!_21d&&_21b.test(name)){_21d=node;}if(!_21e&&(/^(?:BODY|TD|TH|CAPTION)$/).test(name)){_21e=node;}node=node.parentNode;}return {blockNode:_21d,blockContainer:_21e||node.ownerDocument.body};};dijit.range.atBeginningOfContainer=function(_220,node,_222){var _223=false;var _224=(_222==0);if(!_224&&node.nodeType==3){if(dojo.trim(node.nodeValue.substr(0,_222))==0){_224=true;}}if(_224){var _225=node;_223=true;while(_225&&_225!==_220){if(_225.previousSibling){_223=false;break;}_225=_225.parentNode;}}return _223;};dijit.range.atEndOfContainer=function(_226,node,_228){var _229=false;var _22a=(_228==(node.length||node.childNodes.length));if(!_22a&&node.nodeType==3){if(dojo.trim(node.nodeValue.substr(_228))==0){_22a=true;}}if(_22a){var _22b=node;_229=true;while(_22b&&_22b!==_226){if(_22b.nextSibling){_229=false;break;}_22b=_22b.parentNode;}}return _229;};dijit.range.adjacentNoneTextNode=function(_22c,next){var node=_22c;var len=(0-_22c.length)||0;var prop=next?"nextSibling":"previousSibling";while(node){if(node.nodeType!=3){break;}len+=node.length;node=node[prop];}return [node,len];};dijit.range._w3c=Boolean(window["getSelection"]);dijit.range.create=function(){if(dijit.range._w3c){return dojo.doc.createRange();}else{return new dijit.range.W3CRange;}};dijit.range.getSelection=function(win,_232){if(dijit.range._w3c){return win.getSelection();}else{var s=new dijit.range.ie.selection(win);if(!_232){s._getCurrentSelection();}return s;}};if(!dijit.range._w3c){dijit.range.ie={cachedSelection:{},selection:function(win){this._ranges=[];this.addRange=function(r,_236){this._ranges.push(r);if(!_236){r._select();}this.rangeCount=this._ranges.length;};this.removeAllRanges=function(){this._ranges=[];this.rangeCount=0;};var _237=function(){var r=win.document.selection.createRange();var type=win.document.selection.type.toUpperCase();if(type=="CONTROL"){return new dijit.range.W3CRange(dijit.range.ie.decomposeControlRange(r));}else{return new dijit.range.W3CRange(dijit.range.ie.decomposeTextRange(r));}};this.getRangeAt=function(i){return this._ranges[i];};this._getCurrentSelection=function(){this.removeAllRanges();var r=_237();if(r){this.addRange(r,true);}};},decomposeControlRange:function(_23c){var _23d=_23c.item(0),_23e=_23c.item(_23c.length-1);var _23f=_23d.parentNode,_240=_23e.parentNode;var _241=dijit.range.getIndex(_23d,_23f).o;var _242=dijit.range.getIndex(_23e,_240).o+1;return [_23f,_241,_240,_242];},getEndPoint:function(_243,end){var _245=_243.duplicate();_245.collapse(!end);var _246="EndTo"+(end?"End":"Start");var _247=_245.parentElement();var _248,_249,_24a;if(_247.childNodes.length>0){dojo.every(_247.childNodes,function(node,i){var _24d;if(node.nodeType!=3){_245.moveToElementText(node);if(_245.compareEndPoints(_246,_243)>0){_248=node.previousSibling;if(_24a&&_24a.nodeType==3){_248=_24a;_24d=true;}else{_248=_247;_249=i;return false;}}else{if(i==_247.childNodes.length-1){_248=_247;_249=_247.childNodes.length;return false;}}}else{if(i==_247.childNodes.length-1){_248=node;_24d=true;}}if(_24d&&_248){var _24e=dijit.range.adjacentNoneTextNode(_248)[0];if(_24e){_248=_24e.nextSibling;}else{_248=_247.firstChild;}var _24f=dijit.range.adjacentNoneTextNode(_248);_24e=_24f[0];var _250=_24f[1];if(_24e){_245.moveToElementText(_24e);_245.collapse(false);}else{_245.moveToElementText(_247);}_245.setEndPoint(_246,_243);_249=_245.text.length-_250;return false;}_24a=node;return true;});}else{_248=_247;_249=0;}if(!end&&_248.nodeType!=3&&_249==_248.childNodes.length){if(_248.nextSibling&&_248.nextSibling.nodeType==3){_248=_248.nextSibling;_249=0;}}return [_248,_249];},setEndPoint:function(_251,_252,_253){var _254=_251.duplicate(),node,len;if(_252.nodeType!=3){if(_253>0){node=_252.childNodes[_253-1];if(node.nodeType==3){_252=node;_253=node.length;}else{if(node.nextSibling&&node.nextSibling.nodeType==3){_252=node.nextSibling;_253=0;}else{_254.moveToElementText(node.nextSibling?node:_252);var _257=node.parentNode.insertBefore(document.createTextNode(" "),node.nextSibling);_254.collapse(false);_257.parentNode.removeChild(_257);}}}else{_254.moveToElementText(_252);_254.collapse(true);}}if(_252.nodeType==3){var _258=dijit.range.adjacentNoneTextNode(_252);var _259=_258[0];len=_258[1];if(_259){_254.moveToElementText(_259);_254.collapse(false);if(_259.contentEditable!="inherit"){len++;}}else{_254.moveToElementText(_252.parentNode);_254.collapse(true);}_253+=len;if(_253>0){if(_254.move("character",_253)!=_253){console.error("Error when moving!");}}}return _254;},decomposeTextRange:function(_25a){var _25b=dijit.range.ie.getEndPoint(_25a);var _25c=_25b[0],_25d=_25b[1];var _25e=_25b[0],_25f=_25b[1];if(_25a.htmlText.length){if(_25a.htmlText==_25a.text){_25f=_25d+_25a.text.length;}else{_25b=dijit.range.ie.getEndPoint(_25a,true);_25e=_25b[0],_25f=_25b[1];}}return [_25c,_25d,_25e,_25f];},setRange:function(_260,_261,_262,_263,_264,_265){var _266=dijit.range.ie.setEndPoint(_260,_261,_262);_260.setEndPoint("StartToStart",_266);if(!_265){var end=dijit.range.ie.setEndPoint(_260,_263,_264);}_260.setEndPoint("EndToEnd",end||_266);return _260;}};dojo.declare("dijit.range.W3CRange",null,{constructor:function(){if(arguments.length>0){this.setStart(arguments[0][0],arguments[0][1]);this.setEnd(arguments[0][2],arguments[0][3]);}else{this.commonAncestorContainer=null;this.startContainer=null;this.startOffset=0;this.endContainer=null;this.endOffset=0;this.collapsed=true;}},_updateInternal:function(){if(this.startContainer!==this.endContainer){this.commonAncestorContainer=dijit.range.getCommonAncestor(this.startContainer,this.endContainer);}else{this.commonAncestorContainer=this.startContainer;}this.collapsed=(this.startContainer===this.endContainer)&&(this.startOffset==this.endOffset);},setStart:function(node,_269){_269=parseInt(_269);if(this.startContainer===node&&this.startOffset==_269){return;}delete this._cachedBookmark;this.startContainer=node;this.startOffset=_269;if(!this.endContainer){this.setEnd(node,_269);}else{this._updateInternal();}},setEnd:function(node,_26b){_26b=parseInt(_26b);if(this.endContainer===node&&this.endOffset==_26b){return;}delete this._cachedBookmark;this.endContainer=node;this.endOffset=_26b;if(!this.startContainer){this.setStart(node,_26b);}else{this._updateInternal();}},setStartAfter:function(node,_26d){this._setPoint("setStart",node,_26d,1);},setStartBefore:function(node,_26f){this._setPoint("setStart",node,_26f,0);},setEndAfter:function(node,_271){this._setPoint("setEnd",node,_271,1);},setEndBefore:function(node,_273){this._setPoint("setEnd",node,_273,0);},_setPoint:function(what,node,_276,ext){var _278=dijit.range.getIndex(node,node.parentNode).o;this[what](node.parentNode,_278.pop()+ext);},_getIERange:function(){var r=(this._body||this.endContainer.ownerDocument.body).createTextRange();dijit.range.ie.setRange(r,this.startContainer,this.startOffset,this.endContainer,this.endOffset,this.collapsed);return r;},getBookmark:function(body){this._getIERange();return this._cachedBookmark;},_select:function(){var r=this._getIERange();r.select();},deleteContents:function(){var r=this._getIERange();r.pasteHTML("");this.endContainer=this.startContainer;this.endOffset=this.startOffset;this.collapsed=true;},cloneRange:function(){var r=new dijit.range.W3CRange([this.startContainer,this.startOffset,this.endContainer,this.endOffset]);r._body=this._body;return r;},detach:function(){this._body=null;this.commonAncestorContainer=null;this.startContainer=null;this.startOffset=0;this.endContainer=null;this.endOffset=0;this.collapsed=true;}});}}if(!dojo._hasResource["dijit._editor.html"]){dojo._hasResource["dijit._editor.html"]=true;dojo.provide("dijit._editor.html");dijit._editor.escapeXml=function(str,_27f){str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");if(!_27f){str=str.replace(/'/gm,"&#39;");}return str;};dijit._editor.getNodeHtml=function(node){var _281;switch(node.nodeType){case 1:_281="<"+node.nodeName.toLowerCase();var _282=[];if(dojo.isIE&&node.outerHTML){var s=node.outerHTML;s=s.substr(0,s.indexOf(">")).replace(/(['"])[^"']*\1/g,"");var reg=/([^\s=]+)=/g;var m,key;while((m=reg.exec(s))){key=m[1];if(key.substr(0,3)!="_dj"){if(key=="src"||key=="href"){if(node.getAttribute("_djrealurl")){_282.push([key,node.getAttribute("_djrealurl")]);continue;}}var val;switch(key){case "style":val=node.style.cssText.toLowerCase();break;case "class":val=node.className;break;default:val=node.getAttribute(key);}_282.push([key,val.toString()]);}}}else{var attr,i=0;while((attr=node.attributes[i++])){var n=attr.name;if(n.substr(0,3)!="_dj"){var v=attr.value;if(n=="src"||n=="href"){if(node.getAttribute("_djrealurl")){v=node.getAttribute("_djrealurl");}}_282.push([n,v]);}}}_282.sort(function(a,b){return a[0]<b[0]?-1:(a[0]==b[0]?0:1);});var j=0;while((attr=_282[j++])){_281+=" "+attr[0]+"=\""+(dojo.isString(attr[1])?dijit._editor.escapeXml(attr[1],true):attr[1])+"\"";}if(node.childNodes.length){_281+=">"+dijit._editor.getChildrenHtml(node)+"</"+node.nodeName.toLowerCase()+">";}else{_281+=" />";}break;case 3:_281=dijit._editor.escapeXml(node.nodeValue,true);break;case 8:_281="<!--"+dijit._editor.escapeXml(node.nodeValue,true)+"-->";break;default:_281="<!-- Element not recognized - Type: "+node.nodeType+" Name: "+node.nodeName+"-->";}return _281;};dijit._editor.getChildrenHtml=function(dom){var out="";if(!dom){return out;}var _291=dom["childNodes"]||dom;var _292=!dojo.isIE||_291!==dom;var node,i=0;while((node=_291[i++])){if(!_292||node.parentNode==dom){out+=dijit._editor.getNodeHtml(node);}}return out;};}if(!dojo._hasResource["dijit._editor.RichText"]){dojo._hasResource["dijit._editor.RichText"]=true;dojo.provide("dijit._editor.RichText");if(!dojo.config["useXDomain"]||dojo.config["allowXdRichTextSave"]){if(dojo._postLoad){(function(){var _295=dojo.doc.createElement("textarea");_295.id=dijit._scopeName+"._editor.RichText.savedContent";dojo.style(_295,{display:"none",position:"absolute",top:"-100px",height:"3px",width:"3px"});dojo.body().appendChild(_295);})();}else{try{dojo.doc.write("<textarea id=\""+dijit._scopeName+"._editor.RichText.savedContent\" "+"style=\"display:none;position:absolute;top:-100px;left:-100px;height:3px;width:3px;overflow:hidden;\"></textarea>");}catch(e){}}}dojo.declare("dijit._editor.RichText",dijit._Widget,{constructor:function(_296){this.contentPreFilters=[];this.contentPostFilters=[];this.contentDomPreFilters=[];this.contentDomPostFilters=[];this.editingAreaStyleSheets=[];this._keyHandlers={};this.contentPreFilters.push(dojo.hitch(this,"_preFixUrlAttributes"));if(dojo.isMoz){this.contentPreFilters.push(this._fixContentForMoz);this.contentPostFilters.push(this._removeMozBogus);}if(dojo.isSafari){this.contentPostFilters.push(this._removeSafariBogus);}this.onLoadDeferred=new dojo.Deferred();},inheritWidth:false,focusOnLoad:false,name:"",styleSheets:"",_content:"",height:"300px",minHeight:"1em",isClosed:true,isLoaded:false,_SEPARATOR:"@@**%%__RICHTEXTBOUNDRY__%%**@@",onLoadDeferred:null,isTabIndent:false,disableSpellCheck:false,postCreate:function(){if("textarea"==this.domNode.tagName.toLowerCase()){console.warn("RichText should not be used with the TEXTAREA tag.  See dijit._editor.RichText docs.");}dojo.publish(dijit._scopeName+"._editor.RichText::init",[this]);this.open();this.setupDefaultShortcuts();},setupDefaultShortcuts:function(){var exec=dojo.hitch(this,function(cmd,arg){return function(){return !this.execCommand(cmd,arg);};});var _29a={b:exec("bold"),i:exec("italic"),u:exec("underline"),a:exec("selectall"),s:function(){this.save(true);},m:function(){this.isTabIndent=!this.isTabIndent;},"1":exec("formatblock","h1"),"2":exec("formatblock","h2"),"3":exec("formatblock","h3"),"4":exec("formatblock","h4"),"\\":exec("insertunorderedlist")};if(!dojo.isIE){_29a.Z=exec("redo");}for(var key in _29a){this.addKeyHandler(key,true,false,_29a[key]);}},events:["onKeyPress","onKeyDown","onKeyUp","onClick"],captureEvents:[],_editorCommandsLocalized:false,_localizeEditorCommands:function(){if(this._editorCommandsLocalized){return;}this._editorCommandsLocalized=true;var _29c=["div","p","pre","h1","h2","h3","h4","h5","h6","ol","ul","address"];var _29d="",_29e,i=0;while((_29e=_29c[i++])){if(_29e.charAt(1)!="l"){_29d+="<"+_29e+"><span>content</span></"+_29e+"><br/>";}else{_29d+="<"+_29e+"><li>content</li></"+_29e+"><br/>";}}var div=dojo.doc.createElement("div");dojo.style(div,{position:"absolute",top:"-2000px"});dojo.doc.body.appendChild(div);div.innerHTML=_29d;var node=div.firstChild;while(node){dijit._editor.selection.selectElement(node.firstChild);dojo.withGlobal(this.window,"selectElement",dijit._editor.selection,[node.firstChild]);var _2a2=node.tagName.toLowerCase();this._local2NativeFormatNames[_2a2]=document.queryCommandValue("formatblock");this._native2LocalFormatNames[this._local2NativeFormatNames[_2a2]]=_2a2;node=node.nextSibling.nextSibling;}dojo.body().removeChild(div);},open:function(_2a3){if(!this.onLoadDeferred||this.onLoadDeferred.fired>=0){this.onLoadDeferred=new dojo.Deferred();}if(!this.isClosed){this.close();}dojo.publish(dijit._scopeName+"._editor.RichText::open",[this]);this._content="";if(arguments.length==1&&_2a3.nodeName){this.domNode=_2a3;}var dn=this.domNode;var html;if(dn.nodeName&&dn.nodeName.toLowerCase()=="textarea"){var ta=(this.textarea=dn);this.name=ta.name;html=this._preFilterContent(ta.value);dn=this.domNode=dojo.doc.createElement("div");dn.setAttribute("widgetId",this.id);ta.removeAttribute("widgetId");dn.cssText=ta.cssText;dn.className+=" "+ta.className;dojo.place(dn,ta,"before");var _2a7=dojo.hitch(this,function(){dojo.style(ta,{display:"block",position:"absolute",top:"-1000px"});if(dojo.isIE){var s=ta.style;this.__overflow=s.overflow;s.overflow="hidden";}});if(dojo.isIE){setTimeout(_2a7,10);}else{_2a7();}if(ta.form){dojo.connect(ta.form,"onsubmit",this,function(){ta.value=this.getValue();});}}else{html=this._preFilterContent(dijit._editor.getChildrenHtml(dn));dn.innerHTML="";}var _2a9=dojo.contentBox(dn);this._oldHeight=_2a9.h;this._oldWidth=_2a9.w;this.savedContent=html;if(dn.nodeName&&dn.nodeName=="LI"){dn.innerHTML=" <br>";}this.editingArea=dn.ownerDocument.createElement("div");dn.appendChild(this.editingArea);if(this.name!=""&&(!dojo.config["useXDomain"]||dojo.config["allowXdRichTextSave"])){var _2aa=dojo.byId(dijit._scopeName+"._editor.RichText.savedContent");if(_2aa.value!=""){var _2ab=_2aa.value.split(this._SEPARATOR),i=0,dat;while((dat=_2ab[i++])){var data=dat.split(":");if(data[0]==this.name){html=data[1];_2ab.splice(i,1);break;}}}this.connect(window,"onbeforeunload","_saveContent");}this.isClosed=false;if(dojo.isIE||dojo.isWebKit||dojo.isOpera){var ifr=(this.editorObject=this.iframe=dojo.doc.createElement("iframe"));ifr.id=this.id+"_iframe";this._iframeSrc=this._getIframeDocTxt(html);ifr.style.border="none";ifr.style.width="100%";if(this._layoutMode){ifr.style.height="100%";}else{if(dojo.isIE>=7){if(this.height){ifr.style.height=this.height;}if(this.minHeight){ifr.style.minHeight=this.minHeight;}}else{ifr.style.height=this.height?this.height:this.minHeight;}}ifr.frameBorder=0;ifr._loadFunc=dojo.hitch(this,function(win){this.window=win;this.document=this.window.document;if(dojo.isIE){this._localizeEditorCommands();}this.onLoad();this.savedContent=this.getValue(true);});var s="javascript:parent.dijit.byId(\""+this.id+"\")._iframeSrc";ifr.setAttribute("src",s);this.editingArea.appendChild(ifr);if(dojo.isWebKit){setTimeout(function(){ifr.setAttribute("src",s);},0);}}else{this._drawIframe(html);this.savedContent=this.getValue(true);}if(dn.nodeName=="LI"){dn.lastChild.style.marginTop="-1.2em";}if(this.domNode.nodeName=="LI"){this.domNode.lastChild.style.marginTop="-1.2em";}dojo.addClass(this.domNode,"RichTextEditable");},_local2NativeFormatNames:{},_native2LocalFormatNames:{},_localizedIframeTitles:null,_getIframeDocTxt:function(html){var _cs=dojo.getComputedStyle(this.domNode);if(dojo.isIE||(!this.height&&!dojo.isMoz)){html="<div>"+html+"</div>";}var font=[_cs.fontWeight,_cs.fontSize,_cs.fontFamily].join(" ");var _2b5=_cs.lineHeight;if(_2b5.indexOf("px")>=0){_2b5=parseFloat(_2b5)/parseFloat(_cs.fontSize);}else{if(_2b5.indexOf("em")>=0){_2b5=parseFloat(_2b5);}else{_2b5="1.0";}}var _2b6="";this.style.replace(/(^|;)(line-|font-?)[^;]+/g,function(_2b7){_2b6+=_2b7.replace(/^;/g,"")+";";});return [this.isLeftToRight()?"<html><head>":"<html dir='rtl'><head>",(dojo.isMoz?"<title>"+this._localizedIframeTitles.iframeEditTitle+"</title>":""),"<style>","body,html {","\tbackground:transparent;","\tpadding: 1em 0 0 0;","\tmargin: -1em 0 0 0;","}","body{","\ttop:0px; left:0px; right:0px;","\tfont:",font,";",((this.height||dojo.isOpera)?"":"position: fixed;"),"\tmin-height:",this.minHeight,";","\tline-height:",_2b5,"}","p{ margin: 1em 0 !important; }",(this.height?"":"body,html{overflow-y:hidden;/*for IE*/} body > div {overflow-x:auto;/*FF:horizontal scrollbar*/ overflow-y:hidden;/*safari*/ min-height:"+this.minHeight+";/*safari*/}"),"li > ul:-moz-first-node, li > ol:-moz-first-node{ padding-top: 1.2em; } ","li{ min-height:1.2em; }","</style>",this._applyEditingAreaStyleSheets(),"</head><body onload='frameElement._loadFunc(window,document)' style='"+_2b6+"'>"+html+"</body></html>"].join("");},_drawIframe:function(html){if(!this.iframe){var ifr=(this.iframe=dojo.doc.createElement("iframe"));ifr.id=this.id+"_iframe";var ifrs=ifr.style;ifrs.border="none";ifrs.lineHeight="0";ifrs.verticalAlign="bottom";this.editorObject=this.iframe;this._localizedIframeTitles=dojo.i18n.getLocalization("dijit.form","Textarea");var _2bb=dojo.query("label[for=\""+this.id+"\"]");if(_2bb.length){this._localizedIframeTitles.iframeEditTitle=_2bb[0].innerHTML+" "+this._localizedIframeTitles.iframeEditTitle;}ifr._loadFunc=function(win){};}this.iframe.style.width=this.inheritWidth?this._oldWidth:"100%";if(this._layoutMode){this.iframe.style.height="100%";}else{if(this.height){this.iframe.style.height=this.height;}else{this.iframe.height=this._oldHeight;}}var _2bd;if(this.textarea){_2bd=this.srcNodeRef;}else{_2bd=dojo.doc.createElement("div");_2bd.style.display="none";_2bd.innerHTML=html;this.editingArea.appendChild(_2bd);}this.editingArea.appendChild(this.iframe);var _2be=dojo.hitch(this,function(){if(!this.editNode){if(!this.document){try{if(this.iframe.contentWindow){this.window=this.iframe.contentWindow;this.document=this.iframe.contentWindow.document;}else{if(this.iframe.contentDocument){this.window=this.iframe.contentDocument.window;this.document=this.iframe.contentDocument;}}}catch(e){}if(!this.document){setTimeout(_2be,50);return;}var _2bf=this.document;_2bf.open();if(dojo.isAIR){_2bf.body.innerHTML=html;}else{_2bf.write(this._getIframeDocTxt(html));}_2bf.close();dojo.destroy(_2bd);}if(!this.document.body){setTimeout(_2be,50);return;}this.onLoad();}else{dojo.destroy(_2bd);this.editNode.innerHTML=html;this.onDisplayChanged();}this._preDomFilterContent(this.editNode);});_2be();},_applyEditingAreaStyleSheets:function(){var _2c0=[];if(this.styleSheets){_2c0=this.styleSheets.split(";");this.styleSheets="";}_2c0=_2c0.concat(this.editingAreaStyleSheets);this.editingAreaStyleSheets=[];var text="",i=0,url;while((url=_2c0[i++])){var _2c4=(new dojo._Url(dojo.global.location,url)).toString();this.editingAreaStyleSheets.push(_2c4);text+="<link rel=\"stylesheet\" type=\"text/css\" href=\""+_2c4+"\"/>";}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 _2c8=this.document.createElement("link");_2c8.rel="stylesheet";_2c8.type="text/css";_2c8.href=url;head.appendChild(_2c8);}},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 _2cb=dojo.indexOf(this.editingAreaStyleSheets,url);if(_2cb==-1){return;}delete this.editingAreaStyleSheets[_2cb];dojo.withGlobal(this.window,"query",dojo,["link:[href=\""+url+"\"]"]).orphan();},disabled:false,_mozSettingProps:["styleWithCSS","insertBrOnReturn"],_setDisabledAttr:function(_2cc){this.disabled=_2cc;if(!this.isLoaded){return;}_2cc=!!_2cc;if(dojo.isIE||dojo.isWebKit||dojo.isOpera){var _2cd=dojo.isIE&&(this.isLoaded||!this.focusOnLoad);if(_2cd){this.editNode.unselectable="on";}this.editNode.contentEditable=!_2cc;if(_2cd){var _2ce=this;setTimeout(function(){_2ce.editNode.unselectable="off";},0);}}else{if(_2cc){this._mozSettings=[false,this.blockNodeForEnter==="BR"];}try{this.document.designMode=(_2cc?"off":"on");}catch(e){return;}if(!_2cc&&this._mozSettingProps){var ps=this._mozSettingProps;for(var n in ps){if(ps.hasOwnProperty(n)){try{this.document.execCommand(n,false,ps[n]);}catch(e){}}}}}this._disabledOK=true;},_isResized:function(){return false;},onLoad:function(e){if(!this.window.__registeredWindow){this.window.__registeredWindow=true;dijit.registerIframe(this.iframe);}if(!dojo.isIE&&(this.height||dojo.isMoz)){this.editNode=this.document.body;}else{this.editNode=this.document.body.firstChild;var _2d2=this;if(dojo.isIE){var _2d3=(this.tabStop=dojo.doc.createElement("<div tabIndex=-1>"));this.editingArea.appendChild(_2d3);this.iframe.onfocus=function(){_2d2.editNode.setActive();};}}this.focusNode=this.editNode;this._preDomFilterContent(this.editNode);var _2d4=this.events.concat(this.captureEvents);var ap=this.iframe?this.document:this.editNode;dojo.forEach(_2d4,function(item){this.connect(ap,item.toLowerCase(),item);},this);if(dojo.isIE){this.connect(this.document,"onmousedown","_onIEMouseDown");this.editNode.style.zoom=1;}this.isLoaded=true;this.attr("disabled",this.disabled);if(this.onLoadDeferred){this.onLoadDeferred.callback(true);}this.onDisplayChanged(e);if(this.focusOnLoad){dojo.addOnLoad(dojo.hitch(this,function(){setTimeout(dojo.hitch(this,"focus"),this.updateInterval);}));}},onKeyDown:function(e){if(e.keyCode===dojo.keys.TAB&&this.isTabIndent){dojo.stopEvent(e);if(this.queryCommandEnabled((e.shiftKey?"outdent":"indent"))){this.execCommand((e.shiftKey?"outdent":"indent"));}}if(dojo.isIE){if(e.keyCode==dojo.keys.TAB&&!this.isTabIndent){if(e.shiftKey&&!e.ctrlKey&&!e.altKey){this.iframe.focus();}else{if(!e.shiftKey&&!e.ctrlKey&&!e.altKey){this.tabStop.focus();}}}else{if(e.keyCode===dojo.keys.BACKSPACE&&this.document.selection.type==="Control"){dojo.stopEvent(e);this.execCommand("delete");}else{if((65<=e.keyCode&&e.keyCode<=90)||(e.keyCode>=37&&e.keyCode<=40)){e.charCode=e.keyCode;this.onKeyPress(e);}}}}else{if(dojo.isMoz&&!this.isTabIndent){if(e.keyCode==dojo.keys.TAB&&!e.shiftKey&&!e.ctrlKey&&!e.altKey&&this.iframe){var _2d8=dojo.isFF<3?this.iframe.contentDocument:this.iframe;_2d8.title=this._localizedIframeTitles.iframeFocusTitle;this.iframe.focus();dojo.stopEvent(e);}else{if(e.keyCode==dojo.keys.TAB&&e.shiftKey){if(this.toolbar){this.toolbar.focus();}dojo.stopEvent(e);}}}}return true;},onKeyUp:function(e){return;},setDisabled:function(_2da){dojo.deprecated("dijit.Editor::setDisabled is deprecated","use dijit.Editor::attr(\"disabled\",boolean) instead",2);this.attr("disabled",_2da);},_setValueAttr:function(_2db){this.setValue(_2db);},_getDisableSpellCheckAttr:function(){return !dojo.attr(this.document.body,"spellcheck");},_setDisableSpellCheckAttr:function(_2dc){if(this.document){dojo.attr(this.document.body,"spellcheck",!_2dc);}else{this.onLoadDeferred.addCallback(dojo.hitch(this,function(){dojo.attr(this.document.body,"spellcheck",!_2dc);}));}},onKeyPress:function(e){var c=(e.keyChar&&e.keyChar.toLowerCase())||e.keyCode;var _2df=this._keyHandlers[c];var args=arguments;if(_2df&&!e.altKey){dojo.forEach(_2df,function(h){if((!!h.shift==!!e.shiftKey)&&(!!h.ctrl==!!e.ctrlKey)){if(!h.handler.apply(this,args)){e.preventDefault();}}},this);}if(!this._onKeyHitch){this._onKeyHitch=dojo.hitch(this,"onKeyPressed");}setTimeout(this._onKeyHitch,1);return true;},addKeyHandler:function(key,ctrl,_2e4,_2e5){if(!dojo.isArray(this._keyHandlers[key])){this._keyHandlers[key]=[];}this._keyHandlers[key].push({shift:_2e4||false,ctrl:ctrl||false,handler:_2e5});},onKeyPressed:function(){this.onDisplayChanged();},onClick:function(e){this.onDisplayChanged(e);},_onIEMouseDown:function(e){if(!this._focused&&!this.disabled){this.focus();}},_onBlur:function(e){this.inherited(arguments);var _c=this.getValue(true);if(_c!=this.savedContent){this.onChange(_c);this.savedContent=_c;}if(dojo.isMoz&&this.iframe){var _2ea=dojo.isFF<3?this.iframe.contentDocument:this.iframe;_2ea.title=this._localizedIframeTitles.iframeEditTitle;}},_onFocus:function(e){if(!this.disabled){if(!this._disabledOK){this.attr("disabled",false);}this.inherited(arguments);}},blur:function(){if(!dojo.isIE&&this.window.document.documentElement&&this.window.document.documentElement.focus){this.window.document.documentElement.focus();}else{if(dojo.doc.body.focus){dojo.doc.body.focus();}}},focus:function(){if(!dojo.isIE){dijit.focus(this.iframe);}else{if(this.editNode&&this.editNode.focus){this.iframe.fireEvent("onfocus",document.createEventObject());}}},updateInterval:200,_updateTimer:null,onDisplayChanged:function(e){if(this._updateTimer){clearTimeout(this._updateTimer);}if(!this._updateHandler){this._updateHandler=dojo.hitch(this,"onNormalizedDisplayChanged");}this._updateTimer=setTimeout(this._updateHandler,this.updateInterval);},onNormalizedDisplayChanged:function(){delete this._updateTimer;},onChange:function(_2ed){},_normalizeCommand:function(cmd){var _2ef=cmd.toLowerCase();if(_2ef=="formatblock"){if(dojo.isSafari){_2ef="heading";}}else{if(_2ef=="hilitecolor"&&!dojo.isMoz){_2ef="backcolor";}}return _2ef;},_qcaCache:{},queryCommandAvailable:function(_2f0){var ca=this._qcaCache[_2f0];if(ca!=undefined){return ca;}return (this._qcaCache[_2f0]=this._queryCommandAvailable(_2f0));},_queryCommandAvailable:function(_2f2){var ie=1;var _2f4=1<<1;var _2f5=1<<2;var _2f6=1<<3;var _2f7=1<<4;var _2f8=dojo.isWebKit;function _2f9(_2fa){return {ie:Boolean(_2fa&ie),mozilla:Boolean(_2fa&_2f4),webkit:Boolean(_2fa&_2f5),webkit420:Boolean(_2fa&_2f7),opera:Boolean(_2fa&_2f6)};};var _2fb=null;switch(_2f2.toLowerCase()){case "bold":case "italic":case "underline":case "subscript":case "superscript":case "fontname":case "fontsize":case "forecolor":case "hilitecolor":case "justifycenter":case "justifyfull":case "justifyleft":case "justifyright":case "delete":case "selectall":case "toggledir":_2fb=_2f9(_2f4|ie|_2f5|_2f6);break;case "createlink":case "unlink":case "removeformat":case "inserthorizontalrule":case "insertimage":case "insertorderedlist":case "insertunorderedlist":case "indent":case "outdent":case "formatblock":case "inserthtml":case "undo":case "redo":case "strikethrough":case "tabindent":_2fb=_2f9(_2f4|ie|_2f6|_2f7);break;case "blockdirltr":case "blockdirrtl":case "dirltr":case "dirrtl":case "inlinedirltr":case "inlinedirrtl":_2fb=_2f9(ie);break;case "cut":case "copy":case "paste":_2fb=_2f9(ie|_2f4|_2f7);break;case "inserttable":_2fb=_2f9(_2f4|ie);break;case "insertcell":case "insertcol":case "insertrow":case "deletecells":case "deletecols":case "deleterows":case "mergecells":case "splitcell":_2fb=_2f9(ie|_2f4);break;default:return false;}return (dojo.isIE&&_2fb.ie)||(dojo.isMoz&&_2fb.mozilla)||(dojo.isWebKit&&_2fb.webkit)||(dojo.isWebKit>420&&_2fb.webkit420)||(dojo.isOpera&&_2fb.opera);},execCommand:function(_2fc,_2fd){var _2fe;this.focus();_2fc=this._normalizeCommand(_2fc);if(_2fd!=undefined){if(_2fc=="heading"){throw new Error("unimplemented");}else{if((_2fc=="formatblock")&&dojo.isIE){_2fd="<"+_2fd+">";}}}if(_2fc=="inserthtml"){_2fd=this._preFilterContent(_2fd);_2fe=true;if(dojo.isIE){var _2ff=this.document.selection.createRange();if(this.document.selection.type.toUpperCase()=="CONTROL"){var n=_2ff.item(0);while(_2ff.length){_2ff.remove(_2ff.item(0));}n.outerHTML=_2fd;}else{_2ff.pasteHTML(_2fd);}_2ff.select();}else{if(dojo.isMoz&&!_2fd.length){this._sCall("remove");}else{_2fe=this.document.execCommand(_2fc,false,_2fd);}}}else{if((_2fc=="unlink")&&(this.queryCommandEnabled("unlink"))&&(dojo.isMoz||dojo.isWebKit)){var a=this._sCall("getAncestorElement",["a"]);this._sCall("selectElement",[a]);_2fe=this.document.execCommand("unlink",false,null);}else{if((_2fc=="hilitecolor")&&(dojo.isMoz)){this.document.execCommand("styleWithCSS",false,true);_2fe=this.document.execCommand(_2fc,false,_2fd);this.document.execCommand("styleWithCSS",false,false);}else{if((dojo.isIE)&&((_2fc=="backcolor")||(_2fc=="forecolor"))){_2fd=arguments.length>1?_2fd:null;_2fe=this.document.execCommand(_2fc,false,_2fd);}else{_2fd=arguments.length>1?_2fd:null;if(_2fd||_2fc!="createlink"){_2fe=this.document.execCommand(_2fc,false,_2fd);}}}}}this.onDisplayChanged();return _2fe;},queryCommandEnabled:function(_302){if(this.disabled||!this._disabledOK){return false;}_302=this._normalizeCommand(_302);if(dojo.isMoz||dojo.isWebKit){if(_302=="unlink"){this._sCall("hasAncestorElement",["a"]);}else{if(_302=="inserttable"){return true;}}}if(dojo.isWebKit){if(_302=="copy"){_302="cut";}else{if(_302=="paste"){return true;}}}if(_302=="indent"){var li=this._sCall("getAncestorElement",["li"]);var n=li&&li.previousSibling;while(n){if(n.nodeType==1){return true;}n=n.previousSibling;}return false;}else{if(_302=="outdent"){return this._sCall("hasAncestorElement",["li"]);}}var elem=dojo.isIE?this.document.selection.createRange():this.document;return elem.queryCommandEnabled(_302);},queryCommandState:function(_306){if(this.disabled||!this._disabledOK){return false;}_306=this._normalizeCommand(_306);return this.document.queryCommandState(_306);},queryCommandValue:function(_307){if(this.disabled||!this._disabledOK){return false;}var r;_307=this._normalizeCommand(_307);if(dojo.isIE&&_307=="formatblock"){r=this._native2LocalFormatNames[this.document.queryCommandValue(_307)];}else{r=this.document.queryCommandValue(_307);}return r;},_sCall:function(name,args){return dojo.withGlobal(this.window,name,dijit._editor.selection,args);},placeCursorAtStart:function(){this.focus();var _30b=false;if(dojo.isMoz){var _30c=this.editNode.firstChild;while(_30c){if(_30c.nodeType==3){if(_30c.nodeValue.replace(/^\s+|\s+$/g,"").length>0){_30b=true;this._sCall("selectElement",[_30c]);break;}}else{if(_30c.nodeType==1){_30b=true;this._sCall("selectElementChildren",[_30c]);break;}}_30c=_30c.nextSibling;}}else{_30b=true;this._sCall("selectElementChildren",[this.editNode]);}if(_30b){this._sCall("collapse",[true]);}},placeCursorAtEnd:function(){this.focus();var _30d=false;if(dojo.isMoz){var last=this.editNode.lastChild;while(last){if(last.nodeType==3){if(last.nodeValue.replace(/^\s+|\s+$/g,"").length>0){_30d=true;this._sCall("selectElement",[last]);break;}}else{if(last.nodeType==1){_30d=true;if(last.lastChild){this._sCall("selectElement",[last.lastChild]);}else{this._sCall("selectElement",[last]);}break;}}last=last.previousSibling;}}else{_30d=true;this._sCall("selectElementChildren",[this.editNode]);}if(_30d){this._sCall("collapse",[false]);}},getValue:function(_30f){if(this.textarea){if(this.isClosed||!this.isLoaded){return this.textarea.value;}}return this._postFilterContent(null,_30f);},_getValueAttr:function(){return this.getValue();},setValue:function(html){if(!this.isLoaded){this.onLoadDeferred.addCallback(dojo.hitch(this,function(){this.setValue(html);}));return;}if(this.textarea&&(this.isClosed||!this.isLoaded)){this.textarea.value=html;}else{html=this._preFilterContent(html);var node=this.isClosed?this.domNode:this.editNode;node.innerHTML=html;this._preDomFilterContent(node);}this.onDisplayChanged();},replaceValue:function(html){if(this.isClosed){this.setValue(html);}else{if(this.window&&this.window.getSelection&&!dojo.isMoz){this.setValue(html);}else{if(this.window&&this.window.getSelection){html=this._preFilterContent(html);this.execCommand("selectall");if(dojo.isMoz&&!html){html="&nbsp;";}this.execCommand("inserthtml",html);this._preDomFilterContent(this.editNode);}else{if(this.document&&this.document.selection){this.setValue(html);}}}}},_preFilterContent:function(html){var ec=html;dojo.forEach(this.contentPreFilters,function(ef){if(ef){ec=ef(ec);}});return ec;},_preDomFilterContent:function(dom){dom=dom||this.editNode;dojo.forEach(this.contentDomPreFilters,function(ef){if(ef&&dojo.isFunction(ef)){ef(dom);}},this);},_postFilterContent:function(dom,_319){var ec;if(!dojo.isString(dom)){dom=dom||this.editNode;if(this.contentDomPostFilters.length){if(_319){dom=dojo.clone(dom);}dojo.forEach(this.contentDomPostFilters,function(ef){dom=ef(dom);});}ec=dijit._editor.getChildrenHtml(dom);}else{ec=dom;}if(!dojo.trim(ec.replace(/^\xA0\xA0*/,"").replace(/\xA0\xA0*$/,"")).length){ec="";}dojo.forEach(this.contentPostFilters,function(ef){ec=ef(ec);});return ec;},_saveContent:function(e){var _31e=dojo.byId(dijit._scopeName+"._editor.RichText.savedContent");_31e.value+=this._SEPARATOR+this.name+":"+this.getValue();},escapeXml:function(str,_320){str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");if(!_320){str=str.replace(/'/gm,"&#39;");}return str;},getNodeHtml:function(node){dojo.deprecated("dijit.Editor::getNodeHtml is deprecated","use dijit._editor.getNodeHtml instead",2);return dijit._editor.getNodeHtml(node);},getNodeChildrenHtml:function(dom){dojo.deprecated("dijit.Editor::getNodeChildrenHtml is deprecated","use dijit._editor.getChildrenHtml instead",2);return dijit._editor.getChildrenHtml(dom);},close:function(save,_324){if(this.isClosed){return false;}if(!arguments.length){save=true;}this._content=this.getValue();var _325=(this.savedContent!=this._content);if(this.interval){clearInterval(this.interval);}if(this.textarea){var s=this.textarea.style;s.position="";s.left=s.top="";if(dojo.isIE){s.overflow=this.__overflow;this.__overflow=null;}this.textarea.value=save?this._content:this.savedContent;dojo.destroy(this.domNode);this.domNode=this.textarea;}else{this.domNode.innerHTML=save?this._content:this.savedContent;}dojo.removeClass(this.domNode,"RichTextEditable");this.isClosed=true;this.isLoaded=false;delete this.editNode;if(this.window&&this.window._frameElement){this.window._frameElement=null;}this.window=null;this.document=null;this.editingArea=null;this.editorObject=null;return _325;},destroyRendering:function(){},destroy:function(){this.destroyRendering();if(!this.isClosed){this.close(false);}this.inherited(arguments);},_removeMozBogus:function(html){return html.replace(/\stype="_moz"/gi,"").replace(/\s_moz_dirty=""/gi,"");},_removeSafariBogus:function(html){return html.replace(/\sclass="webkit-block-placeholder"/gi,"");},_fixContentForMoz:function(html){return html.replace(/<(\/)?strong([ \>])/gi,"<$1b$2").replace(/<(\/)?em([ \>])/gi,"<$1i$2");},_preFixUrlAttributes:function(html){return html.replace(/(?:(<a(?=\s).*?\shref=)("|')(.*?)\2)|(?:(<a\s.*?href=)([^"'][^ >]+))/gi,"$1$4$2$3$5$2 _djrealurl=$2$3$5$2").replace(/(?:(<img(?=\s).*?\ssrc=)("|')(.*?)\2)|(?:(<img\s.*?src=)([^"'][^ >]+))/gi,"$1$4$2$3$5$2 _djrealurl=$2$3$5$2");}});}if(!dojo._hasResource["dijit._KeyNavContainer"]){dojo._hasResource["dijit._KeyNavContainer"]=true;dojo.provide("dijit._KeyNavContainer");dojo.declare("dijit._KeyNavContainer",[dijit._Container],{tabIndex:"0",_keyNavCodes:{},connectKeyNavHandlers:function(_32b,_32c){var _32d=this._keyNavCodes={};var prev=dojo.hitch(this,this.focusPrev);var next=dojo.hitch(this,this.focusNext);dojo.forEach(_32b,function(code){_32d[code]=prev;});dojo.forEach(_32c,function(code){_32d[code]=next;});this.connect(this.domNode,"onkeypress","_onContainerKeypress");this.connect(this.domNode,"onfocus","_onContainerFocus");},startupKeyNavChildren:function(){dojo.forEach(this.getChildren(),dojo.hitch(this,"_startupChild"));},addChild:function(_332,_333){dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);this._startupChild(_332);},focus:function(){this.focusFirstChild();},focusFirstChild:function(){this.focusChild(this._getFirstFocusableChild());},focusNext:function(){if(this.focusedChild&&this.focusedChild.hasNextFocalNode&&this.focusedChild.hasNextFocalNode()){this.focusedChild.focusNext();return;}var _334=this._getNextFocusableChild(this.focusedChild,1);if(_334.getFocalNodes){this.focusChild(_334,_334.getFocalNodes()[0]);}else{this.focusChild(_334);}},focusPrev:function(){if(this.focusedChild&&this.focusedChild.hasPrevFocalNode&&this.focusedChild.hasPrevFocalNode()){this.focusedChild.focusPrev();return;}var _335=this._getNextFocusableChild(this.focusedChild,-1);if(_335.getFocalNodes){var _336=_335.getFocalNodes();this.focusChild(_335,_336[_336.length-1]);}else{this.focusChild(_335);}},focusChild:function(_337,node){if(_337){if(this.focusedChild&&_337!==this.focusedChild){this._onChildBlur(this.focusedChild);}this.focusedChild=_337;if(node&&_337.focusFocalNode){_337.focusFocalNode(node);}else{_337.focus();}}},_startupChild:function(_339){if(_339.getFocalNodes){dojo.forEach(_339.getFocalNodes(),function(node){dojo.attr(node,"tabindex",-1);this._connectNode(node);},this);}else{var node=_339.focusNode||_339.domNode;if(_339.isFocusable()){dojo.attr(node,"tabindex",-1);}this._connectNode(node);}},_connectNode:function(node){this.connect(node,"onfocus","_onNodeFocus");this.connect(node,"onblur","_onNodeBlur");},_onContainerFocus:function(evt){if(evt.target!==this.domNode){return;}this.focusFirstChild();dojo.removeAttr(this.domNode,"tabIndex");},_onBlur:function(evt){if(this.tabIndex){dojo.attr(this.domNode,"tabindex",this.tabIndex);}},_onContainerKeypress:function(evt){if(evt.ctrlKey||evt.altKey){return;}var func=this._keyNavCodes[evt.charOrCode];if(func){func();dojo.stopEvent(evt);}},_onNodeFocus:function(evt){var _342=dijit.getEnclosingWidget(evt.target);if(_342&&_342.isFocusable()){this.focusedChild=_342;}dojo.stopEvent(evt);},_onNodeBlur:function(evt){dojo.stopEvent(evt);},_onChildBlur:function(_344){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1);},_getNextFocusableChild:function(_345,dir){if(_345){_345=this._getSiblingOfChild(_345,dir);}var _347=this.getChildren();for(var i=0;i<_347.length;i++){if(!_345){_345=_347[(dir>0)?0:(_347.length-1)];}if(_345.isFocusable()){return _345;}_345=this._getSiblingOfChild(_345,dir);}return null;}});}if(!dojo._hasResource["dijit.ToolbarSeparator"]){dojo._hasResource["dijit.ToolbarSeparator"]=true;dojo.provide("dijit.ToolbarSeparator");dojo.declare("dijit.ToolbarSeparator",[dijit._Widget,dijit._Templated],{templateString:"<div class=\"dijitToolbarSeparator dijitInline\"></div>",postCreate:function(){dojo.setSelectable(this.domNode,false);},isFocusable:function(){return false;}});}if(!dojo._hasResource["dijit.Toolbar"]){dojo._hasResource["dijit.Toolbar"]=true;dojo.provide("dijit.Toolbar");dojo.declare("dijit.Toolbar",[dijit._Widget,dijit._Templated,dijit._KeyNavContainer],{templateString:"<div class=\"dijit dijitToolbar\" waiRole=\"toolbar\" tabIndex=\"${tabIndex}\" dojoAttachPoint=\"containerNode\">"+"</div>",postCreate:function(){this.connectKeyNavHandlers(this.isLeftToRight()?[dojo.keys.LEFT_ARROW]:[dojo.keys.RIGHT_ARROW],this.isLeftToRight()?[dojo.keys.RIGHT_ARROW]:[dojo.keys.LEFT_ARROW]);},startup:function(){if(this._started){return;}this.startupKeyNavChildren();this.inherited(arguments);}});}if(!dojo._hasResource["dijit.form.Button"]){dojo._hasResource["dijit.form.Button"]=true;dojo.provide("dijit.form.Button");dojo.declare("dijit.form.Button",dijit.form._FormWidget,{label:"",showLabel:true,iconClass:"",type:"button",baseClass:"dijitButton",templateString:"<span class=\"dijit dijitReset dijitLeft dijitInline\"\n\tdojoAttachEvent=\"ondijitclick:_onButtonClick,onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\"\n\t><span class=\"dijitReset dijitRight dijitInline\"\n\t\t><span class=\"dijitReset dijitInline dijitButtonNode\"\n\t\t\t><button class=\"dijitReset dijitStretch dijitButtonContents\"\n\t\t\t\tdojoAttachPoint=\"titleNode,focusNode\" \n\t\t\t\t${nameAttrSetting} type=\"${type}\" value=\"${value}\" waiRole=\"button\" waiState=\"labelledby-${id}_label\"\n\t\t\t\t><span class=\"dijitReset dijitInline\" dojoAttachPoint=\"iconNode\" \n\t\t\t\t\t><span class=\"dijitReset dijitToggleButtonIconChar\">&#10003;</span \n\t\t\t\t></span \n\t\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\" \n\t\t\t\t\tid=\"${id}_label\"  \n\t\t\t\t\tdojoAttachPoint=\"containerNode\"\n\t\t\t\t></span\n\t\t\t></button\n\t\t></span\n\t></span\n></span>\n",attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{label:{node:"containerNode",type:"innerHTML"},iconClass:{node:"iconNode",type:"class"}}),_onClick:function(e){if(this.disabled||this.readOnly){return false;}this._clicked();return this.onClick(e);},_onButtonClick:function(e){if(e.type!="click"&&!(this.type=="submit"||this.type=="reset")){dojo.stopEvent(e);}if(this._onClick(e)===false){e.preventDefault();}else{if(this.type=="submit"&&!this.focusNode.form){for(var node=this.domNode;node.parentNode;node=node.parentNode){var _34c=dijit.byNode(node);if(_34c&&typeof _34c._onSubmit=="function"){_34c._onSubmit(e);break;}}}}},_setValueAttr:function(_34d){var attr=this.attributeMap.value||"";if(this[attr.node||attr||"domNode"].tagName=="BUTTON"){if(_34d!=this.value){}}},_fillContent:function(_34f){if(_34f&&!("label" in this.params)){this.attr("label",_34f.innerHTML);}},postCreate:function(){if(this.showLabel==false){dojo.addClass(this.containerNode,"dijitDisplayNone");}dojo.setSelectable(this.focusNode,false);this.inherited(arguments);},onClick:function(e){return true;},_clicked:function(e){},setLabel:function(_352){dojo.deprecated("dijit.form.Button.setLabel() is deprecated.  Use attr('label', ...) instead.","","2.0");this.attr("label",_352);},_setLabelAttr:function(_353){this.containerNode.innerHTML=this.label=_353;this._layoutHack();if(this.showLabel==false&&!this.params.title){this.titleNode.title=dojo.trim(this.containerNode.innerText||this.containerNode.textContent||"");}}});dojo.declare("dijit.form.DropDownButton",[dijit.form.Button,dijit._Container],{baseClass:"dijitDropDownButton",templateString:"<span class=\"dijit dijitReset dijitLeft dijitInline\"\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse,onclick:_onDropDownClick,onkeydown:_onDropDownKeydown,onblur:_onDropDownBlur,onkeypress:_onKey\"\n\t><span class='dijitReset dijitRight dijitInline'\n\t\t><span class='dijitReset dijitInline dijitButtonNode'\n\t\t\t><button class=\"dijitReset dijitStretch dijitButtonContents\" \n\t\t\t\t${nameAttrSetting} type=\"${type}\" value=\"${value}\"\n\t\t\t\tdojoAttachPoint=\"focusNode,titleNode\" \n\t\t\t\twaiRole=\"button\" waiState=\"haspopup-true,labelledby-${id}_label\"\n\t\t\t\t><span class=\"dijitReset dijitInline\" \n\t\t\t\t\tdojoAttachPoint=\"iconNode\"\n\t\t\t\t></span\n\t\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"  \n\t\t\t\t\tdojoAttachPoint=\"containerNode,popupStateNode\" \n\t\t\t\t\tid=\"${id}_label\"\n\t\t\t\t></span\n\t\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonInner\">&thinsp;</span\n\t\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonChar\">&#9660;</span\n\t\t\t></button\n\t\t></span\n\t></span\n></span>\n",_fillContent:function(){if(this.srcNodeRef){var _354=dojo.query("*",this.srcNodeRef);dijit.form.DropDownButton.superclass._fillContent.call(this,_354[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}if(!this.dropDown){var _355=dojo.query("[widgetId]",this.dropDownContainer)[0];this.dropDown=dijit.byNode(_355);delete this.dropDownContainer;}dijit.popup.prepare(this.dropDown.domNode);this.inherited(arguments);},destroyDescendants:function(){if(this.dropDown){this.dropDown.destroyRecursive();delete this.dropDown;}this.inherited(arguments);},_onArrowClick:function(e){if(this.disabled||this.readOnly){return;}this._toggleDropDown();},_onDropDownClick:function(e){var _358=dojo.isFF&&dojo.isFF<3&&navigator.appVersion.indexOf("Macintosh")!=-1;if(!_358||e.detail!=0||this._seenKeydown){this._onArrowClick(e);}this._seenKeydown=false;},_onDropDownKeydown:function(e){this._seenKeydown=true;},_onDropDownBlur:function(e){this._seenKeydown=false;},_onKey:function(e){if(this.disabled||this.readOnly){return;}if(e.charOrCode==dojo.keys.DOWN_ARROW){if(!this.dropDown||this.dropDown.domNode.style.visibility=="hidden"){dojo.stopEvent(e);this._toggleDropDown();}}},_onBlur:function(){this._closeDropDown();this.inherited(arguments);},_toggleDropDown:function(){if(this.disabled||this.readOnly){return;}dijit.focus(this.popupStateNode);var _35c=this.dropDown;if(!_35c){return;}if(!this._opened){if(_35c.href&&!_35c.isLoaded){var self=this;var _35e=dojo.connect(_35c,"onLoad",function(){dojo.disconnect(_35e);self._openDropDown();});_35c.refresh();return;}else{this._openDropDown();}}else{this._closeDropDown();}},_openDropDown:function(){var _35f=this.dropDown;var _360=_35f.domNode.style.width;var self=this;dijit.popup.open({parent:this,popup:_35f,around:this.domNode,orient:this.isLeftToRight()?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"},onExecute:function(){self._closeDropDown(true);},onCancel:function(){self._closeDropDown(true);},onClose:function(){_35f.domNode.style.width=_360;self.popupStateNode.removeAttribute("popupActive");self._opened=false;}});if(this.domNode.offsetWidth>_35f.domNode.offsetWidth){var _362=null;if(!this.isLeftToRight()){_362=_35f.domNode.parentNode;var _363=_362.offsetLeft+_362.offsetWidth;}dojo.marginBox(_35f.domNode,{w:this.domNode.offsetWidth});if(_362){_362.style.left=_363-this.domNode.offsetWidth+"px";}}this.popupStateNode.setAttribute("popupActive","true");this._opened=true;if(_35f.focus){_35f.focus();}},_closeDropDown:function(_364){if(this._opened){dijit.popup.close(this.dropDown);if(_364){this.focus();}this._opened=false;}}});dojo.declare("dijit.form.ComboButton",dijit.form.DropDownButton,{templateString:"<table class='dijit dijitReset dijitInline dijitLeft'\n\tcellspacing='0' cellpadding='0' waiRole=\"presentation\"\n\t><tbody waiRole=\"presentation\"><tr waiRole=\"presentation\"\n\t\t><td class=\"dijitReset dijitStretch dijitButtonContents dijitButtonNode\"\n\t\t\tdojoAttachEvent=\"ondijitclick:_onButtonClick,onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\"  dojoAttachPoint=\"titleNode\"\n\t\t\twaiRole=\"button\" waiState=\"labelledby-${id}_label\"\n\t\t\t><div class=\"dijitReset dijitInline\" dojoAttachPoint=\"iconNode\" waiRole=\"presentation\"></div\n\t\t\t><div class=\"dijitReset dijitInline dijitButtonText\" id=\"${id}_label\" dojoAttachPoint=\"containerNode\" waiRole=\"presentation\"></div\n\t\t></td\n\t\t><td class='dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton'\n\t\t\tdojoAttachPoint=\"popupStateNode,focusNode\"\n\t\t\tdojoAttachEvent=\"ondijitclick:_onArrowClick, onkeypress:_onKey,onmouseenter:_onMouse,onmouseleave:_onMouse\"\n\t\t\tstateModifier=\"DownArrow\"\n\t\t\ttitle=\"${optionsTitle}\" ${nameAttrSetting}\n\t\t\twaiRole=\"button\" waiState=\"haspopup-true\"\n\t\t\t><div class=\"dijitReset dijitArrowButtonInner\" waiRole=\"presentation\">&thinsp;</div\n\t\t\t><div class=\"dijitReset dijitArrowButtonChar\" waiRole=\"presentation\">&#9660;</div\n\t\t></td\n\t></tr></tbody\n></table>\n",attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{id:"",tabIndex:["focusNode","titleNode"]}),optionsTitle:"",baseClass:"dijitComboButton",_focusedNode:null,postCreate:function(){this.inherited(arguments);this._focalNodes=[this.titleNode,this.popupStateNode];dojo.forEach(this._focalNodes,dojo.hitch(this,function(node){if(dojo.isIE){this.connect(node,"onactivate",this._onNodeFocus);this.connect(node,"ondeactivate",this._onNodeBlur);}else{this.connect(node,"onfocus",this._onNodeFocus);this.connect(node,"onblur",this._onNodeBlur);}}));},focusFocalNode:function(node){this._focusedNode=node;dijit.focus(node);},hasNextFocalNode:function(){return this._focusedNode!==this.getFocalNodes()[1];},focusNext:function(){this._focusedNode=this.getFocalNodes()[this._focusedNode?1:0];dijit.focus(this._focusedNode);},hasPrevFocalNode:function(){return this._focusedNode!==this.getFocalNodes()[0];},focusPrev:function(){this._focusedNode=this.getFocalNodes()[this._focusedNode?0:1];dijit.focus(this._focusedNode);},getFocalNodes:function(){return this._focalNodes;},_onNodeFocus:function(evt){this._focusedNode=evt.currentTarget;var fnc=this._focusedNode==this.focusNode?"dijitDownArrowButtonFocused":"dijitButtonContentsFocused";dojo.addClass(this._focusedNode,fnc);},_onNodeBlur:function(evt){var fnc=evt.currentTarget==this.focusNode?"dijitDownArrowButtonFocused":"dijitButtonContentsFocused";dojo.removeClass(evt.currentTarget,fnc);},_onBlur:function(){this.inherited(arguments);this._focusedNode=null;}});dojo.declare("dijit.form.ToggleButton",dijit.form.Button,{baseClass:"dijitToggleButton",checked:false,attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{checked:"focusNode"}),_clicked:function(evt){this.attr("checked",!this.checked);},_setCheckedAttr:function(_36c){this.checked=_36c;dojo.attr(this.focusNode||this.domNode,"checked",_36c);dijit.setWaiState(this.focusNode||this.domNode,"pressed",_36c);this._setStateClass();this._handleOnChange(_36c,true);},setChecked:function(_36d){dojo.deprecated("setChecked("+_36d+") is deprecated. Use attr('checked',"+_36d+") instead.","","2.0");this.attr("checked",_36d);},reset:function(){this._hasBeenBlurred=false;this.attr("checked",this.params.checked||false);}});}if(!dojo._hasResource["dijit._editor._Plugin"]){dojo._hasResource["dijit._editor._Plugin"]=true;dojo.provide("dijit._editor._Plugin");dojo.declare("dijit._editor._Plugin",null,{constructor:function(args,node){if(args){dojo.mixin(this,args);}this._connects=[];},editor:null,iconClassPrefix:"dijitEditorIcon",button:null,queryCommand:null,command:"",commandArg:null,useDefaultCommand:true,buttonClass:dijit.form.Button,getLabel:function(key){return this.editor.commands[key];},_initButton:function(_371){if(this.command.length){var _372=this.getLabel(this.command);var _373=this.iconClassPrefix+" "+this.iconClassPrefix+this.command.charAt(0).toUpperCase()+this.command.substr(1);if(!this.button){_371=dojo.mixin({label:_372,showLabel:false,iconClass:_373,dropDown:this.dropDown,tabIndex:"-1"},_371||{});this.button=new this.buttonClass(_371);}}},destroy:function(f){dojo.forEach(this._connects,dojo.disconnect);if(this.dropDown){this.dropDown.destroyRecursive();}},connect:function(o,f,tf){this._connects.push(dojo.connect(o,f,this,tf));},updateState:function(){var e=this.editor,c=this.command,_37a,_37b;if(!e||!e.isLoaded||!c.length){return;}if(this.button){try{_37b=e.queryCommandEnabled(c);if(this.enabled!==_37b){this.enabled=_37b;this.button.attr("disabled",!_37b);}if(typeof this.button.checked=="boolean"){_37a=e.queryCommandState(c);if(this.checked!==_37a){this.checked=_37a;this.button.attr("checked",e.queryCommandState(c));}}}catch(e){}}},setEditor:function(_37c){this.editor=_37c;this._initButton();if(this.command.length&&!this.editor.queryCommandAvailable(this.command)){if(this.button){this.button.domNode.style.display="none";}}if(this.button&&this.useDefaultCommand){this.connect(this.button,"onClick",dojo.hitch(this.editor,"execCommand",this.command,this.commandArg));}this.connect(this.editor,"onNormalizedDisplayChanged","updateState");},setToolbar:function(_37d){if(this.button){_37d.addChild(this.button);}}});}if(!dojo._hasResource["dijit._editor.plugins.EnterKeyHandling"]){dojo._hasResource["dijit._editor.plugins.EnterKeyHandling"]=true;dojo.provide("dijit._editor.plugins.EnterKeyHandling");dojo.declare("dijit._editor.plugins.EnterKeyHandling",dijit._editor._Plugin,{blockNodeForEnter:"BR",constructor:function(args){if(args){dojo.mixin(this,args);}},setEditor:function(_37f){this.editor=_37f;if(this.blockNodeForEnter=="BR"){if(dojo.isIE){_37f.contentDomPreFilters.push(dojo.hitch(this,"regularPsToSingleLinePs"));_37f.contentDomPostFilters.push(dojo.hitch(this,"singleLinePsToRegularPs"));_37f.onLoadDeferred.addCallback(dojo.hitch(this,"_fixNewLineBehaviorForIE"));}else{_37f.onLoadDeferred.addCallback(dojo.hitch(this,function(d){try{this.editor.document.execCommand("insertBrOnReturn",false,true);}catch(e){}return d;}));}}else{if(this.blockNodeForEnter){dojo["require"]("dijit._editor.range");var h=dojo.hitch(this,this.handleEnterKey);_37f.addKeyHandler(13,0,0,h);_37f.addKeyHandler(13,0,1,h);this.connect(this.editor,"onKeyPressed","onKeyPressed");}}},connect:function(o,f,tf){if(!this._connects){this._connects=[];}this._connects.push(dojo.connect(o,f,this,tf));},destroy:function(){dojo.forEach(this._connects,dojo.disconnect);this._connects=[];},onKeyPressed:function(e){if(this._checkListLater){if(dojo.withGlobal(this.editor.window,"isCollapsed",dijit)){var _386=dojo.withGlobal(this.editor.window,"getAncestorElement",dijit._editor.selection,["LI"]);if(!_386){dijit._editor.RichText.prototype.execCommand.call(this.editor,"formatblock",this.blockNodeForEnter);var _387=dojo.withGlobal(this.editor.window,"getAncestorElement",dijit._editor.selection,[this.blockNodeForEnter]);if(_387){_387.innerHTML=this.bogusHtmlContent;if(dojo.isIE){var r=this.editor.document.selection.createRange();r.move("character",-1);r.select();}}else{alert("onKeyPressed: Can not find the new block node");}}else{if(dojo.isMoz){if(_386.parentNode.parentNode.nodeName=="LI"){_386=_386.parentNode.parentNode;}}var fc=_386.firstChild;if(fc&&fc.nodeType==1&&(fc.nodeName=="UL"||fc.nodeName=="OL")){_386.insertBefore(fc.ownerDocument.createTextNode(" "),fc);var _38a=dijit.range.create();_38a.setStart(_386.firstChild,0);var _38b=dijit.range.getSelection(this.editor.window,true);_38b.removeAllRanges();_38b.addRange(_38a);}}}this._checkListLater=false;}if(this._pressedEnterInBlock){if(this._pressedEnterInBlock.previousSibling){this.removeTrailingBr(this._pressedEnterInBlock.previousSibling);}delete this._pressedEnterInBlock;}},bogusHtmlContent:"&nbsp;",blockNodes:/^(?:P|H1|H2|H3|H4|H5|H6|LI)$/,handleEnterKey:function(e){if(!this.blockNodeForEnter){return true;}var _38d,_38e,_38f,doc=this.editor.document,br;if(e.shiftKey||this.blockNodeForEnter=="BR"){var _392=dojo.withGlobal(this.editor.window,"getParentElement",dijit._editor.selection);var _393=dijit.range.getAncestor(_392,this.blockNodes);if(_393){if(!e.shiftKey&&_393.tagName=="LI"){return true;}_38d=dijit.range.getSelection(this.editor.window);_38e=_38d.getRangeAt(0);if(!_38e.collapsed){_38e.deleteContents();}if(dijit.range.atBeginningOfContainer(_393,_38e.startContainer,_38e.startOffset)){if(e.shiftKey){br=doc.createElement("br");_38f=dijit.range.create();_393.insertBefore(br,_393.firstChild);_38f.setStartBefore(br.nextSibling);_38d.removeAllRanges();_38d.addRange(_38f);}else{dojo.place(br,_393,"before");}}else{if(dijit.range.atEndOfContainer(_393,_38e.startContainer,_38e.startOffset)){_38f=dijit.range.create();br=doc.createElement("br");if(e.shiftKey){_393.appendChild(br);_393.appendChild(doc.createTextNode(" "));_38f.setStart(_393.lastChild,0);}else{dojo.place(br,_393,"after");_38f.setStartAfter(_393);}_38d.removeAllRanges();_38d.addRange(_38f);}else{return true;}}}else{dijit._editor.RichText.prototype.execCommand.call(this.editor,"inserthtml","<br>");}return false;}var _394=true;_38d=dijit.range.getSelection(this.editor.window);_38e=_38d.getRangeAt(0);if(!_38e.collapsed){_38e.deleteContents();}var _395=dijit.range.getBlockAncestor(_38e.endContainer,null,this.editor.editNode);var _396=_395.blockNode;if((this._checkListLater=(_396&&(_396.nodeName=="LI"||_396.parentNode.nodeName=="LI")))){if(dojo.isMoz){this._pressedEnterInBlock=_396;}if(/^(?:\s|&nbsp;)$/.test(_396.innerHTML)){_396.innerHTML="";}return true;}if(!_395.blockNode||_395.blockNode===this.editor.editNode){dijit._editor.RichText.prototype.execCommand.call(this.editor,"formatblock",this.blockNodeForEnter);_395={blockNode:dojo.withGlobal(this.editor.window,"getAncestorElement",dijit._editor.selection,[this.blockNodeForEnter]),blockContainer:this.editor.editNode};if(_395.blockNode){if(!(_395.blockNode.textContent||_395.blockNode.innerHTML).replace(/^\s+|\s+$/g,"").length){this.removeTrailingBr(_395.blockNode);return false;}}else{_395.blockNode=this.editor.editNode;}_38d=dijit.range.getSelection(this.editor.window);_38e=_38d.getRangeAt(0);}var _397=doc.createElement(this.blockNodeForEnter);_397.innerHTML=this.bogusHtmlContent;this.removeTrailingBr(_395.blockNode);if(dijit.range.atEndOfContainer(_395.blockNode,_38e.endContainer,_38e.endOffset)){if(_395.blockNode===_395.blockContainer){_395.blockNode.appendChild(_397);}else{dojo.place(_397,_395.blockNode,"after");}_394=false;_38f=dijit.range.create();_38f.setStart(_397,0);_38d.removeAllRanges();_38d.addRange(_38f);if(this.editor.height){_397.scrollIntoView(false);}}else{if(dijit.range.atBeginningOfContainer(_395.blockNode,_38e.startContainer,_38e.startOffset)){dojo.place(_397,_395.blockNode,_395.blockNode===_395.blockContainer?"first":"before");if(_397.nextSibling&&this.editor.height){_397.nextSibling.scrollIntoView(false);}_394=false;}else{if(dojo.isMoz){this._pressedEnterInBlock=_395.blockNode;}}}return _394;},removeTrailingBr:function(_398){var para=/P|DIV|LI/i.test(_398.tagName)?_398:dijit._editor.selection.getParentOfType(_398,["P","DIV","LI"]);if(!para){return;}if(para.lastChild){if((para.childNodes.length>1&&para.lastChild.nodeType==3&&/^[\s\xAD]*$/.test(para.lastChild.nodeValue))||(para.lastChild&&para.lastChild.tagName=="BR")){dojo.destroy(para.lastChild);}}if(!para.childNodes.length){para.innerHTML=this.bogusHtmlContent;}},_fixNewLineBehaviorForIE:function(d){if(this.editor.document.__INSERTED_EDITIOR_NEWLINE_CSS===undefined){var _39b="p{margin:0 !important;}";var _39c=function(_39d,doc,URI){if(!_39d){return null;}if(!doc){doc=document;}var _3a0=doc.createElement("style");_3a0.setAttribute("type","text/css");var head=doc.getElementsByTagName("head")[0];if(!head){return null;}else{head.appendChild(_3a0);}if(_3a0.styleSheet){var _3a2=function(){try{_3a0.styleSheet.cssText=_39d;}catch(e){}};if(_3a0.styleSheet.disabled){setTimeout(_3a2,10);}else{_3a2();}}else{var _3a3=doc.createTextNode(_39d);_3a0.appendChild(_3a3);}return _3a0;};_39c(_39b,this.editor.document);this.editor.document.__INSERTED_EDITIOR_NEWLINE_CSS=true;return d;}return null;},regularPsToSingleLinePs:function(_3a4,_3a5){function _3a6(el){function _3a8(_3a9){var newP=_3a9[0].ownerDocument.createElement("p");_3a9[0].parentNode.insertBefore(newP,_3a9[0]);dojo.forEach(_3a9,function(node){newP.appendChild(node);});};var _3ac=0;var _3ad=[];var _3ae;while(_3ac<el.childNodes.length){_3ae=el.childNodes[_3ac];if(_3ae.nodeType==3||(_3ae.nodeType==1&&_3ae.nodeName!="BR"&&dojo.style(_3ae,"display")!="block")){_3ad.push(_3ae);}else{var _3af=_3ae.nextSibling;if(_3ad.length){_3a8(_3ad);_3ac=(_3ac+1)-_3ad.length;if(_3ae.nodeName=="BR"){dojo.destroy(_3ae);}}_3ad=[];}_3ac++;}if(_3ad.length){_3a8(_3ad);}};function _3b0(el){var _3b2=null;var _3b3=[];var _3b4=el.childNodes.length-1;for(var i=_3b4;i>=0;i--){_3b2=el.childNodes[i];if(_3b2.nodeName=="BR"){var newP=_3b2.ownerDocument.createElement("p");dojo.place(newP,el,"after");if(_3b3.length==0&&i!=_3b4){newP.innerHTML="&nbsp;";}dojo.forEach(_3b3,function(node){newP.appendChild(node);});dojo.destroy(_3b2);_3b3=[];}else{_3b3.unshift(_3b2);}}};var _3b8=[];var ps=_3a4.getElementsByTagName("p");dojo.forEach(ps,function(p){_3b8.push(p);});dojo.forEach(_3b8,function(p){if((p.previousSibling)&&(p.previousSibling.nodeName=="P"||dojo.style(p.previousSibling,"display")!="block")){var newP=p.parentNode.insertBefore(this.document.createElement("p"),p);newP.innerHTML=_3a5?"":"&nbsp;";}_3b0(p);},this.editor);_3a6(_3a4);return _3a4;},singleLinePsToRegularPs:function(_3bd){function _3be(node){var ps=node.getElementsByTagName("p");var _3c1=[];for(var i=0;i<ps.length;i++){var p=ps[i];var _3c4=false;for(var k=0;k<_3c1.length;k++){if(_3c1[k]===p.parentNode){_3c4=true;break;}}if(!_3c4){_3c1.push(p.parentNode);}}return _3c1;};function _3c6(node){if(node.nodeType!=1||node.tagName!="P"){return dojo.style(node,"display")=="block";}else{if(!node.childNodes.length||node.innerHTML=="&nbsp;"){return true;}}return false;};var _3c8=_3be(_3bd);for(var i=0;i<_3c8.length;i++){var _3ca=_3c8[i];var _3cb=null;var node=_3ca.firstChild;var _3cd=null;while(node){if(node.nodeType!="1"||node.tagName!="P"){_3cb=null;}else{if(_3c6(node)){_3cd=node;_3cb=null;}else{if(_3cb==null){_3cb=node;}else{if((!_3cb.lastChild||_3cb.lastChild.nodeName!="BR")&&(node.firstChild)&&(node.firstChild.nodeName!="BR")){_3cb.appendChild(this.editor.document.createElement("br"));}while(node.firstChild){_3cb.appendChild(node.firstChild);}_3cd=node;}}}node=node.nextSibling;if(_3cd){dojo.destroy(_3cd);_3cd=null;}}}return _3bd;}});}if(!dojo._hasResource["dijit.Editor"]){dojo._hasResource["dijit.Editor"]=true;dojo.provide("dijit.Editor");dojo.declare("dijit.Editor",dijit._editor.RichText,{plugins:null,extraPlugins:null,constructor:function(){if(!dojo.isArray(this.plugins)){this.plugins=["undo","redo","|","cut","copy","paste","|","bold","italic","underline","strikethrough","|","insertOrderedList","insertUnorderedList","indent","outdent","|","justifyLeft","justifyRight","justifyCenter","justifyFull","dijit._editor.plugins.EnterKeyHandling"];}this._plugins=[];this._editInterval=this.editActionInterval*1000;if(dojo.isIE){this.events.push("onBeforeDeactivate");}},postCreate:function(){if(this.customUndo){dojo["require"]("dijit._editor.range");this._steps=this._steps.slice(0);this._undoedSteps=this._undoedSteps.slice(0);}if(dojo.isArray(this.extraPlugins)){this.plugins=this.plugins.concat(this.extraPlugins);}this.inherited(arguments);this.commands=dojo.i18n.getLocalization("dijit._editor","commands",this.lang);if(!this.toolbar){this.toolbar=new dijit.Toolbar({});dojo.place(this.toolbar.domNode,this.editingArea,"before");}dojo.forEach(this.plugins,this.addPlugin,this);this.onNormalizedDisplayChanged();this.toolbar.startup();},destroy:function(){dojo.forEach(this._plugins,function(p){if(p&&p.destroy){p.destroy();}});this._plugins=[];this.toolbar.destroyRecursive();delete this.toolbar;this.inherited(arguments);},addPlugin:function(_3cf,_3d0){var args=dojo.isString(_3cf)?{name:_3cf}:_3cf;if(!args.setEditor){var o={"args":args,"plugin":null,"editor":this};dojo.publish(dijit._scopeName+".Editor.getPlugin",[o]);if(!o.plugin){var pc=dojo.getObject(args.name);if(pc){o.plugin=new pc(args);}}if(!o.plugin){console.warn("Cannot find plugin",_3cf);return;}_3cf=o.plugin;}if(arguments.length>1){this._plugins[_3d0]=_3cf;}else{this._plugins.push(_3cf);}_3cf.setEditor(this);if(dojo.isFunction(_3cf.setToolbar)){_3cf.setToolbar(this.toolbar);}},startup:function(){},resize:function(size){dijit.layout._LayoutWidget.prototype.resize.apply(this,arguments);},layout:function(){this.editingArea.style.height=(this._contentBox.h-dojo.marginBox(this.toolbar.domNode).h)+"px";if(this.iframe){this.iframe.style.height="100%";}this._layoutMode=true;},_onIEMouseDown:function(e){delete this._savedSelection;if(e.target.tagName=="BODY"){setTimeout(dojo.hitch(this,"placeCursorAtEnd"),0);}this.inherited(arguments);},onBeforeDeactivate:function(e){if(this.customUndo){this.endEditing(true);}this._saveSelection();},customUndo:dojo.isIE,editActionInterval:3,beginEditing:function(cmd){if(!this._inEditing){this._inEditing=true;this._beginEditing(cmd);}if(this.editActionInterval>0){if(this._editTimer){clearTimeout(this._editTimer);}this._editTimer=setTimeout(dojo.hitch(this,this.endEditing),this._editInterval);}},_steps:[],_undoedSteps:[],execCommand:function(cmd){if(this.customUndo&&(cmd=="undo"||cmd=="redo")){return this[cmd]();}else{if(this.customUndo){this.endEditing();this._beginEditing();}try{var r=this.inherited("execCommand",arguments);if(dojo.isWebKit&&cmd=="paste"&&!r){throw {code:1011};}}catch(e){if(e.code==1011&&/copy|cut|paste/.test(cmd)){var sub=dojo.string.substitute,_3db={cut:"X",copy:"C",paste:"V"},_3dc=navigator.userAgent.indexOf("Macintosh")!=-1;alert(sub(this.commands.systemShortcut,[this.commands[cmd],sub(this.commands[_3dc?"appleKey":"ctrlKey"],[_3db[cmd]])]));}r=false;}if(this.customUndo){this._endEditing();}return r;}},queryCommandEnabled:function(cmd){if(this.customUndo&&(cmd=="undo"||cmd=="redo")){return cmd=="undo"?(this._steps.length>1):(this._undoedSteps.length>0);}else{return this.inherited("queryCommandEnabled",arguments);}},focus:function(){var _3de=0;if(this._savedSelection&&dojo.isIE){_3de=dijit._curFocus!=this.editNode;}this.inherited(arguments);if(_3de){this._restoreSelection();}},_moveToBookmark:function(b){var _3e0=b;if(dojo.isIE){if(dojo.isArray(b)){_3e0=[];dojo.forEach(b,function(n){_3e0.push(dijit.range.getNode(n,this.editNode));},this);}}else{var r=dijit.range.create();r.setStart(dijit.range.getNode(b.startContainer,this.editNode),b.startOffset);r.setEnd(dijit.range.getNode(b.endContainer,this.editNode),b.endOffset);_3e0=r;}dojo.withGlobal(this.window,"moveToBookmark",dijit,[_3e0]);},_changeToStep:function(from,to){this.setValue(to.text);var b=to.bookmark;if(!b){return;}this._moveToBookmark(b);},undo:function(){this.endEditing(true);var s=this._steps.pop();if(this._steps.length>0){this.focus();this._changeToStep(s,this._steps[this._steps.length-1]);this._undoedSteps.push(s);this.onDisplayChanged();return true;}return false;},redo:function(){this.endEditing(true);var s=this._undoedSteps.pop();if(s&&this._steps.length>0){this.focus();this._changeToStep(this._steps[this._steps.length-1],s);this._steps.push(s);this.onDisplayChanged();return true;}return false;},endEditing:function(_3e8){if(this._editTimer){clearTimeout(this._editTimer);}if(this._inEditing){this._endEditing(_3e8);this._inEditing=false;}},_getBookmark:function(){var b=dojo.withGlobal(this.window,dijit.getBookmark);var tmp=[];if(dojo.isIE){if(dojo.isArray(b)){dojo.forEach(b,function(n){tmp.push(dijit.range.getIndex(n,this.editNode).o);},this);b=tmp;}}else{tmp=dijit.range.getIndex(b.startContainer,this.editNode).o;b={startContainer:tmp,startOffset:b.startOffset,endContainer:b.endContainer===b.startContainer?tmp:dijit.range.getIndex(b.endContainer,this.editNode).o,endOffset:b.endOffset};}return b;},_beginEditing:function(cmd){if(this._steps.length===0){this._steps.push({"text":this.savedContent,"bookmark":this._getBookmark()});}},_endEditing:function(_3ed){var v=this.getValue(true);this._undoedSteps=[];this._steps.push({text:v,bookmark:this._getBookmark()});},onKeyDown:function(e){if(!dojo.isIE&&!this.iframe&&e.keyCode==dojo.keys.TAB&&!this.tabIndent){this._saveSelection();}if(!this.customUndo){this.inherited(arguments);return;}var k=e.keyCode,ks=dojo.keys;if(e.ctrlKey&&!e.altKey){if(k==90||k==122){dojo.stopEvent(e);this.undo();return;}else{if(k==89||k==121){dojo.stopEvent(e);this.redo();return;}}}this.inherited(arguments);switch(k){case ks.ENTER:case ks.BACKSPACE:case ks.DELETE:this.beginEditing();break;case 88:case 86:if(e.ctrlKey&&!e.altKey&&!e.metaKey){this.endEditing();if(e.keyCode==88){this.beginEditing("cut");setTimeout(dojo.hitch(this,this.endEditing),1);}else{this.beginEditing("paste");setTimeout(dojo.hitch(this,this.endEditing),1);}break;}default:if(!e.ctrlKey&&!e.altKey&&!e.metaKey&&(e.keyCode<dojo.keys.F1||e.keyCode>dojo.keys.F15)){this.beginEditing();break;}case ks.ALT:this.endEditing();break;case ks.UP_ARROW:case ks.DOWN_ARROW:case ks.LEFT_ARROW:case ks.RIGHT_ARROW:case ks.HOME:case ks.END:case ks.PAGE_UP:case ks.PAGE_DOWN:this.endEditing(true);break;case ks.CTRL:case ks.SHIFT:case ks.TAB:break;}},_onBlur:function(){this.inherited("_onBlur",arguments);this.endEditing(true);},_saveSelection:function(){this._savedSelection=this._getBookmark();},_restoreSelection:function(){if(this._savedSelection){this._moveToBookmark(this._savedSelection);delete this._savedSelection;}},_onFocus:function(){setTimeout(dojo.hitch(this,"_restoreSelection"),0);this.inherited(arguments);},onClick:function(){this.endEditing(true);this.inherited(arguments);}});dojo.subscribe(dijit._scopeName+".Editor.getPlugin",null,function(o){if(o.plugin){return;}var args=o.args,p;var _p=dijit._editor._Plugin;var name=args.name;switch(name){case "undo":case "redo":case "cut":case "copy":case "paste":case "insertOrderedList":case "insertUnorderedList":case "indent":case "outdent":case "justifyCenter":case "justifyFull":case "justifyLeft":case "justifyRight":case "delete":case "selectAll":case "removeFormat":case "unlink":case "insertHorizontalRule":p=new _p({command:name});break;case "bold":case "italic":case "underline":case "strikethrough":case "subscript":case "superscript":p=new _p({buttonClass:dijit.form.ToggleButton,command:name});break;case "|":p=new _p({button:new dijit.ToolbarSeparator()});}o.plugin=p;});}if(!dojo._hasResource["dijit.MenuItem"]){dojo._hasResource["dijit.MenuItem"]=true;dojo.provide("dijit.MenuItem");dojo.declare("dijit.MenuItem",[dijit._Widget,dijit._Templated,dijit._Contained],{templateString:"<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" waiRole=\"menuitem\" tabIndex=\"-1\"\n\t\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<td class=\"dijitReset\" waiRole=\"presentation\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuItemIcon\" dojoAttachPoint=\"iconNode\">\n\t</td>\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" dojoAttachPoint=\"containerNode\"></td>\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" dojoAttachPoint=\"accelKeyNode\"></td>\n\t<td class=\"dijitReset dijitMenuArrowCell\" waiRole=\"presentation\">\n\t\t<div dojoAttachPoint=\"arrowWrapper\" style=\"visibility: hidden\">\n\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuExpand\">\n\t\t\t<span class=\"dijitMenuExpandA11y\">+</span>\n\t\t</div>\n\t</td>\n</tr>\n",attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{label:{node:"containerNode",type:"innerHTML"},iconClass:{node:"iconNode",type:"class"}}),label:"",iconClass:"",accelKey:"",disabled:false,_fillContent:function(_3f7){if(_3f7&&!("label" in this.params)){this.attr("label",_3f7.innerHTML);}},postCreate:function(){dojo.setSelectable(this.domNode,false);dojo.attr(this.containerNode,"id",this.id+"_text");dijit.setWaiState(this.domNode,"labelledby",this.id+"_text");},_onHover:function(){dojo.addClass(this.domNode,"dijitMenuItemHover");this.getParent().onItemHover(this);},_onUnhover:function(){dojo.removeClass(this.domNode,"dijitMenuItemHover");this.getParent().onItemUnhover(this);},_onClick:function(evt){this.getParent().onItemClick(this,evt);dojo.stopEvent(evt);},onClick:function(evt){},focus:function(){try{dijit.focus(this.focusNode);}catch(e){}},_onFocus:function(){this._setSelected(true);},_setSelected:function(_3fa){dojo.toggleClass(this.domNode,"dijitMenuItemSelected",_3fa);},setLabel:function(_3fb){dojo.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use attr('label', ...) instead.","","2.0");this.attr("label",_3fb);},setDisabled:function(_3fc){dojo.deprecated("dijit.Menu.setDisabled() is deprecated.  Use attr('disabled', bool) instead.","","2.0");this.attr("disabled",_3fc);},_setDisabledAttr:function(_3fd){this.disabled=_3fd;dojo[_3fd?"addClass":"removeClass"](this.domNode,"dijitMenuItemDisabled");dijit.setWaiState(this.focusNode,"disabled",_3fd?"true":"false");},_setAccelKeyAttr:function(_3fe){this.accelKey=_3fe;this.accelKeyNode.style.display=_3fe?"":"none";this.accelKeyNode.innerHTML=_3fe;dojo.attr(this.containerNode,"colSpan",_3fe?"1":"2");}});}if(!dojo._hasResource["dijit.PopupMenuItem"]){dojo._hasResource["dijit.PopupMenuItem"]=true;dojo.provide("dijit.PopupMenuItem");dojo.declare("dijit.PopupMenuItem",dijit.MenuItem,{_fillContent:function(){if(this.srcNodeRef){var _3ff=dojo.query("*",this.srcNodeRef);dijit.PopupMenuItem.superclass._fillContent.call(this,_3ff[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}this.inherited(arguments);if(!this.popup){var node=dojo.query("[widgetId]",this.dropDownContainer)[0];this.popup=dijit.byNode(node);}dojo.body().appendChild(this.popup.domNode);this.popup.domNode.style.display="none";if(this.arrowWrapper){dojo.style(this.arrowWrapper,"visibility","");}dijit.setWaiState(this.focusNode,"haspopup","true");},destroyDescendants:function(){if(this.popup){this.popup.destroyRecursive();delete this.popup;}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.CheckedMenuItem"]){dojo._hasResource["dijit.CheckedMenuItem"]=true;dojo.provide("dijit.CheckedMenuItem");dojo.declare("dijit.CheckedMenuItem",dijit.MenuItem,{templateString:"<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" waiRole=\"menuitemcheckbox\" tabIndex=\"-1\"\n\t\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<td class=\"dijitReset\" waiRole=\"presentation\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuItemIcon dijitCheckedMenuItemIcon\" dojoAttachPoint=\"iconNode\">\n\t\t<span class=\"dijitCheckedMenuItemIconChar\">&#10003;</span>\n\t</td>\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" dojoAttachPoint=\"containerNode,labelNode\"></td>\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" dojoAttachPoint=\"accelKeyNode\"></td>\n\t<td class=\"dijitReset dijitMenuArrowCell\" waiRole=\"presentation\">\n\t</td>\n</tr>\n",checked:false,_setCheckedAttr:function(_401){dojo.toggleClass(this.domNode,"dijitCheckedMenuItemChecked",_401);dijit.setWaiState(this.domNode,"checked",_401);this.checked=_401;},onChange:function(_402){},_onClick:function(e){if(!this.disabled){this.attr("checked",!this.checked);this.onChange(this.checked);}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.MenuSeparator"]){dojo._hasResource["dijit.MenuSeparator"]=true;dojo.provide("dijit.MenuSeparator");dojo.declare("dijit.MenuSeparator",[dijit._Widget,dijit._Templated,dijit._Contained],{templateString:"<tr class=\"dijitMenuSeparator\">\n\t<td colspan=\"4\">\n\t\t<div class=\"dijitMenuSeparatorTop\"></div>\n\t\t<div class=\"dijitMenuSeparatorBottom\"></div>\n\t</td>\n</tr>\n",postCreate:function(){dojo.setSelectable(this.domNode,false);},isFocusable:function(){return false;}});}if(!dojo._hasResource["dijit.Menu"]){dojo._hasResource["dijit.Menu"]=true;dojo.provide("dijit.Menu");dojo.declare("dijit._MenuBase",[dijit._Widget,dijit._Templated,dijit._KeyNavContainer],{parentMenu:null,popupDelay:500,startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_404){_404.startup();});this.startupKeyNavChildren();this.inherited(arguments);},onExecute:function(){},onCancel:function(_405){},_moveToPopup:function(evt){if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled){this.focusedChild._onClick(evt);}else{var _407=this._getTopMenu();if(_407&&_407._isMenuBar){_407.focusNext();}}},onItemHover:function(item){if(this.isActive){this.focusChild(item);if(this.focusedChild.popup&&!this.focusedChild.disabled&&!this.hover_timer){this.hover_timer=setTimeout(dojo.hitch(this,"_openPopup"),this.popupDelay);}}},_onChildBlur:function(item){item._setSelected(false);dijit.popup.close(item.popup);this._stopPopupTimer();},onItemUnhover:function(item){if(this.isActive){this._stopPopupTimer();}},_stopPopupTimer:function(){if(this.hover_timer){clearTimeout(this.hover_timer);this.hover_timer=null;}},_getTopMenu:function(){for(var top=this;top.parentMenu;top=top.parentMenu){}return top;},onItemClick:function(item,evt){if(item.disabled){return false;}this.focusChild(item);if(item.popup){if(!this.is_open){this._openPopup();}}else{this.onExecute();item.onClick(evt);}},_openPopup:function(){this._stopPopupTimer();var _40e=this.focusedChild;var _40f=_40e.popup;if(_40f.isShowingNow){return;}_40f.parentMenu=this;var self=this;dijit.popup.open({parent:this,popup:_40f,around:_40e.domNode,orient:this._orient||(this.isLeftToRight()?{"TR":"TL","TL":"TR"}:{"TL":"TR","TR":"TL"}),onCancel:function(){dijit.popup.close(_40f);_40e.focus();self.currentPopup=null;},onExecute:dojo.hitch(this,"_onDescendantExecute")});this.currentPopup=_40f;if(_40f.focus){setTimeout(dojo.hitch(_40f,"focus"),0);}},onOpen:function(e){this.isShowingNow=true;},onClose:function(){this._stopPopupTimer();this.parentMenu=null;this.isShowingNow=false;this.currentPopup=null;if(this.focusedChild){this._onChildBlur(this.focusedChild);this.focusedChild=null;}},_onFocus:function(){this.isActive=true;dojo.addClass(this.domNode,"dijitMenuActive");dojo.removeClass(this.domNode,"dijitMenuPassive");this.inherited(arguments);},_onBlur:function(){this.isActive=false;dojo.removeClass(this.domNode,"dijitMenuActive");dojo.addClass(this.domNode,"dijitMenuPassive");this.onClose();this.inherited(arguments);},_onDescendantExecute:function(){this.onClose();}});dojo.declare("dijit.Menu",dijit._MenuBase,{constructor:function(){this._bindings=[];},templateString:"<table class=\"dijit dijitMenu dijitMenuPassive dijitReset dijitMenuTable\" waiRole=\"menu\" tabIndex=\"${tabIndex}\" dojoAttachEvent=\"onkeypress:_onKeyPress\">\n\t<tbody class=\"dijitReset\" dojoAttachPoint=\"containerNode\"></tbody>\n</table>\n",targetNodeIds:[],contextMenuForWindow:false,leftClickToOpen:false,_contextMenuWithMouse:false,postCreate:function(){if(this.contextMenuForWindow){this.bindDomNode(dojo.body());}else{dojo.forEach(this.targetNodeIds,this.bindDomNode,this);}var k=dojo.keys,l=this.isLeftToRight();this._openSubMenuKey=l?k.RIGHT_ARROW:k.LEFT_ARROW;this._closeSubMenuKey=l?k.LEFT_ARROW:k.RIGHT_ARROW;this.connectKeyNavHandlers([k.UP_ARROW],[k.DOWN_ARROW]);},_onKeyPress:function(evt){if(evt.ctrlKey||evt.altKey){return;}switch(evt.charOrCode){case this._openSubMenuKey:this._moveToPopup(evt);dojo.stopEvent(evt);break;case this._closeSubMenuKey:if(this.parentMenu){if(this.parentMenu._isMenuBar){this.parentMenu.focusPrev();}else{this.onCancel(false);}}else{dojo.stopEvent(evt);}break;}},_iframeContentWindow:function(_415){var win=dijit.getDocumentWindow(dijit.Menu._iframeContentDocument(_415))||dijit.Menu._iframeContentDocument(_415)["__parent__"]||(_415.name&&dojo.doc.frames[_415.name])||null;return win;},_iframeContentDocument:function(_417){var doc=_417.contentDocument||(_417.contentWindow&&_417.contentWindow.document)||(_417.name&&dojo.doc.frames[_417.name]&&dojo.doc.frames[_417.name].document)||null;return doc;},bindDomNode:function(node){node=dojo.byId(node);var win=dijit.getDocumentWindow(node.ownerDocument);if(node.tagName.toLowerCase()=="iframe"){win=this._iframeContentWindow(node);node=dojo.withGlobal(win,dojo.body);}var cn=(node==dojo.body()?dojo.doc:node);node[this.id]=this._bindings.push([dojo.connect(cn,(this.leftClickToOpen)?"onclick":"oncontextmenu",this,"_openMyself"),dojo.connect(cn,"onkeydown",this,"_contextKey"),dojo.connect(cn,"onmousedown",this,"_contextMouse")]);},unBindDomNode:function(_41c){var node=dojo.byId(_41c);if(node){var bid=node[this.id]-1,b=this._bindings[bid];dojo.forEach(b,dojo.disconnect);delete this._bindings[bid];}},_contextKey:function(e){this._contextMenuWithMouse=false;if(e.keyCode==dojo.keys.F10){dojo.stopEvent(e);if(e.shiftKey&&e.type=="keydown"){var _e={target:e.target,pageX:e.pageX,pageY:e.pageY};_e.preventDefault=_e.stopPropagation=function(){};window.setTimeout(dojo.hitch(this,function(){this._openMyself(_e);}),1);}}},_contextMouse:function(e){this._contextMenuWithMouse=true;},_openMyself:function(e){if(this.leftClickToOpen&&e.button>0){return;}dojo.stopEvent(e);var x,y;if(dojo.isSafari||this._contextMenuWithMouse){x=e.pageX;y=e.pageY;}else{var _426=dojo.coords(e.target,true);x=_426.x+10;y=_426.y+10;}var self=this;var _428=dijit.getFocus(this);function _429(){dijit.focus(_428);dijit.popup.close(self);};dijit.popup.open({popup:this,x:x,y:y,onExecute:_429,onCancel:_429,orient:this.isLeftToRight()?"L":"R"});this.focus();this._onBlur=function(){this.inherited("_onBlur",arguments);dijit.popup.close(this);};},uninitialize:function(){dojo.forEach(this.targetNodeIds,this.unBindDomNode,this);this.inherited(arguments);}});}if(!dojo._hasResource["dijit.MenuBar"]){dojo._hasResource["dijit.MenuBar"]=true;dojo.provide("dijit.MenuBar");dojo.declare("dijit.MenuBar",dijit._MenuBase,{templateString:"<div class=\"dijitMenuBar dijitMenuPassive\" dojoAttachPoint=\"containerNode\"  waiRole=\"menubar\" tabIndex=\"${tabIndex}\" dojoAttachEvent=\"onkeypress: _onKeyPress\"></div>\n",_isMenuBar:true,constructor:function(){this._orient=this.isLeftToRight()?{BL:"TL"}:{BR:"TR"};},postCreate:function(){var k=dojo.keys,l=this.isLeftToRight();this.connectKeyNavHandlers(l?[k.LEFT_ARROW]:[k.RIGHT_ARROW],l?[k.RIGHT_ARROW]:[k.LEFT_ARROW]);},focusChild:function(item){var _42d=this.focusedChild,_42e=_42d&&_42d.popup&&_42d.popup.isShowingNow;this.inherited(arguments);if(_42e&&!item.disabled){this._openPopup();}},_onKeyPress:function(evt){if(evt.ctrlKey||evt.altKey){return;}switch(evt.charOrCode){case dojo.keys.DOWN_ARROW:this._moveToPopup(evt);dojo.stopEvent(evt);}}});}if(!dojo._hasResource["dijit.MenuBarItem"]){dojo._hasResource["dijit.MenuBarItem"]=true;dojo.provide("dijit.MenuBarItem");dojo.declare("dijit._MenuBarItemMixin",null,{templateString:"<div class=\"dijitReset dijitInline dijitMenuItem dijitMenuItemLabel\" dojoAttachPoint=\"focusNode\" waiRole=\"menuitem\" tabIndex=\"-1\"'\n\t\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<span dojoAttachPoint=\"containerNode\"></span>\n</div>\n",attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{label:{node:"containerNode",type:"innerHTML"}})});dojo.declare("dijit.MenuBarItem",[dijit.MenuItem,dijit._MenuBarItemMixin],{});}if(!dojo._hasResource["dijit.PopupMenuBarItem"]){dojo._hasResource["dijit.PopupMenuBarItem"]=true;dojo.provide("dijit.PopupMenuBarItem");dojo.declare("dijit.PopupMenuBarItem",[dijit.PopupMenuItem,dijit._MenuBarItemMixin],{});}if(!dojo._hasResource["dojo.regexp"]){dojo._hasResource["dojo.regexp"]=true;dojo.provide("dojo.regexp");dojo.regexp.escapeString=function(str,_431){return str.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(ch){if(_431&&_431.indexOf(ch)!=-1){return ch;}return "\\"+ch;});};dojo.regexp.buildGroupRE=function(arr,re,_435){if(!(arr instanceof Array)){return re(arr);}var b=[];for(var i=0;i<arr.length;i++){b.push(re(arr[i]));}return dojo.regexp.group(b.join("|"),_435);};dojo.regexp.group=function(_438,_439){return "("+(_439?"?:":"")+_438+")";};}if(!dojo._hasResource["dojo.number"]){dojo._hasResource["dojo.number"]=true;dojo.provide("dojo.number");dojo.number.format=function(_43a,_43b){_43b=dojo.mixin({},_43b||{});var _43c=dojo.i18n.normalizeLocale(_43b.locale);var _43d=dojo.i18n.getLocalization("dojo.cldr","number",_43c);_43b.customs=_43d;var _43e=_43b.pattern||_43d[(_43b.type||"decimal")+"Format"];if(isNaN(_43a)||Math.abs(_43a)==Infinity){return null;}return dojo.number._applyPattern(_43a,_43e,_43b);};dojo.number._numberPatternRE=/[#0,]*[#0](?:\.0*#*)?/;dojo.number._applyPattern=function(_43f,_440,_441){_441=_441||{};var _442=_441.customs.group;var _443=_441.customs.decimal;var _444=_440.split(";");var _445=_444[0];_440=_444[(_43f<0)?1:0]||("-"+_445);if(_440.indexOf("%")!=-1){_43f*=100;}else{if(_440.indexOf("‰")!=-1){_43f*=1000;}else{if(_440.indexOf("¤")!=-1){_442=_441.customs.currencyGroup||_442;_443=_441.customs.currencyDecimal||_443;_440=_440.replace(/\u00a4{1,3}/,function(_446){var prop=["symbol","currency","displayName"][_446.length-1];return _441[prop]||_441.currency||"";});}else{if(_440.indexOf("E")!=-1){throw new Error("exponential notation not supported");}}}}var _448=dojo.number._numberPatternRE;var _449=_445.match(_448);if(!_449){throw new Error("unable to find a number expression in pattern: "+_440);}if(_441.fractional===false){_441.places=0;}return _440.replace(_448,dojo.number._formatAbsolute(_43f,_449[0],{decimal:_443,group:_442,places:_441.places,round:_441.round}));};dojo.number.round=function(_44a,_44b,_44c){var _44d=10/(_44c||10);return (_44d*+_44a).toFixed(_44b)/_44d;};if((0.9).toFixed()==0){(function(){var _44e=dojo.number.round;dojo.number.round=function(v,p,m){var d=Math.pow(10,-p||0),a=Math.abs(v);if(!v||a>=d||a*Math.pow(10,p+1)<5){d=0;}return _44e(v,p,m)+(v>0?d:-d);};})();}dojo.number._formatAbsolute=function(_454,_455,_456){_456=_456||{};if(_456.places===true){_456.places=0;}if(_456.places===Infinity){_456.places=6;}var _457=_455.split(".");var _458=(_456.places>=0)?_456.places:(_457[1]&&_457[1].length)||0;if(!(_456.round<0)){_454=dojo.number.round(_454,_458,_456.round);}var _459=String(Math.abs(_454)).split(".");var _45a=_459[1]||"";if(_456.places){var _45b=dojo.isString(_456.places)&&_456.places.indexOf(",");if(_45b){_456.places=_456.places.substring(_45b+1);}_459[1]=dojo.string.pad(_45a.substr(0,_456.places),_456.places,"0",true);}else{if(_457[1]&&_456.places!==0){var pad=_457[1].lastIndexOf("0")+1;if(pad>_45a.length){_459[1]=dojo.string.pad(_45a,pad,"0",true);}var _45d=_457[1].length;if(_45d<_45a.length){_459[1]=_45a.substr(0,_45d);}}else{if(_459[1]){_459.pop();}}}var _45e=_457[0].replace(",","");pad=_45e.indexOf("0");if(pad!=-1){pad=_45e.length-pad;if(pad>_459[0].length){_459[0]=dojo.string.pad(_459[0],pad);}if(_45e.indexOf("#")==-1){_459[0]=_459[0].substr(_459[0].length-pad);}}var _45f=_457[0].lastIndexOf(",");var _460,_461;if(_45f!=-1){_460=_457[0].length-_45f-1;var _462=_457[0].substr(0,_45f);_45f=_462.lastIndexOf(",");if(_45f!=-1){_461=_462.length-_45f-1;}}var _463=[];for(var _464=_459[0];_464;){var off=_464.length-_460;_463.push((off>0)?_464.substr(off):_464);_464=(off>0)?_464.slice(0,off):"";if(_461){_460=_461;delete _461;}}_459[0]=_463.reverse().join(_456.group||",");return _459.join(_456.decimal||".");};dojo.number.regexp=function(_466){return dojo.number._parseInfo(_466).regexp;};dojo.number._parseInfo=function(_467){_467=_467||{};var _468=dojo.i18n.normalizeLocale(_467.locale);var _469=dojo.i18n.getLocalization("dojo.cldr","number",_468);var _46a=_467.pattern||_469[(_467.type||"decimal")+"Format"];var _46b=_469.group;var _46c=_469.decimal;var _46d=1;if(_46a.indexOf("%")!=-1){_46d/=100;}else{if(_46a.indexOf("‰")!=-1){_46d/=1000;}else{var _46e=_46a.indexOf("¤")!=-1;if(_46e){_46b=_469.currencyGroup||_46b;_46c=_469.currencyDecimal||_46c;}}}var _46f=_46a.split(";");if(_46f.length==1){_46f.push("-"+_46f[0]);}var re=dojo.regexp.buildGroupRE(_46f,function(_471){_471="(?:"+dojo.regexp.escapeString(_471,".")+")";return _471.replace(dojo.number._numberPatternRE,function(_472){var _473={signed:false,separator:_467.strict?_46b:[_46b,""],fractional:_467.fractional,decimal:_46c,exponent:false};var _474=_472.split(".");var _475=_467.places;if(_474.length==1||_475===0){_473.fractional=false;}else{if(_475===undefined){_475=_467.pattern?_474[1].lastIndexOf("0")+1:Infinity;}if(_475&&_467.fractional==undefined){_473.fractional=true;}if(!_467.places&&(_475<_474[1].length)){_475+=","+_474[1].length;}_473.places=_475;}var _476=_474[0].split(",");if(_476.length>1){_473.groupSize=_476.pop().length;if(_476.length>1){_473.groupSize2=_476.pop().length;}}return "("+dojo.number._realNumberRegexp(_473)+")";});},true);if(_46e){re=re.replace(/([\s\xa0]*)(\u00a4{1,3})([\s\xa0]*)/g,function(_477,_478,_479,_47a){var prop=["symbol","currency","displayName"][_479.length-1];var _47c=dojo.regexp.escapeString(_467[prop]||_467.currency||"");_478=_478?"[\\s\\xa0]":"";_47a=_47a?"[\\s\\xa0]":"";if(!_467.strict){if(_478){_478+="*";}if(_47a){_47a+="*";}return "(?:"+_478+_47c+_47a+")?";}return _478+_47c+_47a;});}return {regexp:re.replace(/[\xa0 ]/g,"[\\s\\xa0]"),group:_46b,decimal:_46c,factor:_46d};};dojo.number.parse=function(_47d,_47e){var info=dojo.number._parseInfo(_47e);var _480=(new RegExp("^"+info.regexp+"$")).exec(_47d);if(!_480){return NaN;}var _481=_480[1];if(!_480[1]){if(!_480[2]){return NaN;}_481=_480[2];info.factor*=-1;}_481=_481.replace(new RegExp("["+info.group+"\\s\\xa0"+"]","g"),"").replace(info.decimal,".");return _481*info.factor;};dojo.number._realNumberRegexp=function(_482){_482=_482||{};if(!("places" in _482)){_482.places=Infinity;}if(typeof _482.decimal!="string"){_482.decimal=".";}if(!("fractional" in _482)||/^0/.test(_482.places)){_482.fractional=[true,false];}if(!("exponent" in _482)){_482.exponent=[true,false];}if(!("eSigned" in _482)){_482.eSigned=[true,false];}var _483=dojo.number._integerRegexp(_482);var _484=dojo.regexp.buildGroupRE(_482.fractional,function(q){var re="";if(q&&(_482.places!==0)){re="\\"+_482.decimal;if(_482.places==Infinity){re="(?:"+re+"\\d+)?";}else{re+="\\d{"+_482.places+"}";}}return re;},true);var _487=dojo.regexp.buildGroupRE(_482.exponent,function(q){if(q){return "([eE]"+dojo.number._integerRegexp({signed:_482.eSigned})+")";}return "";});var _489=_483+_484;if(_484){_489="(?:(?:"+_489+")|(?:"+_484+"))";}return _489+_487;};dojo.number._integerRegexp=function(_48a){_48a=_48a||{};if(!("signed" in _48a)){_48a.signed=[true,false];}if(!("separator" in _48a)){_48a.separator="";}else{if(!("groupSize" in _48a)){_48a.groupSize=3;}}var _48b=dojo.regexp.buildGroupRE(_48a.signed,function(q){return q?"[-+]":"";},true);var _48d=dojo.regexp.buildGroupRE(_48a.separator,function(sep){if(!sep){return "(?:\\d+)";}sep=dojo.regexp.escapeString(sep);if(sep==" "){sep="\\s";}else{if(sep==" "){sep="\\s\\xa0";}}var grp=_48a.groupSize,grp2=_48a.groupSize2;if(grp2){var _491="(?:0|[1-9]\\d{0,"+(grp2-1)+"}(?:["+sep+"]\\d{"+grp2+"})*["+sep+"]\\d{"+grp+"})";return ((grp-grp2)>0)?"(?:"+_491+"|(?:0|[1-9]\\d{0,"+(grp-1)+"}))":_491;}return "(?:0|[1-9]\\d{0,"+(grp-1)+"}(?:["+sep+"]\\d{"+grp+"})*)";},true);return _48b+_48d;};}if(!dojo._hasResource["dijit.ProgressBar"]){dojo._hasResource["dijit.ProgressBar"]=true;dojo.provide("dijit.ProgressBar");dojo.declare("dijit.ProgressBar",[dijit._Widget,dijit._Templated],{progress:"0",maximum:100,places:0,indeterminate:false,templateString:"<div class=\"dijitProgressBar dijitProgressBarEmpty\"\n\t><div waiRole=\"progressbar\" tabindex=\"0\" dojoAttachPoint=\"internalProgress\" class=\"dijitProgressBarFull\"\n\t\t><div class=\"dijitProgressBarTile\"></div\n\t\t><span style=\"visibility:hidden\">&nbsp;</span\n\t></div\n\t><div dojoAttachPoint=\"label\" class=\"dijitProgressBarLabel\" id=\"${id}_label\">&nbsp;</div\n\t><img dojoAttachPoint=\"indeterminateHighContrastImage\" class=\"dijitProgressBarIndeterminateHighContrastImage\"\n\t></img\n></div>\n",_indeterminateHighContrastImagePath:dojo.moduleUrl("dijit","themes/a11y/indeterminate_progress.gif"),postCreate:function(){this.inherited(arguments);this.indeterminateHighContrastImage.setAttribute("src",this._indeterminateHighContrastImagePath);this.update();},update:function(_492){dojo.mixin(this,_492||{});var tip=this.internalProgress;var _494=1,_495;if(this.indeterminate){_495="addClass";dijit.removeWaiState(tip,"valuenow");dijit.removeWaiState(tip,"valuemin");dijit.removeWaiState(tip,"valuemax");}else{_495="removeClass";if(String(this.progress).indexOf("%")!=-1){_494=Math.min(parseFloat(this.progress)/100,1);this.progress=_494*this.maximum;}else{this.progress=Math.min(this.progress,this.maximum);_494=this.progress/this.maximum;}var text=this.report(_494);this.label.firstChild.nodeValue=text;dijit.setWaiState(tip,"describedby",this.label.id);dijit.setWaiState(tip,"valuenow",this.progress);dijit.setWaiState(tip,"valuemin",0);dijit.setWaiState(tip,"valuemax",this.maximum);}dojo[_495](this.domNode,"dijitProgressBarIndeterminate");tip.style.width=(_494*100)+"%";this.onChange();},report:function(_497){return dojo.number.format(_497,{type:"percent",places:this.places,locale:this.lang});},onChange:function(){}});}if(!dojo._hasResource["dijit.TitlePane"]){dojo._hasResource["dijit.TitlePane"]=true;dojo.provide("dijit.TitlePane");dojo.declare("dijit.TitlePane",[dijit.layout.ContentPane,dijit._Templated],{title:"",open:true,duration:dijit.defaultDuration,baseClass:"dijitTitlePane",templateString:"<div class=\"${baseClass}\">\n\t<div dojoAttachEvent=\"onclick:toggle, onkeypress:_onTitleKey, onfocus:_handleFocus, onblur:_handleFocus, onmouseenter:_onTitleEnter, onmouseleave:_onTitleLeave\" tabindex=\"0\"\n\t\t\twaiRole=\"button\" class=\"dijitTitlePaneTitle\" dojoAttachPoint=\"titleBarNode,focusNode\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" dojoAttachPoint=\"arrowNode\" class=\"dijitArrowNode\" waiRole=\"presentation\"\n\t\t><span dojoAttachPoint=\"arrowNodeInner\" class=\"dijitArrowNodeInner\"></span\n\t\t><span dojoAttachPoint=\"titleNode\" class=\"dijitTitlePaneTextNode\"></span>\n\t</div>\n\t<div class=\"dijitTitlePaneContentOuter\" dojoAttachPoint=\"hideNode\">\n\t\t<div class=\"dijitReset\" dojoAttachPoint=\"wipeNode\">\n\t\t\t<div class=\"dijitTitlePaneContentInner\" dojoAttachPoint=\"containerNode\" waiRole=\"region\" tabindex=\"-1\">\n\t\t\t\t<!-- nested divs because wipeIn()/wipeOut() doesn't work right on node w/padding etc.  Put padding on inner div. -->\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n",attributeMap:dojo.delegate(dijit.layout.ContentPane.prototype.attributeMap,{title:{node:"titleNode",type:"innerHTML"}}),postCreate:function(){if(!this.open){this.hideNode.style.display=this.wipeNode.style.display="none";}this._setCss();dojo.setSelectable(this.titleNode,false);dijit.setWaiState(this.containerNode,"labelledby",this.titleNode.id);dijit.setWaiState(this.focusNode,"haspopup","true");var _498=this.hideNode,_499=this.wipeNode;this._wipeIn=dojo.fx.wipeIn({node:this.wipeNode,duration:this.duration,beforeBegin:function(){_498.style.display="";}});this._wipeOut=dojo.fx.wipeOut({node:this.wipeNode,duration:this.duration,onEnd:function(){_498.style.display="none";}});this.inherited(arguments);},_setOpenAttr:function(open){if(this.open!==open){this.toggle();}},_setContentAttr:function(_49b){if(!this.open||!this._wipeOut||this._wipeOut.status()=="playing"){this.inherited(arguments);}else{if(this._wipeIn&&this._wipeIn.status()=="playing"){this._wipeIn.stop();}dojo.marginBox(this.wipeNode,{h:dojo.marginBox(this.wipeNode).h});this.inherited(arguments);if(this._wipeIn){this._wipeIn.play();}else{this.hideNode.style.display="";}}},toggle:function(){dojo.forEach([this._wipeIn,this._wipeOut],function(_49c){if(_49c&&_49c.status()=="playing"){_49c.stop();}});var anim=this[this.open?"_wipeOut":"_wipeIn"];if(anim){anim.play();}else{this.hideNode.style.display=this.open?"":"none";}this.open=!this.open;this._onShow();this._setCss();},_setCss:function(){var _49e=["dijitClosed","dijitOpen"];var _49f=this.open;var node=this.titleBarNode||this.focusNode;dojo.removeClass(node,_49e[!_49f+0]);node.className+=" "+_49e[_49f+0];this.arrowNodeInner.innerHTML=this.open?"-":"+";},_onTitleKey:function(e){if(e.charOrCode==dojo.keys.ENTER||e.charOrCode==" "){this.toggle();}else{if(e.charOrCode==dojo.keys.DOWN_ARROW&&this.open){this.containerNode.focus();e.preventDefault();}}},_onTitleEnter:function(){dojo.addClass(this.focusNode,"dijitTitlePaneTitle-hover");},_onTitleLeave:function(){dojo.removeClass(this.focusNode,"dijitTitlePaneTitle-hover");},_handleFocus:function(e){dojo[(e.type=="focus"?"addClass":"removeClass")](this.focusNode,this.baseClass+"Focused");},setTitle:function(_4a3){dojo.deprecated("dijit.TitlePane.setTitle() is deprecated.  Use attr('title', ...) instead.","","2.0");this.titleNode.innerHTML=_4a3;}});}if(!dojo._hasResource["dijit.Tooltip"]){dojo._hasResource["dijit.Tooltip"]=true;dojo.provide("dijit.Tooltip");dojo.declare("dijit._MasterTooltip",[dijit._Widget,dijit._Templated],{duration:dijit.defaultDuration,templateString:"<div class=\"dijitTooltip dijitTooltipLeft\" id=\"dojoTooltip\">\n\t<div class=\"dijitTooltipContainer dijitTooltipContents\" dojoAttachPoint=\"containerNode\" waiRole='alert'></div>\n\t<div class=\"dijitTooltipConnector\"></div>\n</div>\n",postCreate:function(){dojo.body().appendChild(this.domNode);this.bgIframe=new dijit.BackgroundIframe(this.domNode);this.fadeIn=dojo.fadeIn({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,"_onShow")});this.fadeOut=dojo.fadeOut({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,"_onHide")});},show:function(_4a4,_4a5,_4a6){if(this.aroundNode&&this.aroundNode===_4a5){return;}if(this.fadeOut.status()=="playing"){this._onDeck=arguments;return;}this.containerNode.innerHTML=_4a4;this.domNode.style.top=(this.domNode.offsetTop+1)+"px";var _4a7={};var ltr=this.isLeftToRight();dojo.forEach((_4a6&&_4a6.length)?_4a6:dijit.Tooltip.defaultPosition,function(pos){switch(pos){case "after":_4a7[ltr?"BR":"BL"]=ltr?"BL":"BR";break;case "before":_4a7[ltr?"BL":"BR"]=ltr?"BR":"BL";break;case "below":_4a7[ltr?"BL":"BR"]=ltr?"TL":"TR";_4a7[ltr?"BR":"BL"]=ltr?"TR":"TL";break;case "above":default:_4a7[ltr?"TL":"TR"]=ltr?"BL":"BR";_4a7[ltr?"TR":"TL"]=ltr?"BR":"BL";break;}});var pos=dijit.placeOnScreenAroundElement(this.domNode,_4a5,_4a7,dojo.hitch(this,"orient"));dojo.style(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=true;this.aroundNode=_4a5;},orient:function(node,_4ac,_4ad){node.className="dijitTooltip "+{"BL-TL":"dijitTooltipBelow dijitTooltipABLeft","TL-BL":"dijitTooltipAbove dijitTooltipABLeft","BR-TR":"dijitTooltipBelow dijitTooltipABRight","TR-BR":"dijitTooltipAbove dijitTooltipABRight","BR-BL":"dijitTooltipRight","BL-BR":"dijitTooltipLeft"}[_4ac+"-"+_4ad];},_onShow:function(){if(dojo.isIE){this.domNode.style.filter="";}},hide:function(_4ae){if(this._onDeck&&this._onDeck[1]==_4ae){this._onDeck=null;}else{if(this.aroundNode===_4ae){this.fadeIn.stop();this.isShowingNow=false;this.aroundNode=null;this.fadeOut.play();}else{}}},_onHide:function(){this.domNode.style.cssText="";if(this._onDeck){this.show.apply(this,this._onDeck);this._onDeck=null;}}});dijit.showTooltip=function(_4af,_4b0,_4b1){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.show(_4af,_4b0,_4b1);};dijit.hideTooltip=function(_4b2){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.hide(_4b2);};dojo.declare("dijit.Tooltip",dijit._Widget,{label:"",showDelay:400,connectId:[],position:[],_setConnectIdAttr:function(ids){this._connectNodes=[];this.connectId=dojo.isArrayLike(ids)?ids:[ids];dojo.forEach(this.connectId,function(id){var node=dojo.byId(id);if(node){this._connectNodes.push(node);dojo.forEach(["onMouseEnter","onMouseLeave","onFocus","onBlur"],function(_4b6){this.connect(node,_4b6.toLowerCase(),"_"+_4b6);},this);if(dojo.isIE){node.style.zoom=1;}}},this);},postCreate:function(){dojo.addClass(this.domNode,"dijitTooltipData");},_onMouseEnter:function(e){this._onHover(e);},_onMouseLeave:function(e){this._onUnHover(e);},_onFocus:function(e){this._focus=true;this._onHover(e);this.inherited(arguments);},_onBlur:function(e){this._focus=false;this._onUnHover(e);this.inherited(arguments);},_onHover:function(e){if(!this._showTimer){var _4bc=e.target;this._showTimer=setTimeout(dojo.hitch(this,function(){this.open(_4bc);}),this.showDelay);}},_onUnHover:function(e){if(this._focus){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}this.close();},open:function(_4be){_4be=_4be||this._connectNodes[0];if(!_4be){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}dijit.showTooltip(this.label||this.domNode.innerHTML,_4be,this.position);this._connectNode=_4be;},close:function(){if(this._connectNode){dijit.hideTooltip(this._connectNode);delete this._connectNode;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}},uninitialize:function(){this.close();}});dijit.Tooltip.defaultPosition=["after","before"];}if(!dojo._hasResource["dojo.cookie"]){dojo._hasResource["dojo.cookie"]=true;dojo.provide("dojo.cookie");dojo.cookie=function(name,_4c0,_4c1){var c=document.cookie;if(arguments.length==1){var _4c3=c.match(new RegExp("(?:^|; )"+dojo.regexp.escapeString(name)+"=([^;]*)"));return _4c3?decodeURIComponent(_4c3[1]):undefined;}else{_4c1=_4c1||{};var exp=_4c1.expires;if(typeof exp=="number"){var d=new Date();d.setTime(d.getTime()+exp*24*60*60*1000);exp=_4c1.expires=d;}if(exp&&exp.toUTCString){_4c1.expires=exp.toUTCString();}_4c0=encodeURIComponent(_4c0);var _4c6=name+"="+_4c0,_4c7;for(_4c7 in _4c1){_4c6+="; "+_4c7;var _4c8=_4c1[_4c7];if(_4c8!==true){_4c6+="="+_4c8;}}document.cookie=_4c6;}};dojo.cookie.isSupported=function(){if(!("cookieEnabled" in navigator)){this("__djCookieTest__","CookiesAllowed");navigator.cookieEnabled=this("__djCookieTest__")=="CookiesAllowed";if(navigator.cookieEnabled){this("__djCookieTest__","",{expires:-1});}}return navigator.cookieEnabled;};}if(!dojo._hasResource["dijit.tree.TreeStoreModel"]){dojo._hasResource["dijit.tree.TreeStoreModel"]=true;dojo.provide("dijit.tree.TreeStoreModel");dojo.declare("dijit.tree.TreeStoreModel",null,{store:null,childrenAttrs:["children"],labelAttr:"",root:null,query:null,constructor:function(args){dojo.mixin(this,args);this.connects=[];var _4ca=this.store;if(!_4ca.getFeatures()["dojo.data.api.Identity"]){throw new Error("dijit.Tree: store must support dojo.data.Identity");}if(_4ca.getFeatures()["dojo.data.api.Notification"]){this.connects=this.connects.concat([dojo.connect(_4ca,"onNew",this,"_onNewItem"),dojo.connect(_4ca,"onDelete",this,"_onDeleteItem"),dojo.connect(_4ca,"onSet",this,"_onSetItem")]);}},destroy:function(){dojo.forEach(this.connects,dojo.disconnect);},getRoot:function(_4cb,_4cc){if(this.root){_4cb(this.root);}else{this.store.fetch({query:this.query,onComplete:dojo.hitch(this,function(_4cd){if(_4cd.length!=1){throw new Error(this.declaredClass+": query "+dojo.toJson(this.query)+" returned "+_4cd.length+" items, but must return exactly one item");}this.root=_4cd[0];_4cb(this.root);}),onError:_4cc});}},mayHaveChildren:function(item){return dojo.some(this.childrenAttrs,function(attr){return this.store.hasAttribute(item,attr);},this);},getChildren:function(_4d0,_4d1,_4d2){var _4d3=this.store;var _4d4=[];for(var i=0;i<this.childrenAttrs.length;i++){var vals=_4d3.getValues(_4d0,this.childrenAttrs[i]);_4d4=_4d4.concat(vals);}var _4d7=0;dojo.forEach(_4d4,function(item){if(!_4d3.isItemLoaded(item)){_4d7++;}});if(_4d7==0){_4d1(_4d4);}else{var _4d9=function _4d9(item){if(--_4d7==0){_4d1(_4d4);}};dojo.forEach(_4d4,function(item){if(!_4d3.isItemLoaded(item)){_4d3.loadItem({item:item,onItem:_4d9,onError:_4d2});}});}},getIdentity:function(item){return this.store.getIdentity(item);},getLabel:function(item){if(this.labelAttr){return this.store.getValue(item,this.labelAttr);}else{return this.store.getLabel(item);}},newItem:function(args,_4df){var _4e0={parent:_4df,attribute:this.childrenAttrs[0]};return this.store.newItem(args,_4e0);},pasteItem:function(_4e1,_4e2,_4e3,_4e4,_4e5){var _4e6=this.store,_4e7=this.childrenAttrs[0];if(_4e2){dojo.forEach(this.childrenAttrs,function(attr){if(_4e6.containsValue(_4e2,attr,_4e1)){if(!_4e4){var _4e9=dojo.filter(_4e6.getValues(_4e2,attr),function(x){return x!=_4e1;});_4e6.setValues(_4e2,attr,_4e9);}_4e7=attr;}});}if(_4e3){if(typeof _4e5=="number"){var _4eb=_4e6.getValues(_4e3,_4e7);_4eb.splice(_4e5,0,_4e1);_4e6.setValues(_4e3,_4e7,_4eb);}else{_4e6.setValues(_4e3,_4e7,_4e6.getValues(_4e3,_4e7).concat(_4e1));}}},onChange:function(item){},onChildrenChange:function(_4ed,_4ee){},onDelete:function(_4ef,_4f0){},_onNewItem:function(item,_4f2){if(!_4f2){return;}this.getChildren(_4f2.item,dojo.hitch(this,function(_4f3){this.onChildrenChange(_4f2.item,_4f3);}));},_onDeleteItem:function(item){this.onDelete(item);},_onSetItem:function(item,_4f6,_4f7,_4f8){if(dojo.indexOf(this.childrenAttrs,_4f6)!=-1){this.getChildren(item,dojo.hitch(this,function(_4f9){this.onChildrenChange(item,_4f9);}));}else{this.onChange(item);}}});}if(!dojo._hasResource["dijit.tree.ForestStoreModel"]){dojo._hasResource["dijit.tree.ForestStoreModel"]=true;dojo.provide("dijit.tree.ForestStoreModel");dojo.declare("dijit.tree.ForestStoreModel",dijit.tree.TreeStoreModel,{rootId:"$root$",rootLabel:"ROOT",query:null,constructor:function(_4fa){this.root={store:this,root:true,id:_4fa.rootId,label:_4fa.rootLabel,children:_4fa.rootChildren};},mayHaveChildren:function(item){return item===this.root||this.inherited(arguments);},getChildren:function(_4fc,_4fd,_4fe){if(_4fc===this.root){if(this.root.children){_4fd(this.root.children);}else{this.store.fetch({query:this.query,onComplete:dojo.hitch(this,function(_4ff){this.root.children=_4ff;_4fd(_4ff);}),onError:_4fe});}}else{this.inherited(arguments);}},getIdentity:function(item){return (item===this.root)?this.root.id:this.inherited(arguments);},getLabel:function(item){return (item===this.root)?this.root.label:this.inherited(arguments);},newItem:function(args,_503){if(_503===this.root){this.onNewRootItem(args);return this.store.newItem(args);}else{return this.inherited(arguments);}},onNewRootItem:function(args){},pasteItem:function(_505,_506,_507,_508,_509){if(_506===this.root){if(!_508){this.onLeaveRoot(_505);}}dijit.tree.TreeStoreModel.prototype.pasteItem.call(this,_505,_506===this.root?null:_506,_507===this.root?null:_507,_508,_509);if(_507===this.root){this.onAddToRoot(_505);}},onAddToRoot:function(item){},onLeaveRoot:function(item){},_requeryTop:function(){var _50c=this.root.children||[];this.store.fetch({query:this.query,onComplete:dojo.hitch(this,function(_50d){this.root.children=_50d;if(_50c.length!=_50d.length||dojo.some(_50c,function(item,idx){return _50d[idx]!=item;})){this.onChildrenChange(this.root,_50d);}})});},_onNewItem:function(item,_511){this._requeryTop();this.inherited(arguments);},_onDeleteItem:function(item){if(dojo.indexOf(this.root.children,item)!=-1){this._requeryTop();}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.Tree"]){dojo._hasResource["dijit.Tree"]=true;dojo.provide("dijit.Tree");dojo.declare("dijit._TreeNode",[dijit._Widget,dijit._Templated,dijit._Container,dijit._Contained],{item:null,isTreeNode:true,label:"",isExpandable:null,isExpanded:false,state:"UNCHECKED",templateString:"<div class=\"dijitTreeNode\" waiRole=\"presentation\"\n\t><div dojoAttachPoint=\"rowNode\" class=\"dijitTreeRow\" waiRole=\"presentation\" dojoAttachEvent=\"onmouseenter:_onMouseEnter, onmouseleave:_onMouseLeave\"\n\t\t><img src=\"${_blankGif}\" alt=\"\" dojoAttachPoint=\"expandoNode\" class=\"dijitTreeExpando\" waiRole=\"presentation\"\n\t\t><span dojoAttachPoint=\"expandoNodeText\" class=\"dijitExpandoText\" waiRole=\"presentation\"\n\t\t></span\n\t\t><span dojoAttachPoint=\"contentNode\"\n\t\t\tclass=\"dijitTreeContent\" waiRole=\"presentation\">\n\t\t\t<img src=\"${_blankGif}\" alt=\"\" dojoAttachPoint=\"iconNode\" class=\"dijitTreeIcon\" waiRole=\"presentation\"\n\t\t\t><span dojoAttachPoint=\"labelNode\" class=\"dijitTreeLabel\" wairole=\"treeitem\" tabindex=\"-1\" waiState=\"selected-false\" dojoAttachEvent=\"onfocus:_onLabelFocus, onblur:_onLabelBlur\"></span>\n\t\t</span\n\t></div>\n\t<div dojoAttachPoint=\"containerNode\" class=\"dijitTreeContainer\" waiRole=\"presentation\" style=\"display: none;\"></div>\n</div>\n",postCreate:function(){this.setLabelNode(this.label);this._setExpando();this._updateItemClasses(this.item);if(this.isExpandable){dijit.setWaiState(this.labelNode,"expanded",this.isExpanded);if(this==this.tree.rootNode){dijit.setWaitState(this.tree.domNode,"expanded",this.isExpanded);}}},_setIndentAttr:function(_513){this.indent=_513;var _514=(Math.max(_513,0)*19)+"px";dojo.style(this.domNode,"backgroundPosition",_514+" 0px");dojo.style(this.rowNode,dojo._isBodyLtr()?"paddingLeft":"paddingRight",_514);dojo.forEach(this.getChildren(),function(_515){_515.attr("indent",_513+1);});},markProcessing:function(){this.state="LOADING";this._setExpando(true);},unmarkProcessing:function(){this._setExpando(false);},_updateItemClasses:function(item){var tree=this.tree,_518=tree.model;if(tree._v10Compat&&item===_518.root){item=null;}if(this._iconClass){dojo.removeClass(this.iconNode,this._iconClass);}this._iconClass=tree.getIconClass(item,this.isExpanded);if(this._iconClass){dojo.addClass(this.iconNode,this._iconClass);}dojo.style(this.iconNode,tree.getIconStyle(item,this.isExpanded)||{});if(this._labelClass){dojo.removeClass(this.labelNode,this._labelClass);}this._labelClass=tree.getLabelClass(item,this.isExpanded);if(this._labelClass){dojo.addClass(this.labelNode,this._labelClass);}dojo.style(this.labelNode,tree.getLabelStyle(item,this.isExpanded)||{});},_updateLayout:function(){var _519=this.getParent();if(!_519||_519.rowNode.style.display=="none"){dojo.addClass(this.domNode,"dijitTreeIsRoot");}else{dojo.toggleClass(this.domNode,"dijitTreeIsLast",!this.getNextSibling());}},_setExpando:function(_51a){var _51b=["dijitTreeExpandoLoading","dijitTreeExpandoOpened","dijitTreeExpandoClosed","dijitTreeExpandoLeaf"];var _51c=["*","-","+","*"];var idx=_51a?0:(this.isExpandable?(this.isExpanded?1:2):3);dojo.forEach(_51b,function(s){dojo.removeClass(this.expandoNode,s);},this);dojo.addClass(this.expandoNode,_51b[idx]);this.expandoNodeText.innerHTML=_51c[idx];},expand:function(){if(this.isExpanded){return;}this._wipeOut&&this._wipeOut.stop();this.isExpanded=true;dijit.setWaiState(this.labelNode,"expanded","true");dijit.setWaiRole(this.containerNode,"group");dojo.addClass(this.contentNode,"dijitTreeContentExpanded");this._setExpando();this._updateItemClasses(this.item);if(this==this.tree.rootNode){dijit.setWaiState(this.tree.domNode,"expanded","true");}if(!this._wipeIn){this._wipeIn=dojo.fx.wipeIn({node:this.containerNode,duration:dijit.defaultDuration});}this._wipeIn.play();},collapse:function(){if(!this.isExpanded){return;}this._wipeIn&&this._wipeIn.stop();this.isExpanded=false;dijit.setWaiState(this.labelNode,"expanded","false");if(this==this.tree.rootNode){dijit.setWaiState(this.tree.domNode,"expanded","false");}dojo.removeClass(this.contentNode,"dijitTreeContentExpanded");this._setExpando();this._updateItemClasses(this.item);if(!this._wipeOut){this._wipeOut=dojo.fx.wipeOut({node:this.containerNode,duration:dijit.defaultDuration});}this._wipeOut.play();},setLabelNode:function(_51f){this.labelNode.innerHTML="";this.labelNode.appendChild(dojo.doc.createTextNode(_51f));},indent:0,setChildItems:function(_520){var tree=this.tree,_522=tree.model;this.getChildren().forEach(function(_523){dijit._Container.prototype.removeChild.call(this,_523);},this);this.state="LOADED";if(_520&&_520.length>0){this.isExpandable=true;dojo.forEach(_520,function(item){var id=_522.getIdentity(item),_526=tree._itemNodeMap[id],node=(_526&&!_526.getParent())?_526:this.tree._createTreeNode({item:item,tree:tree,isExpandable:_522.mayHaveChildren(item),label:tree.getLabel(item),indent:this.indent+1});if(_526){_526.attr("indent",this.indent+1);}this.addChild(node);tree._itemNodeMap[id]=node;if(this.tree._state(item)){tree._expandNode(node);}},this);dojo.forEach(this.getChildren(),function(_528,idx){_528._updateLayout();});}else{this.isExpandable=false;}if(this._setExpando){this._setExpando(false);}if(this==tree.rootNode){var fc=this.tree.showRoot?this:this.getChildren()[0];if(fc){fc.setSelected(true);tree.lastFocused=fc;}else{tree.domNode.setAttribute("tabIndex","0");}}},removeChild:function(node){this.inherited(arguments);var _52c=this.getChildren();if(_52c.length==0){this.isExpandable=false;this.collapse();}dojo.forEach(_52c,function(_52d){_52d._updateLayout();});},makeExpandable:function(){this.isExpandable=true;this._setExpando(false);},_onLabelFocus:function(evt){dojo.addClass(this.labelNode,"dijitTreeLabelFocused");this.tree._onNodeFocus(this);},_onLabelBlur:function(evt){dojo.removeClass(this.labelNode,"dijitTreeLabelFocused");},setSelected:function(_530){var _531=this.labelNode;_531.setAttribute("tabIndex",_530?"0":"-1");dijit.setWaiState(_531,"selected",_530);dojo.toggleClass(this.rowNode,"dijitTreeNodeSelected",_530);},_onMouseEnter:function(evt){dojo.addClass(this.rowNode,"dijitTreeNodeHover");this.tree._onNodeMouseEnter(this,evt);},_onMouseLeave:function(evt){dojo.removeClass(this.rowNode,"dijitTreeNodeHover");this.tree._onNodeMouseLeave(this,evt);}});dojo.declare("dijit.Tree",[dijit._Widget,dijit._Templated],{store:null,model:null,query:null,label:"",showRoot:true,childrenAttr:["children"],openOnClick:false,openOnDblClick:false,templateString:"<div class=\"dijitTreeContainer\" waiRole=\"tree\"\n\tdojoAttachEvent=\"onclick:_onClick,onkeypress:_onKeyPress,ondblclick:_onDblClick\">\n</div>\n",isExpandable:true,isTree:true,persist:true,dndController:null,dndParams:["onDndDrop","itemCreator","onDndCancel","checkAcceptance","checkItemAcceptance","dragThreshold","betweenThreshold"],onDndDrop:null,itemCreator:null,onDndCancel:null,checkAcceptance:null,checkItemAcceptance:null,dragThreshold:0,betweenThreshold:0,_publish:function(_534,_535){dojo.publish(this.id,[dojo.mixin({tree:this,event:_534},_535||{})]);},postMixInProperties:function(){this.tree=this;this._itemNodeMap={};if(!this.cookieName){this.cookieName=this.id+"SaveStateCookie";}},postCreate:function(){this._initState();if(!this.model){this._store2model();}this.connect(this.model,"onChange","_onItemChange");this.connect(this.model,"onChildrenChange","_onItemChildrenChange");this.connect(this.model,"onDelete","_onItemDelete");this._load();this.inherited(arguments);if(this.dndController){if(dojo.isString(this.dndController)){this.dndController=dojo.getObject(this.dndController);}var _536={};for(var i=0;i<this.dndParams.length;i++){if(this[this.dndParams[i]]){_536[this.dndParams[i]]=this[this.dndParams[i]];}}this.dndController=new this.dndController(this,_536);}},_store2model:function(){this._v10Compat=true;dojo.deprecated("Tree: from version 2.0, should specify a model object rather than a store/query");var _538={id:this.id+"_ForestStoreModel",store:this.store,query:this.query,childrenAttrs:this.childrenAttr};if(this.params.mayHaveChildren){_538.mayHaveChildren=dojo.hitch(this,"mayHaveChildren");}if(this.params.getItemChildren){_538.getChildren=dojo.hitch(this,function(item,_53a,_53b){this.getItemChildren((this._v10Compat&&item===this.model.root)?null:item,_53a,_53b);});}this.model=new dijit.tree.ForestStoreModel(_538);this.showRoot=Boolean(this.label);},_load:function(){this.model.getRoot(dojo.hitch(this,function(item){var rn=this.rootNode=this.tree._createTreeNode({item:item,tree:this,isExpandable:true,label:this.label||this.getLabel(item),indent:this.showRoot?0:-1});if(!this.showRoot){rn.rowNode.style.display="none";}this.domNode.appendChild(rn.domNode);this._itemNodeMap[this.model.getIdentity(item)]=rn;rn._updateLayout();this._expandNode(rn);}),function(err){console.error(this,": error loading root: ",err);});},mayHaveChildren:function(item){},getItemChildren:function(_540,_541){},getLabel:function(item){return this.model.getLabel(item);},getIconClass:function(item,_544){return (!item||this.model.mayHaveChildren(item))?(_544?"dijitFolderOpened":"dijitFolderClosed"):"dijitLeaf";},getLabelClass:function(item,_546){},getIconStyle:function(item,_548){},getLabelStyle:function(item,_54a){},_onKeyPress:function(e){if(e.altKey){return;}var dk=dojo.keys;var _54d=dijit.getEnclosingWidget(e.target);if(!_54d){return;}var key=e.charOrCode;if(typeof key=="string"){if(!e.altKey&&!e.ctrlKey&&!e.shiftKey&&!e.metaKey){this._onLetterKeyNav({node:_54d,key:key.toLowerCase()});dojo.stopEvent(e);}}else{var map=this._keyHandlerMap;if(!map){map={};map[dk.ENTER]="_onEnterKey";map[this.isLeftToRight()?dk.LEFT_ARROW:dk.RIGHT_ARROW]="_onLeftArrow";map[this.isLeftToRight()?dk.RIGHT_ARROW:dk.LEFT_ARROW]="_onRightArrow";map[dk.UP_ARROW]="_onUpArrow";map[dk.DOWN_ARROW]="_onDownArrow";map[dk.HOME]="_onHomeKey";map[dk.END]="_onEndKey";this._keyHandlerMap=map;}if(this._keyHandlerMap[key]){this[this._keyHandlerMap[key]]({node:_54d,item:_54d.item});dojo.stopEvent(e);}}},_onEnterKey:function(_550){this._publish("execute",{item:_550.item,node:_550.node});this.onClick(_550.item,_550.node);},_onDownArrow:function(_551){var node=this._getNextNode(_551.node);if(node&&node.isTreeNode){this.focusNode(node);}},_onUpArrow:function(_553){var node=_553.node;var _555=node.getPreviousSibling();if(_555){node=_555;while(node.isExpandable&&node.isExpanded&&node.hasChildren()){var _556=node.getChildren();node=_556[_556.length-1];}}else{var _557=node.getParent();if(!(!this.showRoot&&_557===this.rootNode)){node=_557;}}if(node&&node.isTreeNode){this.focusNode(node);}},_onRightArrow:function(_558){var node=_558.node;if(node.isExpandable&&!node.isExpanded){this._expandNode(node);}else{if(node.hasChildren()){node=node.getChildren()[0];if(node&&node.isTreeNode){this.focusNode(node);}}}},_onLeftArrow:function(_55a){var node=_55a.node;if(node.isExpandable&&node.isExpanded){this._collapseNode(node);}else{var _55c=node.getParent();if(_55c&&_55c.isTreeNode&&!(!this.showRoot&&_55c===this.rootNode)){this.focusNode(_55c);}}},_onHomeKey:function(){var node=this._getRootOrFirstNode();if(node){this.focusNode(node);}},_onEndKey:function(_55e){var node=this.rootNode;while(node.isExpanded){var c=node.getChildren();node=c[c.length-1];}if(node&&node.isTreeNode){this.focusNode(node);}},_onLetterKeyNav:function(_561){var node=_561.node,_563=node,key=_561.key;do{node=this._getNextNode(node);if(!node){node=this._getRootOrFirstNode();}}while(node!==_563&&(node.label.charAt(0).toLowerCase()!=key));if(node&&node.isTreeNode){if(node!==_563){this.focusNode(node);}}},_onClick:function(e){var _566=e.target;var _567=dijit.getEnclosingWidget(_566);if(!_567||!_567.isTreeNode){return;}if((this.openOnClick&&_567.isExpandable)||(_566==_567.expandoNode||_566==_567.expandoNodeText)){if(_567.isExpandable){this._onExpandoClick({node:_567});}}else{this._publish("execute",{item:_567.item,node:_567});this.onClick(_567.item,_567);this.focusNode(_567);}dojo.stopEvent(e);},_onDblClick:function(e){var _569=e.target;var _56a=dijit.getEnclosingWidget(_569);if(!_56a||!_56a.isTreeNode){return;}if((this.openOnDblClick&&_56a.isExpandable)||(_569==_56a.expandoNode||_569==_56a.expandoNodeText)){if(_56a.isExpandable){this._onExpandoClick({node:_56a});}}else{this._publish("execute",{item:_56a.item,node:_56a});this.onDblClick(_56a.item,_56a);this.focusNode(_56a);}dojo.stopEvent(e);},_onExpandoClick:function(_56b){var node=_56b.node;this.focusNode(node);if(node.isExpanded){this._collapseNode(node);}else{this._expandNode(node);}},onClick:function(item,node){},onDblClick:function(item,node){},onOpen:function(item,node){},onClose:function(item,node){},_getNextNode:function(node){if(node.isExpandable&&node.isExpanded&&node.hasChildren()){return node.getChildren()[0];}else{while(node&&node.isTreeNode){var _576=node.getNextSibling();if(_576){return _576;}node=node.getParent();}return null;}},_getRootOrFirstNode:function(){return this.showRoot?this.rootNode:this.rootNode.getChildren()[0];},_collapseNode:function(node){if(node.isExpandable){if(node.state=="LOADING"){return;}node.collapse();this.onClose(node.item,node);if(node.item){this._state(node.item,false);this._saveState();}}},_expandNode:function(node){if(!node.isExpandable){return;}var _579=this.model,item=node.item;switch(node.state){case "LOADING":return;case "UNCHECKED":node.markProcessing();var _57b=this;_579.getChildren(item,function(_57c){node.unmarkProcessing();node.setChildItems(_57c);_57b._expandNode(node);},function(err){console.error(_57b,": error loading root children: ",err);});break;default:node.expand();this.onOpen(node.item,node);if(item){this._state(item,true);this._saveState();}}},focusNode:function(node){node.labelNode.focus();},_onNodeFocus:function(node){if(node){if(node!=this.lastFocused){this.lastFocused.setSelected(false);}node.setSelected(true);this.lastFocused=node;}},_onNodeMouseEnter:function(node){},_onNodeMouseLeave:function(node){},_onItemChange:function(item){var _583=this.model,_584=_583.getIdentity(item),node=this._itemNodeMap[_584];if(node){node.setLabelNode(this.getLabel(item));node._updateItemClasses(item);}},_onItemChildrenChange:function(_586,_587){var _588=this.model,_589=_588.getIdentity(_586),_58a=this._itemNodeMap[_589];if(_58a){_58a.setChildItems(_587);}},_onItemDelete:function(item){var _58c=this.model,_58d=_58c.getIdentity(item),node=this._itemNodeMap[_58d];if(node){var _58f=node.getParent();if(_58f){_58f.removeChild(node);}node.destroyRecursive();delete this._itemNodeMap[_58d];}},_initState:function(){if(this.persist){var _590=dojo.cookie(this.cookieName);this._openedItemIds={};if(_590){dojo.forEach(_590.split(","),function(item){this._openedItemIds[item]=true;},this);}}},_state:function(item,_593){if(!this.persist){return false;}var id=this.model.getIdentity(item);if(arguments.length===1){return this._openedItemIds[id];}if(_593){this._openedItemIds[id]=true;}else{delete this._openedItemIds[id];}},_saveState:function(){if(!this.persist){return;}var ary=[];for(var id in this._openedItemIds){ary.push(id);}dojo.cookie(this.cookieName,ary.join(","),{expires:365});},destroy:function(){if(this.rootNode){this.rootNode.destroyRecursive();}if(this.dndController&&!dojo.isString(this.dndController)){this.dndController.destroy();}this.rootNode=null;this.inherited(arguments);},destroyRecursive:function(){this.destroy();},_createTreeNode:function(args){return new dijit._TreeNode(args);}});}if(!dojo._hasResource["dijit.form.TextBox"]){dojo._hasResource["dijit.form.TextBox"]=true;dojo.provide("dijit.form.TextBox");dojo.declare("dijit.form.TextBox",dijit.form._FormValueWidget,{trim:false,uppercase:false,lowercase:false,propercase:false,maxLength:"",templateString:"<input class=\"dijit dijitReset dijitLeft\" dojoAttachPoint='textbox,focusNode'\n\tdojoAttachEvent='onmouseenter:_onMouse,onmouseleave:_onMouse'\n\tautocomplete=\"off\" type=\"${type}\" ${nameAttrSetting}\n\t/>\n",baseClass:"dijitTextBox",attributeMap:dojo.delegate(dijit.form._FormValueWidget.prototype.attributeMap,{maxLength:"focusNode"}),_getValueAttr:function(){return this.parse(this.attr("displayedValue"),this.constraints);},_setValueAttr:function(_598,_599,_59a){var _59b;if(_598!==undefined){_59b=this.filter(_598);if(typeof _59a!="string"){if(_59b!==null&&((typeof _59b!="number")||!isNaN(_59b))){_59a=this.filter(this.format(_59b,this.constraints));}else{_59a="";}}}if(_59a!=null&&_59a!=undefined&&((typeof _59a)!="number"||!isNaN(_59a))&&this.textbox.value!=_59a){this.textbox.value=_59a;}this.inherited(arguments,[_59b,_599]);},displayedValue:"",getDisplayedValue:function(){dojo.deprecated(this.declaredClass+"::getDisplayedValue() is deprecated. Use attr('displayedValue') instead.","","2.0");return this.attr("displayedValue");},_getDisplayedValueAttr:function(){return this.filter(this.textbox.value);},setDisplayedValue:function(_59c){dojo.deprecated(this.declaredClass+"::setDisplayedValue() is deprecated. Use attr('displayedValue', ...) instead.","","2.0");this.attr("displayedValue",_59c);},_setDisplayedValueAttr:function(_59d){if(_59d===null||_59d===undefined){_59d="";}else{if(typeof _59d!="string"){_59d=String(_59d);}}this.textbox.value=_59d;this._setValueAttr(this.attr("value"),undefined,_59d);},format:function(_59e,_59f){return ((_59e==null||_59e==undefined)?"":(_59e.toString?_59e.toString():_59e));},parse:function(_5a0,_5a1){return _5a0;},_refreshState:function(){},_onInput:function(e){if(e&&e.type&&/key/i.test(e.type)&&e.keyCode){switch(e.keyCode){case dojo.keys.SHIFT:case dojo.keys.ALT:case dojo.keys.CTRL:case dojo.keys.TAB:return;}}if(this.intermediateChanges){var _5a3=this;setTimeout(function(){_5a3._handleOnChange(_5a3.attr("value"),false);},0);}this._refreshState();},postCreate:function(){this.textbox.setAttribute("value",this.textbox.value);this.inherited(arguments);if(dojo.isMoz||dojo.isOpera){this.connect(this.textbox,"oninput",this._onInput);}else{this.connect(this.textbox,"onkeydown",this._onInput);this.connect(this.textbox,"onkeyup",this._onInput);this.connect(this.textbox,"onpaste",this._onInput);this.connect(this.textbox,"oncut",this._onInput);}this._layoutHack();},_blankValue:"",filter:function(val){if(val===null){return this._blankValue;}if(typeof val!="string"){return val;}if(this.trim){val=dojo.trim(val);}if(this.uppercase){val=val.toUpperCase();}if(this.lowercase){val=val.toLowerCase();}if(this.propercase){val=val.replace(/[^\s]+/g,function(word){return word.substring(0,1).toUpperCase()+word.substring(1);});}return val;},_setBlurValue:function(){this._setValueAttr(this.attr("value"),true);},_onBlur:function(e){if(this.disabled){return;}this._setBlurValue();this.inherited(arguments);},_onFocus:function(e){if(this.disabled){return;}this._refreshState();this.inherited(arguments);},reset:function(){this.textbox.value="";this.inherited(arguments);}});dijit.selectInputText=function(_5a8,_5a9,stop){var _5ab=dojo.global;var _5ac=dojo.doc;_5a8=dojo.byId(_5a8);if(isNaN(_5a9)){_5a9=0;}if(isNaN(stop)){stop=_5a8.value?_5a8.value.length:0;}_5a8.focus();if(_5ac["selection"]&&dojo.body()["createTextRange"]){if(_5a8.createTextRange){var _5ad=_5a8.createTextRange();with(_5ad){collapse(true);moveStart("character",_5a9);moveEnd("character",stop);select();}}}else{if(_5ab["getSelection"]){var _5ae=_5ab.getSelection();if(_5a8.setSelectionRange){_5a8.setSelectionRange(_5a9,stop);}}}};}if(!dojo._hasResource["dijit.InlineEditBox"]){dojo._hasResource["dijit.InlineEditBox"]=true;dojo.provide("dijit.InlineEditBox");dojo.declare("dijit.InlineEditBox",dijit._Widget,{editing:false,autoSave:true,buttonSave:"",buttonCancel:"",renderAsHtml:false,editor:"dijit.form.TextBox",editorParams:{},onChange:function(_5af){},onCancel:function(){},width:"100%",value:"",noValueIndicator:"<span style='font-family: wingdings; text-decoration: underline;'>&nbsp;&nbsp;&nbsp;&nbsp;&#x270d;&nbsp;&nbsp;&nbsp;&nbsp;</span>",constructor:function(){this.editorParams={};},postMixInProperties:function(){this.inherited(arguments);this.displayNode=this.srcNodeRef;var _5b0={ondijitclick:"_onClick",onmouseover:"_onMouseOver",onmouseout:"_onMouseOut",onfocus:"_onMouseOver",onblur:"_onMouseOut"};for(var name in _5b0){this.connect(this.displayNode,name,_5b0[name]);}dijit.setWaiRole(this.displayNode,"button");if(!this.displayNode.getAttribute("tabIndex")){this.displayNode.setAttribute("tabIndex",0);}this.attr("value",this.value||this.displayNode.innerHTML);},setDisabled:function(_5b2){dojo.deprecated("dijit.InlineEditBox.setDisabled() is deprecated.  Use attr('disabled', bool) instead.","","2.0");this.attr("disabled",_5b2);},_setDisabledAttr:function(_5b3){this.disabled=_5b3;dijit.setWaiState(this.domNode,"disabled",_5b3);},_onMouseOver:function(){dojo.addClass(this.displayNode,this.disabled?"dijitDisabledClickableRegion":"dijitClickableRegion");},_onMouseOut:function(){dojo.removeClass(this.displayNode,this.disabled?"dijitDisabledClickableRegion":"dijitClickableRegion");},_onClick:function(e){if(this.disabled){return;}if(e){dojo.stopEvent(e);}this._onMouseOut();setTimeout(dojo.hitch(this,"edit"),0);},edit:function(){if(this.disabled||this.editing){return;}this.editing=true;var _5b5=(this.renderAsHtml?this.value:this.value.replace(/\s*\r?\n\s*/g,"").replace(/<br\/?>/gi,"\n").replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&").replace(/&quot;/g,"\""));var _5b6=dojo.create("span",null,this.domNode,"before");var ew=this.editWidget=new dijit._InlineEditor({value:dojo.trim(_5b5),autoSave:this.autoSave,buttonSave:this.buttonSave,buttonCancel:this.buttonCancel,renderAsHtml:this.renderAsHtml,editor:this.editor,editorParams:this.editorParams,sourceStyle:dojo.getComputedStyle(this.displayNode),save:dojo.hitch(this,"save"),cancel:dojo.hitch(this,"cancel"),width:this.width},_5b6);var ews=ew.domNode.style;this.displayNode.style.display="none";ews.position="static";ews.visibility="visible";this.domNode=ew.domNode;setTimeout(function(){ew.focus();ew._resetValue=ew.getValue();},100);},_showText:function(_5b9){this.displayNode.style.display="";var ew=this.editWidget;var ews=ew.domNode.style;ews.position="absolute";ews.visibility="hidden";this.domNode=this.displayNode;if(_5b9){dijit.focus(this.displayNode);}ews.display="none";setTimeout(function(){ew.destroy();delete ew;if(dojo.isIE){dijit.focus(dijit.getFocus());}},1000);},save:function(_5bc){if(this.disabled||!this.editing){return;}this.editing=false;var _5bd=this.editWidget.getValue()+"";this.attr("value",this.renderAsHtml?_5bd:_5bd.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;").replace(/\n/g,"<br>"));this.onChange(_5bd);this._showText(_5bc);},setValue:function(val){dojo.deprecated("dijit.InlineEditBox.setValue() is deprecated.  Use attr('value', ...) instead.","","2.0");return this.attr("value",val);},_setValueAttr:function(val){this.value=val;this.displayNode.innerHTML=dojo.trim(val)||this.noValueIndicator;},getValue:function(){dojo.deprecated("dijit.InlineEditBox.getValue() is deprecated.  Use attr('value') instead.","","2.0");return this.attr("value");},cancel:function(_5c0){this.editing=false;this.onCancel();this._showText(_5c0);}});dojo.declare("dijit._InlineEditor",[dijit._Widget,dijit._Templated],{templateString:"<span dojoAttachPoint=\"editNode\" waiRole=\"presentation\" style=\"position: absolute; visibility:hidden\" class=\"dijitReset dijitInline\"\n\tdojoAttachEvent=\"onkeypress: _onKeyPress\" \n\t><span dojoAttachPoint=\"editorPlaceholder\"></span\n\t><span dojoAttachPoint=\"buttonContainer\"\n\t\t><button class='saveButton' dojoAttachPoint=\"saveButton\" dojoType=\"dijit.form.Button\" dojoAttachEvent=\"onClick:save\" disabled=\"true\" label=\"${buttonSave}\"></button\n\t\t><button class='cancelButton' dojoAttachPoint=\"cancelButton\" dojoType=\"dijit.form.Button\" dojoAttachEvent=\"onClick:cancel\" label=\"${buttonCancel}\"></button\n\t></span\n></span>\n",widgetsInTemplate:true,postMixInProperties:function(){this.inherited(arguments);this.messages=dojo.i18n.getLocalization("dijit","common",this.lang);dojo.forEach(["buttonSave","buttonCancel"],function(prop){if(!this[prop]){this[prop]=this.messages[prop];}},this);},postCreate:function(){var cls=dojo.getObject(this.editor);var _5c3=this.sourceStyle;var _5c4="line-height:"+_5c3.lineHeight+";";dojo.forEach(["Weight","Family","Size","Style"],function(prop){_5c4+="font-"+prop+":"+_5c3["font"+prop]+";";},this);dojo.forEach(["marginTop","marginBottom","marginLeft","marginRight"],function(prop){this.domNode.style[prop]=_5c3[prop];},this);if(this.width=="100%"){_5c4+="width:100%;";this.domNode.style.display="block";}else{_5c4+="width:"+(this.width+(Number(this.width)==this.width?"px":""))+";";}this.editorParams.style=_5c4;this.editorParams["displayedValue" in cls.prototype?"displayedValue":"value"]=this.value;var ew=this.editWidget=new cls(this.editorParams,this.editorPlaceholder);this.connect(ew,"onChange","_onChange");this.connect(ew,"onKeyPress","_onKeyPress");this.connect(ew,"onKeyUp","_onKeyPress");if(this.autoSave){this.buttonContainer.style.display="none";}},destroy:function(){this.editWidget.destroy();this.inherited(arguments);},getValue:function(){var ew=this.editWidget;return ew.attr("displayedValue" in ew?"displayedValue":"value");},_onKeyPress:function(e){if(this._exitInProgress){return;}if(this.autoSave){if(e.altKey||e.ctrlKey){return;}if(e.charOrCode==dojo.keys.ESCAPE){dojo.stopEvent(e);this._exitInProgress=true;this.cancel(true);}else{if(e.charOrCode==dojo.keys.ENTER&&this.editWidget.focusNode.tagName=="INPUT"){dojo.stopEvent(e);this._exitInProgress=true;this.save(true);}else{if(e.charOrCode===dojo.keys.TAB){this._exitInProgress=true;setTimeout(dojo.hitch(this,"save",false),0);}}}}else{var _5ca=this;setTimeout(function(){_5ca._onChange();},100);}},_onBlur:function(){this.inherited(arguments);if(this._exitInProgress){return;}if(this.autoSave){this._exitInProgress=true;if(this.getValue()==this._resetValue){this.cancel(false);}else{this.save(false);}}},_onChange:function(){if(this._exitInProgress){return;}if(this.autoSave){this._exitInProgress=true;this.save(true);}else{this.saveButton.attr("disabled",(this.getValue()==this._resetValue)||!this.enableSave());}},enableSave:function(){return this.editWidget.isValid?this.editWidget.isValid():true;},focus:function(){this.editWidget.focus();dijit.selectInputText(this.editWidget.focusNode);}});}if(!dojo._hasResource["dijit.form.CheckBox"]){dojo._hasResource["dijit.form.CheckBox"]=true;dojo.provide("dijit.form.CheckBox");dojo.declare("dijit.form.CheckBox",dijit.form.ToggleButton,{templateString:"<div class=\"dijitReset dijitInline\" waiRole=\"presentation\"\n\t><input\n\t \t${nameAttrSetting} type=\"${type}\" ${checkedAttrSetting}\n\t\tclass=\"dijitReset dijitCheckBoxInput\"\n\t\tdojoAttachPoint=\"focusNode\"\n\t \tdojoAttachEvent=\"onmouseover:_onMouse,onmouseout:_onMouse,onclick:_onClick\"\n/></div>\n",baseClass:"dijitCheckBox",type:"checkbox",value:"on",_setValueAttr:function(_5cb){if(typeof _5cb=="string"){this.value=_5cb;dojo.attr(this.focusNode,"value",_5cb);_5cb=true;}if(this._created){this.attr("checked",_5cb);}},_getValueAttr:function(){return (this.checked?this.value:false);},postMixInProperties:function(){if(this.value==""){this.value="on";}this.checkedAttrSetting=this.checked?"checked":"";this.inherited(arguments);},_fillContent:function(_5cc){},reset:function(){this._hasBeenBlurred=false;this.attr("checked",this.params.checked||false);this.value=this.params.value||"on";dojo.attr(this.focusNode,"value",this.value);},_onFocus:function(){if(this.id){dojo.query("label[for='"+this.id+"']").addClass("dijitFocusedLabel");}},_onBlur:function(){if(this.id){dojo.query("label[for='"+this.id+"']").removeClass("dijitFocusedLabel");}}});dojo.declare("dijit.form.RadioButton",dijit.form.CheckBox,{type:"radio",baseClass:"dijitRadio",_setCheckedAttr:function(_5cd){this.inherited(arguments);if(!this._created){return;}if(_5cd){var _5ce=this;dojo.query("INPUT[type=radio]",this.focusNode.form||dojo.doc).forEach(function(_5cf){if(_5cf.name==_5ce.name&&_5cf!=_5ce.focusNode&&_5cf.form==_5ce.focusNode.form){var _5d0=dijit.getEnclosingWidget(_5cf);if(_5d0&&_5d0.checked){_5d0.attr("checked",false);}}});}},_clicked:function(e){if(!this.checked){this.attr("checked",true);}}});}if(!dojo._hasResource["dijit.form.ValidationTextBox"]){dojo._hasResource["dijit.form.ValidationTextBox"]=true;dojo.provide("dijit.form.ValidationTextBox");dojo.declare("dijit.form.ValidationTextBox",dijit.form.TextBox,{templateString:"<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\n\tid=\"widget_${id}\"\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\" waiRole=\"presentation\"\n\t><div style=\"overflow:hidden;\"\n\t\t><div class=\"dijitReset dijitValidationIcon\"><br></div\n\t\t><div class=\"dijitReset dijitValidationIconText\">&Chi;</div\n\t\t><div class=\"dijitReset dijitInputField\"\n\t\t\t><input class=\"dijitReset\" dojoAttachPoint='textbox,focusNode' autocomplete=\"off\"\n\t\t\t${nameAttrSetting} type='${type}'\n\t\t/></div\n\t></div\n></div>\n",baseClass:"dijitTextBox",required:false,promptMessage:"",invalidMessage:"$_unset_$",constraints:{},regExp:".*",regExpGen:function(_5d2){return this.regExp;},state:"",tooltipPosition:[],_setValueAttr:function(){this.inherited(arguments);this.validate(this._focused);},validator:function(_5d3,_5d4){return (new RegExp("^(?:"+this.regExpGen(_5d4)+")"+(this.required?"":"?")+"$")).test(_5d3)&&(!this.required||!this._isEmpty(_5d3))&&(this._isEmpty(_5d3)||this.parse(_5d3,_5d4)!==undefined);},_isValidSubset:function(){return this.textbox.value.search(this._partialre)==0;},isValid:function(_5d5){return this.validator(this.textbox.value,this.constraints);},_isEmpty:function(_5d6){return /^\s*$/.test(_5d6);},getErrorMessage:function(_5d7){return this.invalidMessage;},getPromptMessage:function(_5d8){return this.promptMessage;},_maskValidSubsetError:true,validate:function(_5d9){var _5da="";var _5db=this.disabled||this.isValid(_5d9);if(_5db){this._maskValidSubsetError=true;}var _5dc=!_5db&&_5d9&&this._isValidSubset();var _5dd=this._isEmpty(this.textbox.value);this.state=(_5db||(!this._hasBeenBlurred&&_5dd)||_5dc)?"":"Error";if(this.state=="Error"){this._maskValidSubsetError=false;}this._setStateClass();dijit.setWaiState(this.focusNode,"invalid",_5db?"false":"true");if(_5d9){if(_5dd){_5da=this.getPromptMessage(true);}if(!_5da&&(this.state=="Error"||(_5dc&&!this._maskValidSubsetError))){_5da=this.getErrorMessage(true);}}this.displayMessage(_5da);return _5db;},_message:"",displayMessage:function(_5de){if(this._message==_5de){return;}this._message=_5de;dijit.hideTooltip(this.domNode);if(_5de){dijit.showTooltip(_5de,this.domNode,this.tooltipPosition);}},_refreshState:function(){this.validate(this._focused);this.inherited(arguments);},constructor:function(){this.constraints={};},postMixInProperties:function(){this.inherited(arguments);this.constraints.locale=this.lang;this.messages=dojo.i18n.getLocalization("dijit.form","validate",this.lang);if(this.invalidMessage=="$_unset_$"){this.invalidMessage=this.messages.invalidMessage;}var p=this.regExpGen(this.constraints);this.regExp=p;var _5e0="";if(p!=".*"){this.regExp.replace(/\\.|\[\]|\[.*?[^\\]{1}\]|\{.*?\}|\(\?[=:!]|./g,function(re){switch(re.charAt(0)){case "{":case "+":case "?":case "*":case "^":case "$":case "|":case "(":_5e0+=re;break;case ")":_5e0+="|$)";break;default:_5e0+="(?:"+re+"|$)";break;}});}try{"".search(_5e0);}catch(e){_5e0=this.regExp;console.warn("RegExp error in "+this.declaredClass+": "+this.regExp);}this._partialre="^(?:"+_5e0+")$";},_setDisabledAttr:function(_5e2){this.inherited(arguments);if(this.valueNode){this.valueNode.disabled=_5e2;}this._refreshState();},_setRequiredAttr:function(_5e3){this.required=_5e3;dijit.setWaiState(this.focusNode,"required",_5e3);this._refreshState();},postCreate:function(){if(dojo.isIE){var s=dojo.getComputedStyle(this.focusNode);if(s){var ff=s.fontFamily;if(ff){this.focusNode.style.fontFamily=ff;}}}this.inherited(arguments);},reset:function(){this._maskValidSubsetError=true;this.inherited(arguments);}});dojo.declare("dijit.form.MappedTextBox",dijit.form.ValidationTextBox,{postMixInProperties:function(){this.inherited(arguments);this.nameAttrSetting="";},serialize:function(val,_5e7){return val.toString?val.toString():"";},toString:function(){var val=this.filter(this.attr("value"));return val!=null?(typeof val=="string"?val:this.serialize(val,this.constraints)):"";},validate:function(){this.valueNode.value=this.toString();return this.inherited(arguments);},buildRendering:function(){this.inherited(arguments);this.valueNode=dojo.create("input",{style:{display:"none"},type:this.type,name:this.name},this.textbox,"after");},_setDisabledAttr:function(_5e9){this.inherited(arguments);dojo.attr(this.valueNode,"disabled",_5e9);},reset:function(){this.valueNode.value="";this.inherited(arguments);}});dojo.declare("dijit.form.RangeBoundTextBox",dijit.form.MappedTextBox,{rangeMessage:"",rangeCheck:function(_5ea,_5eb){var _5ec="min" in _5eb;var _5ed="max" in _5eb;if(_5ec||_5ed){return (!_5ec||this.compare(_5ea,_5eb.min)>=0)&&(!_5ed||this.compare(_5ea,_5eb.max)<=0);}return true;},isInRange:function(_5ee){return this.rangeCheck(this.attr("value"),this.constraints);},_isDefinitelyOutOfRange:function(){var val=this.attr("value");var _5f0=false;var _5f1=false;if("min" in this.constraints){var min=this.constraints.min;val=this.compare(val,((typeof min=="number")&&min>=0&&val!=0)?0:min);_5f0=(typeof val=="number")&&val<0;}if("max" in this.constraints){var max=this.constraints.max;val=this.compare(val,((typeof max!="number")||max>0)?max:0);_5f1=(typeof val=="number")&&val>0;}return _5f0||_5f1;},_isValidSubset:function(){return this.inherited(arguments)&&!this._isDefinitelyOutOfRange();},isValid:function(_5f4){return this.inherited(arguments)&&((this._isEmpty(this.textbox.value)&&!this.required)||this.isInRange(_5f4));},getErrorMessage:function(_5f5){if(dijit.form.RangeBoundTextBox.superclass.isValid.call(this,false)&&!this.isInRange(_5f5)){return this.rangeMessage;}return this.inherited(arguments);},postMixInProperties:function(){this.inherited(arguments);if(!this.rangeMessage){this.messages=dojo.i18n.getLocalization("dijit.form","validate",this.lang);this.rangeMessage=this.messages.rangeMessage;}},postCreate:function(){this.inherited(arguments);if(this.constraints.min!==undefined){dijit.setWaiState(this.focusNode,"valuemin",this.constraints.min);}if(this.constraints.max!==undefined){dijit.setWaiState(this.focusNode,"valuemax",this.constraints.max);}},_setValueAttr:function(_5f6,_5f7){dijit.setWaiState(this.focusNode,"valuenow",_5f6);this.inherited(arguments);}});}if(!dojo._hasResource["dojo.data.util.sorter"]){dojo._hasResource["dojo.data.util.sorter"]=true;dojo.provide("dojo.data.util.sorter");dojo.data.util.sorter.basicComparator=function(a,b){var r=-1;if(a===null){a=undefined;}if(b===null){b=undefined;}if(a==b){r=0;}else{if(a>b||a==null){r=1;}}return r;};dojo.data.util.sorter.createSortFunction=function(_5fb,_5fc){var _5fd=[];function _5fe(attr,dir){return function(_601,_602){var a=_5fc.getValue(_601,attr);var b=_5fc.getValue(_602,attr);var _605=null;if(_5fc.comparatorMap){if(typeof attr!=="string"){attr=_5fc.getIdentity(attr);}_605=_5fc.comparatorMap[attr]||dojo.data.util.sorter.basicComparator;}_605=_605||dojo.data.util.sorter.basicComparator;return dir*_605(a,b);};};var _606;for(var i=0;i<_5fb.length;i++){_606=_5fb[i];if(_606.attribute){var _608=(_606.descending)?-1:1;_5fd.push(_5fe(_606.attribute,_608));}}return function(rowA,rowB){var i=0;while(i<_5fd.length){var ret=_5fd[i++](rowA,rowB);if(ret!==0){return ret;}}return 0;};};}if(!dojo._hasResource["dojo.data.util.simpleFetch"]){dojo._hasResource["dojo.data.util.simpleFetch"]=true;dojo.provide("dojo.data.util.simpleFetch");dojo.data.util.simpleFetch.fetch=function(_60d){_60d=_60d||{};if(!_60d.store){_60d.store=this;}var self=this;var _60f=function(_610,_611){if(_611.onError){var _612=_611.scope||dojo.global;_611.onError.call(_612,_610,_611);}};var _613=function(_614,_615){var _616=_615.abort||null;var _617=false;var _618=_615.start?_615.start:0;var _619=(_615.count&&(_615.count!==Infinity))?(_618+_615.count):_614.length;_615.abort=function(){_617=true;if(_616){_616.call(_615);}};var _61a=_615.scope||dojo.global;if(!_615.store){_615.store=self;}if(_615.onBegin){_615.onBegin.call(_61a,_614.length,_615);}if(_615.sort){_614.sort(dojo.data.util.sorter.createSortFunction(_615.sort,self));}if(_615.onItem){for(var i=_618;(i<_614.length)&&(i<_619);++i){var item=_614[i];if(!_617){_615.onItem.call(_61a,item,_615);}}}if(_615.onComplete&&!_617){var _61d=null;if(!_615.onItem){_61d=_614.slice(_618,_619);}_615.onComplete.call(_61a,_61d,_615);}};this._fetchItems(_60d,_613,_60f);return _60d;};}if(!dojo._hasResource["dojo.data.util.filter"]){dojo._hasResource["dojo.data.util.filter"]=true;dojo.provide("dojo.data.util.filter");dojo.data.util.filter.patternToRegExp=function(_61e,_61f){var rxp="^";var c=null;for(var i=0;i<_61e.length;i++){c=_61e.charAt(i);switch(c){case "\\":rxp+=c;i++;rxp+=_61e.charAt(i);break;case "*":rxp+=".*";break;case "?":rxp+=".";break;case "$":case "^":case "/":case "+":case ".":case "|":case "(":case ")":case "{":case "}":case "[":case "]":rxp+="\\";default:rxp+=c;}}rxp+="$";if(_61f){return new RegExp(rxp,"mi");}else{return new RegExp(rxp,"m");}};}if(!dojo._hasResource["dijit.form.ComboBox"]){dojo._hasResource["dijit.form.ComboBox"]=true;dojo.provide("dijit.form.ComboBox");dojo.declare("dijit.form.ComboBoxMixin",null,{item:null,pageSize:Infinity,store:null,fetchProperties:{},query:{},autoComplete:true,highlightMatch:"first",searchDelay:100,searchAttr:"name",labelAttr:"",labelType:"text",queryExpr:"${0}*",ignoreCase:true,hasDownArrow:true,templateString:"<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\n\tid=\"widget_${id}\"\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\" dojoAttachPoint=\"comboNode\" waiRole=\"combobox\" tabIndex=\"-1\"\n\t><div style=\"overflow:hidden;\"\n\t\t><div class='dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton'\n\t\t\tdojoAttachPoint=\"downArrowNode\" waiRole=\"presentation\"\n\t\t\tdojoAttachEvent=\"onmousedown:_onArrowMouseDown,onmouseup:_onMouse,onmouseenter:_onMouse,onmouseleave:_onMouse\"\n\t\t\t><div class=\"dijitArrowButtonInner\">&thinsp;</div\n\t\t\t><div class=\"dijitArrowButtonChar\">&#9660;</div\n\t\t></div\n\t\t><div class=\"dijitReset dijitValidationIcon\"><br></div\n\t\t><div class=\"dijitReset dijitValidationIconText\">&Chi;</div\n\t\t><div class=\"dijitReset dijitInputField\"\n\t\t\t><input ${nameAttrSetting} type=\"text\" autocomplete=\"off\" class='dijitReset'\n\t\t\tdojoAttachEvent=\"onkeypress:_onKeyPress,compositionend\"\n\t\t\tdojoAttachPoint=\"textbox,focusNode\" waiRole=\"textbox\" waiState=\"haspopup-true,autocomplete-list\"\n\t\t/></div\n\t></div\n></div>\n",baseClass:"dijitComboBox",_getCaretPos:function(_623){var pos=0;if(typeof (_623.selectionStart)=="number"){pos=_623.selectionStart;}else{if(dojo.isIE){var tr=dojo.doc.selection.createRange().duplicate();var ntr=_623.createTextRange();tr.move("character",0);ntr.move("character",0);try{ntr.setEndPoint("EndToEnd",tr);pos=String(ntr.text).replace(/\r/g,"").length;}catch(e){}}}return pos;},_setCaretPos:function(_627,_628){_628=parseInt(_628);dijit.selectInputText(_627,_628,_628);},_setDisabledAttr:function(_629){this.inherited(arguments);dijit.setWaiState(this.comboNode,"disabled",_629);},_onKeyPress:function(evt){var key=evt.charOrCode;if(evt.altKey||(evt.ctrlKey&&(key!="x"&&key!="v"))||evt.key==dojo.keys.SHIFT){return;}var _62c=false;var pw=this._popupWidget;var dk=dojo.keys;var _62f=null;if(this._isShowingNow){pw.handleKey(key);_62f=pw.getHighlightedOption();}switch(key){case dk.PAGE_DOWN:case dk.DOWN_ARROW:if(!this._isShowingNow||this._prev_key_esc){this._arrowPressed();_62c=true;}else{if(_62f){this._announceOption(_62f);}}dojo.stopEvent(evt);this._prev_key_backspace=false;this._prev_key_esc=false;break;case dk.PAGE_UP:case dk.UP_ARROW:if(this._isShowingNow){this._announceOption(_62f);}dojo.stopEvent(evt);this._prev_key_backspace=false;this._prev_key_esc=false;break;case dk.ENTER:if(_62f){if(_62f==pw.nextButton){this._nextSearch(1);dojo.stopEvent(evt);break;}else{if(_62f==pw.previousButton){this._nextSearch(-1);dojo.stopEvent(evt);break;}}}else{this._setDisplayedValueAttr(this.attr("displayedValue"),true);}evt.preventDefault();case dk.TAB:var _630=this.attr("displayedValue");if(pw&&(_630==pw._messages["previousMessage"]||_630==pw._messages["nextMessage"])){break;}if(this._isShowingNow){this._prev_key_backspace=false;this._prev_key_esc=false;if(_62f){pw.attr("value",{target:_62f});}this._lastQuery=null;this._hideResultList();}break;case " ":this._prev_key_backspace=false;this._prev_key_esc=false;if(_62f){dojo.stopEvent(evt);this._selectOption();this._hideResultList();}else{_62c=true;}break;case dk.ESCAPE:this._prev_key_backspace=false;this._prev_key_esc=true;if(this._isShowingNow){dojo.stopEvent(evt);this._hideResultList();}break;case dk.DELETE:case dk.BACKSPACE:this._prev_key_esc=false;this._prev_key_backspace=true;_62c=true;break;case dk.RIGHT_ARROW:case dk.LEFT_ARROW:this._prev_key_backspace=false;this._prev_key_esc=false;break;default:this._prev_key_backspace=false;this._prev_key_esc=false;_62c=typeof key=="string";}if(this.searchTimer){clearTimeout(this.searchTimer);}if(_62c){setTimeout(dojo.hitch(this,"_startSearchFromInput"),1);}},_autoCompleteText:function(text){var fn=this.focusNode;dijit.selectInputText(fn,fn.value.length);var _633=this.ignoreCase?"toLowerCase":"substr";if(text[_633](0).indexOf(this.focusNode.value[_633](0))==0){var cpos=this._getCaretPos(fn);if((cpos+1)>fn.value.length){fn.value=text;dijit.selectInputText(fn,cpos);}}else{fn.value=text;dijit.selectInputText(fn);}},_openResultList:function(_635,_636){if(this.disabled||this.readOnly||(_636.query[this.searchAttr]!=this._lastQuery)){return;}this._popupWidget.clearResultList();if(!_635.length){this._hideResultList();return;}this.item=null;var _637=new String(this.store.getValue(_635[0],this.searchAttr));if(_637&&this.autoComplete&&!this._prev_key_backspace&&(_636.query[this.searchAttr]!="*")){this.item=_635[0];this._autoCompleteText(_637);}_636._maxOptions=this._maxOptions;this._popupWidget.createOptions(_635,_636,dojo.hitch(this,"_getMenuLabelFromItem"));this._showResultList();if(_636.direction){if(1==_636.direction){this._popupWidget.highlightFirstOption();}else{if(-1==_636.direction){this._popupWidget.highlightLastOption();}}this._announceOption(this._popupWidget.getHighlightedOption());}},_showResultList:function(){this._hideResultList();var _638=this._popupWidget.getItems(),_639=Math.min(_638.length,this.maxListLength);this._arrowPressed();this.displayMessage("");dojo.style(this._popupWidget.domNode,{width:"",height:""});var best=this.open();var _63b=dojo.marginBox(this._popupWidget.domNode);this._popupWidget.domNode.style.overflow=((best.h==_63b.h)&&(best.w==_63b.w))?"hidden":"auto";var _63c=best.w;if(best.h<this._popupWidget.domNode.scrollHeight){_63c+=16;}dojo.marginBox(this._popupWidget.domNode,{h:best.h,w:Math.max(_63c,this.domNode.offsetWidth)});dijit.setWaiState(this.comboNode,"expanded","true");},_hideResultList:function(){if(this._isShowingNow){dijit.popup.close(this._popupWidget);this._arrowIdle();this._isShowingNow=false;dijit.setWaiState(this.comboNode,"expanded","false");dijit.removeWaiState(this.focusNode,"activedescendant");}},_setBlurValue:function(){var _63d=this.attr("displayedValue");var pw=this._popupWidget;if(pw&&(_63d==pw._messages["previousMessage"]||_63d==pw._messages["nextMessage"])){this._setValueAttr(this._lastValueReported,true);}else{this.attr("displayedValue",_63d);}},_onBlur:function(){this._hideResultList();this._arrowIdle();this.inherited(arguments);},_announceOption:function(node){if(node==null){return;}var _640;if(node==this._popupWidget.nextButton||node==this._popupWidget.previousButton){_640=node.innerHTML;}else{_640=this.store.getValue(node.item,this.searchAttr);}this.focusNode.value=this.focusNode.value.substring(0,this._getCaretPos(this.focusNode));dijit.setWaiState(this.focusNode,"activedescendant",dojo.attr(node,"id"));this._autoCompleteText(_640);},_selectOption:function(evt){var tgt=null;if(!evt){evt={target:this._popupWidget.getHighlightedOption()};}if(!evt.target){this.attr("displayedValue",this.attr("displayedValue"));return;}else{tgt=evt.target;}if(!evt.noHide){this._hideResultList();this._setCaretPos(this.focusNode,this.store.getValue(tgt.item,this.searchAttr).length);}this._doSelect(tgt);},_doSelect:function(tgt){this.item=tgt.item;this.attr("value",this.store.getValue(tgt.item,this.searchAttr));},_onArrowMouseDown:function(evt){if(this.disabled||this.readOnly){return;}dojo.stopEvent(evt);this.focus();if(this._isShowingNow){this._hideResultList();}else{this._startSearch("");}},_startSearchFromInput:function(){this._startSearch(this.focusNode.value.replace(/([\\\*\?])/g,"\\$1"));},_getQueryString:function(text){return dojo.string.substitute(this.queryExpr,[text]);},_startSearch:function(key){if(!this._popupWidget){var _647=this.id+"_popup";this._popupWidget=new dijit.form._ComboBoxMenu({onChange:dojo.hitch(this,this._selectOption),id:_647});dijit.removeWaiState(this.focusNode,"activedescendant");dijit.setWaiState(this.textbox,"owns",_647);}this.item=null;var _648=dojo.clone(this.query);this._lastInput=key;this._lastQuery=_648[this.searchAttr]=this._getQueryString(key);this.searchTimer=setTimeout(dojo.hitch(this,function(_649,_64a){var _64b={queryOptions:{ignoreCase:this.ignoreCase,deep:true},query:_649,onBegin:dojo.hitch(this,"_setMaxOptions"),onComplete:dojo.hitch(this,"_openResultList"),onError:function(_64c){console.error("dijit.form.ComboBox: "+_64c);dojo.hitch(_64a,"_hideResultList")();},start:0,count:this.pageSize};dojo.mixin(_64b,_64a.fetchProperties);var _64d=_64a.store.fetch(_64b);var _64e=function(_64f,_650){_64f.start+=_64f.count*_650;_64f.direction=_650;this.store.fetch(_64f);};this._nextSearch=this._popupWidget.onPage=dojo.hitch(this,_64e,_64d);},_648,this),this.searchDelay);},_setMaxOptions:function(size,_652){this._maxOptions=size;},_getValueField:function(){return this.searchAttr;},_arrowPressed:function(){if(!this.disabled&&!this.readOnly&&this.hasDownArrow){dojo.addClass(this.downArrowNode,"dijitArrowButtonActive");}},_arrowIdle:function(){if(!this.disabled&&!this.readOnly&&this.hasDownArrow){dojo.removeClass(this.downArrowNode,"dojoArrowButtonPushed");}},compositionend:function(evt){this._onKeyPress({charCode:-1});},constructor:function(){this.query={};this.fetchProperties={};},postMixInProperties:function(){if(!this.hasDownArrow){this.baseClass="dijitTextBox";}if(!this.store){var _654=this.srcNodeRef;this.store=new dijit.form._ComboBoxDataStore(_654);if(!this.value||((typeof _654.selectedIndex=="number")&&_654.selectedIndex.toString()===this.value)){var item=this.store.fetchSelectedItem();if(item){this.value=this.store.getValue(item,this._getValueField());}}}this.inherited(arguments);},postCreate:function(){var _656=dojo.query("label[for=\""+this.id+"\"]");if(_656.length){_656[0].id=(this.id+"_label");var cn=this.comboNode;dijit.setWaiState(cn,"labelledby",_656[0].id);}this.inherited(arguments);},uninitialize:function(){if(this._popupWidget){this._hideResultList();this._popupWidget.destroy();}},_getMenuLabelFromItem:function(item){var _659=this.store.getValue(item,this.labelAttr||this.searchAttr);var _65a=this.labelType;if(this.highlightMatch!="none"&&this.labelType=="text"&&this._lastInput){_659=this.doHighlight(_659,this._escapeHtml(this._lastInput));_65a="html";}return {html:_65a=="html",label:_659};},doHighlight:function(_65b,find){var _65d="i"+(this.highlightMatch=="all"?"g":"");var _65e=this._escapeHtml(_65b);find=dojo.regexp.escapeString(find);var ret=_65e.replace(new RegExp("(^|\\s)("+find+")",_65d),"$1<span class=\"dijitComboBoxHighlightMatch\">$2</span>");return ret;},_escapeHtml:function(str){str=String(str).replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");return str;},open:function(){this._isShowingNow=true;return dijit.popup.open({popup:this._popupWidget,around:this.domNode,parent:this});},reset:function(){this.item=null;this.inherited(arguments);}});dojo.declare("dijit.form._ComboBoxMenu",[dijit._Widget,dijit._Templated],{templateString:"<ul class='dijitReset dijitMenu' dojoAttachEvent='onmousedown:_onMouseDown,onmouseup:_onMouseUp,onmouseover:_onMouseOver,onmouseout:_onMouseOut' tabIndex='-1' style='overflow: \"auto\"; overflow-x: \"hidden\";'>"+"<li class='dijitMenuItem dijitMenuPreviousButton' dojoAttachPoint='previousButton' waiRole='option'></li>"+"<li class='dijitMenuItem dijitMenuNextButton' dojoAttachPoint='nextButton' waiRole='option'></li>"+"</ul>",_messages:null,postMixInProperties:function(){this._messages=dojo.i18n.getLocalization("dijit.form","ComboBox",this.lang);this.inherited(arguments);},_setValueAttr:function(_661){this.value=_661;this.onChange(_661);},onChange:function(_662){},onPage:function(_663){},postCreate:function(){this.previousButton.innerHTML=this._messages["previousMessage"];this.nextButton.innerHTML=this._messages["nextMessage"];this.inherited(arguments);},onClose:function(){this._blurOptionNode();},_createOption:function(item,_665){var _666=_665(item);var _667=dojo.doc.createElement("li");dijit.setWaiRole(_667,"option");if(_666.html){_667.innerHTML=_666.label;}else{_667.appendChild(dojo.doc.createTextNode(_666.label));}if(_667.innerHTML==""){_667.innerHTML="&nbsp;";}_667.item=item;return _667;},createOptions:function(_668,_669,_66a){this.previousButton.style.display=(_669.start==0)?"none":"";dojo.attr(this.previousButton,"id",this.id+"_prev");dojo.forEach(_668,function(item,i){var _66d=this._createOption(item,_66a);_66d.className="dijitReset dijitMenuItem";dojo.attr(_66d,"id",this.id+i);this.domNode.insertBefore(_66d,this.nextButton);},this);var _66e=false;if(_669._maxOptions&&_669._maxOptions!=-1){if((_669.start+_669.count)<_669._maxOptions){_66e=true;}else{if((_669.start+_669.count)>(_669._maxOptions-1)){if(_669.count==_668.length){_66e=true;}}}}else{if(_669.count==_668.length){_66e=true;}}this.nextButton.style.display=_66e?"":"none";dojo.attr(this.nextButton,"id",this.id+"_next");},clearResultList:function(){while(this.domNode.childNodes.length>2){this.domNode.removeChild(this.domNode.childNodes[this.domNode.childNodes.length-2]);}},getItems:function(){return this.domNode.childNodes;},getListLength:function(){return this.domNode.childNodes.length-2;},_onMouseDown:function(evt){dojo.stopEvent(evt);},_onMouseUp:function(evt){if(evt.target===this.domNode){return;}else{if(evt.target==this.previousButton){this.onPage(-1);}else{if(evt.target==this.nextButton){this.onPage(1);}else{var tgt=evt.target;while(!tgt.item){tgt=tgt.parentNode;}this._setValueAttr({target:tgt},true);}}}},_onMouseOver:function(evt){if(evt.target===this.domNode){return;}var tgt=evt.target;if(!(tgt==this.previousButton||tgt==this.nextButton)){while(!tgt.item){tgt=tgt.parentNode;}}this._focusOptionNode(tgt);},_onMouseOut:function(evt){if(evt.target===this.domNode){return;}this._blurOptionNode();},_focusOptionNode:function(node){if(this._highlighted_option!=node){this._blurOptionNode();this._highlighted_option=node;dojo.addClass(this._highlighted_option,"dijitMenuItemSelected");}},_blurOptionNode:function(){if(this._highlighted_option){dojo.removeClass(this._highlighted_option,"dijitMenuItemSelected");this._highlighted_option=null;}},_highlightNextOption:function(){var fc=this.domNode.firstChild;if(!this.getHighlightedOption()){this._focusOptionNode(fc.style.display=="none"?fc.nextSibling:fc);}else{var ns=this._highlighted_option.nextSibling;if(ns&&ns.style.display!="none"){this._focusOptionNode(ns);}}dijit.scrollIntoView(this._highlighted_option);},highlightFirstOption:function(){this._focusOptionNode(this.domNode.firstChild.nextSibling);dijit.scrollIntoView(this._highlighted_option);},highlightLastOption:function(){this._focusOptionNode(this.domNode.lastChild.previousSibling);dijit.scrollIntoView(this._highlighted_option);},_highlightPrevOption:function(){var lc=this.domNode.lastChild;if(!this.getHighlightedOption()){this._focusOptionNode(lc.style.display=="none"?lc.previousSibling:lc);}else{var ps=this._highlighted_option.previousSibling;if(ps&&ps.style.display!="none"){this._focusOptionNode(ps);}}dijit.scrollIntoView(this._highlighted_option);},_page:function(up){var _67b=0;var _67c=this.domNode.scrollTop;var _67d=dojo.style(this.domNode,"height");if(!this.getHighlightedOption()){this._highlightNextOption();}while(_67b<_67d){if(up){if(!this.getHighlightedOption().previousSibling||this._highlighted_option.previousSibling.style.display=="none"){break;}this._highlightPrevOption();}else{if(!this.getHighlightedOption().nextSibling||this._highlighted_option.nextSibling.style.display=="none"){break;}this._highlightNextOption();}var _67e=this.domNode.scrollTop;_67b+=(_67e-_67c)*(up?-1:1);_67c=_67e;}},pageUp:function(){this._page(true);},pageDown:function(){this._page(false);},getHighlightedOption:function(){var ho=this._highlighted_option;return (ho&&ho.parentNode)?ho:null;},handleKey:function(key){switch(key){case dojo.keys.DOWN_ARROW:this._highlightNextOption();break;case dojo.keys.PAGE_DOWN:this.pageDown();break;case dojo.keys.UP_ARROW:this._highlightPrevOption();break;case dojo.keys.PAGE_UP:this.pageUp();break;}}});dojo.declare("dijit.form.ComboBox",[dijit.form.ValidationTextBox,dijit.form.ComboBoxMixin],{_setValueAttr:function(_681,_682){if(!_681){_681="";}dijit.form.ValidationTextBox.prototype._setValueAttr.call(this,_681,_682);}});dojo.declare("dijit.form._ComboBoxDataStore",null,{constructor:function(root){this.root=root;dojo.query("> option",root).forEach(function(node){node.innerHTML=dojo.trim(node.innerHTML);});},getValue:function(item,_686,_687){return (_686=="value")?item.value:(item.innerText||item.textContent||"");},isItemLoaded:function(_688){return true;},getFeatures:function(){return {"dojo.data.api.Read":true,"dojo.data.api.Identity":true};},_fetchItems:function(args,_68a,_68b){if(!args.query){args.query={};}if(!args.query.name){args.query.name="";}if(!args.queryOptions){args.queryOptions={};}var _68c=dojo.data.util.filter.patternToRegExp(args.query.name,args.queryOptions.ignoreCase),_68d=dojo.query("> option",this.root).filter(function(_68e){return (_68e.innerText||_68e.textContent||"").match(_68c);});if(args.sort){_68d.sort(dojo.data.util.sorter.createSortFunction(args.sort,this));}_68a(_68d,args);},close:function(_68f){return;},getLabel:function(item){return item.innerHTML;},getIdentity:function(item){return dojo.attr(item,"value");},fetchItemByIdentity:function(args){var item=dojo.query("option[value='"+args.identity+"']",this.root)[0];args.onItem(item);},fetchSelectedItem:function(){var root=this.root,si=root.selectedIndex;return dojo.query("> option:nth-child("+(si!=-1?si+1:1)+")",root)[0];}});dojo.extend(dijit.form._ComboBoxDataStore,dojo.data.util.simpleFetch);}if(!dojo._hasResource["dojo.cldr.monetary"]){dojo._hasResource["dojo.cldr.monetary"]=true;dojo.provide("dojo.cldr.monetary");dojo.cldr.monetary.getData=function(code){var _697={ADP:0,BHD:3,BIF:0,BYR:0,CLF:0,CLP:0,DJF:0,ESP:0,GNF:0,IQD:3,ITL:0,JOD:3,JPY:0,KMF:0,KRW:0,KWD:3,LUF:0,LYD:3,MGA:0,MGF:0,OMR:3,PYG:0,RWF:0,TND:3,TRL:0,VUV:0,XAF:0,XOF:0,XPF:0};var _698={CHF:5};var _699=_697[code],_69a=_698[code];if(typeof _699=="undefined"){_699=2;}if(typeof _69a=="undefined"){_69a=0;}return {places:_699,round:_69a};};}if(!dojo._hasResource["dojo.currency"]){dojo._hasResource["dojo.currency"]=true;dojo.provide("dojo.currency");dojo.currency._mixInDefaults=function(_69b){_69b=_69b||{};_69b.type="currency";var _69c=dojo.i18n.getLocalization("dojo.cldr","currency",_69b.locale)||{};var iso=_69b.currency;var data=dojo.cldr.monetary.getData(iso);dojo.forEach(["displayName","symbol","group","decimal"],function(prop){data[prop]=_69c[iso+"_"+prop];});data.fractional=[true,false];return dojo.mixin(data,_69b);};dojo.currency.format=function(_6a0,_6a1){return dojo.number.format(_6a0,dojo.currency._mixInDefaults(_6a1));};dojo.currency.regexp=function(_6a2){return dojo.number.regexp(dojo.currency._mixInDefaults(_6a2));};dojo.currency.parse=function(_6a3,_6a4){return dojo.number.parse(_6a3,dojo.currency._mixInDefaults(_6a4));};}if(!dojo._hasResource["dijit.form.NumberTextBox"]){dojo._hasResource["dijit.form.NumberTextBox"]=true;dojo.provide("dijit.form.NumberTextBox");dojo.declare("dijit.form.NumberTextBoxMixin",null,{regExpGen:dojo.number.regexp,value:NaN,editOptions:{pattern:"#.######"},_formatter:dojo.number.format,postMixInProperties:function(){if(typeof this.constraints.max!="number"){this.constraints.max=9000000000000000;}this.inherited(arguments);},_onFocus:function(){if(this.disabled){return;}var val=this.attr("value");if(typeof val=="number"&&!isNaN(val)){var _6a6=this.format(val,this.constraints);if(_6a6!==undefined){this.textbox.value=_6a6;}}this.inherited(arguments);},format:function(_6a7,_6a8){if(typeof _6a7!="number"){return String(_6a7);}if(isNaN(_6a7)){return "";}if(("rangeCheck" in this)&&!this.rangeCheck(_6a7,_6a8)){return String(_6a7);}if(this.editOptions&&this._focused){_6a8=dojo.mixin(dojo.mixin({},this.editOptions),_6a8);}return this._formatter(_6a7,_6a8);},parse:dojo.number.parse,_getDisplayedValueAttr:function(){var v=this.inherited(arguments);return isNaN(v)?this.textbox.value:v;},filter:function(_6aa){return (_6aa===null||_6aa===""||_6aa===undefined)?NaN:this.inherited(arguments);},serialize:function(_6ab,_6ac){return (typeof _6ab!="number"||isNaN(_6ab))?"":this.inherited(arguments);},_setValueAttr:function(_6ad,_6ae,_6af){if(_6ad!==undefined&&_6af===undefined){if(typeof _6ad=="number"){if(isNaN(_6ad)){_6af="";}else{if(("rangeCheck" in this)&&!this.rangeCheck(_6ad,this.constraints)){_6af=String(_6ad);}}}else{if(!_6ad){_6af="";_6ad=NaN;}else{_6af=String(_6ad);_6ad=undefined;}}}this.inherited(arguments,[_6ad,_6ae,_6af]);},_getValueAttr:function(){var v=this.inherited(arguments);if(isNaN(v)&&this.textbox.value!==""){var n=Number(this.textbox.value);return (String(n)===this.textbox.value)?n:undefined;}else{return v;}}});dojo.declare("dijit.form.NumberTextBox",[dijit.form.RangeBoundTextBox,dijit.form.NumberTextBoxMixin],{});}if(!dojo._hasResource["dijit.form.CurrencyTextBox"]){dojo._hasResource["dijit.form.CurrencyTextBox"]=true;dojo.provide("dijit.form.CurrencyTextBox");dojo.declare("dijit.form.CurrencyTextBox",dijit.form.NumberTextBox,{currency:"",regExpGen:dojo.currency.regexp,_formatter:dojo.currency.format,parse:dojo.currency.parse,postMixInProperties:function(){this.constraints.currency=this.currency;this.inherited(arguments);}});}if(!dojo._hasResource["dojo.cldr.supplemental"]){dojo._hasResource["dojo.cldr.supplemental"]=true;dojo.provide("dojo.cldr.supplemental");dojo.cldr.supplemental.getFirstDayOfWeek=function(_6b2){var _6b3={mv:5,ae:6,af:6,bh:6,dj:6,dz:6,eg:6,er:6,et:6,iq:6,ir:6,jo:6,ke:6,kw:6,lb:6,ly:6,ma:6,om:6,qa:6,sa:6,sd:6,so:6,tn:6,ye:6,as:0,au:0,az:0,bw:0,ca:0,cn:0,fo:0,ge:0,gl:0,gu:0,hk:0,ie:0,il:0,is:0,jm:0,jp:0,kg:0,kr:0,la:0,mh:0,mo:0,mp:0,mt:0,nz:0,ph:0,pk:0,sg:0,th:0,tt:0,tw:0,um:0,us:0,uz:0,vi:0,za:0,zw:0,et:0,mw:0,ng:0,tj:0,sy:4};var _6b4=dojo.cldr.supplemental._region(_6b2);var dow=_6b3[_6b4];return (dow===undefined)?1:dow;};dojo.cldr.supplemental._region=function(_6b6){_6b6=dojo.i18n.normalizeLocale(_6b6);var tags=_6b6.split("-");var _6b8=tags[1];if(!_6b8){_6b8={de:"de",en:"us",es:"es",fi:"fi",fr:"fr",he:"il",hu:"hu",it:"it",ja:"jp",ko:"kr",nl:"nl",pt:"br",sv:"se",zh:"cn"}[tags[0]];}else{if(_6b8.length==4){_6b8=tags[2];}}return _6b8;};dojo.cldr.supplemental.getWeekend=function(_6b9){var _6ba={eg:5,il:5,sy:5,"in":0,ae:4,bh:4,dz:4,iq:4,jo:4,kw:4,lb:4,ly:4,ma:4,om:4,qa:4,sa:4,sd:4,tn:4,ye:4};var _6bb={ae:5,bh:5,dz:5,iq:5,jo:5,kw:5,lb:5,ly:5,ma:5,om:5,qa:5,sa:5,sd:5,tn:5,ye:5,af:5,ir:5,eg:6,il:6,sy:6};var _6bc=dojo.cldr.supplemental._region(_6b9);var _6bd=_6ba[_6bc];var end=_6bb[_6bc];if(_6bd===undefined){_6bd=6;}if(end===undefined){end=0;}return {start:_6bd,end:end};};}if(!dojo._hasResource["dojo.date"]){dojo._hasResource["dojo.date"]=true;dojo.provide("dojo.date");dojo.date.getDaysInMonth=function(_6bf){var _6c0=_6bf.getMonth();var days=[31,28,31,30,31,30,31,31,30,31,30,31];if(_6c0==1&&dojo.date.isLeapYear(_6bf)){return 29;}return days[_6c0];};dojo.date.isLeapYear=function(_6c2){var year=_6c2.getFullYear();return !(year%400)||(!(year%4)&&!!(year%100));};dojo.date.getTimezoneName=function(_6c4){var str=_6c4.toString();var tz="";var _6c7;var pos=str.indexOf("(");if(pos>-1){tz=str.substring(++pos,str.indexOf(")"));}else{var pat=/([A-Z\/]+) \d{4}$/;if((_6c7=str.match(pat))){tz=_6c7[1];}else{str=_6c4.toLocaleString();pat=/ ([A-Z\/]+)$/;if((_6c7=str.match(pat))){tz=_6c7[1];}}}return (tz=="AM"||tz=="PM")?"":tz;};dojo.date.compare=function(_6ca,_6cb,_6cc){_6ca=new Date(Number(_6ca));_6cb=new Date(Number(_6cb||new Date()));if(_6cc!=="undefined"){if(_6cc=="date"){_6ca.setHours(0,0,0,0);_6cb.setHours(0,0,0,0);}else{if(_6cc=="time"){_6ca.setFullYear(0,0,0);_6cb.setFullYear(0,0,0);}}}if(_6ca>_6cb){return 1;}if(_6ca<_6cb){return -1;}return 0;};dojo.date.add=function(date,_6ce,_6cf){var sum=new Date(Number(date));var _6d1=false;var _6d2="Date";switch(_6ce){case "day":break;case "weekday":var days,_6d4;var mod=_6cf%5;if(!mod){days=(_6cf>0)?5:-5;_6d4=(_6cf>0)?((_6cf-5)/5):((_6cf+5)/5);}else{days=mod;_6d4=parseInt(_6cf/5);}var strt=date.getDay();var adj=0;if(strt==6&&_6cf>0){adj=1;}else{if(strt==0&&_6cf<0){adj=-1;}}var trgt=strt+days;if(trgt==0||trgt==6){adj=(_6cf>0)?2:-2;}_6cf=(7*_6d4)+days+adj;break;case "year":_6d2="FullYear";_6d1=true;break;case "week":_6cf*=7;break;case "quarter":_6cf*=3;case "month":_6d1=true;_6d2="Month";break;case "hour":case "minute":case "second":case "millisecond":_6d2="UTC"+_6ce.charAt(0).toUpperCase()+_6ce.substring(1)+"s";}if(_6d2){sum["set"+_6d2](sum["get"+_6d2]()+_6cf);}if(_6d1&&(sum.getDate()<date.getDate())){sum.setDate(0);}return sum;};dojo.date.difference=function(_6d9,_6da,_6db){_6da=_6da||new Date();_6db=_6db||"day";var _6dc=_6da.getFullYear()-_6d9.getFullYear();var _6dd=1;switch(_6db){case "quarter":var m1=_6d9.getMonth();var m2=_6da.getMonth();var q1=Math.floor(m1/3)+1;var q2=Math.floor(m2/3)+1;q2+=(_6dc*4);_6dd=q2-q1;break;case "weekday":var days=Math.round(dojo.date.difference(_6d9,_6da,"day"));var _6e3=parseInt(dojo.date.difference(_6d9,_6da,"week"));var mod=days%7;if(mod==0){days=_6e3*5;}else{var adj=0;var aDay=_6d9.getDay();var bDay=_6da.getDay();_6e3=parseInt(days/7);mod=days%7;var _6e8=new Date(_6d9);_6e8.setDate(_6e8.getDate()+(_6e3*7));var _6e9=_6e8.getDay();if(days>0){switch(true){case aDay==6:adj=-1;break;case aDay==0:adj=0;break;case bDay==6:adj=-1;break;case bDay==0:adj=-2;break;case (_6e9+mod)>5:adj=-2;}}else{if(days<0){switch(true){case aDay==6:adj=0;break;case aDay==0:adj=1;break;case bDay==6:adj=2;break;case bDay==0:adj=1;break;case (_6e9+mod)<0:adj=2;}}}days+=adj;days-=(_6e3*2);}_6dd=days;break;case "year":_6dd=_6dc;break;case "month":_6dd=(_6da.getMonth()-_6d9.getMonth())+(_6dc*12);break;case "week":_6dd=parseInt(dojo.date.difference(_6d9,_6da,"day")/7);break;case "day":_6dd/=24;case "hour":_6dd/=60;case "minute":_6dd/=60;case "second":_6dd/=1000;case "millisecond":_6dd*=_6da.getTime()-_6d9.getTime();}return Math.round(_6dd);};}if(!dojo._hasResource["dojo.date.locale"]){dojo._hasResource["dojo.date.locale"]=true;dojo.provide("dojo.date.locale");(function(){function _6ea(_6eb,_6ec,_6ed,_6ee){return _6ee.replace(/([a-z])\1*/ig,function(_6ef){var s,pad;var c=_6ef.charAt(0);var l=_6ef.length;var _6f4=["abbr","wide","narrow"];switch(c){case "G":s=_6ec[(l<4)?"eraAbbr":"eraNames"][_6eb.getFullYear()<0?0:1];break;case "y":s=_6eb.getFullYear();switch(l){case 1:break;case 2:if(!_6ed){s=String(s);s=s.substr(s.length-2);break;}default:pad=true;}break;case "Q":case "q":s=Math.ceil((_6eb.getMonth()+1)/3);pad=true;break;case "M":var m=_6eb.getMonth();if(l<3){s=m+1;pad=true;}else{var _6f6=["months","format",_6f4[l-3]].join("-");s=_6ec[_6f6][m];}break;case "w":var _6f7=0;s=dojo.date.locale._getWeekOfYear(_6eb,_6f7);pad=true;break;case "d":s=_6eb.getDate();pad=true;break;case "D":s=dojo.date.locale._getDayOfYear(_6eb);pad=true;break;case "E":var d=_6eb.getDay();if(l<3){s=d+1;pad=true;}else{var _6f9=["days","format",_6f4[l-3]].join("-");s=_6ec[_6f9][d];}break;case "a":var _6fa=(_6eb.getHours()<12)?"am":"pm";s=_6ec[_6fa];break;case "h":case "H":case "K":case "k":var h=_6eb.getHours();switch(c){case "h":s=(h%12)||12;break;case "H":s=h;break;case "K":s=(h%12);break;case "k":s=h||24;break;}pad=true;break;case "m":s=_6eb.getMinutes();pad=true;break;case "s":s=_6eb.getSeconds();pad=true;break;case "S":s=Math.round(_6eb.getMilliseconds()*Math.pow(10,l-3));pad=true;break;case "v":case "z":s=dojo.date.getTimezoneName(_6eb);if(s){break;}l=4;case "Z":var _6fc=_6eb.getTimezoneOffset();var tz=[(_6fc<=0?"+":"-"),dojo.string.pad(Math.floor(Math.abs(_6fc)/60),2),dojo.string.pad(Math.abs(_6fc)%60,2)];if(l==4){tz.splice(0,0,"GMT");tz.splice(3,0,":");}s=tz.join("");break;default:throw new Error("dojo.date.locale.format: invalid pattern char: "+_6ee);}if(pad){s=dojo.string.pad(s,l);}return s;});};dojo.date.locale.format=function(_6fe,_6ff){_6ff=_6ff||{};var _700=dojo.i18n.normalizeLocale(_6ff.locale);var _701=_6ff.formatLength||"short";var _702=dojo.date.locale._getGregorianBundle(_700);var str=[];var _704=dojo.hitch(this,_6ea,_6fe,_702,_6ff.fullYear);if(_6ff.selector=="year"){var year=_6fe.getFullYear();if(_700.match(/^zh|^ja/)){year+="年";}return year;}if(_6ff.selector!="time"){var _706=_6ff.datePattern||_702["dateFormat-"+_701];if(_706){str.push(_707(_706,_704));}}if(_6ff.selector!="date"){var _708=_6ff.timePattern||_702["timeFormat-"+_701];if(_708){str.push(_707(_708,_704));}}var _709=str.join(" ");return _709;};dojo.date.locale.regexp=function(_70a){return dojo.date.locale._parseInfo(_70a).regexp;};dojo.date.locale._parseInfo=function(_70b){_70b=_70b||{};var _70c=dojo.i18n.normalizeLocale(_70b.locale);var _70d=dojo.date.locale._getGregorianBundle(_70c);var _70e=_70b.formatLength||"short";var _70f=_70b.datePattern||_70d["dateFormat-"+_70e];var _710=_70b.timePattern||_70d["timeFormat-"+_70e];var _711;if(_70b.selector=="date"){_711=_70f;}else{if(_70b.selector=="time"){_711=_710;}else{_711=_70f+" "+_710;}}var _712=[];var re=_707(_711,dojo.hitch(this,_714,_712,_70d,_70b));return {regexp:re,tokens:_712,bundle:_70d};};dojo.date.locale.parse=function(_715,_716){var info=dojo.date.locale._parseInfo(_716);var _718=info.tokens,_719=info.bundle;var re=new RegExp("^"+info.regexp+"$",info.strict?"":"i");var _71b=re.exec(_715);if(!_71b){return null;}var _71c=["abbr","wide","narrow"];var _71d=[1970,0,1,0,0,0,0];var amPm="";var _71f=dojo.every(_71b,function(v,i){if(!i){return true;}var _722=_718[i-1];var l=_722.length;switch(_722.charAt(0)){case "y":if(l!=2&&_716.strict){_71d[0]=v;}else{if(v<100){v=Number(v);var year=""+new Date().getFullYear();var _725=year.substring(0,2)*100;var _726=Math.min(Number(year.substring(2,4))+20,99);var num=(v<_726)?_725+v:_725-100+v;_71d[0]=num;}else{if(_716.strict){return false;}_71d[0]=v;}}break;case "M":if(l>2){var _728=_719["months-format-"+_71c[l-3]].concat();if(!_716.strict){v=v.replace(".","").toLowerCase();_728=dojo.map(_728,function(s){return s.replace(".","").toLowerCase();});}v=dojo.indexOf(_728,v);if(v==-1){return false;}}else{v--;}_71d[1]=v;break;case "E":case "e":var days=_719["days-format-"+_71c[l-3]].concat();if(!_716.strict){v=v.toLowerCase();days=dojo.map(days,function(d){return d.toLowerCase();});}v=dojo.indexOf(days,v);if(v==-1){return false;}break;case "D":_71d[1]=0;case "d":_71d[2]=v;break;case "a":var am=_716.am||_719.am;var pm=_716.pm||_719.pm;if(!_716.strict){var _72e=/\./g;v=v.replace(_72e,"").toLowerCase();am=am.replace(_72e,"").toLowerCase();pm=pm.replace(_72e,"").toLowerCase();}if(_716.strict&&v!=am&&v!=pm){return false;}amPm=(v==pm)?"p":(v==am)?"a":"";break;case "K":if(v==24){v=0;}case "h":case "H":case "k":if(v>23){return false;}_71d[3]=v;break;case "m":_71d[4]=v;break;case "s":_71d[5]=v;break;case "S":_71d[6]=v;}return true;});var _72f=+_71d[3];if(amPm==="p"&&_72f<12){_71d[3]=_72f+12;}else{if(amPm==="a"&&_72f==12){_71d[3]=0;}}var _730=new Date(_71d[0],_71d[1],_71d[2],_71d[3],_71d[4],_71d[5],_71d[6]);if(_716.strict){_730.setFullYear(_71d[0]);}var _731=_718.join("");if(!_71f||(_731.indexOf("M")!=-1&&_730.getMonth()!=_71d[1])||(_731.indexOf("d")!=-1&&_730.getDate()!=_71d[2])){return null;}return _730;};function _707(_732,_733,_734,_735){var _736=function(x){return x;};_733=_733||_736;_734=_734||_736;_735=_735||_736;var _738=_732.match(/(''|[^'])+/g);var _739=_732.charAt(0)=="'";dojo.forEach(_738,function(_73a,i){if(!_73a){_738[i]="";}else{_738[i]=(_739?_734:_733)(_73a);_739=!_739;}});return _735(_738.join(""));};function _714(_73c,_73d,_73e,_73f){_73f=dojo.regexp.escapeString(_73f);if(!_73e.strict){_73f=_73f.replace(" a"," ?a");}return _73f.replace(/([a-z])\1*/ig,function(_740){var s;var c=_740.charAt(0);var l=_740.length;var p2="",p3="";if(_73e.strict){if(l>1){p2="0"+"{"+(l-1)+"}";}if(l>2){p3="0"+"{"+(l-2)+"}";}}else{p2="0?";p3="0{0,2}";}switch(c){case "y":s="\\d{2,4}";break;case "M":s=(l>2)?"\\S+?":p2+"[1-9]|1[0-2]";break;case "D":s=p2+"[1-9]|"+p3+"[1-9][0-9]|[12][0-9][0-9]|3[0-5][0-9]|36[0-6]";break;case "d":s="[12]\\d|"+p2+"[1-9]|3[01]";break;case "w":s=p2+"[1-9]|[1-4][0-9]|5[0-3]";break;case "E":s="\\S+";break;case "h":s=p2+"[1-9]|1[0-2]";break;case "k":s=p2+"\\d|1[01]";break;case "H":s=p2+"\\d|1\\d|2[0-3]";break;case "K":s=p2+"[1-9]|1\\d|2[0-4]";break;case "m":case "s":s="[0-5]\\d";break;case "S":s="\\d{"+l+"}";break;case "a":var am=_73e.am||_73d.am||"AM";var pm=_73e.pm||_73d.pm||"PM";if(_73e.strict){s=am+"|"+pm;}else{s=am+"|"+pm;if(am!=am.toLowerCase()){s+="|"+am.toLowerCase();}if(pm!=pm.toLowerCase()){s+="|"+pm.toLowerCase();}if(s.indexOf(".")!=-1){s+="|"+s.replace(/\./g,"");}}s=s.replace(/\./g,"\\.");break;default:s=".*";}if(_73c){_73c.push(_740);}return "("+s+")";}).replace(/[\xa0 ]/g,"[\\s\\xa0]");};})();(function(){var _748=[];dojo.date.locale.addCustomFormats=function(_749,_74a){_748.push({pkg:_749,name:_74a});};dojo.date.locale._getGregorianBundle=function(_74b){var _74c={};dojo.forEach(_748,function(desc){var _74e=dojo.i18n.getLocalization(desc.pkg,desc.name,_74b);_74c=dojo.mixin(_74c,_74e);},this);return _74c;};})();dojo.date.locale.addCustomFormats("dojo.cldr","gregorian");dojo.date.locale.getNames=function(item,type,_751,_752){var _753;var _754=dojo.date.locale._getGregorianBundle(_752);var _755=[item,_751,type];if(_751=="standAlone"){var key=_755.join("-");_753=_754[key];if(_753[0]==1){_753=undefined;}}_755[1]="format";return (_753||_754[_755.join("-")]).concat();};dojo.date.locale.displayPattern=function(_757,_758){var _759="GyMdkHmsSEDFwWahKzYeugAZvcL",_75a=dojo.date.locale._getGregorianBundle(_758).patternChars;return dojo.map(_757,function(c){var i=_759.indexOf(c);return i<0?c:_75a.charAt(i);}).join("");};dojo.date.locale.isWeekend=function(_75d,_75e){var _75f=dojo.cldr.supplemental.getWeekend(_75e);var day=(_75d||new Date()).getDay();if(_75f.end<_75f.start){_75f.end+=7;if(day<_75f.start){day+=7;}}return day>=_75f.start&&day<=_75f.end;};dojo.date.locale._getDayOfYear=function(_761){return dojo.date.difference(new Date(_761.getFullYear(),0,1,_761.getHours()),_761)+1;};dojo.date.locale._getWeekOfYear=function(_762,_763){if(arguments.length==1){_763=0;}var _764=new Date(_762.getFullYear(),0,1).getDay();var adj=(_764-_763+7)%7;var week=Math.floor((dojo.date.locale._getDayOfYear(_762)+adj-1)/7);if(_764==_763){week++;}return week;};}if(!dojo._hasResource["dijit._Calendar"]){dojo._hasResource["dijit._Calendar"]=true;dojo.provide("dijit._Calendar");dojo.declare("dijit._Calendar",[dijit._Widget,dijit._Templated],{templateString:"<table cellspacing=\"0\" cellpadding=\"0\" class=\"dijitCalendarContainer\">\n\t<thead>\n\t\t<tr class=\"dijitReset dijitCalendarMonthContainer\" valign=\"top\">\n\t\t\t<th class='dijitReset' dojoAttachPoint=\"decrementMonth\">\n\t\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitCalendarIncrementControl dijitCalendarDecrease\" waiRole=\"presentation\">\n\t\t\t\t<span dojoAttachPoint=\"decreaseArrowNode\" class=\"dijitA11ySideArrow\">-</span>\n\t\t\t</th>\n\t\t\t<th class='dijitReset' colspan=\"5\">\n\t\t\t\t<div dojoAttachPoint=\"monthLabelSpacer\" class=\"dijitCalendarMonthLabelSpacer\"></div>\n\t\t\t\t<div dojoAttachPoint=\"monthLabelNode\" class=\"dijitCalendarMonthLabel\"></div>\n\t\t\t</th>\n\t\t\t<th class='dijitReset' dojoAttachPoint=\"incrementMonth\">\n\t\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitCalendarIncrementControl dijitCalendarIncrease\" waiRole=\"presentation\">\n\t\t\t\t<span dojoAttachPoint=\"increaseArrowNode\" class=\"dijitA11ySideArrow\">+</span>\n\t\t\t</th>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<th class=\"dijitReset dijitCalendarDayLabelTemplate\"><span class=\"dijitCalendarDayLabel\"></span></th>\n\t\t</tr>\n\t</thead>\n\t<tbody dojoAttachEvent=\"onclick: _onDayClick, onmouseover: _onDayMouseOver, onmouseout: _onDayMouseOut\" class=\"dijitReset dijitCalendarBodyContainer\">\n\t\t<tr class=\"dijitReset dijitCalendarWeekTemplate\">\n\t\t\t<td class=\"dijitReset dijitCalendarDateTemplate\"><span class=\"dijitCalendarDateLabel\"></span></td>\n\t\t</tr>\n\t</tbody>\n\t<tfoot class=\"dijitReset dijitCalendarYearContainer\">\n\t\t<tr>\n\t\t\t<td class='dijitReset' valign=\"top\" colspan=\"7\">\n\t\t\t\t<h3 class=\"dijitCalendarYearLabel\">\n\t\t\t\t\t<span dojoAttachPoint=\"previousYearLabelNode\" class=\"dijitInline dijitCalendarPreviousYear\"></span>\n\t\t\t\t\t<span dojoAttachPoint=\"currentYearLabelNode\" class=\"dijitInline dijitCalendarSelectedYear\"></span>\n\t\t\t\t\t<span dojoAttachPoint=\"nextYearLabelNode\" class=\"dijitInline dijitCalendarNextYear\"></span>\n\t\t\t\t</h3>\n\t\t\t</td>\n\t\t</tr>\n\t</tfoot>\n</table>\t\n",value:new Date(),dayWidth:"narrow",setValue:function(_767){dojo.deprecated("dijit.Calendar:setValue() is deprecated.  Use attr('value', ...) instead.","","2.0");this.attr("value",_767);},_getValueAttr:function(_768){var _768=new Date(this.value);_768.setHours(0,0,0,0);return _768;},_setValueAttr:function(_769){if(!this.value||dojo.date.compare(_769,this.value)){_769=new Date(_769);_769.setHours(1);this.displayMonth=new Date(_769);if(!this.isDisabledDate(_769,this.lang)){this.value=_769;this.onChange(this.attr("value"));}this._populateGrid();}},_setText:function(node,text){while(node.firstChild){node.removeChild(node.firstChild);}node.appendChild(dojo.doc.createTextNode(text));},_populateGrid:function(){var _76c=this.displayMonth;_76c.setDate(1);var _76d=_76c.getDay();var _76e=dojo.date.getDaysInMonth(_76c);var _76f=dojo.date.getDaysInMonth(dojo.date.add(_76c,"month",-1));var _770=new Date();var _771=this.value;var _772=dojo.cldr.supplemental.getFirstDayOfWeek(this.lang);if(_772>_76d){_772-=7;}dojo.query(".dijitCalendarDateTemplate",this.domNode).forEach(function(_773,i){i+=_772;var date=new Date(_76c);var _776,_777="dijitCalendar",adj=0;if(i<_76d){_776=_76f-_76d+i+1;adj=-1;_777+="Previous";}else{if(i>=(_76d+_76e)){_776=i-_76d-_76e+1;adj=1;_777+="Next";}else{_776=i-_76d+1;_777+="Current";}}if(adj){date=dojo.date.add(date,"month",adj);}date.setDate(_776);if(!dojo.date.compare(date,_770,"date")){_777="dijitCalendarCurrentDate "+_777;}if(!dojo.date.compare(date,_771,"date")){_777="dijitCalendarSelectedDate "+_777;}if(this.isDisabledDate(date,this.lang)){_777="dijitCalendarDisabledDate "+_777;}var _779=this.getClassForDate(date,this.lang);if(_779){_777=_779+" "+_777;}_773.className=_777+"Month dijitCalendarDateTemplate";_773.dijitDateValue=date.valueOf();var _77a=dojo.query(".dijitCalendarDateLabel",_773)[0];this._setText(_77a,date.getDate());},this);var _77b=dojo.date.locale.getNames("months","wide","standAlone",this.lang);this._setText(this.monthLabelNode,_77b[_76c.getMonth()]);var y=_76c.getFullYear()-1;var d=new Date();dojo.forEach(["previous","current","next"],function(name){d.setFullYear(y++);this._setText(this[name+"YearLabelNode"],dojo.date.locale.format(d,{selector:"year",locale:this.lang}));},this);var _77f=this;var _780=function(_781,_782,adj){_77f._connects.push(dijit.typematic.addMouseListener(_77f[_781],_77f,function(_784){if(_784>=0){_77f._adjustDisplay(_782,adj);}},0.8,500));};_780("incrementMonth","month",1);_780("decrementMonth","month",-1);_780("nextYearLabelNode","year",1);_780("previousYearLabelNode","year",-1);},goToToday:function(){this.attr("value",new Date());},postCreate:function(){this.inherited(arguments);dojo.setSelectable(this.domNode,false);var _785=dojo.hitch(this,function(_786,n){var _788=dojo.query(_786,this.domNode)[0];for(var i=0;i<n;i++){_788.parentNode.appendChild(_788.cloneNode(true));}});_785(".dijitCalendarDayLabelTemplate",6);_785(".dijitCalendarDateTemplate",6);_785(".dijitCalendarWeekTemplate",5);var _78a=dojo.date.locale.getNames("days",this.dayWidth,"standAlone",this.lang);var _78b=dojo.cldr.supplemental.getFirstDayOfWeek(this.lang);dojo.query(".dijitCalendarDayLabel",this.domNode).forEach(function(_78c,i){this._setText(_78c,_78a[(i+_78b)%7]);},this);var _78e=dojo.date.locale.getNames("months","wide","standAlone",this.lang);dojo.forEach(_78e,function(name){var _790=dojo.create("div",null,this.monthLabelSpacer);this._setText(_790,name);},this);this.value=null;this.attr("value",new Date());},_adjustDisplay:function(part,_792){this.displayMonth=dojo.date.add(this.displayMonth,part,_792);this._populateGrid();},_onDayClick:function(evt){dojo.stopEvent(evt);for(var node=evt.target;node&&!node.dijitDateValue;node=node.parentNode){}if(node&&!dojo.hasClass(node,"dijitCalendarDisabledDate")){this.attr("value",node.dijitDateValue);this.onValueSelected(this.attr("value"));}},_onDayMouseOver:function(evt){var node=evt.target;if(node&&(node.dijitDateValue||node==this.previousYearLabelNode||node==this.nextYearLabelNode)){dojo.addClass(node,"dijitCalendarHoveredDate");this._currentNode=node;}},_onDayMouseOut:function(evt){if(!this._currentNode){return;}for(var node=evt.relatedTarget;node;){if(node==this._currentNode){return;}try{node=node.parentNode;}catch(x){node=null;}}dojo.removeClass(this._currentNode,"dijitCalendarHoveredDate");this._currentNode=null;},onValueSelected:function(date){},onChange:function(date){},isDisabledDate:function(_79b,_79c){},getClassForDate:function(_79d,_79e){}});}if(!dojo._hasResource["dijit.form._DateTimeTextBox"]){dojo._hasResource["dijit.form._DateTimeTextBox"]=true;dojo.provide("dijit.form._DateTimeTextBox");dojo.declare("dijit.form._DateTimeTextBox",dijit.form.RangeBoundTextBox,{regExpGen:dojo.date.locale.regexp,compare:dojo.date.compare,format:function(_79f,_7a0){if(!_79f){return "";}return dojo.date.locale.format(_79f,_7a0);},parse:function(_7a1,_7a2){return dojo.date.locale.parse(_7a1,_7a2)||(this._isEmpty(_7a1)?null:undefined);},serialize:dojo.date.stamp.toISOString,value:new Date(""),_blankValue:null,popupClass:"",_selector:"",postMixInProperties:function(){this.inherited(arguments);if(!this.value||this.value.toString()==dijit.form._DateTimeTextBox.prototype.value.toString()){this.value=null;}var _7a3=this.constraints;_7a3.selector=this._selector;_7a3.fullYear=true;var _7a4=dojo.date.stamp.fromISOString;if(typeof _7a3.min=="string"){_7a3.min=_7a4(_7a3.min);}if(typeof _7a3.max=="string"){_7a3.max=_7a4(_7a3.max);}},_onFocus:function(evt){this._open();},_setValueAttr:function(_7a6,_7a7,_7a8){this.inherited(arguments);if(this._picker){if(!_7a6){_7a6=new Date();}this._picker.attr("value",_7a6);}},_open:function(){if(this.disabled||this.readOnly||!this.popupClass){return;}var _7a9=this;if(!this._picker){var _7aa=dojo.getObject(this.popupClass,false);this._picker=new _7aa({onValueSelected:function(_7ab){if(_7a9._tabbingAway){delete _7a9._tabbingAway;}else{_7a9.focus();}setTimeout(dojo.hitch(_7a9,"_close"),1);dijit.form._DateTimeTextBox.superclass._setValueAttr.call(_7a9,_7ab,true);},lang:_7a9.lang,constraints:_7a9.constraints,isDisabledDate:function(date){var _7ad=dojo.date.compare;var _7ae=_7a9.constraints;return _7ae&&(_7ae.min&&(_7ad(_7ae.min,date,"date")>0)||(_7ae.max&&_7ad(_7ae.max,date,"date")<0));}});this._picker.attr("value",this.attr("value")||new Date());}if(!this._opened){dijit.popup.open({parent:this,popup:this._picker,around:this.domNode,onCancel:dojo.hitch(this,this._close),onClose:function(){_7a9._opened=false;}});this._opened=true;}dojo.marginBox(this._picker.domNode,{w:this.domNode.offsetWidth});},_close:function(){if(this._opened){dijit.popup.close(this._picker);this._opened=false;}},_onBlur:function(){this._close();if(this._picker){this._picker.destroy();delete this._picker;}this.inherited(arguments);},_getDisplayedValueAttr:function(){return this.textbox.value;},_setDisplayedValueAttr:function(_7af,_7b0){this._setValueAttr(this.parse(_7af,this.constraints),_7b0,_7af);},destroy:function(){if(this._picker){this._picker.destroy();delete this._picker;}this.inherited(arguments);},postCreate:function(){this.inherited(arguments);this.connect(this.focusNode,"onkeypress",this._onKeyPress);},_onKeyPress:function(e){var p=this._picker,dk=dojo.keys;if(p&&this._opened&&p.handleKey){if(p.handleKey(e)===false){return;}}if(this._opened&&e.charOrCode==dk.ESCAPE&&!e.shiftKey&&!e.ctrlKey&&!e.altKey){this._close();dojo.stopEvent(e);}else{if(!this._opened&&e.charOrCode==dk.DOWN_ARROW){this._open();dojo.stopEvent(e);}else{if(e.charOrCode===dk.TAB){this._tabbingAway=true;}else{if(this._opened&&(e.keyChar||e.charOrCode===dk.BACKSPACE||e.charOrCode==dk.DELETE)){setTimeout(dojo.hitch(this,function(){dijit.placeOnScreenAroundElement(p.domNode.parentNode,this.domNode,{"BL":"TL","TL":"BL"},p.orient?dojo.hitch(p,"orient"):null);}),1);}}}}}});}if(!dojo._hasResource["dijit.form.DateTextBox"]){dojo._hasResource["dijit.form.DateTextBox"]=true;dojo.provide("dijit.form.DateTextBox");dojo.declare("dijit.form.DateTextBox",dijit.form._DateTimeTextBox,{baseClass:"dijitTextBox dijitDateTextBox",popupClass:"dijit._Calendar",_selector:"date",value:new Date("")});}if(!dojo._hasResource["dijit.form.FilteringSelect"]){dojo._hasResource["dijit.form.FilteringSelect"]=true;dojo.provide("dijit.form.FilteringSelect");dojo.declare("dijit.form.FilteringSelect",[dijit.form.MappedTextBox,dijit.form.ComboBoxMixin],{_isvalid:true,required:true,_lastDisplayedValue:"",isValid:function(){return this._isvalid||(!this.required&&this.attr("displayedValue")=="");},_callbackSetLabel:function(_7b4,_7b5,_7b6){if((_7b5&&_7b5.query[this.searchAttr]!=this._lastQuery)||(!_7b5&&_7b4.length&&this.store.getIdentity(_7b4[0])!=this._lastQuery)){return;}if(!_7b4.length){this.valueNode.value="";dijit.form.TextBox.superclass._setValueAttr.call(this,"",_7b6||(_7b6===undefined&&!this._focused));this._isvalid=false;this.validate(this._focused);this.item=null;}else{this._setValueFromItem(_7b4[0],_7b6);}},_openResultList:function(_7b7,_7b8){if(_7b8.query[this.searchAttr]!=this._lastQuery){return;}this._isvalid=_7b7.length!=0;this.validate(true);dijit.form.ComboBoxMixin.prototype._openResultList.apply(this,arguments);},_getValueAttr:function(){return this.valueNode.value;},_getValueField:function(){return "value";},_setValue:function(_7b9,_7ba,_7bb){this.valueNode.value=_7b9;dijit.form.FilteringSelect.superclass._setValueAttr.call(this,_7b9,_7bb,_7ba);this._lastDisplayedValue=_7ba;},_setValueAttr:function(_7bc,_7bd){if(!this._onChangeActive){_7bd=null;}this._lastQuery=_7bc;if(_7bc===null||_7bc===""){this._setDisplayedValueAttr("",_7bd);return;}var self=this;var _7bf=function(item,_7c1){if(item){if(self.store.isItemLoaded(item)){self._callbackSetLabel([item],undefined,_7c1);}else{self.store.loadItem({item:item,onItem:function(_7c2,_7c3){self._callbackSetLabel(_7c2,_7c3,_7c1);}});}}else{self._isvalid=false;self.validate(false);}};this.store.fetchItemByIdentity({identity:_7bc,onItem:function(item){_7bf(item,_7bd);}});},_setValueFromItem:function(item,_7c6){this._isvalid=true;this.item=item;this._setValue(this.store.getIdentity(item),this.labelFunc(item,this.store),_7c6);},labelFunc:function(item,_7c8){return _7c8.getValue(item,this.searchAttr);},_doSelect:function(tgt){this._setValueFromItem(tgt.item,true);},_setDisplayedValueAttr:function(_7ca,_7cb){if(!this._created){_7cb=false;}if(this.store){var _7cc=dojo.clone(this.query);this._lastQuery=_7cc[this.searchAttr]=_7ca.replace(/([\\\*\?])/g,"\\$1");this.textbox.value=_7ca;this._lastDisplayedValue=_7ca;var _7cd=this;var _7ce={query:_7cc,queryOptions:{ignoreCase:this.ignoreCase,deep:true},onComplete:function(_7cf,_7d0){dojo.hitch(_7cd,"_callbackSetLabel")(_7cf,_7d0,_7cb);},onError:function(_7d1){console.error("dijit.form.FilteringSelect: "+_7d1);dojo.hitch(_7cd,"_setValue")("",_7ca,false);}};dojo.mixin(_7ce,this.fetchProperties);this.store.fetch(_7ce);}},postMixInProperties:function(){this.inherited(arguments);this._isvalid=!this.required;},undo:function(){this.attr("displayedValue",this._lastDisplayedValue);}});}if(!dojo._hasResource["dijit.form._Spinner"]){dojo._hasResource["dijit.form._Spinner"]=true;dojo.provide("dijit.form._Spinner");dojo.declare("dijit.form._Spinner",dijit.form.RangeBoundTextBox,{defaultTimeout:500,timeoutChangeRate:0.9,smallDelta:1,largeDelta:10,templateString:"<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\n\tid=\"widget_${id}\"\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\" waiRole=\"presentation\"\n\t><div class=\"dijitInputLayoutContainer\"\n\t\t><div class=\"dijitReset dijitSpinnerButtonContainer\"\n\t\t\t>&nbsp;<div class=\"dijitReset dijitLeft dijitButtonNode dijitArrowButton dijitUpArrowButton\"\n\t\t\t\tdojoAttachPoint=\"upArrowNode\"\n\t\t\t\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse\"\n\t\t\t\tstateModifier=\"UpArrow\"\n\t\t\t\t><div class=\"dijitArrowButtonInner\">&thinsp;</div\n\t\t\t\t><div class=\"dijitArrowButtonChar\">&#9650;</div\n\t\t\t></div\n\t\t\t><div class=\"dijitReset dijitLeft dijitButtonNode dijitArrowButton dijitDownArrowButton\"\n\t\t\t\tdojoAttachPoint=\"downArrowNode\"\n\t\t\t\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse\"\n\t\t\t\tstateModifier=\"DownArrow\"\n\t\t\t\t><div class=\"dijitArrowButtonInner\">&thinsp;</div\n\t\t\t\t><div class=\"dijitArrowButtonChar\">&#9660;</div\n\t\t\t></div\n\t\t></div\n\t\t><div class=\"dijitReset dijitValidationIcon\"><br></div\n\t\t><div class=\"dijitReset dijitValidationIconText\">&Chi;</div\n\t\t><div class=\"dijitReset dijitInputField\"\n\t\t\t><input class='dijitReset' dojoAttachPoint=\"textbox,focusNode\" type=\"${type}\" dojoAttachEvent=\"onkeypress:_onKeyPress\"\n\t\t\t\twaiRole=\"spinbutton\" autocomplete=\"off\" ${nameAttrSetting}\n\t\t/></div\n\t></div\n></div>\n",baseClass:"dijitSpinner",adjust:function(val,_7d3){return val;},_arrowState:function(node,_7d5){this._active=_7d5;this.stateModifier=node.getAttribute("stateModifier")||"";this._setStateClass();},_arrowPressed:function(_7d6,_7d7,_7d8){if(this.disabled||this.readOnly){return;}this._arrowState(_7d6,true);this._setValueAttr(this.adjust(this.attr("value"),_7d7*_7d8),false);dijit.selectInputText(this.textbox,this.textbox.value.length);},_arrowReleased:function(node){this._wheelTimer=null;if(this.disabled||this.readOnly){return;}this._arrowState(node,false);},_typematicCallback:function(_7da,node,evt){var inc=this.smallDelta;if(node==this.textbox){var k=dojo.keys;var key=evt.charOrCode;inc=(key==k.PAGE_UP||key==k.PAGE_DOWN)?this.largeDelta:this.smallDelta;node=(key==k.UP_ARROW||key==k.PAGE_UP)?this.upArrowNode:this.downArrowNode;}if(_7da==-1){this._arrowReleased(node);}else{this._arrowPressed(node,(node==this.upArrowNode)?1:-1,inc);}},_wheelTimer:null,_mouseWheeled:function(evt){dojo.stopEvent(evt);var _7e1=evt.detail?(evt.detail*-1):(evt.wheelDelta/120);if(_7e1!==0){var node=this[(_7e1>0?"upArrowNode":"downArrowNode")];this._arrowPressed(node,_7e1,this.smallDelta);if(!this._wheelTimer){clearTimeout(this._wheelTimer);}this._wheelTimer=setTimeout(dojo.hitch(this,"_arrowReleased",node),50);}},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,!dojo.isMozilla?"onmousewheel":"DOMMouseScroll","_mouseWheeled");this._connects.push(dijit.typematic.addListener(this.upArrowNode,this.textbox,{charOrCode:dojo.keys.UP_ARROW,ctrlKey:false,altKey:false,shiftKey:false},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout));this._connects.push(dijit.typematic.addListener(this.downArrowNode,this.textbox,{charOrCode:dojo.keys.DOWN_ARROW,ctrlKey:false,altKey:false,shiftKey:false},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout));this._connects.push(dijit.typematic.addListener(this.upArrowNode,this.textbox,{charOrCode:dojo.keys.PAGE_UP,ctrlKey:false,altKey:false,shiftKey:false},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout));this._connects.push(dijit.typematic.addListener(this.downArrowNode,this.textbox,{charOrCode:dojo.keys.PAGE_DOWN,ctrlKey:false,altKey:false,shiftKey:false},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout));if(dojo.isIE){var _7e3=this;this.connect(this.domNode,"onresize",function(){setTimeout(dojo.hitch(_7e3,function(){var sz=this.upArrowNode.parentNode.offsetHeight;if(sz){this.upArrowNode.style.height=sz>>1;this.downArrowNode.style.height=sz-(sz>>1);this.focusNode.parentNode.style.height=sz;}this._setStateClass();}),0);});}}});}if(!dojo._hasResource["dijit.form.NumberSpinner"]){dojo._hasResource["dijit.form.NumberSpinner"]=true;dojo.provide("dijit.form.NumberSpinner");dojo.declare("dijit.form.NumberSpinner",[dijit.form._Spinner,dijit.form.NumberTextBoxMixin],{required:true,adjust:function(val,_7e6){var tc=this.constraints,v=isNaN(val),_7e9=!isNaN(tc.max),_7ea=!isNaN(tc.min);if(v&&_7e6!=0){val=(_7e6>0)?_7ea?tc.min:_7e9?tc.max:0:_7e9?this.constraints.max:_7ea?tc.min:0;}var _7eb=val+_7e6;if(v||isNaN(_7eb)){return val;}if(_7e9&&(_7eb>tc.max)){_7eb=tc.max;}if(_7ea&&(_7eb<tc.min)){_7eb=tc.min;}return _7eb;},_onKeyPress:function(e){if((e.charOrCode==dojo.keys.HOME||e.charOrCode==dojo.keys.END)&&!e.ctrlKey&&!e.altKey){var _7ed=this.constraints[(e.charOrCode==dojo.keys.HOME?"min":"max")];if(_7ed){this._setValueAttr(_7ed,true);}dojo.stopEvent(e);}}});}if(!dojo._hasResource["dijit.form.HorizontalSlider"]){dojo._hasResource["dijit.form.HorizontalSlider"]=true;dojo.provide("dijit.form.HorizontalSlider");dojo.declare("dijit.form.HorizontalSlider",[dijit.form._FormValueWidget,dijit._Container],{templateString:"<table class=\"dijit dijitReset dijitSlider\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" rules=\"none\" dojoAttachEvent=\"onkeypress:_onKeyPress\"\n\t><tr class=\"dijitReset\"\n\t\t><td class=\"dijitReset\" colspan=\"2\"></td\n\t\t><td dojoAttachPoint=\"containerNode,topDecoration\" class=\"dijitReset\" style=\"text-align:center;width:100%;\"></td\n\t\t><td class=\"dijitReset\" colspan=\"2\"></td\n\t></tr\n\t><tr class=\"dijitReset\"\n\t\t><td class=\"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerH\"\n\t\t\t><div class=\"dijitSliderDecrementIconH\" tabIndex=\"-1\" style=\"display:none\" dojoAttachPoint=\"decrementButton\"><span class=\"dijitSliderButtonInner\">-</span></div\n\t\t></td\n\t\t><td class=\"dijitReset\"\n\t\t\t><div class=\"dijitSliderBar dijitSliderBumper dijitSliderBumperH dijitSliderLeftBumper dijitSliderLeftBumper\" dojoAttachEvent=\"onmousedown:_onClkDecBumper\"></div\n\t\t></td\n\t\t><td class=\"dijitReset\"\n\t\t\t><input dojoAttachPoint=\"valueNode\" type=\"hidden\" ${nameAttrSetting}\n\t\t\t/><div class=\"dijitReset dijitSliderBarContainerH\" waiRole=\"presentation\" dojoAttachPoint=\"sliderBarContainer\"\n\t\t\t\t><div waiRole=\"presentation\" dojoAttachPoint=\"progressBar\" class=\"dijitSliderBar dijitSliderBarH dijitSliderProgressBar dijitSliderProgressBarH\" dojoAttachEvent=\"onmousedown:_onBarClick\"\n\t\t\t\t\t><div class=\"dijitSliderMoveable dijitSliderMoveableH\" \n\t\t\t\t\t\t><div dojoAttachPoint=\"sliderHandle,focusNode\" class=\"dijitSliderImageHandle dijitSliderImageHandleH\" dojoAttachEvent=\"onmousedown:_onHandleClick\" waiRole=\"slider\" valuemin=\"${minimum}\" valuemax=\"${maximum}\"></div\n\t\t\t\t\t></div\n\t\t\t\t></div\n\t\t\t\t><div waiRole=\"presentation\" dojoAttachPoint=\"remainingBar\" class=\"dijitSliderBar dijitSliderBarH dijitSliderRemainingBar dijitSliderRemainingBarH\" dojoAttachEvent=\"onmousedown:_onBarClick\"></div\n\t\t\t></div\n\t\t></td\n\t\t><td class=\"dijitReset\"\n\t\t\t><div class=\"dijitSliderBar dijitSliderBumper dijitSliderBumperH dijitSliderRightBumper dijitSliderRightBumper\" dojoAttachEvent=\"onmousedown:_onClkIncBumper\"></div\n\t\t></td\n\t\t><td class=\"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerH\" style=\"right:0px;\"\n\t\t\t><div class=\"dijitSliderIncrementIconH\" tabIndex=\"-1\" style=\"display:none\" dojoAttachPoint=\"incrementButton\"><span class=\"dijitSliderButtonInner\">+</span></div\n\t\t></td\n\t></tr\n\t><tr class=\"dijitReset\"\n\t\t><td class=\"dijitReset\" colspan=\"2\"></td\n\t\t><td dojoAttachPoint=\"containerNode,bottomDecoration\" class=\"dijitReset\" style=\"text-align:center;\"></td\n\t\t><td class=\"dijitReset\" colspan=\"2\"></td\n\t></tr\n></table>\n",value:0,showButtons:true,minimum:0,maximum:100,discreteValues:Infinity,pageIncrement:2,clickSelect:true,slideDuration:dijit.defaultDuration,widgetsInTemplate:true,attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{id:""}),baseClass:"dijitSlider",_mousePixelCoord:"pageX",_pixelCount:"w",_startingPixelCoord:"x",_startingPixelCount:"l",_handleOffsetCoord:"left",_progressPixelSize:"width",_onKeyPress:function(e){if(this.disabled||this.readOnly||e.altKey||e.ctrlKey){return;}switch(e.charOrCode){case dojo.keys.HOME:this._setValueAttr(this.minimum,true);break;case dojo.keys.END:this._setValueAttr(this.maximum,true);break;case ((this._descending||this.isLeftToRight())?dojo.keys.RIGHT_ARROW:dojo.keys.LEFT_ARROW):case (this._descending===false?dojo.keys.DOWN_ARROW:dojo.keys.UP_ARROW):case (this._descending===false?dojo.keys.PAGE_DOWN:dojo.keys.PAGE_UP):this.increment(e);break;case ((this._descending||this.isLeftToRight())?dojo.keys.LEFT_ARROW:dojo.keys.RIGHT_ARROW):case (this._descending===false?dojo.keys.UP_ARROW:dojo.keys.DOWN_ARROW):case (this._descending===false?dojo.keys.PAGE_UP:dojo.keys.PAGE_DOWN):this.decrement(e);break;default:return;}dojo.stopEvent(e);},_onHandleClick:function(e){if(this.disabled||this.readOnly){return;}if(!dojo.isIE){dijit.focus(this.sliderHandle);}dojo.stopEvent(e);},_isReversed:function(){return !this.isLeftToRight();},_onBarClick:function(e){if(this.disabled||this.readOnly||!this.clickSelect){return;}dijit.focus(this.sliderHandle);dojo.stopEvent(e);var _7f1=dojo.coords(this.sliderBarContainer,true);var _7f2=e[this._mousePixelCoord]-_7f1[this._startingPixelCoord];this._setPixelValue(this._isReversed()?(_7f1[this._pixelCount]-_7f2):_7f2,_7f1[this._pixelCount],true);this._movable.onMouseDown(e);},_setPixelValue:function(_7f3,_7f4,_7f5){if(this.disabled||this.readOnly){return;}_7f3=_7f3<0?0:_7f4<_7f3?_7f4:_7f3;var _7f6=this.discreteValues;if(_7f6<=1||_7f6==Infinity){_7f6=_7f4;}_7f6--;var _7f7=_7f4/_7f6;var _7f8=Math.round(_7f3/_7f7);this._setValueAttr((this.maximum-this.minimum)*_7f8/_7f6+this.minimum,_7f5);},_setValueAttr:function(_7f9,_7fa){this.valueNode.value=this.value=_7f9;dijit.setWaiState(this.focusNode,"valuenow",_7f9);this.inherited(arguments);var _7fb=(_7f9-this.minimum)/(this.maximum-this.minimum);var _7fc=(this._descending===false)?this.remainingBar:this.progressBar;var _7fd=(this._descending===false)?this.progressBar:this.remainingBar;if(this._inProgressAnim&&this._inProgressAnim.status!="stopped"){this._inProgressAnim.stop(true);}if(_7fa&&this.slideDuration>0&&_7fc.style[this._progressPixelSize]){var _7fe=this;var _7ff={};var _800=parseFloat(_7fc.style[this._progressPixelSize]);var _801=this.slideDuration*(_7fb-_800/100);if(_801==0){return;}if(_801<0){_801=0-_801;}_7ff[this._progressPixelSize]={start:_800,end:_7fb*100,units:"%"};this._inProgressAnim=dojo.animateProperty({node:_7fc,duration:_801,onAnimate:function(v){_7fd.style[_7fe._progressPixelSize]=(100-parseFloat(v[_7fe._progressPixelSize]))+"%";},onEnd:function(){delete _7fe._inProgressAnim;},properties:_7ff});this._inProgressAnim.play();}else{_7fc.style[this._progressPixelSize]=(_7fb*100)+"%";_7fd.style[this._progressPixelSize]=((1-_7fb)*100)+"%";}},_bumpValue:function(_803){if(this.disabled||this.readOnly){return;}var s=dojo.getComputedStyle(this.sliderBarContainer);var c=dojo._getContentBox(this.sliderBarContainer,s);var _806=this.discreteValues;if(_806<=1||_806==Infinity){_806=c[this._pixelCount];}_806--;var _807=(this.value-this.minimum)*_806/(this.maximum-this.minimum)+_803;if(_807<0){_807=0;}if(_807>_806){_807=_806;}_807=_807*(this.maximum-this.minimum)/_806+this.minimum;this._setValueAttr(_807,true);},_onClkBumper:function(val){if(this.disabled||this.readOnly||!this.clickSelect){return;}this._setValueAttr(val,true);},_onClkIncBumper:function(){this._onClkBumper(this._descending===false?this.minimum:this.maximum);},_onClkDecBumper:function(){this._onClkBumper(this._descending===false?this.maximum:this.minimum);},decrement:function(e){this._bumpValue(e.charOrCode==dojo.keys.PAGE_DOWN?-this.pageIncrement:-1);},increment:function(e){this._bumpValue(e.charOrCode==dojo.keys.PAGE_UP?this.pageIncrement:1);},_mouseWheeled:function(evt){dojo.stopEvent(evt);var _80c=!dojo.isMozilla;var _80d=evt[(_80c?"wheelDelta":"detail")]*(_80c?1:-1);this[(_80d<0?"decrement":"increment")](evt);},startup:function(){dojo.forEach(this.getChildren(),function(_80e){if(this[_80e.container]!=this.containerNode){this[_80e.container].appendChild(_80e.domNode);}},this);},_typematicCallback:function(_80f,_810,e){if(_80f==-1){return;}this[(_810==(this._descending?this.incrementButton:this.decrementButton))?"decrement":"increment"](e);},postCreate:function(){if(this.showButtons){this.incrementButton.style.display="";this.decrementButton.style.display="";this._connects.push(dijit.typematic.addMouseListener(this.decrementButton,this,"_typematicCallback",25,500));this._connects.push(dijit.typematic.addMouseListener(this.incrementButton,this,"_typematicCallback",25,500));}this.connect(this.domNode,!dojo.isMozilla?"onmousewheel":"DOMMouseScroll","_mouseWheeled");var _812=this;var _813=function(){dijit.form._SliderMover.apply(this,arguments);this.widget=_812;};dojo.extend(_813,dijit.form._SliderMover.prototype);this._movable=new dojo.dnd.Moveable(this.sliderHandle,{mover:_813});var _814=dojo.query("label[for=\""+this.id+"\"]");if(_814.length){_814[0].id=(this.id+"_label");dijit.setWaiState(this.focusNode,"labelledby",_814[0].id);}dijit.setWaiState(this.focusNode,"valuemin",this.minimum);dijit.setWaiState(this.focusNode,"valuemax",this.maximum);this.inherited(arguments);},destroy:function(){this._movable.destroy();if(this._inProgressAnim&&this._inProgressAnim.status!="stopped"){this._inProgressAnim.stop(true);}this.inherited(arguments);}});dojo.declare("dijit.form._SliderMover",dojo.dnd.Mover,{onMouseMove:function(e){var _816=this.widget;var _817=_816._abspos;if(!_817){_817=_816._abspos=dojo.coords(_816.sliderBarContainer,true);_816._setPixelValue_=dojo.hitch(_816,"_setPixelValue");_816._isReversed_=_816._isReversed();}var _818=e[_816._mousePixelCoord]-_817[_816._startingPixelCoord];_816._setPixelValue_(_816._isReversed_?(_817[_816._pixelCount]-_818):_818,_817[_816._pixelCount],false);},destroy:function(e){dojo.dnd.Mover.prototype.destroy.apply(this,arguments);var _81a=this.widget;_81a._abspos=null;_81a._setValueAttr(_81a.value,true);}});}if(!dojo._hasResource["dijit.form.VerticalSlider"]){dojo._hasResource["dijit.form.VerticalSlider"]=true;dojo.provide("dijit.form.VerticalSlider");dojo.declare("dijit.form.VerticalSlider",dijit.form.HorizontalSlider,{templateString:"<table class=\"dijitReset dijitSlider\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" rules=\"none\" dojoAttachEvent=\"onkeypress:_onKeyPress\"\n><tbody class=\"dijitReset\"\n\t><tr class=\"dijitReset\"\n\t\t><td class=\"dijitReset\"></td\n\t\t><td class=\"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerV\"\n\t\t\t><div class=\"dijitSliderIncrementIconV\" tabIndex=\"-1\" style=\"display:none\" dojoAttachPoint=\"decrementButton\"><span class=\"dijitSliderButtonInner\">+</span></div\n\t\t></td\n\t\t><td class=\"dijitReset\"></td\n\t></tr\n\t><tr class=\"dijitReset\"\n\t\t><td class=\"dijitReset\"></td\n\t\t><td class=\"dijitReset\"\n\t\t\t><center><div class=\"dijitSliderBar dijitSliderBumper dijitSliderBumperV dijitSliderTopBumper dijitSliderTopBumper\" dojoAttachEvent=\"onmousedown:_onClkIncBumper\"></div></center\n\t\t></td\n\t\t><td class=\"dijitReset\"></td\n\t></tr\n\t><tr class=\"dijitReset\"\n\t\t><td dojoAttachPoint=\"leftDecoration\" class=\"dijitReset\" style=\"text-align:center;height:100%;\"></td\n\t\t><td class=\"dijitReset\" style=\"height:100%;\"\n\t\t\t><input dojoAttachPoint=\"valueNode\" type=\"hidden\" ${nameAttrSetting}\n\t\t\t/><center class=\"dijitReset dijitSliderBarContainerV\" waiRole=\"presentation\" dojoAttachPoint=\"sliderBarContainer\"\n\t\t\t\t><div waiRole=\"presentation\" dojoAttachPoint=\"remainingBar\" class=\"dijitSliderBar dijitSliderBarV dijitSliderRemainingBar dijitSliderRemainingBarV\" dojoAttachEvent=\"onmousedown:_onBarClick\"><!--#5629--></div\n\t\t\t\t><div waiRole=\"presentation\" dojoAttachPoint=\"progressBar\" class=\"dijitSliderBar dijitSliderBarV dijitSliderProgressBar dijitSliderProgressBarV\" dojoAttachEvent=\"onmousedown:_onBarClick\"\n\t\t\t\t\t><div class=\"dijitSliderMoveable\" style=\"vertical-align:top;\" \n\t\t\t\t\t\t><div dojoAttachPoint=\"sliderHandle,focusNode\" class=\"dijitSliderImageHandle dijitSliderImageHandleV\" dojoAttachEvent=\"onmousedown:_onHandleClick\" waiRole=\"slider\" valuemin=\"${minimum}\" valuemax=\"${maximum}\"></div\n\t\t\t\t\t></div\n\t\t\t\t></div\n\t\t\t></center\n\t\t></td\n\t\t><td dojoAttachPoint=\"containerNode,rightDecoration\" class=\"dijitReset\" style=\"text-align:center;height:100%;\"></td\n\t></tr\n\t><tr class=\"dijitReset\"\n\t\t><td class=\"dijitReset\"></td\n\t\t><td class=\"dijitReset\"\n\t\t\t><center><div class=\"dijitSliderBar dijitSliderBumper dijitSliderBumperV dijitSliderBottomBumper dijitSliderBottomBumper\" dojoAttachEvent=\"onmousedown:_onClkDecBumper\"></div></center\n\t\t></td\n\t\t><td class=\"dijitReset\"></td\n\t></tr\n\t><tr class=\"dijitReset\"\n\t\t><td class=\"dijitReset\"></td\n\t\t><td class=\"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerV\"\n\t\t\t><div class=\"dijitSliderDecrementIconV\" tabIndex=\"-1\" style=\"display:none\" dojoAttachPoint=\"incrementButton\"><span class=\"dijitSliderButtonInner\">-</span></div\n\t\t></td\n\t\t><td class=\"dijitReset\"></td\n\t></tr\n></tbody></table>\n",_mousePixelCoord:"pageY",_pixelCount:"h",_startingPixelCoord:"y",_startingPixelCount:"t",_handleOffsetCoord:"top",_progressPixelSize:"height",_descending:true,startup:function(){if(this._started){return;}if(!this.isLeftToRight()&&dojo.isMoz){if(this.leftDecoration){this._rtlRectify(this.leftDecoration);}if(this.rightDecoration){this._rtlRectify(this.rightDecoration);}}this.inherited(arguments);},_isReversed:function(){return this._descending;},_rtlRectify:function(_81b){var _81c=[];while(_81b.firstChild){_81c.push(_81b.firstChild);_81b.removeChild(_81b.firstChild);}for(var i=_81c.length-1;i>=0;i--){if(_81c[i]){_81b.appendChild(_81c[i]);}}}});}if(!dojo._hasResource["dijit.form.HorizontalRule"]){dojo._hasResource["dijit.form.HorizontalRule"]=true;dojo.provide("dijit.form.HorizontalRule");dojo.declare("dijit.form.HorizontalRule",[dijit._Widget,dijit._Templated],{templateString:"<div class=\"dijitRuleContainer dijitRuleContainerH\"></div>",count:3,container:"containerNode",ruleStyle:"",_positionPrefix:"<div class=\"dijitRuleMark dijitRuleMarkH\" style=\"left:",_positionSuffix:"%;",_suffix:"\"></div>",_genHTML:function(pos,ndx){return this._positionPrefix+pos+this._positionSuffix+this.ruleStyle+this._suffix;},_isHorizontal:true,postCreate:function(){var _820;if(this.count==1){_820=this._genHTML(50,0);}else{var i;var _822=100/(this.count-1);if(!this._isHorizontal||this.isLeftToRight()){_820=this._genHTML(0,0);for(i=1;i<this.count-1;i++){_820+=this._genHTML(_822*i,i);}_820+=this._genHTML(100,this.count-1);}else{_820=this._genHTML(100,0);for(i=1;i<this.count-1;i++){_820+=this._genHTML(100-_822*i,i);}_820+=this._genHTML(0,this.count-1);}}this.domNode.innerHTML=_820;}});}if(!dojo._hasResource["dijit.form.VerticalRule"]){dojo._hasResource["dijit.form.VerticalRule"]=true;dojo.provide("dijit.form.VerticalRule");dojo.declare("dijit.form.VerticalRule",dijit.form.HorizontalRule,{templateString:"<div class=\"dijitRuleContainer dijitRuleContainerV\"></div>",_positionPrefix:"<div class=\"dijitRuleMark dijitRuleMarkV\" style=\"top:",_isHorizontal:false});}if(!dojo._hasResource["dijit.form.HorizontalRuleLabels"]){dojo._hasResource["dijit.form.HorizontalRuleLabels"]=true;dojo.provide("dijit.form.HorizontalRuleLabels");dojo.declare("dijit.form.HorizontalRuleLabels",dijit.form.HorizontalRule,{templateString:"<div class=\"dijitRuleContainer dijitRuleContainerH dijitRuleLabelsContainer dijitRuleLabelsContainerH\"></div>",labelStyle:"",labels:[],numericMargin:0,minimum:0,maximum:1,constraints:{pattern:"#%"},_positionPrefix:"<div class=\"dijitRuleLabelContainer dijitRuleLabelContainerH\" style=\"left:",_labelPrefix:"\"><span class=\"dijitRuleLabel dijitRuleLabelH\">",_suffix:"</span></div>",_calcPosition:function(pos){return pos;},_genHTML:function(pos,ndx){return this._positionPrefix+this._calcPosition(pos)+this._positionSuffix+this.labelStyle+this._labelPrefix+this.labels[ndx]+this._suffix;},getLabels:function(){var _826=this.labels;if(!_826.length){_826=dojo.query("> li",this.srcNodeRef).map(function(node){return String(node.innerHTML);});}this.srcNodeRef.innerHTML="";if(!_826.length&&this.count>1){var _828=this.minimum;var inc=(this.maximum-_828)/(this.count-1);for(var i=0;i<this.count;i++){_826.push((i<this.numericMargin||i>=(this.count-this.numericMargin))?"":dojo.number.format(_828,this.constraints));_828+=inc;}}return _826;},postMixInProperties:function(){this.inherited(arguments);this.labels=this.getLabels();this.count=this.labels.length;}});}if(!dojo._hasResource["dijit.form.VerticalRuleLabels"]){dojo._hasResource["dijit.form.VerticalRuleLabels"]=true;dojo.provide("dijit.form.VerticalRuleLabels");dojo.declare("dijit.form.VerticalRuleLabels",dijit.form.HorizontalRuleLabels,{templateString:"<div class=\"dijitRuleContainer dijitRuleContainerV dijitRuleLabelsContainer dijitRuleLabelsContainerV\"></div>",_positionPrefix:"<div class=\"dijitRuleLabelContainer dijitRuleLabelContainerV\" style=\"top:",_labelPrefix:"\"><span class=\"dijitRuleLabel dijitRuleLabelV\">",_calcPosition:function(pos){return 100-pos;},_isHorizontal:false});}if(!dojo._hasResource["dijit.form.SimpleTextarea"]){dojo._hasResource["dijit.form.SimpleTextarea"]=true;dojo.provide("dijit.form.SimpleTextarea");dojo.declare("dijit.form.SimpleTextarea",dijit.form.TextBox,{baseClass:"dijitTextArea",attributeMap:dojo.delegate(dijit.form._FormValueWidget.prototype.attributeMap,{rows:"textbox",cols:"textbox"}),rows:"3",cols:"20",templatePath:null,templateString:"<textarea ${nameAttrSetting} dojoAttachPoint='focusNode,containerNode,textbox' autocomplete='off'></textarea>",postMixInProperties:function(){if(!this.value&&this.srcNodeRef){this.value=this.srcNodeRef.value;}this.inherited(arguments);},filter:function(_82c){if(_82c){_82c=_82c.replace(/\r/g,"");}return this.inherited(arguments);},postCreate:function(){this.inherited(arguments);if(dojo.isIE&&this.cols){dojo.addClass(this.domNode,"dijitTextAreaCols");}},_previousValue:"",_onInput:function(e){if(this.maxLength){var _82e=parseInt(this.maxLength);var _82f=this.textbox.value.replace(/\r/g,"");var _830=_82f.length-_82e;if(_830>0){dojo.stopEvent(e);var _831=this.textbox;if(_831.selectionStart){var pos=_831.selectionStart;var cr=0;if(dojo.isOpera){cr=(this.textbox.value.substring(0,pos).match(/\r/g)||[]).length;}this.textbox.value=_82f.substring(0,pos-_830-cr)+_82f.substring(pos-cr);_831.setSelectionRange(pos-_830,pos-_830);}else{if(dojo.doc.selection){_831.focus();var _834=dojo.doc.selection.createRange();_834.moveStart("character",-_830);_834.text="";_834.select();}}}this._previousValue=this.textbox.value;}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.form.Textarea"]){dojo._hasResource["dijit.form.Textarea"]=true;dojo.provide("dijit.form.Textarea");dojo.declare("dijit.form.Textarea",dijit.form.SimpleTextarea,{cols:"",_previousNewlines:0,_strictMode:(dojo.doc.compatMode!="BackCompat"),_getHeight:function(_835){var newH=_835.scrollHeight;if(dojo.isIE){newH+=_835.offsetHeight-_835.clientHeight-((dojo.isIE<8&&this._strictMode)?dojo._getPadBorderExtents(_835).h:0);}else{if(dojo.isMoz){newH+=_835.offsetHeight-_835.clientHeight;}else{newH+=dojo._getPadBorderExtents(_835).h;}}return newH;},_onInput:function(){this.inherited(arguments);if(this._busyResizing){return;}this._busyResizing=true;var _837=this.domNode;_837.scrollTop=0;var oldH=parseFloat(dojo.getComputedStyle(_837).height);var newH=this._getHeight(_837);if(newH>0&&_837.style.height!=newH){_837.style.maxHeight=_837.style.height=newH+"px";}this._busyResizing=false;if(dojo.isMoz||dojo.isWebKit){var _83a=(_837.value.match(/\n/g)||[]).length;if(_83a<this._previousNewlines){this._shrink();}this._previousNewlines=_83a;}},_busyResizing:false,_shrink:function(){if((dojo.isMoz||dojo.isSafari)&&!this._busyResizing){this._busyResizing=true;var _83b=this.domNode;var _83c=false;if(_83b.value==""){_83b.value=" ";_83c=true;}var newH=this._getHeight(_83b);if(newH>0){var _83e=_83b.scrollHeight;var _83f=-1;var _840=dojo.getComputedStyle(_83b).paddingBottom;var _841=dojo._getPadExtents(_83b);var _842=_841.h-_841.t;_83b.style.maxHeight=newH+"px";while(_83f!=_83e){_83f=_83e;_842+=16;_83b.style.paddingBottom=_842+"px";_83b.scrollTop=0;_83e=_83b.scrollHeight;newH-=_83f-_83e;}_83b.style.paddingBottom=_840;_83b.style.maxHeight=_83b.style.height=newH+"px";}if(_83c){_83b.value="";}this._busyResizing=false;}},resize:function(){this._onInput();this._shrink();},_setValueAttr:function(){this.inherited(arguments);this.resize();},postCreate:function(){this.inherited(arguments);dojo.style(this.domNode,{overflowY:"hidden",overflowX:"auto",boxSizing:"border-box",MsBoxSizing:"border-box",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box"});this.connect(this.domNode,"onscroll",this._onInput);this.connect(this.domNode,"onresize",this._onInput);setTimeout(dojo.hitch(this,"resize"),0);}});}if(!dojo._hasResource["dijit.form.ToggleButton"]){dojo._hasResource["dijit.form.ToggleButton"]=true;dojo.provide("dijit.form.ToggleButton");}if(!dojo._hasResource["dijit.layout.StackController"]){dojo._hasResource["dijit.layout.StackController"]=true;dojo.provide("dijit.layout.StackController");dojo.declare("dijit.layout.StackController",[dijit._Widget,dijit._Templated,dijit._Container],{templateString:"<span wairole='tablist' dojoAttachEvent='onkeypress' class='dijitStackController'></span>",containerId:"",buttonWidget:"dijit.layout._StackButton",postCreate:function(){dijit.setWaiRole(this.domNode,"tablist");this.pane2button={};this.pane2handles={};this.pane2menu={};this._subscriptions=[dojo.subscribe(this.containerId+"-startup",this,"onStartup"),dojo.subscribe(this.containerId+"-addChild",this,"onAddChild"),dojo.subscribe(this.containerId+"-removeChild",this,"onRemoveChild"),dojo.subscribe(this.containerId+"-selectChild",this,"onSelectChild"),dojo.subscribe(this.containerId+"-containerKeyPress",this,"onContainerKeyPress")];},onStartup:function(info){dojo.forEach(info.children,this.onAddChild,this);this.onSelectChild(info.selected);},destroy:function(){for(var pane in this.pane2button){this.onRemoveChild(pane);}dojo.forEach(this._subscriptions,dojo.unsubscribe);this.inherited(arguments);},onAddChild:function(page,_846){var _847=dojo.doc.createElement("span");this.domNode.appendChild(_847);var cls=dojo.getObject(this.buttonWidget);var _849=new cls({label:page.title,closeButton:page.closable},_847);this.addChild(_849,_846);this.pane2button[page]=_849;page.controlButton=_849;var _84a=[];_84a.push(dojo.connect(_849,"onClick",dojo.hitch(this,"onButtonClick",page)));if(page.closable){_84a.push(dojo.connect(_849,"onClickCloseButton",dojo.hitch(this,"onCloseButtonClick",page)));var _84b=dojo.i18n.getLocalization("dijit","common");var _84c=new dijit.Menu({targetNodeIds:[_849.id],id:_849.id+"_Menu"});var _84d=new dijit.MenuItem({label:_84b.itemClose});_84a.push(dojo.connect(_84d,"onClick",dojo.hitch(this,"onCloseButtonClick",page)));_84c.addChild(_84d);this.pane2menu[page]=_84c;}this.pane2handles[page]=_84a;if(!this._currentChild){_849.focusNode.setAttribute("tabIndex","0");this._currentChild=page;}if(!this.isLeftToRight()&&dojo.isIE&&this._rectifyRtlTabList){this._rectifyRtlTabList();}},onRemoveChild:function(page){if(this._currentChild===page){this._currentChild=null;}dojo.forEach(this.pane2handles[page],dojo.disconnect);delete this.pane2handles[page];var menu=this.pane2menu[page];if(menu){menu.destroyRecursive();delete this.pane2menu[page];}var _850=this.pane2button[page];if(_850){_850.destroy();delete this.pane2button[page];}},onSelectChild:function(page){if(!page){return;}if(this._currentChild){var _852=this.pane2button[this._currentChild];_852.attr("checked",false);_852.focusNode.setAttribute("tabIndex","-1");}var _853=this.pane2button[page];_853.attr("checked",true);this._currentChild=page;_853.focusNode.setAttribute("tabIndex","0");var _854=dijit.byId(this.containerId);dijit.setWaiState(_854.containerNode,"labelledby",_853.id);},onButtonClick:function(page){var _856=dijit.byId(this.containerId);_856.selectChild(page);},onCloseButtonClick:function(page){var _858=dijit.byId(this.containerId);_858.closeChild(page);var b=this.pane2button[this._currentChild];if(b){dijit.focus(b.focusNode||b.domNode);}},adjacent:function(_85a){if(!this.isLeftToRight()&&(!this.tabPosition||/top|bottom/.test(this.tabPosition))){_85a=!_85a;}var _85b=this.getChildren();var _85c=dojo.indexOf(_85b,this.pane2button[this._currentChild]);var _85d=_85a?1:_85b.length-1;return _85b[(_85c+_85d)%_85b.length];},onkeypress:function(e){if(this.disabled||e.altKey){return;}var _85f=null;if(e.ctrlKey||!e._djpage){var k=dojo.keys;switch(e.charOrCode){case k.LEFT_ARROW:case k.UP_ARROW:if(!e._djpage){_85f=false;}break;case k.PAGE_UP:if(e.ctrlKey){_85f=false;}break;case k.RIGHT_ARROW:case k.DOWN_ARROW:if(!e._djpage){_85f=true;}break;case k.PAGE_DOWN:if(e.ctrlKey){_85f=true;}break;case k.DELETE:if(this._currentChild.closable){this.onCloseButtonClick(this._currentChild);}dojo.stopEvent(e);break;default:if(e.ctrlKey){if(e.charOrCode===k.TAB){this.adjacent(!e.shiftKey).onClick();dojo.stopEvent(e);}else{if(e.charOrCode=="w"){if(this._currentChild.closable){this.onCloseButtonClick(this._currentChild);}dojo.stopEvent(e);}}}}if(_85f!==null){this.adjacent(_85f).onClick();dojo.stopEvent(e);}}},onContainerKeyPress:function(info){info.e._djpage=info.page;this.onkeypress(info.e);}});dojo.declare("dijit.layout._StackButton",dijit.form.ToggleButton,{tabIndex:"-1",postCreate:function(evt){dijit.setWaiRole((this.focusNode||this.domNode),"tab");this.inherited(arguments);},onClick:function(evt){dijit.focus(this.focusNode);},onClickCloseButton:function(evt){evt.stopPropagation();}});}if(!dojo._hasResource["dijit.layout.StackContainer"]){dojo._hasResource["dijit.layout.StackContainer"]=true;dojo.provide("dijit.layout.StackContainer");dojo.declare("dijit.layout.StackContainer",dijit.layout._LayoutWidget,{doLayout:true,persist:false,baseClass:"dijitStackContainer",_started:false,postCreate:function(){this.inherited(arguments);dojo.addClass(this.domNode,"dijitLayoutContainer");dijit.setWaiRole(this.containerNode,"tabpanel");this.connect(this.domNode,"onkeypress",this._onKeyPress);},startup:function(){if(this._started){return;}var _865=this.getChildren();dojo.forEach(_865,this._setupChild,this);if(this.persist){this.selectedChildWidget=dijit.byId(dojo.cookie(this.id+"_selectedChild"));}else{dojo.some(_865,function(_866){if(_866.selected){this.selectedChildWidget=_866;}return _866.selected;},this);}var _867=this.selectedChildWidget;if(!_867&&_865[0]){_867=this.selectedChildWidget=_865[0];_867.selected=true;}dojo.publish(this.id+"-startup",[{children:_865,selected:_867}]);if(_867){this._showChild(_867);}this.inherited(arguments);},_setupChild:function(_868){this.inherited(arguments);dojo.removeClass(_868.domNode,"dijitVisible");dojo.addClass(_868.domNode,"dijitHidden");_868.domNode.title="";return _868;},addChild:function(_869,_86a){this.inherited(arguments);if(this._started){dojo.publish(this.id+"-addChild",[_869,_86a]);this.layout();if(!this.selectedChildWidget){this.selectChild(_869);}}},removeChild:function(page){this.inherited(arguments);if(this._beingDestroyed){return;}if(this._started){dojo.publish(this.id+"-removeChild",[page]);this.layout();}if(this.selectedChildWidget===page){this.selectedChildWidget=undefined;if(this._started){var _86c=this.getChildren();if(_86c.length){this.selectChild(_86c[0]);}}}},selectChild:function(page){page=dijit.byId(page);if(this.selectedChildWidget!=page){this._transition(page,this.selectedChildWidget);this.selectedChildWidget=page;dojo.publish(this.id+"-selectChild",[page]);if(this.persist){dojo.cookie(this.id+"_selectedChild",this.selectedChildWidget.id);}}},_transition:function(_86e,_86f){if(_86f){this._hideChild(_86f);}this._showChild(_86e);if(this.doLayout&&_86e.resize){_86e.resize(this._containerContentBox||this._contentBox);}},_adjacent:function(_870){var _871=this.getChildren();var _872=dojo.indexOf(_871,this.selectedChildWidget);_872+=_870?1:_871.length-1;return _871[_872%_871.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 _875=this.getChildren();page.isFirstChild=(page==_875[0]);page.isLastChild=(page==_875[_875.length-1]);page.selected=true;dojo.removeClass(page.domNode,"dijitHidden");dojo.addClass(page.domNode,"dijitVisible");if(page._onShow){page._onShow();}else{if(page.onShow){page.onShow();}}},_hideChild:function(page){page.selected=false;dojo.removeClass(page.domNode,"dijitVisible");dojo.addClass(page.domNode,"dijitHidden");if(page.onHide){page.onHide();}},closeChild:function(page){var _878=page.onClose(this,page);if(_878){this.removeChild(page);page.destroyRecursive();}},destroy:function(){this._beingDestroyed=true;this.inherited(arguments);}});dojo.extend(dijit._Widget,{title:"",selected:false,closable:false,onClose:function(){return true;}});}if(!dojo._hasResource["dijit.layout.AccordionPane"]){dojo._hasResource["dijit.layout.AccordionPane"]=true;dojo.provide("dijit.layout.AccordionPane");dojo.declare("dijit.layout.AccordionPane",dijit.layout.ContentPane,{constructor:function(){dojo.deprecated("dijit.layout.AccordionPane deprecated, use ContentPane instead","","2.0");},onSelected:function(){}});}if(!dojo._hasResource["dijit.layout.AccordionContainer"]){dojo._hasResource["dijit.layout.AccordionContainer"]=true;dojo.provide("dijit.layout.AccordionContainer");dojo.declare("dijit.layout.AccordionContainer",dijit.layout.StackContainer,{duration:dijit.defaultDuration,_verticalSpace:0,baseClass:"dijitAccordionContainer",postCreate:function(){this.domNode.style.overflow="hidden";this.inherited(arguments);dijit.setWaiRole(this.domNode,"tablist");},startup:function(){if(this._started){return;}this.inherited(arguments);if(this.selectedChildWidget){var _879=this.selectedChildWidget.containerNode.style;_879.display="";_879.overflow="auto";this.selectedChildWidget._buttonWidget._setSelectedState(true);}},_getTargetHeight:function(node){var cs=dojo.getComputedStyle(node);return Math.max(this._verticalSpace-dojo._getPadBorderExtents(node,cs).h,0);},layout:function(){var _87c=this.selectedChildWidget;var _87d=0;dojo.forEach(this.getChildren(),function(_87e){_87d+=_87e._buttonWidget.getTitleHeight();});var _87f=this._contentBox;this._verticalSpace=_87f.h-_87d;this._containerContentBox={h:this._verticalSpace,w:_87f.w};if(_87c){_87c.resize(this._containerContentBox);}},_setupChild:function(_880){_880._buttonWidget=new dijit.layout._AccordionButton({contentWidget:_880,title:_880.title,id:_880.id+"_button",parent:this});dojo.place(_880._buttonWidget.domNode,_880.domNode,"before");this.inherited(arguments);},removeChild:function(_881){_881._buttonWidget.destroy();this.inherited(arguments);},getChildren:function(){return dojo.filter(this.inherited(arguments),function(_882){return _882.declaredClass!="dijit.layout._AccordionButton";});},destroy:function(){dojo.forEach(this.getChildren(),function(_883){_883._buttonWidget.destroy();});this.inherited(arguments);},_transition:function(_884,_885){if(this._inTransition){return;}this._inTransition=true;var _886=[];var _887=this._verticalSpace;if(_884){_884._buttonWidget.setSelected(true);this._showChild(_884);if(this.doLayout&&_884.resize){_884.resize(this._containerContentBox);}var _888=_884.domNode;dojo.addClass(_888,"dijitVisible");dojo.removeClass(_888,"dijitHidden");var _889=_888.style.overflow;_888.style.overflow="hidden";_886.push(dojo.animateProperty({node:_888,duration:this.duration,properties:{height:{start:1,end:this._getTargetHeight(_888)}},onEnd:dojo.hitch(this,function(){_888.style.overflow=_889;delete this._inTransition;})}));}if(_885){_885._buttonWidget.setSelected(false);var _88a=_885.domNode,_88b=_88a.style.overflow;_88a.style.overflow="hidden";_886.push(dojo.animateProperty({node:_88a,duration:this.duration,properties:{height:{start:this._getTargetHeight(_88a),end:1}},onEnd:function(){dojo.addClass(_88a,"dijitHidden");dojo.removeClass(_88a,"dijitVisible");_88a.style.overflow=_88b;if(_885.onHide){_885.onHide();}}}));}dojo.fx.combine(_886).play();},_onKeyPress:function(e,_88d){if(this._inTransition||this.disabled||e.altKey||!(_88d||e.ctrlKey)){if(this._inTransition){dojo.stopEvent(e);}return;}var k=dojo.keys,c=e.charOrCode;if((_88d&&(c==k.LEFT_ARROW||c==k.UP_ARROW))||(e.ctrlKey&&c==k.PAGE_UP)){this._adjacent(false)._buttonWidget._onTitleClick();dojo.stopEvent(e);}else{if((_88d&&(c==k.RIGHT_ARROW||c==k.DOWN_ARROW))||(e.ctrlKey&&(c==k.PAGE_DOWN||c==k.TAB))){this._adjacent(true)._buttonWidget._onTitleClick();dojo.stopEvent(e);}}}});dojo.declare("dijit.layout._AccordionButton",[dijit._Widget,dijit._Templated],{templateString:"<div dojoAttachPoint='titleNode,focusNode' dojoAttachEvent='ondijitclick:_onTitleClick,onkeypress:_onTitleKeyPress,onfocus:_handleFocus,onblur:_handleFocus,onmouseenter:_onTitleEnter,onmouseleave:_onTitleLeave'\n\t\tclass='dijitAccordionTitle' wairole=\"tab\" waiState=\"expanded-false\"\n\t\t><span class='dijitInline dijitAccordionArrow' waiRole=\"presentation\"></span\n\t\t><span class='arrowTextUp' waiRole=\"presentation\">+</span\n\t\t><span class='arrowTextDown' waiRole=\"presentation\">-</span\n\t\t><span waiRole=\"presentation\" dojoAttachPoint='titleTextNode' class='dijitAccordionText'></span>\n</div>\n",attributeMap:dojo.mixin(dojo.clone(dijit.layout.ContentPane.prototype.attributeMap),{title:{node:"titleTextNode",type:"innerHTML"}}),baseClass:"dijitAccordionTitle",getParent:function(){return this.parent;},postCreate:function(){this.inherited(arguments);dojo.setSelectable(this.domNode,false);this.setSelected(this.selected);var _890=dojo.attr(this.domNode,"id").replace(" ","_");dojo.attr(this.titleTextNode,"id",_890+"_title");dijit.setWaiState(this.focusNode,"labelledby",dojo.attr(this.titleTextNode,"id"));},getTitleHeight:function(){return dojo.marginBox(this.titleNode).h;},_onTitleClick:function(){var _891=this.getParent();if(!_891._inTransition){_891.selectChild(this.contentWidget);dijit.focus(this.focusNode);}},_onTitleEnter:function(){dojo.addClass(this.focusNode,"dijitAccordionTitle-hover");},_onTitleLeave:function(){dojo.removeClass(this.focusNode,"dijitAccordionTitle-hover");},_onTitleKeyPress:function(evt){return this.getParent()._onKeyPress(evt,this.contentWidget);},_setSelectedState:function(_893){this.selected=_893;dojo[(_893?"addClass":"removeClass")](this.titleNode,"dijitAccordionTitle-selected");dijit.setWaiState(this.focusNode,"expanded",_893);dijit.setWaiState(this.focusNode,"selected",_893);this.focusNode.setAttribute("tabIndex",_893?"0":"-1");},_handleFocus:function(e){dojo[(e.type=="focus"?"addClass":"removeClass")](this.focusNode,"dijitAccordionFocused");},setSelected:function(_895){this._setSelectedState(_895);if(_895){var cw=this.contentWidget;if(cw.onSelected){cw.onSelected();}}}});}if(!dojo._hasResource["dijit.layout.BorderContainer"]){dojo._hasResource["dijit.layout.BorderContainer"]=true;dojo.provide("dijit.layout.BorderContainer");dojo.declare("dijit.layout.BorderContainer",dijit.layout._LayoutWidget,{design:"headline",gutters:true,liveSplitters:true,persist:false,baseClass:"dijitBorderContainer",_splitterClass:"dijit.layout._Splitter",postMixInProperties:function(){if(!this.gutters){this.baseClass+="NoGutter";}this.inherited(arguments);},postCreate:function(){this.inherited(arguments);this._splitters={};this._splitterThickness={};},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),this._setupChild,this);this.inherited(arguments);},_setupChild:function(_897){var _898=_897.region;if(_898){this.inherited(arguments);dojo.addClass(_897.domNode,this.baseClass+"Pane");var ltr=this.isLeftToRight();if(_898=="leading"){_898=ltr?"left":"right";}if(_898=="trailing"){_898=ltr?"right":"left";}this["_"+_898]=_897.domNode;this["_"+_898+"Widget"]=_897;if((_897.splitter||this.gutters)&&!this._splitters[_898]){var _89a=dojo.getObject(_897.splitter?this._splitterClass:"dijit.layout._Gutter");var flip={left:"right",right:"left",top:"bottom",bottom:"top",leading:"trailing",trailing:"leading"};var _89c=new _89a({container:this,child:_897,region:_898,oppNode:this["_"+flip[_897.region]],live:this.liveSplitters});_89c.isSplitter=true;this._splitters[_898]=_89c.domNode;dojo.place(this._splitters[_898],_897.domNode,"after");_89c.startup();}_897.region=_898;}},_computeSplitterThickness:function(_89d){this._splitterThickness[_89d]=this._splitterThickness[_89d]||dojo.marginBox(this._splitters[_89d])[(/top|bottom/.test(_89d)?"h":"w")];},layout:function(){for(var _89e in this._splitters){this._computeSplitterThickness(_89e);}this._layoutChildren();},addChild:function(_89f,_8a0){this.inherited(arguments);if(this._started){this._layoutChildren();}},removeChild:function(_8a1){var _8a2=_8a1.region;var _8a3=this._splitters[_8a2];if(_8a3){dijit.byNode(_8a3).destroy();delete this._splitters[_8a2];delete this._splitterThickness[_8a2];}this.inherited(arguments);delete this["_"+_8a2];delete this["_"+_8a2+"Widget"];if(this._started){this._layoutChildren(_8a1.region);}dojo.removeClass(_8a1.domNode,this.baseClass+"Pane");},getChildren:function(){return dojo.filter(this.inherited(arguments),function(_8a4){return !_8a4.isSplitter;});},getSplitter:function(_8a5){var _8a6=this._splitters[_8a5];return _8a6?dijit.byNode(_8a6):null;},resize:function(_8a7,_8a8){if(!this.cs||!this.pe){var node=this.domNode;this.cs=dojo.getComputedStyle(node);this.pe=dojo._getPadExtents(node,this.cs);this.pe.r=dojo._toPixelValue(node,this.cs.paddingRight);this.pe.b=dojo._toPixelValue(node,this.cs.paddingBottom);dojo.style(node,"padding","0px");}this.inherited(arguments);},_layoutChildren:function(_8aa){if(!this._borderBox||!this._borderBox.h){return;}var _8ab=(this.design=="sidebar");var _8ac=0,_8ad=0,_8ae=0,_8af=0;var _8b0={},_8b1={},_8b2={},_8b3={},_8b4=(this._center&&this._center.style)||{};var _8b5=/left|right/.test(_8aa);var _8b6=!_8aa||(!_8b5&&!_8ab);var _8b7=!_8aa||(_8b5&&_8ab);if(this._top){_8b0=_8b7&&this._top.style;_8ac=dojo.marginBox(this._top).h;}if(this._left){_8b1=_8b6&&this._left.style;_8ae=dojo.marginBox(this._left).w;}if(this._right){_8b2=_8b6&&this._right.style;_8af=dojo.marginBox(this._right).w;}if(this._bottom){_8b3=_8b7&&this._bottom.style;_8ad=dojo.marginBox(this._bottom).h;}var _8b8=this._splitters;var _8b9=_8b8.top,_8ba=_8b8.bottom,_8bb=_8b8.left,_8bc=_8b8.right;var _8bd=this._splitterThickness;var _8be=_8bd.top||0,_8bf=_8bd.left||0,_8c0=_8bd.right||0,_8c1=_8bd.bottom||0;if(_8bf>50||_8c0>50){setTimeout(dojo.hitch(this,function(){this._splitterThickness={};for(var _8c2 in this._splitters){this._computeSplitterThickness(_8c2);}this._layoutChildren();}),50);return false;}var pe=this.pe;var _8c4={left:(_8ab?_8ae+_8bf:0)+pe.l+"px",right:(_8ab?_8af+_8c0:0)+pe.r+"px"};if(_8b9){dojo.mixin(_8b9.style,_8c4);_8b9.style.top=_8ac+pe.t+"px";}if(_8ba){dojo.mixin(_8ba.style,_8c4);_8ba.style.bottom=_8ad+pe.b+"px";}_8c4={top:(_8ab?0:_8ac+_8be)+pe.t+"px",bottom:(_8ab?0:_8ad+_8c1)+pe.b+"px"};if(_8bb){dojo.mixin(_8bb.style,_8c4);_8bb.style.left=_8ae+pe.l+"px";}if(_8bc){dojo.mixin(_8bc.style,_8c4);_8bc.style.right=_8af+pe.r+"px";}dojo.mixin(_8b4,{top:pe.t+_8ac+_8be+"px",left:pe.l+_8ae+_8bf+"px",right:pe.r+_8af+_8c0+"px",bottom:pe.b+_8ad+_8c1+"px"});var _8c5={top:_8ab?pe.t+"px":_8b4.top,bottom:_8ab?pe.b+"px":_8b4.bottom};dojo.mixin(_8b1,_8c5);dojo.mixin(_8b2,_8c5);_8b1.left=pe.l+"px";_8b2.right=pe.r+"px";_8b0.top=pe.t+"px";_8b3.bottom=pe.b+"px";if(_8ab){_8b0.left=_8b3.left=_8ae+_8bf+pe.l+"px";_8b0.right=_8b3.right=_8af+_8c0+pe.r+"px";}else{_8b0.left=_8b3.left=pe.l+"px";_8b0.right=_8b3.right=pe.r+"px";}var _8c6=this._borderBox.h-pe.t-pe.b,_8c7=_8c6-(_8ac+_8be+_8ad+_8c1),_8c8=_8ab?_8c6:_8c7;var _8c9=this._borderBox.w-pe.l-pe.r,_8ca=_8c9-(_8ae+_8bf+_8af+_8c0),_8cb=_8ab?_8ca:_8c9;var dim={top:{w:_8cb,h:_8ac},bottom:{w:_8cb,h:_8ad},left:{w:_8ae,h:_8c8},right:{w:_8af,h:_8c8},center:{h:_8c7,w:_8ca}};var _8cd=dojo.isIE<8||(dojo.isIE&&dojo.isQuirks)||dojo.some(this.getChildren(),function(_8ce){return _8ce.domNode.tagName=="TEXTAREA"||_8ce.domNode.tagName=="INPUT";});if(_8cd){var _8cf=function(_8d0,_8d1,_8d2){if(_8d0){(_8d0.resize?_8d0.resize(_8d1,_8d2):dojo.marginBox(_8d0.domNode,_8d1));}};if(_8bb){_8bb.style.height=_8c8;}if(_8bc){_8bc.style.height=_8c8;}_8cf(this._leftWidget,{h:_8c8},dim.left);_8cf(this._rightWidget,{h:_8c8},dim.right);if(_8b9){_8b9.style.width=_8cb;}if(_8ba){_8ba.style.width=_8cb;}_8cf(this._topWidget,{w:_8cb},dim.top);_8cf(this._bottomWidget,{w:_8cb},dim.bottom);_8cf(this._centerWidget,dim.center);}else{var _8d3={};if(_8aa){_8d3[_8aa]=_8d3.center=true;if(/top|bottom/.test(_8aa)&&this.design!="sidebar"){_8d3.left=_8d3.right=true;}else{if(/left|right/.test(_8aa)&&this.design=="sidebar"){_8d3.top=_8d3.bottom=true;}}}dojo.forEach(this.getChildren(),function(_8d4){if(_8d4.resize&&(!_8aa||_8d4.region in _8d3)){_8d4.resize(null,dim[_8d4.region]);}},this);}},destroy:function(){for(var _8d5 in this._splitters){var _8d6=this._splitters[_8d5];dijit.byNode(_8d6).destroy();dojo.destroy(_8d6);}delete this._splitters;delete this._splitterThickness;this.inherited(arguments);}});dojo.extend(dijit._Widget,{region:"",splitter:false,minSize:0,maxSize:Infinity});dojo.declare("dijit.layout._Splitter",[dijit._Widget,dijit._Templated],{live:true,templateString:"<div class=\"dijitSplitter\" dojoAttachEvent=\"onkeypress:_onKeyPress,onmousedown:_startDrag\" tabIndex=\"0\" waiRole=\"separator\"><div class=\"dijitSplitterThumb\"></div></div>",postCreate:function(){this.inherited(arguments);this.horizontal=/top|bottom/.test(this.region);dojo.addClass(this.domNode,"dijitSplitter"+(this.horizontal?"H":"V"));this._factor=/top|left/.test(this.region)?1:-1;this._minSize=this.child.minSize;this.child.domNode._recalc=true;this.connect(this.container,"resize",function(){this.child.domNode._recalc=true;});this._cookieName=this.container.id+"_"+this.region;if(this.container.persist){var _8d7=dojo.cookie(this._cookieName);if(_8d7){this.child.domNode.style[this.horizontal?"height":"width"]=_8d7;}}},_computeMaxSize:function(){var dim=this.horizontal?"h":"w",_8d9=this.container._splitterThickness[this.region];var _8da=dojo.contentBox(this.container.domNode)[dim]-(this.oppNode?dojo.marginBox(this.oppNode)[dim]:0)-20-_8d9*2;this._maxSize=Math.min(this.child.maxSize,_8da);},_startDrag:function(e){if(this.child.domNode._recalc){this._computeMaxSize();this.child.domNode._recalc=false;}if(!this.cover){this.cover=dojo.doc.createElement("div");dojo.addClass(this.cover,"dijitSplitterCover");dojo.place(this.cover,this.child.domNode,"after");}dojo.addClass(this.cover,"dijitSplitterCoverActive");if(this.fake){dojo.destroy(this.fake);}if(!(this._resize=this.live)){(this.fake=this.domNode.cloneNode(true)).removeAttribute("id");dojo.addClass(this.domNode,"dijitSplitterShadow");dojo.place(this.fake,this.domNode,"after");}dojo.addClass(this.domNode,"dijitSplitterActive");var _8dc=this._factor,max=this._maxSize,min=this._minSize||20,_8df=this.horizontal,axis=_8df?"pageY":"pageX",_8e1=e[axis],_8e2=this.domNode.style,dim=_8df?"h":"w",_8e4=dojo.marginBox(this.child.domNode)[dim],_8e5=this.region,_8e6=parseInt(this.domNode.style[_8e5],10),_8e7=this._resize,mb={},_8e9=this.child.domNode,_8ea=dojo.hitch(this.container,this.container._layoutChildren),de=dojo.doc.body;this._handlers=(this._handlers||[]).concat([dojo.connect(de,"onmousemove",this._drag=function(e,_8ed){var _8ee=e[axis]-_8e1,_8ef=_8dc*_8ee+_8e4,_8f0=Math.max(Math.min(_8ef,max),min);if(_8e7||_8ed){mb[dim]=_8f0;dojo.marginBox(_8e9,mb);_8ea(_8e5);}_8e2[_8e5]=_8dc*_8ee+_8e6+(_8f0-_8ef)+"px";}),dojo.connect(dojo.doc,"ondragstart",dojo.stopEvent),dojo.connect(dojo.body(),"onselectstart",dojo.stopEvent),dojo.connect(de,"onmouseup",this,"_stopDrag")]);dojo.stopEvent(e);},_stopDrag:function(e){try{if(this.cover){dojo.removeClass(this.cover,"dijitSplitterCoverActive");}if(this.fake){dojo.destroy(this.fake);}dojo.removeClass(this.domNode,"dijitSplitterActive");dojo.removeClass(this.domNode,"dijitSplitterShadow");this._drag(e);this._drag(e,true);}finally{this._cleanupHandlers();if(this.oppNode){this.oppNode._recalc=true;}delete this._drag;}if(this.container.persist){dojo.cookie(this._cookieName,this.child.domNode.style[this.horizontal?"height":"width"],{expires:365});}},_cleanupHandlers:function(){dojo.forEach(this._handlers,dojo.disconnect);delete this._handlers;},_onKeyPress:function(e){if(this.child.domNode._recalc){this._computeMaxSize();this.child.domNode._recalc=false;}this._resize=true;var _8f3=this.horizontal;var tick=1;var dk=dojo.keys;switch(e.charOrCode){case _8f3?dk.UP_ARROW:dk.LEFT_ARROW:tick*=-1;case _8f3?dk.DOWN_ARROW:dk.RIGHT_ARROW:break;default:return;}var _8f6=dojo.marginBox(this.child.domNode)[_8f3?"h":"w"]+this._factor*tick;var mb={};mb[this.horizontal?"h":"w"]=Math.max(Math.min(_8f6,this._maxSize),this._minSize);dojo.marginBox(this.child.domNode,mb);if(this.oppNode){this.oppNode._recalc=true;}this.container._layoutChildren(this.region);dojo.stopEvent(e);},destroy:function(){this._cleanupHandlers();delete this.child;delete this.container;delete this.cover;delete this.fake;this.inherited(arguments);}});dojo.declare("dijit.layout._Gutter",[dijit._Widget,dijit._Templated],{templateString:"<div class=\"dijitGutter\" waiRole=\"presentation\"></div>",postCreate:function(){this.horizontal=/top|bottom/.test(this.region);dojo.addClass(this.domNode,"dijitGutter"+(this.horizontal?"H":"V"));}});}if(!dojo._hasResource["dijit.layout.LayoutContainer"]){dojo._hasResource["dijit.layout.LayoutContainer"]=true;dojo.provide("dijit.layout.LayoutContainer");dojo.declare("dijit.layout.LayoutContainer",dijit.layout._LayoutWidget,{baseClass:"dijitLayoutContainer",constructor:function(){dojo.deprecated("dijit.layout.LayoutContainer is deprecated","use BorderContainer instead",2);},layout:function(){dijit.layout.layoutChildren(this.domNode,this._contentBox,this.getChildren());},addChild:function(_8f8,_8f9){this.inherited(arguments);if(this._started){dijit.layout.layoutChildren(this.domNode,this._contentBox,this.getChildren());}},removeChild:function(_8fa){this.inherited(arguments);if(this._started){dijit.layout.layoutChildren(this.domNode,this._contentBox,this.getChildren());}}});dojo.extend(dijit._Widget,{layoutAlign:"none"});}if(!dojo._hasResource["dijit.layout.LinkPane"]){dojo._hasResource["dijit.layout.LinkPane"]=true;dojo.provide("dijit.layout.LinkPane");dojo.declare("dijit.layout.LinkPane",[dijit.layout.ContentPane,dijit._Templated],{templateString:"<div class=\"dijitLinkPane\" dojoAttachPoint=\"containerNode\"></div>",postMixInProperties:function(){if(this.srcNodeRef){this.title+=this.srcNodeRef.innerHTML;}this.inherited(arguments);},_fillContent:function(_8fb){}});}if(!dojo._hasResource["dijit.layout.SplitContainer"]){dojo._hasResource["dijit.layout.SplitContainer"]=true;dojo.provide("dijit.layout.SplitContainer");dojo.declare("dijit.layout.SplitContainer",dijit.layout._LayoutWidget,{constructor:function(){dojo.deprecated("dijit.layout.SplitContainer is deprecated","use BorderContainer with splitter instead",2);},activeSizing:false,sizerWidth:7,orientation:"horizontal",persist:true,baseClass:"dijitSplitContainer",postMixInProperties:function(){this.inherited("postMixInProperties",arguments);this.isHorizontal=(this.orientation=="horizontal");},postCreate:function(){this.inherited(arguments);this.sizers=[];if(dojo.isMozilla){this.domNode.style.overflow="-moz-scrollbars-none";}if(typeof this.sizerWidth=="object"){try{this.sizerWidth=parseInt(this.sizerWidth.toString());}catch(e){this.sizerWidth=7;}}var _8fc=dojo.doc.createElement("div");this.virtualSizer=_8fc;_8fc.style.position="relative";_8fc.style.zIndex=10;_8fc.className=this.isHorizontal?"dijitSplitContainerVirtualSizerH":"dijitSplitContainerVirtualSizerV";this.domNode.appendChild(_8fc);dojo.setSelectable(_8fc,false);},destroy:function(){delete this.virtualSizer;dojo.forEach(this._ownconnects,dojo.disconnect);this.inherited(arguments);},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_8fd,i,_8ff){this._setupChild(_8fd);if(i<_8ff.length-1){this._addSizer();}},this);if(this.persist){this._restoreState();}this.inherited(arguments);},_setupChild:function(_900){this.inherited(arguments);_900.domNode.style.position="absolute";dojo.addClass(_900.domNode,"dijitSplitPane");},_onSizerMouseDown:function(e){if(e.target.id){for(var i=0;i<this.sizers.length;i++){if(this.sizers[i].id==e.target.id){break;}}if(i<this.sizers.length){this.beginSizing(e,i);}}},_addSizer:function(_903){_903=_903===undefined?this.sizers.length:_903;var _904=dojo.doc.createElement("div");_904.id=dijit.getUniqueId("dijit_layout_SplitterContainer_Splitter");this.sizers.splice(_903,0,_904);this.domNode.appendChild(_904);_904.className=this.isHorizontal?"dijitSplitContainerSizerH":"dijitSplitContainerSizerV";var _905=dojo.doc.createElement("div");_905.className="thumb";_905.id=_904.id;_904.appendChild(_905);this.connect(_904,"onmousedown","_onSizerMouseDown");dojo.setSelectable(_904,false);},removeChild:function(_906){if(this.sizers.length){var i=dojo.indexOf(this.getChildren(),_906);if(i!=-1){if(i==this.sizers.length){i--;}dojo.destroy(this.sizers[i]);this.sizers.splice(i,1);}}this.inherited(arguments);if(this._started){this.layout();}},addChild:function(_908,_909){this.inherited(arguments);if(this._started){var _90a=this.getChildren();if(_90a.length>1){this._addSizer(_909);}this.layout();}},layout:function(){this.paneWidth=this._contentBox.w;this.paneHeight=this._contentBox.h;var _90b=this.getChildren();if(!_90b.length){return;}var _90c=this.isHorizontal?this.paneWidth:this.paneHeight;if(_90b.length>1){_90c-=this.sizerWidth*(_90b.length-1);}var _90d=0;dojo.forEach(_90b,function(_90e){_90d+=_90e.sizeShare;});var _90f=_90c/_90d;var _910=0;dojo.forEach(_90b.slice(0,_90b.length-1),function(_911){var size=Math.round(_90f*_911.sizeShare);_911.sizeActual=size;_910+=size;});_90b[_90b.length-1].sizeActual=_90c-_910;this._checkSizes();var pos=0;var size=_90b[0].sizeActual;this._movePanel(_90b[0],pos,size);_90b[0].position=pos;pos+=size;if(!this.sizers){return;}dojo.some(_90b.slice(1),function(_915,i){if(!this.sizers[i]){return true;}this._moveSlider(this.sizers[i],pos,this.sizerWidth);this.sizers[i].position=pos;pos+=this.sizerWidth;size=_915.sizeActual;this._movePanel(_915,pos,size);_915.position=pos;pos+=size;},this);},_movePanel:function(_917,pos,size){if(this.isHorizontal){_917.domNode.style.left=pos+"px";_917.domNode.style.top=0;var box={w:size,h:this.paneHeight};if(_917.resize){_917.resize(box);}else{dojo.marginBox(_917.domNode,box);}}else{_917.domNode.style.left=0;_917.domNode.style.top=pos+"px";var box={w:this.paneWidth,h:size};if(_917.resize){_917.resize(box);}else{dojo.marginBox(_917.domNode,box);}}},_moveSlider:function(_91b,pos,size){if(this.isHorizontal){_91b.style.left=pos+"px";_91b.style.top=0;dojo.marginBox(_91b,{w:size,h:this.paneHeight});}else{_91b.style.left=0;_91b.style.top=pos+"px";dojo.marginBox(_91b,{w:this.paneWidth,h:size});}},_growPane:function(_91e,pane){if(_91e>0){if(pane.sizeActual>pane.sizeMin){if((pane.sizeActual-pane.sizeMin)>_91e){pane.sizeActual=pane.sizeActual-_91e;_91e=0;}else{_91e-=pane.sizeActual-pane.sizeMin;pane.sizeActual=pane.sizeMin;}}}return _91e;},_checkSizes:function(){var _920=0;var _921=0;var _922=this.getChildren();dojo.forEach(_922,function(_923){_921+=_923.sizeActual;_920+=_923.sizeMin;});if(_920<=_921){var _924=0;dojo.forEach(_922,function(_925){if(_925.sizeActual<_925.sizeMin){_924+=_925.sizeMin-_925.sizeActual;_925.sizeActual=_925.sizeMin;}});if(_924>0){var list=this.isDraggingLeft?_922.reverse():_922;dojo.forEach(list,function(_927){_924=this._growPane(_924,_927);},this);}}else{dojo.forEach(_922,function(_928){_928.sizeActual=Math.round(_921*(_928.sizeMin/_920));});}},beginSizing:function(e,i){var _92b=this.getChildren();this.paneBefore=_92b[i];this.paneAfter=_92b[i+1];this.isSizing=true;this.sizingSplitter=this.sizers[i];if(!this.cover){this.cover=dojo.create("div",{style:{position:"absolute",zIndex:5,top:0,left:0,width:"100%",height:"100%"}},this.domNode);}else{this.cover.style.zIndex=5;}this.sizingSplitter.style.zIndex=6;this.originPos=dojo.coords(_92b[0].domNode,true);if(this.isHorizontal){var _92c=e.layerX||e.offsetX||0;var _92d=e.pageX;this.originPos=this.originPos.x;}else{var _92c=e.layerY||e.offsetY||0;var _92d=e.pageY;this.originPos=this.originPos.y;}this.startPoint=this.lastPoint=_92d;this.screenToClientOffset=_92d-_92c;this.dragOffset=this.lastPoint-this.paneBefore.sizeActual-this.originPos-this.paneBefore.position;if(!this.activeSizing){this._showSizingLine();}this._ownconnects=[];this._ownconnects.push(dojo.connect(dojo.doc.documentElement,"onmousemove",this,"changeSizing"));this._ownconnects.push(dojo.connect(dojo.doc.documentElement,"onmouseup",this,"endSizing"));dojo.stopEvent(e);},changeSizing:function(e){if(!this.isSizing){return;}this.lastPoint=this.isHorizontal?e.pageX:e.pageY;this.movePoint();if(this.activeSizing){this._updateSize();}else{this._moveSizingLine();}dojo.stopEvent(e);},endSizing:function(e){if(!this.isSizing){return;}if(this.cover){this.cover.style.zIndex=-1;}if(!this.activeSizing){this._hideSizingLine();}this._updateSize();this.isSizing=false;if(this.persist){this._saveState(this);}dojo.forEach(this._ownconnects,dojo.disconnect);},movePoint:function(){var p=this.lastPoint-this.screenToClientOffset;var a=p-this.dragOffset;a=this.legaliseSplitPoint(a);p=a+this.dragOffset;this.lastPoint=p+this.screenToClientOffset;},legaliseSplitPoint:function(a){a+=this.sizingSplitter.position;this.isDraggingLeft=!!(a>0);if(!this.activeSizing){var min=this.paneBefore.position+this.paneBefore.sizeMin;if(a<min){a=min;}var max=this.paneAfter.position+(this.paneAfter.sizeActual-(this.sizerWidth+this.paneAfter.sizeMin));if(a>max){a=max;}}a-=this.sizingSplitter.position;this._checkSizes();return a;},_updateSize:function(){var pos=this.lastPoint-this.dragOffset-this.originPos;var _936=this.paneBefore.position;var _937=this.paneAfter.position+this.paneAfter.sizeActual;this.paneBefore.sizeActual=pos-_936;this.paneAfter.position=pos+this.sizerWidth;this.paneAfter.sizeActual=_937-this.paneAfter.position;dojo.forEach(this.getChildren(),function(_938){_938.sizeShare=_938.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(_93b,i){var _93d=this._getCookieName(i);var _93e=dojo.cookie(_93d);if(_93e){var pos=parseInt(_93e);if(typeof pos=="number"){_93b.sizeShare=pos;}}},this);},_saveState:function(){if(!this.persist){return;}dojo.forEach(this.getChildren(),function(_940,i){dojo.cookie(this._getCookieName(i),_940.sizeShare,{expires:365});},this);}});dojo.extend(dijit._Widget,{sizeMin:10,sizeShare:10});}if(!dojo._hasResource["dijit.layout.TabController"]){dojo._hasResource["dijit.layout.TabController"]=true;dojo.provide("dijit.layout.TabController");dojo.declare("dijit.layout.TabController",dijit.layout.StackController,{templateString:"<div wairole='tablist' dojoAttachEvent='onkeypress:onkeypress'></div>",tabPosition:"top",doLayout:true,buttonWidget:"dijit.layout._TabButton",_rectifyRtlTabList:function(){if(0>=this.tabPosition.indexOf("-h")){return;}if(!this.pane2button){return;}var _942=0;for(var pane in this.pane2button){var ow=this.pane2button[pane].innerDiv.scrollWidth;_942=Math.max(_942,ow);}for(pane in this.pane2button){this.pane2button[pane].innerDiv.style.width=_942+"px";}}});dojo.declare("dijit.layout._TabButton",dijit.layout._StackButton,{baseClass:"dijitTab",templateString:"<div waiRole=\"presentation\" dojoAttachEvent='onclick:onClick,onmouseenter:_onMouse,onmouseleave:_onMouse'>\n    <div waiRole=\"presentation\" class='dijitTabInnerDiv' dojoAttachPoint='innerDiv'>\n        <div waiRole=\"presentation\" class='dijitTabContent' dojoAttachPoint='tabContent'>\n\t        <span dojoAttachPoint='containerNode,focusNode' class='tabLabel'>${!label}</span><img class =\"dijitTabButtonSpacer\" src=\"${_blankGif}\" />\n\t        <span class=\"closeButton\" dojoAttachPoint='closeNode'\n\t        \t\tdojoAttachEvent='onclick: onClickCloseButton, onmouseenter: _onCloseButtonEnter, onmouseleave: _onCloseButtonLeave'>\n\t        \t<img src=\"${_blankGif}\" alt=\"\" dojoAttachPoint='closeIcon' class='closeImage' waiRole=\"presentation\"/>\n\t            <span dojoAttachPoint='closeText' class='closeText'>x</span>\n\t        </span>\n        </div>\n    </div>\n</div>\n",scrollOnFocus:false,postCreate:function(){if(this.closeButton){dojo.addClass(this.innerDiv,"dijitClosable");var _945=dojo.i18n.getLocalization("dijit","common");if(this.closeNode){dojo.attr(this.closeNode,"title",_945.itemClose);dojo.attr(this.closeIcon,"title",_945.itemClose);}}else{this.closeNode.style.display="none";}this.inherited(arguments);dojo.setSelectable(this.containerNode,false);},_onCloseButtonEnter:function(){dojo.addClass(this.closeNode,"closeButton-hover");},_onCloseButtonLeave:function(){dojo.removeClass(this.closeNode,"closeButton-hover");}});}if(!dojo._hasResource["dijit.layout.TabContainer"]){dojo._hasResource["dijit.layout.TabContainer"]=true;dojo.provide("dijit.layout.TabContainer");dojo.declare("dijit.layout.TabContainer",[dijit.layout.StackContainer,dijit._Templated],{tabPosition:"top",baseClass:"dijitTabContainer",tabStrip:false,nested:false,templateString:null,templateString:"<div class=\"dijitTabContainer\">\n\t<div dojoAttachPoint=\"tablistNode\"></div>\n\t<div dojoAttachPoint=\"tablistSpacer\" class=\"dijitTabSpacer ${baseClass}-spacer\"></div>\n\t<div class=\"dijitTabPaneWrapper ${baseClass}-container\" dojoAttachPoint=\"containerNode\"></div>\n</div>\n",_controllerWidget:"dijit.layout.TabController",postMixInProperties:function(){this.baseClass+=this.tabPosition.charAt(0).toUpperCase()+this.tabPosition.substr(1).replace(/-.*/,"");this.inherited(arguments);},postCreate:function(){this.inherited(arguments);var _946=dojo.getObject(this._controllerWidget);this.tablist=new _946({id:this.id+"_tablist",tabPosition:this.tabPosition,doLayout:this.doLayout,containerId:this.id,"class":this.baseClass+"-tabs"+(this.doLayout?"":" dijitTabNoLayout")},this.tablistNode);if(this.tabStrip){dojo.addClass(this.tablist.domNode,this.baseClass+"Strip");}if(!this.doLayout){dojo.addClass(this.domNode,"dijitTabContainerNoLayout");}if(this.nested){dojo.addClass(this.domNode,"dijitTabContainerNested");dojo.addClass(this.tablist.domNode,"dijitTabContainerTabListNested");dojo.addClass(this.tablistSpacer,"dijitTabContainerSpacerNested");dojo.addClass(this.containerNode,"dijitTabPaneWrapperNested");}},_setupChild:function(tab){dojo.addClass(tab.domNode,"dijitTabPane");this.inherited(arguments);return tab;},startup:function(){if(this._started){return;}this.tablist.startup();this.inherited(arguments);},layout:function(){if(!this.doLayout){return;}var _948=this.tabPosition.replace(/-h/,"");var _949=[{domNode:this.tablist.domNode,layoutAlign:_948},{domNode:this.tablistSpacer,layoutAlign:_948},{domNode:this.containerNode,layoutAlign:"client"}];dijit.layout.layoutChildren(this.domNode,this._contentBox,_949);this._containerContentBox=dijit.layout.marginBox2contentBox(this.containerNode,_949[2]);if(this.selectedChildWidget){this._showChild(this.selectedChildWidget);if(this.doLayout&&this.selectedChildWidget.resize){this.selectedChildWidget.resize(this._containerContentBox);}}},destroy:function(){if(this.tablist){this.tablist.destroy();}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.dijit-all"]){dojo._hasResource["dijit.dijit-all"]=true;console.warn("dijit-all may include much more code than your application actually requires. We strongly recommend that you investigate a custom build or the web build tool");dojo.provide("dijit.dijit-all");}dojo.i18n._preloadLocalizations("dijit.nls.dijit-all",["ROOT","ar","ca","cs","da","de","de-de","el","en","en-gb","en-us","es","es-es","fi","fi-fi","fr","fr-fr","he","he-il","hu","it","it-it","ja","ja-jp","ko","ko-kr","nl","nl-nl","no","pl","pt","pt-br","pt-pt","ru","sk","sl","sv","th","tr","xx","zh","zh-cn","zh-tw"]);
+if(!dojo._hasResource["dojo.colors"]){dojo._hasResource["dojo.colors"]=true;dojo.provide("dojo.colors");(function(){var _1=function(m1,m2,h){if(h<0){++h;}if(h>1){--h;}var h6=6*h;if(h6<1){return m1+(m2-m1)*h6;}if(2*h<1){return m2;}if(3*h<2){return m1+(m2-m1)*(2/3-h)*6;}return m1;};dojo.colorFromRgb=function(_6,_7){var m=_6.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(m){var c=m[2].split(/\s*,\s*/),l=c.length,t=m[1],a;if((t=="rgb"&&l==3)||(t=="rgba"&&l==4)){var r=c[0];if(r.charAt(r.length-1)=="%"){a=dojo.map(c,function(x){return parseFloat(x)*2.56;});if(l==4){a[3]=c[3];}return dojo.colorFromArray(a,_7);}return dojo.colorFromArray(c,_7);}if((t=="hsl"&&l==3)||(t=="hsla"&&l==4)){var H=((parseFloat(c[0])%360)+360)%360/360,S=parseFloat(c[1])/100,L=parseFloat(c[2])/100,m2=L<=0.5?L*(S+1):L+S-L*S,m1=2*L-m2;a=[_1(m1,m2,H+1/3)*256,_1(m1,m2,H)*256,_1(m1,m2,H-1/3)*256,1];if(l==4){a[3]=c[3];}return dojo.colorFromArray(a,_7);}}return null;};var _14=function(c,low,_17){c=Number(c);return isNaN(c)?_17:c<low?low:c>_17?_17:c;};dojo.Color.prototype.sanitize=function(){var t=this;t.r=Math.round(_14(t.r,0,255));t.g=Math.round(_14(t.g,0,255));t.b=Math.round(_14(t.b,0,255));t.a=_14(t.a,0,1);return this;};})();dojo.colors.makeGrey=function(g,a){return dojo.colorFromArray([g,g,g,a]);};dojo.mixin(dojo.Color.named,{aliceblue:[240,248,255],antiquewhite:[250,235,215],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],blanchedalmond:[255,235,205],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],oldlace:[253,245,230],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],thistle:[216,191,216],tomato:[255,99,71],transparent:[0,0,0,0],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],whitesmoke:[245,245,245],yellowgreen:[154,205,50]});}if(!dojo._hasResource["dojo.i18n"]){dojo._hasResource["dojo.i18n"]=true;dojo.provide("dojo.i18n");dojo.i18n.getLocalization=function(_1b,_1c,_1d){_1d=dojo.i18n.normalizeLocale(_1d);var _1e=_1d.split("-");var _1f=[_1b,"nls",_1c].join(".");var _20=dojo._loadedModules[_1f];if(_20){var _21;for(var i=_1e.length;i>0;i--){var loc=_1e.slice(0,i).join("_");if(_20[loc]){_21=_20[loc];break;}}if(!_21){_21=_20.ROOT;}if(_21){var _24=function(){};_24.prototype=_21;return new _24();}}throw new Error("Bundle not found: "+_1c+" in "+_1b+" , locale="+_1d);};dojo.i18n.normalizeLocale=function(_25){var _26=_25?_25.toLowerCase():dojo.locale;if(_26=="root"){_26="ROOT";}return _26;};dojo.i18n._requireLocalization=function(_27,_28,_29,_2a){var _2b=dojo.i18n.normalizeLocale(_29);var _2c=[_27,"nls",_28].join(".");var _2d="";if(_2a){var _2e=_2a.split(",");for(var i=0;i<_2e.length;i++){if(_2b["indexOf"](_2e[i])==0){if(_2e[i].length>_2d.length){_2d=_2e[i];}}}if(!_2d){_2d="ROOT";}}var _30=_2a?_2d:_2b;var _31=dojo._loadedModules[_2c];var _32=null;if(_31){if(dojo.config.localizationComplete&&_31._built){return;}var _33=_30.replace(/-/g,"_");var _34=_2c+"."+_33;_32=dojo._loadedModules[_34];}if(!_32){_31=dojo["provide"](_2c);var _35=dojo._getModuleSymbols(_27);var _36=_35.concat("nls").join("/");var _37;dojo.i18n._searchLocalePath(_30,_2a,function(loc){var _39=loc.replace(/-/g,"_");var _3a=_2c+"."+_39;var _3b=false;if(!dojo._loadedModules[_3a]){dojo["provide"](_3a);var _3c=[_36];if(loc!="ROOT"){_3c.push(loc);}_3c.push(_28);var _3d=_3c.join("/")+".js";_3b=dojo._loadPath(_3d,null,function(_3e){var _3f=function(){};_3f.prototype=_37;_31[_39]=new _3f();for(var j in _3e){_31[_39][j]=_3e[j];}});}else{_3b=true;}if(_3b&&_31[_39]){_37=_31[_39];}else{_31[_39]=_37;}if(_2a){return true;}});}if(_2a&&_2b!=_2d){_31[_2b.replace(/-/g,"_")]=_31[_2d.replace(/-/g,"_")];}};(function(){var _41=dojo.config.extraLocale;if(_41){if(!_41 instanceof Array){_41=[_41];}var req=dojo.i18n._requireLocalization;dojo.i18n._requireLocalization=function(m,b,_45,_46){req(m,b,_45,_46);if(_45){return;}for(var i=0;i<_41.length;i++){req(m,b,_41[i],_46);}};}})();dojo.i18n._searchLocalePath=function(_48,_49,_4a){_48=dojo.i18n.normalizeLocale(_48);var _4b=_48.split("-");var _4c=[];for(var i=_4b.length;i>0;i--){_4c.push(_4b.slice(0,i).join("-"));}_4c.push(false);if(_49){_4c.reverse();}for(var j=_4c.length-1;j>=0;j--){var loc=_4c[j]||"ROOT";var _50=_4a(loc);if(_50){break;}}};dojo.i18n._preloadLocalizations=function(_51,_52){function _53(_54){_54=dojo.i18n.normalizeLocale(_54);dojo.i18n._searchLocalePath(_54,true,function(loc){for(var i=0;i<_52.length;i++){if(_52[i]==loc){dojo["require"](_51+"_"+loc);return true;}}return false;});};_53();var _57=dojo.config.extraLocale||[];for(var i=0;i<_57.length;i++){_53(_57[i]);}};}if(!dojo._hasResource["dijit.ColorPalette"]){dojo._hasResource["dijit.ColorPalette"]=true;dojo.provide("dijit.ColorPalette");dojo.declare("dijit.ColorPalette",[dijit._Widget,dijit._Templated],{defaultTimeout:500,timeoutChangeRate:0.9,palette:"7x10",value:null,_currentFocus:0,_xDim:null,_yDim:null,_palettes:{"7x10":[["white","seashell","cornsilk","lemonchiffon","lightyellow","palegreen","paleturquoise","lightcyan","lavender","plum"],["lightgray","pink","bisque","moccasin","khaki","lightgreen","lightseagreen","lightskyblue","cornflowerblue","violet"],["silver","lightcoral","sandybrown","orange","palegoldenrod","chartreuse","mediumturquoise","skyblue","mediumslateblue","orchid"],["gray","red","orangered","darkorange","yellow","limegreen","darkseagreen","royalblue","slateblue","mediumorchid"],["dimgray","crimson","chocolate","coral","gold","forestgreen","seagreen","blue","blueviolet","darkorchid"],["darkslategray","firebrick","saddlebrown","sienna","olive","green","darkcyan","mediumblue","darkslateblue","darkmagenta"],["black","darkred","maroon","brown","darkolivegreen","darkgreen","midnightblue","navy","indigo","purple"]],"3x4":[["white","lime","green","blue"],["silver","yellow","fuchsia","navy"],["gray","red","purple","black"]]},_imagePaths:{"7x10":dojo.moduleUrl("dijit.themes","a11y/colors7x10.png"),"3x4":dojo.moduleUrl("dijit.themes","a11y/colors3x4.png")},_paletteCoords:{"leftOffset":3,"topOffset":3,"cWidth":20,"cHeight":20},templateString:"<div class=\"dijitInline dijitColorPalette\">\n\t<div class=\"dijitColorPaletteInner\" dojoAttachPoint=\"divNode\" waiRole=\"grid\" tabIndex=\"${tabIndex}\">\n\t\t<img class=\"dijitColorPaletteUnder\" dojoAttachPoint=\"imageNode\" waiRole=\"presentation\">\n\t</div>\t\n</div>\n",_paletteDims:{"7x10":{"width":"206px","height":"145px"},"3x4":{"width":"86px","height":"64px"}},tabIndex:"0",postCreate:function(){dojo.mixin(this.divNode.style,this._paletteDims[this.palette]);this.imageNode.setAttribute("src",this._imagePaths[this.palette]);var _59=this._palettes[this.palette];this.domNode.style.position="relative";this._cellNodes=[];this.colorNames=dojo.i18n.getLocalization("dojo","colors",this.lang);var url=this._blankGif,_5b=new dojo.Color(),_5c=this._paletteCoords;for(var row=0;row<_59.length;row++){for(var col=0;col<_59[row].length;col++){var _5f=_59[row][col],_60=_5b.setColor(dojo.Color.named[_5f]);var _61=dojo.create("span",{"class":"dijitPaletteCell","tabindex":"-1",title:this.colorNames[_5f],style:{top:_5c.topOffset+(row*_5c.cHeight)+"px",left:_5c.leftOffset+(col*_5c.cWidth)+"px"}});var _62=dojo.create("img",{src:url,"class":"dijitPaletteImg",alt:this.colorNames[_5f]},_61);_62.color=_60.toHex();var _63=_62.style;_63.color=_63.backgroundColor=_62.color;dojo.forEach(["Dijitclick","MouseEnter","Focus","Blur"],function(_64){this.connect(_61,"on"+_64.toLowerCase(),"_onCell"+_64);},this);dojo.place(_61,this.divNode);dijit.setWaiRole(_61,"gridcell");_61.index=this._cellNodes.length;this._cellNodes.push(_61);}}this._xDim=_59[0].length;this._yDim=_59.length;this.connect(this.divNode,"onfocus","_onDivNodeFocus");var _65={UP_ARROW:-this._xDim,DOWN_ARROW:this._xDim,RIGHT_ARROW:1,LEFT_ARROW:-1};for(var key in _65){this._connects.push(dijit.typematic.addKeyListener(this.domNode,{charOrCode:dojo.keys[key],ctrlKey:false,altKey:false,shiftKey:false},this,function(){var _67=_65[key];return function(_68){this._navigateByKey(_67,_68);};}(),this.timeoutChangeRate,this.defaultTimeout));}},focus:function(){this._focusFirst();},onChange:function(_69){},_focusFirst:function(){this._currentFocus=0;var _6a=this._cellNodes[this._currentFocus];window.setTimeout(function(){dijit.focus(_6a);},0);},_onDivNodeFocus:function(evt){if(evt.target===this.divNode){this._focusFirst();}},_onFocus:function(){dojo.attr(this.divNode,"tabindex","-1");},_onBlur:function(){this._removeCellHighlight(this._currentFocus);dojo.attr(this.divNode,"tabindex",this.tabIndex);},_onCellDijitclick:function(evt){var _6d=evt.currentTarget;if(this._currentFocus!=_6d.index){this._currentFocus=_6d.index;window.setTimeout(function(){dijit.focus(_6d);},0);}this._selectColor(_6d);dojo.stopEvent(evt);},_onCellMouseEnter:function(evt){var _6f=evt.currentTarget;this._setCurrent(_6f);window.setTimeout(function(){dijit.focus(_6f);},0);},_onCellFocus:function(evt){this._setCurrent(evt.currentTarget);},_setCurrent:function(_71){this._removeCellHighlight(this._currentFocus);this._currentFocus=_71.index;dojo.addClass(_71,"dijitPaletteCellHighlight");},_onCellBlur:function(evt){this._removeCellHighlight(this._currentFocus);},_removeCellHighlight:function(_73){dojo.removeClass(this._cellNodes[_73],"dijitPaletteCellHighlight");},_selectColor:function(_74){var img=_74.getElementsByTagName("img")[0];this.onChange(this.value=img.color);},_navigateByKey:function(_76,_77){if(_77==-1){return;}var _78=this._currentFocus+_76;if(_78<this._cellNodes.length&&_78>-1){var _79=this._cellNodes[_78];_79.focus();}}});}if(!dojo._hasResource["dijit.Declaration"]){dojo._hasResource["dijit.Declaration"]=true;dojo.provide("dijit.Declaration");dojo.declare("dijit.Declaration",dijit._Widget,{_noScript:true,widgetClass:"",defaults:null,mixins:[],buildRendering:function(){var src=this.srcNodeRef.parentNode.removeChild(this.srcNodeRef),_7b=dojo.query("> script[type^='dojo/method'][event]",src).orphan(),_7c=dojo.query("> script[type^='dojo/method']",src).orphan(),_7d=dojo.query("> script[type^='dojo/connect']",src).orphan(),_7e=src.nodeName;var _7f=this.defaults||{};dojo.forEach(_7b,function(s){var evt=s.getAttribute("event"),_82=dojo.parser._functionFromScript(s);_7f[evt]=_82;});this.mixins=this.mixins.length?dojo.map(this.mixins,function(_83){return dojo.getObject(_83);}):[dijit._Widget,dijit._Templated];_7f.widgetsInTemplate=true;_7f._skipNodeCache=true;_7f.templateString="<"+_7e+" class='"+src.className+"' dojoAttachPoint='"+(src.getAttribute("dojoAttachPoint")||"")+"' dojoAttachEvent='"+(src.getAttribute("dojoAttachEvent")||"")+"' >"+src.innerHTML.replace(/\%7B/g,"{").replace(/\%7D/g,"}")+"</"+_7e+">";dojo.query("[dojoType]",src).forEach(function(_84){_84.removeAttribute("dojoType");});var wc=dojo.declare(this.widgetClass,this.mixins,_7f);var _86=_7d.concat(_7c);dojo.forEach(_86,function(s){var evt=s.getAttribute("event")||"postscript",_89=dojo.parser._functionFromScript(s);dojo.connect(wc.prototype,evt,_89);});}});}if(!dojo._hasResource["dojo.dnd.common"]){dojo._hasResource["dojo.dnd.common"]=true;dojo.provide("dojo.dnd.common");dojo.dnd._isMac=navigator.appVersion.indexOf("Macintosh")>=0;dojo.dnd._copyKey=dojo.dnd._isMac?"metaKey":"ctrlKey";dojo.dnd.getCopyKeyState=function(e){return e[dojo.dnd._copyKey];};dojo.dnd._uniqueId=0;dojo.dnd.getUniqueId=function(){var id;do{id=dojo._scopeName+"Unique"+(++dojo.dnd._uniqueId);}while(dojo.byId(id));return id;};dojo.dnd._empty={};dojo.dnd.isFormElement=function(e){var t=e.target;if(t.nodeType==3){t=t.parentNode;}return " button textarea input select option ".indexOf(" "+t.tagName.toLowerCase()+" ")>=0;};dojo.dnd._lmb=dojo.isIE?1:0;dojo.dnd._isLmbPressed=dojo.isIE?function(e){return e.button&1;}:function(e){return e.button===0;};}if(!dojo._hasResource["dojo.dnd.autoscroll"]){dojo._hasResource["dojo.dnd.autoscroll"]=true;dojo.provide("dojo.dnd.autoscroll");dojo.dnd.getViewport=function(){var d=dojo.doc,dd=d.documentElement,w=window,b=dojo.body();if(dojo.isMozilla){return {w:dd.clientWidth,h:w.innerHeight};}else{if(!dojo.isOpera&&w.innerWidth){return {w:w.innerWidth,h:w.innerHeight};}else{if(!dojo.isOpera&&dd&&dd.clientWidth){return {w:dd.clientWidth,h:dd.clientHeight};}else{if(b.clientWidth){return {w:b.clientWidth,h:b.clientHeight};}}}}return null;};dojo.dnd.V_TRIGGER_AUTOSCROLL=32;dojo.dnd.H_TRIGGER_AUTOSCROLL=32;dojo.dnd.V_AUTOSCROLL_VALUE=16;dojo.dnd.H_AUTOSCROLL_VALUE=16;dojo.dnd.autoScroll=function(e){var v=dojo.dnd.getViewport(),dx=0,dy=0;if(e.clientX<dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=-dojo.dnd.H_AUTOSCROLL_VALUE;}else{if(e.clientX>v.w-dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=dojo.dnd.H_AUTOSCROLL_VALUE;}}if(e.clientY<dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=-dojo.dnd.V_AUTOSCROLL_VALUE;}else{if(e.clientY>v.h-dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=dojo.dnd.V_AUTOSCROLL_VALUE;}}window.scrollBy(dx,dy);};dojo.dnd._validNodes={"div":1,"p":1,"td":1};dojo.dnd._validOverflow={"auto":1,"scroll":1};dojo.dnd.autoScrollNodes=function(e){for(var n=e.target;n;){if(n.nodeType==1&&(n.tagName.toLowerCase() in dojo.dnd._validNodes)){var s=dojo.getComputedStyle(n);if(s.overflow.toLowerCase() in dojo.dnd._validOverflow){var b=dojo._getContentBox(n,s),t=dojo._abs(n,true);var w=Math.min(dojo.dnd.H_TRIGGER_AUTOSCROLL,b.w/2),h=Math.min(dojo.dnd.V_TRIGGER_AUTOSCROLL,b.h/2),rx=e.pageX-t.x,ry=e.pageY-t.y,dx=0,dy=0;if(dojo.isWebKit||dojo.isOpera){rx+=dojo.body().scrollLeft,ry+=dojo.body().scrollTop;}if(rx>0&&rx<b.w){if(rx<w){dx=-w;}else{if(rx>b.w-w){dx=w;}}}if(ry>0&&ry<b.h){if(ry<h){dy=-h;}else{if(ry>b.h-h){dy=h;}}}var _a3=n.scrollLeft,_a4=n.scrollTop;n.scrollLeft=n.scrollLeft+dx;n.scrollTop=n.scrollTop+dy;if(_a3!=n.scrollLeft||_a4!=n.scrollTop){return;}}}try{n=n.parentNode;}catch(x){n=null;}}dojo.dnd.autoScroll(e);};}if(!dojo._hasResource["dojo.dnd.Mover"]){dojo._hasResource["dojo.dnd.Mover"]=true;dojo.provide("dojo.dnd.Mover");dojo.declare("dojo.dnd.Mover",null,{constructor:function(_a5,e,_a7){this.node=dojo.byId(_a5);this.marginBox={l:e.pageX,t:e.pageY};this.mouseButton=e.button;var h=this.host=_a7,d=_a5.ownerDocument,_aa=dojo.connect(d,"onmousemove",this,"onFirstMove");this.events=[dojo.connect(d,"onmousemove",this,"onMouseMove"),dojo.connect(d,"onmouseup",this,"onMouseUp"),dojo.connect(d,"ondragstart",dojo.stopEvent),dojo.connect(d.body,"onselectstart",dojo.stopEvent),_aa];if(h&&h.onMoveStart){h.onMoveStart(this);}},onMouseMove:function(e){dojo.dnd.autoScroll(e);var m=this.marginBox;this.host.onMove(this,{l:m.l+e.pageX,t:m.t+e.pageY});dojo.stopEvent(e);},onMouseUp:function(e){if(dojo.isWebKit&&dojo.dnd._isMac&&this.mouseButton==2?e.button==0:this.mouseButton==e.button){this.destroy();}dojo.stopEvent(e);},onFirstMove:function(){var s=this.node.style,l,t,h=this.host;switch(s.position){case "relative":case "absolute":l=Math.round(parseFloat(s.left));t=Math.round(parseFloat(s.top));break;default:s.position="absolute";var m=dojo.marginBox(this.node);var b=dojo.doc.body;var bs=dojo.getComputedStyle(b);var bm=dojo._getMarginBox(b,bs);var bc=dojo._getContentBox(b,bs);l=m.l-(bc.l-bm.l);t=m.t-(bc.t-bm.t);break;}this.marginBox.l=l-this.marginBox.l;this.marginBox.t=t-this.marginBox.t;if(h&&h.onFirstMove){h.onFirstMove(this);}dojo.disconnect(this.events.pop());},destroy:function(){dojo.forEach(this.events,dojo.disconnect);var h=this.host;if(h&&h.onMoveStop){h.onMoveStop(this);}this.events=this.node=this.host=null;}});}if(!dojo._hasResource["dojo.dnd.Moveable"]){dojo._hasResource["dojo.dnd.Moveable"]=true;dojo.provide("dojo.dnd.Moveable");dojo.declare("dojo.dnd.Moveable",null,{handle:"",delay:0,skip:false,constructor:function(_b8,_b9){this.node=dojo.byId(_b8);if(!_b9){_b9={};}this.handle=_b9.handle?dojo.byId(_b9.handle):null;if(!this.handle){this.handle=this.node;}this.delay=_b9.delay>0?_b9.delay:0;this.skip=_b9.skip;this.mover=_b9.mover?_b9.mover:dojo.dnd.Mover;this.events=[dojo.connect(this.handle,"onmousedown",this,"onMouseDown"),dojo.connect(this.handle,"ondragstart",this,"onSelectStart"),dojo.connect(this.handle,"onselectstart",this,"onSelectStart")];},markupFactory:function(_ba,_bb){return new dojo.dnd.Moveable(_bb,_ba);},destroy:function(){dojo.forEach(this.events,dojo.disconnect);this.events=this.node=this.handle=null;},onMouseDown:function(e){if(this.skip&&dojo.dnd.isFormElement(e)){return;}if(this.delay){this.events.push(dojo.connect(this.handle,"onmousemove",this,"onMouseMove"),dojo.connect(this.handle,"onmouseup",this,"onMouseUp"));this._lastX=e.pageX;this._lastY=e.pageY;}else{this.onDragDetected(e);}dojo.stopEvent(e);},onMouseMove:function(e){if(Math.abs(e.pageX-this._lastX)>this.delay||Math.abs(e.pageY-this._lastY)>this.delay){this.onMouseUp(e);this.onDragDetected(e);}dojo.stopEvent(e);},onMouseUp:function(e){for(var i=0;i<2;++i){dojo.disconnect(this.events.pop());}dojo.stopEvent(e);},onSelectStart:function(e){if(!this.skip||!dojo.dnd.isFormElement(e)){dojo.stopEvent(e);}},onDragDetected:function(e){new this.mover(this.node,e,this);},onMoveStart:function(_c2){dojo.publish("/dnd/move/start",[_c2]);dojo.addClass(dojo.body(),"dojoMove");dojo.addClass(this.node,"dojoMoveItem");},onMoveStop:function(_c3){dojo.publish("/dnd/move/stop",[_c3]);dojo.removeClass(dojo.body(),"dojoMove");dojo.removeClass(this.node,"dojoMoveItem");},onFirstMove:function(_c4){},onMove:function(_c5,_c6){this.onMoving(_c5,_c6);var s=_c5.node.style;s.left=_c6.l+"px";s.top=_c6.t+"px";this.onMoved(_c5,_c6);},onMoving:function(_c8,_c9){},onMoved:function(_ca,_cb){}});}if(!dojo._hasResource["dojo.dnd.move"]){dojo._hasResource["dojo.dnd.move"]=true;dojo.provide("dojo.dnd.move");dojo.declare("dojo.dnd.move.constrainedMoveable",dojo.dnd.Moveable,{constraints:function(){},within:false,markupFactory:function(_cc,_cd){return new dojo.dnd.move.constrainedMoveable(_cd,_cc);},constructor:function(_ce,_cf){if(!_cf){_cf={};}this.constraints=_cf.constraints;this.within=_cf.within;},onFirstMove:function(_d0){var c=this.constraintBox=this.constraints.call(this,_d0);c.r=c.l+c.w;c.b=c.t+c.h;if(this.within){var mb=dojo.marginBox(_d0.node);c.r-=mb.w;c.b-=mb.h;}},onMove:function(_d3,_d4){var c=this.constraintBox,s=_d3.node.style;s.left=(_d4.l<c.l?c.l:c.r<_d4.l?c.r:_d4.l)+"px";s.top=(_d4.t<c.t?c.t:c.b<_d4.t?c.b:_d4.t)+"px";}});dojo.declare("dojo.dnd.move.boxConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{box:{},markupFactory:function(_d7,_d8){return new dojo.dnd.move.boxConstrainedMoveable(_d8,_d7);},constructor:function(_d9,_da){var box=_da&&_da.box;this.constraints=function(){return box;};}});dojo.declare("dojo.dnd.move.parentConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(_dc,_dd){return new dojo.dnd.move.parentConstrainedMoveable(_dd,_dc);},constructor:function(_de,_df){var _e0=_df&&_df.area;this.constraints=function(){var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);if(_e0=="margin"){return mb;}var t=dojo._getMarginExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(_e0=="border"){return mb;}t=dojo._getBorderExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(_e0=="padding"){return mb;}t=dojo._getPadExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;return mb;};}});dojo.dnd.move.constrainedMover=function(fun,_e6){dojo.deprecated("dojo.dnd.move.constrainedMover, use dojo.dnd.move.constrainedMoveable instead");var _e7=function(_e8,e,_ea){dojo.dnd.Mover.call(this,_e8,e,_ea);};dojo.extend(_e7,dojo.dnd.Mover.prototype);dojo.extend(_e7,{onMouseMove:function(e){dojo.dnd.autoScroll(e);var m=this.marginBox,c=this.constraintBox,l=m.l+e.pageX,t=m.t+e.pageY;l=l<c.l?c.l:c.r<l?c.r:l;t=t<c.t?c.t:c.b<t?c.b:t;this.host.onMove(this,{l:l,t:t});},onFirstMove:function(){dojo.dnd.Mover.prototype.onFirstMove.call(this);var c=this.constraintBox=fun.call(this);c.r=c.l+c.w;c.b=c.t+c.h;if(_e6){var mb=dojo.marginBox(this.node);c.r-=mb.w;c.b-=mb.h;}}});return _e7;};dojo.dnd.move.boxConstrainedMover=function(box,_f3){dojo.deprecated("dojo.dnd.move.boxConstrainedMover, use dojo.dnd.move.boxConstrainedMoveable instead");return dojo.dnd.move.constrainedMover(function(){return box;},_f3);};dojo.dnd.move.parentConstrainedMover=function(_f4,_f5){dojo.deprecated("dojo.dnd.move.parentConstrainedMover, use dojo.dnd.move.parentConstrainedMoveable instead");var fun=function(){var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);if(_f4=="margin"){return mb;}var t=dojo._getMarginExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(_f4=="border"){return mb;}t=dojo._getBorderExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(_f4=="padding"){return mb;}t=dojo._getPadExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;return mb;};return dojo.dnd.move.constrainedMover(fun,_f5);};dojo.dnd.constrainedMover=dojo.dnd.move.constrainedMover;dojo.dnd.boxConstrainedMover=dojo.dnd.move.boxConstrainedMover;dojo.dnd.parentConstrainedMover=dojo.dnd.move.parentConstrainedMover;}if(!dojo._hasResource["dojo.dnd.TimedMoveable"]){dojo._hasResource["dojo.dnd.TimedMoveable"]=true;dojo.provide("dojo.dnd.TimedMoveable");(function(){var _fb=dojo.dnd.Moveable.prototype.onMove;dojo.declare("dojo.dnd.TimedMoveable",dojo.dnd.Moveable,{timeout:40,constructor:function(_fc,_fd){if(!_fd){_fd={};}if(_fd.timeout&&typeof _fd.timeout=="number"&&_fd.timeout>=0){this.timeout=_fd.timeout;}},markupFactory:function(_fe,_ff){return new dojo.dnd.TimedMoveable(_ff,_fe);},onMoveStop:function(_100){if(_100._timer){clearTimeout(_100._timer);_fb.call(this,_100,_100._leftTop);}dojo.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);},onMove:function(_101,_102){_101._leftTop=_102;if(!_101._timer){var _t=this;_101._timer=setTimeout(function(){_101._timer=null;_fb.call(_t,_101,_101._leftTop);},this.timeout);}}});})();}if(!dojo._hasResource["dojo.fx.Toggler"]){dojo._hasResource["dojo.fx.Toggler"]=true;dojo.provide("dojo.fx.Toggler");dojo.declare("dojo.fx.Toggler",null,{constructor:function(args){var _t=this;dojo.mixin(_t,args);_t.node=args.node;_t._showArgs=dojo.mixin({},args);_t._showArgs.node=_t.node;_t._showArgs.duration=_t.showDuration;_t.showAnim=_t.showFunc(_t._showArgs);_t._hideArgs=dojo.mixin({},args);_t._hideArgs.node=_t.node;_t._hideArgs.duration=_t.hideDuration;_t.hideAnim=_t.hideFunc(_t._hideArgs);dojo.connect(_t.showAnim,"beforeBegin",dojo.hitch(_t.hideAnim,"stop",true));dojo.connect(_t.hideAnim,"beforeBegin",dojo.hitch(_t.showAnim,"stop",true));},node:null,showFunc:dojo.fadeIn,hideFunc:dojo.fadeOut,showDuration:200,hideDuration:200,show:function(_106){return this.showAnim.play(_106||0);},hide:function(_107){return this.hideAnim.play(_107||0);}});}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");(function(){var d=dojo,_109={_fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[]);}return this;}};var _10c=function(_10d){this._index=-1;this._animations=_10d||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;d.forEach(this._animations,function(a){this.duration+=a.duration;if(a.delay){this.duration+=a.delay;}},this);};d.extend(_10c,{_onAnimate:function(){this._fire("onAnimate",arguments);},_onEnd:function(){d.disconnect(this._onAnimateCtx);d.disconnect(this._onEndCtx);this._onAnimateCtx=this._onEndCtx=null;if(this._index+1==this._animations.length){this._fire("onEnd");}else{this._current=this._animations[++this._index];this._onAnimateCtx=d.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");this._current.play(0,true);}},play:function(_10f,_110){if(!this._current){this._current=this._animations[this._index=0];}if(!_110&&this._current.status()=="playing"){return this;}var _111=d.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_112=d.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_114=d.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);d.disconnect(_111);d.disconnect(_112);d.disconnect(_114);});if(this._onAnimateCtx){d.disconnect(this._onAnimateCtx);}this._onAnimateCtx=d.connect(this._current,"onAnimate",this,"_onAnimate");if(this._onEndCtx){d.disconnect(this._onEndCtx);}this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");this._current.play.apply(this._current,arguments);return this;},pause:function(){if(this._current){var e=d.connect(this._current,"onPause",this,function(arg){this._fire("onPause",arguments);d.disconnect(e);});this._current.pause();}return this;},gotoPercent:function(_118,_119){this.pause();var _11a=this.duration*_118;this._current=null;d.some(this._animations,function(a){if(a.duration<=_11a){this._current=a;return true;}_11a-=a.duration;return false;});if(this._current){this._current.gotoPercent(_11a/this._current.duration,_119);}return this;},stop:function(_11c){if(this._current){if(_11c){for(;this._index+1<this._animations.length;++this._index){this._animations[this._index].stop(true);}this._current=this._animations[this._index];}var e=d.connect(this._current,"onStop",this,function(arg){this._fire("onStop",arguments);d.disconnect(e);});this._current.stop();}return this;},status:function(){return this._current?this._current.status():"stopped";},destroy:function(){if(this._onAnimateCtx){d.disconnect(this._onAnimateCtx);}if(this._onEndCtx){d.disconnect(this._onEndCtx);}}});d.extend(_10c,_109);dojo.fx.chain=function(_11f){return new _10c(_11f);};var _120=function(_121){this._animations=_121||[];this._connects=[];this._finished=0;this.duration=0;d.forEach(_121,function(a){var _123=a.duration;if(a.delay){_123+=a.delay;}if(this.duration<_123){this.duration=_123;}this._connects.push(d.connect(a,"onEnd",this,"_onEnd"));},this);this._pseudoAnimation=new d._Animation({curve:[0,1],duration:this.duration});var self=this;d.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop"],function(evt){self._connects.push(d.connect(self._pseudoAnimation,evt,function(){self._fire(evt,arguments);}));});};d.extend(_120,{_doAction:function(_126,args){d.forEach(this._animations,function(a){a[_126].apply(a,args);});return this;},_onEnd:function(){if(++this._finished==this._animations.length){this._fire("onEnd");}},_call:function(_129,args){var t=this._pseudoAnimation;t[_129].apply(t,args);},play:function(_12c,_12d){this._finished=0;this._doAction("play",arguments);this._call("play",arguments);return this;},pause:function(){this._doAction("pause",arguments);this._call("pause",arguments);return this;},gotoPercent:function(_12e,_12f){var ms=this.duration*_12e;d.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_12f);});this._call("gotoPercent",arguments);return this;},stop:function(_132){this._doAction("stop",arguments);this._call("stop",arguments);return this;},status:function(){return this._pseudoAnimation.status();},destroy:function(){d.forEach(this._connects,dojo.disconnect);}});d.extend(_120,_109);dojo.fx.combine=function(_133){return new _120(_133);};dojo.fx.wipeIn=function(args){args.node=d.byId(args.node);var node=args.node,s=node.style,o;var anim=d.animateProperty(d.mixin({properties:{height:{start:function(){o=s.overflow;s.overflow="hidden";if(s.visibility=="hidden"||s.display=="none"){s.height="1px";s.display="";s.visibility="";return 1;}else{var _139=d.style(node,"height");return Math.max(_139,1);}},end:function(){return node.scrollHeight;}}}},args));d.connect(anim,"onEnd",function(){s.height="auto";s.overflow=o;});return anim;};dojo.fx.wipeOut=function(args){var node=args.node=d.byId(args.node),s=node.style,o;var anim=d.animateProperty(d.mixin({properties:{height:{end:1}}},args));d.connect(anim,"beforeBegin",function(){o=s.overflow;s.overflow="hidden";s.display="";});d.connect(anim,"onEnd",function(){s.overflow=o;s.height="auto";s.display="none";});return anim;};dojo.fx.slideTo=function(args){var node=args.node=d.byId(args.node),top=null,left=null;var init=(function(n){return function(){var cs=d.getComputedStyle(n);var pos=cs.position;top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);left=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);if(pos!="absolute"&&pos!="relative"){var ret=d.coords(n,true);top=ret.y;left=ret.x;n.style.position="absolute";n.style.top=top+"px";n.style.left=left+"px";}};})(node);init();var anim=d.animateProperty(d.mixin({properties:{top:args.top||0,left:args.left||0}},args));d.connect(anim,"beforeBegin",anim,init);return anim;};})();}if(!dojo._hasResource["dijit.form._FormMixin"]){dojo._hasResource["dijit.form._FormMixin"]=true;dojo.provide("dijit.form._FormMixin");dojo.declare("dijit.form._FormMixin",null,{reset:function(){dojo.forEach(this.getDescendants(),function(_149){if(_149.reset){_149.reset();}});},validate:function(){var _14a=false;return dojo.every(dojo.map(this.getDescendants(),function(_14b){_14b._hasBeenBlurred=true;var _14c=_14b.disabled||!_14b.validate||_14b.validate();if(!_14c&&!_14a){dijit.scrollIntoView(_14b.containerNode||_14b.domNode);_14b.focus();_14a=true;}return _14c;}),function(item){return item;});},setValues:function(val){dojo.deprecated(this.declaredClass+"::setValues() is deprecated. Use attr('value', val) instead.","","2.0");return this.attr("value",val);},_setValueAttr:function(obj){var map={};dojo.forEach(this.getDescendants(),function(_151){if(!_151.name){return;}var _152=map[_151.name]||(map[_151.name]=[]);_152.push(_151);});for(var name in map){if(!map.hasOwnProperty(name)){continue;}var _154=map[name],_155=dojo.getObject(name,false,obj);if(_155===undefined){continue;}if(!dojo.isArray(_155)){_155=[_155];}if(typeof _154[0].checked=="boolean"){dojo.forEach(_154,function(w,i){w.attr("value",dojo.indexOf(_155,w.value)!=-1);});}else{if(_154[0]._multiValue){_154[0].attr("value",_155);}else{dojo.forEach(_154,function(w,i){w.attr("value",_155[i]);});}}}},getValues:function(){dojo.deprecated(this.declaredClass+"::getValues() is deprecated. Use attr('value') instead.","","2.0");return this.attr("value");},_getValueAttr:function(){var obj={};dojo.forEach(this.getDescendants(),function(_15b){var name=_15b.name;if(!name||_15b.disabled){return;}var _15d=_15b.attr("value");if(typeof _15b.checked=="boolean"){if(/Radio/.test(_15b.declaredClass)){if(_15d!==false){dojo.setObject(name,_15d,obj);}else{_15d=dojo.getObject(name,false,obj);if(_15d===undefined){dojo.setObject(name,null,obj);}}}else{var ary=dojo.getObject(name,false,obj);if(!ary){ary=[];dojo.setObject(name,ary,obj);}if(_15d!==false){ary.push(_15d);}}}else{dojo.setObject(name,_15d,obj);}});return obj;},isValid:function(){this._invalidWidgets=dojo.filter(this.getDescendants(),function(_15f){return !_15f.disabled&&_15f.isValid&&!_15f.isValid();});return !this._invalidWidgets.length;},onValidStateChange:function(_160){},_widgetChange:function(_161){var _162=this._lastValidState;if(!_161||this._lastValidState===undefined){_162=this.isValid();if(this._lastValidState===undefined){this._lastValidState=_162;}}else{if(_161.isValid){this._invalidWidgets=dojo.filter(this._invalidWidgets||[],function(w){return (w!=_161);},this);if(!_161.isValid()&&!_161.attr("disabled")){this._invalidWidgets.push(_161);}_162=(this._invalidWidgets.length===0);}}if(_162!==this._lastValidState){this._lastValidState=_162;this.onValidStateChange(_162);}},connectChildren:function(){dojo.forEach(this._changeConnections,dojo.hitch(this,"disconnect"));var _164=this;var _165=this._changeConnections=[];dojo.forEach(dojo.filter(this.getDescendants(),function(item){return item.validate;}),function(_167){_165.push(_164.connect(_167,"validate",dojo.hitch(_164,"_widgetChange",_167)));_165.push(_164.connect(_167,"_setDisabledAttr",dojo.hitch(_164,"_widgetChange",_167)));});this._widgetChange(null);},startup:function(){this.inherited(arguments);this._changeConnections=[];this.connectChildren();}});}if(!dojo._hasResource["dijit._DialogMixin"]){dojo._hasResource["dijit._DialogMixin"]=true;dojo.provide("dijit._DialogMixin");dojo.declare("dijit._DialogMixin",null,{attributeMap:dijit._Widget.prototype.attributeMap,execute:function(_168){},onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.attr("value"));},_getFocusItems:function(_169){var _16a=dijit._getTabNavigable(dojo.byId(_169));this._firstFocusItem=_16a.lowest||_16a.first||_169;this._lastFocusItem=_16a.last||_16a.highest||this._firstFocusItem;if(dojo.isMoz&&this._firstFocusItem.tagName.toLowerCase()=="input"&&dojo.attr(this._firstFocusItem,"type").toLowerCase()=="file"){dojo.attr(_169,"tabindex","0");this._firstFocusItem=_169;}}});}if(!dojo._hasResource["dijit.DialogUnderlay"]){dojo._hasResource["dijit.DialogUnderlay"]=true;dojo.provide("dijit.DialogUnderlay");dojo.declare("dijit.DialogUnderlay",[dijit._Widget,dijit._Templated],{templateString:"<div class='dijitDialogUnderlayWrapper'><div class='dijitDialogUnderlay' dojoAttachPoint='node'></div></div>",dialogId:"","class":"",attributeMap:{id:"domNode"},_setDialogIdAttr:function(id){dojo.attr(this.node,"id",id+"_underlay");},_setClassAttr:function(_16c){this.node.className="dijitDialogUnderlay "+_16c;},postCreate:function(){dojo.body().appendChild(this.domNode);this.bgIframe=new dijit.BackgroundIframe(this.domNode);},layout:function(){var is=this.node.style,os=this.domNode.style;os.display="none";var _16f=dijit.getViewport();os.top=_16f.t+"px";os.left=_16f.l+"px";is.width=_16f.w+"px";is.height=_16f.h+"px";os.display="block";},show:function(){this.domNode.style.display="block";this.layout();if(this.bgIframe.iframe){this.bgIframe.iframe.style.display="block";}},hide:function(){this.domNode.style.display="none";if(this.bgIframe.iframe){this.bgIframe.iframe.style.display="none";}},uninitialize:function(){if(this.bgIframe){this.bgIframe.destroy();}}});}if(!dojo._hasResource["dojo.html"]){dojo._hasResource["dojo.html"]=true;dojo.provide("dojo.html");(function(){var _170=0;dojo.html._secureForInnerHtml=function(cont){return cont.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"");};dojo.html._emptyNode=dojo.empty;dojo.html._setNodeContent=function(node,cont,_174){if(_174){dojo.html._emptyNode(node);}if(typeof cont=="string"){var pre="",post="",walk=0,name=node.nodeName.toLowerCase();switch(name){case "tr":pre="<tr>";post="</tr>";walk+=1;case "tbody":case "thead":pre="<tbody>"+pre;post+="</tbody>";walk+=1;case "table":pre="<table>"+pre;post+="</table>";walk+=1;break;}if(walk){var n=node.ownerDocument.createElement("div");n.innerHTML=pre+cont+post;do{n=n.firstChild;}while(--walk);dojo.forEach(n.childNodes,function(n){node.appendChild(n.cloneNode(true));});}else{node.innerHTML=cont;}}else{if(cont.nodeType){node.appendChild(cont);}else{dojo.forEach(cont,function(n){node.appendChild(n.cloneNode(true));});}}return node;};dojo.declare("dojo.html._ContentSetter",null,{node:"",content:"",id:"",cleanContent:false,extractContent:false,parseContent:false,constructor:function(_17c,node){dojo.mixin(this,_17c||{});node=this.node=dojo.byId(this.node||node);if(!this.id){this.id=["Setter",(node)?node.id||node.tagName:"",_170++].join("_");}if(!(this.node||node)){new Error(this.declaredClass+": no node provided to "+this.id);}},set:function(cont,_17f){if(undefined!==cont){this.content=cont;}if(_17f){this._mixin(_17f);}this.onBegin();this.setContent();this.onEnd();return this.node;},setContent:function(){var node=this.node;if(!node){console.error("setContent given no node");}try{node=dojo.html._setNodeContent(node,this.content);}catch(e){var _181=this.onContentError(e);try{node.innerHTML=_181;}catch(e){console.error("Fatal "+this.declaredClass+".setContent could not change content due to "+e.message,e);}}this.node=node;},empty:function(){if(this.parseResults&&this.parseResults.length){dojo.forEach(this.parseResults,function(w){if(w.destroy){w.destroy();}});delete this.parseResults;}dojo.html._emptyNode(this.node);},onBegin:function(){var cont=this.content;if(dojo.isString(cont)){if(this.cleanContent){cont=dojo.html._secureForInnerHtml(cont);}if(this.extractContent){var _184=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_184){cont=_184[1];}}}this.empty();this.content=cont;return this.node;},onEnd:function(){if(this.parseContent){this._parse();}return this.node;},tearDown:function(){delete this.parseResults;delete this.node;delete this.content;},onContentError:function(err){return "Error occured setting content: "+err;},_mixin:function(_186){var _187={},key;for(key in _186){if(key in _187){continue;}this[key]=_186[key];}},_parse:function(){var _189=this.node;try{this.parseResults=dojo.parser.parse(_189,true);}catch(e){this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);}},_onError:function(type,err,_18c){var _18d=this["on"+type+"Error"].call(this,err);if(_18c){console.error(_18c,err);}else{if(_18d){dojo.html._setNodeContent(this.node,_18d,true);}}}});dojo.html.set=function(node,cont,_190){if(undefined==cont){console.warn("dojo.html.set: no cont argument provided, using empty string");cont="";}if(!_190){return dojo.html._setNodeContent(node,cont,true);}else{var op=new dojo.html._ContentSetter(dojo.mixin(_190,{content:cont,node:node}));return op.set();}};})();}if(!dojo._hasResource["dijit.layout.ContentPane"]){dojo._hasResource["dijit.layout.ContentPane"]=true;dojo.provide("dijit.layout.ContentPane");dojo.declare("dijit.layout.ContentPane",dijit._Widget,{href:"",extractContent:false,parseOnLoad:true,preventCache:false,preload:false,refreshOnShow:false,loadingMessage:"<span class='dijitContentPaneLoading'>${loadingState}</span>",errorMessage:"<span class='dijitContentPaneError'>${errorState}</span>",isLoaded:false,baseClass:"dijitContentPane",doLayout:true,ioArgs:{},isContainer:true,postMixInProperties:function(){this.inherited(arguments);var _192=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_192);this.errorMessage=dojo.string.substitute(this.errorMessage,_192);if(!this.href&&this.srcNodeRef&&this.srcNodeRef.innerHTML){this.isLoaded=true;}},buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},postCreate:function(){this.domNode.title="";if(!dojo.attr(this.domNode,"role")){dijit.setWaiRole(this.domNode,"group");}dojo.addClass(this.domNode,this.baseClass);},startup:function(){if(this._started){return;}if(this.isLoaded){dojo.forEach(this.getChildren(),function(_193){_193.startup();});if(this.doLayout){this._checkIfSingleChild();}if(!this._singleChild||!dijit._Contained.prototype.getParent.call(this)){this._scheduleLayout();}}this._loadCheck();this.inherited(arguments);},_checkIfSingleChild:function(){var _194=dojo.query(">",this.containerNode),_195=_194.filter(function(node){return dojo.hasAttr(node,"dojoType")||dojo.hasAttr(node,"widgetId");}),_197=dojo.filter(_195.map(dijit.byNode),function(_198){return _198&&_198.domNode&&_198.resize;});if(_194.length==_195.length&&_197.length==1){this._singleChild=_197[0];}else{delete this._singleChild;}},setHref:function(href){dojo.deprecated("dijit.layout.ContentPane.setHref() is deprecated. Use attr('href', ...) instead.","","2.0");return this.attr("href",href);},_setHrefAttr:function(href){this.cancel();this.href=href;if(this._created&&(this.preload||this._isShown())){return this.refresh();}else{this._hrefChanged=true;}},setContent:function(data){dojo.deprecated("dijit.layout.ContentPane.setContent() is deprecated.  Use attr('content', ...) instead.","","2.0");this.attr("content",data);},_setContentAttr:function(data){this.href="";this.cancel();this._setContent(data||"");this._isDownloaded=false;},_getContentAttr:function(){return this.containerNode.innerHTML;},cancel:function(){if(this._xhrDfd&&(this._xhrDfd.fired==-1)){this._xhrDfd.cancel();}delete this._xhrDfd;},uninitialize:function(){if(this._beingDestroyed){this.cancel();}},destroyRecursive:function(_19d){if(this._beingDestroyed){return;}this._beingDestroyed=true;this.inherited(arguments);},resize:function(size){dojo.marginBox(this.domNode,size);var node=this.containerNode,mb=dojo.mixin(dojo.marginBox(node),size||{});var cb=(this._contentBox=dijit.layout.marginBox2contentBox(node,mb));if(this._singleChild&&this._singleChild.resize){this._singleChild.resize({w:cb.w,h:cb.h});}},_isShown:function(){if("open" in this){return this.open;}else{var node=this.domNode;return (node.style.display!="none")&&(node.style.visibility!="hidden")&&!dojo.hasClass(node,"dijitHidden");}},_onShow:function(){if(this._needLayout){this._layoutChildren();}this._loadCheck();if(this.onShow){this.onShow();}},_loadCheck:function(){if((this.href&&!this._xhrDfd)&&(!this.isLoaded||this._hrefChanged||this.refreshOnShow)&&(this.preload||this._isShown())){delete this._hrefChanged;this.refresh();}},refresh:function(){this.cancel();this._setContent(this.onDownloadStart(),true);var self=this;var _1a4={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};if(dojo.isObject(this.ioArgs)){dojo.mixin(_1a4,this.ioArgs);}var hand=(this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_1a4));hand.addCallback(function(html){try{self._isDownloaded=true;self._setContent(html,false);self.onDownloadEnd();}catch(err){self._onError("Content",err);}delete self._xhrDfd;return html;});hand.addErrback(function(err){if(!hand.canceled){self._onError("Download",err);}delete self._xhrDfd;return err;});},_onLoadHandler:function(data){this.isLoaded=true;try{this.onLoad(data);}catch(e){console.error("Error "+this.widgetId+" running custom onLoad code: "+e.message);}},_onUnloadHandler:function(){this.isLoaded=false;try{this.onUnload();}catch(e){console.error("Error "+this.widgetId+" running custom onUnload code: "+e.message);}},destroyDescendants:function(){if(this.isLoaded){this._onUnloadHandler();}var _1a9=this._contentSetter;dojo.forEach(this.getChildren(),function(_1aa){if(_1aa.destroyRecursive){_1aa.destroyRecursive();}});if(_1a9){dojo.forEach(_1a9.parseResults,function(_1ab){if(_1ab.destroyRecursive&&_1ab.domNode&&_1ab.domNode.parentNode==dojo.body()){_1ab.destroyRecursive();}});delete _1a9.parseResults;}dojo.html._emptyNode(this.containerNode);},_setContent:function(cont,_1ad){this.destroyDescendants();delete this._singleChild;var _1ae=this._contentSetter;if(!(_1ae&&_1ae instanceof dojo.html._ContentSetter)){_1ae=this._contentSetter=new dojo.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){var _1b0=this.onContentError(e);try{this.containerNode.innerHTML=_1b0;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}})});}var _1b1=dojo.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad},this._contentSetterParams||{});dojo.mixin(_1ae,_1b1);_1ae.set((dojo.isObject(cont)&&cont.domNode)?cont.domNode:cont);delete this._contentSetterParams;if(!_1ad){dojo.forEach(this.getChildren(),function(_1b2){_1b2.startup();});if(this.doLayout){this._checkIfSingleChild();}this._scheduleLayout();this._onLoadHandler(cont);}},_onError:function(type,err,_1b5){var _1b6=this["on"+type+"Error"].call(this,err);if(_1b5){console.error(_1b5,err);}else{if(_1b6){this._setContent(_1b6,true);}}},_scheduleLayout:function(){if(this._isShown()){this._layoutChildren();}else{this._needLayout=true;}},_layoutChildren:function(){if(this._singleChild&&this._singleChild.resize){var cb=this._contentBox||dojo.contentBox(this.containerNode);this._singleChild.resize({w:cb.w,h:cb.h});}else{dojo.forEach(this.getChildren(),function(_1b8){if(_1b8.resize){_1b8.resize();}});}delete this._needLayout;},onLoad:function(data){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage;},onContentError:function(_1ba){},onDownloadError:function(_1bb){return this.errorMessage;},onDownloadEnd:function(){}});}if(!dojo._hasResource["dijit.TooltipDialog"]){dojo._hasResource["dijit.TooltipDialog"]=true;dojo.provide("dijit.TooltipDialog");dojo.declare("dijit.TooltipDialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{title:"",doLayout:false,autofocus:true,baseClass:"dijitTooltipDialog",_firstFocusItem:null,_lastFocusItem:null,templateString:null,templateString:"<div waiRole=\"presentation\">\n\t<div class=\"dijitTooltipContainer\" waiRole=\"presentation\">\n\t\t<div class =\"dijitTooltipContents dijitTooltipFocusNode\" dojoAttachPoint=\"containerNode\" tabindex=\"-1\" waiRole=\"dialog\"></div>\n\t</div>\n\t<div class=\"dijitTooltipConnector\" waiRole=\"presentation\"></div>\n</div>\n",postCreate:function(){this.inherited(arguments);this.connect(this.containerNode,"onkeypress","_onKey");this.containerNode.title=this.title;},orient:function(node,_1bd,_1be){var c=this._currentOrientClass;if(c){dojo.removeClass(this.domNode,c);}c="dijitTooltipAB"+(_1be.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_1be.charAt(0)=="T"?"Below":"Above");dojo.addClass(this.domNode,c);this._currentOrientClass=c;},onOpen:function(pos){this.orient(this.domNode,pos.aroundCorner,pos.corner);this._onShow();if(this.autofocus){this._getFocusItems(this.containerNode);dijit.focus(this._firstFocusItem);}},_onKey:function(evt){var node=evt.target;var dk=dojo.keys;if(evt.charOrCode===dk.TAB){this._getFocusItems(this.containerNode);}var _1c4=(this._firstFocusItem==this._lastFocusItem);if(evt.charOrCode==dk.ESCAPE){this.onCancel();dojo.stopEvent(evt);}else{if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){if(!_1c4){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_1c4){dijit.focus(this._firstFocusItem);}dojo.stopEvent(evt);}else{if(evt.charOrCode===dk.TAB){evt.stopPropagation();}}}}}});}if(!dojo._hasResource["dijit.Dialog"]){dojo._hasResource["dijit.Dialog"]=true;dojo.provide("dijit.Dialog");dojo.declare("dijit.Dialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{templateString:null,templateString:"<div class=\"dijitDialog\" tabindex=\"-1\" waiRole=\"dialog\" waiState=\"labelledby-${id}_title\">\n\t<div dojoAttachPoint=\"titleBar\" class=\"dijitDialogTitleBar\">\n\t<span dojoAttachPoint=\"titleNode\" class=\"dijitDialogTitle\" id=\"${id}_title\"></span>\n\t<span dojoAttachPoint=\"closeButtonNode\" class=\"dijitDialogCloseIcon\" dojoAttachEvent=\"onclick: onCancel, onmouseenter: _onCloseEnter, onmouseleave: _onCloseLeave\" title=\"${buttonCancel}\">\n\t\t<span dojoAttachPoint=\"closeText\" class=\"closeText\" title=\"${buttonCancel}\">x</span>\n\t</span>\n\t</div>\n\t\t<div dojoAttachPoint=\"containerNode\" class=\"dijitDialogPaneContent\"></div>\n</div>\n",attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{title:[{node:"titleNode",type:"innerHTML"},{node:"titleBar",type:"attribute"}]}),open:false,duration:dijit.defaultDuration,refocus:true,autofocus:true,_firstFocusItem:null,_lastFocusItem:null,doLayout:false,draggable:true,_fixSizes:true,postMixInProperties:function(){var _1c5=dojo.i18n.getLocalization("dijit","common");dojo.mixin(this,_1c5);this.inherited(arguments);},postCreate:function(){dojo.style(this.domNode,{visibility:"hidden",position:"absolute",display:"",top:"-9999px"});dojo.body().appendChild(this.domNode);this.inherited(arguments);this.connect(this,"onExecute","hide");this.connect(this,"onCancel","hide");this._modalconnects=[];},onLoad:function(){this._position();this.inherited(arguments);},_endDrag:function(e){if(e&&e.node&&e.node===this.domNode){var vp=dijit.getViewport();var p=e._leftTop||dojo.coords(e.node,true);this._relativePosition={t:p.t-vp.t,l:p.l-vp.l};}},_setup:function(){var node=this.domNode;if(this.titleBar&&this.draggable){this._moveable=(dojo.isIE==6)?new dojo.dnd.TimedMoveable(node,{handle:this.titleBar}):new dojo.dnd.Moveable(node,{handle:this.titleBar,timeout:0});dojo.subscribe("/dnd/move/stop",this,"_endDrag");}else{dojo.addClass(node,"dijitDialogFixed");}var _1ca={dialogId:this.id,"class":dojo.map(this["class"].split(/\s/),function(s){return s+"_underlay";}).join(" ")};var _1cc=dijit._underlay;if(!_1cc){_1cc=dijit._underlay=new dijit.DialogUnderlay(_1ca);}this._fadeIn=dojo.fadeIn({node:node,duration:this.duration,beforeBegin:function(){_1cc.attr(_1ca);_1cc.show();},onEnd:dojo.hitch(this,function(){if(this.autofocus){this._getFocusItems(this.domNode);dijit.focus(this._firstFocusItem);}})});this._fadeOut=dojo.fadeOut({node:node,duration:this.duration,onEnd:function(){node.style.visibility="hidden";node.style.top="-9999px";dijit._underlay.hide();}});},uninitialize:function(){var _1cd=false;if(this._fadeIn&&this._fadeIn.status()=="playing"){_1cd=true;this._fadeIn.stop();}if(this._fadeOut&&this._fadeOut.status()=="playing"){_1cd=true;this._fadeOut.stop();}if(this.open||_1cd){dijit._underlay.hide();}if(this._moveable){this._moveable.destroy();}},_size:function(){var mb=dojo.marginBox(this.domNode);var _1cf=dijit.getViewport();if(mb.w>=_1cf.w||mb.h>=_1cf.h){dojo.style(this.containerNode,{width:Math.min(mb.w,Math.floor(_1cf.w*0.75))+"px",height:Math.min(mb.h,Math.floor(_1cf.h*0.75))+"px",overflow:"auto",position:"relative"});}},_position:function(){if(!dojo.hasClass(dojo.body(),"dojoMove")){var node=this.domNode;var _1d1=dijit.getViewport();var p=this._relativePosition;var mb=p?null:dojo.marginBox(node);dojo.style(node,{left:Math.floor(_1d1.l+(p?p.l:(_1d1.w-mb.w)/2))+"px",top:Math.floor(_1d1.t+(p?p.t:(_1d1.h-mb.h)/2))+"px"});}},_onKey:function(evt){if(evt.charOrCode){var dk=dojo.keys;var node=evt.target;if(evt.charOrCode===dk.TAB){this._getFocusItems(this.domNode);}var _1d7=(this._firstFocusItem==this._lastFocusItem);if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){if(!_1d7){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_1d7){dijit.focus(this._firstFocusItem);}dojo.stopEvent(evt);}else{while(node){if(node==this.domNode){if(evt.charOrCode==dk.ESCAPE){this.onCancel();}else{return;}}node=node.parentNode;}if(evt.charOrCode!==dk.TAB){dojo.stopEvent(evt);}else{if(!dojo.isOpera){try{this._firstFocusItem.focus();}catch(e){}}}}}}},show:function(){if(this.open){return;}if(!this._alreadyInitialized){this._setup();this._alreadyInitialized=true;}if(this._fadeOut.status()=="playing"){this._fadeOut.stop();}this._modalconnects.push(dojo.connect(window,"onscroll",this,"layout"));this._modalconnects.push(dojo.connect(window,"onresize",this,function(){var _1d8=dijit.getViewport();if(!this._oldViewport||_1d8.h!=this._oldViewport.h||_1d8.w!=this._oldViewport.w){this.layout();this._oldViewport=_1d8;}}));this._modalconnects.push(dojo.connect(dojo.doc.documentElement,"onkeypress",this,"_onKey"));dojo.style(this.domNode,{opacity:0,visibility:""});if(this._fixSizes){dojo.style(this.containerNode,{width:"auto",height:"auto"});}this.open=true;this._onShow();this._size();this._position();this._fadeIn.play();this._savedFocus=dijit.getFocus(this);},hide:function(){if(!this._alreadyInitialized){return;}if(this._fadeIn.status()=="playing"){this._fadeIn.stop();}this._fadeOut.play();if(this._scrollConnected){this._scrollConnected=false;}dojo.forEach(this._modalconnects,dojo.disconnect);this._modalconnects=[];if(this.refocus){this.connect(this._fadeOut,"onEnd",dojo.hitch(dijit,"focus",this._savedFocus));}if(this._relativePosition){delete this._relativePosition;}this.open=false;},layout:function(){if(this.domNode.style.visibility!="hidden"){dijit._underlay.layout();this._position();}},destroy:function(){dojo.forEach(this._modalconnects,dojo.disconnect);if(this.refocus&&this.open){setTimeout(dojo.hitch(dijit,"focus",this._savedFocus),25);}this.inherited(arguments);},_onCloseEnter:function(){dojo.addClass(this.closeButtonNode,"dijitDialogCloseIcon-hover");},_onCloseLeave:function(){dojo.removeClass(this.closeButtonNode,"dijitDialogCloseIcon-hover");}});}if(!dojo._hasResource["dijit._editor.selection"]){dojo._hasResource["dijit._editor.selection"]=true;dojo.provide("dijit._editor.selection");dojo.mixin(dijit._editor.selection,{getType:function(){if(dojo.doc.selection){return dojo.doc.selection.type.toLowerCase();}else{var _1d9="text";var oSel;try{oSel=dojo.global.getSelection();}catch(e){}if(oSel&&oSel.rangeCount==1){var _1db=oSel.getRangeAt(0);if((_1db.startContainer==_1db.endContainer)&&((_1db.endOffset-_1db.startOffset)==1)&&(_1db.startContainer.nodeType!=3)){_1d9="control";}}return _1d9;}},getSelectedText:function(){if(dojo.doc.selection){if(dijit._editor.selection.getType()=="control"){return null;}return dojo.doc.selection.createRange().text;}else{var _1dc=dojo.global.getSelection();if(_1dc){return _1dc.toString();}}return "";},getSelectedHtml:function(){if(dojo.doc.selection){if(dijit._editor.selection.getType()=="control"){return null;}return dojo.doc.selection.createRange().htmlText;}else{var _1dd=dojo.global.getSelection();if(_1dd&&_1dd.rangeCount){var frag=_1dd.getRangeAt(0).cloneContents();var div=dojo.doc.createElement("div");div.appendChild(frag);return div.innerHTML;}return null;}},getSelectedElement:function(){if(dijit._editor.selection.getType()=="control"){if(dojo.doc.selection){var _1e0=dojo.doc.selection.createRange();if(_1e0&&_1e0.item){return dojo.doc.selection.createRange().item(0);}}else{var _1e1=dojo.global.getSelection();return _1e1.anchorNode.childNodes[_1e1.anchorOffset];}}return null;},getParentElement:function(){if(dijit._editor.selection.getType()=="control"){var p=this.getSelectedElement();if(p){return p.parentNode;}}else{if(dojo.doc.selection){var r=dojo.doc.selection.createRange();r.collapse(true);return r.parentElement();}else{var _1e4=dojo.global.getSelection();if(_1e4){var node=_1e4.anchorNode;while(node&&(node.nodeType!=1)){node=node.parentNode;}return node;}}}return null;},hasAncestorElement:function(_1e6){return this.getAncestorElement.apply(this,arguments)!=null;},getAncestorElement:function(_1e7){var node=this.getSelectedElement()||this.getParentElement();return this.getParentOfType(node,arguments);},isTag:function(node,tags){if(node&&node.tagName){var _nlc=node.tagName.toLowerCase();for(var i=0;i<tags.length;i++){var _tlc=String(tags[i]).toLowerCase();if(_nlc==_tlc){return _tlc;}}}return "";},getParentOfType:function(node,tags){while(node){if(this.isTag(node,tags).length){return node;}node=node.parentNode;}return null;},collapse:function(_1f0){if(window["getSelection"]){var _1f1=dojo.global.getSelection();if(_1f1.removeAllRanges){if(_1f0){_1f1.collapseToStart();}else{_1f1.collapseToEnd();}}else{_1f1.collapse(_1f0);}}else{if(dojo.doc.selection){var _1f2=dojo.doc.selection.createRange();_1f2.collapse(_1f0);_1f2.select();}}},remove:function(){var _s=dojo.doc.selection;if(_s){if(_s.type.toLowerCase()!="none"){_s.clear();}return _s;}else{_s=dojo.global.getSelection();_s.deleteFromDocument();return _s;}},selectElementChildren:function(_1f4,_1f5){var _1f6=dojo.global;var _1f7=dojo.doc;_1f4=dojo.byId(_1f4);if(_1f7.selection&&dojo.body().createTextRange){var _1f8=_1f4.ownerDocument.body.createTextRange();_1f8.moveToElementText(_1f4);if(!_1f5){try{_1f8.select();}catch(e){}}}else{if(_1f6.getSelection){var _1f9=_1f6.getSelection();if(_1f9.setBaseAndExtent){_1f9.setBaseAndExtent(_1f4,0,_1f4,_1f4.innerText.length-1);}else{if(_1f9.selectAllChildren){_1f9.selectAllChildren(_1f4);}}}}},selectElement:function(_1fa,_1fb){var _1fc,_1fd=dojo.doc;_1fa=dojo.byId(_1fa);if(_1fd.selection&&dojo.body().createTextRange){try{_1fc=dojo.body().createControlRange();_1fc.addElement(_1fa);if(!_1fb){_1fc.select();}}catch(e){this.selectElementChildren(_1fa,_1fb);}}else{if(dojo.global.getSelection){var _1fe=dojo.global.getSelection();if(_1fe.removeAllRanges){_1fc=_1fd.createRange();_1fc.selectNode(_1fa);_1fe.removeAllRanges();_1fe.addRange(_1fc);}}}}});}if(!dojo._hasResource["dijit._editor.range"]){dojo._hasResource["dijit._editor.range"]=true;dojo.provide("dijit._editor.range");dijit.range={};dijit.range.getIndex=function(node,_200){var ret=[],retR=[];var stop=_200;var _204=node;var _205,n;while(node!=stop){var i=0;_205=node.parentNode;while((n=_205.childNodes[i++])){if(n===node){--i;break;}}if(i>=_205.childNodes.length){dojo.debug("Error finding index of a node in dijit.range.getIndex");}ret.unshift(i);retR.unshift(i-_205.childNodes.length);node=_205;}if(ret.length>0&&_204.nodeType==3){n=_204.previousSibling;while(n&&n.nodeType==3){ret[ret.length-1]--;n=n.previousSibling;}n=_204.nextSibling;while(n&&n.nodeType==3){retR[retR.length-1]++;n=n.nextSibling;}}return {o:ret,r:retR};};dijit.range.getNode=function(_208,_209){if(!dojo.isArray(_208)||_208.length==0){return _209;}var node=_209;dojo.every(_208,function(i){if(i>=0&&i<node.childNodes.length){node=node.childNodes[i];}else{node=null;return false;}return true;});return node;};dijit.range.getCommonAncestor=function(n1,n2){var _20e=function(n){var as=[];while(n){as.unshift(n);if(n.nodeName!="BODY"){n=n.parentNode;}else{break;}}return as;};var n1as=_20e(n1);var n2as=_20e(n2);var m=Math.min(n1as.length,n2as.length);var com=n1as[0];for(var i=1;i<m;i++){if(n1as[i]===n2as[i]){com=n1as[i];}else{break;}}return com;};dijit.range.getAncestor=function(node,_217,root){root=root||node.ownerDocument.body;while(node&&node!==root){var name=node.nodeName.toUpperCase();if(_217.test(name)){return node;}node=node.parentNode;}return null;};dijit.range.BlockTagNames=/^(?:P|DIV|H1|H2|H3|H4|H5|H6|ADDRESS|PRE|OL|UL|LI|DT|DE)$/;dijit.range.getBlockAncestor=function(node,_21b,root){root=root||node.ownerDocument.body;_21b=_21b||dijit.range.BlockTagNames;var _21d=null,_21e;while(node&&node!==root){var name=node.nodeName.toUpperCase();if(!_21d&&_21b.test(name)){_21d=node;}if(!_21e&&(/^(?:BODY|TD|TH|CAPTION)$/).test(name)){_21e=node;}node=node.parentNode;}return {blockNode:_21d,blockContainer:_21e||node.ownerDocument.body};};dijit.range.atBeginningOfContainer=function(_220,node,_222){var _223=false;var _224=(_222==0);if(!_224&&node.nodeType==3){if(dojo.trim(node.nodeValue.substr(0,_222))==0){_224=true;}}if(_224){var _225=node;_223=true;while(_225&&_225!==_220){if(_225.previousSibling){_223=false;break;}_225=_225.parentNode;}}return _223;};dijit.range.atEndOfContainer=function(_226,node,_228){var _229=false;var _22a=(_228==(node.length||node.childNodes.length));if(!_22a&&node.nodeType==3){if(dojo.trim(node.nodeValue.substr(_228))==0){_22a=true;}}if(_22a){var _22b=node;_229=true;while(_22b&&_22b!==_226){if(_22b.nextSibling){_229=false;break;}_22b=_22b.parentNode;}}return _229;};dijit.range.adjacentNoneTextNode=function(_22c,next){var node=_22c;var len=(0-_22c.length)||0;var prop=next?"nextSibling":"previousSibling";while(node){if(node.nodeType!=3){break;}len+=node.length;node=node[prop];}return [node,len];};dijit.range._w3c=Boolean(window["getSelection"]);dijit.range.create=function(){if(dijit.range._w3c){return dojo.doc.createRange();}else{return new dijit.range.W3CRange;}};dijit.range.getSelection=function(win,_232){if(dijit.range._w3c){return win.getSelection();}else{var s=new dijit.range.ie.selection(win);if(!_232){s._getCurrentSelection();}return s;}};if(!dijit.range._w3c){dijit.range.ie={cachedSelection:{},selection:function(win){this._ranges=[];this.addRange=function(r,_236){this._ranges.push(r);if(!_236){r._select();}this.rangeCount=this._ranges.length;};this.removeAllRanges=function(){this._ranges=[];this.rangeCount=0;};var _237=function(){var r=win.document.selection.createRange();var type=win.document.selection.type.toUpperCase();if(type=="CONTROL"){return new dijit.range.W3CRange(dijit.range.ie.decomposeControlRange(r));}else{return new dijit.range.W3CRange(dijit.range.ie.decomposeTextRange(r));}};this.getRangeAt=function(i){return this._ranges[i];};this._getCurrentSelection=function(){this.removeAllRanges();var r=_237();if(r){this.addRange(r,true);}};},decomposeControlRange:function(_23c){var _23d=_23c.item(0),_23e=_23c.item(_23c.length-1);var _23f=_23d.parentNode,_240=_23e.parentNode;var _241=dijit.range.getIndex(_23d,_23f).o;var _242=dijit.range.getIndex(_23e,_240).o+1;return [_23f,_241,_240,_242];},getEndPoint:function(_243,end){var _245=_243.duplicate();_245.collapse(!end);var _246="EndTo"+(end?"End":"Start");var _247=_245.parentElement();var _248,_249,_24a;if(_247.childNodes.length>0){dojo.every(_247.childNodes,function(node,i){var _24d;if(node.nodeType!=3){_245.moveToElementText(node);if(_245.compareEndPoints(_246,_243)>0){_248=node.previousSibling;if(_24a&&_24a.nodeType==3){_248=_24a;_24d=true;}else{_248=_247;_249=i;return false;}}else{if(i==_247.childNodes.length-1){_248=_247;_249=_247.childNodes.length;return false;}}}else{if(i==_247.childNodes.length-1){_248=node;_24d=true;}}if(_24d&&_248){var _24e=dijit.range.adjacentNoneTextNode(_248)[0];if(_24e){_248=_24e.nextSibling;}else{_248=_247.firstChild;}var _24f=dijit.range.adjacentNoneTextNode(_248);_24e=_24f[0];var _250=_24f[1];if(_24e){_245.moveToElementText(_24e);_245.collapse(false);}else{_245.moveToElementText(_247);}_245.setEndPoint(_246,_243);_249=_245.text.length-_250;return false;}_24a=node;return true;});}else{_248=_247;_249=0;}if(!end&&_248.nodeType!=3&&_249==_248.childNodes.length){if(_248.nextSibling&&_248.nextSibling.nodeType==3){_248=_248.nextSibling;_249=0;}}return [_248,_249];},setEndPoint:function(_251,_252,_253){var _254=_251.duplicate(),node,len;if(_252.nodeType!=3){if(_253>0){node=_252.childNodes[_253-1];if(node.nodeType==3){_252=node;_253=node.length;}else{if(node.nextSibling&&node.nextSibling.nodeType==3){_252=node.nextSibling;_253=0;}else{_254.moveToElementText(node.nextSibling?node:_252);var _257=node.parentNode.insertBefore(document.createTextNode(" "),node.nextSibling);_254.collapse(false);_257.parentNode.removeChild(_257);}}}else{_254.moveToElementText(_252);_254.collapse(true);}}if(_252.nodeType==3){var _258=dijit.range.adjacentNoneTextNode(_252);var _259=_258[0];len=_258[1];if(_259){_254.moveToElementText(_259);_254.collapse(false);if(_259.contentEditable!="inherit"){len++;}}else{_254.moveToElementText(_252.parentNode);_254.collapse(true);}_253+=len;if(_253>0){if(_254.move("character",_253)!=_253){console.error("Error when moving!");}}}return _254;},decomposeTextRange:function(_25a){var _25b=dijit.range.ie.getEndPoint(_25a);var _25c=_25b[0],_25d=_25b[1];var _25e=_25b[0],_25f=_25b[1];if(_25a.htmlText.length){if(_25a.htmlText==_25a.text){_25f=_25d+_25a.text.length;}else{_25b=dijit.range.ie.getEndPoint(_25a,true);_25e=_25b[0],_25f=_25b[1];}}return [_25c,_25d,_25e,_25f];},setRange:function(_260,_261,_262,_263,_264,_265){var _266=dijit.range.ie.setEndPoint(_260,_261,_262);_260.setEndPoint("StartToStart",_266);if(!_265){var end=dijit.range.ie.setEndPoint(_260,_263,_264);}_260.setEndPoint("EndToEnd",end||_266);return _260;}};dojo.declare("dijit.range.W3CRange",null,{constructor:function(){if(arguments.length>0){this.setStart(arguments[0][0],arguments[0][1]);this.setEnd(arguments[0][2],arguments[0][3]);}else{this.commonAncestorContainer=null;this.startContainer=null;this.startOffset=0;this.endContainer=null;this.endOffset=0;this.collapsed=true;}},_updateInternal:function(){if(this.startContainer!==this.endContainer){this.commonAncestorContainer=dijit.range.getCommonAncestor(this.startContainer,this.endContainer);}else{this.commonAncestorContainer=this.startContainer;}this.collapsed=(this.startContainer===this.endContainer)&&(this.startOffset==this.endOffset);},setStart:function(node,_269){_269=parseInt(_269);if(this.startContainer===node&&this.startOffset==_269){return;}delete this._cachedBookmark;this.startContainer=node;this.startOffset=_269;if(!this.endContainer){this.setEnd(node,_269);}else{this._updateInternal();}},setEnd:function(node,_26b){_26b=parseInt(_26b);if(this.endContainer===node&&this.endOffset==_26b){return;}delete this._cachedBookmark;this.endContainer=node;this.endOffset=_26b;if(!this.startContainer){this.setStart(node,_26b);}else{this._updateInternal();}},setStartAfter:function(node,_26d){this._setPoint("setStart",node,_26d,1);},setStartBefore:function(node,_26f){this._setPoint("setStart",node,_26f,0);},setEndAfter:function(node,_271){this._setPoint("setEnd",node,_271,1);},setEndBefore:function(node,_273){this._setPoint("setEnd",node,_273,0);},_setPoint:function(what,node,_276,ext){var _278=dijit.range.getIndex(node,node.parentNode).o;this[what](node.parentNode,_278.pop()+ext);},_getIERange:function(){var r=(this._body||this.endContainer.ownerDocument.body).createTextRange();dijit.range.ie.setRange(r,this.startContainer,this.startOffset,this.endContainer,this.endOffset,this.collapsed);return r;},getBookmark:function(body){this._getIERange();return this._cachedBookmark;},_select:function(){var r=this._getIERange();r.select();},deleteContents:function(){var r=this._getIERange();r.pasteHTML("");this.endContainer=this.startContainer;this.endOffset=this.startOffset;this.collapsed=true;},cloneRange:function(){var r=new dijit.range.W3CRange([this.startContainer,this.startOffset,this.endContainer,this.endOffset]);r._body=this._body;return r;},detach:function(){this._body=null;this.commonAncestorContainer=null;this.startContainer=null;this.startOffset=0;this.endContainer=null;this.endOffset=0;this.collapsed=true;}});}}if(!dojo._hasResource["dijit._editor.html"]){dojo._hasResource["dijit._editor.html"]=true;dojo.provide("dijit._editor.html");dijit._editor.escapeXml=function(str,_27f){str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");if(!_27f){str=str.replace(/'/gm,"&#39;");}return str;};dijit._editor.getNodeHtml=function(node){var _281;switch(node.nodeType){case 1:_281="<"+node.nodeName.toLowerCase();var _282=[];if(dojo.isIE&&node.outerHTML){var s=node.outerHTML;s=s.substr(0,s.indexOf(">")).replace(/(['"])[^"']*\1/g,"");var reg=/([^\s=]+)=/g;var m,key;while((m=reg.exec(s))){key=m[1];if(key.substr(0,3)!="_dj"){if(key=="src"||key=="href"){if(node.getAttribute("_djrealurl")){_282.push([key,node.getAttribute("_djrealurl")]);continue;}}var val;switch(key){case "style":val=node.style.cssText.toLowerCase();break;case "class":val=node.className;break;default:val=node.getAttribute(key);}_282.push([key,val.toString()]);}}}else{var attr,i=0;while((attr=node.attributes[i++])){var n=attr.name;if(n.substr(0,3)!="_dj"){var v=attr.value;if(n=="src"||n=="href"){if(node.getAttribute("_djrealurl")){v=node.getAttribute("_djrealurl");}}_282.push([n,v]);}}}_282.sort(function(a,b){return a[0]<b[0]?-1:(a[0]==b[0]?0:1);});var j=0;while((attr=_282[j++])){_281+=" "+attr[0]+"=\""+(dojo.isString(attr[1])?dijit._editor.escapeXml(attr[1],true):attr[1])+"\"";}if(node.childNodes.length){_281+=">"+dijit._editor.getChildrenHtml(node)+"</"+node.nodeName.toLowerCase()+">";}else{_281+=" />";}break;case 3:_281=dijit._editor.escapeXml(node.nodeValue,true);break;case 8:_281="<!--"+dijit._editor.escapeXml(node.nodeValue,true)+"-->";break;default:_281="<!-- Element not recognized - Type: "+node.nodeType+" Name: "+node.nodeName+"-->";}return _281;};dijit._editor.getChildrenHtml=function(dom){var out="";if(!dom){return out;}var _291=dom["childNodes"]||dom;var _292=!dojo.isIE||_291!==dom;var node,i=0;while((node=_291[i++])){if(!_292||node.parentNode==dom){out+=dijit._editor.getNodeHtml(node);}}return out;};}if(!dojo._hasResource["dijit._editor.RichText"]){dojo._hasResource["dijit._editor.RichText"]=true;dojo.provide("dijit._editor.RichText");if(!dojo.config["useXDomain"]||dojo.config["allowXdRichTextSave"]){if(dojo._postLoad){(function(){var _295=dojo.doc.createElement("textarea");_295.id=dijit._scopeName+"._editor.RichText.savedContent";dojo.style(_295,{display:"none",position:"absolute",top:"-100px",height:"3px",width:"3px"});dojo.body().appendChild(_295);})();}else{try{dojo.doc.write("<textarea id=\""+dijit._scopeName+"._editor.RichText.savedContent\" "+"style=\"display:none;position:absolute;top:-100px;left:-100px;height:3px;width:3px;overflow:hidden;\"></textarea>");}catch(e){}}}dojo.declare("dijit._editor.RichText",dijit._Widget,{constructor:function(_296){this.contentPreFilters=[];this.contentPostFilters=[];this.contentDomPreFilters=[];this.contentDomPostFilters=[];this.editingAreaStyleSheets=[];this._keyHandlers={};this.contentPreFilters.push(dojo.hitch(this,"_preFixUrlAttributes"));if(dojo.isMoz){this.contentPreFilters.push(this._fixContentForMoz);this.contentPostFilters.push(this._removeMozBogus);}if(dojo.isSafari){this.contentPostFilters.push(this._removeSafariBogus);}this.onLoadDeferred=new dojo.Deferred();},inheritWidth:false,focusOnLoad:false,name:"",styleSheets:"",_content:"",height:"300px",minHeight:"1em",isClosed:true,isLoaded:false,_SEPARATOR:"@@**%%__RICHTEXTBOUNDRY__%%**@@",onLoadDeferred:null,isTabIndent:false,disableSpellCheck:false,postCreate:function(){if("textarea"==this.domNode.tagName.toLowerCase()){console.warn("RichText should not be used with the TEXTAREA tag.  See dijit._editor.RichText docs.");}dojo.publish(dijit._scopeName+"._editor.RichText::init",[this]);this.open();this.setupDefaultShortcuts();},setupDefaultShortcuts:function(){var exec=dojo.hitch(this,function(cmd,arg){return function(){return !this.execCommand(cmd,arg);};});var _29a={b:exec("bold"),i:exec("italic"),u:exec("underline"),a:exec("selectall"),s:function(){this.save(true);},m:function(){this.isTabIndent=!this.isTabIndent;},"1":exec("formatblock","h1"),"2":exec("formatblock","h2"),"3":exec("formatblock","h3"),"4":exec("formatblock","h4"),"\\":exec("insertunorderedlist")};if(!dojo.isIE){_29a.Z=exec("redo");}for(var key in _29a){this.addKeyHandler(key,true,false,_29a[key]);}},events:["onKeyPress","onKeyDown","onKeyUp","onClick"],captureEvents:[],_editorCommandsLocalized:false,_localizeEditorCommands:function(){if(this._editorCommandsLocalized){return;}this._editorCommandsLocalized=true;var _29c=["div","p","pre","h1","h2","h3","h4","h5","h6","ol","ul","address"];var _29d="",_29e,i=0;while((_29e=_29c[i++])){if(_29e.charAt(1)!="l"){_29d+="<"+_29e+"><span>content</span></"+_29e+"><br/>";}else{_29d+="<"+_29e+"><li>content</li></"+_29e+"><br/>";}}var div=dojo.doc.createElement("div");dojo.style(div,{position:"absolute",top:"-2000px"});dojo.doc.body.appendChild(div);div.innerHTML=_29d;var node=div.firstChild;while(node){dijit._editor.selection.selectElement(node.firstChild);dojo.withGlobal(this.window,"selectElement",dijit._editor.selection,[node.firstChild]);var _2a2=node.tagName.toLowerCase();this._local2NativeFormatNames[_2a2]=document.queryCommandValue("formatblock");this._native2LocalFormatNames[this._local2NativeFormatNames[_2a2]]=_2a2;node=node.nextSibling.nextSibling;}dojo.body().removeChild(div);},open:function(_2a3){if(!this.onLoadDeferred||this.onLoadDeferred.fired>=0){this.onLoadDeferred=new dojo.Deferred();}if(!this.isClosed){this.close();}dojo.publish(dijit._scopeName+"._editor.RichText::open",[this]);this._content="";if(arguments.length==1&&_2a3.nodeName){this.domNode=_2a3;}var dn=this.domNode;var html;if(dn.nodeName&&dn.nodeName.toLowerCase()=="textarea"){var ta=(this.textarea=dn);this.name=ta.name;html=this._preFilterContent(ta.value);dn=this.domNode=dojo.doc.createElement("div");dn.setAttribute("widgetId",this.id);ta.removeAttribute("widgetId");dn.cssText=ta.cssText;dn.className+=" "+ta.className;dojo.place(dn,ta,"before");var _2a7=dojo.hitch(this,function(){dojo.style(ta,{display:"block",position:"absolute",top:"-1000px"});if(dojo.isIE){var s=ta.style;this.__overflow=s.overflow;s.overflow="hidden";}});if(dojo.isIE){setTimeout(_2a7,10);}else{_2a7();}if(ta.form){dojo.connect(ta.form,"onsubmit",this,function(){ta.value=this.getValue();});}}else{html=this._preFilterContent(dijit._editor.getChildrenHtml(dn));dn.innerHTML="";}var _2a9=dojo.contentBox(dn);this._oldHeight=_2a9.h;this._oldWidth=_2a9.w;this.savedContent=html;if(dn.nodeName&&dn.nodeName=="LI"){dn.innerHTML=" <br>";}this.editingArea=dn.ownerDocument.createElement("div");dn.appendChild(this.editingArea);if(this.name!=""&&(!dojo.config["useXDomain"]||dojo.config["allowXdRichTextSave"])){var _2aa=dojo.byId(dijit._scopeName+"._editor.RichText.savedContent");if(_2aa.value!=""){var _2ab=_2aa.value.split(this._SEPARATOR),i=0,dat;while((dat=_2ab[i++])){var data=dat.split(":");if(data[0]==this.name){html=data[1];_2ab.splice(i,1);break;}}}this.connect(window,"onbeforeunload","_saveContent");}this.isClosed=false;if(dojo.isIE||dojo.isWebKit||dojo.isOpera){var ifr=(this.editorObject=this.iframe=dojo.doc.createElement("iframe"));ifr.id=this.id+"_iframe";this._iframeSrc=this._getIframeDocTxt(html);ifr.style.border="none";ifr.style.width="100%";if(this._layoutMode){ifr.style.height="100%";}else{if(dojo.isIE>=7){if(this.height){ifr.style.height=this.height;}if(this.minHeight){ifr.style.minHeight=this.minHeight;}}else{ifr.style.height=this.height?this.height:this.minHeight;}}ifr.frameBorder=0;ifr._loadFunc=dojo.hitch(this,function(win){this.window=win;this.document=this.window.document;if(dojo.isIE){this._localizeEditorCommands();}this.onLoad();this.savedContent=this.getValue(true);});var s="javascript:parent."+dijit._scopeName+".byId(\""+this.id+"\")._iframeSrc";ifr.setAttribute("src",s);this.editingArea.appendChild(ifr);if(dojo.isWebKit){setTimeout(function(){ifr.setAttribute("src",s);},0);}}else{this._drawIframe(html);this.savedContent=this.getValue(true);}if(dn.nodeName=="LI"){dn.lastChild.style.marginTop="-1.2em";}if(this.domNode.nodeName=="LI"){this.domNode.lastChild.style.marginTop="-1.2em";}dojo.addClass(this.domNode,"RichTextEditable");},_local2NativeFormatNames:{},_native2LocalFormatNames:{},_localizedIframeTitles:null,_getIframeDocTxt:function(html){var _cs=dojo.getComputedStyle(this.domNode);if(dojo.isIE||(!this.height&&!dojo.isMoz)){html="<div>"+html+"</div>";}var font=[_cs.fontWeight,_cs.fontSize,_cs.fontFamily].join(" ");var _2b5=_cs.lineHeight;if(_2b5.indexOf("px")>=0){_2b5=parseFloat(_2b5)/parseFloat(_cs.fontSize);}else{if(_2b5.indexOf("em")>=0){_2b5=parseFloat(_2b5);}else{_2b5="1.0";}}var _2b6="";this.style.replace(/(^|;)(line-|font-?)[^;]+/g,function(_2b7){_2b6+=_2b7.replace(/^;/g,"")+";";});var d=dojo.doc;var _2b9=d.charset||d.characterSet||d.defaultCharset||"UTF-8";return [this.isLeftToRight()?"<html><head>":"<html dir='rtl'><head>",(dojo.isMoz?"<title>"+this._localizedIframeTitles.iframeEditTitle+"</title>":""),"<meta http-equiv='Content-Type' content='text/html; charset="+_2b9+"'>","<style>","body,html {","\tbackground:transparent;","\tpadding: 1em 0 0 0;","\tmargin: -1em 0 0 0;","}","body{","\ttop:0px; left:0px; right:0px;","\tfont:",font,";",((this.height||dojo.isOpera)?"":"position: fixed;"),"\tmin-height:",this.minHeight,";","\tline-height:",_2b5,"}","p{ margin: 1em 0 !important; }",(this.height?"":"body,html{overflow-y:hidden;/*for IE*/} body > div {overflow-x:auto;/*FF:horizontal scrollbar*/ overflow-y:hidden;/*safari*/ min-height:"+this.minHeight+";/*safari*/}"),"li > ul:-moz-first-node, li > ol:-moz-first-node{ padding-top: 1.2em; } ","li{ min-height:1.2em; }","</style>",this._applyEditingAreaStyleSheets(),"</head><body onload='frameElement._loadFunc(window,document)' style='"+_2b6+"'>"+html+"</body></html>"].join("");},_drawIframe:function(html){if(!this.iframe){var ifr=(this.iframe=dojo.doc.createElement("iframe"));ifr.id=this.id+"_iframe";var ifrs=ifr.style;ifrs.border="none";ifrs.lineHeight="0";ifrs.verticalAlign="bottom";this.editorObject=this.iframe;this._localizedIframeTitles=dojo.i18n.getLocalization("dijit.form","Textarea");var _2bd=dojo.query("label[for=\""+this.id+"\"]");if(_2bd.length){this._localizedIframeTitles.iframeEditTitle=_2bd[0].innerHTML+" "+this._localizedIframeTitles.iframeEditTitle;}ifr._loadFunc=function(win){};}this.iframe.style.width=this.inheritWidth?this._oldWidth:"100%";if(this._layoutMode){this.iframe.style.height="100%";}else{if(this.height){this.iframe.style.height=this.height;}else{this.iframe.height=this._oldHeight;}}var _2bf;if(this.textarea){_2bf=this.srcNodeRef;}else{_2bf=dojo.doc.createElement("div");_2bf.style.display="none";_2bf.innerHTML=html;this.editingArea.appendChild(_2bf);}this.editingArea.appendChild(this.iframe);var _2c0=dojo.hitch(this,function(){if(!this.editNode){if(!this.document){try{if(this.iframe.contentWindow){this.window=this.iframe.contentWindow;this.document=this.iframe.contentWindow.document;}else{if(this.iframe.contentDocument){this.window=this.iframe.contentDocument.window;this.document=this.iframe.contentDocument;}}}catch(e){}if(!this.document){setTimeout(_2c0,50);return;}var _2c1=this.document;_2c1.open();if(dojo.isAIR){_2c1.body.innerHTML=html;}else{_2c1.write(this._getIframeDocTxt(html));}_2c1.close();dojo.destroy(_2bf);}if(!this.document.body){setTimeout(_2c0,50);return;}this.onLoad();}else{dojo.destroy(_2bf);this.editNode.innerHTML=html;this.onDisplayChanged();}this._preDomFilterContent(this.editNode);});_2c0();},_applyEditingAreaStyleSheets:function(){var _2c2=[];if(this.styleSheets){_2c2=this.styleSheets.split(";");this.styleSheets="";}_2c2=_2c2.concat(this.editingAreaStyleSheets);this.editingAreaStyleSheets=[];var text="",i=0,url;while((url=_2c2[i++])){var _2c6=(new dojo._Url(dojo.global.location,url)).toString();this.editingAreaStyleSheets.push(_2c6);text+="<link rel=\"stylesheet\" type=\"text/css\" href=\""+_2c6+"\"/>";}return text;},addStyleSheet:function(uri){var url=uri.toString();if(url.charAt(0)=="."||(url.charAt(0)!="/"&&!uri.host)){url=(new dojo._Url(dojo.global.location,url)).toString();}if(dojo.indexOf(this.editingAreaStyleSheets,url)>-1){return;}this.editingAreaStyleSheets.push(url);if(this.document.createStyleSheet){this.document.createStyleSheet(url);}else{var head=this.document.getElementsByTagName("head")[0];var _2ca=this.document.createElement("link");_2ca.rel="stylesheet";_2ca.type="text/css";_2ca.href=url;head.appendChild(_2ca);}},removeStyleSheet:function(uri){var url=uri.toString();if(url.charAt(0)=="."||(url.charAt(0)!="/"&&!uri.host)){url=(new dojo._Url(dojo.global.location,url)).toString();}var _2cd=dojo.indexOf(this.editingAreaStyleSheets,url);if(_2cd==-1){return;}delete this.editingAreaStyleSheets[_2cd];dojo.withGlobal(this.window,"query",dojo,["link:[href=\""+url+"\"]"]).orphan();},disabled:false,_mozSettingProps:{"styleWithCSS":false},_setDisabledAttr:function(_2ce){this.disabled=_2ce;if(!this.isLoaded){return;}_2ce=!!_2ce;if(dojo.isIE||dojo.isWebKit||dojo.isOpera){var _2cf=dojo.isIE&&(this.isLoaded||!this.focusOnLoad);if(_2cf){this.editNode.unselectable="on";}this.editNode.contentEditable=!_2ce;if(_2cf){var _2d0=this;setTimeout(function(){_2d0.editNode.unselectable="off";},0);}}else{try{this.document.designMode=(_2ce?"off":"on");}catch(e){return;}if(!_2ce&&this._mozSettingProps){var ps=this._mozSettingProps;for(var n in ps){if(ps.hasOwnProperty(n)){try{this.document.execCommand(n,false,ps[n]);}catch(e){}}}}}this._disabledOK=true;},_isResized:function(){return false;},onLoad:function(e){if(!this.window.__registeredWindow){this.window.__registeredWindow=true;dijit.registerIframe(this.iframe);}if(!dojo.isIE&&(this.height||dojo.isMoz)){this.editNode=this.document.body;}else{this.editNode=this.document.body.firstChild;var _2d4=this;if(dojo.isIE){var _2d5=(this.tabStop=dojo.doc.createElement("<div tabIndex=-1>"));this.editingArea.appendChild(_2d5);this.iframe.onfocus=function(){_2d4.editNode.setActive();};}}this.focusNode=this.editNode;this._preDomFilterContent(this.editNode);var _2d6=this.events.concat(this.captureEvents);var ap=this.iframe?this.document:this.editNode;dojo.forEach(_2d6,function(item){this.connect(ap,item.toLowerCase(),item);},this);if(dojo.isIE){this.connect(this.document,"onmousedown","_onIEMouseDown");this.editNode.style.zoom=1;}if(dojo.isWebKit){this._webkitListener=this.connect(this.document,"onmouseup","onDisplayChanged");}this.isLoaded=true;this.attr("disabled",this.disabled);if(this.onLoadDeferred){this.onLoadDeferred.callback(true);}this.onDisplayChanged(e);if(this.focusOnLoad){dojo.addOnLoad(dojo.hitch(this,function(){setTimeout(dojo.hitch(this,"focus"),this.updateInterval);}));}},onKeyDown:function(e){if(e.keyCode===dojo.keys.TAB&&this.isTabIndent){dojo.stopEvent(e);if(this.queryCommandEnabled((e.shiftKey?"outdent":"indent"))){this.execCommand((e.shiftKey?"outdent":"indent"));}}if(dojo.isIE){if(e.keyCode==dojo.keys.TAB&&!this.isTabIndent){if(e.shiftKey&&!e.ctrlKey&&!e.altKey){this.iframe.focus();}else{if(!e.shiftKey&&!e.ctrlKey&&!e.altKey){this.tabStop.focus();}}}else{if(e.keyCode===dojo.keys.BACKSPACE&&this.document.selection.type==="Control"){dojo.stopEvent(e);this.execCommand("delete");}else{if((65<=e.keyCode&&e.keyCode<=90)||(e.keyCode>=37&&e.keyCode<=40)){e.charCode=e.keyCode;this.onKeyPress(e);}}}}else{if(dojo.isMoz&&!this.isTabIndent){if(e.keyCode==dojo.keys.TAB&&!e.shiftKey&&!e.ctrlKey&&!e.altKey&&this.iframe){var _2da=dojo.isFF<3?this.iframe.contentDocument:this.iframe;_2da.title=this._localizedIframeTitles.iframeFocusTitle;this.iframe.focus();dojo.stopEvent(e);}else{if(e.keyCode==dojo.keys.TAB&&e.shiftKey){if(this.toolbar){this.toolbar.focus();}dojo.stopEvent(e);}}}}return true;},onKeyUp:function(e){return;},setDisabled:function(_2dc){dojo.deprecated("dijit.Editor::setDisabled is deprecated","use dijit.Editor::attr(\"disabled\",boolean) instead",2);this.attr("disabled",_2dc);},_setValueAttr:function(_2dd){this.setValue(_2dd);},_getDisableSpellCheckAttr:function(){return !dojo.attr(this.document.body,"spellcheck");},_setDisableSpellCheckAttr:function(_2de){if(this.document){dojo.attr(this.document.body,"spellcheck",!_2de);}else{this.onLoadDeferred.addCallback(dojo.hitch(this,function(){dojo.attr(this.document.body,"spellcheck",!_2de);}));}},onKeyPress:function(e){var c=(e.keyChar&&e.keyChar.toLowerCase())||e.keyCode;var _2e1=this._keyHandlers[c];var args=arguments;if(_2e1&&!e.altKey){dojo.forEach(_2e1,function(h){if((!!h.shift==!!e.shiftKey)&&(!!h.ctrl==!!e.ctrlKey)){if(!h.handler.apply(this,args)){e.preventDefault();}}},this);}if(!this._onKeyHitch){this._onKeyHitch=dojo.hitch(this,"onKeyPressed");}setTimeout(this._onKeyHitch,1);return true;},addKeyHandler:function(key,ctrl,_2e6,_2e7){if(!dojo.isArray(this._keyHandlers[key])){this._keyHandlers[key]=[];}this._keyHandlers[key].push({shift:_2e6||false,ctrl:ctrl||false,handler:_2e7});},onKeyPressed:function(){this.onDisplayChanged();},onClick:function(e){this.onDisplayChanged(e);},_onIEMouseDown:function(e){if(!this._focused&&!this.disabled){this.focus();}},_onBlur:function(e){this.inherited(arguments);var _c=this.getValue(true);if(_c!=this.savedContent){this.onChange(_c);this.savedContent=_c;}if(dojo.isMoz&&this.iframe){var _2ec=dojo.isFF<3?this.iframe.contentDocument:this.iframe;_2ec.title=this._localizedIframeTitles.iframeEditTitle;}},_onFocus:function(e){if(!this.disabled){if(!this._disabledOK){this.attr("disabled",false);}this.inherited(arguments);}},blur:function(){if(!dojo.isIE&&this.window.document.documentElement&&this.window.document.documentElement.focus){this.window.document.documentElement.focus();}else{if(dojo.doc.body.focus){dojo.doc.body.focus();}}},focus:function(){if(!dojo.isIE){dijit.focus(this.iframe);}else{if(this.editNode&&this.editNode.focus){this.iframe.fireEvent("onfocus",document.createEventObject());}}},updateInterval:200,_updateTimer:null,onDisplayChanged:function(e){if(this._updateTimer){clearTimeout(this._updateTimer);}if(!this._updateHandler){this._updateHandler=dojo.hitch(this,"onNormalizedDisplayChanged");}this._updateTimer=setTimeout(this._updateHandler,this.updateInterval);},onNormalizedDisplayChanged:function(){delete this._updateTimer;},onChange:function(_2ef){},_normalizeCommand:function(cmd){var _2f1=cmd.toLowerCase();if(_2f1=="formatblock"){if(dojo.isSafari){_2f1="heading";}}else{if(_2f1=="hilitecolor"&&!dojo.isMoz){_2f1="backcolor";}}return _2f1;},_qcaCache:{},queryCommandAvailable:function(_2f2){var ca=this._qcaCache[_2f2];if(ca!=undefined){return ca;}return (this._qcaCache[_2f2]=this._queryCommandAvailable(_2f2));},_queryCommandAvailable:function(_2f4){var ie=1;var _2f6=1<<1;var _2f7=1<<2;var _2f8=1<<3;var _2f9=1<<4;var _2fa=dojo.isWebKit;function _2fb(_2fc){return {ie:Boolean(_2fc&ie),mozilla:Boolean(_2fc&_2f6),webkit:Boolean(_2fc&_2f7),webkit420:Boolean(_2fc&_2f9),opera:Boolean(_2fc&_2f8)};};var _2fd=null;switch(_2f4.toLowerCase()){case "bold":case "italic":case "underline":case "subscript":case "superscript":case "fontname":case "fontsize":case "forecolor":case "hilitecolor":case "justifycenter":case "justifyfull":case "justifyleft":case "justifyright":case "delete":case "selectall":case "toggledir":_2fd=_2fb(_2f6|ie|_2f7|_2f8);break;case "createlink":case "unlink":case "removeformat":case "inserthorizontalrule":case "insertimage":case "insertorderedlist":case "insertunorderedlist":case "indent":case "outdent":case "formatblock":case "inserthtml":case "undo":case "redo":case "strikethrough":case "tabindent":_2fd=_2fb(_2f6|ie|_2f8|_2f9);break;case "blockdirltr":case "blockdirrtl":case "dirltr":case "dirrtl":case "inlinedirltr":case "inlinedirrtl":_2fd=_2fb(ie);break;case "cut":case "copy":case "paste":_2fd=_2fb(ie|_2f6|_2f9);break;case "inserttable":_2fd=_2fb(_2f6|ie);break;case "insertcell":case "insertcol":case "insertrow":case "deletecells":case "deletecols":case "deleterows":case "mergecells":case "splitcell":_2fd=_2fb(ie|_2f6);break;default:return false;}return (dojo.isIE&&_2fd.ie)||(dojo.isMoz&&_2fd.mozilla)||(dojo.isWebKit&&_2fd.webkit)||(dojo.isWebKit>420&&_2fd.webkit420)||(dojo.isOpera&&_2fd.opera);},execCommand:function(_2fe,_2ff){var _300;this.focus();_2fe=this._normalizeCommand(_2fe);if(_2ff!=undefined){if(_2fe=="heading"){throw new Error("unimplemented");}else{if((_2fe=="formatblock")&&dojo.isIE){_2ff="<"+_2ff+">";}}}if(_2fe=="inserthtml"){_2ff=this._preFilterContent(_2ff);_300=true;if(dojo.isIE){var _301=this.document.selection.createRange();if(this.document.selection.type.toUpperCase()=="CONTROL"){var n=_301.item(0);while(_301.length){_301.remove(_301.item(0));}n.outerHTML=_2ff;}else{_301.pasteHTML(_2ff);}_301.select();}else{if(dojo.isMoz&&!_2ff.length){this._sCall("remove");}else{_300=this.document.execCommand(_2fe,false,_2ff);}}}else{if((_2fe=="unlink")&&(this.queryCommandEnabled("unlink"))&&(dojo.isMoz||dojo.isWebKit)){var a=this._sCall("getAncestorElement",["a"]);this._sCall("selectElement",[a]);_300=this.document.execCommand("unlink",false,null);}else{if((_2fe=="hilitecolor")&&(dojo.isMoz)){this.document.execCommand("styleWithCSS",false,true);_300=this.document.execCommand(_2fe,false,_2ff);this.document.execCommand("styleWithCSS",false,false);}else{if((dojo.isIE)&&((_2fe=="backcolor")||(_2fe=="forecolor"))){_2ff=arguments.length>1?_2ff:null;_300=this.document.execCommand(_2fe,false,_2ff);}else{_2ff=arguments.length>1?_2ff:null;if(_2ff||_2fe!="createlink"){_300=this.document.execCommand(_2fe,false,_2ff);}}}}}this.onDisplayChanged();return _300;},queryCommandEnabled:function(_304){if(this.disabled||!this._disabledOK){return false;}_304=this._normalizeCommand(_304);if(dojo.isMoz||dojo.isWebKit){if(_304=="unlink"){this._sCall("hasAncestorElement",["a"]);}else{if(_304=="inserttable"){return true;}}}if(dojo.isWebKit){if(_304=="copy"){_304="cut";}else{if(_304=="paste"){return true;}}}var elem=dojo.isIE?this.document.selection.createRange():this.document;return elem.queryCommandEnabled(_304);},queryCommandState:function(_306){if(this.disabled||!this._disabledOK){return false;}_306=this._normalizeCommand(_306);return this.document.queryCommandState(_306);},queryCommandValue:function(_307){if(this.disabled||!this._disabledOK){return false;}var r;_307=this._normalizeCommand(_307);if(dojo.isIE&&_307=="formatblock"){r=this._native2LocalFormatNames[this.document.queryCommandValue(_307)];}else{r=this.document.queryCommandValue(_307);}return r;},_sCall:function(name,args){return dojo.withGlobal(this.window,name,dijit._editor.selection,args);},placeCursorAtStart:function(){this.focus();var _30b=false;if(dojo.isMoz){var _30c=this.editNode.firstChild;while(_30c){if(_30c.nodeType==3){if(_30c.nodeValue.replace(/^\s+|\s+$/g,"").length>0){_30b=true;this._sCall("selectElement",[_30c]);break;}}else{if(_30c.nodeType==1){_30b=true;this._sCall("selectElementChildren",[_30c]);break;}}_30c=_30c.nextSibling;}}else{_30b=true;this._sCall("selectElementChildren",[this.editNode]);}if(_30b){this._sCall("collapse",[true]);}},placeCursorAtEnd:function(){this.focus();var _30d=false;if(dojo.isMoz){var last=this.editNode.lastChild;while(last){if(last.nodeType==3){if(last.nodeValue.replace(/^\s+|\s+$/g,"").length>0){_30d=true;this._sCall("selectElement",[last]);break;}}else{if(last.nodeType==1){_30d=true;if(last.lastChild){this._sCall("selectElement",[last.lastChild]);}else{this._sCall("selectElement",[last]);}break;}}last=last.previousSibling;}}else{_30d=true;this._sCall("selectElementChildren",[this.editNode]);}if(_30d){this._sCall("collapse",[false]);}},getValue:function(_30f){if(this.textarea){if(this.isClosed||!this.isLoaded){return this.textarea.value;}}return this._postFilterContent(null,_30f);},_getValueAttr:function(){return this.getValue();},setValue:function(html){if(!this.isLoaded){this.onLoadDeferred.addCallback(dojo.hitch(this,function(){this.setValue(html);}));return;}if(this.textarea&&(this.isClosed||!this.isLoaded)){this.textarea.value=html;}else{html=this._preFilterContent(html);var node=this.isClosed?this.domNode:this.editNode;node.innerHTML=html;this._preDomFilterContent(node);}this.onDisplayChanged();},replaceValue:function(html){if(this.isClosed){this.setValue(html);}else{if(this.window&&this.window.getSelection&&!dojo.isMoz){this.setValue(html);}else{if(this.window&&this.window.getSelection){html=this._preFilterContent(html);this.execCommand("selectall");if(dojo.isMoz&&!html){html="&nbsp;";}this.execCommand("inserthtml",html);this._preDomFilterContent(this.editNode);}else{if(this.document&&this.document.selection){this.setValue(html);}}}}},_preFilterContent:function(html){var ec=html;dojo.forEach(this.contentPreFilters,function(ef){if(ef){ec=ef(ec);}});return ec;},_preDomFilterContent:function(dom){dom=dom||this.editNode;dojo.forEach(this.contentDomPreFilters,function(ef){if(ef&&dojo.isFunction(ef)){ef(dom);}},this);},_postFilterContent:function(dom,_319){var ec;if(!dojo.isString(dom)){dom=dom||this.editNode;if(this.contentDomPostFilters.length){if(_319){dom=dojo.clone(dom);}dojo.forEach(this.contentDomPostFilters,function(ef){dom=ef(dom);});}ec=dijit._editor.getChildrenHtml(dom);}else{ec=dom;}if(!dojo.trim(ec.replace(/^\xA0\xA0*/,"").replace(/\xA0\xA0*$/,"")).length){ec="";}dojo.forEach(this.contentPostFilters,function(ef){ec=ef(ec);});return ec;},_saveContent:function(e){var _31e=dojo.byId(dijit._scopeName+"._editor.RichText.savedContent");_31e.value+=this._SEPARATOR+this.name+":"+this.getValue();},escapeXml:function(str,_320){str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");if(!_320){str=str.replace(/'/gm,"&#39;");}return str;},getNodeHtml:function(node){dojo.deprecated("dijit.Editor::getNodeHtml is deprecated","use dijit._editor.getNodeHtml instead",2);return dijit._editor.getNodeHtml(node);},getNodeChildrenHtml:function(dom){dojo.deprecated("dijit.Editor::getNodeChildrenHtml is deprecated","use dijit._editor.getChildrenHtml instead",2);return dijit._editor.getChildrenHtml(dom);},close:function(save,_324){if(this.isClosed){return false;}if(!arguments.length){save=true;}this._content=this.getValue();var _325=(this.savedContent!=this._content);if(this.interval){clearInterval(this.interval);}if(this._webkitListener){this.disconnect(this._webkitListener);delete this._webkitListener;}if(dojo.isIE){this.iframe.onfocus=null;}this.iframe._loadFunc=null;if(this.textarea){var s=this.textarea.style;s.position="";s.left=s.top="";if(dojo.isIE){s.overflow=this.__overflow;this.__overflow=null;}this.textarea.value=save?this._content:this.savedContent;dojo.destroy(this.domNode);this.domNode=this.textarea;}else{this.domNode.innerHTML=save?this._content:this.savedContent;}dojo.removeClass(this.domNode,"RichTextEditable");this.isClosed=true;this.isLoaded=false;delete this.editNode;if(this.window&&this.window._frameElement){this.window._frameElement=null;}this.window=null;this.document=null;this.editingArea=null;this.editorObject=null;return _325;},destroyRendering:function(){},destroy:function(){this.destroyRendering();if(!this.isClosed){this.close(false);}this.inherited(arguments);},_removeMozBogus:function(html){return html.replace(/\stype="_moz"/gi,"").replace(/\s_moz_dirty=""/gi,"");},_removeSafariBogus:function(html){return html.replace(/\sclass="webkit-block-placeholder"/gi,"");},_fixContentForMoz:function(html){return html.replace(/<(\/)?strong([ \>])/gi,"<$1b$2").replace(/<(\/)?em([ \>])/gi,"<$1i$2");},_preFixUrlAttributes:function(html){return html.replace(/(?:(<a(?=\s).*?\shref=)("|')(.*?)\2)|(?:(<a\s.*?href=)([^"'][^ >]+))/gi,"$1$4$2$3$5$2 _djrealurl=$2$3$5$2").replace(/(?:(<img(?=\s).*?\ssrc=)("|')(.*?)\2)|(?:(<img\s.*?src=)([^"'][^ >]+))/gi,"$1$4$2$3$5$2 _djrealurl=$2$3$5$2");}});}if(!dojo._hasResource["dijit._KeyNavContainer"]){dojo._hasResource["dijit._KeyNavContainer"]=true;dojo.provide("dijit._KeyNavContainer");dojo.declare("dijit._KeyNavContainer",[dijit._Container],{tabIndex:"0",_keyNavCodes:{},connectKeyNavHandlers:function(_32b,_32c){var _32d=this._keyNavCodes={};var prev=dojo.hitch(this,this.focusPrev);var next=dojo.hitch(this,this.focusNext);dojo.forEach(_32b,function(code){_32d[code]=prev;});dojo.forEach(_32c,function(code){_32d[code]=next;});this.connect(this.domNode,"onkeypress","_onContainerKeypress");this.connect(this.domNode,"onfocus","_onContainerFocus");},startupKeyNavChildren:function(){dojo.forEach(this.getChildren(),dojo.hitch(this,"_startupChild"));},addChild:function(_332,_333){dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);this._startupChild(_332);},focus:function(){this.focusFirstChild();},focusFirstChild:function(){this.focusChild(this._getFirstFocusableChild());},focusNext:function(){if(this.focusedChild&&this.focusedChild.hasNextFocalNode&&this.focusedChild.hasNextFocalNode()){this.focusedChild.focusNext();return;}var _334=this._getNextFocusableChild(this.focusedChild,1);if(_334.getFocalNodes){this.focusChild(_334,_334.getFocalNodes()[0]);}else{this.focusChild(_334);}},focusPrev:function(){if(this.focusedChild&&this.focusedChild.hasPrevFocalNode&&this.focusedChild.hasPrevFocalNode()){this.focusedChild.focusPrev();return;}var _335=this._getNextFocusableChild(this.focusedChild,-1);if(_335.getFocalNodes){var _336=_335.getFocalNodes();this.focusChild(_335,_336[_336.length-1]);}else{this.focusChild(_335);}},focusChild:function(_337,node){if(_337){if(this.focusedChild&&_337!==this.focusedChild){this._onChildBlur(this.focusedChild);}this.focusedChild=_337;if(node&&_337.focusFocalNode){_337.focusFocalNode(node);}else{_337.focus();}}},_startupChild:function(_339){if(_339.getFocalNodes){dojo.forEach(_339.getFocalNodes(),function(node){dojo.attr(node,"tabindex",-1);this._connectNode(node);},this);}else{var node=_339.focusNode||_339.domNode;if(_339.isFocusable()){dojo.attr(node,"tabindex",-1);}this._connectNode(node);}},_connectNode:function(node){this.connect(node,"onfocus","_onNodeFocus");this.connect(node,"onblur","_onNodeBlur");},_onContainerFocus:function(evt){if(evt.target!==this.domNode){return;}this.focusFirstChild();dojo.removeAttr(this.domNode,"tabIndex");},_onBlur:function(evt){if(this.tabIndex){dojo.attr(this.domNode,"tabindex",this.tabIndex);}},_onContainerKeypress:function(evt){if(evt.ctrlKey||evt.altKey){return;}var func=this._keyNavCodes[evt.charOrCode];if(func){func();dojo.stopEvent(evt);}},_onNodeFocus:function(evt){var _342=dijit.getEnclosingWidget(evt.target);if(_342&&_342.isFocusable()){this.focusedChild=_342;}dojo.stopEvent(evt);},_onNodeBlur:function(evt){dojo.stopEvent(evt);},_onChildBlur:function(_344){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1);},_getNextFocusableChild:function(_345,dir){if(_345){_345=this._getSiblingOfChild(_345,dir);}var _347=this.getChildren();for(var i=0;i<_347.length;i++){if(!_345){_345=_347[(dir>0)?0:(_347.length-1)];}if(_345.isFocusable()){return _345;}_345=this._getSiblingOfChild(_345,dir);}return null;}});}if(!dojo._hasResource["dijit.ToolbarSeparator"]){dojo._hasResource["dijit.ToolbarSeparator"]=true;dojo.provide("dijit.ToolbarSeparator");dojo.declare("dijit.ToolbarSeparator",[dijit._Widget,dijit._Templated],{templateString:"<div class=\"dijitToolbarSeparator dijitInline\"></div>",postCreate:function(){dojo.setSelectable(this.domNode,false);},isFocusable:function(){return false;}});}if(!dojo._hasResource["dijit.Toolbar"]){dojo._hasResource["dijit.Toolbar"]=true;dojo.provide("dijit.Toolbar");dojo.declare("dijit.Toolbar",[dijit._Widget,dijit._Templated,dijit._KeyNavContainer],{templateString:"<div class=\"dijit dijitToolbar\" waiRole=\"toolbar\" tabIndex=\"${tabIndex}\" dojoAttachPoint=\"containerNode\">"+"</div>",postCreate:function(){this.connectKeyNavHandlers(this.isLeftToRight()?[dojo.keys.LEFT_ARROW]:[dojo.keys.RIGHT_ARROW],this.isLeftToRight()?[dojo.keys.RIGHT_ARROW]:[dojo.keys.LEFT_ARROW]);},startup:function(){if(this._started){return;}this.startupKeyNavChildren();this.inherited(arguments);}});}if(!dojo._hasResource["dijit.form.Button"]){dojo._hasResource["dijit.form.Button"]=true;dojo.provide("dijit.form.Button");dojo.declare("dijit.form.Button",dijit.form._FormWidget,{label:"",showLabel:true,iconClass:"",type:"button",baseClass:"dijitButton",templateString:"<span class=\"dijit dijitReset dijitLeft dijitInline\"\n\tdojoAttachEvent=\"ondijitclick:_onButtonClick,onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\"\n\t><span class=\"dijitReset dijitRight dijitInline\"\n\t\t><span class=\"dijitReset dijitInline dijitButtonNode\"\n\t\t\t><button class=\"dijitReset dijitStretch dijitButtonContents\"\n\t\t\t\tdojoAttachPoint=\"titleNode,focusNode\" \n\t\t\t\t${nameAttrSetting} type=\"${type}\" value=\"${value}\" waiRole=\"button\" waiState=\"labelledby-${id}_label\"\n\t\t\t\t><span class=\"dijitReset dijitInline\" dojoAttachPoint=\"iconNode\" \n\t\t\t\t\t><span class=\"dijitReset dijitToggleButtonIconChar\">&#10003;</span \n\t\t\t\t></span \n\t\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\" \n\t\t\t\t\tid=\"${id}_label\"  \n\t\t\t\t\tdojoAttachPoint=\"containerNode\"\n\t\t\t\t></span\n\t\t\t></button\n\t\t></span\n\t></span\n></span>\n",attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{label:{node:"containerNode",type:"innerHTML"},iconClass:{node:"iconNode",type:"class"}}),_onClick:function(e){if(this.disabled||this.readOnly){return false;}this._clicked();return this.onClick(e);},_onButtonClick:function(e){if(e.type!="click"&&!(this.type=="submit"||this.type=="reset")){dojo.stopEvent(e);}if(this._onClick(e)===false){e.preventDefault();}else{if(this.type=="submit"&&!this.focusNode.form){for(var node=this.domNode;node.parentNode;node=node.parentNode){var _34c=dijit.byNode(node);if(_34c&&typeof _34c._onSubmit=="function"){_34c._onSubmit(e);break;}}}}},_setValueAttr:function(_34d){var attr=this.attributeMap.value||"";if(this[attr.node||attr||"domNode"].tagName=="BUTTON"){if(_34d!=this.value){}}},_fillContent:function(_34f){if(_34f&&!("label" in this.params)){this.attr("label",_34f.innerHTML);}},postCreate:function(){if(this.showLabel==false){dojo.addClass(this.containerNode,"dijitDisplayNone");}dojo.setSelectable(this.focusNode,false);this.inherited(arguments);},onClick:function(e){return true;},_clicked:function(e){},setLabel:function(_352){dojo.deprecated("dijit.form.Button.setLabel() is deprecated.  Use attr('label', ...) instead.","","2.0");this.attr("label",_352);},_setLabelAttr:function(_353){this.containerNode.innerHTML=this.label=_353;this._layoutHack();if(this.showLabel==false&&!this.params.title){this.titleNode.title=dojo.trim(this.containerNode.innerText||this.containerNode.textContent||"");}}});dojo.declare("dijit.form.DropDownButton",[dijit.form.Button,dijit._Container],{baseClass:"dijitDropDownButton",templateString:"<span class=\"dijit dijitReset dijitLeft dijitInline\"\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse,onclick:_onDropDownClick,onkeydown:_onDropDownKeydown,onblur:_onDropDownBlur,onkeypress:_onKey\"\n\t><span class='dijitReset dijitRight dijitInline'\n\t\t><span class='dijitReset dijitInline dijitButtonNode'\n\t\t\t><button class=\"dijitReset dijitStretch dijitButtonContents\" \n\t\t\t\t${nameAttrSetting} type=\"${type}\" value=\"${value}\"\n\t\t\t\tdojoAttachPoint=\"focusNode,titleNode\" \n\t\t\t\twaiRole=\"button\" waiState=\"haspopup-true,labelledby-${id}_label\"\n\t\t\t\t><span class=\"dijitReset dijitInline\" \n\t\t\t\t\tdojoAttachPoint=\"iconNode\"\n\t\t\t\t></span\n\t\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"  \n\t\t\t\t\tdojoAttachPoint=\"containerNode,popupStateNode\" \n\t\t\t\t\tid=\"${id}_label\"\n\t\t\t\t></span\n\t\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonInner\">&thinsp;</span\n\t\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonChar\">&#9660;</span\n\t\t\t></button\n\t\t></span\n\t></span\n></span>\n",_fillContent:function(){if(this.srcNodeRef){var _354=dojo.query("*",this.srcNodeRef);dijit.form.DropDownButton.superclass._fillContent.call(this,_354[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}if(!this.dropDown){var _355=dojo.query("[widgetId]",this.dropDownContainer)[0];this.dropDown=dijit.byNode(_355);delete this.dropDownContainer;}dijit.popup.prepare(this.dropDown.domNode);this.inherited(arguments);},destroyDescendants:function(){if(this.dropDown){this.dropDown.destroyRecursive();delete this.dropDown;}this.inherited(arguments);},_onArrowClick:function(e){if(this.disabled||this.readOnly){return;}this._toggleDropDown();},_onDropDownClick:function(e){var _358=dojo.isFF&&dojo.isFF<3&&navigator.appVersion.indexOf("Macintosh")!=-1;if(!_358||e.detail!=0||this._seenKeydown){this._onArrowClick(e);}this._seenKeydown=false;},_onDropDownKeydown:function(e){this._seenKeydown=true;},_onDropDownBlur:function(e){this._seenKeydown=false;},_onKey:function(e){if(this.disabled||this.readOnly){return;}if(e.charOrCode==dojo.keys.DOWN_ARROW){if(!this.dropDown||this.dropDown.domNode.style.visibility=="hidden"){dojo.stopEvent(e);this._toggleDropDown();}}},_onBlur:function(){this._closeDropDown();this.inherited(arguments);},_toggleDropDown:function(){if(this.disabled||this.readOnly){return;}dijit.focus(this.popupStateNode);var _35c=this.dropDown;if(!_35c){return;}if(!this._opened){if(_35c.href&&!_35c.isLoaded){var self=this;var _35e=dojo.connect(_35c,"onLoad",function(){dojo.disconnect(_35e);self._openDropDown();});_35c.refresh();return;}else{this._openDropDown();}}else{this._closeDropDown();}},_openDropDown:function(){var _35f=this.dropDown;var _360=_35f.domNode.style.width;var self=this;dijit.popup.open({parent:this,popup:_35f,around:this.domNode,orient:this.isLeftToRight()?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"},onExecute:function(){self._closeDropDown(true);},onCancel:function(){self._closeDropDown(true);},onClose:function(){_35f.domNode.style.width=_360;self.popupStateNode.removeAttribute("popupActive");self._opened=false;}});if(this.domNode.offsetWidth>_35f.domNode.offsetWidth){var _362=null;if(!this.isLeftToRight()){_362=_35f.domNode.parentNode;var _363=_362.offsetLeft+_362.offsetWidth;}dojo.marginBox(_35f.domNode,{w:this.domNode.offsetWidth});if(_362){_362.style.left=_363-this.domNode.offsetWidth+"px";}}this.popupStateNode.setAttribute("popupActive","true");this._opened=true;if(_35f.focus){_35f.focus();}},_closeDropDown:function(_364){if(this._opened){dijit.popup.close(this.dropDown);if(_364){this.focus();}this._opened=false;}}});dojo.declare("dijit.form.ComboButton",dijit.form.DropDownButton,{templateString:"<table class='dijit dijitReset dijitInline dijitLeft'\n\tcellspacing='0' cellpadding='0' waiRole=\"presentation\"\n\t><tbody waiRole=\"presentation\"><tr waiRole=\"presentation\"\n\t\t><td class=\"dijitReset dijitStretch dijitButtonContents dijitButtonNode\"\n\t\t\tdojoAttachEvent=\"ondijitclick:_onButtonClick,onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\"  dojoAttachPoint=\"titleNode\"\n\t\t\twaiRole=\"button\" waiState=\"labelledby-${id}_label\"\n\t\t\t><div class=\"dijitReset dijitInline\" dojoAttachPoint=\"iconNode\" waiRole=\"presentation\"></div\n\t\t\t><div class=\"dijitReset dijitInline dijitButtonText\" id=\"${id}_label\" dojoAttachPoint=\"containerNode\" waiRole=\"presentation\"></div\n\t\t></td\n\t\t><td class='dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton'\n\t\t\tdojoAttachPoint=\"popupStateNode,focusNode\"\n\t\t\tdojoAttachEvent=\"ondijitclick:_onArrowClick, onkeypress:_onKey,onmouseenter:_onMouse,onmouseleave:_onMouse\"\n\t\t\tstateModifier=\"DownArrow\"\n\t\t\ttitle=\"${optionsTitle}\" ${nameAttrSetting}\n\t\t\twaiRole=\"button\" waiState=\"haspopup-true\"\n\t\t\t><div class=\"dijitReset dijitArrowButtonInner\" waiRole=\"presentation\">&thinsp;</div\n\t\t\t><div class=\"dijitReset dijitArrowButtonChar\" waiRole=\"presentation\">&#9660;</div\n\t\t></td\n\t></tr></tbody\n></table>\n",attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{id:"",tabIndex:["focusNode","titleNode"]}),optionsTitle:"",baseClass:"dijitComboButton",_focusedNode:null,postCreate:function(){this.inherited(arguments);this._focalNodes=[this.titleNode,this.popupStateNode];dojo.forEach(this._focalNodes,dojo.hitch(this,function(node){if(dojo.isIE){this.connect(node,"onactivate",this._onNodeFocus);this.connect(node,"ondeactivate",this._onNodeBlur);}else{this.connect(node,"onfocus",this._onNodeFocus);this.connect(node,"onblur",this._onNodeBlur);}}));},focusFocalNode:function(node){this._focusedNode=node;dijit.focus(node);},hasNextFocalNode:function(){return this._focusedNode!==this.getFocalNodes()[1];},focusNext:function(){this._focusedNode=this.getFocalNodes()[this._focusedNode?1:0];dijit.focus(this._focusedNode);},hasPrevFocalNode:function(){return this._focusedNode!==this.getFocalNodes()[0];},focusPrev:function(){this._focusedNode=this.getFocalNodes()[this._focusedNode?0:1];dijit.focus(this._focusedNode);},getFocalNodes:function(){return this._focalNodes;},_onNodeFocus:function(evt){this._focusedNode=evt.currentTarget;var fnc=this._focusedNode==this.focusNode?"dijitDownArrowButtonFocused":"dijitButtonContentsFocused";dojo.addClass(this._focusedNode,fnc);},_onNodeBlur:function(evt){var fnc=evt.currentTarget==this.focusNode?"dijitDownArrowButtonFocused":"dijitButtonContentsFocused";dojo.removeClass(evt.currentTarget,fnc);},_onBlur:function(){this.inherited(arguments);this._focusedNode=null;}});dojo.declare("dijit.form.ToggleButton",dijit.form.Button,{baseClass:"dijitToggleButton",checked:false,attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{checked:"focusNode"}),_clicked:function(evt){this.attr("checked",!this.checked);},_setCheckedAttr:function(_36c){this.checked=_36c;dojo.attr(this.focusNode||this.domNode,"checked",_36c);dijit.setWaiState(this.focusNode||this.domNode,"pressed",_36c);this._setStateClass();this._handleOnChange(_36c,true);},setChecked:function(_36d){dojo.deprecated("setChecked("+_36d+") is deprecated. Use attr('checked',"+_36d+") instead.","","2.0");this.attr("checked",_36d);},reset:function(){this._hasBeenBlurred=false;this.attr("checked",this.params.checked||false);}});}if(!dojo._hasResource["dijit._editor._Plugin"]){dojo._hasResource["dijit._editor._Plugin"]=true;dojo.provide("dijit._editor._Plugin");dojo.declare("dijit._editor._Plugin",null,{constructor:function(args,node){if(args){dojo.mixin(this,args);}this._connects=[];},editor:null,iconClassPrefix:"dijitEditorIcon",button:null,queryCommand:null,command:"",commandArg:null,useDefaultCommand:true,buttonClass:dijit.form.Button,getLabel:function(key){return this.editor.commands[key];},_initButton:function(_371){if(this.command.length){var _372=this.getLabel(this.command);var _373=this.iconClassPrefix+" "+this.iconClassPrefix+this.command.charAt(0).toUpperCase()+this.command.substr(1);if(!this.button){_371=dojo.mixin({label:_372,showLabel:false,iconClass:_373,dropDown:this.dropDown,tabIndex:"-1"},_371||{});this.button=new this.buttonClass(_371);}}},destroy:function(f){dojo.forEach(this._connects,dojo.disconnect);if(this.dropDown){this.dropDown.destroyRecursive();}},connect:function(o,f,tf){this._connects.push(dojo.connect(o,f,this,tf));},updateState:function(){var e=this.editor,c=this.command,_37a,_37b;if(!e||!e.isLoaded||!c.length){return;}if(this.button){try{_37b=e.queryCommandEnabled(c);if(this.enabled!==_37b){this.enabled=_37b;this.button.attr("disabled",!_37b);}if(typeof this.button.checked=="boolean"){_37a=e.queryCommandState(c);if(this.checked!==_37a){this.checked=_37a;this.button.attr("checked",e.queryCommandState(c));}}}catch(e){}}},setEditor:function(_37c){this.editor=_37c;this._initButton();if(this.command.length&&!this.editor.queryCommandAvailable(this.command)){if(this.button){this.button.domNode.style.display="none";}}if(this.button&&this.useDefaultCommand){this.connect(this.button,"onClick",dojo.hitch(this.editor,"execCommand",this.command,this.commandArg));}this.connect(this.editor,"onNormalizedDisplayChanged","updateState");},setToolbar:function(_37d){if(this.button){_37d.addChild(this.button);}}});}if(!dojo._hasResource["dijit._editor.plugins.EnterKeyHandling"]){dojo._hasResource["dijit._editor.plugins.EnterKeyHandling"]=true;dojo.provide("dijit._editor.plugins.EnterKeyHandling");dojo.declare("dijit._editor.plugins.EnterKeyHandling",dijit._editor._Plugin,{blockNodeForEnter:"BR",constructor:function(args){if(args){dojo.mixin(this,args);}},setEditor:function(_37f){this.editor=_37f;if(this.blockNodeForEnter=="BR"){if(dojo.isIE){_37f.contentDomPreFilters.push(dojo.hitch(this,"regularPsToSingleLinePs"));_37f.contentDomPostFilters.push(dojo.hitch(this,"singleLinePsToRegularPs"));_37f.onLoadDeferred.addCallback(dojo.hitch(this,"_fixNewLineBehaviorForIE"));}else{_37f.onLoadDeferred.addCallback(dojo.hitch(this,function(d){try{this.editor.document.execCommand("insertBrOnReturn",false,true);}catch(e){}return d;}));}}else{if(this.blockNodeForEnter){dojo["require"]("dijit._editor.range");var h=dojo.hitch(this,this.handleEnterKey);_37f.addKeyHandler(13,0,0,h);_37f.addKeyHandler(13,0,1,h);this.connect(this.editor,"onKeyPressed","onKeyPressed");}}},connect:function(o,f,tf){if(!this._connects){this._connects=[];}this._connects.push(dojo.connect(o,f,this,tf));},destroy:function(){dojo.forEach(this._connects,dojo.disconnect);this._connects=[];},onKeyPressed:function(e){if(this._checkListLater){if(dojo.withGlobal(this.editor.window,"isCollapsed",dijit)){var _386=dojo.withGlobal(this.editor.window,"getAncestorElement",dijit._editor.selection,["LI"]);if(!_386){dijit._editor.RichText.prototype.execCommand.call(this.editor,"formatblock",this.blockNodeForEnter);var _387=dojo.withGlobal(this.editor.window,"getAncestorElement",dijit._editor.selection,[this.blockNodeForEnter]);if(_387){_387.innerHTML=this.bogusHtmlContent;if(dojo.isIE){var r=this.editor.document.selection.createRange();r.move("character",-1);r.select();}}else{alert("onKeyPressed: Can not find the new block node");}}else{if(dojo.isMoz){if(_386.parentNode.parentNode.nodeName=="LI"){_386=_386.parentNode.parentNode;}}var fc=_386.firstChild;if(fc&&fc.nodeType==1&&(fc.nodeName=="UL"||fc.nodeName=="OL")){_386.insertBefore(fc.ownerDocument.createTextNode(" "),fc);var _38a=dijit.range.create();_38a.setStart(_386.firstChild,0);var _38b=dijit.range.getSelection(this.editor.window,true);_38b.removeAllRanges();_38b.addRange(_38a);}}}this._checkListLater=false;}if(this._pressedEnterInBlock){if(this._pressedEnterInBlock.previousSibling){this.removeTrailingBr(this._pressedEnterInBlock.previousSibling);}delete this._pressedEnterInBlock;}},bogusHtmlContent:"&nbsp;",blockNodes:/^(?:P|H1|H2|H3|H4|H5|H6|LI)$/,handleEnterKey:function(e){if(!this.blockNodeForEnter){return true;}var _38d,_38e,_38f,doc=this.editor.document,br;if(e.shiftKey||this.blockNodeForEnter=="BR"){var _392=dojo.withGlobal(this.editor.window,"getParentElement",dijit._editor.selection);var _393=dijit.range.getAncestor(_392,this.blockNodes);if(_393){if(!e.shiftKey&&_393.tagName=="LI"){return true;}_38d=dijit.range.getSelection(this.editor.window);_38e=_38d.getRangeAt(0);if(!_38e.collapsed){_38e.deleteContents();}if(dijit.range.atBeginningOfContainer(_393,_38e.startContainer,_38e.startOffset)){if(e.shiftKey){br=doc.createElement("br");_38f=dijit.range.create();_393.insertBefore(br,_393.firstChild);_38f.setStartBefore(br.nextSibling);_38d.removeAllRanges();_38d.addRange(_38f);}else{dojo.place(br,_393,"before");}}else{if(dijit.range.atEndOfContainer(_393,_38e.startContainer,_38e.startOffset)){_38f=dijit.range.create();br=doc.createElement("br");if(e.shiftKey){_393.appendChild(br);_393.appendChild(doc.createTextNode(" "));_38f.setStart(_393.lastChild,0);}else{dojo.place(br,_393,"after");_38f.setStartAfter(_393);}_38d.removeAllRanges();_38d.addRange(_38f);}else{return true;}}}else{dijit._editor.RichText.prototype.execCommand.call(this.editor,"inserthtml","<br>");}return false;}var _394=true;_38d=dijit.range.getSelection(this.editor.window);_38e=_38d.getRangeAt(0);if(!_38e.collapsed){_38e.deleteContents();}var _395=dijit.range.getBlockAncestor(_38e.endContainer,null,this.editor.editNode);var _396=_395.blockNode;if((this._checkListLater=(_396&&(_396.nodeName=="LI"||_396.parentNode.nodeName=="LI")))){if(dojo.isMoz){this._pressedEnterInBlock=_396;}if(/^(?:\s|&nbsp;)$/.test(_396.innerHTML)){_396.innerHTML="";}return true;}if(!_395.blockNode||_395.blockNode===this.editor.editNode){dijit._editor.RichText.prototype.execCommand.call(this.editor,"formatblock",this.blockNodeForEnter);_395={blockNode:dojo.withGlobal(this.editor.window,"getAncestorElement",dijit._editor.selection,[this.blockNodeForEnter]),blockContainer:this.editor.editNode};if(_395.blockNode){if(!(_395.blockNode.textContent||_395.blockNode.innerHTML).replace(/^\s+|\s+$/g,"").length){this.removeTrailingBr(_395.blockNode);return false;}}else{_395.blockNode=this.editor.editNode;}_38d=dijit.range.getSelection(this.editor.window);_38e=_38d.getRangeAt(0);}var _397=doc.createElement(this.blockNodeForEnter);_397.innerHTML=this.bogusHtmlContent;this.removeTrailingBr(_395.blockNode);if(dijit.range.atEndOfContainer(_395.blockNode,_38e.endContainer,_38e.endOffset)){if(_395.blockNode===_395.blockContainer){_395.blockNode.appendChild(_397);}else{dojo.place(_397,_395.blockNode,"after");}_394=false;_38f=dijit.range.create();_38f.setStart(_397,0);_38d.removeAllRanges();_38d.addRange(_38f);if(this.editor.height){_397.scrollIntoView(false);}}else{if(dijit.range.atBeginningOfContainer(_395.blockNode,_38e.startContainer,_38e.startOffset)){dojo.place(_397,_395.blockNode,_395.blockNode===_395.blockContainer?"first":"before");if(_397.nextSibling&&this.editor.height){_397.nextSibling.scrollIntoView(false);}_394=false;}else{if(dojo.isMoz){this._pressedEnterInBlock=_395.blockNode;}}}return _394;},removeTrailingBr:function(_398){var para=/P|DIV|LI/i.test(_398.tagName)?_398:dijit._editor.selection.getParentOfType(_398,["P","DIV","LI"]);if(!para){return;}if(para.lastChild){if((para.childNodes.length>1&&para.lastChild.nodeType==3&&/^[\s\xAD]*$/.test(para.lastChild.nodeValue))||(para.lastChild&&para.lastChild.tagName=="BR")){dojo.destroy(para.lastChild);}}if(!para.childNodes.length){para.innerHTML=this.bogusHtmlContent;}},_fixNewLineBehaviorForIE:function(d){if(this.editor.document.__INSERTED_EDITIOR_NEWLINE_CSS===undefined){var _39b="p{margin:0 !important;}";var _39c=function(_39d,doc,URI){if(!_39d){return null;}if(!doc){doc=document;}var _3a0=doc.createElement("style");_3a0.setAttribute("type","text/css");var head=doc.getElementsByTagName("head")[0];if(!head){return null;}else{head.appendChild(_3a0);}if(_3a0.styleSheet){var _3a2=function(){try{_3a0.styleSheet.cssText=_39d;}catch(e){}};if(_3a0.styleSheet.disabled){setTimeout(_3a2,10);}else{_3a2();}}else{var _3a3=doc.createTextNode(_39d);_3a0.appendChild(_3a3);}return _3a0;};_39c(_39b,this.editor.document);this.editor.document.__INSERTED_EDITIOR_NEWLINE_CSS=true;return d;}return null;},regularPsToSingleLinePs:function(_3a4,_3a5){function _3a6(el){function _3a8(_3a9){var newP=_3a9[0].ownerDocument.createElement("p");_3a9[0].parentNode.insertBefore(newP,_3a9[0]);dojo.forEach(_3a9,function(node){newP.appendChild(node);});};var _3ac=0;var _3ad=[];var _3ae;while(_3ac<el.childNodes.length){_3ae=el.childNodes[_3ac];if(_3ae.nodeType==3||(_3ae.nodeType==1&&_3ae.nodeName!="BR"&&dojo.style(_3ae,"display")!="block")){_3ad.push(_3ae);}else{var _3af=_3ae.nextSibling;if(_3ad.length){_3a8(_3ad);_3ac=(_3ac+1)-_3ad.length;if(_3ae.nodeName=="BR"){dojo.destroy(_3ae);}}_3ad=[];}_3ac++;}if(_3ad.length){_3a8(_3ad);}};function _3b0(el){var _3b2=null;var _3b3=[];var _3b4=el.childNodes.length-1;for(var i=_3b4;i>=0;i--){_3b2=el.childNodes[i];if(_3b2.nodeName=="BR"){var newP=_3b2.ownerDocument.createElement("p");dojo.place(newP,el,"after");if(_3b3.length==0&&i!=_3b4){newP.innerHTML="&nbsp;";}dojo.forEach(_3b3,function(node){newP.appendChild(node);});dojo.destroy(_3b2);_3b3=[];}else{_3b3.unshift(_3b2);}}};var _3b8=[];var ps=_3a4.getElementsByTagName("p");dojo.forEach(ps,function(p){_3b8.push(p);});dojo.forEach(_3b8,function(p){if((p.previousSibling)&&(p.previousSibling.nodeName=="P"||dojo.style(p.previousSibling,"display")!="block")){var newP=p.parentNode.insertBefore(this.document.createElement("p"),p);newP.innerHTML=_3a5?"":"&nbsp;";}_3b0(p);},this.editor);_3a6(_3a4);return _3a4;},singleLinePsToRegularPs:function(_3bd){function _3be(node){var ps=node.getElementsByTagName("p");var _3c1=[];for(var i=0;i<ps.length;i++){var p=ps[i];var _3c4=false;for(var k=0;k<_3c1.length;k++){if(_3c1[k]===p.parentNode){_3c4=true;break;}}if(!_3c4){_3c1.push(p.parentNode);}}return _3c1;};function _3c6(node){if(node.nodeType!=1||node.tagName!="P"){return dojo.style(node,"display")=="block";}else{if(!node.childNodes.length||node.innerHTML=="&nbsp;"){return true;}}return false;};var _3c8=_3be(_3bd);for(var i=0;i<_3c8.length;i++){var _3ca=_3c8[i];var _3cb=null;var node=_3ca.firstChild;var _3cd=null;while(node){if(node.nodeType!="1"||node.tagName!="P"){_3cb=null;}else{if(_3c6(node)){_3cd=node;_3cb=null;}else{if(_3cb==null){_3cb=node;}else{if((!_3cb.lastChild||_3cb.lastChild.nodeName!="BR")&&(node.firstChild)&&(node.firstChild.nodeName!="BR")){_3cb.appendChild(this.editor.document.createElement("br"));}while(node.firstChild){_3cb.appendChild(node.firstChild);}_3cd=node;}}}node=node.nextSibling;if(_3cd){dojo.destroy(_3cd);_3cd=null;}}}return _3bd;}});}if(!dojo._hasResource["dijit.Editor"]){dojo._hasResource["dijit.Editor"]=true;dojo.provide("dijit.Editor");dojo.declare("dijit.Editor",dijit._editor.RichText,{plugins:null,extraPlugins:null,constructor:function(){if(!dojo.isArray(this.plugins)){this.plugins=["undo","redo","|","cut","copy","paste","|","bold","italic","underline","strikethrough","|","insertOrderedList","insertUnorderedList","indent","outdent","|","justifyLeft","justifyRight","justifyCenter","justifyFull","dijit._editor.plugins.EnterKeyHandling"];}this._plugins=[];this._editInterval=this.editActionInterval*1000;if(dojo.isIE){this.events.push("onBeforeDeactivate");}},postCreate:function(){if(this.customUndo){dojo["require"]("dijit._editor.range");this._steps=this._steps.slice(0);this._undoedSteps=this._undoedSteps.slice(0);}if(dojo.isArray(this.extraPlugins)){this.plugins=this.plugins.concat(this.extraPlugins);}this.inherited(arguments);this.commands=dojo.i18n.getLocalization("dijit._editor","commands",this.lang);if(!this.toolbar){this.toolbar=new dijit.Toolbar({});dojo.place(this.toolbar.domNode,this.editingArea,"before");}dojo.forEach(this.plugins,this.addPlugin,this);this.onNormalizedDisplayChanged();this.toolbar.startup();},destroy:function(){dojo.forEach(this._plugins,function(p){if(p&&p.destroy){p.destroy();}});this._plugins=[];this.toolbar.destroyRecursive();delete this.toolbar;this.inherited(arguments);},addPlugin:function(_3cf,_3d0){var args=dojo.isString(_3cf)?{name:_3cf}:_3cf;if(!args.setEditor){var o={"args":args,"plugin":null,"editor":this};dojo.publish(dijit._scopeName+".Editor.getPlugin",[o]);if(!o.plugin){var pc=dojo.getObject(args.name);if(pc){o.plugin=new pc(args);}}if(!o.plugin){console.warn("Cannot find plugin",_3cf);return;}_3cf=o.plugin;}if(arguments.length>1){this._plugins[_3d0]=_3cf;}else{this._plugins.push(_3cf);}_3cf.setEditor(this);if(dojo.isFunction(_3cf.setToolbar)){_3cf.setToolbar(this.toolbar);}},startup:function(){},resize:function(size){dijit.layout._LayoutWidget.prototype.resize.apply(this,arguments);},layout:function(){this.editingArea.style.height=(this._contentBox.h-dojo.marginBox(this.toolbar.domNode).h)+"px";if(this.iframe){this.iframe.style.height="100%";}this._layoutMode=true;},_onIEMouseDown:function(e){delete this._savedSelection;if(e.target.tagName=="BODY"){setTimeout(dojo.hitch(this,"placeCursorAtEnd"),0);}this.inherited(arguments);},onBeforeDeactivate:function(e){if(this.customUndo){this.endEditing(true);}this._saveSelection();},customUndo:dojo.isIE,editActionInterval:3,beginEditing:function(cmd){if(!this._inEditing){this._inEditing=true;this._beginEditing(cmd);}if(this.editActionInterval>0){if(this._editTimer){clearTimeout(this._editTimer);}this._editTimer=setTimeout(dojo.hitch(this,this.endEditing),this._editInterval);}},_steps:[],_undoedSteps:[],execCommand:function(cmd){if(this.customUndo&&(cmd=="undo"||cmd=="redo")){return this[cmd]();}else{if(this.customUndo){this.endEditing();this._beginEditing();}try{var r=this.inherited("execCommand",arguments);if(dojo.isWebKit&&cmd=="paste"&&!r){throw {code:1011};}}catch(e){if(e.code==1011&&/copy|cut|paste/.test(cmd)){var sub=dojo.string.substitute,_3db={cut:"X",copy:"C",paste:"V"},_3dc=navigator.userAgent.indexOf("Macintosh")!=-1;alert(sub(this.commands.systemShortcut,[this.commands[cmd],sub(this.commands[_3dc?"appleKey":"ctrlKey"],[_3db[cmd]])]));}r=false;}if(this.customUndo){this._endEditing();}return r;}},queryCommandEnabled:function(cmd){if(this.customUndo&&(cmd=="undo"||cmd=="redo")){return cmd=="undo"?(this._steps.length>1):(this._undoedSteps.length>0);}else{return this.inherited("queryCommandEnabled",arguments);}},focus:function(){var _3de=0;if(this._savedSelection&&dojo.isIE){_3de=dijit._curFocus!=this.editNode;}this.inherited(arguments);if(_3de){this._restoreSelection();}},_moveToBookmark:function(b){var _3e0=b;if(dojo.isIE){if(dojo.isArray(b)){_3e0=[];dojo.forEach(b,function(n){_3e0.push(dijit.range.getNode(n,this.editNode));},this);}}else{var r=dijit.range.create();r.setStart(dijit.range.getNode(b.startContainer,this.editNode),b.startOffset);r.setEnd(dijit.range.getNode(b.endContainer,this.editNode),b.endOffset);_3e0=r;}dojo.withGlobal(this.window,"moveToBookmark",dijit,[_3e0]);},_changeToStep:function(from,to){this.setValue(to.text);var b=to.bookmark;if(!b){return;}this._moveToBookmark(b);},undo:function(){this.endEditing(true);var s=this._steps.pop();if(this._steps.length>0){this.focus();this._changeToStep(s,this._steps[this._steps.length-1]);this._undoedSteps.push(s);this.onDisplayChanged();return true;}return false;},redo:function(){this.endEditing(true);var s=this._undoedSteps.pop();if(s&&this._steps.length>0){this.focus();this._changeToStep(this._steps[this._steps.length-1],s);this._steps.push(s);this.onDisplayChanged();return true;}return false;},endEditing:function(_3e8){if(this._editTimer){clearTimeout(this._editTimer);}if(this._inEditing){this._endEditing(_3e8);this._inEditing=false;}},_getBookmark:function(){var b=dojo.withGlobal(this.window,dijit.getBookmark);var tmp=[];if(dojo.isIE){if(dojo.isArray(b)){dojo.forEach(b,function(n){tmp.push(dijit.range.getIndex(n,this.editNode).o);},this);b=tmp;}}else{tmp=dijit.range.getIndex(b.startContainer,this.editNode).o;b={startContainer:tmp,startOffset:b.startOffset,endContainer:b.endContainer===b.startContainer?tmp:dijit.range.getIndex(b.endContainer,this.editNode).o,endOffset:b.endOffset};}return b;},_beginEditing:function(cmd){if(this._steps.length===0){this._steps.push({"text":this.savedContent,"bookmark":this._getBookmark()});}},_endEditing:function(_3ed){var v=this.getValue(true);this._undoedSteps=[];this._steps.push({text:v,bookmark:this._getBookmark()});},onKeyDown:function(e){if(!dojo.isIE&&!this.iframe&&e.keyCode==dojo.keys.TAB&&!this.tabIndent){this._saveSelection();}if(!this.customUndo){this.inherited(arguments);return;}var k=e.keyCode,ks=dojo.keys;if(e.ctrlKey&&!e.altKey){if(k==90||k==122){dojo.stopEvent(e);this.undo();return;}else{if(k==89||k==121){dojo.stopEvent(e);this.redo();return;}}}this.inherited(arguments);switch(k){case ks.ENTER:case ks.BACKSPACE:case ks.DELETE:this.beginEditing();break;case 88:case 86:if(e.ctrlKey&&!e.altKey&&!e.metaKey){this.endEditing();if(e.keyCode==88){this.beginEditing("cut");setTimeout(dojo.hitch(this,this.endEditing),1);}else{this.beginEditing("paste");setTimeout(dojo.hitch(this,this.endEditing),1);}break;}default:if(!e.ctrlKey&&!e.altKey&&!e.metaKey&&(e.keyCode<dojo.keys.F1||e.keyCode>dojo.keys.F15)){this.beginEditing();break;}case ks.ALT:this.endEditing();break;case ks.UP_ARROW:case ks.DOWN_ARROW:case ks.LEFT_ARROW:case ks.RIGHT_ARROW:case ks.HOME:case ks.END:case ks.PAGE_UP:case ks.PAGE_DOWN:this.endEditing(true);break;case ks.CTRL:case ks.SHIFT:case ks.TAB:break;}},_onBlur:function(){this.inherited("_onBlur",arguments);this.endEditing(true);},_saveSelection:function(){this._savedSelection=this._getBookmark();},_restoreSelection:function(){if(this._savedSelection){if(dojo.withGlobal(this.window,"isCollapsed",dijit)){this._moveToBookmark(this._savedSelection);}delete this._savedSelection;}},_onFocus:function(){setTimeout(dojo.hitch(this,"_restoreSelection"),0);this.inherited(arguments);},onClick:function(){this.endEditing(true);this.inherited(arguments);}});dojo.subscribe(dijit._scopeName+".Editor.getPlugin",null,function(o){if(o.plugin){return;}var args=o.args,p;var _p=dijit._editor._Plugin;var name=args.name;switch(name){case "undo":case "redo":case "cut":case "copy":case "paste":case "insertOrderedList":case "insertUnorderedList":case "indent":case "outdent":case "justifyCenter":case "justifyFull":case "justifyLeft":case "justifyRight":case "delete":case "selectAll":case "removeFormat":case "unlink":case "insertHorizontalRule":p=new _p({command:name});break;case "bold":case "italic":case "underline":case "strikethrough":case "subscript":case "superscript":p=new _p({buttonClass:dijit.form.ToggleButton,command:name});break;case "|":p=new _p({button:new dijit.ToolbarSeparator()});}o.plugin=p;});}if(!dojo._hasResource["dijit.MenuItem"]){dojo._hasResource["dijit.MenuItem"]=true;dojo.provide("dijit.MenuItem");dojo.declare("dijit.MenuItem",[dijit._Widget,dijit._Templated,dijit._Contained],{templateString:"<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" waiRole=\"menuitem\" tabIndex=\"-1\"\n\t\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<td class=\"dijitReset\" waiRole=\"presentation\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuItemIcon\" dojoAttachPoint=\"iconNode\">\n\t</td>\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" dojoAttachPoint=\"containerNode\"></td>\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" dojoAttachPoint=\"accelKeyNode\"></td>\n\t<td class=\"dijitReset dijitMenuArrowCell\" waiRole=\"presentation\">\n\t\t<div dojoAttachPoint=\"arrowWrapper\" style=\"visibility: hidden\">\n\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuExpand\">\n\t\t\t<span class=\"dijitMenuExpandA11y\">+</span>\n\t\t</div>\n\t</td>\n</tr>\n",attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{label:{node:"containerNode",type:"innerHTML"},iconClass:{node:"iconNode",type:"class"}}),label:"",iconClass:"",accelKey:"",disabled:false,_fillContent:function(_3f7){if(_3f7&&!("label" in this.params)){this.attr("label",_3f7.innerHTML);}},postCreate:function(){dojo.setSelectable(this.domNode,false);dojo.attr(this.containerNode,"id",this.id+"_text");dijit.setWaiState(this.domNode,"labelledby",this.id+"_text");},_onHover:function(){dojo.addClass(this.domNode,"dijitMenuItemHover");this.getParent().onItemHover(this);},_onUnhover:function(){dojo.removeClass(this.domNode,"dijitMenuItemHover");this.getParent().onItemUnhover(this);},_onClick:function(evt){this.getParent().onItemClick(this,evt);dojo.stopEvent(evt);},onClick:function(evt){},focus:function(){try{dijit.focus(this.focusNode);}catch(e){}},_onFocus:function(){this._setSelected(true);},_setSelected:function(_3fa){dojo.toggleClass(this.domNode,"dijitMenuItemSelected",_3fa);},setLabel:function(_3fb){dojo.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use attr('label', ...) instead.","","2.0");this.attr("label",_3fb);},setDisabled:function(_3fc){dojo.deprecated("dijit.Menu.setDisabled() is deprecated.  Use attr('disabled', bool) instead.","","2.0");this.attr("disabled",_3fc);},_setDisabledAttr:function(_3fd){this.disabled=_3fd;dojo[_3fd?"addClass":"removeClass"](this.domNode,"dijitMenuItemDisabled");dijit.setWaiState(this.focusNode,"disabled",_3fd?"true":"false");},_setAccelKeyAttr:function(_3fe){this.accelKey=_3fe;this.accelKeyNode.style.display=_3fe?"":"none";this.accelKeyNode.innerHTML=_3fe;dojo.attr(this.containerNode,"colSpan",_3fe?"1":"2");}});}if(!dojo._hasResource["dijit.PopupMenuItem"]){dojo._hasResource["dijit.PopupMenuItem"]=true;dojo.provide("dijit.PopupMenuItem");dojo.declare("dijit.PopupMenuItem",dijit.MenuItem,{_fillContent:function(){if(this.srcNodeRef){var _3ff=dojo.query("*",this.srcNodeRef);dijit.PopupMenuItem.superclass._fillContent.call(this,_3ff[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}this.inherited(arguments);if(!this.popup){var node=dojo.query("[widgetId]",this.dropDownContainer)[0];this.popup=dijit.byNode(node);}dojo.body().appendChild(this.popup.domNode);this.popup.domNode.style.display="none";if(this.arrowWrapper){dojo.style(this.arrowWrapper,"visibility","");}dijit.setWaiState(this.focusNode,"haspopup","true");},destroyDescendants:function(){if(this.popup){this.popup.destroyRecursive();delete this.popup;}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.CheckedMenuItem"]){dojo._hasResource["dijit.CheckedMenuItem"]=true;dojo.provide("dijit.CheckedMenuItem");dojo.declare("dijit.CheckedMenuItem",dijit.MenuItem,{templateString:"<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" waiRole=\"menuitemcheckbox\" tabIndex=\"-1\"\n\t\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<td class=\"dijitReset\" waiRole=\"presentation\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuItemIcon dijitCheckedMenuItemIcon\" dojoAttachPoint=\"iconNode\">\n\t\t<span class=\"dijitCheckedMenuItemIconChar\">&#10003;</span>\n\t</td>\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" dojoAttachPoint=\"containerNode,labelNode\"></td>\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" dojoAttachPoint=\"accelKeyNode\"></td>\n\t<td class=\"dijitReset dijitMenuArrowCell\" waiRole=\"presentation\">\n\t</td>\n</tr>\n",checked:false,_setCheckedAttr:function(_401){dojo.toggleClass(this.domNode,"dijitCheckedMenuItemChecked",_401);dijit.setWaiState(this.domNode,"checked",_401);this.checked=_401;},onChange:function(_402){},_onClick:function(e){if(!this.disabled){this.attr("checked",!this.checked);this.onChange(this.checked);}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.MenuSeparator"]){dojo._hasResource["dijit.MenuSeparator"]=true;dojo.provide("dijit.MenuSeparator");dojo.declare("dijit.MenuSeparator",[dijit._Widget,dijit._Templated,dijit._Contained],{templateString:"<tr class=\"dijitMenuSeparator\">\n\t<td colspan=\"4\">\n\t\t<div class=\"dijitMenuSeparatorTop\"></div>\n\t\t<div class=\"dijitMenuSeparatorBottom\"></div>\n\t</td>\n</tr>\n",postCreate:function(){dojo.setSelectable(this.domNode,false);},isFocusable:function(){return false;}});}if(!dojo._hasResource["dijit.Menu"]){dojo._hasResource["dijit.Menu"]=true;dojo.provide("dijit.Menu");dojo.declare("dijit._MenuBase",[dijit._Widget,dijit._Templated,dijit._KeyNavContainer],{parentMenu:null,popupDelay:500,startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_404){_404.startup();});this.startupKeyNavChildren();this.inherited(arguments);},onExecute:function(){},onCancel:function(_405){},_moveToPopup:function(evt){if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled){this.focusedChild._onClick(evt);}else{var _407=this._getTopMenu();if(_407&&_407._isMenuBar){_407.focusNext();}}},onItemHover:function(item){if(this.isActive){this.focusChild(item);if(this.focusedChild.popup&&!this.focusedChild.disabled&&!this.hover_timer){this.hover_timer=setTimeout(dojo.hitch(this,"_openPopup"),this.popupDelay);}}},_onChildBlur:function(item){item._setSelected(false);dijit.popup.close(item.popup);this._stopPopupTimer();},onItemUnhover:function(item){if(this.isActive){this._stopPopupTimer();}},_stopPopupTimer:function(){if(this.hover_timer){clearTimeout(this.hover_timer);this.hover_timer=null;}},_getTopMenu:function(){for(var top=this;top.parentMenu;top=top.parentMenu){}return top;},onItemClick:function(item,evt){if(item.disabled){return false;}this.focusChild(item);if(item.popup){if(!this.is_open){this._openPopup();}}else{this.onExecute();item.onClick(evt);}},_openPopup:function(){this._stopPopupTimer();var _40e=this.focusedChild;var _40f=_40e.popup;if(_40f.isShowingNow){return;}_40f.parentMenu=this;var self=this;dijit.popup.open({parent:this,popup:_40f,around:_40e.domNode,orient:this._orient||(this.isLeftToRight()?{"TR":"TL","TL":"TR"}:{"TL":"TR","TR":"TL"}),onCancel:function(){dijit.popup.close(_40f);_40e.focus();self.currentPopup=null;},onExecute:dojo.hitch(this,"_onDescendantExecute")});this.currentPopup=_40f;if(_40f.focus){setTimeout(dojo.hitch(_40f,"focus"),0);}},onOpen:function(e){this.isShowingNow=true;},onClose:function(){this._stopPopupTimer();this.parentMenu=null;this.isShowingNow=false;this.currentPopup=null;if(this.focusedChild){this._onChildBlur(this.focusedChild);this.focusedChild=null;}},_onFocus:function(){this.isActive=true;dojo.addClass(this.domNode,"dijitMenuActive");dojo.removeClass(this.domNode,"dijitMenuPassive");this.inherited(arguments);},_onBlur:function(){this.isActive=false;dojo.removeClass(this.domNode,"dijitMenuActive");dojo.addClass(this.domNode,"dijitMenuPassive");this.onClose();this.inherited(arguments);},_onDescendantExecute:function(){this.onClose();}});dojo.declare("dijit.Menu",dijit._MenuBase,{constructor:function(){this._bindings=[];},templateString:"<table class=\"dijit dijitMenu dijitMenuPassive dijitReset dijitMenuTable\" waiRole=\"menu\" tabIndex=\"${tabIndex}\" dojoAttachEvent=\"onkeypress:_onKeyPress\">\n\t<tbody class=\"dijitReset\" dojoAttachPoint=\"containerNode\"></tbody>\n</table>\n",targetNodeIds:[],contextMenuForWindow:false,leftClickToOpen:false,_contextMenuWithMouse:false,postCreate:function(){if(this.contextMenuForWindow){this.bindDomNode(dojo.body());}else{dojo.forEach(this.targetNodeIds,this.bindDomNode,this);}var k=dojo.keys,l=this.isLeftToRight();this._openSubMenuKey=l?k.RIGHT_ARROW:k.LEFT_ARROW;this._closeSubMenuKey=l?k.LEFT_ARROW:k.RIGHT_ARROW;this.connectKeyNavHandlers([k.UP_ARROW],[k.DOWN_ARROW]);},_onKeyPress:function(evt){if(evt.ctrlKey||evt.altKey){return;}switch(evt.charOrCode){case this._openSubMenuKey:this._moveToPopup(evt);dojo.stopEvent(evt);break;case this._closeSubMenuKey:if(this.parentMenu){if(this.parentMenu._isMenuBar){this.parentMenu.focusPrev();}else{this.onCancel(false);}}else{dojo.stopEvent(evt);}break;}},_iframeContentWindow:function(_415){var win=dijit.getDocumentWindow(dijit.Menu._iframeContentDocument(_415))||dijit.Menu._iframeContentDocument(_415)["__parent__"]||(_415.name&&dojo.doc.frames[_415.name])||null;return win;},_iframeContentDocument:function(_417){var doc=_417.contentDocument||(_417.contentWindow&&_417.contentWindow.document)||(_417.name&&dojo.doc.frames[_417.name]&&dojo.doc.frames[_417.name].document)||null;return doc;},bindDomNode:function(node){node=dojo.byId(node);var win=dijit.getDocumentWindow(node.ownerDocument);if(node.tagName.toLowerCase()=="iframe"){win=this._iframeContentWindow(node);node=dojo.withGlobal(win,dojo.body);}var cn=(node==dojo.body()?dojo.doc:node);node[this.id]=this._bindings.push([dojo.connect(cn,(this.leftClickToOpen)?"onclick":"oncontextmenu",this,"_openMyself"),dojo.connect(cn,"onkeydown",this,"_contextKey"),dojo.connect(cn,"onmousedown",this,"_contextMouse")]);},unBindDomNode:function(_41c){var node=dojo.byId(_41c);if(node){var bid=node[this.id]-1,b=this._bindings[bid];dojo.forEach(b,dojo.disconnect);delete this._bindings[bid];}},_contextKey:function(e){this._contextMenuWithMouse=false;if(e.keyCode==dojo.keys.F10){dojo.stopEvent(e);if(e.shiftKey&&e.type=="keydown"){var _e={target:e.target,pageX:e.pageX,pageY:e.pageY};_e.preventDefault=_e.stopPropagation=function(){};window.setTimeout(dojo.hitch(this,function(){this._openMyself(_e);}),1);}}},_contextMouse:function(e){this._contextMenuWithMouse=true;},_openMyself:function(e){if(this.leftClickToOpen&&e.button>0){return;}dojo.stopEvent(e);var x,y;if(dojo.isSafari||this._contextMenuWithMouse){x=e.pageX;y=e.pageY;}else{var _426=dojo.coords(e.target,true);x=_426.x+10;y=_426.y+10;}var self=this;var _428=dijit.getFocus(this);function _429(){dijit.focus(_428);dijit.popup.close(self);};dijit.popup.open({popup:this,x:x,y:y,onExecute:_429,onCancel:_429,orient:this.isLeftToRight()?"L":"R"});this.focus();this._onBlur=function(){this.inherited("_onBlur",arguments);dijit.popup.close(this);};},uninitialize:function(){dojo.forEach(this.targetNodeIds,this.unBindDomNode,this);this.inherited(arguments);}});}if(!dojo._hasResource["dijit.MenuBar"]){dojo._hasResource["dijit.MenuBar"]=true;dojo.provide("dijit.MenuBar");dojo.declare("dijit.MenuBar",dijit._MenuBase,{templateString:"<div class=\"dijitMenuBar dijitMenuPassive\" dojoAttachPoint=\"containerNode\"  waiRole=\"menubar\" tabIndex=\"${tabIndex}\" dojoAttachEvent=\"onkeypress: _onKeyPress\"></div>\n",_isMenuBar:true,constructor:function(){this._orient=this.isLeftToRight()?{BL:"TL"}:{BR:"TR"};},postCreate:function(){var k=dojo.keys,l=this.isLeftToRight();this.connectKeyNavHandlers(l?[k.LEFT_ARROW]:[k.RIGHT_ARROW],l?[k.RIGHT_ARROW]:[k.LEFT_ARROW]);},focusChild:function(item){var _42d=this.focusedChild,_42e=_42d&&_42d.popup&&_42d.popup.isShowingNow;this.inherited(arguments);if(_42e&&!item.disabled){this._openPopup();}},_onKeyPress:function(evt){if(evt.ctrlKey||evt.altKey){return;}switch(evt.charOrCode){case dojo.keys.DOWN_ARROW:this._moveToPopup(evt);dojo.stopEvent(evt);}}});}if(!dojo._hasResource["dijit.MenuBarItem"]){dojo._hasResource["dijit.MenuBarItem"]=true;dojo.provide("dijit.MenuBarItem");dojo.declare("dijit._MenuBarItemMixin",null,{templateString:"<div class=\"dijitReset dijitInline dijitMenuItem dijitMenuItemLabel\" dojoAttachPoint=\"focusNode\" waiRole=\"menuitem\" tabIndex=\"-1\"'\n\t\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<span dojoAttachPoint=\"containerNode\"></span>\n</div>\n",attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{label:{node:"containerNode",type:"innerHTML"}})});dojo.declare("dijit.MenuBarItem",[dijit.MenuItem,dijit._MenuBarItemMixin],{});}if(!dojo._hasResource["dijit.PopupMenuBarItem"]){dojo._hasResource["dijit.PopupMenuBarItem"]=true;dojo.provide("dijit.PopupMenuBarItem");dojo.declare("dijit.PopupMenuBarItem",[dijit.PopupMenuItem,dijit._MenuBarItemMixin],{});}if(!dojo._hasResource["dojo.regexp"]){dojo._hasResource["dojo.regexp"]=true;dojo.provide("dojo.regexp");dojo.regexp.escapeString=function(str,_431){return str.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(ch){if(_431&&_431.indexOf(ch)!=-1){return ch;}return "\\"+ch;});};dojo.regexp.buildGroupRE=function(arr,re,_435){if(!(arr instanceof Array)){return re(arr);}var b=[];for(var i=0;i<arr.length;i++){b.push(re(arr[i]));}return dojo.regexp.group(b.join("|"),_435);};dojo.regexp.group=function(_438,_439){return "("+(_439?"?:":"")+_438+")";};}if(!dojo._hasResource["dojo.number"]){dojo._hasResource["dojo.number"]=true;dojo.provide("dojo.number");dojo.number.format=function(_43a,_43b){_43b=dojo.mixin({},_43b||{});var _43c=dojo.i18n.normalizeLocale(_43b.locale);var _43d=dojo.i18n.getLocalization("dojo.cldr","number",_43c);_43b.customs=_43d;var _43e=_43b.pattern||_43d[(_43b.type||"decimal")+"Format"];if(isNaN(_43a)||Math.abs(_43a)==Infinity){return null;}return dojo.number._applyPattern(_43a,_43e,_43b);};dojo.number._numberPatternRE=/[#0,]*[#0](?:\.0*#*)?/;dojo.number._applyPattern=function(_43f,_440,_441){_441=_441||{};var _442=_441.customs.group;var _443=_441.customs.decimal;var _444=_440.split(";");var _445=_444[0];_440=_444[(_43f<0)?1:0]||("-"+_445);if(_440.indexOf("%")!=-1){_43f*=100;}else{if(_440.indexOf("‰")!=-1){_43f*=1000;}else{if(_440.indexOf("¤")!=-1){_442=_441.customs.currencyGroup||_442;_443=_441.customs.currencyDecimal||_443;_440=_440.replace(/\u00a4{1,3}/,function(_446){var prop=["symbol","currency","displayName"][_446.length-1];return _441[prop]||_441.currency||"";});}else{if(_440.indexOf("E")!=-1){throw new Error("exponential notation not supported");}}}}var _448=dojo.number._numberPatternRE;var _449=_445.match(_448);if(!_449){throw new Error("unable to find a number expression in pattern: "+_440);}if(_441.fractional===false){_441.places=0;}return _440.replace(_448,dojo.number._formatAbsolute(_43f,_449[0],{decimal:_443,group:_442,places:_441.places,round:_441.round}));};dojo.number.round=function(_44a,_44b,_44c){var _44d=10/(_44c||10);return (_44d*+_44a).toFixed(_44b)/_44d;};if((0.9).toFixed()==0){(function(){var _44e=dojo.number.round;dojo.number.round=function(v,p,m){var d=Math.pow(10,-p||0),a=Math.abs(v);if(!v||a>=d||a*Math.pow(10,p+1)<5){d=0;}return _44e(v,p,m)+(v>0?d:-d);};})();}dojo.number._formatAbsolute=function(_454,_455,_456){_456=_456||{};if(_456.places===true){_456.places=0;}if(_456.places===Infinity){_456.places=6;}var _457=_455.split(".");var _458=(_456.places>=0)?_456.places:(_457[1]&&_457[1].length)||0;if(!(_456.round<0)){_454=dojo.number.round(_454,_458,_456.round);}var _459=String(Math.abs(_454)).split(".");var _45a=_459[1]||"";if(_456.places){var _45b=dojo.isString(_456.places)&&_456.places.indexOf(",");if(_45b){_456.places=_456.places.substring(_45b+1);}_459[1]=dojo.string.pad(_45a.substr(0,_456.places),_456.places,"0",true);}else{if(_457[1]&&_456.places!==0){var pad=_457[1].lastIndexOf("0")+1;if(pad>_45a.length){_459[1]=dojo.string.pad(_45a,pad,"0",true);}var _45d=_457[1].length;if(_45d<_45a.length){_459[1]=_45a.substr(0,_45d);}}else{if(_459[1]){_459.pop();}}}var _45e=_457[0].replace(",","");pad=_45e.indexOf("0");if(pad!=-1){pad=_45e.length-pad;if(pad>_459[0].length){_459[0]=dojo.string.pad(_459[0],pad);}if(_45e.indexOf("#")==-1){_459[0]=_459[0].substr(_459[0].length-pad);}}var _45f=_457[0].lastIndexOf(",");var _460,_461;if(_45f!=-1){_460=_457[0].length-_45f-1;var _462=_457[0].substr(0,_45f);_45f=_462.lastIndexOf(",");if(_45f!=-1){_461=_462.length-_45f-1;}}var _463=[];for(var _464=_459[0];_464;){var off=_464.length-_460;_463.push((off>0)?_464.substr(off):_464);_464=(off>0)?_464.slice(0,off):"";if(_461){_460=_461;delete _461;}}_459[0]=_463.reverse().join(_456.group||",");return _459.join(_456.decimal||".");};dojo.number.regexp=function(_466){return dojo.number._parseInfo(_466).regexp;};dojo.number._parseInfo=function(_467){_467=_467||{};var _468=dojo.i18n.normalizeLocale(_467.locale);var _469=dojo.i18n.getLocalization("dojo.cldr","number",_468);var _46a=_467.pattern||_469[(_467.type||"decimal")+"Format"];var _46b=_469.group;var _46c=_469.decimal;var _46d=1;if(_46a.indexOf("%")!=-1){_46d/=100;}else{if(_46a.indexOf("‰")!=-1){_46d/=1000;}else{var _46e=_46a.indexOf("¤")!=-1;if(_46e){_46b=_469.currencyGroup||_46b;_46c=_469.currencyDecimal||_46c;}}}var _46f=_46a.split(";");if(_46f.length==1){_46f.push("-"+_46f[0]);}var re=dojo.regexp.buildGroupRE(_46f,function(_471){_471="(?:"+dojo.regexp.escapeString(_471,".")+")";return _471.replace(dojo.number._numberPatternRE,function(_472){var _473={signed:false,separator:_467.strict?_46b:[_46b,""],fractional:_467.fractional,decimal:_46c,exponent:false};var _474=_472.split(".");var _475=_467.places;if(_474.length==1||_475===0){_473.fractional=false;}else{if(_475===undefined){_475=_467.pattern?_474[1].lastIndexOf("0")+1:Infinity;}if(_475&&_467.fractional==undefined){_473.fractional=true;}if(!_467.places&&(_475<_474[1].length)){_475+=","+_474[1].length;}_473.places=_475;}var _476=_474[0].split(",");if(_476.length>1){_473.groupSize=_476.pop().length;if(_476.length>1){_473.groupSize2=_476.pop().length;}}return "("+dojo.number._realNumberRegexp(_473)+")";});},true);if(_46e){re=re.replace(/([\s\xa0]*)(\u00a4{1,3})([\s\xa0]*)/g,function(_477,_478,_479,_47a){var prop=["symbol","currency","displayName"][_479.length-1];var _47c=dojo.regexp.escapeString(_467[prop]||_467.currency||"");_478=_478?"[\\s\\xa0]":"";_47a=_47a?"[\\s\\xa0]":"";if(!_467.strict){if(_478){_478+="*";}if(_47a){_47a+="*";}return "(?:"+_478+_47c+_47a+")?";}return _478+_47c+_47a;});}return {regexp:re.replace(/[\xa0 ]/g,"[\\s\\xa0]"),group:_46b,decimal:_46c,factor:_46d};};dojo.number.parse=function(_47d,_47e){var info=dojo.number._parseInfo(_47e);var _480=(new RegExp("^"+info.regexp+"$")).exec(_47d);if(!_480){return NaN;}var _481=_480[1];if(!_480[1]){if(!_480[2]){return NaN;}_481=_480[2];info.factor*=-1;}_481=_481.replace(new RegExp("["+info.group+"\\s\\xa0"+"]","g"),"").replace(info.decimal,".");return _481*info.factor;};dojo.number._realNumberRegexp=function(_482){_482=_482||{};if(!("places" in _482)){_482.places=Infinity;}if(typeof _482.decimal!="string"){_482.decimal=".";}if(!("fractional" in _482)||/^0/.test(_482.places)){_482.fractional=[true,false];}if(!("exponent" in _482)){_482.exponent=[true,false];}if(!("eSigned" in _482)){_482.eSigned=[true,false];}var _483=dojo.number._integerRegexp(_482);var _484=dojo.regexp.buildGroupRE(_482.fractional,function(q){var re="";if(q&&(_482.places!==0)){re="\\"+_482.decimal;if(_482.places==Infinity){re="(?:"+re+"\\d+)?";}else{re+="\\d{"+_482.places+"}";}}return re;},true);var _487=dojo.regexp.buildGroupRE(_482.exponent,function(q){if(q){return "([eE]"+dojo.number._integerRegexp({signed:_482.eSigned})+")";}return "";});var _489=_483+_484;if(_484){_489="(?:(?:"+_489+")|(?:"+_484+"))";}return _489+_487;};dojo.number._integerRegexp=function(_48a){_48a=_48a||{};if(!("signed" in _48a)){_48a.signed=[true,false];}if(!("separator" in _48a)){_48a.separator="";}else{if(!("groupSize" in _48a)){_48a.groupSize=3;}}var _48b=dojo.regexp.buildGroupRE(_48a.signed,function(q){return q?"[-+]":"";},true);var _48d=dojo.regexp.buildGroupRE(_48a.separator,function(sep){if(!sep){return "(?:\\d+)";}sep=dojo.regexp.escapeString(sep);if(sep==" "){sep="\\s";}else{if(sep==" "){sep="\\s\\xa0";}}var grp=_48a.groupSize,grp2=_48a.groupSize2;if(grp2){var _491="(?:0|[1-9]\\d{0,"+(grp2-1)+"}(?:["+sep+"]\\d{"+grp2+"})*["+sep+"]\\d{"+grp+"})";return ((grp-grp2)>0)?"(?:"+_491+"|(?:0|[1-9]\\d{0,"+(grp-1)+"}))":_491;}return "(?:0|[1-9]\\d{0,"+(grp-1)+"}(?:["+sep+"]\\d{"+grp+"})*)";},true);return _48b+_48d;};}if(!dojo._hasResource["dijit.ProgressBar"]){dojo._hasResource["dijit.ProgressBar"]=true;dojo.provide("dijit.ProgressBar");dojo.declare("dijit.ProgressBar",[dijit._Widget,dijit._Templated],{progress:"0",maximum:100,places:0,indeterminate:false,templateString:"<div class=\"dijitProgressBar dijitProgressBarEmpty\"\n\t><div waiRole=\"progressbar\" tabindex=\"0\" dojoAttachPoint=\"internalProgress\" class=\"dijitProgressBarFull\"\n\t\t><div class=\"dijitProgressBarTile\"></div\n\t\t><span style=\"visibility:hidden\">&nbsp;</span\n\t></div\n\t><div dojoAttachPoint=\"label\" class=\"dijitProgressBarLabel\" id=\"${id}_label\">&nbsp;</div\n\t><img dojoAttachPoint=\"indeterminateHighContrastImage\" class=\"dijitProgressBarIndeterminateHighContrastImage\"\n\t></img\n></div>\n",_indeterminateHighContrastImagePath:dojo.moduleUrl("dijit","themes/a11y/indeterminate_progress.gif"),postCreate:function(){this.inherited(arguments);this.indeterminateHighContrastImage.setAttribute("src",this._indeterminateHighContrastImagePath);this.update();},update:function(_492){dojo.mixin(this,_492||{});var tip=this.internalProgress;var _494=1,_495;if(this.indeterminate){_495="addClass";dijit.removeWaiState(tip,"valuenow");dijit.removeWaiState(tip,"valuemin");dijit.removeWaiState(tip,"valuemax");}else{_495="removeClass";if(String(this.progress).indexOf("%")!=-1){_494=Math.min(parseFloat(this.progress)/100,1);this.progress=_494*this.maximum;}else{this.progress=Math.min(this.progress,this.maximum);_494=this.progress/this.maximum;}var text=this.report(_494);this.label.firstChild.nodeValue=text;dijit.setWaiState(tip,"describedby",this.label.id);dijit.setWaiState(tip,"valuenow",this.progress);dijit.setWaiState(tip,"valuemin",0);dijit.setWaiState(tip,"valuemax",this.maximum);}dojo[_495](this.domNode,"dijitProgressBarIndeterminate");tip.style.width=(_494*100)+"%";this.onChange();},report:function(_497){return dojo.number.format(_497,{type:"percent",places:this.places,locale:this.lang});},onChange:function(){}});}if(!dojo._hasResource["dijit.TitlePane"]){dojo._hasResource["dijit.TitlePane"]=true;dojo.provide("dijit.TitlePane");dojo.declare("dijit.TitlePane",[dijit.layout.ContentPane,dijit._Templated],{title:"",open:true,duration:dijit.defaultDuration,baseClass:"dijitTitlePane",templateString:"<div class=\"${baseClass}\">\n\t<div dojoAttachEvent=\"onclick:toggle, onkeypress:_onTitleKey, onfocus:_handleFocus, onblur:_handleFocus, onmouseenter:_onTitleEnter, onmouseleave:_onTitleLeave\" tabindex=\"0\"\n\t\t\twaiRole=\"button\" class=\"dijitTitlePaneTitle\" dojoAttachPoint=\"titleBarNode,focusNode\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" dojoAttachPoint=\"arrowNode\" class=\"dijitArrowNode\" waiRole=\"presentation\"\n\t\t><span dojoAttachPoint=\"arrowNodeInner\" class=\"dijitArrowNodeInner\"></span\n\t\t><span dojoAttachPoint=\"titleNode\" class=\"dijitTitlePaneTextNode\"></span>\n\t</div>\n\t<div class=\"dijitTitlePaneContentOuter\" dojoAttachPoint=\"hideNode\">\n\t\t<div class=\"dijitReset\" dojoAttachPoint=\"wipeNode\">\n\t\t\t<div class=\"dijitTitlePaneContentInner\" dojoAttachPoint=\"containerNode\" waiRole=\"region\" tabindex=\"-1\">\n\t\t\t\t<!-- nested divs because wipeIn()/wipeOut() doesn't work right on node w/padding etc.  Put padding on inner div. -->\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n",attributeMap:dojo.delegate(dijit.layout.ContentPane.prototype.attributeMap,{title:{node:"titleNode",type:"innerHTML"}}),postCreate:function(){if(!this.open){this.hideNode.style.display=this.wipeNode.style.display="none";}this._setCss();dojo.setSelectable(this.titleNode,false);dijit.setWaiState(this.containerNode,"labelledby",this.titleNode.id);dijit.setWaiState(this.focusNode,"haspopup","true");var _498=this.hideNode,_499=this.wipeNode;this._wipeIn=dojo.fx.wipeIn({node:this.wipeNode,duration:this.duration,beforeBegin:function(){_498.style.display="";}});this._wipeOut=dojo.fx.wipeOut({node:this.wipeNode,duration:this.duration,onEnd:function(){_498.style.display="none";}});this.inherited(arguments);},_setOpenAttr:function(open){if(this.open!==open){this.toggle();}},_setContentAttr:function(_49b){if(!this.open||!this._wipeOut||this._wipeOut.status()=="playing"){this.inherited(arguments);}else{if(this._wipeIn&&this._wipeIn.status()=="playing"){this._wipeIn.stop();}dojo.marginBox(this.wipeNode,{h:dojo.marginBox(this.wipeNode).h});this.inherited(arguments);if(this._wipeIn){this._wipeIn.play();}else{this.hideNode.style.display="";}}},toggle:function(){dojo.forEach([this._wipeIn,this._wipeOut],function(_49c){if(_49c&&_49c.status()=="playing"){_49c.stop();}});var anim=this[this.open?"_wipeOut":"_wipeIn"];if(anim){anim.play();}else{this.hideNode.style.display=this.open?"":"none";}this.open=!this.open;this._onShow();this._setCss();},_setCss:function(){var _49e=["dijitClosed","dijitOpen"];var _49f=this.open;var node=this.titleBarNode||this.focusNode;dojo.removeClass(node,_49e[!_49f+0]);node.className+=" "+_49e[_49f+0];this.arrowNodeInner.innerHTML=this.open?"-":"+";},_onTitleKey:function(e){if(e.charOrCode==dojo.keys.ENTER||e.charOrCode==" "){this.toggle();}else{if(e.charOrCode==dojo.keys.DOWN_ARROW&&this.open){this.containerNode.focus();e.preventDefault();}}},_onTitleEnter:function(){dojo.addClass(this.focusNode,"dijitTitlePaneTitle-hover");},_onTitleLeave:function(){dojo.removeClass(this.focusNode,"dijitTitlePaneTitle-hover");},_handleFocus:function(e){dojo[(e.type=="focus"?"addClass":"removeClass")](this.focusNode,this.baseClass+"Focused");},setTitle:function(_4a3){dojo.deprecated("dijit.TitlePane.setTitle() is deprecated.  Use attr('title', ...) instead.","","2.0");this.titleNode.innerHTML=_4a3;}});}if(!dojo._hasResource["dijit.Tooltip"]){dojo._hasResource["dijit.Tooltip"]=true;dojo.provide("dijit.Tooltip");dojo.declare("dijit._MasterTooltip",[dijit._Widget,dijit._Templated],{duration:dijit.defaultDuration,templateString:"<div class=\"dijitTooltip dijitTooltipLeft\" id=\"dojoTooltip\">\n\t<div class=\"dijitTooltipContainer dijitTooltipContents\" dojoAttachPoint=\"containerNode\" waiRole='alert'></div>\n\t<div class=\"dijitTooltipConnector\"></div>\n</div>\n",postCreate:function(){dojo.body().appendChild(this.domNode);this.bgIframe=new dijit.BackgroundIframe(this.domNode);this.fadeIn=dojo.fadeIn({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,"_onShow")});this.fadeOut=dojo.fadeOut({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,"_onHide")});},show:function(_4a4,_4a5,_4a6){if(this.aroundNode&&this.aroundNode===_4a5){return;}if(this.fadeOut.status()=="playing"){this._onDeck=arguments;return;}this.containerNode.innerHTML=_4a4;this.domNode.style.top=(this.domNode.offsetTop+1)+"px";var _4a7={};var ltr=this.isLeftToRight();dojo.forEach((_4a6&&_4a6.length)?_4a6:dijit.Tooltip.defaultPosition,function(pos){switch(pos){case "after":_4a7[ltr?"BR":"BL"]=ltr?"BL":"BR";break;case "before":_4a7[ltr?"BL":"BR"]=ltr?"BR":"BL";break;case "below":_4a7[ltr?"BL":"BR"]=ltr?"TL":"TR";_4a7[ltr?"BR":"BL"]=ltr?"TR":"TL";break;case "above":default:_4a7[ltr?"TL":"TR"]=ltr?"BL":"BR";_4a7[ltr?"TR":"TL"]=ltr?"BR":"BL";break;}});var pos=dijit.placeOnScreenAroundElement(this.domNode,_4a5,_4a7,dojo.hitch(this,"orient"));dojo.style(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=true;this.aroundNode=_4a5;},orient:function(node,_4ac,_4ad){node.className="dijitTooltip "+{"BL-TL":"dijitTooltipBelow dijitTooltipABLeft","TL-BL":"dijitTooltipAbove dijitTooltipABLeft","BR-TR":"dijitTooltipBelow dijitTooltipABRight","TR-BR":"dijitTooltipAbove dijitTooltipABRight","BR-BL":"dijitTooltipRight","BL-BR":"dijitTooltipLeft"}[_4ac+"-"+_4ad];},_onShow:function(){if(dojo.isIE){this.domNode.style.filter="";}},hide:function(_4ae){if(this._onDeck&&this._onDeck[1]==_4ae){this._onDeck=null;}else{if(this.aroundNode===_4ae){this.fadeIn.stop();this.isShowingNow=false;this.aroundNode=null;this.fadeOut.play();}else{}}},_onHide:function(){this.domNode.style.cssText="";if(this._onDeck){this.show.apply(this,this._onDeck);this._onDeck=null;}}});dijit.showTooltip=function(_4af,_4b0,_4b1){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.show(_4af,_4b0,_4b1);};dijit.hideTooltip=function(_4b2){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.hide(_4b2);};dojo.declare("dijit.Tooltip",dijit._Widget,{label:"",showDelay:400,connectId:[],position:[],_setConnectIdAttr:function(ids){this._connectNodes=[];this.connectId=dojo.isArrayLike(ids)?ids:[ids];dojo.forEach(this.connectId,function(id){var node=dojo.byId(id);if(node){this._connectNodes.push(node);dojo.forEach(["onMouseEnter","onMouseLeave","onFocus","onBlur"],function(_4b6){this.connect(node,_4b6.toLowerCase(),"_"+_4b6);},this);if(dojo.isIE){node.style.zoom=1;}}},this);},postCreate:function(){dojo.addClass(this.domNode,"dijitTooltipData");},_onMouseEnter:function(e){this._onHover(e);},_onMouseLeave:function(e){this._onUnHover(e);},_onFocus:function(e){this._focus=true;this._onHover(e);this.inherited(arguments);},_onBlur:function(e){this._focus=false;this._onUnHover(e);this.inherited(arguments);},_onHover:function(e){if(!this._showTimer){var _4bc=e.target;this._showTimer=setTimeout(dojo.hitch(this,function(){this.open(_4bc);}),this.showDelay);}},_onUnHover:function(e){if(this._focus){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}this.close();},open:function(_4be){_4be=_4be||this._connectNodes[0];if(!_4be){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}dijit.showTooltip(this.label||this.domNode.innerHTML,_4be,this.position);this._connectNode=_4be;},close:function(){if(this._connectNode){dijit.hideTooltip(this._connectNode);delete this._connectNode;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}},uninitialize:function(){this.close();}});dijit.Tooltip.defaultPosition=["after","before"];}if(!dojo._hasResource["dojo.cookie"]){dojo._hasResource["dojo.cookie"]=true;dojo.provide("dojo.cookie");dojo.cookie=function(name,_4c0,_4c1){var c=document.cookie;if(arguments.length==1){var _4c3=c.match(new RegExp("(?:^|; )"+dojo.regexp.escapeString(name)+"=([^;]*)"));return _4c3?decodeURIComponent(_4c3[1]):undefined;}else{_4c1=_4c1||{};var exp=_4c1.expires;if(typeof exp=="number"){var d=new Date();d.setTime(d.getTime()+exp*24*60*60*1000);exp=_4c1.expires=d;}if(exp&&exp.toUTCString){_4c1.expires=exp.toUTCString();}_4c0=encodeURIComponent(_4c0);var _4c6=name+"="+_4c0,_4c7;for(_4c7 in _4c1){_4c6+="; "+_4c7;var _4c8=_4c1[_4c7];if(_4c8!==true){_4c6+="="+_4c8;}}document.cookie=_4c6;}};dojo.cookie.isSupported=function(){if(!("cookieEnabled" in navigator)){this("__djCookieTest__","CookiesAllowed");navigator.cookieEnabled=this("__djCookieTest__")=="CookiesAllowed";if(navigator.cookieEnabled){this("__djCookieTest__","",{expires:-1});}}return navigator.cookieEnabled;};}if(!dojo._hasResource["dijit.tree.TreeStoreModel"]){dojo._hasResource["dijit.tree.TreeStoreModel"]=true;dojo.provide("dijit.tree.TreeStoreModel");dojo.declare("dijit.tree.TreeStoreModel",null,{store:null,childrenAttrs:["children"],labelAttr:"",root:null,query:null,constructor:function(args){dojo.mixin(this,args);this.connects=[];var _4ca=this.store;if(!_4ca.getFeatures()["dojo.data.api.Identity"]){throw new Error("dijit.Tree: store must support dojo.data.Identity");}if(_4ca.getFeatures()["dojo.data.api.Notification"]){this.connects=this.connects.concat([dojo.connect(_4ca,"onNew",this,"_onNewItem"),dojo.connect(_4ca,"onDelete",this,"_onDeleteItem"),dojo.connect(_4ca,"onSet",this,"_onSetItem")]);}},destroy:function(){dojo.forEach(this.connects,dojo.disconnect);},getRoot:function(_4cb,_4cc){if(this.root){_4cb(this.root);}else{this.store.fetch({query:this.query,onComplete:dojo.hitch(this,function(_4cd){if(_4cd.length!=1){throw new Error(this.declaredClass+": query "+dojo.toJson(this.query)+" returned "+_4cd.length+" items, but must return exactly one item");}this.root=_4cd[0];_4cb(this.root);}),onError:_4cc});}},mayHaveChildren:function(item){return dojo.some(this.childrenAttrs,function(attr){return this.store.hasAttribute(item,attr);},this);},getChildren:function(_4d0,_4d1,_4d2){var _4d3=this.store;var _4d4=[];for(var i=0;i<this.childrenAttrs.length;i++){var vals=_4d3.getValues(_4d0,this.childrenAttrs[i]);_4d4=_4d4.concat(vals);}var _4d7=0;dojo.forEach(_4d4,function(item){if(!_4d3.isItemLoaded(item)){_4d7++;}});if(_4d7==0){_4d1(_4d4);}else{var _4d9=function _4d9(item){if(--_4d7==0){_4d1(_4d4);}};dojo.forEach(_4d4,function(item){if(!_4d3.isItemLoaded(item)){_4d3.loadItem({item:item,onItem:_4d9,onError:_4d2});}});}},getIdentity:function(item){return this.store.getIdentity(item);},getLabel:function(item){if(this.labelAttr){return this.store.getValue(item,this.labelAttr);}else{return this.store.getLabel(item);}},newItem:function(args,_4df){var _4e0={parent:_4df,attribute:this.childrenAttrs[0]};return this.store.newItem(args,_4e0);},pasteItem:function(_4e1,_4e2,_4e3,_4e4,_4e5){var _4e6=this.store,_4e7=this.childrenAttrs[0];if(_4e2){dojo.forEach(this.childrenAttrs,function(attr){if(_4e6.containsValue(_4e2,attr,_4e1)){if(!_4e4){var _4e9=dojo.filter(_4e6.getValues(_4e2,attr),function(x){return x!=_4e1;});_4e6.setValues(_4e2,attr,_4e9);}_4e7=attr;}});}if(_4e3){if(typeof _4e5=="number"){var _4eb=_4e6.getValues(_4e3,_4e7);_4eb.splice(_4e5,0,_4e1);_4e6.setValues(_4e3,_4e7,_4eb);}else{_4e6.setValues(_4e3,_4e7,_4e6.getValues(_4e3,_4e7).concat(_4e1));}}},onChange:function(item){},onChildrenChange:function(_4ed,_4ee){},onDelete:function(_4ef,_4f0){},_onNewItem:function(item,_4f2){if(!_4f2){return;}this.getChildren(_4f2.item,dojo.hitch(this,function(_4f3){this.onChildrenChange(_4f2.item,_4f3);}));},_onDeleteItem:function(item){this.onDelete(item);},_onSetItem:function(item,_4f6,_4f7,_4f8){if(dojo.indexOf(this.childrenAttrs,_4f6)!=-1){this.getChildren(item,dojo.hitch(this,function(_4f9){this.onChildrenChange(item,_4f9);}));}else{this.onChange(item);}}});}if(!dojo._hasResource["dijit.tree.ForestStoreModel"]){dojo._hasResource["dijit.tree.ForestStoreModel"]=true;dojo.provide("dijit.tree.ForestStoreModel");dojo.declare("dijit.tree.ForestStoreModel",dijit.tree.TreeStoreModel,{rootId:"$root$",rootLabel:"ROOT",query:null,constructor:function(_4fa){this.root={store:this,root:true,id:_4fa.rootId,label:_4fa.rootLabel,children:_4fa.rootChildren};},mayHaveChildren:function(item){return item===this.root||this.inherited(arguments);},getChildren:function(_4fc,_4fd,_4fe){if(_4fc===this.root){if(this.root.children){_4fd(this.root.children);}else{this.store.fetch({query:this.query,onComplete:dojo.hitch(this,function(_4ff){this.root.children=_4ff;_4fd(_4ff);}),onError:_4fe});}}else{this.inherited(arguments);}},getIdentity:function(item){return (item===this.root)?this.root.id:this.inherited(arguments);},getLabel:function(item){return (item===this.root)?this.root.label:this.inherited(arguments);},newItem:function(args,_503){if(_503===this.root){this.onNewRootItem(args);return this.store.newItem(args);}else{return this.inherited(arguments);}},onNewRootItem:function(args){},pasteItem:function(_505,_506,_507,_508,_509){if(_506===this.root){if(!_508){this.onLeaveRoot(_505);}}dijit.tree.TreeStoreModel.prototype.pasteItem.call(this,_505,_506===this.root?null:_506,_507===this.root?null:_507,_508,_509);if(_507===this.root){this.onAddToRoot(_505);}},onAddToRoot:function(item){},onLeaveRoot:function(item){},_requeryTop:function(){var _50c=this.root.children||[];this.store.fetch({query:this.query,onComplete:dojo.hitch(this,function(_50d){this.root.children=_50d;if(_50c.length!=_50d.length||dojo.some(_50c,function(item,idx){return _50d[idx]!=item;})){this.onChildrenChange(this.root,_50d);}})});},_onNewItem:function(item,_511){this._requeryTop();this.inherited(arguments);},_onDeleteItem:function(item){if(dojo.indexOf(this.root.children,item)!=-1){this._requeryTop();}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.Tree"]){dojo._hasResource["dijit.Tree"]=true;dojo.provide("dijit.Tree");dojo.declare("dijit._TreeNode",[dijit._Widget,dijit._Templated,dijit._Container,dijit._Contained],{item:null,isTreeNode:true,label:"",isExpandable:null,isExpanded:false,state:"UNCHECKED",templateString:"<div class=\"dijitTreeNode\" waiRole=\"presentation\"\n\t><div dojoAttachPoint=\"rowNode\" class=\"dijitTreeRow\" waiRole=\"presentation\" dojoAttachEvent=\"onmouseenter:_onMouseEnter, onmouseleave:_onMouseLeave\"\n\t\t><img src=\"${_blankGif}\" alt=\"\" dojoAttachPoint=\"expandoNode\" class=\"dijitTreeExpando\" waiRole=\"presentation\"\n\t\t><span dojoAttachPoint=\"expandoNodeText\" class=\"dijitExpandoText\" waiRole=\"presentation\"\n\t\t></span\n\t\t><span dojoAttachPoint=\"contentNode\"\n\t\t\tclass=\"dijitTreeContent\" waiRole=\"presentation\">\n\t\t\t<img src=\"${_blankGif}\" alt=\"\" dojoAttachPoint=\"iconNode\" class=\"dijitTreeIcon\" waiRole=\"presentation\"\n\t\t\t><span dojoAttachPoint=\"labelNode\" class=\"dijitTreeLabel\" wairole=\"treeitem\" tabindex=\"-1\" waiState=\"selected-false\" dojoAttachEvent=\"onfocus:_onLabelFocus, onblur:_onLabelBlur\"></span>\n\t\t</span\n\t></div>\n\t<div dojoAttachPoint=\"containerNode\" class=\"dijitTreeContainer\" waiRole=\"presentation\" style=\"display: none;\"></div>\n</div>\n",postCreate:function(){this.setLabelNode(this.label);this._setExpando();this._updateItemClasses(this.item);if(this.isExpandable){dijit.setWaiState(this.labelNode,"expanded",this.isExpanded);if(this==this.tree.rootNode){dijit.setWaitState(this.tree.domNode,"expanded",this.isExpanded);}}},_setIndentAttr:function(_513){this.indent=_513;var _514=(Math.max(_513,0)*19)+"px";dojo.style(this.domNode,"backgroundPosition",_514+" 0px");dojo.style(this.rowNode,dojo._isBodyLtr()?"paddingLeft":"paddingRight",_514);dojo.forEach(this.getChildren(),function(_515){_515.attr("indent",_513+1);});},markProcessing:function(){this.state="LOADING";this._setExpando(true);},unmarkProcessing:function(){this._setExpando(false);},_updateItemClasses:function(item){var tree=this.tree,_518=tree.model;if(tree._v10Compat&&item===_518.root){item=null;}if(this._iconClass){dojo.removeClass(this.iconNode,this._iconClass);}this._iconClass=tree.getIconClass(item,this.isExpanded);if(this._iconClass){dojo.addClass(this.iconNode,this._iconClass);}dojo.style(this.iconNode,tree.getIconStyle(item,this.isExpanded)||{});if(this._labelClass){dojo.removeClass(this.labelNode,this._labelClass);}this._labelClass=tree.getLabelClass(item,this.isExpanded);if(this._labelClass){dojo.addClass(this.labelNode,this._labelClass);}dojo.style(this.labelNode,tree.getLabelStyle(item,this.isExpanded)||{});},_updateLayout:function(){var _519=this.getParent();if(!_519||_519.rowNode.style.display=="none"){dojo.addClass(this.domNode,"dijitTreeIsRoot");}else{dojo.toggleClass(this.domNode,"dijitTreeIsLast",!this.getNextSibling());}},_setExpando:function(_51a){var _51b=["dijitTreeExpandoLoading","dijitTreeExpandoOpened","dijitTreeExpandoClosed","dijitTreeExpandoLeaf"];var _51c=["*","-","+","*"];var idx=_51a?0:(this.isExpandable?(this.isExpanded?1:2):3);dojo.forEach(_51b,function(s){dojo.removeClass(this.expandoNode,s);},this);dojo.addClass(this.expandoNode,_51b[idx]);this.expandoNodeText.innerHTML=_51c[idx];},expand:function(){if(this.isExpanded){return;}this._wipeOut&&this._wipeOut.stop();this.isExpanded=true;dijit.setWaiState(this.labelNode,"expanded","true");dijit.setWaiRole(this.containerNode,"group");dojo.addClass(this.contentNode,"dijitTreeContentExpanded");this._setExpando();this._updateItemClasses(this.item);if(this==this.tree.rootNode){dijit.setWaiState(this.tree.domNode,"expanded","true");}if(!this._wipeIn){this._wipeIn=dojo.fx.wipeIn({node:this.containerNode,duration:dijit.defaultDuration});}this._wipeIn.play();},collapse:function(){if(!this.isExpanded){return;}this._wipeIn&&this._wipeIn.stop();this.isExpanded=false;dijit.setWaiState(this.labelNode,"expanded","false");if(this==this.tree.rootNode){dijit.setWaiState(this.tree.domNode,"expanded","false");}dojo.removeClass(this.contentNode,"dijitTreeContentExpanded");this._setExpando();this._updateItemClasses(this.item);if(!this._wipeOut){this._wipeOut=dojo.fx.wipeOut({node:this.containerNode,duration:dijit.defaultDuration});}this._wipeOut.play();},setLabelNode:function(_51f){this.labelNode.innerHTML="";this.labelNode.appendChild(dojo.doc.createTextNode(_51f));},indent:0,setChildItems:function(_520){var tree=this.tree,_522=tree.model;this.getChildren().forEach(function(_523){dijit._Container.prototype.removeChild.call(this,_523);},this);this.state="LOADED";if(_520&&_520.length>0){this.isExpandable=true;dojo.forEach(_520,function(item){var id=_522.getIdentity(item),_526=tree._itemNodeMap[id],node=(_526&&!_526.getParent())?_526:this.tree._createTreeNode({item:item,tree:tree,isExpandable:_522.mayHaveChildren(item),label:tree.getLabel(item),indent:this.indent+1});if(_526){_526.attr("indent",this.indent+1);}this.addChild(node);tree._itemNodeMap[id]=node;if(this.tree._state(item)){tree._expandNode(node);}},this);dojo.forEach(this.getChildren(),function(_528,idx){_528._updateLayout();});}else{this.isExpandable=false;}if(this._setExpando){this._setExpando(false);}if(this==tree.rootNode){var fc=this.tree.showRoot?this:this.getChildren()[0];if(fc){fc.setSelected(true);tree.lastFocused=fc;}else{tree.domNode.setAttribute("tabIndex","0");}}},removeChild:function(node){this.inherited(arguments);var _52c=this.getChildren();if(_52c.length==0){this.isExpandable=false;this.collapse();}dojo.forEach(_52c,function(_52d){_52d._updateLayout();});},makeExpandable:function(){this.isExpandable=true;this._setExpando(false);},_onLabelFocus:function(evt){dojo.addClass(this.labelNode,"dijitTreeLabelFocused");this.tree._onNodeFocus(this);},_onLabelBlur:function(evt){dojo.removeClass(this.labelNode,"dijitTreeLabelFocused");},setSelected:function(_530){var _531=this.labelNode;_531.setAttribute("tabIndex",_530?"0":"-1");dijit.setWaiState(_531,"selected",_530);dojo.toggleClass(this.rowNode,"dijitTreeNodeSelected",_530);},_onMouseEnter:function(evt){dojo.addClass(this.rowNode,"dijitTreeNodeHover");this.tree._onNodeMouseEnter(this,evt);},_onMouseLeave:function(evt){dojo.removeClass(this.rowNode,"dijitTreeNodeHover");this.tree._onNodeMouseLeave(this,evt);}});dojo.declare("dijit.Tree",[dijit._Widget,dijit._Templated],{store:null,model:null,query:null,label:"",showRoot:true,childrenAttr:["children"],openOnClick:false,openOnDblClick:false,templateString:"<div class=\"dijitTreeContainer\" waiRole=\"tree\"\n\tdojoAttachEvent=\"onclick:_onClick,onkeypress:_onKeyPress,ondblclick:_onDblClick\">\n</div>\n",isExpandable:true,isTree:true,persist:true,dndController:null,dndParams:["onDndDrop","itemCreator","onDndCancel","checkAcceptance","checkItemAcceptance","dragThreshold","betweenThreshold"],onDndDrop:null,itemCreator:null,onDndCancel:null,checkAcceptance:null,checkItemAcceptance:null,dragThreshold:0,betweenThreshold:0,_publish:function(_534,_535){dojo.publish(this.id,[dojo.mixin({tree:this,event:_534},_535||{})]);},postMixInProperties:function(){this.tree=this;this._itemNodeMap={};if(!this.cookieName){this.cookieName=this.id+"SaveStateCookie";}},postCreate:function(){this._initState();if(!this.model){this._store2model();}this.connect(this.model,"onChange","_onItemChange");this.connect(this.model,"onChildrenChange","_onItemChildrenChange");this.connect(this.model,"onDelete","_onItemDelete");this._load();this.inherited(arguments);if(this.dndController){if(dojo.isString(this.dndController)){this.dndController=dojo.getObject(this.dndController);}var _536={};for(var i=0;i<this.dndParams.length;i++){if(this[this.dndParams[i]]){_536[this.dndParams[i]]=this[this.dndParams[i]];}}this.dndController=new this.dndController(this,_536);}},_store2model:function(){this._v10Compat=true;dojo.deprecated("Tree: from version 2.0, should specify a model object rather than a store/query");var _538={id:this.id+"_ForestStoreModel",store:this.store,query:this.query,childrenAttrs:this.childrenAttr};if(this.params.mayHaveChildren){_538.mayHaveChildren=dojo.hitch(this,"mayHaveChildren");}if(this.params.getItemChildren){_538.getChildren=dojo.hitch(this,function(item,_53a,_53b){this.getItemChildren((this._v10Compat&&item===this.model.root)?null:item,_53a,_53b);});}this.model=new dijit.tree.ForestStoreModel(_538);this.showRoot=Boolean(this.label);},_load:function(){this.model.getRoot(dojo.hitch(this,function(item){var rn=this.rootNode=this.tree._createTreeNode({item:item,tree:this,isExpandable:true,label:this.label||this.getLabel(item),indent:this.showRoot?0:-1});if(!this.showRoot){rn.rowNode.style.display="none";}this.domNode.appendChild(rn.domNode);this._itemNodeMap[this.model.getIdentity(item)]=rn;rn._updateLayout();this._expandNode(rn);}),function(err){console.error(this,": error loading root: ",err);});},mayHaveChildren:function(item){},getItemChildren:function(_540,_541){},getLabel:function(item){return this.model.getLabel(item);},getIconClass:function(item,_544){return (!item||this.model.mayHaveChildren(item))?(_544?"dijitFolderOpened":"dijitFolderClosed"):"dijitLeaf";},getLabelClass:function(item,_546){},getIconStyle:function(item,_548){},getLabelStyle:function(item,_54a){},_onKeyPress:function(e){if(e.altKey){return;}var dk=dojo.keys;var _54d=dijit.getEnclosingWidget(e.target);if(!_54d){return;}var key=e.charOrCode;if(typeof key=="string"){if(!e.altKey&&!e.ctrlKey&&!e.shiftKey&&!e.metaKey){this._onLetterKeyNav({node:_54d,key:key.toLowerCase()});dojo.stopEvent(e);}}else{var map=this._keyHandlerMap;if(!map){map={};map[dk.ENTER]="_onEnterKey";map[this.isLeftToRight()?dk.LEFT_ARROW:dk.RIGHT_ARROW]="_onLeftArrow";map[this.isLeftToRight()?dk.RIGHT_ARROW:dk.LEFT_ARROW]="_onRightArrow";map[dk.UP_ARROW]="_onUpArrow";map[dk.DOWN_ARROW]="_onDownArrow";map[dk.HOME]="_onHomeKey";map[dk.END]="_onEndKey";this._keyHandlerMap=map;}if(this._keyHandlerMap[key]){this[this._keyHandlerMap[key]]({node:_54d,item:_54d.item});dojo.stopEvent(e);}}},_onEnterKey:function(_550){this._publish("execute",{item:_550.item,node:_550.node});this.onClick(_550.item,_550.node);},_onDownArrow:function(_551){var node=this._getNextNode(_551.node);if(node&&node.isTreeNode){this.focusNode(node);}},_onUpArrow:function(_553){var node=_553.node;var _555=node.getPreviousSibling();if(_555){node=_555;while(node.isExpandable&&node.isExpanded&&node.hasChildren()){var _556=node.getChildren();node=_556[_556.length-1];}}else{var _557=node.getParent();if(!(!this.showRoot&&_557===this.rootNode)){node=_557;}}if(node&&node.isTreeNode){this.focusNode(node);}},_onRightArrow:function(_558){var node=_558.node;if(node.isExpandable&&!node.isExpanded){this._expandNode(node);}else{if(node.hasChildren()){node=node.getChildren()[0];if(node&&node.isTreeNode){this.focusNode(node);}}}},_onLeftArrow:function(_55a){var node=_55a.node;if(node.isExpandable&&node.isExpanded){this._collapseNode(node);}else{var _55c=node.getParent();if(_55c&&_55c.isTreeNode&&!(!this.showRoot&&_55c===this.rootNode)){this.focusNode(_55c);}}},_onHomeKey:function(){var node=this._getRootOrFirstNode();if(node){this.focusNode(node);}},_onEndKey:function(_55e){var node=this.rootNode;while(node.isExpanded){var c=node.getChildren();node=c[c.length-1];}if(node&&node.isTreeNode){this.focusNode(node);}},_onLetterKeyNav:function(_561){var node=_561.node,_563=node,key=_561.key;do{node=this._getNextNode(node);if(!node){node=this._getRootOrFirstNode();}}while(node!==_563&&(node.label.charAt(0).toLowerCase()!=key));if(node&&node.isTreeNode){if(node!==_563){this.focusNode(node);}}},_onClick:function(e){var _566=e.target;var _567=dijit.getEnclosingWidget(_566);if(!_567||!_567.isTreeNode){return;}if((this.openOnClick&&_567.isExpandable)||(_566==_567.expandoNode||_566==_567.expandoNodeText)){if(_567.isExpandable){this._onExpandoClick({node:_567});}}else{this._publish("execute",{item:_567.item,node:_567});this.onClick(_567.item,_567);this.focusNode(_567);}dojo.stopEvent(e);},_onDblClick:function(e){var _569=e.target;var _56a=dijit.getEnclosingWidget(_569);if(!_56a||!_56a.isTreeNode){return;}if((this.openOnDblClick&&_56a.isExpandable)||(_569==_56a.expandoNode||_569==_56a.expandoNodeText)){if(_56a.isExpandable){this._onExpandoClick({node:_56a});}}else{this._publish("execute",{item:_56a.item,node:_56a});this.onDblClick(_56a.item,_56a);this.focusNode(_56a);}dojo.stopEvent(e);},_onExpandoClick:function(_56b){var node=_56b.node;this.focusNode(node);if(node.isExpanded){this._collapseNode(node);}else{this._expandNode(node);}},onClick:function(item,node){},onDblClick:function(item,node){},onOpen:function(item,node){},onClose:function(item,node){},_getNextNode:function(node){if(node.isExpandable&&node.isExpanded&&node.hasChildren()){return node.getChildren()[0];}else{while(node&&node.isTreeNode){var _576=node.getNextSibling();if(_576){return _576;}node=node.getParent();}return null;}},_getRootOrFirstNode:function(){return this.showRoot?this.rootNode:this.rootNode.getChildren()[0];},_collapseNode:function(node){if(node.isExpandable){if(node.state=="LOADING"){return;}node.collapse();this.onClose(node.item,node);if(node.item){this._state(node.item,false);this._saveState();}}},_expandNode:function(node){if(!node.isExpandable){return;}var _579=this.model,item=node.item;switch(node.state){case "LOADING":return;case "UNCHECKED":node.markProcessing();var _57b=this;_579.getChildren(item,function(_57c){node.unmarkProcessing();node.setChildItems(_57c);_57b._expandNode(node);},function(err){console.error(_57b,": error loading root children: ",err);});break;default:node.expand();this.onOpen(node.item,node);if(item){this._state(item,true);this._saveState();}}},focusNode:function(node){node.labelNode.focus();},_onNodeFocus:function(node){if(node){if(node!=this.lastFocused){this.lastFocused.setSelected(false);}node.setSelected(true);this.lastFocused=node;}},_onNodeMouseEnter:function(node){},_onNodeMouseLeave:function(node){},_onItemChange:function(item){var _583=this.model,_584=_583.getIdentity(item),node=this._itemNodeMap[_584];if(node){node.setLabelNode(this.getLabel(item));node._updateItemClasses(item);}},_onItemChildrenChange:function(_586,_587){var _588=this.model,_589=_588.getIdentity(_586),_58a=this._itemNodeMap[_589];if(_58a){_58a.setChildItems(_587);}},_onItemDelete:function(item){var _58c=this.model,_58d=_58c.getIdentity(item),node=this._itemNodeMap[_58d];if(node){var _58f=node.getParent();if(_58f){_58f.removeChild(node);}node.destroyRecursive();delete this._itemNodeMap[_58d];}},_initState:function(){if(this.persist){var _590=dojo.cookie(this.cookieName);this._openedItemIds={};if(_590){dojo.forEach(_590.split(","),function(item){this._openedItemIds[item]=true;},this);}}},_state:function(item,_593){if(!this.persist){return false;}var id=this.model.getIdentity(item);if(arguments.length===1){return this._openedItemIds[id];}if(_593){this._openedItemIds[id]=true;}else{delete this._openedItemIds[id];}},_saveState:function(){if(!this.persist){return;}var ary=[];for(var id in this._openedItemIds){ary.push(id);}dojo.cookie(this.cookieName,ary.join(","),{expires:365});},destroy:function(){if(this.rootNode){this.rootNode.destroyRecursive();}if(this.dndController&&!dojo.isString(this.dndController)){this.dndController.destroy();}this.rootNode=null;this.inherited(arguments);},destroyRecursive:function(){this.destroy();},_createTreeNode:function(args){return new dijit._TreeNode(args);}});}if(!dojo._hasResource["dijit.form.TextBox"]){dojo._hasResource["dijit.form.TextBox"]=true;dojo.provide("dijit.form.TextBox");dojo.declare("dijit.form.TextBox",dijit.form._FormValueWidget,{trim:false,uppercase:false,lowercase:false,propercase:false,maxLength:"",templateString:"<input class=\"dijit dijitReset dijitLeft\" dojoAttachPoint='textbox,focusNode'\n\tdojoAttachEvent='onmouseenter:_onMouse,onmouseleave:_onMouse'\n\tautocomplete=\"off\" type=\"${type}\" ${nameAttrSetting}\n\t/>\n",baseClass:"dijitTextBox",attributeMap:dojo.delegate(dijit.form._FormValueWidget.prototype.attributeMap,{maxLength:"focusNode"}),_getValueAttr:function(){return this.parse(this.attr("displayedValue"),this.constraints);},_setValueAttr:function(_598,_599,_59a){var _59b;if(_598!==undefined){_59b=this.filter(_598);if(typeof _59a!="string"){if(_59b!==null&&((typeof _59b!="number")||!isNaN(_59b))){_59a=this.filter(this.format(_59b,this.constraints));}else{_59a="";}}}if(_59a!=null&&_59a!=undefined&&((typeof _59a)!="number"||!isNaN(_59a))&&this.textbox.value!=_59a){this.textbox.value=_59a;}this.inherited(arguments,[_59b,_599]);},displayedValue:"",getDisplayedValue:function(){dojo.deprecated(this.declaredClass+"::getDisplayedValue() is deprecated. Use attr('displayedValue') instead.","","2.0");return this.attr("displayedValue");},_getDisplayedValueAttr:function(){return this.filter(this.textbox.value);},setDisplayedValue:function(_59c){dojo.deprecated(this.declaredClass+"::setDisplayedValue() is deprecated. Use attr('displayedValue', ...) instead.","","2.0");this.attr("displayedValue",_59c);},_setDisplayedValueAttr:function(_59d){if(_59d===null||_59d===undefined){_59d="";}else{if(typeof _59d!="string"){_59d=String(_59d);}}this.textbox.value=_59d;this._setValueAttr(this.attr("value"),undefined,_59d);},format:function(_59e,_59f){return ((_59e==null||_59e==undefined)?"":(_59e.toString?_59e.toString():_59e));},parse:function(_5a0,_5a1){return _5a0;},_refreshState:function(){},_onInput:function(e){if(e&&e.type&&/key/i.test(e.type)&&e.keyCode){switch(e.keyCode){case dojo.keys.SHIFT:case dojo.keys.ALT:case dojo.keys.CTRL:case dojo.keys.TAB:return;}}if(this.intermediateChanges){var _5a3=this;setTimeout(function(){_5a3._handleOnChange(_5a3.attr("value"),false);},0);}this._refreshState();},postCreate:function(){this.textbox.setAttribute("value",this.textbox.value);this.inherited(arguments);if(dojo.isMoz||dojo.isOpera){this.connect(this.textbox,"oninput",this._onInput);}else{this.connect(this.textbox,"onkeydown",this._onInput);this.connect(this.textbox,"onkeyup",this._onInput);this.connect(this.textbox,"onpaste",this._onInput);this.connect(this.textbox,"oncut",this._onInput);}this._layoutHack();},_blankValue:"",filter:function(val){if(val===null){return this._blankValue;}if(typeof val!="string"){return val;}if(this.trim){val=dojo.trim(val);}if(this.uppercase){val=val.toUpperCase();}if(this.lowercase){val=val.toLowerCase();}if(this.propercase){val=val.replace(/[^\s]+/g,function(word){return word.substring(0,1).toUpperCase()+word.substring(1);});}return val;},_setBlurValue:function(){this._setValueAttr(this.attr("value"),true);},_onBlur:function(e){if(this.disabled){return;}this._setBlurValue();this.inherited(arguments);},_onFocus:function(e){if(this.disabled){return;}this._refreshState();this.inherited(arguments);},reset:function(){this.textbox.value="";this.inherited(arguments);}});dijit.selectInputText=function(_5a8,_5a9,stop){var _5ab=dojo.global;var _5ac=dojo.doc;_5a8=dojo.byId(_5a8);if(isNaN(_5a9)){_5a9=0;}if(isNaN(stop)){stop=_5a8.value?_5a8.value.length:0;}_5a8.focus();if(_5ac["selection"]&&dojo.body()["createTextRange"]){if(_5a8.createTextRange){var _5ad=_5a8.createTextRange();with(_5ad){collapse(true);moveStart("character",_5a9);moveEnd("character",stop);select();}}}else{if(_5ab["getSelection"]){var _5ae=_5ab.getSelection();if(_5a8.setSelectionRange){_5a8.setSelectionRange(_5a9,stop);}}}};}if(!dojo._hasResource["dijit.InlineEditBox"]){dojo._hasResource["dijit.InlineEditBox"]=true;dojo.provide("dijit.InlineEditBox");dojo.declare("dijit.InlineEditBox",dijit._Widget,{editing:false,autoSave:true,buttonSave:"",buttonCancel:"",renderAsHtml:false,editor:"dijit.form.TextBox",editorParams:{},onChange:function(_5af){},onCancel:function(){},width:"100%",value:"",noValueIndicator:"<span style='font-family: wingdings; text-decoration: underline;'>&nbsp;&nbsp;&nbsp;&nbsp;&#x270d;&nbsp;&nbsp;&nbsp;&nbsp;</span>",constructor:function(){this.editorParams={};},postMixInProperties:function(){this.inherited(arguments);this.displayNode=this.srcNodeRef;var _5b0={ondijitclick:"_onClick",onmouseover:"_onMouseOver",onmouseout:"_onMouseOut",onfocus:"_onMouseOver",onblur:"_onMouseOut"};for(var name in _5b0){this.connect(this.displayNode,name,_5b0[name]);}dijit.setWaiRole(this.displayNode,"button");if(!this.displayNode.getAttribute("tabIndex")){this.displayNode.setAttribute("tabIndex",0);}this.attr("value",this.value||this.displayNode.innerHTML);},setDisabled:function(_5b2){dojo.deprecated("dijit.InlineEditBox.setDisabled() is deprecated.  Use attr('disabled', bool) instead.","","2.0");this.attr("disabled",_5b2);},_setDisabledAttr:function(_5b3){this.disabled=_5b3;dijit.setWaiState(this.domNode,"disabled",_5b3);},_onMouseOver:function(){dojo.addClass(this.displayNode,this.disabled?"dijitDisabledClickableRegion":"dijitClickableRegion");},_onMouseOut:function(){dojo.removeClass(this.displayNode,this.disabled?"dijitDisabledClickableRegion":"dijitClickableRegion");},_onClick:function(e){if(this.disabled){return;}if(e){dojo.stopEvent(e);}this._onMouseOut();setTimeout(dojo.hitch(this,"edit"),0);},edit:function(){if(this.disabled||this.editing){return;}this.editing=true;var _5b5=(this.renderAsHtml?this.value:this.value.replace(/\s*\r?\n\s*/g,"").replace(/<br\/?>/gi,"\n").replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&").replace(/&quot;/g,"\""));var _5b6=dojo.create("span",null,this.domNode,"before");var ew=this.editWidget=new dijit._InlineEditor({value:dojo.trim(_5b5),autoSave:this.autoSave,buttonSave:this.buttonSave,buttonCancel:this.buttonCancel,renderAsHtml:this.renderAsHtml,editor:this.editor,editorParams:this.editorParams,sourceStyle:dojo.getComputedStyle(this.displayNode),save:dojo.hitch(this,"save"),cancel:dojo.hitch(this,"cancel"),width:this.width},_5b6);var ews=ew.domNode.style;this.displayNode.style.display="none";ews.position="static";ews.visibility="visible";this.domNode=ew.domNode;setTimeout(function(){ew.focus();ew._resetValue=ew.getValue();},100);},_showText:function(_5b9){this.displayNode.style.display="";var ew=this.editWidget;var ews=ew.domNode.style;ews.position="absolute";ews.visibility="hidden";this.domNode=this.displayNode;if(_5b9){dijit.focus(this.displayNode);}ews.display="none";setTimeout(function(){ew.destroy();delete ew;if(dojo.isIE){dijit.focus(dijit.getFocus());}},1000);},save:function(_5bc){if(this.disabled||!this.editing){return;}this.editing=false;var _5bd=this.editWidget.getValue()+"";this.attr("value",this.renderAsHtml?_5bd:_5bd.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;").replace(/\n/g,"<br>"));this.onChange(_5bd);this._showText(_5bc);},setValue:function(val){dojo.deprecated("dijit.InlineEditBox.setValue() is deprecated.  Use attr('value', ...) instead.","","2.0");return this.attr("value",val);},_setValueAttr:function(val){this.value=val;this.displayNode.innerHTML=dojo.trim(val)||this.noValueIndicator;},getValue:function(){dojo.deprecated("dijit.InlineEditBox.getValue() is deprecated.  Use attr('value') instead.","","2.0");return this.attr("value");},cancel:function(_5c0){this.editing=false;this.onCancel();this._showText(_5c0);}});dojo.declare("dijit._InlineEditor",[dijit._Widget,dijit._Templated],{templateString:"<span dojoAttachPoint=\"editNode\" waiRole=\"presentation\" style=\"position: absolute; visibility:hidden\" class=\"dijitReset dijitInline\"\n\tdojoAttachEvent=\"onkeypress: _onKeyPress\" \n\t><span dojoAttachPoint=\"editorPlaceholder\"></span\n\t><span dojoAttachPoint=\"buttonContainer\"\n\t\t><button class='saveButton' dojoAttachPoint=\"saveButton\" dojoType=\"dijit.form.Button\" dojoAttachEvent=\"onClick:save\" disabled=\"true\" label=\"${buttonSave}\"></button\n\t\t><button class='cancelButton' dojoAttachPoint=\"cancelButton\" dojoType=\"dijit.form.Button\" dojoAttachEvent=\"onClick:cancel\" label=\"${buttonCancel}\"></button\n\t></span\n></span>\n",widgetsInTemplate:true,postMixInProperties:function(){this.inherited(arguments);this.messages=dojo.i18n.getLocalization("dijit","common",this.lang);dojo.forEach(["buttonSave","buttonCancel"],function(prop){if(!this[prop]){this[prop]=this.messages[prop];}},this);},postCreate:function(){var cls=dojo.getObject(this.editor);var _5c3=this.sourceStyle;var _5c4="line-height:"+_5c3.lineHeight+";";dojo.forEach(["Weight","Family","Size","Style"],function(prop){_5c4+="font-"+prop+":"+_5c3["font"+prop]+";";},this);dojo.forEach(["marginTop","marginBottom","marginLeft","marginRight"],function(prop){this.domNode.style[prop]=_5c3[prop];},this);if(this.width=="100%"){_5c4+="width:100%;";this.domNode.style.display="block";}else{_5c4+="width:"+(this.width+(Number(this.width)==this.width?"px":""))+";";}this.editorParams.style=_5c4;this.editorParams["displayedValue" in cls.prototype?"displayedValue":"value"]=this.value;var ew=this.editWidget=new cls(this.editorParams,this.editorPlaceholder);this.connect(ew,"onChange","_onChange");this.connect(ew,"onKeyPress","_onKeyPress");this.connect(ew,"onKeyUp","_onKeyPress");if(this.autoSave){this.buttonContainer.style.display="none";}},destroy:function(){this.editWidget.destroy();this.inherited(arguments);},getValue:function(){var ew=this.editWidget;return ew.attr("displayedValue" in ew?"displayedValue":"value");},_onKeyPress:function(e){if(this._exitInProgress){return;}if(this.autoSave){if(e.altKey||e.ctrlKey){return;}if(e.charOrCode==dojo.keys.ESCAPE){dojo.stopEvent(e);this._exitInProgress=true;this.cancel(true);}else{if(e.charOrCode==dojo.keys.ENTER&&this.editWidget.focusNode.tagName=="INPUT"){dojo.stopEvent(e);this._exitInProgress=true;this.save(true);}else{if(e.charOrCode===dojo.keys.TAB){this._exitInProgress=true;setTimeout(dojo.hitch(this,"save",false),0);}}}}else{var _5ca=this;setTimeout(function(){_5ca._onChange();},100);}},_onBlur:function(){this.inherited(arguments);if(this._exitInProgress){return;}if(this.autoSave){this._exitInProgress=true;if(this.getValue()==this._resetValue){this.cancel(false);}else{this.save(false);}}},_onChange:function(){if(this._exitInProgress){return;}if(this.autoSave){this._exitInProgress=true;this.save(true);}else{this.saveButton.attr("disabled",(this.getValue()==this._resetValue)||!this.enableSave());}},enableSave:function(){return this.editWidget.isValid?this.editWidget.isValid():true;},focus:function(){this.editWidget.focus();dijit.selectInputText(this.editWidget.focusNode);}});}if(!dojo._hasResource["dijit.form.CheckBox"]){dojo._hasResource["dijit.form.CheckBox"]=true;dojo.provide("dijit.form.CheckBox");dojo.declare("dijit.form.CheckBox",dijit.form.ToggleButton,{templateString:"<div class=\"dijitReset dijitInline\" waiRole=\"presentation\"\n\t><input\n\t \t${nameAttrSetting} type=\"${type}\" ${checkedAttrSetting}\n\t\tclass=\"dijitReset dijitCheckBoxInput\"\n\t\tdojoAttachPoint=\"focusNode\"\n\t \tdojoAttachEvent=\"onmouseover:_onMouse,onmouseout:_onMouse,onclick:_onClick\"\n/></div>\n",baseClass:"dijitCheckBox",type:"checkbox",value:"on",_setValueAttr:function(_5cb){if(typeof _5cb=="string"){this.value=_5cb;dojo.attr(this.focusNode,"value",_5cb);_5cb=true;}if(this._created){this.attr("checked",_5cb);}},_getValueAttr:function(){return (this.checked?this.value:false);},postMixInProperties:function(){if(this.value==""){this.value="on";}this.checkedAttrSetting=this.checked?"checked":"";this.inherited(arguments);},_fillContent:function(_5cc){},reset:function(){this._hasBeenBlurred=false;this.attr("checked",this.params.checked||false);this.value=this.params.value||"on";dojo.attr(this.focusNode,"value",this.value);},_onFocus:function(){if(this.id){dojo.query("label[for='"+this.id+"']").addClass("dijitFocusedLabel");}},_onBlur:function(){if(this.id){dojo.query("label[for='"+this.id+"']").removeClass("dijitFocusedLabel");}}});dojo.declare("dijit.form.RadioButton",dijit.form.CheckBox,{type:"radio",baseClass:"dijitRadio",_setCheckedAttr:function(_5cd){this.inherited(arguments);if(!this._created){return;}if(_5cd){var _5ce=this;dojo.query("INPUT[type=radio]",this.focusNode.form||dojo.doc).forEach(function(_5cf){if(_5cf.name==_5ce.name&&_5cf!=_5ce.focusNode&&_5cf.form==_5ce.focusNode.form){var _5d0=dijit.getEnclosingWidget(_5cf);if(_5d0&&_5d0.checked){_5d0.attr("checked",false);}}});}},_clicked:function(e){if(!this.checked){this.attr("checked",true);}}});}if(!dojo._hasResource["dijit.form.ValidationTextBox"]){dojo._hasResource["dijit.form.ValidationTextBox"]=true;dojo.provide("dijit.form.ValidationTextBox");dojo.declare("dijit.form.ValidationTextBox",dijit.form.TextBox,{templateString:"<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\n\tid=\"widget_${id}\"\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\" waiRole=\"presentation\"\n\t><div style=\"overflow:hidden;\"\n\t\t><div class=\"dijitReset dijitValidationIcon\"><br></div\n\t\t><div class=\"dijitReset dijitValidationIconText\">&Chi;</div\n\t\t><div class=\"dijitReset dijitInputField\"\n\t\t\t><input class=\"dijitReset\" dojoAttachPoint='textbox,focusNode' autocomplete=\"off\"\n\t\t\t${nameAttrSetting} type='${type}'\n\t\t/></div\n\t></div\n></div>\n",baseClass:"dijitTextBox",required:false,promptMessage:"",invalidMessage:"$_unset_$",constraints:{},regExp:".*",regExpGen:function(_5d2){return this.regExp;},state:"",tooltipPosition:[],_setValueAttr:function(){this.inherited(arguments);this.validate(this._focused);},validator:function(_5d3,_5d4){return (new RegExp("^(?:"+this.regExpGen(_5d4)+")"+(this.required?"":"?")+"$")).test(_5d3)&&(!this.required||!this._isEmpty(_5d3))&&(this._isEmpty(_5d3)||this.parse(_5d3,_5d4)!==undefined);},_isValidSubset:function(){return this.textbox.value.search(this._partialre)==0;},isValid:function(_5d5){return this.validator(this.textbox.value,this.constraints);},_isEmpty:function(_5d6){return /^\s*$/.test(_5d6);},getErrorMessage:function(_5d7){return this.invalidMessage;},getPromptMessage:function(_5d8){return this.promptMessage;},_maskValidSubsetError:true,validate:function(_5d9){var _5da="";var _5db=this.disabled||this.isValid(_5d9);if(_5db){this._maskValidSubsetError=true;}var _5dc=!_5db&&_5d9&&this._isValidSubset();var _5dd=this._isEmpty(this.textbox.value);this.state=(_5db||(!this._hasBeenBlurred&&_5dd)||_5dc)?"":"Error";if(this.state=="Error"){this._maskValidSubsetError=false;}this._setStateClass();dijit.setWaiState(this.focusNode,"invalid",_5db?"false":"true");if(_5d9){if(_5dd){_5da=this.getPromptMessage(true);}if(!_5da&&(this.state=="Error"||(_5dc&&!this._maskValidSubsetError))){_5da=this.getErrorMessage(true);}}this.displayMessage(_5da);return _5db;},_message:"",displayMessage:function(_5de){if(this._message==_5de){return;}this._message=_5de;dijit.hideTooltip(this.domNode);if(_5de){dijit.showTooltip(_5de,this.domNode,this.tooltipPosition);}},_refreshState:function(){this.validate(this._focused);this.inherited(arguments);},constructor:function(){this.constraints={};},postMixInProperties:function(){this.inherited(arguments);this.constraints.locale=this.lang;this.messages=dojo.i18n.getLocalization("dijit.form","validate",this.lang);if(this.invalidMessage=="$_unset_$"){this.invalidMessage=this.messages.invalidMessage;}var p=this.regExpGen(this.constraints);this.regExp=p;var _5e0="";if(p!=".*"){this.regExp.replace(/\\.|\[\]|\[.*?[^\\]{1}\]|\{.*?\}|\(\?[=:!]|./g,function(re){switch(re.charAt(0)){case "{":case "+":case "?":case "*":case "^":case "$":case "|":case "(":_5e0+=re;break;case ")":_5e0+="|$)";break;default:_5e0+="(?:"+re+"|$)";break;}});}try{"".search(_5e0);}catch(e){_5e0=this.regExp;console.warn("RegExp error in "+this.declaredClass+": "+this.regExp);}this._partialre="^(?:"+_5e0+")$";},_setDisabledAttr:function(_5e2){this.inherited(arguments);if(this.valueNode){this.valueNode.disabled=_5e2;}this._refreshState();},_setRequiredAttr:function(_5e3){this.required=_5e3;dijit.setWaiState(this.focusNode,"required",_5e3);this._refreshState();},postCreate:function(){if(dojo.isIE){var s=dojo.getComputedStyle(this.focusNode);if(s){var ff=s.fontFamily;if(ff){this.focusNode.style.fontFamily=ff;}}}this.inherited(arguments);},reset:function(){this._maskValidSubsetError=true;this.inherited(arguments);}});dojo.declare("dijit.form.MappedTextBox",dijit.form.ValidationTextBox,{postMixInProperties:function(){this.inherited(arguments);this.nameAttrSetting="";},serialize:function(val,_5e7){return val.toString?val.toString():"";},toString:function(){var val=this.filter(this.attr("value"));return val!=null?(typeof val=="string"?val:this.serialize(val,this.constraints)):"";},validate:function(){this.valueNode.value=this.toString();return this.inherited(arguments);},buildRendering:function(){this.inherited(arguments);this.valueNode=dojo.create("input",{style:{display:"none"},type:this.type,name:this.name},this.textbox,"after");},_setDisabledAttr:function(_5e9){this.inherited(arguments);dojo.attr(this.valueNode,"disabled",_5e9);},reset:function(){this.valueNode.value="";this.inherited(arguments);}});dojo.declare("dijit.form.RangeBoundTextBox",dijit.form.MappedTextBox,{rangeMessage:"",rangeCheck:function(_5ea,_5eb){var _5ec="min" in _5eb;var _5ed="max" in _5eb;if(_5ec||_5ed){return (!_5ec||this.compare(_5ea,_5eb.min)>=0)&&(!_5ed||this.compare(_5ea,_5eb.max)<=0);}return true;},isInRange:function(_5ee){return this.rangeCheck(this.attr("value"),this.constraints);},_isDefinitelyOutOfRange:function(){var val=this.attr("value");var _5f0=false;var _5f1=false;if("min" in this.constraints){var min=this.constraints.min;val=this.compare(val,((typeof min=="number")&&min>=0&&val!=0)?0:min);_5f0=(typeof val=="number")&&val<0;}if("max" in this.constraints){var max=this.constraints.max;val=this.compare(val,((typeof max!="number")||max>0)?max:0);_5f1=(typeof val=="number")&&val>0;}return _5f0||_5f1;},_isValidSubset:function(){return this.inherited(arguments)&&!this._isDefinitelyOutOfRange();},isValid:function(_5f4){return this.inherited(arguments)&&((this._isEmpty(this.textbox.value)&&!this.required)||this.isInRange(_5f4));},getErrorMessage:function(_5f5){if(dijit.form.RangeBoundTextBox.superclass.isValid.call(this,false)&&!this.isInRange(_5f5)){return this.rangeMessage;}return this.inherited(arguments);},postMixInProperties:function(){this.inherited(arguments);if(!this.rangeMessage){this.messages=dojo.i18n.getLocalization("dijit.form","validate",this.lang);this.rangeMessage=this.messages.rangeMessage;}},postCreate:function(){this.inherited(arguments);if(this.constraints.min!==undefined){dijit.setWaiState(this.focusNode,"valuemin",this.constraints.min);}if(this.constraints.max!==undefined){dijit.setWaiState(this.focusNode,"valuemax",this.constraints.max);}},_setValueAttr:function(_5f6,_5f7){dijit.setWaiState(this.focusNode,"valuenow",_5f6);this.inherited(arguments);}});}if(!dojo._hasResource["dojo.data.util.sorter"]){dojo._hasResource["dojo.data.util.sorter"]=true;dojo.provide("dojo.data.util.sorter");dojo.data.util.sorter.basicComparator=function(a,b){var r=-1;if(a===null){a=undefined;}if(b===null){b=undefined;}if(a==b){r=0;}else{if(a>b||a==null){r=1;}}return r;};dojo.data.util.sorter.createSortFunction=function(_5fb,_5fc){var _5fd=[];function _5fe(attr,dir){return function(_601,_602){var a=_5fc.getValue(_601,attr);var b=_5fc.getValue(_602,attr);var _605=null;if(_5fc.comparatorMap){if(typeof attr!=="string"){attr=_5fc.getIdentity(attr);}_605=_5fc.comparatorMap[attr]||dojo.data.util.sorter.basicComparator;}_605=_605||dojo.data.util.sorter.basicComparator;return dir*_605(a,b);};};var _606;for(var i=0;i<_5fb.length;i++){_606=_5fb[i];if(_606.attribute){var _608=(_606.descending)?-1:1;_5fd.push(_5fe(_606.attribute,_608));}}return function(rowA,rowB){var i=0;while(i<_5fd.length){var ret=_5fd[i++](rowA,rowB);if(ret!==0){return ret;}}return 0;};};}if(!dojo._hasResource["dojo.data.util.simpleFetch"]){dojo._hasResource["dojo.data.util.simpleFetch"]=true;dojo.provide("dojo.data.util.simpleFetch");dojo.data.util.simpleFetch.fetch=function(_60d){_60d=_60d||{};if(!_60d.store){_60d.store=this;}var self=this;var _60f=function(_610,_611){if(_611.onError){var _612=_611.scope||dojo.global;_611.onError.call(_612,_610,_611);}};var _613=function(_614,_615){var _616=_615.abort||null;var _617=false;var _618=_615.start?_615.start:0;var _619=(_615.count&&(_615.count!==Infinity))?(_618+_615.count):_614.length;_615.abort=function(){_617=true;if(_616){_616.call(_615);}};var _61a=_615.scope||dojo.global;if(!_615.store){_615.store=self;}if(_615.onBegin){_615.onBegin.call(_61a,_614.length,_615);}if(_615.sort){_614.sort(dojo.data.util.sorter.createSortFunction(_615.sort,self));}if(_615.onItem){for(var i=_618;(i<_614.length)&&(i<_619);++i){var item=_614[i];if(!_617){_615.onItem.call(_61a,item,_615);}}}if(_615.onComplete&&!_617){var _61d=null;if(!_615.onItem){_61d=_614.slice(_618,_619);}_615.onComplete.call(_61a,_61d,_615);}};this._fetchItems(_60d,_613,_60f);return _60d;};}if(!dojo._hasResource["dojo.data.util.filter"]){dojo._hasResource["dojo.data.util.filter"]=true;dojo.provide("dojo.data.util.filter");dojo.data.util.filter.patternToRegExp=function(_61e,_61f){var rxp="^";var c=null;for(var i=0;i<_61e.length;i++){c=_61e.charAt(i);switch(c){case "\\":rxp+=c;i++;rxp+=_61e.charAt(i);break;case "*":rxp+=".*";break;case "?":rxp+=".";break;case "$":case "^":case "/":case "+":case ".":case "|":case "(":case ")":case "{":case "}":case "[":case "]":rxp+="\\";default:rxp+=c;}}rxp+="$";if(_61f){return new RegExp(rxp,"mi");}else{return new RegExp(rxp,"m");}};}if(!dojo._hasResource["dijit.form.ComboBox"]){dojo._hasResource["dijit.form.ComboBox"]=true;dojo.provide("dijit.form.ComboBox");dojo.declare("dijit.form.ComboBoxMixin",null,{item:null,pageSize:Infinity,store:null,fetchProperties:{},query:{},autoComplete:true,highlightMatch:"first",searchDelay:100,searchAttr:"name",labelAttr:"",labelType:"text",queryExpr:"${0}*",ignoreCase:true,hasDownArrow:true,templateString:"<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\n\tid=\"widget_${id}\"\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\" dojoAttachPoint=\"comboNode\" waiRole=\"combobox\" tabIndex=\"-1\"\n\t><div style=\"overflow:hidden;\"\n\t\t><div class='dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton'\n\t\t\tdojoAttachPoint=\"downArrowNode\" waiRole=\"presentation\"\n\t\t\tdojoAttachEvent=\"onmousedown:_onArrowMouseDown,onmouseup:_onMouse,onmouseenter:_onMouse,onmouseleave:_onMouse\"\n\t\t\t><div class=\"dijitArrowButtonInner\">&thinsp;</div\n\t\t\t><div class=\"dijitArrowButtonChar\">&#9660;</div\n\t\t></div\n\t\t><div class=\"dijitReset dijitValidationIcon\"><br></div\n\t\t><div class=\"dijitReset dijitValidationIconText\">&Chi;</div\n\t\t><div class=\"dijitReset dijitInputField\"\n\t\t\t><input ${nameAttrSetting} type=\"text\" autocomplete=\"off\"