/*
        Copyright (c) 2004-2008, The Dojo Foundation
        All Rights Reserved.

        Licensed under the Academic Free License version 2.1 or above OR the
        modified BSD license. For more information on Dojo licensing, see:

                http://dojotoolkit.org/book/dojo-book-0-9/introduction/licensing
*/


/* JavaScript in the lconn packages are (C) Copyright IBM Corp.  2008  All Rights Reserved. */
(function(){
var _1=null;
if((_1||(typeof djConfig!="undefined"&&djConfig.scopeMap))&&(typeof window!="undefined")){
var _2="",_3="",_4="",_5={},_6={};
_1=_1||djConfig.scopeMap;
for(var i=0;i<_1.length;i++){
var _8=_1[i];
_2+="var "+_8[0]+" = {}; "+_8[1]+" = "+_8[0]+";"+_8[1]+"._scopeName = '"+_8[1]+"';";
_3+=(i==0?"":",")+_8[0];
_4+=(i==0?"":",")+_8[1];
_5[_8[0]]=_8[1];
_6[_8[1]]=_8[0];
}
eval(_2+"dojo._scopeArgs = ["+_4+"];");
dojo._scopePrefixArgs=_3;
dojo._scopePrefix="(function("+_3+"){";
dojo._scopeSuffix="})("+_4+")";
dojo._scopeMap=_5;
dojo._scopeMapRev=_6;
}
(function(){
if(this["navigator"]){
if(/3[\.0-9]+.*Safari/i.test(navigator.appVersion)&&this["console"]){
this.console={_c:this.console,log:function(s){
this._c.log(s);
},info:function(s){
this._c.info(s);
},error:function(s){
this._c.error(s);
},warn:function(s){
this._c.warn(s);
}};
}
}
if(!this["console"]){
this.console={};
}
var cn=["assert","count","debug","dir","dirxml","error","group","groupEnd","info","profile","profileEnd","time","timeEnd","trace","warn","log"];
var i=0,tn;
while((tn=cn[i++])){
if(!console[tn]){
(function(){
var tcn=tn+"";
console[tcn]=("log" in console)?function(){
var a=Array.apply({},arguments);
a.unshift(tcn+":");
console["log"](a.join(" "));
}:function(){
};
})();
}
}
if(typeof dojo=="undefined"){
this.dojo={_scopeName:"dojo",_scopePrefix:"",_scopePrefixArgs:"",_scopeSuffix:"",_scopeMap:{},_scopeMapRev:{}};
}
var d=dojo;
if(typeof dijit=="undefined"){
this.dijit={_scopeName:"dijit"};
}
if(typeof dojox=="undefined"){
this.dojox={_scopeName:"dojox"};
}
if(!d._scopeArgs){
d._scopeArgs=[dojo,dijit,dojox];
}
d.global=this;
d.config={isDebug:false,debugAtAllCosts:false};
if(typeof djConfig!="undefined"){
for(var opt in djConfig){
d.config[opt]=djConfig[opt];
}
}
var _14=["Browser","Rhino","Spidermonkey","Mobile"];
var t;
while((t=_14.shift())){
d["is"+t]=false;
}
dojo.locale=d.config.locale;
var rev="$Rev: 15997 $".match(/\d+/);
dojo.version={major:1,minor:2,patch:0,flag:"connections",revision:rev?+rev[0]:999999,toString:function(){
with(d.version){
return major+"."+minor+"."+patch+flag+" ("+revision+")";
}
}};
if(typeof OpenAjax!="undefined"){
OpenAjax.hub.registerLibrary(dojo._scopeName,"http://dojotoolkit.org",d.version.toString());
}
dojo._mixin=function(obj,_18){
var _19={};
for(var x in _18){
if(_19[x]===undefined||_19[x]!=_18[x]){
obj[x]=_18[x];
}
}
if(d["isIE"]&&_18){
var p=_18.toString;
if(typeof p=="function"&&p!=obj.toString&&p!=_19.toString&&p!="\nfunction toString() {\n    [native code]\n}\n"){
obj.toString=_18.toString;
}
}
return obj;
};
dojo.mixin=function(obj,_1d){
for(var i=1,l=arguments.length;i<l;i++){
d._mixin(obj,arguments[i]);
}
return obj;
};
dojo._getProp=function(_20,_21,_22){
var obj=_22||d.global;
for(var i=0,p;obj&&(p=_20[i]);i++){
if(i==0&&this._scopeMap[p]){
p=this._scopeMap[p];
}
obj=(p in obj?obj[p]:(_21?obj[p]={}:undefined));
}
return obj;
};
dojo.setObject=function(_26,_27,_28){
var _29=_26.split("."),p=_29.pop(),obj=d._getProp(_29,true,_28);
return obj&&p?(obj[p]=_27):undefined;
};
dojo.getObject=function(_2c,_2d,_2e){
return d._getProp(_2c.split("."),_2d,_2e);
};
dojo.exists=function(_2f,obj){
return !!d.getObject(_2f,false,obj);
};
dojo["eval"]=function(_31){
return d.global.eval?d.global.eval(_31):eval(_31);
};
d.deprecated=d.experimental=function(){
};
})();
(function(){
var d=dojo;
d.mixin(d,{_loadedModules:{},_inFlightCount:0,_hasResource:{},_modulePrefixes:{dojo:{name:"dojo",value:"."},doh:{name:"doh",value:"../util/doh"},tests:{name:"tests",value:"tests"}},_moduleHasPrefix:function(_33){
var mp=this._modulePrefixes;
return !!(mp[_33]&&mp[_33].value);
},_getModulePrefix:function(_35){
var mp=this._modulePrefixes;
if(this._moduleHasPrefix(_35)){
return mp[_35].value;
}
return _35;
},_loadedUrls:[],_postLoad:false,_loaders:[],_unloaders:[],_loadNotifying:false});
dojo._loadPath=function(_37,_38,cb){
var uri=((_37.charAt(0)=="/"||_37.match(/^\w+:/))?"":this.baseUrl)+_37;
try{
return !_38?this._loadUri(uri,cb):this._loadUriAndCheck(uri,_38,cb);
}
catch(e){
console.error(e);
return false;
}
};
dojo._loadUri=function(uri,cb){
if(this._loadedUrls[uri]){
return true;
}
var _3d=this._getText(uri,true);
if(!_3d){
return false;
}
this._loadedUrls[uri]=true;
this._loadedUrls.push(uri);
if(cb){
_3d="("+_3d+")";
}else{
_3d=this._scopePrefix+_3d+this._scopeSuffix;
}
if(d.isMoz){
_3d+="\r\n//@ sourceURL="+uri;
}
var _3e=d["eval"](_3d);
if(cb){
cb(_3e);
}
return true;
};
dojo._loadUriAndCheck=function(uri,_40,cb){
var ok=false;
try{
ok=this._loadUri(uri,cb);
}
catch(e){
console.error("failed loading "+uri+" with error: "+e);
}
return !!(ok&&this._loadedModules[_40]);
};
dojo.loaded=function(){
this._loadNotifying=true;
this._postLoad=true;
var mll=d._loaders;
this._loaders=[];
for(var x=0;x<mll.length;x++){
mll[x]();
}
this._loadNotifying=false;
if(d._postLoad&&d._inFlightCount==0&&mll.length){
d._callLoaded();
}
};
dojo.unloaded=function(){
var mll=this._unloaders;
while(mll.length){
(mll.pop())();
}
};
d._onto=function(arr,obj,fn){
if(!fn){
arr.push(obj);
}else{
if(fn){
var _49=(typeof fn=="string")?obj[fn]:fn;
arr.push(function(){
_49.call(obj);
});
}
}
};
dojo.addOnLoad=function(obj,_4b){
d._onto(d._loaders,obj,_4b);
if(d._postLoad&&d._inFlightCount==0&&!d._loadNotifying){
d._callLoaded();
}
};
var dca=d.config.addOnLoad;
if(dca){
d.addOnLoad[(dca instanceof Array?"apply":"call")](d,dca);
}
dojo.addOnUnload=function(obj,_4e){
d._onto(d._unloaders,obj,_4e);
};
dojo._modulesLoaded=function(){
if(d._postLoad){
return;
}
if(d._inFlightCount>0){
console.warn("files still in flight!");
return;
}
d._callLoaded();
};
dojo._callLoaded=function(){
if(typeof setTimeout=="object"||(dojo.config.useXDomain&&d.isOpera)){
if(dojo.isAIR){
setTimeout(function(){
dojo.loaded();
},0);
}else{
setTimeout(dojo._scopeName+".loaded();",0);
}
}else{
d.loaded();
}
};
dojo._getModuleSymbols=function(_4f){
var _50=_4f.split(".");
for(var i=_50.length;i>0;i--){
var _52=_50.slice(0,i).join(".");
if((i==1)&&!this._moduleHasPrefix(_52)){
_50[0]="../"+_50[0];
}else{
var _53=this._getModulePrefix(_52);
if(_53!=_52){
_50.splice(0,i,_53);
break;
}
}
}
return _50;
};
dojo._global_omit_module_check=false;
dojo.loadInit=function(_54){
_54();
};
dojo._loadModule=dojo.require=function(_55,_56){
_56=this._global_omit_module_check||_56;
var _57=this._loadedModules[_55];
if(_57){
return _57;
}
var _58=this._getModuleSymbols(_55).join("/")+".js";
var _59=(!_56)?_55:null;
var ok=this._loadPath(_58,_59);
if(!ok&&!_56){
throw new Error("Could not load '"+_55+"'; last tried '"+_58+"'");
}
if(!_56&&!this._isXDomain){
_57=this._loadedModules[_55];
if(!_57){
throw new Error("symbol '"+_55+"' is not defined after loading '"+_58+"'");
}
}
return _57;
};
dojo.provide=function(_5b){
_5b=_5b+"";
return (d._loadedModules[_5b]=d.getObject(_5b,true));
};
dojo.platformRequire=function(_5c){
var _5d=_5c.common||[];
var _5e=_5d.concat(_5c[d._name]||_5c["default"]||[]);
for(var x=0;x<_5e.length;x++){
var _60=_5e[x];
if(_60.constructor==Array){
d._loadModule.apply(d,_60);
}else{
d._loadModule(_60);
}
}
};
dojo.requireIf=function(_61,_62){
if(_61===true){
var _63=[];
for(var i=1;i<arguments.length;i++){
_63.push(arguments[i]);
}
d.require.apply(d,_63);
}
};
dojo.requireAfterIf=d.requireIf;
dojo.registerModulePath=function(_65,_66){
d._modulePrefixes[_65]={name:_65,value:_66};
};
dojo.requireLocalization=function(_67,_68,_69,_6a){
d.require("dojo.i18n");
d.i18n._requireLocalization.apply(d.hostenv,arguments);
};
var ore=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$");
var ire=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");
dojo._Url=function(){
var n=null;
var _a=arguments;
var uri=[_a[0]];
for(var i=1;i<_a.length;i++){
if(!_a[i]){
continue;
}
var _71=new d._Url(_a[i]+"");
var _72=new d._Url(uri[0]+"");
if(_71.path==""&&!_71.scheme&&!_71.authority&&!_71.query){
if(_71.fragment!=n){
_72.fragment=_71.fragment;
}
_71=_72;
}else{
if(!_71.scheme){
_71.scheme=_72.scheme;
if(!_71.authority){
_71.authority=_72.authority;
if(_71.path.charAt(0)!="/"){
var _73=_72.path.substring(0,_72.path.lastIndexOf("/")+1)+_71.path;
var _74=_73.split("/");
for(var j=0;j<_74.length;j++){
if(_74[j]=="."){
if(j==_74.length-1){
_74[j]="";
}else{
_74.splice(j,1);
j--;
}
}else{
if(j>0&&!(j==1&&_74[0]=="")&&_74[j]==".."&&_74[j-1]!=".."){
if(j==(_74.length-1)){
_74.splice(j,1);
_74[j-1]="";
}else{
_74.splice(j-1,2);
j-=2;
}
}
}
}
_71.path=_74.join("/");
}
}
}
}
uri=[];
if(_71.scheme){
uri.push(_71.scheme,":");
}
if(_71.authority){
uri.push("//",_71.authority);
}
uri.push(_71.path);
if(_71.query){
uri.push("?",_71.query);
}
if(_71.fragment){
uri.push("#",_71.fragment);
}
}
this.uri=uri.join("");
var r=this.uri.match(ore);
this.scheme=r[2]||(r[1]?"":n);
this.authority=r[4]||(r[3]?"":n);
this.path=r[5];
this.query=r[7]||(r[6]?"":n);
this.fragment=r[9]||(r[8]?"":n);
if(this.authority!=n){
r=this.authority.match(ire);
this.user=r[3]||n;
this.password=r[4]||n;
this.host=r[6]||r[7];
this.port=r[9]||n;
}
};
dojo._Url.prototype.toString=function(){
return this.uri;
};
dojo.moduleUrl=function(_77,url){
var loc=d._getModuleSymbols(_77).join("/");
if(!loc){
return null;
}
if(loc.lastIndexOf("/")!=loc.length-1){
loc+="/";
}
var _7a=loc.indexOf(":");
if(loc.charAt(0)!="/"&&(_7a==-1||_7a>loc.indexOf("/"))){
loc=d.baseUrl+loc;
}
return new d._Url(loc,url);
};
})();
if(typeof window!="undefined"){
dojo.isBrowser=true;
dojo._name="browser";
(function(){
var d=dojo;
if(document&&document.getElementsByTagName){
var _7c=document.getElementsByTagName("script");
var _7d=/dojo(\.xd)?\.js(\W|$)/i;
for(var i=0;i<_7c.length;i++){
var src=_7c[i].getAttribute("src");
if(!src){
continue;
}
var m=src.match(_7d);
if(m){
if(!d.config.baseUrl){
d.config.baseUrl=src.substring(0,m.index);
}
var cfg=_7c[i].getAttribute("djConfig");
if(cfg){
var _82=eval("({ "+cfg+" })");
for(var x in _82){
dojo.config[x]=_82[x];
}
}
break;
}
}
}
d.baseUrl=d.config.baseUrl;
var n=navigator;
var dua=n.userAgent;
var dav=n.appVersion;
var tv=parseFloat(dav);
if(dua.indexOf("Opera")>=0){
d.isOpera=tv;
}
var _88=Math.max(dav.indexOf("WebKit"),dav.indexOf("Safari"),0);
if(_88){
d.isSafari=parseFloat(dav.split("Version/")[1])||(parseFloat(dav.substr(_88+7))>419.3)?3:2;
}
if(dua.indexOf("AdobeAIR")>=0){
d.isAIR=1;
}
if(dav.indexOf("Konqueror")>=0||d.isSafari){
d.isKhtml=tv;
}
if(dua.indexOf("Gecko")>=0&&!d.isKhtml){
d.isMozilla=d.isMoz=tv;
}
if(d.isMoz){
d.isFF=parseFloat(dua.split("Firefox/")[1])||undefined;
}
if(document.all&&!d.isOpera){
d.isIE=parseFloat(dav.split("MSIE ")[1])||undefined;
}
if(dojo.isIE&&window.location.protocol==="file:"){
dojo.config.ieForceActiveXXhr=true;
}
var cm=document.compatMode;
d.isQuirks=cm=="BackCompat"||cm=="QuirksMode"||d.isIE<6;
d.locale=dojo.config.locale||(d.isIE?n.userLanguage:n.language).toLowerCase();
d._XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];
d._xhrObj=function(){
var _8a=null;
var _8b=null;
if(!dojo.isIE||!dojo.config.ieForceActiveXXhr){
try{
_8a=new XMLHttpRequest();
}
catch(e){
}
}
if(!_8a){
for(var i=0;i<3;++i){
var _8d=d._XMLHTTP_PROGIDS[i];
try{
_8a=new ActiveXObject(_8d);
}
catch(e){
_8b=e;
}
if(_8a){
d._XMLHTTP_PROGIDS=[_8d];
break;
}
}
}
if(!_8a){
throw new Error("XMLHTTP not available: "+_8b);
}
return _8a;
};
d._isDocumentOk=function(_8e){
var _8f=_8e.status||0;
return (_8f>=200&&_8f<300)||_8f==304||_8f==1223||(!_8f&&(location.protocol=="file:"||location.protocol=="chrome:"));
};
var _90=window.location+"";
var _91=document.getElementsByTagName("base");
var _92=(_91&&_91.length>0);
d._getText=function(uri,_94){
var _95=this._xhrObj();
if(!_92&&dojo._Url){
uri=(new dojo._Url(_90,uri)).toString();
}
if(d.config.cacheBust){
uri+="";
uri+=(uri.indexOf("?")==-1?"?":"&")+String(d.config.cacheBust).replace(/\W+/g,"");
}
_95.open("GET",uri,false);
try{
_95.send(null);
if(!d._isDocumentOk(_95)){
var err=Error("Unable to load "+uri+" status:"+_95.status);
err.status=_95.status;
err.responseText=_95.responseText;
throw err;
}
}
catch(e){
if(_94){
return null;
}
throw e;
}
return _95.responseText;
};
d._windowUnloaders=[];
d.windowUnloaded=function(){
var mll=this._windowUnloaders;
while(mll.length){
(mll.pop())();
}
};
d.addOnWindowUnload=function(obj,_99){
d._onto(d._windowUnloaders,obj,_99);
};
})();
dojo._initFired=false;
dojo._loadInit=function(e){
dojo._initFired=true;
var _9b=(e&&e.type)?e.type.toLowerCase():"load";
if(arguments.callee.initialized||(_9b!="domcontentloaded"&&_9b!="load")){
return;
}
arguments.callee.initialized=true;
if("_khtmlTimer" in dojo){
clearInterval(dojo._khtmlTimer);
delete dojo._khtmlTimer;
}
if(dojo._inFlightCount==0){
dojo._modulesLoaded();
}
};
dojo._fakeLoadInit=function(){
dojo._loadInit({type:"load"});
};
if(!dojo.config.afterOnLoad){
if(document.addEventListener){
if(dojo.isOpera||dojo.isFF>=3||(dojo.isMoz&&dojo.config.enableMozDomContentLoaded===true)){
document.addEventListener("DOMContentLoaded",dojo._loadInit,null);
}
window.addEventListener("load",dojo._loadInit,null);
}
if(dojo.isAIR){
window.addEventListener("load",dojo._loadInit,null);
}else{
if(/(WebKit|khtml)/i.test(navigator.userAgent)){
dojo._khtmlTimer=setInterval(function(){
if(/loaded|complete/.test(document.readyState)){
dojo._loadInit();
}
},10);
}
}
}
(function(){
var _w=window;
var _9d=function(_9e,fp){
var _a0=_w[_9e]||function(){
};
_w[_9e]=function(){
fp.apply(_w,arguments);
_a0.apply(_w,arguments);
};
};
if(dojo.isIE){
if(!dojo.config.afterOnLoad){
document.write("<scr"+"ipt defer src=\"//:\" "+"onreadystatechange=\"if(this.readyState=='complete'){"+dojo._scopeName+"._loadInit();}\">"+"</scr"+"ipt>");
}
try{
document.namespaces.add("v","urn:schemas-microsoft-com:vml");
document.createStyleSheet().addRule("v\\:*","behavior:url(#default#VML)");
}
catch(e){
}
}
_9d("onbeforeunload",function(){
dojo.unloaded();
});
_9d("onunload",function(){
dojo.windowUnloaded();
});
})();
}
(function(){
var mp=dojo.config["modulePaths"];
if(mp){
for(var _a2 in mp){
dojo.registerModulePath(_a2,mp[_a2]);
}
}
})();
if(dojo.config.isDebug){
dojo.require("dojo._firebug.firebug");
}
if(dojo.config.debugAtAllCosts){
dojo.config.useXDomain=true;
dojo.require("dojo._base._loader.loader_xd");
dojo.require("dojo._base._loader.loader_debug");
}
if(!dojo._hasResource["dojo._base.lang"]){
dojo._hasResource["dojo._base.lang"]=true;
dojo.provide("dojo._base.lang");
dojo.isString=function(it){
return !!arguments.length&&it!=null&&(typeof it=="string"||it instanceof String);
};
dojo.isArray=function(it){
return it&&(it instanceof Array||typeof it=="array");
};
dojo.isFunction=(function(){
var _a5=function(it){
return it&&(typeof it=="function"||it instanceof Function);
};
return dojo.isSafari?function(it){
if(typeof it=="function"&&it=="[object NodeList]"){
return false;
}
return _a5(it);
}:_a5;
})();
dojo.isObject=function(it){
return it!==undefined&&(it===null||typeof it=="object"||dojo.isArray(it)||dojo.isFunction(it));
};
dojo.isArrayLike=function(it){
var d=dojo;
return it&&it!==undefined&&!d.isString(it)&&!d.isFunction(it)&&!(it.tagName&&it.tagName.toLowerCase()=="form")&&(d.isArray(it)||isFinite(it.length));
};
dojo.isAlien=function(it){
return it&&!dojo.isFunction(it)&&/\{\s*\[native code\]\s*\}/.test(String(it));
};
dojo.extend=function(_ac,_ad){
for(var i=1,l=arguments.length;i<l;i++){
dojo._mixin(_ac.prototype,arguments[i]);
}
return _ac;
};
dojo._hitchArgs=function(_b0,_b1){
var pre=dojo._toArray(arguments,2);
var _b3=dojo.isString(_b1);
return function(){
var _b4=dojo._toArray(arguments);
var f=_b3?(_b0||dojo.global)[_b1]:_b1;
return f&&f.apply(_b0||this,pre.concat(_b4));
};
};
dojo.hitch=function(_b6,_b7){
if(arguments.length>2){
return dojo._hitchArgs.apply(dojo,arguments);
}
if(!_b7){
_b7=_b6;
_b6=null;
}
if(dojo.isString(_b7)){
_b6=_b6||dojo.global;
if(!_b6[_b7]){
throw (["dojo.hitch: scope[\"",_b7,"\"] is null (scope=\"",_b6,"\")"].join(""));
}
return function(){
return _b6[_b7].apply(_b6,arguments||[]);
};
}
return !_b6?_b7:function(){
return _b7.apply(_b6,arguments||[]);
};
};
dojo.delegate=dojo._delegate=(function(){
function TMP(){
};
return function(obj,_b9){
TMP.prototype=obj;
var tmp=new TMP();
if(_b9){
dojo._mixin(tmp,_b9);
}
return tmp;
};
})();
(function(){
var _bb=function(obj,_bd,_be){
return (_be||[]).concat(Array.prototype.slice.call(obj,_bd||0));
};
var _bf=function(obj,_c1,_c2){
var arr=_c2||[];
for(var x=_c1||0;x<obj.length;x++){
arr.push(obj[x]);
}
return arr;
};
dojo._toArray=(!dojo.isIE)?_bb:function(obj){
return ((obj.item)?_bf:_bb).apply(this,arguments);
};
})();
dojo.partial=function(_c6){
var arr=[null];
return dojo.hitch.apply(dojo,arr.concat(dojo._toArray(arguments)));
};
dojo.clone=function(o){
if(!o){
return o;
}
if(dojo.isArray(o)){
var r=[];
for(var i=0;i<o.length;++i){
r.push(dojo.clone(o[i]));
}
return r;
}
if(!dojo.isObject(o)){
return o;
}
if(o.nodeType&&o.cloneNode){
return o.cloneNode(true);
}
if(o instanceof Date){
return new Date(o.getTime());
}
var r=new o.constructor();
for(var i in o){
if(!(i in r)||r[i]!=o[i]){
r[i]=dojo.clone(o[i]);
}
}
return r;
};
dojo.trim=function(str){
return str.replace(/^\s\s*/,"").replace(/\s\s*$/,"");
};
}
if(!dojo._hasResource["dojo._base.declare"]){
dojo._hasResource["dojo._base.declare"]=true;
dojo.provide("dojo._base.declare");
dojo.declare=function(_cc,_cd,_ce){
var dd=arguments.callee,_d0;
if(dojo.isArray(_cd)){
_d0=_cd;
_cd=_d0.shift();
}
if(_d0){
dojo.forEach(_d0,function(m){
if(!m){
throw (_cc+": mixin #"+i+" is null");
}
_cd=dd._delegate(_cd,m);
});
}
var _d2=dd._delegate(_cd);
_ce=_ce||{};
_d2.extend(_ce);
dojo.extend(_d2,{declaredClass:_cc,_constructor:_ce.constructor});
_d2.prototype.constructor=_d2;
return dojo.setObject(_cc,_d2);
};
dojo.mixin(dojo.declare,{_delegate:function(_d3,_d4){
var bp=(_d3||0).prototype,mp=(_d4||0).prototype,dd=dojo.declare;
var _d8=dd._makeCtor();
dojo.mixin(_d8,{superclass:bp,mixin:mp,extend:dd._extend});
if(_d3){
_d8.prototype=dojo._delegate(bp);
}
dojo.extend(_d8,dd._core,mp||0,{_constructor:null,preamble:null});
_d8.prototype.constructor=_d8;
_d8.prototype.declaredClass=(bp||0).declaredClass+"_"+(mp||0).declaredClass;
return _d8;
},_extend:function(_d9){
var i,fn;
for(i in _d9){
if(dojo.isFunction(fn=_d9[i])&&!0[i]){
fn.nom=i;
fn.ctor=this;
}
}
dojo.extend(this,_d9);
},_makeCtor:function(){
return function(){
this._construct(arguments);
};
},_core:{_construct:function(_dc){
var c=_dc.callee,s=c.superclass,ct=s&&s.constructor,m=c.mixin,mct=m&&m.constructor,a=_dc,ii,fn;
if(a[0]){
if(((fn=a[0].preamble))){
a=fn.apply(this,a)||a;
}
}
if((fn=c.prototype.preamble)){
a=fn.apply(this,a)||a;
}
if(ct&&ct.apply){
ct.apply(this,a);
}
if(mct&&mct.apply){
mct.apply(this,a);
}
if((ii=c.prototype._constructor)){
ii.apply(this,_dc);
}
if(this.constructor.prototype==c.prototype&&(ct=this.postscript)){
ct.apply(this,_dc);
}
},_findMixin:function(_e5){
var c=this.constructor,p,m;
while(c){
p=c.superclass;
m=c.mixin;
if(m==_e5||(m instanceof _e5.constructor)){
return p;
}
if(m&&m._findMixin&&(m=m._findMixin(_e5))){
return m;
}
c=p&&p.constructor;
}
},_findMethod:function(_e9,_ea,_eb,has){
var p=_eb,c,m,f;
do{
c=p.constructor;
m=c.mixin;
if(m&&(m=this._findMethod(_e9,_ea,m,has))){
return m;
}
if((f=p[_e9])&&(has==(f==_ea))){
return p;
}
p=c.superclass;
}while(p);
return !has&&(p=this._findMixin(_eb))&&this._findMethod(_e9,_ea,p,has);
},inherited:function(_f1,_f2,_f3){
var a=arguments;
if(!dojo.isString(a[0])){
_f3=_f2;
_f2=_f1;
_f1=_f2.callee.nom;
}
a=_f3||_f2;
var c=_f2.callee,p=this.constructor.prototype,fn,mp;
if(this[_f1]!=c||p[_f1]==c){
mp=(c.ctor||0).superclass||this._findMethod(_f1,c,p,true);
if(!mp){
throw (this.declaredClass+": inherited method \""+_f1+"\" mismatch");
}
p=this._findMethod(_f1,c,mp,false);
}
fn=p&&p[_f1];
if(!fn){
throw (mp.declaredClass+": inherited method \""+_f1+"\" not found");
}
return fn.apply(this,a);
}}});
}
if(!dojo._hasResource["dojo._base.connect"]){
dojo._hasResource["dojo._base.connect"]=true;
dojo.provide("dojo._base.connect");
dojo._listener={getDispatcher:function(){
return function(){
var ap=Array.prototype,c=arguments.callee,ls=c._listeners,t=c.target;
var r=t&&t.apply(this,arguments);
var lls;
lls=[].concat(ls);
for(var i in lls){
if(!(i in ap)){
lls[i].apply(this,arguments);
}
}
return r;
};
},add:function(_100,_101,_102){
_100=_100||dojo.global;
var f=_100[_101];
if(!f||!f._listeners){
var d=dojo._listener.getDispatcher();
d.target=f;
d._listeners=[];
f=_100[_101]=d;
}
return f._listeners.push(_102);
},remove:function(_105,_106,_107){
var f=(_105||dojo.global)[_106];
if(f&&f._listeners&&_107--){
delete f._listeners[_107];
}
}};
dojo.connect=function(obj,_10a,_10b,_10c,_10d){
var a=arguments,args=[],i=0;
args.push(dojo.isString(a[0])?null:a[i++],a[i++]);
var a1=a[i+1];
args.push(dojo.isString(a1)||dojo.isFunction(a1)?a[i++]:null,a[i++]);
for(var l=a.length;i<l;i++){
args.push(a[i]);
}
return dojo._connect.apply(this,args);
};
dojo._connect=function(obj,_113,_114,_115){
var l=dojo._listener,h=l.add(obj,_113,dojo.hitch(_114,_115));
return [obj,_113,h,l];
};
dojo.disconnect=function(_118){
if(_118&&_118[0]!==undefined){
dojo._disconnect.apply(this,_118);
delete _118[0];
}
};
dojo._disconnect=function(obj,_11a,_11b,_11c){
_11c.remove(obj,_11a,_11b);
};
dojo._topics={};
dojo.subscribe=function(_11d,_11e,_11f){
return [_11d,dojo._listener.add(dojo._topics,_11d,dojo.hitch(_11e,_11f))];
};
dojo.unsubscribe=function(_120){
if(_120){
dojo._listener.remove(dojo._topics,_120[0],_120[1]);
}
};
dojo.publish=function(_121,args){
var f=dojo._topics[_121];
if(f){
f.apply(this,args||[]);
}
};
dojo.connectPublisher=function(_124,obj,_126){
var pf=function(){
dojo.publish(_124,arguments);
};
return (_126)?dojo.connect(obj,_126,pf):dojo.connect(obj,pf);
};
}
if(!dojo._hasResource["dojo._base.Deferred"]){
dojo._hasResource["dojo._base.Deferred"]=true;
dojo.provide("dojo._base.Deferred");
dojo.Deferred=function(_128){
this.chain=[];
this.id=this._nextId();
this.fired=-1;
this.paused=0;
this.results=[null,null];
this.canceller=_128;
this.silentlyCancelled=false;
};
dojo.extend(dojo.Deferred,{_nextId:(function(){
var n=1;
return function(){
return n++;
};
})(),cancel:function(){
var err;
if(this.fired==-1){
if(this.canceller){
err=this.canceller(this);
}else{
this.silentlyCancelled=true;
}
if(this.fired==-1){
if(!(err instanceof Error)){
var res=err;
err=new Error("Deferred Cancelled");
err.dojoType="cancel";
err.cancelResult=res;
}
this.errback(err);
}
}else{
if((this.fired==0)&&(this.results[0] instanceof dojo.Deferred)){
this.results[0].cancel();
}
}
},_resback:function(res){
this.fired=((res instanceof Error)?1:0);
this.results[this.fired]=res;
this._fire();
},_check:function(){
if(this.fired!=-1){
if(!this.silentlyCancelled){
throw new Error("already called!");
}
this.silentlyCancelled=false;
return;
}
},callback:function(res){
this._check();
this._resback(res);
},errback:function(res){
this._check();
if(!(res instanceof Error)){
res=new Error(res);
}
this._resback(res);
},addBoth:function(cb,cbfn){
var _131=dojo.hitch.apply(dojo,arguments);
return this.addCallbacks(_131,_131);
},addCallback:function(cb,cbfn){
return this.addCallbacks(dojo.hitch.apply(dojo,arguments));
},addErrback:function(cb,cbfn){
return this.addCallbacks(null,dojo.hitch.apply(dojo,arguments));
},addCallbacks:function(cb,eb){
this.chain.push([cb,eb]);
if(this.fired>=0){
this._fire();
}
return this;
},_fire:function(){
var _138=this.chain;
var _139=this.fired;
var res=this.results[_139];
var self=this;
var cb=null;
while((_138.length>0)&&(this.paused==0)){
var f=_138.shift()[_139];
if(!f){
continue;
}
var func=function(){
var ret=f(res);
if(typeof ret!="undefined"){
res=ret;
}
_139=((res instanceof Error)?1:0);
if(res instanceof dojo.Deferred){
cb=function(res){
self._resback(res);
self.paused--;
if((self.paused==0)&&(self.fired>=0)){
self._fire();
}
};
this.paused++;
}
};
if(dojo.config.isDebug){
func.call(this);
}else{
try{
func.call(this);
}
catch(err){
_139=1;
res=err;
}
}
}
this.fired=_139;
this.results[_139]=res;
if((cb)&&(this.paused)){
res.addBoth(cb);
}
}});
}
if(!dojo._hasResource["dojo._base.json"]){
dojo._hasResource["dojo._base.json"]=true;
dojo.provide("dojo._base.json");
dojo.fromJson=function(json){
return eval("("+json+")");
};
dojo._escapeString=function(str){
return ("\""+str.replace(/(["\\])/g,"\\$1")+"\"").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r");
};
dojo.toJsonIndentStr="\t";
dojo.toJson=function(it,_144,_145){
if(it===undefined){
return "undefined";
}
var _146=typeof it;
if(_146=="number"||_146=="boolean"){
return it+"";
}
if(it===null){
return "null";
}
if(dojo.isString(it)){
return dojo._escapeString(it);
}
var _147=arguments.callee;
var _148;
_145=_145||"";
var _149=_144?_145+dojo.toJsonIndentStr:"";
var tf=it.__json__||it.json;
if(dojo.isFunction(tf)){
_148=tf.call(it);
if(it!==_148){
return _147(_148,_144,_149);
}
}
if(it.nodeType&&it.cloneNode){
throw new Error("Can't serialize DOM nodes");
}
var sep=_144?" ":"";
var _14c=_144?"\n":"";
if(dojo.isArray(it)){
var res=dojo.map(it,function(obj){
var val=_147(obj,_144,_149);
if(typeof val!="string"){
val="undefined";
}
return _14c+_149+val;
});
return "["+res.join(","+sep)+_14c+_145+"]";
}
if(_146=="function"){
return null;
}
var _150=[],key;
for(key in it){
var _152,val;
if(typeof key=="number"){
_152="\""+key+"\"";
}else{
if(typeof key=="string"){
_152=dojo._escapeString(key);
}else{
continue;
}
}
val=_147(it[key],_144,_149);
if(typeof val!="string"){
continue;
}
_150.push(_14c+_149+_152+":"+sep+val);
}
return "{"+_150.join(","+sep)+_14c+_145+"}";
};
}
if(!dojo._hasResource["dojo._base.array"]){
dojo._hasResource["dojo._base.array"]=true;
dojo.provide("dojo._base.array");
(function(){
var _154=function(arr,obj,cb){
return [dojo.isString(arr)?arr.split(""):arr,obj||dojo.global,dojo.isString(cb)?new Function("item","index","array",cb):cb];
};
dojo.mixin(dojo,{indexOf:function(_158,_159,_15a,_15b){
var step=1,end=_158.length||0,i=0;
if(_15b){
i=end-1;
step=end=-1;
}
if(_15a!=undefined){
i=_15a;
}
if((_15b&&i>end)||i<end){
for(;i!=end;i+=step){
if(_158[i]==_159){
return i;
}
}
}
return -1;
},lastIndexOf:function(_15e,_15f,_160){
return dojo.indexOf(_15e,_15f,_160,true);
},forEach:function(arr,_162,_163){
if(!arr||!arr.length){
return;
}
var _p=_154(arr,_163,_162);
arr=_p[0];
for(var i=0,l=arr.length;i<l;++i){
_p[2].call(_p[1],arr[i],i,arr);
}
},_everyOrSome:function(_167,arr,_169,_16a){
var _p=_154(arr,_16a,_169);
arr=_p[0];
for(var i=0,l=arr.length;i<l;++i){
var _16e=!!_p[2].call(_p[1],arr[i],i,arr);
if(_167^_16e){
return _16e;
}
}
return _167;
},every:function(arr,_170,_171){
return this._everyOrSome(true,arr,_170,_171);
},some:function(arr,_173,_174){
return this._everyOrSome(false,arr,_173,_174);
},map:function(arr,_176,_177){
var _p=_154(arr,_177,_176);
arr=_p[0];
var _179=(arguments[3]?(new arguments[3]()):[]);
for(var i=0,l=arr.length;i<l;++i){
_179.push(_p[2].call(_p[1],arr[i],i,arr));
}
return _179;
},filter:function(arr,_17d,_17e){
var _p=_154(arr,_17e,_17d);
arr=_p[0];
var _180=[];
for(var i=0,l=arr.length;i<l;++i){
if(_p[2].call(_p[1],arr[i],i,arr)){
_180.push(arr[i]);
}
}
return _180;
}});
})();
}
if(!dojo._hasResource["dojo._base.Color"]){
dojo._hasResource["dojo._base.Color"]=true;
dojo.provide("dojo._base.Color");
dojo.Color=function(_183){
if(_183){
this.setColor(_183);
}
};
dojo.Color.named={black:[0,0,0],silver:[192,192,192],gray:[128,128,128],white:[255,255,255],maroon:[128,0,0],red:[255,0,0],purple:[128,0,128],fuchsia:[255,0,255],green:[0,128,0],lime:[0,255,0],olive:[128,128,0],yellow:[255,255,0],navy:[0,0,128],blue:[0,0,255],teal:[0,128,128],aqua:[0,255,255]};
dojo.extend(dojo.Color,{r:255,g:255,b:255,a:1,_set:function(r,g,b,a){
var t=this;
t.r=r;
t.g=g;
t.b=b;
t.a=a;
},setColor:function(_189){
var d=dojo;
if(d.isString(_189)){
d.colorFromString(_189,this);
}else{
if(d.isArray(_189)){
d.colorFromArray(_189,this);
}else{
this._set(_189.r,_189.g,_189.b,_189.a);
if(!(_189 instanceof d.Color)){
this.sanitize();
}
}
}
return this;
},sanitize:function(){
return this;
},toRgb:function(){
var t=this;
return [t.r,t.g,t.b];
},toRgba:function(){
var t=this;
return [t.r,t.g,t.b,t.a];
},toHex:function(){
var arr=dojo.map(["r","g","b"],function(x){
var s=this[x].toString(16);
return s.length<2?"0"+s:s;
},this);
return "#"+arr.join("");
},toCss:function(_190){
var t=this,rgb=t.r+", "+t.g+", "+t.b;
return (_190?"rgba("+rgb+", "+t.a:"rgb("+rgb)+")";
},toString:function(){
return this.toCss(true);
}});
dojo.blendColors=function(_193,end,_195,obj){
var d=dojo,t=obj||new dojo.Color();
d.forEach(["r","g","b","a"],function(x){
t[x]=_193[x]+(end[x]-_193[x])*_195;
if(x!="a"){
t[x]=Math.round(t[x]);
}
});
return t.sanitize();
};
dojo.colorFromRgb=function(_19a,obj){
var m=_19a.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/);
return m&&dojo.colorFromArray(m[1].split(/\s*,\s*/),obj);
};
dojo.colorFromHex=function(_19d,obj){
var d=dojo,t=obj||new d.Color(),bits=(_19d.length==4)?4:8,mask=(1<<bits)-1;
_19d=Number("0x"+_19d.substr(1));
if(isNaN(_19d)){
return null;
}
d.forEach(["b","g","r"],function(x){
var c=_19d&mask;
_19d>>=bits;
t[x]=bits==4?17*c:c;
});
t.a=1;
return t;
};
dojo.colorFromArray=function(a,obj){
var t=obj||new dojo.Color();
t._set(Number(a[0]),Number(a[1]),Number(a[2]),Number(a[3]));
if(isNaN(t.a)){
t.a=1;
}
return t.sanitize();
};
dojo.colorFromString=function(str,obj){
var a=dojo.Color.named[str];
return a&&dojo.colorFromArray(a,obj)||dojo.colorFromRgb(str,obj)||dojo.colorFromHex(str,obj);
};
}
if(!dojo._hasResource["dojo._base"]){
dojo._hasResource["dojo._base"]=true;
dojo.provide("dojo._base");
}
if(!dojo._hasResource["dojo._base.window"]){
dojo._hasResource["dojo._base.window"]=true;
dojo.provide("dojo._base.window");
dojo.doc=window["document"]||null;
dojo.body=function(){
return dojo.doc.body||dojo.doc.getElementsByTagName("body")[0];
};
dojo.setContext=function(_1ab,_1ac){
dojo.global=_1ab;
dojo.doc=_1ac;
};
dojo._fireCallback=function(_1ad,_1ae,_1af){
if(_1ae&&dojo.isString(_1ad)){
_1ad=_1ae[_1ad];
}
return _1ad.apply(_1ae,_1af||[]);
};
dojo.withGlobal=function(_1b0,_1b1,_1b2,_1b3){
var rval;
var _1b5=dojo.global;
var _1b6=dojo.doc;
try{
dojo.setContext(_1b0,_1b0.document);
rval=dojo._fireCallback(_1b1,_1b2,_1b3);
}
finally{
dojo.setContext(_1b5,_1b6);
}
return rval;
};
dojo.withDoc=function(_1b7,_1b8,_1b9,_1ba){
var rval;
var _1bc=dojo.doc;
try{
dojo.doc=_1b7;
rval=dojo._fireCallback(_1b8,_1b9,_1ba);
}
finally{
dojo.doc=_1bc;
}
return rval;
};
}
if(!dojo._hasResource["dojo._base.event"]){
dojo._hasResource["dojo._base.event"]=true;
dojo.provide("dojo._base.event");
(function(){
var del=(dojo._event_listener={add:function(node,name,fp){
if(!node){
return;
}
name=del._normalizeEventName(name);
fp=del._fixCallback(name,fp);
var _1c1=name;
if(!dojo.isIE&&(name=="mouseenter"||name=="mouseleave")){
var ofp=fp;
name=(name=="mouseenter")?"mouseover":"mouseout";
fp=function(e){
try{
e.relatedTarget.tagName;
}
catch(e2){
return;
}
if(!dojo.isDescendant(e.relatedTarget,node)){
return ofp.call(this,e);
}
};
}
node.addEventListener(name,fp,false);
return fp;
},remove:function(node,_1c5,_1c6){
if(node){
_1c5=del._normalizeEventName(_1c5);
if(!dojo.isIE&&(_1c5=="mouseenter"||_1c5=="mouseleave")){
_1c5=(_1c5=="mouseenter")?"mouseover":"mouseout";
}
node.removeEventListener(_1c5,_1c6,false);
}
},_normalizeEventName:function(name){
return name.slice(0,2)=="on"?name.slice(2):name;
},_fixCallback:function(name,fp){
return name!="keypress"?fp:function(e){
return fp.call(this,del._fixEvent(e,this));
};
},_fixEvent:function(evt,_1cc){
switch(evt.type){
case "keypress":
del._setKeyChar(evt);
break;
}
return evt;
},_setKeyChar:function(evt){
evt.keyChar=evt.charCode?String.fromCharCode(evt.charCode):"";
evt.charOrCode=evt.keyChar||evt.keyCode;
},_punctMap:{106:42,111:47,186:59,187:43,188:44,189:45,190:46,191:47,192:96,219:91,220:92,221:93,222:39}});
dojo.fixEvent=function(evt,_1cf){
return del._fixEvent(evt,_1cf);
};
dojo.stopEvent=function(evt){
evt.preventDefault();
evt.stopPropagation();
};
var _1d1=dojo._listener;
dojo._connect=function(obj,_1d3,_1d4,_1d5,_1d6){
var _1d7=obj&&(obj.nodeType||obj.attachEvent||obj.addEventListener);
var lid=!_1d7?0:(!_1d6?1:2),l=[dojo._listener,del,_1d1][lid];
var h=l.add(obj,_1d3,dojo.hitch(_1d4,_1d5));
return [obj,_1d3,h,lid];
};
dojo._disconnect=function(obj,_1dc,_1dd,_1de){
([dojo._listener,del,_1d1][_1de]).remove(obj,_1dc,_1dd);
};
dojo.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,INSERT:45,DELETE:46,HELP:47,LEFT_WINDOW:91,RIGHT_WINDOW:92,SELECT:93,NUMPAD_0:96,NUMPAD_1:97,NUMPAD_2:98,NUMPAD_3:99,NUMPAD_4:100,NUMPAD_5:101,NUMPAD_6:102,NUMPAD_7:103,NUMPAD_8:104,NUMPAD_9:105,NUMPAD_MULTIPLY:106,NUMPAD_PLUS:107,NUMPAD_ENTER:108,NUMPAD_MINUS:109,NUMPAD_PERIOD:110,NUMPAD_DIVIDE:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,NUM_LOCK:144,SCROLL_LOCK:145};
if(dojo.isIE){
var _1df=function(e,code){
try{
return (e.keyCode=code);
}
catch(e){
return 0;
}
};
var iel=dojo._listener;
var _1e3=dojo._ieListenersName="_"+dojo._scopeName+"_listeners";
if(!dojo.config._allow_leaks){
_1d1=iel=dojo._ie_listener={handlers:[],add:function(_1e4,_1e5,_1e6){
_1e4=_1e4||dojo.global;
var f=_1e4[_1e5];
if(!f||!f[_1e3]){
var d=dojo._getIeDispatcher();
d.target=f&&(ieh.push(f)-1);
d[_1e3]=[];
f=_1e4[_1e5]=d;
}
return f[_1e3].push(ieh.push(_1e6)-1);
},remove:function(_1ea,_1eb,_1ec){
var f=(_1ea||dojo.global)[_1eb],l=f&&f[_1e3];
if(f&&l&&_1ec--){
delete ieh[l[_1ec]];
delete l[_1ec];
}
}};
var ieh=iel.handlers;
}
dojo.mixin(del,{add:function(node,_1f0,fp){
if(!node){
return;
}
_1f0=del._normalizeEventName(_1f0);
if(_1f0=="onkeypress"){
var kd=node.onkeydown;
if(!kd||!kd[_1e3]||!kd._stealthKeydownHandle){
var h=del.add(node,"onkeydown",del._stealthKeyDown);
kd=node.onkeydown;
kd._stealthKeydownHandle=h;
kd._stealthKeydownRefs=1;
}else{
kd._stealthKeydownRefs++;
}
}
return iel.add(node,_1f0,del._fixCallback(fp));
},remove:function(node,_1f5,_1f6){
_1f5=del._normalizeEventName(_1f5);
iel.remove(node,_1f5,_1f6);
if(_1f5=="onkeypress"){
var kd=node.onkeydown;
if(--kd._stealthKeydownRefs<=0){
iel.remove(node,"onkeydown",kd._stealthKeydownHandle);
delete kd._stealthKeydownHandle;
}
}
},_normalizeEventName:function(_1f8){
return _1f8.slice(0,2)!="on"?"on"+_1f8:_1f8;
},_nop:function(){
},_fixEvent:function(evt,_1fa){
if(!evt){
var w=_1fa&&(_1fa.ownerDocument||_1fa.document||_1fa).parentWindow||window;
evt=w.event;
}
if(!evt){
return (evt);
}
evt.target=evt.srcElement;
evt.currentTarget=(_1fa||evt.srcElement);
evt.layerX=evt.offsetX;
evt.layerY=evt.offsetY;
var se=evt.srcElement,doc=(se&&se.ownerDocument)||document;
var _1fe=((dojo.isIE<6)||(doc["compatMode"]=="BackCompat"))?doc.body:doc.documentElement;
var _1ff=dojo._getIeDocumentElementOffset();
evt.pageX=evt.clientX+dojo._fixIeBiDiScrollLeft(_1fe.scrollLeft||0)-_1ff.x;
evt.pageY=evt.clientY+(_1fe.scrollTop||0)-_1ff.y;
if(evt.type=="mouseover"){
evt.relatedTarget=evt.fromElement;
}
if(evt.type=="mouseout"){
evt.relatedTarget=evt.toElement;
}
evt.stopPropagation=del._stopPropagation;
evt.preventDefault=del._preventDefault;
return del._fixKeys(evt);
},_fixKeys:function(evt){
switch(evt.type){
case "keypress":
var c=("charCode" in evt?evt.charCode:evt.keyCode);
if(c==10){
c=0;
evt.keyCode=13;
}else{
if(c==13||c==27){
c=0;
}else{
if(c==3){
c=99;
}
}
}
evt.charCode=c;
del._setKeyChar(evt);
break;
}
return evt;
},_stealthKeyDown:function(evt){
var kp=evt.currentTarget.onkeypress;
if(!kp||!kp[_1e3]){
return;
}
var k=evt.keyCode;
var _205=(k!=13)&&(k!=32)&&(k!=27)&&(k<48||k>90)&&(k<96||k>111)&&(k<186||k>192)&&(k<219||k>222);
if(_205||evt.ctrlKey){
var c=_205?0:k;
if(evt.ctrlKey){
if(k==3||k==13){
return;
}else{
if(c>95&&c<106){
c-=48;
}else{
if((!evt.shiftKey)&&(c>=65&&c<=90)){
c+=32;
}else{
c=del._punctMap[c]||c;
}
}
}
}
var faux=del._synthesizeEvent(evt,{type:"keypress",faux:true,charCode:c});
kp.call(evt.currentTarget,faux);
evt.cancelBubble=faux.cancelBubble;
evt.returnValue=faux.returnValue;
_1df(evt,faux.keyCode);
}
},_stopPropagation:function(){
this.cancelBubble=true;
},_preventDefault:function(){
this.bubbledKeyCode=this.keyCode;
if(this.ctrlKey){
_1df(this,0);
}
this.returnValue=false;
}});
dojo.stopEvent=function(evt){
evt=evt||window.event;
del._stopPropagation.call(evt);
del._preventDefault.call(evt);
};
}
del._synthesizeEvent=function(evt,_20a){
var faux=dojo.mixin({},evt,_20a);
del._setKeyChar(faux);
faux.preventDefault=function(){
evt.preventDefault();
};
faux.stopPropagation=function(){
evt.stopPropagation();
};
return faux;
};
if(dojo.isOpera){
dojo.mixin(del,{_fixEvent:function(evt,_20d){
switch(evt.type){
case "keypress":
var c=evt.which;
if(c==3){
c=99;
}
c=((c<41)&&(!evt.shiftKey)?0:c);
if((evt.ctrlKey)&&(!evt.shiftKey)&&(c>=65)&&(c<=90)){
c+=32;
}
return del._synthesizeEvent(evt,{charCode:c});
}
return evt;
}});
}
if(dojo.isSafari){
del._add=del.add;
del._remove=del.remove;
dojo.mixin(del,{add:function(node,_210,fp){
if(!node){
return;
}
var _212=del._add(node,_210,fp);
if(del._normalizeEventName(_210)=="keypress"){
_212._stealthKeyDownHandle=del._add(node,"keydown",function(evt){
var k=evt.keyCode;
var _215=(k!=13)&&(k!=32)&&(k!=27)&&(k<48||k>90)&&(k<96||k>111)&&(k<186||k>192)&&(k<219||k>222);
if(_215||evt.ctrlKey){
var c=_215?0:k;
if(evt.ctrlKey){
if(k==3||k==13){
return;
}else{
if(c>95&&c<106){
c-=48;
}else{
if((!evt.shiftKey)&&(c>=65&&c<=90)){
c+=32;
}else{
c=del._punctMap[c]||c;
}
}
}
}
var faux=del._synthesizeEvent(evt,{type:"keypress",faux:true,charCode:c});
fp.call(evt.currentTarget,faux);
}
});
}
return _212;
},remove:function(node,_219,_21a){
if(node){
if(_21a._stealthKeyDownHandle){
del._remove(node,"keydown",_21a._stealthKeyDownHandle);
}
del._remove(node,_219,_21a);
}
},_fixEvent:function(evt,_21c){
switch(evt.type){
case "keypress":
if(evt.faux){
return evt;
}
var c=evt.charCode;
c=c>=32?c:0;
return del._synthesizeEvent(evt,{charCode:c,faux:true});
}
return evt;
}});
}
})();
if(dojo.isIE){
dojo._ieDispatcher=function(args,_21f){
var ap=Array.prototype,h=dojo._ie_listener.handlers,c=args.callee,ls=c[dojo._ieListenersName],t=h[c.target];
var r=t&&t.apply(_21f,args);
var lls=[].concat(ls);
for(var i in lls){
if(!(i in ap)){
h[lls[i]].apply(_21f,args);
}
}
return r;
};
dojo._getIeDispatcher=function(){
return new Function(dojo._scopeName+"._ieDispatcher(arguments, this)");
};
dojo._event_listener._fixCallback=function(fp){
var f=dojo._event_listener._fixEvent;
return function(e){
return fp.call(this,f(e,this));
};
};
}
}
if(!dojo._hasResource["dojo._base.html"]){
dojo._hasResource["dojo._base.html"]=true;
dojo.provide("dojo._base.html");
try{
document.execCommand("BackgroundImageCache",false,true);
}
catch(e){
}
if(dojo.isIE||dojo.isOpera){
dojo.byId=function(id,doc){
if(dojo.isString(id)){
var _d=doc||dojo.doc;
var te=_d.getElementById(id);
if(te&&te.attributes.id.value==id){
return te;
}else{
var eles=_d.all[id];
if(!eles||!eles.length){
return eles;
}
var i=0;
while((te=eles[i++])){
if(te.attributes.id.value==id){
return te;
}
}
}
}else{
return id;
}
};
}else{
dojo.byId=function(id,doc){
return dojo.isString(id)?(doc||dojo.doc).getElementById(id):id;
};
}
(function(){
var d=dojo;
var _234=null;
dojo.addOnWindowUnload(function(){
_234=null;
});
dojo._destroyElement=function(node){
node=d.byId(node);
try{
if(!_234||_234.ownerDocument!=node.ownerDocument){
_234=node.ownerDocument.createElement("div");
}
_234.appendChild(node.parentNode?node.parentNode.removeChild(node):node);
_234.innerHTML="";
}
catch(e){
}
};
dojo.isDescendant=function(node,_237){
try{
node=d.byId(node);
_237=d.byId(_237);
while(node){
if(node===_237){
return true;
}
node=node.parentNode;
}
}
catch(e){
}
return false;
};
dojo.setSelectable=function(node,_239){
node=d.byId(node);
if(d.isMozilla){
node.style.MozUserSelect=_239?"":"none";
}else{
if(d.isKhtml){
node.style.KhtmlUserSelect=_239?"auto":"none";
}else{
if(d.isIE){
var v=(node.unselectable=_239?"":"on");
d.query("*",node).forEach("item.unselectable = '"+v+"'");
}
}
}
};
var _23b=function(node,ref){
ref.parentNode.insertBefore(node,ref);
return true;
};
var _23e=function(node,ref){
var pn=ref.parentNode;
if(ref==pn.lastChild){
pn.appendChild(node);
}else{
return _23b(node,ref.nextSibling);
}
return true;
};
dojo.place=function(node,_243,_244){
if(!node||!_243){
return false;
}
node=d.byId(node);
_243=d.byId(_243);
if(typeof _244=="number"){
var cn=_243.childNodes;
if(!cn.length||cn.length<=_244){
_243.appendChild(node);
return true;
}
return _23b(node,_244<=0?_243.firstChild:cn[_244]);
}
switch(_244){
case "before":
return _23b(node,_243);
case "after":
return _23e(node,_243);
case "first":
if(_243.firstChild){
return _23b(node,_243.firstChild);
}
default:
_243.appendChild(node);
return true;
}
};
dojo.boxModel="content-box";
if(d.isIE){
var _dcm=document.compatMode;
d.boxModel=_dcm=="BackCompat"||_dcm=="QuirksMode"||d.isIE<6?"border-box":"content-box";
}
var gcs;
if(d.isSafari){
gcs=function(node){
var s;
if(node instanceof HTMLElement){
var dv=node.ownerDocument.defaultView;
s=dv.getComputedStyle(node,null);
if(!s&&node.style){
node.style.display="";
s=dv.getComputedStyle(node,null);
}
}
return s||{};
};
}else{
if(d.isIE){
gcs=function(node){
return node.nodeType==1?node.currentStyle:{};
};
}else{
gcs=function(node){
return node instanceof HTMLElement?node.ownerDocument.defaultView.getComputedStyle(node,null):{};
};
}
}
dojo.getComputedStyle=gcs;
if(!d.isIE){
dojo._toPixelValue=function(_24d,_24e){
return parseFloat(_24e)||0;
};
}else{
dojo._toPixelValue=function(_24f,_250){
if(!_250){
return 0;
}
if(_250=="medium"){
return 4;
}
if(_250.slice&&(_250.slice(-2)=="px")){
return parseFloat(_250);
}
with(_24f){
var _251=style.left;
var _252=runtimeStyle.left;
runtimeStyle.left=currentStyle.left;
try{
style.left=_250;
_250=style.pixelLeft;
}
catch(e){
_250=0;
}
style.left=_251;
runtimeStyle.left=_252;
}
return _250;
};
}
var px=d._toPixelValue;
var astr="DXImageTransform.Microsoft.Alpha";
var af=function(n,f){
try{
return n.filters.item(astr);
}
catch(e){
return f?{}:null;
}
};
dojo._getOpacity=d.isIE?function(node){
try{
return af(node).Opacity/100;
}
catch(e){
return 1;
}
}:function(node){
return gcs(node).opacity;
};
dojo._setOpacity=d.isIE?function(node,_25b){
var ov=_25b*100;
node.style.zoom=1;
af(node,1).Enabled=(_25b==1?false:true);
if(!af(node)){
node.style.filter+=" progid:"+astr+"(Opacity="+ov+")";
}else{
af(node,1).Opacity=ov;
}
if(node.nodeName.toLowerCase()=="tr"){
d.query("> td",node).forEach(function(i){
d._setOpacity(i,_25b);
});
}
return _25b;
}:function(node,_25f){
return node.style.opacity=_25f;
};
var _260={left:true,top:true};
var _261=/margin|padding|width|height|max|min|offset/;
var _262=function(node,type,_265){
type=type.toLowerCase();
if(d.isIE){
if(_265=="auto"){
if(type=="height"){
return node.offsetHeight;
}
if(type=="width"){
return node.offsetWidth;
}
}
if(type=="fontweight"){
switch(_265){
case 700:
return "bold";
case 400:
default:
return "normal";
}
}
}
if(!(type in _260)){
_260[type]=_261.test(type);
}
return _260[type]?px(node,_265):_265;
};
var _266=d.isIE?"styleFloat":"cssFloat";
var _267={"cssFloat":_266,"styleFloat":_266,"float":_266};
dojo.style=function(node,_269,_26a){
var n=d.byId(node),args=arguments.length,op=(_269=="opacity");
_269=_267[_269]||_269;
if(args==3){
return op?d._setOpacity(n,_26a):n.style[_269]=_26a;
}
if(args==2&&op){
return d._getOpacity(n);
}
var s=gcs(n);
if(args==2&&!d.isString(_269)){
for(var x in _269){
d.style(node,x,_269[x]);
}
return s;
}
return (args==1)?s:_262(n,_269,s[_269]||n.style[_269]);
};
dojo._getPadExtents=function(n,_271){
var s=_271||gcs(n),l=px(n,s.paddingLeft),t=px(n,s.paddingTop);
return {l:l,t:t,w:l+px(n,s.paddingRight),h:t+px(n,s.paddingBottom)};
};
dojo._getBorderExtents=function(n,_276){
var ne="none",s=_276||gcs(n),bl=(s.borderLeftStyle!=ne?px(n,s.borderLeftWidth):0),bt=(s.borderTopStyle!=ne?px(n,s.borderTopWidth):0);
return {l:bl,t:bt,w:bl+(s.borderRightStyle!=ne?px(n,s.borderRightWidth):0),h:bt+(s.borderBottomStyle!=ne?px(n,s.borderBottomWidth):0)};
};
dojo._getPadBorderExtents=function(n,_27c){
var s=_27c||gcs(n),p=d._getPadExtents(n,s),b=d._getBorderExtents(n,s);
return {l:p.l+b.l,t:p.t+b.t,w:p.w+b.w,h:p.h+b.h};
};
dojo._getMarginExtents=function(n,_281){
var s=_281||gcs(n),l=px(n,s.marginLeft),t=px(n,s.marginTop),r=px(n,s.marginRight),b=px(n,s.marginBottom);
if(d.isSafari&&(s.position!="absolute")){
r=l;
}
return {l:l,t:t,w:l+r,h:t+b};
};
dojo._getMarginBox=function(node,_288){
var s=_288||gcs(node),me=d._getMarginExtents(node,s);
var l=node.offsetLeft-me.l,t=node.offsetTop-me.t,p=node.parentNode;
if(d.isMoz){
var sl=parseFloat(s.left),st=parseFloat(s.top);
if(!isNaN(sl)&&!isNaN(st)){
l=sl,t=st;
}else{
if(p&&p.style){
var pcs=gcs(p);
if(pcs.overflow!="visible"){
var be=d._getBorderExtents(p,pcs);
l+=be.l,t+=be.t;
}
}
}
}else{
if(d.isOpera){
if(p){
var be=d._getBorderExtents(p);
l-=be.l;
t-=be.t;
}
}
}
return {l:l,t:t,w:node.offsetWidth+me.w,h:node.offsetHeight+me.h};
};
dojo._getContentBox=function(node,_293){
var s=_293||gcs(node),pe=d._getPadExtents(node,s),be=d._getBorderExtents(node,s),w=node.clientWidth,h;
if(!w){
w=node.offsetWidth,h=node.offsetHeight;
}else{
h=node.clientHeight,be.w=be.h=0;
}
if(d.isOpera){
pe.l+=be.l;
pe.t+=be.t;
}
return {l:pe.l,t:pe.t,w:w-pe.w-be.w,h:h-pe.h-be.h};
};
dojo._getBorderBox=function(node,_29a){
var s=_29a||gcs(node),pe=d._getPadExtents(node,s),cb=d._getContentBox(node,s);
return {l:cb.l-pe.l,t:cb.t-pe.t,w:cb.w+pe.w,h:cb.h+pe.h};
};
dojo._setBox=function(node,l,t,w,h,u){
u=u||"px";
var s=node.style;
if(!isNaN(l)){
s.left=l+u;
}
if(!isNaN(t)){
s.top=t+u;
}
if(w>=0){
s.width=w+u;
}
if(h>=0){
s.height=h+u;
}
};
dojo._isButtonTag=function(node){
return node.tagName=="BUTTON"||node.tagName=="INPUT"&&node.getAttribute("type").toUpperCase()=="BUTTON";
};
dojo._usesBorderBox=function(node){
var n=node.tagName;
return d.boxModel=="border-box"||n=="TABLE"||dojo._isButtonTag(node);
};
dojo._setContentSize=function(node,_2a9,_2aa,_2ab){
if(d._usesBorderBox(node)){
var pb=d._getPadBorderExtents(node,_2ab);
if(_2a9>=0){
_2a9+=pb.w;
}
if(_2aa>=0){
_2aa+=pb.h;
}
}
d._setBox(node,NaN,NaN,_2a9,_2aa);
};
dojo._setMarginBox=function(node,_2ae,_2af,_2b0,_2b1,_2b2){
var s=_2b2||gcs(node);
var bb=d._usesBorderBox(node),pb=bb?_2b6:d._getPadBorderExtents(node,s);
if(dojo.isSafari){
if(dojo._isButtonTag(node)){
var ns=node.style;
if(_2b0>=0&&!ns.width){
ns.width="4px";
}
if(_2b1>=0&&!ns.height){
ns.height="4px";
}
}
}
var mb=d._getMarginExtents(node,s);
if(_2b0>=0){
_2b0=Math.max(_2b0-pb.w-mb.w,0);
}
if(_2b1>=0){
_2b1=Math.max(_2b1-pb.h-mb.h,0);
}
d._setBox(node,_2ae,_2af,_2b0,_2b1);
};
var _2b6={l:0,t:0,w:0,h:0};
dojo.marginBox=function(node,box){
var n=d.byId(node),s=gcs(n),b=box;
return !b?d._getMarginBox(n,s):d._setMarginBox(n,b.l,b.t,b.w,b.h,s);
};
dojo.contentBox=function(node,box){
var n=d.byId(node),s=gcs(n),b=box;
return !b?d._getContentBox(n,s):d._setContentSize(n,b.w,b.h,s);
};
var _2c3=function(node,prop){
if(!(node=(node||0).parentNode)){
return 0;
}
var val,_2c7=0,_b=d.body();
while(node&&node.style){
if(gcs(node).position=="fixed"){
return 0;
}
val=node[prop];
if(val){
_2c7+=val-0;
if(node==_b){
break;
}
}
node=node.parentNode;
}
return _2c7;
};
dojo._docScroll=function(){
var _b=d.body(),_w=d.global,de=d.doc.documentElement;
return {y:(_w.pageYOffset||de.scrollTop||_b.scrollTop||0),x:(_w.pageXOffset||d._fixIeBiDiScrollLeft(de.scrollLeft)||_b.scrollLeft||0)};
};
dojo._isBodyLtr=function(){
return !("_bodyLtr" in d)?d._bodyLtr=gcs(d.body()).direction=="ltr":d._bodyLtr;
};
dojo._getIeDocumentElementOffset=function(){
var de=d.doc.documentElement;
return (d.isIE>=7)?{x:de.getBoundingClientRect().left,y:de.getBoundingClientRect().top}:{x:d._isBodyLtr()||window.parent==window?de.clientLeft:de.offsetWidth-de.clientWidth-de.clientLeft,y:de.clientTop};
};
dojo._fixIeBiDiScrollLeft=function(_2cd){
var dd=d.doc;
if(d.isIE&&!dojo._isBodyLtr()){
var de=dd.compatMode=="BackCompat"?dd.body:dd.documentElement;
return _2cd+de.clientWidth-de.scrollWidth;
}
return _2cd;
};
dojo._abs=function(node,_2d1){
var _2d2=node.ownerDocument;
var ret={x:0,y:0};
var db=d.body();
if(d.isIE||(d.isFF>=3)){
var _2d5=node.getBoundingClientRect();
var cs;
if(d.isFF){
var dv=node.ownerDocument.defaultView;
cs=dv.getComputedStyle(db.parentNode,null);
}
var _2d8=(d.isIE)?d._getIeDocumentElementOffset():{x:px(db.parentNode,cs.marginLeft),y:px(db.parentNode,cs.marginTop)};
ret.x=_2d5.left-_2d8.x;
ret.y=_2d5.top-_2d8.y;
}else{
if(node["offsetParent"]){
var _2d9;
if(d.isSafari&&(gcs(node).position=="absolute")&&(node.parentNode==db)){
_2d9=db;
}else{
_2d9=db.parentNode;
}
var cs=gcs(node);
var n=node;
if(d.isOpera&&cs.position!="absolute"){
n=n.offsetParent;
}
ret.x-=_2c3(n,"scrollLeft");
ret.y-=_2c3(n,"scrollTop");
var _2db=node;
do{
var n=_2db.offsetLeft;
if(!d.isOpera||n>0){
ret.x+=isNaN(n)?0:n;
}
var t=_2db.offsetTop;
ret.y+=isNaN(t)?0:t;
var cs=gcs(_2db);
if(_2db!=node){
if(d.isSafari){
ret.x+=px(_2db,cs.borderLeftWidth);
ret.y+=px(_2db,cs.borderTopWidth);
}else{
if(d.isFF){
ret.x+=2*px(_2db,cs.borderLeftWidth);
ret.y+=2*px(_2db,cs.borderTopWidth);
}
}
}
if(d.isFF&&cs.position=="static"){
var _2dd=_2db.parentNode;
while(_2dd!=_2db.offsetParent){
var pcs=gcs(_2dd);
if(pcs.position=="static"){
ret.x+=px(_2db,pcs.borderLeftWidth);
ret.y+=px(_2db,pcs.borderTopWidth);
}
_2dd=_2dd.parentNode;
}
}
_2db=_2db.offsetParent;
}while((_2db!=_2d9)&&_2db);
}else{
if(node.x&&node.y){
ret.x+=isNaN(node.x)?0:node.x;
ret.y+=isNaN(node.y)?0:node.y;
}
}
}
if(_2d1){
var _2df=d._docScroll();
ret.y+=_2df.y;
ret.x+=_2df.x;
}
return ret;
};
dojo.coords=function(node,_2e1){
var n=d.byId(node),s=gcs(n),mb=d._getMarginBox(n,s);
var abs=d._abs(n,_2e1);
mb.x=abs.x;
mb.y=abs.y;
return mb;
};
var _2e6=d.isIE<8;
var _2e7=function(name){
switch(name.toLowerCase()){
case "tabindex":
return _2e6?"tabIndex":"tabindex";
case "for":
case "htmlfor":
return _2e6?"htmlFor":"for";
case "class":
return d.isIE?"className":"class";
default:
return name;
}
};
var _2e9={colspan:"colSpan",enctype:"enctype",frameborder:"frameborder",method:"method",rowspan:"rowSpan",scrolling:"scrolling",shape:"shape",span:"span",type:"type",valuetype:"valueType"};
dojo.hasAttr=function(node,name){
node=d.byId(node);
var _2ec=_2e7(name);
_2ec=_2ec=="htmlFor"?"for":_2ec;
var attr=node.getAttributeNode&&node.getAttributeNode(_2ec);
return attr?attr.specified:false;
};
var _2ee={};
var _ctr=0;
var _2f0=dojo._scopeName+"attrid";
dojo.attr=function(node,name,_2f3){
var args=arguments.length;
if(args==2&&!d.isString(name)){
for(var x in name){
d.attr(node,x,name[x]);
}
return;
}
node=d.byId(node);
name=_2e7(name);
if(args==3){
if(d.isFunction(_2f3)){
var _2f6=d.attr(node,_2f0);
if(!_2f6){
_2f6=_ctr++;
d.attr(node,_2f0,_2f6);
}
if(!_2ee[_2f6]){
_2ee[_2f6]={};
}
var h=_2ee[_2f6][name];
if(h){
d.disconnect(h);
}else{
try{
delete node[name];
}
catch(e){
}
}
_2ee[_2f6][name]=d.connect(node,name,_2f3);
}else{
if((typeof _2f3=="boolean")||(name=="innerHTML")){
node[name]=_2f3;
}else{
if((name=="style")&&(!d.isString(_2f3))){
d.style(node,_2f3);
}else{
node.setAttribute(name,_2f3);
}
}
}
return;
}else{
var prop=_2e9[name.toLowerCase()];
if(prop){
return node[prop];
}else{
var _2f9=node[name];
return (typeof _2f9=="boolean"||typeof _2f9=="function")?_2f9:(d.hasAttr(node,name)?node.getAttribute(name):null);
}
}
};
dojo.removeAttr=function(node,name){
d.byId(node).removeAttribute(_2e7(name));
};
var _2fc="className";
dojo.hasClass=function(node,_2fe){
return ((" "+d.byId(node)[_2fc]+" ").indexOf(" "+_2fe+" ")>=0);
};
dojo.addClass=function(node,_300){
node=d.byId(node);
var cls=node[_2fc];
if((" "+cls+" ").indexOf(" "+_300+" ")<0){
node[_2fc]=cls+(cls?" ":"")+_300;
}
};
dojo.removeClass=function(node,_303){
node=d.byId(node);
var t=d.trim((" "+node[_2fc]+" ").replace(" "+_303+" "," "));
if(node[_2fc]!=t){
node[_2fc]=t;
}
};
dojo.toggleClass=function(node,_306,_307){
if(_307===undefined){
_307=!d.hasClass(node,_306);
}
d[_307?"addClass":"removeClass"](node,_306);
};
})();
}
if(!dojo._hasResource["dojo._base.NodeList"]){
dojo._hasResource["dojo._base.NodeList"]=true;
dojo.provide("dojo._base.NodeList");
(function(){
var d=dojo;
var tnl=function(arr){
arr.constructor=dojo.NodeList;
dojo._mixin(arr,dojo.NodeList.prototype);
return arr;
};
var _30b=function(func,_30d){
return function(){
var _a=arguments;
var aa=d._toArray(_a,0,[null]);
var s=this.map(function(i){
aa[0]=i;
return d[func].apply(d,aa);
});
return (_30d||((_a.length>1)||!d.isString(_a[0])))?this:s;
};
};
dojo.NodeList=function(){
return tnl(Array.apply(null,arguments));
};
dojo.NodeList._wrap=tnl;
dojo.extend(dojo.NodeList,{slice:function(){
var a=d._toArray(arguments);
return tnl(a.slice.apply(this,a));
},splice:function(){
var a=d._toArray(arguments);
return tnl(a.splice.apply(this,a));
},concat:function(){
var a=d._toArray(arguments,0,[this]);
return tnl(a.concat.apply([],a));
},indexOf:function(_315,_316){
return d.indexOf(this,_315,_316);
},lastIndexOf:function(){
return d.lastIndexOf.apply(d,d._toArray(arguments,0,[this]));
},every:function(_317,_318){
return d.every(this,_317,_318);
},some:function(_319,_31a){
return d.some(this,_319,_31a);
},map:function(func,obj){
return d.map(this,func,obj,d.NodeList);
},forEach:function(_31d,_31e){
d.forEach(this,_31d,_31e);
return this;
},coords:function(){
return d.map(this,d.coords);
},attr:_30b("attr"),style:_30b("style"),addClass:_30b("addClass",true),removeClass:_30b("removeClass",true),toggleClass:_30b("toggleClass",true),connect:_30b("connect",true),place:function(_31f,_320){
var item=d.query(_31f)[0];
return this.forEach(function(i){
d.place(i,item,_320);
});
},orphan:function(_323){
return (_323?d._filterQueryResult(this,_323):this).forEach("if(item.parentNode){ item.parentNode.removeChild(item); }");
},adopt:function(_324,_325){
var item=this[0];
return d.query(_324).forEach(function(ai){
d.place(ai,item,_325||"last");
});
},query:function(_328){
if(!_328){
return this;
}
var ret=d.NodeList();
this.forEach(function(item){
ret=ret.concat(d.query(_328,item).filter(function(_32b){
return (_32b!==undefined);
}));
});
return ret;
},filter:function(_32c){
var _32d=this;
var _a=arguments;
var r=d.NodeList();
var rp=function(t){
if(t!==undefined){
r.push(t);
}
};
if(d.isString(_32c)){
_32d=d._filterQueryResult(this,_a[0]);
if(_a.length==1){
return _32d;
}
_a.shift();
}
d.forEach(d.filter(_32d,_a[0],_a[1]),rp);
return r;
},addContent:function(_332,_333){
var ta=d.doc.createElement("span");
if(d.isString(_332)){
ta.innerHTML=_332;
}else{
ta.appendChild(_332);
}
if(_333===undefined){
_333="last";
}
var ct=(_333=="first"||_333=="after")?"lastChild":"firstChild";
this.forEach(function(item){
var tn=ta.cloneNode(true);
while(tn[ct]){
d.place(tn[ct],item,_333);
}
});
return this;
},empty:function(){
return this.forEach("item.innerHTML='';");
},instantiate:function(_338,_339){
var c=d.isFunction(_338)?_338:d.getObject(_338);
return this.forEach(function(i){
new c(_339||{},i);
});
},at:function(){
var nl=new dojo.NodeList();
dojo.forEach(arguments,function(i){
if(this[i]){
nl.push(this[i]);
}
},this);
return nl;
}});
d.forEach(["blur","focus","click","keydown","keypress","keyup","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","submit","load","error"],function(evt){
var _oe="on"+evt;
d.NodeList.prototype[_oe]=function(a,b){
return this.connect(_oe,a,b);
};
});
})();
}
if(!dojo._hasResource["dojo._base.query"]){
dojo._hasResource["dojo._base.query"]=true;
dojo.provide("dojo._base.query");
(function(){
var d=dojo;
var _343=dojo.isIE?"children":"childNodes";
var _344=false;
var _345=function(_346){
if(">~+".indexOf(_346.charAt(_346.length-1))>=0){
_346+=" *";
}
_346+=" ";
var ts=function(s,e){
return d.trim(_346.slice(s,e));
};
var _34a=[];
var _34b=-1;
var _34c=-1;
var _34d=-1;
var _34e=-1;
var _34f=-1;
var inId=-1;
var _351=-1;
var lc="";
var cc="";
var _354;
var x=0;
var ql=_346.length;
var _357=null;
var _cp=null;
var _359=function(){
if(_351>=0){
var tv=(_351==x)?null:ts(_351,x);
_357[(">~+".indexOf(tv)<0)?"tag":"oper"]=tv;
_351=-1;
}
};
var _35b=function(){
if(inId>=0){
_357.id=ts(inId,x).replace(/\\/g,"");
inId=-1;
}
};
var _35c=function(){
if(_34f>=0){
_357.classes.push(ts(_34f+1,x).replace(/\\/g,""));
_34f=-1;
}
};
var _35d=function(){
_35b();
_359();
_35c();
};
for(;lc=cc,cc=_346.charAt(x),x<ql;x++){
if(lc=="\\"){
continue;
}
if(!_357){
_354=x;
_357={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null};
_351=x;
}
if(_34b>=0){
if(cc=="]"){
if(!_cp.attr){
_cp.attr=ts(_34b+1,x);
}else{
_cp.matchFor=ts((_34d||_34b+1),x);
}
var cmf=_cp.matchFor;
if(cmf){
if((cmf.charAt(0)=="\"")||(cmf.charAt(0)=="'")){
_cp.matchFor=cmf.substring(1,cmf.length-1);
}
}
_357.attrs.push(_cp);
_cp=null;
_34b=_34d=-1;
}else{
if(cc=="="){
var _35f=("|~^$*".indexOf(lc)>=0)?lc:"";
_cp.type=_35f+cc;
_cp.attr=ts(_34b+1,x-_35f.length);
_34d=x+1;
}
}
}else{
if(_34c>=0){
if(cc==")"){
if(_34e>=0){
_cp.value=ts(_34c+1,x);
}
_34e=_34c=-1;
}
}else{
if(cc=="#"){
_35d();
inId=x+1;
}else{
if(cc=="."){
_35d();
_34f=x;
}else{
if(cc==":"){
_35d();
_34e=x;
}else{
if(cc=="["){
_35d();
_34b=x;
_cp={};
}else{
if(cc=="("){
if(_34e>=0){
_cp={name:ts(_34e+1,x),value:null};
_357.pseudos.push(_cp);
}
_34c=x;
}else{
if(cc==" "&&lc!=cc){
_35d();
if(_34e>=0){
_357.pseudos.push({name:ts(_34e+1,x)});
}
_357.hasLoops=(_357.pseudos.length||_357.attrs.length||_357.classes.length);
_357.query=ts(_354,x);
_357.otag=_357.tag=(_357["oper"])?null:(_357.tag||"*");
if(_357.tag){
_357.tag=_357.tag.toUpperCase();
}
_34a.push(_357);
_357=null;
}
}
}
}
}
}
}
}
}
return _34a;
};
var _360={"*=":function(attr,_362){
return "[contains(@"+attr+", '"+_362+"')]";
},"^=":function(attr,_364){
return "[starts-with(@"+attr+", '"+_364+"')]";
},"$=":function(attr,_366){
return "[substring(@"+attr+", string-length(@"+attr+")-"+(_366.length-1)+")='"+_366+"']";
},"~=":function(attr,_368){
return "[contains(concat(' ',@"+attr+",' '), ' "+_368+" ')]";
},"|=":function(attr,_36a){
return "[contains(concat(' ',@"+attr+",' '), ' "+_36a+"-')]";
},"=":function(attr,_36c){
return "[@"+attr+"='"+_36c+"']";
}};
var _36d=function(_36e,_36f,_370,_371){
d.forEach(_36f.attrs,function(attr){
var _373;
if(attr.type&&_36e[attr.type]){
_373=_36e[attr.type](attr.attr,attr.matchFor);
}else{
if(attr.attr.length){
_373=_370(attr.attr);
}
}
if(_373){
_371(_373);
}
});
};
var _374=function(_375){
var _376=".";
var _377=_345(d.trim(_375));
while(_377.length){
var tqp=_377.shift();
var _379;
var _37a="";
if(tqp.oper==">"){
_379="/";
tqp=_377.shift();
}else{
if(tqp.oper=="~"){
_379="/following-sibling::";
tqp=_377.shift();
}else{
if(tqp.oper=="+"){
_379="/following-sibling::";
_37a="[position()=1]";
tqp=_377.shift();
}else{
_379="//";
}
}
}
_376+=_379+tqp.tag+_37a;
if(tqp.id){
_376+="[@id='"+tqp.id+"'][1]";
}
d.forEach(tqp.classes,function(cn){
var cnl=cn.length;
var _37d=" ";
if(cn.charAt(cnl-1)=="*"){
_37d="";
cn=cn.substr(0,cnl-1);
}
_376+="[contains(concat(' ',@class,' '), ' "+cn+_37d+"')]";
});
_36d(_360,tqp,function(_37e){
return "[@"+_37e+"]";
},function(_37f){
_376+=_37f;
});
}
return _376;
};
var _380={};
var _381=function(path){
if(_380[path]){
return _380[path];
}
var doc=d.doc;
var _384=_374(path);
var tf=function(_386){
var ret=[];
var _388;
var tdoc=doc;
if(_386){
tdoc=(_386.nodeType==9)?_386:_386.ownerDocument;
}
try{
_388=tdoc.evaluate(_384,_386,null,XPathResult.ANY_TYPE,null);
}
catch(e){
console.debug("failure in exprssion:",_384,"under:",_386);
console.debug(e);
}
var _38a=_388.iterateNext();
while(_38a){
ret.push(_38a);
_38a=_388.iterateNext();
}
return ret;
};
return _380[path]=tf;
};
var _38b={};
var _38c={};
var _38d=function(_38e,_38f){
if(!_38e){
return _38f;
}
if(!_38f){
return _38e;
}
return function(){
return _38e.apply(window,arguments)&&_38f.apply(window,arguments);
};
};
var _390=function(root){
var ret=[];
var te,x=0,tret=root[_343];
while((te=tret[x++])){
if(te.nodeType==1){
ret.push(te);
}
}
return ret;
};
var _396=function(root,_398){
var ret=[];
var te=root;
while(te=te.nextSibling){
if(te.nodeType==1){
ret.push(te);
if(_398){
break;
}
}
}
return ret;
};
var _39b=function(_39c,_39d,_39e,idx){
var nidx=idx+1;
var _3a1=(_39d.length==nidx);
var tqp=_39d[idx];
if(tqp.oper){
var ecn=(tqp.oper==">")?_390(_39c):_396(_39c,(tqp.oper=="+"));
if(!ecn||!ecn.length){
return;
}
nidx++;
_3a1=(_39d.length==nidx);
var tf=_3a5(_39d[idx+1]);
for(var x=0,ecnl=ecn.length,te;x<ecnl,te=ecn[x];x++){
if(tf(te)){
if(_3a1){
_39e.push(te);
}else{
_39b(te,_39d,_39e,nidx);
}
}
}
}
var _3a9=_3aa(tqp)(_39c);
if(_3a1){
while(_3a9.length){
_39e.push(_3a9.shift());
}
}else{
while(_3a9.length){
_39b(_3a9.shift(),_39d,_39e,nidx);
}
}
};
var _3ab=function(_3ac,_3ad){
var ret=[];
var x=_3ac.length-1,te;
while((te=_3ac[x--])){
_39b(te,_3ad,ret,0);
}
return ret;
};
var _3a5=function(q){
if(_38b[q.query]){
return _38b[q.query];
}
var ff=null;
if(q.tag){
if(q.tag=="*"){
ff=_38d(ff,function(elem){
return (elem.nodeType==1);
});
}else{
ff=_38d(ff,function(elem){
return ((elem.nodeType==1)&&(q[_344?"otag":"tag"]==elem.tagName));
});
}
}
if(q.id){
ff=_38d(ff,function(elem){
return ((elem.nodeType==1)&&(elem.id==q.id));
});
}
if(q.hasLoops){
ff=_38d(ff,_3b6(q));
}
return _38b[q.query]=ff;
};
var _3b7=function(node){
var pn=node.parentNode;
var pnc=pn.childNodes;
var nidx=-1;
var _3bc=pn.firstChild;
if(!_3bc){
return nidx;
}
var ci=node["__cachedIndex"];
var cl=pn["__cachedLength"];
if(((typeof cl=="number")&&(cl!=pnc.length))||(typeof ci!="number")){
pn["__cachedLength"]=pnc.length;
var idx=1;
do{
if(_3bc===node){
nidx=idx;
}
if(_3bc.nodeType==1){
_3bc["__cachedIndex"]=idx;
idx++;
}
_3bc=_3bc.nextSibling;
}while(_3bc);
}else{
nidx=ci;
}
return nidx;
};
var _3c0=0;
var _3c1="";
var _3c2=function(elem,attr){
if(attr=="class"){
return elem.className||_3c1;
}
if(attr=="for"){
return elem.htmlFor||_3c1;
}
if(attr=="style"){
return elem.style.cssText||_3c1;
}
return (_344?elem.getAttribute(attr):elem.getAttribute(attr,2))||_3c1;
};
var _3c5={"*=":function(attr,_3c7){
return function(elem){
return (_3c2(elem,attr).indexOf(_3c7)>=0);
};
},"^=":function(attr,_3ca){
return function(elem){
return (_3c2(elem,attr).indexOf(_3ca)==0);
};
},"$=":function(attr,_3cd){
var tval=" "+_3cd;
return function(elem){
var ea=" "+_3c2(elem,attr);
return (ea.lastIndexOf(_3cd)==(ea.length-_3cd.length));
};
},"~=":function(attr,_3d2){
var tval=" "+_3d2+" ";
return function(elem){
var ea=" "+_3c2(elem,attr)+" ";
return (ea.indexOf(tval)>=0);
};
},"|=":function(attr,_3d7){
var _3d8=" "+_3d7+"-";
return function(elem){
var ea=" "+(elem.getAttribute(attr,2)||"");
return ((ea==_3d7)||(ea.indexOf(_3d8)==0));
};
},"=":function(attr,_3dc){
return function(elem){
return (_3c2(elem,attr)==_3dc);
};
}};
var _3de={"checked":function(name,_3e0){
return function(elem){
return !!d.attr(elem,"checked");
};
},"first-child":function(name,_3e3){
return function(elem){
if(elem.nodeType!=1){
return false;
}
var fc=elem.previousSibling;
while(fc&&(fc.nodeType!=1)){
fc=fc.previousSibling;
}
return (!fc);
};
},"last-child":function(name,_3e7){
return function(elem){
if(elem.nodeType!=1){
return false;
}
var nc=elem.nextSibling;
while(nc&&(nc.nodeType!=1)){
nc=nc.nextSibling;
}
return (!nc);
};
},"empty":function(name,_3eb){
return function(elem){
var cn=elem.childNodes;
var cnl=elem.childNodes.length;
for(var x=cnl-1;x>=0;x--){
var nt=cn[x].nodeType;
if((nt==1)||(nt==3)){
return false;
}
}
return true;
};
},"contains":function(name,_3f2){
return function(elem){
if(_3f2.charAt(0)=="\""||_3f2.charAt(0)=="'"){
_3f2=_3f2.substr(1,_3f2.length-2);
}
return (elem.innerHTML.indexOf(_3f2)>=0);
};
},"not":function(name,_3f5){
var ntf=_3a5(_345(_3f5)[0]);
return function(elem){
return (!ntf(elem));
};
},"nth-child":function(name,_3f9){
var pi=parseInt;
if(_3f9=="odd"){
_3f9="2n+1";
}else{
if(_3f9=="even"){
_3f9="2n";
}
}
if(_3f9.indexOf("n")!=-1){
var _3fb=_3f9.split("n",2);
var pred=_3fb[0]?(_3fb[0]=="-"?-1:pi(_3fb[0])):1;
var idx=_3fb[1]?pi(_3fb[1]):0;
var lb=0,ub=-1;
if(pred>0){
if(idx<0){
idx=(idx%pred)&&(pred+(idx%pred));
}else{
if(idx>0){
if(idx>=pred){
lb=idx-idx%pred;
}
idx=idx%pred;
}
}
}else{
if(pred<0){
pred*=-1;
if(idx>0){
ub=idx;
idx=idx%pred;
}
}
}
if(pred>0){
return function(elem){
var i=_3b7(elem);
return (i>=lb)&&(ub<0||i<=ub)&&((i%pred)==idx);
};
}else{
_3f9=idx;
}
}
var _402=pi(_3f9);
return function(elem){
return (_3b7(elem)==_402);
};
}};
var _404=(d.isIE)?function(cond){
var clc=cond.toLowerCase();
return function(elem){
return (_344?elem.getAttribute(cond):elem[cond]||elem[clc]);
};
}:function(cond){
return function(elem){
return (elem&&elem.getAttribute&&elem.hasAttribute(cond));
};
};
var _3b6=function(_40a){
var _40b=(_38c[_40a.query]||_38b[_40a.query]);
if(_40b){
return _40b;
}
var ff=null;
if(_40a.id){
if(_40a.tag!="*"){
ff=_38d(ff,function(elem){
return (elem.tagName==_40a[_344?"otag":"tag"]);
});
}
}
d.forEach(_40a.classes,function(_40e,idx,arr){
var _411=_40e.charAt(_40e.length-1)=="*";
if(_411){
_40e=_40e.substr(0,_40e.length-1);
}
var re=new RegExp("(?:^|\\s)"+_40e+(_411?".*":"")+"(?:\\s|$)");
ff=_38d(ff,function(elem){
return re.test(elem.className);
});
ff.count=idx;
});
d.forEach(_40a.pseudos,function(_414){
if(_3de[_414.name]){
ff=_38d(ff,_3de[_414.name](_414.name,_414.value));
}
});
_36d(_3c5,_40a,_404,function(_415){
ff=_38d(ff,_415);
});
if(!ff){
ff=function(){
return true;
};
}
return _38c[_40a.query]=ff;
};
var _416={};
var _3aa=function(_417,root){
var fHit=_416[_417.query];
if(fHit){
return fHit;
}
if(_417.id&&!_417.hasLoops&&!_417.tag){
return _416[_417.query]=function(root){
return [d.byId(_417.id)];
};
}
var _41b=_3b6(_417);
var _41c;
if(_417.tag&&_417.id&&!_417.hasLoops){
_41c=function(root){
var te=d.byId(_417.id,(root.ownerDocument||root));
if(_41b(te)){
return [te];
}
};
}else{
var tret;
if(!_417.hasLoops){
_41c=function(root){
var ret=[];
var te,x=0,tret=root.getElementsByTagName(_417[_344?"otag":"tag"]);
while((te=tret[x++])){
ret.push(te);
}
return ret;
};
}else{
_41c=function(root){
var ret=[];
var te,x=0,tret=root.getElementsByTagName(_417[_344?"otag":"tag"]);
while((te=tret[x++])){
if(_41b(te)){
ret.push(te);
}
}
return ret;
};
}
}
return _416[_417.query]=_41c;
};
var _428={};
var _429={"*":d.isIE?function(root){
return root.all;
}:function(root){
return root.getElementsByTagName("*");
},"~":_396,"+":function(root){
return _396(root,true);
},">":_390};
var _42d=function(_42e){
var _42f=_345(d.trim(_42e));
if(_42f.length==1){
var tt=_3aa(_42f[0]);
tt.nozip=true;
return tt;
}
var sqf=function(root){
var _433=_42f.slice(0);
var _434;
if(_433[0].oper==">"){
_434=[root];
}else{
_434=_3aa(_433.shift())(root);
}
return _3ab(_434,_433);
};
return sqf;
};
var _435=((document["evaluate"]&&!d.isSafari)?function(_436,root){
var _438=_436.split(" ");
if((!_344)&&(document["evaluate"])&&(_436.indexOf(":")==-1)&&(_436.indexOf("+")==-1)){
if(((_438.length>2)&&(_436.indexOf(">")==-1))||(_438.length>3)||(_436.indexOf("[")>=0)||((1==_438.length)&&(0<=_436.indexOf(".")))){
return _381(_436);
}
}
return _42d(_436);
}:_42d);
var _439=function(_43a){
if(_429[_43a]){
return _429[_43a];
}
if(0>_43a.indexOf(",")){
return _429[_43a]=_435(_43a);
}else{
var _43b=_43a.split(/\s*,\s*/);
var tf=function(root){
var _43e=0;
var ret=[];
var tp;
while((tp=_43b[_43e++])){
ret=ret.concat(_435(tp,tp.indexOf(" "))(root));
}
return ret;
};
return _429[_43a]=tf;
}
};
var _441=0;
var _zip=function(arr){
if(arr&&arr.nozip){
return d.NodeList._wrap(arr);
}
var ret=new d.NodeList();
if(!arr){
return ret;
}
if(arr[0]){
ret.push(arr[0]);
}
if(arr.length<2){
return ret;
}
_441++;
if(d.isIE&&_344){
var _445=_441+"";
arr[0].setAttribute("_zipIdx",_445);
for(var x=1,te;te=arr[x];x++){
if(arr[x].getAttribute("_zipIdx")!=_445){
ret.push(te);
}
te.setAttribute("_zipIdx",_445);
}
}else{
arr[0]["_zipIdx"]=_441;
for(var x=1,te;te=arr[x];x++){
if(arr[x]["_zipIdx"]!=_441){
ret.push(te);
}
te["_zipIdx"]=_441;
}
}
return ret;
};
d.query=function(_448,root){
if(_448.constructor==d.NodeList){
return _448;
}
if(!d.isString(_448)){
return new d.NodeList(_448);
}
if(d.isString(root)){
root=d.byId(root);
}
root=root||d.doc;
var od=root.ownerDocument||root.documentElement;
_344=(root.contentType&&root.contentType=="application/xml")||(!!od)&&(d.isIE?od.xml:(root.xmlVersion||od.xmlVersion));
return _zip(_439(_448)(root));
};
d.query.pseudos=_3de;
d._filterQueryResult=function(_44b,_44c){
var tnl=new d.NodeList();
var ff=(_44c)?_3a5(_345(_44c)[0]):function(){
return true;
};
for(var x=0,te;te=_44b[x];x++){
if(ff(te)){
tnl.push(te);
}
}
return tnl;
};
})();
}
if(!dojo._hasResource["dojo._base.xhr"]){
dojo._hasResource["dojo._base.xhr"]=true;
dojo.provide("dojo._base.xhr");
(function(){
var _d=dojo;
function setValue(obj,name,_454){
var val=obj[name];
if(_d.isString(val)){
obj[name]=[val,_454];
}else{
if(_d.isArray(val)){
val.push(_454);
}else{
obj[name]=_454;
}
}
};
dojo.formToObject=function(_456){
var ret={};
var _458="file|submit|image|reset|button|";
_d.forEach(dojo.byId(_456).elements,function(item){
var _in=item.name;
var type=(item.type||"").toLowerCase();
if(_in&&type&&_458.indexOf(type)==-1&&!item.disabled){
if(type=="radio"||type=="checkbox"){
if(item.checked){
setValue(ret,_in,item.value);
}
}else{
if(item.multiple){
ret[_in]=[];
_d.query("option",item).forEach(function(opt){
if(opt.selected){
setValue(ret,_in,opt.value);
}
});
}else{
setValue(ret,_in,item.value);
if(type=="image"){
ret[_in+".x"]=ret[_in+".y"]=ret[_in].x=ret[_in].y=0;
}
}
}
}
});
return ret;
};
dojo.objectToQuery=function(map){
var enc=encodeURIComponent;
var _45f=[];
var _460={};
for(var name in map){
var _462=map[name];
if(_462!=_460[name]){
var _463=enc(name)+"=";
if(_d.isArray(_462)){
for(var i=0;i<_462.length;i++){
_45f.push(_463+enc(_462[i]));
}
}else{
_45f.push(_463+enc(_462));
}
}
}
return _45f.join("&");
};
dojo.formToQuery=function(_465){
return _d.objectToQuery(_d.formToObject(_465));
};
dojo.formToJson=function(_466,_467){
return _d.toJson(_d.formToObject(_466),_467);
};
dojo.queryToObject=function(str){
var ret={};
var qp=str.split("&");
var dec=decodeURIComponent;
_d.forEach(qp,function(item){
if(item.length){
var _46d=item.split("=");
var name=dec(_46d.shift());
var val=dec(_46d.join("="));
if(_d.isString(ret[name])){
ret[name]=[ret[name]];
}
if(_d.isArray(ret[name])){
ret[name].push(val);
}else{
ret[name]=val;
}
}
});
return ret;
};
dojo._blockAsync=false;
dojo._contentHandlers={"text":function(xhr){
return xhr.responseText;
},"json":function(xhr){
return _d.fromJson(xhr.responseText||null);
},"json-comment-filtered":function(xhr){
if(!dojo.config.useCommentedJson){
console.warn("Consider using the standard mimetype:application/json."+" json-commenting can introduce security issues. To"+" decrease the chances of hijacking, use the standard the 'json' handler and"+" prefix your json with: {}&&\n"+"Use djConfig.useCommentedJson=true to turn off this message.");
}
var _473=xhr.responseText;
var _474=_473.indexOf("/*");
var _475=_473.lastIndexOf("*/");
if(_474==-1||_475==-1){
throw new Error("JSON was not comment filtered");
}
return _d.fromJson(_473.substring(_474+2,_475));
},"javascript":function(xhr){
return _d.eval(xhr.responseText);
},"xml":function(xhr){
var _478=xhr.responseXML;
if(_d.isIE&&(!_478||_478.documentElement==null)){
_d.forEach(["MSXML2","Microsoft","MSXML","MSXML3"],function(_479){
try{
var dom=new ActiveXObject(_479+".XMLDOM");
dom.async=false;
dom.loadXML(xhr.responseText);
_478=dom;
}
catch(e){
}
});
}
return _478;
}};
dojo._contentHandlers["json-comment-optional"]=function(xhr){
var _47c=_d._contentHandlers;
if(xhr.responseText&&xhr.responseText.indexOf("/*")!=-1){
return _47c["json-comment-filtered"](xhr);
}else{
return _47c["json"](xhr);
}
};
dojo._ioSetArgs=function(args,_47e,_47f,_480){
var _481={args:args,url:args.url};
var _482=null;
if(args.form){
var form=_d.byId(args.form);
var _484=form.getAttributeNode("action");
_481.url=_481.url||(_484?_484.value:null);
_482=_d.formToObject(form);
}
var _485=[{}];
if(_482){
_485.push(_482);
}
if(args.content){
_485.push(args.content);
}
if(args.preventCache){
_485.push({"dojo.preventCache":new Date().valueOf()});
}
_481.query=_d.objectToQuery(_d.mixin.apply(null,_485));
_481.handleAs=args.handleAs||"text";
var d=new _d.Deferred(_47e);
d.addCallbacks(_47f,function(_487){
return _480(_487,d);
});
var ld=args.load;
if(ld&&_d.isFunction(ld)){
d.addCallback(function(_489){
return ld.call(args,_489,_481);
});
}
var err=args.error;
if(err&&_d.isFunction(err)){
d.addErrback(function(_48b){
return err.call(args,_48b,_481);
});
}
var _48c=args.handle;
if(_48c&&_d.isFunction(_48c)){
d.addBoth(function(_48d){
return _48c.call(args,_48d,_481);
});
}
d.ioArgs=_481;
return d;
};
var _48e=function(dfd){
dfd.canceled=true;
var xhr=dfd.ioArgs.xhr;
var _at=typeof xhr.abort;
if(_at=="function"||_at=="object"||_at=="unknown"){
xhr.abort();
}
var err=dfd.ioArgs.error;
if(!err){
err=new Error("xhr cancelled");
err.dojoType="cancel";
}
return err;
};
var _493=function(dfd){
var ret=_d._contentHandlers[dfd.ioArgs.handleAs](dfd.ioArgs.xhr);
return (typeof ret=="undefined")?null:ret;
};
var _496=function(_497,dfd){
console.debug(_497);
return _497;
};
var _499=null;
var _49a=[];
var _49b=function(){
var now=(new Date()).getTime();
if(!_d._blockAsync){
for(var i=0,tif;i<_49a.length&&(tif=_49a[i]);i++){
var dfd=tif.dfd;
var func=function(){
if(!dfd||dfd.canceled||!tif.validCheck(dfd)){
_49a.splice(i--,1);
}else{
if(tif.ioCheck(dfd)){
_49a.splice(i--,1);
tif.resHandle(dfd);
}else{
if(dfd.startTime){
if(dfd.startTime+(dfd.ioArgs.args.timeout||0)<now){
_49a.splice(i--,1);
var err=new Error("timeout exceeded");
err.dojoType="timeout";
dfd.errback(err);
dfd.cancel();
}
}
}
}
};
if(dojo.config.isDebug){
func.call(this);
}else{
try{
func.call(this);
}
catch(e){
dfd.errback(e);
}
}
}
}
if(!_49a.length){
clearInterval(_499);
_499=null;
return;
}
};
dojo._ioCancelAll=function(){
try{
_d.forEach(_49a,function(i){
try{
i.dfd.cancel();
}
catch(e){
}
});
}
catch(e){
}
};
if(_d.isIE){
_d.addOnWindowUnload(_d._ioCancelAll);
}
_d._ioWatch=function(dfd,_4a4,_4a5,_4a6){
if(dfd.ioArgs.args.timeout){
dfd.startTime=(new Date()).getTime();
}
_49a.push({dfd:dfd,validCheck:_4a4,ioCheck:_4a5,resHandle:_4a6});
if(!_499){
_499=setInterval(_49b,50);
}
_49b();
};
var _4a7="application/x-www-form-urlencoded";
var _4a8=function(dfd){
return dfd.ioArgs.xhr.readyState;
};
var _4aa=function(dfd){
return 4==dfd.ioArgs.xhr.readyState;
};
var _4ac=function(dfd){
var xhr=dfd.ioArgs.xhr;
if(_d._isDocumentOk(xhr)){
dfd.callback(dfd);
}else{
var err=new Error("Unable to load "+dfd.ioArgs.url+" status:"+xhr.status);
err.status=xhr.status;
err.responseText=xhr.responseText;
dfd.errback(err);
}
};
dojo._ioAddQueryToUrl=function(_4b0){
if(_4b0.query.length){
_4b0.url+=(_4b0.url.indexOf("?")==-1?"?":"&")+_4b0.query;
_4b0.query=null;
}
};
dojo.xhr=function(_4b1,args,_4b3){
var dfd=_d._ioSetArgs(args,_48e,_493,_496);
dfd.ioArgs.xhr=_d._xhrObj(dfd.ioArgs.args);
if(_4b3){
if("postData" in args){
dfd.ioArgs.query=args.postData;
}else{
if("putData" in args){
dfd.ioArgs.query=args.putData;
}
}
}else{
_d._ioAddQueryToUrl(dfd.ioArgs);
}
var _4b5=dfd.ioArgs;
var xhr=_4b5.xhr;
xhr.open(_4b1,_4b5.url,args.sync!==true,args.user||undefined,args.password||undefined);
if(args.headers){
for(var hdr in args.headers){
if(hdr.toLowerCase()==="content-type"&&!args.contentType){
args.contentType=args.headers[hdr];
}else{
xhr.setRequestHeader(hdr,args.headers[hdr]);
}
}
}
xhr.setRequestHeader("Content-Type",args.contentType||_4a7);
if(!args.headers||!args.headers["X-Requested-With"]){
xhr.setRequestHeader("X-Requested-With","XMLHttpRequest");
}
if(dojo.config.isDebug){
xhr.send(_4b5.query);
}else{
try{
xhr.send(_4b5.query);
}
catch(e){
dfd.ioArgs.error=e;
dfd.cancel();
}
}
_d._ioWatch(dfd,_4a8,_4aa,_4ac);
xhr=null;
return dfd;
};
dojo.xhrGet=function(args){
return _d.xhr("GET",args);
};
dojo.rawXhrPost=dojo.xhrPost=function(args){
return _d.xhr("POST",args,true);
};
dojo.rawXhrPut=dojo.xhrPut=function(args){
return _d.xhr("PUT",args,true);
};
dojo.xhrDelete=function(args){
return _d.xhr("DELETE",args);
};
})();
}
if(!dojo._hasResource["dojo._base.fx"]){
dojo._hasResource["dojo._base.fx"]=true;
dojo.provide("dojo._base.fx");
(function(){
var d=dojo;
dojo._Line=function(_4bd,end){
this.start=_4bd;
this.end=end;
this.getValue=function(n){
return ((this.end-this.start)*n)+this.start;
};
};
d.declare("dojo._Animation",null,{constructor:function(args){
d.mixin(this,args);
if(d.isArray(this.curve)){
this.curve=new d._Line(this.curve[0],this.curve[1]);
}
},duration:350,repeat:0,rate:10,_percent:0,_startRepeatCount:0,_fire:function(evt,args){
if(this[evt]){
if(dojo.config.isDebug){
this[evt].apply(this,args||[]);
}else{
try{
this[evt].apply(this,args||[]);
}
catch(e){
console.error("exception in animation handler for:",evt);
console.error(e);
}
}
}
return this;
},play:function(_4c3,_4c4){
var _t=this;
if(_4c4){
_t._stopTimer();
_t._active=_t._paused=false;
_t._percent=0;
}else{
if(_t._active&&!_t._paused){
return _t;
}
}
_t._fire("beforeBegin");
var de=_4c3||_t.delay;
var _p=dojo.hitch(_t,"_play",_4c4);
if(de>0){
setTimeout(_p,de);
return _t;
}
_p();
return _t;
},_play:function(_4c8){
var _t=this;
_t._startTime=new Date().valueOf();
if(_t._paused){
_t._startTime-=_t.duration*_t._percent;
}
_t._endTime=_t._startTime+_t.duration;
_t._active=true;
_t._paused=false;
var _4ca=_t.curve.getValue(_t._percent);
if(!_t._percent){
if(!_t._startRepeatCount){
_t._startRepeatCount=_t.repeat;
}
_t._fire("onBegin",[_4ca]);
}
_t._fire("onPlay",[_4ca]);
_t._cycle();
return _t;
},pause:function(){
this._stopTimer();
if(!this._active){
return this;
}
this._paused=true;
this._fire("onPause",[this.curve.getValue(this._percent)]);
return this;
},gotoPercent:function(_4cb,_4cc){
this._stopTimer();
this._active=this._paused=true;
this._percent=_4cb;
if(_4cc){
this.play();
}
return this;
},stop:function(_4cd){
if(!this._timer){
return this;
}
this._stopTimer();
if(_4cd){
this._percent=1;
}
this._fire("onStop",[this.curve.getValue(this._percent)]);
this._active=this._paused=false;
return this;
},status:function(){
if(this._active){
return this._paused?"paused":"playing";
}
return "stopped";
},_cycle:function(){
var _t=this;
if(_t._active){
var curr=new Date().valueOf();
var step=(curr-_t._startTime)/(_t._endTime-_t._startTime);
if(step>=1){
step=1;
}
_t._percent=step;
if(_t.easing){
step=_t.easing(step);
}
_t._fire("onAnimate",[_t.curve.getValue(step)]);
if(_t._percent<1){
_t._startTimer();
}else{
_t._active=false;
if(_t.repeat>0){
_t.repeat--;
_t.play(null,true);
}else{
if(_t.repeat==-1){
_t.play(null,true);
}else{
if(_t._startRepeatCount){
_t.repeat=_t._startRepeatCount;
_t._startRepeatCount=0;
}
}
}
_t._percent=0;
_t._fire("onEnd");
_t._stopTimer();
}
}
return _t;
}});
var ctr=0;
var _4d2=[];
var _4d3={run:function(){
}};
var _4d4=null;
dojo._Animation.prototype._startTimer=function(){
if(!this._timer){
this._timer=d.connect(_4d3,"run",this,"_cycle");
ctr++;
}
if(!_4d4){
_4d4=setInterval(d.hitch(_4d3,"run"),this.rate);
}
};
dojo._Animation.prototype._stopTimer=function(){
if(this._timer){
d.disconnect(this._timer);
this._timer=null;
ctr--;
}
if(ctr<=0){
clearInterval(_4d4);
_4d4=null;
ctr=0;
}
};
var _4d5=(d.isIE)?function(node){
var ns=node.style;
if(!ns.width.length&&d.style(node,"width")=="auto"){
ns.width="auto";
}
}:function(){
};
dojo._fade=function(args){
args.node=d.byId(args.node);
var _4d9=d.mixin({properties:{}},args);
var _4da=(_4d9.properties.opacity={});
_4da.start=!("start" in _4d9)?function(){
return Number(d.style(_4d9.node,"opacity"));
}:_4d9.start;
_4da.end=_4d9.end;
var anim=d.animateProperty(_4d9);
d.connect(anim,"beforeBegin",d.partial(_4d5,_4d9.node));
return anim;
};
dojo.fadeIn=function(args){
return d._fade(d.mixin({end:1},args));
};
dojo.fadeOut=function(args){
return d._fade(d.mixin({end:0},args));
};
dojo._defaultEasing=function(n){
return 0.5+((Math.sin((n+1.5)*Math.PI))/2);
};
var _4df=function(_4e0){
this._properties=_4e0;
for(var p in _4e0){
var prop=_4e0[p];
if(prop.start instanceof d.Color){
prop.tempColor=new d.Color();
}
}
this.getValue=function(r){
var ret={};
for(var p in this._properties){
var prop=this._properties[p];
var _4e7=prop.start;
if(_4e7 instanceof d.Color){
ret[p]=d.blendColors(_4e7,prop.end,r,prop.tempColor).toCss();
}else{
if(!d.isArray(_4e7)){
ret[p]=((prop.end-_4e7)*r)+_4e7+(p!="opacity"?prop.units||"px":"");
}
}
}
return ret;
};
};
dojo.animateProperty=function(args){
args.node=d.byId(args.node);
if(!args.easing){
args.easing=d._defaultEasing;
}
var anim=new d._Animation(args);
d.connect(anim,"beforeBegin",anim,function(){
var pm={};
for(var p in this.properties){
if(p=="width"||p=="height"){
this.node.display="block";
}
var prop=this.properties[p];
prop=pm[p]=d.mixin({},(d.isObject(prop)?prop:{end:prop}));
if(d.isFunction(prop.start)){
prop.start=prop.start();
}
if(d.isFunction(prop.end)){
prop.end=prop.end();
}
var _4ed=(p.toLowerCase().indexOf("color")>=0);
function getStyle(node,p){
var v=({height:node.offsetHeight,width:node.offsetWidth})[p];
if(v!==undefined){
return v;
}
v=d.style(node,p);
return (p=="opacity")?Number(v):(_4ed?v:parseFloat(v));
};
if(!("end" in prop)){
prop.end=getStyle(this.node,p);
}else{
if(!("start" in prop)){
prop.start=getStyle(this.node,p);
}
}
if(_4ed){
prop.start=new d.Color(prop.start);
prop.end=new d.Color(prop.end);
}else{
prop.start=(p=="opacity")?Number(prop.start):parseFloat(prop.start);
}
}
this.curve=new _4df(pm);
});
d.connect(anim,"onAnimate",d.hitch(d,"style",anim.node));
return anim;
};
dojo.anim=function(node,_4f2,_4f3,_4f4,_4f5,_4f6){
return d.animateProperty({node:node,duration:_4f3||d._Animation.prototype.duration,properties:_4f2,easing:_4f4,onEnd:_4f5}).play(_4f6||0);
};
})();
}
if(!dojo._hasResource["dojo._base.browser"]){
dojo._hasResource["dojo._base.browser"]=true;
dojo.provide("dojo._base.browser");
if(dojo.config.require){
dojo.forEach(dojo.config.require,"dojo['require'](item);");
}
}
if(!dojo._hasResource["dojo.date.stamp"]){
dojo._hasResource["dojo.date.stamp"]=true;
dojo.provide("dojo.date.stamp");
dojo.date.stamp.fromISOString=function(_4f7,_4f8){
if(!dojo.date.stamp._isoRegExp){
dojo.date.stamp._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/;
}
var _4f9=dojo.date.stamp._isoRegExp.exec(_4f7);
var _4fa=null;
if(_4f9){
_4f9.shift();
if(_4f9[1]){
_4f9[1]--;
}
if(_4f9[6]){
_4f9[6]*=1000;
}
if(_4f8){
_4f8=new Date(_4f8);
dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){
return _4f8["get"+prop]();
}).forEach(function(_4fc,_4fd){
if(_4f9[_4fd]===undefined){
_4f9[_4fd]=_4fc;
}
});
}
_4fa=new Date(_4f9[0]||1970,_4f9[1]||0,_4f9[2]||1,_4f9[3]||0,_4f9[4]||0,_4f9[5]||0,_4f9[6]||0);
var _4fe=0;
var _4ff=_4f9[7]&&_4f9[7].charAt(0);
if(_4ff!="Z"){
_4fe=((_4f9[8]||0)*60)+(Number(_4f9[9])||0);
if(_4ff!="-"){
_4fe*=-1;
}
}
if(_4ff){
_4fe-=_4fa.getTimezoneOffset();
}
if(_4fe){
_4fa.setTime(_4fa.getTime()+_4fe*60000);
}
}
return _4fa;
};
dojo.date.stamp.toISOString=function(_500,_501){
var _=function(n){
return (n<10)?"0"+n:n;
};
_501=_501||{};
var _504=[];
var _505=_501.zulu?"getUTC":"get";
var date="";
if(_501.selector!="time"){
var year=_500[_505+"FullYear"]();
date=["0000".substr((year+"").length)+year,_(_500[_505+"Month"]()+1),_(_500[_505+"Date"]())].join("-");
}
_504.push(date);
if(_501.selector!="date"){
var time=[_(_500[_505+"Hours"]()),_(_500[_505+"Minutes"]()),_(_500[_505+"Seconds"]())].join(":");
var _509=_500[_505+"Milliseconds"]();
if(_501.milliseconds){
time+="."+(_509<100?"0":"")+_(_509);
}
if(_501.zulu){
time+="Z";
}else{
if(_501.selector!="time"){
var _50a=_500.getTimezoneOffset();
var _50b=Math.abs(_50a);
time+=(_50a>0?"-":"+")+_(Math.floor(_50b/60))+":"+_(_50b%60);
}
}
_504.push(time);
}
return _504.join("T");
};
}
if(!dojo._hasResource["dojo.parser"]){
dojo._hasResource["dojo.parser"]=true;
dojo.provide("dojo.parser");
dojo.parser=new function(){
var d=dojo;
var _50d=d._scopeName+"Type";
var qry="["+_50d+"]";
function val2type(_50f){
if(d.isString(_50f)){
return "string";
}
if(typeof _50f=="number"){
return "number";
}
if(typeof _50f=="boolean"){
return "boolean";
}
if(d.isFunction(_50f)){
return "function";
}
if(d.isArray(_50f)){
return "array";
}
if(_50f instanceof Date){
return "date";
}
if(_50f instanceof d._Url){
return "url";
}
return "object";
};
function str2obj(_510,type){
switch(type){
case "string":
return _510;
case "number":
return _510.length?Number(_510):NaN;
case "boolean":
return typeof _510=="boolean"?_510:!(_510.toLowerCase()=="false");
case "function":
if(d.isFunction(_510)){
_510=_510.toString();
_510=d.trim(_510.substring(_510.indexOf("{")+1,_510.length-1));
}
try{
if(_510.search(/[^\w\.]+/i)!=-1){
_510=d.parser._nameAnonFunc(new Function(_510),this);
}
return d.getObject(_510,false);
}
catch(e){
return new Function();
}
case "array":
return _510?_510.split(/\s*,\s*/):[];
case "date":
switch(_510){
case "":
return new Date("");
case "now":
return new Date();
default:
return d.date.stamp.fromISOString(_510);
}
case "url":
return d.baseUrl+_510;
default:
return d.fromJson(_510);
}
};
var _512={};
function getClassInfo(_513){
if(!_512[_513]){
var cls=d.getObject(_513);
if(!d.isFunction(cls)){
throw new Error("Could not load class '"+_513+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");
}
var _515=cls.prototype;
var _516={};
for(var name in _515){
if(name.charAt(0)=="_"){
continue;
}
var _518=_515[name];
_516[name]=val2type(_518);
}
_512[_513]={cls:cls,params:_516};
}
return _512[_513];
};
this._functionFromScript=function(_519){
var _51a="";
var _51b="";
var _51c=_519.getAttribute("args");
if(_51c){
d.forEach(_51c.split(/\s*,\s*/),function(part,idx){
_51a+="var "+part+" = arguments["+idx+"]; ";
});
}
var _51f=_519.getAttribute("with");
if(_51f&&_51f.length){
d.forEach(_51f.split(/\s*,\s*/),function(part){
_51a+="with("+part+"){";
_51b+="}";
});
}
return new Function(_51a+_519.innerHTML+_51b);
};
this.instantiate=function(_521){
var _522=[];
d.forEach(_521,function(node){
if(!node){
return;
}
var type=node.getAttribute(_50d);
if((!type)||(!type.length)){
return;
}
var _525=getClassInfo(type);
var _526=_525.cls;
var ps=_526._noScript||_526.prototype._noScript;
var _528={};
var _529=node.attributes;
for(var name in _525.params){
var item=_529.getNamedItem(name);
if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){
continue;
}
var _52c=item.value;
switch(name){
case "class":
_52c=node.className;
break;
case "style":
_52c=node.style&&node.style.cssText;
}
var _52d=_525.params[name];
_528[name]=str2obj(_52c,_52d);
}
if(!ps){
var _52e=[],_52f=[];
d.query("> script[type^='dojo/']",node).orphan().forEach(function(_530){
var _531=_530.getAttribute("event"),type=_530.getAttribute("type"),nf=d.parser._functionFromScript(_530);
if(_531){
if(type=="dojo/connect"){
_52e.push({event:_531,func:nf});
}else{
_528[_531]=nf;
}
}else{
_52f.push(nf);
}
});
}
var _533=_526["markupFactory"];
if(!_533&&_526["prototype"]){
_533=_526.prototype["markupFactory"];
}
var _534=_533?_533(_528,node,_526):new _526(_528,node);
_522.push(_534);
var _535=node.getAttribute("jsId");
if(_535){
d.setObject(_535,_534);
}
if(!ps){
d.forEach(_52e,function(_536){
d.connect(_534,_536.event,null,_536.func);
});
d.forEach(_52f,function(func){
func.call(_534);
});
}
});
d.forEach(_522,function(_538){
if(_538&&_538.startup&&!_538._started&&(!_538.getParent||!_538.getParent())){
_538.startup();
}
});
return _522;
};
this.parse=function(_539){
var list=d.query(qry,_539);
var _53b=this.instantiate(list);
return _53b;
};
}();
(function(){
var _53c=function(){
if(dojo.config["parseOnLoad"]==true){
dojo.parser.parse();
}
};
if(dojo.exists("dijit.wai.onload")&&(dijit.wai.onload===dojo._loaders[0])){
dojo._loaders.splice(1,0,_53c);
}else{
dojo._loaders.unshift(_53c);
}
})();
dojo.parser._anonCtr=0;
dojo.parser._anon={};
dojo.parser._nameAnonFunc=function(_53d,_53e){
var jpn="$joinpoint";
var nso=(_53e||dojo.parser._anon);
if(dojo.isIE){
var cn=_53d["__dojoNameCache"];
if(cn&&nso[cn]===_53d){
return _53d["__dojoNameCache"];
}
}
var ret="__"+dojo.parser._anonCtr++;
while(typeof nso[ret]!="undefined"){
ret="__"+dojo.parser._anonCtr++;
}
nso[ret]=_53d;
return ret;
};
}
if(!dojo._hasResource["dojo.regexp"]){
dojo._hasResource["dojo.regexp"]=true;
dojo.provide("dojo.regexp");
dojo.regexp.escapeString=function(str,_544){
return str.replace(/([\.$?*!=:|{}\(\)\[\]\\\/^])/g,function(ch){
if(_544&&_544.indexOf(ch)!=-1){
return ch;
}
return "\\"+ch;
});
};
dojo.regexp.buildGroupRE=function(arr,re,_548){
if(!(arr instanceof Array)){
return re(arr);
}
var b=[];
for(var i=0;i<arr.length;i++){
b.push(re(arr[i]));
}
return dojo.regexp.group(b.join("|"),_548);
};
dojo.regexp.group=function(_54b,_54c){
return "("+(_54c?"?:":"")+_54b+")";
};
}
if(!dojo._hasResource["dojo.cookie"]){
dojo._hasResource["dojo.cookie"]=true;
dojo.provide("dojo.cookie");
dojo.cookie=function(name,_54e,_54f){
var c=document.cookie;
if(arguments.length==1){
var _551=c.match(new RegExp("(?:^|; )"+dojo.regexp.escapeString(name)+"=([^;]*)"));
return _551?decodeURIComponent(_551[1]):undefined;
}else{
_54f=_54f||{};
var exp=_54f.expires;
if(typeof exp=="number"){
var d=new Date();
d.setTime(d.getTime()+exp*24*60*60*1000);
exp=_54f.expires=d;
}
if(exp&&exp.toUTCString){
_54f.expires=exp.toUTCString();
}
_54e=encodeURIComponent(_54e);
var _554=name+"="+_54e,_555;
for(_555 in _54f){
_554+="; "+_555;
var _556=_54f[_555];
if(_556!==true){
_554+="="+_556;
}
}
document.cookie=_554;
}
};
dojo.cookie.isSupported=function(){
if(!("cookieEnabled" in navigator)){
this("__djCookieTest__","CookiesAllowed");
navigator.cookieEnabled=this("__djCookieTest__")=="CookiesAllowed";
if(navigator.cookieEnabled){
this("__djCookieTest__","",{expires:-1});
}
}
return navigator.cookieEnabled;
};
}
if(!dojo._hasResource["dijit._base.focus"]){
dojo._hasResource["dijit._base.focus"]=true;
dojo.provide("dijit._base.focus");
dojo.mixin(dijit,{_curFocus:null,_prevFocus:null,isCollapsed:function(){
var _557=dojo.doc;
if(_557.selection){
var s=_557.selection;
if(s.type=="Text"){
return !s.createRange().htmlText.length;
}else{
return !s.createRange().length;
}
}else{
var _559=dojo.global;
var _55a=_559.getSelection();
if(dojo.isString(_55a)){
return !_55a;
}else{
return _55a.isCollapsed||!_55a.toString();
}
}
},getBookmark:function(){
var _55b,_55c=dojo.doc.selection;
if(_55c){
var _55d=_55c.createRange();
if(_55c.type.toUpperCase()=="CONTROL"){
if(_55d.length){
_55b=[];
var i=0,len=_55d.length;
while(i<len){
_55b.push(_55d.item(i++));
}
}else{
_55b=null;
}
}else{
_55b=_55d.getBookmark();
}
}else{
if(window.getSelection){
_55c=dojo.global.getSelection();
if(_55c){
_55d=_55c.getRangeAt(0);
_55b=_55d.cloneRange();
}
}else{
console.warn("No idea how to store the current selection for this browser!");
}
}
return _55b;
},moveToBookmark:function(_560){
var _561=dojo.doc;
if(_561.selection){
var _562;
if(dojo.isArray(_560)){
_562=_561.body.createControlRange();
dojo.forEach(_560,function(n){
_562.addElement(n);
});
}else{
_562=_561.selection.createRange();
_562.moveToBookmark(_560);
}
_562.select();
}else{
var _564=dojo.global.getSelection&&dojo.global.getSelection();
if(_564&&_564.removeAllRanges){
_564.removeAllRanges();
_564.addRange(_560);
}else{
console.warn("No idea how to restore selection for this browser!");
}
}
},getFocus:function(menu,_566){
return {node:menu&&dojo.isDescendant(dijit._curFocus,menu.domNode)?dijit._prevFocus:dijit._curFocus,bookmark:!dojo.withGlobal(_566||dojo.global,dijit.isCollapsed)?dojo.withGlobal(_566||dojo.global,dijit.getBookmark):null,openedForWindow:_566};
},focus:function(_567){
if(!_567){
return;
}
var node="node" in _567?_567.node:_567,_569=_567.bookmark,_56a=_567.openedForWindow;
if(node){
var _56b=(node.tagName.toLowerCase()=="iframe")?node.contentWindow:node;
if(_56b&&_56b.focus){
try{
_56b.focus();
}
catch(e){
}
}
dijit._onFocusNode(node);
}
if(_569&&dojo.withGlobal(_56a||dojo.global,dijit.isCollapsed)){
if(_56a){
_56a.focus();
}
try{
dojo.withGlobal(_56a||dojo.global,dijit.moveToBookmark,null,[_569]);
}
catch(e){
}
}
},_activeStack:[],registerWin:function(_56c){
if(!_56c){
_56c=window;
}
dojo.connect(_56c.document,"onmousedown",function(evt){
dijit._justMouseDowned=true;
setTimeout(function(){
dijit._justMouseDowned=false;
},0);
dijit._onTouchNode(evt.target||evt.srcElement);
});
var doc=_56c.document;
if(doc){
if(dojo.isIE){
doc.attachEvent("onactivate",function(evt){
if(evt.srcElement.tagName.toLowerCase()!="#document"){
dijit._onFocusNode(evt.srcElement);
}
});
doc.attachEvent("ondeactivate",function(evt){
dijit._onBlurNode(evt.srcElement);
});
}else{
doc.addEventListener("focus",function(evt){
dijit._onFocusNode(evt.target);
},true);
doc.addEventListener("blur",function(evt){
dijit._onBlurNode(evt.target);
},true);
}
}
doc=null;
},_onBlurNode:function(node){
dijit._prevFocus=dijit._curFocus;
dijit._curFocus=null;
if(dijit._justMouseDowned){
return;
}
if(dijit._clearActiveWidgetsTimer){
clearTimeout(dijit._clearActiveWidgetsTimer);
}
dijit._clearActiveWidgetsTimer=setTimeout(function(){
delete dijit._clearActiveWidgetsTimer;
dijit._setStack([]);
dijit._prevFocus=null;
},100);
},_onTouchNode:function(node){
if(dijit._clearActiveWidgetsTimer){
clearTimeout(dijit._clearActiveWidgetsTimer);
delete dijit._clearActiveWidgetsTimer;
}
var _575=[];
try{
while(node){
if(node.dijitPopupParent){
node=dijit.byId(node.dijitPopupParent).domNode;
}else{
if(node.tagName&&node.tagName.toLowerCase()=="body"){
if(node===dojo.body()){
break;
}
node=dijit.getDocumentWindow(node.ownerDocument).frameElement;
}else{
var id=node.getAttribute&&node.getAttribute("widgetId");
if(id){
_575.unshift(id);
}
node=node.parentNode;
}
}
}
}
catch(e){
}
dijit._setStack(_575);
},_onFocusNode:function(node){
if(!node){
return;
}
if(node.nodeType==9){
return;
}
if(node.nodeType==9){
var _578=dijit.getDocumentWindow(node).frameElement;
if(!_578){
return;
}
node=_578;
}
dijit._onTouchNode(node);
if(node==dijit._curFocus){
return;
}
if(dijit._curFocus){
dijit._prevFocus=dijit._curFocus;
}
dijit._curFocus=node;
dojo.publish("focusNode",[node]);
},_setStack:function(_579){
var _57a=dijit._activeStack;
dijit._activeStack=_579;
for(var _57b=0;_57b<Math.min(_57a.length,_579.length);_57b++){
if(_57a[_57b]!=_579[_57b]){
break;
}
}
for(var i=_57a.length-1;i>=_57b;i--){
var _57d=dijit.byId(_57a[i]);
if(_57d){
_57d._focused=false;
_57d._hasBeenBlurred=true;
if(_57d._onBlur){
_57d._onBlur();
}
if(_57d._setStateClass){
_57d._setStateClass();
}
dojo.publish("widgetBlur",[_57d]);
}
}
for(i=_57b;i<_579.length;i++){
_57d=dijit.byId(_579[i]);
if(_57d){
_57d._focused=true;
if(_57d._onFocus){
_57d._onFocus();
}
if(_57d._setStateClass){
_57d._setStateClass();
}
dojo.publish("widgetFocus",[_57d]);
}
}
}});
dojo.addOnLoad(dijit.registerWin);
}
if(!dojo._hasResource["dijit._base.manager"]){
dojo._hasResource["dijit._base.manager"]=true;
dojo.provide("dijit._base.manager");
dojo.declare("dijit.WidgetSet",null,{constructor:function(){
this._hash={};
},add:function(_57e){
if(this._hash[_57e.id]){
throw new Error("Tried to register widget with id=="+_57e.id+" but that id is already registered");
}
this._hash[_57e.id]=_57e;
},remove:function(id){
delete this._hash[id];
},forEach:function(func){
for(var id in this._hash){
func(this._hash[id]);
}
},filter:function(_582){
var res=new dijit.WidgetSet();
this.forEach(function(_584){
if(_582(_584)){
res.add(_584);
}
});
return res;
},byId:function(id){
return this._hash[id];
},byClass:function(cls){
return this.filter(function(_587){
return _587.declaredClass==cls;
});
}});
dijit.registry=new dijit.WidgetSet();
dijit._widgetTypeCtr={};
dijit.getUniqueId=function(_588){
var id;
do{
id=_588+"_"+(_588 in dijit._widgetTypeCtr?++dijit._widgetTypeCtr[_588]:dijit._widgetTypeCtr[_588]=0);
}while(dijit.byId(id));
return id;
};
if(dojo.isIE){
dojo.addOnWindowUnload(function(){
dijit.registry.forEach(function(_58a){
_58a.destroy();
});
});
}
dijit.byId=function(id){
return (dojo.isString(id))?dijit.registry.byId(id):id;
};
dijit.byNode=function(node){
return dijit.registry.byId(node.getAttribute("widgetId"));
};
dijit.getEnclosingWidget=function(node){
while(node){
if(node.getAttribute&&node.getAttribute("widgetId")){
return dijit.registry.byId(node.getAttribute("widgetId"));
}
node=node.parentNode;
}
return null;
};
dijit._tabElements={area:true,button:true,input:true,object:true,select:true,textarea:true};
dijit._isElementShown=function(elem){
var _58f=dojo.style(elem);
return (_58f.visibility!="hidden")&&(_58f.visibility!="collapsed")&&(_58f.display!="none")&&(dojo.attr(elem,"type")!="hidden");
};
dijit.isTabNavigable=function(elem){
if(dojo.hasAttr(elem,"disabled")){
return false;
}
var _591=dojo.hasAttr(elem,"tabindex");
var _592=dojo.attr(elem,"tabindex");
if(_591&&_592>=0){
return true;
}
var name=elem.nodeName.toLowerCase();
if(((name=="a"&&dojo.hasAttr(elem,"href"))||dijit._tabElements[name])&&(!_591||_592>=0)){
return true;
}
return false;
};
dijit._getTabNavigable=function(root){
var _595,last,_597,_598,_599,_59a;
var _59b=function(_59c){
dojo.query("> *",_59c).forEach(function(_59d){
var _59e=dijit._isElementShown(_59d);
if(_59e&&dijit.isTabNavigable(_59d)){
var _59f=dojo.attr(_59d,"tabindex");
if(!dojo.hasAttr(_59d,"tabindex")||_59f==0){
if(!_595){
_595=_59d;
}
last=_59d;
}else{
if(_59f>0){
if(!_597||_59f<_598){
_598=_59f;
_597=_59d;
}
if(!_599||_59f>=_59a){
_59a=_59f;
_599=_59d;
}
}
}
}
if(_59e&&_59d.nodeName.toUpperCase()!="SELECT"){
_59b(_59d);
}
});
};
if(dijit._isElementShown(root)){
_59b(root);
}
return {first:_595,last:last,lowest:_597,highest:_599};
};
dijit.getFirstInTabbingOrder=function(root){
var _5a1=dijit._getTabNavigable(dojo.byId(root));
return _5a1.lowest?_5a1.lowest:_5a1.first;
};
dijit.getLastInTabbingOrder=function(root){
var _5a3=dijit._getTabNavigable(dojo.byId(root));
return _5a3.last?_5a3.last:_5a3.highest;
};
dijit.defaultDuration=dojo.config["defaultDuration"]||200;
}
if(!dojo._hasResource["dojo.AdapterRegistry"]){
dojo._hasResource["dojo.AdapterRegistry"]=true;
dojo.provide("dojo.AdapterRegistry");
dojo.AdapterRegistry=function(_5a4){
this.pairs=[];
this.returnWrappers=_5a4||false;
};
dojo.extend(dojo.AdapterRegistry,{register:function(name,_5a6,wrap,_5a8,_5a9){
this.pairs[((_5a9)?"unshift":"push")]([name,_5a6,wrap,_5a8]);
},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 _5af=dojo.global;
var _5b0=dojo.doc;
var w=0,h=0;
var de=_5b0.documentElement;
var dew=de.clientWidth,deh=de.clientHeight;
if(dojo.isMozilla){
var minw,minh,maxw,maxh;
var dbw=_5b0.body.clientWidth;
if(dbw>dew){
minw=dew;
maxw=dbw;
}else{
maxw=dew;
minw=dbw;
}
var dbh=_5b0.body.clientHeight;
if(dbh>deh){
minh=deh;
maxh=dbh;
}else{
maxh=deh;
minh=dbh;
}
w=(maxw>_5af.innerWidth)?minw:maxw;
h=(maxh>_5af.innerHeight)?minh:maxh;
}else{
if(!dojo.isOpera&&_5af.innerWidth){
w=_5af.innerWidth;
h=_5af.innerHeight;
}else{
if(dojo.isIE&&de&&deh){
w=dew;
h=deh;
}else{
if(dojo.body().clientWidth){
w=dojo.body().clientWidth;
h=dojo.body().clientHeight;
}
}
}
}
var _5bc=dojo._docScroll();
return {w:w,h:h,l:_5bc.x,t:_5bc.y};
};
dijit.placeOnScreen=function(node,pos,_5bf,_5c0){
var _5c1=dojo.map(_5bf,function(_5c2){
return {corner:_5c2,pos:pos};
});
return dijit._place(node,_5c1);
};
dijit._place=function(node,_5c4,_5c5){
var view=dijit.getViewport();
if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){
dojo.body().appendChild(node);
}
var best=null;
dojo.some(_5c4,function(_5c8){
var _5c9=_5c8.corner;
var pos=_5c8.pos;
if(_5c5){
_5c5(node,_5c8.aroundCorner,_5c9);
}
var _5cb=node.style;
var _5cc=_5cb.display;
var _5cd=_5cb.visibility;
_5cb.visibility="hidden";
_5cb.display="";
var mb=dojo.marginBox(node);
_5cb.display=_5cc;
_5cb.visibility=_5cd;
var _5cf=(_5c9.charAt(1)=="L"?pos.x:Math.max(view.l,pos.x-mb.w)),_5d0=(_5c9.charAt(0)=="T"?pos.y:Math.max(view.t,pos.y-mb.h)),endX=(_5c9.charAt(1)=="L"?Math.min(view.l+view.w,_5cf+mb.w):pos.x),endY=(_5c9.charAt(0)=="T"?Math.min(view.t+view.h,_5d0+mb.h):pos.y),_5d3=endX-_5cf,_5d4=endY-_5d0,_5d5=(mb.w-_5d3)+(mb.h-_5d4);
if(best==null||_5d5<best.overflow){
best={corner:_5c9,aroundCorner:_5c8.aroundCorner,x:_5cf,y:_5d0,w:_5d3,h:_5d4,overflow:_5d5};
}
return !_5d5;
});
node.style.left=best.x+"px";
node.style.top=best.y+"px";
if(best.overflow&&_5c5){
_5c5(node,best.aroundCorner,best.corner);
}
return best;
};
dijit.placeOnScreenAroundNode=function(node,_5d7,_5d8,_5d9){
_5d7=dojo.byId(_5d7);
var _5da=_5d7.style.display;
_5d7.style.display="";
var _5db=_5d7.offsetWidth;
var _5dc=_5d7.offsetHeight;
var _5dd=dojo.coords(_5d7,true);
_5d7.style.display=_5da;
return dijit._placeOnScreenAroundRect(node,_5dd.x,_5dd.y,_5db,_5dc,_5d8,_5d9);
};
dijit.placeOnScreenAroundRectangle=function(node,_5df,_5e0,_5e1){
return dijit._placeOnScreenAroundRect(node,_5df.x,_5df.y,_5df.width,_5df.height,_5e0,_5e1);
};
dijit._placeOnScreenAroundRect=function(node,x,y,_5e5,_5e6,_5e7,_5e8){
var _5e9=[];
for(var _5ea in _5e7){
_5e9.push({aroundCorner:_5ea,corner:_5e7[_5ea],pos:{x:x+(_5ea.charAt(1)=="L"?0:_5e5),y:y+(_5ea.charAt(0)=="T"?0:_5e6)}});
}
return dijit._place(node,_5e9,_5e8);
};
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,_5f0,_5f1,_5f2){
return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);
};
}
if(!dojo._hasResource["dijit._base.window"]){
dojo._hasResource["dijit._base.window"]=true;
dojo.provide("dijit._base.window");
dijit.getDocumentWindow=function(doc){
if(dojo.isIE&&window!==document.parentWindow&&!doc._parentWindow){
doc.parentWindow.execScript("document._parentWindow = window;","Javascript");
var win=doc._parentWindow;
doc._parentWindow=null;
return win;
}
return doc._parentWindow||doc.parentWindow||doc.defaultView;
};
}
if(!dojo._hasResource["dijit._base.popup"]){
dojo._hasResource["dijit._base.popup"]=true;
dojo.provide("dijit._base.popup");
dijit.popup=new function(){
var _5f5=[],_5f6=1000,_5f7=1;
this.prepare=function(node){
var s=node.style;
s.visibility="hidden";
s.position="absolute";
s.top="-9999px";
if(s.display=="none"){
s.display="";
}
dojo.body().appendChild(node);
};
this.open=function(args){
var _5fb=args.popup,_5fc=args.orient||{"BL":"TL","TL":"BL"},_5fd=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+_5f7++);
var _5ff=dojo.doc.createElement("div");
dijit.setWaiRole(_5ff,"presentation");
_5ff.id=id;
_5ff.className="dijitPopup";
_5ff.style.zIndex=_5f6+_5f5.length;
_5ff.style.left=_5ff.style.top="0px";
_5ff.style.visibility="hidden";
if(args.parent){
_5ff.dijitPopupParent=args.parent.id;
}
dojo.body().appendChild(_5ff);
var s=_5fb.domNode.style;
s.display="";
s.visibility="";
s.position="";
_5ff.appendChild(_5fb.domNode);
var _601=new dijit.BackgroundIframe(_5ff);
var best=_5fd?dijit.placeOnScreenAroundElement(_5ff,_5fd,_5fc,_5fb.orient?dojo.hitch(_5fb,"orient"):null):dijit.placeOnScreen(_5ff,args,_5fc=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"]);
_5ff.style.visibility="visible";
var _603=[];
var _604=function(){
for(var pi=_5f5.length-1;pi>0&&_5f5[pi].parent===_5f5[pi-1].widget;pi--){
}
return _5f5[pi];
};
_603.push(dojo.connect(_5ff,"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 _607=_604();
if(_607&&_607.onCancel){
_607.onCancel();
}
}
}
}));
if(_5fb.onCancel){
_603.push(dojo.connect(_5fb,"onCancel",null,args.onCancel));
}
_603.push(dojo.connect(_5fb,_5fb.onExecute?"onExecute":"onChange",null,function(){
var _608=_604();
if(_608&&_608.onExecute){
_608.onExecute();
}
}));
_5f5.push({wrapper:_5ff,iframe:_601,widget:_5fb,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_603});
if(_5fb.onOpen){
_5fb.onOpen(best);
}
return best;
};
this.close=function(_609){
while(dojo.some(_5f5,function(elem){
return elem.widget==_609;
})){
var top=_5f5.pop(),_60c=top.wrapper,_60d=top.iframe,_60e=top.widget,_60f=top.onClose;
if(_60e.onClose){
_60e.onClose();
}
dojo.forEach(top.handlers,dojo.disconnect);
if(!_60e||!_60e.domNode){
return;
}
this.prepare(_60e.domNode);
_60d.destroy();
dojo._destroyElement(_60c);
if(_60f){
_60f();
}
}
};
}();
dijit._frames=new function(){
var _610=[];
this.pop=function(){
var _611;
if(_610.length){
_611=_610.pop();
_611.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\");'>";
_611=dojo.doc.createElement(html);
}else{
_611=dojo.doc.createElement("iframe");
_611.src="javascript:\"\"";
_611.className="dijitBackgroundIframe";
}
_611.tabIndex=-1;
dojo.body().appendChild(_611);
}
return _611;
};
this.push=function(_614){
_614.style.display="none";
if(dojo.isIE){
_614.style.removeExpression("width");
_614.style.removeExpression("height");
}
_610.push(_614);
};
}();
if(dojo.isIE<7){
dojo.addOnLoad(function(){
var f=dijit._frames;
dojo.forEach([f.pop()],f.push);
});
}
dijit.BackgroundIframe=function(node){
if(!node.id){
throw new Error("no id");
}
if((dojo.isIE&&dojo.isIE<7)||(dojo.isFF&&dojo.isFF<3&&dojo.hasClass(dojo.body(),"dijit_a11y"))){
var _617=dijit._frames.pop();
node.appendChild(_617);
if(dojo.isIE){
_617.style.setExpression("width",dojo._scopeName+".doc.getElementById('"+node.id+"').offsetWidth");
_617.style.setExpression("height",dojo._scopeName+".doc.getElementById('"+node.id+"').offsetHeight");
}
this.iframe=_617;
}
};
dojo.extend(dijit.BackgroundIframe,{destroy:function(){
if(this.iframe){
dijit._frames.push(this.iframe);
delete this.iframe;
}
}});
}
if(!dojo._hasResource["dijit._base.scroll"]){
dojo._hasResource["dijit._base.scroll"]=true;
dojo.provide("dijit._base.scroll");
dijit.scrollIntoView=function(node){
try{
node=dojo.byId(node);
var doc=node.ownerDocument||dojo.doc;
var body=doc.body||dojo.body();
var html=doc.documentElement||body.parentNode;
if((!((dojo.isFF&&dojo.isFF>=3)||dojo.isIE||dojo.isSafari)||node==body||node==html)&&(typeof node.scrollIntoView=="function")){
node.scrollIntoView(false);
return;
}
var ltr=dojo._isBodyLtr();
var _61d=dojo.isIE&&dojo.isIE>=8&&!_61e;
var rtl=!ltr&&!_61d;
var _620=body;
var _61e=doc.compatMode=="BackCompat";
if(_61e){
html._offsetWidth=html._clientWidth=body._offsetWidth=body.clientWidth;
html._offsetHeight=html._clientHeight=body._offsetHeight=body.clientHeight;
}else{
if(dojo.isSafari){
body._offsetWidth=body._clientWidth=html.clientWidth;
body._offsetHeight=body._clientHeight=html.clientHeight;
}else{
_620=html;
}
html._offsetHeight=html.clientHeight;
html._offsetWidth=html.clientWidth;
}
function isFixedPosition(_621){
var ie=dojo.isIE;
return ((ie&&(ie<=6||(ie>=7&&_61e)))?false:(dojo.style(_621,"position").toLowerCase()=="fixed"));
};
function addPseudoAttrs(_623){
var _624=_623.parentNode;
var _625=_623.offsetParent;
if(_625==null||isFixedPosition(_623)){
_625=html;
_624=(_623==body)?html:null;
}
_623._offsetParent=_625;
_623._parent=_624;
var bp=dojo._getBorderExtents(_623);
_623._borderStart={H:(_61d&&!ltr)?(bp.w-bp.l):bp.l,V:bp.t};
_623._borderSize={H:bp.w,V:bp.h};
_623._scrolledAmount={H:_623.scrollLeft,V:_623.scrollTop};
_623._offsetSize={H:_623._offsetWidth||_623.offsetWidth,V:_623._offsetHeight||_623.offsetHeight};
_623._offsetStart={H:(_61d&&!ltr)?_625.clientWidth-_623.offsetLeft-_623._offsetSize.H:_623.offsetLeft,V:_623.offsetTop};
_623._clientSize={H:_623._clientWidth||_623.clientWidth,V:_623._clientHeight||_623.clientHeight};
if(_623!=body&&_623!=html&&_623!=node){
for(var dir in _623._offsetSize){
var _628=_623._offsetSize[dir]-_623._clientSize[dir]-_623._borderSize[dir];
var _629=_623._clientSize[dir]>0&&_628>0;
if(_629){
_623._offsetSize[dir]-=_628;
if(dojo.isIE&&rtl&&dir=="H"){
_623._offsetStart[dir]+=_628;
}
}
}
}
};
var _62a=node;
while(_62a!=null){
if(isFixedPosition(_62a)){
node.scrollIntoView(false);
return;
}
addPseudoAttrs(_62a);
_62a=_62a._parent;
}
if(dojo.isIE&&node._parent){
var _62b=node._offsetParent;
node._offsetStart.H+=_62b._borderStart.H;
node._offsetStart.V+=_62b._borderStart.V;
}
if(dojo.isIE&&dojo.isIE>=7&&_620==html&&rtl&&body._offsetStart&&body._offsetStart.H==0){
var _62c=html.scrollWidth-html._offsetSize.H;
if(_62c>0){
body._offsetStart.H=-_62c;
}
}
if(dojo.isIE&&dojo.isIE<=6&&!_61e){
html._offsetSize.H+=html._borderSize.H;
html._offsetSize.V+=html._borderSize.V;
}
if(rtl&&body._offsetStart&&_620==html&&html._scrolledAmount){
var ofs=body._offsetStart.H;
if(ofs<0){
html._scrolledAmount.H+=ofs;
body._offsetStart.H=0;
}
}
_62a=node;
while(_62a){
var _62e=_62a._parent;
if(!_62e){
break;
}
if(_62e.tagName=="TD"){
var _62f=_62e._parent._parent._parent;
if(_62e!=_62a._offsetParent&&_62e._offsetParent!=_62a._offsetParent){
_62e=_62f;
}
}
var _630=_62a._offsetParent==_62e;
for(var dir in _62a._offsetStart){
var _632=dir=="H"?"V":"H";
if(rtl&&dir=="H"&&(_62e!=html)&&(_62e!=body)&&(dojo.isIE||dojo.isSafari)&&_62e._clientSize.H>0&&_62e.scrollWidth>_62e._clientSize.H){
var _633=_62e.scrollWidth-_62e._clientSize.H;
if(_633>0){
_62e._scrolledAmount.H-=_633;
}
}
if(_62e._offsetParent.tagName=="TABLE"){
if(dojo.isIE){
_62e._offsetStart[dir]-=_62e._offsetParent._borderStart[dir];
_62e._borderStart[dir]=_62e._borderSize[dir]=0;
}else{
_62e._offsetStart[dir]+=_62e._offsetParent._borderStart[dir];
}
}
if(dojo.isIE){
_62e._offsetStart[dir]+=_62e._offsetParent._borderStart[dir];
}
var _634=_62a._offsetStart[dir]-_62e._scrolledAmount[dir]-(_630?0:_62e._offsetStart[dir])-_62e._borderStart[dir];
var _635=_634+_62a._offsetSize[dir]-_62e._offsetSize[dir]+_62e._borderSize[dir];
var _636=(dir=="H")?"scrollLeft":"scrollTop";
var _637=dir=="H"&&rtl;
var _638=_637?-_635:_634;
var _639=_637?-_634:_635;
var _63a=(_638*_639<=0)?0:Math[(_638<0)?"max":"min"](_638,_639);
if(_63a!=0){
var _63b=_62e[_636];
_62e[_636]+=(_637)?-_63a:_63a;
var _63c=_62e[_636]-_63b;
}
if(_630){
_62a._offsetStart[dir]+=_62e._offsetStart[dir];
}
_62a._offsetStart[dir]-=_62e[_636];
}
_62a._parent=_62e._parent;
_62a._offsetParent=_62e._offsetParent;
}
_62e=node;
var next;
while(_62e&&_62e.removeAttribute){
next=_62e.parentNode;
_62e.removeAttribute("_offsetParent");
_62e.removeAttribute("_parent");
_62e=next;
}
}
catch(error){
console.error("scrollIntoView: "+error);
node.scrollIntoView(false);
}
};
}
if(!dojo._hasResource["dijit._base.sniff"]){
dojo._hasResource["dijit._base.sniff"]=true;
dojo.provide("dijit._base.sniff");
(function(){
var d=dojo;
var ie=d.isIE;
var _640=d.isOpera;
var maj=Math.floor;
var ff=d.isFF;
var _643=d.boxModel.replace(/-/,"");
var _644={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_iequirks:ie&&d.isQuirks,dj_opera:_640,dj_opera8:maj(_640)==8,dj_opera9:maj(_640)==9,dj_khtml:d.isKhtml,dj_safari:d.isSafari,dj_gecko:d.isMozilla,dj_ff2:maj(ff)==2,dj_ff3:maj(ff)==3};
_644["dj_"+_643]=true;
var html=dojo.doc.documentElement;
for(var p in _644){
if(_644[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 _644){
if(_644[p]){
html.className+=" "+p+"-rtl";
}
}
}
});
})();
}
if(!dojo._hasResource["dijit._base.typematic"]){
dojo._hasResource["dijit._base.typematic"]=true;
dojo.provide("dijit._base.typematic");
dijit.typematic={_fireEventAndReload:function(){
this._timer=null;
this._callback(++this._count,this._node,this._evt);
this._currentTimeout=(this._currentTimeout<0)?this._initialDelay:((this._subsequentDelay>1)?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay));
this._timer=setTimeout(dojo.hitch(this,"_fireEventAndReload"),this._currentTimeout);
},trigger:function(evt,_649,node,_64b,obj,_64d,_64e){
if(obj!=this._obj){
this.stop();
this._initialDelay=_64e||500;
this._subsequentDelay=_64d||0.9;
this._obj=obj;
this._evt=evt;
this._node=node;
this._currentTimeout=-1;
this._count=-1;
this._callback=dojo.hitch(_649,_64b);
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,_650,_651,_652,_653,_654){
if(_650.keyCode){
_650.charOrCode=_650.keyCode;
dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");
}else{
if(_650.charCode){
_650.charOrCode=String.fromCharCode(_650.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==_650.charOrCode&&(_650.ctrlKey===undefined||_650.ctrlKey==evt.ctrlKey)&&(_650.altKey===undefined||_650.altKey==evt.ctrlKey)&&(_650.shiftKey===undefined||_650.shiftKey==evt.ctrlKey)){
dojo.stopEvent(evt);
dijit.typematic.trigger(_650,_651,node,_652,_650,_653,_654);
}else{
if(dijit.typematic._obj==_650){
dijit.typematic.stop();
}
}
}),dojo.connect(node,"onkeyup",this,function(evt){
if(dijit.typematic._obj==_650){
dijit.typematic.stop();
}
})];
},addMouseListener:function(node,_658,_659,_65a,_65b){
var dc=dojo.connect;
return [dc(node,"mousedown",this,function(evt){
dojo.stopEvent(evt);
dijit.typematic.trigger(evt,_658,node,_659,node,_65a,_65b);
}),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,_658,node,_659,node,_65a,_65b);
setTimeout(dojo.hitch(this,dijit.typematic.stop),50);
}
})];
},addListener:function(_662,_663,_664,_665,_666,_667,_668){
return this.addKeyListener(_663,_664,_665,_666,_667,_668).concat(this.addMouseListener(_662,_665,_666,_667,_668));
}};
}
if(!dojo._hasResource["dijit._base.wai"]){
dojo._hasResource["dijit._base.wai"]=true;
dojo.provide("dijit._base.wai");
dijit.wai={onload:function(){
var div=dojo.doc.createElement("div");
div.id="a11yTestNode";
div.style.cssText="border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif"))+"\");";
dojo.body().appendChild(div);
var cs=dojo.getComputedStyle(div);
if(cs){
var _66b=cs.backgroundImage;
var _66c=(cs.borderTopColor==cs.borderRightColor)||(_66b!=null&&(_66b=="none"||_66b=="url(invalid-url:)"));
dojo[_66c?"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 _66f=this.getWaiRole(elem);
if(role){
return (_66f.indexOf(role)>-1);
}else{
return (_66f.length>0);
}
},getWaiRole:function(elem){
return dojo.trim((dojo.attr(elem,"role")||"").replace(this._XhtmlRoles,"").replace("wairole:",""));
},setWaiRole:function(elem,role){
var _673=dojo.attr(elem,"role")||"";
if(dojo.isFF<3||!this._XhtmlRoles.test(_673)){
dojo.attr(elem,"role",dojo.isFF<3?"wairole:"+role:role);
}else{
if((" "+_673+" ").indexOf(" "+role+" ")<0){
var _674=dojo.trim(_673.replace(this._XhtmlRoles,""));
var _675=dojo.trim(_673.replace(_674,""));
dojo.attr(elem,"role",_675+(_675?" ":"")+role);
}
}
},removeWaiRole:function(elem,role){
var _678=dojo.attr(elem,"role");
if(!_678){
return;
}
if(role){
var _679=dojo.isFF<3?"wairole:"+role:role;
var t=dojo.trim((" "+_678+" ").replace(" "+_679+" "," "));
dojo.attr(elem,"role",t);
}else{
elem.removeAttribute("role");
}
},hasWaiState:function(elem,_67c){
if(dojo.isFF<3){
return elem.hasAttributeNS("http://www.w3.org/2005/07/aaa",_67c);
}else{
return elem.hasAttribute?elem.hasAttribute("aria-"+_67c):!!elem.getAttribute("aria-"+_67c);
}
},getWaiState:function(elem,_67e){
if(dojo.isFF<3){
return elem.getAttributeNS("http://www.w3.org/2005/07/aaa",_67e);
}else{
var _67f=elem.getAttribute("aria-"+_67e);
return _67f?_67f:"";
}
},setWaiState:function(elem,_681,_682){
if(dojo.isFF<3){
elem.setAttributeNS("http://www.w3.org/2005/07/aaa","aaa:"+_681,_682);
}else{
elem.setAttribute("aria-"+_681,_682);
}
},removeWaiState:function(elem,_684){
if(dojo.isFF<3){
elem.removeAttributeNS("http://www.w3.org/2005/07/aaa",_684);
}else{
elem.removeAttribute("aria-"+_684);
}
}});
}
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(_685,_686){
if(_685&&dojo.isFunction(_685._onConnect)){
_685._onConnect(_686);
}
});
dijit._connectOnUseEventHandler=function(_687){
};
dijit._lastKeyDownNode=null;
if(dojo.isIE){
dojo.doc.attachEvent("onkeydown",function(evt){
dijit._lastKeyDownNode=evt.srcElement;
});
}else{
dojo.doc.addEventListener("keydown",function(evt){
dijit._lastKeyDownNode=evt.target;
},true);
}
(function(){
var _68a={};
var _68b=function(dc){
if(!_68a[dc]){
var r=[];
var _68e;
var _68f=dojo.getObject(dc).prototype;
for(var _690 in _68f){
if(dojo.isFunction(_68f[_690])&&(_68e=_690.match(/^_set([a-zA-Z]*)Attr$/))&&_68e[1]){
r.push(_68e[1].charAt(0).toLowerCase()+_68e[1].substr(1));
}
}
_68a[dc]=r;
}
return _68a[dc]||[];
};
dojo.declare("dijit._Widget",null,{id:"",lang:"",dir:"","class":"",style:"",title:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},_deferredConnects:{onClick:"",onDblClick:"",onKeyDown:"",onKeyPress:"",onKeyUp:"",onMouseMove:"",onMouseDown:"",onMouseOut:"",onMouseOver:"",onMouseLeave:"",onMouseEnter:"",onMouseUp:""},onClick:dijit._connectOnUseEventHandler,onDblClick:dijit._connectOnUseEventHandler,onKeyDown:dijit._connectOnUseEventHandler,onKeyPress:dijit._connectOnUseEventHandler,onKeyUp:dijit._connectOnUseEventHandler,onMouseDown:dijit._connectOnUseEventHandler,onMouseMove:dijit._connectOnUseEventHandler,onMouseOut:dijit._connectOnUseEventHandler,onMouseOver:dijit._connectOnUseEventHandler,onMouseLeave:dijit._connectOnUseEventHandler,onMouseEnter:dijit._connectOnUseEventHandler,onMouseUp:dijit._connectOnUseEventHandler,_blankGif:(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif")),postscript:function(_691,_692){
this.create(_691,_692);
},create:function(_693,_694){
this.srcNodeRef=dojo.byId(_694);
this._connects=[];
this._deferredConnects=dojo.clone(this._deferredConnects);
for(var attr in this.attributeMap){
delete this._deferredConnects[attr];
}
for(attr in this._deferredConnects){
if(this[attr]!==dijit._connectOnUseEventHandler){
delete this._deferredConnects[attr];
}
}
if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){
this.id=this.srcNodeRef.id;
}
if(_693){
this.params=_693;
dojo.mixin(this,_693);
}
this.postMixInProperties();
if(!this.id){
this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"));
}
dijit.registry.add(this);
this.buildRendering();
if(this.domNode){
this._applyAttributes();
for(attr in this.params){
this._onConnect(attr);
}
}
if(this.domNode){
this.domNode.setAttribute("widgetId",this.id);
}
this.postCreate();
if(this.srcNodeRef&&!this.srcNodeRef.parentNode){
delete this.srcNodeRef;
}
this._created=true;
},_applyAttributes:function(){
var _696=function(attr,_698){
if((_698.params&&attr in _698.params)||_698[attr]){
_698.attr(attr,_698[attr]);
}
};
for(var attr in this.attributeMap){
_696(attr,this);
}
dojo.forEach(_68b(this.declaredClass),function(a){
if(!(a in this.attributeMap)){
_696(a,this);
}
},this);
},postMixInProperties:function(){
},buildRendering:function(){
this.domNode=this.srcNodeRef||dojo.doc.createElement("div");
},postCreate:function(){
},startup:function(){
this._started=true;
},destroyRecursive:function(_69b){
this.destroyDescendants(_69b);
this.destroy(_69b);
},destroy:function(_69c){
this.uninitialize();
dojo.forEach(this._connects,function(_69d){
dojo.forEach(_69d,dojo.disconnect);
});
dojo.forEach(this._supportingWidgets||[],function(w){
if(w.destroy){
w.destroy();
}
});
this.destroyRendering(_69c);
dijit.registry.remove(this.id);
},destroyRendering:function(_69f){
if(this.bgIframe){
this.bgIframe.destroy(_69f);
delete this.bgIframe;
}
if(this.domNode){
if(!_69f){
dojo._destroyElement(this.domNode);
}
delete this.domNode;
}
if(this.srcNodeRef){
if(!_69f){
dojo._destroyElement(this.srcNodeRef);
}
delete this.srcNodeRef;
}
},destroyDescendants:function(_6a0){
dojo.forEach(this.getDescendants(),function(_6a1){
if(_6a1.destroy){
_6a1.destroy(_6a0);
}
});
},uninitialize:function(){
return false;
},onFocus:function(){
},onBlur:function(){
},_onFocus:function(e){
this.onFocus();
},_onBlur:function(){
this.onBlur();
},_onConnect:function(_6a3){
if(_6a3 in this._deferredConnects){
var _6a4=this[this._deferredConnects[_6a3]||"domNode"];
this.connect(_6a4,_6a3.toLowerCase(),this[_6a3]);
delete this._deferredConnects[_6a3];
}
},_setClassAttr:function(_6a5){
var _6a6=this[this.attributeMap["class"]||"domNode"];
dojo.removeClass(_6a6,this["class"]);
this["class"]=_6a5;
dojo.addClass(_6a6,_6a5);
},_setStyleAttr:function(_6a7){
var _6a8=this[this.attributeMap["style"]||"domNode"];
if(_6a8.style.cssText){
_6a8.style.cssText+="; "+_6a7;
}else{
_6a8.style.cssText=_6a7;
}
this["style"]=_6a7;
},setAttribute:function(attr,_6aa){
dojo.deprecated(this.declaredClass+"::setAttribute() is deprecated. Use attr() instead.","","2.0");
this.attr(attr,_6aa);
},_attrToDom:function(attr,_6ac){
var _6ad=this.attributeMap[attr];
dojo.forEach(dojo.isArray(_6ad)?_6ad:[_6ad],function(_6ae){
var _6af=this[_6ae.node||_6ae||"domNode"];
var type=_6ae.type||"attribute";
switch(type){
case "attribute":
if(dojo.isFunction(_6ac)){
_6ac=dojo.hitch(this,_6ac);
}
if(/^on[A-Z][a-zA-Z]*$/.test(attr)){
attr=attr.toLowerCase();
}
dojo.attr(_6af,attr,_6ac);
break;
case "innerHTML":
_6af.innerHTML=_6ac;
break;
case "class":
dojo.removeClass(_6af,this[attr]);
dojo.addClass(_6af,_6ac);
break;
}
},this);
this[attr]=_6ac;
},attr:function(name,_6b2){
var args=arguments.length;
if(args==1&&!dojo.isString(name)){
for(var x in name){
this.attr(x,name[x]);
}
return this;
}
var _6b5=this._getAttrNames(name);
if(args==2){
if(this[_6b5.s]){
return this[_6b5.s](_6b2)||this;
}else{
if(name in this.attributeMap){
this._attrToDom(name,_6b2);
}
this[name]=_6b2;
}
return this;
}else{
if(this[_6b5.g]){
return this[_6b5.g]();
}else{
return this[name];
}
}
},_attrPairNames:{},_getAttrNames:function(name){
var apn=this._attrPairNames;
if(apn[name]){
return apn[name];
}
var uc=name.charAt(0).toUpperCase()+name.substr(1);
return apn[name]={n:name+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr"};
},toString:function(){
return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";
},getDescendants:function(){
if(this.containerNode){
var list=dojo.query("[widgetId]",this.containerNode);
return list.map(dijit.byNode);
}else{
return [];
}
},nodesWithKeyClick:["input","button"],connect:function(obj,_6bb,_6bc){
var d=dojo;
var dc=d.connect;
var _6bf=[];
if(_6bb=="ondijitclick"){
if(!this.nodesWithKeyClick[obj.tagName.toLowerCase()]){
var m=d.hitch(this,_6bc);
_6bf.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);
}
}));
}
_6bb="onclick";
}
_6bf.push(dc(obj,_6bb,this,_6bc));
this._connects.push(_6bf);
return _6bf;
},disconnect:function(_6c3){
for(var i=0;i<this._connects.length;i++){
if(this._connects[i]==_6c3){
dojo.forEach(_6c3,dojo.disconnect);
this._connects.splice(i,1);
return;
}
}
},isLeftToRight:function(){
return dojo._isBodyLtr();
},isFocusable:function(){
return this.focus&&(dojo.style(this.domNode,"display")!="none");
},placeAt:function(_6c5,_6c6){
if(_6c5["declaredClass"]&&_6c5["addChild"]){
_6c5.addChild(this,_6c6);
}else{
dojo.place(this.domNode,_6c5,_6c6);
}
return this;
}});
})();
}
if(!dojo._hasResource["dojo.string"]){
dojo._hasResource["dojo.string"]=true;
dojo.provide("dojo.string");
dojo.string.rep=function(str,num){
if(num<=0||!str){
return "";
}
var buf=[];
for(;;){
if(num&1){
buf.push(str);
}
if(!(num>>=1)){
break;
}
str+=str;
}
return buf.join("");
};
dojo.string.pad=function(text,size,ch,end){
if(!ch){
ch="0";
}
var out=String(text),pad=dojo.string.rep(ch,Math.ceil((size-out.length)/ch.length));
return end?out+pad:pad+out;
};
dojo.string.substitute=function(_6d0,map,_6d2,_6d3){
_6d3=_6d3||dojo.global;
_6d2=(!_6d2)?function(v){
return v;
}:dojo.hitch(_6d3,_6d2);
return _6d0.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_6d5,key,_6d7){
var _6d8=dojo.getObject(key,false,map);
if(_6d7){
_6d8=dojo.getObject(_6d7,false,_6d3).call(_6d3,_6d8,key);
}
return _6d2(_6d8,key).toString();
});
};
dojo.string.trim=function(str){
str=str.replace(/^\s+/,"");
for(var i=str.length-1;i>=0;i--){
if(/\S/.test(str.charAt(i))){
str=str.substring(0,i+1);
break;
}
}
return str;
};
}
if(!dojo._hasResource["dijit._Templated"]){
dojo._hasResource["dijit._Templated"]=true;
dojo.provide("dijit._Templated");
dojo.declare("dijit._Templated",null,{templateNode:null,templateString:null,templatePath:null,widgetsInTemplate:false,_skipNodeCache:false,_stringRepl:function(tmpl){
var _6dc=this.declaredClass,_6dd=this;
return dojo.string.substitute(tmpl,this,function(_6de,key){
if(key.charAt(0)=="!"){
_6de=_6dd[key.substr(1)];
}
if(typeof _6de=="undefined"){
throw new Error(_6dc+" template:"+key);
}
if(_6de==null){
return "";
}
return key.charAt(0)=="!"?_6de:_6de.toString().replace(/"/g,"&quot;");
},this);
},buildRendering:function(){
var _6e0=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);
var node;
if(dojo.isString(_6e0)){
node=dijit._Templated._createNodesFromText(this._stringRepl(_6e0))[0];
}else{
node=_6e0.cloneNode(true);
}
this.domNode=node;
this._attachTemplateNodes(node);
var _6e2=this.srcNodeRef;
if(_6e2&&_6e2.parentNode){
_6e2.parentNode.replaceChild(node,_6e2);
}
if(this.widgetsInTemplate){
var cw=(this._supportingWidgets=dojo.parser.parse(node));
this._attachTemplateNodes(cw,function(n,p){
return n[p];
});
}
this._fillContent(_6e2);
},_fillContent:function(_6e6){
var dest=this.containerNode;
if(_6e6&&dest){
while(_6e6.hasChildNodes()){
dest.appendChild(_6e6.firstChild);
}
}
},_attachTemplateNodes:function(_6e8,_6e9){
_6e9=_6e9||function(n,p){
return n.getAttribute(p);
};
var _6ec=dojo.isArray(_6e8)?_6e8:(_6e8.all||_6e8.getElementsByTagName("*"));
var x=dojo.isArray(_6e8)?0:-1;
var _6ee={};
for(;x<_6ec.length;x++){
var _6ef=(x==-1)?_6e8:_6ec[x];
if(this.widgetsInTemplate&&_6e9(_6ef,"dojoType")){
continue;
}
var _6f0=_6e9(_6ef,"dojoAttachPoint");
if(_6f0){
var _6f1,_6f2=_6f0.split(/\s*,\s*/);
while((_6f1=_6f2.shift())){
if(dojo.isArray(this[_6f1])){
this[_6f1].push(_6ef);
}else{
this[_6f1]=_6ef;
}
}
}
var _6f3=_6e9(_6ef,"dojoAttachEvent");
if(_6f3){
var _6f4,_6f5=_6f3.split(/\s*,\s*/);
var trim=dojo.trim;
while((_6f4=_6f5.shift())){
if(_6f4){
var _6f7=null;
if(_6f4.indexOf(":")!=-1){
var _6f8=_6f4.split(":");
_6f4=trim(_6f8[0]);
_6f7=trim(_6f8[1]);
}else{
_6f4=trim(_6f4);
}
if(!_6f7){
_6f7=_6f4;
}
this.connect(_6ef,_6f4,_6f7);
}
}
}
var role=_6e9(_6ef,"waiRole");
if(role){
dijit.setWaiRole(_6ef,role);
}
var _6fa=_6e9(_6ef,"waiState");
if(_6fa){
dojo.forEach(_6fa.split(/\s*,\s*/),function(_6fb){
if(_6fb.indexOf("-")!=-1){
var pair=_6fb.split("-");
dijit.setWaiState(_6ef,pair[0],pair[1]);
}
});
}
}
}});
dijit._Templated._templateCache={};
dijit._Templated.getCachedTemplate=function(_6fd,_6fe,_6ff){
var _700=dijit._Templated._templateCache;
var key=_6fe||_6fd;
var _702=_700[key];
if(_702){
if(!_702.ownerDocument||_702.ownerDocument==dojo.doc){
return _702;
}
dojo._destroyElement(_702);
}
if(!_6fe){
_6fe=dijit._Templated._sanitizeTemplateString(dojo._getText(_6fd));
}
_6fe=dojo.string.trim(_6fe);
if(_6ff||_6fe.match(/\$\{([^\}]+)\}/g)){
return (_700[key]=_6fe);
}else{
return (_700[key]=dijit._Templated._createNodesFromText(_6fe)[0]);
}
};
dijit._Templated._sanitizeTemplateString=function(_703){
if(_703){
_703=_703.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");
var _704=_703.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_704){
_703=_704[1];
}
}else{
_703="";
}
return _703;
};
if(dojo.isIE){
dojo.addOnWindowUnload(function(){
var _705=dijit._Templated._templateCache;
for(var key in _705){
var _707=_705[key];
if(!isNaN(_707.nodeType)){
dojo._destroyElement(_707);
}
delete _705[key];
}
});
}
(function(){
var _708={cell:{re:/^<t[dh][\s\r\n>]/i,pre:"<table><tbody><tr>",post:"</tr></tbody></table>"},row:{re:/^<tr[\s\r\n>]/i,pre:"<table><tbody>",post:"</tbody></table>"},section:{re:/^<(thead|tbody|tfoot)[\s\r\n>]/i,pre:"<table>",post:"</table>"}};
var tn;
dijit._Templated._createNodesFromText=function(text){
if(tn&&tn.ownerDocument!=dojo.doc){
dojo._destroyElement(tn);
tn=undefined;
}
if(!tn){
tn=dojo.doc.createElement("div");
tn.style.display="none";
dojo.body().appendChild(tn);
}
var _70b="none";
var _70c=text.replace(/^\s+/,"");
for(var type in _708){
var map=_708[type];
if(map.re.test(_70c)){
_70b=type;
text=map.pre+text+map.post;
break;
}
}
tn.innerHTML=text;
if(tn.normalize){
tn.normalize();
}
var tag={cell:"tr",row:"tbody",section:"table"}[_70b];
var _710=(typeof tag!="undefined")?tn.getElementsByTagName(tag)[0]:tn;
var _711=[];
while(_710.firstChild){
_711.push(_710.removeChild(_710.firstChild));
}
tn.innerHTML="";
return _711;
};
})();
dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});
}
if(!dojo._hasResource["dijit.form._FormWidget"]){
dojo._hasResource["dijit.form._FormWidget"]=true;
dojo.provide("dijit.form._FormWidget");
dojo.declare("dijit.form._FormWidget",[dijit._Widget,dijit._Templated],{baseClass:"",name:"",alt:"",value:"",type:"text",tabIndex:"0",disabled:false,readOnly:false,intermediateChanges:false,attributeMap:dojo.mixin(dojo.clone(dijit._Widget.prototype.attributeMap),{value:"focusNode",disabled:"focusNode",readOnly:"focusNode",id:"focusNode",tabIndex:"focusNode",alt:"focusNode"}),_setDisabledAttr:function(_712){
this.disabled=_712;
dojo.attr(this.focusNode,"disabled",_712);
dijit.setWaiState(this.focusNode,"disabled",_712);
if(_712){
this._hovering=false;
this._active=false;
this.focusNode.removeAttribute("tabIndex");
}else{
this.focusNode.setAttribute("tabIndex",this.tabIndex);
}
this._setStateClass();
},setDisabled:function(_713){
dojo.deprecated("setDisabled("+_713+") is deprecated. Use attr('disabled',"+_713+") instead.","","2.0");
this.attr("disabled",_713);
},_scroll:true,_onFocus:function(e){
if(this._scroll){
dijit.scrollIntoView(this.domNode);
}
this.inherited(arguments);
},_onMouse:function(_715){
var _716=_715.currentTarget;
if(_716&&_716.getAttribute){
this.stateModifier=_716.getAttribute("stateModifier")||"";
}
if(!this.disabled){
switch(_715.type){
case "mouseenter":
case "mouseover":
this._hovering=true;
this._active=this._mouseDown;
break;
case "mouseout":
case "mouseleave":
this._hovering=false;
this._active=false;
break;
case "mousedown":
this._active=true;
this._mouseDown=true;
var _717=this.connect(dojo.body(),"onmouseup",function(){
if(this._mouseDown&&this.isFocusable()){
this.focus();
}
this._active=false;
this._mouseDown=false;
this._setStateClass();
this.disconnect(_717);
});
break;
}
this._setStateClass();
}
},isFocusable:function(){
return !this.disabled&&!this.readOnly&&this.focusNode&&(dojo.style(this.domNode,"display")!="none");
},focus:function(){
dijit.focus(this.focusNode);
},_setStateClass:function(){
var _718=this.baseClass.split(" ");
function multiply(_719){
_718=_718.concat(dojo.map(_718,function(c){
return c+_719;
}),"dijit"+_719);
};
if(this.checked){
multiply("Checked");
}
if(this.state){
multiply(this.state);
}
if(this.selected){
multiply("Selected");
}
if(this.disabled){
multiply("Disabled");
}else{
if(this.readOnly){
multiply("ReadOnly");
}else{
if(this._active){
multiply(this.stateModifier+"Active");
}else{
if(this._focused){
multiply("Focused");
}
if(this._hovering){
multiply(this.stateModifier+"Hover");
}
}
}
}
var tn=this.stateNode||this.domNode,_71c={};
dojo.forEach(tn.className.split(" "),function(c){
_71c[c]=true;
});
if("_stateClasses" in this){
dojo.forEach(this._stateClasses,function(c){
delete _71c[c];
});
}
dojo.forEach(_718,function(c){
_71c[c]=true;
});
var _720=[];
for(var c in _71c){
_720.push(c);
}
tn.className=_720.join(" ");
this._stateClasses=_718;
},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(_724){
},_onChangeActive:false,_handleOnChange:function(_725,_726){
this._lastValue=_725;
if(this._lastValueReported==undefined&&(_726===null||!this._onChangeActive)){
this._resetValue=this._lastValueReported=_725;
}
if((this.intermediateChanges||_726||_726===undefined)&&((typeof _725!=typeof this._lastValueReported)||this.compare(_725,this._lastValueReported)!=0)){
this._lastValueReported=_725;
if(this._onChangeActive){
this.onChange(_725);
}
}
},create:function(){
this.inherited(arguments);
this._onChangeActive=true;
this._setStateClass();
},destroy:function(){
if(this._layoutHackHandle){
clearTimeout(this._layoutHackHandle);
}
this.inherited(arguments);
},setValue:function(_727){
dojo.deprecated("dijit.form._FormWidget:setValue("+_727+") is deprecated.  Use attr('value',"+_727+") instead.","","2.0");
this.attr("value",_727);
},getValue:function(){
dojo.deprecated(this.declaredClass+"::getValue() is deprecated. Use attr('value') instead.","","2.0");
return this.attr("value");
},_layoutHack:function(){
if(dojo.isFF==2&&!this._layoutHackHandle){
var node=this.domNode;
var old=node.style.opacity;
node.style.opacity="0.999";
this._layoutHackHandle=setTimeout(dojo.hitch(this,function(){
this._layoutHackHandle=null;
node.style.opacity=old;
}),0);
}
}});
dojo.declare("dijit.form._FormValueWidget",dijit.form._FormWidget,{attributeMap:dojo.mixin(dojo.clone(dijit.form._FormWidget.prototype.attributeMap),{value:""}),postCreate:function(){
if(dojo.isIE||dojo.isSafari){
this.connect(this.focusNode||this.domNode,"onkeydown",this._onKeyDown);
}
if(this._resetValue===undefined){
this._resetValue=this.value;
}
},_setValueAttr:function(_72a,_72b){
this.value=_72a;
this._handleOnChange(_72a,_72b);
},_getValueAttr:function(_72c){
return this._lastValue;
},undo:function(){
this._setValueAttr(this._lastValueReported,false);
},reset:function(){
this._hasBeenBlurred=false;
this._setValueAttr(this._resetValue,true);
},_valueChanged:function(){
var v=this.attr("value");
var lv=this._lastValueReported;
return ((v!==null&&(v!==undefined)&&v.toString)?v.toString():"")!==((lv!==null&&(lv!==undefined)&&lv.toString)?lv.toString():"");
},_onKeyDown:function(e){
if(e.keyCode==dojo.keys.ESCAPE&&!e.ctrlKey&&!e.altKey){
var te;
if(dojo.isIE){
e.preventDefault();
te=document.createEventObject();
te.keyCode=dojo.keys.ESCAPE;
te.shiftKey=e.shiftKey;
e.srcElement.fireEvent("onkeypress",te);
}else{
if(dojo.isSafari){
te=document.createEvent("Events");
te.initEvent("keypress",true,true);
te.keyCode=dojo.keys.ESCAPE;
te.shiftKey=e.shiftKey;
e.target.dispatchEvent(te);
}
}
}
},_onKeyPress:function(e){
if(e.charOrCode==dojo.keys.ESCAPE&&!e.ctrlKey&&!e.altKey&&this._valueChanged()){
this.undo();
dojo.stopEvent(e);
return false;
}else{
if(this.intermediateChanges){
var _732=this;
setTimeout(function(){
_732._handleOnChange(_732.attr("value"),false);
},0);
}
}
return true;
}});
}
if(!dojo._hasResource["dijit._Container"]){
dojo._hasResource["dijit._Container"]=true;
dojo.provide("dijit._Container");
dojo.declare("dijit._Contained",null,{getParent:function(){
for(var p=this.domNode.parentNode;p;p=p.parentNode){
var id=p.getAttribute&&p.getAttribute("widgetId");
if(id){
var _735=dijit.byId(id);
return _735.isContainer?_735:null;
}
}
return null;
},_getSibling:function(_736){
var node=this.domNode;
do{
node=node[_736+"Sibling"];
}while(node&&node.nodeType!=1);
if(!node){
return null;
}
var id=node.getAttribute("widgetId");
return dijit.byId(id);
},getPreviousSibling:function(){
return this._getSibling("previous");
},getNextSibling:function(){
return this._getSibling("next");
},getIndexInParent:function(){
var p=this.getParent();
if(!p||!p.getIndexOfChild){
return -1;
}
return p.getIndexOfChild(this);
}});
dojo.declare("dijit._Container",null,{isContainer:true,buildRendering:function(){
this.inherited(arguments);
if(!this.containerNode){
this.containerNode=this.domNode;
}
},addChild:function(_73a,_73b){
var _73c=this.containerNode;
if(_73b&&typeof _73b=="number"){
var _73d=dojo.query("> [widgetId]",_73c);
if(_73d&&_73d.length>=_73b){
_73c=_73d[_73b-1];
_73b="after";
}
}
dojo.place(_73a.domNode,_73c,_73b);
if(this._started&&!_73a._started){
_73a.startup();
}
},removeChild:function(_73e){
if(typeof _73e=="number"&&_73e>0){
_73e=this.getChildren()[_73e];
}
if(!_73e||!_73e.domNode){
return;
}
var node=_73e.domNode;
node.parentNode.removeChild(node);
},_nextElement:function(node){
do{
node=node.nextSibling;
}while(node&&node.nodeType!=1);
return node;
},_firstElement:function(node){
node=node.firstChild;
if(node&&node.nodeType!=1){
node=this._nextElement(node);
}
return node;
},getChildren:function(){
return dojo.query("> [widgetId]",this.containerNode).map(dijit.byNode);
},hasChildren:function(){
return !!this._firstElement(this.containerNode);
},destroyDescendants:function(_742){
dojo.forEach(this.getChildren(),function(_743){
_743.destroyRecursive(_742);
});
},_getSiblingOfChild:function(_744,dir){
var node=_744.domNode;
var _747=(dir>0?"nextSibling":"previousSibling");
do{
node=node[_747];
}while(node&&(node.nodeType!=1||!dijit.byNode(node)));
return node?dijit.byNode(node):null;
},getIndexOfChild:function(_748){
var _749=this.getChildren();
for(var i=0,c;c=_749[i];i++){
if(c==_748){
return i;
}
}
return -1;
}});
dojo.declare("dijit._KeyNavContainer",[dijit._Container],{_keyNavCodes:{},connectKeyNavHandlers:function(_74c,_74d){
var _74e=this._keyNavCodes={};
var prev=dojo.hitch(this,this.focusPrev);
var next=dojo.hitch(this,this.focusNext);
dojo.forEach(_74c,function(code){
_74e[code]=prev;
});
dojo.forEach(_74d,function(code){
_74e[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(_753,_754){
dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);
this._startupChild(_753);
},focus:function(){
this.focusFirstChild();
},focusFirstChild:function(){
this.focusChild(this._getFirstFocusableChild());
},focusNext:function(){
if(this.focusedChild&&this.focusedChild.hasNextFocalNode&&this.focusedChild.hasNextFocalNode()){
this.focusedChild.focusNext();
return;
}
var _755=this._getNextFocusableChild(this.focusedChild,1);
if(_755.getFocalNodes){
this.focusChild(_755,_755.getFocalNodes()[0]);
}else{
this.focusChild(_755);
}
},focusPrev:function(){
if(this.focusedChild&&this.focusedChild.hasPrevFocalNode&&this.focusedChild.hasPrevFocalNode()){
this.focusedChild.focusPrev();
return;
}
var _756=this._getNextFocusableChild(this.focusedChild,-1);
if(_756.getFocalNodes){
var _757=_756.getFocalNodes();
this.focusChild(_756,_757[_757.length-1]);
}else{
this.focusChild(_756);
}
},focusChild:function(_758,node){
if(_758){
if(this.focusedChild&&_758!==this.focusedChild){
this._onChildBlur(this.focusedChild);
}
this.focusedChild=_758;
if(node&&_758.focusFocalNode){
_758.focusFocalNode(node);
}else{
_758.focus();
}
}
},_startupChild:function(_75a){
if(_75a.getFocalNodes){
dojo.forEach(_75a.getFocalNodes(),function(node){
dojo.attr(node,"tabindex",-1);
this._connectNode(node);
},this);
}else{
var node=_75a.focusNode||_75a.domNode;
if(_75a.isFocusable()){
dojo.attr(node,"tabindex",-1);
}
this._connectNode(node);
}
},_connectNode:function(node){
this.connect(node,"onfocus","_onNodeFocus");
this.connect(node,"onblur","_onNodeBlur");
},_onContainerFocus:function(evt){
if(evt.target===this.domNode){
this.focusFirstChild();
}
},_onContainerKeypress:function(evt){
if(evt.ctrlKey||evt.altKey){
return;
}
var func=this._keyNavCodes[evt.charOrCode];
if(func){
func();
dojo.stopEvent(evt);
}
},_onNodeFocus:function(evt){
dojo.attr(this.domNode,"tabindex",-1);
var _762=dijit.getEnclosingWidget(evt.target);
if(_762&&_762.isFocusable()){
this.focusedChild=_762;
}
dojo.stopEvent(evt);
},_onNodeBlur:function(evt){
if(this.tabIndex){
dojo.attr(this.domNode,"tabindex",this.tabIndex);
}
dojo.stopEvent(evt);
},_onChildBlur:function(_764){
},_getFirstFocusableChild:function(){
return this._getNextFocusableChild(null,1);
},_getNextFocusableChild:function(_765,dir){
if(_765){
_765=this._getSiblingOfChild(_765,dir);
}
var _767=this.getChildren();
for(var i=0;i<_767.length;i++){
if(!_765){
_765=_767[(dir>0)?0:(_767.length-1)];
}
if(_765.isFocusable()){
return _765;
}
_765=this._getSiblingOfChild(_765,dir);
}
return null;
}});
}
if(!dojo._hasResource["dojo.dnd.common"]){
dojo._hasResource["dojo.dnd.common"]=true;
dojo.provide("dojo.dnd.common");
dojo.dnd._isMac=navigator.appVersion.indexOf("Macintosh")>=0;
dojo.dnd._copyKey=dojo.dnd._isMac?"metaKey":"ctrlKey";
dojo.dnd.getCopyKeyState=function(e){
return e[dojo.dnd._copyKey];
};
dojo.dnd._uniqueId=0;
dojo.dnd.getUniqueId=function(){
var id;
do{
id=dojo._scopeName+"Unique"+(++dojo.dnd._uniqueId);
}while(dojo.byId(id));
return id;
};
dojo.dnd._empty={};
dojo.dnd.isFormElement=function(e){
var t=e.target;
if(t.nodeType==3){
t=t.parentNode;
}
return " button textarea input select option ".indexOf(" "+t.tagName.toLowerCase()+" ")>=0;
};
}
if(!dojo._hasResource["dojo.dnd.autoscroll"]){
dojo._hasResource["dojo.dnd.autoscroll"]=true;
dojo.provide("dojo.dnd.autoscroll");
dojo.dnd.getViewport=function(){
var d=dojo.doc,dd=d.documentElement,w=window,b=dojo.body();
if(dojo.isMozilla){
return {w:dd.clientWidth,h:w.innerHeight};
}else{
if(!dojo.isOpera&&w.innerWidth){
return {w:w.innerWidth,h:w.innerHeight};
}else{
if(!dojo.isOpera&&dd&&dd.clientWidth){
return {w:dd.clientWidth,h:dd.clientHeight};
}else{
if(b.clientWidth){
return {w:b.clientWidth,h:b.clientHeight};
}
}
}
}
return null;
};
dojo.dnd.V_TRIGGER_AUTOSCROLL=32;
dojo.dnd.H_TRIGGER_AUTOSCROLL=32;
dojo.dnd.V_AUTOSCROLL_VALUE=16;
dojo.dnd.H_AUTOSCROLL_VALUE=16;
dojo.dnd.autoScroll=function(e){
var v=dojo.dnd.getViewport(),dx=0,dy=0;
if(e.clientX<dojo.dnd.H_TRIGGER_AUTOSCROLL){
dx=-dojo.dnd.H_AUTOSCROLL_VALUE;
}else{
if(e.clientX>v.w-dojo.dnd.H_TRIGGER_AUTOSCROLL){
dx=dojo.dnd.H_AUTOSCROLL_VALUE;
}
}
if(e.clientY<dojo.dnd.V_TRIGGER_AUTOSCROLL){
dy=-dojo.dnd.V_AUTOSCROLL_VALUE;
}else{
if(e.clientY>v.h-dojo.dnd.V_TRIGGER_AUTOSCROLL){
dy=dojo.dnd.V_AUTOSCROLL_VALUE;
}
}
window.scrollBy(dx,dy);
};
dojo.dnd._validNodes={"div":1,"p":1,"td":1};
dojo.dnd._validOverflow={"auto":1,"scroll":1};
dojo.dnd.autoScrollNodes=function(e){
for(var n=e.target;n;){
if(n.nodeType==1&&(n.tagName.toLowerCase() in dojo.dnd._validNodes)){
var s=dojo.getComputedStyle(n);
if(s.overflow.toLowerCase() in dojo.dnd._validOverflow){
var b=dojo._getContentBox(n,s),t=dojo._abs(n,true);
var w=Math.min(dojo.dnd.H_TRIGGER_AUTOSCROLL,b.w/2),h=Math.min(dojo.dnd.V_TRIGGER_AUTOSCROLL,b.h/2),rx=e.pageX-t.x,ry=e.pageY-t.y,dx=0,dy=0;
if(dojo.isSafari||dojo.isOpera){
rx+=dojo.body().scrollLeft,ry+=dojo.body().scrollTop;
}
if(rx>0&&rx<b.w){
if(rx<w){
dx=-w;
}else{
if(rx>b.w-w){
dx=w;
}
}
}
if(ry>0&&ry<b.h){
if(ry<h){
dy=-h;
}else{
if(ry>b.h-h){
dy=h;
}
}
}
var _780=n.scrollLeft,_781=n.scrollTop;
n.scrollLeft=n.scrollLeft+dx;
n.scrollTop=n.scrollTop+dy;
if(_780!=n.scrollLeft||_781!=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,_787=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),_787];
if(h&&h.onMoveStart){
h.onMoveStart(this);
}
},onMouseMove:function(e){
dojo.dnd.autoScroll(e);
var m=this.marginBox;
this.host.onMove(this,{l:m.l+e.pageX,t:m.t+e.pageY});
dojo.stopEvent(e);
},onMouseUp:function(e){
if(dojo.isSafari&&dojo.dnd._isMac&&this.mouseButton==2?e.button==0:this.mouseButton==e.button){
this.destroy();
}
dojo.stopEvent(e);
},onFirstMove:function(){
var s=this.node.style,l,t,h=this.host;
switch(s.position){
case "relative":
case "absolute":
l=Math.round(parseFloat(s.left));
t=Math.round(parseFloat(s.top));
break;
default:
s.position="absolute";
var m=dojo.marginBox(this.node);
var b=dojo.doc.body;
var bs=dojo.getComputedStyle(b);
var bm=dojo._getMarginBox(b,bs);
var bc=dojo._getContentBox(b,bs);
l=m.l-(bc.l-bm.l);
t=m.t-(bc.t-bm.t);
break;
}
this.marginBox.l=l-this.marginBox.l;
this.marginBox.t=t-this.marginBox.t;
if(h&&h.onFirstMove){
h.onFirstMove(this);
}
dojo.disconnect(this.events.pop());
},destroy:function(){
dojo.forEach(this.events,dojo.disconnect);
var h=this.host;
if(h&&h.onMoveStop){
h.onMoveStop(this);
}
this.events=this.node=this.host=null;
}});
}
if(!dojo._hasResource["dojo.dnd.Moveable"]){
dojo._hasResource["dojo.dnd.Moveable"]=true;
dojo.provide("dojo.dnd.Moveable");
dojo.declare("dojo.dnd.Moveable",null,{handle:"",delay:0,skip:false,constructor:function(node,_796){
this.node=dojo.byId(node);
if(!_796){
_796={};
}
this.handle=_796.handle?dojo.byId(_796.handle):null;
if(!this.handle){
this.handle=this.node;
}
this.delay=_796.delay>0?_796.delay:0;
this.skip=_796.skip;
this.mover=_796.mover?_796.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(_797,node){
return new dojo.dnd.Moveable(node,_797);
},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(_79f){
dojo.publish("/dnd/move/start",[_79f]);
dojo.addClass(dojo.body(),"dojoMove");
dojo.addClass(this.node,"dojoMoveItem");
},onMoveStop:function(_7a0){
dojo.publish("/dnd/move/stop",[_7a0]);
dojo.removeClass(dojo.body(),"dojoMove");
dojo.removeClass(this.node,"dojoMoveItem");
},onFirstMove:function(_7a1){
},onMove:function(_7a2,_7a3){
this.onMoving(_7a2,_7a3);
var s=_7a2.node.style;
s.left=_7a3.l+"px";
s.top=_7a3.t+"px";
this.onMoved(_7a2,_7a3);
},onMoving:function(_7a5,_7a6){
},onMoved:function(_7a7,_7a8){
}});
}
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(_7a9,node){
return new dojo.dnd.move.constrainedMoveable(node,_7a9);
},constructor:function(node,_7ac){
if(!_7ac){
_7ac={};
}
this.constraints=_7ac.constraints;
this.within=_7ac.within;
},onFirstMove:function(_7ad){
var c=this.constraintBox=this.constraints.call(this,_7ad);
c.r=c.l+c.w;
c.b=c.t+c.h;
if(this.within){
var mb=dojo.marginBox(_7ad.node);
c.r-=mb.w;
c.b-=mb.h;
}
},onMove:function(_7b0,_7b1){
var c=this.constraintBox,s=_7b0.node.style;
s.left=(_7b1.l<c.l?c.l:c.r<_7b1.l?c.r:_7b1.l)+"px";
s.top=(_7b1.t<c.t?c.t:c.b<_7b1.t?c.b:_7b1.t)+"px";
}});
dojo.declare("dojo.dnd.move.boxConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{box:{},markupFactory:function(_7b4,node){
return new dojo.dnd.move.boxConstrainedMoveable(node,_7b4);
},constructor:function(node,_7b7){
var box=_7b7&&_7b7.box;
this.constraints=function(){
return box;
};
}});
dojo.declare("dojo.dnd.move.parentConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(_7b9,node){
return new dojo.dnd.move.parentConstrainedMoveable(node,_7b9);
},constructor:function(node,_7bc){
var area=_7bc&&_7bc.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,_7c3){
dojo.deprecated("dojo.dnd.move.constrainedMover, use dojo.dnd.move.constrainedMoveable instead");
var _7c4=function(node,e,_7c7){
dojo.dnd.Mover.call(this,node,e,_7c7);
};
dojo.extend(_7c4,dojo.dnd.Mover.prototype);
dojo.extend(_7c4,{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(_7c3){
var mb=dojo.marginBox(this.node);
c.r-=mb.w;
c.b-=mb.h;
}
}});
return _7c4;
};
dojo.dnd.move.boxConstrainedMover=function(box,_7d0){
dojo.deprecated("dojo.dnd.move.boxConstrainedMover, use dojo.dnd.move.boxConstrainedMoveable instead");
return dojo.dnd.move.constrainedMover(function(){
return box;
},_7d0);
};
dojo.dnd.move.parentConstrainedMover=function(area,_7d2){
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,_7d2);
};
dojo.dnd.constrainedMover=dojo.dnd.move.constrainedMover;
dojo.dnd.boxConstrainedMover=dojo.dnd.move.boxConstrainedMover;
dojo.dnd.parentConstrainedMover=dojo.dnd.move.parentConstrainedMover;
}
if(!dojo._hasResource["dijit.form.Button"]){
dojo._hasResource["dijit.form.Button"]=true;
dojo.provide("dijit.form.Button");
dojo.declare("dijit.form.Button",dijit.form._FormWidget,{label:"",showLabel:true,iconClass:"",type:"button",baseClass:"dijitButton",templateString:"<span class=\"dijit dijitReset dijitLeft dijitInline\"\r\n\tdojoAttachEvent=\"ondijitclick:_onButtonClick,onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\"\r\n\t><span class=\"dijitReset dijitRight dijitInline\"\r\n\t\t><span class=\"dijitReset dijitInline dijitButtonNode\"\r\n\t\t\t><button class=\"dijitReset dijitStretch dijitButtonContents\"\r\n\t\t\t\tdojoAttachPoint=\"titleNode,focusNode\" \r\n\t\t\t\tname=\"${name}\" type=\"${type}\" waiRole=\"button\" waiState=\"labelledby-${id}_label\"\r\n\t\t\t\t><span class=\"dijitReset dijitInline\" dojoAttachPoint=\"iconNode\" \r\n\t\t\t\t\t><span class=\"dijitReset dijitToggleButtonIconChar\">&#10003;</span \r\n\t\t\t\t></span \r\n\t\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\" \r\n\t\t\t\t\tid=\"${id}_label\"  \r\n\t\t\t\t\tdojoAttachPoint=\"containerNode\"\r\n\t\t\t\t></span\r\n\t\t\t></button\r\n\t\t></span\r\n\t></span\r\n></span>\r\n",attributeMap:dojo.mixin(dojo.clone(dijit.form._FormWidget.prototype.attributeMap),{label:{node:"containerNode",type:"innerHTML"},iconClass:{node:"iconNode",type:"class"}}),_onClick:function(e){
if(this.disabled||this.readOnly){
return false;
}
this._clicked();
return this.onClick(e);
},_onButtonClick:function(e){
if(e.type!="click"&&!(this.type=="submit"||this.type=="reset")){
dojo.stopEvent(e);
}
if(this._onClick(e)===false){
e.preventDefault();
}else{
if(this.type=="submit"&&!this.focusNode.form){
for(var node=this.domNode;node.parentNode;node=node.parentNode){
var _7db=dijit.byNode(node);
if(_7db&&typeof _7db._onSubmit=="function"){
_7db._onSubmit(e);
break;
}
}
}
}
},_fillContent:function(_7dc){
if(_7dc&&!("label" in this.params)){
this.attr("label",_7dc.innerHTML);
}
},postCreate:function(){
if(this.showLabel==false){
dojo.addClass(this.containerNode,"dijitDisplayNone");
}
dojo.setSelectable(this.focusNode,false);
this.inherited(arguments);
},onClick:function(e){
return true;
},_clicked:function(e){
},setLabel:function(_7df){
dojo.deprecated("dijit.form.Button.setLabel() is deprecated.  Use attr('label', ...) instead.","","2.0");
this.attr("label",_7df);
},_setLabelAttr:function(_7e0){
this.containerNode.innerHTML=this.label=_7e0;
this._layoutHack();
if(this.showLabel==false&&!this.params.title){
this.titleNode.title=dojo.trim(this.containerNode.innerText||this.containerNode.textContent||"");
}
}});
dojo.declare("dijit.form.DropDownButton",[dijit.form.Button,dijit._Container],{baseClass:"dijitDropDownButton",templateString:"<span class=\"dijit dijitReset dijitLeft dijitInline\"\r\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse,onclick:_onDropDownClick,onkeydown:_onDropDownKeydown,onblur:_onDropDownBlur,onkeypress:_onKey\"\r\n\t><span class='dijitReset dijitRight dijitInline'\r\n\t\t><span class='dijitReset dijitInline dijitButtonNode'\r\n\t\t\t><button class=\"dijitReset dijitStretch dijitButtonContents\" \r\n\t\t\t\ttype=\"${type}\" name=\"${name}\"\r\n\t\t\t\tdojoAttachPoint=\"focusNode,titleNode\" \r\n\t\t\t\twaiRole=\"button\" waiState=\"haspopup-true,labelledby-${id}_label\"\r\n\t\t\t\t><span class=\"dijitReset dijitInline\" \r\n\t\t\t\t\tdojoAttachPoint=\"iconNode\"\r\n\t\t\t\t></span\r\n\t\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"  \r\n\t\t\t\t\tdojoAttachPoint=\"containerNode,popupStateNode\" \r\n\t\t\t\t\tid=\"${id}_label\"\r\n\t\t\t\t></span\r\n\t\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonInner\">&thinsp;</span\r\n\t\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonChar\">&#9660;</span\r\n\t\t\t></button\r\n\t\t></span\r\n\t></span\r\n></span>\r\n",_fillContent:function(){
if(this.srcNodeRef){
var _7e1=dojo.query("*",this.srcNodeRef);
dijit.form.DropDownButton.superclass._fillContent.call(this,_7e1[0]);
this.dropDownContainer=this.srcNodeRef;
}
},startup:function(){
if(this._started){
return;
}
if(!this.dropDown){
var _7e2=dojo.query("[widgetId]",this.dropDownContainer)[0];
this.dropDown=dijit.byNode(_7e2);
delete this.dropDownContainer;
}
dijit.popup.prepare(this.dropDown.domNode);
this.inherited(arguments);
},destroyDescendants:function(){
if(this.dropDown){
this.dropDown.destroyRecursive();
delete this.dropDown;
}
this.inherited(arguments);
},_onArrowClick:function(e){
if(this.disabled||this.readOnly){
return;
}
this._toggleDropDown();
},_onDropDownClick:function(e){
var _7e5=dojo.isFF&&dojo.isFF<3&&navigator.appVersion.indexOf("Macintosh")!=-1;
if(!_7e5||e.detail!=0||this._seenKeydown){
this._onArrowClick(e);
}
this._seenKeydown=false;
},_onDropDownKeydown:function(e){
this._seenKeydown=true;
},_onDropDownBlur:function(e){
this._seenKeydown=false;
},_onKey:function(e){
if(this.disabled||this.readOnly){
return;
}
if(e.charOrCode==dojo.keys.DOWN_ARROW){
if(!this.dropDown||this.dropDown.domNode.style.visibility=="hidden"){
dojo.stopEvent(e);
this._toggleDropDown();
}
}
},_onBlur:function(){
this._closeDropDown();
this.inherited(arguments);
},_toggleDropDown:function(){
if(this.disabled||this.readOnly){
return;
}
dijit.focus(this.popupStateNode);
var _7e9=this.dropDown;
if(!_7e9){
return;
}
if(!this._opened){
if(_7e9.href&&!_7e9.isLoaded){
var self=this;
var _7eb=dojo.connect(_7e9,"onLoad",function(){
dojo.disconnect(_7eb);
self._openDropDown();
});
_7e9._loadCheck(true);
return;
}else{
this._openDropDown();
}
}else{
this._closeDropDown();
}
},_openDropDown:function(){
var _7ec=this.dropDown;
var _7ed=_7ec.domNode.style.width;
var self=this;
dijit.popup.open({parent:this,popup:_7ec,around:this.domNode,orient:this.isLeftToRight()?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"},onExecute:function(){
self._closeDropDown(true);
},onCancel:function(){
self._closeDropDown(true);
},onClose:function(){
_7ec.domNode.style.width=_7ed;
self.popupStateNode.removeAttribute("popupActive");
self._opened=false;
}});
if(this.domNode.offsetWidth>_7ec.domNode.offsetWidth){
var _7ef=null;
if(!this.isLeftToRight()){
_7ef=_7ec.domNode.parentNode;
var _7f0=_7ef.offsetLeft+_7ef.offsetWidth;
}
dojo.marginBox(_7ec.domNode,{w:this.domNode.offsetWidth});
if(_7ef){
_7ef.style.left=_7f0-this.domNode.offsetWidth+"px";
}
}
this.popupStateNode.setAttribute("popupActive","true");
this._opened=true;
if(_7ec.focus){
_7ec.focus();
}
},_closeDropDown:function(_7f1){
if(this._opened){
dijit.popup.close(this.dropDown);
if(_7f1){
this.focus();
}
this._opened=false;
}
}});
dojo.declare("dijit.form.ComboButton",dijit.form.DropDownButton,{templateString:"<table class='dijit dijitReset dijitInline dijitLeft'\r\n\tcellspacing='0' cellpadding='0' waiRole=\"presentation\"\r\n\t><tbody waiRole=\"presentation\"><tr waiRole=\"presentation\"\r\n\t\t><td class=\"dijitReset dijitStretch dijitButtonContents dijitButtonNode\"\r\n\t\t\tdojoAttachEvent=\"ondijitclick:_onButtonClick,onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\"  dojoAttachPoint=\"titleNode\"\r\n\t\t\twaiRole=\"button\" waiState=\"labelledby-${id}_label\"\r\n\t\t\t><div class=\"dijitReset dijitInline\" dojoAttachPoint=\"iconNode\" waiRole=\"presentation\"></div\r\n\t\t\t><div class=\"dijitReset dijitInline dijitButtonText\" id=\"${id}_label\" dojoAttachPoint=\"containerNode\" waiRole=\"presentation\"></div\r\n\t\t></td\r\n\t\t><td class='dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton'\r\n\t\t\tdojoAttachPoint=\"popupStateNode,focusNode\"\r\n\t\t\tdojoAttachEvent=\"ondijitclick:_onArrowClick, onkeypress:_onKey,onmouseenter:_onMouse,onmouseleave:_onMouse\"\r\n\t\t\tstateModifier=\"DownArrow\"\r\n\t\t\ttitle=\"${optionsTitle}\" name=\"${name}\"\r\n\t\t\twaiRole=\"button\" waiState=\"haspopup-true\"\r\n\t\t\t><div class=\"dijitReset dijitArrowButtonInner\" waiRole=\"presentation\">&thinsp;</div\r\n\t\t\t><div class=\"dijitReset dijitArrowButtonChar\" waiRole=\"presentation\">&#9660;</div\r\n\t\t></td\r\n\t></tr></tbody\r\n></table>\r\n",attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{id:"",name:"",tabIndex:["focusNode","titleNode"]}),optionsTitle:"",baseClass:"dijitComboButton",_focusedNode:null,postCreate:function(){
this.inherited(arguments);
this._focalNodes=[this.titleNode,this.popupStateNode];
dojo.forEach(this._focalNodes,dojo.hitch(this,function(node){
if(dojo.isIE){
this.connect(node,"onactivate",this._onNodeFocus);
this.connect(node,"ondeactivate",this._onNodeBlur);
}else{
this.connect(node,"onfocus",this._onNodeFocus);
this.connect(node,"onblur",this._onNodeBlur);
}
}));
},focusFocalNode:function(node){
this._focusedNode=node;
dijit.focus(node);
},hasNextFocalNode:function(){
return this._focusedNode!==this.getFocalNodes()[1];
},focusNext:function(){
this._focusedNode=this.getFocalNodes()[this._focusedNode?1:0];
dijit.focus(this._focusedNode);
},hasPrevFocalNode:function(){
return this._focusedNode!==this.getFocalNodes()[0];
},focusPrev:function(){
this._focusedNode=this.getFocalNodes()[this._focusedNode?0:1];
dijit.focus(this._focusedNode);
},getFocalNodes:function(){
return this._focalNodes;
},_onNodeFocus:function(evt){
this._focusedNode=evt.currentTarget;
var fnc=this._focusedNode==this.focusNode?"dijitDownArrowButtonFocused":"dijitButtonContentsFocused";
dojo.addClass(this._focusedNode,fnc);
},_onNodeBlur:function(evt){
var fnc=evt.currentTarget==this.focusNode?"dijitDownArrowButtonFocused":"dijitButtonContentsFocused";
dojo.removeClass(evt.currentTarget,fnc);
},_onBlur:function(){
this.inherited(arguments);
this._focusedNode=null;
}});
dojo.declare("dijit.form.ToggleButton",dijit.form.Button,{baseClass:"dijitToggleButton",checked:false,attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{checked:"focusNode"}),_clicked:function(evt){
this.attr("checked",!this.checked);
},_setCheckedAttr:function(_7f9){
this.checked=_7f9;
dojo.attr(this.focusNode||this.domNode,"checked",_7f9);
dijit.setWaiState(this.focusNode||this.domNode,"pressed",_7f9);
this._setStateClass();
this._handleOnChange(_7f9,true);
},setChecked:function(_7fa){
dojo.deprecated("setChecked("+_7fa+") is deprecated. Use attr('checked',"+_7fa+") instead.","","2.0");
this.attr("checked",_7fa);
},reset:function(){
this._hasBeenBlurred=false;
this.attr("checked",this.params.checked||false);
}});
}
if(!dojo._hasResource["dojo.i18n"]){
dojo._hasResource["dojo.i18n"]=true;
dojo.provide("dojo.i18n");
dojo.i18n.getLocalization=function(_7fb,_7fc,_7fd){
_7fd=dojo.i18n.normalizeLocale(_7fd);
var _7fe=_7fd.split("-");
var _7ff=[_7fb,"nls",_7fc].join(".");
var _800=dojo._loadedModules[_7ff];
if(_800){
var _801;
for(var i=_7fe.length;i>0;i--){
var loc=_7fe.slice(0,i).join("_");
if(_800[loc]){
_801=_800[loc];
break;
}
}
if(!_801){
_801=_800.ROOT;
}
if(_801){
var _804=function(){
};
_804.prototype=_801;
return new _804();
}
}
throw new Error("Bundle not found: "+_7fc+" in "+_7fb+" , locale="+_7fd);
};
dojo.i18n.normalizeLocale=function(_805){
var _806=_805?_805.toLowerCase():dojo.locale;
if(_806=="root"){
_806="ROOT";
}
return _806;
};
dojo.i18n._requireLocalization=function(_807,_808,_809,_80a){
var _80b=dojo.i18n.normalizeLocale(_809);
var _80c=[_807,"nls",_808].join(".");
var _80d="";
if(_80a){
var _80e=_80a.split(",");
for(var i=0;i<_80e.length;i++){
if(_80b["indexOf"](_80e[i])==0){
if(_80e[i].length>_80d.length){
_80d=_80e[i];
}
}
}
if(!_80d){
_80d="ROOT";
}
}
var _810=_80a?_80d:_80b;
var _811=dojo._loadedModules[_80c];
var _812=null;
if(_811){
if(dojo.config.localizationComplete&&_811._built){
return;
}
var _813=_810.replace(/-/g,"_");
var _814=_80c+"."+_813;
_812=dojo._loadedModules[_814];
}
if(!_812){
_811=dojo["provide"](_80c);
var syms=dojo._getModuleSymbols(_807);
var _816=syms.concat("nls").join("/");
var _817;
dojo.i18n._searchLocalePath(_810,_80a,function(loc){
var _819=loc.replace(/-/g,"_");
var _81a=_80c+"."+_819;
var _81b=false;
if(!dojo._loadedModules[_81a]){
dojo["provide"](_81a);
var _81c=[_816];
if(loc!="ROOT"){
_81c.push(loc);
}
_81c.push(_808);
var _81d=_81c.join("/")+".js";
_81b=dojo._loadPath(_81d,null,function(hash){
var _81f=function(){
};
_81f.prototype=_817;
_811[_819]=new _81f();
for(var j in hash){
_811[_819][j]=hash[j];
}
});
}else{
_81b=true;
}
if(_81b&&_811[_819]){
_817=_811[_819];
}else{
_811[_819]=_817;
}
if(_80a){
return true;
}
});
}
if(_80a&&_80b!=_80d){
_811[_80b.replace(/-/g,"_")]=_811[_80d.replace(/-/g,"_")];
}
};
(function(){
var _821=dojo.config.extraLocale;
if(_821){
if(!_821 instanceof Array){
_821=[_821];
}
var req=dojo.i18n._requireLocalization;
dojo.i18n._requireLocalization=function(m,b,_825,_826){
req(m,b,_825,_826);
if(_825){
return;
}
for(var i=0;i<_821.length;i++){
req(m,b,_821[i],_826);
}
};
}
})();
dojo.i18n._searchLocalePath=function(_828,down,_82a){
_828=dojo.i18n.normalizeLocale(_828);
var _82b=_828.split("-");
var _82c=[];
for(var i=_82b.length;i>0;i--){
_82c.push(_82b.slice(0,i).join("-"));
}
_82c.push(false);
if(down){
_82c.reverse();
}
for(var j=_82c.length-1;j>=0;j--){
var loc=_82c[j]||"ROOT";
var stop=_82a(loc);
if(stop){
break;
}
}
};
dojo.i18n._preloadLocalizations=function(_831,_832){
function preload(_833){
_833=dojo.i18n.normalizeLocale(_833);
dojo.i18n._searchLocalePath(_833,true,function(loc){
for(var i=0;i<_832.length;i++){
if(_832[i]==loc){
dojo["require"](_831+"_"+loc);
return true;
}
}
return false;
});
};
preload();
var _836=dojo.config.extraLocale||[];
for(var i=0;i<_836.length;i++){
preload(_836[i]);
}
};
}
if(!dojo._hasResource["dojo.number"]){
dojo._hasResource["dojo.number"]=true;
dojo.provide("dojo.number");
dojo.number.format=function(_838,_839){
_839=dojo.mixin({},_839||{});
var _83a=dojo.i18n.normalizeLocale(_839.locale);
var _83b=dojo.i18n.getLocalization("dojo.cldr","number",_83a);
_839.customs=_83b;
var _83c=_839.pattern||_83b[(_839.type||"decimal")+"Format"];
if(isNaN(_838)){
return null;
}
return dojo.number._applyPattern(_838,_83c,_839);
};
dojo.number._numberPatternRE=/[#0,]*[#0](?:\.0*#*)?/;
dojo.number._applyPattern=function(_83d,_83e,_83f){
_83f=_83f||{};
var _840=_83f.customs.group;
var _841=_83f.customs.decimal;
var _842=_83e.split(";");
var _843=_842[0];
_83e=_842[(_83d<0)?1:0]||("-"+_843);
if(_83e.indexOf("%")!=-1){
_83d*=100;
}else{
if(_83e.indexOf("‰")!=-1){
_83d*=1000;
}else{
if(_83e.indexOf("¤")!=-1){
_840=_83f.customs.currencyGroup||_840;
_841=_83f.customs.currencyDecimal||_841;
_83e=_83e.replace(/\u00a4{1,3}/,function(_844){
var prop=["symbol","currency","displayName"][_844.length-1];
return _83f[prop]||_83f.currency||"";
});
}else{
if(_83e.indexOf("E")!=-1){
throw new Error("exponential notation not supported");
}
}
}
}
var _846=dojo.number._numberPatternRE;
var _847=_843.match(_846);
if(!_847){
throw new Error("unable to find a number expression in pattern: "+_83e);
}
if(_83f.fractional===false){
_83f.places=0;
}
return _83e.replace(_846,dojo.number._formatAbsolute(_83d,_847[0],{decimal:_841,group:_840,places:_83f.places,round:_83f.round}));
};
dojo.number.round=function(_848,_849,_84a){
var _84b=String(_848).split(".");
var _84c=(_84b[1]&&_84b[1].length)||0;
if(_84c>_849){
var _84d=Math.pow(10,_849);
if(_84a>0){
_84d*=10/_84a;
_849++;
}
_848=Math.round(_848*_84d)/_84d;
_84b=String(_848).split(".");
_84c=(_84b[1]&&_84b[1].length)||0;
if(_84c>_849){
_84b[1]=_84b[1].substr(0,_849);
_848=Number(_84b.join("."));
}
}
return _848;
};
dojo.number._formatAbsolute=function(_84e,_84f,_850){
_850=_850||{};
if(_850.places===true){
_850.places=0;
}
if(_850.places===Infinity){
_850.places=6;
}
var _851=_84f.split(".");
var _852=(_850.places>=0)?_850.places:(_851[1]&&_851[1].length)||0;
if(!(_850.round<0)){
_84e=dojo.number.round(_84e,_852,_850.round);
}
var _853=String(Math.abs(_84e)).split(".");
var _854=_853[1]||"";
if(_850.places){
var _855=dojo.isString(_850.places)&&_850.places.indexOf(",");
if(_855){
_850.places=_850.places.substring(_855+1);
}
_853[1]=dojo.string.pad(_854.substr(0,_850.places),_850.places,"0",true);
}else{
if(_851[1]&&_850.places!==0){
var pad=_851[1].lastIndexOf("0")+1;
if(pad>_854.length){
_853[1]=dojo.string.pad(_854,pad,"0",true);
}
var _857=_851[1].length;
if(_857<_854.length){
_853[1]=_854.substr(0,_857);
}
}else{
if(_853[1]){
_853.pop();
}
}
}
var _858=_851[0].replace(",","");
pad=_858.indexOf("0");
if(pad!=-1){
pad=_858.length-pad;
if(pad>_853[0].length){
_853[0]=dojo.string.pad(_853[0],pad);
}
if(_858.indexOf("#")==-1){
_853[0]=_853[0].substr(_853[0].length-pad);
}
}
var _859=_851[0].lastIndexOf(",");
var _85a,_85b;
if(_859!=-1){
_85a=_851[0].length-_859-1;
var _85c=_851[0].substr(0,_859);
_859=_85c.lastIndexOf(",");
if(_859!=-1){
_85b=_85c.length-_859-1;
}
}
var _85d=[];
for(var _85e=_853[0];_85e;){
var off=_85e.length-_85a;
_85d.push((off>0)?_85e.substr(off):_85e);
_85e=(off>0)?_85e.slice(0,off):"";
if(_85b){
_85a=_85b;
delete _85b;
}
}
_853[0]=_85d.reverse().join(_850.group||",");
return _853.join(_850.decimal||".");
};
dojo.number.regexp=function(_860){
return dojo.number._parseInfo(_860).regexp;
};
dojo.number._parseInfo=function(_861){
_861=_861||{};
var _862=dojo.i18n.normalizeLocale(_861.locale);
var _863=dojo.i18n.getLocalization("dojo.cldr","number",_862);
var _864=_861.pattern||_863[(_861.type||"decimal")+"Format"];
var _865=_863.group;
var _866=_863.decimal;
var _867=1;
if(_864.indexOf("%")!=-1){
_867/=100;
}else{
if(_864.indexOf("‰")!=-1){
_867/=1000;
}else{
var _868=_864.indexOf("¤")!=-1;
if(_868){
_865=_863.currencyGroup||_865;
_866=_863.currencyDecimal||_866;
}
}
}
var _869=_864.split(";");
if(_869.length==1){
_869.push("-"+_869[0]);
}
var re=dojo.regexp.buildGroupRE(_869,function(_86b){
_86b="(?:"+dojo.regexp.escapeString(_86b,".")+")";
return _86b.replace(dojo.number._numberPatternRE,function(_86c){
var _86d={signed:false,separator:_861.strict?_865:[_865,""],fractional:_861.fractional,decimal:_866,exponent:false};
var _86e=_86c.split(".");
var _86f=_861.places;
if(_86e.length==1||_86f===0){
_86d.fractional=false;
}else{
if(_86f===undefined){
_86f=_861.pattern?_86e[1].lastIndexOf("0")+1:Infinity;
}
if(_86f&&_861.fractional==undefined){
_86d.fractional=true;
}
if(!_861.places&&(_86f<_86e[1].length)){
_86f+=","+_86e[1].length;
}
_86d.places=_86f;
}
var _870=_86e[0].split(",");
if(_870.length>1){
_86d.groupSize=_870.pop().length;
if(_870.length>1){
_86d.groupSize2=_870.pop().length;
}
}
return "("+dojo.number._realNumberRegexp(_86d)+")";
});
},true);
if(_868){
re=re.replace(/([\s\xa0]*)(\u00a4{1,3})([\s\xa0]*)/g,function(_871,_872,_873,_874){
var prop=["symbol","currency","displayName"][_873.length-1];
var _876=dojo.regexp.escapeString(_861[prop]||_861.currency||"");
_872=_872?"[\\s\\xa0]":"";
_874=_874?"[\\s\\xa0]":"";
if(!_861.strict){
if(_872){
_872+="*";
}
if(_874){
_874+="*";
}
return "(?:"+_872+_876+_874+")?";
}
return _872+_876+_874;
});
}
return {regexp:re.replace(/[\xa0 ]/g,"[\\s\\xa0]"),group:_865,decimal:_866,factor:_867};
};
dojo.number.parse=function(_877,_878){
var info=dojo.number._parseInfo(_878);
var _87a=(new RegExp("^"+info.regexp+"$")).exec(_877);
if(!_87a){
return NaN;
}
var _87b=_87a[1];
if(!_87a[1]){
if(!_87a[2]){
return NaN;
}
_87b=_87a[2];
info.factor*=-1;
}
_87b=_87b.replace(new RegExp("["+info.group+"\\s\\xa0"+"]","g"),"").replace(info.decimal,".");
return Number(_87b)*info.factor;
};
dojo.number._realNumberRegexp=function(_87c){
_87c=_87c||{};
if(!("places" in _87c)){
_87c.places=Infinity;
}
if(typeof _87c.decimal!="string"){
_87c.decimal=".";
}
if(!("fractional" in _87c)||/^0/.test(_87c.places)){
_87c.fractional=[true,false];
}
if(!("exponent" in _87c)){
_87c.exponent=[true,false];
}
if(!("eSigned" in _87c)){
_87c.eSigned=[true,false];
}
var _87d=dojo.number._integerRegexp(_87c);
var _87e=dojo.regexp.buildGroupRE(_87c.fractional,function(q){
var re="";
if(q&&(_87c.places!==0)){
re="\\"+_87c.decimal;
if(_87c.places==Infinity){
re="(?:"+re+"\\d+)?";
}else{
re+="\\d{"+_87c.places+"}";
}
}
return re;
},true);
var _881=dojo.regexp.buildGroupRE(_87c.exponent,function(q){
if(q){
return "([eE]"+dojo.number._integerRegexp({signed:_87c.eSigned})+")";
}
return "";
});
var _883=_87d+_87e;
if(_87e){
_883="(?:(?:"+_883+")|(?:"+_87e+"))";
}
return _883+_881;
};
dojo.number._integerRegexp=function(_884){
_884=_884||{};
if(!("signed" in _884)){
_884.signed=[true,false];
}
if(!("separator" in _884)){
_884.separator="";
}else{
if(!("groupSize" in _884)){
_884.groupSize=3;
}
}
var _885=dojo.regexp.buildGroupRE(_884.signed,function(q){
return q?"[-+]":"";
},true);
var _887=dojo.regexp.buildGroupRE(_884.separator,function(sep){
if(!sep){
return "(?:0|[1-9]\\d*)";
}
sep=dojo.regexp.escapeString(sep);
if(sep==" "){
sep="\\s";
}else{
if(sep==" "){
sep="\\s\\xa0";
}
}
var grp=_884.groupSize,grp2=_884.groupSize2;
if(grp2){
var _88b="(?:0|[1-9]\\d{0,"+(grp2-1)+"}(?:["+sep+"]\\d{"+grp2+"})*["+sep+"]\\d{"+grp+"})";
return ((grp-grp2)>0)?"(?:"+_88b+"|(?:0|[1-9]\\d{0,"+(grp-1)+"}))":_88b;
}
return "(?:0|[1-9]\\d{0,"+(grp-1)+"}(?:["+sep+"]\\d{"+grp+"})*)";
},true);
return _885+_887;
};
}
if(!dojo._hasResource["dijit.form.Slider"]){
dojo._hasResource["dijit.form.Slider"]=true;
dojo.provide("dijit.form.Slider");
dojo.declare("dijit.form.HorizontalSlider",[dijit.form._FormValueWidget,dijit._Container],{templateString:"<table class=\"dijit dijitReset dijitSlider\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" rules=\"none\" dojoAttachEvent=\"onkeypress:_onKeyPress\"\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td class=\"dijitReset\" colspan=\"2\"></td\r\n\t\t><td dojoAttachPoint=\"containerNode,topDecoration\" class=\"dijitReset\" style=\"text-align:center;width:100%;\"></td\r\n\t\t><td class=\"dijitReset\" colspan=\"2\"></td\r\n\t></tr\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td class=\"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerH\"\r\n\t\t\t><div class=\"dijitSliderDecrementIconH\" tabIndex=\"-1\" style=\"display:none\" dojoAttachPoint=\"decrementButton\"><span class=\"dijitSliderButtonInner\">-</span></div\r\n\t\t></td\r\n\t\t><td class=\"dijitReset\"\r\n\t\t\t><div class=\"dijitSliderBar dijitSliderBumper dijitSliderBumperH dijitSliderLeftBumper dijitSliderLeftBumper\" dojoAttachEvent=\"onclick:_onClkDecBumper\"></div\r\n\t\t></td\r\n\t\t><td class=\"dijitReset\"\r\n\t\t\t><input dojoAttachPoint=\"valueNode\" type=\"hidden\" name=\"${name}\"\r\n\t\t\t/><div class=\"dijitReset dijitSliderBarContainerH\" waiRole=\"presentation\" dojoAttachPoint=\"sliderBarContainer\"\r\n\t\t\t\t><div waiRole=\"presentation\" dojoAttachPoint=\"progressBar\" class=\"dijitSliderBar dijitSliderBarH dijitSliderProgressBar dijitSliderProgressBarH\" dojoAttachEvent=\"onclick:_onBarClick\"\r\n\t\t\t\t\t><div class=\"dijitSliderMoveable dijitSliderMoveableH\" \r\n\t\t\t\t\t\t><div dojoAttachPoint=\"sliderHandle,focusNode\" class=\"dijitSliderImageHandle dijitSliderImageHandleH\" dojoAttachEvent=\"onmousedown:_onHandleClick\" waiRole=\"slider\" valuemin=\"${minimum}\" valuemax=\"${maximum}\"></div\r\n\t\t\t\t\t></div\r\n\t\t\t\t></div\r\n\t\t\t\t><div waiRole=\"presentation\" dojoAttachPoint=\"remainingBar\" class=\"dijitSliderBar dijitSliderBarH dijitSliderRemainingBar dijitSliderRemainingBarH\" dojoAttachEvent=\"onclick:_onBarClick\"></div\r\n\t\t\t></div\r\n\t\t></td\r\n\t\t><td class=\"dijitReset\"\r\n\t\t\t><div class=\"dijitSliderBar dijitSliderBumper dijitSliderBumperH dijitSliderRightBumper dijitSliderRightBumper\" dojoAttachEvent=\"onclick:_onClkIncBumper\"></div\r\n\t\t></td\r\n\t\t><td class=\"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerH\" style=\"right:0px;\"\r\n\t\t\t><div class=\"dijitSliderIncrementIconH\" tabIndex=\"-1\" style=\"display:none\" dojoAttachPoint=\"incrementButton\"><span class=\"dijitSliderButtonInner\">+</span></div\r\n\t\t></td\r\n\t></tr\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td class=\"dijitReset\" colspan=\"2\"></td\r\n\t\t><td dojoAttachPoint=\"containerNode,bottomDecoration\" class=\"dijitReset\" style=\"text-align:center;\"></td\r\n\t\t><td class=\"dijitReset\" colspan=\"2\"></td\r\n\t></tr\r\n></table>\r\n",value:0,showButtons:true,minimum:0,maximum:100,discreteValues:Infinity,pageIncrement:2,clickSelect:true,slideDuration:dijit.defaultDuration,widgetsInTemplate:true,attributeMap:dojo.mixin(dojo.clone(dijit.form._FormWidget.prototype.attributeMap),{id:"",name:"valueNode"}),baseClass:"dijitSlider",_mousePixelCoord:"pageX",_pixelCount:"w",_startingPixelCoord:"x",_startingPixelCount:"l",_handleOffsetCoord:"left",_progressPixelSize:"width",_onKeyPress:function(e){
if(this.disabled||this.readOnly||e.altKey||e.ctrlKey){
return;
}
switch(e.charOrCode){
case dojo.keys.HOME:
this._setValueAttr(this.minimum,true);
break;
case dojo.keys.END:
this._setValueAttr(this.maximum,true);
break;
case ((this._descending||this.isLeftToRight())?dojo.keys.RIGHT_ARROW:dojo.keys.LEFT_ARROW):
case (this._descending===false?dojo.keys.DOWN_ARROW:dojo.keys.UP_ARROW):
case (this._descending===false?dojo.keys.PAGE_DOWN:dojo.keys.PAGE_UP):
this.increment(e);
break;
case ((this._descending||this.isLeftToRight())?dojo.keys.LEFT_ARROW:dojo.keys.RIGHT_ARROW):
case (this._descending===false?dojo.keys.UP_ARROW:dojo.keys.DOWN_ARROW):
case (this._descending===false?dojo.keys.PAGE_UP:dojo.keys.PAGE_DOWN):
this.decrement(e);
break;
default:
this.inherited(arguments);
return;
}
dojo.stopEvent(e);
},_onHandleClick:function(e){
if(this.disabled||this.readOnly){
return;
}
if(!dojo.isIE){
dijit.focus(this.sliderHandle);
}
dojo.stopEvent(e);
},_isReversed:function(){
return !this.isLeftToRight();
},_onBarClick:function(e){
if(this.disabled||this.readOnly||!this.clickSelect){
return;
}
dijit.focus(this.sliderHandle);
dojo.stopEvent(e);
var _88f=dojo.coords(this.sliderBarContainer,true);
var _890=e[this._mousePixelCoord]-_88f[this._startingPixelCoord];
this._setPixelValue(this._isReversed()?(_88f[this._pixelCount]-_890):_890,_88f[this._pixelCount],true);
},_setPixelValue:function(_891,_892,_893){
if(this.disabled||this.readOnly){
return;
}
_891=_891<0?0:_892<_891?_892:_891;
var _894=this.discreteValues;
if(_894<=1||_894==Infinity){
_894=_892;
}
_894--;
var _895=_892/_894;
var _896=Math.round(_891/_895);
this._setValueAttr((this.maximum-this.minimum)*_896/_894+this.minimum,_893);
},_setValueAttr:function(_897,_898){
this.valueNode.value=this.value=_897;
dijit.setWaiState(this.focusNode,"valuenow",_897);
this.inherited(arguments);
var _899=(_897-this.minimum)/(this.maximum-this.minimum);
var _89a=(this._descending===false)?this.remainingBar:this.progressBar;
var _89b=(this._descending===false)?this.progressBar:this.remainingBar;
if(this._inProgressAnim&&this._inProgressAnim.status!="stopped"){
this._inProgressAnim.stop(true);
}
if(_898&&this.slideDuration>0&&_89a.style[this._progressPixelSize]){
var _89c=this;
var _89d={};
var _89e=parseFloat(_89a.style[this._progressPixelSize]);
var _89f=this.slideDuration*(_899-_89e/100);
if(_89f==0){
return;
}
if(_89f<0){
_89f=0-_89f;
}
_89d[this._progressPixelSize]={start:_89e,end:_899*100,units:"%"};
this._inProgressAnim=dojo.animateProperty({node:_89a,duration:_89f,onAnimate:function(v){
_89b.style[_89c._progressPixelSize]=(100-parseFloat(v[_89c._progressPixelSize]))+"%";
},onEnd:function(){
delete _89c._inProgressAnim;
},properties:_89d});
this._inProgressAnim.play();
}else{
_89a.style[this._progressPixelSize]=(_899*100)+"%";
_89b.style[this._progressPixelSize]=((1-_899)*100)+"%";
}
},_bumpValue:function(_8a1){
if(this.disabled||this.readOnly){
return;
}
var s=dojo.getComputedStyle(this.sliderBarContainer);
var c=dojo._getContentBox(this.sliderBarContainer,s);
var _8a4=this.discreteValues;
if(_8a4<=1||_8a4==Infinity){
_8a4=c[this._pixelCount];
}
_8a4--;
var _8a5=(this.value-this.minimum)*_8a4/(this.maximum-this.minimum)+_8a1;
if(_8a5<0){
_8a5=0;
}
if(_8a5>_8a4){
_8a5=_8a4;
}
_8a5=_8a5*(this.maximum-this.minimum)/_8a4+this.minimum;
this._setValueAttr(_8a5,true);
},_onClkIncBumper:function(){
this._setValueAttr(this._descending===false?this.minimum:this.maximum,true);
},_onClkDecBumper:function(){
this._setValueAttr(this._descending===false?this.maximum:this.minimum,true);
},decrement:function(e){
this._bumpValue(e.charOrCode==dojo.keys.PAGE_DOWN?-this.pageIncrement:-1);
},increment:function(e){
this._bumpValue(e.charOrCode==dojo.keys.PAGE_UP?this.pageIncrement:1);
},_mouseWheeled:function(evt){
dojo.stopEvent(evt);
var _8a9=!dojo.isMozilla;
var _8aa=evt[(_8a9?"wheelDelta":"detail")]*(_8a9?1:-1);
this[(_8aa<0?"decrement":"increment")](evt);
},startup:function(){
dojo.forEach(this.getChildren(),function(_8ab){
if(this[_8ab.container]!=this.containerNode){
this[_8ab.container].appendChild(_8ab.domNode);
}
},this);
},_typematicCallback:function(_8ac,_8ad,e){
if(_8ac==-1){
return;
}
this[(_8ad==(this._descending?this.incrementButton:this.decrementButton))?"decrement":"increment"](e);
},postCreate:function(){
if(this.showButtons){
this.incrementButton.style.display="";
this.decrementButton.style.display="";
this._connects.push(dijit.typematic.addMouseListener(this.decrementButton,this,"_typematicCallback",25,500));
this._connects.push(dijit.typematic.addMouseListener(this.incrementButton,this,"_typematicCallback",25,500));
}
this.connect(this.domNode,!dojo.isMozilla?"onmousewheel":"DOMMouseScroll","_mouseWheeled");
var _8af=this;
var _8b0=function(){
dijit.form._SliderMover.apply(this,arguments);
this.widget=_8af;
};
dojo.extend(_8b0,dijit.form._SliderMover.prototype);
this._movable=new dojo.dnd.Moveable(this.sliderHandle,{mover:_8b0});
var _8b1=dojo.query("label[for=\""+this.id+"\"]");
if(_8b1.length){
_8b1[0].id=(this.id+"_label");
dijit.setWaiState(this.focusNode,"labelledby",_8b1[0].id);
}
dijit.setWaiState(this.focusNode,"valuemin",this.minimum);
dijit.setWaiState(this.focusNode,"valuemax",this.maximum);
this.inherited(arguments);
},destroy:function(){
this._movable.destroy();
if(this._inProgressAnim&&this._inProgressAnim.status!="stopped"){
this._inProgressAnim.stop(true);
}
this.inherited(arguments);
}});
dojo.declare("dijit.form.VerticalSlider",dijit.form.HorizontalSlider,{templateString:"<table class=\"dijitReset dijitSlider\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" rules=\"none\" dojoAttachEvent=\"onkeypress:_onKeyPress\"\r\n><tbody class=\"dijitReset\"\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td class=\"dijitReset\"></td\r\n\t\t><td class=\"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerV\"\r\n\t\t\t><div class=\"dijitSliderIncrementIconV\" tabIndex=\"-1\" style=\"display:none\" dojoAttachPoint=\"decrementButton\"><span class=\"dijitSliderButtonInner\">+</span></div\r\n\t\t></td\r\n\t\t><td class=\"dijitReset\"></td\r\n\t></tr\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td class=\"dijitReset\"></td\r\n\t\t><td class=\"dijitReset\"\r\n\t\t\t><center><div class=\"dijitSliderBar dijitSliderBumper dijitSliderBumperV dijitSliderTopBumper dijitSliderTopBumper\" dojoAttachEvent=\"onclick:_onClkIncBumper\"></div></center\r\n\t\t></td\r\n\t\t><td class=\"dijitReset\"></td\r\n\t></tr\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td dojoAttachPoint=\"leftDecoration\" class=\"dijitReset\" style=\"text-align:center;height:100%;\"></td\r\n\t\t><td class=\"dijitReset\" style=\"height:100%;\"\r\n\t\t\t><input dojoAttachPoint=\"valueNode\" type=\"hidden\" name=\"${name}\"\r\n\t\t\t/><center class=\"dijitReset dijitSliderBarContainerV\" waiRole=\"presentation\" dojoAttachPoint=\"sliderBarContainer\"\r\n\t\t\t\t><div waiRole=\"presentation\" dojoAttachPoint=\"remainingBar\" class=\"dijitSliderBar dijitSliderBarV dijitSliderRemainingBar dijitSliderRemainingBarV\" dojoAttachEvent=\"onclick:_onBarClick\"><!--#5629--></div\r\n\t\t\t\t><div waiRole=\"presentation\" dojoAttachPoint=\"progressBar\" class=\"dijitSliderBar dijitSliderBarV dijitSliderProgressBar dijitSliderProgressBarV\" dojoAttachEvent=\"onclick:_onBarClick\"\r\n\t\t\t\t\t><div class=\"dijitSliderMoveable\" style=\"vertical-align:top;\" \r\n\t\t\t\t\t\t><div dojoAttachPoint=\"sliderHandle,focusNode\" class=\"dijitSliderImageHandle dijitSliderImageHandleV\" dojoAttachEvent=\"onmousedown:_onHandleClick\" waiRole=\"slider\" valuemin=\"${minimum}\" valuemax=\"${maximum}\"></div\r\n\t\t\t\t\t></div\r\n\t\t\t\t></div\r\n\t\t\t></center\r\n\t\t></td\r\n\t\t><td dojoAttachPoint=\"containerNode,rightDecoration\" class=\"dijitReset\" style=\"text-align:center;height:100%;\"></td\r\n\t></tr\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td class=\"dijitReset\"></td\r\n\t\t><td class=\"dijitReset\"\r\n\t\t\t><center><div class=\"dijitSliderBar dijitSliderBumper dijitSliderBumperV dijitSliderBottomBumper dijitSliderBottomBumper\" dojoAttachEvent=\"onclick:_onClkDecBumper\"></div></center\r\n\t\t></td\r\n\t\t><td class=\"dijitReset\"></td\r\n\t></tr\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td class=\"dijitReset\"></td\r\n\t\t><td class=\"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerV\"\r\n\t\t\t><div class=\"dijitSliderDecrementIconV\" tabIndex=\"-1\" style=\"display:none\" dojoAttachPoint=\"incrementButton\"><span class=\"dijitSliderButtonInner\">-</span></div\r\n\t\t></td\r\n\t\t><td class=\"dijitReset\"></td\r\n\t></tr\r\n></tbody></table>\r\n",_mousePixelCoord:"pageY",_pixelCount:"h",_startingPixelCoord:"y",_startingPixelCount:"t",_handleOffsetCoord:"top",_progressPixelSize:"height",_descending:true,startup:function(){
if(this._started){
return;
}
if(!this.isLeftToRight()&&dojo.isMoz){
if(this.leftDecoration){
this._rtlRectify(this.leftDecoration);
}
if(this.rightDecoration){
this._rtlRectify(this.rightDecoration);
}
}
this.inherited(arguments);
},_isReversed:function(){
return this._descending;
},_rtlRectify:function(_8b2){
var _8b3=[];
while(_8b2.firstChild){
_8b3.push(_8b2.firstChild);
_8b2.removeChild(_8b2.firstChild);
}
for(var i=_8b3.length-1;i>=0;i--){
if(_8b3[i]){
_8b2.appendChild(_8b3[i]);
}
}
}});
dojo.declare("dijit.form._SliderMover",dojo.dnd.Mover,{onMouseMove:function(e){
var _8b6=this.widget;
var _8b7=_8b6._abspos;
if(!_8b7){
_8b7=_8b6._abspos=dojo.coords(_8b6.sliderBarContainer,true);
_8b6._setPixelValue_=dojo.hitch(_8b6,"_setPixelValue");
_8b6._isReversed_=_8b6._isReversed();
}
var _8b8=e[_8b6._mousePixelCoord]-_8b7[_8b6._startingPixelCoord];
_8b6._setPixelValue_(_8b6._isReversed_?(_8b7[_8b6._pixelCount]-_8b8):_8b8,_8b7[_8b6._pixelCount],false);
},destroy:function(e){
dojo.dnd.Mover.prototype.destroy.apply(this,arguments);
var _8ba=this.widget;
_8ba._abspos=null;
_8ba._setValueAttr(_8ba.value,true);
}});
dojo.declare("dijit.form.HorizontalRule",[dijit._Widget,dijit._Templated],{templateString:"<div class=\"dijitRuleContainer dijitRuleContainerH\"></div>",count:3,container:"containerNode",ruleStyle:"",_positionPrefix:"<div class=\"dijitRuleMark dijitRuleMarkH\" style=\"left:",_positionSuffix:"%;",_suffix:"\"></div>",_genHTML:function(pos,ndx){
return this._positionPrefix+pos+this._positionSuffix+this.ruleStyle+this._suffix;
},_isHorizontal:true,postCreate:function(){
var _8bd;
if(this.count==1){
_8bd=this._genHTML(50,0);
}else{
var i;
var _8bf=100/(this.count-1);
if(!this._isHorizontal||this.isLeftToRight()){
_8bd=this._genHTML(0,0);
for(i=1;i<this.count-1;i++){
_8bd+=this._genHTML(_8bf*i,i);
}
_8bd+=this._genHTML(100,this.count-1);
}else{
_8bd=this._genHTML(100,0);
for(i=1;i<this.count-1;i++){
_8bd+=this._genHTML(100-_8bf*i,i);
}
_8bd+=this._genHTML(0,this.count-1);
}
}
this.domNode.innerHTML=_8bd;
}});
dojo.declare("dijit.form.VerticalRule",dijit.form.HorizontalRule,{templateString:"<div class=\"dijitRuleContainer dijitRuleContainerV\"></div>",_positionPrefix:"<div class=\"dijitRuleMark dijitRuleMarkV\" style=\"top:",_isHorizontal:false});
dojo.declare("dijit.form.HorizontalRuleLabels",dijit.form.HorizontalRule,{templateString:"<div class=\"dijitRuleContainer dijitRuleContainerH dijitRuleLabelsContainer dijitRuleLabelsContainerH\"></div>",labelStyle:"",labels:[],numericMargin:0,minimum:0,maximum:1,constraints:{pattern:"#%"},_positionPrefix:"<div class=\"dijitRuleLabelContainer dijitRuleLabelContainerH\" style=\"left:",_labelPrefix:"\"><span class=\"dijitRuleLabel dijitRuleLabelH\">",_suffix:"</span></div>",_calcPosition:function(pos){
return pos;
},_genHTML:function(pos,ndx){
return this._positionPrefix+this._calcPosition(pos)+this._positionSuffix+this.labelStyle+this._labelPrefix+this.labels[ndx]+this._suffix;
},getLabels:function(){
var _8c3=this.labels;
if(!_8c3.length){
_8c3=dojo.query("> li",this.srcNodeRef).map(function(node){
return String(node.innerHTML);
});
}
this.srcNodeRef.innerHTML="";
if(!_8c3.length&&this.count>1){
var _8c5=this.minimum;
var inc=(this.maximum-_8c5)/(this.count-1);
for(var i=0;i<this.count;i++){
_8c3.push((i<this.numericMargin||i>=(this.count-this.numericMargin))?"":dojo.number.format(_8c5,this.constraints));
_8c5+=inc;
}
}
return _8c3;
},postMixInProperties:function(){
this.inherited(arguments);
this.labels=this.getLabels();
this.count=this.labels.length;
}});
dojo.declare("dijit.form.VerticalRuleLabels",dijit.form.HorizontalRuleLabels,{templateString:"<div class=\"dijitRuleContainer dijitRuleContainerV dijitRuleLabelsContainer dijitRuleLabelsContainerV\"></div>",_positionPrefix:"<div class=\"dijitRuleLabelContainer dijitRuleLabelContainerV\" style=\"top:",_labelPrefix:"\"><span class=\"dijitRuleLabel dijitRuleLabelV\">",_calcPosition:function(pos){
return 100-pos;
},_isHorizontal:false});
}
if(!dojo._hasResource["dojo.date"]){
dojo._hasResource["dojo.date"]=true;
dojo.provide("dojo.date");
dojo.date.getDaysInMonth=function(_8c9){
var _8ca=_8c9.getMonth();
var days=[31,28,31,30,31,30,31,31,30,31,30,31];
if(_8ca==1&&dojo.date.isLeapYear(_8c9)){
return 29;
}
return days[_8ca];
};
dojo.date.isLeapYear=function(_8cc){
var year=_8cc.getFullYear();
return !(year%400)||(!(year%4)&&!!(year%100));
};
dojo.date.getTimezoneName=function(_8ce){
var str=_8ce.toString();
var tz="";
var _8d1;
var pos=str.indexOf("(");
if(pos>-1){
tz=str.substring(++pos,str.indexOf(")"));
}else{
var pat=/([A-Z\/]+) \d{4}$/;
if((_8d1=str.match(pat))){
tz=_8d1[1];
}else{
str=_8ce.toLocaleString();
pat=/ ([A-Z\/]+)$/;
if((_8d1=str.match(pat))){
tz=_8d1[1];
}
}
}
return (tz=="AM"||tz=="PM")?"":tz;
};
dojo.date.compare=function(_8d4,_8d5,_8d6){
_8d4=new Date(Number(_8d4));
_8d5=new Date(Number(_8d5||new Date()));
if(_8d6!=="undefined"){
if(_8d6=="date"){
_8d4.setHours(0,0,0,0);
_8d5.setHours(0,0,0,0);
}else{
if(_8d6=="time"){
_8d4.setFullYear(0,0,0);
_8d5.setFullYear(0,0,0);
}
}
}
if(_8d4>_8d5){
return 1;
}
if(_8d4<_8d5){
return -1;
}
return 0;
};
dojo.date.add=function(date,_8d8,_8d9){
var sum=new Date(Number(date));
var _8db=false;
var _8dc="Date";
switch(_8d8){
case "day":
break;
case "weekday":
var days,_8de;
var mod=_8d9%5;
if(!mod){
days=(_8d9>0)?5:-5;
_8de=(_8d9>0)?((_8d9-5)/5):((_8d9+5)/5);
}else{
days=mod;
_8de=parseInt(_8d9/5);
}
var strt=date.getDay();
var adj=0;
if(strt==6&&_8d9>0){
adj=1;
}else{
if(strt==0&&_8d9<0){
adj=-1;
}
}
var trgt=strt+days;
if(trgt==0||trgt==6){
adj=(_8d9>0)?2:-2;
}
_8d9=(7*_8de)+days+adj;
break;
case "year":
_8dc="FullYear";
_8db=true;
break;
case "week":
_8d9*=7;
break;
case "quarter":
_8d9*=3;
case "month":
_8db=true;
_8dc="Month";
break;
case "hour":
case "minute":
case "second":
case "millisecond":
_8dc="UTC"+_8d8.charAt(0).toUpperCase()+_8d8.substring(1)+"s";
}
if(_8dc){
sum["set"+_8dc](sum["get"+_8dc]()+_8d9);
}
if(_8db&&(sum.getDate()<date.getDate())){
sum.setDate(0);
}
return sum;
};
dojo.date.difference=function(_8e3,_8e4,_8e5){
_8e4=_8e4||new Date();
_8e5=_8e5||"day";
var _8e6=_8e4.getFullYear()-_8e3.getFullYear();
var _8e7=1;
switch(_8e5){
case "quarter":
var m1=_8e3.getMonth();
var m2=_8e4.getMonth();
var q1=Math.floor(m1/3)+1;
var q2=Math.floor(m2/3)+1;
q2+=(_8e6*4);
_8e7=q2-q1;
break;
case "weekday":
var days=Math.round(dojo.date.difference(_8e3,_8e4,"day"));
var _8ed=parseInt(dojo.date.difference(_8e3,_8e4,"week"));
var mod=days%7;
if(mod==0){
days=_8ed*5;
}else{
var adj=0;
var aDay=_8e3.getDay();
var bDay=_8e4.getDay();
_8ed=parseInt(days/7);
mod=days%7;
var _8f2=new Date(_8e3);
_8f2.setDate(_8f2.getDate()+(_8ed*7));
var _8f3=_8f2.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 (_8f3+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 (_8f3+mod)<0:
adj=2;
}
}
}
days+=adj;
days-=(_8ed*2);
}
_8e7=days;
break;
case "year":
_8e7=_8e6;
break;
case "month":
_8e7=(_8e4.getMonth()-_8e3.getMonth())+(_8e6*12);
break;
case "week":
_8e7=parseInt(dojo.date.difference(_8e3,_8e4,"day")/7);
break;
case "day":
_8e7/=24;
case "hour":
_8e7/=60;
case "minute":
_8e7/=60;
case "second":
_8e7/=1000;
case "millisecond":
_8e7*=_8e4.getTime()-_8e3.getTime();
}
return Math.round(_8e7);
};
}
if(!dojo._hasResource["dojo.cldr.supplemental"]){
dojo._hasResource["dojo.cldr.supplemental"]=true;
dojo.provide("dojo.cldr.supplemental");
dojo.cldr.supplemental.getFirstDayOfWeek=function(_8f4){
var _8f5={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 _8f6=dojo.cldr.supplemental._region(_8f4);
var dow=_8f5[_8f6];
return (dow===undefined)?1:dow;
};
dojo.cldr.supplemental._region=function(_8f8){
_8f8=dojo.i18n.normalizeLocale(_8f8);
var tags=_8f8.split("-");
var _8fa=tags[1];
if(!_8fa){
_8fa={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(_8fa.length==4){
_8fa=tags[2];
}
}
return _8fa;
};
dojo.cldr.supplemental.getWeekend=function(_8fb){
var _8fc={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 _8fd={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 _8fe=dojo.cldr.supplemental._region(_8fb);
var _8ff=_8fc[_8fe];
var end=_8fd[_8fe];
if(_8ff===undefined){
_8ff=6;
}
if(end===undefined){
end=0;
}
return {start:_8ff,end:end};
};
}
if(!dojo._hasResource["dojo.date.locale"]){
dojo._hasResource["dojo.date.locale"]=true;
dojo.provide("dojo.date.locale");
(function(){
function formatPattern(_901,_902,_903,_904){
return _904.replace(/([a-z])\1*/ig,function(_905){
var s,pad;
var c=_905.charAt(0);
var l=_905.length;
var _90a=["abbr","wide","narrow"];
switch(c){
case "G":
s=_902[(l<4)?"eraAbbr":"eraNames"][_901.getFullYear()<0?0:1];
break;
case "y":
s=_901.getFullYear();
switch(l){
case 1:
break;
case 2:
if(!_903){
s=String(s);
s=s.substr(s.length-2);
break;
}
default:
pad=true;
}
break;
case "Q":
case "q":
s=Math.ceil((_901.getMonth()+1)/3);
pad=true;
break;
case "M":
var m=_901.getMonth();
if(l<3){
s=m+1;
pad=true;
}else{
var _90c=["months","format",_90a[l-3]].join("-");
s=_902[_90c][m];
}
break;
case "w":
var _90d=0;
s=dojo.date.locale._getWeekOfYear(_901,_90d);
pad=true;
break;
case "d":
s=_901.getDate();
pad=true;
break;
case "D":
s=dojo.date.locale._getDayOfYear(_901);
pad=true;
break;
case "E":
var d=_901.getDay();
if(l<3){
s=d+1;
pad=true;
}else{
var _90f=["days","format",_90a[l-3]].join("-");
s=_902[_90f][d];
}
break;
case "a":
var _910=(_901.getHours()<12)?"am":"pm";
s=_902[_910];
break;
case "h":
case "H":
case "K":
case "k":
var h=_901.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=_901.getMinutes();
pad=true;
break;
case "s":
s=_901.getSeconds();
pad=true;
break;
case "S":
s=Math.round(_901.getMilliseconds()*Math.pow(10,l-3));
pad=true;
break;
case "v":
case "z":
s=dojo.date.getTimezoneName(_901);
if(s){
break;
}
l=4;
case "Z":
var _912=_901.getTimezoneOffset();
var tz=[(_912<=0?"+":"-"),dojo.string.pad(Math.floor(Math.abs(_912)/60),2),dojo.string.pad(Math.abs(_912)%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: "+_904);
}
if(pad){
s=dojo.string.pad(s,l);
}
return s;
});
};
dojo.date.locale.format=function(_914,_915){
_915=_915||{};
var _916=dojo.i18n.normalizeLocale(_915.locale);
var _917=_915.formatLength||"short";
var _918=dojo.date.locale._getGregorianBundle(_916);
var str=[];
var _91a=dojo.hitch(this,formatPattern,_914,_918,_915.fullYear);
if(_915.selector=="year"){
var year=_914.getFullYear();
if(_916.match(/^zh|^ja/)){
year+="年";
}
return year;
}
if(_915.selector!="time"){
var _91c=_915.datePattern||_918["dateFormat-"+_917];
if(_91c){
str.push(_processPattern(_91c,_91a));
}
}
if(_915.selector!="date"){
var _91d=_915.timePattern||_918["timeFormat-"+_917];
if(_91d){
str.push(_processPattern(_91d,_91a));
}
}
var _91e=str.join(" ");
return _91e;
};
dojo.date.locale.regexp=function(_91f){
return dojo.date.locale._parseInfo(_91f).regexp;
};
dojo.date.locale._parseInfo=function(_920){
_920=_920||{};
var _921=dojo.i18n.normalizeLocale(_920.locale);
var _922=dojo.date.locale._getGregorianBundle(_921);
var _923=_920.formatLength||"short";
var _924=_920.datePattern||_922["dateFormat-"+_923];
var _925=_920.timePattern||_922["timeFormat-"+_923];
var _926;
if(_920.selector=="date"){
_926=_924;
}else{
if(_920.selector=="time"){
_926=_925;
}else{
_926=_924+" "+_925;
}
}
var _927=[];
var re=_processPattern(_926,dojo.hitch(this,_buildDateTimeRE,_927,_922,_920));
return {regexp:re,tokens:_927,bundle:_922};
};
dojo.date.locale.parse=function(_929,_92a){
var info=dojo.date.locale._parseInfo(_92a);
var _92c=info.tokens,_92d=info.bundle;
var re=new RegExp("^"+info.regexp+"$",info.strict?"":"i");
var _92f=re.exec(_929);
if(!_92f){
return null;
}
var _930=["abbr","wide","narrow"];
var _931=[1970,0,1,0,0,0,0];
var amPm="";
var _933=dojo.every(_92f,function(v,i){
if(!i){
return true;
}
var _936=_92c[i-1];
var l=_936.length;
switch(_936.charAt(0)){
case "y":
if(l!=2&&_92a.strict){
_931[0]=v;
}else{
if(v<100){
v=Number(v);
var year=""+new Date().getFullYear();
var _939=year.substring(0,2)*100;
var _93a=Math.min(Number(year.substring(2,4))+20,99);
var num=(v<_93a)?_939+v:_939-100+v;
_931[0]=num;
}else{
if(_92a.strict){
return false;
}
_931[0]=v;
}
}
break;
case "M":
if(l>2){
var _93c=_92d["months-format-"+_930[l-3]].concat();
if(!_92a.strict){
v=v.replace(".","").toLowerCase();
_93c=dojo.map(_93c,function(s){
return s.replace(".","").toLowerCase();
});
}
v=dojo.indexOf(_93c,v);
if(v==-1){
return false;
}
}else{
v--;
}
_931[1]=v;
break;
case "E":
case "e":
var days=_92d["days-format-"+_930[l-3]].concat();
if(!_92a.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":
_931[1]=0;
case "d":
_931[2]=v;
break;
case "a":
var am=_92a.am||_92d.am;
var pm=_92a.pm||_92d.pm;
if(!_92a.strict){
var _942=/\./g;
v=v.replace(_942,"").toLowerCase();
am=am.replace(_942,"").toLowerCase();
pm=pm.replace(_942,"").toLowerCase();
}
if(_92a.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;
}
_931[3]=v;
break;
case "m":
_931[4]=v;
break;
case "s":
_931[5]=v;
break;
case "S":
_931[6]=v;
}
return true;
});
var _943=+_931[3];
if(amPm==="p"&&_943<12){
_931[3]=_943+12;
}else{
if(amPm==="a"&&_943==12){
_931[3]=0;
}
}
var _944=new Date(_931[0],_931[1],_931[2],_931[3],_931[4],_931[5],_931[6]);
if(_92a.strict){
_944.setFullYear(_931[0]);
}
var _945=_92c.join(""),_946=_945.indexOf("d")!=-1,_947=_945.indexOf("M")!=-1;
if(!_933||(_947&&_944.getMonth()>_931[1])||(_946&&_944.getDate()>_931[2])){
return null;
}
if((_947&&_944.getMonth()<_931[1])||(_946&&_944.getDate()<_931[2])){
_944=dojo.date.add(_944,"hour",1);
}
return _944;
};
function _processPattern(_948,_949,_94a,_94b){
var _94c=function(x){
return x;
};
_949=_949||_94c;
_94a=_94a||_94c;
_94b=_94b||_94c;
var _94e=_948.match(/(''|[^'])+/g);
var _94f=_948.charAt(0)=="'";
dojo.forEach(_94e,function(_950,i){
if(!_950){
_94e[i]="";
}else{
_94e[i]=(_94f?_94a:_949)(_950);
_94f=!_94f;
}
});
return _94b(_94e.join(""));
};
function _buildDateTimeRE(_952,_953,_954,_955){
_955=dojo.regexp.escapeString(_955);
if(!_954.strict){
_955=_955.replace(" a"," ?a");
}
return _955.replace(/([a-z])\1*/ig,function(_956){
var s;
var c=_956.charAt(0);
var l=_956.length;
var p2="",p3="";
if(_954.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=_954.am||_953.am||"AM";
var pm=_954.pm||_953.pm||"PM";
if(_954.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(_952){
_952.push(_956);
}
return "("+s+")";
}).replace(/[\xa0 ]/g,"[\\s\\xa0]");
};
})();
(function(){
var _95e=[];
dojo.date.locale.addCustomFormats=function(_95f,_960){
_95e.push({pkg:_95f,name:_960});
};
dojo.date.locale._getGregorianBundle=function(_961){
var _962={};
dojo.forEach(_95e,function(desc){
var _964=dojo.i18n.getLocalization(desc.pkg,desc.name,_961);
_962=dojo.mixin(_962,_964);
},this);
return _962;
};
})();
dojo.date.locale.addCustomFormats("dojo.cldr","gregorian");
dojo.date.locale.getNames=function(item,type,use,_968){
var _969;
var _96a=dojo.date.locale._getGregorianBundle(_968);
var _96b=[item,use,type];
if(use=="standAlone"){
var key=_96b.join("-");
_969=_96a[key];
if(_969[0]==1){
_969=undefined;
}
}
_96b[1]="format";
return (_969||_96a[_96b.join("-")]).concat();
};
dojo.date.locale.isWeekend=function(_96d,_96e){
var _96f=dojo.cldr.supplemental.getWeekend(_96e);
var day=(_96d||new Date()).getDay();
if(_96f.end<_96f.start){
_96f.end+=7;
if(day<_96f.start){
day+=7;
}
}
return day>=_96f.start&&day<=_96f.end;
};
dojo.date.locale._getDayOfYear=function(_971){
return dojo.date.difference(new Date(_971.getFullYear(),0,1,_971.getHours()),_971)+1;
};
dojo.date.locale._getWeekOfYear=function(_972,_973){
if(arguments.length==1){
_973=0;
}
var _974=new Date(_972.getFullYear(),0,1).getDay();
var adj=(_974-_973+7)%7;
var week=Math.floor((dojo.date.locale._getDayOfYear(_972)+adj-1)/7);
if(_974==_973){
week++;
}
return week;
};
}
if(!dojo._hasResource["dijit.layout._LayoutWidget"]){
dojo._hasResource["dijit.layout._LayoutWidget"]=true;
dojo.provide("dijit.layout._LayoutWidget");
dojo.declare("dijit.layout._LayoutWidget",[dijit._Widget,dijit._Container,dijit._Contained],{baseClass:"dijitLayoutContainer",isLayoutContainer:true,postCreate:function(){
dojo.addClass(this.domNode,"dijitContainer");
dojo.addClass(this.domNode,this.baseClass);
},startup:function(){
if(this._started){
return;
}
dojo.forEach(this.getChildren(),function(_977){
_977.startup();
});
if(!this.getParent||!this.getParent()){
this.resize();
this.connect(dojo.global,"onresize","resize");
}
this.inherited(arguments);
},resize:function(_978,_979){
var node=this.domNode;
if(_978){
dojo.marginBox(node,_978);
if(_978.t){
node.style.top=_978.t+"px";
}
if(_978.l){
node.style.left=_978.l+"px";
}
}
var mb=_979||{};
dojo.mixin(mb,_978||{});
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(_981){
if(_981.baseClass){
dojo.addClass(_981.domNode,this.baseClass+"-"+_981.baseClass);
}
},addChild:function(_982,_983){
this.inherited(arguments);
if(this._started){
this._setupChild(_982);
}
},removeChild:function(_984){
if(_984.baseClass){
dojo.removeClass(_984.domNode,this.baseClass+"-"+_984.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 _98a=function(word){
return word.substring(0,1).toUpperCase()+word.substring(1);
};
var size=function(_98d,dim){
_98d.resize?_98d.resize(dim):dojo.marginBox(_98d.domNode,dim);
dojo.mixin(_98d,dojo.marginBox(_98d.domNode));
dojo.mixin(_98d,dim);
};
dijit.layout.layoutChildren=function(_98f,dim,_991){
dim=dojo.mixin({},dim);
dojo.addClass(_98f,"dijitLayoutContainer");
_991=dojo.filter(_991,function(item){
return item.layoutAlign!="client";
}).concat(dojo.filter(_991,function(item){
return item.layoutAlign=="client";
}));
dojo.forEach(_991,function(_994){
var elm=_994.domNode,pos=_994.layoutAlign;
var _997=elm.style;
_997.left=dim.l+"px";
_997.top=dim.t+"px";
_997.bottom=_997.right="auto";
dojo.addClass(elm,"dijitAlign"+_98a(pos));
if(pos=="top"||pos=="bottom"){
size(_994,{w:dim.w});
dim.h-=_994.h;
if(pos=="top"){
dim.t+=_994.h;
}else{
_997.top=dim.t+dim.h+"px";
}
}else{
if(pos=="left"||pos=="right"){
size(_994,{h:dim.h});
dim.w-=_994.w;
if(pos=="left"){
dim.l+=_994.w;
}else{
_997.left=dim.l+dim.w+"px";
}
}else{
if(pos=="client"){
size(_994,dim);
}
}
}
});
};
})();
}
if(!dojo._hasResource["dijit.dijit"]){
dojo._hasResource["dijit.dijit"]=true;
dojo.provide("dijit.dijit");
}
if(!dojo._hasResource["dijit._Calendar"]){
dojo._hasResource["dijit._Calendar"]=true;
dojo.provide("dijit._Calendar");
dojo.declare("dijit._Calendar",[dijit._Widget,dijit._Templated],{templateString:"<table cellspacing=\"0\" cellpadding=\"0\" class=\"dijitCalendarContainer\">\r\n\t<thead>\r\n\t\t<tr class=\"dijitReset dijitCalendarMonthContainer\" valign=\"top\">\r\n\t\t\t<th class='dijitReset' dojoAttachPoint=\"decrementMonth\">\r\n\t\t\t\t<div class=\"dijitInline dijitCalendarIncrementControl dijitCalendarDecrease\"><span dojoAttachPoint=\"decreaseArrowNode\" class=\"dijitA11ySideArrow dijitCalendarIncrementControl dijitCalendarDecreaseInner\">-</span></div>\r\n\t\t\t</th>\r\n\t\t\t<th class='dijitReset' colspan=\"5\">\r\n\t\t\t\t<div dojoAttachPoint=\"monthLabelSpacer\" class=\"dijitCalendarMonthLabelSpacer\"></div>\r\n\t\t\t\t<div dojoAttachPoint=\"monthLabelNode\" class=\"dijitCalendarMonthLabel\"></div>\r\n\t\t\t</th>\r\n\t\t\t<th class='dijitReset' dojoAttachPoint=\"incrementMonth\">\r\n\t\t\t\t<div class=\"dijitInline dijitCalendarIncrementControl dijitCalendarIncrease\"><span dojoAttachPoint=\"increaseArrowNode\" class=\"dijitA11ySideArrow dijitCalendarIncrementControl dijitCalendarIncreaseInner\">+</span></div>\r\n\t\t\t</th>\r\n\t\t</tr>\r\n\t\t<tr>\r\n\t\t\t<th class=\"dijitReset dijitCalendarDayLabelTemplate\"><span class=\"dijitCalendarDayLabel\"></span></th>\r\n\t\t</tr>\r\n\t</thead>\r\n\t<tbody dojoAttachEvent=\"onclick: _onDayClick, onmouseover: _onDayMouseOver, onmouseout: _onDayMouseOut\" class=\"dijitReset dijitCalendarBodyContainer\">\r\n\t\t<tr class=\"dijitReset dijitCalendarWeekTemplate\">\r\n\t\t\t<td class=\"dijitReset dijitCalendarDateTemplate\"><span class=\"dijitCalendarDateLabel\"></span></td>\r\n\t\t</tr>\r\n\t</tbody>\r\n\t<tfoot class=\"dijitReset dijitCalendarYearContainer\">\r\n\t\t<tr>\r\n\t\t\t<td class='dijitReset' valign=\"top\" colspan=\"7\">\r\n\t\t\t\t<h3 class=\"dijitCalendarYearLabel\">\r\n\t\t\t\t\t<span dojoAttachPoint=\"previousYearLabelNode\" class=\"dijitInline dijitCalendarPreviousYear\"></span>\r\n\t\t\t\t\t<span dojoAttachPoint=\"currentYearLabelNode\" class=\"dijitInline dijitCalendarSelectedYear\"></span>\r\n\t\t\t\t\t<span dojoAttachPoint=\"nextYearLabelNode\" class=\"dijitInline dijitCalendarNextYear\"></span>\r\n\t\t\t\t</h3>\r\n\t\t\t</td>\r\n\t\t</tr>\r\n\t</tfoot>\r\n</table>\t\r\n",value:new Date(),dayWidth:"narrow",setValue:function(_998){
dojo.deprecated("dijit.Calendar:setValue() is deprecated.  Use attr('value', ...) instead.","","2.0");
this.attr("value",_998);
},_getValueAttr:function(){
var _999=new Date(this.value);
_999.setHours(0,0,0,0);
if(_999.getDate()<this.value.getDate()){
_999=dojo.date.add(_999,"hour",1);
}
return _999;
},_setValueAttr:function(_99a){
if(!this.value||dojo.date.compare(_99a,this.value)){
_99a=new Date(_99a);
_99a.setHours(1);
this.displayMonth=new Date(_99a);
if(!this.isDisabledDate(_99a,this.lang)){
this.onChange(this.value=_99a);
}
this._populateGrid();
}
},_setText:function(node,text){
while(node.firstChild){
node.removeChild(node.firstChild);
}
node.appendChild(dojo.doc.createTextNode(text));
},_populateGrid:function(){
var _99d=this.displayMonth;
_99d.setDate(1);
var _99e=_99d.getDay();
var _99f=dojo.date.getDaysInMonth(_99d);
var _9a0=dojo.date.getDaysInMonth(dojo.date.add(_99d,"month",-1));
var _9a1=new Date();
var _9a2=this.value;
var _9a3=dojo.cldr.supplemental.getFirstDayOfWeek(this.lang);
if(_9a3>_99e){
_9a3-=7;
}
dojo.query(".dijitCalendarDateTemplate",this.domNode).forEach(function(_9a4,i){
i+=_9a3;
var date=new Date(_99d);
var _9a7,_9a8="dijitCalendar",adj=0;
if(i<_99e){
_9a7=_9a0-_99e+i+1;
adj=-1;
_9a8+="Previous";
}else{
if(i>=(_99e+_99f)){
_9a7=i-_99e-_99f+1;
adj=1;
_9a8+="Next";
}else{
_9a7=i-_99e+1;
_9a8+="Current";
}
}
if(adj){
date=dojo.date.add(date,"month",adj);
}
date.setDate(_9a7);
if(!dojo.date.compare(date,_9a1,"date")){
_9a8="dijitCalendarCurrentDate "+_9a8;
}
if(!dojo.date.compare(date,_9a2,"date")){
_9a8="dijitCalendarSelectedDate "+_9a8;
}
if(this.isDisabledDate(date,this.lang)){
_9a8="dijitCalendarDisabledDate "+_9a8;
}
var _9aa=this.getClassForDate(date,this.lang);
if(_9aa){
_9a8=_9aa+" "+_9a8;
}
_9a4.className=_9a8+"Month dijitCalendarDateTemplate";
_9a4.dijitDateValue=date.valueOf();
var _9ab=dojo.query(".dijitCalendarDateLabel",_9a4)[0];
this._setText(_9ab,date.getDate());
},this);
var _9ac=dojo.date.locale.getNames("months","wide","standAlone",this.lang);
this._setText(this.monthLabelNode,_9ac[_99d.getMonth()]);
var y=_99d.getFullYear()-1;
var d=new Date();
dojo.forEach(["previous","current","next"],function(name){
d.setFullYear(y++);
this._setText(this[name+"YearLabelNode"],dojo.date.locale.format(d,{selector:"year",locale:this.lang}));
},this);
var _9b0=this;
var _9b1=function(_9b2,_9b3,adj){
_9b0._connects.push(dijit.typematic.addMouseListener(_9b0[_9b2],_9b0,function(_9b5){
if(_9b5>=0){
_9b0._adjustDisplay(_9b3,adj);
}
},0.8,500));
};
_9b1("incrementMonth","month",1);
_9b1("decrementMonth","month",-1);
_9b1("nextYearLabelNode","year",1);
_9b1("previousYearLabelNode","year",-1);
},goToToday:function(){
this.attr("value",new Date());
},postCreate:function(){
this.inherited(arguments);
var _9b6=dojo.hitch(this,function(_9b7,n){
var _9b9=dojo.query(_9b7,this.domNode)[0];
for(var i=0;i<n;i++){
_9b9.parentNode.appendChild(_9b9.cloneNode(true));
}
});
_9b6(".dijitCalendarDayLabelTemplate",6);
_9b6(".dijitCalendarDateTemplate",6);
_9b6(".dijitCalendarWeekTemplate",5);
var _9bb=dojo.date.locale.getNames("days",this.dayWidth,"standAlone",this.lang);
var _9bc=dojo.cldr.supplemental.getFirstDayOfWeek(this.lang);
dojo.query(".dijitCalendarDayLabel",this.domNode).forEach(function(_9bd,i){
this._setText(_9bd,_9bb[(i+_9bc)%7]);
},this);
var _9bf=dojo.date.locale.getNames("months","wide","standAlone",this.lang);
dojo.forEach(_9bf,function(name){
var _9c1=dojo.doc.createElement("div");
this._setText(_9c1,name);
this.monthLabelSpacer.appendChild(_9c1);
},this);
this.value=null;
this.attr("value",new Date());
},_adjustDisplay:function(part,_9c3){
this.displayMonth=dojo.date.add(this.displayMonth,part,_9c3);
this._populateGrid();
},_onDayClick:function(evt){
var node=evt.target;
dojo.stopEvent(evt);
while(!node.dijitDateValue){
node=node.parentNode;
}
if(!dojo.hasClass(node,"dijitCalendarDisabledDate")){
this.attr("value",node.dijitDateValue);
this.onValueSelected(this.value);
}
},_onDayMouseOver:function(evt){
var node=evt.target;
if(node&&(node.dijitDateValue||node==this.previousYearLabelNode||node==this.nextYearLabelNode)){
dojo.addClass(node,"dijitCalendarHoveredDate");
this._currentNode=node;
}
},_onDayMouseOut:function(evt){
if(!this._currentNode){
return;
}
for(var node=evt.relatedTarget;node;){
if(node==this._currentNode){
return;
}
try{
node=node.parentNode;
}
catch(x){
node=null;
}
}
dojo.removeClass(this._currentNode,"dijitCalendarHoveredDate");
this._currentNode=null;
},onValueSelected:function(date){
},onChange:function(date){
},isDisabledDate:function(_9cc,_9cd){
},getClassForDate:function(_9ce,_9cf){
}});
}
if(!dojo._hasResource["dijit._editor.selection"]){
dojo._hasResource["dijit._editor.selection"]=true;
dojo.provide("dijit._editor.selection");
dojo.mixin(dijit._editor.selection,{getType:function(){
if(dojo.doc.selection){
return dojo.doc.selection.type.toLowerCase();
}else{
var _9d0="text";
var oSel;
try{
oSel=dojo.global.getSelection();
}
catch(e){
}
if(oSel&&oSel.rangeCount==1){
var _9d2=oSel.getRangeAt(0);
if((_9d2.startContainer==_9d2.endContainer)&&((_9d2.endOffset-_9d2.startOffset)==1)&&(_9d2.startContainer.nodeType!=3)){
_9d0="control";
}
}
return _9d0;
}
},getSelectedText:function(){
if(dojo.doc.selection){
if(dijit._editor.selection.getType()=="control"){
return null;
}
return dojo.doc.selection.createRange().text;
}else{
var _9d3=dojo.global.getSelection();
if(_9d3){
return _9d3.toString();
}
}
return "";
},getSelectedHtml:function(){
if(dojo.doc.selection){
if(dijit._editor.selection.getType()=="control"){
return null;
}
return dojo.doc.selection.createRange().htmlText;
}else{
var _9d4=dojo.global.getSelection();
if(_9d4&&_9d4.rangeCount){
var frag=_9d4.getRangeAt(0).cloneContents();
var div=dojo.doc.createElement("div");
div.appendChild(frag);
return div.innerHTML;
}
return null;
}
},getSelectedElement:function(){
if(dijit._editor.selection.getType()=="control"){
if(dojo.doc.selection){
var _9d7=dojo.doc.selection.createRange();
if(_9d7&&_9d7.item){
return dojo.doc.selection.createRange().item(0);
}
}else{
var _9d8=dojo.global.getSelection();
return _9d8.anchorNode.childNodes[_9d8.anchorOffset];
}
}
return null;
},getParentElement:function(){
if(dijit._editor.selection.getType()=="control"){
var p=this.getSelectedElement();
if(p){
return p.parentNode;
}
}else{
if(dojo.doc.selection){
var r=dojo.doc.selection.createRange();
r.collapse(true);
return r.parentElement();
}else{
var _9db=dojo.global.getSelection();
if(_9db){
var node=_9db.anchorNode;
while(node&&(node.nodeType!=1)){
node=node.parentNode;
}
return node;
}
}
}
return null;
},hasAncestorElement:function(_9dd){
return this.getAncestorElement.apply(this,arguments)!=null;
},getAncestorElement:function(_9de){
var node=this.getSelectedElement()||this.getParentElement();
return this.getParentOfType(node,arguments);
},isTag:function(node,tags){
if(node&&node.tagName){
var _nlc=node.tagName.toLowerCase();
for(var i=0;i<tags.length;i++){
var _tlc=String(tags[i]).toLowerCase();
if(_nlc==_tlc){
return _tlc;
}
}
}
return "";
},getParentOfType:function(node,tags){
while(node){
if(this.isTag(node,tags).length){
return node;
}
node=node.parentNode;
}
return null;
},collapse:function(_9e7){
if(window["getSelection"]){
var _9e8=dojo.global.getSelection();
if(_9e8.removeAllRanges){
if(_9e7){
_9e8.collapseToStart();
}else{
_9e8.collapseToEnd();
}
}else{
_9e8.collapse(_9e7);
}
}else{
if(dojo.doc.selection){
var _9e9=dojo.doc.selection.createRange();
_9e9.collapse(_9e7);
_9e9.select();
}
}
},remove:function(){
var _s=dojo.doc.selection;
if(_s){
if(_s.type.toLowerCase()!="none"){
_s.clear();
}
return _s;
}else{
_s=dojo.global.getSelection();
_s.deleteFromDocument();
return _s;
}
},selectElementChildren:function(_9eb,_9ec){
var _9ed=dojo.global;
var _9ee=dojo.doc;
_9eb=dojo.byId(_9eb);
if(_9ee.selection&&dojo.body().createTextRange){
var _9ef=_9eb.ownerDocument.body.createTextRange();
_9ef.moveToElementText(_9eb);
if(!_9ec){
try{
_9ef.select();
}
catch(e){
}
}
}else{
if(_9ed.getSelection){
var _9f0=_9ed.getSelection();
if(_9f0.setBaseAndExtent){
_9f0.setBaseAndExtent(_9eb,0,_9eb,_9eb.innerText.length-1);
}else{
if(_9f0.selectAllChildren){
_9f0.selectAllChildren(_9eb);
}
}
}
}
},selectElement:function(_9f1,_9f2){
var _9f3,_9f4=dojo.doc;
_9f1=dojo.byId(_9f1);
if(_9f4.selection&&dojo.body().createTextRange){
try{
_9f3=dojo.body().createControlRange();
_9f3.addElement(_9f1);
if(!_9f2){
_9f3.select();
}
}
catch(e){
this.selectElementChildren(_9f1,_9f2);
}
}else{
if(dojo.global.getSelection){
var _9f5=dojo.global.getSelection();
if(_9f5.removeAllRanges){
_9f3=_9f4.createRange();
_9f3.selectNode(_9f1);
_9f5.removeAllRanges();
_9f5.addRange(_9f3);
}
}
}
}});
}
if(!dojo._hasResource["dijit._editor.range"]){
dojo._hasResource["dijit._editor.range"]=true;
dojo.provide("dijit._editor.range");
dijit.range={};
dijit.range.getIndex=function(node,_9f7){
var ret=[],retR=[];
var stop=_9f7;
var _9fb=node;
var _9fc,n;
while(node!=stop){
var i=0;
_9fc=node.parentNode;
while((n=_9fc.childNodes[i++])){
if(n===node){
--i;
break;
}
}
if(i>=_9fc.childNodes.length){
dojo.debug("Error finding index of a node in dijit.range.getIndex");
}
ret.unshift(i);
retR.unshift(i-_9fc.childNodes.length);
node=_9fc;
}
if(ret.length>0&&_9fb.nodeType==3){
n=_9fb.previousSibling;
while(n&&n.nodeType==3){
ret[ret.length-1]--;
n=n.previousSibling;
}
n=_9fb.nextSibling;
while(n&&n.nodeType==3){
retR[retR.length-1]++;
n=n.nextSibling;
}
}
return {o:ret,r:retR};
};
dijit.range.getNode=function(_9ff,_a00){
if(!dojo.isArray(_9ff)||_9ff.length==0){
return _a00;
}
var node=_a00;
dojo.every(_9ff,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",_9ff,"under parent node",_a00);
return false;
}
return true;
});
return node;
};
dijit.range.getCommonAncestor=function(n1,n2){
var _a05=function(n){
var as=[];
while(n){
as.unshift(n);
if(n.nodeName!="BODY"){
n=n.parentNode;
}else{
break;
}
}
return as;
};
var n1as=_a05(n1);
var n2as=_a05(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,_a0e,root){
root=root||node.ownerDocument.body;
while(node&&node!==root){
var name=node.nodeName.toUpperCase();
if(_a0e.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,_a12,root){
root=root||node.ownerDocument.body;
_a12=_a12||dijit.range.BlockTagNames;
var _a14=null,_a15;
while(node&&node!==root){
var name=node.nodeName.toUpperCase();
if(!_a14&&_a12.test(name)){
_a14=node;
}
if(!_a15&&(/^(?:BODY|TD|TH|CAPTION)$/).test(name)){
_a15=node;
}
node=node.parentNode;
}
return {blockNode:_a14,blockContainer:_a15||node.ownerDocument.body};
};
dijit.range.atBeginningOfContainer=function(_a17,node,_a19){
var _a1a=false;
var _a1b=(_a19==0);
if(!_a1b&&node.nodeType==3){
if(dojo.trim(node.nodeValue.substr(0,_a19))==0){
_a1b=true;
}
}
if(_a1b){
var _a1c=node;
_a1a=true;
while(_a1c&&_a1c!==_a17){
if(_a1c.previousSibling){
_a1a=false;
break;
}
_a1c=_a1c.parentNode;
}
}
return _a1a;
};
dijit.range.atEndOfContainer=function(_a1d,node,_a1f){
var _a20=false;
var _a21=(_a1f==(node.length||node.childNodes.length));
if(!_a21&&node.nodeType==3){
if(dojo.trim(node.nodeValue.substr(_a1f))==0){
_a21=true;
}
}
if(_a21){
var _a22=node;
_a20=true;
while(_a22&&_a22!==_a1d){
if(_a22.nextSibling){
_a20=false;
break;
}
_a22=_a22.parentNode;
}
}
return _a20;
};
dijit.range.adjacentNoneTextNode=function(_a23,next){
var node=_a23;
var len=(0-_a23.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,_a2a){
if(dijit.range._w3c){
return win.getSelection();
}else{
var s=new dijit.range.ie.selection(win);
if(!_a2a){
s._getCurrentSelection();
}
return s;
}
};
if(!dijit.range._w3c){
dijit.range.ie={cachedSelection:{},selection:function(win){
this._ranges=[];
this.addRange=function(r,_a2e){
this._ranges.push(r);
if(!_a2e){
r._select();
}
this.rangeCount=this._ranges.length;
};
this.removeAllRanges=function(){
this._ranges=[];
this.rangeCount=0;
};
var _a2f=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=_a2f();
if(r){
this.addRange(r,true);
}
};
},decomposeControlRange:function(_a34){
var _a35=_a34.item(0),_a36=_a34.item(_a34.length-1);
var _a37=_a35.parentNode,_a38=_a36.parentNode;
var _a39=dijit.range.getIndex(_a35,_a37).o;
var _a3a=dijit.range.getIndex(_a36,_a38).o+1;
return [[_a37,_a39],[_a38,_a3a]];
},getEndPoint:function(_a3b,end){
var _a3d=_a3b.duplicate();
_a3d.collapse(!end);
var _a3e="EndTo"+(end?"End":"Start");
var _a3f=_a3d.parentElement();
var _a40,_a41,_a42;
if(_a3f.childNodes.length>0){
dojo.every(_a3f.childNodes,function(node,i){
var _a45;
if(node.nodeType!=3){
_a3d.moveToElementText(node);
if(_a3d.compareEndPoints(_a3e,_a3b)>0){
_a40=node.previousSibling;
if(_a42&&_a42.nodeType==3){
_a40=_a42;
_a45=true;
}else{
_a40=_a3f;
_a41=i;
return false;
}
}else{
if(i==_a3f.childNodes.length-1){
_a40=_a3f;
_a41=_a3f.childNodes.length;
return false;
}
}
}else{
if(i==_a3f.childNodes.length-1){
_a40=node;
_a45=true;
}
}
if(_a45&&_a40){
var _a46=dijit.range.adjacentNoneTextNode(_a40)[0];
if(_a46){
_a40=_a46.nextSibling;
}else{
_a40=_a3f.firstChild;
}
var _a47=dijit.range.adjacentNoneTextNode(_a40);
_a46=_a47[0];
var _a48=_a47[1];
if(_a46){
_a3d.moveToElementText(_a46);
_a3d.collapse(false);
}else{
_a3d.moveToElementText(_a3f);
}
_a3d.setEndPoint(_a3e,_a3b);
_a41=_a3d.text.length-_a48;
return false;
}
_a42=node;
return true;
});
}else{
_a40=_a3f;
_a41=0;
}
if(!end&&_a40.nodeType!=3&&_a41==_a40.childNodes.length){
if(_a40.nextSibling&&_a40.nextSibling.nodeType==3){
_a40=_a40.nextSibling;
_a41=0;
}
}
return [_a40,_a41];
},setEndPoint:function(_a49,_a4a,_a4b){
var _a4c=_a49.duplicate(),node,len;
if(_a4a.nodeType!=3){
_a4c.moveToElementText(_a4a);
_a4c.collapse(true);
if(_a4b==_a4a.childNodes.length){
if(_a4b>0){
node=_a4a.lastChild;
len=0;
while(node&&node.nodeType==3){
len+=node.length;
_a4a=node;
node=node.previousSibling;
}
if(node){
_a4c.moveToElementText(node);
}
_a4c.collapse(false);
_a4b=len;
}else{
_a4c.moveToElementText(_a4a);
_a4c.collapse(true);
}
}else{
if(_a4b>0){
node=_a4a.childNodes[_a4b-1];
if(node.nodeType==3){
_a4a=node;
_a4b=node.length;
}else{
_a4c.moveToElementText(node);
_a4c.collapse(false);
}
}
}
}
if(_a4a.nodeType==3){
var _a4f=dijit.range.adjacentNoneTextNode(_a4a);
var _a50=_a4f[0];
len=_a4f[1];
if(_a50){
_a4c.moveToElementText(_a50);
_a4c.collapse(false);
if(_a50.contentEditable!="inherit"){
len++;
}
}else{
_a4c.moveToElementText(_a4a.parentNode);
_a4c.collapse(true);
}
_a4b+=len;
if(_a4b>0){
if(_a4c.move("character",_a4b)!=_a4b){
console.error("Error when moving!");
}
}
}
return _a4c;
},decomposeTextRange:function(_a51){
var _a52=dijit.range.ie.getEndPoint(_a51);
var _a53=_a52[0],_a54=_a52[1];
var _a55=_a52[0],_a56=_a52[1];
if(_a51.htmlText.length){
if(_a51.htmlText==_a51.text){
_a56=_a54+_a51.text.length;
}else{
_a52=dijit.range.ie.getEndPoint(_a51,true);
_a55=_a52[0],_a56=_a52[1];
}
}
return [[_a53,_a54],[_a55,_a56]];
},setRange:function(_a57,_a58,_a59,_a5a,_a5b,_a5c){
var _a5d=dijit.range.ie.setEndPoint(_a57,_a58,_a59);
_a57.setEndPoint("StartToStart",_a5d);
var _a5e=_a5d;
if(!_a5c){
_a5e=dijit.range.ie.setEndPoint(_a57,_a5a,_a5b);
}
_a57.setEndPoint("EndToEnd",_a5e);
return _a57;
}};
dojo.declare("dijit.range.W3CRange",null,{constructor:function(){
if(arguments.length>0){
this.setStart(arguments[0][0][0],arguments[0][0][1]);
this.setEnd(arguments[0][1][0],arguments[0][1][1]);
}else{
this.commonAncestorContainer=null;
this.startContainer=null;
this.startOffset=0;
this.endContainer=null;
this.endOffset=0;
this.collapsed=true;
}
},_simpleSetEndPoint:function(node,_a60,end){
var r=(this._body||node.ownerDocument.body).createTextRange();
if(node.nodeType!=1){
r.moveToElementText(node.parentNode);
}else{
r.moveToElementText(node);
}
r.collapse(true);
_a60.setEndPoint(end?"EndToEnd":"StartToStart",r);
},_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,_a64){
_a64=parseInt(_a64);
if(this.startContainer===node&&this.startOffset==_a64){
return;
}
delete this._cachedBookmark;
this.startContainer=node;
this.startOffset=_a64;
if(!this.endContainer){
this.setEnd(node,_a64);
}else{
this._updateInternal();
}
},setEnd:function(node,_a66){
_a66=parseInt(_a66);
if(this.endContainer===node&&this.endOffset==_a66){
return;
}
delete this._cachedBookmark;
this.endContainer=node;
this.endOffset=_a66;
if(!this.startContainer){
this.setStart(node,_a66);
}else{
this._updateInternal();
}
},setStartAfter:function(node,_a68){
this._setPoint("setStart",node,_a68,1);
},setStartBefore:function(node,_a6a){
this._setPoint("setStart",node,_a6a,0);
},setEndAfter:function(node,_a6c){
this._setPoint("setEnd",node,_a6c,1);
},setEndBefore:function(node,_a6e){
this._setPoint("setEnd",node,_a6e,0);
},_setPoint:function(what,node,_a71,ext){
var _a73=dijit.range.getIndex(node,node.parentNode).o;
this[what](node.parentNode,_a73.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,_a7a){
str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");
if(!_a7a){
str=str.replace(/'/gm,"&#39;");
}
return str;
};
dijit._editor.getNodeHtml=function(node){
var _a7c;
switch(node.nodeType){
case 1:
_a7c="<"+node.nodeName.toLowerCase();
var _a7d=[];
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")){
_a7d.push([key,node.getAttribute("_djrealurl")]);
continue;
}
}
var val;
switch(key){
case "style":
val=node.style.cssText.toLowerCase();
break;
case "class":
val=node.className;
break;
default:
val=node.getAttribute(key);
}
if(val!=null){
_a7d.push([key,val.toString()]);
}
}
}
}else{
var attr,i=0;
while((attr=node.attributes[i++])){
var n=attr.name;
if(n.substr(0,3)!="_dj"){
var v=attr.value;
if(n=="src"||n=="href"){
if(node.getAttribute("_djrealurl")){
v=node.getAttribute("_djrealurl");
}
}
_a7d.push([n,v]);
}
}
}
_a7d.sort(function(a,b){
return a[0]<b[0]?-1:(a[0]==b[0]?0:1);
});
var j=0;
while((attr=_a7d[j++])){
_a7c+=" "+attr[0]+"=\""+(dojo.isString(attr[1])?dijit._editor.escapeXml(attr[1],true):attr[1])+"\"";
}
if(node.childNodes.length){
_a7c+=">"+dijit._editor.getChildrenHtml(node)+"</"+node.nodeName.toLowerCase()+">";
}else{
_a7c+=" />";
}
break;
case 3:
_a7c=dijit._editor.escapeXml(node.nodeValue,true);
break;
case 8:
_a7c="<!--"+dijit._editor.escapeXml(node.nodeValue,true)+"-->";
break;
default:
_a7c="<!-- Element not recognized - Type: "+node.nodeType+" Name: "+node.nodeName+"-->";
}
return _a7c;
};
dijit._editor.getChildrenHtml=function(dom){
var out="";
if(!dom){
return out;
}
var _a8b=dom["childNodes"]||dom;
var node,i=0;
while((node=_a8b[i++])){
if(!dojo.isIE||(node.parentNode==dom||!node.parentNode)){
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 _a8d=dojo.doc.createElement("textarea");
_a8d.id=dijit._scopeName+"._editor.RichText.savedContent";
var s=_a8d.style;
s.display="none";
s.position="absolute";
s.top="-100px";
s.left="-100px";
s.height="3px";
s.width="3px";
dojo.body().appendChild(_a8d);
})();
}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(_a8f){
this.contentPreFilters=[];
this.contentPostFilters=[];
this.contentDomPreFilters=[];
this.contentDomPostFilters=[];
this.editingAreaStyleSheets=[];
this._keyHandlers={};
this.contentPreFilters.push(dojo.hitch(this,"_preFixUrlAttributes"));
if(dojo.isMoz){
this.contentPreFilters.push(this._fixContentForMoz);
this.contentPostFilters.push(this._removeMozBogus);
}
if(dojo.isSafari){
this.contentPostFilters.push(this._removeSafariBogus);
}
this.onLoadDeferred=new dojo.Deferred();
var d=dojo.doc;
this._charset=d.charset||d.characterSet||d.defaultCharset||"UTF-8";
},inheritWidth:false,focusOnLoad:false,name:"",styleSheets:"",_content:"",height:"300px",minHeight:"1em",isClosed:true,isLoaded:false,_SEPARATOR:"@@**%%__RICHTEXTBOUNDRY__%%**@@",onLoadDeferred:null,isTabIndent: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 _a94={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){
_a94.Z=exec("redo");
}
for(var key in _a94){
this.addKeyHandler(key,true,false,_a94[key]);
}
},events:["onKeyPress","onKeyDown","onKeyUp","onClick"],captureEvents:[],_editorCommandsLocalized:false,_localizeEditorCommands:function(){
if(this._editorCommandsLocalized){
return;
}
this._editorCommandsLocalized=true;
var _a96=["div","p","pre","h1","h2","h3","h4","h5","h6","ol","ul","address"];
var _a97="",_a98,i=0;
while((_a98=_a96[i++])){
if(_a98.charAt(1)!="l"){
_a97+="<"+_a98+"><span>content</span></"+_a98+"><br/>";
}else{
_a97+="<"+_a98+"><li>content</li></"+_a98+"><br/>";
}
}
var div=dojo.doc.createElement("div");
dojo.style(div,{position:"absolute",left:"-2000px",top:"-2000px"});
dojo.doc.body.appendChild(div);
div.innerHTML=_a97;
var node=div.firstChild;
while(node){
dijit._editor.selection.selectElement(node.firstChild);
dojo.withGlobal(this.window,"selectElement",dijit._editor.selection,[node.firstChild]);
var _a9b=node.tagName.toLowerCase();
this._local2NativeFormatNames[_a9b]=document.queryCommandValue("formatblock");
this._native2LocalFormatNames[this._local2NativeFormatNames[_a9b]]=_a9b;
node=node.nextSibling.nextSibling;
}
dojo.body().removeChild(div);
},open:function(_a9c){
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)&&(_a9c["nodeName"])){
this.domNode=_a9c;
}
var dn=this.domNode;
var html;
if((dn["nodeName"])&&(dn.nodeName.toLowerCase()=="textarea")){
var ta=this.textarea=dn;
this.name=ta.name;
html=this._preFilterContent(ta.value);
dn=this.domNode=dojo.doc.createElement("div");
dn.setAttribute("widgetId",this.id);
ta.removeAttribute("widgetId");
dn.cssText=ta.cssText;
dn.className+=" "+ta.className;
dojo.place(dn,ta,"before");
var _aa0=dojo.hitch(this,function(){
with(ta.style){
display="block";
position="absolute";
left=top="-1000px";
if(dojo.isIE){
this.__overflow=overflow;
overflow="hidden";
}
}
});
if(dojo.isIE){
setTimeout(_aa0,10);
}else{
_aa0();
}
if(ta.form){
dojo.connect(ta.form,"onsubmit",this,function(){
ta.value=this.getValue();
});
}
}else{
html=this._preFilterContent(dijit._editor.getChildrenHtml(dn));
dn.innerHTML="";
}
if(html==""){
html="&nbsp;";
}
var _aa1=dojo.contentBox(dn);
this._oldHeight=_aa1.h;
this._oldWidth=_aa1.w;
this.savedContent=html;
if((dn["nodeName"])&&(dn.nodeName=="LI")){
dn.innerHTML=" <br>";
}
this.editingArea=dn.ownerDocument.createElement("div");
dn.appendChild(this.editingArea);
if(this.name!=""&&(!dojo.config["useXDomain"]||dojo.config["allowXdRichTextSave"])){
var _aa2=dojo.byId(dijit._scopeName+"._editor.RichText.savedContent");
if(_aa2.value!=""){
var _aa3=_aa2.value.split(this._SEPARATOR),i=0,dat;
while((dat=_aa3[i++])){
var data=dat.split(":");
if(data[0]==this.name){
html=data[1];
_aa3.splice(i,1);
break;
}
}
}
this.connect(window,"onbeforeunload","_saveContent");
}
this.isClosed=false;
if(dojo.isIE||dojo.isSafari||dojo.isOpera){
var ifr=(this.editorObject=this.iframe=dojo.doc.createElement("iframe"));
ifr.id=this.id+"_iframe";
this._iframeSrc=this._getIframeDocTxt(html);
ifr.style.border="none";
ifr.style.width="100%";
if(this._layoutMode){
ifr.style.height="100%";
}else{
if(dojo.isIE>=7){
if(this.height){
ifr.style.height=this.height;
}
if(this.minHeight){
ifr.style.minHeight=this.minHeight;
}
}else{
ifr.style.height=this.height?this.height:this.minHeight;
}
}
ifr.frameBorder=0;
ifr._loadFunc=dojo.hitch(this,function(win){
this.window=win;
this.document=this.window.document;
if(dojo.isIE){
this._localizeEditorCommands();
}
this.onLoad();
this.savedContent=this.getValue(true);
});
var s="javascript:parent.dijit.byId(\""+this.id+"\")._iframeSrc";
ifr.setAttribute("src",s);
this.editingArea.appendChild(ifr);
if(dojo.isSafari){
setTimeout(function(){
ifr.setAttribute("src",s);
},0);
}
}else{
this._drawIframe(html);
this.savedContent=this.getValue(true);
}
if(dn.nodeName=="LI"){
dn.lastChild.style.marginTop="-1.2em";
}
dojo.addClass(this.domNode,"RichTextEditable");
},_local2NativeFormatNames:{},_native2LocalFormatNames:{},_localizedIframeTitles:null,_getIframeDocTxt:function(html){
var _cs=dojo.getComputedStyle(this.domNode);
if(dojo.isIE||(!this.height&&!dojo.isMoz)){
html="<div>"+html+"</div>";
}
var font=[_cs.fontWeight,_cs.fontSize,_cs.fontFamily].join(" ");
var _aac=_cs.lineHeight;
if(_aac.indexOf("px")>=0){
_aac=parseFloat(_aac)/parseFloat(_cs.fontSize);
}else{
if(_aac.indexOf("em")>=0){
_aac=parseFloat(_aac);
}else{
_aac="1.0";
}
}
var _aad="";
this.style.replace(/(^|;)(line-|font-?)[^;]+/g,function(_aae){
_aad+=_aae.replace(/^;/g,"")+";";
});
return [this.isLeftToRight()?"<html><head>":"<html dir='rtl'><head>",(dojo.isMoz?"<title>"+this._localizedIframeTitles.iframeEditTitle+"</title>":""),"<meta http-equiv='Content-Type' content='text/html; charset="+this._charset+"'>","<style>","body,html {","\tbackground:transparent;","\tpadding: 1em 0 0 0;","\tmargin: -1em 0 0 0;","}","body{","\ttop:0px; left:0px; right:0px;","\tfont:",font,";",((this.height||dojo.isOpera)?"":"position: fixed;"),"\tmin-height:",this.minHeight,";","\tline-height:",_aac,"}","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='"+_aad+"'>"+html+"</body></html>"].join("");
},_drawIframe:function(html){
if(!this.iframe){
var ifr=this.iframe=dojo.doc.createElement("iframe");
ifr.id=this.id+"_iframe";
var ifrs=ifr.style;
ifrs.border="none";
ifrs.lineHeight="0";
ifrs.verticalAlign="bottom";
this.editorObject=this.iframe;
this._localizedIframeTitles=dojo.i18n.getLocalization("dijit.form","Textarea");
var _ab2=dojo.query("label[for=\""+this.id+"\"]");
if(_ab2.length){
this._localizedIframeTitles.iframeEditTitle=_ab2[0].innerHTML+" "+this._localizedIframeTitles.iframeEditTitle;
}
ifr._loadFunc=function(win){
};
}
this.iframe.style.width=this.inheritWidth?this._oldWidth:"100%";
if(this._layoutMode){
this.iframe.style.height="100%";
}else{
if(this.height){
this.iframe.style.height=this.height;
}else{
this.iframe.height=this._oldHeight;
}
}
var _ab4;
if(this.textarea){
_ab4=this.srcNodeRef;
}else{
_ab4=dojo.doc.createElement("div");
_ab4.style.display="none";
_ab4.innerHTML=html;
this.editingArea.appendChild(_ab4);
}
this.editingArea.appendChild(this.iframe);
var _ab5=dojo.hitch(this,function(){
if(!this.editNode){
if(!this.document){
try{
if(this.iframe.contentWindow){
this.window=this.iframe.contentWindow;
this.document=this.iframe.contentWindow.document;
}else{
if(this.iframe.contentDocument){
this.window=this.iframe.contentDocument.window;
this.document=this.iframe.contentDocument;
}
}
}
catch(e){
}
if(!this.document){
setTimeout(_ab5,50);
return;
}
var _ab6=this.document;
_ab6.open();
if(dojo.isAIR){
_ab6.body.innerHTML=html;
}else{
_ab6.write(this._getIframeDocTxt(html));
}
_ab6.close();
dojo._destroyElement(_ab4);
}
if(!this.document.body){
setTimeout(_ab5,50);
return;
}
this.onLoad();
}else{
dojo._destroyElement(_ab4);
this.editNode.innerHTML=html;
this.onDisplayChanged();
}
this._preDomFilterContent(this.editNode);
});
_ab5();
},_applyEditingAreaStyleSheets:function(){
var _ab7=[];
if(this.styleSheets){
_ab7=this.styleSheets.split(";");
this.styleSheets="";
}
_ab7=_ab7.concat(this.editingAreaStyleSheets);
this.editingAreaStyleSheets=[];
var text="",i=0,url;
while((url=_ab7[i++])){
var _aba=(new dojo._Url(dojo.global.location,url)).toString();
this.editingAreaStyleSheets.push(_aba);
text+="<link rel=\"stylesheet\" type=\"text/css\" href=\""+_aba+"\"/>";
}
return text;
},addStyleSheet:function(uri){
var url=uri.toString();
if(url.charAt(0)=="."||(url.charAt(0)!="/"&&!uri.host)){
url=(new dojo._Url(dojo.global.location,url)).toString();
}
if(dojo.indexOf(this.editingAreaStyleSheets,url)>-1){
return;
}
this.editingAreaStyleSheets.push(url);
if(this.document.createStyleSheet){
this.document.createStyleSheet(url);
}else{
var head=this.document.getElementsByTagName("head")[0];
var _abe=this.document.createElement("link");
with(_abe){
rel="stylesheet";
type="text/css";
href=url;
}
head.appendChild(_abe);
}
},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 _ac1=dojo.indexOf(this.editingAreaStyleSheets,url);
if(_ac1==-1){
return;
}
delete this.editingAreaStyleSheets[_ac1];
dojo.withGlobal(this.window,"query",dojo,["link:[href=\""+url+"\"]"]).orphan();
},disabled:true,_mozSettingProps:{"styleWithCSS":false},_setDisabledAttr:function(_ac2){
if(!this.editNode||"_delayedDisabled" in this){
this._delayedDisabled=_ac2;
return;
}
_ac2=Boolean(_ac2);
if(dojo.isIE||dojo.isSafari||dojo.isOpera){
var _ac3=dojo.isIE&&(this.isLoaded||!this.focusOnLoad);
if(_ac3){
this.editNode.unselectable="on";
}
this.editNode.contentEditable=!_ac2;
if(_ac3){
var _ac4=this;
setTimeout(function(){
_ac4.editNode.unselectable="off";
},0);
}
}else{
try{
this.document.designMode=(_ac2?"off":"on");
}
catch(e){
return;
}
if(!_ac2&&this._mozSettingProps){
var ps=this._mozSettingProps;
for(var n in ps){
if(ps.hasOwnProperty(n)){
try{
this.document.execCommand(n,false,ps[n]);
}
catch(e){
}
}
}
}
}
this.disabled=_ac2;
},_isResized:function(){
return false;
},onLoad:function(e){
if(!this.window.__registeredWindow){
this.window.__registeredWindow=true;
dijit.registerWin(this.window);
}
if(!dojo.isIE&&(this.height||dojo.isMoz)){
this.editNode=this.document.body;
}else{
this.editNode=this.document.body.firstChild;
var _ac8=this;
if(dojo.isIE){
var _ac9=this.tabStop=dojo.doc.createElement("<div tabIndex=-1>");
this.editingArea.appendChild(_ac9);
this.iframe.onfocus=function(){
_ac8.editNode.setActive();
};
}
}
this.focusNode=this.editNode;
try{
this.attr("disabled",false);
}
catch(e){
var _aca=dojo.connect(this,"onClick",this,function(){
this.attr("disabled",false);
dojo.disconnect(_aca);
});
}
this._preDomFilterContent(this.editNode);
var _acb=this.events.concat(this.captureEvents);
var ap=(this.iframe)?this.document:this.editNode;
dojo.forEach(_acb,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.isSafari){
this._webkitListener=dojo.connect(this.document,"onmouseup",this,"onDisplayChanged");
}
if(this.focusOnLoad){
dojo.addOnLoad(dojo.hitch(this,"focus"));
}
this.onDisplayChanged(e);
if("_delayedDisabled" in this){
var d=this._delayedDisabled;
delete this._delayedDisabled;
this.attr("disabled",d);
}
this.isLoaded=true;
if(this.onLoadDeferred){
this.onLoadDeferred.callback(true);
}
},onKeyDown:function(e){
if(e.keyCode===dojo.keys.TAB&&this.isTabIndent){
dojo.stopEvent(e);
if(this.queryCommandEnabled((e.shiftKey?"outdent":"indent"))){
this.execCommand((e.shiftKey?"outdent":"indent"));
}
}
if(dojo.isIE){
if(e.keyCode==dojo.keys.TAB&&!this.isTabIndent){
if(e.shiftKey&&!e.ctrlKey&&!e.altKey){
this.iframe.focus();
}else{
if(!e.shiftKey&&!e.ctrlKey&&!e.altKey){
this.tabStop.focus();
}
}
}else{
if(e.keyCode===dojo.keys.BACKSPACE&&this.document.selection.type==="Control"){
dojo.stopEvent(e);
this.execCommand("delete");
}else{
if((65<=e.keyCode&&e.keyCode<=90)||(e.keyCode>=37&&e.keyCode<=40)){
e.charCode=e.keyCode;
this.onKeyPress(e);
}
}
}
}else{
if(dojo.isMoz&&!this.isTabIndent){
if(e.keyCode==dojo.keys.TAB&&!e.shiftKey&&!e.ctrlKey&&!e.altKey&&this.iframe){
var _ad0=dojo.isFF<3?this.iframe.contentDocument:this.iframe;
_ad0.title=this._localizedIframeTitles.iframeFocusTitle;
this.iframe.focus();
dojo.stopEvent(e);
}else{
if(e.keyCode==dojo.keys.TAB&&e.shiftKey){
if(this.toolbar){
this.toolbar.focus();
}
dojo.stopEvent(e);
}
}
}
}
return true;
},onKeyUp:function(e){
return;
},setDisabled:function(_ad2){
dojo.deprecated("dijit.Editor::setDisabled is deprecated","use dijit.Editor::attr(\"disabled\",boolean) instead",2);
this.attr("disabled",_ad2);
},_setValueAttr:function(_ad3){
this.setValue(_ad3);
},onKeyPress:function(e){
var c=(e.keyChar&&e.keyChar.toLowerCase())||e.keyCode;
var _ad6=this._keyHandlers[c];
var args=arguments;
if(_ad6&&!e.altKey){
dojo.forEach(_ad6,function(h){
if((!!h.shift==!!e.shiftKey)&&(!!h.ctrl==!!e.ctrlKey)){
if(!h.handler.apply(this,args)){
e.preventDefault();
}
}
},this);
}
if(!this._onKeyHitch){
this._onKeyHitch=dojo.hitch(this,"onKeyPressed");
}
setTimeout(this._onKeyHitch,1);
return true;
},addKeyHandler:function(key,ctrl,_adb,_adc){
if(!dojo.isArray(this._keyHandlers[key])){
this._keyHandlers[key]=[];
}
this._keyHandlers[key].push({shift:_adb||false,ctrl:ctrl||false,handler:_adc});
},onKeyPressed:function(){
this.onDisplayChanged();
},onClick:function(e){
this.onDisplayChanged(e);
},_onIEMouseDown:function(e){
if(!this._focused&&!this.disabled){
this.focus();
}
},_onBlur:function(e){
this.inherited(arguments);
var _c=this.getValue(true);
if(_c!=this.savedContent){
this.onChange(_c);
this.savedContent=_c;
}
if(dojo.isMoz&&this.iframe){
var _ae1=dojo.isFF<3?this.iframe.contentDocument:this.iframe;
_ae1.title=this._localizedIframeTitles.iframeEditTitle;
}
},_initialFocus:true,_onFocus:function(e){
if(dojo.isMoz&&this._initialFocus){
this._initialFocus=false;
if(this.editNode.innerHTML.replace(/^\s+|\s+$/g,"")=="&nbsp;"){
this.placeCursorAtStart();
}
}
this.inherited(arguments);
},blur:function(){
if(!dojo.isIE&&this.window.document.documentElement&&this.window.document.documentElement.focus){
this.window.document.documentElement.focus();
}else{
if(dojo.doc.body.focus){
dojo.doc.body.focus();
}
}
},focus:function(){
if(!dojo.isIE){
dijit.focus(this.iframe);
}else{
if(this.editNode&&this.editNode.focus){
this.iframe.fireEvent("onfocus",document.createEventObject());
}
}
},updateInterval:200,_updateTimer:null,onDisplayChanged:function(e){
if(this._updateTimer){
clearTimeout(this._updateTimer);
}
if(!this._updateHandler){
this._updateHandler=dojo.hitch(this,"onNormalizedDisplayChanged");
}
this._updateTimer=setTimeout(this._updateHandler,this.updateInterval);
},onNormalizedDisplayChanged:function(){
delete this._updateTimer;
},onChange:function(_ae4){
},_normalizeCommand:function(cmd,_ae6){
var _ae7=cmd.toLowerCase();
if(_ae7=="formatblock"){
if(dojo.isSafari&&_ae6===undefined){
_ae7="heading";
}
}else{
if(_ae7=="hilitecolor"&&!dojo.isMoz){
_ae7="backcolor";
}
}
return _ae7;
},_qcaCache:{},queryCommandAvailable:function(_ae8){
var ca=this._qcaCache[_ae8];
if(ca!=undefined){
return ca;
}
return this._qcaCache[_ae8]=this._queryCommandAvailable(_ae8);
},_queryCommandAvailable:function(_aea){
var ie=1;
var _aec=1<<1;
var _aed=1<<2;
var _aee=1<<3;
var _aef=1<<4;
var _af0=dojo.isSafari;
function isSupportedBy(_af1){
return {ie:Boolean(_af1&ie),mozilla:Boolean(_af1&_aec),safari:Boolean(_af1&_aed),safari420:Boolean(_af1&_aef),opera:Boolean(_af1&_aee)};
};
var _af2=null;
switch(_aea.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":
_af2=isSupportedBy(_aec|ie|_aed|_aee);
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":
_af2=isSupportedBy(_aec|ie|_aee|_aef);
break;
case "blockdirltr":
case "blockdirrtl":
case "dirltr":
case "dirrtl":
case "inlinedirltr":
case "inlinedirrtl":
_af2=isSupportedBy(ie);
break;
case "cut":
case "copy":
case "paste":
_af2=isSupportedBy(ie|_aec|_aef);
break;
case "inserttable":
_af2=isSupportedBy(_aec|ie);
break;
case "insertcell":
case "insertcol":
case "insertrow":
case "deletecells":
case "deletecols":
case "deleterows":
case "mergecells":
case "splitcell":
_af2=isSupportedBy(ie|_aec);
break;
default:
return false;
}
return (dojo.isIE&&_af2.ie)||(dojo.isMoz&&_af2.mozilla)||(dojo.isSafari&&_af2.safari)||(_af0&&_af2.safari420)||(dojo.isOpera&&_af2.opera);
},execCommand:function(_af3,_af4){
var _af5;
this.focus();
_af3=this._normalizeCommand(_af3,_af4);
if(_af4!=undefined){
if(_af3=="heading"){
throw new Error("unimplemented");
}else{
if((_af3=="formatblock")&&dojo.isIE){
_af4="<"+_af4+">";
}
}
}
if(_af3==="inserthorizontalrule"&&dojo.isIE){
_af3="inserthtml";
_af4="<hr>";
}
if(_af3=="inserthtml"){
_af4=this._preFilterContent(_af4);
_af5=true;
if(dojo.isIE){
var _af6=this.document.selection.createRange();
if(this.document.selection.type.toUpperCase()=="CONTROL"){
var n=_af6.item(0);
while(_af6.length){
_af6.remove(_af6.item(0));
}
n.outerHTML=_af4;
}else{
_af6.pasteHTML(_af4);
}
_af6.select();
}else{
if(dojo.isMoz&&!_af4.length){
this._sCall("remove");
}else{
_af5=this.document.execCommand(_af3,false,_af4);
}
}
}else{
if((_af3=="unlink")&&(this.queryCommandEnabled("unlink"))&&(dojo.isMoz||dojo.isSafari)){
var a=this._sCall("getAncestorElement",["a"]);
this._sCall("selectElement",[a]);
_af5=this.document.execCommand("unlink",false,null);
}else{
if((_af3=="hilitecolor")&&(dojo.isMoz)){
this.document.execCommand("styleWithCSS",false,true);
_af5=this.document.execCommand(_af3,false,_af4);
this.document.execCommand("styleWithCSS",false,false);
}else{
if((dojo.isIE)&&((_af3=="backcolor")||(_af3=="forecolor"))){
_af4=arguments.length>1?_af4:null;
_af5=this.document.execCommand(_af3,false,_af4);
}else{
_af4=arguments.length>1?_af4:null;
if(_af4||_af3!="createlink"){
_af5=this.document.execCommand(_af3,false,_af4);
}
}
}
}
}
this.onDisplayChanged();
return _af5;
},queryCommandEnabled:function(_af9){
if(this.disabled){
return false;
}
_af9=this._normalizeCommand(_af9);
if(dojo.isMoz||dojo.isSafari){
if(_af9=="unlink"){
this._sCall("hasAncestorElement",["a"]);
}else{
if(_af9=="inserttable"){
return true;
}
}
}
if(dojo.isSafari){
if(_af9=="copy"){
_af9="cut";
}else{
if(_af9=="paste"){
return true;
}
}
}
var elem=dojo.isIE?this.document.selection.createRange():this.document;
return elem.queryCommandEnabled(_af9);
},queryCommandState:function(_afb){
if(this.disabled){
return false;
}
_afb=this._normalizeCommand(_afb);
return this.document.queryCommandState(_afb);
},queryCommandValue:function(_afc){
if(this.disabled){
return false;
}
var r;
_afc=this._normalizeCommand(_afc);
if(dojo.isIE&&_afc=="formatblock"){
r=this._native2LocalFormatNames[this.document.queryCommandValue(_afc)];
}else{
r=this.document.queryCommandValue(_afc);
}
return r;
},_sCall:function(name,args){
return dojo.withGlobal(this.window,name,dijit._editor.selection,args);
},placeCursorAtStart:function(){
this.focus();
var _b00=false;
if(dojo.isMoz){
var _b01=this.editNode.firstChild;
while(_b01){
if(_b01.nodeType==3){
if(_b01.nodeValue.replace(/^\s+|\s+$/g,"").length>0){
_b00=true;
this._sCall("selectElement",[_b01]);
break;
}
}else{
if(_b01.nodeType==1){
_b00=true;
this._sCall("selectElementChildren",[_b01]);
break;
}
}
_b01=_b01.nextSibling;
}
}else{
_b00=true;
this._sCall("selectElementChildren",[this.editNode]);
}
if(_b00){
this._sCall("collapse",[true]);
}
},placeCursorAtEnd:function(){
this.focus();
var _b02=false;
if(dojo.isMoz){
var last=this.editNode.lastChild;
while(last){
if(last.nodeType==3){
if(last.nodeValue.replace(/^\s+|\s+$/g,"").length>0){
_b02=true;
this._sCall("selectElement",[last]);
break;
}
}else{
if(last.nodeType==1){
_b02=true;
if(last.lastChild){
this._sCall("selectElement",[last.lastChild]);
}else{
this._sCall("selectElement",[last]);
}
break;
}
}
last=last.previousSibling;
}
}else{
_b02=true;
this._sCall("selectElementChildren",[this.editNode]);
}
if(_b02){
this._sCall("collapse",[false]);
}
},getValue:function(_b04){
if(this.textarea){
if(this.isClosed||!this.isLoaded){
return this.textarea.value;
}
}
return this._postFilterContent(null,_b04);
},_getValueAttr:function(){
return this.getValue();
},setValue:function(html){
if(!this.isLoaded){
this.onLoadDeferred.addCallback(dojo.hitch(this,function(){
this.setValue(html);
}));
return;
}
if(this.textarea&&(this.isClosed||!this.isLoaded)){
this.textarea.value=html;
}else{
html=this._preFilterContent(html);
var node=this.isClosed?this.domNode:this.editNode;
node.innerHTML=html;
this._preDomFilterContent(node);
}
this.onDisplayChanged();
},replaceValue:function(html){
if(this.isClosed){
this.setValue(html);
}else{
if(this.window&&this.window.getSelection&&!dojo.isMoz){
this.setValue(html);
}else{
if(this.window&&this.window.getSelection){
html=this._preFilterContent(html);
this.execCommand("selectall");
if(dojo.isMoz&&!html){
html="&nbsp;";
}
this.execCommand("inserthtml",html);
this._preDomFilterContent(this.editNode);
}else{
if(this.document&&this.document.selection){
this.setValue(html);
}
}
}
}
},_preFilterContent:function(html){
var ec=html;
dojo.forEach(this.contentPreFilters,function(ef){
if(ef){
ec=ef(ec);
}
});
return ec;
},_preDomFilterContent:function(dom){
dom=dom||this.editNode;
dojo.forEach(this.contentDomPreFilters,function(ef){
if(ef&&dojo.isFunction(ef)){
ef(dom);
}
},this);
},_postFilterContent:function(dom,_b0e){
var ec;
if(!dojo.isString(dom)){
dom=dom||this.editNode;
if(this.contentDomPostFilters.length){
if(_b0e){
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 _b13=dojo.byId(dijit._scopeName+"._editor.RichText.savedContent");
_b13.value+=this._SEPARATOR+this.name+":"+this.getValue();
},escapeXml:function(str,_b15){
str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");
if(!_b15){
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,_b19){
if(this.isClosed){
return false;
}
if(!arguments.length){
save=true;
}
this._content=this.getValue();
var _b1a=(this.savedContent!=this._content);
if(this.interval){
clearInterval(this.interval);
}
if(this._webkitListener){
dojo.disconnect(this._webkitListener);
delete this._webkitListener;
}
if(dojo.isIE){
this.iframe.onfocus=null;
}
this.iframe._loadFunc=null;
if(this.textarea){
with(this.textarea.style){
position="";
left=top="";
if(dojo.isIE){
overflow=this.__overflow;
this.__overflow=null;
}
}
this.textarea.value=save?this._content:this.savedContent;
dojo._destroyElement(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;
if(this.window&&this.window._frameElement){
this.window._frameElement=null;
}
this.window=null;
this.document=null;
this.editingArea=null;
this.editorObject=null;
return _b1a;
},destroyRendering:function(_b1b){
this.inherited(arguments,[true]);
},destroy:function(){
if(!this.isClosed){
this.close(false);
}
this.inherited("destroy",arguments);
},_removeMozBogus:function(html){
return html.replace(/\stype="_moz"/gi,"").replace(/\s_moz_dirty=""/gi,"");
},_removeSafariBogus:function(html){
return html.replace(/\sclass="webkit-block-placeholder"/gi,"");
},_fixContentForMoz:function(html){
return html.replace(/<(\/)?strong([ \>])/gi,"<$1b$2").replace(/<(\/)?em([ \>])/gi,"<$1i$2");
},_preFixUrlAttributes:function(html){
return html.replace(/(?:(<a(?=\s).*?\shref=)("|')(.*?)\2)|(?:(<a\s.*?href=)([^"'][^ >]+))/gi,"$1$4$2$3$5$2 _djrealurl=$2$3$5$2").replace(/(?:(<img(?=\s).*?\ssrc=)("|')(.*?)\2)|(?:(<img\s.*?src=)([^"'][^ >]+))/gi,"$1$4$2$3$5$2 _djrealurl=$2$3$5$2");
}});
}
if(!dojo._hasResource["dijit.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>",tabIndex:"0",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);
}});
dojo.declare("dijit.ToolbarSeparator",[dijit._Widget,dijit._Templated],{templateString:"<div class=\"dijitToolbarSeparator dijitInline\"></div>",postCreate:function(){
dojo.setSelectable(this.domNode,false);
},isFocusable:function(){
return false;
}});
}
if(!dojo._hasResource["dijit._editor._Plugin"]){
dojo._hasResource["dijit._editor._Plugin"]=true;
dojo.provide("dijit._editor._Plugin");
dojo.declare("dijit._editor._Plugin",null,{constructor:function(args,node){
if(args){
dojo.mixin(this,args);
}
this._connects=[];
},editor:null,iconClassPrefix:"dijitEditorIcon",button:null,queryCommand:null,command:"",commandArg:null,useDefaultCommand:true,buttonClass:dijit.form.Button,getLabel:function(key){
return this.editor.commands[key];
},_initButton:function(_b23){
if(this.command.length){
var _b24=this.getLabel(this.command);
var _b25=this.iconClassPrefix+" "+this.iconClassPrefix+this.command.charAt(0).toUpperCase()+this.command.substr(1);
if(!this.button){
_b23=dojo.mixin({label:_b24,showLabel:false,iconClass:_b25,dropDown:this.dropDown,tabIndex:"-1"},_b23||{});
this.button=new this.buttonClass(_b23);
}
}
},destroy:function(f){
dojo.forEach(this._connects,dojo.disconnect);
},connect:function(o,f,tf){
this._connects.push(dojo.connect(o,f,this,tf));
},updateState:function(){
var e=this.editor;
var c=this.command;
if(!e){
return;
}
if(!e.isLoaded){
return;
}
if(!c.length){
return;
}
if(this.button){
try{
var _b2c=e.queryCommandEnabled(c);
if(this.enabled!==_b2c){
this.enabled=_b2c;
this.button.attr("disabled",!_b2c);
}
if(typeof this.button.checked=="boolean"){
var _b2d=e.queryCommandState(c);
if(this.checked!==_b2d){
this.checked=_b2d;
this.button.attr("checked",e.queryCommandState(c));
}
}
}
catch(err){
console.debug(err);
}
}
},setEditor:function(_b2e){
this.editor=_b2e;
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(_b2f){
if(this.button){
_b2f.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(_b31){
this.editor=_b31;
if(this.blockNodeForEnter=="BR"){
if(dojo.isIE){
_b31.contentDomPreFilters.push(dojo.hitch(this,"regularPsToSingleLinePs"));
_b31.contentDomPostFilters.push(dojo.hitch(this,"singleLinePsToRegularPs"));
_b31.onLoadDeferred.addCallback(dojo.hitch(this,"_fixNewLineBehaviorForIE"));
}else{
_b31.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);
_b31.addKeyHandler(13,0,0,h);
_b31.addKeyHandler(13,0,1,h);
this.connect(this.editor,"onKeyPressed","onKeyPressed");
}
}
},connect:function(o,f,tf){
if(!this._connects){
this._connects=[];
}
this._connects.push(dojo.connect(o,f,this,tf));
},destroy:function(){
dojo.forEach(this._connects,dojo.disconnect);
this._connects=[];
},onKeyPressed:function(e){
if(this._checkListLater){
if(dojo.withGlobal(this.editor.window,"isCollapsed",dijit)){
var _b38=dojo.withGlobal(this.editor.window,"getAncestorElement",dijit._editor.selection,["LI"]);
if(!_b38){
dijit._editor.RichText.prototype.execCommand.call(this.editor,"formatblock",this.blockNodeForEnter);
var _b39=dojo.withGlobal(this.editor.window,"getAncestorElement",dijit._editor.selection,[this.blockNodeForEnter]);
if(_b39){
_b39.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(_b38.parentNode.parentNode.nodeName=="LI"){
_b38=_b38.parentNode.parentNode;
}
}
var fc=_b38.firstChild;
if(fc&&fc.nodeType==1&&(fc.nodeName=="UL"||fc.nodeName=="OL")){
_b38.insertBefore(fc.ownerDocument.createTextNode(" "),fc);
var _b3c=dijit.range.create(this.editor.window);
_b3c.setStart(_b38.firstChild,0);
var _b3d=dijit.range.getSelection(this.editor.window,true);
_b3d.removeAllRanges();
_b3d.addRange(_b3c);
}
}
}
this._checkListLater=false;
}
if(this._pressedEnterInBlock){
if(this._pressedEnterInBlock.previousSibling){
this.removeTrailingBr(this._pressedEnterInBlock.previousSibling);
}
delete this._pressedEnterInBlock;
}
},bogusHtmlContent:"&nbsp;",blockNodes:/^(?:P|H1|H2|H3|H4|H5|H6|LI)$/,handleEnterKey:function(e){
if(!this.blockNodeForEnter){
return true;
}
var _b3f,_b40,_b41,doc=this.editor.document,br;
if(e.shiftKey||this.blockNodeForEnter=="BR"){
var _b44=dojo.withGlobal(this.editor.window,"getParentElement",dijit._editor.selection);
var _b45=dijit.range.getAncestor(_b44,this.blockNodes);
if(_b45){
if(!e.shiftKey&&_b45.tagName=="LI"){
return true;
}
_b3f=dijit.range.getSelection(this.editor.window);
_b40=_b3f.getRangeAt(0);
if(!_b40.collapsed){
_b40.deleteContents();
}
if(dijit.range.atBeginningOfContainer(_b45,_b40.startContainer,_b40.startOffset)){
if(e.shiftKey){
br=doc.createElement("br");
_b41=dijit.range.create(this.editor.window);
_b45.insertBefore(br,_b45.firstChild);
_b41.setStartBefore(br.nextSibling);
_b3f.removeAllRanges();
_b3f.addRange(_b41);
}else{
dojo.place(br,_b45,"before");
}
}else{
if(dijit.range.atEndOfContainer(_b45,_b40.startContainer,_b40.startOffset)){
_b41=dijit.range.create(this.editor.window);
br=doc.createElement("br");
if(e.shiftKey){
_b45.appendChild(br);
_b45.appendChild(doc.createTextNode(" "));
_b41.setStart(_b45.lastChild,0);
}else{
dojo.place(br,_b45,"after");
_b41.setStartAfter(_b45);
}
_b3f.removeAllRanges();
_b3f.addRange(_b41);
}else{
return true;
}
}
}else{
dijit._editor.RichText.prototype.execCommand.call(this.editor,"inserthtml","<br>");
}
return false;
}
var _b46=true;
_b3f=dijit.range.getSelection(this.editor.window);
_b40=_b3f.getRangeAt(0);
if(!_b40.collapsed){
_b40.deleteContents();
}
var _b47=dijit.range.getBlockAncestor(_b40.endContainer,null,this.editor.editNode);
var _b48=_b47.blockNode;
if((this._checkListLater=(_b48&&(_b48.nodeName=="LI"||_b48.parentNode.nodeName=="LI")))){
if(dojo.isMoz){
this._pressedEnterInBlock=_b48;
}
if(/^(\s|&nbsp;|\xA0|<span\b[^>]*\bclass=['"]Apple-style-span['"][^>]*>(\s|&nbsp;|\xA0)<\/span>)?(<br>)?$/.test(_b48.innerHTML)){
_b48.innerHTML="";
if(dojo.isSafari){
_b41=dijit.range.create(this.editor.window);
_b41.setStart(_b48,0);
_b3f.removeAllRanges();
_b3f.addRange(_b41);
}
this._checkListLater=false;
}
return true;
}
if(!_b47.blockNode||_b47.blockNode===this.editor.editNode){
try{
dijit._editor.RichText.prototype.execCommand.call(this.editor,"formatblock",this.blockNodeForEnter);
}
catch(e2){
}
_b47={blockNode:dojo.withGlobal(this.editor.window,"getAncestorElement",dijit._editor.selection,[this.blockNodeForEnter]),blockContainer:this.editor.editNode};
if(_b47.blockNode){
if(_b47.blockNode!=this.editor.editNode&&(!(_b47.blockNode.textContent||_b47.blockNode.innerHTML).replace(/^\s+|\s+$/g,"").length)){
this.removeTrailingBr(_b47.blockNode);
return false;
}
}else{
_b47.blockNode=this.editor.editNode;
}
_b3f=dijit.range.getSelection(this.editor.window);
_b40=_b3f.getRangeAt(0);
}
var _b49=doc.createElement(this.blockNodeForEnter);
_b49.innerHTML=this.bogusHtmlContent;
this.removeTrailingBr(_b47.blockNode);
if(dijit.range.atEndOfContainer(_b47.blockNode,_b40.endContainer,_b40.endOffset)){
if(_b47.blockNode===_b47.blockContainer){
_b47.blockNode.appendChild(_b49);
}else{
dojo.place(_b49,_b47.blockNode,"after");
}
_b46=false;
_b41=dijit.range.create(this.editor.window);
_b41.setStart(_b49,0);
_b3f.removeAllRanges();
_b3f.addRange(_b41);
if(this.editor.height){
dijit.scrollIntoView(_b49);
}
}else{
if(dijit.range.atBeginningOfContainer(_b47.blockNode,_b40.startContainer,_b40.startOffset)){
dojo.place(_b49,_b47.blockNode,_b47.blockNode===_b47.blockContainer?"first":"before");
if(_b49.nextSibling&&this.editor.height){
_b41=dijit.range.create(this.editor.window);
_b41.setStart(_b49.nextSibling,0);
_b3f.removeAllRanges();
_b3f.addRange(_b41);
dijit.scrollIntoView(_b49.nextSibling);
}
_b46=false;
}else{
if(dojo.isMoz){
this._pressedEnterInBlock=_b47.blockNode;
}
}
}
return _b46;
},removeTrailingBr:function(_b4a){
var para=/P|DIV|LI/i.test(_b4a.tagName)?_b4a:dijit._editor.selection.getParentOfType(_b4a,["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._destroyElement(para.lastChild);
}
}
if(!para.childNodes.length){
para.innerHTML=this.bogusHtmlContent;
}
},_fixNewLineBehaviorForIE:function(d){
if(this.editor.document.__INSERTED_EDITIOR_NEWLINE_CSS===undefined){
var _b4d="p{margin:0 !important;}";
var _b4e=function(_b4f,doc,URI){
if(!_b4f){
return null;
}
if(!doc){
doc=document;
}
var _b52=doc.createElement("style");
_b52.setAttribute("type","text/css");
var head=doc.getElementsByTagName("head")[0];
if(!head){
console.debug("No head tag in document, aborting styles");
return null;
}else{
head.appendChild(_b52);
}
if(_b52.styleSheet){
var _b54=function(){
try{
_b52.styleSheet.cssText=_b4f;
}
catch(e){
console.debug(e);
}
};
if(_b52.styleSheet.disabled){
setTimeout(_b54,10);
}else{
_b54();
}
}else{
var _b55=doc.createTextNode(_b4f);
_b52.appendChild(_b55);
}
return _b52;
};
_b4e(_b4d,this.editor.document);
this.editor.document.__INSERTED_EDITIOR_NEWLINE_CSS=true;
return d;
}
return null;
},regularPsToSingleLinePs:function(_b56,_b57){
function wrapLinesInPs(el){
function wrapNodes(_b59){
var newP=_b59[0].ownerDocument.createElement("p");
_b59[0].parentNode.insertBefore(newP,_b59[0]);
dojo.forEach(_b59,function(node){
newP.appendChild(node);
});
};
var _b5c=0;
var _b5d=[];
var _b5e;
while(_b5c<el.childNodes.length){
_b5e=el.childNodes[_b5c];
if(_b5e.nodeType==3||(_b5e.nodeType==1&&_b5e.nodeName!="BR"&&dojo.style(_b5e,"display")!="block")){
_b5d.push(_b5e);
}else{
var _b5f=_b5e.nextSibling;
if(_b5d.length){
wrapNodes(_b5d);
_b5c=(_b5c+1)-_b5d.length;
if(_b5e.nodeName=="BR"){
dojo._destroyElement(_b5e);
}
}
_b5d=[];
}
_b5c++;
}
if(_b5d.length){
wrapNodes(_b5d);
}
};
function splitP(el){
var _b61=null;
var _b62=[];
var _b63=el.childNodes.length-1;
for(var i=_b63;i>=0;i--){
_b61=el.childNodes[i];
if(_b61.nodeName=="BR"){
var newP=_b61.ownerDocument.createElement("p");
dojo.place(newP,el,"after");
if(_b62.length==0&&i!=_b63){
newP.innerHTML="&nbsp;";
}
dojo.forEach(_b62,function(node){
newP.appendChild(node);
});
dojo._destroyElement(_b61);
_b62=[];
}else{
_b62.unshift(_b61);
}
}
};
var _b67=[];
var ps=_b56.getElementsByTagName("p");
dojo.forEach(ps,function(p){
_b67.push(p);
});
dojo.forEach(_b67,function(p){
if((p.previousSibling)&&(p.previousSibling.nodeName=="P"||dojo.style(p.previousSibling,"display")!="block")){
var newP=p.parentNode.insertBefore(this.document.createElement("p"),p);
newP.innerHTML=_b57?"":"&nbsp;";
}
splitP(p);
},this.editor);
wrapLinesInPs(_b56);
return _b56;
},singleLinePsToRegularPs:function(_b6c){
function getParagraphParents(node){
var ps=node.getElementsByTagName("p");
var _b6f=[];
for(var i=0;i<ps.length;i++){
var p=ps[i];
var _b72=false;
for(var k=0;k<_b6f.length;k++){
if(_b6f[k]===p.parentNode){
_b72=true;
break;
}
}
if(!_b72){
_b6f.push(p.parentNode);
}
}
return _b6f;
};
function isParagraphDelimiter(node){
if(node.nodeType!=1||node.tagName!="P"){
return dojo.style(node,"display")=="block";
}else{
if(!node.childNodes.length||node.innerHTML=="&nbsp;"){
return true;
}
}
return false;
};
var _b75=getParagraphParents(_b6c);
for(var i=0;i<_b75.length;i++){
var _b77=_b75[i];
var _b78=null;
var node=_b77.firstChild;
var _b7a=null;
while(node){
if(node.nodeType!="1"||node.tagName!="P"){
_b78=null;
}else{
if(isParagraphDelimiter(node)){
_b7a=node;
_b78=null;
}else{
if(_b78==null){
_b78=node;
}else{
if((!_b78.lastChild||_b78.lastChild.nodeName!="BR")&&(node.firstChild)&&(node.firstChild.nodeName!="BR")){
_b78.appendChild(this.editor.document.createElement("br"));
}
while(node.firstChild){
_b78.appendChild(node.firstChild);
}
_b7a=node;
}
}
}
node=node.nextSibling;
if(_b7a){
dojo._destroyElement(_b7a);
_b7a=null;
}
}
}
return _b6c;
}});
}
if(!dojo._hasResource["dijit.Editor"]){
dojo._hasResource["dijit.Editor"]=true;
dojo.provide("dijit.Editor");
dojo.declare("dijit.Editor",dijit._editor.RichText,{plugins:null,extraPlugins:null,constructor:function(){
if(!dojo.isArray(this.plugins)){
this.plugins=["undo","redo","|","cut","copy","paste","|","bold","italic","underline","strikethrough","|","insertOrderedList","insertUnorderedList","indent","outdent","|","justifyLeft","justifyRight","justifyCenter","justifyFull","dijit._editor.plugins.EnterKeyHandling"];
}
this._plugins=[];
this._editInterval=this.editActionInterval*1000;
if(dojo.isIE){
this.events.push("onBeforeDeactivate");
}
},postCreate:function(){
if(this.customUndo){
dojo["require"]("dijit._editor.range");
this._steps=this._steps.slice(0);
this._undoedSteps=this._undoedSteps.slice(0);
}
if(dojo.isArray(this.extraPlugins)){
this.plugins=this.plugins.concat(this.extraPlugins);
}
this.inherited(arguments);
this.commands=dojo.i18n.getLocalization("dijit._editor","commands",this.lang);
if(!this.toolbar){
this.toolbar=new dijit.Toolbar({});
dojo.place(this.toolbar.domNode,this.editingArea,"before");
}
dojo.forEach(this.plugins,this.addPlugin,this);
this.onNormalizedDisplayChanged();
this.toolbar.startup();
},destroy:function(){
dojo.forEach(this._plugins,function(p){
if(p&&p.destroy){
p.destroy();
}
});
this._plugins=[];
this.toolbar.destroy();
delete this.toolbar;
this.inherited(arguments);
},addPlugin:function(_b7c,_b7d){
var args=dojo.isString(_b7c)?{name:_b7c}:_b7c;
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",_b7c);
return;
}
_b7c=o.plugin;
}
if(arguments.length>1){
this._plugins[_b7d]=_b7c;
}else{
this._plugins.push(_b7c);
}
_b7c.setEditor(this);
if(dojo.isFunction(_b7c.setToolbar)){
_b7c.setToolbar(this.toolbar);
}
},startup:function(){
},resize:function(){
dijit.layout._LayoutWidget.prototype.resize.apply(this,arguments);
},layout:function(){
this.editingArea.style.height=(this._contentBox.h-dojo.marginBox(this.toolbar.domNode).h)+"px";
if(this.iframe){
this.iframe.style.height="100%";
}
this._layoutMode=true;
},_onIEMouseDown:function(e){
delete this._savedSelection;
if(e.target.tagName=="BODY"){
setTimeout(dojo.hitch(this,"placeCursorAtEnd"),0);
}
this.inherited(arguments);
},onBeforeDeactivate:function(e){
if(this.customUndo){
this.endEditing(true);
}
this._saveSelection();
},customUndo:dojo.isIE,editActionInterval:3,beginEditing:function(cmd){
if(!this._inEditing){
this._inEditing=true;
this._beginEditing(cmd);
}
if(this.editActionInterval>0){
if(this._editTimer){
clearTimeout(this._editTimer);
}
this._editTimer=setTimeout(dojo.hitch(this,this.endEditing),this._editInterval);
}
},_steps:[],_undoedSteps:[],execCommand:function(cmd){
if(this.customUndo&&(cmd=="undo"||cmd=="redo")){
return this[cmd]();
}else{
if(this.customUndo){
this.endEditing();
this._beginEditing();
}
try{
var r=this.inherited("execCommand",arguments);
if(dojo.isSafari&&cmd=="paste"&&!r){
var su=dojo.string.substitute,_isM=navigator.userAgent.indexOf("Macintosh")!=-1;
alert(su(this.commands.systemShortcut,[this.commands[cmd],su(this.commands[_isM?"appleKey":"ctrlKey"],["V"])]));
}
}
catch(e){
if(dojo.isMoz&&/copy|cut|paste/.test(cmd)){
var sub=dojo.string.substitute,_b89={cut:"X",copy:"C",paste:"V"},_b8a=navigator.userAgent.indexOf("Macintosh")!=-1;
alert(sub(this.commands.systemShortcutFF,[this.commands[cmd],sub(this.commands[_b8a?"appleKey":"ctrlKey"],[_b89[cmd]])]));
}
r=false;
}
if(this.customUndo){
this._endEditing();
}
return r;
}
},queryCommandEnabled:function(cmd){
if(this.customUndo&&(cmd=="undo"||cmd=="redo")){
return cmd=="undo"?(this._steps.length>1):(this._undoedSteps.length>0);
}else{
return this.inherited("queryCommandEnabled",arguments);
}
},focus:function(){
var _b8c=0;
if(this._savedSelection&&dojo.isIE){
_b8c=dijit._curFocus!=this.editNode;
}
this.inherited(arguments);
if(_b8c){
this._restoreSelection();
}
},_moveToBookmark:function(b){
var _b8e=b;
if(dojo.isIE){
if(dojo.isArray(b)){
_b8e=[];
dojo.forEach(b,function(n){
_b8e.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);
_b8e=r;
}
dojo.withGlobal(this.window,"moveToBookmark",dijit,[_b8e]);
},_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(_b96){
if(this._editTimer){
clearTimeout(this._editTimer);
}
if(this._inEditing){
this._endEditing(_b96);
this._inEditing=false;
}
},_getBookmark:function(){
var b=dojo.withGlobal(this.window,dijit.getBookmark);
var tmp=[];
if(dojo.isIE){
if(dojo.isArray(b)){
dojo.forEach(b,function(n){
tmp.push(dijit.range.getIndex(n,this.editNode).o);
},this);
b=tmp;
}
}else{
tmp=dijit.range.getIndex(b.startContainer,this.editNode).o;
b={startContainer:tmp,startOffset:b.startOffset,endContainer:b.endContainer===b.startContainer?tmp:dijit.range.getIndex(b.endContainer,this.editNode).o,endOffset:b.endOffset};
}
return b;
},_beginEditing:function(cmd){
if(this._steps.length===0){
this._steps.push({"text":this.savedContent,"bookmark":this._getBookmark()});
}
},_endEditing:function(_b9b){
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("onKeyDown",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("onKeyDown",arguments);
switch(k){
case ks.ENTER:
case ks.BACKSPACE:
case ks.DELETE:
this.beginEditing();
break;
case 88:
case 86:
if(e.ctrlKey&&!e.altKey&&!e.metaKey){
this.endEditing();
if(e.keyCode==88){
this.beginEditing("cut");
setTimeout(dojo.hitch(this,this.endEditing),1);
}else{
this.beginEditing("paste");
setTimeout(dojo.hitch(this,this.endEditing),1);
}
break;
}
default:
if(!e.ctrlKey&&!e.altKey&&!e.metaKey&&(e.keyCode<dojo.keys.F1||e.keyCode>dojo.keys.F15)){
this.beginEditing();
break;
}
case ks.ALT:
this.endEditing();
break;
case ks.UP_ARROW:
case ks.DOWN_ARROW:
case ks.LEFT_ARROW:
case ks.RIGHT_ARROW:
case ks.HOME:
case ks.END:
case ks.PAGE_UP:
case ks.PAGE_DOWN:
this.endEditing(true);
break;
case ks.CTRL:
case ks.SHIFT:
case ks.TAB:
break;
}
},_onBlur:function(){
this.inherited("_onBlur",arguments);
this.endEditing(true);
},_saveSelection:function(){
this._savedSelection=this._getBookmark();
},_restoreSelection:function(){
if(this._savedSelection){
if(dojo.withGlobal(this.window,"isCollapsed",dijit)){
this._moveToBookmark(this._savedSelection);
}
delete this._savedSelection;
}
},_onFocus:function(){
setTimeout(dojo.hitch(this,"_restoreSelection"),0);
this.inherited(arguments);
},onClick:function(){
this.endEditing(true);
this.inherited("onClick",arguments);
}});
dojo.subscribe(dijit._scopeName+".Editor.getPlugin",null,function(o){
if(o.plugin){
return;
}
var args=o.args,p;
var _p=dijit._editor._Plugin;
var name=args.name;
switch(name){
case "undo":
case "redo":
case "cut":
case "copy":
case "paste":
case "insertOrderedList":
case "insertUnorderedList":
case "indent":
case "outdent":
case "justifyCenter":
case "justifyFull":
case "justifyLeft":
case "justifyRight":
case "delete":
case "selectAll":
case "removeFormat":
case "unlink":
case "insertHorizontalRule":
p=new _p({command:name});
break;
case "bold":
case "italic":
case "underline":
case "strikethrough":
case "subscript":
case "superscript":
p=new _p({buttonClass:dijit.form.ToggleButton,command:name});
break;
case "|":
p=new _p({button:new dijit.ToolbarSeparator()});
}
o.plugin=p;
});
}
if(!dojo._hasResource["dijit.Menu"]){
dojo._hasResource["dijit.Menu"]=true;
dojo.provide("dijit.Menu");
dojo.declare("dijit.Menu",[dijit._Widget,dijit._Templated,dijit._KeyNavContainer],{constructor:function(){
this._bindings=[];
},templateString:"<table class=\"dijit dijitMenu dijitReset dijitMenuTable\" waiRole=\"menu\" dojoAttachEvent=\"onkeypress:_onKeyPress\">"+"<tbody class=\"dijitReset\" dojoAttachPoint=\"containerNode\"></tbody>"+"</table>",targetNodeIds:[],contextMenuForWindow:false,leftClickToOpen:false,parentMenu:null,popupDelay:500,_contextMenuWithMouse:false,postCreate:function(){
if(this.contextMenuForWindow){
this.bindDomNode(dojo.body());
}else{
dojo.forEach(this.targetNodeIds,this.bindDomNode,this);
}
this.connectKeyNavHandlers([dojo.keys.UP_ARROW],[dojo.keys.DOWN_ARROW]);
},startup:function(){
if(this._started){
return;
}
dojo.forEach(this.getChildren(),function(_ba5){
_ba5.startup();
});
this.startupKeyNavChildren();
this.inherited(arguments);
},onExecute:function(){
},onCancel:function(_ba6){
},_moveToPopup:function(evt){
if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled){
this.focusedChild._onClick(evt);
}
},_onKeyPress:function(evt){
if(evt.ctrlKey||evt.altKey){
return;
}
switch(evt.charOrCode){
case dojo.keys.RIGHT_ARROW:
this._moveToPopup(evt);
dojo.stopEvent(evt);
break;
case dojo.keys.LEFT_ARROW:
if(this.parentMenu){
this.onCancel(false);
}else{
dojo.stopEvent(evt);
}
break;
}
},onItemHover:function(item){
this.focusChild(item);
if(this.focusedChild.popup&&!this.focusedChild.disabled&&!this.hover_timer){
this.hover_timer=setTimeout(dojo.hitch(this,"_openPopup"),this.popupDelay);
}
},_onChildBlur:function(item){
dijit.popup.close(item.popup);
item._blur();
this._stopPopupTimer();
},onItemUnhover:function(item){
},_stopPopupTimer:function(){
if(this.hover_timer){
clearTimeout(this.hover_timer);
this.hover_timer=null;
}
},_getTopMenu:function(){
for(var top=this;top.parentMenu;top=top.parentMenu){
}
return top;
},onItemClick:function(item,evt){
if(item.disabled){
return false;
}
if(item.popup){
if(!this.is_open){
this._openPopup();
}
}else{
this.onExecute();
item.onClick(evt);
}
},_iframeContentWindow:function(_baf){
var win=dijit.getDocumentWindow(dijit.Menu._iframeContentDocument(_baf))||dijit.Menu._iframeContentDocument(_baf)["__parent__"]||(_baf.name&&dojo.doc.frames[_baf.name])||null;
return win;
},_iframeContentDocument:function(_bb1){
var doc=_bb1.contentDocument||(_bb1.contentWindow&&_bb1.contentWindow.document)||(_bb1.name&&dojo.doc.frames[_bb1.name]&&dojo.doc.frames[_bb1.name].document)||null;
return doc;
},bindDomNode:function(node){
node=dojo.byId(node);
var win=dijit.getDocumentWindow(node.ownerDocument);
if(node.tagName.toLowerCase()=="iframe"){
win=this._iframeContentWindow(node);
node=dojo.withGlobal(win,dojo.body);
}
var cn=(node==dojo.body()?dojo.doc:node);
node[this.id]=this._bindings.push([dojo.connect(cn,(this.leftClickToOpen)?"onclick":"oncontextmenu",this,"_openMyself"),dojo.connect(cn,"onkeydown",this,"_contextKey"),dojo.connect(cn,"onmousedown",this,"_contextMouse")]);
},unBindDomNode:function(_bb6){
var node=dojo.byId(_bb6);
if(node){
var bid=node[this.id]-1,b=this._bindings[bid];
dojo.forEach(b,dojo.disconnect);
delete this._bindings[bid];
}
},_contextKey:function(e){
this._contextMenuWithMouse=false;
if(e.keyCode==dojo.keys.F10){
dojo.stopEvent(e);
if(e.shiftKey&&e.type=="keydown"){
var _e={target:e.target,pageX:e.pageX,pageY:e.pageY};
_e.preventDefault=_e.stopPropagation=function(){
};
window.setTimeout(dojo.hitch(this,function(){
this._openMyself(_e);
}),1);
}
}
},_contextMouse:function(e){
this._contextMenuWithMouse=true;
},_openMyself:function(e){
if(this.leftClickToOpen&&e.button>0){
return;
}
dojo.stopEvent(e);
var x,y;
if(dojo.isSafari||this._contextMenuWithMouse){
x=e.pageX;
y=e.pageY;
}else{
var _bc0=dojo.coords(e.target,true);
x=_bc0.x+10;
y=_bc0.y+10;
}
var self=this;
var _bc2=dijit.getFocus(this);
function closeAndRestoreFocus(){
dijit.focus(_bc2);
dijit.popup.close(self);
};
dijit.popup.open({popup:this,x:x,y:y,onExecute:closeAndRestoreFocus,onCancel:closeAndRestoreFocus,orient:this.isLeftToRight()?"L":"R"});
this.focus();
this._onBlur=function(){
this.inherited("_onBlur",arguments);
dijit.popup.close(this);
};
},onOpen:function(e){
this.isShowingNow=true;
},onClose:function(){
this._stopPopupTimer();
this.parentMenu=null;
this.isShowingNow=false;
this.currentPopup=null;
if(this.focusedChild){
this._onChildBlur(this.focusedChild);
this.focusedChild=null;
}
},_openPopup:function(){
this._stopPopupTimer();
var _bc4=this.focusedChild;
var _bc5=_bc4.popup;
if(_bc5.isShowingNow){
return;
}
_bc5.parentMenu=this;
var self=this;
dijit.popup.open({parent:this,popup:_bc5,around:_bc4.domNode,orient:this.isLeftToRight()?{"TR":"TL","TL":"TR"}:{"TL":"TR","TR":"TL"},onCancel:function(){
dijit.popup.close(_bc5);
_bc4.focus();
self.currentPopup=null;
}});
this.currentPopup=_bc5;
if(_bc5.focus){
_bc5.focus();
}
},uninitialize:function(){
dojo.forEach(this.targetNodeIds,this.unBindDomNode,this);
this.inherited(arguments);
}});
dojo.declare("dijit.MenuItem",[dijit._Widget,dijit._Templated,dijit._Contained],{templateString:"<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" waiRole=\"menuitem\" tabIndex=\"-1\""+"dojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">"+"<td class=\"dijitReset\" waiRole=\"presentation\"><div class=\"dijitMenuItemIcon\" dojoAttachPoint=\"iconNode\"></div></td>"+"<td class=\"dijitReset dijitMenuItemLabel\" dojoAttachPoint=\"containerNode\"></td>"+"<td class=\"dijitReset dijitMenuArrowCell\" waiRole=\"presentation\">"+"<div dojoAttachPoint=\"arrowWrapper\" style=\"display: none\">"+"<div class=\"dijitMenuExpand\"></div>"+"<span class=\"dijitMenuExpandA11y\">+</span>"+"</div>"+"</td>"+"</tr>",attributeMap:dojo.mixin(dojo.clone(dijit._Widget.prototype.attributeMap),{label:{node:"containerNode",type:"innerHTML"},iconClass:{node:"iconNode",type:"class"}}),label:"",iconClass:"",disabled:false,_fillContent:function(_bc7){
if(_bc7&&!("label" in this.params)){
this.attr("label",_bc7.innerHTML);
}
},postCreate:function(){
dojo.setSelectable(this.domNode,false);
dojo.attr(this.containerNode,"id",this.id+"_text");
dijit.setWaiState(this.domNode,"labelledby",this.id+"_text");
},_onHover:function(){
this.getParent().onItemHover(this);
},_onUnhover:function(){
this.getParent().onItemUnhover(this);
},_onClick:function(evt){
this.getParent().onItemClick(this,evt);
dojo.stopEvent(evt);
},onClick:function(evt){
},focus:function(){
dojo.addClass(this.domNode,"dijitMenuItemHover");
try{
dijit.focus(this.focusNode);
}
catch(e){
}
},_blur:function(){
dojo.removeClass(this.domNode,"dijitMenuItemHover");
},setLabel:function(_bca){
dojo.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use attr('label', ...) instead.","","2.0");
this.attr("label",_bca);
},setDisabled:function(_bcb){
dojo.deprecated("dijit.Menu.setDisabled() is deprecated.  Use attr('disabled', bool) instead.","","2.0");
this.attr("disabled",_bcb);
},_setDisabledAttr:function(_bcc){
this.disabled=_bcc;
dojo[_bcc?"addClass":"removeClass"](this.domNode,"dijitMenuItemDisabled");
dijit.setWaiState(this.focusNode,"disabled",_bcc?"true":"false");
}});
dojo.declare("dijit.PopupMenuItem",dijit.MenuItem,{_fillContent:function(){
if(this.srcNodeRef){
var _bcd=dojo.query("*",this.srcNodeRef);
dijit.PopupMenuItem.superclass._fillContent.call(this,_bcd[0]);
this.dropDownContainer=this.srcNodeRef;
}
},startup:function(){
if(this._started){
return;
}
this.inherited(arguments);
if(!this.popup){
var node=dojo.query("[widgetId]",this.dropDownContainer)[0];
this.popup=dijit.byNode(node);
}
dojo.body().appendChild(this.popup.domNode);
this.popup.domNode.style.display="none";
dojo.style(this.arrowWrapper,"display","");
dijit.setWaiState(this.focusNode,"haspopup","true");
},destroyDescendants:function(){
if(this.popup){
this.popup.destroyRecursive();
delete this.popup;
}
this.inherited(arguments);
}});
dojo.declare("dijit.MenuSeparator",[dijit._Widget,dijit._Templated,dijit._Contained],{templateString:"<tr class=\"dijitMenuSeparator\"><td colspan=3>"+"<div class=\"dijitMenuSeparatorTop\"></div>"+"<div class=\"dijitMenuSeparatorBottom\"></div>"+"</td></tr>",postCreate:function(){
dojo.setSelectable(this.domNode,false);
},isFocusable:function(){
return false;
}});
dojo.declare("dijit.CheckedMenuItem",dijit.MenuItem,{templateString:"<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" waiRole=\"menuitemcheckbox\" tabIndex=\"-1\""+"dojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">"+"<td class=\"dijitReset\" waiRole=\"presentation\"><div class=\"dijitMenuItemIcon dijitCheckedMenuItemIcon\" dojoAttachPoint=\"iconNode\">"+"<div class=\"dijitCheckedMenuItemIconChar\">&#10003;</div>"+"</div></td>"+"<td class=\"dijitReset dijitMenuItemLabel\" dojoAttachPoint=\"containerNode,labelNode\"></td>"+"<td class=\"dijitReset dijitMenuArrowCell\" waiRole=\"presentation\">"+"<div dojoAttachPoint=\"arrowWrapper\" style=\"display: none\">"+"<div class=\"dijitMenuExpand\"></div>"+"<span class=\"dijitMenuExpandA11y\">+</span>"+"</div>"+"</td>"+"</tr>",checked:false,_setCheckedAttr:function(_bcf){
dojo.toggleClass(this.iconNode,"dijitCheckedMenuItemIconChecked",_bcf);
dijit.setWaiState(this.domNode,"checked",_bcf);
this.checked=_bcf;
},onChange:function(_bd0){
},_onClick:function(e){
if(!this.disabled){
this.attr("checked",!this.checked);
this.onChange(this.checked);
}
this.inherited(arguments);
}});
}
if(!dojo._hasResource["dijit.Tooltip"]){
dojo._hasResource["dijit.Tooltip"]=true;
dojo.provide("dijit.Tooltip");
dojo.declare("dijit._MasterTooltip",[dijit._Widget,dijit._Templated],{duration:dijit.defaultDuration,templateString:"<div class=\"dijitTooltip dijitTooltipLeft\" id=\"dojoTooltip\">\r\n\t<div class=\"dijitTooltipContainer dijitTooltipContents\" dojoAttachPoint=\"containerNode\" waiRole='alert'></div>\r\n\t<div class=\"dijitTooltipConnector\"></div>\r\n</div>\r\n",postCreate:function(){
dojo.body().appendChild(this.domNode);
this.bgIframe=new dijit.BackgroundIframe(this.domNode);
this.fadeIn=dojo.fadeIn({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,"_onShow")});
this.fadeOut=dojo.fadeOut({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,"_onHide")});
},show:function(_bd2,_bd3,_bd4){
if(this.aroundNode&&this.aroundNode===_bd3){
return;
}
if(this.fadeOut.status()=="playing"){
this._onDeck=arguments;
return;
}
this.containerNode.innerHTML=_bd2;
this.domNode.style.top=(this.domNode.offsetTop+1)+"px";
var _bd5={};
var ltr=this.isLeftToRight();
dojo.forEach((_bd4&&_bd4.length)?_bd4:dijit.Tooltip.defaultPosition,function(pos){
switch(pos){
case "after":
_bd5[ltr?"BR":"BL"]=ltr?"BL":"BR";
break;
case "before":
_bd5[ltr?"BL":"BR"]=ltr?"BR":"BL";
break;
case "below":
_bd5[ltr?"BL":"BR"]=ltr?"TL":"TR";
_bd5[ltr?"BR":"BL"]=ltr?"TR":"TL";
break;
case "above":
default:
_bd5[ltr?"TL":"TR"]=ltr?"BL":"BR";
_bd5[ltr?"TR":"TL"]=ltr?"BR":"BL";
break;
}
});
var pos=dijit.placeOnScreenAroundElement(this.domNode,_bd3,_bd5,dojo.hitch(this,"orient"));
dojo.style(this.domNode,"opacity",0);
this.fadeIn.play();
this.isShowingNow=true;
this.aroundNode=_bd3;
},orient:function(node,_bda,_bdb){
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"}[_bda+"-"+_bdb];
},_onShow:function(){
if(dojo.isIE){
this.domNode.style.filter="";
}
},hide:function(_bdc){
if(this._onDeck&&this._onDeck[1]==_bdc){
this._onDeck=null;
}else{
if(this.aroundNode===_bdc){
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(_bdd,_bde,_bdf){
if(!dijit._masterTT){
dijit._masterTT=new dijit._MasterTooltip();
}
return dijit._masterTT.show(_bdd,_bde,_bdf);
};
dijit.hideTooltip=function(_be0){
if(!dijit._masterTT){
dijit._masterTT=new dijit._MasterTooltip();
}
return dijit._masterTT.hide(_be0);
};
dojo.declare("dijit.Tooltip",dijit._Widget,{label:"",showDelay:400,connectId:[],position:[],postCreate:function(){
dojo.addClass(this.domNode,"dijitTooltipData");
this._connectNodes=[];
dojo.forEach(this.connectId,function(id){
var node=dojo.byId(id);
if(node){
this._connectNodes.push(node);
dojo.forEach(["onMouseEnter","onMouseLeave","onFocus","onBlur"],function(_be3){
this.connect(node,_be3.toLowerCase(),"_"+_be3);
},this);
if(dojo.isIE){
node.style.zoom=1;
}
}
},this);
},_onMouseEnter:function(e){
this._onHover(e);
},_onMouseLeave:function(e){
this._onUnHover(e);
},_onFocus:function(e){
this._focus=true;
this._onHover(e);
this.inherited(arguments);
},_onBlur:function(e){
this._focus=false;
this._onUnHover(e);
this.inherited(arguments);
},_onHover:function(e){
if(!this._showTimer){
var _be9=e.target;
this._showTimer=setTimeout(dojo.hitch(this,function(){
this.open(_be9);
}),this.showDelay);
}
},_onUnHover:function(e){
if(this._focus){
return;
}
if(this._showTimer){
clearTimeout(this._showTimer);
delete this._showTimer;
}
this.close();
},open:function(_beb){
_beb=_beb||this._connectNodes[0];
if(!_beb){
return;
}
if(this._showTimer){
clearTimeout(this._showTimer);
delete this._showTimer;
}
dijit.showTooltip(this.label||this.domNode.innerHTML,_beb,this.position);
this._connectNode=_beb;
},close:function(){
if(this._connectNode){
dijit.hideTooltip(this._connectNode);
delete this._connectNode;
}
if(this._showTimer){
clearTimeout(this._showTimer);
delete this._showTimer;
}
},uninitialize:function(){
this.close();
}});
dijit.Tooltip.defaultPosition=["after","before"];
}
if(!dojo._hasResource["dijit.form.TextBox"]){
dojo._hasResource["dijit.form.TextBox"]=true;
dojo.provide("dijit.form.TextBox");
dojo.declare("dijit.form.TextBox",dijit.form._FormValueWidget,{trim:false,uppercase:false,lowercase:false,propercase:false,maxLength:"",templateString:"<input class=\"dijit dijitReset dijitLeft\" dojoAttachPoint='textbox,focusNode' name=\"${name}\"\r\n\tdojoAttachEvent='onmouseenter:_onMouse,onmouseleave:_onMouse,onfocus:_onMouse,onblur:_onMouse,onkeypress:_onKeyPress'\r\n\tautocomplete=\"off\" type=\"${type}\"\r\n\t/>\r\n",baseClass:"dijitTextBox",attributeMap:dojo.mixin(dojo.clone(dijit.form._FormValueWidget.prototype.attributeMap),{maxLength:"focusNode"}),_getValueAttr:function(){
return this.parse(this.attr("displayedValue"),this.constraints);
},_setValueAttr:function(_bec,_bed,_bee){
var _bef;
if(_bec!==undefined){
_bef=this.filter(_bec);
if(_bef!==null&&((typeof _bef!="number")||!isNaN(_bef))){
if(typeof _bee!="string"){
_bee=this.format(_bef,this.constraints);
}
}else{
_bee="";
}
}
if(_bee!=null&&_bee!=undefined){
this.textbox.value=_bee;
}
dijit.form.TextBox.superclass._setValueAttr.call(this,_bef,_bed);
},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(_bf0){
dojo.deprecated(this.declaredClass+"::setDisplayedValue() is deprecated. Use attr('displayedValue', ...) instead.","","2.0");
this.attr("displayedValue",_bf0);
},_setDisplayedValueAttr:function(_bf1){
this.textbox.value=_bf1;
this._setValueAttr(this.attr("value"));
},format:function(_bf2,_bf3){
return ((_bf2==null||_bf2==undefined)?"":(_bf2.toString?_bf2.toString():_bf2));
},parse:function(_bf4,_bf5){
return _bf4;
},postCreate:function(){
this.textbox.setAttribute("value",this.textbox.value);
this.inherited(arguments);
this._layoutHack();
},filter:function(val){
if(typeof val!="string"){
return val;
}
if(this.trim){
val=dojo.trim(val);
}
if(this.uppercase){
val=val.toUpperCase();
}
if(this.lowercase){
val=val.toLowerCase();
}
if(this.propercase){
val=val.replace(/[^\s]+/g,function(word){
return word.substring(0,1).toUpperCase()+word.substring(1);
});
}
return val;
},_setBlurValue:function(){
this._setValueAttr(this.attr("value"),(this.isValid?this.isValid():true));
},_onBlur:function(){
this._setBlurValue();
this.inherited(arguments);
}});
dijit.selectInputText=function(_bf8,_bf9,stop){
var _bfb=dojo.global;
var _bfc=dojo.doc;
_bf8=dojo.byId(_bf8);
if(isNaN(_bf9)){
_bf9=0;
}
if(isNaN(stop)){
stop=_bf8.value?_bf8.value.length:0;
}
_bf8.focus();
if(_bfc["selection"]&&dojo.body()["createTextRange"]){
if(_bf8.createTextRange){
var _bfd=_bf8.createTextRange();
with(_bfd){
collapse(true);
moveStart("character",_bf9);
moveEnd("character",stop);
select();
}
}
}else{
if(_bfb["getSelection"]){
var _bfe=_bfb.getSelection();
if(_bf8.setSelectionRange){
_bf8.setSelectionRange(_bf9,stop);
}
}
}
};
}
if(!dojo._hasResource["dijit.form.ValidationTextBox"]){
dojo._hasResource["dijit.form.ValidationTextBox"]=true;
dojo.provide("dijit.form.ValidationTextBox");
dojo.declare("dijit.form.ValidationTextBox",dijit.form.TextBox,{templateString:"<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\r\n\tid=\"widget_${id}\"\r\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\" waiRole=\"presentation\"\r\n\t><div style=\"overflow:hidden;\"\r\n\t\t><div class=\"dijitReset dijitValidationIcon\"><br></div\r\n\t\t><div class=\"dijitReset dijitValidationIconText\">&Chi;</div\r\n\t\t><div class=\"dijitReset dijitInputField\"\r\n\t\t\t><input class=\"dijitReset\" dojoAttachPoint='textbox,focusNode' dojoAttachEvent='onfocus:_update,onkeyup:_update,onblur:_onMouse,onkeypress:_onKeyPress' autocomplete=\"off\"\r\n\t\t\ttype='${type}' name='${name}'\r\n\t\t/></div\r\n\t></div\r\n></div>\r\n",baseClass:"dijitTextBox",required:false,promptMessage:"",invalidMessage:"$_unset_$",constraints:{},regExp:".*",regExpGen:function(_bff){
return this.regExp;
},state:"",tooltipPosition:[],_setValueAttr:function(){
this.inherited(arguments);
this.validate(this._focused);
},validator:function(_c00,_c01){
return (new RegExp("^(?:"+this.regExpGen(_c01)+")"+(this.required?"":"?")+"$")).test(_c00)&&(!this.required||!this._isEmpty(_c00))&&(this._isEmpty(_c00)||this.parse(_c00,_c01)!==undefined);
},_isValidSubset:function(){
return this.textbox.value.search(this._partialre)==0;
},isValid:function(_c02){
return this.validator(this.textbox.value,this.constraints);
},_isEmpty:function(_c03){
return /^\s*$/.test(_c03);
},getErrorMessage:function(_c04){
return this.invalidMessage;
},getPromptMessage:function(_c05){
return this.promptMessage;
},_maskValidSubsetError:true,validate:function(_c06){
var _c07="";
var _c08=this.disabled||this.isValid(_c06);
if(_c08){
this._maskValidSubsetError=true;
}
var _c09=!_c08&&_c06&&this._isValidSubset();
var _c0a=this._isEmpty(this.textbox.value);
this.state=(_c08||(!this._hasBeenBlurred&&_c0a)||_c09)?"":"Error";
if(this.state=="Error"){
this._maskValidSubsetError=false;
}
this._setStateClass();
dijit.setWaiState(this.focusNode,"invalid",_c08?"false":"true");
if(_c06){
if(_c0a){
_c07=this.getPromptMessage(true);
}
if(!_c07&&(this.state=="Error"||(_c09&&!this._maskValidSubsetError))){
_c07=this.getErrorMessage(true);
}
}
this.displayMessage(_c07);
return _c08;
},_message:"",displayMessage:function(_c0b){
if(this._message==_c0b){
return;
}
this._message=_c0b;
dijit.hideTooltip(this.domNode);
if(_c0b){
dijit.showTooltip(_c0b,this.domNode,this.tooltipPosition);
}
},_refreshState:function(){
this.validate(this._focused);
},_update:function(e){
this._refreshState();
this._onMouse(e);
},constructor:function(){
this.constraints={};
},postMixInProperties:function(){
this.inherited(arguments);
this.constraints.locale=this.lang;
this.messages=dojo.i18n.getLocalization("dijit.form","validate",this.lang);
if(this.invalidMessage=="$_unset_$"){
this.invalidMessage=this.messages.invalidMessage;
}
var p=this.regExpGen(this.constraints);
this.regExp=p;
var _c0e="";
if(p!=".*"){
this.regExp.replace(/\\.|\[\]|\[.*?[^\\]{1}\]|\{.*?\}|\(\?[=:!]|./g,function(re){
switch(re.charAt(0)){
case "{":
case "+":
case "?":
case "*":
case "^":
case "$":
case "|":
case "(":
_c0e+=re;
break;
case ")":
_c0e+="|$)";
break;
default:
_c0e+="(?:"+re+"|$)";
break;
}
});
}
try{
"".search(_c0e);
}
catch(e){
_c0e=this.regExp;
console.debug("RegExp error in "+this.declaredClass+": "+this.regExp);
}
this._partialre="^(?:"+_c0e+")$";
},_setDisabledAttr:function(_c10){
this.inherited(arguments);
if(this.valueNode){
this.valueNode.disabled=_c10;
}
this._refreshState();
},_setRequiredAttr:function(_c11){
this.required=_c11;
dijit.setWaiState(this.focusNode,"required",_c11);
this._refreshState();
},postCreate:function(){
if(dojo.isIE){
var s=dojo.getComputedStyle(this.focusNode);
if(s){
var ff=s.fontFamily;
if(ff){
this.focusNode.style.fontFamily=ff;
}
}
}
this.inherited(arguments);
}});
dojo.declare("dijit.form.MappedTextBox",dijit.form.ValidationTextBox,{serialize:function(val,_c15){
return val.toString?val.toString():"";
},toString:function(){
var val=this.filter(this.attr("value"));
return val!=null?(typeof val=="string"?val:this.serialize(val,this.constraints)):"";
},validate:function(){
this.valueNode.value=this.toString();
return this.inherited(arguments);
},buildRendering:function(){
this.inherited(arguments);
var _c17=this.textbox;
var _c18=(this.valueNode=dojo.doc.createElement("input"));
_c18.setAttribute("type",_c17.type);
dojo.style(_c18,"display","none");
this.valueNode.name=this.textbox.name;
dojo.place(_c18,_c17,"after");
this.textbox.name=this.textbox.name+"_displayed_";
this.textbox.removeAttribute("name");
},_setDisabledAttr:function(_c19){
this.inherited(arguments);
dojo.attr(this.valueNode,"disabled",_c19);
}});
dojo.declare("dijit.form.RangeBoundTextBox",dijit.form.MappedTextBox,{rangeMessage:"",rangeCheck:function(_c1a,_c1b){
var _c1c="min" in _c1b;
var _c1d="max" in _c1b;
if(_c1c||_c1d){
return (!_c1c||this.compare(_c1a,_c1b.min)>=0)&&(!_c1d||this.compare(_c1a,_c1b.max)<=0);
}
return true;
},isInRange:function(_c1e){
return this.rangeCheck(this.attr("value"),this.constraints);
},_isDefinitelyOutOfRange:function(){
var val=this.attr("value");
var _c20=false;
var _c21=false;
if("min" in this.constraints){
var min=this.constraints.min;
val=this.compare(val,((typeof min=="number")&&min>=0&&val!=0)?0:min);
_c20=(typeof val=="number")&&val<0;
}
if("max" in this.constraints){
var max=this.constraints.max;
val=this.compare(val,((typeof max!="number")||max>0)?max:0);
_c21=(typeof val=="number")&&val>0;
}
return _c20||_c21;
},_isValidSubset:function(){
return this.inherited(arguments)&&!this._isDefinitelyOutOfRange();
},isValid:function(_c24){
return this.inherited(arguments)&&((this._isEmpty(this.textbox.value)&&!this.required)||this.isInRange(_c24));
},getErrorMessage:function(_c25){
if(dijit.form.RangeBoundTextBox.superclass.isValid.call(this,false)&&!this.isInRange(_c25)){
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(_c26,_c27){
dijit.setWaiState(this.focusNode,"valuenow",_c26);
this.inherited(arguments);
}});
}
if(!dojo._hasResource["dojo.data.util.sorter"]){
dojo._hasResource["dojo.data.util.sorter"]=true;
dojo.provide("dojo.data.util.sorter");
dojo.data.util.sorter.basicComparator=function(a,b){
var ret=0;
if(a>b||typeof a==="undefined"||a===null){
ret=1;
}else{
if(a<b||typeof b==="undefined"||b===null){
ret=-1;
}
}
return ret;
};
dojo.data.util.sorter.createSortFunction=function(_c2b,_c2c){
var _c2d=[];
function createSortFunction(attr,dir){
return function(_c30,_c31){
var a=_c2c.getValue(_c30,attr);
var b=_c2c.getValue(_c31,attr);
var _c34=null;
if(_c2c.comparatorMap){
if(typeof attr!=="string"){
attr=_c2c.getIdentity(attr);
}
_c34=_c2c.comparatorMap[attr]||dojo.data.util.sorter.basicComparator;
}
_c34=_c34||dojo.data.util.sorter.basicComparator;
return dir*_c34(a,b);
};
};
var _c35;
for(var i=0;i<_c2b.length;i++){
_c35=_c2b[i];
if(_c35.attribute){
var _c37=(_c35.descending)?-1:1;
_c2d.push(createSortFunction(_c35.attribute,_c37));
}
}
return function(rowA,rowB){
var i=0;
while(i<_c2d.length){
var ret=_c2d[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(_c3c){
_c3c=_c3c||{};
if(!_c3c.store){
_c3c.store=this;
}
var self=this;
var _c3e=function(_c3f,_c40){
if(_c40.onError){
var _c41=_c40.scope||dojo.global;
_c40.onError.call(_c41,_c3f,_c40);
}
};
var _c42=function(_c43,_c44){
var _c45=_c44.abort||null;
var _c46=false;
var _c47=_c44.start?_c44.start:0;
var _c48=(_c44.count&&(_c44.count!==Infinity))?(_c47+_c44.count):_c43.length;
_c44.abort=function(){
_c46=true;
if(_c45){
_c45.call(_c44);
}
};
var _c49=_c44.scope||dojo.global;
if(!_c44.store){
_c44.store=self;
}
if(_c44.onBegin){
_c44.onBegin.call(_c49,_c43.length,_c44);
}
if(_c44.sort){
_c43.sort(dojo.data.util.sorter.createSortFunction(_c44.sort,self));
}
if(_c44.onItem){
for(var i=_c47;(i<_c43.length)&&(i<_c48);++i){
var item=_c43[i];
if(!_c46){
_c44.onItem.call(_c49,item,_c44);
}
}
}
if(_c44.onComplete&&!_c46){
var _c4c=null;
if(!_c44.onItem){
_c4c=_c43.slice(_c47,_c48);
}
_c44.onComplete.call(_c49,_c4c,_c44);
}
};
this._fetchItems(_c3c,_c42,_c3e);
return _c3c;
};
}
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(_c4d,_c4e){
var rxp="^";
var c=null;
for(var i=0;i<_c4d.length;i++){
c=_c4d.charAt(i);
switch(c){
case "\\":
rxp+=c;
i++;
rxp+=_c4d.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(_c4e){
return new RegExp(rxp,"mi");
}else{
return new RegExp(rxp,"m");
}
};
}
if(!dojo._hasResource["dijit.form.ComboBox"]){
dojo._hasResource["dijit.form.ComboBox"]=true;
dojo.provide("dijit.form.ComboBox");
dojo.declare("dijit.form.ComboBoxMixin",null,{item:null,pageSize:Infinity,store:null,fetchProperties:{},query:{},autoComplete:true,highlightMatch:"first",searchDelay:100,searchAttr:"name",labelAttr:"",labelType:"text",queryExpr:"${0}*",ignoreCase:true,hasDownArrow:true,templateString:"<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\r\n\tid=\"widget_${id}\"\r\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\" dojoAttachPoint=\"comboNode\" waiRole=\"combobox\" tabIndex=\"-1\"\r\n\t><div style=\"overflow:hidden;\"\r\n\t\t><div class='dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton'\r\n\t\t\tdojoAttachPoint=\"downArrowNode\" waiRole=\"presentation\"\r\n\t\t\tdojoAttachEvent=\"onmousedown:_onArrowMouseDown,onmouseup:_onMouse,onmouseenter:_onMouse,onmouseleave:_onMouse\"\r\n\t\t\t><div class=\"dijitArrowButtonInner\">&thinsp;</div\r\n\t\t\t><div class=\"dijitArrowButtonChar\">&#9660;</div\r\n\t\t></div\r\n\t\t><div class=\"dijitReset dijitValidationIcon\"><br></div\r\n\t\t><div class=\"dijitReset dijitValidationIconText\">&Chi;</div\r\n\t\t><div class=\"dijitReset dijitInputField\"\r\n\t\t\t><input type=\"text\" autocomplete=\"off\" name=\"${name}\" class='dijitReset'\r\n\t\t\tdojoAttachEvent=\"onkeypress:_onKeyPress, onfocus:_update, compositionend\"\r\n\t\t\tdojoAttachPoint=\"textbox,focusNode\" waiRole=\"textbox\" waiState=\"haspopup-true,autocomplete-list\"\r\n\t\t/></div\r\n\t></div\r\n></div>\r\n",baseClass:"dijitComboBox",_getCaretPos:function(_c52){
var pos=0;
if(typeof (_c52.selectionStart)=="number"){
pos=_c52.selectionStart;
}else{
if(dojo.isIE){
var tr=dojo.doc.selection.createRange().duplicate();
var ntr=_c52.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(_c56,_c57){
_c57=parseInt(_c57);
dijit.selectInputText(_c56,_c57,_c57);
},_setDisabledAttr:function(_c58){
dijit.setWaiState(this.comboNode,"disabled",_c58);
},_onKeyPress:function(evt){
var key=evt.charOrCode;
if(evt.altKey||(evt.ctrlKey&&(key!="x"&&key!="v"))||evt.key==dojo.keys.SHIFT){
return;
}
var _c5b=false;
var pw=this._popupWidget;
var dk=dojo.keys;
if(this._isShowingNow){
pw.handleKey(key);
}
switch(key){
case dk.PAGE_DOWN:
case dk.DOWN_ARROW:
if(!this._isShowingNow||this._prev_key_esc){
this._arrowPressed();
_c5b=true;
}else{
this._announceOption(pw.getHighlightedOption());
}
dojo.stopEvent(evt);
this._prev_key_backspace=false;
this._prev_key_esc=false;
break;
case dk.PAGE_UP:
case dk.UP_ARROW:
if(this._isShowingNow){
this._announceOption(pw.getHighlightedOption());
}
dojo.stopEvent(evt);
this._prev_key_backspace=false;
this._prev_key_esc=false;
break;
case dk.ENTER:
var _c5e;
if(this._isShowingNow&&(_c5e=pw.getHighlightedOption())){
if(_c5e==pw.nextButton){
this._nextSearch(1);
dojo.stopEvent(evt);
break;
}else{
if(_c5e==pw.previousButton){
this._nextSearch(-1);
dojo.stopEvent(evt);
break;
}
}
}else{
this._setDisplayedValueAttr(this.attr("displayedValue"),true);
}
evt.preventDefault();
case dk.TAB:
var _c5f=this.attr("displayedValue");
if(pw&&(_c5f==pw._messages["previousMessage"]||_c5f==pw._messages["nextMessage"])){
break;
}
if(this._isShowingNow){
this._prev_key_backspace=false;
this._prev_key_esc=false;
if(pw.getHighlightedOption()){
pw.attr("value",{target:pw.getHighlightedOption()});
}
this._lastQuery=null;
this._hideResultList();
}
break;
case " ":
this._prev_key_backspace=false;
this._prev_key_esc=false;
if(this._isShowingNow&&pw.getHighlightedOption()){
dojo.stopEvent(evt);
this._selectOption();
this._hideResultList();
}else{
_c5b=true;
}
break;
case dk.ESCAPE:
this._prev_key_backspace=false;
this._prev_key_esc=true;
if(this._isShowingNow){
dojo.stopEvent(evt);
this._hideResultList();
}else{
this.inherited(arguments);
}
break;
case dk.DELETE:
case dk.BACKSPACE:
this._prev_key_esc=false;
this._prev_key_backspace=true;
_c5b=true;
break;
case dk.RIGHT_ARROW:
case dk.LEFT_ARROW:
this._prev_key_backspace=false;
this._prev_key_esc=false;
break;
default:
this._prev_key_backspace=false;
this._prev_key_esc=false;
_c5b=typeof key=="string"||key==229;
}
if(this.searchTimer){
clearTimeout(this.searchTimer);
}
if(_c5b){
setTimeout(dojo.hitch(this,"_startSearchFromInput"),1);
}
},_autoCompleteText:function(text){
var fn=this.focusNode;
dijit.selectInputText(fn,fn.value.length);
var _c62=this.ignoreCase?"toLowerCase":"substr";
if(text[_c62](0).indexOf(this.focusNode.value[_c62](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(_c64,_c65){
if(this.disabled||this.readOnly||(_c65.query[this.searchAttr]!=this._lastQuery)){
return;
}
this._popupWidget.clearResultList();
if(!_c64.length){
this._hideResultList();
return;
}
var _c66=new String(this.store.getValue(_c64[0],this.searchAttr));
if(_c66&&this.autoComplete&&!this._prev_key_backspace&&(_c65.query[this.searchAttr]!="*")){
this._autoCompleteText(_c66);
}
_c65._maxOptions=this._maxOptions;
this._popupWidget.createOptions(_c64,_c65,dojo.hitch(this,"_getMenuLabelFromItem"));
this._showResultList();
if(_c65.direction){
if(1==_c65.direction){
this._popupWidget.highlightFirstOption();
}else{
if(-1==_c65.direction){
this._popupWidget.highlightLastOption();
}
}
this._announceOption(this._popupWidget.getHighlightedOption());
}
},_showResultList:function(){
this._hideResultList();
var _c67=this._popupWidget.getItems(),_c68=Math.min(_c67.length,this.maxListLength);
this._arrowPressed();
this.displayMessage("");
dojo.style(this._popupWidget.domNode,{width:"",height:""});
var best=this.open();
var _c6a=dojo.marginBox(this._popupWidget.domNode);
this._popupWidget.domNode.style.overflow=((best.h==_c6a.h)&&(best.w==_c6a.w))?"hidden":"auto";
var _c6b=best.w;
if(best.h<this._popupWidget.domNode.scrollHeight){
_c6b+=16;
}
dojo.marginBox(this._popupWidget.domNode,{h:best.h,w:Math.max(_c6b,this.domNode.offsetWidth)});
dijit.setWaiState(this.comboNode,"expanded","true");
},_hideResultList:function(){
if(this._isShowingNow){
dijit.popup.close(this._popupWidget);
this._arrowIdle();
this._isShowingNow=false;
dijit.setWaiState(this.comboNode,"expanded","false");
dijit.removeWaiState(this.focusNode,"activedescendant");
}
},_setBlurValue:function(){
var _c6c=this.attr("displayedValue");
var pw=this._popupWidget;
if(pw&&(_c6c==pw._messages["previousMessage"]||_c6c==pw._messages["nextMessage"])){
this._setValueAttr(this._lastValueReported,true);
}else{
this.attr("displayedValue",_c6c);
}
},_onBlur:function(){
this._hideResultList();
this._arrowIdle();
this.inherited(arguments);
},_announceOption:function(node){
if(node==null){
return;
}
var _c6f;
if(node==this._popupWidget.nextButton||node==this._popupWidget.previousButton){
_c6f=node.innerHTML;
}else{
_c6f=this.store.getValue(node.item,this.searchAttr);
}
this.focusNode.value=this.focusNode.value.substring(0,this._getCaretPos(this.focusNode));
dijit.setWaiState(this.focusNode,"activedescendant",dojo.attr(node,"id"));
this._autoCompleteText(_c6f);
},_selectOption:function(evt){
var tgt=null;
if(!evt){
evt={target:this._popupWidget.getHighlightedOption()};
}
if(!evt.target){
this.attr("displayedValue",this.attr("displayedValue"));
return;
}else{
tgt=evt.target;
}
if(!evt.noHide){
this._hideResultList();
this._setCaretPos(this.focusNode,this.store.getValue(tgt.item,this.searchAttr).length);
}
this._doSelect(tgt);
},_doSelect:function(tgt){
this.item=tgt.item;
this.attr("value",this.store.getValue(tgt.item,this.searchAttr));
},_onArrowMouseDown:function(evt){
if(this.disabled||this.readOnly){
return;
}
dojo.stopEvent(evt);
this.focus();
if(this._isShowingNow){
this._hideResultList();
}else{
this._startSearch("");
}
},_startSearchFromInput:function(){
this._startSearch(this.focusNode.value.replace(/([\\\*\?])/g,"\\$1"));
},_getQueryString:function(text){
return dojo.string.substitute(this.queryExpr,[text]);
},_startSearch:function(key){
if(!this._popupWidget){
var _c76=this.id+"_popup";
this._popupWidget=new dijit.form._ComboBoxMenu({onChange:dojo.hitch(this,this._selectOption),id:_c76});
dijit.removeWaiState(this.focusNode,"activedescendant");
dijit.setWaiState(this.textbox,"owns",_c76);
}
this.item=null;
var _c77=dojo.clone(this.query);
this._lastInput=key;
this._lastQuery=_c77[this.searchAttr]=this._getQueryString(key);
this.searchTimer=setTimeout(dojo.hitch(this,function(_c78,_c79){
var _c7a={queryOptions:{ignoreCase:this.ignoreCase,deep:true},query:_c78,onBegin:dojo.hitch(this,"_setMaxOptions"),onComplete:dojo.hitch(this,"_openResultList"),onError:function(_c7b){
console.error("dijit.form.ComboBox: "+_c7b);
dojo.hitch(_c79,"_hideResultList")();
},start:0,count:this.pageSize};
dojo.mixin(_c7a,_c79.fetchProperties);
var _c7c=_c79.store.fetch(_c7a);
var _c7d=function(_c7e,_c7f){
_c7e.start+=_c7e.count*_c7f;
_c7e.direction=_c7f;
this.store.fetch(_c7e);
};
this._nextSearch=this._popupWidget.onPage=dojo.hitch(this,_c7d,_c7c);
},_c77,this),this.searchDelay);
},_setMaxOptions:function(size,_c81){
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 _c83=this.srcNodeRef;
this.store=new dijit.form._ComboBoxDataStore(_c83);
if(!this.value||((typeof _c83.selectedIndex=="number")&&_c83.selectedIndex.toString()===this.value)){
var item=this.store.fetchSelectedItem();
if(item){
this.value=this.store.getValue(item,this._getValueField());
}
}
}
},_postCreate:function(){
var _c85=dojo.query("label[for=\""+this.id+"\"]");
if(_c85.length){
_c85[0].id=(this.id+"_label");
var cn=this.comboNode;
dijit.setWaiState(cn,"labelledby",_c85[0].id);
}
},uninitialize:function(){
if(this._popupWidget){
this._hideResultList();
this._popupWidget.destroy();
}
},_getMenuLabelFromItem:function(item){
var _c88=this.store.getValue(item,this.labelAttr||this.searchAttr);
var _c89=this.labelType;
if(this.highlightMatch!="none"&&this.labelType=="text"&&this._lastInput){
_c88=this.doHighlight(_c88,this._escapeHtml(this._lastInput));
_c89="html";
}
return {html:_c89=="html",label:_c88};
},doHighlight:function(_c8a,find){
var _c8c="i"+(this.highlightMatch=="all"?"g":"");
var _c8d=this._escapeHtml(_c8a);
var ret=_c8d.replace(new RegExp("^("+find+")",_c8c),"<span class=\"dijitComboBoxHighlightMatch\">$1</span>");
if(_c8d==ret){
ret=_c8d.replace(new RegExp(" ("+find+")",_c8c)," <span class=\"dijitComboBoxHighlightMatch\">$1</span>");
}
return ret;
},_escapeHtml:function(str){
str=String(str).replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");
return str;
},open:function(){
this._isShowingNow=true;
return dijit.popup.open({popup:this._popupWidget,around:this.domNode,parent:this});
},reset:function(){
this.item=null;
this.inherited(arguments);
}});
dojo.declare("dijit.form._ComboBoxMenu",[dijit._Widget,dijit._Templated],{templateString:"<ul class='dijitReset dijitMenu' dojoAttachEvent='onmousedown:_onMouseDown,onmouseup:_onMouseUp,onmouseover:_onMouseOver,onmouseout:_onMouseOut' tabIndex='-1' style='overflow: \"auto\"; overflow-x: \"hidden\";'>"+"<li class='dijitMenuItem dijitMenuPreviousButton' dojoAttachPoint='previousButton'></li>"+"<li class='dijitMenuItem dijitMenuNextButton' dojoAttachPoint='nextButton'></li>"+"</ul>",_messages:null,postMixInProperties:function(){
this._messages=dojo.i18n.getLocalization("dijit.form","ComboBox",this.lang);
this.inherited("postMixInProperties",arguments);
},_setValueAttr:function(_c90){
this.value=_c90;
this.onChange(_c90);
},onChange:function(_c91){
},onPage:function(_c92){
},postCreate:function(){
this.previousButton.innerHTML=this._messages["previousMessage"];
this.nextButton.innerHTML=this._messages["nextMessage"];
this.inherited(arguments);
},onClose:function(){
this._blurOptionNode();
},_createOption:function(item,_c94){
var _c95=_c94(item);
var _c96=dojo.doc.createElement("li");
dijit.setWaiRole(_c96,"option");
if(_c95.html){
_c96.innerHTML=_c95.label;
}else{
_c96.appendChild(dojo.doc.createTextNode(_c95.label));
}
if(_c96.innerHTML==""){
_c96.innerHTML="&nbsp;";
}
_c96.item=item;
return _c96;
},createOptions:function(_c97,_c98,_c99){
this.previousButton.style.display=(_c98.start==0)?"none":"";
dojo.attr(this.previousButton,"id",this.id+"_prev");
dojo.forEach(_c97,function(item,i){
var _c9c=this._createOption(item,_c99);
_c9c.className="dijitReset dijitMenuItem";
dojo.attr(_c9c,"id",this.id+i);
this.domNode.insertBefore(_c9c,this.nextButton);
},this);
var _c9d=false;
if(_c98._maxOptions&&_c98._maxOptions!=-1){
if((_c98.start+_c98.count)<_c98._maxOptions){
_c9d=true;
}else{
if((_c98.start+_c98.count)>(_c98._maxOptions-1)){
if(_c98.count==_c97.length){
_c9d=true;
}
}
}
}else{
if(_c98.count==_c97.length){
_c9d=true;
}
}
this.nextButton.style.display=_c9d?"":"none";
dojo.attr(this.nextButton,"id",this.id+"_next");
},clearResultList:function(){
while(this.domNode.childNodes.length>2){
this.domNode.removeChild(this.domNode.childNodes[this.domNode.childNodes.length-2]);
}
},getItems:function(){
return this.domNode.childNodes;
},getListLength:function(){
return this.domNode.childNodes.length-2;
},_onMouseDown:function(evt){
dojo.stopEvent(evt);
},_onMouseUp:function(evt){
if(evt.target===this.domNode){
return;
}else{
if(evt.target==this.previousButton){
this.onPage(-1);
}else{
if(evt.target==this.nextButton){
this.onPage(1);
}else{
var tgt=evt.target;
while(!tgt.item){
tgt=tgt.parentNode;
}
this._setValueAttr({target:tgt},true);
}
}
}
},_onMouseOver:function(evt){
if(evt.target===this.domNode){
return;
}
var tgt=evt.target;
if(!(tgt==this.previousButton||tgt==this.nextButton)){
while(!tgt.item){
tgt=tgt.parentNode;
}
}
this._focusOptionNode(tgt);
},_onMouseOut:function(evt){
if(evt.target===this.domNode){
return;
}
this._blurOptionNode();
},_focusOptionNode:function(node){
if(this._highlighted_option!=node){
this._blurOptionNode();
this._highlighted_option=node;
dojo.addClass(this._highlighted_option,"dijitMenuItemHover");
}
},_blurOptionNode:function(){
if(this._highlighted_option){
dojo.removeClass(this._highlighted_option,"dijitMenuItemHover");
this._highlighted_option=null;
}
},_highlightNextOption:function(){
var fc=this.domNode.firstChild;
if(!this.getHighlightedOption()){
this._focusOptionNode(fc.style.display=="none"?fc.nextSibling:fc);
}else{
var ns=this._highlighted_option.nextSibling;
if(ns&&ns.style.display!="none"){
this._focusOptionNode(ns);
}
}
dijit.scrollIntoView(this._highlighted_option);
},highlightFirstOption:function(){
this._focusOptionNode(this.domNode.firstChild.nextSibling);
dijit.scrollIntoView(this._highlighted_option);
},highlightLastOption:function(){
this._focusOptionNode(this.domNode.lastChild.previousSibling);
dijit.scrollIntoView(this._highlighted_option);
},_highlightPrevOption:function(){
var lc=this.domNode.lastChild;
if(!this.getHighlightedOption()){
this._focusOptionNode(lc.style.display=="none"?lc.previousSibling:lc);
}else{
var ps=this._highlighted_option.previousSibling;
if(ps&&ps.style.display!="none"){
this._focusOptionNode(ps);
}
}
dijit.scrollIntoView(this._highlighted_option);
},_page:function(up){
var _caa=0;
var _cab=this.domNode.scrollTop;
var _cac=dojo.style(this.domNode,"height");
if(!this.getHighlightedOption()){
this._highlightNextOption();
}
while(_caa<_cac){
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 _cad=this.domNode.scrollTop;
_caa+=(_cad-_cab)*(up?-1:1);
_cab=_cad;
}
},pageUp:function(){
this._page(true);
},pageDown:function(){
this._page(false);
},getHighlightedOption:function(){
var ho=this._highlighted_option;
return (ho&&ho.parentNode)?ho:null;
},handleKey:function(key){
switch(key){
case dojo.keys.DOWN_ARROW:
this._highlightNextOption();
break;
case dojo.keys.PAGE_DOWN:
this.pageDown();
break;
case dojo.keys.UP_ARROW:
this._highlightPrevOption();
break;
case dojo.keys.PAGE_UP:
this.pageUp();
break;
}
}});
dojo.declare("dijit.form.ComboBox",[dijit.form.ValidationTextBox,dijit.form.ComboBoxMixin],{postMixInProperties:function(){
dijit.form.ComboBoxMixin.prototype.postMixInProperties.apply(this,arguments);
dijit.form.ValidationTextBox.prototype.postMixInProperties.apply(this,arguments);
},postCreate:function(){
dijit.form.ComboBoxMixin.prototype._postCreate.apply(this,arguments);
dijit.form.ValidationTextBox.prototype.postCreate.apply(this,arguments);
},_setDisabledAttr:function(_cb0){
dijit.form.ValidationTextBox.prototype._setDisabledAttr.apply(this,arguments);
dijit.form.ComboBoxMixin.prototype._setDisabledAttr.apply(this,arguments);
},_setValueAttr:function(_cb1,_cb2){
if(!_cb1){
_cb1="";
}
dijit.form.ValidationTextBox.prototype._setValueAttr.call(this,_cb1,_cb2);
}});
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,_cb6,_cb7){
return (_cb6=="value")?item.value:(item.innerText||item.textContent||"");
},isItemLoaded:function(_cb8){
return true;
},getFeatures:function(){
return {"dojo.data.api.Read":true,"dojo.data.api.Identity":true};
},_fetchItems:function(args,_cba,_cbb){
if(!args.query){
args.query={};
}
if(!args.query.name){
args.query.name="";
}
if(!args.queryOptions){
args.queryOptions={};
}
var _cbc=dojo.data.util.filter.patternToRegExp(args.query.name,args.queryOptions.ignoreCase),_cbd=dojo.query("> option",this.root).filter(function(_cbe){
return (_cbe.innerText||_cbe.textContent||"").match(_cbc);
});
if(args.sort){
_cbd.sort(dojo.data.util.sorter.createSortFunction(args.sort,this));
}
_cba(_cbd,args);
},close:function(_cbf){
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);
}
dojo.i18n._preloadLocalizations("dojo.nls.dojo",["da","es","hu","de","pt-br","pl","pt","ca","sv","ar","pt-pt","fi","zh","ru","xx","fr","zh-tw","it","th","cs","he","nl","el","no","ko","tr","en","ROOT","ja"]);
if(dojo.config.afterOnLoad&&dojo.isBrowser){
window.setTimeout(dojo._fakeLoadInit,1000);
}
})();

