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

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

		http://dojotoolkit.org

	for documentation and information on getting the source.
*/

(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 _7=_1[i];
_2+="var "+_7[0]+" = {}; "+_7[1]+" = "+_7[0]+";"+_7[1]+"._scopeName = '"+_7[1]+"';";
_3+=(i==0?"":",")+_7[0];
_4+=(i==0?"":",")+_7[1];
_5[_7[0]]=_7[1];
_6[_7[1]]=_7[0];
}
eval(_2+"dojo._scopeArgs = ["+_4+"];");
dojo._scopePrefixArgs=_3;
dojo._scopePrefix="(function("+_3+"){";
dojo._scopeSuffix="})("+_4+")";
dojo._scopeMap=_5;
dojo._scopeMapRev=_6;
}
(function(){
if(typeof this["loadFirebugConsole"]=="function"){
this["loadFirebugConsole"]();
}else{
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 _8=tn+"";
console[_8]=("log" in console)?function(){
var a=Array.apply({},arguments);
a.unshift(_8+":");
console["log"](a.join(" "));
}:function(){
};
console[_8]._fake=true;
})();
}
}
}
if(typeof dojo=="undefined"){
dojo={_scopeName:"dojo",_scopePrefix:"",_scopePrefixArgs:"",_scopeSuffix:"",_scopeMap:{},_scopeMapRev:{}};
}
var d=dojo;
if(typeof dijit=="undefined"){
dijit={_scopeName:"dijit"};
}
if(typeof dojox=="undefined"){
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 _9 in djConfig){
d.config[_9]=djConfig[_9];
}
}
dojo.locale=d.config.locale;
var _a="$Rev: 20734 $".match(/\d+/);
dojo.version={major:0,minor:0,patch:0,flag:"dev",revision:_a?+_a[0]:NaN,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());
}
var _b,_c,_d={};
for(var i in {toString:1}){
_b=[];
break;
}
dojo._extraNames=_b=_b||["hasOwnProperty","valueOf","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","constructor"];
_c=_b.length;
dojo._mixin=function(_e,_f){
var _10,s,i;
for(_10 in _f){
s=_f[_10];
if(!(_10 in _e)||(_e[_10]!==s&&(!(_10 in _d)||_d[_10]!==s))){
_e[_10]=s;
}
}
if(_c&&_f){
for(i=0;i<_c;++i){
_10=_b[i];
s=_f[_10];
if(!(_10 in _e)||(_e[_10]!==s&&(!(_10 in _d)||_d[_10]!==s))){
_e[_10]=s;
}
}
}
return _e;
};
dojo.mixin=function(obj,_11){
if(!obj){
obj={};
}
for(var i=1,l=arguments.length;i<l;i++){
d._mixin(obj,arguments[i]);
}
return obj;
};
dojo._getProp=function(_12,_13,_14){
var obj=_14||d.global;
for(var i=0,p;obj&&(p=_12[i]);i++){
if(i==0&&d._scopeMap[p]){
p=d._scopeMap[p];
}
obj=(p in obj?obj[p]:(_13?obj[p]={}:undefined));
}
return obj;
};
dojo.setObject=function(_15,_16,_17){
var _18=_15.split("."),p=_18.pop(),obj=d._getProp(_18,true,_17);
return obj&&p?(obj[p]=_16):undefined;
};
dojo.getObject=function(_19,_1a,_1b){
return d._getProp(_19.split("."),_1a,_1b);
};
dojo.exists=function(_1c,obj){
return !!d.getObject(_1c,false,obj);
};
dojo["eval"]=function(_1d){
return d.global.eval?d.global.eval(_1d):eval(_1d);
};
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(_1e){
var mp=d._modulePrefixes;
return !!(mp[_1e]&&mp[_1e].value);
},_getModulePrefix:function(_1f){
var mp=d._modulePrefixes;
if(d._moduleHasPrefix(_1f)){
return mp[_1f].value;
}
return _1f;
},_loadedUrls:[],_postLoad:false,_loaders:[],_unloaders:[],_loadNotifying:false});
dojo._loadPath=function(_20,_21,cb){
var uri=((_20.charAt(0)=="/"||_20.match(/^\w+:/))?"":d.baseUrl)+_20;
try{
return !_21?d._loadUri(uri,cb):d._loadUriAndCheck(uri,_21,cb);
}
catch(e){
console.error(e);
return false;
}
};
dojo._loadUri=function(uri,cb){
if(d._loadedUrls[uri]){
return true;
}
d._inFlightCount++;
var _22=d._getText(uri,true);
if(_22){
d._loadedUrls[uri]=true;
d._loadedUrls.push(uri);
if(cb){
_22="("+_22+")";
}else{
_22=d._scopePrefix+_22+d._scopeSuffix;
}
if(!d.isIE){
_22+="\r\n//@ sourceURL="+uri;
}
var _23=d["eval"](_22);
if(cb){
cb(_23);
}
}
if(--d._inFlightCount==0&&d._postLoad&&d._loaders.length){
setTimeout(function(){
if(d._inFlightCount==0){
d._callLoaded();
}
},0);
}
return !!_22;
};
dojo._loadUriAndCheck=function(uri,_24,cb){
var ok=false;
try{
ok=d._loadUri(uri,cb);
}
catch(e){
console.error("failed loading "+uri+" with error: "+e);
}
return !!(ok&&d._loadedModules[_24]);
};
dojo.loaded=function(){
d._loadNotifying=true;
d._postLoad=true;
var mll=d._loaders;
d._loaders=[];
for(var x=0;x<mll.length;x++){
mll[x]();
}
d._loadNotifying=false;
if(d._postLoad&&d._inFlightCount==0&&mll.length){
d._callLoaded();
}
};
dojo.unloaded=function(){
var mll=d._unloaders;
while(mll.length){
(mll.pop())();
}
};
d._onto=function(arr,obj,fn){
if(!fn){
arr.push(obj);
}else{
if(fn){
var _25=(typeof fn=="string")?obj[fn]:fn;
arr.push(function(){
_25.call(obj);
});
}
}
};
dojo.ready=dojo.addOnLoad=function(obj,_26){
d._onto(d._loaders,obj,_26);
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._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"||(d.config.useXDomain&&d.isOpera)){
setTimeout(d.isAIR?function(){
d.loaded();
}:d._scopeName+".loaded();",0);
}else{
d.loaded();
}
};
dojo._getModuleSymbols=function(_27){
var _28=_27.split(".");
for(var i=_28.length;i>0;i--){
var _29=_28.slice(0,i).join(".");
if(i==1&&!d._moduleHasPrefix(_29)){
_28[0]="../"+_28[0];
}else{
var _2a=d._getModulePrefix(_29);
if(_2a!=_29){
_28.splice(0,i,_2a);
break;
}
}
}
return _28;
};
dojo._global_omit_module_check=false;
dojo.loadInit=function(_2b){
_2b();
};
dojo._loadModule=dojo.require=function(_2c,_2d){
_2d=d._global_omit_module_check||_2d;
var _2e=d._loadedModules[_2c];
if(_2e){
return _2e;
}
var _2f=d._getModuleSymbols(_2c).join("/")+".js";
var _30=!_2d?_2c:null;
var ok=d._loadPath(_2f,_30);
if(!ok&&!_2d){
throw new Error("Could not load '"+_2c+"'; last tried '"+_2f+"'");
}
if(!_2d&&!d._isXDomain){
_2e=d._loadedModules[_2c];
if(!_2e){
throw new Error("symbol '"+_2c+"' is not defined after loading '"+_2f+"'");
}
}
return _2e;
};
dojo.provide=function(_31){
_31=_31+"";
return (d._loadedModules[_31]=d.getObject(_31,true));
};
dojo.platformRequire=function(_32){
var _33=_32.common||[];
var _34=_33.concat(_32[d._name]||_32["default"]||[]);
for(var x=0;x<_34.length;x++){
var _35=_34[x];
if(_35.constructor==Array){
d._loadModule.apply(d,_35);
}else{
d._loadModule(_35);
}
}
};
dojo.requireIf=function(_36,_37){
if(_36===true){
var _38=[];
for(var i=1;i<arguments.length;i++){
_38.push(arguments[i]);
}
d.require.apply(d,_38);
}
};
dojo.requireAfterIf=d.requireIf;
dojo.registerModulePath=function(_39,_3a){
d._modulePrefixes[_39]={name:_39,value:_3a};
};
dojo.requireLocalization=function(_3b,_3c,_3d,_3e){
d.require("dojo.i18n");
d.i18n._requireLocalization.apply(d.hostenv,arguments);
};
var ore=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),ire=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");
dojo._Url=function(){
var n=null,_3f=arguments,uri=[_3f[0]];
for(var i=1;i<_3f.length;i++){
if(!_3f[i]){
continue;
}
var _40=new d._Url(_3f[i]+""),_41=new d._Url(uri[0]+"");
if(_40.path==""&&!_40.scheme&&!_40.authority&&!_40.query){
if(_40.fragment!=n){
_41.fragment=_40.fragment;
}
_40=_41;
}else{
if(!_40.scheme){
_40.scheme=_41.scheme;
if(!_40.authority){
_40.authority=_41.authority;
if(_40.path.charAt(0)!="/"){
var _42=_41.path.substring(0,_41.path.lastIndexOf("/")+1)+_40.path;
var _43=_42.split("/");
for(var j=0;j<_43.length;j++){
if(_43[j]=="."){
if(j==_43.length-1){
_43[j]="";
}else{
_43.splice(j,1);
j--;
}
}else{
if(j>0&&!(j==1&&_43[0]=="")&&_43[j]==".."&&_43[j-1]!=".."){
if(j==(_43.length-1)){
_43.splice(j,1);
_43[j-1]="";
}else{
_43.splice(j-1,2);
j-=2;
}
}
}
}
_40.path=_43.join("/");
}
}
}
}
uri=[];
if(_40.scheme){
uri.push(_40.scheme,":");
}
if(_40.authority){
uri.push("//",_40.authority);
}
uri.push(_40.path);
if(_40.query){
uri.push("?",_40.query);
}
if(_40.fragment){
uri.push("#",_40.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(_44,url){
var loc=d._getModuleSymbols(_44).join("/");
if(!loc){
return null;
}
if(loc.lastIndexOf("/")!=loc.length-1){
loc+="/";
}
var _45=loc.indexOf(":");
if(loc.charAt(0)!="/"&&(_45==-1||_45>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 _46=document.getElementsByTagName("script");
var _47=/dojo(\.xd)?\.js(\W|$)/i;
for(var i=0;i<_46.length;i++){
var src=_46[i].getAttribute("src");
if(!src){
continue;
}
var m=src.match(_47);
if(m){
if(!d.config.baseUrl){
d.config.baseUrl=src.substring(0,m.index);
}
var cfg=_46[i].getAttribute("djConfig");
if(cfg){
var _48=eval("({ "+cfg+" })");
for(var x in _48){
dojo.config[x]=_48[x];
}
}
break;
}
}
}
d.baseUrl=d.config.baseUrl;
var n=navigator;
var dua=n.userAgent,dav=n.appVersion,tv=parseFloat(dav);
if(dua.indexOf("Opera")>=0){
d.isOpera=tv;
}
if(dua.indexOf("AdobeAIR")>=0){
d.isAIR=1;
}
d.isKhtml=(dav.indexOf("Konqueror")>=0)?tv:0;
d.isWebKit=parseFloat(dua.split("WebKit/")[1])||undefined;
d.isChrome=parseFloat(dua.split("Chrome/")[1])||undefined;
d.isMac=dav.indexOf("Macintosh")>=0;
var _49=Math.max(dav.indexOf("WebKit"),dav.indexOf("Safari"),0);
if(_49&&!dojo.isChrome){
d.isSafari=parseFloat(dav.split("Version/")[1]);
if(!d.isSafari||parseFloat(dav.substr(_49+7))<=419.3){
d.isSafari=2;
}
}
if(dua.indexOf("Gecko")>=0&&!d.isKhtml&&!d.isWebKit){
d.isMozilla=d.isMoz=tv;
}
if(d.isMoz){
d.isFF=parseFloat(dua.split("Firefox/")[1]||dua.split("Minefield/")[1])||undefined;
}
if(document.all&&!d.isOpera){
d.isIE=parseFloat(dav.split("MSIE ")[1])||undefined;
var _4a=document.documentMode;
if(_4a&&_4a!=5&&Math.floor(d.isIE)!=_4a){
d.isIE=_4a;
}
}
if(dojo.isIE&&window.location.protocol==="file:"){
dojo.config.ieForceActiveXXhr=true;
}
d.isQuirks=document.compatMode=="BackCompat";
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 _4b,_4c;
if(!dojo.isIE||!dojo.config.ieForceActiveXXhr){
try{
_4b=new XMLHttpRequest();
}
catch(e){
}
}
if(!_4b){
for(var i=0;i<3;++i){
var _4d=d._XMLHTTP_PROGIDS[i];
try{
_4b=new ActiveXObject(_4d);
}
catch(e){
_4c=e;
}
if(_4b){
d._XMLHTTP_PROGIDS=[_4d];
break;
}
}
}
if(!_4b){
throw new Error("XMLHTTP not available: "+_4c);
}
return _4b;
};
d._isDocumentOk=function(_4e){
var _4f=_4e.status||0,lp=location.protocol;
return (_4f>=200&&_4f<300)||_4f==304||_4f==1223||(!_4f&&(lp=="file:"||lp=="chrome:"||lp=="app:"));
};
var _50=window.location+"";
var _51=document.getElementsByTagName("base");
var _52=(_51&&_51.length>0);
d._getText=function(uri,_53){
var _54=d._xhrObj();
if(!_52&&dojo._Url){
uri=(new dojo._Url(_50,uri)).toString();
}
if(d.config.cacheBust){
uri+="";
uri+=(uri.indexOf("?")==-1?"?":"&")+String(d.config.cacheBust).replace(/\W+/g,"");
}
_54.open("GET",uri,false);
try{
_54.send(null);
if(!d._isDocumentOk(_54)){
var err=Error("Unable to load "+uri+" status:"+_54.status);
err.status=_54.status;
err.responseText=_54.responseText;
throw err;
}
}
catch(e){
if(_53){
return null;
}
throw e;
}
return _54.responseText;
};
var _55=window;
var _56=function(_57,fp){
var _58=_55.attachEvent||_55.addEventListener;
_57=_55.attachEvent?_57:_57.substring(2);
_58(_57,function(){
fp.apply(_55,arguments);
},false);
};
d._windowUnloaders=[];
d.windowUnloaded=function(){
var mll=d._windowUnloaders;
while(mll.length){
(mll.pop())();
}
};
var _59=0;
d.addOnWindowUnload=function(obj,_5a){
d._onto(d._windowUnloaders,obj,_5a);
if(!_59){
_59=1;
_56("onunload",d.windowUnloaded);
}
};
var _5b=0;
d.addOnUnload=function(obj,_5c){
d._onto(d._unloaders,obj,_5c);
if(!_5b){
_5b=1;
_56("onbeforeunload",dojo.unloaded);
}
};
})();
dojo._initFired=false;
dojo._loadInit=function(e){
if(!dojo._initFired){
dojo._initFired=true;
if(!dojo.config.afterOnLoad&&window.detachEvent){
window.detachEvent("onload",dojo._loadInit);
}
if(dojo._inFlightCount==0){
dojo._modulesLoaded();
}
}
};
if(!dojo.config.afterOnLoad){
if(document.addEventListener){
document.addEventListener("DOMContentLoaded",dojo._loadInit,false);
window.addEventListener("load",dojo._loadInit,false);
}else{
if(window.attachEvent){
window.attachEvent("onload",dojo._loadInit);
}
}
}
if(dojo.isIE){
if(!dojo.config.afterOnLoad&&!dojo.config.skipIeDomLoaded){
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");
var _5d=["*","group","roundrect","oval","shape","rect","imagedata"],i=0,l=1,s=document.createStyleSheet();
if(dojo.isIE>=8){
i=1;
l=_5d.length;
}
for(;i<l;++i){
s.addRule("v\\:"+_5d[i],"behavior:url(#default#VML); display:inline-block");
}
}
catch(e){
}
}
}
(function(){
var mp=dojo.config["modulePaths"];
if(mp){
for(var _5e in mp){
dojo.registerModulePath(_5e,mp[_5e]);
}
}
})();
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");
(function(){
var d=dojo,_5f=Object.prototype.toString;
dojo.isString=function(it){
return (typeof it=="string"||it instanceof String);
};
dojo.isArray=function(it){
return it&&(it instanceof Array||typeof it=="array");
};
dojo.isFunction=function(it){
return _5f.call(it)==="[object Function]";
};
dojo.isObject=function(it){
return it!==undefined&&(it===null||typeof it=="object"||d.isArray(it)||d.isFunction(it));
};
dojo.isArrayLike=function(it){
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&&!d.isFunction(it)&&/\{\s*\[native code\]\s*\}/.test(String(it));
};
dojo.extend=function(_60,_61){
for(var i=1,l=arguments.length;i<l;i++){
d._mixin(_60.prototype,arguments[i]);
}
return _60;
};
dojo._hitchArgs=function(_62,_63){
var pre=d._toArray(arguments,2);
var _64=d.isString(_63);
return function(){
var _65=d._toArray(arguments);
var f=_64?(_62||d.global)[_63]:_63;
return f&&f.apply(_62||this,pre.concat(_65));
};
};
dojo.hitch=function(_66,_67){
if(arguments.length>2){
return d._hitchArgs.apply(d,arguments);
}
if(!_67){
_67=_66;
_66=null;
}
if(d.isString(_67)){
_66=_66||d.global;
if(!_66[_67]){
throw (["dojo.hitch: scope[\"",_67,"\"] is null (scope=\"",_66,"\")"].join(""));
}
return function(){
return _66[_67].apply(_66,arguments||[]);
};
}
return !_66?_67:function(){
return _67.apply(_66,arguments||[]);
};
};
dojo.delegate=dojo._delegate=(function(){
function TMP(){
};
return function(obj,_68){
TMP.prototype=obj;
var tmp=new TMP();
TMP.prototype=null;
if(_68){
d._mixin(tmp,_68);
}
return tmp;
};
})();
var _69=function(obj,_6a,_6b){
return (_6b||[]).concat(Array.prototype.slice.call(obj,_6a||0));
};
var _6c=function(obj,_6d,_6e){
var arr=_6e||[];
for(var x=_6d||0;x<obj.length;x++){
arr.push(obj[x]);
}
return arr;
};
dojo._toArray=d.isIE?function(obj){
return ((obj.item)?_6c:_69).apply(this,arguments);
}:_69;
dojo.partial=function(_6f){
var arr=[null];
return d.hitch.apply(d,arr.concat(d._toArray(arguments)));
};
var _70=d._extraNames,_71=_70.length,_72={};
dojo.clone=function(o){
if(!o||typeof o!="object"||d.isFunction(o)){
return o;
}
if(o.nodeType&&o.cloneNode){
return o.cloneNode(true);
}
if(o instanceof Date){
return new Date(o.getTime());
}
var r,i,l,s,_73;
if(d.isArray(o)){
r=[];
for(i=0,l=o.length;i<l;++i){
if(i in o){
r.push(d.clone(o[i]));
}
}
}else{
r=o.constructor?new o.constructor():{};
}
for(_73 in o){
s=o[_73];
if(!(_73 in r)||(r[_73]!==s&&(!(_73 in _72)||_72[_73]!==s))){
r[_73]=d.clone(s);
}
}
if(_71){
for(i=0;i<_71;++i){
_73=_70[i];
s=o[_73];
if(!(_73 in r)||(r[_73]!==s&&(!(_73 in _72)||_72[_73]!==s))){
r[_73]=s;
}
}
}
return r;
};
dojo.trim=String.prototype.trim?function(str){
return str.trim();
}:function(str){
return str.replace(/^\s\s*/,"").replace(/\s\s*$/,"");
};
var _74=/\{([^\}]+)\}/g;
dojo.replace=function(_75,map,_76){
return _75.replace(_76||_74,d.isFunction(map)?map:function(_77,k){
return d.getObject(k,false,map);
});
};
})();
}
if(!dojo._hasResource["dojo._base.array"]){
dojo._hasResource["dojo._base.array"]=true;
dojo.provide("dojo._base.array");
(function(){
var _78=function(arr,obj,cb){
return [(typeof arr=="string")?arr.split(""):arr,obj||dojo.global,(typeof cb=="string")?new Function("item","index","array",cb):cb];
};
var _79=function(_7a,arr,_7b,_7c){
var _7d=_78(arr,_7c,_7b);
arr=_7d[0];
for(var i=0,l=arr.length;i<l;++i){
var _7e=!!_7d[2].call(_7d[1],arr[i],i,arr);
if(_7a^_7e){
return _7e;
}
}
return _7a;
};
dojo.mixin(dojo,{indexOf:function(_7f,_80,_81,_82){
var _83=1,end=_7f.length||0,i=0;
if(_82){
i=end-1;
_83=end=-1;
}
if(_81!=undefined){
i=_81;
}
if((_82&&i>end)||i<end){
for(;i!=end;i+=_83){
if(_7f[i]==_80){
return i;
}
}
}
return -1;
},lastIndexOf:function(_84,_85,_86){
return dojo.indexOf(_84,_85,_86,true);
},forEach:function(arr,_87,_88){
if(!arr||!arr.length){
return;
}
var _89=_78(arr,_88,_87);
arr=_89[0];
for(var i=0,l=arr.length;i<l;++i){
_89[2].call(_89[1],arr[i],i,arr);
}
},every:function(arr,_8a,_8b){
return _79(true,arr,_8a,_8b);
},some:function(arr,_8c,_8d){
return _79(false,arr,_8c,_8d);
},map:function(arr,_8e,_8f){
var _90=_78(arr,_8f,_8e);
arr=_90[0];
var _91=(arguments[3]?(new arguments[3]()):[]);
for(var i=0,l=arr.length;i<l;++i){
_91.push(_90[2].call(_90[1],arr[i],i,arr));
}
return _91;
},filter:function(arr,_92,_93){
var _94=_78(arr,_93,_92);
arr=_94[0];
var _95=[];
for(var i=0,l=arr.length;i<l;++i){
if(_94[2].call(_94[1],arr[i],i,arr)){
_95.push(arr[i]);
}
}
return _95;
}});
})();
}
if(!dojo._hasResource["dojo._base.declare"]){
dojo._hasResource["dojo._base.declare"]=true;
dojo.provide("dojo._base.declare");
(function(){
var d=dojo,mix=d._mixin,op=Object.prototype,_96=op.toString,_97=new Function,_98=0,_99="constructor";
function err(msg){
throw new Error("declare: "+msg);
};
function _9a(_9b){
var _9c=[],_9d=[{cls:0,refs:[]}],_9e={},_9f=1,l=_9b.length,i=0,j,lin,_a0,top,_a1,rec,_a2,_a3;
for(;i<l;++i){
_a0=_9b[i];
if(!_a0){
err("mixin #"+i+" is null");
}
lin=_a0._meta?_a0._meta.bases:[_a0];
top=0;
for(j=lin.length-1;j>=0;--j){
_a1=lin[j].prototype;
if(!_a1.hasOwnProperty("declaredClass")){
_a1.declaredClass="uniqName_"+(_98++);
}
_a2=_a1.declaredClass;
if(!_9e.hasOwnProperty(_a2)){
_9e[_a2]={count:0,refs:[],cls:lin[j]};
++_9f;
}
rec=_9e[_a2];
if(top&&top!==rec){
rec.refs.push(top);
++top.count;
}
top=rec;
}
++top.count;
_9d[0].refs.push(top);
}
while(_9d.length){
top=_9d.pop();
_9c.push(top.cls);
--_9f;
while(_a3=top.refs,_a3.length==1){
top=_a3[0];
if(!top||--top.count){
top=0;
break;
}
_9c.push(top.cls);
--_9f;
}
if(top){
for(i=0,l=_a3.length;i<l;++i){
top=_a3[i];
if(!--top.count){
_9d.push(top);
}
}
}
}
if(_9f){
err("can't build consistent linearization");
}
_a0=_9b[0];
_9c[0]=_a0?_a0._meta&&_a0===_9c[_9c.length-_a0._meta.bases.length]?_a0._meta.bases.length:1:0;
return _9c;
};
function _a4(_a5,a,f){
var _a6,_a7,_a8,_a9,_aa,_ab,_ac,opf,pos,_ad=this._inherited=this._inherited||{};
if(typeof _a5=="string"){
_a6=_a5;
_a5=a;
a=f;
}
f=0;
_a9=_a5.callee;
_a6=_a6||_a9.nom;
if(!_a6){
err("can't deduce a name to call inherited()");
}
_aa=this.constructor._meta;
_a8=_aa.bases;
pos=_ad.p;
if(_a6!=_99){
if(_ad.c!==_a9){
pos=0;
_ab=_a8[0];
_aa=_ab._meta;
if(_aa.hidden[_a6]!==_a9){
_a7=_aa.chains;
if(_a7&&typeof _a7[_a6]=="string"){
err("calling chained method with inherited: "+_a6);
}
do{
_aa=_ab._meta;
_ac=_ab.prototype;
if(_aa&&(_ac[_a6]===_a9&&_ac.hasOwnProperty(_a6)||_aa.hidden[_a6]===_a9)){
break;
}
}while(_ab=_a8[++pos]);
pos=_ab?pos:-1;
}
}
_ab=_a8[++pos];
if(_ab){
_ac=_ab.prototype;
if(_ab._meta&&_ac.hasOwnProperty(_a6)){
f=_ac[_a6];
}else{
opf=op[_a6];
do{
_ac=_ab.prototype;
f=_ac[_a6];
if(f&&(_ab._meta?_ac.hasOwnProperty(_a6):f!==opf)){
break;
}
}while(_ab=_a8[++pos]);
}
}
f=_ab&&f||op[_a6];
}else{
if(_ad.c!==_a9){
pos=0;
_aa=_a8[0]._meta;
if(_aa&&_aa.ctor!==_a9){
_a7=_aa.chains;
if(!_a7||_a7.constructor!=="manual"){
err("calling chained constructor with inherited");
}
while(_ab=_a8[++pos]){
_aa=_ab._meta;
if(_aa&&_aa.ctor===_a9){
break;
}
}
pos=_ab?pos:-1;
}
}
while(_ab=_a8[++pos]){
_aa=_ab._meta;
f=_aa?_aa.ctor:_ab;
if(f){
break;
}
}
f=_ab&&f;
}
_ad.c=f;
_ad.p=pos;
if(f){
return a===true?f:f.apply(this,a||_a5);
}
};
function _ae(_af,_b0){
if(typeof _af=="string"){
return this.inherited(_af,_b0,true);
}
return this.inherited(_af,true);
};
function _b1(cls){
var _b2=this.constructor._meta.bases;
for(var i=0,l=_b2.length;i<l;++i){
if(_b2[i]===cls){
return true;
}
}
return this instanceof cls;
};
function _b3(_b4,_b5){
var _b6,t,i=0,l=d._extraNames.length;
for(_b6 in _b5){
t=_b5[_b6];
if((t!==op[_b6]||!(_b6 in op))&&_b6!=_99){
if(_96.call(t)=="[object Function]"){
t.nom=_b6;
}
_b4[_b6]=t;
}
}
for(;i<l;++i){
_b6=d._extraNames[i];
t=_b5[_b6];
if((t!==op[_b6]||!(_b6 in op))&&_b6!=_99){
if(_96.call(t)=="[object Function]"){
t.nom=_b6;
}
_b4[_b6]=t;
}
}
return _b4;
};
function _b7(_b8){
_b3(this.prototype,_b8);
return this;
};
function _b9(_ba,_bb){
return function(){
var a=arguments,_bc=a,a0=a[0],f,i,m,l=_ba.length,_bd;
if(_bb&&(a0&&a0.preamble||this.preamble)){
_bd=new Array(_ba.length);
_bd[0]=a;
for(i=0;;){
a0=a[0];
if(a0){
f=a0.preamble;
if(f){
a=f.apply(this,a)||a;
}
}
f=_ba[i].prototype;
f=f.hasOwnProperty("preamble")&&f.preamble;
if(f){
a=f.apply(this,a)||a;
}
if(++i==l){
break;
}
_bd[i]=a;
}
}
for(i=l-1;i>=0;--i){
f=_ba[i];
m=f._meta;
f=m?m.ctor:f;
if(f){
f.apply(this,_bd?_bd[i]:a);
}
}
f=this.postscript;
if(f){
f.apply(this,_bc);
}
};
};
function _be(_bf,_c0){
return function(){
var a=arguments,t=a,a0=a[0],f;
if(_c0){
if(a0){
f=a0.preamble;
if(f){
t=f.apply(this,t)||t;
}
}
f=this.preamble;
if(f){
f.apply(this,t);
}
}
if(_bf){
_bf.apply(this,a);
}
f=this.postscript;
if(f){
f.apply(this,a);
}
};
};
function _c1(_c2){
return function(){
var a=arguments,i=0,f;
for(;f=_c2[i];++i){
m=f._meta;
f=m?m.ctor:f;
if(f){
f.apply(this,a);
break;
}
}
f=this.postscript;
if(f){
f.apply(this,a);
}
};
};
function _c3(_c4,_c5,_c6){
return function(){
var b,m,f,i=0,_c7=1;
if(_c6){
i=_c5.length-1;
_c7=-1;
}
for(;b=_c5[i];i+=_c7){
m=b._meta;
f=(m?m.hidden:b.prototype)[_c4];
if(f){
f.apply(this,arguments);
}
}
};
};
d.declare=function(_c8,_c9,_ca){
var _cb,i,t,_cc,_cd,_ce,_cf,_d0=1,_d1=_c9;
if(typeof _c8!="string"){
_ca=_c9;
_c9=_c8;
_c8="";
}
_ca=_ca||{};
if(_96.call(_c9)=="[object Array]"){
_ce=_9a(_c9);
t=_ce[0];
_d0=_ce.length-t;
_c9=_ce[_d0];
}else{
_ce=[0];
if(_c9){
t=_c9._meta;
_ce=_ce.concat(t?t.bases:_c9);
}
}
if(_c9){
for(i=_d0-1;;--i){
_97.prototype=_c9.prototype;
_cb=new _97;
if(!i){
break;
}
t=_ce[i];
mix(_cb,t._meta?t._meta.hidden:t.prototype);
_cc=new Function;
_cc.superclass=_c9;
_cc.prototype=_cb;
_c9=_cb.constructor=_cc;
}
}else{
_cb={};
}
_b3(_cb,_ca);
t=_ca.constructor;
if(t!==op.constructor){
t.nom=_99;
_cb.constructor=t;
}
_97.prototype=0;
for(i=_d0-1;i;--i){
t=_ce[i]._meta;
if(t&&t.chains){
_cf=mix(_cf||{},t.chains);
}
}
if(_cb["-chains-"]){
_cf=mix(_cf||{},_cb["-chains-"]);
}
t=!_cf||!_cf.hasOwnProperty(_99);
_ce[0]=_cc=(_cf&&_cf.constructor==="manual")?_c1(_ce):(_ce.length==1?_be(_ca.constructor,t):_b9(_ce,t));
_cc._meta={bases:_ce,hidden:_ca,chains:_cf,parents:_d1,ctor:_ca.constructor};
_cc.superclass=_c9&&_c9.prototype;
_cc.extend=_b7;
_cc.prototype=_cb;
_cb.constructor=_cc;
_cb.getInherited=_ae;
_cb.inherited=_a4;
_cb.isInstanceOf=_b1;
if(_c8){
_cb.declaredClass=_c8;
d.setObject(_c8,_cc);
}
if(_cf){
for(_cd in _cf){
if(_cb[_cd]&&typeof _cf[_cd]=="string"&&_cd!=_99){
t=_cb[_cd]=_c3(_cd,_ce,_cf[_cd]==="after");
t.nom=_cd;
}
}
}
return _cc;
};
d.safeMixin=_b3;
})();
}
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(_d2,_d3,_d4){
_d2=_d2||dojo.global;
var f=_d2[_d3];
if(!f||!f._listeners){
var d=dojo._listener.getDispatcher();
d.target=f;
d._listeners=[];
f=_d2[_d3]=d;
}
return f._listeners.push(_d4);
},remove:function(_d5,_d6,_d7){
var f=(_d5||dojo.global)[_d6];
if(f&&f._listeners&&_d7--){
delete f._listeners[_d7];
}
}};
dojo.connect=function(obj,_d8,_d9,_da,_db){
var a=arguments,_dc=[],i=0;
_dc.push(dojo.isString(a[0])?null:a[i++],a[i++]);
var a1=a[i+1];
_dc.push(dojo.isString(a1)||dojo.isFunction(a1)?a[i++]:null,a[i++]);
for(var l=a.length;i<l;i++){
_dc.push(a[i]);
}
return dojo._connect.apply(this,_dc);
};
dojo._connect=function(obj,_dd,_de,_df){
var l=dojo._listener,h=l.add(obj,_dd,dojo.hitch(_de,_df));
return [obj,_dd,h,l];
};
dojo.disconnect=function(_e0){
if(_e0&&_e0[0]!==undefined){
dojo._disconnect.apply(this,_e0);
delete _e0[0];
}
};
dojo._disconnect=function(obj,_e1,_e2,_e3){
_e3.remove(obj,_e1,_e2);
};
dojo._topics={};
dojo.subscribe=function(_e4,_e5,_e6){
return [_e4,dojo._listener.add(dojo._topics,_e4,dojo.hitch(_e5,_e6))];
};
dojo.unsubscribe=function(_e7){
if(_e7){
dojo._listener.remove(dojo._topics,_e7[0],_e7[1]);
}
};
dojo.publish=function(_e8,_e9){
var f=dojo._topics[_e8];
if(f){
f.apply(this,_e9||[]);
}
};
dojo.connectPublisher=function(_ea,obj,_eb){
var pf=function(){
dojo.publish(_ea,arguments);
};
return (_eb)?dojo.connect(obj,_eb,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(_ec){
this.chain=[];
this.id=this._nextId();
this.fired=-1;
this.paused=0;
this.results=[null,null];
this.canceller=_ec;
this.silentlyCancelled=false;
this.isFiring=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;
var msg="Deferred Cancelled";
if(err&&err.toString){
msg+=": "+err.toString();
}
err=new Error(msg);
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,_ed){
var _ee=dojo.hitch.apply(dojo,arguments);
return this.addCallbacks(_ee,_ee);
},addCallback:function(cb,_ef){
return this.addCallbacks(dojo.hitch.apply(dojo,arguments));
},addErrback:function(cb,_f0){
return this.addCallbacks(null,dojo.hitch.apply(dojo,arguments));
},addCallbacks:function(cb,eb){
this.chain.push([cb,eb]);
if(this.fired>=0&&!this.isFiring){
this._fire();
}
return this;
},_fire:function(){
this.isFiring=true;
var _f1=this.chain;
var _f2=this.fired;
var res=this.results[_f2];
var _f3=this;
var cb=null;
while((_f1.length>0)&&(this.paused==0)){
var f=_f1.shift()[_f2];
if(!f){
continue;
}
var _f4=function(){
var ret=f(res);
if(typeof ret!="undefined"){
res=ret;
}
_f2=((res instanceof Error)?1:0);
if(res instanceof dojo.Deferred){
cb=function(res){
_f3._resback(res);
_f3.paused--;
if((_f3.paused==0)&&(_f3.fired>=0)){
_f3._fire();
}
};
this.paused++;
}
};
if(dojo.config.debugAtAllCosts){
_f4.call(this);
}else{
try{
_f4.call(this);
}
catch(err){
_f2=1;
res=err;
}
}
}
this.fired=_f2;
this.results[_f2]=res;
this.isFiring=false;
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(_f5){
return eval("("+_f5+")");
};
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,_f6,_f7){
if(it===undefined){
return "undefined";
}
var _f8=typeof it;
if(_f8=="number"||_f8=="boolean"){
return it+"";
}
if(it===null){
return "null";
}
if(dojo.isString(it)){
return dojo._escapeString(it);
}
var _f9=arguments.callee;
var _fa;
_f7=_f7||"";
var _fb=_f6?_f7+dojo.toJsonIndentStr:"";
var tf=it.__json__||it.json;
if(dojo.isFunction(tf)){
_fa=tf.call(it);
if(it!==_fa){
return _f9(_fa,_f6,_fb);
}
}
if(it.nodeType&&it.cloneNode){
throw new Error("Can't serialize DOM nodes");
}
var sep=_f6?" ":"";
var _fc=_f6?"\n":"";
if(dojo.isArray(it)){
var res=dojo.map(it,function(obj){
var val=_f9(obj,_f6,_fb);
if(typeof val!="string"){
val="undefined";
}
return _fc+_fb+val;
});
return "["+res.join(","+sep)+_fc+_f7+"]";
}
if(_f8=="function"){
return null;
}
var _fd=[],key;
for(key in it){
var _fe,val;
if(typeof key=="number"){
_fe="\""+key+"\"";
}else{
if(typeof key=="string"){
_fe=dojo._escapeString(key);
}else{
continue;
}
}
val=_f9(it[key],_f6,_fb);
if(typeof val!="string"){
continue;
}
_fd.push(_fc+_fb+_fe+":"+sep+val);
}
return "{"+_fd.join(","+sep)+_fc+_f7+"}";
};
}
if(!dojo._hasResource["dojo._base.Color"]){
dojo._hasResource["dojo._base.Color"]=true;
dojo.provide("dojo._base.Color");
(function(){
var d=dojo;
dojo.Color=function(_ff){
if(_ff){
this.setColor(_ff);
}
};
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],transparent:d.config.transparentColor||[255,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(_100){
if(d.isString(_100)){
d.colorFromString(_100,this);
}else{
if(d.isArray(_100)){
d.colorFromArray(_100,this);
}else{
this._set(_100.r,_100.g,_100.b,_100.a);
if(!(_100 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=d.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(_101){
var t=this,rgb=t.r+", "+t.g+", "+t.b;
return (_101?"rgba("+rgb+", "+t.a:"rgb("+rgb)+")";
},toString:function(){
return this.toCss(true);
}});
dojo.blendColors=function(_102,end,_103,obj){
var t=obj||new d.Color();
d.forEach(["r","g","b","a"],function(x){
t[x]=_102[x]+(end[x]-_102[x])*_103;
if(x!="a"){
t[x]=Math.round(t[x]);
}
});
return t.sanitize();
};
dojo.colorFromRgb=function(_104,obj){
var m=_104.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/);
return m&&dojo.colorFromArray(m[1].split(/\s*,\s*/),obj);
};
dojo.colorFromHex=function(_105,obj){
var t=obj||new d.Color(),bits=(_105.length==4)?4:8,mask=(1<<bits)-1;
_105=Number("0x"+_105.substr(1));
if(isNaN(_105)){
return null;
}
d.forEach(["b","g","r"],function(x){
var c=_105&mask;
_105>>=bits;
t[x]=bits==4?17*c:c;
});
t.a=1;
return t;
};
dojo.colorFromArray=function(a,obj){
var t=obj||new d.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=d.Color.named[str];
return a&&d.colorFromArray(a,obj)||d.colorFromRgb(str,obj)||d.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(_106,_107){
dojo.global=_106;
dojo.doc=_107;
};
dojo.withGlobal=function(_108,_109,_10a,_10b){
var _10c=dojo.global;
try{
dojo.global=_108;
return dojo.withDoc.call(null,_108.document,_109,_10a,_10b);
}
finally{
dojo.global=_10c;
}
};
dojo.withDoc=function(_10d,_10e,_10f,_110){
var _111=dojo.doc,_112=dojo._bodyLtr,oldQ=dojo.isQuirks;
try{
dojo.doc=_10d;
delete dojo._bodyLtr;
dojo.isQuirks=dojo.doc.compatMode=="BackCompat";
if(_10f&&typeof _10e=="string"){
_10e=_10f[_10e];
}
return _10e.apply(_10f,_110||[]);
}
finally{
dojo.doc=_111;
delete dojo._bodyLtr;
if(_112!==undefined){
dojo._bodyLtr=_112;
}
dojo.isQuirks=oldQ;
}
};
}
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 _113=name;
if(!dojo.isIE&&(name=="mouseenter"||name=="mouseleave")){
var ofp=fp;
name=(name=="mouseenter")?"mouseover":"mouseout";
fp=function(e){
if(!dojo.isDescendant(e.relatedTarget,node)){
return ofp.call(this,e);
}
};
}
node.addEventListener(name,fp,false);
return fp;
},remove:function(node,_114,_115){
if(node){
_114=del._normalizeEventName(_114);
if(!dojo.isIE&&(_114=="mouseenter"||_114=="mouseleave")){
_114=(_114=="mouseenter")?"mouseover":"mouseout";
}
node.removeEventListener(_114,_115,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,_116){
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,_117){
return del._fixEvent(evt,_117);
};
dojo.stopEvent=function(evt){
evt.preventDefault();
evt.stopPropagation();
};
var _118=dojo._listener;
dojo._connect=function(obj,_119,_11a,_11b,_11c){
var _11d=obj&&(obj.nodeType||obj.attachEvent||obj.addEventListener);
var lid=_11d?(_11c?2:1):0,l=[dojo._listener,del,_118][lid];
var h=l.add(obj,_119,dojo.hitch(_11a,_11b));
return [obj,_119,h,lid];
};
dojo._disconnect=function(obj,_11e,_11f,_120){
([dojo._listener,del,_118][_120]).remove(obj,_11e,_11f);
};
dojo.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,META:dojo.isSafari?91:224,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,copyKey:dojo.isMac&&!dojo.isAIR?(dojo.isSafari?91:224):17};
var _121=dojo.isMac?"metaKey":"ctrlKey";
dojo.isCopyKey=function(e){
return e[_121];
};
if(dojo.isIE){
dojo.mouseButtons={LEFT:1,MIDDLE:4,RIGHT:2,isButton:function(e,_122){
return e.button&_122;
},isLeft:function(e){
return e.button&1;
},isMiddle:function(e){
return e.button&4;
},isRight:function(e){
return e.button&2;
}};
}else{
dojo.mouseButtons={LEFT:0,MIDDLE:1,RIGHT:2,isButton:function(e,_123){
return e.button==_123;
},isLeft:function(e){
return e.button==0;
},isMiddle:function(e){
return e.button==1;
},isRight:function(e){
return e.button==2;
}};
}
if(dojo.isIE){
var _124=function(e,code){
try{
return (e.keyCode=code);
}
catch(e){
return 0;
}
};
var iel=dojo._listener;
var _125=(dojo._ieListenersName="_"+dojo._scopeName+"_listeners");
if(!dojo.config._allow_leaks){
_118=iel=dojo._ie_listener={handlers:[],add:function(_126,_127,_128){
_126=_126||dojo.global;
var f=_126[_127];
if(!f||!f[_125]){
var d=dojo._getIeDispatcher();
d.target=f&&(ieh.push(f)-1);
d[_125]=[];
f=_126[_127]=d;
}
return f[_125].push(ieh.push(_128)-1);
},remove:function(_129,_12a,_12b){
var f=(_129||dojo.global)[_12a],l=f&&f[_125];
if(f&&l&&_12b--){
delete ieh[l[_12b]];
delete l[_12b];
}
}};
var ieh=iel.handlers;
}
dojo.mixin(del,{add:function(node,_12c,fp){
if(!node){
return;
}
_12c=del._normalizeEventName(_12c);
if(_12c=="onkeypress"){
var kd=node.onkeydown;
if(!kd||!kd[_125]||!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,_12c,del._fixCallback(fp));
},remove:function(node,_12d,_12e){
_12d=del._normalizeEventName(_12d);
iel.remove(node,_12d,_12e);
if(_12d=="onkeypress"){
var kd=node.onkeydown;
if(--kd._stealthKeydownRefs<=0){
iel.remove(node,"onkeydown",kd._stealthKeydownHandle);
delete kd._stealthKeydownHandle;
}
}
},_normalizeEventName:function(_12f){
return _12f.slice(0,2)!="on"?"on"+_12f:_12f;
},_nop:function(){
},_fixEvent:function(evt,_130){
if(!evt){
var w=_130&&(_130.ownerDocument||_130.document||_130).parentWindow||window;
evt=w.event;
}
if(!evt){
return (evt);
}
evt.target=evt.srcElement;
evt.currentTarget=(_130||evt.srcElement);
evt.layerX=evt.offsetX;
evt.layerY=evt.offsetY;
var se=evt.srcElement,doc=(se&&se.ownerDocument)||document;
var _131=((dojo.isIE<6)||(doc["compatMode"]=="BackCompat"))?doc.body:doc.documentElement;
var _132=dojo._getIeDocumentElementOffset();
evt.pageX=evt.clientX+dojo._fixIeBiDiScrollLeft(_131.scrollLeft||0)-_132.x;
evt.pageY=evt.clientY+(_131.scrollTop||0)-_132.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[_125]){
return;
}
var k=evt.keyCode;
var _133=k!=13&&k!=32&&k!=27&&(k<48||k>90)&&(k<96||k>111)&&(k<186||k>192)&&(k<219||k>222);
if(_133||evt.ctrlKey){
var c=_133?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;
_124(evt,faux.keyCode);
}
},_stopPropagation:function(){
this.cancelBubble=true;
},_preventDefault:function(){
this.bubbledKeyCode=this.keyCode;
if(this.ctrlKey){
_124(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,_134){
var faux=dojo.mixin({},evt,_134);
del._setKeyChar(faux);
faux.preventDefault=function(){
evt.preventDefault();
};
faux.stopPropagation=function(){
evt.stopPropagation();
};
return faux;
};
if(dojo.isOpera){
dojo.mixin(del,{_fixEvent:function(evt,_135){
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.isWebKit){
del._add=del.add;
del._remove=del.remove;
dojo.mixin(del,{add:function(node,_136,fp){
if(!node){
return;
}
var _137=del._add(node,_136,fp);
if(del._normalizeEventName(_136)=="keypress"){
_137._stealthKeyDownHandle=del._add(node,"keydown",function(evt){
var k=evt.keyCode;
var _138=k!=13&&k!=32&&(k<48||k>90)&&(k<96||k>111)&&(k<186||k>192)&&(k<219||k>222);
if(_138||evt.ctrlKey){
var c=_138?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 _137;
},remove:function(node,_139,_13a){
if(node){
if(_13a._stealthKeyDownHandle){
del._remove(node,"keydown",_13a._stealthKeyDownHandle);
}
del._remove(node,_139,_13a);
}
},_fixEvent:function(evt,_13b){
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,_13c){
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(_13c,args);
var lls=[].concat(ls);
for(var i in lls){
var f=h[lls[i]];
if(!(i in ap)&&f){
f.apply(_13c,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(typeof id!="string"){
return id;
}
var _13d=doc||dojo.doc,te=_13d.getElementById(id);
if(te&&(te.attributes.id.value==id||te.id==id)){
return te;
}else{
var eles=_13d.all[id];
if(!eles||eles.nodeName){
eles=[eles];
}
var i=0;
while((te=eles[i++])){
if((te.attributes&&te.attributes.id&&te.attributes.id.value==id)||te.id==id){
return te;
}
}
}
};
}else{
dojo.byId=function(id,doc){
return (typeof id=="string")?(doc||dojo.doc).getElementById(id):id;
};
}
(function(){
var d=dojo;
var byId=d.byId;
var _13e=null,_13f;
d.addOnWindowUnload(function(){
_13e=null;
});
dojo._destroyElement=dojo.destroy=function(node){
node=byId(node);
try{
var doc=node.ownerDocument;
if(!_13e||_13f!=doc){
_13e=doc.createElement("div");
_13f=doc;
}
_13e.appendChild(node.parentNode?node.parentNode.removeChild(node):node);
_13e.innerHTML="";
}
catch(e){
}
};
dojo.isDescendant=function(node,_140){
try{
node=byId(node);
_140=byId(_140);
while(node){
if(node==_140){
return true;
}
node=node.parentNode;
}
}
catch(e){
}
return false;
};
dojo.setSelectable=function(node,_141){
node=byId(node);
if(d.isMozilla){
node.style.MozUserSelect=_141?"":"none";
}else{
if(d.isKhtml||d.isWebKit){
node.style.KhtmlUserSelect=_141?"auto":"none";
}else{
if(d.isIE){
var v=(node.unselectable=_141?"":"on");
d.query("*",node).forEach("item.unselectable = '"+v+"'");
}
}
}
};
var _142=function(node,ref){
var _143=ref.parentNode;
if(_143){
_143.insertBefore(node,ref);
}
};
var _144=function(node,ref){
var _145=ref.parentNode;
if(_145){
if(_145.lastChild==ref){
_145.appendChild(node);
}else{
_145.insertBefore(node,ref.nextSibling);
}
}
};
dojo.place=function(node,_146,_147){
_146=byId(_146);
if(typeof node=="string"){
node=node.charAt(0)=="<"?d._toDom(node,_146.ownerDocument):byId(node);
}
if(typeof _147=="number"){
var cn=_146.childNodes;
if(!cn.length||cn.length<=_147){
_146.appendChild(node);
}else{
_142(node,cn[_147<0?0:_147]);
}
}else{
switch(_147){
case "before":
_142(node,_146);
break;
case "after":
_144(node,_146);
break;
case "replace":
_146.parentNode.replaceChild(node,_146);
break;
case "only":
d.empty(_146);
_146.appendChild(node);
break;
case "first":
if(_146.firstChild){
_142(node,_146.firstChild);
break;
}
default:
_146.appendChild(node);
}
}
return node;
};
dojo.boxModel="content-box";
if(d.isIE){
d.boxModel=document.compatMode=="BackCompat"?"border-box":"content-box";
}
var gcs;
if(d.isWebKit){
gcs=function(node){
var s;
if(node.nodeType==1){
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.nodeType==1?node.ownerDocument.defaultView.getComputedStyle(node,null):{};
};
}
}
dojo.getComputedStyle=gcs;
if(!d.isIE){
d._toPixelValue=function(_148,_149){
return parseFloat(_149)||0;
};
}else{
d._toPixelValue=function(_14a,_14b){
if(!_14b){
return 0;
}
if(_14b=="medium"){
return 4;
}
if(_14b.slice&&_14b.slice(-2)=="px"){
return parseFloat(_14b);
}
with(_14a){
var _14c=style.left;
var _14d=runtimeStyle.left;
runtimeStyle.left=currentStyle.left;
try{
style.left=_14b;
_14b=style.pixelLeft;
}
catch(e){
_14b=0;
}
style.left=_14c;
runtimeStyle.left=_14d;
}
return _14b;
};
}
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,_14e){
var ov=_14e*100;
node.style.zoom=1;
af(node,1).Enabled=!(_14e==1);
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,_14e);
});
}
return _14e;
}:function(node,_14f){
return node.style.opacity=_14f;
};
var _150={left:true,top:true};
var _151=/margin|padding|width|height|max|min|offset/;
var _152=function(node,type,_153){
type=type.toLowerCase();
if(d.isIE){
if(_153=="auto"){
if(type=="height"){
return node.offsetHeight;
}
if(type=="width"){
return node.offsetWidth;
}
}
if(type=="fontweight"){
switch(_153){
case 700:
return "bold";
case 400:
default:
return "normal";
}
}
}
if(!(type in _150)){
_150[type]=_151.test(type);
}
return _150[type]?px(node,_153):_153;
};
var _154=d.isIE?"styleFloat":"cssFloat",_155={"cssFloat":_154,"styleFloat":_154,"float":_154};
dojo.style=function(node,_156,_157){
var n=byId(node),args=arguments.length,op=(_156=="opacity");
_156=_155[_156]||_156;
if(args==3){
return op?d._setOpacity(n,_157):n.style[_156]=_157;
}
if(args==2&&op){
return d._getOpacity(n);
}
var s=gcs(n);
if(args==2&&typeof _156!="string"){
for(var x in _156){
d.style(node,x,_156[x]);
}
return s;
}
return (args==1)?s:_152(n,_156,s[_156]||n.style[_156]);
};
dojo._getPadExtents=function(n,_158){
var s=_158||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,_159){
var ne="none",s=_159||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,_15a){
var s=_15a||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,_15b){
var s=_15b||gcs(n),l=px(n,s.marginLeft),t=px(n,s.marginTop),r=px(n,s.marginRight),b=px(n,s.marginBottom);
if(d.isWebKit&&(s.position!="absolute")){
r=l;
}
return {l:l,t:t,w:l+r,h:t+b};
};
dojo._getMarginBox=function(node,_15c){
var s=_15c||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||(d.isIE>7&&!d.isQuirks)){
if(p){
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,_15d){
var s=_15d||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,_15e){
var s=_15e||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"||d._isButtonTag(node);
};
dojo._setContentSize=function(node,_15f,_160,_161){
if(d._usesBorderBox(node)){
var pb=d._getPadBorderExtents(node,_161);
if(_15f>=0){
_15f+=pb.w;
}
if(_160>=0){
_160+=pb.h;
}
}
d._setBox(node,NaN,NaN,_15f,_160);
};
dojo._setMarginBox=function(node,_162,_163,_164,_165,_166){
var s=_166||gcs(node),bb=d._usesBorderBox(node),pb=bb?_167:d._getPadBorderExtents(node,s);
if(d.isWebKit){
if(d._isButtonTag(node)){
var ns=node.style;
if(_164>=0&&!ns.width){
ns.width="4px";
}
if(_165>=0&&!ns.height){
ns.height="4px";
}
}
}
var mb=d._getMarginExtents(node,s);
if(_164>=0){
_164=Math.max(_164-pb.w-mb.w,0);
}
if(_165>=0){
_165=Math.max(_165-pb.h-mb.h,0);
}
d._setBox(node,_162,_163,_164,_165);
};
var _167={l:0,t:0,w:0,h:0};
dojo.marginBox=function(node,box){
var n=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=byId(node),s=gcs(n),b=box;
return !b?d._getContentBox(n,s):d._setContentSize(n,b.w,b.h,s);
};
var _168=function(node,prop){
if(!(node=(node||0).parentNode)){
return 0;
}
var val,_169=0,_16a=d.body();
while(node&&node.style){
if(gcs(node).position=="fixed"){
return 0;
}
val=node[prop];
if(val){
_169+=val-0;
if(node==_16a){
break;
}
}
node=node.parentNode;
}
return _169;
};
dojo._docScroll=function(){
var n=d.global;
return "pageXOffset" in n?{x:n.pageXOffset,y:n.pageYOffset}:(n=d.doc.documentElement,n.clientHeight?{x:d._fixIeBiDiScrollLeft(n.scrollLeft),y:n.scrollTop}:(n=d.body(),{x:n.scrollLeft||0,y:n.scrollTop||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;
if(d.isIE<8){
var r=de.getBoundingClientRect();
var l=r.left,t=r.top;
if(d.isIE<7){
l+=de.clientLeft;
t+=de.clientTop;
}
return {x:l<0?0:l,y:t<0?0:t};
}else{
return {x:0,y:0};
}
};
dojo._fixIeBiDiScrollLeft=function(_16b){
var dd=d.doc;
if(d.isIE<8&&!d._isBodyLtr()){
var de=d.isQuirks?dd.body:dd.documentElement;
return _16b+de.clientWidth-de.scrollWidth;
}
return _16b;
};
dojo._abs=dojo.position=function(node,_16c){
var db=d.body(),dh=db.parentNode,ret;
node=byId(node);
if(node["getBoundingClientRect"]){
ret=node.getBoundingClientRect();
ret={x:ret.left,y:ret.top,w:ret.right-ret.left,h:ret.bottom-ret.top};
if(d.isIE){
var _16d=d._getIeDocumentElementOffset();
ret.x-=_16d.x+(d.isQuirks?db.clientLeft+db.offsetLeft:0);
ret.y-=_16d.y+(d.isQuirks?db.clientTop+db.offsetTop:0);
}else{
if(d.isFF==3){
var cs=gcs(dh);
ret.x-=px(dh,cs.marginLeft)+px(dh,cs.borderLeftWidth);
ret.y-=px(dh,cs.marginTop)+px(dh,cs.borderTopWidth);
}
}
}else{
ret={x:0,y:0,w:node.offsetWidth,h:node.offsetHeight};
if(node["offsetParent"]){
ret.x-=_168(node,"scrollLeft");
ret.y-=_168(node,"scrollTop");
var _16e=node;
do{
var n=_16e.offsetLeft,t=_16e.offsetTop;
ret.x+=isNaN(n)?0:n;
ret.y+=isNaN(t)?0:t;
cs=gcs(_16e);
if(_16e!=node){
if(d.isMoz){
ret.x+=2*px(_16e,cs.borderLeftWidth);
ret.y+=2*px(_16e,cs.borderTopWidth);
}else{
ret.x+=px(_16e,cs.borderLeftWidth);
ret.y+=px(_16e,cs.borderTopWidth);
}
}
if(d.isMoz&&cs.position=="static"){
var _16f=_16e.parentNode;
while(_16f!=_16e.offsetParent){
var pcs=gcs(_16f);
if(pcs.position=="static"){
ret.x+=px(_16e,pcs.borderLeftWidth);
ret.y+=px(_16e,pcs.borderTopWidth);
}
_16f=_16f.parentNode;
}
}
_16e=_16e.offsetParent;
}while((_16e!=dh)&&_16e);
}else{
if(node.x&&node.y){
ret.x+=isNaN(node.x)?0:node.x;
ret.y+=isNaN(node.y)?0:node.y;
}
}
}
if(_16c){
var _170=d._docScroll();
ret.x+=_170.x;
ret.y+=_170.y;
}
return ret;
};
dojo.coords=function(node,_171){
var n=byId(node),s=gcs(n),mb=d._getMarginBox(n,s);
var abs=d.position(n,_171);
mb.x=abs.x;
mb.y=abs.y;
return mb;
};
var _172={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"},_173={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"},_174={innerHTML:1,className:1,htmlFor:d.isIE,value:1};
var _175=function(name){
return _173[name.toLowerCase()]||name;
};
var _176=function(node,name){
var attr=node.getAttributeNode&&node.getAttributeNode(name);
return attr&&attr.specified;
};
dojo.hasAttr=function(node,name){
var lc=name.toLowerCase();
return _174[_172[lc]||name]||_176(byId(node),_173[lc]||name);
};
var _177={},_178=0,_179=dojo._scopeName+"attrid",_17a={col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1};
dojo.attr=function(node,name,_17b){
node=byId(node);
var args=arguments.length,prop;
if(args==2&&typeof name!="string"){
for(var x in name){
d.attr(node,x,name[x]);
}
return node;
}
var lc=name.toLowerCase(),_17c=_172[lc]||name,_17d=_174[_17c],_17e=_173[lc]||name;
if(args==3){
do{
if(_17c=="style"&&typeof _17b!="string"){
d.style(node,_17b);
break;
}
if(_17c=="innerHTML"){
if(d.isIE&&node.tagName.toLowerCase() in _17a){
d.empty(node);
node.appendChild(d._toDom(_17b,node.ownerDocument));
}else{
node[_17c]=_17b;
}
break;
}
if(d.isFunction(_17b)){
var _17f=d.attr(node,_179);
if(!_17f){
_17f=_178++;
d.attr(node,_179,_17f);
}
if(!_177[_17f]){
_177[_17f]={};
}
var h=_177[_17f][_17c];
if(h){
d.disconnect(h);
}else{
try{
delete node[_17c];
}
catch(e){
}
}
_177[_17f][_17c]=d.connect(node,_17c,_17b);
break;
}
if(_17d||typeof _17b=="boolean"){
node[_17c]=_17b;
break;
}
node.setAttribute(_17e,_17b);
}while(false);
return node;
}
_17b=node[_17c];
if(_17d&&typeof _17b!="undefined"){
return _17b;
}
if(_17c!="href"&&(typeof _17b=="boolean"||d.isFunction(_17b))){
return _17b;
}
return _176(node,_17e)?node.getAttribute(_17e):null;
};
dojo.removeAttr=function(node,name){
byId(node).removeAttribute(_175(name));
};
dojo.getNodeProp=function(node,name){
node=byId(node);
var lc=name.toLowerCase(),_180=_172[lc]||name;
if((_180 in node)&&_180!="href"){
return node[_180];
}
var _181=_173[lc]||name;
return _176(node,_181)?node.getAttribute(_181):null;
};
dojo.create=function(tag,_182,_183,pos){
var doc=d.doc;
if(_183){
_183=byId(_183);
doc=_183.ownerDocument;
}
if(typeof tag=="string"){
tag=doc.createElement(tag);
}
if(_182){
d.attr(tag,_182);
}
if(_183){
d.place(tag,_183,pos);
}
return tag;
};
d.empty=d.isIE?function(node){
node=byId(node);
for(var c;c=node.lastChild;){
d.destroy(c);
}
}:function(node){
byId(node).innerHTML="";
};
var _184={option:["select"],tbody:["table"],thead:["table"],tfoot:["table"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","thead","tr"],legend:["fieldset"],caption:["table"],colgroup:["table"],col:["table","colgroup"],li:["ul"]},_185=/<\s*([\w\:]+)/,_186={},_187=0,_188="__"+d._scopeName+"ToDomId";
for(var _189 in _184){
var tw=_184[_189];
tw.pre=_189=="option"?"<select multiple=\"multiple\">":"<"+tw.join("><")+">";
tw.post="</"+tw.reverse().join("></")+">";
}
d._toDom=function(frag,doc){
doc=doc||d.doc;
var _18a=doc[_188];
if(!_18a){
doc[_188]=_18a=++_187+"";
_186[_18a]=doc.createElement("div");
}
frag+="";
var _18b=frag.match(_185),tag=_18b?_18b[1].toLowerCase():"",_18c=_186[_18a],wrap,i,fc,df;
if(_18b&&_184[tag]){
wrap=_184[tag];
_18c.innerHTML=wrap.pre+frag+wrap.post;
for(i=wrap.length;i;--i){
_18c=_18c.firstChild;
}
}else{
_18c.innerHTML=frag;
}
if(_18c.childNodes.length==1){
return _18c.removeChild(_18c.firstChild);
}
df=doc.createDocumentFragment();
while(fc=_18c.firstChild){
df.appendChild(fc);
}
return df;
};
var _18d="className";
dojo.hasClass=function(node,_18e){
return ((" "+byId(node)[_18d]+" ").indexOf(" "+_18e+" ")>=0);
};
var _18f=/\s+/,a1=[""],_190=function(s){
if(typeof s=="string"||s instanceof String){
if(s.indexOf(" ")<0){
a1[0]=s;
return a1;
}else{
return s.split(_18f);
}
}
return s;
};
dojo.addClass=function(node,_191){
node=byId(node);
_191=_190(_191);
var cls=" "+node[_18d]+" ";
for(var i=0,len=_191.length,c;i<len;++i){
c=_191[i];
if(c&&cls.indexOf(" "+c+" ")<0){
cls+=c+" ";
}
}
node[_18d]=d.trim(cls);
};
dojo.removeClass=function(node,_192){
node=byId(node);
var cls;
if(_192!==undefined){
_192=_190(_192);
cls=" "+node[_18d]+" ";
for(var i=0,len=_192.length;i<len;++i){
cls=cls.replace(" "+_192[i]+" "," ");
}
cls=d.trim(cls);
}else{
cls="";
}
if(node[_18d]!=cls){
node[_18d]=cls;
}
};
dojo.toggleClass=function(node,_193,_194){
if(_194===undefined){
_194=!d.hasClass(node,_193);
}
d[_194?"addClass":"removeClass"](node,_193);
};
})();
}
if(!dojo._hasResource["dojo._base.NodeList"]){
dojo._hasResource["dojo._base.NodeList"]=true;
dojo.provide("dojo._base.NodeList");
(function(){
var d=dojo;
var ap=Array.prototype,aps=ap.slice,apc=ap.concat;
var tnl=function(a,_195,_196){
if(!a.sort){
a=aps.call(a,0);
}
var ctor=_196||this._NodeListCtor||d._NodeListCtor;
a.constructor=ctor;
dojo._mixin(a,ctor.prototype);
a._NodeListCtor=ctor;
return _195?a._stash(_195):a;
};
var _197=function(f,a,o){
a=[0].concat(aps.call(a,0));
o=o||d.global;
return function(node){
a[0]=node;
return f.apply(o,a);
};
};
var _198=function(f,o){
return function(){
this.forEach(_197(f,arguments,o));
return this;
};
};
var _199=function(f,o){
return function(){
return this.map(_197(f,arguments,o));
};
};
var _19a=function(f,o){
return function(){
return this.filter(_197(f,arguments,o));
};
};
var _19b=function(f,g,o){
return function(){
var a=arguments,body=_197(f,a,o);
if(g.call(o||d.global,a)){
return this.map(body);
}
this.forEach(body);
return this;
};
};
var _19c=function(a){
return a.length==1&&(typeof a[0]=="string");
};
var _19d=function(node){
var p=node.parentNode;
if(p){
p.removeChild(node);
}
};
dojo.NodeList=function(){
return tnl(Array.apply(null,arguments));
};
d._NodeListCtor=d.NodeList;
var nl=d.NodeList,nlp=nl.prototype;
nl._wrap=nlp._wrap=tnl;
nl._adaptAsMap=_199;
nl._adaptAsForEach=_198;
nl._adaptAsFilter=_19a;
nl._adaptWithCondition=_19b;
d.forEach(["slice","splice"],function(name){
var f=ap[name];
nlp[name]=function(){
return this._wrap(f.apply(this,arguments),name=="slice"?this:null);
};
});
d.forEach(["indexOf","lastIndexOf","every","some"],function(name){
var f=d[name];
nlp[name]=function(){
return f.apply(d,[this].concat(aps.call(arguments,0)));
};
});
d.forEach(["attr","style"],function(name){
nlp[name]=_19b(d[name],_19c);
});
d.forEach(["connect","addClass","removeClass","toggleClass","empty","removeAttr"],function(name){
nlp[name]=_198(d[name]);
});
dojo.extend(dojo.NodeList,{_normalize:function(_19e,_19f){
var _1a0=_19e.parse===true?true:false;
if(typeof _19e.template=="string"){
var _1a1=_19e.templateFunc||(dojo.string&&dojo.string.substitute);
_19e=_1a1?_1a1(_19e.template,_19e):_19e;
}
var type=(typeof _19e);
if(type=="string"||type=="number"){
_19e=dojo._toDom(_19e,(_19f&&_19f.ownerDocument));
if(_19e.nodeType==11){
_19e=dojo._toArray(_19e.childNodes);
}else{
_19e=[_19e];
}
}else{
if(!dojo.isArrayLike(_19e)){
_19e=[_19e];
}else{
if(!dojo.isArray(_19e)){
_19e=dojo._toArray(_19e);
}
}
}
if(_1a0){
_19e._runParse=true;
}
return _19e;
},_cloneNode:function(node){
return node.cloneNode(true);
},_place:function(ary,_1a2,_1a3,_1a4){
if(_1a2.nodeType!=1&&_1a3=="only"){
return;
}
var _1a5=_1a2,_1a6;
var _1a7=ary.length;
for(var i=_1a7-1;i>=0;i--){
var node=(_1a4?this._cloneNode(ary[i]):ary[i]);
if(ary._runParse&&dojo.parser&&dojo.parser.parse){
if(!_1a6){
_1a6=_1a5.ownerDocument.createElement("div");
}
_1a6.appendChild(node);
dojo.parser.parse(_1a6);
node=_1a6.firstChild;
while(_1a6.firstChild){
_1a6.removeChild(_1a6.firstChild);
}
}
if(i==_1a7-1){
dojo.place(node,_1a5,_1a3);
}else{
_1a5.parentNode.insertBefore(node,_1a5);
}
_1a5=node;
}
},_stash:function(_1a8){
this._parent=_1a8;
return this;
},end:function(){
if(this._parent){
return this._parent;
}else{
return new this._NodeListCtor();
}
},concat:function(item){
var t=d.isArray(this)?this:aps.call(this,0),m=d.map(arguments,function(a){
return a&&!d.isArray(a)&&(typeof NodeList!="undefined"&&a.constructor===NodeList||a.constructor===this._NodeListCtor)?aps.call(a,0):a;
});
return this._wrap(apc.apply(t,m),this);
},map:function(func,obj){
return this._wrap(d.map(this,func,obj),this);
},forEach:function(_1a9,_1aa){
d.forEach(this,_1a9,_1aa);
return this;
},coords:_199(d.coords),position:_199(d.position),place:function(_1ab,_1ac){
var item=d.query(_1ab)[0];
return this.forEach(function(node){
d.place(node,item,_1ac);
});
},orphan:function(_1ad){
return (_1ad?d._filterQueryResult(this,_1ad):this).forEach(_19d);
},adopt:function(_1ae,_1af){
return d.query(_1ae).place(this[0],_1af)._stash(this);
},query:function(_1b0){
if(!_1b0){
return this;
}
var ret=this.map(function(node){
return d.query(_1b0,node).filter(function(_1b1){
return _1b1!==undefined;
});
});
return this._wrap(apc.apply([],ret),this);
},filter:function(_1b2){
var a=arguments,_1b3=this,_1b4=0;
if(typeof _1b2=="string"){
_1b3=d._filterQueryResult(this,a[0]);
if(a.length==1){
return _1b3._stash(this);
}
_1b4=1;
}
return this._wrap(d.filter(_1b3,a[_1b4],a[_1b4+1]),this);
},addContent:function(_1b5,_1b6){
_1b5=this._normalize(_1b5,this[0]);
for(var i=0,node;node=this[i];i++){
this._place(_1b5,node,_1b6,i>0);
}
return this;
},instantiate:function(_1b7,_1b8){
var c=d.isFunction(_1b7)?_1b7:d.getObject(_1b7);
_1b8=_1b8||{};
return this.forEach(function(node){
new c(_1b8,node);
});
},at:function(){
var t=new this._NodeListCtor();
d.forEach(arguments,function(i){
if(this[i]){
t.push(this[i]);
}
},this);
return t._stash(this);
}});
nl.events=["blur","focus","change","click","error","keydown","keypress","keyup","load","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","submit"];
d.forEach(nl.events,function(evt){
var _1b9="on"+evt;
nlp[_1b9]=function(a,b){
return this.connect(_1b9,a,b);
};
});
})();
}
if(!dojo._hasResource["dojo._base.query"]){
dojo._hasResource["dojo._base.query"]=true;
if(typeof dojo!="undefined"){
dojo.provide("dojo._base.query");
}
(function(d){
var trim=d.trim;
var each=d.forEach;
var qlc=d._NodeListCtor=d.NodeList;
var _1ba=function(){
return d.doc;
};
var _1bb=((d.isWebKit||d.isMozilla)&&((_1ba().compatMode)=="BackCompat"));
var _1bc=!!_1ba().firstChild["children"]?"children":"childNodes";
var _1bd=">~+";
var _1be=false;
var _1bf=function(){
return true;
};
var _1c0=function(_1c1){
if(_1bd.indexOf(_1c1.slice(-1))>=0){
_1c1+=" * ";
}else{
_1c1+=" ";
}
var ts=function(s,e){
return trim(_1c1.slice(s,e));
};
var _1c2=[];
var _1c3=-1,_1c4=-1,_1c5=-1,_1c6=-1,_1c7=-1,inId=-1,_1c8=-1,lc="",cc="",_1c9;
var x=0,ql=_1c1.length,_1ca=null,_1cb=null;
var _1cc=function(){
if(_1c8>=0){
var tv=(_1c8==x)?null:ts(_1c8,x);
_1ca[(_1bd.indexOf(tv)<0)?"tag":"oper"]=tv;
_1c8=-1;
}
};
var _1cd=function(){
if(inId>=0){
_1ca.id=ts(inId,x).replace(/\\/g,"");
inId=-1;
}
};
var _1ce=function(){
if(_1c7>=0){
_1ca.classes.push(ts(_1c7+1,x).replace(/\\/g,""));
_1c7=-1;
}
};
var _1cf=function(){
_1cd();
_1cc();
_1ce();
};
var _1d0=function(){
_1cf();
if(_1c6>=0){
_1ca.pseudos.push({name:ts(_1c6+1,x)});
}
_1ca.loops=(_1ca.pseudos.length||_1ca.attrs.length||_1ca.classes.length);
_1ca.oquery=_1ca.query=ts(_1c9,x);
_1ca.otag=_1ca.tag=(_1ca["oper"])?null:(_1ca.tag||"*");
if(_1ca.tag){
_1ca.tag=_1ca.tag.toUpperCase();
}
if(_1c2.length&&(_1c2[_1c2.length-1].oper)){
_1ca.infixOper=_1c2.pop();
_1ca.query=_1ca.infixOper.query+" "+_1ca.query;
}
_1c2.push(_1ca);
_1ca=null;
};
for(;lc=cc,cc=_1c1.charAt(x),x<ql;x++){
if(lc=="\\"){
continue;
}
if(!_1ca){
_1c9=x;
_1ca={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null,getTag:function(){
return (_1be)?this.otag:this.tag;
}};
_1c8=x;
}
if(_1c3>=0){
if(cc=="]"){
if(!_1cb.attr){
_1cb.attr=ts(_1c3+1,x);
}else{
_1cb.matchFor=ts((_1c5||_1c3+1),x);
}
var cmf=_1cb.matchFor;
if(cmf){
if((cmf.charAt(0)=="\"")||(cmf.charAt(0)=="'")){
_1cb.matchFor=cmf.slice(1,-1);
}
}
_1ca.attrs.push(_1cb);
_1cb=null;
_1c3=_1c5=-1;
}else{
if(cc=="="){
var _1d1=("|~^$*".indexOf(lc)>=0)?lc:"";
_1cb.type=_1d1+cc;
_1cb.attr=ts(_1c3+1,x-_1d1.length);
_1c5=x+1;
}
}
}else{
if(_1c4>=0){
if(cc==")"){
if(_1c6>=0){
_1cb.value=ts(_1c4+1,x);
}
_1c6=_1c4=-1;
}
}else{
if(cc=="#"){
_1cf();
inId=x+1;
}else{
if(cc=="."){
_1cf();
_1c7=x;
}else{
if(cc==":"){
_1cf();
_1c6=x;
}else{
if(cc=="["){
_1cf();
_1c3=x;
_1cb={};
}else{
if(cc=="("){
if(_1c6>=0){
_1cb={name:ts(_1c6+1,x),value:null};
_1ca.pseudos.push(_1cb);
}
_1c4=x;
}else{
if((cc==" ")&&(lc!=cc)){
_1d0();
}
}
}
}
}
}
}
}
}
return _1c2;
};
var _1d2=function(_1d3,_1d4){
if(!_1d3){
return _1d4;
}
if(!_1d4){
return _1d3;
}
return function(){
return _1d3.apply(window,arguments)&&_1d4.apply(window,arguments);
};
};
var _1d5=function(i,arr){
var r=arr||[];
if(i){
r.push(i);
}
return r;
};
var _1d6=function(n){
return (1==n.nodeType);
};
var _1d7="";
var _1d8=function(elem,attr){
if(!elem){
return _1d7;
}
if(attr=="class"){
return elem.className||_1d7;
}
if(attr=="for"){
return elem.htmlFor||_1d7;
}
if(attr=="style"){
return elem.style.cssText||_1d7;
}
return (_1be?elem.getAttribute(attr):elem.getAttribute(attr,2))||_1d7;
};
var _1d9={"*=":function(attr,_1da){
return function(elem){
return (_1d8(elem,attr).indexOf(_1da)>=0);
};
},"^=":function(attr,_1db){
return function(elem){
return (_1d8(elem,attr).indexOf(_1db)==0);
};
},"$=":function(attr,_1dc){
var tval=" "+_1dc;
return function(elem){
var ea=" "+_1d8(elem,attr);
return (ea.lastIndexOf(_1dc)==(ea.length-_1dc.length));
};
},"~=":function(attr,_1dd){
var tval=" "+_1dd+" ";
return function(elem){
var ea=" "+_1d8(elem,attr)+" ";
return (ea.indexOf(tval)>=0);
};
},"|=":function(attr,_1de){
var _1df=" "+_1de+"-";
return function(elem){
var ea=" "+_1d8(elem,attr);
return ((ea==_1de)||(ea.indexOf(_1df)==0));
};
},"=":function(attr,_1e0){
return function(elem){
return (_1d8(elem,attr)==_1e0);
};
}};
var _1e1=(typeof _1ba().firstChild.nextElementSibling=="undefined");
var _1e2=!_1e1?"nextElementSibling":"nextSibling";
var _1e3=!_1e1?"previousElementSibling":"previousSibling";
var _1e4=(_1e1?_1d6:_1bf);
var _1e5=function(node){
while(node=node[_1e3]){
if(_1e4(node)){
return false;
}
}
return true;
};
var _1e6=function(node){
while(node=node[_1e2]){
if(_1e4(node)){
return false;
}
}
return true;
};
var _1e7=function(node){
var root=node.parentNode;
var i=0,tret=root[_1bc],ci=(node["_i"]||-1),cl=(root["_l"]||-1);
if(!tret){
return -1;
}
var l=tret.length;
if(cl==l&&ci>=0&&cl>=0){
return ci;
}
root["_l"]=l;
ci=-1;
for(var te=root["firstElementChild"]||root["firstChild"];te;te=te[_1e2]){
if(_1e4(te)){
te["_i"]=++i;
if(node===te){
ci=i;
}
}
}
return ci;
};
var _1e8=function(elem){
return !((_1e7(elem))%2);
};
var _1e9=function(elem){
return ((_1e7(elem))%2);
};
var _1ea={"checked":function(name,_1eb){
return function(elem){
return !!("checked" in elem?elem.checked:elem.selected);
};
},"first-child":function(){
return _1e5;
},"last-child":function(){
return _1e6;
},"only-child":function(name,_1ec){
return function(node){
if(!_1e5(node)){
return false;
}
if(!_1e6(node)){
return false;
}
return true;
};
},"empty":function(name,_1ed){
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,_1ee){
var cz=_1ee.charAt(0);
if(cz=="\""||cz=="'"){
_1ee=_1ee.slice(1,-1);
}
return function(elem){
return (elem.innerHTML.indexOf(_1ee)>=0);
};
},"not":function(name,_1ef){
var p=_1c0(_1ef)[0];
var _1f0={el:1};
if(p.tag!="*"){
_1f0.tag=1;
}
if(!p.classes.length){
_1f0.classes=1;
}
var ntf=_1f1(p,_1f0);
return function(elem){
return (!ntf(elem));
};
},"nth-child":function(name,_1f2){
var pi=parseInt;
if(_1f2=="odd"){
return _1e9;
}else{
if(_1f2=="even"){
return _1e8;
}
}
if(_1f2.indexOf("n")!=-1){
var _1f3=_1f2.split("n",2);
var pred=_1f3[0]?((_1f3[0]=="-")?-1:pi(_1f3[0])):1;
var idx=_1f3[1]?pi(_1f3[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=_1e7(elem);
return (i>=lb)&&(ub<0||i<=ub)&&((i%pred)==idx);
};
}else{
_1f2=idx;
}
}
var _1f4=pi(_1f2);
return function(elem){
return (_1e7(elem)==_1f4);
};
}};
var _1f5=(d.isIE)?function(cond){
var clc=cond.toLowerCase();
if(clc=="class"){
cond="className";
}
return function(elem){
return (_1be?elem.getAttribute(cond):elem[cond]||elem[clc]);
};
}:function(cond){
return function(elem){
return (elem&&elem.getAttribute&&elem.hasAttribute(cond));
};
};
var _1f1=function(_1f6,_1f7){
if(!_1f6){
return _1bf;
}
_1f7=_1f7||{};
var ff=null;
if(!("el" in _1f7)){
ff=_1d2(ff,_1d6);
}
if(!("tag" in _1f7)){
if(_1f6.tag!="*"){
ff=_1d2(ff,function(elem){
return (elem&&(elem.tagName==_1f6.getTag()));
});
}
}
if(!("classes" in _1f7)){
each(_1f6.classes,function(_1f8,idx,arr){
var re=new RegExp("(?:^|\\s)"+_1f8+"(?:\\s|$)");
ff=_1d2(ff,function(elem){
return re.test(elem.className);
});
ff.count=idx;
});
}
if(!("pseudos" in _1f7)){
each(_1f6.pseudos,function(_1f9){
var pn=_1f9.name;
if(_1ea[pn]){
ff=_1d2(ff,_1ea[pn](pn,_1f9.value));
}
});
}
if(!("attrs" in _1f7)){
each(_1f6.attrs,function(attr){
var _1fa;
var a=attr.attr;
if(attr.type&&_1d9[attr.type]){
_1fa=_1d9[attr.type](a,attr.matchFor);
}else{
if(a.length){
_1fa=_1f5(a);
}
}
if(_1fa){
ff=_1d2(ff,_1fa);
}
});
}
if(!("id" in _1f7)){
if(_1f6.id){
ff=_1d2(ff,function(elem){
return (!!elem&&(elem.id==_1f6.id));
});
}
}
if(!ff){
if(!("default" in _1f7)){
ff=_1bf;
}
}
return ff;
};
var _1fb=function(_1fc){
return function(node,ret,bag){
while(node=node[_1e2]){
if(_1e1&&(!_1d6(node))){
continue;
}
if((!bag||_1fd(node,bag))&&_1fc(node)){
ret.push(node);
}
break;
}
return ret;
};
};
var _1fe=function(_1ff){
return function(root,ret,bag){
var te=root[_1e2];
while(te){
if(_1e4(te)){
if(bag&&!_1fd(te,bag)){
break;
}
if(_1ff(te)){
ret.push(te);
}
}
te=te[_1e2];
}
return ret;
};
};
var _200=function(_201){
_201=_201||_1bf;
return function(root,ret,bag){
var te,x=0,tret=root[_1bc];
while(te=tret[x++]){
if(_1e4(te)&&(!bag||_1fd(te,bag))&&(_201(te,x))){
ret.push(te);
}
}
return ret;
};
};
var _202=function(node,root){
var pn=node.parentNode;
while(pn){
if(pn==root){
break;
}
pn=pn.parentNode;
}
return !!pn;
};
var _203={};
var _204=function(_205){
var _206=_203[_205.query];
if(_206){
return _206;
}
var io=_205.infixOper;
var oper=(io?io.oper:"");
var _207=_1f1(_205,{el:1});
var qt=_205.tag;
var _208=("*"==qt);
var ecs=_1ba()["getElementsByClassName"];
if(!oper){
if(_205.id){
_207=(!_205.loops&&_208)?_1bf:_1f1(_205,{el:1,id:1});
_206=function(root,arr){
var te=d.byId(_205.id,(root.ownerDocument||root));
if(!te||!_207(te)){
return;
}
if(9==root.nodeType){
return _1d5(te,arr);
}else{
if(_202(te,root)){
return _1d5(te,arr);
}
}
};
}else{
if(ecs&&/\{\s*\[native code\]\s*\}/.test(String(ecs))&&_205.classes.length&&!_1bb){
_207=_1f1(_205,{el:1,classes:1,id:1});
var _209=_205.classes.join(" ");
_206=function(root,arr,bag){
var ret=_1d5(0,arr),te,x=0;
var tret=root.getElementsByClassName(_209);
while((te=tret[x++])){
if(_207(te,root)&&_1fd(te,bag)){
ret.push(te);
}
}
return ret;
};
}else{
if(!_208&&!_205.loops){
_206=function(root,arr,bag){
var ret=_1d5(0,arr),te,x=0;
var tret=root.getElementsByTagName(_205.getTag());
while((te=tret[x++])){
if(_1fd(te,bag)){
ret.push(te);
}
}
return ret;
};
}else{
_207=_1f1(_205,{el:1,tag:1,id:1});
_206=function(root,arr,bag){
var ret=_1d5(0,arr),te,x=0;
var tret=root.getElementsByTagName(_205.getTag());
while((te=tret[x++])){
if(_207(te,root)&&_1fd(te,bag)){
ret.push(te);
}
}
return ret;
};
}
}
}
}else{
var _20a={el:1};
if(_208){
_20a.tag=1;
}
_207=_1f1(_205,_20a);
if("+"==oper){
_206=_1fb(_207);
}else{
if("~"==oper){
_206=_1fe(_207);
}else{
if(">"==oper){
_206=_200(_207);
}
}
}
}
return _203[_205.query]=_206;
};
var _20b=function(root,_20c){
var _20d=_1d5(root),qp,x,te,qpl=_20c.length,bag,ret;
for(var i=0;i<qpl;i++){
ret=[];
qp=_20c[i];
x=_20d.length-1;
if(x>0){
bag={};
ret.nozip=true;
}
var gef=_204(qp);
for(var j=0;(te=_20d[j]);j++){
gef(te,ret,bag);
}
if(!ret.length){
break;
}
_20d=ret;
}
return ret;
};
var _20e={},_20f={};
var _210=function(_211){
var _212=_1c0(trim(_211));
if(_212.length==1){
var tef=_204(_212[0]);
return function(root){
var r=tef(root,new qlc());
if(r){
r.nozip=true;
}
return r;
};
}
return function(root){
return _20b(root,_212);
};
};
var nua=navigator.userAgent;
var wk="WebKit/";
var _213=(d.isWebKit&&(nua.indexOf(wk)>0)&&(parseFloat(nua.split(wk)[1])>528));
var _214=d.isIE?"commentStrip":"nozip";
var qsa="querySelectorAll";
var _215=(!!_1ba()[qsa]&&(!d.isSafari||(d.isSafari>3.1)||_213));
var _216=/n\+\d|([^ ])?([>~+])([^ =])?/g;
var _217=function(_218,pre,ch,post){
return ch?(pre?pre+" ":"")+ch+(post?" "+post:""):_218;
};
var _219=function(_21a,_21b){
_21a=_21a.replace(_216,_217);
if(_215){
var _21c=_20f[_21a];
if(_21c&&!_21b){
return _21c;
}
}
var _21d=_20e[_21a];
if(_21d){
return _21d;
}
var qcz=_21a.charAt(0);
var _21e=(-1==_21a.indexOf(" "));
if((_21a.indexOf("#")>=0)&&(_21e)){
_21b=true;
}
var _21f=(_215&&(!_21b)&&(_1bd.indexOf(qcz)==-1)&&(!d.isIE||(_21a.indexOf(":")==-1))&&(!(_1bb&&(_21a.indexOf(".")>=0)))&&(_21a.indexOf(":contains")==-1)&&(_21a.indexOf(":checked")==-1)&&(_21a.indexOf("|=")==-1));
if(_21f){
var tq=(_1bd.indexOf(_21a.charAt(_21a.length-1))>=0)?(_21a+" *"):_21a;
return _20f[_21a]=function(root){
try{
if(!((9==root.nodeType)||_21e)){
throw "";
}
var r=root[qsa](tq);
r[_214]=true;
return r;
}
catch(e){
return _219(_21a,true)(root);
}
};
}else{
var _220=_21a.split(/\s*,\s*/);
return _20e[_21a]=((_220.length<2)?_210(_21a):function(root){
var _221=0,ret=[],tp;
while((tp=_220[_221++])){
ret=ret.concat(_210(tp)(root));
}
return ret;
});
}
};
var _222=0;
var _223=d.isIE?function(node){
if(_1be){
return (node.getAttribute("_uid")||node.setAttribute("_uid",++_222)||_222);
}else{
return node.uniqueID;
}
}:function(node){
return (node._uid||(node._uid=++_222));
};
var _1fd=function(node,bag){
if(!bag){
return 1;
}
var id=_223(node);
if(!bag[id]){
return bag[id]=1;
}
return 0;
};
var _224="_zipIdx";
var _225=function(arr){
if(arr&&arr.nozip){
return (qlc._wrap)?qlc._wrap(arr):arr;
}
var ret=new qlc();
if(!arr||!arr.length){
return ret;
}
if(arr[0]){
ret.push(arr[0]);
}
if(arr.length<2){
return ret;
}
_222++;
if(d.isIE&&_1be){
var _226=_222+"";
arr[0].setAttribute(_224,_226);
for(var x=1,te;te=arr[x];x++){
if(arr[x].getAttribute(_224)!=_226){
ret.push(te);
}
te.setAttribute(_224,_226);
}
}else{
if(d.isIE&&arr.commentStrip){
try{
for(var x=1,te;te=arr[x];x++){
if(_1d6(te)){
ret.push(te);
}
}
}
catch(e){
}
}else{
if(arr[0]){
arr[0][_224]=_222;
}
for(var x=1,te;te=arr[x];x++){
if(arr[x][_224]!=_222){
ret.push(te);
}
te[_224]=_222;
}
}
}
return ret;
};
d.query=function(_227,root){
qlc=d._NodeListCtor;
if(!_227){
return new qlc();
}
if(_227.constructor==qlc){
return _227;
}
if(typeof _227!="string"){
return new qlc(_227);
}
if(typeof root=="string"){
root=d.byId(root);
if(!root){
return new qlc();
}
}
root=root||_1ba();
var od=root.ownerDocument||root.documentElement;
_1be=(root.contentType&&root.contentType=="application/xml")||(d.isOpera&&(root.doctype||od.toString()=="[object XMLDocument]"))||(!!od)&&(d.isIE?od.xml:(root.xmlVersion||od.xmlVersion));
var r=_219(_227)(root);
if(r&&r.nozip&&!qlc._wrap){
return r;
}
return _225(r);
};
d.query.pseudos=_1ea;
d._filterQueryResult=function(_228,_229){
var _22a=new d._NodeListCtor();
var _22b=_1f1(_1c0(_229)[0]);
for(var x=0,te;te=_228[x];x++){
if(_22b(te)){
_22a.push(te);
}
}
return _22a;
};
})(this["queryPortability"]||this["acme"]||dojo);
}
if(!dojo._hasResource["dojo._base.xhr"]){
dojo._hasResource["dojo._base.xhr"]=true;
dojo.provide("dojo._base.xhr");
(function(){
var _22c=dojo,cfg=_22c.config;
function _22d(obj,name,_22e){
if(_22e===null){
return;
}
var val=obj[name];
if(typeof val=="string"){
obj[name]=[val,_22e];
}else{
if(_22c.isArray(val)){
val.push(_22e);
}else{
obj[name]=_22e;
}
}
};
dojo.fieldToObject=function(_22f){
var ret=null;
var item=_22c.byId(_22f);
if(item){
var _230=item.name;
var type=(item.type||"").toLowerCase();
if(_230&&type&&!item.disabled){
if(type=="radio"||type=="checkbox"){
if(item.checked){
ret=item.value;
}
}else{
if(item.multiple){
ret=[];
_22c.query("option",item).forEach(function(opt){
if(opt.selected){
ret.push(opt.value);
}
});
}else{
ret=item.value;
}
}
}
}
return ret;
};
dojo.formToObject=function(_231){
var ret={};
var _232="file|submit|image|reset|button|";
_22c.forEach(dojo.byId(_231).elements,function(item){
var _233=item.name;
var type=(item.type||"").toLowerCase();
if(_233&&type&&_232.indexOf(type)==-1&&!item.disabled){
_22d(ret,_233,_22c.fieldToObject(item));
if(type=="image"){
ret[_233+".x"]=ret[_233+".y"]=ret[_233].x=ret[_233].y=0;
}
}
});
return ret;
};
dojo.objectToQuery=function(map){
var enc=encodeURIComponent;
var _234=[];
var _235={};
for(var name in map){
var _236=map[name];
if(_236!=_235[name]){
var _237=enc(name)+"=";
if(_22c.isArray(_236)){
for(var i=0;i<_236.length;i++){
_234.push(_237+enc(_236[i]));
}
}else{
_234.push(_237+enc(_236));
}
}
}
return _234.join("&");
};
dojo.formToQuery=function(_238){
return _22c.objectToQuery(_22c.formToObject(_238));
};
dojo.formToJson=function(_239,_23a){
return _22c.toJson(_22c.formToObject(_239),_23a);
};
dojo.queryToObject=function(str){
var ret={};
var qp=str.split("&");
var dec=decodeURIComponent;
_22c.forEach(qp,function(item){
if(item.length){
var _23b=item.split("=");
var name=dec(_23b.shift());
var val=dec(_23b.join("="));
if(typeof ret[name]=="string"){
ret[name]=[ret[name]];
}
if(_22c.isArray(ret[name])){
ret[name].push(val);
}else{
ret[name]=val;
}
}
});
return ret;
};
dojo._blockAsync=false;
var _23c=_22c._contentHandlers=dojo.contentHandlers={text:function(xhr){
return xhr.responseText;
},json:function(xhr){
return _22c.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 _23d=xhr.responseText;
var _23e=_23d.indexOf("/*");
var _23f=_23d.lastIndexOf("*/");
if(_23e==-1||_23f==-1){
throw new Error("JSON was not comment filtered");
}
return _22c.fromJson(_23d.substring(_23e+2,_23f));
},javascript:function(xhr){
return _22c.eval(xhr.responseText);
},xml:function(xhr){
var _240=xhr.responseXML;
if(_22c.isIE&&(!_240||!_240.documentElement)){
var ms=function(n){
return "MSXML"+n+".DOMDocument";
};
var dp=["Microsoft.XMLDOM",ms(6),ms(4),ms(3),ms(2)];
_22c.some(dp,function(p){
try{
var dom=new ActiveXObject(p);
dom.async=false;
dom.loadXML(xhr.responseText);
_240=dom;
}
catch(e){
return false;
}
return true;
});
}
return _240;
},"json-comment-optional":function(xhr){
if(xhr.responseText&&/^[^{\[]*\/\*/.test(xhr.responseText)){
return _23c["json-comment-filtered"](xhr);
}else{
return _23c["json"](xhr);
}
}};
dojo._ioSetArgs=function(args,_241,_242,_243){
var _244={args:args,url:args.url};
var _245=null;
if(args.form){
var form=_22c.byId(args.form);
var _246=form.getAttributeNode("action");
_244.url=_244.url||(_246?_246.value:null);
_245=_22c.formToObject(form);
}
var _247=[{}];
if(_245){
_247.push(_245);
}
if(args.content){
_247.push(args.content);
}
if(args.preventCache){
_247.push({"dojo.preventCache":new Date().valueOf()});
}
_244.query=_22c.objectToQuery(_22c.mixin.apply(null,_247));
_244.handleAs=args.handleAs||"text";
var d=new _22c.Deferred(_241);
d.addCallbacks(_242,function(_248){
return _243(_248,d);
});
var ld=args.load;
if(ld&&_22c.isFunction(ld)){
d.addCallback(function(_249){
return ld.call(args,_249,_244);
});
}
var err=args.error;
if(err&&_22c.isFunction(err)){
d.addErrback(function(_24a){
return err.call(args,_24a,_244);
});
}
var _24b=args.handle;
if(_24b&&_22c.isFunction(_24b)){
d.addBoth(function(_24c){
return _24b.call(args,_24c,_244);
});
}
if(cfg.ioPublish&&_22c.publish&&_244.args.ioPublish!==false){
d.addCallbacks(function(res){
_22c.publish("/dojo/io/load",[d,res]);
return res;
},function(res){
_22c.publish("/dojo/io/error",[d,res]);
return res;
});
d.addBoth(function(res){
_22c.publish("/dojo/io/done",[d,res]);
return res;
});
}
d.ioArgs=_244;
return d;
};
var _24d=function(dfd){
dfd.canceled=true;
var xhr=dfd.ioArgs.xhr;
var _24e=typeof xhr.abort;
if(_24e=="function"||_24e=="object"||_24e=="unknown"){
xhr.abort();
}
var err=dfd.ioArgs.error;
if(!err){
err=new Error("xhr cancelled");
err.dojoType="cancel";
}
return err;
};
var _24f=function(dfd){
var ret=_23c[dfd.ioArgs.handleAs](dfd.ioArgs.xhr);
return ret===undefined?null:ret;
};
var _250=function(_251,dfd){
if(!dfd.ioArgs.args.failOk){
console.error(_251);
}
return _251;
};
var _252=null;
var _253=[];
var _254=0;
var _255=function(dfd){
if(_254<=0){
_254=0;
if(cfg.ioPublish&&_22c.publish&&(!dfd||dfd&&dfd.ioArgs.args.ioPublish!==false)){
_22c.publish("/dojo/io/stop");
}
}
};
var _256=function(){
var now=(new Date()).getTime();
if(!_22c._blockAsync){
for(var i=0,tif;i<_253.length&&(tif=_253[i]);i++){
var dfd=tif.dfd;
var func=function(){
if(!dfd||dfd.canceled||!tif.validCheck(dfd)){
_253.splice(i--,1);
_254-=1;
}else{
if(tif.ioCheck(dfd)){
_253.splice(i--,1);
tif.resHandle(dfd);
_254-=1;
}else{
if(dfd.startTime){
if(dfd.startTime+(dfd.ioArgs.args.timeout||0)<now){
_253.splice(i--,1);
var err=new Error("timeout exceeded");
err.dojoType="timeout";
dfd.errback(err);
dfd.cancel();
_254-=1;
}
}
}
}
};
if(dojo.config.debugAtAllCosts){
func.call(this);
}else{
try{
func.call(this);
}
catch(e){
dfd.errback(e);
}
}
}
}
_255(dfd);
if(!_253.length){
clearInterval(_252);
_252=null;
return;
}
};
dojo._ioCancelAll=function(){
try{
_22c.forEach(_253,function(i){
try{
i.dfd.cancel();
}
catch(e){
}
});
}
catch(e){
}
};
if(_22c.isIE){
_22c.addOnWindowUnload(_22c._ioCancelAll);
}
_22c._ioNotifyStart=function(dfd){
if(cfg.ioPublish&&_22c.publish&&dfd.ioArgs.args.ioPublish!==false){
if(!_254){
_22c.publish("/dojo/io/start");
}
_254+=1;
_22c.publish("/dojo/io/send",[dfd]);
}
};
_22c._ioWatch=function(dfd,_257,_258,_259){
var args=dfd.ioArgs.args;
if(args.timeout){
dfd.startTime=(new Date()).getTime();
}
_253.push({dfd:dfd,validCheck:_257,ioCheck:_258,resHandle:_259});
if(!_252){
_252=setInterval(_256,50);
}
if(args.sync){
_256();
}
};
var _25a="application/x-www-form-urlencoded";
var _25b=function(dfd){
return dfd.ioArgs.xhr.readyState;
};
var _25c=function(dfd){
return 4==dfd.ioArgs.xhr.readyState;
};
var _25d=function(dfd){
var xhr=dfd.ioArgs.xhr;
if(_22c._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(_25e){
if(_25e.query.length){
_25e.url+=(_25e.url.indexOf("?")==-1?"?":"&")+_25e.query;
_25e.query=null;
}
};
dojo.xhr=function(_25f,args,_260){
var dfd=_22c._ioSetArgs(args,_24d,_24f,_250);
var _261=dfd.ioArgs;
var xhr=_261.xhr=_22c._xhrObj(_261.args);
if(!xhr){
dfd.cancel();
return dfd;
}
if("postData" in args){
_261.query=args.postData;
}else{
if("putData" in args){
_261.query=args.putData;
}else{
if("rawBody" in args){
_261.query=args.rawBody;
}else{
if((arguments.length>2&&!_260)||"POST|PUT".indexOf(_25f.toUpperCase())==-1){
_22c._ioAddQueryToUrl(_261);
}
}
}
}
xhr.open(_25f,_261.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{
if(args.headers[hdr]){
xhr.setRequestHeader(hdr,args.headers[hdr]);
}
}
}
}
xhr.setRequestHeader("Content-Type",args.contentType||_25a);
if(!args.headers||!("X-Requested-With" in args.headers)){
xhr.setRequestHeader("X-Requested-With","XMLHttpRequest");
}
_22c._ioNotifyStart(dfd);
if(dojo.config.debugAtAllCosts){
xhr.send(_261.query);
}else{
try{
xhr.send(_261.query);
}
catch(e){
_261.error=e;
dfd.cancel();
}
}
_22c._ioWatch(dfd,_25b,_25c,_25d);
xhr=null;
return dfd;
};
dojo.xhrGet=function(args){
return _22c.xhr("GET",args);
};
dojo.rawXhrPost=dojo.xhrPost=function(args){
return _22c.xhr("POST",args,true);
};
dojo.rawXhrPut=dojo.xhrPut=function(args){
return _22c.xhr("PUT",args,true);
};
dojo.xhrDelete=function(args){
return _22c.xhr("DELETE",args);
};
})();
}
if(!dojo._hasResource["dojo._base.fx"]){
dojo._hasResource["dojo._base.fx"]=true;
dojo.provide("dojo._base.fx");
(function(){
var d=dojo;
var _262=d._mixin;
dojo._Line=function(_263,end){
this.start=_263;
this.end=end;
};
dojo._Line.prototype.getValue=function(n){
return ((this.end-this.start)*n)+this.start;
};
dojo.Animation=function(args){
_262(this,args);
if(d.isArray(this.curve)){
this.curve=new d._Line(this.curve[0],this.curve[1]);
}
};
d._Animation=d.Animation;
d.extend(dojo.Animation,{duration:350,repeat:0,rate:20,_percent:0,_startRepeatCount:0,_getStep:function(){
var _264=this._percent,_265=this.easing;
return _265?_265(_264):_264;
},_fire:function(evt,args){
var a=args||[];
if(this[evt]){
if(d.config.debugAtAllCosts){
this[evt].apply(this,a);
}else{
try{
this[evt].apply(this,a);
}
catch(e){
console.error("exception in animation handler for:",evt);
console.error(e);
}
}
}
return this;
},play:function(_266,_267){
var _268=this;
if(_268._delayTimer){
_268._clearTimer();
}
if(_267){
_268._stopTimer();
_268._active=_268._paused=false;
_268._percent=0;
}else{
if(_268._active&&!_268._paused){
return _268;
}
}
_268._fire("beforeBegin",[_268.node]);
var de=_266||_268.delay,_269=dojo.hitch(_268,"_play",_267);
if(de>0){
_268._delayTimer=setTimeout(_269,de);
return _268;
}
_269();
return _268;
},_play:function(_26a){
var _26b=this;
if(_26b._delayTimer){
_26b._clearTimer();
}
_26b._startTime=new Date().valueOf();
if(_26b._paused){
_26b._startTime-=_26b.duration*_26b._percent;
}
_26b._endTime=_26b._startTime+_26b.duration;
_26b._active=true;
_26b._paused=false;
var _26c=_26b.curve.getValue(_26b._getStep());
if(!_26b._percent){
if(!_26b._startRepeatCount){
_26b._startRepeatCount=_26b.repeat;
}
_26b._fire("onBegin",[_26c]);
}
_26b._fire("onPlay",[_26c]);
_26b._cycle();
return _26b;
},pause:function(){
var _26d=this;
if(_26d._delayTimer){
_26d._clearTimer();
}
_26d._stopTimer();
if(!_26d._active){
return _26d;
}
_26d._paused=true;
_26d._fire("onPause",[_26d.curve.getValue(_26d._getStep())]);
return _26d;
},gotoPercent:function(_26e,_26f){
var _270=this;
_270._stopTimer();
_270._active=_270._paused=true;
_270._percent=_26e;
if(_26f){
_270.play();
}
return _270;
},stop:function(_271){
var _272=this;
if(_272._delayTimer){
_272._clearTimer();
}
if(!_272._timer){
return _272;
}
_272._stopTimer();
if(_271){
_272._percent=1;
}
_272._fire("onStop",[_272.curve.getValue(_272._getStep())]);
_272._active=_272._paused=false;
return _272;
},status:function(){
if(this._active){
return this._paused?"paused":"playing";
}
return "stopped";
},_cycle:function(){
var _273=this;
if(_273._active){
var curr=new Date().valueOf();
var step=(curr-_273._startTime)/(_273._endTime-_273._startTime);
if(step>=1){
step=1;
}
_273._percent=step;
if(_273.easing){
step=_273.easing(step);
}
_273._fire("onAnimate",[_273.curve.getValue(step)]);
if(_273._percent<1){
_273._startTimer();
}else{
_273._active=false;
if(_273.repeat>0){
_273.repeat--;
_273.play(null,true);
}else{
if(_273.repeat==-1){
_273.play(null,true);
}else{
if(_273._startRepeatCount){
_273.repeat=_273._startRepeatCount;
_273._startRepeatCount=0;
}
}
}
_273._percent=0;
_273._fire("onEnd",[_273.node]);
!_273.repeat&&_273._stopTimer();
}
}
return _273;
},_clearTimer:function(){
clearTimeout(this._delayTimer);
delete this._delayTimer;
}});
var ctr=0,_274=[],_275=null,_276={run:function(){
}};
d.extend(d.Animation,{_startTimer:function(){
if(!this._timer){
this._timer=d.connect(_276,"run",this,"_cycle");
ctr++;
}
if(!_275){
_275=setInterval(d.hitch(_276,"run"),this.rate);
}
},_stopTimer:function(){
if(this._timer){
d.disconnect(this._timer);
this._timer=null;
ctr--;
}
if(ctr<=0){
clearInterval(_275);
_275=null;
ctr=0;
}
}});
var _277=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 _278=_262({properties:{}},args),_279=(_278.properties.opacity={});
_279.start=!("start" in _278)?function(){
return +d.style(_278.node,"opacity")||0;
}:_278.start;
_279.end=_278.end;
var anim=d.animateProperty(_278);
d.connect(anim,"beforeBegin",d.partial(_277,_278.node));
return anim;
};
dojo.fadeIn=function(args){
return d._fade(_262({end:1},args));
};
dojo.fadeOut=function(args){
return d._fade(_262({end:0},args));
};
dojo._defaultEasing=function(n){
return 0.5+((Math.sin((n+1.5)*Math.PI))/2);
};
var _27a=function(_27b){
this._properties=_27b;
for(var p in _27b){
var prop=_27b[p];
if(prop.start instanceof d.Color){
prop.tempColor=new d.Color();
}
}
};
_27a.prototype.getValue=function(r){
var ret={};
for(var p in this._properties){
var prop=this._properties[p],_27c=prop.start;
if(_27c instanceof d.Color){
ret[p]=d.blendColors(_27c,prop.end,r,prop.tempColor).toCss();
}else{
if(!d.isArray(_27c)){
ret[p]=((prop.end-_27c)*r)+_27c+(p!="opacity"?prop.units||"px":0);
}
}
}
return ret;
};
dojo.animateProperty=function(args){
var n=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];
if(d.isFunction(prop)){
prop=prop(n);
}
prop=pm[p]=_262({},(d.isObject(prop)?prop:{end:prop}));
if(d.isFunction(prop.start)){
prop.start=prop.start(n);
}
if(d.isFunction(prop.end)){
prop.end=prop.end(n);
}
var _27d=(p.toLowerCase().indexOf("color")>=0);
function _27e(node,p){
var v={height:node.offsetHeight,width:node.offsetWidth}[p];
if(v!==undefined){
return v;
}
v=d.style(node,p);
return (p=="opacity")?+v:(_27d?v:parseFloat(v));
};
if(!("end" in prop)){
prop.end=_27e(n,p);
}else{
if(!("start" in prop)){
prop.start=_27e(n,p);
}
}
if(_27d){
prop.start=new d.Color(prop.start);
prop.end=new d.Color(prop.end);
}else{
prop.start=(p=="opacity")?+prop.start:parseFloat(prop.start);
}
}
this.curve=new _27a(pm);
});
d.connect(anim,"onAnimate",d.hitch(d,"style",anim.node));
return anim;
};
dojo.anim=function(node,_27f,_280,_281,_282,_283){
return d.animateProperty({node:node,duration:_280||d.Animation.prototype.duration,properties:_27f,easing:_281,onEnd:_282}).play(_283||0);
};
})();
}
if(!dojo._hasResource["dojo._base.browser"]){
dojo._hasResource["dojo._base.browser"]=true;
dojo.provide("dojo._base.browser");
dojo.forEach(dojo.config.require,function(i){
dojo["require"](i);
});
}
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={};
this.length=0;
},add:function(_284){
if(this._hash[_284.id]){
throw new Error("Tried to register widget with id=="+_284.id+" but that id is already registered");
}
this._hash[_284.id]=_284;
this.length++;
},remove:function(id){
if(this._hash[id]){
delete this._hash[id];
this.length--;
}
},forEach:function(func,_285){
_285=_285||dojo.global;
var i=0,id;
for(id in this._hash){
func.call(_285,this._hash[id],i++,this._hash);
}
return this;
},filter:function(_286,_287){
_287=_287||dojo.global;
var res=new dijit.WidgetSet(),i=0,id;
for(id in this._hash){
var w=this._hash[id];
if(_286.call(_287,w,i++,this._hash)){
res.add(w);
}
}
return res;
},byId:function(id){
return this._hash[id];
},byClass:function(cls){
var res=new dijit.WidgetSet(),id,_288;
for(id in this._hash){
_288=this._hash[id];
if(_288.declaredClass==cls){
res.add(_288);
}
}
return res;
},toArray:function(){
var ar=[];
for(var id in this._hash){
ar.push(this._hash[id]);
}
return ar;
},map:function(func,_289){
return dojo.map(this.toArray(),func,_289);
},every:function(func,_28a){
_28a=_28a||dojo.global;
var x=0,i;
for(i in this._hash){
if(!func.call(_28a,this._hash[i],x++,this._hash)){
return false;
}
}
return true;
},some:function(func,_28b){
_28b=_28b||dojo.global;
var x=0,i;
for(i in this._hash){
if(func.call(_28b,this._hash[i],x++,this._hash)){
return true;
}
}
return false;
}});
(function(dojo,_28c){
_28c.registry=new _28c.WidgetSet();
var hash=_28c.registry._hash;
_28c.byId=function(id){
return typeof id=="string"?hash[id]:id;
};
var _28d={};
_28c.getUniqueId=function(_28e){
var id;
do{
id=_28e+"_"+(_28e in _28d?++_28d[_28e]:_28d[_28e]=0);
}while(hash[id]);
return id;
};
_28c.findWidgets=function(root){
var _28f=[];
function _290(root){
for(var node=root.firstChild;node;node=node.nextSibling){
if(node.nodeType==1){
var _291=node.getAttribute("widgetId");
if(_291){
_28f.push(hash[_291]);
}else{
_290(node);
}
}
}
};
_290(root);
return _28f;
};
_28c._destroyAll=function(){
_28c._curFocus=null;
_28c._prevFocus=null;
_28c._activeStack=[];
dojo.forEach(_28c.findWidgets(dojo.body()),function(_292){
if(!_292._destroyed){
if(_292.destroyRecursive){
_292.destroyRecursive();
}else{
if(_292.destroy){
_292.destroy();
}
}
}
});
};
if(dojo.isIE){
dojo.addOnWindowUnload(function(){
_28c._destroyAll();
});
}
_28c.byNode=function(node){
return hash[node.getAttribute("widgetId")];
};
_28c.getEnclosingWidget=function(node){
while(node){
var id=node.getAttribute&&node.getAttribute("widgetId");
if(id){
return hash[id];
}
node=node.parentNode;
}
return null;
};
_28c._isElementShown=function(elem){
var _293=dojo.style(elem);
return (_293.visibility!="hidden")&&(_293.visibility!="collapsed")&&(_293.display!="none")&&(dojo.attr(elem,"type")!="hidden");
};
_28c.isTabNavigable=function(elem){
if(dojo.attr(elem,"disabled")){
return false;
}else{
if(dojo.hasAttr(elem,"tabIndex")){
return dojo.attr(elem,"tabIndex")>=0;
}else{
switch(elem.nodeName.toLowerCase()){
case "a":
return dojo.hasAttr(elem,"href");
case "area":
case "button":
case "input":
case "object":
case "select":
case "textarea":
return true;
case "iframe":
if(dojo.isMoz){
return elem.contentDocument.designMode=="on";
}else{
if(dojo.isWebKit){
var doc=elem.contentDocument,body=doc&&doc.body;
return body&&body.contentEditable=="true";
}else{
doc=elem.contentWindow.document;
body=doc&&doc.body;
return body&&body.firstChild&&body.firstChild.contentEditable=="true";
}
}
default:
return elem.contentEditable=="true";
}
}
}
};
_28c._getTabNavigable=function(root){
var _294,last,_295,_296,_297,_298;
var _299=function(_29a){
dojo.query("> *",_29a).forEach(function(_29b){
var _29c=_28c._isElementShown(_29b);
if(_29c&&_28c.isTabNavigable(_29b)){
var _29d=dojo.attr(_29b,"tabIndex");
if(!dojo.hasAttr(_29b,"tabIndex")||_29d==0){
if(!_294){
_294=_29b;
}
last=_29b;
}else{
if(_29d>0){
if(!_295||_29d<_296){
_296=_29d;
_295=_29b;
}
if(!_297||_29d>=_298){
_298=_29d;
_297=_29b;
}
}
}
}
if(_29c&&_29b.nodeName.toUpperCase()!="SELECT"){
_299(_29b);
}
});
};
if(_28c._isElementShown(root)){
_299(root);
}
return {first:_294,last:last,lowest:_295,highest:_297};
};
_28c.getFirstInTabbingOrder=function(root){
var _29e=_28c._getTabNavigable(dojo.byId(root));
return _29e.lowest?_29e.lowest:_29e.first;
};
_28c.getLastInTabbingOrder=function(root){
var _29f=_28c._getTabNavigable(dojo.byId(root));
return _29f.last?_29f.last:_29f.highest;
};
_28c.defaultDuration=dojo.config["defaultDuration"]||200;
})(dojo,dijit);
}
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(){
return dijit.getBookmark().isCollapsed;
},getBookmark:function(){
var bm,rg,tg,sel=dojo.doc.selection,cf=dijit._curFocus;
if(dojo.global.getSelection){
sel=dojo.global.getSelection();
if(sel){
if(sel.isCollapsed){
tg=cf?cf.tagName:"";
if(tg){
tg=tg.toLowerCase();
if(tg=="textarea"||(tg=="input"&&(!cf.type||cf.type.toLowerCase()=="text"))){
sel={start:cf.selectionStart,end:cf.selectionEnd,node:cf,pRange:true};
return {isCollapsed:(sel.end<=sel.start),mark:sel};
}
}
bm={isCollapsed:true};
}else{
rg=sel.getRangeAt(0);
bm={isCollapsed:false,mark:rg.cloneRange()};
}
}
}else{
if(sel){
tg=cf?cf.tagName:"";
tg=tg.toLowerCase();
if(cf&&tg&&(tg=="button"||tg=="textarea"||tg=="input")){
if(sel.type&&sel.type.toLowerCase()=="none"){
return {isCollapsed:true,mark:null};
}else{
rg=sel.createRange();
return {isCollapsed:rg.text&&rg.text.length?false:true,mark:{range:rg,pRange:true}};
}
}
bm={};
try{
rg=sel.createRange();
bm.isCollapsed=!(sel.type=="Text"?rg.htmlText.length:rg.length);
}
catch(e){
bm.isCollapsed=true;
return bm;
}
if(sel.type.toUpperCase()=="CONTROL"){
if(rg.length){
bm.mark=[];
var i=0,len=rg.length;
while(i<len){
bm.mark.push(rg.item(i++));
}
}else{
bm.isCollapsed=true;
bm.mark=null;
}
}else{
bm.mark=rg.getBookmark();
}
}else{
console.warn("No idea how to store the current selection for this browser!");
}
}
return bm;
},moveToBookmark:function(_2a0){
var _2a1=dojo.doc,mark=_2a0.mark;
if(mark){
if(dojo.global.getSelection){
var sel=dojo.global.getSelection();
if(sel&&sel.removeAllRanges){
if(mark.pRange){
var r=mark;
var n=r.node;
n.selectionStart=r.start;
n.selectionEnd=r.end;
}else{
sel.removeAllRanges();
sel.addRange(mark);
}
}else{
console.warn("No idea how to restore selection for this browser!");
}
}else{
if(_2a1.selection&&mark){
var rg;
if(mark.pRange){
rg=mark.range;
}else{
if(dojo.isArray(mark)){
rg=_2a1.body.createControlRange();
dojo.forEach(mark,function(n){
rg.addElement(n);
});
}else{
rg=_2a1.body.createTextRange();
rg.moveToBookmark(mark);
}
}
rg.select();
}
}
}
},getFocus:function(menu,_2a2){
var node=!dijit._curFocus||(menu&&dojo.isDescendant(dijit._curFocus,menu.domNode))?dijit._prevFocus:dijit._curFocus;
return {node:node,bookmark:(node==dijit._curFocus)&&dojo.withGlobal(_2a2||dojo.global,dijit.getBookmark),openedForWindow:_2a2};
},focus:function(_2a3){
if(!_2a3){
return;
}
var node="node" in _2a3?_2a3.node:_2a3,_2a4=_2a3.bookmark,_2a5=_2a3.openedForWindow,_2a6=_2a4?_2a4.isCollapsed:false;
if(node){
var _2a7=(node.tagName.toLowerCase()=="iframe")?node.contentWindow:node;
if(_2a7&&_2a7.focus){
try{
_2a7.focus();
}
catch(e){
}
}
dijit._onFocusNode(node);
}
if(_2a4&&dojo.withGlobal(_2a5||dojo.global,dijit.isCollapsed)&&!_2a6){
if(_2a5){
_2a5.focus();
}
try{
dojo.withGlobal(_2a5||dojo.global,dijit.moveToBookmark,null,[_2a4]);
}
catch(e2){
}
}
},_activeStack:[],registerIframe:function(_2a8){
return dijit.registerWin(_2a8.contentWindow,_2a8);
},unregisterIframe:function(_2a9){
dijit.unregisterWin(_2a9);
},registerWin:function(_2aa,_2ab){
var _2ac=function(evt){
dijit._justMouseDowned=true;
setTimeout(function(){
dijit._justMouseDowned=false;
},0);
dijit._onTouchNode(_2ab||evt.target||evt.srcElement,"mouse");
};
var doc=dojo.isIE?_2aa.document.documentElement:_2aa.document;
if(doc){
if(dojo.isIE){
doc.attachEvent("onmousedown",_2ac);
var _2ad=function(evt){
if(evt.srcElement.tagName.toLowerCase()!="#document"&&dijit.isTabNavigable(evt.srcElement)){
dijit._onFocusNode(_2ab||evt.srcElement);
}else{
dijit._onTouchNode(_2ab||evt.srcElement);
}
};
doc.attachEvent("onactivate",_2ad);
var _2ae=function(evt){
dijit._onBlurNode(_2ab||evt.srcElement);
};
doc.attachEvent("ondeactivate",_2ae);
return function(){
doc.detachEvent("onmousedown",_2ac);
doc.detachEvent("onactivate",_2ad);
doc.detachEvent("ondeactivate",_2ae);
doc=null;
};
}else{
doc.addEventListener("mousedown",_2ac,true);
var _2af=function(evt){
dijit._onFocusNode(_2ab||evt.target);
};
doc.addEventListener("focus",_2af,true);
var _2b0=function(evt){
dijit._onBlurNode(_2ab||evt.target);
};
doc.addEventListener("blur",_2b0,true);
return function(){
doc.removeEventListener("mousedown",_2ac,true);
doc.removeEventListener("focus",_2af,true);
doc.removeEventListener("blur",_2b0,true);
doc=null;
};
}
}
},unregisterWin:function(_2b1){
_2b1&&_2b1();
},_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,by){
if(dijit._clearActiveWidgetsTimer){
clearTimeout(dijit._clearActiveWidgetsTimer);
delete dijit._clearActiveWidgetsTimer;
}
var _2b2=[];
try{
while(node){
var _2b3=dojo.attr(node,"dijitPopupParent");
if(_2b3){
node=dijit.byId(_2b3).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){
_2b2.unshift(id);
}
node=node.parentNode;
}
}
}
}
catch(e){
}
dijit._setStack(_2b2,by);
},_onFocusNode:function(node){
if(!node){
return;
}
if(node.nodeType==9){
return;
}
dijit._onTouchNode(node);
if(node==dijit._curFocus){
return;
}
if(dijit._curFocus){
dijit._prevFocus=dijit._curFocus;
}
dijit._curFocus=node;
dojo.publish("focusNode",[node]);
},_setStack:function(_2b4,by){
var _2b5=dijit._activeStack;
dijit._activeStack=_2b4;
for(var _2b6=0;_2b6<Math.min(_2b5.length,_2b4.length);_2b6++){
if(_2b5[_2b6]!=_2b4[_2b6]){
break;
}
}
var _2b7;
for(var i=_2b5.length-1;i>=_2b6;i--){
_2b7=dijit.byId(_2b5[i]);
if(_2b7){
_2b7._focused=false;
_2b7._hasBeenBlurred=true;
if(_2b7._onBlur){
_2b7._onBlur(by);
}
dojo.publish("widgetBlur",[_2b7,by]);
}
}
for(i=_2b6;i<_2b4.length;i++){
_2b7=dijit.byId(_2b4[i]);
if(_2b7){
_2b7._focused=true;
if(_2b7._onFocus){
_2b7._onFocus(by);
}
dojo.publish("widgetFocus",[_2b7,by]);
}
}
}});
dojo.addOnLoad(function(){
var _2b8=dijit.registerWin(window);
if(dojo.isIE){
dojo.addOnWindowUnload(function(){
dijit.unregisterWin(_2b8);
_2b8=null;
});
}
});
}
if(!dojo._hasResource["dojo.AdapterRegistry"]){
dojo._hasResource["dojo.AdapterRegistry"]=true;
dojo.provide("dojo.AdapterRegistry");
dojo.AdapterRegistry=function(_2b9){
this.pairs=[];
this.returnWrappers=_2b9||false;
};
dojo.extend(dojo.AdapterRegistry,{register:function(name,_2ba,wrap,_2bb,_2bc){
this.pairs[((_2bc)?"unshift":"push")]([name,_2ba,wrap,_2bb]);
},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 _2bd=(dojo.doc.compatMode=="BackCompat")?dojo.body():dojo.doc.documentElement;
var _2be=dojo._docScroll();
return {w:_2bd.clientWidth,h:_2bd.clientHeight,l:_2be.x,t:_2be.y};
};
dijit.placeOnScreen=function(node,pos,_2bf,_2c0){
var _2c1=dojo.map(_2bf,function(_2c2){
var c={corner:_2c2,pos:{x:pos.x,y:pos.y}};
if(_2c0){
c.pos.x+=_2c2.charAt(1)=="L"?_2c0.x:-_2c0.x;
c.pos.y+=_2c2.charAt(0)=="T"?_2c0.y:-_2c0.y;
}
return c;
});
return dijit._place(node,_2c1);
};
dijit._place=function(node,_2c3,_2c4){
var view=dijit.getViewport();
if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){
dojo.body().appendChild(node);
}
var best=null;
dojo.some(_2c3,function(_2c5){
var _2c6=_2c5.corner;
var pos=_2c5.pos;
if(_2c4){
_2c4(node,_2c5.aroundCorner,_2c6);
}
var _2c7=node.style;
var _2c8=_2c7.display;
var _2c9=_2c7.visibility;
_2c7.visibility="hidden";
_2c7.display="";
var mb=dojo.marginBox(node);
_2c7.display=_2c8;
_2c7.visibility=_2c9;
var _2ca=Math.max(view.l,_2c6.charAt(1)=="L"?pos.x:(pos.x-mb.w)),_2cb=Math.max(view.t,_2c6.charAt(0)=="T"?pos.y:(pos.y-mb.h)),endX=Math.min(view.l+view.w,_2c6.charAt(1)=="L"?(_2ca+mb.w):pos.x),endY=Math.min(view.t+view.h,_2c6.charAt(0)=="T"?(_2cb+mb.h):pos.y),_2cc=endX-_2ca,_2cd=endY-_2cb,_2ce=(mb.w-_2cc)+(mb.h-_2cd);
if(best==null||_2ce<best.overflow){
best={corner:_2c6,aroundCorner:_2c5.aroundCorner,x:_2ca,y:_2cb,w:_2cc,h:_2cd,overflow:_2ce};
}
return !_2ce;
});
node.style.left=best.x+"px";
node.style.top=best.y+"px";
if(best.overflow&&_2c4){
_2c4(node,best.aroundCorner,best.corner);
}
return best;
};
dijit.placeOnScreenAroundNode=function(node,_2cf,_2d0,_2d1){
_2cf=dojo.byId(_2cf);
var _2d2=_2cf.style.display;
_2cf.style.display="";
var _2d3=dojo.position(_2cf,true);
_2cf.style.display=_2d2;
return dijit._placeOnScreenAroundRect(node,_2d3.x,_2d3.y,_2d3.w,_2d3.h,_2d0,_2d1);
};
dijit.placeOnScreenAroundRectangle=function(node,_2d4,_2d5,_2d6){
return dijit._placeOnScreenAroundRect(node,_2d4.x,_2d4.y,_2d4.width,_2d4.height,_2d5,_2d6);
};
dijit._placeOnScreenAroundRect=function(node,x,y,_2d7,_2d8,_2d9,_2da){
var _2db=[];
for(var _2dc in _2d9){
_2db.push({aroundCorner:_2dc,corner:_2d9[_2dc],pos:{x:x+(_2dc.charAt(1)=="L"?0:_2d7),y:y+(_2dc.charAt(0)=="T"?0:_2d8)}});
}
return dijit._place(node,_2db,_2da);
};
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,_2dd,_2de,_2df){
return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);
};
dijit.getPopupAlignment=function(_2e0,_2e1){
var _2e2={};
dojo.forEach(_2e0,function(pos){
switch(pos){
case "after":
_2e2[_2e1?"BR":"BL"]=_2e1?"BL":"BR";
break;
case "before":
_2e2[_2e1?"BL":"BR"]=_2e1?"BR":"BL";
break;
case "below":
_2e2[_2e1?"BL":"BR"]=_2e1?"TL":"TR";
_2e2[_2e1?"BR":"BL"]=_2e1?"TR":"TL";
break;
case "above":
default:
_2e2[_2e1?"TL":"TR"]=_2e1?"BL":"BR";
_2e2[_2e1?"TR":"TL"]=_2e1?"BR":"BL";
break;
}
});
return _2e2;
};
dijit.getPopupAroundAlignment=function(_2e3,_2e4){
var _2e5={};
dojo.forEach(_2e3,function(pos){
switch(pos){
case "after":
_2e5[_2e4?"BR":"BL"]=_2e4?"BL":"BR";
break;
case "before":
_2e5[_2e4?"BL":"BR"]=_2e4?"BR":"BL";
break;
case "below":
_2e5[_2e4?"BL":"BR"]=_2e4?"TL":"TR";
_2e5[_2e4?"BR":"BL"]=_2e4?"TR":"TL";
break;
case "above":
default:
_2e5[_2e4?"TL":"TR"]=_2e4?"BL":"BR";
_2e5[_2e4?"TR":"TL"]=_2e4?"BR":"BL";
break;
}
});
return _2e5;
};
}
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 _2e6=[],_2e7=1000,_2e8=1;
this.moveOffScreen=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);
};
var _2e9=function(){
for(var pi=_2e6.length-1;pi>0&&_2e6[pi].parent===_2e6[pi-1].widget;pi--){
}
return _2e6[pi];
};
var _2ea=[];
this.open=function(args){
var _2eb=args.popup,_2ec=args.orient||(dojo._isBodyLtr()?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"}),_2ed=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+_2e8++);
var _2ee=_2ea.pop(),_2ef,_2f0;
if(!_2ee){
_2ef=dojo.create("div",{"class":"dijitPopup"},dojo.body());
dijit.setWaiRole(_2ef,"presentation");
}else{
_2ef=_2ee[0];
_2f0=_2ee[1];
}
dojo.attr(_2ef,{id:id,style:{zIndex:_2e7+_2e6.length,visibility:"hidden",top:"-9999px"},dijitPopupParent:args.parent?args.parent.id:""});
var s=_2eb.domNode.style;
s.display="";
s.visibility="";
s.position="";
s.top="0px";
_2ef.appendChild(_2eb.domNode);
if(!_2f0){
_2f0=new dijit.BackgroundIframe(_2ef);
}else{
_2f0.resize(_2ef);
}
var best=_2ed?dijit.placeOnScreenAroundElement(_2ef,_2ed,_2ec,_2eb.orient?dojo.hitch(_2eb,"orient"):null):dijit.placeOnScreen(_2ef,args,_2ec=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],args.padding);
_2ef.style.visibility="visible";
var _2f1=[];
_2f1.push(dojo.connect(_2ef,"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 _2f2=_2e9();
if(_2f2&&_2f2.onCancel){
_2f2.onCancel();
}
}
}
}));
if(_2eb.onCancel){
_2f1.push(dojo.connect(_2eb,"onCancel",args.onCancel));
}
_2f1.push(dojo.connect(_2eb,_2eb.onExecute?"onExecute":"onChange",function(){
var _2f3=_2e9();
if(_2f3&&_2f3.onExecute){
_2f3.onExecute();
}
}));
_2e6.push({wrapper:_2ef,iframe:_2f0,widget:_2eb,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_2f1});
if(_2eb.onOpen){
_2eb.onOpen(best);
}
return best;
};
this.close=function(_2f4){
while(dojo.some(_2e6,function(elem){
return elem.widget==_2f4;
})){
var top=_2e6.pop(),_2f5=top.wrapper,_2f6=top.iframe,_2f7=top.widget,_2f8=top.onClose;
if(_2f7.onClose){
_2f7.onClose();
}
dojo.forEach(top.handlers,dojo.disconnect);
if(_2f7&&_2f7.domNode){
this.moveOffScreen(_2f7.domNode);
}
_2f5.style.top="-9999px";
_2f5.style.visibility="hidden";
_2ea.push([_2f5,_2f6]);
if(_2f8){
_2f8();
}
}
};
}();
dijit._frames=new function(){
var _2f9=[];
this.pop=function(){
var _2fa;
if(_2f9.length){
_2fa=_2f9.pop();
_2fa.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\");'>";
_2fa=dojo.doc.createElement(html);
}else{
_2fa=dojo.create("iframe");
_2fa.src="javascript:\"\"";
_2fa.className="dijitBackgroundIframe";
dojo.style(_2fa,"opacity",0.1);
}
_2fa.tabIndex=-1;
}
return _2fa;
};
this.push=function(_2fb){
_2fb.style.display="none";
_2f9.push(_2fb);
};
}();
dijit.BackgroundIframe=function(node){
if(!node.id){
throw new Error("no id");
}
if(dojo.isIE||dojo.isMoz){
var _2fc=dijit._frames.pop();
node.appendChild(_2fc);
if(dojo.isIE<7){
this.resize(node);
this._conn=dojo.connect(node,"onresize",this,function(){
this.resize(node);
});
}else{
dojo.style(_2fc,{width:"100%",height:"100%"});
}
this.iframe=_2fc;
}
};
dojo.extend(dijit.BackgroundIframe,{resize:function(node){
if(this.iframe&&dojo.isIE<7){
dojo.style(this.iframe,{width:node.offsetWidth+"px",height:node.offsetHeight+"px"});
}
},destroy:function(){
if(this._conn){
dojo.disconnect(this._conn);
this._conn=null;
}
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,pos){
try{
node=dojo.byId(node);
var doc=node.ownerDocument||dojo.doc,body=doc.body||dojo.body(),html=doc.documentElement||body.parentNode,isIE=dojo.isIE,isWK=dojo.isWebKit;
if((!(dojo.isMoz||isIE||isWK||dojo.isOpera)||node==body||node==html)&&(typeof node.scrollIntoView!="undefined")){
node.scrollIntoView(false);
return;
}
var _2fd=doc.compatMode=="BackCompat",_2fe=_2fd?body:html,_2ff=isWK?body:_2fe,_300=_2fe.clientWidth,_301=_2fe.clientHeight,rtl=!dojo._isBodyLtr(),_302=pos||dojo.position(node),el=node.parentNode,_303=function(el){
return ((isIE<=6||(isIE&&_2fd))?false:(dojo.style(el,"position").toLowerCase()=="fixed"));
};
if(_303(node)){
return;
}
while(el){
if(el==body){
el=_2ff;
}
var _304=dojo.position(el),_305=_303(el);
with(_304){
if(el==_2ff){
w=_300,h=_301;
if(_2ff==html&&isIE&&rtl){
x+=_2ff.offsetWidth-w;
}
if(x<0||!isIE){
x=0;
}
if(y<0||!isIE){
y=0;
}
}else{
var pb=dojo._getPadBorderExtents(el);
w-=pb.w;
h-=pb.h;
x+=pb.l;
y+=pb.t;
}
with(el){
if(el!=_2ff){
var _306=clientWidth,_307=w-_306;
if(_306>0&&_307>0){
w=_306;
if(isIE&&rtl){
x+=_307;
}
}
_306=clientHeight;
_307=h-_306;
if(_306>0&&_307>0){
h=_306;
}
}
if(_305){
if(y<0){
h+=y,y=0;
}
if(x<0){
w+=x,x=0;
}
if(y+h>_301){
h=_301-y;
}
if(x+w>_300){
w=_300-x;
}
}
var l=_302.x-x,t=_302.y-Math.max(y,0),r=l+_302.w-w,bot=t+_302.h-h;
if(r*l>0){
var s=Math[l<0?"max":"min"](l,r);
_302.x+=scrollLeft;
scrollLeft+=(isIE>=8&&!_2fd&&rtl)?-s:s;
_302.x-=scrollLeft;
}
if(bot*t>0){
_302.y+=scrollTop;
scrollTop+=Math[t<0?"max":"min"](t,bot);
_302.y-=scrollTop;
}
}
}
el=(el!=_2ff)&&!_305&&el.parentNode;
}
}
catch(error){
console.error("scrollIntoView: "+error);
node.scrollIntoView(false);
}
};
}
if(!dojo._hasResource["dijit._base.sniff"]){
dojo._hasResource["dijit._base.sniff"]=true;
dojo.provide("dijit._base.sniff");
(function(){
var d=dojo,html=d.doc.documentElement,ie=d.isIE,_308=d.isOpera,maj=Math.floor,ff=d.isFF,_309=d.boxModel.replace(/-/,""),_30a={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_ie8:maj(ie)==8,dj_iequirks:ie&&d.isQuirks,dj_opera:_308,dj_khtml:d.isKhtml,dj_webkit:d.isWebKit,dj_safari:d.isSafari,dj_chrome:d.isChrome,dj_gecko:d.isMozilla,dj_ff3:maj(ff)==3};
_30a["dj_"+_309]=true;
for(var p in _30a){
if(_30a[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 _30a){
if(_30a[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=Math.max(this._currentTimeout<0?this._initialDelay:(this._subsequentDelay>1?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay)),10);
this._timer=setTimeout(dojo.hitch(this,"_fireEventAndReload"),this._currentTimeout);
},trigger:function(evt,_30b,node,_30c,obj,_30d,_30e){
if(obj!=this._obj){
this.stop();
this._initialDelay=_30e||500;
this._subsequentDelay=_30d||0.9;
this._obj=obj;
this._evt=evt;
this._node=node;
this._currentTimeout=-1;
this._count=-1;
this._callback=dojo.hitch(_30b,_30c);
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,_30f,_310,_311,_312,_313){
if(_30f.keyCode){
_30f.charOrCode=_30f.keyCode;
dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");
}else{
if(_30f.charCode){
_30f.charOrCode=String.fromCharCode(_30f.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==_30f.charOrCode&&(_30f.ctrlKey===undefined||_30f.ctrlKey==evt.ctrlKey)&&(_30f.altKey===undefined||_30f.altKey==evt.altKey)&&(_30f.metaKey===undefined||_30f.metaKey==(evt.metaKey||false))&&(_30f.shiftKey===undefined||_30f.shiftKey==evt.shiftKey)){
dojo.stopEvent(evt);
dijit.typematic.trigger(_30f,_310,node,_311,_30f,_312,_313);
}else{
if(dijit.typematic._obj==_30f){
dijit.typematic.stop();
}
}
}),dojo.connect(node,"onkeyup",this,function(evt){
if(dijit.typematic._obj==_30f){
dijit.typematic.stop();
}
})];
},addMouseListener:function(node,_314,_315,_316,_317){
var dc=dojo.connect;
return [dc(node,"mousedown",this,function(evt){
dojo.stopEvent(evt);
dijit.typematic.trigger(evt,_314,node,_315,node,_316,_317);
}),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,_314,node,_315,node,_316,_317);
setTimeout(dojo.hitch(this,dijit.typematic.stop),50);
}
})];
},addListener:function(_318,_319,_31a,_31b,_31c,_31d,_31e){
return this.addKeyListener(_319,_31a,_31b,_31c,_31d,_31e).concat(this.addMouseListener(_318,_31b,_31c,_31d,_31e));
}};
}
if(!dojo._hasResource["dijit._base.wai"]){
dojo._hasResource["dijit._base.wai"]=true;
dojo.provide("dijit._base.wai");
dijit.wai={onload:function(){
var div=dojo.create("div",{id:"a11yTestNode",style:{cssText:"border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif"))+"\");"}},dojo.body());
var cs=dojo.getComputedStyle(div);
if(cs){
var _31f=cs.backgroundImage;
var _320=(cs.borderTopColor==cs.borderRightColor)||(_31f!=null&&(_31f=="none"||_31f=="url(invalid-url:)"));
dojo[_320?"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 _321=this.getWaiRole(elem);
return role?(_321.indexOf(role)>-1):(_321.length>0);
},getWaiRole:function(elem){
return dojo.trim((dojo.attr(elem,"role")||"").replace(this._XhtmlRoles,"").replace("wairole:",""));
},setWaiRole:function(elem,role){
var _322=dojo.attr(elem,"role")||"";
if(!this._XhtmlRoles.test(_322)){
dojo.attr(elem,"role",role);
}else{
if((" "+_322+" ").indexOf(" "+role+" ")<0){
var _323=dojo.trim(_322.replace(this._XhtmlRoles,""));
var _324=dojo.trim(_322.replace(_323,""));
dojo.attr(elem,"role",_324+(_324?" ":"")+role);
}
}
},removeWaiRole:function(elem,role){
var _325=dojo.attr(elem,"role");
if(!_325){
return;
}
if(role){
var t=dojo.trim((" "+_325+" ").replace(" "+role+" "," "));
dojo.attr(elem,"role",t);
}else{
elem.removeAttribute("role");
}
},hasWaiState:function(elem,_326){
return elem.hasAttribute?elem.hasAttribute("aria-"+_326):!!elem.getAttribute("aria-"+_326);
},getWaiState:function(elem,_327){
return elem.getAttribute("aria-"+_327)||"";
},setWaiState:function(elem,_328,_329){
elem.setAttribute("aria-"+_328,_329);
},removeWaiState:function(elem,_32a){
elem.removeAttribute("aria-"+_32a);
}});
}
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(_32b,_32c){
if(_32b&&dojo.isFunction(_32b._onConnect)){
_32b._onConnect(_32c);
}
});
dijit._connectOnUseEventHandler=function(_32d){
};
dijit._lastKeyDownNode=null;
if(dojo.isIE){
(function(){
var _32e=function(evt){
dijit._lastKeyDownNode=evt.srcElement;
};
dojo.doc.attachEvent("onkeydown",_32e);
dojo.addOnWindowUnload(function(){
dojo.doc.detachEvent("onkeydown",_32e);
});
})();
}else{
dojo.doc.addEventListener("keydown",function(evt){
dijit._lastKeyDownNode=evt.target;
},true);
}
(function(){
var _32f={},_330=function(_331){
var dc=_331.declaredClass;
if(!_32f[dc]){
var r=[],_332,_333=_331.constructor.prototype;
for(var _334 in _333){
if(dojo.isFunction(_333[_334])&&(_332=_334.match(/^_set([a-zA-Z]*)Attr$/))&&_332[1]){
r.push(_332[1].charAt(0).toLowerCase()+_332[1].substr(1));
}
}
_32f[dc]=r;
}
return _32f[dc]||[];
};
dojo.declare("dijit._Widget",null,{id:"",lang:"",dir:"","class":"",style:"",title:"",tooltip:"",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")).toString(),postscript:function(_335,_336){
this.create(_335,_336);
},create:function(_337,_338){
this.srcNodeRef=dojo.byId(_338);
this._connects=[];
this._subscribes=[];
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(_337){
this.params=_337;
dojo.mixin(this,_337);
}
this.postMixInProperties();
if(!this.id){
this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"));
}
dijit.registry.add(this);
this.buildRendering();
if(this.domNode){
this._applyAttributes();
var _339=this.srcNodeRef;
if(_339&&_339.parentNode){
_339.parentNode.replaceChild(this.domNode,_339);
}
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 _33a=function(attr,_33b){
if((_33b.params&&attr in _33b.params)||_33b[attr]){
_33b.attr(attr,_33b[attr]);
}
};
for(var attr in this.attributeMap){
_33a(attr,this);
}
dojo.forEach(_330(this),function(a){
if(!(a in this.attributeMap)){
_33a(a,this);
}
},this);
},postMixInProperties:function(){
},buildRendering:function(){
this.domNode=this.srcNodeRef||dojo.create("div");
},postCreate:function(){
},startup:function(){
this._started=true;
},destroyRecursive:function(_33c){
this._beingDestroyed=true;
this.destroyDescendants(_33c);
this.destroy(_33c);
},destroy:function(_33d){
this._beingDestroyed=true;
this.uninitialize();
var d=dojo,dfe=d.forEach,dun=d.unsubscribe;
dfe(this._connects,function(_33e){
dfe(_33e,d.disconnect);
});
dfe(this._subscribes,function(_33f){
dun(_33f);
});
dfe(this._supportingWidgets||[],function(w){
if(w.destroyRecursive){
w.destroyRecursive();
}else{
if(w.destroy){
w.destroy();
}
}
});
this.destroyRendering(_33d);
dijit.registry.remove(this.id);
this._destroyed=true;
},destroyRendering:function(_340){
if(this.bgIframe){
this.bgIframe.destroy(_340);
delete this.bgIframe;
}
if(this.domNode){
if(_340){
dojo.removeAttr(this.domNode,"widgetId");
}else{
dojo.destroy(this.domNode);
}
delete this.domNode;
}
if(this.srcNodeRef){
if(!_340){
dojo.destroy(this.srcNodeRef);
}
delete this.srcNodeRef;
}
},destroyDescendants:function(_341){
dojo.forEach(this.getChildren(),function(_342){
if(_342.destroyRecursive){
_342.destroyRecursive(_341);
}
});
},uninitialize:function(){
return false;
},onFocus:function(){
},onBlur:function(){
},_onFocus:function(e){
this.onFocus();
},_onBlur:function(){
this.onBlur();
},_onConnect:function(_343){
if(_343 in this._deferredConnects){
var _344=this[this._deferredConnects[_343]||"domNode"];
this.connect(_344,_343.toLowerCase(),_343);
delete this._deferredConnects[_343];
}
},_setClassAttr:function(_345){
var _346=this[this.attributeMap["class"]||"domNode"];
dojo.removeClass(_346,this["class"]);
this["class"]=_345;
dojo.addClass(_346,_345);
},_setStyleAttr:function(_347){
var _348=this[this.attributeMap.style||"domNode"];
if(dojo.isObject(_347)){
dojo.style(_348,_347);
}else{
if(_348.style.cssText){
_348.style.cssText+="; "+_347;
}else{
_348.style.cssText=_347;
}
}
this.style=_347;
},setAttribute:function(attr,_349){
dojo.deprecated(this.declaredClass+"::setAttribute() is deprecated. Use attr() instead.","","2.0");
this.attr(attr,_349);
},_attrToDom:function(attr,_34a){
var _34b=this.attributeMap[attr];
dojo.forEach(dojo.isArray(_34b)?_34b:[_34b],function(_34c){
var _34d=this[_34c.node||_34c||"domNode"];
var type=_34c.type||"attribute";
switch(type){
case "attribute":
if(dojo.isFunction(_34a)){
_34a=dojo.hitch(this,_34a);
}
var _34e=_34c.attribute?_34c.attribute:(/^on[A-Z][a-zA-Z]*$/.test(attr)?attr.toLowerCase():attr);
dojo.attr(_34d,_34e,_34a);
break;
case "innerText":
_34d.innerHTML="";
_34d.appendChild(dojo.doc.createTextNode(_34a));
break;
case "innerHTML":
_34d.innerHTML=_34a;
break;
case "class":
dojo.removeClass(_34d,this[attr]);
dojo.addClass(_34d,_34a);
break;
}
},this);
this[attr]=_34a;
},attr:function(name,_34f){
var args=arguments.length;
if(args==1&&!dojo.isString(name)){
for(var x in name){
this.attr(x,name[x]);
}
return this;
}
var _350=this._getAttrNames(name);
if(args>=2){
if(this[_350.s]){
args=dojo._toArray(arguments,1);
return this[_350.s].apply(this,args)||this;
}else{
if(name in this.attributeMap){
this._attrToDom(name,_34f);
}
this[name]=_34f;
}
return this;
}else{
return this[_350.g]?this[_350.g]():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(){
return this.containerNode?dojo.query("[widgetId]",this.containerNode).map(dijit.byNode):[];
},getChildren:function(){
return this.containerNode?dijit.findWidgets(this.containerNode):[];
},nodesWithKeyClick:["input","button"],connect:function(obj,_351,_352){
var d=dojo,dc=d._connect,_353=[];
if(_351=="ondijitclick"){
if(!this.nodesWithKeyClick[obj.tagName.toLowerCase()]){
var m=d.hitch(this,_352);
_353.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);
}
}));
}
_351="onclick";
}
_353.push(dc(obj,_351,this,_352));
this._connects.push(_353);
return _353;
},disconnect:function(_354){
for(var i=0;i<this._connects.length;i++){
if(this._connects[i]==_354){
dojo.forEach(_354,dojo.disconnect);
this._connects.splice(i,1);
return;
}
}
},subscribe:function(_355,_356){
var d=dojo,_357=d.subscribe(_355,this,_356);
this._subscribes.push(_357);
return _357;
},unsubscribe:function(_358){
for(var i=0;i<this._subscribes.length;i++){
if(this._subscribes[i]==_358){
dojo.unsubscribe(_358);
this._subscribes.splice(i,1);
return;
}
}
},isLeftToRight:function(){
return dojo._isBodyLtr();
},isFocusable:function(){
return this.focus&&(dojo.style(this.domNode,"display")!="none");
},placeAt:function(_359,_35a){
if(_359.declaredClass&&_359.addChild){
_359.addChild(this,_35a);
}else{
dojo.place(this.domNode,_359,_35a);
}
return this;
},_onShow:function(){
this.onShow();
},onShow:function(){
},onHide:function(){
}});
})();
}
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(_35b,map,_35c,_35d){
_35d=_35d||dojo.global;
_35c=_35c?dojo.hitch(_35d,_35c):function(v){
return v;
};
return _35b.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_35e,key,_35f){
var _360=dojo.getObject(key,false,map);
if(_35f){
_360=dojo.getObject(_35f,false,_35d).call(_35d,_360,key);
}
return _35c(_360,key).toString();
});
};
dojo.string.trim=String.prototype.trim?dojo.trim:function(str){
str=str.replace(/^\s+/,"");
for(var i=str.length-1;i>=0;i--){
if(/\S/.test(str.charAt(i))){
str=str.substring(0,i+1);
break;
}
}
return str;
};
}
if(!dojo._hasResource["dojo.date.stamp"]){
dojo._hasResource["dojo.date.stamp"]=true;
dojo.provide("dojo.date.stamp");
dojo.date.stamp.fromISOString=function(_361,_362){
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 _363=dojo.date.stamp._isoRegExp.exec(_361),_364=null;
if(_363){
_363.shift();
if(_363[1]){
_363[1]--;
}
if(_363[6]){
_363[6]*=1000;
}
if(_362){
_362=new Date(_362);
dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){
return _362["get"+prop]();
}).forEach(function(_365,_366){
if(_363[_366]===undefined){
_363[_366]=_365;
}
});
}
_364=new Date(_363[0]||1970,_363[1]||0,_363[2]||1,_363[3]||0,_363[4]||0,_363[5]||0,_363[6]||0);
if(_363[0]<100){
_364.setFullYear(_363[0]||1970);
}
var _367=0,_368=_363[7]&&_363[7].charAt(0);
if(_368!="Z"){
_367=((_363[8]||0)*60)+(Number(_363[9])||0);
if(_368!="-"){
_367*=-1;
}
}
if(_368){
_367-=_364.getTimezoneOffset();
}
if(_367){
_364.setTime(_364.getTime()+_367*60000);
}
}
return _364;
};
dojo.date.stamp.toISOString=function(_369,_36a){
var _36b=function(n){
return (n<10)?"0"+n:n;
};
_36a=_36a||{};
var _36c=[],_36d=_36a.zulu?"getUTC":"get",date="";
if(_36a.selector!="time"){
var year=_369[_36d+"FullYear"]();
date=["0000".substr((year+"").length)+year,_36b(_369[_36d+"Month"]()+1),_36b(_369[_36d+"Date"]())].join("-");
}
_36c.push(date);
if(_36a.selector!="date"){
var time=[_36b(_369[_36d+"Hours"]()),_36b(_369[_36d+"Minutes"]()),_36b(_369[_36d+"Seconds"]())].join(":");
var _36e=_369[_36d+"Milliseconds"]();
if(_36a.milliseconds){
time+="."+(_36e<100?"0":"")+_36b(_36e);
}
if(_36a.zulu){
time+="Z";
}else{
if(_36a.selector!="time"){
var _36f=_369.getTimezoneOffset();
var _370=Math.abs(_36f);
time+=(_36f>0?"-":"+")+_36b(Math.floor(_370/60))+":"+_36b(_370%60);
}
}
_36c.push(time);
}
return _36c.join("T");
};
}
if(!dojo._hasResource["dojo.parser"]){
dojo._hasResource["dojo.parser"]=true;
dojo.provide("dojo.parser");
dojo.parser=new function(){
var d=dojo;
this._attrName=d._scopeName+"Type";
this._query="["+this._attrName+"]";
function _371(_372){
if(d.isString(_372)){
return "string";
}
if(typeof _372=="number"){
return "number";
}
if(typeof _372=="boolean"){
return "boolean";
}
if(d.isFunction(_372)){
return "function";
}
if(d.isArray(_372)){
return "array";
}
if(_372 instanceof Date){
return "date";
}
if(_372 instanceof d._Url){
return "url";
}
return "object";
};
function _373(_374,type){
switch(type){
case "string":
return _374;
case "number":
return _374.length?Number(_374):NaN;
case "boolean":
return typeof _374=="boolean"?_374:!(_374.toLowerCase()=="false");
case "function":
if(d.isFunction(_374)){
_374=_374.toString();
_374=d.trim(_374.substring(_374.indexOf("{")+1,_374.length-1));
}
try{
if(_374.search(/[^\w\.]+/i)!=-1){
return new Function(_374);
}else{
return d.getObject(_374,false);
}
}
catch(e){
return new Function();
}
case "array":
return _374?_374.split(/\s*,\s*/):[];
case "date":
switch(_374){
case "":
return new Date("");
case "now":
return new Date();
default:
return d.date.stamp.fromISOString(_374);
}
case "url":
return d.baseUrl+_374;
default:
return d.fromJson(_374);
}
};
var _375={};
dojo.connect(dojo,"extend",function(){
_375={};
});
function _376(_377){
if(!_375[_377]){
var cls=d.getObject(_377);
if(!d.isFunction(cls)){
throw new Error("Could not load class '"+_377+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");
}
var _378=cls.prototype;
var _379={},_37a={};
for(var name in _378){
if(name.charAt(0)=="_"){
continue;
}
if(name in _37a){
continue;
}
var _37b=_378[name];
_379[name]=_371(_37b);
}
_375[_377]={cls:cls,params:_379};
}
return _375[_377];
};
this._functionFromScript=function(_37c){
var _37d="";
var _37e="";
var _37f=_37c.getAttribute("args");
if(_37f){
d.forEach(_37f.split(/\s*,\s*/),function(part,idx){
_37d+="var "+part+" = arguments["+idx+"]; ";
});
}
var _380=_37c.getAttribute("with");
if(_380&&_380.length){
d.forEach(_380.split(/\s*,\s*/),function(part){
_37d+="with("+part+"){";
_37e+="}";
});
}
return new Function(_37d+_37c.innerHTML+_37e);
};
this.instantiate=function(_381,_382,args){
var _383=[],dp=dojo.parser;
_382=_382||{};
args=args||{};
d.forEach(_381,function(node){
if(!node){
return;
}
var type=dp._attrName in _382?_382[dp._attrName]:node.getAttribute(dp._attrName);
if(!type||!type.length){
return;
}
var _384=_376(type),_385=_384.cls,ps=_385._noScript||_385.prototype._noScript;
var _386={},_387=node.attributes;
for(var name in _384.params){
var item=name in _382?{value:_382[name],specified:true}:_387.getNamedItem(name);
if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){
continue;
}
var _388=item.value;
switch(name){
case "class":
_388="className" in _382?_382.className:node.className;
break;
case "style":
_388="style" in _382?_382.style:(node.style&&node.style.cssText);
}
var _389=_384.params[name];
if(typeof _388=="string"){
_386[name]=_373(_388,_389);
}else{
_386[name]=_388;
}
}
if(!ps){
var _38a=[],_38b=[];
d.query("> script[type^='dojo/']",node).orphan().forEach(function(_38c){
var _38d=_38c.getAttribute("event"),type=_38c.getAttribute("type"),nf=d.parser._functionFromScript(_38c);
if(_38d){
if(type=="dojo/connect"){
_38a.push({event:_38d,func:nf});
}else{
_386[_38d]=nf;
}
}else{
_38b.push(nf);
}
});
}
var _38e=_385.markupFactory||_385.prototype&&_385.prototype.markupFactory;
var _38f=_38e?_38e(_386,node,_385):new _385(_386,node);
_383.push(_38f);
var _390=node.getAttribute("jsId");
if(_390){
d.setObject(_390,_38f);
}
if(!ps){
d.forEach(_38a,function(_391){
d.connect(_38f,_391.event,null,_391.func);
});
d.forEach(_38b,function(func){
func.call(_38f);
});
}
});
if(!_382._started){
d.forEach(_383,function(_392){
if(!args.noStart&&_392&&_392.startup&&!_392._started&&(!_392.getParent||!_392.getParent())){
_392.startup();
}
});
}
return _383;
};
this.parse=function(_393,args){
var root;
if(!args&&_393&&_393.rootNode){
args=_393;
root=args.rootNode;
}else{
root=_393;
}
var list=d.query(this._query,root);
return this.instantiate(list,null,args);
};
}();
(function(){
var _394=function(){
if(dojo.config.parseOnLoad){
dojo.parser.parse();
}
};
if(dojo.exists("dijit.wai.onload")&&(dijit.wai.onload===dojo._loaders[0])){
dojo._loaders.splice(1,0,_394);
}else{
dojo._loaders.unshift(_394);
}
})();
}
if(!dojo._hasResource["dojo.cache"]){
dojo._hasResource["dojo.cache"]=true;
dojo.provide("dojo.cache");
(function(){
var _395={};
dojo.cache=function(_396,url,_397){
if(typeof _396=="string"){
var _398=dojo.moduleUrl(_396,url);
}else{
_398=_396;
_397=url;
}
var key=_398.toString();
var val=_397;
if(_397!==undefined&&!dojo.isString(_397)){
val=("value" in _397?_397.value:undefined);
}
var _399=_397&&_397.sanitize?true:false;
if(val||val===null){
if(val==null){
delete _395[key];
}else{
val=_395[key]=_399?dojo.cache._sanitize(val):val;
}
}else{
if(!(key in _395)){
val=dojo._getText(key);
_395[key]=_399?dojo.cache._sanitize(val):val;
}
val=_395[key];
}
return val;
};
dojo.cache._sanitize=function(val){
if(val){
val=val.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");
var _39a=val.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_39a){
val=_39a[1];
}
}else{
val="";
}
return val;
};
})();
}
if(!dojo._hasResource["dijit._Templated"]){
dojo._hasResource["dijit._Templated"]=true;
dojo.provide("dijit._Templated");
dojo.declare("dijit._Templated",null,{templateString:null,templatePath:null,widgetsInTemplate:false,_skipNodeCache:false,_earlyTemplatedStartup:false,constructor:function(){
this._attachPoints=[];
},_stringRepl:function(tmpl){
var _39b=this.declaredClass,_39c=this;
return dojo.string.substitute(tmpl,this,function(_39d,key){
if(key.charAt(0)=="!"){
_39d=dojo.getObject(key.substr(1),false,_39c);
}
if(typeof _39d=="undefined"){
throw new Error(_39b+" template:"+key);
}
if(_39d==null){
return "";
}
return key.charAt(0)=="!"?_39d:_39d.toString().replace(/"/g,"&quot;");
},this);
},buildRendering:function(){
var _39e=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);
var node;
if(dojo.isString(_39e)){
node=dojo._toDom(this._stringRepl(_39e));
if(node.nodeType!=1){
throw new Error("Invalid template: "+_39e);
}
}else{
node=_39e.cloneNode(true);
}
this.domNode=node;
this._attachTemplateNodes(node);
if(this.widgetsInTemplate){
var _39f=dojo.parser,qry,attr;
if(_39f._query!="[dojoType]"){
qry=_39f._query;
attr=_39f._attrName;
_39f._query="[dojoType]";
_39f._attrName="dojoType";
}
var cw=(this._startupWidgets=dojo.parser.parse(node,{noStart:!this._earlyTemplatedStartup}));
if(qry){
_39f._query=qry;
_39f._attrName=attr;
}
this._supportingWidgets=dijit.findWidgets(node);
this._attachTemplateNodes(cw,function(n,p){
return n[p];
});
}
this._fillContent(this.srcNodeRef);
},_fillContent:function(_3a0){
var dest=this.containerNode;
if(_3a0&&dest){
while(_3a0.hasChildNodes()){
dest.appendChild(_3a0.firstChild);
}
}
},_attachTemplateNodes:function(_3a1,_3a2){
_3a2=_3a2||function(n,p){
return n.getAttribute(p);
};
var _3a3=dojo.isArray(_3a1)?_3a1:(_3a1.all||_3a1.getElementsByTagName("*"));
var x=dojo.isArray(_3a1)?0:-1;
for(;x<_3a3.length;x++){
var _3a4=(x==-1)?_3a1:_3a3[x];
if(this.widgetsInTemplate&&_3a2(_3a4,"dojoType")){
continue;
}
var _3a5=_3a2(_3a4,"dojoAttachPoint");
if(_3a5){
var _3a6,_3a7=_3a5.split(/\s*,\s*/);
while((_3a6=_3a7.shift())){
if(dojo.isArray(this[_3a6])){
this[_3a6].push(_3a4);
}else{
this[_3a6]=_3a4;
}
this._attachPoints.push(_3a6);
}
}
var _3a8=_3a2(_3a4,"dojoAttachEvent");
if(_3a8){
var _3a9,_3aa=_3a8.split(/\s*,\s*/);
var trim=dojo.trim;
while((_3a9=_3aa.shift())){
if(_3a9){
var _3ab=null;
if(_3a9.indexOf(":")!=-1){
var _3ac=_3a9.split(":");
_3a9=trim(_3ac[0]);
_3ab=trim(_3ac[1]);
}else{
_3a9=trim(_3a9);
}
if(!_3ab){
_3ab=_3a9;
}
this.connect(_3a4,_3a9,_3ab);
}
}
}
var role=_3a2(_3a4,"waiRole");
if(role){
dijit.setWaiRole(_3a4,role);
}
var _3ad=_3a2(_3a4,"waiState");
if(_3ad){
dojo.forEach(_3ad.split(/\s*,\s*/),function(_3ae){
if(_3ae.indexOf("-")!=-1){
var pair=_3ae.split("-");
dijit.setWaiState(_3a4,pair[0],pair[1]);
}
});
}
}
},startup:function(){
dojo.forEach(this._startupWidgets,function(w){
if(w&&!w._started&&w.startup){
w.startup();
}
});
this.inherited(arguments);
},destroyRendering:function(){
dojo.forEach(this._attachPoints,function(_3af){
delete this[_3af];
},this);
this._attachPoints=[];
this.inherited(arguments);
}});
dijit._Templated._templateCache={};
dijit._Templated.getCachedTemplate=function(_3b0,_3b1,_3b2){
var _3b3=dijit._Templated._templateCache;
var key=_3b1||_3b0;
var _3b4=_3b3[key];
if(_3b4){
try{
if(!_3b4.ownerDocument||_3b4.ownerDocument==dojo.doc){
return _3b4;
}
}
catch(e){
}
dojo.destroy(_3b4);
}
if(!_3b1){
_3b1=dojo.cache(_3b0,{sanitize:true});
}
_3b1=dojo.string.trim(_3b1);
if(_3b2||_3b1.match(/\$\{([^\}]+)\}/g)){
return (_3b3[key]=_3b1);
}else{
var node=dojo._toDom(_3b1);
if(node.nodeType!=1){
throw new Error("Invalid template: "+_3b1);
}
return (_3b3[key]=node);
}
};
if(dojo.isIE){
dojo.addOnWindowUnload(function(){
var _3b5=dijit._Templated._templateCache;
for(var key in _3b5){
var _3b6=_3b5[key];
if(typeof _3b6=="object"){
dojo.destroy(_3b6);
}
delete _3b5[key];
}
});
}
dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});
}
if(!dojo._hasResource["dijit._Contained"]){
dojo._hasResource["dijit._Contained"]=true;
dojo.provide("dijit._Contained");
dojo.declare("dijit._Contained",null,{getParent:function(){
var _3b7=dijit.getEnclosingWidget(this.domNode.parentNode);
return _3b7&&_3b7.isContainer?_3b7:null;
},_getSibling:function(_3b8){
var node=this.domNode;
do{
node=node[_3b8+"Sibling"];
}while(node&&node.nodeType!=1);
return node&&dijit.byNode(node);
},getPreviousSibling:function(){
return this._getSibling("previous");
},getNextSibling:function(){
return this._getSibling("next");
},getIndexInParent:function(){
var p=this.getParent();
if(!p||!p.getIndexOfChild){
return -1;
}
return p.getIndexOfChild(this);
}});
}
if(!dojo._hasResource["dijit._CssStateMixin"]){
dojo._hasResource["dijit._CssStateMixin"]=true;
dojo.provide("dijit._CssStateMixin");
dojo.declare("dijit._CssStateMixin",[],{baseClass:"",cssStateNodes:{},postCreate:function(){
this.inherited(arguments);
dojo.forEach(["onmouseenter","onmouseleave","onmousedown"],function(e){
this.connect(this.domNode,e,"_cssMouseEvent");
},this);
this.connect(this,"attr",function(name,_3b9){
if(arguments.length==2&&{disabled:true,readOnly:true,checked:true}[name]){
this._setStateClass();
}
});
dojo.forEach(["_onFocus","_onBlur"],function(ap){
this.connect(this,ap,"_setStateClass");
},this);
for(var ap in this.cssStateNodes){
this._trackMouseState(this[ap],this.cssStateNodes[ap]);
}
this._setStateClass();
},_cssMouseEvent:function(_3ba){
if(!this.disabled){
switch(_3ba.type){
case "mouseenter":
case "mouseover":
this._hovering=true;
this._active=this._mouseDown;
break;
case "mouseleave":
case "mouseout":
this._hovering=false;
this._active=false;
break;
case "mousedown":
this._active=true;
this._mouseDown=true;
var _3bb=this.connect(dojo.body(),"onmouseup",function(){
if(this._mouseDown&&this.isFocusable()){
this.focus();
}
this._active=false;
this._mouseDown=false;
this._setStateClass();
this.disconnect(_3bb);
});
break;
}
this._setStateClass();
}
},_setStateClass:function(){
var _3bc=this.baseClass.split(" ");
function _3bd(_3be){
_3bc=_3bc.concat(dojo.map(_3bc,function(c){
return c+_3be;
}),"dijit"+_3be);
};
if(this.checked){
_3bd("Checked");
}
if(this.state){
_3bd(this.state);
}
if(this.selected){
_3bd("Selected");
}
if(this.disabled){
_3bd("Disabled");
}else{
if(this.readOnly){
_3bd("ReadOnly");
}else{
if(this._active){
_3bd("Active");
}else{
if(this._hovering){
_3bd("Hover");
}
}
if(this._focused){
_3bd("Focused");
}
}
}
var tn=this.stateNode||this.domNode,_3bf={};
dojo.forEach(tn.className.split(" "),function(c){
_3bf[c]=true;
});
if("_stateClasses" in this){
dojo.forEach(this._stateClasses,function(c){
delete _3bf[c];
});
}
dojo.forEach(_3bc,function(c){
_3bf[c]=true;
});
var _3c0=[];
for(var c in _3bf){
_3c0.push(c);
}
tn.className=_3c0.join(" ");
this._stateClasses=_3bc;
},_trackMouseState:function(node,_3c1){
var _3c2=false,_3c3=false,_3c4=false;
var self=this,cn=dojo.hitch(this,"connect",node);
function _3c5(){
var _3c6=("disabled" in self&&self.disabled)||("readonly" in self&&self.readonly);
dojo.toggleClass(node,_3c1+"Hover",_3c2&&!_3c3&&!_3c6);
dojo.toggleClass(node,_3c1+"Active",_3c3&&!_3c6);
dojo.toggleClass(node,_3c1+"Focused",_3c4&&!_3c6);
};
cn("onmouseenter",function(){
_3c2=true;
_3c5();
});
cn("onmouseleave",function(){
_3c2=false;
_3c3=false;
_3c5();
});
cn("onmousedown",function(){
_3c3=true;
_3c5();
});
cn("onmouseup",function(){
_3c3=false;
_3c5();
});
cn("onfocus",function(){
_3c4=true;
_3c5();
});
cn("onblur",function(){
_3c4=false;
_3c5();
});
this.connect(this,"attr",function(name,_3c7){
if(arguments.length==2&&(name=="disabled"||name=="readOnly")){
_3c5();
}
});
}});
}
if(!dojo._hasResource["dijit.MenuItem"]){
dojo._hasResource["dijit.MenuItem"]=true;
dojo.provide("dijit.MenuItem");
dojo.declare("dijit.MenuItem",[dijit._Widget,dijit._Templated,dijit._Contained,dijit._CssStateMixin],{templateString:dojo.cache("dijit","templates/MenuItem.html","<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" waiRole=\"menuitem\" tabIndex=\"-1\"\n\t\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<td class=\"dijitReset\" waiRole=\"presentation\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuItemIcon\" dojoAttachPoint=\"iconNode\">\n\t</td>\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" dojoAttachPoint=\"containerNode\"></td>\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" dojoAttachPoint=\"accelKeyNode\"></td>\n\t<td class=\"dijitReset dijitMenuArrowCell\" waiRole=\"presentation\">\n\t\t<div dojoAttachPoint=\"arrowWrapper\" style=\"visibility: hidden\">\n\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuExpand\">\n\t\t\t<span class=\"dijitMenuExpandA11y\">+</span>\n\t\t</div>\n\t</td>\n</tr>\n"),attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{label:{node:"containerNode",type:"innerHTML"},iconClass:{node:"iconNode",type:"class"}}),baseClass:"dijitMenuItem",label:"",iconClass:"",accelKey:"",disabled:false,_fillContent:function(_3c8){
if(_3c8&&!("label" in this.params)){
this.attr("label",_3c8.innerHTML);
}
},postCreate:function(){
this.inherited(arguments);
dojo.setSelectable(this.domNode,false);
var _3c9=this.id+"_text";
dojo.attr(this.containerNode,"id",_3c9);
if(this.accelKeyNode){
dojo.attr(this.accelKeyNode,"id",this.id+"_accel");
_3c9+=" "+this.id+"_accel";
}
dijit.setWaiState(this.domNode,"labelledby",_3c9);
},_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(){
try{
if(dojo.isIE==8){
this.containerNode.focus();
}
dijit.focus(this.focusNode);
}
catch(e){
}
},_onFocus:function(){
this._setSelected(true);
this.getParent()._onItemFocus(this);
this.inherited(arguments);
},_setSelected:function(_3ca){
dojo.toggleClass(this.domNode,"dijitMenuItemSelected",_3ca);
},setLabel:function(_3cb){
dojo.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use attr('label', ...) instead.","","2.0");
this.attr("label",_3cb);
},setDisabled:function(_3cc){
dojo.deprecated("dijit.Menu.setDisabled() is deprecated.  Use attr('disabled', bool) instead.","","2.0");
this.attr("disabled",_3cc);
},_setDisabledAttr:function(_3cd){
this.disabled=_3cd;
dojo[_3cd?"addClass":"removeClass"](this.domNode,"dijitMenuItemDisabled");
dijit.setWaiState(this.focusNode,"disabled",_3cd?"true":"false");
},_setAccelKeyAttr:function(_3ce){
this.accelKey=_3ce;
this.accelKeyNode.style.display=_3ce?"":"none";
this.accelKeyNode.innerHTML=_3ce;
dojo.attr(this.containerNode,"colSpan",_3ce?"1":"2");
}});
}
if(!dojo._hasResource["dijit.CheckedMenuItem"]){
dojo._hasResource["dijit.CheckedMenuItem"]=true;
dojo.provide("dijit.CheckedMenuItem");
dojo.declare("dijit.CheckedMenuItem",dijit.MenuItem,{templateString:dojo.cache("dijit","templates/CheckedMenuItem.html","<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" waiRole=\"menuitemcheckbox\" tabIndex=\"-1\"\n\t\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<td class=\"dijitReset\" waiRole=\"presentation\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuItemIcon dijitCheckedMenuItemIcon\" dojoAttachPoint=\"iconNode\">\n\t\t<span class=\"dijitCheckedMenuItemIconChar\">&#10003;</span>\n\t</td>\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" dojoAttachPoint=\"containerNode,labelNode\"></td>\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" dojoAttachPoint=\"accelKeyNode\"></td>\n\t<td class=\"dijitReset dijitMenuArrowCell\" waiRole=\"presentation\">\n\t</td>\n</tr>\n"),checked:false,_setCheckedAttr:function(_3cf){
dojo.toggleClass(this.domNode,"dijitCheckedMenuItemChecked",_3cf);
dijit.setWaiState(this.domNode,"checked",_3cf);
this.checked=_3cf;
},onChange:function(_3d0){
},_onClick:function(e){
if(!this.disabled){
this.attr("checked",!this.checked);
this.onChange(this.checked);
}
this.inherited(arguments);
}});
}
if(!dojo._hasResource["dojo.dnd.common"]){
dojo._hasResource["dojo.dnd.common"]=true;
dojo.provide("dojo.dnd.common");
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.position(n,true);
var w=Math.min(dojo.dnd.H_TRIGGER_AUTOSCROLL,b.w/2),h=Math.min(dojo.dnd.V_TRIGGER_AUTOSCROLL,b.h/2),rx=e.pageX-t.x,ry=e.pageY-t.y,dx=0,dy=0;
if(dojo.isWebKit||dojo.isOpera){
rx+=dojo.body().scrollLeft,ry+=dojo.body().scrollTop;
}
if(rx>0&&rx<b.w){
if(rx<w){
dx=-w;
}else{
if(rx>b.w-w){
dx=w;
}
}
}
if(ry>0&&ry<b.h){
if(ry<h){
dy=-h;
}else{
if(ry>b.h-h){
dy=h;
}
}
}
var _3d1=n.scrollLeft,_3d2=n.scrollTop;
n.scrollLeft=n.scrollLeft+dx;
n.scrollTop=n.scrollTop+dy;
if(_3d1!=n.scrollLeft||_3d2!=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,_3d3=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),_3d3];
if(h&&h.onMoveStart){
h.onMoveStart(this);
}
},onMouseMove:function(e){
dojo.dnd.autoScroll(e);
var m=this.marginBox;
this.host.onMove(this,{l:m.l+e.pageX,t:m.t+e.pageY});
dojo.stopEvent(e);
},onMouseUp:function(e){
if(dojo.isWebKit&&dojo.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,_3d4){
this.node=dojo.byId(node);
if(!_3d4){
_3d4={};
}
this.handle=_3d4.handle?dojo.byId(_3d4.handle):null;
if(!this.handle){
this.handle=this.node;
}
this.delay=_3d4.delay>0?_3d4.delay:0;
this.skip=_3d4.skip;
this.mover=_3d4.mover?_3d4.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(_3d5,node){
return new dojo.dnd.Moveable(node,_3d5);
},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(_3d6){
dojo.publish("/dnd/move/start",[_3d6]);
dojo.addClass(dojo.body(),"dojoMove");
dojo.addClass(this.node,"dojoMoveItem");
},onMoveStop:function(_3d7){
dojo.publish("/dnd/move/stop",[_3d7]);
dojo.removeClass(dojo.body(),"dojoMove");
dojo.removeClass(this.node,"dojoMoveItem");
},onFirstMove:function(_3d8){
},onMove:function(_3d9,_3da){
this.onMoving(_3d9,_3da);
var s=_3d9.node.style;
s.left=_3da.l+"px";
s.top=_3da.t+"px";
this.onMoved(_3d9,_3da);
},onMoving:function(_3db,_3dc){
},onMoved:function(_3dd,_3de){
}});
}
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(_3df,node){
return new dojo.dnd.move.constrainedMoveable(node,_3df);
},constructor:function(node,_3e0){
if(!_3e0){
_3e0={};
}
this.constraints=_3e0.constraints;
this.within=_3e0.within;
},onFirstMove:function(_3e1){
var c=this.constraintBox=this.constraints.call(this,_3e1);
c.r=c.l+c.w;
c.b=c.t+c.h;
if(this.within){
var mb=dojo.marginBox(_3e1.node);
c.r-=mb.w;
c.b-=mb.h;
}
},onMove:function(_3e2,_3e3){
var c=this.constraintBox,s=_3e2.node.style;
s.left=(_3e3.l<c.l?c.l:c.r<_3e3.l?c.r:_3e3.l)+"px";
s.top=(_3e3.t<c.t?c.t:c.b<_3e3.t?c.b:_3e3.t)+"px";
}});
dojo.declare("dojo.dnd.move.boxConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{box:{},markupFactory:function(_3e4,node){
return new dojo.dnd.move.boxConstrainedMoveable(node,_3e4);
},constructor:function(node,_3e5){
var box=_3e5&&_3e5.box;
this.constraints=function(){
return box;
};
}});
dojo.declare("dojo.dnd.move.parentConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(_3e6,node){
return new dojo.dnd.move.parentConstrainedMoveable(node,_3e6);
},constructor:function(node,_3e7){
var area=_3e7&&_3e7.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,_3e8){
dojo.deprecated("dojo.dnd.move.constrainedMover, use dojo.dnd.move.constrainedMoveable instead");
var _3e9=function(node,e,_3ea){
dojo.dnd.Mover.call(this,node,e,_3ea);
};
dojo.extend(_3e9,dojo.dnd.Mover.prototype);
dojo.extend(_3e9,{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(_3e8){
var mb=dojo.marginBox(this.node);
c.r-=mb.w;
c.b-=mb.h;
}
}});
return _3e9;
};
dojo.dnd.move.boxConstrainedMover=function(box,_3eb){
dojo.deprecated("dojo.dnd.move.boxConstrainedMover, use dojo.dnd.move.boxConstrainedMoveable instead");
return dojo.dnd.move.constrainedMover(function(){
return box;
},_3eb);
};
dojo.dnd.move.parentConstrainedMover=function(area,_3ec){
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,_3ec);
};
dojo.dnd.constrainedMover=dojo.dnd.move.constrainedMover;
dojo.dnd.boxConstrainedMover=dojo.dnd.move.boxConstrainedMover;
dojo.dnd.parentConstrainedMover=dojo.dnd.move.parentConstrainedMover;
}
if(!dojo._hasResource["dojo.dnd.TimedMoveable"]){
dojo._hasResource["dojo.dnd.TimedMoveable"]=true;
dojo.provide("dojo.dnd.TimedMoveable");
(function(){
var _3ed=dojo.dnd.Moveable.prototype.onMove;
dojo.declare("dojo.dnd.TimedMoveable",dojo.dnd.Moveable,{timeout:40,constructor:function(node,_3ee){
if(!_3ee){
_3ee={};
}
if(_3ee.timeout&&typeof _3ee.timeout=="number"&&_3ee.timeout>=0){
this.timeout=_3ee.timeout;
}
},markupFactory:function(_3ef,node){
return new dojo.dnd.TimedMoveable(node,_3ef);
},onMoveStop:function(_3f0){
if(_3f0._timer){
clearTimeout(_3f0._timer);
_3ed.call(this,_3f0,_3f0._leftTop);
}
dojo.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);
},onMove:function(_3f1,_3f2){
_3f1._leftTop=_3f2;
if(!_3f1._timer){
var _3f3=this;
_3f1._timer=setTimeout(function(){
_3f1._timer=null;
_3ed.call(_3f3,_3f1,_3f1._leftTop);
},this.timeout);
}
}});
})();
}
if(!dojo._hasResource["dojo.fx.Toggler"]){
dojo._hasResource["dojo.fx.Toggler"]=true;
dojo.provide("dojo.fx.Toggler");
dojo.declare("dojo.fx.Toggler",null,{node:null,showFunc:dojo.fadeIn,hideFunc:dojo.fadeOut,showDuration:200,hideDuration:200,constructor:function(args){
var _3f4=this;
dojo.mixin(_3f4,args);
_3f4.node=args.node;
_3f4._showArgs=dojo.mixin({},args);
_3f4._showArgs.node=_3f4.node;
_3f4._showArgs.duration=_3f4.showDuration;
_3f4.showAnim=_3f4.showFunc(_3f4._showArgs);
_3f4._hideArgs=dojo.mixin({},args);
_3f4._hideArgs.node=_3f4.node;
_3f4._hideArgs.duration=_3f4.hideDuration;
_3f4.hideAnim=_3f4.hideFunc(_3f4._hideArgs);
dojo.connect(_3f4.showAnim,"beforeBegin",dojo.hitch(_3f4.hideAnim,"stop",true));
dojo.connect(_3f4.hideAnim,"beforeBegin",dojo.hitch(_3f4.showAnim,"stop",true));
},show:function(_3f5){
return this.showAnim.play(_3f5||0);
},hide:function(_3f6){
return this.hideAnim.play(_3f6||0);
}});
}
if(!dojo._hasResource["dojo.fx"]){
dojo._hasResource["dojo.fx"]=true;
dojo.provide("dojo.fx");
(function(){
var d=dojo,_3f7={_fire:function(evt,args){
if(this[evt]){
this[evt].apply(this,args||[]);
}
return this;
}};
var _3f8=function(_3f9){
this._index=-1;
this._animations=_3f9||[];
this._current=this._onAnimateCtx=this._onEndCtx=null;
this.duration=0;
d.forEach(this._animations,function(a){
this.duration+=a.duration;
if(a.delay){
this.duration+=a.delay;
}
},this);
};
d.extend(_3f8,{_onAnimate:function(){
this._fire("onAnimate",arguments);
},_onEnd:function(){
d.disconnect(this._onAnimateCtx);
d.disconnect(this._onEndCtx);
this._onAnimateCtx=this._onEndCtx=null;
if(this._index+1==this._animations.length){
this._fire("onEnd");
}else{
this._current=this._animations[++this._index];
this._onAnimateCtx=d.connect(this._current,"onAnimate",this,"_onAnimate");
this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");
this._current.play(0,true);
}
},play:function(_3fa,_3fb){
if(!this._current){
this._current=this._animations[this._index=0];
}
if(!_3fb&&this._current.status()=="playing"){
return this;
}
var _3fc=d.connect(this._current,"beforeBegin",this,function(){
this._fire("beforeBegin");
}),_3fd=d.connect(this._current,"onBegin",this,function(arg){
this._fire("onBegin",arguments);
}),_3fe=d.connect(this._current,"onPlay",this,function(arg){
this._fire("onPlay",arguments);
d.disconnect(_3fc);
d.disconnect(_3fd);
d.disconnect(_3fe);
});
if(this._onAnimateCtx){
d.disconnect(this._onAnimateCtx);
}
this._onAnimateCtx=d.connect(this._current,"onAnimate",this,"_onAnimate");
if(this._onEndCtx){
d.disconnect(this._onEndCtx);
}
this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");
this._current.play.apply(this._current,arguments);
return this;
},pause:function(){
if(this._current){
var e=d.connect(this._current,"onPause",this,function(arg){
this._fire("onPause",arguments);
d.disconnect(e);
});
this._current.pause();
}
return this;
},gotoPercent:function(_3ff,_400){
this.pause();
var _401=this.duration*_3ff;
this._current=null;
d.some(this._animations,function(a){
if(a.duration<=_401){
this._current=a;
return true;
}
_401-=a.duration;
return false;
});
if(this._current){
this._current.gotoPercent(_401/this._current.duration,_400);
}
return this;
},stop:function(_402){
if(this._current){
if(_402){
for(;this._index+1<this._animations.length;++this._index){
this._animations[this._index].stop(true);
}
this._current=this._animations[this._index];
}
var e=d.connect(this._current,"onStop",this,function(arg){
this._fire("onStop",arguments);
d.disconnect(e);
});
this._current.stop();
}
return this;
},status:function(){
return this._current?this._current.status():"stopped";
},destroy:function(){
if(this._onAnimateCtx){
d.disconnect(this._onAnimateCtx);
}
if(this._onEndCtx){
d.disconnect(this._onEndCtx);
}
}});
d.extend(_3f8,_3f7);
dojo.fx.chain=function(_403){
return new _3f8(_403);
};
var _404=function(_405){
this._animations=_405||[];
this._connects=[];
this._finished=0;
this.duration=0;
d.forEach(_405,function(a){
var _406=a.duration;
if(a.delay){
_406+=a.delay;
}
if(this.duration<_406){
this.duration=_406;
}
this._connects.push(d.connect(a,"onEnd",this,"_onEnd"));
},this);
this._pseudoAnimation=new d.Animation({curve:[0,1],duration:this.duration});
var self=this;
d.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop","onEnd"],function(evt){
self._connects.push(d.connect(self._pseudoAnimation,evt,function(){
self._fire(evt,arguments);
}));
});
};
d.extend(_404,{_doAction:function(_407,args){
d.forEach(this._animations,function(a){
a[_407].apply(a,args);
});
return this;
},_onEnd:function(){
if(++this._finished>this._animations.length){
this._fire("onEnd");
}
},_call:function(_408,args){
var t=this._pseudoAnimation;
t[_408].apply(t,args);
},play:function(_409,_40a){
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(_40b,_40c){
var ms=this.duration*_40b;
d.forEach(this._animations,function(a){
a.gotoPercent(a.duration<ms?1:(ms/a.duration),_40c);
});
this._call("gotoPercent",arguments);
return this;
},stop:function(_40d){
this._doAction("stop",arguments);
this._call("stop",arguments);
return this;
},status:function(){
return this._pseudoAnimation.status();
},destroy:function(){
d.forEach(this._connects,dojo.disconnect);
}});
d.extend(_404,_3f7);
dojo.fx.combine=function(_40e){
return new _404(_40e);
};
dojo.fx.wipeIn=function(args){
var node=args.node=d.byId(args.node),s=node.style,o;
var anim=d.animateProperty(d.mixin({properties:{height:{start:function(){
o=s.overflow;
s.overflow="hidden";
if(s.visibility=="hidden"||s.display=="none"){
s.height="1px";
s.display="";
s.visibility="";
return 1;
}else{
var _40f=d.style(node,"height");
return Math.max(_40f,1);
}
},end:function(){
return node.scrollHeight;
}}}},args));
d.connect(anim,"onEnd",function(){
s.height="auto";
s.overflow=o;
});
return anim;
};
dojo.fx.wipeOut=function(args){
var node=args.node=d.byId(args.node),s=node.style,o;
var anim=d.animateProperty(d.mixin({properties:{height:{end:1}}},args));
d.connect(anim,"beforeBegin",function(){
o=s.overflow;
s.overflow="hidden";
s.display="";
});
d.connect(anim,"onEnd",function(){
s.overflow=o;
s.height="auto";
s.display="none";
});
return anim;
};
dojo.fx.slideTo=function(args){
var node=args.node=d.byId(args.node),top=null,left=null;
var init=(function(n){
return function(){
var cs=d.getComputedStyle(n);
var pos=cs.position;
top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);
left=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);
if(pos!="absolute"&&pos!="relative"){
var ret=d.position(n,true);
top=ret.y;
left=ret.x;
n.style.position="absolute";
n.style.top=top+"px";
n.style.left=left+"px";
}
};
})(node);
init();
var anim=d.animateProperty(d.mixin({properties:{top:args.top||0,left:args.left||0}},args));
d.connect(anim,"beforeBegin",anim,init);
return anim;
};
})();
}
if(!dojo._hasResource["dijit.form._FormMixin"]){
dojo._hasResource["dijit.form._FormMixin"]=true;
dojo.provide("dijit.form._FormMixin");
dojo.declare("dijit.form._FormMixin",null,{reset:function(){
dojo.forEach(this.getDescendants(),function(_410){
if(_410.reset){
_410.reset();
}
});
},validate:function(){
var _411=false;
return dojo.every(dojo.map(this.getDescendants(),function(_412){
_412._hasBeenBlurred=true;
var _413=_412.disabled||!_412.validate||_412.validate();
if(!_413&&!_411){
dijit.scrollIntoView(_412.containerNode||_412.domNode);
_412.focus();
_411=true;
}
return _413;
}),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(_414){
if(!_414.name){
return;
}
var _415=map[_414.name]||(map[_414.name]=[]);
_415.push(_414);
});
for(var name in map){
if(!map.hasOwnProperty(name)){
continue;
}
var _416=map[name],_417=dojo.getObject(name,false,obj);
if(_417===undefined){
continue;
}
if(!dojo.isArray(_417)){
_417=[_417];
}
if(typeof _416[0].checked=="boolean"){
dojo.forEach(_416,function(w,i){
w.attr("value",dojo.indexOf(_417,w.value)!=-1);
});
}else{
if(_416[0].multiple){
_416[0].attr("value",_417);
}else{
dojo.forEach(_416,function(w,i){
w.attr("value",_417[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(_418){
var name=_418.name;
if(!name||_418.disabled){
return;
}
var _419=_418.attr("value");
if(typeof _418.checked=="boolean"){
if(/Radio/.test(_418.declaredClass)){
if(_419!==false){
dojo.setObject(name,_419,obj);
}else{
_419=dojo.getObject(name,false,obj);
if(_419===undefined){
dojo.setObject(name,null,obj);
}
}
}else{
var ary=dojo.getObject(name,false,obj);
if(!ary){
ary=[];
dojo.setObject(name,ary,obj);
}
if(_419!==false){
ary.push(_419);
}
}
}else{
var prev=dojo.getObject(name,false,obj);
if(typeof prev!="undefined"){
if(dojo.isArray(prev)){
prev.push(_419);
}else{
dojo.setObject(name,[prev,_419],obj);
}
}else{
dojo.setObject(name,_419,obj);
}
}
});
return obj;
},isValid:function(){
this._invalidWidgets=dojo.filter(this.getDescendants(),function(_41a){
return !_41a.disabled&&_41a.isValid&&!_41a.isValid();
});
return !this._invalidWidgets.length;
},onValidStateChange:function(_41b){
},_widgetChange:function(_41c){
var _41d=this._lastValidState;
if(!_41c||this._lastValidState===undefined){
_41d=this.isValid();
if(this._lastValidState===undefined){
this._lastValidState=_41d;
}
}else{
if(_41c.isValid){
this._invalidWidgets=dojo.filter(this._invalidWidgets||[],function(w){
return (w!=_41c);
},this);
if(!_41c.isValid()&&!_41c.attr("disabled")){
this._invalidWidgets.push(_41c);
}
_41d=(this._invalidWidgets.length===0);
}
}
if(_41d!==this._lastValidState){
this._lastValidState=_41d;
this.onValidStateChange(_41d);
}
},connectChildren:function(){
dojo.forEach(this._changeConnections,dojo.hitch(this,"disconnect"));
var _41e=this;
var _41f=this._changeConnections=[];
dojo.forEach(dojo.filter(this.getDescendants(),function(item){
return item.validate;
}),function(_420){
_41f.push(_41e.connect(_420,"validate",dojo.hitch(_41e,"_widgetChange",_420)));
_41f.push(_41e.connect(_420,"_setDisabledAttr",dojo.hitch(_41e,"_widgetChange",_420)));
});
this._widgetChange(null);
},startup:function(){
this.inherited(arguments);
this._changeConnections=[];
this.connectChildren();
}});
}
if(!dojo._hasResource["dijit._DialogMixin"]){
dojo._hasResource["dijit._DialogMixin"]=true;
dojo.provide("dijit._DialogMixin");
dojo.declare("dijit._DialogMixin",null,{attributeMap:dijit._Widget.prototype.attributeMap,execute:function(_421){
},onCancel:function(){
},onExecute:function(){
},_onSubmit:function(){
this.onExecute();
this.execute(this.attr("value"));
},_getFocusItems:function(_422){
var _423=dijit._getTabNavigable(dojo.byId(_422));
this._firstFocusItem=_423.lowest||_423.first||_422;
this._lastFocusItem=_423.last||_423.highest||this._firstFocusItem;
if(dojo.isMoz&&this._firstFocusItem.tagName.toLowerCase()=="input"&&dojo.getNodeProp(this._firstFocusItem,"type").toLowerCase()=="file"){
dojo.attr(_422,"tabIndex","0");
this._firstFocusItem=_422;
}
}});
}
if(!dojo._hasResource["dijit.DialogUnderlay"]){
dojo._hasResource["dijit.DialogUnderlay"]=true;
dojo.provide("dijit.DialogUnderlay");
dojo.declare("dijit.DialogUnderlay",[dijit._Widget,dijit._Templated],{templateString:"<div class='dijitDialogUnderlayWrapper'><div class='dijitDialogUnderlay' dojoAttachPoint='node'></div></div>",dialogId:"","class":"",attributeMap:{id:"domNode"},_setDialogIdAttr:function(id){
dojo.attr(this.node,"id",id+"_underlay");
},_setClassAttr:function(_424){
this.node.className="dijitDialogUnderlay "+_424;
},postCreate:function(){
dojo.body().appendChild(this.domNode);
},layout:function(){
var is=this.node.style,os=this.domNode.style;
os.display="none";
var _425=dijit.getViewport();
os.top=_425.t+"px";
os.left=_425.l+"px";
is.width=_425.w+"px";
is.height=_425.h+"px";
os.display="block";
},show:function(){
this.domNode.style.display="block";
this.layout();
this.bgIframe=new dijit.BackgroundIframe(this.domNode);
},hide:function(){
this.bgIframe.destroy();
this.domNode.style.display="none";
},uninitialize:function(){
if(this.bgIframe){
this.bgIframe.destroy();
}
this.inherited(arguments);
}});
}
if(!dojo._hasResource["dijit._Container"]){
dojo._hasResource["dijit._Container"]=true;
dojo.provide("dijit._Container");
dojo.declare("dijit._Container",null,{isContainer:true,buildRendering:function(){
this.inherited(arguments);
if(!this.containerNode){
this.containerNode=this.domNode;
}
},addChild:function(_426,_427){
var _428=this.containerNode;
if(_427&&typeof _427=="number"){
var _429=this.getChildren();
if(_429&&_429.length>=_427){
_428=_429[_427-1].domNode;
_427="after";
}
}
dojo.place(_426.domNode,_428,_427);
if(this._started&&!_426._started){
_426.startup();
}
},removeChild:function(_42a){
if(typeof _42a=="number"&&_42a>0){
_42a=this.getChildren()[_42a];
}
if(_42a&&_42a.domNode){
var node=_42a.domNode;
node.parentNode.removeChild(node);
}
},getChildren:function(){
return dojo.query("> [widgetId]",this.containerNode).map(dijit.byNode);
},hasChildren:function(){
return dojo.query("> [widgetId]",this.containerNode).length>0;
},destroyDescendants:function(_42b){
dojo.forEach(this.getChildren(),function(_42c){
_42c.destroyRecursive(_42b);
});
},_getSiblingOfChild:function(_42d,dir){
var node=_42d.domNode,_42e=(dir>0?"nextSibling":"previousSibling");
do{
node=node[_42e];
}while(node&&(node.nodeType!=1||!dijit.byNode(node)));
return node&&dijit.byNode(node);
},getIndexOfChild:function(_42f){
return dojo.indexOf(this.getChildren(),_42f);
},startup:function(){
if(this._started){
return;
}
dojo.forEach(this.getChildren(),function(_430){
_430.startup();
});
this.inherited(arguments);
}});
}
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);
this.inherited(arguments);
},startup:function(){
if(this._started){
return;
}
this.inherited(arguments);
var _431=this.getParent&&this.getParent();
if(!(_431&&_431.isLayoutContainer)){
this.resize();
this.connect(dojo.isIE?this.domNode:dojo.global,"onresize",function(){
this.resize();
});
}
},resize:function(_432,_433){
var node=this.domNode;
if(_432){
dojo.marginBox(node,_432);
if(_432.t){
node.style.top=_432.t+"px";
}
if(_432.l){
node.style.left=_432.l+"px";
}
}
var mb=_433||{};
dojo.mixin(mb,_432||{});
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(_434){
dojo.addClass(_434.domNode,this.baseClass+"-child");
if(_434.baseClass){
dojo.addClass(_434.domNode,this.baseClass+"-"+_434.baseClass);
}
},addChild:function(_435,_436){
this.inherited(arguments);
if(this._started){
this._setupChild(_435);
}
},removeChild:function(_437){
dojo.removeClass(_437.domNode,this.baseClass+"-child");
if(_437.baseClass){
dojo.removeClass(_437.domNode,this.baseClass+"-"+_437.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 _438=function(word){
return word.substring(0,1).toUpperCase()+word.substring(1);
};
var size=function(_439,dim){
_439.resize?_439.resize(dim):dojo.marginBox(_439.domNode,dim);
dojo.mixin(_439,dojo.marginBox(_439.domNode));
dojo.mixin(_439,dim);
};
dijit.layout.layoutChildren=function(_43a,dim,_43b){
dim=dojo.mixin({},dim);
dojo.addClass(_43a,"dijitLayoutContainer");
_43b=dojo.filter(_43b,function(item){
return item.layoutAlign!="client";
}).concat(dojo.filter(_43b,function(item){
return item.layoutAlign=="client";
}));
dojo.forEach(_43b,function(_43c){
var elm=_43c.domNode,pos=_43c.layoutAlign;
var _43d=elm.style;
_43d.left=dim.l+"px";
_43d.top=dim.t+"px";
_43d.bottom=_43d.right="auto";
dojo.addClass(elm,"dijitAlign"+_438(pos));
if(pos=="top"||pos=="bottom"){
size(_43c,{w:dim.w});
dim.h-=_43c.h;
if(pos=="top"){
dim.t+=_43c.h;
}else{
_43d.top=dim.t+dim.h+"px";
}
}else{
if(pos=="left"||pos=="right"){
size(_43c,{h:dim.h});
dim.w-=_43c.w;
if(pos=="left"){
dim.l+=_43c.w;
}else{
_43d.left=dim.l+dim.w+"px";
}
}else{
if(pos=="client"){
size(_43c,dim);
}
}
}
});
};
})();
}
if(!dojo._hasResource["dojo.html"]){
dojo._hasResource["dojo.html"]=true;
dojo.provide("dojo.html");
(function(){
var _43e=0,d=dojo;
dojo.html._secureForInnerHtml=function(cont){
return cont.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"");
};
dojo.html._emptyNode=dojo.empty;
dojo.html._setNodeContent=function(node,cont){
d.empty(node);
if(cont){
if(typeof cont=="string"){
cont=d._toDom(cont,node.ownerDocument);
}
if(!cont.nodeType&&d.isArrayLike(cont)){
for(var _43f=cont.length,i=0;i<cont.length;i=_43f==cont.length?i+1:0){
d.place(cont[i],node,"last");
}
}else{
d.place(cont,node,"last");
}
}
return node;
};
dojo.declare("dojo.html._ContentSetter",null,{node:"",content:"",id:"",cleanContent:false,extractContent:false,parseContent:false,constructor:function(_440,node){
dojo.mixin(this,_440||{});
node=this.node=dojo.byId(this.node||node);
if(!this.id){
this.id=["Setter",(node)?node.id||node.tagName:"",_43e++].join("_");
}
if(!(this.node||node)){
new Error(this.declaredClass+": no node provided to "+this.id);
}
},set:function(cont,_441){
if(undefined!==cont){
this.content=cont;
}
if(_441){
this._mixin(_441);
}
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 _442=this.onContentError(e);
try{
node.innerHTML=_442;
}
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 _443=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_443){
cont=_443[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(_444){
var _445={},key;
for(key in _444){
if(key in _445){
continue;
}
this[key]=_444[key];
}
},_parse:function(){
var _446=this.node;
try{
this.parseResults=dojo.parser.parse(_446,true);
}
catch(e){
this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);
}
},_onError:function(type,err,_447){
var _448=this["on"+type+"Error"].call(this,err);
if(_447){
console.error(_447,err);
}else{
if(_448){
dojo.html._setNodeContent(this.node,_448,true);
}
}
}});
dojo.html.set=function(node,cont,_449){
if(undefined==cont){
console.warn("dojo.html.set: no cont argument provided, using empty string");
cont="";
}
if(!_449){
return dojo.html._setNodeContent(node,cont,true);
}else{
var op=new dojo.html._ContentSetter(dojo.mixin(_449,{content:cont,node:node}));
return op.set();
}
};
})();
}
if(!dojo._hasResource["dojo.i18n"]){
dojo._hasResource["dojo.i18n"]=true;
dojo.provide("dojo.i18n");
dojo.i18n.getLocalization=function(_44a,_44b,_44c){
_44c=dojo.i18n.normalizeLocale(_44c);
var _44d=_44c.split("-");
var _44e=[_44a,"nls",_44b].join(".");
var _44f=dojo._loadedModules[_44e];
if(_44f){
var _450;
for(var i=_44d.length;i>0;i--){
var loc=_44d.slice(0,i).join("_");
if(_44f[loc]){
_450=_44f[loc];
break;
}
}
if(!_450){
_450=_44f.ROOT;
}
if(_450){
var _451=function(){
};
_451.prototype=_450;
return new _451();
}
}
throw new Error("Bundle not found: "+_44b+" in "+_44a+" , locale="+_44c);
};
dojo.i18n.normalizeLocale=function(_452){
var _453=_452?_452.toLowerCase():dojo.locale;
if(_453=="root"){
_453="ROOT";
}
return _453;
};
dojo.i18n._requireLocalization=function(_454,_455,_456,_457){
var _458=dojo.i18n.normalizeLocale(_456);
var _459=[_454,"nls",_455].join(".");
var _45a="";
if(_457){
var _45b=_457.split(",");
for(var i=0;i<_45b.length;i++){
if(_458["indexOf"](_45b[i])==0){
if(_45b[i].length>_45a.length){
_45a=_45b[i];
}
}
}
if(!_45a){
_45a="ROOT";
}
}
var _45c=_457?_45a:_458;
var _45d=dojo._loadedModules[_459];
var _45e=null;
if(_45d){
if(dojo.config.localizationComplete&&_45d._built){
return;
}
var _45f=_45c.replace(/-/g,"_");
var _460=_459+"."+_45f;
_45e=dojo._loadedModules[_460];
}
if(!_45e){
_45d=dojo["provide"](_459);
var syms=dojo._getModuleSymbols(_454);
var _461=syms.concat("nls").join("/");
var _462;
dojo.i18n._searchLocalePath(_45c,_457,function(loc){
var _463=loc.replace(/-/g,"_");
var _464=_459+"."+_463;
var _465=false;
if(!dojo._loadedModules[_464]){
dojo["provide"](_464);
var _466=[_461];
if(loc!="ROOT"){
_466.push(loc);
}
_466.push(_455);
var _467=_466.join("/")+".js";
_465=dojo._loadPath(_467,null,function(hash){
var _468=function(){
};
_468.prototype=_462;
_45d[_463]=new _468();
for(var j in hash){
_45d[_463][j]=hash[j];
}
});
}else{
_465=true;
}
if(_465&&_45d[_463]){
_462=_45d[_463];
}else{
_45d[_463]=_462;
}
if(_457){
return true;
}
});
}
if(_457&&_458!=_45a){
_45d[_458.replace(/-/g,"_")]=_45d[_45a.replace(/-/g,"_")];
}
};
(function(){
var _469=dojo.config.extraLocale;
if(_469){
if(!_469 instanceof Array){
_469=[_469];
}
var req=dojo.i18n._requireLocalization;
dojo.i18n._requireLocalization=function(m,b,_46a,_46b){
req(m,b,_46a,_46b);
if(_46a){
return;
}
for(var i=0;i<_469.length;i++){
req(m,b,_469[i],_46b);
}
};
}
})();
dojo.i18n._searchLocalePath=function(_46c,down,_46d){
_46c=dojo.i18n.normalizeLocale(_46c);
var _46e=_46c.split("-");
var _46f=[];
for(var i=_46e.length;i>0;i--){
_46f.push(_46e.slice(0,i).join("-"));
}
_46f.push(false);
if(down){
_46f.reverse();
}
for(var j=_46f.length-1;j>=0;j--){
var loc=_46f[j]||"ROOT";
var stop=_46d(loc);
if(stop){
break;
}
}
};
dojo.i18n._preloadLocalizations=function(_470,_471){
function _472(_473){
_473=dojo.i18n.normalizeLocale(_473);
dojo.i18n._searchLocalePath(_473,true,function(loc){
for(var i=0;i<_471.length;i++){
if(_471[i]==loc){
dojo["require"](_470+"_"+loc);
return true;
}
}
return false;
});
};
_472();
var _474=dojo.config.extraLocale||[];
for(var i=0;i<_474.length;i++){
_472(_474[i]);
}
};
}
if(!dojo._hasResource["dijit.layout.ContentPane"]){
dojo._hasResource["dijit.layout.ContentPane"]=true;
dojo.provide("dijit.layout.ContentPane");
dojo.declare("dijit.layout.ContentPane",dijit._Widget,{href:"",extractContent:false,parseOnLoad:true,preventCache:false,preload:false,refreshOnShow:false,loadingMessage:"<span class='dijitContentPaneLoading'>${loadingState}</span>",errorMessage:"<span class='dijitContentPaneError'>${errorState}</span>",isLoaded:false,baseClass:"dijitContentPane",doLayout:true,ioArgs:{},isContainer:true,isLayoutContainer:true,onLoadDeferred:null,attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{title:[]}),postMixInProperties:function(){
this.inherited(arguments);
var _475=dojo.i18n.getLocalization("dijit","loading",this.lang);
this.loadingMessage=dojo.string.substitute(this.loadingMessage,_475);
this.errorMessage=dojo.string.substitute(this.errorMessage,_475);
if(!this.href&&this.srcNodeRef&&this.srcNodeRef.innerHTML){
this.isLoaded=true;
}
},buildRendering:function(){
this.inherited(arguments);
if(!this.containerNode){
this.containerNode=this.domNode;
}
},postCreate:function(){
this.domNode.title="";
if(!dojo.attr(this.domNode,"role")){
dijit.setWaiRole(this.domNode,"group");
}
dojo.addClass(this.domNode,this.baseClass);
},startup:function(){
if(this._started){
return;
}
var _476=dijit._Contained.prototype.getParent.call(this);
this._childOfLayoutWidget=_476&&_476.isLayoutContainer;
this._needLayout=!this._childOfLayoutWidget;
if(this.isLoaded){
dojo.forEach(this.getChildren(),function(_477){
_477.startup();
});
}
if(this._isShown()||this.preload){
this._onShow();
}
this.inherited(arguments);
},_checkIfSingleChild:function(){
var _478=dojo.query("> *",this.containerNode).filter(function(node){
return node.tagName!=="SCRIPT";
}),_479=_478.filter(function(node){
return dojo.hasAttr(node,"dojoType")||dojo.hasAttr(node,"widgetId");
}),_47a=dojo.filter(_479.map(dijit.byNode),function(_47b){
return _47b&&_47b.domNode&&_47b.resize;
});
if(_478.length==_479.length&&_47a.length==1){
this._singleChild=_47a[0];
}else{
delete this._singleChild;
}
dojo.toggleClass(this.containerNode,this.baseClass+"SingleChild",!!this._singleChild);
},setHref:function(href){
dojo.deprecated("dijit.layout.ContentPane.setHref() is deprecated. Use attr('href', ...) instead.","","2.0");
return this.attr("href",href);
},_setHrefAttr:function(href){
this.cancel();
this.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));
this.href=href;
if(this._created&&(this.preload||this._isShown())){
this._load();
}else{
this._hrefChanged=true;
}
return this.onLoadDeferred;
},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.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));
this._setContent(data||"");
this._isDownloaded=false;
return this.onLoadDeferred;
},_getContentAttr:function(){
return this.containerNode.innerHTML;
},cancel:function(){
if(this._xhrDfd&&(this._xhrDfd.fired==-1)){
this._xhrDfd.cancel();
}
delete this._xhrDfd;
this.onLoadDeferred=null;
},uninitialize:function(){
if(this._beingDestroyed){
this.cancel();
}
this.inherited(arguments);
},destroyRecursive:function(_47c){
if(this._beingDestroyed){
return;
}
this.inherited(arguments);
},resize:function(_47d,_47e){
if(!this._wasShown){
this._onShow();
}
this._resizeCalled=true;
if(_47d){
dojo.marginBox(this.domNode,_47d);
}
var cn=this.containerNode;
if(cn===this.domNode){
var mb=_47e||{};
dojo.mixin(mb,_47d||{});
if(!("h" in mb)||!("w" in mb)){
mb=dojo.mixin(dojo.marginBox(cn),mb);
}
this._contentBox=dijit.layout.marginBox2contentBox(cn,mb);
}else{
this._contentBox=dojo.contentBox(cn);
}
this._layoutChildren();
},_isShown:function(){
if(this._childOfLayoutWidget){
if(this._resizeCalled&&"open" in this){
return this.open;
}
return this._resizeCalled;
}else{
if("open" in this){
return this.open;
}else{
var node=this.domNode;
return (node.style.display!="none")&&(node.style.visibility!="hidden")&&!dojo.hasClass(node,"dijitHidden");
}
}
},_onShow:function(){
if(this.href){
if(!this._xhrDfd&&(!this.isLoaded||this._hrefChanged||this.refreshOnShow)){
this.refresh();
}
}else{
if(!this._childOfLayoutWidget&&this._needLayout){
this._layoutChildren();
}
}
this.inherited(arguments);
this._wasShown=true;
},refresh:function(){
this.cancel();
this.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));
this._load();
return this.onLoadDeferred;
},_load:function(){
this._setContent(this.onDownloadStart(),true);
var self=this;
var _47f={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};
if(dojo.isObject(this.ioArgs)){
dojo.mixin(_47f,this.ioArgs);
}
var hand=(this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_47f));
hand.addCallback(function(html){
try{
self._isDownloaded=true;
self._setContent(html,false);
self.onDownloadEnd();
}
catch(err){
self._onError("Content",err);
}
delete self._xhrDfd;
return html;
});
hand.addErrback(function(err){
if(!hand.canceled){
self._onError("Download",err);
}
delete self._xhrDfd;
return err;
});
delete this._hrefChanged;
},_onLoadHandler:function(data){
this.isLoaded=true;
try{
this.onLoadDeferred.callback(data);
this.onLoad(data);
}
catch(e){
console.error("Error "+this.widgetId+" running custom onLoad code: "+e.message);
}
},_onUnloadHandler:function(){
this.isLoaded=false;
try{
this.onUnload();
}
catch(e){
console.error("Error "+this.widgetId+" running custom onUnload code: "+e.message);
}
},destroyDescendants:function(){
if(this.isLoaded){
this._onUnloadHandler();
}
var _480=this._contentSetter;
dojo.forEach(this.getChildren(),function(_481){
if(_481.destroyRecursive){
_481.destroyRecursive();
}
});
if(_480){
dojo.forEach(_480.parseResults,function(_482){
if(_482.destroyRecursive&&_482.domNode&&_482.domNode.parentNode==dojo.body()){
_482.destroyRecursive();
}
});
delete _480.parseResults;
}
dojo.html._emptyNode(this.containerNode);
delete this._singleChild;
},_setContent:function(cont,_483){
this.destroyDescendants();
var _484=this._contentSetter;
if(!(_484&&_484 instanceof dojo.html._ContentSetter)){
_484=this._contentSetter=new dojo.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){
var _485=this.onContentError(e);
try{
this.containerNode.innerHTML=_485;
}
catch(e){
console.error("Fatal "+this.id+" could not change content due to "+e.message,e);
}
})});
}
var _486=dojo.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad},this._contentSetterParams||{});
dojo.mixin(_484,_486);
_484.set((dojo.isObject(cont)&&cont.domNode)?cont.domNode:cont);
delete this._contentSetterParams;
if(!_483){
dojo.forEach(this.getChildren(),function(_487){
if(!this.parseOnLoad||_487.getParent){
_487.startup();
}
},this);
this._scheduleLayout();
this._onLoadHandler(cont);
}
},_onError:function(type,err,_488){
this.onLoadDeferred.errback(err);
var _489=this["on"+type+"Error"].call(this,err);
if(_488){
console.error(_488,err);
}else{
if(_489){
this._setContent(_489,true);
}
}
},_scheduleLayout:function(){
if(this._isShown()){
this._layoutChildren();
}else{
this._needLayout=true;
}
},_layoutChildren:function(){
if(this.doLayout){
this._checkIfSingleChild();
}
if(this._singleChild&&this._singleChild.resize){
var cb=this._contentBox||dojo.contentBox(this.containerNode);
this._singleChild.resize({w:cb.w,h:cb.h});
}else{
dojo.forEach(this.getChildren(),function(_48a){
if(_48a.resize){
_48a.resize();
}
});
}
delete this._needLayout;
},onLoad:function(data){
},onUnload:function(){
},onDownloadStart:function(){
return this.loadingMessage;
},onContentError:function(_48b){
},onDownloadError:function(_48c){
return this.errorMessage;
},onDownloadEnd:function(){
}});
}
if(!dojo._hasResource["dijit.TooltipDialog"]){
dojo._hasResource["dijit.TooltipDialog"]=true;
dojo.provide("dijit.TooltipDialog");
dojo.declare("dijit.TooltipDialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{title:"",doLayout:false,autofocus:true,baseClass:"dijitTooltipDialog",_firstFocusItem:null,_lastFocusItem:null,templateString:dojo.cache("dijit","templates/TooltipDialog.html","<div waiRole=\"presentation\">\n\t<div class=\"dijitTooltipContainer\" waiRole=\"presentation\">\n\t\t<div class =\"dijitTooltipContents dijitTooltipFocusNode\" dojoAttachPoint=\"containerNode\" tabindex=\"-1\" waiRole=\"dialog\"></div>\n\t</div>\n\t<div class=\"dijitTooltipConnector\" waiRole=\"presentation\"></div>\n</div>\n"),postCreate:function(){
this.inherited(arguments);
this.connect(this.containerNode,"onkeypress","_onKey");
this.containerNode.title=this.title;
},orient:function(node,_48d,_48e){
var c=this._currentOrientClass;
if(c){
dojo.removeClass(this.domNode,c);
}
c="dijitTooltipAB"+(_48e.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_48e.charAt(0)=="T"?"Below":"Above");
dojo.addClass(this.domNode,c);
this._currentOrientClass=c;
},onOpen:function(pos){
this.orient(this.domNode,pos.aroundCorner,pos.corner);
this._onShow();
if(this.autofocus){
this._getFocusItems(this.containerNode);
dijit.focus(this._firstFocusItem);
}
},onClose:function(){
this.onHide();
},_onKey:function(evt){
var node=evt.target;
var dk=dojo.keys;
if(evt.charOrCode===dk.TAB){
this._getFocusItems(this.containerNode);
}
var _48f=(this._firstFocusItem==this._lastFocusItem);
if(evt.charOrCode==dk.ESCAPE){
setTimeout(dojo.hitch(this,"onCancel"),0);
dojo.stopEvent(evt);
}else{
if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){
if(!_48f){
dijit.focus(this._lastFocusItem);
}
dojo.stopEvent(evt);
}else{
if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){
if(!_48f){
dijit.focus(this._firstFocusItem);
}
dojo.stopEvent(evt);
}else{
if(evt.charOrCode===dk.TAB){
evt.stopPropagation();
}
}
}
}
}});
}
if(!dojo._hasResource["dijit.Dialog"]){
dojo._hasResource["dijit.Dialog"]=true;
dojo.provide("dijit.Dialog");
dojo.declare("dijit._DialogBase",[dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{templateString:dojo.cache("dijit","templates/Dialog.html","<div class=\"dijitDialog\" tabindex=\"-1\" waiRole=\"dialog\" waiState=\"labelledby-${id}_title\">\n\t<div dojoAttachPoint=\"titleBar\" class=\"dijitDialogTitleBar\">\n\t<span dojoAttachPoint=\"titleNode\" class=\"dijitDialogTitle\" id=\"${id}_title\"></span>\n\t<span dojoAttachPoint=\"closeButtonNode\" class=\"dijitDialogCloseIcon\" dojoAttachEvent=\"onclick: onCancel, onmouseenter: _onCloseEnter, onmouseleave: _onCloseLeave\" title=\"${buttonCancel}\">\n\t\t<span dojoAttachPoint=\"closeText\" class=\"closeText\" title=\"${buttonCancel}\">x</span>\n\t</span>\n\t</div>\n\t\t<div dojoAttachPoint=\"containerNode\" class=\"dijitDialogPaneContent\"></div>\n</div>\n"),attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{title:[{node:"titleNode",type:"innerHTML"},{node:"titleBar",type:"attribute"}],"aria-describedby":""}),open:false,duration:dijit.defaultDuration,refocus:true,autofocus:true,_firstFocusItem:null,_lastFocusItem:null,doLayout:false,draggable:true,"aria-describedby":"",postMixInProperties:function(){
var _490=dojo.i18n.getLocalization("dijit","common");
dojo.mixin(this,_490);
this.inherited(arguments);
},postCreate:function(){
dojo.style(this.domNode,{display:"none",position:"absolute"});
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){
this._relativePosition=dojo.position(e.node);
}
},_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.underlayAttrs={dialogId:this.id,"class":dojo.map(this["class"].split(/\s/),function(s){
return s+"_underlay";
}).join(" ")};
this._fadeIn=dojo.fadeIn({node:node,duration:this.duration,beforeBegin:dojo.hitch(this,function(){
var _491=dijit._underlay;
if(!_491){
_491=dijit._underlay=new dijit.DialogUnderlay(this.underlayAttrs);
}else{
_491.attr(this.underlayAttrs);
}
var _492=948+dijit._dialogStack.length*2;
dojo.style(dijit._underlay.domNode,"zIndex",_492);
dojo.style(this.domNode,"zIndex",_492+1);
_491.show();
}),onEnd:dojo.hitch(this,function(){
if(this.autofocus){
this._getFocusItems(this.domNode);
dijit.focus(this._firstFocusItem);
}
})});
this._fadeOut=dojo.fadeOut({node:node,duration:this.duration,onEnd:dojo.hitch(this,function(){
node.style.display="none";
var ds=dijit._dialogStack;
if(ds.length==0){
dijit._underlay.hide();
}else{
dojo.style(dijit._underlay.domNode,"zIndex",948+ds.length*2);
dijit._underlay.attr(ds[ds.length-1].underlayAttrs);
}
if(this.refocus){
var _493=this._savedFocus;
if(ds.length>0){
var pd=ds[ds.length-1];
if(!dojo.isDescendant(_493.node,pd.domNode)){
pd._getFocusItems(pd.domNode);
_493=pd._firstFocusItem;
}
}
dijit.focus(_493);
}
})});
},uninitialize:function(){
var _494=false;
if(this._fadeIn&&this._fadeIn.status()=="playing"){
_494=true;
this._fadeIn.stop();
}
if(this._fadeOut&&this._fadeOut.status()=="playing"){
_494=true;
this._fadeOut.stop();
}
if((this.open||_494)&&!dijit._underlay._destroyed){
dijit._underlay.hide();
}
if(this._moveable){
this._moveable.destroy();
}
this.inherited(arguments);
},_size:function(){
this._checkIfSingleChild();
if(this._singleChild){
if(this._singleChildOriginalStyle){
this._singleChild.domNode.style.cssText=this._singleChildOriginalStyle;
}
delete this._singleChildOriginalStyle;
}else{
dojo.style(this.containerNode,{width:"auto",height:"auto"});
}
var mb=dojo.marginBox(this.domNode);
var _495=dijit.getViewport();
if(mb.w>=_495.w||mb.h>=_495.h){
var w=Math.min(mb.w,Math.floor(_495.w*0.75)),h=Math.min(mb.h,Math.floor(_495.h*0.75));
if(this._singleChild&&this._singleChild.resize){
this._singleChildOriginalStyle=this._singleChild.domNode.style.cssText;
this._singleChild.resize({w:w,h:h});
}else{
dojo.style(this.containerNode,{width:w+"px",height:h+"px",overflow:"auto",position:"relative"});
}
}else{
if(this._singleChild&&this._singleChild.resize){
this._singleChild.resize();
}
}
},_position:function(){
if(!dojo.hasClass(dojo.body(),"dojoMove")){
var node=this.domNode,_496=dijit.getViewport(),p=this._relativePosition,bb=p?null:dojo._getBorderBox(node),l=Math.floor(_496.l+(p?p.x:(_496.w-bb.w)/2)),t=Math.floor(_496.t+(p?p.y:(_496.h-bb.h)/2));
dojo.style(node,{left:l+"px",top:t+"px"});
}
},_onKey:function(evt){
var ds=dijit._dialogStack;
if(ds[ds.length-1]!=this){
return;
}
if(evt.charOrCode){
var dk=dojo.keys;
var node=evt.target;
if(evt.charOrCode===dk.TAB){
this._getFocusItems(this.domNode);
}
var _497=(this._firstFocusItem==this._lastFocusItem);
if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){
if(!_497){
dijit.focus(this._lastFocusItem);
}
dojo.stopEvent(evt);
}else{
if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){
if(!_497){
dijit.focus(this._firstFocusItem);
}
dojo.stopEvent(evt);
}else{
while(node){
if(node==this.domNode||dojo.hasClass(node,"dijitPopup")){
if(evt.charOrCode==dk.ESCAPE){
this.onCancel();
}else{
return;
}
}
node=node.parentNode;
}
if(evt.charOrCode!==dk.TAB){
dojo.stopEvent(evt);
}else{
if(!dojo.isOpera){
try{
this._firstFocusItem.focus();
}
catch(e){
}
}
}
}
}
}
},show:function(){
if(this.open){
return;
}
if(!this._alreadyInitialized){
this._setup();
this._alreadyInitialized=true;
}
if(this._fadeOut.status()=="playing"){
this._fadeOut.stop();
}
this._modalconnects.push(dojo.connect(window,"onscroll",this,"layout"));
this._modalconnects.push(dojo.connect(window,"onresize",this,function(){
var _498=dijit.getViewport();
if(!this._oldViewport||_498.h!=this._oldViewport.h||_498.w!=this._oldViewport.w){
this.layout();
this._oldViewport=_498;
}
}));
this._modalconnects.push(dojo.connect(dojo.doc.documentElement,"onkeypress",this,"_onKey"));
dojo.style(this.domNode,{opacity:0,display:""});
this.open=true;
this._onShow();
this._size();
this._position();
dijit._dialogStack.push(this);
this._fadeIn.play();
this._savedFocus=dijit.getFocus(this);
},hide:function(){
var ds=dijit._dialogStack;
if(!this._alreadyInitialized||this!=ds[ds.length-1]){
return;
}
if(this._fadeIn.status()=="playing"){
this._fadeIn.stop();
}
ds.pop();
this._fadeOut.play();
if(this._scrollConnected){
this._scrollConnected=false;
}
dojo.forEach(this._modalconnects,dojo.disconnect);
this._modalconnects=[];
if(this._relativePosition){
delete this._relativePosition;
}
this.open=false;
this.onHide();
},layout:function(){
if(this.domNode.style.display!="none"){
if(dijit._underlay){
dijit._underlay.layout();
}
this._position();
}
},destroy:function(){
dojo.forEach(this._modalconnects,dojo.disconnect);
if(this.refocus&&this.open){
setTimeout(dojo.hitch(dijit,"focus",this._savedFocus),25);
}
this.inherited(arguments);
},_onCloseEnter:function(){
dojo.addClass(this.closeButtonNode,"dijitDialogCloseIcon-hover");
},_onCloseLeave:function(){
dojo.removeClass(this.closeButtonNode,"dijitDialogCloseIcon-hover");
}});
dojo.declare("dijit.Dialog",[dijit.layout.ContentPane,dijit._DialogBase],{});
dijit._dialogStack=[];
}
if(!dojo._hasResource["dijit._editor.selection"]){
dojo._hasResource["dijit._editor.selection"]=true;
dojo.provide("dijit._editor.selection");
dojo.mixin(dijit._editor.selection,{getType:function(){
if(dojo.isIE){
return dojo.doc.selection.type.toLowerCase();
}else{
var _499="text";
var oSel;
try{
oSel=dojo.global.getSelection();
}
catch(e){
}
if(oSel&&oSel.rangeCount==1){
var _49a=oSel.getRangeAt(0);
if((_49a.startContainer==_49a.endContainer)&&((_49a.endOffset-_49a.startOffset)==1)&&(_49a.startContainer.nodeType!=3)){
_499="control";
}
}
return _499;
}
},getSelectedText:function(){
if(dojo.isIE){
if(dijit._editor.selection.getType()=="control"){
return null;
}
return dojo.doc.selection.createRange().text;
}else{
var _49b=dojo.global.getSelection();
if(_49b){
return _49b.toString();
}
}
return "";
},getSelectedHtml:function(){
if(dojo.isIE){
if(dijit._editor.selection.getType()=="control"){
return null;
}
return dojo.doc.selection.createRange().htmlText;
}else{
var _49c=dojo.global.getSelection();
if(_49c&&_49c.rangeCount){
var i;
var html="";
for(i=0;i<_49c.rangeCount;i++){
var frag=_49c.getRangeAt(i).cloneContents();
var div=dojo.doc.createElement("div");
div.appendChild(frag);
html+=div.innerHTML;
}
return html;
}
return null;
}
},getSelectedElement:function(){
if(dijit._editor.selection.getType()=="control"){
if(dojo.isIE){
var _49d=dojo.doc.selection.createRange();
if(_49d&&_49d.item){
return dojo.doc.selection.createRange().item(0);
}
}else{
var _49e=dojo.global.getSelection();
return _49e.anchorNode.childNodes[_49e.anchorOffset];
}
}
return null;
},getParentElement:function(){
if(dijit._editor.selection.getType()=="control"){
var p=this.getSelectedElement();
if(p){
return p.parentNode;
}
}else{
if(dojo.isIE){
var r=dojo.doc.selection.createRange();
r.collapse(true);
return r.parentElement();
}else{
var _49f=dojo.global.getSelection();
if(_49f){
var node=_49f.anchorNode;
while(node&&(node.nodeType!=1)){
node=node.parentNode;
}
return node;
}
}
}
return null;
},hasAncestorElement:function(_4a0){
return this.getAncestorElement.apply(this,arguments)!=null;
},getAncestorElement:function(_4a1){
var node=this.getSelectedElement()||this.getParentElement();
return this.getParentOfType(node,arguments);
},isTag:function(node,tags){
if(node&&node.tagName){
var _4a2=node.tagName.toLowerCase();
for(var i=0;i<tags.length;i++){
var _4a3=String(tags[i]).toLowerCase();
if(_4a2==_4a3){
return _4a3;
}
}
}
return "";
},getParentOfType:function(node,tags){
while(node){
if(this.isTag(node,tags).length){
return node;
}
node=node.parentNode;
}
return null;
},collapse:function(_4a4){
if(window.getSelection){
var _4a5=dojo.global.getSelection();
if(_4a5.removeAllRanges){
if(_4a4){
_4a5.collapseToStart();
}else{
_4a5.collapseToEnd();
}
}else{
_4a5.collapse(_4a4);
}
}else{
if(dojo.isIE){
var _4a6=dojo.doc.selection.createRange();
_4a6.collapse(_4a4);
_4a6.select();
}
}
},remove:function(){
var sel=dojo.doc.selection;
if(dojo.isIE){
if(sel.type.toLowerCase()!="none"){
sel.clear();
}
return sel;
}else{
sel=dojo.global.getSelection();
sel.deleteFromDocument();
return sel;
}
},selectElementChildren:function(_4a7,_4a8){
var win=dojo.global;
var doc=dojo.doc;
var _4a9;
_4a7=dojo.byId(_4a7);
if(doc.selection&&dojo.isIE&&dojo.body().createTextRange){
_4a9=_4a7.ownerDocument.body.createTextRange();
_4a9.moveToElementText(_4a7);
if(!_4a8){
try{
_4a9.select();
}
catch(e){
}
}
}else{
if(win.getSelection){
var _4aa=dojo.global.getSelection();
if(_4aa.setBaseAndExtent){
_4aa.setBaseAndExtent(_4a7,0,_4a7,_4a7.innerText.length-1);
}else{
if(dojo.isOpera){
if(_4aa.rangeCount){
_4a9=_4aa.getRangeAt(0);
}else{
_4a9=doc.createRange();
}
_4a9.setStart(_4a7,0);
_4a9.setEnd(_4a7,(_4a7.nodeType==3)?_4a7.length:_4a7.childNodes.length);
_4aa.addRange(_4a9);
}else{
if(_4aa.selectAllChildren){
_4aa.selectAllChildren(_4a7);
}
}
}
}
}
},selectElement:function(_4ab,_4ac){
var _4ad;
var doc=dojo.doc;
var win=dojo.global;
_4ab=dojo.byId(_4ab);
if(dojo.isIE&&dojo.body().createTextRange){
try{
_4ad=dojo.body().createControlRange();
_4ad.addElement(_4ab);
if(!_4ac){
_4ad.select();
}
}
catch(e){
this.selectElementChildren(_4ab,_4ac);
}
}else{
if(dojo.global.getSelection){
var _4ae=win.getSelection();
_4ad=doc.createRange();
if(_4ae.removeAllRanges){
if(dojo.isOpera){
if(_4ae.getRangeAt(0)){
_4ad=_4ae.getRangeAt(0);
}
}
_4ad.selectNode(_4ab);
_4ae.removeAllRanges();
_4ae.addRange(_4ad);
}
}
}
},inSelection:function(node){
if(node){
var _4af;
var doc=dojo.doc;
var _4b0;
if(dojo.global.getSelection){
var sel=dojo.global.getSelection();
if(sel&&sel.rangeCount>0){
_4b0=sel.getRangeAt(0);
}
if(_4b0&&_4b0.compareBoundaryPoints&&doc.createRange){
try{
_4af=doc.createRange();
_4af.setStart(node,0);
if(_4b0.compareBoundaryPoints(_4b0.START_TO_END,_4af)===1){
return true;
}
}
catch(e){
}
}
}else{
if(doc.selection){
_4b0=doc.selection.createRange();
try{
_4af=node.ownerDocument.body.createControlRange();
if(_4af){
_4af.addElement(node);
}
}
catch(e1){
try{
_4af=node.ownerDocument.body.createTextRange();
_4af.moveToElementText(node);
}
catch(e2){
}
}
if(_4b0&&_4af){
if(_4b0.compareEndPoints("EndToStart",_4af)===1){
return true;
}
}
}
}
}
return false;
}});
}
if(!dojo._hasResource["dijit._editor.range"]){
dojo._hasResource["dijit._editor.range"]=true;
dojo.provide("dijit._editor.range");
dijit.range={};
dijit.range.getIndex=function(node,_4b1){
var ret=[],retR=[];
var stop=_4b1;
var _4b2=node;
var _4b3,n;
while(node!=stop){
var i=0;
_4b3=node.parentNode;
while((n=_4b3.childNodes[i++])){
if(n===node){
--i;
break;
}
}
if(i>=_4b3.childNodes.length){
dojo.debug("Error finding index of a node in dijit.range.getIndex");
}
ret.unshift(i);
retR.unshift(i-_4b3.childNodes.length);
node=_4b3;
}
if(ret.length>0&&_4b2.nodeType==3){
n=_4b2.previousSibling;
while(n&&n.nodeType==3){
ret[ret.length-1]--;
n=n.previousSibling;
}
n=_4b2.nextSibling;
while(n&&n.nodeType==3){
retR[retR.length-1]++;
n=n.nextSibling;
}
}
return {o:ret,r:retR};
};
dijit.range.getNode=function(_4b4,_4b5){
if(!dojo.isArray(_4b4)||_4b4.length==0){
return _4b5;
}
var node=_4b5;
dojo.every(_4b4,function(i){
if(i>=0&&i<node.childNodes.length){
node=node.childNodes[i];
}else{
node=null;
console.debug("Error: can not find node with index",_4b4,"under parent node",_4b5);
return false;
}
return true;
});
return node;
};
dijit.range.getCommonAncestor=function(n1,n2){
var _4b6=function(n){
var as=[];
while(n){
as.unshift(n);
if(n.nodeName!="BODY"){
n=n.parentNode;
}else{
break;
}
}
return as;
};
var n1as=_4b6(n1);
var n2as=_4b6(n2);
var m=Math.min(n1as.length,n2as.length);
var com=n1as[0];
for(var i=1;i<m;i++){
if(n1as[i]===n2as[i]){
com=n1as[i];
}else{
break;
}
}
return com;
};
dijit.range.getAncestor=function(node,_4b7,root){
root=root||node.ownerDocument.body;
while(node&&node!==root){
var name=node.nodeName.toUpperCase();
if(_4b7.test(name)){
return node;
}
node=node.parentNode;
}
return null;
};
dijit.range.BlockTagNames=/^(?:P|DIV|H1|H2|H3|H4|H5|H6|ADDRESS|PRE|OL|UL|LI|DT|DE)$/;
dijit.range.getBlockAncestor=function(node,_4b8,root){
root=root||node.ownerDocument.body;
_4b8=_4b8||dijit.range.BlockTagNames;
var _4b9=null,_4ba;
while(node&&node!==root){
var name=node.nodeName.toUpperCase();
if(!_4b9&&_4b8.test(name)){
_4b9=node;
}
if(!_4ba&&(/^(?:BODY|TD|TH|CAPTION)$/).test(name)){
_4ba=node;
}
node=node.parentNode;
}
return {blockNode:_4b9,blockContainer:_4ba||node.ownerDocument.body};
};
dijit.range.atBeginningOfContainer=function(_4bb,node,_4bc){
var _4bd=false;
var _4be=(_4bc==0);
if(!_4be&&node.nodeType==3){
if(/^[\s\xA0]+$/.test(node.nodeValue.substr(0,_4bc))){
_4be=true;
}
}
if(_4be){
var _4bf=node;
_4bd=true;
while(_4bf&&_4bf!==_4bb){
if(_4bf.previousSibling){
_4bd=false;
break;
}
_4bf=_4bf.parentNode;
}
}
return _4bd;
};
dijit.range.atEndOfContainer=function(_4c0,node,_4c1){
var _4c2=false;
var _4c3=(_4c1==(node.length||node.childNodes.length));
if(!_4c3&&node.nodeType==3){
if(/^[\s\xA0]+$/.test(node.nodeValue.substr(_4c1))){
_4c3=true;
}
}
if(_4c3){
var _4c4=node;
_4c2=true;
while(_4c4&&_4c4!==_4c0){
if(_4c4.nextSibling){
_4c2=false;
break;
}
_4c4=_4c4.parentNode;
}
}
return _4c2;
};
dijit.range.adjacentNoneTextNode=function(_4c5,next){
var node=_4c5;
var len=(0-_4c5.length)||0;
var prop=next?"nextSibling":"previousSibling";
while(node){
if(node.nodeType!=3){
break;
}
len+=node.length;
node=node[prop];
}
return [node,len];
};
dijit.range._w3c=Boolean(window["getSelection"]);
dijit.range.create=function(win){
if(dijit.range._w3c){
return (win||dojo.global).document.createRange();
}else{
return new dijit.range.W3CRange;
}
};
dijit.range.getSelection=function(win,_4c6){
if(dijit.range._w3c){
return win.getSelection();
}else{
var s=new dijit.range.ie.selection(win);
if(!_4c6){
s._getCurrentSelection();
}
return s;
}
};
if(!dijit.range._w3c){
dijit.range.ie={cachedSelection:{},selection:function(win){
this._ranges=[];
this.addRange=function(r,_4c7){
this._ranges.push(r);
if(!_4c7){
r._select();
}
this.rangeCount=this._ranges.length;
};
this.removeAllRanges=function(){
this._ranges=[];
this.rangeCount=0;
};
var _4c8=function(){
var r=win.document.selection.createRange();
var type=win.document.selection.type.toUpperCase();
if(type=="CONTROL"){
return new dijit.range.W3CRange(dijit.range.ie.decomposeControlRange(r));
}else{
return new dijit.range.W3CRange(dijit.range.ie.decomposeTextRange(r));
}
};
this.getRangeAt=function(i){
return this._ranges[i];
};
this._getCurrentSelection=function(){
this.removeAllRanges();
var r=_4c8();
if(r){
this.addRange(r,true);
}
};
},decomposeControlRange:function(_4c9){
var _4ca=_4c9.item(0),_4cb=_4c9.item(_4c9.length-1);
var _4cc=_4ca.parentNode,_4cd=_4cb.parentNode;
var _4ce=dijit.range.getIndex(_4ca,_4cc).o;
var _4cf=dijit.range.getIndex(_4cb,_4cd).o+1;
return [_4cc,_4ce,_4cd,_4cf];
},getEndPoint:function(_4d0,end){
var _4d1=_4d0.duplicate();
_4d1.collapse(!end);
var _4d2="EndTo"+(end?"End":"Start");
var _4d3=_4d1.parentElement();
var _4d4,_4d5,_4d6;
if(_4d3.childNodes.length>0){
dojo.every(_4d3.childNodes,function(node,i){
var _4d7;
if(node.nodeType!=3){
_4d1.moveToElementText(node);
if(_4d1.compareEndPoints(_4d2,_4d0)>0){
if(_4d6&&_4d6.nodeType==3){
_4d4=_4d6;
_4d7=true;
}else{
_4d4=_4d3;
_4d5=i;
return false;
}
}else{
if(i==_4d3.childNodes.length-1){
_4d4=_4d3;
_4d5=_4d3.childNodes.length;
return false;
}
}
}else{
if(i==_4d3.childNodes.length-1){
_4d4=node;
_4d7=true;
}
}
if(_4d7&&_4d4){
var _4d8=dijit.range.adjacentNoneTextNode(_4d4)[0];
if(_4d8){
_4d4=_4d8.nextSibling;
}else{
_4d4=_4d3.firstChild;
}
var _4d9=dijit.range.adjacentNoneTextNode(_4d4);
_4d8=_4d9[0];
var _4da=_4d9[1];
if(_4d8){
_4d1.moveToElementText(_4d8);
_4d1.collapse(false);
}else{
_4d1.moveToElementText(_4d3);
}
_4d1.setEndPoint(_4d2,_4d0);
_4d5=_4d1.text.length-_4da;
return false;
}
_4d6=node;
return true;
});
}else{
_4d4=_4d3;
_4d5=0;
}
if(!end&&_4d4.nodeType==1&&_4d5==_4d4.childNodes.length){
var _4db=_4d4.nextSibling;
if(_4db&&_4db.nodeType==3){
_4d4=_4db;
_4d5=0;
}
}
return [_4d4,_4d5];
},setEndPoint:function(_4dc,_4dd,_4de){
var _4df=_4dc.duplicate(),node,len;
if(_4dd.nodeType!=3){
if(_4de>0){
node=_4dd.childNodes[_4de-1];
if(node.nodeType==3){
_4dd=node;
_4de=node.length;
}else{
if(node.nextSibling&&node.nextSibling.nodeType==3){
_4dd=node.nextSibling;
_4de=0;
}else{
_4df.moveToElementText(node.nextSibling?node:_4dd);
var _4e0=node.parentNode;
var _4e1=_4e0.insertBefore(node.ownerDocument.createTextNode(" "),node.nextSibling);
_4df.collapse(false);
_4e0.removeChild(_4e1);
}
}
}else{
_4df.moveToElementText(_4dd);
_4df.collapse(true);
}
}
if(_4dd.nodeType==3){
var _4e2=dijit.range.adjacentNoneTextNode(_4dd);
var _4e3=_4e2[0];
len=_4e2[1];
if(_4e3){
_4df.moveToElementText(_4e3);
_4df.collapse(false);
if(_4e3.contentEditable!="inherit"){
len++;
}
}else{
_4df.moveToElementText(_4dd.parentNode);
_4df.collapse(true);
}
_4de+=len;
if(_4de>0){
if(_4df.move("character",_4de)!=_4de){
console.error("Error when moving!");
}
}
}
return _4df;
},decomposeTextRange:function(_4e4){
var _4e5=dijit.range.ie.getEndPoint(_4e4);
var _4e6=_4e5[0],_4e7=_4e5[1];
var _4e8=_4e5[0],_4e9=_4e5[1];
if(_4e4.htmlText.length){
if(_4e4.htmlText==_4e4.text){
_4e9=_4e7+_4e4.text.length;
}else{
_4e5=dijit.range.ie.getEndPoint(_4e4,true);
_4e8=_4e5[0],_4e9=_4e5[1];
}
}
return [_4e6,_4e7,_4e8,_4e9];
},setRange:function(_4ea,_4eb,_4ec,_4ed,_4ee,_4ef){
var _4f0=dijit.range.ie.setEndPoint(_4ea,_4eb,_4ec);
_4ea.setEndPoint("StartToStart",_4f0);
if(!_4ef){
var end=dijit.range.ie.setEndPoint(_4ea,_4ed,_4ee);
}
_4ea.setEndPoint("EndToEnd",end||_4f0);
return _4ea;
}};
dojo.declare("dijit.range.W3CRange",null,{constructor:function(){
if(arguments.length>0){
this.setStart(arguments[0][0],arguments[0][1]);
this.setEnd(arguments[0][2],arguments[0][3]);
}else{
this.commonAncestorContainer=null;
this.startContainer=null;
this.startOffset=0;
this.endContainer=null;
this.endOffset=0;
this.collapsed=true;
}
},_updateInternal:function(){
if(this.startContainer!==this.endContainer){
this.commonAncestorContainer=dijit.range.getCommonAncestor(this.startContainer,this.endContainer);
}else{
this.commonAncestorContainer=this.startContainer;
}
this.collapsed=(this.startContainer===this.endContainer)&&(this.startOffset==this.endOffset);
},setStart:function(node,_4f1){
_4f1=parseInt(_4f1);
if(this.startContainer===node&&this.startOffset==_4f1){
return;
}
delete this._cachedBookmark;
this.startContainer=node;
this.startOffset=_4f1;
if(!this.endContainer){
this.setEnd(node,_4f1);
}else{
this._updateInternal();
}
},setEnd:function(node,_4f2){
_4f2=parseInt(_4f2);
if(this.endContainer===node&&this.endOffset==_4f2){
return;
}
delete this._cachedBookmark;
this.endContainer=node;
this.endOffset=_4f2;
if(!this.startContainer){
this.setStart(node,_4f2);
}else{
this._updateInternal();
}
},setStartAfter:function(node,_4f3){
this._setPoint("setStart",node,_4f3,1);
},setStartBefore:function(node,_4f4){
this._setPoint("setStart",node,_4f4,0);
},setEndAfter:function(node,_4f5){
this._setPoint("setEnd",node,_4f5,1);
},setEndBefore:function(node,_4f6){
this._setPoint("setEnd",node,_4f6,0);
},_setPoint:function(what,node,_4f7,ext){
var _4f8=dijit.range.getIndex(node,node.parentNode).o;
this[what](node.parentNode,_4f8.pop()+ext);
},_getIERange:function(){
var r=(this._body||this.endContainer.ownerDocument.body).createTextRange();
dijit.range.ie.setRange(r,this.startContainer,this.startOffset,this.endContainer,this.endOffset,this.collapsed);
return r;
},getBookmark:function(body){
this._getIERange();
return this._cachedBookmark;
},_select:function(){
var r=this._getIERange();
r.select();
},deleteContents:function(){
var r=this._getIERange();
r.pasteHTML("");
this.endContainer=this.startContainer;
this.endOffset=this.startOffset;
this.collapsed=true;
},cloneRange:function(){
var r=new dijit.range.W3CRange([this.startContainer,this.startOffset,this.endContainer,this.endOffset]);
r._body=this._body;
return r;
},detach:function(){
this._body=null;
this.commonAncestorContainer=null;
this.startContainer=null;
this.startOffset=0;
this.endContainer=null;
this.endOffset=0;
this.collapsed=true;
}});
}
}
if(!dojo._hasResource["dijit._editor.html"]){
dojo._hasResource["dijit._editor.html"]=true;
dojo.provide("dijit._editor.html");
dijit._editor.escapeXml=function(str,_4f9){
str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");
if(!_4f9){
str=str.replace(/'/gm,"&#39;");
}
return str;
};
dijit._editor.getNodeHtml=function(node){
var _4fa;
switch(node.nodeType){
case 1:
var _4fb=node.nodeName.toLowerCase();
if(_4fb.charAt(0)=="/"){
return "";
}
_4fa="<"+_4fb;
var _4fc=[];
var attr;
if(dojo.isIE&&node.outerHTML){
var s=node.outerHTML;
s=s.substr(0,s.indexOf(">")).replace(/(['"])[^"']*\1/g,"");
var reg=/(\b\w+)\s?=/g;
var m,key;
while((m=reg.exec(s))){
key=m[1];
if(key.substr(0,3)!="_dj"){
if(key=="src"||key=="href"){
if(node.getAttribute("_djrealurl")){
_4fc.push([key,node.getAttribute("_djrealurl")]);
continue;
}
}
var val,_4fd;
switch(key){
case "style":
val=node.style.cssText.toLowerCase();
break;
case "class":
val=node.className;
break;
case "width":
if(_4fb==="img"){
_4fd=/width=(\S+)/i.exec(s);
if(_4fd){
val=_4fd[1];
}
break;
}
case "height":
if(_4fb==="img"){
_4fd=/height=(\S+)/i.exec(s);
if(_4fd){
val=_4fd[1];
}
break;
}
default:
val=node.getAttribute(key);
}
if(val!=null){
_4fc.push([key,val.toString()]);
}
}
}
}else{
var i=0;
while((attr=node.attributes[i++])){
var n=attr.name;
if(n.substr(0,3)!="_dj"){
var v=attr.value;
if(n=="src"||n=="href"){
if(node.getAttribute("_djrealurl")){
v=node.getAttribute("_djrealurl");
}
}
_4fc.push([n,v]);
}
}
}
_4fc.sort(function(a,b){
return a[0]<b[0]?-1:(a[0]==b[0]?0:1);
});
var j=0;
while((attr=_4fc[j++])){
_4fa+=" "+attr[0]+"=\""+(dojo.isString(attr[1])?dijit._editor.escapeXml(attr[1],true):attr[1])+"\"";
}
if(_4fb==="script"){
_4fa+=">"+node.innerHTML+"</"+_4fb+">";
}else{
if(node.childNodes.length){
_4fa+=">"+dijit._editor.getChildrenHtml(node)+"</"+_4fb+">";
}else{
switch(_4fb){
case "br":
case "hr":
case "img":
case "input":
case "base":
case "meta":
case "area":
case "basefont":
_4fa+=" />";
break;
default:
_4fa+="></"+_4fb+">";
}
}
}
break;
case 4:
case 3:
_4fa=dijit._editor.escapeXml(node.nodeValue,true);
break;
case 8:
_4fa="<!--"+dijit._editor.escapeXml(node.nodeValue,true)+"-->";
break;
default:
_4fa="<!-- Element not recognized - Type: "+node.nodeType+" Name: "+node.nodeName+"-->";
}
return _4fa;
};
dijit._editor.getChildrenHtml=function(dom){
var out="";
if(!dom){
return out;
}
var _4fe=dom["childNodes"]||dom;
var _4ff=!dojo.isIE||_4fe!==dom;
var node,i=0;
while((node=_4fe[i++])){
if(!_4ff||node.parentNode==dom){
out+=dijit._editor.getNodeHtml(node);
}
}
return out;
};
}
if(!dojo._hasResource["dijit._editor.RichText"]){
dojo._hasResource["dijit._editor.RichText"]=true;
dojo.provide("dijit._editor.RichText");
if(!dojo.config["useXDomain"]||dojo.config["allowXdRichTextSave"]){
if(dojo._postLoad){
(function(){
var _500=dojo.doc.createElement("textarea");
_500.id=dijit._scopeName+"._editor.RichText.savedContent";
dojo.style(_500,{display:"none",position:"absolute",top:"-100px",height:"3px",width:"3px"});
dojo.body().appendChild(_500);
})();
}else{
try{
dojo.doc.write("<textarea id=\""+dijit._scopeName+"._editor.RichText.savedContent\" "+"style=\"display:none;position:absolute;top:-100px;left:-100px;height:3px;width:3px;overflow:hidden;\"></textarea>");
}
catch(e){
}
}
}
dojo.declare("dijit._editor.RichText",dijit._Widget,{constructor:function(_501){
this.contentPreFilters=[];
this.contentPostFilters=[];
this.contentDomPreFilters=[];
this.contentDomPostFilters=[];
this.editingAreaStyleSheets=[];
this.events=[].concat(this.events);
this._keyHandlers={};
this.contentPreFilters.push(dojo.hitch(this,"_preFixUrlAttributes"));
if(dojo.isMoz){
this.contentPreFilters.push(this._normalizeFontStyle);
this.contentPostFilters.push(this._removeMozBogus);
}
if(dojo.isWebKit){
this.contentPreFilters.push(this._removeWebkitBogus);
this.contentPostFilters.push(this._removeWebkitBogus);
}
if(dojo.isIE){
this.contentPostFilters.push(this._normalizeFontStyle);
}
this.onLoadDeferred=new dojo.Deferred();
},inheritWidth:false,focusOnLoad:false,name:"",styleSheets:"",_content:"",height:"300px",minHeight:"1em",isClosed:true,isLoaded:false,_SEPARATOR:"@@**%%__RICHTEXTBOUNDRY__%%**@@",onLoadDeferred:null,isTabIndent:false,disableSpellCheck:false,postCreate:function(){
if("textarea"==this.domNode.tagName.toLowerCase()){
console.warn("RichText should not be used with the TEXTAREA tag.  See dijit._editor.RichText docs.");
}
dojo.publish(dijit._scopeName+"._editor.RichText::init",[this]);
this.open();
this.setupDefaultShortcuts();
},setupDefaultShortcuts:function(){
var exec=dojo.hitch(this,function(cmd,arg){
return function(){
return !this.execCommand(cmd,arg);
};
});
var _502={b:exec("bold"),i:exec("italic"),u:exec("underline"),a:exec("selectall"),s:function(){
this.save(true);
},m:function(){
this.isTabIndent=!this.isTabIndent;
},"1":exec("formatblock","h1"),"2":exec("formatblock","h2"),"3":exec("formatblock","h3"),"4":exec("formatblock","h4"),"\\":exec("insertunorderedlist")};
if(!dojo.isIE){
_502.Z=exec("redo");
}
for(var key in _502){
this.addKeyHandler(key,true,false,_502[key]);
}
},events:["onKeyPress","onKeyDown","onKeyUp","onClick"],captureEvents:[],_editorCommandsLocalized:false,_localizeEditorCommands:function(){
if(this._editorCommandsLocalized){
return;
}
this._editorCommandsLocalized=true;
var _503=["div","p","pre","h1","h2","h3","h4","h5","h6","ol","ul","address"];
var _504="",_505,i=0;
while((_505=_503[i++])){
if(_505.charAt(1)!="l"){
_504+="<"+_505+"><span>content</span></"+_505+"><br/>";
}else{
_504+="<"+_505+"><li>content</li></"+_505+"><br/>";
}
}
var div=dojo.doc.createElement("div");
dojo.style(div,{position:"absolute",top:"-2000px"});
dojo.doc.body.appendChild(div);
div.innerHTML=_504;
var node=div.firstChild;
while(node){
dijit._editor.selection.selectElement(node.firstChild);
dojo.withGlobal(this.window,"selectElement",dijit._editor.selection,[node.firstChild]);
var _506=node.tagName.toLowerCase();
this._local2NativeFormatNames[_506]=document.queryCommandValue("formatblock");
this._native2LocalFormatNames[this._local2NativeFormatNames[_506]]=_506;
node=node.nextSibling.nextSibling;
}
dojo.body().removeChild(div);
},open:function(_507){
if(!this.onLoadDeferred||this.onLoadDeferred.fired>=0){
this.onLoadDeferred=new dojo.Deferred();
}
if(!this.isClosed){
this.close();
}
dojo.publish(dijit._scopeName+"._editor.RichText::open",[this]);
this._content="";
if(arguments.length==1&&_507.nodeName){
this.domNode=_507;
}
var dn=this.domNode;
var html;
if(dn.nodeName&&dn.nodeName.toLowerCase()=="textarea"){
var ta=(this.textarea=dn);
this.name=ta.name;
html=ta.value;
dn=this.domNode=dojo.doc.createElement("div");
dn.setAttribute("widgetId",this.id);
ta.removeAttribute("widgetId");
dn.cssText=ta.cssText;
dn.className+=" "+ta.className;
dojo.place(dn,ta,"before");
var _508=dojo.hitch(this,function(){
dojo.style(ta,{display:"block",position:"absolute",top:"-1000px"});
if(dojo.isIE){
var s=ta.style;
this.__overflow=s.overflow;
s.overflow="hidden";
}
});
if(dojo.isIE){
setTimeout(_508,10);
}else{
_508();
}
if(ta.form){
dojo.connect(ta.form,"onsubmit",this,function(){
ta.value=this.getValue();
});
}
}else{
html=dijit._editor.getChildrenHtml(dn);
dn.innerHTML="";
}
var _509=dojo.contentBox(dn);
this._oldHeight=_509.h;
this._oldWidth=_509.w;
this.savedContent=html;
if(dn.nodeName&&dn.nodeName=="LI"){
dn.innerHTML=" <br>";
}
this.header=dn.ownerDocument.createElement("div");
dn.appendChild(this.header);
this.editingArea=dn.ownerDocument.createElement("div");
dn.appendChild(this.editingArea);
this.footer=dn.ownerDocument.createElement("div");
dn.appendChild(this.footer);
if(this.name!==""&&(!dojo.config["useXDomain"]||dojo.config["allowXdRichTextSave"])){
var _50a=dojo.byId(dijit._scopeName+"._editor.RichText.savedContent");
if(_50a.value!==""){
var _50b=_50a.value.split(this._SEPARATOR),i=0,dat;
while((dat=_50b[i++])){
var data=dat.split(":");
if(data[0]==this.name){
html=data[1];
_50b.splice(i,1);
break;
}
}
}
dojo.addOnUnload(dojo.hitch(this,"_saveContent"));
}
this.isClosed=false;
var ifr=(this.editorObject=this.iframe=dojo.doc.createElement("iframe"));
ifr.id=this.id+"_iframe";
this._iframeSrc=this._getIframeDocTxt();
ifr.style.border="none";
ifr.style.width="100%";
if(this._layoutMode){
ifr.style.height="100%";
}else{
if(dojo.isIE>=7){
if(this.height){
ifr.style.height=this.height;
}
if(this.minHeight){
ifr.style.minHeight=this.minHeight;
}
}else{
ifr.style.height=this.height?this.height:this.minHeight;
}
}
ifr.frameBorder=0;
ifr._loadFunc=dojo.hitch(this,function(win){
this.window=win;
this.document=this.window.document;
if(dojo.isIE){
this._localizeEditorCommands();
}
this.onLoad(html);
this.savedContent=this.getValue(true);
});
var s="javascript:parent."+dijit._scopeName+".byId(\""+this.id+"\")._iframeSrc";
ifr.setAttribute("src",s);
this.editingArea.appendChild(ifr);
if(dojo.isSafari){
setTimeout(function(){
ifr.setAttribute("src",s);
},0);
}
if(dn.nodeName=="LI"){
dn.lastChild.style.marginTop="-1.2em";
}
dojo.addClass(this.domNode,"RichTextEditable");
},_local2NativeFormatNames:{},_native2LocalFormatNames:{},_getIframeDocTxt:function(){
var _50c=dojo.getComputedStyle(this.domNode);
var html="";
if(dojo.isIE||(!this.height&&!dojo.isMoz)){
html="<div></div>";
}else{
if(dojo.isMoz){
this._cursorToStart=true;
html="&nbsp;";
}
}
var font=[_50c.fontWeight,_50c.fontSize,_50c.fontFamily].join(" ");
var _50d=_50c.lineHeight;
if(_50d.indexOf("px")>=0){
_50d=parseFloat(_50d)/parseFloat(_50c.fontSize);
}else{
if(_50d.indexOf("em")>=0){
_50d=parseFloat(_50d);
}else{
_50d="normal";
}
}
var _50e="";
this.style.replace(/(^|;)(line-|font-?)[^;]+/g,function(_50f){
_50e+=_50f.replace(/^;/g,"")+";";
});
var _510=dojo.query("label[for=\""+this.id+"\"]");
return [this.isLeftToRight()?"<html><head>":"<html dir='rtl'><head>",(dojo.isMoz&&_510.length?"<title>"+_510[0].innerHTML+"</title>":""),"<meta http-equiv='Content-Type' content='text/html'>","<style>","body,html {","\tbackground:transparent;","\tpadding: 1px 0 0 0;","\tmargin: -1px 0 0 0;",(dojo.isWebKit?"\twidth: 100%;":""),(dojo.isWebKit?"\theight: 100%;":""),"}","body{","\ttop:0px; left:0px; right:0px;","\tfont:",font,";",((this.height||dojo.isOpera)?"":"position: fixed;"),"\tmin-height:",this.minHeight,";","\tline-height:",_50d,"}","p{ margin: 1em 0; }",(this.height?"":"body,html{overflow-y:hidden;/*for IE*/} body > div {overflow-x:auto;/*FF:horizontal scrollbar*/ overflow-y:hidden;/*safari*/ min-height:"+this.minHeight+";/*safari*/}"),"li > ul:-moz-first-node, li > ol:-moz-first-node{ padding-top: 1.2em; } ","li{ min-height:1.2em; }","</style>",this._applyEditingAreaStyleSheets(),"</head><body onload='frameElement._loadFunc(window,document)' style='"+_50e+"'>",html,"</body></html>"].join("");
},_applyEditingAreaStyleSheets:function(){
var _511=[];
if(this.styleSheets){
_511=this.styleSheets.split(";");
this.styleSheets="";
}
_511=_511.concat(this.editingAreaStyleSheets);
this.editingAreaStyleSheets=[];
var text="",i=0,url;
while((url=_511[i++])){
var _512=(new dojo._Url(dojo.global.location,url)).toString();
this.editingAreaStyleSheets.push(_512);
text+="<link rel=\"stylesheet\" type=\"text/css\" href=\""+_512+"\"/>";
}
return text;
},addStyleSheet:function(uri){
var url=uri.toString();
if(url.charAt(0)=="."||(url.charAt(0)!="/"&&!uri.host)){
url=(new dojo._Url(dojo.global.location,url)).toString();
}
if(dojo.indexOf(this.editingAreaStyleSheets,url)>-1){
return;
}
this.editingAreaStyleSheets.push(url);
this.onLoadDeferred.addCallback(dojo.hitch(function(){
if(this.document.createStyleSheet){
this.document.createStyleSheet(url);
}else{
var head=this.document.getElementsByTagName("head")[0];
var _513=this.document.createElement("link");
_513.rel="stylesheet";
_513.type="text/css";
_513.href=url;
head.appendChild(_513);
}
}));
},removeStyleSheet:function(uri){
var url=uri.toString();
if(url.charAt(0)=="."||(url.charAt(0)!="/"&&!uri.host)){
url=(new dojo._Url(dojo.global.location,url)).toString();
}
var _514=dojo.indexOf(this.editingAreaStyleSheets,url);
if(_514==-1){
return;
}
delete this.editingAreaStyleSheets[_514];
dojo.withGlobal(this.window,"query",dojo,["link:[href=\""+url+"\"]"]).orphan();
},disabled:false,_mozSettingProps:{"styleWithCSS":false},_setDisabledAttr:function(_515){
this.disabled=_515;
if(!this.isLoaded){
return;
}
_515=!!_515;
if(dojo.isIE||dojo.isWebKit||dojo.isOpera){
var _516=dojo.isIE&&(this.isLoaded||!this.focusOnLoad);
if(_516){
this.editNode.unselectable="on";
}
this.editNode.contentEditable=!_515;
if(_516){
var _517=this;
setTimeout(function(){
_517.editNode.unselectable="off";
},0);
}
}else{
try{
this.document.designMode=(_515?"off":"on");
}
catch(e){
return;
}
if(!_515&&this._mozSettingProps){
var ps=this._mozSettingProps;
for(var n in ps){
if(ps.hasOwnProperty(n)){
try{
this.document.execCommand(n,false,ps[n]);
}
catch(e2){
}
}
}
}
}
this._disabledOK=true;
},onLoad:function(html){
if(!this.window.__registeredWindow){
this.window.__registeredWindow=true;
this._iframeRegHandle=dijit.registerIframe(this.iframe);
}
if(!dojo.isIE&&(this.height||dojo.isMoz)){
this.editNode=this.document.body;
}else{
this.editNode=this.document.body.firstChild;
var _518=this;
if(dojo.isIE){
var _519=(this.tabStop=dojo.doc.createElement("<div tabIndex=-1>"));
this.editingArea.appendChild(_519);
this.iframe.onfocus=function(){
_518.editNode.setActive();
};
}
}
this.focusNode=this.editNode;
var _51a=this.events.concat(this.captureEvents);
var ap=this.iframe?this.document:this.editNode;
dojo.forEach(_51a,function(item){
this.connect(ap,item.toLowerCase(),item);
},this);
if(dojo.isIE){
this.connect(this.document,"onmousedown","_onIEMouseDown");
this.editNode.style.zoom=1;
}
if(dojo.isWebKit){
this._webkitListener=this.connect(this.document,"onmouseup","onDisplayChanged");
}
if(dojo.isIE){
try{
this.document.execCommand("RespectVisibilityInDesign",true,null);
}
catch(e){
}
}
this.isLoaded=true;
this.attr("disabled",this.disabled);
this.setValue(html);
if(this.onLoadDeferred){
this.onLoadDeferred.callback(true);
}
this.onDisplayChanged();
if(this.focusOnLoad){
dojo.addOnLoad(dojo.hitch(this,function(){
setTimeout(dojo.hitch(this,"focus"),this.updateInterval);
}));
}
},onKeyDown:function(e){
if(e.keyCode===dojo.keys.TAB&&this.isTabIndent){
dojo.stopEvent(e);
if(this.queryCommandEnabled((e.shiftKey?"outdent":"indent"))){
this.execCommand((e.shiftKey?"outdent":"indent"));
}
}
if(dojo.isIE){
if(e.keyCode==dojo.keys.TAB&&!this.isTabIndent){
if(e.shiftKey&&!e.ctrlKey&&!e.altKey){
this.iframe.focus();
}else{
if(!e.shiftKey&&!e.ctrlKey&&!e.altKey){
this.tabStop.focus();
}
}
}else{
if(e.keyCode===dojo.keys.BACKSPACE&&this.document.selection.type==="Control"){
dojo.stopEvent(e);
this.execCommand("delete");
}else{
if((65<=e.keyCode&&e.keyCode<=90)||(e.keyCode>=37&&e.keyCode<=40)){
e.charCode=e.keyCode;
this.onKeyPress(e);
}
}
}
}
return true;
},onKeyUp:function(e){
return;
},setDisabled:function(_51b){
dojo.deprecated("dijit.Editor::setDisabled is deprecated","use dijit.Editor::attr(\"disabled\",boolean) instead",2);
this.attr("disabled",_51b);
},_setValueAttr:function(_51c){
this.setValue(_51c);
},_setDisableSpellCheckAttr:function(_51d){
if(this.document){
dojo.attr(this.document.body,"spellcheck",!_51d);
}else{
this.onLoadDeferred.addCallback(dojo.hitch(this,function(){
dojo.attr(this.document.body,"spellcheck",!_51d);
}));
}
this.disableSpellCheck=_51d;
},onKeyPress:function(e){
var c=(e.keyChar&&e.keyChar.toLowerCase())||e.keyCode,_51e=this._keyHandlers[c],args=arguments;
if(_51e&&!e.altKey){
dojo.some(_51e,function(h){
if(!(h.shift^e.shiftKey)&&!(h.ctrl^e.ctrlKey)){
if(!h.handler.apply(this,args)){
e.preventDefault();
}
return true;
}
},this);
}
if(!this._onKeyHitch){
this._onKeyHitch=dojo.hitch(this,"onKeyPressed");
}
setTimeout(this._onKeyHitch,1);
return true;
},addKeyHandler:function(key,ctrl,_51f,_520){
if(!dojo.isArray(this._keyHandlers[key])){
this._keyHandlers[key]=[];
}
this._keyHandlers[key].push({shift:_51f||false,ctrl:ctrl||false,handler:_520});
},onKeyPressed:function(){
this.onDisplayChanged();
},onClick:function(e){
this.onDisplayChanged(e);
},_onIEMouseDown:function(e){
if(!this._focused&&!this.disabled){
this.focus();
}
},_onBlur:function(e){
this.inherited(arguments);
var _521=this.getValue(true);
if(_521!=this.savedContent){
this.onChange(_521);
this.savedContent=_521;
}
},_onFocus:function(e){
if(!this.disabled){
if(!this._disabledOK){
this.attr("disabled",false);
}
this.inherited(arguments);
}
},blur:function(){
if(!dojo.isIE&&this.window.document.documentElement&&this.window.document.documentElement.focus){
this.window.document.documentElement.focus();
}else{
if(dojo.doc.body.focus){
dojo.doc.body.focus();
}
}
},focus:function(){
if(!dojo.isIE){
dijit.focus(this.iframe);
if(this._cursorToStart){
delete this._cursorToStart;
if(this.editNode.childNodes&&this.editNode.childNodes.length===1&&this.editNode.innerHTML==="&nbsp;"){
this.placeCursorAtStart();
}
}
}else{
if(this.editNode&&this.editNode.focus){
this.iframe.fireEvent("onfocus",document.createEventObject());
}
}
},updateInterval:200,_updateTimer:null,onDisplayChanged:function(e){
if(this._updateTimer){
clearTimeout(this._updateTimer);
}
if(!this._updateHandler){
this._updateHandler=dojo.hitch(this,"onNormalizedDisplayChanged");
}
this._updateTimer=setTimeout(this._updateHandler,this.updateInterval);
},onNormalizedDisplayChanged:function(){
delete this._updateTimer;
},onChange:function(_522){
},_normalizeCommand:function(cmd,_523){
var _524=cmd.toLowerCase();
if(_524=="formatblock"){
if(dojo.isSafari&&_523===undefined){
_524="heading";
}
}else{
if(_524=="hilitecolor"&&!dojo.isMoz){
_524="backcolor";
}
}
return _524;
},_qcaCache:{},queryCommandAvailable:function(_525){
var ca=this._qcaCache[_525];
if(ca!==undefined){
return ca;
}
return (this._qcaCache[_525]=this._queryCommandAvailable(_525));
},_queryCommandAvailable:function(_526){
var ie=1;
var _527=1<<1;
var _528=1<<2;
var _529=1<<3;
var _52a=1<<4;
function _52b(_52c){
return {ie:Boolean(_52c&ie),mozilla:Boolean(_52c&_527),webkit:Boolean(_52c&_528),webkit420:Boolean(_52c&_52a),opera:Boolean(_52c&_529)};
};
var _52d=null;
switch(_526.toLowerCase()){
case "bold":
case "italic":
case "underline":
case "subscript":
case "superscript":
case "fontname":
case "fontsize":
case "forecolor":
case "hilitecolor":
case "justifycenter":
case "justifyfull":
case "justifyleft":
case "justifyright":
case "delete":
case "selectall":
case "toggledir":
_52d=_52b(_527|ie|_528|_529);
break;
case "createlink":
case "unlink":
case "removeformat":
case "inserthorizontalrule":
case "insertimage":
case "insertorderedlist":
case "insertunorderedlist":
case "indent":
case "outdent":
case "formatblock":
case "inserthtml":
case "undo":
case "redo":
case "strikethrough":
case "tabindent":
_52d=_52b(_527|ie|_529|_52a);
break;
case "blockdirltr":
case "blockdirrtl":
case "dirltr":
case "dirrtl":
case "inlinedirltr":
case "inlinedirrtl":
_52d=_52b(ie);
break;
case "cut":
case "copy":
case "paste":
_52d=_52b(ie|_527|_52a);
break;
case "inserttable":
_52d=_52b(_527|ie);
break;
case "insertcell":
case "insertcol":
case "insertrow":
case "deletecells":
case "deletecols":
case "deleterows":
case "mergecells":
case "splitcell":
_52d=_52b(ie|_527);
break;
default:
return false;
}
return (dojo.isIE&&_52d.ie)||(dojo.isMoz&&_52d.mozilla)||(dojo.isWebKit&&_52d.webkit)||(dojo.isWebKit>420&&_52d.webkit420)||(dojo.isOpera&&_52d.opera);
},execCommand:function(_52e,_52f){
var _530;
this.focus();
_52e=this._normalizeCommand(_52e,_52f);
if(_52f!==undefined){
if(_52e=="heading"){
throw new Error("unimplemented");
}else{
if((_52e=="formatblock")&&dojo.isIE){
_52f="<"+_52f+">";
}
}
}
var _531="_"+_52e+"Impl";
if(this[_531]){
_530=this[_531](_52f);
}else{
_52f=arguments.length>1?_52f:null;
if(_52f||_52e!="createlink"){
_530=this.document.execCommand(_52e,false,_52f);
}
}
this.onDisplayChanged();
return _530;
},queryCommandEnabled:function(_532){
if(this.disabled||!this._disabledOK){
return false;
}
_532=this._normalizeCommand(_532);
if(dojo.isMoz||dojo.isWebKit){
if(_532=="unlink"){
return this._sCall("hasAncestorElement",["a"]);
}else{
if(_532=="inserttable"){
return true;
}
}
}
if(dojo.isWebKit){
if(_532=="copy"){
_532="cut";
}else{
if(_532=="paste"){
return true;
}
}
}
var elem=dojo.isIE?this.document.selection.createRange():this.document;
try{
return elem.queryCommandEnabled(_532);
}
catch(e){
return false;
}
},queryCommandState:function(_533){
if(this.disabled||!this._disabledOK){
return false;
}
_533=this._normalizeCommand(_533);
try{
return this.document.queryCommandState(_533);
}
catch(e){
return false;
}
},queryCommandValue:function(_534){
if(this.disabled||!this._disabledOK){
return false;
}
var r;
_534=this._normalizeCommand(_534);
if(dojo.isIE&&_534=="formatblock"){
r=this._native2LocalFormatNames[this.document.queryCommandValue(_534)];
}else{
if(dojo.isMoz&&_534==="hilitecolor"){
var _535;
try{
_535=this.document.queryCommandValue("styleWithCSS");
}
catch(e){
_535=false;
}
this.document.execCommand("styleWithCSS",false,true);
r=this.document.queryCommandValue(_534);
this.document.execCommand("styleWithCSS",false,_535);
}else{
r=this.document.queryCommandValue(_534);
}
}
return r;
},_sCall:function(name,args){
return dojo.withGlobal(this.window,name,dijit._editor.selection,args);
},placeCursorAtStart:function(){
this.focus();
var _536=false;
if(dojo.isMoz){
var _537=this.editNode.firstChild;
while(_537){
if(_537.nodeType==3){
if(_537.nodeValue.replace(/^\s+|\s+$/g,"").length>0){
_536=true;
this._sCall("selectElement",[_537]);
break;
}
}else{
if(_537.nodeType==1){
_536=true;
this._sCall("selectElementChildren",[_537]);
break;
}
}
_537=_537.nextSibling;
}
}else{
_536=true;
this._sCall("selectElementChildren",[this.editNode]);
}
if(_536){
this._sCall("collapse",[true]);
}
},placeCursorAtEnd:function(){
this.focus();
var _538=false;
if(dojo.isMoz){
var last=this.editNode.lastChild;
while(last){
if(last.nodeType==3){
if(last.nodeValue.replace(/^\s+|\s+$/g,"").length>0){
_538=true;
this._sCall("selectElement",[last]);
break;
}
}else{
if(last.nodeType==1){
_538=true;
if(last.lastChild){
this._sCall("selectElement",[last.lastChild]);
}else{
this._sCall("selectElement",[last]);
}
break;
}
}
last=last.previousSibling;
}
}else{
_538=true;
this._sCall("selectElementChildren",[this.editNode]);
}
if(_538){
this._sCall("collapse",[false]);
}
},getValue:function(_539){
if(this.textarea){
if(this.isClosed||!this.isLoaded){
return this.textarea.value;
}
}
return this._postFilterContent(null,_539);
},_getValueAttr:function(){
return this.getValue(true);
},setValue:function(html){
if(!this.isLoaded){
this.onLoadDeferred.addCallback(dojo.hitch(this,function(){
this.setValue(html);
}));
return;
}
if(this.textarea&&(this.isClosed||!this.isLoaded)){
this.textarea.value=html;
}else{
html=this._preFilterContent(html);
var node=this.isClosed?this.domNode:this.editNode;
if(!html&&dojo.isWebKit){
this._cursorToStart=true;
html="&nbsp;";
}
node.innerHTML=html;
this._preDomFilterContent(node);
}
this.onDisplayChanged();
},replaceValue:function(html){
if(this.isClosed){
this.setValue(html);
}else{
if(this.window&&this.window.getSelection&&!dojo.isMoz){
this.setValue(html);
}else{
if(this.window&&this.window.getSelection){
html=this._preFilterContent(html);
this.execCommand("selectall");
if(!html){
this._cursorToStart=true;
html="&nbsp;";
}
this.execCommand("inserthtml",html);
this._preDomFilterContent(this.editNode);
}else{
if(this.document&&this.document.selection){
this.setValue(html);
}
}
}
}
},_preFilterContent:function(html){
var ec=html;
dojo.forEach(this.contentPreFilters,function(ef){
if(ef){
ec=ef(ec);
}
});
return ec;
},_preDomFilterContent:function(dom){
dom=dom||this.editNode;
dojo.forEach(this.contentDomPreFilters,function(ef){
if(ef&&dojo.isFunction(ef)){
ef(dom);
}
},this);
},_postFilterContent:function(dom,_53a){
var ec;
if(!dojo.isString(dom)){
dom=dom||this.editNode;
if(this.contentDomPostFilters.length){
if(_53a){
dom=dojo.clone(dom);
}
dojo.forEach(this.contentDomPostFilters,function(ef){
dom=ef(dom);
});
}
ec=dijit._editor.getChildrenHtml(dom);
}else{
ec=dom;
}
if(!dojo.trim(ec.replace(/^\xA0\xA0*/,"").replace(/\xA0\xA0*$/,"")).length){
ec="";
}
dojo.forEach(this.contentPostFilters,function(ef){
ec=ef(ec);
});
return ec;
},_saveContent:function(e){
var _53b=dojo.byId(dijit._scopeName+"._editor.RichText.savedContent");
if(_53b.value){
_53b.value+=this._SEPARATOR;
}
_53b.value+=this.name+":"+this.getValue(true);
},escapeXml:function(str,_53c){
str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");
if(!_53c){
str=str.replace(/'/gm,"&#39;");
}
return str;
},getNodeHtml:function(node){
dojo.deprecated("dijit.Editor::getNodeHtml is deprecated","use dijit._editor.getNodeHtml instead",2);
return dijit._editor.getNodeHtml(node);
},getNodeChildrenHtml:function(dom){
dojo.deprecated("dijit.Editor::getNodeChildrenHtml is deprecated","use dijit._editor.getChildrenHtml instead",2);
return dijit._editor.getChildrenHtml(dom);
},close:function(save){
if(this.isClosed){
return false;
}
if(!arguments.length){
save=true;
}
this._content=this.getValue();
var _53d=(this.savedContent!=this._content);
if(this.interval){
clearInterval(this.interval);
}
if(this._webkitListener){
this.disconnect(this._webkitListener);
delete this._webkitListener;
}
if(dojo.isIE){
this.iframe.onfocus=null;
}
this.iframe._loadFunc=null;
if(this._iframeRegHandle){
dijit.unregisterIframe(this._iframeRegHandle);
delete this._iframeRegHandle;
}
if(this.textarea){
var s=this.textarea.style;
s.position="";
s.left=s.top="";
if(dojo.isIE){
s.overflow=this.__overflow;
this.__overflow=null;
}
this.textarea.value=save?this._content:this.savedContent;
dojo.destroy(this.domNode);
this.domNode=this.textarea;
}else{
this.domNode.innerHTML=save?this._content:this.savedContent;
}
delete this.iframe;
dojo.removeClass(this.domNode,"RichTextEditable");
this.isClosed=true;
this.isLoaded=false;
delete this.editNode;
delete this.focusNode;
if(this.window&&this.window._frameElement){
this.window._frameElement=null;
}
this.window=null;
this.document=null;
this.editingArea=null;
this.editorObject=null;
return _53d;
},destroy:function(){
if(!this.isClosed){
this.close(false);
}
this.inherited(arguments);
},_removeMozBogus:function(html){
return html.replace(/\stype="_moz"/gi,"").replace(/\s_moz_dirty=""/gi,"").replace(/_moz_resizing="(true|false)"/gi,"");
},_removeWebkitBogus:function(html){
html=html.replace(/\sclass="webkit-block-placeholder"/gi,"");
html=html.replace(/\sclass="apple-style-span"/gi,"");
return html;
},_normalizeFontStyle:function(html){
return html.replace(/<(\/)?strong([ \>])/gi,"<$1b$2").replace(/<(\/)?em([ \>])/gi,"<$1i$2");
},_preFixUrlAttributes:function(html){
return html.replace(/(?:(<a(?=\s).*?\shref=)("|')(.*?)\2)|(?:(<a\s.*?href=)([^"'][^ >]+))/gi,"$1$4$2$3$5$2 _djrealurl=$2$3$5$2").replace(/(?:(<img(?=\s).*?\ssrc=)("|')(.*?)\2)|(?:(<img\s.*?src=)([^"'][^ >]+))/gi,"$1$4$2$3$5$2 _djrealurl=$2$3$5$2");
},_inserthorizontalruleImpl:function(_53e){
if(dojo.isIE){
return this._inserthtmlImpl("<hr>");
}
return this.document.execCommand("inserthorizontalrule",false,_53e);
},_unlinkImpl:function(_53f){
if((this.queryCommandEnabled("unlink"))&&(dojo.isMoz||dojo.isWebKit)){
var a=this._sCall("getAncestorElement",["a"]);
this._sCall("selectElement",[a]);
return this.document.execCommand("unlink",false,null);
}
return this.document.execCommand("unlink",false,_53f);
},_hilitecolorImpl:function(_540){
var _541;
if(dojo.isMoz){
this.document.execCommand("styleWithCSS",false,true);
_541=this.document.execCommand("hilitecolor",false,_540);
this.document.execCommand("styleWithCSS",false,false);
}else{
_541=this.document.execCommand("hilitecolor",false,_540);
}
return _541;
},_backcolorImpl:function(_542){
if(dojo.isIE){
_542=_542?_542:null;
}
return this.document.execCommand("backcolor",false,_542);
},_forecolorImpl:function(_543){
if(dojo.isIE){
_543=_543?_543:null;
}
return this.document.execCommand("forecolor",false,_543);
},_inserthtmlImpl:function(_544){
_544=this._preFilterContent(_544);
var rv=true;
if(dojo.isIE){
var _545=this.document.selection.createRange();
if(this.document.selection.type.toUpperCase()=="CONTROL"){
var n=_545.item(0);
while(_545.length){
_545.remove(_545.item(0));
}
n.outerHTML=_544;
}else{
_545.pasteHTML(_544);
}
_545.select();
}else{
if(dojo.isMoz&&!_544.length){
this._sCall("remove");
}else{
rv=this.document.execCommand("inserthtml",false,_544);
}
}
return rv;
},getHeaderHeight:function(){
return this._getNodeChildrenHeight(this.header);
},getFooterHeight:function(){
return this._getNodeChildrenHeight(this.footer);
},_getNodeChildrenHeight:function(node){
var h=0;
if(node&&node.childNodes){
var i;
for(i=0;i<node.childNodes.length;i++){
var size=dojo.position(node.childNodes[i]);
h+=size.h;
}
}
return h;
}});
}
if(!dojo._hasResource["dijit._KeyNavContainer"]){
dojo._hasResource["dijit._KeyNavContainer"]=true;
dojo.provide("dijit._KeyNavContainer");
dojo.declare("dijit._KeyNavContainer",dijit._Container,{tabIndex:"0",_keyNavCodes:{},connectKeyNavHandlers:function(_546,_547){
var _548=(this._keyNavCodes={});
var prev=dojo.hitch(this,this.focusPrev);
var next=dojo.hitch(this,this.focusNext);
dojo.forEach(_546,function(code){
_548[code]=prev;
});
dojo.forEach(_547,function(code){
_548[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(_549,_54a){
dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);
this._startupChild(_549);
},focus:function(){
this.focusFirstChild();
},focusFirstChild:function(){
var _54b=this._getFirstFocusableChild();
this.focusChild(_54b);
},focusNext:function(){
var _54c=this._getNextFocusableChild(this.focusedChild,1);
this.focusChild(_54c);
},focusPrev:function(){
var _54d=this._getNextFocusableChild(this.focusedChild,-1);
this.focusChild(_54d,true);
},focusChild:function(_54e,last){
if(this.focusedChild&&_54e!==this.focusedChild){
this._onChildBlur(this.focusedChild);
}
_54e.focus(last?"end":"start");
this.focusedChild=_54e;
},_startupChild:function(_54f){
_54f.attr("tabIndex","-1");
this.connect(_54f,"_onFocus",function(){
_54f.attr("tabIndex",this.tabIndex);
});
this.connect(_54f,"_onBlur",function(){
_54f.attr("tabIndex","-1");
});
},_onContainerFocus:function(evt){
if(evt.target!==this.domNode){
return;
}
this.focusFirstChild();
dojo.attr(this.domNode,"tabIndex","-1");
},_onBlur:function(evt){
if(this.tabIndex){
dojo.attr(this.domNode,"tabIndex",this.tabIndex);
}
this.inherited(arguments);
},_onContainerKeypress:function(evt){
if(evt.ctrlKey||evt.altKey){
return;
}
var func=this._keyNavCodes[evt.charOrCode];
if(func){
func();
dojo.stopEvent(evt);
}
},_onChildBlur:function(_550){
},_getFirstFocusableChild:function(){
return this._getNextFocusableChild(null,1);
},_getNextFocusableChild:function(_551,dir){
if(_551){
_551=this._getSiblingOfChild(_551,dir);
}
var _552=this.getChildren();
for(var i=0;i<_552.length;i++){
if(!_551){
_551=_552[(dir>0)?0:(_552.length-1)];
}
if(_551.isFocusable()){
return _551;
}
_551=this._getSiblingOfChild(_551,dir);
}
return null;
}});
}
if(!dojo._hasResource["dijit.ToolbarSeparator"]){
dojo._hasResource["dijit.ToolbarSeparator"]=true;
dojo.provide("dijit.ToolbarSeparator");
dojo.declare("dijit.ToolbarSeparator",[dijit._Widget,dijit._Templated],{templateString:"<div class=\"dijitToolbarSeparator dijitInline\" waiRole=\"presentation\"></div>",postCreate:function(){
dojo.setSelectable(this.domNode,false);
},isFocusable:function(){
return false;
}});
}
if(!dojo._hasResource["dijit.Toolbar"]){
dojo._hasResource["dijit.Toolbar"]=true;
dojo.provide("dijit.Toolbar");
dojo.declare("dijit.Toolbar",[dijit._Widget,dijit._Templated,dijit._KeyNavContainer],{templateString:"<div class=\"dijit dijitToolbar\" waiRole=\"toolbar\" tabIndex=\"${tabIndex}\" dojoAttachPoint=\"containerNode\">"+"</div>",postCreate:function(){
this.connectKeyNavHandlers(this.isLeftToRight()?[dojo.keys.LEFT_ARROW]:[dojo.keys.RIGHT_ARROW],this.isLeftToRight()?[dojo.keys.RIGHT_ARROW]:[dojo.keys.LEFT_ARROW]);
},startup:function(){
if(this._started){
return;
}
this.startupKeyNavChildren();
this.inherited(arguments);
}});
}
if(!dojo._hasResource["dijit.form._FormWidget"]){
dojo._hasResource["dijit.form._FormWidget"]=true;
dojo.provide("dijit.form._FormWidget");
dojo.declare("dijit.form._FormWidget",[dijit._Widget,dijit._Templated,dijit._CssStateMixin],{name:"",alt:"",value:"",type:"text",tabIndex:"0",disabled:false,intermediateChanges:false,scrollOnFocus:true,attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{value:"focusNode",id:"focusNode",tabIndex:"focusNode",alt:"focusNode",title:"focusNode"}),postMixInProperties:function(){
this.nameAttrSetting=this.name?("name='"+this.name+"'"):"";
this.inherited(arguments);
},_setDisabledAttr:function(_553){
this.disabled=_553;
dojo.attr(this.focusNode,"disabled",_553);
if(this.valueNode){
dojo.attr(this.valueNode,"disabled",_553);
}
dijit.setWaiState(this.focusNode,"disabled",_553);
if(_553){
this._hovering=false;
this._active=false;
this.focusNode.setAttribute("tabIndex","-1");
}else{
this.focusNode.setAttribute("tabIndex",this.tabIndex);
}
},setDisabled:function(_554){
dojo.deprecated("setDisabled("+_554+") is deprecated. Use attr('disabled',"+_554+") instead.","","2.0");
this.attr("disabled",_554);
},_onFocus:function(e){
if(this.scrollOnFocus){
dijit.scrollIntoView(this.domNode);
}
this.inherited(arguments);
},isFocusable:function(){
return !this.disabled&&!this.readOnly&&this.focusNode&&(dojo.style(this.domNode,"display")!="none");
},focus:function(){
dijit.focus(this.focusNode);
},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(_555){
},_onChangeActive:false,_handleOnChange:function(_556,_557){
this._lastValue=_556;
if(this._lastValueReported==undefined&&(_557===null||!this._onChangeActive)){
this._resetValue=this._lastValueReported=_556;
}
if((this.intermediateChanges||_557||_557===undefined)&&((typeof _556!=typeof this._lastValueReported)||this.compare(_556,this._lastValueReported)!=0)){
this._lastValueReported=_556;
if(this._onChangeActive){
if(this._onChangeHandle){
clearTimeout(this._onChangeHandle);
}
this._onChangeHandle=setTimeout(dojo.hitch(this,function(){
this._onChangeHandle=null;
this.onChange(_556);
}),0);
}
}
},create:function(){
this.inherited(arguments);
this._onChangeActive=true;
},destroy:function(){
if(this._onChangeHandle){
clearTimeout(this._onChangeHandle);
this.onChange(this._lastValueReported);
}
this.inherited(arguments);
},setValue:function(_558){
dojo.deprecated("dijit.form._FormWidget:setValue("+_558+") is deprecated.  Use attr('value',"+_558+") instead.","","2.0");
this.attr("value",_558);
},getValue:function(){
dojo.deprecated(this.declaredClass+"::getValue() is deprecated. Use attr('value') instead.","","2.0");
return this.attr("value");
}});
dojo.declare("dijit.form._FormValueWidget",dijit.form._FormWidget,{readOnly:false,attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{value:"",readOnly:"focusNode"}),_setReadOnlyAttr:function(_559){
this.readOnly=_559;
dojo.attr(this.focusNode,"readOnly",_559);
dijit.setWaiState(this.focusNode,"readonly",_559);
},postCreate:function(){
this.inherited(arguments);
if(dojo.isIE){
this.connect(this.focusNode||this.domNode,"onkeydown",this._onKeyDown);
}
if(this._resetValue===undefined){
this._resetValue=this.value;
}
},_setValueAttr:function(_55a,_55b){
this.value=_55a;
this._handleOnChange(_55a,_55b);
},_getValueAttr:function(){
return this._lastValue;
},undo:function(){
this._setValueAttr(this._lastValueReported,false);
},reset:function(){
this._hasBeenBlurred=false;
this._setValueAttr(this._resetValue,true);
},_onKeyDown:function(e){
if(e.keyCode==dojo.keys.ESCAPE&&!(e.ctrlKey||e.altKey||e.metaKey)){
var te;
if(dojo.isIE){
e.preventDefault();
te=document.createEventObject();
te.keyCode=dojo.keys.ESCAPE;
te.shiftKey=e.shiftKey;
e.srcElement.fireEvent("onkeypress",te);
}
}
},_layoutHackIE7:function(){
if(dojo.isIE==7){
var _55c=this.domNode;
var _55d=_55c.parentNode;
var _55e=_55c.firstChild||_55c;
var _55f=_55e.style.filter;
while(_55d&&_55d.clientHeight==0){
_55d._disconnectHandle=this.connect(_55d,"onscroll",dojo.hitch(this,function(e){
this.disconnect(_55d._disconnectHandle);
_55d.removeAttribute("_disconnectHandle");
_55e.style.filter=(new Date()).getMilliseconds();
setTimeout(function(){
_55e.style.filter=_55f;
},0);
}));
_55d=_55d.parentNode;
}
}
}});
}
if(!dojo._hasResource["dijit._HasDropDown"]){
dojo._hasResource["dijit._HasDropDown"]=true;
dojo.provide("dijit._HasDropDown");
dojo.declare("dijit._HasDropDown",null,{_buttonNode:null,_arrowWrapperNode:null,_popupStateNode:null,_aroundNode:null,dropDown:null,autoWidth:true,forceWidth:false,maxHeight:0,dropDownPosition:["below","above"],_stopClickEvents:true,_onDropDownMouse:function(e){
if(e.type=="click"&&!this._seenKeydown){
return;
}
this._seenKeydown=false;
if(e.type=="mousedown"){
this._docHandler=this.connect(dojo.doc,"onmouseup","_onDropDownMouseup");
}
if(this.disabled||this.readOnly){
return;
}
if(this._stopClickEvents){
dojo.stopEvent(e);
}
this.toggleDropDown();
if(e.type=="click"||e.type=="keypress"){
this._onDropDownMouseup();
}
},_onDropDownMouseup:function(e){
if(e&&this._docHandler){
this.disconnect(this._docHandler);
}
var _560=this.dropDown,_561=false;
if(e&&this._opened){
var c=dojo.position(this._buttonNode,true);
if(!(e.pageX>=c.x&&e.pageX<=c.x+c.w)||!(e.pageY>=c.y&&e.pageY<=c.y+c.h)){
var t=e.target;
while(t&&!_561){
if(dojo.hasClass(t,"dijitPopup")){
_561=true;
}else{
t=t.parentNode;
}
}
if(_561){
t=e.target;
if(_560.onItemClick){
var _562;
while(t&&!(_562=dijit.byNode(t))){
t=t.parentNode;
}
if(_562&&_562.onClick&&_562.getParent){
_562.getParent().onItemClick(_562,e);
}
}
return;
}
}
}
if(this._opened&&_560.focus){
window.setTimeout(dojo.hitch(_560,"focus"),1);
}
},_setupDropdown:function(){
this._buttonNode=this._buttonNode||this.focusNode||this.domNode;
this._popupStateNode=this._popupStateNode||this.focusNode||this._buttonNode;
this._aroundNode=this._aroundNode||this.domNode;
this.connect(this._buttonNode,"onmousedown","_onDropDownMouse");
this.connect(this._buttonNode,"onclick","_onDropDownMouse");
this.connect(this._buttonNode,"onkeydown","_onDropDownKeydown");
this.connect(this._buttonNode,"onblur","_onDropDownBlur");
this.connect(this._buttonNode,"onkeypress","_onKey");
if(this._setStateClass){
this.connect(this,"openDropDown","_setStateClass");
this.connect(this,"closeDropDown","_setStateClass");
}
var _563={"after":this.isLeftToRight()?"Right":"Left","before":this.isLeftToRight()?"Left":"Right","above":"Up","below":"Down","left":"Left","right":"Right"}[this.dropDownPosition[0]]||this.dropDownPosition[0]||"Down";
dojo.addClass(this._arrowWrapperNode||this._buttonNode,"dijit"+_563+"ArrowButton");
},postCreate:function(){
this._setupDropdown();
this.inherited(arguments);
},destroyDescendants:function(){
if(this.dropDown){
if(!this.dropDown._destroyed){
this.dropDown.destroyRecursive();
}
delete this.dropDown;
}
this.inherited(arguments);
},_onDropDownKeydown:function(e){
this._seenKeydown=true;
},_onKeyPress:function(e){
if(this._opened&&e.charOrCode==dojo.keys.ESCAPE&&!e.shiftKey&&!e.ctrlKey&&!e.altKey){
this.toggleDropDown();
dojo.stopEvent(e);
return;
}
this.inherited(arguments);
},_onDropDownBlur:function(e){
this._seenKeydown=false;
},_onKey:function(e){
if(this.disabled||this.readOnly){
return;
}
var d=this.dropDown;
if(d&&this._opened&&d.handleKey){
if(d.handleKey(e)===false){
return;
}
}
if(d&&this._opened&&e.keyCode==dojo.keys.ESCAPE){
this.toggleDropDown();
return;
}
if(e.keyCode==dojo.keys.DOWN_ARROW||e.keyCode==dojo.keys.ENTER||e.charOrCode==" "){
this._onDropDownMouse(e);
}
},_onBlur:function(){
this.closeDropDown();
this.inherited(arguments);
},isLoaded:function(){
return true;
},loadDropDown:function(_564){
_564();
},toggleDropDown:function(){
if(this.disabled||this.readOnly){
return;
}
this.focus();
var _565=this.dropDown;
if(!_565){
return;
}
if(!this._opened){
if(!this.isLoaded()){
this.loadDropDown(dojo.hitch(this,"openDropDown"));
return;
}else{
this.openDropDown();
}
}else{
this.closeDropDown();
}
},openDropDown:function(){
var _566=this.dropDown;
var _567=_566.domNode;
var self=this;
if(!this._preparedNode){
dijit.popup.moveOffScreen(_567);
this._preparedNode=true;
if(_567.style.width){
this._explicitDDWidth=true;
}
if(_567.style.height){
this._explicitDDHeight=true;
}
}
if(this.maxHeight||this.forceWidth||this.autoWidth){
var _568={display:"",visibility:"hidden"};
if(!this._explicitDDWidth){
_568.width="";
}
if(!this._explicitDDHeight){
_568.height="";
}
dojo.style(_567,_568);
var mb=dojo.marginBox(_567);
var _569=(this.maxHeight&&mb.h>this.maxHeight);
dojo.style(_567,{overflow:_569?"auto":"hidden"});
if(this.forceWidth){
mb.w=this.domNode.offsetWidth;
}else{
if(this.autoWidth){
mb.w=Math.max(mb.w,this.domNode.offsetWidth);
}else{
delete mb.w;
}
}
if(_569){
mb.h=this.maxHeight;
if("w" in mb){
mb.w+=16;
}
}else{
delete mb.h;
}
delete mb.t;
delete mb.l;
if(dojo.isFunction(_566.resize)){
_566.resize(mb);
}else{
dojo.marginBox(_567,mb);
}
}
var _56a=dijit.popup.open({parent:this,popup:_566,around:this._aroundNode,orient:dijit.getPopupAroundAlignment((this.dropDownPosition&&this.dropDownPosition.length)?this.dropDownPosition:["below"],this.isLeftToRight()),onExecute:function(){
self.closeDropDown(true);
},onCancel:function(){
self.closeDropDown(true);
},onClose:function(){
dojo.attr(self._popupStateNode,"popupActive",false);
dojo.removeClass(self._popupStateNode,"dijitHasDropDownOpen");
self._opened=false;
self.state="";
}});
dojo.attr(this._popupStateNode,"popupActive","true");
dojo.addClass(self._popupStateNode,"dijitHasDropDownOpen");
this._opened=true;
this.state="Opened";
return _56a;
},closeDropDown:function(_56b){
if(this._opened){
dijit.popup.close(this.dropDown);
if(_56b){
this.focus();
}
this._opened=false;
this.state="";
}
}});
}
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:dojo.cache("dijit.form","templates/Button.html","<span class=\"dijit dijitReset dijitLeft dijitInline\"\n\tdojoAttachEvent=\"onclick:_onButtonClick\"\n\t><span class=\"dijitReset dijitRight dijitInline\"\n\t\t><span class=\"dijitReset dijitInline dijitButtonNode\"\n\t\t\t><button class=\"dijitReset dijitStretch dijitButtonContents\"\n\t\t\t\tdojoAttachPoint=\"titleNode,focusNode\"\n\t\t\t\t${nameAttrSetting} type=\"${type}\" value=\"${value}\" waiRole=\"button\" waiState=\"labelledby-${id}_label\"\n\t\t\t\t><span class=\"dijitReset dijitInline\" dojoAttachPoint=\"iconNode\"\n\t\t\t\t\t><span class=\"dijitReset dijitToggleButtonIconChar\">&#10003;</span\n\t\t\t\t></span\n\t\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"\n\t\t\t\t\tid=\"${id}_label\"\n\t\t\t\t\tdojoAttachPoint=\"containerNode\"\n\t\t\t\t></span\n\t\t\t></button\n\t\t></span\n\t></span\n></span>\n"),attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{label:{node:"containerNode",type:"innerHTML"},iconClass:{node:"iconNode",type:"class"}}),_onClick:function(e){
if(this.disabled){
return false;
}
this._clicked();
return this.onClick(e);
},_onButtonClick:function(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 _56c=dijit.byNode(node);
if(_56c&&typeof _56c._onSubmit=="function"){
_56c._onSubmit(e);
break;
}
}
}
}
},_setValueAttr:function(_56d){
var attr=this.attributeMap.value||"";
if(this[attr.node||attr||"domNode"].tagName=="BUTTON"){
if(_56d!=this.value){
console.debug("Cannot change the value attribute on a Button widget.");
}
}
},_fillContent:function(_56e){
if(_56e&&(!this.params||!("label" in this.params))){
this.attr("label",_56e.innerHTML);
}
},postCreate:function(){
dojo.setSelectable(this.focusNode,false);
this.inherited(arguments);
},_setShowLabelAttr:function(val){
if(this.containerNode){
dojo.toggleClass(this.containerNode,"dijitDisplayNone",!val);
}
this.showLabel=val;
},onClick:function(e){
return true;
},_clicked:function(e){
},setLabel:function(_56f){
dojo.deprecated("dijit.form.Button.setLabel() is deprecated.  Use attr('label', ...) instead.","","2.0");
this.attr("label",_56f);
},_setLabelAttr:function(_570){
this.containerNode.innerHTML=this.label=_570;
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,dijit._HasDropDown],{baseClass:"dijitDropDownButton",templateString:dojo.cache("dijit.form","templates/DropDownButton.html","<span class=\"dijit dijitReset dijitLeft dijitInline\"\n\tdojoAttachPoint=\"_buttonNode\"\n\t><span class='dijitReset dijitRight dijitInline'\n\t\t><span class='dijitReset dijitInline dijitButtonNode'\n\t\t\t><button class=\"dijitReset dijitStretch dijitButtonContents\"\n\t\t\t\t${nameAttrSetting} type=\"${type}\" value=\"${value}\"\n\t\t\t\tdojoAttachPoint=\"focusNode,titleNode,_arrowWrapperNode\"\n\t\t\t\twaiRole=\"button\" waiState=\"haspopup-true,labelledby-${id}_label\"\n\t\t\t\t><span class=\"dijitReset dijitInline\"\n\t\t\t\t\tdojoAttachPoint=\"iconNode\"\n\t\t\t\t></span\n\t\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"\n\t\t\t\t\tdojoAttachPoint=\"containerNode,_popupStateNode\"\n\t\t\t\t\tid=\"${id}_label\"\n\t\t\t\t></span\n\t\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonInner\">&thinsp;</span\n\t\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonChar\">&#9660;</span\n\t\t\t></button\n\t\t></span\n\t></span\n></span>\n"),_fillContent:function(){
if(this.srcNodeRef){
var _571=dojo.query("*",this.srcNodeRef);
dijit.form.DropDownButton.superclass._fillContent.call(this,_571[0]);
this.dropDownContainer=this.srcNodeRef;
}
},startup:function(){
if(this._started){
return;
}
if(!this.dropDown){
var _572=dojo.query("[widgetId]",this.dropDownContainer)[0];
this.dropDown=dijit.byNode(_572);
delete this.dropDownContainer;
}
this.inherited(arguments);
},isLoaded:function(){
var _573=this.dropDown;
return (!_573.href||_573.isLoaded);
},loadDropDown:function(){
var _574=this.dropDown;
if(!_574){
return;
}
if(!this.isLoaded()){
var _575=dojo.connect(_574,"onLoad",function(){
dojo.disconnect(_575);
this.openDropDown();
});
_574.refresh();
}else{
this.openDropDown();
}
},isFocusable:function(){
return this.inherited(arguments)&&!this._mouseDown;
}});
dojo.declare("dijit.form.ComboButton",dijit.form.DropDownButton,{templateString:dojo.cache("dijit.form","templates/ComboButton.html","<table class='dijit dijitReset dijitInline dijitLeft'\n\tcellspacing='0' cellpadding='0' waiRole=\"presentation\"\n\t><tbody waiRole=\"presentation\"><tr waiRole=\"presentation\"\n\t\t><td class=\"dijitReset dijitStretch dijitButtonNode\"><button id=\"${id}_button\" class=\"dijitReset dijitButtonContents\"\n\t\t\tdojoAttachEvent=\"onclick:_onButtonClick,onkeypress:_onButtonKeyPress\" dojoAttachPoint=\"titleNode\"\n\t\t\twaiRole=\"button\" waiState=\"labelledby-${id}_label\"\n\t\t\t><div class=\"dijitReset dijitInline\" dojoAttachPoint=\"iconNode\" waiRole=\"presentation\"></div\n\t\t\t><div class=\"dijitReset dijitInline dijitButtonText\" id=\"${id}_label\" dojoAttachPoint=\"containerNode\" waiRole=\"presentation\"></div\n\t\t></button></td\n\t\t><td id=\"${id}_arrow\" class='dijitReset dijitRight dijitButtonNode dijitArrowButton'\n\t\t\tdojoAttachPoint=\"_popupStateNode,focusNode,_buttonNode\"\n\t\t\tdojoAttachEvent=\"onkeypress:_onArrowKeyPress\"\n\t\t\ttitle=\"${optionsTitle}\" ${nameAttrSetting}\n\t\t\twaiRole=\"button\" waiState=\"haspopup-true\"\n\t\t\t><div class=\"dijitReset dijitArrowButtonInner\" waiRole=\"presentation\">&thinsp;</div\n\t\t\t><div class=\"dijitReset dijitArrowButtonChar\" waiRole=\"presentation\">&#9660;</div\n\t\t></td\n\t></tr></tbody\n></table>\n"),attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{id:"",tabIndex:["focusNode","titleNode"],title:"titleNode"}),optionsTitle:"",baseClass:"dijitComboButton",cssStateNodes:{"titleNode":"dijitButtonContents","_popupStateNode":"dijitDownArrowButton"},_focusedNode:null,postCreate:function(){
this.inherited(arguments);
var isIE=dojo.isIE;
if(isIE&&(isIE<8||dojo.isQuirks)){
with(this.titleNode){
style.width=scrollWidth+"px";
this.connect(this.titleNode,"onresize",function(){
setTimeout(function(){
style.width=scrollWidth+"px";
},0);
});
}
}
},_onButtonKeyPress:function(evt){
if(evt.charOrCode==dojo.keys[this.isLeftToRight()?"RIGHT_ARROW":"LEFT_ARROW"]){
dijit.focus(this._popupStateNode);
dojo.stopEvent(evt);
}
},_onArrowKeyPress:function(evt){
if(evt.charOrCode==dojo.keys[this.isLeftToRight()?"LEFT_ARROW":"RIGHT_ARROW"]){
dijit.focus(this.titleNode);
dojo.stopEvent(evt);
}
},focus:function(_576){
dijit.focus(_576=="start"?this.titleNode:this._popupStateNode);
}});
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(_577,_578){
this.checked=_577;
dojo.attr(this.focusNode||this.domNode,"checked",_577);
dijit.setWaiState(this.focusNode||this.domNode,"pressed",_577);
this._handleOnChange(_577,_578);
},setChecked:function(_579){
dojo.deprecated("setChecked("+_579+") is deprecated. Use attr('checked',"+_579+") instead.","","2.0");
this.attr("checked",_579);
},reset:function(){
this._hasBeenBlurred=false;
this.attr("checked",this.params.checked||false);
}});
}
if(!dojo._hasResource["dijit._editor._Plugin"]){
dojo._hasResource["dijit._editor._Plugin"]=true;
dojo.provide("dijit._editor._Plugin");
dojo.declare("dijit._editor._Plugin",null,{constructor:function(args,node){
this.params=args||{};
dojo.mixin(this,this.params);
this._connects=[];
},editor:null,iconClassPrefix:"dijitEditorIcon",button:null,command:"",useDefaultCommand:true,buttonClass:dijit.form.Button,getLabel:function(key){
return this.editor.commands[key];
},_initButton:function(){
if(this.command.length){
var _57a=this.getLabel(this.command);
var _57b=this.iconClassPrefix+" "+this.iconClassPrefix+this.command.charAt(0).toUpperCase()+this.command.substr(1);
if(!this.button){
var _57c=dojo.mixin({label:_57a,showLabel:false,iconClass:_57b,dropDown:this.dropDown,tabIndex:"-1"},this.params||{});
this.button=new this.buttonClass(_57c);
}
}
},destroy:function(){
dojo.forEach(this._connects,dojo.disconnect);
if(this.dropDown){
this.dropDown.destroyRecursive();
}
},connect:function(o,f,tf){
this._connects.push(dojo.connect(o,f,this,tf));
},updateState:function(){
var e=this.editor,c=this.command,_57d,_57e;
if(!e||!e.isLoaded||!c.length){
return;
}
if(this.button){
try{
_57e=e.queryCommandEnabled(c);
if(this.enabled!==_57e){
this.enabled=_57e;
this.button.attr("disabled",!_57e);
}
if(typeof this.button.checked=="boolean"){
_57d=e.queryCommandState(c);
if(this.checked!==_57d){
this.checked=_57d;
this.button.attr("checked",e.queryCommandState(c));
}
}
}
catch(e){
console.log(e);
}
}
},setEditor:function(_57f){
this.editor=_57f;
this._initButton();
if(this.command.length&&!this.editor.queryCommandAvailable(this.command)){
if(this.button){
this.button.domNode.style.display="none";
}
}
if(this.button&&this.useDefaultCommand){
this.connect(this.button,"onClick",dojo.hitch(this.editor,"execCommand",this.command,this.commandArg));
}
this.connect(this.editor,"onNormalizedDisplayChanged","updateState");
},setToolbar:function(_580){
if(this.button){
_580.addChild(this.button);
}
}});
}
if(!dojo._hasResource["dijit._editor.plugins.EnterKeyHandling"]){
dojo._hasResource["dijit._editor.plugins.EnterKeyHandling"]=true;
dojo.provide("dijit._editor.plugins.EnterKeyHandling");
dojo.declare("dijit._editor.plugins.EnterKeyHandling",dijit._editor._Plugin,{blockNodeForEnter:"BR",constructor:function(args){
if(args){
dojo.mixin(this,args);
}
},setEditor:function(_581){
this.editor=_581;
if(this.blockNodeForEnter=="BR"){
if(dojo.isIE){
_581.contentDomPreFilters.push(dojo.hitch(this,"regularPsToSingleLinePs"));
_581.contentDomPostFilters.push(dojo.hitch(this,"singleLinePsToRegularPs"));
_581.onLoadDeferred.addCallback(dojo.hitch(this,"_fixNewLineBehaviorForIE"));
}else{
_581.onLoadDeferred.addCallback(dojo.hitch(this,function(d){
try{
this.editor.document.execCommand("insertBrOnReturn",false,true);
}
catch(e){
}
return d;
}));
}
}else{
if(this.blockNodeForEnter){
dojo["require"]("dijit._editor.range");
var h=dojo.hitch(this,this.handleEnterKey);
_581.addKeyHandler(13,0,0,h);
_581.addKeyHandler(13,0,1,h);
this.connect(this.editor,"onKeyPressed","onKeyPressed");
}
}
},onKeyPressed:function(e){
if(this._checkListLater){
if(dojo.withGlobal(this.editor.window,"isCollapsed",dijit)){
var _582=dojo.withGlobal(this.editor.window,"getAncestorElement",dijit._editor.selection,["LI"]);
if(!_582){
dijit._editor.RichText.prototype.execCommand.call(this.editor,"formatblock",this.blockNodeForEnter);
var _583=dojo.withGlobal(this.editor.window,"getAncestorElement",dijit._editor.selection,[this.blockNodeForEnter]);
if(_583){
_583.innerHTML=this.bogusHtmlContent;
if(dojo.isIE){
var r=this.editor.document.selection.createRange();
r.move("character",-1);
r.select();
}
}else{
console.error("onKeyPressed: Cannot find the new block node");
}
}else{
if(dojo.isMoz){
if(_582.parentNode.parentNode.nodeName=="LI"){
_582=_582.parentNode.parentNode;
}
}
var fc=_582.firstChild;
if(fc&&fc.nodeType==1&&(fc.nodeName=="UL"||fc.nodeName=="OL")){
_582.insertBefore(fc.ownerDocument.createTextNode(" "),fc);
var _584=dijit.range.create(this.editor.window);
_584.setStart(_582.firstChild,0);
var _585=dijit.range.getSelection(this.editor.window,true);
_585.removeAllRanges();
_585.addRange(_584);
}
}
}
this._checkListLater=false;
}
if(this._pressedEnterInBlock){
if(this._pressedEnterInBlock.previousSibling){
this.removeTrailingBr(this._pressedEnterInBlock.previousSibling);
}
delete this._pressedEnterInBlock;
}
},bogusHtmlContent:"&nbsp;",blockNodes:/^(?:P|H1|H2|H3|H4|H5|H6|LI)$/,handleEnterKey:function(e){
var _586,_587,_588,doc=this.editor.document,br;
if(e.shiftKey){
var _589=dojo.withGlobal(this.editor.window,"getParentElement",dijit._editor.selection);
var _58a=dijit.range.getAncestor(_589,this.blockNodes);
if(_58a){
if(!e.shiftKey&&_58a.tagName=="LI"){
return true;
}
_586=dijit.range.getSelection(this.editor.window);
_587=_586.getRangeAt(0);
if(!_587.collapsed){
_587.deleteContents();
_586=dijit.range.getSelection(this.editor.window);
_587=_586.getRangeAt(0);
}
if(dijit.range.atBeginningOfContainer(_58a,_587.startContainer,_587.startOffset)){
if(e.shiftKey){
br=doc.createElement("br");
_588=dijit.range.create(this.editor.window);
_58a.insertBefore(br,_58a.firstChild);
_588.setStartBefore(br.nextSibling);
_586.removeAllRanges();
_586.addRange(_588);
}else{
dojo.place(br,_58a,"before");
}
}else{
if(dijit.range.atEndOfContainer(_58a,_587.startContainer,_587.startOffset)){
_588=dijit.range.create(this.editor.window);
br=doc.createElement("br");
if(e.shiftKey){
_58a.appendChild(br);
_58a.appendChild(doc.createTextNode(" "));
_588.setStart(_58a.lastChild,0);
}else{
dojo.place(br,_58a,"after");
_588.setStartAfter(_58a);
}
_586.removeAllRanges();
_586.addRange(_588);
}else{
return true;
}
}
}else{
dijit._editor.RichText.prototype.execCommand.call(this.editor,"inserthtml","<br>");
}
return false;
}
var _58b=true;
_586=dijit.range.getSelection(this.editor.window);
_587=_586.getRangeAt(0);
if(!_587.collapsed){
_587.deleteContents();
_586=dijit.range.getSelection(this.editor.window);
_587=_586.getRangeAt(0);
}
var _58c=dijit.range.getBlockAncestor(_587.endContainer,null,this.editor.editNode);
var _58d=_58c.blockNode;
if((this._checkListLater=(_58d&&(_58d.nodeName=="LI"||_58d.parentNode.nodeName=="LI")))){
if(dojo.isMoz){
this._pressedEnterInBlock=_58d;
}
if(/^(\s|&nbsp;|\xA0|<span\b[^>]*\bclass=['"]Apple-style-span['"][^>]*>(\s|&nbsp;|\xA0)<\/span>)?(<br>)?$/.test(_58d.innerHTML)){
_58d.innerHTML="";
if(dojo.isWebKit){
_588=dijit.range.create(this.editor.window);
_588.setStart(_58d,0);
_586.removeAllRanges();
_586.addRange(_588);
}
this._checkListLater=false;
}
return true;
}
if(!_58c.blockNode||_58c.blockNode===this.editor.editNode){
try{
dijit._editor.RichText.prototype.execCommand.call(this.editor,"formatblock",this.blockNodeForEnter);
}
catch(e2){
}
_58c={blockNode:dojo.withGlobal(this.editor.window,"getAncestorElement",dijit._editor.selection,[this.blockNodeForEnter]),blockContainer:this.editor.editNode};
if(_58c.blockNode){
if(_58c.blockNode!=this.editor.editNode&&(!(_58c.blockNode.textContent||_58c.blockNode.innerHTML).replace(/^\s+|\s+$/g,"").length)){
this.removeTrailingBr(_58c.blockNode);
return false;
}
}else{
_58c.blockNode=this.editor.editNode;
}
_586=dijit.range.getSelection(this.editor.window);
_587=_586.getRangeAt(0);
}
var _58e=doc.createElement(this.blockNodeForEnter);
_58e.innerHTML=this.bogusHtmlContent;
this.removeTrailingBr(_58c.blockNode);
if(dijit.range.atEndOfContainer(_58c.blockNode,_587.endContainer,_587.endOffset)){
if(_58c.blockNode===_58c.blockContainer){
_58c.blockNode.appendChild(_58e);
}else{
dojo.place(_58e,_58c.blockNode,"after");
}
_58b=false;
_588=dijit.range.create(this.editor.window);
_588.setStart(_58e,0);
_586.removeAllRanges();
_586.addRange(_588);
if(this.editor.height){
dijit.scrollIntoView(_58e);
}
}else{
if(dijit.range.atBeginningOfContainer(_58c.blockNode,_587.startContainer,_587.startOffset)){
dojo.place(_58e,_58c.blockNode,_58c.blockNode===_58c.blockContainer?"first":"before");
if(_58e.nextSibling&&this.editor.height){
_588=dijit.range.create(this.editor.window);
_588.setStart(_58e.nextSibling,0);
_586.removeAllRanges();
_586.addRange(_588);
dijit.scrollIntoView(_58e.nextSibling);
}
_58b=false;
}else{
if(dojo.isMoz){
this._pressedEnterInBlock=_58c.blockNode;
}
}
}
return _58b;
},removeTrailingBr:function(_58f){
var para=/P|DIV|LI/i.test(_58f.tagName)?_58f:dijit._editor.selection.getParentOfType(_58f,["P","DIV","LI"]);
if(!para){
return;
}
if(para.lastChild){
if((para.childNodes.length>1&&para.lastChild.nodeType==3&&/^[\s\xAD]*$/.test(para.lastChild.nodeValue))||para.lastChild.tagName=="BR"){
dojo.destroy(para.lastChild);
}
}
if(!para.childNodes.length){
para.innerHTML=this.bogusHtmlContent;
}
},_fixNewLineBehaviorForIE:function(d){
var doc=this.editor.document;
if(doc.__INSERTED_EDITIOR_NEWLINE_CSS===undefined){
var _590=dojo.create("style",{type:"text/css"},doc.getElementsByTagName("head")[0]);
_590.styleSheet.cssText="p{margin:0;}";
this.editor.document.__INSERTED_EDITIOR_NEWLINE_CSS=true;
}
return d;
},regularPsToSingleLinePs:function(_591,_592){
function _593(el){
function _594(_595){
var newP=_595[0].ownerDocument.createElement("p");
_595[0].parentNode.insertBefore(newP,_595[0]);
dojo.forEach(_595,function(node){
newP.appendChild(node);
});
};
var _596=0;
var _597=[];
var _598;
while(_596<el.childNodes.length){
_598=el.childNodes[_596];
if(_598.nodeType==3||(_598.nodeType==1&&_598.nodeName!="BR"&&dojo.style(_598,"display")!="block")){
_597.push(_598);
}else{
var _599=_598.nextSibling;
if(_597.length){
_594(_597);
_596=(_596+1)-_597.length;
if(_598.nodeName=="BR"){
dojo.destroy(_598);
}
}
_597=[];
}
_596++;
}
if(_597.length){
_594(_597);
}
};
function _59a(el){
var _59b=null;
var _59c=[];
var _59d=el.childNodes.length-1;
for(var i=_59d;i>=0;i--){
_59b=el.childNodes[i];
if(_59b.nodeName=="BR"){
var newP=_59b.ownerDocument.createElement("p");
dojo.place(newP,el,"after");
if(_59c.length==0&&i!=_59d){
newP.innerHTML="&nbsp;";
}
dojo.forEach(_59c,function(node){
newP.appendChild(node);
});
dojo.destroy(_59b);
_59c=[];
}else{
_59c.unshift(_59b);
}
}
};
var _59e=[];
var ps=_591.getElementsByTagName("p");
dojo.forEach(ps,function(p){
_59e.push(p);
});
dojo.forEach(_59e,function(p){
var _59f=p.previousSibling;
if((_59f)&&(_59f.nodeType==1)&&(_59f.nodeName=="P"||dojo.style(_59f,"display")!="block")){
var newP=p.parentNode.insertBefore(this.document.createElement("p"),p);
newP.innerHTML=_592?"":"&nbsp;";
}
_59a(p);
},this.editor);
_593(_591);
return _591;
},singleLinePsToRegularPs:function(_5a0){
function _5a1(node){
var ps=node.getElementsByTagName("p");
var _5a2=[];
for(var i=0;i<ps.length;i++){
var p=ps[i];
var _5a3=false;
for(var k=0;k<_5a2.length;k++){
if(_5a2[k]===p.parentNode){
_5a3=true;
break;
}
}
if(!_5a3){
_5a2.push(p.parentNode);
}
}
return _5a2;
};
function _5a4(node){
return (!node.childNodes.length||node.innerHTML=="&nbsp;");
};
var _5a5=_5a1(_5a0);
for(var i=0;i<_5a5.length;i++){
var _5a6=_5a5[i];
var _5a7=null;
var node=_5a6.firstChild;
var _5a8=null;
while(node){
if(node.nodeType!=1||node.tagName!="P"||(node.getAttributeNode("style")||{}).specified){
_5a7=null;
}else{
if(_5a4(node)){
_5a8=node;
_5a7=null;
}else{
if(_5a7==null){
_5a7=node;
}else{
if((!_5a7.lastChild||_5a7.lastChild.nodeName!="BR")&&(node.firstChild)&&(node.firstChild.nodeName!="BR")){
_5a7.appendChild(this.editor.document.createElement("br"));
}
while(node.firstChild){
_5a7.appendChild(node.firstChild);
}
_5a8=node;
}
}
}
node=node.nextSibling;
if(_5a8){
dojo.destroy(_5a8);
_5a8=null;
}
}
}
return _5a0;
}});
}
if(!dojo._hasResource["dijit.Editor"]){
dojo._hasResource["dijit.Editor"]=true;
dojo.provide("dijit.Editor");
dojo.declare("dijit.Editor",dijit._editor.RichText,{plugins:null,extraPlugins:null,constructor:function(){
if(!dojo.isArray(this.plugins)){
this.plugins=["undo","redo","|","cut","copy","paste","|","bold","italic","underline","strikethrough","|","insertOrderedList","insertUnorderedList","indent","outdent","|","justifyLeft","justifyRight","justifyCenter","justifyFull","dijit._editor.plugins.EnterKeyHandling"];
}
this._plugins=[];
this._editInterval=this.editActionInterval*1000;
if(dojo.isIE){
this.events.push("onBeforeDeactivate");
this.events.push("onBeforeActivate");
}
},postCreate:function(){
if(this.customUndo){
dojo["require"]("dijit._editor.range");
this._steps=this._steps.slice(0);
this._undoedSteps=this._undoedSteps.slice(0);
}
if(dojo.isArray(this.extraPlugins)){
this.plugins=this.plugins.concat(this.extraPlugins);
}
this.inherited(arguments);
this.commands=dojo.i18n.getLocalization("dijit._editor","commands",this.lang);
if(!this.toolbar){
this.toolbar=new dijit.Toolbar({});
this.header.appendChild(this.toolbar.domNode);
}
dojo.forEach(this.plugins,this.addPlugin,this);
this.onNormalizedDisplayChanged();
this.toolbar.startup();
},destroy:function(){
dojo.forEach(this._plugins,function(p){
if(p&&p.destroy){
p.destroy();
}
});
this._plugins=[];
this.toolbar.destroyRecursive();
delete this.toolbar;
this.inherited(arguments);
},addPlugin:function(_5a9,_5aa){
var args=dojo.isString(_5a9)?{name:_5a9}:_5a9;
if(!args.setEditor){
var o={"args":args,"plugin":null,"editor":this};
dojo.publish(dijit._scopeName+".Editor.getPlugin",[o]);
if(!o.plugin){
var pc=dojo.getObject(args.name);
if(pc){
o.plugin=new pc(args);
}
}
if(!o.plugin){
console.warn("Cannot find plugin",_5a9);
return;
}
_5a9=o.plugin;
}
if(arguments.length>1){
this._plugins[_5aa]=_5a9;
}else{
this._plugins.push(_5a9);
}
_5a9.setEditor(this);
if(dojo.isFunction(_5a9.setToolbar)){
_5a9.setToolbar(this.toolbar);
}
},startup:function(){
},resize:function(size){
if(size){
dijit.layout._LayoutWidget.prototype.resize.apply(this,arguments);
}
},layout:function(){
this.editingArea.style.height=(this._contentBox.h-(this.getHeaderHeight()+this.getFooterHeight()))+"px";
if(this.iframe){
this.iframe.style.height="100%";
}
this._layoutMode=true;
},_onIEMouseDown:function(e){
var _5ab=this.document.body.componentFromPoint(e.x,e.y);
if(!_5ab){
delete this._savedSelection;
if(e.target.tagName=="BODY"){
setTimeout(dojo.hitch(this,"placeCursorAtEnd"),0);
}
this.inherited(arguments);
}
},onBeforeActivate:function(e){
this._restoreSelection();
},onBeforeDeactivate:function(e){
if(this.customUndo){
this.endEditing(true);
}
if(e.target.tagName!="BODY"){
this._saveSelection();
}
},customUndo:dojo.isIE,editActionInterval:3,beginEditing:function(cmd){
if(!this._inEditing){
this._inEditing=true;
this._beginEditing(cmd);
}
if(this.editActionInterval>0){
if(this._editTimer){
clearTimeout(this._editTimer);
}
this._editTimer=setTimeout(dojo.hitch(this,this.endEditing),this._editInterval);
}
},_steps:[],_undoedSteps:[],execCommand:function(cmd){
if(this.customUndo&&(cmd=="undo"||cmd=="redo")){
return this[cmd]();
}else{
if(this.customUndo){
this.endEditing();
this._beginEditing();
}
var r;
try{
r=this.inherited("execCommand",arguments);
if(dojo.isWebKit&&cmd=="paste"&&!r){
throw {code:1011};
}
}
catch(e){
if(e.code==1011&&/copy|cut|paste/.test(cmd)){
var sub=dojo.string.substitute,_5ac={cut:"X",copy:"C",paste:"V"};
alert(sub(this.commands.systemShortcut,[this.commands[cmd],sub(this.commands[dojo.isMac?"appleKey":"ctrlKey"],[_5ac[cmd]])]));
}
r=false;
}
if(this.customUndo){
this._endEditing();
}
return r;
}
},queryCommandEnabled:function(cmd){
if(this.customUndo&&(cmd=="undo"||cmd=="redo")){
return cmd=="undo"?(this._steps.length>1):(this._undoedSteps.length>0);
}else{
return this.inherited("queryCommandEnabled",arguments);
}
},_moveToBookmark:function(b){
var _5ad=b.mark;
var mark=b.mark;
var col=b.isCollapsed;
if(dojo.isIE){
if(dojo.isArray(mark)){
_5ad=[];
dojo.forEach(mark,function(n){
_5ad.push(dijit.range.getNode(n,this.editNode));
},this);
}
}else{
var r=dijit.range.create(this.window);
r.setStart(dijit.range.getNode(b.startContainer,this.editNode),b.startOffset);
r.setEnd(dijit.range.getNode(b.endContainer,this.editNode),b.endOffset);
_5ad=r;
}
dojo.withGlobal(this.window,"moveToBookmark",dijit,[{mark:_5ad,isCollapsed:col}]);
},_changeToStep:function(from,to){
this.setValue(to.text);
var b=to.bookmark;
if(!b){
return;
}
this._moveToBookmark(b);
},undo:function(){
this.endEditing(true);
var s=this._steps.pop();
if(this._steps.length>0){
this.focus();
this._changeToStep(s,this._steps[this._steps.length-1]);
this._undoedSteps.push(s);
this.onDisplayChanged();
return true;
}
return false;
},redo:function(){
this.endEditing(true);
var s=this._undoedSteps.pop();
if(s&&this._steps.length>0){
this.focus();
this._changeToStep(this._steps[this._steps.length-1],s);
this._steps.push(s);
this.onDisplayChanged();
return true;
}
return false;
},endEditing:function(_5ae){
if(this._editTimer){
clearTimeout(this._editTimer);
}
if(this._inEditing){
this._endEditing(_5ae);
this._inEditing=false;
}
},_getBookmark:function(){
var b=dojo.withGlobal(this.window,dijit.getBookmark);
var tmp=[];
if(b.mark){
var mark=b.mark;
if(dojo.isIE){
if(dojo.isArray(mark)){
dojo.forEach(mark,function(n){
tmp.push(dijit.range.getIndex(n,this.editNode).o);
},this);
b.mark=tmp;
}
}else{
tmp=dijit.range.getIndex(mark.startContainer,this.editNode).o;
b.mark={startContainer:tmp,startOffset:mark.startOffset,endContainer:mark.endContainer===mark.startContainer?tmp:dijit.range.getIndex(mark.endContainer,this.editNode).o,endOffset:mark.endOffset};
}
}
return b;
},_beginEditing:function(cmd){
if(this._steps.length===0){
this._steps.push({"text":this.savedContent,"bookmark":this._getBookmark()});
}
},_endEditing:function(_5af){
var v=this.getValue(true);
this._undoedSteps=[];
this._steps.push({text:v,bookmark:this._getBookmark()});
},onKeyDown:function(e){
if(!dojo.isIE&&!this.iframe&&e.keyCode==dojo.keys.TAB&&!this.tabIndent){
this._saveSelection();
}
if(!this.customUndo){
this.inherited(arguments);
return;
}
var k=e.keyCode,ks=dojo.keys;
if(e.ctrlKey&&!e.altKey){
if(k==90||k==122){
dojo.stopEvent(e);
this.undo();
return;
}else{
if(k==89||k==121){
dojo.stopEvent(e);
this.redo();
return;
}
}
}
this.inherited(arguments);
switch(k){
case ks.ENTER:
case ks.BACKSPACE:
case ks.DELETE:
this.beginEditing();
break;
case 88:
case 86:
if(e.ctrlKey&&!e.altKey&&!e.metaKey){
this.endEditing();
if(e.keyCode==88){
this.beginEditing("cut");
setTimeout(dojo.hitch(this,this.endEditing),1);
}else{
this.beginEditing("paste");
setTimeout(dojo.hitch(this,this.endEditing),1);
}
break;
}
default:
if(!e.ctrlKey&&!e.altKey&&!e.metaKey&&(e.keyCode<dojo.keys.F1||e.keyCode>dojo.keys.F15)){
this.beginEditing();
break;
}
case ks.ALT:
this.endEditing();
break;
case ks.UP_ARROW:
case ks.DOWN_ARROW:
case ks.LEFT_ARROW:
case ks.RIGHT_ARROW:
case ks.HOME:
case ks.END:
case ks.PAGE_UP:
case ks.PAGE_DOWN:
this.endEditing(true);
break;
case ks.CTRL:
case ks.SHIFT:
case ks.TAB:
break;
}
},_onBlur:function(){
this.inherited("_onBlur",arguments);
this.endEditing(true);
},_saveSelection:function(){
this._savedSelection=this._getBookmark();
},_restoreSelection:function(){
if(this._savedSelection){
if(dojo.withGlobal(this.window,"isCollapsed",dijit)){
this._moveToBookmark(this._savedSelection);
}
delete this._savedSelection;
}
},onClick:function(){
this.endEditing(true);
this.inherited(arguments);
}});
dojo.subscribe(dijit._scopeName+".Editor.getPlugin",null,function(o){
if(o.plugin){
return;
}
var args=o.args,p;
var _5b0=dijit._editor._Plugin;
var name=args.name;
switch(name){
case "undo":
case "redo":
case "cut":
case "copy":
case "paste":
case "insertOrderedList":
case "insertUnorderedList":
case "indent":
case "outdent":
case "justifyCenter":
case "justifyFull":
case "justifyLeft":
case "justifyRight":
case "delete":
case "selectAll":
case "removeFormat":
case "unlink":
case "insertHorizontalRule":
p=new _5b0({command:name});
break;
case "bold":
case "italic":
case "underline":
case "strikethrough":
case "subscript":
case "superscript":
p=new _5b0({buttonClass:dijit.form.ToggleButton,command:name});
break;
case "|":
p=new _5b0({button:new dijit.ToolbarSeparator()});
}
o.plugin=p;
});
}
if(!dojo._hasResource["dijit.PopupMenuItem"]){
dojo._hasResource["dijit.PopupMenuItem"]=true;
dojo.provide("dijit.PopupMenuItem");
dojo.declare("dijit.PopupMenuItem",dijit.MenuItem,{_fillContent:function(){
if(this.srcNodeRef){
var _5b1=dojo.query("*",this.srcNodeRef);
dijit.PopupMenuItem.superclass._fillContent.call(this,_5b1[0]);
this.dropDownContainer=this.srcNodeRef;
}
},startup:function(){
if(this._started){
return;
}
this.inherited(arguments);
if(!this.popup){
var node=dojo.query("[widgetId]",this.dropDownContainer)[0];
this.popup=dijit.byNode(node);
}
dojo.body().appendChild(this.popup.domNode);
this.popup.domNode.style.display="none";
if(this.arrowWrapper){
dojo.style(this.arrowWrapper,"visibility","");
}
dijit.setWaiState(this.focusNode,"haspopup","true");
},destroyDescendants:function(){
if(this.popup){
if(!this.popup._destroyed){
this.popup.destroyRecursive();
}
delete this.popup;
}
this.inherited(arguments);
}});
}
if(!dojo._hasResource["dijit.MenuSeparator"]){
dojo._hasResource["dijit.MenuSeparator"]=true;
dojo.provide("dijit.MenuSeparator");
dojo.declare("dijit.MenuSeparator",[dijit._Widget,dijit._Templated,dijit._Contained],{templateString:dojo.cache("dijit","templates/MenuSeparator.html","<tr class=\"dijitMenuSeparator\">\n\t<td colspan=\"4\">\n\t\t<div class=\"dijitMenuSeparatorTop\"></div>\n\t\t<div class=\"dijitMenuSeparatorBottom\"></div>\n\t</td>\n</tr>\n"),postCreate:function(){
dojo.setSelectable(this.domNode,false);
},isFocusable:function(){
return false;
}});
}
if(!dojo._hasResource["dijit.Menu"]){
dojo._hasResource["dijit.Menu"]=true;
dojo.provide("dijit.Menu");
dojo.declare("dijit._MenuBase",[dijit._Widget,dijit._Templated,dijit._KeyNavContainer],{parentMenu:null,popupDelay:500,startup:function(){
if(this._started){
return;
}
dojo.forEach(this.getChildren(),function(_5b2){
_5b2.startup();
});
this.startupKeyNavChildren();
this.inherited(arguments);
},onExecute:function(){
},onCancel:function(_5b3){
},_moveToPopup:function(evt){
if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled){
this.focusedChild._onClick(evt);
}else{
var _5b4=this._getTopMenu();
if(_5b4&&_5b4._isMenuBar){
_5b4.focusNext();
}
}
},_onPopupHover:function(evt){
if(this.currentPopup&&this.currentPopup._pendingClose_timer){
var _5b5=this.currentPopup.parentMenu;
if(_5b5.focusedChild){
_5b5.focusedChild._setSelected(false);
}
_5b5.focusedChild=this.currentPopup.from_item;
_5b5.focusedChild._setSelected(true);
this._stopPendingCloseTimer(this.currentPopup);
}
},onItemHover:function(item){
if(this.isActive){
this.focusChild(item);
if(this.focusedChild.popup&&!this.focusedChild.disabled&&!this.hover_timer){
this.hover_timer=setTimeout(dojo.hitch(this,"_openPopup"),this.popupDelay);
}
}
if(this.focusedChild){
this.focusChild(item);
}
this._hoveredChild=item;
},_onChildBlur:function(item){
this._stopPopupTimer();
item._setSelected(false);
var _5b6=item.popup;
if(_5b6){
this._stopPendingCloseTimer(_5b6);
_5b6._pendingClose_timer=setTimeout(function(){
_5b6._pendingClose_timer=null;
if(_5b6.parentMenu){
_5b6.parentMenu.currentPopup=null;
}
dijit.popup.close(_5b6);
},this.popupDelay);
}
},onItemUnhover:function(item){
if(this.isActive){
this._stopPopupTimer();
}
if(this._hoveredChild==item){
this._hoveredChild=null;
}
},_stopPopupTimer:function(){
if(this.hover_timer){
clearTimeout(this.hover_timer);
this.hover_timer=null;
}
},_stopPendingCloseTimer:function(_5b7){
if(_5b7._pendingClose_timer){
clearTimeout(_5b7._pendingClose_timer);
_5b7._pendingClose_timer=null;
}
},_stopFocusTimer:function(){
if(this._focus_timer){
clearTimeout(this._focus_timer);
this._focus_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(typeof this.isShowingNow=="undefined"){
this._markActive();
}
this.focusChild(item);
if(item.popup){
this._openPopup();
}else{
this.onExecute();
item.onClick(evt);
}
},_openPopup:function(){
this._stopPopupTimer();
var _5b8=this.focusedChild;
if(!_5b8){
return;
}
var _5b9=_5b8.popup;
if(_5b9.isShowingNow){
return;
}
if(this.currentPopup){
this._stopPendingCloseTimer(this.currentPopup);
dijit.popup.close(this.currentPopup);
}
_5b9.parentMenu=this;
_5b9.from_item=_5b8;
var self=this;
dijit.popup.open({parent:this,popup:_5b9,around:_5b8.domNode,orient:this._orient||(this.isLeftToRight()?{"TR":"TL","TL":"TR","BR":"BL","BL":"BR"}:{"TL":"TR","TR":"TL","BL":"BR","BR":"BL"}),onCancel:function(){
self.focusChild(_5b8);
self._cleanUp();
_5b8._setSelected(true);
self.focusedChild=_5b8;
},onExecute:dojo.hitch(this,"_cleanUp")});
this.currentPopup=_5b9;
_5b9.connect(_5b9.domNode,"onmouseenter",dojo.hitch(self,"_onPopupHover"));
if(_5b9.focus){
_5b9._focus_timer=setTimeout(dojo.hitch(_5b9,function(){
this._focus_timer=null;
this.focus();
}),0);
}
},_markActive:function(){
this.isActive=true;
dojo.addClass(this.domNode,"dijitMenuActive");
dojo.removeClass(this.domNode,"dijitMenuPassive");
},onOpen:function(e){
this.isShowingNow=true;
this._markActive();
},_markInactive:function(){
this.isActive=false;
dojo.removeClass(this.domNode,"dijitMenuActive");
dojo.addClass(this.domNode,"dijitMenuPassive");
},onClose:function(){
this._stopFocusTimer();
this._markInactive();
this.isShowingNow=false;
this.parentMenu=null;
},_closeChild:function(){
this._stopPopupTimer();
if(this.focusedChild){
this.focusedChild._setSelected(false);
this.focusedChild._onUnhover();
this.focusedChild=null;
}
if(this.currentPopup){
dijit.popup.close(this.currentPopup);
this.currentPopup=null;
}
},_onItemFocus:function(item){
if(this._hoveredChild&&this._hoveredChild!=item){
this._hoveredChild._onUnhover();
}
},_onBlur:function(){
this._cleanUp();
this.inherited(arguments);
},_cleanUp:function(){
this._closeChild();
if(typeof this.isShowingNow=="undefined"){
this._markInactive();
}
}});
dojo.declare("dijit.Menu",dijit._MenuBase,{constructor:function(){
this._bindings=[];
},templateString:dojo.cache("dijit","templates/Menu.html","<table class=\"dijit dijitMenu dijitMenuPassive dijitReset dijitMenuTable\" waiRole=\"menu\" tabIndex=\"${tabIndex}\" dojoAttachEvent=\"onkeypress:_onKeyPress\">\n\t<tbody class=\"dijitReset\" dojoAttachPoint=\"containerNode\"></tbody>\n</table>\n"),targetNodeIds:[],contextMenuForWindow:false,leftClickToOpen:false,refocus:true,postCreate:function(){
if(this.contextMenuForWindow){
this.bindDomNode(dojo.body());
}else{
dojo.forEach(this.targetNodeIds,this.bindDomNode,this);
}
var k=dojo.keys,l=this.isLeftToRight();
this._openSubMenuKey=l?k.RIGHT_ARROW:k.LEFT_ARROW;
this._closeSubMenuKey=l?k.LEFT_ARROW:k.RIGHT_ARROW;
this.connectKeyNavHandlers([k.UP_ARROW],[k.DOWN_ARROW]);
},_onKeyPress:function(evt){
if(evt.ctrlKey||evt.altKey){
return;
}
switch(evt.charOrCode){
case this._openSubMenuKey:
this._moveToPopup(evt);
dojo.stopEvent(evt);
break;
case this._closeSubMenuKey:
if(this.parentMenu){
if(this.parentMenu._isMenuBar){
this.parentMenu.focusPrev();
}else{
this.onCancel(false);
}
}else{
dojo.stopEvent(evt);
}
break;
}
},_iframeContentWindow:function(_5ba){
var win=dijit.getDocumentWindow(this._iframeContentDocument(_5ba))||this._iframeContentDocument(_5ba)["__parent__"]||(_5ba.name&&dojo.doc.frames[_5ba.name])||null;
return win;
},_iframeContentDocument:function(_5bb){
var doc=_5bb.contentDocument||(_5bb.contentWindow&&_5bb.contentWindow.document)||(_5bb.name&&dojo.doc.frames[_5bb.name]&&dojo.doc.frames[_5bb.name].document)||null;
return doc;
},bindDomNode:function(node){
node=dojo.byId(node);
var cn;
if(node.tagName.toLowerCase()=="iframe"){
var _5bc=node,win=this._iframeContentWindow(_5bc);
cn=dojo.withGlobal(win,dojo.body);
}else{
cn=(node==dojo.body()?dojo.doc.documentElement:node);
}
var _5bd={node:node,iframe:_5bc};
dojo.attr(node,"_dijitMenu"+this.id,this._bindings.push(_5bd));
var _5be=dojo.hitch(this,function(cn){
return [dojo.connect(cn,this.leftClickToOpen?"onclick":"oncontextmenu",this,function(evt){
dojo.stopEvent(evt);
this._scheduleOpen(evt.target,_5bc,{x:evt.pageX,y:evt.pageY});
}),dojo.connect(cn,"onkeydown",this,function(evt){
if(evt.shiftKey&&evt.keyCode==dojo.keys.F10){
dojo.stopEvent(evt);
this._scheduleOpen(evt.target,_5bc);
}
})];
});
_5bd.connects=cn?_5be(cn):[];
if(_5bc){
_5bd.onloadHandler=dojo.hitch(this,function(){
var win=this._iframeContentWindow(_5bc);
cn=dojo.withGlobal(win,dojo.body);
_5bd.connects=_5be(cn);
});
if(_5bc.addEventListener){
_5bc.addEventListener("load",_5bd.onloadHandler,false);
}else{
_5bc.attachEvent("onload",_5bd.onloadHandler);
}
}
},unBindDomNode:function(_5bf){
var node;
try{
node=dojo.byId(_5bf);
}
catch(e){
return;
}
var _5c0="_dijitMenu"+this.id;
if(node&&dojo.hasAttr(node,_5c0)){
var bid=dojo.attr(node,_5c0)-1,b=this._bindings[bid];
dojo.forEach(b.connects,dojo.disconnect);
var _5c1=b.iframe;
if(_5c1){
if(_5c1.removeEventListener){
_5c1.removeEventListener("load",b.onloadHandler,false);
}else{
_5c1.detachEvent("onload",b.onloadHandler);
}
}
dojo.removeAttr(node,_5c0);
delete this._bindings[bid];
}
},_scheduleOpen:function(_5c2,_5c3,_5c4){
if(!this._openTimer){
this._openTimer=setTimeout(dojo.hitch(this,function(){
delete this._openTimer;
this._openMyself({target:_5c2,iframe:_5c3,coords:_5c4});
}),1);
}
},_openMyself:function(args){
var _5c5=args.target,_5c6=args.iframe,_5c7=args.coords;
if(_5c7){
if(_5c6){
var od=_5c5.ownerDocument,ifc=dojo.position(_5c6,true),win=this._iframeContentWindow(_5c6),_5c8=dojo.withGlobal(win,"_docScroll",dojo);
var cs=dojo.getComputedStyle(_5c6),tp=dojo._toPixelValue,left=(dojo.isIE&&dojo.isQuirks?0:tp(_5c6,cs.paddingLeft))+(dojo.isIE&&dojo.isQuirks?tp(_5c6,cs.borderLeftWidth):0),top=(dojo.isIE&&dojo.isQuirks?0:tp(_5c6,cs.paddingTop))+(dojo.isIE&&dojo.isQuirks?tp(_5c6,cs.borderTopWidth):0);
_5c7.x+=ifc.x+left-_5c8.x;
_5c7.y+=ifc.y+top-_5c8.y;
}
}else{
_5c7=dojo.position(_5c5,true);
_5c7.x+=10;
_5c7.y+=10;
}
var self=this;
var _5c9=dijit.getFocus(this);
function _5ca(){
if(self.refocus){
dijit.focus(_5c9);
}
dijit.popup.close(self);
};
dijit.popup.open({popup:this,x:_5c7.x,y:_5c7.y,onExecute:_5ca,onCancel:_5ca,orient:this.isLeftToRight()?"L":"R"});
this.focus();
this._onBlur=function(){
this.inherited("_onBlur",arguments);
dijit.popup.close(this);
};
},uninitialize:function(){
dojo.forEach(this._bindings,function(b){
if(b){
this.unBindDomNode(b.node);
}
},this);
this.inherited(arguments);
}});
}
if(!dojo._hasResource["dijit.MenuBar"]){
dojo._hasResource["dijit.MenuBar"]=true;
dojo.provide("dijit.MenuBar");
dojo.declare("dijit.MenuBar",dijit._MenuBase,{templateString:dojo.cache("dijit","templates/MenuBar.html","<div class=\"dijitMenuBar dijitMenuPassive\" dojoAttachPoint=\"containerNode\"  waiRole=\"menubar\" tabIndex=\"${tabIndex}\" dojoAttachEvent=\"onkeypress: _onKeyPress\"></div>\n"),_isMenuBar:true,constructor:function(){
this._orient=this.isLeftToRight()?{BL:"TL"}:{BR:"TR"};
},postCreate:function(){
var k=dojo.keys,l=this.isLeftToRight();
this.connectKeyNavHandlers(l?[k.LEFT_ARROW]:[k.RIGHT_ARROW],l?[k.RIGHT_ARROW]:[k.LEFT_ARROW]);
},focusChild:function(item){
var _5cb=this.focusedChild,_5cc=_5cb&&_5cb.popup&&_5cb.popup.isShowingNow;
this.inherited(arguments);
if(_5cc&&item.popup&&!item.disabled){
this._openPopup();
}
},_onKeyPress:function(evt){
if(evt.ctrlKey||evt.altKey){
return;
}
switch(evt.charOrCode){
case dojo.keys.DOWN_ARROW:
this._moveToPopup(evt);
dojo.stopEvent(evt);
}
},onItemClick:function(item,evt){
if(item.popup&&item.popup.isShowingNow){
item.popup.onCancel();
}else{
this.inherited(arguments);
}
}});
}
if(!dojo._hasResource["dijit.MenuBarItem"]){
dojo._hasResource["dijit.MenuBarItem"]=true;
dojo.provide("dijit.MenuBarItem");
dojo.declare("dijit._MenuBarItemMixin",null,{templateString:dojo.cache("dijit","templates/MenuBarItem.html","<div class=\"dijitReset dijitInline dijitMenuItem dijitMenuItemLabel\" dojoAttachPoint=\"focusNode\" waiRole=\"menuitem\" tabIndex=\"-1\"'\n\t\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<span dojoAttachPoint=\"containerNode\"></span>\n</div>\n"),attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{label:{node:"containerNode",type:"innerHTML"}})});
dojo.declare("dijit.MenuBarItem",[dijit.MenuItem,dijit._MenuBarItemMixin],{});
}
if(!dojo._hasResource["dijit.PopupMenuBarItem"]){
dojo._hasResource["dijit.PopupMenuBarItem"]=true;
dojo.provide("dijit.PopupMenuBarItem");
dojo.declare("dijit.PopupMenuBarItem",[dijit.PopupMenuItem,dijit._MenuBarItemMixin],{});
}
if(!dojo._hasResource["dijit._editor.plugins.AlwaysShowToolbar"]){
dojo._hasResource["dijit._editor.plugins.AlwaysShowToolbar"]=true;
dojo.provide("dijit._editor.plugins.AlwaysShowToolbar");
dojo.declare("dijit._editor.plugins.AlwaysShowToolbar",dijit._editor._Plugin,{_handleScroll:true,setEditor:function(e){
if(!e.iframe){
console.log("Port AlwaysShowToolbar plugin to work with Editor without iframe");
return;
}
this.editor=e;
e.onLoadDeferred.addCallback(dojo.hitch(this,this.enable));
},enable:function(d){
this._updateHeight();
this.connect(window,"onscroll","globalOnScrollHandler");
this.connect(this.editor,"onNormalizedDisplayChanged","_updateHeight");
return d;
},_updateHeight:function(){
var e=this.editor;
if(!e.isLoaded){
return;
}
if(e.height){
return;
}
var _5cd=dojo.marginBox(e.editNode).h;
if(dojo.isOpera){
_5cd=e.editNode.scrollHeight;
}
if(!_5cd){
_5cd=dojo.marginBox(e.document.body).h;
}
if(_5cd==0){
console.debug("Can not figure out the height of the editing area!");
return;
}
if(dojo.isIE<=7&&this.editor.minHeight){
var min=parseInt(this.editor.minHeight);
if(_5cd<min){
_5cd=min;
}
}
if(_5cd!=this._lastHeight){
this._lastHeight=_5cd;
dojo.marginBox(e.iframe,{h:this._lastHeight});
}
},_lastHeight:0,globalOnScrollHandler:function(){
var _5ce=dojo.isIE<7;
if(!this._handleScroll){
return;
}
var tdn=this.editor.header;
var db=dojo.body;
if(!this._scrollSetUp){
this._scrollSetUp=true;
this._scrollThreshold=dojo.position(tdn,true).y;
}
var _5cf=dojo._docScroll().y;
var s=tdn.style;
if(_5cf>this._scrollThreshold&&_5cf<this._scrollThreshold+this._lastHeight){
if(!this._fixEnabled){
var _5d0=dojo.marginBox(tdn);
this.editor.iframe.style.marginTop=_5d0.h+"px";
if(_5ce){
s.left=dojo.position(tdn).x;
if(tdn.previousSibling){
this._IEOriginalPos=["after",tdn.previousSibling];
}else{
if(tdn.nextSibling){
this._IEOriginalPos=["before",tdn.nextSibling];
}else{
this._IEOriginalPos=["last",tdn.parentNode];
}
}
dojo.body().appendChild(tdn);
dojo.addClass(tdn,"dijitIEFixedToolbar");
}else{
s.position="fixed";
s.top="0px";
}
dojo.marginBox(tdn,{w:_5d0.w});
s.zIndex=2000;
this._fixEnabled=true;
}
var _5d1=(this.height)?parseInt(this.editor.height):this.editor._lastHeight;
s.display=(_5cf>this._scrollThreshold+_5d1)?"none":"";
}else{
if(this._fixEnabled){
this.editor.iframe.style.marginTop="";
s.position="";
s.top="";
s.zIndex="";
s.display="";
if(_5ce){
s.left="";
dojo.removeClass(tdn,"dijitIEFixedToolbar");
if(this._IEOriginalPos){
dojo.place(tdn,this._IEOriginalPos[1],this._IEOriginalPos[0]);
this._IEOriginalPos=null;
}else{
dojo.place(tdn,this.editor.iframe,"before");
}
}
s.width="";
this._fixEnabled=false;
}
}
},destroy:function(){
this._IEOriginalPos=null;
this._handleScroll=false;
dojo.forEach(this._connects,dojo.disconnect);
if(dojo.isIE<7){
dojo.removeClass(this.editor.header,"dijitIEFixedToolbar");
}
}});
}
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:"",selectOnClick:false,templateString:dojo.cache("dijit.form","templates/TextBox.html","<input class=\"dijit dijitReset dijitLeft\" dojoAttachPoint='textbox,focusNode'\n\tautocomplete=\"off\" type=\"${type}\" ${nameAttrSetting}\n\t/>\n"),baseClass:"dijitTextBox",attributeMap:dojo.delegate(dijit.form._FormValueWidget.prototype.attributeMap,{maxLength:"focusNode"}),_getValueAttr:function(){
return this.parse(this.attr("displayedValue"),this.constraints);
},_setValueAttr:function(_5d2,_5d3,_5d4){
var _5d5;
if(_5d2!==undefined){
_5d5=this.filter(_5d2);
if(typeof _5d4!="string"){
if(_5d5!==null&&((typeof _5d5!="number")||!isNaN(_5d5))){
_5d4=this.filter(this.format(_5d5,this.constraints));
}else{
_5d4="";
}
}
}
if(_5d4!=null&&_5d4!=undefined&&((typeof _5d4)!="number"||!isNaN(_5d4))&&this.textbox.value!=_5d4){
this.textbox.value=_5d4;
}
this.inherited(arguments,[_5d5,_5d3]);
},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(_5d6){
dojo.deprecated(this.declaredClass+"::setDisplayedValue() is deprecated. Use attr('displayedValue', ...) instead.","","2.0");
this.attr("displayedValue",_5d6);
},_setDisplayedValueAttr:function(_5d7){
if(_5d7===null||_5d7===undefined){
_5d7="";
}else{
if(typeof _5d7!="string"){
_5d7=String(_5d7);
}
}
this.textbox.value=_5d7;
this._setValueAttr(this.attr("value"),undefined,_5d7);
},format:function(_5d8,_5d9){
return ((_5d8==null||_5d8==undefined)?"":(_5d8.toString?_5d8.toString():_5d8));
},parse:function(_5da,_5db){
return _5da;
},_refreshState:function(){
},_onInput:function(e){
if(e&&e.type&&/key/i.test(e.type)&&e.keyCode){
switch(e.keyCode){
case dojo.keys.SHIFT:
case dojo.keys.ALT:
case dojo.keys.CTRL:
case dojo.keys.TAB:
return;
}
}
if(this.intermediateChanges){
var _5dc=this;
setTimeout(function(){
_5dc._handleOnChange(_5dc.attr("value"),false);
},0);
}
this._refreshState();
},postCreate:function(){
this.textbox.setAttribute("value",this.textbox.value);
this.inherited(arguments);
if(dojo.isMoz||dojo.isOpera){
this.connect(this.textbox,"oninput",this._onInput);
}else{
this.connect(this.textbox,"onkeydown",this._onInput);
this.connect(this.textbox,"onkeyup",this._onInput);
this.connect(this.textbox,"onpaste",this._onInput);
this.connect(this.textbox,"oncut",this._onInput);
}
},_blankValue:"",filter:function(val){
if(val===null){
return this._blankValue;
}
if(typeof val!="string"){
return val;
}
if(this.trim){
val=dojo.trim(val);
}
if(this.uppercase){
val=val.toUpperCase();
}
if(this.lowercase){
val=val.toLowerCase();
}
if(this.propercase){
val=val.replace(/[^\s]+/g,function(word){
return word.substring(0,1).toUpperCase()+word.substring(1);
});
}
return val;
},_setBlurValue:function(){
this._setValueAttr(this.attr("value"),true);
},_onBlur:function(e){
if(this.disabled){
return;
}
this._setBlurValue();
this.inherited(arguments);
if(this._selectOnClickHandle){
this.disconnect(this._selectOnClickHandle);
}
if(this.selectOnClick&&dojo.isMoz){
this.textbox.selectionStart=this.textbox.selectionEnd=undefined;
}
},_onFocus:function(by){
if(this.disabled||this.readOnly){
return;
}
if(this.selectOnClick&&by=="mouse"){
this._selectOnClickHandle=this.connect(this.domNode,"onmouseup",function(){
this.disconnect(this._selectOnClickHandle);
var _5dd;
if(dojo.isIE){
var _5de=dojo.doc.selection.createRange();
var _5df=_5de.parentElement();
_5dd=_5df==this.textbox&&_5de.text.length==0;
}else{
_5dd=this.textbox.selectionStart==this.textbox.selectionEnd;
}
if(_5dd){
dijit.selectInputText(this.textbox);
}
});
}
this._refreshState();
this.inherited(arguments);
},reset:function(){
this.textbox.value="";
this.inherited(arguments);
}});
dijit.selectInputText=function(_5e0,_5e1,stop){
var _5e2=dojo.global;
var _5e3=dojo.doc;
_5e0=dojo.byId(_5e0);
if(isNaN(_5e1)){
_5e1=0;
}
if(isNaN(stop)){
stop=_5e0.value?_5e0.value.length:0;
}
dijit.focus(_5e0);
if(_5e3["selection"]&&dojo.body()["createTextRange"]){
if(_5e0.createTextRange){
var _5e4=_5e0.createTextRange();
with(_5e4){
collapse(true);
moveStart("character",-99999);
moveStart("character",_5e1);
moveEnd("character",stop-_5e1);
select();
}
}
}else{
if(_5e2["getSelection"]){
if(_5e0.setSelectionRange){
_5e0.setSelectionRange(_5e1,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:dojo.cache("dijit","templates/Tooltip.html","<div class=\"dijitTooltip dijitTooltipLeft\" id=\"dojoTooltip\">\n\t<div class=\"dijitTooltipContainer dijitTooltipContents\" dojoAttachPoint=\"containerNode\" waiRole='alert'></div>\n\t<div class=\"dijitTooltipConnector\"></div>\n</div>\n"),postCreate:function(){
dojo.body().appendChild(this.domNode);
this.bgIframe=new dijit.BackgroundIframe(this.domNode);
this.fadeIn=dojo.fadeIn({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,"_onShow")});
this.fadeOut=dojo.fadeOut({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,"_onHide")});
},show:function(_5e5,_5e6,_5e7){
if(this.aroundNode&&this.aroundNode===_5e6){
return;
}
if(this.fadeOut.status()=="playing"){
this._onDeck=arguments;
return;
}
this.containerNode.innerHTML=_5e5;
var pos=dijit.placeOnScreenAroundElement(this.domNode,_5e6,dijit.getPopupAroundAlignment((_5e7&&_5e7.length)?_5e7:dijit.Tooltip.defaultPosition,this.isLeftToRight()),dojo.hitch(this,"orient"));
dojo.style(this.domNode,"opacity",0);
this.fadeIn.play();
this.isShowingNow=true;
this.aroundNode=_5e6;
},orient:function(node,_5e8,_5e9){
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"}[_5e8+"-"+_5e9];
},_onShow:function(){
if(dojo.isIE){
this.domNode.style.filter="";
}
},hide:function(_5ea){
if(this._onDeck&&this._onDeck[1]==_5ea){
this._onDeck=null;
}else{
if(this.aroundNode===_5ea){
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(_5eb,_5ec,_5ed){
if(!dijit._masterTT){
dijit._masterTT=new dijit._MasterTooltip();
}
return dijit._masterTT.show(_5eb,_5ec,_5ed);
};
dijit.hideTooltip=function(_5ee){
if(!dijit._masterTT){
dijit._masterTT=new dijit._MasterTooltip();
}
return dijit._masterTT.hide(_5ee);
};
dojo.declare("dijit.Tooltip",dijit._Widget,{label:"",showDelay:400,connectId:[],position:[],constructor:function(){
this._nodeConnectionsById={};
},_setConnectIdAttr:function(_5ef){
for(var _5f0 in this._nodeConnectionsById){
this.removeTarget(_5f0);
}
dojo.forEach(dojo.isArrayLike(_5ef)?_5ef:[_5ef],this.addTarget,this);
},_getConnectIdAttr:function(){
var ary=[];
for(var id in this._nodeConnectionsById){
ary.push(id);
}
return ary;
},addTarget:function(id){
var node=dojo.byId(id);
if(!node){
return;
}
if(node.id in this._nodeConnectionsById){
return;
}
this._nodeConnectionsById[node.id]=[this.connect(node,"onmouseenter","_onTargetMouseEnter"),this.connect(node,"onmouseleave","_onTargetMouseLeave"),this.connect(node,"onfocus","_onTargetFocus"),this.connect(node,"onblur","_onTargetBlur")];
if(dojo.isIE&&!node.style.zoom){
node.style.zoom=1;
}
},removeTarget:function(node){
var id=node.id||node;
if(id in this._nodeConnectionsById){
dojo.forEach(this._nodeConnectionsById[id],this.disconnect,this);
delete this._nodeConnectionsById[id];
}
},postCreate:function(){
dojo.addClass(this.domNode,"dijitTooltipData");
},startup:function(){
this.inherited(arguments);
var ids=this.connectId;
dojo.forEach(dojo.isArrayLike(ids)?ids:[ids],this.addTarget,this);
},_onTargetMouseEnter:function(e){
this._onHover(e);
},_onTargetMouseLeave:function(e){
this._onUnHover(e);
},_onTargetFocus:function(e){
this._focus=true;
this._onHover(e);
},_onTargetBlur:function(e){
this._focus=false;
this._onUnHover(e);
},_onHover:function(e){
if(!this._showTimer){
var _5f1=e.target;
this._showTimer=setTimeout(dojo.hitch(this,function(){
this.open(_5f1);
}),this.showDelay);
}
},_onUnHover:function(e){
if(this._focus){
return;
}
if(this._showTimer){
clearTimeout(this._showTimer);
delete this._showTimer;
}
this.close();
},open:function(_5f2){
if(this._showTimer){
clearTimeout(this._showTimer);
delete this._showTimer;
}
dijit.showTooltip(this.label||this.domNode.innerHTML,_5f2,this.position);
this._connectNode=_5f2;
this.onShow(_5f2,this.position);
},close:function(){
if(this._connectNode){
dijit.hideTooltip(this._connectNode);
delete this._connectNode;
this.onHide();
}
if(this._showTimer){
clearTimeout(this._showTimer);
delete this._showTimer;
}
},onShow:function(_5f3,_5f4){
},onHide:function(){
},uninitialize:function(){
this.close();
this.inherited(arguments);
}});
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:dojo.cache("dijit.form","templates/ValidationTextBox.html","<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\n\tid=\"widget_${id}\" waiRole=\"presentation\"\n\t><div style=\"overflow:hidden;\"\n\t\t><div class=\"dijitReset dijitValidationIcon\"><br></div\n\t\t><div class=\"dijitReset dijitValidationIconText\">&Chi;</div\n\t\t><div class=\"dijitReset dijitInputField\"\n\t\t\t><input class=\"dijitReset\" dojoAttachPoint='textbox,focusNode' autocomplete=\"off\"\n\t\t\t${nameAttrSetting} type='${type}'\n\t\t/></div\n\t></div\n></div>\n"),baseClass:"dijitTextBox",required:false,promptMessage:"",invalidMessage:"$_unset_$",constraints:{},regExp:".*",regExpGen:function(_5f5){
return this.regExp;
},state:"",tooltipPosition:[],_setValueAttr:function(){
this.inherited(arguments);
this.validate(this._focused);
},validator:function(_5f6,_5f7){
return (new RegExp("^(?:"+this.regExpGen(_5f7)+")"+(this.required?"":"?")+"$")).test(_5f6)&&(!this.required||!this._isEmpty(_5f6))&&(this._isEmpty(_5f6)||this.parse(_5f6,_5f7)!==undefined);
},_isValidSubset:function(){
return this.textbox.value.search(this._partialre)==0;
},isValid:function(_5f8){
return this.validator(this.textbox.value,this.constraints);
},_isEmpty:function(_5f9){
return /^\s*$/.test(_5f9);
},getErrorMessage:function(_5fa){
return this.invalidMessage;
},getPromptMessage:function(_5fb){
return this.promptMessage;
},_maskValidSubsetError:true,validate:function(_5fc){
var _5fd="";
var _5fe=this.disabled||this.isValid(_5fc);
if(_5fe){
this._maskValidSubsetError=true;
}
var _5ff=!_5fe&&_5fc&&this._isValidSubset();
var _600=this._isEmpty(this.textbox.value);
if(_600){
this._maskValidSubsetError=true;
}
this.state=(_5fe||(!this._hasBeenBlurred&&_600)||_5ff)?"":"Error";
if(this.state=="Error"){
this._maskValidSubsetError=false;
}
this._setStateClass();
dijit.setWaiState(this.focusNode,"invalid",_5fe?"false":"true");
if(_5fc){
if(_600){
_5fd=this.getPromptMessage(true);
}
if(!_5fd&&(this.state=="Error"||(_5ff&&!this._maskValidSubsetError))){
_5fd=this.getErrorMessage(true);
}
}
this.displayMessage(_5fd);
return _5fe;
},_message:"",displayMessage:function(_601){
if(this._message==_601){
return;
}
this._message=_601;
dijit.hideTooltip(this.domNode);
if(_601){
dijit.showTooltip(_601,this.domNode,this.tooltipPosition);
}
},_refreshState:function(){
this.validate(this._focused);
this.inherited(arguments);
},constructor:function(){
this.constraints={};
},postMixInProperties:function(){
this.inherited(arguments);
this.constraints.locale=this.lang;
this.messages=dojo.i18n.getLocalization("dijit.form","validate",this.lang);
if(this.invalidMessage=="$_unset_$"){
this.invalidMessage=this.messages.invalidMessage;
}
var p=this.regExpGen(this.constraints);
this.regExp=p;
var _602="";
if(p!=".*"){
this.regExp.replace(/\\.|\[\]|\[.*?[^\\]{1}\]|\{.*?\}|\(\?[=:!]|./g,function(re){
switch(re.charAt(0)){
case "{":
case "+":
case "?":
case "*":
case "^":
case "$":
case "|":
case "(":
_602+=re;
break;
case ")":
_602+="|$)";
break;
default:
_602+="(?:"+re+"|$)";
break;
}
});
}
try{
"".search(_602);
}
catch(e){
_602=this.regExp;
console.warn("RegExp error in "+this.declaredClass+": "+this.regExp);
}
this._partialre="^(?:"+_602+")$";
},_setDisabledAttr:function(_603){
this.inherited(arguments);
this._refreshState();
},_setRequiredAttr:function(_604){
this.required=_604;
dijit.setWaiState(this.focusNode,"required",_604);
this._refreshState();
},postCreate:function(){
if(dojo.isIE){
var s=dojo.getComputedStyle(this.focusNode);
if(s){
var ff=s.fontFamily;
if(ff){
this.focusNode.style.fontFamily=ff;
}
}
}
this.inherited(arguments);
},reset:function(){
this._maskValidSubsetError=true;
this.inherited(arguments);
},_onBlur:function(){
this.displayMessage("");
this.inherited(arguments);
}});
dojo.declare("dijit.form.MappedTextBox",dijit.form.ValidationTextBox,{postMixInProperties:function(){
this.inherited(arguments);
this.nameAttrSetting="";
},serialize:function(val,_605){
return val.toString?val.toString():"";
},toString:function(){
var val=this.filter(this.attr("value"));
return val!=null?(typeof val=="string"?val:this.serialize(val,this.constraints)):"";
},validate:function(){
this.valueNode.value=this.toString();
return this.inherited(arguments);
},buildRendering:function(){
this.inherited(arguments);
this.valueNode=dojo.place("<input type='hidden'"+(this.name?" name='"+this.name+"'":"")+">",this.textbox,"after");
},reset:function(){
this.valueNode.value="";
this.inherited(arguments);
}});
dojo.declare("dijit.form.RangeBoundTextBox",dijit.form.MappedTextBox,{rangeMessage:"",rangeCheck:function(_606,_607){
return ("min" in _607?(this.compare(_606,_607.min)>=0):true)&&("max" in _607?(this.compare(_606,_607.max)<=0):true);
},isInRange:function(_608){
return this.rangeCheck(this.attr("value"),this.constraints);
},_isDefinitelyOutOfRange:function(){
var val=this.attr("value");
var _609=false;
var _60a=false;
if("min" in this.constraints){
var min=this.constraints.min;
min=this.compare(val,((typeof min=="number")&&min>=0&&val!=0)?0:min);
_609=(typeof min=="number")&&min<0;
}
if("max" in this.constraints){
var max=this.constraints.max;
max=this.compare(val,((typeof max!="number")||max>0)?max:0);
_60a=(typeof max=="number")&&max>0;
}
return _609||_60a;
},_isValidSubset:function(){
return this.inherited(arguments)&&!this._isDefinitelyOutOfRange();
},isValid:function(_60b){
return this.inherited(arguments)&&((this._isEmpty(this.textbox.value)&&!this.required)||this.isInRange(_60b));
},getErrorMessage:function(_60c){
var v=this.attr("value");
if(v!==null&&v!==""&&v!==undefined&&!this.isInRange(_60c)){
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(_60d,_60e){
dijit.setWaiState(this.focusNode,"valuenow",_60d);
this.inherited(arguments);
}});
}
if(!dojo._hasResource["dojo.data.util.sorter"]){
dojo._hasResource["dojo.data.util.sorter"]=true;
dojo.provide("dojo.data.util.sorter");
dojo.data.util.sorter.basicComparator=function(a,b){
var r=-1;
if(a===null){
a=undefined;
}
if(b===null){
b=undefined;
}
if(a==b){
r=0;
}else{
if(a>b||a==null){
r=1;
}
}
return r;
};
dojo.data.util.sorter.createSortFunction=function(_60f,_610){
var _611=[];
function _612(attr,dir,comp,s){
return function(_613,_614){
var a=s.getValue(_613,attr);
var b=s.getValue(_614,attr);
return dir*comp(a,b);
};
};
var _615;
var map=_610.comparatorMap;
var bc=dojo.data.util.sorter.basicComparator;
for(var i=0;i<_60f.length;i++){
_615=_60f[i];
var attr=_615.attribute;
if(attr){
var dir=(_615.descending)?-1:1;
var comp=bc;
if(map){
if(typeof attr!=="string"&&("toString" in attr)){
attr=attr.toString();
}
comp=map[attr]||bc;
}
_611.push(_612(attr,dir,comp,_610));
}
}
return function(rowA,rowB){
var i=0;
while(i<_611.length){
var ret=_611[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(_616){
_616=_616||{};
if(!_616.store){
_616.store=this;
}
var self=this;
var _617=function(_618,_619){
if(_619.onError){
var _61a=_619.scope||dojo.global;
_619.onError.call(_61a,_618,_619);
}
};
var _61b=function(_61c,_61d){
var _61e=_61d.abort||null;
var _61f=false;
var _620=_61d.start?_61d.start:0;
var _621=(_61d.count&&(_61d.count!==Infinity))?(_620+_61d.count):_61c.length;
_61d.abort=function(){
_61f=true;
if(_61e){
_61e.call(_61d);
}
};
var _622=_61d.scope||dojo.global;
if(!_61d.store){
_61d.store=self;
}
if(_61d.onBegin){
_61d.onBegin.call(_622,_61c.length,_61d);
}
if(_61d.sort){
_61c.sort(dojo.data.util.sorter.createSortFunction(_61d.sort,self));
}
if(_61d.onItem){
for(var i=_620;(i<_61c.length)&&(i<_621);++i){
var item=_61c[i];
if(!_61f){
_61d.onItem.call(_622,item,_61d);
}
}
}
if(_61d.onComplete&&!_61f){
var _623=null;
if(!_61d.onItem){
_623=_61c.slice(_620,_621);
}
_61d.onComplete.call(_622,_623,_61d);
}
};
this._fetchItems(_616,_61b,_617);
return _616;
};
}
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(_624,_625){
var rxp="^";
var c=null;
for(var i=0;i<_624.length;i++){
c=_624.charAt(i);
switch(c){
case "\\":
rxp+=c;
i++;
rxp+=_624.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(_625){
return new RegExp(rxp,"mi");
}else{
return new RegExp(rxp,"m");
}
};
}
if(!dojo._hasResource["dojo.regexp"]){
dojo._hasResource["dojo.regexp"]=true;
dojo.provide("dojo.regexp");
dojo.regexp.escapeString=function(str,_626){
return str.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(ch){
if(_626&&_626.indexOf(ch)!=-1){
return ch;
}
return "\\"+ch;
});
};
dojo.regexp.buildGroupRE=function(arr,re,_627){
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("|"),_627);
};
dojo.regexp.group=function(_628,_629){
return "("+(_629?"?:":"")+_628+")";
};
}
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:dojo.cache("dijit.form","templates/ComboBox.html","<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\n\tid=\"widget_${id}\"\n\tdojoAttachPoint=\"comboNode\" waiRole=\"combobox\" tabIndex=\"-1\"\n\t><div style=\"overflow:hidden;\"\n\t\t><div class='dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton'\n\t\t\tdojoAttachPoint=\"downArrowNode\" waiRole=\"presentation\"\n\t\t\tdojoAttachEvent=\"onmousedown:_onArrowMouseDown\"\n\t\t\t><div class=\"dijitArrowButtonInner\">&thinsp;</div\n\t\t\t><div class=\"dijitArrowButtonChar\">&#9660;</div\n\t\t></div\n\t\t><div class=\"dijitReset dijitValidationIcon\"><br></div\n\t\t><div class=\"dijitReset dijitValidationIconText\">&Chi;</div\n\t\t><div class=\"dijitReset dijitInputField\"\n\t\t\t><input ${nameAttrSetting} type=\"text\" autocomplete=\"off\" class='dijitReset'\n\t\t\tdojoAttachEvent=\"onkeypress:_onKeyPress,compositionend\"\n\t\t\tdojoAttachPoint=\"textbox,focusNode\" waiRole=\"textbox\" waiState=\"haspopup-true,autocomplete-list\"\n\t\t/></div\n\t></div\n></div>\n"),baseClass:"dijitComboBox",cssStateNodes:{"downArrowNode":"dijitDownArrowButton"},_getCaretPos:function(_62a){
var pos=0;
if(typeof (_62a.selectionStart)=="number"){
pos=_62a.selectionStart;
}else{
if(dojo.isIE){
var tr=dojo.doc.selection.createRange().duplicate();
var ntr=_62a.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(_62b,_62c){
_62c=parseInt(_62c);
dijit.selectInputText(_62b,_62c,_62c);
},_setDisabledAttr:function(_62d){
this.inherited(arguments);
dijit.setWaiState(this.comboNode,"disabled",_62d);
},_abortQuery:function(){
if(this.searchTimer){
clearTimeout(this.searchTimer);
this.searchTimer=null;
}
if(this._fetchHandle){
if(this._fetchHandle.abort){
this._fetchHandle.abort();
}
this._fetchHandle=null;
}
},_onKeyPress:function(evt){
var key=evt.charOrCode;
if(evt.altKey||((evt.ctrlKey||evt.metaKey)&&(key!="x"&&key!="v"))||key==dojo.keys.SHIFT){
return;
}
var _62e=false;
var _62f="_startSearchFromInput";
var pw=this._popupWidget;
var dk=dojo.keys;
var _630=null;
this._prev_key_backspace=false;
this._abortQuery();
if(this._isShowingNow){
pw.handleKey(key);
_630=pw.getHighlightedOption();
}
switch(key){
case dk.PAGE_DOWN:
case dk.DOWN_ARROW:
case dk.PAGE_UP:
case dk.UP_ARROW:
if(!this._isShowingNow){
this._arrowPressed();
_62e=true;
_62f="_startSearchAll";
}else{
this._announceOption(_630);
}
dojo.stopEvent(evt);
break;
case dk.ENTER:
if(_630){
if(_630==pw.nextButton){
this._nextSearch(1);
dojo.stopEvent(evt);
break;
}else{
if(_630==pw.previousButton){
this._nextSearch(-1);
dojo.stopEvent(evt);
break;
}
}
}else{
this._setBlurValue();
this._setCaretPos(this.focusNode,this.focusNode.value.length);
}
evt.preventDefault();
case dk.TAB:
var _631=this.attr("displayedValue");
if(pw&&(_631==pw._messages["previousMessage"]||_631==pw._messages["nextMessage"])){
break;
}
if(_630){
this._selectOption();
}
if(this._isShowingNow){
this._lastQuery=null;
this._hideResultList();
}
break;
case " ":
if(_630){
dojo.stopEvent(evt);
this._selectOption();
this._hideResultList();
}else{
_62e=true;
}
break;
case dk.ESCAPE:
if(this._isShowingNow){
dojo.stopEvent(evt);
this._hideResultList();
}
break;
case dk.DELETE:
case dk.BACKSPACE:
this._prev_key_backspace=true;
_62e=true;
break;
default:
_62e=typeof key=="string"||key==229;
}
if(_62e){
this.item=undefined;
this.searchTimer=setTimeout(dojo.hitch(this,_62f),1);
}
},_autoCompleteText:function(text){
var fn=this.focusNode;
dijit.selectInputText(fn,fn.value.length);
var _632=this.ignoreCase?"toLowerCase":"substr";
if(text[_632](0).indexOf(this.focusNode.value[_632](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(_633,_634){
this._fetchHandle=null;
if(this.disabled||this.readOnly||(_634.query[this.searchAttr]!=this._lastQuery)){
return;
}
this._popupWidget.clearResultList();
if(!_633.length&&!this._maxOptions){
this._hideResultList();
return;
}
_634._maxOptions=this._maxOptions;
var _635=this._popupWidget.createOptions(_633,_634,dojo.hitch(this,"_getMenuLabelFromItem"));
this._showResultList();
if(_634.direction){
if(1==_634.direction){
this._popupWidget.highlightFirstOption();
}else{
if(-1==_634.direction){
this._popupWidget.highlightLastOption();
}
}
this._announceOption(this._popupWidget.getHighlightedOption());
}else{
if(this.autoComplete&&!this._prev_key_backspace&&!/^[*]+$/.test(_634.query[this.searchAttr])){
this._announceOption(_635[1]);
}
}
},_showResultList:function(){
this._hideResultList();
this._arrowPressed();
this.displayMessage("");
dojo.style(this._popupWidget.domNode,{width:"",height:""});
var best=this.open();
var _636=dojo.marginBox(this._popupWidget.domNode);
this._popupWidget.domNode.style.overflow=((best.h==_636.h)&&(best.w==_636.w))?"hidden":"auto";
var _637=best.w;
if(best.h<this._popupWidget.domNode.scrollHeight){
_637+=16;
}
dojo.marginBox(this._popupWidget.domNode,{h:best.h,w:Math.max(_637,this.domNode.offsetWidth)});
if(_637<this.domNode.offsetWidth){
this._popupWidget.domNode.parentNode.style.left=dojo.position(this.domNode).x+"px";
}
dijit.setWaiState(this.comboNode,"expanded","true");
},_hideResultList:function(){
this._abortQuery();
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 _638=this.attr("displayedValue");
var pw=this._popupWidget;
if(pw&&(_638==pw._messages["previousMessage"]||_638==pw._messages["nextMessage"])){
this._setValueAttr(this._lastValueReported,true);
}else{
if(typeof this.item=="undefined"){
this.item=null;
this.attr("displayedValue",_638);
}else{
if(this.value!=this._lastValueReported){
dijit.form._FormValueWidget.prototype._setValueAttr.call(this,this.value,true);
}
this._refreshState();
}
}
},_onBlur:function(){
this._hideResultList();
this._arrowIdle();
this.inherited(arguments);
},_setItemAttr:function(item,_639,_63a){
if(!_63a){
_63a=this.labelFunc(item,this.store);
}
this.value=this._getValueField()!=this.searchAttr?this.store.getIdentity(item):_63a;
this.item=item;
dijit.form.ComboBox.superclass._setValueAttr.call(this,this.value,_639,_63a);
},_announceOption:function(node){
if(!node){
return;
}
var _63b;
if(node==this._popupWidget.nextButton||node==this._popupWidget.previousButton){
_63b=node.innerHTML;
this.item=undefined;
this.value="";
}else{
_63b=this.labelFunc(node.item,this.store);
this.attr("item",node.item,false,_63b);
}
this.focusNode.value=this.focusNode.value.substring(0,this._lastInput.length);
dijit.setWaiState(this.focusNode,"activedescendant",dojo.attr(node,"id"));
this._autoCompleteText(_63b);
},_selectOption:function(evt){
if(evt){
this._announceOption(evt.target);
}
this._hideResultList();
this._setCaretPos(this.focusNode,this.focusNode.value.length);
dijit.form._FormValueWidget.prototype._setValueAttr.call(this,this.value,true);
},_onArrowMouseDown:function(evt){
if(this.disabled||this.readOnly){
return;
}
dojo.stopEvent(evt);
this.focus();
if(this._isShowingNow){
this._hideResultList();
}else{
this._startSearchAll();
}
},_startSearchAll:function(){
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 _63c=this.id+"_popup";
this._popupWidget=new dijit.form._ComboBoxMenu({onChange:dojo.hitch(this,this._selectOption),id:_63c});
dijit.removeWaiState(this.focusNode,"activedescendant");
dijit.setWaiState(this.textbox,"owns",_63c);
}
var _63d=dojo.clone(this.query);
this._lastInput=key;
this._lastQuery=_63d[this.searchAttr]=this._getQueryString(key);
this.searchTimer=setTimeout(dojo.hitch(this,function(_63e,_63f){
this.searchTimer=null;
var _640={queryOptions:{ignoreCase:this.ignoreCase,deep:true},query:_63e,onBegin:dojo.hitch(this,"_setMaxOptions"),onComplete:dojo.hitch(this,"_openResultList"),onError:function(_641){
_63f._fetchHandle=null;
console.error("dijit.form.ComboBox: "+_641);
dojo.hitch(_63f,"_hideResultList")();
},start:0,count:this.pageSize};
dojo.mixin(_640,_63f.fetchProperties);
this._fetchHandle=_63f.store.fetch(_640);
var _642=function(_643,_644){
_643.start+=_643.count*_644;
_643.direction=_644;
this._fetchHandle=this.store.fetch(_643);
};
this._nextSearch=this._popupWidget.onPage=dojo.hitch(this,_642,this._fetchHandle);
},_63d,this),this.searchDelay);
},_setMaxOptions:function(size,_645){
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 _646=this.srcNodeRef;
this.store=new dijit.form._ComboBoxDataStore(_646);
if(!this.value||((typeof _646.selectedIndex=="number")&&_646.selectedIndex.toString()===this.value)){
var item=this.store.fetchSelectedItem();
if(item){
var _647=this._getValueField();
this.value=_647!=this.searchAttr?this.store.getValue(item,_647):this.labelFunc(item,this.store);
}
}
}
this.inherited(arguments);
},postCreate:function(){
var _648=dojo.query("label[for=\""+this.id+"\"]");
if(_648.length){
_648[0].id=(this.id+"_label");
var cn=this.comboNode;
dijit.setWaiState(cn,"labelledby",_648[0].id);
}
this.inherited(arguments);
},uninitialize:function(){
if(this._popupWidget&&!this._popupWidget._destroyed){
this._hideResultList();
this._popupWidget.destroy();
}
this.inherited(arguments);
},_getMenuLabelFromItem:function(item){
var _649=this.labelAttr?this.store.getValue(item,this.labelAttr):this.labelFunc(item,this.store);
var _64a=this.labelType;
if(this.highlightMatch!="none"&&this.labelType=="text"&&this._lastInput){
_649=this.doHighlight(_649,this._escapeHtml(this._lastInput));
_64a="html";
}
return {html:_64a=="html",label:_649};
},doHighlight:function(_64b,find){
var _64c="i"+(this.highlightMatch=="all"?"g":"");
var _64d=this._escapeHtml(_64b);
find=dojo.regexp.escapeString(find);
var ret=_64d.replace(new RegExp("(^|\\s)("+find+")",_64c),"$1<span class=\"dijitComboBoxHighlightMatch\">$2</span>");
return ret;
},_escapeHtml:function(str){
str=String(str).replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");
return str;
},open:function(){
this._isShowingNow=true;
return dijit.popup.open({popup:this._popupWidget,around:this.domNode,parent:this});
},reset:function(){
this.item=null;
this.inherited(arguments);
},labelFunc:function(item,_64e){
return _64e.getValue(item,this.searchAttr).toString();
}});
dojo.declare("dijit.form._ComboBoxMenu",[dijit._Widget,dijit._Templated],{templateString:"<ul class='dijitReset dijitMenu' dojoAttachEvent='onmousedown:_onMouseDown,onmouseup:_onMouseUp,onmouseover:_onMouseOver,onmouseout:_onMouseOut' tabIndex='-1' style='overflow: \"auto\"; overflow-x: \"hidden\";'>"+"<li class='dijitMenuItem dijitMenuPreviousButton' dojoAttachPoint='previousButton' waiRole='option'></li>"+"<li class='dijitMenuItem dijitMenuNextButton' dojoAttachPoint='nextButton' waiRole='option'></li>"+"</ul>",_messages:null,postMixInProperties:function(){
this._messages=dojo.i18n.getLocalization("dijit.form","ComboBox",this.lang);
this.inherited(arguments);
},_setValueAttr:function(_64f){
this.value=_64f;
this.onChange(_64f);
},onChange:function(_650){
},onPage:function(_651){
},postCreate:function(){
this.previousButton.innerHTML=this._messages["previousMessage"];
this.nextButton.innerHTML=this._messages["nextMessage"];
this.inherited(arguments);
},onClose:function(){
this._blurOptionNode();
},_createOption:function(item,_652){
var _653=_652(item);
var _654=dojo.doc.createElement("li");
dijit.setWaiRole(_654,"option");
if(_653.html){
_654.innerHTML=_653.label;
}else{
_654.appendChild(dojo.doc.createTextNode(_653.label));
}
if(_654.innerHTML==""){
_654.innerHTML="&nbsp;";
}
_654.item=item;
return _654;
},createOptions:function(_655,_656,_657){
this.previousButton.style.display=(_656.start==0)?"none":"";
dojo.attr(this.previousButton,"id",this.id+"_prev");
dojo.forEach(_655,function(item,i){
var _658=this._createOption(item,_657);
_658.className="dijitReset dijitMenuItem";
dojo.attr(_658,"id",this.id+i);
this.domNode.insertBefore(_658,this.nextButton);
},this);
var _659=false;
if(_656._maxOptions&&_656._maxOptions!=-1){
if((_656.start+_656.count)<_656._maxOptions){
_659=true;
}else{
if((_656.start+_656.count)>_656._maxOptions&&_656.count==_655.length){
_659=true;
}
}
}else{
if(_656.count==_655.length){
_659=true;
}
}
this.nextButton.style.display=_659?"":"none";
dojo.attr(this.nextButton,"id",this.id+"_next");
return this.domNode.childNodes;
},clearResultList:function(){
while(this.domNode.childNodes.length>2){
this.domNode.removeChild(this.domNode.childNodes[this.domNode.childNodes.length-2]);
}
},_onMouseDown:function(evt){
dojo.stopEvent(evt);
},_onMouseUp:function(evt){
if(evt.target===this.domNode||!this._highlighted_option){
return;
}else{
if(evt.target==this.previousButton){
this.onPage(-1);
}else{
if(evt.target==this.nextButton){
this.onPage(1);
}else{
var tgt=evt.target;
while(!tgt.item){
tgt=tgt.parentNode;
}
this._setValueAttr({target:tgt},true);
}
}
}
},_onMouseOver:function(evt){
if(evt.target===this.domNode){
return;
}
var tgt=evt.target;
if(!(tgt==this.previousButton||tgt==this.nextButton)){
while(!tgt.item){
tgt=tgt.parentNode;
}
}
this._focusOptionNode(tgt);
},_onMouseOut:function(evt){
if(evt.target===this.domNode){
return;
}
this._blurOptionNode();
},_focusOptionNode:function(node){
if(this._highlighted_option!=node){
this._blurOptionNode();
this._highlighted_option=node;
dojo.addClass(this._highlighted_option,"dijitMenuItemSelected");
}
},_blurOptionNode:function(){
if(this._highlighted_option){
dojo.removeClass(this._highlighted_option,"dijitMenuItemSelected");
this._highlighted_option=null;
}
},_highlightNextOption:function(){
if(!this.getHighlightedOption()){
var fc=this.domNode.firstChild;
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);
}else{
this.highlightFirstOption();
}
}
dijit.scrollIntoView(this._highlighted_option);
},highlightFirstOption:function(){
var _65a=this.domNode.firstChild;
var _65b=_65a.nextSibling;
this._focusOptionNode(_65b.style.display=="none"?_65a:_65b);
dijit.scrollIntoView(this._highlighted_option);
},highlightLastOption:function(){
this._focusOptionNode(this.domNode.lastChild.previousSibling);
dijit.scrollIntoView(this._highlighted_option);
},_highlightPrevOption:function(){
if(!this.getHighlightedOption()){
var lc=this.domNode.lastChild;
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);
}else{
this.highlightLastOption();
}
}
dijit.scrollIntoView(this._highlighted_option);
},_page:function(up){
var _65c=0;
var _65d=this.domNode.scrollTop;
var _65e=dojo.style(this.domNode,"height");
if(!this.getHighlightedOption()){
this._highlightNextOption();
}
while(_65c<_65e){
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 _65f=this.domNode.scrollTop;
_65c+=(_65f-_65d)*(up?-1:1);
_65d=_65f;
}
},pageUp:function(){
this._page(true);
},pageDown:function(){
this._page(false);
},getHighlightedOption:function(){
var ho=this._highlighted_option;
return (ho&&ho.parentNode)?ho:null;
},handleKey:function(key){
switch(key){
case dojo.keys.DOWN_ARROW:
this._highlightNextOption();
break;
case dojo.keys.PAGE_DOWN:
this.pageDown();
break;
case dojo.keys.UP_ARROW:
this._highlightPrevOption();
break;
case dojo.keys.PAGE_UP:
this.pageUp();
break;
}
}});
dojo.declare("dijit.form.ComboBox",[dijit.form.ValidationTextBox,dijit.form.ComboBoxMixin],{_setValueAttr:function(_660,_661,_662){
this.item=null;
if(!_660){
_660="";
}
dijit.form.ValidationTextBox.prototype._setValueAttr.call(this,_660,_661,_662);
}});
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,_663,_664){
return (_663=="value")?item.value:(item.innerText||item.textContent||"");
},isItemLoaded:function(_665){
return true;
},getFeatures:function(){
return {"dojo.data.api.Read":true,"dojo.data.api.Identity":true};
},_fetchItems:function(args,_666,_667){
if(!args.query){
args.query={};
}
if(!args.query.name){
args.query.name="";
}
if(!args.queryOptions){
args.queryOptions={};
}
var _668=dojo.data.util.filter.patternToRegExp(args.query.name,args.queryOptions.ignoreCase),_669=dojo.query("> option",this.root).filter(function(_66a){
return (_66a.innerText||_66a.textContent||"").match(_668);
});
if(args.sort){
_669.sort(dojo.data.util.sorter.createSortFunction(args.sort,this));
}
_666(_669,args);
},close:function(_66b){
return;
},getLabel:function(item){
return item.innerHTML;
},getIdentity:function(item){
return dojo.attr(item,"value");
},fetchItemByIdentity:function(args){
var item=dojo.query("option[value='"+args.identity+"']",this.root)[0];
args.onItem(item);
},fetchSelectedItem:function(){
var root=this.root,si=root.selectedIndex;
return dojo.query("> option:nth-child("+(si!=-1?si+1:1)+")",root)[0];
}});
dojo.extend(dijit.form._ComboBoxDataStore,dojo.data.util.simpleFetch);
}
if(!dojo._hasResource["dijit.form.FilteringSelect"]){
dojo._hasResource["dijit.form.FilteringSelect"]=true;
dojo.provide("dijit.form.FilteringSelect");
dojo.declare("dijit.form.FilteringSelect",[dijit.form.MappedTextBox,dijit.form.ComboBoxMixin],{_isvalid:true,required:true,_lastDisplayedValue:"",isValid:function(){
return this._isvalid||(!this.required&&this.attr("displayedValue")=="");
},_callbackSetLabel:function(_66c,_66d,_66e){
if((_66d&&_66d.query[this.searchAttr]!=this._lastQuery)||(!_66d&&_66c.length&&this.store.getIdentity(_66c[0])!=this._lastQuery)){
return;
}
if(!_66c.length){
this.valueNode.value="";
dijit.form.TextBox.superclass._setValueAttr.call(this,"",_66e||(_66e===undefined&&!this._focused));
this._isvalid=false;
this.validate(this._focused);
this.item=null;
}else{
this.attr("item",_66c[0],_66e);
}
},_openResultList:function(_66f,_670){
if(_670.query[this.searchAttr]!=this._lastQuery){
return;
}
this._isvalid=_66f.length||this._maxOptions;
this.validate(true);
dijit.form.ComboBoxMixin.prototype._openResultList.apply(this,arguments);
},_getValueAttr:function(){
return this.valueNode.value;
},_getValueField:function(){
return "value";
},_setValueAttr:function(_671,_672){
if(!this._onChangeActive){
_672=null;
}
this._lastQuery=_671;
if(_671===null||_671===""){
this._setDisplayedValueAttr("",_672);
return;
}
var self=this;
this.store.fetchItemByIdentity({identity:_671,onItem:function(item){
self._callbackSetLabel(item?[item]:[],undefined,_672);
}});
},_setItemAttr:function(item,_673,_674){
this._isvalid=true;
this.inherited(arguments);
this.valueNode.value=this.value;
this._lastDisplayedValue=this.textbox.value;
},_getDisplayQueryString:function(text){
return text.replace(/([\\\*\?])/g,"\\$1");
},_setDisplayedValueAttr:function(_675,_676){
if(!this._created){
_676=false;
}
if(this.store){
this._hideResultList();
var _677=dojo.clone(this.query);
this._lastQuery=_677[this.searchAttr]=this._getDisplayQueryString(_675);
this.textbox.value=_675;
this._lastDisplayedValue=_675;
var _678=this;
var _679={query:_677,queryOptions:{ignoreCase:this.ignoreCase,deep:true},onComplete:function(_67a,_67b){
_678._fetchHandle=null;
dojo.hitch(_678,"_callbackSetLabel")(_67a,_67b,_676);
},onError:function(_67c){
_678._fetchHandle=null;
console.error("dijit.form.FilteringSelect: "+_67c);
dojo.hitch(_678,"_callbackSetLabel")([],undefined,false);
}};
dojo.mixin(_679,this.fetchProperties);
this._fetchHandle=this.store.fetch(_679);
}
},postMixInProperties:function(){
this.inherited(arguments);
this._isvalid=!this.required;
},undo:function(){
this.attr("displayedValue",this._lastDisplayedValue);
}});
}
if(!dojo._hasResource["dojo.data.ItemFileReadStore"]){
dojo._hasResource["dojo.data.ItemFileReadStore"]=true;
dojo.provide("dojo.data.ItemFileReadStore");
dojo.declare("dojo.data.ItemFileReadStore",null,{constructor:function(_67d){
this._arrayOfAllItems=[];
this._arrayOfTopLevelItems=[];
this._loadFinished=false;
this._jsonFileUrl=_67d.url;
this._ccUrl=_67d.url;
this.url=_67d.url;
this._jsonData=_67d.data;
this.data=null;
this._datatypeMap=_67d.typeMap||{};
if(!this._datatypeMap["Date"]){
this._datatypeMap["Date"]={type:Date,deserialize:function(_67e){
return dojo.date.stamp.fromISOString(_67e);
}};
}
this._features={"dojo.data.api.Read":true,"dojo.data.api.Identity":true};
this._itemsByIdentity=null;
this._storeRefPropName="_S";
this._itemNumPropName="_0";
this._rootItemPropName="_RI";
this._reverseRefMap="_RRM";
this._loadInProgress=false;
this._queuedFetches=[];
if(_67d.urlPreventCache!==undefined){
this.urlPreventCache=_67d.urlPreventCache?true:false;
}
if(_67d.hierarchical!==undefined){
this.hierarchical=_67d.hierarchical?true:false;
}
if(_67d.clearOnClose){
this.clearOnClose=true;
}
if("failOk" in _67d){
this.failOk=_67d.failOk?true:false;
}
},url:"",_ccUrl:"",data:null,typeMap:null,clearOnClose:false,urlPreventCache:false,failOk:false,hierarchical:true,_assertIsItem:function(item){
if(!this.isItem(item)){
throw new Error("dojo.data.ItemFileReadStore: Invalid item argument.");
}
},_assertIsAttribute:function(_67f){
if(typeof _67f!=="string"){
throw new Error("dojo.data.ItemFileReadStore: Invalid attribute argument.");
}
},getValue:function(item,_680,_681){
var _682=this.getValues(item,_680);
return (_682.length>0)?_682[0]:_681;
},getValues:function(item,_683){
this._assertIsItem(item);
this._assertIsAttribute(_683);
return (item[_683]||[]).slice(0);
},getAttributes:function(item){
this._assertIsItem(item);
var _684=[];
for(var key in item){
if((key!==this._storeRefPropName)&&(key!==this._itemNumPropName)&&(key!==this._rootItemPropName)&&(key!==this._reverseRefMap)){
_684.push(key);
}
}
return _684;
},hasAttribute:function(item,_685){
this._assertIsItem(item);
this._assertIsAttribute(_685);
return (_685 in item);
},containsValue:function(item,_686,_687){
var _688=undefined;
if(typeof _687==="string"){
_688=dojo.data.util.filter.patternToRegExp(_687,false);
}
return this._containsValue(item,_686,_687,_688);
},_containsValue:function(item,_689,_68a,_68b){
return dojo.some(this.getValues(item,_689),function(_68c){
if(_68c!==null&&!dojo.isObject(_68c)&&_68b){
if(_68c.toString().match(_68b)){
return true;
}
}else{
if(_68a===_68c){
return true;
}
}
});
},isItem:function(_68d){
if(_68d&&_68d[this._storeRefPropName]===this){
if(this._arrayOfAllItems[_68d[this._itemNumPropName]]===_68d){
return true;
}
}
return false;
},isItemLoaded:function(_68e){
return this.isItem(_68e);
},loadItem:function(_68f){
this._assertIsItem(_68f.item);
},getFeatures:function(){
return this._features;
},getLabel:function(item){
if(this._labelAttr&&this.isItem(item)){
return this.getValue(item,this._labelAttr);
}
return undefined;
},getLabelAttributes:function(item){
if(this._labelAttr){
return [this._labelAttr];
}
return null;
},_fetchItems:function(_690,_691,_692){
var self=this,_693=function(_694,_695){
var _696=[],i,key;
if(_694.query){
var _697,_698=_694.queryOptions?_694.queryOptions.ignoreCase:false;
var _699={};
for(key in _694.query){
_697=_694.query[key];
if(typeof _697==="string"){
_699[key]=dojo.data.util.filter.patternToRegExp(_697,_698);
}else{
if(_697 instanceof RegExp){
_699[key]=_697;
}
}
}
for(i=0;i<_695.length;++i){
var _69a=true;
var _69b=_695[i];
if(_69b===null){
_69a=false;
}else{
for(key in _694.query){
_697=_694.query[key];
if(!self._containsValue(_69b,key,_697,_699[key])){
_69a=false;
}
}
}
if(_69a){
_696.push(_69b);
}
}
_691(_696,_694);
}else{
for(i=0;i<_695.length;++i){
var item=_695[i];
if(item!==null){
_696.push(item);
}
}
_691(_696,_694);
}
};
if(this._loadFinished){
_693(_690,this._getItemsArray(_690.queryOptions));
}else{
if(this._jsonFileUrl!==this._ccUrl){
dojo.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store,"+" not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0");
this._ccUrl=this._jsonFileUrl;
this.url=this._jsonFileUrl;
}else{
if(this.url!==this._ccUrl){
this._jsonFileUrl=this.url;
this._ccUrl=this.url;
}
}
if(this.data!=null&&this._jsonData==null){
this._jsonData=this.data;
this.data=null;
}
if(this._jsonFileUrl){
if(this._loadInProgress){
this._queuedFetches.push({args:_690,filter:_693});
}else{
this._loadInProgress=true;
var _69c={url:self._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk};
var _69d=dojo.xhrGet(_69c);
_69d.addCallback(function(data){
try{
self._getItemsFromLoadedData(data);
self._loadFinished=true;
self._loadInProgress=false;
_693(_690,self._getItemsArray(_690.queryOptions));
self._handleQueuedFetches();
}
catch(e){
self._loadFinished=true;
self._loadInProgress=false;
_692(e,_690);
}
});
_69d.addErrback(function(_69e){
self._loadInProgress=false;
_692(_69e,_690);
});
var _69f=null;
if(_690.abort){
_69f=_690.abort;
}
_690.abort=function(){
var df=_69d;
if(df&&df.fired===-1){
df.cancel();
df=null;
}
if(_69f){
_69f.call(_690);
}
};
}
}else{
if(this._jsonData){
try{
this._loadFinished=true;
this._getItemsFromLoadedData(this._jsonData);
this._jsonData=null;
_693(_690,this._getItemsArray(_690.queryOptions));
}
catch(e){
_692(e,_690);
}
}else{
_692(new Error("dojo.data.ItemFileReadStore: No JSON source data was provided as either URL or a nested Javascript object."),_690);
}
}
}
},_handleQueuedFetches:function(){
if(this._queuedFetches.length>0){
for(var i=0;i<this._queuedFetches.length;i++){
var _6a0=this._queuedFetches[i],_6a1=_6a0.args,_6a2=_6a0.filter;
if(_6a2){
_6a2(_6a1,this._getItemsArray(_6a1.queryOptions));
}else{
this.fetchItemByIdentity(_6a1);
}
}
this._queuedFetches=[];
}
},_getItemsArray:function(_6a3){
if(_6a3&&_6a3.deep){
return this._arrayOfAllItems;
}
return this._arrayOfTopLevelItems;
},close:function(_6a4){
if(this.clearOnClose&&this._loadFinished&&!this._loadInProgress){
if(((this._jsonFileUrl==""||this._jsonFileUrl==null)&&(this.url==""||this.url==null))&&this.data==null){
console.debug("dojo.data.ItemFileReadStore: WARNING!  Data reload "+" information has not been provided."+"  Please set 'url' or 'data' to the appropriate value before"+" the next fetch");
}
this._arrayOfAllItems=[];
this._arrayOfTopLevelItems=[];
this._loadFinished=false;
this._itemsByIdentity=null;
this._loadInProgress=false;
this._queuedFetches=[];
}
},_getItemsFromLoadedData:function(_6a5){
var _6a6=false,self=this;
function _6a7(_6a8){
var _6a9=((_6a8!==null)&&(typeof _6a8==="object")&&(!dojo.isArray(_6a8)||_6a6)&&(!dojo.isFunction(_6a8))&&(_6a8.constructor==Object||dojo.isArray(_6a8))&&(typeof _6a8._reference==="undefined")&&(typeof _6a8._type==="undefined")&&(typeof _6a8._value==="undefined")&&self.hierarchical);
return _6a9;
};
function _6aa(_6ab){
self._arrayOfAllItems.push(_6ab);
for(var _6ac in _6ab){
var _6ad=_6ab[_6ac];
if(_6ad){
if(dojo.isArray(_6ad)){
var _6ae=_6ad;
for(var k=0;k<_6ae.length;++k){
var _6af=_6ae[k];
if(_6a7(_6af)){
_6aa(_6af);
}
}
}else{
if(_6a7(_6ad)){
_6aa(_6ad);
}
}
}
}
};
this._labelAttr=_6a5.label;
var i,item;
this._arrayOfAllItems=[];
this._arrayOfTopLevelItems=_6a5.items;
for(i=0;i<this._arrayOfTopLevelItems.length;++i){
item=this._arrayOfTopLevelItems[i];
if(dojo.isArray(item)){
_6a6=true;
}
_6aa(item);
item[this._rootItemPropName]=true;
}
var _6b0={},key;
for(i=0;i<this._arrayOfAllItems.length;++i){
item=this._arrayOfAllItems[i];
for(key in item){
if(key!==this._rootItemPropName){
var _6b1=item[key];
if(_6b1!==null){
if(!dojo.isArray(_6b1)){
item[key]=[_6b1];
}
}else{
item[key]=[null];
}
}
_6b0[key]=key;
}
}
while(_6b0[this._storeRefPropName]){
this._storeRefPropName+="_";
}
while(_6b0[this._itemNumPropName]){
this._itemNumPropName+="_";
}
while(_6b0[this._reverseRefMap]){
this._reverseRefMap+="_";
}
var _6b2;
var _6b3=_6a5.identifier;
if(_6b3){
this._itemsByIdentity={};
this._features["dojo.data.api.Identity"]=_6b3;
for(i=0;i<this._arrayOfAllItems.length;++i){
item=this._arrayOfAllItems[i];
_6b2=item[_6b3];
var _6b4=_6b2[0];
if(!this._itemsByIdentity[_6b4]){
this._itemsByIdentity[_6b4]=item;
}else{
if(this._jsonFileUrl){
throw new Error("dojo.data.ItemFileReadStore:  The json data as specified by: ["+this._jsonFileUrl+"] is malformed.  Items within the list have identifier: ["+_6b3+"].  Value collided: ["+_6b4+"]");
}else{
if(this._jsonData){
throw new Error("dojo.data.ItemFileReadStore:  The json data provided by the creation arguments is malformed.  Items within the list have identifier: ["+_6b3+"].  Value collided: ["+_6b4+"]");
}
}
}
}
}else{
this._features["dojo.data.api.Identity"]=Number;
}
for(i=0;i<this._arrayOfAllItems.length;++i){
item=this._arrayOfAllItems[i];
item[this._storeRefPropName]=this;
item[this._itemNumPropName]=i;
}
for(i=0;i<this._arrayOfAllItems.length;++i){
item=this._arrayOfAllItems[i];
for(key in item){
_6b2=item[key];
for(var j=0;j<_6b2.length;++j){
_6b1=_6b2[j];
if(_6b1!==null&&typeof _6b1=="object"){
if(("_type" in _6b1)&&("_value" in _6b1)){
var type=_6b1._type;
var _6b5=this._datatypeMap[type];
if(!_6b5){
throw new Error("dojo.data.ItemFileReadStore: in the typeMap constructor arg, no object class was specified for the datatype '"+type+"'");
}else{
if(dojo.isFunction(_6b5)){
_6b2[j]=new _6b5(_6b1._value);
}else{
if(dojo.isFunction(_6b5.deserialize)){
_6b2[j]=_6b5.deserialize(_6b1._value);
}else{
throw new Error("dojo.data.ItemFileReadStore: Value provided in typeMap was neither a constructor, nor a an object with a deserialize function");
}
}
}
}
if(_6b1._reference){
var _6b6=_6b1._reference;
if(!dojo.isObject(_6b6)){
_6b2[j]=this._getItemByIdentity(_6b6);
}else{
for(var k=0;k<this._arrayOfAllItems.length;++k){
var _6b7=this._arrayOfAllItems[k],_6b8=true;
for(var _6b9 in _6b6){
if(_6b7[_6b9]!=_6b6[_6b9]){
_6b8=false;
}
}
if(_6b8){
_6b2[j]=_6b7;
}
}
}
if(this.referenceIntegrity){
var _6ba=_6b2[j];
if(this.isItem(_6ba)){
this._addReferenceToMap(_6ba,item,key);
}
}
}else{
if(this.isItem(_6b1)){
if(this.referenceIntegrity){
this._addReferenceToMap(_6b1,item,key);
}
}
}
}
}
}
}
},_addReferenceToMap:function(_6bb,_6bc,_6bd){
},getIdentity:function(item){
var _6be=this._features["dojo.data.api.Identity"];
if(_6be===Number){
return item[this._itemNumPropName];
}else{
var _6bf=item[_6be];
if(_6bf){
return _6bf[0];
}
}
return null;
},fetchItemByIdentity:function(_6c0){
var item,_6c1;
if(!this._loadFinished){
var self=this;
if(this._jsonFileUrl!==this._ccUrl){
dojo.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store,"+" not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0");
this._ccUrl=this._jsonFileUrl;
this.url=this._jsonFileUrl;
}else{
if(this.url!==this._ccUrl){
this._jsonFileUrl=this.url;
this._ccUrl=this.url;
}
}
if(this.data!=null&&this._jsonData==null){
this._jsonData=this.data;
this.data=null;
}
if(this._jsonFileUrl){
if(this._loadInProgress){
this._queuedFetches.push({args:_6c0});
}else{
this._loadInProgress=true;
var _6c2={url:self._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk};
var _6c3=dojo.xhrGet(_6c2);
_6c3.addCallback(function(data){
var _6c4=_6c0.scope?_6c0.scope:dojo.global;
try{
self._getItemsFromLoadedData(data);
self._loadFinished=true;
self._loadInProgress=false;
item=self._getItemByIdentity(_6c0.identity);
if(_6c0.onItem){
_6c0.onItem.call(_6c4,item);
}
self._handleQueuedFetches();
}
catch(error){
self._loadInProgress=false;
if(_6c0.onError){
_6c0.onError.call(_6c4,error);
}
}
});
_6c3.addErrback(function(_6c5){
self._loadInProgress=false;
if(_6c0.onError){
var _6c6=_6c0.scope?_6c0.scope:dojo.global;
_6c0.onError.call(_6c6,_6c5);
}
});
}
}else{
if(this._jsonData){
self._getItemsFromLoadedData(self._jsonData);
self._jsonData=null;
self._loadFinished=true;
item=self._getItemByIdentity(_6c0.identity);
if(_6c0.onItem){
_6c1=_6c0.scope?_6c0.scope:dojo.global;
_6c0.onItem.call(_6c1,item);
}
}
}
}else{
item=this._getItemByIdentity(_6c0.identity);
if(_6c0.onItem){
_6c1=_6c0.scope?_6c0.scope:dojo.global;
_6c0.onItem.call(_6c1,item);
}
}
},_getItemByIdentity:function(_6c7){
var item=null;
if(this._itemsByIdentity){
item=this._itemsByIdentity[_6c7];
}else{
item=this._arrayOfAllItems[_6c7];
}
if(item===undefined){
item=null;
}
return item;
},getIdentityAttributes:function(item){
var _6c8=this._features["dojo.data.api.Identity"];
if(_6c8===Number){
return null;
}else{
return [_6c8];
}
},_forceLoad:function(){
var self=this;
if(this._jsonFileUrl!==this._ccUrl){
dojo.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store,"+" not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0");
this._ccUrl=this._jsonFileUrl;
this.url=this._jsonFileUrl;
}else{
if(this.url!==this._ccUrl){
this._jsonFileUrl=this.url;
this._ccUrl=this.url;
}
}
if(this.data!=null&&this._jsonData==null){
this._jsonData=this.data;
this.data=null;
}
if(this._jsonFileUrl){
var _6c9={url:this._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk,sync:true};
var _6ca=dojo.xhrGet(_6c9);
_6ca.addCallback(function(data){
try{
if(self._loadInProgress!==true&&!self._loadFinished){
self._getItemsFromLoadedData(data);
self._loadFinished=true;
}else{
if(self._loadInProgress){
throw new Error("dojo.data.ItemFileReadStore:  Unable to perform a synchronous load, an async load is in progress.");
}
}
}
catch(e){
console.log(e);
throw e;
}
});
_6ca.addErrback(function(_6cb){
throw _6cb;
});
}else{
if(this._jsonData){
self._getItemsFromLoadedData(self._jsonData);
self._jsonData=null;
self._loadFinished=true;
}
}
}});
dojo.extend(dojo.data.ItemFileReadStore,dojo.data.util.simpleFetch);
}
if(!dojo._hasResource["dijit._editor.plugins.FontChoice"]){
dojo._hasResource["dijit._editor.plugins.FontChoice"]=true;
dojo.provide("dijit._editor.plugins.FontChoice");
dojo.declare("dijit._editor.plugins._FontDropDown",[dijit._Widget,dijit._Templated],{label:"",widgetsInTemplate:true,plainText:false,templateString:"<span style='white-space: nowrap' class='dijit dijitReset dijitInline'>"+"<label class='dijitLeft dijitInline' for='${selectId}'>${label}</label>"+"<input dojoType='dijit.form.FilteringSelect' required=false labelType=html labelAttr=label searchAttr=name "+"tabIndex='-1' id='${selectId}' dojoAttachPoint='select' value=''/>"+"</span>",postMixInProperties:function(){
this.inherited(arguments);
this.strings=dojo.i18n.getLocalization("dijit._editor","FontChoice");
this.label=this.strings[this.command];
this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"));
this.selectId=this.id+"_select";
this.inherited(arguments);
},postCreate:function(){
var _6cc=dojo.map(this.values,function(_6cd){
var name=this.strings[_6cd]||_6cd;
return {label:this.getLabel(_6cd,name),name:name,value:_6cd};
},this);
this.select.store=new dojo.data.ItemFileReadStore({data:{identifier:"value",items:_6cc}});
this.select.attr("value","",false);
this.disabled=this.select.attr("disabled");
},_setValueAttr:function(_6ce,_6cf){
_6cf=_6cf!==false?true:false;
this.select.attr("value",dojo.indexOf(this.values,_6ce)<0?"":_6ce,_6cf);
if(!_6cf){
this.select._lastValueReported=null;
}
},_getValueAttr:function(){
return this.select.attr("value");
},focus:function(){
this.select.focus();
},_setDisabledAttr:function(_6d0){
this.disabled=_6d0;
this.select.attr("disabled",_6d0);
}});
dojo.declare("dijit._editor.plugins._FontNameDropDown",dijit._editor.plugins._FontDropDown,{generic:false,command:"fontName",postMixInProperties:function(){
if(!this.values){
this.values=this.generic?["serif","sans-serif","monospace","cursive","fantasy"]:["Arial","Times New Roman","Comic Sans MS","Courier New"];
}
this.inherited(arguments);
},getLabel:function(_6d1,name){
if(this.plainText){
return name;
}else{
return "<div style='font-family: "+_6d1+"'>"+name+"</div>";
}
},_setValueAttr:function(_6d2,_6d3){
_6d3=_6d3!==false?true:false;
if(this.generic){
var map={"Arial":"sans-serif","Helvetica":"sans-serif","Myriad":"sans-serif","Times":"serif","Times New Roman":"serif","Comic Sans MS":"cursive","Apple Chancery":"cursive","Courier":"monospace","Courier New":"monospace","Papyrus":"fantasy"};
_6d2=map[_6d2]||_6d2;
}
this.inherited(arguments,[_6d2,_6d3]);
}});
dojo.declare("dijit._editor.plugins._FontSizeDropDown",dijit._editor.plugins._FontDropDown,{command:"fontSize",values:[1,2,3,4,5,6,7],getLabel:function(_6d4,name){
if(this.plainText){
return name;
}else{
return "<font size="+_6d4+"'>"+name+"</font>";
}
},_setValueAttr:function(_6d5,_6d6){
_6d6=_6d6!==false?true:false;
if(_6d5.indexOf&&_6d5.indexOf("px")!=-1){
var _6d7=parseInt(_6d5,10);
_6d5={10:1,13:2,16:3,18:4,24:5,32:6,48:7}[_6d7]||_6d5;
}
this.inherited(arguments,[_6d5,_6d6]);
}});
dojo.declare("dijit._editor.plugins._FormatBlockDropDown",dijit._editor.plugins._FontDropDown,{command:"formatBlock",values:["noFormat","p","h1","h2","h3","pre"],postCreate:function(){
this.inherited(arguments);
this.attr("value","noFormat",false);
},getLabel:function(_6d8,name){
if(this.plainText){
return name;
}else{
return "<"+_6d8+">"+name+"</"+_6d8+">";
}
},_execCommand:function(_6d9,_6da,_6db){
if(_6db==="noFormat"){
var _6dc;
var end;
var sel=dijit.range.getSelection(_6d9.window);
if(sel&&sel.rangeCount>0){
var _6dd=sel.getRangeAt(0);
var node,tag;
if(_6dd){
_6dc=_6dd.startContainer;
end=_6dd.endContainer;
while(_6dc&&_6dc!==_6d9.editNode&&_6dc!==_6d9.document.body&&_6dc.nodeType!==1){
_6dc=_6dc.parentNode;
}
while(end&&end!==_6d9.editNode&&end!==_6d9.document.body&&end.nodeType!==1){
end=end.parentNode;
}
var _6de=dojo.hitch(this,function(node,_6df){
if(node.childNodes&&node.childNodes.length){
var i;
for(i=0;i<node.childNodes.length;i++){
var c=node.childNodes[i];
if(c.nodeType==1){
if(dojo.withGlobal(_6d9.window,"inSelection",dijit._editor.selection,[c])){
var tag=c.tagName?c.tagName.toLowerCase():"";
if(dojo.indexOf(this.values,tag)!==-1){
_6df.push(c);
}
_6de(c,_6df);
}
}
}
}
});
var _6e0=dojo.hitch(this,function(_6e1){
if(_6e1&&_6e1.length){
_6d9.beginEditing();
while(_6e1.length){
this._removeFormat(_6d9,_6e1.pop());
}
_6d9.endEditing();
}
});
var _6e2=[];
if(_6dc==end){
var _6e3;
node=_6dc;
while(node&&node!==_6d9.editNode&&node!==_6d9.document.body){
if(node.nodeType==1){
tag=node.tagName?node.tagName.toLowerCase():"";
if(dojo.indexOf(this.values,tag)!==-1){
_6e3=node;
break;
}
}
node=node.parentNode;
}
_6de(_6dc,_6e2);
if(_6e3){
_6e2=[_6e3].concat(_6e2);
}
_6e0(_6e2);
}else{
node=_6dc;
while(dojo.withGlobal(_6d9.window,"inSelection",dijit._editor.selection,[node])){
if(node.nodeType==1){
tag=node.tagName?node.tagName.toLowerCase():"";
if(dojo.indexOf(this.values,tag)!==-1){
_6e2.push(node);
}
_6de(node,_6e2);
}
node=node.nextSibling;
}
_6e0(_6e2);
}
_6d9.onDisplayChanged();
}
}
}else{
_6d9.execCommand(_6da,_6db);
}
},_removeFormat:function(_6e4,node){
if(_6e4.customUndo){
while(node.firstChild){
dojo.place(node.firstChild,node,"before");
}
node.parentNode.removeChild(node);
}else{
dojo.withGlobal(_6e4.window,"selectElementChildren",dijit._editor.selection,[node]);
var html=dojo.withGlobal(_6e4.window,"getSelectedHtml",dijit._editor.selection,[null]);
dojo.withGlobal(_6e4.window,"selectElement",dijit._editor.selection,[node]);
_6e4.execCommand("inserthtml",html||"");
}
}});
dojo.declare("dijit._editor.plugins.FontChoice",dijit._editor._Plugin,{useDefaultCommand:false,_initButton:function(){
var _6e5={fontName:dijit._editor.plugins._FontNameDropDown,fontSize:dijit._editor.plugins._FontSizeDropDown,formatBlock:dijit._editor.plugins._FormatBlockDropDown}[this.command],_6e6=this.params;
if(this.params.custom){
_6e6.values=this.params.custom;
}
this.button=new _6e5(_6e6);
this.connect(this.button.select,"onChange",function(_6e7){
this.editor.focus();
if(this.command=="fontName"&&_6e7.indexOf(" ")!=-1){
_6e7="'"+_6e7+"'";
}
if(this.button._execCommand){
this.button._execCommand(this.editor,this.command,_6e7);
}else{
this.editor.execCommand(this.command,_6e7);
}
this.editor.customUndo=this.editor.customUndo||dojo.isWebKit;
});
},updateState:function(){
var _6e8=this.editor;
var _6e9=this.command;
if(!_6e8||!_6e8.isLoaded||!_6e9.length){
return;
}
if(this.button){
var _6ea;
try{
_6ea=_6e8.queryCommandValue(_6e9)||"";
}
catch(e){
_6ea="";
}
var _6eb=dojo.isString(_6ea)&&_6ea.match(/'([^']*)'/);
if(_6eb){
_6ea=_6eb[1];
}
if(_6e9==="formatBlock"){
if(!_6ea){
var elem;
var sel=dijit.range.getSelection(this.editor.window);
if(sel&&sel.rangeCount>0){
var _6ec=sel.getRangeAt(0);
if(_6ec){
elem=_6ec.endContainer;
}
}
while(elem&&elem!==_6e8.editNode&&elem!==_6e8.document){
var tg=elem.tagName?elem.tagName.toLowerCase():"";
if(tg&&dojo.indexOf(this.button.values,tg)>-1){
_6ea=tg;
break;
}
elem=elem.parentNode;
}
if(!_6ea){
_6ea="noFormat";
}
}else{
if(dojo.indexOf(this.button.values,_6ea)<0){
_6ea="noFormat";
}
}
}
if(_6ea!==this.button.attr("value")){
this.button.attr("value",_6ea,false);
}
}
}});
dojo.subscribe(dijit._scopeName+".Editor.getPlugin",null,function(o){
if(o.plugin){
return;
}
switch(o.args.name){
case "fontName":
case "fontSize":
case "formatBlock":
o.plugin=new dijit._editor.plugins.FontChoice({command:o.args.name,plainText:o.args.plainText?o.args.plainText:false});
}
});
}
if(!dojo._hasResource["dijit.form._FormSelectWidget"]){
dojo._hasResource["dijit.form._FormSelectWidget"]=true;
dojo.provide("dijit.form._FormSelectWidget");
dojo.declare("dijit.form._FormSelectWidget",dijit.form._FormValueWidget,{multiple:false,options:null,store:null,query:null,queryOptions:null,onFetch:null,sortByLabel:true,loadChildrenOnOpen:false,getOptions:function(_6ed){
var _6ee=_6ed,opts=this.options||[],l=opts.length;
if(_6ee===undefined){
return opts;
}
if(dojo.isArray(_6ee)){
return dojo.map(_6ee,"return this.getOptions(item);",this);
}
if(dojo.isObject(_6ed)){
if(!dojo.some(this.options,function(o,idx){
if(o===_6ee||(o.value&&o.value===_6ee.value)){
_6ee=idx;
return true;
}
return false;
})){
_6ee=-1;
}
}
if(typeof _6ee=="string"){
for(var i=0;i<l;i++){
if(opts[i].value===_6ee){
_6ee=i;
break;
}
}
}
if(typeof _6ee=="number"&&_6ee>=0&&_6ee<l){
return this.options[_6ee];
}
return null;
},addOption:function(_6ef){
if(!dojo.isArray(_6ef)){
_6ef=[_6ef];
}
dojo.forEach(_6ef,function(i){
if(i&&dojo.isObject(i)){
this.options.push(i);
}
},this);
this._loadChildren();
},removeOption:function(_6f0){
if(!dojo.isArray(_6f0)){
_6f0=[_6f0];
}
var _6f1=this.getOptions(_6f0);
dojo.forEach(_6f1,function(i){
if(i){
this.options=dojo.filter(this.options,function(node,idx){
return (node.value!==i.value);
});
this._removeOptionItem(i);
}
},this);
this._loadChildren();
},updateOption:function(_6f2){
if(!dojo.isArray(_6f2)){
_6f2=[_6f2];
}
dojo.forEach(_6f2,function(i){
var _6f3=this.getOptions(i),k;
if(_6f3){
for(k in i){
_6f3[k]=i[k];
}
}
},this);
this._loadChildren();
},setStore:function(_6f4,_6f5,_6f6){
var _6f7=this.store;
_6f6=_6f6||{};
if(_6f7!==_6f4){
dojo.forEach(this._notifyConnections||[],dojo.disconnect);
delete this._notifyConnections;
if(_6f4&&_6f4.getFeatures()["dojo.data.api.Notification"]){
this._notifyConnections=[dojo.connect(_6f4,"onNew",this,"_onNewItem"),dojo.connect(_6f4,"onDelete",this,"_onDeleteItem"),dojo.connect(_6f4,"onSet",this,"_onSetItem")];
}
this.store=_6f4;
}
this._onChangeActive=false;
if(this.options&&this.options.length){
this.removeOption(this.options);
}
if(_6f4){
var cb=function(_6f8){
if(this.sortByLabel&&!_6f6.sort&&_6f8.length){
_6f8.sort(dojo.data.util.sorter.createSortFunction([{attribute:_6f4.getLabelAttributes(_6f8[0])[0]}],_6f4));
}
if(_6f6.onFetch){
_6f8=_6f6.onFetch(_6f8);
}
dojo.forEach(_6f8,function(i){
this._addOptionForItem(i);
},this);
this._loadingStore=false;
this.attr("value",(("_pendingValue" in this)?this._pendingValue:_6f5));
delete this._pendingValue;
if(!this.loadChildrenOnOpen){
this._loadChildren();
}else{
this._pseudoLoadChildren(_6f8);
}
this._fetchedWith=opts;
this._lastValueReported=this.multiple?[]:null;
this._onChangeActive=true;
this.onSetStore();
this._handleOnChange(this.value);
};
var opts=dojo.mixin({onComplete:cb,scope:this},_6f6);
this._loadingStore=true;
_6f4.fetch(opts);
}else{
delete this._fetchedWith;
}
return _6f7;
},_setValueAttr:function(_6f9,_6fa){
if(this._loadingStore){
this._pendingValue=_6f9;
return;
}
var opts=this.getOptions()||[];
if(!dojo.isArray(_6f9)){
_6f9=[_6f9];
}
dojo.forEach(_6f9,function(i,idx){
if(!dojo.isObject(i)){
i=i+"";
}
if(typeof i==="string"){
_6f9[idx]=dojo.filter(opts,function(node){
return node.value===i;
})[0]||{value:"",label:""};
}
},this);
_6f9=dojo.filter(_6f9,function(i){
return i&&i.value;
});
if(!this.multiple&&(!_6f9[0]||!_6f9[0].value)&&opts.length){
_6f9[0]=opts[0];
}
dojo.forEach(opts,function(i){
i.selected=dojo.some(_6f9,function(v){
return v.value===i.value;
});
});
var val=dojo.map(_6f9,function(i){
return i.value;
}),disp=dojo.map(_6f9,function(i){
return i.label;
});
this.value=this.multiple?val:val[0];
this._setDisplay(this.multiple?disp:disp[0]);
this._updateSelection();
this._handleOnChange(this.value,_6fa);
},_getDisplayedValueAttr:function(){
var val=this.attr("value");
if(!dojo.isArray(val)){
val=[val];
}
var ret=dojo.map(this.getOptions(val),function(v){
if(v&&"label" in v){
return v.label;
}else{
if(v){
return v.value;
}
}
return null;
},this);
return this.multiple?ret:ret[0];
},_getValueDeprecated:false,getValue:function(){
return this._lastValue;
},undo:function(){
this._setValueAttr(this._lastValueReported,false);
},_loadChildren:function(){
if(this._loadingStore){
return;
}
dojo.forEach(this._getChildren(),function(_6fb){
_6fb.destroyRecursive();
});
dojo.forEach(this.options,this._addOptionItem,this);
this._updateSelection();
},_updateSelection:function(){
this.value=this._getValueFromOpts();
var val=this.value;
if(!dojo.isArray(val)){
val=[val];
}
if(val&&val[0]){
dojo.forEach(this._getChildren(),function(_6fc){
var _6fd=dojo.some(val,function(v){
return _6fc.option&&(v===_6fc.option.value);
});
dojo.toggleClass(_6fc.domNode,this.baseClass+"SelectedOption",_6fd);
dijit.setWaiState(_6fc.domNode,"selected",_6fd);
},this);
}
this._handleOnChange(this.value);
},_getValueFromOpts:function(){
var opts=this.getOptions()||[];
if(!this.multiple&&opts.length){
var opt=dojo.filter(opts,function(i){
return i.selected;
})[0];
if(opt&&opt.value){
return opt.value;
}else{
opts[0].selected=true;
return opts[0].value;
}
}else{
if(this.multiple){
return dojo.map(dojo.filter(opts,function(i){
return i.selected;
}),function(i){
return i.value;
})||[];
}
}
return "";
},_onNewItem:function(item,_6fe){
if(!_6fe||!_6fe.parent){
this._addOptionForItem(item);
}
},_onDeleteItem:function(item){
var _6ff=this.store;
this.removeOption(_6ff.getIdentity(item));
},_onSetItem:function(item){
this.updateOption(this._getOptionObjForItem(item));
},_getOptionObjForItem:function(item){
var _700=this.store,_701=_700.getLabel(item),_702=(_701?_700.getIdentity(item):null);
return {value:_702,label:_701,item:item};
},_addOptionForItem:function(item){
var _703=this.store;
if(!_703.isItemLoaded(item)){
_703.loadItem({item:item,onComplete:function(i){
this._addOptionForItem(item);
},scope:this});
return;
}
var _704=this._getOptionObjForItem(item);
this.addOption(_704);
},constructor:function(_705){
this._oValue=(_705||{}).value||null;
},_fillContent:function(){
var opts=this.options;
if(!opts){
opts=this.options=this.srcNodeRef?dojo.query(">",this.srcNodeRef).map(function(node){
if(node.getAttribute("type")==="separator"){
return {value:"",label:"",selected:false,disabled:false};
}
return {value:node.getAttribute("value"),label:String(node.innerHTML),selected:node.getAttribute("selected")||false,disabled:node.getAttribute("disabled")||false};
},this):[];
}
if(!this.value){
this.value=this._getValueFromOpts();
}else{
if(this.multiple&&typeof this.value=="string"){
this.value=this.value.split(",");
}
}
},postCreate:function(){
dojo.setSelectable(this.focusNode,false);
this.inherited(arguments);
this.connect(this,"onChange","_updateSelection");
this.connect(this,"startup","_loadChildren");
this._setValueAttr(this.value,null);
},startup:function(){
this.inherited(arguments);
var _706=this.store,_707={};
dojo.forEach(["query","queryOptions","onFetch"],function(i){
if(this[i]){
_707[i]=this[i];
}
delete this[i];
},this);
if(_706&&_706.getFeatures()["dojo.data.api.Identity"]){
this.store=null;
this.setStore(_706,this._oValue,_707);
}
},destroy:function(){
dojo.forEach(this._notifyConnections||[],dojo.disconnect);
this.inherited(arguments);
},_addOptionItem:function(_708){
},_removeOptionItem:function(_709){
},_setDisplay:function(_70a){
},_getChildren:function(){
return [];
},_getSelectedOptionsAttr:function(){
return this.getOptions(this.attr("value"));
},_pseudoLoadChildren:function(_70b){
},onSetStore:function(){
}});
}
if(!dojo._hasResource["dijit.form.Select"]){
dojo._hasResource["dijit.form.Select"]=true;
dojo.provide("dijit.form.Select");
dojo.declare("dijit.form._SelectMenu",dijit.Menu,{buildRendering:function(){
this.inherited(arguments);
var o=(this.menuTableNode=this.domNode);
var n=(this.domNode=dojo.doc.createElement("div"));
if(o.parentNode){
o.parentNode.replaceChild(n,o);
}
dojo.removeClass(o,"dijitMenuTable");
n.className=o.className+" dijitSelectMenu";
o.className="dijitReset dijitMenuTable";
dijit.setWaiRole(o,"listbox");
dijit.setWaiRole(n,"presentation");
n.appendChild(o);
this.tabIndex=null;
},resize:function(mb){
if(mb){
dojo.marginBox(this.domNode,mb);
var w=dojo.contentBox(this.domNode).w;
if(dojo.isMoz&&this.domNode.scrollHeight>this.domNode.clientHeight){
w--;
}else{
if(dojo.isIE<8||(dojo.isIE&&dojo.isQuirks)){
w-=16;
}
}
dojo.marginBox(this.menuTableNode,{w:w});
}
}});
dojo.declare("dijit.form.Select",[dijit.form._FormSelectWidget,dijit._HasDropDown],{baseClass:"dijitSelect",templateString:dojo.cache("dijit.form","templates/Select.html","<table class='dijit dijitReset dijitInline dijitLeft'\n\tdojoAttachPoint=\"_buttonNode,tableNode\" cellspacing='0' cellpadding='0' waiRole=\"presentation\"\n\t><tbody waiRole=\"presentation\"><tr waiRole=\"presentation\"\n\t\t><td class=\"dijitReset dijitStretch dijitButtonContents dijitButtonNode\" dojoAttachPoint=\"focusNode\"\n\t\t\twaiRole=\"combobox\" waiState=\"haspopup-true\"\n\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"  dojoAttachPoint=\"containerNode,_popupStateNode\"></span\n\t\t\t><input type=\"hidden\" ${nameAttrSetting} dojoAttachPoint=\"valueNode\" value=\"${value}\" waiState=\"hidden-true\" />\n\t\t</td><td class=\"dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton\"\n\t\t\t\tdojoAttachPoint=\"titleNode\" waiRole=\"presentation\"\n\t\t\t><div class=\"dijitReset dijitArrowButtonInner\" waiRole=\"presentation\">&thinsp;</div\n\t\t\t><div class=\"dijitReset dijitArrowButtonChar\" waiRole=\"presentation\">&#9660;</div\n\t\t></td\n\t></tr></tbody\n></table>\n"),attributeMap:dojo.mixin(dojo.clone(dijit.form._FormSelectWidget.prototype.attributeMap),{style:"tableNode"}),required:false,state:"",tooltipPosition:[],emptyLabel:"",_isLoaded:false,_childrenLoaded:false,_fillContent:function(){
this.inherited(arguments);
if(this.options.length&&!this.value&&this.srcNodeRef){
var si=this.srcNodeRef.selectedIndex;
this.value=this.options[si!=-1?si:0].value;
}
this.dropDown=new dijit.form._SelectMenu();
dojo.addClass(this.dropDown.domNode,this.baseClass+"Menu");
},_getMenuItemForOption:function(_70c){
if(!_70c.value){
return new dijit.MenuSeparator();
}else{
var _70d=dojo.hitch(this,"_setValueAttr",_70c);
var item=new dijit.MenuItem({option:_70c,label:_70c.label,onClick:_70d,disabled:_70c.disabled||false});
dijit.setWaiRole(item.focusNode,"listitem");
return item;
}
},_addOptionItem:function(_70e){
if(this.dropDown){
this.dropDown.addChild(this._getMenuItemForOption(_70e));
}
},_getChildren:function(){
if(!this.dropDown){
return [];
}
return this.dropDown.getChildren();
},_loadChildren:function(_70f){
if(_70f===true){
if(this.dropDown){
delete this.dropDown.focusedChild;
}
if(this.options.length){
this.inherited(arguments);
}else{
dojo.forEach(this._getChildren(),function(_710){
_710.destroyRecursive();
});
var item=new dijit.MenuItem({label:"&nbsp;"});
this.dropDown.addChild(item);
}
}else{
this._updateSelection();
}
var len=this.options.length;
this._isLoaded=false;
this._childrenLoaded=true;
if(!this._loadingStore){
this._setValueAttr(this.value);
}
},_setValueAttr:function(_711){
this.inherited(arguments);
dojo.attr(this.valueNode,"value",this.attr("value"));
},_setDisplay:function(_712){
this.containerNode.innerHTML="<span class=\"dijitReset dijitInline "+this.baseClass+"Label\">"+(_712||this.emptyLabel||"&nbsp;")+"</span>";
dijit.setWaiState(this.focusNode,"valuenow",(_712||this.emptyLabel||"&nbsp;"));
},validate:function(_713){
var _714=this.isValid(_713);
this.state=_714?"":"Error";
this._setStateClass();
dijit.setWaiState(this.focusNode,"invalid",_714?"false":"true");
var _715=_714?"":this._missingMsg;
if(this._message!==_715){
this._message=_715;
dijit.hideTooltip(this.domNode);
if(_715){
dijit.showTooltip(_715,this.domNode,this.tooltipPosition);
}
}
return _714;
},isValid:function(_716){
return (!this.required||!(/^\s*$/.test(this.value)));
},reset:function(){
this.inherited(arguments);
dijit.hideTooltip(this.domNode);
this.state="";
this._setStateClass();
delete this._message;
},postMixInProperties:function(){
this.inherited(arguments);
this._missingMsg=dojo.i18n.getLocalization("dijit.form","validate",this.lang).missingMessage;
},postCreate:function(){
this.inherited(arguments);
if(this.tableNode.style.width){
dojo.addClass(this.domNode,this.baseClass+"FixedWidth");
}
},isLoaded:function(){
return this._isLoaded;
},loadDropDown:function(_717){
this._loadChildren(true);
this._isLoaded=true;
_717();
},uninitialize:function(_718){
if(this.dropDown&&!this.dropDown._destroyed){
this.dropDown.destroyRecursive(_718);
delete this.dropDown;
}
this.inherited(arguments);
}});
}
if(!dojo._hasResource["dijit._editor.plugins.LinkDialog"]){
dojo._hasResource["dijit._editor.plugins.LinkDialog"]=true;
dojo.provide("dijit._editor.plugins.LinkDialog");
dojo.declare("dijit._editor.plugins.LinkDialog",dijit._editor._Plugin,{buttonClass:dijit.form.DropDownButton,useDefaultCommand:false,urlRegExp:"((https?|ftps?|file)\\://|./|/|)(/[a-zA-Z]{1,1}:/|)(((?:(?:[\\da-zA-Z](?:[-\\da-zA-Z]{0,61}[\\da-zA-Z])?)\\.)*(?:[a-zA-Z](?:[-\\da-zA-Z]{0,80}[\\da-zA-Z])?)\\.?)|(((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.){3}(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])|(0[xX]0*[\\da-fA-F]?[\\da-fA-F]\\.){3}0[xX]0*[\\da-fA-F]?[\\da-fA-F]|(0+[0-3][0-7][0-7]\\.){3}0+[0-3][0-7][0-7]|(0|[1-9]\\d{0,8}|[1-3]\\d{9}|4[01]\\d{8}|42[0-8]\\d{7}|429[0-3]\\d{6}|4294[0-8]\\d{5}|42949[0-5]\\d{4}|429496[0-6]\\d{3}|4294967[01]\\d{2}|42949672[0-8]\\d|429496729[0-5])|0[xX]0*[\\da-fA-F]{1,8}|([\\da-fA-F]{1,4}\\:){7}[\\da-fA-F]{1,4}|([\\da-fA-F]{1,4}\\:){6}((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.){3}(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])))(\\:\\d+)?(/(?:[^?#\\s/]+/)*(?:[^?#\\s/]+(?:\\?[^?#\\s/]*)?(?:#.*)?)?)?",htmlTemplate:"<a href=\"${urlInput}\" _djrealurl=\"${urlInput}\""+" target=\"${targetSelect}\""+">${textInput}</a>",tag:"a",_hostRxp:new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$"),linkDialogTemplate:["<table><tr><td>","<label for='${id}_urlInput'>${url}</label>","</td><td>","<input dojoType='dijit.form.ValidationTextBox' regExp='${urlRegExp}' required='true' "+"id='${id}_urlInput' name='urlInput' intermediateChanges='true'>","</td></tr><tr><td>","<label for='${id}_textInput'>${text}</label>","</td><td>","<input dojoType='dijit.form.ValidationTextBox' required='true' id='${id}_textInput' "+"name='textInput' intermediateChanges='true'>","</td></tr><tr><td>","<label for='${id}_targetSelect'>${target}</label>","</td><td>","<select id='${id}_targetSelect' name='targetSelect' dojoType='dijit.form.Select'>","<option selected='selected' value='_self'>${currentWindow}</option>","<option value='_blank'>${newWindow}</option>","<option value='_top'>${topWindow}</option>","<option value='_parent'>${parentWindow}</option>","</select>","</td></tr><tr><td colspan='2'>","<button dojoType='dijit.form.Button' type='submit' id='${id}_setButton'>${set}</button>","<button dojoType='dijit.form.Button' type='button' id='${id}_cancelButton'>${buttonCancel}</button>","</td></tr></table>"].join(""),_initButton:function(){
var _719=this;
this.tag=this.command=="insertImage"?"img":"a";
var _71a=dojo.mixin(dojo.i18n.getLocalization("dijit","common",this.lang),dojo.i18n.getLocalization("dijit._editor","LinkDialog",this.lang));
var _71b=(this.dropDown=new dijit.TooltipDialog({title:_71a[this.command+"Title"],execute:dojo.hitch(this,"setValue"),onOpen:function(){
_719._onOpenDialog();
dijit.TooltipDialog.prototype.onOpen.apply(this,arguments);
},onCancel:function(){
setTimeout(dojo.hitch(_719,"_onCloseDialog"),0);
}}));
_71a.urlRegExp=this.urlRegExp;
_71a.id=dijit.getUniqueId(this.editor.id);
this._uniqueId=_71a.id;
this._setContent(_71b.title+"<div style='border-bottom: 1px black solid;padding-bottom:2pt;margin-bottom:4pt'></div>"+dojo.string.substitute(this.linkDialogTemplate,_71a));
_71b.startup();
this._urlInput=dijit.byId(this._uniqueId+"_urlInput");
this._textInput=dijit.byId(this._uniqueId+"_textInput");
this._setButton=dijit.byId(this._uniqueId+"_setButton");
this.connect(dijit.byId(this._uniqueId+"_cancelButton"),"onClick",function(){
this.dropDown.onCancel();
});
if(this._urlInput){
this.connect(this._urlInput,"onChange","_checkAndFixInput");
}
if(this._textInput){
this.connect(this._textInput,"onChange","_checkAndFixInput");
}
this._connectTagEvents();
this.inherited(arguments);
},_checkAndFixInput:function(){
var self=this;
var url=this._urlInput.attr("value");
var _71c=function(url){
var _71d=false;
if(url&&url.length>7){
url=dojo.trim(url);
if(url.indexOf("/")>0){
if(url.indexOf("://")===-1){
if(url.charAt(0)!=="/"&&url.indexOf("./")!==0){
if(self._hostRxp.test(url)){
_71d=true;
}
}
}
}
}
if(_71d){
self._urlInput.attr("value","http://"+url);
}
self._setButton.attr("disabled",!self._isValid());
};
if(this._delayedCheck){
clearTimeout(this._delayedCheck);
this._delayedCheck=null;
}
this._delayedCheck=setTimeout(function(){
_71c(url);
},250);
},_connectTagEvents:function(){
this.editor.onLoadDeferred.addCallback(dojo.hitch(this,function(){
this.connect(this.editor.editNode,"ondblclick",this._onDblClick);
}));
},_isValid:function(){
return this._urlInput.isValid()&&this._textInput.isValid();
},_setContent:function(_71e){
this.dropDown.attr("content",_71e);
},_checkValues:function(args){
if(args&&args.urlInput){
args.urlInput=args.urlInput.replace(/"/g,"&quot;");
}
return args;
},setValue:function(args){
this._onCloseDialog();
if(dojo.isIE){
var sel=dijit.range.getSelection(this.editor.window);
var _71f=sel.getRangeAt(0);
var a=_71f.endContainer;
if(a.nodeType===3){
a=a.parentNode;
}
if(a&&(a.nodeName&&a.nodeName.toLowerCase()!==this.tag)){
a=dojo.withGlobal(this.editor.window,"getSelectedElement",dijit._editor.selection,[this.tag]);
}
if(a&&(a.nodeName&&a.nodeName.toLowerCase()===this.tag)){
if(this.editor.queryCommandEnabled("unlink")){
dojo.withGlobal(this.editor.window,"selectElementChildren",dijit._editor.selection,[a]);
this.editor.execCommand("unlink");
}
}
}
args=this._checkValues(args);
this.editor.execCommand("inserthtml",dojo.string.substitute(this.htmlTemplate,args));
},_onCloseDialog:function(){
this.editor.focus();
},_getCurrentValues:function(a){
var url,text,_720;
if(a&&a.tagName.toLowerCase()===this.tag){
url=a.getAttribute("_djrealurl");
_720=a.getAttribute("target")||"_self";
text=a.textContent||a.innerText;
dojo.withGlobal(this.editor.window,"selectElement",dijit._editor.selection,[a,true]);
}else{
text=dojo.withGlobal(this.editor.window,dijit._editor.selection.getSelectedText);
}
return {urlInput:url||"",textInput:text||"",targetSelect:_720||""};
},_onOpenDialog:function(){
var a;
if(dojo.isIE){
var sel=dijit.range.getSelection(this.editor.window);
var _721=sel.getRangeAt(0);
a=_721.endContainer;
if(a.nodeType===3){
a=a.parentNode;
}
if(a&&(a.nodeName&&a.nodeName.toLowerCase()!==this.tag)){
a=dojo.withGlobal(this.editor.window,"getSelectedElement",dijit._editor.selection,[this.tag]);
}
}else{
a=dojo.withGlobal(this.editor.window,"getAncestorElement",dijit._editor.selection,[this.tag]);
}
this.dropDown.reset();
this._setButton.attr("disabled",true);
this.dropDown.attr("value",this._getCurrentValues(a));
},_onDblClick:function(e){
if(e&&e.target){
var t=e.target;
var tg=t.tagName?t.tagName.toLowerCase():"";
if(tg===this.tag){
this.editor.onDisplayChanged();
dojo.withGlobal(this.editor.window,"selectElement",dijit._editor.selection,[t]);
setTimeout(dojo.hitch(this,function(){
this.button.attr("disabled",false);
this.button.openDropDown();
}),10);
}
}
}});
dojo.declare("dijit._editor.plugins.ImgLinkDialog",[dijit._editor.plugins.LinkDialog],{linkDialogTemplate:["<table><tr><td>","<label for='${id}_urlInput'>${url}</label>","</td><td>","<input dojoType='dijit.form.ValidationTextBox' regExp='${urlRegExp}' "+"required='true' id='${id}_urlInput' name='urlInput' intermediateChanges='true'>","</td></tr><tr><td>","<label for='${id}_textInput'>${text}</label>","</td><td>","<input dojoType='dijit.form.ValidationTextBox' required='false' id='${id}_textInput' "+"name='textInput' intermediateChanges='true'>","</td></tr><tr><td>","</td><td>","</td></tr><tr><td colspan='2'>","<button dojoType='dijit.form.Button' type='submit' id='${id}_setButton'>${set}</button>","<button dojoType='dijit.form.Button' type='button' id='${id}_cancelButton'>${buttonCancel}</button>","</td></tr></table>"].join(""),htmlTemplate:"<img src=\"${urlInput}\" _djrealurl=\"${urlInput}\" alt=\"${textInput}\" />",tag:"img",_getCurrentValues:function(img){
var url,text;
if(img&&img.tagName.toLowerCase()===this.tag){
url=img.getAttribute("_djrealurl");
text=img.getAttribute("alt");
dojo.withGlobal(this.editor.window,"selectElement",dijit._editor.selection,[img,true]);
}else{
text=dojo.withGlobal(this.editor.window,dijit._editor.selection.getSelectedText);
}
return {urlInput:url||"",textInput:text||""};
},_isValid:function(){
return this._urlInput.isValid();
},_connectTagEvents:function(){
this.inherited(arguments);
this.editor.onLoadDeferred.addCallback(dojo.hitch(this,function(){
this.connect(this.editor.editNode,"onmousedown",this._selectTag);
}));
},_selectTag:function(e){
if(e&&e.target){
var t=e.target;
var tg=t.tagName?t.tagName.toLowerCase():"";
if(tg===this.tag){
dojo.withGlobal(this.editor.window,"selectElement",dijit._editor.selection,[t]);
}
}
},_checkValues:function(args){
if(args&&args.urlInput){
args.urlInput=args.urlInput.replace(/"/g,"&quot;");
}
if(args&&args.textInput){
args.textInput=args.textInput.replace(/"/g,"&quot;");
}
return args;
}});
dojo.subscribe(dijit._scopeName+".Editor.getPlugin",null,function(o){
if(o.plugin){
return;
}
switch(o.args.name){
case "createLink":
o.plugin=new dijit._editor.plugins.LinkDialog({command:o.args.name});
break;
case "insertImage":
o.plugin=new dijit._editor.plugins.ImgLinkDialog({command:o.args.name});
break;
}
});
}
if(!dojo._hasResource["dojo.colors"]){
dojo._hasResource["dojo.colors"]=true;
dojo.provide("dojo.colors");
(function(){
var _722=function(m1,m2,h){
if(h<0){
++h;
}
if(h>1){
--h;
}
var h6=6*h;
if(h6<1){
return m1+(m2-m1)*h6;
}
if(2*h<1){
return m2;
}
if(3*h<2){
return m1+(m2-m1)*(2/3-h)*6;
}
return m1;
};
dojo.colorFromRgb=function(_723,obj){
var m=_723.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);
if(m){
var c=m[2].split(/\s*,\s*/),l=c.length,t=m[1],a;
if((t=="rgb"&&l==3)||(t=="rgba"&&l==4)){
var r=c[0];
if(r.charAt(r.length-1)=="%"){
a=dojo.map(c,function(x){
return parseFloat(x)*2.56;
});
if(l==4){
a[3]=c[3];
}
return dojo.colorFromArray(a,obj);
}
return dojo.colorFromArray(c,obj);
}
if((t=="hsl"&&l==3)||(t=="hsla"&&l==4)){
var H=((parseFloat(c[0])%360)+360)%360/360,S=parseFloat(c[1])/100,L=parseFloat(c[2])/100,m2=L<=0.5?L*(S+1):L+S-L*S,m1=2*L-m2;
a=[_722(m1,m2,H+1/3)*256,_722(m1,m2,H)*256,_722(m1,m2,H-1/3)*256,1];
if(l==4){
a[3]=c[3];
}
return dojo.colorFromArray(a,obj);
}
}
return null;
};
var _724=function(c,low,high){
c=Number(c);
return isNaN(c)?high:c<low?low:c>high?high:c;
};
dojo.Color.prototype.sanitize=function(){
var t=this;
t.r=Math.round(_724(t.r,0,255));
t.g=Math.round(_724(t.g,0,255));
t.b=Math.round(_724(t.b,0,255));
t.a=_724(t.a,0,1);
return this;
};
})();
dojo.colors.makeGrey=function(g,a){
return dojo.colorFromArray([g,g,g,a]);
};
dojo.mixin(dojo.Color.named,{aliceblue:[240,248,255],antiquewhite:[250,235,215],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],blanchedalmond:[255,235,205],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],oldlace:[253,245,230],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],thistle:[216,191,216],tomato:[255,99,71],transparent:[0,0,0,0],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],whitesmoke:[245,245,245],yellowgreen:[154,205,50]});
}
if(!dojo._hasResource["dijit._PaletteMixin"]){
dojo._hasResource["dijit._PaletteMixin"]=true;
dojo.provide("dijit._PaletteMixin");
dojo.declare("dijit._PaletteMixin",null,{defaultTimeout:500,timeoutChangeRate:0.9,value:null,tabIndex:"0",cellClass:"dijitPaletteCell",highlightClass:"dijitPaletteCellHover",dyeClass:"",_preparePalette:function(_725,_726){
this._cells=[];
var url=this._blankGif;
var _727=dojo.getObject(this.dyeClass);
for(var row=0;row<_725.length;row++){
var _728=dojo.create("tr",{tabIndex:"-1"},this.gridNode);
for(var col=0;col<_725[row].length;col++){
var _729=_725[row][col];
if(_729){
var _72a=new _727(_729);
var _72b=dojo.create("td",{"class":this.cellClass,tabIndex:"-1",title:_726[_729]});
_72a.fillCell(_72b,url);
dojo.forEach(["Dijitclick","MouseEnter","MouseLeave","Focus"],function(_72c){
this.connect(_72b,"on"+_72c.toLowerCase(),"_onCell"+_72c);
},this);
dojo.place(_72b,_728);
_72b.index=this._cells.length;
this._cells.push({node:_72b,dye:_72a});
}
}
}
this._xDim=_725[0].length;
this._yDim=_725.length;
var _72d={UP_ARROW:-this._xDim,DOWN_ARROW:this._xDim,RIGHT_ARROW:1,LEFT_ARROW:-1};
for(var key in _72d){
this._connects.push(dijit.typematic.addKeyListener(this.domNode,{charOrCode:dojo.keys[key],ctrlKey:false,altKey:false,shiftKey:false},this,function(){
var _72e=_72d[key];
return function(_72f){
this._navigateByKey(_72e,_72f);
};
}(),this.timeoutChangeRate,this.defaultTimeout));
}
},postCreate:function(){
this.inherited(arguments);
this._currentFocus=this._cells[0].node;
dojo.attr(this._currentFocus,"tabIndex",this.tabIndex);
},focus:function(){
dijit.focus(this._currentFocus);
},_onBlur:function(){
dojo.attr(this._currentFocus,"tabIndex","-1");
this._currentFocus=this._cells[0].node;
dojo.attr(this._currentFocus,"tabIndex",this.tabIndex);
this.inherited(arguments);
},_onCellDijitclick:function(evt){
var _730=evt.currentTarget;
this._selectCell(_730);
dojo.stopEvent(evt);
},_onCellMouseEnter:function(evt){
var _731=evt.currentTarget;
dojo.addClass(_731,this.highlightClass);
},_onCellMouseLeave:function(evt){
var _732=evt.currentTarget;
dojo.removeClass(_732,this.highlightClass);
},_onCellFocus:function(evt){
this._setCurrent(evt.currentTarget);
},_setCurrent:function(node){
if("_currentFocus" in this){
dojo.attr(this._currentFocus,"tabIndex","-1");
}
this._currentFocus=node;
if(node){
dojo.attr(node,"tabIndex",this.tabIndex);
}
},_selectCell:function(cell){
var dye=this._getDye(cell);
this.onChange(this.value=dye.getValue());
},onChange:function(_733){
},_navigateByKey:function(_734,_735){
if(_735==-1){
return;
}
var _736=this._currentFocus.index+_734;
if(_736<this._cells.length&&_736>-1){
var _737=this._cells[_736].node;
this._setCurrent(_737);
setTimeout(dojo.hitch(dijit,"focus",_737),0);
}
},_getDye:function(cell){
return this._cells[cell.index].dye;
}});
}
if(!dojo._hasResource["dijit.ColorPalette"]){
dojo._hasResource["dijit.ColorPalette"]=true;
dojo.provide("dijit.ColorPalette");
dojo.declare("dijit.ColorPalette",[dijit._Widget,dijit._Templated,dijit._PaletteMixin],{palette:"7x10",_palettes:{"7x10":[["white","seashell","cornsilk","lemonchiffon","lightyellow","palegreen","paleturquoise","lightcyan","lavender","plum"],["lightgray","pink","bisque","moccasin","khaki","lightgreen","lightseagreen","lightskyblue","cornflowerblue","violet"],["silver","lightcoral","sandybrown","orange","palegoldenrod","chartreuse","mediumturquoise","skyblue","mediumslateblue","orchid"],["gray","red","orangered","darkorange","yellow","limegreen","darkseagreen","royalblue","slateblue","mediumorchid"],["dimgray","crimson","chocolate","coral","gold","forestgreen","seagreen","blue","blueviolet","darkorchid"],["darkslategray","firebrick","saddlebrown","sienna","olive","green","darkcyan","mediumblue","darkslateblue","darkmagenta"],["black","darkred","maroon","brown","darkolivegreen","darkgreen","midnightblue","navy","indigo","purple"]],"3x4":[["white","lime","green","blue"],["silver","yellow","fuchsia","navy"],["gray","red","purple","black"]]},_imagePaths:{"7x10":dojo.moduleUrl("dijit.themes","a11y/colors7x10.png"),"3x4":dojo.moduleUrl("dijit.themes","a11y/colors3x4.png")},templateString:dojo.cache("dijit","templates/ColorPalette.html","<div class=\"dijitInline dijitColorPalette\">\n\t<img class=\"dijitColorPaletteUnder\" dojoAttachPoint=\"imageNode\" waiRole=\"presentation\" alt=\"\">\n\t<table class=\"dijitPaletteTable\" cellSpacing=0 cellPadding=0>\n\t\t<tbody dojoAttachPoint=\"gridNode\"></tbody>\n\t</table>\n</div>\n"),dyeClass:"dijit._Color",buildRendering:function(){
this.inherited(arguments);
this.imageNode.setAttribute("src",this._imagePaths[this.palette].toString());
var _738=dojo.i18n.getLocalization("dojo","colors",this.lang);
this._preparePalette(this._palettes[this.palette],_738);
}});
dojo.declare("dijit._Color",dojo.Color,{constructor:function(_739){
this._alias=_739;
this.setColor(dojo.Color.named[_739]);
},getValue:function(){
return this.toHex();
},fillCell:function(cell,_73a){
dojo.create("img",{src:_73a,"class":"dijitPaletteImg",alt:this._alias},cell);
}});
}
if(!dojo._hasResource["dijit._editor.plugins.TextColor"]){
dojo._hasResource["dijit._editor.plugins.TextColor"]=true;
dojo.provide("dijit._editor.plugins.TextColor");
dojo.declare("dijit._editor.plugins.TextColor",dijit._editor._Plugin,{buttonClass:dijit.form.DropDownButton,constructor:function(){
this.dropDown=new dijit.ColorPalette();
this.connect(this.dropDown,"onChange",function(_73b){
this.editor.execCommand(this.command,_73b);
});
}});
dojo.subscribe(dijit._scopeName+".Editor.getPlugin",null,function(o){
if(o.plugin){
return;
}
switch(o.args.name){
case "foreColor":
case "hiliteColor":
o.plugin=new dijit._editor.plugins.TextColor({command:o.args.name});
}
});
}
if(!dojo._hasResource["dojo.cldr.supplemental"]){
dojo._hasResource["dojo.cldr.supplemental"]=true;
dojo.provide("dojo.cldr.supplemental");
dojo.cldr.supplemental.getFirstDayOfWeek=function(_73c){
var _73d={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 _73e=dojo.cldr.supplemental._region(_73c);
var dow=_73d[_73e];
return (dow===undefined)?1:dow;
};
dojo.cldr.supplemental._region=function(_73f){
_73f=dojo.i18n.normalizeLocale(_73f);
var tags=_73f.split("-");
var _740=tags[1];
if(!_740){
_740={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(_740.length==4){
_740=tags[2];
}
}
return _740;
};
dojo.cldr.supplemental.getWeekend=function(_741){
var _742={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 _743={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 _744=dojo.cldr.supplemental._region(_741);
var _745=_742[_744];
var end=_743[_744];
if(_745===undefined){
_745=6;
}
if(end===undefined){
end=0;
}
return {start:_745,end:end};
};
}
if(!dojo._hasResource["dojo.date"]){
dojo._hasResource["dojo.date"]=true;
dojo.provide("dojo.date");
dojo.date.getDaysInMonth=function(_746){
var _747=_746.getMonth();
var days=[31,28,31,30,31,30,31,31,30,31,30,31];
if(_747==1&&dojo.date.isLeapYear(_746)){
return 29;
}
return days[_747];
};
dojo.date.isLeapYear=function(_748){
var year=_748.getFullYear();
return !(year%400)||(!(year%4)&&!!(year%100));
};
dojo.date.getTimezoneName=function(_749){
var str=_749.toString();
var tz="";
var _74a;
var pos=str.indexOf("(");
if(pos>-1){
tz=str.substring(++pos,str.indexOf(")"));
}else{
var pat=/([A-Z\/]+) \d{4}$/;
if((_74a=str.match(pat))){
tz=_74a[1];
}else{
str=_749.toLocaleString();
pat=/ ([A-Z\/]+)$/;
if((_74a=str.match(pat))){
tz=_74a[1];
}
}
}
return (tz=="AM"||tz=="PM")?"":tz;
};
dojo.date.compare=function(_74b,_74c,_74d){
_74b=new Date(+_74b);
_74c=new Date(+(_74c||new Date()));
if(_74d=="date"){
_74b.setHours(0,0,0,0);
_74c.setHours(0,0,0,0);
}else{
if(_74d=="time"){
_74b.setFullYear(0,0,0);
_74c.setFullYear(0,0,0);
}
}
if(_74b>_74c){
return 1;
}
if(_74b<_74c){
return -1;
}
return 0;
};
dojo.date.add=function(date,_74e,_74f){
var sum=new Date(+date);
var _750=false;
var _751="Date";
switch(_74e){
case "day":
break;
case "weekday":
var days,_752;
var mod=_74f%5;
if(!mod){
days=(_74f>0)?5:-5;
_752=(_74f>0)?((_74f-5)/5):((_74f+5)/5);
}else{
days=mod;
_752=parseInt(_74f/5);
}
var strt=date.getDay();
var adj=0;
if(strt==6&&_74f>0){
adj=1;
}else{
if(strt==0&&_74f<0){
adj=-1;
}
}
var trgt=strt+days;
if(trgt==0||trgt==6){
adj=(_74f>0)?2:-2;
}
_74f=(7*_752)+days+adj;
break;
case "year":
_751="FullYear";
_750=true;
break;
case "week":
_74f*=7;
break;
case "quarter":
_74f*=3;
case "month":
_750=true;
_751="Month";
break;
default:
_751="UTC"+_74e.charAt(0).toUpperCase()+_74e.substring(1)+"s";
}
if(_751){
sum["set"+_751](sum["get"+_751]()+_74f);
}
if(_750&&(sum.getDate()<date.getDate())){
sum.setDate(0);
}
return sum;
};
dojo.date.difference=function(_753,_754,_755){
_754=_754||new Date();
_755=_755||"day";
var _756=_754.getFullYear()-_753.getFullYear();
var _757=1;
switch(_755){
case "quarter":
var m1=_753.getMonth();
var m2=_754.getMonth();
var q1=Math.floor(m1/3)+1;
var q2=Math.floor(m2/3)+1;
q2+=(_756*4);
_757=q2-q1;
break;
case "weekday":
var days=Math.round(dojo.date.difference(_753,_754,"day"));
var _758=parseInt(dojo.date.difference(_753,_754,"week"));
var mod=days%7;
if(mod==0){
days=_758*5;
}else{
var adj=0;
var aDay=_753.getDay();
var bDay=_754.getDay();
_758=parseInt(days/7);
mod=days%7;
var _759=new Date(_753);
_759.setDate(_759.getDate()+(_758*7));
var _75a=_759.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 (_75a+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 (_75a+mod)<0:
adj=2;
}
}
}
days+=adj;
days-=(_758*2);
}
_757=days;
break;
case "year":
_757=_756;
break;
case "month":
_757=(_754.getMonth()-_753.getMonth())+(_756*12);
break;
case "week":
_757=parseInt(dojo.date.difference(_753,_754,"day")/7);
break;
case "day":
_757/=24;
case "hour":
_757/=60;
case "minute":
_757/=60;
case "second":
_757/=1000;
case "millisecond":
_757*=_754.getTime()-_753.getTime();
}
return Math.round(_757);
};
}
if(!dojo._hasResource["dojo.date.locale"]){
dojo._hasResource["dojo.date.locale"]=true;
dojo.provide("dojo.date.locale");
(function(){
function _75b(_75c,_75d,_75e,_75f){
return _75f.replace(/([a-z])\1*/ig,function(_760){
var s,pad,c=_760.charAt(0),l=_760.length,_761=["abbr","wide","narrow"];
switch(c){
case "G":
s=_75d[(l<4)?"eraAbbr":"eraNames"][_75c.getFullYear()<0?0:1];
break;
case "y":
s=_75c.getFullYear();
switch(l){
case 1:
break;
case 2:
if(!_75e.fullYear){
s=String(s);
s=s.substr(s.length-2);
break;
}
default:
pad=true;
}
break;
case "Q":
case "q":
s=Math.ceil((_75c.getMonth()+1)/3);
pad=true;
break;
case "M":
var m=_75c.getMonth();
if(l<3){
s=m+1;
pad=true;
}else{
var _762=["months","format",_761[l-3]].join("-");
s=_75d[_762][m];
}
break;
case "w":
var _763=0;
s=dojo.date.locale._getWeekOfYear(_75c,_763);
pad=true;
break;
case "d":
s=_75c.getDate();
pad=true;
break;
case "D":
s=dojo.date.locale._getDayOfYear(_75c);
pad=true;
break;
case "E":
var d=_75c.getDay();
if(l<3){
s=d+1;
pad=true;
}else{
var _764=["days","format",_761[l-3]].join("-");
s=_75d[_764][d];
}
break;
case "a":
var _765=(_75c.getHours()<12)?"am":"pm";
s=_75d[_765];
break;
case "h":
case "H":
case "K":
case "k":
var h=_75c.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=_75c.getMinutes();
pad=true;
break;
case "s":
s=_75c.getSeconds();
pad=true;
break;
case "S":
s=Math.round(_75c.getMilliseconds()*Math.pow(10,l-3));
pad=true;
break;
case "v":
case "z":
s=dojo.date.locale._getZone(_75c,true,_75e);
if(s){
break;
}
l=4;
case "Z":
var _766=dojo.date.locale._getZone(_75c,false,_75e);
var tz=[(_766<=0?"+":"-"),dojo.string.pad(Math.floor(Math.abs(_766)/60),2),dojo.string.pad(Math.abs(_766)%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: "+_75f);
}
if(pad){
s=dojo.string.pad(s,l);
}
return s;
});
};
dojo.date.locale._getZone=function(_767,_768,_769){
if(_768){
return dojo.date.getTimezoneName(_767);
}else{
return _767.getTimezoneOffset();
}
};
dojo.date.locale.format=function(_76a,_76b){
_76b=_76b||{};
var _76c=dojo.i18n.normalizeLocale(_76b.locale),_76d=_76b.formatLength||"short",_76e=dojo.date.locale._getGregorianBundle(_76c),str=[],_76f=dojo.hitch(this,_75b,_76a,_76e,_76b);
if(_76b.selector=="year"){
return _770(_76e["dateFormatItem-yyyy"]||"yyyy",_76f);
}
var _771;
if(_76b.selector!="date"){
_771=_76b.timePattern||_76e["timeFormat-"+_76d];
if(_771){
str.push(_770(_771,_76f));
}
}
if(_76b.selector!="time"){
_771=_76b.datePattern||_76e["dateFormat-"+_76d];
if(_771){
str.push(_770(_771,_76f));
}
}
return str.length==1?str[0]:_76e["dateTimeFormat-"+_76d].replace(/\{(\d+)\}/g,function(_772,key){
return str[key];
});
};
dojo.date.locale.regexp=function(_773){
return dojo.date.locale._parseInfo(_773).regexp;
};
dojo.date.locale._parseInfo=function(_774){
_774=_774||{};
var _775=dojo.i18n.normalizeLocale(_774.locale),_776=dojo.date.locale._getGregorianBundle(_775),_777=_774.formatLength||"short",_778=_774.datePattern||_776["dateFormat-"+_777],_779=_774.timePattern||_776["timeFormat-"+_777],_77a;
if(_774.selector=="date"){
_77a=_778;
}else{
if(_774.selector=="time"){
_77a=_779;
}else{
_77a=_776["dateTimeFormat-"+_777].replace(/\{(\d+)\}/g,function(_77b,key){
return [_779,_778][key];
});
}
}
var _77c=[],re=_770(_77a,dojo.hitch(this,_77d,_77c,_776,_774));
return {regexp:re,tokens:_77c,bundle:_776};
};
dojo.date.locale.parse=function(_77e,_77f){
var info=dojo.date.locale._parseInfo(_77f),_780=info.tokens,_781=info.bundle,re=new RegExp("^"+info.regexp+"$",info.strict?"":"i"),_782=re.exec(_77e);
if(!_782){
return null;
}
var _783=["abbr","wide","narrow"],_784=[1970,0,1,0,0,0,0],amPm="",_785=dojo.every(_782,function(v,i){
if(!i){
return true;
}
var _786=_780[i-1];
var l=_786.length;
switch(_786.charAt(0)){
case "y":
if(l!=2&&_77f.strict){
_784[0]=v;
}else{
if(v<100){
v=Number(v);
var year=""+new Date().getFullYear(),_787=year.substring(0,2)*100,_788=Math.min(Number(year.substring(2,4))+20,99),num=(v<_788)?_787+v:_787-100+v;
_784[0]=num;
}else{
if(_77f.strict){
return false;
}
_784[0]=v;
}
}
break;
case "M":
if(l>2){
var _789=_781["months-format-"+_783[l-3]].concat();
if(!_77f.strict){
v=v.replace(".","").toLowerCase();
_789=dojo.map(_789,function(s){
return s.replace(".","").toLowerCase();
});
}
v=dojo.indexOf(_789,v);
if(v==-1){
return false;
}
}else{
v--;
}
_784[1]=v;
break;
case "E":
case "e":
var days=_781["days-format-"+_783[l-3]].concat();
if(!_77f.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":
_784[1]=0;
case "d":
_784[2]=v;
break;
case "a":
var am=_77f.am||_781.am;
var pm=_77f.pm||_781.pm;
if(!_77f.strict){
var _78a=/\./g;
v=v.replace(_78a,"").toLowerCase();
am=am.replace(_78a,"").toLowerCase();
pm=pm.replace(_78a,"").toLowerCase();
}
if(_77f.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;
}
_784[3]=v;
break;
case "m":
_784[4]=v;
break;
case "s":
_784[5]=v;
break;
case "S":
_784[6]=v;
}
return true;
});
var _78b=+_784[3];
if(amPm==="p"&&_78b<12){
_784[3]=_78b+12;
}else{
if(amPm==="a"&&_78b==12){
_784[3]=0;
}
}
var _78c=new Date(_784[0],_784[1],_784[2],_784[3],_784[4],_784[5],_784[6]);
if(_77f.strict){
_78c.setFullYear(_784[0]);
}
var _78d=_780.join(""),_78e=_78d.indexOf("d")!=-1,_78f=_78d.indexOf("M")!=-1;
if(!_785||(_78f&&_78c.getMonth()>_784[1])||(_78e&&_78c.getDate()>_784[2])){
return null;
}
if((_78f&&_78c.getMonth()<_784[1])||(_78e&&_78c.getDate()<_784[2])){
_78c=dojo.date.add(_78c,"hour",1);
}
return _78c;
};
function _770(_790,_791,_792,_793){
var _794=function(x){
return x;
};
_791=_791||_794;
_792=_792||_794;
_793=_793||_794;
var _795=_790.match(/(''|[^'])+/g),_796=_790.charAt(0)=="'";
dojo.forEach(_795,function(_797,i){
if(!_797){
_795[i]="";
}else{
_795[i]=(_796?_792:_791)(_797);
_796=!_796;
}
});
return _793(_795.join(""));
};
function _77d(_798,_799,_79a,_79b){
_79b=dojo.regexp.escapeString(_79b);
if(!_79a.strict){
_79b=_79b.replace(" a"," ?a");
}
return _79b.replace(/([a-z])\1*/ig,function(_79c){
var s,c=_79c.charAt(0),l=_79c.length,p2="",p3="";
if(_79a.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=_79a.am||_799.am||"AM";
var pm=_79a.pm||_799.pm||"PM";
if(_79a.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(_798){
_798.push(_79c);
}
return "("+s+")";
}).replace(/[\xa0 ]/g,"[\\s\\xa0]");
};
})();
(function(){
var _79d=[];
dojo.date.locale.addCustomFormats=function(_79e,_79f){
_79d.push({pkg:_79e,name:_79f});
};
dojo.date.locale._getGregorianBundle=function(_7a0){
var _7a1={};
dojo.forEach(_79d,function(desc){
var _7a2=dojo.i18n.getLocalization(desc.pkg,desc.name,_7a0);
_7a1=dojo.mixin(_7a1,_7a2);
},this);
return _7a1;
};
})();
dojo.date.locale.addCustomFormats("dojo.cldr","gregorian");
dojo.date.locale.getNames=function(item,type,_7a3,_7a4){
var _7a5,_7a6=dojo.date.locale._getGregorianBundle(_7a4),_7a7=[item,_7a3,type];
if(_7a3=="standAlone"){
var key=_7a7.join("-");
_7a5=_7a6[key];
if(_7a5[0]==1){
_7a5=undefined;
}
}
_7a7[1]="format";
return (_7a5||_7a6[_7a7.join("-")]).concat();
};
dojo.date.locale.isWeekend=function(_7a8,_7a9){
var _7aa=dojo.cldr.supplemental.getWeekend(_7a9),day=(_7a8||new Date()).getDay();
if(_7aa.end<_7aa.start){
_7aa.end+=7;
if(day<_7aa.start){
day+=7;
}
}
return day>=_7aa.start&&day<=_7aa.end;
};
dojo.date.locale._getDayOfYear=function(_7ab){
return dojo.date.difference(new Date(_7ab.getFullYear(),0,1,_7ab.getHours()),_7ab)+1;
};
dojo.date.locale._getWeekOfYear=function(_7ac,_7ad){
if(arguments.length==1){
_7ad=0;
}
var _7ae=new Date(_7ac.getFullYear(),0,1).getDay(),adj=(_7ae-_7ad+7)%7,week=Math.floor((dojo.date.locale._getDayOfYear(_7ac)+adj-1)/7);
if(_7ae==_7ad){
week++;
}
return week;
};
}
if(!dojo._hasResource["dijit.Calendar"]){
dojo._hasResource["dijit.Calendar"]=true;
dojo.provide("dijit.Calendar");
dojo.declare("dijit.Calendar",[dijit._Widget,dijit._Templated],{templateString:dojo.cache("dijit","templates/Calendar.html","<table cellspacing=\"0\" cellpadding=\"0\" class=\"dijitCalendarContainer\" role=\"grid\" dojoAttachEvent=\"onkeypress: _onKeyPress\">\n\t<thead>\n\t\t<tr class=\"dijitReset dijitCalendarMonthContainer\" valign=\"top\">\n\t\t\t<th class='dijitReset' dojoAttachPoint=\"decrementMonth\">\n\t\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitCalendarIncrementControl dijitCalendarDecrease\" waiRole=\"presentation\">\n\t\t\t\t<span dojoAttachPoint=\"decreaseArrowNode\" class=\"dijitA11ySideArrow\">-</span>\n\t\t\t</th>\n\t\t\t<th class='dijitReset' colspan=\"5\">\n\t\t\t\t<div class=\"dijitVisible\">\n\t\t\t\t\t<div class=\"dijitPopup dijitMenu dijitMenuPassive dijitHidden\" dojoAttachPoint=\"monthDropDown\" dojoAttachEvent=\"onmouseup: _onMonthSelect, onmouseover: _onMenuHover, onmouseout: _onMenuHover\">\n\t\t\t\t\t\t<div class=\"dijitCalendarMonthLabelTemplate dijitCalendarMonthLabel\"></div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div dojoAttachPoint=\"monthLabelSpacer\" class=\"dijitSpacer\"></div>\n\t\t\t\t<div dojoAttachPoint=\"monthLabelNode\" class=\"dijitCalendarMonthLabel dijitInline dijitVisible\" dojoAttachEvent=\"onmousedown: _onMonthToggle\"></div>\n\t\t\t</th>\n\t\t\t<th class='dijitReset' dojoAttachPoint=\"incrementMonth\">\n\t\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitCalendarIncrementControl dijitCalendarIncrease\" waiRole=\"presentation\">\n\t\t\t\t<span dojoAttachPoint=\"increaseArrowNode\" class=\"dijitA11ySideArrow\">+</span>\n\t\t\t</th>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<th class=\"dijitReset dijitCalendarDayLabelTemplate\" role=\"columnheader\"><span class=\"dijitCalendarDayLabel\"></span></th>\n\t\t</tr>\n\t</thead>\n\t<tbody dojoAttachEvent=\"onclick: _onDayClick, onmouseover: _onDayMouseOver, onmouseout: _onDayMouseOut\" class=\"dijitReset dijitCalendarBodyContainer\">\n\t\t<tr class=\"dijitReset dijitCalendarWeekTemplate\" role=\"row\">\n\t\t\t<td class=\"dijitReset dijitCalendarDateTemplate\" role=\"gridcell\"><span class=\"dijitCalendarDateLabel\"></span></td>\n\t\t</tr>\n\t</tbody>\n\t<tfoot class=\"dijitReset dijitCalendarYearContainer\">\n\t\t<tr>\n\t\t\t<td class='dijitReset' valign=\"top\" colspan=\"7\">\n\t\t\t\t<h3 class=\"dijitCalendarYearLabel\">\n\t\t\t\t\t<span dojoAttachPoint=\"previousYearLabelNode\" class=\"dijitInline dijitCalendarPreviousYear\"></span>\n\t\t\t\t\t<span dojoAttachPoint=\"currentYearLabelNode\" class=\"dijitInline dijitCalendarSelectedYear\"></span>\n\t\t\t\t\t<span dojoAttachPoint=\"nextYearLabelNode\" class=\"dijitInline dijitCalendarNextYear\"></span>\n\t\t\t\t</h3>\n\t\t\t</td>\n\t\t</tr>\n\t</tfoot>\n</table>\n"),value:new Date(),datePackage:"dojo.date",dayWidth:"narrow",tabIndex:"0",attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{tabIndex:"domNode"}),setValue:function(_7af){
dojo.deprecated("dijit.Calendar:setValue() is deprecated.  Use attr('value', ...) instead.","","2.0");
this.attr("value",_7af);
},_getValueAttr:function(){
var _7b0=new this.dateClassObj(this.value);
_7b0.setHours(0,0,0,0);
if(_7b0.getDate()<this.value.getDate()){
_7b0=this.dateFuncObj.add(_7b0,"hour",1);
}
return _7b0;
},_setValueAttr:function(_7b1){
if(!this.value||this.dateFuncObj.compare(_7b1,this.value)){
_7b1=new this.dateClassObj(_7b1);
_7b1.setHours(1);
this.displayMonth=new this.dateClassObj(_7b1);
if(!this.isDisabledDate(_7b1,this.lang)){
this.value=_7b1;
this.onChange(this.attr("value"));
}
dojo.attr(this.domNode,"aria-label",this.dateLocaleModule.format(_7b1,{selector:"date",formatLength:"full"}));
this._populateGrid();
}
},_setText:function(node,text){
while(node.firstChild){
node.removeChild(node.firstChild);
}
node.appendChild(dojo.doc.createTextNode(text));
},_populateGrid:function(){
var _7b2=this.displayMonth;
_7b2.setDate(1);
var _7b3=_7b2.getDay(),_7b4=this.dateFuncObj.getDaysInMonth(_7b2),_7b5=this.dateFuncObj.getDaysInMonth(this.dateFuncObj.add(_7b2,"month",-1)),_7b6=new this.dateClassObj(),_7b7=dojo.cldr.supplemental.getFirstDayOfWeek(this.lang);
if(_7b7>_7b3){
_7b7-=7;
}
dojo.query(".dijitCalendarDateTemplate",this.domNode).forEach(function(_7b8,i){
i+=_7b7;
var date=new this.dateClassObj(_7b2),_7b9,_7ba="dijitCalendar",adj=0;
if(i<_7b3){
_7b9=_7b5-_7b3+i+1;
adj=-1;
_7ba+="Previous";
}else{
if(i>=(_7b3+_7b4)){
_7b9=i-_7b3-_7b4+1;
adj=1;
_7ba+="Next";
}else{
_7b9=i-_7b3+1;
_7ba+="Current";
}
}
if(adj){
date=this.dateFuncObj.add(date,"month",adj);
}
date.setDate(_7b9);
if(!this.dateFuncObj.compare(date,_7b6,"date")){
_7ba="dijitCalendarCurrentDate "+_7ba;
}
if(this._isSelectedDate(date,this.lang)){
_7ba="dijitCalendarSelectedDate "+_7ba;
}
if(this.isDisabledDate(date,this.lang)){
_7ba="dijitCalendarDisabledDate "+_7ba;
}
var _7bb=this.getClassForDate(date,this.lang);
if(_7bb){
_7ba=_7bb+" "+_7ba;
}
_7b8.className=_7ba+"Month dijitCalendarDateTemplate";
_7b8.dijitDateValue=date.valueOf();
var _7bc=dojo.query(".dijitCalendarDateLabel",_7b8)[0],text=date.getDateLocalized?date.getDateLocalized(this.lang):date.getDate();
this._setText(_7bc,text);
},this);
var _7bd=this.dateLocaleModule.getNames("months","wide","standAlone",this.lang);
this._setText(this.monthLabelNode,_7bd[_7b2.getMonth()]);
var y=_7b2.getFullYear()-1;
var d=new this.dateClassObj();
dojo.forEach(["previous","current","next"],function(name){
d.setFullYear(y++);
this._setText(this[name+"YearLabelNode"],this.dateLocaleModule.format(d,{selector:"year",locale:this.lang}));
},this);
var _7be=this;
var _7bf=function(_7c0,_7c1,adj){
_7be._connects.push(dijit.typematic.addMouseListener(_7be[_7c0],_7be,function(_7c2){
if(_7c2>=0){
_7be._adjustDisplay(_7c1,adj);
}
},0.8,500));
};
_7bf("incrementMonth","month",1);
_7bf("decrementMonth","month",-1);
_7bf("nextYearLabelNode","year",1);
_7bf("previousYearLabelNode","year",-1);
},goToToday:function(){
this.attr("value",this.dateClassObj());
},constructor:function(args){
var _7c3=(args.datePackage&&(args.datePackage!="dojo.date"))?args.datePackage+".Date":"Date";
this.dateClassObj=dojo.getObject(_7c3,false);
this.datePackage=args.datePackage||this.datePackage;
this.dateFuncObj=dojo.getObject(this.datePackage,false);
this.dateLocaleModule=dojo.getObject(this.datePackage+".locale",false);
},postMixInProperties:function(){
if(isNaN(this.value)){
delete this.value;
}
this.inherited(arguments);
},postCreate:function(){
this.inherited(arguments);
dojo.setSelectable(this.domNode,false);
var _7c4=dojo.hitch(this,function(_7c5,n){
var _7c6=dojo.query(_7c5,this.domNode)[0];
for(var i=0;i<n;i++){
_7c6.parentNode.appendChild(_7c6.cloneNode(true));
}
});
_7c4(".dijitCalendarDayLabelTemplate",6);
_7c4(".dijitCalendarDateTemplate",6);
_7c4(".dijitCalendarWeekTemplate",5);
var _7c7=this.dateLocaleModule.getNames("days",this.dayWidth,"standAlone",this.lang);
var _7c8=dojo.cldr.supplemental.getFirstDayOfWeek(this.lang);
dojo.query(".dijitCalendarDayLabel",this.domNode).forEach(function(_7c9,i){
this._setText(_7c9,_7c7[(i+_7c8)%7]);
},this);
var _7ca=this.dateLocaleModule.getNames("months","wide","standAlone",this.lang);
_7c4(".dijitCalendarMonthLabelTemplate",_7ca.length-1);
dojo.query(".dijitCalendarMonthLabelTemplate",this.domNode).forEach(function(node,i){
dojo.attr(node,"month",i);
this._setText(node,_7ca[i]);
dojo.place(node.cloneNode(true),this.monthLabelSpacer);
},this);
var _7cb=this.value;
this.value=null;
this.attr("value",new this.dateClassObj(_7cb));
},_onMenuHover:function(e){
dojo.stopEvent(e);
dojo.toggleClass(e.target,"dijitMenuItemHover");
},_adjustDisplay:function(part,_7cc){
this.displayMonth=this.dateFuncObj.add(this.displayMonth,part,_7cc);
this._populateGrid();
},_onMonthToggle:function(evt){
dojo.stopEvent(evt);
if(evt.type=="mousedown"){
var _7cd=dojo.position(this.monthLabelNode);
var dim={width:_7cd.w+"px",top:-this.displayMonth.getMonth()*_7cd.h+"px"};
if((dojo.isIE&&dojo.isQuirks)||dojo.isIE<7){
dim.left=-_7cd.w/2+"px";
}
dojo.style(this.monthDropDown,dim);
this._popupHandler=this.connect(document,"onmouseup","_onMonthToggle");
}else{
this.disconnect(this._popupHandler);
delete this._popupHandler;
}
dojo.toggleClass(this.monthDropDown,"dijitHidden");
dojo.toggleClass(this.monthLabelNode,"dijitVisible");
},_onMonthSelect:function(evt){
this._onMonthToggle(evt);
this.displayMonth.setMonth(dojo.attr(evt.target,"month"));
this._populateGrid();
},_onDayClick:function(evt){
dojo.stopEvent(evt);
for(var node=evt.target;node&&!node.dijitDateValue;node=node.parentNode){
}
if(node&&!dojo.hasClass(node,"dijitCalendarDisabledDate")){
this.attr("value",node.dijitDateValue);
this.onValueSelected(this.attr("value"));
}
},_onDayMouseOver:function(evt){
var node=evt.target;
if(node&&(node.dijitDateValue||node==this.previousYearLabelNode||node==this.nextYearLabelNode)){
dojo.addClass(node,"dijitCalendarHoveredDate");
this._currentNode=node;
}
},_onDayMouseOut:function(evt){
if(!this._currentNode){
return;
}
for(var node=evt.relatedTarget;node;){
if(node==this._currentNode){
return;
}
try{
node=node.parentNode;
}
catch(x){
node=null;
}
}
dojo.removeClass(this._currentNode,"dijitCalendarHoveredDate");
this._currentNode=null;
},_onKeyPress:function(evt){
var dk=dojo.keys,_7ce=-1,_7cf,_7d0=this.value;
switch(evt.keyCode){
case dk.RIGHT_ARROW:
_7ce=1;
case dk.LEFT_ARROW:
_7cf="day";
if(!this.isLeftToRight()){
_7ce*=-1;
}
break;
case dk.DOWN_ARROW:
_7ce=1;
case dk.UP_ARROW:
_7cf="week";
break;
case dk.PAGE_DOWN:
_7ce=1;
case dk.PAGE_UP:
_7cf=evt.ctrlKey?"year":"month";
break;
case dk.END:
_7d0=this.dateFuncObj.add(_7d0,"month",1);
_7cf="day";
case dk.HOME:
_7d0=new Date(_7d0).setDate(1);
break;
case dk.ENTER:
this.onValueSelected(this.attr("value"));
break;
case dk.ESCAPE:
default:
return;
}
dojo.stopEvent(evt);
if(_7cf){
_7d0=this.dateFuncObj.add(_7d0,_7cf,_7ce);
}
this.attr("value",_7d0);
},onValueSelected:function(date){
},onChange:function(date){
},_isSelectedDate:function(_7d1,_7d2){
return !this.dateFuncObj.compare(_7d1,this.value,"date");
},isDisabledDate:function(_7d3,_7d4){
},getClassForDate:function(_7d5,_7d6){
}});
}
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,datePackage:"dojo.date",compare:dojo.date.compare,format:function(_7d7,_7d8){
if(!_7d7){
return "";
}
return this.dateLocaleModule.format(_7d7,_7d8);
},parse:function(_7d9,_7da){
return this.dateLocaleModule.parse(_7d9,_7da)||(this._isEmpty(_7d9)?null:undefined);
},serialize:function(val,_7db){
if(val.toGregorian){
val=val.toGregorian();
}
return dojo.date.stamp.toISOString(val,_7db);
},value:new Date(""),_blankValue:null,popupClass:"",_selector:"",constructor:function(args){
var _7dc=args.datePackage?args.datePackage+".Date":"Date";
this.dateClassObj=dojo.getObject(_7dc,false);
this.value=new this.dateClassObj("");
this.datePackage=args.datePackage||this.datePackage;
this.dateLocaleModule=dojo.getObject(this.datePackage+".locale",false);
this.regExpGen=this.dateLocaleModule.regexp;
},postMixInProperties:function(){
if(!this.value||this.value.toString()==dijit.form._DateTimeTextBox.prototype.value.toString()){
this.value=null;
}
var _7dd=this.constraints;
_7dd.selector=this._selector;
_7dd.fullYear=true;
var _7de=dojo.date.stamp.fromISOString;
if(typeof _7dd.min=="string"){
_7dd.min=_7de(_7dd.min);
}
if(typeof _7dd.max=="string"){
_7dd.max=_7de(_7dd.max);
}
this.inherited(arguments);
},_onFocus:function(evt){
this._open();
this.inherited(arguments);
},_setValueAttr:function(_7df,_7e0,_7e1){
if(_7df instanceof Date&&!(this.dateClassObj instanceof Date)){
_7df=new this.dateClassObj(_7df);
}
this.inherited(arguments);
if(this._picker){
if(!_7df){
_7df=new this.dateClassObj();
}
this._picker.attr("value",_7df);
}
},_open:function(){
if(this.disabled||this.readOnly||!this.popupClass){
return;
}
var _7e2=this;
if(!this._picker){
var _7e3=dojo.getObject(this.popupClass,false);
this._picker=new _7e3({onValueSelected:function(_7e4){
if(_7e2._tabbingAway){
delete _7e2._tabbingAway;
}else{
_7e2.focus();
}
setTimeout(dojo.hitch(_7e2,"_close"),1);
dijit.form._DateTimeTextBox.superclass._setValueAttr.call(_7e2,_7e4,true);
},id:this.id+"_popup",lang:_7e2.lang,constraints:_7e2.constraints,datePackage:_7e2.datePackage,isDisabledDate:function(date){
var _7e5=dojo.date.compare;
var _7e6=_7e2.constraints;
return _7e6&&(_7e6.min&&(_7e5(_7e6.min,date,_7e2._selector)>0)||(_7e6.max&&_7e5(_7e6.max,date,_7e2._selector)<0));
}});
this._picker.attr("value",this.attr("value")||new this.dateClassObj());
}
if(!this._opened){
dijit.popup.open({parent:this,popup:this._picker,around:this.domNode,onCancel:dojo.hitch(this,this._close),onClose:function(){
_7e2._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(_7e7,_7e8){
this._setValueAttr(this.parse(_7e7,this.constraints),_7e8,_7e7);
},destroy:function(){
if(this._picker){
this._picker.destroy();
delete this._picker;
}
this.inherited(arguments);
},postCreate:function(){
this.inherited(arguments);
this.connect(this.focusNode,"onkeypress",this._onKeyPress);
this.connect(this.focusNode,"onclick",this._open);
},_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||e.metaKey)){
this._close();
dojo.stopEvent(e);
}else{
if(!this._opened&&e.charOrCode==dk.DOWN_ARROW){
this._open();
dojo.stopEvent(e);
}else{
if(e.charOrCode===dk.TAB){
this._tabbingAway=true;
}else{
if(this._opened&&(e.keyChar||e.charOrCode===dk.BACKSPACE||e.charOrCode==dk.DELETE)){
setTimeout(dojo.hitch(this,function(){
if(this._picker&&this._opened){
dijit.placeOnScreenAroundElement(p.domNode.parentNode,this.domNode,{"BL":"TL","TL":"BL"},p.orient?dojo.hitch(p,"orient"):null);
}
}),1);
}
}
}
}
}});
}
if(!dojo._hasResource["dijit.form.DateTextBox"]){
dojo._hasResource["dijit.form.DateTextBox"]=true;
dojo.provide("dijit.form.DateTextBox");
dojo.declare("dijit.form.DateTextBox",dijit.form._DateTimeTextBox,{baseClass:"dijitTextBox dijitDateTextBox",popupClass:"dijit.Calendar",_selector:"date",value:new Date("")});
}
if(!dojo._hasResource["dijit.form.DropDownButton"]){
dojo._hasResource["dijit.form.DropDownButton"]=true;
dojo.provide("dijit.form.DropDownButton");
}
if(!dojo._hasResource["dojo.number"]){
dojo._hasResource["dojo.number"]=true;
dojo.provide("dojo.number");
dojo.number.format=function(_7e9,_7ea){
_7ea=dojo.mixin({},_7ea||{});
var _7eb=dojo.i18n.normalizeLocale(_7ea.locale);
var _7ec=dojo.i18n.getLocalization("dojo.cldr","number",_7eb);
_7ea.customs=_7ec;
var _7ed=_7ea.pattern||_7ec[(_7ea.type||"decimal")+"Format"];
if(isNaN(_7e9)||Math.abs(_7e9)==Infinity){
return null;
}
return dojo.number._applyPattern(_7e9,_7ed,_7ea);
};
dojo.number._numberPatternRE=/[#0,]*[#0](?:\.0*#*)?/;
dojo.number._applyPattern=function(_7ee,_7ef,_7f0){
_7f0=_7f0||{};
var _7f1=_7f0.customs.group;
var _7f2=_7f0.customs.decimal;
var _7f3=_7ef.split(";");
var _7f4=_7f3[0];
_7ef=_7f3[(_7ee<0)?1:0]||("-"+_7f4);
if(_7ef.indexOf("%")!=-1){
_7ee*=100;
}else{
if(_7ef.indexOf("‰")!=-1){
_7ee*=1000;
}else{
if(_7ef.indexOf("¤")!=-1){
_7f1=_7f0.customs.currencyGroup||_7f1;
_7f2=_7f0.customs.currencyDecimal||_7f2;
_7ef=_7ef.replace(/\u00a4{1,3}/,function(_7f5){
var prop=["symbol","currency","displayName"][_7f5.length-1];
return _7f0[prop]||_7f0.currency||"";
});
}else{
if(_7ef.indexOf("E")!=-1){
throw new Error("exponential notation not supported");
}
}
}
}
var _7f6=dojo.number._numberPatternRE;
var _7f7=_7f4.match(_7f6);
if(!_7f7){
throw new Error("unable to find a number expression in pattern: "+_7ef);
}
if(_7f0.fractional===false){
_7f0.places=0;
}
return _7ef.replace(_7f6,dojo.number._formatAbsolute(_7ee,_7f7[0],{decimal:_7f2,group:_7f1,places:_7f0.places,round:_7f0.round}));
};
dojo.number.round=function(_7f8,_7f9,_7fa){
var _7fb=10/(_7fa||10);
return (_7fb*+_7f8).toFixed(_7f9)/_7fb;
};
if((0.9).toFixed()==0){
(function(){
var _7fc=dojo.number.round;
dojo.number.round=function(v,p,m){
var d=Math.pow(10,-p||0),a=Math.abs(v);
if(!v||a>=d||a*Math.pow(10,p+1)<5){
d=0;
}
return _7fc(v,p,m)+(v>0?d:-d);
};
})();
}
dojo.number._formatAbsolute=function(_7fd,_7fe,_7ff){
_7ff=_7ff||{};
if(_7ff.places===true){
_7ff.places=0;
}
if(_7ff.places===Infinity){
_7ff.places=6;
}
var _800=_7fe.split(".");
var _801=(_7ff.places>=0)?_7ff.places:(_800[1]&&_800[1].length)||0;
if(!(_7ff.round<0)){
_7fd=dojo.number.round(_7fd,_801,_7ff.round);
}
var _802=String(Math.abs(_7fd)).split(".");
var _803=_802[1]||"";
if(_7ff.places){
var _804=dojo.isString(_7ff.places)&&_7ff.places.indexOf(",");
if(_804){
_7ff.places=_7ff.places.substring(_804+1);
}
_802[1]=dojo.string.pad(_803.substr(0,_7ff.places),_7ff.places,"0",true);
}else{
if(_800[1]&&_7ff.places!==0){
var pad=_800[1].lastIndexOf("0")+1;
if(pad>_803.length){
_802[1]=dojo.string.pad(_803,pad,"0",true);
}
var _805=_800[1].length;
if(_805<_803.length){
_802[1]=_803.substr(0,_805);
}
}else{
if(_802[1]){
_802.pop();
}
}
}
var _806=_800[0].replace(",","");
pad=_806.indexOf("0");
if(pad!=-1){
pad=_806.length-pad;
if(pad>_802[0].length){
_802[0]=dojo.string.pad(_802[0],pad);
}
if(_806.indexOf("#")==-1){
_802[0]=_802[0].substr(_802[0].length-pad);
}
}
var _807=_800[0].lastIndexOf(",");
var _808,_809;
if(_807!=-1){
_808=_800[0].length-_807-1;
var _80a=_800[0].substr(0,_807);
_807=_80a.lastIndexOf(",");
if(_807!=-1){
_809=_80a.length-_807-1;
}
}
var _80b=[];
for(var _80c=_802[0];_80c;){
var off=_80c.length-_808;
_80b.push((off>0)?_80c.substr(off):_80c);
_80c=(off>0)?_80c.slice(0,off):"";
if(_809){
_808=_809;
delete _809;
}
}
_802[0]=_80b.reverse().join(_7ff.group||",");
return _802.join(_7ff.decimal||".");
};
dojo.number.regexp=function(_80d){
return dojo.number._parseInfo(_80d).regexp;
};
dojo.number._parseInfo=function(_80e){
_80e=_80e||{};
var _80f=dojo.i18n.normalizeLocale(_80e.locale);
var _810=dojo.i18n.getLocalization("dojo.cldr","number",_80f);
var _811=_80e.pattern||_810[(_80e.type||"decimal")+"Format"];
var _812=_810.group;
var _813=_810.decimal;
var _814=1;
if(_811.indexOf("%")!=-1){
_814/=100;
}else{
if(_811.indexOf("‰")!=-1){
_814/=1000;
}else{
var _815=_811.indexOf("¤")!=-1;
if(_815){
_812=_810.currencyGroup||_812;
_813=_810.currencyDecimal||_813;
}
}
}
var _816=_811.split(";");
if(_816.length==1){
_816.push("-"+_816[0]);
}
var re=dojo.regexp.buildGroupRE(_816,function(_817){
_817="(?:"+dojo.regexp.escapeString(_817,".")+")";
return _817.replace(dojo.number._numberPatternRE,function(_818){
var _819={signed:false,separator:_80e.strict?_812:[_812,""],fractional:_80e.fractional,decimal:_813,exponent:false};
var _81a=_818.split(".");
var _81b=_80e.places;
if(_81a.length==1||_81b===0){
_819.fractional=false;
}else{
if(_81b===undefined){
_81b=_80e.pattern?_81a[1].lastIndexOf("0")+1:Infinity;
}
if(_81b&&_80e.fractional==undefined){
_819.fractional=true;
}
if(!_80e.places&&(_81b<_81a[1].length)){
_81b+=","+_81a[1].length;
}
_819.places=_81b;
}
var _81c=_81a[0].split(",");
if(_81c.length>1){
_819.groupSize=_81c.pop().length;
if(_81c.length>1){
_819.groupSize2=_81c.pop().length;
}
}
return "("+dojo.number._realNumberRegexp(_819)+")";
});
},true);
if(_815){
re=re.replace(/([\s\xa0]*)(\u00a4{1,3})([\s\xa0]*)/g,function(_81d,_81e,_81f,_820){
var prop=["symbol","currency","displayName"][_81f.length-1];
var _821=dojo.regexp.escapeString(_80e[prop]||_80e.currency||"");
_81e=_81e?"[\\s\\xa0]":"";
_820=_820?"[\\s\\xa0]":"";
if(!_80e.strict){
if(_81e){
_81e+="*";
}
if(_820){
_820+="*";
}
return "(?:"+_81e+_821+_820+")?";
}
return _81e+_821+_820;
});
}
return {regexp:re.replace(/[\xa0 ]/g,"[\\s\\xa0]"),group:_812,decimal:_813,factor:_814};
};
dojo.number.parse=function(_822,_823){
var info=dojo.number._parseInfo(_823);
var _824=(new RegExp("^"+info.regexp+"$")).exec(_822);
if(!_824){
return NaN;
}
var _825=_824[1];
if(!_824[1]){
if(!_824[2]){
return NaN;
}
_825=_824[2];
info.factor*=-1;
}
_825=_825.replace(new RegExp("["+info.group+"\\s\\xa0"+"]","g"),"").replace(info.decimal,".");
return _825*info.factor;
};
dojo.number._realNumberRegexp=function(_826){
_826=_826||{};
if(!("places" in _826)){
_826.places=Infinity;
}
if(typeof _826.decimal!="string"){
_826.decimal=".";
}
if(!("fractional" in _826)||/^0/.test(_826.places)){
_826.fractional=[true,false];
}
if(!("exponent" in _826)){
_826.exponent=[true,false];
}
if(!("eSigned" in _826)){
_826.eSigned=[true,false];
}
var _827=dojo.number._integerRegexp(_826);
var _828=dojo.regexp.buildGroupRE(_826.fractional,function(q){
var re="";
if(q&&(_826.places!==0)){
re="\\"+_826.decimal;
if(_826.places==Infinity){
re="(?:"+re+"\\d+)?";
}else{
re+="\\d{"+_826.places+"}";
}
}
return re;
},true);
var _829=dojo.regexp.buildGroupRE(_826.exponent,function(q){
if(q){
return "([eE]"+dojo.number._integerRegexp({signed:_826.eSigned})+")";
}
return "";
});
var _82a=_827+_828;
if(_828){
_82a="(?:(?:"+_82a+")|(?:"+_828+"))";
}
return _82a+_829;
};
dojo.number._integerRegexp=function(_82b){
_82b=_82b||{};
if(!("signed" in _82b)){
_82b.signed=[true,false];
}
if(!("separator" in _82b)){
_82b.separator="";
}else{
if(!("groupSize" in _82b)){
_82b.groupSize=3;
}
}
var _82c=dojo.regexp.buildGroupRE(_82b.signed,function(q){
return q?"[-+]":"";
},true);
var _82d=dojo.regexp.buildGroupRE(_82b.separator,function(sep){
if(!sep){
return "(?:\\d+)";
}
sep=dojo.regexp.escapeString(sep);
if(sep==" "){
sep="\\s";
}else{
if(sep==" "){
sep="\\s\\xa0";
}
}
var grp=_82b.groupSize,grp2=_82b.groupSize2;
if(grp2){
var _82e="(?:0|[1-9]\\d{0,"+(grp2-1)+"}(?:["+sep+"]\\d{"+grp2+"})*["+sep+"]\\d{"+grp+"})";
return ((grp-grp2)>0)?"(?:"+_82e+"|(?:0|[1-9]\\d{0,"+(grp-1)+"}))":_82e;
}
return "(?:0|[1-9]\\d{0,"+(grp-1)+"}(?:["+sep+"]\\d{"+grp+"})*)";
},true);
return _82c+_82d;
};
}
if(!dojo._hasResource["dijit.form.NumberTextBox"]){
dojo._hasResource["dijit.form.NumberTextBox"]=true;
dojo.provide("dijit.form.NumberTextBox");
dojo.declare("dijit.form.NumberTextBoxMixin",null,{regExpGen:dojo.number.regexp,value:NaN,editOptions:{pattern:"#.######"},_formatter:dojo.number.format,postMixInProperties:function(){
var _82f=typeof this.constraints.places=="number"?this.constraints.places:0;
if(_82f){
_82f++;
}
if(typeof this.constraints.max!="number"){
this.constraints.max=9*Math.pow(10,15-_82f);
}
if(typeof this.constraints.min!="number"){
this.constraints.min=-9*Math.pow(10,15-_82f);
}
this.inherited(arguments);
},_onFocus:function(){
if(this.disabled){
return;
}
var val=this.attr("value");
if(typeof val=="number"&&!isNaN(val)){
var _830=this.format(val,this.constraints);
if(_830!==undefined){
this.textbox.value=_830;
}
}
this.inherited(arguments);
},format:function(_831,_832){
var _833=String(_831);
if(typeof _831!="number"){
return _833;
}
if(isNaN(_831)){
return "";
}
if(!("rangeCheck" in this&&this.rangeCheck(_831,_832))&&_832.exponent!==false&&/\de[-+]?\d/i.test(_833)){
return _833;
}
if(this.editOptions&&this._focused){
_832=dojo.mixin({},_832,this.editOptions);
}
return this._formatter(_831,_832);
},parse:dojo.number.parse,_getDisplayedValueAttr:function(){
var v=this.inherited(arguments);
return isNaN(v)?this.textbox.value:v;
},filter:function(_834){
return (_834===null||_834===""||_834===undefined)?NaN:this.inherited(arguments);
},serialize:function(_835,_836){
return (typeof _835!="number"||isNaN(_835))?"":this.inherited(arguments);
},_setValueAttr:function(_837,_838,_839){
if(_837!==undefined&&_839===undefined){
_839=String(_837);
if(typeof _837=="number"){
if(isNaN(_837)){
_839="";
}else{
if(("rangeCheck" in this&&this.rangeCheck(_837,this.constraints))||this.constraints.exponent===false||!/\de[-+]?\d/i.test(_839)){
_839=undefined;
}
}
}else{
if(!_837){
_839="";
_837=NaN;
}else{
_837=undefined;
}
}
}
this.inherited(arguments,[_837,_838,_839]);
},_getValueAttr:function(){
var v=this.inherited(arguments);
if(isNaN(v)&&this.textbox.value!==""){
if(this.constraints.exponent!==false&&/\de[-+]?\d/i.test(this.textbox.value)&&(new RegExp("^"+dojo.number._realNumberRegexp(dojo.mixin({},this.constraints))+"$").test(this.textbox.value))){
var n=Number(this.textbox.value);
return isNaN(n)?undefined:n;
}else{
return undefined;
}
}else{
return v;
}
},isValid:function(_83a){
if(!this._focused||this._isEmpty(this.textbox.value)){
return this.inherited(arguments);
}else{
var v=this.attr("value");
if(!isNaN(v)&&this.rangeCheck(v,this.constraints)){
if(this.constraints.exponent!==false&&/\de[-+]?\d/i.test(this.textbox.value)){
return true;
}else{
return this.inherited(arguments);
}
}else{
return false;
}
}
}});
dojo.declare("dijit.form.NumberTextBox",[dijit.form.RangeBoundTextBox,dijit.form.NumberTextBoxMixin],{});
}
if(!dojo._hasResource["dijit.form.SimpleTextarea"]){
dojo._hasResource["dijit.form.SimpleTextarea"]=true;
dojo.provide("dijit.form.SimpleTextarea");
dojo.declare("dijit.form.SimpleTextarea",dijit.form.TextBox,{baseClass:"dijitTextArea",attributeMap:dojo.delegate(dijit.form._FormValueWidget.prototype.attributeMap,{rows:"textbox",cols:"textbox"}),rows:"3",cols:"20",templateString:"<textarea ${nameAttrSetting} dojoAttachPoint='focusNode,containerNode,textbox' autocomplete='off'></textarea>",postMixInProperties:function(){
if(!this.value&&this.srcNodeRef){
this.value=this.srcNodeRef.value;
}
this.inherited(arguments);
},filter:function(_83b){
if(_83b){
_83b=_83b.replace(/\r/g,"");
}
return this.inherited(arguments);
},postCreate:function(){
this.inherited(arguments);
if(dojo.isIE&&this.cols){
dojo.addClass(this.textbox,"dijitTextAreaCols");
}
},_previousValue:"",_onInput:function(e){
if(this.maxLength){
var _83c=parseInt(this.maxLength);
var _83d=this.textbox.value.replace(/\r/g,"");
var _83e=_83d.length-_83c;
if(_83e>0){
if(e){
dojo.stopEvent(e);
}
var _83f=this.textbox;
if(_83f.selectionStart){
var pos=_83f.selectionStart;
var cr=0;
if(dojo.isOpera){
cr=(this.textbox.value.substring(0,pos).match(/\r/g)||[]).length;
}
this.textbox.value=_83d.substring(0,pos-_83e-cr)+_83d.substring(pos-cr);
_83f.setSelectionRange(pos-_83e,pos-_83e);
}else{
if(dojo.doc.selection){
_83f.focus();
var _840=dojo.doc.selection.createRange();
_840.moveStart("character",-_83e);
_840.text="";
_840.select();
}
}
}
this._previousValue=this.textbox.value;
}
this.inherited(arguments);
}});
}
if(!dojo._hasResource["dijit._TimePicker"]){
dojo._hasResource["dijit._TimePicker"]=true;
dojo.provide("dijit._TimePicker");
dojo.declare("dijit._TimePicker",[dijit._Widget,dijit._Templated],{templateString:dojo.cache("dijit","templates/TimePicker.html","<div id=\"widget_${id}\" class=\"dijitMenu ${baseClass}\"\n    ><div dojoAttachPoint=\"upArrow\" class=\"dijitButtonNode dijitUpArrowButton\" dojoAttachEvent=\"onmouseenter:_buttonMouse,onmouseleave:_buttonMouse\"\n\t\t><div class=\"dijitReset dijitInline dijitArrowButtonInner\" wairole=\"presentation\" role=\"presentation\">&nbsp;</div\n\t\t><div class=\"dijitArrowButtonChar\">&#9650;</div></div\n    ><div dojoAttachPoint=\"timeMenu,focusNode\" dojoAttachEvent=\"onclick:_onOptionSelected,onmouseover,onmouseout\"></div\n    ><div dojoAttachPoint=\"downArrow\" class=\"dijitButtonNode dijitDownArrowButton\" dojoAttachEvent=\"onmouseenter:_buttonMouse,onmouseleave:_buttonMouse\"\n\t\t><div class=\"dijitReset dijitInline dijitArrowButtonInner\" wairole=\"presentation\" role=\"presentation\">&nbsp;</div\n\t\t><div class=\"dijitArrowButtonChar\">&#9660;</div></div\n></div>\n"),baseClass:"dijitTimePicker",clickableIncrement:"T00:15:00",visibleIncrement:"T01:00:00",visibleRange:"T05:00:00",value:new Date(),_visibleIncrement:2,_clickableIncrement:1,_totalIncrements:10,constraints:{},serialize:dojo.date.stamp.toISOString,_filterString:"",setValue:function(_841){
dojo.deprecated("dijit._TimePicker:setValue() is deprecated.  Use attr('value') instead.","","2.0");
this.attr("value",_841);
},_setValueAttr:function(date){
this.value=date;
this._showText();
},onOpen:function(best){
if(this._beenOpened&&this.domNode.parentNode){
var p=dijit.byId(this.domNode.parentNode.dijitPopupParent);
if(p){
var val=p.attr("displayedValue");
if(val&&!p.parse(val,p.constraints)){
this._filterString=val;
}else{
this._filterString="";
}
this._showText();
}
}
this._beenOpened=true;
},isDisabledDate:function(_842,_843){
return false;
},_getFilteredNodes:function(_844,_845,_846){
var _847=[],n,i=_844,max=this._maxIncrement+Math.abs(i),chk=_846?-1:1,dec=_846?1:0,inc=_846?0:1;
do{
i=i-dec;
n=this._createOption(i);
if(n){
_847.push(n);
}
i=i+inc;
}while(_847.length<_845&&(i*chk)<max);
if(_846){
_847.reverse();
}
return _847;
},_showText:function(){
this.timeMenu.innerHTML="";
var _848=dojo.date.stamp.fromISOString;
this._clickableIncrementDate=_848(this.clickableIncrement);
this._visibleIncrementDate=_848(this.visibleIncrement);
this._visibleRangeDate=_848(this.visibleRange);
var _849=function(date){
return date.getHours()*60*60+date.getMinutes()*60+date.getSeconds();
};
var _84a=_849(this._clickableIncrementDate);
var _84b=_849(this._visibleIncrementDate);
var _84c=_849(this._visibleRangeDate);
var time=this.value.getTime();
this._refDate=new Date(time-time%(_84b*1000));
this._refDate.setFullYear(1970,0,1);
this._clickableIncrement=1;
this._totalIncrements=_84c/_84a;
this._visibleIncrement=_84b/_84a;
this._maxIncrement=(60*60*24)/_84a;
var _84d=this._getFilteredNodes(0,this._totalIncrements>>1,true);
var _84e=this._getFilteredNodes(0,this._totalIncrements>>1,false);
if(_84d.length<this._totalIncrements>>1){
_84d=_84d.slice(_84d.length/2);
_84e=_84e.slice(0,_84e.length/2);
}
dojo.forEach(_84d.concat(_84e),function(n){
this.timeMenu.appendChild(n);
},this);
},postCreate:function(){
if(this.constraints===dijit._TimePicker.prototype.constraints){
this.constraints={};
}
dojo.mixin(this,this.constraints);
if(!this.constraints.locale){
this.constraints.locale=this.lang;
}
this.connect(this.timeMenu,dojo.isIE?"onmousewheel":"DOMMouseScroll","_mouseWheeled");
var _84f=this;
var _850=function(){
_84f._connects.push(dijit.typematic.addMouseListener.apply(null,arguments));
};
_850(this.upArrow,this,this._onArrowUp,1,50);
_850(this.downArrow,this,this._onArrowDown,1,50);
var _851=function(cb){
return function(cnt){
if(cnt>0){
cb.call(this,arguments);
}
};
};
var _852=function(node,cb){
return function(e){
dojo.stopEvent(e);
dijit.typematic.trigger(e,this,node,_851(cb),node,1,50);
};
};
this.connect(this.upArrow,"onmouseover",_852(this.upArrow,this._onArrowUp));
this.connect(this.downArrow,"onmouseover",_852(this.downArrow,this._onArrowDown));
this.inherited(arguments);
},_buttonMouse:function(e){
dojo.toggleClass(e.currentTarget,"dijitButtonNodeHover",e.type=="mouseover");
},_createOption:function(_853){
var date=new Date(this._refDate);
var _854=this._clickableIncrementDate;
date.setHours(date.getHours()+_854.getHours()*_853,date.getMinutes()+_854.getMinutes()*_853,date.getSeconds()+_854.getSeconds()*_853);
if(this.constraints.selector=="time"){
date.setFullYear(1970,0,1);
}
var _855=dojo.date.locale.format(date,this.constraints);
if(this._filterString&&_855.toLowerCase().indexOf(this._filterString)!==0){
return null;
}
var div=dojo.create("div",{"class":this.baseClass+"Item"});
div.date=date;
div.index=_853;
dojo.create("div",{"class":this.baseClass+"ItemInner",innerHTML:_855},div);
if(_853%this._visibleIncrement<1&&_853%this._visibleIncrement>-1){
dojo.addClass(div,this.baseClass+"Marker");
}else{
if(!(_853%this._clickableIncrement)){
dojo.addClass(div,this.baseClass+"Tick");
}
}
if(this.isDisabledDate(date)){
dojo.addClass(div,this.baseClass+"ItemDisabled");
}
if(!dojo.date.compare(this.value,date,this.constraints.selector)){
div.selected=true;
dojo.addClass(div,this.baseClass+"ItemSelected");
if(dojo.hasClass(div,this.baseClass+"Marker")){
dojo.addClass(div,this.baseClass+"MarkerSelected");
}else{
dojo.addClass(div,this.baseClass+"TickSelected");
}
}
return div;
},_onOptionSelected:function(tgt){
var _856=tgt.target.date||tgt.target.parentNode.date;
if(!_856||this.isDisabledDate(_856)){
return;
}
this._highlighted_option=null;
this.attr("value",_856);
this.onValueSelected(_856);
},onValueSelected:function(time){
},_highlightOption:function(node,_857){
if(!node){
return;
}
if(_857){
if(this._highlighted_option){
this._highlightOption(this._highlighted_option,false);
}
this._highlighted_option=node;
}else{
if(this._highlighted_option!==node){
return;
}else{
this._highlighted_option=null;
}
}
dojo.toggleClass(node,this.baseClass+"ItemHover",_857);
if(dojo.hasClass(node,this.baseClass+"Marker")){
dojo.toggleClass(node,this.baseClass+"MarkerHover",_857);
}else{
dojo.toggleClass(node,this.baseClass+"TickHover",_857);
}
},onmouseover:function(e){
this._keyboardSelected=null;
var tgr=(e.target.parentNode===this.timeMenu)?e.target:e.target.parentNode;
if(!dojo.hasClass(tgr,this.baseClass+"Item")){
return;
}
this._highlightOption(tgr,true);
},onmouseout:function(e){
this._keyboardSelected=null;
var tgr=(e.target.parentNode===this.timeMenu)?e.target:e.target.parentNode;
this._highlightOption(tgr,false);
},_mouseWheeled:function(e){
this._keyboardSelected=null;
dojo.stopEvent(e);
var _858=(dojo.isIE?e.wheelDelta:-e.detail);
this[(_858>0?"_onArrowUp":"_onArrowDown")]();
},_onArrowUp:function(_859){
if(typeof _859=="number"&&_859==-1){
return;
}
if(!this.timeMenu.childNodes.length){
return;
}
var _85a=this.timeMenu.childNodes[0].index;
var divs=this._getFilteredNodes(_85a,1,true);
if(divs.length){
this.timeMenu.removeChild(this.timeMenu.childNodes[this.timeMenu.childNodes.length-1]);
this.timeMenu.insertBefore(divs[0],this.timeMenu.childNodes[0]);
}
},_onArrowDown:function(_85b){
if(typeof _85b=="number"&&_85b==-1){
return;
}
if(!this.timeMenu.childNodes.length){
return;
}
var _85c=this.timeMenu.childNodes[this.timeMenu.childNodes.length-1].index+1;
var divs=this._getFilteredNodes(_85c,1,false);
if(divs.length){
this.timeMenu.removeChild(this.timeMenu.childNodes[0]);
this.timeMenu.appendChild(divs[0]);
}
},handleKey:function(e){
var dk=dojo.keys;
if(e.keyChar||e.charOrCode===dk.BACKSPACE||e.charOrCode==dk.DELETE){
setTimeout(dojo.hitch(this,function(){
this._filterString=e.target.value.toLowerCase();
this._showText();
}),1);
}else{
if(e.charOrCode==dk.DOWN_ARROW||e.charOrCode==dk.UP_ARROW){
dojo.stopEvent(e);
if(this._highlighted_option&&!this._highlighted_option.parentNode){
this._highlighted_option=null;
}
var _85d=this.timeMenu,tgt=this._highlighted_option||dojo.query("."+this.baseClass+"ItemSelected",_85d)[0];
if(!tgt){
tgt=_85d.childNodes[0];
}else{
if(_85d.childNodes.length){
if(e.charOrCode==dk.DOWN_ARROW&&!tgt.nextSibling){
this._onArrowDown();
}else{
if(e.charOrCode==dk.UP_ARROW&&!tgt.previousSibling){
this._onArrowUp();
}
}
if(e.charOrCode==dk.DOWN_ARROW){
tgt=tgt.nextSibling;
}else{
tgt=tgt.previousSibling;
}
}
}
this._highlightOption(tgt,true);
this._keyboardSelected=tgt;
}else{
if(this._highlighted_option&&(e.charOrCode==dk.ENTER||e.charOrCode===dk.TAB)){
if(!this._keyboardSelected&&e.charOrCode===dk.TAB){
return;
}
if(e.charOrCode==dk.ENTER){
dojo.stopEvent(e);
}
this._onOptionSelected({target:this._highlighted_option});
}
}
}
}});
}
if(!dojo._hasResource["dijit.form.TimeTextBox"]){
dojo._hasResource["dijit.form.TimeTextBox"]=true;
dojo.provide("dijit.form.TimeTextBox");
dojo.declare("dijit.form.TimeTextBox",dijit.form._DateTimeTextBox,{baseClass:"dijitTextBox dijitTimeTextBox",popupClass:"dijit._TimePicker",_selector:"time",value:new Date("")});
}
if(!dojo._hasResource["dojo.cookie"]){
dojo._hasResource["dojo.cookie"]=true;
dojo.provide("dojo.cookie");
dojo.cookie=function(name,_85e,_85f){
var c=document.cookie;
if(arguments.length==1){
var _860=c.match(new RegExp("(?:^|; )"+dojo.regexp.escapeString(name)+"=([^;]*)"));
return _860?decodeURIComponent(_860[1]):undefined;
}else{
_85f=_85f||{};
var exp=_85f.expires;
if(typeof exp=="number"){
var d=new Date();
d.setTime(d.getTime()+exp*24*60*60*1000);
exp=_85f.expires=d;
}
if(exp&&exp.toUTCString){
_85f.expires=exp.toUTCString();
}
_85e=encodeURIComponent(_85e);
var _861=name+"="+_85e,_862;
for(_862 in _85f){
_861+="; "+_862;
var _863=_85f[_862];
if(_863!==true){
_861+="="+_863;
}
}
document.cookie=_861;
}
};
dojo.cookie.isSupported=function(){
if(!("cookieEnabled" in navigator)){
this("__djCookieTest__","CookiesAllowed");
navigator.cookieEnabled=this("__djCookieTest__")=="CookiesAllowed";
if(navigator.cookieEnabled){
this("__djCookieTest__","",{expires:-1});
}
}
return navigator.cookieEnabled;
};
}
if(!dojo._hasResource["dijit.form.ToggleButton"]){
dojo._hasResource["dijit.form.ToggleButton"]=true;
dojo.provide("dijit.form.ToggleButton");
}
if(!dojo._hasResource["dijit.layout.StackController"]){
dojo._hasResource["dijit.layout.StackController"]=true;
dojo.provide("dijit.layout.StackController");
dojo.declare("dijit.layout.StackController",[dijit._Widget,dijit._Templated,dijit._Container],{templateString:"<span wairole='tablist' dojoAttachEvent='onkeypress' class='dijitStackController'></span>",containerId:"",buttonWidget:"dijit.layout._StackButton",postCreate:function(){
dijit.setWaiRole(this.domNode,"tablist");
this.pane2button={};
this.pane2handles={};
this.subscribe(this.containerId+"-startup","onStartup");
this.subscribe(this.containerId+"-addChild","onAddChild");
this.subscribe(this.containerId+"-removeChild","onRemoveChild");
this.subscribe(this.containerId+"-selectChild","onSelectChild");
this.subscribe(this.containerId+"-containerKeyPress","onContainerKeyPress");
},onStartup:function(info){
dojo.forEach(info.children,this.onAddChild,this);
if(info.selected){
this.onSelectChild(info.selected);
}
},destroy:function(){
for(var pane in this.pane2button){
this.onRemoveChild(dijit.byId(pane));
}
this.inherited(arguments);
},onAddChild:function(page,_864){
var _865=dojo.doc.createElement("span");
this.domNode.appendChild(_865);
var cls=dojo.getObject(this.buttonWidget);
var _866=new cls({id:this.id+"_"+page.id,label:page.title,showLabel:page.showTitle,iconClass:page.iconClass,closeButton:page.closable,title:page.tooltip},_865);
dijit.setWaiState(_866.focusNode,"selected","false");
this.pane2handles[page.id]=[this.connect(page,"attr",function(name,_867){
if(arguments.length==2){
var _868={title:"label",showTitle:"showLabel",iconClass:"iconClass",closable:"closeButton",tooltip:"title"}[name];
if(_868){
_866.attr(_868,_867);
}
}
}),this.connect(_866,"onClick",dojo.hitch(this,"onButtonClick",page)),this.connect(_866,"onClickCloseButton",dojo.hitch(this,"onCloseButtonClick",page))];
this.addChild(_866,_864);
this.pane2button[page.id]=_866;
page.controlButton=_866;
if(!this._currentChild){
_866.focusNode.setAttribute("tabIndex","0");
dijit.setWaiState(_866.focusNode,"selected","true");
this._currentChild=page;
}
if(!this.isLeftToRight()&&dojo.isIE&&this._rectifyRtlTabList){
this._rectifyRtlTabList();
}
},onRemoveChild:function(page){
if(this._currentChild===page){
this._currentChild=null;
}
dojo.forEach(this.pane2handles[page.id],this.disconnect,this);
delete this.pane2handles[page.id];
var _869=this.pane2button[page.id];
if(_869){
this.removeChild(_869);
delete this.pane2button[page.id];
_869.destroy();
}
delete page.controlButton;
},onSelectChild:function(page){
if(!page){
return;
}
if(this._currentChild){
var _86a=this.pane2button[this._currentChild.id];
_86a.attr("checked",false);
dijit.setWaiState(_86a.focusNode,"selected","false");
_86a.focusNode.setAttribute("tabIndex","-1");
}
var _86b=this.pane2button[page.id];
_86b.attr("checked",true);
dijit.setWaiState(_86b.focusNode,"selected","true");
this._currentChild=page;
_86b.focusNode.setAttribute("tabIndex","0");
var _86c=dijit.byId(this.containerId);
dijit.setWaiState(_86c.containerNode,"labelledby",_86b.id);
},onButtonClick:function(page){
var _86d=dijit.byId(this.containerId);
_86d.selectChild(page);
},onCloseButtonClick:function(page){
var _86e=dijit.byId(this.containerId);
_86e.closeChild(page);
if(this._currentChild){
var b=this.pane2button[this._currentChild.id];
if(b){
dijit.focus(b.focusNode||b.domNode);
}
}
},adjacent:function(_86f){
if(!this.isLeftToRight()&&(!this.tabPosition||/top|bottom/.test(this.tabPosition))){
_86f=!_86f;
}
var _870=this.getChildren();
var _871=dojo.indexOf(_870,this.pane2button[this._currentChild.id]);
var _872=_86f?1:_870.length-1;
return _870[(_871+_872)%_870.length];
},onkeypress:function(e){
if(this.disabled||e.altKey){
return;
}
var _873=null;
if(e.ctrlKey||!e._djpage){
var k=dojo.keys;
switch(e.charOrCode){
case k.LEFT_ARROW:
case k.UP_ARROW:
if(!e._djpage){
_873=false;
}
break;
case k.PAGE_UP:
if(e.ctrlKey){
_873=false;
}
break;
case k.RIGHT_ARROW:
case k.DOWN_ARROW:
if(!e._djpage){
_873=true;
}
break;
case k.PAGE_DOWN:
if(e.ctrlKey){
_873=true;
}
break;
case k.DELETE:
if(this._currentChild.closable){
this.onCloseButtonClick(this._currentChild);
}
dojo.stopEvent(e);
break;
default:
if(e.ctrlKey){
if(e.charOrCode===k.TAB){
this.adjacent(!e.shiftKey).onClick();
dojo.stopEvent(e);
}else{
if(e.charOrCode=="w"){
if(this._currentChild.closable){
this.onCloseButtonClick(this._currentChild);
}
dojo.stopEvent(e);
}
}
}
}
if(_873!==null){
this.adjacent(_873).onClick();
dojo.stopEvent(e);
}
}
},onContainerKeyPress:function(info){
info.e._djpage=info.page;
this.onkeypress(info.e);
}});
dojo.declare("dijit.layout._StackButton",dijit.form.ToggleButton,{tabIndex:"-1",postCreate:function(evt){
dijit.setWaiRole((this.focusNode||this.domNode),"tab");
this.inherited(arguments);
},onClick:function(evt){
dijit.focus(this.focusNode);
},onClickCloseButton:function(evt){
evt.stopPropagation();
}});
}
if(!dojo._hasResource["dijit.layout.StackContainer"]){
dojo._hasResource["dijit.layout.StackContainer"]=true;
dojo.provide("dijit.layout.StackContainer");
dojo.declare("dijit.layout.StackContainer",dijit.layout._LayoutWidget,{doLayout:true,persist:false,baseClass:"dijitStackContainer",postCreate:function(){
this.inherited(arguments);
dojo.addClass(this.domNode,"dijitLayoutContainer");
dijit.setWaiRole(this.containerNode,"tabpanel");
this.connect(this.domNode,"onkeypress",this._onKeyPress);
},startup:function(){
if(this._started){
return;
}
var _874=this.getChildren();
dojo.forEach(_874,this._setupChild,this);
if(this.persist){
this.selectedChildWidget=dijit.byId(dojo.cookie(this.id+"_selectedChild"));
}else{
dojo.some(_874,function(_875){
if(_875.selected){
this.selectedChildWidget=_875;
}
return _875.selected;
},this);
}
var _876=this.selectedChildWidget;
if(!_876&&_874[0]){
_876=this.selectedChildWidget=_874[0];
_876.selected=true;
}
dojo.publish(this.id+"-startup",[{children:_874,selected:_876}]);
this.inherited(arguments);
},resize:function(){
var _877=this.selectedChildWidget;
if(_877&&!this._hasBeenShown){
this._hasBeenShown=true;
this._showChild(_877);
}
this.inherited(arguments);
},_setupChild:function(_878){
this.inherited(arguments);
dojo.removeClass(_878.domNode,"dijitVisible");
dojo.addClass(_878.domNode,"dijitHidden");
_878.domNode.title="";
},addChild:function(_879,_87a){
this.inherited(arguments);
if(this._started){
dojo.publish(this.id+"-addChild",[_879,_87a]);
this.layout();
if(!this.selectedChildWidget){
this.selectChild(_879);
}
}
},removeChild:function(page){
this.inherited(arguments);
if(this._started){
dojo.publish(this.id+"-removeChild",[page]);
}
if(this._beingDestroyed){
return;
}
if(this._started){
this.layout();
}
if(this.selectedChildWidget===page){
this.selectedChildWidget=undefined;
if(this._started){
var _87b=this.getChildren();
if(_87b.length){
this.selectChild(_87b[0]);
}
}
}
},selectChild:function(page){
page=dijit.byId(page);
if(this.selectedChildWidget!=page){
this._transition(page,this.selectedChildWidget);
this.selectedChildWidget=page;
dojo.publish(this.id+"-selectChild",[page]);
if(this.persist){
dojo.cookie(this.id+"_selectedChild",this.selectedChildWidget.id);
}
}
},_transition:function(_87c,_87d){
if(_87d){
this._hideChild(_87d);
}
this._showChild(_87c);
if(_87c.resize){
if(this.doLayout){
_87c.resize(this._containerContentBox||this._contentBox);
}else{
_87c.resize();
}
}
},_adjacent:function(_87e){
var _87f=this.getChildren();
var _880=dojo.indexOf(_87f,this.selectedChildWidget);
_880+=_87e?1:_87f.length-1;
return _87f[_880%_87f.length];
},forward:function(){
this.selectChild(this._adjacent(true));
},back:function(){
this.selectChild(this._adjacent(false));
},_onKeyPress:function(e){
dojo.publish(this.id+"-containerKeyPress",[{e:e,page:this}]);
},layout:function(){
if(this.doLayout&&this.selectedChildWidget&&this.selectedChildWidget.resize){
this.selectedChildWidget.resize(this._contentBox);
}
},_showChild:function(page){
var _881=this.getChildren();
page.isFirstChild=(page==_881[0]);
page.isLastChild=(page==_881[_881.length-1]);
page.selected=true;
dojo.removeClass(page.domNode,"dijitHidden");
dojo.addClass(page.domNode,"dijitVisible");
page._onShow();
},_hideChild:function(page){
page.selected=false;
dojo.removeClass(page.domNode,"dijitVisible");
dojo.addClass(page.domNode,"dijitHidden");
page.onHide();
},closeChild:function(page){
var _882=page.onClose(this,page);
if(_882){
this.removeChild(page);
page.destroyRecursive();
}
},destroyDescendants:function(_883){
dojo.forEach(this.getChildren(),function(_884){
this.removeChild(_884);
_884.destroyRecursive(_883);
},this);
}});
dojo.extend(dijit._Widget,{selected:false,closable:false,iconClass:"",showTitle:true,onClose:function(){
return true;
}});
}
if(!dojo._hasResource["dijit.layout.AccordionPane"]){
dojo._hasResource["dijit.layout.AccordionPane"]=true;
dojo.provide("dijit.layout.AccordionPane");
dojo.declare("dijit.layout.AccordionPane",dijit.layout.ContentPane,{constructor:function(){
dojo.deprecated("dijit.layout.AccordionPane deprecated, use ContentPane instead","","2.0");
},onSelected:function(){
}});
}
if(!dojo._hasResource["dijit.layout.AccordionContainer"]){
dojo._hasResource["dijit.layout.AccordionContainer"]=true;
dojo.provide("dijit.layout.AccordionContainer");
dojo.declare("dijit.layout.AccordionContainer",dijit.layout.StackContainer,{duration:dijit.defaultDuration,buttonWidget:"dijit.layout._AccordionButton",_verticalSpace:0,baseClass:"dijitAccordionContainer",postCreate:function(){
this.domNode.style.overflow="hidden";
this.inherited(arguments);
dijit.setWaiRole(this.domNode,"tablist");
},startup:function(){
if(this._started){
return;
}
this.inherited(arguments);
if(this.selectedChildWidget){
var _885=this.selectedChildWidget.containerNode.style;
_885.display="";
_885.overflow="auto";
this.selectedChildWidget._buttonWidget._setSelectedState(true);
}
},_getTargetHeight:function(node){
var cs=dojo.getComputedStyle(node);
return Math.max(this._verticalSpace-dojo._getPadBorderExtents(node,cs).h,0);
},layout:function(){
var _886=this.selectedChildWidget;
var _887=0;
dojo.forEach(this.getChildren(),function(_888){
_887+=_888._buttonWidget.getTitleHeight();
});
var _889=this._contentBox;
this._verticalSpace=_889.h-_887;
this._containerContentBox={h:this._verticalSpace,w:_889.w};
if(_886){
_886.resize(this._containerContentBox);
}
},_setupChild:function(_88a){
var cls=dojo.getObject(this.buttonWidget);
var _88b=(_88a._buttonWidget=new cls({contentWidget:_88a,label:_88a.title,title:_88a.tooltip,iconClass:_88a.iconClass,id:_88a.id+"_button",parent:this}));
_88a._accordionConnectHandle=this.connect(_88a,"attr",function(name,_88c){
if(arguments.length==2){
switch(name){
case "title":
case "iconClass":
_88b.attr(name,_88c);
}
}
});
dojo.place(_88a._buttonWidget.domNode,_88a.domNode,"before");
this.inherited(arguments);
},removeChild:function(_88d){
this.disconnect(_88d._accordionConnectHandle);
delete _88d._accordionConnectHandle;
_88d._buttonWidget.destroy();
delete _88d._buttonWidget;
this.inherited(arguments);
},getChildren:function(){
return dojo.filter(this.inherited(arguments),function(_88e){
return _88e.declaredClass!=this.buttonWidget;
},this);
},destroy:function(){
dojo.forEach(this.getChildren(),function(_88f){
_88f._buttonWidget.destroy();
});
this.inherited(arguments);
},_transition:function(_890,_891){
if(this._inTransition){
return;
}
this._inTransition=true;
var _892=[];
var _893=this._verticalSpace;
if(_890){
_890._buttonWidget.setSelected(true);
this._showChild(_890);
if(this.doLayout&&_890.resize){
_890.resize(this._containerContentBox);
}
var _894=_890.domNode;
dojo.addClass(_894,"dijitVisible");
dojo.removeClass(_894,"dijitHidden");
var _895=_894.style.overflow;
_894.style.overflow="hidden";
_892.push(dojo.animateProperty({node:_894,duration:this.duration,properties:{height:{start:1,end:this._getTargetHeight(_894)}},onEnd:dojo.hitch(this,function(){
_894.style.overflow=_895;
delete this._inTransition;
})}));
}
if(_891){
_891._buttonWidget.setSelected(false);
var _896=_891.domNode,_897=_896.style.overflow;
_896.style.overflow="hidden";
_892.push(dojo.animateProperty({node:_896,duration:this.duration,properties:{height:{start:this._getTargetHeight(_896),end:1}},onEnd:function(){
dojo.addClass(_896,"dijitHidden");
dojo.removeClass(_896,"dijitVisible");
_896.style.overflow=_897;
if(_891.onHide){
_891.onHide();
}
}}));
}
dojo.fx.combine(_892).play();
},_onKeyPress:function(e,_898){
if(this._inTransition||this.disabled||e.altKey||!(_898||e.ctrlKey)){
if(this._inTransition){
dojo.stopEvent(e);
}
return;
}
var k=dojo.keys,c=e.charOrCode;
if((_898&&(c==k.LEFT_ARROW||c==k.UP_ARROW))||(e.ctrlKey&&c==k.PAGE_UP)){
this._adjacent(false)._buttonWidget._onTitleClick();
dojo.stopEvent(e);
}else{
if((_898&&(c==k.RIGHT_ARROW||c==k.DOWN_ARROW))||(e.ctrlKey&&(c==k.PAGE_DOWN||c==k.TAB))){
this._adjacent(true)._buttonWidget._onTitleClick();
dojo.stopEvent(e);
}
}
}});
dojo.declare("dijit.layout._AccordionButton",[dijit._Widget,dijit._Templated],{templateString:dojo.cache("dijit.layout","templates/AccordionButton.html","<div dojoAttachPoint='titleNode,focusNode' dojoAttachEvent='ondijitclick:_onTitleClick,onkeypress:_onTitleKeyPress,onfocus:_handleFocus,onblur:_handleFocus,onmouseenter:_onTitleEnter,onmouseleave:_onTitleLeave'\n\t\tclass='dijitAccordionTitle' wairole=\"tab\" waiState=\"expanded-false\"\n\t\t><span class='dijitInline dijitAccordionArrow' waiRole=\"presentation\"></span\n\t\t><span class='arrowTextUp' waiRole=\"presentation\">+</span\n\t\t><span class='arrowTextDown' waiRole=\"presentation\">-</span\n\t\t><img src=\"${_blankGif}\" alt=\"\" dojoAttachPoint='iconNode' style=\"vertical-align: middle\" waiRole=\"presentation\"/>\n\t\t<span waiRole=\"presentation\" dojoAttachPoint='titleTextNode' class='dijitAccordionText'></span>\n</div>\n"),attributeMap:dojo.mixin(dojo.clone(dijit.layout.ContentPane.prototype.attributeMap),{label:{node:"titleTextNode",type:"innerHTML"},title:{node:"titleTextNode",type:"attribute",attribute:"title"},iconClass:{node:"iconNode",type:"class"}}),baseClass:"dijitAccordionTitle",getParent:function(){
return this.parent;
},postCreate:function(){
this.inherited(arguments);
dojo.setSelectable(this.domNode,false);
this.setSelected(this.selected);
var _899=dojo.attr(this.domNode,"id").replace(" ","_");
dojo.attr(this.titleTextNode,"id",_899+"_title");
dijit.setWaiState(this.focusNode,"labelledby",dojo.attr(this.titleTextNode,"id"));
},getTitleHeight:function(){
return dojo.marginBox(this.titleNode).h;
},_onTitleClick:function(){
var _89a=this.getParent();
if(!_89a._inTransition){
_89a.selectChild(this.contentWidget);
dijit.focus(this.focusNode);
}
},_onTitleEnter:function(){
dojo.addClass(this.focusNode,"dijitAccordionTitle-hover");
},_onTitleLeave:function(){
dojo.removeClass(this.focusNode,"dijitAccordionTitle-hover");
},_onTitleKeyPress:function(evt){
return this.getParent()._onKeyPress(evt,this.contentWidget);
},_setSelectedState:function(_89b){
this.selected=_89b;
dojo[(_89b?"addClass":"removeClass")](this.titleNode,"dijitAccordionTitle-selected");
dijit.setWaiState(this.focusNode,"expanded",_89b);
dijit.setWaiState(this.focusNode,"selected",_89b);
this.focusNode.setAttribute("tabIndex",_89b?"0":"-1");
},_handleFocus:function(e){
dojo.toggleClass(this.titleTextNode,"dijitAccordionFocused",e.type=="focus");
},setSelected:function(_89c){
this._setSelectedState(_89c);
if(_89c){
var cw=this.contentWidget;
if(cw.onSelected){
cw.onSelected();
}
}
}});
}
if(!dojo._hasResource["dijit.layout.BorderContainer"]){
dojo._hasResource["dijit.layout.BorderContainer"]=true;
dojo.provide("dijit.layout.BorderContainer");
dojo.declare("dijit.layout.BorderContainer",dijit.layout._LayoutWidget,{design:"headline",gutters:true,liveSplitters:true,persist:false,baseClass:"dijitBorderContainer",_splitterClass:"dijit.layout._Splitter",postMixInProperties:function(){
if(!this.gutters){
this.baseClass+="NoGutter";
}
this.inherited(arguments);
},postCreate:function(){
this.inherited(arguments);
this._splitters={};
this._splitterThickness={};
},startup:function(){
if(this._started){
return;
}
dojo.forEach(this.getChildren(),this._setupChild,this);
this.inherited(arguments);
},_setupChild:function(_89d){
var _89e=_89d.region;
if(_89e){
this.inherited(arguments);
dojo.addClass(_89d.domNode,this.baseClass+"Pane");
var ltr=this.isLeftToRight();
if(_89e=="leading"){
_89e=ltr?"left":"right";
}
if(_89e=="trailing"){
_89e=ltr?"right":"left";
}
this["_"+_89e]=_89d.domNode;
this["_"+_89e+"Widget"]=_89d;
if((_89d.splitter||this.gutters)&&!this._splitters[_89e]){
var _89f=dojo.getObject(_89d.splitter?this._splitterClass:"dijit.layout._Gutter");
var _8a0=new _89f({container:this,child:_89d,region:_89e,live:this.liveSplitters});
_8a0.isSplitter=true;
this._splitters[_89e]=_8a0.domNode;
dojo.place(this._splitters[_89e],_89d.domNode,"after");
_8a0.startup();
}
_89d.region=_89e;
}
},_computeSplitterThickness:function(_8a1){
this._splitterThickness[_8a1]=this._splitterThickness[_8a1]||dojo.marginBox(this._splitters[_8a1])[(/top|bottom/.test(_8a1)?"h":"w")];
},layout:function(){
for(var _8a2 in this._splitters){
this._computeSplitterThickness(_8a2);
}
this._layoutChildren();
},addChild:function(_8a3,_8a4){
this.inherited(arguments);
if(this._started){
this.layout();
}
},removeChild:function(_8a5){
var _8a6=_8a5.region;
var _8a7=this._splitters[_8a6];
if(_8a7){
dijit.byNode(_8a7).destroy();
delete this._splitters[_8a6];
delete this._splitterThickness[_8a6];
}
this.inherited(arguments);
delete this["_"+_8a6];
delete this["_"+_8a6+"Widget"];
if(this._started){
this._layoutChildren(_8a5.region);
}
dojo.removeClass(_8a5.domNode,this.baseClass+"Pane");
},getChildren:function(){
return dojo.filter(this.inherited(arguments),function(_8a8){
return !_8a8.isSplitter;
});
},getSplitter:function(_8a9){
var _8aa=this._splitters[_8a9];
return _8aa?dijit.byNode(_8aa):null;
},resize:function(_8ab,_8ac){
if(!this.cs||!this.pe){
var node=this.domNode;
this.cs=dojo.getComputedStyle(node);
this.pe=dojo._getPadExtents(node,this.cs);
this.pe.r=dojo._toPixelValue(node,this.cs.paddingRight);
this.pe.b=dojo._toPixelValue(node,this.cs.paddingBottom);
dojo.style(node,"padding","0px");
}
this.inherited(arguments);
},_layoutChildren:function(_8ad){
if(!this._borderBox||!this._borderBox.h){
return;
}
var _8ae=(this.design=="sidebar");
var _8af=0,_8b0=0,_8b1=0,_8b2=0;
var _8b3={},_8b4={},_8b5={},_8b6={},_8b7=(this._center&&this._center.style)||{};
var _8b8=/left|right/.test(_8ad);
var _8b9=!_8ad||(!_8b8&&!_8ae);
var _8ba=!_8ad||(_8b8&&_8ae);
if(this._top){
_8b3=_8ba&&this._top.style;
_8af=dojo.marginBox(this._top).h;
}
if(this._left){
_8b4=_8b9&&this._left.style;
_8b1=dojo.marginBox(this._left).w;
}
if(this._right){
_8b5=_8b9&&this._right.style;
_8b2=dojo.marginBox(this._right).w;
}
if(this._bottom){
_8b6=_8ba&&this._bottom.style;
_8b0=dojo.marginBox(this._bottom).h;
}
var _8bb=this._splitters;
var _8bc=_8bb.top,_8bd=_8bb.bottom,_8be=_8bb.left,_8bf=_8bb.right;
var _8c0=this._splitterThickness;
var _8c1=_8c0.top||0,_8c2=_8c0.left||0,_8c3=_8c0.right||0,_8c4=_8c0.bottom||0;
if(_8c2>50||_8c3>50){
setTimeout(dojo.hitch(this,function(){
this._splitterThickness={};
for(var _8c5 in this._splitters){
this._computeSplitterThickness(_8c5);
}
this._layoutChildren();
}),50);
return false;
}
var pe=this.pe;
var _8c6={left:(_8ae?_8b1+_8c2:0)+pe.l+"px",right:(_8ae?_8b2+_8c3:0)+pe.r+"px"};
if(_8bc){
dojo.mixin(_8bc.style,_8c6);
_8bc.style.top=_8af+pe.t+"px";
}
if(_8bd){
dojo.mixin(_8bd.style,_8c6);
_8bd.style.bottom=_8b0+pe.b+"px";
}
_8c6={top:(_8ae?0:_8af+_8c1)+pe.t+"px",bottom:(_8ae?0:_8b0+_8c4)+pe.b+"px"};
if(_8be){
dojo.mixin(_8be.style,_8c6);
_8be.style.left=_8b1+pe.l+"px";
}
if(_8bf){
dojo.mixin(_8bf.style,_8c6);
_8bf.style.right=_8b2+pe.r+"px";
}
dojo.mixin(_8b7,{top:pe.t+_8af+_8c1+"px",left:pe.l+_8b1+_8c2+"px",right:pe.r+_8b2+_8c3+"px",bottom:pe.b+_8b0+_8c4+"px"});
var _8c7={top:_8ae?pe.t+"px":_8b7.top,bottom:_8ae?pe.b+"px":_8b7.bottom};
dojo.mixin(_8b4,_8c7);
dojo.mixin(_8b5,_8c7);
_8b4.left=pe.l+"px";
_8b5.right=pe.r+"px";
_8b3.top=pe.t+"px";
_8b6.bottom=pe.b+"px";
if(_8ae){
_8b3.left=_8b6.left=_8b1+_8c2+pe.l+"px";
_8b3.right=_8b6.right=_8b2+_8c3+pe.r+"px";
}else{
_8b3.left=_8b6.left=pe.l+"px";
_8b3.right=_8b6.right=pe.r+"px";
}
var _8c8=this._borderBox.h-pe.t-pe.b,_8c9=_8c8-(_8af+_8c1+_8b0+_8c4),_8ca=_8ae?_8c8:_8c9;
var _8cb=this._borderBox.w-pe.l-pe.r,_8cc=_8cb-(_8b1+_8c2+_8b2+_8c3),_8cd=_8ae?_8cc:_8cb;
var dim={top:{w:_8cd,h:_8af},bottom:{w:_8cd,h:_8b0},left:{w:_8b1,h:_8ca},right:{w:_8b2,h:_8ca},center:{h:_8c9,w:_8cc}};
var _8ce=dojo.isIE<8||(dojo.isIE&&dojo.isQuirks)||dojo.some(this.getChildren(),function(_8cf){
return _8cf.domNode.tagName=="TEXTAREA"||_8cf.domNode.tagName=="INPUT";
});
if(_8ce){
var _8d0=function(_8d1,_8d2,_8d3){
if(_8d1){
(_8d1.resize?_8d1.resize(_8d2,_8d3):dojo.marginBox(_8d1.domNode,_8d2));
}
};
if(_8be){
_8be.style.height=_8ca;
}
if(_8bf){
_8bf.style.height=_8ca;
}
_8d0(this._leftWidget,{h:_8ca},dim.left);
_8d0(this._rightWidget,{h:_8ca},dim.right);
if(_8bc){
_8bc.style.width=_8cd;
}
if(_8bd){
_8bd.style.width=_8cd;
}
_8d0(this._topWidget,{w:_8cd},dim.top);
_8d0(this._bottomWidget,{w:_8cd},dim.bottom);
_8d0(this._centerWidget,dim.center);
}else{
var _8d4={};
if(_8ad){
_8d4[_8ad]=_8d4.center=true;
if(/top|bottom/.test(_8ad)&&this.design!="sidebar"){
_8d4.left=_8d4.right=true;
}else{
if(/left|right/.test(_8ad)&&this.design=="sidebar"){
_8d4.top=_8d4.bottom=true;
}
}
}
dojo.forEach(this.getChildren(),function(_8d5){
if(_8d5.resize&&(!_8ad||_8d5.region in _8d4)){
_8d5.resize(null,dim[_8d5.region]);
}
},this);
}
},destroy:function(){
for(var _8d6 in this._splitters){
var _8d7=this._splitters[_8d6];
dijit.byNode(_8d7).destroy();
dojo.destroy(_8d7);
}
delete this._splitters;
delete this._splitterThickness;
this.inherited(arguments);
}});
dojo.extend(dijit._Widget,{region:"",splitter:false,minSize:0,maxSize:Infinity});
dojo.declare("dijit.layout._Splitter",[dijit._Widget,dijit._Templated],{live:true,templateString:"<div class=\"dijitSplitter\" dojoAttachEvent=\"onkeypress:_onKeyPress,onmousedown:_startDrag,onmouseenter:_onMouse,onmouseleave:_onMouse\" tabIndex=\"0\" waiRole=\"separator\"><div class=\"dijitSplitterThumb\"></div></div>",postCreate:function(){
this.inherited(arguments);
this.horizontal=/top|bottom/.test(this.region);
dojo.addClass(this.domNode,"dijitSplitter"+(this.horizontal?"H":"V"));
this._factor=/top|left/.test(this.region)?1:-1;
this._cookieName=this.container.id+"_"+this.region;
if(this.container.persist){
var _8d8=dojo.cookie(this._cookieName);
if(_8d8){
this.child.domNode.style[this.horizontal?"height":"width"]=_8d8;
}
}
},_computeMaxSize:function(){
var dim=this.horizontal?"h":"w",_8d9=this.container._splitterThickness[this.region];
var flip={left:"right",right:"left",top:"bottom",bottom:"top",leading:"trailing",trailing:"leading"},_8da=this.container["_"+flip[this.region]];
var _8db=dojo.contentBox(this.container.domNode)[dim]-(_8da?dojo.marginBox(_8da)[dim]:0)-20-_8d9*2;
return Math.min(this.child.maxSize,_8db);
},_startDrag:function(e){
if(!this.cover){
this.cover=dojo.doc.createElement("div");
dojo.addClass(this.cover,"dijitSplitterCover");
dojo.place(this.cover,this.child.domNode,"after");
}
dojo.addClass(this.cover,"dijitSplitterCoverActive");
if(this.fake){
dojo.destroy(this.fake);
}
if(!(this._resize=this.live)){
(this.fake=this.domNode.cloneNode(true)).removeAttribute("id");
dojo.addClass(this.domNode,"dijitSplitterShadow");
dojo.place(this.fake,this.domNode,"after");
}
dojo.addClass(this.domNode,"dijitSplitterActive");
dojo.addClass(this.domNode,"dijitSplitter"+(this.horizontal?"H":"V")+"Active");
if(this.fake){
dojo.removeClass(this.fake,"dijitSplitterHover");
dojo.removeClass(this.fake,"dijitSplitter"+(this.horizontal?"H":"V")+"Hover");
}
var _8dc=this._factor,max=this._computeMaxSize(),min=this.child.minSize||20,_8dd=this.horizontal,axis=_8dd?"pageY":"pageX",_8de=e[axis],_8df=this.domNode.style,dim=_8dd?"h":"w",_8e0=dojo.marginBox(this.child.domNode)[dim],_8e1=this.region,_8e2=parseInt(this.domNode.style[_8e1],10),_8e3=this._resize,mb={},_8e4=this.child.domNode,_8e5=dojo.hitch(this.container,this.container._layoutChildren),de=dojo.doc.body;
this._handlers=(this._handlers||[]).concat([dojo.connect(de,"onmousemove",this._drag=function(e,_8e6){
var _8e7=e[axis]-_8de,_8e8=_8dc*_8e7+_8e0,_8e9=Math.max(Math.min(_8e8,max),min);
if(_8e3||_8e6){
mb[dim]=_8e9;
dojo.marginBox(_8e4,mb);
_8e5(_8e1);
}
_8df[_8e1]=_8dc*_8e7+_8e2+(_8e9-_8e8)+"px";
}),dojo.connect(dojo.doc,"ondragstart",dojo.stopEvent),dojo.connect(dojo.body(),"onselectstart",dojo.stopEvent),dojo.connect(de,"onmouseup",this,"_stopDrag")]);
dojo.stopEvent(e);
},_onMouse:function(e){
var o=(e.type=="mouseover"||e.type=="mouseenter");
dojo.toggleClass(this.domNode,"dijitSplitterHover",o);
dojo.toggleClass(this.domNode,"dijitSplitter"+(this.horizontal?"H":"V")+"Hover",o);
},_stopDrag:function(e){
try{
if(this.cover){
dojo.removeClass(this.cover,"dijitSplitterCoverActive");
}
if(this.fake){
dojo.destroy(this.fake);
}
dojo.removeClass(this.domNode,"dijitSplitterActive");
dojo.removeClass(this.domNode,"dijitSplitter"+(this.horizontal?"H":"V")+"Active");
dojo.removeClass(this.domNode,"dijitSplitterShadow");
this._drag(e);
this._drag(e,true);
}
finally{
this._cleanupHandlers();
delete this._drag;
}
if(this.container.persist){
dojo.cookie(this._cookieName,this.child.domNode.style[this.horizontal?"height":"width"],{expires:365});
}
},_cleanupHandlers:function(){
dojo.forEach(this._handlers,dojo.disconnect);
delete this._handlers;
},_onKeyPress:function(e){
this._resize=true;
var _8ea=this.horizontal;
var tick=1;
var dk=dojo.keys;
switch(e.charOrCode){
case _8ea?dk.UP_ARROW:dk.LEFT_ARROW:
tick*=-1;
case _8ea?dk.DOWN_ARROW:dk.RIGHT_ARROW:
break;
default:
return;
}
var _8eb=dojo.marginBox(this.child.domNode)[_8ea?"h":"w"]+this._factor*tick;
var mb={};
mb[this.horizontal?"h":"w"]=Math.max(Math.min(_8eb,this._computeMaxSize()),this.child.minSize);
dojo.marginBox(this.child.domNode,mb);
this.container._layoutChildren(this.region);
dojo.stopEvent(e);
},destroy:function(){
this._cleanupHandlers();
delete this.child;
delete this.container;
delete this.cover;
delete this.fake;
this.inherited(arguments);
}});
dojo.declare("dijit.layout._Gutter",[dijit._Widget,dijit._Templated],{templateString:"<div class=\"dijitGutter\" waiRole=\"presentation\"></div>",postCreate:function(){
this.horizontal=/top|bottom/.test(this.region);
dojo.addClass(this.domNode,"dijitGutter"+(this.horizontal?"H":"V"));
}});
}
if(!dojo._hasResource["dijit.layout.SplitContainer"]){
dojo._hasResource["dijit.layout.SplitContainer"]=true;
dojo.provide("dijit.layout.SplitContainer");
dojo.declare("dijit.layout.SplitContainer",dijit.layout._LayoutWidget,{constructor:function(){
dojo.deprecated("dijit.layout.SplitContainer is deprecated","use BorderContainer with splitter instead",2);
},activeSizing:false,sizerWidth:7,orientation:"horizontal",persist:true,baseClass:"dijitSplitContainer",postMixInProperties:function(){
this.inherited("postMixInProperties",arguments);
this.isHorizontal=(this.orientation=="horizontal");
},postCreate:function(){
this.inherited(arguments);
this.sizers=[];
if(dojo.isMozilla){
this.domNode.style.overflow="-moz-scrollbars-none";
}
if(typeof this.sizerWidth=="object"){
try{
this.sizerWidth=parseInt(this.sizerWidth.toString());
}
catch(e){
this.sizerWidth=7;
}
}
var _8ec=dojo.doc.createElement("div");
this.virtualSizer=_8ec;
_8ec.style.position="relative";
_8ec.style.zIndex=10;
_8ec.className=this.isHorizontal?"dijitSplitContainerVirtualSizerH":"dijitSplitContainerVirtualSizerV";
this.domNode.appendChild(_8ec);
dojo.setSelectable(_8ec,false);
},destroy:function(){
delete this.virtualSizer;
dojo.forEach(this._ownconnects,dojo.disconnect);
this.inherited(arguments);
},startup:function(){
if(this._started){
return;
}
dojo.forEach(this.getChildren(),function(_8ed,i,_8ee){
this._setupChild(_8ed);
if(i<_8ee.length-1){
this._addSizer();
}
},this);
if(this.persist){
this._restoreState();
}
this.inherited(arguments);
},_setupChild:function(_8ef){
this.inherited(arguments);
_8ef.domNode.style.position="absolute";
dojo.addClass(_8ef.domNode,"dijitSplitPane");
},_onSizerMouseDown:function(e){
if(e.target.id){
for(var i=0;i<this.sizers.length;i++){
if(this.sizers[i].id==e.target.id){
break;
}
}
if(i<this.sizers.length){
this.beginSizing(e,i);
}
}
},_addSizer:function(_8f0){
_8f0=_8f0===undefined?this.sizers.length:_8f0;
var _8f1=dojo.doc.createElement("div");
_8f1.id=dijit.getUniqueId("dijit_layout_SplitterContainer_Splitter");
this.sizers.splice(_8f0,0,_8f1);
this.domNode.appendChild(_8f1);
_8f1.className=this.isHorizontal?"dijitSplitContainerSizerH":"dijitSplitContainerSizerV";
var _8f2=dojo.doc.createElement("div");
_8f2.className="thumb";
_8f2.id=_8f1.id;
_8f1.appendChild(_8f2);
this.connect(_8f1,"onmousedown","_onSizerMouseDown");
dojo.setSelectable(_8f1,false);
},removeChild:function(_8f3){
if(this.sizers.length){
var i=dojo.indexOf(this.getChildren(),_8f3);
if(i!=-1){
if(i==this.sizers.length){
i--;
}
dojo.destroy(this.sizers[i]);
this.sizers.splice(i,1);
}
}
this.inherited(arguments);
if(this._started){
this.layout();
}
},addChild:function(_8f4,_8f5){
this.inherited(arguments);
if(this._started){
var _8f6=this.getChildren();
if(_8f6.length>1){
this._addSizer(_8f5);
}
this.layout();
}
},layout:function(){
this.paneWidth=this._contentBox.w;
this.paneHeight=this._contentBox.h;
var _8f7=this.getChildren();
if(!_8f7.length){
return;
}
var _8f8=this.isHorizontal?this.paneWidth:this.paneHeight;
if(_8f7.length>1){
_8f8-=this.sizerWidth*(_8f7.length-1);
}
var _8f9=0;
dojo.forEach(_8f7,function(_8fa){
_8f9+=_8fa.sizeShare;
});
var _8fb=_8f8/_8f9;
var _8fc=0;
dojo.forEach(_8f7.slice(0,_8f7.length-1),function(_8fd){
var size=Math.round(_8fb*_8fd.sizeShare);
_8fd.sizeActual=size;
_8fc+=size;
});
_8f7[_8f7.length-1].sizeActual=_8f8-_8fc;
this._checkSizes();
var pos=0;
var size=_8f7[0].sizeActual;
this._movePanel(_8f7[0],pos,size);
_8f7[0].position=pos;
pos+=size;
if(!this.sizers){
return;
}
dojo.some(_8f7.slice(1),function(_8fe,i){
if(!this.sizers[i]){
return true;
}
this._moveSlider(this.sizers[i],pos,this.sizerWidth);
this.sizers[i].position=pos;
pos+=this.sizerWidth;
size=_8fe.sizeActual;
this._movePanel(_8fe,pos,size);
_8fe.position=pos;
pos+=size;
},this);
},_movePanel:function(_8ff,pos,size){
if(this.isHorizontal){
_8ff.domNode.style.left=pos+"px";
_8ff.domNode.style.top=0;
var box={w:size,h:this.paneHeight};
if(_8ff.resize){
_8ff.resize(box);
}else{
dojo.marginBox(_8ff.domNode,box);
}
}else{
_8ff.domNode.style.left=0;
_8ff.domNode.style.top=pos+"px";
var box={w:this.paneWidth,h:size};
if(_8ff.resize){
_8ff.resize(box);
}else{
dojo.marginBox(_8ff.domNode,box);
}
}
},_moveSlider:function(_900,pos,size){
if(this.isHorizontal){
_900.style.left=pos+"px";
_900.style.top=0;
dojo.marginBox(_900,{w:size,h:this.paneHeight});
}else{
_900.style.left=0;
_900.style.top=pos+"px";
dojo.marginBox(_900,{w:this.paneWidth,h:size});
}
},_growPane:function(_901,pane){
if(_901>0){
if(pane.sizeActual>pane.sizeMin){
if((pane.sizeActual-pane.sizeMin)>_901){
pane.sizeActual=pane.sizeActual-_901;
_901=0;
}else{
_901-=pane.sizeActual-pane.sizeMin;
pane.sizeActual=pane.sizeMin;
}
}
}
return _901;
},_checkSizes:function(){
var _902=0;
var _903=0;
var _904=this.getChildren();
dojo.forEach(_904,function(_905){
_903+=_905.sizeActual;
_902+=_905.sizeMin;
});
if(_902<=_903){
var _906=0;
dojo.forEach(_904,function(_907){
if(_907.sizeActual<_907.sizeMin){
_906+=_907.sizeMin-_907.sizeActual;
_907.sizeActual=_907.sizeMin;
}
});
if(_906>0){
var list=this.isDraggingLeft?_904.reverse():_904;
dojo.forEach(list,function(_908){
_906=this._growPane(_906,_908);
},this);
}
}else{
dojo.forEach(_904,function(_909){
_909.sizeActual=Math.round(_903*(_909.sizeMin/_902));
});
}
},beginSizing:function(e,i){
var _90a=this.getChildren();
this.paneBefore=_90a[i];
this.paneAfter=_90a[i+1];
this.isSizing=true;
this.sizingSplitter=this.sizers[i];
if(!this.cover){
this.cover=dojo.create("div",{style:{position:"absolute",zIndex:5,top:0,left:0,width:"100%",height:"100%"}},this.domNode);
}else{
this.cover.style.zIndex=5;
}
this.sizingSplitter.style.zIndex=6;
this.originPos=dojo.position(_90a[0].domNode,true);
if(this.isHorizontal){
var _90b=e.layerX||e.offsetX||0;
var _90c=e.pageX;
this.originPos=this.originPos.x;
}else{
var _90b=e.layerY||e.offsetY||0;
var _90c=e.pageY;
this.originPos=this.originPos.y;
}
this.startPoint=this.lastPoint=_90c;
this.screenToClientOffset=_90c-_90b;
this.dragOffset=this.lastPoint-this.paneBefore.sizeActual-this.originPos-this.paneBefore.position;
if(!this.activeSizing){
this._showSizingLine();
}
this._ownconnects=[];
this._ownconnects.push(dojo.connect(dojo.doc.documentElement,"onmousemove",this,"changeSizing"));
this._ownconnects.push(dojo.connect(dojo.doc.documentElement,"onmouseup",this,"endSizing"));
dojo.stopEvent(e);
},changeSizing:function(e){
if(!this.isSizing){
return;
}
this.lastPoint=this.isHorizontal?e.pageX:e.pageY;
this.movePoint();
if(this.activeSizing){
this._updateSize();
}else{
this._moveSizingLine();
}
dojo.stopEvent(e);
},endSizing:function(e){
if(!this.isSizing){
return;
}
if(this.cover){
this.cover.style.zIndex=-1;
}
if(!this.activeSizing){
this._hideSizingLine();
}
this._updateSize();
this.isSizing=false;
if(this.persist){
this._saveState(this);
}
dojo.forEach(this._ownconnects,dojo.disconnect);
},movePoint:function(){
var p=this.lastPoint-this.screenToClientOffset;
var a=p-this.dragOffset;
a=this.legaliseSplitPoint(a);
p=a+this.dragOffset;
this.lastPoint=p+this.screenToClientOffset;
},legaliseSplitPoint:function(a){
a+=this.sizingSplitter.position;
this.isDraggingLeft=!!(a>0);
if(!this.activeSizing){
var min=this.paneBefore.position+this.paneBefore.sizeMin;
if(a<min){
a=min;
}
var max=this.paneAfter.position+(this.paneAfter.sizeActual-(this.sizerWidth+this.paneAfter.sizeMin));
if(a>max){
a=max;
}
}
a-=this.sizingSplitter.position;
this._checkSizes();
return a;
},_updateSize:function(){
var pos=this.lastPoint-this.dragOffset-this.originPos;
var _90d=this.paneBefore.position;
var _90e=this.paneAfter.position+this.paneAfter.sizeActual;
this.paneBefore.sizeActual=pos-_90d;
this.paneAfter.position=pos+this.sizerWidth;
this.paneAfter.sizeActual=_90e-this.paneAfter.position;
dojo.forEach(this.getChildren(),function(_90f){
_90f.sizeShare=_90f.sizeActual;
});
if(this._started){
this.layout();
}
},_showSizingLine:function(){
this._moveSizingLine();
dojo.marginBox(this.virtualSizer,this.isHorizontal?{w:this.sizerWidth,h:this.paneHeight}:{w:this.paneWidth,h:this.sizerWidth});
this.virtualSizer.style.display="block";
},_hideSizingLine:function(){
this.virtualSizer.style.display="none";
},_moveSizingLine:function(){
var pos=(this.lastPoint-this.startPoint)+this.sizingSplitter.position;
dojo.style(this.virtualSizer,(this.isHorizontal?"left":"top"),pos+"px");
},_getCookieName:function(i){
return this.id+"_"+i;
},_restoreState:function(){
dojo.forEach(this.getChildren(),function(_910,i){
var _911=this._getCookieName(i);
var _912=dojo.cookie(_911);
if(_912){
var pos=parseInt(_912);
if(typeof pos=="number"){
_910.sizeShare=pos;
}
}
},this);
},_saveState:function(){
if(!this.persist){
return;
}
dojo.forEach(this.getChildren(),function(_913,i){
dojo.cookie(this._getCookieName(i),_913.sizeShare,{expires:365});
},this);
}});
dojo.extend(dijit._Widget,{sizeMin:10,sizeShare:10});
}
if(!dojo._hasResource["dijit.layout._TabContainerBase"]){
dojo._hasResource["dijit.layout._TabContainerBase"]=true;
dojo.provide("dijit.layout._TabContainerBase");
dojo.declare("dijit.layout._TabContainerBase",[dijit.layout.StackContainer,dijit._Templated],{tabPosition:"top",baseClass:"dijitTabContainer",tabStrip:false,nested:false,templateString:dojo.cache("dijit.layout","templates/TabContainer.html","<div class=\"dijitTabContainer\">\n\t<div class=\"dijitTabListWrapper\" dojoAttachPoint=\"tablistNode\"></div>\n\t<div dojoAttachPoint=\"tablistSpacer\" class=\"dijitTabSpacer ${baseClass}-spacer\"></div>\n\t<div class=\"dijitTabPaneWrapper ${baseClass}-container\" dojoAttachPoint=\"containerNode\"></div>\n</div>\n"),postMixInProperties:function(){
this.baseClass+=this.tabPosition.charAt(0).toUpperCase()+this.tabPosition.substr(1).replace(/-.*/,"");
this.srcNodeRef&&dojo.style(this.srcNodeRef,"visibility","hidden");
this.inherited(arguments);
},postCreate:function(){
this.inherited(arguments);
this.tablist=this._makeController(this.tablistNode);
if(!this.doLayout){
dojo.addClass(this.domNode,"dijitTabContainerNoLayout");
}
if(this.nested){
dojo.addClass(this.domNode,"dijitTabContainerNested");
dojo.addClass(this.tablist.containerNode,"dijitTabContainerTabListNested");
dojo.addClass(this.tablistSpacer,"dijitTabContainerSpacerNested");
dojo.addClass(this.containerNode,"dijitTabPaneWrapperNested");
}else{
dojo.addClass(this.domNode,"tabStrip-"+(this.tabStrip?"enabled":"disabled"));
}
},_setupChild:function(tab){
dojo.addClass(tab.domNode,"dijitTabPane");
this.inherited(arguments);
},startup:function(){
if(this._started){
return;
}
this.tablist.startup();
this.inherited(arguments);
},layout:function(){
if(!this._contentBox||typeof (this._contentBox.l)=="undefined"){
return;
}
var sc=this.selectedChildWidget;
if(this.doLayout){
var _914=this.tabPosition.replace(/-h/,"");
this.tablist.layoutAlign=_914;
var _915=[this.tablist,{domNode:this.tablistSpacer,layoutAlign:_914},{domNode:this.containerNode,layoutAlign:"client"}];
dijit.layout.layoutChildren(this.domNode,this._contentBox,_915);
this._containerContentBox=dijit.layout.marginBox2contentBox(this.containerNode,_915[2]);
if(sc&&sc.resize){
sc.resize(this._containerContentBox);
}
}else{
if(this.tablist.resize){
this.tablist.resize({w:dojo.contentBox(this.domNode).w});
}
if(sc&&sc.resize){
sc.resize();
}
}
},destroy:function(){
if(this.tablist){
this.tablist.destroy();
}
this.inherited(arguments);
}});
}
if(!dojo._hasResource["dijit.layout.TabController"]){
dojo._hasResource["dijit.layout.TabController"]=true;
dojo.provide("dijit.layout.TabController");
dojo.declare("dijit.layout.TabController",dijit.layout.StackController,{templateString:"<div wairole='tablist' dojoAttachEvent='onkeypress:onkeypress'></div>",tabPosition:"top",buttonWidget:"dijit.layout._TabButton",_rectifyRtlTabList:function(){
if(0>=this.tabPosition.indexOf("-h")){
return;
}
if(!this.pane2button){
return;
}
var _916=0;
for(var pane in this.pane2button){
var ow=this.pane2button[pane].innerDiv.scrollWidth;
_916=Math.max(_916,ow);
}
for(pane in this.pane2button){
this.pane2button[pane].innerDiv.style.width=_916+"px";
}
}});
dojo.declare("dijit.layout._TabButton",dijit.layout._StackButton,{baseClass:"dijitTab",templateString:dojo.cache("dijit.layout","templates/_TabButton.html","<div waiRole=\"presentation\" dojoAttachPoint=\"titleNode\" dojoAttachEvent='onclick:onClick'>\n    <div waiRole=\"presentation\" class='dijitTabInnerDiv' dojoAttachPoint='innerDiv'>\n        <div waiRole=\"presentation\" class='dijitTabContent' dojoAttachPoint='tabContent,focusNode'>\n\t        <img src=\"${_blankGif}\" alt=\"\" dojoAttachPoint='iconNode' waiRole=\"presentation\"/>\n\t        <span dojoAttachPoint='containerNode' class='tabLabel'></span>\n\t        <span class=\"closeButton\" dojoAttachPoint='closeNode'\n\t        \t\tdojoAttachEvent='onclick: onClickCloseButton, onmouseenter: _onCloseButtonEnter, onmouseleave: _onCloseButtonLeave'>\n\t        \t<img src=\"${_blankGif}\" alt=\"\" dojoAttachPoint='closeIcon' class='closeImage' waiRole=\"presentation\"/>\n\t            <span dojoAttachPoint='closeText' class='closeText'>x</span>\n\t        </span>\n        </div>\n    </div>\n</div>\n"),scrollOnFocus:false,postMixInProperties:function(){
if(!this.iconClass){
this.iconClass="dijitTabButtonIcon";
}
},postCreate:function(){
this.inherited(arguments);
dojo.setSelectable(this.containerNode,false);
if(this.iconNode.className=="dijitTabButtonIcon"){
dojo.style(this.iconNode,"width","1px");
}
},startup:function(){
this.inherited(arguments);
var n=this.domNode;
setTimeout(function(){
n.className=n.className;
},1);
},_setCloseButtonAttr:function(disp){
this.closeButton=disp;
dojo.toggleClass(this.innerDiv,"dijitClosable",disp);
this.closeNode.style.display=disp?"":"none";
if(disp){
var _917=dojo.i18n.getLocalization("dijit","common");
if(this.closeNode){
dojo.attr(this.closeNode,"title",_917.itemClose);
if(dojo.isIE<8){
dojo.attr(this.closeIcon,"title",_917.itemClose);
}
}
var _917=dojo.i18n.getLocalization("dijit","common");
this._closeMenu=new dijit.Menu({id:this.id+"_Menu",targetNodeIds:[this.domNode]});
this._closeMenu.addChild(new dijit.MenuItem({label:_917.itemClose,onClick:dojo.hitch(this,"onClickCloseButton")}));
}else{
if(this._closeMenu){
this._closeMenu.destroyRecursive();
delete this._closeMenu;
}
}
},destroy:function(){
if(this._closeMenu){
this._closeMenu.destroyRecursive();
delete this._closeMenu;
}
this.inherited(arguments);
},_onCloseButtonEnter:function(){
dojo.addClass(this.closeNode,"closeButton-hover");
},_onCloseButtonLeave:function(){
dojo.removeClass(this.closeNode,"closeButton-hover");
}});
}
if(!dojo._hasResource["dijit.layout.ScrollingTabController"]){
dojo._hasResource["dijit.layout.ScrollingTabController"]=true;
dojo.provide("dijit.layout.ScrollingTabController");
dojo.declare("dijit.layout.ScrollingTabController",dijit.layout.TabController,{templateString:dojo.cache("dijit.layout","templates/ScrollingTabController.html","<div class=\"dijitTabListContainer-${tabPosition}\" style=\"visibility:hidden\">\n\t<div dojoType=\"dijit.layout._ScrollingTabControllerButton\" buttonType=\"menuBtn\" buttonClass=\"tabStripMenuButton\"\n\t\t\ttabPosition=\"${tabPosition}\" dojoAttachPoint=\"_menuBtn\" showLabel=false>&darr;</div>\n\t<div dojoType=\"dijit.layout._ScrollingTabControllerButton\" buttonType=\"leftBtn\" buttonClass=\"tabStripSlideButtonLeft\"\n\t\t\ttabPosition=\"${tabPosition}\" dojoAttachPoint=\"_leftBtn\" dojoAttachEvent=\"onClick: doSlideLeft\" showLabel=false>&larr;</div>\n\t<div dojoType=\"dijit.layout._ScrollingTabControllerButton\" buttonType=\"rightBtn\" buttonClass=\"tabStripSlideButtonRight\"\n\t\t\ttabPosition=\"${tabPosition}\" dojoAttachPoint=\"_rightBtn\" dojoAttachEvent=\"onClick: doSlideRight\" showLabel=false>&rarr;</div>\n\t<div class='dijitTabListWrapper' dojoAttachPoint='tablistWrapper'>\n\t\t<div wairole='tablist' dojoAttachEvent='onkeypress:onkeypress'\n\t\t\t\tdojoAttachPoint='containerNode' class='nowrapTabStrip'>\n\t\t</div>\n\t</div>\n</div>\n"),useMenu:true,useSlider:true,tabStripClass:"",widgetsInTemplate:true,_minScroll:5,attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{"class":"containerNode"}),postCreate:function(){
this.inherited(arguments);
var n=this.domNode;
this.scrollNode=this.tablistWrapper;
this._initButtons();
if(!this.tabStripClass){
this.tabStripClass="dijitTabContainer"+this.tabPosition.charAt(0).toUpperCase()+this.tabPosition.substr(1).replace(/-.*/,"")+"None";
dojo.addClass(n,"tabStrip-disabled");
}
dojo.addClass(this.tablistWrapper,this.tabStripClass);
},onStartup:function(){
this.inherited(arguments);
dojo.style(this.domNode,"visibility","visible");
this._postStartup=true;
},onAddChild:function(page,_918){
this.inherited(arguments);
var _919;
if(this.useMenu){
_919=new dijit.MenuItem({label:page.title,onClick:dojo.hitch(this,function(){
this.onSelectChild(page);
})});
this._menuChildren[page.id]=_919;
this._menu.addChild(_919,_918);
}
this.pane2handles[page.id].push(this.connect(this.pane2button[page.id],"attr",function(name,_91a){
if(this._postStartup){
if(arguments.length==2&&name=="label"){
if(_919){
_919.attr(name,_91a);
}
if(this._dim){
this.resize(this._dim);
}
}
}
}));
dojo.style(this.containerNode,"width",(dojo.style(this.containerNode,"width")+200)+"px");
},onRemoveChild:function(page,_91b){
var _91c=this.pane2button[page.id];
if(this._selectedTab===_91c.domNode){
this._selectedTab=null;
}
if(this.useMenu&&page&&page.id&&this._menuChildren[page.id]){
this._menu.removeChild(this._menuChildren[page.id]);
this._menuChildren[page.id].destroy();
delete this._menuChildren[page.id];
}
this.inherited(arguments);
},_initButtons:function(){
this._menuChildren={};
this._btnWidth=0;
this._buttons=dojo.query("> .tabStripButton",this.domNode).filter(function(btn){
if((this.useMenu&&btn==this._menuBtn.domNode)||(this.useSlider&&(btn==this._rightBtn.domNode||btn==this._leftBtn.domNode))){
this._btnWidth+=dojo.marginBox(btn).w;
return true;
}else{
dojo.style(btn,"display","none");
return false;
}
},this);
if(this.useMenu){
this._menu=new dijit.Menu({id:this.id+"_menu",targetNodeIds:[this._menuBtn.domNode],leftClickToOpen:true,refocus:false});
this._supportingWidgets.push(this._menu);
}
},_getTabsWidth:function(){
var _91d=this.getChildren();
if(_91d.length){
var _91e=_91d[this.isLeftToRight()?0:_91d.length-1].domNode,_91f=_91d[this.isLeftToRight()?_91d.length-1:0].domNode;
return _91f.offsetLeft+dojo.style(_91f,"width")-_91e.offsetLeft;
}else{
return 0;
}
},_enableBtn:function(_920){
var _921=this._getTabsWidth();
_920=_920||dojo.style(this.scrollNode,"width");
return _921>0&&_920<_921;
},resize:function(dim){
if(this.domNode.offsetWidth==0){
return;
}
this._dim=dim;
this.scrollNode.style.height="auto";
this._contentBox=dijit.layout.marginBox2contentBox(this.domNode,{h:0,w:dim.w});
this._contentBox.h=this.scrollNode.offsetHeight;
dojo.contentBox(this.domNode,this._contentBox);
var _922=this._enableBtn(this._contentBox.w);
this._buttons.style("display",_922?"":"none");
this._leftBtn.layoutAlign="left";
this._rightBtn.layoutAlign="right";
this._menuBtn.layoutAlign=this.isLeftToRight()?"right":"left";
dijit.layout.layoutChildren(this.domNode,this._contentBox,[this._menuBtn,this._leftBtn,this._rightBtn,{domNode:this.scrollNode,layoutAlign:"client"}]);
if(this._selectedTab){
var w=this.scrollNode,sl=this._convertToScrollLeft(this._getScrollForSelectedTab());
w.scrollLeft=sl;
}
this._setButtonClass(this._getScroll());
},_getScroll:function(){
var sl=(this.isLeftToRight()||dojo.isIE<8)?this.scrollNode.scrollLeft:dojo.style(this.containerNode,"width")-dojo.style(this.scrollNode,"width")+(dojo.isIE==8?-1:1)*this.scrollNode.scrollLeft;
return sl;
},_convertToScrollLeft:function(val){
if(this.isLeftToRight()||dojo.isIE<8){
return val;
}else{
var _923=dojo.style(this.containerNode,"width")-dojo.style(this.scrollNode,"width");
return (dojo.isIE==8?-1:1)*(val-_923);
}
},onSelectChild:function(page){
var tab=this.pane2button[page.id];
if(!tab||!page){
return;
}
var node=tab.domNode;
if(node!=this._selectedTab){
this._selectedTab=node;
var sl=this._getScroll();
if(sl>node.offsetLeft||sl+dojo.style(this.scrollNode,"width")<node.offsetLeft+dojo.style(node,"width")){
var anim=this.createSmoothScroll();
dojo.connect(anim,"onEnd",function(){
tab.onClick(null);
});
anim.play();
}else{
tab.onClick(null);
}
}
this.inherited(arguments);
},_getScrollBounds:function(){
var _924=this.getChildren(),_925=dojo.style(this.scrollNode,"width"),_926=dojo.style(this.containerNode,"width"),_927=_926-_925,_928=this._getTabsWidth();
if(_924.length&&_928>_925){
return {min:this.isLeftToRight()?0:_924[_924.length-1].domNode.offsetLeft,max:this.isLeftToRight()?(_924[_924.length-1].domNode.offsetLeft+dojo.style(_924[_924.length-1].domNode,"width"))-_925:_927};
}else{
var _929=this.isLeftToRight()?0:_927;
return {min:_929,max:_929};
}
},_getScrollForSelectedTab:function(){
var w=this.scrollNode,n=this._selectedTab,_92a=dojo.style(this.scrollNode,"width"),_92b=this._getScrollBounds();
var pos=(n.offsetLeft+dojo.style(n,"width")/2)-_92a/2;
pos=Math.min(Math.max(pos,_92b.min),_92b.max);
return pos;
},createSmoothScroll:function(x){
if(arguments.length>0){
var _92c=this._getScrollBounds();
x=Math.min(Math.max(x,_92c.min),_92c.max);
}else{
x=this._getScrollForSelectedTab();
}
if(this._anim&&this._anim.status()=="playing"){
this._anim.stop();
}
var self=this,w=this.scrollNode,anim=new dojo._Animation({beforeBegin:function(){
if(this.curve){
delete this.curve;
}
var oldS=w.scrollLeft,newS=self._convertToScrollLeft(x);
anim.curve=new dojo._Line(oldS,newS);
},onAnimate:function(val){
w.scrollLeft=val;
}});
this._anim=anim;
this._setButtonClass(x);
return anim;
},_getBtnNode:function(e){
var n=e.target;
while(n&&!dojo.hasClass(n,"tabStripButton")){
n=n.parentNode;
}
return n;
},doSlideRight:function(e){
this.doSlide(1,this._getBtnNode(e));
},doSlideLeft:function(e){
this.doSlide(-1,this._getBtnNode(e));
},doSlide:function(_92d,node){
if(node&&dojo.hasClass(node,"dijitTabBtnDisabled")){
return;
}
var _92e=dojo.style(this.scrollNode,"width");
var d=(_92e*0.75)*_92d;
var to=this._getScroll()+d;
this._setButtonClass(to);
this.createSmoothScroll(to).play();
},_setButtonClass:function(_92f){
var cls="dijitTabBtnDisabled",_930=this._getScrollBounds();
dojo.toggleClass(this._leftBtn.domNode,cls,_92f<=_930.min);
dojo.toggleClass(this._rightBtn.domNode,cls,_92f>=_930.max);
}});
dojo.declare("dijit.layout._ScrollingTabControllerButton",dijit.form.Button,{baseClass:"dijitTab",buttonType:"",buttonClass:"",tabPosition:"top",templateString:dojo.cache("dijit.layout","templates/_ScrollingTabControllerButton.html","<div id=\"${id}-${buttonType}\" class=\"tabStripButton dijitTab ${buttonClass} tabStripButton-${tabPosition}\"\n\t\tdojoAttachEvent=\"onclick:_onButtonClick\">\n\t<div role=\"presentation\" wairole=\"presentation\" class=\"dijitTabInnerDiv\" dojoattachpoint=\"innerDiv,focusNode\">\n\t\t<div role=\"presentation\" wairole=\"presentation\" class=\"dijitTabContent dijitButtonContents\" dojoattachpoint=\"tabContent\">\n\t\t\t<img src=\"${_blankGif}\"/>\n\t\t\t<span dojoAttachPoint=\"containerNode,titleNode\" class=\"dijitButtonText\"></span>\n\t\t</div>\n\t</div>\n</div>\n"),tabIndex:""});
}
if(!dojo._hasResource["dijit.layout.TabContainer"]){
dojo._hasResource["dijit.layout.TabContainer"]=true;
dojo.provide("dijit.layout.TabContainer");
dojo.declare("dijit.layout.TabContainer",dijit.layout._TabContainerBase,{useMenu:true,useSlider:true,controllerWidget:"",_makeController:function(_931){
var cls=this.baseClass+"-tabs"+(this.doLayout?"":" dijitTabNoLayout"),_932=dojo.getObject(this.controllerWidget);
return new _932({id:this.id+"_tablist",tabPosition:this.tabPosition,doLayout:this.doLayout,containerId:this.id,"class":cls,nested:this.nested,useMenu:this.useMenu,useSlider:this.useSlider,tabStripClass:this.tabStrip?this.baseClass+(this.tabStrip?"":"No")+"Strip":null},_931);
},postMixInProperties:function(){
this.inherited(arguments);
if(!this.controllerWidget){
this.controllerWidget=(this.tabPosition=="top"||this.tabPosition=="bottom")&&!this.nested?"dijit.layout.ScrollingTabController":"dijit.layout.TabController";
}
}});
}
if(!dojo._hasResource["dojox.xml.parser"]){
dojo._hasResource["dojox.xml.parser"]=true;
dojo.provide("dojox.xml.parser");
dojox.xml.parser.parse=function(str,_933){
var _934=dojo.doc;
var doc;
_933=_933||"text/xml";
if(str&&dojo.trim(str)&&"DOMParser" in dojo.global){
var _935=new DOMParser();
doc=_935.parseFromString(str,_933);
var de=doc.documentElement;
var _936="http://www.mozilla.org/newlayout/xml/parsererror.xml";
if(de.nodeName=="parsererror"&&de.namespaceURI==_936){
var _937=de.getElementsByTagNameNS(_936,"sourcetext")[0];
if(!_937){
_937=_937.firstChild.data;
}
throw new Error("Error parsing text "+nativeDoc.documentElement.firstChild.data+" \n"+_937);
}
return doc;
}else{
if("ActiveXObject" in dojo.global){
var ms=function(n){
return "MSXML"+n+".DOMDocument";
};
var dp=["Microsoft.XMLDOM",ms(6),ms(4),ms(3),ms(2)];
dojo.some(dp,function(p){
try{
doc=new ActiveXObject(p);
}
catch(e){
return false;
}
return true;
});
if(str&&doc){
doc.async=false;
doc.loadXML(str);
var pe=doc.parseError;
if(pe.errorCode!==0){
throw new Error("Line: "+pe.line+"\n"+"Col: "+pe.linepos+"\n"+"Reason: "+pe.reason+"\n"+"Error Code: "+pe.errorCode+"\n"+"Source: "+pe.srcText);
}
}
if(doc){
return doc;
}
}else{
if(_934.implementation&&_934.implementation.createDocument){
if(str&&dojo.trim(str)&&_934.createElement){
var tmp=_934.createElement("xml");
tmp.innerHTML=str;
var _938=_934.implementation.createDocument("foo","",null);
dojo.forEach(tmp.childNodes,function(_939){
_938.importNode(_939,true);
});
return _938;
}else{
return _934.implementation.createDocument("","",null);
}
}
}
}
return null;
};
dojox.xml.parser.textContent=function(node,text){
if(arguments.length>1){
var _93a=node.ownerDocument||dojo.doc;
dojox.xml.parser.replaceChildren(node,_93a.createTextNode(text));
return text;
}else{
if(node.textContent!==undefined){
return node.textContent;
}
var _93b="";
if(node){
dojo.forEach(node.childNodes,function(_93c){
switch(_93c.nodeType){
case 1:
case 5:
_93b+=dojox.xml.parser.textContent(_93c);
break;
case 3:
case 2:
case 4:
_93b+=_93c.nodeValue;
}
});
}
return _93b;
}
};
dojox.xml.parser.replaceChildren=function(node,_93d){
var _93e=[];
if(dojo.isIE){
dojo.forEach(node.childNodes,function(_93f){
_93e.push(_93f);
});
}
dojox.xml.parser.removeChildren(node);
dojo.forEach(_93e,dojo.destroy);
if(!dojo.isArray(_93d)){
node.appendChild(_93d);
}else{
dojo.forEach(_93d,function(_940){
node.appendChild(_940);
});
}
};
dojox.xml.parser.removeChildren=function(node){
var _941=node.childNodes.length;
while(node.hasChildNodes()){
node.removeChild(node.firstChild);
}
return _941;
};
dojox.xml.parser.innerXML=function(node){
if(node.innerXML){
return node.innerXML;
}else{
if(node.xml){
return node.xml;
}else{
if(typeof XMLSerializer!="undefined"){
return (new XMLSerializer()).serializeToString(node);
}
}
}
return null;
};
}
if(!dojo._hasResource["dojox.data.dom"]){
dojo._hasResource["dojox.data.dom"]=true;
dojo.provide("dojox.data.dom");
dojo.deprecated("dojox.data.dom","Use dojox.xml.parser instead.","2.0");
dojox.data.dom.createDocument=function(str,_942){
dojo.deprecated("dojox.data.dom.createDocument()","Use dojox.xml.parser.parse() instead.","2.0");
try{
return dojox.xml.parser.parse(str,_942);
}
catch(e){
return null;
}
};
dojox.data.dom.textContent=function(node,text){
dojo.deprecated("dojox.data.dom.textContent()","Use dojox.xml.parser.textContent() instead.","2.0");
if(arguments.length>1){
return dojox.xml.parser.textContent(node,text);
}else{
return dojox.xml.parser.textContent(node);
}
};
dojox.data.dom.replaceChildren=function(node,_943){
dojo.deprecated("dojox.data.dom.replaceChildren()","Use dojox.xml.parser.replaceChildren() instead.","2.0");
dojox.xml.parser.replaceChildren(node,_943);
};
dojox.data.dom.removeChildren=function(node){
dojo.deprecated("dojox.data.dom.removeChildren()","Use dojox.xml.parser.removeChildren() instead.","2.0");
return dojox.xml.parser.removeChildren(node);
};
dojox.data.dom.innerXML=function(node){
dojo.deprecated("dojox.data.dom.innerXML()","Use dojox.xml.parser.innerXML() instead.","2.0");
return dojox.xml.parser.innerXML(node);
};
}
if(!dojo._hasResource["dojox.widget.DynamicTooltip"]){
dojo._hasResource["dojox.widget.DynamicTooltip"]=true;
dojo.provide("dojox.widget.DynamicTooltip");
dojo.experimental("dojox.widget.DynamicTooltip");
dojo.declare("dojox.widget.DynamicTooltip",dijit.Tooltip,{hasLoaded:false,href:"",label:"",preventCache:false,postMixInProperties:function(){
this.inherited(arguments);
this._setLoadingLabel();
},_setLoadingLabel:function(){
if(this.href){
this.label=dojo.i18n.getLocalization("dijit","loading",this.lang).loadingState;
}
},_setHrefAttr:function(href){
this.href=href;
this.hasLoaded=false;
},loadContent:function(){
if(!this.hasLoaded&&this.href){
this._setLoadingLabel();
this.hasLoaded=true;
dojo.xhrGet({url:this.href,handleAs:"text",tooltipWidget:this,load:function(_944,_945){
this.tooltipWidget.label=_944;
this.tooltipWidget.close();
this.tooltipWidget.open();
},preventCache:this.preventCache});
}
},refresh:function(){
this.hasLoaded=false;
},open:function(_946){
_946=_946||this._connectNodes[0];
if(!_946){
return;
}
this.loadContent();
this.inherited(arguments);
}});
}
if(!dojo._hasResource["dojox.wire._base"]){
dojo._hasResource["dojox.wire._base"]=true;
dojo.provide("dojox.wire._base");
dojox.wire._defaultWireClass="dojox.wire.Wire";
dojox.wire._wireClasses={"attribute":"dojox.wire.DataWire","path":"dojox.wire.XmlWire","children":"dojox.wire.CompositeWire","columns":"dojox.wire.TableAdapter","nodes":"dojox.wire.TreeAdapter","segments":"dojox.wire.TextAdapter"};
dojox.wire.register=function(_947,key){
if(!_947||!key){
return;
}
if(dojox.wire._wireClasses[key]){
return;
}
dojox.wire._wireClasses[key]=_947;
};
dojox.wire._getClass=function(name){
dojo["require"](name);
return dojo.getObject(name);
};
dojox.wire.create=function(args){
if(!args){
args={};
}
var _948=args.wireClass;
if(_948){
if(dojo.isString(_948)){
_948=dojox.wire._getClass(_948);
}
}else{
for(var key in args){
if(!args[key]){
continue;
}
_948=dojox.wire._wireClasses[key];
if(_948){
if(dojo.isString(_948)){
_948=dojox.wire._getClass(_948);
dojox.wire._wireClasses[key]=_948;
}
break;
}
}
}
if(!_948){
if(dojo.isString(dojox.wire._defaultWireClass)){
dojox.wire._defaultWireClass=dojox.wire._getClass(dojox.wire._defaultWireClass);
}
_948=dojox.wire._defaultWireClass;
}
return new _948(args);
};
dojox.wire.isWire=function(wire){
return (wire&&wire._wireClass);
};
dojox.wire.transfer=function(_949,_94a,_94b,_94c){
if(!_949||!_94a){
return;
}
if(!dojox.wire.isWire(_949)){
_949=dojox.wire.create(_949);
}
if(!dojox.wire.isWire(_94a)){
_94a=dojox.wire.create(_94a);
}
var _94d=_949.getValue(_94b);
_94a.setValue(_94d,(_94c||_94b));
};
dojox.wire.connect=function(_94e,_94f,_950){
if(!_94e||!_94f||!_950){
return;
}
var _951={topic:_94e.topic};
if(_94e.topic){
_951.handle=dojo.subscribe(_94e.topic,function(){
dojox.wire.transfer(_94f,_950,arguments);
});
}else{
if(_94e.event){
_951.handle=dojo.connect(_94e.scope,_94e.event,function(){
dojox.wire.transfer(_94f,_950,arguments);
});
}
}
return _951;
};
dojox.wire.disconnect=function(_952){
if(!_952||!_952.handle){
return;
}
if(_952.topic){
dojo.unsubscribe(_952.handle);
}else{
dojo.disconnect(_952.handle);
}
};
}
if(!dojo._hasResource["dojox.wire.Wire"]){
dojo._hasResource["dojox.wire.Wire"]=true;
dojo.provide("dojox.wire.Wire");
dojo.declare("dojox.wire.Wire",null,{_wireClass:"dojox.wire.Wire",constructor:function(args){
dojo.mixin(this,args);
if(this.converter){
if(dojo.isString(this.converter)){
var _953=dojo.getObject(this.converter);
if(dojo.isFunction(_953)){
try{
var _954=new _953();
if(_954&&!dojo.isFunction(_954["convert"])){
this.converter={convert:_953};
}else{
this.converter=_954;
}
}
catch(e){
}
}else{
if(dojo.isObject(_953)){
if(dojo.isFunction(_953["convert"])){
this.converter=_953;
}
}
}
if(dojo.isString(this.converter)){
var _955=dojox.wire._getClass(this.converter);
if(_955){
this.converter=new _955();
}else{
this.converter=undefined;
}
}
}else{
if(dojo.isFunction(this.converter)){
this.converter={convert:this.converter};
}
}
}
},getValue:function(_956){
var _957=undefined;
if(dojox.wire.isWire(this.object)){
_957=this.object.getValue(_956);
}else{
_957=(this.object||_956);
}
if(this.property){
var list=this.property.split(".");
for(var i in list){
if(!_957){
return _957;
}
_957=this._getPropertyValue(_957,list[i]);
}
}
var _958=undefined;
if(this._getValue){
_958=this._getValue(_957);
}else{
_958=_957;
}
if(_958){
if(this.type){
if(this.type=="string"){
_958=_958.toString();
}else{
if(this.type=="number"){
_958=parseInt(_958,10);
}else{
if(this.type=="boolean"){
_958=(_958!="false");
}else{
if(this.type=="array"){
if(!dojo.isArray(_958)){
_958=[_958];
}
}
}
}
}
}
if(this.converter&&this.converter.convert){
_958=this.converter.convert(_958,this);
}
}
return _958;
},setValue:function(_959,_95a){
var _95b=undefined;
if(dojox.wire.isWire(this.object)){
_95b=this.object.getValue(_95a);
}else{
_95b=(this.object||_95a);
}
var _95c=undefined;
var o;
if(this.property){
if(!_95b){
if(dojox.wire.isWire(this.object)){
_95b={};
this.object.setValue(_95b,_95a);
}else{
throw new Error(this._wireClass+".setValue(): invalid object");
}
}
var list=this.property.split(".");
var last=list.length-1;
for(var i=0;i<last;i++){
var p=list[i];
o=this._getPropertyValue(_95b,p);
if(!o){
o={};
this._setPropertyValue(_95b,p,o);
}
_95b=o;
}
_95c=list[last];
}
if(this._setValue){
if(_95c){
o=this._getPropertyValue(_95b,_95c);
if(!o){
o={};
this._setPropertyValue(_95b,_95c,o);
}
_95b=o;
}
var _95d=this._setValue(_95b,_959);
if(!_95b&&_95d){
if(dojox.wire.isWire(this.object)){
this.object.setValue(_95d,_95a);
}else{
throw new Error(this._wireClass+".setValue(): invalid object");
}
}
}else{
if(_95c){
this._setPropertyValue(_95b,_95c,_959);
}else{
if(dojox.wire.isWire(this.object)){
this.object.setValue(_959,_95a);
}else{
throw new Error(this._wireClass+".setValue(): invalid property");
}
}
}
},_getPropertyValue:function(_95e,_95f){
var _960=undefined;
var i1=_95f.indexOf("[");
if(i1>=0){
var i2=_95f.indexOf("]");
var _961=_95f.substring(i1+1,i2);
var _962=null;
if(i1===0){
_962=_95e;
}else{
_95f=_95f.substring(0,i1);
_962=this._getPropertyValue(_95e,_95f);
if(_962&&!dojo.isArray(_962)){
_962=[_962];
}
}
if(_962){
_960=_962[_961];
}
}else{
if(_95e.getPropertyValue){
_960=_95e.getPropertyValue(_95f);
}else{
var _963="get"+_95f.charAt(0).toUpperCase()+_95f.substring(1);
if(this._useAttr(_95e)){
_960=_95e.attr(_95f);
}else{
if(_95e[_963]){
_960=_95e[_963]();
}else{
_960=_95e[_95f];
}
}
}
}
return _960;
},_setPropertyValue:function(_964,_965,_966){
var i1=_965.indexOf("[");
if(i1>=0){
var i2=_965.indexOf("]");
var _967=_965.substring(i1+1,i2);
var _968=null;
if(i1===0){
_968=_964;
}else{
_965=_965.substring(0,i1);
_968=this._getPropertyValue(_964,_965);
if(!_968){
_968=[];
this._setPropertyValue(_964,_965,_968);
}
}
_968[_967]=_966;
}else{
if(_964.setPropertyValue){
_964.setPropertyValue(_965,_966);
}else{
var _969="set"+_965.charAt(0).toUpperCase()+_965.substring(1);
if(this._useAttr(_964)){
_964.attr(_965,_966);
}else{
if(_964[_969]){
_964[_969](_966);
}else{
_964[_965]=_966;
}
}
}
}
},_useAttr:function(_96a){
var _96b=false;
if(dojo.isFunction(_96a.attr)){
_96b=true;
}
return _96b;
}});
}
if(!dojo._hasResource["dojox.wire.XmlWire"]){
dojo._hasResource["dojox.wire.XmlWire"]=true;
dojo.provide("dojox.wire.XmlWire");
dojo.declare("dojox.wire.XmlWire",dojox.wire.Wire,{_wireClass:"dojox.wire.XmlWire",constructor:function(args){
},_getValue:function(_96c){
if(!_96c||!this.path){
return _96c;
}
var node=_96c;
var path=this.path;
var i;
if(path.charAt(0)=="/"){
i=path.indexOf("/",1);
path=path.substring(i+1);
}
var list=path.split("/");
var last=list.length-1;
for(i=0;i<last;i++){
node=this._getChildNode(node,list[i]);
if(!node){
return undefined;
}
}
var _96d=this._getNodeValue(node,list[last]);
return _96d;
},_setValue:function(_96e,_96f){
if(!this.path){
return _96e;
}
var node=_96e;
var doc=this._getDocument(node);
var path=this.path;
var i;
if(path.charAt(0)=="/"){
i=path.indexOf("/",1);
if(!node){
var name=path.substring(1,i);
node=doc.createElement(name);
_96e=node;
}
path=path.substring(i+1);
}else{
if(!node){
return undefined;
}
}
var list=path.split("/");
var last=list.length-1;
for(i=0;i<last;i++){
var _970=this._getChildNode(node,list[i]);
if(!_970){
_970=doc.createElement(list[i]);
node.appendChild(_970);
}
node=_970;
}
this._setNodeValue(node,list[last],_96f);
return _96e;
},_getNodeValue:function(node,exp){
var _971=undefined;
if(exp.charAt(0)=="@"){
var _972=exp.substring(1);
_971=node.getAttribute(_972);
}else{
if(exp=="text()"){
var text=node.firstChild;
if(text){
_971=text.nodeValue;
}
}else{
_971=[];
for(var i=0;i<node.childNodes.length;i++){
var _973=node.childNodes[i];
if(_973.nodeType===1&&_973.nodeName==exp){
_971.push(_973);
}
}
}
}
return _971;
},_setNodeValue:function(node,exp,_974){
if(exp.charAt(0)=="@"){
var _975=exp.substring(1);
if(_974){
node.setAttribute(_975,_974);
}else{
node.removeAttribute(_975);
}
}else{
if(exp=="text()"){
while(node.firstChild){
node.removeChild(node.firstChild);
}
if(_974){
var text=this._getDocument(node).createTextNode(_974);
node.appendChild(text);
}
}
}
},_getChildNode:function(node,name){
var _976=1;
var i1=name.indexOf("[");
if(i1>=0){
var i2=name.indexOf("]");
_976=name.substring(i1+1,i2);
name=name.substring(0,i1);
}
var _977=1;
for(var i=0;i<node.childNodes.length;i++){
var _978=node.childNodes[i];
if(_978.nodeType===1&&_978.nodeName==name){
if(_977==_976){
return _978;
}
_977++;
}
}
return null;
},_getDocument:function(node){
if(node){
return (node.nodeType==9?node:node.ownerDocument);
}else{
return dojox.xml.parser.parse();
}
}});
}
dojo.i18n._preloadLocalizations("dojo.nls.dojo",["ROOT","en","en-us","hu","xx"]);
if(dojo.config.afterOnLoad&&dojo.isBrowser){
window.setTimeout(dojo._loadInit,1000);
}
})();
