/*
        Copyright (c) 2004-2008, The Dojo Foundation
        All Rights Reserved.

        Licensed under the Academic Free License version 2.1 or above OR the
        modified BSD license. For more information on Dojo licensing, see:

                http://dojotoolkit.org/book/dojo-book-0-9/introduction/licensing
*/


/* JavaScript in the lconn packages are (C) Copyright IBM Corp.  2008  All Rights Reserved. */
(function(){
var _1=null;
if((_1||(typeof djConfig!="undefined"&&djConfig.scopeMap))&&(typeof window!="undefined")){
var _2="",_3="",_4="",_5={},_6={};
_1=_1||djConfig.scopeMap;
for(var i=0;i<_1.length;i++){
var _8=_1[i];
_2+="var "+_8[0]+" = {}; "+_8[1]+" = "+_8[0]+";"+_8[1]+"._scopeName = '"+_8[1]+"';";
_3+=(i==0?"":",")+_8[0];
_4+=(i==0?"":",")+_8[1];
_5[_8[0]]=_8[1];
_6[_8[1]]=_8[0];
}
eval(_2+"dojo._scopeArgs = ["+_4+"];");
dojo._scopePrefixArgs=_3;
dojo._scopePrefix="(function("+_3+"){";
dojo._scopeSuffix="})("+_4+")";
dojo._scopeMap=_5;
dojo._scopeMapRev=_6;
}
(function(){
if(this["navigator"]){
if(/3[\.0-9]+.*Safari/i.test(navigator.appVersion)&&this["console"]){
this.console={_c:this.console,log:function(s){
this._c.log(s);
},info:function(s){
this._c.info(s);
},error:function(s){
this._c.error(s);
},warn:function(s){
this._c.warn(s);
}};
}
}
if(!this["console"]){
this.console={};
}
var cn=["assert","count","debug","dir","dirxml","error","group","groupEnd","info","profile","profileEnd","time","timeEnd","trace","warn","log"];
var i=0,tn;
while((tn=cn[i++])){
if(!console[tn]){
(function(){
var tcn=tn+"";
console[tcn]=("log" in console)?function(){
var a=Array.apply({},arguments);
a.unshift(tcn+":");
console["log"](a.join(" "));
}:function(){
};
})();
}
}
if(typeof dojo=="undefined"){
this.dojo={_scopeName:"dojo",_scopePrefix:"",_scopePrefixArgs:"",_scopeSuffix:"",_scopeMap:{},_scopeMapRev:{}};
}
var d=dojo;
if(typeof dijit=="undefined"){
this.dijit={_scopeName:"dijit"};
}
if(typeof dojox=="undefined"){
this.dojox={_scopeName:"dojox"};
}
if(!d._scopeArgs){
d._scopeArgs=[dojo,dijit,dojox];
}
d.global=this;
d.config={isDebug:false,debugAtAllCosts:false};
if(typeof djConfig!="undefined"){
for(var opt in djConfig){
d.config[opt]=djConfig[opt];
}
}
var _14=["Browser","Rhino","Spidermonkey","Mobile"];
var t;
while((t=_14.shift())){
d["is"+t]=false;
}
dojo.locale=d.config.locale;
var rev="$Rev: 15997 $".match(/\d+/);
dojo.version={major:1,minor:2,patch:0,flag:"connections",revision:rev?+rev[0]:999999,toString:function(){
with(d.version){
return major+"."+minor+"."+patch+flag+" ("+revision+")";
}
}};
if(typeof OpenAjax!="undefined"){
OpenAjax.hub.registerLibrary(dojo._scopeName,"http://dojotoolkit.org",d.version.toString());
}
dojo._mixin=function(obj,_18){
var _19={};
for(var x in _18){
if(_19[x]===undefined||_19[x]!=_18[x]){
obj[x]=_18[x];
}
}
if(d["isIE"]&&_18){
var p=_18.toString;
if(typeof p=="function"&&p!=obj.toString&&p!=_19.toString&&p!="\nfunction toString() {\n    [native code]\n}\n"){
obj.toString=_18.toString;
}
}
return obj;
};
dojo.mixin=function(obj,_1d){
for(var i=1,l=arguments.length;i<l;i++){
d._mixin(obj,arguments[i]);
}
return obj;
};
dojo._getProp=function(_20,_21,_22){
var obj=_22||d.global;
for(var i=0,p;obj&&(p=_20[i]);i++){
if(i==0&&this._scopeMap[p]){
p=this._scopeMap[p];
}
obj=(p in obj?obj[p]:(_21?obj[p]={}:undefined));
}
return obj;
};
dojo.setObject=function(_26,_27,_28){
var _29=_26.split("."),p=_29.pop(),obj=d._getProp(_29,true,_28);
return obj&&p?(obj[p]=_27):undefined;
};
dojo.getObject=function(_2c,_2d,_2e){
return d._getProp(_2c.split("."),_2d,_2e);
};
dojo.exists=function(_2f,obj){
return !!d.getObject(_2f,false,obj);
};
dojo["eval"]=function(_31){
return d.global.eval?d.global.eval(_31):eval(_31);
};
d.deprecated=d.experimental=function(){
};
})();
(function(){
var d=dojo;
d.mixin(d,{_loadedModules:{},_inFlightCount:0,_hasResource:{},_modulePrefixes:{dojo:{name:"dojo",value:"."},doh:{name:"doh",value:"../util/doh"},tests:{name:"tests",value:"tests"}},_moduleHasPrefix:function(_33){
var mp=this._modulePrefixes;
return !!(mp[_33]&&mp[_33].value);
},_getModulePrefix:function(_35){
var mp=this._modulePrefixes;
if(this._moduleHasPrefix(_35)){
return mp[_35].value;
}
return _35;
},_loadedUrls:[],_postLoad:false,_loaders:[],_unloaders:[],_loadNotifying:false});
dojo._loadPath=function(_37,_38,cb){
var uri=((_37.charAt(0)=="/"||_37.match(/^\w+:/))?"":this.baseUrl)+_37;
try{
return !_38?this._loadUri(uri,cb):this._loadUriAndCheck(uri,_38,cb);
}
catch(e){
console.error(e);
return false;
}
};
dojo._loadUri=function(uri,cb){
if(this._loadedUrls[uri]){
return true;
}
var _3d=this._getText(uri,true);
if(!_3d){
return false;
}
this._loadedUrls[uri]=true;
this._loadedUrls.push(uri);
if(cb){
_3d="("+_3d+")";
}else{
_3d=this._scopePrefix+_3d+this._scopeSuffix;
}
if(d.isMoz){
_3d+="\r\n//@ sourceURL="+uri;
}
var _3e=d["eval"](_3d);
if(cb){
cb(_3e);
}
return true;
};
dojo._loadUriAndCheck=function(uri,_40,cb){
var ok=false;
try{
ok=this._loadUri(uri,cb);
}
catch(e){
console.error("failed loading "+uri+" with error: "+e);
}
return !!(ok&&this._loadedModules[_40]);
};
dojo.loaded=function(){
this._loadNotifying=true;
this._postLoad=true;
var mll=d._loaders;
this._loaders=[];
for(var x=0;x<mll.length;x++){
mll[x]();
}
this._loadNotifying=false;
if(d._postLoad&&d._inFlightCount==0&&mll.length){
d._callLoaded();
}
};
dojo.unloaded=function(){
var mll=this._unloaders;
while(mll.length){
(mll.pop())();
}
};
d._onto=function(arr,obj,fn){
if(!fn){
arr.push(obj);
}else{
if(fn){
var _49=(typeof fn=="string")?obj[fn]:fn;
arr.push(function(){
_49.call(obj);
});
}
}
};
dojo.addOnLoad=function(obj,_4b){
d._onto(d._loaders,obj,_4b);
if(d._postLoad&&d._inFlightCount==0&&!d._loadNotifying){
d._callLoaded();
}
};
var dca=d.config.addOnLoad;
if(dca){
d.addOnLoad[(dca instanceof Array?"apply":"call")](d,dca);
}
dojo.addOnUnload=function(obj,_4e){
d._onto(d._unloaders,obj,_4e);
};
dojo._modulesLoaded=function(){
if(d._postLoad){
return;
}
if(d._inFlightCount>0){
console.warn("files still in flight!");
return;
}
d._callLoaded();
};
dojo._callLoaded=function(){
if(typeof setTimeout=="object"||(dojo.config.useXDomain&&d.isOpera)){
if(dojo.isAIR){
setTimeout(function(){
dojo.loaded();
},0);
}else{
setTimeout(dojo._scopeName+".loaded();",0);
}
}else{
d.loaded();
}
};
dojo._getModuleSymbols=function(_4f){
var _50=_4f.split(".");
for(var i=_50.length;i>0;i--){
var _52=_50.slice(0,i).join(".");
if((i==1)&&!this._moduleHasPrefix(_52)){
_50[0]="../"+_50[0];
}else{
var _53=this._getModulePrefix(_52);
if(_53!=_52){
_50.splice(0,i,_53);
break;
}
}
}
return _50;
};
dojo._global_omit_module_check=false;
dojo.loadInit=function(_54){
_54();
};
dojo._loadModule=dojo.require=function(_55,_56){
_56=this._global_omit_module_check||_56;
var _57=this._loadedModules[_55];
if(_57){
return _57;
}
var _58=this._getModuleSymbols(_55).join("/")+".js";
var _59=(!_56)?_55:null;
var ok=this._loadPath(_58,_59);
if(!ok&&!_56){
throw new Error("Could not load '"+_55+"'; last tried '"+_58+"'");
}
if(!_56&&!this._isXDomain){
_57=this._loadedModules[_55];
if(!_57){
throw new Error("symbol '"+_55+"' is not defined after loading '"+_58+"'");
}
}
return _57;
};
dojo.provide=function(_5b){
_5b=_5b+"";
return (d._loadedModules[_5b]=d.getObject(_5b,true));
};
dojo.platformRequire=function(_5c){
var _5d=_5c.common||[];
var _5e=_5d.concat(_5c[d._name]||_5c["default"]||[]);
for(var x=0;x<_5e.length;x++){
var _60=_5e[x];
if(_60.constructor==Array){
d._loadModule.apply(d,_60);
}else{
d._loadModule(_60);
}
}
};
dojo.requireIf=function(_61,_62){
if(_61===true){
var _63=[];
for(var i=1;i<arguments.length;i++){
_63.push(arguments[i]);
}
d.require.apply(d,_63);
}
};
dojo.requireAfterIf=d.requireIf;
dojo.registerModulePath=function(_65,_66){
d._modulePrefixes[_65]={name:_65,value:_66};
};
dojo.requireLocalization=function(_67,_68,_69,_6a){
d.require("dojo.i18n");
d.i18n._requireLocalization.apply(d.hostenv,arguments);
};
var ore=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$");
var ire=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");
dojo._Url=function(){
var n=null;
var _a=arguments;
var uri=[_a[0]];
for(var i=1;i<_a.length;i++){
if(!_a[i]){
continue;
}
var _71=new d._Url(_a[i]+"");
var _72=new d._Url(uri[0]+"");
if(_71.path==""&&!_71.scheme&&!_71.authority&&!_71.query){
if(_71.fragment!=n){
_72.fragment=_71.fragment;
}
_71=_72;
}else{
if(!_71.scheme){
_71.scheme=_72.scheme;
if(!_71.authority){
_71.authority=_72.authority;
if(_71.path.charAt(0)!="/"){
var _73=_72.path.substring(0,_72.path.lastIndexOf("/")+1)+_71.path;
var _74=_73.split("/");
for(var j=0;j<_74.length;j++){
if(_74[j]=="."){
if(j==_74.length-1){
_74[j]="";
}else{
_74.splice(j,1);
j--;
}
}else{
if(j>0&&!(j==1&&_74[0]=="")&&_74[j]==".."&&_74[j-1]!=".."){
if(j==(_74.length-1)){
_74.splice(j,1);
_74[j-1]="";
}else{
_74.splice(j-1,2);
j-=2;
}
}
}
}
_71.path=_74.join("/");
}
}
}
}
uri=[];
if(_71.scheme){
uri.push(_71.scheme,":");
}
if(_71.authority){
uri.push("//",_71.authority);
}
uri.push(_71.path);
if(_71.query){
uri.push("?",_71.query);
}
if(_71.fragment){
uri.push("#",_71.fragment);
}
}
this.uri=uri.join("");
var r=this.uri.match(ore);
this.scheme=r[2]||(r[1]?"":n);
this.authority=r[4]||(r[3]?"":n);
this.path=r[5];
this.query=r[7]||(r[6]?"":n);
this.fragment=r[9]||(r[8]?"":n);
if(this.authority!=n){
r=this.authority.match(ire);
this.user=r[3]||n;
this.password=r[4]||n;
this.host=r[6]||r[7];
this.port=r[9]||n;
}
};
dojo._Url.prototype.toString=function(){
return this.uri;
};
dojo.moduleUrl=function(_77,url){
var loc=d._getModuleSymbols(_77).join("/");
if(!loc){
return null;
}
if(loc.lastIndexOf("/")!=loc.length-1){
loc+="/";
}
var _7a=loc.indexOf(":");
if(loc.charAt(0)!="/"&&(_7a==-1||_7a>loc.indexOf("/"))){
loc=d.baseUrl+loc;
}
return new d._Url(loc,url);
};
})();
if(typeof window!="undefined"){
dojo.isBrowser=true;
dojo._name="browser";
(function(){
var d=dojo;
if(document&&document.getElementsByTagName){
var _7c=document.getElementsByTagName("script");
var _7d=/dojo(\.xd)?\.js(\W|$)/i;
for(var i=0;i<_7c.length;i++){
var src=_7c[i].getAttribute("src");
if(!src){
continue;
}
var m=src.match(_7d);
if(m){
if(!d.config.baseUrl){
d.config.baseUrl=src.substring(0,m.index);
}
var cfg=_7c[i].getAttribute("djConfig");
if(cfg){
var _82=eval("({ "+cfg+" })");
for(var x in _82){
dojo.config[x]=_82[x];
}
}
break;
}
}
}
d.baseUrl=d.config.baseUrl;
var n=navigator;
var dua=n.userAgent;
var dav=n.appVersion;
var tv=parseFloat(dav);
if(dua.indexOf("Opera")>=0){
d.isOpera=tv;
}
var _88=Math.max(dav.indexOf("WebKit"),dav.indexOf("Safari"),0);
if(_88){
d.isSafari=parseFloat(dav.split("Version/")[1])||(parseFloat(dav.substr(_88+7))>419.3)?3:2;
}
if(dua.indexOf("AdobeAIR")>=0){
d.isAIR=1;
}
if(dav.indexOf("Konqueror")>=0||d.isSafari){
d.isKhtml=tv;
}
if(dua.indexOf("Gecko")>=0&&!d.isKhtml){
d.isMozilla=d.isMoz=tv;
}
if(d.isMoz){
d.isFF=parseFloat(dua.split("Firefox/")[1])||undefined;
}
if(document.all&&!d.isOpera){
d.isIE=parseFloat(dav.split("MSIE ")[1])||undefined;
}
if(dojo.isIE&&window.location.protocol==="file:"){
dojo.config.ieForceActiveXXhr=true;
}
var cm=document.compatMode;
d.isQuirks=cm=="BackCompat"||cm=="QuirksMode"||d.isIE<6;
d.locale=dojo.config.locale||(d.isIE?n.userLanguage:n.language).toLowerCase();
d._XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];
d._xhrObj=function(){
var _8a=null;
var _8b=null;
if(!dojo.isIE||!dojo.config.ieForceActiveXXhr){
try{
_8a=new XMLHttpRequest();
}
catch(e){
}
}
if(!_8a){
for(var i=0;i<3;++i){
var _8d=d._XMLHTTP_PROGIDS[i];
try{
_8a=new ActiveXObject(_8d);
}
catch(e){
_8b=e;
}
if(_8a){
d._XMLHTTP_PROGIDS=[_8d];
break;
}
}
}
if(!_8a){
throw new Error("XMLHTTP not available: "+_8b);
}
return _8a;
};
d._isDocumentOk=function(_8e){
var _8f=_8e.status||0;
return (_8f>=200&&_8f<300)||_8f==304||_8f==1223||(!_8f&&(location.protocol=="file:"||location.protocol=="chrome:"));
};
var _90=window.location+"";
var _91=document.getElementsByTagName("base");
var _92=(_91&&_91.length>0);
d._getText=function(uri,_94){
var _95=this._xhrObj();
if(!_92&&dojo._Url){
uri=(new dojo._Url(_90,uri)).toString();
}
if(d.config.cacheBust){
uri+="";
uri+=(uri.indexOf("?")==-1?"?":"&")+String(d.config.cacheBust).replace(/\W+/g,"");
}
_95.open("GET",uri,false);
try{
_95.send(null);
if(!d._isDocumentOk(_95)){
var err=Error("Unable to load "+uri+" status:"+_95.status);
err.status=_95.status;
err.responseText=_95.responseText;
throw err;
}
}
catch(e){
if(_94){
return null;
}
throw e;
}
return _95.responseText;
};
d._windowUnloaders=[];
d.windowUnloaded=function(){
var mll=this._windowUnloaders;
while(mll.length){
(mll.pop())();
}
};
d.addOnWindowUnload=function(obj,_99){
d._onto(d._windowUnloaders,obj,_99);
};
})();
dojo._initFired=false;
dojo._loadInit=function(e){
dojo._initFired=true;
var _9b=(e&&e.type)?e.type.toLowerCase():"load";
if(arguments.callee.initialized||(_9b!="domcontentloaded"&&_9b!="load")){
return;
}
arguments.callee.initialized=true;
if("_khtmlTimer" in dojo){
clearInterval(dojo._khtmlTimer);
delete dojo._khtmlTimer;
}
if(dojo._inFlightCount==0){
dojo._modulesLoaded();
}
};
dojo._fakeLoadInit=function(){
dojo._loadInit({type:"load"});
};
if(!dojo.config.afterOnLoad){
if(document.addEventListener){
if(dojo.isOpera||dojo.isFF>=3||(dojo.isMoz&&dojo.config.enableMozDomContentLoaded===true)){
document.addEventListener("DOMContentLoaded",dojo._loadInit,null);
}
window.addEventListener("load",dojo._loadInit,null);
}
if(dojo.isAIR){
window.addEventListener("load",dojo._loadInit,null);
}else{
if(/(WebKit|khtml)/i.test(navigator.userAgent)){
dojo._khtmlTimer=setInterval(function(){
if(/loaded|complete/.test(document.readyState)){
dojo._loadInit();
}
},10);
}
}
}
(function(){
var _w=window;
var _9d=function(_9e,fp){
var _a0=_w[_9e]||function(){
};
_w[_9e]=function(){
fp.apply(_w,arguments);
_a0.apply(_w,arguments);
};
};
if(dojo.isIE){
if(!dojo.config.afterOnLoad){
document.write("<scr"+"ipt defer src=\"//:\" "+"onreadystatechange=\"if(this.readyState=='complete'){"+dojo._scopeName+"._loadInit();}\">"+"</scr"+"ipt>");
}
try{
document.namespaces.add("v","urn:schemas-microsoft-com:vml");
document.createStyleSheet().addRule("v\\:*","behavior:url(#default#VML)");
}
catch(e){
}
}
_9d("onbeforeunload",function(){
dojo.unloaded();
});
_9d("onunload",function(){
dojo.windowUnloaded();
});
})();
}
(function(){
var mp=dojo.config["modulePaths"];
if(mp){
for(var _a2 in mp){
dojo.registerModulePath(_a2,mp[_a2]);
}
}
})();
if(dojo.config.isDebug){
dojo.require("dojo._firebug.firebug");
}
if(dojo.config.debugAtAllCosts){
dojo.config.useXDomain=true;
dojo.require("dojo._base._loader.loader_xd");
dojo.require("dojo._base._loader.loader_debug");
}
if(!dojo._hasResource["dojo._base.lang"]){
dojo._hasResource["dojo._base.lang"]=true;
dojo.provide("dojo._base.lang");
dojo.isString=function(it){
return !!arguments.length&&it!=null&&(typeof it=="string"||it instanceof String);
};
dojo.isArray=function(it){
return it&&(it instanceof Array||typeof it=="array");
};
dojo.isFunction=(function(){
var _a5=function(it){
return it&&(typeof it=="function"||it instanceof Function);
};
return dojo.isSafari?function(it){
if(typeof it=="function"&&it=="[object NodeList]"){
return false;
}
return _a5(it);
}:_a5;
})();
dojo.isObject=function(it){
return it!==undefined&&(it===null||typeof it=="object"||dojo.isArray(it)||dojo.isFunction(it));
};
dojo.isArrayLike=function(it){
var d=dojo;
return it&&it!==undefined&&!d.isString(it)&&!d.isFunction(it)&&!(it.tagName&&it.tagName.toLowerCase()=="form")&&(d.isArray(it)||isFinite(it.length));
};
dojo.isAlien=function(it){
return it&&!dojo.isFunction(it)&&/\{\s*\[native code\]\s*\}/.test(String(it));
};
dojo.extend=function(_ac,_ad){
for(var i=1,l=arguments.length;i<l;i++){
dojo._mixin(_ac.prototype,arguments[i]);
}
return _ac;
};
dojo._hitchArgs=function(_b0,_b1){
var pre=dojo._toArray(arguments,2);
var _b3=dojo.isString(_b1);
return function(){
var _b4=dojo._toArray(arguments);
var f=_b3?(_b0||dojo.global)[_b1]:_b1;
return f&&f.apply(_b0||this,pre.concat(_b4));
};
};
dojo.hitch=function(_b6,_b7){
if(arguments.length>2){
return dojo._hitchArgs.apply(dojo,arguments);
}
if(!_b7){
_b7=_b6;
_b6=null;
}
if(dojo.isString(_b7)){
_b6=_b6||dojo.global;
if(!_b6[_b7]){
throw (["dojo.hitch: scope[\"",_b7,"\"] is null (scope=\"",_b6,"\")"].join(""));
}
return function(){
return _b6[_b7].apply(_b6,arguments||[]);
};
}
return !_b6?_b7:function(){
return _b7.apply(_b6,arguments||[]);
};
};
dojo.delegate=dojo._delegate=(function(){
function TMP(){
};
return function(obj,_b9){
TMP.prototype=obj;
var tmp=new TMP();
if(_b9){
dojo._mixin(tmp,_b9);
}
return tmp;
};
})();
(function(){
var _bb=function(obj,_bd,_be){
return (_be||[]).concat(Array.prototype.slice.call(obj,_bd||0));
};
var _bf=function(obj,_c1,_c2){
var arr=_c2||[];
for(var x=_c1||0;x<obj.length;x++){
arr.push(obj[x]);
}
return arr;
};
dojo._toArray=(!dojo.isIE)?_bb:function(obj){
return ((obj.item)?_bf:_bb).apply(this,arguments);
};
})();
dojo.partial=function(_c6){
var arr=[null];
return dojo.hitch.apply(dojo,arr.concat(dojo._toArray(arguments)));
};
dojo.clone=function(o){
if(!o){
return o;
}
if(dojo.isArray(o)){
var r=[];
for(var i=0;i<o.length;++i){
r.push(dojo.clone(o[i]));
}
return r;
}
if(!dojo.isObject(o)){
return o;
}
if(o.nodeType&&o.cloneNode){
return o.cloneNode(true);
}
if(o instanceof Date){
return new Date(o.getTime());
}
var r=new o.constructor();
for(var i in o){
if(!(i in r)||r[i]!=o[i]){
r[i]=dojo.clone(o[i]);
}
}
return r;
};
dojo.trim=function(str){
return str.replace(/^\s\s*/,"").replace(/\s\s*$/,"");
};
}
if(!dojo._hasResource["dojo._base.declare"]){
dojo._hasResource["dojo._base.declare"]=true;
dojo.provide("dojo._base.declare");
dojo.declare=function(_cc,_cd,_ce){
var dd=arguments.callee,_d0;
if(dojo.isArray(_cd)){
_d0=_cd;
_cd=_d0.shift();
}
if(_d0){
dojo.forEach(_d0,function(m){
if(!m){
throw (_cc+": mixin #"+i+" is null");
}
_cd=dd._delegate(_cd,m);
});
}
var _d2=dd._delegate(_cd);
_ce=_ce||{};
_d2.extend(_ce);
dojo.extend(_d2,{declaredClass:_cc,_constructor:_ce.constructor});
_d2.prototype.constructor=_d2;
return dojo.setObject(_cc,_d2);
};
dojo.mixin(dojo.declare,{_delegate:function(_d3,_d4){
var bp=(_d3||0).prototype,mp=(_d4||0).prototype,dd=dojo.declare;
var _d8=dd._makeCtor();
dojo.mixin(_d8,{superclass:bp,mixin:mp,extend:dd._extend});
if(_d3){
_d8.prototype=dojo._delegate(bp);
}
dojo.extend(_d8,dd._core,mp||0,{_constructor:null,preamble:null});
_d8.prototype.constructor=_d8;
_d8.prototype.declaredClass=(bp||0).declaredClass+"_"+(mp||0).declaredClass;
return _d8;
},_extend:function(_d9){
var i,fn;
for(i in _d9){
if(dojo.isFunction(fn=_d9[i])&&!0[i]){
fn.nom=i;
fn.ctor=this;
}
}
dojo.extend(this,_d9);
},_makeCtor:function(){
return function(){
this._construct(arguments);
};
},_core:{_construct:function(_dc){
var c=_dc.callee,s=c.superclass,ct=s&&s.constructor,m=c.mixin,mct=m&&m.constructor,a=_dc,ii,fn;
if(a[0]){
if(((fn=a[0].preamble))){
a=fn.apply(this,a)||a;
}
}
if((fn=c.prototype.preamble)){
a=fn.apply(this,a)||a;
}
if(ct&&ct.apply){
ct.apply(this,a);
}
if(mct&&mct.apply){
mct.apply(this,a);
}
if((ii=c.prototype._constructor)){
ii.apply(this,_dc);
}
if(this.constructor.prototype==c.prototype&&(ct=this.postscript)){
ct.apply(this,_dc);
}
},_findMixin:function(_e5){
var c=this.constructor,p,m;
while(c){
p=c.superclass;
m=c.mixin;
if(m==_e5||(m instanceof _e5.constructor)){
return p;
}
if(m&&m._findMixin&&(m=m._findMixin(_e5))){
return m;
}
c=p&&p.constructor;
}
},_findMethod:function(_e9,_ea,_eb,has){
var p=_eb,c,m,f;
do{
c=p.constructor;
m=c.mixin;
if(m&&(m=this._findMethod(_e9,_ea,m,has))){
return m;
}
if((f=p[_e9])&&(has==(f==_ea))){
return p;
}
p=c.superclass;
}while(p);
return !has&&(p=this._findMixin(_eb))&&this._findMethod(_e9,_ea,p,has);
},inherited:function(_f1,_f2,_f3){
var a=arguments;
if(!dojo.isString(a[0])){
_f3=_f2;
_f2=_f1;
_f1=_f2.callee.nom;
}
a=_f3||_f2;
var c=_f2.callee,p=this.constructor.prototype,fn,mp;
if(this[_f1]!=c||p[_f1]==c){
mp=(c.ctor||0).superclass||this._findMethod(_f1,c,p,true);
if(!mp){
throw (this.declaredClass+": inherited method \""+_f1+"\" mismatch");
}
p=this._findMethod(_f1,c,mp,false);
}
fn=p&&p[_f1];
if(!fn){
throw (mp.declaredClass+": inherited method \""+_f1+"\" not found");
}
return fn.apply(this,a);
}}});
}
if(!dojo._hasResource["dojo._base.connect"]){
dojo._hasResource["dojo._base.connect"]=true;
dojo.provide("dojo._base.connect");
dojo._listener={getDispatcher:function(){
return function(){
var ap=Array.prototype,c=arguments.callee,ls=c._listeners,t=c.target;
var r=t&&t.apply(this,arguments);
var lls;
lls=[].concat(ls);
for(var i in lls){
if(!(i in ap)){
lls[i].apply(this,arguments);
}
}
return r;
};
},add:function(_100,_101,_102){
_100=_100||dojo.global;
var f=_100[_101];
if(!f||!f._listeners){
var d=dojo._listener.getDispatcher();
d.target=f;
d._listeners=[];
f=_100[_101]=d;
}
return f._listeners.push(_102);
},remove:function(_105,_106,_107){
var f=(_105||dojo.global)[_106];
if(f&&f._listeners&&_107--){
delete f._listeners[_107];
}
}};
dojo.connect=function(obj,_10a,_10b,_10c,_10d){
var a=arguments,args=[],i=0;
args.push(dojo.isString(a[0])?null:a[i++],a[i++]);
var a1=a[i+1];
args.push(dojo.isString(a1)||dojo.isFunction(a1)?a[i++]:null,a[i++]);
for(var l=a.length;i<l;i++){
args.push(a[i]);
}
return dojo._connect.apply(this,args);
};
dojo._connect=function(obj,_113,_114,_115){
var l=dojo._listener,h=l.add(obj,_113,dojo.hitch(_114,_115));
return [obj,_113,h,l];
};
dojo.disconnect=function(_118){
if(_118&&_118[0]!==undefined){
dojo._disconnect.apply(this,_118);
delete _118[0];
}
};
dojo._disconnect=function(obj,_11a,_11b,_11c){
_11c.remove(obj,_11a,_11b);
};
dojo._topics={};
dojo.subscribe=function(_11d,_11e,_11f){
return [_11d,dojo._listener.add(dojo._topics,_11d,dojo.hitch(_11e,_11f))];
};
dojo.unsubscribe=function(_120){
if(_120){
dojo._listener.remove(dojo._topics,_120[0],_120[1]);
}
};
dojo.publish=function(_121,args){
var f=dojo._topics[_121];
if(f){
f.apply(this,args||[]);
}
};
dojo.connectPublisher=function(_124,obj,_126){
var pf=function(){
dojo.publish(_124,arguments);
};
return (_126)?dojo.connect(obj,_126,pf):dojo.connect(obj,pf);
};
}
if(!dojo._hasResource["dojo._base.Deferred"]){
dojo._hasResource["dojo._base.Deferred"]=true;
dojo.provide("dojo._base.Deferred");
dojo.Deferred=function(_128){
this.chain=[];
this.id=this._nextId();
this.fired=-1;
this.paused=0;
this.results=[null,null];
this.canceller=_128;
this.silentlyCancelled=false;
};
dojo.extend(dojo.Deferred,{_nextId:(function(){
var n=1;
return function(){
return n++;
};
})(),cancel:function(){
var err;
if(this.fired==-1){
if(this.canceller){
err=this.canceller(this);
}else{
this.silentlyCancelled=true;
}
if(this.fired==-1){
if(!(err instanceof Error)){
var res=err;
err=new Error("Deferred Cancelled");
err.dojoType="cancel";
err.cancelResult=res;
}
this.errback(err);
}
}else{
if((this.fired==0)&&(this.results[0] instanceof dojo.Deferred)){
this.results[0].cancel();
}
}
},_resback:function(res){
this.fired=((res instanceof Error)?1:0);
this.results[this.fired]=res;
this._fire();
},_check:function(){
if(this.fired!=-1){
if(!this.silentlyCancelled){
throw new Error("already called!");
}
this.silentlyCancelled=false;
return;
}
},callback:function(res){
this._check();
this._resback(res);
},errback:function(res){
this._check();
if(!(res instanceof Error)){
res=new Error(res);
}
this._resback(res);
},addBoth:function(cb,cbfn){
var _131=dojo.hitch.apply(dojo,arguments);
return this.addCallbacks(_131,_131);
},addCallback:function(cb,cbfn){
return this.addCallbacks(dojo.hitch.apply(dojo,arguments));
},addErrback:function(cb,cbfn){
return this.addCallbacks(null,dojo.hitch.apply(dojo,arguments));
},addCallbacks:function(cb,eb){
this.chain.push([cb,eb]);
if(this.fired>=0){
this._fire();
}
return this;
},_fire:function(){
var _138=this.chain;
var _139=this.fired;
var res=this.results[_139];
var self=this;
var cb=null;
while((_138.length>0)&&(this.paused==0)){
var f=_138.shift()[_139];
if(!f){
continue;
}
var func=function(){
var ret=f(res);
if(typeof ret!="undefined"){
res=ret;
}
_139=((res instanceof Error)?1:0);
if(res instanceof dojo.Deferred){
cb=function(res){
self._resback(res);
self.paused--;
if((self.paused==0)&&(self.fired>=0)){
self._fire();
}
};
this.paused++;
}
};
if(dojo.config.isDebug){
func.call(this);
}else{
try{
func.call(this);
}
catch(err){
_139=1;
res=err;
}
}
}
this.fired=_139;
this.results[_139]=res;
if((cb)&&(this.paused)){
res.addBoth(cb);
}
}});
}
if(!dojo._hasResource["dojo._base.json"]){
dojo._hasResource["dojo._base.json"]=true;
dojo.provide("dojo._base.json");
dojo.fromJson=function(json){
return eval("("+json+")");
};
dojo._escapeString=function(str){
return ("\""+str.replace(/(["\\])/g,"\\$1")+"\"").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r");
};
dojo.toJsonIndentStr="\t";
dojo.toJson=function(it,_144,_145){
if(it===undefined){
return "undefined";
}
var _146=typeof it;
if(_146=="number"||_146=="boolean"){
return it+"";
}
if(it===null){
return "null";
}
if(dojo.isString(it)){
return dojo._escapeString(it);
}
var _147=arguments.callee;
var _148;
_145=_145||"";
var _149=_144?_145+dojo.toJsonIndentStr:"";
var tf=it.__json__||it.json;
if(dojo.isFunction(tf)){
_148=tf.call(it);
if(it!==_148){
return _147(_148,_144,_149);
}
}
if(it.nodeType&&it.cloneNode){
throw new Error("Can't serialize DOM nodes");
}
var sep=_144?" ":"";
var _14c=_144?"\n":"";
if(dojo.isArray(it)){
var res=dojo.map(it,function(obj){
var val=_147(obj,_144,_149);
if(typeof val!="string"){
val="undefined";
}
return _14c+_149+val;
});
return "["+res.join(","+sep)+_14c+_145+"]";
}
if(_146=="function"){
return null;
}
var _150=[],key;
for(key in it){
var _152,val;
if(typeof key=="number"){
_152="\""+key+"\"";
}else{
if(typeof key=="string"){
_152=dojo._escapeString(key);
}else{
continue;
}
}
val=_147(it[key],_144,_149);
if(typeof val!="string"){
continue;
}
_150.push(_14c+_149+_152+":"+sep+val);
}
return "{"+_150.join(","+sep)+_14c+_145+"}";
};
}
if(!dojo._hasResource["dojo._base.array"]){
dojo._hasResource["dojo._base.array"]=true;
dojo.provide("dojo._base.array");
(function(){
var _154=function(arr,obj,cb){
return [dojo.isString(arr)?arr.split(""):arr,obj||dojo.global,dojo.isString(cb)?new Function("item","index","array",cb):cb];
};
dojo.mixin(dojo,{indexOf:function(_158,_159,_15a,_15b){
var step=1,end=_158.length||0,i=0;
if(_15b){
i=end-1;
step=end=-1;
}
if(_15a!=undefined){
i=_15a;
}
if((_15b&&i>end)||i<end){
for(;i!=end;i+=step){
if(_158[i]==_159){
return i;
}
}
}
return -1;
},lastIndexOf:function(_15e,_15f,_160){
return dojo.indexOf(_15e,_15f,_160,true);
},forEach:function(arr,_162,_163){
if(!arr||!arr.length){
return;
}
var _p=_154(arr,_163,_162);
arr=_p[0];
for(var i=0,l=arr.length;i<l;++i){
_p[2].call(_p[1],arr[i],i,arr);
}
},_everyOrSome:function(_167,arr,_169,_16a){
var _p=_154(arr,_16a,_169);
arr=_p[0];
for(var i=0,l=arr.length;i<l;++i){
var _16e=!!_p[2].call(_p[1],arr[i],i,arr);
if(_167^_16e){
return _16e;
}
}
return _167;
},every:function(arr,_170,_171){
return this._everyOrSome(true,arr,_170,_171);
},some:function(arr,_173,_174){
return this._everyOrSome(false,arr,_173,_174);
},map:function(arr,_176,_177){
var _p=_154(arr,_177,_176);
arr=_p[0];
var _179=(arguments[3]?(new arguments[3]()):[]);
for(var i=0,l=arr.length;i<l;++i){
_179.push(_p[2].call(_p[1],arr[i],i,arr));
}
return _179;
},filter:function(arr,_17d,_17e){
var _p=_154(arr,_17e,_17d);
arr=_p[0];
var _180=[];
for(var i=0,l=arr.length;i<l;++i){
if(_p[2].call(_p[1],arr[i],i,arr)){
_180.push(arr[i]);
}
}
return _180;
}});
})();
}
if(!dojo._hasResource["dojo._base.Color"]){
dojo._hasResource["dojo._base.Color"]=true;
dojo.provide("dojo._base.Color");
dojo.Color=function(_183){
if(_183){
this.setColor(_183);
}
};
dojo.Color.named={black:[0,0,0],silver:[192,192,192],gray:[128,128,128],white:[255,255,255],maroon:[128,0,0],red:[255,0,0],purple:[128,0,128],fuchsia:[255,0,255],green:[0,128,0],lime:[0,255,0],olive:[128,128,0],yellow:[255,255,0],navy:[0,0,128],blue:[0,0,255],teal:[0,128,128],aqua:[0,255,255]};
dojo.extend(dojo.Color,{r:255,g:255,b:255,a:1,_set:function(r,g,b,a){
var t=this;
t.r=r;
t.g=g;
t.b=b;
t.a=a;
},setColor:function(_189){
var d=dojo;
if(d.isString(_189)){
d.colorFromString(_189,this);
}else{
if(d.isArray(_189)){
d.colorFromArray(_189,this);
}else{
this._set(_189.r,_189.g,_189.b,_189.a);
if(!(_189 instanceof d.Color)){
this.sanitize();
}
}
}
return this;
},sanitize:function(){
return this;
},toRgb:function(){
var t=this;
return [t.r,t.g,t.b];
},toRgba:function(){
var t=this;
return [t.r,t.g,t.b,t.a];
},toHex:function(){
var arr=dojo.map(["r","g","b"],function(x){
var s=this[x].toString(16);
return s.length<2?"0"+s:s;
},this);
return "#"+arr.join("");
},toCss:function(_190){
var t=this,rgb=t.r+", "+t.g+", "+t.b;
return (_190?"rgba("+rgb+", "+t.a:"rgb("+rgb)+")";
},toString:function(){
return this.toCss(true);
}});
dojo.blendColors=function(_193,end,_195,obj){
var d=dojo,t=obj||new dojo.Color();
d.forEach(["r","g","b","a"],function(x){
t[x]=_193[x]+(end[x]-_193[x])*_195;
if(x!="a"){
t[x]=Math.round(t[x]);
}
});
return t.sanitize();
};
dojo.colorFromRgb=function(_19a,obj){
var m=_19a.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/);
return m&&dojo.colorFromArray(m[1].split(/\s*,\s*/),obj);
};
dojo.colorFromHex=function(_19d,obj){
var d=dojo,t=obj||new d.Color(),bits=(_19d.length==4)?4:8,mask=(1<<bits)-1;
_19d=Number("0x"+_19d.substr(1));
if(isNaN(_19d)){
return null;
}
d.forEach(["b","g","r"],function(x){
var c=_19d&mask;
_19d>>=bits;
t[x]=bits==4?17*c:c;
});
t.a=1;
return t;
};
dojo.colorFromArray=function(a,obj){
var t=obj||new dojo.Color();
t._set(Number(a[0]),Number(a[1]),Number(a[2]),Number(a[3]));
if(isNaN(t.a)){
t.a=1;
}
return t.sanitize();
};
dojo.colorFromString=function(str,obj){
var a=dojo.Color.named[str];
return a&&dojo.colorFromArray(a,obj)||dojo.colorFromRgb(str,obj)||dojo.colorFromHex(str,obj);
};
}
if(!dojo._hasResource["dojo._base"]){
dojo._hasResource["dojo._base"]=true;
dojo.provide("dojo._base");
}
if(!dojo._hasResource["dojo._base.window"]){
dojo._hasResource["dojo._base.window"]=true;
dojo.provide("dojo._base.window");
dojo.doc=window["document"]||null;
dojo.body=function(){
return dojo.doc.body||dojo.doc.getElementsByTagName("body")[0];
};
dojo.setContext=function(_1ab,_1ac){
dojo.global=_1ab;
dojo.doc=_1ac;
};
dojo._fireCallback=function(_1ad,_1ae,_1af){
if(_1ae&&dojo.isString(_1ad)){
_1ad=_1ae[_1ad];
}
return _1ad.apply(_1ae,_1af||[]);
};
dojo.withGlobal=function(_1b0,_1b1,_1b2,_1b3){
var rval;
var _1b5=dojo.global;
var _1b6=dojo.doc;
try{
dojo.setContext(_1b0,_1b0.document);
rval=dojo._fireCallback(_1b1,_1b2,_1b3);
}
finally{
dojo.setContext(_1b5,_1b6);
}
return rval;
};
dojo.withDoc=function(_1b7,_1b8,_1b9,_1ba){
var rval;
var _1bc=dojo.doc;
try{
dojo.doc=_1b7;
rval=dojo._fireCallback(_1b8,_1b9,_1ba);
}
finally{
dojo.doc=_1bc;
}
return rval;
};
}
if(!dojo._hasResource["dojo._base.event"]){
dojo._hasResource["dojo._base.event"]=true;
dojo.provide("dojo._base.event");
(function(){
var del=(dojo._event_listener={add:function(node,name,fp){
if(!node){
return;
}
name=del._normalizeEventName(name);
fp=del._fixCallback(name,fp);
var _1c1=name;
if(!dojo.isIE&&(name=="mouseenter"||name=="mouseleave")){
var ofp=fp;
name=(name=="mouseenter")?"mouseover":"mouseout";
fp=function(e){
try{
e.relatedTarget.tagName;
}
catch(e2){
return;
}
if(!dojo.isDescendant(e.relatedTarget,node)){
return ofp.call(this,e);
}
};
}
node.addEventListener(name,fp,false);
return fp;
},remove:function(node,_1c5,_1c6){
if(node){
_1c5=del._normalizeEventName(_1c5);
if(!dojo.isIE&&(_1c5=="mouseenter"||_1c5=="mouseleave")){
_1c5=(_1c5=="mouseenter")?"mouseover":"mouseout";
}
node.removeEventListener(_1c5,_1c6,false);
}
},_normalizeEventName:function(name){
return name.slice(0,2)=="on"?name.slice(2):name;
},_fixCallback:function(name,fp){
return name!="keypress"?fp:function(e){
return fp.call(this,del._fixEvent(e,this));
};
},_fixEvent:function(evt,_1cc){
switch(evt.type){
case "keypress":
del._setKeyChar(evt);
break;
}
return evt;
},_setKeyChar:function(evt){
evt.keyChar=evt.charCode?String.fromCharCode(evt.charCode):"";
evt.charOrCode=evt.keyChar||evt.keyCode;
},_punctMap:{106:42,111:47,186:59,187:43,188:44,189:45,190:46,191:47,192:96,219:91,220:92,221:93,222:39}});
dojo.fixEvent=function(evt,_1cf){
return del._fixEvent(evt,_1cf);
};
dojo.stopEvent=function(evt){
evt.preventDefault();
evt.stopPropagation();
};
var _1d1=dojo._listener;
dojo._connect=function(obj,_1d3,_1d4,_1d5,_1d6){
var _1d7=obj&&(obj.nodeType||obj.attachEvent||obj.addEventListener);
var lid=!_1d7?0:(!_1d6?1:2),l=[dojo._listener,del,_1d1][lid];
var h=l.add(obj,_1d3,dojo.hitch(_1d4,_1d5));
return [obj,_1d3,h,lid];
};
dojo._disconnect=function(obj,_1dc,_1dd,_1de){
([dojo._listener,del,_1d1][_1de]).remove(obj,_1dc,_1dd);
};
dojo.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,INSERT:45,DELETE:46,HELP:47,LEFT_WINDOW:91,RIGHT_WINDOW:92,SELECT:93,NUMPAD_0:96,NUMPAD_1:97,NUMPAD_2:98,NUMPAD_3:99,NUMPAD_4:100,NUMPAD_5:101,NUMPAD_6:102,NUMPAD_7:103,NUMPAD_8:104,NUMPAD_9:105,NUMPAD_MULTIPLY:106,NUMPAD_PLUS:107,NUMPAD_ENTER:108,NUMPAD_MINUS:109,NUMPAD_PERIOD:110,NUMPAD_DIVIDE:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,NUM_LOCK:144,SCROLL_LOCK:145};
if(dojo.isIE){
var _1df=function(e,code){
try{
return (e.keyCode=code);
}
catch(e){
return 0;
}
};
var iel=dojo._listener;
var _1e3=dojo._ieListenersName="_"+dojo._scopeName+"_listeners";
if(!dojo.config._allow_leaks){
_1d1=iel=dojo._ie_listener={handlers:[],add:function(_1e4,_1e5,_1e6){
_1e4=_1e4||dojo.global;
var f=_1e4[_1e5];
if(!f||!f[_1e3]){
var d=dojo._getIeDispatcher();
d.target=f&&(ieh.push(f)-1);
d[_1e3]=[];
f=_1e4[_1e5]=d;
}
return f[_1e3].push(ieh.push(_1e6)-1);
},remove:function(_1ea,_1eb,_1ec){
var f=(_1ea||dojo.global)[_1eb],l=f&&f[_1e3];
if(f&&l&&_1ec--){
delete ieh[l[_1ec]];
delete l[_1ec];
}
}};
var ieh=iel.handlers;
}
dojo.mixin(del,{add:function(node,_1f0,fp){
if(!node){
return;
}
_1f0=del._normalizeEventName(_1f0);
if(_1f0=="onkeypress"){
var kd=node.onkeydown;
if(!kd||!kd[_1e3]||!kd._stealthKeydownHandle){
var h=del.add(node,"onkeydown",del._stealthKeyDown);
kd=node.onkeydown;
kd._stealthKeydownHandle=h;
kd._stealthKeydownRefs=1;
}else{
kd._stealthKeydownRefs++;
}
}
return iel.add(node,_1f0,del._fixCallback(fp));
},remove:function(node,_1f5,_1f6){
_1f5=del._normalizeEventName(_1f5);
iel.remove(node,_1f5,_1f6);
if(_1f5=="onkeypress"){
var kd=node.onkeydown;
if(--kd._stealthKeydownRefs<=0){
iel.remove(node,"onkeydown",kd._stealthKeydownHandle);
delete kd._stealthKeydownHandle;
}
}
},_normalizeEventName:function(_1f8){
return _1f8.slice(0,2)!="on"?"on"+_1f8:_1f8;
},_nop:function(){
},_fixEvent:function(evt,_1fa){
if(!evt){
var w=_1fa&&(_1fa.ownerDocument||_1fa.document||_1fa).parentWindow||window;
evt=w.event;
}
if(!evt){
return (evt);
}
evt.target=evt.srcElement;
evt.currentTarget=(_1fa||evt.srcElement);
evt.layerX=evt.offsetX;
evt.layerY=evt.offsetY;
var se=evt.srcElement,doc=(se&&se.ownerDocument)||document;
var _1fe=((dojo.isIE<6)||(doc["compatMode"]=="BackCompat"))?doc.body:doc.documentElement;
var _1ff=dojo._getIeDocumentElementOffset();
evt.pageX=evt.clientX+dojo._fixIeBiDiScrollLeft(_1fe.scrollLeft||0)-_1ff.x;
evt.pageY=evt.clientY+(_1fe.scrollTop||0)-_1ff.y;
if(evt.type=="mouseover"){
evt.relatedTarget=evt.fromElement;
}
if(evt.type=="mouseout"){
evt.relatedTarget=evt.toElement;
}
evt.stopPropagation=del._stopPropagation;
evt.preventDefault=del._preventDefault;
return del._fixKeys(evt);
},_fixKeys:function(evt){
switch(evt.type){
case "keypress":
var c=("charCode" in evt?evt.charCode:evt.keyCode);
if(c==10){
c=0;
evt.keyCode=13;
}else{
if(c==13||c==27){
c=0;
}else{
if(c==3){
c=99;
}
}
}
evt.charCode=c;
del._setKeyChar(evt);
break;
}
return evt;
},_stealthKeyDown:function(evt){
var kp=evt.currentTarget.onkeypress;
if(!kp||!kp[_1e3]){
return;
}
var k=evt.keyCode;
var _205=(k!=13)&&(k!=32)&&(k!=27)&&(k<48||k>90)&&(k<96||k>111)&&(k<186||k>192)&&(k<219||k>222);
if(_205||evt.ctrlKey){
var c=_205?0:k;
if(evt.ctrlKey){
if(k==3||k==13){
return;
}else{
if(c>95&&c<106){
c-=48;
}else{
if((!evt.shiftKey)&&(c>=65&&c<=90)){
c+=32;
}else{
c=del._punctMap[c]||c;
}
}
}
}
var faux=del._synthesizeEvent(evt,{type:"keypress",faux:true,charCode:c});
kp.call(evt.currentTarget,faux);
evt.cancelBubble=faux.cancelBubble;
evt.returnValue=faux.returnValue;
_1df(evt,faux.keyCode);
}
},_stopPropagation:function(){
this.cancelBubble=true;
},_preventDefault:function(){
this.bubbledKeyCode=this.keyCode;
if(this.ctrlKey){
_1df(this,0);
}
this.returnValue=false;
}});
dojo.stopEvent=function(evt){
evt=evt||window.event;
del._stopPropagation.call(evt);
del._preventDefault.call(evt);
};
}
del._synthesizeEvent=function(evt,_20a){
var faux=dojo.mixin({},evt,_20a);
del._setKeyChar(faux);
faux.preventDefault=function(){
evt.preventDefault();
};
faux.stopPropagation=function(){
evt.stopPropagation();
};
return faux;
};
if(dojo.isOpera){
dojo.mixin(del,{_fixEvent:function(evt,_20d){
switch(evt.type){
case "keypress":
var c=evt.which;
if(c==3){
c=99;
}
c=((c<41)&&(!evt.shiftKey)?0:c);
if((evt.ctrlKey)&&(!evt.shiftKey)&&(c>=65)&&(c<=90)){
c+=32;
}
return del._synthesizeEvent(evt,{charCode:c});
}
return evt;
}});
}
if(dojo.isSafari){
del._add=del.add;
del._remove=del.remove;
dojo.mixin(del,{add:function(node,_210,fp){
if(!node){
return;
}
var _212=del._add(node,_210,fp);
if(del._normalizeEventName(_210)=="keypress"){
_212._stealthKeyDownHandle=del._add(node,"keydown",function(evt){
var k=evt.keyCode;
var _215=(k!=13)&&(k!=32)&&(k!=27)&&(k<48||k>90)&&(k<96||k>111)&&(k<186||k>192)&&(k<219||k>222);
if(_215||evt.ctrlKey){
var c=_215?0:k;
if(evt.ctrlKey){
if(k==3||k==13){
return;
}else{
if(c>95&&c<106){
c-=48;
}else{
if((!evt.shiftKey)&&(c>=65&&c<=90)){
c+=32;
}else{
c=del._punctMap[c]||c;
}
}
}
}
var faux=del._synthesizeEvent(evt,{type:"keypress",faux:true,charCode:c});
fp.call(evt.currentTarget,faux);
}
});
}
return _212;
},remove:function(node,_219,_21a){
if(node){
if(_21a._stealthKeyDownHandle){
del._remove(node,"keydown",_21a._stealthKeyDownHandle);
}
del._remove(node,_219,_21a);
}
},_fixEvent:function(evt,_21c){
switch(evt.type){
case "keypress":
if(evt.faux){
return evt;
}
var c=evt.charCode;
c=c>=32?c:0;
return del._synthesizeEvent(evt,{charCode:c,faux:true});
}
return evt;
}});
}
})();
if(dojo.isIE){
dojo._ieDispatcher=function(args,_21f){
var ap=Array.prototype,h=dojo._ie_listener.handlers,c=args.callee,ls=c[dojo._ieListenersName],t=h[c.target];
var r=t&&t.apply(_21f,args);
var lls=[].concat(ls);
for(var i in lls){
if(!(i in ap)){
h[lls[i]].apply(_21f,args);
}
}
return r;
};
dojo._getIeDispatcher=function(){
return new Function(dojo._scopeName+"._ieDispatcher(arguments, this)");
};
dojo._event_listener._fixCallback=function(fp){
var f=dojo._event_listener._fixEvent;
return function(e){
return fp.call(this,f(e,this));
};
};
}
}
if(!dojo._hasResource["dojo._base.html"]){
dojo._hasResource["dojo._base.html"]=true;
dojo.provide("dojo._base.html");
try{
document.execCommand("BackgroundImageCache",false,true);
}
catch(e){
}
if(dojo.isIE||dojo.isOpera){
dojo.byId=function(id,doc){
if(dojo.isString(id)){
var _d=doc||dojo.doc;
var te=_d.getElementById(id);
if(te&&te.attributes.id.value==id){
return te;
}else{
var eles=_d.all[id];
if(!eles||!eles.length){
return eles;
}
var i=0;
while((te=eles[i++])){
if(te.attributes.id.value==id){
return te;
}
}
}
}else{
return id;
}
};
}else{
dojo.byId=function(id,doc){
return dojo.isString(id)?(doc||dojo.doc).getElementById(id):id;
};
}
(function(){
var d=dojo;
var _234=null;
dojo.addOnWindowUnload(function(){
_234=null;
});
dojo._destroyElement=function(node){
node=d.byId(node);
try{
if(!_234||_234.ownerDocument!=node.ownerDocument){
_234=node.ownerDocument.createElement("div");
}
_234.appendChild(node.parentNode?node.parentNode.removeChild(node):node);
_234.innerHTML="";
}
catch(e){
}
};
dojo.isDescendant=function(node,_237){
try{
node=d.byId(node);
_237=d.byId(_237);
while(node){
if(node===_237){
return true;
}
node=node.parentNode;
}
}
catch(e){
}
return false;
};
dojo.setSelectable=function(node,_239){
node=d.byId(node);
if(d.isMozilla){
node.style.MozUserSelect=_239?"":"none";
}else{
if(d.isKhtml){
node.style.KhtmlUserSelect=_239?"auto":"none";
}else{
if(d.isIE){
var v=(node.unselectable=_239?"":"on");
d.query("*",node).forEach("item.unselectable = '"+v+"'");
}
}
}
};
var _23b=function(node,ref){
ref.parentNode.insertBefore(node,ref);
return true;
};
var _23e=function(node,ref){
var pn=ref.parentNode;
if(ref==pn.lastChild){
pn.appendChild(node);
}else{
return _23b(node,ref.nextSibling);
}
return true;
};
dojo.place=function(node,_243,_244){
if(!node||!_243){
return false;
}
node=d.byId(node);
_243=d.byId(_243);
if(typeof _244=="number"){
var cn=_243.childNodes;
if(!cn.length||cn.length<=_244){
_243.appendChild(node);
return true;
}
return _23b(node,_244<=0?_243.firstChild:cn[_244]);
}
switch(_244){
case "before":
return _23b(node,_243);
case "after":
return _23e(node,_243);
case "first":
if(_243.firstChild){
return _23b(node,_243.firstChild);
}
default:
_243.appendChild(node);
return true;
}
};
dojo.boxModel="content-box";
if(d.isIE){
var _dcm=document.compatMode;
d.boxModel=_dcm=="BackCompat"||_dcm=="QuirksMode"||d.isIE<6?"border-box":"content-box";
}
var gcs;
if(d.isSafari){
gcs=function(node){
var s;
if(node instanceof HTMLElement){
var dv=node.ownerDocument.defaultView;
s=dv.getComputedStyle(node,null);
if(!s&&node.style){
node.style.display="";
s=dv.getComputedStyle(node,null);
}
}
return s||{};
};
}else{
if(d.isIE){
gcs=function(node){
return node.nodeType==1?node.currentStyle:{};
};
}else{
gcs=function(node){
return node instanceof HTMLElement?node.ownerDocument.defaultView.getComputedStyle(node,null):{};
};
}
}
dojo.getComputedStyle=gcs;
if(!d.isIE){
dojo._toPixelValue=function(_24d,_24e){
return parseFloat(_24e)||0;
};
}else{
dojo._toPixelValue=function(_24f,_250){
if(!_250){
return 0;
}
if(_250=="medium"){
return 4;
}
if(_250.slice&&(_250.slice(-2)=="px")){
return parseFloat(_250);
}
with(_24f){
var _251=style.left;
var _252=runtimeStyle.left;
runtimeStyle.left=currentStyle.left;
try{
style.left=_250;
_250=style.pixelLeft;
}
catch(e){
_250=0;
}
style.left=_251;
runtimeStyle.left=_252;
}
return _250;
};
}
var px=d._toPixelValue;
var astr="DXImageTransform.Microsoft.Alpha";
var af=function(n,f){
try{
return n.filters.item(astr);
}
catch(e){
return f?{}:null;
}
};
dojo._getOpacity=d.isIE?function(node){
try{
return af(node).Opacity/100;
}
catch(e){
return 1;
}
}:function(node){
return gcs(node).opacity;
};
dojo._setOpacity=d.isIE?function(node,_25b){
var ov=_25b*100;
node.style.zoom=1;
af(node,1).Enabled=(_25b==1?false:true);
if(!af(node)){
node.style.filter+=" progid:"+astr+"(Opacity="+ov+")";
}else{
af(node,1).Opacity=ov;
}
if(node.nodeName.toLowerCase()=="tr"){
d.query("> td",node).forEach(function(i){
d._setOpacity(i,_25b);
});
}
return _25b;
}:function(node,_25f){
return node.style.opacity=_25f;
};
var _260={left:true,top:true};
var _261=/margin|padding|width|height|max|min|offset/;
var _262=function(node,type,_265){
type=type.toLowerCase();
if(d.isIE){
if(_265=="auto"){
if(type=="height"){
return node.offsetHeight;
}
if(type=="width"){
return node.offsetWidth;
}
}
if(type=="fontweight"){
switch(_265){
case 700:
return "bold";
case 400:
default:
return "normal";
}
}
}
if(!(type in _260)){
_260[type]=_261.test(type);
}
return _260[type]?px(node,_265):_265;
};
var _266=d.isIE?"styleFloat":"cssFloat";
var _267={"cssFloat":_266,"styleFloat":_266,"float":_266};
dojo.style=function(node,_269,_26a){
var n=d.byId(node),args=arguments.length,op=(_269=="opacity");
_269=_267[_269]||_269;
if(args==3){
return op?d._setOpacity(n,_26a):n.style[_269]=_26a;
}
if(args==2&&op){
return d._getOpacity(n);
}
var s=gcs(n);
if(args==2&&!d.isString(_269)){
for(var x in _269){
d.style(node,x,_269[x]);
}
return s;
}
return (args==1)?s:_262(n,_269,s[_269]||n.style[_269]);
};
dojo._getPadExtents=function(n,_271){
var s=_271||gcs(n),l=px(n,s.paddingLeft),t=px(n,s.paddingTop);
return {l:l,t:t,w:l+px(n,s.paddingRight),h:t+px(n,s.paddingBottom)};
};
dojo._getBorderExtents=function(n,_276){
var ne="none",s=_276||gcs(n),bl=(s.borderLeftStyle!=ne?px(n,s.borderLeftWidth):0),bt=(s.borderTopStyle!=ne?px(n,s.borderTopWidth):0);
return {l:bl,t:bt,w:bl+(s.borderRightStyle!=ne?px(n,s.borderRightWidth):0),h:bt+(s.borderBottomStyle!=ne?px(n,s.borderBottomWidth):0)};
};
dojo._getPadBorderExtents=function(n,_27c){
var s=_27c||gcs(n),p=d._getPadExtents(n,s),b=d._getBorderExtents(n,s);
return {l:p.l+b.l,t:p.t+b.t,w:p.w+b.w,h:p.h+b.h};
};
dojo._getMarginExtents=function(n,_281){
var s=_281||gcs(n),l=px(n,s.marginLeft),t=px(n,s.marginTop),r=px(n,s.marginRight),b=px(n,s.marginBottom);
if(d.isSafari&&(s.position!="absolute")){
r=l;
}
return {l:l,t:t,w:l+r,h:t+b};
};
dojo._getMarginBox=function(node,_288){
var s=_288||gcs(node),me=d._getMarginExtents(node,s);
var l=node.offsetLeft-me.l,t=node.offsetTop-me.t,p=node.parentNode;
if(d.isMoz){
var sl=parseFloat(s.left),st=parseFloat(s.top);
if(!isNaN(sl)&&!isNaN(st)){
l=sl,t=st;
}else{
if(p&&p.style){
var pcs=gcs(p);
if(pcs.overflow!="visible"){
var be=d._getBorderExtents(p,pcs);
l+=be.l,t+=be.t;
}
}
}
}else{
if(d.isOpera){
if(p){
var be=d._getBorderExtents(p);
l-=be.l;
t-=be.t;
}
}
}
return {l:l,t:t,w:node.offsetWidth+me.w,h:node.offsetHeight+me.h};
};
dojo._getContentBox=function(node,_293){
var s=_293||gcs(node),pe=d._getPadExtents(node,s),be=d._getBorderExtents(node,s),w=node.clientWidth,h;
if(!w){
w=node.offsetWidth,h=node.offsetHeight;
}else{
h=node.clientHeight,be.w=be.h=0;
}
if(d.isOpera){
pe.l+=be.l;
pe.t+=be.t;
}
return {l:pe.l,t:pe.t,w:w-pe.w-be.w,h:h-pe.h-be.h};
};
dojo._getBorderBox=function(node,_29a){
var s=_29a||gcs(node),pe=d._getPadExtents(node,s),cb=d._getContentBox(node,s);
return {l:cb.l-pe.l,t:cb.t-pe.t,w:cb.w+pe.w,h:cb.h+pe.h};
};
dojo._setBox=function(node,l,t,w,h,u){
u=u||"px";
var s=node.style;
if(!isNaN(l)){
s.left=l+u;
}
if(!isNaN(t)){
s.top=t+u;
}
if(w>=0){
s.width=w+u;
}
if(h>=0){
s.height=h+u;
}
};
dojo._isButtonTag=function(node){
return node.tagName=="BUTTON"||node.tagName=="INPUT"&&node.getAttribute("type").toUpperCase()=="BUTTON";
};
dojo._usesBorderBox=function(node){
var n=node.tagName;
return d.boxModel=="border-box"||n=="TABLE"||dojo._isButtonTag(node);
};
dojo._setContentSize=function(node,_2a9,_2aa,_2ab){
if(d._usesBorderBox(node)){
var pb=d._getPadBorderExtents(node,_2ab);
if(_2a9>=0){
_2a9+=pb.w;
}
if(_2aa>=0){
_2aa+=pb.h;
}
}
d._setBox(node,NaN,NaN,_2a9,_2aa);
};
dojo._setMarginBox=function(node,_2ae,_2af,_2b0,_2b1,_2b2){
var s=_2b2||gcs(node);
var bb=d._usesBorderBox(node),pb=bb?_2b6:d._getPadBorderExtents(node,s);
if(dojo.isSafari){
if(dojo._isButtonTag(node)){
var ns=node.style;
if(_2b0>=0&&!ns.width){
ns.width="4px";
}
if(_2b1>=0&&!ns.height){
ns.height="4px";
}
}
}
var mb=d._getMarginExtents(node,s);
if(_2b0>=0){
_2b0=Math.max(_2b0-pb.w-mb.w,0);
}
if(_2b1>=0){
_2b1=Math.max(_2b1-pb.h-mb.h,0);
}
d._setBox(node,_2ae,_2af,_2b0,_2b1);
};
var _2b6={l:0,t:0,w:0,h:0};
dojo.marginBox=function(node,box){
var n=d.byId(node),s=gcs(n),b=box;
return !b?d._getMarginBox(n,s):d._setMarginBox(n,b.l,b.t,b.w,b.h,s);
};
dojo.contentBox=function(node,box){
var n=d.byId(node),s=gcs(n),b=box;
return !b?d._getContentBox(n,s):d._setContentSize(n,b.w,b.h,s);
};
var _2c3=function(node,prop){
if(!(node=(node||0).parentNode)){
return 0;
}
var val,_2c7=0,_b=d.body();
while(node&&node.style){
if(gcs(node).position=="fixed"){
return 0;
}
val=node[prop];
if(val){
_2c7+=val-0;
if(node==_b){
break;
}
}
node=node.parentNode;
}
return _2c7;
};
dojo._docScroll=function(){
var _b=d.body(),_w=d.global,de=d.doc.documentElement;
return {y:(_w.pageYOffset||de.scrollTop||_b.scrollTop||0),x:(_w.pageXOffset||d._fixIeBiDiScrollLeft(de.scrollLeft)||_b.scrollLeft||0)};
};
dojo._isBodyLtr=function(){
return "_bodyLtr" in d?d._bodyLtr:d._bodyLtr=(d.body().dir||d.doc.documentElement.dir||"ltr").toLowerCase()=="ltr";
};
dojo._getIeDocumentElementOffset=function(){
var de=d.doc.documentElement;
return (d.isIE>=7)?{x:de.getBoundingClientRect().left,y:de.getBoundingClientRect().top}:{x:d._isBodyLtr()||window.parent==window?de.clientLeft:de.offsetWidth-de.clientWidth-de.clientLeft,y:de.clientTop};
};
dojo._fixIeBiDiScrollLeft=function(_2cd){
var dd=d.doc;
if(d.isIE&&!dojo._isBodyLtr()){
var de=dd.compatMode=="BackCompat"?dd.body:dd.documentElement;
return _2cd+de.clientWidth-de.scrollWidth;
}
return _2cd;
};
dojo._abs=function(node,_2d1){
var _2d2=node.ownerDocument;
var ret={x:0,y:0};
var db=d.body();
if(d.isIE||(d.isFF>=3)){
var _2d5=node.getBoundingClientRect();
var cs;
if(d.isFF){
var dv=node.ownerDocument.defaultView;
cs=dv.getComputedStyle(db.parentNode,null);
}
var _2d8=(d.isIE)?d._getIeDocumentElementOffset():{x:px(db.parentNode,cs.marginLeft),y:px(db.parentNode,cs.marginTop)};
ret.x=_2d5.left-_2d8.x;
ret.y=_2d5.top-_2d8.y;
}else{
if(node["offsetParent"]){
var _2d9;
if(d.isSafari&&(gcs(node).position=="absolute")&&(node.parentNode==db)){
_2d9=db;
}else{
_2d9=db.parentNode;
}
var cs=gcs(node);
var n=node;
if(d.isOpera&&cs.position!="absolute"){
n=n.offsetParent;
}
ret.x-=_2c3(n,"scrollLeft");
ret.y-=_2c3(n,"scrollTop");
var _2db=node;
do{
var n=_2db.offsetLeft;
if(!d.isOpera||n>0){
ret.x+=isNaN(n)?0:n;
}
var t=_2db.offsetTop;
ret.y+=isNaN(t)?0:t;
var cs=gcs(_2db);
if(_2db!=node){
if(d.isSafari){
ret.x+=px(_2db,cs.borderLeftWidth);
ret.y+=px(_2db,cs.borderTopWidth);
}else{
if(d.isFF){
ret.x+=2*px(_2db,cs.borderLeftWidth);
ret.y+=2*px(_2db,cs.borderTopWidth);
}
}
}
if(d.isFF&&cs.position=="static"){
var _2dd=_2db.parentNode;
while(_2dd!=_2db.offsetParent){
var pcs=gcs(_2dd);
if(pcs.position=="static"){
ret.x+=px(_2db,pcs.borderLeftWidth);
ret.y+=px(_2db,pcs.borderTopWidth);
}
_2dd=_2dd.parentNode;
}
}
_2db=_2db.offsetParent;
}while((_2db!=_2d9)&&_2db);
}else{
if(node.x&&node.y){
ret.x+=isNaN(node.x)?0:node.x;
ret.y+=isNaN(node.y)?0:node.y;
}
}
}
if(_2d1){
var _2df=d._docScroll();
ret.y+=_2df.y;
ret.x+=_2df.x;
}
return ret;
};
dojo.coords=function(node,_2e1){
var n=d.byId(node),s=gcs(n),mb=d._getMarginBox(n,s);
var abs=d._abs(n,_2e1);
mb.x=abs.x;
mb.y=abs.y;
return mb;
};
var _2e6=d.isIE<8;
var _2e7=function(name){
switch(name.toLowerCase()){
case "tabindex":
return _2e6?"tabIndex":"tabindex";
case "for":
case "htmlfor":
return _2e6?"htmlFor":"for";
case "class":
return d.isIE?"className":"class";
default:
return name;
}
};
var _2e9={colspan:"colSpan",enctype:"enctype",frameborder:"frameborder",method:"method",rowspan:"rowSpan",scrolling:"scrolling",shape:"shape",span:"span",type:"type",valuetype:"valueType"};
dojo.hasAttr=function(node,name){
node=d.byId(node);
var _2ec=_2e7(name);
_2ec=_2ec=="htmlFor"?"for":_2ec;
var attr=node.getAttributeNode&&node.getAttributeNode(_2ec);
return attr?attr.specified:false;
};
var _2ee={};
var _ctr=0;
var _2f0=dojo._scopeName+"attrid";
dojo.attr=function(node,name,_2f3){
var args=arguments.length;
if(args==2&&!d.isString(name)){
for(var x in name){
d.attr(node,x,name[x]);
}
return;
}
node=d.byId(node);
name=_2e7(name);
if(args==3){
if(d.isFunction(_2f3)){
var _2f6=d.attr(node,_2f0);
if(!_2f6){
_2f6=_ctr++;
d.attr(node,_2f0,_2f6);
}
if(!_2ee[_2f6]){
_2ee[_2f6]={};
}
var h=_2ee[_2f6][name];
if(h){
d.disconnect(h);
}else{
try{
delete node[name];
}
catch(e){
}
}
_2ee[_2f6][name]=d.connect(node,name,_2f3);
}else{
if((typeof _2f3=="boolean")||(name=="innerHTML")){
node[name]=_2f3;
}else{
if((name=="style")&&(!d.isString(_2f3))){
d.style(node,_2f3);
}else{
node.setAttribute(name,_2f3);
}
}
}
return;
}else{
var prop=_2e9[name.toLowerCase()];
if(prop){
return node[prop];
}else{
var _2f9=node[name];
return (typeof _2f9=="boolean"||typeof _2f9=="function")?_2f9:(d.hasAttr(node,name)?node.getAttribute(name):null);
}
}
};
dojo.removeAttr=function(node,name){
d.byId(node).removeAttribute(_2e7(name));
};
var _2fc="className";
dojo.hasClass=function(node,_2fe){
return ((" "+d.byId(node)[_2fc]+" ").indexOf(" "+_2fe+" ")>=0);
};
dojo.addClass=function(node,_300){
node=d.byId(node);
var cls=node[_2fc];
if((" "+cls+" ").indexOf(" "+_300+" ")<0){
node[_2fc]=cls+(cls?" ":"")+_300;
}
};
dojo.removeClass=function(node,_303){
node=d.byId(node);
var t=d.trim((" "+node[_2fc]+" ").replace(" "+_303+" "," "));
if(node[_2fc]!=t){
node[_2fc]=t;
}
};
dojo.toggleClass=function(node,_306,_307){
if(_307===undefined){
_307=!d.hasClass(node,_306);
}
d[_307?"addClass":"removeClass"](node,_306);
};
})();
}
if(!dojo._hasResource["dojo._base.NodeList"]){
dojo._hasResource["dojo._base.NodeList"]=true;
dojo.provide("dojo._base.NodeList");
(function(){
var d=dojo;
var tnl=function(arr){
arr.constructor=dojo.NodeList;
dojo._mixin(arr,dojo.NodeList.prototype);
return arr;
};
var _30b=function(func,_30d){
return function(){
var _a=arguments;
var aa=d._toArray(_a,0,[null]);
var s=this.map(function(i){
aa[0]=i;
return d[func].apply(d,aa);
});
return (_30d||((_a.length>1)||!d.isString(_a[0])))?this:s;
};
};
dojo.NodeList=function(){
return tnl(Array.apply(null,arguments));
};
dojo.NodeList._wrap=tnl;
dojo.extend(dojo.NodeList,{slice:function(){
var a=d._toArray(arguments);
return tnl(a.slice.apply(this,a));
},splice:function(){
var a=d._toArray(arguments);
return tnl(a.splice.apply(this,a));
},concat:function(){
var a=d._toArray(arguments,0,[this]);
return tnl(a.concat.apply([],a));
},indexOf:function(_315,_316){
return d.indexOf(this,_315,_316);
},lastIndexOf:function(){
return d.lastIndexOf.apply(d,d._toArray(arguments,0,[this]));
},every:function(_317,_318){
return d.every(this,_317,_318);
},some:function(_319,_31a){
return d.some(this,_319,_31a);
},map:function(func,obj){
return d.map(this,func,obj,d.NodeList);
},forEach:function(_31d,_31e){
d.forEach(this,_31d,_31e);
return this;
},coords:function(){
return d.map(this,d.coords);
},attr:_30b("attr"),style:_30b("style"),addClass:_30b("addClass",true),removeClass:_30b("removeClass",true),toggleClass:_30b("toggleClass",true),connect:_30b("connect",true),place:function(_31f,_320){
var item=d.query(_31f)[0];
return this.forEach(function(i){
d.place(i,item,_320);
});
},orphan:function(_323){
return (_323?d._filterQueryResult(this,_323):this).forEach("if(item.parentNode){ item.parentNode.removeChild(item); }");
},adopt:function(_324,_325){
var item=this[0];
return d.query(_324).forEach(function(ai){
d.place(ai,item,_325||"last");
});
},query:function(_328){
if(!_328){
return this;
}
var ret=d.NodeList();
this.forEach(function(item){
ret=ret.concat(d.query(_328,item).filter(function(_32b){
return (_32b!==undefined);
}));
});
return ret;
},filter:function(_32c){
var _32d=this;
var _a=arguments;
var r=d.NodeList();
var rp=function(t){
if(t!==undefined){
r.push(t);
}
};
if(d.isString(_32c)){
_32d=d._filterQueryResult(this,_a[0]);
if(_a.length==1){
return _32d;
}
_a.shift();
}
d.forEach(d.filter(_32d,_a[0],_a[1]),rp);
return r;
},addContent:function(_332,_333){
var ta=d.doc.createElement("span");
if(d.isString(_332)){
ta.innerHTML=_332;
}else{
ta.appendChild(_332);
}
if(_333===undefined){
_333="last";
}
var ct=(_333=="first"||_333=="after")?"lastChild":"firstChild";
this.forEach(function(item){
var tn=ta.cloneNode(true);
while(tn[ct]){
d.place(tn[ct],item,_333);
}
});
return this;
},empty:function(){
return this.forEach("item.innerHTML='';");
},instantiate:function(_338,_339){
var c=d.isFunction(_338)?_338:d.getObject(_338);
return this.forEach(function(i){
new c(_339||{},i);
});
},at:function(){
var nl=new dojo.NodeList();
dojo.forEach(arguments,function(i){
if(this[i]){
nl.push(this[i]);
}
},this);
return nl;
}});
d.forEach(["blur","focus","click","keydown","keypress","keyup","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","submit","load","error"],function(evt){
var _oe="on"+evt;
d.NodeList.prototype[_oe]=function(a,b){
return this.connect(_oe,a,b);
};
});
})();
}
if(!dojo._hasResource["dojo._base.query"]){
dojo._hasResource["dojo._base.query"]=true;
dojo.provide("dojo._base.query");
(function(){
var d=dojo;
var _343=dojo.isIE?"children":"childNodes";
var _344=false;
var _345=function(_346){
if(">~+".indexOf(_346.charAt(_346.length-1))>=0){
_346+=" *";
}
_346+=" ";
var ts=function(s,e){
return d.trim(_346.slice(s,e));
};
var _34a=[];
var _34b=-1;
var _34c=-1;
var _34d=-1;
var _34e=-1;
var _34f=-1;
var inId=-1;
var _351=-1;
var lc="";
var cc="";
var _354;
var x=0;
var ql=_346.length;
var _357=null;
var _cp=null;
var _359=function(){
if(_351>=0){
var tv=(_351==x)?null:ts(_351,x);
_357[(">~+".indexOf(tv)<0)?"tag":"oper"]=tv;
_351=-1;
}
};
var _35b=function(){
if(inId>=0){
_357.id=ts(inId,x).replace(/\\/g,"");
inId=-1;
}
};
var _35c=function(){
if(_34f>=0){
_357.classes.push(ts(_34f+1,x).replace(/\\/g,""));
_34f=-1;
}
};
var _35d=function(){
_35b();
_359();
_35c();
};
for(;lc=cc,cc=_346.charAt(x),x<ql;x++){
if(lc=="\\"){
continue;
}
if(!_357){
_354=x;
_357={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null};
_351=x;
}
if(_34b>=0){
if(cc=="]"){
if(!_cp.attr){
_cp.attr=ts(_34b+1,x);
}else{
_cp.matchFor=ts((_34d||_34b+1),x);
}
var cmf=_cp.matchFor;
if(cmf){
if((cmf.charAt(0)=="\"")||(cmf.charAt(0)=="'")){
_cp.matchFor=cmf.substring(1,cmf.length-1);
}
}
_357.attrs.push(_cp);
_cp=null;
_34b=_34d=-1;
}else{
if(cc=="="){
var _35f=("|~^$*".indexOf(lc)>=0)?lc:"";
_cp.type=_35f+cc;
_cp.attr=ts(_34b+1,x-_35f.length);
_34d=x+1;
}
}
}else{
if(_34c>=0){
if(cc==")"){
if(_34e>=0){
_cp.value=ts(_34c+1,x);
}
_34e=_34c=-1;
}
}else{
if(cc=="#"){
_35d();
inId=x+1;
}else{
if(cc=="."){
_35d();
_34f=x;
}else{
if(cc==":"){
_35d();
_34e=x;
}else{
if(cc=="["){
_35d();
_34b=x;
_cp={};
}else{
if(cc=="("){
if(_34e>=0){
_cp={name:ts(_34e+1,x),value:null};
_357.pseudos.push(_cp);
}
_34c=x;
}else{
if(cc==" "&&lc!=cc){
_35d();
if(_34e>=0){
_357.pseudos.push({name:ts(_34e+1,x)});
}
_357.hasLoops=(_357.pseudos.length||_357.attrs.length||_357.classes.length);
_357.query=ts(_354,x);
_357.otag=_357.tag=(_357["oper"])?null:(_357.tag||"*");
if(_357.tag){
_357.tag=_357.tag.toUpperCase();
}
_34a.push(_357);
_357=null;
}
}
}
}
}
}
}
}
}
return _34a;
};
var _360={"*=":function(attr,_362){
return "[contains(@"+attr+", '"+_362+"')]";
},"^=":function(attr,_364){
return "[starts-with(@"+attr+", '"+_364+"')]";
},"$=":function(attr,_366){
return "[substring(@"+attr+", string-length(@"+attr+")-"+(_366.length-1)+")='"+_366+"']";
},"~=":function(attr,_368){
return "[contains(concat(' ',@"+attr+",' '), ' "+_368+" ')]";
},"|=":function(attr,_36a){
return "[contains(concat(' ',@"+attr+",' '), ' "+_36a+"-')]";
},"=":function(attr,_36c){
return "[@"+attr+"='"+_36c+"']";
}};
var _36d=function(_36e,_36f,_370,_371){
d.forEach(_36f.attrs,function(attr){
var _373;
if(attr.type&&_36e[attr.type]){
_373=_36e[attr.type](attr.attr,attr.matchFor);
}else{
if(attr.attr.length){
_373=_370(attr.attr);
}
}
if(_373){
_371(_373);
}
});
};
var _374=function(_375){
var _376=".";
var _377=_345(d.trim(_375));
while(_377.length){
var tqp=_377.shift();
var _379;
var _37a="";
if(tqp.oper==">"){
_379="/";
tqp=_377.shift();
}else{
if(tqp.oper=="~"){
_379="/following-sibling::";
tqp=_377.shift();
}else{
if(tqp.oper=="+"){
_379="/following-sibling::";
_37a="[position()=1]";
tqp=_377.shift();
}else{
_379="//";
}
}
}
_376+=_379+tqp.tag+_37a;
if(tqp.id){
_376+="[@id='"+tqp.id+"'][1]";
}
d.forEach(tqp.classes,function(cn){
var cnl=cn.length;
var _37d=" ";
if(cn.charAt(cnl-1)=="*"){
_37d="";
cn=cn.substr(0,cnl-1);
}
_376+="[contains(concat(' ',@class,' '), ' "+cn+_37d+"')]";
});
_36d(_360,tqp,function(_37e){
return "[@"+_37e+"]";
},function(_37f){
_376+=_37f;
});
}
return _376;
};
var _380={};
var _381=function(path){
if(_380[path]){
return _380[path];
}
var doc=d.doc;
var _384=_374(path);
var tf=function(_386){
var ret=[];
var _388;
var tdoc=doc;
if(_386){
tdoc=(_386.nodeType==9)?_386:_386.ownerDocument;
}
try{
_388=tdoc.evaluate(_384,_386,null,XPathResult.ANY_TYPE,null);
}
catch(e){
console.debug("failure in exprssion:",_384,"under:",_386);
console.debug(e);
}
var _38a=_388.iterateNext();
while(_38a){
ret.push(_38a);
_38a=_388.iterateNext();
}
return ret;
};
return _380[path]=tf;
};
var _38b={};
var _38c={};
var _38d=function(_38e,_38f){
if(!_38e){
return _38f;
}
if(!_38f){
return _38e;
}
return function(){
return _38e.apply(window,arguments)&&_38f.apply(window,arguments);
};
};
var _390=function(root){
var ret=[];
var te,x=0,tret=root[_343];
while((te=tret[x++])){
if(te.nodeType==1){
ret.push(te);
}
}
return ret;
};
var _396=function(root,_398){
var ret=[];
var te=root;
while(te=te.nextSibling){
if(te.nodeType==1){
ret.push(te);
if(_398){
break;
}
}
}
return ret;
};
var _39b=function(_39c,_39d,_39e,idx){
var nidx=idx+1;
var _3a1=(_39d.length==nidx);
var tqp=_39d[idx];
if(tqp.oper){
var ecn=(tqp.oper==">")?_390(_39c):_396(_39c,(tqp.oper=="+"));
if(!ecn||!ecn.length){
return;
}
nidx++;
_3a1=(_39d.length==nidx);
var tf=_3a5(_39d[idx+1]);
for(var x=0,ecnl=ecn.length,te;x<ecnl,te=ecn[x];x++){
if(tf(te)){
if(_3a1){
_39e.push(te);
}else{
_39b(te,_39d,_39e,nidx);
}
}
}
}
var _3a9=_3aa(tqp)(_39c);
if(_3a1){
while(_3a9.length){
_39e.push(_3a9.shift());
}
}else{
while(_3a9.length){
_39b(_3a9.shift(),_39d,_39e,nidx);
}
}
};
var _3ab=function(_3ac,_3ad){
var ret=[];
var x=_3ac.length-1,te;
while((te=_3ac[x--])){
_39b(te,_3ad,ret,0);
}
return ret;
};
var _3a5=function(q){
if(_38b[q.query]){
return _38b[q.query];
}
var ff=null;
if(q.tag){
if(q.tag=="*"){
ff=_38d(ff,function(elem){
return (elem.nodeType==1);
});
}else{
ff=_38d(ff,function(elem){
return ((elem.nodeType==1)&&(q[_344?"otag":"tag"]==elem.tagName));
});
}
}
if(q.id){
ff=_38d(ff,function(elem){
return ((elem.nodeType==1)&&(elem.id==q.id));
});
}
if(q.hasLoops){
ff=_38d(ff,_3b6(q));
}
return _38b[q.query]=ff;
};
var _3b7=function(node){
var pn=node.parentNode;
var pnc=pn.childNodes;
var nidx=-1;
var _3bc=pn.firstChild;
if(!_3bc){
return nidx;
}
var ci=node["__cachedIndex"];
var cl=pn["__cachedLength"];
if(((typeof cl=="number")&&(cl!=pnc.length))||(typeof ci!="number")){
pn["__cachedLength"]=pnc.length;
var idx=1;
do{
if(_3bc===node){
nidx=idx;
}
if(_3bc.nodeType==1){
_3bc["__cachedIndex"]=idx;
idx++;
}
_3bc=_3bc.nextSibling;
}while(_3bc);
}else{
nidx=ci;
}
return nidx;
};
var _3c0=0;
var _3c1="";
var _3c2=function(elem,attr){
if(attr=="class"){
return elem.className||_3c1;
}
if(attr=="for"){
return elem.htmlFor||_3c1;
}
if(attr=="style"){
return elem.style.cssText||_3c1;
}
return (_344?elem.getAttribute(attr):elem.getAttribute(attr,2))||_3c1;
};
var _3c5={"*=":function(attr,_3c7){
return function(elem){
return (_3c2(elem,attr).indexOf(_3c7)>=0);
};
},"^=":function(attr,_3ca){
return function(elem){
return (_3c2(elem,attr).indexOf(_3ca)==0);
};
},"$=":function(attr,_3cd){
var tval=" "+_3cd;
return function(elem){
var ea=" "+_3c2(elem,attr);
return (ea.lastIndexOf(_3cd)==(ea.length-_3cd.length));
};
},"~=":function(attr,_3d2){
var tval=" "+_3d2+" ";
return function(elem){
var ea=" "+_3c2(elem,attr)+" ";
return (ea.indexOf(tval)>=0);
};
},"|=":function(attr,_3d7){
var _3d8=" "+_3d7+"-";
return function(elem){
var ea=" "+(elem.getAttribute(attr,2)||"");
return ((ea==_3d7)||(ea.indexOf(_3d8)==0));
};
},"=":function(attr,_3dc){
return function(elem){
return (_3c2(elem,attr)==_3dc);
};
}};
var _3de={"checked":function(name,_3e0){
return function(elem){
return !!d.attr(elem,"checked");
};
},"first-child":function(name,_3e3){
return function(elem){
if(elem.nodeType!=1){
return false;
}
var fc=elem.previousSibling;
while(fc&&(fc.nodeType!=1)){
fc=fc.previousSibling;
}
return (!fc);
};
},"last-child":function(name,_3e7){
return function(elem){
if(elem.nodeType!=1){
return false;
}
var nc=elem.nextSibling;
while(nc&&(nc.nodeType!=1)){
nc=nc.nextSibling;
}
return (!nc);
};
},"empty":function(name,_3eb){
return function(elem){
var cn=elem.childNodes;
var cnl=elem.childNodes.length;
for(var x=cnl-1;x>=0;x--){
var nt=cn[x].nodeType;
if((nt==1)||(nt==3)){
return false;
}
}
return true;
};
},"contains":function(name,_3f2){
return function(elem){
if(_3f2.charAt(0)=="\""||_3f2.charAt(0)=="'"){
_3f2=_3f2.substr(1,_3f2.length-2);
}
return (elem.innerHTML.indexOf(_3f2)>=0);
};
},"not":function(name,_3f5){
var ntf=_3a5(_345(_3f5)[0]);
return function(elem){
return (!ntf(elem));
};
},"nth-child":function(name,_3f9){
var pi=parseInt;
if(_3f9=="odd"){
_3f9="2n+1";
}else{
if(_3f9=="even"){
_3f9="2n";
}
}
if(_3f9.indexOf("n")!=-1){
var _3fb=_3f9.split("n",2);
var pred=_3fb[0]?(_3fb[0]=="-"?-1:pi(_3fb[0])):1;
var idx=_3fb[1]?pi(_3fb[1]):0;
var lb=0,ub=-1;
if(pred>0){
if(idx<0){
idx=(idx%pred)&&(pred+(idx%pred));
}else{
if(idx>0){
if(idx>=pred){
lb=idx-idx%pred;
}
idx=idx%pred;
}
}
}else{
if(pred<0){
pred*=-1;
if(idx>0){
ub=idx;
idx=idx%pred;
}
}
}
if(pred>0){
return function(elem){
var i=_3b7(elem);
return (i>=lb)&&(ub<0||i<=ub)&&((i%pred)==idx);
};
}else{
_3f9=idx;
}
}
var _402=pi(_3f9);
return function(elem){
return (_3b7(elem)==_402);
};
}};
var _404=(d.isIE)?function(cond){
var clc=cond.toLowerCase();
return function(elem){
return (_344?elem.getAttribute(cond):elem[cond]||elem[clc]);
};
}:function(cond){
return function(elem){
return (elem&&elem.getAttribute&&elem.hasAttribute(cond));
};
};
var _3b6=function(_40a){
var _40b=(_38c[_40a.query]||_38b[_40a.query]);
if(_40b){
return _40b;
}
var ff=null;
if(_40a.id){
if(_40a.tag!="*"){
ff=_38d(ff,function(elem){
return (elem.tagName==_40a[_344?"otag":"tag"]);
});
}
}
d.forEach(_40a.classes,function(_40e,idx,arr){
var _411=_40e.charAt(_40e.length-1)=="*";
if(_411){
_40e=_40e.substr(0,_40e.length-1);
}
var re=new RegExp("(?:^|\\s)"+_40e+(_411?".*":"")+"(?:\\s|$)");
ff=_38d(ff,function(elem){
return re.test(elem.className);
});
ff.count=idx;
});
d.forEach(_40a.pseudos,function(_414){
if(_3de[_414.name]){
ff=_38d(ff,_3de[_414.name](_414.name,_414.value));
}
});
_36d(_3c5,_40a,_404,function(_415){
ff=_38d(ff,_415);
});
if(!ff){
ff=function(){
return true;
};
}
return _38c[_40a.query]=ff;
};
var _416={};
var _3aa=function(_417,root){
var fHit=_416[_417.query];
if(fHit){
return fHit;
}
if(_417.id&&!_417.hasLoops&&!_417.tag){
return _416[_417.query]=function(root){
return [d.byId(_417.id)];
};
}
var _41b=_3b6(_417);
var _41c;
if(_417.tag&&_417.id&&!_417.hasLoops){
_41c=function(root){
var te=d.byId(_417.id,(root.ownerDocument||root));
if(_41b(te)){
return [te];
}
};
}else{
var tret;
if(!_417.hasLoops){
_41c=function(root){
var ret=[];
var te,x=0,tret=root.getElementsByTagName(_417[_344?"otag":"tag"]);
while((te=tret[x++])){
ret.push(te);
}
return ret;
};
}else{
_41c=function(root){
var ret=[];
var te,x=0,tret=root.getElementsByTagName(_417[_344?"otag":"tag"]);
while((te=tret[x++])){
if(_41b(te)){
ret.push(te);
}
}
return ret;
};
}
}
return _416[_417.query]=_41c;
};
var _428={};
var _429={"*":d.isIE?function(root){
return root.all;
}:function(root){
return root.getElementsByTagName("*");
},"~":_396,"+":function(root){
return _396(root,true);
},">":_390};
var _42d=function(_42e){
var _42f=_345(d.trim(_42e));
if(_42f.length==1){
var tt=_3aa(_42f[0]);
tt.nozip=true;
return tt;
}
var sqf=function(root){
var _433=_42f.slice(0);
var _434;
if(_433[0].oper==">"){
_434=[root];
}else{
_434=_3aa(_433.shift())(root);
}
return _3ab(_434,_433);
};
return sqf;
};
var _435=((document["evaluate"]&&!d.isSafari)?function(_436,root){
var _438=_436.split(" ");
if((!_344)&&(document["evaluate"])&&(_436.indexOf(":")==-1)&&(_436.indexOf("+")==-1)){
if(((_438.length>2)&&(_436.indexOf(">")==-1))||(_438.length>3)||(_436.indexOf("[")>=0)||((1==_438.length)&&(0<=_436.indexOf(".")))){
return _381(_436);
}
}
return _42d(_436);
}:_42d);
var _439=function(_43a){
if(_429[_43a]){
return _429[_43a];
}
if(0>_43a.indexOf(",")){
return _429[_43a]=_435(_43a);
}else{
var _43b=_43a.split(/\s*,\s*/);
var tf=function(root){
var _43e=0;
var ret=[];
var tp;
while((tp=_43b[_43e++])){
ret=ret.concat(_435(tp,tp.indexOf(" "))(root));
}
return ret;
};
return _429[_43a]=tf;
}
};
var _441=0;
var _zip=function(arr){
if(arr&&arr.nozip){
return d.NodeList._wrap(arr);
}
var ret=new d.NodeList();
if(!arr){
return ret;
}
if(arr[0]){
ret.push(arr[0]);
}
if(arr.length<2){
return ret;
}
_441++;
if(d.isIE&&_344){
var _445=_441+"";
arr[0].setAttribute("_zipIdx",_445);
for(var x=1,te;te=arr[x];x++){
if(arr[x].getAttribute("_zipIdx")!=_445){
ret.push(te);
}
te.setAttribute("_zipIdx",_445);
}
}else{
arr[0]["_zipIdx"]=_441;
for(var x=1,te;te=arr[x];x++){
if(arr[x]["_zipIdx"]!=_441){
ret.push(te);
}
te["_zipIdx"]=_441;
}
}
return ret;
};
d.query=function(_448,root){
if(_448.constructor==d.NodeList){
return _448;
}
if(!d.isString(_448)){
return new d.NodeList(_448);
}
if(d.isString(root)){
root=d.byId(root);
}
root=root||d.doc;
var od=root.ownerDocument||root.documentElement;
_344=(root.contentType&&root.contentType=="application/xml")||(!!od)&&(d.isIE?od.xml:(root.xmlVersion||od.xmlVersion));
return _zip(_439(_448)(root));
};
d.query.pseudos=_3de;
d._filterQueryResult=function(_44b,_44c){
var tnl=new d.NodeList();
var ff=(_44c)?_3a5(_345(_44c)[0]):function(){
return true;
};
for(var x=0,te;te=_44b[x];x++){
if(ff(te)){
tnl.push(te);
}
}
return tnl;
};
})();
}
if(!dojo._hasResource["dojo._base.xhr"]){
dojo._hasResource["dojo._base.xhr"]=true;
dojo.provide("dojo._base.xhr");
(function(){
var _d=dojo;
function setValue(obj,name,_454){
var val=obj[name];
if(_d.isString(val)){
obj[name]=[val,_454];
}else{
if(_d.isArray(val)){
val.push(_454);
}else{
obj[name]=_454;
}
}
};
dojo.formToObject=function(_456){
var ret={};
var _458="file|submit|image|reset|button|";
_d.forEach(dojo.byId(_456).elements,function(item){
var _in=item.name;
var type=(item.type||"").toLowerCase();
if(_in&&type&&_458.indexOf(type)==-1&&!item.disabled){
if(type=="radio"||type=="checkbox"){
if(item.checked){
setValue(ret,_in,item.value);
}
}else{
if(item.multiple){
ret[_in]=[];
_d.query("option",item).forEach(function(opt){
if(opt.selected){
setValue(ret,_in,opt.value);
}
});
}else{
setValue(ret,_in,item.value);
if(type=="image"){
ret[_in+".x"]=ret[_in+".y"]=ret[_in].x=ret[_in].y=0;
}
}
}
}
});
return ret;
};
dojo.objectToQuery=function(map){
var enc=encodeURIComponent;
var _45f=[];
var _460={};
for(var name in map){
var _462=map[name];
if(_462!=_460[name]){
var _463=enc(name)+"=";
if(_d.isArray(_462)){
for(var i=0;i<_462.length;i++){
_45f.push(_463+enc(_462[i]));
}
}else{
_45f.push(_463+enc(_462));
}
}
}
return _45f.join("&");
};
dojo.formToQuery=function(_465){
return _d.objectToQuery(_d.formToObject(_465));
};
dojo.formToJson=function(_466,_467){
return _d.toJson(_d.formToObject(_466),_467);
};
dojo.queryToObject=function(str){
var ret={};
var qp=str.split("&");
var dec=decodeURIComponent;
_d.forEach(qp,function(item){
if(item.length){
var _46d=item.split("=");
var name=dec(_46d.shift());
var val=dec(_46d.join("="));
if(_d.isString(ret[name])){
ret[name]=[ret[name]];
}
if(_d.isArray(ret[name])){
ret[name].push(val);
}else{
ret[name]=val;
}
}
});
return ret;
};
dojo._blockAsync=false;
dojo._contentHandlers={"text":function(xhr){
return xhr.responseText;
},"json":function(xhr){
return _d.fromJson(xhr.responseText||null);
},"json-comment-filtered":function(xhr){
if(!dojo.config.useCommentedJson){
console.warn("Consider using the standard mimetype:application/json."+" json-commenting can introduce security issues. To"+" decrease the chances of hijacking, use the standard the 'json' handler and"+" prefix your json with: {}&&\n"+"Use djConfig.useCommentedJson=true to turn off this message.");
}
var _473=xhr.responseText;
var _474=_473.indexOf("/*");
var _475=_473.lastIndexOf("*/");
if(_474==-1||_475==-1){
throw new Error("JSON was not comment filtered");
}
return _d.fromJson(_473.substring(_474+2,_475));
},"javascript":function(xhr){
return _d.eval(xhr.responseText);
},"xml":function(xhr){
var _478=xhr.responseXML;
if(_d.isIE&&(!_478||_478.documentElement==null)){
_d.forEach(["MSXML2","Microsoft","MSXML","MSXML3"],function(_479){
try{
var dom=new ActiveXObject(_479+".XMLDOM");
dom.async=false;
dom.loadXML(xhr.responseText);
_478=dom;
}
catch(e){
}
});
}
return _478;
}};
dojo._contentHandlers["json-comment-optional"]=function(xhr){
var _47c=_d._contentHandlers;
if(xhr.responseText&&xhr.responseText.indexOf("/*")!=-1){
return _47c["json-comment-filtered"](xhr);
}else{
return _47c["json"](xhr);
}
};
dojo._ioSetArgs=function(args,_47e,_47f,_480){
var _481={args:args,url:args.url};
var _482=null;
if(args.form){
var form=_d.byId(args.form);
var _484=form.getAttributeNode("action");
_481.url=_481.url||(_484?_484.value:null);
_482=_d.formToObject(form);
}
var _485=[{}];
if(_482){
_485.push(_482);
}
if(args.content){
_485.push(args.content);
}
if(args.preventCache){
_485.push({"dojo.preventCache":new Date().valueOf()});
}
_481.query=_d.objectToQuery(_d.mixin.apply(null,_485));
_481.handleAs=args.handleAs||"text";
var d=new _d.Deferred(_47e);
d.addCallbacks(_47f,function(_487){
return _480(_487,d);
});
var ld=args.load;
if(ld&&_d.isFunction(ld)){
d.addCallback(function(_489){
return ld.call(args,_489,_481);
});
}
var err=args.error;
if(err&&_d.isFunction(err)){
d.addErrback(function(_48b){
return err.call(args,_48b,_481);
});
}
var _48c=args.handle;
if(_48c&&_d.isFunction(_48c)){
d.addBoth(function(_48d){
return _48c.call(args,_48d,_481);
});
}
d.ioArgs=_481;
return d;
};
var _48e=function(dfd){
dfd.canceled=true;
var xhr=dfd.ioArgs.xhr;
var _at=typeof xhr.abort;
if(_at=="function"||_at=="object"||_at=="unknown"){
xhr.abort();
}
var err=dfd.ioArgs.error;
if(!err){
err=new Error("xhr cancelled");
err.dojoType="cancel";
}
return err;
};
var _493=function(dfd){
var ret=_d._contentHandlers[dfd.ioArgs.handleAs](dfd.ioArgs.xhr);
return (typeof ret=="undefined")?null:ret;
};
var _496=function(_497,dfd){
console.debug(_497);
return _497;
};
var _499=null;
var _49a=[];
var _49b=function(){
var now=(new Date()).getTime();
if(!_d._blockAsync){
for(var i=0,tif;i<_49a.length&&(tif=_49a[i]);i++){
var dfd=tif.dfd;
var func=function(){
if(!dfd||dfd.canceled||!tif.validCheck(dfd)){
_49a.splice(i--,1);
}else{
if(tif.ioCheck(dfd)){
_49a.splice(i--,1);
tif.resHandle(dfd);
}else{
if(dfd.startTime){
if(dfd.startTime+(dfd.ioArgs.args.timeout||0)<now){
_49a.splice(i--,1);
var err=new Error("timeout exceeded");
err.dojoType="timeout";
dfd.errback(err);
dfd.cancel();
}
}
}
}
};
if(dojo.config.isDebug){
func.call(this);
}else{
try{
func.call(this);
}
catch(e){
dfd.errback(e);
}
}
}
}
if(!_49a.length){
clearInterval(_499);
_499=null;
return;
}
};
dojo._ioCancelAll=function(){
try{
_d.forEach(_49a,function(i){
try{
i.dfd.cancel();
}
catch(e){
}
});
}
catch(e){
}
};
if(_d.isIE){
_d.addOnWindowUnload(_d._ioCancelAll);
}
_d._ioWatch=function(dfd,_4a4,_4a5,_4a6){
if(dfd.ioArgs.args.timeout){
dfd.startTime=(new Date()).getTime();
}
_49a.push({dfd:dfd,validCheck:_4a4,ioCheck:_4a5,resHandle:_4a6});
if(!_499){
_499=setInterval(_49b,50);
}
_49b();
};
var _4a7="application/x-www-form-urlencoded";
var _4a8=function(dfd){
return dfd.ioArgs.xhr.readyState;
};
var _4aa=function(dfd){
return 4==dfd.ioArgs.xhr.readyState;
};
var _4ac=function(dfd){
var xhr=dfd.ioArgs.xhr;
if(_d._isDocumentOk(xhr)){
dfd.callback(dfd);
}else{
var err=new Error("Unable to load "+dfd.ioArgs.url+" status:"+xhr.status);
err.status=xhr.status;
err.responseText=xhr.responseText;
dfd.errback(err);
}
};
dojo._ioAddQueryToUrl=function(_4b0){
if(_4b0.query.length){
_4b0.url+=(_4b0.url.indexOf("?")==-1?"?":"&")+_4b0.query;
_4b0.query=null;
}
};
dojo.xhr=function(_4b1,args,_4b3){
var dfd=_d._ioSetArgs(args,_48e,_493,_496);
dfd.ioArgs.xhr=_d._xhrObj(dfd.ioArgs.args);
if(_4b3){
if("postData" in args){
dfd.ioArgs.query=args.postData;
}else{
if("putData" in args){
dfd.ioArgs.query=args.putData;
}
}
}else{
_d._ioAddQueryToUrl(dfd.ioArgs);
}
var _4b5=dfd.ioArgs;
var xhr=_4b5.xhr;
xhr.open(_4b1,_4b5.url,args.sync!==true,args.user||undefined,args.password||undefined);
if(args.headers){
for(var hdr in args.headers){
if(hdr.toLowerCase()==="content-type"&&!args.contentType){
args.contentType=args.headers[hdr];
}else{
xhr.setRequestHeader(hdr,args.headers[hdr]);
}
}
}
xhr.setRequestHeader("Content-Type",args.contentType||_4a7);
if(!args.headers||!args.headers["X-Requested-With"]){
xhr.setRequestHeader("X-Requested-With","XMLHttpRequest");
}
if(dojo.config.isDebug){
xhr.send(_4b5.query);
}else{
try{
xhr.send(_4b5.query);
}
catch(e){
dfd.ioArgs.error=e;
dfd.cancel();
}
}
_d._ioWatch(dfd,_4a8,_4aa,_4ac);
xhr=null;
return dfd;
};
dojo.xhrGet=function(args){
return _d.xhr("GET",args);
};
dojo.rawXhrPost=dojo.xhrPost=function(args){
return _d.xhr("POST",args,true);
};
dojo.rawXhrPut=dojo.xhrPut=function(args){
return _d.xhr("PUT",args,true);
};
dojo.xhrDelete=function(args){
return _d.xhr("DELETE",args);
};
})();
}
if(!dojo._hasResource["dojo._base.fx"]){
dojo._hasResource["dojo._base.fx"]=true;
dojo.provide("dojo._base.fx");
(function(){
var d=dojo;
dojo._Line=function(_4bd,end){
this.start=_4bd;
this.end=end;
this.getValue=function(n){
return ((this.end-this.start)*n)+this.start;
};
};
d.declare("dojo._Animation",null,{constructor:function(args){
d.mixin(this,args);
if(d.isArray(this.curve)){
this.curve=new d._Line(this.curve[0],this.curve[1]);
}
},duration:350,repeat:0,rate:10,_percent:0,_startRepeatCount:0,_fire:function(evt,args){
if(this[evt]){
if(dojo.config.isDebug){
this[evt].apply(this,args||[]);
}else{
try{
this[evt].apply(this,args||[]);
}
catch(e){
console.error("exception in animation handler for:",evt);
console.error(e);
}
}
}
return this;
},play:function(_4c3,_4c4){
var _t=this;
if(_4c4){
_t._stopTimer();
_t._active=_t._paused=false;
_t._percent=0;
}else{
if(_t._active&&!_t._paused){
return _t;
}
}
_t._fire("beforeBegin");
var de=_4c3||_t.delay;
var _p=dojo.hitch(_t,"_play",_4c4);
if(de>0){
setTimeout(_p,de);
return _t;
}
_p();
return _t;
},_play:function(_4c8){
var _t=this;
_t._startTime=new Date().valueOf();
if(_t._paused){
_t._startTime-=_t.duration*_t._percent;
}
_t._endTime=_t._startTime+_t.duration;
_t._active=true;
_t._paused=false;
var _4ca=_t.curve.getValue(_t._percent);
if(!_t._percent){
if(!_t._startRepeatCount){
_t._startRepeatCount=_t.repeat;
}
_t._fire("onBegin",[_4ca]);
}
_t._fire("onPlay",[_4ca]);
_t._cycle();
return _t;
},pause:function(){
this._stopTimer();
if(!this._active){
return this;
}
this._paused=true;
this._fire("onPause",[this.curve.getValue(this._percent)]);
return this;
},gotoPercent:function(_4cb,_4cc){
this._stopTimer();
this._active=this._paused=true;
this._percent=_4cb;
if(_4cc){
this.play();
}
return this;
},stop:function(_4cd){
if(!this._timer){
return this;
}
this._stopTimer();
if(_4cd){
this._percent=1;
}
this._fire("onStop",[this.curve.getValue(this._percent)]);
this._active=this._paused=false;
return this;
},status:function(){
if(this._active){
return this._paused?"paused":"playing";
}
return "stopped";
},_cycle:function(){
var _t=this;
if(_t._active){
var curr=new Date().valueOf();
var step=(curr-_t._startTime)/(_t._endTime-_t._startTime);
if(step>=1){
step=1;
}
_t._percent=step;
if(_t.easing){
step=_t.easing(step);
}
_t._fire("onAnimate",[_t.curve.getValue(step)]);
if(_t._percent<1){
_t._startTimer();
}else{
_t._active=false;
if(_t.repeat>0){
_t.repeat--;
_t.play(null,true);
}else{
if(_t.repeat==-1){
_t.play(null,true);
}else{
if(_t._startRepeatCount){
_t.repeat=_t._startRepeatCount;
_t._startRepeatCount=0;
}
}
}
_t._percent=0;
_t._fire("onEnd");
_t._stopTimer();
}
}
return _t;
}});
var ctr=0;
var _4d2=[];
var _4d3={run:function(){
}};
var _4d4=null;
dojo._Animation.prototype._startTimer=function(){
if(!this._timer){
this._timer=d.connect(_4d3,"run",this,"_cycle");
ctr++;
}
if(!_4d4){
_4d4=setInterval(d.hitch(_4d3,"run"),this.rate);
}
};
dojo._Animation.prototype._stopTimer=function(){
if(this._timer){
d.disconnect(this._timer);
this._timer=null;
ctr--;
}
if(ctr<=0){
clearInterval(_4d4);
_4d4=null;
ctr=0;
}
};
var _4d5=(d.isIE)?function(node){
var ns=node.style;
if(!ns.width.length&&d.style(node,"width")=="auto"){
ns.width="auto";
}
}:function(){
};
dojo._fade=function(args){
args.node=d.byId(args.node);
var _4d9=d.mixin({properties:{}},args);
var _4da=(_4d9.properties.opacity={});
_4da.start=!("start" in _4d9)?function(){
return Number(d.style(_4d9.node,"opacity"));
}:_4d9.start;
_4da.end=_4d9.end;
var anim=d.animateProperty(_4d9);
d.connect(anim,"beforeBegin",d.partial(_4d5,_4d9.node));
return anim;
};
dojo.fadeIn=function(args){
return d._fade(d.mixin({end:1},args));
};
dojo.fadeOut=function(args){
return d._fade(d.mixin({end:0},args));
};
dojo._defaultEasing=function(n){
return 0.5+((Math.sin((n+1.5)*Math.PI))/2);
};
var _4df=function(_4e0){
this._properties=_4e0;
for(var p in _4e0){
var prop=_4e0[p];
if(prop.start instanceof d.Color){
prop.tempColor=new d.Color();
}
}
this.getValue=function(r){
var ret={};
for(var p in this._properties){
var prop=this._properties[p];
var _4e7=prop.start;
if(_4e7 instanceof d.Color){
ret[p]=d.blendColors(_4e7,prop.end,r,prop.tempColor).toCss();
}else{
if(!d.isArray(_4e7)){
ret[p]=((prop.end-_4e7)*r)+_4e7+(p!="opacity"?prop.units||"px":"");
}
}
}
return ret;
};
};
dojo.animateProperty=function(args){
args.node=d.byId(args.node);
if(!args.easing){
args.easing=d._defaultEasing;
}
var anim=new d._Animation(args);
d.connect(anim,"beforeBegin",anim,function(){
var pm={};
for(var p in this.properties){
if(p=="width"||p=="height"){
this.node.display="block";
}
var prop=this.properties[p];
prop=pm[p]=d.mixin({},(d.isObject(prop)?prop:{end:prop}));
if(d.isFunction(prop.start)){
prop.start=prop.start();
}
if(d.isFunction(prop.end)){
prop.end=prop.end();
}
var _4ed=(p.toLowerCase().indexOf("color")>=0);
function getStyle(node,p){
var v=({height:node.offsetHeight,width:node.offsetWidth})[p];
if(v!==undefined){
return v;
}
v=d.style(node,p);
return (p=="opacity")?Number(v):(_4ed?v:parseFloat(v));
};
if(!("end" in prop)){
prop.end=getStyle(this.node,p);
}else{
if(!("start" in prop)){
prop.start=getStyle(this.node,p);
}
}
if(_4ed){
prop.start=new d.Color(prop.start);
prop.end=new d.Color(prop.end);
}else{
prop.start=(p=="opacity")?Number(prop.start):parseFloat(prop.start);
}
}
this.curve=new _4df(pm);
});
d.connect(anim,"onAnimate",d.hitch(d,"style",anim.node));
return anim;
};
dojo.anim=function(node,_4f2,_4f3,_4f4,_4f5,_4f6){
return d.animateProperty({node:node,duration:_4f3||d._Animation.prototype.duration,properties:_4f2,easing:_4f4,onEnd:_4f5}).play(_4f6||0);
};
})();
}
if(!dojo._hasResource["dojo._base.browser"]){
dojo._hasResource["dojo._base.browser"]=true;
dojo.provide("dojo._base.browser");
if(dojo.config.require){
dojo.forEach(dojo.config.require,"dojo['require'](item);");
}
}
if(!dojo._hasResource["dojo.date.stamp"]){
dojo._hasResource["dojo.date.stamp"]=true;
dojo.provide("dojo.date.stamp");
dojo.date.stamp.fromISOString=function(_4f7,_4f8){
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 _4f9=dojo.date.stamp._isoRegExp.exec(_4f7);
var _4fa=null;
if(_4f9){
_4f9.shift();
if(_4f9[1]){
_4f9[1]--;
}
if(_4f9[6]){
_4f9[6]*=1000;
}
if(_4f8){
_4f8=new Date(_4f8);
dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){
return _4f8["get"+prop]();
}).forEach(function(_4fc,_4fd){
if(_4f9[_4fd]===undefined){
_4f9[_4fd]=_4fc;
}
});
}
_4fa=new Date(_4f9[0]||1970,_4f9[1]||0,_4f9[2]||1,_4f9[3]||0,_4f9[4]||0,_4f9[5]||0,_4f9[6]||0);
var _4fe=0;
var _4ff=_4f9[7]&&_4f9[7].charAt(0);
if(_4ff!="Z"){
_4fe=((_4f9[8]||0)*60)+(Number(_4f9[9])||0);
if(_4ff!="-"){
_4fe*=-1;
}
}
if(_4ff){
_4fe-=_4fa.getTimezoneOffset();
}
if(_4fe){
_4fa.setTime(_4fa.getTime()+_4fe*60000);
}
}
return _4fa;
};
dojo.date.stamp.toISOString=function(_500,_501){
var _=function(n){
return (n<10)?"0"+n:n;
};
_501=_501||{};
var _504=[];
var _505=_501.zulu?"getUTC":"get";
var date="";
if(_501.selector!="time"){
var year=_500[_505+"FullYear"]();
date=["0000".substr((year+"").length)+year,_(_500[_505+"Month"]()+1),_(_500[_505+"Date"]())].join("-");
}
_504.push(date);
if(_501.selector!="date"){
var time=[_(_500[_505+"Hours"]()),_(_500[_505+"Minutes"]()),_(_500[_505+"Seconds"]())].join(":");
var _509=_500[_505+"Milliseconds"]();
if(_501.milliseconds){
time+="."+(_509<100?"0":"")+_(_509);
}
if(_501.zulu){
time+="Z";
}else{
if(_501.selector!="time"){
var _50a=_500.getTimezoneOffset();
var _50b=Math.abs(_50a);
time+=(_50a>0?"-":"+")+_(Math.floor(_50b/60))+":"+_(_50b%60);
}
}
_504.push(time);
}
return _504.join("T");
};
}
if(!dojo._hasResource["dojo.parser"]){
dojo._hasResource["dojo.parser"]=true;
dojo.provide("dojo.parser");
dojo.parser=new function(){
var d=dojo;
var _50d=d._scopeName+"Type";
var qry="["+_50d+"]";
function val2type(_50f){
if(d.isString(_50f)){
return "string";
}
if(typeof _50f=="number"){
return "number";
}
if(typeof _50f=="boolean"){
return "boolean";
}
if(d.isFunction(_50f)){
return "function";
}
if(d.isArray(_50f)){
return "array";
}
if(_50f instanceof Date){
return "date";
}
if(_50f instanceof d._Url){
return "url";
}
return "object";
};
function str2obj(_510,type){
switch(type){
case "string":
return _510;
case "number":
return _510.length?Number(_510):NaN;
case "boolean":
return typeof _510=="boolean"?_510:!(_510.toLowerCase()=="false");
case "function":
if(d.isFunction(_510)){
_510=_510.toString();
_510=d.trim(_510.substring(_510.indexOf("{")+1,_510.length-1));
}
try{
if(_510.search(/[^\w\.]+/i)!=-1){
_510=d.parser._nameAnonFunc(new Function(_510),this);
}
return d.getObject(_510,false);
}
catch(e){
return new Function();
}
case "array":
return _510?_510.split(/\s*,\s*/):[];
case "date":
switch(_510){
case "":
return new Date("");
case "now":
return new Date();
default:
return d.date.stamp.fromISOString(_510);
}
case "url":
return d.baseUrl+_510;
default:
return d.fromJson(_510);
}
};
var _512={};
function getClassInfo(_513){
if(!_512[_513]){
var cls=d.getObject(_513);
if(!d.isFunction(cls)){
throw new Error("Could not load class '"+_513+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");
}
var _515=cls.prototype;
var _516={};
for(var name in _515){
if(name.charAt(0)=="_"){
continue;
}
var _518=_515[name];
_516[name]=val2type(_518);
}
_512[_513]={cls:cls,params:_516};
}
return _512[_513];
};
this._functionFromScript=function(_519){
var _51a="";
var _51b="";
var _51c=_519.getAttribute("args");
if(_51c){
d.forEach(_51c.split(/\s*,\s*/),function(part,idx){
_51a+="var "+part+" = arguments["+idx+"]; ";
});
}
var _51f=_519.getAttribute("with");
if(_51f&&_51f.length){
d.forEach(_51f.split(/\s*,\s*/),function(part){
_51a+="with("+part+"){";
_51b+="}";
});
}
return new Function(_51a+_519.innerHTML+_51b);
};
this.instantiate=function(_521){
var _522=[];
d.forEach(_521,function(node){
if(!node){
return;
}
var type=node.getAttribute(_50d);
if((!type)||(!type.length)){
return;
}
var _525=getClassInfo(type);
var _526=_525.cls;
var ps=_526._noScript||_526.prototype._noScript;
var _528={};
var _529=node.attributes;
for(var name in _525.params){
var item=_529.getNamedItem(name);
if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){
continue;
}
var _52c=item.value;
switch(name){
case "class":
_52c=node.className;
break;
case "style":
_52c=node.style&&node.style.cssText;
}
var _52d=_525.params[name];
_528[name]=str2obj(_52c,_52d);
}
if(!ps){
var _52e=[],_52f=[];
d.query("> script[type^='dojo/']",node).orphan().forEach(function(_530){
var _531=_530.getAttribute("event"),type=_530.getAttribute("type"),nf=d.parser._functionFromScript(_530);
if(_531){
if(type=="dojo/connect"){
_52e.push({event:_531,func:nf});
}else{
_528[_531]=nf;
}
}else{
_52f.push(nf);
}
});
}
var _533=_526["markupFactory"];
if(!_533&&_526["prototype"]){
_533=_526.prototype["markupFactory"];
}
var _534=_533?_533(_528,node,_526):new _526(_528,node);
_522.push(_534);
var _535=node.getAttribute("jsId");
if(_535){
d.setObject(_535,_534);
}
if(!ps){
d.forEach(_52e,function(_536){
d.connect(_534,_536.event,null,_536.func);
});
d.forEach(_52f,function(func){
func.call(_534);
});
}
});
d.forEach(_522,function(_538){
if(_538&&_538.startup&&!_538._started&&(!_538.getParent||!_538.getParent())){
_538.startup();
}
});
return _522;
};
this.parse=function(_539){
var list=d.query(qry,_539);
var _53b=this.instantiate(list);
return _53b;
};
}();
(function(){
var _53c=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,_53c);
}else{
dojo._loaders.unshift(_53c);
}
})();
dojo.parser._anonCtr=0;
dojo.parser._anon={};
dojo.parser._nameAnonFunc=function(_53d,_53e){
var jpn="$joinpoint";
var nso=(_53e||dojo.parser._anon);
if(dojo.isIE){
var cn=_53d["__dojoNameCache"];
if(cn&&nso[cn]===_53d){
return _53d["__dojoNameCache"];
}
}
var ret="__"+dojo.parser._anonCtr++;
while(typeof nso[ret]!="undefined"){
ret="__"+dojo.parser._anonCtr++;
}
nso[ret]=_53d;
return ret;
};
}
if(!dojo._hasResource["dojo.regexp"]){
dojo._hasResource["dojo.regexp"]=true;
dojo.provide("dojo.regexp");
dojo.regexp.escapeString=function(str,_544){
return str.replace(/([\.$?*!=:|{}\(\)\[\]\\\/^])/g,function(ch){
if(_544&&_544.indexOf(ch)!=-1){
return ch;
}
return "\\"+ch;
});
};
dojo.regexp.buildGroupRE=function(arr,re,_548){
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("|"),_548);
};
dojo.regexp.group=function(_54b,_54c){
return "("+(_54c?"?:":"")+_54b+")";
};
}
if(!dojo._hasResource["dojo.cookie"]){
dojo._hasResource["dojo.cookie"]=true;
dojo.provide("dojo.cookie");
dojo.cookie=function(name,_54e,_54f){
var c=document.cookie;
if(arguments.length==1){
var _551=c.match(new RegExp("(?:^|; )"+dojo.regexp.escapeString(name)+"=([^;]*)"));
return _551?decodeURIComponent(_551[1]):undefined;
}else{
_54f=_54f||{};
var exp=_54f.expires;
if(typeof exp=="number"){
var d=new Date();
d.setTime(d.getTime()+exp*24*60*60*1000);
exp=_54f.expires=d;
}
if(exp&&exp.toUTCString){
_54f.expires=exp.toUTCString();
}
_54e=encodeURIComponent(_54e);
var _554=name+"="+_54e,_555;
for(_555 in _54f){
_554+="; "+_555;
var _556=_54f[_555];
if(_556!==true){
_554+="="+_556;
}
}
document.cookie=_554;
}
};
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["dojo.date"]){
dojo._hasResource["dojo.date"]=true;
dojo.provide("dojo.date");
dojo.date.getDaysInMonth=function(_557){
var _558=_557.getMonth();
var days=[31,28,31,30,31,30,31,31,30,31,30,31];
if(_558==1&&dojo.date.isLeapYear(_557)){
return 29;
}
return days[_558];
};
dojo.date.isLeapYear=function(_55a){
var year=_55a.getFullYear();
return !(year%400)||(!(year%4)&&!!(year%100));
};
dojo.date.getTimezoneName=function(_55c){
var str=_55c.toString();
var tz="";
var _55f;
var pos=str.indexOf("(");
if(pos>-1){
tz=str.substring(++pos,str.indexOf(")"));
}else{
var pat=/([A-Z\/]+) \d{4}$/;
if((_55f=str.match(pat))){
tz=_55f[1];
}else{
str=_55c.toLocaleString();
pat=/ ([A-Z\/]+)$/;
if((_55f=str.match(pat))){
tz=_55f[1];
}
}
}
return (tz=="AM"||tz=="PM")?"":tz;
};
dojo.date.compare=function(_562,_563,_564){
_562=new Date(Number(_562));
_563=new Date(Number(_563||new Date()));
if(_564!=="undefined"){
if(_564=="date"){
_562.setHours(0,0,0,0);
_563.setHours(0,0,0,0);
}else{
if(_564=="time"){
_562.setFullYear(0,0,0);
_563.setFullYear(0,0,0);
}
}
}
if(_562>_563){
return 1;
}
if(_562<_563){
return -1;
}
return 0;
};
dojo.date.add=function(date,_566,_567){
var sum=new Date(Number(date));
var _569=false;
var _56a="Date";
switch(_566){
case "day":
break;
case "weekday":
var days,_56c;
var mod=_567%5;
if(!mod){
days=(_567>0)?5:-5;
_56c=(_567>0)?((_567-5)/5):((_567+5)/5);
}else{
days=mod;
_56c=parseInt(_567/5);
}
var strt=date.getDay();
var adj=0;
if(strt==6&&_567>0){
adj=1;
}else{
if(strt==0&&_567<0){
adj=-1;
}
}
var trgt=strt+days;
if(trgt==0||trgt==6){
adj=(_567>0)?2:-2;
}
_567=(7*_56c)+days+adj;
break;
case "year":
_56a="FullYear";
_569=true;
break;
case "week":
_567*=7;
break;
case "quarter":
_567*=3;
case "month":
_569=true;
_56a="Month";
break;
case "hour":
case "minute":
case "second":
case "millisecond":
_56a="UTC"+_566.charAt(0).toUpperCase()+_566.substring(1)+"s";
}
if(_56a){
sum["set"+_56a](sum["get"+_56a]()+_567);
}
if(_569&&(sum.getDate()<date.getDate())){
sum.setDate(0);
}
return sum;
};
dojo.date.difference=function(_571,_572,_573){
_572=_572||new Date();
_573=_573||"day";
var _574=_572.getFullYear()-_571.getFullYear();
var _575=1;
switch(_573){
case "quarter":
var m1=_571.getMonth();
var m2=_572.getMonth();
var q1=Math.floor(m1/3)+1;
var q2=Math.floor(m2/3)+1;
q2+=(_574*4);
_575=q2-q1;
break;
case "weekday":
var days=Math.round(dojo.date.difference(_571,_572,"day"));
var _57b=parseInt(dojo.date.difference(_571,_572,"week"));
var mod=days%7;
if(mod==0){
days=_57b*5;
}else{
var adj=0;
var aDay=_571.getDay();
var bDay=_572.getDay();
_57b=parseInt(days/7);
mod=days%7;
var _580=new Date(_571);
_580.setDate(_580.getDate()+(_57b*7));
var _581=_580.getDay();
if(days>0){
switch(true){
case aDay==6:
adj=-1;
break;
case aDay==0:
adj=0;
break;
case bDay==6:
adj=-1;
break;
case bDay==0:
adj=-2;
break;
case (_581+mod)>5:
adj=-2;
}
}else{
if(days<0){
switch(true){
case aDay==6:
adj=0;
break;
case aDay==0:
adj=1;
break;
case bDay==6:
adj=2;
break;
case bDay==0:
adj=1;
break;
case (_581+mod)<0:
adj=2;
}
}
}
days+=adj;
days-=(_57b*2);
}
_575=days;
break;
case "year":
_575=_574;
break;
case "month":
_575=(_572.getMonth()-_571.getMonth())+(_574*12);
break;
case "week":
_575=parseInt(dojo.date.difference(_571,_572,"day")/7);
break;
case "day":
_575/=24;
case "hour":
_575/=60;
case "minute":
_575/=60;
case "second":
_575/=1000;
case "millisecond":
_575*=_572.getTime()-_571.getTime();
}
return Math.round(_575);
};
}
if(!dojo._hasResource["dojo.i18n"]){
dojo._hasResource["dojo.i18n"]=true;
dojo.provide("dojo.i18n");
dojo.i18n.getLocalization=function(_582,_583,_584){
_584=dojo.i18n.normalizeLocale(_584);
var _585=_584.split("-");
var _586=[_582,"nls",_583].join(".");
var _587=dojo._loadedModules[_586];
if(_587){
var _588;
for(var i=_585.length;i>0;i--){
var loc=_585.slice(0,i).join("_");
if(_587[loc]){
_588=_587[loc];
break;
}
}
if(!_588){
_588=_587.ROOT;
}
if(_588){
var _58b=function(){
};
_58b.prototype=_588;
return new _58b();
}
}
throw new Error("Bundle not found: "+_583+" in "+_582+" , locale="+_584);
};
dojo.i18n.normalizeLocale=function(_58c){
var _58d=_58c?_58c.toLowerCase():dojo.locale;
if(_58d=="root"){
_58d="ROOT";
}
return _58d;
};
dojo.i18n._requireLocalization=function(_58e,_58f,_590,_591){
var _592=dojo.i18n.normalizeLocale(_590);
var _593=[_58e,"nls",_58f].join(".");
var _594="";
if(_591){
var _595=_591.split(",");
for(var i=0;i<_595.length;i++){
if(_592["indexOf"](_595[i])==0){
if(_595[i].length>_594.length){
_594=_595[i];
}
}
}
if(!_594){
_594="ROOT";
}
}
var _597=_591?_594:_592;
var _598=dojo._loadedModules[_593];
var _599=null;
if(_598){
if(dojo.config.localizationComplete&&_598._built){
return;
}
var _59a=_597.replace(/-/g,"_");
var _59b=_593+"."+_59a;
_599=dojo._loadedModules[_59b];
}
if(!_599){
_598=dojo["provide"](_593);
var syms=dojo._getModuleSymbols(_58e);
var _59d=syms.concat("nls").join("/");
var _59e;
dojo.i18n._searchLocalePath(_597,_591,function(loc){
var _5a0=loc.replace(/-/g,"_");
var _5a1=_593+"."+_5a0;
var _5a2=false;
if(!dojo._loadedModules[_5a1]){
dojo["provide"](_5a1);
var _5a3=[_59d];
if(loc!="ROOT"){
_5a3.push(loc);
}
_5a3.push(_58f);
var _5a4=_5a3.join("/")+".js";
_5a2=dojo._loadPath(_5a4,null,function(hash){
var _5a6=function(){
};
_5a6.prototype=_59e;
_598[_5a0]=new _5a6();
for(var j in hash){
_598[_5a0][j]=hash[j];
}
});
}else{
_5a2=true;
}
if(_5a2&&_598[_5a0]){
_59e=_598[_5a0];
}else{
_598[_5a0]=_59e;
}
if(_591){
return true;
}
});
}
if(_591&&_592!=_594){
_598[_592.replace(/-/g,"_")]=_598[_594.replace(/-/g,"_")];
}
};
(function(){
var _5a8=dojo.config.extraLocale;
if(_5a8){
if(!_5a8 instanceof Array){
_5a8=[_5a8];
}
var req=dojo.i18n._requireLocalization;
dojo.i18n._requireLocalization=function(m,b,_5ac,_5ad){
req(m,b,_5ac,_5ad);
if(_5ac){
return;
}
for(var i=0;i<_5a8.length;i++){
req(m,b,_5a8[i],_5ad);
}
};
}
})();
dojo.i18n._searchLocalePath=function(_5af,down,_5b1){
_5af=dojo.i18n.normalizeLocale(_5af);
var _5b2=_5af.split("-");
var _5b3=[];
for(var i=_5b2.length;i>0;i--){
_5b3.push(_5b2.slice(0,i).join("-"));
}
_5b3.push(false);
if(down){
_5b3.reverse();
}
for(var j=_5b3.length-1;j>=0;j--){
var loc=_5b3[j]||"ROOT";
var stop=_5b1(loc);
if(stop){
break;
}
}
};
dojo.i18n._preloadLocalizations=function(_5b8,_5b9){
function preload(_5ba){
_5ba=dojo.i18n.normalizeLocale(_5ba);
dojo.i18n._searchLocalePath(_5ba,true,function(loc){
for(var i=0;i<_5b9.length;i++){
if(_5b9[i]==loc){
dojo["require"](_5b8+"_"+loc);
return true;
}
}
return false;
});
};
preload();
var _5bd=dojo.config.extraLocale||[];
for(var i=0;i<_5bd.length;i++){
preload(_5bd[i]);
}
};
}
if(!dojo._hasResource["dojo.cldr.supplemental"]){
dojo._hasResource["dojo.cldr.supplemental"]=true;
dojo.provide("dojo.cldr.supplemental");
dojo.cldr.supplemental.getFirstDayOfWeek=function(_5bf){
var _5c0={mv:5,ae:6,af:6,bh:6,dj:6,dz:6,eg:6,er:6,et:6,iq:6,ir:6,jo:6,ke:6,kw:6,lb:6,ly:6,ma:6,om:6,qa:6,sa:6,sd:6,so:6,tn:6,ye:6,as:0,au:0,az:0,bw:0,ca:0,cn:0,fo:0,ge:0,gl:0,gu:0,hk:0,ie:0,il:0,is:0,jm:0,jp:0,kg:0,kr:0,la:0,mh:0,mo:0,mp:0,mt:0,nz:0,ph:0,pk:0,sg:0,th:0,tt:0,tw:0,um:0,us:0,uz:0,vi:0,za:0,zw:0,et:0,mw:0,ng:0,tj:0,sy:4};
var _5c1=dojo.cldr.supplemental._region(_5bf);
var dow=_5c0[_5c1];
return (dow===undefined)?1:dow;
};
dojo.cldr.supplemental._region=function(_5c3){
_5c3=dojo.i18n.normalizeLocale(_5c3);
var tags=_5c3.split("-");
var _5c5=tags[1];
if(!_5c5){
_5c5={de:"de",en:"us",es:"es",fi:"fi",fr:"fr",he:"il",hu:"hu",it:"it",ja:"jp",ko:"kr",nl:"nl",pt:"br",sv:"se",zh:"cn"}[tags[0]];
}else{
if(_5c5.length==4){
_5c5=tags[2];
}
}
return _5c5;
};
dojo.cldr.supplemental.getWeekend=function(_5c6){
var _5c7={eg:5,il:5,sy:5,"in":0,ae:4,bh:4,dz:4,iq:4,jo:4,kw:4,lb:4,ly:4,ma:4,om:4,qa:4,sa:4,sd:4,tn:4,ye:4};
var _5c8={ae:5,bh:5,dz:5,iq:5,jo:5,kw:5,lb:5,ly:5,ma:5,om:5,qa:5,sa:5,sd:5,tn:5,ye:5,af:5,ir:5,eg:6,il:6,sy:6};
var _5c9=dojo.cldr.supplemental._region(_5c6);
var _5ca=_5c7[_5c9];
var end=_5c8[_5c9];
if(_5ca===undefined){
_5ca=6;
}
if(end===undefined){
end=0;
}
return {start:_5ca,end:end};
};
}
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(_5d5,map,_5d7,_5d8){
_5d8=_5d8||dojo.global;
_5d7=(!_5d7)?function(v){
return v;
}:dojo.hitch(_5d8,_5d7);
return _5d5.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_5da,key,_5dc){
var _5dd=dojo.getObject(key,false,map);
if(_5dc){
_5dd=dojo.getObject(_5dc,false,_5d8).call(_5d8,_5dd,key);
}
return _5d7(_5dd,key).toString();
});
};
dojo.string.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["dojo.date.locale"]){
dojo._hasResource["dojo.date.locale"]=true;
dojo.provide("dojo.date.locale");
(function(){
function formatPattern(_5e0,_5e1,_5e2,_5e3){
return _5e3.replace(/([a-z])\1*/ig,function(_5e4){
var s,pad;
var c=_5e4.charAt(0);
var l=_5e4.length;
var _5e9=["abbr","wide","narrow"];
switch(c){
case "G":
s=_5e1[(l<4)?"eraAbbr":"eraNames"][_5e0.getFullYear()<0?0:1];
break;
case "y":
s=_5e0.getFullYear();
switch(l){
case 1:
break;
case 2:
if(!_5e2){
s=String(s);
s=s.substr(s.length-2);
break;
}
default:
pad=true;
}
break;
case "Q":
case "q":
s=Math.ceil((_5e0.getMonth()+1)/3);
pad=true;
break;
case "M":
var m=_5e0.getMonth();
if(l<3){
s=m+1;
pad=true;
}else{
var _5eb=["months","format",_5e9[l-3]].join("-");
s=_5e1[_5eb][m];
}
break;
case "w":
var _5ec=0;
s=dojo.date.locale._getWeekOfYear(_5e0,_5ec);
pad=true;
break;
case "d":
s=_5e0.getDate();
pad=true;
break;
case "D":
s=dojo.date.locale._getDayOfYear(_5e0);
pad=true;
break;
case "E":
var d=_5e0.getDay();
if(l<3){
s=d+1;
pad=true;
}else{
var _5ee=["days","format",_5e9[l-3]].join("-");
s=_5e1[_5ee][d];
}
break;
case "a":
var _5ef=(_5e0.getHours()<12)?"am":"pm";
s=_5e1[_5ef];
break;
case "h":
case "H":
case "K":
case "k":
var h=_5e0.getHours();
switch(c){
case "h":
s=(h%12)||12;
break;
case "H":
s=h;
break;
case "K":
s=(h%12);
break;
case "k":
s=h||24;
break;
}
pad=true;
break;
case "m":
s=_5e0.getMinutes();
pad=true;
break;
case "s":
s=_5e0.getSeconds();
pad=true;
break;
case "S":
s=Math.round(_5e0.getMilliseconds()*Math.pow(10,l-3));
pad=true;
break;
case "v":
case "z":
s=dojo.date.getTimezoneName(_5e0);
if(s){
break;
}
l=4;
case "Z":
var _5f1=_5e0.getTimezoneOffset();
var tz=[(_5f1<=0?"+":"-"),dojo.string.pad(Math.floor(Math.abs(_5f1)/60),2),dojo.string.pad(Math.abs(_5f1)%60,2)];
if(l==4){
tz.splice(0,0,"GMT");
tz.splice(3,0,":");
}
s=tz.join("");
break;
default:
throw new Error("dojo.date.locale.format: invalid pattern char: "+_5e3);
}
if(pad){
s=dojo.string.pad(s,l);
}
return s;
});
};
dojo.date.locale.format=function(_5f3,_5f4){
_5f4=_5f4||{};
var _5f5=dojo.i18n.normalizeLocale(_5f4.locale);
var _5f6=_5f4.formatLength||"short";
var _5f7=dojo.date.locale._getGregorianBundle(_5f5);
var str=[];
var _5f9=dojo.hitch(this,formatPattern,_5f3,_5f7,_5f4.fullYear);
if(_5f4.selector=="year"){
var year=_5f3.getFullYear();
if(_5f5.match(/^zh|^ja/)){
year+="年";
}
return year;
}
if(_5f4.selector!="time"){
var _5fb=_5f4.datePattern||_5f7["dateFormat-"+_5f6];
if(_5fb){
str.push(_processPattern(_5fb,_5f9));
}
}
if(_5f4.selector!="date"){
var _5fc=_5f4.timePattern||_5f7["timeFormat-"+_5f6];
if(_5fc){
str.push(_processPattern(_5fc,_5f9));
}
}
var _5fd=str.join(" ");
return _5fd;
};
dojo.date.locale.regexp=function(_5fe){
return dojo.date.locale._parseInfo(_5fe).regexp;
};
dojo.date.locale._parseInfo=function(_5ff){
_5ff=_5ff||{};
var _600=dojo.i18n.normalizeLocale(_5ff.locale);
var _601=dojo.date.locale._getGregorianBundle(_600);
var _602=_5ff.formatLength||"short";
var _603=_5ff.datePattern||_601["dateFormat-"+_602];
var _604=_5ff.timePattern||_601["timeFormat-"+_602];
var _605;
if(_5ff.selector=="date"){
_605=_603;
}else{
if(_5ff.selector=="time"){
_605=_604;
}else{
_605=_603+" "+_604;
}
}
var _606=[];
var re=_processPattern(_605,dojo.hitch(this,_buildDateTimeRE,_606,_601,_5ff));
return {regexp:re,tokens:_606,bundle:_601};
};
dojo.date.locale.parse=function(_608,_609){
var info=dojo.date.locale._parseInfo(_609);
var _60b=info.tokens,_60c=info.bundle;
var re=new RegExp("^"+info.regexp+"$",info.strict?"":"i");
var _60e=re.exec(_608);
if(!_60e){
return null;
}
var _60f=["abbr","wide","narrow"];
var _610=[1970,0,1,0,0,0,0];
var amPm="";
var _612=dojo.every(_60e,function(v,i){
if(!i){
return true;
}
var _615=_60b[i-1];
var l=_615.length;
switch(_615.charAt(0)){
case "y":
if(l!=2&&_609.strict){
_610[0]=v;
}else{
if(v<100){
v=Number(v);
var year=""+new Date().getFullYear();
var _618=year.substring(0,2)*100;
var _619=Math.min(Number(year.substring(2,4))+20,99);
var num=(v<_619)?_618+v:_618-100+v;
_610[0]=num;
}else{
if(_609.strict){
return false;
}
_610[0]=v;
}
}
break;
case "M":
if(l>2){
var _61b=_60c["months-format-"+_60f[l-3]].concat();
if(!_609.strict){
v=v.replace(".","").toLowerCase();
_61b=dojo.map(_61b,function(s){
return s.replace(".","").toLowerCase();
});
}
v=dojo.indexOf(_61b,v);
if(v==-1){
return false;
}
}else{
v--;
}
_610[1]=v;
break;
case "E":
case "e":
var days=_60c["days-format-"+_60f[l-3]].concat();
if(!_609.strict){
v=v.toLowerCase();
days=dojo.map(days,function(d){
return d.toLowerCase();
});
}
v=dojo.indexOf(days,v);
if(v==-1){
return false;
}
break;
case "D":
_610[1]=0;
case "d":
_610[2]=v;
break;
case "a":
var am=_609.am||_60c.am;
var pm=_609.pm||_60c.pm;
if(!_609.strict){
var _621=/\./g;
v=v.replace(_621,"").toLowerCase();
am=am.replace(_621,"").toLowerCase();
pm=pm.replace(_621,"").toLowerCase();
}
if(_609.strict&&v!=am&&v!=pm){
return false;
}
amPm=(v==pm)?"p":(v==am)?"a":"";
break;
case "K":
if(v==24){
v=0;
}
case "h":
case "H":
case "k":
if(v>23){
return false;
}
_610[3]=v;
break;
case "m":
_610[4]=v;
break;
case "s":
_610[5]=v;
break;
case "S":
_610[6]=v;
}
return true;
});
var _622=+_610[3];
if(amPm==="p"&&_622<12){
_610[3]=_622+12;
}else{
if(amPm==="a"&&_622==12){
_610[3]=0;
}
}
var _623=new Date(_610[0],_610[1],_610[2],_610[3],_610[4],_610[5],_610[6]);
if(_609.strict){
_623.setFullYear(_610[0]);
}
var _624=_60b.join(""),_625=_624.indexOf("d")!=-1,_626=_624.indexOf("M")!=-1;
if(!_612||(_626&&_623.getMonth()>_610[1])||(_625&&_623.getDate()>_610[2])){
return null;
}
if((_626&&_623.getMonth()<_610[1])||(_625&&_623.getDate()<_610[2])){
_623=dojo.date.add(_623,"hour",1);
}
return _623;
};
function _processPattern(_627,_628,_629,_62a){
var _62b=function(x){
return x;
};
_628=_628||_62b;
_629=_629||_62b;
_62a=_62a||_62b;
var _62d=_627.match(/(''|[^'])+/g);
var _62e=_627.charAt(0)=="'";
dojo.forEach(_62d,function(_62f,i){
if(!_62f){
_62d[i]="";
}else{
_62d[i]=(_62e?_629:_628)(_62f);
_62e=!_62e;
}
});
return _62a(_62d.join(""));
};
function _buildDateTimeRE(_631,_632,_633,_634){
_634=dojo.regexp.escapeString(_634);
if(!_633.strict){
_634=_634.replace(" a"," ?a");
}
return _634.replace(/([a-z])\1*/ig,function(_635){
var s;
var c=_635.charAt(0);
var l=_635.length;
var p2="",p3="";
if(_633.strict){
if(l>1){
p2="0"+"{"+(l-1)+"}";
}
if(l>2){
p3="0"+"{"+(l-2)+"}";
}
}else{
p2="0?";
p3="0{0,2}";
}
switch(c){
case "y":
s="\\d{2,4}";
break;
case "M":
s=(l>2)?"\\S+?":p2+"[1-9]|1[0-2]";
break;
case "D":
s=p2+"[1-9]|"+p3+"[1-9][0-9]|[12][0-9][0-9]|3[0-5][0-9]|36[0-6]";
break;
case "d":
s="[12]\\d|"+p2+"[1-9]|3[01]";
break;
case "w":
s=p2+"[1-9]|[1-4][0-9]|5[0-3]";
break;
case "E":
s="\\S+";
break;
case "h":
s=p2+"[1-9]|1[0-2]";
break;
case "k":
s=p2+"\\d|1[01]";
break;
case "H":
s=p2+"\\d|1\\d|2[0-3]";
break;
case "K":
s=p2+"[1-9]|1\\d|2[0-4]";
break;
case "m":
case "s":
s="[0-5]\\d";
break;
case "S":
s="\\d{"+l+"}";
break;
case "a":
var am=_633.am||_632.am||"AM";
var pm=_633.pm||_632.pm||"PM";
if(_633.strict){
s=am+"|"+pm;
}else{
s=am+"|"+pm;
if(am!=am.toLowerCase()){
s+="|"+am.toLowerCase();
}
if(pm!=pm.toLowerCase()){
s+="|"+pm.toLowerCase();
}
if(s.indexOf(".")!=-1){
s+="|"+s.replace(/\./g,"");
}
}
s=s.replace(/\./g,"\\.");
break;
default:
s=".*";
}
if(_631){
_631.push(_635);
}
return "("+s+")";
}).replace(/[\xa0 ]/g,"[\\s\\xa0]");
};
})();
(function(){
var _63d=[];
dojo.date.locale.addCustomFormats=function(_63e,_63f){
_63d.push({pkg:_63e,name:_63f});
};
dojo.date.locale._getGregorianBundle=function(_640){
var _641={};
dojo.forEach(_63d,function(desc){
var _643=dojo.i18n.getLocalization(desc.pkg,desc.name,_640);
_641=dojo.mixin(_641,_643);
},this);
return _641;
};
})();
dojo.date.locale.addCustomFormats("dojo.cldr","gregorian");
dojo.date.locale.getNames=function(item,type,use,_647){
var _648;
var _649=dojo.date.locale._getGregorianBundle(_647);
var _64a=[item,use,type];
if(use=="standAlone"){
var key=_64a.join("-");
_648=_649[key];
if(_648[0]==1){
_648=undefined;
}
}
_64a[1]="format";
return (_648||_649[_64a.join("-")]).concat();
};
dojo.date.locale.isWeekend=function(_64c,_64d){
var _64e=dojo.cldr.supplemental.getWeekend(_64d);
var day=(_64c||new Date()).getDay();
if(_64e.end<_64e.start){
_64e.end+=7;
if(day<_64e.start){
day+=7;
}
}
return day>=_64e.start&&day<=_64e.end;
};
dojo.date.locale._getDayOfYear=function(_650){
return dojo.date.difference(new Date(_650.getFullYear(),0,1,_650.getHours()),_650)+1;
};
dojo.date.locale._getWeekOfYear=function(_651,_652){
if(arguments.length==1){
_652=0;
}
var _653=new Date(_651.getFullYear(),0,1).getDay();
var adj=(_653-_652+7)%7;
var week=Math.floor((dojo.date.locale._getDayOfYear(_651)+adj-1)/7);
if(_653==_652){
week++;
}
return week;
};
}
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 _656=dojo.doc;
if(_656.selection){
var s=_656.selection;
if(s.type=="Text"){
return !s.createRange().htmlText.length;
}else{
return !s.createRange().length;
}
}else{
var _658=dojo.global;
var _659=_658.getSelection();
if(dojo.isString(_659)){
return !_659;
}else{
return _659.isCollapsed||!_659.toString();
}
}
},getBookmark:function(){
var _65a,_65b=dojo.doc.selection;
if(_65b){
var _65c=_65b.createRange();
if(_65b.type.toUpperCase()=="CONTROL"){
if(_65c.length){
_65a=[];
var i=0,len=_65c.length;
while(i<len){
_65a.push(_65c.item(i++));
}
}else{
_65a=null;
}
}else{
_65a=_65c.getBookmark();
}
}else{
if(window.getSelection){
_65b=dojo.global.getSelection();
if(_65b){
_65c=_65b.getRangeAt(0);
_65a=_65c.cloneRange();
}
}else{
console.warn("No idea how to store the current selection for this browser!");
}
}
return _65a;
},moveToBookmark:function(_65f){
var _660=dojo.doc;
if(_660.selection){
var _661;
if(dojo.isArray(_65f)){
_661=_660.body.createControlRange();
dojo.forEach(_65f,function(n){
_661.addElement(n);
});
}else{
_661=_660.selection.createRange();
_661.moveToBookmark(_65f);
}
_661.select();
}else{
var _663=dojo.global.getSelection&&dojo.global.getSelection();
if(_663&&_663.removeAllRanges){
_663.removeAllRanges();
_663.addRange(_65f);
}else{
console.warn("No idea how to restore selection for this browser!");
}
}
},getFocus:function(menu,_665){
return {node:menu&&dojo.isDescendant(dijit._curFocus,menu.domNode)?dijit._prevFocus:dijit._curFocus,bookmark:!dojo.withGlobal(_665||dojo.global,dijit.isCollapsed)?dojo.withGlobal(_665||dojo.global,dijit.getBookmark):null,openedForWindow:_665};
},focus:function(_666){
if(!_666){
return;
}
var node="node" in _666?_666.node:_666,_668=_666.bookmark,_669=_666.openedForWindow;
if(node){
var _66a=(node.tagName.toLowerCase()=="iframe")?node.contentWindow:node;
if(_66a&&_66a.focus){
try{
_66a.focus();
}
catch(e){
}
}
dijit._onFocusNode(node);
}
if(_668&&dojo.withGlobal(_669||dojo.global,dijit.isCollapsed)){
if(_669){
_669.focus();
}
try{
dojo.withGlobal(_669||dojo.global,dijit.moveToBookmark,null,[_668]);
}
catch(e){
}
}
},_activeStack:[],registerWin:function(_66b){
if(!_66b){
_66b=window;
}
dojo.connect(_66b.document,"onmousedown",function(evt){
dijit._justMouseDowned=true;
setTimeout(function(){
dijit._justMouseDowned=false;
},0);
dijit._onTouchNode(evt.target||evt.srcElement);
});
var doc=_66b.document;
if(doc){
if(dojo.isIE){
doc.attachEvent("onactivate",function(evt){
if(evt.srcElement.tagName.toLowerCase()!="#document"){
dijit._onFocusNode(evt.srcElement);
}
});
doc.attachEvent("ondeactivate",function(evt){
dijit._onBlurNode(evt.srcElement);
});
}else{
doc.addEventListener("focus",function(evt){
dijit._onFocusNode(evt.target);
},true);
doc.addEventListener("blur",function(evt){
dijit._onBlurNode(evt.target);
},true);
}
}
doc=null;
},_onBlurNode:function(node){
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(node){
if(dijit._clearActiveWidgetsTimer){
clearTimeout(dijit._clearActiveWidgetsTimer);
delete dijit._clearActiveWidgetsTimer;
}
var _674=[];
try{
while(node){
if(node.dijitPopupParent){
node=dijit.byId(node.dijitPopupParent).domNode;
}else{
if(node.tagName&&node.tagName.toLowerCase()=="body"){
if(node===dojo.body()){
break;
}
node=dijit.getDocumentWindow(node.ownerDocument).frameElement;
}else{
var id=node.getAttribute&&node.getAttribute("widgetId");
if(id){
_674.unshift(id);
}
node=node.parentNode;
}
}
}
}
catch(e){
}
dijit._setStack(_674);
},_onFocusNode:function(node){
if(!node){
return;
}
if(node.nodeType==9){
return;
}
if(node.nodeType==9){
var _677=dijit.getDocumentWindow(node).frameElement;
if(!_677){
return;
}
node=_677;
}
dijit._onTouchNode(node);
if(node==dijit._curFocus){
return;
}
if(dijit._curFocus){
dijit._prevFocus=dijit._curFocus;
}
dijit._curFocus=node;
dojo.publish("focusNode",[node]);
},_setStack:function(_678){
var _679=dijit._activeStack;
dijit._activeStack=_678;
for(var _67a=0;_67a<Math.min(_679.length,_678.length);_67a++){
if(_679[_67a]!=_678[_67a]){
break;
}
}
for(var i=_679.length-1;i>=_67a;i--){
var _67c=dijit.byId(_679[i]);
if(_67c){
_67c._focused=false;
_67c._hasBeenBlurred=true;
if(_67c._onBlur){
_67c._onBlur();
}
if(_67c._setStateClass){
_67c._setStateClass();
}
dojo.publish("widgetBlur",[_67c]);
}
}
for(i=_67a;i<_678.length;i++){
_67c=dijit.byId(_678[i]);
if(_67c){
_67c._focused=true;
if(_67c._onFocus){
_67c._onFocus();
}
if(_67c._setStateClass){
_67c._setStateClass();
}
dojo.publish("widgetFocus",[_67c]);
}
}
}});
dojo.addOnLoad(dijit.registerWin);
}
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(_67d){
if(this._hash[_67d.id]){
throw new Error("Tried to register widget with id=="+_67d.id+" but that id is already registered");
}
this._hash[_67d.id]=_67d;
},remove:function(id){
delete this._hash[id];
},forEach:function(func){
for(var id in this._hash){
func(this._hash[id]);
}
},filter:function(_681){
var res=new dijit.WidgetSet();
this.forEach(function(_683){
if(_681(_683)){
res.add(_683);
}
});
return res;
},byId:function(id){
return this._hash[id];
},byClass:function(cls){
return this.filter(function(_686){
return _686.declaredClass==cls;
});
}});
dijit.registry=new dijit.WidgetSet();
dijit._widgetTypeCtr={};
dijit.getUniqueId=function(_687){
var id;
do{
id=_687+"_"+(_687 in dijit._widgetTypeCtr?++dijit._widgetTypeCtr[_687]:dijit._widgetTypeCtr[_687]=0);
}while(dijit.byId(id));
return id;
};
if(dojo.isIE){
dojo.addOnWindowUnload(function(){
dijit.registry.forEach(function(_689){
_689.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 _68e=dojo.style(elem);
return (_68e.visibility!="hidden")&&(_68e.visibility!="collapsed")&&(_68e.display!="none")&&(dojo.attr(elem,"type")!="hidden");
};
dijit.isTabNavigable=function(elem){
if(dojo.hasAttr(elem,"disabled")){
return false;
}
var _690=dojo.hasAttr(elem,"tabindex");
var _691=dojo.attr(elem,"tabindex");
if(_690&&_691>=0){
return true;
}
var name=elem.nodeName.toLowerCase();
if(((name=="a"&&dojo.hasAttr(elem,"href"))||dijit._tabElements[name])&&(!_690||_691>=0)){
return true;
}
return false;
};
dijit._getTabNavigable=function(root){
var _694,last,_696,_697,_698,_699;
var _69a=function(_69b){
dojo.query("> *",_69b).forEach(function(_69c){
var _69d=dijit._isElementShown(_69c);
if(_69d&&dijit.isTabNavigable(_69c)){
var _69e=dojo.attr(_69c,"tabindex");
if(!dojo.hasAttr(_69c,"tabindex")||_69e==0){
if(!_694){
_694=_69c;
}
last=_69c;
}else{
if(_69e>0){
if(!_696||_69e<_697){
_697=_69e;
_696=_69c;
}
if(!_698||_69e>=_699){
_699=_69e;
_698=_69c;
}
}
}
}
if(_69d&&_69c.nodeName.toUpperCase()!="SELECT"){
_69a(_69c);
}
});
};
if(dijit._isElementShown(root)){
_69a(root);
}
return {first:_694,last:last,lowest:_696,highest:_698};
};
dijit.getFirstInTabbingOrder=function(root){
var _6a0=dijit._getTabNavigable(dojo.byId(root));
return _6a0.lowest?_6a0.lowest:_6a0.first;
};
dijit.getLastInTabbingOrder=function(root){
var _6a2=dijit._getTabNavigable(dojo.byId(root));
return _6a2.last?_6a2.last:_6a2.highest;
};
dijit.defaultDuration=dojo.config["defaultDuration"]||200;
}
if(!dojo._hasResource["dojo.AdapterRegistry"]){
dojo._hasResource["dojo.AdapterRegistry"]=true;
dojo.provide("dojo.AdapterRegistry");
dojo.AdapterRegistry=function(_6a3){
this.pairs=[];
this.returnWrappers=_6a3||false;
};
dojo.extend(dojo.AdapterRegistry,{register:function(name,_6a5,wrap,_6a7,_6a8){
this.pairs[((_6a8)?"unshift":"push")]([name,_6a5,wrap,_6a7]);
},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 _6ae=dojo.global;
var _6af=dojo.doc;
var w=0,h=0;
var de=_6af.documentElement;
var dew=de.clientWidth,deh=de.clientHeight;
if(dojo.isMozilla){
var minw,minh,maxw,maxh;
var dbw=_6af.body.clientWidth;
if(dbw>dew){
minw=dew;
maxw=dbw;
}else{
maxw=dew;
minw=dbw;
}
var dbh=_6af.body.clientHeight;
if(dbh>deh){
minh=deh;
maxh=dbh;
}else{
maxh=deh;
minh=dbh;
}
w=(maxw>_6ae.innerWidth)?minw:maxw;
h=(maxh>_6ae.innerHeight)?minh:maxh;
}else{
if(!dojo.isOpera&&_6ae.innerWidth){
w=_6ae.innerWidth;
h=_6ae.innerHeight;
}else{
if(dojo.isIE&&de&&deh){
w=dew;
h=deh;
}else{
if(dojo.body().clientWidth){
w=dojo.body().clientWidth;
h=dojo.body().clientHeight;
}
}
}
}
var _6bb=dojo._docScroll();
return {w:w,h:h,l:_6bb.x,t:_6bb.y};
};
dijit.placeOnScreen=function(node,pos,_6be,_6bf){
var _6c0=dojo.map(_6be,function(_6c1){
return {corner:_6c1,pos:pos};
});
return dijit._place(node,_6c0);
};
dijit._place=function(node,_6c3,_6c4){
var view=dijit.getViewport();
if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){
dojo.body().appendChild(node);
}
var best=null;
dojo.some(_6c3,function(_6c7){
var _6c8=_6c7.corner;
var pos=_6c7.pos;
if(_6c4){
_6c4(node,_6c7.aroundCorner,_6c8);
}
var _6ca=node.style;
var _6cb=_6ca.display;
var _6cc=_6ca.visibility;
_6ca.visibility="hidden";
_6ca.display="";
var mb=dojo.marginBox(node);
_6ca.display=_6cb;
_6ca.visibility=_6cc;
var _6ce=(_6c8.charAt(1)=="L"?pos.x:Math.max(view.l,pos.x-mb.w)),_6cf=(_6c8.charAt(0)=="T"?pos.y:Math.max(view.t,pos.y-mb.h)),endX=(_6c8.charAt(1)=="L"?Math.min(view.l+view.w,_6ce+mb.w):pos.x),endY=(_6c8.charAt(0)=="T"?Math.min(view.t+view.h,_6cf+mb.h):pos.y),_6d2=endX-_6ce,_6d3=endY-_6cf,_6d4=(mb.w-_6d2)+(mb.h-_6d3);
if(best==null||_6d4<best.overflow){
best={corner:_6c8,aroundCorner:_6c7.aroundCorner,x:_6ce,y:_6cf,w:_6d2,h:_6d3,overflow:_6d4};
}
return !_6d4;
});
node.style.left=best.x+"px";
node.style.top=best.y+"px";
if(best.overflow&&_6c4){
_6c4(node,best.aroundCorner,best.corner);
}
return best;
};
dijit.placeOnScreenAroundNode=function(node,_6d6,_6d7,_6d8){
_6d6=dojo.byId(_6d6);
var _6d9=_6d6.style.display;
_6d6.style.display="";
var _6da=_6d6.offsetWidth;
var _6db=_6d6.offsetHeight;
var _6dc=dojo.coords(_6d6,true);
_6d6.style.display=_6d9;
return dijit._placeOnScreenAroundRect(node,_6dc.x,_6dc.y,_6da,_6db,_6d7,_6d8);
};
dijit.placeOnScreenAroundRectangle=function(node,_6de,_6df,_6e0){
return dijit._placeOnScreenAroundRect(node,_6de.x,_6de.y,_6de.width,_6de.height,_6df,_6e0);
};
dijit._placeOnScreenAroundRect=function(node,x,y,_6e4,_6e5,_6e6,_6e7){
var _6e8=[];
for(var _6e9 in _6e6){
_6e8.push({aroundCorner:_6e9,corner:_6e6[_6e9],pos:{x:x+(_6e9.charAt(1)=="L"?0:_6e4),y:y+(_6e9.charAt(0)=="T"?0:_6e5)}});
}
return dijit._place(node,_6e8,_6e7);
};
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,_6ef,_6f0,_6f1){
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 _6f4=[],_6f5=1000,_6f6=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 _6fa=args.popup,_6fb=args.orient||{"BL":"TL","TL":"BL"},_6fc=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+_6f6++);
var _6fe=dojo.doc.createElement("div");
dijit.setWaiRole(_6fe,"presentation");
_6fe.id=id;
_6fe.className="dijitPopup";
_6fe.style.zIndex=_6f5+_6f4.length;
_6fe.style.left=_6fe.style.top="0px";
_6fe.style.visibility="hidden";
if(args.parent){
_6fe.dijitPopupParent=args.parent.id;
}
dojo.body().appendChild(_6fe);
var s=_6fa.domNode.style;
s.display="";
s.visibility="";
s.position="";
_6fe.appendChild(_6fa.domNode);
var _700=new dijit.BackgroundIframe(_6fe);
var best=_6fc?dijit.placeOnScreenAroundElement(_6fe,_6fc,_6fb,_6fa.orient?dojo.hitch(_6fa,"orient"):null):dijit.placeOnScreen(_6fe,args,_6fb=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"]);
_6fe.style.visibility="visible";
var _702=[];
var _703=function(){
for(var pi=_6f4.length-1;pi>0&&_6f4[pi].parent===_6f4[pi-1].widget;pi--){
}
return _6f4[pi];
};
_702.push(dojo.connect(_6fe,"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 _706=_703();
if(_706&&_706.onCancel){
_706.onCancel();
}
}
}
}));
if(_6fa.onCancel){
_702.push(dojo.connect(_6fa,"onCancel",null,args.onCancel));
}
_702.push(dojo.connect(_6fa,_6fa.onExecute?"onExecute":"onChange",null,function(){
var _707=_703();
if(_707&&_707.onExecute){
_707.onExecute();
}
}));
_6f4.push({wrapper:_6fe,iframe:_700,widget:_6fa,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_702});
if(_6fa.onOpen){
_6fa.onOpen(best);
}
return best;
};
this.close=function(_708){
while(dojo.some(_6f4,function(elem){
return elem.widget==_708;
})){
var top=_6f4.pop(),_70b=top.wrapper,_70c=top.iframe,_70d=top.widget,_70e=top.onClose;
if(_70d.onClose){
_70d.onClose();
}
dojo.forEach(top.handlers,dojo.disconnect);
if(!_70d||!_70d.domNode){
return;
}
this.prepare(_70d.domNode);
_70c.destroy();
dojo._destroyElement(_70b);
if(_70e){
_70e();
}
}
};
}();
dijit._frames=new function(){
var _70f=[];
this.pop=function(){
var _710;
if(_70f.length){
_710=_70f.pop();
_710.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\");'>";
_710=dojo.doc.createElement(html);
}else{
_710=dojo.doc.createElement("iframe");
_710.src="javascript:\"\"";
_710.className="dijitBackgroundIframe";
}
_710.tabIndex=-1;
dojo.body().appendChild(_710);
}
return _710;
};
this.push=function(_713){
_713.style.display="none";
if(dojo.isIE){
_713.style.removeExpression("width");
_713.style.removeExpression("height");
}
_70f.push(_713);
};
}();
if(dojo.isIE<7){
dojo.addOnLoad(function(){
var f=dijit._frames;
dojo.forEach([f.pop()],f.push);
});
}
dijit.BackgroundIframe=function(node){
if(!node.id){
throw new Error("no id");
}
if((dojo.isIE&&dojo.isIE<7)||(dojo.isFF&&dojo.isFF<3&&dojo.hasClass(dojo.body(),"dijit_a11y"))){
var _716=dijit._frames.pop();
node.appendChild(_716);
if(dojo.isIE){
_716.style.setExpression("width",dojo._scopeName+".doc.getElementById('"+node.id+"').offsetWidth");
_716.style.setExpression("height",dojo._scopeName+".doc.getElementById('"+node.id+"').offsetHeight");
}
this.iframe=_716;
}
};
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=node.ownerDocument||dojo.doc;
var body=doc.body||dojo.body();
var html=doc.documentElement||body.parentNode;
if((!((dojo.isFF&&dojo.isFF>=3)||dojo.isIE||dojo.isSafari)||node==body||node==html)&&(typeof node.scrollIntoView=="function")){
node.scrollIntoView(false);
return;
}
var ltr=dojo._isBodyLtr();
var _71c=dojo.isIE&&dojo.isIE>=8&&!_71d;
var rtl=!ltr&&!_71c;
var _71f=body;
var _71d=doc.compatMode=="BackCompat";
if(_71d){
html._offsetWidth=html._clientWidth=body._offsetWidth=body.clientWidth;
html._offsetHeight=html._clientHeight=body._offsetHeight=body.clientHeight;
}else{
if(dojo.isSafari){
body._offsetWidth=body._clientWidth=html.clientWidth;
body._offsetHeight=body._clientHeight=html.clientHeight;
}else{
_71f=html;
}
html._offsetHeight=html.clientHeight;
html._offsetWidth=html.clientWidth;
}
function isFixedPosition(_720){
var ie=dojo.isIE;
return ((ie&&(ie<=6||(ie>=7&&_71d)))?false:(dojo.style(_720,"position").toLowerCase()=="fixed"));
};
function addPseudoAttrs(_722){
var _723=_722.parentNode;
var _724=_722.offsetParent;
if(_724==null||isFixedPosition(_722)){
_724=html;
_723=(_722==body)?html:null;
}
_722._offsetParent=_724;
_722._parent=_723;
var bp=dojo._getBorderExtents(_722);
_722._borderStart={H:(_71c&&!ltr)?(bp.w-bp.l):bp.l,V:bp.t};
_722._borderSize={H:bp.w,V:bp.h};
_722._scrolledAmount={H:_722.scrollLeft,V:_722.scrollTop};
_722._offsetSize={H:_722._offsetWidth||_722.offsetWidth,V:_722._offsetHeight||_722.offsetHeight};
_722._offsetStart={H:(_71c&&!ltr)?_724.clientWidth-_722.offsetLeft-_722._offsetSize.H:_722.offsetLeft,V:_722.offsetTop};
_722._clientSize={H:_722._clientWidth||_722.clientWidth,V:_722._clientHeight||_722.clientHeight};
if(_722!=body&&_722!=html&&_722!=node){
for(var dir in _722._offsetSize){
var _727=_722._offsetSize[dir]-_722._clientSize[dir]-_722._borderSize[dir];
var _728=_722._clientSize[dir]>0&&_727>0;
if(_728){
_722._offsetSize[dir]-=_727;
if(dojo.isIE&&rtl&&dir=="H"){
_722._offsetStart[dir]+=_727;
}
}
}
}
};
var _729=node;
while(_729!=null){
if(isFixedPosition(_729)){
node.scrollIntoView(false);
return;
}
addPseudoAttrs(_729);
_729=_729._parent;
}
if(dojo.isIE&&node._parent){
var _72a=node._offsetParent;
node._offsetStart.H+=_72a._borderStart.H;
node._offsetStart.V+=_72a._borderStart.V;
}
if(dojo.isIE&&dojo.isIE>=7&&_71f==html&&rtl&&body._offsetStart&&body._offsetStart.H==0){
var _72b=html.scrollWidth-html._offsetSize.H;
if(_72b>0){
body._offsetStart.H=-_72b;
}
}
if(dojo.isIE&&dojo.isIE<=6&&!_71d){
html._offsetSize.H+=html._borderSize.H;
html._offsetSize.V+=html._borderSize.V;
}
if(rtl&&body._offsetStart&&_71f==html&&html._scrolledAmount){
var ofs=body._offsetStart.H;
if(ofs<0){
html._scrolledAmount.H+=ofs;
body._offsetStart.H=0;
}
}
_729=node;
while(_729){
var _72d=_729._parent;
if(!_72d){
break;
}
if(_72d.tagName=="TD"){
var _72e=_72d._parent._parent._parent;
if(_72d!=_729._offsetParent&&_72d._offsetParent!=_729._offsetParent){
_72d=_72e;
}
}
var _72f=_729._offsetParent==_72d;
for(var dir in _729._offsetStart){
var _731=dir=="H"?"V":"H";
if(rtl&&dir=="H"&&(_72d!=html)&&(_72d!=body)&&(dojo.isIE||dojo.isSafari)&&_72d._clientSize.H>0&&_72d.scrollWidth>_72d._clientSize.H){
var _732=_72d.scrollWidth-_72d._clientSize.H;
if(_732>0){
_72d._scrolledAmount.H-=_732;
}
}
if(_72d._offsetParent.tagName=="TABLE"){
if(dojo.isIE){
_72d._offsetStart[dir]-=_72d._offsetParent._borderStart[dir];
_72d._borderStart[dir]=_72d._borderSize[dir]=0;
}else{
_72d._offsetStart[dir]+=_72d._offsetParent._borderStart[dir];
}
}
if(dojo.isIE){
_72d._offsetStart[dir]+=_72d._offsetParent._borderStart[dir];
}
var _733=_729._offsetStart[dir]-_72d._scrolledAmount[dir]-(_72f?0:_72d._offsetStart[dir])-_72d._borderStart[dir];
var _734=_733+_729._offsetSize[dir]-_72d._offsetSize[dir]+_72d._borderSize[dir];
var _735=(dir=="H")?"scrollLeft":"scrollTop";
var _736=dir=="H"&&rtl;
var _737=_736?-_734:_733;
var _738=_736?-_733:_734;
var _739=(_737*_738<=0)?0:Math[(_737<0)?"max":"min"](_737,_738);
if(_739!=0){
var _73a=_72d[_735];
_72d[_735]+=(_736)?-_739:_739;
var _73b=_72d[_735]-_73a;
}
if(_72f){
_729._offsetStart[dir]+=_72d._offsetStart[dir];
}
_729._offsetStart[dir]-=_72d[_735];
}
_729._parent=_72d._parent;
_729._offsetParent=_72d._offsetParent;
}
_72d=node;
var next;
while(_72d&&_72d.removeAttribute){
next=_72d.parentNode;
_72d.removeAttribute("_offsetParent");
_72d.removeAttribute("_parent");
_72d=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;
var ie=d.isIE;
var _73f=d.isOpera;
var maj=Math.floor;
var ff=d.isFF;
var _742=d.boxModel.replace(/-/,"");
var _743={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_iequirks:ie&&d.isQuirks,dj_opera:_73f,dj_opera8:maj(_73f)==8,dj_opera9:maj(_73f)==9,dj_khtml:d.isKhtml,dj_safari:d.isSafari,dj_gecko:d.isMozilla,dj_ff2:maj(ff)==2,dj_ff3:maj(ff)==3};
_743["dj_"+_742]=true;
var html=dojo.doc.documentElement;
for(var p in _743){
if(_743[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 _743){
if(_743[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,_748,node,_74a,obj,_74c,_74d){
if(obj!=this._obj){
this.stop();
this._initialDelay=_74d||500;
this._subsequentDelay=_74c||0.9;
this._obj=obj;
this._evt=evt;
this._node=node;
this._currentTimeout=-1;
this._count=-1;
this._callback=dojo.hitch(_748,_74a);
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,_74f,_750,_751,_752,_753){
if(_74f.keyCode){
_74f.charOrCode=_74f.keyCode;
dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");
}else{
if(_74f.charCode){
_74f.charOrCode=String.fromCharCode(_74f.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==_74f.charOrCode&&(_74f.ctrlKey===undefined||_74f.ctrlKey==evt.ctrlKey)&&(_74f.altKey===undefined||_74f.altKey==evt.ctrlKey)&&(_74f.shiftKey===undefined||_74f.shiftKey==evt.ctrlKey)){
dojo.stopEvent(evt);
dijit.typematic.trigger(_74f,_750,node,_751,_74f,_752,_753);
}else{
if(dijit.typematic._obj==_74f){
dijit.typematic.stop();
}
}
}),dojo.connect(node,"onkeyup",this,function(evt){
if(dijit.typematic._obj==_74f){
dijit.typematic.stop();
}
})];
},addMouseListener:function(node,_757,_758,_759,_75a){
var dc=dojo.connect;
return [dc(node,"mousedown",this,function(evt){
dojo.stopEvent(evt);
dijit.typematic.trigger(evt,_757,node,_758,node,_759,_75a);
}),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,_757,node,_758,node,_759,_75a);
setTimeout(dojo.hitch(this,dijit.typematic.stop),50);
}
})];
},addListener:function(_761,_762,_763,_764,_765,_766,_767){
return this.addKeyListener(_762,_763,_764,_765,_766,_767).concat(this.addMouseListener(_761,_764,_765,_766,_767));
}};
}
if(!dojo._hasResource["dijit._base.wai"]){
dojo._hasResource["dijit._base.wai"]=true;
dojo.provide("dijit._base.wai");
dijit.wai={onload:function(){
var div=dojo.doc.createElement("div");
div.id="a11yTestNode";
div.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().appendChild(div);
var cs=dojo.getComputedStyle(div);
if(cs){
var _76a=cs.backgroundImage;
var _76b=(cs.borderTopColor==cs.borderRightColor)||(_76a!=null&&(_76a=="none"||_76a=="url(invalid-url:)"));
dojo[_76b?"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 _76e=this.getWaiRole(elem);
if(role){
return (_76e.indexOf(role)>-1);
}else{
return (_76e.length>0);
}
},getWaiRole:function(elem){
return dojo.trim((dojo.attr(elem,"role")||"").replace(this._XhtmlRoles,"").replace("wairole:",""));
},setWaiRole:function(elem,role){
var _772=dojo.attr(elem,"role")||"";
if(dojo.isFF<3||!this._XhtmlRoles.test(_772)){
dojo.attr(elem,"role",dojo.isFF<3?"wairole:"+role:role);
}else{
if((" "+_772+" ").indexOf(" "+role+" ")<0){
var _773=dojo.trim(_772.replace(this._XhtmlRoles,""));
var _774=dojo.trim(_772.replace(_773,""));
dojo.attr(elem,"role",_774+(_774?" ":"")+role);
}
}
},removeWaiRole:function(elem,role){
var _777=dojo.attr(elem,"role");
if(!_777){
return;
}
if(role){
var _778=dojo.isFF<3?"wairole:"+role:role;
var t=dojo.trim((" "+_777+" ").replace(" "+_778+" "," "));
dojo.attr(elem,"role",t);
}else{
elem.removeAttribute("role");
}
},hasWaiState:function(elem,_77b){
if(dojo.isFF<3){
return elem.hasAttributeNS("http://www.w3.org/2005/07/aaa",_77b);
}else{
return elem.hasAttribute?elem.hasAttribute("aria-"+_77b):!!elem.getAttribute("aria-"+_77b);
}
},getWaiState:function(elem,_77d){
if(dojo.isFF<3){
return elem.getAttributeNS("http://www.w3.org/2005/07/aaa",_77d);
}else{
var _77e=elem.getAttribute("aria-"+_77d);
return _77e?_77e:"";
}
},setWaiState:function(elem,_780,_781){
if(dojo.isFF<3){
elem.setAttributeNS("http://www.w3.org/2005/07/aaa","aaa:"+_780,_781);
}else{
elem.setAttribute("aria-"+_780,_781);
}
},removeWaiState:function(elem,_783){
if(dojo.isFF<3){
elem.removeAttributeNS("http://www.w3.org/2005/07/aaa",_783);
}else{
elem.removeAttribute("aria-"+_783);
}
}});
}
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(_784,_785){
if(_784&&dojo.isFunction(_784._onConnect)){
_784._onConnect(_785);
}
});
dijit._connectOnUseEventHandler=function(_786){
};
dijit._lastKeyDownNode=null;
if(dojo.isIE){
dojo.doc.attachEvent("onkeydown",function(evt){
dijit._lastKeyDownNode=evt.srcElement;
});
}else{
dojo.doc.addEventListener("keydown",function(evt){
dijit._lastKeyDownNode=evt.target;
},true);
}
(function(){
var _789={};
var _78a=function(dc){
if(!_789[dc]){
var r=[];
var _78d;
var _78e=dojo.getObject(dc).prototype;
for(var _78f in _78e){
if(dojo.isFunction(_78e[_78f])&&(_78d=_78f.match(/^_set([a-zA-Z]*)Attr$/))&&_78d[1]){
r.push(_78d[1].charAt(0).toLowerCase()+_78d[1].substr(1));
}
}
_789[dc]=r;
}
return _789[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(_790,_791){
this.create(_790,_791);
},create:function(_792,_793){
this.srcNodeRef=dojo.byId(_793);
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(_792){
this.params=_792;
dojo.mixin(this,_792);
}
this.postMixInProperties();
if(!this.id){
this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"));
}
dijit.registry.add(this);
this.buildRendering();
if(this.domNode){
this._applyAttributes();
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 _795=function(attr,_797){
if((_797.params&&attr in _797.params)||_797[attr]){
_797.attr(attr,_797[attr]);
}
};
for(var attr in this.attributeMap){
_795(attr,this);
}
dojo.forEach(_78a(this.declaredClass),function(a){
if(!(a in this.attributeMap)){
_795(a,this);
}
},this);
},postMixInProperties:function(){
},buildRendering:function(){
this.domNode=this.srcNodeRef||dojo.doc.createElement("div");
},postCreate:function(){
},startup:function(){
this._started=true;
},destroyRecursive:function(_79a){
this.destroyDescendants(_79a);
this.destroy(_79a);
},destroy:function(_79b){
this.uninitialize();
dojo.forEach(this._connects,function(_79c){
dojo.forEach(_79c,dojo.disconnect);
});
dojo.forEach(this._supportingWidgets||[],function(w){
if(w.destroy){
w.destroy();
}
});
this.destroyRendering(_79b);
dijit.registry.remove(this.id);
},destroyRendering:function(_79e){
if(this.bgIframe){
this.bgIframe.destroy(_79e);
delete this.bgIframe;
}
if(this.domNode){
if(!_79e){
dojo._destroyElement(this.domNode);
}
delete this.domNode;
}
if(this.srcNodeRef){
if(!_79e){
dojo._destroyElement(this.srcNodeRef);
}
delete this.srcNodeRef;
}
},destroyDescendants:function(_79f){
dojo.forEach(this.getDescendants(),function(_7a0){
if(_7a0.destroy){
_7a0.destroy(_79f);
}
});
},uninitialize:function(){
return false;
},onFocus:function(){
},onBlur:function(){
},_onFocus:function(e){
this.onFocus();
},_onBlur:function(){
this.onBlur();
},_onConnect:function(_7a2){
if(_7a2 in this._deferredConnects){
var _7a3=this[this._deferredConnects[_7a2]||"domNode"];
this.connect(_7a3,_7a2.toLowerCase(),this[_7a2]);
delete this._deferredConnects[_7a2];
}
},_setClassAttr:function(_7a4){
var _7a5=this[this.attributeMap["class"]||"domNode"];
dojo.removeClass(_7a5,this["class"]);
this["class"]=_7a4;
dojo.addClass(_7a5,_7a4);
},_setStyleAttr:function(_7a6){
var _7a7=this[this.attributeMap["style"]||"domNode"];
if(_7a7.style.cssText){
_7a7.style.cssText+="; "+_7a6;
}else{
_7a7.style.cssText=_7a6;
}
this["style"]=_7a6;
},setAttribute:function(attr,_7a9){
dojo.deprecated(this.declaredClass+"::setAttribute() is deprecated. Use attr() instead.","","2.0");
this.attr(attr,_7a9);
},_attrToDom:function(attr,_7ab){
var _7ac=this.attributeMap[attr];
dojo.forEach(dojo.isArray(_7ac)?_7ac:[_7ac],function(_7ad){
var _7ae=this[_7ad.node||_7ad||"domNode"];
var type=_7ad.type||"attribute";
switch(type){
case "attribute":
if(dojo.isFunction(_7ab)){
_7ab=dojo.hitch(this,_7ab);
}
if(/^on[A-Z][a-zA-Z]*$/.test(attr)){
attr=attr.toLowerCase();
}
dojo.attr(_7ae,attr,_7ab);
break;
case "innerHTML":
_7ae.innerHTML=_7ab;
break;
case "class":
dojo.removeClass(_7ae,this[attr]);
dojo.addClass(_7ae,_7ab);
break;
}
},this);
this[attr]=_7ab;
},attr:function(name,_7b1){
var args=arguments.length;
if(args==1&&!dojo.isString(name)){
for(var x in name){
this.attr(x,name[x]);
}
return this;
}
var _7b4=this._getAttrNames(name);
if(args==2){
if(this[_7b4.s]){
return this[_7b4.s](_7b1)||this;
}else{
if(name in this.attributeMap){
this._attrToDom(name,_7b1);
}
this[name]=_7b1;
}
return this;
}else{
if(this[_7b4.g]){
return this[_7b4.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 [];
}
},nodesWithKeyClick:["input","button"],connect:function(obj,_7ba,_7bb){
var d=dojo;
var dc=d.connect;
var _7be=[];
if(_7ba=="ondijitclick"){
if(!this.nodesWithKeyClick[obj.tagName.toLowerCase()]){
var m=d.hitch(this,_7bb);
_7be.push(dc(obj,"onkeydown",this,function(e){
if((e.keyCode==d.keys.ENTER||e.keyCode==d.keys.SPACE)&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){
dijit._lastKeyDownNode=e.target;
d.stopEvent(e);
}
}),dc(obj,"onkeyup",this,function(e){
if((e.keyCode==d.keys.ENTER||e.keyCode==d.keys.SPACE)&&e.target===dijit._lastKeyDownNode&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){
dijit._lastKeyDownNode=null;
return m(e);
}
}));
}
_7ba="onclick";
}
_7be.push(dc(obj,_7ba,this,_7bb));
this._connects.push(_7be);
return _7be;
},disconnect:function(_7c2){
for(var i=0;i<this._connects.length;i++){
if(this._connects[i]==_7c2){
dojo.forEach(_7c2,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(_7c4,_7c5){
if(_7c4["declaredClass"]&&_7c4["addChild"]){
_7c4.addChild(this,_7c5);
}else{
dojo.place(this.domNode,_7c4,_7c5);
}
return this;
}});
})();
}
if(!dojo._hasResource["dijit._Templated"]){
dojo._hasResource["dijit._Templated"]=true;
dojo.provide("dijit._Templated");
dojo.declare("dijit._Templated",null,{templateNode:null,templateString:null,templatePath:null,widgetsInTemplate:false,_skipNodeCache:false,_stringRepl:function(tmpl){
var _7c7=this.declaredClass,_7c8=this;
return dojo.string.substitute(tmpl,this,function(_7c9,key){
if(key.charAt(0)=="!"){
_7c9=_7c8[key.substr(1)];
}
if(typeof _7c9=="undefined"){
throw new Error(_7c7+" template:"+key);
}
if(_7c9==null){
return "";
}
return key.charAt(0)=="!"?_7c9:_7c9.toString().replace(/"/g,"&quot;");
},this);
},buildRendering:function(){
var _7cb=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);
var node;
if(dojo.isString(_7cb)){
node=dijit._Templated._createNodesFromText(this._stringRepl(_7cb))[0];
}else{
node=_7cb.cloneNode(true);
}
this.domNode=node;
this._attachTemplateNodes(node);
var _7cd=this.srcNodeRef;
if(_7cd&&_7cd.parentNode){
_7cd.parentNode.replaceChild(node,_7cd);
}
if(this.widgetsInTemplate){
var cw=(this._supportingWidgets=dojo.parser.parse(node));
this._attachTemplateNodes(cw,function(n,p){
return n[p];
});
}
this._fillContent(_7cd);
},_fillContent:function(_7d1){
var dest=this.containerNode;
if(_7d1&&dest){
while(_7d1.hasChildNodes()){
dest.appendChild(_7d1.firstChild);
}
}
},_attachTemplateNodes:function(_7d3,_7d4){
_7d4=_7d4||function(n,p){
return n.getAttribute(p);
};
var _7d7=dojo.isArray(_7d3)?_7d3:(_7d3.all||_7d3.getElementsByTagName("*"));
var x=dojo.isArray(_7d3)?0:-1;
var _7d9={};
for(;x<_7d7.length;x++){
var _7da=(x==-1)?_7d3:_7d7[x];
if(this.widgetsInTemplate&&_7d4(_7da,"dojoType")){
continue;
}
var _7db=_7d4(_7da,"dojoAttachPoint");
if(_7db){
var _7dc,_7dd=_7db.split(/\s*,\s*/);
while((_7dc=_7dd.shift())){
if(dojo.isArray(this[_7dc])){
this[_7dc].push(_7da);
}else{
this[_7dc]=_7da;
}
}
}
var _7de=_7d4(_7da,"dojoAttachEvent");
if(_7de){
var _7df,_7e0=_7de.split(/\s*,\s*/);
var trim=dojo.trim;
while((_7df=_7e0.shift())){
if(_7df){
var _7e2=null;
if(_7df.indexOf(":")!=-1){
var _7e3=_7df.split(":");
_7df=trim(_7e3[0]);
_7e2=trim(_7e3[1]);
}else{
_7df=trim(_7df);
}
if(!_7e2){
_7e2=_7df;
}
this.connect(_7da,_7df,_7e2);
}
}
}
var role=_7d4(_7da,"waiRole");
if(role){
dijit.setWaiRole(_7da,role);
}
var _7e5=_7d4(_7da,"waiState");
if(_7e5){
dojo.forEach(_7e5.split(/\s*,\s*/),function(_7e6){
if(_7e6.indexOf("-")!=-1){
var pair=_7e6.split("-");
dijit.setWaiState(_7da,pair[0],pair[1]);
}
});
}
}
}});
dijit._Templated._templateCache={};
dijit._Templated.getCachedTemplate=function(_7e8,_7e9,_7ea){
var _7eb=dijit._Templated._templateCache;
var key=_7e9||_7e8;
var _7ed=_7eb[key];
if(_7ed){
if(!_7ed.ownerDocument||_7ed.ownerDocument==dojo.doc){
return _7ed;
}
dojo._destroyElement(_7ed);
}
if(!_7e9){
_7e9=dijit._Templated._sanitizeTemplateString(dojo._getText(_7e8));
}
_7e9=dojo.string.trim(_7e9);
if(_7ea||_7e9.match(/\$\{([^\}]+)\}/g)){
return (_7eb[key]=_7e9);
}else{
return (_7eb[key]=dijit._Templated._createNodesFromText(_7e9)[0]);
}
};
dijit._Templated._sanitizeTemplateString=function(_7ee){
if(_7ee){
_7ee=_7ee.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");
var _7ef=_7ee.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_7ef){
_7ee=_7ef[1];
}
}else{
_7ee="";
}
return _7ee;
};
if(dojo.isIE){
dojo.addOnWindowUnload(function(){
var _7f0=dijit._Templated._templateCache;
for(var key in _7f0){
var _7f2=_7f0[key];
if(!isNaN(_7f2.nodeType)){
dojo._destroyElement(_7f2);
}
delete _7f0[key];
}
});
}
(function(){
var _7f3={cell:{re:/^<t[dh][\s\r\n>]/i,pre:"<table><tbody><tr>",post:"</tr></tbody></table>"},row:{re:/^<tr[\s\r\n>]/i,pre:"<table><tbody>",post:"</tbody></table>"},section:{re:/^<(thead|tbody|tfoot)[\s\r\n>]/i,pre:"<table>",post:"</table>"}};
var tn;
dijit._Templated._createNodesFromText=function(text){
if(tn&&tn.ownerDocument!=dojo.doc){
dojo._destroyElement(tn);
tn=undefined;
}
if(!tn){
tn=dojo.doc.createElement("div");
tn.style.display="none";
dojo.body().appendChild(tn);
}
var _7f6="none";
var _7f7=text.replace(/^\s+/,"");
for(var type in _7f3){
var map=_7f3[type];
if(map.re.test(_7f7)){
_7f6=type;
text=map.pre+text+map.post;
break;
}
}
tn.innerHTML=text;
if(tn.normalize){
tn.normalize();
}
var tag={cell:"tr",row:"tbody",section:"table"}[_7f6];
var _7fb=(typeof tag!="undefined")?tn.getElementsByTagName(tag)[0]:tn;
var _7fc=[];
while(_7fb.firstChild){
_7fc.push(_7fb.removeChild(_7fb.firstChild));
}
tn.innerHTML="";
return _7fc;
};
})();
dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});
}
if(!dojo._hasResource["dijit._Container"]){
dojo._hasResource["dijit._Container"]=true;
dojo.provide("dijit._Container");
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 _7ff=dijit.byId(id);
return _7ff.isContainer?_7ff:null;
}
}
return null;
},_getSibling:function(_800){
var node=this.domNode;
do{
node=node[_800+"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);
}});
dojo.declare("dijit._Container",null,{isContainer:true,buildRendering:function(){
this.inherited(arguments);
if(!this.containerNode){
this.containerNode=this.domNode;
}
},addChild:function(_804,_805){
var _806=this.containerNode;
if(_805&&typeof _805=="number"){
var _807=dojo.query("> [widgetId]",_806);
if(_807&&_807.length>=_805){
_806=_807[_805-1];
_805="after";
}
}
dojo.place(_804.domNode,_806,_805);
if(this._started&&!_804._started){
_804.startup();
}
},removeChild:function(_808){
if(typeof _808=="number"&&_808>0){
_808=this.getChildren()[_808];
}
if(!_808||!_808.domNode){
return;
}
var node=_808.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(_80c){
dojo.forEach(this.getChildren(),function(_80d){
_80d.destroyRecursive(_80c);
});
},_getSiblingOfChild:function(_80e,dir){
var node=_80e.domNode;
var _811=(dir>0?"nextSibling":"previousSibling");
do{
node=node[_811];
}while(node&&(node.nodeType!=1||!dijit.byNode(node)));
return node?dijit.byNode(node):null;
},getIndexOfChild:function(_812){
var _813=this.getChildren();
for(var i=0,c;c=_813[i];i++){
if(c==_812){
return i;
}
}
return -1;
}});
dojo.declare("dijit._KeyNavContainer",[dijit._Container],{_keyNavCodes:{},connectKeyNavHandlers:function(_816,_817){
var _818=this._keyNavCodes={};
var prev=dojo.hitch(this,this.focusPrev);
var next=dojo.hitch(this,this.focusNext);
dojo.forEach(_816,function(code){
_818[code]=prev;
});
dojo.forEach(_817,function(code){
_818[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(_81d,_81e){
dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);
this._startupChild(_81d);
},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 _81f=this._getNextFocusableChild(this.focusedChild,1);
if(_81f.getFocalNodes){
this.focusChild(_81f,_81f.getFocalNodes()[0]);
}else{
this.focusChild(_81f);
}
},focusPrev:function(){
if(this.focusedChild&&this.focusedChild.hasPrevFocalNode&&this.focusedChild.hasPrevFocalNode()){
this.focusedChild.focusPrev();
return;
}
var _820=this._getNextFocusableChild(this.focusedChild,-1);
if(_820.getFocalNodes){
var _821=_820.getFocalNodes();
this.focusChild(_820,_821[_821.length-1]);
}else{
this.focusChild(_820);
}
},focusChild:function(_822,node){
if(_822){
if(this.focusedChild&&_822!==this.focusedChild){
this._onChildBlur(this.focusedChild);
}
this.focusedChild=_822;
if(node&&_822.focusFocalNode){
_822.focusFocalNode(node);
}else{
_822.focus();
}
}
},_startupChild:function(_824){
if(_824.getFocalNodes){
dojo.forEach(_824.getFocalNodes(),function(node){
dojo.attr(node,"tabindex",-1);
this._connectNode(node);
},this);
}else{
var node=_824.focusNode||_824.domNode;
if(_824.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){
this.focusFirstChild();
}
},_onContainerKeypress:function(evt){
if(evt.ctrlKey||evt.altKey){
return;
}
var func=this._keyNavCodes[evt.charOrCode];
if(func){
func();
dojo.stopEvent(evt);
}
},_onNodeFocus:function(evt){
dojo.attr(this.domNode,"tabindex",-1);
var _82c=dijit.getEnclosingWidget(evt.target);
if(_82c&&_82c.isFocusable()){
this.focusedChild=_82c;
}
dojo.stopEvent(evt);
},_onNodeBlur:function(evt){
if(this.tabIndex){
dojo.attr(this.domNode,"tabindex",this.tabIndex);
}
dojo.stopEvent(evt);
},_onChildBlur:function(_82e){
},_getFirstFocusableChild:function(){
return this._getNextFocusableChild(null,1);
},_getNextFocusableChild:function(_82f,dir){
if(_82f){
_82f=this._getSiblingOfChild(_82f,dir);
}
var _831=this.getChildren();
for(var i=0;i<_831.length;i++){
if(!_82f){
_82f=_831[(dir>0)?0:(_831.length-1)];
}
if(_82f.isFocusable()){
return _82f;
}
_82f=this._getSiblingOfChild(_82f,dir);
}
return null;
}});
}
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(_833){
_833.startup();
});
if(!this.getParent||!this.getParent()){
this.resize();
this.connect(dojo.global,"onresize","resize");
}
this.inherited(arguments);
},resize:function(_834,_835){
var node=this.domNode;
if(_834){
dojo.marginBox(node,_834);
if(_834.t){
node.style.top=_834.t+"px";
}
if(_834.l){
node.style.left=_834.l+"px";
}
}
var mb=_835||{};
dojo.mixin(mb,_834||{});
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(_83d){
if(_83d.baseClass){
dojo.addClass(_83d.domNode,this.baseClass+"-"+_83d.baseClass);
}
},addChild:function(_83e,_83f){
this.inherited(arguments);
if(this._started){
this._setupChild(_83e);
}
},removeChild:function(_840){
if(_840.baseClass){
dojo.removeClass(_840.domNode,this.baseClass+"-"+_840.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 _846=function(word){
return word.substring(0,1).toUpperCase()+word.substring(1);
};
var size=function(_849,dim){
_849.resize?_849.resize(dim):dojo.marginBox(_849.domNode,dim);
dojo.mixin(_849,dojo.marginBox(_849.domNode));
dojo.mixin(_849,dim);
};
dijit.layout.layoutChildren=function(_84b,dim,_84d){
dim=dojo.mixin({},dim);
dojo.addClass(_84b,"dijitLayoutContainer");
_84d=dojo.filter(_84d,function(item){
return item.layoutAlign!="client";
}).concat(dojo.filter(_84d,function(item){
return item.layoutAlign=="client";
}));
dojo.forEach(_84d,function(_850){
var elm=_850.domNode,pos=_850.layoutAlign;
var _853=elm.style;
_853.left=dim.l+"px";
_853.top=dim.t+"px";
_853.bottom=_853.right="auto";
dojo.addClass(elm,"dijitAlign"+_846(pos));
if(pos=="top"||pos=="bottom"){
size(_850,{w:dim.w});
dim.h-=_850.h;
if(pos=="top"){
dim.t+=_850.h;
}else{
_853.top=dim.t+dim.h+"px";
}
}else{
if(pos=="left"||pos=="right"){
size(_850,{h:dim.h});
dim.w-=_850.w;
if(pos=="left"){
dim.l+=_850.w;
}else{
_853.left=dim.l+dim.w+"px";
}
}else{
if(pos=="client"){
size(_850,dim);
}
}
}
});
};
})();
}
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,attributeMap:dojo.mixin(dojo.clone(dijit._Widget.prototype.attributeMap),{value:"focusNode",disabled:"focusNode",readOnly:"focusNode",id:"focusNode",tabIndex:"focusNode",alt:"focusNode"}),_setDisabledAttr:function(_854){
this.disabled=_854;
dojo.attr(this.focusNode,"disabled",_854);
dijit.setWaiState(this.focusNode,"disabled",_854);
if(_854){
this._hovering=false;
this._active=false;
this.focusNode.removeAttribute("tabIndex");
}else{
this.focusNode.setAttribute("tabIndex",this.tabIndex);
}
this._setStateClass();
},setDisabled:function(_855){
dojo.deprecated("setDisabled("+_855+") is deprecated. Use attr('disabled',"+_855+") instead.","","2.0");
this.attr("disabled",_855);
},_scroll:true,_onFocus:function(e){
if(this._scroll){
dijit.scrollIntoView(this.domNode);
}
this.inherited(arguments);
},_onMouse:function(_857){
var _858=_857.currentTarget;
if(_858&&_858.getAttribute){
this.stateModifier=_858.getAttribute("stateModifier")||"";
}
if(!this.disabled){
switch(_857.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 _859=this.connect(dojo.body(),"onmouseup",function(){
if(this._mouseDown&&this.isFocusable()){
this.focus();
}
this._active=false;
this._mouseDown=false;
this._setStateClass();
this.disconnect(_859);
});
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 _85a=this.baseClass.split(" ");
function multiply(_85b){
_85a=_85a.concat(dojo.map(_85a,function(c){
return c+_85b;
}),"dijit"+_85b);
};
if(this.checked){
multiply("Checked");
}
if(this.state){
multiply(this.state);
}
if(this.selected){
multiply("Selected");
}
if(this.disabled){
multiply("Disabled");
}else{
if(this.readOnly){
multiply("ReadOnly");
}else{
if(this._active){
multiply(this.stateModifier+"Active");
}else{
if(this._focused){
multiply("Focused");
}
if(this._hovering){
multiply(this.stateModifier+"Hover");
}
}
}
}
var tn=this.stateNode||this.domNode,_85e={};
dojo.forEach(tn.className.split(" "),function(c){
_85e[c]=true;
});
if("_stateClasses" in this){
dojo.forEach(this._stateClasses,function(c){
delete _85e[c];
});
}
dojo.forEach(_85a,function(c){
_85e[c]=true;
});
var _862=[];
for(var c in _85e){
_862.push(c);
}
tn.className=_862.join(" ");
this._stateClasses=_85a;
},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(_866){
},_onChangeActive:false,_handleOnChange:function(_867,_868){
this._lastValue=_867;
if(this._lastValueReported==undefined&&(_868===null||!this._onChangeActive)){
this._resetValue=this._lastValueReported=_867;
}
if((this.intermediateChanges||_868||_868===undefined)&&((typeof _867!=typeof this._lastValueReported)||this.compare(_867,this._lastValueReported)!=0)){
this._lastValueReported=_867;
if(this._onChangeActive){
this.onChange(_867);
}
}
},create:function(){
this.inherited(arguments);
this._onChangeActive=true;
this._setStateClass();
},destroy:function(){
if(this._layoutHackHandle){
clearTimeout(this._layoutHackHandle);
}
this.inherited(arguments);
},setValue:function(_869){
dojo.deprecated("dijit.form._FormWidget:setValue("+_869+") is deprecated.  Use attr('value',"+_869+") instead.","","2.0");
this.attr("value",_869);
},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.mixin(dojo.clone(dijit.form._FormWidget.prototype.attributeMap),{value:""}),postCreate:function(){
if(dojo.isIE||dojo.isSafari){
this.connect(this.focusNode||this.domNode,"onkeydown",this._onKeyDown);
}
if(this._resetValue===undefined){
this._resetValue=this.value;
}
},_setValueAttr:function(_86c,_86d){
this.value=_86c;
this._handleOnChange(_86c,_86d);
},_getValueAttr:function(_86e){
return this._lastValue;
},undo:function(){
this._setValueAttr(this._lastValueReported,false);
},reset:function(){
this._hasBeenBlurred=false;
this._setValueAttr(this._resetValue,true);
},_valueChanged:function(){
var v=this.attr("value");
var lv=this._lastValueReported;
return ((v!==null&&(v!==undefined)&&v.toString)?v.toString():"")!==((lv!==null&&(lv!==undefined)&&lv.toString)?lv.toString():"");
},_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.isSafari){
te=document.createEvent("Events");
te.initEvent("keypress",true,true);
te.keyCode=dojo.keys.ESCAPE;
te.shiftKey=e.shiftKey;
e.target.dispatchEvent(te);
}
}
}
},_onKeyPress:function(e){
if(e.charOrCode==dojo.keys.ESCAPE&&!e.ctrlKey&&!e.altKey&&this._valueChanged()){
this.undo();
dojo.stopEvent(e);
return false;
}else{
if(this.intermediateChanges){
var _874=this;
setTimeout(function(){
_874._handleOnChange(_874.attr("value"),false);
},0);
}
}
return true;
}});
}
if(!dojo._hasResource["dijit.dijit"]){
dojo._hasResource["dijit.dijit"]=true;
dojo.provide("dijit.dijit");
}
if(!dojo._hasResource["dojo.fx"]){
dojo._hasResource["dojo.fx"]=true;
dojo.provide("dojo.fx");
dojo.provide("dojo.fx.Toggler");
(function(){
var _875={_fire:function(evt,args){
if(this[evt]){
this[evt].apply(this,args||[]);
}
return this;
}};
var _878=function(_879){
this._index=-1;
this._animations=_879||[];
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(_878,{_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(_87b,_87c){
if(!this._current){
this._current=this._animations[this._index=0];
}
if(!_87c&&this._current.status()=="playing"){
return this;
}
var _87d=dojo.connect(this._current,"beforeBegin",this,function(){
this._fire("beforeBegin");
}),_87e=dojo.connect(this._current,"onBegin",this,function(arg){
this._fire("onBegin",arguments);
}),_880=dojo.connect(this._current,"onPlay",this,function(arg){
this._fire("onPlay",arguments);
dojo.disconnect(_87d);
dojo.disconnect(_87e);
dojo.disconnect(_880);
});
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(arg){
this._fire("onPause",arguments);
dojo.disconnect(e);
});
this._current.pause();
}
return this;
},gotoPercent:function(_884,_885){
this.pause();
var _886=this.duration*_884;
this._current=null;
dojo.some(this._animations,function(a){
if(a.duration<=_886){
this._current=a;
return true;
}
_886-=a.duration;
return false;
});
if(this._current){
this._current.gotoPercent(_886/this._current.duration,_885);
}
return this;
},stop:function(_888){
if(this._current){
if(_888){
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(_878,_875);
dojo.fx.chain=function(_88b){
return new _878(_88b);
};
var _88c=function(_88d){
this._animations=_88d||[];
this._connects=[];
this._finished=0;
this.duration=0;
dojo.forEach(_88d,function(a){
var _88f=a.duration;
if(a.delay){
_88f+=a.delay;
}
if(this.duration<_88f){
this.duration=_88f;
}
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(_88c,{_doAction:function(_891,args){
dojo.forEach(this._animations,function(a){
a[_891].apply(a,args);
});
return this;
},_onEnd:function(){
if(++this._finished==this._animations.length){
this._fire("onEnd");
}
},_call:function(_894,args){
var t=this._pseudoAnimation;
t[_894].apply(t,args);
},play:function(_897,_898){
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(_899,_89a){
var ms=this.duration*_899;
dojo.forEach(this._animations,function(a){
a.gotoPercent(a.duration<ms?1:(ms/a.duration),_89a);
});
this._call("gotoPercent",arguments);
return this;
},stop:function(_89d){
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(_88c,_875);
dojo.fx.combine=function(_89e){
return new _88c(_89e);
};
})();
dojo.declare("dojo.fx.Toggler",null,{constructor:function(args){
var _t=this;
dojo.mixin(_t,args);
_t.node=args.node;
_t._showArgs=dojo.mixin({},args);
_t._showArgs.node=_t.node;
_t._showArgs.duration=_t.showDuration;
_t.showAnim=_t.showFunc(_t._showArgs);
_t._hideArgs=dojo.mixin({},args);
_t._hideArgs.node=_t.node;
_t._hideArgs.duration=_t.hideDuration;
_t.hideAnim=_t.hideFunc(_t._hideArgs);
dojo.connect(_t.showAnim,"beforeBegin",dojo.hitch(_t.hideAnim,"stop",true));
dojo.connect(_t.hideAnim,"beforeBegin",dojo.hitch(_t.showAnim,"stop",true));
},node:null,showFunc:dojo.fadeIn,hideFunc:dojo.fadeOut,showDuration:200,hideDuration:200,show:function(_8a1){
return this.showAnim.play(_8a1||0);
},hide:function(_8a2){
return this.hideAnim.play(_8a2||0);
}});
dojo.fx.wipeIn=function(args){
args.node=dojo.byId(args.node);
var node=args.node,s=node.style,o;
var anim=dojo.animateProperty(dojo.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 _8a8=dojo.style(node,"height");
return Math.max(_8a8,1);
}
},end:function(){
return node.scrollHeight;
}}}},args));
dojo.connect(anim,"onEnd",function(){
s.height="auto";
s.overflow=o;
});
return anim;
};
dojo.fx.wipeOut=function(args){
var node=args.node=dojo.byId(args.node);
var s=node.style;
var o;
var anim=dojo.animateProperty(dojo.mixin({properties:{height:{end:1}}},args));
dojo.connect(anim,"beforeBegin",function(){
o=s.overflow;
s.overflow="hidden";
s.display="";
});
dojo.connect(anim,"onEnd",function(){
s.overflow=o;
s.height="auto";
s.display="none";
});
return anim;
};
dojo.fx.slideTo=function(args){
var node=(args.node=dojo.byId(args.node));
var top=null;
var left=null;
var init=(function(n){
return function(){
var cs=dojo.getComputedStyle(n);
var pos=cs.position;
top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);
left=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);
if(pos!="absolute"&&pos!="relative"){
var ret=dojo.coords(n,true);
top=ret.y;
left=ret.x;
n.style.position="absolute";
n.style.top=top+"px";
n.style.left=left+"px";
}
};
})(node);
init();
var anim=dojo.animateProperty(dojo.mixin({properties:{top:{end:args.top||0},left:{end:args.left||0}}},args));
dojo.connect(anim,"beforeBegin",anim,init);
return anim;
};
}
if(!dojo._hasResource["dojox.fx._base"]){
dojo._hasResource["dojox.fx._base"]=true;
dojo.provide("dojox.fx._base");
dojo.mixin(dojox.fx,{anim:dojo.anim,animateProperty:dojo.animateProperty,fadeTo:dojo._fade,fadeIn:dojo.fadeIn,fadeOut:dojo.fadeOut,combine:dojo.fx.combine,chain:dojo.fx.chain,slideTo:dojo.fx.slideTo,wipeIn:dojo.fx.wipeIn,wipeOut:dojo.fx.wipeOut});
dojox.fx.sizeTo=function(args){
var node=args.node=dojo.byId(args.node);
var _8ba=args.method||"chain";
if(!args.duration){
args.duration=500;
}
if(_8ba=="chain"){
args.duration=Math.floor(args.duration/2);
}
var top,_8bc,left,_8be,_8bf,_8c0=null;
var init=(function(n){
return function(){
var cs=dojo.getComputedStyle(n);
var pos=cs.position;
top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);
left=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);
_8bf=parseInt(cs.width);
_8c0=parseInt(cs.height);
_8be=left-Math.floor((args.width-_8bf)/2);
_8bc=top-Math.floor((args.height-_8c0)/2);
if(pos!="absolute"&&pos!="relative"){
var ret=dojo.coords(n,true);
top=ret.y;
left=ret.x;
n.style.position="absolute";
n.style.top=top+"px";
n.style.left=left+"px";
}
};
})(node);
init();
var _8c6=dojo.animateProperty(dojo.mixin({properties:{height:{start:_8c0,end:args.height||0,unit:"px"},top:{start:top,end:_8bc}}},args));
var _8c7=dojo.animateProperty(dojo.mixin({properties:{width:{start:_8bf,end:args.width||0,unit:"px"},left:{start:left,end:_8be}}},args));
var anim=dojo.fx[(args.method=="combine"?"combine":"chain")]([_8c6,_8c7]);
dojo.connect(anim,"beforeBegin",anim,init);
return anim;
};
dojox.fx.slideBy=function(args){
var node=args.node=dojo.byId(args.node);
var top=null;
var left=null;
var init=(function(n){
return function(){
var cs=dojo.getComputedStyle(n);
var pos=cs.position;
top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);
left=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);
if(pos!="absolute"&&pos!="relative"){
var ret=dojo.coords(n,true);
top=ret.y;
left=ret.x;
n.style.position="absolute";
n.style.top=top+"px";
n.style.left=left+"px";
}
};
})(node);
init();
var _8d2=dojo.animateProperty(dojo.mixin({properties:{top:top+(args.top||0),left:left+(args.left||0)}},args));
dojo.connect(_8d2,"beforeBegin",_8d2,init);
return _8d2;
};
dojox.fx.crossFade=function(args){
if(dojo.isArray(args.nodes)){
var _8d4=args.nodes[0]=dojo.byId(args.nodes[0]);
var op1=dojo.style(_8d4,"opacity");
var _8d6=args.nodes[1]=dojo.byId(args.nodes[1]);
var op2=dojo.style(_8d6,"opacity");
var _8d8=dojo.fx.combine([dojo[(op1==0?"fadeIn":"fadeOut")](dojo.mixin({node:_8d4},args)),dojo[(op1==0?"fadeOut":"fadeIn")](dojo.mixin({node:_8d6},args))]);
return _8d8;
}else{
return false;
}
};
dojox.fx.highlight=function(args){
var node=args.node=dojo.byId(args.node);
args.duration=args.duration||400;
var _8db=args.color||"#ffff99";
var _8dc=dojo.style(node,"backgroundColor");
var _8dd=(_8dc=="transparent"||_8dc=="rgba(0, 0, 0, 0)")?_8dc:false;
var anim=dojo.animateProperty(dojo.mixin({properties:{backgroundColor:{start:_8db,end:_8dc}}},args));
if(_8dd){
dojo.connect(anim,"onEnd",anim,function(){
node.style.backgroundColor=_8dd;
});
}
return anim;
};
dojox.fx.wipeTo=function(args){
args.node=dojo.byId(args.node);
var node=args.node,s=node.style;
var dir=(args.width?"width":"height");
var _8e3=args[dir];
var _8e4={};
_8e4[dir]={start:function(){
s.overflow="hidden";
if(s.visibility=="hidden"||s.display=="none"){
s[dir]="1px";
s.display="";
s.visibility="";
return 1;
}else{
var now=dojo.style(node,dir);
return Math.max(now,1);
}
},end:_8e3,unit:"px"};
var anim=dojo.animateProperty(dojo.mixin({properties:_8e4},args));
return anim;
};
}
if(!dojo._hasResource["dojox.fx"]){
dojo._hasResource["dojox.fx"]=true;
dojo.provide("dojox.fx");
}
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' name=\"${name}\"\r\n\tdojoAttachEvent='onmouseenter:_onMouse,onmouseleave:_onMouse,onfocus:_onMouse,onblur:_onMouse,onkeypress:_onKeyPress'\r\n\tautocomplete=\"off\" type=\"${type}\"\r\n\t/>\r\n",baseClass:"dijitTextBox",attributeMap:dojo.mixin(dojo.clone(dijit.form._FormValueWidget.prototype.attributeMap),{maxLength:"focusNode"}),_getValueAttr:function(){
return this.parse(this.attr("displayedValue"),this.constraints);
},_setValueAttr:function(_8e7,_8e8,_8e9){
var _8ea;
if(_8e7!==undefined){
_8ea=this.filter(_8e7);
if(_8ea!==null&&((typeof _8ea!="number")||!isNaN(_8ea))){
if(typeof _8e9!="string"){
_8e9=this.format(_8ea,this.constraints);
}
}else{
_8e9="";
}
}
if(_8e9!=null&&_8e9!=undefined){
this.textbox.value=_8e9;
}
dijit.form.TextBox.superclass._setValueAttr.call(this,_8ea,_8e8);
},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(_8eb){
dojo.deprecated(this.declaredClass+"::setDisplayedValue() is deprecated. Use attr('displayedValue', ...) instead.","","2.0");
this.attr("displayedValue",_8eb);
},_setDisplayedValueAttr:function(_8ec){
this.textbox.value=_8ec;
this._setValueAttr(this.attr("value"));
},format:function(_8ed,_8ee){
return ((_8ed==null||_8ed==undefined)?"":(_8ed.toString?_8ed.toString():_8ed));
},parse:function(_8ef,_8f0){
return _8ef;
},postCreate:function(){
this.textbox.setAttribute("value",this.textbox.value);
this.inherited(arguments);
this._layoutHack();
},filter:function(val){
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"),(this.isValid?this.isValid():true));
},_onBlur:function(){
this._setBlurValue();
this.inherited(arguments);
}});
dijit.selectInputText=function(_8f3,_8f4,stop){
var _8f6=dojo.global;
var _8f7=dojo.doc;
_8f3=dojo.byId(_8f3);
if(isNaN(_8f4)){
_8f4=0;
}
if(isNaN(stop)){
stop=_8f3.value?_8f3.value.length:0;
}
_8f3.focus();
if(_8f7["selection"]&&dojo.body()["createTextRange"]){
if(_8f3.createTextRange){
var _8f8=_8f3.createTextRange();
with(_8f8){
collapse(true);
moveStart("character",_8f4);
moveEnd("character",stop);
select();
}
}
}else{
if(_8f6["getSelection"]){
var _8f9=_8f6.getSelection();
if(_8f3.setSelectionRange){
_8f3.setSelectionRange(_8f4,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\">\r\n\t<div class=\"dijitTooltipContainer dijitTooltipContents\" dojoAttachPoint=\"containerNode\" waiRole='alert'></div>\r\n\t<div class=\"dijitTooltipConnector\"></div>\r\n</div>\r\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(_8fa,_8fb,_8fc){
if(this.aroundNode&&this.aroundNode===_8fb){
return;
}
if(this.fadeOut.status()=="playing"){
this._onDeck=arguments;
return;
}
this.containerNode.innerHTML=_8fa;
this.domNode.style.top=(this.domNode.offsetTop+1)+"px";
var _8fd={};
var ltr=this.isLeftToRight();
dojo.forEach((_8fc&&_8fc.length)?_8fc:dijit.Tooltip.defaultPosition,function(pos){
switch(pos){
case "after":
_8fd[ltr?"BR":"BL"]=ltr?"BL":"BR";
break;
case "before":
_8fd[ltr?"BL":"BR"]=ltr?"BR":"BL";
break;
case "below":
_8fd[ltr?"BL":"BR"]=ltr?"TL":"TR";
_8fd[ltr?"BR":"BL"]=ltr?"TR":"TL";
break;
case "above":
default:
_8fd[ltr?"TL":"TR"]=ltr?"BL":"BR";
_8fd[ltr?"TR":"TL"]=ltr?"BR":"BL";
break;
}
});
var pos=dijit.placeOnScreenAroundElement(this.domNode,_8fb,_8fd,dojo.hitch(this,"orient"));
dojo.style(this.domNode,"opacity",0);
this.fadeIn.play();
this.isShowingNow=true;
this.aroundNode=_8fb;
},orient:function(node,_902,_903){
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"}[_902+"-"+_903];
},_onShow:function(){
if(dojo.isIE){
this.domNode.style.filter="";
}
},hide:function(_904){
if(this._onDeck&&this._onDeck[1]==_904){
this._onDeck=null;
}else{
if(this.aroundNode===_904){
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(_905,_906,_907){
if(!dijit._masterTT){
dijit._masterTT=new dijit._MasterTooltip();
}
return dijit._masterTT.show(_905,_906,_907);
};
dijit.hideTooltip=function(_908){
if(!dijit._masterTT){
dijit._masterTT=new dijit._MasterTooltip();
}
return dijit._masterTT.hide(_908);
};
dojo.declare("dijit.Tooltip",dijit._Widget,{label:"",showDelay:400,connectId:[],position:[],postCreate:function(){
dojo.addClass(this.domNode,"dijitTooltipData");
this._connectNodes=[];
dojo.forEach(this.connectId,function(id){
var node=dojo.byId(id);
if(node){
this._connectNodes.push(node);
dojo.forEach(["onMouseEnter","onMouseLeave","onFocus","onBlur"],function(_90b){
this.connect(node,_90b.toLowerCase(),"_"+_90b);
},this);
if(dojo.isIE){
node.style.zoom=1;
}
}
},this);
},_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 _911=e.target;
this._showTimer=setTimeout(dojo.hitch(this,function(){
this.open(_911);
}),this.showDelay);
}
},_onUnHover:function(e){
if(this._focus){
return;
}
if(this._showTimer){
clearTimeout(this._showTimer);
delete this._showTimer;
}
this.close();
},open:function(_913){
_913=_913||this._connectNodes[0];
if(!_913){
return;
}
if(this._showTimer){
clearTimeout(this._showTimer);
delete this._showTimer;
}
dijit.showTooltip(this.label||this.domNode.innerHTML,_913,this.position);
this._connectNode=_913;
},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\"\r\n\tid=\"widget_${id}\"\r\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\" waiRole=\"presentation\"\r\n\t><div style=\"overflow:hidden;\"\r\n\t\t><div class=\"dijitReset dijitValidationIcon\"><br></div\r\n\t\t><div class=\"dijitReset dijitValidationIconText\">&Chi;</div\r\n\t\t><div class=\"dijitReset dijitInputField\"\r\n\t\t\t><input class=\"dijitReset\" dojoAttachPoint='textbox,focusNode' dojoAttachEvent='onfocus:_update,onkeyup:_update,onblur:_onMouse,onkeypress:_onKeyPress' autocomplete=\"off\"\r\n\t\t\ttype='${type}' name='${name}'\r\n\t\t/></div\r\n\t></div\r\n></div>\r\n",baseClass:"dijitTextBox",required:false,promptMessage:"",invalidMessage:"$_unset_$",constraints:{},regExp:".*",regExpGen:function(_914){
return this.regExp;
},state:"",tooltipPosition:[],_setValueAttr:function(){
this.inherited(arguments);
this.validate(this._focused);
},validator:function(_915,_916){
return (new RegExp("^(?:"+this.regExpGen(_916)+")"+(this.required?"":"?")+"$")).test(_915)&&(!this.required||!this._isEmpty(_915))&&(this._isEmpty(_915)||this.parse(_915,_916)!==undefined);
},_isValidSubset:function(){
return this.textbox.value.search(this._partialre)==0;
},isValid:function(_917){
return this.validator(this.textbox.value,this.constraints);
},_isEmpty:function(_918){
return /^\s*$/.test(_918);
},getErrorMessage:function(_919){
return this.invalidMessage;
},getPromptMessage:function(_91a){
return this.promptMessage;
},_maskValidSubsetError:true,validate:function(_91b){
var _91c="";
var _91d=this.disabled||this.isValid(_91b);
if(_91d){
this._maskValidSubsetError=true;
}
var _91e=!_91d&&_91b&&this._isValidSubset();
var _91f=this._isEmpty(this.textbox.value);
this.state=(_91d||(!this._hasBeenBlurred&&_91f)||_91e)?"":"Error";
if(this.state=="Error"){
this._maskValidSubsetError=false;
}
this._setStateClass();
dijit.setWaiState(this.focusNode,"invalid",_91d?"false":"true");
if(_91b){
if(_91f){
_91c=this.getPromptMessage(true);
}
if(!_91c&&(this.state=="Error"||(_91e&&!this._maskValidSubsetError))){
_91c=this.getErrorMessage(true);
}
}
this.displayMessage(_91c);
return _91d;
},_message:"",displayMessage:function(_920){
if(this._message==_920){
return;
}
this._message=_920;
dijit.hideTooltip(this.domNode);
if(_920){
dijit.showTooltip(_920,this.domNode,this.tooltipPosition);
}
},_refreshState:function(){
this.validate(this._focused);
},_update:function(e){
this._refreshState();
this._onMouse(e);
},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 _923="";
if(p!=".*"){
this.regExp.replace(/\\.|\[\]|\[.*?[^\\]{1}\]|\{.*?\}|\(\?[=:!]|./g,function(re){
switch(re.charAt(0)){
case "{":
case "+":
case "?":
case "*":
case "^":
case "$":
case "|":
case "(":
_923+=re;
break;
case ")":
_923+="|$)";
break;
default:
_923+="(?:"+re+"|$)";
break;
}
});
}
try{
"".search(_923);
}
catch(e){
_923=this.regExp;
console.debug("RegExp error in "+this.declaredClass+": "+this.regExp);
}
this._partialre="^(?:"+_923+")$";
},_setDisabledAttr:function(_925){
this.inherited(arguments);
if(this.valueNode){
this.valueNode.disabled=_925;
}
this._refreshState();
},_setRequiredAttr:function(_926){
this.required=_926;
dijit.setWaiState(this.focusNode,"required",_926);
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);
}});
dojo.declare("dijit.form.MappedTextBox",dijit.form.ValidationTextBox,{serialize:function(val,_92a){
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);
var _92c=this.textbox;
var _92d=(this.valueNode=dojo.doc.createElement("input"));
_92d.setAttribute("type",_92c.type);
dojo.style(_92d,"display","none");
this.valueNode.name=this.textbox.name;
dojo.place(_92d,_92c,"after");
this.textbox.name=this.textbox.name+"_displayed_";
this.textbox.removeAttribute("name");
},_setDisabledAttr:function(_92e){
this.inherited(arguments);
dojo.attr(this.valueNode,"disabled",_92e);
}});
dojo.declare("dijit.form.RangeBoundTextBox",dijit.form.MappedTextBox,{rangeMessage:"",rangeCheck:function(_92f,_930){
var _931="min" in _930;
var _932="max" in _930;
if(_931||_932){
return (!_931||this.compare(_92f,_930.min)>=0)&&(!_932||this.compare(_92f,_930.max)<=0);
}
return true;
},isInRange:function(_933){
return this.rangeCheck(this.attr("value"),this.constraints);
},_isDefinitelyOutOfRange:function(){
var val=this.attr("value");
var _935=false;
var _936=false;
if("min" in this.constraints){
var min=this.constraints.min;
val=this.compare(val,((typeof min=="number")&&min>=0&&val!=0)?0:min);
_935=(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);
_936=(typeof val=="number")&&val>0;
}
return _935||_936;
},_isValidSubset:function(){
return this.inherited(arguments)&&!this._isDefinitelyOutOfRange();
},isValid:function(_939){
return this.inherited(arguments)&&((this._isEmpty(this.textbox.value)&&!this.required)||this.isInRange(_939));
},getErrorMessage:function(_93a){
if(dijit.form.RangeBoundTextBox.superclass.isValid.call(this,false)&&!this.isInRange(_93a)){
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(_93b,_93c){
dijit.setWaiState(this.focusNode,"valuenow",_93b);
this.inherited(arguments);
}});
}
if(!dojo._hasResource["dojo.data.util.sorter"]){
dojo._hasResource["dojo.data.util.sorter"]=true;
dojo.provide("dojo.data.util.sorter");
dojo.data.util.sorter.basicComparator=function(a,b){
var ret=0;
if(a>b||typeof a==="undefined"||a===null){
ret=1;
}else{
if(a<b||typeof b==="undefined"||b===null){
ret=-1;
}
}
return ret;
};
dojo.data.util.sorter.createSortFunction=function(_940,_941){
var _942=[];
function createSortFunction(attr,dir){
return function(_945,_946){
var a=_941.getValue(_945,attr);
var b=_941.getValue(_946,attr);
var _949=null;
if(_941.comparatorMap){
if(typeof attr!=="string"){
attr=_941.getIdentity(attr);
}
_949=_941.comparatorMap[attr]||dojo.data.util.sorter.basicComparator;
}
_949=_949||dojo.data.util.sorter.basicComparator;
return dir*_949(a,b);
};
};
var _94a;
for(var i=0;i<_940.length;i++){
_94a=_940[i];
if(_94a.attribute){
var _94c=(_94a.descending)?-1:1;
_942.push(createSortFunction(_94a.attribute,_94c));
}
}
return function(rowA,rowB){
var i=0;
while(i<_942.length){
var ret=_942[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(_951){
_951=_951||{};
if(!_951.store){
_951.store=this;
}
var self=this;
var _953=function(_954,_955){
if(_955.onError){
var _956=_955.scope||dojo.global;
_955.onError.call(_956,_954,_955);
}
};
var _957=function(_958,_959){
var _95a=_959.abort||null;
var _95b=false;
var _95c=_959.start?_959.start:0;
var _95d=(_959.count&&(_959.count!==Infinity))?(_95c+_959.count):_958.length;
_959.abort=function(){
_95b=true;
if(_95a){
_95a.call(_959);
}
};
var _95e=_959.scope||dojo.global;
if(!_959.store){
_959.store=self;
}
if(_959.onBegin){
_959.onBegin.call(_95e,_958.length,_959);
}
if(_959.sort){
_958.sort(dojo.data.util.sorter.createSortFunction(_959.sort,self));
}
if(_959.onItem){
for(var i=_95c;(i<_958.length)&&(i<_95d);++i){
var item=_958[i];
if(!_95b){
_959.onItem.call(_95e,item,_959);
}
}
}
if(_959.onComplete&&!_95b){
var _961=null;
if(!_959.onItem){
_961=_958.slice(_95c,_95d);
}
_959.onComplete.call(_95e,_961,_959);
}
};
this._fetchItems(_951,_957,_953);
return _951;
};
}
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(_962,_963){
var rxp="^";
var c=null;
for(var i=0;i<_962.length;i++){
c=_962.charAt(i);
switch(c){
case "\\":
rxp+=c;
i++;
rxp+=_962.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(_963){
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\"\r\n\tid=\"widget_${id}\"\r\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\" dojoAttachPoint=\"comboNode\" waiRole=\"combobox\" tabIndex=\"-1\"\r\n\t><div style=\"overflow:hidden;\"\r\n\t\t><div class='dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton'\r\n\t\t\tdojoAttachPoint=\"downArrowNode\" waiRole=\"presentation\"\r\n\t\t\tdojoAttachEvent=\"onmousedown:_onArrowMouseDown,onmouseup:_onMouse,onmouseenter:_onMouse,onmouseleave:_onMouse\"\r\n\t\t\t><div class=\"dijitArrowButtonInner\">&thinsp;</div\r\n\t\t\t><div class=\"dijitArrowButtonChar\">&#9660;</div\r\n\t\t></div\r\n\t\t><div class=\"dijitReset dijitValidationIcon\"><br></div\r\n\t\t><div class=\"dijitReset dijitValidationIconText\">&Chi;</div\r\n\t\t><div class=\"dijitReset dijitInputField\"\r\n\t\t\t><input type=\"text\" autocomplete=\"off\" name=\"${name}\" class='dijitReset'\r\n\t\t\tdojoAttachEvent=\"onkeypress:_onKeyPress, onfocus:_update, compositionend\"\r\n\t\t\tdojoAttachPoint=\"textbox,focusNode\" waiRole=\"textbox\" waiState=\"haspopup-true,autocomplete-list\"\r\n\t\t/></div\r\n\t></div\r\n></div>\r\n",baseClass:"dijitComboBox",_getCaretPos:function(_967){
var pos=0;
if(typeof (_967.selectionStart)=="number"){
pos=_967.selectionStart;
}else{
if(dojo.isIE){
var tr=dojo.doc.selection.createRange().duplicate();
var ntr=_967.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(_96b,_96c){
_96c=parseInt(_96c);
dijit.selectInputText(_96b,_96c,_96c);
},_setDisabledAttr:function(_96d){
dijit.setWaiState(this.comboNode,"disabled",_96d);
},_onKeyPress:function(evt){
var key=evt.charOrCode;
if(evt.altKey||(evt.ctrlKey&&(key!="x"&&key!="v"))||evt.key==dojo.keys.SHIFT){
return;
}
var _970=false;
var pw=this._popupWidget;
var dk=dojo.keys;
if(this._isShowingNow){
pw.handleKey(key);
}
switch(key){
case dk.PAGE_DOWN:
case dk.DOWN_ARROW:
if(!this._isShowingNow||this._prev_key_esc){
this._arrowPressed();
_970=true;
}else{
this._announceOption(pw.getHighlightedOption());
}
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(pw.getHighlightedOption());
}
dojo.stopEvent(evt);
this._prev_key_backspace=false;
this._prev_key_esc=false;
break;
case dk.ENTER:
var _973;
if(this._isShowingNow&&(_973=pw.getHighlightedOption())){
if(_973==pw.nextButton){
this._nextSearch(1);
dojo.stopEvent(evt);
break;
}else{
if(_973==pw.previousButton){
this._nextSearch(-1);
dojo.stopEvent(evt);
break;
}
}
}else{
this._setDisplayedValueAttr(this.attr("displayedValue"),true);
}
evt.preventDefault();
case dk.TAB:
var _974=this.attr("displayedValue");
if(pw&&(_974==pw._messages["previousMessage"]||_974==pw._messages["nextMessage"])){
break;
}
if(this._isShowingNow){
this._prev_key_backspace=false;
this._prev_key_esc=false;
if(pw.getHighlightedOption()){
pw.attr("value",{target:pw.getHighlightedOption()});
}
this._lastQuery=null;
this._hideResultList();
}
break;
case " ":
this._prev_key_backspace=false;
this._prev_key_esc=false;
if(this._isShowingNow&&pw.getHighlightedOption()){
dojo.stopEvent(evt);
this._selectOption();
this._hideResultList();
}else{
_970=true;
}
break;
case dk.ESCAPE:
this._prev_key_backspace=false;
this._prev_key_esc=true;
if(this._isShowingNow){
dojo.stopEvent(evt);
this._hideResultList();
}else{
this.inherited(arguments);
}
break;
case dk.DELETE:
case dk.BACKSPACE:
this._prev_key_esc=false;
this._prev_key_backspace=true;
_970=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;
_970=typeof key=="string"||key==229;
}
if(this.searchTimer){
clearTimeout(this.searchTimer);
}
if(_970){
setTimeout(dojo.hitch(this,"_startSearchFromInput"),1);
}
},_autoCompleteText:function(text){
var fn=this.focusNode;
dijit.selectInputText(fn,fn.value.length);
var _977=this.ignoreCase?"toLowerCase":"substr";
if(text[_977](0).indexOf(this.focusNode.value[_977](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(_979,_97a){
if(this.disabled||this.readOnly||(_97a.query[this.searchAttr]!=this._lastQuery)){
return;
}
this._popupWidget.clearResultList();
if(!_979.length){
this._hideResultList();
return;
}
var _97b=new String(this.store.getValue(_979[0],this.searchAttr));
if(_97b&&this.autoComplete&&!this._prev_key_backspace&&(_97a.query[this.searchAttr]!="*")){
this._autoCompleteText(_97b);
}
_97a._maxOptions=this._maxOptions;
this._popupWidget.createOptions(_979,_97a,dojo.hitch(this,"_getMenuLabelFromItem"));
this._showResultList();
if(_97a.direction){
if(1==_97a.direction){
this._popupWidget.highlightFirstOption();
}else{
if(-1==_97a.direction){
this._popupWidget.highlightLastOption();
}
}
this._announceOption(this._popupWidget.getHighlightedOption());
}
},_showResultList:function(){
this._hideResultList();
var _97c=this._popupWidget.getItems(),_97d=Math.min(_97c.length,this.maxListLength);
this._arrowPressed();
this.displayMessage("");
dojo.style(this._popupWidget.domNode,{width:"",height:""});
var best=this.open();
var _97f=dojo.marginBox(this._popupWidget.domNode);
this._popupWidget.domNode.style.overflow=((best.h==_97f.h)&&(best.w==_97f.w))?"hidden":"auto";
var _980=best.w;
if(best.h<this._popupWidget.domNode.scrollHeight){
_980+=16;
}
dojo.marginBox(this._popupWidget.domNode,{h:best.h,w:Math.max(_980,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 _981=this.attr("displayedValue");
var pw=this._popupWidget;
if(pw&&(_981==pw._messages["previousMessage"]||_981==pw._messages["nextMessage"])){
this._setValueAttr(this._lastValueReported,true);
}else{
this.attr("displayedValue",_981);
}
},_onBlur:function(){
this._hideResultList();
this._arrowIdle();
this.inherited(arguments);
},_announceOption:function(node){
if(node==null){
return;
}
var _984;
if(node==this._popupWidget.nextButton||node==this._popupWidget.previousButton){
_984=node.innerHTML;
}else{
_984=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(_984);
},_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 _98b=this.id+"_popup";
this._popupWidget=new dijit.form._ComboBoxMenu({onChange:dojo.hitch(this,this._selectOption),id:_98b});
dijit.removeWaiState(this.focusNode,"activedescendant");
dijit.setWaiState(this.textbox,"owns",_98b);
}
this.item=null;
var _98c=dojo.clone(this.query);
this._lastInput=key;
this._lastQuery=_98c[this.searchAttr]=this._getQueryString(key);
this.searchTimer=setTimeout(dojo.hitch(this,function(_98d,_98e){
var _98f={queryOptions:{ignoreCase:this.ignoreCase,deep:true},query:_98d,onBegin:dojo.hitch(this,"_setMaxOptions"),onComplete:dojo.hitch(this,"_openResultList"),onError:function(_990){
console.error("dijit.form.ComboBox: "+_990);
dojo.hitch(_98e,"_hideResultList")();
},start:0,count:this.pageSize};
dojo.mixin(_98f,_98e.fetchProperties);
var _991=_98e.store.fetch(_98f);
var _992=function(_993,_994){
_993.start+=_993.count*_994;
_993.direction=_994;
this.store.fetch(_993);
};
this._nextSearch=this._popupWidget.onPage=dojo.hitch(this,_992,_991);
},_98c,this),this.searchDelay);
},_setMaxOptions:function(size,_996){
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({charOrCode:229});
},constructor:function(){
this.query={};
this.fetchProperties={};
},postMixInProperties:function(){
if(!this.hasDownArrow){
this.baseClass="dijitTextBox";
}
if(!this.store){
var _998=this.srcNodeRef;
this.store=new dijit.form._ComboBoxDataStore(_998);
if(!this.value||((typeof _998.selectedIndex=="number")&&_998.selectedIndex.toString()===this.value)){
var item=this.store.fetchSelectedItem();
if(item){
this.value=this.store.getValue(item,this._getValueField());
}
}
}
},_postCreate:function(){
var _99a=dojo.query("label[for=\""+this.id+"\"]");
if(_99a.length){
_99a[0].id=(this.id+"_label");
var cn=this.comboNode;
dijit.setWaiState(cn,"labelledby",_99a[0].id);
}
},uninitialize:function(){
if(this._popupWidget){
this._hideResultList();
this._popupWidget.destroy();
}
},_getMenuLabelFromItem:function(item){
var _99d=this.store.getValue(item,this.labelAttr||this.searchAttr);
var _99e=this.labelType;
if(this.highlightMatch!="none"&&this.labelType=="text"&&this._lastInput){
_99d=this.doHighlight(_99d,this._escapeHtml(this._lastInput));
_99e="html";
}
return {html:_99e=="html",label:_99d};
},doHighlight:function(_99f,find){
var _9a1="i"+(this.highlightMatch=="all"?"g":"");
var _9a2=this._escapeHtml(_99f);
var ret=_9a2.replace(new RegExp("^("+find+")",_9a1),"<span class=\"dijitComboBoxHighlightMatch\">$1</span>");
if(_9a2==ret){
ret=_9a2.replace(new RegExp(" ("+find+")",_9a1)," <span class=\"dijitComboBoxHighlightMatch\">$1</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'></li>"+"<li class='dijitMenuItem dijitMenuNextButton' dojoAttachPoint='nextButton'></li>"+"</ul>",_messages:null,postMixInProperties:function(){
this._messages=dojo.i18n.getLocalization("dijit.form","ComboBox",this.lang);
this.inherited("postMixInProperties",arguments);
},_setValueAttr:function(_9a5){
this.value=_9a5;
this.onChange(_9a5);
},onChange:function(_9a6){
},onPage:function(_9a7){
},postCreate:function(){
this.previousButton.innerHTML=this._messages["previousMessage"];
this.nextButton.innerHTML=this._messages["nextMessage"];
this.inherited(arguments);
},onClose:function(){
this._blurOptionNode();
},_createOption:function(item,_9a9){
var _9aa=_9a9(item);
var _9ab=dojo.doc.createElement("li");
dijit.setWaiRole(_9ab,"option");
if(_9aa.html){
_9ab.innerHTML=_9aa.label;
}else{
_9ab.appendChild(dojo.doc.createTextNode(_9aa.label));
}
if(_9ab.innerHTML==""){
_9ab.innerHTML="&nbsp;";
}
_9ab.item=item;
return _9ab;
},createOptions:function(_9ac,_9ad,_9ae){
this.previousButton.style.display=(_9ad.start==0)?"none":"";
dojo.attr(this.previousButton,"id",this.id+"_prev");
dojo.forEach(_9ac,function(item,i){
var _9b1=this._createOption(item,_9ae);
_9b1.className="dijitReset dijitMenuItem";
dojo.attr(_9b1,"id",this.id+i);
this.domNode.insertBefore(_9b1,this.nextButton);
},this);
var _9b2=false;
if(_9ad._maxOptions&&_9ad._maxOptions!=-1){
if((_9ad.start+_9ad.count)<_9ad._maxOptions){
_9b2=true;
}else{
if((_9ad.start+_9ad.count)>(_9ad._maxOptions-1)){
if(_9ad.count==_9ac.length){
_9b2=true;
}
}
}
}else{
if(_9ad.count==_9ac.length){
_9b2=true;
}
}
this.nextButton.style.display=_9b2?"":"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,"dijitMenuItemHover");
}
},_blurOptionNode:function(){
if(this._highlighted_option){
dojo.removeClass(this._highlighted_option,"dijitMenuItemHover");
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 _9bf=0;
var _9c0=this.domNode.scrollTop;
var _9c1=dojo.style(this.domNode,"height");
if(!this.getHighlightedOption()){
this._highlightNextOption();
}
while(_9bf<_9c1){
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 _9c2=this.domNode.scrollTop;
_9bf+=(_9c2-_9c0)*(up?-1:1);
_9c0=_9c2;
}
},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],{postMixInProperties:function(){
dijit.form.ComboBoxMixin.prototype.postMixInProperties.apply(this,arguments);
dijit.form.ValidationTextBox.prototype.postMixInProperties.apply(this,arguments);
},postCreate:function(){
dijit.form.ComboBoxMixin.prototype._postCreate.apply(this,arguments);
dijit.form.ValidationTextBox.prototype.postCreate.apply(this,arguments);
},_setDisabledAttr:function(_9c5){
dijit.form.ValidationTextBox.prototype._setDisabledAttr.apply(this,arguments);
dijit.form.ComboBoxMixin.prototype._setDisabledAttr.apply(this,arguments);
},_setValueAttr:function(_9c6,_9c7){
if(!_9c6){
_9c6="";
}
dijit.form.ValidationTextBox.prototype._setValueAttr.call(this,_9c6,_9c7);
}});
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,_9cb,_9cc){
return (_9cb=="value")?item.value:(item.innerText||item.textContent||"");
},isItemLoaded:function(_9cd){
return true;
},getFeatures:function(){
return {"dojo.data.api.Read":true,"dojo.data.api.Identity":true};
},_fetchItems:function(args,_9cf,_9d0){
if(!args.query){
args.query={};
}
if(!args.query.name){
args.query.name="";
}
if(!args.queryOptions){
args.queryOptions={};
}
var _9d1=dojo.data.util.filter.patternToRegExp(args.query.name,args.queryOptions.ignoreCase),_9d2=dojo.query("> option",this.root).filter(function(_9d3){
return (_9d3.innerText||_9d3.textContent||"").match(_9d1);
});
if(args.sort){
_9d2.sort(dojo.data.util.sorter.createSortFunction(args.sort,this));
}
_9cf(_9d2,args);
},close:function(_9d4){
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["dojox.timing._base"]){
dojo._hasResource["dojox.timing._base"]=true;
dojo.provide("dojox.timing._base");
dojo.experimental("dojox.timing");
dojox.timing.Timer=function(_9db){
this.timer=null;
this.isRunning=false;
this.interval=_9db;
this.onStart=null;
this.onStop=null;
};
dojo.extend(dojox.timing.Timer,{onTick:function(){
},setInterval:function(_9dc){
if(this.isRunning){
window.clearInterval(this.timer);
}
this.interval=_9dc;
if(this.isRunning){
this.timer=window.setInterval(dojo.hitch(this,"onTick"),this.interval);
}
},start:function(){
if(typeof this.onStart=="function"){
this.onStart();
}
this.isRunning=true;
this.timer=window.setInterval(dojo.hitch(this,"onTick"),this.interval);
},stop:function(){
if(typeof this.onStop=="function"){
this.onStop();
}
this.isRunning=false;
window.clearInterval(this.timer);
}});
}
if(!dojo._hasResource["dijit.Menu"]){
dojo._hasResource["dijit.Menu"]=true;
dojo.provide("dijit.Menu");
dojo.declare("dijit.Menu",[dijit._Widget,dijit._Templated,dijit._KeyNavContainer],{constructor:function(){
this._bindings=[];
},templateString:"<table class=\"dijit dijitMenu dijitReset dijitMenuTable\" waiRole=\"menu\" dojoAttachEvent=\"onkeypress:_onKeyPress\">"+"<tbody class=\"dijitReset\" dojoAttachPoint=\"containerNode\"></tbody>"+"</table>",targetNodeIds:[],contextMenuForWindow:false,leftClickToOpen:false,parentMenu:null,popupDelay:500,_contextMenuWithMouse:false,postCreate:function(){
if(this.contextMenuForWindow){
this.bindDomNode(dojo.body());
}else{
dojo.forEach(this.targetNodeIds,this.bindDomNode,this);
}
this.connectKeyNavHandlers([dojo.keys.UP_ARROW],[dojo.keys.DOWN_ARROW]);
},startup:function(){
if(this._started){
return;
}
dojo.forEach(this.getChildren(),function(_9dd){
_9dd.startup();
});
this.startupKeyNavChildren();
this.inherited(arguments);
},onExecute:function(){
},onCancel:function(_9de){
},_moveToPopup:function(evt){
if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled){
this.focusedChild._onClick(evt);
}
},_onKeyPress:function(evt){
if(evt.ctrlKey||evt.altKey){
return;
}
switch(evt.charOrCode){
case dojo.keys.RIGHT_ARROW:
this._moveToPopup(evt);
dojo.stopEvent(evt);
break;
case dojo.keys.LEFT_ARROW:
if(this.parentMenu){
this.onCancel(false);
}else{
dojo.stopEvent(evt);
}
break;
}
},onItemHover:function(item){
this.focusChild(item);
if(this.focusedChild.popup&&!this.focusedChild.disabled&&!this.hover_timer){
this.hover_timer=setTimeout(dojo.hitch(this,"_openPopup"),this.popupDelay);
}
},_onChildBlur:function(item){
dijit.popup.close(item.popup);
item._blur();
this._stopPopupTimer();
},onItemUnhover:function(item){
},_stopPopupTimer:function(){
if(this.hover_timer){
clearTimeout(this.hover_timer);
this.hover_timer=null;
}
},_getTopMenu:function(){
for(var top=this;top.parentMenu;top=top.parentMenu){
}
return top;
},onItemClick:function(item,evt){
if(item.disabled){
return false;
}
if(item.popup){
if(!this.is_open){
this._openPopup();
}
}else{
this.onExecute();
item.onClick(evt);
}
},_iframeContentWindow:function(_9e7){
var win=dijit.getDocumentWindow(dijit.Menu._iframeContentDocument(_9e7))||dijit.Menu._iframeContentDocument(_9e7)["__parent__"]||(_9e7.name&&dojo.doc.frames[_9e7.name])||null;
return win;
},_iframeContentDocument:function(_9e9){
var doc=_9e9.contentDocument||(_9e9.contentWindow&&_9e9.contentWindow.document)||(_9e9.name&&dojo.doc.frames[_9e9.name]&&dojo.doc.frames[_9e9.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(_9ee){
var node=dojo.byId(_9ee);
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 _9f8=dojo.coords(e.target,true);
x=_9f8.x+10;
y=_9f8.y+10;
}
var self=this;
var _9fa=dijit.getFocus(this);
function closeAndRestoreFocus(){
dijit.focus(_9fa);
dijit.popup.close(self);
};
dijit.popup.open({popup:this,x:x,y:y,onExecute:closeAndRestoreFocus,onCancel:closeAndRestoreFocus,orient:this.isLeftToRight()?"L":"R"});
this.focus();
this._onBlur=function(){
this.inherited("_onBlur",arguments);
dijit.popup.close(this);
};
},onOpen:function(e){
this.isShowingNow=true;
},onClose:function(){
this._stopPopupTimer();
this.parentMenu=null;
this.isShowingNow=false;
this.currentPopup=null;
if(this.focusedChild){
this._onChildBlur(this.focusedChild);
this.focusedChild=null;
}
},_openPopup:function(){
this._stopPopupTimer();
var _9fc=this.focusedChild;
var _9fd=_9fc.popup;
if(_9fd.isShowingNow){
return;
}
_9fd.parentMenu=this;
var self=this;
dijit.popup.open({parent:this,popup:_9fd,around:_9fc.domNode,orient:this.isLeftToRight()?{"TR":"TL","TL":"TR"}:{"TL":"TR","TR":"TL"},onCancel:function(){
dijit.popup.close(_9fd);
_9fc.focus();
self.currentPopup=null;
}});
this.currentPopup=_9fd;
if(_9fd.focus){
_9fd.focus();
}
},uninitialize:function(){
dojo.forEach(this.targetNodeIds,this.unBindDomNode,this);
this.inherited(arguments);
}});
dojo.declare("dijit.MenuItem",[dijit._Widget,dijit._Templated,dijit._Contained],{templateString:"<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" waiRole=\"menuitem\" tabIndex=\"-1\""+"dojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">"+"<td class=\"dijitReset\" waiRole=\"presentation\"><div class=\"dijitMenuItemIcon\" dojoAttachPoint=\"iconNode\"></div></td>"+"<td class=\"dijitReset dijitMenuItemLabel\" dojoAttachPoint=\"containerNode\"></td>"+"<td class=\"dijitReset dijitMenuArrowCell\" waiRole=\"presentation\">"+"<div dojoAttachPoint=\"arrowWrapper\" style=\"display: none\">"+"<div class=\"dijitMenuExpand\"></div>"+"<span class=\"dijitMenuExpandA11y\">+</span>"+"</div>"+"</td>"+"</tr>",attributeMap:dojo.mixin(dojo.clone(dijit._Widget.prototype.attributeMap),{label:{node:"containerNode",type:"innerHTML"},iconClass:{node:"iconNode",type:"class"}}),label:"",iconClass:"",disabled:false,_fillContent:function(_9ff){
if(_9ff&&!("label" in this.params)){
this.attr("label",_9ff.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(){
this.getParent().onItemHover(this);
},_onUnhover:function(){
this.getParent().onItemUnhover(this);
},_onClick:function(evt){
this.getParent().onItemClick(this,evt);
dojo.stopEvent(evt);
},onClick:function(evt){
},focus:function(){
dojo.addClass(this.domNode,"dijitMenuItemHover");
try{
dijit.focus(this.focusNode);
}
catch(e){
}
},_blur:function(){
dojo.removeClass(this.domNode,"dijitMenuItemHover");
},setLabel:function(_a02){
dojo.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use attr('label', ...) instead.","","2.0");
this.attr("label",_a02);
},setDisabled:function(_a03){
dojo.deprecated("dijit.Menu.setDisabled() is deprecated.  Use attr('disabled', bool) instead.","","2.0");
this.attr("disabled",_a03);
},_setDisabledAttr:function(_a04){
this.disabled=_a04;
dojo[_a04?"addClass":"removeClass"](this.domNode,"dijitMenuItemDisabled");
dijit.setWaiState(this.focusNode,"disabled",_a04?"true":"false");
}});
dojo.declare("dijit.PopupMenuItem",dijit.MenuItem,{_fillContent:function(){
if(this.srcNodeRef){
var _a05=dojo.query("*",this.srcNodeRef);
dijit.PopupMenuItem.superclass._fillContent.call(this,_a05[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";
dojo.style(this.arrowWrapper,"display","");
dijit.setWaiState(this.focusNode,"haspopup","true");
},destroyDescendants:function(){
if(this.popup){
this.popup.destroyRecursive();
delete this.popup;
}
this.inherited(arguments);
}});
dojo.declare("dijit.MenuSeparator",[dijit._Widget,dijit._Templated,dijit._Contained],{templateString:"<tr class=\"dijitMenuSeparator\"><td colspan=3>"+"<div class=\"dijitMenuSeparatorTop\"></div>"+"<div class=\"dijitMenuSeparatorBottom\"></div>"+"</td></tr>",postCreate:function(){
dojo.setSelectable(this.domNode,false);
},isFocusable:function(){
return false;
}});
dojo.declare("dijit.CheckedMenuItem",dijit.MenuItem,{templateString:"<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" waiRole=\"menuitemcheckbox\" tabIndex=\"-1\""+"dojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">"+"<td class=\"dijitReset\" waiRole=\"presentation\"><div class=\"dijitMenuItemIcon dijitCheckedMenuItemIcon\" dojoAttachPoint=\"iconNode\">"+"<div class=\"dijitCheckedMenuItemIconChar\">&#10003;</div>"+"</div></td>"+"<td class=\"dijitReset dijitMenuItemLabel\" dojoAttachPoint=\"containerNode,labelNode\"></td>"+"<td class=\"dijitReset dijitMenuArrowCell\" waiRole=\"presentation\">"+"<div dojoAttachPoint=\"arrowWrapper\" style=\"display: none\">"+"<div class=\"dijitMenuExpand\"></div>"+"<span class=\"dijitMenuExpandA11y\">+</span>"+"</div>"+"</td>"+"</tr>",checked:false,_setCheckedAttr:function(_a07){
dojo.toggleClass(this.iconNode,"dijitCheckedMenuItemIconChecked",_a07);
dijit.setWaiState(this.domNode,"checked",_a07);
this.checked=_a07;
},onChange:function(_a08){
},_onClick:function(e){
if(!this.disabled){
this.attr("checked",!this.checked);
this.onChange(this.checked);
}
this.inherited(arguments);
}});
}
if(!dojo._hasResource["dijit._Calendar"]){
dojo._hasResource["dijit._Calendar"]=true;
dojo.provide("dijit._Calendar");
dojo.declare("dijit._Calendar",[dijit._Widget,dijit._Templated],{templateString:"<table cellspacing=\"0\" cellpadding=\"0\" class=\"dijitCalendarContainer\">\r\n\t<thead>\r\n\t\t<tr class=\"dijitReset dijitCalendarMonthContainer\" valign=\"top\">\r\n\t\t\t<th class='dijitReset' dojoAttachPoint=\"decrementMonth\">\r\n\t\t\t\t<div class=\"dijitInline dijitCalendarIncrementControl dijitCalendarDecrease\"><span dojoAttachPoint=\"decreaseArrowNode\" class=\"dijitA11ySideArrow dijitCalendarIncrementControl dijitCalendarDecreaseInner\">-</span></div>\r\n\t\t\t</th>\r\n\t\t\t<th class='dijitReset' colspan=\"5\">\r\n\t\t\t\t<div dojoAttachPoint=\"monthLabelSpacer\" class=\"dijitCalendarMonthLabelSpacer\"></div>\r\n\t\t\t\t<div dojoAttachPoint=\"monthLabelNode\" class=\"dijitCalendarMonthLabel\"></div>\r\n\t\t\t</th>\r\n\t\t\t<th class='dijitReset' dojoAttachPoint=\"incrementMonth\">\r\n\t\t\t\t<div class=\"dijitInline dijitCalendarIncrementControl dijitCalendarIncrease\"><span dojoAttachPoint=\"increaseArrowNode\" class=\"dijitA11ySideArrow dijitCalendarIncrementControl dijitCalendarIncreaseInner\">+</span></div>\r\n\t\t\t</th>\r\n\t\t</tr>\r\n\t\t<tr>\r\n\t\t\t<th class=\"dijitReset dijitCalendarDayLabelTemplate\"><span class=\"dijitCalendarDayLabel\"></span></th>\r\n\t\t</tr>\r\n\t</thead>\r\n\t<tbody dojoAttachEvent=\"onclick: _onDayClick, onmouseover: _onDayMouseOver, onmouseout: _onDayMouseOut\" class=\"dijitReset dijitCalendarBodyContainer\">\r\n\t\t<tr class=\"dijitReset dijitCalendarWeekTemplate\">\r\n\t\t\t<td class=\"dijitReset dijitCalendarDateTemplate\"><span class=\"dijitCalendarDateLabel\"></span></td>\r\n\t\t</tr>\r\n\t</tbody>\r\n\t<tfoot class=\"dijitReset dijitCalendarYearContainer\">\r\n\t\t<tr>\r\n\t\t\t<td class='dijitReset' valign=\"top\" colspan=\"7\">\r\n\t\t\t\t<h3 class=\"dijitCalendarYearLabel\">\r\n\t\t\t\t\t<span dojoAttachPoint=\"previousYearLabelNode\" class=\"dijitInline dijitCalendarPreviousYear\"></span>\r\n\t\t\t\t\t<span dojoAttachPoint=\"currentYearLabelNode\" class=\"dijitInline dijitCalendarSelectedYear\"></span>\r\n\t\t\t\t\t<span dojoAttachPoint=\"nextYearLabelNode\" class=\"dijitInline dijitCalendarNextYear\"></span>\r\n\t\t\t\t</h3>\r\n\t\t\t</td>\r\n\t\t</tr>\r\n\t</tfoot>\r\n</table>\t\r\n",value:new Date(),dayWidth:"narrow",setValue:function(_a0a){
dojo.deprecated("dijit.Calendar:setValue() is deprecated.  Use attr('value', ...) instead.","","2.0");
this.attr("value",_a0a);
},_getValueAttr:function(){
var _a0b=new Date(this.value);
_a0b.setHours(0,0,0,0);
if(_a0b.getDate()<this.value.getDate()){
_a0b=dojo.date.add(_a0b,"hour",1);
}
return _a0b;
},_setValueAttr:function(_a0c){
if(!this.value||dojo.date.compare(_a0c,this.value)){
_a0c=new Date(_a0c);
_a0c.setHours(1);
this.displayMonth=new Date(_a0c);
if(!this.isDisabledDate(_a0c,this.lang)){
this.onChange(this.value=_a0c);
}
this._populateGrid();
}
},_setText:function(node,text){
while(node.firstChild){
node.removeChild(node.firstChild);
}
node.appendChild(dojo.doc.createTextNode(text));
},_populateGrid:function(){
var _a0f=this.displayMonth;
_a0f.setDate(1);
var _a10=_a0f.getDay();
var _a11=dojo.date.getDaysInMonth(_a0f);
var _a12=dojo.date.getDaysInMonth(dojo.date.add(_a0f,"month",-1));
var _a13=new Date();
var _a14=this.value;
var _a15=dojo.cldr.supplemental.getFirstDayOfWeek(this.lang);
if(_a15>_a10){
_a15-=7;
}
dojo.query(".dijitCalendarDateTemplate",this.domNode).forEach(function(_a16,i){
i+=_a15;
var date=new Date(_a0f);
var _a19,_a1a="dijitCalendar",adj=0;
if(i<_a10){
_a19=_a12-_a10+i+1;
adj=-1;
_a1a+="Previous";
}else{
if(i>=(_a10+_a11)){
_a19=i-_a10-_a11+1;
adj=1;
_a1a+="Next";
}else{
_a19=i-_a10+1;
_a1a+="Current";
}
}
if(adj){
date=dojo.date.add(date,"month",adj);
}
date.setDate(_a19);
if(!dojo.date.compare(date,_a13,"date")){
_a1a="dijitCalendarCurrentDate "+_a1a;
}
if(!dojo.date.compare(date,_a14,"date")){
_a1a="dijitCalendarSelectedDate "+_a1a;
}
if(this.isDisabledDate(date,this.lang)){
_a1a="dijitCalendarDisabledDate "+_a1a;
}
var _a1c=this.getClassForDate(date,this.lang);
if(_a1c){
_a1a=_a1c+" "+_a1a;
}
_a16.className=_a1a+"Month dijitCalendarDateTemplate";
_a16.dijitDateValue=date.valueOf();
var _a1d=dojo.query(".dijitCalendarDateLabel",_a16)[0];
this._setText(_a1d,date.getDate());
},this);
var _a1e=dojo.date.locale.getNames("months","wide","standAlone",this.lang);
this._setText(this.monthLabelNode,_a1e[_a0f.getMonth()]);
var y=_a0f.getFullYear()-1;
var d=new Date();
dojo.forEach(["previous","current","next"],function(name){
d.setFullYear(y++);
this._setText(this[name+"YearLabelNode"],dojo.date.locale.format(d,{selector:"year",locale:this.lang}));
},this);
var _a22=this;
var _a23=function(_a24,_a25,adj){
_a22._connects.push(dijit.typematic.addMouseListener(_a22[_a24],_a22,function(_a27){
if(_a27>=0){
_a22._adjustDisplay(_a25,adj);
}
},0.8,500));
};
_a23("incrementMonth","month",1);
_a23("decrementMonth","month",-1);
_a23("nextYearLabelNode","year",1);
_a23("previousYearLabelNode","year",-1);
},goToToday:function(){
this.attr("value",new Date());
},postCreate:function(){
this.inherited(arguments);
var _a28=dojo.hitch(this,function(_a29,n){
var _a2b=dojo.query(_a29,this.domNode)[0];
for(var i=0;i<n;i++){
_a2b.parentNode.appendChild(_a2b.cloneNode(true));
}
});
_a28(".dijitCalendarDayLabelTemplate",6);
_a28(".dijitCalendarDateTemplate",6);
_a28(".dijitCalendarWeekTemplate",5);
var _a2d=dojo.date.locale.getNames("days",this.dayWidth,"standAlone",this.lang);
var _a2e=dojo.cldr.supplemental.getFirstDayOfWeek(this.lang);
dojo.query(".dijitCalendarDayLabel",this.domNode).forEach(function(_a2f,i){
this._setText(_a2f,_a2d[(i+_a2e)%7]);
},this);
var _a31=dojo.date.locale.getNames("months","wide","standAlone",this.lang);
dojo.forEach(_a31,function(name){
var _a33=dojo.doc.createElement("div");
this._setText(_a33,name);
this.monthLabelSpacer.appendChild(_a33);
},this);
this.value=null;
this.attr("value",new Date());
},_adjustDisplay:function(part,_a35){
this.displayMonth=dojo.date.add(this.displayMonth,part,_a35);
this._populateGrid();
},_onDayClick:function(evt){
var node=evt.target;
dojo.stopEvent(evt);
while(!node.dijitDateValue){
node=node.parentNode;
}
if(!dojo.hasClass(node,"dijitCalendarDisabledDate")){
this.attr("value",node.dijitDateValue);
this.onValueSelected(this.value);
}
},_onDayMouseOver:function(evt){
var node=evt.target;
if(node&&(node.dijitDateValue||node==this.previousYearLabelNode||node==this.nextYearLabelNode)){
dojo.addClass(node,"dijitCalendarHoveredDate");
this._currentNode=node;
}
},_onDayMouseOut:function(evt){
if(!this._currentNode){
return;
}
for(var node=evt.relatedTarget;node;){
if(node==this._currentNode){
return;
}
try{
node=node.parentNode;
}
catch(x){
node=null;
}
}
dojo.removeClass(this._currentNode,"dijitCalendarHoveredDate");
this._currentNode=null;
},onValueSelected:function(date){
},onChange:function(date){
},isDisabledDate:function(_a3e,_a3f){
},getClassForDate:function(_a40,_a41){
}});
}
if(!dojo._hasResource["dijit.form._DateTimeTextBox"]){
dojo._hasResource["dijit.form._DateTimeTextBox"]=true;
dojo.provide("dijit.form._DateTimeTextBox");
dojo.declare("dijit.form._DateTimeTextBox",dijit.form.RangeBoundTextBox,{regExpGen:dojo.date.locale.regexp,compare:dojo.date.compare,format:function(_a42,_a43){
if(!_a42){
return "";
}
return dojo.date.locale.format(_a42,_a43);
},parse:function(_a44,_a45){
return dojo.date.locale.parse(_a44,_a45)||(this._isEmpty(_a44)?null:undefined);
},serialize:dojo.date.stamp.toISOString,value:new Date(""),popupClass:"",_selector:"",postMixInProperties:function(){
this.inherited(arguments);
if(!this.value||this.value.toString()==dijit.form._DateTimeTextBox.prototype.value.toString()){
this.value=null;
}
var _a46=this.constraints;
_a46.selector=this._selector;
_a46.fullYear=true;
var _a47=dojo.date.stamp.fromISOString;
if(typeof _a46.min=="string"){
_a46.min=_a47(_a46.min);
}
if(typeof _a46.max=="string"){
_a46.max=_a47(_a46.max);
}
},_onFocus:function(evt){
this._open();
},_setValueAttr:function(_a49,_a4a,_a4b){
this.inherited(arguments);
if(this._picker){
if(!_a49){
_a49=new Date();
}
this._picker.attr("value",_a49);
}
},_open:function(){
if(this.disabled||this.readOnly||!this.popupClass){
return;
}
var _a4c=this;
if(!this._picker){
var _a4d=dojo.getObject(this.popupClass,false);
this._picker=new _a4d({onValueSelected:function(_a4e){
if(_a4c._tabbingAway){
delete _a4c._tabbingAway;
}else{
_a4c.focus();
}
setTimeout(dojo.hitch(_a4c,"_close"),1);
dijit.form._DateTimeTextBox.superclass._setValueAttr.call(_a4c,_a4e,true);
},lang:_a4c.lang,constraints:_a4c.constraints,isDisabledDate:function(date){
var _a50=dojo.date.compare;
var _a51=_a4c.constraints;
return _a51&&(_a51.min&&(_a50(_a51.min,date,"date")>0)||(_a51.max&&_a50(_a51.max,date,"date")<0));
}});
this._picker.attr("value",this.attr("value")||new Date());
}
if(!this._opened){
dijit.popup.open({parent:this,popup:this._picker,around:this.domNode,onCancel:dojo.hitch(this,this._close),onClose:function(){
_a4c._opened=false;
}});
this._opened=true;
}
dojo.marginBox(this._picker.domNode,{w:this.domNode.offsetWidth});
},_close:function(){
if(this._opened){
dijit.popup.close(this._picker);
this._opened=false;
}
},_onBlur:function(){
this._close();
if(this._picker){
this._picker.destroy();
delete this._picker;
}
this.inherited(arguments);
},_getDisplayedValueAttr:function(){
return this.textbox.value;
},_setDisplayedValueAttr:function(_a52,_a53){
this._setValueAttr(this.parse(_a52,this.constraints),_a53,_a52);
},destroy:function(){
if(this._picker){
this._picker.destroy();
delete this._picker;
}
this.inherited(arguments);
},_onKeyPress:function(e){
var p=this._picker,dk=dojo.keys;
if(p&&this._opened&&p.handleKey){
if(p.handleKey(e)===false){
return;
}
}
if(this._opened&&e.charOrCode==dk.ESCAPE&&!e.shiftKey&&!e.ctrlKey&&!e.altKey){
this._close();
dojo.stopEvent(e);
}else{
if(!this._opened&&e.charOrCode==dk.DOWN_ARROW){
this._open();
dojo.stopEvent(e);
}else{
if(dijit.form._DateTimeTextBox.superclass._onKeyPress.apply(this,arguments)){
if(e.charOrCode===dk.TAB){
this._tabbingAway=true;
}else{
if(this._opened&&(e.keyChar||e.charOrCode===dk.BACKSPACE||e.charOrCode==dk.DELETE)){
setTimeout(dojo.hitch(this,function(){
dijit.placeOnScreenAroundElement(p.domNode.parentNode,this.domNode,{"BL":"TL","TL":"BL"},p.orient?dojo.hitch(p,"orient"):null);
}),1);
}
}
}
}
}
}});
}
if(!dojo._hasResource["dijit.form.DateTextBox"]){
dojo._hasResource["dijit.form.DateTextBox"]=true;
dojo.provide("dijit.form.DateTextBox");
dojo.declare("dijit.form.DateTextBox",dijit.form._DateTimeTextBox,{baseClass:"dijitTextBox dijitDateTextBox",popupClass:"dijit._Calendar",_selector:"date"});
}
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;
};
}
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.isSafari||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 _a6e=n.scrollLeft,_a6f=n.scrollTop;
n.scrollLeft=n.scrollLeft+dx;
n.scrollTop=n.scrollTop+dy;
if(_a6e!=n.scrollLeft||_a6f!=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,_a75=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),_a75];
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.isSafari&&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,_a84){
this.node=dojo.byId(node);
if(!_a84){
_a84={};
}
this.handle=_a84.handle?dojo.byId(_a84.handle):null;
if(!this.handle){
this.handle=this.node;
}
this.delay=_a84.delay>0?_a84.delay:0;
this.skip=_a84.skip;
this.mover=_a84.mover?_a84.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(_a85,node){
return new dojo.dnd.Moveable(node,_a85);
},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(_a8d){
dojo.publish("/dnd/move/start",[_a8d]);
dojo.addClass(dojo.body(),"dojoMove");
dojo.addClass(this.node,"dojoMoveItem");
},onMoveStop:function(_a8e){
dojo.publish("/dnd/move/stop",[_a8e]);
dojo.removeClass(dojo.body(),"dojoMove");
dojo.removeClass(this.node,"dojoMoveItem");
},onFirstMove:function(_a8f){
},onMove:function(_a90,_a91){
this.onMoving(_a90,_a91);
var s=_a90.node.style;
s.left=_a91.l+"px";
s.top=_a91.t+"px";
this.onMoved(_a90,_a91);
},onMoving:function(_a93,_a94){
},onMoved:function(_a95,_a96){
}});
}
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(_a97,node){
return new dojo.dnd.move.constrainedMoveable(node,_a97);
},constructor:function(node,_a9a){
if(!_a9a){
_a9a={};
}
this.constraints=_a9a.constraints;
this.within=_a9a.within;
},onFirstMove:function(_a9b){
var c=this.constraintBox=this.constraints.call(this,_a9b);
c.r=c.l+c.w;
c.b=c.t+c.h;
if(this.within){
var mb=dojo.marginBox(_a9b.node);
c.r-=mb.w;
c.b-=mb.h;
}
},onMove:function(_a9e,_a9f){
var c=this.constraintBox,s=_a9e.node.style;
s.left=(_a9f.l<c.l?c.l:c.r<_a9f.l?c.r:_a9f.l)+"px";
s.top=(_a9f.t<c.t?c.t:c.b<_a9f.t?c.b:_a9f.t)+"px";
}});
dojo.declare("dojo.dnd.move.boxConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{box:{},markupFactory:function(_aa2,node){
return new dojo.dnd.move.boxConstrainedMoveable(node,_aa2);
},constructor:function(node,_aa5){
var box=_aa5&&_aa5.box;
this.constraints=function(){
return box;
};
}});
dojo.declare("dojo.dnd.move.parentConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(_aa7,node){
return new dojo.dnd.move.parentConstrainedMoveable(node,_aa7);
},constructor:function(node,_aaa){
var area=_aaa&&_aaa.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,_ab1){
dojo.deprecated("dojo.dnd.move.constrainedMover, use dojo.dnd.move.constrainedMoveable instead");
var _ab2=function(node,e,_ab5){
dojo.dnd.Mover.call(this,node,e,_ab5);
};
dojo.extend(_ab2,dojo.dnd.Mover.prototype);
dojo.extend(_ab2,{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(_ab1){
var mb=dojo.marginBox(this.node);
c.r-=mb.w;
c.b-=mb.h;
}
}});
return _ab2;
};
dojo.dnd.move.boxConstrainedMover=function(box,_abe){
dojo.deprecated("dojo.dnd.move.boxConstrainedMover, use dojo.dnd.move.boxConstrainedMoveable instead");
return dojo.dnd.move.constrainedMover(function(){
return box;
},_abe);
};
dojo.dnd.move.parentConstrainedMover=function(area,_ac0){
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,_ac0);
};
dojo.dnd.constrainedMover=dojo.dnd.move.constrainedMover;
dojo.dnd.boxConstrainedMover=dojo.dnd.move.boxConstrainedMover;
dojo.dnd.parentConstrainedMover=dojo.dnd.move.parentConstrainedMover;
}
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\"\r\n\tdojoAttachEvent=\"ondijitclick:_onButtonClick,onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\"\r\n\t><span class=\"dijitReset dijitRight dijitInline\"\r\n\t\t><span class=\"dijitReset dijitInline dijitButtonNode\"\r\n\t\t\t><button class=\"dijitReset dijitStretch dijitButtonContents\"\r\n\t\t\t\tdojoAttachPoint=\"titleNode,focusNode\" \r\n\t\t\t\tname=\"${name}\" type=\"${type}\" waiRole=\"button\" waiState=\"labelledby-${id}_label\"\r\n\t\t\t\t><span class=\"dijitReset dijitInline\" dojoAttachPoint=\"iconNode\" \r\n\t\t\t\t\t><span class=\"dijitReset dijitToggleButtonIconChar\">&#10003;</span \r\n\t\t\t\t></span \r\n\t\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\" \r\n\t\t\t\t\tid=\"${id}_label\"  \r\n\t\t\t\t\tdojoAttachPoint=\"containerNode\"\r\n\t\t\t\t></span\r\n\t\t\t></button\r\n\t\t></span\r\n\t></span\r\n></span>\r\n",attributeMap:dojo.mixin(dojo.clone(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 _ac9=dijit.byNode(node);
if(_ac9&&typeof _ac9._onSubmit=="function"){
_ac9._onSubmit(e);
break;
}
}
}
}
},_fillContent:function(_aca){
if(_aca&&!("label" in this.params)){
this.attr("label",_aca.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(_acd){
dojo.deprecated("dijit.form.Button.setLabel() is deprecated.  Use attr('label', ...) instead.","","2.0");
this.attr("label",_acd);
},_setLabelAttr:function(_ace){
this.containerNode.innerHTML=this.label=_ace;
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\"\r\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse,onclick:_onDropDownClick,onkeydown:_onDropDownKeydown,onblur:_onDropDownBlur,onkeypress:_onKey\"\r\n\t><span class='dijitReset dijitRight dijitInline'\r\n\t\t><span class='dijitReset dijitInline dijitButtonNode'\r\n\t\t\t><button class=\"dijitReset dijitStretch dijitButtonContents\" \r\n\t\t\t\ttype=\"${type}\" name=\"${name}\"\r\n\t\t\t\tdojoAttachPoint=\"focusNode,titleNode\" \r\n\t\t\t\twaiRole=\"button\" waiState=\"haspopup-true,labelledby-${id}_label\"\r\n\t\t\t\t><span class=\"dijitReset dijitInline\" \r\n\t\t\t\t\tdojoAttachPoint=\"iconNode\"\r\n\t\t\t\t></span\r\n\t\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"  \r\n\t\t\t\t\tdojoAttachPoint=\"containerNode,popupStateNode\" \r\n\t\t\t\t\tid=\"${id}_label\"\r\n\t\t\t\t></span\r\n\t\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonInner\">&thinsp;</span\r\n\t\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonChar\">&#9660;</span\r\n\t\t\t></button\r\n\t\t></span\r\n\t></span\r\n></span>\r\n",_fillContent:function(){
if(this.srcNodeRef){
var _acf=dojo.query("*",this.srcNodeRef);
dijit.form.DropDownButton.superclass._fillContent.call(this,_acf[0]);
this.dropDownContainer=this.srcNodeRef;
}
},startup:function(){
if(this._started){
return;
}
if(!this.dropDown){
var _ad0=dojo.query("[widgetId]",this.dropDownContainer)[0];
this.dropDown=dijit.byNode(_ad0);
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 _ad3=dojo.isFF&&dojo.isFF<3&&navigator.appVersion.indexOf("Macintosh")!=-1;
if(!_ad3||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 _ad7=this.dropDown;
if(!_ad7){
return;
}
if(!this._opened){
if(_ad7.href&&!_ad7.isLoaded){
var self=this;
var _ad9=dojo.connect(_ad7,"onLoad",function(){
dojo.disconnect(_ad9);
self._openDropDown();
});
_ad7._loadCheck(true);
return;
}else{
this._openDropDown();
}
}else{
this._closeDropDown();
}
},_openDropDown:function(){
var _ada=this.dropDown;
var _adb=_ada.domNode.style.width;
var self=this;
dijit.popup.open({parent:this,popup:_ada,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(){
_ada.domNode.style.width=_adb;
self.popupStateNode.removeAttribute("popupActive");
self._opened=false;
}});
if(this.domNode.offsetWidth>_ada.domNode.offsetWidth){
var _add=null;
if(!this.isLeftToRight()){
_add=_ada.domNode.parentNode;
var _ade=_add.offsetLeft+_add.offsetWidth;
}
dojo.marginBox(_ada.domNode,{w:this.domNode.offsetWidth});
if(_add){
_add.style.left=_ade-this.domNode.offsetWidth+"px";
}
}
this.popupStateNode.setAttribute("popupActive","true");
this._opened=true;
if(_ada.focus){
_ada.focus();
}
},_closeDropDown:function(_adf){
if(this._opened){
dijit.popup.close(this.dropDown);
if(_adf){
this.focus();
}
this._opened=false;
}
}});
dojo.declare("dijit.form.ComboButton",dijit.form.DropDownButton,{templateString:"<table class='dijit dijitReset dijitInline dijitLeft'\r\n\tcellspacing='0' cellpadding='0' waiRole=\"presentation\"\r\n\t><tbody waiRole=\"presentation\"><tr waiRole=\"presentation\"\r\n\t\t><td class=\"dijitReset dijitStretch dijitButtonContents dijitButtonNode\"\r\n\t\t\tdojoAttachEvent=\"ondijitclick:_onButtonClick,onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\"  dojoAttachPoint=\"titleNode\"\r\n\t\t\twaiRole=\"button\" waiState=\"labelledby-${id}_label\"\r\n\t\t\t><div class=\"dijitReset dijitInline\" dojoAttachPoint=\"iconNode\" waiRole=\"presentation\"></div\r\n\t\t\t><div class=\"dijitReset dijitInline dijitButtonText\" id=\"${id}_label\" dojoAttachPoint=\"containerNode\" waiRole=\"presentation\"></div\r\n\t\t></td\r\n\t\t><td class='dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton'\r\n\t\t\tdojoAttachPoint=\"popupStateNode,focusNode\"\r\n\t\t\tdojoAttachEvent=\"ondijitclick:_onArrowClick, onkeypress:_onKey,onmouseenter:_onMouse,onmouseleave:_onMouse\"\r\n\t\t\tstateModifier=\"DownArrow\"\r\n\t\t\ttitle=\"${optionsTitle}\" name=\"${name}\"\r\n\t\t\twaiRole=\"button\" waiState=\"haspopup-true\"\r\n\t\t\t><div class=\"dijitReset dijitArrowButtonInner\" waiRole=\"presentation\">&thinsp;</div\r\n\t\t\t><div class=\"dijitReset dijitArrowButtonChar\" waiRole=\"presentation\">&#9660;</div\r\n\t\t></td\r\n\t></tr></tbody\r\n></table>\r\n",attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{id:"",name:"",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(_ae7){
this.checked=_ae7;
dojo.attr(this.focusNode||this.domNode,"checked",_ae7);
dijit.setWaiState(this.focusNode||this.domNode,"pressed",_ae7);
this._setStateClass();
this._handleOnChange(_ae7,true);
},setChecked:function(_ae8){
dojo.deprecated("setChecked("+_ae8+") is deprecated. Use attr('checked',"+_ae8+") instead.","","2.0");
this.attr("checked",_ae8);
},reset:function(){
this._hasBeenBlurred=false;
this.attr("checked",this.params.checked||false);
}});
}
if(!dojo._hasResource["dojo.number"]){
dojo._hasResource["dojo.number"]=true;
dojo.provide("dojo.number");
dojo.number.format=function(_ae9,_aea){
_aea=dojo.mixin({},_aea||{});
var _aeb=dojo.i18n.normalizeLocale(_aea.locale);
var _aec=dojo.i18n.getLocalization("dojo.cldr","number",_aeb);
_aea.customs=_aec;
var _aed=_aea.pattern||_aec[(_aea.type||"decimal")+"Format"];
if(isNaN(_ae9)){
return null;
}
return dojo.number._applyPattern(_ae9,_aed,_aea);
};
dojo.number._numberPatternRE=/[#0,]*[#0](?:\.0*#*)?/;
dojo.number._applyPattern=function(_aee,_aef,_af0){
_af0=_af0||{};
var _af1=_af0.customs.group;
var _af2=_af0.customs.decimal;
var _af3=_aef.split(";");
var _af4=_af3[0];
_aef=_af3[(_aee<0)?1:0]||("-"+_af4);
if(_aef.indexOf("%")!=-1){
_aee*=100;
}else{
if(_aef.indexOf("‰")!=-1){
_aee*=1000;
}else{
if(_aef.indexOf("¤")!=-1){
_af1=_af0.customs.currencyGroup||_af1;
_af2=_af0.customs.currencyDecimal||_af2;
_aef=_aef.replace(/\u00a4{1,3}/,function(_af5){
var prop=["symbol","currency","displayName"][_af5.length-1];
return _af0[prop]||_af0.currency||"";
});
}else{
if(_aef.indexOf("E")!=-1){
throw new Error("exponential notation not supported");
}
}
}
}
var _af7=dojo.number._numberPatternRE;
var _af8=_af4.match(_af7);
if(!_af8){
throw new Error("unable to find a number expression in pattern: "+_aef);
}
if(_af0.fractional===false){
_af0.places=0;
}
return _aef.replace(_af7,dojo.number._formatAbsolute(_aee,_af8[0],{decimal:_af2,group:_af1,places:_af0.places,round:_af0.round}));
};
dojo.number.round=function(_af9,_afa,_afb){
var _afc=String(_af9).split(".");
var _afd=(_afc[1]&&_afc[1].length)||0;
if(_afd>_afa){
var _afe=Math.pow(10,_afa);
if(_afb>0){
_afe*=10/_afb;
_afa++;
}
_af9=Math.round(_af9*_afe)/_afe;
_afc=String(_af9).split(".");
_afd=(_afc[1]&&_afc[1].length)||0;
if(_afd>_afa){
_afc[1]=_afc[1].substr(0,_afa);
_af9=Number(_afc.join("."));
}
}
return _af9;
};
dojo.number._formatAbsolute=function(_aff,_b00,_b01){
_b01=_b01||{};
if(_b01.places===true){
_b01.places=0;
}
if(_b01.places===Infinity){
_b01.places=6;
}
var _b02=_b00.split(".");
var _b03=(_b01.places>=0)?_b01.places:(_b02[1]&&_b02[1].length)||0;
if(!(_b01.round<0)){
_aff=dojo.number.round(_aff,_b03,_b01.round);
}
var _b04=String(Math.abs(_aff)).split(".");
var _b05=_b04[1]||"";
if(_b01.places){
var _b06=dojo.isString(_b01.places)&&_b01.places.indexOf(",");
if(_b06){
_b01.places=_b01.places.substring(_b06+1);
}
_b04[1]=dojo.string.pad(_b05.substr(0,_b01.places),_b01.places,"0",true);
}else{
if(_b02[1]&&_b01.places!==0){
var pad=_b02[1].lastIndexOf("0")+1;
if(pad>_b05.length){
_b04[1]=dojo.string.pad(_b05,pad,"0",true);
}
var _b08=_b02[1].length;
if(_b08<_b05.length){
_b04[1]=_b05.substr(0,_b08);
}
}else{
if(_b04[1]){
_b04.pop();
}
}
}
var _b09=_b02[0].replace(",","");
pad=_b09.indexOf("0");
if(pad!=-1){
pad=_b09.length-pad;
if(pad>_b04[0].length){
_b04[0]=dojo.string.pad(_b04[0],pad);
}
if(_b09.indexOf("#")==-1){
_b04[0]=_b04[0].substr(_b04[0].length-pad);
}
}
var _b0a=_b02[0].lastIndexOf(",");
var _b0b,_b0c;
if(_b0a!=-1){
_b0b=_b02[0].length-_b0a-1;
var _b0d=_b02[0].substr(0,_b0a);
_b0a=_b0d.lastIndexOf(",");
if(_b0a!=-1){
_b0c=_b0d.length-_b0a-1;
}
}
var _b0e=[];
for(var _b0f=_b04[0];_b0f;){
var off=_b0f.length-_b0b;
_b0e.push((off>0)?_b0f.substr(off):_b0f);
_b0f=(off>0)?_b0f.slice(0,off):"";
if(_b0c){
_b0b=_b0c;
delete _b0c;
}
}
_b04[0]=_b0e.reverse().join(_b01.group||",");
return _b04.join(_b01.decimal||".");
};
dojo.number.regexp=function(_b11){
return dojo.number._parseInfo(_b11).regexp;
};
dojo.number._parseInfo=function(_b12){
_b12=_b12||{};
var _b13=dojo.i18n.normalizeLocale(_b12.locale);
var _b14=dojo.i18n.getLocalization("dojo.cldr","number",_b13);
var _b15=_b12.pattern||_b14[(_b12.type||"decimal")+"Format"];
var _b16=_b14.group;
var _b17=_b14.decimal;
var _b18=1;
if(_b15.indexOf("%")!=-1){
_b18/=100;
}else{
if(_b15.indexOf("‰")!=-1){
_b18/=1000;
}else{
var _b19=_b15.indexOf("¤")!=-1;
if(_b19){
_b16=_b14.currencyGroup||_b16;
_b17=_b14.currencyDecimal||_b17;
}
}
}
var _b1a=_b15.split(";");
if(_b1a.length==1){
_b1a.push("-"+_b1a[0]);
}
var re=dojo.regexp.buildGroupRE(_b1a,function(_b1c){
_b1c="(?:"+dojo.regexp.escapeString(_b1c,".")+")";
return _b1c.replace(dojo.number._numberPatternRE,function(_b1d){
var _b1e={signed:false,separator:_b12.strict?_b16:[_b16,""],fractional:_b12.fractional,decimal:_b17,exponent:false};
var _b1f=_b1d.split(".");
var _b20=_b12.places;
if(_b1f.length==1||_b20===0){
_b1e.fractional=false;
}else{
if(_b20===undefined){
_b20=_b12.pattern?_b1f[1].lastIndexOf("0")+1:Infinity;
}
if(_b20&&_b12.fractional==undefined){
_b1e.fractional=true;
}
if(!_b12.places&&(_b20<_b1f[1].length)){
_b20+=","+_b1f[1].length;
}
_b1e.places=_b20;
}
var _b21=_b1f[0].split(",");
if(_b21.length>1){
_b1e.groupSize=_b21.pop().length;
if(_b21.length>1){
_b1e.groupSize2=_b21.pop().length;
}
}
return "("+dojo.number._realNumberRegexp(_b1e)+")";
});
},true);
if(_b19){
re=re.replace(/([\s\xa0]*)(\u00a4{1,3})([\s\xa0]*)/g,function(_b22,_b23,_b24,_b25){
var prop=["symbol","currency","displayName"][_b24.length-1];
var _b27=dojo.regexp.escapeString(_b12[prop]||_b12.currency||"");
_b23=_b23?"[\\s\\xa0]":"";
_b25=_b25?"[\\s\\xa0]":"";
if(!_b12.strict){
if(_b23){
_b23+="*";
}
if(_b25){
_b25+="*";
}
return "(?:"+_b23+_b27+_b25+")?";
}
return _b23+_b27+_b25;
});
}
return {regexp:re.replace(/[\xa0 ]/g,"[\\s\\xa0]"),group:_b16,decimal:_b17,factor:_b18};
};
dojo.number.parse=function(_b28,_b29){
var info=dojo.number._parseInfo(_b29);
var _b2b=(new RegExp("^"+info.regexp+"$")).exec(_b28);
if(!_b2b){
return NaN;
}
var _b2c=_b2b[1];
if(!_b2b[1]){
if(!_b2b[2]){
return NaN;
}
_b2c=_b2b[2];
info.factor*=-1;
}
_b2c=_b2c.replace(new RegExp("["+info.group+"\\s\\xa0"+"]","g"),"").replace(info.decimal,".");
return Number(_b2c)*info.factor;
};
dojo.number._realNumberRegexp=function(_b2d){
_b2d=_b2d||{};
if(!("places" in _b2d)){
_b2d.places=Infinity;
}
if(typeof _b2d.decimal!="string"){
_b2d.decimal=".";
}
if(!("fractional" in _b2d)||/^0/.test(_b2d.places)){
_b2d.fractional=[true,false];
}
if(!("exponent" in _b2d)){
_b2d.exponent=[true,false];
}
if(!("eSigned" in _b2d)){
_b2d.eSigned=[true,false];
}
var _b2e=dojo.number._integerRegexp(_b2d);
var _b2f=dojo.regexp.buildGroupRE(_b2d.fractional,function(q){
var re="";
if(q&&(_b2d.places!==0)){
re="\\"+_b2d.decimal;
if(_b2d.places==Infinity){
re="(?:"+re+"\\d+)?";
}else{
re+="\\d{"+_b2d.places+"}";
}
}
return re;
},true);
var _b32=dojo.regexp.buildGroupRE(_b2d.exponent,function(q){
if(q){
return "([eE]"+dojo.number._integerRegexp({signed:_b2d.eSigned})+")";
}
return "";
});
var _b34=_b2e+_b2f;
if(_b2f){
_b34="(?:(?:"+_b34+")|(?:"+_b2f+"))";
}
return _b34+_b32;
};
dojo.number._integerRegexp=function(_b35){
_b35=_b35||{};
if(!("signed" in _b35)){
_b35.signed=[true,false];
}
if(!("separator" in _b35)){
_b35.separator="";
}else{
if(!("groupSize" in _b35)){
_b35.groupSize=3;
}
}
var _b36=dojo.regexp.buildGroupRE(_b35.signed,function(q){
return q?"[-+]":"";
},true);
var _b38=dojo.regexp.buildGroupRE(_b35.separator,function(sep){
if(!sep){
return "(?:0|[1-9]\\d*)";
}
sep=dojo.regexp.escapeString(sep);
if(sep==" "){
sep="\\s";
}else{
if(sep==" "){
sep="\\s\\xa0";
}
}
var grp=_b35.groupSize,grp2=_b35.groupSize2;
if(grp2){
var _b3c="(?:0|[1-9]\\d{0,"+(grp2-1)+"}(?:["+sep+"]\\d{"+grp2+"})*["+sep+"]\\d{"+grp+"})";
return ((grp-grp2)>0)?"(?:"+_b3c+"|(?:0|[1-9]\\d{0,"+(grp-1)+"}))":_b3c;
}
return "(?:0|[1-9]\\d{0,"+(grp-1)+"}(?:["+sep+"]\\d{"+grp+"})*)";
},true);
return _b36+_b38;
};
}
if(!dojo._hasResource["dijit.form.Slider"]){
dojo._hasResource["dijit.form.Slider"]=true;
dojo.provide("dijit.form.Slider");
dojo.declare("dijit.form.HorizontalSlider",[dijit.form._FormValueWidget,dijit._Container],{templateString:"<table class=\"dijit dijitReset dijitSlider\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" rules=\"none\" dojoAttachEvent=\"onkeypress:_onKeyPress\"\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td class=\"dijitReset\" colspan=\"2\"></td\r\n\t\t><td dojoAttachPoint=\"containerNode,topDecoration\" class=\"dijitReset\" style=\"text-align:center;width:100%;\"></td\r\n\t\t><td class=\"dijitReset\" colspan=\"2\"></td\r\n\t></tr\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td class=\"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerH\"\r\n\t\t\t><div class=\"dijitSliderDecrementIconH\" tabIndex=\"-1\" style=\"display:none\" dojoAttachPoint=\"decrementButton\"><span class=\"dijitSliderButtonInner\">-</span></div\r\n\t\t></td\r\n\t\t><td class=\"dijitReset\"\r\n\t\t\t><div class=\"dijitSliderBar dijitSliderBumper dijitSliderBumperH dijitSliderLeftBumper dijitSliderLeftBumper\" dojoAttachEvent=\"onclick:_onClkDecBumper\"></div\r\n\t\t></td\r\n\t\t><td class=\"dijitReset\"\r\n\t\t\t><input dojoAttachPoint=\"valueNode\" type=\"hidden\" name=\"${name}\"\r\n\t\t\t/><div class=\"dijitReset dijitSliderBarContainerH\" waiRole=\"presentation\" dojoAttachPoint=\"sliderBarContainer\"\r\n\t\t\t\t><div waiRole=\"presentation\" dojoAttachPoint=\"progressBar\" class=\"dijitSliderBar dijitSliderBarH dijitSliderProgressBar dijitSliderProgressBarH\" dojoAttachEvent=\"onclick:_onBarClick\"\r\n\t\t\t\t\t><div class=\"dijitSliderMoveable dijitSliderMoveableH\" \r\n\t\t\t\t\t\t><div dojoAttachPoint=\"sliderHandle,focusNode\" class=\"dijitSliderImageHandle dijitSliderImageHandleH\" dojoAttachEvent=\"onmousedown:_onHandleClick\" waiRole=\"slider\" valuemin=\"${minimum}\" valuemax=\"${maximum}\"></div\r\n\t\t\t\t\t></div\r\n\t\t\t\t></div\r\n\t\t\t\t><div waiRole=\"presentation\" dojoAttachPoint=\"remainingBar\" class=\"dijitSliderBar dijitSliderBarH dijitSliderRemainingBar dijitSliderRemainingBarH\" dojoAttachEvent=\"onclick:_onBarClick\"></div\r\n\t\t\t></div\r\n\t\t></td\r\n\t\t><td class=\"dijitReset\"\r\n\t\t\t><div class=\"dijitSliderBar dijitSliderBumper dijitSliderBumperH dijitSliderRightBumper dijitSliderRightBumper\" dojoAttachEvent=\"onclick:_onClkIncBumper\"></div\r\n\t\t></td\r\n\t\t><td class=\"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerH\" style=\"right:0px;\"\r\n\t\t\t><div class=\"dijitSliderIncrementIconH\" tabIndex=\"-1\" style=\"display:none\" dojoAttachPoint=\"incrementButton\"><span class=\"dijitSliderButtonInner\">+</span></div\r\n\t\t></td\r\n\t></tr\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td class=\"dijitReset\" colspan=\"2\"></td\r\n\t\t><td dojoAttachPoint=\"containerNode,bottomDecoration\" class=\"dijitReset\" style=\"text-align:center;\"></td\r\n\t\t><td class=\"dijitReset\" colspan=\"2\"></td\r\n\t></tr\r\n></table>\r\n",value:0,showButtons:true,minimum:0,maximum:100,discreteValues:Infinity,pageIncrement:2,clickSelect:true,slideDuration:dijit.defaultDuration,widgetsInTemplate:true,attributeMap:dojo.mixin(dojo.clone(dijit.form._FormWidget.prototype.attributeMap),{id:"",name:"valueNode"}),baseClass:"dijitSlider",_mousePixelCoord:"pageX",_pixelCount:"w",_startingPixelCoord:"x",_startingPixelCount:"l",_handleOffsetCoord:"left",_progressPixelSize:"width",_onKeyPress:function(e){
if(this.disabled||this.readOnly||e.altKey||e.ctrlKey){
return;
}
switch(e.charOrCode){
case dojo.keys.HOME:
this._setValueAttr(this.minimum,true);
break;
case dojo.keys.END:
this._setValueAttr(this.maximum,true);
break;
case ((this._descending||this.isLeftToRight())?dojo.keys.RIGHT_ARROW:dojo.keys.LEFT_ARROW):
case (this._descending===false?dojo.keys.DOWN_ARROW:dojo.keys.UP_ARROW):
case (this._descending===false?dojo.keys.PAGE_DOWN:dojo.keys.PAGE_UP):
this.increment(e);
break;
case ((this._descending||this.isLeftToRight())?dojo.keys.LEFT_ARROW:dojo.keys.RIGHT_ARROW):
case (this._descending===false?dojo.keys.UP_ARROW:dojo.keys.DOWN_ARROW):
case (this._descending===false?dojo.keys.PAGE_UP:dojo.keys.PAGE_DOWN):
this.decrement(e);
break;
default:
this.inherited(arguments);
return;
}
dojo.stopEvent(e);
},_onHandleClick:function(e){
if(this.disabled||this.readOnly){
return;
}
if(!dojo.isIE){
dijit.focus(this.sliderHandle);
}
dojo.stopEvent(e);
},_isReversed:function(){
return !this.isLeftToRight();
},_onBarClick:function(e){
if(this.disabled||this.readOnly||!this.clickSelect){
return;
}
dijit.focus(this.sliderHandle);
dojo.stopEvent(e);
var _b40=dojo.coords(this.sliderBarContainer,true);
var _b41=e[this._mousePixelCoord]-_b40[this._startingPixelCoord];
this._setPixelValue(this._isReversed()?(_b40[this._pixelCount]-_b41):_b41,_b40[this._pixelCount],true);
},_setPixelValue:function(_b42,_b43,_b44){
if(this.disabled||this.readOnly){
return;
}
_b42=_b42<0?0:_b43<_b42?_b43:_b42;
var _b45=this.discreteValues;
if(_b45<=1||_b45==Infinity){
_b45=_b43;
}
_b45--;
var _b46=_b43/_b45;
var _b47=Math.round(_b42/_b46);
this._setValueAttr((this.maximum-this.minimum)*_b47/_b45+this.minimum,_b44);
},_setValueAttr:function(_b48,_b49){
this.valueNode.value=this.value=_b48;
dijit.setWaiState(this.focusNode,"valuenow",_b48);
this.inherited(arguments);
var _b4a=(_b48-this.minimum)/(this.maximum-this.minimum);
var _b4b=(this._descending===false)?this.remainingBar:this.progressBar;
var _b4c=(this._descending===false)?this.progressBar:this.remainingBar;
if(this._inProgressAnim&&this._inProgressAnim.status!="stopped"){
this._inProgressAnim.stop(true);
}
if(_b49&&this.slideDuration>0&&_b4b.style[this._progressPixelSize]){
var _b4d=this;
var _b4e={};
var _b4f=parseFloat(_b4b.style[this._progressPixelSize]);
var _b50=this.slideDuration*(_b4a-_b4f/100);
if(_b50==0){
return;
}
if(_b50<0){
_b50=0-_b50;
}
_b4e[this._progressPixelSize]={start:_b4f,end:_b4a*100,units:"%"};
this._inProgressAnim=dojo.animateProperty({node:_b4b,duration:_b50,onAnimate:function(v){
_b4c.style[_b4d._progressPixelSize]=(100-parseFloat(v[_b4d._progressPixelSize]))+"%";
},onEnd:function(){
delete _b4d._inProgressAnim;
},properties:_b4e});
this._inProgressAnim.play();
}else{
_b4b.style[this._progressPixelSize]=(_b4a*100)+"%";
_b4c.style[this._progressPixelSize]=((1-_b4a)*100)+"%";
}
},_bumpValue:function(_b52){
if(this.disabled||this.readOnly){
return;
}
var s=dojo.getComputedStyle(this.sliderBarContainer);
var c=dojo._getContentBox(this.sliderBarContainer,s);
var _b55=this.discreteValues;
if(_b55<=1||_b55==Infinity){
_b55=c[this._pixelCount];
}
_b55--;
var _b56=(this.value-this.minimum)*_b55/(this.maximum-this.minimum)+_b52;
if(_b56<0){
_b56=0;
}
if(_b56>_b55){
_b56=_b55;
}
_b56=_b56*(this.maximum-this.minimum)/_b55+this.minimum;
this._setValueAttr(_b56,true);
},_onClkIncBumper:function(){
this._setValueAttr(this._descending===false?this.minimum:this.maximum,true);
},_onClkDecBumper:function(){
this._setValueAttr(this._descending===false?this.maximum:this.minimum,true);
},decrement:function(e){
this._bumpValue(e.charOrCode==dojo.keys.PAGE_DOWN?-this.pageIncrement:-1);
},increment:function(e){
this._bumpValue(e.charOrCode==dojo.keys.PAGE_UP?this.pageIncrement:1);
},_mouseWheeled:function(evt){
dojo.stopEvent(evt);
var _b5a=!dojo.isMozilla;
var _b5b=evt[(_b5a?"wheelDelta":"detail")]*(_b5a?1:-1);
this[(_b5b<0?"decrement":"increment")](evt);
},startup:function(){
dojo.forEach(this.getChildren(),function(_b5c){
if(this[_b5c.container]!=this.containerNode){
this[_b5c.container].appendChild(_b5c.domNode);
}
},this);
},_typematicCallback:function(_b5d,_b5e,e){
if(_b5d==-1){
return;
}
this[(_b5e==(this._descending?this.incrementButton:this.decrementButton))?"decrement":"increment"](e);
},postCreate:function(){
if(this.showButtons){
this.incrementButton.style.display="";
this.decrementButton.style.display="";
this._connects.push(dijit.typematic.addMouseListener(this.decrementButton,this,"_typematicCallback",25,500));
this._connects.push(dijit.typematic.addMouseListener(this.incrementButton,this,"_typematicCallback",25,500));
}
this.connect(this.domNode,!dojo.isMozilla?"onmousewheel":"DOMMouseScroll","_mouseWheeled");
var _b60=this;
var _b61=function(){
dijit.form._SliderMover.apply(this,arguments);
this.widget=_b60;
};
dojo.extend(_b61,dijit.form._SliderMover.prototype);
this._movable=new dojo.dnd.Moveable(this.sliderHandle,{mover:_b61});
var _b62=dojo.query("label[for=\""+this.id+"\"]");
if(_b62.length){
_b62[0].id=(this.id+"_label");
dijit.setWaiState(this.focusNode,"labelledby",_b62[0].id);
}
dijit.setWaiState(this.focusNode,"valuemin",this.minimum);
dijit.setWaiState(this.focusNode,"valuemax",this.maximum);
this.inherited(arguments);
},destroy:function(){
this._movable.destroy();
if(this._inProgressAnim&&this._inProgressAnim.status!="stopped"){
this._inProgressAnim.stop(true);
}
this.inherited(arguments);
}});
dojo.declare("dijit.form.VerticalSlider",dijit.form.HorizontalSlider,{templateString:"<table class=\"dijitReset dijitSlider\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" rules=\"none\" dojoAttachEvent=\"onkeypress:_onKeyPress\"\r\n><tbody class=\"dijitReset\"\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td class=\"dijitReset\"></td\r\n\t\t><td class=\"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerV\"\r\n\t\t\t><div class=\"dijitSliderIncrementIconV\" tabIndex=\"-1\" style=\"display:none\" dojoAttachPoint=\"decrementButton\"><span class=\"dijitSliderButtonInner\">+</span></div\r\n\t\t></td\r\n\t\t><td class=\"dijitReset\"></td\r\n\t></tr\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td class=\"dijitReset\"></td\r\n\t\t><td class=\"dijitReset\"\r\n\t\t\t><center><div class=\"dijitSliderBar dijitSliderBumper dijitSliderBumperV dijitSliderTopBumper dijitSliderTopBumper\" dojoAttachEvent=\"onclick:_onClkIncBumper\"></div></center\r\n\t\t></td\r\n\t\t><td class=\"dijitReset\"></td\r\n\t></tr\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td dojoAttachPoint=\"leftDecoration\" class=\"dijitReset\" style=\"text-align:center;height:100%;\"></td\r\n\t\t><td class=\"dijitReset\" style=\"height:100%;\"\r\n\t\t\t><input dojoAttachPoint=\"valueNode\" type=\"hidden\" name=\"${name}\"\r\n\t\t\t/><center class=\"dijitReset dijitSliderBarContainerV\" waiRole=\"presentation\" dojoAttachPoint=\"sliderBarContainer\"\r\n\t\t\t\t><div waiRole=\"presentation\" dojoAttachPoint=\"remainingBar\" class=\"dijitSliderBar dijitSliderBarV dijitSliderRemainingBar dijitSliderRemainingBarV\" dojoAttachEvent=\"onclick:_onBarClick\"><!--#5629--></div\r\n\t\t\t\t><div waiRole=\"presentation\" dojoAttachPoint=\"progressBar\" class=\"dijitSliderBar dijitSliderBarV dijitSliderProgressBar dijitSliderProgressBarV\" dojoAttachEvent=\"onclick:_onBarClick\"\r\n\t\t\t\t\t><div class=\"dijitSliderMoveable\" style=\"vertical-align:top;\" \r\n\t\t\t\t\t\t><div dojoAttachPoint=\"sliderHandle,focusNode\" class=\"dijitSliderImageHandle dijitSliderImageHandleV\" dojoAttachEvent=\"onmousedown:_onHandleClick\" waiRole=\"slider\" valuemin=\"${minimum}\" valuemax=\"${maximum}\"></div\r\n\t\t\t\t\t></div\r\n\t\t\t\t></div\r\n\t\t\t></center\r\n\t\t></td\r\n\t\t><td dojoAttachPoint=\"containerNode,rightDecoration\" class=\"dijitReset\" style=\"text-align:center;height:100%;\"></td\r\n\t></tr\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td class=\"dijitReset\"></td\r\n\t\t><td class=\"dijitReset\"\r\n\t\t\t><center><div class=\"dijitSliderBar dijitSliderBumper dijitSliderBumperV dijitSliderBottomBumper dijitSliderBottomBumper\" dojoAttachEvent=\"onclick:_onClkDecBumper\"></div></center\r\n\t\t></td\r\n\t\t><td class=\"dijitReset\"></td\r\n\t></tr\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td class=\"dijitReset\"></td\r\n\t\t><td class=\"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerV\"\r\n\t\t\t><div class=\"dijitSliderDecrementIconV\" tabIndex=\"-1\" style=\"display:none\" dojoAttachPoint=\"incrementButton\"><span class=\"dijitSliderButtonInner\">-</span></div\r\n\t\t></td\r\n\t\t><td class=\"dijitReset\"></td\r\n\t></tr\r\n></tbody></table>\r\n",_mousePixelCoord:"pageY",_pixelCount:"h",_startingPixelCoord:"y",_startingPixelCount:"t",_handleOffsetCoord:"top",_progressPixelSize:"height",_descending:true,startup:function(){
if(this._started){
return;
}
if(!this.isLeftToRight()&&dojo.isMoz){
if(this.leftDecoration){
this._rtlRectify(this.leftDecoration);
}
if(this.rightDecoration){
this._rtlRectify(this.rightDecoration);
}
}
this.inherited(arguments);
},_isReversed:function(){
return this._descending;
},_rtlRectify:function(_b63){
var _b64=[];
while(_b63.firstChild){
_b64.push(_b63.firstChild);
_b63.removeChild(_b63.firstChild);
}
for(var i=_b64.length-1;i>=0;i--){
if(_b64[i]){
_b63.appendChild(_b64[i]);
}
}
}});
dojo.declare("dijit.form._SliderMover",dojo.dnd.Mover,{onMouseMove:function(e){
var _b67=this.widget;
var _b68=_b67._abspos;
if(!_b68){
_b68=_b67._abspos=dojo.coords(_b67.sliderBarContainer,true);
_b67._setPixelValue_=dojo.hitch(_b67,"_setPixelValue");
_b67._isReversed_=_b67._isReversed();
}
var _b69=e[_b67._mousePixelCoord]-_b68[_b67._startingPixelCoord];
_b67._setPixelValue_(_b67._isReversed_?(_b68[_b67._pixelCount]-_b69):_b69,_b68[_b67._pixelCount],false);
},destroy:function(e){
dojo.dnd.Mover.prototype.destroy.apply(this,arguments);
var _b6b=this.widget;
_b6b._abspos=null;
_b6b._setValueAttr(_b6b.value,true);
}});
dojo.declare("dijit.form.HorizontalRule",[dijit._Widget,dijit._Templated],{templateString:"<div class=\"dijitRuleContainer dijitRuleContainerH\"></div>",count:3,container:"containerNode",ruleStyle:"",_positionPrefix:"<div class=\"dijitRuleMark dijitRuleMarkH\" style=\"left:",_positionSuffix:"%;",_suffix:"\"></div>",_genHTML:function(pos,ndx){
return this._positionPrefix+pos+this._positionSuffix+this.ruleStyle+this._suffix;
},_isHorizontal:true,postCreate:function(){
var _b6e;
if(this.count==1){
_b6e=this._genHTML(50,0);
}else{
var i;
var _b70=100/(this.count-1);
if(!this._isHorizontal||this.isLeftToRight()){
_b6e=this._genHTML(0,0);
for(i=1;i<this.count-1;i++){
_b6e+=this._genHTML(_b70*i,i);
}
_b6e+=this._genHTML(100,this.count-1);
}else{
_b6e=this._genHTML(100,0);
for(i=1;i<this.count-1;i++){
_b6e+=this._genHTML(100-_b70*i,i);
}
_b6e+=this._genHTML(0,this.count-1);
}
}
this.domNode.innerHTML=_b6e;
}});
dojo.declare("dijit.form.VerticalRule",dijit.form.HorizontalRule,{templateString:"<div class=\"dijitRuleContainer dijitRuleContainerV\"></div>",_positionPrefix:"<div class=\"dijitRuleMark dijitRuleMarkV\" style=\"top:",_isHorizontal:false});
dojo.declare("dijit.form.HorizontalRuleLabels",dijit.form.HorizontalRule,{templateString:"<div class=\"dijitRuleContainer dijitRuleContainerH dijitRuleLabelsContainer dijitRuleLabelsContainerH\"></div>",labelStyle:"",labels:[],numericMargin:0,minimum:0,maximum:1,constraints:{pattern:"#%"},_positionPrefix:"<div class=\"dijitRuleLabelContainer dijitRuleLabelContainerH\" style=\"left:",_labelPrefix:"\"><span class=\"dijitRuleLabel dijitRuleLabelH\">",_suffix:"</span></div>",_calcPosition:function(pos){
return pos;
},_genHTML:function(pos,ndx){
return this._positionPrefix+this._calcPosition(pos)+this._positionSuffix+this.labelStyle+this._labelPrefix+this.labels[ndx]+this._suffix;
},getLabels:function(){
var _b74=this.labels;
if(!_b74.length){
_b74=dojo.query("> li",this.srcNodeRef).map(function(node){
return String(node.innerHTML);
});
}
this.srcNodeRef.innerHTML="";
if(!_b74.length&&this.count>1){
var _b76=this.minimum;
var inc=(this.maximum-_b76)/(this.count-1);
for(var i=0;i<this.count;i++){
_b74.push((i<this.numericMargin||i>=(this.count-this.numericMargin))?"":dojo.number.format(_b76,this.constraints));
_b76+=inc;
}
}
return _b74;
},postMixInProperties:function(){
this.inherited(arguments);
this.labels=this.getLabels();
this.count=this.labels.length;
}});
dojo.declare("dijit.form.VerticalRuleLabels",dijit.form.HorizontalRuleLabels,{templateString:"<div class=\"dijitRuleContainer dijitRuleContainerV dijitRuleLabelsContainer dijitRuleLabelsContainerV\"></div>",_positionPrefix:"<div class=\"dijitRuleLabelContainer dijitRuleLabelContainerV\" style=\"top:",_labelPrefix:"\"><span class=\"dijitRuleLabel dijitRuleLabelV\">",_calcPosition:function(pos){
return 100-pos;
},_isHorizontal:false});
}
if(!dojo._hasResource["dojo.dnd.TimedMoveable"]){
dojo._hasResource["dojo.dnd.TimedMoveable"]=true;
dojo.provide("dojo.dnd.TimedMoveable");
(function(){
var _b7a=dojo.dnd.Moveable.prototype.onMove;
dojo.declare("dojo.dnd.TimedMoveable",dojo.dnd.Moveable,{timeout:40,constructor:function(node,_b7c){
if(!_b7c){
_b7c={};
}
if(_b7c.timeout&&typeof _b7c.timeout=="number"&&_b7c.timeout>=0){
this.timeout=_b7c.timeout;
}
},markupFactory:function(_b7d,node){
return new dojo.dnd.TimedMoveable(node,_b7d);
},onMoveStop:function(_b7f){
if(_b7f._timer){
clearTimeout(_b7f._timer);
_b7a.call(this,_b7f,_b7f._leftTop);
}
dojo.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);
},onMove:function(_b80,_b81){
_b80._leftTop=_b81;
if(!_b80._timer){
var _t=this;
_b80._timer=setTimeout(function(){
_b80._timer=null;
_b7a.call(_t,_b80,_b80._leftTop);
},this.timeout);
}
}});
})();
}
if(!dojo._hasResource["dojo.html"]){
dojo._hasResource["dojo.html"]=true;
dojo.provide("dojo.html");
(function(){
var _b83=0;
dojo.html._secureForInnerHtml=function(cont){
return cont.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"");
};
dojo.html._emptyNode=function(node){
while(node.firstChild){
dojo._destroyElement(node.firstChild);
}
};
dojo.html._setNodeContent=function(node,cont,_b88){
if(_b88){
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(_b90,node){
dojo.mixin(this,_b90||{});
node=this.node=dojo.byId(this.node||node);
if(!this.id){
this.id=["Setter",(node)?node.id||node.tagName:"",_b83++].join("_");
}
if(!(this.node||node)){
new Error(this.declaredClass+": no node provided to "+this.id);
}
},set:function(cont,_b93){
if(undefined!==cont){
this.content=cont;
}
if(_b93){
this._mixin(_b93);
}
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 _b95=this.onContentError(e);
try{
node.innerHTML=_b95;
}
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 _b98=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_b98){
cont=_b98[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(_b9a){
var _b9b={},key;
for(key in _b9a){
if(key in _b9b){
continue;
}
this[key]=_b9a[key];
}
},_parse:function(){
var _b9d=this.node;
try{
this.parseResults=dojo.parser.parse(_b9d,true);
}
catch(e){
this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);
}
},_onError:function(type,err,_ba0){
var _ba1=this["on"+type+"Error"].call(this,err);
if(_ba0){
console.error(_ba0,err);
}else{
if(_ba1){
dojo.html._setNodeContent(this.node,_ba1,true);
}
}
}});
dojo.html.set=function(node,cont,_ba4){
if(undefined==cont){
console.warn("dojo.html.set: no cont argument provided, using empty string");
cont="";
}
if(!_ba4){
return dojo.html._setNodeContent(node,cont,true);
}else{
var op=new dojo.html._ContentSetter(dojo.mixin(_ba4,{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,_isRealContent:true,postMixInProperties:function(){
this.inherited(arguments);
var _ba6=dojo.i18n.getLocalization("dijit","loading",this.lang);
this.loadingMessage=dojo.string.substitute(this.loadingMessage,_ba6);
this.errorMessage=dojo.string.substitute(this.errorMessage,_ba6);
},buildRendering:function(){
this.inherited(arguments);
if(!this.containerNode){
this.containerNode=this.domNode;
}
},postCreate:function(){
this.domNode.title="";
if(!dijit.hasWaiRole(this.domNode)){
dijit.setWaiRole(this.domNode,"group");
}
dojo.addClass(this.domNode,this.baseClass);
},startup:function(){
if(this._started){
return;
}
if(this.doLayout!="false"&&this.doLayout!==false){
this._checkIfSingleChild();
if(this._singleChild){
this._singleChild.startup();
}
}
this._loadCheck();
this.inherited(arguments);
},_checkIfSingleChild:function(){
var _ba7=dojo.query(">",this.containerNode),_ba8=_ba7.filter(function(node){
return dojo.hasAttr(node,"dojoType")||dojo.hasAttr(node,"widgetId");
}),_baa=dojo.filter(_ba8.map(dijit.byNode),function(_bab){
return _bab&&_bab.domNode&&_bab.resize;
});
if(_ba7.length==_ba8.length&&_baa.length==1){
this.isContainer=true;
this._singleChild=_baa[0];
}else{
delete this.isContainer;
delete this._singleChild;
}
},refresh:function(){
return this._prepareLoad(true);
},setHref:function(href){
dojo.deprecated("dijit.layout.ContentPane.setHref() is deprecated.\tUse attr('href', ...) instead.","","2.0");
return this.attr("href",href);
},_setHrefAttr:function(href){
this.href=href;
if(this._created){
return this._prepareLoad();
}
},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;
if(this.doLayout!="false"&&this.doLayout!==false){
this._checkIfSingleChild();
if(this._singleChild&&this._singleChild.resize){
this._singleChild.startup();
var cb=this._contentBox||dojo.contentBox(this.containerNode);
this._singleChild.resize({w:cb.w,h:cb.h});
}
}
},_getContentAttr:function(){
return this.containerNode.innerHTML;
},cancel:function(){
if(this._xhrDfd&&(this._xhrDfd.fired==-1)){
this._xhrDfd.cancel();
}
delete this._xhrDfd;
},destroyRecursive:function(_bb1){
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});
}
},_prepareLoad:function(_bb6){
this.cancel();
this.isLoaded=false;
this._loadCheck(_bb6);
},_isShown:function(){
if("open" in this){
return this.open;
}else{
var node=this.domNode;
return (node.style.display!="none")&&(node.style.visibility!="hidden");
}
},_loadCheck:function(_bb8){
var _bb9=this._isShown();
if(this.href&&(_bb8||(this.preload&&!this.isLoaded&&!this._xhrDfd)||(this.refreshOnShow&&_bb9&&!this._xhrDfd)||(!this.isLoaded&&_bb9&&!this._xhrDfd))){
this._downloadExternalContent();
}
},_downloadExternalContent:function(){
this._setContent(this.onDownloadStart(),true);
var self=this;
var _bbb={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};
if(dojo.isObject(this.ioArgs)){
dojo.mixin(_bbb,this.ioArgs);
}
var hand=this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_bbb);
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.cancelled){
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");
}
},_onUnloadHandler:function(){
this.isLoaded=false;
try{
this.onUnload();
}
catch(e){
console.error("Error "+this.widgetId+" running custom onUnload code");
}
},destroyDescendants:function(){
if(this._isRealContent){
this._onUnloadHandler();
}
var _bc0=this._contentSetter;
if(_bc0){
_bc0.empty();
}else{
this.inherited(arguments);
dojo.html._emptyNode(this.containerNode);
}
},_setContent:function(cont,_bc2){
this.destroyDescendants();
this._isRealContent=!_bc2;
var _bc3=this._contentSetter;
if(!(_bc3&&_bc3 instanceof dojo.html._ContentSetter)){
_bc3=this._contentSetter=new dojo.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){
var _bc5=this.onContentError(e);
try{
this.containerNode.innerHTML=_bc5;
}
catch(e){
console.error("Fatal "+this.id+" could not change content due to "+e.message,e);
}
})});
}
var _bc6=dojo.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad},this._contentSetterParams||{});
dojo.mixin(_bc3,_bc6);
_bc3.set((dojo.isObject(cont)&&cont.domNode)?cont.domNode:cont);
delete this._contentSetterParams;
if(!_bc2){
this._onLoadHandler(cont);
}
},_onError:function(type,err,_bc9){
var _bca=this["on"+type+"Error"].call(this,err);
if(_bc9){
console.error(_bc9,err);
}else{
if(_bca){
this._setContent(_bca,true);
}
}
},_createSubWidgets:function(){
try{
dojo.parser.parse(this.containerNode,true);
}
catch(e){
this._onError("Content",e,"Couldn't create widgets in "+this.id+(this.href?" from "+this.href:""));
}
},onLoad:function(data){
},onUnload:function(){
},onDownloadStart:function(){
return this.loadingMessage;
},onContentError:function(_bcc){
},onDownloadError:function(_bcd){
return this.errorMessage;
},onDownloadEnd:function(){
}});
}
if(!dojo._hasResource["dijit.form.Form"]){
dojo._hasResource["dijit.form.Form"]=true;
dojo.provide("dijit.form.Form");
dojo.declare("dijit.form._FormMixin",null,{reset:function(){
dojo.forEach(this.getDescendants(),function(_bce){
if(_bce.reset){
_bce.reset();
}
});
},validate:function(){
var _bcf=false;
return dojo.every(dojo.map(this.getDescendants(),function(_bd0){
_bd0._hasBeenBlurred=true;
var _bd1=_bd0.disabled||!_bd0.validate||_bd0.validate();
if(!_bd1&&!_bcf){
dijit.scrollIntoView(_bd0.containerNode||_bd0.domNode);
_bd0.focus();
_bcf=true;
}
return _bd1;
}),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(_bd6){
if(!_bd6.name){
return;
}
var _bd7=map[_bd6.name]||(map[_bd6.name]=[]);
_bd7.push(_bd6);
});
for(var name in map){
if(!map.hasOwnProperty(name)){
continue;
}
var _bd9=map[name],_bda=dojo.getObject(name,false,obj);
if(_bda===undefined){
continue;
}
if(!dojo.isArray(_bda)){
_bda=[_bda];
}
if(typeof _bd9[0].checked=="boolean"){
dojo.forEach(_bd9,function(w,i){
w.attr("value",dojo.indexOf(_bda,w.value)!=-1);
});
}else{
if(_bd9[0]._multiValue){
_bd9[0].attr("value",_bda);
}else{
dojo.forEach(_bd9,function(w,i){
w.attr("value",_bda[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(_be0){
var name=_be0.name;
if(!name||_be0.disabled){
return;
}
var _be2=_be0.attr("value");
if(typeof _be0.checked=="boolean"){
if(/Radio/.test(_be0.declaredClass)){
if(_be2!==false){
dojo.setObject(name,_be2,obj);
}
}else{
var ary=dojo.getObject(name,false,obj);
if(!ary){
ary=[];
dojo.setObject(name,ary,obj);
}
if(_be2!==false){
ary.push(_be2);
}
}
}else{
dojo.setObject(name,_be2,obj);
}
});
return obj;
},isValid:function(){
this._invalidWidgets=[];
return dojo.every(this.getDescendants(),function(_be4){
var _be5=_be4.disabled||!_be4.isValid||_be4.isValid();
if(!_be5){
this._invalidWidgets.push(_be4);
}
return _be5;
},this);
},onValidStateChange:function(_be6){
},_widgetChange:function(_be7){
var _be8=this._lastValidState;
if(!_be7||this._lastValidState===undefined){
_be8=this.isValid();
if(this._lastValidState===undefined){
this._lastValidState=_be8;
}
}else{
if(_be7.isValid){
this._invalidWidgets=dojo.filter(this._invalidWidgets||[],function(w){
return (w!=_be7);
},this);
if(!_be7.isValid()&&!_be7.attr("disabled")){
this._invalidWidgets.push(_be7);
}
_be8=(this._invalidWidgets.length===0);
}
}
if(_be8!==this._lastValidState){
this._lastValidState=_be8;
this.onValidStateChange(_be8);
}
},connectChildren:function(){
dojo.forEach(this._changeConnections,dojo.hitch(this,"disconnect"));
var _bea=this;
var _beb=this._changeConnections=[];
dojo.forEach(dojo.filter(this.getDescendants(),function(item){
return item.validate;
}),function(_bed){
_beb.push(_bea.connect(_bed,"validate",dojo.hitch(_bea,"_widgetChange",_bed)));
_beb.push(_bea.connect(_bed,"_setDisabledAttr",dojo.hitch(_bea,"_widgetChange",_bed)));
});
this._widgetChange(null);
},startup:function(){
this.inherited(arguments);
this._changeConnections=[];
this.connectChildren();
}});
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' name='${name}'></form>",attributeMap:dojo.mixin(dojo.clone(dijit._Widget.prototype.attributeMap),{action:"",method:"",encType:"","accept-charset":"",accept:"",target:""}),execute:function(_bee){
},onExecute:function(){
},_setEncTypeAttr:function(_bef){
this.encType=_bef;
dojo.attr(this.domNode,"encType",_bef);
if(dojo.isIE){
this.domNode.encoding=_bef;
}
},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["dijit.Dialog"]){
dojo._hasResource["dijit.Dialog"]=true;
dojo.provide("dijit.Dialog");
dojo.declare("dijit.DialogUnderlay",[dijit._Widget,dijit._Templated],{templateString:"<div class='dijitDialogUnderlayWrapper' id='${id}_wrapper'><div class='dijitDialogUnderlay ${class}' id='${id}' dojoAttachPoint='node'></div></div>",attributeMap:{},postCreate:function(){
dojo.body().appendChild(this.domNode);
this.bgIframe=new dijit.BackgroundIframe(this.domNode);
},layout:function(){
var _bf7=dijit.getViewport();
var is=this.node.style,os=this.domNode.style;
os.top=_bf7.t+"px";
os.left=_bf7.l+"px";
is.width=_bf7.w+"px";
is.height=_bf7.h+"px";
var _bfa=dijit.getViewport();
if(_bf7.w!=_bfa.w){
is.width=_bfa.w+"px";
}
if(_bf7.h!=_bfa.h){
is.height=_bfa.h+"px";
}
},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();
}
}});
dojo.declare("dijit._DialogMixin",null,{attributeMap:dijit._Widget.prototype.attributeMap,execute:function(_bfb){
},onCancel:function(){
},onExecute:function(){
},_onSubmit:function(){
this.onExecute();
this.execute(this.attr("value"));
},_getFocusItems:function(_bfc){
var _bfd=dijit._getTabNavigable(dojo.byId(_bfc));
this._firstFocusItem=_bfd.lowest||_bfd.first||_bfc;
this._lastFocusItem=_bfd.last||_bfd.highest||this._firstFocusItem;
if(dojo.isMoz&&this._firstFocusItem.tagName.toLowerCase()=="input"&&dojo.attr(this._firstFocusItem,"type").toLowerCase()=="file"){
dojo.attr(_bfc,"tabindex","0");
this._firstFocusItem=_bfc;
}
}});
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\">\r\n\t<div dojoAttachPoint=\"titleBar\" class=\"dijitDialogTitleBar\">\r\n\t<span dojoAttachPoint=\"titleNode\" class=\"dijitDialogTitle\" id=\"${id}_title\"></span>\r\n\t<span dojoAttachPoint=\"closeButtonNode\" class=\"dijitDialogCloseIcon\" dojoAttachEvent=\"onclick: onCancel\" title=\"${buttonCancel}\">\r\n\t\t<span dojoAttachPoint=\"closeText\" class=\"closeText\" title=\"${buttonCancel}\">x</span>\r\n\t</span>\r\n\t</div>\r\n\t\t<div dojoAttachPoint=\"containerNode\" class=\"dijitDialogPaneContent\"></div>\r\n</div>\r\n",attributeMap:dojo.mixin(dojo.clone(dijit._Widget.prototype.attributeMap),{title:[{node:"titleNode",type:"innerHTML"},{node:"titleBar",type:"attribute"}]}),open:false,duration:dijit.defaultDuration,refocus:true,autofocus:true,_firstFocusItem:null,_lastFocusItem:null,doLayout:false,draggable:true,postMixInProperties:function(){
var _bfe=dojo.i18n.getLocalization("dijit","common");
dojo.mixin(this,_bfe);
this.inherited(arguments);
},postCreate:function(){
var s=this.domNode.style;
s.visibility="hidden";
s.position="absolute";
s.display="";
s.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");
}
this._underlay=new dijit.DialogUnderlay({id:this.id+"_underlay","class":dojo.map(this["class"].split(/\s/),function(s){
return s+"_underlay";
}).join(" ")});
var _c05=this._underlay;
this._fadeIn=dojo.fadeIn({node:node,duration:this.duration,onBegin:dojo.hitch(_c05,"show")});
this._fadeOut=dojo.fadeOut({node:node,duration:this.duration,onEnd:function(){
node.style.visibility="hidden";
node.style.top="-9999px";
_c05.hide();
}});
},uninitialize:function(){
if(this._fadeIn&&this._fadeIn.status()=="playing"){
this._fadeIn.stop();
}
if(this._fadeOut&&this._fadeOut.status()=="playing"){
this._fadeOut.stop();
}
if(this._underlay){
this._underlay.destroy();
}
if(this._moveable){
this._moveable.destroy();
}
},_size:function(){
var mb=dojo.marginBox(this.domNode);
var _c07=dijit.getViewport();
if(mb.w>=_c07.w||mb.h>=_c07.h){
dojo.style(this.containerNode,{width:Math.min(mb.w,Math.floor(_c07.w*0.75))+"px",height:Math.min(mb.h,Math.floor(_c07.h*0.75))+"px",overflow:"auto",position:"relative"});
}
},_position:function(){
if(!dojo.hasClass(dojo.body(),"dojoMove")){
var node=this.domNode;
var _c09=dijit.getViewport();
var p=this._relativePosition;
var mb=p?null:dojo.marginBox(node);
dojo.style(node,{left:Math.floor(_c09.l+(p?p.l:(_c09.w-mb.w)/2))+"px",top:Math.floor(_c09.t+(p?p.t:(_c09.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 _c0f=(this._firstFocusItem==this._lastFocusItem);
if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){
if(!_c0f){
dijit.focus(this._lastFocusItem);
}
dojo.stopEvent(evt);
}else{
if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){
if(!_c0f){
dijit.focus(this._firstFocusItem);
}
dojo.stopEvent(evt);
}else{
while(node){
if(node==this.domNode){
if(evt.charOrCode==dk.ESCAPE){
this.onCancel();
}else{
return;
}
}
node=node.parentNode;
}
if(evt.charOrCode!==dk.TAB){
dojo.stopEvent(evt);
}else{
if(!dojo.isOpera){
try{
this._firstFocusItem.focus();
}
catch(e){
}
}
}
}
}
}
},show:function(){
if(this.open){
return;
}
if(!this._alreadyInitialized){
this._setup();
this._alreadyInitialized=true;
}
if(this._fadeOut.status()=="playing"){
this._fadeOut.stop();
}
this._modalconnects.push(dojo.connect(window,"onscroll",this,"layout"));
this._modalconnects.push(dojo.connect(window,"onresize",this,"layout"));
this._modalconnects.push(dojo.connect(dojo.doc.documentElement,"onkeypress",this,"_onKey"));
dojo.style(this.domNode,{opacity:0,visibility:""});
dojo.style(this.containerNode,{width:"auto",height:"auto"});
this.open=true;
this._loadCheck();
this._size();
this._position();
this._fadeIn.play();
this._savedFocus=dijit.getFocus(this);
if(this.autofocus){
this._getFocusItems(this.domNode);
setTimeout(dojo.hitch(dijit,"focus",this._firstFocusItem),50);
}
},hide:function(){
if(!this._alreadyInitialized){
return;
}
if(this._fadeIn.status()=="playing"){
this._fadeIn.stop();
}
this._fadeOut.play();
if(this._scrollConnected){
this._scrollConnected=false;
}
dojo.forEach(this._modalconnects,dojo.disconnect);
this._modalconnects=[];
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"){
this._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);
}});
dojo.declare("dijit.TooltipDialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{title:"",doLayout:false,autofocus:true,"class":"dijitTooltipDialog",_firstFocusItem:null,_lastFocusItem:null,templateString:null,templateString:"<div waiRole=\"presentation\">\r\n\t<div class=\"dijitTooltipContainer\" waiRole=\"presentation\">\r\n\t\t<div class =\"dijitTooltipContents dijitTooltipFocusNode\" dojoAttachPoint=\"containerNode\" tabindex=\"-1\" waiRole=\"dialog\"></div>\r\n\t</div>\r\n\t<div class=\"dijitTooltipConnector\" waiRole=\"presentation\"></div>\r\n</div>\r\n",postCreate:function(){
this.inherited(arguments);
this.connect(this.containerNode,"onkeypress","_onKey");
this.containerNode.title=this.title;
},orient:function(node,_c11,_c12){
this.domNode.className=this["class"]+" dijitTooltipAB"+(_c12.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_c12.charAt(0)=="T"?"Below":"Above");
},onOpen:function(pos){
this.orient(this.domNode,pos.aroundCorner,pos.corner);
this._loadCheck();
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 _c17=(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(!_c17){
dijit.focus(this._lastFocusItem);
}
dojo.stopEvent(evt);
}else{
if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){
if(!_c17){
dijit.focus(this._firstFocusItem);
}
dojo.stopEvent(evt);
}else{
if(evt.charOrCode===dk.TAB){
evt.stopPropagation();
}
}
}
}
}});
}
dojo.i18n._preloadLocalizations("dojo.nls.dojo",["da","es","hu","de","pt-br","pl","pt","ca","sv","ar","pt-pt","fi","zh","ru","xx","fr","zh-tw","it","th","cs","he","nl","el","no","ko","tr","en","ROOT","ja"]);
if(dojo.config.afterOnLoad&&dojo.isBrowser){
window.setTimeout(dojo._fakeLoadInit,1000);
}
})();
