if(!dojo._hasResource["dojo.i18n"]){
dojo._hasResource["dojo.i18n"]=true;
dojo.provide("dojo.i18n");
dojo.i18n.getLocalization=function(_1,_2,_3){
_3=dojo.i18n.normalizeLocale(_3);
var _4=_3.split("-");
var _5=[_1,"nls",_2].join(".");
var _6=dojo._loadedModules[_5];
if(_6){
var _7;
for(var i=_4.length;i>0;i--){
var _9=_4.slice(0,i).join("_");
if(_6[_9]){
_7=_6[_9];
break;
}
}
if(!_7){
_7=_6.ROOT;
}
if(_7){
var _a=function(){
};
_a.prototype=_7;
return new _a();
}
}
throw new Error("Bundle not found: "+_2+" in "+_1+" , locale="+_3);
};
dojo.i18n.normalizeLocale=function(_b){
var _c=_b?_b.toLowerCase():dojo.locale;
if(_c=="root"){
_c="ROOT";
}
return _c;
};
dojo.i18n._requireLocalization=function(_d,_e,_f,_10){
var _11=dojo.i18n.normalizeLocale(_f);
var _12=[_d,"nls",_e].join(".");
var _13="";
if(_10){
var _14=_10.split(",");
for(var i=0;i<_14.length;i++){
if(_11.indexOf(_14[i])==0){
if(_14[i].length>_13.length){
_13=_14[i];
}
}
}
if(!_13){
_13="ROOT";
}
}
var _16=_10?_13:_11;
var _17=dojo._loadedModules[_12];
var _18=null;
if(_17){
if(dojo.config.localizationComplete&&_17._built){
return;
}
var _19=_16.replace(/-/g,"_");
var _1a=_12+"."+_19;
_18=dojo._loadedModules[_1a];
}
if(!_18){
_17=dojo["provide"](_12);
var _1b=dojo._getModuleSymbols(_d);
var _1c=_1b.concat("nls").join("/");
var _1d;
dojo.i18n._searchLocalePath(_16,_10,function(loc){
var _1f=loc.replace(/-/g,"_");
var _20=_12+"."+_1f;
var _21=false;
if(!dojo._loadedModules[_20]){
dojo["provide"](_20);
var _22=[_1c];
if(loc!="ROOT"){
_22.push(loc);
}
_22.push(_e);
var _23=_22.join("/")+".js";
_21=dojo._loadPath(_23,null,function(_24){
var _25=function(){
};
_25.prototype=_1d;
_17[_1f]=new _25();
for(var j in _24){
_17[_1f][j]=_24[j];
}
});
}else{
_21=true;
}
if(_21&&_17[_1f]){
_1d=_17[_1f];
}else{
_17[_1f]=_1d;
}
if(_10){
return true;
}
});
}
if(_10&&_11!=_13){
_17[_11.replace(/-/g,"_")]=_17[_13.replace(/-/g,"_")];
}
};
(function(){
var _27=dojo.config.extraLocale;
if(_27){
if(!_27 instanceof Array){
_27=[_27];
}
var req=dojo.i18n._requireLocalization;
dojo.i18n._requireLocalization=function(m,b,_2b,_2c){
req(m,b,_2b,_2c);
if(_2b){
return;
}
for(var i=0;i<_27.length;i++){
req(m,b,_27[i],_2c);
}
};
}
})();
dojo.i18n._searchLocalePath=function(_2e,_2f,_30){
_2e=dojo.i18n.normalizeLocale(_2e);
var _31=_2e.split("-");
var _32=[];
for(var i=_31.length;i>0;i--){
_32.push(_31.slice(0,i).join("-"));
}
_32.push(false);
if(_2f){
_32.reverse();
}
for(var j=_32.length-1;j>=0;j--){
var loc=_32[j]||"ROOT";
var _36=_30(loc);
if(_36){
break;
}
}
};
dojo.i18n._preloadLocalizations=function(_37,_38){
function preload(_39){
_39=dojo.i18n.normalizeLocale(_39);
dojo.i18n._searchLocalePath(_39,true,function(loc){
for(var i=0;i<_38.length;i++){
if(_38[i]==loc){
dojo["require"](_37+"_"+loc);
return true;
}
}
return false;
});
};
preload();
var _3c=dojo.config.extraLocale||[];
for(var i=0;i<_3c.length;i++){
preload(_3c[i]);
}
};
}
if(!dojo._hasResource["dojo.fx"]){
dojo._hasResource["dojo.fx"]=true;
dojo.provide("dojo.fx");
dojo.provide("dojo.fx.Toggler");
(function(){
var _1={_fire:function(_2,_3){
if(this[_2]){
this[_2].apply(this,_3||[]);
}
return this;
}};
var _4=function(_5){
this._index=-1;
this._animations=_5||[];
this._current=this._onAnimateCtx=this._onEndCtx=null;
this.duration=0;
dojo.forEach(this._animations,function(a){
this.duration+=a.duration;
if(a.delay){
this.duration+=a.delay;
}
},this);
};
dojo.extend(_4,{_onAnimate:function(){
this._fire("onAnimate",arguments);
},_onEnd:function(){
dojo.disconnect(this._onAnimateCtx);
dojo.disconnect(this._onEndCtx);
this._onAnimateCtx=this._onEndCtx=null;
if(this._index+1==this._animations.length){
this._fire("onEnd");
}else{
this._current=this._animations[++this._index];
this._onAnimateCtx=dojo.connect(this._current,"onAnimate",this,"_onAnimate");
this._onEndCtx=dojo.connect(this._current,"onEnd",this,"_onEnd");
this._current.play(0,true);
}
},play:function(_7,_8){
if(!this._current){
this._current=this._animations[this._index=0];
}
if(!_8&&this._current.status()=="playing"){
return this;
}
var _9=dojo.connect(this._current,"beforeBegin",this,function(){
this._fire("beforeBegin");
}),_a=dojo.connect(this._current,"onBegin",this,function(_b){
this._fire("onBegin",arguments);
}),_c=dojo.connect(this._current,"onPlay",this,function(_d){
this._fire("onPlay",arguments);
dojo.disconnect(_9);
dojo.disconnect(_a);
dojo.disconnect(_c);
});
if(this._onAnimateCtx){
dojo.disconnect(this._onAnimateCtx);
}
this._onAnimateCtx=dojo.connect(this._current,"onAnimate",this,"_onAnimate");
if(this._onEndCtx){
dojo.disconnect(this._onEndCtx);
}
this._onEndCtx=dojo.connect(this._current,"onEnd",this,"_onEnd");
this._current.play.apply(this._current,arguments);
return this;
},pause:function(){
if(this._current){
var e=dojo.connect(this._current,"onPause",this,function(_f){
this._fire("onPause",arguments);
dojo.disconnect(e);
});
this._current.pause();
}
return this;
},gotoPercent:function(_10,_11){
this.pause();
var _12=this.duration*_10;
this._current=null;
dojo.some(this._animations,function(a){
if(a.duration<=_12){
this._current=a;
return true;
}
_12-=a.duration;
return false;
});
if(this._current){
this._current.gotoPercent(_12/_current.duration,_11);
}
return this;
},stop:function(_14){
if(this._current){
if(_14){
for(;this._index+1<this._animations.length;++this._index){
this._animations[this._index].stop(true);
}
this._current=this._animations[this._index];
}
var e=dojo.connect(this._current,"onStop",this,function(arg){
this._fire("onStop",arguments);
dojo.disconnect(e);
});
this._current.stop();
}
return this;
},status:function(){
return this._current?this._current.status():"stopped";
},destroy:function(){
if(this._onAnimateCtx){
dojo.disconnect(this._onAnimateCtx);
}
if(this._onEndCtx){
dojo.disconnect(this._onEndCtx);
}
}});
dojo.extend(_4,_1);
dojo.fx.chain=function(_17){
return new _4(_17);
};
var _18=function(_19){
this._animations=_19||[];
this._connects=[];
this._finished=0;
this.duration=0;
dojo.forEach(_19,function(a){
var _1b=a.duration;
if(a.delay){
_1b+=a.delay;
}
if(this.duration<_1b){
this.duration=_1b;
}
this._connects.push(dojo.connect(a,"onEnd",this,"_onEnd"));
},this);
this._pseudoAnimation=new dojo._Animation({curve:[0,1],duration:this.duration});
dojo.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop"],function(evt){
this._connects.push(dojo.connect(this._pseudoAnimation,evt,dojo.hitch(this,"_fire",evt)));
},this);
};
dojo.extend(_18,{_doAction:function(_1d,_1e){
dojo.forEach(this._animations,function(a){
a[_1d].apply(a,_1e);
});
return this;
},_onEnd:function(){
if(++this._finished==this._animations.length){
this._fire("onEnd");
}
},_call:function(_20,_21){
var t=this._pseudoAnimation;
t[_20].apply(t,_21);
},play:function(_23,_24){
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(_25,_26){
var ms=this.duration*_25;
dojo.forEach(this._animations,function(a){
a.gotoPercent(a.duration<ms?1:(ms/a.duration),_26);
});
this._call("gotoProcent",arguments);
return this;
},stop:function(_29){
this._doAction("stop",arguments);
this._call("stop",arguments);
return this;
},status:function(){
return this._pseudoAnimation.status();
},destroy:function(){
dojo.forEach(this._connects,dojo.disconnect);
}});
dojo.extend(_18,_1);
dojo.fx.combine=function(_2a){
return new _18(_2a);
};
})();
dojo.declare("dojo.fx.Toggler",null,{constructor:function(_2b){
var _t=this;
dojo.mixin(_t,_2b);
_t.node=_2b.node;
_t._showArgs=dojo.mixin({},_2b);
_t._showArgs.node=_t.node;
_t._showArgs.duration=_t.showDuration;
_t.showAnim=_t.showFunc(_t._showArgs);
_t._hideArgs=dojo.mixin({},_2b);
_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(_2d){
return this.showAnim.play(_2d||0);
},hide:function(_2e){
return this.hideAnim.play(_2e||0);
}});
dojo.fx.wipeIn=function(_2f){
_2f.node=dojo.byId(_2f.node);
var _30=_2f.node,s=_30.style;
var _32=dojo.animateProperty(dojo.mixin({properties:{height:{start:function(){
s.overflow="hidden";
if(s.visibility=="hidden"||s.display=="none"){
s.height="1px";
s.display="";
s.visibility="";
return 1;
}else{
var _33=dojo.style(_30,"height");
return Math.max(_33,1);
}
},end:function(){
return _30.scrollHeight;
}}}},_2f));
dojo.connect(_32,"onEnd",function(){
s.height="auto";
});
return _32;
};
dojo.fx.wipeOut=function(_34){
var _35=_34.node=dojo.byId(_34.node);
var s=_35.style;
var _37=dojo.animateProperty(dojo.mixin({properties:{height:{end:1}}},_34));
dojo.connect(_37,"beforeBegin",function(){
s.overflow="hidden";
s.display="";
});
dojo.connect(_37,"onEnd",function(){
s.height="auto";
s.display="none";
});
return _37;
};
dojo.fx.slideTo=function(_38){
var _39=(_38.node=dojo.byId(_38.node));
var top=null;
var _3b=null;
var _3c=(function(n){
return function(){
var cs=dojo.getComputedStyle(n);
var pos=cs.position;
top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);
_3b=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);
if(pos!="absolute"&&pos!="relative"){
var ret=dojo.coords(n,true);
top=ret.y;
_3b=ret.x;
n.style.position="absolute";
n.style.top=top+"px";
n.style.left=_3b+"px";
}
};
})(_39);
_3c();
var _41=dojo.animateProperty(dojo.mixin({properties:{top:{end:_38.top||0},left:{end:_38.left||0}}},_38));
dojo.connect(_41,"beforeBegin",_41,_3c);
return _41;
};
}
if(!dojo._hasResource["dojo.string"]){
dojo._hasResource["dojo.string"]=true;
dojo.provide("dojo.string");
dojo.string.pad=function(_1,_2,ch,_4){
var _5=String(_1);
if(!ch){
ch="0";
}
while(_5.length<_2){
if(_4){
_5+=ch;
}else{
_5=ch+_5;
}
}
return _5;
};
dojo.string.substitute=function(_6,_7,_8,_9){
return _6.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_a,_b,_c){
var _d=dojo.getObject(_b,false,_7);
if(_c){
_d=dojo.getObject(_c,false,_9)(_d);
}
if(_8){
_d=_8(_d,_b);
}
return _d.toString();
});
};
dojo.string.trim=function(_e){
_e=_e.replace(/^\s+/,"");
for(var i=_e.length-1;i>0;i--){
if(/\S/.test(_e.charAt(i))){
_e=_e.substring(0,i+1);
break;
}
}
return _e;
};
}
if(!dojo._hasResource["dojo.parser"]){
dojo._hasResource["dojo.parser"]=true;
dojo.provide("dojo.parser");
dojo.require("dojo.date.stamp");
dojo.parser=new function(){
var d=dojo;
var _2=d._scopeName+"Type";
var _3="["+_2+"]";
function val2type(_4){
if(d.isString(_4)){
return "string";
}
if(typeof _4=="number"){
return "number";
}
if(typeof _4=="boolean"){
return "boolean";
}
if(d.isFunction(_4)){
return "function";
}
if(d.isArray(_4)){
return "array";
}
if(_4 instanceof Date){
return "date";
}
if(_4 instanceof d._Url){
return "url";
}
return "object";
};
function str2obj(_5,_6){
switch(_6){
case "string":
return _5;
case "number":
return _5.length?Number(_5):NaN;
case "boolean":
return typeof _5=="boolean"?_5:!(_5.toLowerCase()=="false");
case "function":
if(d.isFunction(_5)){
_5=_5.toString();
_5=d.trim(_5.substring(_5.indexOf("{")+1,_5.length-1));
}
try{
if(_5.search(/[^\w\.]+/i)!=-1){
_5=d.parser._nameAnonFunc(new Function(_5),this);
}
return d.getObject(_5,false);
}
catch(e){
return new Function();
}
case "array":
return _5.split(/\s*,\s*/);
case "date":
switch(_5){
case "":
return new Date("");
case "now":
return new Date();
default:
return d.date.stamp.fromISOString(_5);
}
case "url":
return d.baseUrl+_5;
default:
return d.fromJson(_5);
}
};
var _7={};
function getClassInfo(_8){
if(!_7[_8]){
var _9=d.getObject(_8);
if(!d.isFunction(_9)){
throw new Error("Could not load class '"+_8+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");
}
var _a=_9.prototype;
var _b={};
for(var _c in _a){
if(_c.charAt(0)=="_"){
continue;
}
var _d=_a[_c];
_b[_c]=val2type(_d);
}
_7[_8]={cls:_9,params:_b};
}
return _7[_8];
};
this._functionFromScript=function(_e){
var _f="";
var _10="";
var _11=_e.getAttribute("args");
if(_11){
d.forEach(_11.split(/\s*,\s*/),function(_12,idx){
_f+="var "+_12+" = arguments["+idx+"]; ";
});
}
var _14=_e.getAttribute("with");
if(_14&&_14.length){
d.forEach(_14.split(/\s*,\s*/),function(_15){
_f+="with("+_15+"){";
_10+="}";
});
}
return new Function(_f+_e.innerHTML+_10);
};
this.instantiate=function(_16){
var _17=[];
d.forEach(_16,function(_18){
if(!_18){
return;
}
var _19=_18.getAttribute(_2);
if((!_19)||(!_19.length)){
return;
}
var _1a=getClassInfo(_19);
var _1b=_1a.cls;
var ps=_1b._noScript||_1b.prototype._noScript;
var _1d={};
var _1e=_18.attributes;
for(var _1f in _1a.params){
var _20=_1e.getNamedItem(_1f);
if(!_20||(!_20.specified&&(!dojo.isIE||_1f.toLowerCase()!="value"))){
continue;
}
var _21=_20.value;
switch(_1f){
case "class":
_21=_18.className;
break;
case "style":
_21=_18.style&&_18.style.cssText;
}
var _22=_1a.params[_1f];
_1d[_1f]=str2obj(_21,_22);
}
if(!ps){
var _23=[],_24=[];
d.query("> script[type^='dojo/']",_18).orphan().forEach(function(_25){
var _26=_25.getAttribute("event"),_19=_25.getAttribute("type"),nf=d.parser._functionFromScript(_25);
if(_26){
if(_19=="dojo/connect"){
_23.push({event:_26,func:nf});
}else{
_1d[_26]=nf;
}
}else{
_24.push(nf);
}
});
}
var _28=_1b["markupFactory"];
if(!_28&&_1b["prototype"]){
_28=_1b.prototype["markupFactory"];
}
var _29=_28?_28(_1d,_18,_1b):new _1b(_1d,_18);
_17.push(_29);
var _2a=_18.getAttribute("jsId");
if(_2a){
d.setObject(_2a,_29);
}
if(!ps){
d.forEach(_23,function(_2b){
d.connect(_29,_2b.event,null,_2b.func);
});
d.forEach(_24,function(_2c){
_2c.call(_29);
});
}
});
d.forEach(_17,function(_2d){
if(_2d&&_2d.startup&&!_2d._started&&(!_2d.getParent||!_2d.getParent())){
_2d.startup();
}
});
return _17;
};
this.parse=function(_2e){
var _2f=d.query(_3,_2e);
var _30=this.instantiate(_2f);
return _30;
};
}();
(function(){
var _31=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,_31);
}else{
dojo._loaders.unshift(_31);
}
})();
dojo.parser._anonCtr=0;
dojo.parser._anon={};
dojo.parser._nameAnonFunc=function(_32,_33){
var jpn="$joinpoint";
var nso=(_33||dojo.parser._anon);
if(dojo.isIE){
var cn=_32["__dojoNameCache"];
if(cn&&nso[cn]===_32){
return _32["__dojoNameCache"];
}
}
var ret="__"+dojo.parser._anonCtr++;
while(typeof nso[ret]!="undefined"){
ret="__"+dojo.parser._anonCtr++;
}
nso[ret]=_32;
return ret;
};
}
