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

/*
	This is an optimized version of Dojo, built for deployment and not for
	development. To get sources and documentation, please visit:

		http://dojotoolkit.org
*/

(function(){
var _1=null;
if((_1||(typeof djConfig!="undefined"&&djConfig.scopeMap))&&(typeof window!="undefined")){
var _2="",_3="",_4="",_5={},_6={};
_1=_1||djConfig.scopeMap;
for(var i=0;i<_1.length;i++){
var _7=_1[i];
_2+="var "+_7[0]+" = {}; "+_7[1]+" = "+_7[0]+";"+_7[1]+"._scopeName = '"+_7[1]+"';";
_3+=(i==0?"":",")+_7[0];
_4+=(i==0?"":",")+_7[1];
_5[_7[0]]=_7[1];
_6[_7[1]]=_7[0];
}
eval(_2+"dojo._scopeArgs = ["+_4+"];");
dojo._scopePrefixArgs=_3;
dojo._scopePrefix="(function("+_3+"){";
dojo._scopeSuffix="})("+_4+")";
dojo._scopeMap=_5;
dojo._scopeMapRev=_6;
}
(function(){
if(typeof this["loadFirebugConsole"]=="function"){
this["loadFirebugConsole"]();
}else{
this.console=this.console||{};
var cn=["assert","count","debug","dir","dirxml","error","group","groupEnd","info","profile","profileEnd","time","timeEnd","trace","warn","log"];
var i=0,tn;
while((tn=cn[i++])){
if(!console[tn]){
(function(){
var _8=tn+"";
console[_8]=("log" in console)?function(){
var a=Array.apply({},arguments);
a.unshift(_8+":");
console["log"](a.join(" "));
}:function(){
};
console[_8]._fake=true;
})();
}
}
}
if(typeof dojo=="undefined"){
dojo={_scopeName:"dojo",_scopePrefix:"",_scopePrefixArgs:"",_scopeSuffix:"",_scopeMap:{},_scopeMapRev:{}};
}
var d=dojo;
if(typeof dijit=="undefined"){
dijit={_scopeName:"dijit"};
}
if(typeof dojox=="undefined"){
dojox={_scopeName:"dojox"};
}
if(!d._scopeArgs){
d._scopeArgs=[dojo,dijit,dojox];
}
d.global=this;
d.config={isDebug:false,debugAtAllCosts:false};
var _9=typeof djConfig!="undefined"?djConfig:typeof dojoConfig!="undefined"?dojoConfig:null;
if(_9){
for(var c in _9){
d.config[c]=_9[c];
}
}
dojo.locale=d.config.locale;
var _a="$Rev: 24595 $".match(/\d+/);
dojo.version={major:0,minor:0,patch:0,flag:"dev",revision:_a?+_a[0]:NaN,toString:function(){
with(d.version){
return major+"."+minor+"."+patch+flag+" ("+revision+")";
}
}};
if(typeof OpenAjax!="undefined"){
OpenAjax.hub.registerLibrary(dojo._scopeName,"http://dojotoolkit.org",d.version.toString());
}
var _b,_c,_d={};
for(var i in {toString:1}){
_b=[];
break;
}
dojo._extraNames=_b=_b||["hasOwnProperty","valueOf","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","constructor"];
_c=_b.length;
dojo._mixin=function(_e,_f){
var _10,s,i;
for(_10 in _f){
s=_f[_10];
if(!(_10 in _e)||(_e[_10]!==s&&(!(_10 in _d)||_d[_10]!==s))){
_e[_10]=s;
}
}
if(_c&&_f){
for(i=0;i<_c;++i){
_10=_b[i];
s=_f[_10];
if(!(_10 in _e)||(_e[_10]!==s&&(!(_10 in _d)||_d[_10]!==s))){
_e[_10]=s;
}
}
}
return _e;
};
dojo.mixin=function(obj,_11){
if(!obj){
obj={};
}
for(var i=1,l=arguments.length;i<l;i++){
d._mixin(obj,arguments[i]);
}
return obj;
};
dojo._getProp=function(_12,_13,_14){
var obj=_14||d.global;
for(var i=0,p;obj&&(p=_12[i]);i++){
if(i==0&&d._scopeMap[p]){
p=d._scopeMap[p];
}
obj=(p in obj?obj[p]:(_13?obj[p]={}:undefined));
}
return obj;
};
dojo.setObject=function(_15,_16,_17){
var _18=_15.split("."),p=_18.pop(),obj=d._getProp(_18,true,_17);
return obj&&p?(obj[p]=_16):undefined;
};
dojo.getObject=function(_19,_1a,_1b){
return d._getProp(_19.split("."),_1a,_1b);
};
dojo.exists=function(_1c,obj){
return d.getObject(_1c,false,obj)!==undefined;
};
dojo["eval"]=function(_1d){
return d.global.eval?d.global.eval(_1d):eval(_1d);
};
d.deprecated=d.experimental=function(){
};
})();
(function(){
var d=dojo,_1e;
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(_1f){
var mp=d._modulePrefixes;
return !!(mp[_1f]&&mp[_1f].value);
},_getModulePrefix:function(_20){
var mp=d._modulePrefixes;
if(d._moduleHasPrefix(_20)){
return mp[_20].value;
}
return _20;
},_loadedUrls:[],_postLoad:false,_loaders:[],_unloaders:[],_loadNotifying:false});
dojo._loadPath=function(_21,_22,cb){
var uri=((_21.charAt(0)=="/"||_21.match(/^\w+:/))?"":d.baseUrl)+_21;
try{
_1e=_22;
return !_22?d._loadUri(uri,cb):d._loadUriAndCheck(uri,_22,cb);
}
catch(e){
console.error(e);
return false;
}
finally{
_1e=null;
}
};
dojo._loadUri=function(uri,cb){
if(d._loadedUrls[uri]){
return true;
}
d._inFlightCount++;
var _23=d._getText(uri,true);
if(_23){
d._loadedUrls[uri]=true;
d._loadedUrls.push(uri);
if(cb){
_23=/^define\(/.test(_23)?_23:"("+_23+")";
}else{
_23=d._scopePrefix+_23+d._scopeSuffix;
}
if(!d.isIE){
_23+="\r\n//@ sourceURL="+uri;
}
var _24=d["eval"](_23);
if(cb){
cb(_24);
}
}
if(--d._inFlightCount==0&&d._postLoad&&d._loaders.length){
setTimeout(function(){
if(d._inFlightCount==0){
d._callLoaded();
}
},0);
}
return !!_23;
};
dojo._loadUriAndCheck=function(uri,_25,cb){
var ok=false;
try{
ok=d._loadUri(uri,cb);
}
catch(e){
console.error("failed loading "+uri+" with error: "+e);
}
return !!(ok&&d._loadedModules[_25]);
};
dojo.loaded=function(){
d._loadNotifying=true;
d._postLoad=true;
var mll=d._loaders;
d._loaders=[];
for(var x=0;x<mll.length;x++){
mll[x]();
}
d._loadNotifying=false;
if(d._postLoad&&d._inFlightCount==0&&mll.length){
d._callLoaded();
}
};
dojo.unloaded=function(){
var mll=d._unloaders;
while(mll.length){
(mll.pop())();
}
};
d._onto=function(arr,obj,fn){
if(!fn){
arr.push(obj);
}else{
if(fn){
var _26=(typeof fn=="string")?obj[fn]:fn;
arr.push(function(){
_26.call(obj);
});
}
}
};
dojo.ready=dojo.addOnLoad=function(obj,_27){
d._onto(d._loaders,obj,_27);
if(d._postLoad&&d._inFlightCount==0&&!d._loadNotifying){
d._callLoaded();
}
};
var dca=d.config.addOnLoad;
if(dca){
d.addOnLoad[(dca instanceof Array?"apply":"call")](d,dca);
}
dojo._modulesLoaded=function(){
if(d._postLoad){
return;
}
if(d._inFlightCount>0){
console.warn("files still in flight!");
return;
}
d._callLoaded();
};
dojo._callLoaded=function(){
if(typeof setTimeout=="object"||(d.config.useXDomain&&d.isOpera)){
setTimeout(d.isAIR?function(){
d.loaded();
}:d._scopeName+".loaded();",0);
}else{
d.loaded();
}
};
dojo._getModuleSymbols=function(_28){
var _29=_28.split(".");
for(var i=_29.length;i>0;i--){
var _2a=_29.slice(0,i).join(".");
if(i==1&&!d._moduleHasPrefix(_2a)){
_29[0]="../"+_29[0];
}else{
var _2b=d._getModulePrefix(_2a);
if(_2b!=_2a){
_29.splice(0,i,_2b);
break;
}
}
}
return _29;
};
dojo._global_omit_module_check=false;
dojo.loadInit=function(_2c){
_2c();
};
dojo._loadModule=dojo.require=function(_2d,_2e){
_2e=d._global_omit_module_check||_2e;
var _2f=d._loadedModules[_2d];
if(_2f){
return _2f;
}
var _30=d._getModuleSymbols(_2d).join("/")+".js";
var _31=!_2e?_2d:null;
var ok=d._loadPath(_30,_31);
if(!ok&&!_2e){
throw new Error("Could not load '"+_2d+"'; last tried '"+_30+"'");
}
if(!_2e&&!d._isXDomain){
_2f=d._loadedModules[_2d];
if(!_2f){
throw new Error("symbol '"+_2d+"' is not defined after loading '"+_30+"'");
}
}
return _2f;
};
dojo.provide=function(_32){
_32=_32+"";
return (d._loadedModules[_32]=d.getObject(_32,true));
};
dojo.platformRequire=function(_33){
var _34=_33.common||[];
var _35=_34.concat(_33[d._name]||_33["default"]||[]);
for(var x=0;x<_35.length;x++){
var _36=_35[x];
if(_36.constructor==Array){
d._loadModule.apply(d,_36);
}else{
d._loadModule(_36);
}
}
};
dojo.requireIf=function(_37,_38){
if(_37===true){
var _39=[];
for(var i=1;i<arguments.length;i++){
_39.push(arguments[i]);
}
d.require.apply(d,_39);
}
};
dojo.requireAfterIf=d.requireIf;
dojo.registerModulePath=function(_3a,_3b){
d._modulePrefixes[_3a]={name:_3a,value:_3b};
};
dojo.requireLocalization=function(_3c,_3d,_3e,_3f){
d.require("dojo.i18n");
d.i18n._requireLocalization.apply(d.hostenv,arguments);
};
var ore=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),ire=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");
dojo._Url=function(){
var n=null,_40=arguments,uri=[_40[0]];
for(var i=1;i<_40.length;i++){
if(!_40[i]){
continue;
}
var _41=new d._Url(_40[i]+""),_42=new d._Url(uri[0]+"");
if(_41.path==""&&!_41.scheme&&!_41.authority&&!_41.query){
if(_41.fragment!=n){
_42.fragment=_41.fragment;
}
_41=_42;
}else{
if(!_41.scheme){
_41.scheme=_42.scheme;
if(!_41.authority){
_41.authority=_42.authority;
if(_41.path.charAt(0)!="/"){
var _43=_42.path.substring(0,_42.path.lastIndexOf("/")+1)+_41.path;
var _44=_43.split("/");
for(var j=0;j<_44.length;j++){
if(_44[j]=="."){
if(j==_44.length-1){
_44[j]="";
}else{
_44.splice(j,1);
j--;
}
}else{
if(j>0&&!(j==1&&_44[0]=="")&&_44[j]==".."&&_44[j-1]!=".."){
if(j==(_44.length-1)){
_44.splice(j,1);
_44[j-1]="";
}else{
_44.splice(j-1,2);
j-=2;
}
}
}
}
_41.path=_44.join("/");
}
}
}
}
uri=[];
if(_41.scheme){
uri.push(_41.scheme,":");
}
if(_41.authority){
uri.push("//",_41.authority);
}
uri.push(_41.path);
if(_41.query){
uri.push("?",_41.query);
}
if(_41.fragment){
uri.push("#",_41.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(_45,url){
var loc=d._getModuleSymbols(_45).join("/");
if(!loc){
return null;
}
if(loc.lastIndexOf("/")!=loc.length-1){
loc+="/";
}
var _46=loc.indexOf(":");
if(loc.charAt(0)!="/"&&(_46==-1||_46>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 _47=document.getElementsByTagName("script");
var _48=/dojo(\.xd)?\.js(\W|$)/i;
for(var i=0;i<_47.length;i++){
var src=_47[i].getAttribute("src");
if(!src){
continue;
}
var m=src.match(_48);
if(m){
if(!d.config.baseUrl){
d.config.baseUrl=src.substring(0,m.index);
}
var cfg=(_47[i].getAttribute("djConfig")||_47[i].getAttribute("data-dojo-config"));
if(cfg){
var _49=eval("({ "+cfg+" })");
for(var x in _49){
dojo.config[x]=_49[x];
}
}
break;
}
}
}
d.baseUrl=d.config.baseUrl;
var n=navigator;
var dua=n.userAgent,dav=n.appVersion,tv=parseFloat(dav);
if(dua.indexOf("Opera")>=0){
d.isOpera=tv;
}
if(dua.indexOf("AdobeAIR")>=0){
d.isAIR=1;
}
d.isKhtml=(dav.indexOf("Konqueror")>=0)?tv:0;
d.isWebKit=parseFloat(dua.split("WebKit/")[1])||undefined;
d.isChrome=parseFloat(dua.split("Chrome/")[1])||undefined;
d.isMac=dav.indexOf("Macintosh")>=0;
var _4a=Math.max(dav.indexOf("WebKit"),dav.indexOf("Safari"),0);
if(_4a&&!dojo.isChrome){
d.isSafari=parseFloat(dav.split("Version/")[1]);
if(!d.isSafari||parseFloat(dav.substr(_4a+7))<=419.3){
d.isSafari=2;
}
}
if(dua.indexOf("Gecko")>=0&&!d.isKhtml&&!d.isWebKit){
d.isMozilla=d.isMoz=tv;
}
if(d.isMoz){
d.isFF=parseFloat(dua.split("Firefox/")[1]||dua.split("Minefield/")[1])||undefined;
}
if(document.all&&!d.isOpera){
d.isIE=parseFloat(dav.split("MSIE ")[1])||undefined;
var _4b=document.documentMode;
if(_4b&&_4b!=5&&Math.floor(d.isIE)!=_4b){
d.isIE=_4b;
}
}
if(dojo.isIE&&window.location.protocol==="file:"){
dojo.config.ieForceActiveXXhr=true;
}
d.isQuirks=document.compatMode=="BackCompat";
d.locale=dojo.config.locale||(d.isIE?n.userLanguage:n.language).toLowerCase();
d._XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];
d._xhrObj=function(){
var _4c,_4d;
if(!dojo.isIE||!dojo.config.ieForceActiveXXhr){
try{
_4c=new XMLHttpRequest();
}
catch(e){
}
}
if(!_4c){
for(var i=0;i<3;++i){
var _4e=d._XMLHTTP_PROGIDS[i];
try{
_4c=new ActiveXObject(_4e);
}
catch(e){
_4d=e;
}
if(_4c){
d._XMLHTTP_PROGIDS=[_4e];
break;
}
}
}
if(!_4c){
throw new Error("XMLHTTP not available: "+_4d);
}
return _4c;
};
d._isDocumentOk=function(_4f){
var _50=_4f.status||0,lp=location.protocol;
return (_50>=200&&_50<300)||_50==304||_50==1223||(!_50&&(lp=="file:"||lp=="chrome:"||lp=="chrome-extension:"||lp=="app:"));
};
var _51=window.location+"";
var _52=document.getElementsByTagName("base");
var _53=(_52&&_52.length>0);
d._getText=function(uri,_54){
var _55=d._xhrObj();
if(!_53&&dojo._Url){
uri=(new dojo._Url(_51,uri)).toString();
}
if(d.config.cacheBust){
uri+="";
uri+=(uri.indexOf("?")==-1?"?":"&")+String(d.config.cacheBust).replace(/\W+/g,"");
}
_55.open("GET",uri,false);
try{
_55.send(null);
if(!d._isDocumentOk(_55)){
var err=Error("Unable to load "+uri+" status:"+_55.status);
err.status=_55.status;
err.responseText=_55.responseText;
throw err;
}
}
catch(e){
if(_54){
return null;
}
throw e;
}
return _55.responseText;
};
var _56=window;
var _57=function(_58,fp){
var _59=_56.attachEvent||_56.addEventListener;
_58=_56.attachEvent?_58:_58.substring(2);
_59(_58,function(){
fp.apply(_56,arguments);
},false);
};
d._windowUnloaders=[];
d.windowUnloaded=function(){
var mll=d._windowUnloaders;
while(mll.length){
(mll.pop())();
}
d=null;
};
var _5a=0;
d.addOnWindowUnload=function(obj,_5b){
d._onto(d._windowUnloaders,obj,_5b);
if(!_5a){
_5a=1;
_57("onunload",d.windowUnloaded);
}
};
var _5c=0;
d.addOnUnload=function(obj,_5d){
d._onto(d._unloaders,obj,_5d);
if(!_5c){
_5c=1;
_57("onbeforeunload",dojo.unloaded);
}
};
})();
dojo._initFired=false;
dojo._loadInit=function(e){
if(dojo._scrollIntervalId){
clearInterval(dojo._scrollIntervalId);
dojo._scrollIntervalId=0;
}
if(!dojo._initFired){
dojo._initFired=true;
if(!dojo.config.afterOnLoad&&window.detachEvent){
window.detachEvent("onload",dojo._loadInit);
}
if(dojo._inFlightCount==0){
dojo._modulesLoaded();
}
}
};
if(!dojo.config.afterOnLoad){
if(document.addEventListener){
document.addEventListener("DOMContentLoaded",dojo._loadInit,false);
window.addEventListener("load",dojo._loadInit,false);
}else{
if(window.attachEvent){
window.attachEvent("onload",dojo._loadInit);
if(!dojo.config.skipIeDomLoaded&&self===self.top){
dojo._scrollIntervalId=setInterval(function(){
try{
if(document.body){
document.documentElement.doScroll("left");
dojo._loadInit();
}
}
catch(e){
}
},30);
}
}
}
}
if(dojo.isIE){
try{
(function(){
document.namespaces.add("v","urn:schemas-microsoft-com:vml");
var _5e=["*","group","roundrect","oval","shape","rect","imagedata","path","textpath","text"],i=0,l=1,s=document.createStyleSheet();
if(dojo.isIE>=8){
i=1;
l=_5e.length;
}
for(;i<l;++i){
s.addRule("v\\:"+_5e[i],"behavior:url(#default#VML); display:inline-block");
}
})();
}
catch(e){
}
}
}
(function(){
var mp=dojo.config["modulePaths"];
if(mp){
for(var _5f in mp){
dojo.registerModulePath(_5f,mp[_5f]);
}
}
})();
if(dojo.config.isDebug){
dojo.require("dojo._firebug.firebug");
}
if(dojo.config.debugAtAllCosts){
dojo.require("dojo._base._loader.loader_debug");
}
if(!dojo._hasResource["dojo._base.lang"]){
dojo._hasResource["dojo._base.lang"]=true;
dojo.provide("dojo._base.lang");
(function(){
var d=dojo,_60=Object.prototype.toString;
dojo.isString=function(it){
return (typeof it=="string"||it instanceof String);
};
dojo.isArray=function(it){
return it&&(it instanceof Array||typeof it=="array");
};
dojo.isFunction=function(it){
return _60.call(it)==="[object Function]";
};
dojo.isObject=function(it){
return it!==undefined&&(it===null||typeof it=="object"||d.isArray(it)||d.isFunction(it));
};
dojo.isArrayLike=function(it){
return it&&it!==undefined&&!d.isString(it)&&!d.isFunction(it)&&!(it.tagName&&it.tagName.toLowerCase()=="form")&&(d.isArray(it)||isFinite(it.length));
};
dojo.isAlien=function(it){
return it&&!d.isFunction(it)&&/\{\s*\[native code\]\s*\}/.test(String(it));
};
dojo.extend=function(_61,_62){
for(var i=1,l=arguments.length;i<l;i++){
d._mixin(_61.prototype,arguments[i]);
}
return _61;
};
dojo._hitchArgs=function(_63,_64){
var pre=d._toArray(arguments,2);
var _65=d.isString(_64);
return function(){
var _66=d._toArray(arguments);
var f=_65?(_63||d.global)[_64]:_64;
return f&&f.apply(_63||this,pre.concat(_66));
};
};
dojo.hitch=function(_67,_68){
if(arguments.length>2){
return d._hitchArgs.apply(d,arguments);
}
if(!_68){
_68=_67;
_67=null;
}
if(d.isString(_68)){
_67=_67||d.global;
if(!_67[_68]){
throw (["dojo.hitch: scope[\"",_68,"\"] is null (scope=\"",_67,"\")"].join(""));
}
return function(){
return _67[_68].apply(_67,arguments||[]);
};
}
return !_67?_68:function(){
return _68.apply(_67,arguments||[]);
};
};
dojo.delegate=dojo._delegate=(function(){
function TMP(){
};
return function(obj,_69){
TMP.prototype=obj;
var tmp=new TMP();
TMP.prototype=null;
if(_69){
d._mixin(tmp,_69);
}
return tmp;
};
})();
var _6a=function(obj,_6b,_6c){
return (_6c||[]).concat(Array.prototype.slice.call(obj,_6b||0));
};
var _6d=function(obj,_6e,_6f){
var arr=_6f||[];
for(var x=_6e||0;x<obj.length;x++){
arr.push(obj[x]);
}
return arr;
};
dojo._toArray=d.isIE?function(obj){
return ((obj.item)?_6d:_6a).apply(this,arguments);
}:_6a;
dojo.partial=function(_70){
var arr=[null];
return d.hitch.apply(d,arr.concat(d._toArray(arguments)));
};
var _71=d._extraNames,_72=_71.length,_73={};
dojo.clone=function(o){
if(!o||typeof o!="object"||d.isFunction(o)){
return o;
}
if(o.nodeType&&"cloneNode" in o){
return o.cloneNode(true);
}
if(o instanceof Date){
return new Date(o.getTime());
}
if(o instanceof RegExp){
return new RegExp(o);
}
var r,i,l,s,_74;
if(d.isArray(o)){
r=[];
for(i=0,l=o.length;i<l;++i){
if(i in o){
r.push(d.clone(o[i]));
}
}
}else{
r=o.constructor?new o.constructor():{};
}
for(_74 in o){
s=o[_74];
if(!(_74 in r)||(r[_74]!==s&&(!(_74 in _73)||_73[_74]!==s))){
r[_74]=d.clone(s);
}
}
if(_72){
for(i=0;i<_72;++i){
_74=_71[i];
s=o[_74];
if(!(_74 in r)||(r[_74]!==s&&(!(_74 in _73)||_73[_74]!==s))){
r[_74]=s;
}
}
}
return r;
};
dojo.trim=String.prototype.trim?function(str){
return str.trim();
}:function(str){
return str.replace(/^\s\s*/,"").replace(/\s\s*$/,"");
};
var _75=/\{([^\}]+)\}/g;
dojo.replace=function(_76,map,_77){
return _76.replace(_77||_75,d.isFunction(map)?map:function(_78,k){
return d.getObject(k,false,map);
});
};
})();
}
if(!dojo._hasResource["dojo._base.array"]){
dojo._hasResource["dojo._base.array"]=true;
dojo.provide("dojo._base.array");
(function(){
var _79=function(arr,obj,cb){
return [(typeof arr=="string")?arr.split(""):arr,obj||dojo.global,(typeof cb=="string")?new Function("item","index","array",cb):cb];
};
var _7a=function(_7b,arr,_7c,_7d){
var _7e=_79(arr,_7d,_7c);
arr=_7e[0];
for(var i=0,l=arr.length;i<l;++i){
var _7f=!!_7e[2].call(_7e[1],arr[i],i,arr);
if(_7b^_7f){
return _7f;
}
}
return _7b;
};
dojo.mixin(dojo,{indexOf:function(_80,_81,_82,_83){
var _84=1,end=_80.length||0,i=0;
if(_83){
i=end-1;
_84=end=-1;
}
if(_82!=undefined){
i=_82;
}
if((_83&&i>end)||i<end){
for(;i!=end;i+=_84){
if(_80[i]==_81){
return i;
}
}
}
return -1;
},lastIndexOf:function(_85,_86,_87){
return dojo.indexOf(_85,_86,_87,true);
},forEach:function(arr,_88,_89){
if(!arr||!arr.length){
return;
}
var _8a=_79(arr,_89,_88);
arr=_8a[0];
for(var i=0,l=arr.length;i<l;++i){
_8a[2].call(_8a[1],arr[i],i,arr);
}
},every:function(arr,_8b,_8c){
return _7a(true,arr,_8b,_8c);
},some:function(arr,_8d,_8e){
return _7a(false,arr,_8d,_8e);
},map:function(arr,_8f,_90){
var _91=_79(arr,_90,_8f);
arr=_91[0];
var _92=(arguments[3]?(new arguments[3]()):[]);
for(var i=0,l=arr.length;i<l;++i){
_92.push(_91[2].call(_91[1],arr[i],i,arr));
}
return _92;
},filter:function(arr,_93,_94){
var _95=_79(arr,_94,_93);
arr=_95[0];
var _96=[];
for(var i=0,l=arr.length;i<l;++i){
if(_95[2].call(_95[1],arr[i],i,arr)){
_96.push(arr[i]);
}
}
return _96;
}});
})();
}
if(!dojo._hasResource["dojo._base.declare"]){
dojo._hasResource["dojo._base.declare"]=true;
dojo.provide("dojo._base.declare");
(function(){
var d=dojo,mix=d._mixin,op=Object.prototype,_97=op.toString,_98=new Function,_99=0,_9a="constructor";
function err(msg,cls){
throw new Error("declare"+(cls?" "+cls:"")+": "+msg);
};
function _9b(_9c,_9d){
var _9e=[],_9f=[{cls:0,refs:[]}],_a0={},_a1=1,l=_9c.length,i=0,j,lin,_a2,top,_a3,rec,_a4,_a5;
for(;i<l;++i){
_a2=_9c[i];
if(!_a2){
err("mixin #"+i+" is unknown. Did you use dojo.require to pull it in?",_9d);
}else{
if(_97.call(_a2)!="[object Function]"){
err("mixin #"+i+" is not a callable constructor.",_9d);
}
}
lin=_a2._meta?_a2._meta.bases:[_a2];
top=0;
for(j=lin.length-1;j>=0;--j){
_a3=lin[j].prototype;
if(!_a3.hasOwnProperty("declaredClass")){
_a3.declaredClass="uniqName_"+(_99++);
}
_a4=_a3.declaredClass;
if(!_a0.hasOwnProperty(_a4)){
_a0[_a4]={count:0,refs:[],cls:lin[j]};
++_a1;
}
rec=_a0[_a4];
if(top&&top!==rec){
rec.refs.push(top);
++top.count;
}
top=rec;
}
++top.count;
_9f[0].refs.push(top);
}
while(_9f.length){
top=_9f.pop();
_9e.push(top.cls);
--_a1;
while(_a5=top.refs,_a5.length==1){
top=_a5[0];
if(!top||--top.count){
top=0;
break;
}
_9e.push(top.cls);
--_a1;
}
if(top){
for(i=0,l=_a5.length;i<l;++i){
top=_a5[i];
if(!--top.count){
_9f.push(top);
}
}
}
}
if(_a1){
err("can't build consistent linearization",_9d);
}
_a2=_9c[0];
_9e[0]=_a2?_a2._meta&&_a2===_9e[_9e.length-_a2._meta.bases.length]?_a2._meta.bases.length:1:0;
return _9e;
};
function _a6(_a7,a,f){
var _a8,_a9,_aa,_ab,_ac,_ad,_ae,opf,pos,_af=this._inherited=this._inherited||{};
if(typeof _a7=="string"){
_a8=_a7;
_a7=a;
a=f;
}
f=0;
_ab=_a7.callee;
_a8=_a8||_ab.nom;
if(!_a8){
err("can't deduce a name to call inherited()",this.declaredClass);
}
_ac=this.constructor._meta;
_aa=_ac.bases;
pos=_af.p;
if(_a8!=_9a){
if(_af.c!==_ab){
pos=0;
_ad=_aa[0];
_ac=_ad._meta;
if(_ac.hidden[_a8]!==_ab){
_a9=_ac.chains;
if(_a9&&typeof _a9[_a8]=="string"){
err("calling chained method with inherited: "+_a8,this.declaredClass);
}
do{
_ac=_ad._meta;
_ae=_ad.prototype;
if(_ac&&(_ae[_a8]===_ab&&_ae.hasOwnProperty(_a8)||_ac.hidden[_a8]===_ab)){
break;
}
}while(_ad=_aa[++pos]);
pos=_ad?pos:-1;
}
}
_ad=_aa[++pos];
if(_ad){
_ae=_ad.prototype;
if(_ad._meta&&_ae.hasOwnProperty(_a8)){
f=_ae[_a8];
}else{
opf=op[_a8];
do{
_ae=_ad.prototype;
f=_ae[_a8];
if(f&&(_ad._meta?_ae.hasOwnProperty(_a8):f!==opf)){
break;
}
}while(_ad=_aa[++pos]);
}
}
f=_ad&&f||op[_a8];
}else{
if(_af.c!==_ab){
pos=0;
_ac=_aa[0]._meta;
if(_ac&&_ac.ctor!==_ab){
_a9=_ac.chains;
if(!_a9||_a9.constructor!=="manual"){
err("calling chained constructor with inherited",this.declaredClass);
}
while(_ad=_aa[++pos]){
_ac=_ad._meta;
if(_ac&&_ac.ctor===_ab){
break;
}
}
pos=_ad?pos:-1;
}
}
while(_ad=_aa[++pos]){
_ac=_ad._meta;
f=_ac?_ac.ctor:_ad;
if(f){
break;
}
}
f=_ad&&f;
}
_af.c=f;
_af.p=pos;
if(f){
return a===true?f:f.apply(this,a||_a7);
}
};
function _b0(_b1,_b2){
if(typeof _b1=="string"){
return this.inherited(_b1,_b2,true);
}
return this.inherited(_b1,true);
};
function _b3(cls){
var _b4=this.constructor._meta.bases;
for(var i=0,l=_b4.length;i<l;++i){
if(_b4[i]===cls){
return true;
}
}
return this instanceof cls;
};
function _b5(_b6,_b7){
var _b8,i=0,l=d._extraNames.length;
for(_b8 in _b7){
if(_b8!=_9a&&_b7.hasOwnProperty(_b8)){
_b6[_b8]=_b7[_b8];
}
}
for(;i<l;++i){
_b8=d._extraNames[i];
if(_b8!=_9a&&_b7.hasOwnProperty(_b8)){
_b6[_b8]=_b7[_b8];
}
}
};
function _b9(_ba,_bb){
var _bc,t,i=0,l=d._extraNames.length;
for(_bc in _bb){
t=_bb[_bc];
if((t!==op[_bc]||!(_bc in op))&&_bc!=_9a){
if(_97.call(t)=="[object Function]"){
t.nom=_bc;
}
_ba[_bc]=t;
}
}
for(;i<l;++i){
_bc=d._extraNames[i];
t=_bb[_bc];
if((t!==op[_bc]||!(_bc in op))&&_bc!=_9a){
if(_97.call(t)=="[object Function]"){
t.nom=_bc;
}
_ba[_bc]=t;
}
}
return _ba;
};
function _bd(_be){
_b9(this.prototype,_be);
return this;
};
function _bf(_c0,_c1){
return function(){
var a=arguments,_c2=a,a0=a[0],f,i,m,l=_c0.length,_c3;
if(!(this instanceof a.callee)){
return _c4(a);
}
if(_c1&&(a0&&a0.preamble||this.preamble)){
_c3=new Array(_c0.length);
_c3[0]=a;
for(i=0;;){
a0=a[0];
if(a0){
f=a0.preamble;
if(f){
a=f.apply(this,a)||a;
}
}
f=_c0[i].prototype;
f=f.hasOwnProperty("preamble")&&f.preamble;
if(f){
a=f.apply(this,a)||a;
}
if(++i==l){
break;
}
_c3[i]=a;
}
}
for(i=l-1;i>=0;--i){
f=_c0[i];
m=f._meta;
f=m?m.ctor:f;
if(f){
f.apply(this,_c3?_c3[i]:a);
}
}
f=this.postscript;
if(f){
f.apply(this,_c2);
}
};
};
function _c5(_c6,_c7){
return function(){
var a=arguments,t=a,a0=a[0],f;
if(!(this instanceof a.callee)){
return _c4(a);
}
if(_c7){
if(a0){
f=a0.preamble;
if(f){
t=f.apply(this,t)||t;
}
}
f=this.preamble;
if(f){
f.apply(this,t);
}
}
if(_c6){
_c6.apply(this,a);
}
f=this.postscript;
if(f){
f.apply(this,a);
}
};
};
function _c8(_c9){
return function(){
var a=arguments,i=0,f,m;
if(!(this instanceof a.callee)){
return _c4(a);
}
for(;f=_c9[i];++i){
m=f._meta;
f=m?m.ctor:f;
if(f){
f.apply(this,a);
break;
}
}
f=this.postscript;
if(f){
f.apply(this,a);
}
};
};
function _ca(_cb,_cc,_cd){
return function(){
var b,m,f,i=0,_ce=1;
if(_cd){
i=_cc.length-1;
_ce=-1;
}
for(;b=_cc[i];i+=_ce){
m=b._meta;
f=(m?m.hidden:b.prototype)[_cb];
if(f){
f.apply(this,arguments);
}
}
};
};
function _cf(_d0){
_98.prototype=_d0.prototype;
var t=new _98;
_98.prototype=null;
return t;
};
function _c4(_d1){
var _d2=_d1.callee,t=_cf(_d2);
_d2.apply(t,_d1);
return t;
};
d.declare=function(_d3,_d4,_d5){
if(typeof _d3!="string"){
_d5=_d4;
_d4=_d3;
_d3="";
}
_d5=_d5||{};
var _d6,i,t,_d7,_d8,_d9,_da,_db=1,_dc=_d4;
if(_97.call(_d4)=="[object Array]"){
_d9=_9b(_d4,_d3);
t=_d9[0];
_db=_d9.length-t;
_d4=_d9[_db];
}else{
_d9=[0];
if(_d4){
if(_97.call(_d4)=="[object Function]"){
t=_d4._meta;
_d9=_d9.concat(t?t.bases:_d4);
}else{
err("base class is not a callable constructor.",_d3);
}
}else{
if(_d4!==null){
err("unknown base class. Did you use dojo.require to pull it in?",_d3);
}
}
}
if(_d4){
for(i=_db-1;;--i){
_d6=_cf(_d4);
if(!i){
break;
}
t=_d9[i];
(t._meta?_b5:mix)(_d6,t.prototype);
_d7=new Function;
_d7.superclass=_d4;
_d7.prototype=_d6;
_d4=_d6.constructor=_d7;
}
}else{
_d6={};
}
_b9(_d6,_d5);
t=_d5.constructor;
if(t!==op.constructor){
t.nom=_9a;
_d6.constructor=t;
}
for(i=_db-1;i;--i){
t=_d9[i]._meta;
if(t&&t.chains){
_da=mix(_da||{},t.chains);
}
}
if(_d6["-chains-"]){
_da=mix(_da||{},_d6["-chains-"]);
}
t=!_da||!_da.hasOwnProperty(_9a);
_d9[0]=_d7=(_da&&_da.constructor==="manual")?_c8(_d9):(_d9.length==1?_c5(_d5.constructor,t):_bf(_d9,t));
_d7._meta={bases:_d9,hidden:_d5,chains:_da,parents:_dc,ctor:_d5.constructor};
_d7.superclass=_d4&&_d4.prototype;
_d7.extend=_bd;
_d7.prototype=_d6;
_d6.constructor=_d7;
_d6.getInherited=_b0;
_d6.inherited=_a6;
_d6.isInstanceOf=_b3;
if(_d3){
_d6.declaredClass=_d3;
d.setObject(_d3,_d7);
}
if(_da){
for(_d8 in _da){
if(_d6[_d8]&&typeof _da[_d8]=="string"&&_d8!=_9a){
t=_d6[_d8]=_ca(_d8,_d9,_da[_d8]==="after");
t.nom=_d8;
}
}
}
return _d7;
};
d.safeMixin=_b9;
})();
}
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,r=t&&t.apply(this,arguments),i,lls=[].concat(ls);
for(i in lls){
if(!(i in ap)){
lls[i].apply(this,arguments);
}
}
return r;
};
},add:function(_dd,_de,_df){
_dd=_dd||dojo.global;
var f=_dd[_de];
if(!f||!f._listeners){
var d=dojo._listener.getDispatcher();
d.target=f;
d._listeners=[];
f=_dd[_de]=d;
}
return f._listeners.push(_df);
},remove:function(_e0,_e1,_e2){
var f=(_e0||dojo.global)[_e1];
if(f&&f._listeners&&_e2--){
delete f._listeners[_e2];
}
}};
dojo.connect=function(obj,_e3,_e4,_e5,_e6){
var a=arguments,_e7=[],i=0;
_e7.push(dojo.isString(a[0])?null:a[i++],a[i++]);
var a1=a[i+1];
_e7.push(dojo.isString(a1)||dojo.isFunction(a1)?a[i++]:null,a[i++]);
for(var l=a.length;i<l;i++){
_e7.push(a[i]);
}
return dojo._connect.apply(this,_e7);
};
dojo._connect=function(obj,_e8,_e9,_ea){
var l=dojo._listener,h=l.add(obj,_e8,dojo.hitch(_e9,_ea));
return [obj,_e8,h,l];
};
dojo.disconnect=function(_eb){
if(_eb&&_eb[0]!==undefined){
dojo._disconnect.apply(this,_eb);
delete _eb[0];
}
};
dojo._disconnect=function(obj,_ec,_ed,_ee){
_ee.remove(obj,_ec,_ed);
};
dojo._topics={};
dojo.subscribe=function(_ef,_f0,_f1){
return [_ef,dojo._listener.add(dojo._topics,_ef,dojo.hitch(_f0,_f1))];
};
dojo.unsubscribe=function(_f2){
if(_f2){
dojo._listener.remove(dojo._topics,_f2[0],_f2[1]);
}
};
dojo.publish=function(_f3,_f4){
var f=dojo._topics[_f3];
if(f){
f.apply(this,_f4||[]);
}
};
dojo.connectPublisher=function(_f5,obj,_f6){
var pf=function(){
dojo.publish(_f5,arguments);
};
return _f6?dojo.connect(obj,_f6,pf):dojo.connect(obj,pf);
};
}
if(!dojo._hasResource["dojo._base.Deferred"]){
dojo._hasResource["dojo._base.Deferred"]=true;
dojo.provide("dojo._base.Deferred");
(function(){
var _f7=function(){
};
var _f8=Object.freeze||function(){
};
dojo.Deferred=function(_f9){
var _fa,_fb,_fc,_fd,_fe;
var _ff=(this.promise={});
function _100(_101){
if(_fb){
throw new Error("This deferred has already been resolved");
}
_fa=_101;
_fb=true;
_102();
};
function _102(){
var _103;
while(!_103&&_fe){
var _104=_fe;
_fe=_fe.next;
if((_103=(_104.progress==_f7))){
_fb=false;
}
var func=(_fc?_104.error:_104.resolved);
if(func){
try{
var _105=func(_fa);
if(_105&&typeof _105.then==="function"){
_105.then(dojo.hitch(_104.deferred,"resolve"),dojo.hitch(_104.deferred,"reject"));
continue;
}
var _106=_103&&_105===undefined;
if(_103&&!_106){
_fc=_105 instanceof Error;
}
_104.deferred[_106&&_fc?"reject":"resolve"](_106?_fa:_105);
}
catch(e){
_104.deferred.reject(e);
}
}else{
if(_fc){
_104.deferred.reject(_fa);
}else{
_104.deferred.resolve(_fa);
}
}
}
};
this.resolve=this.callback=function(_107){
this.fired=0;
this.results=[_107,null];
_100(_107);
};
this.reject=this.errback=function(_108){
_fc=true;
this.fired=1;
_100(_108);
this.results=[null,_108];
if(!_108||_108.log!==false){
(dojo.config.deferredOnError||function(x){
console.error(x);
})(_108);
}
};
this.progress=function(_109){
var _10a=_fe;
while(_10a){
var _10b=_10a.progress;
_10b&&_10b(_109);
_10a=_10a.next;
}
};
this.addCallbacks=function(_10c,_10d){
this.then(_10c,_10d,_f7);
return this;
};
this.then=_ff.then=function(_10e,_10f,_110){
var _111=_110==_f7?this:new dojo.Deferred(_ff.cancel);
var _112={resolved:_10e,error:_10f,progress:_110,deferred:_111};
if(_fe){
_fd=_fd.next=_112;
}else{
_fe=_fd=_112;
}
if(_fb){
_102();
}
return _111.promise;
};
var _113=this;
this.cancel=_ff.cancel=function(){
if(!_fb){
var _114=_f9&&_f9(_113);
if(!_fb){
if(!(_114 instanceof Error)){
_114=new Error(_114);
}
_114.log=false;
_113.reject(_114);
}
}
};
_f8(_ff);
};
dojo.extend(dojo.Deferred,{addCallback:function(_115){
return this.addCallbacks(dojo.hitch.apply(dojo,arguments));
},addErrback:function(_116){
return this.addCallbacks(null,dojo.hitch.apply(dojo,arguments));
},addBoth:function(_117){
var _118=dojo.hitch.apply(dojo,arguments);
return this.addCallbacks(_118,_118);
},fired:-1});
})();
dojo.when=function(_119,_11a,_11b,_11c){
if(_119&&typeof _119.then==="function"){
return _119.then(_11a,_11b,_11c);
}
return _11a(_119);
};
}
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,_11d,_11e){
if(it===undefined){
return "undefined";
}
var _11f=typeof it;
if(_11f=="number"||_11f=="boolean"){
return it+"";
}
if(it===null){
return "null";
}
if(dojo.isString(it)){
return dojo._escapeString(it);
}
var _120=arguments.callee;
var _121;
_11e=_11e||"";
var _122=_11d?_11e+dojo.toJsonIndentStr:"";
var tf=it.__json__||it.json;
if(dojo.isFunction(tf)){
_121=tf.call(it);
if(it!==_121){
return _120(_121,_11d,_122);
}
}
if(it.nodeType&&it.cloneNode){
throw new Error("Can't serialize DOM nodes");
}
var sep=_11d?" ":"";
var _123=_11d?"\n":"";
if(dojo.isArray(it)){
var res=dojo.map(it,function(obj){
var val=_120(obj,_11d,_122);
if(typeof val!="string"){
val="undefined";
}
return _123+_122+val;
});
return "["+res.join(","+sep)+_123+_11e+"]";
}
if(_11f=="function"){
return null;
}
var _124=[],key;
for(key in it){
var _125,val;
if(typeof key=="number"){
_125="\""+key+"\"";
}else{
if(typeof key=="string"){
_125=dojo._escapeString(key);
}else{
continue;
}
}
val=_120(it[key],_11d,_122);
if(typeof val!="string"){
continue;
}
_124.push(_123+_122+_125+":"+sep+val);
}
return "{"+_124.join(","+sep)+_123+_11e+"}";
};
}
if(!dojo._hasResource["dojo._base.Color"]){
dojo._hasResource["dojo._base.Color"]=true;
dojo.provide("dojo._base.Color");
(function(){
var d=dojo;
dojo.Color=function(_126){
if(_126){
this.setColor(_126);
}
};
dojo.Color.named={black:[0,0,0],silver:[192,192,192],gray:[128,128,128],white:[255,255,255],maroon:[128,0,0],red:[255,0,0],purple:[128,0,128],fuchsia:[255,0,255],green:[0,128,0],lime:[0,255,0],olive:[128,128,0],yellow:[255,255,0],navy:[0,0,128],blue:[0,0,255],teal:[0,128,128],aqua:[0,255,255],transparent:d.config.transparentColor||[255,255,255]};
dojo.extend(dojo.Color,{r:255,g:255,b:255,a:1,_set:function(r,g,b,a){
var t=this;
t.r=r;
t.g=g;
t.b=b;
t.a=a;
},setColor:function(_127){
if(d.isString(_127)){
d.colorFromString(_127,this);
}else{
if(d.isArray(_127)){
d.colorFromArray(_127,this);
}else{
this._set(_127.r,_127.g,_127.b,_127.a);
if(!(_127 instanceof d.Color)){
this.sanitize();
}
}
}
return this;
},sanitize:function(){
return this;
},toRgb:function(){
var t=this;
return [t.r,t.g,t.b];
},toRgba:function(){
var t=this;
return [t.r,t.g,t.b,t.a];
},toHex:function(){
var arr=d.map(["r","g","b"],function(x){
var s=this[x].toString(16);
return s.length<2?"0"+s:s;
},this);
return "#"+arr.join("");
},toCss:function(_128){
var t=this,rgb=t.r+", "+t.g+", "+t.b;
return (_128?"rgba("+rgb+", "+t.a:"rgb("+rgb)+")";
},toString:function(){
return this.toCss(true);
}});
dojo.blendColors=function(_129,end,_12a,obj){
var t=obj||new d.Color();
d.forEach(["r","g","b","a"],function(x){
t[x]=_129[x]+(end[x]-_129[x])*_12a;
if(x!="a"){
t[x]=Math.round(t[x]);
}
});
return t.sanitize();
};
dojo.colorFromRgb=function(_12b,obj){
var m=_12b.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/);
return m&&dojo.colorFromArray(m[1].split(/\s*,\s*/),obj);
};
dojo.colorFromHex=function(_12c,obj){
var t=obj||new d.Color(),bits=(_12c.length==4)?4:8,mask=(1<<bits)-1;
_12c=Number("0x"+_12c.substr(1));
if(isNaN(_12c)){
return null;
}
d.forEach(["b","g","r"],function(x){
var c=_12c&mask;
_12c>>=bits;
t[x]=bits==4?17*c:c;
});
t.a=1;
return t;
};
dojo.colorFromArray=function(a,obj){
var t=obj||new d.Color();
t._set(Number(a[0]),Number(a[1]),Number(a[2]),Number(a[3]));
if(isNaN(t.a)){
t.a=1;
}
return t.sanitize();
};
dojo.colorFromString=function(str,obj){
var a=d.Color.named[str];
return a&&d.colorFromArray(a,obj)||d.colorFromRgb(str,obj)||d.colorFromHex(str,obj);
};
})();
}
if(!dojo._hasResource["dojo._base.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(_12d,_12e){
dojo.global=_12d;
dojo.doc=_12e;
};
dojo.withGlobal=function(_12f,_130,_131,_132){
var _133=dojo.global;
try{
dojo.global=_12f;
return dojo.withDoc.call(null,_12f.document,_130,_131,_132);
}
finally{
dojo.global=_133;
}
};
dojo.withDoc=function(_134,_135,_136,_137){
var _138=dojo.doc,_139=dojo._bodyLtr,oldQ=dojo.isQuirks;
try{
dojo.doc=_134;
delete dojo._bodyLtr;
dojo.isQuirks=dojo.doc.compatMode=="BackCompat";
if(_136&&typeof _135=="string"){
_135=_136[_135];
}
return _135.apply(_136,_137||[]);
}
finally{
dojo.doc=_138;
delete dojo._bodyLtr;
if(_139!==undefined){
dojo._bodyLtr=_139;
}
dojo.isQuirks=oldQ;
}
};
}
if(!dojo._hasResource["dojo._base.event"]){
dojo._hasResource["dojo._base.event"]=true;
dojo.provide("dojo._base.event");
(function(){
var del=(dojo._event_listener={add:function(node,name,fp){
if(!node){
return;
}
name=del._normalizeEventName(name);
fp=del._fixCallback(name,fp);
if(!dojo.isIE&&(name=="mouseenter"||name=="mouseleave")){
var ofp=fp;
name=(name=="mouseenter")?"mouseover":"mouseout";
fp=function(e){
if(!dojo.isDescendant(e.relatedTarget,node)){
return ofp.call(this,e);
}
};
}
node.addEventListener(name,fp,false);
return fp;
},remove:function(node,_13a,_13b){
if(node){
_13a=del._normalizeEventName(_13a);
if(!dojo.isIE&&(_13a=="mouseenter"||_13a=="mouseleave")){
_13a=(_13a=="mouseenter")?"mouseover":"mouseout";
}
node.removeEventListener(_13a,_13b,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,_13c){
switch(evt.type){
case "keypress":
del._setKeyChar(evt);
break;
}
return evt;
},_setKeyChar:function(evt){
evt.keyChar=evt.charCode>=32?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,_13d){
return del._fixEvent(evt,_13d);
};
dojo.stopEvent=function(evt){
evt.preventDefault();
evt.stopPropagation();
};
var _13e=dojo._listener;
dojo._connect=function(obj,_13f,_140,_141,_142){
var _143=obj&&(obj.nodeType||obj.attachEvent||obj.addEventListener);
var lid=_143?(_142?2:1):0,l=[dojo._listener,del,_13e][lid];
var h=l.add(obj,_13f,dojo.hitch(_140,_141));
return [obj,_13f,h,lid];
};
dojo._disconnect=function(obj,_144,_145,_146){
([dojo._listener,del,_13e][_146]).remove(obj,_144,_145);
};
dojo.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,META:dojo.isSafari?91:224,PAUSE:19,CAPS_LOCK:20,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,INSERT:45,DELETE:46,HELP:47,LEFT_WINDOW:91,RIGHT_WINDOW:92,SELECT:93,NUMPAD_0:96,NUMPAD_1:97,NUMPAD_2:98,NUMPAD_3:99,NUMPAD_4:100,NUMPAD_5:101,NUMPAD_6:102,NUMPAD_7:103,NUMPAD_8:104,NUMPAD_9:105,NUMPAD_MULTIPLY:106,NUMPAD_PLUS:107,NUMPAD_ENTER:108,NUMPAD_MINUS:109,NUMPAD_PERIOD:110,NUMPAD_DIVIDE:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,NUM_LOCK:144,SCROLL_LOCK:145,copyKey:dojo.isMac&&!dojo.isAIR?(dojo.isSafari?91:224):17};
var _147=dojo.isMac?"metaKey":"ctrlKey";
dojo.isCopyKey=function(e){
return e[_147];
};
if(dojo.isIE<9||(dojo.isIE&&dojo.isQuirks)){
dojo.mouseButtons={LEFT:1,MIDDLE:4,RIGHT:2,isButton:function(e,_148){
return e.button&_148;
},isLeft:function(e){
return e.button&1;
},isMiddle:function(e){
return e.button&4;
},isRight:function(e){
return e.button&2;
}};
}else{
dojo.mouseButtons={LEFT:0,MIDDLE:1,RIGHT:2,isButton:function(e,_149){
return e.button==_149;
},isLeft:function(e){
return e.button==0;
},isMiddle:function(e){
return e.button==1;
},isRight:function(e){
return e.button==2;
}};
}
if(dojo.isIE){
var _14a=function(e,code){
try{
return (e.keyCode=code);
}
catch(e){
return 0;
}
};
var iel=dojo._listener;
var _14b=(dojo._ieListenersName="_"+dojo._scopeName+"_listeners");
if(!dojo.config._allow_leaks){
_13e=iel=dojo._ie_listener={handlers:[],add:function(_14c,_14d,_14e){
_14c=_14c||dojo.global;
var f=_14c[_14d];
if(!f||!f[_14b]){
var d=dojo._getIeDispatcher();
d.target=f&&(ieh.push(f)-1);
d[_14b]=[];
f=_14c[_14d]=d;
}
return f[_14b].push(ieh.push(_14e)-1);
},remove:function(_14f,_150,_151){
var f=(_14f||dojo.global)[_150],l=f&&f[_14b];
if(f&&l&&_151--){
delete ieh[l[_151]];
delete l[_151];
}
}};
var ieh=iel.handlers;
}
dojo.mixin(del,{add:function(node,_152,fp){
if(!node){
return;
}
_152=del._normalizeEventName(_152);
if(_152=="onkeypress"){
var kd=node.onkeydown;
if(!kd||!kd[_14b]||!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,_152,del._fixCallback(fp));
},remove:function(node,_153,_154){
_153=del._normalizeEventName(_153);
iel.remove(node,_153,_154);
if(_153=="onkeypress"){
var kd=node.onkeydown;
if(--kd._stealthKeydownRefs<=0){
iel.remove(node,"onkeydown",kd._stealthKeydownHandle);
delete kd._stealthKeydownHandle;
}
}
},_normalizeEventName:function(_155){
return _155.slice(0,2)!="on"?"on"+_155:_155;
},_nop:function(){
},_fixEvent:function(evt,_156){
if(!evt){
var w=_156&&(_156.ownerDocument||_156.document||_156).parentWindow||window;
evt=w.event;
}
if(!evt){
return (evt);
}
evt.target=evt.srcElement;
evt.currentTarget=(_156||evt.srcElement);
evt.layerX=evt.offsetX;
evt.layerY=evt.offsetY;
var se=evt.srcElement,doc=(se&&se.ownerDocument)||document;
var _157=((dojo.isIE<6)||(doc["compatMode"]=="BackCompat"))?doc.body:doc.documentElement;
var _158=dojo._getIeDocumentElementOffset();
evt.pageX=evt.clientX+dojo._fixIeBiDiScrollLeft(_157.scrollLeft||0)-_158.x;
evt.pageY=evt.clientY+(_157.scrollTop||0)-_158.y;
if(evt.type=="mouseover"){
evt.relatedTarget=evt.fromElement;
}
if(evt.type=="mouseout"){
evt.relatedTarget=evt.toElement;
}
if(dojo.isIE<9||dojo.isQuirks){
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[_14b]){
return;
}
var k=evt.keyCode;
var _159=(k!=13||(dojo.isIE>=9&&!dojo.isQuirks))&&k!=32&&k!=27&&(k<48||k>90)&&(k<96||k>111)&&(k<186||k>192)&&(k<219||k>222);
if(_159||evt.ctrlKey){
var c=_159?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);
if(dojo.isIE<9||(dojo.isIE&&dojo.isQuirks)){
evt.cancelBubble=faux.cancelBubble;
}
evt.returnValue=faux.returnValue;
_14a(evt,faux.keyCode);
}
},_stopPropagation:function(){
this.cancelBubble=true;
},_preventDefault:function(){
this.bubbledKeyCode=this.keyCode;
if(this.ctrlKey){
_14a(this,0);
}
this.returnValue=false;
}});
dojo.stopEvent=(dojo.isIE<9||dojo.isQuirks)?function(evt){
evt=evt||window.event;
del._stopPropagation.call(evt);
del._preventDefault.call(evt);
}:dojo.stopEvent;
}
del._synthesizeEvent=function(evt,_15a){
var faux=dojo.mixin({},evt,_15a);
del._setKeyChar(faux);
faux.preventDefault=function(){
evt.preventDefault();
};
faux.stopPropagation=function(){
evt.stopPropagation();
};
return faux;
};
if(dojo.isOpera){
dojo.mixin(del,{_fixEvent:function(evt,_15b){
switch(evt.type){
case "keypress":
var c=evt.which;
if(c==3){
c=99;
}
c=c<41&&!evt.shiftKey?0:c;
if(evt.ctrlKey&&!evt.shiftKey&&c>=65&&c<=90){
c+=32;
}
return del._synthesizeEvent(evt,{charCode:c});
}
return evt;
}});
}
if(dojo.isWebKit){
del._add=del.add;
del._remove=del.remove;
dojo.mixin(del,{add:function(node,_15c,fp){
if(!node){
return;
}
var _15d=del._add(node,_15c,fp);
if(del._normalizeEventName(_15c)=="keypress"){
_15d._stealthKeyDownHandle=del._add(node,"keydown",function(evt){
var k=evt.keyCode;
var _15e=k!=13&&k!=32&&(k<48||k>90)&&(k<96||k>111)&&(k<186||k>192)&&(k<219||k>222);
if(_15e||evt.ctrlKey){
var c=_15e?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 _15d;
},remove:function(node,_15f,_160){
if(node){
if(_160._stealthKeyDownHandle){
del._remove(node,"keydown",_160._stealthKeyDownHandle);
}
del._remove(node,_15f,_160);
}
},_fixEvent:function(evt,_161){
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,_162){
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(_162,args);
var lls=[].concat(ls);
for(var i in lls){
var f=h[lls[i]];
if(!(i in ap)&&f){
f.apply(_162,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.byId=function(id,doc){
if(typeof id!="string"){
return id;
}
var _163=doc||dojo.doc,te=_163.getElementById(id);
if(te&&(te.attributes.id.value==id||te.id==id)){
return te;
}else{
var eles=_163.all[id];
if(!eles||eles.nodeName){
eles=[eles];
}
var i=0;
while((te=eles[i++])){
if((te.attributes&&te.attributes.id&&te.attributes.id.value==id)||te.id==id){
return te;
}
}
}
};
}else{
dojo.byId=function(id,doc){
return ((typeof id=="string")?(doc||dojo.doc).getElementById(id):id)||null;
};
}
(function(){
var d=dojo;
var byId=d.byId;
var _164=null,_165;
d.addOnWindowUnload(function(){
_164=null;
});
dojo._destroyElement=dojo.destroy=function(node){
node=byId(node);
try{
var doc=node.ownerDocument;
if(!_164||_165!=doc){
_164=doc.createElement("div");
_165=doc;
}
_164.appendChild(node.parentNode?node.parentNode.removeChild(node):node);
_164.innerHTML="";
}
catch(e){
}
};
dojo.isDescendant=function(node,_166){
try{
node=byId(node);
_166=byId(_166);
while(node){
if(node==_166){
return true;
}
node=node.parentNode;
}
}
catch(e){
}
return false;
};
dojo.setSelectable=function(node,_167){
node=byId(node);
if(d.isMozilla){
node.style.MozUserSelect=_167?"":"none";
}else{
if(d.isKhtml||d.isWebKit){
node.style.KhtmlUserSelect=_167?"auto":"none";
}else{
if(d.isIE){
var v=(node.unselectable=_167?"":"on");
d.query("*",node).forEach("item.unselectable = '"+v+"'");
}
}
}
};
var _168=function(node,ref){
var _169=ref.parentNode;
if(_169){
_169.insertBefore(node,ref);
}
};
var _16a=function(node,ref){
var _16b=ref.parentNode;
if(_16b){
if(_16b.lastChild==ref){
_16b.appendChild(node);
}else{
_16b.insertBefore(node,ref.nextSibling);
}
}
};
dojo.place=function(node,_16c,_16d){
_16c=byId(_16c);
if(typeof node=="string"){
node=/^\s*</.test(node)?d._toDom(node,_16c.ownerDocument):byId(node);
}
if(typeof _16d=="number"){
var cn=_16c.childNodes;
if(!cn.length||cn.length<=_16d){
_16c.appendChild(node);
}else{
_168(node,cn[_16d<0?0:_16d]);
}
}else{
switch(_16d){
case "before":
_168(node,_16c);
break;
case "after":
_16a(node,_16c);
break;
case "replace":
_16c.parentNode.replaceChild(node,_16c);
break;
case "only":
d.empty(_16c);
_16c.appendChild(node);
break;
case "first":
if(_16c.firstChild){
_168(node,_16c.firstChild);
break;
}
default:
_16c.appendChild(node);
}
}
return node;
};
dojo.boxModel="content-box";
if(d.isIE){
d.boxModel=document.compatMode=="BackCompat"?"border-box":"content-box";
}
var gcs;
if(d.isWebKit){
gcs=function(node){
var s;
if(node.nodeType==1){
var dv=node.ownerDocument.defaultView;
s=dv.getComputedStyle(node,null);
if(!s&&node.style){
node.style.display="";
s=dv.getComputedStyle(node,null);
}
}
return s||{};
};
}else{
if(d.isIE){
gcs=function(node){
return node.nodeType==1?node.currentStyle:{};
};
}else{
gcs=function(node){
return node.nodeType==1?node.ownerDocument.defaultView.getComputedStyle(node,null):{};
};
}
}
dojo.getComputedStyle=gcs;
if(!d.isIE){
d._toPixelValue=function(_16e,_16f){
return parseFloat(_16f)||0;
};
}else{
d._toPixelValue=function(_170,_171){
if(!_171){
return 0;
}
if(_171=="medium"){
return 4;
}
if(_171.slice&&_171.slice(-2)=="px"){
return parseFloat(_171);
}
with(_170){
var _172=style.left;
var _173=runtimeStyle.left;
runtimeStyle.left=currentStyle.left;
try{
style.left=_171;
_171=style.pixelLeft;
}
catch(e){
_171=0;
}
style.left=_172;
runtimeStyle.left=_173;
}
return _171;
};
}
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<9?function(node){
try{
return af(node).Opacity/100;
}
catch(e){
return 1;
}
}:function(node){
return gcs(node).opacity;
};
dojo._setOpacity=d.isIE<9?function(node,_174){
var ov=_174*100,_175=_174==1;
node.style.zoom=_175?"":1;
if(!af(node)){
if(_175){
return _174;
}
node.style.filter+=" progid:"+astr+"(Opacity="+ov+")";
}else{
af(node,1).Opacity=ov;
}
af(node,1).Enabled=!_175;
if(node.nodeName.toLowerCase()=="tr"){
d.query("> td",node).forEach(function(i){
d._setOpacity(i,_174);
});
}
return _174;
}:function(node,_176){
return node.style.opacity=_176;
};
var _177={left:true,top:true};
var _178=/margin|padding|width|height|max|min|offset/;
var _179=function(node,type,_17a){
type=type.toLowerCase();
if(d.isIE){
if(_17a=="auto"){
if(type=="height"){
return node.offsetHeight;
}
if(type=="width"){
return node.offsetWidth;
}
}
if(type=="fontweight"){
switch(_17a){
case 700:
return "bold";
case 400:
default:
return "normal";
}
}
}
if(!(type in _177)){
_177[type]=_178.test(type);
}
return _177[type]?px(node,_17a):_17a;
};
var _17b=d.isIE?"styleFloat":"cssFloat",_17c={"cssFloat":_17b,"styleFloat":_17b,"float":_17b};
dojo.style=function(node,_17d,_17e){
var n=byId(node),args=arguments.length,op=(_17d=="opacity");
_17d=_17c[_17d]||_17d;
if(args==3){
return op?d._setOpacity(n,_17e):n.style[_17d]=_17e;
}
if(args==2&&op){
return d._getOpacity(n);
}
var s=gcs(n);
if(args==2&&typeof _17d!="string"){
for(var x in _17d){
d.style(node,x,_17d[x]);
}
return s;
}
return (args==1)?s:_179(n,_17d,s[_17d]||n.style[_17d]);
};
dojo._getPadExtents=function(n,_17f){
var s=_17f||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,_180){
var ne="none",s=_180||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,_181){
var s=_181||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,_182){
var s=_182||gcs(n),l=px(n,s.marginLeft),t=px(n,s.marginTop),r=px(n,s.marginRight),b=px(n,s.marginBottom);
if(d.isWebKit&&(s.position!="absolute")){
r=l;
}
return {l:l,t:t,w:l+r,h:t+b};
};
dojo._getMarginBox=function(node,_183){
var s=_183||gcs(node),me=d._getMarginExtents(node,s);
var l=node.offsetLeft-me.l,t=node.offsetTop-me.t,p=node.parentNode;
if(d.isMoz){
var sl=parseFloat(s.left),st=parseFloat(s.top);
if(!isNaN(sl)&&!isNaN(st)){
l=sl,t=st;
}else{
if(p&&p.style){
var pcs=gcs(p);
if(pcs.overflow!="visible"){
var be=d._getBorderExtents(p,pcs);
l+=be.l,t+=be.t;
}
}
}
}else{
if(d.isOpera||(d.isIE>7&&!d.isQuirks)){
if(p){
be=d._getBorderExtents(p);
l-=be.l;
t-=be.t;
}
}
}
return {l:l,t:t,w:node.offsetWidth+me.w,h:node.offsetHeight+me.h};
};
dojo._getMarginSize=function(node,_184){
node=byId(node);
var me=d._getMarginExtents(node,_184||gcs(node));
var size=node.getBoundingClientRect();
return {w:(size.right-size.left)+me.w,h:(size.bottom-size.top)+me.h};
};
dojo._getContentBox=function(node,_185){
var s=_185||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,_186){
var s=_186||gcs(node),pe=d._getPadExtents(node,s),cb=d._getContentBox(node,s);
return {l:cb.l-pe.l,t:cb.t-pe.t,w:cb.w+pe.w,h:cb.h+pe.h};
};
dojo._setBox=function(node,l,t,w,h,u){
u=u||"px";
var s=node.style;
if(!isNaN(l)){
s.left=l+u;
}
if(!isNaN(t)){
s.top=t+u;
}
if(w>=0){
s.width=w+u;
}
if(h>=0){
s.height=h+u;
}
};
dojo._isButtonTag=function(node){
return node.tagName=="BUTTON"||node.tagName=="INPUT"&&(node.getAttribute("type")||"").toUpperCase()=="BUTTON";
};
dojo._usesBorderBox=function(node){
var n=node.tagName;
return d.boxModel=="border-box"||n=="TABLE"||d._isButtonTag(node);
};
dojo._setContentSize=function(node,_187,_188,_189){
if(d._usesBorderBox(node)){
var pb=d._getPadBorderExtents(node,_189);
if(_187>=0){
_187+=pb.w;
}
if(_188>=0){
_188+=pb.h;
}
}
d._setBox(node,NaN,NaN,_187,_188);
};
dojo._setMarginBox=function(node,_18a,_18b,_18c,_18d,_18e){
var s=_18e||gcs(node),bb=d._usesBorderBox(node),pb=bb?_18f:d._getPadBorderExtents(node,s);
if(d.isWebKit){
if(d._isButtonTag(node)){
var ns=node.style;
if(_18c>=0&&!ns.width){
ns.width="4px";
}
if(_18d>=0&&!ns.height){
ns.height="4px";
}
}
}
var mb=d._getMarginExtents(node,s);
if(_18c>=0){
_18c=Math.max(_18c-pb.w-mb.w,0);
}
if(_18d>=0){
_18d=Math.max(_18d-pb.h-mb.h,0);
}
d._setBox(node,_18a,_18b,_18c,_18d);
};
var _18f={l:0,t:0,w:0,h:0};
dojo.marginBox=function(node,box){
var n=byId(node),s=gcs(n),b=box;
return !b?d._getMarginBox(n,s):d._setMarginBox(n,b.l,b.t,b.w,b.h,s);
};
dojo.contentBox=function(node,box){
var n=byId(node),s=gcs(n),b=box;
return !b?d._getContentBox(n,s):d._setContentSize(n,b.w,b.h,s);
};
var _190=function(node,prop){
if(!(node=(node||0).parentNode)){
return 0;
}
var val,_191=0,_192=d.body();
while(node&&node.style){
if(gcs(node).position=="fixed"){
return 0;
}
val=node[prop];
if(val){
_191+=val-0;
if(node==_192){
break;
}
}
node=node.parentNode;
}
return _191;
};
dojo._docScroll=function(){
var n=d.global;
return "pageXOffset" in n?{x:n.pageXOffset,y:n.pageYOffset}:(n=d.isQuirks?d.doc.body:d.doc.documentElement,{x:d._fixIeBiDiScrollLeft(n.scrollLeft||0),y:n.scrollTop||0});
};
dojo._isBodyLtr=function(){
return "_bodyLtr" in d?d._bodyLtr:d._bodyLtr=(d.body().dir||d.doc.documentElement.dir||"ltr").toLowerCase()=="ltr";
};
dojo._getIeDocumentElementOffset=function(){
var de=d.doc.documentElement;
if(d.isIE<8){
var r=de.getBoundingClientRect();
var l=r.left,t=r.top;
if(d.isIE<7){
l+=de.clientLeft;
t+=de.clientTop;
}
return {x:l<0?0:l,y:t<0?0:t};
}else{
return {x:0,y:0};
}
};
dojo._fixIeBiDiScrollLeft=function(_193){
var ie=d.isIE;
if(ie&&!d._isBodyLtr()){
var qk=d.isQuirks,de=qk?d.doc.body:d.doc.documentElement;
if(ie==6&&!qk&&d.global.frameElement&&de.scrollHeight>de.clientHeight){
_193+=de.clientLeft;
}
return (ie<8||qk)?(_193+de.clientWidth-de.scrollWidth):-_193;
}
return _193;
};
dojo._abs=dojo.position=function(node,_194){
node=byId(node);
var db=d.body(),dh=db.parentNode,ret=node.getBoundingClientRect();
ret={x:ret.left,y:ret.top,w:ret.right-ret.left,h:ret.bottom-ret.top};
if(d.isIE){
var _195=d._getIeDocumentElementOffset();
ret.x-=_195.x+(d.isQuirks?db.clientLeft+db.offsetLeft:0);
ret.y-=_195.y+(d.isQuirks?db.clientTop+db.offsetTop:0);
}else{
if(d.isFF==3){
var cs=gcs(dh);
ret.x-=px(dh,cs.marginLeft)+px(dh,cs.borderLeftWidth);
ret.y-=px(dh,cs.marginTop)+px(dh,cs.borderTopWidth);
}
}
if(_194){
var _196=d._docScroll();
ret.x+=_196.x;
ret.y+=_196.y;
}
return ret;
};
dojo.coords=function(node,_197){
var n=byId(node),s=gcs(n),mb=d._getMarginBox(n,s);
var abs=d.position(n,_197);
mb.x=abs.x;
mb.y=abs.y;
return mb;
};
var _198={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"},_199={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"},_19a={innerHTML:1,className:1,htmlFor:d.isIE,value:1};
var _19b=function(name){
return _199[name.toLowerCase()]||name;
};
var _19c=function(node,name){
var attr=node.getAttributeNode&&node.getAttributeNode(name);
return attr&&attr.specified;
};
dojo.hasAttr=function(node,name){
var lc=name.toLowerCase();
return _19a[_198[lc]||name]||_19c(byId(node),_199[lc]||name);
};
var _19d={},_19e=0,_19f=dojo._scopeName+"attrid",_1a0={col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1};
dojo.attr=function(node,name,_1a1){
node=byId(node);
var args=arguments.length,prop;
if(args==2&&typeof name!="string"){
for(var x in name){
d.attr(node,x,name[x]);
}
return node;
}
var lc=name.toLowerCase(),_1a2=_198[lc]||name,_1a3=_19a[_1a2],_1a4=_199[lc]||name;
if(args==3){
do{
if(_1a2=="style"&&typeof _1a1!="string"){
d.style(node,_1a1);
break;
}
if(_1a2=="innerHTML"){
if(d.isIE&&node.tagName.toLowerCase() in _1a0){
d.empty(node);
node.appendChild(d._toDom(_1a1,node.ownerDocument));
}else{
node[_1a2]=_1a1;
}
break;
}
if(d.isFunction(_1a1)){
var _1a5=d.attr(node,_19f);
if(!_1a5){
_1a5=_19e++;
d.attr(node,_19f,_1a5);
}
if(!_19d[_1a5]){
_19d[_1a5]={};
}
var h=_19d[_1a5][_1a2];
if(h){
d.disconnect(h);
}else{
try{
delete node[_1a2];
}
catch(e){
}
}
_19d[_1a5][_1a2]=d.connect(node,_1a2,_1a1);
break;
}
if(_1a3||typeof _1a1=="boolean"){
node[_1a2]=_1a1;
break;
}
node.setAttribute(_1a4,_1a1);
}while(false);
return node;
}
_1a1=node[_1a2];
if(_1a3&&typeof _1a1!="undefined"){
return _1a1;
}
if(_1a2!="href"&&(typeof _1a1=="boolean"||d.isFunction(_1a1))){
return _1a1;
}
return _19c(node,_1a4)?node.getAttribute(_1a4):null;
};
dojo.removeAttr=function(node,name){
byId(node).removeAttribute(_19b(name));
};
dojo.getNodeProp=function(node,name){
node=byId(node);
var lc=name.toLowerCase(),_1a6=_198[lc]||name;
if((_1a6 in node)&&_1a6!="href"){
return node[_1a6];
}
var _1a7=_199[lc]||name;
return _19c(node,_1a7)?node.getAttribute(_1a7):null;
};
dojo.create=function(tag,_1a8,_1a9,pos){
var doc=d.doc;
if(_1a9){
_1a9=byId(_1a9);
doc=_1a9.ownerDocument;
}
if(typeof tag=="string"){
tag=doc.createElement(tag);
}
if(_1a8){
d.attr(tag,_1a8);
}
if(_1a9){
d.place(tag,_1a9,pos);
}
return tag;
};
d.empty=d.isIE?function(node){
node=byId(node);
for(var c;c=node.lastChild;){
d.destroy(c);
}
}:function(node){
byId(node).innerHTML="";
};
var _1aa={option:["select"],tbody:["table"],thead:["table"],tfoot:["table"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","thead","tr"],legend:["fieldset"],caption:["table"],colgroup:["table"],col:["table","colgroup"],li:["ul"]},_1ab=/<\s*([\w\:]+)/,_1ac={},_1ad=0,_1ae="__"+d._scopeName+"ToDomId";
for(var _1af in _1aa){
if(_1aa.hasOwnProperty(_1af)){
var tw=_1aa[_1af];
tw.pre=_1af=="option"?"<select multiple=\"multiple\">":"<"+tw.join("><")+">";
tw.post="</"+tw.reverse().join("></")+">";
}
}
d._toDom=function(frag,doc){
doc=doc||d.doc;
var _1b0=doc[_1ae];
if(!_1b0){
doc[_1ae]=_1b0=++_1ad+"";
_1ac[_1b0]=doc.createElement("div");
}
frag+="";
var _1b1=frag.match(_1ab),tag=_1b1?_1b1[1].toLowerCase():"",_1b2=_1ac[_1b0],wrap,i,fc,df;
if(_1b1&&_1aa[tag]){
wrap=_1aa[tag];
_1b2.innerHTML=wrap.pre+frag+wrap.post;
for(i=wrap.length;i;--i){
_1b2=_1b2.firstChild;
}
}else{
_1b2.innerHTML=frag;
}
if(_1b2.childNodes.length==1){
return _1b2.removeChild(_1b2.firstChild);
}
df=doc.createDocumentFragment();
while(fc=_1b2.firstChild){
df.appendChild(fc);
}
return df;
};
var _1b3="className";
dojo.hasClass=function(node,_1b4){
return ((" "+byId(node)[_1b3]+" ").indexOf(" "+_1b4+" ")>=0);
};
var _1b5=/\s+/,a1=[""],_1b6={},_1b7=function(s){
if(typeof s=="string"||s instanceof String){
if(s.indexOf(" ")<0){
a1[0]=s;
return a1;
}else{
return s.split(_1b5);
}
}
return s||"";
};
dojo.addClass=function(node,_1b8){
node=byId(node);
_1b8=_1b7(_1b8);
var cls=node[_1b3],_1b9;
cls=cls?" "+cls+" ":" ";
_1b9=cls.length;
for(var i=0,len=_1b8.length,c;i<len;++i){
c=_1b8[i];
if(c&&cls.indexOf(" "+c+" ")<0){
cls+=c+" ";
}
}
if(_1b9<cls.length){
node[_1b3]=cls.substr(1,cls.length-2);
}
};
dojo.removeClass=function(node,_1ba){
node=byId(node);
var cls;
if(_1ba!==undefined){
_1ba=_1b7(_1ba);
cls=" "+node[_1b3]+" ";
for(var i=0,len=_1ba.length;i<len;++i){
cls=cls.replace(" "+_1ba[i]+" "," ");
}
cls=d.trim(cls);
}else{
cls="";
}
if(node[_1b3]!=cls){
node[_1b3]=cls;
}
};
dojo.replaceClass=function(node,_1bb,_1bc){
node=byId(node);
_1b6.className=node.className;
dojo.removeClass(_1b6,_1bc);
dojo.addClass(_1b6,_1bb);
if(node.className!==_1b6.className){
node.className=_1b6.className;
}
};
dojo.toggleClass=function(node,_1bd,_1be){
if(_1be===undefined){
_1be=!d.hasClass(node,_1bd);
}
d[_1be?"addClass":"removeClass"](node,_1bd);
};
})();
}
if(!dojo._hasResource["dojo._base.NodeList"]){
dojo._hasResource["dojo._base.NodeList"]=true;
dojo.provide("dojo._base.NodeList");
(function(){
var d=dojo;
var ap=Array.prototype,aps=ap.slice,apc=ap.concat;
var tnl=function(a,_1bf,_1c0){
if(!a.sort){
a=aps.call(a,0);
}
var ctor=_1c0||this._NodeListCtor||d._NodeListCtor;
a.constructor=ctor;
dojo._mixin(a,ctor.prototype);
a._NodeListCtor=ctor;
return _1bf?a._stash(_1bf):a;
};
var _1c1=function(f,a,o){
a=[0].concat(aps.call(a,0));
o=o||d.global;
return function(node){
a[0]=node;
return f.apply(o,a);
};
};
var _1c2=function(f,o){
return function(){
this.forEach(_1c1(f,arguments,o));
return this;
};
};
var _1c3=function(f,o){
return function(){
return this.map(_1c1(f,arguments,o));
};
};
var _1c4=function(f,o){
return function(){
return this.filter(_1c1(f,arguments,o));
};
};
var _1c5=function(f,g,o){
return function(){
var a=arguments,body=_1c1(f,a,o);
if(g.call(o||d.global,a)){
return this.map(body);
}
this.forEach(body);
return this;
};
};
var _1c6=function(a){
return a.length==1&&(typeof a[0]=="string");
};
var _1c7=function(node){
var p=node.parentNode;
if(p){
p.removeChild(node);
}
};
dojo.NodeList=function(){
return tnl(Array.apply(null,arguments));
};
d._NodeListCtor=d.NodeList;
var nl=d.NodeList,nlp=nl.prototype;
nl._wrap=nlp._wrap=tnl;
nl._adaptAsMap=_1c3;
nl._adaptAsForEach=_1c2;
nl._adaptAsFilter=_1c4;
nl._adaptWithCondition=_1c5;
d.forEach(["slice","splice"],function(name){
var f=ap[name];
nlp[name]=function(){
return this._wrap(f.apply(this,arguments),name=="slice"?this:null);
};
});
d.forEach(["indexOf","lastIndexOf","every","some"],function(name){
var f=d[name];
nlp[name]=function(){
return f.apply(d,[this].concat(aps.call(arguments,0)));
};
});
d.forEach(["attr","style"],function(name){
nlp[name]=_1c5(d[name],_1c6);
});
d.forEach(["connect","addClass","removeClass","replaceClass","toggleClass","empty","removeAttr"],function(name){
nlp[name]=_1c2(d[name]);
});
dojo.extend(dojo.NodeList,{_normalize:function(_1c8,_1c9){
var _1ca=_1c8.parse===true?true:false;
if(typeof _1c8.template=="string"){
var _1cb=_1c8.templateFunc||(dojo.string&&dojo.string.substitute);
_1c8=_1cb?_1cb(_1c8.template,_1c8):_1c8;
}
var type=(typeof _1c8);
if(type=="string"||type=="number"){
_1c8=dojo._toDom(_1c8,(_1c9&&_1c9.ownerDocument));
if(_1c8.nodeType==11){
_1c8=dojo._toArray(_1c8.childNodes);
}else{
_1c8=[_1c8];
}
}else{
if(!dojo.isArrayLike(_1c8)){
_1c8=[_1c8];
}else{
if(!dojo.isArray(_1c8)){
_1c8=dojo._toArray(_1c8);
}
}
}
if(_1ca){
_1c8._runParse=true;
}
return _1c8;
},_cloneNode:function(node){
return node.cloneNode(true);
},_place:function(ary,_1cc,_1cd,_1ce){
if(_1cc.nodeType!=1&&_1cd=="only"){
return;
}
var _1cf=_1cc,_1d0;
var _1d1=ary.length;
for(var i=_1d1-1;i>=0;i--){
var node=(_1ce?this._cloneNode(ary[i]):ary[i]);
if(ary._runParse&&dojo.parser&&dojo.parser.parse){
if(!_1d0){
_1d0=_1cf.ownerDocument.createElement("div");
}
_1d0.appendChild(node);
dojo.parser.parse(_1d0);
node=_1d0.firstChild;
while(_1d0.firstChild){
_1d0.removeChild(_1d0.firstChild);
}
}
if(i==_1d1-1){
dojo.place(node,_1cf,_1cd);
}else{
_1cf.parentNode.insertBefore(node,_1cf);
}
_1cf=node;
}
},_stash:function(_1d2){
this._parent=_1d2;
return this;
},end:function(){
if(this._parent){
return this._parent;
}else{
return new this._NodeListCtor();
}
},concat:function(item){
var t=d.isArray(this)?this:aps.call(this,0),m=d.map(arguments,function(a){
return a&&!d.isArray(a)&&(typeof NodeList!="undefined"&&a.constructor===NodeList||a.constructor===this._NodeListCtor)?aps.call(a,0):a;
});
return this._wrap(apc.apply(t,m),this);
},map:function(func,obj){
return this._wrap(d.map(this,func,obj),this);
},forEach:function(_1d3,_1d4){
d.forEach(this,_1d3,_1d4);
return this;
},coords:_1c3(d.coords),position:_1c3(d.position),place:function(_1d5,_1d6){
var item=d.query(_1d5)[0];
return this.forEach(function(node){
d.place(node,item,_1d6);
});
},orphan:function(_1d7){
return (_1d7?d._filterQueryResult(this,_1d7):this).forEach(_1c7);
},adopt:function(_1d8,_1d9){
return d.query(_1d8).place(this[0],_1d9)._stash(this);
},query:function(_1da){
if(!_1da){
return this;
}
var ret=this.map(function(node){
return d.query(_1da,node).filter(function(_1db){
return _1db!==undefined;
});
});
return this._wrap(apc.apply([],ret),this);
},filter:function(_1dc){
var a=arguments,_1dd=this,_1de=0;
if(typeof _1dc=="string"){
_1dd=d._filterQueryResult(this,a[0]);
if(a.length==1){
return _1dd._stash(this);
}
_1de=1;
}
return this._wrap(d.filter(_1dd,a[_1de],a[_1de+1]),this);
},addContent:function(_1df,_1e0){
_1df=this._normalize(_1df,this[0]);
for(var i=0,node;(node=this[i]);i++){
this._place(_1df,node,_1e0,i>0);
}
return this;
},instantiate:function(_1e1,_1e2){
var c=d.isFunction(_1e1)?_1e1:d.getObject(_1e1);
_1e2=_1e2||{};
return this.forEach(function(node){
new c(_1e2,node);
});
},at:function(){
var t=new this._NodeListCtor();
d.forEach(arguments,function(i){
if(i<0){
i=this.length+i;
}
if(this[i]){
t.push(this[i]);
}
},this);
return t._stash(this);
}});
nl.events=["blur","focus","change","click","error","keydown","keypress","keyup","load","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","submit"];
d.forEach(nl.events,function(evt){
var _1e3="on"+evt;
nlp[_1e3]=function(a,b){
return this.connect(_1e3,a,b);
};
});
})();
}
if(!dojo._hasResource["dojo._base.query"]){
dojo._hasResource["dojo._base.query"]=true;
(function(){
var _1e4=function(d){
var trim=d.trim;
var each=d.forEach;
var qlc=(d._NodeListCtor=d.NodeList);
var _1e5=function(){
return d.doc;
};
var _1e6=((d.isWebKit||d.isMozilla)&&((_1e5().compatMode)=="BackCompat"));
var _1e7=!!_1e5().firstChild["children"]?"children":"childNodes";
var _1e8=">~+";
var _1e9=false;
var _1ea=function(){
return true;
};
var _1eb=function(_1ec){
if(_1e8.indexOf(_1ec.slice(-1))>=0){
_1ec+=" * ";
}else{
_1ec+=" ";
}
var ts=function(s,e){
return trim(_1ec.slice(s,e));
};
var _1ed=[];
var _1ee=-1,_1ef=-1,_1f0=-1,_1f1=-1,_1f2=-1,inId=-1,_1f3=-1,lc="",cc="",_1f4;
var x=0,ql=_1ec.length,_1f5=null,_1f6=null;
var _1f7=function(){
if(_1f3>=0){
var tv=(_1f3==x)?null:ts(_1f3,x);
_1f5[(_1e8.indexOf(tv)<0)?"tag":"oper"]=tv;
_1f3=-1;
}
};
var _1f8=function(){
if(inId>=0){
_1f5.id=ts(inId,x).replace(/\\/g,"");
inId=-1;
}
};
var _1f9=function(){
if(_1f2>=0){
_1f5.classes.push(ts(_1f2+1,x).replace(/\\/g,""));
_1f2=-1;
}
};
var _1fa=function(){
_1f8();
_1f7();
_1f9();
};
var _1fb=function(){
_1fa();
if(_1f1>=0){
_1f5.pseudos.push({name:ts(_1f1+1,x)});
}
_1f5.loops=(_1f5.pseudos.length||_1f5.attrs.length||_1f5.classes.length);
_1f5.oquery=_1f5.query=ts(_1f4,x);
_1f5.otag=_1f5.tag=(_1f5["oper"])?null:(_1f5.tag||"*");
if(_1f5.tag){
_1f5.tag=_1f5.tag.toUpperCase();
}
if(_1ed.length&&(_1ed[_1ed.length-1].oper)){
_1f5.infixOper=_1ed.pop();
_1f5.query=_1f5.infixOper.query+" "+_1f5.query;
}
_1ed.push(_1f5);
_1f5=null;
};
for(;lc=cc,cc=_1ec.charAt(x),x<ql;x++){
if(lc=="\\"){
continue;
}
if(!_1f5){
_1f4=x;
_1f5={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null,getTag:function(){
return (_1e9)?this.otag:this.tag;
}};
_1f3=x;
}
if(_1ee>=0){
if(cc=="]"){
if(!_1f6.attr){
_1f6.attr=ts(_1ee+1,x);
}else{
_1f6.matchFor=ts((_1f0||_1ee+1),x);
}
var cmf=_1f6.matchFor;
if(cmf){
if((cmf.charAt(0)=="\"")||(cmf.charAt(0)=="'")){
_1f6.matchFor=cmf.slice(1,-1);
}
}
_1f5.attrs.push(_1f6);
_1f6=null;
_1ee=_1f0=-1;
}else{
if(cc=="="){
var _1fc=("|~^$*".indexOf(lc)>=0)?lc:"";
_1f6.type=_1fc+cc;
_1f6.attr=ts(_1ee+1,x-_1fc.length);
_1f0=x+1;
}
}
}else{
if(_1ef>=0){
if(cc==")"){
if(_1f1>=0){
_1f6.value=ts(_1ef+1,x);
}
_1f1=_1ef=-1;
}
}else{
if(cc=="#"){
_1fa();
inId=x+1;
}else{
if(cc=="."){
_1fa();
_1f2=x;
}else{
if(cc==":"){
_1fa();
_1f1=x;
}else{
if(cc=="["){
_1fa();
_1ee=x;
_1f6={};
}else{
if(cc=="("){
if(_1f1>=0){
_1f6={name:ts(_1f1+1,x),value:null};
_1f5.pseudos.push(_1f6);
}
_1ef=x;
}else{
if((cc==" ")&&(lc!=cc)){
_1fb();
}
}
}
}
}
}
}
}
}
return _1ed;
};
var _1fd=function(_1fe,_1ff){
if(!_1fe){
return _1ff;
}
if(!_1ff){
return _1fe;
}
return function(){
return _1fe.apply(window,arguments)&&_1ff.apply(window,arguments);
};
};
var _200=function(i,arr){
var r=arr||[];
if(i){
r.push(i);
}
return r;
};
var _201=function(n){
return (1==n.nodeType);
};
var _202="";
var _203=function(elem,attr){
if(!elem){
return _202;
}
if(attr=="class"){
return elem.className||_202;
}
if(attr=="for"){
return elem.htmlFor||_202;
}
if(attr=="style"){
return elem.style.cssText||_202;
}
return (_1e9?elem.getAttribute(attr):elem.getAttribute(attr,2))||_202;
};
var _204={"*=":function(attr,_205){
return function(elem){
return (_203(elem,attr).indexOf(_205)>=0);
};
},"^=":function(attr,_206){
return function(elem){
return (_203(elem,attr).indexOf(_206)==0);
};
},"$=":function(attr,_207){
var tval=" "+_207;
return function(elem){
var ea=" "+_203(elem,attr);
return (ea.lastIndexOf(_207)==(ea.length-_207.length));
};
},"~=":function(attr,_208){
var tval=" "+_208+" ";
return function(elem){
var ea=" "+_203(elem,attr)+" ";
return (ea.indexOf(tval)>=0);
};
},"|=":function(attr,_209){
var _20a=" "+_209+"-";
return function(elem){
var ea=" "+_203(elem,attr);
return ((ea==_209)||(ea.indexOf(_20a)==0));
};
},"=":function(attr,_20b){
return function(elem){
return (_203(elem,attr)==_20b);
};
}};
var _20c=(typeof _1e5().firstChild.nextElementSibling=="undefined");
var _20d=!_20c?"nextElementSibling":"nextSibling";
var _20e=!_20c?"previousElementSibling":"previousSibling";
var _20f=(_20c?_201:_1ea);
var _210=function(node){
while(node=node[_20e]){
if(_20f(node)){
return false;
}
}
return true;
};
var _211=function(node){
while(node=node[_20d]){
if(_20f(node)){
return false;
}
}
return true;
};
var _212=function(node){
var root=node.parentNode;
var i=0,tret=root[_1e7],ci=(node["_i"]||-1),cl=(root["_l"]||-1);
if(!tret){
return -1;
}
var l=tret.length;
if(cl==l&&ci>=0&&cl>=0){
return ci;
}
root["_l"]=l;
ci=-1;
for(var te=root["firstElementChild"]||root["firstChild"];te;te=te[_20d]){
if(_20f(te)){
te["_i"]=++i;
if(node===te){
ci=i;
}
}
}
return ci;
};
var _213=function(elem){
return !((_212(elem))%2);
};
var _214=function(elem){
return ((_212(elem))%2);
};
var _215={"checked":function(name,_216){
return function(elem){
return !!("checked" in elem?elem.checked:elem.selected);
};
},"first-child":function(){
return _210;
},"last-child":function(){
return _211;
},"only-child":function(name,_217){
return function(node){
if(!_210(node)){
return false;
}
if(!_211(node)){
return false;
}
return true;
};
},"empty":function(name,_218){
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,_219){
var cz=_219.charAt(0);
if(cz=="\""||cz=="'"){
_219=_219.slice(1,-1);
}
return function(elem){
return (elem.innerHTML.indexOf(_219)>=0);
};
},"not":function(name,_21a){
var p=_1eb(_21a)[0];
var _21b={el:1};
if(p.tag!="*"){
_21b.tag=1;
}
if(!p.classes.length){
_21b.classes=1;
}
var ntf=_21c(p,_21b);
return function(elem){
return (!ntf(elem));
};
},"nth-child":function(name,_21d){
var pi=parseInt;
if(_21d=="odd"){
return _214;
}else{
if(_21d=="even"){
return _213;
}
}
if(_21d.indexOf("n")!=-1){
var _21e=_21d.split("n",2);
var pred=_21e[0]?((_21e[0]=="-")?-1:pi(_21e[0])):1;
var idx=_21e[1]?pi(_21e[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=_212(elem);
return (i>=lb)&&(ub<0||i<=ub)&&((i%pred)==idx);
};
}else{
_21d=idx;
}
}
var _21f=pi(_21d);
return function(elem){
return (_212(elem)==_21f);
};
}};
var _220=(d.isIE<9||(dojo.isIE&&dojo.isQuirks))?function(cond){
var clc=cond.toLowerCase();
if(clc=="class"){
cond="className";
}
return function(elem){
return (_1e9?elem.getAttribute(cond):elem[cond]||elem[clc]);
};
}:function(cond){
return function(elem){
return (elem&&elem.getAttribute&&elem.hasAttribute(cond));
};
};
var _21c=function(_221,_222){
if(!_221){
return _1ea;
}
_222=_222||{};
var ff=null;
if(!("el" in _222)){
ff=_1fd(ff,_201);
}
if(!("tag" in _222)){
if(_221.tag!="*"){
ff=_1fd(ff,function(elem){
return (elem&&(elem.tagName==_221.getTag()));
});
}
}
if(!("classes" in _222)){
each(_221.classes,function(_223,idx,arr){
var re=new RegExp("(?:^|\\s)"+_223+"(?:\\s|$)");
ff=_1fd(ff,function(elem){
return re.test(elem.className);
});
ff.count=idx;
});
}
if(!("pseudos" in _222)){
each(_221.pseudos,function(_224){
var pn=_224.name;
if(_215[pn]){
ff=_1fd(ff,_215[pn](pn,_224.value));
}
});
}
if(!("attrs" in _222)){
each(_221.attrs,function(attr){
var _225;
var a=attr.attr;
if(attr.type&&_204[attr.type]){
_225=_204[attr.type](a,attr.matchFor);
}else{
if(a.length){
_225=_220(a);
}
}
if(_225){
ff=_1fd(ff,_225);
}
});
}
if(!("id" in _222)){
if(_221.id){
ff=_1fd(ff,function(elem){
return (!!elem&&(elem.id==_221.id));
});
}
}
if(!ff){
if(!("default" in _222)){
ff=_1ea;
}
}
return ff;
};
var _226=function(_227){
return function(node,ret,bag){
while(node=node[_20d]){
if(_20c&&(!_201(node))){
continue;
}
if((!bag||_228(node,bag))&&_227(node)){
ret.push(node);
}
break;
}
return ret;
};
};
var _229=function(_22a){
return function(root,ret,bag){
var te=root[_20d];
while(te){
if(_20f(te)){
if(bag&&!_228(te,bag)){
break;
}
if(_22a(te)){
ret.push(te);
}
}
te=te[_20d];
}
return ret;
};
};
var _22b=function(_22c){
_22c=_22c||_1ea;
return function(root,ret,bag){
var te,x=0,tret=root[_1e7];
while(te=tret[x++]){
if(_20f(te)&&(!bag||_228(te,bag))&&(_22c(te,x))){
ret.push(te);
}
}
return ret;
};
};
var _22d=function(node,root){
var pn=node.parentNode;
while(pn){
if(pn==root){
break;
}
pn=pn.parentNode;
}
return !!pn;
};
var _22e={};
var _22f=function(_230){
var _231=_22e[_230.query];
if(_231){
return _231;
}
var io=_230.infixOper;
var oper=(io?io.oper:"");
var _232=_21c(_230,{el:1});
var qt=_230.tag;
var _233=("*"==qt);
var ecs=_1e5()["getElementsByClassName"];
if(!oper){
if(_230.id){
_232=(!_230.loops&&_233)?_1ea:_21c(_230,{el:1,id:1});
_231=function(root,arr){
var te=d.byId(_230.id,(root.ownerDocument||root));
if(!te||!_232(te)){
return;
}
if(9==root.nodeType){
return _200(te,arr);
}else{
if(_22d(te,root)){
return _200(te,arr);
}
}
};
}else{
if(ecs&&/\{\s*\[native code\]\s*\}/.test(String(ecs))&&_230.classes.length&&!_1e6){
_232=_21c(_230,{el:1,classes:1,id:1});
var _234=_230.classes.join(" ");
_231=function(root,arr,bag){
var ret=_200(0,arr),te,x=0;
var tret=root.getElementsByClassName(_234);
while((te=tret[x++])){
if(_232(te,root)&&_228(te,bag)){
ret.push(te);
}
}
return ret;
};
}else{
if(!_233&&!_230.loops){
_231=function(root,arr,bag){
var ret=_200(0,arr),te,x=0;
var tret=root.getElementsByTagName(_230.getTag());
while((te=tret[x++])){
if(_228(te,bag)){
ret.push(te);
}
}
return ret;
};
}else{
_232=_21c(_230,{el:1,tag:1,id:1});
_231=function(root,arr,bag){
var ret=_200(0,arr),te,x=0;
var tret=root.getElementsByTagName(_230.getTag());
while((te=tret[x++])){
if(_232(te,root)&&_228(te,bag)){
ret.push(te);
}
}
return ret;
};
}
}
}
}else{
var _235={el:1};
if(_233){
_235.tag=1;
}
_232=_21c(_230,_235);
if("+"==oper){
_231=_226(_232);
}else{
if("~"==oper){
_231=_229(_232);
}else{
if(">"==oper){
_231=_22b(_232);
}
}
}
}
return _22e[_230.query]=_231;
};
var _236=function(root,_237){
var _238=_200(root),qp,x,te,qpl=_237.length,bag,ret;
for(var i=0;i<qpl;i++){
ret=[];
qp=_237[i];
x=_238.length-1;
if(x>0){
bag={};
ret.nozip=true;
}
var gef=_22f(qp);
for(var j=0;(te=_238[j]);j++){
gef(te,ret,bag);
}
if(!ret.length){
break;
}
_238=ret;
}
return ret;
};
var _239={},_23a={};
var _23b=function(_23c){
var _23d=_1eb(trim(_23c));
if(_23d.length==1){
var tef=_22f(_23d[0]);
return function(root){
var r=tef(root,new qlc());
if(r){
r.nozip=true;
}
return r;
};
}
return function(root){
return _236(root,_23d);
};
};
var nua=navigator.userAgent;
var wk="WebKit/";
var _23e=(d.isWebKit&&(nua.indexOf(wk)>0)&&(parseFloat(nua.split(wk)[1])>528));
var _23f=d.isIE?"commentStrip":"nozip";
var qsa="querySelectorAll";
var _240=(!!_1e5()[qsa]&&(!d.isSafari||(d.isSafari>3.1)||_23e));
var _241=/n\+\d|([^ ])?([>~+])([^ =])?/g;
var _242=function(_243,pre,ch,post){
return ch?(pre?pre+" ":"")+ch+(post?" "+post:""):_243;
};
var _244=function(_245,_246){
_245=_245.replace(_241,_242);
if(_240){
var _247=_23a[_245];
if(_247&&!_246){
return _247;
}
}
var _248=_239[_245];
if(_248){
return _248;
}
var qcz=_245.charAt(0);
var _249=(-1==_245.indexOf(" "));
if((_245.indexOf("#")>=0)&&(_249)){
_246=true;
}
var _24a=(_240&&(!_246)&&(_1e8.indexOf(qcz)==-1)&&(!d.isIE||(_245.indexOf(":")==-1))&&(!(_1e6&&(_245.indexOf(".")>=0)))&&(_245.indexOf(":contains")==-1)&&(_245.indexOf(":checked")==-1)&&(_245.indexOf("|=")==-1));
if(_24a){
var tq=(_1e8.indexOf(_245.charAt(_245.length-1))>=0)?(_245+" *"):_245;
return _23a[_245]=function(root){
try{
if(!((9==root.nodeType)||_249)){
throw "";
}
var r=root[qsa](tq);
r[_23f]=true;
return r;
}
catch(e){
return _244(_245,true)(root);
}
};
}else{
var _24b=_245.split(/\s*,\s*/);
return _239[_245]=((_24b.length<2)?_23b(_245):function(root){
var _24c=0,ret=[],tp;
while((tp=_24b[_24c++])){
ret=ret.concat(_23b(tp)(root));
}
return ret;
});
}
};
var _24d=0;
var _24e=d.isIE?function(node){
if(_1e9){
return (node.getAttribute("_uid")||node.setAttribute("_uid",++_24d)||_24d);
}else{
return node.uniqueID;
}
}:function(node){
return (node._uid||(node._uid=++_24d));
};
var _228=function(node,bag){
if(!bag){
return 1;
}
var id=_24e(node);
if(!bag[id]){
return bag[id]=1;
}
return 0;
};
var _24f="_zipIdx";
var _250=function(arr){
if(arr&&arr.nozip){
return (qlc._wrap)?qlc._wrap(arr):arr;
}
var ret=new qlc();
if(!arr||!arr.length){
return ret;
}
if(arr[0]){
ret.push(arr[0]);
}
if(arr.length<2){
return ret;
}
_24d++;
if(d.isIE&&_1e9){
var _251=_24d+"";
arr[0].setAttribute(_24f,_251);
for(var x=1,te;te=arr[x];x++){
if(arr[x].getAttribute(_24f)!=_251){
ret.push(te);
}
te.setAttribute(_24f,_251);
}
}else{
if(d.isIE&&arr.commentStrip){
try{
for(var x=1,te;te=arr[x];x++){
if(_201(te)){
ret.push(te);
}
}
}
catch(e){
}
}else{
if(arr[0]){
arr[0][_24f]=_24d;
}
for(var x=1,te;te=arr[x];x++){
if(arr[x][_24f]!=_24d){
ret.push(te);
}
te[_24f]=_24d;
}
}
}
return ret;
};
d.query=function(_252,root){
qlc=d._NodeListCtor;
if(!_252){
return new qlc();
}
if(_252.constructor==qlc){
return _252;
}
if(typeof _252!="string"){
return new qlc(_252);
}
if(typeof root=="string"){
root=d.byId(root);
if(!root){
return new qlc();
}
}
root=root||_1e5();
var od=root.ownerDocument||root.documentElement;
_1e9=(root.contentType&&root.contentType=="application/xml")||(d.isOpera&&(root.doctype||od.toString()=="[object XMLDocument]"))||(!!od)&&(d.isIE?od.xml:(root.xmlVersion||od.xmlVersion));
var r=_244(_252)(root);
if(r&&r.nozip&&!qlc._wrap){
return r;
}
return _250(r);
};
d.query.pseudos=_215;
d._filterQueryResult=function(_253,_254,root){
var _255=new d._NodeListCtor(),_256=_1eb(_254),_257=(_256.length==1&&!/[^\w#\.]/.test(_254))?_21c(_256[0]):function(node){
return dojo.query(_254,root).indexOf(node)!=-1;
};
for(var x=0,te;te=_253[x];x++){
if(_257(te)){
_255.push(te);
}
}
return _255;
};
};
var _258=function(){
acme={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;
},forEach:function(arr,_259,_25a){
if(!arr||!arr.length){
return;
}
for(var i=0,l=arr.length;i<l;++i){
_259.call(_25a||window,arr[i],i,arr);
}
},byId:function(id,doc){
if(typeof id=="string"){
return (doc||document).getElementById(id);
}else{
return id;
}
},doc:document,NodeList:Array};
var n=navigator;
var dua=n.userAgent;
var dav=n.appVersion;
var tv=parseFloat(dav);
acme.isOpera=(dua.indexOf("Opera")>=0)?tv:undefined;
acme.isKhtml=(dav.indexOf("Konqueror")>=0)?tv:undefined;
acme.isWebKit=parseFloat(dua.split("WebKit/")[1])||undefined;
acme.isChrome=parseFloat(dua.split("Chrome/")[1])||undefined;
var _25b=Math.max(dav.indexOf("WebKit"),dav.indexOf("Safari"),0);
if(_25b&&!acme.isChrome){
acme.isSafari=parseFloat(dav.split("Version/")[1]);
if(!acme.isSafari||parseFloat(dav.substr(_25b+7))<=419.3){
acme.isSafari=2;
}
}
if(document.all&&!acme.isOpera){
acme.isIE=parseFloat(dav.split("MSIE ")[1])||undefined;
}
Array._wrap=function(arr){
return arr;
};
return acme;
};
if(this["dojo"]){
dojo.provide("dojo._base.query");
_1e4(this["queryPortability"]||this["acme"]||dojo);
}else{
_1e4(this["queryPortability"]||this["acme"]||_258());
}
})();
}
if(!dojo._hasResource["dojo._base.xhr"]){
dojo._hasResource["dojo._base.xhr"]=true;
dojo.provide("dojo._base.xhr");
(function(){
var _25c=dojo,cfg=_25c.config;
function _25d(obj,name,_25e){
if(_25e===null){
return;
}
var val=obj[name];
if(typeof val=="string"){
obj[name]=[val,_25e];
}else{
if(_25c.isArray(val)){
val.push(_25e);
}else{
obj[name]=_25e;
}
}
};
dojo.fieldToObject=function(_25f){
var ret=null;
var item=_25c.byId(_25f);
if(item){
var _260=item.name;
var type=(item.type||"").toLowerCase();
if(_260&&type&&!item.disabled){
if(type=="radio"||type=="checkbox"){
if(item.checked){
ret=item.value;
}
}else{
if(item.multiple){
ret=[];
_25c.query("option",item).forEach(function(opt){
if(opt.selected){
ret.push(opt.value);
}
});
}else{
ret=item.value;
}
}
}
}
return ret;
};
dojo.formToObject=function(_261){
var ret={};
var _262="file|submit|image|reset|button|";
_25c.forEach(dojo.byId(_261).elements,function(item){
var _263=item.name;
var type=(item.type||"").toLowerCase();
if(_263&&type&&_262.indexOf(type)==-1&&!item.disabled){
_25d(ret,_263,_25c.fieldToObject(item));
if(type=="image"){
ret[_263+".x"]=ret[_263+".y"]=ret[_263].x=ret[_263].y=0;
}
}
});
return ret;
};
dojo.objectToQuery=function(map){
var enc=encodeURIComponent;
var _264=[];
var _265={};
for(var name in map){
var _266=map[name];
if(_266!=_265[name]){
var _267=enc(name)+"=";
if(_25c.isArray(_266)){
for(var i=0;i<_266.length;i++){
_264.push(_267+enc(_266[i]));
}
}else{
_264.push(_267+enc(_266));
}
}
}
return _264.join("&");
};
dojo.formToQuery=function(_268){
return _25c.objectToQuery(_25c.formToObject(_268));
};
dojo.formToJson=function(_269,_26a){
return _25c.toJson(_25c.formToObject(_269),_26a);
};
dojo.queryToObject=function(str){
var ret={};
var qp=str.split("&");
var dec=decodeURIComponent;
_25c.forEach(qp,function(item){
if(item.length){
var _26b=item.split("=");
var name=dec(_26b.shift());
var val=dec(_26b.join("="));
if(typeof ret[name]=="string"){
ret[name]=[ret[name]];
}
if(_25c.isArray(ret[name])){
ret[name].push(val);
}else{
ret[name]=val;
}
}
});
return ret;
};
dojo._blockAsync=false;
var _26c=_25c._contentHandlers=dojo.contentHandlers={text:function(xhr){
return xhr.responseText;
},json:function(xhr){
return _25c.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 _26d=xhr.responseText;
var _26e=_26d.indexOf("/*");
var _26f=_26d.lastIndexOf("*/");
if(_26e==-1||_26f==-1){
throw new Error("JSON was not comment filtered");
}
return _25c.fromJson(_26d.substring(_26e+2,_26f));
},javascript:function(xhr){
return _25c.eval(xhr.responseText);
},xml:function(xhr){
var _270=xhr.responseXML;
if(_25c.isIE&&(!_270||!_270.documentElement)){
var ms=function(n){
return "MSXML"+n+".DOMDocument";
};
var dp=["Microsoft.XMLDOM",ms(6),ms(4),ms(3),ms(2)];
_25c.some(dp,function(p){
try{
var dom=new ActiveXObject(p);
dom.async=false;
dom.loadXML(xhr.responseText);
_270=dom;
}
catch(e){
return false;
}
return true;
});
}
return _270;
},"json-comment-optional":function(xhr){
if(xhr.responseText&&/^[^{\[]*\/\*/.test(xhr.responseText)){
return _26c["json-comment-filtered"](xhr);
}else{
return _26c["json"](xhr);
}
}};
dojo._ioSetArgs=function(args,_271,_272,_273){
var _274={args:args,url:args.url};
var _275=null;
if(args.form){
var form=_25c.byId(args.form);
var _276=form.getAttributeNode("action");
_274.url=_274.url||(_276?_276.value:null);
_275=_25c.formToObject(form);
}
var _277=[{}];
if(_275){
_277.push(_275);
}
if(args.content){
_277.push(args.content);
}
if(args.preventCache){
_277.push({"dojo.preventCache":new Date().valueOf()});
}
_274.query=_25c.objectToQuery(_25c.mixin.apply(null,_277));
_274.handleAs=args.handleAs||"text";
var d=new _25c.Deferred(_271);
d.addCallbacks(_272,function(_278){
return _273(_278,d);
});
var ld=args.load;
if(ld&&_25c.isFunction(ld)){
d.addCallback(function(_279){
return ld.call(args,_279,_274);
});
}
var err=args.error;
if(err&&_25c.isFunction(err)){
d.addErrback(function(_27a){
return err.call(args,_27a,_274);
});
}
var _27b=args.handle;
if(_27b&&_25c.isFunction(_27b)){
d.addBoth(function(_27c){
return _27b.call(args,_27c,_274);
});
}
if(cfg.ioPublish&&_25c.publish&&_274.args.ioPublish!==false){
d.addCallbacks(function(res){
_25c.publish("/dojo/io/load",[d,res]);
return res;
},function(res){
_25c.publish("/dojo/io/error",[d,res]);
return res;
});
d.addBoth(function(res){
_25c.publish("/dojo/io/done",[d,res]);
return res;
});
}
d.ioArgs=_274;
return d;
};
var _27d=function(dfd){
dfd.canceled=true;
var xhr=dfd.ioArgs.xhr;
var _27e=typeof xhr.abort;
if(_27e=="function"||_27e=="object"||_27e=="unknown"){
xhr.abort();
}
var err=dfd.ioArgs.error;
if(!err){
err=new Error("xhr cancelled");
err.dojoType="cancel";
}
return err;
};
var _27f=function(dfd){
var ret=_26c[dfd.ioArgs.handleAs](dfd.ioArgs.xhr);
return ret===undefined?null:ret;
};
var _280=function(_281,dfd){
if(!dfd.ioArgs.args.failOk){
console.error(_281);
}
return _281;
};
var _282=null;
var _283=[];
var _284=0;
var _285=function(dfd){
if(_284<=0){
_284=0;
if(cfg.ioPublish&&_25c.publish&&(!dfd||dfd&&dfd.ioArgs.args.ioPublish!==false)){
_25c.publish("/dojo/io/stop");
}
}
};
var _286=function(){
var now=(new Date()).getTime();
if(!_25c._blockAsync){
for(var i=0,tif;i<_283.length&&(tif=_283[i]);i++){
var dfd=tif.dfd;
var func=function(){
if(!dfd||dfd.canceled||!tif.validCheck(dfd)){
_283.splice(i--,1);
_284-=1;
}else{
if(tif.ioCheck(dfd)){
_283.splice(i--,1);
tif.resHandle(dfd);
_284-=1;
}else{
if(dfd.startTime){
if(dfd.startTime+(dfd.ioArgs.args.timeout||0)<now){
_283.splice(i--,1);
var err=new Error("timeout exceeded");
err.dojoType="timeout";
dfd.errback(err);
dfd.cancel();
_284-=1;
}
}
}
}
};
if(dojo.config.debugAtAllCosts){
func.call(this);
}else{
try{
func.call(this);
}
catch(e){
dfd.errback(e);
}
}
}
}
_285(dfd);
if(!_283.length){
clearInterval(_282);
_282=null;
return;
}
};
dojo._ioCancelAll=function(){
try{
_25c.forEach(_283,function(i){
try{
i.dfd.cancel();
}
catch(e){
}
});
}
catch(e){
}
};
if(_25c.isIE){
_25c.addOnWindowUnload(_25c._ioCancelAll);
}
_25c._ioNotifyStart=function(dfd){
if(cfg.ioPublish&&_25c.publish&&dfd.ioArgs.args.ioPublish!==false){
if(!_284){
_25c.publish("/dojo/io/start");
}
_284+=1;
_25c.publish("/dojo/io/send",[dfd]);
}
};
_25c._ioWatch=function(dfd,_287,_288,_289){
var args=dfd.ioArgs.args;
if(args.timeout){
dfd.startTime=(new Date()).getTime();
}
_283.push({dfd:dfd,validCheck:_287,ioCheck:_288,resHandle:_289});
if(!_282){
_282=setInterval(_286,50);
}
if(args.sync){
_286();
}
};
var _28a="application/x-www-form-urlencoded";
var _28b=function(dfd){
return dfd.ioArgs.xhr.readyState;
};
var _28c=function(dfd){
return 4==dfd.ioArgs.xhr.readyState;
};
var _28d=function(dfd){
var xhr=dfd.ioArgs.xhr;
if(_25c._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(_28e){
if(_28e.query.length){
_28e.url+=(_28e.url.indexOf("?")==-1?"?":"&")+_28e.query;
_28e.query=null;
}
};
dojo.xhr=function(_28f,args,_290){
var dfd=_25c._ioSetArgs(args,_27d,_27f,_280);
var _291=dfd.ioArgs;
var xhr=_291.xhr=_25c._xhrObj(_291.args);
if(!xhr){
dfd.cancel();
return dfd;
}
if("postData" in args){
_291.query=args.postData;
}else{
if("putData" in args){
_291.query=args.putData;
}else{
if("rawBody" in args){
_291.query=args.rawBody;
}else{
if((arguments.length>2&&!_290)||"POST|PUT".indexOf(_28f.toUpperCase())==-1){
_25c._ioAddQueryToUrl(_291);
}
}
}
}
xhr.open(_28f,_291.url,args.sync!==true,args.user||undefined,args.password||undefined);
if(args.headers){
for(var hdr in args.headers){
if(hdr.toLowerCase()==="content-type"&&!args.contentType){
args.contentType=args.headers[hdr];
}else{
if(args.headers[hdr]){
xhr.setRequestHeader(hdr,args.headers[hdr]);
}
}
}
}
xhr.setRequestHeader("Content-Type",args.contentType||_28a);
if(!args.headers||!("X-Requested-With" in args.headers)){
xhr.setRequestHeader("X-Requested-With","XMLHttpRequest");
}
_25c._ioNotifyStart(dfd);
if(dojo.config.debugAtAllCosts){
xhr.send(_291.query);
}else{
try{
xhr.send(_291.query);
}
catch(e){
_291.error=e;
dfd.cancel();
}
}
_25c._ioWatch(dfd,_28b,_28c,_28d);
xhr=null;
return dfd;
};
dojo.xhrGet=function(args){
return _25c.xhr("GET",args);
};
dojo.rawXhrPost=dojo.xhrPost=function(args){
return _25c.xhr("POST",args,true);
};
dojo.rawXhrPut=dojo.xhrPut=function(args){
return _25c.xhr("PUT",args,true);
};
dojo.xhrDelete=function(args){
return _25c.xhr("DELETE",args);
};
})();
}
if(!dojo._hasResource["dojo._base.fx"]){
dojo._hasResource["dojo._base.fx"]=true;
dojo.provide("dojo._base.fx");
(function(){
var d=dojo;
var _292=d._mixin;
dojo._Line=function(_293,end){
this.start=_293;
this.end=end;
};
dojo._Line.prototype.getValue=function(n){
return ((this.end-this.start)*n)+this.start;
};
dojo.Animation=function(args){
_292(this,args);
if(d.isArray(this.curve)){
this.curve=new d._Line(this.curve[0],this.curve[1]);
}
};
d._Animation=d.Animation;
d.extend(dojo.Animation,{duration:350,repeat:0,rate:20,_percent:0,_startRepeatCount:0,_getStep:function(){
var _294=this._percent,_295=this.easing;
return _295?_295(_294):_294;
},_fire:function(evt,args){
var a=args||[];
if(this[evt]){
if(d.config.debugAtAllCosts){
this[evt].apply(this,a);
}else{
try{
this[evt].apply(this,a);
}
catch(e){
console.error("exception in animation handler for:",evt);
console.error(e);
}
}
}
return this;
},play:function(_296,_297){
var _298=this;
if(_298._delayTimer){
_298._clearTimer();
}
if(_297){
_298._stopTimer();
_298._active=_298._paused=false;
_298._percent=0;
}else{
if(_298._active&&!_298._paused){
return _298;
}
}
_298._fire("beforeBegin",[_298.node]);
var de=_296||_298.delay,_299=dojo.hitch(_298,"_play",_297);
if(de>0){
_298._delayTimer=setTimeout(_299,de);
return _298;
}
_299();
return _298;
},_play:function(_29a){
var _29b=this;
if(_29b._delayTimer){
_29b._clearTimer();
}
_29b._startTime=new Date().valueOf();
if(_29b._paused){
_29b._startTime-=_29b.duration*_29b._percent;
}
_29b._active=true;
_29b._paused=false;
var _29c=_29b.curve.getValue(_29b._getStep());
if(!_29b._percent){
if(!_29b._startRepeatCount){
_29b._startRepeatCount=_29b.repeat;
}
_29b._fire("onBegin",[_29c]);
}
_29b._fire("onPlay",[_29c]);
_29b._cycle();
return _29b;
},pause:function(){
var _29d=this;
if(_29d._delayTimer){
_29d._clearTimer();
}
_29d._stopTimer();
if(!_29d._active){
return _29d;
}
_29d._paused=true;
_29d._fire("onPause",[_29d.curve.getValue(_29d._getStep())]);
return _29d;
},gotoPercent:function(_29e,_29f){
var _2a0=this;
_2a0._stopTimer();
_2a0._active=_2a0._paused=true;
_2a0._percent=_29e;
if(_29f){
_2a0.play();
}
return _2a0;
},stop:function(_2a1){
var _2a2=this;
if(_2a2._delayTimer){
_2a2._clearTimer();
}
if(!_2a2._timer){
return _2a2;
}
_2a2._stopTimer();
if(_2a1){
_2a2._percent=1;
}
_2a2._fire("onStop",[_2a2.curve.getValue(_2a2._getStep())]);
_2a2._active=_2a2._paused=false;
return _2a2;
},status:function(){
if(this._active){
return this._paused?"paused":"playing";
}
return "stopped";
},_cycle:function(){
var _2a3=this;
if(_2a3._active){
var curr=new Date().valueOf();
var step=(curr-_2a3._startTime)/(_2a3.duration);
if(step>=1){
step=1;
}
_2a3._percent=step;
if(_2a3.easing){
step=_2a3.easing(step);
}
_2a3._fire("onAnimate",[_2a3.curve.getValue(step)]);
if(_2a3._percent<1){
_2a3._startTimer();
}else{
_2a3._active=false;
if(_2a3.repeat>0){
_2a3.repeat--;
_2a3.play(null,true);
}else{
if(_2a3.repeat==-1){
_2a3.play(null,true);
}else{
if(_2a3._startRepeatCount){
_2a3.repeat=_2a3._startRepeatCount;
_2a3._startRepeatCount=0;
}
}
}
_2a3._percent=0;
_2a3._fire("onEnd",[_2a3.node]);
!_2a3.repeat&&_2a3._stopTimer();
}
}
return _2a3;
},_clearTimer:function(){
clearTimeout(this._delayTimer);
delete this._delayTimer;
}});
var ctr=0,_2a4=null,_2a5={run:function(){
}};
d.extend(d.Animation,{_startTimer:function(){
if(!this._timer){
this._timer=d.connect(_2a5,"run",this,"_cycle");
ctr++;
}
if(!_2a4){
_2a4=setInterval(d.hitch(_2a5,"run"),this.rate);
}
},_stopTimer:function(){
if(this._timer){
d.disconnect(this._timer);
this._timer=null;
ctr--;
}
if(ctr<=0){
clearInterval(_2a4);
_2a4=null;
ctr=0;
}
}});
var _2a6=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 _2a7=_292({properties:{}},args),_2a8=(_2a7.properties.opacity={});
_2a8.start=!("start" in _2a7)?function(){
return +d.style(_2a7.node,"opacity")||0;
}:_2a7.start;
_2a8.end=_2a7.end;
var anim=d.animateProperty(_2a7);
d.connect(anim,"beforeBegin",d.partial(_2a6,_2a7.node));
return anim;
};
dojo.fadeIn=function(args){
return d._fade(_292({end:1},args));
};
dojo.fadeOut=function(args){
return d._fade(_292({end:0},args));
};
dojo._defaultEasing=function(n){
return 0.5+((Math.sin((n+1.5)*Math.PI))/2);
};
var _2a9=function(_2aa){
this._properties=_2aa;
for(var p in _2aa){
var prop=_2aa[p];
if(prop.start instanceof d.Color){
prop.tempColor=new d.Color();
}
}
};
_2a9.prototype.getValue=function(r){
var ret={};
for(var p in this._properties){
var prop=this._properties[p],_2ab=prop.start;
if(_2ab instanceof d.Color){
ret[p]=d.blendColors(_2ab,prop.end,r,prop.tempColor).toCss();
}else{
if(!d.isArray(_2ab)){
ret[p]=((prop.end-_2ab)*r)+_2ab+(p!="opacity"?prop.units||"px":0);
}
}
}
return ret;
};
dojo.animateProperty=function(args){
var n=args.node=d.byId(args.node);
if(!args.easing){
args.easing=d._defaultEasing;
}
var anim=new d.Animation(args);
d.connect(anim,"beforeBegin",anim,function(){
var pm={};
for(var p in this.properties){
if(p=="width"||p=="height"){
this.node.display="block";
}
var prop=this.properties[p];
if(d.isFunction(prop)){
prop=prop(n);
}
prop=pm[p]=_292({},(d.isObject(prop)?prop:{end:prop}));
if(d.isFunction(prop.start)){
prop.start=prop.start(n);
}
if(d.isFunction(prop.end)){
prop.end=prop.end(n);
}
var _2ac=(p.toLowerCase().indexOf("color")>=0);
function _2ad(node,p){
var v={height:node.offsetHeight,width:node.offsetWidth}[p];
if(v!==undefined){
return v;
}
v=d.style(node,p);
return (p=="opacity")?+v:(_2ac?v:parseFloat(v));
};
if(!("end" in prop)){
prop.end=_2ad(n,p);
}else{
if(!("start" in prop)){
prop.start=_2ad(n,p);
}
}
if(_2ac){
prop.start=new d.Color(prop.start);
prop.end=new d.Color(prop.end);
}else{
prop.start=(p=="opacity")?+prop.start:parseFloat(prop.start);
}
}
this.curve=new _2a9(pm);
});
d.connect(anim,"onAnimate",d.hitch(d,"style",anim.node));
return anim;
};
dojo.anim=function(node,_2ae,_2af,_2b0,_2b1,_2b2){
return d.animateProperty({node:node,duration:_2af||d.Animation.prototype.duration,properties:_2ae,easing:_2b0,onEnd:_2b1}).play(_2b2||0);
};
})();
}
if(!dojo._hasResource["dojo._base.browser"]){
dojo._hasResource["dojo._base.browser"]=true;
dojo.provide("dojo._base.browser");
dojo.forEach(dojo.config.require,function(i){
dojo["require"](i);
});
}
if(!dojo._hasResource["dojo._base"]){
dojo._hasResource["dojo._base"]=true;
dojo.provide("dojo._base");
}
if(!dojo._hasResource["dojo.date.stamp"]){
dojo._hasResource["dojo.date.stamp"]=true;
dojo.provide("dojo.date.stamp");
dojo.getObject("date.stamp",true,dojo);
dojo.date.stamp.fromISOString=function(_2b3,_2b4){
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 _2b5=dojo.date.stamp._isoRegExp.exec(_2b3),_2b6=null;
if(_2b5){
_2b5.shift();
if(_2b5[1]){
_2b5[1]--;
}
if(_2b5[6]){
_2b5[6]*=1000;
}
if(_2b4){
_2b4=new Date(_2b4);
dojo.forEach(dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){
return _2b4["get"+prop]();
}),function(_2b7,_2b8){
_2b5[_2b8]=_2b5[_2b8]||_2b7;
});
}
_2b6=new Date(_2b5[0]||1970,_2b5[1]||0,_2b5[2]||1,_2b5[3]||0,_2b5[4]||0,_2b5[5]||0,_2b5[6]||0);
if(_2b5[0]<100){
_2b6.setFullYear(_2b5[0]||1970);
}
var _2b9=0,_2ba=_2b5[7]&&_2b5[7].charAt(0);
if(_2ba!="Z"){
_2b9=((_2b5[8]||0)*60)+(Number(_2b5[9])||0);
if(_2ba!="-"){
_2b9*=-1;
}
}
if(_2ba){
_2b9-=_2b6.getTimezoneOffset();
}
if(_2b9){
_2b6.setTime(_2b6.getTime()+_2b9*60000);
}
}
return _2b6;
};
dojo.date.stamp.toISOString=function(_2bb,_2bc){
var _2bd=function(n){
return (n<10)?"0"+n:n;
};
_2bc=_2bc||{};
var _2be=[],_2bf=_2bc.zulu?"getUTC":"get",date="";
if(_2bc.selector!="time"){
var year=_2bb[_2bf+"FullYear"]();
date=["0000".substr((year+"").length)+year,_2bd(_2bb[_2bf+"Month"]()+1),_2bd(_2bb[_2bf+"Date"]())].join("-");
}
_2be.push(date);
if(_2bc.selector!="date"){
var time=[_2bd(_2bb[_2bf+"Hours"]()),_2bd(_2bb[_2bf+"Minutes"]()),_2bd(_2bb[_2bf+"Seconds"]())].join(":");
var _2c0=_2bb[_2bf+"Milliseconds"]();
if(_2bc.milliseconds){
time+="."+(_2c0<100?"0":"")+_2bd(_2c0);
}
if(_2bc.zulu){
time+="Z";
}else{
if(_2bc.selector!="time"){
var _2c1=_2bb.getTimezoneOffset();
var _2c2=Math.abs(_2c1);
time+=(_2c1>0?"-":"+")+_2bd(Math.floor(_2c2/60))+":"+_2bd(_2c2%60);
}
}
_2be.push(time);
}
return _2be.join("T");
};
}
if(!dojo._hasResource["dojo.parser"]){
dojo._hasResource["dojo.parser"]=true;
dojo.provide("dojo.parser");
new Date("X");
dojo.parser=new function(){
var d=dojo;
function _2c3(_2c4){
if(d.isString(_2c4)){
return "string";
}
if(typeof _2c4=="number"){
return "number";
}
if(typeof _2c4=="boolean"){
return "boolean";
}
if(d.isFunction(_2c4)){
return "function";
}
if(d.isArray(_2c4)){
return "array";
}
if(_2c4 instanceof Date){
return "date";
}
if(_2c4 instanceof d._Url){
return "url";
}
return "object";
};
function _2c5(_2c6,type){
switch(type){
case "string":
return _2c6;
case "number":
return _2c6.length?Number(_2c6):NaN;
case "boolean":
return typeof _2c6=="boolean"?_2c6:!(_2c6.toLowerCase()=="false");
case "function":
if(d.isFunction(_2c6)){
_2c6=_2c6.toString();
_2c6=d.trim(_2c6.substring(_2c6.indexOf("{")+1,_2c6.length-1));
}
try{
if(_2c6===""||_2c6.search(/[^\w\.]+/i)!=-1){
return new Function(_2c6);
}else{
return d.getObject(_2c6,false)||new Function(_2c6);
}
}
catch(e){
return new Function();
}
case "array":
return _2c6?_2c6.split(/\s*,\s*/):[];
case "date":
switch(_2c6){
case "":
return new Date("");
case "now":
return new Date();
default:
return d.date.stamp.fromISOString(_2c6);
}
case "url":
return d.baseUrl+_2c6;
default:
return d.fromJson(_2c6);
}
};
var _2c7={},_2c8={};
d.connect(d,"extend",function(){
_2c8={};
});
function _2c9(cls,_2ca){
for(var name in cls){
if(name.charAt(0)=="_"){
continue;
}
if(name in _2c7){
continue;
}
_2ca[name]=_2c3(cls[name]);
}
return _2ca;
};
function _2cb(_2cc,_2cd){
var c=_2c8[_2cc];
if(!c){
var cls=d.getObject(_2cc),_2ce=null;
if(!cls){
return null;
}
if(!_2cd){
_2ce=_2c9(cls.prototype,{});
}
c={cls:cls,params:_2ce};
}else{
if(!_2cd&&!c.params){
c.params=_2c9(c.cls.prototype,{});
}
}
return c;
};
this._functionFromScript=function(_2cf,_2d0){
var _2d1="";
var _2d2="";
var _2d3=(_2cf.getAttribute(_2d0+"args")||_2cf.getAttribute("args"));
if(_2d3){
d.forEach(_2d3.split(/\s*,\s*/),function(part,idx){
_2d1+="var "+part+" = arguments["+idx+"]; ";
});
}
var _2d4=_2cf.getAttribute("with");
if(_2d4&&_2d4.length){
d.forEach(_2d4.split(/\s*,\s*/),function(part){
_2d1+="with("+part+"){";
_2d2+="}";
});
}
return new Function(_2d1+_2cf.innerHTML+_2d2);
};
this.instantiate=function(_2d5,_2d6,args){
var _2d7=[],_2d6=_2d6||{};
args=args||{};
var _2d8=(args.scope||d._scopeName)+"Type",_2d9="data-"+(args.scope||d._scopeName)+"-";
d.forEach(_2d5,function(obj){
if(!obj){
return;
}
var node,type,_2da,_2db,_2dc,_2dd;
if(obj.node){
node=obj.node;
type=obj.type;
_2dd=obj.fastpath;
_2da=obj.clsInfo||(type&&_2cb(type,_2dd));
_2db=_2da&&_2da.cls;
_2dc=obj.scripts;
}else{
node=obj;
type=_2d8 in _2d6?_2d6[_2d8]:node.getAttribute(_2d8);
_2da=type&&_2cb(type);
_2db=_2da&&_2da.cls;
_2dc=(_2db&&(_2db._noScript||_2db.prototype._noScript)?[]:d.query("> script[type^='dojo/']",node));
}
if(!_2da){
throw new Error("Could not load class '"+type);
}
var _2de={};
if(args.defaults){
d._mixin(_2de,args.defaults);
}
if(obj.inherited){
d._mixin(_2de,obj.inherited);
}
if(_2dd){
var _2df=node.getAttribute(_2d9+"props");
if(_2df&&_2df.length){
try{
_2df=d.fromJson.call(args.propsThis,"{"+_2df+"}");
d._mixin(_2de,_2df);
}
catch(e){
throw new Error(e.toString()+" in data-dojo-props='"+_2df+"'");
}
}
var _2e0=node.getAttribute(_2d9+"attach-point");
if(_2e0){
_2de.dojoAttachPoint=_2e0;
}
var _2e1=node.getAttribute(_2d9+"attach-event");
if(_2e1){
_2de.dojoAttachEvent=_2e1;
}
dojo.mixin(_2de,_2d6);
}else{
var _2e2=node.attributes;
for(var name in _2da.params){
var item=name in _2d6?{value:_2d6[name],specified:true}:_2e2.getNamedItem(name);
if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){
continue;
}
var _2e3=item.value;
switch(name){
case "class":
_2e3="className" in _2d6?_2d6.className:node.className;
break;
case "style":
_2e3="style" in _2d6?_2d6.style:(node.style&&node.style.cssText);
}
var _2e4=_2da.params[name];
if(typeof _2e3=="string"){
_2de[name]=_2c5(_2e3,_2e4);
}else{
_2de[name]=_2e3;
}
}
}
var _2e5=[],_2e6=[];
d.forEach(_2dc,function(_2e7){
node.removeChild(_2e7);
var _2e8=(_2e7.getAttribute(_2d9+"event")||_2e7.getAttribute("event")),type=_2e7.getAttribute("type"),nf=d.parser._functionFromScript(_2e7,_2d9);
if(_2e8){
if(type=="dojo/connect"){
_2e5.push({event:_2e8,func:nf});
}else{
_2de[_2e8]=nf;
}
}else{
_2e6.push(nf);
}
});
var _2e9=_2db.markupFactory||_2db.prototype&&_2db.prototype.markupFactory;
var _2ea=_2e9?_2e9(_2de,node,_2db):new _2db(_2de,node);
_2d7.push(_2ea);
var _2eb=(node.getAttribute(_2d9+"id")||node.getAttribute("jsId"));
if(_2eb){
d.setObject(_2eb,_2ea);
}
d.forEach(_2e5,function(_2ec){
d.connect(_2ea,_2ec.event,null,_2ec.func);
});
d.forEach(_2e6,function(func){
func.call(_2ea);
});
});
if(!_2d6._started){
d.forEach(_2d7,function(_2ed){
if(!args.noStart&&_2ed&&dojo.isFunction(_2ed.startup)&&!_2ed._started&&(!_2ed.getParent||!_2ed.getParent())){
_2ed.startup();
}
});
}
return _2d7;
};
this.parse=function(_2ee,args){
var root;
if(!args&&_2ee&&_2ee.rootNode){
args=_2ee;
root=args.rootNode;
}else{
root=_2ee;
}
root=root?dojo.byId(root):dojo.body();
args=args||{};
var _2ef=(args.scope||d._scopeName)+"Type",_2f0="data-"+(args.scope||d._scopeName)+"-";
function scan(_2f1,list){
var _2f2=dojo.clone(_2f1.inherited);
dojo.forEach(["dir","lang"],function(name){
var val=_2f1.node.getAttribute(name);
if(val){
_2f2[name]=val;
}
});
var _2f3=_2f1.clsInfo&&!_2f1.clsInfo.cls.prototype._noScript?_2f1.scripts:null;
var _2f4=(!_2f1.clsInfo||!_2f1.clsInfo.cls.prototype.stopParser)||(args&&args.template);
for(var _2f5=_2f1.node.firstChild;_2f5;_2f5=_2f5.nextSibling){
if(_2f5.nodeType==1){
var type,_2f6=_2f4&&_2f5.getAttribute(_2f0+"type");
if(_2f6){
type=_2f6;
}else{
type=_2f4&&_2f5.getAttribute(_2ef);
}
var _2f7=_2f6==type;
if(type){
var _2f8={"type":type,fastpath:_2f7,clsInfo:_2cb(type,_2f7),node:_2f5,scripts:[],inherited:_2f2};
list.push(_2f8);
scan(_2f8,list);
}else{
if(_2f3&&_2f5.nodeName.toLowerCase()=="script"){
type=_2f5.getAttribute("type");
if(type&&/^dojo\/\w/i.test(type)){
_2f3.push(_2f5);
}
}else{
if(_2f4){
scan({node:_2f5,inherited:_2f2},list);
}
}
}
}
}
};
var _2f9={};
if(args&&args.inherited){
for(var key in args.inherited){
if(args.inherited[key]){
_2f9[key]=args.inherited[key];
}
}
}
var list=[];
scan({node:root,inherited:_2f9},list);
var _2fa=args&&args.template?{template:true}:null;
return this.instantiate(list,_2fa,args);
};
}();
(function(){
var _2fb=function(){
if(dojo.config.parseOnLoad){
dojo.parser.parse();
}
};
if(dojo.getObject("dijit.wai.onload")===dojo._loaders[0]){
dojo._loaders.splice(1,0,_2fb);
}else{
dojo._loaders.unshift(_2fb);
}
})();
}
if(!dojo._hasResource["dojo.window"]){
dojo._hasResource["dojo.window"]=true;
dojo.provide("dojo.window");
dojo.getObject("window",true,dojo);
dojo.window.getBox=function(){
var _2fc=(dojo.doc.compatMode=="BackCompat")?dojo.body():dojo.doc.documentElement;
var _2fd=dojo._docScroll();
return {w:_2fc.clientWidth,h:_2fc.clientHeight,l:_2fd.x,t:_2fd.y};
};
dojo.window.get=function(doc){
if(dojo.isIE&&window!==document.parentWindow){
doc.parentWindow.execScript("document._parentWindow = window;","Javascript");
var win=doc._parentWindow;
doc._parentWindow=null;
return win;
}
return doc.parentWindow||doc.defaultView;
};
dojo.window.scrollIntoView=function(node,pos){
try{
node=dojo.byId(node);
var doc=node.ownerDocument||dojo.doc,body=doc.body||dojo.body(),html=doc.documentElement||body.parentNode,isIE=dojo.isIE,isWK=dojo.isWebKit;
if((!(dojo.isMoz||isIE||isWK||dojo.isOpera)||node==body||node==html)&&(typeof node.scrollIntoView!="undefined")){
node.scrollIntoView(false);
return;
}
var _2fe=doc.compatMode=="BackCompat",_2ff=(isIE>=9&&node.ownerDocument.parentWindow.frameElement)?((html.clientHeight>0&&html.clientWidth>0&&(body.clientHeight==0||body.clientWidth==0||body.clientHeight>html.clientHeight||body.clientWidth>html.clientWidth))?html:body):(_2fe?body:html),_300=isWK?body:_2ff,_301=_2ff.clientWidth,_302=_2ff.clientHeight,rtl=!dojo._isBodyLtr(),_303=pos||dojo.position(node),el=node.parentNode,_304=function(el){
return ((isIE<=6||(isIE&&_2fe))?false:(dojo.style(el,"position").toLowerCase()=="fixed"));
};
if(_304(node)){
return;
}
while(el){
if(el==body){
el=_300;
}
var _305=dojo.position(el),_306=_304(el);
if(el==_300){
_305.w=_301;
_305.h=_302;
if(_300==html&&isIE&&rtl){
_305.x+=_300.offsetWidth-_305.w;
}
if(_305.x<0||!isIE){
_305.x=0;
}
if(_305.y<0||!isIE){
_305.y=0;
}
}else{
var pb=dojo._getPadBorderExtents(el);
_305.w-=pb.w;
_305.h-=pb.h;
_305.x+=pb.l;
_305.y+=pb.t;
var _307=el.clientWidth,_308=_305.w-_307;
if(_307>0&&_308>0){
_305.w=_307;
_305.x+=(rtl&&(isIE||el.clientLeft>pb.l))?_308:0;
}
_307=el.clientHeight;
_308=_305.h-_307;
if(_307>0&&_308>0){
_305.h=_307;
}
}
if(_306){
if(_305.y<0){
_305.h+=_305.y;
_305.y=0;
}
if(_305.x<0){
_305.w+=_305.x;
_305.x=0;
}
if(_305.y+_305.h>_302){
_305.h=_302-_305.y;
}
if(_305.x+_305.w>_301){
_305.w=_301-_305.x;
}
}
var l=_303.x-_305.x,t=_303.y-Math.max(_305.y,0),r=l+_303.w-_305.w,bot=t+_303.h-_305.h;
if(r*l>0){
var s=Math[l<0?"max":"min"](l,r);
if(rtl&&((isIE==8&&!_2fe)||isIE>=9)){
s=-s;
}
_303.x+=el.scrollLeft;
el.scrollLeft+=s;
_303.x-=el.scrollLeft;
}
if(bot*t>0){
_303.y+=el.scrollTop;
el.scrollTop+=Math[t<0?"max":"min"](t,bot);
_303.y-=el.scrollTop;
}
el=(el!=_300)&&!_306&&el.parentNode;
}
}
catch(error){
console.error("scrollIntoView: "+error);
node.scrollIntoView(false);
}
};
}
if(!dojo._hasResource["dojo.dnd.common"]){
dojo._hasResource["dojo.dnd.common"]=true;
dojo.provide("dojo.dnd.common");
dojo.getObject("dnd",true,dojo);
dojo.dnd.getCopyKeyState=dojo.isCopyKey;
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.getObject("dnd",true,dojo);
dojo.dnd.getViewport=dojo.window.getBox;
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.window.getBox(),dx=0,dy=0;
if(e.clientX<dojo.dnd.H_TRIGGER_AUTOSCROLL){
dx=-dojo.dnd.H_AUTOSCROLL_VALUE;
}else{
if(e.clientX>v.w-dojo.dnd.H_TRIGGER_AUTOSCROLL){
dx=dojo.dnd.H_AUTOSCROLL_VALUE;
}
}
if(e.clientY<dojo.dnd.V_TRIGGER_AUTOSCROLL){
dy=-dojo.dnd.V_AUTOSCROLL_VALUE;
}else{
if(e.clientY>v.h-dojo.dnd.V_TRIGGER_AUTOSCROLL){
dy=dojo.dnd.V_AUTOSCROLL_VALUE;
}
}
window.scrollBy(dx,dy);
};
dojo.dnd._validNodes={"div":1,"p":1,"td":1};
dojo.dnd._validOverflow={"auto":1,"scroll":1};
dojo.dnd.autoScrollNodes=function(e){
for(var n=e.target;n;){
if(n.nodeType==1&&(n.tagName.toLowerCase() in dojo.dnd._validNodes)){
var s=dojo.getComputedStyle(n);
if(s.overflow.toLowerCase() in dojo.dnd._validOverflow){
var b=dojo._getContentBox(n,s),t=dojo.position(n,true);
var w=Math.min(dojo.dnd.H_TRIGGER_AUTOSCROLL,b.w/2),h=Math.min(dojo.dnd.V_TRIGGER_AUTOSCROLL,b.h/2),rx=e.pageX-t.x,ry=e.pageY-t.y,dx=0,dy=0;
if(dojo.isWebKit||dojo.isOpera){
rx+=dojo.body().scrollLeft;
ry+=dojo.body().scrollTop;
}
if(rx>0&&rx<b.w){
if(rx<w){
dx=-w;
}else{
if(rx>b.w-w){
dx=w;
}
}
}
if(ry>0&&ry<b.h){
if(ry<h){
dy=-h;
}else{
if(ry>b.h-h){
dy=h;
}
}
}
var _309=n.scrollLeft,_30a=n.scrollTop;
n.scrollLeft=n.scrollLeft+dx;
n.scrollTop=n.scrollTop+dy;
if(_309!=n.scrollLeft||_30a!=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);
var pos=e.touches?e.touches[0]:e;
this.marginBox={l:pos.pageX,t:pos.pageY};
this.mouseButton=e.button;
var h=(this.host=host),d=node.ownerDocument;
this.events=[dojo.connect(d,"onmousemove",this,"onFirstMove"),dojo.connect(d,"ontouchmove",this,"onFirstMove"),dojo.connect(d,"onmousemove",this,"onMouseMove"),dojo.connect(d,"ontouchmove",this,"onMouseMove"),dojo.connect(d,"onmouseup",this,"onMouseUp"),dojo.connect(d,"ontouchend",this,"onMouseUp"),dojo.connect(d,"ondragstart",dojo.stopEvent),dojo.connect(d.body,"onselectstart",dojo.stopEvent)];
if(h&&h.onMoveStart){
h.onMoveStart(this);
}
},onMouseMove:function(e){
dojo.dnd.autoScroll(e);
var m=this.marginBox,pos=e.touches?e.touches[0]:e;
this.host.onMove(this,{l:m.l+pos.pageX,t:m.t+pos.pageY},e);
dojo.stopEvent(e);
},onMouseUp:function(e){
if(dojo.isWebKit&&dojo.isMac&&this.mouseButton==2?e.button==0:this.mouseButton==e.button){
this.destroy();
}
dojo.stopEvent(e);
},onFirstMove:function(e){
var s=this.node.style,l,t,h=this.host;
switch(s.position){
case "relative":
case "absolute":
l=Math.round(parseFloat(s.left))||0;
t=Math.round(parseFloat(s.top))||0;
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,e);
}
dojo.disconnect(this.events.shift());
dojo.disconnect(this.events.shift());
},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,_30b){
this.node=dojo.byId(node);
if(!_30b){
_30b={};
}
this.handle=_30b.handle?dojo.byId(_30b.handle):null;
if(!this.handle){
this.handle=this.node;
}
this.delay=_30b.delay>0?_30b.delay:0;
this.skip=_30b.skip;
this.mover=_30b.mover?_30b.mover:dojo.dnd.Mover;
this.events=[dojo.connect(this.handle,"onmousedown",this,"onMouseDown"),dojo.connect(this.handle,"ontouchstart",this,"onMouseDown"),dojo.connect(this.handle,"ondragstart",this,"onSelectStart"),dojo.connect(this.handle,"onselectstart",this,"onSelectStart")];
},markupFactory:function(_30c,node){
return new dojo.dnd.Moveable(node,_30c);
},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,"ontouchmove",this,"onMouseMove"),dojo.connect(this.handle,"onmouseup",this,"onMouseUp"),dojo.connect(this.handle,"ontouchend",this,"onMouseUp"));
var pos=e.touches?e.touches[0]:e;
this._lastX=pos.pageX;
this._lastY=pos.pageY;
}else{
this.onDragDetected(e);
}
dojo.stopEvent(e);
},onMouseMove:function(e){
var pos=e.touches?e.touches[0]:e;
if(Math.abs(pos.pageX-this._lastX)>this.delay||Math.abs(pos.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(_30d){
dojo.publish("/dnd/move/start",[_30d]);
dojo.addClass(dojo.body(),"dojoMove");
dojo.addClass(this.node,"dojoMoveItem");
},onMoveStop:function(_30e){
dojo.publish("/dnd/move/stop",[_30e]);
dojo.removeClass(dojo.body(),"dojoMove");
dojo.removeClass(this.node,"dojoMoveItem");
},onFirstMove:function(_30f,e){
},onMove:function(_310,_311,e){
this.onMoving(_310,_311);
var s=_310.node.style;
s.left=_311.l+"px";
s.top=_311.t+"px";
this.onMoved(_310,_311);
},onMoving:function(_312,_313){
},onMoved:function(_314,_315){
}});
}
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(_316,node){
return new dojo.dnd.move.constrainedMoveable(node,_316);
},constructor:function(node,_317){
if(!_317){
_317={};
}
this.constraints=_317.constraints;
this.within=_317.within;
},onFirstMove:function(_318){
var c=this.constraintBox=this.constraints.call(this,_318);
c.r=c.l+c.w;
c.b=c.t+c.h;
if(this.within){
var mb=dojo._getMarginSize(_318.node);
c.r-=mb.w;
c.b-=mb.h;
}
},onMove:function(_319,_31a){
var c=this.constraintBox,s=_319.node.style;
this.onMoving(_319,_31a);
_31a.l=_31a.l<c.l?c.l:c.r<_31a.l?c.r:_31a.l;
_31a.t=_31a.t<c.t?c.t:c.b<_31a.t?c.b:_31a.t;
s.left=_31a.l+"px";
s.top=_31a.t+"px";
this.onMoved(_319,_31a);
}});
dojo.declare("dojo.dnd.move.boxConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{box:{},markupFactory:function(_31b,node){
return new dojo.dnd.move.boxConstrainedMoveable(node,_31b);
},constructor:function(node,_31c){
var box=_31c&&_31c.box;
this.constraints=function(){
return box;
};
}});
dojo.declare("dojo.dnd.move.parentConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(_31d,node){
return new dojo.dnd.move.parentConstrainedMoveable(node,_31d);
},constructor:function(node,_31e){
var area=_31e&&_31e.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.constrainedMover=dojo.dnd.move.constrainedMover;
dojo.dnd.boxConstrainedMover=dojo.dnd.move.boxConstrainedMover;
dojo.dnd.parentConstrainedMover=dojo.dnd.move.parentConstrainedMover;
}
if(!dojo._hasResource["dojo.dnd.TimedMoveable"]){
dojo._hasResource["dojo.dnd.TimedMoveable"]=true;
dojo.provide("dojo.dnd.TimedMoveable");
(function(){
var _31f=dojo.dnd.Moveable.prototype.onMove;
dojo.declare("dojo.dnd.TimedMoveable",dojo.dnd.Moveable,{timeout:40,constructor:function(node,_320){
if(!_320){
_320={};
}
if(_320.timeout&&typeof _320.timeout=="number"&&_320.timeout>=0){
this.timeout=_320.timeout;
}
},markupFactory:function(_321,node){
return new dojo.dnd.TimedMoveable(node,_321);
},onMoveStop:function(_322){
if(_322._timer){
clearTimeout(_322._timer);
_31f.call(this,_322,_322._leftTop);
}
dojo.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);
},onMove:function(_323,_324){
_323._leftTop=_324;
if(!_323._timer){
var _325=this;
_323._timer=setTimeout(function(){
_323._timer=null;
_31f.call(_325,_323,_323._leftTop);
},this.timeout);
}
}});
})();
}
if(!dojo._hasResource["dojo.fx.Toggler"]){
dojo._hasResource["dojo.fx.Toggler"]=true;
dojo.provide("dojo.fx.Toggler");
dojo.declare("dojo.fx.Toggler",null,{node:null,showFunc:dojo.fadeIn,hideFunc:dojo.fadeOut,showDuration:200,hideDuration:200,constructor:function(args){
var _326=this;
dojo.mixin(_326,args);
_326.node=args.node;
_326._showArgs=dojo.mixin({},args);
_326._showArgs.node=_326.node;
_326._showArgs.duration=_326.showDuration;
_326.showAnim=_326.showFunc(_326._showArgs);
_326._hideArgs=dojo.mixin({},args);
_326._hideArgs.node=_326.node;
_326._hideArgs.duration=_326.hideDuration;
_326.hideAnim=_326.hideFunc(_326._hideArgs);
dojo.connect(_326.showAnim,"beforeBegin",dojo.hitch(_326.hideAnim,"stop",true));
dojo.connect(_326.hideAnim,"beforeBegin",dojo.hitch(_326.showAnim,"stop",true));
},show:function(_327){
return this.showAnim.play(_327||0);
},hide:function(_328){
return this.hideAnim.play(_328||0);
}});
}
if(!dojo._hasResource["dojo.fx"]){
dojo._hasResource["dojo.fx"]=true;
dojo.provide("dojo.fx");
(function(){
var d=dojo,_329={_fire:function(evt,args){
if(this[evt]){
this[evt].apply(this,args||[]);
}
return this;
}};
var _32a=function(_32b){
this._index=-1;
this._animations=_32b||[];
this._current=this._onAnimateCtx=this._onEndCtx=null;
this.duration=0;
d.forEach(this._animations,function(a){
this.duration+=a.duration;
if(a.delay){
this.duration+=a.delay;
}
},this);
};
d.extend(_32a,{_onAnimate:function(){
this._fire("onAnimate",arguments);
},_onEnd:function(){
d.disconnect(this._onAnimateCtx);
d.disconnect(this._onEndCtx);
this._onAnimateCtx=this._onEndCtx=null;
if(this._index+1==this._animations.length){
this._fire("onEnd");
}else{
this._current=this._animations[++this._index];
this._onAnimateCtx=d.connect(this._current,"onAnimate",this,"_onAnimate");
this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");
this._current.play(0,true);
}
},play:function(_32c,_32d){
if(!this._current){
this._current=this._animations[this._index=0];
}
if(!_32d&&this._current.status()=="playing"){
return this;
}
var _32e=d.connect(this._current,"beforeBegin",this,function(){
this._fire("beforeBegin");
}),_32f=d.connect(this._current,"onBegin",this,function(arg){
this._fire("onBegin",arguments);
}),_330=d.connect(this._current,"onPlay",this,function(arg){
this._fire("onPlay",arguments);
d.disconnect(_32e);
d.disconnect(_32f);
d.disconnect(_330);
});
if(this._onAnimateCtx){
d.disconnect(this._onAnimateCtx);
}
this._onAnimateCtx=d.connect(this._current,"onAnimate",this,"_onAnimate");
if(this._onEndCtx){
d.disconnect(this._onEndCtx);
}
this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");
this._current.play.apply(this._current,arguments);
return this;
},pause:function(){
if(this._current){
var e=d.connect(this._current,"onPause",this,function(arg){
this._fire("onPause",arguments);
d.disconnect(e);
});
this._current.pause();
}
return this;
},gotoPercent:function(_331,_332){
this.pause();
var _333=this.duration*_331;
this._current=null;
d.some(this._animations,function(a){
if(a.duration<=_333){
this._current=a;
return true;
}
_333-=a.duration;
return false;
});
if(this._current){
this._current.gotoPercent(_333/this._current.duration,_332);
}
return this;
},stop:function(_334){
if(this._current){
if(_334){
for(;this._index+1<this._animations.length;++this._index){
this._animations[this._index].stop(true);
}
this._current=this._animations[this._index];
}
var e=d.connect(this._current,"onStop",this,function(arg){
this._fire("onStop",arguments);
d.disconnect(e);
});
this._current.stop();
}
return this;
},status:function(){
return this._current?this._current.status():"stopped";
},destroy:function(){
if(this._onAnimateCtx){
d.disconnect(this._onAnimateCtx);
}
if(this._onEndCtx){
d.disconnect(this._onEndCtx);
}
}});
d.extend(_32a,_329);
dojo.fx.chain=function(_335){
return new _32a(_335);
};
var _336=function(_337){
this._animations=_337||[];
this._connects=[];
this._finished=0;
this.duration=0;
d.forEach(_337,function(a){
var _338=a.duration;
if(a.delay){
_338+=a.delay;
}
if(this.duration<_338){
this.duration=_338;
}
this._connects.push(d.connect(a,"onEnd",this,"_onEnd"));
},this);
this._pseudoAnimation=new d.Animation({curve:[0,1],duration:this.duration});
var self=this;
d.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop","onEnd"],function(evt){
self._connects.push(d.connect(self._pseudoAnimation,evt,function(){
self._fire(evt,arguments);
}));
});
};
d.extend(_336,{_doAction:function(_339,args){
d.forEach(this._animations,function(a){
a[_339].apply(a,args);
});
return this;
},_onEnd:function(){
if(++this._finished>this._animations.length){
this._fire("onEnd");
}
},_call:function(_33a,args){
var t=this._pseudoAnimation;
t[_33a].apply(t,args);
},play:function(_33b,_33c){
this._finished=0;
this._doAction("play",arguments);
this._call("play",arguments);
return this;
},pause:function(){
this._doAction("pause",arguments);
this._call("pause",arguments);
return this;
},gotoPercent:function(_33d,_33e){
var ms=this.duration*_33d;
d.forEach(this._animations,function(a){
a.gotoPercent(a.duration<ms?1:(ms/a.duration),_33e);
});
this._call("gotoPercent",arguments);
return this;
},stop:function(_33f){
this._doAction("stop",arguments);
this._call("stop",arguments);
return this;
},status:function(){
return this._pseudoAnimation.status();
},destroy:function(){
d.forEach(this._connects,dojo.disconnect);
}});
d.extend(_336,_329);
dojo.fx.combine=function(_340){
return new _336(_340);
};
dojo.fx.wipeIn=function(args){
var node=args.node=d.byId(args.node),s=node.style,o;
var anim=d.animateProperty(d.mixin({properties:{height:{start:function(){
o=s.overflow;
s.overflow="hidden";
if(s.visibility=="hidden"||s.display=="none"){
s.height="1px";
s.display="";
s.visibility="";
return 1;
}else{
var _341=d.style(node,"height");
return Math.max(_341,1);
}
},end:function(){
return node.scrollHeight;
}}}},args));
d.connect(anim,"onEnd",function(){
s.height="auto";
s.overflow=o;
});
return anim;
};
dojo.fx.wipeOut=function(args){
var node=args.node=d.byId(args.node),s=node.style,o;
var anim=d.animateProperty(d.mixin({properties:{height:{end:1}}},args));
d.connect(anim,"beforeBegin",function(){
o=s.overflow;
s.overflow="hidden";
s.display="";
});
d.connect(anim,"onEnd",function(){
s.overflow=o;
s.height="auto";
s.display="none";
});
return anim;
};
dojo.fx.slideTo=function(args){
var node=args.node=d.byId(args.node),top=null,left=null;
var init=(function(n){
return function(){
var cs=d.getComputedStyle(n);
var pos=cs.position;
top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);
left=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);
if(pos!="absolute"&&pos!="relative"){
var ret=d.position(n,true);
top=ret.y;
left=ret.x;
n.style.position="absolute";
n.style.top=top+"px";
n.style.left=left+"px";
}
};
})(node);
init();
var anim=d.animateProperty(d.mixin({properties:{top:args.top||0,left:args.left||0}},args));
d.connect(anim,"beforeBegin",anim,init);
return anim;
};
})();
}
if(!dojo._hasResource["dijit._base.manager"]){
dojo._hasResource["dijit._base.manager"]=true;
dojo.provide("dijit._base.manager");
dojo.declare("dijit.WidgetSet",null,{constructor:function(){
this._hash={};
this.length=0;
},add:function(_342){
if(this._hash[_342.id]){
throw new Error("Tried to register widget with id=="+_342.id+" but that id is already registered");
}
this._hash[_342.id]=_342;
this.length++;
},remove:function(id){
if(this._hash[id]){
delete this._hash[id];
this.length--;
}
},forEach:function(func,_343){
_343=_343||dojo.global;
var i=0,id;
for(id in this._hash){
func.call(_343,this._hash[id],i++,this._hash);
}
return this;
},filter:function(_344,_345){
_345=_345||dojo.global;
var res=new dijit.WidgetSet(),i=0,id;
for(id in this._hash){
var w=this._hash[id];
if(_344.call(_345,w,i++,this._hash)){
res.add(w);
}
}
return res;
},byId:function(id){
return this._hash[id];
},byClass:function(cls){
var res=new dijit.WidgetSet(),id,_346;
for(id in this._hash){
_346=this._hash[id];
if(_346.declaredClass==cls){
res.add(_346);
}
}
return res;
},toArray:function(){
var ar=[];
for(var id in this._hash){
ar.push(this._hash[id]);
}
return ar;
},map:function(func,_347){
return dojo.map(this.toArray(),func,_347);
},every:function(func,_348){
_348=_348||dojo.global;
var x=0,i;
for(i in this._hash){
if(!func.call(_348,this._hash[i],x++,this._hash)){
return false;
}
}
return true;
},some:function(func,_349){
_349=_349||dojo.global;
var x=0,i;
for(i in this._hash){
if(func.call(_349,this._hash[i],x++,this._hash)){
return true;
}
}
return false;
}});
(function(){
dijit.registry=new dijit.WidgetSet();
var hash=dijit.registry._hash,attr=dojo.attr,_34a=dojo.hasAttr,_34b=dojo.style;
dijit.byId=function(id){
return typeof id=="string"?hash[id]:id;
};
var _34c={};
dijit.getUniqueId=function(_34d){
var id;
do{
id=_34d+"_"+(_34d in _34c?++_34c[_34d]:_34c[_34d]=0);
}while(hash[id]);
return dijit._scopeName=="dijit"?id:dijit._scopeName+"_"+id;
};
dijit.findWidgets=function(root){
var _34e=[];
function _34f(root){
for(var node=root.firstChild;node;node=node.nextSibling){
if(node.nodeType==1){
var _350=node.getAttribute("widgetId");
if(_350){
var _351=hash[_350];
if(_351){
_34e.push(_351);
}
}else{
_34f(node);
}
}
}
};
_34f(root);
return _34e;
};
dijit._destroyAll=function(){
dijit._curFocus=null;
dijit._prevFocus=null;
dijit._activeStack=[];
dojo.forEach(dijit.findWidgets(dojo.body()),function(_352){
if(!_352._destroyed){
if(_352.destroyRecursive){
_352.destroyRecursive();
}else{
if(_352.destroy){
_352.destroy();
}
}
}
});
};
if(dojo.isIE){
dojo.addOnWindowUnload(function(){
dijit._destroyAll();
});
}
dijit.byNode=function(node){
return hash[node.getAttribute("widgetId")];
};
dijit.getEnclosingWidget=function(node){
while(node){
var id=node.getAttribute&&node.getAttribute("widgetId");
if(id){
return hash[id];
}
node=node.parentNode;
}
return null;
};
var _353=(dijit._isElementShown=function(elem){
var s=_34b(elem);
return (s.visibility!="hidden")&&(s.visibility!="collapsed")&&(s.display!="none")&&(attr(elem,"type")!="hidden");
});
dijit.hasDefaultTabStop=function(elem){
switch(elem.nodeName.toLowerCase()){
case "a":
return _34a(elem,"href");
case "area":
case "button":
case "input":
case "object":
case "select":
case "textarea":
return true;
case "iframe":
var body;
try{
var _354=elem.contentDocument;
if("designMode" in _354&&_354.designMode=="on"){
return true;
}
body=_354.body;
}
catch(e1){
try{
body=elem.contentWindow.document.body;
}
catch(e2){
return false;
}
}
return body.contentEditable=="true"||(body.firstChild&&body.firstChild.contentEditable=="true");
default:
return elem.contentEditable=="true";
}
};
var _355=(dijit.isTabNavigable=function(elem){
if(attr(elem,"disabled")){
return false;
}else{
if(_34a(elem,"tabIndex")){
return attr(elem,"tabIndex")>=0;
}else{
return dijit.hasDefaultTabStop(elem);
}
}
});
dijit._getTabNavigable=function(root){
var _356,last,_357,_358,_359,_35a,_35b={};
function _35c(node){
return node&&node.tagName.toLowerCase()=="input"&&node.type&&node.type.toLowerCase()=="radio"&&node.name&&node.name.toLowerCase();
};
var _35d=function(_35e){
dojo.query("> *",_35e).forEach(function(_35f){
if((dojo.isIE&&_35f.scopeName!=="HTML")||!_353(_35f)){
return;
}
if(_355(_35f)){
var _360=attr(_35f,"tabIndex");
if(!_34a(_35f,"tabIndex")||_360==0){
if(!_356){
_356=_35f;
}
last=_35f;
}else{
if(_360>0){
if(!_357||_360<_358){
_358=_360;
_357=_35f;
}
if(!_359||_360>=_35a){
_35a=_360;
_359=_35f;
}
}
}
var rn=_35c(_35f);
if(dojo.attr(_35f,"checked")&&rn){
_35b[rn]=_35f;
}
}
if(_35f.nodeName.toUpperCase()!="SELECT"){
_35d(_35f);
}
});
};
if(_353(root)){
_35d(root);
}
function rs(node){
return _35b[_35c(node)]||node;
};
return {first:rs(_356),last:rs(last),lowest:rs(_357),highest:rs(_359)};
};
dijit.getFirstInTabbingOrder=function(root){
var _361=dijit._getTabNavigable(dojo.byId(root));
return _361.lowest?_361.lowest:_361.first;
};
dijit.getLastInTabbingOrder=function(root){
var _362=dijit._getTabNavigable(dojo.byId(root));
return _362.last?_362.last:_362.highest;
};
dijit.defaultDuration=dojo.config["defaultDuration"]||200;
})();
}
if(!dojo._hasResource["dojo.Stateful"]){
dojo._hasResource["dojo.Stateful"]=true;
dojo.provide("dojo.Stateful");
dojo.declare("dojo.Stateful",null,{postscript:function(_363){
if(_363){
dojo.mixin(this,_363);
}
},get:function(name){
return this[name];
},set:function(name,_364){
if(typeof name==="object"){
for(var x in name){
this.set(x,name[x]);
}
return this;
}
var _365=this[name];
this[name]=_364;
if(this._watchCallbacks){
this._watchCallbacks(name,_365,_364);
}
return this;
},watch:function(name,_366){
var _367=this._watchCallbacks;
if(!_367){
var self=this;
_367=this._watchCallbacks=function(name,_368,_369,_36a){
var _36b=function(_36c){
if(_36c){
_36c=_36c.slice();
for(var i=0,l=_36c.length;i<l;i++){
try{
_36c[i].call(self,name,_368,_369);
}
catch(e){
console.error(e);
}
}
}
};
_36b(_367["_"+name]);
if(!_36a){
_36b(_367["*"]);
}
};
}
if(!_366&&typeof name==="function"){
_366=name;
name="*";
}else{
name="_"+name;
}
var _36d=_367[name];
if(typeof _36d!=="object"){
_36d=_367[name]=[];
}
_36d.push(_366);
return {unwatch:function(){
_36d.splice(dojo.indexOf(_36d,_366),1);
}};
}});
}
if(!dojo._hasResource["dijit._WidgetBase"]){
dojo._hasResource["dijit._WidgetBase"]=true;
dojo.provide("dijit._WidgetBase");
(function(){
dojo.declare("dijit._WidgetBase",dojo.Stateful,{id:"",lang:"",dir:"","class":"",style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},_blankGif:(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif")).toString(),postscript:function(_36e,_36f){
this.create(_36e,_36f);
},create:function(_370,_371){
this.srcNodeRef=dojo.byId(_371);
this._connects=[];
this._subscribes=[];
if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){
this.id=this.srcNodeRef.id;
}
if(_370){
this.params=_370;
dojo._mixin(this,_370);
}
this.postMixInProperties();
if(!this.id){
this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"));
}
dijit.registry.add(this);
this.buildRendering();
if(this.domNode){
this._applyAttributes();
var _372=this.srcNodeRef;
if(_372&&_372.parentNode&&this.domNode!==_372){
_372.parentNode.replaceChild(this.domNode,_372);
}
}
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 _373=function(attr,_374){
if((_374.params&&attr in _374.params)||_374[attr]){
_374.set(attr,_374[attr]);
}
};
for(var attr in this.attributeMap){
_373(attr,this);
}
dojo.forEach(this._getSetterAttributes(),function(a){
if(!(a in this.attributeMap)){
_373(a,this);
}
},this);
},_getSetterAttributes:function(){
var ctor=this.constructor;
if(!ctor._setterAttrs){
var r=(ctor._setterAttrs=[]),_375,_376=ctor.prototype;
for(var _377 in _376){
if(dojo.isFunction(_376[_377])&&(_375=_377.match(/^_set([a-zA-Z]*)Attr$/))&&_375[1]){
r.push(_375[1].charAt(0).toLowerCase()+_375[1].substr(1));
}
}
}
return ctor._setterAttrs;
},postMixInProperties:function(){
},buildRendering:function(){
if(!this.domNode){
this.domNode=this.srcNodeRef||dojo.create("div");
}
if(this.baseClass){
var _378=this.baseClass.split(" ");
if(!this.isLeftToRight()){
_378=_378.concat(dojo.map(_378,function(name){
return name+"Rtl";
}));
}
dojo.addClass(this.domNode,_378);
}
},postCreate:function(){
},startup:function(){
this._started=true;
},destroyRecursive:function(_379){
this._beingDestroyed=true;
this.destroyDescendants(_379);
this.destroy(_379);
},destroy:function(_37a){
this._beingDestroyed=true;
this.uninitialize();
var d=dojo,dfe=d.forEach,dun=d.unsubscribe;
dfe(this._connects,function(_37b){
dfe(_37b,d.disconnect);
});
dfe(this._subscribes,function(_37c){
dun(_37c);
});
dfe(this._supportingWidgets||[],function(w){
if(w.destroyRecursive){
w.destroyRecursive();
}else{
if(w.destroy){
w.destroy();
}
}
});
this.destroyRendering(_37a);
dijit.registry.remove(this.id);
this._destroyed=true;
},destroyRendering:function(_37d){
if(this.bgIframe){
this.bgIframe.destroy(_37d);
delete this.bgIframe;
}
if(this.domNode){
if(_37d){
dojo.removeAttr(this.domNode,"widgetId");
}else{
dojo.destroy(this.domNode);
}
delete this.domNode;
}
if(this.srcNodeRef){
if(!_37d){
dojo.destroy(this.srcNodeRef);
}
delete this.srcNodeRef;
}
},destroyDescendants:function(_37e){
dojo.forEach(this.getChildren(),function(_37f){
if(_37f.destroyRecursive){
_37f.destroyRecursive(_37e);
}
});
},uninitialize:function(){
return false;
},_setClassAttr:function(_380){
var _381=this[this.attributeMap["class"]||"domNode"];
dojo.replaceClass(_381,_380,this["class"]);
this._set("class",_380);
},_setStyleAttr:function(_382){
var _383=this[this.attributeMap.style||"domNode"];
if(dojo.isObject(_382)){
dojo.style(_383,_382);
}else{
if(_383.style.cssText){
_383.style.cssText+="; "+_382;
}else{
_383.style.cssText=_382;
}
}
this._set("style",_382);
},_attrToDom:function(attr,_384){
var _385=this.attributeMap[attr];
dojo.forEach(dojo.isArray(_385)?_385:[_385],function(_386){
var _387=this[_386.node||_386||"domNode"];
var type=_386.type||"attribute";
switch(type){
case "attribute":
if(dojo.isFunction(_384)){
_384=dojo.hitch(this,_384);
}
var _388=_386.attribute?_386.attribute:(/^on[A-Z][a-zA-Z]*$/.test(attr)?attr.toLowerCase():attr);
dojo.attr(_387,_388,_384);
break;
case "innerText":
_387.innerHTML="";
_387.appendChild(dojo.doc.createTextNode(_384));
break;
case "innerHTML":
_387.innerHTML=_384;
break;
case "class":
dojo.replaceClass(_387,_384,this[attr]);
break;
}
},this);
},get:function(name){
var _389=this._getAttrNames(name);
return this[_389.g]?this[_389.g]():this[name];
},set:function(name,_38a){
if(typeof name==="object"){
for(var x in name){
this.set(x,name[x]);
}
return this;
}
var _38b=this._getAttrNames(name);
if(this[_38b.s]){
var _38c=this[_38b.s].apply(this,Array.prototype.slice.call(arguments,1));
}else{
if(name in this.attributeMap){
this._attrToDom(name,_38a);
}
this._set(name,_38a);
}
return _38c||this;
},_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"});
},_set:function(name,_38d){
var _38e=this[name];
this[name]=_38d;
if(this._watchCallbacks&&this._created&&_38d!==_38e){
this._watchCallbacks(name,_38e,_38d);
}
},toString:function(){
return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";
},getDescendants:function(){
return this.containerNode?dojo.query("[widgetId]",this.containerNode).map(dijit.byNode):[];
},getChildren:function(){
return this.containerNode?dijit.findWidgets(this.containerNode):[];
},connect:function(obj,_38f,_390){
var _391=[dojo._connect(obj,_38f,this,_390)];
this._connects.push(_391);
return _391;
},disconnect:function(_392){
for(var i=0;i<this._connects.length;i++){
if(this._connects[i]==_392){
dojo.forEach(_392,dojo.disconnect);
this._connects.splice(i,1);
return;
}
}
},subscribe:function(_393,_394){
var _395=dojo.subscribe(_393,this,_394);
this._subscribes.push(_395);
return _395;
},unsubscribe:function(_396){
for(var i=0;i<this._subscribes.length;i++){
if(this._subscribes[i]==_396){
dojo.unsubscribe(_396);
this._subscribes.splice(i,1);
return;
}
}
},isLeftToRight:function(){
return this.dir?(this.dir=="ltr"):dojo._isBodyLtr();
},placeAt:function(_397,_398){
if(_397.declaredClass&&_397.addChild){
_397.addChild(this,_398);
}else{
dojo.place(this.domNode,_397,_398);
}
return this;
}});
})();
}
if(!dojo._hasResource["dijit._base.focus"]){
dojo._hasResource["dijit._base.focus"]=true;
dojo.provide("dijit._base.focus");
dojo.mixin(dijit,{_curFocus:null,_prevFocus:null,isCollapsed:function(){
return dijit.getBookmark().isCollapsed;
},getBookmark:function(){
var bm,rg,tg,sel=dojo.doc.selection,cf=dijit._curFocus;
if(dojo.global.getSelection){
sel=dojo.global.getSelection();
if(sel){
if(sel.isCollapsed){
tg=cf?cf.tagName:"";
if(tg){
tg=tg.toLowerCase();
if(tg=="textarea"||(tg=="input"&&(!cf.type||cf.type.toLowerCase()=="text"))){
sel={start:cf.selectionStart,end:cf.selectionEnd,node:cf,pRange:true};
return {isCollapsed:(sel.end<=sel.start),mark:sel};
}
}
bm={isCollapsed:true};
if(sel.rangeCount){
bm.mark=sel.getRangeAt(0).cloneRange();
}
}else{
rg=sel.getRangeAt(0);
bm={isCollapsed:false,mark:rg.cloneRange()};
}
}
}else{
if(sel){
tg=cf?cf.tagName:"";
tg=tg.toLowerCase();
if(cf&&tg&&(tg=="button"||tg=="textarea"||tg=="input")){
if(sel.type&&sel.type.toLowerCase()=="none"){
return {isCollapsed:true,mark:null};
}else{
rg=sel.createRange();
return {isCollapsed:rg.text&&rg.text.length?false:true,mark:{range:rg,pRange:true}};
}
}
bm={};
try{
rg=sel.createRange();
bm.isCollapsed=!(sel.type=="Text"?rg.htmlText.length:rg.length);
}
catch(e){
bm.isCollapsed=true;
return bm;
}
if(sel.type.toUpperCase()=="CONTROL"){
if(rg.length){
bm.mark=[];
var i=0,len=rg.length;
while(i<len){
bm.mark.push(rg.item(i++));
}
}else{
bm.isCollapsed=true;
bm.mark=null;
}
}else{
bm.mark=rg.getBookmark();
}
}else{
console.warn("No idea how to store the current selection for this browser!");
}
}
return bm;
},moveToBookmark:function(_399){
var _39a=dojo.doc,mark=_399.mark;
if(mark){
if(dojo.global.getSelection){
var sel=dojo.global.getSelection();
if(sel&&sel.removeAllRanges){
if(mark.pRange){
var r=mark;
var n=r.node;
n.selectionStart=r.start;
n.selectionEnd=r.end;
}else{
sel.removeAllRanges();
sel.addRange(mark);
}
}else{
console.warn("No idea how to restore selection for this browser!");
}
}else{
if(_39a.selection&&mark){
var rg;
if(mark.pRange){
rg=mark.range;
}else{
if(dojo.isArray(mark)){
rg=_39a.body.createControlRange();
dojo.forEach(mark,function(n){
rg.addElement(n);
});
}else{
rg=_39a.body.createTextRange();
rg.moveToBookmark(mark);
}
}
rg.select();
}
}
}
},getFocus:function(menu,_39b){
var node=!dijit._curFocus||(menu&&dojo.isDescendant(dijit._curFocus,menu.domNode))?dijit._prevFocus:dijit._curFocus;
return {node:node,bookmark:(node==dijit._curFocus)&&dojo.withGlobal(_39b||dojo.global,dijit.getBookmark),openedForWindow:_39b};
},focus:function(_39c){
if(!_39c){
return;
}
var node="node" in _39c?_39c.node:_39c,_39d=_39c.bookmark,_39e=_39c.openedForWindow,_39f=_39d?_39d.isCollapsed:false;
if(node){
var _3a0=(node.tagName.toLowerCase()=="iframe")?node.contentWindow:node;
if(_3a0&&_3a0.focus){
try{
_3a0.focus();
}
catch(e){
}
}
dijit._onFocusNode(node);
}
if(_39d&&dojo.withGlobal(_39e||dojo.global,dijit.isCollapsed)&&!_39f){
if(_39e){
_39e.focus();
}
try{
dojo.withGlobal(_39e||dojo.global,dijit.moveToBookmark,null,[_39d]);
}
catch(e2){
}
}
},_activeStack:[],registerIframe:function(_3a1){
return dijit.registerWin(_3a1.contentWindow,_3a1);
},unregisterIframe:function(_3a2){
dijit.unregisterWin(_3a2);
},registerWin:function(_3a3,_3a4){
var _3a5=function(evt){
dijit._justMouseDowned=true;
setTimeout(function(){
dijit._justMouseDowned=false;
},0);
if(dojo.isIE&&evt&&evt.srcElement&&evt.srcElement.parentNode==null){
return;
}
dijit._onTouchNode(_3a4||evt.target||evt.srcElement,"mouse");
};
var doc=dojo.isIE?_3a3.document.documentElement:_3a3.document;
if(doc){
if(dojo.isIE){
_3a3.document.body.attachEvent("onmousedown",_3a5);
var _3a6=function(evt){
if(evt.srcElement.tagName.toLowerCase()!="#document"&&dijit.isTabNavigable(evt.srcElement)){
dijit._onFocusNode(_3a4||evt.srcElement);
}else{
dijit._onTouchNode(_3a4||evt.srcElement);
}
};
doc.attachEvent("onactivate",_3a6);
var _3a7=function(evt){
dijit._onBlurNode(_3a4||evt.srcElement);
};
doc.attachEvent("ondeactivate",_3a7);
return function(){
_3a3.document.detachEvent("onmousedown",_3a5);
doc.detachEvent("onactivate",_3a6);
doc.detachEvent("ondeactivate",_3a7);
doc=null;
};
}else{
doc.body.addEventListener("mousedown",_3a5,true);
var _3a8=function(evt){
dijit._onFocusNode(_3a4||evt.target);
};
doc.addEventListener("focus",_3a8,true);
var _3a9=function(evt){
dijit._onBlurNode(_3a4||evt.target);
};
doc.addEventListener("blur",_3a9,true);
return function(){
doc.body.removeEventListener("mousedown",_3a5,true);
doc.removeEventListener("focus",_3a8,true);
doc.removeEventListener("blur",_3a9,true);
doc=null;
};
}
}
},unregisterWin:function(_3aa){
_3aa&&_3aa();
},_onBlurNode:function(node){
dijit._prevFocus=dijit._curFocus;
dijit._curFocus=null;
if(dijit._justMouseDowned){
return;
}
if(dijit._clearActiveWidgetsTimer){
clearTimeout(dijit._clearActiveWidgetsTimer);
}
dijit._clearActiveWidgetsTimer=setTimeout(function(){
delete dijit._clearActiveWidgetsTimer;
dijit._setStack([]);
dijit._prevFocus=null;
},100);
},_onTouchNode:function(node,by){
if(dijit._clearActiveWidgetsTimer){
clearTimeout(dijit._clearActiveWidgetsTimer);
delete dijit._clearActiveWidgetsTimer;
}
var _3ab=[];
try{
while(node){
var _3ac=dojo.attr(node,"dijitPopupParent");
if(_3ac){
node=dijit.byId(_3ac).domNode;
}else{
if(node.tagName&&node.tagName.toLowerCase()=="body"){
if(node===dojo.body()){
break;
}
node=dojo.window.get(node.ownerDocument).frameElement;
}else{
var id=node.getAttribute&&node.getAttribute("widgetId"),_3ad=id&&dijit.byId(id);
if(_3ad&&!(by=="mouse"&&_3ad.get("disabled"))){
_3ab.unshift(id);
}
node=node.parentNode;
}
}
}
}
catch(e){
}
dijit._setStack(_3ab,by);
},_onFocusNode:function(node){
if(!node){
return;
}
if(node.nodeType==9){
return;
}
dijit._onTouchNode(node);
if(node==dijit._curFocus){
return;
}
if(dijit._curFocus){
dijit._prevFocus=dijit._curFocus;
}
dijit._curFocus=node;
dojo.publish("focusNode",[node]);
},_setStack:function(_3ae,by){
var _3af=dijit._activeStack;
dijit._activeStack=_3ae;
for(var _3b0=0;_3b0<Math.min(_3af.length,_3ae.length);_3b0++){
if(_3af[_3b0]!=_3ae[_3b0]){
break;
}
}
var _3b1;
for(var i=_3af.length-1;i>=_3b0;i--){
_3b1=dijit.byId(_3af[i]);
if(_3b1){
_3b1._focused=false;
_3b1.set("focused",false);
_3b1._hasBeenBlurred=true;
if(_3b1._onBlur){
_3b1._onBlur(by);
}
dojo.publish("widgetBlur",[_3b1,by]);
}
}
for(i=_3b0;i<_3ae.length;i++){
_3b1=dijit.byId(_3ae[i]);
if(_3b1){
_3b1._focused=true;
_3b1.set("focused",true);
if(_3b1._onFocus){
_3b1._onFocus(by);
}
dojo.publish("widgetFocus",[_3b1,by]);
}
}
}});
dojo.addOnLoad(function(){
var _3b2=dijit.registerWin(window);
if(dojo.isIE){
dojo.addOnWindowUnload(function(){
dijit.unregisterWin(_3b2);
_3b2=null;
});
}
});
}
if(!dojo._hasResource["dojo.AdapterRegistry"]){
dojo._hasResource["dojo.AdapterRegistry"]=true;
dojo.provide("dojo.AdapterRegistry");
dojo.AdapterRegistry=function(_3b3){
this.pairs=[];
this.returnWrappers=_3b3||false;
};
dojo.extend(dojo.AdapterRegistry,{register:function(name,_3b4,wrap,_3b5,_3b6){
this.pairs[((_3b6)?"unshift":"push")]([name,_3b4,wrap,_3b5]);
},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(){
return dojo.window.getBox();
};
dijit.placeOnScreen=function(node,pos,_3b7,_3b8){
var _3b9=dojo.map(_3b7,function(_3ba){
var c={corner:_3ba,pos:{x:pos.x,y:pos.y}};
if(_3b8){
c.pos.x+=_3ba.charAt(1)=="L"?_3b8.x:-_3b8.x;
c.pos.y+=_3ba.charAt(0)=="T"?_3b8.y:-_3b8.y;
}
return c;
});
return dijit._place(node,_3b9);
};
dijit._place=function(node,_3bb,_3bc,_3bd){
var view=dojo.window.getBox();
if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){
dojo.body().appendChild(node);
}
var best=null;
dojo.some(_3bb,function(_3be){
var _3bf=_3be.corner;
var pos=_3be.pos;
var _3c0=0;
var _3c1={w:_3bf.charAt(1)=="L"?(view.l+view.w)-pos.x:pos.x-view.l,h:_3bf.charAt(1)=="T"?(view.t+view.h)-pos.y:pos.y-view.t};
if(_3bc){
var res=_3bc(node,_3be.aroundCorner,_3bf,_3c1,_3bd);
_3c0=typeof res=="undefined"?0:res;
}
var _3c2=node.style;
var _3c3=_3c2.display;
var _3c4=_3c2.visibility;
_3c2.visibility="hidden";
_3c2.display="";
var mb=dojo.marginBox(node);
_3c2.display=_3c3;
_3c2.visibility=_3c4;
var _3c5=Math.max(view.l,_3bf.charAt(1)=="L"?pos.x:(pos.x-mb.w)),_3c6=Math.max(view.t,_3bf.charAt(0)=="T"?pos.y:(pos.y-mb.h)),endX=Math.min(view.l+view.w,_3bf.charAt(1)=="L"?(_3c5+mb.w):pos.x),endY=Math.min(view.t+view.h,_3bf.charAt(0)=="T"?(_3c6+mb.h):pos.y),_3c7=endX-_3c5,_3c8=endY-_3c6;
_3c0+=(mb.w-_3c7)+(mb.h-_3c8);
if(best==null||_3c0<best.overflow){
best={corner:_3bf,aroundCorner:_3be.aroundCorner,x:_3c5,y:_3c6,w:_3c7,h:_3c8,overflow:_3c0,spaceAvailable:_3c1};
}
return !_3c0;
});
if(best.overflow&&_3bc){
_3bc(node,best.aroundCorner,best.corner,best.spaceAvailable,_3bd);
}
var l=dojo._isBodyLtr(),s=node.style;
s.top=best.y+"px";
s[l?"left":"right"]=(l?best.x:view.w-best.x-best.w)+"px";
return best;
};
dijit.placeOnScreenAroundNode=function(node,_3c9,_3ca,_3cb){
_3c9=dojo.byId(_3c9);
var _3cc=dojo.position(_3c9,true);
return dijit._placeOnScreenAroundRect(node,_3cc.x,_3cc.y,_3cc.w,_3cc.h,_3ca,_3cb);
};
dijit.placeOnScreenAroundRectangle=function(node,_3cd,_3ce,_3cf){
return dijit._placeOnScreenAroundRect(node,_3cd.x,_3cd.y,_3cd.width,_3cd.height,_3ce,_3cf);
};
dijit._placeOnScreenAroundRect=function(node,x,y,_3d0,_3d1,_3d2,_3d3){
var _3d4=[];
for(var _3d5 in _3d2){
_3d4.push({aroundCorner:_3d5,corner:_3d2[_3d5],pos:{x:x+(_3d5.charAt(1)=="L"?0:_3d0),y:y+(_3d5.charAt(0)=="T"?0:_3d1)}});
}
return dijit._place(node,_3d4,_3d3,{w:_3d0,h:_3d1});
};
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,_3d6,_3d7,_3d8){
return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);
};
dijit.getPopupAroundAlignment=function(_3d9,_3da){
var _3db={};
dojo.forEach(_3d9,function(pos){
switch(pos){
case "after":
_3db[_3da?"BR":"BL"]=_3da?"BL":"BR";
break;
case "before":
_3db[_3da?"BL":"BR"]=_3da?"BR":"BL";
break;
case "below-alt":
_3da=!_3da;
case "below":
_3db[_3da?"BL":"BR"]=_3da?"TL":"TR";
_3db[_3da?"BR":"BL"]=_3da?"TR":"TL";
break;
case "above-alt":
_3da=!_3da;
case "above":
default:
_3db[_3da?"TL":"TR"]=_3da?"BL":"BR";
_3db[_3da?"TR":"TL"]=_3da?"BR":"BL";
break;
}
});
return _3db;
};
}
if(!dojo._hasResource["dijit._base.window"]){
dojo._hasResource["dijit._base.window"]=true;
dojo.provide("dijit._base.window");
dijit.getDocumentWindow=function(doc){
return dojo.window.get(doc);
};
}
if(!dojo._hasResource["dijit._base.popup"]){
dojo._hasResource["dijit._base.popup"]=true;
dojo.provide("dijit._base.popup");
dijit.popup={_stack:[],_beginZIndex:1000,_idGen:1,_createWrapper:function(_3dc){
var _3dd=_3dc.declaredClass?_3dc._popupWrapper:(_3dc.parentNode&&dojo.hasClass(_3dc.parentNode,"dijitPopup")),node=_3dc.domNode||_3dc;
if(!_3dd){
_3dd=dojo.create("div",{"class":"dijitPopup",style:{display:"none"},role:"presentation"},dojo.body());
_3dd.appendChild(node);
var s=node.style;
s.display="";
s.visibility="";
s.position="";
s.top="0px";
if(_3dc.declaredClass){
_3dc._popupWrapper=_3dd;
dojo.connect(_3dc,"destroy",function(){
dojo.destroy(_3dd);
delete _3dc._popupWrapper;
});
}
}
return _3dd;
},moveOffScreen:function(_3de){
var _3df=this._createWrapper(_3de);
dojo.style(_3df,{visibility:"hidden",top:"-9999px",display:""});
},hide:function(_3e0){
var _3e1=this._createWrapper(_3e0);
dojo.style(_3e1,"display","none");
},getTopPopup:function(){
var _3e2=this._stack;
for(var pi=_3e2.length-1;pi>0&&_3e2[pi].parent===_3e2[pi-1].widget;pi--){
}
return _3e2[pi];
},open:function(args){
var _3e3=this._stack,_3e4=args.popup,_3e5=args.orient||((args.parent?args.parent.isLeftToRight():dojo._isBodyLtr())?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"}),_3e6=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+this._idGen++);
while(_3e3.length&&(!args.parent||!dojo.isDescendant(args.parent.domNode,_3e3[_3e3.length-1].widget.domNode))){
dijit.popup.close(_3e3[_3e3.length-1].widget);
}
var _3e7=this._createWrapper(_3e4);
dojo.attr(_3e7,{id:id,style:{zIndex:this._beginZIndex+_3e3.length},"class":"dijitPopup "+(_3e4.baseClass||_3e4["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:args.parent?args.parent.id:""});
if(dojo.isIE||dojo.isMoz){
if(!_3e4.bgIframe){
_3e4.bgIframe=new dijit.BackgroundIframe(_3e7);
}
}
var best=_3e6?dijit.placeOnScreenAroundElement(_3e7,_3e6,_3e5,_3e4.orient?dojo.hitch(_3e4,"orient"):null):dijit.placeOnScreen(_3e7,args,_3e5=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],args.padding);
_3e7.style.display="";
_3e7.style.visibility="visible";
_3e4.domNode.style.visibility="visible";
var _3e8=[];
_3e8.push(dojo.connect(_3e7,"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 _3e9=this.getTopPopup();
if(_3e9&&_3e9.onCancel){
_3e9.onCancel();
}
}
}
}));
if(_3e4.onCancel){
_3e8.push(dojo.connect(_3e4,"onCancel",args.onCancel));
}
_3e8.push(dojo.connect(_3e4,_3e4.onExecute?"onExecute":"onChange",this,function(){
var _3ea=this.getTopPopup();
if(_3ea&&_3ea.onExecute){
_3ea.onExecute();
}
}));
_3e3.push({widget:_3e4,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_3e8});
if(_3e4.onOpen){
_3e4.onOpen(best);
}
return best;
},close:function(_3eb){
var _3ec=this._stack;
while((_3eb&&dojo.some(_3ec,function(elem){
return elem.widget==_3eb;
}))||(!_3eb&&_3ec.length)){
var top=_3ec.pop(),_3ed=top.widget,_3ee=top.onClose;
if(_3ed.onClose){
_3ed.onClose();
}
dojo.forEach(top.handlers,dojo.disconnect);
if(_3ed&&_3ed.domNode){
this.hide(_3ed);
}
if(_3ee){
_3ee();
}
}
}};
dijit._frames=new function(){
var _3ef=[];
this.pop=function(){
var _3f0;
if(_3ef.length){
_3f0=_3ef.pop();
_3f0.style.display="";
}else{
if(dojo.isIE<9){
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\");'>";
_3f0=dojo.doc.createElement(html);
}else{
_3f0=dojo.create("iframe");
_3f0.src="javascript:\"\"";
_3f0.className="dijitBackgroundIframe";
dojo.style(_3f0,"opacity",0.1);
}
_3f0.tabIndex=-1;
dijit.setWaiRole(_3f0,"presentation");
}
return _3f0;
};
this.push=function(_3f1){
_3f1.style.display="none";
_3ef.push(_3f1);
};
}();
dijit.BackgroundIframe=function(node){
if(!node.id){
throw new Error("no id");
}
if(dojo.isIE||dojo.isMoz){
var _3f2=(this.iframe=dijit._frames.pop());
node.appendChild(_3f2);
if(dojo.isIE<7||dojo.isQuirks){
this.resize(node);
this._conn=dojo.connect(node,"onresize",this,function(){
this.resize(node);
});
}else{
dojo.style(_3f2,{width:"100%",height:"100%"});
}
}
};
dojo.extend(dijit.BackgroundIframe,{resize:function(node){
if(this.iframe){
dojo.style(this.iframe,{width:node.offsetWidth+"px",height:node.offsetHeight+"px"});
}
},destroy:function(){
if(this._conn){
dojo.disconnect(this._conn);
this._conn=null;
}
if(this.iframe){
dijit._frames.push(this.iframe);
delete this.iframe;
}
}});
}
if(!dojo._hasResource["dijit._base.scroll"]){
dojo._hasResource["dijit._base.scroll"]=true;
dojo.provide("dijit._base.scroll");
dijit.scrollIntoView=function(node,pos){
dojo.window.scrollIntoView(node,pos);
};
}
if(!dojo._hasResource["dojo.uacss"]){
dojo._hasResource["dojo.uacss"]=true;
dojo.provide("dojo.uacss");
(function(){
var d=dojo,html=d.doc.documentElement,ie=d.isIE,_3f3=d.isOpera,maj=Math.floor,ff=d.isFF,_3f4=d.boxModel.replace(/-/,""),_3f5={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_ie8:maj(ie)==8,dj_ie9:maj(ie)==9,dj_quirks:d.isQuirks,dj_iequirks:ie&&d.isQuirks,dj_opera:_3f3,dj_khtml:d.isKhtml,dj_webkit:d.isWebKit,dj_safari:d.isSafari,dj_chrome:d.isChrome,dj_gecko:d.isMozilla,dj_ff3:maj(ff)==3};
_3f5["dj_"+_3f4]=true;
var _3f6="";
for(var clz in _3f5){
if(_3f5[clz]){
_3f6+=clz+" ";
}
}
html.className=d.trim(html.className+" "+_3f6);
dojo._loaders.unshift(function(){
if(!dojo._isBodyLtr()){
var _3f7="dj_rtl dijitRtl "+_3f6.replace(/ /g,"-rtl ");
html.className=d.trim(html.className+" "+_3f7);
}
});
})();
}
if(!dojo._hasResource["dijit._base.sniff"]){
dojo._hasResource["dijit._base.sniff"]=true;
dojo.provide("dijit._base.sniff");
}
if(!dojo._hasResource["dijit._base.typematic"]){
dojo._hasResource["dijit._base.typematic"]=true;
dojo.provide("dijit._base.typematic");
dijit.typematic={_fireEventAndReload:function(){
this._timer=null;
this._callback(++this._count,this._node,this._evt);
this._currentTimeout=Math.max(this._currentTimeout<0?this._initialDelay:(this._subsequentDelay>1?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay)),this._minDelay);
this._timer=setTimeout(dojo.hitch(this,"_fireEventAndReload"),this._currentTimeout);
},trigger:function(evt,_3f8,node,_3f9,obj,_3fa,_3fb,_3fc){
if(obj!=this._obj){
this.stop();
this._initialDelay=_3fb||500;
this._subsequentDelay=_3fa||0.9;
this._minDelay=_3fc||10;
this._obj=obj;
this._evt=evt;
this._node=node;
this._currentTimeout=-1;
this._count=-1;
this._callback=dojo.hitch(_3f8,_3f9);
this._fireEventAndReload();
this._evt=dojo.mixin({faux:true},evt);
}
},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,_3fd,_3fe,_3ff,_400,_401,_402){
if(_3fd.keyCode){
_3fd.charOrCode=_3fd.keyCode;
dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");
}else{
if(_3fd.charCode){
_3fd.charOrCode=String.fromCharCode(_3fd.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==_3fd.charOrCode&&(_3fd.ctrlKey===undefined||_3fd.ctrlKey==evt.ctrlKey)&&(_3fd.altKey===undefined||_3fd.altKey==evt.altKey)&&(_3fd.metaKey===undefined||_3fd.metaKey==(evt.metaKey||false))&&(_3fd.shiftKey===undefined||_3fd.shiftKey==evt.shiftKey)){
dojo.stopEvent(evt);
dijit.typematic.trigger(evt,_3fe,node,_3ff,_3fd,_400,_401,_402);
}else{
if(dijit.typematic._obj==_3fd){
dijit.typematic.stop();
}
}
}),dojo.connect(node,"onkeyup",this,function(evt){
if(dijit.typematic._obj==_3fd){
dijit.typematic.stop();
}
})];
},addMouseListener:function(node,_403,_404,_405,_406,_407){
var dc=dojo.connect;
return [dc(node,"mousedown",this,function(evt){
dojo.stopEvent(evt);
dijit.typematic.trigger(evt,_403,node,_404,node,_405,_406,_407);
}),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){
evt.preventDefault();
}),dc(node,"dblclick",this,function(evt){
dojo.stopEvent(evt);
if(dojo.isIE){
dijit.typematic.trigger(evt,_403,node,_404,node,_405,_406,_407);
setTimeout(dojo.hitch(this,dijit.typematic.stop),50);
}
})];
},addListener:function(_408,_409,_40a,_40b,_40c,_40d,_40e,_40f){
return this.addKeyListener(_409,_40a,_40b,_40c,_40d,_40e,_40f).concat(this.addMouseListener(_408,_40b,_40c,_40d,_40e,_40f));
}};
}
if(!dojo._hasResource["dijit._base.wai"]){
dojo._hasResource["dijit._base.wai"]=true;
dojo.provide("dijit._base.wai");
dijit.wai={onload:function(){
var div=dojo.create("div",{id:"a11yTestNode",style:{cssText:"border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif"))+"\");"}},dojo.body());
var cs=dojo.getComputedStyle(div);
if(cs){
var _410=cs.backgroundImage;
var _411=(cs.borderTopColor==cs.borderRightColor)||(_410!=null&&(_410=="none"||_410=="url(invalid-url:)"));
dojo[_411?"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,{hasWaiRole:function(elem,role){
var _412=this.getWaiRole(elem);
return role?(_412.indexOf(role)>-1):(_412.length>0);
},getWaiRole:function(elem){
return dojo.trim((dojo.attr(elem,"role")||"").replace("wairole:",""));
},setWaiRole:function(elem,role){
dojo.attr(elem,"role",role);
},removeWaiRole:function(elem,role){
var _413=dojo.attr(elem,"role");
if(!_413){
return;
}
if(role){
var t=dojo.trim((" "+_413+" ").replace(" "+role+" "," "));
dojo.attr(elem,"role",t);
}else{
elem.removeAttribute("role");
}
},hasWaiState:function(elem,_414){
return elem.hasAttribute?elem.hasAttribute("aria-"+_414):!!elem.getAttribute("aria-"+_414);
},getWaiState:function(elem,_415){
return elem.getAttribute("aria-"+_415)||"";
},setWaiState:function(elem,_416,_417){
elem.setAttribute("aria-"+_416,_417);
},removeWaiState:function(elem,_418){
elem.removeAttribute("aria-"+_418);
}});
}
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.connect(dojo,"_connect",function(_419,_41a){
if(_419&&dojo.isFunction(_419._onConnect)){
_419._onConnect(_41a);
}
});
dijit._connectOnUseEventHandler=function(_41b){
};
dijit._lastKeyDownNode=null;
if(dojo.isIE){
(function(){
var _41c=function(evt){
dijit._lastKeyDownNode=evt.srcElement;
};
dojo.doc.attachEvent("onkeydown",_41c);
dojo.addOnWindowUnload(function(){
dojo.doc.detachEvent("onkeydown",_41c);
});
})();
}else{
dojo.doc.addEventListener("keydown",function(evt){
dijit._lastKeyDownNode=evt.target;
},true);
}
(function(){
dojo.declare("dijit._Widget",dijit._WidgetBase,{_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,create:function(_41d,_41e){
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];
}
}
this.inherited(arguments);
if(this.domNode){
for(attr in this.params){
this._onConnect(attr);
}
}
},_onConnect:function(_41f){
if(_41f in this._deferredConnects){
var _420=this[this._deferredConnects[_41f]||"domNode"];
this.connect(_420,_41f.toLowerCase(),_41f);
delete this._deferredConnects[_41f];
}
},focused:false,isFocusable:function(){
return this.focus&&(dojo.style(this.domNode,"display")!="none");
},onFocus:function(){
},onBlur:function(){
},_onFocus:function(e){
this.onFocus();
},_onBlur:function(){
this.onBlur();
},setAttribute:function(attr,_421){
dojo.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");
this.set(attr,_421);
},attr:function(name,_422){
if(dojo.config.isDebug){
var _423=arguments.callee._ach||(arguments.callee._ach={}),_424=(arguments.callee.caller||"unknown caller").toString();
if(!_423[_424]){
dojo.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+_424,"","2.0");
_423[_424]=true;
}
}
var args=arguments.length;
if(args>=2||typeof name==="object"){
return this.set.apply(this,arguments);
}else{
return this.get(name);
}
},nodesWithKeyClick:["input","button"],connect:function(obj,_425,_426){
var d=dojo,dc=d._connect,_427=this.inherited(arguments,[obj,_425=="ondijitclick"?"onclick":_425,_426]);
if(_425=="ondijitclick"){
if(d.indexOf(this.nodesWithKeyClick,obj.nodeName.toLowerCase())==-1){
var m=d.hitch(this,_426);
_427.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;
if(!("openDropDown" in this&&obj==this._buttonNode)){
e.preventDefault();
}
}
}),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);
}
}));
}
}
return _427;
},_onShow:function(){
this.onShow();
},onShow:function(){
},onHide:function(){
},onClose:function(){
return true;
}});
})();
}
if(!dojo._hasResource["dojo.string"]){
dojo._hasResource["dojo.string"]=true;
dojo.provide("dojo.string");
dojo.getObject("string",true,dojo);
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(_428,map,_429,_42a){
_42a=_42a||dojo.global;
_429=_429?dojo.hitch(_42a,_429):function(v){
return v;
};
return _428.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_42b,key,_42c){
var _42d=dojo.getObject(key,false,map);
if(_42c){
_42d=dojo.getObject(_42c,false,_42a).call(_42a,_42d,key);
}
return _429(_42d,key).toString();
});
};
dojo.string.trim=String.prototype.trim?dojo.trim:function(str){
str=str.replace(/^\s+/,"");
for(var i=str.length-1;i>=0;i--){
if(/\S/.test(str.charAt(i))){
str=str.substring(0,i+1);
break;
}
}
return str;
};
}
if(!dojo._hasResource["dojo.cache"]){
dojo._hasResource["dojo.cache"]=true;
dojo.provide("dojo.cache");
var _42e={};
dojo.cache=function(_42f,url,_430){
if(typeof _42f=="string"){
var _431=dojo.moduleUrl(_42f,url);
}else{
_431=_42f;
_430=url;
}
var key=_431.toString();
var val=_430;
if(_430!=undefined&&!dojo.isString(_430)){
val=("value" in _430?_430.value:undefined);
}
var _432=_430&&_430.sanitize?true:false;
if(typeof val=="string"){
val=_42e[key]=_432?dojo.cache._sanitize(val):val;
}else{
if(val===null){
delete _42e[key];
}else{
if(!(key in _42e)){
val=dojo._getText(key);
_42e[key]=_432?dojo.cache._sanitize(val):val;
}
val=_42e[key];
}
}
return val;
};
dojo.cache._sanitize=function(val){
if(val){
val=val.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");
var _433=val.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_433){
val=_433[1];
}
}else{
val="";
}
return val;
};
}
if(!dojo._hasResource["dijit._Templated"]){
dojo._hasResource["dijit._Templated"]=true;
dojo.provide("dijit._Templated");
dojo.declare("dijit._Templated",null,{templateString:null,templatePath:null,widgetsInTemplate:false,_skipNodeCache:false,_earlyTemplatedStartup:false,constructor:function(){
this._attachPoints=[];
this._attachEvents=[];
},_stringRepl:function(tmpl){
var _434=this.declaredClass,_435=this;
return dojo.string.substitute(tmpl,this,function(_436,key){
if(key.charAt(0)=="!"){
_436=dojo.getObject(key.substr(1),false,_435);
}
if(typeof _436=="undefined"){
throw new Error(_434+" template:"+key);
}
if(_436==null){
return "";
}
return key.charAt(0)=="!"?_436:_436.toString().replace(/"/g,"&quot;");
},this);
},buildRendering:function(){
var _437=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);
var node;
if(dojo.isString(_437)){
node=dojo._toDom(this._stringRepl(_437));
if(node.nodeType!=1){
throw new Error("Invalid template: "+_437);
}
}else{
node=_437.cloneNode(true);
}
this.domNode=node;
this.inherited(arguments);
this._attachTemplateNodes(node);
if(this.widgetsInTemplate){
var cw=(this._startupWidgets=dojo.parser.parse(node,{noStart:!this._earlyTemplatedStartup,template:true,inherited:{dir:this.dir,lang:this.lang},propsThis:this,scope:"dojo"}));
this._supportingWidgets=dijit.findWidgets(node);
this._attachTemplateNodes(cw,function(n,p){
return n[p];
});
}
this._fillContent(this.srcNodeRef);
},_fillContent:function(_438){
var dest=this.containerNode;
if(_438&&dest){
while(_438.hasChildNodes()){
dest.appendChild(_438.firstChild);
}
}
},_attachTemplateNodes:function(_439,_43a){
_43a=_43a||function(n,p){
return n.getAttribute(p);
};
var _43b=dojo.isArray(_439)?_439:(_439.all||_439.getElementsByTagName("*"));
var x=dojo.isArray(_439)?0:-1;
for(;x<_43b.length;x++){
var _43c=(x==-1)?_439:_43b[x];
if(this.widgetsInTemplate&&(_43a(_43c,"dojoType")||_43a(_43c,"data-dojo-type"))){
continue;
}
var _43d=_43a(_43c,"dojoAttachPoint")||_43a(_43c,"data-dojo-attach-point");
if(_43d){
var _43e,_43f=_43d.split(/\s*,\s*/);
while((_43e=_43f.shift())){
if(dojo.isArray(this[_43e])){
this[_43e].push(_43c);
}else{
this[_43e]=_43c;
}
this._attachPoints.push(_43e);
}
}
var _440=_43a(_43c,"dojoAttachEvent")||_43a(_43c,"data-dojo-attach-event");
if(_440){
var _441,_442=_440.split(/\s*,\s*/);
var trim=dojo.trim;
while((_441=_442.shift())){
if(_441){
var _443=null;
if(_441.indexOf(":")!=-1){
var _444=_441.split(":");
_441=trim(_444[0]);
_443=trim(_444[1]);
}else{
_441=trim(_441);
}
if(!_443){
_443=_441;
}
this._attachEvents.push(this.connect(_43c,_441,_443));
}
}
}
var role=_43a(_43c,"waiRole");
if(role){
dijit.setWaiRole(_43c,role);
}
var _445=_43a(_43c,"waiState");
if(_445){
dojo.forEach(_445.split(/\s*,\s*/),function(_446){
if(_446.indexOf("-")!=-1){
var pair=_446.split("-");
dijit.setWaiState(_43c,pair[0],pair[1]);
}
});
}
}
},startup:function(){
dojo.forEach(this._startupWidgets,function(w){
if(w&&!w._started&&w.startup){
w.startup();
}
});
this.inherited(arguments);
},destroyRendering:function(){
dojo.forEach(this._attachPoints,function(_447){
delete this[_447];
},this);
this._attachPoints=[];
dojo.forEach(this._attachEvents,this.disconnect,this);
this._attachEvents=[];
this.inherited(arguments);
}});
dijit._Templated._templateCache={};
dijit._Templated.getCachedTemplate=function(_448,_449,_44a){
var _44b=dijit._Templated._templateCache;
var key=_449||_448;
var _44c=_44b[key];
if(_44c){
try{
if(!_44c.ownerDocument||_44c.ownerDocument==dojo.doc){
return _44c;
}
}
catch(e){
}
dojo.destroy(_44c);
}
if(!_449){
_449=dojo.cache(_448,{sanitize:true});
}
_449=dojo.string.trim(_449);
if(_44a||_449.match(/\$\{([^\}]+)\}/g)){
return (_44b[key]=_449);
}else{
var node=dojo._toDom(_449);
if(node.nodeType!=1){
throw new Error("Invalid template: "+_449);
}
return (_44b[key]=node);
}
};
if(dojo.isIE){
dojo.addOnWindowUnload(function(){
var _44d=dijit._Templated._templateCache;
for(var key in _44d){
var _44e=_44d[key];
if(typeof _44e=="object"){
dojo.destroy(_44e);
}
delete _44d[key];
}
});
}
dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});
}
if(!dojo._hasResource["dijit._CssStateMixin"]){
dojo._hasResource["dijit._CssStateMixin"]=true;
dojo.provide("dijit._CssStateMixin");
dojo.declare("dijit._CssStateMixin",[],{cssStateNodes:{},hovering:false,active:false,_applyAttributes:function(){
this.inherited(arguments);
dojo.forEach(["onmouseenter","onmouseleave","onmousedown"],function(e){
this.connect(this.domNode,e,"_cssMouseEvent");
},this);
dojo.forEach(["disabled","readOnly","checked","selected","focused","state","hovering","active"],function(attr){
this.watch(attr,dojo.hitch(this,"_setStateClass"));
},this);
for(var ap in this.cssStateNodes){
this._trackMouseState(this[ap],this.cssStateNodes[ap]);
}
this._setStateClass();
},_cssMouseEvent:function(_44f){
if(!this.disabled){
switch(_44f.type){
case "mouseenter":
case "mouseover":
this._set("hovering",true);
this._set("active",this._mouseDown);
break;
case "mouseleave":
case "mouseout":
this._set("hovering",false);
this._set("active",false);
break;
case "mousedown":
this._set("active",true);
this._mouseDown=true;
var _450=this.connect(dojo.body(),"onmouseup",function(){
this._mouseDown=false;
this._set("active",false);
this.disconnect(_450);
});
break;
}
}
},_setStateClass:function(){
var _451=this.baseClass.split(" ");
function _452(_453){
_451=_451.concat(dojo.map(_451,function(c){
return c+_453;
}),"dijit"+_453);
};
if(!this.isLeftToRight()){
_452("Rtl");
}
if(this.checked){
_452("Checked");
}
if(this.state){
_452(this.state);
}
if(this.selected){
_452("Selected");
}
if(this.disabled){
_452("Disabled");
}else{
if(this.readOnly){
_452("ReadOnly");
}else{
if(this.active){
_452("Active");
}else{
if(this.hovering){
_452("Hover");
}
}
}
}
if(this._focused){
_452("Focused");
}
var tn=this.stateNode||this.domNode,_454={};
dojo.forEach(tn.className.split(" "),function(c){
_454[c]=true;
});
if("_stateClasses" in this){
dojo.forEach(this._stateClasses,function(c){
delete _454[c];
});
}
dojo.forEach(_451,function(c){
_454[c]=true;
});
var _455=[];
for(var c in _454){
_455.push(c);
}
tn.className=_455.join(" ");
this._stateClasses=_451;
},_trackMouseState:function(node,_456){
var _457=false,_458=false,_459=false;
var self=this,cn=dojo.hitch(this,"connect",node);
function _45a(){
var _45b=("disabled" in self&&self.disabled)||("readonly" in self&&self.readonly);
dojo.toggleClass(node,_456+"Hover",_457&&!_458&&!_45b);
dojo.toggleClass(node,_456+"Active",_458&&!_45b);
dojo.toggleClass(node,_456+"Focused",_459&&!_45b);
};
cn("onmouseenter",function(){
_457=true;
_45a();
});
cn("onmouseleave",function(){
_457=false;
_458=false;
_45a();
});
cn("onmousedown",function(){
_458=true;
_45a();
});
cn("onmouseup",function(){
_458=false;
_45a();
});
cn("onfocus",function(){
_459=true;
_45a();
});
cn("onblur",function(){
_459=false;
_45a();
});
this.watch("disabled",_45a);
this.watch("readOnly",_45a);
}});
}
if(!dojo._hasResource["dijit.form._FormMixin"]){
dojo._hasResource["dijit.form._FormMixin"]=true;
dojo.provide("dijit.form._FormMixin");
dojo.declare("dijit.form._FormMixin",null,{state:"",reset:function(){
dojo.forEach(this.getDescendants(),function(_45c){
if(_45c.reset){
_45c.reset();
}
});
},validate:function(){
var _45d=false;
return dojo.every(dojo.map(this.getDescendants(),function(_45e){
_45e._hasBeenBlurred=true;
var _45f=_45e.disabled||!_45e.validate||_45e.validate();
if(!_45f&&!_45d){
dojo.window.scrollIntoView(_45e.containerNode||_45e.domNode);
_45e.focus();
_45d=true;
}
return _45f;
}),function(item){
return item;
});
},setValues:function(val){
dojo.deprecated(this.declaredClass+"::setValues() is deprecated. Use set('value', val) instead.","","2.0");
return this.set("value",val);
},_setValueAttr:function(obj){
var map={};
dojo.forEach(this.getDescendants(),function(_460){
if(!_460.name){
return;
}
var _461=map[_460.name]||(map[_460.name]=[]);
_461.push(_460);
});
for(var name in map){
if(!map.hasOwnProperty(name)){
continue;
}
var _462=map[name],_463=dojo.getObject(name,false,obj);
if(_463===undefined){
continue;
}
if(!dojo.isArray(_463)){
_463=[_463];
}
if(typeof _462[0].checked=="boolean"){
dojo.forEach(_462,function(w,i){
w.set("value",dojo.indexOf(_463,w.value)!=-1);
});
}else{
if(_462[0].multiple){
_462[0].set("value",_463);
}else{
dojo.forEach(_462,function(w,i){
w.set("value",_463[i]);
});
}
}
}
},getValues:function(){
dojo.deprecated(this.declaredClass+"::getValues() is deprecated. Use get('value') instead.","","2.0");
return this.get("value");
},_getValueAttr:function(){
var obj={};
dojo.forEach(this.getDescendants(),function(_464){
var name=_464.name;
if(!name||_464.disabled){
return;
}
var _465=_464.get("value");
if(typeof _464.checked=="boolean"){
if(/Radio/.test(_464.declaredClass)){
if(_465!==false){
dojo.setObject(name,_465,obj);
}else{
_465=dojo.getObject(name,false,obj);
if(_465===undefined){
dojo.setObject(name,null,obj);
}
}
}else{
var ary=dojo.getObject(name,false,obj);
if(!ary){
ary=[];
dojo.setObject(name,ary,obj);
}
if(_465!==false){
ary.push(_465);
}
}
}else{
var prev=dojo.getObject(name,false,obj);
if(typeof prev!="undefined"){
if(dojo.isArray(prev)){
prev.push(_465);
}else{
dojo.setObject(name,[prev,_465],obj);
}
}else{
dojo.setObject(name,_465,obj);
}
}
});
return obj;
},isValid:function(){
return this.state=="";
},onValidStateChange:function(_466){
},_getState:function(){
var _467=dojo.map(this._descendants,function(w){
return w.get("state")||"";
});
return dojo.indexOf(_467,"Error")>=0?"Error":dojo.indexOf(_467,"Incomplete")>=0?"Incomplete":"";
},disconnectChildren:function(){
dojo.forEach(this._childConnections||[],dojo.hitch(this,"disconnect"));
dojo.forEach(this._childWatches||[],function(w){
w.unwatch();
});
},connectChildren:function(_468){
var _469=this;
this.disconnectChildren();
this._descendants=this.getDescendants();
var set=_468?function(name,val){
_469[name]=val;
}:dojo.hitch(this,"_set");
set("value",this.get("value"));
set("state",this._getState());
var _46a=(this._childConnections=[]),_46b=(this._childWatches=[]);
dojo.forEach(dojo.filter(this._descendants,function(item){
return item.validate;
}),function(_46c){
dojo.forEach(["state","disabled"],function(attr){
_46b.push(_46c.watch(attr,function(attr,_46d,_46e){
_469.set("state",_469._getState());
}));
});
});
var _46f=function(){
if(_469._onChangeDelayTimer){
clearTimeout(_469._onChangeDelayTimer);
}
_469._onChangeDelayTimer=setTimeout(function(){
delete _469._onChangeDelayTimer;
_469._set("value",_469.get("value"));
},10);
};
dojo.forEach(dojo.filter(this._descendants,function(item){
return item.onChange;
}),function(_470){
_46a.push(_469.connect(_470,"onChange",_46f));
_46b.push(_470.watch("disabled",_46f));
});
},startup:function(){
this.inherited(arguments);
this.connectChildren(true);
this.watch("state",function(attr,_471,_472){
this.onValidStateChange(_472=="");
});
},destroy:function(){
this.disconnectChildren();
this.inherited(arguments);
}});
}
if(!dojo._hasResource["dijit._DialogMixin"]){
dojo._hasResource["dijit._DialogMixin"]=true;
dojo.provide("dijit._DialogMixin");
dojo.declare("dijit._DialogMixin",null,{attributeMap:dijit._Widget.prototype.attributeMap,execute:function(_473){
},onCancel:function(){
},onExecute:function(){
},_onSubmit:function(){
this.onExecute();
this.execute(this.get("value"));
},_getFocusItems:function(){
var _474=dijit._getTabNavigable(this.containerNode);
this._firstFocusItem=_474.lowest||_474.first||this.closeButtonNode||this.domNode;
this._lastFocusItem=_474.last||_474.highest||this._firstFocusItem;
}});
}
if(!dojo._hasResource["dijit.DialogUnderlay"]){
dojo._hasResource["dijit.DialogUnderlay"]=true;
dojo.provide("dijit.DialogUnderlay");
dojo.declare("dijit.DialogUnderlay",[dijit._Widget,dijit._Templated],{templateString:"<div class='dijitDialogUnderlayWrapper'><div class='dijitDialogUnderlay' dojoAttachPoint='node'></div></div>",dialogId:"","class":"",attributeMap:{id:"domNode"},_setDialogIdAttr:function(id){
dojo.attr(this.node,"id",id+"_underlay");
this._set("dialogId",id);
},_setClassAttr:function(_475){
this.node.className="dijitDialogUnderlay "+_475;
this._set("class",_475);
},postCreate:function(){
dojo.body().appendChild(this.domNode);
},layout:function(){
var is=this.node.style,os=this.domNode.style;
os.display="none";
var _476=dojo.window.getBox();
os.top=_476.t+"px";
os.left=_476.l+"px";
is.width=_476.w+"px";
is.height=_476.h+"px";
os.display="block";
},show:function(){
this.domNode.style.display="block";
this.layout();
this.bgIframe=new dijit.BackgroundIframe(this.domNode);
},hide:function(){
this.bgIframe.destroy();
delete this.bgIframe;
this.domNode.style.display="none";
}});
}
if(!dojo._hasResource["dijit._Contained"]){
dojo._hasResource["dijit._Contained"]=true;
dojo.provide("dijit._Contained");
dojo.declare("dijit._Contained",null,{getParent:function(){
var _477=dijit.getEnclosingWidget(this.domNode.parentNode);
return _477&&_477.isContainer?_477:null;
},_getSibling:function(_478){
var node=this.domNode;
do{
node=node[_478+"Sibling"];
}while(node&&node.nodeType!=1);
return node&&dijit.byNode(node);
},getPreviousSibling:function(){
return this._getSibling("previous");
},getNextSibling:function(){
return this._getSibling("next");
},getIndexInParent:function(){
var p=this.getParent();
if(!p||!p.getIndexOfChild){
return -1;
}
return p.getIndexOfChild(this);
}});
}
if(!dojo._hasResource["dijit._Container"]){
dojo._hasResource["dijit._Container"]=true;
dojo.provide("dijit._Container");
dojo.declare("dijit._Container",null,{isContainer:true,buildRendering:function(){
this.inherited(arguments);
if(!this.containerNode){
this.containerNode=this.domNode;
}
},addChild:function(_479,_47a){
var _47b=this.containerNode;
if(_47a&&typeof _47a=="number"){
var _47c=this.getChildren();
if(_47c&&_47c.length>=_47a){
_47b=_47c[_47a-1].domNode;
_47a="after";
}
}
dojo.place(_479.domNode,_47b,_47a);
if(this._started&&!_479._started){
_479.startup();
}
},removeChild:function(_47d){
if(typeof _47d=="number"){
_47d=this.getChildren()[_47d];
}
if(_47d){
var node=_47d.domNode;
if(node&&node.parentNode){
node.parentNode.removeChild(node);
}
}
},hasChildren:function(){
return this.getChildren().length>0;
},destroyDescendants:function(_47e){
dojo.forEach(this.getChildren(),function(_47f){
_47f.destroyRecursive(_47e);
});
},_getSiblingOfChild:function(_480,dir){
var node=_480.domNode,_481=(dir>0?"nextSibling":"previousSibling");
do{
node=node[_481];
}while(node&&(node.nodeType!=1||!dijit.byNode(node)));
return node&&dijit.byNode(node);
},getIndexOfChild:function(_482){
return dojo.indexOf(this.getChildren(),_482);
},startup:function(){
if(this._started){
return;
}
dojo.forEach(this.getChildren(),function(_483){
_483.startup();
});
this.inherited(arguments);
}});
}
if(!dojo._hasResource["dijit.layout._LayoutWidget"]){
dojo._hasResource["dijit.layout._LayoutWidget"]=true;
dojo.provide("dijit.layout._LayoutWidget");
dojo.declare("dijit.layout._LayoutWidget",[dijit._Widget,dijit._Container,dijit._Contained],{baseClass:"dijitLayoutContainer",isLayoutContainer:true,buildRendering:function(){
this.inherited(arguments);
dojo.addClass(this.domNode,"dijitContainer");
},startup:function(){
if(this._started){
return;
}
this.inherited(arguments);
var _484=this.getParent&&this.getParent();
if(!(_484&&_484.isLayoutContainer)){
this.resize();
this.connect(dojo.isIE?this.domNode:dojo.global,"onresize",function(){
this.resize();
});
}
},resize:function(_485,_486){
var node=this.domNode;
if(_485){
dojo.marginBox(node,_485);
if(_485.t){
node.style.top=_485.t+"px";
}
if(_485.l){
node.style.left=_485.l+"px";
}
}
var mb=_486||{};
dojo.mixin(mb,_485||{});
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(_487){
var cls=this.baseClass+"-child "+(_487.baseClass?this.baseClass+"-"+_487.baseClass:"");
dojo.addClass(_487.domNode,cls);
},addChild:function(_488,_489){
this.inherited(arguments);
if(this._started){
this._setupChild(_488);
}
},removeChild:function(_48a){
var cls=this.baseClass+"-child"+(_48a.baseClass?" "+this.baseClass+"-"+_48a.baseClass:"");
dojo.removeClass(_48a.domNode,cls);
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 _48b=function(word){
return word.substring(0,1).toUpperCase()+word.substring(1);
};
var size=function(_48c,dim){
var _48d=_48c.resize?_48c.resize(dim):dojo.marginBox(_48c.domNode,dim);
if(_48d){
dojo.mixin(_48c,_48d);
}else{
dojo.mixin(_48c,dojo.marginBox(_48c.domNode));
dojo.mixin(_48c,dim);
}
};
dijit.layout.layoutChildren=function(_48e,dim,_48f,_490,_491){
dim=dojo.mixin({},dim);
dojo.addClass(_48e,"dijitLayoutContainer");
_48f=dojo.filter(_48f,function(item){
return item.region!="center"&&item.layoutAlign!="client";
}).concat(dojo.filter(_48f,function(item){
return item.region=="center"||item.layoutAlign=="client";
}));
dojo.forEach(_48f,function(_492){
var elm=_492.domNode,pos=(_492.region||_492.layoutAlign);
var _493=elm.style;
_493.left=dim.l+"px";
_493.top=dim.t+"px";
_493.position="absolute";
dojo.addClass(elm,"dijitAlign"+_48b(pos));
var _494={};
if(_490&&_490==_492.id){
_494[_492.region=="top"||_492.region=="bottom"?"h":"w"]=_491;
}
if(pos=="top"||pos=="bottom"){
_494.w=dim.w;
size(_492,_494);
dim.h-=_492.h;
if(pos=="top"){
dim.t+=_492.h;
}else{
_493.top=dim.t+dim.h+"px";
}
}else{
if(pos=="left"||pos=="right"){
_494.h=dim.h;
size(_492,_494);
dim.w-=_492.w;
if(pos=="left"){
dim.l+=_492.w;
}else{
_493.left=dim.l+dim.w+"px";
}
}else{
if(pos=="client"||pos=="center"){
size(_492,dim);
}
}
}
});
};
})();
}
if(!dojo._hasResource["dijit.layout._ContentPaneResizeMixin"]){
dojo._hasResource["dijit.layout._ContentPaneResizeMixin"]=true;
dojo.provide("dijit.layout._ContentPaneResizeMixin");
dojo.declare("dijit.layout._ContentPaneResizeMixin",null,{doLayout:true,isContainer:true,isLayoutContainer:true,_startChildren:function(){
dojo.forEach(this.getChildren(),function(_495){
_495.startup();
_495._started=true;
});
},startup:function(){
if(this._started){
return;
}
var _496=dijit._Contained.prototype.getParent.call(this);
this._childOfLayoutWidget=_496&&_496.isLayoutContainer;
this._needLayout=!this._childOfLayoutWidget;
this.inherited(arguments);
this._startChildren();
if(this._isShown()){
this._onShow();
}
if(!this._childOfLayoutWidget){
this.connect(dojo.isIE?this.domNode:dojo.global,"onresize",function(){
this._needLayout=!this._childOfLayoutWidget;
this.resize();
});
}
},_checkIfSingleChild:function(){
var _497=dojo.query("> *",this.containerNode).filter(function(node){
return node.tagName!=="SCRIPT";
}),_498=_497.filter(function(node){
return dojo.hasAttr(node,"data-dojo-type")||dojo.hasAttr(node,"dojoType")||dojo.hasAttr(node,"widgetId");
}),_499=dojo.filter(_498.map(dijit.byNode),function(_49a){
return _49a&&_49a.domNode&&_49a.resize;
});
if(_497.length==_498.length&&_499.length==1){
this._singleChild=_499[0];
}else{
delete this._singleChild;
}
dojo.toggleClass(this.containerNode,this.baseClass+"SingleChild",!!this._singleChild);
},resize:function(_49b,_49c){
if(!this._wasShown&&this.open!==false){
this._onShow();
}
this._resizeCalled=true;
this._scheduleLayout(_49b,_49c);
},_scheduleLayout:function(_49d,_49e){
if(this._isShown()){
this._layout(_49d,_49e);
}else{
this._needLayout=true;
this._changeSize=_49d;
this._resultSize=_49e;
}
},_layout:function(_49f,_4a0){
if(_49f){
dojo.marginBox(this.domNode,_49f);
}
var cn=this.containerNode;
if(cn===this.domNode){
var mb=_4a0||{};
dojo.mixin(mb,_49f||{});
if(!("h" in mb)||!("w" in mb)){
mb=dojo.mixin(dojo.marginBox(cn),mb);
}
this._contentBox=dijit.layout.marginBox2contentBox(cn,mb);
}else{
this._contentBox=dojo.contentBox(cn);
}
this._layoutChildren();
delete this._needLayout;
},_layoutChildren:function(){
if(this.doLayout){
this._checkIfSingleChild();
}
if(this._singleChild&&this._singleChild.resize){
var cb=this._contentBox||dojo.contentBox(this.containerNode);
this._singleChild.resize({w:cb.w,h:cb.h});
}else{
dojo.forEach(this.getChildren(),function(_4a1){
if(_4a1.resize){
_4a1.resize();
}
});
}
},_isShown:function(){
if(this._childOfLayoutWidget){
if(this._resizeCalled&&"open" in this){
return this.open;
}
return this._resizeCalled;
}else{
if("open" in this){
return this.open;
}else{
var node=this.domNode,_4a2=this.domNode.parentNode;
return (node.style.display!="none")&&(node.style.visibility!="hidden")&&!dojo.hasClass(node,"dijitHidden")&&_4a2&&_4a2.style&&(_4a2.style.display!="none");
}
}
},_onShow:function(){
if(this._needLayout){
this._layout(this._changeSize,this._resultSize);
}
this.inherited(arguments);
this._wasShown=true;
}});
}
if(!dojo._hasResource["dojo.html"]){
dojo._hasResource["dojo.html"]=true;
dojo.provide("dojo.html");
dojo.getObject("html",true,dojo);
(function(){
var _4a3=0,d=dojo;
dojo.html._secureForInnerHtml=function(cont){
return cont.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"");
};
dojo.html._emptyNode=dojo.empty;
dojo.html._setNodeContent=function(node,cont){
d.empty(node);
if(cont){
if(typeof cont=="string"){
cont=d._toDom(cont,node.ownerDocument);
}
if(!cont.nodeType&&d.isArrayLike(cont)){
for(var _4a4=cont.length,i=0;i<cont.length;i=_4a4==cont.length?i+1:0){
d.place(cont[i],node,"last");
}
}else{
d.place(cont,node,"last");
}
}
return node;
};
dojo.declare("dojo.html._ContentSetter",null,{node:"",content:"",id:"",cleanContent:false,extractContent:false,parseContent:false,parserScope:dojo._scopeName,startup:true,constructor:function(_4a5,node){
dojo.mixin(this,_4a5||{});
node=this.node=dojo.byId(this.node||node);
if(!this.id){
this.id=["Setter",(node)?node.id||node.tagName:"",_4a3++].join("_");
}
},set:function(cont,_4a6){
if(undefined!==cont){
this.content=cont;
}
if(_4a6){
this._mixin(_4a6);
}
this.onBegin();
this.setContent();
this.onEnd();
return this.node;
},setContent:function(){
var node=this.node;
if(!node){
throw new Error(this.declaredClass+": setContent given no node");
}
try{
node=dojo.html._setNodeContent(node,this.content);
}
catch(e){
var _4a7=this.onContentError(e);
try{
node.innerHTML=_4a7;
}
catch(e){
console.error("Fatal "+this.declaredClass+".setContent could not change content due to "+e.message,e);
}
}
this.node=node;
},empty:function(){
if(this.parseResults&&this.parseResults.length){
dojo.forEach(this.parseResults,function(w){
if(w.destroy){
w.destroy();
}
});
delete this.parseResults;
}
dojo.html._emptyNode(this.node);
},onBegin:function(){
var cont=this.content;
if(dojo.isString(cont)){
if(this.cleanContent){
cont=dojo.html._secureForInnerHtml(cont);
}
if(this.extractContent){
var _4a8=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_4a8){
cont=_4a8[1];
}
}
}
this.empty();
this.content=cont;
return this.node;
},onEnd:function(){
if(this.parseContent){
this._parse();
}
return this.node;
},tearDown:function(){
delete this.parseResults;
delete this.node;
delete this.content;
},onContentError:function(err){
return "Error occured setting content: "+err;
},_mixin:function(_4a9){
var _4aa={},key;
for(key in _4a9){
if(key in _4aa){
continue;
}
this[key]=_4a9[key];
}
},_parse:function(){
var _4ab=this.node;
try{
var _4ac={};
dojo.forEach(["dir","lang","textDir"],function(name){
if(this[name]){
_4ac[name]=this[name];
}
},this);
this.parseResults=dojo.parser.parse({rootNode:_4ab,noStart:!this.startup,inherited:_4ac,scope:this.parserScope});
}
catch(e){
this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);
}
},_onError:function(type,err,_4ad){
var _4ae=this["on"+type+"Error"].call(this,err);
if(_4ad){
console.error(_4ad,err);
}else{
if(_4ae){
dojo.html._setNodeContent(this.node,_4ae,true);
}
}
}});
dojo.html.set=function(node,cont,_4af){
if(undefined==cont){
console.warn("dojo.html.set: no cont argument provided, using empty string");
cont="";
}
if(!_4af){
return dojo.html._setNodeContent(node,cont,true);
}else{
var op=new dojo.html._ContentSetter(dojo.mixin(_4af,{content:cont,node:node}));
return op.set();
}
};
})();
}
if(!dojo._hasResource["dojo.i18n"]){
dojo._hasResource["dojo.i18n"]=true;
dojo.provide("dojo.i18n");
dojo.getObject("i18n",true,dojo);
dojo.i18n.getLocalization=dojo.i18n.getLocalization||function(_4b0,_4b1,_4b2){
_4b2=dojo.i18n.normalizeLocale(_4b2);
var _4b3=_4b2.split("-");
var _4b4=[_4b0,"nls",_4b1].join(".");
var _4b5=dojo._loadedModules[_4b4];
if(_4b5){
var _4b6;
for(var i=_4b3.length;i>0;i--){
var loc=_4b3.slice(0,i).join("_");
if(_4b5[loc]){
_4b6=_4b5[loc];
break;
}
}
if(!_4b6){
_4b6=_4b5.ROOT;
}
if(_4b6){
var _4b7=function(){
};
_4b7.prototype=_4b6;
return new _4b7();
}
}
throw new Error("Bundle not found: "+_4b1+" in "+_4b0+" , locale="+_4b2);
};
dojo.i18n.normalizeLocale=function(_4b8){
var _4b9=_4b8?_4b8.toLowerCase():dojo.locale;
if(_4b9=="root"){
_4b9="ROOT";
}
return _4b9;
};
dojo.i18n._requireLocalization=function(_4ba,_4bb,_4bc,_4bd){
var _4be=dojo.i18n.normalizeLocale(_4bc);
var _4bf=[_4ba,"nls",_4bb].join(".");
var _4c0="";
if(_4bd){
var _4c1=_4bd.split(",");
for(var i=0;i<_4c1.length;i++){
if(_4be["indexOf"](_4c1[i])==0){
if(_4c1[i].length>_4c0.length){
_4c0=_4c1[i];
}
}
}
if(!_4c0){
_4c0="ROOT";
}
}
var _4c2=_4bd?_4c0:_4be;
var _4c3=dojo._loadedModules[_4bf];
var _4c4=null;
if(_4c3){
if(dojo.config.localizationComplete&&_4c3._built){
return;
}
var _4c5=_4c2.replace(/-/g,"_");
var _4c6=_4bf+"."+_4c5;
_4c4=dojo._loadedModules[_4c6];
}
if(!_4c4){
_4c3=dojo["provide"](_4bf);
var syms=dojo._getModuleSymbols(_4ba);
var _4c7=syms.concat("nls").join("/");
var _4c8;
dojo.i18n._searchLocalePath(_4c2,_4bd,function(loc){
var _4c9=loc.replace(/-/g,"_");
var _4ca=_4bf+"."+_4c9;
var _4cb=false;
if(!dojo._loadedModules[_4ca]){
dojo["provide"](_4ca);
var _4cc=[_4c7];
if(loc!="ROOT"){
_4cc.push(loc);
}
_4cc.push(_4bb);
var _4cd=_4cc.join("/")+".js";
_4cb=dojo._loadPath(_4cd,null,function(hash){
hash=hash.root||hash;
var _4ce=function(){
};
_4ce.prototype=_4c8;
_4c3[_4c9]=new _4ce();
for(var j in hash){
_4c3[_4c9][j]=hash[j];
}
});
}else{
_4cb=true;
}
if(_4cb&&_4c3[_4c9]){
_4c8=_4c3[_4c9];
}else{
_4c3[_4c9]=_4c8;
}
if(_4bd){
return true;
}
});
}
if(_4bd&&_4be!=_4c0){
_4c3[_4be.replace(/-/g,"_")]=_4c3[_4c0.replace(/-/g,"_")];
}
};
(function(){
var _4cf=dojo.config.extraLocale;
if(_4cf){
if(!_4cf instanceof Array){
_4cf=[_4cf];
}
var req=dojo.i18n._requireLocalization;
dojo.i18n._requireLocalization=function(m,b,_4d0,_4d1){
req(m,b,_4d0,_4d1);
if(_4d0){
return;
}
for(var i=0;i<_4cf.length;i++){
req(m,b,_4cf[i],_4d1);
}
};
}
})();
dojo.i18n._searchLocalePath=function(_4d2,down,_4d3){
_4d2=dojo.i18n.normalizeLocale(_4d2);
var _4d4=_4d2.split("-");
var _4d5=[];
for(var i=_4d4.length;i>0;i--){
_4d5.push(_4d4.slice(0,i).join("-"));
}
_4d5.push(false);
if(down){
_4d5.reverse();
}
for(var j=_4d5.length-1;j>=0;j--){
var loc=_4d5[j]||"ROOT";
var stop=_4d3(loc);
if(stop){
break;
}
}
};
dojo.i18n._preloadLocalizations=function(_4d6,_4d7){
function _4d8(_4d9){
_4d9=dojo.i18n.normalizeLocale(_4d9);
dojo.i18n._searchLocalePath(_4d9,true,function(loc){
for(var i=0;i<_4d7.length;i++){
if(_4d7[i]==loc){
dojo["require"](_4d6+"_"+loc);
return true;
}
}
return false;
});
};
_4d8();
var _4da=dojo.config.extraLocale||[];
for(var i=0;i<_4da.length;i++){
_4d8(_4da[i]);
}
};
}
if(!dojo._hasResource["dijit.layout.ContentPane"]){
dojo._hasResource["dijit.layout.ContentPane"]=true;
dojo.provide("dijit.layout.ContentPane");
dojo.declare("dijit.layout.ContentPane",[dijit._Widget,dijit.layout._ContentPaneResizeMixin],{href:"",extractContent:false,parseOnLoad:true,parserScope:dojo._scopeName,preventCache:false,preload:false,refreshOnShow:false,loadingMessage:"<span class='dijitContentPaneLoading'>${loadingState}</span>",errorMessage:"<span class='dijitContentPaneError'>${errorState}</span>",isLoaded:false,baseClass:"dijitContentPane",ioArgs:{},onLoadDeferred:null,attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{title:[]}),stopParser:true,template:false,create:function(_4db,_4dc){
if((!_4db||!_4db.template)&&_4dc&&!("href" in _4db)&&!("content" in _4db)){
var df=dojo.doc.createDocumentFragment();
_4dc=dojo.byId(_4dc);
while(_4dc.firstChild){
df.appendChild(_4dc.firstChild);
}
_4db=dojo.delegate(_4db,{content:df});
}
this.inherited(arguments,[_4db,_4dc]);
},postMixInProperties:function(){
this.inherited(arguments);
var _4dd=dojo.i18n.getLocalization("dijit","loading",this.lang);
this.loadingMessage=dojo.string.substitute(this.loadingMessage,_4dd);
this.errorMessage=dojo.string.substitute(this.errorMessage,_4dd);
},buildRendering:function(){
this.inherited(arguments);
if(!this.containerNode){
this.containerNode=this.domNode;
}
this.domNode.title="";
if(!dojo.attr(this.domNode,"role")){
dijit.setWaiRole(this.domNode,"group");
}
},_startChildren:function(){
this.inherited(arguments);
if(this._contentSetter){
dojo.forEach(this._contentSetter.parseResults,function(obj){
if(!obj._started&&!obj._destroyed&&dojo.isFunction(obj.startup)){
obj.startup();
obj._started=true;
}
},this);
}
},setHref:function(href){
dojo.deprecated("dijit.layout.ContentPane.setHref() is deprecated. Use set('href', ...) instead.","","2.0");
return this.set("href",href);
},_setHrefAttr:function(href){
this.cancel();
this.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));
this.onLoadDeferred.addCallback(dojo.hitch(this,"onLoad"));
this._set("href",href);
if(this.preload||(this._created&&this._isShown())){
this._load();
}else{
this._hrefChanged=true;
}
return this.onLoadDeferred;
},setContent:function(data){
dojo.deprecated("dijit.layout.ContentPane.setContent() is deprecated.  Use set('content', ...) instead.","","2.0");
this.set("content",data);
},_setContentAttr:function(data){
this._set("href","");
this.cancel();
this.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));
if(this._created){
this.onLoadDeferred.addCallback(dojo.hitch(this,"onLoad"));
}
this._setContent(data||"");
this._isDownloaded=false;
return this.onLoadDeferred;
},_getContentAttr:function(){
return this.containerNode.innerHTML;
},cancel:function(){
if(this._xhrDfd&&(this._xhrDfd.fired==-1)){
this._xhrDfd.cancel();
}
delete this._xhrDfd;
this.onLoadDeferred=null;
},uninitialize:function(){
if(this._beingDestroyed){
this.cancel();
}
this.inherited(arguments);
},destroyRecursive:function(_4de){
if(this._beingDestroyed){
return;
}
this.inherited(arguments);
},_onShow:function(){
this.inherited(arguments);
if(this.href){
if(!this._xhrDfd&&(!this.isLoaded||this._hrefChanged||this.refreshOnShow)){
return this.refresh();
}
}
},refresh:function(){
this.cancel();
this.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));
this.onLoadDeferred.addCallback(dojo.hitch(this,"onLoad"));
this._load();
return this.onLoadDeferred;
},_load:function(){
this._setContent(this.onDownloadStart(),true);
var self=this;
var _4df={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};
if(dojo.isObject(this.ioArgs)){
dojo.mixin(_4df,this.ioArgs);
}
var hand=(this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_4df));
hand.addCallback(function(html){
try{
self._isDownloaded=true;
self._setContent(html,false);
self.onDownloadEnd();
}
catch(err){
self._onError("Content",err);
}
delete self._xhrDfd;
return html;
});
hand.addErrback(function(err){
if(!hand.canceled){
self._onError("Download",err);
}
delete self._xhrDfd;
return err;
});
delete this._hrefChanged;
},_onLoadHandler:function(data){
this._set("isLoaded",true);
try{
this.onLoadDeferred.callback(data);
}
catch(e){
console.error("Error "+this.widgetId+" running custom onLoad code: "+e.message);
}
},_onUnloadHandler:function(){
this._set("isLoaded",false);
try{
this.onUnload();
}
catch(e){
console.error("Error "+this.widgetId+" running custom onUnload code: "+e.message);
}
},destroyDescendants:function(){
if(this.isLoaded){
this._onUnloadHandler();
}
var _4e0=this._contentSetter;
dojo.forEach(this.getChildren(),function(_4e1){
if(_4e1.destroyRecursive){
_4e1.destroyRecursive();
}
});
if(_4e0){
dojo.forEach(_4e0.parseResults,function(_4e2){
if(_4e2.destroyRecursive&&_4e2.domNode&&_4e2.domNode.parentNode==dojo.body()){
_4e2.destroyRecursive();
}
});
delete _4e0.parseResults;
}
dojo.html._emptyNode(this.containerNode);
delete this._singleChild;
},_setContent:function(cont,_4e3){
this.destroyDescendants();
var _4e4=this._contentSetter;
if(!(_4e4&&_4e4 instanceof dojo.html._ContentSetter)){
_4e4=this._contentSetter=new dojo.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){
var _4e5=this.onContentError(e);
try{
this.containerNode.innerHTML=_4e5;
}
catch(e){
console.error("Fatal "+this.id+" could not change content due to "+e.message,e);
}
})});
}
var _4e6=dojo.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad,parserScope:this.parserScope,startup:false,dir:this.dir,lang:this.lang},this._contentSetterParams||{});
_4e4.set((dojo.isObject(cont)&&cont.domNode)?cont.domNode:cont,_4e6);
delete this._contentSetterParams;
if(this.doLayout){
this._checkIfSingleChild();
}
if(!_4e3){
if(this._started){
this._startChildren();
this._scheduleLayout();
}
this._onLoadHandler(cont);
}
},_onError:function(type,err,_4e7){
this.onLoadDeferred.errback(err);
var _4e8=this["on"+type+"Error"].call(this,err);
if(_4e7){
console.error(_4e7,err);
}else{
if(_4e8){
this._setContent(_4e8,true);
}
}
},onLoad:function(data){
},onUnload:function(){
},onDownloadStart:function(){
return this.loadingMessage;
},onContentError:function(_4e9){
},onDownloadError:function(_4ea){
return this.errorMessage;
},onDownloadEnd:function(){
}});
}
if(!dojo._hasResource["dijit.TooltipDialog"]){
dojo._hasResource["dijit.TooltipDialog"]=true;
dojo.provide("dijit.TooltipDialog");
dojo.declare("dijit.TooltipDialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{title:"",doLayout:false,autofocus:true,baseClass:"dijitTooltipDialog",_firstFocusItem:null,_lastFocusItem:null,templateString:dojo.cache("dijit","templates/TooltipDialog.html","<div role=\"presentation\" tabIndex=\"-1\">\r\n\t<div class=\"dijitTooltipContainer\" role=\"presentation\">\r\n\t\t<div class =\"dijitTooltipContents dijitTooltipFocusNode\" dojoAttachPoint=\"containerNode\" role=\"dialog\"></div>\r\n\t</div>\r\n\t<div class=\"dijitTooltipConnector\" role=\"presentation\"></div>\r\n</div>\r\n"),_setTitleAttr:function(_4eb){
this.containerNode.title=_4eb;
this._set("title",_4eb);
},postCreate:function(){
this.inherited(arguments);
this.connect(this.containerNode,"onkeypress","_onKey");
},orient:function(node,_4ec,_4ed){
var newC="dijitTooltipAB"+(_4ed.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_4ed.charAt(0)=="T"?"Below":"Above");
dojo.replaceClass(this.domNode,newC,this._currentOrientClass||"");
this._currentOrientClass=newC;
},focus:function(){
this._getFocusItems(this.containerNode);
dijit.focus(this._firstFocusItem);
},onOpen:function(pos){
this.orient(this.domNode,pos.aroundCorner,pos.corner);
this._onShow();
},onClose:function(){
this.onHide();
},_onKey:function(evt){
var node=evt.target;
var dk=dojo.keys;
if(evt.charOrCode===dk.TAB){
this._getFocusItems(this.containerNode);
}
var _4ee=(this._firstFocusItem==this._lastFocusItem);
if(evt.charOrCode==dk.ESCAPE){
setTimeout(dojo.hitch(this,"onCancel"),0);
dojo.stopEvent(evt);
}else{
if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){
if(!_4ee){
dijit.focus(this._lastFocusItem);
}
dojo.stopEvent(evt);
}else{
if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){
if(!_4ee){
dijit.focus(this._firstFocusItem);
}
dojo.stopEvent(evt);
}else{
if(evt.charOrCode===dk.TAB){
evt.stopPropagation();
}
}
}
}
}});
}
if(!dojo._hasResource["dijit.Dialog"]){
dojo._hasResource["dijit.Dialog"]=true;
dojo.provide("dijit.Dialog");
dojo.declare("dijit._DialogBase",[dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin,dijit._CssStateMixin],{templateString:dojo.cache("dijit","templates/Dialog.html","<div class=\"dijitDialog\" role=\"dialog\" aria-labelledby=\"${id}_title\">\r\n\t<div dojoAttachPoint=\"titleBar\" class=\"dijitDialogTitleBar\">\r\n\t<span dojoAttachPoint=\"titleNode\" class=\"dijitDialogTitle\" id=\"${id}_title\"></span>\r\n\t<span dojoAttachPoint=\"closeButtonNode\" class=\"dijitDialogCloseIcon\" dojoAttachEvent=\"ondijitclick: onCancel\" title=\"${buttonCancel}\" role=\"button\" tabIndex=\"-1\">\r\n\t\t<span dojoAttachPoint=\"closeText\" class=\"closeText\" title=\"${buttonCancel}\">x</span>\r\n\t</span>\r\n\t</div>\r\n\t\t<div dojoAttachPoint=\"containerNode\" class=\"dijitDialogPaneContent\"></div>\r\n</div>\r\n"),baseClass:"dijitDialog",cssStateNodes:{closeButtonNode:"dijitDialogCloseIcon"},attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{title:[{node:"titleNode",type:"innerHTML"},{node:"titleBar",type:"attribute"}],"aria-describedby":""}),open:false,duration:dijit.defaultDuration,refocus:true,autofocus:true,_firstFocusItem:null,_lastFocusItem:null,doLayout:false,draggable:true,"aria-describedby":"",postMixInProperties:function(){
var _4ef=dojo.i18n.getLocalization("dijit","common");
dojo.mixin(this,_4ef);
this.inherited(arguments);
},postCreate:function(){
dojo.style(this.domNode,{display:"none",position:"absolute"});
dojo.body().appendChild(this.domNode);
this.inherited(arguments);
this.connect(this,"onExecute","hide");
this.connect(this,"onCancel","hide");
this._modalconnects=[];
},onLoad:function(){
this._position();
if(this.autofocus&&dijit._DialogLevelManager.isTop(this)){
this._getFocusItems(this.domNode);
dijit.focus(this._firstFocusItem);
}
this.inherited(arguments);
},_endDrag:function(e){
if(e&&e.node&&e.node===this.domNode){
this._relativePosition=dojo.position(e.node);
}
},_setup:function(){
var node=this.domNode;
if(this.titleBar&&this.draggable){
this._moveable=(dojo.isIE==6)?new dojo.dnd.TimedMoveable(node,{handle:this.titleBar}):new dojo.dnd.Moveable(node,{handle:this.titleBar,timeout:0});
this._dndListener=dojo.subscribe("/dnd/move/stop",this,"_endDrag");
}else{
dojo.addClass(node,"dijitDialogFixed");
}
this.underlayAttrs={dialogId:this.id,"class":dojo.map(this["class"].split(/\s/),function(s){
return s+"_underlay";
}).join(" ")};
},_size:function(){
this._checkIfSingleChild();
if(this._singleChild){
if(this._singleChildOriginalStyle){
this._singleChild.domNode.style.cssText=this._singleChildOriginalStyle;
}
delete this._singleChildOriginalStyle;
}else{
dojo.style(this.containerNode,{width:"auto",height:"auto"});
}
var mb=dojo._getMarginSize(this.domNode);
var _4f0=dojo.window.getBox();
if(mb.w>=_4f0.w||mb.h>=_4f0.h){
var w=Math.min(mb.w,Math.floor(_4f0.w*0.75)),h=Math.min(mb.h,Math.floor(_4f0.h*0.75));
if(this._singleChild&&this._singleChild.resize){
this._singleChildOriginalStyle=this._singleChild.domNode.style.cssText;
this._singleChild.resize({w:w,h:h});
}else{
dojo.style(this.containerNode,{width:w+"px",height:h+"px",overflow:"auto",position:"relative"});
}
}else{
if(this._singleChild&&this._singleChild.resize){
this._singleChild.resize();
}
}
},_position:function(){
if(!dojo.hasClass(dojo.body(),"dojoMove")){
var node=this.domNode,_4f1=dojo.window.getBox(),p=this._relativePosition,bb=p?null:dojo._getBorderBox(node),l=Math.floor(_4f1.l+(p?p.x:(_4f1.w-bb.w)/2)),t=Math.floor(_4f1.t+(p?p.y:(_4f1.h-bb.h)/2));
dojo.style(node,{left:l+"px",top:t+"px"});
}
},_onKey:function(evt){
if(evt.charOrCode){
var dk=dojo.keys;
var node=evt.target;
if(evt.charOrCode===dk.TAB){
this._getFocusItems(this.domNode);
}
var _4f2=(this._firstFocusItem==this._lastFocusItem);
if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){
if(!_4f2){
dijit.focus(this._lastFocusItem);
}
dojo.stopEvent(evt);
}else{
if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){
if(!_4f2){
dijit.focus(this._firstFocusItem);
}
dojo.stopEvent(evt);
}else{
while(node){
if(node==this.domNode||dojo.hasClass(node,"dijitPopup")){
if(evt.charOrCode==dk.ESCAPE){
this.onCancel();
}else{
return;
}
}
node=node.parentNode;
}
if(evt.charOrCode!==dk.TAB){
dojo.stopEvent(evt);
}else{
if(!dojo.isOpera){
try{
this._firstFocusItem.focus();
}
catch(e){
}
}
}
}
}
}
},show:function(){
if(this.open){
return;
}
if(!this._started){
this.startup();
}
if(!this._alreadyInitialized){
this._setup();
this._alreadyInitialized=true;
}
if(this._fadeOutDeferred){
this._fadeOutDeferred.cancel();
}
this._modalconnects.push(dojo.connect(window,"onscroll",this,"layout"));
this._modalconnects.push(dojo.connect(window,"onresize",this,function(){
var _4f3=dojo.window.getBox();
if(!this._oldViewport||_4f3.h!=this._oldViewport.h||_4f3.w!=this._oldViewport.w){
this.layout();
this._oldViewport=_4f3;
}
}));
this._modalconnects.push(dojo.connect(this.domNode,"onkeypress",this,"_onKey"));
dojo.style(this.domNode,{opacity:0,display:""});
this._set("open",true);
this._onShow();
this._size();
this._position();
var _4f4;
this._fadeInDeferred=new dojo.Deferred(dojo.hitch(this,function(){
_4f4.stop();
delete this._fadeInDeferred;
}));
_4f4=dojo.fadeIn({node:this.domNode,duration:this.duration,beforeBegin:dojo.hitch(this,function(){
dijit._DialogLevelManager.show(this,this.underlayAttrs);
}),onEnd:dojo.hitch(this,function(){
if(this.autofocus&&dijit._DialogLevelManager.isTop(this)){
this._getFocusItems(this.domNode);
dijit.focus(this._firstFocusItem);
}
this._fadeInDeferred.callback(true);
delete this._fadeInDeferred;
})}).play();
return this._fadeInDeferred;
},hide:function(){
if(!this._alreadyInitialized){
return;
}
if(this._fadeInDeferred){
this._fadeInDeferred.cancel();
}
var _4f5;
this._fadeOutDeferred=new dojo.Deferred(dojo.hitch(this,function(){
_4f5.stop();
delete this._fadeOutDeferred;
}));
_4f5=dojo.fadeOut({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,function(){
this.domNode.style.display="none";
dijit._DialogLevelManager.hide(this);
this.onHide();
this._fadeOutDeferred.callback(true);
delete this._fadeOutDeferred;
})}).play();
if(this._scrollConnected){
this._scrollConnected=false;
}
dojo.forEach(this._modalconnects,dojo.disconnect);
this._modalconnects=[];
if(this._relativePosition){
delete this._relativePosition;
}
this._set("open",false);
return this._fadeOutDeferred;
},layout:function(){
if(this.domNode.style.display!="none"){
if(dijit._underlay){
dijit._underlay.layout();
}
this._position();
}
},destroy:function(){
if(this._fadeInDeferred){
this._fadeInDeferred.cancel();
}
if(this._fadeOutDeferred){
this._fadeOutDeferred.cancel();
}
if(this._moveable){
this._moveable.destroy();
}
if(this._dndListener){
dojo.unsubscribe(this._dndListener);
}
dojo.forEach(this._modalconnects,dojo.disconnect);
dijit._DialogLevelManager.hide(this);
this.inherited(arguments);
}});
dojo.declare("dijit.Dialog",[dijit.layout.ContentPane,dijit._DialogBase],{});
dijit._DialogLevelManager={show:function(_4f6,_4f7){
var ds=dijit._dialogStack;
ds[ds.length-1].focus=dijit.getFocus(_4f6);
var _4f8=dijit._underlay;
if(!_4f8||_4f8._destroyed){
_4f8=dijit._underlay=new dijit.DialogUnderlay(_4f7);
}else{
_4f8.set(_4f6.underlayAttrs);
}
var _4f9=ds[ds.length-1].dialog?ds[ds.length-1].zIndex+2:950;
if(ds.length==1){
_4f8.show();
}
dojo.style(dijit._underlay.domNode,"zIndex",_4f9-1);
dojo.style(_4f6.domNode,"zIndex",_4f9);
ds.push({dialog:_4f6,underlayAttrs:_4f7,zIndex:_4f9});
},hide:function(_4fa){
var ds=dijit._dialogStack;
if(ds[ds.length-1].dialog==_4fa){
ds.pop();
var pd=ds[ds.length-1];
if(ds.length==1){
if(!dijit._underlay._destroyed){
dijit._underlay.hide();
}
}else{
dojo.style(dijit._underlay.domNode,"zIndex",pd.zIndex-1);
dijit._underlay.set(pd.underlayAttrs);
}
if(_4fa.refocus){
var _4fb=pd.focus;
if(!_4fb||(pd.dialog&&!dojo.isDescendant(_4fb.node,pd.dialog.domNode))){
pd.dialog._getFocusItems(pd.dialog.domNode);
_4fb=pd.dialog._firstFocusItem;
}
try{
dijit.focus(_4fb);
}
catch(e){
}
}
}else{
var idx=dojo.indexOf(dojo.map(ds,function(elem){
return elem.dialog;
}),_4fa);
if(idx!=-1){
ds.splice(idx,1);
}
}
},isTop:function(_4fc){
var ds=dijit._dialogStack;
return ds[ds.length-1].dialog==_4fc;
}};
dijit._dialogStack=[{dialog:null,focus:null,underlayAttrs:null}];
}
if(!dojo._hasResource["dojox.fx._base"]){
dojo._hasResource["dojox.fx._base"]=true;
dojo.provide("dojox.fx._base");
dojo.mixin(dojox.fx,{anim:dojo.anim,animateProperty:dojo.animateProperty,fadeTo:dojo._fade,fadeIn:dojo.fadeIn,fadeOut:dojo.fadeOut,combine:dojo.fx.combine,chain:dojo.fx.chain,slideTo:dojo.fx.slideTo,wipeIn:dojo.fx.wipeIn,wipeOut:dojo.fx.wipeOut});
dojox.fx.sizeTo=function(args){
var node=args.node=dojo.byId(args.node),abs="absolute";
var _4fd=args.method||"chain";
if(!args.duration){
args.duration=500;
}
if(_4fd=="chain"){
args.duration=Math.floor(args.duration/2);
}
var top,_4fe,left,_4ff,_500,_501=null;
var init=(function(n){
return function(){
var cs=dojo.getComputedStyle(n),pos=cs.position,w=cs.width,h=cs.height;
top=(pos==abs?n.offsetTop:parseInt(cs.top)||0);
left=(pos==abs?n.offsetLeft:parseInt(cs.left)||0);
_500=(w=="auto"?0:parseInt(w));
_501=(h=="auto"?0:parseInt(h));
_4ff=left-Math.floor((args.width-_500)/2);
_4fe=top-Math.floor((args.height-_501)/2);
if(pos!=abs&&pos!="relative"){
var ret=dojo.coords(n,true);
top=ret.y;
left=ret.x;
n.style.position=abs;
n.style.top=top+"px";
n.style.left=left+"px";
}
};
})(node);
var _502=dojo.animateProperty(dojo.mixin({properties:{height:function(){
init();
return {end:args.height||0,start:_501};
},top:function(){
return {start:top,end:_4fe};
}}},args));
var _503=dojo.animateProperty(dojo.mixin({properties:{width:function(){
return {start:_500,end:args.width||0};
},left:function(){
return {start:left,end:_4ff};
}}},args));
var anim=dojo.fx[(args.method=="combine"?"combine":"chain")]([_502,_503]);
return anim;
};
dojox.fx.slideBy=function(args){
var node=args.node=dojo.byId(args.node),top,left;
var init=(function(n){
return function(){
var cs=dojo.getComputedStyle(n);
var pos=cs.position;
top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);
left=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);
if(pos!="absolute"&&pos!="relative"){
var ret=dojo.coords(n,true);
top=ret.y;
left=ret.x;
n.style.position="absolute";
n.style.top=top+"px";
n.style.left=left+"px";
}
};
})(node);
init();
var _504=dojo.animateProperty(dojo.mixin({properties:{top:top+(args.top||0),left:left+(args.left||0)}},args));
dojo.connect(_504,"beforeBegin",_504,init);
return _504;
};
dojox.fx.crossFade=function(args){
var _505=args.nodes[0]=dojo.byId(args.nodes[0]),op1=dojo.style(_505,"opacity"),_506=args.nodes[1]=dojo.byId(args.nodes[1]),op2=dojo.style(_506,"opacity");
var _507=dojo.fx.combine([dojo[(op1==0?"fadeIn":"fadeOut")](dojo.mixin({node:_505},args)),dojo[(op1==0?"fadeOut":"fadeIn")](dojo.mixin({node:_506},args))]);
return _507;
};
dojox.fx.highlight=function(args){
var node=args.node=dojo.byId(args.node);
args.duration=args.duration||400;
var _508=args.color||"#ffff99",_509=dojo.style(node,"backgroundColor");
if(_509=="rgba(0, 0, 0, 0)"){
_509="transparent";
}
var anim=dojo.animateProperty(dojo.mixin({properties:{backgroundColor:{start:_508,end:_509}}},args));
if(_509=="transparent"){
dojo.connect(anim,"onEnd",anim,function(){
node.style.backgroundColor=_509;
});
}
return anim;
};
dojox.fx.wipeTo=function(args){
args.node=dojo.byId(args.node);
var node=args.node,s=node.style;
var dir=(args.width?"width":"height"),_50a=args[dir],_50b={};
_50b[dir]={start:function(){
s.overflow="hidden";
if(s.visibility=="hidden"||s.display=="none"){
s[dir]="1px";
s.display="";
s.visibility="";
return 1;
}else{
var now=dojo.style(node,dir);
return Math.max(now,1);
}
},end:_50a};
var anim=dojo.animateProperty(dojo.mixin({properties:_50b},args));
return anim;
};
}
if(!dojo._hasResource["dojox.image.Lightbox"]){
dojo._hasResource["dojox.image.Lightbox"]=true;
dojo.provide("dojox.image.Lightbox");
dojo.experimental("dojox.image.Lightbox");
dojo.declare("dojox.image.Lightbox",dijit._Widget,{group:"",title:"",href:"",duration:500,modal:false,_allowPassthru:false,_attachedDialog:null,startup:function(){
this.inherited(arguments);
var tmp=dijit.byId("dojoxLightboxDialog");
if(tmp){
this._attachedDialog=tmp;
}else{
this._attachedDialog=new dojox.image.LightboxDialog({id:"dojoxLightboxDialog"});
this._attachedDialog.startup();
}
if(!this.store){
this._addSelf();
this.connect(this.domNode,"onclick","_handleClick");
}
},_addSelf:function(){
this._attachedDialog.addImage({href:this.href,title:this.title},this.group||null);
},_handleClick:function(e){
if(!this._allowPassthru){
e.preventDefault();
}else{
return;
}
this.show();
},show:function(){
this._attachedDialog.show(this);
},hide:function(){
this._attachedDialog.hide();
},disable:function(){
this._allowPassthru=true;
},enable:function(){
this._allowPassthru=false;
},onClick:function(){
},destroy:function(){
this._attachedDialog.removeImage(this);
this.inherited(arguments);
}});
dojo.declare("dojox.image.LightboxDialog",dijit.Dialog,{title:"",inGroup:null,imgUrl:dijit._Widget.prototype._blankGif,errorMessage:"Image not found.",adjust:true,modal:false,errorImg:dojo.moduleUrl("dojox.image","resources/images/warning.png"),templateString:dojo.cache("dojox.image","resources/Lightbox.html","<div class=\"dojoxLightbox\" dojoAttachPoint=\"containerNode\">\r\n\t<div style=\"position:relative\">\r\n\t\t<div dojoAttachPoint=\"imageContainer\" class=\"dojoxLightboxContainer\" dojoAttachEvent=\"onclick: _onImageClick\">\r\n\t\t\t<img dojoAttachPoint=\"imgNode\" src=\"${imgUrl}\" class=\"dojoxLightboxImage\" alt=\"${title}\">\r\n\t\t\t<div class=\"dojoxLightboxFooter\" dojoAttachPoint=\"titleNode\">\r\n\t\t\t\t<div class=\"dijitInline LightboxClose\" dojoAttachPoint=\"closeButtonNode\"></div>\r\n\t\t\t\t<div class=\"dijitInline LightboxNext\" dojoAttachPoint=\"nextButtonNode\"></div>\t\r\n\t\t\t\t<div class=\"dijitInline LightboxPrev\" dojoAttachPoint=\"prevButtonNode\"></div>\r\n\t\t\t\t<div class=\"dojoxLightboxText\" dojoAttachPoint=\"titleTextNode\"><span dojoAttachPoint=\"textNode\">${title}</span><span dojoAttachPoint=\"groupCount\" class=\"dojoxLightboxGroupText\"></span></div>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</div>\r\n</div>\r\n"),constructor:function(args){
this._groups=this._groups||(args&&args._groups)||{XnoGroupX:[]};
},startup:function(){
this.inherited(arguments);
this._animConnects=[];
this.connect(this.nextButtonNode,"onclick","_nextImage");
this.connect(this.prevButtonNode,"onclick","_prevImage");
this.connect(this.closeButtonNode,"onclick","hide");
this._makeAnims();
this._vp=dojo.window.getBox();
return this;
},show:function(_50c){
var _50d=this;
this._lastGroup=_50c;
if(!_50d.open){
_50d.inherited(arguments);
_50d._modalconnects.push(dojo.connect(dojo.global,"onscroll",this,"_position"),dojo.connect(dojo.global,"onresize",this,"_position"),dojo.connect(dojo.body(),"onkeypress",this,"_handleKey"));
if(!_50c.modal){
_50d._modalconnects.push(dojo.connect(dijit._underlay.domNode,"onclick",this,"onCancel"));
}
}
if(this._wasStyled){
var _50e=dojo.create("img",null,_50d.imgNode,"after");
dojo.destroy(_50d.imgNode);
_50d.imgNode=_50e;
_50d._makeAnims();
_50d._wasStyled=false;
}
dojo.style(_50d.imgNode,"opacity","0");
dojo.style(_50d.titleNode,"opacity","0");
var src=_50c.href;
if((_50c.group&&_50c!=="XnoGroupX")||_50d.inGroup){
if(!_50d.inGroup){
_50d.inGroup=_50d._groups[(_50c.group)];
dojo.forEach(_50d.inGroup,function(g,i){
if(g.href==_50c.href){
_50d._index=i;
}
});
}
if(!_50d._index){
_50d._index=0;
var sr=_50d.inGroup[_50d._index];
src=(sr&&sr.href)||_50d.errorImg;
}
_50d.groupCount.innerHTML=" ("+(_50d._index+1)+" of "+Math.max(1,_50d.inGroup.length)+")";
_50d.prevButtonNode.style.visibility="visible";
_50d.nextButtonNode.style.visibility="visible";
}else{
_50d.groupCount.innerHTML="";
_50d.prevButtonNode.style.visibility="hidden";
_50d.nextButtonNode.style.visibility="hidden";
}
if(!_50c.leaveTitle){
_50d.textNode.innerHTML=_50c.title;
}
_50d._ready(src);
},_ready:function(src){
var _50f=this;
_50f._imgError=dojo.connect(_50f.imgNode,"error",_50f,function(){
dojo.disconnect(_50f._imgError);
_50f.imgNode.src=_50f.errorImg;
_50f.textNode.innerHTML=_50f.errorMessage;
});
_50f._imgConnect=dojo.connect(_50f.imgNode,"load",_50f,function(e){
_50f.resizeTo({w:_50f.imgNode.width,h:_50f.imgNode.height,duration:_50f.duration});
dojo.disconnect(_50f._imgConnect);
if(_50f._imgError){
dojo.disconnect(_50f._imgError);
}
});
_50f.imgNode.src=src;
},_nextImage:function(){
if(!this.inGroup){
return;
}
if(this._index+1<this.inGroup.length){
this._index++;
}else{
this._index=0;
}
this._loadImage();
},_prevImage:function(){
if(this.inGroup){
if(this._index==0){
this._index=this.inGroup.length-1;
}else{
this._index--;
}
this._loadImage();
}
},_loadImage:function(){
this._loadingAnim.play(1);
},_prepNodes:function(){
this._imageReady=false;
if(this.inGroup&&this.inGroup[this._index]){
this.show({href:this.inGroup[this._index].href,title:this.inGroup[this._index].title});
}else{
this.show({title:this.errorMessage,href:this.errorImg});
}
},_calcTitleSize:function(){
var _510=dojo.map(dojo.query("> *",this.titleNode).position(),function(s){
return s.h;
});
return {h:Math.max.apply(Math,_510)};
},resizeTo:function(size,_511){
var _512=dojo.boxModel=="border-box"?dojo._getBorderExtents(this.domNode).w:0,_513=_511||this._calcTitleSize();
this._lastTitleSize=_513;
if(this.adjust&&(size.h+_513.h+_512+80>this._vp.h||size.w+_512+60>this._vp.w)){
this._lastSize=size;
size=this._scaleToFit(size);
}
this._currentSize=size;
var _514=dojox.fx.sizeTo({node:this.containerNode,duration:size.duration||this.duration,width:size.w+_512,height:size.h+_513.h+_512});
this.connect(_514,"onEnd","_showImage");
_514.play(15);
},_scaleToFit:function(size){
var ns={},nvp={w:this._vp.w-80,h:this._vp.h-60-this._lastTitleSize.h};
var _515=nvp.w/nvp.h,_516=size.w/size.h;
if(_516>=_515){
ns.h=nvp.w/_516;
ns.w=nvp.w;
}else{
ns.w=_516*nvp.h;
ns.h=nvp.h;
}
this._wasStyled=true;
this._setImageSize(ns);
ns.duration=size.duration;
return ns;
},_setImageSize:function(size){
var s=this.imgNode;
s.height=size.h;
s.width=size.w;
},_size:function(){
},_position:function(e){
this._vp=dojo.window.getBox();
this.inherited(arguments);
if(e&&e.type=="resize"){
if(this._wasStyled){
this._setImageSize(this._lastSize);
this.resizeTo(this._lastSize);
}else{
if(this.imgNode.height+80>this._vp.h||this.imgNode.width+60>this._vp.h){
this.resizeTo({w:this.imgNode.width,h:this.imgNode.height});
}
}
}
},_showImage:function(){
this._showImageAnim.play(1);
},_showNav:function(){
var _517=dojo.marginBox(this.titleNode);
if(_517.h>this._lastTitleSize.h){
this.resizeTo(this._wasStyled?this._lastSize:this._currentSize,_517);
}else{
this._showNavAnim.play(1);
}
},hide:function(){
dojo.fadeOut({node:this.titleNode,duration:200,onEnd:dojo.hitch(this,function(){
this.imgNode.src=this._blankGif;
})}).play(5);
this.inherited(arguments);
this.inGroup=null;
this._index=null;
},addImage:function(_518,_519){
var g=_519;
if(!_518.href){
return;
}
if(g){
if(!this._groups[g]){
this._groups[g]=[];
}
this._groups[g].push(_518);
}else{
this._groups["XnoGroupX"].push(_518);
}
},removeImage:function(_51a){
var g=_51a.group||"XnoGroupX";
dojo.every(this._groups[g],function(item,i,ar){
if(item.href==_51a.href){
ar.splice(i,1);
return false;
}
return true;
});
},removeGroup:function(_51b){
if(this._groups[_51b]){
this._groups[_51b]=[];
}
},_handleKey:function(e){
if(!this.open){
return;
}
var dk=dojo.keys;
switch(e.charOrCode){
case dk.ESCAPE:
this.hide();
break;
case dk.DOWN_ARROW:
case dk.RIGHT_ARROW:
case 78:
this._nextImage();
break;
case dk.UP_ARROW:
case dk.LEFT_ARROW:
case 80:
this._prevImage();
break;
}
},_makeAnims:function(){
dojo.forEach(this._animConnects,dojo.disconnect);
this._animConnects=[];
this._showImageAnim=dojo.fadeIn({node:this.imgNode,duration:this.duration});
this._animConnects.push(dojo.connect(this._showImageAnim,"onEnd",this,"_showNav"));
this._loadingAnim=dojo.fx.combine([dojo.fadeOut({node:this.imgNode,duration:175}),dojo.fadeOut({node:this.titleNode,duration:175})]);
this._animConnects.push(dojo.connect(this._loadingAnim,"onEnd",this,"_prepNodes"));
this._showNavAnim=dojo.fadeIn({node:this.titleNode,duration:225});
},onClick:function(_51c){
},_onImageClick:function(e){
if(e&&e.target==this.imgNode){
this.onClick(this._lastGroup);
if(this._lastGroup.declaredClass){
this._lastGroup.onClick(this._lastGroup);
}
}
}});
}
dojo.i18n._preloadLocalizations("dojo.nls.dojo",["ROOT","ar","ca","cs","da","de","de-de","el","en","en-gb","en-us","es","es-es","fi","fi-fi","fr","fr-fr","he","he-il","hu","it","it-it","ja","ja-jp","ko","ko-kr","nb","nl","nl-nl","pl","pt","pt-br","pt-pt","ru","sk","sl","sv","th","tr","xx","zh","zh-cn","zh-tw"]);
if(dojo.isBrowser&&(document.readyState==="complete"||dojo.config.afterOnLoad)){
window.setTimeout(dojo._loadInit,100);
}
})();

