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

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

		http://dojotoolkit.org

	for documentation and information on getting the source.
*/

if(!dojo._hasResource["dojo.fx.Toggler"]){
dojo._hasResource["dojo.fx.Toggler"]=true;
dojo.provide("dojo.fx.Toggler");
dojo.declare("dojo.fx.Toggler",null,{constructor:function(_1){
var _t=this;
dojo.mixin(_t,_1);
_t.node=_1.node;
_t._showArgs=dojo.mixin({},_1);
_t._showArgs.node=_t.node;
_t._showArgs.duration=_t.showDuration;
_t.showAnim=_t.showFunc(_t._showArgs);
_t._hideArgs=dojo.mixin({},_1);
_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(_3){
return this.showAnim.play(_3||0);
},hide:function(_4){
return this.hideAnim.play(_4||0);
}});
}
if(!dojo._hasResource["dojo.fx"]){
dojo._hasResource["dojo.fx"]=true;
dojo.provide("dojo.fx");
(function(){
var d=dojo,_6={_fire:function(_7,_8){
if(this[_7]){
this[_7].apply(this,_8||[]);
}
return this;
}};
var _9=function(_a){
this._index=-1;
this._animations=_a||[];
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(_9,{_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(_c,_d){
if(!this._current){
this._current=this._animations[this._index=0];
}
if(!_d&&this._current.status()=="playing"){
return this;
}
var _e=d.connect(this._current,"beforeBegin",this,function(){
this._fire("beforeBegin");
}),_f=d.connect(this._current,"onBegin",this,function(arg){
this._fire("onBegin",arguments);
}),_11=d.connect(this._current,"onPlay",this,function(arg){
this._fire("onPlay",arguments);
d.disconnect(_e);
d.disconnect(_f);
d.disconnect(_11);
});
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(_15,_16){
this.pause();
var _17=this.duration*_15;
this._current=null;
d.some(this._animations,function(a){
if(a.duration<=_17){
this._current=a;
return true;
}
_17-=a.duration;
return false;
});
if(this._current){
this._current.gotoPercent(_17/this._current.duration,_16);
}
return this;
},stop:function(_19){
if(this._current){
if(_19){
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(_9,_6);
dojo.fx.chain=function(_1c){
return new _9(_1c);
};
var _1d=function(_1e){
this._animations=_1e||[];
this._connects=[];
this._finished=0;
this.duration=0;
d.forEach(_1e,function(a){
var _20=a.duration;
if(a.delay){
_20+=a.delay;
}
if(this.duration<_20){
this.duration=_20;
}
this._connects.push(d.connect(a,"onEnd",this,"_onEnd"));
},this);
this._pseudoAnimation=new d._Animation({curve:[0,1],duration:this.duration});
var _21=this;
d.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop"],function(evt){
_21._connects.push(d.connect(_21._pseudoAnimation,evt,function(){
_21._fire(evt,arguments);
}));
});
};
d.extend(_1d,{_doAction:function(_23,_24){
d.forEach(this._animations,function(a){
a[_23].apply(a,_24);
});
return this;
},_onEnd:function(){
if(++this._finished==this._animations.length){
this._fire("onEnd");
}
},_call:function(_26,_27){
var t=this._pseudoAnimation;
t[_26].apply(t,_27);
},play:function(_29,_2a){
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(_2b,_2c){
var ms=this.duration*_2b;
d.forEach(this._animations,function(a){
a.gotoPercent(a.duration<ms?1:(ms/a.duration),_2c);
});
this._call("gotoPercent",arguments);
return this;
},stop:function(_2f){
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(_1d,_6);
dojo.fx.combine=function(_30){
return new _1d(_30);
};
dojo.fx.wipeIn=function(_31){
_31.node=d.byId(_31.node);
var _32=_31.node,s=_32.style,o;
var _35=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 _36=d.style(_32,"height");
return Math.max(_36,1);
}
},end:function(){
return _32.scrollHeight;
}}}},_31));
d.connect(_35,"onEnd",function(){
s.height="auto";
s.overflow=o;
});
return _35;
};
dojo.fx.wipeOut=function(_37){
var _38=_37.node=d.byId(_37.node),s=_38.style,o;
var _3b=d.animateProperty(d.mixin({properties:{height:{end:1}}},_37));
d.connect(_3b,"beforeBegin",function(){
o=s.overflow;
s.overflow="hidden";
s.display="";
});
d.connect(_3b,"onEnd",function(){
s.overflow=o;
s.height="auto";
s.display="none";
});
return _3b;
};
dojo.fx.slideTo=function(_3c){
var _3d=_3c.node=d.byId(_3c.node),top=null,_3f=null;
var _40=(function(n){
return function(){
var cs=d.getComputedStyle(n);
var pos=cs.position;
top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);
_3f=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);
if(pos!="absolute"&&pos!="relative"){
var ret=d.coords(n,true);
top=ret.y;
_3f=ret.x;
n.style.position="absolute";
n.style.top=top+"px";
n.style.left=_3f+"px";
}
};
})(_3d);
_40();
var _45=d.animateProperty(d.mixin({properties:{top:_3c.top||0,left:_3c.left||0}},_3c));
d.connect(_45,"beforeBegin",_45,_40);
return _45;
};
})();
}
if(!dojo._hasResource["dojo.date.stamp"]){
dojo._hasResource["dojo.date.stamp"]=true;
dojo.provide("dojo.date.stamp");
dojo.date.stamp.fromISOString=function(_46,_47){
if(!dojo.date.stamp._isoRegExp){
dojo.date.stamp._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/;
}
var _48=dojo.date.stamp._isoRegExp.exec(_46);
var _49=null;
if(_48){
_48.shift();
if(_48[1]){
_48[1]--;
}
if(_48[6]){
_48[6]*=1000;
}
if(_47){
_47=new Date(_47);
dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(_4a){
return _47["get"+_4a]();
}).forEach(function(_4b,_4c){
if(_48[_4c]===undefined){
_48[_4c]=_4b;
}
});
}
_49=new Date(_48[0]||1970,_48[1]||0,_48[2]||1,_48[3]||0,_48[4]||0,_48[5]||0,_48[6]||0);
var _4d=0;
var _4e=_48[7]&&_48[7].charAt(0);
if(_4e!="Z"){
_4d=((_48[8]||0)*60)+(Number(_48[9])||0);
if(_4e!="-"){
_4d*=-1;
}
}
if(_4e){
_4d-=_49.getTimezoneOffset();
}
if(_4d){
_49.setTime(_49.getTime()+_4d*60000);
}
}
return _49;
};
dojo.date.stamp.toISOString=function(_4f,_50){
var _=function(n){
return (n<10)?"0"+n:n;
};
_50=_50||{};
var _53=[];
var _54=_50.zulu?"getUTC":"get";
var _55="";
if(_50.selector!="time"){
var _56=_4f[_54+"FullYear"]();
_55=["0000".substr((_56+"").length)+_56,_(_4f[_54+"Month"]()+1),_(_4f[_54+"Date"]())].join("-");
}
_53.push(_55);
if(_50.selector!="date"){
var _57=[_(_4f[_54+"Hours"]()),_(_4f[_54+"Minutes"]()),_(_4f[_54+"Seconds"]())].join(":");
var _58=_4f[_54+"Milliseconds"]();
if(_50.milliseconds){
_57+="."+(_58<100?"0":"")+_(_58);
}
if(_50.zulu){
_57+="Z";
}else{
if(_50.selector!="time"){
var _59=_4f.getTimezoneOffset();
var _5a=Math.abs(_59);
_57+=(_59>0?"-":"+")+_(Math.floor(_5a/60))+":"+_(_5a%60);
}
}
_53.push(_57);
}
return _53.join("T");
};
}
if(!dojo._hasResource["dojo.parser"]){
dojo._hasResource["dojo.parser"]=true;
dojo.provide("dojo.parser");
dojo.parser=new function(){
var d=dojo;
var _5c=d._scopeName+"Type";
var qry="["+_5c+"]";
var _5e=0,_5f={};
var _60=function(_61,_62){
var nso=_62||_5f;
if(dojo.isIE){
var cn=_61["__dojoNameCache"];
if(cn&&nso[cn]===_61){
return cn;
}
}
var _65;
do{
_65="__"+_5e++;
}while(_65 in nso);
nso[_65]=_61;
return _65;
};
function _66(_67){
if(d.isString(_67)){
return "string";
}
if(typeof _67=="number"){
return "number";
}
if(typeof _67=="boolean"){
return "boolean";
}
if(d.isFunction(_67)){
return "function";
}
if(d.isArray(_67)){
return "array";
}
if(_67 instanceof Date){
return "date";
}
if(_67 instanceof d._Url){
return "url";
}
return "object";
};
function _68(_69,_6a){
switch(_6a){
case "string":
return _69;
case "number":
return _69.length?Number(_69):NaN;
case "boolean":
return typeof _69=="boolean"?_69:!(_69.toLowerCase()=="false");
case "function":
if(d.isFunction(_69)){
_69=_69.toString();
_69=d.trim(_69.substring(_69.indexOf("{")+1,_69.length-1));
}
try{
if(_69.search(/[^\w\.]+/i)!=-1){
_69=_60(new Function(_69),this);
}
return d.getObject(_69,false);
}
catch(e){
return new Function();
}
case "array":
return _69?_69.split(/\s*,\s*/):[];
case "date":
switch(_69){
case "":
return new Date("");
case "now":
return new Date();
default:
return d.date.stamp.fromISOString(_69);
}
case "url":
return d.baseUrl+_69;
default:
return d.fromJson(_69);
}
};
var _6b={};
function _6c(_6d){
if(!_6b[_6d]){
var cls=d.getObject(_6d);
if(!d.isFunction(cls)){
throw new Error("Could not load class '"+_6d+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");
}
var _6f=cls.prototype;
var _70={},_71={};
for(var _72 in _6f){
if(_72.charAt(0)=="_"){
continue;
}
if(_72 in _71){
continue;
}
var _73=_6f[_72];
_70[_72]=_66(_73);
}
_6b[_6d]={cls:cls,params:_70};
}
return _6b[_6d];
};
this._functionFromScript=function(_74){
var _75="";
var _76="";
var _77=_74.getAttribute("args");
if(_77){
d.forEach(_77.split(/\s*,\s*/),function(_78,idx){
_75+="var "+_78+" = arguments["+idx+"]; ";
});
}
var _7a=_74.getAttribute("with");
if(_7a&&_7a.length){
d.forEach(_7a.split(/\s*,\s*/),function(_7b){
_75+="with("+_7b+"){";
_76+="}";
});
}
return new Function(_75+_74.innerHTML+_76);
};
this.instantiate=function(_7c,_7d){
var _7e=[];
_7d=_7d||{};
d.forEach(_7c,function(_7f){
if(!_7f){
return;
}
var _80=_5c in _7d?_7d[_5c]:_7f.getAttribute(_5c);
if(!_80||!_80.length){
return;
}
var _81=_6c(_80),_82=_81.cls,ps=_82._noScript||_82.prototype._noScript;
var _84={},_85=_7f.attributes;
for(var _86 in _81.params){
var _87=_86 in _7d?{value:_7d[_86],specified:true}:_85.getNamedItem(_86);
if(!_87||(!_87.specified&&(!dojo.isIE||_86.toLowerCase()!="value"))){
continue;
}
var _88=_87.value;
switch(_86){
case "class":
_88="className" in _7d?_7d.className:_7f.className;
break;
case "style":
_88="style" in _7d?_7d.style:(_7f.style&&_7f.style.cssText);
}
var _89=_81.params[_86];
if(typeof _88=="string"){
_84[_86]=_68(_88,_89);
}else{
_84[_86]=_88;
}
}
if(!ps){
var _8a=[],_8b=[];
d.query("> script[type^='dojo/']",_7f).orphan().forEach(function(_8c){
var _8d=_8c.getAttribute("event"),_80=_8c.getAttribute("type"),nf=d.parser._functionFromScript(_8c);
if(_8d){
if(_80=="dojo/connect"){
_8a.push({event:_8d,func:nf});
}else{
_84[_8d]=nf;
}
}else{
_8b.push(nf);
}
});
}
var _8f=_82["markupFactory"];
if(!_8f&&_82["prototype"]){
_8f=_82.prototype["markupFactory"];
}
var _90=_8f?_8f(_84,_7f,_82):new _82(_84,_7f);
_7e.push(_90);
var _91=_7f.getAttribute("jsId");
if(_91){
d.setObject(_91,_90);
}
if(!ps){
d.forEach(_8a,function(_92){
d.connect(_90,_92.event,null,_92.func);
});
d.forEach(_8b,function(_93){
_93.call(_90);
});
}
});
d.forEach(_7e,function(_94){
if(_94&&_94.startup&&!_94._started&&(!_94.getParent||!_94.getParent())){
_94.startup();
}
});
return _7e;
};
this.parse=function(_95){
var _96=d.query(qry,_95);
var _97=this.instantiate(_96);
return _97;
};
}();
(function(){
var _98=function(){
if(dojo.config["parseOnLoad"]==true){
dojo.parser.parse();
}
};
if(dojo.exists("dijit.wai.onload")&&(dijit.wai.onload===dojo._loaders[0])){
dojo._loaders.splice(1,0,_98);
}else{
dojo._loaders.unshift(_98);
}
})();
}
if(!dojo._hasResource["dojo.regexp"]){
dojo._hasResource["dojo.regexp"]=true;
dojo.provide("dojo.regexp");
dojo.regexp.escapeString=function(str,_9a){
return str.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(ch){
if(_9a&&_9a.indexOf(ch)!=-1){
return ch;
}
return "\\"+ch;
});
};
dojo.regexp.buildGroupRE=function(arr,re,_9e){
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("|"),_9e);
};
dojo.regexp.group=function(_a1,_a2){
return "("+(_a2?"?:":"")+_a1+")";
};
}
if(!dojo._hasResource["dojox.validate.regexp"]){
dojo._hasResource["dojox.validate.regexp"]=true;
dojo.provide("dojox.validate.regexp");
dojo.mixin(dojox.validate.regexp,{ipAddress:function(_a3){
_a3=(typeof _a3=="object")?_a3:{};
if(typeof _a3.allowDottedDecimal!="boolean"){
_a3.allowDottedDecimal=true;
}
if(typeof _a3.allowDottedHex!="boolean"){
_a3.allowDottedHex=true;
}
if(typeof _a3.allowDottedOctal!="boolean"){
_a3.allowDottedOctal=true;
}
if(typeof _a3.allowDecimal!="boolean"){
_a3.allowDecimal=true;
}
if(typeof _a3.allowHex!="boolean"){
_a3.allowHex=true;
}
if(typeof _a3.allowIPv6!="boolean"){
_a3.allowIPv6=true;
}
if(typeof _a3.allowHybrid!="boolean"){
_a3.allowHybrid=true;
}
var _a4="((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.){3}(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])";
var _a5="(0[xX]0*[\\da-fA-F]?[\\da-fA-F]\\.){3}0[xX]0*[\\da-fA-F]?[\\da-fA-F]";
var _a6="(0+[0-3][0-7][0-7]\\.){3}0+[0-3][0-7][0-7]";
var _a7="(0|[1-9]\\d{0,8}|[1-3]\\d{9}|4[01]\\d{8}|42[0-8]\\d{7}|429[0-3]\\d{6}|"+"4294[0-8]\\d{5}|42949[0-5]\\d{4}|429496[0-6]\\d{3}|4294967[01]\\d{2}|42949672[0-8]\\d|429496729[0-5])";
var _a8="0[xX]0*[\\da-fA-F]{1,8}";
var _a9="([\\da-fA-F]{1,4}\\:){7}[\\da-fA-F]{1,4}";
var _aa="([\\da-fA-F]{1,4}\\:){6}"+"((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.){3}(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])";
var a=[];
if(_a3.allowDottedDecimal){
a.push(_a4);
}
if(_a3.allowDottedHex){
a.push(_a5);
}
if(_a3.allowDottedOctal){
a.push(_a6);
}
if(_a3.allowDecimal){
a.push(_a7);
}
if(_a3.allowHex){
a.push(_a8);
}
if(_a3.allowIPv6){
a.push(_a9);
}
if(_a3.allowHybrid){
a.push(_aa);
}
var _ac="";
if(a.length>0){
_ac="("+a.join("|")+")";
}
return _ac;
},host:function(_ad){
_ad=(typeof _ad=="object")?_ad:{};
if(typeof _ad.allowIP!="boolean"){
_ad.allowIP=true;
}
if(typeof _ad.allowLocal!="boolean"){
_ad.allowLocal=false;
}
if(typeof _ad.allowPort!="boolean"){
_ad.allowPort=true;
}
if(typeof _ad.allowNamed!="boolean"){
_ad.allowNamed=false;
}
var _ae="(?:[\\da-zA-Z](?:[-\\da-zA-Z]{0,61}[\\da-zA-Z])?)";
var _af="(?:[a-zA-Z](?:[-\\da-zA-Z]{0,6}[\\da-zA-Z])?)";
var _b0=_ad.allowPort?"(\\:\\d+)?":"";
var _b1="((?:"+_ae+"\\.)*"+_af+"\\.?)";
if(_ad.allowIP){
_b1+="|"+dojox.validate.regexp.ipAddress(_ad);
}
if(_ad.allowLocal){
_b1+="|localhost";
}
if(_ad.allowNamed){
_b1+="|^[^-][a-zA-Z0-9_-]*";
}
return "("+_b1+")"+_b0;
},url:function(_b2){
_b2=(typeof _b2=="object")?_b2:{};
if(!("scheme" in _b2)){
_b2.scheme=[true,false];
}
var _b3=dojo.regexp.buildGroupRE(_b2.scheme,function(q){
if(q){
return "(https?|ftps?)\\://";
}
return "";
});
var _b5="(/(?:[^?#\\s/]+/)*(?:[^?#\\s/]+(?:\\?[^?#\\s/]*)?(?:#[A-Za-z][\\w.:-]*)?)?)?";
return _b3+dojox.validate.regexp.host(_b2)+_b5;
},emailAddress:function(_b6){
_b6=(typeof _b6=="object")?_b6:{};
if(typeof _b6.allowCruft!="boolean"){
_b6.allowCruft=false;
}
_b6.allowPort=false;
var _b7="([\\da-zA-Z]+[-._+&'])*[\\da-zA-Z]+";
var _b8=_b7+"@"+dojox.validate.regexp.host(_b6);
if(_b6.allowCruft){
_b8="<?(mailto\\:)?"+_b8+">?";
}
return _b8;
},emailAddressList:function(_b9){
_b9=(typeof _b9=="object")?_b9:{};
if(typeof _b9.listSeparator!="string"){
_b9.listSeparator="\\s;,";
}
var _ba=dojox.validate.regexp.emailAddress(_b9);
var _bb="("+_ba+"\\s*["+_b9.listSeparator+"]\\s*)*"+_ba+"\\s*["+_b9.listSeparator+"]?\\s*";
return _bb;
},numberFormat:function(_bc){
_bc=(typeof _bc=="object")?_bc:{};
if(typeof _bc.format=="undefined"){
_bc.format="###-###-####";
}
var _bd=function(_be){
return dojo.regexp.escapeString(_be,"?").replace(/\?/g,"\\d?").replace(/#/g,"\\d");
};
return dojo.regexp.buildGroupRE(_bc.format,_bd);
}});
dojox.validate.regexp.ca={postalCode:function(){
return "([A-Z][0-9][A-Z] [0-9][A-Z][0-9])";
},province:function(){
return "(AB|BC|MB|NB|NL|NS|NT|NU|ON|PE|QC|SK|YT)";
}};
dojox.validate.regexp.us={state:function(_bf){
_bf=(typeof _bf=="object")?_bf:{};
if(typeof _bf.allowTerritories!="boolean"){
_bf.allowTerritories=true;
}
if(typeof _bf.allowMilitary!="boolean"){
_bf.allowMilitary=true;
}
var _c0="AL|AK|AZ|AR|CA|CO|CT|DE|DC|FL|GA|HI|ID|IL|IN|IA|KS|KY|LA|ME|MD|MA|MI|MN|MS|MO|MT|"+"NE|NV|NH|NJ|NM|NY|NC|ND|OH|OK|OR|PA|RI|SC|SD|TN|TX|UT|VT|VA|WA|WV|WI|WY";
var _c1="AS|FM|GU|MH|MP|PW|PR|VI";
var _c2="AA|AE|AP";
if(_bf.allowTerritories){
_c0+="|"+_c1;
}
if(_bf.allowMilitary){
_c0+="|"+_c2;
}
return "("+_c0+")";
}};
}
if(!dojo._hasResource["dijit._base.focus"]){
dojo._hasResource["dijit._base.focus"]=true;
dojo.provide("dijit._base.focus");
dojo.mixin(dijit,{_curFocus:null,_prevFocus:null,isCollapsed:function(){
var _c3=dojo.doc;
if(_c3.selection){
var s=_c3.selection;
if(s.type=="Text"){
return !s.createRange().htmlText.length;
}else{
return !s.createRange().length;
}
}else{
var _c5=dojo.global;
var _c6=_c5.getSelection();
if(dojo.isString(_c6)){
return !_c6;
}else{
return !_c6||_c6.isCollapsed||!_c6.toString();
}
}
},getBookmark:function(){
var _c7,_c8=dojo.doc.selection;
if(_c8){
var _c9=_c8.createRange();
if(_c8.type.toUpperCase()=="CONTROL"){
if(_c9.length){
_c7=[];
var i=0,len=_c9.length;
while(i<len){
_c7.push(_c9.item(i++));
}
}else{
_c7=null;
}
}else{
_c7=_c9.getBookmark();
}
}else{
if(window.getSelection){
_c8=dojo.global.getSelection();
if(_c8){
_c9=_c8.getRangeAt(0);
_c7=_c9.cloneRange();
}
}else{
console.warn("No idea how to store the current selection for this browser!");
}
}
return _c7;
},moveToBookmark:function(_cc){
var _cd=dojo.doc;
if(_cd.selection){
var _ce;
if(dojo.isArray(_cc)){
_ce=_cd.body.createControlRange();
dojo.forEach(_cc,function(n){
_ce.addElement(n);
});
}else{
_ce=_cd.selection.createRange();
_ce.moveToBookmark(_cc);
}
_ce.select();
}else{
var _d0=dojo.global.getSelection&&dojo.global.getSelection();
if(_d0&&_d0.removeAllRanges){
_d0.removeAllRanges();
_d0.addRange(_cc);
}else{
console.warn("No idea how to restore selection for this browser!");
}
}
},getFocus:function(_d1,_d2){
return {node:_d1&&dojo.isDescendant(dijit._curFocus,_d1.domNode)?dijit._prevFocus:dijit._curFocus,bookmark:!dojo.withGlobal(_d2||dojo.global,dijit.isCollapsed)?dojo.withGlobal(_d2||dojo.global,dijit.getBookmark):null,openedForWindow:_d2};
},focus:function(_d3){
if(!_d3){
return;
}
var _d4="node" in _d3?_d3.node:_d3,_d5=_d3.bookmark,_d6=_d3.openedForWindow;
if(_d4){
var _d7=(_d4.tagName.toLowerCase()=="iframe")?_d4.contentWindow:_d4;
if(_d7&&_d7.focus){
try{
_d7.focus();
}
catch(e){
}
}
dijit._onFocusNode(_d4);
}
if(_d5&&dojo.withGlobal(_d6||dojo.global,dijit.isCollapsed)){
if(_d6){
_d6.focus();
}
try{
dojo.withGlobal(_d6||dojo.global,dijit.moveToBookmark,null,[_d5]);
}
catch(e){
}
}
},_activeStack:[],registerIframe:function(_d8){
dijit.registerWin(_d8.contentWindow,_d8);
},registerWin:function(_d9,_da){
dojo.connect(_d9.document,"onmousedown",function(evt){
dijit._justMouseDowned=true;
setTimeout(function(){
dijit._justMouseDowned=false;
},0);
dijit._onTouchNode(_da||evt.target||evt.srcElement);
});
var doc=_d9.document;
if(doc){
if(dojo.isIE){
doc.attachEvent("onactivate",function(evt){
if(evt.srcElement.tagName.toLowerCase()!="#document"){
dijit._onFocusNode(_da||evt.srcElement);
}
});
doc.attachEvent("ondeactivate",function(evt){
dijit._onBlurNode(_da||evt.srcElement);
});
}else{
doc.addEventListener("focus",function(evt){
dijit._onFocusNode(_da||evt.target);
},true);
doc.addEventListener("blur",function(evt){
dijit._onBlurNode(_da||evt.target);
},true);
}
}
doc=null;
},_onBlurNode:function(_e1){
dijit._prevFocus=dijit._curFocus;
dijit._curFocus=null;
if(dijit._justMouseDowned){
return;
}
if(dijit._clearActiveWidgetsTimer){
clearTimeout(dijit._clearActiveWidgetsTimer);
}
dijit._clearActiveWidgetsTimer=setTimeout(function(){
delete dijit._clearActiveWidgetsTimer;
dijit._setStack([]);
dijit._prevFocus=null;
},100);
},_onTouchNode:function(_e2){
if(dijit._clearActiveWidgetsTimer){
clearTimeout(dijit._clearActiveWidgetsTimer);
delete dijit._clearActiveWidgetsTimer;
}
var _e3=[];
try{
while(_e2){
if(_e2.dijitPopupParent){
_e2=dijit.byId(_e2.dijitPopupParent).domNode;
}else{
if(_e2.tagName&&_e2.tagName.toLowerCase()=="body"){
if(_e2===dojo.body()){
break;
}
_e2=dijit.getDocumentWindow(_e2.ownerDocument).frameElement;
}else{
var id=_e2.getAttribute&&_e2.getAttribute("widgetId");
if(id){
_e3.unshift(id);
}
_e2=_e2.parentNode;
}
}
}
}
catch(e){
}
dijit._setStack(_e3);
},_onFocusNode:function(_e5){
if(!_e5){
return;
}
if(_e5.nodeType==9){
return;
}
dijit._onTouchNode(_e5);
if(_e5==dijit._curFocus){
return;
}
if(dijit._curFocus){
dijit._prevFocus=dijit._curFocus;
}
dijit._curFocus=_e5;
dojo.publish("focusNode",[_e5]);
},_setStack:function(_e6){
var _e7=dijit._activeStack;
dijit._activeStack=_e6;
for(var _e8=0;_e8<Math.min(_e7.length,_e6.length);_e8++){
if(_e7[_e8]!=_e6[_e8]){
break;
}
}
for(var i=_e7.length-1;i>=_e8;i--){
var _ea=dijit.byId(_e7[i]);
if(_ea){
_ea._focused=false;
_ea._hasBeenBlurred=true;
if(_ea._onBlur){
_ea._onBlur();
}
if(_ea._setStateClass){
_ea._setStateClass();
}
dojo.publish("widgetBlur",[_ea]);
}
}
for(i=_e8;i<_e6.length;i++){
_ea=dijit.byId(_e6[i]);
if(_ea){
_ea._focused=true;
if(_ea._onFocus){
_ea._onFocus();
}
if(_ea._setStateClass){
_ea._setStateClass();
}
dojo.publish("widgetFocus",[_ea]);
}
}
}});
dojo.addOnLoad(function(){
dijit.registerWin(window);
});
}
if(!dojo._hasResource["dijit._base.manager"]){
dojo._hasResource["dijit._base.manager"]=true;
dojo.provide("dijit._base.manager");
dojo.declare("dijit.WidgetSet",null,{constructor:function(){
this._hash={};
},add:function(_eb){
if(this._hash[_eb.id]){
dijit.byId(_eb.id).destroyRecursive();
}
this._hash[_eb.id]=_eb;
},remove:function(id){
delete this._hash[id];
},forEach:function(_ed){
for(var id in this._hash){
_ed(this._hash[id]);
}
},filter:function(_ef){
var res=new dijit.WidgetSet();
this.forEach(function(_f1){
if(_ef(_f1)){
res.add(_f1);
}
});
return res;
},byId:function(id){
return this._hash[id];
},byClass:function(cls){
return this.filter(function(_f4){
return _f4.declaredClass==cls;
});
}});
dijit.registry=new dijit.WidgetSet();
dijit._widgetTypeCtr={};
dijit.getUniqueId=function(_f5){
var id;
do{
id=_f5+"_"+(_f5 in dijit._widgetTypeCtr?++dijit._widgetTypeCtr[_f5]:dijit._widgetTypeCtr[_f5]=0);
}while(dijit.byId(id));
return id;
};
dijit.findWidgets=function(_f7){
var _f8=[];
function _f9(_fa){
var _fb=dojo.isIE?_fa.children:_fa.childNodes,i=0,_fd;
while(_fd=_fb[i++]){
if(_fd.nodeType!=1){
continue;
}
var _fe=_fd.getAttribute("widgetId");
if(_fe){
var _ff=dijit.byId(_fe);
_f8.push(_ff);
}else{
_f9(_fd);
}
}
};
_f9(_f7);
return _f8;
};
if(dojo.isIE){
dojo.addOnWindowUnload(function(){
dojo.forEach(dijit.findWidgets(dojo.body()),function(_100){
if(_100.destroyRecursive){
_100.destroyRecursive();
}else{
if(_100.destroy){
_100.destroy();
}
}
});
});
}
dijit.byId=function(id){
return (dojo.isString(id))?dijit.registry.byId(id):id;
};
dijit.byNode=function(node){
return dijit.registry.byId(node.getAttribute("widgetId"));
};
dijit.getEnclosingWidget=function(node){
while(node){
if(node.getAttribute&&node.getAttribute("widgetId")){
return dijit.registry.byId(node.getAttribute("widgetId"));
}
node=node.parentNode;
}
return null;
};
dijit._tabElements={area:true,button:true,input:true,object:true,select:true,textarea:true};
dijit._isElementShown=function(elem){
var _105=dojo.style(elem);
return (_105.visibility!="hidden")&&(_105.visibility!="collapsed")&&(_105.display!="none")&&(dojo.attr(elem,"type")!="hidden");
};
dijit.isTabNavigable=function(elem){
if(dojo.hasAttr(elem,"disabled")){
return false;
}
var _107=dojo.hasAttr(elem,"tabindex");
var _108=dojo.attr(elem,"tabindex");
if(_107&&_108>=0){
return true;
}
var name=elem.nodeName.toLowerCase();
if(((name=="a"&&dojo.hasAttr(elem,"href"))||dijit._tabElements[name])&&(!_107||_108>=0)){
return true;
}
return false;
};
dijit._getTabNavigable=function(root){
var _10b,last,_10d,_10e,_10f,_110;
var _111=function(_112){
dojo.query("> *",_112).forEach(function(_113){
var _114=dijit._isElementShown(_113);
if(_114&&dijit.isTabNavigable(_113)){
var _115=dojo.attr(_113,"tabindex");
if(!dojo.hasAttr(_113,"tabindex")||_115==0){
if(!_10b){
_10b=_113;
}
last=_113;
}else{
if(_115>0){
if(!_10d||_115<_10e){
_10e=_115;
_10d=_113;
}
if(!_10f||_115>=_110){
_110=_115;
_10f=_113;
}
}
}
}
if(_114&&_113.nodeName.toUpperCase()!="SELECT"){
_111(_113);
}
});
};
if(dijit._isElementShown(root)){
_111(root);
}
return {first:_10b,last:last,lowest:_10d,highest:_10f};
};
dijit.getFirstInTabbingOrder=function(root){
var _117=dijit._getTabNavigable(dojo.byId(root));
return _117.lowest?_117.lowest:_117.first;
};
dijit.getLastInTabbingOrder=function(root){
var _119=dijit._getTabNavigable(dojo.byId(root));
return _119.last?_119.last:_119.highest;
};
dijit.defaultDuration=dojo.config["defaultDuration"]||200;
}
if(!dojo._hasResource["dojo.AdapterRegistry"]){
dojo._hasResource["dojo.AdapterRegistry"]=true;
dojo.provide("dojo.AdapterRegistry");
dojo.AdapterRegistry=function(_11a){
this.pairs=[];
this.returnWrappers=_11a||false;
};
dojo.extend(dojo.AdapterRegistry,{register:function(name,_11c,wrap,_11e,_11f){
this.pairs[((_11f)?"unshift":"push")]([name,_11c,wrap,_11e]);
},match:function(){
for(var i=0;i<this.pairs.length;i++){
var pair=this.pairs[i];
if(pair[1].apply(this,arguments)){
if((pair[3])||(this.returnWrappers)){
return pair[2];
}else{
return pair[2].apply(this,arguments);
}
}
}
throw new Error("No match found");
},unregister:function(name){
for(var i=0;i<this.pairs.length;i++){
var pair=this.pairs[i];
if(pair[0]==name){
this.pairs.splice(i,1);
return true;
}
}
return false;
}});
}
if(!dojo._hasResource["dijit._base.place"]){
dojo._hasResource["dijit._base.place"]=true;
dojo.provide("dijit._base.place");
dijit.getViewport=function(){
var _125=(dojo.doc.compatMode=="BackCompat")?dojo.body():dojo.doc.documentElement;
var _126=dojo._docScroll();
return {w:_125.clientWidth,h:_125.clientHeight,l:_126.x,t:_126.y};
};
dijit.placeOnScreen=function(node,pos,_129,_12a){
var _12b=dojo.map(_129,function(_12c){
var c={corner:_12c,pos:{x:pos.x,y:pos.y}};
if(_12a){
c.pos.x+=_12c.charAt(1)=="L"?_12a.x:-_12a.x;
c.pos.y+=_12c.charAt(0)=="T"?_12a.y:-_12a.y;
}
return c;
});
return dijit._place(node,_12b);
};
dijit._place=function(node,_12f,_130){
var view=dijit.getViewport();
if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){
dojo.body().appendChild(node);
}
var best=null;
dojo.some(_12f,function(_133){
var _134=_133.corner;
var pos=_133.pos;
if(_130){
_130(node,_133.aroundCorner,_134);
}
var _136=node.style;
var _137=_136.display;
var _138=_136.visibility;
_136.visibility="hidden";
_136.display="";
var mb=dojo.marginBox(node);
_136.display=_137;
_136.visibility=_138;
var _13a=(_134.charAt(1)=="L"?pos.x:Math.max(view.l,pos.x-mb.w)),_13b=(_134.charAt(0)=="T"?pos.y:Math.max(view.t,pos.y-mb.h)),endX=(_134.charAt(1)=="L"?Math.min(view.l+view.w,_13a+mb.w):pos.x),endY=(_134.charAt(0)=="T"?Math.min(view.t+view.h,_13b+mb.h):pos.y),_13e=endX-_13a,_13f=endY-_13b,_140=(mb.w-_13e)+(mb.h-_13f);
if(best==null||_140<best.overflow){
best={corner:_134,aroundCorner:_133.aroundCorner,x:_13a,y:_13b,w:_13e,h:_13f,overflow:_140};
}
return !_140;
});
node.style.left=best.x+"px";
node.style.top=best.y+"px";
if(best.overflow&&_130){
_130(node,best.aroundCorner,best.corner);
}
return best;
};
dijit.placeOnScreenAroundNode=function(node,_142,_143,_144){
_142=dojo.byId(_142);
var _145=_142.style.display;
_142.style.display="";
var _146=_142.offsetWidth;
var _147=_142.offsetHeight;
var _148=dojo.coords(_142,true);
_142.style.display=_145;
return dijit._placeOnScreenAroundRect(node,_148.x,_148.y,_146,_147,_143,_144);
};
dijit.placeOnScreenAroundRectangle=function(node,_14a,_14b,_14c){
return dijit._placeOnScreenAroundRect(node,_14a.x,_14a.y,_14a.width,_14a.height,_14b,_14c);
};
dijit._placeOnScreenAroundRect=function(node,x,y,_150,_151,_152,_153){
var _154=[];
for(var _155 in _152){
_154.push({aroundCorner:_155,corner:_152[_155],pos:{x:x+(_155.charAt(1)=="L"?0:_150),y:y+(_155.charAt(0)=="T"?0:_151)}});
}
return dijit._place(node,_154,_153);
};
dijit.placementRegistry=new dojo.AdapterRegistry();
dijit.placementRegistry.register("node",function(n,x){
return typeof x=="object"&&typeof x.offsetWidth!="undefined"&&typeof x.offsetHeight!="undefined";
},dijit.placeOnScreenAroundNode);
dijit.placementRegistry.register("rect",function(n,x){
return typeof x=="object"&&"x" in x&&"y" in x&&"width" in x&&"height" in x;
},dijit.placeOnScreenAroundRectangle);
dijit.placeOnScreenAroundElement=function(node,_15b,_15c,_15d){
return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);
};
}
if(!dojo._hasResource["dijit._base.window"]){
dojo._hasResource["dijit._base.window"]=true;
dojo.provide("dijit._base.window");
dijit.getDocumentWindow=function(doc){
if(dojo.isIE&&window!==document.parentWindow&&!doc._parentWindow){
doc.parentWindow.execScript("document._parentWindow = window;","Javascript");
var win=doc._parentWindow;
doc._parentWindow=null;
return win;
}
return doc._parentWindow||doc.parentWindow||doc.defaultView;
};
}
if(!dojo._hasResource["dijit._base.popup"]){
dojo._hasResource["dijit._base.popup"]=true;
dojo.provide("dijit._base.popup");
dijit.popup=new function(){
var _160=[],_161=1000,_162=1;
this.prepare=function(node){
var s=node.style;
s.visibility="hidden";
s.position="absolute";
s.top="-9999px";
if(s.display=="none"){
s.display="";
}
dojo.body().appendChild(node);
};
this.open=function(args){
var _166=args.popup,_167=args.orient||{"BL":"TL","TL":"BL"},_168=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+_162++);
var _16a=dojo.create("div",{id:id,"class":"dijitPopup",style:{zIndex:_161+_160.length,visibility:"hidden"}},dojo.body());
dijit.setWaiRole(_16a,"presentation");
_16a.style.left=_16a.style.top="0px";
if(args.parent){
_16a.dijitPopupParent=args.parent.id;
}
var s=_166.domNode.style;
s.display="";
s.visibility="";
s.position="";
s.top="0px";
_16a.appendChild(_166.domNode);
var _16c=new dijit.BackgroundIframe(_16a);
var best=_168?dijit.placeOnScreenAroundElement(_16a,_168,_167,_166.orient?dojo.hitch(_166,"orient"):null):dijit.placeOnScreen(_16a,args,_167=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],args.padding);
_16a.style.visibility="visible";
var _16e=[];
var _16f=function(){
for(var pi=_160.length-1;pi>0&&_160[pi].parent===_160[pi-1].widget;pi--){
}
return _160[pi];
};
_16e.push(dojo.connect(_16a,"onkeypress",this,function(evt){
if(evt.charOrCode==dojo.keys.ESCAPE&&args.onCancel){
dojo.stopEvent(evt);
args.onCancel();
}else{
if(evt.charOrCode===dojo.keys.TAB){
dojo.stopEvent(evt);
var _172=_16f();
if(_172&&_172.onCancel){
_172.onCancel();
}
}
}
}));
if(_166.onCancel){
_16e.push(dojo.connect(_166,"onCancel",null,args.onCancel));
}
_16e.push(dojo.connect(_166,_166.onExecute?"onExecute":"onChange",null,function(){
var _173=_16f();
if(_173&&_173.onExecute){
_173.onExecute();
}
}));
_160.push({wrapper:_16a,iframe:_16c,widget:_166,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_16e});
if(_166.onOpen){
_166.onOpen(best);
}
return best;
};
this.close=function(_174){
while(dojo.some(_160,function(elem){
return elem.widget==_174;
})){
var top=_160.pop(),_177=top.wrapper,_178=top.iframe,_179=top.widget,_17a=top.onClose;
if(_179.onClose){
_179.onClose();
}
dojo.forEach(top.handlers,dojo.disconnect);
if(!_179||!_179.domNode){
return;
}
this.prepare(_179.domNode);
_178.destroy();
dojo.destroy(_177);
if(_17a){
_17a();
}
}
};
}();
dijit._frames=new function(){
var _17b=[];
this.pop=function(){
var _17c;
if(_17b.length){
_17c=_17b.pop();
_17c.style.display="";
}else{
if(dojo.isIE){
var burl=dojo.config["dojoBlankHtmlUrl"]||(dojo.moduleUrl("dojo","resources/blank.html")+"")||"javascript:\"\"";
var html="<iframe src='"+burl+"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";
_17c=dojo.doc.createElement(html);
}else{
_17c=dojo.create("iframe");
_17c.src="javascript:\"\"";
_17c.className="dijitBackgroundIframe";
}
_17c.tabIndex=-1;
dojo.body().appendChild(_17c);
}
return _17c;
};
this.push=function(_17f){
_17f.style.display="none";
if(dojo.isIE){
_17f.style.removeExpression("width");
_17f.style.removeExpression("height");
}
_17b.push(_17f);
};
}();
dijit.BackgroundIframe=function(node){
if(!node.id){
throw new Error("no id");
}
if(dojo.isIE<7||(dojo.isFF<3&&dojo.hasClass(dojo.body(),"dijit_a11y"))){
var _181=dijit._frames.pop();
node.appendChild(_181);
if(dojo.isIE){
_181.style.setExpression("width",dojo._scopeName+".doc.getElementById('"+node.id+"').offsetWidth");
_181.style.setExpression("height",dojo._scopeName+".doc.getElementById('"+node.id+"').offsetHeight");
}
this.iframe=_181;
}
};
dojo.extend(dijit.BackgroundIframe,{destroy:function(){
if(this.iframe){
dijit._frames.push(this.iframe);
delete this.iframe;
}
}});
}
if(!dojo._hasResource["dijit._base.scroll"]){
dojo._hasResource["dijit._base.scroll"]=true;
dojo.provide("dijit._base.scroll");
dijit.scrollIntoView=function(node){
try{
node=dojo.byId(node);
var doc=dojo.doc;
var body=dojo.body();
var html=body.parentNode;
if((!(dojo.isFF>=3||dojo.isIE||dojo.isWebKit)||node==body||node==html)&&(typeof node.scrollIntoView=="function")){
node.scrollIntoView(false);
return;
}
var ltr=dojo._isBodyLtr();
var _187=dojo.isIE>=8&&!_188;
var rtl=!ltr&&!_187;
var _18a=body;
var _188=doc.compatMode=="BackCompat";
if(_188){
html._offsetWidth=html._clientWidth=body._offsetWidth=body.clientWidth;
html._offsetHeight=html._clientHeight=body._offsetHeight=body.clientHeight;
}else{
if(dojo.isWebKit){
body._offsetWidth=body._clientWidth=html.clientWidth;
body._offsetHeight=body._clientHeight=html.clientHeight;
}else{
_18a=html;
}
html._offsetHeight=html.clientHeight;
html._offsetWidth=html.clientWidth;
}
function _18b(_18c){
var ie=dojo.isIE;
return ((ie<=6||(ie>=7&&_188))?false:(dojo.style(_18c,"position").toLowerCase()=="fixed"));
};
function _18e(_18f){
var _190=_18f.parentNode;
var _191=_18f.offsetParent;
if(_191==null||_18b(_18f)){
_191=html;
_190=(_18f==body)?html:null;
}
_18f._offsetParent=_191;
_18f._parent=_190;
var bp=dojo._getBorderExtents(_18f);
_18f._borderStart={H:(_187&&!ltr)?(bp.w-bp.l):bp.l,V:bp.t};
_18f._borderSize={H:bp.w,V:bp.h};
_18f._scrolledAmount={H:_18f.scrollLeft,V:_18f.scrollTop};
_18f._offsetSize={H:_18f._offsetWidth||_18f.offsetWidth,V:_18f._offsetHeight||_18f.offsetHeight};
_18f._offsetStart={H:(_187&&!ltr)?_191.clientWidth-_18f.offsetLeft-_18f._offsetSize.H:_18f.offsetLeft,V:_18f.offsetTop};
_18f._clientSize={H:_18f._clientWidth||_18f.clientWidth,V:_18f._clientHeight||_18f.clientHeight};
if(_18f!=body&&_18f!=html&&_18f!=node){
for(var dir in _18f._offsetSize){
var _194=_18f._offsetSize[dir]-_18f._clientSize[dir]-_18f._borderSize[dir];
var _195=_18f._clientSize[dir]>0&&_194>0;
if(_195){
_18f._offsetSize[dir]-=_194;
if(dojo.isIE&&rtl&&dir=="H"){
_18f._offsetStart[dir]+=_194;
}
}
}
}
};
var _196=node;
while(_196!=null){
if(_18b(_196)){
node.scrollIntoView(false);
return;
}
_18e(_196);
_196=_196._parent;
}
if(dojo.isIE&&node._parent){
var _197=node._offsetParent;
node._offsetStart.H+=_197._borderStart.H;
node._offsetStart.V+=_197._borderStart.V;
}
if(dojo.isIE>=7&&_18a==html&&rtl&&body._offsetStart&&body._offsetStart.H==0){
var _198=html.scrollWidth-html._offsetSize.H;
if(_198>0){
body._offsetStart.H=-_198;
}
}
if(dojo.isIE<=6&&!_188){
html._offsetSize.H+=html._borderSize.H;
html._offsetSize.V+=html._borderSize.V;
}
if(rtl&&body._offsetStart&&_18a==html&&html._scrolledAmount){
var ofs=body._offsetStart.H;
if(ofs<0){
html._scrolledAmount.H+=ofs;
body._offsetStart.H=0;
}
}
_196=node;
while(_196){
var _19a=_196._parent;
if(!_19a){
break;
}
if(_19a.tagName=="TD"){
var _19b=_19a._parent._parent._parent;
if(_19a!=_196._offsetParent&&_19a._offsetParent!=_196._offsetParent){
_19a=_19b;
}
}
var _19c=_196._offsetParent==_19a;
for(var dir in _196._offsetStart){
var _19e=dir=="H"?"V":"H";
if(rtl&&dir=="H"&&(_19a!=html)&&(_19a!=body)&&(dojo.isIE||dojo.isWebKit)&&_19a._clientSize.H>0&&_19a.scrollWidth>_19a._clientSize.H){
var _19f=_19a.scrollWidth-_19a._clientSize.H;
if(_19f>0){
_19a._scrolledAmount.H-=_19f;
}
}
if(_19a._offsetParent.tagName=="TABLE"){
if(dojo.isIE){
_19a._offsetStart[dir]-=_19a._offsetParent._borderStart[dir];
_19a._borderStart[dir]=_19a._borderSize[dir]=0;
}else{
_19a._offsetStart[dir]+=_19a._offsetParent._borderStart[dir];
}
}
if(dojo.isIE){
_19a._offsetStart[dir]+=_19a._offsetParent._borderStart[dir];
}
var _1a0=_196._offsetStart[dir]-_19a._scrolledAmount[dir]-(_19c?0:_19a._offsetStart[dir])-_19a._borderStart[dir];
var _1a1=_1a0+_196._offsetSize[dir]-_19a._offsetSize[dir]+_19a._borderSize[dir];
var _1a2=(dir=="H")?"scrollLeft":"scrollTop";
var _1a3=dir=="H"&&rtl;
var _1a4=_1a3?-_1a1:_1a0;
var _1a5=_1a3?-_1a0:_1a1;
var _1a6=(_1a4*_1a5<=0)?0:Math[(_1a4<0)?"max":"min"](_1a4,_1a5);
if(_1a6!=0){
var _1a7=_19a[_1a2];
_19a[_1a2]+=(_1a3)?-_1a6:_1a6;
var _1a8=_19a[_1a2]-_1a7;
}
if(_19c){
_196._offsetStart[dir]+=_19a._offsetStart[dir];
}
_196._offsetStart[dir]-=_19a[_1a2];
}
_196._parent=_19a._parent;
_196._offsetParent=_19a._offsetParent;
}
_19a=node;
var next;
while(_19a&&_19a.removeAttribute){
next=_19a.parentNode;
_19a.removeAttribute("_offsetParent");
_19a.removeAttribute("_parent");
_19a=next;
}
}
catch(error){
console.error("scrollIntoView: "+error);
node.scrollIntoView(false);
}
};
}
if(!dojo._hasResource["dijit._base.sniff"]){
dojo._hasResource["dijit._base.sniff"]=true;
dojo.provide("dijit._base.sniff");
(function(){
var d=dojo,html=d.doc.documentElement,ie=d.isIE,_1ad=d.isOpera,maj=Math.floor,ff=d.isFF,_1b0=d.boxModel.replace(/-/,""),_1b1={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_iequirks:ie&&d.isQuirks,dj_opera:_1ad,dj_opera8:maj(_1ad)==8,dj_opera9:maj(_1ad)==9,dj_khtml:d.isKhtml,dj_webkit:d.isWebKit,dj_safari:d.isSafari,dj_gecko:d.isMozilla,dj_ff2:maj(ff)==2,dj_ff3:maj(ff)==3};
_1b1["dj_"+_1b0]=true;
for(var p in _1b1){
if(_1b1[p]){
if(html.className){
html.className+=" "+p;
}else{
html.className=p;
}
}
}
dojo._loaders.unshift(function(){
if(!dojo._isBodyLtr()){
html.className+=" dijitRtl";
for(var p in _1b1){
if(_1b1[p]){
html.className+=" "+p+"-rtl";
}
}
}
});
})();
}
if(!dojo._hasResource["dijit._base.typematic"]){
dojo._hasResource["dijit._base.typematic"]=true;
dojo.provide("dijit._base.typematic");
dijit.typematic={_fireEventAndReload:function(){
this._timer=null;
this._callback(++this._count,this._node,this._evt);
this._currentTimeout=(this._currentTimeout<0)?this._initialDelay:((this._subsequentDelay>1)?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay));
this._timer=setTimeout(dojo.hitch(this,"_fireEventAndReload"),this._currentTimeout);
},trigger:function(evt,_1b5,node,_1b7,obj,_1b9,_1ba){
if(obj!=this._obj){
this.stop();
this._initialDelay=_1ba||500;
this._subsequentDelay=_1b9||0.9;
this._obj=obj;
this._evt=evt;
this._node=node;
this._currentTimeout=-1;
this._count=-1;
this._callback=dojo.hitch(_1b5,_1b7);
this._fireEventAndReload();
}
},stop:function(){
if(this._timer){
clearTimeout(this._timer);
this._timer=null;
}
if(this._obj){
this._callback(-1,this._node,this._evt);
this._obj=null;
}
},addKeyListener:function(node,_1bc,_1bd,_1be,_1bf,_1c0){
if(_1bc.keyCode){
_1bc.charOrCode=_1bc.keyCode;
dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");
}else{
if(_1bc.charCode){
_1bc.charOrCode=String.fromCharCode(_1bc.charCode);
dojo.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");
}
}
return [dojo.connect(node,"onkeypress",this,function(evt){
if(evt.charOrCode==_1bc.charOrCode&&(_1bc.ctrlKey===undefined||_1bc.ctrlKey==evt.ctrlKey)&&(_1bc.altKey===undefined||_1bc.altKey==evt.ctrlKey)&&(_1bc.shiftKey===undefined||_1bc.shiftKey==evt.ctrlKey)){
dojo.stopEvent(evt);
dijit.typematic.trigger(_1bc,_1bd,node,_1be,_1bc,_1bf,_1c0);
}else{
if(dijit.typematic._obj==_1bc){
dijit.typematic.stop();
}
}
}),dojo.connect(node,"onkeyup",this,function(evt){
if(dijit.typematic._obj==_1bc){
dijit.typematic.stop();
}
})];
},addMouseListener:function(node,_1c4,_1c5,_1c6,_1c7){
var dc=dojo.connect;
return [dc(node,"mousedown",this,function(evt){
dojo.stopEvent(evt);
dijit.typematic.trigger(evt,_1c4,node,_1c5,node,_1c6,_1c7);
}),dc(node,"mouseup",this,function(evt){
dojo.stopEvent(evt);
dijit.typematic.stop();
}),dc(node,"mouseout",this,function(evt){
dojo.stopEvent(evt);
dijit.typematic.stop();
}),dc(node,"mousemove",this,function(evt){
dojo.stopEvent(evt);
}),dc(node,"dblclick",this,function(evt){
dojo.stopEvent(evt);
if(dojo.isIE){
dijit.typematic.trigger(evt,_1c4,node,_1c5,node,_1c6,_1c7);
setTimeout(dojo.hitch(this,dijit.typematic.stop),50);
}
})];
},addListener:function(_1ce,_1cf,_1d0,_1d1,_1d2,_1d3,_1d4){
return this.addKeyListener(_1cf,_1d0,_1d1,_1d2,_1d3,_1d4).concat(this.addMouseListener(_1ce,_1d1,_1d2,_1d3,_1d4));
}};
}
if(!dojo._hasResource["dijit._base.wai"]){
dojo._hasResource["dijit._base.wai"]=true;
dojo.provide("dijit._base.wai");
dijit.wai={onload:function(){
var div=dojo.create("div",{id:"a11yTestNode",style:{cssText:"border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif"))+"\");"}},dojo.body());
var cs=dojo.getComputedStyle(div);
if(cs){
var _1d7=cs.backgroundImage;
var _1d8=(cs.borderTopColor==cs.borderRightColor)||(_1d7!=null&&(_1d7=="none"||_1d7=="url(invalid-url:)"));
dojo[_1d8?"addClass":"removeClass"](dojo.body(),"dijit_a11y");
if(dojo.isIE){
div.outerHTML="";
}else{
dojo.body().removeChild(div);
}
}
}};
if(dojo.isIE||dojo.isMoz){
dojo._loaders.unshift(dijit.wai.onload);
}
dojo.mixin(dijit,{_XhtmlRoles:/banner|contentinfo|definition|main|navigation|search|note|secondary|seealso/,hasWaiRole:function(elem,role){
var _1db=this.getWaiRole(elem);
return role?(_1db.indexOf(role)>-1):(_1db.length>0);
},getWaiRole:function(elem){
return dojo.trim((dojo.attr(elem,"role")||"").replace(this._XhtmlRoles,"").replace("wairole:",""));
},setWaiRole:function(elem,role){
var _1df=dojo.attr(elem,"role")||"";
if(dojo.isFF<3||!this._XhtmlRoles.test(_1df)){
dojo.attr(elem,"role",dojo.isFF<3?"wairole:"+role:role);
}else{
if((" "+_1df+" ").indexOf(" "+role+" ")<0){
var _1e0=dojo.trim(_1df.replace(this._XhtmlRoles,""));
var _1e1=dojo.trim(_1df.replace(_1e0,""));
dojo.attr(elem,"role",_1e1+(_1e1?" ":"")+role);
}
}
},removeWaiRole:function(elem,role){
var _1e4=dojo.attr(elem,"role");
if(!_1e4){
return;
}
if(role){
var _1e5=dojo.isFF<3?"wairole:"+role:role;
var t=dojo.trim((" "+_1e4+" ").replace(" "+_1e5+" "," "));
dojo.attr(elem,"role",t);
}else{
elem.removeAttribute("role");
}
},hasWaiState:function(elem,_1e8){
if(dojo.isFF<3){
return elem.hasAttributeNS("http://www.w3.org/2005/07/aaa",_1e8);
}
return elem.hasAttribute?elem.hasAttribute("aria-"+_1e8):!!elem.getAttribute("aria-"+_1e8);
},getWaiState:function(elem,_1ea){
if(dojo.isFF<3){
return elem.getAttributeNS("http://www.w3.org/2005/07/aaa",_1ea);
}
return elem.getAttribute("aria-"+_1ea)||"";
},setWaiState:function(elem,_1ec,_1ed){
if(dojo.isFF<3){
elem.setAttributeNS("http://www.w3.org/2005/07/aaa","aaa:"+_1ec,_1ed);
}else{
elem.setAttribute("aria-"+_1ec,_1ed);
}
},removeWaiState:function(elem,_1ef){
if(dojo.isFF<3){
elem.removeAttributeNS("http://www.w3.org/2005/07/aaa",_1ef);
}else{
elem.removeAttribute("aria-"+_1ef);
}
}});
}
if(!dojo._hasResource["dijit._base"]){
dojo._hasResource["dijit._base"]=true;
dojo.provide("dijit._base");
}
if(!dojo._hasResource["dijit._Widget"]){
dojo._hasResource["dijit._Widget"]=true;
dojo.provide("dijit._Widget");
dojo.require("dijit._base");
dojo.connect(dojo,"connect",function(_1f0,_1f1){
if(_1f0&&dojo.isFunction(_1f0._onConnect)){
_1f0._onConnect(_1f1);
}
});
dijit._connectOnUseEventHandler=function(_1f2){
};
(function(){
var _1f3={};
var _1f4=function(dc){
if(!_1f3[dc]){
var r=[];
var _1f7;
var _1f8=dojo.getObject(dc).prototype;
for(var _1f9 in _1f8){
if(dojo.isFunction(_1f8[_1f9])&&(_1f7=_1f9.match(/^_set([a-zA-Z]*)Attr$/))&&_1f7[1]){
r.push(_1f7[1].charAt(0).toLowerCase()+_1f7[1].substr(1));
}
}
_1f3[dc]=r;
}
return _1f3[dc]||[];
};
dojo.declare("dijit._Widget",null,{id:"",lang:"",dir:"","class":"",style:"",title:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},_deferredConnects:{onClick:"",onDblClick:"",onKeyDown:"",onKeyPress:"",onKeyUp:"",onMouseMove:"",onMouseDown:"",onMouseOut:"",onMouseOver:"",onMouseLeave:"",onMouseEnter:"",onMouseUp:""},onClick:dijit._connectOnUseEventHandler,onDblClick:dijit._connectOnUseEventHandler,onKeyDown:dijit._connectOnUseEventHandler,onKeyPress:dijit._connectOnUseEventHandler,onKeyUp:dijit._connectOnUseEventHandler,onMouseDown:dijit._connectOnUseEventHandler,onMouseMove:dijit._connectOnUseEventHandler,onMouseOut:dijit._connectOnUseEventHandler,onMouseOver:dijit._connectOnUseEventHandler,onMouseLeave:dijit._connectOnUseEventHandler,onMouseEnter:dijit._connectOnUseEventHandler,onMouseUp:dijit._connectOnUseEventHandler,_blankGif:(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif")),postscript:function(_1fa,_1fb){
this.create(_1fa,_1fb);
},create:function(_1fc,_1fd){
this.srcNodeRef=dojo.byId(_1fd);
this._connects=[];
this._deferredConnects=dojo.clone(this._deferredConnects);
for(var attr in this.attributeMap){
delete this._deferredConnects[attr];
}
for(attr in this._deferredConnects){
if(this[attr]!==dijit._connectOnUseEventHandler){
delete this._deferredConnects[attr];
}
}
if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){
this.id=this.srcNodeRef.id;
}
if(_1fc){
this.params=_1fc;
dojo.mixin(this,_1fc);
}
this.postMixInProperties();
if(!this.id){
this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"));
}
dijit.registry.add(this);
this.buildRendering();
if(this.domNode){
this._applyAttributes();
var _1ff=this.srcNodeRef;
if(_1ff&&_1ff.parentNode){
_1ff.parentNode.replaceChild(this.domNode,_1ff);
}
for(attr in this.params){
this._onConnect(attr);
}
}
if(this.domNode){
this.domNode.setAttribute("widgetId",this.id);
}
this.postCreate();
if(this.srcNodeRef&&!this.srcNodeRef.parentNode){
delete this.srcNodeRef;
}
this._created=true;
},_applyAttributes:function(){
var _200=function(attr,_202){
if((_202.params&&attr in _202.params)||_202[attr]){
_202.attr(attr,_202[attr]);
}
};
for(var attr in this.attributeMap){
_200(attr,this);
}
dojo.forEach(_1f4(this.declaredClass),function(a){
if(!(a in this.attributeMap)){
_200(a,this);
}
},this);
},postMixInProperties:function(){
},buildRendering:function(){
this.domNode=this.srcNodeRef||dojo.create("div");
},postCreate:function(){
},startup:function(){
this._started=true;
},destroyRecursive:function(_205){
this.destroyDescendants(_205);
this.destroy(_205);
},destroy:function(_206){
this.uninitialize();
dojo.forEach(this._connects,function(_207){
dojo.forEach(_207,dojo.disconnect);
});
dojo.forEach(this._supportingWidgets||[],function(w){
if(w.destroy){
w.destroy();
}
});
this.destroyRendering(_206);
dijit.registry.remove(this.id);
},destroyRendering:function(_209){
if(this.bgIframe){
this.bgIframe.destroy(_209);
delete this.bgIframe;
}
if(this.domNode){
if(_209){
dojo.removeAttr(this.domNode,"widgetId");
}else{
dojo.destroy(this.domNode);
}
delete this.domNode;
}
if(this.srcNodeRef){
if(!_209){
dojo.destroy(this.srcNodeRef);
}
delete this.srcNodeRef;
}
},destroyDescendants:function(_20a){
dojo.forEach(this.getChildren(),function(_20b){
if(_20b.destroyRecursive){
_20b.destroyRecursive(_20a);
}
});
},uninitialize:function(){
return false;
},onFocus:function(){
},onBlur:function(){
},_onFocus:function(e){
this.onFocus();
},_onBlur:function(){
this.onBlur();
},_onConnect:function(_20d){
if(_20d in this._deferredConnects){
var _20e=this[this._deferredConnects[_20d]||"domNode"];
this.connect(_20e,_20d.toLowerCase(),_20d);
delete this._deferredConnects[_20d];
}
},_setClassAttr:function(_20f){
var _210=this[this.attributeMap["class"]||"domNode"];
dojo.removeClass(_210,this["class"]);
this["class"]=_20f;
dojo.addClass(_210,_20f);
},_setStyleAttr:function(_211){
var _212=this[this.attributeMap["style"]||"domNode"];
if(dojo.isObject(_211)){
dojo.style(_212,_211);
}else{
if(_212.style.cssText){
_212.style.cssText+="; "+_211;
}else{
_212.style.cssText=_211;
}
}
this["style"]=_211;
},setAttribute:function(attr,_214){
dojo.deprecated(this.declaredClass+"::setAttribute() is deprecated. Use attr() instead.","","2.0");
this.attr(attr,_214);
},_attrToDom:function(attr,_216){
var _217=this.attributeMap[attr];
dojo.forEach(dojo.isArray(_217)?_217:[_217],function(_218){
var _219=this[_218.node||_218||"domNode"];
var type=_218.type||"attribute";
switch(type){
case "attribute":
if(dojo.isFunction(_216)){
_216=dojo.hitch(this,_216);
}
if(/^on[A-Z][a-zA-Z]*$/.test(attr)){
attr=attr.toLowerCase();
}
dojo.attr(_219,attr,_216);
break;
case "innerHTML":
_219.innerHTML=_216;
break;
case "class":
dojo.removeClass(_219,this[attr]);
dojo.addClass(_219,_216);
break;
}
},this);
this[attr]=_216;
},attr:function(name,_21c){
var args=arguments.length;
if(args==1&&!dojo.isString(name)){
for(var x in name){
this.attr(x,name[x]);
}
return this;
}
var _21f=this._getAttrNames(name);
if(args==2){
if(this[_21f.s]){
return this[_21f.s](_21c)||this;
}else{
if(name in this.attributeMap){
this._attrToDom(name,_21c);
}
this[name]=_21c;
}
return this;
}else{
if(this[_21f.g]){
return this[_21f.g]();
}else{
return this[name];
}
}
},_attrPairNames:{},_getAttrNames:function(name){
var apn=this._attrPairNames;
if(apn[name]){
return apn[name];
}
var uc=name.charAt(0).toUpperCase()+name.substr(1);
return apn[name]={n:name+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr"};
},toString:function(){
return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";
},getDescendants:function(){
if(this.containerNode){
var list=dojo.query("[widgetId]",this.containerNode);
return list.map(dijit.byNode);
}else{
return [];
}
},getChildren:function(){
if(this.containerNode){
return dijit.findWidgets(this.containerNode);
}else{
return [];
}
},nodesWithKeyClick:["input","button"],connect:function(obj,_225,_226){
var d=dojo;
var dc=dojo.connect;
var _229=[];
if(_225=="ondijitclick"){
if(!this.nodesWithKeyClick[obj.nodeName]){
var m=d.hitch(this,_226);
_229.push(dc(obj,"onkeydown",this,function(e){
if(!d.isFF&&e.keyCode==d.keys.ENTER&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){
return m(e);
}else{
if(e.keyCode==d.keys.SPACE){
d.stopEvent(e);
}
}
}),dc(obj,"onkeyup",this,function(e){
if(e.keyCode==d.keys.SPACE&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){
return m(e);
}
}));
if(d.isFF){
_229.push(dc(obj,"onkeypress",this,function(e){
if(e.keyCode==d.keys.ENTER&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){
return m(e);
}
}));
}
}
_225="onclick";
}
_229.push(dc(obj,_225,this,_226));
this._connects.push(_229);
return _229;
},disconnect:function(_22e){
for(var i=0;i<this._connects.length;i++){
if(this._connects[i]==_22e){
dojo.forEach(_22e,dojo.disconnect);
this._connects.splice(i,1);
return;
}
}
},isLeftToRight:function(){
return dojo._isBodyLtr();
},isFocusable:function(){
return this.focus&&(dojo.style(this.domNode,"display")!="none");
},placeAt:function(_230,_231){
if(_230["declaredClass"]&&_230["addChild"]){
_230.addChild(this,_231);
}else{
dojo.place(this.domNode,_230,_231);
}
return this;
}});
})();
}
if(!dojo._hasResource["dojo.string"]){
dojo._hasResource["dojo.string"]=true;
dojo.provide("dojo.string");
dojo.string.rep=function(str,num){
if(num<=0||!str){
return "";
}
var buf=[];
for(;;){
if(num&1){
buf.push(str);
}
if(!(num>>=1)){
break;
}
str+=str;
}
return buf.join("");
};
dojo.string.pad=function(text,size,ch,end){
if(!ch){
ch="0";
}
var out=String(text),pad=dojo.string.rep(ch,Math.ceil((size-out.length)/ch.length));
return end?out+pad:pad+out;
};
dojo.string.substitute=function(_23b,map,_23d,_23e){
_23e=_23e||dojo.global;
_23d=(!_23d)?function(v){
return v;
}:dojo.hitch(_23e,_23d);
return _23b.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_240,key,_242){
var _243=dojo.getObject(key,false,map);
if(_242){
_243=dojo.getObject(_242,false,_23e).call(_23e,_243,key);
}
return _23d(_243,key).toString();
});
};
dojo.string.trim=String.prototype.trim?dojo.trim:function(str){
str=str.replace(/^\s+/,"");
for(var i=str.length-1;i>=0;i--){
if(/\S/.test(str.charAt(i))){
str=str.substring(0,i+1);
break;
}
}
return str;
};
}
if(!dojo._hasResource["dijit._Templated"]){
dojo._hasResource["dijit._Templated"]=true;
dojo.provide("dijit._Templated");
dojo.declare("dijit._Templated",null,{templateString:null,templatePath:null,widgetsInTemplate:false,_skipNodeCache:false,_stringRepl:function(tmpl){
var _247=this.declaredClass,_248=this;
return dojo.string.substitute(tmpl,this,function(_249,key){
if(key.charAt(0)=="!"){
_249=dojo.getObject(key.substr(1),false,_248);
}
if(typeof _249=="undefined"){
throw new Error(_247+" template:"+key);
}
if(_249==null){
return "";
}
return key.charAt(0)=="!"?_249:_249.toString().replace(/"/g,"&quot;");
},this);
},buildRendering:function(){
var _24b=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);
var node;
if(dojo.isString(_24b)){
node=dojo._toDom(this._stringRepl(_24b));
}else{
node=_24b.cloneNode(true);
}
this.domNode=node;
this._attachTemplateNodes(node);
if(this.widgetsInTemplate){
var cw=(this._supportingWidgets=dojo.parser.parse(node));
this._attachTemplateNodes(cw,function(n,p){
return n[p];
});
}
this._fillContent(this.srcNodeRef);
},_fillContent:function(_250){
var dest=this.containerNode;
if(_250&&dest){
while(_250.hasChildNodes()){
dest.appendChild(_250.firstChild);
}
}
},_attachTemplateNodes:function(_252,_253){
_253=_253||function(n,p){
return n.getAttribute(p);
};
var _256=dojo.isArray(_252)?_252:(_252.all||_252.getElementsByTagName("*"));
var x=dojo.isArray(_252)?0:-1;
for(;x<_256.length;x++){
var _258=(x==-1)?_252:_256[x];
if(this.widgetsInTemplate&&_253(_258,"dojoType")){
continue;
}
var _259=_253(_258,"dojoAttachPoint");
if(_259){
var _25a,_25b=_259.split(/\s*,\s*/);
while((_25a=_25b.shift())){
if(dojo.isArray(this[_25a])){
this[_25a].push(_258);
}else{
this[_25a]=_258;
}
}
}
var _25c=_253(_258,"dojoAttachEvent");
if(_25c){
var _25d,_25e=_25c.split(/\s*,\s*/);
var trim=dojo.trim;
while((_25d=_25e.shift())){
if(_25d){
var _260=null;
if(_25d.indexOf(":")!=-1){
var _261=_25d.split(":");
_25d=trim(_261[0]);
_260=trim(_261[1]);
}else{
_25d=trim(_25d);
}
if(!_260){
_260=_25d;
}
this.connect(_258,_25d,_260);
}
}
}
var role=_253(_258,"waiRole");
if(role){
dijit.setWaiRole(_258,role);
}
var _263=_253(_258,"waiState");
if(_263){
dojo.forEach(_263.split(/\s*,\s*/),function(_264){
if(_264.indexOf("-")!=-1){
var pair=_264.split("-");
dijit.setWaiState(_258,pair[0],pair[1]);
}
});
}
}
}});
dijit._Templated._templateCache={};
dijit._Templated.getCachedTemplate=function(_266,_267,_268){
var _269=dijit._Templated._templateCache;
var key=_267||_266;
var _26b=_269[key];
if(_26b){
if(!_26b.ownerDocument||_26b.ownerDocument==dojo.doc){
return _26b;
}
dojo.destroy(_26b);
}
if(!_267){
_267=dijit._Templated._sanitizeTemplateString(dojo.trim(dojo._getText(_266)));
}
_267=dojo.string.trim(_267);
if(_268||_267.match(/\$\{([^\}]+)\}/g)){
return (_269[key]=_267);
}else{
return (_269[key]=dojo._toDom(_267));
}
};
dijit._Templated._sanitizeTemplateString=function(_26c){
if(_26c){
_26c=_26c.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");
var _26d=_26c.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_26d){
_26c=_26d[1];
}
}else{
_26c="";
}
return _26c;
};
if(dojo.isIE){
dojo.addOnWindowUnload(function(){
var _26e=dijit._Templated._templateCache;
for(var key in _26e){
var _270=_26e[key];
if(!isNaN(_270.nodeType)){
dojo.destroy(_270);
}
delete _26e[key];
}
});
}
dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});
}
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(_271){
if(_271.reset){
_271.reset();
}
});
},validate:function(){
var _272=false;
return dojo.every(dojo.map(this.getDescendants(),function(_273){
_273._hasBeenBlurred=true;
var _274=_273.disabled||!_273.validate||_273.validate();
if(!_274&&!_272){
dijit.scrollIntoView(_273.containerNode||_273.domNode);
_273.focus();
_272=true;
}
return _274;
}),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(_279){
if(!_279.name){
return;
}
var _27a=map[_279.name]||(map[_279.name]=[]);
_27a.push(_279);
});
for(var name in map){
if(!map.hasOwnProperty(name)){
continue;
}
var _27c=map[name],_27d=dojo.getObject(name,false,obj);
if(_27d===undefined){
continue;
}
if(!dojo.isArray(_27d)){
_27d=[_27d];
}
if(typeof _27c[0].checked=="boolean"){
dojo.forEach(_27c,function(w,i){
w.attr("value",dojo.indexOf(_27d,w.value)!=-1);
});
}else{
if(_27c[0]._multiValue){
_27c[0].attr("value",_27d);
}else{
dojo.forEach(_27c,function(w,i){
w.attr("value",_27d[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(_283){
var name=_283.name;
if(!name||_283.disabled){
return;
}
var _285=_283.attr("value");
if(typeof _283.checked=="boolean"){
if(/Radio/.test(_283.declaredClass)){
if(_285!==false){
dojo.setObject(name,_285,obj);
}else{
_285=dojo.getObject(name,false,obj);
if(_285===undefined){
dojo.setObject(name,null,obj);
}
}
}else{
var ary=dojo.getObject(name,false,obj);
if(!ary){
ary=[];
dojo.setObject(name,ary,obj);
}
if(_285!==false){
ary.push(_285);
}
}
}else{
dojo.setObject(name,_285,obj);
}
});
return obj;
},isValid:function(){
this._invalidWidgets=dojo.filter(this.getDescendants(),function(_287){
return !_287.disabled&&_287.isValid&&!_287.isValid();
});
return !this._invalidWidgets.length;
},onValidStateChange:function(_288){
},_widgetChange:function(_289){
var _28a=this._lastValidState;
if(!_289||this._lastValidState===undefined){
_28a=this.isValid();
if(this._lastValidState===undefined){
this._lastValidState=_28a;
}
}else{
if(_289.isValid){
this._invalidWidgets=dojo.filter(this._invalidWidgets||[],function(w){
return (w!=_289);
},this);
if(!_289.isValid()&&!_289.attr("disabled")){
this._invalidWidgets.push(_289);
}
_28a=(this._invalidWidgets.length===0);
}
}
if(_28a!==this._lastValidState){
this._lastValidState=_28a;
this.onValidStateChange(_28a);
}
},connectChildren:function(){
dojo.forEach(this._changeConnections,dojo.hitch(this,"disconnect"));
var _28c=this;
var _28d=this._changeConnections=[];
dojo.forEach(dojo.filter(this.getDescendants(),function(item){
return item.validate;
}),function(_28f){
_28d.push(_28c.connect(_28f,"validate",dojo.hitch(_28c,"_widgetChange",_28f)));
_28d.push(_28c.connect(_28f,"_setDisabledAttr",dojo.hitch(_28c,"_widgetChange",_28f)));
});
this._widgetChange(null);
},startup:function(){
this.inherited(arguments);
this._changeConnections=[];
this.connectChildren();
}});
}
if(!dojo._hasResource["dijit.form.Form"]){
dojo._hasResource["dijit.form.Form"]=true;
dojo.provide("dijit.form.Form");
dojo.declare("dijit.form.Form",[dijit._Widget,dijit._Templated,dijit.form._FormMixin],{name:"",action:"",method:"",encType:"","accept-charset":"",accept:"",target:"",templateString:"<form dojoAttachPoint='containerNode' dojoAttachEvent='onreset:_onReset,onsubmit:_onSubmit' ${nameAttrSetting}></form>",attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{action:"",method:"",encType:"","accept-charset":"",accept:"",target:""}),postMixInProperties:function(){
this.nameAttrSetting=this.name?("name='"+this.name+"'"):"";
this.inherited(arguments);
},execute:function(_290){
},onExecute:function(){
},_setEncTypeAttr:function(_291){
this.encType=_291;
dojo.attr(this.domNode,"encType",_291);
if(dojo.isIE){
this.domNode.encoding=_291;
}
},postCreate:function(){
if(dojo.isIE&&this.srcNodeRef&&this.srcNodeRef.attributes){
var item=this.srcNodeRef.attributes.getNamedItem("encType");
if(item&&!item.specified&&(typeof item.value=="string")){
this.attr("encType",item.value);
}
}
this.inherited(arguments);
},onReset:function(e){
return true;
},_onReset:function(e){
var faux={returnValue:true,preventDefault:function(){
this.returnValue=false;
},stopPropagation:function(){
},currentTarget:e.currentTarget,target:e.target};
if(!(this.onReset(faux)===false)&&faux.returnValue){
this.reset();
}
dojo.stopEvent(e);
return false;
},_onSubmit:function(e){
var fp=dijit.form.Form.prototype;
if(this.execute!=fp.execute||this.onExecute!=fp.onExecute){
dojo.deprecated("dijit.form.Form:execute()/onExecute() are deprecated. Use onSubmit() instead.","","2.0");
this.onExecute();
this.execute(this.getValues());
}
if(this.onSubmit(e)===false){
dojo.stopEvent(e);
}
},onSubmit:function(e){
return this.isValid();
},submit:function(){
if(!(this.onSubmit()===false)){
this.containerNode.submit();
}
}});
}
if(!dojo._hasResource["dojo.i18n"]){
dojo._hasResource["dojo.i18n"]=true;
dojo.provide("dojo.i18n");
dojo.i18n.getLocalization=function(_299,_29a,_29b){
_29b=dojo.i18n.normalizeLocale(_29b);
var _29c=_29b.split("-");
var _29d=[_299,"nls",_29a].join(".");
var _29e=dojo._loadedModules[_29d];
if(_29e){
var _29f;
for(var i=_29c.length;i>0;i--){
var loc=_29c.slice(0,i).join("_");
if(_29e[loc]){
_29f=_29e[loc];
break;
}
}
if(!_29f){
_29f=_29e.ROOT;
}
if(_29f){
var _2a2=function(){
};
_2a2.prototype=_29f;
return new _2a2();
}
}
throw new Error("Bundle not found: "+_29a+" in "+_299+" , locale="+_29b);
};
dojo.i18n.normalizeLocale=function(_2a3){
var _2a4=_2a3?_2a3.toLowerCase():dojo.locale;
if(_2a4=="root"){
_2a4="ROOT";
}
return _2a4;
};
dojo.i18n._requireLocalization=function(_2a5,_2a6,_2a7,_2a8){
var _2a9=dojo.i18n.normalizeLocale(_2a7);
var _2aa=[_2a5,"nls",_2a6].join(".");
var _2ab="";
if(_2a8){
var _2ac=_2a8.split(",");
for(var i=0;i<_2ac.length;i++){
if(_2a9["indexOf"](_2ac[i])==0){
if(_2ac[i].length>_2ab.length){
_2ab=_2ac[i];
}
}
}
if(!_2ab){
_2ab="ROOT";
}
}
var _2ae=_2a8?_2ab:_2a9;
var _2af=dojo._loadedModules[_2aa];
var _2b0=null;
if(_2af){
if(dojo.config.localizationComplete&&_2af._built){
return;
}
var _2b1=_2ae.replace(/-/g,"_");
var _2b2=_2aa+"."+_2b1;
_2b0=dojo._loadedModules[_2b2];
}
if(!_2b0){
_2af=dojo["provide"](_2aa);
var syms=dojo._getModuleSymbols(_2a5);
var _2b4=syms.concat("nls").join("/");
var _2b5;
dojo.i18n._searchLocalePath(_2ae,_2a8,function(loc){
var _2b7=loc.replace(/-/g,"_");
var _2b8=_2aa+"."+_2b7;
var _2b9=false;
if(!dojo._loadedModules[_2b8]){
dojo["provide"](_2b8);
var _2ba=[_2b4];
if(loc!="ROOT"){
_2ba.push(loc);
}
_2ba.push(_2a6);
var _2bb=_2ba.join("/")+".js";
_2b9=dojo._loadPath(_2bb,null,function(hash){
var _2bd=function(){
};
_2bd.prototype=_2b5;
_2af[_2b7]=new _2bd();
for(var j in hash){
_2af[_2b7][j]=hash[j];
}
});
}else{
_2b9=true;
}
if(_2b9&&_2af[_2b7]){
_2b5=_2af[_2b7];
}else{
_2af[_2b7]=_2b5;
}
if(_2a8){
return true;
}
});
}
if(_2a8&&_2a9!=_2ab){
_2af[_2a9.replace(/-/g,"_")]=_2af[_2ab.replace(/-/g,"_")];
}
};
(function(){
var _2bf=dojo.config.extraLocale;
if(_2bf){
if(!_2bf instanceof Array){
_2bf=[_2bf];
}
var req=dojo.i18n._requireLocalization;
dojo.i18n._requireLocalization=function(m,b,_2c3,_2c4){
req(m,b,_2c3,_2c4);
if(_2c3){
return;
}
for(var i=0;i<_2bf.length;i++){
req(m,b,_2bf[i],_2c4);
}
};
}
})();
dojo.i18n._searchLocalePath=function(_2c6,down,_2c8){
_2c6=dojo.i18n.normalizeLocale(_2c6);
var _2c9=_2c6.split("-");
var _2ca=[];
for(var i=_2c9.length;i>0;i--){
_2ca.push(_2c9.slice(0,i).join("-"));
}
_2ca.push(false);
if(down){
_2ca.reverse();
}
for(var j=_2ca.length-1;j>=0;j--){
var loc=_2ca[j]||"ROOT";
var stop=_2c8(loc);
if(stop){
break;
}
}
};
dojo.i18n._preloadLocalizations=function(_2cf,_2d0){
function _2d1(_2d2){
_2d2=dojo.i18n.normalizeLocale(_2d2);
dojo.i18n._searchLocalePath(_2d2,true,function(loc){
for(var i=0;i<_2d0.length;i++){
if(_2d0[i]==loc){
dojo["require"](_2cf+"_"+loc);
return true;
}
}
return false;
});
};
_2d1();
var _2d5=dojo.config.extraLocale||[];
for(var i=0;i<_2d5.length;i++){
_2d1(_2d5[i]);
}
};
}
if(!dojo._hasResource["dijit.form._FormWidget"]){
dojo._hasResource["dijit.form._FormWidget"]=true;
dojo.provide("dijit.form._FormWidget");
dojo.declare("dijit.form._FormWidget",[dijit._Widget,dijit._Templated],{baseClass:"",name:"",alt:"",value:"",type:"text",tabIndex:"0",disabled:false,readOnly:false,intermediateChanges:false,scrollOnFocus:true,attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{value:"focusNode",disabled:"focusNode",readOnly:"focusNode",id:"focusNode",tabIndex:"focusNode",alt:"focusNode"}),postMixInProperties:function(){
this.nameAttrSetting=this.name?("name='"+this.name+"'"):"";
this.inherited(arguments);
},_setDisabledAttr:function(_2d7){
this.disabled=_2d7;
dojo.attr(this.focusNode,"disabled",_2d7);
dijit.setWaiState(this.focusNode,"disabled",_2d7);
if(_2d7){
this._hovering=false;
this._active=false;
this.focusNode.removeAttribute("tabIndex");
}else{
this.focusNode.setAttribute("tabIndex",this.tabIndex);
}
this._setStateClass();
},setDisabled:function(_2d8){
dojo.deprecated("setDisabled("+_2d8+") is deprecated. Use attr('disabled',"+_2d8+") instead.","","2.0");
this.attr("disabled",_2d8);
},_onFocus:function(e){
if(this.scrollOnFocus){
dijit.scrollIntoView(this.domNode);
}
this.inherited(arguments);
},_onMouse:function(_2da){
var _2db=_2da.currentTarget;
if(_2db&&_2db.getAttribute){
this.stateModifier=_2db.getAttribute("stateModifier")||"";
}
if(!this.disabled){
switch(_2da.type){
case "mouseenter":
case "mouseover":
this._hovering=true;
this._active=this._mouseDown;
break;
case "mouseout":
case "mouseleave":
this._hovering=false;
this._active=false;
break;
case "mousedown":
this._active=true;
this._mouseDown=true;
var _2dc=this.connect(dojo.body(),"onmouseup",function(){
if(this._mouseDown&&this.isFocusable()){
this.focus();
}
this._active=false;
this._mouseDown=false;
this._setStateClass();
this.disconnect(_2dc);
});
break;
}
this._setStateClass();
}
},isFocusable:function(){
return !this.disabled&&!this.readOnly&&this.focusNode&&(dojo.style(this.domNode,"display")!="none");
},focus:function(){
dijit.focus(this.focusNode);
},_setStateClass:function(){
var _2dd=this.baseClass.split(" ");
function _2de(_2df){
_2dd=_2dd.concat(dojo.map(_2dd,function(c){
return c+_2df;
}),"dijit"+_2df);
};
if(this.checked){
_2de("Checked");
}
if(this.state){
_2de(this.state);
}
if(this.selected){
_2de("Selected");
}
if(this.disabled){
_2de("Disabled");
}else{
if(this.readOnly){
_2de("ReadOnly");
}else{
if(this._active){
_2de(this.stateModifier+"Active");
}else{
if(this._focused){
_2de("Focused");
}
if(this._hovering){
_2de(this.stateModifier+"Hover");
}
}
}
}
var tn=this.stateNode||this.domNode,_2e2={};
dojo.forEach(tn.className.split(" "),function(c){
_2e2[c]=true;
});
if("_stateClasses" in this){
dojo.forEach(this._stateClasses,function(c){
delete _2e2[c];
});
}
dojo.forEach(_2dd,function(c){
_2e2[c]=true;
});
var _2e6=[];
for(var c in _2e2){
_2e6.push(c);
}
tn.className=_2e6.join(" ");
this._stateClasses=_2dd;
},compare:function(val1,val2){
if((typeof val1=="number")&&(typeof val2=="number")){
return (isNaN(val1)&&isNaN(val2))?0:(val1-val2);
}else{
if(val1>val2){
return 1;
}else{
if(val1<val2){
return -1;
}else{
return 0;
}
}
}
},onChange:function(_2ea){
},_onChangeActive:false,_handleOnChange:function(_2eb,_2ec){
this._lastValue=_2eb;
if(this._lastValueReported==undefined&&(_2ec===null||!this._onChangeActive)){
this._resetValue=this._lastValueReported=_2eb;
}
if((this.intermediateChanges||_2ec||_2ec===undefined)&&((typeof _2eb!=typeof this._lastValueReported)||this.compare(_2eb,this._lastValueReported)!=0)){
this._lastValueReported=_2eb;
if(this._onChangeActive){
this.onChange(_2eb);
}
}
},create:function(){
this.inherited(arguments);
this._onChangeActive=true;
this._setStateClass();
},destroy:function(){
if(this._layoutHackHandle){
clearTimeout(this._layoutHackHandle);
}
this.inherited(arguments);
},setValue:function(_2ed){
dojo.deprecated("dijit.form._FormWidget:setValue("+_2ed+") is deprecated.  Use attr('value',"+_2ed+") instead.","","2.0");
this.attr("value",_2ed);
},getValue:function(){
dojo.deprecated(this.declaredClass+"::getValue() is deprecated. Use attr('value') instead.","","2.0");
return this.attr("value");
},_layoutHack:function(){
if(dojo.isFF==2&&!this._layoutHackHandle){
var node=this.domNode;
var old=node.style.opacity;
node.style.opacity="0.999";
this._layoutHackHandle=setTimeout(dojo.hitch(this,function(){
this._layoutHackHandle=null;
node.style.opacity=old;
}),0);
}
}});
dojo.declare("dijit.form._FormValueWidget",dijit.form._FormWidget,{attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{value:""}),postCreate:function(){
if(dojo.isIE||dojo.isWebKit){
this.connect(this.focusNode||this.domNode,"onkeydown",this._onKeyDown);
}
if(this._resetValue===undefined){
this._resetValue=this.value;
}
},_setValueAttr:function(_2f0,_2f1){
this.value=_2f0;
this._handleOnChange(_2f0,_2f1);
},_getValueAttr:function(_2f2){
return this._lastValue;
},undo:function(){
this._setValueAttr(this._lastValueReported,false);
},reset:function(){
this._hasBeenBlurred=false;
this._setValueAttr(this._resetValue,true);
},_onKeyDown:function(e){
if(e.keyCode==dojo.keys.ESCAPE&&!e.ctrlKey&&!e.altKey){
var te;
if(dojo.isIE){
e.preventDefault();
te=document.createEventObject();
te.keyCode=dojo.keys.ESCAPE;
te.shiftKey=e.shiftKey;
e.srcElement.fireEvent("onkeypress",te);
}else{
if(dojo.isWebKit){
te=document.createEvent("Events");
te.initEvent("keypress",true,true);
te.keyCode=dojo.keys.ESCAPE;
te.shiftKey=e.shiftKey;
e.target.dispatchEvent(te);
}
}
}
}});
}
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(_2f5,_2f6,_2f7){
var _2f8;
if(_2f5!==undefined){
_2f8=this.filter(_2f5);
if(typeof _2f7!="string"){
if(_2f8!==null&&((typeof _2f8!="number")||!isNaN(_2f8))){
_2f7=this.filter(this.format(_2f8,this.constraints));
}else{
_2f7="";
}
}
}
if(_2f7!=null&&_2f7!=undefined&&((typeof _2f7)!="number"||!isNaN(_2f7))&&this.textbox.value!=_2f7){
this.textbox.value=_2f7;
}
this.inherited(arguments,[_2f8,_2f6]);
},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(_2f9){
dojo.deprecated(this.declaredClass+"::setDisplayedValue() is deprecated. Use attr('displayedValue', ...) instead.","","2.0");
this.attr("displayedValue",_2f9);
},_setDisplayedValueAttr:function(_2fa){
if(_2fa===null||_2fa===undefined){
_2fa="";
}else{
if(typeof _2fa!="string"){
_2fa=String(_2fa);
}
}
this.textbox.value=_2fa;
this._setValueAttr(this.attr("value"),undefined,_2fa);
},format:function(_2fb,_2fc){
return ((_2fb==null||_2fb==undefined)?"":(_2fb.toString?_2fb.toString():_2fb));
},parse:function(_2fd,_2fe){
return _2fd;
},_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 _300=this;
setTimeout(function(){
_300._handleOnChange(_300.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(_305,_306,stop){
var _308=dojo.global;
var _309=dojo.doc;
_305=dojo.byId(_305);
if(isNaN(_306)){
_306=0;
}
if(isNaN(stop)){
stop=_305.value?_305.value.length:0;
}
_305.focus();
if(_309["selection"]&&dojo.body()["createTextRange"]){
if(_305.createTextRange){
var _30a=_305.createTextRange();
with(_30a){
collapse(true);
moveStart("character",_306);
moveEnd("character",stop);
select();
}
}
}else{
if(_308["getSelection"]){
var _30b=_308.getSelection();
if(_305.setSelectionRange){
_305.setSelectionRange(_306,stop);
}
}
}
};
}
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(_30c,_30d,_30e){
if(this.aroundNode&&this.aroundNode===_30d){
return;
}
if(this.fadeOut.status()=="playing"){
this._onDeck=arguments;
return;
}
this.containerNode.innerHTML=_30c;
this.domNode.style.top=(this.domNode.offsetTop+1)+"px";
var _30f={};
var ltr=this.isLeftToRight();
dojo.forEach((_30e&&_30e.length)?_30e:dijit.Tooltip.defaultPosition,function(pos){
switch(pos){
case "after":
_30f[ltr?"BR":"BL"]=ltr?"BL":"BR";
break;
case "before":
_30f[ltr?"BL":"BR"]=ltr?"BR":"BL";
break;
case "below":
_30f[ltr?"BL":"BR"]=ltr?"TL":"TR";
_30f[ltr?"BR":"BL"]=ltr?"TR":"TL";
break;
case "above":
default:
_30f[ltr?"TL":"TR"]=ltr?"BL":"BR";
_30f[ltr?"TR":"TL"]=ltr?"BR":"BL";
break;
}
});
var pos=dijit.placeOnScreenAroundElement(this.domNode,_30d,_30f,dojo.hitch(this,"orient"));
dojo.style(this.domNode,"opacity",0);
this.fadeIn.play();
this.isShowingNow=true;
this.aroundNode=_30d;
},orient:function(node,_314,_315){
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"}[_314+"-"+_315];
},_onShow:function(){
if(dojo.isIE){
this.domNode.style.filter="";
}
},hide:function(_316){
if(this._onDeck&&this._onDeck[1]==_316){
this._onDeck=null;
}else{
if(this.aroundNode===_316){
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(_317,_318,_319){
if(!dijit._masterTT){
dijit._masterTT=new dijit._MasterTooltip();
}
return dijit._masterTT.show(_317,_318,_319);
};
dijit.hideTooltip=function(_31a){
if(!dijit._masterTT){
dijit._masterTT=new dijit._MasterTooltip();
}
return dijit._masterTT.hide(_31a);
};
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(_31e){
this.connect(node,_31e.toLowerCase(),"_"+_31e);
},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 _324=e.target;
this._showTimer=setTimeout(dojo.hitch(this,function(){
this.open(_324);
}),this.showDelay);
}
},_onUnHover:function(e){
if(this._focus){
return;
}
if(this._showTimer){
clearTimeout(this._showTimer);
delete this._showTimer;
}
this.close();
},open:function(_326){
_326=_326||this._connectNodes[0];
if(!_326){
return;
}
if(this._showTimer){
clearTimeout(this._showTimer);
delete this._showTimer;
}
dijit.showTooltip(this.label||this.domNode.innerHTML,_326,this.position);
this._connectNode=_326;
},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["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(_327){
return this.regExp;
},state:"",tooltipPosition:[],_setValueAttr:function(){
this.inherited(arguments);
this.validate(this._focused);
},validator:function(_328,_329){
return (new RegExp("^(?:"+this.regExpGen(_329)+")"+(this.required?"":"?")+"$")).test(_328)&&(!this.required||!this._isEmpty(_328))&&(this._isEmpty(_328)||this.parse(_328,_329)!==undefined);
},_isValidSubset:function(){
return this.textbox.value.search(this._partialre)==0;
},isValid:function(_32a){
return this.validator(this.textbox.value,this.constraints);
},_isEmpty:function(_32b){
return /^\s*$/.test(_32b);
},getErrorMessage:function(_32c){
return this.invalidMessage;
},getPromptMessage:function(_32d){
return this.promptMessage;
},_maskValidSubsetError:true,validate:function(_32e){
var _32f="";
var _330=this.disabled||this.isValid(_32e);
if(_330){
this._maskValidSubsetError=true;
}
var _331=!_330&&_32e&&this._isValidSubset();
var _332=this._isEmpty(this.textbox.value);
this.state=(_330||(!this._hasBeenBlurred&&_332)||_331)?"":"Error";
if(this.state=="Error"){
this._maskValidSubsetError=false;
}
this._setStateClass();
dijit.setWaiState(this.focusNode,"invalid",_330?"false":"true");
if(_32e){
if(_332){
_32f=this.getPromptMessage(true);
}
if(!_32f&&(this.state=="Error"||(_331&&!this._maskValidSubsetError))){
_32f=this.getErrorMessage(true);
}
}
this.displayMessage(_32f);
return _330;
},_message:"",displayMessage:function(_333){
if(this._message==_333){
return;
}
this._message=_333;
dijit.hideTooltip(this.domNode);
if(_333){
dijit.showTooltip(_333,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 _335="";
if(p!=".*"){
this.regExp.replace(/\\.|\[\]|\[.*?[^\\]{1}\]|\{.*?\}|\(\?[=:!]|./g,function(re){
switch(re.charAt(0)){
case "{":
case "+":
case "?":
case "*":
case "^":
case "$":
case "|":
case "(":
_335+=re;
break;
case ")":
_335+="|$)";
break;
default:
_335+="(?:"+re+"|$)";
break;
}
});
}
try{
"".search(_335);
}
catch(e){
_335=this.regExp;
console.warn("RegExp error in "+this.declaredClass+": "+this.regExp);
}
this._partialre="^(?:"+_335+")$";
},_setDisabledAttr:function(_337){
this.inherited(arguments);
if(this.valueNode){
this.valueNode.disabled=_337;
}
this._refreshState();
},_setRequiredAttr:function(_338){
this.required=_338;
dijit.setWaiState(this.focusNode,"required",_338);
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,_33c){
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(_33e){
this.inherited(arguments);
dojo.attr(this.valueNode,"disabled",_33e);
},reset:function(){
this.valueNode.value="";
this.inherited(arguments);
}});
dojo.declare("dijit.form.RangeBoundTextBox",dijit.form.MappedTextBox,{rangeMessage:"",rangeCheck:function(_33f,_340){
var _341="min" in _340;
var _342="max" in _340;
if(_341||_342){
return (!_341||this.compare(_33f,_340.min)>=0)&&(!_342||this.compare(_33f,_340.max)<=0);
}
return true;
},isInRange:function(_343){
return this.rangeCheck(this.attr("value"),this.constraints);
},_isDefinitelyOutOfRange:function(){
var val=this.attr("value");
var _345=false;
var _346=false;
if("min" in this.constraints){
var min=this.constraints.min;
val=this.compare(val,((typeof min=="number")&&min>=0&&val!=0)?0:min);
_345=(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);
_346=(typeof val=="number")&&val>0;
}
return _345||_346;
},_isValidSubset:function(){
return this.inherited(arguments)&&!this._isDefinitelyOutOfRange();
},isValid:function(_349){
return this.inherited(arguments)&&((this._isEmpty(this.textbox.value)&&!this.required)||this.isInRange(_349));
},getErrorMessage:function(_34a){
if(dijit.form.RangeBoundTextBox.superclass.isValid.call(this,false)&&!this.isInRange(_34a)){
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(_34b,_34c){
dijit.setWaiState(this.focusNode,"valuenow",_34b);
this.inherited(arguments);
}});
}
if(!dojo._hasResource["dijit._Container"]){
dojo._hasResource["dijit._Container"]=true;
dojo.provide("dijit._Container");
dojo.declare("dijit._Container",null,{isContainer:true,buildRendering:function(){
this.inherited(arguments);
if(!this.containerNode){
this.containerNode=this.domNode;
}
},addChild:function(_34d,_34e){
var _34f=this.containerNode;
if(_34e&&typeof _34e=="number"){
var _350=this.getChildren();
if(_350&&_350.length>=_34e){
_34f=_350[_34e-1].domNode;
_34e="after";
}
}
dojo.place(_34d.domNode,_34f,_34e);
if(this._started&&!_34d._started){
_34d.startup();
}
},removeChild:function(_351){
if(typeof _351=="number"&&_351>0){
_351=this.getChildren()[_351];
}
if(!_351||!_351.domNode){
return;
}
var node=_351.domNode;
node.parentNode.removeChild(node);
},_nextElement:function(node){
do{
node=node.nextSibling;
}while(node&&node.nodeType!=1);
return node;
},_firstElement:function(node){
node=node.firstChild;
if(node&&node.nodeType!=1){
node=this._nextElement(node);
}
return node;
},getChildren:function(){
return dojo.query("> [widgetId]",this.containerNode).map(dijit.byNode);
},hasChildren:function(){
return !!this._firstElement(this.containerNode);
},destroyDescendants:function(_355){
dojo.forEach(this.getChildren(),function(_356){
_356.destroyRecursive(_355);
});
},_getSiblingOfChild:function(_357,dir){
var node=_357.domNode;
var _35a=(dir>0?"nextSibling":"previousSibling");
do{
node=node[_35a];
}while(node&&(node.nodeType!=1||!dijit.byNode(node)));
return node?dijit.byNode(node):null;
},getIndexOfChild:function(_35b){
var _35c=this.getChildren();
for(var i=0,c;c=_35c[i];i++){
if(c==_35b){
return i;
}
}
return -1;
}});
}
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 _362=dijit.byNode(node);
if(_362&&typeof _362._onSubmit=="function"){
_362._onSubmit(e);
break;
}
}
}
}
},_setValueAttr:function(_363){
var attr=this.attributeMap.value||"";
if(this[attr.node||attr||"domNode"].tagName=="BUTTON"){
if(_363!=this.value){
console.debug("Cannot change the value attribute on a Button widget.");
}
}
},_fillContent:function(_365){
if(_365&&!("label" in this.params)){
this.attr("label",_365.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(_368){
dojo.deprecated("dijit.form.Button.setLabel() is deprecated.  Use attr('label', ...) instead.","","2.0");
this.attr("label",_368);
},_setLabelAttr:function(_369){
this.containerNode.innerHTML=this.label=_369;
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 _36a=dojo.query("*",this.srcNodeRef);
dijit.form.DropDownButton.superclass._fillContent.call(this,_36a[0]);
this.dropDownContainer=this.srcNodeRef;
}
},startup:function(){
if(this._started){
return;
}
if(!this.dropDown){
var _36b=dojo.query("[widgetId]",this.dropDownContainer)[0];
this.dropDown=dijit.byNode(_36b);
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 _36e=dojo.isFF&&dojo.isFF<3&&navigator.appVersion.indexOf("Macintosh")!=-1;
if(!_36e||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 _372=this.dropDown;
if(!_372){
return;
}
if(!this._opened){
if(_372.href&&!_372.isLoaded){
var self=this;
var _374=dojo.connect(_372,"onLoad",function(){
dojo.disconnect(_374);
self._openDropDown();
});
_372.refresh();
return;
}else{
this._openDropDown();
}
}else{
this._closeDropDown();
}
},_openDropDown:function(){
var _375=this.dropDown;
var _376=_375.domNode.style.width;
var self=this;
dijit.popup.open({parent:this,popup:_375,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(){
_375.domNode.style.width=_376;
self.popupStateNode.removeAttribute("popupActive");
self._opened=false;
}});
if(this.domNode.offsetWidth>_375.domNode.offsetWidth){
var _378=null;
if(!this.isLeftToRight()){
_378=_375.domNode.parentNode;
var _379=_378.offsetLeft+_378.offsetWidth;
}
dojo.marginBox(_375.domNode,{w:this.domNode.offsetWidth});
if(_378){
_378.style.left=_379-this.domNode.offsetWidth+"px";
}
}
this.popupStateNode.setAttribute("popupActive","true");
this._opened=true;
if(_375.focus){
_375.focus();
}
},_closeDropDown:function(_37a){
if(this._opened){
dijit.popup.close(this.dropDown);
if(_37a){
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(_382){
this.checked=_382;
dojo.attr(this.focusNode||this.domNode,"checked",_382);
dijit.setWaiState(this.focusNode||this.domNode,"pressed",_382);
this._setStateClass();
this._handleOnChange(_382,true);
},setChecked:function(_383){
dojo.deprecated("setChecked("+_383+") is deprecated. Use attr('checked',"+_383+") instead.","","2.0");
this.attr("checked",_383);
},reset:function(){
this._hasBeenBlurred=false;
this.attr("checked",this.params.checked||false);
}});
}
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(_384){
if(typeof _384=="string"){
this.value=_384;
dojo.attr(this.focusNode,"value",_384);
_384=true;
}
if(this._created){
this.attr("checked",_384);
}
},_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(_385){
},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(_386){
this.inherited(arguments);
if(!this._created){
return;
}
if(_386){
var _387=this;
dojo.query("INPUT[type=radio]",this.focusNode.form||dojo.doc).forEach(function(_388){
if(_388.name==_387.name&&_388!=_387.focusNode&&_388.form==_387.focusNode.form){
var _389=dijit.getEnclosingWidget(_388);
if(_389&&_389.checked){
_389.attr("checked",false);
}
}
});
}
},_clicked:function(e){
if(!this.checked){
this.attr("checked",true);
}
}});
}
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(_38e,_38f){
var _390=[];
function _391(attr,dir){
return function(_394,_395){
var a=_38f.getValue(_394,attr);
var b=_38f.getValue(_395,attr);
var _398=null;
if(_38f.comparatorMap){
if(typeof attr!=="string"){
attr=_38f.getIdentity(attr);
}
_398=_38f.comparatorMap[attr]||dojo.data.util.sorter.basicComparator;
}
_398=_398||dojo.data.util.sorter.basicComparator;
return dir*_398(a,b);
};
};
var _399;
for(var i=0;i<_38e.length;i++){
_399=_38e[i];
if(_399.attribute){
var _39b=(_399.descending)?-1:1;
_390.push(_391(_399.attribute,_39b));
}
}
return function(rowA,rowB){
var i=0;
while(i<_390.length){
var ret=_390[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(_3a0){
_3a0=_3a0||{};
if(!_3a0.store){
_3a0.store=this;
}
var self=this;
var _3a2=function(_3a3,_3a4){
if(_3a4.onError){
var _3a5=_3a4.scope||dojo.global;
_3a4.onError.call(_3a5,_3a3,_3a4);
}
};
var _3a6=function(_3a7,_3a8){
var _3a9=_3a8.abort||null;
var _3aa=false;
var _3ab=_3a8.start?_3a8.start:0;
var _3ac=(_3a8.count&&(_3a8.count!==Infinity))?(_3ab+_3a8.count):_3a7.length;
_3a8.abort=function(){
_3aa=true;
if(_3a9){
_3a9.call(_3a8);
}
};
var _3ad=_3a8.scope||dojo.global;
if(!_3a8.store){
_3a8.store=self;
}
if(_3a8.onBegin){
_3a8.onBegin.call(_3ad,_3a7.length,_3a8);
}
if(_3a8.sort){
_3a7.sort(dojo.data.util.sorter.createSortFunction(_3a8.sort,self));
}
if(_3a8.onItem){
for(var i=_3ab;(i<_3a7.length)&&(i<_3ac);++i){
var item=_3a7[i];
if(!_3aa){
_3a8.onItem.call(_3ad,item,_3a8);
}
}
}
if(_3a8.onComplete&&!_3aa){
var _3b0=null;
if(!_3a8.onItem){
_3b0=_3a7.slice(_3ab,_3ac);
}
_3a8.onComplete.call(_3ad,_3b0,_3a8);
}
};
this._fetchItems(_3a0,_3a6,_3a2);
return _3a0;
};
}
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(_3b1,_3b2){
var rxp="^";
var c=null;
for(var i=0;i<_3b1.length;i++){
c=_3b1.charAt(i);
switch(c){
case "\\":
rxp+=c;
i++;
rxp+=_3b1.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(_3b2){
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(_3b6){
var pos=0;
if(typeof (_3b6.selectionStart)=="number"){
pos=_3b6.selectionStart;
}else{
if(dojo.isIE){
var tr=dojo.doc.selection.createRange().duplicate();
var ntr=_3b6.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(_3ba,_3bb){
_3bb=parseInt(_3bb);
dijit.selectInputText(_3ba,_3bb,_3bb);
},_setDisabledAttr:function(_3bc){
this.inherited(arguments);
dijit.setWaiState(this.comboNode,"disabled",_3bc);
},_onKeyPress:function(evt){
var key=evt.charOrCode;
if(evt.altKey||(evt.ctrlKey&&(key!="x"&&key!="v"))||evt.key==dojo.keys.SHIFT){
return;
}
var _3bf=false;
var pw=this._popupWidget;
var dk=dojo.keys;
var _3c2=null;
if(this._isShowingNow){
pw.handleKey(key);
_3c2=pw.getHighlightedOption();
}
switch(key){
case dk.PAGE_DOWN:
case dk.DOWN_ARROW:
if(!this._isShowingNow||this._prev_key_esc){
this._arrowPressed();
_3bf=true;
}else{
if(_3c2){
this._announceOption(_3c2);
}
}
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(_3c2);
}
dojo.stopEvent(evt);
this._prev_key_backspace=false;
this._prev_key_esc=false;
break;
case dk.ENTER:
if(_3c2){
if(_3c2==pw.nextButton){
this._nextSearch(1);
dojo.stopEvent(evt);
break;
}else{
if(_3c2==pw.previousButton){
this._nextSearch(-1);
dojo.stopEvent(evt);
break;
}
}
}else{
this._setDisplayedValueAttr(this.attr("displayedValue"),true);
}
evt.preventDefault();
case dk.TAB:
var _3c3=this.attr("displayedValue");
if(pw&&(_3c3==pw._messages["previousMessage"]||_3c3==pw._messages["nextMessage"])){
break;
}
if(this._isShowingNow){
this._prev_key_backspace=false;
this._prev_key_esc=false;
if(_3c2){
pw.attr("value",{target:_3c2});
}
this._lastQuery=null;
this._hideResultList();
}
break;
case " ":
this._prev_key_backspace=false;
this._prev_key_esc=false;
if(_3c2){
dojo.stopEvent(evt);
this._selectOption();
this._hideResultList();
}else{
_3bf=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;
_3bf=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;
_3bf=typeof key=="string";
}
if(this.searchTimer){
clearTimeout(this.searchTimer);
}
if(_3bf){
setTimeout(dojo.hitch(this,"_startSearchFromInput"),1);
}
},_autoCompleteText:function(text){
var fn=this.focusNode;
dijit.selectInputText(fn,fn.value.length);
var _3c6=this.ignoreCase?"toLowerCase":"substr";
if(text[_3c6](0).indexOf(this.focusNode.value[_3c6](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(_3c8,_3c9){
if(this.disabled||this.readOnly||(_3c9.query[this.searchAttr]!=this._lastQuery)){
return;
}
this._popupWidget.clearResultList();
if(!_3c8.length){
this._hideResultList();
return;
}
this.item=null;
var _3ca=new String(this.store.getValue(_3c8[0],this.searchAttr));
if(_3ca&&this.autoComplete&&!this._prev_key_backspace&&(_3c9.query[this.searchAttr]!="*")){
this.item=_3c8[0];
this._autoCompleteText(_3ca);
}
_3c9._maxOptions=this._maxOptions;
this._popupWidget.createOptions(_3c8,_3c9,dojo.hitch(this,"_getMenuLabelFromItem"));
this._showResultList();
if(_3c9.direction){
if(1==_3c9.direction){
this._popupWidget.highlightFirstOption();
}else{
if(-1==_3c9.direction){
this._popupWidget.highlightLastOption();
}
}
this._announceOption(this._popupWidget.getHighlightedOption());
}
},_showResultList:function(){
this._hideResultList();
var _3cb=this._popupWidget.getItems(),_3cc=Math.min(_3cb.length,this.maxListLength);
this._arrowPressed();
this.displayMessage("");
dojo.style(this._popupWidget.domNode,{width:"",height:""});
var best=this.open();
var _3ce=dojo.marginBox(this._popupWidget.domNode);
this._popupWidget.domNode.style.overflow=((best.h==_3ce.h)&&(best.w==_3ce.w))?"hidden":"auto";
var _3cf=best.w;
if(best.h<this._popupWidget.domNode.scrollHeight){
_3cf+=16;
}
dojo.marginBox(this._popupWidget.domNode,{h:best.h,w:Math.max(_3cf,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 _3d0=this.attr("displayedValue");
var pw=this._popupWidget;
if(pw&&(_3d0==pw._messages["previousMessage"]||_3d0==pw._messages["nextMessage"])){
this._setValueAttr(this._lastValueReported,true);
}else{
this.attr("displayedValue",_3d0);
}
},_onBlur:function(){
this._hideResultList();
this._arrowIdle();
this.inherited(arguments);
},_announceOption:function(node){
if(node==null){
return;
}
var _3d3;
if(node==this._popupWidget.nextButton||node==this._popupWidget.previousButton){
_3d3=node.innerHTML;
}else{
_3d3=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(_3d3);
},_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 _3da=this.id+"_popup";
this._popupWidget=new dijit.form._ComboBoxMenu({onChange:dojo.hitch(this,this._selectOption),id:_3da});
dijit.removeWaiState(this.focusNode,"activedescendant");
dijit.setWaiState(this.textbox,"owns",_3da);
}
this.item=null;
var _3db=dojo.clone(this.query);
this._lastInput=key;
this._lastQuery=_3db[this.searchAttr]=this._getQueryString(key);
this.searchTimer=setTimeout(dojo.hitch(this,function(_3dc,_3dd){
var _3de={queryOptions:{ignoreCase:this.ignoreCase,deep:true},query:_3dc,onBegin:dojo.hitch(this,"_setMaxOptions"),onComplete:dojo.hitch(this,"_openResultList"),onError:function(_3df){
console.error("dijit.form.ComboBox: "+_3df);
dojo.hitch(_3dd,"_hideResultList")();
},start:0,count:this.pageSize};
dojo.mixin(_3de,_3dd.fetchProperties);
var _3e0=_3dd.store.fetch(_3de);
var _3e1=function(_3e2,_3e3){
_3e2.start+=_3e2.count*_3e3;
_3e2.direction=_3e3;
this.store.fetch(_3e2);
};
this._nextSearch=this._popupWidget.onPage=dojo.hitch(this,_3e1,_3e0);
},_3db,this),this.searchDelay);
},_setMaxOptions:function(size,_3e5){
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 _3e7=this.srcNodeRef;
this.store=new dijit.form._ComboBoxDataStore(_3e7);
if(!this.value||((typeof _3e7.selectedIndex=="number")&&_3e7.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 _3e9=dojo.query("label[for=\""+this.id+"\"]");
if(_3e9.length){
_3e9[0].id=(this.id+"_label");
var cn=this.comboNode;
dijit.setWaiState(cn,"labelledby",_3e9[0].id);
}
this.inherited(arguments);
},uninitialize:function(){
if(this._popupWidget){
this._hideResultList();
this._popupWidget.destroy();
}
},_getMenuLabelFromItem:function(item){
var _3ec=this.store.getValue(item,this.labelAttr||this.searchAttr);
var _3ed=this.labelType;
if(this.highlightMatch!="none"&&this.labelType=="text"&&this._lastInput){
_3ec=this.doHighlight(_3ec,this._escapeHtml(this._lastInput));
_3ed="html";
}
return {html:_3ed=="html",label:_3ec};
},doHighlight:function(_3ee,find){
var _3f0="i"+(this.highlightMatch=="all"?"g":"");
var _3f1=this._escapeHtml(_3ee);
find=dojo.regexp.escapeString(find);
var ret=_3f1.replace(new RegExp("(^|\\s)("+find+")",_3f0),"$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(_3f4){
this.value=_3f4;
this.onChange(_3f4);
},onChange:function(_3f5){
},onPage:function(_3f6){
},postCreate:function(){
this.previousButton.innerHTML=this._messages["previousMessage"];
this.nextButton.innerHTML=this._messages["nextMessage"];
this.inherited(arguments);
},onClose:function(){
this._blurOptionNode();
},_createOption:function(item,_3f8){
var _3f9=_3f8(item);
var _3fa=dojo.doc.createElement("li");
dijit.setWaiRole(_3fa,"option");
if(_3f9.html){
_3fa.innerHTML=_3f9.label;
}else{
_3fa.appendChild(dojo.doc.createTextNode(_3f9.label));
}
if(_3fa.innerHTML==""){
_3fa.innerHTML="&nbsp;";
}
_3fa.item=item;
return _3fa;
},createOptions:function(_3fb,_3fc,_3fd){
this.previousButton.style.display=(_3fc.start==0)?"none":"";
dojo.attr(this.previousButton,"id",this.id+"_prev");
dojo.forEach(_3fb,function(item,i){
var _400=this._createOption(item,_3fd);
_400.className="dijitReset dijitMenuItem";
dojo.attr(_400,"id",this.id+i);
this.domNode.insertBefore(_400,this.nextButton);
},this);
var _401=false;
if(_3fc._maxOptions&&_3fc._maxOptions!=-1){
if((_3fc.start+_3fc.count)<_3fc._maxOptions){
_401=true;
}else{
if((_3fc.start+_3fc.count)>(_3fc._maxOptions-1)){
if(_3fc.count==_3fb.length){
_401=true;
}
}
}
}else{
if(_3fc.count==_3fb.length){
_401=true;
}
}
this.nextButton.style.display=_401?"":"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 _40e=0;
var _40f=this.domNode.scrollTop;
var _410=dojo.style(this.domNode,"height");
if(!this.getHighlightedOption()){
this._highlightNextOption();
}
while(_40e<_410){
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 _411=this.domNode.scrollTop;
_40e+=(_411-_40f)*(up?-1:1);
_40f=_411;
}
},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(_414,_415){
if(!_414){
_414="";
}
dijit.form.ValidationTextBox.prototype._setValueAttr.call(this,_414,_415);
}});
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,_419,_41a){
return (_419=="value")?item.value:(item.innerText||item.textContent||"");
},isItemLoaded:function(_41b){
return true;
},getFeatures:function(){
return {"dojo.data.api.Read":true,"dojo.data.api.Identity":true};
},_fetchItems:function(args,_41d,_41e){
if(!args.query){
args.query={};
}
if(!args.query.name){
args.query.name="";
}
if(!args.queryOptions){
args.queryOptions={};
}
var _41f=dojo.data.util.filter.patternToRegExp(args.query.name,args.queryOptions.ignoreCase),_420=dojo.query("> option",this.root).filter(function(_421){
return (_421.innerText||_421.textContent||"").match(_41f);
});
if(args.sort){
_420.sort(dojo.data.util.sorter.createSortFunction(args.sort,this));
}
_41d(_420,args);
},close:function(_422){
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["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(_429){
if(_429){
_429=_429.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 _42b=parseInt(this.maxLength);
var _42c=this.textbox.value.replace(/\r/g,"");
var _42d=_42c.length-_42b;
if(_42d>0){
dojo.stopEvent(e);
var _42e=this.textbox;
if(_42e.selectionStart){
var pos=_42e.selectionStart;
var cr=0;
if(dojo.isOpera){
cr=(this.textbox.value.substring(0,pos).match(/\r/g)||[]).length;
}
this.textbox.value=_42c.substring(0,pos-_42d-cr)+_42c.substring(pos-cr);
_42e.setSelectionRange(pos-_42d,pos-_42d);
}else{
if(dojo.doc.selection){
_42e.focus();
var _431=dojo.doc.selection.createRange();
_431.moveStart("character",-_42d);
_431.text="";
_431.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(_432){
var newH=_432.scrollHeight;
if(dojo.isIE){
newH+=_432.offsetHeight-_432.clientHeight-((dojo.isIE<8&&this._strictMode)?dojo._getPadBorderExtents(_432).h:0);
}else{
if(dojo.isMoz){
newH+=_432.offsetHeight-_432.clientHeight;
}else{
if(dojo.isWebKit&&!(dojo.isSafari<4)){
newH+=dojo._getBorderExtents(_432).h;
}else{
newH+=dojo._getPadBorderExtents(_432).h;
}
}
}
return newH;
},_estimateHeight:function(_434){
_434.style.maxHeight="";
_434.style.height="auto";
_434.rows=(_434.value.match(/\n/g)||[]).length+1;
},_needsHelpShrinking:dojo.isMoz||dojo.isWebKit,_onInput:function(){
this.inherited(arguments);
if(this._busyResizing){
return;
}
this._busyResizing=true;
var _435=this.textbox;
if(_435.scrollHeight){
var newH=this._getHeight(_435)+"px";
if(_435.style.height!=newH){
_435.style.maxHeight=_435.style.height=newH;
}
if(this._needsHelpShrinking){
if(this._setTimeoutHandle){
clearTimeout(this._setTimeoutHandle);
}
this._setTimeoutHandle=setTimeout(dojo.hitch(this,"_shrink"),0);
}
}else{
this._estimateHeight(_435);
}
this._busyResizing=false;
},_busyResizing:false,_shrink:function(){
this._setTimeoutHandle=null;
if(this._needsHelpShrinking&&!this._busyResizing){
this._busyResizing=true;
var _437=this.textbox;
var _438=false;
if(_437.value==""){
_437.value=" ";
_438=true;
}
var _439=_437.scrollHeight;
if(!_439){
this._estimateHeight(_437);
}else{
var _43a=_437.style.paddingBottom;
var _43b=dojo._getPadExtents(_437);
_43b=_43b.h-_43b.t;
_437.style.paddingBottom=_43b+1+"px";
var newH=this._getHeight(_437)-1+"px";
if(_437.style.maxHeight!=newH){
_437.style.paddingBottom=_43b+_439+"px";
_437.scrollTop=0;
_437.style.maxHeight=this._getHeight(_437)-_439+"px";
}
_437.style.paddingBottom=_43a;
}
if(_438){
_437.value="";
}
this._busyResizing=false;
}
},resize:function(){
this._onInput();
},_setValueAttr:function(){
this.inherited(arguments);
this.resize();
},postCreate:function(){
this.inherited(arguments);
dojo.style(this.textbox,{overflowY:"hidden",overflowX:"auto",boxSizing:"border-box",MsBoxSizing:"border-box",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box"});
this.connect(this.textbox,"onscroll",this._onInput);
this.connect(this.textbox,"onresize",this._onInput);
this.connect(this.textbox,"onfocus",this._onInput);
setTimeout(dojo.hitch(this,"resize"),0);
}});
}
if(!dojo._hasResource["dijit._Contained"]){
dojo._hasResource["dijit._Contained"]=true;
dojo.provide("dijit._Contained");
dojo.declare("dijit._Contained",null,{getParent:function(){
for(var p=this.domNode.parentNode;p;p=p.parentNode){
var id=p.getAttribute&&p.getAttribute("widgetId");
if(id){
var _43f=dijit.byId(id);
return _43f.isContainer?_43f:null;
}
}
return null;
},_getSibling:function(_440){
var node=this.domNode;
do{
node=node[_440+"Sibling"];
}while(node&&node.nodeType!=1);
if(!node){
return null;
}
var id=node.getAttribute("widgetId");
return dijit.byId(id);
},getPreviousSibling:function(){
return this._getSibling("previous");
},getNextSibling:function(){
return this._getSibling("next");
},getIndexInParent:function(){
var p=this.getParent();
if(!p||!p.getIndexOfChild){
return -1;
}
return p.getIndexOfChild(this);
}});
}
if(!dojo._hasResource["dijit.layout._LayoutWidget"]){
dojo._hasResource["dijit.layout._LayoutWidget"]=true;
dojo.provide("dijit.layout._LayoutWidget");
dojo.declare("dijit.layout._LayoutWidget",[dijit._Widget,dijit._Container,dijit._Contained],{baseClass:"dijitLayoutContainer",isLayoutContainer:true,postCreate:function(){
dojo.addClass(this.domNode,"dijitContainer");
dojo.addClass(this.domNode,this.baseClass);
},startup:function(){
if(this._started){
return;
}
dojo.forEach(this.getChildren(),function(_444){
_444.startup();
});
if(!this.getParent||!this.getParent()){
this.resize();
this._viewport=dijit.getViewport();
this.connect(dojo.global,"onresize",function(){
var _445=dijit.getViewport();
if(_445.w!=this._viewport.w||_445.h!=this._viewport.h){
this._viewport=_445;
this.resize();
}
});
}
this.inherited(arguments);
},resize:function(_446,_447){
var node=this.domNode;
if(_446){
dojo.marginBox(node,_446);
if(_446.t){
node.style.top=_446.t+"px";
}
if(_446.l){
node.style.left=_446.l+"px";
}
}
var mb=_447||{};
dojo.mixin(mb,_446||{});
if(!("h" in mb)||!("w" in mb)){
mb=dojo.mixin(dojo.marginBox(node),mb);
}
var cs=dojo.getComputedStyle(node);
var me=dojo._getMarginExtents(node,cs);
var be=dojo._getBorderExtents(node,cs);
var bb=(this._borderBox={w:mb.w-(me.w+be.w),h:mb.h-(me.h+be.h)});
var pe=dojo._getPadExtents(node,cs);
this._contentBox={l:dojo._toPixelValue(node,cs.paddingLeft),t:dojo._toPixelValue(node,cs.paddingTop),w:bb.w-pe.w,h:bb.h-pe.h};
this.layout();
},layout:function(){
},_setupChild:function(_44f){
dojo.addClass(_44f.domNode,this.baseClass+"-child");
if(_44f.baseClass){
dojo.addClass(_44f.domNode,this.baseClass+"-"+_44f.baseClass);
}
},addChild:function(_450,_451){
this.inherited(arguments);
if(this._started){
this._setupChild(_450);
}
},removeChild:function(_452){
dojo.removeClass(_452.domNode,this.baseClass+"-child");
if(_452.baseClass){
dojo.removeClass(_452.domNode,this.baseClass+"-"+_452.baseClass);
}
this.inherited(arguments);
}});
dijit.layout.marginBox2contentBox=function(node,mb){
var cs=dojo.getComputedStyle(node);
var me=dojo._getMarginExtents(node,cs);
var pb=dojo._getPadBorderExtents(node,cs);
return {l:dojo._toPixelValue(node,cs.paddingLeft),t:dojo._toPixelValue(node,cs.paddingTop),w:mb.w-(me.w+pb.w),h:mb.h-(me.h+pb.h)};
};
(function(){
var _458=function(word){
return word.substring(0,1).toUpperCase()+word.substring(1);
};
var size=function(_45b,dim){
_45b.resize?_45b.resize(dim):dojo.marginBox(_45b.domNode,dim);
dojo.mixin(_45b,dojo.marginBox(_45b.domNode));
dojo.mixin(_45b,dim);
};
dijit.layout.layoutChildren=function(_45d,dim,_45f){
dim=dojo.mixin({},dim);
dojo.addClass(_45d,"dijitLayoutContainer");
_45f=dojo.filter(_45f,function(item){
return item.layoutAlign!="client";
}).concat(dojo.filter(_45f,function(item){
return item.layoutAlign=="client";
}));
dojo.forEach(_45f,function(_462){
var elm=_462.domNode,pos=_462.layoutAlign;
var _465=elm.style;
_465.left=dim.l+"px";
_465.top=dim.t+"px";
_465.bottom=_465.right="auto";
dojo.addClass(elm,"dijitAlign"+_458(pos));
if(pos=="top"||pos=="bottom"){
size(_462,{w:dim.w});
dim.h-=_462.h;
if(pos=="top"){
dim.t+=_462.h;
}else{
_465.top=dim.t+dim.h+"px";
}
}else{
if(pos=="left"||pos=="right"){
size(_462,{h:dim.h});
dim.w-=_462.w;
if(pos=="left"){
dim.l+=_462.w;
}else{
_465.left=dim.l+dim.w+"px";
}
}else{
if(pos=="client"){
size(_462,dim);
}
}
}
});
};
})();
}
if(!dojo._hasResource["dojo.cookie"]){
dojo._hasResource["dojo.cookie"]=true;
dojo.provide("dojo.cookie");
dojo.cookie=function(name,_467,_468){
var c=document.cookie;
if(arguments.length==1){
var _46a=c.match(new RegExp("(?:^|; )"+dojo.regexp.escapeString(name)+"=([^;]*)"));
return _46a?decodeURIComponent(_46a[1]):undefined;
}else{
_468=_468||{};
var exp=_468.expires;
if(typeof exp=="number"){
var d=new Date();
d.setTime(d.getTime()+exp*24*60*60*1000);
exp=_468.expires=d;
}
if(exp&&exp.toUTCString){
_468.expires=exp.toUTCString();
}
_467=encodeURIComponent(_467);
var _46d=name+"="+_467,_46e;
for(_46e in _468){
_46d+="; "+_46e;
var _46f=_468[_46e];
if(_46f!==true){
_46d+="="+_46f;
}
}
document.cookie=_46d;
}
};
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.form.ToggleButton"]){
dojo._hasResource["dijit.form.ToggleButton"]=true;
dojo.provide("dijit.form.ToggleButton");
}
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(_470,_471){
var _472=this._keyNavCodes={};
var prev=dojo.hitch(this,this.focusPrev);
var next=dojo.hitch(this,this.focusNext);
dojo.forEach(_470,function(code){
_472[code]=prev;
});
dojo.forEach(_471,function(code){
_472[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(_477,_478){
dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);
this._startupChild(_477);
},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 _479=this._getNextFocusableChild(this.focusedChild,1);
if(_479.getFocalNodes){
this.focusChild(_479,_479.getFocalNodes()[0]);
}else{
this.focusChild(_479);
}
},focusPrev:function(){
if(this.focusedChild&&this.focusedChild.hasPrevFocalNode&&this.focusedChild.hasPrevFocalNode()){
this.focusedChild.focusPrev();
return;
}
var _47a=this._getNextFocusableChild(this.focusedChild,-1);
if(_47a.getFocalNodes){
var _47b=_47a.getFocalNodes();
this.focusChild(_47a,_47b[_47b.length-1]);
}else{
this.focusChild(_47a);
}
},focusChild:function(_47c,node){
if(_47c){
if(this.focusedChild&&_47c!==this.focusedChild){
this._onChildBlur(this.focusedChild);
}
this.focusedChild=_47c;
if(node&&_47c.focusFocalNode){
_47c.focusFocalNode(node);
}else{
_47c.focus();
}
}
},_startupChild:function(_47e){
if(_47e.getFocalNodes){
dojo.forEach(_47e.getFocalNodes(),function(node){
dojo.attr(node,"tabindex",-1);
this._connectNode(node);
},this);
}else{
var node=_47e.focusNode||_47e.domNode;
if(_47e.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 _487=dijit.getEnclosingWidget(evt.target);
if(_487&&_487.isFocusable()){
this.focusedChild=_487;
}
dojo.stopEvent(evt);
},_onNodeBlur:function(evt){
dojo.stopEvent(evt);
},_onChildBlur:function(_489){
},_getFirstFocusableChild:function(){
return this._getNextFocusableChild(null,1);
},_getNextFocusableChild:function(_48a,dir){
if(_48a){
_48a=this._getSiblingOfChild(_48a,dir);
}
var _48c=this.getChildren();
for(var i=0;i<_48c.length;i++){
if(!_48a){
_48a=_48c[(dir>0)?0:(_48c.length-1)];
}
if(_48a.isFocusable()){
return _48a;
}
_48a=this._getSiblingOfChild(_48a,dir);
}
return null;
}});
}
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(_48e){
if(_48e&&!("label" in this.params)){
this.attr("label",_48e.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(_491){
dojo.toggleClass(this.domNode,"dijitMenuItemSelected",_491);
},setLabel:function(_492){
dojo.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use attr('label', ...) instead.","","2.0");
this.attr("label",_492);
},setDisabled:function(_493){
dojo.deprecated("dijit.Menu.setDisabled() is deprecated.  Use attr('disabled', bool) instead.","","2.0");
this.attr("disabled",_493);
},_setDisabledAttr:function(_494){
this.disabled=_494;
dojo[_494?"addClass":"removeClass"](this.domNode,"dijitMenuItemDisabled");
dijit.setWaiState(this.focusNode,"disabled",_494?"true":"false");
},_setAccelKeyAttr:function(_495){
this.accelKey=_495;
this.accelKeyNode.style.display=_495?"":"none";
this.accelKeyNode.innerHTML=_495;
dojo.attr(this.containerNode,"colSpan",_495?"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 _496=dojo.query("*",this.srcNodeRef);
dijit.PopupMenuItem.superclass._fillContent.call(this,_496[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(_498){
dojo.toggleClass(this.domNode,"dijitCheckedMenuItemChecked",_498);
dijit.setWaiState(this.domNode,"checked",_498);
this.checked=_498;
},onChange:function(_499){
},_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(_49b){
_49b.startup();
});
this.startupKeyNavChildren();
this.inherited(arguments);
},onExecute:function(){
},onCancel:function(_49c){
},_moveToPopup:function(evt){
if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled){
this.focusedChild._onClick(evt);
}else{
var _49e=this._getTopMenu();
if(_49e&&_49e._isMenuBar){
_49e.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 _4a5=this.focusedChild;
var _4a6=_4a5.popup;
if(_4a6.isShowingNow){
return;
}
_4a6.parentMenu=this;
var self=this;
dijit.popup.open({parent:this,popup:_4a6,around:_4a5.domNode,orient:this._orient||(this.isLeftToRight()?{"TR":"TL","TL":"TR"}:{"TL":"TR","TR":"TL"}),onCancel:function(){
dijit.popup.close(_4a6);
_4a5.focus();
self.currentPopup=null;
},onExecute:dojo.hitch(this,"_onDescendantExecute")});
this.currentPopup=_4a6;
if(_4a6.focus){
setTimeout(dojo.hitch(_4a6,"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(_4ac){
var win=dijit.getDocumentWindow(dijit.Menu._iframeContentDocument(_4ac))||dijit.Menu._iframeContentDocument(_4ac)["__parent__"]||(_4ac.name&&dojo.doc.frames[_4ac.name])||null;
return win;
},_iframeContentDocument:function(_4ae){
var doc=_4ae.contentDocument||(_4ae.contentWindow&&_4ae.contentWindow.document)||(_4ae.name&&dojo.doc.frames[_4ae.name]&&dojo.doc.frames[_4ae.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(_4b3){
var node=dojo.byId(_4b3);
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 _4bd=dojo.coords(e.target,true);
x=_4bd.x+10;
y=_4bd.y+10;
}
var self=this;
var _4bf=dijit.getFocus(this);
function _4c0(){
dijit.focus(_4bf);
dijit.popup.close(self);
};
dijit.popup.open({popup:this,x:x,y:y,onExecute:_4c0,onCancel:_4c0,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.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,_4c4){
var _4c5=dojo.doc.createElement("span");
this.domNode.appendChild(_4c5);
var cls=dojo.getObject(this.buttonWidget);
var _4c7=new cls({label:page.title,closeButton:page.closable},_4c5);
this.addChild(_4c7,_4c4);
this.pane2button[page]=_4c7;
page.controlButton=_4c7;
var _4c8=[];
_4c8.push(dojo.connect(_4c7,"onClick",dojo.hitch(this,"onButtonClick",page)));
if(page.closable){
_4c8.push(dojo.connect(_4c7,"onClickCloseButton",dojo.hitch(this,"onCloseButtonClick",page)));
var _4c9=dojo.i18n.getLocalization("dijit","common");
var _4ca=new dijit.Menu({targetNodeIds:[_4c7.id],id:_4c7.id+"_Menu"});
var _4cb=new dijit.MenuItem({label:_4c9.itemClose});
_4c8.push(dojo.connect(_4cb,"onClick",dojo.hitch(this,"onCloseButtonClick",page)));
_4ca.addChild(_4cb);
this.pane2menu[page]=_4ca;
}
this.pane2handles[page]=_4c8;
if(!this._currentChild){
_4c7.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 _4ce=this.pane2button[page];
if(_4ce){
_4ce.destroy();
delete this.pane2button[page];
}
},onSelectChild:function(page){
if(!page){
return;
}
if(this._currentChild){
var _4d0=this.pane2button[this._currentChild];
_4d0.attr("checked",false);
_4d0.focusNode.setAttribute("tabIndex","-1");
}
var _4d1=this.pane2button[page];
_4d1.attr("checked",true);
this._currentChild=page;
_4d1.focusNode.setAttribute("tabIndex","0");
var _4d2=dijit.byId(this.containerId);
dijit.setWaiState(_4d2.containerNode,"labelledby",_4d1.id);
},onButtonClick:function(page){
var _4d4=dijit.byId(this.containerId);
_4d4.selectChild(page);
},onCloseButtonClick:function(page){
var _4d6=dijit.byId(this.containerId);
_4d6.closeChild(page);
var b=this.pane2button[this._currentChild];
if(b){
dijit.focus(b.focusNode||b.domNode);
}
},adjacent:function(_4d8){
if(!this.isLeftToRight()&&(!this.tabPosition||/top|bottom/.test(this.tabPosition))){
_4d8=!_4d8;
}
var _4d9=this.getChildren();
var _4da=dojo.indexOf(_4d9,this.pane2button[this._currentChild]);
var _4db=_4d8?1:_4d9.length-1;
return _4d9[(_4da+_4db)%_4d9.length];
},onkeypress:function(e){
if(this.disabled||e.altKey){
return;
}
var _4dd=null;
if(e.ctrlKey||!e._djpage){
var k=dojo.keys;
switch(e.charOrCode){
case k.LEFT_ARROW:
case k.UP_ARROW:
if(!e._djpage){
_4dd=false;
}
break;
case k.PAGE_UP:
if(e.ctrlKey){
_4dd=false;
}
break;
case k.RIGHT_ARROW:
case k.DOWN_ARROW:
if(!e._djpage){
_4dd=true;
}
break;
case k.PAGE_DOWN:
if(e.ctrlKey){
_4dd=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(_4dd!==null){
this.adjacent(_4dd).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 _4e3=this.getChildren();
dojo.forEach(_4e3,this._setupChild,this);
if(this.persist){
this.selectedChildWidget=dijit.byId(dojo.cookie(this.id+"_selectedChild"));
}else{
dojo.some(_4e3,function(_4e4){
if(_4e4.selected){
this.selectedChildWidget=_4e4;
}
return _4e4.selected;
},this);
}
var _4e5=this.selectedChildWidget;
if(!_4e5&&_4e3[0]){
_4e5=this.selectedChildWidget=_4e3[0];
_4e5.selected=true;
}
dojo.publish(this.id+"-startup",[{children:_4e3,selected:_4e5}]);
if(_4e5){
this._showChild(_4e5);
}
this.inherited(arguments);
},_setupChild:function(_4e6){
this.inherited(arguments);
dojo.removeClass(_4e6.domNode,"dijitVisible");
dojo.addClass(_4e6.domNode,"dijitHidden");
_4e6.domNode.title="";
return _4e6;
},addChild:function(_4e7,_4e8){
this.inherited(arguments);
if(this._started){
dojo.publish(this.id+"-addChild",[_4e7,_4e8]);
this.layout();
if(!this.selectedChildWidget){
this.selectChild(_4e7);
}
}
},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 _4ea=this.getChildren();
if(_4ea.length){
this.selectChild(_4ea[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(_4ec,_4ed){
if(_4ed){
this._hideChild(_4ed);
}
this._showChild(_4ec);
if(this.doLayout&&_4ec.resize){
_4ec.resize(this._containerContentBox||this._contentBox);
}
},_adjacent:function(_4ee){
var _4ef=this.getChildren();
var _4f0=dojo.indexOf(_4ef,this.selectedChildWidget);
_4f0+=_4ee?1:_4ef.length-1;
return _4ef[_4f0%_4ef.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 _4f3=this.getChildren();
page.isFirstChild=(page==_4f3[0]);
page.isLastChild=(page==_4f3[_4f3.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 _4f6=page.onClose(this,page);
if(_4f6){
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["dojo.html"]){
dojo._hasResource["dojo.html"]=true;
dojo.provide("dojo.html");
(function(){
var _4f7=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,_4fb){
if(_4fb){
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(_503,node){
dojo.mixin(this,_503||{});
node=this.node=dojo.byId(this.node||node);
if(!this.id){
this.id=["Setter",(node)?node.id||node.tagName:"",_4f7++].join("_");
}
if(!(this.node||node)){
new Error(this.declaredClass+": no node provided to "+this.id);
}
},set:function(cont,_506){
if(undefined!==cont){
this.content=cont;
}
if(_506){
this._mixin(_506);
}
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 _508=this.onContentError(e);
try{
node.innerHTML=_508;
}
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 _50b=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_50b){
cont=_50b[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(_50d){
var _50e={},key;
for(key in _50d){
if(key in _50e){
continue;
}
this[key]=_50d[key];
}
},_parse:function(){
var _510=this.node;
try{
this.parseResults=dojo.parser.parse(_510,true);
}
catch(e){
this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);
}
},_onError:function(type,err,_513){
var _514=this["on"+type+"Error"].call(this,err);
if(_513){
console.error(_513,err);
}else{
if(_514){
dojo.html._setNodeContent(this.node,_514,true);
}
}
}});
dojo.html.set=function(node,cont,_517){
if(undefined==cont){
console.warn("dojo.html.set: no cont argument provided, using empty string");
cont="";
}
if(!_517){
return dojo.html._setNodeContent(node,cont,true);
}else{
var op=new dojo.html._ContentSetter(dojo.mixin(_517,{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 _519=dojo.i18n.getLocalization("dijit","loading",this.lang);
this.loadingMessage=dojo.string.substitute(this.loadingMessage,_519);
this.errorMessage=dojo.string.substitute(this.errorMessage,_519);
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(_51a){
_51a.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 _51b=dojo.query(">",this.containerNode),_51c=_51b.filter(function(node){
return dojo.hasAttr(node,"dojoType")||dojo.hasAttr(node,"widgetId");
}),_51e=dojo.filter(_51c.map(dijit.byNode),function(_51f){
return _51f&&_51f.domNode&&_51f.resize;
});
if(_51b.length==_51c.length&&_51e.length==1){
this._singleChild=_51e[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(_524){
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 _52b={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};
if(dojo.isObject(this.ioArgs)){
dojo.mixin(_52b,this.ioArgs);
}
var hand=(this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_52b));
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 _530=this._contentSetter;
dojo.forEach(this.getChildren(),function(_531){
if(_531.destroyRecursive){
_531.destroyRecursive();
}
});
if(_530){
dojo.forEach(_530.parseResults,function(_532){
if(_532.destroyRecursive&&_532.domNode&&_532.domNode.parentNode==dojo.body()){
_532.destroyRecursive();
}
});
delete _530.parseResults;
}
dojo.html._emptyNode(this.containerNode);
},_setContent:function(cont,_534){
this.destroyDescendants();
delete this._singleChild;
var _535=this._contentSetter;
if(!(_535&&_535 instanceof dojo.html._ContentSetter)){
_535=this._contentSetter=new dojo.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){
var _537=this.onContentError(e);
try{
this.containerNode.innerHTML=_537;
}
catch(e){
console.error("Fatal "+this.id+" could not change content due to "+e.message,e);
}
})});
}
var _538=dojo.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad},this._contentSetterParams||{});
dojo.mixin(_535,_538);
_535.set((dojo.isObject(cont)&&cont.domNode)?cont.domNode:cont);
delete this._contentSetterParams;
if(!_534){
dojo.forEach(this.getChildren(),function(_539){
_539.startup();
});
if(this.doLayout){
this._checkIfSingleChild();
}
this._scheduleLayout();
this._onLoadHandler(cont);
}
},_onError:function(type,err,_53c){
var _53d=this["on"+type+"Error"].call(this,err);
if(_53c){
console.error(_53c,err);
}else{
if(_53d){
this._setContent(_53d,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(_53f){
if(_53f.resize){
_53f.resize();
}
});
}
delete this._needLayout;
},onLoad:function(data){
},onUnload:function(){
},onDownloadStart:function(){
return this.loadingMessage;
},onContentError:function(_541){
},onDownloadError:function(_542){
return this.errorMessage;
},onDownloadEnd:function(){
}});
}
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 _543=this.selectedChildWidget.containerNode.style;
_543.display="";
_543.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 _546=this.selectedChildWidget;
var _547=0;
dojo.forEach(this.getChildren(),function(_548){
_547+=_548._buttonWidget.getTitleHeight();
});
var _549=this._contentBox;
this._verticalSpace=_549.h-_547;
this._containerContentBox={h:this._verticalSpace,w:_549.w};
if(_546){
_546.resize(this._containerContentBox);
}
},_setupChild:function(_54a){
_54a._buttonWidget=new dijit.layout._AccordionButton({contentWidget:_54a,title:_54a.title,id:_54a.id+"_button",parent:this});
dojo.place(_54a._buttonWidget.domNode,_54a.domNode,"before");
this.inherited(arguments);
},removeChild:function(_54b){
_54b._buttonWidget.destroy();
this.inherited(arguments);
},getChildren:function(){
return dojo.filter(this.inherited(arguments),function(_54c){
return _54c.declaredClass!="dijit.layout._AccordionButton";
});
},destroy:function(){
dojo.forEach(this.getChildren(),function(_54d){
_54d._buttonWidget.destroy();
});
this.inherited(arguments);
},_transition:function(_54e,_54f){
if(this._inTransition){
return;
}
this._inTransition=true;
var _550=[];
var _551=this._verticalSpace;
if(_54e){
_54e._buttonWidget.setSelected(true);
this._showChild(_54e);
if(this.doLayout&&_54e.resize){
_54e.resize(this._containerContentBox);
}
var _552=_54e.domNode;
dojo.addClass(_552,"dijitVisible");
dojo.removeClass(_552,"dijitHidden");
var _553=_552.style.overflow;
_552.style.overflow="hidden";
_550.push(dojo.animateProperty({node:_552,duration:this.duration,properties:{height:{start:1,end:this._getTargetHeight(_552)}},onEnd:dojo.hitch(this,function(){
_552.style.overflow=_553;
delete this._inTransition;
})}));
}
if(_54f){
_54f._buttonWidget.setSelected(false);
var _554=_54f.domNode,_555=_554.style.overflow;
_554.style.overflow="hidden";
_550.push(dojo.animateProperty({node:_554,duration:this.duration,properties:{height:{start:this._getTargetHeight(_554),end:1}},onEnd:function(){
dojo.addClass(_554,"dijitHidden");
dojo.removeClass(_554,"dijitVisible");
_554.style.overflow=_555;
if(_54f.onHide){
_54f.onHide();
}
}}));
}
dojo.fx.combine(_550).play();
},_onKeyPress:function(e,_557){
if(this._inTransition||this.disabled||e.altKey||!(_557||e.ctrlKey)){
if(this._inTransition){
dojo.stopEvent(e);
}
return;
}
var k=dojo.keys,c=e.charOrCode;
if((_557&&(c==k.LEFT_ARROW||c==k.UP_ARROW))||(e.ctrlKey&&c==k.PAGE_UP)){
this._adjacent(false)._buttonWidget._onTitleClick();
dojo.stopEvent(e);
}else{
if((_557&&(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 _55a=dojo.attr(this.domNode,"id").replace(" ","_");
dojo.attr(this.titleTextNode,"id",_55a+"_title");
dijit.setWaiState(this.focusNode,"labelledby",dojo.attr(this.titleTextNode,"id"));
},getTitleHeight:function(){
return dojo.marginBox(this.titleNode).h;
},_onTitleClick:function(){
var _55b=this.getParent();
if(!_55b._inTransition){
_55b.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(_55d){
this.selected=_55d;
dojo[(_55d?"addClass":"removeClass")](this.titleNode,"dijitAccordionTitle-selected");
dijit.setWaiState(this.focusNode,"expanded",_55d);
dijit.setWaiState(this.focusNode,"selected",_55d);
this.focusNode.setAttribute("tabIndex",_55d?"0":"-1");
},_handleFocus:function(e){
dojo[(e.type=="focus"?"addClass":"removeClass")](this.focusNode,"dijitAccordionFocused");
},setSelected:function(_55f){
this._setSelectedState(_55f);
if(_55f){
var cw=this.contentWidget;
if(cw.onSelected){
cw.onSelected();
}
}
}});
}
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 _57a=n.scrollLeft,_57b=n.scrollTop;
n.scrollLeft=n.scrollLeft+dx;
n.scrollTop=n.scrollTop+dy;
if(_57a!=n.scrollLeft||_57b!=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(node,e,host){
this.node=dojo.byId(node);
this.marginBox={l:e.pageX,t:e.pageY};
this.mouseButton=e.button;
var h=this.host=host,d=node.ownerDocument,_581=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),_581];
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(node,_590){
this.node=dojo.byId(node);
if(!_590){
_590={};
}
this.handle=_590.handle?dojo.byId(_590.handle):null;
if(!this.handle){
this.handle=this.node;
}
this.delay=_590.delay>0?_590.delay:0;
this.skip=_590.skip;
this.mover=_590.mover?_590.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(_591,node){
return new dojo.dnd.Moveable(node,_591);
},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(_599){
dojo.publish("/dnd/move/start",[_599]);
dojo.addClass(dojo.body(),"dojoMove");
dojo.addClass(this.node,"dojoMoveItem");
},onMoveStop:function(_59a){
dojo.publish("/dnd/move/stop",[_59a]);
dojo.removeClass(dojo.body(),"dojoMove");
dojo.removeClass(this.node,"dojoMoveItem");
},onFirstMove:function(_59b){
},onMove:function(_59c,_59d){
this.onMoving(_59c,_59d);
var s=_59c.node.style;
s.left=_59d.l+"px";
s.top=_59d.t+"px";
this.onMoved(_59c,_59d);
},onMoving:function(_59f,_5a0){
},onMoved:function(_5a1,_5a2){
}});
}
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(_5a3,node){
return new dojo.dnd.move.constrainedMoveable(node,_5a3);
},constructor:function(node,_5a6){
if(!_5a6){
_5a6={};
}
this.constraints=_5a6.constraints;
this.within=_5a6.within;
},onFirstMove:function(_5a7){
var c=this.constraintBox=this.constraints.call(this,_5a7);
c.r=c.l+c.w;
c.b=c.t+c.h;
if(this.within){
var mb=dojo.marginBox(_5a7.node);
c.r-=mb.w;
c.b-=mb.h;
}
},onMove:function(_5aa,_5ab){
var c=this.constraintBox,s=_5aa.node.style;
s.left=(_5ab.l<c.l?c.l:c.r<_5ab.l?c.r:_5ab.l)+"px";
s.top=(_5ab.t<c.t?c.t:c.b<_5ab.t?c.b:_5ab.t)+"px";
}});
dojo.declare("dojo.dnd.move.boxConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{box:{},markupFactory:function(_5ae,node){
return new dojo.dnd.move.boxConstrainedMoveable(node,_5ae);
},constructor:function(node,_5b1){
var box=_5b1&&_5b1.box;
this.constraints=function(){
return box;
};
}});
dojo.declare("dojo.dnd.move.parentConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(_5b3,node){
return new dojo.dnd.move.parentConstrainedMoveable(node,_5b3);
},constructor:function(node,_5b6){
var area=_5b6&&_5b6.area;
this.constraints=function(){
var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);
if(area=="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(area=="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(area=="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,_5bd){
dojo.deprecated("dojo.dnd.move.constrainedMover, use dojo.dnd.move.constrainedMoveable instead");
var _5be=function(node,e,_5c1){
dojo.dnd.Mover.call(this,node,e,_5c1);
};
dojo.extend(_5be,dojo.dnd.Mover.prototype);
dojo.extend(_5be,{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(_5bd){
var mb=dojo.marginBox(this.node);
c.r-=mb.w;
c.b-=mb.h;
}
}});
return _5be;
};
dojo.dnd.move.boxConstrainedMover=function(box,_5ca){
dojo.deprecated("dojo.dnd.move.boxConstrainedMover, use dojo.dnd.move.boxConstrainedMoveable instead");
return dojo.dnd.move.constrainedMover(function(){
return box;
},_5ca);
};
dojo.dnd.move.parentConstrainedMover=function(area,_5cc){
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(area=="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(area=="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(area=="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,_5cc);
};
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 _5d2=dojo.dnd.Moveable.prototype.onMove;
dojo.declare("dojo.dnd.TimedMoveable",dojo.dnd.Moveable,{timeout:40,constructor:function(node,_5d4){
if(!_5d4){
_5d4={};
}
if(_5d4.timeout&&typeof _5d4.timeout=="number"&&_5d4.timeout>=0){
this.timeout=_5d4.timeout;
}
},markupFactory:function(_5d5,node){
return new dojo.dnd.TimedMoveable(node,_5d5);
},onMoveStop:function(_5d7){
if(_5d7._timer){
clearTimeout(_5d7._timer);
_5d2.call(this,_5d7,_5d7._leftTop);
}
dojo.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);
},onMove:function(_5d8,_5d9){
_5d8._leftTop=_5d9;
if(!_5d8._timer){
var _t=this;
_5d8._timer=setTimeout(function(){
_5d8._timer=null;
_5d2.call(_t,_5d8,_5d8._leftTop);
},this.timeout);
}
}});
})();
}
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(_5db){
},onCancel:function(){
},onExecute:function(){
},_onSubmit:function(){
this.onExecute();
this.execute(this.attr("value"));
},_getFocusItems:function(_5dc){
var _5dd=dijit._getTabNavigable(dojo.byId(_5dc));
this._firstFocusItem=_5dd.lowest||_5dd.first||_5dc;
this._lastFocusItem=_5dd.last||_5dd.highest||this._firstFocusItem;
if(dojo.isMoz&&this._firstFocusItem.tagName.toLowerCase()=="input"&&dojo.attr(this._firstFocusItem,"type").toLowerCase()=="file"){
dojo.attr(_5dc,"tabindex","0");
this._firstFocusItem=_5dc;
}
}});
}
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(_5df){
this.node.className="dijitDialogUnderlay "+_5df;
},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 _5e2=dijit.getViewport();
os.top=_5e2.t+"px";
os.left=_5e2.l+"px";
is.width=_5e2.w+"px";
is.height=_5e2.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["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,_5e4,_5e5){
var c=this._currentOrientClass;
if(c){
dojo.removeClass(this.domNode,c);
}
c="dijitTooltipAB"+(_5e5.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_5e5.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 _5eb=(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(!_5eb){
dijit.focus(this._lastFocusItem);
}
dojo.stopEvent(evt);
}else{
if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){
if(!_5eb){
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 _5ec=dojo.i18n.getLocalization("dijit","common");
dojo.mixin(this,_5ec);
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 _5f1={dialogId:this.id,"class":dojo.map(this["class"].split(/\s/),function(s){
return s+"_underlay";
}).join(" ")};
var _5f3=dijit._underlay;
if(!_5f3){
_5f3=dijit._underlay=new dijit.DialogUnderlay(_5f1);
}
this._fadeIn=dojo.fadeIn({node:node,duration:this.duration,beforeBegin:function(){
_5f3.attr(_5f1);
_5f3.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 _5f4=false;
if(this._fadeIn&&this._fadeIn.status()=="playing"){
_5f4=true;
this._fadeIn.stop();
}
if(this._fadeOut&&this._fadeOut.status()=="playing"){
_5f4=true;
this._fadeOut.stop();
}
if(this.open||_5f4){
dijit._underlay.hide();
}
if(this._moveable){
this._moveable.destroy();
}
},_size:function(){
var mb=dojo.marginBox(this.domNode);
var _5f6=dijit.getViewport();
if(mb.w>=_5f6.w||mb.h>=_5f6.h){
dojo.style(this.containerNode,{width:Math.min(mb.w,Math.floor(_5f6.w*0.75))+"px",height:Math.min(mb.h,Math.floor(_5f6.h*0.75))+"px",overflow:"auto",position:"relative"});
}
},_position:function(){
if(!dojo.hasClass(dojo.body(),"dojoMove")){
var node=this.domNode;
var _5f8=dijit.getViewport();
var p=this._relativePosition;
var mb=p?null:dojo.marginBox(node);
dojo.style(node,{left:Math.floor(_5f8.l+(p?p.l:(_5f8.w-mb.w)/2))+"px",top:Math.floor(_5f8.t+(p?p.t:(_5f8.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 _5fe=(this._firstFocusItem==this._lastFocusItem);
if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){
if(!_5fe){
dijit.focus(this._lastFocusItem);
}
dojo.stopEvent(evt);
}else{
if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){
if(!_5fe){
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 _5ff=dijit.getViewport();
if(!this._oldViewport||_5ff.h!=this._oldViewport.h||_5ff.w!=this._oldViewport.w){
this.layout();
this._oldViewport=_5ff;
}
}));
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");
}});
}
dojo.i18n._preloadLocalizations("dojo.nls.dojosf",["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"]);
